diff --git a/index.js b/index.js index 15d0cc8..18936c6 100644 --- a/index.js +++ b/index.js @@ -1,22 +1,22 @@ -"use strict";(()=>{var Df=Object.create;var Rn=Object.defineProperty;var Bf=Object.getOwnPropertyDescriptor;var Lf=Object.getOwnPropertyNames;var Ff=Object.getPrototypeOf,Uf=Object.prototype.hasOwnProperty;var Qi=(t=>typeof require<"u"?require:typeof Proxy<"u"?new Proxy(t,{get:(r,o)=>(typeof require<"u"?require:r)[o]}):t)(function(t){if(typeof require<"u")return require.apply(this,arguments);throw Error('Dynamic require of "'+t+'" is not supported')});var es=(t,r)=>()=>(t&&(r=t(t=0)),r);var qe=(t,r)=>()=>(r||t((r={exports:{}}).exports,r),r.exports),kf=(t,r)=>{for(var o in r)Rn(t,o,{get:r[o],enumerable:!0})},Rl=(t,r,o,n)=>{if(r&&typeof r=="object"||typeof r=="function")for(let s of Lf(r))!Uf.call(t,s)&&s!==o&&Rn(t,s,{get:()=>r[s],enumerable:!(n=Bf(r,s))||n.enumerable});return t};var Mt=(t,r,o)=>(o=t!=null?Df(Ff(t)):{},Rl(r||!t||!t.__esModule?Rn(o,"default",{value:t,enumerable:!0}):o,t)),Wf=t=>Rl(Rn({},"__esModule",{value:!0}),t);function er(t,r){for(var o in r)t[o]=r[o];return t}function Fl(t){var r=t.parentNode;r&&r.removeChild(t)}function Qe(t,r,o){var n,s,l,m={};for(l in r)l=="key"?n=r[l]:l=="ref"?s=r[l]:m[l]=r[l];if(arguments.length>2&&(m.children=arguments.length>3?No.call(arguments,2):o),typeof t=="function"&&t.defaultProps!=null)for(l in t.defaultProps)m[l]===void 0&&(m[l]=t.defaultProps[l]);return Po(t,m,n,s,null)}function Po(t,r,o,n,s){var l={type:t,props:r,key:o,ref:n,__k:null,__:null,__b:0,__e:null,__d:void 0,__c:null,__h:null,constructor:void 0,__v:s??++Nl};return s==null&&ue.vnode!=null&&ue.vnode(l),l}function Cn(){return{current:null}}function Ne(t){return t.children}function yt(t,r){this.props=t,this.context=r}function Co(t,r){if(r==null)return t.__?Co(t.__,t.__.__k.indexOf(t)+1):null;for(var o;rr&&wr.sort(ts));In.__r=0}function kl(t,r,o,n,s,l,m,S,w,M,N){var I,V,Y,q,J,ce,ie,de,se,he=0,pe=n&&n.__k||Ll,be=pe.length,Ce=be,Xe=r.length;for(o.__k=[],I=0;I0?Po(q.type,q.props,q.key,q.ref?q.ref:null,q.__v):q)!=null?(q.__=o,q.__b=o.__b+1,(de=Vf(q,pe,ie=I+he,Ce))===-1?Y=Ur:(Y=pe[de]||Ur,pe[de]=void 0,Ce--),ns(t,q,Y,s,l,m,S,w,M,N),J=q.__e,(V=q.ref)&&Y.ref!=V&&(Y.ref&&is(Y.ref,null,q),N.push(V,q.__c||J,q)),J!=null&&(ce==null&&(ce=J),(se=Y===Ur||Y.__v===null)?de==-1&&he--:de!==ie&&(de===ie+1?he++:de>ie?Ce>Xe-ie?he+=de-ie:he--:he=de(w!=null?1:0))for(;m>=0||S=0){if((w=r[m])&&s==w.key&&l===w.type)return m;m--}if(S2&&(S.children=arguments.length>3?No.call(arguments,2):o),Po(t.type,S,n||t.key,s||t.ref,null)}function Wr(t,r){var o={__c:r="__cC"+Bl++,__:t,Consumer:function(n,s){return n.children(s)},Provider:function(n){var s,l;return this.getChildContext||(s=[],(l={})[r]=this,this.getChildContext=function(){return l},this.shouldComponentUpdate=function(m){this.props.value!==m.value&&s.some(function(S){S.__e=!0,rs(S)})},this.sub=function(m){s.push(m);var S=m.componentWillUnmount;m.componentWillUnmount=function(){s.splice(s.indexOf(m),1),S&&S.call(m)}}),n.children}};return o.Provider.__=o.Consumer.contextType=o}var No,ue,Nl,Hf,wr,Il,Dl,ts,Bl,Ur,Ll,zf,Pn,Hr=es(()=>{Ur={},Ll=[],zf=/acit|ex(?:s|g|n|p|$)|rph|grid|ows|mnc|ntw|ine[ch]|zoo|^ord|itera/i,Pn=Array.isArray;No=Ll.slice,ue={__e:function(t,r,o,n){for(var s,l,m;r=r.__;)if((s=r.__c)&&!s.__)try{if((l=s.constructor)&&l.getDerivedStateFromError!=null&&(s.setState(l.getDerivedStateFromError(t)),m=s.__d),s.componentDidCatch!=null&&(s.componentDidCatch(t,n||{}),m=s.__d),m)return s.__E=s}catch(S){t=S}throw t}},Nl=0,Hf=function(t){return t!=null&&t.constructor===void 0},yt.prototype.setState=function(t,r){var o;o=this.__s!=null&&this.__s!==this.state?this.__s:this.__s=er({},this.state),typeof t=="function"&&(t=t(er({},o),this.props)),t&&er(o,t),t!=null&&this.__v&&(r&&this._sb.push(r),rs(this))},yt.prototype.forceUpdate=function(t){this.__v&&(this.__e=!0,t&&this.__h.push(t),rs(this))},yt.prototype.render=Ne,wr=[],Dl=typeof Promise=="function"?Promise.prototype.then.bind(Promise.resolve()):setTimeout,ts=function(t,r){return t.__v.__b-r.__v.__b},In.__r=0,Bl=0});function Ar(t,r){ue.__h&&ue.__h(Le,t,zr||r),zr=0;var o=Le.__H||(Le.__H={__:[],__h:[]});return t>=o.__.length&&o.__.push({__V:Nn}),o.__[t]}function _t(t){return zr=1,Bn(Ql,t)}function Bn(t,r,o){var n=Ar(tr++,2);if(n.t=t,!n.__c&&(n.__=[o?o(r):Ql(void 0,r),function(S){var w=n.__N?n.__N[0]:n.__[0],M=n.t(w,S);w!==M&&(n.__N=[M,n.__[1]],n.__c.setState({}))}],n.__c=Le,!Le.u)){var s=function(S,w,M){if(!n.__c.__H)return!0;var N=n.__c.__H.__.filter(function(V){return V.__c});if(N.every(function(V){return!V.__N}))return!l||l.call(this,S,w,M);var I=!1;return N.forEach(function(V){if(V.__N){var Y=V.__[0];V.__=V.__N,V.__N=void 0,Y!==V.__[0]&&(I=!0)}}),!(!I&&n.__c.props===S)&&(!l||l.call(this,S,w,M))};Le.u=!0;var l=Le.shouldComponentUpdate,m=Le.componentWillUpdate;Le.componentWillUpdate=function(S,w,M){if(this.__e){var N=l;l=void 0,s(S,w,M),l=N}m&&m.call(this,S,w,M)},Le.shouldComponentUpdate=s}return n.__N||n.__}function Rt(t,r){var o=Ar(tr++,3);!ue.__s&&ps(o.__H,r)&&(o.__=t,o.i=r,Le.__H.__h.push(o))}function Vr(t,r){var o=Ar(tr++,4);!ue.__s&&ps(o.__H,r)&&(o.__=t,o.i=r,Le.__h.push(o))}function ut(t){return zr=5,It(function(){return{current:t}},[])}function us(t,r,o){zr=6,Vr(function(){return typeof t=="function"?(t(r()),function(){return t(null)}):t?(t.current=r(),function(){return t.current=null}):void 0},o==null?o:o.concat(t))}function It(t,r){var o=Ar(tr++,7);return ps(o.__H,r)?(o.__V=t(),o.i=r,o.__h=t,o.__V):o.__}function Do(t,r){return zr=8,It(function(){return t},r)}function Bo(t){var r=Le.context[t.__c],o=Ar(tr++,9);return o.c=t,r?(o.__==null&&(o.__=!0,r.sub(Le)),r.props.value):t.__}function Lo(t,r){ue.useDebugValue&&ue.useDebugValue(r?r(t):t)}function Xf(t){var r=Ar(tr++,10),o=_t();return r.__=t,Le.componentDidCatch||(Le.componentDidCatch=function(n,s){r.__&&r.__(n,s),o[1](n)}),[o[0],function(){o[1](void 0)}]}function gs(){var t=Ar(tr++,11);if(!t.__){for(var r=Le.__v;r!==null&&!r.__m&&r.__!==null;)r=r.__;var o=r.__m||(r.__m=[0,0]);t.__="P"+o[0]+"-"+o[1]++}return t.__}function Zf(){for(var t;t=Jl.shift();)if(t.__P&&t.__H)try{t.__H.__h.forEach(Dn),t.__H.__h.forEach(ls),t.__H.__h=[]}catch(r){t.__H.__h=[],ue.__e(r,t.__v)}}function Kf(t){var r,o=function(){clearTimeout(n),Yl&&cancelAnimationFrame(r),setTimeout(t)},n=setTimeout(o,100);Yl&&(r=requestAnimationFrame(o))}function Dn(t){var r=Le,o=t.__c;typeof o=="function"&&(t.__c=void 0,o()),Le=r}function ls(t){var r=Le;t.__c=t.__(),Le=r}function ps(t,r){return!t||t.length!==r.length||r.some(function(o,n){return o!==t[n]})}function Ql(t,r){return typeof r=="function"?r(t):r}var tr,Le,as,Gl,zr,Jl,Nn,$l,ql,Xl,Zl,Kl,Yl,cs=es(()=>{Hr();zr=0,Jl=[],Nn=[],$l=ue.__b,ql=ue.__r,Xl=ue.diffed,Zl=ue.__c,Kl=ue.unmount;ue.__b=function(t){Le=null,$l&&$l(t)},ue.__r=function(t){ql&&ql(t),tr=0;var r=(Le=t.__c).__H;r&&(as===Le?(r.__h=[],Le.__h=[],r.__.forEach(function(o){o.__N&&(o.__=o.__N),o.__V=Nn,o.__N=o.i=void 0})):(r.__h.forEach(Dn),r.__h.forEach(ls),r.__h=[],tr=0)),as=Le},ue.diffed=function(t){Xl&&Xl(t);var r=t.__c;r&&r.__H&&(r.__H.__h.length&&(Jl.push(r)!==1&&Gl===ue.requestAnimationFrame||((Gl=ue.requestAnimationFrame)||Kf)(Zf)),r.__H.__.forEach(function(o){o.i&&(o.__H=o.i),o.__V!==Nn&&(o.__=o.__V),o.i=void 0,o.__V=Nn})),as=Le=null},ue.__c=function(t,r){r.some(function(o){try{o.__h.forEach(Dn),o.__h=o.__h.filter(function(n){return!n.__||ls(n)})}catch(n){r.some(function(s){s.__h&&(s.__h=[])}),r=[],ue.__e(n,o.__v)}}),Zl&&Zl(t,r)},ue.unmount=function(t){Kl&&Kl(t);var r,o=t.__c;o&&o.__H&&(o.__H.__.forEach(function(n){try{Dn(n)}catch(s){r=s}}),o.__H=void 0,r&&ue.__e(r,o.__v))};Yl=typeof requestAnimationFrame=="function"});var Ou={};kf(Ou,{Children:()=>pu,Component:()=>yt,Fragment:()=>Ne,PureComponent:()=>Ln,StrictMode:()=>Au,Suspense:()=>Fo,SuspenseList:()=>Gr,__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED:()=>_u,cloneElement:()=>Su,createContext:()=>Wr,createElement:()=>Qe,createFactory:()=>bu,createPortal:()=>mu,createRef:()=>Cn,default:()=>gt,findDOMNode:()=>Tu,flushSync:()=>wu,forwardRef:()=>gu,hydrate:()=>hs,isElement:()=>Ru,isFragment:()=>vu,isValidElement:()=>Uo,lazy:()=>hu,memo:()=>uu,render:()=>Fn,startTransition:()=>ys,unmountComponentAtNode:()=>Un,unstable_batchedUpdates:()=>Eu,useCallback:()=>Do,useContext:()=>Bo,useDebugValue:()=>Lo,useDeferredValue:()=>xu,useEffect:()=>Rt,useErrorBoundary:()=>Xf,useId:()=>gs,useImperativeHandle:()=>us,useInsertionEffect:()=>Mu,useLayoutEffect:()=>Vr,useMemo:()=>It,useReducer:()=>Bn,useRef:()=>ut,useState:()=>_t,useSyncExternalStore:()=>Iu,useTransition:()=>ju,version:()=>gd});function lu(t,r){for(var o in r)t[o]=r[o];return t}function ds(t,r){for(var o in t)if(o!=="__source"&&!(o in r))return!0;for(var n in r)if(n!=="__source"&&t[n]!==r[n])return!0;return!1}function fs(t,r){return t===r&&(t!==0||1/t==1/r)||t!=t&&r!=r}function Ln(t){this.props=t}function uu(t,r){function o(s){var l=this.props.ref,m=l==s.ref;return!m&&l&&(l.call?l(null):l.current=null),r?!r(this.props,s)||!m:ds(this.props,s)}function n(s){return this.shouldComponentUpdate=o,Qe(t,s)}return n.displayName="Memo("+(t.displayName||t.name)+")",n.prototype.isReactComponent=!0,n.__f=!0,n}function gu(t){function r(o){var n=lu({},o);return delete n.ref,t(n,o.ref||null)}return r.$$typeof=Yf,r.render=r,r.prototype.isReactComponent=r.__f=!0,r.displayName="ForwardRef("+(t.displayName||t.name)+")",r}function cu(t,r,o){return t&&(t.__c&&t.__c.__H&&(t.__c.__H.__.forEach(function(n){typeof n.__c=="function"&&n.__c()}),t.__c.__H=null),(t=lu({},t)).__c!=null&&(t.__c.__P===o&&(t.__c.__P=r),t.__c=null),t.__k=t.__k&&t.__k.map(function(n){return cu(n,r,o)})),t}function fu(t,r,o){return t&&o&&(t.__v=null,t.__k=t.__k&&t.__k.map(function(n){return fu(n,r,o)}),t.__c&&t.__c.__P===r&&(t.__e&&o.insertBefore(t.__e,t.__d),t.__c.__e=!0,t.__c.__P=o)),t}function Fo(){this.__u=0,this.t=null,this.__b=null}function du(t){var r=t.__.__c;return r&&r.__a&&r.__a(t)}function hu(t){var r,o,n;function s(l){if(r||(r=t()).then(function(m){o=m.default||m},function(m){n=m}),n)throw n;if(!o)throw r;return Qe(o,l)}return s.displayName="Lazy",s.__f=!0,s}function Gr(){this.u=null,this.o=null}function Qf(t){return this.getChildContext=function(){return t.context},t.children}function ed(t){var r=this,o=t.i;r.componentWillUnmount=function(){kr(null,r.l),r.l=null,r.i=null},r.i&&r.i!==o&&r.componentWillUnmount(),r.l||(r.i=o,r.l={nodeType:1,parentNode:o,childNodes:[],appendChild:function(n){this.childNodes.push(n),r.i.appendChild(n)},insertBefore:function(n,s){this.childNodes.push(n),r.i.appendChild(n)},removeChild:function(n){this.childNodes.splice(this.childNodes.indexOf(n)>>>1,1),r.i.removeChild(n)}}),kr(Qe(Qf,{context:r.context},t.__v),r.l)}function mu(t,r){var o=Qe(ed,{__v:t,i:r});return o.containerInfo=r,o}function Fn(t,r,o){return r.__k==null&&(r.textContent=""),kr(t,r),typeof o=="function"&&o(),t?t.__c:null}function hs(t,r,o){return ss(t,r),typeof o=="function"&&o(),t?t.__c:null}function sd(){}function ad(){return this.cancelBubble}function ld(){return this.defaultPrevented}function bu(t){return Qe.bind(null,t)}function Uo(t){return!!t&&t.$$typeof===yu}function vu(t){return Uo(t)&&t.type===Ne}function Su(t){return Uo(t)?Vl.apply(null,arguments):t}function Un(t){return!!t.__k&&(kr(null,t),!0)}function Tu(t){return t&&(t.base||t.nodeType===1&&t)||null}function ys(t){t()}function xu(t){return t}function ju(){return[!1,ys]}function Iu(t,r){var o=r(),n=_t({h:{__:o,v:r}}),s=n[0].h,l=n[1];return Vr(function(){s.__=o,s.v=r,fs(s.__,r())||l({h:s})},[t,o,r]),Rt(function(){return fs(s.__,s.v())||l({h:s}),t(function(){fs(s.__,s.v())||l({h:s})})},[t]),o}var eu,Yf,tu,pu,Jf,ru,ou,yu,td,rd,od,nd,id,nu,ms,ud,iu,su,au,_u,gd,Eu,wu,Au,Mu,Ru,gt,rt=es(()=>{Hr();Hr();cs();cs();(Ln.prototype=new yt).isPureReactComponent=!0,Ln.prototype.shouldComponentUpdate=function(t,r){return ds(this.props,t)||ds(this.state,r)};eu=ue.__b;ue.__b=function(t){t.type&&t.type.__f&&t.ref&&(t.props.ref=t.ref,t.ref=null),eu&&eu(t)};Yf=typeof Symbol<"u"&&Symbol.for&&Symbol.for("react.forward_ref")||3911;tu=function(t,r){return t==null?null:Xt(Xt(t).map(r))},pu={map:tu,forEach:tu,count:function(t){return t?Xt(t).length:0},only:function(t){var r=Xt(t);if(r.length!==1)throw"Children.only";return r[0]},toArray:Xt},Jf=ue.__e;ue.__e=function(t,r,o,n){if(t.then){for(var s,l=r;l=l.__;)if((s=l.__c)&&s.__c)return r.__e==null&&(r.__e=o.__e,r.__k=o.__k),s.__c(t,r)}Jf(t,r,o,n)};ru=ue.unmount;ue.unmount=function(t){var r=t.__c;r&&r.__R&&r.__R(),r&&t.__h===!0&&(t.type=null),ru&&ru(t)},(Fo.prototype=new yt).__c=function(t,r){var o=r.__c,n=this;n.t==null&&(n.t=[]),n.t.push(o);var s=du(n.__v),l=!1,m=function(){l||(l=!0,o.__R=null,s?s(S):S())};o.__R=m;var S=function(){if(!--n.__u){if(n.state.__a){var M=n.state.__a;n.__v.__k[0]=fu(M,M.__c.__P,M.__c.__O)}var N;for(n.setState({__a:n.__b=null});N=n.t.pop();)N.forceUpdate()}},w=r.__h===!0;n.__u++||w||n.setState({__a:n.__b=n.__v.__k[0]}),t.then(m,m)},Fo.prototype.componentWillUnmount=function(){this.t=[]},Fo.prototype.render=function(t,r){if(this.__b){if(this.__v.__k){var o=document.createElement("div"),n=this.__v.__k[0].__c;this.__v.__k[0]=cu(this.__b,o,n.__O=n.__P)}this.__b=null}var s=r.__a&&Qe(Ne,null,t.fallback);return s&&(s.__h=null),[Qe(Ne,null,r.__a?null:t.children),s]};ou=function(t,r,o){if(++o[1]===o[0]&&t.o.delete(r),t.props.revealOrder&&(t.props.revealOrder[0]!=="t"||!t.o.size))for(o=t.u;o;){for(;o.length>3;)o.pop()();if(o[1]{"use strict";var $r=(rt(),Wf(Ou));function md(t,r){return t===r&&(t!==0||1/t===1/r)||t!==t&&r!==r}var yd=typeof Object.is=="function"?Object.is:md,_d=$r.useState,bd=$r.useEffect,vd=$r.useLayoutEffect,Sd=$r.useDebugValue;function Td(t,r){var o=r(),n=_d({inst:{value:o,getSnapshot:r}}),s=n[0].inst,l=n[1];return vd(function(){s.value=o,s.getSnapshot=r,js(s)&&l({inst:s})},[t,o,r]),bd(function(){return js(s)&&l({inst:s}),t(function(){js(s)&&l({inst:s})})},[t]),Sd(o),o}function js(t){var r=t.getSnapshot;t=t.value;try{var o=r();return!yd(t,o)}catch{return!0}}function Ed(t,r){return r()}var wd=typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"?Ed:Td;Bu.useSyncExternalStore=$r.useSyncExternalStore!==void 0?$r.useSyncExternalStore:wd});var Uu=qe((Zy,Fu)=>{"use strict";Fu.exports=Lu()});var Zt=qe((e_,Hn)=>{(function(){"use strict";var t={}.hasOwnProperty,r="[native code]";function o(){for(var n=[],s=0;s{var Ms=(()=>{var t=typeof document<"u"&&document.currentScript?document.currentScript.src:void 0;return typeof __filename<"u"&&(t=t||__filename),function(r){r=r||{};var o;o||(o=typeof r<"u"?r:{});var n,s;o.ready=new Promise(function(i,u){n=i,s=u}),function(i){i.Vd=i.Vd||[],i.Vd.push(function(){i.MakeSWCanvasSurface=function(u){var p=u;if(p.tagName!=="CANVAS"&&(p=document.getElementById(u),!p))throw"Canvas with id "+u+" was not found";return(u=i.MakeSurface(p.width,p.height))&&(u.Nd=p),u},i.MakeCanvasSurface||(i.MakeCanvasSurface=i.MakeSWCanvasSurface),i.MakeSurface=function(u,p){var y={width:u,height:p,colorType:i.ColorType.RGBA_8888,alphaType:i.AlphaType.Unpremul,colorSpace:i.ColorSpace.SRGB},v=u*p*4,A=i._malloc(v);return(y=i.Surface._makeRasterDirect(y,A,4*u))&&(y.Nd=null,y.Ef=u,y.Af=p,y.Cf=v,y.af=A,y.getCanvas().clear(i.TRANSPARENT)),y},i.MakeRasterDirectSurface=function(u,p,y){return i.Surface._makeRasterDirect(u,p.byteOffset,y)},i.Surface.prototype.flush=function(u){if(i.Od(this.Md),this._flush(),this.Nd){var p=new Uint8ClampedArray(i.HEAPU8.buffer,this.af,this.Cf);p=new ImageData(p,this.Ef,this.Af),u?this.Nd.getContext("2d").putImageData(p,0,0,u[0],u[1],u[2]-u[0],u[3]-u[1]):this.Nd.getContext("2d").putImageData(p,0,0)}},i.Surface.prototype.dispose=function(){this.af&&i._free(this.af),this.delete()},i.Od=i.Od||function(){},i.Se=i.Se||function(){return null}})}(o),function(i){i.Vd=i.Vd||[],i.Vd.push(function(){function u(x,R,D){return x&&x.hasOwnProperty(R)?x[R]:D}function p(x){var R=Lr(At);return At[R]=x,R}function y(x){return x.naturalHeight||x.videoHeight||x.displayHeight||x.height}function v(x){return x.naturalWidth||x.videoWidth||x.displayWidth||x.width}function A(x,R,D,Z){return x.bindTexture(x.TEXTURE_2D,R),Z||D.alphaType!==i.AlphaType.Premul||x.pixelStorei(x.UNPACK_PREMULTIPLY_ALPHA_WEBGL,!0),R}function C(x,R,D){D||R.alphaType!==i.AlphaType.Premul||x.pixelStorei(x.UNPACK_PREMULTIPLY_ALPHA_WEBGL,!1),x.bindTexture(x.TEXTURE_2D,null)}i.GetWebGLContext=function(x,R){if(!x)throw"null canvas passed into makeWebGLContext";var D={alpha:u(R,"alpha",1),depth:u(R,"depth",1),stencil:u(R,"stencil",8),antialias:u(R,"antialias",0),premultipliedAlpha:u(R,"premultipliedAlpha",1),preserveDrawingBuffer:u(R,"preserveDrawingBuffer",0),preferLowPowerToHighPerformance:u(R,"preferLowPowerToHighPerformance",0),failIfMajorPerformanceCaveat:u(R,"failIfMajorPerformanceCaveat",0),enableExtensionsByDefault:u(R,"enableExtensionsByDefault",1),explicitSwapControl:u(R,"explicitSwapControl",0),renderViaOffscreenBackBuffer:u(R,"renderViaOffscreenBackBuffer",0)};if(D.majorVersion=R&&R.majorVersion?R.majorVersion:typeof WebGL2RenderingContext<"u"?2:1,D.explicitSwapControl)throw"explicitSwapControl is not supported";return x=uf(x,D),x?(dl(x),we.ge.getExtension("WEBGL_debug_renderer_info"),x):0},i.deleteContext=function(x){we===Gt[x]&&(we=null),typeof JSEvents=="object"&&JSEvents.ug(Gt[x].ge.canvas),Gt[x]&&Gt[x].ge.canvas&&(Gt[x].ge.canvas.yf=void 0),Gt[x]=null},i._setTextureCleanup({deleteTexture:function(x,R){var D=At[R];D&&Gt[x].ge.deleteTexture(D),At[R]=null}}),i.MakeWebGLContext=function(x){if(!this.Od(x))return null;var R=this._MakeGrContext();if(!R)return null;R.Md=x;var D=R.delete.bind(R);return R.delete=function(){i.Od(this.Md),D()}.bind(R),we.ef=R},i.MakeGrContext=i.MakeWebGLContext,i.GrDirectContext.prototype.getResourceCacheLimitBytes=function(){i.Od(this.Md),this._getResourceCacheLimitBytes()},i.GrDirectContext.prototype.getResourceCacheUsageBytes=function(){i.Od(this.Md),this._getResourceCacheUsageBytes()},i.GrDirectContext.prototype.releaseResourcesAndAbandonContext=function(){i.Od(this.Md),this._releaseResourcesAndAbandonContext()},i.GrDirectContext.prototype.setResourceCacheLimitBytes=function(x){i.Od(this.Md),this._setResourceCacheLimitBytes(x)},i.MakeOnScreenGLSurface=function(x,R,D,Z,Q,ae){return!this.Od(x.Md)||(R=Q===void 0||ae===void 0?this._MakeOnScreenGLSurface(x,R,D,Z):this._MakeOnScreenGLSurface(x,R,D,Z,Q,ae),!R)?null:(R.Md=x.Md,R)},i.MakeRenderTarget=function(){var x=arguments[0];if(!this.Od(x.Md))return null;if(arguments.length===3){var R=this._MakeRenderTargetWH(x,arguments[1],arguments[2]);if(!R)return null}else if(arguments.length===2){if(R=this._MakeRenderTargetII(x,arguments[1]),!R)return null}else return null;return R.Md=x.Md,R},i.MakeWebGLCanvasSurface=function(x,R,D){R=R||null;var Z=x,Q=typeof OffscreenCanvas<"u"&&Z instanceof OffscreenCanvas;if(!(typeof HTMLCanvasElement<"u"&&Z instanceof HTMLCanvasElement||Q||(Z=document.getElementById(x),Z)))throw"Canvas with id "+x+" was not found";if(x=this.GetWebGLContext(Z,D),!x||0>x)throw"failed to create webgl context: err "+x;return x=this.MakeWebGLContext(x),R=this.MakeOnScreenGLSurface(x,Z.width,Z.height,R),R||(R=Z.cloneNode(!0),Z.parentNode.replaceChild(R,Z),R.classList.add("ck-replaced"),i.MakeSWCanvasSurface(R))},i.MakeCanvasSurface=i.MakeWebGLCanvasSurface,i.Surface.prototype.makeImageFromTexture=function(x,R){return i.Od(this.Md),x=p(x),(R=this._makeImageFromTexture(this.Md,x,R))&&(R.Le=x),R},i.Surface.prototype.makeImageFromTextureSource=function(x,R,D){R||(R={height:y(x),width:v(x),colorType:i.ColorType.RGBA_8888,alphaType:D?i.AlphaType.Premul:i.AlphaType.Unpremul}),R.colorSpace||(R.colorSpace=i.ColorSpace.SRGB),i.Od(this.Md);var Z=we.ge;return D=A(Z,Z.createTexture(),R,D),we.version===2?Z.texImage2D(Z.TEXTURE_2D,0,Z.RGBA,R.width,R.height,0,Z.RGBA,Z.UNSIGNED_BYTE,x):Z.texImage2D(Z.TEXTURE_2D,0,Z.RGBA,Z.RGBA,Z.UNSIGNED_BYTE,x),C(Z,R),this._resetContext(),this.makeImageFromTexture(D,R)},i.Surface.prototype.updateTextureFromSource=function(x,R,D){if(x.Le){i.Od(this.Md);var Z=x.getImageInfo(),Q=we.ge,ae=A(Q,At[x.Le],Z,D);we.version===2?Q.texImage2D(Q.TEXTURE_2D,0,Q.RGBA,v(R),y(R),0,Q.RGBA,Q.UNSIGNED_BYTE,R):Q.texImage2D(Q.TEXTURE_2D,0,Q.RGBA,Q.RGBA,Q.UNSIGNED_BYTE,R),C(Q,Z,D),this._resetContext(),At[x.Le]=null,x.Le=p(ae),Z.colorSpace=x.getColorSpace(),R=this._makeImageFromTexture(this.Md,x.Le,Z),D=x.Ld.Td,Q=x.Ld.$d,x.Ld.Td=R.Ld.Td,x.Ld.$d=R.Ld.$d,R.Ld.Td=D,R.Ld.$d=Q,R.delete(),Z.colorSpace.delete()}},i.MakeLazyImageFromTextureSource=function(x,R,D){R||(R={height:y(x),width:v(x),colorType:i.ColorType.RGBA_8888,alphaType:D?i.AlphaType.Premul:i.AlphaType.Unpremul}),R.colorSpace||(R.colorSpace=i.ColorSpace.SRGB);var Z={makeTexture:function(){var Q=we,ae=Q.ge,k=A(ae,ae.createTexture(),R,D);return Q.version===2?ae.texImage2D(ae.TEXTURE_2D,0,ae.RGBA,R.width,R.height,0,ae.RGBA,ae.UNSIGNED_BYTE,x):ae.texImage2D(ae.TEXTURE_2D,0,ae.RGBA,ae.RGBA,ae.UNSIGNED_BYTE,x),C(ae,R,D),p(k)},freeSrc:function(){}};return x.constructor.name==="VideoFrame"&&(Z.freeSrc=function(){x.close()}),i.Image._makeFromGenerator(R,Z)},i.Od=function(x){return x?dl(x):!1},i.Se=function(){return we&&we.ef&&!we.ef.isDeleted()?we.ef:null}})}(o),function(i){function u(h,g,_,E,P){for(var U=0;U>>0}function A(h){if(h&&h._ck)return h;if(h instanceof Float32Array){for(var g=Math.floor(h.length/4),_=new Uint32Array(g),E=0;E$;$++)i.HEAPF32[P+E]=h[U][$],E++;h=_}else h=Me;g.ce=h}else throw"Invalid argument to copyFlexibleColorArray, Not a color array "+typeof h;return g}function Q(h){if(!h)return Me;var g=$i.toTypedArray();if(h.length){if(h.length===6||h.length===9)return D(h,"HEAPF32",pr),h.length===6&&i.HEAPF32.set(Cf,6+pr/4),pr;if(h.length===16)return g[0]=h[0],g[1]=h[1],g[2]=h[3],g[3]=h[4],g[4]=h[5],g[5]=h[7],g[6]=h[12],g[7]=h[13],g[8]=h[15],pr;throw"invalid matrix size"}if(h.m11===void 0)throw"invalid matrix argument";return g[0]=h.m11,g[1]=h.m21,g[2]=h.m41,g[3]=h.m12,g[4]=h.m22,g[5]=h.m42,g[6]=h.m14,g[7]=h.m24,g[8]=h.m44,pr}function ae(h){if(!h)return Me;var g=qi.toTypedArray();if(h.length){if(h.length!==16&&h.length!==6&&h.length!==9)throw"invalid matrix size";return h.length===16?D(h,"HEAPF32",Fr):(g.fill(0),g[0]=h[0],g[1]=h[1],g[3]=h[2],g[4]=h[3],g[5]=h[4],g[7]=h[5],g[10]=1,g[12]=h[6],g[13]=h[7],g[15]=h[8],h.length===6&&(g[12]=0,g[13]=0,g[15]=1),Fr)}if(h.m11===void 0)throw"invalid matrix argument";return g[0]=h.m11,g[1]=h.m21,g[2]=h.m31,g[3]=h.m41,g[4]=h.m12,g[5]=h.m22,g[6]=h.m32,g[7]=h.m42,g[8]=h.m13,g[9]=h.m23,g[10]=h.m33,g[11]=h.m43,g[12]=h.m14,g[13]=h.m24,g[14]=h.m34,g[15]=h.m44,Fr}function k(h,g){return D(h,"HEAPF32",g||Er)}function ge(h,g,_,E){var P=Xi.toTypedArray();return P[0]=h,P[1]=g,P[2]=_,P[3]=E,Er}function Ae(h){for(var g=new Float32Array(4),_=0;4>_;_++)g[_]=i.HEAPF32[h/4+_];return g}function xe(h,g){return D(h,"HEAPF32",g||tt)}function ft(h,g){return D(h,"HEAPF32",g||Ji)}function xt(){for(var h=0,g=0;g>>0},i.Color4f=function(h,g,_,E){return E===void 0&&(E=1),Float32Array.of(h,g,_,E)},Object.defineProperty(i,"TRANSPARENT",{get:function(){return i.Color4f(0,0,0,0)}}),Object.defineProperty(i,"BLACK",{get:function(){return i.Color4f(0,0,0,1)}}),Object.defineProperty(i,"WHITE",{get:function(){return i.Color4f(1,1,1,1)}}),Object.defineProperty(i,"RED",{get:function(){return i.Color4f(1,0,0,1)}}),Object.defineProperty(i,"GREEN",{get:function(){return i.Color4f(0,1,0,1)}}),Object.defineProperty(i,"BLUE",{get:function(){return i.Color4f(0,0,1,1)}}),Object.defineProperty(i,"YELLOW",{get:function(){return i.Color4f(1,1,0,1)}}),Object.defineProperty(i,"CYAN",{get:function(){return i.Color4f(0,1,1,1)}}),Object.defineProperty(i,"MAGENTA",{get:function(){return i.Color4f(1,0,1,1)}}),i.getColorComponents=function(h){return[Math.floor(255*h[0]),Math.floor(255*h[1]),Math.floor(255*h[2]),h[3]]},i.parseColorString=function(h,g){if(h=h.toLowerCase(),h.startsWith("#")){switch(g=255,h.length){case 9:g=parseInt(h.slice(7,9),16);case 7:var _=parseInt(h.slice(1,3),16),E=parseInt(h.slice(3,5),16),P=parseInt(h.slice(5,7),16);break;case 5:g=17*parseInt(h.slice(4,5),16);case 4:_=17*parseInt(h.slice(1,2),16),E=17*parseInt(h.slice(2,3),16),P=17*parseInt(h.slice(3,4),16)}return i.Color(_,E,P,g/255)}return h.startsWith("rgba")?(h=h.slice(5,-1),h=h.split(","),i.Color(+h[0],+h[1],+h[2],C(h[3]))):h.startsWith("rgb")?(h=h.slice(4,-1),h=h.split(","),i.Color(+h[0],+h[1],+h[2],C(h[3]))):h.startsWith("gray(")||h.startsWith("hsl")||!g||(h=g[h],h===void 0)?i.BLACK:h},i.multiplyByAlpha=function(h,g){return h=h.slice(),h[3]=Math.max(0,Math.min(h[3]*g,1)),h},i.Malloc=function(h,g){var _=i._malloc(g*h.BYTES_PER_ELEMENT);return{_ck:!0,length:g,byteOffset:_,re:null,subarray:function(E,P){return E=this.toTypedArray().subarray(E,P),E._ck=!0,E},toTypedArray:function(){return this.re&&this.re.length?this.re:(this.re=new h(i.HEAPU8.buffer,_,g),this.re._ck=!0,this.re)}}},i.Free=function(h){i._free(h.byteOffset),h.byteOffset=Me,h.toTypedArray=null,h.re=null};var pr=Me,$i,Fr=Me,qi,Er=Me,Xi,$t,tt=Me,El,cr=Me,wl,Zi=Me,Al,Ki=Me,Yi,Mn=Me,xl,Ji=Me,jl,Ml=Me,Cf=Float32Array.of(0,0,1),Me=0;i.onRuntimeInitialized=function(){function h(g,_,E,P,U,$,oe){$||($=4*P.width,P.colorType===i.ColorType.RGBA_F16?$*=2:P.colorType===i.ColorType.RGBA_F32&&($*=4));var _e=$*P.height,me=U?U.byteOffset:i._malloc(_e);if(oe?!g._readPixels(P,me,$,_,E,oe):!g._readPixels(P,me,$,_,E))return U||i._free(me),null;if(U)return U.toTypedArray();switch(P.colorType){case i.ColorType.RGBA_8888:case i.ColorType.RGBA_F16:g=new Uint8Array(i.HEAPU8.buffer,me,_e).slice();break;case i.ColorType.RGBA_F32:g=new Float32Array(i.HEAPU8.buffer,me,_e).slice();break;default:return null}return i._free(me),g}Xi=i.Malloc(Float32Array,4),Er=Xi.byteOffset,qi=i.Malloc(Float32Array,16),Fr=qi.byteOffset,$i=i.Malloc(Float32Array,9),pr=$i.byteOffset,xl=i.Malloc(Float32Array,12),Ji=xl.byteOffset,jl=i.Malloc(Float32Array,12),Ml=jl.byteOffset,$t=i.Malloc(Float32Array,4),tt=$t.byteOffset,El=i.Malloc(Float32Array,4),cr=El.byteOffset,wl=i.Malloc(Float32Array,3),Zi=wl.byteOffset,Al=i.Malloc(Float32Array,3),Ki=Al.byteOffset,Yi=i.Malloc(Int32Array,4),Mn=Yi.byteOffset,i.ColorSpace.SRGB=i.ColorSpace._MakeSRGB(),i.ColorSpace.DISPLAY_P3=i.ColorSpace._MakeDisplayP3(),i.ColorSpace.ADOBE_RGB=i.ColorSpace._MakeAdobeRGB(),i.GlyphRunFlags={IsWhiteSpace:i._GlyphRunFlags_isWhiteSpace},i.Path.MakeFromCmds=function(g){var _=D(g,"HEAPF32"),E=i.Path._MakeFromCmds(_,g.length);return R(_,g),E},i.Path.MakeFromVerbsPointsWeights=function(g,_,E){var P=D(g,"HEAPU8"),U=D(_,"HEAPF32"),$=D(E,"HEAPF32"),oe=i.Path._MakeFromVerbsPointsWeights(P,g.length,U,_.length,$,E&&E.length||0);return R(P,g),R(U,_),R($,E),oe},i.Path.prototype.addArc=function(g,_,E){return g=xe(g),this._addArc(g,_,E),this},i.Path.prototype.addCircle=function(g,_,E,P){return this._addCircle(g,_,E,!!P),this},i.Path.prototype.addOval=function(g,_,E){return E===void 0&&(E=1),g=xe(g),this._addOval(g,!!_,E),this},i.Path.prototype.addPath=function(){var g=Array.prototype.slice.call(arguments),_=g[0],E=!1;if(typeof g[g.length-1]=="boolean"&&(E=g.pop()),g.length===1)this._addPath(_,1,0,0,0,1,0,0,0,1,E);else if(g.length===2)g=g[1],this._addPath(_,g[0],g[1],g[2],g[3],g[4],g[5],g[6]||0,g[7]||0,g[8]||1,E);else if(g.length===7||g.length===10)this._addPath(_,g[1],g[2],g[3],g[4],g[5],g[6],g[7]||0,g[8]||0,g[9]||1,E);else return null;return this},i.Path.prototype.addPoly=function(g,_){var E=D(g,"HEAPF32");return this._addPoly(E,g.length/2,_),R(E,g),this},i.Path.prototype.addRect=function(g,_){return g=xe(g),this._addRect(g,!!_),this},i.Path.prototype.addRRect=function(g,_){return g=ft(g),this._addRRect(g,!!_),this},i.Path.prototype.addVerbsPointsWeights=function(g,_,E){var P=D(g,"HEAPU8"),U=D(_,"HEAPF32"),$=D(E,"HEAPF32");this._addVerbsPointsWeights(P,g.length,U,_.length,$,E&&E.length||0),R(P,g),R(U,_),R($,E)},i.Path.prototype.arc=function(g,_,E,P,U,$){return g=i.LTRBRect(g-E,_-E,g+E,_+E),U=(U-P)/Math.PI*180-360*!!$,$=new i.Path,$.addArc(g,P/Math.PI*180,U),this.addPath($,!0),$.delete(),this},i.Path.prototype.arcToOval=function(g,_,E,P){return g=xe(g),this._arcToOval(g,_,E,P),this},i.Path.prototype.arcToRotated=function(g,_,E,P,U,$,oe){return this._arcToRotated(g,_,E,!!P,!!U,$,oe),this},i.Path.prototype.arcToTangent=function(g,_,E,P,U){return this._arcToTangent(g,_,E,P,U),this},i.Path.prototype.close=function(){return this._close(),this},i.Path.prototype.conicTo=function(g,_,E,P,U){return this._conicTo(g,_,E,P,U),this},i.Path.prototype.computeTightBounds=function(g){this._computeTightBounds(tt);var _=$t.toTypedArray();return g?(g.set(_),g):_.slice()},i.Path.prototype.cubicTo=function(g,_,E,P,U,$){return this._cubicTo(g,_,E,P,U,$),this},i.Path.prototype.dash=function(g,_,E){return this._dash(g,_,E)?this:null},i.Path.prototype.getBounds=function(g){this._getBounds(tt);var _=$t.toTypedArray();return g?(g.set(_),g):_.slice()},i.Path.prototype.lineTo=function(g,_){return this._lineTo(g,_),this},i.Path.prototype.moveTo=function(g,_){return this._moveTo(g,_),this},i.Path.prototype.offset=function(g,_){return this._transform(1,0,g,0,1,_,0,0,1),this},i.Path.prototype.quadTo=function(g,_,E,P){return this._quadTo(g,_,E,P),this},i.Path.prototype.rArcTo=function(g,_,E,P,U,$,oe){return this._rArcTo(g,_,E,P,U,$,oe),this},i.Path.prototype.rConicTo=function(g,_,E,P,U){return this._rConicTo(g,_,E,P,U),this},i.Path.prototype.rCubicTo=function(g,_,E,P,U,$){return this._rCubicTo(g,_,E,P,U,$),this},i.Path.prototype.rLineTo=function(g,_){return this._rLineTo(g,_),this},i.Path.prototype.rMoveTo=function(g,_){return this._rMoveTo(g,_),this},i.Path.prototype.rQuadTo=function(g,_,E,P){return this._rQuadTo(g,_,E,P),this},i.Path.prototype.stroke=function(g){return g=g||{},g.width=g.width||1,g.miter_limit=g.miter_limit||4,g.cap=g.cap||i.StrokeCap.Butt,g.join=g.join||i.StrokeJoin.Miter,g.precision=g.precision||1,this._stroke(g)?this:null},i.Path.prototype.transform=function(){if(arguments.length===1){var g=arguments[0];this._transform(g[0],g[1],g[2],g[3],g[4],g[5],g[6]||0,g[7]||0,g[8]||1)}else if(arguments.length===6||arguments.length===9)g=arguments,this._transform(g[0],g[1],g[2],g[3],g[4],g[5],g[6]||0,g[7]||0,g[8]||1);else throw"transform expected to take 1 or 9 arguments. Got "+arguments.length;return this},i.Path.prototype.trim=function(g,_,E){return this._trim(g,_,!!E)?this:null},i.Image.prototype.encodeToBytes=function(g,_){var E=i.Se();return g=g||i.ImageFormat.PNG,_=_||100,E?this._encodeToBytes(g,_,E):this._encodeToBytes(g,_)},i.Image.prototype.makeShaderCubic=function(g,_,E,P,U){return U=Q(U),this._makeShaderCubic(g,_,E,P,U)},i.Image.prototype.makeShaderOptions=function(g,_,E,P,U){return U=Q(U),this._makeShaderOptions(g,_,E,P,U)},i.Image.prototype.readPixels=function(g,_,E,P,U){var $=i.Se();return h(this,g,_,E,P,U,$)},i.Canvas.prototype.clear=function(g){i.Od(this.Md),g=k(g),this._clear(g)},i.Canvas.prototype.clipRRect=function(g,_,E){i.Od(this.Md),g=ft(g),this._clipRRect(g,_,E)},i.Canvas.prototype.clipRect=function(g,_,E){i.Od(this.Md),g=xe(g),this._clipRect(g,_,E)},i.Canvas.prototype.concat=function(g){i.Od(this.Md),g=ae(g),this._concat(g)},i.Canvas.prototype.drawArc=function(g,_,E,P,U){i.Od(this.Md),g=xe(g),this._drawArc(g,_,E,P,U)},i.Canvas.prototype.drawAtlas=function(g,_,E,P,U,$,oe){if(g&&P&&_&&E&&_.length===E.length){i.Od(this.Md),U||(U=i.BlendMode.SrcOver);var _e=D(_,"HEAPF32"),me=D(E,"HEAPF32"),Ie=E.length/4,O=D(A($),"HEAPU32");if(oe&&"B"in oe&&"C"in oe)this._drawAtlasCubic(g,me,_e,O,Ie,U,oe.B,oe.C,P);else{let X=i.FilterMode.Linear,Se=i.MipmapMode.None;oe&&(X=oe.filter,"mipmap"in oe&&(Se=oe.mipmap)),this._drawAtlasOptions(g,me,_e,O,Ie,U,X,Se,P)}R(_e,_),R(me,E),R(O,$)}},i.Canvas.prototype.drawCircle=function(g,_,E,P){i.Od(this.Md),this._drawCircle(g,_,E,P)},i.Canvas.prototype.drawColor=function(g,_){i.Od(this.Md),g=k(g),_!==void 0?this._drawColor(g,_):this._drawColor(g)},i.Canvas.prototype.drawColorInt=function(g,_){i.Od(this.Md),this._drawColorInt(g,_||i.BlendMode.SrcOver)},i.Canvas.prototype.drawColorComponents=function(g,_,E,P,U){i.Od(this.Md),g=ge(g,_,E,P),U!==void 0?this._drawColor(g,U):this._drawColor(g)},i.Canvas.prototype.drawDRRect=function(g,_,E){i.Od(this.Md),g=ft(g,Ji),_=ft(_,Ml),this._drawDRRect(g,_,E)},i.Canvas.prototype.drawImage=function(g,_,E,P){i.Od(this.Md),this._drawImage(g,_,E,P||null)},i.Canvas.prototype.drawImageCubic=function(g,_,E,P,U,$){i.Od(this.Md),this._drawImageCubic(g,_,E,P,U,$||null)},i.Canvas.prototype.drawImageOptions=function(g,_,E,P,U,$){i.Od(this.Md),this._drawImageOptions(g,_,E,P,U,$||null)},i.Canvas.prototype.drawImageNine=function(g,_,E,P,U){i.Od(this.Md),_=D(_,"HEAP32",Mn),E=xe(E),this._drawImageNine(g,_,E,P,U||null)},i.Canvas.prototype.drawImageRect=function(g,_,E,P,U){i.Od(this.Md),xe(_,tt),xe(E,cr),this._drawImageRect(g,tt,cr,P,!!U)},i.Canvas.prototype.drawImageRectCubic=function(g,_,E,P,U,$){i.Od(this.Md),xe(_,tt),xe(E,cr),this._drawImageRectCubic(g,tt,cr,P,U,$||null)},i.Canvas.prototype.drawImageRectOptions=function(g,_,E,P,U,$){i.Od(this.Md),xe(_,tt),xe(E,cr),this._drawImageRectOptions(g,tt,cr,P,U,$||null)},i.Canvas.prototype.drawLine=function(g,_,E,P,U){i.Od(this.Md),this._drawLine(g,_,E,P,U)},i.Canvas.prototype.drawOval=function(g,_){i.Od(this.Md),g=xe(g),this._drawOval(g,_)},i.Canvas.prototype.drawPaint=function(g){i.Od(this.Md),this._drawPaint(g)},i.Canvas.prototype.drawParagraph=function(g,_,E){i.Od(this.Md),this._drawParagraph(g,_,E)},i.Canvas.prototype.drawPatch=function(g,_,E,P,U){if(24>g.length)throw"Need 12 cubic points";if(_&&4>_.length)throw"Need 4 colors";if(E&&8>E.length)throw"Need 4 shader coordinates";i.Od(this.Md);let $=D(g,"HEAPF32"),oe=_?D(A(_),"HEAPU32"):Me,_e=E?D(E,"HEAPF32"):Me;P||(P=i.BlendMode.Modulate),this._drawPatch($,oe,_e,P,U),R(_e,E),R(oe,_),R($,g)},i.Canvas.prototype.drawPath=function(g,_){i.Od(this.Md),this._drawPath(g,_)},i.Canvas.prototype.drawPicture=function(g){i.Od(this.Md),this._drawPicture(g)},i.Canvas.prototype.drawPoints=function(g,_,E){i.Od(this.Md);var P=D(_,"HEAPF32");this._drawPoints(g,P,_.length/2,E),R(P,_)},i.Canvas.prototype.drawRRect=function(g,_){i.Od(this.Md),g=ft(g),this._drawRRect(g,_)},i.Canvas.prototype.drawRect=function(g,_){i.Od(this.Md),g=xe(g),this._drawRect(g,_)},i.Canvas.prototype.drawRect4f=function(g,_,E,P,U){i.Od(this.Md),this._drawRect4f(g,_,E,P,U)},i.Canvas.prototype.drawShadow=function(g,_,E,P,U,$,oe){i.Od(this.Md);var _e=D(U,"HEAPF32"),me=D($,"HEAPF32");_=D(_,"HEAPF32",Zi),E=D(E,"HEAPF32",Ki),this._drawShadow(g,_,E,P,_e,me,oe),R(_e,U),R(me,$)},i.getShadowLocalBounds=function(g,_,E,P,U,$,oe){return g=Q(g),E=D(E,"HEAPF32",Zi),P=D(P,"HEAPF32",Ki),this._getShadowLocalBounds(g,_,E,P,U,$,tt)?(_=$t.toTypedArray(),oe?(oe.set(_),oe):_.slice()):null},i.Canvas.prototype.drawTextBlob=function(g,_,E,P){i.Od(this.Md),this._drawTextBlob(g,_,E,P)},i.Canvas.prototype.drawVertices=function(g,_,E){i.Od(this.Md),this._drawVertices(g,_,E)},i.Canvas.prototype.getDeviceClipBounds=function(g){this._getDeviceClipBounds(Mn);var _=Yi.toTypedArray();return g?g.set(_):g=_.slice(),g},i.Canvas.prototype.getLocalToDevice=function(){this._getLocalToDevice(Fr);for(var g=Fr,_=Array(16),E=0;16>E;E++)_[E]=i.HEAPF32[g/4+E];return _},i.Canvas.prototype.getTotalMatrix=function(){this._getTotalMatrix(pr);for(var g=Array(9),_=0;9>_;_++)g[_]=i.HEAPF32[pr/4+_];return g},i.Canvas.prototype.makeSurface=function(g){return g=this._makeSurface(g),g.Md=this.Md,g},i.Canvas.prototype.readPixels=function(g,_,E,P,U){return i.Od(this.Md),h(this,g,_,E,P,U)},i.Canvas.prototype.saveLayer=function(g,_,E,P){return _=xe(_),this._saveLayer(g||null,_,E||null,P||0)},i.Canvas.prototype.writePixels=function(g,_,E,P,U,$,oe,_e){if(g.byteLength%(_*E))throw"pixels length must be a multiple of the srcWidth * srcHeight";i.Od(this.Md);var me=g.byteLength/(_*E);$=$||i.AlphaType.Unpremul,oe=oe||i.ColorType.RGBA_8888,_e=_e||i.ColorSpace.SRGB;var Ie=me*_;return me=D(g,"HEAPU8"),_=this._writePixels({width:_,height:E,colorType:oe,alphaType:$,colorSpace:_e},me,Ie,P,U),R(me,g),_},i.ColorFilter.MakeBlend=function(g,_,E){return g=k(g),E=E||i.ColorSpace.SRGB,i.ColorFilter._MakeBlend(g,_,E)},i.ColorFilter.MakeMatrix=function(g){if(!g||g.length!==20)throw"invalid color matrix";var _=D(g,"HEAPF32"),E=i.ColorFilter._makeMatrix(_);return R(_,g),E},i.ContourMeasure.prototype.getPosTan=function(g,_){return this._getPosTan(g,tt),g=$t.toTypedArray(),_?(_.set(g),_):g.slice()},i.ImageFilter.MakeDropShadow=function(g,_,E,P,U,$){return U=k(U,Er),i.ImageFilter._MakeDropShadow(g,_,E,P,U,$)},i.ImageFilter.MakeDropShadowOnly=function(g,_,E,P,U,$){return U=k(U,Er),i.ImageFilter._MakeDropShadowOnly(g,_,E,P,U,$)},i.ImageFilter.MakeImage=function(g,_,E,P){if(E=xe(E,tt),P=xe(P,cr),"B"in _&&"C"in _)return i.ImageFilter._MakeImageCubic(g,_.B,_.C,E,P);let U=_.filter,$=i.MipmapMode.None;return"mipmap"in _&&($=_.mipmap),i.ImageFilter._MakeImageOptions(g,U,$,E,P)},i.ImageFilter.MakeMatrixTransform=function(g,_,E){if(g=Q(g),"B"in _&&"C"in _)return i.ImageFilter._MakeMatrixTransformCubic(g,_.B,_.C,E);let P=_.filter,U=i.MipmapMode.None;return"mipmap"in _&&(U=_.mipmap),i.ImageFilter._MakeMatrixTransformOptions(g,P,U,E)},i.Paint.prototype.getColor=function(){return this._getColor(Er),Ae(Er)},i.Paint.prototype.setColor=function(g,_){_=_||null,g=k(g),this._setColor(g,_)},i.Paint.prototype.setColorComponents=function(g,_,E,P,U){U=U||null,g=ge(g,_,E,P),this._setColor(g,U)},i.Path.prototype.getPoint=function(g,_){return this._getPoint(g,tt),g=$t.toTypedArray(),_?(_[0]=g[0],_[1]=g[1],_):g.slice(0,2)},i.Picture.prototype.makeShader=function(g,_,E,P,U){return P=Q(P),U=xe(U),this._makeShader(g,_,E,P,U)},i.PictureRecorder.prototype.beginRecording=function(g){return g=xe(g),this._beginRecording(g)},i.Surface.prototype.getCanvas=function(){var g=this._getCanvas();return g.Md=this.Md,g},i.Surface.prototype.makeImageSnapshot=function(g){return i.Od(this.Md),g=D(g,"HEAP32",Mn),this._makeImageSnapshot(g)},i.Surface.prototype.makeSurface=function(g){return i.Od(this.Md),g=this._makeSurface(g),g.Md=this.Md,g},i.Surface.prototype.Df=function(g,_){return this.He||(this.He=this.getCanvas()),requestAnimationFrame(function(){i.Od(this.Md),g(this.He),this.flush(_)}.bind(this))},i.Surface.prototype.requestAnimationFrame||(i.Surface.prototype.requestAnimationFrame=i.Surface.prototype.Df),i.Surface.prototype.zf=function(g,_){this.He||(this.He=this.getCanvas()),requestAnimationFrame(function(){i.Od(this.Md),g(this.He),this.flush(_),this.dispose()}.bind(this))},i.Surface.prototype.drawOnce||(i.Surface.prototype.drawOnce=i.Surface.prototype.zf),i.PathEffect.MakeDash=function(g,_){if(_||(_=0),!g.length||g.length%2===1)throw"Intervals array must have even length";var E=D(g,"HEAPF32");return _=i.PathEffect._MakeDash(E,g.length,_),R(E,g),_},i.PathEffect.MakeLine2D=function(g,_){return _=Q(_),i.PathEffect._MakeLine2D(g,_)},i.PathEffect.MakePath2D=function(g,_){return g=Q(g),i.PathEffect._MakePath2D(g,_)},i.Shader.MakeColor=function(g,_){return _=_||null,g=k(g),i.Shader._MakeColor(g,_)},i.Shader.Blend=i.Shader.MakeBlend,i.Shader.Color=i.Shader.MakeColor,i.Shader.MakeLinearGradient=function(g,_,E,P,U,$,oe,_e){_e=_e||null;var me=Z(E),Ie=D(P,"HEAPF32");oe=oe||0,$=Q($);var O=$t.toTypedArray();return O.set(g),O.set(_,2),g=i.Shader._MakeLinearGradient(tt,me.ce,me.colorType,Ie,me.count,U,oe,$,_e),R(me.ce,E),P&&R(Ie,P),g},i.Shader.MakeRadialGradient=function(g,_,E,P,U,$,oe,_e){_e=_e||null;var me=Z(E),Ie=D(P,"HEAPF32");return oe=oe||0,$=Q($),g=i.Shader._MakeRadialGradient(g[0],g[1],_,me.ce,me.colorType,Ie,me.count,U,oe,$,_e),R(me.ce,E),P&&R(Ie,P),g},i.Shader.MakeSweepGradient=function(g,_,E,P,U,$,oe,_e,me,Ie){Ie=Ie||null;var O=Z(E),X=D(P,"HEAPF32");return oe=oe||0,_e=_e||0,me=me||360,$=Q($),g=i.Shader._MakeSweepGradient(g,_,O.ce,O.colorType,X,O.count,U,_e,me,oe,$,Ie),R(O.ce,E),P&&R(X,P),g},i.Shader.MakeTwoPointConicalGradient=function(g,_,E,P,U,$,oe,_e,me,Ie){Ie=Ie||null;var O=Z(U),X=D($,"HEAPF32");me=me||0,_e=Q(_e);var Se=$t.toTypedArray();return Se.set(g),Se.set(E,2),g=i.Shader._MakeTwoPointConicalGradient(tt,_,P,O.ce,O.colorType,X,O.count,oe,me,_e,Ie),R(O.ce,U),$&&R(X,$),g},i.Vertices.prototype.bounds=function(g){this._bounds(tt);var _=$t.toTypedArray();return g?(g.set(_),g):_.slice()},i.Vd&&i.Vd.forEach(function(g){g()})},i.computeTonalColors=function(h){var g=D(h.ambient,"HEAPF32"),_=D(h.spot,"HEAPF32");this._computeTonalColors(g,_);var E={ambient:Ae(g),spot:Ae(_)};return R(g,h.ambient),R(_,h.spot),E},i.LTRBRect=function(h,g,_,E){return Float32Array.of(h,g,_,E)},i.XYWHRect=function(h,g,_,E){return Float32Array.of(h,g,h+_,g+E)},i.LTRBiRect=function(h,g,_,E){return Int32Array.of(h,g,_,E)},i.XYWHiRect=function(h,g,_,E){return Int32Array.of(h,g,h+_,g+E)},i.RRectXY=function(h,g,_){return Float32Array.of(h[0],h[1],h[2],h[3],g,_,g,_,g,_,g,_)},i.MakeAnimatedImageFromEncoded=function(h){h=new Uint8Array(h);var g=i._malloc(h.byteLength);return i.HEAPU8.set(h,g),(h=i._decodeAnimatedImage(g,h.byteLength))?h:null},i.MakeImageFromEncoded=function(h){h=new Uint8Array(h);var g=i._malloc(h.byteLength);return i.HEAPU8.set(h,g),(h=i._decodeImage(g,h.byteLength))?h:null};var Io=null;i.MakeImageFromCanvasImageSource=function(h){var g=h.width,_=h.height;Io||(Io=document.createElement("canvas")),Io.width=g,Io.height=_;var E=Io.getContext("2d",{wg:!0});return E.drawImage(h,0,0),h=E.getImageData(0,0,g,_),i.MakeImage({width:g,height:_,alphaType:i.AlphaType.Unpremul,colorType:i.ColorType.RGBA_8888,colorSpace:i.ColorSpace.SRGB},h.data,4*g)},i.MakeImage=function(h,g,_){var E=i._malloc(g.length);return i.HEAPU8.set(g,E),i._MakeImage(h,E,g.length,_)},i.MakeVertices=function(h,g,_,E,P,U){var $=P&&P.length||0,oe=0;return _&&_.length&&(oe|=1),E&&E.length&&(oe|=2),U===void 0||U||(oe|=4),h=new i._VerticesBuilder(h,g.length/2,$,oe),D(g,"HEAPF32",h.positions()),h.texCoords()&&D(_,"HEAPF32",h.texCoords()),h.colors()&&D(A(E),"HEAPU32",h.colors()),h.indices()&&D(P,"HEAPU16",h.indices()),h.detach()},i.Matrix={},i.Matrix.identity=function(){return p(3)},i.Matrix.invert=function(h){var g=h[0]*h[4]*h[8]+h[1]*h[5]*h[6]+h[2]*h[3]*h[7]-h[2]*h[4]*h[6]-h[1]*h[3]*h[8]-h[0]*h[5]*h[7];return g?[(h[4]*h[8]-h[5]*h[7])/g,(h[2]*h[7]-h[1]*h[8])/g,(h[1]*h[5]-h[2]*h[4])/g,(h[5]*h[6]-h[3]*h[8])/g,(h[0]*h[8]-h[2]*h[6])/g,(h[2]*h[3]-h[0]*h[5])/g,(h[3]*h[7]-h[4]*h[6])/g,(h[1]*h[6]-h[0]*h[7])/g,(h[0]*h[4]-h[1]*h[3])/g]:null},i.Matrix.mapPoints=function(h,g){for(var _=0;_P;P+=5){for(var U=0;4>U;U++)_[E++]=h[P]*g[U]+h[P+1]*g[U+5]+h[P+2]*g[U+10]+h[P+3]*g[U+15];_[E++]=h[P]*g[4]+h[P+1]*g[9]+h[P+2]*g[14]+h[P+3]*g[19]+h[P+4]}return _},function(h){h.Vd=h.Vd||[],h.Vd.push(function(){function g(O){if(!O||!O.length)return[];for(var X=[],Se=0;Seg?(i._free(h),null):(P=new Uint16Array(i.HEAPU8.buffer,h,g),_?(_.set(P),i._free(h),_):(_=Uint16Array.from(P),i._free(h),_))},i.Font.prototype.getGlyphIntercepts=function(h,g,_,E){var P=D(h,"HEAPU16"),U=D(g,"HEAPF32");return this._getGlyphIntercepts(P,h.length,!(h&&h._ck),U,g.length,!(g&&g._ck),_,E)},i.Font.prototype.getGlyphWidths=function(h,g,_){var E=D(h,"HEAPU16"),P=i._malloc(4*h.length);return this._getGlyphWidthBounds(E,h.length,P,Me,g||null),g=new Float32Array(i.HEAPU8.buffer,P,h.length),R(E,h),_?(_.set(g),i._free(P),_):(h=Float32Array.from(g),i._free(P),h)},i.FontMgr.FromData=function(){if(!arguments.length)return null;var h=arguments;if(h.length===1&&Array.isArray(h[0])&&(h=arguments[0]),!h.length)return null;for(var g=[],_=[],E=0;Eg?(i._free(h),null):(P=new Uint16Array(i.HEAPU8.buffer,h,g),_?(_.set(P),i._free(h),_):(_=Uint16Array.from(P),i._free(h),_))},i.TextBlob.MakeOnPath=function(h,g,_,E){if(h&&h.length&&g&&g.countPoints()){if(g.countPoints()===1)return this.MakeFromText(h,_);E||(E=0);var P=_.getGlyphIDs(h);P=_.getGlyphWidths(P);var U=[];g=new i.ContourMeasureIter(g,!1,1);for(var $=g.next(),oe=new Float32Array(4),_e=0;_e$.length()){if($.delete(),$=g.next(),!$){h=h.substring(0,_e);break}E=me/2}$.getPosTan(E,oe);var Ie=oe[2],O=oe[3];U.push(Ie,O,oe[0]-me/2*Ie,oe[1]-me/2*O),E+=me/2}return h=this.MakeFromRSXform(h,U,_),$&&$.delete(),g.delete(),h}},i.TextBlob.MakeFromRSXform=function(h,g,_){var E=Ee(h)+1,P=i._malloc(E);return fe(h,Oe,P,E),h=D(g,"HEAPF32"),_=i.TextBlob._MakeFromRSXform(P,E-1,h,_),i._free(P),_||null},i.TextBlob.MakeFromRSXformGlyphs=function(h,g,_){var E=D(h,"HEAPU16");return g=D(g,"HEAPF32"),_=i.TextBlob._MakeFromRSXformGlyphs(E,2*h.length,g,_),R(E,h),_||null},i.TextBlob.MakeFromGlyphs=function(h,g){var _=D(h,"HEAPU16");return g=i.TextBlob._MakeFromGlyphs(_,2*h.length,g),R(_,h),g||null},i.TextBlob.MakeFromText=function(h,g){var _=Ee(h)+1,E=i._malloc(_);return fe(h,Oe,E,_),h=i.TextBlob._MakeFromText(E,_-1,g),i._free(E),h||null},i.MallocGlyphIDs=function(h){return i.Malloc(Uint16Array,h)}}),i.Vd=i.Vd||[],i.Vd.push(function(){i.MakePicture=function(h){h=new Uint8Array(h);var g=i._malloc(h.byteLength);return i.HEAPU8.set(h,g),(h=i._MakePicture(g,h.byteLength))?h:null}}),i.Vd=i.Vd||[],i.Vd.push(function(){i.RuntimeEffect.Make=function(h,g){return i.RuntimeEffect._Make(h,{onError:g||function(_){console.log("RuntimeEffect error",_)}})},i.RuntimeEffect.prototype.makeShader=function(h,g){var _=!h._ck,E=D(h,"HEAPF32");return g=Q(g),this._makeShader(E,4*h.length,_,g)},i.RuntimeEffect.prototype.makeShaderWithChildren=function(h,g,_){var E=!h._ck,P=D(h,"HEAPF32");_=Q(_);for(var U=[],$=0;$T||1=T||!T||(this.Ke=T,this.Qd.setStrokeWidth(T))}}),Object.defineProperty(this,"miterLimit",{enumerable:!0,get:function(){return this.Qd.getStrokeMiter()},set:function(T){0>=T||!T||this.Qd.setStrokeMiter(T)}}),Object.defineProperty(this,"shadowBlur",{enumerable:!0,get:function(){return this.we},set:function(T){0>T||!isFinite(T)||(this.we=T)}}),Object.defineProperty(this,"shadowColor",{enumerable:!0,get:function(){return g(this.Je)},set:function(T){this.Je=_(T)}}),Object.defineProperty(this,"shadowOffsetX",{enumerable:!0,get:function(){return this.xe},set:function(T){isFinite(T)&&(this.xe=T)}}),Object.defineProperty(this,"shadowOffsetY",{enumerable:!0,get:function(){return this.ye},set:function(T){isFinite(T)&&(this.ye=T)}}),Object.defineProperty(this,"strokeStyle",{enumerable:!0,get:function(){return g(this.he)},set:function(T){typeof T=="string"?this.he=_(T):T.ue&&(this.he=T)}}),this.arc=function(T,j,W,G,K,ee){X(this.Sd,T,j,W,W,0,G,K,ee)},this.arcTo=function(T,j,W,G,K){me(this.Sd,T,j,W,G,K)},this.beginPath=function(){this.Sd.delete(),this.Sd=new i.Path},this.bezierCurveTo=function(T,j,W,G,K,ee){var le=this.Sd;h([T,j,W,G,K,ee])&&(le.isEmpty()&&le.moveTo(T,j),le.cubicTo(T,j,W,G,K,ee))},this.clearRect=function(T,j,W,G){this.Qd.setStyle(i.PaintStyle.Fill),this.Qd.setBlendMode(i.BlendMode.Clear),this.Nd.drawRect(i.XYWHRect(T,j,W,G),this.Qd),this.Qd.setBlendMode(this.Pd)},this.clip=function(T,j){typeof T=="string"?(j=T,T=this.Sd):T&&T.$e&&(T=T.Wd),T||(T=this.Sd),T=T.copy(),j&&j.toLowerCase()==="evenodd"?T.setFillType(i.FillType.EvenOdd):T.setFillType(i.FillType.Winding),this.Nd.clipPath(T,i.ClipOp.Intersect,!0),T.delete()},this.closePath=function(){Ie(this.Sd)},this.createImageData=function(){if(arguments.length===1){var T=arguments[0];return new oe(new Uint8ClampedArray(4*T.width*T.height),T.width,T.height)}if(arguments.length===2){T=arguments[0];var j=arguments[1];return new oe(new Uint8ClampedArray(4*T*j),T,j)}throw"createImageData expects 1 or 2 arguments, got "+arguments.length},this.createLinearGradient=function(T,j,W,G){if(h(arguments)){var K=new _e(T,j,W,G);return this.Ce.push(K),K}},this.createPattern=function(T,j){return T=new Je(T,j),this.Ce.push(T),T},this.createRadialGradient=function(T,j,W,G,K,ee){if(h(arguments)){var le=new mt(T,j,W,G,K,ee);return this.Ce.push(le),le}},this.drawImage=function(T){T instanceof $&&(T=T.tf());var j=this.Pe();if(arguments.length===3||arguments.length===5)var W=i.XYWHRect(arguments[1],arguments[2],arguments[3]||T.width(),arguments[4]||T.height()),G=i.XYWHRect(0,0,T.width(),T.height());else if(arguments.length===9)W=i.XYWHRect(arguments[5],arguments[6],arguments[7],arguments[8]),G=i.XYWHRect(arguments[1],arguments[2],arguments[3],arguments[4]);else throw"invalid number of args for drawImage, need 3, 5, or 9; got "+arguments.length;this.Nd.drawImageRect(T,G,W,j,!1),j.dispose()},this.ellipse=function(T,j,W,G,K,ee,le,ke){X(this.Sd,T,j,W,G,K,ee,le,ke)},this.Pe=function(){var T=this.Qd.copy();if(T.setStyle(i.PaintStyle.Fill),y(this.be)){var j=i.multiplyByAlpha(this.be,this.ke);T.setColor(j)}else j=this.be.ue(this.Ud),T.setColor(i.Color(0,0,0,this.ke)),T.setShader(j);return T.dispose=function(){this.delete()},T},this.fill=function(T,j){if(typeof T=="string"?(j=T,T=this.Sd):T&&T.$e&&(T=T.Wd),j==="evenodd")this.Sd.setFillType(i.FillType.EvenOdd);else{if(j!=="nonzero"&&j)throw"invalid fill rule";this.Sd.setFillType(i.FillType.Winding)}T||(T=this.Sd),j=this.Pe();var W=this.ze(j);W&&(this.Nd.save(),this.se(),this.Nd.drawPath(T,W),this.Nd.restore(),W.dispose()),this.Nd.drawPath(T,j),j.dispose()},this.fillRect=function(T,j,W,G){var K=this.Pe(),ee=this.ze(K);ee&&(this.Nd.save(),this.se(),this.Nd.drawRect(i.XYWHRect(T,j,W,G),ee),this.Nd.restore(),ee.dispose()),this.Nd.drawRect(i.XYWHRect(T,j,W,G),K),K.dispose()},this.fillText=function(T,j,W){var G=this.Pe();T=i.TextBlob.MakeFromText(T,this.ne);var K=this.ze(G);K&&(this.Nd.save(),this.se(),this.Nd.drawTextBlob(T,j,W,K),this.Nd.restore(),K.dispose()),this.Nd.drawTextBlob(T,j,W,G),T.delete(),G.dispose()},this.getImageData=function(T,j,W,G){return(T=this.Nd.readPixels(T,j,{width:W,height:G,colorType:i.ColorType.RGBA_8888,alphaType:i.AlphaType.Unpremul,colorSpace:i.ColorSpace.SRGB}))?new oe(new Uint8ClampedArray(T.buffer),W,G):null},this.getLineDash=function(){return this.ve.slice()},this.nf=function(T){var j=i.Matrix.invert(this.Ud);return i.Matrix.mapPoints(j,T),T},this.isPointInPath=function(T,j,W){var G=arguments;if(G.length===3)var K=this.Sd;else if(G.length===4)K=G[0],T=G[1],j=G[2],W=G[3];else throw"invalid arg count, need 3 or 4, got "+G.length;return!isFinite(T)||!isFinite(j)||(W=W||"nonzero",W!=="nonzero"&&W!=="evenodd")?!1:(G=this.nf([T,j]),T=G[0],j=G[1],K.setFillType(W==="nonzero"?i.FillType.Winding:i.FillType.EvenOdd),K.contains(T,j))},this.isPointInStroke=function(T,j){var W=arguments;if(W.length===2)var G=this.Sd;else if(W.length===3)G=W[0],T=W[1],j=W[2];else throw"invalid arg count, need 2 or 3, got "+W.length;return!isFinite(T)||!isFinite(j)?!1:(W=this.nf([T,j]),T=W[0],j=W[1],G=G.copy(),G.setFillType(i.FillType.Winding),G.stroke({width:this.lineWidth,miter_limit:this.miterLimit,cap:this.Qd.getStrokeCap(),join:this.Qd.getStrokeJoin(),precision:.3}),W=G.contains(T,j),G.delete(),W)},this.lineTo=function(T,j){Se(this.Sd,T,j)},this.measureText=function(T){T=this.ne.getGlyphIDs(T),T=this.ne.getGlyphWidths(T);let j=0;for(let W of T)j+=W;return{width:j}},this.moveTo=function(T,j){var W=this.Sd;h([T,j])&&W.moveTo(T,j)},this.putImageData=function(T,j,W,G,K,ee,le){if(h([j,W,G,K,ee,le])){if(G===void 0)this.Nd.writePixels(T.data,T.width,T.height,j,W);else if(G=G||0,K=K||0,ee=ee||T.width,le=le||T.height,0>ee&&(G+=ee,ee=Math.abs(ee)),0>le&&(K+=le,le=Math.abs(le)),0>G&&(ee+=G,G=0),0>K&&(le+=K,K=0),!(0>=ee||0>=le)){T=i.MakeImage({width:T.width,height:T.height,alphaType:i.AlphaType.Unpremul,colorType:i.ColorType.RGBA_8888,colorSpace:i.ColorSpace.SRGB},T.data,4*T.width);var ke=i.XYWHRect(G,K,ee,le);j=i.XYWHRect(j+G,W+K,ee,le),W=i.Matrix.invert(this.Ud),this.Nd.save(),this.Nd.concat(W),this.Nd.drawImageRect(T,ke,j,null,!1),this.Nd.restore(),T.delete()}}},this.quadraticCurveTo=function(T,j,W,G){var K=this.Sd;h([T,j,W,G])&&(K.isEmpty()&&K.moveTo(T,j),K.quadTo(T,j,W,G))},this.rect=function(T,j,W,G){var K=this.Sd;T=i.XYWHRect(T,j,W,G),h(T)&&K.addRect(T)},this.resetTransform=function(){this.Sd.transform(this.Ud);var T=i.Matrix.invert(this.Ud);this.Nd.concat(T),this.Ud=this.Nd.getTotalMatrix()},this.restore=function(){var T=this.mf.pop();if(T){var j=i.Matrix.multiply(this.Ud,i.Matrix.invert(T.Gf));this.Sd.transform(j),this.Qd.delete(),this.Qd=T.$f,this.ve=T.Yf,this.Ke=T.mg,this.he=T.lg,this.be=T.fs,this.xe=T.jg,this.ye=T.kg,this.we=T.dg,this.Je=T.ig,this.ke=T.Nf,this.Pd=T.Of,this.Ie=T.Zf,this.Qe=T.Mf,this.Nd.restore(),this.Ud=this.Nd.getTotalMatrix()}},this.rotate=function(T){if(isFinite(T)){var j=i.Matrix.rotated(-T);this.Sd.transform(j),this.Nd.rotate(T/Math.PI*180,0,0),this.Ud=this.Nd.getTotalMatrix()}},this.save=function(){if(this.be.te){var T=this.be.te();this.Ce.push(T)}else T=this.be;if(this.he.te){var j=this.he.te();this.Ce.push(j)}else j=this.he;this.mf.push({Gf:this.Ud.slice(),Yf:this.ve.slice(),mg:this.Ke,lg:j,fs:T,jg:this.xe,kg:this.ye,dg:this.we,ig:this.Je,Nf:this.ke,Zf:this.Ie,Of:this.Pd,$f:this.Qd.copy(),Mf:this.Qe}),this.Nd.save()},this.scale=function(T,j){if(h(arguments)){var W=i.Matrix.scaled(1/T,1/j);this.Sd.transform(W),this.Nd.scale(T,j),this.Ud=this.Nd.getTotalMatrix()}},this.setLineDash=function(T){for(var j=0;jT[j])return;T.length%2===1&&Array.prototype.push.apply(T,T),this.ve=T},this.setTransform=function(T,j,W,G,K,ee){h(arguments)&&(this.resetTransform(),this.transform(T,j,W,G,K,ee))},this.se=function(){var T=i.Matrix.invert(this.Ud);this.Nd.concat(T),this.Nd.concat(i.Matrix.translated(this.xe,this.ye)),this.Nd.concat(this.Ud)},this.ze=function(T){var j=i.multiplyByAlpha(this.Je,this.ke);if(!i.getColorComponents(j)[3]||!(this.we||this.ye||this.xe))return null;T=T.copy(),T.setColor(j);var W=i.MaskFilter.MakeBlur(i.BlurStyle.Normal,this.we/2,!1);return T.setMaskFilter(W),T.dispose=function(){W.delete(),this.delete()},T},this.bf=function(){var T=this.Qd.copy();if(T.setStyle(i.PaintStyle.Stroke),y(this.he)){var j=i.multiplyByAlpha(this.he,this.ke);T.setColor(j)}else j=this.he.ue(this.Ud),T.setColor(i.Color(0,0,0,this.ke)),T.setShader(j);if(T.setStrokeWidth(this.Ke),this.ve.length){var W=i.PathEffect.MakeDash(this.ve,this.Ie);T.setPathEffect(W)}return T.dispose=function(){W&&W.delete(),this.delete()},T},this.stroke=function(T){T=T?T.Wd:this.Sd;var j=this.bf(),W=this.ze(j);W&&(this.Nd.save(),this.se(),this.Nd.drawPath(T,W),this.Nd.restore(),W.dispose()),this.Nd.drawPath(T,j),j.dispose()},this.strokeRect=function(T,j,W,G){var K=this.bf(),ee=this.ze(K);ee&&(this.Nd.save(),this.se(),this.Nd.drawRect(i.XYWHRect(T,j,W,G),ee),this.Nd.restore(),ee.dispose()),this.Nd.drawRect(i.XYWHRect(T,j,W,G),K),K.dispose()},this.strokeText=function(T,j,W){var G=this.bf();T=i.TextBlob.MakeFromText(T,this.ne);var K=this.ze(G);K&&(this.Nd.save(),this.se(),this.Nd.drawTextBlob(T,j,W,K),this.Nd.restore(),K.dispose()),this.Nd.drawTextBlob(T,j,W,G),T.delete(),G.dispose()},this.translate=function(T,j){if(h(arguments)){var W=i.Matrix.translated(-T,-j);this.Sd.transform(W),this.Nd.translate(T,j),this.Ud=this.Nd.getTotalMatrix()}},this.transform=function(T,j,W,G,K,ee){T=[T,W,K,j,G,ee,0,0,1],j=i.Matrix.invert(T),this.Sd.transform(j),this.Nd.concat(T),this.Ud=this.Nd.getTotalMatrix()},this.addHitRegion=function(){},this.clearHitRegions=function(){},this.drawFocusIfNeeded=function(){},this.removeHitRegion=function(){},this.scrollPathIntoView=function(){},Object.defineProperty(this,"canvas",{value:null,writable:!1})}function U(te){this.cf=te,this.Md=new P(te.getCanvas()),this.Re=[],this.decodeImage=function(T){if(T=i.MakeImageFromEncoded(T),!T)throw"Invalid input";return this.Re.push(T),new $(T)},this.loadFont=function(T,j){if(T=i.Typeface.MakeFreeTypeFaceFromData(T),!T)return null;this.Re.push(T);var W=(j.style||"normal")+"|"+(j.variant||"normal")+"|"+(j.weight||"normal");j=j.family,ze[j]||(ze[j]={"*":T}),ze[j][W]=T},this.makePath2D=function(T){return T=new Be(T),this.Re.push(T.Wd),T},this.getContext=function(T){return T==="2d"?this.Md:null},this.toDataURL=function(T,j){this.cf.flush();var W=this.cf.makeImageSnapshot();if(W){T=T||"image/png";var G=i.ImageFormat.PNG;if(T==="image/jpeg"&&(G=i.ImageFormat.JPEG),j=W.encodeToBytes(G,j||.92)){if(W.delete(),T="data:"+T+";base64,",typeof Buffer<"u")j=Buffer.from(j).toString("base64");else{W=0,G=j.length;for(var K="",ee;WG||1G);ee++);this.ae.splice(ee,0,G),this.de.splice(ee,0,K)}},this.te=function(){var G=new _e(te,T,j,W);return G.de=this.de.slice(),G.ae=this.ae.slice(),G},this.me=function(){this.Yd&&(this.Yd.delete(),this.Yd=null)},this.ue=function(G){var K=[te,T,j,W];i.Matrix.mapPoints(G,K),G=K[0];var ee=K[1],le=K[2];return K=K[3],this.me(),this.Yd=i.Shader.MakeLinearGradient([G,ee],[le,K],this.de,this.ae,i.TileMode.Clamp)}}function me(te,T,j,W,G,K){if(h([T,j,W,G,K])){if(0>K)throw"radii cannot be negative";te.isEmpty()&&te.moveTo(T,j),te.arcToTangent(T,j,W,G,K)}}function Ie(te){if(!te.isEmpty()){var T=te.getBounds();(T[3]-T[1]||T[2]-T[0])&&te.close()}}function O(te,T,j,W,G,K,ee){ee=(ee-K)/Math.PI*180,K=K/Math.PI*180,T=i.LTRBRect(T-W,j-G,T+W,j+G),1e-5>Math.abs(Math.abs(ee)-360)?(j=ee/2,te.arcToOval(T,K,j,!1),te.arcToOval(T,K+j,j,!1)):te.arcToOval(T,K,ee,!1)}function X(te,T,j,W,G,K,ee,le,ke){if(h([T,j,W,G,K,ee,le])){if(0>W||0>G)throw"radii cannot be negative";var We=2*Math.PI,qt=ee%We;0>qt&&(qt+=We);var Oo=qt-ee;ee=qt,le+=Oo,!ke&&le-ee>=We?le=ee+We:ke&&ee-le>=We?le=ee-We:!ke&&ee>le?le=ee+(We-(ee-le)%We):ke&&eeee||1ee);ke++);this.ae.splice(ke,0,ee),this.de.splice(ke,0,le)}},this.te=function(){var ee=new mt(te,T,j,W,G,K);return ee.de=this.de.slice(),ee.ae=this.ae.slice(),ee},this.me=function(){this.Yd&&(this.Yd.delete(),this.Yd=null)},this.ue=function(ee){var le=[te,T,W,G];i.Matrix.mapPoints(ee,le);var ke=le[0],We=le[1],qt=le[2];le=le[3];var Oo=(Math.abs(ee[0])+Math.abs(ee[4]))/2;return ee=j*Oo,Oo*=K,this.me(),this.Yd=i.Shader.MakeTwoPointConicalGradient([ke,We],ee,[qt,le],Oo,this.de,this.ae,i.TileMode.Clamp)}}i._testing={};var jt={aliceblue:Float32Array.of(.941,.973,1,1),antiquewhite:Float32Array.of(.98,.922,.843,1),aqua:Float32Array.of(0,1,1,1),aquamarine:Float32Array.of(.498,1,.831,1),azure:Float32Array.of(.941,1,1,1),beige:Float32Array.of(.961,.961,.863,1),bisque:Float32Array.of(1,.894,.769,1),black:Float32Array.of(0,0,0,1),blanchedalmond:Float32Array.of(1,.922,.804,1),blue:Float32Array.of(0,0,1,1),blueviolet:Float32Array.of(.541,.169,.886,1),brown:Float32Array.of(.647,.165,.165,1),burlywood:Float32Array.of(.871,.722,.529,1),cadetblue:Float32Array.of(.373,.62,.627,1),chartreuse:Float32Array.of(.498,1,0,1),chocolate:Float32Array.of(.824,.412,.118,1),coral:Float32Array.of(1,.498,.314,1),cornflowerblue:Float32Array.of(.392,.584,.929,1),cornsilk:Float32Array.of(1,.973,.863,1),crimson:Float32Array.of(.863,.078,.235,1),cyan:Float32Array.of(0,1,1,1),darkblue:Float32Array.of(0,0,.545,1),darkcyan:Float32Array.of(0,.545,.545,1),darkgoldenrod:Float32Array.of(.722,.525,.043,1),darkgray:Float32Array.of(.663,.663,.663,1),darkgreen:Float32Array.of(0,.392,0,1),darkgrey:Float32Array.of(.663,.663,.663,1),darkkhaki:Float32Array.of(.741,.718,.42,1),darkmagenta:Float32Array.of(.545,0,.545,1),darkolivegreen:Float32Array.of(.333,.42,.184,1),darkorange:Float32Array.of(1,.549,0,1),darkorchid:Float32Array.of(.6,.196,.8,1),darkred:Float32Array.of(.545,0,0,1),darksalmon:Float32Array.of(.914,.588,.478,1),darkseagreen:Float32Array.of(.561,.737,.561,1),darkslateblue:Float32Array.of(.282,.239,.545,1),darkslategray:Float32Array.of(.184,.31,.31,1),darkslategrey:Float32Array.of(.184,.31,.31,1),darkturquoise:Float32Array.of(0,.808,.82,1),darkviolet:Float32Array.of(.58,0,.827,1),deeppink:Float32Array.of(1,.078,.576,1),deepskyblue:Float32Array.of(0,.749,1,1),dimgray:Float32Array.of(.412,.412,.412,1),dimgrey:Float32Array.of(.412,.412,.412,1),dodgerblue:Float32Array.of(.118,.565,1,1),firebrick:Float32Array.of(.698,.133,.133,1),floralwhite:Float32Array.of(1,.98,.941,1),forestgreen:Float32Array.of(.133,.545,.133,1),fuchsia:Float32Array.of(1,0,1,1),gainsboro:Float32Array.of(.863,.863,.863,1),ghostwhite:Float32Array.of(.973,.973,1,1),gold:Float32Array.of(1,.843,0,1),goldenrod:Float32Array.of(.855,.647,.125,1),gray:Float32Array.of(.502,.502,.502,1),green:Float32Array.of(0,.502,0,1),greenyellow:Float32Array.of(.678,1,.184,1),grey:Float32Array.of(.502,.502,.502,1),honeydew:Float32Array.of(.941,1,.941,1),hotpink:Float32Array.of(1,.412,.706,1),indianred:Float32Array.of(.804,.361,.361,1),indigo:Float32Array.of(.294,0,.51,1),ivory:Float32Array.of(1,1,.941,1),khaki:Float32Array.of(.941,.902,.549,1),lavender:Float32Array.of(.902,.902,.98,1),lavenderblush:Float32Array.of(1,.941,.961,1),lawngreen:Float32Array.of(.486,.988,0,1),lemonchiffon:Float32Array.of(1,.98,.804,1),lightblue:Float32Array.of(.678,.847,.902,1),lightcoral:Float32Array.of(.941,.502,.502,1),lightcyan:Float32Array.of(.878,1,1,1),lightgoldenrodyellow:Float32Array.of(.98,.98,.824,1),lightgray:Float32Array.of(.827,.827,.827,1),lightgreen:Float32Array.of(.565,.933,.565,1),lightgrey:Float32Array.of(.827,.827,.827,1),lightpink:Float32Array.of(1,.714,.757,1),lightsalmon:Float32Array.of(1,.627,.478,1),lightseagreen:Float32Array.of(.125,.698,.667,1),lightskyblue:Float32Array.of(.529,.808,.98,1),lightslategray:Float32Array.of(.467,.533,.6,1),lightslategrey:Float32Array.of(.467,.533,.6,1),lightsteelblue:Float32Array.of(.69,.769,.871,1),lightyellow:Float32Array.of(1,1,.878,1),lime:Float32Array.of(0,1,0,1),limegreen:Float32Array.of(.196,.804,.196,1),linen:Float32Array.of(.98,.941,.902,1),magenta:Float32Array.of(1,0,1,1),maroon:Float32Array.of(.502,0,0,1),mediumaquamarine:Float32Array.of(.4,.804,.667,1),mediumblue:Float32Array.of(0,0,.804,1),mediumorchid:Float32Array.of(.729,.333,.827,1),mediumpurple:Float32Array.of(.576,.439,.859,1),mediumseagreen:Float32Array.of(.235,.702,.443,1),mediumslateblue:Float32Array.of(.482,.408,.933,1),mediumspringgreen:Float32Array.of(0,.98,.604,1),mediumturquoise:Float32Array.of(.282,.82,.8,1),mediumvioletred:Float32Array.of(.78,.082,.522,1),midnightblue:Float32Array.of(.098,.098,.439,1),mintcream:Float32Array.of(.961,1,.98,1),mistyrose:Float32Array.of(1,.894,.882,1),moccasin:Float32Array.of(1,.894,.71,1),navajowhite:Float32Array.of(1,.871,.678,1),navy:Float32Array.of(0,0,.502,1),oldlace:Float32Array.of(.992,.961,.902,1),olive:Float32Array.of(.502,.502,0,1),olivedrab:Float32Array.of(.42,.557,.137,1),orange:Float32Array.of(1,.647,0,1),orangered:Float32Array.of(1,.271,0,1),orchid:Float32Array.of(.855,.439,.839,1),palegoldenrod:Float32Array.of(.933,.91,.667,1),palegreen:Float32Array.of(.596,.984,.596,1),paleturquoise:Float32Array.of(.686,.933,.933,1),palevioletred:Float32Array.of(.859,.439,.576,1),papayawhip:Float32Array.of(1,.937,.835,1),peachpuff:Float32Array.of(1,.855,.725,1),peru:Float32Array.of(.804,.522,.247,1),pink:Float32Array.of(1,.753,.796,1),plum:Float32Array.of(.867,.627,.867,1),powderblue:Float32Array.of(.69,.878,.902,1),purple:Float32Array.of(.502,0,.502,1),rebeccapurple:Float32Array.of(.4,.2,.6,1),red:Float32Array.of(1,0,0,1),rosybrown:Float32Array.of(.737,.561,.561,1),royalblue:Float32Array.of(.255,.412,.882,1),saddlebrown:Float32Array.of(.545,.271,.075,1),salmon:Float32Array.of(.98,.502,.447,1),sandybrown:Float32Array.of(.957,.643,.376,1),seagreen:Float32Array.of(.18,.545,.341,1),seashell:Float32Array.of(1,.961,.933,1),sienna:Float32Array.of(.627,.322,.176,1),silver:Float32Array.of(.753,.753,.753,1),skyblue:Float32Array.of(.529,.808,.922,1),slateblue:Float32Array.of(.416,.353,.804,1),slategray:Float32Array.of(.439,.502,.565,1),slategrey:Float32Array.of(.439,.502,.565,1),snow:Float32Array.of(1,.98,.98,1),springgreen:Float32Array.of(0,1,.498,1),steelblue:Float32Array.of(.275,.51,.706,1),tan:Float32Array.of(.824,.706,.549,1),teal:Float32Array.of(0,.502,.502,1),thistle:Float32Array.of(.847,.749,.847,1),tomato:Float32Array.of(1,.388,.278,1),transparent:Float32Array.of(0,0,0,0),turquoise:Float32Array.of(.251,.878,.816,1),violet:Float32Array.of(.933,.51,.933,1),wheat:Float32Array.of(.961,.871,.702,1),white:Float32Array.of(1,1,1,1),whitesmoke:Float32Array.of(.961,.961,.961,1),yellow:Float32Array.of(1,1,0,1),yellowgreen:Float32Array.of(.604,.804,.196,1)};i._testing.parseColor=_,i._testing.colorToString=g;var Lt=RegExp("(italic|oblique|normal|)\\s*(small-caps|normal|)\\s*(bold|bolder|lighter|[1-9]00|normal|)\\s*([\\d\\.]+)(px|pt|pc|in|cm|mm|%|em|ex|ch|rem|q)(.+)"),ze={"Noto Mono":{"*":null},monospace:{"*":null}};i._testing.parseFontString=E,i.MakeCanvas=function(te,T){return(te=i.MakeSurface(te,T))?new U(te):null},i.ImageData=function(){if(arguments.length===2){var te=arguments[0],T=arguments[1];return new oe(new Uint8ClampedArray(4*te*T),te,T)}if(arguments.length===3){var j=arguments[0];if(j.prototype.constructor!==Uint8ClampedArray)throw"bytes must be given as a Uint8ClampedArray";if(te=arguments[1],T=arguments[2],j%4)throw"bytes must be given in a multiple of 4";if(j%te)throw"bytes must divide evenly by width";if(T&&T!==j/(4*te))throw"invalid height given";return new oe(j,te,j/(4*te))}throw"invalid number of arguments - takes 2 or 3, saw "+arguments.length}}()}(o);var l=Object.assign({},o),m="./this.program",S=(i,u)=>{throw u},w=typeof window=="object",M=typeof importScripts=="function",N=typeof process=="object"&&typeof process.versions=="object"&&typeof process.versions.node=="string",I="",V,Y,q,J,ce,ie;N?(I=M?Qi("path").dirname(I)+"/":__dirname+"/",ie=()=>{ce||(J=Qi("fs"),ce=Qi("path"))},V=function(i,u){return ie(),i=ce.normalize(i),J.readFileSync(i,u?void 0:"utf8")},q=i=>(i=V(i,!0),i.buffer||(i=new Uint8Array(i)),i),Y=(i,u,p)=>{ie(),i=ce.normalize(i),J.readFile(i,function(y,v){y?p(y):u(v.buffer)})},1{if(be)throw process.exitCode=i,u;u instanceof Tl||se("exiting due to exception: "+u),process.exit(i)},o.inspect=function(){return"[Emscripten Module object]"}):(w||M)&&(M?I=self.location.href:typeof document<"u"&&document.currentScript&&(I=document.currentScript.src),t&&(I=t),I.indexOf("blob:")!==0?I=I.substr(0,I.replace(/[?#].*/,"").lastIndexOf("/")+1):I="",V=i=>{var u=new XMLHttpRequest;return u.open("GET",i,!1),u.send(null),u.responseText},M&&(q=i=>{var u=new XMLHttpRequest;return u.open("GET",i,!1),u.responseType="arraybuffer",u.send(null),new Uint8Array(u.response)}),Y=(i,u,p)=>{var y=new XMLHttpRequest;y.open("GET",i,!0),y.responseType="arraybuffer",y.onload=()=>{y.status==200||y.status==0&&y.response?u(y.response):p()},y.onerror=p,y.send(null)});var de=o.print||console.log.bind(console),se=o.printErr||console.warn.bind(console);Object.assign(o,l),l=null,o.thisProgram&&(m=o.thisProgram),o.quit&&(S=o.quit);var he=0,pe;o.wasmBinary&&(pe=o.wasmBinary);var be=o.noExitRuntime||!0;typeof WebAssembly!="object"&&yo("no native wasm support detected");var Ce,Xe=!1,B=typeof TextDecoder<"u"?new TextDecoder("utf8"):void 0;function z(i,u,p){var y=u+p;for(p=u;i[p]&&!(p>=y);)++p;if(16v?y+=String.fromCharCode(v):(v-=65536,y+=String.fromCharCode(55296|v>>10,56320|v&1023))}}else y+=String.fromCharCode(v)}return y}function re(i,u){return i?z(Oe,i,u):""}function fe(i,u,p,y){if(!(0=C){var x=i.charCodeAt(++A);C=65536+((C&1023)<<10)|x&1023}if(127>=C){if(p>=y)break;u[p++]=C}else{if(2047>=C){if(p+1>=y)break;u[p++]=192|C>>6}else{if(65535>=C){if(p+2>=y)break;u[p++]=224|C>>12}else{if(p+3>=y)break;u[p++]=240|C>>18,u[p++]=128|C>>12&63}u[p++]=128|C>>6&63}u[p++]=128|C&63}}return u[p]=0,p-v}function Ee(i){for(var u=0,p=0;p=y&&(y=65536+((y&1023)<<10)|i.charCodeAt(++p)&1023),127>=y?++u:u=2047>=y?u+2:65535>=y?u+3:u+4}return u}var ve=typeof TextDecoder<"u"?new TextDecoder("utf-16le"):void 0;function pt(i,u){for(var p=i>>1,y=p+u/2;!(p>=y)&&Nr[p];)++p;if(p<<=1,32=u/2);++y){var v=ar[i+2*y>>1];if(v==0)break;p+=String.fromCharCode(v)}return p}function ct(i,u,p){if(p===void 0&&(p=2147483647),2>p)return 0;p-=2;var y=u;p=p<2*i.length?p/2:i.length;for(var v=0;v>1]=i.charCodeAt(v),u+=2;return ar[u>>1]=0,u-y}function un(i){return 2*i.length}function Ye(i,u){for(var p=0,y="";!(p>=u/4);){var v=ne[i+4*p>>2];if(v==0)break;++p,65536<=v?(v-=65536,y+=String.fromCharCode(55296|v>>10,56320|v&1023)):y+=String.fromCharCode(v)}return y}function Jt(i,u,p){if(p===void 0&&(p=2147483647),4>p)return 0;var y=u;p=y+p-4;for(var v=0;v=A){var C=i.charCodeAt(++v);A=65536+((A&1023)<<10)|C&1023}if(ne[u>>2]=A,u+=4,u+4>p)break}return ne[u>>2]=0,u-y}function zc(i){for(var u=0,p=0;p=y&&++p,u+=4}return u}var ji,Ht,Oe,ar,Nr,ne,Fe,ye,Wa;function Ha(){var i=Ce.buffer;ji=i,o.HEAP8=Ht=new Int8Array(i),o.HEAP16=ar=new Int16Array(i),o.HEAP32=ne=new Int32Array(i),o.HEAPU8=Oe=new Uint8Array(i),o.HEAPU16=Nr=new Uint16Array(i),o.HEAPU32=Fe=new Uint32Array(i),o.HEAPF32=ye=new Float32Array(i),o.HEAPF64=Wa=new Float64Array(i)}var za,Va=[],Ga=[],$a=[];function Vc(){var i=o.preRun.shift();Va.unshift(i)}var _r=0,Mi=null,mo=null;function yo(i){throw o.onAbort&&o.onAbort(i),i="Aborted("+i+")",se(i),Xe=!0,i=new WebAssembly.RuntimeError(i+". Build with -sASSERTIONS for more info."),s(i),i}function qa(){return Tt.startsWith("data:application/octet-stream;base64,")}var Tt;if(Tt="canvaskit.wasm",!qa()){var Xa=Tt;Tt=o.locateFile?o.locateFile(Xa,I):I+Xa}function Za(){var i=Tt;try{if(i==Tt&&pe)return new Uint8Array(pe);if(q)return q(i);throw"both async and sync fetching of the wasm failed"}catch(u){yo(u)}}function Gc(){if(!pe&&(w||M)){if(typeof fetch=="function"&&!Tt.startsWith("file://"))return fetch(Tt,{credentials:"same-origin"}).then(function(i){if(!i.ok)throw"failed to load wasm binary file at '"+Tt+"'";return i.arrayBuffer()}).catch(function(){return Za()});if(Y)return new Promise(function(i,u){Y(Tt,function(p){i(new Uint8Array(p))},u)})}return Promise.resolve().then(function(){return Za()})}function Ri(i){for(;0>2])}var Dr={},br={},pn={};function Ka(i){if(i===void 0)return"_unknown";i=i.replace(/[^a-zA-Z0-9_]/g,"$");var u=i.charCodeAt(0);return 48<=u&&57>=u?"_"+i:i}function Oi(i,u){return i=Ka(i),function(){return u.apply(this,arguments)}}function Pi(i){var u=Error,p=Oi(i,function(y){this.name=i,this.message=y,y=Error(y).stack,y!==void 0&&(this.stack=this.toString()+` -`+y.replace(/^Error(:[^\n]*)?\n/,""))});return p.prototype=Object.create(u.prototype),p.prototype.constructor=p,p.prototype.toString=function(){return this.message===void 0?this.name:this.name+": "+this.message},p}var Ya=void 0;function cn(i){throw new Ya(i)}function Ct(i,u,p){function y(x){x=p(x),x.length!==i.length&&cn("Mismatched type converter count");for(var R=0;R{br.hasOwnProperty(x)?v[R]=br[x]:(A.push(x),Dr.hasOwnProperty(x)||(Dr[x]=[]),Dr[x].push(()=>{v[R]=br[x],++C,C===A.length&&y(v)}))}),A.length===0&&y(v)}function fn(i){switch(i){case 1:return 0;case 2:return 1;case 4:return 2;case 8:return 3;default:throw new TypeError("Unknown type size: "+i)}}var Ja=void 0;function Ze(i){for(var u="";Oe[i];)u+=Ja[Oe[i++]];return u}var Br=void 0;function Pe(i){throw new Br(i)}function zt(i,u,p={}){if(!("argPackAdvance"in u))throw new TypeError("registerType registeredInstance requires argPackAdvance");var y=u.name;if(i||Pe('type "'+y+'" must have a positive integer typeid pointer'),br.hasOwnProperty(i)){if(p.Vf)return;Pe("Cannot register type '"+y+"' twice")}br[i]=u,delete pn[i],Dr.hasOwnProperty(i)&&(u=Dr[i],delete Dr[i],u.forEach(v=>v()))}function Ci(i){Pe(i.Ld.Xd.Rd.name+" instance already deleted")}var Ni=!1;function Qa(){}function el(i){--i.count.value,i.count.value===0&&(i.$d?i.fe.le(i.$d):i.Xd.Rd.le(i.Td))}function tl(i,u,p){return u===p?i:p.ie===void 0?null:(i=tl(i,u,p.ie),i===null?null:p.Jf(i))}var rl={},bo=[];function Di(){for(;bo.length;){var i=bo.pop();i.Ld.Fe=!1,i.delete()}}var vo=void 0,So={};function $c(i,u){for(u===void 0&&Pe("ptr should not be undefined");i.ie;)u=i.Oe(u),i=i.ie;return So[u]}function dn(i,u){return u.Xd&&u.Td||cn("makeClassHandle requires ptr and ptrType"),!!u.fe!=!!u.$d&&cn("Both smartPtrType and smartPtr must be specified"),u.count={value:1},To(Object.create(i,{Ld:{value:u}}))}function To(i){return typeof FinalizationRegistry>"u"?(To=u=>u,i):(Ni=new FinalizationRegistry(u=>{el(u.Ld)}),To=u=>{var p=u.Ld;return p.$d&&Ni.register(u,{Ld:p},u),u},Qa=u=>{Ni.unregister(u)},To(i))}function lr(){}function Bi(i,u,p){if(i[u].Zd===void 0){var y=i[u];i[u]=function(){return i[u].Zd.hasOwnProperty(arguments.length)||Pe("Function '"+p+"' called with an invalid number of arguments ("+arguments.length+") - expects one of ("+i[u].Zd+")!"),i[u].Zd[arguments.length].apply(this,arguments)},i[u].Zd=[],i[u].Zd[y.De]=y}}function Li(i,u,p){o.hasOwnProperty(i)?((p===void 0||o[i].Zd!==void 0&&o[i].Zd[p]!==void 0)&&Pe("Cannot register public name '"+i+"' twice"),Bi(o,i,i),o.hasOwnProperty(p)&&Pe("Cannot register multiple overloads of a function with the same number of arguments ("+p+")!"),o[i].Zd[p]=u):(o[i]=u,p!==void 0&&(o[i].tg=p))}function qc(i,u,p,y,v,A,C,x){this.name=i,this.constructor=u,this.Ge=p,this.le=y,this.ie=v,this.Pf=A,this.Oe=C,this.Jf=x,this.bg=[]}function Fi(i,u,p){for(;u!==p;)u.Oe||Pe("Expected null or instance of "+p.name+", got an instance of "+u.name),i=u.Oe(i),u=u.ie;return i}function Xc(i,u){return u===null?(this.ff&&Pe("null is not a valid "+this.name),0):(u.Ld||Pe('Cannot pass "'+Wi(u)+'" as a '+this.name),u.Ld.Td||Pe("Cannot pass deleted object as a pointer of type "+this.name),Fi(u.Ld.Td,u.Ld.Xd.Rd,this.Rd))}function Zc(i,u){if(u===null){if(this.ff&&Pe("null is not a valid "+this.name),this.Ue){var p=this.gf();return i!==null&&i.push(this.le,p),p}return 0}if(u.Ld||Pe('Cannot pass "'+Wi(u)+'" as a '+this.name),u.Ld.Td||Pe("Cannot pass deleted object as a pointer of type "+this.name),!this.Te&&u.Ld.Xd.Te&&Pe("Cannot convert argument of type "+(u.Ld.fe?u.Ld.fe.name:u.Ld.Xd.name)+" to parameter type "+this.name),p=Fi(u.Ld.Td,u.Ld.Xd.Rd,this.Rd),this.Ue)switch(u.Ld.$d===void 0&&Pe("Passing raw pointer to smart pointer is illegal"),this.hg){case 0:u.Ld.fe===this?p=u.Ld.$d:Pe("Cannot convert argument of type "+(u.Ld.fe?u.Ld.fe.name:u.Ld.Xd.name)+" to parameter type "+this.name);break;case 1:p=u.Ld.$d;break;case 2:if(u.Ld.fe===this)p=u.Ld.$d;else{var y=u.clone();p=this.cg(p,wt(function(){y.delete()})),i!==null&&i.push(this.le,p)}break;default:Pe("Unsupporting sharing policy")}return p}function Kc(i,u){return u===null?(this.ff&&Pe("null is not a valid "+this.name),0):(u.Ld||Pe('Cannot pass "'+Wi(u)+'" as a '+this.name),u.Ld.Td||Pe("Cannot pass deleted object as a pointer of type "+this.name),u.Ld.Xd.Te&&Pe("Cannot convert argument of type "+u.Ld.Xd.name+" to parameter type "+this.name),Fi(u.Ld.Td,u.Ld.Xd.Rd,this.Rd))}function Vt(i,u,p,y,v,A,C,x,R,D,Z){this.name=i,this.Rd=u,this.ff=p,this.Te=y,this.Ue=v,this.ag=A,this.hg=C,this.vf=x,this.gf=R,this.cg=D,this.le=Z,v||u.ie!==void 0?this.toWireType=Zc:(this.toWireType=y?Xc:Kc,this.ee=null)}function ol(i,u,p){o.hasOwnProperty(i)||cn("Replacing nonexistant public symbol"),o[i].Zd!==void 0&&p!==void 0?o[i].Zd[p]=u:(o[i]=u,o[i].De=p)}function Yc(i,u){var p=[];return function(){if(p.length=0,Object.assign(p,arguments),i.includes("j")){var y=o["dynCall_"+i];y=p&&p.length?y.apply(null,[u].concat(p)):y.call(null,u)}else y=et(u).apply(null,p);return y}}function nt(i,u){i=Ze(i);var p=i.includes("j")?Yc(i,u):et(u);return typeof p!="function"&&Pe("unknown function pointer with signature "+i+": "+u),p}var nl=void 0;function il(i){i=Sl(i);var u=Ze(i);return Qt(i),u}function Eo(i,u){function p(A){v[A]||br[A]||(pn[A]?pn[A].forEach(p):(y.push(A),v[A]=!0))}var y=[],v={};throw u.forEach(p),new nl(i+": "+y.map(il).join([", "]))}function hn(i,u,p,y,v){var A=u.length;2>A&&Pe("argTypes array size mismatch! Must at least get return value and 'this' types!");var C=u[1]!==null&&p!==null,x=!1;for(p=1;p>2]);return p}var Ui=[],Nt=[{},{value:void 0},{value:null},{value:!0},{value:!1}];function ki(i){4(i||Pe("Cannot use deleted val. handle = "+i),Nt[i].value),wt=i=>{switch(i){case void 0:return 1;case null:return 2;case!0:return 3;case!1:return 4;default:var u=Ui.length?Ui.pop():Nt.length;return Nt[u]={hf:1,value:i},u}};function Jc(i,u,p){switch(u){case 0:return function(y){return this.fromWireType((p?Ht:Oe)[y])};case 1:return function(y){return this.fromWireType((p?ar:Nr)[y>>1])};case 2:return function(y){return this.fromWireType((p?ne:Fe)[y>>2])};default:throw new TypeError("Unknown integer type: "+i)}}function wo(i,u){var p=br[i];return p===void 0&&Pe(u+" has unknown type "+il(i)),p}function Wi(i){if(i===null)return"null";var u=typeof i;return u==="object"||u==="array"||u==="function"?i.toString():""+i}function Qc(i,u){switch(u){case 2:return function(p){return this.fromWireType(ye[p>>2])};case 3:return function(p){return this.fromWireType(Wa[p>>3])};default:throw new TypeError("Unknown float type: "+i)}}function ef(i,u,p){switch(u){case 0:return p?function(y){return Ht[y]}:function(y){return Oe[y]};case 1:return p?function(y){return ar[y>>1]}:function(y){return Nr[y>>1]};case 2:return p?function(y){return ne[y>>2]}:function(y){return Fe[y>>2]};default:throw new TypeError("Unknown integer type: "+i)}}var tf={};function yn(i){var u=tf[i];return u===void 0?Ze(i):u}var _n=[];function sl(){function i(u){u.$$$embind_global$$$=u;var p=typeof $$$embind_global$$$=="object"&&u.$$$embind_global$$$==u;return p||delete u.$$$embind_global$$$,p}if(typeof globalThis=="object")return globalThis;if(typeof $$$embind_global$$$=="object"||(typeof global=="object"&&i(global)?$$$embind_global$$$=global:typeof self=="object"&&i(self)&&($$$embind_global$$$=self),typeof $$$embind_global$$$=="object"))return $$$embind_global$$$;throw Error("unable to get global object.")}function rf(i){var u=_n.length;return _n.push(i),u}function of(i,u){for(var p=Array(i),y=0;y>2],"parameter "+y);return p}var al=[];function nf(i){var u=Array(i+1);return function(p,y,v){u[0]=p;for(var A=0;A>2],"parameter "+A);u[A+1]=C.readValueFromPointer(v),v+=C.argPackAdvance}return p=new(p.bind.apply(p,u)),wt(p)}}var ll={},ul;ul=N?()=>{var i=process.hrtime();return 1e3*i[0]+i[1]/1e6}:()=>performance.now();function sf(i){var u=i.getExtension("ANGLE_instanced_arrays");u&&(i.vertexAttribDivisor=function(p,y){u.vertexAttribDivisorANGLE(p,y)},i.drawArraysInstanced=function(p,y,v,A){u.drawArraysInstancedANGLE(p,y,v,A)},i.drawElementsInstanced=function(p,y,v,A,C){u.drawElementsInstancedANGLE(p,y,v,A,C)})}function af(i){var u=i.getExtension("OES_vertex_array_object");u&&(i.createVertexArray=function(){return u.createVertexArrayOES()},i.deleteVertexArray=function(p){u.deleteVertexArrayOES(p)},i.bindVertexArray=function(p){u.bindVertexArrayOES(p)},i.isVertexArray=function(p){return u.isVertexArrayOES(p)})}function lf(i){var u=i.getExtension("WEBGL_draw_buffers");u&&(i.drawBuffers=function(p,y){u.drawBuffersWEBGL(p,y)})}var gl=1,bn=[],Dt=[],vn=[],Ao=[],At=[],Bt=[],ur=[],Gt=[],vr=[],Sr=[],pl={},cl={},fl=4;function Ue(i){Sn||(Sn=i)}function Lr(i){for(var u=gl++,p=i.length;p"u"||u.Kf)&&pf(y),p}function dl(i){return we=Gt[i],o.rg=L=we&&we.ge,!(i&&!L)}function pf(i){if(i||(i=we),!i.Wf){i.Wf=!0;var u=i.ge;sf(u),af(u),lf(u),u.qf=u.getExtension("WEBGL_draw_instanced_base_vertex_base_instance"),u.uf=u.getExtension("WEBGL_multi_draw_instanced_base_vertex_base_instance"),2<=i.version&&(u.rf=u.getExtension("EXT_disjoint_timer_query_webgl2")),(2>i.version||!u.rf)&&(u.rf=u.getExtension("EXT_disjoint_timer_query")),u.sg=u.getExtension("WEBGL_multi_draw"),(u.getSupportedExtensions()||[]).forEach(function(p){p.includes("lose_context")||p.includes("debug")||u.getExtension(p)})}}var we,Sn,Tn=[];function Tr(i,u,p,y){for(var v=0;v>2]=C}}function hl(i,u,p){if(u){var y=void 0;switch(i){case 36346:y=1;break;case 36344:p!=0&&p!=1&&Ue(1280);return;case 34814:case 36345:y=0;break;case 34466:var v=L.getParameter(34467);y=v?v.length:0;break;case 33309:if(2>we.version){Ue(1282);return}y=2*(L.getSupportedExtensions()||[]).length;break;case 33307:case 33308:if(2>we.version){Ue(1280);return}y=i==33307?3:0}if(y===void 0)switch(v=L.getParameter(i),typeof v){case"number":y=v;break;case"boolean":y=v?1:0;break;case"string":Ue(1280);return;case"object":if(v===null)switch(i){case 34964:case 35725:case 34965:case 36006:case 36007:case 32873:case 34229:case 36662:case 36663:case 35053:case 35055:case 36010:case 35097:case 35869:case 32874:case 36389:case 35983:case 35368:case 34068:y=0;break;default:Ue(1280);return}else{if(v instanceof Float32Array||v instanceof Uint32Array||v instanceof Int32Array||v instanceof Array){for(i=0;i>2]=v[i];break;case 2:ye[u+4*i>>2]=v[i];break;case 4:Ht[u+i>>0]=v[i]?1:0}return}try{y=v.name|0}catch(A){Ue(1280),se("GL_INVALID_ENUM in glGet"+p+"v: Unknown object returned from WebGL getParameter("+i+")! (error: "+A+")");return}}break;default:Ue(1280),se("GL_INVALID_ENUM in glGet"+p+"v: Native code calling glGet"+p+"v("+i+") and it returns "+v+" of type "+typeof v+"!");return}switch(p){case 1:p=y,Fe[u>>2]=p,Fe[u+4>>2]=(p-Fe[u>>2])/4294967296;break;case 0:ne[u>>2]=y;break;case 2:ye[u>>2]=y;break;case 4:Ht[u>>0]=y?1:0}}else Ue(1281)}function xo(i){var u=Ee(i)+1,p=xn(u);return fe(i,Oe,p,u),p}function ml(i){return i.slice(-1)=="]"&&i.lastIndexOf("[")}function En(i){return i-=5120,i==0?Ht:i==1?Oe:i==2?ar:i==4?ne:i==6?ye:i==5||i==28922||i==28520||i==30779||i==30782?Fe:Nr}function Hi(i,u,p,y,v){i=En(i);var A=31-Math.clz32(i.BYTES_PER_ELEMENT),C=fl;return i.subarray(v>>A,v+y*(p*({5:3,6:4,8:2,29502:3,29504:4,26917:2,26918:2,29846:3,29847:4}[u-6402]||1)*(1<>A)}function De(i){var u=L.Hf;if(u){var p=u.Ne[i];return typeof p=="number"&&(u.Ne[i]=p=L.getUniformLocation(u,u.wf[i]+(0ft?-1:0xe-k.getDate())ge-=xe-k.getDate()+1,k.setDate(1),11>Ae?k.setMonth(Ae+1):(k.setMonth(0),k.setFullYear(k.getFullYear()+1));else{k.setDate(k.getDate()+ge);break}}return Ae=new Date(k.getFullYear()+1,0,4),ge=x(new Date(k.getFullYear(),0,4)),Ae=x(Ae),0>=C(ge,k)?0>=C(Ae,k)?k.getFullYear()+1:k.getFullYear():k.getFullYear()-1}var D=ne[y+40>>2];y={pg:ne[y>>2],og:ne[y+4>>2],Ye:ne[y+8>>2],jf:ne[y+12>>2],Ze:ne[y+16>>2],qe:ne[y+20>>2],je:ne[y+24>>2],pe:ne[y+28>>2],vg:ne[y+32>>2],ng:ne[y+36>>2],qg:D?re(D):""},p=re(p),D={"%c":"%a %b %d %H:%M:%S %Y","%D":"%m/%d/%y","%F":"%Y-%m-%d","%h":"%b","%r":"%I:%M:%S %p","%R":"%H:%M","%T":"%H:%M:%S","%x":"%m/%d/%y","%X":"%H:%M:%S","%Ec":"%c","%EC":"%C","%Ex":"%m/%d/%y","%EX":"%H:%M:%S","%Ey":"%y","%EY":"%Y","%Od":"%d","%Oe":"%e","%OH":"%H","%OI":"%I","%Om":"%m","%OM":"%M","%OS":"%S","%Ou":"%u","%OU":"%U","%OV":"%V","%Ow":"%w","%OW":"%W","%Oy":"%y"};for(var Z in D)p=p.replace(new RegExp(Z,"g"),D[Z]);var Q="Sunday Monday Tuesday Wednesday Thursday Friday Saturday".split(" "),ae="January February March April May June July August September October November December".split(" ");D={"%a":function(k){return Q[k.je].substring(0,3)},"%A":function(k){return Q[k.je]},"%b":function(k){return ae[k.Ze].substring(0,3)},"%B":function(k){return ae[k.Ze]},"%C":function(k){return A((k.qe+1900)/100|0,2)},"%d":function(k){return A(k.jf,2)},"%e":function(k){return v(k.jf,2," ")},"%g":function(k){return R(k).toString().substring(2)},"%G":function(k){return R(k)},"%H":function(k){return A(k.Ye,2)},"%I":function(k){return k=k.Ye,k==0?k=12:12k.Ye?"AM":"PM"},"%S":function(k){return A(k.pg,2)},"%t":function(){return" "},"%u":function(k){return k.je||7},"%U":function(k){return A(Math.floor((k.pe+7-k.je)/7),2)},"%V":function(k){var ge=Math.floor((k.pe+7-(k.je+6)%7)/7);if(2>=(k.je+371-k.pe-2)%7&&ge++,ge)ge==53&&(Ae=(k.je+371-k.pe)%7,Ae==4||Ae==3&&wn(k.qe)||(ge=1));else{ge=52;var Ae=(k.je+7-k.pe-1)%7;(Ae==4||Ae==5&&wn(k.qe%400-1))&&ge++}return A(ge,2)},"%w":function(k){return k.je},"%W":function(k){return A(Math.floor((k.pe+7-(k.je+6)%7)/7),2)},"%y":function(k){return(k.qe+1900).toString().substring(2)},"%Y":function(k){return k.qe+1900},"%z":function(k){k=k.ng;var ge=0<=k;return k=Math.abs(k)/60,(ge?"+":"-")+("0000"+(k/60*100+k%60)).slice(-4)},"%Z":function(k){return k.qg},"%%":function(){return"%"}},p=p.replace(/%%/g,"\0\0");for(Z in D)p.includes(Z)&&(p=p.replace(new RegExp(Z,"g"),D[Z](y)));return p=p.replace(/\0\0/g,"%"),Z=mf(p),Z.length>u?0:(Ht.set(Z,i),Z.length-1)}Ya=o.InternalError=Pi("InternalError");for(var vl=Array(256),An=0;256>An;++An)vl[An]=String.fromCharCode(An);Ja=vl,Br=o.BindingError=Pi("BindingError"),lr.prototype.isAliasOf=function(i){if(!(this instanceof lr&&i instanceof lr))return!1;var u=this.Ld.Xd.Rd,p=this.Ld.Td,y=i.Ld.Xd.Rd;for(i=i.Ld.Td;u.ie;)p=u.Oe(p),u=u.ie;for(;y.ie;)i=y.Oe(i),y=y.ie;return u===y&&p===i},lr.prototype.clone=function(){if(this.Ld.Td||Ci(this),this.Ld.Me)return this.Ld.count.value+=1,this;var i=To,u=Object,p=u.create,y=Object.getPrototypeOf(this),v=this.Ld;return i=i(p.call(u,y,{Ld:{value:{count:v.count,Fe:v.Fe,Me:v.Me,Td:v.Td,Xd:v.Xd,$d:v.$d,fe:v.fe}}})),i.Ld.count.value+=1,i.Ld.Fe=!1,i},lr.prototype.delete=function(){this.Ld.Td||Ci(this),this.Ld.Fe&&!this.Ld.Me&&Pe("Object already scheduled for deletion"),Qa(this),el(this.Ld),this.Ld.Me||(this.Ld.$d=void 0,this.Ld.Td=void 0)},lr.prototype.isDeleted=function(){return!this.Ld.Td},lr.prototype.deleteLater=function(){return this.Ld.Td||Ci(this),this.Ld.Fe&&!this.Ld.Me&&Pe("Object already scheduled for deletion"),bo.push(this),bo.length===1&&vo&&vo(Di),this.Ld.Fe=!0,this},o.getInheritedInstanceCount=function(){return Object.keys(So).length},o.getLiveInheritedInstances=function(){var i=[],u;for(u in So)So.hasOwnProperty(u)&&i.push(So[u]);return i},o.flushPendingDeletes=Di,o.setDelayFunction=function(i){vo=i,bo.length&&vo&&vo(Di)},Vt.prototype.Qf=function(i){return this.vf&&(i=this.vf(i)),i},Vt.prototype.pf=function(i){this.le&&this.le(i)},Vt.prototype.argPackAdvance=8,Vt.prototype.readValueFromPointer=_o,Vt.prototype.deleteObject=function(i){i!==null&&i.delete()},Vt.prototype.fromWireType=function(i){function u(){return this.Ue?dn(this.Rd.Ge,{Xd:this.ag,Td:p,fe:this,$d:i}):dn(this.Rd.Ge,{Xd:this,Td:i})}var p=this.Qf(i);if(!p)return this.pf(i),null;var y=$c(this.Rd,p);if(y!==void 0)return y.Ld.count.value===0?(y.Ld.Td=p,y.Ld.$d=i,y.clone()):(y=y.clone(),this.pf(i),y);if(y=this.Rd.Pf(p),y=rl[y],!y)return u.call(this);y=this.Te?y.Ff:y.pointerType;var v=tl(p,this.Rd,y.Rd);return v===null?u.call(this):this.Ue?dn(y.Rd.Ge,{Xd:y,Td:v,fe:this,$d:i}):dn(y.Rd.Ge,{Xd:y,Td:v})},nl=o.UnboundTypeError=Pi("UnboundTypeError"),o.count_emval_handles=function(){for(var i=0,u=5;uht;++ht)Tn.push(Array(ht));var df=new Float32Array(288);for(ht=0;288>ht;++ht)gr[ht]=df.subarray(0,ht+1);var hf=new Int32Array(288);for(ht=0;288>ht;++ht)jo[ht]=hf.subarray(0,ht+1);function mf(i){var u=Array(Ee(i)+1);return fe(i,u,0,u.length),u}var yf={U:function(){return 0},Bb:function(){},Db:function(){return 0},yb:function(){},zb:function(){},V:function(){},Ab:function(){},C:function(i){var u=gn[i];delete gn[i];var p=u.gf,y=u.le,v=u.sf,A=v.map(C=>C.Tf).concat(v.map(C=>C.fg));Ct([i],A,C=>{var x={};return v.forEach((R,D)=>{var Z=C[D],Q=R.Rf,ae=R.Sf,k=C[D+v.length],ge=R.eg,Ae=R.gg;x[R.Lf]={read:xe=>Z.fromWireType(Q(ae,xe)),write:(xe,ft)=>{var xt=[];ge(Ae,xe,k.toWireType(xt,ft)),Ii(xt)}}}),[{name:u.name,fromWireType:function(R){var D={},Z;for(Z in x)D[Z]=x[Z].read(R);return y(R),D},toWireType:function(R,D){for(var Z in x)if(!(Z in D))throw new TypeError('Missing field: "'+Z+'"');var Q=p();for(Z in x)x[Z].write(Q,D[Z]);return R!==null&&R.push(y,Q),Q},argPackAdvance:8,readValueFromPointer:_o,ee:y}]})},qb:function(){},Hb:function(i,u,p,y,v){var A=fn(p);u=Ze(u),zt(i,{name:u,fromWireType:function(C){return!!C},toWireType:function(C,x){return x?y:v},argPackAdvance:8,readValueFromPointer:function(C){if(p===1)var x=Ht;else if(p===2)x=ar;else if(p===4)x=ne;else throw new TypeError("Unknown boolean type size: "+u);return this.fromWireType(x[C>>A])},ee:null})},q:function(i,u,p,y,v,A,C,x,R,D,Z,Q,ae){Z=Ze(Z),A=nt(v,A),x&&(x=nt(C,x)),D&&(D=nt(R,D)),ae=nt(Q,ae);var k=Ka(Z);Li(k,function(){Eo("Cannot construct "+Z+" due to unbound types",[y])}),Ct([i,u,p],y?[y]:[],function(ge){if(ge=ge[0],y)var Ae=ge.Rd,xe=Ae.Ge;else xe=lr.prototype;ge=Oi(k,function(){if(Object.getPrototypeOf(this)!==ft)throw new Br("Use 'new' to construct "+Z);if(xt.oe===void 0)throw new Br(Z+" has no accessible constructor");var Ro=xt.oe[arguments.length];if(Ro===void 0)throw new Br("Tried to invoke ctor of "+Z+" with invalid number of parameters ("+arguments.length+") - expected ("+Object.keys(xt.oe).toString()+") parameters instead!");return Ro.apply(this,arguments)});var ft=Object.create(xe,{constructor:{value:ge}});ge.prototype=ft;var xt=new qc(Z,ge,ft,ae,Ae,A,x,D);Ae=new Vt(Z,xt,!0,!1,!1),xe=new Vt(Z+"*",xt,!1,!1,!1);var Mo=new Vt(Z+" const*",xt,!1,!0,!1);return rl[i]={pointerType:xe,Ff:Mo},ol(k,ge),[Ae,xe,Mo]})},h:function(i,u,p,y,v,A,C){var x=mn(p,y);u=Ze(u),A=nt(v,A),Ct([],[i],function(R){function D(){Eo("Cannot call "+Z+" due to unbound types",x)}R=R[0];var Z=R.name+"."+u;u.startsWith("@@")&&(u=Symbol[u.substring(2)]);var Q=R.Rd.constructor;return Q[u]===void 0?(D.De=p-1,Q[u]=D):(Bi(Q,u,Z),Q[u].Zd[p-1]=D),Ct([],x,function(ae){return ae=[ae[0],null].concat(ae.slice(1)),ae=hn(Z,ae,null,A,C),Q[u].Zd===void 0?(ae.De=p-1,Q[u]=ae):Q[u].Zd[p-1]=ae,[]}),[]})},B:function(i,u,p,y,v,A){0{Eo("Cannot construct "+x.name+" due to unbound types",C)},Ct([],C,function(D){return D.splice(1,0,null),x.Rd.oe[u-1]=hn(R,D,null,v,A),[]}),[]})},b:function(i,u,p,y,v,A,C,x){var R=mn(p,y);u=Ze(u),A=nt(v,A),Ct([],[i],function(D){function Z(){Eo("Cannot call "+Q+" due to unbound types",R)}D=D[0];var Q=D.name+"."+u;u.startsWith("@@")&&(u=Symbol[u.substring(2)]),x&&D.Rd.bg.push(u);var ae=D.Rd.Ge,k=ae[u];return k===void 0||k.Zd===void 0&&k.className!==D.name&&k.De===p-2?(Z.De=p-2,Z.className=D.name,ae[u]=Z):(Bi(ae,u,Q),ae[u].Zd[p-2]=Z),Ct([],R,function(ge){return ge=hn(Q,ge,D,A,C),ae[u].Zd===void 0?(ge.De=p-2,ae[u]=ge):ae[u].Zd[p-2]=ge,[]}),[]})},u:function(i,u,p){i=Ze(i),Ct([],[u],function(y){return y=y[0],o[i]=y.fromWireType(p),[]})},Gb:function(i,u){u=Ze(u),zt(i,{name:u,fromWireType:function(p){var y=Et(p);return ki(p),y},toWireType:function(p,y){return wt(y)},argPackAdvance:8,readValueFromPointer:_o,ee:null})},n:function(i,u,p,y){function v(){}p=fn(p),u=Ze(u),v.values={},zt(i,{name:u,constructor:v,fromWireType:function(A){return this.constructor.values[A]},toWireType:function(A,C){return C.value},argPackAdvance:8,readValueFromPointer:Jc(u,p,y),ee:null}),Li(u,v)},e:function(i,u,p){var y=wo(i,"enum");u=Ze(u),i=y.constructor,y=Object.create(y.constructor.prototype,{value:{value:p},constructor:{value:Oi(y.name+"_"+u,function(){})}}),i.values[p]=y,i[u]=y},Y:function(i,u,p){p=fn(p),u=Ze(u),zt(i,{name:u,fromWireType:function(y){return y},toWireType:function(y,v){return v},argPackAdvance:8,readValueFromPointer:Qc(u,p),ee:null})},y:function(i,u,p,y,v,A){var C=mn(u,p);i=Ze(i),v=nt(y,v),Li(i,function(){Eo("Cannot call "+i+" due to unbound types",C)},u-1),Ct([],C,function(x){return x=[x[0],null].concat(x.slice(1)),ol(i,hn(i,x,null,v,A),u-1),[]})},E:function(i,u,p,y,v){u=Ze(u),v===-1&&(v=4294967295),v=fn(p);var A=x=>x;if(y===0){var C=32-8*p;A=x=>x<>>C}p=u.includes("unsigned")?function(x,R){return R>>>0}:function(x,R){return R},zt(i,{name:u,fromWireType:A,toWireType:p,argPackAdvance:8,readValueFromPointer:ef(u,v,y!==0),ee:null})},v:function(i,u,p){function y(A){A>>=2;var C=Fe;return new v(ji,C[A+1],C[A])}var v=[Int8Array,Uint8Array,Int16Array,Uint16Array,Int32Array,Uint32Array,Float32Array,Float64Array][u];p=Ze(p),zt(i,{name:p,fromWireType:y,argPackAdvance:8,readValueFromPointer:y},{Vf:!0})},t:function(i,u,p,y,v,A,C,x,R,D,Z,Q){p=Ze(p),A=nt(v,A),x=nt(C,x),D=nt(R,D),Q=nt(Z,Q),Ct([i],[u],function(ae){return ae=ae[0],[new Vt(p,ae.Rd,!1,!1,!0,ae,y,A,x,D,Q)]})},X:function(i,u){u=Ze(u);var p=u==="std::string";zt(i,{name:u,fromWireType:function(y){var v=Fe[y>>2],A=y+4;if(p)for(var C=A,x=0;x<=v;++x){var R=A+x;if(x==v||Oe[R]==0){if(C=re(C,R-C),D===void 0)var D=C;else D+=String.fromCharCode(0),D+=C;C=R+1}}else{for(D=Array(v),x=0;x>2]=C,p&&A)fe(v,Oe,R,C+1);else if(A)for(A=0;ANr,x=1;else u===4&&(y=Ye,v=Jt,A=zc,C=()=>Fe,x=2);zt(i,{name:p,fromWireType:function(R){for(var D=Fe[R>>2],Z=C(),Q,ae=R+4,k=0;k<=D;++k){var ge=R+4+k*u;(k==D||Z[ge>>x]==0)&&(ae=y(ae,ge-ae),Q===void 0?Q=ae:(Q+=String.fromCharCode(0),Q+=ae),ae=ge+u)}return Qt(R),Q},toWireType:function(R,D){typeof D!="string"&&Pe("Cannot pass non-string to C++ string type "+p);var Z=A(D),Q=xn(4+Z+u);return Fe[Q>>2]=Z>>x,v(D,Q+4,Z+u),R!==null&&R.push(Qt,Q),Q},argPackAdvance:8,readValueFromPointer:_o,ee:function(R){Qt(R)}})},D:function(i,u,p,y,v,A){gn[i]={name:Ze(u),gf:nt(p,y),le:nt(v,A),sf:[]}},g:function(i,u,p,y,v,A,C,x,R,D){gn[i].sf.push({Lf:Ze(u),Tf:p,Rf:nt(y,v),Sf:A,fg:C,eg:nt(x,R),gg:D})},Ib:function(i,u){u=Ze(u),zt(i,{Xf:!0,name:u,argPackAdvance:0,fromWireType:function(){},toWireType:function(){}})},Fb:function(){return!0},sb:function(){throw 1/0},I:function(i,u,p){i=Et(i),u=wo(u,"emval::as");var y=[],v=wt(y);return Fe[p>>2]=v,u.toWireType(y,i)},$:function(i,u,p,y,v){i=_n[i],u=Et(u),p=yn(p);var A=[];return Fe[y>>2]=wt(A),i(u,p,A,v)},A:function(i,u,p,y){i=_n[i],u=Et(u),p=yn(p),i(u,p,null,y)},f:ki,M:function(i){return i===0?wt(sl()):(i=yn(i),wt(sl()[i]))},z:function(i,u){var p=of(i,u),y=p[0];u=y.name+"_$"+p.slice(1).map(function(C){return C.name}).join("_")+"$";var v=al[u];if(v!==void 0)return v;var A=Array(i-1);return v=rf((C,x,R,D)=>{for(var Z=0,Q=0;Q>>0)+4294967296*y)},ka:function(i,u,p,y){L.colorMask(!!i,!!u,!!p,!!y)},la:function(i){L.compileShader(Bt[i])},ma:function(i,u,p,y,v,A,C,x){2<=we.version?L.Ee||!C?L.compressedTexImage2D(i,u,p,y,v,A,C,x):L.compressedTexImage2D(i,u,p,y,v,A,Oe,x,C):L.compressedTexImage2D(i,u,p,y,v,A,x?Oe.subarray(x,x+C):null)},na:function(i,u,p,y,v,A,C,x,R){2<=we.version?L.Ee||!x?L.compressedTexSubImage2D(i,u,p,y,v,A,C,x,R):L.compressedTexSubImage2D(i,u,p,y,v,A,C,Oe,R,x):L.compressedTexSubImage2D(i,u,p,y,v,A,C,R?Oe.subarray(R,R+x):null)},Zb:function(i,u,p,y,v){L.copyBufferSubData(i,u,p,y,v)},oa:function(i,u,p,y,v,A,C,x){L.copyTexSubImage2D(i,u,p,y,v,A,C,x)},pa:function(){var i=Lr(Dt),u=L.createProgram();return u.name=i,u.Xe=u.Ve=u.We=0,u.kf=1,Dt[i]=u,i},qa:function(i){var u=Lr(Bt);return Bt[u]=L.createShader(i),u},ra:function(i){L.cullFace(i)},sa:function(i,u){for(var p=0;p>2],v=bn[y];v&&(L.deleteBuffer(v),v.name=0,bn[y]=null,y==L.df&&(L.df=0),y==L.Ee&&(L.Ee=0))}},hc:function(i,u){for(var p=0;p>2],v=vn[y];v&&(L.deleteFramebuffer(v),v.name=0,vn[y]=null)}},ta:function(i){if(i){var u=Dt[i];u?(L.deleteProgram(u),u.name=0,Dt[i]=null):Ue(1281)}},ic:function(i,u){for(var p=0;p>2],v=Ao[y];v&&(L.deleteRenderbuffer(v),v.name=0,Ao[y]=null)}},Sb:function(i,u){for(var p=0;p>2],v=vr[y];v&&(L.deleteSampler(v),v.name=0,vr[y]=null)}},ua:function(i){if(i){var u=Bt[i];u?(L.deleteShader(u),Bt[i]=null):Ue(1281)}},_b:function(i){if(i){var u=Sr[i];u?(L.deleteSync(u),u.name=0,Sr[i]=null):Ue(1281)}},va:function(i,u){for(var p=0;p>2],v=At[y];v&&(L.deleteTexture(v),v.name=0,At[y]=null)}},Dc:function(i,u){for(var p=0;p>2];L.deleteVertexArray(ur[y]),ur[y]=null}},yc:function(i,u){for(var p=0;p>2];L.deleteVertexArray(ur[y]),ur[y]=null}},wa:function(i){L.depthMask(!!i)},xa:function(i){L.disable(i)},ya:function(i){L.disableVertexAttribArray(i)},za:function(i,u,p){L.drawArrays(i,u,p)},Ac:function(i,u,p,y){L.drawArraysInstanced(i,u,p,y)},vc:function(i,u,p,y,v){L.qf.drawArraysInstancedBaseInstanceWEBGL(i,u,p,y,v)},tc:function(i,u){for(var p=Tn[i],y=0;y>2];L.drawBuffers(p)},Aa:function(i,u,p,y){L.drawElements(i,u,p,y)},Bc:function(i,u,p,y,v){L.drawElementsInstanced(i,u,p,y,v)},wc:function(i,u,p,y,v,A,C){L.qf.drawElementsInstancedBaseVertexBaseInstanceWEBGL(i,u,p,y,v,A,C)},nc:function(i,u,p,y,v,A){L.drawElements(i,y,v,A)},Ba:function(i){L.enable(i)},Ca:function(i){L.enableVertexAttribArray(i)},Xb:function(i,u){return(i=L.fenceSync(i,u))?(u=Lr(Sr),i.name=u,Sr[u]=i,u):0},Da:function(){L.finish()},Ea:function(){L.flush()},jc:function(i,u,p,y){L.framebufferRenderbuffer(i,u,p,Ao[y])},kc:function(i,u,p,y,v){L.framebufferTexture2D(i,u,p,At[y],v)},Fa:function(i){L.frontFace(i)},Ga:function(i,u){Tr(i,u,"createBuffer",bn)},lc:function(i,u){Tr(i,u,"createFramebuffer",vn)},mc:function(i,u){Tr(i,u,"createRenderbuffer",Ao)},Tb:function(i,u){Tr(i,u,"createSampler",vr)},Ha:function(i,u){Tr(i,u,"createTexture",At)},Ec:function(i,u){Tr(i,u,"createVertexArray",ur)},zc:function(i,u){Tr(i,u,"createVertexArray",ur)},bc:function(i){L.generateMipmap(i)},Ia:function(i,u,p){p?ne[p>>2]=L.getBufferParameter(i,u):Ue(1281)},Ja:function(){var i=L.getError()||Sn;return Sn=0,i},Ka:function(i,u){hl(i,u,2)},cc:function(i,u,p,y){i=L.getFramebufferAttachmentParameter(i,u,p),(i instanceof WebGLRenderbuffer||i instanceof WebGLTexture)&&(i=i.name|0),ne[y>>2]=i},N:function(i,u){hl(i,u,0)},La:function(i,u,p,y){i=L.getProgramInfoLog(Dt[i]),i===null&&(i="(unknown error)"),u=0>2]=u)},Ma:function(i,u,p){if(p)if(i>=gl)Ue(1281);else if(i=Dt[i],u==35716)i=L.getProgramInfoLog(i),i===null&&(i="(unknown error)"),ne[p>>2]=i.length+1;else if(u==35719){if(!i.Xe)for(u=0;u>2]=i.Xe}else if(u==35722){if(!i.Ve)for(u=0;u>2]=i.Ve}else if(u==35381){if(!i.We)for(u=0;u>2]=i.We}else ne[p>>2]=L.getProgramParameter(i,u);else Ue(1281)},dc:function(i,u,p){p?ne[p>>2]=L.getRenderbufferParameter(i,u):Ue(1281)},Na:function(i,u,p,y){i=L.getShaderInfoLog(Bt[i]),i===null&&(i="(unknown error)"),u=0>2]=u)},Ob:function(i,u,p,y){i=L.getShaderPrecisionFormat(i,u),ne[p>>2]=i.rangeMin,ne[p+4>>2]=i.rangeMax,ne[y>>2]=i.precision},Oa:function(i,u,p){p?u==35716?(i=L.getShaderInfoLog(Bt[i]),i===null&&(i="(unknown error)"),ne[p>>2]=i?i.length+1:0):u==35720?(i=L.getShaderSource(Bt[i]),ne[p>>2]=i?i.length+1:0):ne[p>>2]=L.getShaderParameter(Bt[i],u):Ue(1281)},R:function(i){var u=pl[i];if(!u){switch(i){case 7939:u=L.getSupportedExtensions()||[],u=u.concat(u.map(function(y){return"GL_"+y})),u=xo(u.join(" "));break;case 7936:case 7937:case 37445:case 37446:(u=L.getParameter(i))||Ue(1280),u=u&&xo(u);break;case 7938:u=L.getParameter(7938),u=2<=we.version?"OpenGL ES 3.0 ("+u+")":"OpenGL ES 2.0 ("+u+")",u=xo(u);break;case 35724:u=L.getParameter(35724);var p=u.match(/^WebGL GLSL ES ([0-9]\.[0-9][0-9]?)(?:$| .*)/);p!==null&&(p[1].length==3&&(p[1]+="0"),u="OpenGL ES GLSL ES "+p[1]+" ("+u+")"),u=xo(u);break;default:Ue(1280)}pl[i]=u}return u},jb:function(i,u){if(2>we.version)return Ue(1282),0;var p=cl[i];if(p)return 0>u||u>=p.length?(Ue(1281),0):p[u];switch(i){case 7939:return p=L.getSupportedExtensions()||[],p=p.concat(p.map(function(y){return"GL_"+y})),p=p.map(function(y){return xo(y)}),p=cl[i]=p,0>u||u>=p.length?(Ue(1281),0):p[u];default:return Ue(1280),0}},Pa:function(i,u){if(u=re(u),i=Dt[i]){var p=i,y=p.Ne,v=p.xf,A;if(!y)for(p.Ne=y={},p.wf={},A=0;A>>0,v=u.slice(0,A)),(v=i.xf[v])&&y>2];L.invalidateFramebuffer(i,y)},Qb:function(i,u,p,y,v,A,C){for(var x=Tn[u],R=0;R>2];L.invalidateSubFramebuffer(i,x,y,v,A,C)},Yb:function(i){return L.isSync(Sr[i])},Qa:function(i){return(i=At[i])?L.isTexture(i):0},Ra:function(i){L.lineWidth(i)},Sa:function(i){i=Dt[i],L.linkProgram(i),i.Ne=0,i.xf={}},rc:function(i,u,p,y,v,A){L.uf.multiDrawArraysInstancedBaseInstanceWEBGL(i,ne,u>>2,ne,p>>2,ne,y>>2,Fe,v>>2,A)},sc:function(i,u,p,y,v,A,C,x){L.uf.multiDrawElementsInstancedBaseVertexBaseInstanceWEBGL(i,ne,u>>2,p,ne,y>>2,ne,v>>2,ne,A>>2,Fe,C>>2,x)},Ta:function(i,u){i==3317&&(fl=u),L.pixelStorei(i,u)},uc:function(i){L.readBuffer(i)},Ua:function(i,u,p,y,v,A,C){if(2<=we.version)if(L.df)L.readPixels(i,u,p,y,v,A,C);else{var x=En(A);L.readPixels(i,u,p,y,v,A,x,C>>31-Math.clz32(x.BYTES_PER_ELEMENT))}else(C=Hi(A,v,p,y,C))?L.readPixels(i,u,p,y,v,A,C):Ue(1280)},ec:function(i,u,p,y){L.renderbufferStorage(i,u,p,y)},ac:function(i,u,p,y,v){L.renderbufferStorageMultisample(i,u,p,y,v)},Ub:function(i,u,p){L.samplerParameterf(vr[i],u,p)},Vb:function(i,u,p){L.samplerParameteri(vr[i],u,p)},Wb:function(i,u,p){L.samplerParameteri(vr[i],u,ne[p>>2])},Va:function(i,u,p,y){L.scissor(i,u,p,y)},Wa:function(i,u,p,y){for(var v="",A=0;A>2]:-1;v+=re(ne[p+4*A>>2],0>C?void 0:C)}L.shaderSource(Bt[i],v)},Xa:function(i,u,p){L.stencilFunc(i,u,p)},Ya:function(i,u,p,y){L.stencilFuncSeparate(i,u,p,y)},Za:function(i){L.stencilMask(i)},_a:function(i,u){L.stencilMaskSeparate(i,u)},$a:function(i,u,p){L.stencilOp(i,u,p)},ab:function(i,u,p,y){L.stencilOpSeparate(i,u,p,y)},bb:function(i,u,p,y,v,A,C,x,R){if(2<=we.version)if(L.Ee)L.texImage2D(i,u,p,y,v,A,C,x,R);else if(R){var D=En(x);L.texImage2D(i,u,p,y,v,A,C,x,D,R>>31-Math.clz32(D.BYTES_PER_ELEMENT))}else L.texImage2D(i,u,p,y,v,A,C,x,null);else L.texImage2D(i,u,p,y,v,A,C,x,R?Hi(x,C,y,v,R):null)},cb:function(i,u,p){L.texParameterf(i,u,p)},db:function(i,u,p){L.texParameterf(i,u,ye[p>>2])},eb:function(i,u,p){L.texParameteri(i,u,p)},fb:function(i,u,p){L.texParameteri(i,u,ne[p>>2])},oc:function(i,u,p,y,v){L.texStorage2D(i,u,p,y,v)},gb:function(i,u,p,y,v,A,C,x,R){if(2<=we.version)if(L.Ee)L.texSubImage2D(i,u,p,y,v,A,C,x,R);else if(R){var D=En(x);L.texSubImage2D(i,u,p,y,v,A,C,x,D,R>>31-Math.clz32(D.BYTES_PER_ELEMENT))}else L.texSubImage2D(i,u,p,y,v,A,C,x,null);else D=null,R&&(D=Hi(x,C,v,A,R)),L.texSubImage2D(i,u,p,y,v,A,C,x,D)},hb:function(i,u){L.uniform1f(De(i),u)},ib:function(i,u,p){if(2<=we.version)u&&L.uniform1fv(De(i),ye,p>>2,u);else{if(288>=u)for(var y=gr[u-1],v=0;v>2];else y=ye.subarray(p>>2,p+4*u>>2);L.uniform1fv(De(i),y)}},Zc:function(i,u){L.uniform1i(De(i),u)},_c:function(i,u,p){if(2<=we.version)u&&L.uniform1iv(De(i),ne,p>>2,u);else{if(288>=u)for(var y=jo[u-1],v=0;v>2];else y=ne.subarray(p>>2,p+4*u>>2);L.uniform1iv(De(i),y)}},$c:function(i,u,p){L.uniform2f(De(i),u,p)},ad:function(i,u,p){if(2<=we.version)u&&L.uniform2fv(De(i),ye,p>>2,2*u);else{if(144>=u)for(var y=gr[2*u-1],v=0;v<2*u;v+=2)y[v]=ye[p+4*v>>2],y[v+1]=ye[p+(4*v+4)>>2];else y=ye.subarray(p>>2,p+8*u>>2);L.uniform2fv(De(i),y)}},Yc:function(i,u,p){L.uniform2i(De(i),u,p)},Xc:function(i,u,p){if(2<=we.version)u&&L.uniform2iv(De(i),ne,p>>2,2*u);else{if(144>=u)for(var y=jo[2*u-1],v=0;v<2*u;v+=2)y[v]=ne[p+4*v>>2],y[v+1]=ne[p+(4*v+4)>>2];else y=ne.subarray(p>>2,p+8*u>>2);L.uniform2iv(De(i),y)}},Wc:function(i,u,p,y){L.uniform3f(De(i),u,p,y)},Vc:function(i,u,p){if(2<=we.version)u&&L.uniform3fv(De(i),ye,p>>2,3*u);else{if(96>=u)for(var y=gr[3*u-1],v=0;v<3*u;v+=3)y[v]=ye[p+4*v>>2],y[v+1]=ye[p+(4*v+4)>>2],y[v+2]=ye[p+(4*v+8)>>2];else y=ye.subarray(p>>2,p+12*u>>2);L.uniform3fv(De(i),y)}},Uc:function(i,u,p,y){L.uniform3i(De(i),u,p,y)},Tc:function(i,u,p){if(2<=we.version)u&&L.uniform3iv(De(i),ne,p>>2,3*u);else{if(96>=u)for(var y=jo[3*u-1],v=0;v<3*u;v+=3)y[v]=ne[p+4*v>>2],y[v+1]=ne[p+(4*v+4)>>2],y[v+2]=ne[p+(4*v+8)>>2];else y=ne.subarray(p>>2,p+12*u>>2);L.uniform3iv(De(i),y)}},Sc:function(i,u,p,y,v){L.uniform4f(De(i),u,p,y,v)},Rc:function(i,u,p){if(2<=we.version)u&&L.uniform4fv(De(i),ye,p>>2,4*u);else{if(72>=u){var y=gr[4*u-1],v=ye;p>>=2;for(var A=0;A<4*u;A+=4){var C=p+A;y[A]=v[C],y[A+1]=v[C+1],y[A+2]=v[C+2],y[A+3]=v[C+3]}}else y=ye.subarray(p>>2,p+16*u>>2);L.uniform4fv(De(i),y)}},Fc:function(i,u,p,y,v){L.uniform4i(De(i),u,p,y,v)},Gc:function(i,u,p){if(2<=we.version)u&&L.uniform4iv(De(i),ne,p>>2,4*u);else{if(72>=u)for(var y=jo[4*u-1],v=0;v<4*u;v+=4)y[v]=ne[p+4*v>>2],y[v+1]=ne[p+(4*v+4)>>2],y[v+2]=ne[p+(4*v+8)>>2],y[v+3]=ne[p+(4*v+12)>>2];else y=ne.subarray(p>>2,p+16*u>>2);L.uniform4iv(De(i),y)}},Hc:function(i,u,p,y){if(2<=we.version)u&&L.uniformMatrix2fv(De(i),!!p,ye,y>>2,4*u);else{if(72>=u)for(var v=gr[4*u-1],A=0;A<4*u;A+=4)v[A]=ye[y+4*A>>2],v[A+1]=ye[y+(4*A+4)>>2],v[A+2]=ye[y+(4*A+8)>>2],v[A+3]=ye[y+(4*A+12)>>2];else v=ye.subarray(y>>2,y+16*u>>2);L.uniformMatrix2fv(De(i),!!p,v)}},Ic:function(i,u,p,y){if(2<=we.version)u&&L.uniformMatrix3fv(De(i),!!p,ye,y>>2,9*u);else{if(32>=u)for(var v=gr[9*u-1],A=0;A<9*u;A+=9)v[A]=ye[y+4*A>>2],v[A+1]=ye[y+(4*A+4)>>2],v[A+2]=ye[y+(4*A+8)>>2],v[A+3]=ye[y+(4*A+12)>>2],v[A+4]=ye[y+(4*A+16)>>2],v[A+5]=ye[y+(4*A+20)>>2],v[A+6]=ye[y+(4*A+24)>>2],v[A+7]=ye[y+(4*A+28)>>2],v[A+8]=ye[y+(4*A+32)>>2];else v=ye.subarray(y>>2,y+36*u>>2);L.uniformMatrix3fv(De(i),!!p,v)}},Jc:function(i,u,p,y){if(2<=we.version)u&&L.uniformMatrix4fv(De(i),!!p,ye,y>>2,16*u);else{if(18>=u){var v=gr[16*u-1],A=ye;y>>=2;for(var C=0;C<16*u;C+=16){var x=y+C;v[C]=A[x],v[C+1]=A[x+1],v[C+2]=A[x+2],v[C+3]=A[x+3],v[C+4]=A[x+4],v[C+5]=A[x+5],v[C+6]=A[x+6],v[C+7]=A[x+7],v[C+8]=A[x+8],v[C+9]=A[x+9],v[C+10]=A[x+10],v[C+11]=A[x+11],v[C+12]=A[x+12],v[C+13]=A[x+13],v[C+14]=A[x+14],v[C+15]=A[x+15]}}else v=ye.subarray(y>>2,y+64*u>>2);L.uniformMatrix4fv(De(i),!!p,v)}},Kc:function(i){i=Dt[i],L.useProgram(i),L.Hf=i},Lc:function(i,u){L.vertexAttrib1f(i,u)},Mc:function(i,u){L.vertexAttrib2f(i,ye[u>>2],ye[u+4>>2])},Nc:function(i,u){L.vertexAttrib3f(i,ye[u>>2],ye[u+4>>2],ye[u+8>>2])},Oc:function(i,u){L.vertexAttrib4f(i,ye[u>>2],ye[u+4>>2],ye[u+8>>2],ye[u+12>>2])},pc:function(i,u){L.vertexAttribDivisor(i,u)},qc:function(i,u,p,y,v){L.vertexAttribIPointer(i,u,p,y,v)},Pc:function(i,u,p,y,v,A){L.vertexAttribPointer(i,u,p,!!y,v,A)},Qc:function(i,u,p,y){L.viewport(i,u,p,y)},lb:function(i,u,p,y){L.waitSync(Sr[i],u,(p>>>0)+4294967296*y)},tb:function(i){var u=Oe.length;if(i>>>=0,2147483648=p;p*=2){var y=u*(1+.2/p);y=Math.min(y,i+100663296);var v=Math;y=Math.max(i,y),v=v.min.call(v,2147483648,y+(65536-y%65536)%65536);e:{try{Ce.grow(v-ji.byteLength+65535>>>16),Ha();var A=1;break e}catch{}A=void 0}if(A)return!0}return!1},nb:function(){return we?we.Uf:0},wb:function(i,u){var p=0;return yl().forEach(function(y,v){var A=u+p;for(v=Fe[i+4*v>>2]=A,A=0;A>0]=y.charCodeAt(A);Ht[v>>0]=0,p+=y.length+1}),0},xb:function(i,u){var p=yl();Fe[i>>2]=p.length;var y=0;return p.forEach(function(v){y+=v.length+1}),Fe[u>>2]=y,0},Jb:function(i){be||(o.onExit&&o.onExit(i),Xe=!0),S(i,new Tl(i))},O:function(){return 52},ob:function(){return 52},Cb:function(){return 52},pb:function(){return 70},T:function(i,u,p,y){for(var v=0,A=0;A>2],x=Fe[u+4>>2];u+=8;for(var R=0;R>2]=v,0},c:function(){return he},k:bf,o:xf,l:_f,K:Mf,Lb:Rf,_:If,Z:Pf,Q:Ef,p:Af,x:Tf,s:Sf,w:wf,Kb:Of,Mb:jf,Nb:vf,d:function(i){he=i},rb:function(i,u,p,y){return ff(i,u,p,y)}};(function(){function i(v){o.asm=v.exports,Ce=o.asm.dd,Ha(),za=o.asm.fd,Ga.unshift(o.asm.ed),_r--,o.monitorRunDependencies&&o.monitorRunDependencies(_r),_r==0&&(Mi!==null&&(clearInterval(Mi),Mi=null),mo&&(v=mo,mo=null,v()))}function u(v){i(v.instance)}function p(v){return Gc().then(function(A){return WebAssembly.instantiate(A,y)}).then(function(A){return A}).then(v,function(A){se("failed to asynchronously prepare wasm: "+A),yo(A)})}var y={a:yf};if(_r++,o.monitorRunDependencies&&o.monitorRunDependencies(_r),o.instantiateWasm)try{return o.instantiateWasm(y,i)}catch(v){return se("Module.instantiateWasm callback failed with error: "+v),!1}return function(){return pe||typeof WebAssembly.instantiateStreaming!="function"||qa()||Tt.startsWith("file://")||N||typeof fetch!="function"?p(u):fetch(Tt,{credentials:"same-origin"}).then(function(v){return WebAssembly.instantiateStreaming(v,y).then(u,function(A){return se("wasm streaming compile failed: "+A),se("falling back to ArrayBuffer instantiation"),p(u)})})}().catch(s),{}})(),o.___wasm_call_ctors=function(){return(o.___wasm_call_ctors=o.asm.ed).apply(null,arguments)};var Qt=o._free=function(){return(Qt=o._free=o.asm.gd).apply(null,arguments)},xn=o._malloc=function(){return(xn=o._malloc=o.asm.hd).apply(null,arguments)},Sl=o.___getTypeName=function(){return(Sl=o.___getTypeName=o.asm.id).apply(null,arguments)};o.___embind_register_native_and_builtin_types=function(){return(o.___embind_register_native_and_builtin_types=o.asm.jd).apply(null,arguments)};var it=o._setThrew=function(){return(it=o._setThrew=o.asm.kd).apply(null,arguments)},st=o.stackSave=function(){return(st=o.stackSave=o.asm.ld).apply(null,arguments)},at=o.stackRestore=function(){return(at=o.stackRestore=o.asm.md).apply(null,arguments)};o.dynCall_viji=function(){return(o.dynCall_viji=o.asm.nd).apply(null,arguments)},o.dynCall_vijiii=function(){return(o.dynCall_vijiii=o.asm.od).apply(null,arguments)},o.dynCall_viiiiij=function(){return(o.dynCall_viiiiij=o.asm.pd).apply(null,arguments)},o.dynCall_jiiiijiiiii=function(){return(o.dynCall_jiiiijiiiii=o.asm.qd).apply(null,arguments)},o.dynCall_viiij=function(){return(o.dynCall_viiij=o.asm.rd).apply(null,arguments)},o.dynCall_jii=function(){return(o.dynCall_jii=o.asm.sd).apply(null,arguments)},o.dynCall_vij=function(){return(o.dynCall_vij=o.asm.td).apply(null,arguments)},o.dynCall_iiij=function(){return(o.dynCall_iiij=o.asm.ud).apply(null,arguments)},o.dynCall_iiiij=function(){return(o.dynCall_iiiij=o.asm.vd).apply(null,arguments)},o.dynCall_viij=function(){return(o.dynCall_viij=o.asm.wd).apply(null,arguments)},o.dynCall_ji=function(){return(o.dynCall_ji=o.asm.xd).apply(null,arguments)},o.dynCall_iij=function(){return(o.dynCall_iij=o.asm.yd).apply(null,arguments)},o.dynCall_jiiiiii=function(){return(o.dynCall_jiiiiii=o.asm.zd).apply(null,arguments)},o.dynCall_jiiiiji=function(){return(o.dynCall_jiiiiji=o.asm.Ad).apply(null,arguments)},o.dynCall_iijj=function(){return(o.dynCall_iijj=o.asm.Bd).apply(null,arguments)},o.dynCall_iiiji=function(){return(o.dynCall_iiiji=o.asm.Cd).apply(null,arguments)},o.dynCall_iiji=function(){return(o.dynCall_iiji=o.asm.Dd).apply(null,arguments)},o.dynCall_iijjiii=function(){return(o.dynCall_iijjiii=o.asm.Ed).apply(null,arguments)},o.dynCall_vijjjii=function(){return(o.dynCall_vijjjii=o.asm.Fd).apply(null,arguments)},o.dynCall_jiji=function(){return(o.dynCall_jiji=o.asm.Gd).apply(null,arguments)},o.dynCall_viijii=function(){return(o.dynCall_viijii=o.asm.Hd).apply(null,arguments)},o.dynCall_iiiiij=function(){return(o.dynCall_iiiiij=o.asm.Id).apply(null,arguments)},o.dynCall_iiiiijj=function(){return(o.dynCall_iiiiijj=o.asm.Jd).apply(null,arguments)},o.dynCall_iiiiiijj=function(){return(o.dynCall_iiiiiijj=o.asm.Kd).apply(null,arguments)};function _f(i,u,p,y){var v=st();try{return et(i)(u,p,y)}catch(A){if(at(v),A!==A+0)throw A;it(1,0)}}function bf(i,u){var p=st();try{return et(i)(u)}catch(y){if(at(p),y!==y+0)throw y;it(1,0)}}function vf(i,u,p,y,v,A,C,x,R,D){var Z=st();try{et(i)(u,p,y,v,A,C,x,R,D)}catch(Q){if(at(Z),Q!==Q+0)throw Q;it(1,0)}}function Sf(i,u,p,y){var v=st();try{et(i)(u,p,y)}catch(A){if(at(v),A!==A+0)throw A;it(1,0)}}function Tf(i,u,p){var y=st();try{et(i)(u,p)}catch(v){if(at(y),v!==v+0)throw v;it(1,0)}}function Ef(i){var u=st();try{et(i)()}catch(p){if(at(u),p!==p+0)throw p;it(1,0)}}function wf(i,u,p,y,v){var A=st();try{et(i)(u,p,y,v)}catch(C){if(at(A),C!==C+0)throw C;it(1,0)}}function Af(i,u){var p=st();try{et(i)(u)}catch(y){if(at(p),y!==y+0)throw y;it(1,0)}}function xf(i,u,p){var y=st();try{return et(i)(u,p)}catch(v){if(at(y),v!==v+0)throw v;it(1,0)}}function jf(i,u,p,y,v,A,C){var x=st();try{et(i)(u,p,y,v,A,C)}catch(R){if(at(x),R!==R+0)throw R;it(1,0)}}function Mf(i,u,p,y,v){var A=st();try{return et(i)(u,p,y,v)}catch(C){if(at(A),C!==C+0)throw C;it(1,0)}}function Rf(i,u,p,y,v,A){var C=st();try{return et(i)(u,p,y,v,A)}catch(x){if(at(C),x!==x+0)throw x;it(1,0)}}function If(i,u,p,y,v,A,C){var x=st();try{return et(i)(u,p,y,v,A,C)}catch(R){if(at(x),R!==R+0)throw R;it(1,0)}}function Of(i,u,p,y,v,A){var C=st();try{et(i)(u,p,y,v,A)}catch(x){if(at(C),x!==x+0)throw x;it(1,0)}}function Pf(i,u,p,y,v,A,C,x,R,D){var Z=st();try{return et(i)(u,p,y,v,A,C,x,R,D)}catch(Q){if(at(Z),Q!==Q+0)throw Q;it(1,0)}}var jn;function Tl(i){this.name="ExitStatus",this.message="Program terminated with exit("+i+")",this.status=i}mo=function i(){jn||Gi(),jn||(mo=i)};function Gi(){function i(){if(!jn&&(jn=!0,o.calledRun=!0,!Xe)){if(Ri(Ga),n(o),o.onRuntimeInitialized&&o.onRuntimeInitialized(),o.postRun)for(typeof o.postRun=="function"&&(o.postRun=[o.postRun]);o.postRun.length;){var u=o.postRun.shift();$a.unshift(u)}Ri($a)}}if(!(0<_r)){if(o.preRun)for(typeof o.preRun=="function"&&(o.preRun=[o.preRun]);o.preRun.length;)Vc();Ri(Va),0<_r||(o.setStatus?(o.setStatus("Running..."),setTimeout(function(){setTimeout(function(){o.setStatus("")},1),i()},1)):i())}}if(o.run=Gi,o.preInit)for(typeof o.preInit=="function"&&(o.preInit=[o.preInit]);0{var $jscomp=$jscomp||{};$jscomp.scope={};$jscomp.findInternal=function(t,r,o){t instanceof String&&(t=String(t));for(var n=t.length,s=0;s=s}},"es6","es3");$jscomp.polyfill("Array.prototype.find",function(t){return t||function(r,o){return $jscomp.findInternal(this,r,o).v}},"es6","es3");$jscomp.polyfill("String.prototype.startsWith",function(t){return t||function(r,o){var n=$jscomp.checkStringArgs(this,r,"startsWith");r+="";var s=n.length,l=r.length;o=Math.max(0,Math.min(o|0,n.length));for(var m=0;m=l}},"es6","es3");$jscomp.polyfill("String.prototype.repeat",function(t){return t||function(r){var o=$jscomp.checkStringArgs(this,null,"repeat");if(0>r||1342177279>>=1)&&(o+=o);return n}},"es6","es3");var COMPILED=!0,goog=goog||{};goog.global=exports||self;goog.exportPath_=function(t,r,o){t=t.split("."),o=o||goog.global,t[0]in o||typeof o.execScript>"u"||o.execScript("var "+t[0]);for(var n;t.length&&(n=t.shift());)t.length||r===void 0?o=o[n]&&o[n]!==Object.prototype[n]?o[n]:o[n]={}:o[n]=r};goog.define=function(t,r){if(!COMPILED){var o=goog.global.CLOSURE_UNCOMPILED_DEFINES,n=goog.global.CLOSURE_DEFINES;o&&o.nodeType===void 0&&Object.prototype.hasOwnProperty.call(o,t)?r=o[t]:n&&n.nodeType===void 0&&Object.prototype.hasOwnProperty.call(n,t)&&(r=n[t])}return r};goog.FEATURESET_YEAR=2012;goog.DEBUG=!0;goog.LOCALE="en";goog.TRUSTED_SITE=!0;goog.STRICT_MODE_COMPATIBLE=!1;goog.DISALLOW_TEST_ONLY_CODE=COMPILED&&!goog.DEBUG;goog.ENABLE_CHROME_APP_SAFE_SCRIPT_LOADING=!1;goog.provide=function(t){if(goog.isInModuleLoader_())throw Error("goog.provide cannot be used within a module.");if(!COMPILED&&goog.isProvided_(t))throw Error('Namespace "'+t+'" already declared.');goog.constructNamespace_(t)};goog.constructNamespace_=function(t,r){if(!COMPILED){delete goog.implicitNamespaces_[t];for(var o=t;(o=o.substring(0,o.lastIndexOf(".")))&&!goog.getObjectByName(o);)goog.implicitNamespaces_[o]=!0}goog.exportPath_(t,r)};goog.getScriptNonce=function(t){return t&&t!=goog.global?goog.getScriptNonce_(t.document):(goog.cspNonce_===null&&(goog.cspNonce_=goog.getScriptNonce_(goog.global.document)),goog.cspNonce_)};goog.NONCE_PATTERN_=/^[\w+/_-]+[=]{0,2}$/;goog.cspNonce_=null;goog.getScriptNonce_=function(t){return(t=t.querySelector&&t.querySelector("script[nonce]"))&&(t=t.nonce||t.getAttribute("nonce"))&&goog.NONCE_PATTERN_.test(t)?t:""};goog.VALID_MODULE_RE_=/^[a-zA-Z_$][a-zA-Z0-9._$]*$/;goog.module=function(t){if(typeof t!="string"||!t||t.search(goog.VALID_MODULE_RE_)==-1)throw Error("Invalid module identifier");if(!goog.isInGoogModuleLoader_())throw Error("Module "+t+" has been loaded incorrectly. Note, modules cannot be loaded as normal scripts. They require some kind of pre-processing step. You're likely trying to load a module via a script tag or as a part of a concatenated bundle without rewriting the module. For more info see: https://github.com/google/closure-library/wiki/goog.module:-an-ES6-module-like-alternative-to-goog.provide.");if(goog.moduleLoaderState_.moduleName)throw Error("goog.module may only be called once per module.");if(goog.moduleLoaderState_.moduleName=t,!COMPILED){if(goog.isProvided_(t))throw Error('Namespace "'+t+'" already declared.');delete goog.implicitNamespaces_[t]}};goog.module.get=function(t){return goog.module.getInternal_(t)};goog.module.getInternal_=function(t){if(!COMPILED){if(t in goog.loadedModules_)return goog.loadedModules_[t].exports;if(!goog.implicitNamespaces_[t])return t=goog.getObjectByName(t),t??null}return null};goog.ModuleType={ES6:"es6",GOOG:"goog"};goog.moduleLoaderState_=null;goog.isInModuleLoader_=function(){return goog.isInGoogModuleLoader_()||goog.isInEs6ModuleLoader_()};goog.isInGoogModuleLoader_=function(){return!!goog.moduleLoaderState_&&goog.moduleLoaderState_.type==goog.ModuleType.GOOG};goog.isInEs6ModuleLoader_=function(){if(goog.moduleLoaderState_&&goog.moduleLoaderState_.type==goog.ModuleType.ES6)return!0;var t=goog.global.$jscomp;return t?typeof t.getCurrentModulePath!="function"?!1:!!t.getCurrentModulePath():!1};goog.module.declareLegacyNamespace=function(){if(!COMPILED&&!goog.isInGoogModuleLoader_())throw Error("goog.module.declareLegacyNamespace must be called from within a goog.module");if(!COMPILED&&!goog.moduleLoaderState_.moduleName)throw Error("goog.module must be called prior to goog.module.declareLegacyNamespace.");goog.moduleLoaderState_.declareLegacyNamespace=!0};goog.declareModuleId=function(t){if(!COMPILED){if(!goog.isInEs6ModuleLoader_())throw Error("goog.declareModuleId may only be called from within an ES6 module");if(goog.moduleLoaderState_&&goog.moduleLoaderState_.moduleName)throw Error("goog.declareModuleId may only be called once per module.");if(t in goog.loadedModules_)throw Error('Module with namespace "'+t+'" already exists.')}if(goog.moduleLoaderState_)goog.moduleLoaderState_.moduleName=t;else{var r=goog.global.$jscomp;if(!r||typeof r.getCurrentModulePath!="function")throw Error('Module with namespace "'+t+'" has been loaded incorrectly.');r=r.require(r.getCurrentModulePath()),goog.loadedModules_[t]={exports:r,type:goog.ModuleType.ES6,moduleId:t}}};goog.setTestOnly=function(t){if(goog.DISALLOW_TEST_ONLY_CODE)throw t=t||"",Error("Importing test-only code into non-debug environment"+(t?": "+t:"."))};goog.forwardDeclare=function(t){};COMPILED||(goog.isProvided_=function(t){return t in goog.loadedModules_||!goog.implicitNamespaces_[t]&&goog.getObjectByName(t)!=null},goog.implicitNamespaces_={"goog.module":!0});goog.getObjectByName=function(t,r){t=t.split("."),r=r||goog.global;for(var o=0;o{var Bf=Object.create;var Rn=Object.defineProperty;var Lf=Object.getOwnPropertyDescriptor;var Uf=Object.getOwnPropertyNames;var Ff=Object.getPrototypeOf,kf=Object.prototype.hasOwnProperty;var Qi=(t=>typeof require<"u"?require:typeof Proxy<"u"?new Proxy(t,{get:(r,o)=>(typeof require<"u"?require:r)[o]}):t)(function(t){if(typeof require<"u")return require.apply(this,arguments);throw Error('Dynamic require of "'+t+'" is not supported')});var es=(t,r)=>()=>(t&&(r=t(t=0)),r);var $e=(t,r)=>()=>(r||t((r={exports:{}}).exports,r),r.exports),Wf=(t,r)=>{for(var o in r)Rn(t,o,{get:r[o],enumerable:!0})},Rl=(t,r,o,n)=>{if(r&&typeof r=="object"||typeof r=="function")for(let s of Uf(r))!kf.call(t,s)&&s!==o&&Rn(t,s,{get:()=>r[s],enumerable:!(n=Lf(r,s))||n.enumerable});return t};var Mt=(t,r,o)=>(o=t!=null?Bf(Ff(t)):{},Rl(r||!t||!t.__esModule?Rn(o,"default",{value:t,enumerable:!0}):o,t)),Hf=t=>Rl(Rn({},"__esModule",{value:!0}),t);function er(t,r){for(var o in r)t[o]=r[o];return t}function Ul(t){var r=t.parentNode;r&&r.removeChild(t)}function Qe(t,r,o){var n,s,l,m={};for(l in r)l=="key"?n=r[l]:l=="ref"?s=r[l]:m[l]=r[l];if(arguments.length>2&&(m.children=arguments.length>3?Do.call(arguments,2):o),typeof t=="function"&&t.defaultProps!=null)for(l in t.defaultProps)m[l]===void 0&&(m[l]=t.defaultProps[l]);return Po(t,m,n,s,null)}function Po(t,r,o,n,s){var l={type:t,props:r,key:o,ref:n,__k:null,__:null,__b:0,__e:null,__d:void 0,__c:null,__h:null,constructor:void 0,__v:s??++Dl};return s==null&&ue.vnode!=null&&ue.vnode(l),l}function Cn(){return{current:null}}function De(t){return t.children}function yt(t,r){this.props=t,this.context=r}function Co(t,r){if(r==null)return t.__?Co(t.__,t.__.__k.indexOf(t)+1):null;for(var o;rr&&Ar.sort(ts));In.__r=0}function kl(t,r,o,n,s,l,m,S,A,M,D){var I,V,Y,q,J,ce,ie,de,se,he=0,pe=n&&n.__k||Ll,be=pe.length,Ce=be,Xe=r.length;for(o.__k=[],I=0;I0?Po(q.type,q.props,q.key,q.ref?q.ref:null,q.__v):q)!=null?(q.__=o,q.__b=o.__b+1,(de=Gf(q,pe,ie=I+he,Ce))===-1?Y=Fr:(Y=pe[de]||Fr,pe[de]=void 0,Ce--),ns(t,q,Y,s,l,m,S,A,M,D),J=q.__e,(V=q.ref)&&Y.ref!=V&&(Y.ref&&is(Y.ref,null,q),D.push(V,q.__c||J,q)),J!=null&&(ce==null&&(ce=J),(se=Y===Fr||Y.__v===null)?de==-1&&he--:de!==ie&&(de===ie+1?he++:de>ie?Ce>Xe-ie?he+=de-ie:he--:he=de(A!=null?1:0))for(;m>=0||S=0){if((A=r[m])&&s==A.key&&l===A.type)return m;m--}if(S2&&(S.children=arguments.length>3?Do.call(arguments,2):o),Po(t.type,S,n||t.key,s||t.ref,null)}function Wr(t,r){var o={__c:r="__cC"+Bl++,__:t,Consumer:function(n,s){return n.children(s)},Provider:function(n){var s,l;return this.getChildContext||(s=[],(l={})[r]=this,this.getChildContext=function(){return l},this.shouldComponentUpdate=function(m){this.props.value!==m.value&&s.some(function(S){S.__e=!0,rs(S)})},this.sub=function(m){s.push(m);var S=m.componentWillUnmount;m.componentWillUnmount=function(){s.splice(s.indexOf(m),1),S&&S.call(m)}}),n.children}};return o.Provider.__=o.Consumer.contextType=o}var Do,ue,Dl,zf,Ar,Il,Nl,ts,Bl,Fr,Ll,Vf,Pn,Hr=es(()=>{Fr={},Ll=[],Vf=/acit|ex(?:s|g|n|p|$)|rph|grid|ows|mnc|ntw|ine[ch]|zoo|^ord|itera/i,Pn=Array.isArray;Do=Ll.slice,ue={__e:function(t,r,o,n){for(var s,l,m;r=r.__;)if((s=r.__c)&&!s.__)try{if((l=s.constructor)&&l.getDerivedStateFromError!=null&&(s.setState(l.getDerivedStateFromError(t)),m=s.__d),s.componentDidCatch!=null&&(s.componentDidCatch(t,n||{}),m=s.__d),m)return s.__E=s}catch(S){t=S}throw t}},Dl=0,zf=function(t){return t!=null&&t.constructor===void 0},yt.prototype.setState=function(t,r){var o;o=this.__s!=null&&this.__s!==this.state?this.__s:this.__s=er({},this.state),typeof t=="function"&&(t=t(er({},o),this.props)),t&&er(o,t),t!=null&&this.__v&&(r&&this._sb.push(r),rs(this))},yt.prototype.forceUpdate=function(t){this.__v&&(this.__e=!0,t&&this.__h.push(t),rs(this))},yt.prototype.render=De,Ar=[],Nl=typeof Promise=="function"?Promise.prototype.then.bind(Promise.resolve()):setTimeout,ts=function(t,r){return t.__v.__b-r.__v.__b},In.__r=0,Bl=0});function wr(t,r){ue.__h&&ue.__h(Le,t,zr||r),zr=0;var o=Le.__H||(Le.__H={__:[],__h:[]});return t>=o.__.length&&o.__.push({__V:Dn}),o.__[t]}function _t(t){return zr=1,Bn(Ql,t)}function Bn(t,r,o){var n=wr(tr++,2);if(n.t=t,!n.__c&&(n.__=[o?o(r):Ql(void 0,r),function(S){var A=n.__N?n.__N[0]:n.__[0],M=n.t(A,S);A!==M&&(n.__N=[M,n.__[1]],n.__c.setState({}))}],n.__c=Le,!Le.u)){var s=function(S,A,M){if(!n.__c.__H)return!0;var D=n.__c.__H.__.filter(function(V){return V.__c});if(D.every(function(V){return!V.__N}))return!l||l.call(this,S,A,M);var I=!1;return D.forEach(function(V){if(V.__N){var Y=V.__[0];V.__=V.__N,V.__N=void 0,Y!==V.__[0]&&(I=!0)}}),!(!I&&n.__c.props===S)&&(!l||l.call(this,S,A,M))};Le.u=!0;var l=Le.shouldComponentUpdate,m=Le.componentWillUpdate;Le.componentWillUpdate=function(S,A,M){if(this.__e){var D=l;l=void 0,s(S,A,M),l=D}m&&m.call(this,S,A,M)},Le.shouldComponentUpdate=s}return n.__N||n.__}function Rt(t,r){var o=wr(tr++,3);!ue.__s&&ps(o.__H,r)&&(o.__=t,o.i=r,Le.__H.__h.push(o))}function Vr(t,r){var o=wr(tr++,4);!ue.__s&&ps(o.__H,r)&&(o.__=t,o.i=r,Le.__h.push(o))}function ut(t){return zr=5,It(function(){return{current:t}},[])}function us(t,r,o){zr=6,Vr(function(){return typeof t=="function"?(t(r()),function(){return t(null)}):t?(t.current=r(),function(){return t.current=null}):void 0},o==null?o:o.concat(t))}function It(t,r){var o=wr(tr++,7);return ps(o.__H,r)?(o.__V=t(),o.i=r,o.__h=t,o.__V):o.__}function No(t,r){return zr=8,It(function(){return t},r)}function Bo(t){var r=Le.context[t.__c],o=wr(tr++,9);return o.c=t,r?(o.__==null&&(o.__=!0,r.sub(Le)),r.props.value):t.__}function Lo(t,r){ue.useDebugValue&&ue.useDebugValue(r?r(t):t)}function Kf(t){var r=wr(tr++,10),o=_t();return r.__=t,Le.componentDidCatch||(Le.componentDidCatch=function(n,s){r.__&&r.__(n,s),o[1](n)}),[o[0],function(){o[1](void 0)}]}function gs(){var t=wr(tr++,11);if(!t.__){for(var r=Le.__v;r!==null&&!r.__m&&r.__!==null;)r=r.__;var o=r.__m||(r.__m=[0,0]);t.__="P"+o[0]+"-"+o[1]++}return t.__}function Zf(){for(var t;t=Jl.shift();)if(t.__P&&t.__H)try{t.__H.__h.forEach(Nn),t.__H.__h.forEach(ls),t.__H.__h=[]}catch(r){t.__H.__h=[],ue.__e(r,t.__v)}}function Yf(t){var r,o=function(){clearTimeout(n),Yl&&cancelAnimationFrame(r),setTimeout(t)},n=setTimeout(o,100);Yl&&(r=requestAnimationFrame(o))}function Nn(t){var r=Le,o=t.__c;typeof o=="function"&&(t.__c=void 0,o()),Le=r}function ls(t){var r=Le;t.__c=t.__(),Le=r}function ps(t,r){return!t||t.length!==r.length||r.some(function(o,n){return o!==t[n]})}function Ql(t,r){return typeof r=="function"?r(t):r}var tr,Le,as,Gl,zr,Jl,Dn,$l,ql,Xl,Kl,Zl,Yl,cs=es(()=>{Hr();zr=0,Jl=[],Dn=[],$l=ue.__b,ql=ue.__r,Xl=ue.diffed,Kl=ue.__c,Zl=ue.unmount;ue.__b=function(t){Le=null,$l&&$l(t)},ue.__r=function(t){ql&&ql(t),tr=0;var r=(Le=t.__c).__H;r&&(as===Le?(r.__h=[],Le.__h=[],r.__.forEach(function(o){o.__N&&(o.__=o.__N),o.__V=Dn,o.__N=o.i=void 0})):(r.__h.forEach(Nn),r.__h.forEach(ls),r.__h=[],tr=0)),as=Le},ue.diffed=function(t){Xl&&Xl(t);var r=t.__c;r&&r.__H&&(r.__H.__h.length&&(Jl.push(r)!==1&&Gl===ue.requestAnimationFrame||((Gl=ue.requestAnimationFrame)||Yf)(Zf)),r.__H.__.forEach(function(o){o.i&&(o.__H=o.i),o.__V!==Dn&&(o.__=o.__V),o.i=void 0,o.__V=Dn})),as=Le=null},ue.__c=function(t,r){r.some(function(o){try{o.__h.forEach(Nn),o.__h=o.__h.filter(function(n){return!n.__||ls(n)})}catch(n){r.some(function(s){s.__h&&(s.__h=[])}),r=[],ue.__e(n,o.__v)}}),Kl&&Kl(t,r)},ue.unmount=function(t){Zl&&Zl(t);var r,o=t.__c;o&&o.__H&&(o.__H.__.forEach(function(n){try{Nn(n)}catch(s){r=s}}),o.__H=void 0,r&&ue.__e(r,o.__v))};Yl=typeof requestAnimationFrame=="function"});var Ou={};Wf(Ou,{Children:()=>pu,Component:()=>yt,Fragment:()=>De,PureComponent:()=>Ln,StrictMode:()=>wu,Suspense:()=>Uo,SuspenseList:()=>Gr,__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED:()=>_u,cloneElement:()=>Su,createContext:()=>Wr,createElement:()=>Qe,createFactory:()=>bu,createPortal:()=>mu,createRef:()=>Cn,default:()=>gt,findDOMNode:()=>Tu,flushSync:()=>Au,forwardRef:()=>gu,hydrate:()=>hs,isElement:()=>Ru,isFragment:()=>vu,isValidElement:()=>Fo,lazy:()=>hu,memo:()=>uu,render:()=>Un,startTransition:()=>ys,unmountComponentAtNode:()=>Fn,unstable_batchedUpdates:()=>Eu,useCallback:()=>No,useContext:()=>Bo,useDebugValue:()=>Lo,useDeferredValue:()=>xu,useEffect:()=>Rt,useErrorBoundary:()=>Kf,useId:()=>gs,useImperativeHandle:()=>us,useInsertionEffect:()=>Mu,useLayoutEffect:()=>Vr,useMemo:()=>It,useReducer:()=>Bn,useRef:()=>ut,useState:()=>_t,useSyncExternalStore:()=>Iu,useTransition:()=>ju,version:()=>pd});function lu(t,r){for(var o in r)t[o]=r[o];return t}function ds(t,r){for(var o in t)if(o!=="__source"&&!(o in r))return!0;for(var n in r)if(n!=="__source"&&t[n]!==r[n])return!0;return!1}function fs(t,r){return t===r&&(t!==0||1/t==1/r)||t!=t&&r!=r}function Ln(t){this.props=t}function uu(t,r){function o(s){var l=this.props.ref,m=l==s.ref;return!m&&l&&(l.call?l(null):l.current=null),r?!r(this.props,s)||!m:ds(this.props,s)}function n(s){return this.shouldComponentUpdate=o,Qe(t,s)}return n.displayName="Memo("+(t.displayName||t.name)+")",n.prototype.isReactComponent=!0,n.__f=!0,n}function gu(t){function r(o){var n=lu({},o);return delete n.ref,t(n,o.ref||null)}return r.$$typeof=Jf,r.render=r,r.prototype.isReactComponent=r.__f=!0,r.displayName="ForwardRef("+(t.displayName||t.name)+")",r}function cu(t,r,o){return t&&(t.__c&&t.__c.__H&&(t.__c.__H.__.forEach(function(n){typeof n.__c=="function"&&n.__c()}),t.__c.__H=null),(t=lu({},t)).__c!=null&&(t.__c.__P===o&&(t.__c.__P=r),t.__c=null),t.__k=t.__k&&t.__k.map(function(n){return cu(n,r,o)})),t}function fu(t,r,o){return t&&o&&(t.__v=null,t.__k=t.__k&&t.__k.map(function(n){return fu(n,r,o)}),t.__c&&t.__c.__P===r&&(t.__e&&o.insertBefore(t.__e,t.__d),t.__c.__e=!0,t.__c.__P=o)),t}function Uo(){this.__u=0,this.t=null,this.__b=null}function du(t){var r=t.__.__c;return r&&r.__a&&r.__a(t)}function hu(t){var r,o,n;function s(l){if(r||(r=t()).then(function(m){o=m.default||m},function(m){n=m}),n)throw n;if(!o)throw r;return Qe(o,l)}return s.displayName="Lazy",s.__f=!0,s}function Gr(){this.u=null,this.o=null}function ed(t){return this.getChildContext=function(){return t.context},t.children}function td(t){var r=this,o=t.i;r.componentWillUnmount=function(){kr(null,r.l),r.l=null,r.i=null},r.i&&r.i!==o&&r.componentWillUnmount(),r.l||(r.i=o,r.l={nodeType:1,parentNode:o,childNodes:[],appendChild:function(n){this.childNodes.push(n),r.i.appendChild(n)},insertBefore:function(n,s){this.childNodes.push(n),r.i.appendChild(n)},removeChild:function(n){this.childNodes.splice(this.childNodes.indexOf(n)>>>1,1),r.i.removeChild(n)}}),kr(Qe(ed,{context:r.context},t.__v),r.l)}function mu(t,r){var o=Qe(td,{__v:t,i:r});return o.containerInfo=r,o}function Un(t,r,o){return r.__k==null&&(r.textContent=""),kr(t,r),typeof o=="function"&&o(),t?t.__c:null}function hs(t,r,o){return ss(t,r),typeof o=="function"&&o(),t?t.__c:null}function ad(){}function ld(){return this.cancelBubble}function ud(){return this.defaultPrevented}function bu(t){return Qe.bind(null,t)}function Fo(t){return!!t&&t.$$typeof===yu}function vu(t){return Fo(t)&&t.type===De}function Su(t){return Fo(t)?Vl.apply(null,arguments):t}function Fn(t){return!!t.__k&&(kr(null,t),!0)}function Tu(t){return t&&(t.base||t.nodeType===1&&t)||null}function ys(t){t()}function xu(t){return t}function ju(){return[!1,ys]}function Iu(t,r){var o=r(),n=_t({h:{__:o,v:r}}),s=n[0].h,l=n[1];return Vr(function(){s.__=o,s.v=r,fs(s.__,r())||l({h:s})},[t,o,r]),Rt(function(){return fs(s.__,s.v())||l({h:s}),t(function(){fs(s.__,s.v())||l({h:s})})},[t]),o}var eu,Jf,tu,pu,Qf,ru,ou,yu,rd,od,nd,id,sd,nu,ms,gd,iu,su,au,_u,pd,Eu,Au,wu,Mu,Ru,gt,rt=es(()=>{Hr();Hr();cs();cs();(Ln.prototype=new yt).isPureReactComponent=!0,Ln.prototype.shouldComponentUpdate=function(t,r){return ds(this.props,t)||ds(this.state,r)};eu=ue.__b;ue.__b=function(t){t.type&&t.type.__f&&t.ref&&(t.props.ref=t.ref,t.ref=null),eu&&eu(t)};Jf=typeof Symbol<"u"&&Symbol.for&&Symbol.for("react.forward_ref")||3911;tu=function(t,r){return t==null?null:Xt(Xt(t).map(r))},pu={map:tu,forEach:tu,count:function(t){return t?Xt(t).length:0},only:function(t){var r=Xt(t);if(r.length!==1)throw"Children.only";return r[0]},toArray:Xt},Qf=ue.__e;ue.__e=function(t,r,o,n){if(t.then){for(var s,l=r;l=l.__;)if((s=l.__c)&&s.__c)return r.__e==null&&(r.__e=o.__e,r.__k=o.__k),s.__c(t,r)}Qf(t,r,o,n)};ru=ue.unmount;ue.unmount=function(t){var r=t.__c;r&&r.__R&&r.__R(),r&&t.__h===!0&&(t.type=null),ru&&ru(t)},(Uo.prototype=new yt).__c=function(t,r){var o=r.__c,n=this;n.t==null&&(n.t=[]),n.t.push(o);var s=du(n.__v),l=!1,m=function(){l||(l=!0,o.__R=null,s?s(S):S())};o.__R=m;var S=function(){if(!--n.__u){if(n.state.__a){var M=n.state.__a;n.__v.__k[0]=fu(M,M.__c.__P,M.__c.__O)}var D;for(n.setState({__a:n.__b=null});D=n.t.pop();)D.forceUpdate()}},A=r.__h===!0;n.__u++||A||n.setState({__a:n.__b=n.__v.__k[0]}),t.then(m,m)},Uo.prototype.componentWillUnmount=function(){this.t=[]},Uo.prototype.render=function(t,r){if(this.__b){if(this.__v.__k){var o=document.createElement("div"),n=this.__v.__k[0].__c;this.__v.__k[0]=cu(this.__b,o,n.__O=n.__P)}this.__b=null}var s=r.__a&&Qe(De,null,t.fallback);return s&&(s.__h=null),[Qe(De,null,r.__a?null:t.children),s]};ou=function(t,r,o){if(++o[1]===o[0]&&t.o.delete(r),t.props.revealOrder&&(t.props.revealOrder[0]!=="t"||!t.o.size))for(o=t.u;o;){for(;o.length>3;)o.pop()();if(o[1]{"use strict";var $r=(rt(),Hf(Ou));function yd(t,r){return t===r&&(t!==0||1/t===1/r)||t!==t&&r!==r}var _d=typeof Object.is=="function"?Object.is:yd,bd=$r.useState,vd=$r.useEffect,Sd=$r.useLayoutEffect,Td=$r.useDebugValue;function Ed(t,r){var o=r(),n=bd({inst:{value:o,getSnapshot:r}}),s=n[0].inst,l=n[1];return Sd(function(){s.value=o,s.getSnapshot=r,js(s)&&l({inst:s})},[t,o,r]),vd(function(){return js(s)&&l({inst:s}),t(function(){js(s)&&l({inst:s})})},[t]),Td(o),o}function js(t){var r=t.getSnapshot;t=t.value;try{var o=r();return!_d(t,o)}catch{return!0}}function Ad(t,r){return r()}var wd=typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"?Ad:Ed;Bu.useSyncExternalStore=$r.useSyncExternalStore!==void 0?$r.useSyncExternalStore:wd});var Fu=$e((Yy,Uu)=>{"use strict";Uu.exports=Lu()});var Kt=$e((r_,Hn)=>{(function(){"use strict";var t={}.hasOwnProperty,r="[native code]";function o(){for(var n=[],s=0;s{var Ms=(()=>{var t=typeof document<"u"&&document.currentScript?document.currentScript.src:void 0;return typeof __filename<"u"&&(t=t||__filename),function(r){r=r||{};var o;o||(o=typeof r<"u"?r:{});var n,s;o.ready=new Promise(function(i,u){n=i,s=u}),function(i){i.Vd=i.Vd||[],i.Vd.push(function(){i.MakeSWCanvasSurface=function(u){var p=u;if(p.tagName!=="CANVAS"&&(p=document.getElementById(u),!p))throw"Canvas with id "+u+" was not found";return(u=i.MakeSurface(p.width,p.height))&&(u.Nd=p),u},i.MakeCanvasSurface||(i.MakeCanvasSurface=i.MakeSWCanvasSurface),i.MakeSurface=function(u,p){var y={width:u,height:p,colorType:i.ColorType.RGBA_8888,alphaType:i.AlphaType.Unpremul,colorSpace:i.ColorSpace.SRGB},v=u*p*4,w=i._malloc(v);return(y=i.Surface._makeRasterDirect(y,w,4*u))&&(y.Nd=null,y.Ef=u,y.Af=p,y.Cf=v,y.af=w,y.getCanvas().clear(i.TRANSPARENT)),y},i.MakeRasterDirectSurface=function(u,p,y){return i.Surface._makeRasterDirect(u,p.byteOffset,y)},i.Surface.prototype.flush=function(u){if(i.Od(this.Md),this._flush(),this.Nd){var p=new Uint8ClampedArray(i.HEAPU8.buffer,this.af,this.Cf);p=new ImageData(p,this.Ef,this.Af),u?this.Nd.getContext("2d").putImageData(p,0,0,u[0],u[1],u[2]-u[0],u[3]-u[1]):this.Nd.getContext("2d").putImageData(p,0,0)}},i.Surface.prototype.dispose=function(){this.af&&i._free(this.af),this.delete()},i.Od=i.Od||function(){},i.Se=i.Se||function(){return null}})}(o),function(i){i.Vd=i.Vd||[],i.Vd.push(function(){function u(x,R,N){return x&&x.hasOwnProperty(R)?x[R]:N}function p(x){var R=Lr(wt);return wt[R]=x,R}function y(x){return x.naturalHeight||x.videoHeight||x.displayHeight||x.height}function v(x){return x.naturalWidth||x.videoWidth||x.displayWidth||x.width}function w(x,R,N,K){return x.bindTexture(x.TEXTURE_2D,R),K||N.alphaType!==i.AlphaType.Premul||x.pixelStorei(x.UNPACK_PREMULTIPLY_ALPHA_WEBGL,!0),R}function C(x,R,N){N||R.alphaType!==i.AlphaType.Premul||x.pixelStorei(x.UNPACK_PREMULTIPLY_ALPHA_WEBGL,!1),x.bindTexture(x.TEXTURE_2D,null)}i.GetWebGLContext=function(x,R){if(!x)throw"null canvas passed into makeWebGLContext";var N={alpha:u(R,"alpha",1),depth:u(R,"depth",1),stencil:u(R,"stencil",8),antialias:u(R,"antialias",0),premultipliedAlpha:u(R,"premultipliedAlpha",1),preserveDrawingBuffer:u(R,"preserveDrawingBuffer",0),preferLowPowerToHighPerformance:u(R,"preferLowPowerToHighPerformance",0),failIfMajorPerformanceCaveat:u(R,"failIfMajorPerformanceCaveat",0),enableExtensionsByDefault:u(R,"enableExtensionsByDefault",1),explicitSwapControl:u(R,"explicitSwapControl",0),renderViaOffscreenBackBuffer:u(R,"renderViaOffscreenBackBuffer",0)};if(N.majorVersion=R&&R.majorVersion?R.majorVersion:typeof WebGL2RenderingContext<"u"?2:1,N.explicitSwapControl)throw"explicitSwapControl is not supported";return x=gf(x,N),x?(dl(x),Ae.ge.getExtension("WEBGL_debug_renderer_info"),x):0},i.deleteContext=function(x){Ae===Gt[x]&&(Ae=null),typeof JSEvents=="object"&&JSEvents.ug(Gt[x].ge.canvas),Gt[x]&&Gt[x].ge.canvas&&(Gt[x].ge.canvas.yf=void 0),Gt[x]=null},i._setTextureCleanup({deleteTexture:function(x,R){var N=wt[R];N&&Gt[x].ge.deleteTexture(N),wt[R]=null}}),i.MakeWebGLContext=function(x){if(!this.Od(x))return null;var R=this._MakeGrContext();if(!R)return null;R.Md=x;var N=R.delete.bind(R);return R.delete=function(){i.Od(this.Md),N()}.bind(R),Ae.ef=R},i.MakeGrContext=i.MakeWebGLContext,i.GrDirectContext.prototype.getResourceCacheLimitBytes=function(){i.Od(this.Md),this._getResourceCacheLimitBytes()},i.GrDirectContext.prototype.getResourceCacheUsageBytes=function(){i.Od(this.Md),this._getResourceCacheUsageBytes()},i.GrDirectContext.prototype.releaseResourcesAndAbandonContext=function(){i.Od(this.Md),this._releaseResourcesAndAbandonContext()},i.GrDirectContext.prototype.setResourceCacheLimitBytes=function(x){i.Od(this.Md),this._setResourceCacheLimitBytes(x)},i.MakeOnScreenGLSurface=function(x,R,N,K,Q,ae){return!this.Od(x.Md)||(R=Q===void 0||ae===void 0?this._MakeOnScreenGLSurface(x,R,N,K):this._MakeOnScreenGLSurface(x,R,N,K,Q,ae),!R)?null:(R.Md=x.Md,R)},i.MakeRenderTarget=function(){var x=arguments[0];if(!this.Od(x.Md))return null;if(arguments.length===3){var R=this._MakeRenderTargetWH(x,arguments[1],arguments[2]);if(!R)return null}else if(arguments.length===2){if(R=this._MakeRenderTargetII(x,arguments[1]),!R)return null}else return null;return R.Md=x.Md,R},i.MakeWebGLCanvasSurface=function(x,R,N){R=R||null;var K=x,Q=typeof OffscreenCanvas<"u"&&K instanceof OffscreenCanvas;if(!(typeof HTMLCanvasElement<"u"&&K instanceof HTMLCanvasElement||Q||(K=document.getElementById(x),K)))throw"Canvas with id "+x+" was not found";if(x=this.GetWebGLContext(K,N),!x||0>x)throw"failed to create webgl context: err "+x;return x=this.MakeWebGLContext(x),R=this.MakeOnScreenGLSurface(x,K.width,K.height,R),R||(R=K.cloneNode(!0),K.parentNode.replaceChild(R,K),R.classList.add("ck-replaced"),i.MakeSWCanvasSurface(R))},i.MakeCanvasSurface=i.MakeWebGLCanvasSurface,i.Surface.prototype.makeImageFromTexture=function(x,R){return i.Od(this.Md),x=p(x),(R=this._makeImageFromTexture(this.Md,x,R))&&(R.Le=x),R},i.Surface.prototype.makeImageFromTextureSource=function(x,R,N){R||(R={height:y(x),width:v(x),colorType:i.ColorType.RGBA_8888,alphaType:N?i.AlphaType.Premul:i.AlphaType.Unpremul}),R.colorSpace||(R.colorSpace=i.ColorSpace.SRGB),i.Od(this.Md);var K=Ae.ge;return N=w(K,K.createTexture(),R,N),Ae.version===2?K.texImage2D(K.TEXTURE_2D,0,K.RGBA,R.width,R.height,0,K.RGBA,K.UNSIGNED_BYTE,x):K.texImage2D(K.TEXTURE_2D,0,K.RGBA,K.RGBA,K.UNSIGNED_BYTE,x),C(K,R),this._resetContext(),this.makeImageFromTexture(N,R)},i.Surface.prototype.updateTextureFromSource=function(x,R,N){if(x.Le){i.Od(this.Md);var K=x.getImageInfo(),Q=Ae.ge,ae=w(Q,wt[x.Le],K,N);Ae.version===2?Q.texImage2D(Q.TEXTURE_2D,0,Q.RGBA,v(R),y(R),0,Q.RGBA,Q.UNSIGNED_BYTE,R):Q.texImage2D(Q.TEXTURE_2D,0,Q.RGBA,Q.RGBA,Q.UNSIGNED_BYTE,R),C(Q,K,N),this._resetContext(),wt[x.Le]=null,x.Le=p(ae),K.colorSpace=x.getColorSpace(),R=this._makeImageFromTexture(this.Md,x.Le,K),N=x.Ld.Td,Q=x.Ld.$d,x.Ld.Td=R.Ld.Td,x.Ld.$d=R.Ld.$d,R.Ld.Td=N,R.Ld.$d=Q,R.delete(),K.colorSpace.delete()}},i.MakeLazyImageFromTextureSource=function(x,R,N){R||(R={height:y(x),width:v(x),colorType:i.ColorType.RGBA_8888,alphaType:N?i.AlphaType.Premul:i.AlphaType.Unpremul}),R.colorSpace||(R.colorSpace=i.ColorSpace.SRGB);var K={makeTexture:function(){var Q=Ae,ae=Q.ge,k=w(ae,ae.createTexture(),R,N);return Q.version===2?ae.texImage2D(ae.TEXTURE_2D,0,ae.RGBA,R.width,R.height,0,ae.RGBA,ae.UNSIGNED_BYTE,x):ae.texImage2D(ae.TEXTURE_2D,0,ae.RGBA,ae.RGBA,ae.UNSIGNED_BYTE,x),C(ae,R,N),p(k)},freeSrc:function(){}};return x.constructor.name==="VideoFrame"&&(K.freeSrc=function(){x.close()}),i.Image._makeFromGenerator(R,K)},i.Od=function(x){return x?dl(x):!1},i.Se=function(){return Ae&&Ae.ef&&!Ae.ef.isDeleted()?Ae.ef:null}})}(o),function(i){function u(h,g,_,E,P){for(var F=0;F>>0}function w(h){if(h&&h._ck)return h;if(h instanceof Float32Array){for(var g=Math.floor(h.length/4),_=new Uint32Array(g),E=0;E$;$++)i.HEAPF32[P+E]=h[F][$],E++;h=_}else h=Me;g.ce=h}else throw"Invalid argument to copyFlexibleColorArray, Not a color array "+typeof h;return g}function Q(h){if(!h)return Me;var g=$i.toTypedArray();if(h.length){if(h.length===6||h.length===9)return N(h,"HEAPF32",pr),h.length===6&&i.HEAPF32.set(Df,6+pr/4),pr;if(h.length===16)return g[0]=h[0],g[1]=h[1],g[2]=h[3],g[3]=h[4],g[4]=h[5],g[5]=h[7],g[6]=h[12],g[7]=h[13],g[8]=h[15],pr;throw"invalid matrix size"}if(h.m11===void 0)throw"invalid matrix argument";return g[0]=h.m11,g[1]=h.m21,g[2]=h.m41,g[3]=h.m12,g[4]=h.m22,g[5]=h.m42,g[6]=h.m14,g[7]=h.m24,g[8]=h.m44,pr}function ae(h){if(!h)return Me;var g=qi.toTypedArray();if(h.length){if(h.length!==16&&h.length!==6&&h.length!==9)throw"invalid matrix size";return h.length===16?N(h,"HEAPF32",Ur):(g.fill(0),g[0]=h[0],g[1]=h[1],g[3]=h[2],g[4]=h[3],g[5]=h[4],g[7]=h[5],g[10]=1,g[12]=h[6],g[13]=h[7],g[15]=h[8],h.length===6&&(g[12]=0,g[13]=0,g[15]=1),Ur)}if(h.m11===void 0)throw"invalid matrix argument";return g[0]=h.m11,g[1]=h.m21,g[2]=h.m31,g[3]=h.m41,g[4]=h.m12,g[5]=h.m22,g[6]=h.m32,g[7]=h.m42,g[8]=h.m13,g[9]=h.m23,g[10]=h.m33,g[11]=h.m43,g[12]=h.m14,g[13]=h.m24,g[14]=h.m34,g[15]=h.m44,Ur}function k(h,g){return N(h,"HEAPF32",g||Er)}function ge(h,g,_,E){var P=Xi.toTypedArray();return P[0]=h,P[1]=g,P[2]=_,P[3]=E,Er}function we(h){for(var g=new Float32Array(4),_=0;4>_;_++)g[_]=i.HEAPF32[h/4+_];return g}function xe(h,g){return N(h,"HEAPF32",g||tt)}function ft(h,g){return N(h,"HEAPF32",g||Ji)}function xt(){for(var h=0,g=0;g>>0},i.Color4f=function(h,g,_,E){return E===void 0&&(E=1),Float32Array.of(h,g,_,E)},Object.defineProperty(i,"TRANSPARENT",{get:function(){return i.Color4f(0,0,0,0)}}),Object.defineProperty(i,"BLACK",{get:function(){return i.Color4f(0,0,0,1)}}),Object.defineProperty(i,"WHITE",{get:function(){return i.Color4f(1,1,1,1)}}),Object.defineProperty(i,"RED",{get:function(){return i.Color4f(1,0,0,1)}}),Object.defineProperty(i,"GREEN",{get:function(){return i.Color4f(0,1,0,1)}}),Object.defineProperty(i,"BLUE",{get:function(){return i.Color4f(0,0,1,1)}}),Object.defineProperty(i,"YELLOW",{get:function(){return i.Color4f(1,1,0,1)}}),Object.defineProperty(i,"CYAN",{get:function(){return i.Color4f(0,1,1,1)}}),Object.defineProperty(i,"MAGENTA",{get:function(){return i.Color4f(1,0,1,1)}}),i.getColorComponents=function(h){return[Math.floor(255*h[0]),Math.floor(255*h[1]),Math.floor(255*h[2]),h[3]]},i.parseColorString=function(h,g){if(h=h.toLowerCase(),h.startsWith("#")){switch(g=255,h.length){case 9:g=parseInt(h.slice(7,9),16);case 7:var _=parseInt(h.slice(1,3),16),E=parseInt(h.slice(3,5),16),P=parseInt(h.slice(5,7),16);break;case 5:g=17*parseInt(h.slice(4,5),16);case 4:_=17*parseInt(h.slice(1,2),16),E=17*parseInt(h.slice(2,3),16),P=17*parseInt(h.slice(3,4),16)}return i.Color(_,E,P,g/255)}return h.startsWith("rgba")?(h=h.slice(5,-1),h=h.split(","),i.Color(+h[0],+h[1],+h[2],C(h[3]))):h.startsWith("rgb")?(h=h.slice(4,-1),h=h.split(","),i.Color(+h[0],+h[1],+h[2],C(h[3]))):h.startsWith("gray(")||h.startsWith("hsl")||!g||(h=g[h],h===void 0)?i.BLACK:h},i.multiplyByAlpha=function(h,g){return h=h.slice(),h[3]=Math.max(0,Math.min(h[3]*g,1)),h},i.Malloc=function(h,g){var _=i._malloc(g*h.BYTES_PER_ELEMENT);return{_ck:!0,length:g,byteOffset:_,re:null,subarray:function(E,P){return E=this.toTypedArray().subarray(E,P),E._ck=!0,E},toTypedArray:function(){return this.re&&this.re.length?this.re:(this.re=new h(i.HEAPU8.buffer,_,g),this.re._ck=!0,this.re)}}},i.Free=function(h){i._free(h.byteOffset),h.byteOffset=Me,h.toTypedArray=null,h.re=null};var pr=Me,$i,Ur=Me,qi,Er=Me,Xi,$t,tt=Me,El,cr=Me,Al,Ki=Me,wl,Zi=Me,Yi,Mn=Me,xl,Ji=Me,jl,Ml=Me,Df=Float32Array.of(0,0,1),Me=0;i.onRuntimeInitialized=function(){function h(g,_,E,P,F,$,oe){$||($=4*P.width,P.colorType===i.ColorType.RGBA_F16?$*=2:P.colorType===i.ColorType.RGBA_F32&&($*=4));var _e=$*P.height,me=F?F.byteOffset:i._malloc(_e);if(oe?!g._readPixels(P,me,$,_,E,oe):!g._readPixels(P,me,$,_,E))return F||i._free(me),null;if(F)return F.toTypedArray();switch(P.colorType){case i.ColorType.RGBA_8888:case i.ColorType.RGBA_F16:g=new Uint8Array(i.HEAPU8.buffer,me,_e).slice();break;case i.ColorType.RGBA_F32:g=new Float32Array(i.HEAPU8.buffer,me,_e).slice();break;default:return null}return i._free(me),g}Xi=i.Malloc(Float32Array,4),Er=Xi.byteOffset,qi=i.Malloc(Float32Array,16),Ur=qi.byteOffset,$i=i.Malloc(Float32Array,9),pr=$i.byteOffset,xl=i.Malloc(Float32Array,12),Ji=xl.byteOffset,jl=i.Malloc(Float32Array,12),Ml=jl.byteOffset,$t=i.Malloc(Float32Array,4),tt=$t.byteOffset,El=i.Malloc(Float32Array,4),cr=El.byteOffset,Al=i.Malloc(Float32Array,3),Ki=Al.byteOffset,wl=i.Malloc(Float32Array,3),Zi=wl.byteOffset,Yi=i.Malloc(Int32Array,4),Mn=Yi.byteOffset,i.ColorSpace.SRGB=i.ColorSpace._MakeSRGB(),i.ColorSpace.DISPLAY_P3=i.ColorSpace._MakeDisplayP3(),i.ColorSpace.ADOBE_RGB=i.ColorSpace._MakeAdobeRGB(),i.GlyphRunFlags={IsWhiteSpace:i._GlyphRunFlags_isWhiteSpace},i.Path.MakeFromCmds=function(g){var _=N(g,"HEAPF32"),E=i.Path._MakeFromCmds(_,g.length);return R(_,g),E},i.Path.MakeFromVerbsPointsWeights=function(g,_,E){var P=N(g,"HEAPU8"),F=N(_,"HEAPF32"),$=N(E,"HEAPF32"),oe=i.Path._MakeFromVerbsPointsWeights(P,g.length,F,_.length,$,E&&E.length||0);return R(P,g),R(F,_),R($,E),oe},i.Path.prototype.addArc=function(g,_,E){return g=xe(g),this._addArc(g,_,E),this},i.Path.prototype.addCircle=function(g,_,E,P){return this._addCircle(g,_,E,!!P),this},i.Path.prototype.addOval=function(g,_,E){return E===void 0&&(E=1),g=xe(g),this._addOval(g,!!_,E),this},i.Path.prototype.addPath=function(){var g=Array.prototype.slice.call(arguments),_=g[0],E=!1;if(typeof g[g.length-1]=="boolean"&&(E=g.pop()),g.length===1)this._addPath(_,1,0,0,0,1,0,0,0,1,E);else if(g.length===2)g=g[1],this._addPath(_,g[0],g[1],g[2],g[3],g[4],g[5],g[6]||0,g[7]||0,g[8]||1,E);else if(g.length===7||g.length===10)this._addPath(_,g[1],g[2],g[3],g[4],g[5],g[6],g[7]||0,g[8]||0,g[9]||1,E);else return null;return this},i.Path.prototype.addPoly=function(g,_){var E=N(g,"HEAPF32");return this._addPoly(E,g.length/2,_),R(E,g),this},i.Path.prototype.addRect=function(g,_){return g=xe(g),this._addRect(g,!!_),this},i.Path.prototype.addRRect=function(g,_){return g=ft(g),this._addRRect(g,!!_),this},i.Path.prototype.addVerbsPointsWeights=function(g,_,E){var P=N(g,"HEAPU8"),F=N(_,"HEAPF32"),$=N(E,"HEAPF32");this._addVerbsPointsWeights(P,g.length,F,_.length,$,E&&E.length||0),R(P,g),R(F,_),R($,E)},i.Path.prototype.arc=function(g,_,E,P,F,$){return g=i.LTRBRect(g-E,_-E,g+E,_+E),F=(F-P)/Math.PI*180-360*!!$,$=new i.Path,$.addArc(g,P/Math.PI*180,F),this.addPath($,!0),$.delete(),this},i.Path.prototype.arcToOval=function(g,_,E,P){return g=xe(g),this._arcToOval(g,_,E,P),this},i.Path.prototype.arcToRotated=function(g,_,E,P,F,$,oe){return this._arcToRotated(g,_,E,!!P,!!F,$,oe),this},i.Path.prototype.arcToTangent=function(g,_,E,P,F){return this._arcToTangent(g,_,E,P,F),this},i.Path.prototype.close=function(){return this._close(),this},i.Path.prototype.conicTo=function(g,_,E,P,F){return this._conicTo(g,_,E,P,F),this},i.Path.prototype.computeTightBounds=function(g){this._computeTightBounds(tt);var _=$t.toTypedArray();return g?(g.set(_),g):_.slice()},i.Path.prototype.cubicTo=function(g,_,E,P,F,$){return this._cubicTo(g,_,E,P,F,$),this},i.Path.prototype.dash=function(g,_,E){return this._dash(g,_,E)?this:null},i.Path.prototype.getBounds=function(g){this._getBounds(tt);var _=$t.toTypedArray();return g?(g.set(_),g):_.slice()},i.Path.prototype.lineTo=function(g,_){return this._lineTo(g,_),this},i.Path.prototype.moveTo=function(g,_){return this._moveTo(g,_),this},i.Path.prototype.offset=function(g,_){return this._transform(1,0,g,0,1,_,0,0,1),this},i.Path.prototype.quadTo=function(g,_,E,P){return this._quadTo(g,_,E,P),this},i.Path.prototype.rArcTo=function(g,_,E,P,F,$,oe){return this._rArcTo(g,_,E,P,F,$,oe),this},i.Path.prototype.rConicTo=function(g,_,E,P,F){return this._rConicTo(g,_,E,P,F),this},i.Path.prototype.rCubicTo=function(g,_,E,P,F,$){return this._rCubicTo(g,_,E,P,F,$),this},i.Path.prototype.rLineTo=function(g,_){return this._rLineTo(g,_),this},i.Path.prototype.rMoveTo=function(g,_){return this._rMoveTo(g,_),this},i.Path.prototype.rQuadTo=function(g,_,E,P){return this._rQuadTo(g,_,E,P),this},i.Path.prototype.stroke=function(g){return g=g||{},g.width=g.width||1,g.miter_limit=g.miter_limit||4,g.cap=g.cap||i.StrokeCap.Butt,g.join=g.join||i.StrokeJoin.Miter,g.precision=g.precision||1,this._stroke(g)?this:null},i.Path.prototype.transform=function(){if(arguments.length===1){var g=arguments[0];this._transform(g[0],g[1],g[2],g[3],g[4],g[5],g[6]||0,g[7]||0,g[8]||1)}else if(arguments.length===6||arguments.length===9)g=arguments,this._transform(g[0],g[1],g[2],g[3],g[4],g[5],g[6]||0,g[7]||0,g[8]||1);else throw"transform expected to take 1 or 9 arguments. Got "+arguments.length;return this},i.Path.prototype.trim=function(g,_,E){return this._trim(g,_,!!E)?this:null},i.Image.prototype.encodeToBytes=function(g,_){var E=i.Se();return g=g||i.ImageFormat.PNG,_=_||100,E?this._encodeToBytes(g,_,E):this._encodeToBytes(g,_)},i.Image.prototype.makeShaderCubic=function(g,_,E,P,F){return F=Q(F),this._makeShaderCubic(g,_,E,P,F)},i.Image.prototype.makeShaderOptions=function(g,_,E,P,F){return F=Q(F),this._makeShaderOptions(g,_,E,P,F)},i.Image.prototype.readPixels=function(g,_,E,P,F){var $=i.Se();return h(this,g,_,E,P,F,$)},i.Canvas.prototype.clear=function(g){i.Od(this.Md),g=k(g),this._clear(g)},i.Canvas.prototype.clipRRect=function(g,_,E){i.Od(this.Md),g=ft(g),this._clipRRect(g,_,E)},i.Canvas.prototype.clipRect=function(g,_,E){i.Od(this.Md),g=xe(g),this._clipRect(g,_,E)},i.Canvas.prototype.concat=function(g){i.Od(this.Md),g=ae(g),this._concat(g)},i.Canvas.prototype.drawArc=function(g,_,E,P,F){i.Od(this.Md),g=xe(g),this._drawArc(g,_,E,P,F)},i.Canvas.prototype.drawAtlas=function(g,_,E,P,F,$,oe){if(g&&P&&_&&E&&_.length===E.length){i.Od(this.Md),F||(F=i.BlendMode.SrcOver);var _e=N(_,"HEAPF32"),me=N(E,"HEAPF32"),Ie=E.length/4,O=N(w($),"HEAPU32");if(oe&&"B"in oe&&"C"in oe)this._drawAtlasCubic(g,me,_e,O,Ie,F,oe.B,oe.C,P);else{let X=i.FilterMode.Linear,Se=i.MipmapMode.None;oe&&(X=oe.filter,"mipmap"in oe&&(Se=oe.mipmap)),this._drawAtlasOptions(g,me,_e,O,Ie,F,X,Se,P)}R(_e,_),R(me,E),R(O,$)}},i.Canvas.prototype.drawCircle=function(g,_,E,P){i.Od(this.Md),this._drawCircle(g,_,E,P)},i.Canvas.prototype.drawColor=function(g,_){i.Od(this.Md),g=k(g),_!==void 0?this._drawColor(g,_):this._drawColor(g)},i.Canvas.prototype.drawColorInt=function(g,_){i.Od(this.Md),this._drawColorInt(g,_||i.BlendMode.SrcOver)},i.Canvas.prototype.drawColorComponents=function(g,_,E,P,F){i.Od(this.Md),g=ge(g,_,E,P),F!==void 0?this._drawColor(g,F):this._drawColor(g)},i.Canvas.prototype.drawDRRect=function(g,_,E){i.Od(this.Md),g=ft(g,Ji),_=ft(_,Ml),this._drawDRRect(g,_,E)},i.Canvas.prototype.drawImage=function(g,_,E,P){i.Od(this.Md),this._drawImage(g,_,E,P||null)},i.Canvas.prototype.drawImageCubic=function(g,_,E,P,F,$){i.Od(this.Md),this._drawImageCubic(g,_,E,P,F,$||null)},i.Canvas.prototype.drawImageOptions=function(g,_,E,P,F,$){i.Od(this.Md),this._drawImageOptions(g,_,E,P,F,$||null)},i.Canvas.prototype.drawImageNine=function(g,_,E,P,F){i.Od(this.Md),_=N(_,"HEAP32",Mn),E=xe(E),this._drawImageNine(g,_,E,P,F||null)},i.Canvas.prototype.drawImageRect=function(g,_,E,P,F){i.Od(this.Md),xe(_,tt),xe(E,cr),this._drawImageRect(g,tt,cr,P,!!F)},i.Canvas.prototype.drawImageRectCubic=function(g,_,E,P,F,$){i.Od(this.Md),xe(_,tt),xe(E,cr),this._drawImageRectCubic(g,tt,cr,P,F,$||null)},i.Canvas.prototype.drawImageRectOptions=function(g,_,E,P,F,$){i.Od(this.Md),xe(_,tt),xe(E,cr),this._drawImageRectOptions(g,tt,cr,P,F,$||null)},i.Canvas.prototype.drawLine=function(g,_,E,P,F){i.Od(this.Md),this._drawLine(g,_,E,P,F)},i.Canvas.prototype.drawOval=function(g,_){i.Od(this.Md),g=xe(g),this._drawOval(g,_)},i.Canvas.prototype.drawPaint=function(g){i.Od(this.Md),this._drawPaint(g)},i.Canvas.prototype.drawParagraph=function(g,_,E){i.Od(this.Md),this._drawParagraph(g,_,E)},i.Canvas.prototype.drawPatch=function(g,_,E,P,F){if(24>g.length)throw"Need 12 cubic points";if(_&&4>_.length)throw"Need 4 colors";if(E&&8>E.length)throw"Need 4 shader coordinates";i.Od(this.Md);let $=N(g,"HEAPF32"),oe=_?N(w(_),"HEAPU32"):Me,_e=E?N(E,"HEAPF32"):Me;P||(P=i.BlendMode.Modulate),this._drawPatch($,oe,_e,P,F),R(_e,E),R(oe,_),R($,g)},i.Canvas.prototype.drawPath=function(g,_){i.Od(this.Md),this._drawPath(g,_)},i.Canvas.prototype.drawPicture=function(g){i.Od(this.Md),this._drawPicture(g)},i.Canvas.prototype.drawPoints=function(g,_,E){i.Od(this.Md);var P=N(_,"HEAPF32");this._drawPoints(g,P,_.length/2,E),R(P,_)},i.Canvas.prototype.drawRRect=function(g,_){i.Od(this.Md),g=ft(g),this._drawRRect(g,_)},i.Canvas.prototype.drawRect=function(g,_){i.Od(this.Md),g=xe(g),this._drawRect(g,_)},i.Canvas.prototype.drawRect4f=function(g,_,E,P,F){i.Od(this.Md),this._drawRect4f(g,_,E,P,F)},i.Canvas.prototype.drawShadow=function(g,_,E,P,F,$,oe){i.Od(this.Md);var _e=N(F,"HEAPF32"),me=N($,"HEAPF32");_=N(_,"HEAPF32",Ki),E=N(E,"HEAPF32",Zi),this._drawShadow(g,_,E,P,_e,me,oe),R(_e,F),R(me,$)},i.getShadowLocalBounds=function(g,_,E,P,F,$,oe){return g=Q(g),E=N(E,"HEAPF32",Ki),P=N(P,"HEAPF32",Zi),this._getShadowLocalBounds(g,_,E,P,F,$,tt)?(_=$t.toTypedArray(),oe?(oe.set(_),oe):_.slice()):null},i.Canvas.prototype.drawTextBlob=function(g,_,E,P){i.Od(this.Md),this._drawTextBlob(g,_,E,P)},i.Canvas.prototype.drawVertices=function(g,_,E){i.Od(this.Md),this._drawVertices(g,_,E)},i.Canvas.prototype.getDeviceClipBounds=function(g){this._getDeviceClipBounds(Mn);var _=Yi.toTypedArray();return g?g.set(_):g=_.slice(),g},i.Canvas.prototype.getLocalToDevice=function(){this._getLocalToDevice(Ur);for(var g=Ur,_=Array(16),E=0;16>E;E++)_[E]=i.HEAPF32[g/4+E];return _},i.Canvas.prototype.getTotalMatrix=function(){this._getTotalMatrix(pr);for(var g=Array(9),_=0;9>_;_++)g[_]=i.HEAPF32[pr/4+_];return g},i.Canvas.prototype.makeSurface=function(g){return g=this._makeSurface(g),g.Md=this.Md,g},i.Canvas.prototype.readPixels=function(g,_,E,P,F){return i.Od(this.Md),h(this,g,_,E,P,F)},i.Canvas.prototype.saveLayer=function(g,_,E,P){return _=xe(_),this._saveLayer(g||null,_,E||null,P||0)},i.Canvas.prototype.writePixels=function(g,_,E,P,F,$,oe,_e){if(g.byteLength%(_*E))throw"pixels length must be a multiple of the srcWidth * srcHeight";i.Od(this.Md);var me=g.byteLength/(_*E);$=$||i.AlphaType.Unpremul,oe=oe||i.ColorType.RGBA_8888,_e=_e||i.ColorSpace.SRGB;var Ie=me*_;return me=N(g,"HEAPU8"),_=this._writePixels({width:_,height:E,colorType:oe,alphaType:$,colorSpace:_e},me,Ie,P,F),R(me,g),_},i.ColorFilter.MakeBlend=function(g,_,E){return g=k(g),E=E||i.ColorSpace.SRGB,i.ColorFilter._MakeBlend(g,_,E)},i.ColorFilter.MakeMatrix=function(g){if(!g||g.length!==20)throw"invalid color matrix";var _=N(g,"HEAPF32"),E=i.ColorFilter._makeMatrix(_);return R(_,g),E},i.ContourMeasure.prototype.getPosTan=function(g,_){return this._getPosTan(g,tt),g=$t.toTypedArray(),_?(_.set(g),_):g.slice()},i.ImageFilter.MakeDropShadow=function(g,_,E,P,F,$){return F=k(F,Er),i.ImageFilter._MakeDropShadow(g,_,E,P,F,$)},i.ImageFilter.MakeDropShadowOnly=function(g,_,E,P,F,$){return F=k(F,Er),i.ImageFilter._MakeDropShadowOnly(g,_,E,P,F,$)},i.ImageFilter.MakeImage=function(g,_,E,P){if(E=xe(E,tt),P=xe(P,cr),"B"in _&&"C"in _)return i.ImageFilter._MakeImageCubic(g,_.B,_.C,E,P);let F=_.filter,$=i.MipmapMode.None;return"mipmap"in _&&($=_.mipmap),i.ImageFilter._MakeImageOptions(g,F,$,E,P)},i.ImageFilter.MakeMatrixTransform=function(g,_,E){if(g=Q(g),"B"in _&&"C"in _)return i.ImageFilter._MakeMatrixTransformCubic(g,_.B,_.C,E);let P=_.filter,F=i.MipmapMode.None;return"mipmap"in _&&(F=_.mipmap),i.ImageFilter._MakeMatrixTransformOptions(g,P,F,E)},i.Paint.prototype.getColor=function(){return this._getColor(Er),we(Er)},i.Paint.prototype.setColor=function(g,_){_=_||null,g=k(g),this._setColor(g,_)},i.Paint.prototype.setColorComponents=function(g,_,E,P,F){F=F||null,g=ge(g,_,E,P),this._setColor(g,F)},i.Path.prototype.getPoint=function(g,_){return this._getPoint(g,tt),g=$t.toTypedArray(),_?(_[0]=g[0],_[1]=g[1],_):g.slice(0,2)},i.Picture.prototype.makeShader=function(g,_,E,P,F){return P=Q(P),F=xe(F),this._makeShader(g,_,E,P,F)},i.PictureRecorder.prototype.beginRecording=function(g){return g=xe(g),this._beginRecording(g)},i.Surface.prototype.getCanvas=function(){var g=this._getCanvas();return g.Md=this.Md,g},i.Surface.prototype.makeImageSnapshot=function(g){return i.Od(this.Md),g=N(g,"HEAP32",Mn),this._makeImageSnapshot(g)},i.Surface.prototype.makeSurface=function(g){return i.Od(this.Md),g=this._makeSurface(g),g.Md=this.Md,g},i.Surface.prototype.Df=function(g,_){return this.He||(this.He=this.getCanvas()),requestAnimationFrame(function(){i.Od(this.Md),g(this.He),this.flush(_)}.bind(this))},i.Surface.prototype.requestAnimationFrame||(i.Surface.prototype.requestAnimationFrame=i.Surface.prototype.Df),i.Surface.prototype.zf=function(g,_){this.He||(this.He=this.getCanvas()),requestAnimationFrame(function(){i.Od(this.Md),g(this.He),this.flush(_),this.dispose()}.bind(this))},i.Surface.prototype.drawOnce||(i.Surface.prototype.drawOnce=i.Surface.prototype.zf),i.PathEffect.MakeDash=function(g,_){if(_||(_=0),!g.length||g.length%2===1)throw"Intervals array must have even length";var E=N(g,"HEAPF32");return _=i.PathEffect._MakeDash(E,g.length,_),R(E,g),_},i.PathEffect.MakeLine2D=function(g,_){return _=Q(_),i.PathEffect._MakeLine2D(g,_)},i.PathEffect.MakePath2D=function(g,_){return g=Q(g),i.PathEffect._MakePath2D(g,_)},i.Shader.MakeColor=function(g,_){return _=_||null,g=k(g),i.Shader._MakeColor(g,_)},i.Shader.Blend=i.Shader.MakeBlend,i.Shader.Color=i.Shader.MakeColor,i.Shader.MakeLinearGradient=function(g,_,E,P,F,$,oe,_e){_e=_e||null;var me=K(E),Ie=N(P,"HEAPF32");oe=oe||0,$=Q($);var O=$t.toTypedArray();return O.set(g),O.set(_,2),g=i.Shader._MakeLinearGradient(tt,me.ce,me.colorType,Ie,me.count,F,oe,$,_e),R(me.ce,E),P&&R(Ie,P),g},i.Shader.MakeRadialGradient=function(g,_,E,P,F,$,oe,_e){_e=_e||null;var me=K(E),Ie=N(P,"HEAPF32");return oe=oe||0,$=Q($),g=i.Shader._MakeRadialGradient(g[0],g[1],_,me.ce,me.colorType,Ie,me.count,F,oe,$,_e),R(me.ce,E),P&&R(Ie,P),g},i.Shader.MakeSweepGradient=function(g,_,E,P,F,$,oe,_e,me,Ie){Ie=Ie||null;var O=K(E),X=N(P,"HEAPF32");return oe=oe||0,_e=_e||0,me=me||360,$=Q($),g=i.Shader._MakeSweepGradient(g,_,O.ce,O.colorType,X,O.count,F,_e,me,oe,$,Ie),R(O.ce,E),P&&R(X,P),g},i.Shader.MakeTwoPointConicalGradient=function(g,_,E,P,F,$,oe,_e,me,Ie){Ie=Ie||null;var O=K(F),X=N($,"HEAPF32");me=me||0,_e=Q(_e);var Se=$t.toTypedArray();return Se.set(g),Se.set(E,2),g=i.Shader._MakeTwoPointConicalGradient(tt,_,P,O.ce,O.colorType,X,O.count,oe,me,_e,Ie),R(O.ce,F),$&&R(X,$),g},i.Vertices.prototype.bounds=function(g){this._bounds(tt);var _=$t.toTypedArray();return g?(g.set(_),g):_.slice()},i.Vd&&i.Vd.forEach(function(g){g()})},i.computeTonalColors=function(h){var g=N(h.ambient,"HEAPF32"),_=N(h.spot,"HEAPF32");this._computeTonalColors(g,_);var E={ambient:we(g),spot:we(_)};return R(g,h.ambient),R(_,h.spot),E},i.LTRBRect=function(h,g,_,E){return Float32Array.of(h,g,_,E)},i.XYWHRect=function(h,g,_,E){return Float32Array.of(h,g,h+_,g+E)},i.LTRBiRect=function(h,g,_,E){return Int32Array.of(h,g,_,E)},i.XYWHiRect=function(h,g,_,E){return Int32Array.of(h,g,h+_,g+E)},i.RRectXY=function(h,g,_){return Float32Array.of(h[0],h[1],h[2],h[3],g,_,g,_,g,_,g,_)},i.MakeAnimatedImageFromEncoded=function(h){h=new Uint8Array(h);var g=i._malloc(h.byteLength);return i.HEAPU8.set(h,g),(h=i._decodeAnimatedImage(g,h.byteLength))?h:null},i.MakeImageFromEncoded=function(h){h=new Uint8Array(h);var g=i._malloc(h.byteLength);return i.HEAPU8.set(h,g),(h=i._decodeImage(g,h.byteLength))?h:null};var Io=null;i.MakeImageFromCanvasImageSource=function(h){var g=h.width,_=h.height;Io||(Io=document.createElement("canvas")),Io.width=g,Io.height=_;var E=Io.getContext("2d",{wg:!0});return E.drawImage(h,0,0),h=E.getImageData(0,0,g,_),i.MakeImage({width:g,height:_,alphaType:i.AlphaType.Unpremul,colorType:i.ColorType.RGBA_8888,colorSpace:i.ColorSpace.SRGB},h.data,4*g)},i.MakeImage=function(h,g,_){var E=i._malloc(g.length);return i.HEAPU8.set(g,E),i._MakeImage(h,E,g.length,_)},i.MakeVertices=function(h,g,_,E,P,F){var $=P&&P.length||0,oe=0;return _&&_.length&&(oe|=1),E&&E.length&&(oe|=2),F===void 0||F||(oe|=4),h=new i._VerticesBuilder(h,g.length/2,$,oe),N(g,"HEAPF32",h.positions()),h.texCoords()&&N(_,"HEAPF32",h.texCoords()),h.colors()&&N(w(E),"HEAPU32",h.colors()),h.indices()&&N(P,"HEAPU16",h.indices()),h.detach()},i.Matrix={},i.Matrix.identity=function(){return p(3)},i.Matrix.invert=function(h){var g=h[0]*h[4]*h[8]+h[1]*h[5]*h[6]+h[2]*h[3]*h[7]-h[2]*h[4]*h[6]-h[1]*h[3]*h[8]-h[0]*h[5]*h[7];return g?[(h[4]*h[8]-h[5]*h[7])/g,(h[2]*h[7]-h[1]*h[8])/g,(h[1]*h[5]-h[2]*h[4])/g,(h[5]*h[6]-h[3]*h[8])/g,(h[0]*h[8]-h[2]*h[6])/g,(h[2]*h[3]-h[0]*h[5])/g,(h[3]*h[7]-h[4]*h[6])/g,(h[1]*h[6]-h[0]*h[7])/g,(h[0]*h[4]-h[1]*h[3])/g]:null},i.Matrix.mapPoints=function(h,g){for(var _=0;_P;P+=5){for(var F=0;4>F;F++)_[E++]=h[P]*g[F]+h[P+1]*g[F+5]+h[P+2]*g[F+10]+h[P+3]*g[F+15];_[E++]=h[P]*g[4]+h[P+1]*g[9]+h[P+2]*g[14]+h[P+3]*g[19]+h[P+4]}return _},function(h){h.Vd=h.Vd||[],h.Vd.push(function(){function g(O){if(!O||!O.length)return[];for(var X=[],Se=0;Seg?(i._free(h),null):(P=new Uint16Array(i.HEAPU8.buffer,h,g),_?(_.set(P),i._free(h),_):(_=Uint16Array.from(P),i._free(h),_))},i.Font.prototype.getGlyphIntercepts=function(h,g,_,E){var P=N(h,"HEAPU16"),F=N(g,"HEAPF32");return this._getGlyphIntercepts(P,h.length,!(h&&h._ck),F,g.length,!(g&&g._ck),_,E)},i.Font.prototype.getGlyphWidths=function(h,g,_){var E=N(h,"HEAPU16"),P=i._malloc(4*h.length);return this._getGlyphWidthBounds(E,h.length,P,Me,g||null),g=new Float32Array(i.HEAPU8.buffer,P,h.length),R(E,h),_?(_.set(g),i._free(P),_):(h=Float32Array.from(g),i._free(P),h)},i.FontMgr.FromData=function(){if(!arguments.length)return null;var h=arguments;if(h.length===1&&Array.isArray(h[0])&&(h=arguments[0]),!h.length)return null;for(var g=[],_=[],E=0;Eg?(i._free(h),null):(P=new Uint16Array(i.HEAPU8.buffer,h,g),_?(_.set(P),i._free(h),_):(_=Uint16Array.from(P),i._free(h),_))},i.TextBlob.MakeOnPath=function(h,g,_,E){if(h&&h.length&&g&&g.countPoints()){if(g.countPoints()===1)return this.MakeFromText(h,_);E||(E=0);var P=_.getGlyphIDs(h);P=_.getGlyphWidths(P);var F=[];g=new i.ContourMeasureIter(g,!1,1);for(var $=g.next(),oe=new Float32Array(4),_e=0;_e$.length()){if($.delete(),$=g.next(),!$){h=h.substring(0,_e);break}E=me/2}$.getPosTan(E,oe);var Ie=oe[2],O=oe[3];F.push(Ie,O,oe[0]-me/2*Ie,oe[1]-me/2*O),E+=me/2}return h=this.MakeFromRSXform(h,F,_),$&&$.delete(),g.delete(),h}},i.TextBlob.MakeFromRSXform=function(h,g,_){var E=Ee(h)+1,P=i._malloc(E);return fe(h,Oe,P,E),h=N(g,"HEAPF32"),_=i.TextBlob._MakeFromRSXform(P,E-1,h,_),i._free(P),_||null},i.TextBlob.MakeFromRSXformGlyphs=function(h,g,_){var E=N(h,"HEAPU16");return g=N(g,"HEAPF32"),_=i.TextBlob._MakeFromRSXformGlyphs(E,2*h.length,g,_),R(E,h),_||null},i.TextBlob.MakeFromGlyphs=function(h,g){var _=N(h,"HEAPU16");return g=i.TextBlob._MakeFromGlyphs(_,2*h.length,g),R(_,h),g||null},i.TextBlob.MakeFromText=function(h,g){var _=Ee(h)+1,E=i._malloc(_);return fe(h,Oe,E,_),h=i.TextBlob._MakeFromText(E,_-1,g),i._free(E),h||null},i.MallocGlyphIDs=function(h){return i.Malloc(Uint16Array,h)}}),i.Vd=i.Vd||[],i.Vd.push(function(){i.MakePicture=function(h){h=new Uint8Array(h);var g=i._malloc(h.byteLength);return i.HEAPU8.set(h,g),(h=i._MakePicture(g,h.byteLength))?h:null}}),i.Vd=i.Vd||[],i.Vd.push(function(){i.RuntimeEffect.Make=function(h,g){return i.RuntimeEffect._Make(h,{onError:g||function(_){console.log("RuntimeEffect error",_)}})},i.RuntimeEffect.prototype.makeShader=function(h,g){var _=!h._ck,E=N(h,"HEAPF32");return g=Q(g),this._makeShader(E,4*h.length,_,g)},i.RuntimeEffect.prototype.makeShaderWithChildren=function(h,g,_){var E=!h._ck,P=N(h,"HEAPF32");_=Q(_);for(var F=[],$=0;$T||1=T||!T||(this.Ke=T,this.Qd.setStrokeWidth(T))}}),Object.defineProperty(this,"miterLimit",{enumerable:!0,get:function(){return this.Qd.getStrokeMiter()},set:function(T){0>=T||!T||this.Qd.setStrokeMiter(T)}}),Object.defineProperty(this,"shadowBlur",{enumerable:!0,get:function(){return this.we},set:function(T){0>T||!isFinite(T)||(this.we=T)}}),Object.defineProperty(this,"shadowColor",{enumerable:!0,get:function(){return g(this.Je)},set:function(T){this.Je=_(T)}}),Object.defineProperty(this,"shadowOffsetX",{enumerable:!0,get:function(){return this.xe},set:function(T){isFinite(T)&&(this.xe=T)}}),Object.defineProperty(this,"shadowOffsetY",{enumerable:!0,get:function(){return this.ye},set:function(T){isFinite(T)&&(this.ye=T)}}),Object.defineProperty(this,"strokeStyle",{enumerable:!0,get:function(){return g(this.he)},set:function(T){typeof T=="string"?this.he=_(T):T.ue&&(this.he=T)}}),this.arc=function(T,j,W,G,Z,ee){X(this.Sd,T,j,W,W,0,G,Z,ee)},this.arcTo=function(T,j,W,G,Z){me(this.Sd,T,j,W,G,Z)},this.beginPath=function(){this.Sd.delete(),this.Sd=new i.Path},this.bezierCurveTo=function(T,j,W,G,Z,ee){var le=this.Sd;h([T,j,W,G,Z,ee])&&(le.isEmpty()&&le.moveTo(T,j),le.cubicTo(T,j,W,G,Z,ee))},this.clearRect=function(T,j,W,G){this.Qd.setStyle(i.PaintStyle.Fill),this.Qd.setBlendMode(i.BlendMode.Clear),this.Nd.drawRect(i.XYWHRect(T,j,W,G),this.Qd),this.Qd.setBlendMode(this.Pd)},this.clip=function(T,j){typeof T=="string"?(j=T,T=this.Sd):T&&T.$e&&(T=T.Wd),T||(T=this.Sd),T=T.copy(),j&&j.toLowerCase()==="evenodd"?T.setFillType(i.FillType.EvenOdd):T.setFillType(i.FillType.Winding),this.Nd.clipPath(T,i.ClipOp.Intersect,!0),T.delete()},this.closePath=function(){Ie(this.Sd)},this.createImageData=function(){if(arguments.length===1){var T=arguments[0];return new oe(new Uint8ClampedArray(4*T.width*T.height),T.width,T.height)}if(arguments.length===2){T=arguments[0];var j=arguments[1];return new oe(new Uint8ClampedArray(4*T*j),T,j)}throw"createImageData expects 1 or 2 arguments, got "+arguments.length},this.createLinearGradient=function(T,j,W,G){if(h(arguments)){var Z=new _e(T,j,W,G);return this.Ce.push(Z),Z}},this.createPattern=function(T,j){return T=new Je(T,j),this.Ce.push(T),T},this.createRadialGradient=function(T,j,W,G,Z,ee){if(h(arguments)){var le=new mt(T,j,W,G,Z,ee);return this.Ce.push(le),le}},this.drawImage=function(T){T instanceof $&&(T=T.tf());var j=this.Pe();if(arguments.length===3||arguments.length===5)var W=i.XYWHRect(arguments[1],arguments[2],arguments[3]||T.width(),arguments[4]||T.height()),G=i.XYWHRect(0,0,T.width(),T.height());else if(arguments.length===9)W=i.XYWHRect(arguments[5],arguments[6],arguments[7],arguments[8]),G=i.XYWHRect(arguments[1],arguments[2],arguments[3],arguments[4]);else throw"invalid number of args for drawImage, need 3, 5, or 9; got "+arguments.length;this.Nd.drawImageRect(T,G,W,j,!1),j.dispose()},this.ellipse=function(T,j,W,G,Z,ee,le,ke){X(this.Sd,T,j,W,G,Z,ee,le,ke)},this.Pe=function(){var T=this.Qd.copy();if(T.setStyle(i.PaintStyle.Fill),y(this.be)){var j=i.multiplyByAlpha(this.be,this.ke);T.setColor(j)}else j=this.be.ue(this.Ud),T.setColor(i.Color(0,0,0,this.ke)),T.setShader(j);return T.dispose=function(){this.delete()},T},this.fill=function(T,j){if(typeof T=="string"?(j=T,T=this.Sd):T&&T.$e&&(T=T.Wd),j==="evenodd")this.Sd.setFillType(i.FillType.EvenOdd);else{if(j!=="nonzero"&&j)throw"invalid fill rule";this.Sd.setFillType(i.FillType.Winding)}T||(T=this.Sd),j=this.Pe();var W=this.ze(j);W&&(this.Nd.save(),this.se(),this.Nd.drawPath(T,W),this.Nd.restore(),W.dispose()),this.Nd.drawPath(T,j),j.dispose()},this.fillRect=function(T,j,W,G){var Z=this.Pe(),ee=this.ze(Z);ee&&(this.Nd.save(),this.se(),this.Nd.drawRect(i.XYWHRect(T,j,W,G),ee),this.Nd.restore(),ee.dispose()),this.Nd.drawRect(i.XYWHRect(T,j,W,G),Z),Z.dispose()},this.fillText=function(T,j,W){var G=this.Pe();T=i.TextBlob.MakeFromText(T,this.ne);var Z=this.ze(G);Z&&(this.Nd.save(),this.se(),this.Nd.drawTextBlob(T,j,W,Z),this.Nd.restore(),Z.dispose()),this.Nd.drawTextBlob(T,j,W,G),T.delete(),G.dispose()},this.getImageData=function(T,j,W,G){return(T=this.Nd.readPixels(T,j,{width:W,height:G,colorType:i.ColorType.RGBA_8888,alphaType:i.AlphaType.Unpremul,colorSpace:i.ColorSpace.SRGB}))?new oe(new Uint8ClampedArray(T.buffer),W,G):null},this.getLineDash=function(){return this.ve.slice()},this.nf=function(T){var j=i.Matrix.invert(this.Ud);return i.Matrix.mapPoints(j,T),T},this.isPointInPath=function(T,j,W){var G=arguments;if(G.length===3)var Z=this.Sd;else if(G.length===4)Z=G[0],T=G[1],j=G[2],W=G[3];else throw"invalid arg count, need 3 or 4, got "+G.length;return!isFinite(T)||!isFinite(j)||(W=W||"nonzero",W!=="nonzero"&&W!=="evenodd")?!1:(G=this.nf([T,j]),T=G[0],j=G[1],Z.setFillType(W==="nonzero"?i.FillType.Winding:i.FillType.EvenOdd),Z.contains(T,j))},this.isPointInStroke=function(T,j){var W=arguments;if(W.length===2)var G=this.Sd;else if(W.length===3)G=W[0],T=W[1],j=W[2];else throw"invalid arg count, need 2 or 3, got "+W.length;return!isFinite(T)||!isFinite(j)?!1:(W=this.nf([T,j]),T=W[0],j=W[1],G=G.copy(),G.setFillType(i.FillType.Winding),G.stroke({width:this.lineWidth,miter_limit:this.miterLimit,cap:this.Qd.getStrokeCap(),join:this.Qd.getStrokeJoin(),precision:.3}),W=G.contains(T,j),G.delete(),W)},this.lineTo=function(T,j){Se(this.Sd,T,j)},this.measureText=function(T){T=this.ne.getGlyphIDs(T),T=this.ne.getGlyphWidths(T);let j=0;for(let W of T)j+=W;return{width:j}},this.moveTo=function(T,j){var W=this.Sd;h([T,j])&&W.moveTo(T,j)},this.putImageData=function(T,j,W,G,Z,ee,le){if(h([j,W,G,Z,ee,le])){if(G===void 0)this.Nd.writePixels(T.data,T.width,T.height,j,W);else if(G=G||0,Z=Z||0,ee=ee||T.width,le=le||T.height,0>ee&&(G+=ee,ee=Math.abs(ee)),0>le&&(Z+=le,le=Math.abs(le)),0>G&&(ee+=G,G=0),0>Z&&(le+=Z,Z=0),!(0>=ee||0>=le)){T=i.MakeImage({width:T.width,height:T.height,alphaType:i.AlphaType.Unpremul,colorType:i.ColorType.RGBA_8888,colorSpace:i.ColorSpace.SRGB},T.data,4*T.width);var ke=i.XYWHRect(G,Z,ee,le);j=i.XYWHRect(j+G,W+Z,ee,le),W=i.Matrix.invert(this.Ud),this.Nd.save(),this.Nd.concat(W),this.Nd.drawImageRect(T,ke,j,null,!1),this.Nd.restore(),T.delete()}}},this.quadraticCurveTo=function(T,j,W,G){var Z=this.Sd;h([T,j,W,G])&&(Z.isEmpty()&&Z.moveTo(T,j),Z.quadTo(T,j,W,G))},this.rect=function(T,j,W,G){var Z=this.Sd;T=i.XYWHRect(T,j,W,G),h(T)&&Z.addRect(T)},this.resetTransform=function(){this.Sd.transform(this.Ud);var T=i.Matrix.invert(this.Ud);this.Nd.concat(T),this.Ud=this.Nd.getTotalMatrix()},this.restore=function(){var T=this.mf.pop();if(T){var j=i.Matrix.multiply(this.Ud,i.Matrix.invert(T.Gf));this.Sd.transform(j),this.Qd.delete(),this.Qd=T.$f,this.ve=T.Yf,this.Ke=T.mg,this.he=T.lg,this.be=T.fs,this.xe=T.jg,this.ye=T.kg,this.we=T.dg,this.Je=T.ig,this.ke=T.Nf,this.Pd=T.Of,this.Ie=T.Zf,this.Qe=T.Mf,this.Nd.restore(),this.Ud=this.Nd.getTotalMatrix()}},this.rotate=function(T){if(isFinite(T)){var j=i.Matrix.rotated(-T);this.Sd.transform(j),this.Nd.rotate(T/Math.PI*180,0,0),this.Ud=this.Nd.getTotalMatrix()}},this.save=function(){if(this.be.te){var T=this.be.te();this.Ce.push(T)}else T=this.be;if(this.he.te){var j=this.he.te();this.Ce.push(j)}else j=this.he;this.mf.push({Gf:this.Ud.slice(),Yf:this.ve.slice(),mg:this.Ke,lg:j,fs:T,jg:this.xe,kg:this.ye,dg:this.we,ig:this.Je,Nf:this.ke,Zf:this.Ie,Of:this.Pd,$f:this.Qd.copy(),Mf:this.Qe}),this.Nd.save()},this.scale=function(T,j){if(h(arguments)){var W=i.Matrix.scaled(1/T,1/j);this.Sd.transform(W),this.Nd.scale(T,j),this.Ud=this.Nd.getTotalMatrix()}},this.setLineDash=function(T){for(var j=0;jT[j])return;T.length%2===1&&Array.prototype.push.apply(T,T),this.ve=T},this.setTransform=function(T,j,W,G,Z,ee){h(arguments)&&(this.resetTransform(),this.transform(T,j,W,G,Z,ee))},this.se=function(){var T=i.Matrix.invert(this.Ud);this.Nd.concat(T),this.Nd.concat(i.Matrix.translated(this.xe,this.ye)),this.Nd.concat(this.Ud)},this.ze=function(T){var j=i.multiplyByAlpha(this.Je,this.ke);if(!i.getColorComponents(j)[3]||!(this.we||this.ye||this.xe))return null;T=T.copy(),T.setColor(j);var W=i.MaskFilter.MakeBlur(i.BlurStyle.Normal,this.we/2,!1);return T.setMaskFilter(W),T.dispose=function(){W.delete(),this.delete()},T},this.bf=function(){var T=this.Qd.copy();if(T.setStyle(i.PaintStyle.Stroke),y(this.he)){var j=i.multiplyByAlpha(this.he,this.ke);T.setColor(j)}else j=this.he.ue(this.Ud),T.setColor(i.Color(0,0,0,this.ke)),T.setShader(j);if(T.setStrokeWidth(this.Ke),this.ve.length){var W=i.PathEffect.MakeDash(this.ve,this.Ie);T.setPathEffect(W)}return T.dispose=function(){W&&W.delete(),this.delete()},T},this.stroke=function(T){T=T?T.Wd:this.Sd;var j=this.bf(),W=this.ze(j);W&&(this.Nd.save(),this.se(),this.Nd.drawPath(T,W),this.Nd.restore(),W.dispose()),this.Nd.drawPath(T,j),j.dispose()},this.strokeRect=function(T,j,W,G){var Z=this.bf(),ee=this.ze(Z);ee&&(this.Nd.save(),this.se(),this.Nd.drawRect(i.XYWHRect(T,j,W,G),ee),this.Nd.restore(),ee.dispose()),this.Nd.drawRect(i.XYWHRect(T,j,W,G),Z),Z.dispose()},this.strokeText=function(T,j,W){var G=this.bf();T=i.TextBlob.MakeFromText(T,this.ne);var Z=this.ze(G);Z&&(this.Nd.save(),this.se(),this.Nd.drawTextBlob(T,j,W,Z),this.Nd.restore(),Z.dispose()),this.Nd.drawTextBlob(T,j,W,G),T.delete(),G.dispose()},this.translate=function(T,j){if(h(arguments)){var W=i.Matrix.translated(-T,-j);this.Sd.transform(W),this.Nd.translate(T,j),this.Ud=this.Nd.getTotalMatrix()}},this.transform=function(T,j,W,G,Z,ee){T=[T,W,Z,j,G,ee,0,0,1],j=i.Matrix.invert(T),this.Sd.transform(j),this.Nd.concat(T),this.Ud=this.Nd.getTotalMatrix()},this.addHitRegion=function(){},this.clearHitRegions=function(){},this.drawFocusIfNeeded=function(){},this.removeHitRegion=function(){},this.scrollPathIntoView=function(){},Object.defineProperty(this,"canvas",{value:null,writable:!1})}function F(te){this.cf=te,this.Md=new P(te.getCanvas()),this.Re=[],this.decodeImage=function(T){if(T=i.MakeImageFromEncoded(T),!T)throw"Invalid input";return this.Re.push(T),new $(T)},this.loadFont=function(T,j){if(T=i.Typeface.MakeFreeTypeFaceFromData(T),!T)return null;this.Re.push(T);var W=(j.style||"normal")+"|"+(j.variant||"normal")+"|"+(j.weight||"normal");j=j.family,ze[j]||(ze[j]={"*":T}),ze[j][W]=T},this.makePath2D=function(T){return T=new Be(T),this.Re.push(T.Wd),T},this.getContext=function(T){return T==="2d"?this.Md:null},this.toDataURL=function(T,j){this.cf.flush();var W=this.cf.makeImageSnapshot();if(W){T=T||"image/png";var G=i.ImageFormat.PNG;if(T==="image/jpeg"&&(G=i.ImageFormat.JPEG),j=W.encodeToBytes(G,j||.92)){if(W.delete(),T="data:"+T+";base64,",typeof Buffer<"u")j=Buffer.from(j).toString("base64");else{W=0,G=j.length;for(var Z="",ee;WG||1G);ee++);this.ae.splice(ee,0,G),this.de.splice(ee,0,Z)}},this.te=function(){var G=new _e(te,T,j,W);return G.de=this.de.slice(),G.ae=this.ae.slice(),G},this.me=function(){this.Yd&&(this.Yd.delete(),this.Yd=null)},this.ue=function(G){var Z=[te,T,j,W];i.Matrix.mapPoints(G,Z),G=Z[0];var ee=Z[1],le=Z[2];return Z=Z[3],this.me(),this.Yd=i.Shader.MakeLinearGradient([G,ee],[le,Z],this.de,this.ae,i.TileMode.Clamp)}}function me(te,T,j,W,G,Z){if(h([T,j,W,G,Z])){if(0>Z)throw"radii cannot be negative";te.isEmpty()&&te.moveTo(T,j),te.arcToTangent(T,j,W,G,Z)}}function Ie(te){if(!te.isEmpty()){var T=te.getBounds();(T[3]-T[1]||T[2]-T[0])&&te.close()}}function O(te,T,j,W,G,Z,ee){ee=(ee-Z)/Math.PI*180,Z=Z/Math.PI*180,T=i.LTRBRect(T-W,j-G,T+W,j+G),1e-5>Math.abs(Math.abs(ee)-360)?(j=ee/2,te.arcToOval(T,Z,j,!1),te.arcToOval(T,Z+j,j,!1)):te.arcToOval(T,Z,ee,!1)}function X(te,T,j,W,G,Z,ee,le,ke){if(h([T,j,W,G,Z,ee,le])){if(0>W||0>G)throw"radii cannot be negative";var We=2*Math.PI,qt=ee%We;0>qt&&(qt+=We);var Oo=qt-ee;ee=qt,le+=Oo,!ke&&le-ee>=We?le=ee+We:ke&&ee-le>=We?le=ee-We:!ke&&ee>le?le=ee+(We-(ee-le)%We):ke&&eeee||1ee);ke++);this.ae.splice(ke,0,ee),this.de.splice(ke,0,le)}},this.te=function(){var ee=new mt(te,T,j,W,G,Z);return ee.de=this.de.slice(),ee.ae=this.ae.slice(),ee},this.me=function(){this.Yd&&(this.Yd.delete(),this.Yd=null)},this.ue=function(ee){var le=[te,T,W,G];i.Matrix.mapPoints(ee,le);var ke=le[0],We=le[1],qt=le[2];le=le[3];var Oo=(Math.abs(ee[0])+Math.abs(ee[4]))/2;return ee=j*Oo,Oo*=Z,this.me(),this.Yd=i.Shader.MakeTwoPointConicalGradient([ke,We],ee,[qt,le],Oo,this.de,this.ae,i.TileMode.Clamp)}}i._testing={};var jt={aliceblue:Float32Array.of(.941,.973,1,1),antiquewhite:Float32Array.of(.98,.922,.843,1),aqua:Float32Array.of(0,1,1,1),aquamarine:Float32Array.of(.498,1,.831,1),azure:Float32Array.of(.941,1,1,1),beige:Float32Array.of(.961,.961,.863,1),bisque:Float32Array.of(1,.894,.769,1),black:Float32Array.of(0,0,0,1),blanchedalmond:Float32Array.of(1,.922,.804,1),blue:Float32Array.of(0,0,1,1),blueviolet:Float32Array.of(.541,.169,.886,1),brown:Float32Array.of(.647,.165,.165,1),burlywood:Float32Array.of(.871,.722,.529,1),cadetblue:Float32Array.of(.373,.62,.627,1),chartreuse:Float32Array.of(.498,1,0,1),chocolate:Float32Array.of(.824,.412,.118,1),coral:Float32Array.of(1,.498,.314,1),cornflowerblue:Float32Array.of(.392,.584,.929,1),cornsilk:Float32Array.of(1,.973,.863,1),crimson:Float32Array.of(.863,.078,.235,1),cyan:Float32Array.of(0,1,1,1),darkblue:Float32Array.of(0,0,.545,1),darkcyan:Float32Array.of(0,.545,.545,1),darkgoldenrod:Float32Array.of(.722,.525,.043,1),darkgray:Float32Array.of(.663,.663,.663,1),darkgreen:Float32Array.of(0,.392,0,1),darkgrey:Float32Array.of(.663,.663,.663,1),darkkhaki:Float32Array.of(.741,.718,.42,1),darkmagenta:Float32Array.of(.545,0,.545,1),darkolivegreen:Float32Array.of(.333,.42,.184,1),darkorange:Float32Array.of(1,.549,0,1),darkorchid:Float32Array.of(.6,.196,.8,1),darkred:Float32Array.of(.545,0,0,1),darksalmon:Float32Array.of(.914,.588,.478,1),darkseagreen:Float32Array.of(.561,.737,.561,1),darkslateblue:Float32Array.of(.282,.239,.545,1),darkslategray:Float32Array.of(.184,.31,.31,1),darkslategrey:Float32Array.of(.184,.31,.31,1),darkturquoise:Float32Array.of(0,.808,.82,1),darkviolet:Float32Array.of(.58,0,.827,1),deeppink:Float32Array.of(1,.078,.576,1),deepskyblue:Float32Array.of(0,.749,1,1),dimgray:Float32Array.of(.412,.412,.412,1),dimgrey:Float32Array.of(.412,.412,.412,1),dodgerblue:Float32Array.of(.118,.565,1,1),firebrick:Float32Array.of(.698,.133,.133,1),floralwhite:Float32Array.of(1,.98,.941,1),forestgreen:Float32Array.of(.133,.545,.133,1),fuchsia:Float32Array.of(1,0,1,1),gainsboro:Float32Array.of(.863,.863,.863,1),ghostwhite:Float32Array.of(.973,.973,1,1),gold:Float32Array.of(1,.843,0,1),goldenrod:Float32Array.of(.855,.647,.125,1),gray:Float32Array.of(.502,.502,.502,1),green:Float32Array.of(0,.502,0,1),greenyellow:Float32Array.of(.678,1,.184,1),grey:Float32Array.of(.502,.502,.502,1),honeydew:Float32Array.of(.941,1,.941,1),hotpink:Float32Array.of(1,.412,.706,1),indianred:Float32Array.of(.804,.361,.361,1),indigo:Float32Array.of(.294,0,.51,1),ivory:Float32Array.of(1,1,.941,1),khaki:Float32Array.of(.941,.902,.549,1),lavender:Float32Array.of(.902,.902,.98,1),lavenderblush:Float32Array.of(1,.941,.961,1),lawngreen:Float32Array.of(.486,.988,0,1),lemonchiffon:Float32Array.of(1,.98,.804,1),lightblue:Float32Array.of(.678,.847,.902,1),lightcoral:Float32Array.of(.941,.502,.502,1),lightcyan:Float32Array.of(.878,1,1,1),lightgoldenrodyellow:Float32Array.of(.98,.98,.824,1),lightgray:Float32Array.of(.827,.827,.827,1),lightgreen:Float32Array.of(.565,.933,.565,1),lightgrey:Float32Array.of(.827,.827,.827,1),lightpink:Float32Array.of(1,.714,.757,1),lightsalmon:Float32Array.of(1,.627,.478,1),lightseagreen:Float32Array.of(.125,.698,.667,1),lightskyblue:Float32Array.of(.529,.808,.98,1),lightslategray:Float32Array.of(.467,.533,.6,1),lightslategrey:Float32Array.of(.467,.533,.6,1),lightsteelblue:Float32Array.of(.69,.769,.871,1),lightyellow:Float32Array.of(1,1,.878,1),lime:Float32Array.of(0,1,0,1),limegreen:Float32Array.of(.196,.804,.196,1),linen:Float32Array.of(.98,.941,.902,1),magenta:Float32Array.of(1,0,1,1),maroon:Float32Array.of(.502,0,0,1),mediumaquamarine:Float32Array.of(.4,.804,.667,1),mediumblue:Float32Array.of(0,0,.804,1),mediumorchid:Float32Array.of(.729,.333,.827,1),mediumpurple:Float32Array.of(.576,.439,.859,1),mediumseagreen:Float32Array.of(.235,.702,.443,1),mediumslateblue:Float32Array.of(.482,.408,.933,1),mediumspringgreen:Float32Array.of(0,.98,.604,1),mediumturquoise:Float32Array.of(.282,.82,.8,1),mediumvioletred:Float32Array.of(.78,.082,.522,1),midnightblue:Float32Array.of(.098,.098,.439,1),mintcream:Float32Array.of(.961,1,.98,1),mistyrose:Float32Array.of(1,.894,.882,1),moccasin:Float32Array.of(1,.894,.71,1),navajowhite:Float32Array.of(1,.871,.678,1),navy:Float32Array.of(0,0,.502,1),oldlace:Float32Array.of(.992,.961,.902,1),olive:Float32Array.of(.502,.502,0,1),olivedrab:Float32Array.of(.42,.557,.137,1),orange:Float32Array.of(1,.647,0,1),orangered:Float32Array.of(1,.271,0,1),orchid:Float32Array.of(.855,.439,.839,1),palegoldenrod:Float32Array.of(.933,.91,.667,1),palegreen:Float32Array.of(.596,.984,.596,1),paleturquoise:Float32Array.of(.686,.933,.933,1),palevioletred:Float32Array.of(.859,.439,.576,1),papayawhip:Float32Array.of(1,.937,.835,1),peachpuff:Float32Array.of(1,.855,.725,1),peru:Float32Array.of(.804,.522,.247,1),pink:Float32Array.of(1,.753,.796,1),plum:Float32Array.of(.867,.627,.867,1),powderblue:Float32Array.of(.69,.878,.902,1),purple:Float32Array.of(.502,0,.502,1),rebeccapurple:Float32Array.of(.4,.2,.6,1),red:Float32Array.of(1,0,0,1),rosybrown:Float32Array.of(.737,.561,.561,1),royalblue:Float32Array.of(.255,.412,.882,1),saddlebrown:Float32Array.of(.545,.271,.075,1),salmon:Float32Array.of(.98,.502,.447,1),sandybrown:Float32Array.of(.957,.643,.376,1),seagreen:Float32Array.of(.18,.545,.341,1),seashell:Float32Array.of(1,.961,.933,1),sienna:Float32Array.of(.627,.322,.176,1),silver:Float32Array.of(.753,.753,.753,1),skyblue:Float32Array.of(.529,.808,.922,1),slateblue:Float32Array.of(.416,.353,.804,1),slategray:Float32Array.of(.439,.502,.565,1),slategrey:Float32Array.of(.439,.502,.565,1),snow:Float32Array.of(1,.98,.98,1),springgreen:Float32Array.of(0,1,.498,1),steelblue:Float32Array.of(.275,.51,.706,1),tan:Float32Array.of(.824,.706,.549,1),teal:Float32Array.of(0,.502,.502,1),thistle:Float32Array.of(.847,.749,.847,1),tomato:Float32Array.of(1,.388,.278,1),transparent:Float32Array.of(0,0,0,0),turquoise:Float32Array.of(.251,.878,.816,1),violet:Float32Array.of(.933,.51,.933,1),wheat:Float32Array.of(.961,.871,.702,1),white:Float32Array.of(1,1,1,1),whitesmoke:Float32Array.of(.961,.961,.961,1),yellow:Float32Array.of(1,1,0,1),yellowgreen:Float32Array.of(.604,.804,.196,1)};i._testing.parseColor=_,i._testing.colorToString=g;var Lt=RegExp("(italic|oblique|normal|)\\s*(small-caps|normal|)\\s*(bold|bolder|lighter|[1-9]00|normal|)\\s*([\\d\\.]+)(px|pt|pc|in|cm|mm|%|em|ex|ch|rem|q)(.+)"),ze={"Noto Mono":{"*":null},monospace:{"*":null}};i._testing.parseFontString=E,i.MakeCanvas=function(te,T){return(te=i.MakeSurface(te,T))?new F(te):null},i.ImageData=function(){if(arguments.length===2){var te=arguments[0],T=arguments[1];return new oe(new Uint8ClampedArray(4*te*T),te,T)}if(arguments.length===3){var j=arguments[0];if(j.prototype.constructor!==Uint8ClampedArray)throw"bytes must be given as a Uint8ClampedArray";if(te=arguments[1],T=arguments[2],j%4)throw"bytes must be given in a multiple of 4";if(j%te)throw"bytes must divide evenly by width";if(T&&T!==j/(4*te))throw"invalid height given";return new oe(j,te,j/(4*te))}throw"invalid number of arguments - takes 2 or 3, saw "+arguments.length}}()}(o);var l=Object.assign({},o),m="./this.program",S=(i,u)=>{throw u},A=typeof window=="object",M=typeof importScripts=="function",D=typeof process=="object"&&typeof process.versions=="object"&&typeof process.versions.node=="string",I="",V,Y,q,J,ce,ie;D?(I=M?Qi("path").dirname(I)+"/":__dirname+"/",ie=()=>{ce||(J=Qi("fs"),ce=Qi("path"))},V=function(i,u){return ie(),i=ce.normalize(i),J.readFileSync(i,u?void 0:"utf8")},q=i=>(i=V(i,!0),i.buffer||(i=new Uint8Array(i)),i),Y=(i,u,p)=>{ie(),i=ce.normalize(i),J.readFile(i,function(y,v){y?p(y):u(v.buffer)})},1{if(be)throw process.exitCode=i,u;u instanceof Tl||se("exiting due to exception: "+u),process.exit(i)},o.inspect=function(){return"[Emscripten Module object]"}):(A||M)&&(M?I=self.location.href:typeof document<"u"&&document.currentScript&&(I=document.currentScript.src),t&&(I=t),I.indexOf("blob:")!==0?I=I.substr(0,I.replace(/[?#].*/,"").lastIndexOf("/")+1):I="",V=i=>{var u=new XMLHttpRequest;return u.open("GET",i,!1),u.send(null),u.responseText},M&&(q=i=>{var u=new XMLHttpRequest;return u.open("GET",i,!1),u.responseType="arraybuffer",u.send(null),new Uint8Array(u.response)}),Y=(i,u,p)=>{var y=new XMLHttpRequest;y.open("GET",i,!0),y.responseType="arraybuffer",y.onload=()=>{y.status==200||y.status==0&&y.response?u(y.response):p()},y.onerror=p,y.send(null)});var de=o.print||console.log.bind(console),se=o.printErr||console.warn.bind(console);Object.assign(o,l),l=null,o.thisProgram&&(m=o.thisProgram),o.quit&&(S=o.quit);var he=0,pe;o.wasmBinary&&(pe=o.wasmBinary);var be=o.noExitRuntime||!0;typeof WebAssembly!="object"&&yo("no native wasm support detected");var Ce,Xe=!1,B=typeof TextDecoder<"u"?new TextDecoder("utf8"):void 0;function z(i,u,p){var y=u+p;for(p=u;i[p]&&!(p>=y);)++p;if(16v?y+=String.fromCharCode(v):(v-=65536,y+=String.fromCharCode(55296|v>>10,56320|v&1023))}}else y+=String.fromCharCode(v)}return y}function re(i,u){return i?z(Oe,i,u):""}function fe(i,u,p,y){if(!(0=C){var x=i.charCodeAt(++w);C=65536+((C&1023)<<10)|x&1023}if(127>=C){if(p>=y)break;u[p++]=C}else{if(2047>=C){if(p+1>=y)break;u[p++]=192|C>>6}else{if(65535>=C){if(p+2>=y)break;u[p++]=224|C>>12}else{if(p+3>=y)break;u[p++]=240|C>>18,u[p++]=128|C>>12&63}u[p++]=128|C>>6&63}u[p++]=128|C&63}}return u[p]=0,p-v}function Ee(i){for(var u=0,p=0;p=y&&(y=65536+((y&1023)<<10)|i.charCodeAt(++p)&1023),127>=y?++u:u=2047>=y?u+2:65535>=y?u+3:u+4}return u}var ve=typeof TextDecoder<"u"?new TextDecoder("utf-16le"):void 0;function pt(i,u){for(var p=i>>1,y=p+u/2;!(p>=y)&&Dr[p];)++p;if(p<<=1,32=u/2);++y){var v=ar[i+2*y>>1];if(v==0)break;p+=String.fromCharCode(v)}return p}function ct(i,u,p){if(p===void 0&&(p=2147483647),2>p)return 0;p-=2;var y=u;p=p<2*i.length?p/2:i.length;for(var v=0;v>1]=i.charCodeAt(v),u+=2;return ar[u>>1]=0,u-y}function un(i){return 2*i.length}function Ye(i,u){for(var p=0,y="";!(p>=u/4);){var v=ne[i+4*p>>2];if(v==0)break;++p,65536<=v?(v-=65536,y+=String.fromCharCode(55296|v>>10,56320|v&1023)):y+=String.fromCharCode(v)}return y}function Jt(i,u,p){if(p===void 0&&(p=2147483647),4>p)return 0;var y=u;p=y+p-4;for(var v=0;v=w){var C=i.charCodeAt(++v);w=65536+((w&1023)<<10)|C&1023}if(ne[u>>2]=w,u+=4,u+4>p)break}return ne[u>>2]=0,u-y}function Vc(i){for(var u=0,p=0;p=y&&++p,u+=4}return u}var ji,Ht,Oe,ar,Dr,ne,Ue,ye,Wa;function Ha(){var i=Ce.buffer;ji=i,o.HEAP8=Ht=new Int8Array(i),o.HEAP16=ar=new Int16Array(i),o.HEAP32=ne=new Int32Array(i),o.HEAPU8=Oe=new Uint8Array(i),o.HEAPU16=Dr=new Uint16Array(i),o.HEAPU32=Ue=new Uint32Array(i),o.HEAPF32=ye=new Float32Array(i),o.HEAPF64=Wa=new Float64Array(i)}var za,Va=[],Ga=[],$a=[];function Gc(){var i=o.preRun.shift();Va.unshift(i)}var _r=0,Mi=null,mo=null;function yo(i){throw o.onAbort&&o.onAbort(i),i="Aborted("+i+")",se(i),Xe=!0,i=new WebAssembly.RuntimeError(i+". Build with -sASSERTIONS for more info."),s(i),i}function qa(){return Tt.startsWith("data:application/octet-stream;base64,")}var Tt;if(Tt="canvaskit.wasm",!qa()){var Xa=Tt;Tt=o.locateFile?o.locateFile(Xa,I):I+Xa}function Ka(){var i=Tt;try{if(i==Tt&&pe)return new Uint8Array(pe);if(q)return q(i);throw"both async and sync fetching of the wasm failed"}catch(u){yo(u)}}function $c(){if(!pe&&(A||M)){if(typeof fetch=="function"&&!Tt.startsWith("file://"))return fetch(Tt,{credentials:"same-origin"}).then(function(i){if(!i.ok)throw"failed to load wasm binary file at '"+Tt+"'";return i.arrayBuffer()}).catch(function(){return Ka()});if(Y)return new Promise(function(i,u){Y(Tt,function(p){i(new Uint8Array(p))},u)})}return Promise.resolve().then(function(){return Ka()})}function Ri(i){for(;0>2])}var Nr={},br={},pn={};function Za(i){if(i===void 0)return"_unknown";i=i.replace(/[^a-zA-Z0-9_]/g,"$");var u=i.charCodeAt(0);return 48<=u&&57>=u?"_"+i:i}function Oi(i,u){return i=Za(i),function(){return u.apply(this,arguments)}}function Pi(i){var u=Error,p=Oi(i,function(y){this.name=i,this.message=y,y=Error(y).stack,y!==void 0&&(this.stack=this.toString()+` +`+y.replace(/^Error(:[^\n]*)?\n/,""))});return p.prototype=Object.create(u.prototype),p.prototype.constructor=p,p.prototype.toString=function(){return this.message===void 0?this.name:this.name+": "+this.message},p}var Ya=void 0;function cn(i){throw new Ya(i)}function Ct(i,u,p){function y(x){x=p(x),x.length!==i.length&&cn("Mismatched type converter count");for(var R=0;R{br.hasOwnProperty(x)?v[R]=br[x]:(w.push(x),Nr.hasOwnProperty(x)||(Nr[x]=[]),Nr[x].push(()=>{v[R]=br[x],++C,C===w.length&&y(v)}))}),w.length===0&&y(v)}function fn(i){switch(i){case 1:return 0;case 2:return 1;case 4:return 2;case 8:return 3;default:throw new TypeError("Unknown type size: "+i)}}var Ja=void 0;function Ke(i){for(var u="";Oe[i];)u+=Ja[Oe[i++]];return u}var Br=void 0;function Pe(i){throw new Br(i)}function zt(i,u,p={}){if(!("argPackAdvance"in u))throw new TypeError("registerType registeredInstance requires argPackAdvance");var y=u.name;if(i||Pe('type "'+y+'" must have a positive integer typeid pointer'),br.hasOwnProperty(i)){if(p.Vf)return;Pe("Cannot register type '"+y+"' twice")}br[i]=u,delete pn[i],Nr.hasOwnProperty(i)&&(u=Nr[i],delete Nr[i],u.forEach(v=>v()))}function Ci(i){Pe(i.Ld.Xd.Rd.name+" instance already deleted")}var Di=!1;function Qa(){}function el(i){--i.count.value,i.count.value===0&&(i.$d?i.fe.le(i.$d):i.Xd.Rd.le(i.Td))}function tl(i,u,p){return u===p?i:p.ie===void 0?null:(i=tl(i,u,p.ie),i===null?null:p.Jf(i))}var rl={},bo=[];function Ni(){for(;bo.length;){var i=bo.pop();i.Ld.Fe=!1,i.delete()}}var vo=void 0,So={};function qc(i,u){for(u===void 0&&Pe("ptr should not be undefined");i.ie;)u=i.Oe(u),i=i.ie;return So[u]}function dn(i,u){return u.Xd&&u.Td||cn("makeClassHandle requires ptr and ptrType"),!!u.fe!=!!u.$d&&cn("Both smartPtrType and smartPtr must be specified"),u.count={value:1},To(Object.create(i,{Ld:{value:u}}))}function To(i){return typeof FinalizationRegistry>"u"?(To=u=>u,i):(Di=new FinalizationRegistry(u=>{el(u.Ld)}),To=u=>{var p=u.Ld;return p.$d&&Di.register(u,{Ld:p},u),u},Qa=u=>{Di.unregister(u)},To(i))}function lr(){}function Bi(i,u,p){if(i[u].Zd===void 0){var y=i[u];i[u]=function(){return i[u].Zd.hasOwnProperty(arguments.length)||Pe("Function '"+p+"' called with an invalid number of arguments ("+arguments.length+") - expects one of ("+i[u].Zd+")!"),i[u].Zd[arguments.length].apply(this,arguments)},i[u].Zd=[],i[u].Zd[y.De]=y}}function Li(i,u,p){o.hasOwnProperty(i)?((p===void 0||o[i].Zd!==void 0&&o[i].Zd[p]!==void 0)&&Pe("Cannot register public name '"+i+"' twice"),Bi(o,i,i),o.hasOwnProperty(p)&&Pe("Cannot register multiple overloads of a function with the same number of arguments ("+p+")!"),o[i].Zd[p]=u):(o[i]=u,p!==void 0&&(o[i].tg=p))}function Xc(i,u,p,y,v,w,C,x){this.name=i,this.constructor=u,this.Ge=p,this.le=y,this.ie=v,this.Pf=w,this.Oe=C,this.Jf=x,this.bg=[]}function Ui(i,u,p){for(;u!==p;)u.Oe||Pe("Expected null or instance of "+p.name+", got an instance of "+u.name),i=u.Oe(i),u=u.ie;return i}function Kc(i,u){return u===null?(this.ff&&Pe("null is not a valid "+this.name),0):(u.Ld||Pe('Cannot pass "'+Wi(u)+'" as a '+this.name),u.Ld.Td||Pe("Cannot pass deleted object as a pointer of type "+this.name),Ui(u.Ld.Td,u.Ld.Xd.Rd,this.Rd))}function Zc(i,u){if(u===null){if(this.ff&&Pe("null is not a valid "+this.name),this.Ue){var p=this.gf();return i!==null&&i.push(this.le,p),p}return 0}if(u.Ld||Pe('Cannot pass "'+Wi(u)+'" as a '+this.name),u.Ld.Td||Pe("Cannot pass deleted object as a pointer of type "+this.name),!this.Te&&u.Ld.Xd.Te&&Pe("Cannot convert argument of type "+(u.Ld.fe?u.Ld.fe.name:u.Ld.Xd.name)+" to parameter type "+this.name),p=Ui(u.Ld.Td,u.Ld.Xd.Rd,this.Rd),this.Ue)switch(u.Ld.$d===void 0&&Pe("Passing raw pointer to smart pointer is illegal"),this.hg){case 0:u.Ld.fe===this?p=u.Ld.$d:Pe("Cannot convert argument of type "+(u.Ld.fe?u.Ld.fe.name:u.Ld.Xd.name)+" to parameter type "+this.name);break;case 1:p=u.Ld.$d;break;case 2:if(u.Ld.fe===this)p=u.Ld.$d;else{var y=u.clone();p=this.cg(p,At(function(){y.delete()})),i!==null&&i.push(this.le,p)}break;default:Pe("Unsupporting sharing policy")}return p}function Yc(i,u){return u===null?(this.ff&&Pe("null is not a valid "+this.name),0):(u.Ld||Pe('Cannot pass "'+Wi(u)+'" as a '+this.name),u.Ld.Td||Pe("Cannot pass deleted object as a pointer of type "+this.name),u.Ld.Xd.Te&&Pe("Cannot convert argument of type "+u.Ld.Xd.name+" to parameter type "+this.name),Ui(u.Ld.Td,u.Ld.Xd.Rd,this.Rd))}function Vt(i,u,p,y,v,w,C,x,R,N,K){this.name=i,this.Rd=u,this.ff=p,this.Te=y,this.Ue=v,this.ag=w,this.hg=C,this.vf=x,this.gf=R,this.cg=N,this.le=K,v||u.ie!==void 0?this.toWireType=Zc:(this.toWireType=y?Kc:Yc,this.ee=null)}function ol(i,u,p){o.hasOwnProperty(i)||cn("Replacing nonexistant public symbol"),o[i].Zd!==void 0&&p!==void 0?o[i].Zd[p]=u:(o[i]=u,o[i].De=p)}function Jc(i,u){var p=[];return function(){if(p.length=0,Object.assign(p,arguments),i.includes("j")){var y=o["dynCall_"+i];y=p&&p.length?y.apply(null,[u].concat(p)):y.call(null,u)}else y=et(u).apply(null,p);return y}}function nt(i,u){i=Ke(i);var p=i.includes("j")?Jc(i,u):et(u);return typeof p!="function"&&Pe("unknown function pointer with signature "+i+": "+u),p}var nl=void 0;function il(i){i=Sl(i);var u=Ke(i);return Qt(i),u}function Eo(i,u){function p(w){v[w]||br[w]||(pn[w]?pn[w].forEach(p):(y.push(w),v[w]=!0))}var y=[],v={};throw u.forEach(p),new nl(i+": "+y.map(il).join([", "]))}function hn(i,u,p,y,v){var w=u.length;2>w&&Pe("argTypes array size mismatch! Must at least get return value and 'this' types!");var C=u[1]!==null&&p!==null,x=!1;for(p=1;p>2]);return p}var Fi=[],Dt=[{},{value:void 0},{value:null},{value:!0},{value:!1}];function ki(i){4(i||Pe("Cannot use deleted val. handle = "+i),Dt[i].value),At=i=>{switch(i){case void 0:return 1;case null:return 2;case!0:return 3;case!1:return 4;default:var u=Fi.length?Fi.pop():Dt.length;return Dt[u]={hf:1,value:i},u}};function Qc(i,u,p){switch(u){case 0:return function(y){return this.fromWireType((p?Ht:Oe)[y])};case 1:return function(y){return this.fromWireType((p?ar:Dr)[y>>1])};case 2:return function(y){return this.fromWireType((p?ne:Ue)[y>>2])};default:throw new TypeError("Unknown integer type: "+i)}}function Ao(i,u){var p=br[i];return p===void 0&&Pe(u+" has unknown type "+il(i)),p}function Wi(i){if(i===null)return"null";var u=typeof i;return u==="object"||u==="array"||u==="function"?i.toString():""+i}function ef(i,u){switch(u){case 2:return function(p){return this.fromWireType(ye[p>>2])};case 3:return function(p){return this.fromWireType(Wa[p>>3])};default:throw new TypeError("Unknown float type: "+i)}}function tf(i,u,p){switch(u){case 0:return p?function(y){return Ht[y]}:function(y){return Oe[y]};case 1:return p?function(y){return ar[y>>1]}:function(y){return Dr[y>>1]};case 2:return p?function(y){return ne[y>>2]}:function(y){return Ue[y>>2]};default:throw new TypeError("Unknown integer type: "+i)}}var rf={};function yn(i){var u=rf[i];return u===void 0?Ke(i):u}var _n=[];function sl(){function i(u){u.$$$embind_global$$$=u;var p=typeof $$$embind_global$$$=="object"&&u.$$$embind_global$$$==u;return p||delete u.$$$embind_global$$$,p}if(typeof globalThis=="object")return globalThis;if(typeof $$$embind_global$$$=="object"||(typeof global=="object"&&i(global)?$$$embind_global$$$=global:typeof self=="object"&&i(self)&&($$$embind_global$$$=self),typeof $$$embind_global$$$=="object"))return $$$embind_global$$$;throw Error("unable to get global object.")}function of(i){var u=_n.length;return _n.push(i),u}function nf(i,u){for(var p=Array(i),y=0;y>2],"parameter "+y);return p}var al=[];function sf(i){var u=Array(i+1);return function(p,y,v){u[0]=p;for(var w=0;w>2],"parameter "+w);u[w+1]=C.readValueFromPointer(v),v+=C.argPackAdvance}return p=new(p.bind.apply(p,u)),At(p)}}var ll={},ul;ul=D?()=>{var i=process.hrtime();return 1e3*i[0]+i[1]/1e6}:()=>performance.now();function af(i){var u=i.getExtension("ANGLE_instanced_arrays");u&&(i.vertexAttribDivisor=function(p,y){u.vertexAttribDivisorANGLE(p,y)},i.drawArraysInstanced=function(p,y,v,w){u.drawArraysInstancedANGLE(p,y,v,w)},i.drawElementsInstanced=function(p,y,v,w,C){u.drawElementsInstancedANGLE(p,y,v,w,C)})}function lf(i){var u=i.getExtension("OES_vertex_array_object");u&&(i.createVertexArray=function(){return u.createVertexArrayOES()},i.deleteVertexArray=function(p){u.deleteVertexArrayOES(p)},i.bindVertexArray=function(p){u.bindVertexArrayOES(p)},i.isVertexArray=function(p){return u.isVertexArrayOES(p)})}function uf(i){var u=i.getExtension("WEBGL_draw_buffers");u&&(i.drawBuffers=function(p,y){u.drawBuffersWEBGL(p,y)})}var gl=1,bn=[],Nt=[],vn=[],wo=[],wt=[],Bt=[],ur=[],Gt=[],vr=[],Sr=[],pl={},cl={},fl=4;function Fe(i){Sn||(Sn=i)}function Lr(i){for(var u=gl++,p=i.length;p"u"||u.Kf)&&cf(y),p}function dl(i){return Ae=Gt[i],o.rg=L=Ae&&Ae.ge,!(i&&!L)}function cf(i){if(i||(i=Ae),!i.Wf){i.Wf=!0;var u=i.ge;af(u),lf(u),uf(u),u.qf=u.getExtension("WEBGL_draw_instanced_base_vertex_base_instance"),u.uf=u.getExtension("WEBGL_multi_draw_instanced_base_vertex_base_instance"),2<=i.version&&(u.rf=u.getExtension("EXT_disjoint_timer_query_webgl2")),(2>i.version||!u.rf)&&(u.rf=u.getExtension("EXT_disjoint_timer_query")),u.sg=u.getExtension("WEBGL_multi_draw"),(u.getSupportedExtensions()||[]).forEach(function(p){p.includes("lose_context")||p.includes("debug")||u.getExtension(p)})}}var Ae,Sn,Tn=[];function Tr(i,u,p,y){for(var v=0;v>2]=C}}function hl(i,u,p){if(u){var y=void 0;switch(i){case 36346:y=1;break;case 36344:p!=0&&p!=1&&Fe(1280);return;case 34814:case 36345:y=0;break;case 34466:var v=L.getParameter(34467);y=v?v.length:0;break;case 33309:if(2>Ae.version){Fe(1282);return}y=2*(L.getSupportedExtensions()||[]).length;break;case 33307:case 33308:if(2>Ae.version){Fe(1280);return}y=i==33307?3:0}if(y===void 0)switch(v=L.getParameter(i),typeof v){case"number":y=v;break;case"boolean":y=v?1:0;break;case"string":Fe(1280);return;case"object":if(v===null)switch(i){case 34964:case 35725:case 34965:case 36006:case 36007:case 32873:case 34229:case 36662:case 36663:case 35053:case 35055:case 36010:case 35097:case 35869:case 32874:case 36389:case 35983:case 35368:case 34068:y=0;break;default:Fe(1280);return}else{if(v instanceof Float32Array||v instanceof Uint32Array||v instanceof Int32Array||v instanceof Array){for(i=0;i>2]=v[i];break;case 2:ye[u+4*i>>2]=v[i];break;case 4:Ht[u+i>>0]=v[i]?1:0}return}try{y=v.name|0}catch(w){Fe(1280),se("GL_INVALID_ENUM in glGet"+p+"v: Unknown object returned from WebGL getParameter("+i+")! (error: "+w+")");return}}break;default:Fe(1280),se("GL_INVALID_ENUM in glGet"+p+"v: Native code calling glGet"+p+"v("+i+") and it returns "+v+" of type "+typeof v+"!");return}switch(p){case 1:p=y,Ue[u>>2]=p,Ue[u+4>>2]=(p-Ue[u>>2])/4294967296;break;case 0:ne[u>>2]=y;break;case 2:ye[u>>2]=y;break;case 4:Ht[u>>0]=y?1:0}}else Fe(1281)}function xo(i){var u=Ee(i)+1,p=xn(u);return fe(i,Oe,p,u),p}function ml(i){return i.slice(-1)=="]"&&i.lastIndexOf("[")}function En(i){return i-=5120,i==0?Ht:i==1?Oe:i==2?ar:i==4?ne:i==6?ye:i==5||i==28922||i==28520||i==30779||i==30782?Ue:Dr}function Hi(i,u,p,y,v){i=En(i);var w=31-Math.clz32(i.BYTES_PER_ELEMENT),C=fl;return i.subarray(v>>w,v+y*(p*({5:3,6:4,8:2,29502:3,29504:4,26917:2,26918:2,29846:3,29847:4}[u-6402]||1)*(1<>w)}function Ne(i){var u=L.Hf;if(u){var p=u.Ne[i];return typeof p=="number"&&(u.Ne[i]=p=L.getUniformLocation(u,u.wf[i]+(0ft?-1:0xe-k.getDate())ge-=xe-k.getDate()+1,k.setDate(1),11>we?k.setMonth(we+1):(k.setMonth(0),k.setFullYear(k.getFullYear()+1));else{k.setDate(k.getDate()+ge);break}}return we=new Date(k.getFullYear()+1,0,4),ge=x(new Date(k.getFullYear(),0,4)),we=x(we),0>=C(ge,k)?0>=C(we,k)?k.getFullYear()+1:k.getFullYear():k.getFullYear()-1}var N=ne[y+40>>2];y={pg:ne[y>>2],og:ne[y+4>>2],Ye:ne[y+8>>2],jf:ne[y+12>>2],Ze:ne[y+16>>2],qe:ne[y+20>>2],je:ne[y+24>>2],pe:ne[y+28>>2],vg:ne[y+32>>2],ng:ne[y+36>>2],qg:N?re(N):""},p=re(p),N={"%c":"%a %b %d %H:%M:%S %Y","%D":"%m/%d/%y","%F":"%Y-%m-%d","%h":"%b","%r":"%I:%M:%S %p","%R":"%H:%M","%T":"%H:%M:%S","%x":"%m/%d/%y","%X":"%H:%M:%S","%Ec":"%c","%EC":"%C","%Ex":"%m/%d/%y","%EX":"%H:%M:%S","%Ey":"%y","%EY":"%Y","%Od":"%d","%Oe":"%e","%OH":"%H","%OI":"%I","%Om":"%m","%OM":"%M","%OS":"%S","%Ou":"%u","%OU":"%U","%OV":"%V","%Ow":"%w","%OW":"%W","%Oy":"%y"};for(var K in N)p=p.replace(new RegExp(K,"g"),N[K]);var Q="Sunday Monday Tuesday Wednesday Thursday Friday Saturday".split(" "),ae="January February March April May June July August September October November December".split(" ");N={"%a":function(k){return Q[k.je].substring(0,3)},"%A":function(k){return Q[k.je]},"%b":function(k){return ae[k.Ze].substring(0,3)},"%B":function(k){return ae[k.Ze]},"%C":function(k){return w((k.qe+1900)/100|0,2)},"%d":function(k){return w(k.jf,2)},"%e":function(k){return v(k.jf,2," ")},"%g":function(k){return R(k).toString().substring(2)},"%G":function(k){return R(k)},"%H":function(k){return w(k.Ye,2)},"%I":function(k){return k=k.Ye,k==0?k=12:12k.Ye?"AM":"PM"},"%S":function(k){return w(k.pg,2)},"%t":function(){return" "},"%u":function(k){return k.je||7},"%U":function(k){return w(Math.floor((k.pe+7-k.je)/7),2)},"%V":function(k){var ge=Math.floor((k.pe+7-(k.je+6)%7)/7);if(2>=(k.je+371-k.pe-2)%7&&ge++,ge)ge==53&&(we=(k.je+371-k.pe)%7,we==4||we==3&&An(k.qe)||(ge=1));else{ge=52;var we=(k.je+7-k.pe-1)%7;(we==4||we==5&&An(k.qe%400-1))&&ge++}return w(ge,2)},"%w":function(k){return k.je},"%W":function(k){return w(Math.floor((k.pe+7-(k.je+6)%7)/7),2)},"%y":function(k){return(k.qe+1900).toString().substring(2)},"%Y":function(k){return k.qe+1900},"%z":function(k){k=k.ng;var ge=0<=k;return k=Math.abs(k)/60,(ge?"+":"-")+("0000"+(k/60*100+k%60)).slice(-4)},"%Z":function(k){return k.qg},"%%":function(){return"%"}},p=p.replace(/%%/g,"\0\0");for(K in N)p.includes(K)&&(p=p.replace(new RegExp(K,"g"),N[K](y)));return p=p.replace(/\0\0/g,"%"),K=yf(p),K.length>u?0:(Ht.set(K,i),K.length-1)}Ya=o.InternalError=Pi("InternalError");for(var vl=Array(256),wn=0;256>wn;++wn)vl[wn]=String.fromCharCode(wn);Ja=vl,Br=o.BindingError=Pi("BindingError"),lr.prototype.isAliasOf=function(i){if(!(this instanceof lr&&i instanceof lr))return!1;var u=this.Ld.Xd.Rd,p=this.Ld.Td,y=i.Ld.Xd.Rd;for(i=i.Ld.Td;u.ie;)p=u.Oe(p),u=u.ie;for(;y.ie;)i=y.Oe(i),y=y.ie;return u===y&&p===i},lr.prototype.clone=function(){if(this.Ld.Td||Ci(this),this.Ld.Me)return this.Ld.count.value+=1,this;var i=To,u=Object,p=u.create,y=Object.getPrototypeOf(this),v=this.Ld;return i=i(p.call(u,y,{Ld:{value:{count:v.count,Fe:v.Fe,Me:v.Me,Td:v.Td,Xd:v.Xd,$d:v.$d,fe:v.fe}}})),i.Ld.count.value+=1,i.Ld.Fe=!1,i},lr.prototype.delete=function(){this.Ld.Td||Ci(this),this.Ld.Fe&&!this.Ld.Me&&Pe("Object already scheduled for deletion"),Qa(this),el(this.Ld),this.Ld.Me||(this.Ld.$d=void 0,this.Ld.Td=void 0)},lr.prototype.isDeleted=function(){return!this.Ld.Td},lr.prototype.deleteLater=function(){return this.Ld.Td||Ci(this),this.Ld.Fe&&!this.Ld.Me&&Pe("Object already scheduled for deletion"),bo.push(this),bo.length===1&&vo&&vo(Ni),this.Ld.Fe=!0,this},o.getInheritedInstanceCount=function(){return Object.keys(So).length},o.getLiveInheritedInstances=function(){var i=[],u;for(u in So)So.hasOwnProperty(u)&&i.push(So[u]);return i},o.flushPendingDeletes=Ni,o.setDelayFunction=function(i){vo=i,bo.length&&vo&&vo(Ni)},Vt.prototype.Qf=function(i){return this.vf&&(i=this.vf(i)),i},Vt.prototype.pf=function(i){this.le&&this.le(i)},Vt.prototype.argPackAdvance=8,Vt.prototype.readValueFromPointer=_o,Vt.prototype.deleteObject=function(i){i!==null&&i.delete()},Vt.prototype.fromWireType=function(i){function u(){return this.Ue?dn(this.Rd.Ge,{Xd:this.ag,Td:p,fe:this,$d:i}):dn(this.Rd.Ge,{Xd:this,Td:i})}var p=this.Qf(i);if(!p)return this.pf(i),null;var y=qc(this.Rd,p);if(y!==void 0)return y.Ld.count.value===0?(y.Ld.Td=p,y.Ld.$d=i,y.clone()):(y=y.clone(),this.pf(i),y);if(y=this.Rd.Pf(p),y=rl[y],!y)return u.call(this);y=this.Te?y.Ff:y.pointerType;var v=tl(p,this.Rd,y.Rd);return v===null?u.call(this):this.Ue?dn(y.Rd.Ge,{Xd:y,Td:v,fe:this,$d:i}):dn(y.Rd.Ge,{Xd:y,Td:v})},nl=o.UnboundTypeError=Pi("UnboundTypeError"),o.count_emval_handles=function(){for(var i=0,u=5;uht;++ht)Tn.push(Array(ht));var hf=new Float32Array(288);for(ht=0;288>ht;++ht)gr[ht]=hf.subarray(0,ht+1);var mf=new Int32Array(288);for(ht=0;288>ht;++ht)jo[ht]=mf.subarray(0,ht+1);function yf(i){var u=Array(Ee(i)+1);return fe(i,u,0,u.length),u}var _f={U:function(){return 0},Bb:function(){},Db:function(){return 0},yb:function(){},zb:function(){},V:function(){},Ab:function(){},C:function(i){var u=gn[i];delete gn[i];var p=u.gf,y=u.le,v=u.sf,w=v.map(C=>C.Tf).concat(v.map(C=>C.fg));Ct([i],w,C=>{var x={};return v.forEach((R,N)=>{var K=C[N],Q=R.Rf,ae=R.Sf,k=C[N+v.length],ge=R.eg,we=R.gg;x[R.Lf]={read:xe=>K.fromWireType(Q(ae,xe)),write:(xe,ft)=>{var xt=[];ge(we,xe,k.toWireType(xt,ft)),Ii(xt)}}}),[{name:u.name,fromWireType:function(R){var N={},K;for(K in x)N[K]=x[K].read(R);return y(R),N},toWireType:function(R,N){for(var K in x)if(!(K in N))throw new TypeError('Missing field: "'+K+'"');var Q=p();for(K in x)x[K].write(Q,N[K]);return R!==null&&R.push(y,Q),Q},argPackAdvance:8,readValueFromPointer:_o,ee:y}]})},qb:function(){},Hb:function(i,u,p,y,v){var w=fn(p);u=Ke(u),zt(i,{name:u,fromWireType:function(C){return!!C},toWireType:function(C,x){return x?y:v},argPackAdvance:8,readValueFromPointer:function(C){if(p===1)var x=Ht;else if(p===2)x=ar;else if(p===4)x=ne;else throw new TypeError("Unknown boolean type size: "+u);return this.fromWireType(x[C>>w])},ee:null})},q:function(i,u,p,y,v,w,C,x,R,N,K,Q,ae){K=Ke(K),w=nt(v,w),x&&(x=nt(C,x)),N&&(N=nt(R,N)),ae=nt(Q,ae);var k=Za(K);Li(k,function(){Eo("Cannot construct "+K+" due to unbound types",[y])}),Ct([i,u,p],y?[y]:[],function(ge){if(ge=ge[0],y)var we=ge.Rd,xe=we.Ge;else xe=lr.prototype;ge=Oi(k,function(){if(Object.getPrototypeOf(this)!==ft)throw new Br("Use 'new' to construct "+K);if(xt.oe===void 0)throw new Br(K+" has no accessible constructor");var Ro=xt.oe[arguments.length];if(Ro===void 0)throw new Br("Tried to invoke ctor of "+K+" with invalid number of parameters ("+arguments.length+") - expected ("+Object.keys(xt.oe).toString()+") parameters instead!");return Ro.apply(this,arguments)});var ft=Object.create(xe,{constructor:{value:ge}});ge.prototype=ft;var xt=new Xc(K,ge,ft,ae,we,w,x,N);we=new Vt(K,xt,!0,!1,!1),xe=new Vt(K+"*",xt,!1,!1,!1);var Mo=new Vt(K+" const*",xt,!1,!0,!1);return rl[i]={pointerType:xe,Ff:Mo},ol(k,ge),[we,xe,Mo]})},h:function(i,u,p,y,v,w,C){var x=mn(p,y);u=Ke(u),w=nt(v,w),Ct([],[i],function(R){function N(){Eo("Cannot call "+K+" due to unbound types",x)}R=R[0];var K=R.name+"."+u;u.startsWith("@@")&&(u=Symbol[u.substring(2)]);var Q=R.Rd.constructor;return Q[u]===void 0?(N.De=p-1,Q[u]=N):(Bi(Q,u,K),Q[u].Zd[p-1]=N),Ct([],x,function(ae){return ae=[ae[0],null].concat(ae.slice(1)),ae=hn(K,ae,null,w,C),Q[u].Zd===void 0?(ae.De=p-1,Q[u]=ae):Q[u].Zd[p-1]=ae,[]}),[]})},B:function(i,u,p,y,v,w){0{Eo("Cannot construct "+x.name+" due to unbound types",C)},Ct([],C,function(N){return N.splice(1,0,null),x.Rd.oe[u-1]=hn(R,N,null,v,w),[]}),[]})},b:function(i,u,p,y,v,w,C,x){var R=mn(p,y);u=Ke(u),w=nt(v,w),Ct([],[i],function(N){function K(){Eo("Cannot call "+Q+" due to unbound types",R)}N=N[0];var Q=N.name+"."+u;u.startsWith("@@")&&(u=Symbol[u.substring(2)]),x&&N.Rd.bg.push(u);var ae=N.Rd.Ge,k=ae[u];return k===void 0||k.Zd===void 0&&k.className!==N.name&&k.De===p-2?(K.De=p-2,K.className=N.name,ae[u]=K):(Bi(ae,u,Q),ae[u].Zd[p-2]=K),Ct([],R,function(ge){return ge=hn(Q,ge,N,w,C),ae[u].Zd===void 0?(ge.De=p-2,ae[u]=ge):ae[u].Zd[p-2]=ge,[]}),[]})},u:function(i,u,p){i=Ke(i),Ct([],[u],function(y){return y=y[0],o[i]=y.fromWireType(p),[]})},Gb:function(i,u){u=Ke(u),zt(i,{name:u,fromWireType:function(p){var y=Et(p);return ki(p),y},toWireType:function(p,y){return At(y)},argPackAdvance:8,readValueFromPointer:_o,ee:null})},n:function(i,u,p,y){function v(){}p=fn(p),u=Ke(u),v.values={},zt(i,{name:u,constructor:v,fromWireType:function(w){return this.constructor.values[w]},toWireType:function(w,C){return C.value},argPackAdvance:8,readValueFromPointer:Qc(u,p,y),ee:null}),Li(u,v)},e:function(i,u,p){var y=Ao(i,"enum");u=Ke(u),i=y.constructor,y=Object.create(y.constructor.prototype,{value:{value:p},constructor:{value:Oi(y.name+"_"+u,function(){})}}),i.values[p]=y,i[u]=y},Y:function(i,u,p){p=fn(p),u=Ke(u),zt(i,{name:u,fromWireType:function(y){return y},toWireType:function(y,v){return v},argPackAdvance:8,readValueFromPointer:ef(u,p),ee:null})},y:function(i,u,p,y,v,w){var C=mn(u,p);i=Ke(i),v=nt(y,v),Li(i,function(){Eo("Cannot call "+i+" due to unbound types",C)},u-1),Ct([],C,function(x){return x=[x[0],null].concat(x.slice(1)),ol(i,hn(i,x,null,v,w),u-1),[]})},E:function(i,u,p,y,v){u=Ke(u),v===-1&&(v=4294967295),v=fn(p);var w=x=>x;if(y===0){var C=32-8*p;w=x=>x<>>C}p=u.includes("unsigned")?function(x,R){return R>>>0}:function(x,R){return R},zt(i,{name:u,fromWireType:w,toWireType:p,argPackAdvance:8,readValueFromPointer:tf(u,v,y!==0),ee:null})},v:function(i,u,p){function y(w){w>>=2;var C=Ue;return new v(ji,C[w+1],C[w])}var v=[Int8Array,Uint8Array,Int16Array,Uint16Array,Int32Array,Uint32Array,Float32Array,Float64Array][u];p=Ke(p),zt(i,{name:p,fromWireType:y,argPackAdvance:8,readValueFromPointer:y},{Vf:!0})},t:function(i,u,p,y,v,w,C,x,R,N,K,Q){p=Ke(p),w=nt(v,w),x=nt(C,x),N=nt(R,N),Q=nt(K,Q),Ct([i],[u],function(ae){return ae=ae[0],[new Vt(p,ae.Rd,!1,!1,!0,ae,y,w,x,N,Q)]})},X:function(i,u){u=Ke(u);var p=u==="std::string";zt(i,{name:u,fromWireType:function(y){var v=Ue[y>>2],w=y+4;if(p)for(var C=w,x=0;x<=v;++x){var R=w+x;if(x==v||Oe[R]==0){if(C=re(C,R-C),N===void 0)var N=C;else N+=String.fromCharCode(0),N+=C;C=R+1}}else{for(N=Array(v),x=0;x>2]=C,p&&w)fe(v,Oe,R,C+1);else if(w)for(w=0;wDr,x=1;else u===4&&(y=Ye,v=Jt,w=Vc,C=()=>Ue,x=2);zt(i,{name:p,fromWireType:function(R){for(var N=Ue[R>>2],K=C(),Q,ae=R+4,k=0;k<=N;++k){var ge=R+4+k*u;(k==N||K[ge>>x]==0)&&(ae=y(ae,ge-ae),Q===void 0?Q=ae:(Q+=String.fromCharCode(0),Q+=ae),ae=ge+u)}return Qt(R),Q},toWireType:function(R,N){typeof N!="string"&&Pe("Cannot pass non-string to C++ string type "+p);var K=w(N),Q=xn(4+K+u);return Ue[Q>>2]=K>>x,v(N,Q+4,K+u),R!==null&&R.push(Qt,Q),Q},argPackAdvance:8,readValueFromPointer:_o,ee:function(R){Qt(R)}})},D:function(i,u,p,y,v,w){gn[i]={name:Ke(u),gf:nt(p,y),le:nt(v,w),sf:[]}},g:function(i,u,p,y,v,w,C,x,R,N){gn[i].sf.push({Lf:Ke(u),Tf:p,Rf:nt(y,v),Sf:w,fg:C,eg:nt(x,R),gg:N})},Ib:function(i,u){u=Ke(u),zt(i,{Xf:!0,name:u,argPackAdvance:0,fromWireType:function(){},toWireType:function(){}})},Fb:function(){return!0},sb:function(){throw 1/0},I:function(i,u,p){i=Et(i),u=Ao(u,"emval::as");var y=[],v=At(y);return Ue[p>>2]=v,u.toWireType(y,i)},$:function(i,u,p,y,v){i=_n[i],u=Et(u),p=yn(p);var w=[];return Ue[y>>2]=At(w),i(u,p,w,v)},A:function(i,u,p,y){i=_n[i],u=Et(u),p=yn(p),i(u,p,null,y)},f:ki,M:function(i){return i===0?At(sl()):(i=yn(i),At(sl()[i]))},z:function(i,u){var p=nf(i,u),y=p[0];u=y.name+"_$"+p.slice(1).map(function(C){return C.name}).join("_")+"$";var v=al[u];if(v!==void 0)return v;var w=Array(i-1);return v=of((C,x,R,N)=>{for(var K=0,Q=0;Q>>0)+4294967296*y)},ka:function(i,u,p,y){L.colorMask(!!i,!!u,!!p,!!y)},la:function(i){L.compileShader(Bt[i])},ma:function(i,u,p,y,v,w,C,x){2<=Ae.version?L.Ee||!C?L.compressedTexImage2D(i,u,p,y,v,w,C,x):L.compressedTexImage2D(i,u,p,y,v,w,Oe,x,C):L.compressedTexImage2D(i,u,p,y,v,w,x?Oe.subarray(x,x+C):null)},na:function(i,u,p,y,v,w,C,x,R){2<=Ae.version?L.Ee||!x?L.compressedTexSubImage2D(i,u,p,y,v,w,C,x,R):L.compressedTexSubImage2D(i,u,p,y,v,w,C,Oe,R,x):L.compressedTexSubImage2D(i,u,p,y,v,w,C,R?Oe.subarray(R,R+x):null)},Zb:function(i,u,p,y,v){L.copyBufferSubData(i,u,p,y,v)},oa:function(i,u,p,y,v,w,C,x){L.copyTexSubImage2D(i,u,p,y,v,w,C,x)},pa:function(){var i=Lr(Nt),u=L.createProgram();return u.name=i,u.Xe=u.Ve=u.We=0,u.kf=1,Nt[i]=u,i},qa:function(i){var u=Lr(Bt);return Bt[u]=L.createShader(i),u},ra:function(i){L.cullFace(i)},sa:function(i,u){for(var p=0;p>2],v=bn[y];v&&(L.deleteBuffer(v),v.name=0,bn[y]=null,y==L.df&&(L.df=0),y==L.Ee&&(L.Ee=0))}},hc:function(i,u){for(var p=0;p>2],v=vn[y];v&&(L.deleteFramebuffer(v),v.name=0,vn[y]=null)}},ta:function(i){if(i){var u=Nt[i];u?(L.deleteProgram(u),u.name=0,Nt[i]=null):Fe(1281)}},ic:function(i,u){for(var p=0;p>2],v=wo[y];v&&(L.deleteRenderbuffer(v),v.name=0,wo[y]=null)}},Sb:function(i,u){for(var p=0;p>2],v=vr[y];v&&(L.deleteSampler(v),v.name=0,vr[y]=null)}},ua:function(i){if(i){var u=Bt[i];u?(L.deleteShader(u),Bt[i]=null):Fe(1281)}},_b:function(i){if(i){var u=Sr[i];u?(L.deleteSync(u),u.name=0,Sr[i]=null):Fe(1281)}},va:function(i,u){for(var p=0;p>2],v=wt[y];v&&(L.deleteTexture(v),v.name=0,wt[y]=null)}},Dc:function(i,u){for(var p=0;p>2];L.deleteVertexArray(ur[y]),ur[y]=null}},yc:function(i,u){for(var p=0;p>2];L.deleteVertexArray(ur[y]),ur[y]=null}},wa:function(i){L.depthMask(!!i)},xa:function(i){L.disable(i)},ya:function(i){L.disableVertexAttribArray(i)},za:function(i,u,p){L.drawArrays(i,u,p)},Ac:function(i,u,p,y){L.drawArraysInstanced(i,u,p,y)},vc:function(i,u,p,y,v){L.qf.drawArraysInstancedBaseInstanceWEBGL(i,u,p,y,v)},tc:function(i,u){for(var p=Tn[i],y=0;y>2];L.drawBuffers(p)},Aa:function(i,u,p,y){L.drawElements(i,u,p,y)},Bc:function(i,u,p,y,v){L.drawElementsInstanced(i,u,p,y,v)},wc:function(i,u,p,y,v,w,C){L.qf.drawElementsInstancedBaseVertexBaseInstanceWEBGL(i,u,p,y,v,w,C)},nc:function(i,u,p,y,v,w){L.drawElements(i,y,v,w)},Ba:function(i){L.enable(i)},Ca:function(i){L.enableVertexAttribArray(i)},Xb:function(i,u){return(i=L.fenceSync(i,u))?(u=Lr(Sr),i.name=u,Sr[u]=i,u):0},Da:function(){L.finish()},Ea:function(){L.flush()},jc:function(i,u,p,y){L.framebufferRenderbuffer(i,u,p,wo[y])},kc:function(i,u,p,y,v){L.framebufferTexture2D(i,u,p,wt[y],v)},Fa:function(i){L.frontFace(i)},Ga:function(i,u){Tr(i,u,"createBuffer",bn)},lc:function(i,u){Tr(i,u,"createFramebuffer",vn)},mc:function(i,u){Tr(i,u,"createRenderbuffer",wo)},Tb:function(i,u){Tr(i,u,"createSampler",vr)},Ha:function(i,u){Tr(i,u,"createTexture",wt)},Ec:function(i,u){Tr(i,u,"createVertexArray",ur)},zc:function(i,u){Tr(i,u,"createVertexArray",ur)},bc:function(i){L.generateMipmap(i)},Ia:function(i,u,p){p?ne[p>>2]=L.getBufferParameter(i,u):Fe(1281)},Ja:function(){var i=L.getError()||Sn;return Sn=0,i},Ka:function(i,u){hl(i,u,2)},cc:function(i,u,p,y){i=L.getFramebufferAttachmentParameter(i,u,p),(i instanceof WebGLRenderbuffer||i instanceof WebGLTexture)&&(i=i.name|0),ne[y>>2]=i},N:function(i,u){hl(i,u,0)},La:function(i,u,p,y){i=L.getProgramInfoLog(Nt[i]),i===null&&(i="(unknown error)"),u=0>2]=u)},Ma:function(i,u,p){if(p)if(i>=gl)Fe(1281);else if(i=Nt[i],u==35716)i=L.getProgramInfoLog(i),i===null&&(i="(unknown error)"),ne[p>>2]=i.length+1;else if(u==35719){if(!i.Xe)for(u=0;u>2]=i.Xe}else if(u==35722){if(!i.Ve)for(u=0;u>2]=i.Ve}else if(u==35381){if(!i.We)for(u=0;u>2]=i.We}else ne[p>>2]=L.getProgramParameter(i,u);else Fe(1281)},dc:function(i,u,p){p?ne[p>>2]=L.getRenderbufferParameter(i,u):Fe(1281)},Na:function(i,u,p,y){i=L.getShaderInfoLog(Bt[i]),i===null&&(i="(unknown error)"),u=0>2]=u)},Ob:function(i,u,p,y){i=L.getShaderPrecisionFormat(i,u),ne[p>>2]=i.rangeMin,ne[p+4>>2]=i.rangeMax,ne[y>>2]=i.precision},Oa:function(i,u,p){p?u==35716?(i=L.getShaderInfoLog(Bt[i]),i===null&&(i="(unknown error)"),ne[p>>2]=i?i.length+1:0):u==35720?(i=L.getShaderSource(Bt[i]),ne[p>>2]=i?i.length+1:0):ne[p>>2]=L.getShaderParameter(Bt[i],u):Fe(1281)},R:function(i){var u=pl[i];if(!u){switch(i){case 7939:u=L.getSupportedExtensions()||[],u=u.concat(u.map(function(y){return"GL_"+y})),u=xo(u.join(" "));break;case 7936:case 7937:case 37445:case 37446:(u=L.getParameter(i))||Fe(1280),u=u&&xo(u);break;case 7938:u=L.getParameter(7938),u=2<=Ae.version?"OpenGL ES 3.0 ("+u+")":"OpenGL ES 2.0 ("+u+")",u=xo(u);break;case 35724:u=L.getParameter(35724);var p=u.match(/^WebGL GLSL ES ([0-9]\.[0-9][0-9]?)(?:$| .*)/);p!==null&&(p[1].length==3&&(p[1]+="0"),u="OpenGL ES GLSL ES "+p[1]+" ("+u+")"),u=xo(u);break;default:Fe(1280)}pl[i]=u}return u},jb:function(i,u){if(2>Ae.version)return Fe(1282),0;var p=cl[i];if(p)return 0>u||u>=p.length?(Fe(1281),0):p[u];switch(i){case 7939:return p=L.getSupportedExtensions()||[],p=p.concat(p.map(function(y){return"GL_"+y})),p=p.map(function(y){return xo(y)}),p=cl[i]=p,0>u||u>=p.length?(Fe(1281),0):p[u];default:return Fe(1280),0}},Pa:function(i,u){if(u=re(u),i=Nt[i]){var p=i,y=p.Ne,v=p.xf,w;if(!y)for(p.Ne=y={},p.wf={},w=0;w>>0,v=u.slice(0,w)),(v=i.xf[v])&&y>2];L.invalidateFramebuffer(i,y)},Qb:function(i,u,p,y,v,w,C){for(var x=Tn[u],R=0;R>2];L.invalidateSubFramebuffer(i,x,y,v,w,C)},Yb:function(i){return L.isSync(Sr[i])},Qa:function(i){return(i=wt[i])?L.isTexture(i):0},Ra:function(i){L.lineWidth(i)},Sa:function(i){i=Nt[i],L.linkProgram(i),i.Ne=0,i.xf={}},rc:function(i,u,p,y,v,w){L.uf.multiDrawArraysInstancedBaseInstanceWEBGL(i,ne,u>>2,ne,p>>2,ne,y>>2,Ue,v>>2,w)},sc:function(i,u,p,y,v,w,C,x){L.uf.multiDrawElementsInstancedBaseVertexBaseInstanceWEBGL(i,ne,u>>2,p,ne,y>>2,ne,v>>2,ne,w>>2,Ue,C>>2,x)},Ta:function(i,u){i==3317&&(fl=u),L.pixelStorei(i,u)},uc:function(i){L.readBuffer(i)},Ua:function(i,u,p,y,v,w,C){if(2<=Ae.version)if(L.df)L.readPixels(i,u,p,y,v,w,C);else{var x=En(w);L.readPixels(i,u,p,y,v,w,x,C>>31-Math.clz32(x.BYTES_PER_ELEMENT))}else(C=Hi(w,v,p,y,C))?L.readPixels(i,u,p,y,v,w,C):Fe(1280)},ec:function(i,u,p,y){L.renderbufferStorage(i,u,p,y)},ac:function(i,u,p,y,v){L.renderbufferStorageMultisample(i,u,p,y,v)},Ub:function(i,u,p){L.samplerParameterf(vr[i],u,p)},Vb:function(i,u,p){L.samplerParameteri(vr[i],u,p)},Wb:function(i,u,p){L.samplerParameteri(vr[i],u,ne[p>>2])},Va:function(i,u,p,y){L.scissor(i,u,p,y)},Wa:function(i,u,p,y){for(var v="",w=0;w>2]:-1;v+=re(ne[p+4*w>>2],0>C?void 0:C)}L.shaderSource(Bt[i],v)},Xa:function(i,u,p){L.stencilFunc(i,u,p)},Ya:function(i,u,p,y){L.stencilFuncSeparate(i,u,p,y)},Za:function(i){L.stencilMask(i)},_a:function(i,u){L.stencilMaskSeparate(i,u)},$a:function(i,u,p){L.stencilOp(i,u,p)},ab:function(i,u,p,y){L.stencilOpSeparate(i,u,p,y)},bb:function(i,u,p,y,v,w,C,x,R){if(2<=Ae.version)if(L.Ee)L.texImage2D(i,u,p,y,v,w,C,x,R);else if(R){var N=En(x);L.texImage2D(i,u,p,y,v,w,C,x,N,R>>31-Math.clz32(N.BYTES_PER_ELEMENT))}else L.texImage2D(i,u,p,y,v,w,C,x,null);else L.texImage2D(i,u,p,y,v,w,C,x,R?Hi(x,C,y,v,R):null)},cb:function(i,u,p){L.texParameterf(i,u,p)},db:function(i,u,p){L.texParameterf(i,u,ye[p>>2])},eb:function(i,u,p){L.texParameteri(i,u,p)},fb:function(i,u,p){L.texParameteri(i,u,ne[p>>2])},oc:function(i,u,p,y,v){L.texStorage2D(i,u,p,y,v)},gb:function(i,u,p,y,v,w,C,x,R){if(2<=Ae.version)if(L.Ee)L.texSubImage2D(i,u,p,y,v,w,C,x,R);else if(R){var N=En(x);L.texSubImage2D(i,u,p,y,v,w,C,x,N,R>>31-Math.clz32(N.BYTES_PER_ELEMENT))}else L.texSubImage2D(i,u,p,y,v,w,C,x,null);else N=null,R&&(N=Hi(x,C,v,w,R)),L.texSubImage2D(i,u,p,y,v,w,C,x,N)},hb:function(i,u){L.uniform1f(Ne(i),u)},ib:function(i,u,p){if(2<=Ae.version)u&&L.uniform1fv(Ne(i),ye,p>>2,u);else{if(288>=u)for(var y=gr[u-1],v=0;v>2];else y=ye.subarray(p>>2,p+4*u>>2);L.uniform1fv(Ne(i),y)}},Zc:function(i,u){L.uniform1i(Ne(i),u)},_c:function(i,u,p){if(2<=Ae.version)u&&L.uniform1iv(Ne(i),ne,p>>2,u);else{if(288>=u)for(var y=jo[u-1],v=0;v>2];else y=ne.subarray(p>>2,p+4*u>>2);L.uniform1iv(Ne(i),y)}},$c:function(i,u,p){L.uniform2f(Ne(i),u,p)},ad:function(i,u,p){if(2<=Ae.version)u&&L.uniform2fv(Ne(i),ye,p>>2,2*u);else{if(144>=u)for(var y=gr[2*u-1],v=0;v<2*u;v+=2)y[v]=ye[p+4*v>>2],y[v+1]=ye[p+(4*v+4)>>2];else y=ye.subarray(p>>2,p+8*u>>2);L.uniform2fv(Ne(i),y)}},Yc:function(i,u,p){L.uniform2i(Ne(i),u,p)},Xc:function(i,u,p){if(2<=Ae.version)u&&L.uniform2iv(Ne(i),ne,p>>2,2*u);else{if(144>=u)for(var y=jo[2*u-1],v=0;v<2*u;v+=2)y[v]=ne[p+4*v>>2],y[v+1]=ne[p+(4*v+4)>>2];else y=ne.subarray(p>>2,p+8*u>>2);L.uniform2iv(Ne(i),y)}},Wc:function(i,u,p,y){L.uniform3f(Ne(i),u,p,y)},Vc:function(i,u,p){if(2<=Ae.version)u&&L.uniform3fv(Ne(i),ye,p>>2,3*u);else{if(96>=u)for(var y=gr[3*u-1],v=0;v<3*u;v+=3)y[v]=ye[p+4*v>>2],y[v+1]=ye[p+(4*v+4)>>2],y[v+2]=ye[p+(4*v+8)>>2];else y=ye.subarray(p>>2,p+12*u>>2);L.uniform3fv(Ne(i),y)}},Uc:function(i,u,p,y){L.uniform3i(Ne(i),u,p,y)},Tc:function(i,u,p){if(2<=Ae.version)u&&L.uniform3iv(Ne(i),ne,p>>2,3*u);else{if(96>=u)for(var y=jo[3*u-1],v=0;v<3*u;v+=3)y[v]=ne[p+4*v>>2],y[v+1]=ne[p+(4*v+4)>>2],y[v+2]=ne[p+(4*v+8)>>2];else y=ne.subarray(p>>2,p+12*u>>2);L.uniform3iv(Ne(i),y)}},Sc:function(i,u,p,y,v){L.uniform4f(Ne(i),u,p,y,v)},Rc:function(i,u,p){if(2<=Ae.version)u&&L.uniform4fv(Ne(i),ye,p>>2,4*u);else{if(72>=u){var y=gr[4*u-1],v=ye;p>>=2;for(var w=0;w<4*u;w+=4){var C=p+w;y[w]=v[C],y[w+1]=v[C+1],y[w+2]=v[C+2],y[w+3]=v[C+3]}}else y=ye.subarray(p>>2,p+16*u>>2);L.uniform4fv(Ne(i),y)}},Fc:function(i,u,p,y,v){L.uniform4i(Ne(i),u,p,y,v)},Gc:function(i,u,p){if(2<=Ae.version)u&&L.uniform4iv(Ne(i),ne,p>>2,4*u);else{if(72>=u)for(var y=jo[4*u-1],v=0;v<4*u;v+=4)y[v]=ne[p+4*v>>2],y[v+1]=ne[p+(4*v+4)>>2],y[v+2]=ne[p+(4*v+8)>>2],y[v+3]=ne[p+(4*v+12)>>2];else y=ne.subarray(p>>2,p+16*u>>2);L.uniform4iv(Ne(i),y)}},Hc:function(i,u,p,y){if(2<=Ae.version)u&&L.uniformMatrix2fv(Ne(i),!!p,ye,y>>2,4*u);else{if(72>=u)for(var v=gr[4*u-1],w=0;w<4*u;w+=4)v[w]=ye[y+4*w>>2],v[w+1]=ye[y+(4*w+4)>>2],v[w+2]=ye[y+(4*w+8)>>2],v[w+3]=ye[y+(4*w+12)>>2];else v=ye.subarray(y>>2,y+16*u>>2);L.uniformMatrix2fv(Ne(i),!!p,v)}},Ic:function(i,u,p,y){if(2<=Ae.version)u&&L.uniformMatrix3fv(Ne(i),!!p,ye,y>>2,9*u);else{if(32>=u)for(var v=gr[9*u-1],w=0;w<9*u;w+=9)v[w]=ye[y+4*w>>2],v[w+1]=ye[y+(4*w+4)>>2],v[w+2]=ye[y+(4*w+8)>>2],v[w+3]=ye[y+(4*w+12)>>2],v[w+4]=ye[y+(4*w+16)>>2],v[w+5]=ye[y+(4*w+20)>>2],v[w+6]=ye[y+(4*w+24)>>2],v[w+7]=ye[y+(4*w+28)>>2],v[w+8]=ye[y+(4*w+32)>>2];else v=ye.subarray(y>>2,y+36*u>>2);L.uniformMatrix3fv(Ne(i),!!p,v)}},Jc:function(i,u,p,y){if(2<=Ae.version)u&&L.uniformMatrix4fv(Ne(i),!!p,ye,y>>2,16*u);else{if(18>=u){var v=gr[16*u-1],w=ye;y>>=2;for(var C=0;C<16*u;C+=16){var x=y+C;v[C]=w[x],v[C+1]=w[x+1],v[C+2]=w[x+2],v[C+3]=w[x+3],v[C+4]=w[x+4],v[C+5]=w[x+5],v[C+6]=w[x+6],v[C+7]=w[x+7],v[C+8]=w[x+8],v[C+9]=w[x+9],v[C+10]=w[x+10],v[C+11]=w[x+11],v[C+12]=w[x+12],v[C+13]=w[x+13],v[C+14]=w[x+14],v[C+15]=w[x+15]}}else v=ye.subarray(y>>2,y+64*u>>2);L.uniformMatrix4fv(Ne(i),!!p,v)}},Kc:function(i){i=Nt[i],L.useProgram(i),L.Hf=i},Lc:function(i,u){L.vertexAttrib1f(i,u)},Mc:function(i,u){L.vertexAttrib2f(i,ye[u>>2],ye[u+4>>2])},Nc:function(i,u){L.vertexAttrib3f(i,ye[u>>2],ye[u+4>>2],ye[u+8>>2])},Oc:function(i,u){L.vertexAttrib4f(i,ye[u>>2],ye[u+4>>2],ye[u+8>>2],ye[u+12>>2])},pc:function(i,u){L.vertexAttribDivisor(i,u)},qc:function(i,u,p,y,v){L.vertexAttribIPointer(i,u,p,y,v)},Pc:function(i,u,p,y,v,w){L.vertexAttribPointer(i,u,p,!!y,v,w)},Qc:function(i,u,p,y){L.viewport(i,u,p,y)},lb:function(i,u,p,y){L.waitSync(Sr[i],u,(p>>>0)+4294967296*y)},tb:function(i){var u=Oe.length;if(i>>>=0,2147483648=p;p*=2){var y=u*(1+.2/p);y=Math.min(y,i+100663296);var v=Math;y=Math.max(i,y),v=v.min.call(v,2147483648,y+(65536-y%65536)%65536);e:{try{Ce.grow(v-ji.byteLength+65535>>>16),Ha();var w=1;break e}catch{}w=void 0}if(w)return!0}return!1},nb:function(){return Ae?Ae.Uf:0},wb:function(i,u){var p=0;return yl().forEach(function(y,v){var w=u+p;for(v=Ue[i+4*v>>2]=w,w=0;w>0]=y.charCodeAt(w);Ht[v>>0]=0,p+=y.length+1}),0},xb:function(i,u){var p=yl();Ue[i>>2]=p.length;var y=0;return p.forEach(function(v){y+=v.length+1}),Ue[u>>2]=y,0},Jb:function(i){be||(o.onExit&&o.onExit(i),Xe=!0),S(i,new Tl(i))},O:function(){return 52},ob:function(){return 52},Cb:function(){return 52},pb:function(){return 70},T:function(i,u,p,y){for(var v=0,w=0;w>2],x=Ue[u+4>>2];u+=8;for(var R=0;R>2]=v,0},c:function(){return he},k:vf,o:jf,l:bf,K:Rf,Lb:If,_:Of,Z:Cf,Q:Af,p:xf,x:Ef,s:Tf,w:wf,Kb:Pf,Mb:Mf,Nb:Sf,d:function(i){he=i},rb:function(i,u,p,y){return df(i,u,p,y)}};(function(){function i(v){o.asm=v.exports,Ce=o.asm.dd,Ha(),za=o.asm.fd,Ga.unshift(o.asm.ed),_r--,o.monitorRunDependencies&&o.monitorRunDependencies(_r),_r==0&&(Mi!==null&&(clearInterval(Mi),Mi=null),mo&&(v=mo,mo=null,v()))}function u(v){i(v.instance)}function p(v){return $c().then(function(w){return WebAssembly.instantiate(w,y)}).then(function(w){return w}).then(v,function(w){se("failed to asynchronously prepare wasm: "+w),yo(w)})}var y={a:_f};if(_r++,o.monitorRunDependencies&&o.monitorRunDependencies(_r),o.instantiateWasm)try{return o.instantiateWasm(y,i)}catch(v){return se("Module.instantiateWasm callback failed with error: "+v),!1}return function(){return pe||typeof WebAssembly.instantiateStreaming!="function"||qa()||Tt.startsWith("file://")||D||typeof fetch!="function"?p(u):fetch(Tt,{credentials:"same-origin"}).then(function(v){return WebAssembly.instantiateStreaming(v,y).then(u,function(w){return se("wasm streaming compile failed: "+w),se("falling back to ArrayBuffer instantiation"),p(u)})})}().catch(s),{}})(),o.___wasm_call_ctors=function(){return(o.___wasm_call_ctors=o.asm.ed).apply(null,arguments)};var Qt=o._free=function(){return(Qt=o._free=o.asm.gd).apply(null,arguments)},xn=o._malloc=function(){return(xn=o._malloc=o.asm.hd).apply(null,arguments)},Sl=o.___getTypeName=function(){return(Sl=o.___getTypeName=o.asm.id).apply(null,arguments)};o.___embind_register_native_and_builtin_types=function(){return(o.___embind_register_native_and_builtin_types=o.asm.jd).apply(null,arguments)};var it=o._setThrew=function(){return(it=o._setThrew=o.asm.kd).apply(null,arguments)},st=o.stackSave=function(){return(st=o.stackSave=o.asm.ld).apply(null,arguments)},at=o.stackRestore=function(){return(at=o.stackRestore=o.asm.md).apply(null,arguments)};o.dynCall_viji=function(){return(o.dynCall_viji=o.asm.nd).apply(null,arguments)},o.dynCall_vijiii=function(){return(o.dynCall_vijiii=o.asm.od).apply(null,arguments)},o.dynCall_viiiiij=function(){return(o.dynCall_viiiiij=o.asm.pd).apply(null,arguments)},o.dynCall_jiiiijiiiii=function(){return(o.dynCall_jiiiijiiiii=o.asm.qd).apply(null,arguments)},o.dynCall_viiij=function(){return(o.dynCall_viiij=o.asm.rd).apply(null,arguments)},o.dynCall_jii=function(){return(o.dynCall_jii=o.asm.sd).apply(null,arguments)},o.dynCall_vij=function(){return(o.dynCall_vij=o.asm.td).apply(null,arguments)},o.dynCall_iiij=function(){return(o.dynCall_iiij=o.asm.ud).apply(null,arguments)},o.dynCall_iiiij=function(){return(o.dynCall_iiiij=o.asm.vd).apply(null,arguments)},o.dynCall_viij=function(){return(o.dynCall_viij=o.asm.wd).apply(null,arguments)},o.dynCall_ji=function(){return(o.dynCall_ji=o.asm.xd).apply(null,arguments)},o.dynCall_iij=function(){return(o.dynCall_iij=o.asm.yd).apply(null,arguments)},o.dynCall_jiiiiii=function(){return(o.dynCall_jiiiiii=o.asm.zd).apply(null,arguments)},o.dynCall_jiiiiji=function(){return(o.dynCall_jiiiiji=o.asm.Ad).apply(null,arguments)},o.dynCall_iijj=function(){return(o.dynCall_iijj=o.asm.Bd).apply(null,arguments)},o.dynCall_iiiji=function(){return(o.dynCall_iiiji=o.asm.Cd).apply(null,arguments)},o.dynCall_iiji=function(){return(o.dynCall_iiji=o.asm.Dd).apply(null,arguments)},o.dynCall_iijjiii=function(){return(o.dynCall_iijjiii=o.asm.Ed).apply(null,arguments)},o.dynCall_vijjjii=function(){return(o.dynCall_vijjjii=o.asm.Fd).apply(null,arguments)},o.dynCall_jiji=function(){return(o.dynCall_jiji=o.asm.Gd).apply(null,arguments)},o.dynCall_viijii=function(){return(o.dynCall_viijii=o.asm.Hd).apply(null,arguments)},o.dynCall_iiiiij=function(){return(o.dynCall_iiiiij=o.asm.Id).apply(null,arguments)},o.dynCall_iiiiijj=function(){return(o.dynCall_iiiiijj=o.asm.Jd).apply(null,arguments)},o.dynCall_iiiiiijj=function(){return(o.dynCall_iiiiiijj=o.asm.Kd).apply(null,arguments)};function bf(i,u,p,y){var v=st();try{return et(i)(u,p,y)}catch(w){if(at(v),w!==w+0)throw w;it(1,0)}}function vf(i,u){var p=st();try{return et(i)(u)}catch(y){if(at(p),y!==y+0)throw y;it(1,0)}}function Sf(i,u,p,y,v,w,C,x,R,N){var K=st();try{et(i)(u,p,y,v,w,C,x,R,N)}catch(Q){if(at(K),Q!==Q+0)throw Q;it(1,0)}}function Tf(i,u,p,y){var v=st();try{et(i)(u,p,y)}catch(w){if(at(v),w!==w+0)throw w;it(1,0)}}function Ef(i,u,p){var y=st();try{et(i)(u,p)}catch(v){if(at(y),v!==v+0)throw v;it(1,0)}}function Af(i){var u=st();try{et(i)()}catch(p){if(at(u),p!==p+0)throw p;it(1,0)}}function wf(i,u,p,y,v){var w=st();try{et(i)(u,p,y,v)}catch(C){if(at(w),C!==C+0)throw C;it(1,0)}}function xf(i,u){var p=st();try{et(i)(u)}catch(y){if(at(p),y!==y+0)throw y;it(1,0)}}function jf(i,u,p){var y=st();try{return et(i)(u,p)}catch(v){if(at(y),v!==v+0)throw v;it(1,0)}}function Mf(i,u,p,y,v,w,C){var x=st();try{et(i)(u,p,y,v,w,C)}catch(R){if(at(x),R!==R+0)throw R;it(1,0)}}function Rf(i,u,p,y,v){var w=st();try{return et(i)(u,p,y,v)}catch(C){if(at(w),C!==C+0)throw C;it(1,0)}}function If(i,u,p,y,v,w){var C=st();try{return et(i)(u,p,y,v,w)}catch(x){if(at(C),x!==x+0)throw x;it(1,0)}}function Of(i,u,p,y,v,w,C){var x=st();try{return et(i)(u,p,y,v,w,C)}catch(R){if(at(x),R!==R+0)throw R;it(1,0)}}function Pf(i,u,p,y,v,w){var C=st();try{et(i)(u,p,y,v,w)}catch(x){if(at(C),x!==x+0)throw x;it(1,0)}}function Cf(i,u,p,y,v,w,C,x,R,N){var K=st();try{return et(i)(u,p,y,v,w,C,x,R,N)}catch(Q){if(at(K),Q!==Q+0)throw Q;it(1,0)}}var jn;function Tl(i){this.name="ExitStatus",this.message="Program terminated with exit("+i+")",this.status=i}mo=function i(){jn||Gi(),jn||(mo=i)};function Gi(){function i(){if(!jn&&(jn=!0,o.calledRun=!0,!Xe)){if(Ri(Ga),n(o),o.onRuntimeInitialized&&o.onRuntimeInitialized(),o.postRun)for(typeof o.postRun=="function"&&(o.postRun=[o.postRun]);o.postRun.length;){var u=o.postRun.shift();$a.unshift(u)}Ri($a)}}if(!(0<_r)){if(o.preRun)for(typeof o.preRun=="function"&&(o.preRun=[o.preRun]);o.preRun.length;)Gc();Ri(Va),0<_r||(o.setStatus?(o.setStatus("Running..."),setTimeout(function(){setTimeout(function(){o.setStatus("")},1),i()},1)):i())}}if(o.run=Gi,o.preInit)for(typeof o.preInit=="function"&&(o.preInit=[o.preInit]);0{var $jscomp=$jscomp||{};$jscomp.scope={};$jscomp.findInternal=function(t,r,o){t instanceof String&&(t=String(t));for(var n=t.length,s=0;s=s}},"es6","es3");$jscomp.polyfill("Array.prototype.find",function(t){return t||function(r,o){return $jscomp.findInternal(this,r,o).v}},"es6","es3");$jscomp.polyfill("String.prototype.startsWith",function(t){return t||function(r,o){var n=$jscomp.checkStringArgs(this,r,"startsWith");r+="";var s=n.length,l=r.length;o=Math.max(0,Math.min(o|0,n.length));for(var m=0;m=l}},"es6","es3");$jscomp.polyfill("String.prototype.repeat",function(t){return t||function(r){var o=$jscomp.checkStringArgs(this,null,"repeat");if(0>r||1342177279>>=1)&&(o+=o);return n}},"es6","es3");var COMPILED=!0,goog=goog||{};goog.global=exports||self;goog.exportPath_=function(t,r,o){t=t.split("."),o=o||goog.global,t[0]in o||typeof o.execScript>"u"||o.execScript("var "+t[0]);for(var n;t.length&&(n=t.shift());)t.length||r===void 0?o=o[n]&&o[n]!==Object.prototype[n]?o[n]:o[n]={}:o[n]=r};goog.define=function(t,r){if(!COMPILED){var o=goog.global.CLOSURE_UNCOMPILED_DEFINES,n=goog.global.CLOSURE_DEFINES;o&&o.nodeType===void 0&&Object.prototype.hasOwnProperty.call(o,t)?r=o[t]:n&&n.nodeType===void 0&&Object.prototype.hasOwnProperty.call(n,t)&&(r=n[t])}return r};goog.FEATURESET_YEAR=2012;goog.DEBUG=!0;goog.LOCALE="en";goog.TRUSTED_SITE=!0;goog.STRICT_MODE_COMPATIBLE=!1;goog.DISALLOW_TEST_ONLY_CODE=COMPILED&&!goog.DEBUG;goog.ENABLE_CHROME_APP_SAFE_SCRIPT_LOADING=!1;goog.provide=function(t){if(goog.isInModuleLoader_())throw Error("goog.provide cannot be used within a module.");if(!COMPILED&&goog.isProvided_(t))throw Error('Namespace "'+t+'" already declared.');goog.constructNamespace_(t)};goog.constructNamespace_=function(t,r){if(!COMPILED){delete goog.implicitNamespaces_[t];for(var o=t;(o=o.substring(0,o.lastIndexOf(".")))&&!goog.getObjectByName(o);)goog.implicitNamespaces_[o]=!0}goog.exportPath_(t,r)};goog.getScriptNonce=function(t){return t&&t!=goog.global?goog.getScriptNonce_(t.document):(goog.cspNonce_===null&&(goog.cspNonce_=goog.getScriptNonce_(goog.global.document)),goog.cspNonce_)};goog.NONCE_PATTERN_=/^[\w+/_-]+[=]{0,2}$/;goog.cspNonce_=null;goog.getScriptNonce_=function(t){return(t=t.querySelector&&t.querySelector("script[nonce]"))&&(t=t.nonce||t.getAttribute("nonce"))&&goog.NONCE_PATTERN_.test(t)?t:""};goog.VALID_MODULE_RE_=/^[a-zA-Z_$][a-zA-Z0-9._$]*$/;goog.module=function(t){if(typeof t!="string"||!t||t.search(goog.VALID_MODULE_RE_)==-1)throw Error("Invalid module identifier");if(!goog.isInGoogModuleLoader_())throw Error("Module "+t+" has been loaded incorrectly. Note, modules cannot be loaded as normal scripts. They require some kind of pre-processing step. You're likely trying to load a module via a script tag or as a part of a concatenated bundle without rewriting the module. For more info see: https://github.com/google/closure-library/wiki/goog.module:-an-ES6-module-like-alternative-to-goog.provide.");if(goog.moduleLoaderState_.moduleName)throw Error("goog.module may only be called once per module.");if(goog.moduleLoaderState_.moduleName=t,!COMPILED){if(goog.isProvided_(t))throw Error('Namespace "'+t+'" already declared.');delete goog.implicitNamespaces_[t]}};goog.module.get=function(t){return goog.module.getInternal_(t)};goog.module.getInternal_=function(t){if(!COMPILED){if(t in goog.loadedModules_)return goog.loadedModules_[t].exports;if(!goog.implicitNamespaces_[t])return t=goog.getObjectByName(t),t??null}return null};goog.ModuleType={ES6:"es6",GOOG:"goog"};goog.moduleLoaderState_=null;goog.isInModuleLoader_=function(){return goog.isInGoogModuleLoader_()||goog.isInEs6ModuleLoader_()};goog.isInGoogModuleLoader_=function(){return!!goog.moduleLoaderState_&&goog.moduleLoaderState_.type==goog.ModuleType.GOOG};goog.isInEs6ModuleLoader_=function(){if(goog.moduleLoaderState_&&goog.moduleLoaderState_.type==goog.ModuleType.ES6)return!0;var t=goog.global.$jscomp;return t?typeof t.getCurrentModulePath!="function"?!1:!!t.getCurrentModulePath():!1};goog.module.declareLegacyNamespace=function(){if(!COMPILED&&!goog.isInGoogModuleLoader_())throw Error("goog.module.declareLegacyNamespace must be called from within a goog.module");if(!COMPILED&&!goog.moduleLoaderState_.moduleName)throw Error("goog.module must be called prior to goog.module.declareLegacyNamespace.");goog.moduleLoaderState_.declareLegacyNamespace=!0};goog.declareModuleId=function(t){if(!COMPILED){if(!goog.isInEs6ModuleLoader_())throw Error("goog.declareModuleId may only be called from within an ES6 module");if(goog.moduleLoaderState_&&goog.moduleLoaderState_.moduleName)throw Error("goog.declareModuleId may only be called once per module.");if(t in goog.loadedModules_)throw Error('Module with namespace "'+t+'" already exists.')}if(goog.moduleLoaderState_)goog.moduleLoaderState_.moduleName=t;else{var r=goog.global.$jscomp;if(!r||typeof r.getCurrentModulePath!="function")throw Error('Module with namespace "'+t+'" has been loaded incorrectly.');r=r.require(r.getCurrentModulePath()),goog.loadedModules_[t]={exports:r,type:goog.ModuleType.ES6,moduleId:t}}};goog.setTestOnly=function(t){if(goog.DISALLOW_TEST_ONLY_CODE)throw t=t||"",Error("Importing test-only code into non-debug environment"+(t?": "+t:"."))};goog.forwardDeclare=function(t){};COMPILED||(goog.isProvided_=function(t){return t in goog.loadedModules_||!goog.implicitNamespaces_[t]&&goog.getObjectByName(t)!=null},goog.implicitNamespaces_={"goog.module":!0});goog.getObjectByName=function(t,r){t=t.split("."),r=r||goog.global;for(var o=0;o"u")return"object";return r};goog.isArray=function(t){return goog.typeOf(t)=="array"};goog.isArrayLike=function(t){var r=goog.typeOf(t);return r=="array"||r=="object"&&typeof t.length=="number"};goog.isDateLike=function(t){return goog.isObject(t)&&typeof t.getFullYear=="function"};goog.isFunction=function(t){return goog.typeOf(t)=="function"};goog.isObject=function(t){var r=typeof t;return r=="object"&&t!=null||r=="function"};goog.getUid=function(t){return Object.prototype.hasOwnProperty.call(t,goog.UID_PROPERTY_)&&t[goog.UID_PROPERTY_]||(t[goog.UID_PROPERTY_]=++goog.uidCounter_)};goog.hasUid=function(t){return!!t[goog.UID_PROPERTY_]};goog.removeUid=function(t){t!==null&&"removeAttribute"in t&&t.removeAttribute(goog.UID_PROPERTY_);try{delete t[goog.UID_PROPERTY_]}catch{}};goog.UID_PROPERTY_="closure_uid_"+(1e9*Math.random()>>>0);goog.uidCounter_=0;goog.getHashCode=goog.getUid;goog.removeHashCode=goog.removeUid;goog.cloneObject=function(t){var r=goog.typeOf(t);if(r=="object"||r=="array"){if(typeof t.clone=="function")return t.clone();r=r=="array"?[]:{};for(var o in t)r[o]=goog.cloneObject(t[o]);return r}return t};goog.bindNative_=function(t,r,o){return t.call.apply(t.bind,arguments)};goog.bindJs_=function(t,r,o){if(!t)throw Error();if(2{"use strict";class X{constructor(){if(new.target!=String)throw 1;this.x=42}}let q=Reflect.construct(X,[],String);if(q.x!=42||!(q instanceof String))throw 1;for(const a of[2,3]){if(a==2)continue;function f(z={a}){let a=0;return z.a}{function f(){return 0;}}return f()==3}})()')}),a("es7",function(){return b("2 ** 2 == 4")}),a("es8",function(){return b("async () => 1, true")}),a("es9",function(){return b("({...rest} = {}), true")}),a("es_next",function(){return!1}),{target:c,map:d}},goog.Transpiler.prototype.needsTranspile=function(t,r){if(goog.TRANSPILE=="always")return!0;if(goog.TRANSPILE=="never")return!1;if(!this.requiresTranspilation_){var o=this.createRequiresTranspilation_();this.requiresTranspilation_=o.map,this.transpilationTarget_=this.transpilationTarget_||o.target}if(t in this.requiresTranspilation_)return this.requiresTranspilation_[t]?!0:!(!goog.inHtmlDocument_()||r!="es6"||"noModule"in goog.global.document.createElement("script"));throw Error("Unknown language mode: "+t)},goog.Transpiler.prototype.transpile=function(t,r){return goog.transpile_(t,r,this.transpilationTarget_)},goog.transpiler_=new goog.Transpiler,goog.protectScriptTag_=function(t){return t.replace(/<\/(SCRIPT)/ig,"\\x3c/$1")},goog.DebugLoader_=function(){this.dependencies_={},this.idToPath_={},this.written_={},this.loadingDeps_=[],this.depsToLoad_=[],this.paused_=!1,this.factory_=new goog.DependencyFactory(goog.transpiler_),this.deferredCallbacks_={},this.deferredQueue_=[]},goog.DebugLoader_.prototype.bootstrap=function(t,r){function o(){n&&(goog.global.setTimeout(n,0),n=null)}var n=r;if(t.length){r=[];for(var s=0;s<\/script>",r.write(goog.TRUSTED_TYPES_POLICY_?goog.TRUSTED_TYPES_POLICY_.createHTML(n):n)}else{var s=r.createElement("script");s.defer=goog.Dependency.defer_,s.async=!1,s.type="text/javascript",(n=goog.getScriptNonce())&&s.setAttribute("nonce",n),goog.DebugLoader_.IS_OLD_IE_?(t.pause(),s.onreadystatechange=function(){(s.readyState=="loaded"||s.readyState=="complete")&&(t.loaded(),t.resume())}):s.onload=function(){s.onload=null,t.loaded()},s.src=goog.TRUSTED_TYPES_POLICY_?goog.TRUSTED_TYPES_POLICY_.createScriptURL(this.path):this.path,r.head.appendChild(s)}}else goog.logToConsole_("Cannot use default debug loader outside of HTML documents."),this.relativePath=="deps.js"?(goog.logToConsole_("Consider setting CLOSURE_IMPORT_SCRIPT before loading base.js, or setting CLOSURE_NO_DEPS to true."),t.loaded()):t.pause()},goog.Es6ModuleDependency=function(t,r,o,n,s){goog.Dependency.call(this,t,r,o,n,s)},goog.inherits(goog.Es6ModuleDependency,goog.Dependency),goog.Es6ModuleDependency.prototype.load=function(t){function r(M,N){M=N?'