Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

@aduh95/viz.js

Package Overview
Dependencies
Maintainers
1
Versions
27
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@aduh95/viz.js - npm Package Compare versions

Comparing version 3.3.4 to 3.4.0

5

CHANGELOG.md
# Changelog
### @aduh95/Viz.js v3.4.0 (2021-03-16)
- Bump Graphviz version to
[2.47.0](https://gitlab.com/graphviz/graphviz/-/blob/master/CHANGELOG.md#2470-2021-03-15).
### @aduh95/Viz.js v3.3.4 (2021-03-10)

@@ -4,0 +9,0 @@

4

dist/render.browser.js
/**
* Viz.js 3.3.4 (Graphviz 2.46.1, Expat 2.2.10, Emscripten 2.0.15)
* Viz.js 3.4.0 (Graphviz 2.47.0, Expat 2.2.10, Emscripten 2.0.15)
* @license magnet:?xt=urn:btih:d3d9a9a6595521f9666a5e94cc830dab83b65699&dn=expat.txt MIT licensed

@@ -10,2 +10,2 @@ *

*/
var n=function(n){var t,r,e;n=n||{},t||(t=void 0!==n?n:{}),t.ready=new Promise((function(n,t){r=n,e=t}));var a,o={};for(a in t)t.hasOwnProperty(a)&&(o[a]=t[a]);var i="./this.program";function u(n,t){throw t}var f,c="";c=0!==(c=self.location.href).indexOf("blob:")?c.substr(0,c.lastIndexOf("/")+1):"",f=function(n){var t=new XMLHttpRequest;return t.open("GET",n,!1),t.responseType="arraybuffer",t.send(null),new Uint8Array(t.response)};var s=t.print||console.log.bind(console),l=t.printErr||console.warn.bind(console);for(a in o)o.hasOwnProperty(a)&&(t[a]=o[a]);o=null,t.thisProgram&&(i=t.thisProgram),t.quit&&(u=t.quit);var h,d=0;t.wasmBinary&&(h=t.wasmBinary);var v=t.noExitRuntime||!0;"object"!=typeof WebAssembly&&J("no native wasm support detected");var p,w=!1,m="undefined"!=typeof TextDecoder?new TextDecoder("utf8"):void 0;function y(n,t,r){var e=t+r;for(r=t;n[r]&&!(r>=e);)++r;if(16<r-t&&n.subarray&&m)return m.decode(n.subarray(t,r));for(e="";t<r;){var a=n[t++];if(128&a){var o=63&n[t++];if(192==(224&a))e+=String.fromCharCode((31&a)<<6|o);else{var i=63&n[t++];65536>(a=224==(240&a)?(15&a)<<12|o<<6|i:(7&a)<<18|o<<12|i<<6|63&n[t++])?e+=String.fromCharCode(a):(a-=65536,e+=String.fromCharCode(55296|a>>10,56320|1023&a))}}else e+=String.fromCharCode(a)}return e}function g(n,t){return n?y(C,n,t):""}function b(n,t,r,e){if(!(0<e))return 0;var a=r;e=r+e-1;for(var o=0;o<n.length;++o){var i=n.charCodeAt(o);if(55296<=i&&57343>=i&&(i=65536+((1023&i)<<10)|1023&n.charCodeAt(++o)),127>=i){if(r>=e)break;t[r++]=i}else{if(2047>=i){if(r+1>=e)break;t[r++]=192|i>>6}else{if(65535>=i){if(r+2>=e)break;t[r++]=224|i>>12}else{if(r+3>=e)break;t[r++]=240|i>>18,t[r++]=128|i>>12&63}t[r++]=128|i>>6&63}t[r++]=128|63&i}}return t[r]=0,r-a}function A(n){for(var t=0,r=0;r<n.length;++r){var e=n.charCodeAt(r);55296<=e&&57343>=e&&(e=65536+((1023&e)<<10)|1023&n.charCodeAt(++r)),127>=e?++t:t=2047>=e?t+2:65535>=e?t+3:t+4}return t}var D,_,C,k,E,F,T,x,M,P="undefined"==typeof TextDecoder&&void 0;function S(n,t){for(var r=n>>1,e=r+t/2;!(r>=e)&&E[r];)++r;if(32<(r<<=1)-n&&P)return P.decode(C.subarray(n,r));for(r="",e=0;!(e>=t/2);++e){var a=k[n+2*e>>1];if(0==a)break;r+=String.fromCharCode(a)}return r}function O(n,t,r){if(void 0===r&&(r=2147483647),2>r)return 0;var e=t;r=(r-=2)<2*n.length?r/2:n.length;for(var a=0;a<r;++a)k[t>>1]=n.charCodeAt(a),t+=2;return k[t>>1]=0,t-e}function W(n){return 2*n.length}function j(n,t){for(var r=0,e="";!(r>=t/4);){var a=F[n+4*r>>2];if(0==a)break;++r,65536<=a?(a-=65536,e+=String.fromCharCode(55296|a>>10,56320|1023&a)):e+=String.fromCharCode(a)}return e}function R(n,t,r){if(void 0===r&&(r=2147483647),4>r)return 0;var e=t;r=e+r-4;for(var a=0;a<n.length;++a){var o=n.charCodeAt(a);if(55296<=o&&57343>=o&&(o=65536+((1023&o)<<10)|1023&n.charCodeAt(++a)),F[t>>2]=o,(t+=4)+4>r)break}return F[t>>2]=0,t-e}function U(n){for(var t=0,r=0;r<n.length;++r){var e=n.charCodeAt(r);55296<=e&&57343>=e&&++r,t+=4}return t}function z(){var n=p.buffer;D=n,t.HEAP8=_=new Int8Array(n),t.HEAP16=k=new Int16Array(n),t.HEAP32=F=new Int32Array(n),t.HEAPU8=C=new Uint8Array(n),t.HEAPU16=E=new Uint16Array(n),t.HEAPU32=T=new Uint32Array(n),t.HEAPF32=x=new Float32Array(n),t.HEAPF64=M=new Float64Array(n)}var I,Y=[],H=[],B=[],N=[];function V(){var n=t.preRun.shift();Y.unshift(n)}H.push({xb:function(){Nt()}});var G=0,L=null;function J(n){throw t.onAbort&&t.onAbort(n),l(n),w=!0,n=new WebAssembly.RuntimeError("abort("+n+"). Build with -s ASSERTIONS=1 for more info."),e(n),n}function K(){var n=X;return String.prototype.startsWith?n.startsWith("data:application/octet-stream;base64,"):0===n.indexOf("data:application/octet-stream;base64,")}t.preloadedImages={},t.preloadedAudios={};var X="render.wasm";if(!K()){var Q=X;X=t.locateFile?t.locateFile(Q,c):c+Q}function Z(){var n=X;try{if(n==X&&h)return new Uint8Array(h);if(f)return f(n);throw"both async and sync fetching of the wasm failed"}catch(n){J(n)}}var $,q,nn,tn={178884:function(n,t){n=g(n),t=g(t);var r="/";r="string"==typeof r?r:En(r);for(var e=un(n).split("/").reverse();e.length;){var a=e.pop();if(a){r=on(r+"/"+a);try{Yn(r)}catch(n){}}}n=function(){return on(Array.prototype.slice.call(arguments,0).join("/"))}("/",n);var o=o||{};if(o.flags=o.flags||577,n=Vn(n,o.flags,o.mode),"string"==typeof t)Jn(n,e=new Uint8Array(A(t)+1),0,t=b(t,e,0,e.length),o.ub);else{if(!ArrayBuffer.isView(t))throw Error("Unsupported data type");Jn(n,t,0,t.byteLength,o.ub)}Gn(n)}};function rn(n){for(;0<n.length;){var r=n.shift();if("function"==typeof r)r(t);else{var e=r.xb;"number"==typeof e?void 0===r.bb?I.get(e)():I.get(e)(r.bb):e(void 0===r.bb?null:r.bb)}}}function en(n){this.Ja=n-16,this.Pb=function(n){F[this.Ja+8>>2]=n},this.Mb=function(n){F[this.Ja+0>>2]=n},this.Nb=function(){F[this.Ja+4>>2]=0},this.Lb=function(){_[this.Ja+12>>0]=0},this.Ob=function(){_[this.Ja+13>>0]=0},this.Ab=function(n,t){this.Pb(n),this.Mb(t),this.Nb(),this.Lb(),this.Ob()}}function an(n,t){for(var r=0,e=n.length-1;0<=e;e--){var a=n[e];"."===a?n.splice(e,1):".."===a?(n.splice(e,1),r++):r&&(n.splice(e,1),r--)}if(t)for(;r;r--)n.unshift("..");return n}function on(n){var t="/"===n.charAt(0),r="/"===n.substr(-1);return(n=an(n.split("/").filter((function(n){return!!n})),!t).join("/"))||t||(n="."),n&&r&&(n+="/"),(t?"/":"")+n}function un(n){var t=/^(\/?|)([\s\S]*?)((?:\.{1,2}|[^\/]+?|)(\.[^.\/]*|))(?:[\/]*)$/.exec(n).slice(1);return n=t[0],t=t[1],n||t?(t&&(t=t.substr(0,t.length-1)),n+t):"."}function fn(n){if("/"===n)return"/";var t=(n=(n=on(n)).replace(/\/$/,"")).lastIndexOf("/");return-1===t?n:n.substr(t+1)}function cn(){for(var n="",t=!1,r=arguments.length-1;-1<=r&&!t;r--){if("string"!=typeof(t=0<=r?arguments[r]:"/"))throw new TypeError("Arguments to path.resolve must be strings");if(!t)return"";n=t+"/"+n,t="/"===t.charAt(0)}return(t?"/":"")+(n=an(n.split("/").filter((function(n){return!!n})),!t).join("/"))||"."}nn=function(){return performance.now()};var sn=[];function ln(n,t){sn[n]={input:[],za:[],La:t},Un(n,hn)}var hn={open:function(n){var t=sn[n.node.Pa];if(!t)throw new _n(43);n.wa=t,n.seekable=!1},close:function(n){n.wa.La.flush(n.wa)},flush:function(n){n.wa.La.flush(n.wa)},read:function(n,t,r,e){if(!n.wa||!n.wa.La.lb)throw new _n(60);for(var a=0,o=0;o<e;o++){try{var i=n.wa.La.lb(n.wa)}catch(n){throw new _n(29)}if(void 0===i&&0===a)throw new _n(6);if(null==i)break;a++,t[r+o]=i}return a&&(n.node.timestamp=Date.now()),a},write:function(n,t,r,e){if(!n.wa||!n.wa.La.fb)throw new _n(60);try{for(var a=0;a<e;a++)n.wa.La.fb(n.wa,t[r+a])}catch(n){throw new _n(29)}return e&&(n.node.timestamp=Date.now()),a}},dn={lb:function(n){if(!n.input.length){var t=null;if("undefined"!=typeof window&&"function"==typeof window.prompt?null!==(t=window.prompt("Input: "))&&(t+="\n"):"function"==typeof readline&&null!==(t=readline())&&(t+="\n"),!t)return null;n.input=Ht(t,!0)}return n.input.shift()},fb:function(n,t){null===t||10===t?(s(y(n.za,0)),n.za=[]):0!=t&&n.za.push(t)},flush:function(n){n.za&&0<n.za.length&&(s(y(n.za,0)),n.za=[])}},vn={fb:function(n,t){null===t||10===t?(l(y(n.za,0)),n.za=[]):0!=t&&n.za.push(t)},flush:function(n){n.za&&0<n.za.length&&(l(y(n.za,0)),n.za=[])}},pn={Da:null,Ga:function(){return pn.createNode(null,"/",16895,0)},createNode:function(n,t,r,e){if(24576==(61440&r)||4096==(61440&r))throw new _n(63);return pn.Da||(pn.Da={dir:{node:{Ca:pn.ta.Ca,Fa:pn.ta.Fa,Na:pn.ta.Na,Ta:pn.ta.Ta,ob:pn.ta.ob,$a:pn.ta.$a,pb:pn.ta.pb,nb:pn.ta.nb,Wa:pn.ta.Wa},stream:{Ia:pn.ua.Ia}},file:{node:{Ca:pn.ta.Ca,Fa:pn.ta.Fa},stream:{Ia:pn.ua.Ia,read:pn.ua.read,write:pn.ua.write,hb:pn.ua.hb,Ua:pn.ua.Ua,Va:pn.ua.Va}},link:{node:{Ca:pn.ta.Ca,Fa:pn.ta.Fa,Qa:pn.ta.Qa},stream:{}},ib:{node:{Ca:pn.ta.Ca,Fa:pn.ta.Fa},stream:Rn}}),16384==(61440&(r=xn(n,t,r,e)).mode)?(r.ta=pn.Da.dir.node,r.ua=pn.Da.dir.stream,r.va={}):32768==(61440&r.mode)?(r.ta=pn.Da.file.node,r.ua=pn.Da.file.stream,r.xa=0,r.va=null):40960==(61440&r.mode)?(r.ta=pn.Da.link.node,r.ua=pn.Da.link.stream):8192==(61440&r.mode)&&(r.ta=pn.Da.ib.node,r.ua=pn.Da.ib.stream),r.timestamp=Date.now(),n&&(n.va[t]=r,n.timestamp=r.timestamp),r},Vb:function(n){return n.va?n.va.subarray?n.va.subarray(0,n.xa):new Uint8Array(n.va):new Uint8Array(0)},jb:function(n,t){var r=n.va?n.va.length:0;r>=t||(t=Math.max(t,r*(1048576>r?2:1.125)>>>0),0!=r&&(t=Math.max(t,256)),r=n.va,n.va=new Uint8Array(t),0<n.xa&&n.va.set(r.subarray(0,n.xa),0))},Jb:function(n,t){if(n.xa!=t)if(0==t)n.va=null,n.xa=0;else{var r=n.va;n.va=new Uint8Array(t),r&&n.va.set(r.subarray(0,Math.min(t,n.xa))),n.xa=t}},ta:{Ca:function(n){var t={};return t.wb=8192==(61440&n.mode)?n.id:1,t.eb=n.id,t.mode=n.mode,t.Gb=1,t.uid=0,t.yb=0,t.Pa=n.Pa,16384==(61440&n.mode)?t.size=4096:32768==(61440&n.mode)?t.size=n.xa:40960==(61440&n.mode)?t.size=n.link.length:t.size=0,t.rb=new Date(n.timestamp),t.Fb=new Date(n.timestamp),t.vb=new Date(n.timestamp),t.sb=4096,t.tb=Math.ceil(t.size/t.sb),t},Fa:function(n,t){void 0!==t.mode&&(n.mode=t.mode),void 0!==t.timestamp&&(n.timestamp=t.timestamp),void 0!==t.size&&pn.Jb(n,t.size)},Na:function(){throw Cn[44]},Ta:function(n,t,r,e){return pn.createNode(n,t,r,e)},ob:function(n,t,r){if(16384==(61440&n.mode)){try{var e=Tn(t,r)}catch(n){}if(e)for(var a in e.va)throw new _n(55)}delete n.parent.va[n.name],n.parent.timestamp=Date.now(),n.name=r,t.va[r]=n,t.timestamp=n.parent.timestamp,n.parent=t},$a:function(n,t){delete n.va[t],n.timestamp=Date.now()},pb:function(n,t){var r,e=Tn(n,t);for(r in e.va)throw new _n(55);delete n.va[t],n.timestamp=Date.now()},nb:function(n){var t,r=[".",".."];for(t in n.va)n.va.hasOwnProperty(t)&&r.push(t);return r},Wa:function(n,t,r){return(n=pn.createNode(n,t,41471,0)).link=r,n},Qa:function(n){if(40960!=(61440&n.mode))throw new _n(28);return n.link}},ua:{read:function(n,t,r,e,a){var o=n.node.va;if(a>=n.node.xa)return 0;if(8<(n=Math.min(n.node.xa-a,e))&&o.subarray)t.set(o.subarray(a,a+n),r);else for(e=0;e<n;e++)t[r+e]=o[a+e];return n},write:function(n,t,r,e,a,o){if(t.buffer===_.buffer&&(o=!1),!e)return 0;if((n=n.node).timestamp=Date.now(),t.subarray&&(!n.va||n.va.subarray)){if(o)return n.va=t.subarray(r,r+e),n.xa=e;if(0===n.xa&&0===a)return n.va=t.slice(r,r+e),n.xa=e;if(a+e<=n.xa)return n.va.set(t.subarray(r,r+e),a),e}if(pn.jb(n,a+e),n.va.subarray&&t.subarray)n.va.set(t.subarray(r,r+e),a);else for(o=0;o<e;o++)n.va[a+o]=t[r+o];return n.xa=Math.max(n.xa,a+e),e},Ia:function(n,t,r){if(1===r?t+=n.position:2===r&&32768==(61440&n.node.mode)&&(t+=n.node.xa),0>t)throw new _n(28);return t},hb:function(n,t,r){pn.jb(n.node,t+r),n.node.xa=Math.max(n.node.xa,t+r)},Ua:function(n,t,r,e,a,o){if(0!==t)throw new _n(28);if(32768!=(61440&n.node.mode))throw new _n(43);if(n=n.node.va,2&o||n.buffer!==D){for((0<e||e+r<n.length)&&(n=n.subarray?n.subarray(e,e+r):Array.prototype.slice.call(n,e,e+r)),e=!0,o=16384*Math.ceil(r/16384),t=Vt(o);r<o;)_[t+r++]=0;if(!(r=t))throw new _n(48);_.set(n,r)}else e=!1,r=n.byteOffset;return{Ja:r,ab:e}},Va:function(n,t,r,e,a){if(32768!=(61440&n.node.mode))throw new _n(43);return 2&a||pn.ua.write(n,t,0,e,r,!1),0}}},wn=null,mn={},yn=[],gn=1,bn=null,An=!0,Dn={},_n=null,Cn={};function kn(n,t){if(t=t||{},!(n=cn("/",n)))return{path:"",node:null};var r,e={kb:!0,gb:0};for(r in e)void 0===t[r]&&(t[r]=e[r]);if(8<t.gb)throw new _n(32);n=an(n.split("/").filter((function(n){return!!n})),!1);var a=wn;for(e="/",r=0;r<n.length;r++){var o=r===n.length-1;if(o&&t.parent)break;if(a=Tn(a,n[r]),e=on(e+"/"+n[r]),a.Oa&&(!o||o&&t.kb)&&(a=a.Oa.root),!o||t.Sa)for(o=0;40960==(61440&a.mode);)if(a=Nn(e),a=kn(e=cn(un(e),a),{gb:t.gb}).node,40<o++)throw new _n(32)}return{path:e,node:a}}function En(n){for(var t;;){if(n===n.parent)return n=n.Ga.mb,t?"/"!==n[n.length-1]?n+"/"+t:n+t:n;t=t?n.name+"/"+t:n.name,n=n.parent}}function Fn(n,t){for(var r=0,e=0;e<t.length;e++)r=(r<<5)-r+t.charCodeAt(e)|0;return(n+r>>>0)%bn.length}function Tn(n,t){var r;if(r=(r=Sn(n,"x"))?r:n.ta.Na?0:2)throw new _n(r,n);for(r=bn[Fn(n.id,t)];r;r=r.Ka){var e=r.name;if(r.parent.id===n.id&&e===t)return r}return n.ta.Na(n,t)}function xn(n,t,r,e){return t=Fn((n=new zt(n,t,r,e)).parent.id,n.name),n.Ka=bn[t],bn[t]=n}var Mn={r:0,"r+":2,w:577,"w+":578,a:1089,"a+":1090};function Pn(n){var t=["r","w","rw"][3&n];return 512&n&&(t+="w"),t}function Sn(n,t){return An||(-1===t.indexOf("r")||292&n.mode)&&(-1===t.indexOf("w")||146&n.mode)&&(-1===t.indexOf("x")||73&n.mode)?0:2}function On(n,t){try{return Tn(n,t),20}catch(n){}return Sn(n,"wx")}function Wn(n,t){Zn||((Zn=function(){}).prototype={});var r,e=new Zn;for(r in n)e[r]=n[r];return n=e,t=function(n){for(n=n||0;n<=4096;n++)if(!yn[n])return n;throw new _n(33)}(t),n.Ba=t,yn[t]=n}var jn,Rn={open:function(n){n.ua=mn[n.node.Pa].ua,n.ua.open&&n.ua.open(n)},Ia:function(){throw new _n(70)}};function Un(n,t){mn[n]={ua:t}}function zn(n,t){var r="/"===t,e=!t;if(r&&wn)throw new _n(10);if(!r&&!e){var a=kn(t,{kb:!1});if(t=a.path,(a=a.node).Oa)throw new _n(10);if(16384!=(61440&a.mode))throw new _n(54)}t={type:n,Yb:{},mb:t,Eb:[]},(n=n.Ga(t)).Ga=t,t.root=n,r?wn=n:a&&(a.Oa=t,a.Ga&&a.Ga.Eb.push(t))}function In(n,t,r){var e=kn(n,{parent:!0}).node;if(!(n=fn(n))||"."===n||".."===n)throw new _n(28);var a=On(e,n);if(a)throw new _n(a);if(!e.ta.Ta)throw new _n(63);return e.ta.Ta(e,n,t,r)}function Yn(n){return In(n,16895,0)}function Hn(n,t,r){void 0===r&&(r=t,t=438),In(n,8192|t,r)}function Bn(n,t){if(!cn(n))throw new _n(44);var r=kn(t,{parent:!0}).node;if(!r)throw new _n(44);var e=On(r,t=fn(t));if(e)throw new _n(e);if(!r.ta.Wa)throw new _n(63);r.ta.Wa(r,t,n)}function Nn(n){if(!(n=kn(n).node))throw new _n(44);if(!n.ta.Qa)throw new _n(28);return cn(En(n.parent),n.ta.Qa(n))}function Vn(n,r,e,a){if(""===n)throw new _n(44);if("string"==typeof r){var o=Mn[r];if(void 0===o)throw Error("Unknown file open mode: "+r);r=o}if(e=64&r?4095&(void 0===e?438:e)|32768:0,"object"==typeof n)var i=n;else{n=on(n);try{i=kn(n,{Sa:!(131072&r)}).node}catch(n){}}if(o=!1,64&r)if(i){if(128&r)throw new _n(20)}else i=In(n,e,0),o=!0;if(!i)throw new _n(44);if(8192==(61440&i.mode)&&(r&=-513),65536&r&&16384!=(61440&i.mode))throw new _n(54);if(!o&&(e=i?40960==(61440&i.mode)?32:16384==(61440&i.mode)&&("r"!==Pn(r)||512&r)?31:Sn(i,Pn(r)):44))throw new _n(e);if(512&r){var u;if(!(u="string"==typeof(e=i)?kn(e,{Sa:!0}).node:e).ta.Fa)throw new _n(63);if(16384==(61440&u.mode))throw new _n(31);if(32768!=(61440&u.mode))throw new _n(28);if(e=Sn(u,"w"))throw new _n(e);u.ta.Fa(u,{size:0,timestamp:Date.now()})}r&=-131713,(a=Wn({node:i,path:En(i),flags:r,seekable:!0,position:0,ua:i.ua,Ub:[],error:!1},a)).ua.open&&a.ua.open(a),!t.logReadFiles||1&r||($n||($n={}),n in $n||($n[n]=1,l("FS.trackingDelegate error on read file: "+n)));try{Dn.onOpenFile&&(i=0,1!=(2097155&r)&&(i|=1),0!=(2097155&r)&&(i|=2),Dn.onOpenFile(n,i))}catch(t){l("FS.trackingDelegate['onOpenFile']('"+n+"', flags) threw an exception: "+t.message)}return a}function Gn(n){if(null===n.Ba)throw new _n(8);n.cb&&(n.cb=null);try{n.ua.close&&n.ua.close(n)}catch(n){throw n}finally{yn[n.Ba]=null}n.Ba=null}function Ln(n,t,r){if(null===n.Ba)throw new _n(8);if(!n.seekable||!n.ua.Ia)throw new _n(70);if(0!=r&&1!=r&&2!=r)throw new _n(28);n.position=n.ua.Ia(n,t,r),n.Ub=[]}function Jn(n,t,r,e,a){var o=void 0;if(0>e||0>o)throw new _n(28);if(null===n.Ba)throw new _n(8);if(0==(2097155&n.flags))throw new _n(8);if(16384==(61440&n.node.mode))throw new _n(31);if(!n.ua.write)throw new _n(28);n.seekable&&1024&n.flags&&Ln(n,0,2);var i=void 0!==o;if(i){if(!n.seekable)throw new _n(70)}else o=n.position;t=n.ua.write(n,t,r,e,o,a),i||(n.position+=t);try{n.path&&Dn.onWriteToFile&&Dn.onWriteToFile(n.path)}catch(t){l("FS.trackingDelegate['onWriteToFile']('"+n.path+"') threw an exception: "+t.message)}return t}function Kn(){_n||((_n=function(n,t){this.node=t,this.Kb=function(n){this.ya=n},this.Kb(n),this.message="FS error"}).prototype=Error(),_n.prototype.constructor=_n,[44].forEach((function(n){Cn[n]=new _n(n),Cn[n].stack="<generic error, no stack>"})))}function Xn(n,t,r){n=on("/dev/"+n);var e=function(n,t){var r=0;return n&&(r|=365),t&&(r|=146),r}(!!t,!!r);Qn||(Qn=64);var a=Qn++<<8|0;Un(a,{open:function(n){n.seekable=!1},close:function(){r&&r.buffer&&r.buffer.length&&r(10)},read:function(n,r,e,a){for(var o=0,i=0;i<a;i++){try{var u=t()}catch(n){throw new _n(29)}if(void 0===u&&0===o)throw new _n(6);if(null==u)break;o++,r[e+i]=u}return o&&(n.node.timestamp=Date.now()),o},write:function(n,t,e,a){for(var o=0;o<a;o++)try{r(t[e+o])}catch(n){throw new _n(29)}return a&&(n.node.timestamp=Date.now()),o}}),Hn(n,e,a)}var Qn,Zn,$n,qn={},nt={};function tt(n,t){try{var r=kn(n,{Sa:!0}).node;if(!r)throw new _n(44);if(!r.ta.Ca)throw new _n(63);var e=r.ta.Ca(r)}catch(t){if(t&&t.node&&on(n)!==on(En(t.node)))return-54;throw t}return F[t>>2]=e.wb,F[t+4>>2]=0,F[t+8>>2]=e.eb,F[t+12>>2]=e.mode,F[t+16>>2]=e.Gb,F[t+20>>2]=e.uid,F[t+24>>2]=e.yb,F[t+28>>2]=e.Pa,F[t+32>>2]=0,q=[e.size>>>0,($=e.size,1<=+Math.abs($)?0<$?(0|Math.min(+Math.floor($/4294967296),4294967295))>>>0:~~+Math.ceil(($-+(~~$>>>0))/4294967296)>>>0:0)],F[t+40>>2]=q[0],F[t+44>>2]=q[1],F[t+48>>2]=4096,F[t+52>>2]=e.tb,F[t+56>>2]=e.rb.getTime()/1e3|0,F[t+60>>2]=0,F[t+64>>2]=e.Fb.getTime()/1e3|0,F[t+68>>2]=0,F[t+72>>2]=e.vb.getTime()/1e3|0,F[t+76>>2]=0,q=[e.eb>>>0,($=e.eb,1<=+Math.abs($)?0<$?(0|Math.min(+Math.floor($/4294967296),4294967295))>>>0:~~+Math.ceil(($-+(~~$>>>0))/4294967296)>>>0:0)],F[t+80>>2]=q[0],F[t+84>>2]=q[1],0}var rt=void 0;function et(){return F[(rt+=4)-4>>2]}function at(n){if(!(n=yn[n]))throw new _n(8);return n}function ot(n){switch(n){case 1:return 0;case 2:return 1;case 4:return 2;case 8:return 3;default:throw new TypeError("Unknown type size: "+n)}}var it=void 0;function ut(n){for(var t="";C[n];)t+=it[C[n++]];return t}var ft={},ct={},st={};function lt(n){if(void 0===n)return"_unknown";var t=(n=n.replace(/[^a-zA-Z0-9_]/g,"$")).charCodeAt(0);return 48<=t&&57>=t?"_"+n:n}function ht(n,t){return n=lt(n),new Function("body","return function "+n+'() {\n "use strict"; return body.apply(this, arguments);\n};\n')(t)}function dt(n){var t=Error,r=ht(n,(function(t){this.name=n,this.message=t,void 0!==(t=Error(t).stack)&&(this.stack=this.toString()+"\n"+t.replace(/^Error(:[^\n]*)?\n/,""))}));return r.prototype=Object.create(t.prototype),r.prototype.constructor=r,r.prototype.toString=function(){return void 0===this.message?this.name:this.name+": "+this.message},r}var vt=void 0;function pt(n){throw new vt(n)}var wt=void 0;function mt(n,t,r){if(r=r||{},!("argPackAdvance"in t))throw new TypeError("registerType registeredInstance requires argPackAdvance");var e=t.name;if(n||pt('type "'+e+'" must have a positive integer typeid pointer'),ct.hasOwnProperty(n)){if(r.zb)return;pt("Cannot register type '"+e+"' twice")}ct[n]=t,delete st[n],ft.hasOwnProperty(n)&&(t=ft[n],delete ft[n],t.forEach((function(n){n()})))}var yt=[],gt=[{},{value:void 0},{value:null},{value:!0},{value:!1}];function bt(n){return this.fromWireType(T[n>>2])}function At(n){if(null===n)return"null";var t=typeof n;return"object"===t||"array"===t||"function"===t?n.toString():""+n}function Dt(n,t){switch(t){case 2:return function(n){return this.fromWireType(x[n>>2])};case 3:return function(n){return this.fromWireType(M[n>>3])};default:throw new TypeError("Unknown float type: "+n)}}function _t(n){for(;n.length;){var t=n.pop();n.pop()(t)}}function Ct(n,r,e){t.hasOwnProperty(n)?((void 0===e||void 0!==t[n].Ea&&void 0!==t[n].Ea[e])&&pt("Cannot register public name '"+n+"' twice"),function(n,r){var e=t;if(void 0===e[n].Ea){var a=e[n];e[n]=function(){return e[n].Ea.hasOwnProperty(arguments.length)||pt("Function '"+r+"' called with an invalid number of arguments ("+arguments.length+") - expects one of ("+e[n].Ea+")!"),e[n].Ea[arguments.length].apply(this,arguments)},e[n].Ea=[],e[n].Ea[a.qb]=a}}(n,n),t.hasOwnProperty(e)&&pt("Cannot register multiple overloads of a function with the same number of arguments ("+e+")!"),t[n].Ea[e]=r):(t[n]=r,void 0!==e&&(t[n].Xb=e))}function kt(n,r){var e=-1!=(n=ut(n)).indexOf("j")?function(n,r){var e=[];return function(){e.length=arguments.length;for(var a=0;a<arguments.length;a++)e[a]=arguments[a];return-1!=n.indexOf("j")?(a=t["dynCall_"+n],a=e&&e.length?a.apply(null,[r].concat(e)):a.call(null,r)):a=I.get(r).apply(null,e),a}}(n,r):I.get(r);return"function"!=typeof e&&pt("unknown function pointer with signature "+n+": "+r),e}var Et=void 0;function Ft(n){var t=ut(n=Kt(n));return Gt(n),t}function Tt(n,t,r){switch(t){case 0:return r?function(n){return _[n]}:function(n){return C[n]};case 1:return r?function(n){return k[n>>1]}:function(n){return E[n>>1]};case 2:return r?function(n){return F[n>>2]}:function(n){return T[n>>2]};default:throw new TypeError("Unknown integer type: "+n)}}var xt,Mt={};function Pt(){if(!xt){var n,t={USER:"web_user",LOGNAME:"web_user",PATH:"/",PWD:"/",HOME:"/home/web_user",LANG:("object"==typeof navigator&&navigator.languages&&navigator.languages[0]||"C").replace("-","_")+".UTF-8",_:i||"./this.program"};for(n in Mt)t[n]=Mt[n];var r=[];for(n in t)r.push(n+"="+t[n]);xt=r}return xt}function St(n){return 0==n%4&&(0!=n%100||0==n%400)}function Ot(n,t){for(var r=0,e=0;e<=t;r+=n[e++]);return r}var Wt=[31,29,31,30,31,30,31,31,30,31,30,31],jt=[31,28,31,30,31,30,31,31,30,31,30,31];function Rt(n,t){for(n=new Date(n.getTime());0<t;){var r=n.getMonth(),e=(St(n.getFullYear())?Wt:jt)[r];if(!(t>e-n.getDate())){n.setDate(n.getDate()+t);break}t-=e-n.getDate()+1,n.setDate(1),11>r?n.setMonth(r+1):(n.setMonth(0),n.setFullYear(n.getFullYear()+1))}return n}var Ut=[];function zt(n,t,r,e){n||(n=this),this.parent=n,this.Ga=n.Ga,this.Oa=null,this.id=gn++,this.name=t,this.mode=r,this.ta={},this.ua={},this.Pa=e}Object.defineProperties(zt.prototype,{read:{get:function(){return 365==(365&this.mode)},set:function(n){n?this.mode|=365:this.mode&=-366}},write:{get:function(){return 146==(146&this.mode)},set:function(n){n?this.mode|=146:this.mode&=-147}}}),Kn(),bn=Array(4096),zn(pn,"/"),Yn("/tmp"),Yn("/home"),Yn("/home/web_user"),function(){Yn("/dev"),Un(259,{read:function(){return 0},write:function(n,t,r,e){return e}}),Hn("/dev/null",259),ln(1280,dn),ln(1536,vn),Hn("/dev/tty",1280),Hn("/dev/tty1",1536);var n=function(){if("object"==typeof crypto&&"function"==typeof crypto.getRandomValues){var n=new Uint8Array(1);return function(){return crypto.getRandomValues(n),n[0]}}return function(){J("randomDevice")}}();Xn("random",n),Xn("urandom",n),Yn("/dev/shm"),Yn("/dev/shm/tmp")}(),function(){Yn("/proc");var n=Yn("/proc/self");Yn("/proc/self/fd"),zn({Ga:function(){var t=xn(n,"fd",16895,73);return t.ta={Na:function(n,t){var r=yn[+t];if(!r)throw new _n(8);return(n={parent:null,Ga:{mb:"fake"},ta:{Qa:function(){return r.path}}}).parent=n}},t}},"/proc/self/fd")}();for(var It=Array(256),Yt=0;256>Yt;++Yt)It[Yt]=String.fromCharCode(Yt);function Ht(n,t){var r=Array(A(n)+1);return n=b(n,r,0,r.length),t&&(r.length=n),r}it=It,vt=t.BindingError=dt("BindingError"),wt=t.InternalError=dt("InternalError"),t.count_emval_handles=function(){for(var n=0,t=5;t<gt.length;++t)void 0!==gt[t]&&++n;return n},t.get_first_emval=function(){for(var n=5;n<gt.length;++n)if(void 0!==gt[n])return gt[n];return null},Et=t.UnboundTypeError=dt("UnboundTypeError");var Bt={a:function(n,t,r,e){J("Assertion failed: "+g(n)+", at: "+[t?g(t):"unknown filename",r,e?g(e):"unknown function"])},R:function(n,t){n:{if(0===n)n=Date.now();else{if(1!==n&&4!==n){F[Lt()>>2]=28,t=-1;break n}n=nn()}F[t>>2]=n/1e3|0,F[t+4>>2]=n%1e3*1e6|0,t=0}return t},k:function(n){return Vt(n+16)+16},j:function(n,t,r){throw new en(n).Ab(t,r),n},S:function(n,t){try{var r;if(n=g(n),-8&t)var e=-28;else(r=kn(n,{Sa:!0}).node)?(n="",4&t&&(n+="r"),2&t&&(n+="w"),1&t&&(n+="x"),e=n&&Sn(r,n)?-2:0):e=-44;return e}catch(n){return void 0!==qn&&n instanceof _n||J(n),-n.ya}},x:function(n,t,r){rt=r;try{var e=at(n);switch(t){case 0:var a=et();return 0>a?-28:Vn(e.path,e.flags,0,a).Ba;case 1:case 2:return 0;case 3:return e.flags;case 4:return a=et(),e.flags|=a,0;case 12:return a=et(),k[a+0>>1]=2,0;case 13:case 14:return 0;case 16:case 8:return-28;case 9:return F[Lt()>>2]=28,-1;default:return-28}}catch(n){return void 0!==qn&&n instanceof _n||J(n),-n.ya}},O:function(n,t){try{return tt(at(n).path,t)}catch(n){return void 0!==qn&&n instanceof _n||J(n),-n.ya}},r:function(){return 42},P:function(n,t,r){rt=r;try{var e=at(n);switch(t){case 21509:case 21505:return e.wa?0:-59;case 21510:case 21511:case 21512:case 21506:case 21507:case 21508:return e.wa?0:-59;case 21519:if(!e.wa)return-59;var a=et();return F[a>>2]=0;case 21520:return e.wa?-28:-59;case 21531:if(n=a=et(),!e.ua.Bb)throw new _n(59);return e.ua.Bb(e,t,n);case 21523:case 21524:return e.wa?0:-59;default:J("bad ioctl syscall "+t)}}catch(n){return void 0!==qn&&n instanceof _n||J(n),-n.ya}},M:function(n,t,r,e,a,o){try{n:{o<<=12;var i=!1;if(0!=(16&e)&&0!=n%16384)var u=-28;else{if(0!=(32&e)){var f=qt(16384,t);if(!f){u=-48;break n}Jt(f,0,t),i=!0}else{var c=yn[a];if(!c){u=-8;break n}var s=o;if(0!=(2&r)&&0==(2&e)&&2!=(2097155&c.flags))throw new _n(2);if(1==(2097155&c.flags))throw new _n(2);if(!c.ua.Ua)throw new _n(43);var l=c.ua.Ua(c,n,t,s,r,e);f=l.Ja,i=l.ab}nt[f]={Db:f,Cb:t,ab:i,Ba:a,Hb:r,flags:e,offset:o},u=f}}return u}catch(n){return void 0!==qn&&n instanceof _n||J(n),-n.ya}},L:function(n,t){try{if(-1==(0|n)||0===t)var r=-28;else{var e=nt[n];if(e&&t===e.Cb){var a=yn[e.Ba];a&&2&e.Hb&&a&&a.ua.Va&&a.ua.Va(a,C.slice(n,n+t),e.offset,t,e.flags),nt[n]=null,e.ab&&Gt(e.Db)}r=0}return r}catch(n){return void 0!==qn&&n instanceof _n||J(n),-n.ya}},q:function(n,t,r){rt=r;try{return Vn(g(n),t,r?et():0).Ba}catch(n){return void 0!==qn&&n instanceof _n||J(n),-n.ya}},N:function(n,t){try{return tt(n=g(n),t)}catch(n){return void 0!==qn&&n instanceof _n||J(n),-n.ya}},Q:function(n){try{var t=kn(n=g(n),{parent:!0}).node,r=fn(n),e=Tn(t,r);n:{try{var a=Tn(t,r)}catch(n){var o=n.ya;break n}var i=Sn(t,"wx");o=i||(16384==(61440&a.mode)?31:0)}if(o)throw new _n(o);if(!t.ta.$a)throw new _n(63);if(e.Oa)throw new _n(10);try{Dn.willDeletePath&&Dn.willDeletePath(n)}catch(t){l("FS.trackingDelegate['willDeletePath']('"+n+"') threw an exception: "+t.message)}t.ta.$a(t,r);var u=Fn(e.parent.id,e.name);if(bn[u]===e)bn[u]=e.Ka;else for(var f=bn[u];f;){if(f.Ka===e){f.Ka=e.Ka;break}f=f.Ka}try{Dn.onDeletePath&&Dn.onDeletePath(n)}catch(t){l("FS.trackingDelegate['onDeletePath']('"+n+"') threw an exception: "+t.message)}return 0}catch(n){return void 0!==qn&&n instanceof _n||J(n),-n.ya}},U:function(n,t,r,e,a){var o=ot(r);mt(n,{name:t=ut(t),fromWireType:function(n){return!!n},toWireType:function(n,t){return t?e:a},argPackAdvance:8,readValueFromPointer:function(n){if(1===r)var e=_;else if(2===r)e=k;else{if(4!==r)throw new TypeError("Unknown boolean type size: "+t);e=F}return this.fromWireType(e[n>>o])},Ha:null})},T:function(n,t){mt(n,{name:t=ut(t),fromWireType:function(n){var t=gt[n].value;return 4<n&&0==--gt[n].Ib&&(gt[n]=void 0,yt.push(n)),t},toWireType:function(n,t){return function(n){switch(n){case void 0:return 1;case null:return 2;case!0:return 3;case!1:return 4;default:var t=yt.length?yt.pop():gt.length;return gt[t]={Ib:1,value:n},t}}(t)},argPackAdvance:8,readValueFromPointer:bt,Ha:null})},A:function(n,t,r){r=ot(r),mt(n,{name:t=ut(t),fromWireType:function(n){return n},toWireType:function(n,t){if("number"!=typeof t&&"boolean"!=typeof t)throw new TypeError('Cannot convert "'+At(t)+'" to '+this.name);return t},argPackAdvance:8,readValueFromPointer:Dt(t,r),Ha:null})},o:function(n,r,e,a,o,i){var u=function(n,t){for(var r=[],e=0;e<n;e++)r.push(F[(t>>2)+e]);return r}(r,e);n=ut(n),o=kt(a,o),Ct(n,(function(){!function(n,t){var r=[],e={};throw t.forEach((function n(t){e[t]||ct[t]||(st[t]?st[t].forEach(n):(r.push(t),e[t]=!0))})),new Et(n+": "+r.map(Ft).join([", "]))}("Cannot call "+n+" due to unbound types",u)}),r-1),function(n,t){function r(n){if((n=t(n)).length!==e.length)throw new wt("Mismatched type converter count");for(var r=0;r<e.length;++r)mt(e[r],n[r])}var e=[];e.forEach((function(t){st[t]=n}));var a=Array(n.length),o=[],i=0;n.forEach((function(n,t){ct.hasOwnProperty(n)?a[t]=ct[n]:(o.push(n),ft.hasOwnProperty(n)||(ft[n]=[]),ft[n].push((function(){a[t]=ct[n],++i===o.length&&r(a)})))})),0===o.length&&r(a)}(u,(function(e){var a=n,u=n;e=[e[0],null].concat(e.slice(1));var f=o,c=e.length;2>c&&pt("argTypes array size mismatch! Must at least get return value and 'this' types!");for(var s=null!==e[1]&&!1,l=!1,h=1;h<e.length;++h)if(null!==e[h]&&void 0===e[h].Ha){l=!0;break}var d="void"!==e[0].name,v="",p="";for(h=0;h<c-2;++h)v+=(0!==h?", ":"")+"arg"+h,p+=(0!==h?", ":"")+"arg"+h+"Wired";u="return function "+lt(u)+"("+v+") {\nif (arguments.length !== "+(c-2)+") {\nthrowBindingError('function "+u+" called with ' + arguments.length + ' arguments, expected "+(c-2)+" args!');\n}\n",l&&(u+="var destructors = [];\n");var w=l?"destructors":"null";for(v="throwBindingError invoker fn runDestructors retType classParam".split(" "),f=[pt,f,i,_t,e[0],e[1]],s&&(u+="var thisWired = classParam.toWireType("+w+", this);\n"),h=0;h<c-2;++h)u+="var arg"+h+"Wired = argType"+h+".toWireType("+w+", arg"+h+"); // "+e[h+2].name+"\n",v.push("argType"+h),f.push(e[h+2]);if(s&&(p="thisWired"+(0<p.length?", ":"")+p),u+=(d?"var rv = ":"")+"invoker(fn"+(0<p.length?", ":"")+p+");\n",l)u+="runDestructors(destructors);\n";else for(h=s?1:2;h<e.length;++h)c=1===h?"thisWired":"arg"+(h-2)+"Wired",null!==e[h].Ha&&(u+=c+"_dtor("+c+"); // "+e[h].name+"\n",v.push(c+"_dtor"),f.push(e[h].Ha));if(d&&(u+="var ret = retType.fromWireType(rv);\nreturn ret;\n"),v.push(u+"}\n"),e=function(n){var t=Function;if(!(t instanceof Function))throw new TypeError("new_ called with constructor type "+typeof t+" which is not a function");var r=ht(t.name||"unknownFunctionName",(function(){}));return r.prototype=t.prototype,r=new r,(n=t.apply(r,n))instanceof Object?n:r}(v).apply(null,f),h=r-1,!t.hasOwnProperty(a))throw new wt("Replacing nonexistant public symbol");return void 0!==t[a].Ea&&void 0!==h?t[a].Ea[h]=e:(t[a]=e,t[a].qb=h),[]}))},h:function(n,t,r,e,a){function o(n){return n}t=ut(t),-1===a&&(a=4294967295);var i=ot(r);if(0===e){var u=32-8*r;o=function(n){return n<<u>>>u}}var f=-1!=t.indexOf("unsigned");mt(n,{name:t,fromWireType:o,toWireType:function(n,r){if("number"!=typeof r&&"boolean"!=typeof r)throw new TypeError('Cannot convert "'+At(r)+'" to '+this.name);if(r<e||r>a)throw new TypeError('Passing a number "'+At(r)+'" from JS side to C/C++ side to an argument of type "'+t+'", which is outside the valid range ['+e+", "+a+"]!");return f?r>>>0:0|r},argPackAdvance:8,readValueFromPointer:Tt(t,i,0!==e),Ha:null})},g:function(n,t,r){function e(n){var t=T;return new a(D,t[1+(n>>=2)],t[n])}var a=[Int8Array,Uint8Array,Int16Array,Uint16Array,Int32Array,Uint32Array,Float32Array,Float64Array][t];mt(n,{name:r=ut(r),fromWireType:e,argPackAdvance:8,readValueFromPointer:e},{zb:!0})},B:function(n,t){var r="std::string"===(t=ut(t));mt(n,{name:t,fromWireType:function(n){var t=T[n>>2];if(r)for(var e=n+4,a=0;a<=t;++a){var o=n+4+a;if(a==t||0==C[o]){if(e=g(e,o-e),void 0===i)var i=e;else i+=String.fromCharCode(0),i+=e;e=o+1}}else{for(i=Array(t),a=0;a<t;++a)i[a]=String.fromCharCode(C[n+4+a]);i=i.join("")}return Gt(n),i},toWireType:function(n,t){t instanceof ArrayBuffer&&(t=new Uint8Array(t));var e="string"==typeof t;e||t instanceof Uint8Array||t instanceof Uint8ClampedArray||t instanceof Int8Array||pt("Cannot pass non-string to std::string");var a=(r&&e?function(){return A(t)}:function(){return t.length})(),o=Vt(4+a+1);if(T[o>>2]=a,r&&e)b(t,C,o+4,a+1);else if(e)for(e=0;e<a;++e){var i=t.charCodeAt(e);255<i&&(Gt(o),pt("String has UTF-16 code units that do not fit in 8 bits")),C[o+4+e]=i}else for(e=0;e<a;++e)C[o+4+e]=t[e];return null!==n&&n.push(Gt,o),o},argPackAdvance:8,readValueFromPointer:bt,Ha:function(n){Gt(n)}})},s:function(n,t,r){if(r=ut(r),2===t)var e=S,a=O,o=W,i=function(){return E},u=1;else 4===t&&(e=j,a=R,o=U,i=function(){return T},u=2);mt(n,{name:r,fromWireType:function(n){for(var r,a=T[n>>2],o=i(),f=n+4,c=0;c<=a;++c){var s=n+4+c*t;c!=a&&0!=o[s>>u]||(f=e(f,s-f),void 0===r?r=f:(r+=String.fromCharCode(0),r+=f),f=s+t)}return Gt(n),r},toWireType:function(n,e){"string"!=typeof e&&pt("Cannot pass non-string to C++ string type "+r);var i=o(e),f=Vt(4+i+t);return T[f>>2]=i>>u,a(e,f+4,i+t),null!==n&&n.push(Gt,f),f},argPackAdvance:8,readValueFromPointer:bt,Ha:function(n){Gt(n)}})},V:function(n,t){mt(n,{Wb:!0,name:t=ut(t),argPackAdvance:0,fromWireType:function(){},toWireType:function(){}})},w:function(){J()},_:function(n,t,r){var e;for(Ut.length=0,r>>=2;e=C[t++];)(e=105>e)&&1&r&&r++,Ut.push(e?M[r++>>1]:F[r]),++r;return tn[n].apply(null,Ut)},d:function(n,t){throw $t(n,t||1),"longjmp"},F:function(n,t,r){C.copyWithin(n,t,t+r)},G:function(n){var t=C.length;if(2147483648<n)return!1;for(var r=1;4>=r;r*=2){var e=t*(1+.2/r);e=Math.min(e,n+100663296),0<(e=Math.max(n,e))%65536&&(e+=65536-e%65536);n:{try{p.grow(Math.min(2147483648,e)-D.byteLength+65535>>>16),z();var a=1;break n}catch(n){}a=void 0}if(a)return!0}return!1},J:function(n,t){try{var r=0;return Pt().forEach((function(e,a){var o=t+r;for(a=F[n+4*a>>2]=o,o=0;o<e.length;++o)_[a++>>0]=e.charCodeAt(o);_[a>>0]=0,r+=e.length+1})),0}catch(n){return void 0!==qn&&n instanceof _n||J(n),n.ya}},K:function(n,t){try{var r=Pt();F[n>>2]=r.length;var e=0;return r.forEach((function(n){e+=n.length+1})),F[t>>2]=e,0}catch(n){return void 0!==qn&&n instanceof _n||J(n),n.ya}},f:function(n){v||(t.onExit&&t.onExit(n),w=!0),u(n,new nr(n))},n:function(n){try{return Gn(at(n)),0}catch(n){return void 0!==qn&&n instanceof _n||J(n),n.ya}},I:function(n,t){try{var r=at(n);return _[t>>0]=r.wa?2:16384==(61440&r.mode)?3:40960==(61440&r.mode)?7:4,0}catch(n){return void 0!==qn&&n instanceof _n||J(n),n.ya}},z:function(n,t,r,e){try{n:{for(var a=at(n),o=n=0;o<r;o++){var i=F[t+(8*o+4)>>2],u=a,f=F[t+8*o>>2],c=i,s=void 0,l=_;if(0>c||0>s)throw new _n(28);if(null===u.Ba)throw new _n(8);if(1==(2097155&u.flags))throw new _n(8);if(16384==(61440&u.node.mode))throw new _n(31);if(!u.ua.read)throw new _n(28);var h=void 0!==s;if(h){if(!u.seekable)throw new _n(70)}else s=u.position;var d=u.ua.read(u,l,f,c,s);h||(u.position+=d);var v=d;if(0>v){var p=-1;break n}if(n+=v,v<i)break}p=n}return F[e>>2]=p,0}catch(n){return void 0!==qn&&n instanceof _n||J(n),n.ya}},E:function(n,t,r,e,a){try{var o=at(n);return-9007199254740992>=(n=4294967296*r+(t>>>0))||9007199254740992<=n?-61:(Ln(o,n,e),q=[o.position>>>0,($=o.position,1<=+Math.abs($)?0<$?(0|Math.min(+Math.floor($/4294967296),4294967295))>>>0:~~+Math.ceil(($-+(~~$>>>0))/4294967296)>>>0:0)],F[a>>2]=q[0],F[a+4>>2]=q[1],o.cb&&0===n&&0===e&&(o.cb=null),0)}catch(n){return void 0!==qn&&n instanceof _n||J(n),n.ya}},y:function(n,t,r,e){try{n:{for(var a=at(n),o=n=0;o<r;o++){var i=Jn(a,_,F[t+8*o>>2],F[t+(8*o+4)>>2]);if(0>i){var u=-1;break n}n+=i}u=n}return F[e>>2]=u,0}catch(n){return void 0!==qn&&n instanceof _n||J(n),n.ya}},b:function(){return 0|d},W:function(n){var t=Date.now();return F[n>>2]=t/1e3|0,F[n+4>>2]=t%1e3*1e3|0,0},Z:function(n,t){var r=Qt();try{return I.get(n)(t)}catch(n){if(Zt(r),n!==n+0&&"longjmp"!==n)throw n;$t(1,0)}},Y:function(n){var t=Qt();try{return I.get(n)()}catch(n){if(Zt(t),n!==n+0&&"longjmp"!==n)throw n;$t(1,0)}},l:function(n,t){var r=Qt();try{return I.get(n)(t)}catch(n){if(Zt(r),n!==n+0&&"longjmp"!==n)throw n;$t(1,0)}},e:function(n,t,r){var e=Qt();try{return I.get(n)(t,r)}catch(n){if(Zt(e),n!==n+0&&"longjmp"!==n)throw n;$t(1,0)}},m:function(n,t,r,e){var a=Qt();try{return I.get(n)(t,r,e)}catch(n){if(Zt(a),n!==n+0&&"longjmp"!==n)throw n;$t(1,0)}},X:function(n,t,r,e,a,o,i){var u=Qt();try{return I.get(n)(t,r,e,a,o,i)}catch(n){if(Zt(u),n!==n+0&&"longjmp"!==n)throw n;$t(1,0)}},i:function(n,t){var r=Qt();try{I.get(n)(t)}catch(n){if(Zt(r),n!==n+0&&"longjmp"!==n)throw n;$t(1,0)}},v:function(n,t,r){var e=Qt();try{I.get(n)(t,r)}catch(n){if(Zt(e),n!==n+0&&"longjmp"!==n)throw n;$t(1,0)}},t:function(n,t,r,e){var a=Qt();try{I.get(n)(t,r,e)}catch(n){if(Zt(a),n!==n+0&&"longjmp"!==n)throw n;$t(1,0)}},u:function(n,t,r,e,a){var o=Qt();try{I.get(n)(t,r,e,a)}catch(n){if(Zt(o),n!==n+0&&"longjmp"!==n)throw n;$t(1,0)}},p:function(n,t,r,e,a,o){var i=Qt();try{I.get(n)(t,r,e,a,o)}catch(n){if(Zt(i),n!==n+0&&"longjmp"!==n)throw n;$t(1,0)}},c:function(n){d=0|n},H:function(n,t,r,e){return function(n,t,r,e){function a(n,t,r){for(n="number"==typeof n?n.toString():n||"";n.length<t;)n=r[0]+n;return n}function o(n,t){return a(n,t,"0")}function i(n,t){function r(n){return 0>n?-1:0<n?1:0}var e;return 0===(e=r(n.getFullYear()-t.getFullYear()))&&0===(e=r(n.getMonth()-t.getMonth()))&&(e=r(n.getDate()-t.getDate())),e}function u(n){switch(n.getDay()){case 0:return new Date(n.getFullYear()-1,11,29);case 1:return n;case 2:return new Date(n.getFullYear(),0,3);case 3:return new Date(n.getFullYear(),0,2);case 4:return new Date(n.getFullYear(),0,1);case 5:return new Date(n.getFullYear()-1,11,31);case 6:return new Date(n.getFullYear()-1,11,30)}}function f(n){n=Rt(new Date(n.Aa+1900,0,1),n.Za);var t=new Date(n.getFullYear()+1,0,4),r=u(new Date(n.getFullYear(),0,4));return t=u(t),0>=i(r,n)?0>=i(t,n)?n.getFullYear()+1:n.getFullYear():n.getFullYear()-1}var c=F[e+40>>2];for(var s in e={Sb:F[e>>2],Rb:F[e+4>>2],Xa:F[e+8>>2],Ra:F[e+12>>2],Ma:F[e+16>>2],Aa:F[e+20>>2],Ya:F[e+24>>2],Za:F[e+28>>2],Zb:F[e+32>>2],Qb:F[e+36>>2],Tb:c?g(c):""},r=g(r),c={"%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"})r=r.replace(new RegExp(s,"g"),c[s]);var l="Sunday Monday Tuesday Wednesday Thursday Friday Saturday".split(" "),h="January February March April May June July August September October November December".split(" ");for(s in c={"%a":function(n){return l[n.Ya].substring(0,3)},"%A":function(n){return l[n.Ya]},"%b":function(n){return h[n.Ma].substring(0,3)},"%B":function(n){return h[n.Ma]},"%C":function(n){return o((n.Aa+1900)/100|0,2)},"%d":function(n){return o(n.Ra,2)},"%e":function(n){return a(n.Ra,2," ")},"%g":function(n){return f(n).toString().substring(2)},"%G":function(n){return f(n)},"%H":function(n){return o(n.Xa,2)},"%I":function(n){return 0==(n=n.Xa)?n=12:12<n&&(n-=12),o(n,2)},"%j":function(n){return o(n.Ra+Ot(St(n.Aa+1900)?Wt:jt,n.Ma-1),3)},"%m":function(n){return o(n.Ma+1,2)},"%M":function(n){return o(n.Rb,2)},"%n":function(){return"\n"},"%p":function(n){return 0<=n.Xa&&12>n.Xa?"AM":"PM"},"%S":function(n){return o(n.Sb,2)},"%t":function(){return"\t"},"%u":function(n){return n.Ya||7},"%U":function(n){var t=new Date(n.Aa+1900,0,1),r=0===t.getDay()?t:Rt(t,7-t.getDay());return 0>i(r,n=new Date(n.Aa+1900,n.Ma,n.Ra))?o(Math.ceil((31-r.getDate()+(Ot(St(n.getFullYear())?Wt:jt,n.getMonth()-1)-31)+n.getDate())/7),2):0===i(r,t)?"01":"00"},"%V":function(n){var t=new Date(n.Aa+1901,0,4),r=u(new Date(n.Aa+1900,0,4));t=u(t);var e=Rt(new Date(n.Aa+1900,0,1),n.Za);return 0>i(e,r)?"53":0>=i(t,e)?"01":o(Math.ceil((r.getFullYear()<n.Aa+1900?n.Za+32-r.getDate():n.Za+1-r.getDate())/7),2)},"%w":function(n){return n.Ya},"%W":function(n){var t=new Date(n.Aa,0,1),r=1===t.getDay()?t:Rt(t,0===t.getDay()?1:7-t.getDay()+1);return 0>i(r,n=new Date(n.Aa+1900,n.Ma,n.Ra))?o(Math.ceil((31-r.getDate()+(Ot(St(n.getFullYear())?Wt:jt,n.getMonth()-1)-31)+n.getDate())/7),2):0===i(r,t)?"01":"00"},"%y":function(n){return(n.Aa+1900).toString().substring(2)},"%Y":function(n){return n.Aa+1900},"%z":function(n){var t=0<=(n=n.Qb);return n=Math.abs(n)/60,(t?"+":"-")+String("0000"+(n/60*100+n%60)).slice(-4)},"%Z":function(n){return n.Tb},"%%":function(){return"%"}})0<=r.indexOf(s)&&(r=r.replace(new RegExp(s,"g"),c[s](e)));return(s=Ht(r,!1)).length>t?0:(_.set(s,n),s.length-1)}(n,t,r,e)},D:function(n){var t=Date.now()/1e3|0;return n&&(F[n>>2]=t),t},C:function(n){return 0!==n&&Jt(n,0,16),0}};!function(){function n(n){t.asm=n.exports,p=t.asm.$,z(),I=t.asm.ca,G--,t.monitorRunDependencies&&t.monitorRunDependencies(G),0==G&&L&&(n=L,L=null,n())}function r(t){n(t.instance)}function a(n){return(h||"function"!=typeof fetch?Promise.resolve().then((function(){return Z()})):fetch(X,{credentials:"same-origin"}).then((function(n){if(!n.ok)throw"failed to load wasm binary file at '"+X+"'";return n.arrayBuffer()})).catch((function(){return Z()}))).then((function(n){return WebAssembly.instantiate(n,o)})).then(n,(function(n){l("failed to asynchronously prepare wasm: "+n),J(n)}))}var o={a:Bt};if(G++,t.monitorRunDependencies&&t.monitorRunDependencies(G),t.instantiateWasm)try{return t.instantiateWasm(o,n)}catch(n){return l("Module.instantiateWasm callback failed with error: "+n),!1}(h||"function"!=typeof WebAssembly.instantiateStreaming||K()||"function"!=typeof fetch?a(r):fetch(X,{credentials:"same-origin"}).then((function(n){return WebAssembly.instantiateStreaming(n,o).then(r,(function(n){return l("wasm streaming compile failed: "+n),l("falling back to ArrayBuffer instantiation"),a(r)}))}))).catch(e)}();var Nt=t.___wasm_call_ctors=function(){return(Nt=t.___wasm_call_ctors=t.asm.aa).apply(null,arguments)},Vt=t._malloc=function(){return(Vt=t._malloc=t.asm.ba).apply(null,arguments)},Gt=t._free=function(){return(Gt=t._free=t.asm.da).apply(null,arguments)},Lt=t.___errno_location=function(){return(Lt=t.___errno_location=t.asm.ea).apply(null,arguments)},Jt=t._memset=function(){return(Jt=t._memset=t.asm.fa).apply(null,arguments)},Kt=t.___getTypeName=function(){return(Kt=t.___getTypeName=t.asm.ga).apply(null,arguments)};t.___embind_register_native_and_builtin_types=function(){return(t.___embind_register_native_and_builtin_types=t.asm.ha).apply(null,arguments)};var Xt,Qt=t.stackSave=function(){return(Qt=t.stackSave=t.asm.ia).apply(null,arguments)},Zt=t.stackRestore=function(){return(Zt=t.stackRestore=t.asm.ja).apply(null,arguments)},$t=t._setThrew=function(){return($t=t._setThrew=t.asm.ka).apply(null,arguments)},qt=t._memalign=function(){return(qt=t._memalign=t.asm.la).apply(null,arguments)};function nr(n){this.name="ExitStatus",this.message="Program terminated with exit("+n+")",this.status=n}function tr(){function n(){if(!Xt&&(Xt=!0,t.calledRun=!0,!w)){if(t.noFSInit||jn||(jn=!0,Kn(),t.stdin=t.stdin,t.stdout=t.stdout,t.stderr=t.stderr,t.stdin?Xn("stdin",t.stdin):Bn("/dev/tty","/dev/stdin"),t.stdout?Xn("stdout",null,t.stdout):Bn("/dev/tty","/dev/stdout"),t.stderr?Xn("stderr",null,t.stderr):Bn("/dev/tty1","/dev/stderr"),Vn("/dev/stdin",0),Vn("/dev/stdout",1),Vn("/dev/stderr",1)),rn(H),An=!1,rn(B),r(t),t.onRuntimeInitialized&&t.onRuntimeInitialized(),t.postRun)for("function"==typeof t.postRun&&(t.postRun=[t.postRun]);t.postRun.length;){var n=t.postRun.shift();N.unshift(n)}rn(N)}}if(!(0<G)){if(t.preRun)for("function"==typeof t.preRun&&(t.preRun=[t.preRun]);t.preRun.length;)V();rn(Y),0<G||(t.setStatus?(t.setStatus("Running..."),setTimeout((function(){setTimeout((function(){t.setStatus("")}),1),n()}),1)):n())}}if(t.dynCall_viijii=function(){return(t.dynCall_viijii=t.asm.ma).apply(null,arguments)},t.dynCall_iiij=function(){return(t.dynCall_iiij=t.asm.na).apply(null,arguments)},t.dynCall_viij=function(){return(t.dynCall_viij=t.asm.oa).apply(null,arguments)},t.dynCall_jiji=function(){return(t.dynCall_jiji=t.asm.pa).apply(null,arguments)},t.dynCall_iiiiij=function(){return(t.dynCall_iiiiij=t.asm.qa).apply(null,arguments)},t.dynCall_iiiiijj=function(){return(t.dynCall_iiiiijj=t.asm.ra).apply(null,arguments)},t.dynCall_iiiiiijj=function(){return(t.dynCall_iiiiiijj=t.asm.sa).apply(null,arguments)},L=function n(){Xt||tr(),Xt||(L=n)},t.run=tr,t.preInit)for("function"==typeof t.preInit&&(t.preInit=[t.preInit]);0<t.preInit.length;)t.preInit.pop()();return tr(),n.ready};let t,r,e;function a(t){const{id:a,src:o,options:i}=t.data;return async function(){return void 0===e&&(e=await r.then(n)),e}().then((n=>{const t=function(n,t,r){for(const{path:t,data:e}of r.files)n.vizCreateFile(t,e);n.vizSetY_invert(r.yInvert?1:0),n.vizSetNop(r.nop||0);const e=n.vizRenderFromString(t,r.format,r.engine),a=n.vizLastErrorMessage();if(""!==a)throw new Error(a);return e}(n,o,i);postMessage({id:a,result:t})})).catch((n=>{const t=n instanceof Error?{message:n.message,fileName:n.fileName,lineNumber:n.lineNumber}:{message:n.toString()};postMessage({id:a,error:t})}))}r=Promise.resolve({}),t=n=>r=Promise.resolve(n),addEventListener("message",a);var o=t;export default o;export{a as onmessage};
var n=function(n){var t,r,e;n=n||{},t||(t=void 0!==n?n:{}),t.ready=new Promise((function(n,t){r=n,e=t}));var a,o={};for(a in t)t.hasOwnProperty(a)&&(o[a]=t[a]);var i="./this.program";function u(n,t){throw t}var f,c="";c=0!==(c=self.location.href).indexOf("blob:")?c.substr(0,c.lastIndexOf("/")+1):"",f=function(n){var t=new XMLHttpRequest;return t.open("GET",n,!1),t.responseType="arraybuffer",t.send(null),new Uint8Array(t.response)};var s=t.print||console.log.bind(console),l=t.printErr||console.warn.bind(console);for(a in o)o.hasOwnProperty(a)&&(t[a]=o[a]);o=null,t.thisProgram&&(i=t.thisProgram),t.quit&&(u=t.quit);var h,d=0;t.wasmBinary&&(h=t.wasmBinary);var v=t.noExitRuntime||!0;"object"!=typeof WebAssembly&&J("no native wasm support detected");var p,w=!1,m="undefined"!=typeof TextDecoder?new TextDecoder("utf8"):void 0;function y(n,t,r){var e=t+r;for(r=t;n[r]&&!(r>=e);)++r;if(16<r-t&&n.subarray&&m)return m.decode(n.subarray(t,r));for(e="";t<r;){var a=n[t++];if(128&a){var o=63&n[t++];if(192==(224&a))e+=String.fromCharCode((31&a)<<6|o);else{var i=63&n[t++];65536>(a=224==(240&a)?(15&a)<<12|o<<6|i:(7&a)<<18|o<<12|i<<6|63&n[t++])?e+=String.fromCharCode(a):(a-=65536,e+=String.fromCharCode(55296|a>>10,56320|1023&a))}}else e+=String.fromCharCode(a)}return e}function g(n,t){return n?y(C,n,t):""}function b(n,t,r,e){if(!(0<e))return 0;var a=r;e=r+e-1;for(var o=0;o<n.length;++o){var i=n.charCodeAt(o);if(55296<=i&&57343>=i&&(i=65536+((1023&i)<<10)|1023&n.charCodeAt(++o)),127>=i){if(r>=e)break;t[r++]=i}else{if(2047>=i){if(r+1>=e)break;t[r++]=192|i>>6}else{if(65535>=i){if(r+2>=e)break;t[r++]=224|i>>12}else{if(r+3>=e)break;t[r++]=240|i>>18,t[r++]=128|i>>12&63}t[r++]=128|i>>6&63}t[r++]=128|63&i}}return t[r]=0,r-a}function A(n){for(var t=0,r=0;r<n.length;++r){var e=n.charCodeAt(r);55296<=e&&57343>=e&&(e=65536+((1023&e)<<10)|1023&n.charCodeAt(++r)),127>=e?++t:t=2047>=e?t+2:65535>=e?t+3:t+4}return t}var D,_,C,k,E,F,T,x,M,P="undefined"==typeof TextDecoder&&void 0;function S(n,t){for(var r=n>>1,e=r+t/2;!(r>=e)&&E[r];)++r;if(32<(r<<=1)-n&&P)return P.decode(C.subarray(n,r));for(r="",e=0;!(e>=t/2);++e){var a=k[n+2*e>>1];if(0==a)break;r+=String.fromCharCode(a)}return r}function O(n,t,r){if(void 0===r&&(r=2147483647),2>r)return 0;var e=t;r=(r-=2)<2*n.length?r/2:n.length;for(var a=0;a<r;++a)k[t>>1]=n.charCodeAt(a),t+=2;return k[t>>1]=0,t-e}function W(n){return 2*n.length}function j(n,t){for(var r=0,e="";!(r>=t/4);){var a=F[n+4*r>>2];if(0==a)break;++r,65536<=a?(a-=65536,e+=String.fromCharCode(55296|a>>10,56320|1023&a)):e+=String.fromCharCode(a)}return e}function R(n,t,r){if(void 0===r&&(r=2147483647),4>r)return 0;var e=t;r=e+r-4;for(var a=0;a<n.length;++a){var o=n.charCodeAt(a);if(55296<=o&&57343>=o&&(o=65536+((1023&o)<<10)|1023&n.charCodeAt(++a)),F[t>>2]=o,(t+=4)+4>r)break}return F[t>>2]=0,t-e}function U(n){for(var t=0,r=0;r<n.length;++r){var e=n.charCodeAt(r);55296<=e&&57343>=e&&++r,t+=4}return t}function z(){var n=p.buffer;D=n,t.HEAP8=_=new Int8Array(n),t.HEAP16=k=new Int16Array(n),t.HEAP32=F=new Int32Array(n),t.HEAPU8=C=new Uint8Array(n),t.HEAPU16=E=new Uint16Array(n),t.HEAPU32=T=new Uint32Array(n),t.HEAPF32=x=new Float32Array(n),t.HEAPF64=M=new Float64Array(n)}var I,Y=[],H=[],B=[],N=[];function V(){var n=t.preRun.shift();Y.unshift(n)}H.push({xb:function(){Nt()}});var G=0,L=null;function J(n){throw t.onAbort&&t.onAbort(n),l(n),w=!0,n=new WebAssembly.RuntimeError("abort("+n+"). Build with -s ASSERTIONS=1 for more info."),e(n),n}function K(){var n=X;return String.prototype.startsWith?n.startsWith("data:application/octet-stream;base64,"):0===n.indexOf("data:application/octet-stream;base64,")}t.preloadedImages={},t.preloadedAudios={};var X="render.wasm";if(!K()){var Q=X;X=t.locateFile?t.locateFile(Q,c):c+Q}function Z(){var n=X;try{if(n==X&&h)return new Uint8Array(h);if(f)return f(n);throw"both async and sync fetching of the wasm failed"}catch(n){J(n)}}var $,q,nn,tn={171540:function(n,t){n=g(n),t=g(t);var r="/";r="string"==typeof r?r:En(r);for(var e=un(n).split("/").reverse();e.length;){var a=e.pop();if(a){r=on(r+"/"+a);try{Yn(r)}catch(n){}}}n=function(){return on(Array.prototype.slice.call(arguments,0).join("/"))}("/",n);var o=o||{};if(o.flags=o.flags||577,n=Vn(n,o.flags,o.mode),"string"==typeof t)Jn(n,e=new Uint8Array(A(t)+1),0,t=b(t,e,0,e.length),o.ub);else{if(!ArrayBuffer.isView(t))throw Error("Unsupported data type");Jn(n,t,0,t.byteLength,o.ub)}Gn(n)}};function rn(n){for(;0<n.length;){var r=n.shift();if("function"==typeof r)r(t);else{var e=r.xb;"number"==typeof e?void 0===r.bb?I.get(e)():I.get(e)(r.bb):e(void 0===r.bb?null:r.bb)}}}function en(n){this.Ja=n-16,this.Pb=function(n){F[this.Ja+8>>2]=n},this.Mb=function(n){F[this.Ja+0>>2]=n},this.Nb=function(){F[this.Ja+4>>2]=0},this.Lb=function(){_[this.Ja+12>>0]=0},this.Ob=function(){_[this.Ja+13>>0]=0},this.Ab=function(n,t){this.Pb(n),this.Mb(t),this.Nb(),this.Lb(),this.Ob()}}function an(n,t){for(var r=0,e=n.length-1;0<=e;e--){var a=n[e];"."===a?n.splice(e,1):".."===a?(n.splice(e,1),r++):r&&(n.splice(e,1),r--)}if(t)for(;r;r--)n.unshift("..");return n}function on(n){var t="/"===n.charAt(0),r="/"===n.substr(-1);return(n=an(n.split("/").filter((function(n){return!!n})),!t).join("/"))||t||(n="."),n&&r&&(n+="/"),(t?"/":"")+n}function un(n){var t=/^(\/?|)([\s\S]*?)((?:\.{1,2}|[^\/]+?|)(\.[^.\/]*|))(?:[\/]*)$/.exec(n).slice(1);return n=t[0],t=t[1],n||t?(t&&(t=t.substr(0,t.length-1)),n+t):"."}function fn(n){if("/"===n)return"/";var t=(n=(n=on(n)).replace(/\/$/,"")).lastIndexOf("/");return-1===t?n:n.substr(t+1)}function cn(){for(var n="",t=!1,r=arguments.length-1;-1<=r&&!t;r--){if("string"!=typeof(t=0<=r?arguments[r]:"/"))throw new TypeError("Arguments to path.resolve must be strings");if(!t)return"";n=t+"/"+n,t="/"===t.charAt(0)}return(t?"/":"")+(n=an(n.split("/").filter((function(n){return!!n})),!t).join("/"))||"."}nn=function(){return performance.now()};var sn=[];function ln(n,t){sn[n]={input:[],za:[],La:t},Un(n,hn)}var hn={open:function(n){var t=sn[n.node.Pa];if(!t)throw new _n(43);n.wa=t,n.seekable=!1},close:function(n){n.wa.La.flush(n.wa)},flush:function(n){n.wa.La.flush(n.wa)},read:function(n,t,r,e){if(!n.wa||!n.wa.La.lb)throw new _n(60);for(var a=0,o=0;o<e;o++){try{var i=n.wa.La.lb(n.wa)}catch(n){throw new _n(29)}if(void 0===i&&0===a)throw new _n(6);if(null==i)break;a++,t[r+o]=i}return a&&(n.node.timestamp=Date.now()),a},write:function(n,t,r,e){if(!n.wa||!n.wa.La.fb)throw new _n(60);try{for(var a=0;a<e;a++)n.wa.La.fb(n.wa,t[r+a])}catch(n){throw new _n(29)}return e&&(n.node.timestamp=Date.now()),a}},dn={lb:function(n){if(!n.input.length){var t=null;if("undefined"!=typeof window&&"function"==typeof window.prompt?null!==(t=window.prompt("Input: "))&&(t+="\n"):"function"==typeof readline&&null!==(t=readline())&&(t+="\n"),!t)return null;n.input=Ht(t,!0)}return n.input.shift()},fb:function(n,t){null===t||10===t?(s(y(n.za,0)),n.za=[]):0!=t&&n.za.push(t)},flush:function(n){n.za&&0<n.za.length&&(s(y(n.za,0)),n.za=[])}},vn={fb:function(n,t){null===t||10===t?(l(y(n.za,0)),n.za=[]):0!=t&&n.za.push(t)},flush:function(n){n.za&&0<n.za.length&&(l(y(n.za,0)),n.za=[])}},pn={Da:null,Ga:function(){return pn.createNode(null,"/",16895,0)},createNode:function(n,t,r,e){if(24576==(61440&r)||4096==(61440&r))throw new _n(63);return pn.Da||(pn.Da={dir:{node:{Ca:pn.ta.Ca,Fa:pn.ta.Fa,Na:pn.ta.Na,Ta:pn.ta.Ta,ob:pn.ta.ob,$a:pn.ta.$a,pb:pn.ta.pb,nb:pn.ta.nb,Wa:pn.ta.Wa},stream:{Ia:pn.ua.Ia}},file:{node:{Ca:pn.ta.Ca,Fa:pn.ta.Fa},stream:{Ia:pn.ua.Ia,read:pn.ua.read,write:pn.ua.write,hb:pn.ua.hb,Ua:pn.ua.Ua,Va:pn.ua.Va}},link:{node:{Ca:pn.ta.Ca,Fa:pn.ta.Fa,Qa:pn.ta.Qa},stream:{}},ib:{node:{Ca:pn.ta.Ca,Fa:pn.ta.Fa},stream:Rn}}),16384==(61440&(r=xn(n,t,r,e)).mode)?(r.ta=pn.Da.dir.node,r.ua=pn.Da.dir.stream,r.va={}):32768==(61440&r.mode)?(r.ta=pn.Da.file.node,r.ua=pn.Da.file.stream,r.xa=0,r.va=null):40960==(61440&r.mode)?(r.ta=pn.Da.link.node,r.ua=pn.Da.link.stream):8192==(61440&r.mode)&&(r.ta=pn.Da.ib.node,r.ua=pn.Da.ib.stream),r.timestamp=Date.now(),n&&(n.va[t]=r,n.timestamp=r.timestamp),r},Vb:function(n){return n.va?n.va.subarray?n.va.subarray(0,n.xa):new Uint8Array(n.va):new Uint8Array(0)},jb:function(n,t){var r=n.va?n.va.length:0;r>=t||(t=Math.max(t,r*(1048576>r?2:1.125)>>>0),0!=r&&(t=Math.max(t,256)),r=n.va,n.va=new Uint8Array(t),0<n.xa&&n.va.set(r.subarray(0,n.xa),0))},Jb:function(n,t){if(n.xa!=t)if(0==t)n.va=null,n.xa=0;else{var r=n.va;n.va=new Uint8Array(t),r&&n.va.set(r.subarray(0,Math.min(t,n.xa))),n.xa=t}},ta:{Ca:function(n){var t={};return t.wb=8192==(61440&n.mode)?n.id:1,t.eb=n.id,t.mode=n.mode,t.Gb=1,t.uid=0,t.yb=0,t.Pa=n.Pa,16384==(61440&n.mode)?t.size=4096:32768==(61440&n.mode)?t.size=n.xa:40960==(61440&n.mode)?t.size=n.link.length:t.size=0,t.rb=new Date(n.timestamp),t.Fb=new Date(n.timestamp),t.vb=new Date(n.timestamp),t.sb=4096,t.tb=Math.ceil(t.size/t.sb),t},Fa:function(n,t){void 0!==t.mode&&(n.mode=t.mode),void 0!==t.timestamp&&(n.timestamp=t.timestamp),void 0!==t.size&&pn.Jb(n,t.size)},Na:function(){throw Cn[44]},Ta:function(n,t,r,e){return pn.createNode(n,t,r,e)},ob:function(n,t,r){if(16384==(61440&n.mode)){try{var e=Tn(t,r)}catch(n){}if(e)for(var a in e.va)throw new _n(55)}delete n.parent.va[n.name],n.parent.timestamp=Date.now(),n.name=r,t.va[r]=n,t.timestamp=n.parent.timestamp,n.parent=t},$a:function(n,t){delete n.va[t],n.timestamp=Date.now()},pb:function(n,t){var r,e=Tn(n,t);for(r in e.va)throw new _n(55);delete n.va[t],n.timestamp=Date.now()},nb:function(n){var t,r=[".",".."];for(t in n.va)n.va.hasOwnProperty(t)&&r.push(t);return r},Wa:function(n,t,r){return(n=pn.createNode(n,t,41471,0)).link=r,n},Qa:function(n){if(40960!=(61440&n.mode))throw new _n(28);return n.link}},ua:{read:function(n,t,r,e,a){var o=n.node.va;if(a>=n.node.xa)return 0;if(8<(n=Math.min(n.node.xa-a,e))&&o.subarray)t.set(o.subarray(a,a+n),r);else for(e=0;e<n;e++)t[r+e]=o[a+e];return n},write:function(n,t,r,e,a,o){if(t.buffer===_.buffer&&(o=!1),!e)return 0;if((n=n.node).timestamp=Date.now(),t.subarray&&(!n.va||n.va.subarray)){if(o)return n.va=t.subarray(r,r+e),n.xa=e;if(0===n.xa&&0===a)return n.va=t.slice(r,r+e),n.xa=e;if(a+e<=n.xa)return n.va.set(t.subarray(r,r+e),a),e}if(pn.jb(n,a+e),n.va.subarray&&t.subarray)n.va.set(t.subarray(r,r+e),a);else for(o=0;o<e;o++)n.va[a+o]=t[r+o];return n.xa=Math.max(n.xa,a+e),e},Ia:function(n,t,r){if(1===r?t+=n.position:2===r&&32768==(61440&n.node.mode)&&(t+=n.node.xa),0>t)throw new _n(28);return t},hb:function(n,t,r){pn.jb(n.node,t+r),n.node.xa=Math.max(n.node.xa,t+r)},Ua:function(n,t,r,e,a,o){if(0!==t)throw new _n(28);if(32768!=(61440&n.node.mode))throw new _n(43);if(n=n.node.va,2&o||n.buffer!==D){for((0<e||e+r<n.length)&&(n=n.subarray?n.subarray(e,e+r):Array.prototype.slice.call(n,e,e+r)),e=!0,o=16384*Math.ceil(r/16384),t=Vt(o);r<o;)_[t+r++]=0;if(!(r=t))throw new _n(48);_.set(n,r)}else e=!1,r=n.byteOffset;return{Ja:r,ab:e}},Va:function(n,t,r,e,a){if(32768!=(61440&n.node.mode))throw new _n(43);return 2&a||pn.ua.write(n,t,0,e,r,!1),0}}},wn=null,mn={},yn=[],gn=1,bn=null,An=!0,Dn={},_n=null,Cn={};function kn(n,t){if(t=t||{},!(n=cn("/",n)))return{path:"",node:null};var r,e={kb:!0,gb:0};for(r in e)void 0===t[r]&&(t[r]=e[r]);if(8<t.gb)throw new _n(32);n=an(n.split("/").filter((function(n){return!!n})),!1);var a=wn;for(e="/",r=0;r<n.length;r++){var o=r===n.length-1;if(o&&t.parent)break;if(a=Tn(a,n[r]),e=on(e+"/"+n[r]),a.Oa&&(!o||o&&t.kb)&&(a=a.Oa.root),!o||t.Sa)for(o=0;40960==(61440&a.mode);)if(a=Nn(e),a=kn(e=cn(un(e),a),{gb:t.gb}).node,40<o++)throw new _n(32)}return{path:e,node:a}}function En(n){for(var t;;){if(n===n.parent)return n=n.Ga.mb,t?"/"!==n[n.length-1]?n+"/"+t:n+t:n;t=t?n.name+"/"+t:n.name,n=n.parent}}function Fn(n,t){for(var r=0,e=0;e<t.length;e++)r=(r<<5)-r+t.charCodeAt(e)|0;return(n+r>>>0)%bn.length}function Tn(n,t){var r;if(r=(r=Sn(n,"x"))?r:n.ta.Na?0:2)throw new _n(r,n);for(r=bn[Fn(n.id,t)];r;r=r.Ka){var e=r.name;if(r.parent.id===n.id&&e===t)return r}return n.ta.Na(n,t)}function xn(n,t,r,e){return t=Fn((n=new zt(n,t,r,e)).parent.id,n.name),n.Ka=bn[t],bn[t]=n}var Mn={r:0,"r+":2,w:577,"w+":578,a:1089,"a+":1090};function Pn(n){var t=["r","w","rw"][3&n];return 512&n&&(t+="w"),t}function Sn(n,t){return An||(-1===t.indexOf("r")||292&n.mode)&&(-1===t.indexOf("w")||146&n.mode)&&(-1===t.indexOf("x")||73&n.mode)?0:2}function On(n,t){try{return Tn(n,t),20}catch(n){}return Sn(n,"wx")}function Wn(n,t){Zn||((Zn=function(){}).prototype={});var r,e=new Zn;for(r in n)e[r]=n[r];return n=e,t=function(n){for(n=n||0;n<=4096;n++)if(!yn[n])return n;throw new _n(33)}(t),n.Ba=t,yn[t]=n}var jn,Rn={open:function(n){n.ua=mn[n.node.Pa].ua,n.ua.open&&n.ua.open(n)},Ia:function(){throw new _n(70)}};function Un(n,t){mn[n]={ua:t}}function zn(n,t){var r="/"===t,e=!t;if(r&&wn)throw new _n(10);if(!r&&!e){var a=kn(t,{kb:!1});if(t=a.path,(a=a.node).Oa)throw new _n(10);if(16384!=(61440&a.mode))throw new _n(54)}t={type:n,Yb:{},mb:t,Eb:[]},(n=n.Ga(t)).Ga=t,t.root=n,r?wn=n:a&&(a.Oa=t,a.Ga&&a.Ga.Eb.push(t))}function In(n,t,r){var e=kn(n,{parent:!0}).node;if(!(n=fn(n))||"."===n||".."===n)throw new _n(28);var a=On(e,n);if(a)throw new _n(a);if(!e.ta.Ta)throw new _n(63);return e.ta.Ta(e,n,t,r)}function Yn(n){return In(n,16895,0)}function Hn(n,t,r){void 0===r&&(r=t,t=438),In(n,8192|t,r)}function Bn(n,t){if(!cn(n))throw new _n(44);var r=kn(t,{parent:!0}).node;if(!r)throw new _n(44);var e=On(r,t=fn(t));if(e)throw new _n(e);if(!r.ta.Wa)throw new _n(63);r.ta.Wa(r,t,n)}function Nn(n){if(!(n=kn(n).node))throw new _n(44);if(!n.ta.Qa)throw new _n(28);return cn(En(n.parent),n.ta.Qa(n))}function Vn(n,r,e,a){if(""===n)throw new _n(44);if("string"==typeof r){var o=Mn[r];if(void 0===o)throw Error("Unknown file open mode: "+r);r=o}if(e=64&r?4095&(void 0===e?438:e)|32768:0,"object"==typeof n)var i=n;else{n=on(n);try{i=kn(n,{Sa:!(131072&r)}).node}catch(n){}}if(o=!1,64&r)if(i){if(128&r)throw new _n(20)}else i=In(n,e,0),o=!0;if(!i)throw new _n(44);if(8192==(61440&i.mode)&&(r&=-513),65536&r&&16384!=(61440&i.mode))throw new _n(54);if(!o&&(e=i?40960==(61440&i.mode)?32:16384==(61440&i.mode)&&("r"!==Pn(r)||512&r)?31:Sn(i,Pn(r)):44))throw new _n(e);if(512&r){var u;if(!(u="string"==typeof(e=i)?kn(e,{Sa:!0}).node:e).ta.Fa)throw new _n(63);if(16384==(61440&u.mode))throw new _n(31);if(32768!=(61440&u.mode))throw new _n(28);if(e=Sn(u,"w"))throw new _n(e);u.ta.Fa(u,{size:0,timestamp:Date.now()})}r&=-131713,(a=Wn({node:i,path:En(i),flags:r,seekable:!0,position:0,ua:i.ua,Ub:[],error:!1},a)).ua.open&&a.ua.open(a),!t.logReadFiles||1&r||($n||($n={}),n in $n||($n[n]=1,l("FS.trackingDelegate error on read file: "+n)));try{Dn.onOpenFile&&(i=0,1!=(2097155&r)&&(i|=1),0!=(2097155&r)&&(i|=2),Dn.onOpenFile(n,i))}catch(t){l("FS.trackingDelegate['onOpenFile']('"+n+"', flags) threw an exception: "+t.message)}return a}function Gn(n){if(null===n.Ba)throw new _n(8);n.cb&&(n.cb=null);try{n.ua.close&&n.ua.close(n)}catch(n){throw n}finally{yn[n.Ba]=null}n.Ba=null}function Ln(n,t,r){if(null===n.Ba)throw new _n(8);if(!n.seekable||!n.ua.Ia)throw new _n(70);if(0!=r&&1!=r&&2!=r)throw new _n(28);n.position=n.ua.Ia(n,t,r),n.Ub=[]}function Jn(n,t,r,e,a){var o=void 0;if(0>e||0>o)throw new _n(28);if(null===n.Ba)throw new _n(8);if(0==(2097155&n.flags))throw new _n(8);if(16384==(61440&n.node.mode))throw new _n(31);if(!n.ua.write)throw new _n(28);n.seekable&&1024&n.flags&&Ln(n,0,2);var i=void 0!==o;if(i){if(!n.seekable)throw new _n(70)}else o=n.position;t=n.ua.write(n,t,r,e,o,a),i||(n.position+=t);try{n.path&&Dn.onWriteToFile&&Dn.onWriteToFile(n.path)}catch(t){l("FS.trackingDelegate['onWriteToFile']('"+n.path+"') threw an exception: "+t.message)}return t}function Kn(){_n||((_n=function(n,t){this.node=t,this.Kb=function(n){this.ya=n},this.Kb(n),this.message="FS error"}).prototype=Error(),_n.prototype.constructor=_n,[44].forEach((function(n){Cn[n]=new _n(n),Cn[n].stack="<generic error, no stack>"})))}function Xn(n,t,r){n=on("/dev/"+n);var e=function(n,t){var r=0;return n&&(r|=365),t&&(r|=146),r}(!!t,!!r);Qn||(Qn=64);var a=Qn++<<8|0;Un(a,{open:function(n){n.seekable=!1},close:function(){r&&r.buffer&&r.buffer.length&&r(10)},read:function(n,r,e,a){for(var o=0,i=0;i<a;i++){try{var u=t()}catch(n){throw new _n(29)}if(void 0===u&&0===o)throw new _n(6);if(null==u)break;o++,r[e+i]=u}return o&&(n.node.timestamp=Date.now()),o},write:function(n,t,e,a){for(var o=0;o<a;o++)try{r(t[e+o])}catch(n){throw new _n(29)}return a&&(n.node.timestamp=Date.now()),o}}),Hn(n,e,a)}var Qn,Zn,$n,qn={},nt={};function tt(n,t){try{var r=kn(n,{Sa:!0}).node;if(!r)throw new _n(44);if(!r.ta.Ca)throw new _n(63);var e=r.ta.Ca(r)}catch(t){if(t&&t.node&&on(n)!==on(En(t.node)))return-54;throw t}return F[t>>2]=e.wb,F[t+4>>2]=0,F[t+8>>2]=e.eb,F[t+12>>2]=e.mode,F[t+16>>2]=e.Gb,F[t+20>>2]=e.uid,F[t+24>>2]=e.yb,F[t+28>>2]=e.Pa,F[t+32>>2]=0,q=[e.size>>>0,($=e.size,1<=+Math.abs($)?0<$?(0|Math.min(+Math.floor($/4294967296),4294967295))>>>0:~~+Math.ceil(($-+(~~$>>>0))/4294967296)>>>0:0)],F[t+40>>2]=q[0],F[t+44>>2]=q[1],F[t+48>>2]=4096,F[t+52>>2]=e.tb,F[t+56>>2]=e.rb.getTime()/1e3|0,F[t+60>>2]=0,F[t+64>>2]=e.Fb.getTime()/1e3|0,F[t+68>>2]=0,F[t+72>>2]=e.vb.getTime()/1e3|0,F[t+76>>2]=0,q=[e.eb>>>0,($=e.eb,1<=+Math.abs($)?0<$?(0|Math.min(+Math.floor($/4294967296),4294967295))>>>0:~~+Math.ceil(($-+(~~$>>>0))/4294967296)>>>0:0)],F[t+80>>2]=q[0],F[t+84>>2]=q[1],0}var rt=void 0;function et(){return F[(rt+=4)-4>>2]}function at(n){if(!(n=yn[n]))throw new _n(8);return n}function ot(n){switch(n){case 1:return 0;case 2:return 1;case 4:return 2;case 8:return 3;default:throw new TypeError("Unknown type size: "+n)}}var it=void 0;function ut(n){for(var t="";C[n];)t+=it[C[n++]];return t}var ft={},ct={},st={};function lt(n){if(void 0===n)return"_unknown";var t=(n=n.replace(/[^a-zA-Z0-9_]/g,"$")).charCodeAt(0);return 48<=t&&57>=t?"_"+n:n}function ht(n,t){return n=lt(n),new Function("body","return function "+n+'() {\n "use strict"; return body.apply(this, arguments);\n};\n')(t)}function dt(n){var t=Error,r=ht(n,(function(t){this.name=n,this.message=t,void 0!==(t=Error(t).stack)&&(this.stack=this.toString()+"\n"+t.replace(/^Error(:[^\n]*)?\n/,""))}));return r.prototype=Object.create(t.prototype),r.prototype.constructor=r,r.prototype.toString=function(){return void 0===this.message?this.name:this.name+": "+this.message},r}var vt=void 0;function pt(n){throw new vt(n)}var wt=void 0;function mt(n,t,r){if(r=r||{},!("argPackAdvance"in t))throw new TypeError("registerType registeredInstance requires argPackAdvance");var e=t.name;if(n||pt('type "'+e+'" must have a positive integer typeid pointer'),ct.hasOwnProperty(n)){if(r.zb)return;pt("Cannot register type '"+e+"' twice")}ct[n]=t,delete st[n],ft.hasOwnProperty(n)&&(t=ft[n],delete ft[n],t.forEach((function(n){n()})))}var yt=[],gt=[{},{value:void 0},{value:null},{value:!0},{value:!1}];function bt(n){return this.fromWireType(T[n>>2])}function At(n){if(null===n)return"null";var t=typeof n;return"object"===t||"array"===t||"function"===t?n.toString():""+n}function Dt(n,t){switch(t){case 2:return function(n){return this.fromWireType(x[n>>2])};case 3:return function(n){return this.fromWireType(M[n>>3])};default:throw new TypeError("Unknown float type: "+n)}}function _t(n){for(;n.length;){var t=n.pop();n.pop()(t)}}function Ct(n,r,e){t.hasOwnProperty(n)?((void 0===e||void 0!==t[n].Ea&&void 0!==t[n].Ea[e])&&pt("Cannot register public name '"+n+"' twice"),function(n,r){var e=t;if(void 0===e[n].Ea){var a=e[n];e[n]=function(){return e[n].Ea.hasOwnProperty(arguments.length)||pt("Function '"+r+"' called with an invalid number of arguments ("+arguments.length+") - expects one of ("+e[n].Ea+")!"),e[n].Ea[arguments.length].apply(this,arguments)},e[n].Ea=[],e[n].Ea[a.qb]=a}}(n,n),t.hasOwnProperty(e)&&pt("Cannot register multiple overloads of a function with the same number of arguments ("+e+")!"),t[n].Ea[e]=r):(t[n]=r,void 0!==e&&(t[n].Xb=e))}function kt(n,r){var e=-1!=(n=ut(n)).indexOf("j")?function(n,r){var e=[];return function(){e.length=arguments.length;for(var a=0;a<arguments.length;a++)e[a]=arguments[a];return-1!=n.indexOf("j")?(a=t["dynCall_"+n],a=e&&e.length?a.apply(null,[r].concat(e)):a.call(null,r)):a=I.get(r).apply(null,e),a}}(n,r):I.get(r);return"function"!=typeof e&&pt("unknown function pointer with signature "+n+": "+r),e}var Et=void 0;function Ft(n){var t=ut(n=Kt(n));return Gt(n),t}function Tt(n,t,r){switch(t){case 0:return r?function(n){return _[n]}:function(n){return C[n]};case 1:return r?function(n){return k[n>>1]}:function(n){return E[n>>1]};case 2:return r?function(n){return F[n>>2]}:function(n){return T[n>>2]};default:throw new TypeError("Unknown integer type: "+n)}}var xt,Mt={};function Pt(){if(!xt){var n,t={USER:"web_user",LOGNAME:"web_user",PATH:"/",PWD:"/",HOME:"/home/web_user",LANG:("object"==typeof navigator&&navigator.languages&&navigator.languages[0]||"C").replace("-","_")+".UTF-8",_:i||"./this.program"};for(n in Mt)t[n]=Mt[n];var r=[];for(n in t)r.push(n+"="+t[n]);xt=r}return xt}function St(n){return 0==n%4&&(0!=n%100||0==n%400)}function Ot(n,t){for(var r=0,e=0;e<=t;r+=n[e++]);return r}var Wt=[31,29,31,30,31,30,31,31,30,31,30,31],jt=[31,28,31,30,31,30,31,31,30,31,30,31];function Rt(n,t){for(n=new Date(n.getTime());0<t;){var r=n.getMonth(),e=(St(n.getFullYear())?Wt:jt)[r];if(!(t>e-n.getDate())){n.setDate(n.getDate()+t);break}t-=e-n.getDate()+1,n.setDate(1),11>r?n.setMonth(r+1):(n.setMonth(0),n.setFullYear(n.getFullYear()+1))}return n}var Ut=[];function zt(n,t,r,e){n||(n=this),this.parent=n,this.Ga=n.Ga,this.Oa=null,this.id=gn++,this.name=t,this.mode=r,this.ta={},this.ua={},this.Pa=e}Object.defineProperties(zt.prototype,{read:{get:function(){return 365==(365&this.mode)},set:function(n){n?this.mode|=365:this.mode&=-366}},write:{get:function(){return 146==(146&this.mode)},set:function(n){n?this.mode|=146:this.mode&=-147}}}),Kn(),bn=Array(4096),zn(pn,"/"),Yn("/tmp"),Yn("/home"),Yn("/home/web_user"),function(){Yn("/dev"),Un(259,{read:function(){return 0},write:function(n,t,r,e){return e}}),Hn("/dev/null",259),ln(1280,dn),ln(1536,vn),Hn("/dev/tty",1280),Hn("/dev/tty1",1536);var n=function(){if("object"==typeof crypto&&"function"==typeof crypto.getRandomValues){var n=new Uint8Array(1);return function(){return crypto.getRandomValues(n),n[0]}}return function(){J("randomDevice")}}();Xn("random",n),Xn("urandom",n),Yn("/dev/shm"),Yn("/dev/shm/tmp")}(),function(){Yn("/proc");var n=Yn("/proc/self");Yn("/proc/self/fd"),zn({Ga:function(){var t=xn(n,"fd",16895,73);return t.ta={Na:function(n,t){var r=yn[+t];if(!r)throw new _n(8);return(n={parent:null,Ga:{mb:"fake"},ta:{Qa:function(){return r.path}}}).parent=n}},t}},"/proc/self/fd")}();for(var It=Array(256),Yt=0;256>Yt;++Yt)It[Yt]=String.fromCharCode(Yt);function Ht(n,t){var r=Array(A(n)+1);return n=b(n,r,0,r.length),t&&(r.length=n),r}it=It,vt=t.BindingError=dt("BindingError"),wt=t.InternalError=dt("InternalError"),t.count_emval_handles=function(){for(var n=0,t=5;t<gt.length;++t)void 0!==gt[t]&&++n;return n},t.get_first_emval=function(){for(var n=5;n<gt.length;++n)if(void 0!==gt[n])return gt[n];return null},Et=t.UnboundTypeError=dt("UnboundTypeError");var Bt={a:function(n,t,r,e){J("Assertion failed: "+g(n)+", at: "+[t?g(t):"unknown filename",r,e?g(e):"unknown function"])},R:function(n,t){n:{if(0===n)n=Date.now();else{if(1!==n&&4!==n){F[Lt()>>2]=28,t=-1;break n}n=nn()}F[t>>2]=n/1e3|0,F[t+4>>2]=n%1e3*1e6|0,t=0}return t},k:function(n){return Vt(n+16)+16},j:function(n,t,r){throw new en(n).Ab(t,r),n},S:function(n,t){try{var r;if(n=g(n),-8&t)var e=-28;else(r=kn(n,{Sa:!0}).node)?(n="",4&t&&(n+="r"),2&t&&(n+="w"),1&t&&(n+="x"),e=n&&Sn(r,n)?-2:0):e=-44;return e}catch(n){return void 0!==qn&&n instanceof _n||J(n),-n.ya}},x:function(n,t,r){rt=r;try{var e=at(n);switch(t){case 0:var a=et();return 0>a?-28:Vn(e.path,e.flags,0,a).Ba;case 1:case 2:return 0;case 3:return e.flags;case 4:return a=et(),e.flags|=a,0;case 12:return a=et(),k[a+0>>1]=2,0;case 13:case 14:return 0;case 16:case 8:return-28;case 9:return F[Lt()>>2]=28,-1;default:return-28}}catch(n){return void 0!==qn&&n instanceof _n||J(n),-n.ya}},O:function(n,t){try{return tt(at(n).path,t)}catch(n){return void 0!==qn&&n instanceof _n||J(n),-n.ya}},r:function(){return 42},P:function(n,t,r){rt=r;try{var e=at(n);switch(t){case 21509:case 21505:return e.wa?0:-59;case 21510:case 21511:case 21512:case 21506:case 21507:case 21508:return e.wa?0:-59;case 21519:if(!e.wa)return-59;var a=et();return F[a>>2]=0;case 21520:return e.wa?-28:-59;case 21531:if(n=a=et(),!e.ua.Bb)throw new _n(59);return e.ua.Bb(e,t,n);case 21523:case 21524:return e.wa?0:-59;default:J("bad ioctl syscall "+t)}}catch(n){return void 0!==qn&&n instanceof _n||J(n),-n.ya}},M:function(n,t,r,e,a,o){try{n:{o<<=12;var i=!1;if(0!=(16&e)&&0!=n%16384)var u=-28;else{if(0!=(32&e)){var f=qt(16384,t);if(!f){u=-48;break n}Jt(f,0,t),i=!0}else{var c=yn[a];if(!c){u=-8;break n}var s=o;if(0!=(2&r)&&0==(2&e)&&2!=(2097155&c.flags))throw new _n(2);if(1==(2097155&c.flags))throw new _n(2);if(!c.ua.Ua)throw new _n(43);var l=c.ua.Ua(c,n,t,s,r,e);f=l.Ja,i=l.ab}nt[f]={Db:f,Cb:t,ab:i,Ba:a,Hb:r,flags:e,offset:o},u=f}}return u}catch(n){return void 0!==qn&&n instanceof _n||J(n),-n.ya}},L:function(n,t){try{if(-1==(0|n)||0===t)var r=-28;else{var e=nt[n];if(e&&t===e.Cb){var a=yn[e.Ba];a&&2&e.Hb&&a&&a.ua.Va&&a.ua.Va(a,C.slice(n,n+t),e.offset,t,e.flags),nt[n]=null,e.ab&&Gt(e.Db)}r=0}return r}catch(n){return void 0!==qn&&n instanceof _n||J(n),-n.ya}},q:function(n,t,r){rt=r;try{return Vn(g(n),t,r?et():0).Ba}catch(n){return void 0!==qn&&n instanceof _n||J(n),-n.ya}},N:function(n,t){try{return tt(n=g(n),t)}catch(n){return void 0!==qn&&n instanceof _n||J(n),-n.ya}},Q:function(n){try{var t=kn(n=g(n),{parent:!0}).node,r=fn(n),e=Tn(t,r);n:{try{var a=Tn(t,r)}catch(n){var o=n.ya;break n}var i=Sn(t,"wx");o=i||(16384==(61440&a.mode)?31:0)}if(o)throw new _n(o);if(!t.ta.$a)throw new _n(63);if(e.Oa)throw new _n(10);try{Dn.willDeletePath&&Dn.willDeletePath(n)}catch(t){l("FS.trackingDelegate['willDeletePath']('"+n+"') threw an exception: "+t.message)}t.ta.$a(t,r);var u=Fn(e.parent.id,e.name);if(bn[u]===e)bn[u]=e.Ka;else for(var f=bn[u];f;){if(f.Ka===e){f.Ka=e.Ka;break}f=f.Ka}try{Dn.onDeletePath&&Dn.onDeletePath(n)}catch(t){l("FS.trackingDelegate['onDeletePath']('"+n+"') threw an exception: "+t.message)}return 0}catch(n){return void 0!==qn&&n instanceof _n||J(n),-n.ya}},U:function(n,t,r,e,a){var o=ot(r);mt(n,{name:t=ut(t),fromWireType:function(n){return!!n},toWireType:function(n,t){return t?e:a},argPackAdvance:8,readValueFromPointer:function(n){if(1===r)var e=_;else if(2===r)e=k;else{if(4!==r)throw new TypeError("Unknown boolean type size: "+t);e=F}return this.fromWireType(e[n>>o])},Ha:null})},T:function(n,t){mt(n,{name:t=ut(t),fromWireType:function(n){var t=gt[n].value;return 4<n&&0==--gt[n].Ib&&(gt[n]=void 0,yt.push(n)),t},toWireType:function(n,t){return function(n){switch(n){case void 0:return 1;case null:return 2;case!0:return 3;case!1:return 4;default:var t=yt.length?yt.pop():gt.length;return gt[t]={Ib:1,value:n},t}}(t)},argPackAdvance:8,readValueFromPointer:bt,Ha:null})},A:function(n,t,r){r=ot(r),mt(n,{name:t=ut(t),fromWireType:function(n){return n},toWireType:function(n,t){if("number"!=typeof t&&"boolean"!=typeof t)throw new TypeError('Cannot convert "'+At(t)+'" to '+this.name);return t},argPackAdvance:8,readValueFromPointer:Dt(t,r),Ha:null})},o:function(n,r,e,a,o,i){var u=function(n,t){for(var r=[],e=0;e<n;e++)r.push(F[(t>>2)+e]);return r}(r,e);n=ut(n),o=kt(a,o),Ct(n,(function(){!function(n,t){var r=[],e={};throw t.forEach((function n(t){e[t]||ct[t]||(st[t]?st[t].forEach(n):(r.push(t),e[t]=!0))})),new Et(n+": "+r.map(Ft).join([", "]))}("Cannot call "+n+" due to unbound types",u)}),r-1),function(n,t){function r(n){if((n=t(n)).length!==e.length)throw new wt("Mismatched type converter count");for(var r=0;r<e.length;++r)mt(e[r],n[r])}var e=[];e.forEach((function(t){st[t]=n}));var a=Array(n.length),o=[],i=0;n.forEach((function(n,t){ct.hasOwnProperty(n)?a[t]=ct[n]:(o.push(n),ft.hasOwnProperty(n)||(ft[n]=[]),ft[n].push((function(){a[t]=ct[n],++i===o.length&&r(a)})))})),0===o.length&&r(a)}(u,(function(e){var a=n,u=n;e=[e[0],null].concat(e.slice(1));var f=o,c=e.length;2>c&&pt("argTypes array size mismatch! Must at least get return value and 'this' types!");for(var s=null!==e[1]&&!1,l=!1,h=1;h<e.length;++h)if(null!==e[h]&&void 0===e[h].Ha){l=!0;break}var d="void"!==e[0].name,v="",p="";for(h=0;h<c-2;++h)v+=(0!==h?", ":"")+"arg"+h,p+=(0!==h?", ":"")+"arg"+h+"Wired";u="return function "+lt(u)+"("+v+") {\nif (arguments.length !== "+(c-2)+") {\nthrowBindingError('function "+u+" called with ' + arguments.length + ' arguments, expected "+(c-2)+" args!');\n}\n",l&&(u+="var destructors = [];\n");var w=l?"destructors":"null";for(v="throwBindingError invoker fn runDestructors retType classParam".split(" "),f=[pt,f,i,_t,e[0],e[1]],s&&(u+="var thisWired = classParam.toWireType("+w+", this);\n"),h=0;h<c-2;++h)u+="var arg"+h+"Wired = argType"+h+".toWireType("+w+", arg"+h+"); // "+e[h+2].name+"\n",v.push("argType"+h),f.push(e[h+2]);if(s&&(p="thisWired"+(0<p.length?", ":"")+p),u+=(d?"var rv = ":"")+"invoker(fn"+(0<p.length?", ":"")+p+");\n",l)u+="runDestructors(destructors);\n";else for(h=s?1:2;h<e.length;++h)c=1===h?"thisWired":"arg"+(h-2)+"Wired",null!==e[h].Ha&&(u+=c+"_dtor("+c+"); // "+e[h].name+"\n",v.push(c+"_dtor"),f.push(e[h].Ha));if(d&&(u+="var ret = retType.fromWireType(rv);\nreturn ret;\n"),v.push(u+"}\n"),e=function(n){var t=Function;if(!(t instanceof Function))throw new TypeError("new_ called with constructor type "+typeof t+" which is not a function");var r=ht(t.name||"unknownFunctionName",(function(){}));return r.prototype=t.prototype,r=new r,(n=t.apply(r,n))instanceof Object?n:r}(v).apply(null,f),h=r-1,!t.hasOwnProperty(a))throw new wt("Replacing nonexistant public symbol");return void 0!==t[a].Ea&&void 0!==h?t[a].Ea[h]=e:(t[a]=e,t[a].qb=h),[]}))},h:function(n,t,r,e,a){function o(n){return n}t=ut(t),-1===a&&(a=4294967295);var i=ot(r);if(0===e){var u=32-8*r;o=function(n){return n<<u>>>u}}var f=-1!=t.indexOf("unsigned");mt(n,{name:t,fromWireType:o,toWireType:function(n,r){if("number"!=typeof r&&"boolean"!=typeof r)throw new TypeError('Cannot convert "'+At(r)+'" to '+this.name);if(r<e||r>a)throw new TypeError('Passing a number "'+At(r)+'" from JS side to C/C++ side to an argument of type "'+t+'", which is outside the valid range ['+e+", "+a+"]!");return f?r>>>0:0|r},argPackAdvance:8,readValueFromPointer:Tt(t,i,0!==e),Ha:null})},g:function(n,t,r){function e(n){var t=T;return new a(D,t[1+(n>>=2)],t[n])}var a=[Int8Array,Uint8Array,Int16Array,Uint16Array,Int32Array,Uint32Array,Float32Array,Float64Array][t];mt(n,{name:r=ut(r),fromWireType:e,argPackAdvance:8,readValueFromPointer:e},{zb:!0})},B:function(n,t){var r="std::string"===(t=ut(t));mt(n,{name:t,fromWireType:function(n){var t=T[n>>2];if(r)for(var e=n+4,a=0;a<=t;++a){var o=n+4+a;if(a==t||0==C[o]){if(e=g(e,o-e),void 0===i)var i=e;else i+=String.fromCharCode(0),i+=e;e=o+1}}else{for(i=Array(t),a=0;a<t;++a)i[a]=String.fromCharCode(C[n+4+a]);i=i.join("")}return Gt(n),i},toWireType:function(n,t){t instanceof ArrayBuffer&&(t=new Uint8Array(t));var e="string"==typeof t;e||t instanceof Uint8Array||t instanceof Uint8ClampedArray||t instanceof Int8Array||pt("Cannot pass non-string to std::string");var a=(r&&e?function(){return A(t)}:function(){return t.length})(),o=Vt(4+a+1);if(T[o>>2]=a,r&&e)b(t,C,o+4,a+1);else if(e)for(e=0;e<a;++e){var i=t.charCodeAt(e);255<i&&(Gt(o),pt("String has UTF-16 code units that do not fit in 8 bits")),C[o+4+e]=i}else for(e=0;e<a;++e)C[o+4+e]=t[e];return null!==n&&n.push(Gt,o),o},argPackAdvance:8,readValueFromPointer:bt,Ha:function(n){Gt(n)}})},s:function(n,t,r){if(r=ut(r),2===t)var e=S,a=O,o=W,i=function(){return E},u=1;else 4===t&&(e=j,a=R,o=U,i=function(){return T},u=2);mt(n,{name:r,fromWireType:function(n){for(var r,a=T[n>>2],o=i(),f=n+4,c=0;c<=a;++c){var s=n+4+c*t;c!=a&&0!=o[s>>u]||(f=e(f,s-f),void 0===r?r=f:(r+=String.fromCharCode(0),r+=f),f=s+t)}return Gt(n),r},toWireType:function(n,e){"string"!=typeof e&&pt("Cannot pass non-string to C++ string type "+r);var i=o(e),f=Vt(4+i+t);return T[f>>2]=i>>u,a(e,f+4,i+t),null!==n&&n.push(Gt,f),f},argPackAdvance:8,readValueFromPointer:bt,Ha:function(n){Gt(n)}})},V:function(n,t){mt(n,{Wb:!0,name:t=ut(t),argPackAdvance:0,fromWireType:function(){},toWireType:function(){}})},w:function(){J()},_:function(n,t,r){var e;for(Ut.length=0,r>>=2;e=C[t++];)(e=105>e)&&1&r&&r++,Ut.push(e?M[r++>>1]:F[r]),++r;return tn[n].apply(null,Ut)},d:function(n,t){throw $t(n,t||1),"longjmp"},F:function(n,t,r){C.copyWithin(n,t,t+r)},G:function(n){var t=C.length;if(2147483648<n)return!1;for(var r=1;4>=r;r*=2){var e=t*(1+.2/r);e=Math.min(e,n+100663296),0<(e=Math.max(n,e))%65536&&(e+=65536-e%65536);n:{try{p.grow(Math.min(2147483648,e)-D.byteLength+65535>>>16),z();var a=1;break n}catch(n){}a=void 0}if(a)return!0}return!1},J:function(n,t){try{var r=0;return Pt().forEach((function(e,a){var o=t+r;for(a=F[n+4*a>>2]=o,o=0;o<e.length;++o)_[a++>>0]=e.charCodeAt(o);_[a>>0]=0,r+=e.length+1})),0}catch(n){return void 0!==qn&&n instanceof _n||J(n),n.ya}},K:function(n,t){try{var r=Pt();F[n>>2]=r.length;var e=0;return r.forEach((function(n){e+=n.length+1})),F[t>>2]=e,0}catch(n){return void 0!==qn&&n instanceof _n||J(n),n.ya}},f:function(n){v||(t.onExit&&t.onExit(n),w=!0),u(n,new nr(n))},n:function(n){try{return Gn(at(n)),0}catch(n){return void 0!==qn&&n instanceof _n||J(n),n.ya}},I:function(n,t){try{var r=at(n);return _[t>>0]=r.wa?2:16384==(61440&r.mode)?3:40960==(61440&r.mode)?7:4,0}catch(n){return void 0!==qn&&n instanceof _n||J(n),n.ya}},z:function(n,t,r,e){try{n:{for(var a=at(n),o=n=0;o<r;o++){var i=F[t+(8*o+4)>>2],u=a,f=F[t+8*o>>2],c=i,s=void 0,l=_;if(0>c||0>s)throw new _n(28);if(null===u.Ba)throw new _n(8);if(1==(2097155&u.flags))throw new _n(8);if(16384==(61440&u.node.mode))throw new _n(31);if(!u.ua.read)throw new _n(28);var h=void 0!==s;if(h){if(!u.seekable)throw new _n(70)}else s=u.position;var d=u.ua.read(u,l,f,c,s);h||(u.position+=d);var v=d;if(0>v){var p=-1;break n}if(n+=v,v<i)break}p=n}return F[e>>2]=p,0}catch(n){return void 0!==qn&&n instanceof _n||J(n),n.ya}},E:function(n,t,r,e,a){try{var o=at(n);return-9007199254740992>=(n=4294967296*r+(t>>>0))||9007199254740992<=n?-61:(Ln(o,n,e),q=[o.position>>>0,($=o.position,1<=+Math.abs($)?0<$?(0|Math.min(+Math.floor($/4294967296),4294967295))>>>0:~~+Math.ceil(($-+(~~$>>>0))/4294967296)>>>0:0)],F[a>>2]=q[0],F[a+4>>2]=q[1],o.cb&&0===n&&0===e&&(o.cb=null),0)}catch(n){return void 0!==qn&&n instanceof _n||J(n),n.ya}},y:function(n,t,r,e){try{n:{for(var a=at(n),o=n=0;o<r;o++){var i=Jn(a,_,F[t+8*o>>2],F[t+(8*o+4)>>2]);if(0>i){var u=-1;break n}n+=i}u=n}return F[e>>2]=u,0}catch(n){return void 0!==qn&&n instanceof _n||J(n),n.ya}},b:function(){return 0|d},W:function(n){var t=Date.now();return F[n>>2]=t/1e3|0,F[n+4>>2]=t%1e3*1e3|0,0},Z:function(n,t){var r=Qt();try{return I.get(n)(t)}catch(n){if(Zt(r),n!==n+0&&"longjmp"!==n)throw n;$t(1,0)}},Y:function(n){var t=Qt();try{return I.get(n)()}catch(n){if(Zt(t),n!==n+0&&"longjmp"!==n)throw n;$t(1,0)}},l:function(n,t){var r=Qt();try{return I.get(n)(t)}catch(n){if(Zt(r),n!==n+0&&"longjmp"!==n)throw n;$t(1,0)}},e:function(n,t,r){var e=Qt();try{return I.get(n)(t,r)}catch(n){if(Zt(e),n!==n+0&&"longjmp"!==n)throw n;$t(1,0)}},m:function(n,t,r,e){var a=Qt();try{return I.get(n)(t,r,e)}catch(n){if(Zt(a),n!==n+0&&"longjmp"!==n)throw n;$t(1,0)}},X:function(n,t,r,e,a,o,i){var u=Qt();try{return I.get(n)(t,r,e,a,o,i)}catch(n){if(Zt(u),n!==n+0&&"longjmp"!==n)throw n;$t(1,0)}},i:function(n,t){var r=Qt();try{I.get(n)(t)}catch(n){if(Zt(r),n!==n+0&&"longjmp"!==n)throw n;$t(1,0)}},v:function(n,t,r){var e=Qt();try{I.get(n)(t,r)}catch(n){if(Zt(e),n!==n+0&&"longjmp"!==n)throw n;$t(1,0)}},t:function(n,t,r,e){var a=Qt();try{I.get(n)(t,r,e)}catch(n){if(Zt(a),n!==n+0&&"longjmp"!==n)throw n;$t(1,0)}},u:function(n,t,r,e,a){var o=Qt();try{I.get(n)(t,r,e,a)}catch(n){if(Zt(o),n!==n+0&&"longjmp"!==n)throw n;$t(1,0)}},p:function(n,t,r,e,a,o){var i=Qt();try{I.get(n)(t,r,e,a,o)}catch(n){if(Zt(i),n!==n+0&&"longjmp"!==n)throw n;$t(1,0)}},c:function(n){d=0|n},H:function(n,t,r,e){return function(n,t,r,e){function a(n,t,r){for(n="number"==typeof n?n.toString():n||"";n.length<t;)n=r[0]+n;return n}function o(n,t){return a(n,t,"0")}function i(n,t){function r(n){return 0>n?-1:0<n?1:0}var e;return 0===(e=r(n.getFullYear()-t.getFullYear()))&&0===(e=r(n.getMonth()-t.getMonth()))&&(e=r(n.getDate()-t.getDate())),e}function u(n){switch(n.getDay()){case 0:return new Date(n.getFullYear()-1,11,29);case 1:return n;case 2:return new Date(n.getFullYear(),0,3);case 3:return new Date(n.getFullYear(),0,2);case 4:return new Date(n.getFullYear(),0,1);case 5:return new Date(n.getFullYear()-1,11,31);case 6:return new Date(n.getFullYear()-1,11,30)}}function f(n){n=Rt(new Date(n.Aa+1900,0,1),n.Za);var t=new Date(n.getFullYear()+1,0,4),r=u(new Date(n.getFullYear(),0,4));return t=u(t),0>=i(r,n)?0>=i(t,n)?n.getFullYear()+1:n.getFullYear():n.getFullYear()-1}var c=F[e+40>>2];for(var s in e={Sb:F[e>>2],Rb:F[e+4>>2],Xa:F[e+8>>2],Ra:F[e+12>>2],Ma:F[e+16>>2],Aa:F[e+20>>2],Ya:F[e+24>>2],Za:F[e+28>>2],Zb:F[e+32>>2],Qb:F[e+36>>2],Tb:c?g(c):""},r=g(r),c={"%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"})r=r.replace(new RegExp(s,"g"),c[s]);var l="Sunday Monday Tuesday Wednesday Thursday Friday Saturday".split(" "),h="January February March April May June July August September October November December".split(" ");for(s in c={"%a":function(n){return l[n.Ya].substring(0,3)},"%A":function(n){return l[n.Ya]},"%b":function(n){return h[n.Ma].substring(0,3)},"%B":function(n){return h[n.Ma]},"%C":function(n){return o((n.Aa+1900)/100|0,2)},"%d":function(n){return o(n.Ra,2)},"%e":function(n){return a(n.Ra,2," ")},"%g":function(n){return f(n).toString().substring(2)},"%G":function(n){return f(n)},"%H":function(n){return o(n.Xa,2)},"%I":function(n){return 0==(n=n.Xa)?n=12:12<n&&(n-=12),o(n,2)},"%j":function(n){return o(n.Ra+Ot(St(n.Aa+1900)?Wt:jt,n.Ma-1),3)},"%m":function(n){return o(n.Ma+1,2)},"%M":function(n){return o(n.Rb,2)},"%n":function(){return"\n"},"%p":function(n){return 0<=n.Xa&&12>n.Xa?"AM":"PM"},"%S":function(n){return o(n.Sb,2)},"%t":function(){return"\t"},"%u":function(n){return n.Ya||7},"%U":function(n){var t=new Date(n.Aa+1900,0,1),r=0===t.getDay()?t:Rt(t,7-t.getDay());return 0>i(r,n=new Date(n.Aa+1900,n.Ma,n.Ra))?o(Math.ceil((31-r.getDate()+(Ot(St(n.getFullYear())?Wt:jt,n.getMonth()-1)-31)+n.getDate())/7),2):0===i(r,t)?"01":"00"},"%V":function(n){var t=new Date(n.Aa+1901,0,4),r=u(new Date(n.Aa+1900,0,4));t=u(t);var e=Rt(new Date(n.Aa+1900,0,1),n.Za);return 0>i(e,r)?"53":0>=i(t,e)?"01":o(Math.ceil((r.getFullYear()<n.Aa+1900?n.Za+32-r.getDate():n.Za+1-r.getDate())/7),2)},"%w":function(n){return n.Ya},"%W":function(n){var t=new Date(n.Aa,0,1),r=1===t.getDay()?t:Rt(t,0===t.getDay()?1:7-t.getDay()+1);return 0>i(r,n=new Date(n.Aa+1900,n.Ma,n.Ra))?o(Math.ceil((31-r.getDate()+(Ot(St(n.getFullYear())?Wt:jt,n.getMonth()-1)-31)+n.getDate())/7),2):0===i(r,t)?"01":"00"},"%y":function(n){return(n.Aa+1900).toString().substring(2)},"%Y":function(n){return n.Aa+1900},"%z":function(n){var t=0<=(n=n.Qb);return n=Math.abs(n)/60,(t?"+":"-")+String("0000"+(n/60*100+n%60)).slice(-4)},"%Z":function(n){return n.Tb},"%%":function(){return"%"}})0<=r.indexOf(s)&&(r=r.replace(new RegExp(s,"g"),c[s](e)));return(s=Ht(r,!1)).length>t?0:(_.set(s,n),s.length-1)}(n,t,r,e)},D:function(n){var t=Date.now()/1e3|0;return n&&(F[n>>2]=t),t},C:function(n){return 0!==n&&Jt(n,0,16),0}};!function(){function n(n){t.asm=n.exports,p=t.asm.$,z(),I=t.asm.ca,G--,t.monitorRunDependencies&&t.monitorRunDependencies(G),0==G&&L&&(n=L,L=null,n())}function r(t){n(t.instance)}function a(n){return(h||"function"!=typeof fetch?Promise.resolve().then((function(){return Z()})):fetch(X,{credentials:"same-origin"}).then((function(n){if(!n.ok)throw"failed to load wasm binary file at '"+X+"'";return n.arrayBuffer()})).catch((function(){return Z()}))).then((function(n){return WebAssembly.instantiate(n,o)})).then(n,(function(n){l("failed to asynchronously prepare wasm: "+n),J(n)}))}var o={a:Bt};if(G++,t.monitorRunDependencies&&t.monitorRunDependencies(G),t.instantiateWasm)try{return t.instantiateWasm(o,n)}catch(n){return l("Module.instantiateWasm callback failed with error: "+n),!1}(h||"function"!=typeof WebAssembly.instantiateStreaming||K()||"function"!=typeof fetch?a(r):fetch(X,{credentials:"same-origin"}).then((function(n){return WebAssembly.instantiateStreaming(n,o).then(r,(function(n){return l("wasm streaming compile failed: "+n),l("falling back to ArrayBuffer instantiation"),a(r)}))}))).catch(e)}();var Nt=t.___wasm_call_ctors=function(){return(Nt=t.___wasm_call_ctors=t.asm.aa).apply(null,arguments)},Vt=t._malloc=function(){return(Vt=t._malloc=t.asm.ba).apply(null,arguments)},Gt=t._free=function(){return(Gt=t._free=t.asm.da).apply(null,arguments)},Lt=t.___errno_location=function(){return(Lt=t.___errno_location=t.asm.ea).apply(null,arguments)},Jt=t._memset=function(){return(Jt=t._memset=t.asm.fa).apply(null,arguments)},Kt=t.___getTypeName=function(){return(Kt=t.___getTypeName=t.asm.ga).apply(null,arguments)};t.___embind_register_native_and_builtin_types=function(){return(t.___embind_register_native_and_builtin_types=t.asm.ha).apply(null,arguments)};var Xt,Qt=t.stackSave=function(){return(Qt=t.stackSave=t.asm.ia).apply(null,arguments)},Zt=t.stackRestore=function(){return(Zt=t.stackRestore=t.asm.ja).apply(null,arguments)},$t=t._setThrew=function(){return($t=t._setThrew=t.asm.ka).apply(null,arguments)},qt=t._memalign=function(){return(qt=t._memalign=t.asm.la).apply(null,arguments)};function nr(n){this.name="ExitStatus",this.message="Program terminated with exit("+n+")",this.status=n}function tr(){function n(){if(!Xt&&(Xt=!0,t.calledRun=!0,!w)){if(t.noFSInit||jn||(jn=!0,Kn(),t.stdin=t.stdin,t.stdout=t.stdout,t.stderr=t.stderr,t.stdin?Xn("stdin",t.stdin):Bn("/dev/tty","/dev/stdin"),t.stdout?Xn("stdout",null,t.stdout):Bn("/dev/tty","/dev/stdout"),t.stderr?Xn("stderr",null,t.stderr):Bn("/dev/tty1","/dev/stderr"),Vn("/dev/stdin",0),Vn("/dev/stdout",1),Vn("/dev/stderr",1)),rn(H),An=!1,rn(B),r(t),t.onRuntimeInitialized&&t.onRuntimeInitialized(),t.postRun)for("function"==typeof t.postRun&&(t.postRun=[t.postRun]);t.postRun.length;){var n=t.postRun.shift();N.unshift(n)}rn(N)}}if(!(0<G)){if(t.preRun)for("function"==typeof t.preRun&&(t.preRun=[t.preRun]);t.preRun.length;)V();rn(Y),0<G||(t.setStatus?(t.setStatus("Running..."),setTimeout((function(){setTimeout((function(){t.setStatus("")}),1),n()}),1)):n())}}if(t.dynCall_viijii=function(){return(t.dynCall_viijii=t.asm.ma).apply(null,arguments)},t.dynCall_iiij=function(){return(t.dynCall_iiij=t.asm.na).apply(null,arguments)},t.dynCall_viij=function(){return(t.dynCall_viij=t.asm.oa).apply(null,arguments)},t.dynCall_jiji=function(){return(t.dynCall_jiji=t.asm.pa).apply(null,arguments)},t.dynCall_iiiiij=function(){return(t.dynCall_iiiiij=t.asm.qa).apply(null,arguments)},t.dynCall_iiiiijj=function(){return(t.dynCall_iiiiijj=t.asm.ra).apply(null,arguments)},t.dynCall_iiiiiijj=function(){return(t.dynCall_iiiiiijj=t.asm.sa).apply(null,arguments)},L=function n(){Xt||tr(),Xt||(L=n)},t.run=tr,t.preInit)for("function"==typeof t.preInit&&(t.preInit=[t.preInit]);0<t.preInit.length;)t.preInit.pop()();return tr(),n.ready};let t,r,e;function a(t){const{id:a,src:o,options:i}=t.data;return async function(){return void 0===e&&(e=await r.then(n)),e}().then((n=>{const t=function(n,t,r){for(const{path:t,data:e}of r.files)n.vizCreateFile(t,e);n.vizSetY_invert(r.yInvert?1:0),n.vizSetNop(r.nop||0);const e=n.vizRenderFromString(t,r.format,r.engine),a=n.vizLastErrorMessage();if(""!==a)throw new Error(a);return e}(n,o,i);postMessage({id:a,result:t})})).catch((n=>{const t=n instanceof Error?{message:n.message,fileName:n.fileName,lineNumber:n.lineNumber}:{message:n.toString()};postMessage({id:a,error:t})}))}r=Promise.resolve({}),t=n=>r=Promise.resolve(n),addEventListener("message",a);var o=t;export default o;export{a as onmessage};
{
"name": "@aduh95/viz.js",
"version": "3.3.4",
"version": "3.4.0",
"description": "A hack to put Graphviz on the web.",

@@ -5,0 +5,0 @@ "main": "./dist/index.cjs",

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc