jessibuca-pro-face-detector-demo.js 110 KB
!function(t){"function"==typeof define&&define.amd?define(t):t()}((function(){"use strict";var t="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:{};function r(t){return t&&t.__esModule&&Object.prototype.hasOwnProperty.call(t,"default")?t.default:t}function e(t,r){return t(r={exports:{}},r.exports),r.exports}var n=Object.freeze({__proto__:null,commonjsGlobal:t,commonjsRequire:function(){throw new Error("Dynamic requires are not currently supported by rollup-plugin-commonjs")},unwrapExports:r,createCommonjsModule:e,getCjsExportFromNamespace:function(t){return t&&t.default||t}}),o=i;function a(){var t=["871927eOMXub","1531221KIRaAp","34039dBVOdW","5410pBzVkh","5762712gSrmhS","13725krrdSS","Cannot call a class as a function","80915VhbtBe","unwrapExports","40TPwkaW","exports","96yhnntA","15342679LjzvhE","default","__esModule","284JwCNwb"];return(a=function(){return t})()}function i(t,r){var e=a();return(i=function(t,r){return e[t-=284]})(t,r)}!function(t){for(var r=i,e=t();;)try{if(881883===-parseInt(r(293))/1*(-parseInt(r(286))/2)+-parseInt(r(292))/3+parseInt(r(290))/4*(-parseInt(r(298))/5)+parseInt(r(295))/6+-parseInt(r(291))/7*(parseInt(r(284))/8)+-parseInt(r(296))/9*(parseInt(r(294))/10)+parseInt(r(287))/11)break;e.push(e.shift())}catch(t){e.push(e.shift())}}(a);var s=e((function(t){var r=i;t[r(285)]=function(t,r){if(!(t instanceof r))throw new TypeError(i(297))},t.exports[r(289)]=!0,t[r(285)][r(288)]=t[r(285)]})),u=n[o(299)](s);function c(t,r){var e=f();return(c=function(t,r){return e[t-=375]})(t,r)}function f(){var t=["iterator","createCommonjsModule","774474qHZHJS","function","exports","131813iyrGzr","536552gDQypR","24813HkFrCs","441950VrotNI","prototype","18591blBTgl","constructor","unwrapExports","190NIEEkO","45650AcDTxe","14NSibys","symbol","304jnwsgG","124TecmtQ","__esModule"];return(f=function(){return t})()}var l=c;!function(t){for(var r=c,e=t();;)try{if(164482===-parseInt(r(379))/1+-parseInt(r(380))/2+parseInt(r(384))/3*(parseInt(r(392))/4)+parseInt(r(382))/5+-parseInt(r(376))/6*(-parseInt(r(389))/7)+-parseInt(r(391))/8*(-parseInt(r(381))/9)+-parseInt(r(387))/10*(parseInt(r(388))/11))break;e.push(e.shift())}catch(t){e.push(e.shift())}}(f);var p=n[l(375)]((function(t){var r=l;function e(r){var n=c;return t[n(378)]=e=n(377)==typeof Symbol&&"symbol"==typeof Symbol[n(394)]?function(t){return typeof t}:function(t){var r=n;return t&&r(377)==typeof Symbol&&t[r(385)]===Symbol&&t!==Symbol[r(383)]?r(390):typeof t},t[n(378)][n(393)]=!0,t[n(378)].default=t[n(378)],e(r)}t[r(378)]=e,t[r(378)][r(393)]=!0,t.exports.default=t[r(378)]})),d=n[l(386)](p),h=v;function v(t,r){var e=y();return(v=function(t,r){return e[t-=191]})(t,r)}!function(t){for(var r=v,e=t();;)try{if(360572===-parseInt(r(204))/1+-parseInt(r(191))/2+-parseInt(r(206))/3+parseInt(r(199))/4*(parseInt(r(201))/5)+parseInt(r(195))/6*(-parseInt(r(192))/7)+parseInt(r(203))/8+parseInt(r(200))/9*(parseInt(r(193))/10))break;e.push(e.shift())}catch(t){e.push(e.shift())}}(y);var m=e((function(t){var r=v,e=p[r(194)];t.exports=function(t,n){var o=r;if(o(196)!=e(t)||!t)return t;var a=t[Symbol[o(202)]];if(void 0!==a){var i=a[o(208)](t,n||"default");if(o(196)!=e(i))return i;throw new TypeError(o(209))}return(o(205)===n?String:Number)(t)},t[r(198)][r(207)]=!0,t[r(198)][r(194)]=t.exports}));function y(){var t=["676267pBSkHP","string","2161428qpYIZT","__esModule","call","@@toPrimitive must return a primitive value.","1163208PemPJB","3358873MkVvnR","140Fpokek","default","6VCMMTY","object","unwrapExports","exports","43052MpomzT","1601361AMWXrc","95RkUJdy","toPrimitive","986040kVhbEz"];return(y=function(){return t})()}n[h(197)](m);var g=w;function w(t,r){var e=b();return(w=function(t,r){return e[t-=409]})(t,r)}function b(){var t=["35600KyQGwu","1806360TlJceE","default","3681495XXlLwu","unwrapExports","createCommonjsModule","6OMkmTI","3577432agOqJx","32189IdliGh","25244xjGZUF","11901890BfdHIH","__esModule","7lGoeZs","symbol","1818rruhSy","24rBgSYF","string","exports"];return(b=function(){return t})()}!function(t){for(var r=w,e=t();;)try{if(372493===-parseInt(r(416))/1*(parseInt(r(414))/2)+-parseInt(r(423))/3*(parseInt(r(417))/4)+parseInt(r(411))/5+-parseInt(r(409))/6+-parseInt(r(420))/7*(-parseInt(r(415))/8)+-parseInt(r(422))/9*(-parseInt(r(426))/10)+-parseInt(r(418))/11)break;e.push(e.shift())}catch(t){e.push(e.shift())}}(b);var _=n[g(413)]((function(t){var r=g,e=p.default;t.exports=function(t){var r=w,n=m(t,r(424));return r(421)==e(n)?n:n+""},t[r(425)][r(419)]=!0,t[r(425)][r(410)]=t.exports}));n[g(412)](_);var E=k;function I(){var t=["configurable","enumerable","__esModule","default","exports","316083QUcJEc","192684jlfcLg","value","231VNFHkM","defineProperty","length","25363593jSqTKs","2959592ZyRbak","303000ngHMFQ","createCommonjsModule","46038EvrThO","4019664xHJMgg","8fzeNuf","writable","unwrapExports","prototype"];return(I=function(){return t})()}function k(t,r){var e=I();return(k=function(t,r){return e[t-=158]})(t,r)}!function(t){for(var r=k,e=t();;)try{if(655450===parseInt(r(161))/1*(parseInt(r(159))/2)+-parseInt(r(170))/3+-parseInt(r(177))/4+parseInt(r(178))/5+parseInt(r(171))/6*(-parseInt(r(173))/7)+-parseInt(r(160))/8+parseInt(r(176))/9)break;e.push(e.shift())}catch(t){e.push(e.shift())}}(I);var P=n[E(158)]((function(t){var r=E;function e(t,r){for(var e=k,n=0;n<r[e(175)];n++){var o=r[n];o[e(166)]=o.enumerable||!1,o[e(165)]=!0,e(172)in o&&(o[e(162)]=!0),Object[e(174)](t,_(o.key),o)}}t[r(169)]=function(t,r,n){var o=k;return r&&e(t[o(164)],r),n&&e(t,n),Object.defineProperty(t,o(164),{writable:!1}),t},t[r(169)][r(167)]=!0,t[r(169)][r(168)]=t[r(169)]})),T=n[E(163)](P);function S(){var t=["2426950OnrRFb","__esModule","78KivYyc","1102058WuQWoK","exports","6hVmXHb","72zSTkox","2553852umJMrr","13760rJbHOt","1yyDyEN","default","unwrapExports","54747inAQKt","5346uinnWq","752BPSECt","30951GeOvva","this hasn't been initialised - super() hasn't been called","20154DKzgga"];return(S=function(){return t})()}var C=D;!function(t){for(var r=D,e=t();;)try{if(348030===-parseInt(r(459))/1*(parseInt(r(471))/2)+parseInt(r(467))/3*(parseInt(r(456))/4)+parseInt(r(468))/5+-parseInt(r(473))/6*(-parseInt(r(462))/7)+-parseInt(r(464))/8*(parseInt(r(465))/9)+parseInt(r(458))/10*(-parseInt(r(463))/11)+parseInt(r(457))/12*(parseInt(r(470))/13))break;e.push(e.shift())}catch(t){e.push(e.shift())}}(S);var F=e((function(t){var r=D;t.exports=function(t){if(void 0===t)throw new ReferenceError(D(466));return t},t[r(472)][r(469)]=!0,t[r(472)][r(460)]=t[r(472)]}));function D(t,r){var e=S();return(D=function(t,r){return e[t-=456]})(t,r)}n[C(461)](F);var j=M;function A(){var t=["209264dpPcIb","75612LqKyBu","object","exports","282956AkMKys","27AnMaFE","778842rSDWIX","unwrapExports","91yiZjqU","2641410tbRMnr","__esModule","555786lRgTvi","184744JYRDMM","55bQdnUN"];return(A=function(){return t})()}function M(t,r){var e=A();return(M=function(t,r){return e[t-=397]})(t,r)}!function(t){for(var r=M,e=t();;)try{if(169578===-parseInt(r(397))/1+parseInt(r(407))/2+-parseInt(r(399))/3+parseInt(r(408))/4*(parseInt(r(406))/5)+-parseInt(r(404))/6+parseInt(r(401))/7*(-parseInt(r(405))/8)+parseInt(r(398))/9*(parseInt(r(402))/10))break;e.push(e.shift())}catch(t){e.push(e.shift())}}(A);var O=e((function(t){var r=M,e=p.default;t[r(410)]=function(t,r){if(r&&(M(409)==e(r)||"function"==typeof r))return r;if(void 0!==r)throw new TypeError("Derived constructors may only return object or undefined");return F(t)},t[r(410)][r(403)]=!0,t[r(410)].default=t[r(410)]})),x=n[j(400)](O),R=$;function $(t,r){var e=L();return($=function(t,r){return e[t-=317]})(t,r)}function L(){var t=["28oJMYTb","unwrapExports","getPrototypeOf","12WVpXGq","default","22470wukePb","1845IQWGUs","createCommonjsModule","3ozaOMY","1832252EMmaQW","81861ulJQhx","exports","109669pQxvAW","bind","427145nALvLz","2338vYinkN","__proto__","20712dbRLLy","__esModule","setPrototypeOf","6OiajII","5629822PNSlgB","264eipMaO"];return(L=function(){return t})()}!function(t){for(var r=$,e=t();;)try{if(332231===-parseInt(r(327))/1*(-parseInt(r(333))/2)+parseInt(r(318))/3*(-parseInt(r(319))/4)+parseInt(r(324))/5*(-parseInt(r(330))/6)+-parseInt(r(322))/7*(parseInt(r(332))/8)+parseInt(r(339))/9*(-parseInt(r(338))/10)+-parseInt(r(331))/11*(-parseInt(r(336))/12)+parseInt(r(320))/13*(parseInt(r(325))/14))break;e.push(e.shift())}catch(t){e.push(e.shift())}}(L);var z=n[R(317)]((function(t){var r=R;function e(r){var n=$;return t.exports=e=Object[n(329)]?Object[n(335)][n(323)]():function(t){var r=n;return t[r(326)]||Object[r(335)](t)},t[n(321)][n(328)]=!0,t[n(321)][n(337)]=t[n(321)],e(r)}t.exports=e,t[r(321)][r(328)]=!0,t[r(321)][r(337)]=t.exports})),U=n[R(334)](z),N=H;function W(){var t=["__esModule","994926wFFsph","__proto__","504066nFQFwz","10SVzyrd","2717394JgXmyO","unwrapExports","5018090SKVuPD","2075662ZenRfQ","default","exports","1590324JfdPPm","setPrototypeOf","11696976blBblv","createCommonjsModule","bind"];return(W=function(){return t})()}function H(t,r){var e=W();return(H=function(t,r){return e[t-=271]})(t,r)}!function(t){for(var r=H,e=t();;)try{if(647716===-parseInt(r(281))/1+-parseInt(r(286))/2+-parseInt(r(279))/3+parseInt(r(273))/4*(parseInt(r(282))/5)+-parseInt(r(283))/6+parseInt(r(285))/7+parseInt(r(275))/8)break;e.push(e.shift())}catch(t){e.push(e.shift())}}(W);var B=n[N(276)]((function(t){var r=N;function e(r,n){var o=H;return t.exports=e=Object[o(274)]?Object.setPrototypeOf[o(277)]():function(t,r){return t[o(280)]=r,t},t.exports.__esModule=!0,t[o(272)].default=t[o(272)],e(r,n)}t.exports=e,t[r(272)][r(278)]=!0,t[r(272)][r(271)]=t[r(272)]}));n[N(284)](B);var V=Y;function Y(t,r){var e=J();return(Y=function(t,r){return e[t-=121]})(t,r)}!function(t){for(var r=Y,e=t();;)try{if(964616===-parseInt(r(127))/1+parseInt(r(132))/2+parseInt(r(136))/3+-parseInt(r(123))/4+parseInt(r(133))/5+parseInt(r(130))/6*(-parseInt(r(128))/7)+parseInt(r(135))/8)break;e.push(e.shift())}catch(t){e.push(e.shift())}}(J);var q=n[V(125)]((function(t){var r=V;t.exports=function(t,r){var e=Y;if("function"!=typeof r&&null!==r)throw new TypeError(e(134));t[e(131)]=Object[e(122)](r&&r[e(131)],{constructor:{value:t,writable:!0,configurable:!0}}),Object.defineProperty(t,e(131),{writable:!1}),r&&B(t,r)},t[r(129)][r(121)]=!0,t[r(129)][r(124)]=t.exports})),G=n[V(126)](q);function J(){var t=["3906430CLBlqe","Super expression must either be null or a function","9269768lOaYKN","4017870cqFNWn","__esModule","create","845616GXrIyK","default","createCommonjsModule","unwrapExports","1883291WSHqVG","28nNZcQQ","exports","967518YWoUmQ","prototype","850052riebYr"];return(J=function(){return t})()}var X=Q;function Q(t,r){var e=K();return(Q=function(t,r){return e[t-=404]})(t,r)}!function(t){for(var r=Q,e=t();;)try{if(493237===-parseInt(r(408))/1+-parseInt(r(405))/2+-parseInt(r(415))/3+parseInt(r(412))/4*(-parseInt(r(416))/5)+parseInt(r(406))/6*(parseInt(r(411))/7)+-parseInt(r(417))/8*(-parseInt(r(418))/9)+parseInt(r(421))/10)break;e.push(e.shift())}catch(t){e.push(e.shift())}}(K);var Z=n[X(419)]((function(t){var r=X;t.exports=function(t){var r=Q;try{return-1!==Function[r(420)][r(410)](t)[r(407)](r(414))}catch(e){return r(413)==typeof t}},t[r(404)][r(409)]=!0,t[r(404)][r(422)]=t[r(404)]}));function K(){var t=["12182920kiISwF","default","exports","492230DUCiuX","201234diZsaR","indexOf","337686GVyIwP","__esModule","call","28agxcMu","1133908AJijSS","function","[native code]","2187492ScluGU","5oWuHhl","88DMwSSw","603189qraPBX","createCommonjsModule","toString"];return(K=function(){return t})()}r(Z);var tt=et;function rt(){var t=["42QNJsyM","6xAMkXd","3309812RcAsBj","call","20JdbDpR","2163144ThhcLY","7YUpJJQ","870005zsrkSu","6OpJooj","2367688bJijPR","6304692TfxzBk","valueOf","__esModule","5592978FbFUuf","exports","prototype","213821JZLKUc","createCommonjsModule"];return(rt=function(){return t})()}function et(t,r){var e=rt();return(et=function(t,r){return e[t-=124]})(t,r)}!function(t){for(var r=et,e=t();;)try{if(714800===-parseInt(r(136))/1*(-parseInt(r(128))/2)+parseInt(r(139))/3*(parseInt(r(125))/4)+-parseInt(r(127))/5*(parseInt(r(138))/6)+-parseInt(r(126))/7*(parseInt(r(129))/8)+-parseInt(r(133))/9+-parseInt(r(124))/10*(-parseInt(r(140))/11)+parseInt(r(130))/12)break;e.push(e.shift())}catch(t){e.push(e.shift())}}(rt);var nt=n[tt(137)]((function(t){var r=tt;function e(){var r=et;try{var n=!Boolean[r(135)][r(131)][r(141)](Reflect.construct(Boolean,[],(function(){})))}catch(t){}return(t[r(134)]=e=function(){return!!n},t[r(134)][r(132)]=!0,t[r(134)].default=t[r(134)])()}t[r(134)]=e,t[r(134)].__esModule=!0,t.exports.default=t[r(134)]}));r(nt);var ot=at;function at(t,r){var e=st();return(at=function(t,r){return e[t-=235]})(t,r)}!function(t){for(var r=at,e=t();;)try{if(898577===parseInt(r(252))/1*(parseInt(r(248))/2)+parseInt(r(237))/3*(parseInt(r(235))/4)+-parseInt(r(242))/5+parseInt(r(245))/6*(parseInt(r(236))/7)+-parseInt(r(243))/8+parseInt(r(240))/9*(parseInt(r(253))/10)+-parseInt(r(246))/11)break;e.push(e.shift())}catch(t){e.push(e.shift())}}(st);var it=n[ot(247)]((function(t){var r=ot;t[r(238)]=function(t,r,e){var n=at;if(nt())return Reflect[n(251)][n(249)](null,arguments);var o=[null];o[n(250)].apply(o,r);var a=new(t[n(241)][n(249)](t,o));return e&&B(a,e[n(244)]),a},t[r(238)].__esModule=!0,t[r(238)][r(239)]=t[r(238)]}));function st(){var t=["6smUPFr","29329014ffHwqk","createCommonjsModule","72186FRqEYw","apply","push","construct","35aIWhdC","17240ThUzNV","1636yYAxVl","9348157WfQzcY","7701rGqoMn","exports","default","9189jSSzwK","bind","273760VUUZoo","14313680okJbrw","prototype"];return(st=function(){return t})()}r(it);var ut=ft;function ct(){var t=["370871LrCjZl","exports","function","__esModule","set","constructor","9446190FrtcIw","create","6JnEqVB","8ZtHyfc","1885167gOoEFF","get","unwrapExports","1142650qSzTis","5301678qLhnZk","18yEbkIb","3924568DMmVAD","11cXJEyh","2214618xBIjqv"];return(ct=function(){return t})()}function ft(t,r){var e=ct();return(ft=function(t,r){return e[t-=127]})(t,r)}!function(t){for(var r=ft,e=t();;)try{if(641409===-parseInt(r(135))/1*(parseInt(r(143))/2)+-parseInt(r(145))/3*(-parseInt(r(144))/4)+-parseInt(r(129))/5+-parseInt(r(130))/6+-parseInt(r(134))/7+parseInt(r(132))/8*(parseInt(r(131))/9)+parseInt(r(141))/10*(parseInt(r(133))/11))break;e.push(e.shift())}catch(t){e.push(e.shift())}}(ct);var lt=e((function(t){var r=ft;function e(r){var n=ft,o="function"==typeof Map?new Map:void 0;return t.exports=e=function(t){var r=ft;if(null===t||!Z(t))return t;if(r(137)!=typeof t)throw new TypeError("Super expression must either be null or a function");if(void 0!==o){if(o.has(t))return o[r(127)](t);o[r(139)](t,e)}function e(){var e=r;return it(t,arguments,z(this)[e(140)])}return e.prototype=Object[r(142)](t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),B(e,t)},t.exports[n(138)]=!0,t[n(136)].default=t[n(136)],e(r)}t[r(136)]=e,t.exports[r(138)]=!0,t[r(136)].default=t[r(136)]})),pt=n[ut(128)](lt),dt=ht;function ht(t,r){var e=yt();return(ht=function(t,r){return e[t-=219]})(t,r)}!function(t){for(var r=ht,e=t();;)try{if(248897===parseInt(r(238))/1+parseInt(r(227))/2+parseInt(r(221))/3*(parseInt(r(230))/4)+parseInt(r(234))/5+-parseInt(r(224))/6*(-parseInt(r(237))/7)+-parseInt(r(219))/8+-parseInt(r(232))/9)break;e.push(e.shift())}catch(t){e.push(e.shift())}}(yt);var vt=n[dt(226)]((function(t){var r=dt;function e(t,r,e,n,o,a,i){var s=ht;try{var u=t[a](i),c=u[s(222)]}catch(t){return void e(t)}u[s(223)]?r(c):Promise[s(233)](c)[s(231)](n,o)}t[r(235)]=function(t){return function(){var r=this,n=arguments;return new Promise((function(o,a){var i=t.apply(r,n);function s(t){e(i,o,a,s,u,ht(229),t)}function u(t){e(i,o,a,s,u,ht(225),t)}s(void 0)}))}},t[r(235)][r(220)]=!0,t[r(235)][r(228)]=t[r(235)]})),mt=n[dt(236)](vt);function yt(){var t=["next","1446448mMWUEC","then","9802008JHAOqa","resolve","1482180RyPuGf","exports","unwrapExports","14483QllhGo","495156YyxiLk","3131856LiyCYY","__esModule","3lkPDrO","value","done","750VQMDHb","throw","createCommonjsModule","635324jQNcwT","default"];return(yt=function(){return t})()}var gt=bt;!function(t){for(var r=bt,e=t();;)try{if(694817===-parseInt(r(391))/1+-parseInt(r(463))/2+-parseInt(r(412))/3*(-parseInt(r(429))/4)+-parseInt(r(400))/5+-parseInt(r(440))/6+-parseInt(r(423))/7*(-parseInt(r(392))/8)+parseInt(r(455))/9*(parseInt(r(431))/10))break;e.push(e.shift())}catch(t){e.push(e.shift())}}(_t);var wt=n[gt(408)]((function(t){var r=gt,e=p[r(464)];function n(){var o=r;t[o(403)]=n=function(){return i},t.exports[o(402)]=!0,t[o(403)][o(464)]=t[o(403)];var a,i={},s=Object[o(442)],u=s[o(427)],c=Object[o(437)]||function(t,r,e){var n=o;t[r]=e[n(418)]},f=o(462)==typeof Symbol?Symbol:{},l=f[o(470)]||o(414),p=f[o(441)]||"@@asyncIterator",d=f[o(428)]||o(461);function h(t,r,e){return Object[o(437)](t,r,{value:e,enumerable:!0,configurable:!0,writable:!0}),t[r]}try{h({},"")}catch(t){h=function(t,r,e){return t[r]=e}}function v(t,r,e,n){var i,s,u,f,l=o,p=r&&r[l(442)]instanceof E?r:E,d=Object[l(444)](p.prototype),h=new O(n||[]);return c(d,l(407),{value:(i=t,s=e,u=h,f=y,function(t,r){var e=bt;if(f===w)throw Error(e(466));if(f===b){if(e(451)===t)throw r;return{value:a,done:!0}}for(u.method=t,u[e(454)]=r;;){var n=u[e(388)];if(n){var o=j(n,u);if(o){if(o===_)continue;return o}}if("next"===u[e(425)])u[e(449)]=u[e(467)]=u[e(454)];else if(e(451)===u[e(425)]){if(f===y)throw f=b,u[e(454)];u[e(404)](u[e(454)])}else e(432)===u[e(425)]&&u[e(411)](e(432),u[e(454)]);f=w;var c=m(i,s,u);if(e(472)===c[e(413)]){if(f=u.done?b:g,c[e(454)]===_)continue;return{value:c.arg,done:u[e(435)]}}e(451)===c.type&&(f=b,u[e(425)]=e(451),u[e(454)]=c[e(454)])}})}),d}function m(t,r,e){var n=o;try{return{type:"normal",arg:t[n(426)](r,e)}}catch(t){return{type:"throw",arg:t}}}i[o(415)]=v;var y="suspendedStart",g=o(405),w=o(459),b=o(389),_={};function E(){}function I(){}function k(){}var P={};h(P,l,(function(){return this}));var T=Object[o(393)],S=T&&T(T(x([])));S&&S!==s&&u[o(426)](S,l)&&(P=S);var C=k[o(442)]=E.prototype=Object[o(444)](P);function F(t){var r=o;[r(397),r(451),r(432)][r(417)]((function(r){h(t,r,(function(t){return this[bt(407)](r,t)}))}))}function D(t,r){var n,a=o;function i(n,o,a,s){var c=bt,f=m(t[n],t,o);if(c(451)!==f[c(413)]){var l=f[c(454)],p=l[c(418)];return p&&c(436)==e(p)&&u.call(p,"__await")?r.resolve(p[c(394)])[c(453)]((function(t){i("next",t,a,s)}),(function(t){i("throw",t,a,s)})):r.resolve(p).then((function(t){l[c(418)]=t,a(l)}),(function(t){return i(c(451),t,a,s)}))}s(f.arg)}c(this,a(407),{value:function(t,e){function o(){return new r((function(r,n){i(t,e,r,n)}))}return n=n?n[a(453)](o,o):o()}})}function j(t,r){var e=o,n=r[e(425)],i=t[e(470)][n];if(i===a)return r[e(388)]=null,"throw"===n&&t[e(470)].return&&(r.method=e(432),r.arg=a,j(t,r),"throw"===r[e(425)])||e(432)!==n&&(r[e(425)]=e(451),r.arg=new TypeError(e(446)+n+e(406))),_;var s=m(i,t.iterator,r[e(454)]);if(e(451)===s.type)return r.method=e(451),r[e(454)]=s.arg,r[e(388)]=null,_;var u=s.arg;return u?u[e(435)]?(r[t[e(386)]]=u[e(418)],r.next=t.nextLoc,e(432)!==r[e(425)]&&(r[e(425)]=e(397),r[e(454)]=a),r.delegate=null,_):u:(r[e(425)]=e(451),r[e(454)]=new TypeError("iterator result is not an object"),r[e(388)]=null,_)}function A(t){var r=o,e={tryLoc:t[0]};1 in t&&(e[r(433)]=t[1]),2 in t&&(e.finallyLoc=t[2],e[r(409)]=t[3]),this[r(460)][r(396)](e)}function M(t){var r=o,e=t.completion||{};e[r(413)]=r(472),delete e.arg,t[r(385)]=e}function O(t){var r=o;this[r(460)]=[{tryLoc:r(430)}],t.forEach(A,this),this[r(471)](!0)}function x(t){var r=o;if(t||""===t){var n=t[l];if(n)return n[r(426)](t);if("function"==typeof t[r(397)])return t;if(!isNaN(t[r(457)])){var i=-1,s=function e(){for(var n=r;++i<t.length;)if(u[n(426)](t,i))return e.value=t[i],e[n(435)]=!1,e;return e[n(418)]=a,e[n(435)]=!0,e};return s[r(397)]=s}}throw new TypeError(e(t)+r(452))}return I[o(442)]=k,c(C,o(445),{value:k,configurable:!0}),c(k,"constructor",{value:I,configurable:!0}),I[o(458)]=h(k,d,o(419)),i.isGeneratorFunction=function(t){var r=o,e=r(462)==typeof t&&t[r(445)];return!!e&&(e===I||"GeneratorFunction"===(e.displayName||e[r(434)]))},i.mark=function(t){var r=o;return Object[r(448)]?Object[r(448)](t,k):(t[r(416)]=k,h(t,d,r(419))),t[r(442)]=Object[r(444)](C),t},i.awrap=function(t){return{__await:t}},F(D[o(442)]),h(D[o(442)],p,(function(){return this})),i[o(424)]=D,i[o(438)]=function(t,r,e,n,a){var s=o;void 0===a&&(a=Promise);var u=new D(v(t,r,e,n),a);return i[s(410)](r)?u:u[s(397)]()[s(453)]((function(t){var r=s;return t[r(435)]?t[r(418)]:u[r(397)]()}))},F(C),h(C,d,o(450)),h(C,l,(function(){return this})),h(C,o(465),(function(){return"[object Generator]"})),i[o(456)]=function(t){var r=o,e=Object(t),n=[];for(var a in e)n[r(396)](a);return n[r(421)](),function t(){for(var o=r;n[o(457)];){var a=n[o(395)]();if(a in e)return t.value=a,t[o(435)]=!1,t}return t[o(435)]=!0,t}},i[o(420)]=x,O.prototype={constructor:O,reset:function(t){var r=o;if(this.prev=0,this[r(397)]=0,this[r(449)]=this[r(467)]=a,this[r(435)]=!1,this[r(388)]=null,this[r(425)]=r(397),this[r(454)]=a,this[r(460)][r(417)](M),!t)for(var e in this)"t"===e[r(468)](0)&&u[r(426)](this,e)&&!isNaN(+e.slice(1))&&(this[e]=a)},stop:function(){var t=o;this[t(435)]=!0;var r=this.tryEntries[0][t(385)];if("throw"===r[t(413)])throw r[t(454)];return this[t(469)]},dispatchException:function(t){var r=o;if(this.done)throw t;var e=this;function n(r,n){var o=bt;return c[o(413)]=o(451),c[o(454)]=t,e[o(397)]=r,n&&(e.method=o(397),e.arg=a),!!n}for(var i=this[r(460)].length-1;i>=0;--i){var s=this[r(460)][i],c=s[r(385)];if("root"===s[r(398)])return n("end");if(s[r(398)]<=this[r(401)]){var f=u.call(s,r(433)),l=u[r(426)](s,r(387));if(f&&l){if(this[r(401)]<s[r(433)])return n(s.catchLoc,!0);if(this[r(401)]<s[r(387)])return n(s.finallyLoc)}else if(f){if(this[r(401)]<s[r(433)])return n(s.catchLoc,!0)}else{if(!l)throw Error(r(422));if(this[r(401)]<s.finallyLoc)return n(s[r(387)])}}}},abrupt:function(t,r){for(var e=o,n=this[e(460)][e(457)]-1;n>=0;--n){var a=this[e(460)][n];if(a[e(398)]<=this[e(401)]&&u.call(a,"finallyLoc")&&this[e(401)]<a[e(387)]){var i=a;break}}i&&(e(439)===t||e(443)===t)&&i[e(398)]<=r&&r<=i[e(387)]&&(i=null);var s=i?i[e(385)]:{};return s[e(413)]=t,s[e(454)]=r,i?(this[e(425)]=e(397),this.next=i.finallyLoc,_):this[e(390)](s)},complete:function(t,r){var e=o;if(e(451)===t.type)throw t.arg;return e(439)===t[e(413)]||"continue"===t[e(413)]?this[e(397)]=t[e(454)]:e(432)===t[e(413)]?(this[e(469)]=this[e(454)]=t.arg,this[e(425)]=e(432),this[e(397)]="end"):"normal"===t.type&&r&&(this[e(397)]=r),_},finish:function(t){for(var r=o,e=this[r(460)].length-1;e>=0;--e){var n=this[r(460)][e];if(n[r(387)]===t)return this[r(390)](n[r(385)],n.afterLoc),M(n),_}},catch:function(t){for(var r=o,e=this[r(460)][r(457)]-1;e>=0;--e){var n=this[r(460)][e];if(n[r(398)]===t){var a=n[r(385)];if("throw"===a.type){var i=a[r(454)];M(n)}return i}}throw Error(r(399))},delegateYield:function(t,r,e){var n=o;return this.delegate={iterator:x(t),resultName:r,nextLoc:e},"next"===this[n(425)]&&(this[n(454)]=a),_}},i}t[r(403)]=n,t.exports.__esModule=!0,t.exports.default=t[r(403)]}));function bt(t,r){var e=_t();return(bt=function(t,r){return e[t-=385]})(t,r)}function _t(){var t=["root","160HERPsI","return","catchLoc","name","done","object","defineProperty","async","break","5731974eYhsRQ","asyncIterator","prototype","continue","create","constructor","The iterator does not provide a '","unwrapExports","setPrototypeOf","sent","Generator","throw"," is not iterable","then","arg","1071162vnBZdm","keys","length","displayName","executing","tryEntries","@@toStringTag","function","767048hwqHvJ","default","toString","Generator is already running","_sent","charAt","rval","iterator","reset","normal","completion","resultName","finallyLoc","delegate","completed","complete","35001WcGKRi","3950568CcLcDC","getPrototypeOf","__await","pop","push","next","tryLoc","illegal catch attempt","2514550SkJPcA","prev","__esModule","exports","dispatchException","suspendedYield","' method","_invoke","createCommonjsModule","afterLoc","isGeneratorFunction","abrupt","468fXMpVj","type","@@iterator","wrap","__proto__","forEach","value","GeneratorFunction","values","reverse","try statement without catch or finally","7bIXpXh","AsyncIterator","method","call","hasOwnProperty","toStringTag","4448rqfllX"];return(_t=function(){return t})()}n[gt(447)](wt);var Et=kt;function It(){var t=["36bHwqhB","14199636htLNuA","4041JkQYVa","regeneratorRuntime","577132OTpCFB","17890zyvqrp","60OoYMnP","15VUQTKv","1091652IhIEtx","object","70089BHeoob","6511316pgVmMU","704744vneOcs","regeneratorRuntime = r","7eRioIU"];return(It=function(){return t})()}function kt(t,r){var e=It();return(kt=function(t,r){return e[t-=100]})(t,r)}!function(t){for(var r=kt,e=t();;)try{if(860047===parseInt(r(107))/1+parseInt(r(109))/2*(-parseInt(r(113))/3)+-parseInt(r(114))/4+parseInt(r(110))/5*(-parseInt(r(111))/6)+parseInt(r(102))/7*(parseInt(r(100))/8)+-parseInt(r(105))/9*(parseInt(r(108))/10)+parseInt(r(104))/11*(parseInt(r(103))/12))break;e.push(e.shift())}catch(t){e.push(e.shift())}}(It);var Pt=wt(),Tt=Pt;try{regeneratorRuntime=Pt}catch(t){typeof globalThis===Et(112)?globalThis[Et(106)]=Pt:Function("r",Et(101))(Pt)}function St(t,r,e){return r=U(r),x(t,Ct()?Reflect.construct(r,e||[],U(t).constructor):r.apply(t,e))}function Ct(){try{var t=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(t){}return(Ct=function(){return!!t})()}var Ft,Dt=(Ft="undefined"==typeof document&&"undefined"==typeof location?new(require("url").URL)("file:"+__filename).href:"undefined"==typeof document?location.href:document.currentScript&&document.currentScript.src||new URL("jessibuca-pro-face-detector-demo.js",document.baseURI).href,mt(Tt.mark((function t(){var r,e,n,o,a,i,s,c,f,l,p,h,v,m,y,g,w,b,_,E,I,k,P,S,C,F,D,j,A,M,O,x,R,$,L,z,U,N,W,H,B,V,Y,q,J,X,Q,Z,K,tt,rt,et,nt,ot,at,it,st,ut,ct,ft,lt,dt,ht,vt,mt,yt,gt,wt,bt,_t,Et,It,kt,Pt,Ct,Dt,jt,At,Mt,Ot,xt,Rt,$t,Lt,zt,Ut,Nt,Wt,Ht,Bt,Vt,Yt,qt,Gt,Jt,Xt,Qt,Zt,Kt,tr,rr,er,nr,or,ar,ir,sr,ur,cr,fr,lr,pr,dr,hr,vr,mr,yr,gr,wr,br,_r,Er,Ir,kr,Pr,Tr,Sr,Cr,Fr,Dr,jr,Ar,Mr,Or,xr,Rr,$r,Lr,zr,Ur,Nr,Wr,Hr,Br,Vr,Yr,qr,Gr,Jr,Xr,Qr,Zr,Kr,te,re,ee,ne,oe,ae,ie,se,ue,ce,fe,le,pe,de,he,ve,me,ye,ge,we,be,_e,Ee,Ie,ke,Pe,Te,Se,Ce,Fe,De,je,Ae,Me,Oe,xe,Re,$e,Le,ze,Ue,Ne,We,He,Be,Ve,Ye,qe,Ge,Je,Xe,Qe,Ze,Ke,tn,rn,en,nn,on,an,sn,un,cn,fn,ln,pn,dn,hn,vn,mn,yn,gn,wn,bn,_n,En,In,kn,Pn,Tn,Sn,Cn,Fn,Dn,jn,An,Mn,On,xn,Rn,$n,Ln,zn,Un,Nn,Wn,Hn,Bn,Vn,Yn,qn,Gn,Jn,Xn,Qn,Zn,Kn,to=arguments;return Tt.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(Kn=function(){function t(){Zn||(Zn=!0,e.calledRun=!0,S||(W(),n(e),e.onRuntimeInitialized&&e.onRuntimeInitialized(),H()))}q>0||(N(),q>0||(e.setStatus?(e.setStatus("Running..."),setTimeout((function(){setTimeout((function(){e.setStatus("")}),1),t()}),1)):t()))},On=function(t,r,e,n){try{var o=Ht.getStreamFromFD(t),a=Mn(o,r,e);return O[n>>2]=a,0}catch(t){if(void 0===Nt||"ErrnoError"!==t.name)throw t;return t.errno}},An=function(t,r,e,n,o){var a=dn(r,e);try{if(isNaN(a))return 61;var i=Ht.getStreamFromFD(t);return Nt.llseek(i,a,n),ft=[i.position>>>0,(ct=i.position,+Math.abs(ct)>=1?ct>0?+Math.floor(ct/4294967296)>>>0:~~+Math.ceil((ct-+(~~ct>>>0))/4294967296)>>>0:0)],M[o>>2]=ft[0],M[o+4>>2]=ft[1],i.getdents&&0===a&&0===n&&(i.getdents=null),0}catch(t){if(void 0===Nt||"ErrnoError"!==t.name)throw t;return t.errno}},jn=function(t,r,e,n){try{var o=Ht.getStreamFromFD(t),a=Dn(o,r,e);return O[n>>2]=a,0}catch(t){if(void 0===Nt||"ErrnoError"!==t.name)throw t;return t.errno}},Fn=function(t){try{var r=Ht.getStreamFromFD(t);return Nt.close(r),0}catch(t){if(void 0===Nt||"ErrnoError"!==t.name)throw t;return t.errno}},hn=function(t,r,e){var n=dn(t,r),o=new Date(1e3*n);M[e>>2]=o.getSeconds(),M[e+4>>2]=o.getMinutes(),M[e+8>>2]=o.getHours(),M[e+12>>2]=o.getDate(),M[e+16>>2]=o.getMonth(),M[e+20>>2]=o.getFullYear()-1900,M[e+24>>2]=o.getDay();var a=0|pn(o);M[e+28>>2]=a,M[e+36>>2]=-60*o.getTimezoneOffset();var i=new Date(o.getFullYear(),0,1),s=new Date(o.getFullYear(),6,1).getTimezoneOffset(),u=i.getTimezoneOffset(),c=0|(s!=u&&o.getTimezoneOffset()==Math.min(u,s));M[e+32>>2]=c},he=function(){this.allocated=[void 0],this.freelist=[]},de=function(){Object.assign(he.prototype,{get:function(t){return this.allocated[t]},has:function(t){return void 0!==this.allocated[t]},allocate:function(t){var r=this.freelist.pop()||this.allocated.length;return this.allocated[r]=t,r},free:function(t){this.allocated[t]=void 0,this.freelist.push(t)}})},ce=function(t,r,e,n,o,a){var i=r.length;i<2&&ur("argTypes array size mismatch! Must at least get return value and 'this' types!");for(var s=null!==r[1]&&null!==e,u=!1,c=1;c<r.length;++c)if(null!==r[c]&&void 0===r[c].destructorFunction){u=!0;break}var f="void"!==r[0].name,l="",p="";for(c=0;c<i-2;++c)l+=(0!==c?", ":"")+"arg"+c,p+=(0!==c?", ":"")+"arg"+c+"Wired";var d="\n        return function (".concat(l,") {\n        if (arguments.length !== ").concat(i-2,") {\n          throwBindingError('function ").concat(t," called with ' + arguments.length + ' arguments, expected ").concat(i-2,"');\n        }");u&&(d+="var destructors = [];\n");var h=u?"destructors":"null",v=["throwBindingError","invoker","fn","runDestructors","retType","classParam"],m=[ur,n,o,Gt,r[0],r[1]];for(s&&(d+="var thisWired = classParam.toWireType("+h+", this);\n"),c=0;c<i-2;++c)d+="var arg"+c+"Wired = argType"+c+".toWireType("+h+", arg"+c+"); // "+r[c+2].name+"\n",v.push("argType"+c),m.push(r[c+2]);if(s&&(p="thisWired"+(p.length>0?", ":"")+p),d+=(f||a?"var rv = ":"")+"invoker(fn"+(p.length>0?", ":"")+p+");\n",u)d+="runDestructors(destructors);\n";else for(c=s?1:2;c<r.length;++c){var y=1===c?"thisWired":"arg"+(c-2)+"Wired";null!==r[c].destructorFunction&&(d+=y+"_dtor("+y+"); // "+r[c].name+"\n",v.push(y+"_dtor"),m.push(r[c].destructorFunction))}f&&(d+="var ret = retType.fromWireType(rv);\nreturn ret;\n"),d+="}\n",v.push(d);var g=ue(Function,v).apply(null,m);return Rr(t,g)},ue=function(t,r){if(!(t instanceof Function))throw new TypeError("new_ called with constructor type ".concat(d(t)," which is not a function"));var e=Rr(t.name||"unknownFunctionName",(function(){}));e.prototype=t.prototype;var n=new e,o=t.apply(n,r);return o instanceof Object?o:n},qr=function(t,r,e,n,o,a,i,s,u,c,f){this.name=t,this.registeredClass=r,this.isReference=e,this.isConst=n,this.isSmartPointer=o,this.pointeeType=a,this.sharingPolicy=i,this.rawGetPointee=s,this.rawConstructor=u,this.rawShare=c,this.rawDestructor=f,o||void 0!==r.baseClass?this.toWireType=Hr:n?(this.toWireType=Wr,this.destructorFunction=null):(this.toWireType=Br,this.destructorFunction=null)},Vr=function(t){return this.fromWireType(O[t>>2])},Br=function(t,r){if(null===r)return this.isReference&&ur("null is not a valid ".concat(this.name)),0;r.$$||ur('Cannot pass "'.concat(_e(r),'" as a ').concat(this.name)),r.$$.ptr||ur("Cannot pass deleted object as a pointer of type ".concat(this.name)),r.$$.ptrType.isConst&&ur("Cannot convert argument of type ".concat(r.$$.ptrType.name," to parameter type ").concat(this.name));var e=r.$$.ptrType.registeredClass;return Nr(r.$$.ptr,e,this.registeredClass)},Hr=function(t,r){var e;if(null===r)return this.isReference&&ur("null is not a valid ".concat(this.name)),this.isSmartPointer?(e=this.rawConstructor(),null!==t&&t.push(this.rawDestructor,e),e):0;r.$$||ur('Cannot pass "'.concat(_e(r),'" as a ').concat(this.name)),r.$$.ptr||ur("Cannot pass deleted object as a pointer of type ".concat(this.name)),!this.isConst&&r.$$.ptrType.isConst&&ur("Cannot convert argument of type ".concat(r.$$.smartPtrType?r.$$.smartPtrType.name:r.$$.ptrType.name," to parameter type ").concat(this.name));var n=r.$$.ptrType.registeredClass;if(e=Nr(r.$$.ptr,n,this.registeredClass),this.isSmartPointer)switch(void 0===r.$$.smartPtr&&ur("Passing raw pointer to smart pointer is illegal"),this.sharingPolicy){case 0:r.$$.smartPtrType===this?e=r.$$.smartPtr:ur("Cannot convert argument of type ".concat(r.$$.smartPtrType?r.$$.smartPtrType.name:r.$$.ptrType.name," to parameter type ").concat(this.name));break;case 1:e=r.$$.smartPtr;break;case 2:if(r.$$.smartPtrType===this)e=r.$$.smartPtr;else{var o=r.clone();e=this.rawShare(e,we.toHandle((function(){return o.delete()}))),null!==t&&t.push(this.rawDestructor,e)}break;default:ur("Unsupporting sharing policy")}return e},Wr=function(t,r){if(null===r)return this.isReference&&ur("null is not a valid ".concat(this.name)),0;r.$$||ur('Cannot pass "'.concat(_e(r),'" as a ').concat(this.name)),r.$$.ptr||ur("Cannot pass deleted object as a pointer of type ".concat(this.name));var e=r.$$.ptrType.registeredClass;return Nr(r.$$.ptr,e,this.registeredClass)},Ur=function(t,r,e,n,o,a,i,s){this.name=t,this.constructor=r,this.instancePrototype=e,this.rawDestructor=n,this.baseClass=o,this.getActualType=a,this.upcast=i,this.downcast=s,this.pureVirtualFunctions=[]},xr=function(){},Ar=function(t){var r=this.getPointee(t);if(!r)return this.destructor(t),null;var e=Dr(this.registeredClass,r);if(void 0!==e){if(0===e.$$.count.value)return e.$$.ptr=r,e.$$.smartPtr=t,e.clone();var n=e.clone();return this.destructor(t),n}function o(){return this.isSmartPointer?jr(this.registeredClass.instancePrototype,{ptrType:this.pointeeType,ptr:r,smartPtrType:this,smartPtr:t}):jr(this.registeredClass.instancePrototype,{ptrType:this,ptr:t})}var a,i=this.registeredClass.getActualType(r),s=br[i];if(!s)return o.call(this);a=this.isConst?s.constPointerType:s.pointerType;var u=wr(r,this.registeredClass,a.registeredClass);return null===u?o.call(this):this.isSmartPointer?jr(a.registeredClass.instancePrototype,{ptrType:a,ptr:u,smartPtrType:this,smartPtr:t}):jr(a.registeredClass.instancePrototype,{ptrType:a,ptr:u})},fr=function(t,r){var e=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};if(!("argPackAdvance"in r))throw new TypeError("registerType registeredInstance requires argPackAdvance");return cr(t,r,e)},cr=function(t,r){var e=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},n=r.name;if(t||ur('type "'.concat(n,'" must have a positive integer typeid pointer')),Qt.hasOwnProperty(t)){if(e.ignoreDuplicateRegistrations)return;ur("Cannot register type '".concat(n,"' twice"))}if(Qt[t]=r,delete Zt[t],Xt.hasOwnProperty(t)){var o=Xt[t];delete Xt[t],o.forEach((function(t){return t()}))}},Jt=function(t){return this.fromWireType(M[t>>2])},Yt=function(t,r,e,n){Ht.varargs=n;try{r=Ht.getStr(r),r=Ht.calculateAt(t,r);var o=n?Ht.get():0;return Nt.open(r,e,o).fd}catch(t){if(void 0===Nt||"ErrnoError"!==t.name)throw t;return-t.errno}},Vt=function(t,r,e){Ht.varargs=e;try{var n=Ht.getStreamFromFD(t);switch(r){case 21509:case 21510:case 21511:case 21512:case 21524:case 21515:return n.tty?0:-59;case 21505:if(!n.tty)return-59;if(n.tty.ops.ioctl_tcgets){var o=n.tty.ops.ioctl_tcgets(n),a=Ht.getp();M[a>>2]=o.c_iflag||0,M[a+4>>2]=o.c_oflag||0,M[a+8>>2]=o.c_cflag||0,M[a+12>>2]=o.c_lflag||0;for(var i=0;i<32;i++)F[a+i+17|0]=o.c_cc[i]||0;return 0}return 0;case 21506:case 21507:case 21508:if(!n.tty)return-59;if(n.tty.ops.ioctl_tcsets){a=Ht.getp();var s=M[a>>2],u=M[a+4>>2],c=M[a+8>>2],f=M[a+12>>2],l=[];for(i=0;i<32;i++)l.push(F[a+i+17|0]);return n.tty.ops.ioctl_tcsets(n.tty,r,{c_iflag:s,c_oflag:u,c_cflag:c,c_lflag:f,c_cc:l})}return 0;case 21519:return n.tty?(a=Ht.getp(),M[a>>2]=0,0):-59;case 21520:return n.tty?-28:-59;case 21531:return a=Ht.getp(),Nt.ioctl(n,r,a);case 21523:if(!n.tty)return-59;if(n.tty.ops.ioctl_tiocgwinsz){var p=n.tty.ops.ioctl_tiocgwinsz(n.tty);a=Ht.getp(),j[a>>1]=p[0],j[a+2>>1]=p[1]}return 0;default:return-28}}catch(t){if(void 0===Nt||"ErrnoError"!==t.name)throw t;return-t.errno}},Bt=function(t,r,e){Ht.varargs=e;try{var n=Ht.getStreamFromFD(t);switch(r){case 0:if((o=Ht.get())<0)return-28;for(;Nt.streams[o];)o++;return Nt.createStream(n,o).fd;case 1:case 2:case 6:case 7:return 0;case 3:return n.flags;case 4:var o=Ht.get();return n.flags|=o,0;case 5:return o=Ht.getp(),j[o+0>>1]=2,0;case 16:case 8:default:return-28;case 9:return mt(28),-1}}catch(t){if(void 0===Nt||"ErrnoError"!==t.name)throw t;return-t.errno}},Ct=function(t,r,e){var n=e>0?e:kt(t)+1,o=new Array(n),a=Pt(t,o,0,o.length);return r&&(o.length=a),o},ht=function(t){this.excPtr=t,this.ptr=t-24,this.set_type=function(t){O[this.ptr+4>>2]=t},this.get_type=function(){return O[this.ptr+4>>2]},this.set_destructor=function(t){O[this.ptr+8>>2]=t},this.get_destructor=function(){return O[this.ptr+8>>2]},this.set_caught=function(t){t=t?1:0,F[this.ptr+12|0]=t},this.get_caught=function(){return 0!=F[this.ptr+12|0]},this.set_rethrown=function(t){t=t?1:0,F[this.ptr+13|0]=t},this.get_rethrown=function(){return 0!=F[this.ptr+13|0]},this.init=function(t,r){this.set_adjusted_ptr(0),this.set_type(t),this.set_destructor(r)},this.set_adjusted_ptr=function(t){O[this.ptr+16>>2]=t},this.get_adjusted_ptr=function(){return O[this.ptr+16>>2]},this.get_exception_ptr=function(){if(Qn(this.get_type()))return O[this.excPtr>>2];var t=this.get_adjusted_ptr();return 0!==t?t:this.excPtr}},dt=function(){tt("missing function: _ZNSt3__212basic_stringIcNS_11char_traitsIcEENS_9allocatorIcEEE9__grow_byEmmmmmm")},ut=function(){var t={a:Vn};function r(t,r){return Yn=t.exports,P=Yn.X,$(),Qr=Yn._,V(Yn.Y),K("wasm-instantiate"),Yn}if(Z("wasm-instantiate"),e.instantiateWasm)try{return e.instantiateWasm(t,r)}catch(t){I("Module.instantiateWasm callback failed with error: ".concat(t)),o(t)}return st(k,nt,t,(function(t){r(t.instance)})).catch(o),{}},st=function(t,r,e,n){return t||"function"!=typeof WebAssembly.instantiateStreaming||rt(r)||et(r)||f||"function"!=typeof fetch?it(r,e,n):fetch(r,{credentials:"same-origin"}).then((function(t){return WebAssembly.instantiateStreaming(t,e).then(n,(function(t){return I("wasm streaming compile failed: ".concat(t)),I("falling back to ArrayBuffer instantiation"),it(r,e,n)}))}))},it=function(t,r,e){return at(t).then((function(t){return WebAssembly.instantiate(t,r)})).then((function(t){return t})).then(e,(function(t){I("failed to asynchronously prepare wasm: ".concat(t)),tt(t)}))},at=function(t){if(!k&&(s||c)){if("function"==typeof fetch&&!et(t))return fetch(t,{credentials:"same-origin"}).then((function(r){if(!r.ok)throw"failed to load wasm binary file at '"+t+"'";return r.arrayBuffer()})).catch((function(){return ot(t)}));if(v)return new Promise((function(r,e){v(t,(function(t){return r(new Uint8Array(t))}),e)}))}return Promise.resolve().then((function(){return ot(t)}))},ot=function(t){if(t==nt&&k)return new Uint8Array(k);if(m)return m(t);throw"both async and sync fetching of the wasm failed"},tt=function(t){e.onAbort&&e.onAbort(t),I(t="Aborted("+t+")"),S=!0,t+=". Build with -sASSERTIONS for more info.";var r=new WebAssembly.RuntimeError(t);throw o(r),r},K=function(t){if(q--,e.monitorRunDependencies&&e.monitorRunDependencies(q),0==q&&(null!==J&&(clearInterval(J),J=null),X)){var r=X;X=null,r()}},Z=function(t){q++,e.monitorRunDependencies&&e.monitorRunDependencies(q)},Q=function(t){return t},Y=function(t){U.unshift(t)},V=function(t){z.unshift(t)},B=function(t){L.unshift(t)},H=function(){if(e.postRun)for("function"==typeof e.postRun&&(e.postRun=[e.postRun]);e.postRun.length;)Y(e.postRun.shift());lt(U)},W=function(){e.noFSInit||Nt.init.initialized||Nt.init(),Nt.ignorePermissions=!1,jt.init(),lt(z)},N=function(){if(e.preRun)for("function"==typeof e.preRun&&(e.preRun=[e.preRun]);e.preRun.length;)B(e.preRun.shift());lt(L)},$=function(){var t=P.buffer;e.HEAP8=F=new Int8Array(t),e.HEAP16=j=new Int16Array(t),e.HEAPU8=D=new Uint8Array(t),e.HEAPU16=A=new Uint16Array(t),e.HEAP32=M=new Int32Array(t),e.HEAPU32=O=new Uint32Array(t),e.HEAPF32=x=new Float32Array(t),e.HEAPF64=R=new Float64Array(t)},C=function(t,r){t||tt(r)},p=function(t){return e.locateFile?e.locateFile(t,l):l+t},(e=r=to.length>0&&void 0!==to[0]?to[0]:{}).ready=new Promise((function(t,r){n=t,o=r})),(e=void 0!==e?e:{}).locateFile=function(t,r){return"jessibuca-pro-face-detector-decoder.wasm"==t&&"undefined"!=typeof JESSIBUCA_PRO_FACE_DETECTOR_WASM_URL&&""!=JESSIBUCA_PRO_FACE_DETECTOR_WASM_URL?JESSIBUCA_PRO_FACE_DETECTOR_WASM_URL:r+t},a=Object.assign({},e),i="./this.program",s="object"==("undefined"==typeof window?"undefined":d(window)),c="function"==typeof importScripts,f="object"==("undefined"==typeof process?"undefined":d(process))&&"object"==d(process.versions)&&"string"==typeof process.versions.node,l="",!f){t.next=76;break}return t.next=61,import("module");case 61:y=t.sent,g=y.createRequire,w=g("undefined"==typeof document&&"undefined"==typeof location?new(require("url").URL)("file:"+__filename).href:"undefined"==typeof document?location.href:document.currentScript&&document.currentScript.src||new URL("jessibuca-pro-face-detector-demo.js",document.baseURI).href),b=w("fs"),_=w("path"),l=c?_.dirname(l)+"/":w("url").fileURLToPath(new URL("./","undefined"==typeof document&&"undefined"==typeof location?new(require("url").URL)("file:"+__filename).href:"undefined"==typeof document?location.href:document.currentScript&&document.currentScript.src||new URL("jessibuca-pro-face-detector-demo.js",document.baseURI).href)),h=function(t,r){return t=et(t)?new URL(t):_.normalize(t),b.readFileSync(t,r?void 0:"utf8")},m=function(t){var r=h(t,!0);return r.buffer||(r=new Uint8Array(r)),r},v=function(t,r,e){var n=!(arguments.length>3&&void 0!==arguments[3])||arguments[3];t=et(t)?new URL(t):_.normalize(t),b.readFile(t,n?void 0:"utf8",(function(t,o){t?e(t):r(n?o.buffer:o)}))},!e.thisProgram&&process.argv.length>1&&(i=process.argv[1].replace(/\\/g,"/")),process.argv.slice(2),e.inspect=function(){return"[Emscripten Module object]"},t.next=77;break;case 76:(s||c)&&(c?l=self.location.href:"undefined"!=typeof document&&document.currentScript&&(l=document.currentScript.src),Ft&&(l=Ft),l=0!==l.indexOf("blob:")?l.substr(0,l.replace(/[?#].*/,"").lastIndexOf("/")+1):"",h=function(t){var r=new XMLHttpRequest;return r.open("GET",t,!1),r.send(null),r.responseText},c&&(m=function(t){var r=new XMLHttpRequest;return r.open("GET",t,!1),r.responseType="arraybuffer",r.send(null),new Uint8Array(r.response)}),v=function(t,r,e){var n=new XMLHttpRequest;n.open("GET",t,!0),n.responseType="arraybuffer",n.onload=function(){200==n.status||0==n.status&&n.response?r(n.response):e()},n.onerror=e,n.send(null)});case 77:if(E=e.print||console.log.bind(console),I=e.printErr||console.error.bind(console),Object.assign(e,a),a=null,e.arguments&&e.arguments,e.thisProgram&&(i=e.thisProgram),e.quit&&e.quit,e.wasmBinary&&(k=e.wasmBinary),"object"!=("undefined"==typeof WebAssembly?"undefined":d(WebAssembly))&&tt("no native wasm support detected"),S=!1,L=[],z=[],U=[],q=0,J=null,X=null,rt=function(t){return t.startsWith("data:application/octet-stream;base64,")},et=function(t){return t.startsWith("file://")},e.locateFile?rt(nt="jessibuca-pro-face-detector-decoder.wasm")||(nt=p(nt)):nt=new URL("jessibuca-pro-face-detector-decoder.wasm","undefined"==typeof document&&"undefined"==typeof location?new(require("url").URL)("file:"+__filename).href:"undefined"==typeof document?location.href:document.currentScript&&document.currentScript.src||new URL("jessibuca-pro-face-detector-demo.js",document.baseURI).href).href,lt=function(t){for(;t.length>0;)t.shift()(e)},e.noExitRuntime,dt.stub=!0,vt=function(t,r,e){throw new ht(t).init(r,e),t},mt=function(t){return M[Jn()>>2]=t,t},yt={isAbs:function(t){return"/"===t.charAt(0)},splitPath:function(t){return/^(\/?|)([\s\S]*?)((?:\.{1,2}|[^\/]+?|)(\.[^.\/]*|))(?:[\/]*)$/.exec(t).slice(1)},normalizeArray:function(t,r){for(var e=0,n=t.length-1;n>=0;n--){var o=t[n];"."===o?t.splice(n,1):".."===o?(t.splice(n,1),e++):e&&(t.splice(n,1),e--)}if(r)for(;e;e--)t.unshift("..");return t},normalize:function(t){var r=yt.isAbs(t),e="/"===t.substr(-1);return(t=yt.normalizeArray(t.split("/").filter((function(t){return!!t})),!r).join("/"))||r||(t="."),t&&e&&(t+="/"),(r?"/":"")+t},dirname:function(t){var r=yt.splitPath(t),e=r[0],n=r[1];return e||n?(n&&(n=n.substr(0,n.length-1)),e+n):"."},basename:function(t){if("/"===t)return"/";var r=(t=(t=yt.normalize(t)).replace(/\/$/,"")).lastIndexOf("/");return-1===r?t:t.substr(r+1)},join:function(){var t=Array.prototype.slice.call(arguments);return yt.normalize(t.join("/"))},join2:function(t,r){return yt.normalize(t+"/"+r)}},gt=function(){if("object"==("undefined"==typeof crypto?"undefined":d(crypto))&&"function"==typeof crypto.getRandomValues)return function(t){return crypto.getRandomValues(t)};if(f)try{var t=w("crypto");if(t.randomFillSync)return function(r){return t.randomFillSync(r)};var r=t.randomBytes;return function(t){return t.set(r(t.byteLength)),t}}catch(t){}tt("initRandomDevice")},wt=function(t){return(wt=gt())(t)},bt={resolve:function(){for(var t="",r=!1,e=arguments.length-1;e>=-1&&!r;e--){var n=e>=0?arguments[e]:Nt.cwd();if("string"!=typeof n)throw new TypeError("Arguments to path.resolve must be strings");if(!n)return"";t=n+"/"+t,r=yt.isAbs(n)}return(r?"/":"")+(t=yt.normalizeArray(t.split("/").filter((function(t){return!!t})),!r).join("/"))||"."},relative:function(t,r){function e(t){for(var r=0;r<t.length&&""===t[r];r++);for(var e=t.length-1;e>=0&&""===t[e];e--);return r>e?[]:t.slice(r,e-r+1)}t=bt.resolve(t).substr(1),r=bt.resolve(r).substr(1);for(var n=e(t.split("/")),o=e(r.split("/")),a=Math.min(n.length,o.length),i=a,s=0;s<a;s++)if(n[s]!==o[s]){i=s;break}var u=[];for(s=i;s<n.length;s++)u.push("..");return(u=u.concat(o.slice(i))).join("/")}},_t="undefined"!=typeof TextDecoder?new TextDecoder("utf8"):void 0,Et=function(t,r,e){for(var n=r+e,o=r;t[o]&&!(o>=n);)++o;if(o-r>16&&t.buffer&&_t)return _t.decode(t.subarray(r,o));for(var a="";r<o;){var i=t[r++];if(128&i){var s=63&t[r++];if(192!=(224&i)){var u=63&t[r++];if((i=224==(240&i)?(15&i)<<12|s<<6|u:(7&i)<<18|s<<12|u<<6|63&t[r++])<65536)a+=String.fromCharCode(i);else{var c=i-65536;a+=String.fromCharCode(55296|c>>10,56320|1023&c)}}else a+=String.fromCharCode((31&i)<<6|s)}else a+=String.fromCharCode(i)}return a},It=[],kt=function(t){for(var r=0,e=0;e<t.length;++e){var n=t.charCodeAt(e);n<=127?r++:n<=2047?r+=2:n>=55296&&n<=57343?(r+=4,++e):r+=3}return r},Pt=function(t,r,e,n){if(!(n>0))return 0;for(var o=e,a=e+n-1,i=0;i<t.length;++i){var s=t.charCodeAt(i);if(s>=55296&&s<=57343&&(s=65536+((1023&s)<<10)|1023&t.charCodeAt(++i)),s<=127){if(e>=a)break;r[e++]=s}else if(s<=2047){if(e+1>=a)break;r[e++]=192|s>>6,r[e++]=128|63&s}else if(s<=65535){if(e+2>=a)break;r[e++]=224|s>>12,r[e++]=128|s>>6&63,r[e++]=128|63&s}else{if(e+3>=a)break;r[e++]=240|s>>18,r[e++]=128|s>>12&63,r[e++]=128|s>>6&63,r[e++]=128|63&s}}return r[e]=0,e-o},Dt=function(){if(!It.length){var t=null;if(f){var r=Buffer.alloc(256),e=0,n=process.stdin.fd;try{e=b.readSync(n,r)}catch(t){if(!t.toString().includes("EOF"))throw t;e=0}t=e>0?r.slice(0,e).toString("utf-8"):null}else"undefined"!=typeof window&&"function"==typeof window.prompt?null!==(t=window.prompt("Input: "))&&(t+="\n"):"function"==typeof readline&&null!==(t=readline())&&(t+="\n");if(!t)return null;It=Ct(t,!0)}return It.shift()},jt={ttys:[],init:function(){},shutdown:function(){},register:function(t,r){jt.ttys[t]={input:[],output:[],ops:r},Nt.registerDevice(t,jt.stream_ops)},stream_ops:{open:function(t){var r=jt.ttys[t.node.rdev];if(!r)throw new Nt.ErrnoError(43);t.tty=r,t.seekable=!1},close:function(t){t.tty.ops.fsync(t.tty)},fsync:function(t){t.tty.ops.fsync(t.tty)},read:function(t,r,e,n,o){if(!t.tty||!t.tty.ops.get_char)throw new Nt.ErrnoError(60);for(var a=0,i=0;i<n;i++){var s;try{s=t.tty.ops.get_char(t.tty)}catch(t){throw new Nt.ErrnoError(29)}if(void 0===s&&0===a)throw new Nt.ErrnoError(6);if(null==s)break;a++,r[e+i]=s}return a&&(t.node.timestamp=Date.now()),a},write:function(t,r,e,n,o){if(!t.tty||!t.tty.ops.put_char)throw new Nt.ErrnoError(60);try{for(var a=0;a<n;a++)t.tty.ops.put_char(t.tty,r[e+a])}catch(t){throw new Nt.ErrnoError(29)}return n&&(t.node.timestamp=Date.now()),a}},default_tty_ops:{get_char:function(t){return Dt()},put_char:function(t,r){null===r||10===r?(E(Et(t.output,0)),t.output=[]):0!=r&&t.output.push(r)},fsync:function(t){t.output&&t.output.length>0&&(E(Et(t.output,0)),t.output=[])},ioctl_tcgets:function(t){return{c_iflag:25856,c_oflag:5,c_cflag:191,c_lflag:35387,c_cc:[3,28,127,21,4,0,1,0,17,19,26,0,18,15,23,22,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0]}},ioctl_tcsets:function(t,r,e){return 0},ioctl_tiocgwinsz:function(t){return[24,80]}},default_tty1_ops:{put_char:function(t,r){null===r||10===r?(I(Et(t.output,0)),t.output=[]):0!=r&&t.output.push(r)},fsync:function(t){t.output&&t.output.length>0&&(I(Et(t.output,0)),t.output=[])}}},At=function(t){tt()},Mt={ops_table:null,mount:function(t){return Mt.createNode(null,"/",16895,0)},createNode:function(t,r,e,n){if(Nt.isBlkdev(e)||Nt.isFIFO(e))throw new Nt.ErrnoError(63);Mt.ops_table||(Mt.ops_table={dir:{node:{getattr:Mt.node_ops.getattr,setattr:Mt.node_ops.setattr,lookup:Mt.node_ops.lookup,mknod:Mt.node_ops.mknod,rename:Mt.node_ops.rename,unlink:Mt.node_ops.unlink,rmdir:Mt.node_ops.rmdir,readdir:Mt.node_ops.readdir,symlink:Mt.node_ops.symlink},stream:{llseek:Mt.stream_ops.llseek}},file:{node:{getattr:Mt.node_ops.getattr,setattr:Mt.node_ops.setattr},stream:{llseek:Mt.stream_ops.llseek,read:Mt.stream_ops.read,write:Mt.stream_ops.write,allocate:Mt.stream_ops.allocate,mmap:Mt.stream_ops.mmap,msync:Mt.stream_ops.msync}},link:{node:{getattr:Mt.node_ops.getattr,setattr:Mt.node_ops.setattr,readlink:Mt.node_ops.readlink},stream:{}},chrdev:{node:{getattr:Mt.node_ops.getattr,setattr:Mt.node_ops.setattr},stream:Nt.chrdev_stream_ops}});var o=Nt.createNode(t,r,e,n);return Nt.isDir(o.mode)?(o.node_ops=Mt.ops_table.dir.node,o.stream_ops=Mt.ops_table.dir.stream,o.contents={}):Nt.isFile(o.mode)?(o.node_ops=Mt.ops_table.file.node,o.stream_ops=Mt.ops_table.file.stream,o.usedBytes=0,o.contents=null):Nt.isLink(o.mode)?(o.node_ops=Mt.ops_table.link.node,o.stream_ops=Mt.ops_table.link.stream):Nt.isChrdev(o.mode)&&(o.node_ops=Mt.ops_table.chrdev.node,o.stream_ops=Mt.ops_table.chrdev.stream),o.timestamp=Date.now(),t&&(t.contents[r]=o,t.timestamp=o.timestamp),o},getFileDataAsTypedArray:function(t){return t.contents?t.contents.subarray?t.contents.subarray(0,t.usedBytes):new Uint8Array(t.contents):new Uint8Array(0)},expandFileStorage:function(t,r){var e=t.contents?t.contents.length:0;if(!(e>=r)){r=Math.max(r,e*(e<1048576?2:1.125)>>>0),0!=e&&(r=Math.max(r,256));var n=t.contents;t.contents=new Uint8Array(r),t.usedBytes>0&&t.contents.set(n.subarray(0,t.usedBytes),0)}},resizeFileStorage:function(t,r){if(t.usedBytes!=r)if(0==r)t.contents=null,t.usedBytes=0;else{var e=t.contents;t.contents=new Uint8Array(r),e&&t.contents.set(e.subarray(0,Math.min(r,t.usedBytes))),t.usedBytes=r}},node_ops:{getattr:function(t){var r={};return r.dev=Nt.isChrdev(t.mode)?t.id:1,r.ino=t.id,r.mode=t.mode,r.nlink=1,r.uid=0,r.gid=0,r.rdev=t.rdev,Nt.isDir(t.mode)?r.size=4096:Nt.isFile(t.mode)?r.size=t.usedBytes:Nt.isLink(t.mode)?r.size=t.link.length:r.size=0,r.atime=new Date(t.timestamp),r.mtime=new Date(t.timestamp),r.ctime=new Date(t.timestamp),r.blksize=4096,r.blocks=Math.ceil(r.size/r.blksize),r},setattr:function(t,r){void 0!==r.mode&&(t.mode=r.mode),void 0!==r.timestamp&&(t.timestamp=r.timestamp),void 0!==r.size&&Mt.resizeFileStorage(t,r.size)},lookup:function(t,r){throw Nt.genericErrors[44]},mknod:function(t,r,e,n){return Mt.createNode(t,r,e,n)},rename:function(t,r,e){if(Nt.isDir(t.mode)){var n;try{n=Nt.lookupNode(r,e)}catch(t){}if(n)for(var o in n.contents)throw new Nt.ErrnoError(55)}delete t.parent.contents[t.name],t.parent.timestamp=Date.now(),t.name=e,r.contents[e]=t,r.timestamp=t.parent.timestamp,t.parent=r},unlink:function(t,r){delete t.contents[r],t.timestamp=Date.now()},rmdir:function(t,r){var e=Nt.lookupNode(t,r);for(var n in e.contents)throw new Nt.ErrnoError(55);delete t.contents[r],t.timestamp=Date.now()},readdir:function(t){var r=[".",".."];for(var e in t.contents)t.contents.hasOwnProperty(e)&&r.push(e);return r},symlink:function(t,r,e){var n=Mt.createNode(t,r,41471,0);return n.link=e,n},readlink:function(t){if(!Nt.isLink(t.mode))throw new Nt.ErrnoError(28);return t.link}},stream_ops:{read:function(t,r,e,n,o){var a=t.node.contents;if(o>=t.node.usedBytes)return 0;var i=Math.min(t.node.usedBytes-o,n);if(i>8&&a.subarray)r.set(a.subarray(o,o+i),e);else for(var s=0;s<i;s++)r[e+s]=a[o+s];return i},write:function(t,r,e,n,o,a){if(!n)return 0;var i=t.node;if(i.timestamp=Date.now(),r.subarray&&(!i.contents||i.contents.subarray)){if(a)return i.contents=r.subarray(e,e+n),i.usedBytes=n,n;if(0===i.usedBytes&&0===o)return i.contents=r.slice(e,e+n),i.usedBytes=n,n;if(o+n<=i.usedBytes)return i.contents.set(r.subarray(e,e+n),o),n}if(Mt.expandFileStorage(i,o+n),i.contents.subarray&&r.subarray)i.contents.set(r.subarray(e,e+n),o);else for(var s=0;s<n;s++)i.contents[o+s]=r[e+s];return i.usedBytes=Math.max(i.usedBytes,o+n),n},llseek:function(t,r,e){var n=r;if(1===e?n+=t.position:2===e&&Nt.isFile(t.node.mode)&&(n+=t.node.usedBytes),n<0)throw new Nt.ErrnoError(28);return n},allocate:function(t,r,e){Mt.expandFileStorage(t.node,r+e),t.node.usedBytes=Math.max(t.node.usedBytes,r+e)},mmap:function(t,r,e,n,o){if(!Nt.isFile(t.node.mode))throw new Nt.ErrnoError(43);var a,i,s=t.node.contents;if(2&o||s.buffer!==F.buffer){if((e>0||e+r<s.length)&&(s=s.subarray?s.subarray(e,e+r):Array.prototype.slice.call(s,e,e+r)),i=!0,!(a=At()))throw new Nt.ErrnoError(48);F.set(s,a)}else i=!1,a=s.byteOffset;return{ptr:a,allocated:i}},msync:function(t,r,e,n,o){return Mt.stream_ops.write(t,r,0,n,e,!1),0}}},Ot=function(t,r,e,n){var o=n?"":Q("al ".concat(t));v(t,(function(e){C(e,'Loading data file "'.concat(t,'" failed (no arrayBuffer).')),r(new Uint8Array(e)),o&&K(o)}),(function(r){if(!e)throw'Loading data file "'.concat(t,'" failed.');e()})),o&&Z(o)},xt=function(t,r,e,n,o,a){Nt.createDataFile(t,r,e,n,o,a)},Rt=e.preloadPlugins||[],$t=function(t,r,e,n){"undefined"!=typeof Browser&&Browser.init();var o=!1;return Rt.forEach((function(a){o||a.canHandle(r)&&(a.handle(t,r,e,n),o=!0)})),o},Lt=function(t,r,e,n,o,a,i,s,u,c){var f=r?bt.resolve(yt.join2(t,r)):t,l=Q("cp ".concat(f));function p(e){function p(e){c&&c(),s||xt(t,r,e,n,o,u),a&&a(),K(l)}$t(e,f,p,(function(){i&&i(),K(l)}))||p(e)}Z(l),"string"==typeof e?Ot(e,(function(t){return p(t)}),i):p(e)},zt=function(t){var r={r:0,"r+":2,w:577,"w+":578,a:1089,"a+":1090}[t];if(void 0===r)throw new Error("Unknown file open mode: ".concat(t));return r},Ut=function(t,r){var e=0;return t&&(e|=365),r&&(e|=146),e},Nt={root:null,mounts:[],devices:{},streams:[],nextInode:1,nameTable:null,currentPath:"/",initialized:!1,ignorePermissions:!0,ErrnoError:null,genericErrors:{},filesystems:null,syncFSRequests:0,lookupPath:function(t){var r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};if(!(t=bt.resolve(t)))return{path:"",node:null};if((r=Object.assign({follow_mount:!0,recurse_count:0},r)).recurse_count>8)throw new Nt.ErrnoError(32);for(var e=t.split("/").filter((function(t){return!!t})),n=Nt.root,o="/",a=0;a<e.length;a++){var i=a===e.length-1;if(i&&r.parent)break;if(n=Nt.lookupNode(n,e[a]),o=yt.join2(o,e[a]),Nt.isMountpoint(n)&&(!i||i&&r.follow_mount)&&(n=n.mounted.root),!i||r.follow)for(var s=0;Nt.isLink(n.mode);){var u=Nt.readlink(o);if(o=bt.resolve(yt.dirname(o),u),n=Nt.lookupPath(o,{recurse_count:r.recurse_count+1}).node,s++>40)throw new Nt.ErrnoError(32)}}return{path:o,node:n}},getPath:function(t){for(var r;;){if(Nt.isRoot(t)){var e=t.mount.mountpoint;return r?"/"!==e[e.length-1]?"".concat(e,"/").concat(r):e+r:e}r=r?"".concat(t.name,"/").concat(r):t.name,t=t.parent}},hashName:function(t,r){for(var e=0,n=0;n<r.length;n++)e=(e<<5)-e+r.charCodeAt(n)|0;return(t+e>>>0)%Nt.nameTable.length},hashAddNode:function(t){var r=Nt.hashName(t.parent.id,t.name);t.name_next=Nt.nameTable[r],Nt.nameTable[r]=t},hashRemoveNode:function(t){var r=Nt.hashName(t.parent.id,t.name);if(Nt.nameTable[r]===t)Nt.nameTable[r]=t.name_next;else for(var e=Nt.nameTable[r];e;){if(e.name_next===t){e.name_next=t.name_next;break}e=e.name_next}},lookupNode:function(t,r){var e=Nt.mayLookup(t);if(e)throw new Nt.ErrnoError(e,t);for(var n=Nt.hashName(t.id,r),o=Nt.nameTable[n];o;o=o.name_next){var a=o.name;if(o.parent.id===t.id&&a===r)return o}return Nt.lookup(t,r)},createNode:function(t,r,e,n){var o=new Nt.FSNode(t,r,e,n);return Nt.hashAddNode(o),o},destroyNode:function(t){Nt.hashRemoveNode(t)},isRoot:function(t){return t===t.parent},isMountpoint:function(t){return!!t.mounted},isFile:function(t){return 32768==(61440&t)},isDir:function(t){return 16384==(61440&t)},isLink:function(t){return 40960==(61440&t)},isChrdev:function(t){return 8192==(61440&t)},isBlkdev:function(t){return 24576==(61440&t)},isFIFO:function(t){return 4096==(61440&t)},isSocket:function(t){return!(49152&~t)},flagsToPermissionString:function(t){var r=["r","w","rw"][3&t];return 512&t&&(r+="w"),r},nodePermissions:function(t,r){return Nt.ignorePermissions||(!r.includes("r")||292&t.mode)&&(!r.includes("w")||146&t.mode)&&(!r.includes("x")||73&t.mode)?0:2},mayLookup:function(t){var r=Nt.nodePermissions(t,"x");return r||(t.node_ops.lookup?0:2)},mayCreate:function(t,r){try{return Nt.lookupNode(t,r),20}catch(t){}return Nt.nodePermissions(t,"wx")},mayDelete:function(t,r,e){var n;try{n=Nt.lookupNode(t,r)}catch(t){return t.errno}var o=Nt.nodePermissions(t,"wx");if(o)return o;if(e){if(!Nt.isDir(n.mode))return 54;if(Nt.isRoot(n)||Nt.getPath(n)===Nt.cwd())return 10}else if(Nt.isDir(n.mode))return 31;return 0},mayOpen:function(t,r){return t?Nt.isLink(t.mode)?32:Nt.isDir(t.mode)&&("r"!==Nt.flagsToPermissionString(r)||512&r)?31:Nt.nodePermissions(t,Nt.flagsToPermissionString(r)):44},MAX_OPEN_FDS:4096,nextfd:function(){for(var t=0;t<=Nt.MAX_OPEN_FDS;t++)if(!Nt.streams[t])return t;throw new Nt.ErrnoError(33)},getStreamChecked:function(t){var r=Nt.getStream(t);if(!r)throw new Nt.ErrnoError(8);return r},getStream:function(t){return Nt.streams[t]},createStream:function(t){var r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:-1;return Nt.FSStream||(Nt.FSStream=function(){this.shared={}},Nt.FSStream.prototype={},Object.defineProperties(Nt.FSStream.prototype,{object:{get:function(){return this.node},set:function(t){this.node=t}},isRead:{get:function(){return 1!=(2097155&this.flags)}},isWrite:{get:function(){return!!(2097155&this.flags)}},isAppend:{get:function(){return 1024&this.flags}},flags:{get:function(){return this.shared.flags},set:function(t){this.shared.flags=t}},position:{get:function(){return this.shared.position},set:function(t){this.shared.position=t}}})),t=Object.assign(new Nt.FSStream,t),-1==r&&(r=Nt.nextfd()),t.fd=r,Nt.streams[r]=t,t},closeStream:function(t){Nt.streams[t]=null},chrdev_stream_ops:{open:function(t){var r=Nt.getDevice(t.node.rdev);t.stream_ops=r.stream_ops,t.stream_ops.open&&t.stream_ops.open(t)},llseek:function(){throw new Nt.ErrnoError(70)}},major:function(t){return t>>8},minor:function(t){return 255&t},makedev:function(t,r){return t<<8|r},registerDevice:function(t,r){Nt.devices[t]={stream_ops:r}},getDevice:function(t){return Nt.devices[t]},getMounts:function(t){for(var r=[],e=[t];e.length;){var n=e.pop();r.push(n),e.push.apply(e,n.mounts)}return r},syncfs:function(t,r){"function"==typeof t&&(r=t,t=!1),Nt.syncFSRequests++,Nt.syncFSRequests>1&&I("warning: ".concat(Nt.syncFSRequests," FS.syncfs operations in flight at once, probably just doing extra work"));var e=Nt.getMounts(Nt.root.mount),n=0;function o(t){return Nt.syncFSRequests--,r(t)}function a(t){if(t)return a.errored?void 0:(a.errored=!0,o(t));++n>=e.length&&o(null)}e.forEach((function(r){if(!r.type.syncfs)return a(null);r.type.syncfs(r,t,a)}))},mount:function(t,r,e){var n,o="/"===e,a=!e;if(o&&Nt.root)throw new Nt.ErrnoError(10);if(!o&&!a){var i=Nt.lookupPath(e,{follow_mount:!1});if(e=i.path,n=i.node,Nt.isMountpoint(n))throw new Nt.ErrnoError(10);if(!Nt.isDir(n.mode))throw new Nt.ErrnoError(54)}var s={type:t,opts:r,mountpoint:e,mounts:[]},u=t.mount(s);return u.mount=s,s.root=u,o?Nt.root=u:n&&(n.mounted=s,n.mount&&n.mount.mounts.push(s)),u},unmount:function(t){var r=Nt.lookupPath(t,{follow_mount:!1});if(!Nt.isMountpoint(r.node))throw new Nt.ErrnoError(28);var e=r.node,n=e.mounted,o=Nt.getMounts(n);Object.keys(Nt.nameTable).forEach((function(t){for(var r=Nt.nameTable[t];r;){var e=r.name_next;o.includes(r.mount)&&Nt.destroyNode(r),r=e}})),e.mounted=null;var a=e.mount.mounts.indexOf(n);e.mount.mounts.splice(a,1)},lookup:function(t,r){return t.node_ops.lookup(t,r)},mknod:function(t,r,e){var n=Nt.lookupPath(t,{parent:!0}).node,o=yt.basename(t);if(!o||"."===o||".."===o)throw new Nt.ErrnoError(28);var a=Nt.mayCreate(n,o);if(a)throw new Nt.ErrnoError(a);if(!n.node_ops.mknod)throw new Nt.ErrnoError(63);return n.node_ops.mknod(n,o,r,e)},create:function(t,r){return r=void 0!==r?r:438,r&=4095,r|=32768,Nt.mknod(t,r,0)},mkdir:function(t,r){return r=void 0!==r?r:511,r&=1023,r|=16384,Nt.mknod(t,r,0)},mkdirTree:function(t,r){for(var e=t.split("/"),n="",o=0;o<e.length;++o)if(e[o]){n+="/"+e[o];try{Nt.mkdir(n,r)}catch(t){if(20!=t.errno)throw t}}},mkdev:function(t,r,e){return void 0===e&&(e=r,r=438),r|=8192,Nt.mknod(t,r,e)},symlink:function(t,r){if(!bt.resolve(t))throw new Nt.ErrnoError(44);var e=Nt.lookupPath(r,{parent:!0}).node;if(!e)throw new Nt.ErrnoError(44);var n=yt.basename(r),o=Nt.mayCreate(e,n);if(o)throw new Nt.ErrnoError(o);if(!e.node_ops.symlink)throw new Nt.ErrnoError(63);return e.node_ops.symlink(e,n,t)},rename:function(t,r){var e,n,o=yt.dirname(t),a=yt.dirname(r),i=yt.basename(t),s=yt.basename(r);if(e=Nt.lookupPath(t,{parent:!0}).node,n=Nt.lookupPath(r,{parent:!0}).node,!e||!n)throw new Nt.ErrnoError(44);if(e.mount!==n.mount)throw new Nt.ErrnoError(75);var u,c=Nt.lookupNode(e,i),f=bt.relative(t,a);if("."!==f.charAt(0))throw new Nt.ErrnoError(28);if("."!==(f=bt.relative(r,o)).charAt(0))throw new Nt.ErrnoError(55);try{u=Nt.lookupNode(n,s)}catch(t){}if(c!==u){var l=Nt.isDir(c.mode),p=Nt.mayDelete(e,i,l);if(p)throw new Nt.ErrnoError(p);if(p=u?Nt.mayDelete(n,s,l):Nt.mayCreate(n,s))throw new Nt.ErrnoError(p);if(!e.node_ops.rename)throw new Nt.ErrnoError(63);if(Nt.isMountpoint(c)||u&&Nt.isMountpoint(u))throw new Nt.ErrnoError(10);if(n!==e&&(p=Nt.nodePermissions(e,"w")))throw new Nt.ErrnoError(p);Nt.hashRemoveNode(c);try{e.node_ops.rename(c,n,s)}catch(t){throw t}finally{Nt.hashAddNode(c)}}},rmdir:function(t){var r=Nt.lookupPath(t,{parent:!0}).node,e=yt.basename(t),n=Nt.lookupNode(r,e),o=Nt.mayDelete(r,e,!0);if(o)throw new Nt.ErrnoError(o);if(!r.node_ops.rmdir)throw new Nt.ErrnoError(63);if(Nt.isMountpoint(n))throw new Nt.ErrnoError(10);r.node_ops.rmdir(r,e),Nt.destroyNode(n)},readdir:function(t){var r=Nt.lookupPath(t,{follow:!0}).node;if(!r.node_ops.readdir)throw new Nt.ErrnoError(54);return r.node_ops.readdir(r)},unlink:function(t){var r=Nt.lookupPath(t,{parent:!0}).node;if(!r)throw new Nt.ErrnoError(44);var e=yt.basename(t),n=Nt.lookupNode(r,e),o=Nt.mayDelete(r,e,!1);if(o)throw new Nt.ErrnoError(o);if(!r.node_ops.unlink)throw new Nt.ErrnoError(63);if(Nt.isMountpoint(n))throw new Nt.ErrnoError(10);r.node_ops.unlink(r,e),Nt.destroyNode(n)},readlink:function(t){var r=Nt.lookupPath(t).node;if(!r)throw new Nt.ErrnoError(44);if(!r.node_ops.readlink)throw new Nt.ErrnoError(28);return bt.resolve(Nt.getPath(r.parent),r.node_ops.readlink(r))},stat:function(t,r){var e=Nt.lookupPath(t,{follow:!r}).node;if(!e)throw new Nt.ErrnoError(44);if(!e.node_ops.getattr)throw new Nt.ErrnoError(63);return e.node_ops.getattr(e)},lstat:function(t){return Nt.stat(t,!0)},chmod:function(t,r,e){var n;if(!(n="string"==typeof t?Nt.lookupPath(t,{follow:!e}).node:t).node_ops.setattr)throw new Nt.ErrnoError(63);n.node_ops.setattr(n,{mode:4095&r|-4096&n.mode,timestamp:Date.now()})},lchmod:function(t,r){Nt.chmod(t,r,!0)},fchmod:function(t,r){var e=Nt.getStreamChecked(t);Nt.chmod(e.node,r)},chown:function(t,r,e,n){var o;if(!(o="string"==typeof t?Nt.lookupPath(t,{follow:!n}).node:t).node_ops.setattr)throw new Nt.ErrnoError(63);o.node_ops.setattr(o,{timestamp:Date.now()})},lchown:function(t,r,e){Nt.chown(t,r,e,!0)},fchown:function(t,r,e){var n=Nt.getStreamChecked(t);Nt.chown(n.node,r,e)},truncate:function(t,r){if(r<0)throw new Nt.ErrnoError(28);var e;if(!(e="string"==typeof t?Nt.lookupPath(t,{follow:!0}).node:t).node_ops.setattr)throw new Nt.ErrnoError(63);if(Nt.isDir(e.mode))throw new Nt.ErrnoError(31);if(!Nt.isFile(e.mode))throw new Nt.ErrnoError(28);var n=Nt.nodePermissions(e,"w");if(n)throw new Nt.ErrnoError(n);e.node_ops.setattr(e,{size:r,timestamp:Date.now()})},ftruncate:function(t,r){var e=Nt.getStreamChecked(t);if(!(2097155&e.flags))throw new Nt.ErrnoError(28);Nt.truncate(e.node,r)},utime:function(t,r,e){var n=Nt.lookupPath(t,{follow:!0}).node;n.node_ops.setattr(n,{timestamp:Math.max(r,e)})},open:function(t,r,n){if(""===t)throw new Nt.ErrnoError(44);var o;if(n=void 0===n?438:n,n=64&(r="string"==typeof r?zt(r):r)?4095&n|32768:0,"object"==d(t))o=t;else{t=yt.normalize(t);try{o=Nt.lookupPath(t,{follow:!(131072&r)}).node}catch(t){}}var a=!1;if(64&r)if(o){if(128&r)throw new Nt.ErrnoError(20)}else o=Nt.mknod(t,n,0),a=!0;if(!o)throw new Nt.ErrnoError(44);if(Nt.isChrdev(o.mode)&&(r&=-513),65536&r&&!Nt.isDir(o.mode))throw new Nt.ErrnoError(54);if(!a){var i=Nt.mayOpen(o,r);if(i)throw new Nt.ErrnoError(i)}512&r&&!a&&Nt.truncate(o,0),r&=-131713;var s=Nt.createStream({node:o,path:Nt.getPath(o),flags:r,seekable:!0,position:0,stream_ops:o.stream_ops,ungotten:[],error:!1});return s.stream_ops.open&&s.stream_ops.open(s),!e.logReadFiles||1&r||(Nt.readFiles||(Nt.readFiles={}),t in Nt.readFiles||(Nt.readFiles[t]=1)),s},close:function(t){if(Nt.isClosed(t))throw new Nt.ErrnoError(8);t.getdents&&(t.getdents=null);try{t.stream_ops.close&&t.stream_ops.close(t)}catch(t){throw t}finally{Nt.closeStream(t.fd)}t.fd=null},isClosed:function(t){return null===t.fd},llseek:function(t,r,e){if(Nt.isClosed(t))throw new Nt.ErrnoError(8);if(!t.seekable||!t.stream_ops.llseek)throw new Nt.ErrnoError(70);if(0!=e&&1!=e&&2!=e)throw new Nt.ErrnoError(28);return t.position=t.stream_ops.llseek(t,r,e),t.ungotten=[],t.position},read:function(t,r,e,n,o){if(n<0||o<0)throw new Nt.ErrnoError(28);if(Nt.isClosed(t))throw new Nt.ErrnoError(8);if(1==(2097155&t.flags))throw new Nt.ErrnoError(8);if(Nt.isDir(t.node.mode))throw new Nt.ErrnoError(31);if(!t.stream_ops.read)throw new Nt.ErrnoError(28);var a=void 0!==o;if(a){if(!t.seekable)throw new Nt.ErrnoError(70)}else o=t.position;var i=t.stream_ops.read(t,r,e,n,o);return a||(t.position+=i),i},write:function(t,r,e,n,o,a){if(n<0||o<0)throw new Nt.ErrnoError(28);if(Nt.isClosed(t))throw new Nt.ErrnoError(8);if(!(2097155&t.flags))throw new Nt.ErrnoError(8);if(Nt.isDir(t.node.mode))throw new Nt.ErrnoError(31);if(!t.stream_ops.write)throw new Nt.ErrnoError(28);t.seekable&&1024&t.flags&&Nt.llseek(t,0,2);var i=void 0!==o;if(i){if(!t.seekable)throw new Nt.ErrnoError(70)}else o=t.position;var s=t.stream_ops.write(t,r,e,n,o,a);return i||(t.position+=s),s},allocate:function(t,r,e){if(Nt.isClosed(t))throw new Nt.ErrnoError(8);if(r<0||e<=0)throw new Nt.ErrnoError(28);if(!(2097155&t.flags))throw new Nt.ErrnoError(8);if(!Nt.isFile(t.node.mode)&&!Nt.isDir(t.node.mode))throw new Nt.ErrnoError(43);if(!t.stream_ops.allocate)throw new Nt.ErrnoError(138);t.stream_ops.allocate(t,r,e)},mmap:function(t,r,e,n,o){if(2&n&&!(2&o)&&2!=(2097155&t.flags))throw new Nt.ErrnoError(2);if(1==(2097155&t.flags))throw new Nt.ErrnoError(2);if(!t.stream_ops.mmap)throw new Nt.ErrnoError(43);return t.stream_ops.mmap(t,r,e,n,o)},msync:function(t,r,e,n,o){return t.stream_ops.msync?t.stream_ops.msync(t,r,e,n,o):0},munmap:function(t){return 0},ioctl:function(t,r,e){if(!t.stream_ops.ioctl)throw new Nt.ErrnoError(59);return t.stream_ops.ioctl(t,r,e)},readFile:function(t){var r,e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};if(e.flags=e.flags||0,e.encoding=e.encoding||"binary","utf8"!==e.encoding&&"binary"!==e.encoding)throw new Error('Invalid encoding type "'.concat(e.encoding,'"'));var n=Nt.open(t,e.flags),o=Nt.stat(t).size,a=new Uint8Array(o);return Nt.read(n,a,0,o,0),"utf8"===e.encoding?r=Et(a,0):"binary"===e.encoding&&(r=a),Nt.close(n),r},writeFile:function(t,r){var e=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};e.flags=e.flags||577;var n=Nt.open(t,e.flags,e.mode);if("string"==typeof r){var o=new Uint8Array(kt(r)+1),a=Pt(r,o,0,o.length);Nt.write(n,o,0,a,void 0,e.canOwn)}else{if(!ArrayBuffer.isView(r))throw new Error("Unsupported data type");Nt.write(n,r,0,r.byteLength,void 0,e.canOwn)}Nt.close(n)},cwd:function(){return Nt.currentPath},chdir:function(t){var r=Nt.lookupPath(t,{follow:!0});if(null===r.node)throw new Nt.ErrnoError(44);if(!Nt.isDir(r.node.mode))throw new Nt.ErrnoError(54);var e=Nt.nodePermissions(r.node,"x");if(e)throw new Nt.ErrnoError(e);Nt.currentPath=r.path},createDefaultDirectories:function(){Nt.mkdir("/tmp"),Nt.mkdir("/home"),Nt.mkdir("/home/web_user")},createDefaultDevices:function(){Nt.mkdir("/dev"),Nt.registerDevice(Nt.makedev(1,3),{read:function(){return 0},write:function(t,r,e,n,o){return n}}),Nt.mkdev("/dev/null",Nt.makedev(1,3)),jt.register(Nt.makedev(5,0),jt.default_tty_ops),jt.register(Nt.makedev(6,0),jt.default_tty1_ops),Nt.mkdev("/dev/tty",Nt.makedev(5,0)),Nt.mkdev("/dev/tty1",Nt.makedev(6,0));var t=new Uint8Array(1024),r=0,e=function(){return 0===r&&(r=wt(t).byteLength),t[--r]};Nt.createDevice("/dev","random",e),Nt.createDevice("/dev","urandom",e),Nt.mkdir("/dev/shm"),Nt.mkdir("/dev/shm/tmp")},createSpecialDirectories:function(){Nt.mkdir("/proc");var t=Nt.mkdir("/proc/self");Nt.mkdir("/proc/self/fd"),Nt.mount({mount:function(){var r=Nt.createNode(t,"fd",16895,73);return r.node_ops={lookup:function(t,r){var e=+r,n=Nt.getStreamChecked(e),o={parent:null,mount:{mountpoint:"fake"},node_ops:{readlink:function(){return n.path}}};return o.parent=o,o}},r}},{},"/proc/self/fd")},createStandardStreams:function(){e.stdin?Nt.createDevice("/dev","stdin",e.stdin):Nt.symlink("/dev/tty","/dev/stdin"),e.stdout?Nt.createDevice("/dev","stdout",null,e.stdout):Nt.symlink("/dev/tty","/dev/stdout"),e.stderr?Nt.createDevice("/dev","stderr",null,e.stderr):Nt.symlink("/dev/tty1","/dev/stderr"),Nt.open("/dev/stdin",0),Nt.open("/dev/stdout",1),Nt.open("/dev/stderr",1)},ensureErrnoError:function(){Nt.ErrnoError||(Nt.ErrnoError=function(t,r){this.name="ErrnoError",this.node=r,this.setErrno=function(t){this.errno=t},this.setErrno(t),this.message="FS error"},Nt.ErrnoError.prototype=new Error,Nt.ErrnoError.prototype.constructor=Nt.ErrnoError,[44].forEach((function(t){Nt.genericErrors[t]=new Nt.ErrnoError(t),Nt.genericErrors[t].stack="<generic error, no stack>"})))},staticInit:function(){Nt.ensureErrnoError(),Nt.nameTable=new Array(4096),Nt.mount(Mt,{},"/"),Nt.createDefaultDirectories(),Nt.createDefaultDevices(),Nt.createSpecialDirectories(),Nt.filesystems={MEMFS:Mt}},init:function(t,r,n){Nt.init.initialized=!0,Nt.ensureErrnoError(),e.stdin=t||e.stdin,e.stdout=r||e.stdout,e.stderr=n||e.stderr,Nt.createStandardStreams()},quit:function(){Nt.init.initialized=!1;for(var t=0;t<Nt.streams.length;t++){var r=Nt.streams[t];r&&Nt.close(r)}},findObject:function(t,r){var e=Nt.analyzePath(t,r);return e.exists?e.object:null},analyzePath:function(t,r){try{t=(n=Nt.lookupPath(t,{follow:!r})).path}catch(t){}var e={isRoot:!1,exists:!1,error:0,name:null,path:null,object:null,parentExists:!1,parentPath:null,parentObject:null};try{var n=Nt.lookupPath(t,{parent:!0});e.parentExists=!0,e.parentPath=n.path,e.parentObject=n.node,e.name=yt.basename(t),n=Nt.lookupPath(t,{follow:!r}),e.exists=!0,e.path=n.path,e.object=n.node,e.name=n.node.name,e.isRoot="/"===n.path}catch(t){e.error=t.errno}return e},createPath:function(t,r,e,n){t="string"==typeof t?t:Nt.getPath(t);for(var o=r.split("/").reverse();o.length;){var a=o.pop();if(a){var i=yt.join2(t,a);try{Nt.mkdir(i)}catch(t){}t=i}}return i},createFile:function(t,r,e,n,o){var a=yt.join2("string"==typeof t?t:Nt.getPath(t),r),i=Ut(n,o);return Nt.create(a,i)},createDataFile:function(t,r,e,n,o,a){var i=r;t&&(t="string"==typeof t?t:Nt.getPath(t),i=r?yt.join2(t,r):t);var s=Ut(n,o),u=Nt.create(i,s);if(e){if("string"==typeof e){for(var c=new Array(e.length),f=0,l=e.length;f<l;++f)c[f]=e.charCodeAt(f);e=c}Nt.chmod(u,146|s);var p=Nt.open(u,577);Nt.write(p,e,0,e.length,0,a),Nt.close(p),Nt.chmod(u,s)}},createDevice:function(t,r,e,n){var o=yt.join2("string"==typeof t?t:Nt.getPath(t),r),a=Ut(!!e,!!n);Nt.createDevice.major||(Nt.createDevice.major=64);var i=Nt.makedev(Nt.createDevice.major++,0);return Nt.registerDevice(i,{open:function(t){t.seekable=!1},close:function(t){n&&n.buffer&&n.buffer.length&&n(10)},read:function(t,r,n,o,a){for(var i=0,s=0;s<o;s++){var u;try{u=e()}catch(t){throw new Nt.ErrnoError(29)}if(void 0===u&&0===i)throw new Nt.ErrnoError(6);if(null==u)break;i++,r[n+s]=u}return i&&(t.node.timestamp=Date.now()),i},write:function(t,r,e,o,a){for(var i=0;i<o;i++)try{n(r[e+i])}catch(t){throw new Nt.ErrnoError(29)}return o&&(t.node.timestamp=Date.now()),i}}),Nt.mkdev(o,a,i)},forceLoadFile:function(t){if(t.isDevice||t.isFolder||t.link||t.contents)return!0;if("undefined"!=typeof XMLHttpRequest)throw new Error("Lazy loading should have been performed (contents set) in createLazyFile, but it was not. Lazy loading only works in web workers. Use --embed-file or --preload-file in emcc on the main thread.");if(!h)throw new Error("Cannot load without read() or XMLHttpRequest.");try{t.contents=Ct(h(t.url),!0),t.usedBytes=t.contents.length}catch(t){throw new Nt.ErrnoError(29)}},createLazyFile:function(t,r,e,n,o){function a(){this.lengthKnown=!1,this.chunks=[]}if(a.prototype.get=function(t){if(!(t>this.length-1||t<0)){var r=t%this.chunkSize,e=t/this.chunkSize|0;return this.getter(e)[r]}},a.prototype.setDataGetter=function(t){this.getter=t},a.prototype.cacheLength=function(){var t=new XMLHttpRequest;if(t.open("HEAD",e,!1),t.send(null),!(t.status>=200&&t.status<300||304===t.status))throw new Error("Couldn't load "+e+". Status: "+t.status);var r,n=Number(t.getResponseHeader("Content-length")),o=(r=t.getResponseHeader("Accept-Ranges"))&&"bytes"===r,a=(r=t.getResponseHeader("Content-Encoding"))&&"gzip"===r,i=1048576;o||(i=n);var s=this;s.setDataGetter((function(t){var r=t*i,o=(t+1)*i-1;if(o=Math.min(o,n-1),void 0===s.chunks[t]&&(s.chunks[t]=function(t,r){if(t>r)throw new Error("invalid range ("+t+", "+r+") or no bytes requested!");if(r>n-1)throw new Error("only "+n+" bytes available! programmer error!");var o=new XMLHttpRequest;if(o.open("GET",e,!1),n!==i&&o.setRequestHeader("Range","bytes="+t+"-"+r),o.responseType="arraybuffer",o.overrideMimeType&&o.overrideMimeType("text/plain; charset=x-user-defined"),o.send(null),!(o.status>=200&&o.status<300||304===o.status))throw new Error("Couldn't load "+e+". Status: "+o.status);return void 0!==o.response?new Uint8Array(o.response||[]):Ct(o.responseText||"",!0)}(r,o)),void 0===s.chunks[t])throw new Error("doXHR failed!");return s.chunks[t]})),!a&&n||(i=n=1,n=this.getter(0).length,i=n,E("LazyFiles on gzip forces download of the whole file when length is accessed")),this._length=n,this._chunkSize=i,this.lengthKnown=!0},"undefined"!=typeof XMLHttpRequest){if(!c)throw"Cannot do synchronous binary XHRs outside webworkers in modern browsers. Use --embed-file or --preload-file in emcc";var i=new a;Object.defineProperties(i,{length:{get:function(){return this.lengthKnown||this.cacheLength(),this._length}},chunkSize:{get:function(){return this.lengthKnown||this.cacheLength(),this._chunkSize}}});var s={isDevice:!1,contents:i}}else s={isDevice:!1,url:e};var u=Nt.createFile(t,r,s,n,o);s.contents?u.contents=s.contents:s.url&&(u.contents=null,u.url=s.url),Object.defineProperties(u,{usedBytes:{get:function(){return this.contents.length}}});var f={};function l(t,r,e,n,o){var a=t.node.contents;if(o>=a.length)return 0;var i=Math.min(a.length-o,n);if(a.slice)for(var s=0;s<i;s++)r[e+s]=a[o+s];else for(s=0;s<i;s++)r[e+s]=a.get(o+s);return i}return Object.keys(u.stream_ops).forEach((function(t){var r=u.stream_ops[t];f[t]=function(){return Nt.forceLoadFile(u),r.apply(null,arguments)}})),f.read=function(t,r,e,n,o){return Nt.forceLoadFile(u),l(t,r,e,n,o)},f.mmap=function(t,r,e,n,o){Nt.forceLoadFile(u);var a=At();if(!a)throw new Nt.ErrnoError(48);return l(t,F,a,r,e),{ptr:a,allocated:!0}},u.stream_ops=f,u}},Wt=function(t,r){return t?Et(D,t,r):""},Ht={DEFAULT_POLLMASK:5,calculateAt:function(t,r,e){if(yt.isAbs(r))return r;var n;if(n=-100===t?Nt.cwd():Ht.getStreamFromFD(t).path,0==r.length){if(!e)throw new Nt.ErrnoError(44);return n}return yt.join2(n,r)},doStat:function(t,r,e){try{var n=t(r)}catch(t){if(t&&t.node&&yt.normalize(r)!==yt.normalize(Nt.getPath(t.node)))return-54;throw t}M[e>>2]=n.dev,M[e+4>>2]=n.mode,O[e+8>>2]=n.nlink,M[e+12>>2]=n.uid,M[e+16>>2]=n.gid,M[e+20>>2]=n.rdev,ft=[n.size>>>0,(ct=n.size,+Math.abs(ct)>=1?ct>0?+Math.floor(ct/4294967296)>>>0:~~+Math.ceil((ct-+(~~ct>>>0))/4294967296)>>>0:0)],M[e+24>>2]=ft[0],M[e+28>>2]=ft[1],M[e+32>>2]=4096,M[e+36>>2]=n.blocks;var o=n.atime.getTime(),a=n.mtime.getTime(),i=n.ctime.getTime();return ft=[Math.floor(o/1e3)>>>0,(ct=Math.floor(o/1e3),+Math.abs(ct)>=1?ct>0?+Math.floor(ct/4294967296)>>>0:~~+Math.ceil((ct-+(~~ct>>>0))/4294967296)>>>0:0)],M[e+40>>2]=ft[0],M[e+44>>2]=ft[1],O[e+48>>2]=o%1e3*1e3,ft=[Math.floor(a/1e3)>>>0,(ct=Math.floor(a/1e3),+Math.abs(ct)>=1?ct>0?+Math.floor(ct/4294967296)>>>0:~~+Math.ceil((ct-+(~~ct>>>0))/4294967296)>>>0:0)],M[e+56>>2]=ft[0],M[e+60>>2]=ft[1],O[e+64>>2]=a%1e3*1e3,ft=[Math.floor(i/1e3)>>>0,(ct=Math.floor(i/1e3),+Math.abs(ct)>=1?ct>0?+Math.floor(ct/4294967296)>>>0:~~+Math.ceil((ct-+(~~ct>>>0))/4294967296)>>>0:0)],M[e+72>>2]=ft[0],M[e+76>>2]=ft[1],O[e+80>>2]=i%1e3*1e3,ft=[n.ino>>>0,(ct=n.ino,+Math.abs(ct)>=1?ct>0?+Math.floor(ct/4294967296)>>>0:~~+Math.ceil((ct-+(~~ct>>>0))/4294967296)>>>0:0)],M[e+88>>2]=ft[0],M[e+92>>2]=ft[1],0},doMsync:function(t,r,e,n,o){if(!Nt.isFile(r.node.mode))throw new Nt.ErrnoError(43);if(2&n)return 0;var a=D.slice(t,t+e);Nt.msync(r,a,o,e,n)},varargs:void 0,get:function(){var t=M[+Ht.varargs>>2];return Ht.varargs+=4,t},getp:function(){return Ht.get()},getStr:function(t){return Wt(t)},getStreamFromFD:function(t){return Nt.getStreamChecked(t)}},qt={},Gt=function(t){for(;t.length;){var r=t.pop();t.pop()(r)}},Xt={},Qt={},Zt={},tr=function(t){throw new Kt(t)},rr=function(t,r,e){function n(r){var n=e(r);n.length!==t.length&&tr("Mismatched type converter count");for(var o=0;o<t.length;++o)fr(t[o],n[o])}t.forEach((function(t){Zt[t]=r}));var o=new Array(r.length),a=[],i=0;r.forEach((function(t,r){Qt.hasOwnProperty(t)?o[r]=Qt[t]:(a.push(t),Xt.hasOwnProperty(t)||(Xt[t]=[]),Xt[t].push((function(){o[r]=Qt[t],++i===a.length&&n(o)})))})),0===a.length&&n(o)},er=function(t){var r=qt[t];delete qt[t];var e=r.rawConstructor,n=r.rawDestructor,o=r.fields,a=o.map((function(t){return t.getterReturnType})).concat(o.map((function(t){return t.setterArgumentType})));rr([t],a,(function(t){var a={};return o.forEach((function(r,e){var n=r.fieldName,i=t[e],s=r.getter,u=r.getterContext,c=t[e+o.length],f=r.setter,l=r.setterContext;a[n]={read:function(t){return i.fromWireType(s(u,t))},write:function(t,r){var e=[];f(l,t,c.toWireType(e,r)),Gt(e)}}})),[{name:r.name,fromWireType:function(t){var r={};for(var e in a)r[e]=a[e].read(t);return n(t),r},toWireType:function(t,r){for(var o in a)if(!(o in r))throw new TypeError('Missing field: "'.concat(o,'"'));var i=e();for(o in a)a[o].write(i,r[o]);return null!==t&&t.push(n,i),i},argPackAdvance:lr,readValueFromPointer:Jt,destructorFunction:n}]}))},nr=function(t,r,e,n,o){},or=function(){for(var t=new Array(256),r=0;r<256;++r)t[r]=String.fromCharCode(r);ar=t},ir=function(t){for(var r="",e=t;D[e];)r+=ar[D[e++]];return r},ur=function(t){throw new sr(t)},lr=8,pr=function(t,r,e,n){r=ir(r),fr(t,{name:r,fromWireType:function(t){return!!t},toWireType:function(t,r){return r?e:n},argPackAdvance:lr,readValueFromPointer:function(t){return this.fromWireType(D[t])},destructorFunction:null})},dr=function(t){return{count:t.count,deleteScheduled:t.deleteScheduled,preservePointerOnDelete:t.preservePointerOnDelete,ptr:t.ptr,ptrType:t.ptrType,smartPtr:t.smartPtr,smartPtrType:t.smartPtrType}},hr=function(t){ur(t.$$.ptrType.registeredClass.name+" instance already deleted")},vr=!1,mr=function(t){},yr=function(t){t.smartPtr?t.smartPtrType.rawDestructor(t.smartPtr):t.ptrType.registeredClass.rawDestructor(t.ptr)},gr=function(t){t.count.value-=1,0===t.count.value&&yr(t)},wr=function(t,r,e){if(r===e)return t;if(void 0===e.baseClass)return null;var n=wr(t,r,e.baseClass);return null===n?null:e.downcast(n)},br={},_r=function(){return Object.keys(Cr).length},Er=function(){var t=[];for(var r in Cr)Cr.hasOwnProperty(r)&&t.push(Cr[r]);return t},Ir=[],kr=function(){for(;Ir.length;){var t=Ir.pop();t.$$.deleteScheduled=!1,t.delete()}},Tr=function(t){Pr=t,Ir.length&&Pr&&Pr(kr)},Sr=function(){e.getInheritedInstanceCount=_r,e.getLiveInheritedInstances=Er,e.flushPendingDeletes=kr,e.setDelayFunction=Tr},Cr={},Fr=function(t,r){for(void 0===r&&ur("ptr should not be undefined");t.baseClass;)r=t.upcast(r),t=t.baseClass;return r},Dr=function(t,r){return r=Fr(t,r),Cr[r]},jr=function(t,r){return r.ptrType&&r.ptr||tr("makeClassHandle requires ptr and ptrType"),!!r.smartPtrType!=!!r.smartPtr&&tr("Both smartPtrType and smartPtr must be specified"),r.count={value:1},Mr(Object.create(t,{$$:{value:r}}))},Mr=function(t){return"undefined"==typeof FinalizationRegistry?(Mr=function(t){return t},t):(vr=new FinalizationRegistry((function(t){gr(t.$$)})),Mr=function(t){var r=t.$$;if(r.smartPtr){var e={$$:r};vr.register(t,e,t)}return t},mr=function(t){return vr.unregister(t)},Mr(t))},Or=function(){Object.assign(xr.prototype,{isAliasOf:function(t){if(!(this instanceof xr))return!1;if(!(t instanceof xr))return!1;var r=this.$$.ptrType.registeredClass,e=this.$$.ptr;t.$$=t.$$;for(var n=t.$$.ptrType.registeredClass,o=t.$$.ptr;r.baseClass;)e=r.upcast(e),r=r.baseClass;for(;n.baseClass;)o=n.upcast(o),n=n.baseClass;return r===n&&e===o},clone:function(){if(this.$$.ptr||hr(this),this.$$.preservePointerOnDelete)return this.$$.count.value+=1,this;var t=Mr(Object.create(Object.getPrototypeOf(this),{$$:{value:dr(this.$$)}}));return t.$$.count.value+=1,t.$$.deleteScheduled=!1,t},delete:function(){this.$$.ptr||hr(this),this.$$.deleteScheduled&&!this.$$.preservePointerOnDelete&&ur("Object already scheduled for deletion"),mr(this),gr(this.$$),this.$$.preservePointerOnDelete||(this.$$.smartPtr=void 0,this.$$.ptr=void 0)},isDeleted:function(){return!this.$$.ptr},deleteLater:function(){return this.$$.ptr||hr(this),this.$$.deleteScheduled&&!this.$$.preservePointerOnDelete&&ur("Object already scheduled for deletion"),Ir.push(this),1===Ir.length&&Pr&&Pr(kr),this.$$.deleteScheduled=!0,this}})},Rr=function(t,r){return Object.defineProperty(r,"name",{value:t})},$r=function(t,r,e){if(void 0===t[r].overloadTable){var n=t[r];t[r]=function(){return t[r].overloadTable.hasOwnProperty(arguments.length)||ur("Function '".concat(e,"' called with an invalid number of arguments (").concat(arguments.length,") - expects one of (").concat(t[r].overloadTable,")!")),t[r].overloadTable[arguments.length].apply(this,arguments)},t[r].overloadTable=[],t[r].overloadTable[n.argCount]=n}},Lr=function(t,r,n){e.hasOwnProperty(t)?((void 0===n||void 0!==e[t].overloadTable&&void 0!==e[t].overloadTable[n])&&ur("Cannot register public name '".concat(t,"' twice")),$r(e,t,t),e.hasOwnProperty(n)&&ur("Cannot register multiple overloads of a function with the same number of arguments (".concat(n,")!")),e[t].overloadTable[n]=r):(e[t]=r,void 0!==n&&(e[t].numArguments=n))},zr=function(t){if(void 0===t)return"_unknown";var r=(t=t.replace(/[^a-zA-Z0-9_]/g,"$")).charCodeAt(0);return r>=48&&r<=57?"_".concat(t):t},Nr=function(t,r,e){for(;r!==e;)r.upcast||ur("Expected null or instance of ".concat(e.name,", got an instance of ").concat(r.name)),t=r.upcast(t),r=r.baseClass;return t},Yr=function(){Object.assign(qr.prototype,{getPointee:function(t){return this.rawGetPointee&&(t=this.rawGetPointee(t)),t},destructor:function(t){this.rawDestructor&&this.rawDestructor(t)},argPackAdvance:lr,readValueFromPointer:Vr,deleteObject:function(t){null!==t&&t.delete()},fromWireType:Ar})},Gr=function(t,r,n){e.hasOwnProperty(t)||tr("Replacing nonexistant public symbol"),void 0!==e[t].overloadTable&&void 0!==n?e[t].overloadTable[n]=r:(e[t]=r,e[t].argCount=n)},Jr=function(t,r,n){var o=e["dynCall_"+t];return n&&n.length?o.apply(null,[r].concat(n)):o.call(null,r)},Xr=[],Zr=function(t){var r=Xr[t];return r||(t>=Xr.length&&(Xr.length=t+1),Xr[t]=r=Qr.get(t)),r},Kr=function(t,r,e){return t.includes("j")?Jr(t,r,e):Zr(r).apply(null,e)},te=function(t,r){var e=[];return function(){return e.length=0,Object.assign(e,arguments),Kr(t,r,e)}},re=function(t,r){var e=(t=ir(t)).includes("j")?te(t,r):Zr(r);return"function"!=typeof e&&ur("unknown function pointer with signature ".concat(t,": ").concat(r)),e},ee=function(t,r){var e=Rr(r,(function(t){this.name=r,this.message=t;var e=new Error(t).stack;void 0!==e&&(this.stack=this.toString()+"\n"+e.replace(/^Error(:[^\n]*)?\n/,""))}));return e.prototype=Object.create(t.prototype),e.prototype.constructor=e,e.prototype.toString=function(){return void 0===this.message?this.name:"".concat(this.name,": ").concat(this.message)},e},oe=function(t){var r=Xn(t),e=ir(r);return Gn(r),e},ae=function(t,r){var e=[],n={};throw r.forEach((function t(r){n[r]||Qt[r]||(Zt[r]?Zt[r].forEach(t):(e.push(r),n[r]=!0))})),new ne("".concat(t,": ")+e.map(oe).join([", "]))},ie=function(t,r,e,n,o,a,i,s,u,c,f,l,p){f=ir(f),a=re(o,a),s&&(s=re(i,s)),c&&(c=re(u,c)),p=re(l,p);var d=zr(f);Lr(d,(function(){ae("Cannot construct ".concat(f," due to unbound types"),[n])})),rr([t,r,e],n?[n]:[],(function(r){var e,o;r=r[0],o=n?(e=r.registeredClass).instancePrototype:xr.prototype;var i=Rr(f,(function(){if(Object.getPrototypeOf(this)!==u)throw new sr("Use 'new' to construct "+f);if(void 0===l.constructor_body)throw new sr(f+" has no accessible constructor");var t=l.constructor_body[arguments.length];if(void 0===t)throw new sr("Tried to invoke ctor of ".concat(f," with invalid number of parameters (").concat(arguments.length,") - expected (").concat(Object.keys(l.constructor_body).toString(),") parameters instead!"));return t.apply(this,arguments)})),u=Object.create(o,{constructor:{value:i}});i.prototype=u;var l=new Ur(f,i,u,p,e,a,s,c);l.baseClass&&(void 0===l.baseClass.__derivedClasses&&(l.baseClass.__derivedClasses=[]),l.baseClass.__derivedClasses.push(l));var h=new qr(f,l,!0,!1,!1),v=new qr(f+"*",l,!1,!1,!1),m=new qr(f+" const*",l,!1,!0,!1);return br[t]={pointerType:v,constPointerType:m},Gr(d,i),[h,v,m]}))},se=function(t,r){for(var e=[],n=0;n<t;n++)e.push(O[r+4*n>>2]);return e},fe=function(t,r,e,n,o,a){var i=se(r,e);o=re(n,o),rr([],[t],(function(t){t=t[0];var e="constructor ".concat(t.name);if(void 0===t.registeredClass.constructor_body&&(t.registeredClass.constructor_body=[]),void 0!==t.registeredClass.constructor_body[r-1])throw new sr("Cannot register multiple constructors with identical number of parameters (".concat(r-1,") for class '").concat(t.name,"'! Overload resolution is currently only performed using the parameter count, not actual type info!"));return t.registeredClass.constructor_body[r-1]=function(){ae("Cannot construct ".concat(t.name," due to unbound types"),i)},rr([],i,(function(n){return n.splice(1,0,null),t.registeredClass.constructor_body[r-1]=ce(e,n,null,o,a),[]})),[]}))},le=function(t){var r=(t=t.trim()).indexOf("(");return-1!==r?t.substr(0,r):t},pe=function(t,r,e,n,o,a,i,s,u){var c=se(e,n);r=ir(r),r=le(r),a=re(o,a),rr([],[t],(function(t){t=t[0];var n="".concat(t.name,".").concat(r);function o(){ae("Cannot call ".concat(n," due to unbound types"),c)}r.startsWith("@@")&&(r=Symbol[r.substring(2)]),s&&t.registeredClass.pureVirtualFunctions.push(r);var f=t.registeredClass.instancePrototype,l=f[r];return void 0===l||void 0===l.overloadTable&&l.className!==t.name&&l.argCount===e-2?(o.argCount=e-2,o.className=t.name,f[r]=o):($r(f,r,n),f[r].overloadTable[e-2]=o),rr([],c,(function(o){var s=ce(n,o,t,a,i,u);return void 0===f[r].overloadTable?(s.argCount=e-2,f[r]=s):f[r].overloadTable[e-2]=s,[]})),[]}))},ve=new he,me=function(t){t>=ve.reserved&&0==--ve.get(t).refcount&&ve.free(t)},ye=function(){for(var t=0,r=ve.reserved;r<ve.allocated.length;++r)void 0!==ve.allocated[r]&&++t;return t},ge=function(){ve.allocated.push({value:void 0},{value:null},{value:!0},{value:!1}),ve.reserved=ve.allocated.length,e.count_emval_handles=ye},we={toValue:function(t){return t||ur("Cannot use deleted val. handle = "+t),ve.get(t).value},toHandle:function(t){switch(t){case void 0:return 1;case null:return 2;case!0:return 3;case!1:return 4;default:return ve.allocate({refcount:1,value:t})}}},be=function(t,r){r=ir(r),fr(t,{name:r,fromWireType:function(t){var r=we.toValue(t);return me(t),r},toWireType:function(t,r){return we.toHandle(r)},argPackAdvance:lr,readValueFromPointer:Jt,destructorFunction:null})},_e=function(t){if(null===t)return"null";var r=d(t);return"object"===r||"array"===r||"function"===r?t.toString():""+t},Ee=function(t,r){switch(r){case 4:return function(t){return this.fromWireType(x[t>>2])};case 8:return function(t){return this.fromWireType(R[t>>3])};default:throw new TypeError("invalid float width (".concat(r,"): ").concat(t))}},Ie=function(t,r,e){r=ir(r),fr(t,{name:r,fromWireType:function(t){return t},toWireType:function(t,r){return r},argPackAdvance:lr,readValueFromPointer:Ee(r,e),destructorFunction:null})},ke=function(t,r,e){switch(r){case 1:return e?function(t){return F[0|t]}:function(t){return D[0|t]};case 2:return e?function(t){return j[t>>1]}:function(t){return A[t>>1]};case 4:return e?function(t){return M[t>>2]}:function(t){return O[t>>2]};default:throw new TypeError("invalid integer width (".concat(r,"): ").concat(t))}},Pe=function(t,r,e,n,o){r=ir(r);var a=function(t){return t};if(0===n){var i=32-8*e;a=function(t){return t<<i>>>i}}var s=r.includes("unsigned");fr(t,{name:r,fromWireType:a,toWireType:s?function(t,r){return this.name,r>>>0}:function(t,r){return this.name,r},argPackAdvance:lr,readValueFromPointer:ke(r,e,0!==n),destructorFunction:null})},Te=function(t,r,e){var n=[Int8Array,Uint8Array,Int16Array,Uint16Array,Int32Array,Uint32Array,Float32Array,Float64Array][r];function o(t){var r=O[t>>2],e=O[t+4>>2];return new n(F.buffer,e,r)}e=ir(e),fr(t,{name:e,fromWireType:o,argPackAdvance:lr,readValueFromPointer:o},{ignoreDuplicateRegistrations:!0})},Se=function(t,r,e){return Pt(t,D,r,e)},Ce=function(t,r){var e="std::string"===(r=ir(r));fr(t,{name:r,fromWireType:function(t){var r,n=O[t>>2],o=t+4;if(e)for(var a=o,i=0;i<=n;++i){var s=o+i;if(i==n||0==D[s]){var u=Wt(a,s-a);void 0===r?r=u:(r+=String.fromCharCode(0),r+=u),a=s+1}}else{var c=new Array(n);for(i=0;i<n;++i)c[i]=String.fromCharCode(D[o+i]);r=c.join("")}return Gn(t),r},toWireType:function(t,r){var n;r instanceof ArrayBuffer&&(r=new Uint8Array(r));var o="string"==typeof r;o||r instanceof Uint8Array||r instanceof Uint8ClampedArray||r instanceof Int8Array||ur("Cannot pass non-string to std::string"),n=e&&o?kt(r):r.length;var a=qn(4+n+1),i=a+4;if(O[a>>2]=n,e&&o)Se(r,i,n+1);else if(o)for(var s=0;s<n;++s){var u=r.charCodeAt(s);u>255&&(Gn(i),ur("String has UTF-16 code units that do not fit in 8 bits")),D[i+s]=u}else for(s=0;s<n;++s)D[i+s]=r[s];return null!==t&&t.push(Gn,a),a},argPackAdvance:lr,readValueFromPointer:Vr,destructorFunction:function(t){Gn(t)}})},Fe="undefined"!=typeof TextDecoder?new TextDecoder("utf-16le"):void 0,De=function(t,r){for(var e=t,n=e>>1,o=n+r/2;!(n>=o)&&A[n];)++n;if((e=n<<1)-t>32&&Fe)return Fe.decode(D.subarray(t,e));for(var a="",i=0;!(i>=r/2);++i){var s=j[t+2*i>>1];if(0==s)break;a+=String.fromCharCode(s)}return a},je=function(t,r,e){if(void 0===e&&(e=2147483647),e<2)return 0;for(var n=r,o=(e-=2)<2*t.length?e/2:t.length,a=0;a<o;++a){var i=t.charCodeAt(a);j[r>>1]=i,r+=2}return j[r>>1]=0,r-n},Ae=function(t){return 2*t.length},Me=function(t,r){for(var e=0,n="";!(e>=r/4);){var o=M[t+4*e>>2];if(0==o)break;if(++e,o>=65536){var a=o-65536;n+=String.fromCharCode(55296|a>>10,56320|1023&a)}else n+=String.fromCharCode(o)}return n},Oe=function(t,r,e){if(void 0===e&&(e=2147483647),e<4)return 0;for(var n=r,o=n+e-4,a=0;a<t.length;++a){var i=t.charCodeAt(a);if(i>=55296&&i<=57343&&(i=65536+((1023&i)<<10)|1023&t.charCodeAt(++a)),M[r>>2]=i,(r+=4)+4>o)break}return M[r>>2]=0,r-n},xe=function(t){for(var r=0,e=0;e<t.length;++e){var n=t.charCodeAt(e);n>=55296&&n<=57343&&++e,r+=4}return r},Re=function(t,r,e){var n,o,a,i,s;e=ir(e),2===r?(n=De,o=je,i=Ae,a=function(){return A},s=1):4===r&&(n=Me,o=Oe,i=xe,a=function(){return O},s=2),fr(t,{name:e,fromWireType:function(t){for(var e,o=O[t>>2],i=a(),u=t+4,c=0;c<=o;++c){var f=t+4+c*r;if(c==o||0==i[f>>s]){var l=n(u,f-u);void 0===e?e=l:(e+=String.fromCharCode(0),e+=l),u=f+r}}return Gn(t),e},toWireType:function(t,n){"string"!=typeof n&&ur("Cannot pass non-string to C++ string type ".concat(e));var a=i(n),u=qn(4+a+r);return O[u>>2]=a>>s,o(n,u+4,a+r),null!==t&&t.push(Gn,u),u},argPackAdvance:lr,readValueFromPointer:Jt,destructorFunction:function(t){Gn(t)}})},$e=function(t,r,e,n,o,a){qt[t]={name:ir(r),rawConstructor:re(e,n),rawDestructor:re(o,a),fields:[]}},Le=function(t,r,e,n,o,a,i,s,u,c){qt[t].fields.push({fieldName:ir(r),getterReturnType:e,getter:re(n,o),getterContext:a,setterArgumentType:i,setter:re(s,u),setterContext:c})},ze=function(t,r){r=ir(r),fr(t,{isVoid:!0,name:r,argPackAdvance:0,fromWireType:function(){},toWireType:function(t,r){}})},Ue=function(t){do{var r=O[t>>2],e=O[(t+=4)>>2],n=O[(t+=4)>>2];t+=4;var o=Wt(r);Nt.createPath("/",yt.dirname(o),!0,!0),Nt.createDataFile(o,null,F.subarray(n,n+e),!0,!0,!0)}while(O[t>>2])},Ne=function(){return 1},We=function(t,r){var e=Qt[t];return void 0===e&&ur(r+" has unknown type "+oe(t)),e},He=function(t,r,e){var n=[],o=t.toWireType(n,e);return n.length&&(O[r>>2]=we.toHandle(n)),o},Be=function(t,r,e){return t=we.toValue(t),r=We(r,"emval::as"),He(r,e,t)},Ve={},Ye=function(t){var r=Ve[t];return void 0===r?ir(t):r},qe=[],Ge=function(t,r,e,n,o){return(t=qe[t])(r=we.toValue(r),r[e=Ye(e)],n,o)},Je=function(){return"object"==("undefined"==typeof globalThis?"undefined":d(globalThis))?globalThis:Function("return this")()},Xe=function(t){return 0===t?we.toHandle(Je()):(t=Ye(t),we.toHandle(Je()[t]))},Qe=function(t){var r=qe.length;return qe.push(t),r},Ze=function(t,r){for(var e=new Array(t),n=0;n<t;++n)e[n]=We(O[r+4*n>>2],"parameter "+n);return e},Ke=function(t,r,e){var n=Ze(t,r),o=n.shift();t--;var a="return function (obj, func, destructorsRef, args) {\n",i=0,s=[];0===e&&s.push("obj");for(var u=["retType"],c=[o],f=0;f<t;++f)s.push("arg"+f),u.push("argType"+f),c.push(n[f]),a+="  var arg".concat(f," = argType").concat(f,".readValueFromPointer(args").concat(i?"+"+i:"",");\n"),i+=n[f].argPackAdvance;for(a+="  var rv = ".concat(1===e?"new func":"func.call","(").concat(s.join(", "),");\n"),f=0;f<t;++f)n[f].deleteObject&&(a+="  argType".concat(f,".deleteObject(arg").concat(f,");\n"));o.isVoid||(u.push("emval_returnValue"),c.push(He),a+="  return emval_returnValue(retType, destructorsRef, rv);\n"),a+="};\n",u.push(a);var l=ue(Function,u).apply(null,c),p="methodCaller<(".concat(n.map((function(t){return t.name})).join(", "),") => ").concat(o.name,">");return Qe(Rr(p,l))},tn=function(t,r){return t=we.toValue(t),r=we.toValue(r),we.toHandle(t[r])},rn=function(t){t>4&&(ve.get(t).refcount+=1)},en=function(){return we.toHandle([])},nn=function(t){return we.toHandle(Ye(t))},on=function(){return we.toHandle({})},an=function(t){var r=we.toValue(t);Gt(r),me(t)},sn=function(t,r,e){t=we.toValue(t),r=we.toValue(r),e=we.toValue(e),t[r]=e},un=function(t,r){var e=(t=We(t,"_emval_take_value")).readValueFromPointer(r);return we.toHandle(e)},cn=function(t){return t%4==0&&(t%100!=0||t%400==0)},fn=[0,31,60,91,121,152,182,213,244,274,305,335],ln=[0,31,59,90,120,151,181,212,243,273,304,334],pn=function(t){return(cn(t.getFullYear())?fn:ln)[t.getMonth()]+t.getDate()-1},dn=function(t,r){return r+2097152>>>0<4194305-!!t?(t>>>0)+4294967296*r:NaN},vn=function(t){var r=kt(t)+1,e=qn(r);return e&&Se(t,e,r),e},mn=function(t,r,e){var n=(new Date).getFullYear(),o=new Date(n,0,1),a=new Date(n,6,1),i=o.getTimezoneOffset(),s=a.getTimezoneOffset(),u=Math.max(i,s);function c(t){var r=t.toTimeString().match(/\(([A-Za-z ]+)\)$/);return r?r[1]:"GMT"}O[t>>2]=60*u,M[r>>2]=Number(i!=s);var f=c(o),l=c(a),p=vn(f),d=vn(l);s<i?(O[e>>2]=p,O[e+4>>2]=d):(O[e>>2]=d,O[e+4>>2]=p)},yn=function(){tt("")},gn=function(){return Date.now()},wn=function(){return performance.now()},bn=function(t,r,e){return D.copyWithin(t,r,r+e)},_n=function(t){tt("OOM")},En=function(t){D.length,_n()},In={},kn=function(){return i||"./this.program"},Pn=function(){if(!Pn.strings){var t={USER:"web_user",LOGNAME:"web_user",PATH:"/",PWD:"/",HOME:"/home/web_user",LANG:("object"==("undefined"==typeof navigator?"undefined":d(navigator))&&navigator.languages&&navigator.languages[0]||"C").replace("-","_")+".UTF-8",_:kn()};for(var r in In)void 0===In[r]?delete t[r]:t[r]=In[r];var e=[];for(var r in t)e.push("".concat(r,"=").concat(t[r]));Pn.strings=e}return Pn.strings},Tn=function(t,r){for(var e=0;e<t.length;++e)F[0|r++]=t.charCodeAt(e);F[0|r]=0},Sn=function(t,r){var e=0;return Pn().forEach((function(n,o){var a=r+e;O[t+4*o>>2]=a,Tn(n,a),e+=n.length+1})),0},Cn=function(t,r){var e=Pn();O[t>>2]=e.length;var n=0;return e.forEach((function(t){return n+=t.length+1})),O[r>>2]=n,0},Dn=function(t,r,e,n){for(var o=0,a=0;a<e;a++){var i=O[r>>2],s=O[r+4>>2];r+=8;var u=Nt.read(t,F,i,s,n);if(u<0)return-1;if(o+=u,u<s)break;void 0!==n&&(n+=u)}return o},Mn=function(t,r,e,n){for(var o=0,a=0;a<e;a++){var i=O[r>>2],s=O[r+4>>2];r+=8;var u=Nt.write(t,F,i,s,n);if(u<0)return-1;o+=u,void 0!==n&&(n+=u)}return o},xn=function(t,r){for(var e=0,n=0;n<=r;e+=t[n++]);return e},Rn=[31,29,31,30,31,30,31,31,30,31,30,31],$n=[31,28,31,30,31,30,31,31,30,31,30,31],Ln=function(t,r){for(var e=new Date(t.getTime());r>0;){var n=cn(e.getFullYear()),o=e.getMonth(),a=(n?Rn:$n)[o];if(!(r>a-e.getDate()))return e.setDate(e.getDate()+r),e;r-=a-e.getDate()+1,e.setDate(1),o<11?e.setMonth(o+1):(e.setMonth(0),e.setFullYear(e.getFullYear()+1))}return e},zn=function(t,r){F.set(t,r)},Un=function(t,r,e,n){var o=O[n+40>>2],a={tm_sec:M[n>>2],tm_min:M[n+4>>2],tm_hour:M[n+8>>2],tm_mday:M[n+12>>2],tm_mon:M[n+16>>2],tm_year:M[n+20>>2],tm_wday:M[n+24>>2],tm_yday:M[n+28>>2],tm_isdst:M[n+32>>2],tm_gmtoff:M[n+36>>2],tm_zone:o?Wt(o):""},i=Wt(e),s={"%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 u in s)i=i.replace(new RegExp(u,"g"),s[u]);var c=["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],f=["January","February","March","April","May","June","July","August","September","October","November","December"];function l(t,r,e){for(var n="number"==typeof t?t.toString():t||"";n.length<r;)n=e[0]+n;return n}function p(t,r){return l(t,r,"0")}function d(t,r){function e(t){return t<0?-1:t>0?1:0}var n;return 0===(n=e(t.getFullYear()-r.getFullYear()))&&0===(n=e(t.getMonth()-r.getMonth()))&&(n=e(t.getDate()-r.getDate())),n}function h(t){switch(t.getDay()){case 0:return new Date(t.getFullYear()-1,11,29);case 1:return t;case 2:return new Date(t.getFullYear(),0,3);case 3:return new Date(t.getFullYear(),0,2);case 4:return new Date(t.getFullYear(),0,1);case 5:return new Date(t.getFullYear()-1,11,31);case 6:return new Date(t.getFullYear()-1,11,30)}}function v(t){var r=Ln(new Date(t.tm_year+1900,0,1),t.tm_yday),e=new Date(r.getFullYear(),0,4),n=new Date(r.getFullYear()+1,0,4),o=h(e),a=h(n);return d(o,r)<=0?d(a,r)<=0?r.getFullYear()+1:r.getFullYear():r.getFullYear()-1}var m={"%a":function(t){return c[t.tm_wday].substring(0,3)},"%A":function(t){return c[t.tm_wday]},"%b":function(t){return f[t.tm_mon].substring(0,3)},"%B":function(t){return f[t.tm_mon]},"%C":function(t){return p((t.tm_year+1900)/100|0,2)},"%d":function(t){return p(t.tm_mday,2)},"%e":function(t){return l(t.tm_mday,2," ")},"%g":function(t){return v(t).toString().substring(2)},"%G":function(t){return v(t)},"%H":function(t){return p(t.tm_hour,2)},"%I":function(t){var r=t.tm_hour;return 0==r?r=12:r>12&&(r-=12),p(r,2)},"%j":function(t){return p(t.tm_mday+xn(cn(t.tm_year+1900)?Rn:$n,t.tm_mon-1),3)},"%m":function(t){return p(t.tm_mon+1,2)},"%M":function(t){return p(t.tm_min,2)},"%n":function(){return"\n"},"%p":function(t){return t.tm_hour>=0&&t.tm_hour<12?"AM":"PM"},"%S":function(t){return p(t.tm_sec,2)},"%t":function(){return"\t"},"%u":function(t){return t.tm_wday||7},"%U":function(t){var r=t.tm_yday+7-t.tm_wday;return p(Math.floor(r/7),2)},"%V":function(t){var r=Math.floor((t.tm_yday+7-(t.tm_wday+6)%7)/7);if((t.tm_wday+371-t.tm_yday-2)%7<=2&&r++,r){if(53==r){var e=(t.tm_wday+371-t.tm_yday)%7;4==e||3==e&&cn(t.tm_year)||(r=1)}}else{r=52;var n=(t.tm_wday+7-t.tm_yday-1)%7;(4==n||5==n&&cn(t.tm_year%400-1))&&r++}return p(r,2)},"%w":function(t){return t.tm_wday},"%W":function(t){var r=t.tm_yday+7-(t.tm_wday+6)%7;return p(Math.floor(r/7),2)},"%y":function(t){return(t.tm_year+1900).toString().substring(2)},"%Y":function(t){return t.tm_year+1900},"%z":function(t){var r=t.tm_gmtoff,e=r>=0;return r=(r=Math.abs(r)/60)/60*100+r%60,(e?"+":"-")+String("0000"+r).slice(-4)},"%Z":function(t){return t.tm_zone},"%%":function(){return"%"}};for(var u in i=i.replace(/%%/g,"\0\0"),m)i.includes(u)&&(i=i.replace(new RegExp(u,"g"),m[u](a)));i=i.replace(/\0\0/g,"%");var y=Ct(i,!1);return y.length>r?0:(zn(y,t),y.length-1)},Nn=function(t,r,e,n,o){return Un(t,r,e,n)},Wn=function(t,r,e,n){t||(t=this),this.parent=t,this.mount=t.mount,this.mounted=null,this.id=Nt.nextInode++,this.name=r,this.mode=e,this.node_ops={},this.stream_ops={},this.rdev=n},Hn=365,Bn=146,Object.defineProperties(Wn.prototype,{read:{get:function(){return(this.mode&Hn)===Hn},set:function(t){t?this.mode|=Hn:this.mode&=-366}},write:{get:function(){return(this.mode&Bn)===Bn},set:function(t){t?this.mode|=Bn:this.mode&=-147}},isFolder:{get:function(){return Nt.isDir(this.mode)}},isDevice:{get:function(){return Nt.isChrdev(this.mode)}}}),Nt.FSNode=Wn,Nt.createPreloadedFile=Lt,Nt.staticInit(),e.FS_createPath=Nt.createPath,e.FS_createDataFile=Nt.createDataFile,e.FS_createPreloadedFile=Nt.createPreloadedFile,e.FS_unlink=Nt.unlink,e.FS_createLazyFile=Nt.createLazyFile,e.FS_createDevice=Nt.createDevice,Kt=e.InternalError=function(t){function r(t){var e;return u(this,r),(e=St(this,r,[t])).name="InternalError",e}return G(r,t),T(r)}(pt(Error)),or(),sr=e.BindingError=function(t){function r(t){var e;return u(this,r),(e=St(this,r,[t])).name="BindingError",e}return G(r,t),T(r)}(pt(Error)),Or(),Sr(),Yr(),ne=e.UnboundTypeError=ee(Error,"UnboundTypeError"),de(),ge(),Vn={Q:dt,f:vt,t:Bt,I:Vt,s:Yt,T:er,C:nr,N:pr,y:ie,V:fe,l:pe,M:be,v:Ie,d:Pe,b:Te,w:Ce,o:Re,U:$e,k:Le,O:ze,P:Ue,K:Ne,j:Be,i:Ge,a:me,W:Xe,h:Ke,g:tn,n:rn,S:en,c:nn,z:on,e:an,x:sn,R:un,A:hn,F:mn,p:yn,u:gn,J:wn,L:bn,E:En,G:Sn,H:Cn,m:Fn,r:jn,B:An,q:On,D:Nn},Yn=ut(),qn=function(t){return(qn=Yn.Z)(t)},Gn=function(t){return(Gn=Yn.$)(t)},Jn=function(){return(Jn=Yn.aa)()},Xn=function(t){return(Xn=Yn.ba)(t)},Qn=function(t){return(Qn=Yn.ca)(t)},e.dynCall_ji=function(t,r){return(e.dynCall_ji=Yn.da)(t,r)},e.dynCall_jiii=function(t,r,n,o){return(e.dynCall_jiii=Yn.ea)(t,r,n,o)},e.dynCall_jii=function(t,r,n){return(e.dynCall_jii=Yn.fa)(t,r,n)},e.dynCall_viji=function(t,r,n,o,a){return(e.dynCall_viji=Yn.ga)(t,r,n,o,a)},e.dynCall_jiji=function(t,r,n,o,a){return(e.dynCall_jiji=Yn.ha)(t,r,n,o,a)},e.dynCall_viijii=function(t,r,n,o,a,i,s){return(e.dynCall_viijii=Yn.ia)(t,r,n,o,a,i,s)},e.dynCall_iiiiij=function(t,r,n,o,a,i,s){return(e.dynCall_iiiiij=Yn.ja)(t,r,n,o,a,i,s)},e.dynCall_iiiiijj=function(t,r,n,o,a,i,s,u,c){return(e.dynCall_iiiiijj=Yn.ka)(t,r,n,o,a,i,s,u,c)},e.dynCall_iiiiiijj=function(t,r,n,o,a,i,s,u,c,f){return(e.dynCall_iiiiiijj=Yn.la)(t,r,n,o,a,i,s,u,c,f)},e.___emscripten_embedded_file_data=804216,e.addRunDependency=Z,e.removeRunDependency=K,e.FS_createPath=Nt.createPath,e.FS_createLazyFile=Nt.createLazyFile,e.FS_createDevice=Nt.createDevice,e.FS_createPreloadedFile=Nt.createPreloadedFile,e.FS_createDataFile=Nt.createDataFile,e.FS_unlink=Nt.unlink,X=function t(){Zn||Kn(),Zn||(X=t)},e.preInit)for("function"==typeof e.preInit&&(e.preInit=[e.preInit]);e.preInit.length>0;)e.preInit.pop()();return Kn(),t.abrupt("return",r.ready);case 315:case"end":return t.stop()}}),t)}))));function jt(){var t=["718878SKkwAO","ctx","2121882WbmaAr","1659618LYYkTP","apply","371bfamco","24UbbNgm","emit","push","keys","length","slice","7404860JeYFPG","1346556kTsGIr","forEach","5wBisMY","564174HfwzSZ","once","942ApyxFS"];return(jt=function(){return t})()}function At(t,r){var e=jt();return(At=function(t,r){return e[t-=382]})(t,r)}!function(t){for(var r=At,e=t();;)try{if(319355===parseInt(r(396))/1*(parseInt(r(390))/2)+-parseInt(r(388))/3+parseInt(r(385))/4+-parseInt(r(387))/5*(parseInt(r(391))/6)+parseInt(r(393))/7+parseInt(r(397))/8*(parseInt(r(394))/9)+-parseInt(r(384))/10)break;e.push(e.shift())}catch(t){e.push(e.shift())}}(jt);var Mt,Ot=T((function t(){u(this,t)}),[{key:"on",value:function(t,r,e){var n=At,o=this.e||(this.e={});return(o[t]||(o[t]=[]))[n(399)]({fn:r,ctx:e}),this}},{key:(Mt=At)(389),value:function(t,r,e){var n=this;function o(){var a=At;n.off(t,o);for(var i=arguments[a(382)],s=new Array(i),u=0;u<i;u++)s[u]=arguments[u];r[a(395)](e,s)}return o._=r,this.on(t,o,e)}},{key:Mt(398),value:function(t){for(var r=Mt,e=((this.e||(this.e={}))[t]||[])[r(383)](),n=arguments[r(382)],o=new Array(n>1?n-1:0),a=1;a<n;a++)o[a-1]=arguments[a];for(var i=0;i<e[r(382)];i+=1)e[i].fn[r(395)](e[i][r(392)],o);return this}},{key:"off",value:function(t,r){var e=Mt,n=this.e||(this.e={});if(!t)return Object[e(400)](n)[e(386)]((function(t){delete n[t]})),void delete this.e;var o=n[t],a=[];if(o&&r)for(var i=0,s=o[e(382)];i<s;i+=1)o[i].fn!==r&&o[i].fn._!==r&&a[e(399)](o[i]);return a[e(382)]?n[t]=a:delete n[t],this}}]),xt=Lt;!function(t){for(var r=Lt,e=t();;)try{if(382034===parseInt(r(235))/1+parseInt(r(246))/2*(-parseInt(r(241))/3)+-parseInt(r(236))/4+-parseInt(r(244))/5+parseInt(r(243))/6*(-parseInt(r(242))/7)+parseInt(r(237))/8+-parseInt(r(239))/9*(-parseInt(r(238))/10))break;e.push(e.shift())}catch(t){e.push(e.shift())}}(zt);var Rt={debug:xt(245),warn:xt(240)},$t={debug:!1,debugLevel:Rt[xt(240)],debugUuid:""};function Lt(t,r){var e=zt();return(Lt=function(t,r){return e[t-=235]})(t,r)}function zt(){var t=["23068AHzytP","117821rhHLvS","541176ugSdyd","2268104iCQqdn","300lCnUZX","456687uVaSbZ","warn","51hPbFpO","11347mZvIBK","2118TLVaex","3190025qdsHyT","debug"];return(zt=function(){return t})()}function Ut(t,r){var e=Ht();return(Ut=function(t,r){return e[t-=402]})(t,r)}function Nt(t){return!(null==t)}function Wt(t){return e=Ut,!((r=t)&&0===Object[e(415)](r)[e(418)]);var r,e}function Ht(){var t=["206528HycNBF","parse","747600BccDMw","704496rzrozZ","substring","43453iqTOGj","stringify","getContext","width","object","keys","fillStyle","createElement","length","replace","2345312freNha","219415qZgGrN","1384180zHECXg","fillRect","6TQdCaC","data"];return(Ht=function(){return t})()}function Bt(){return function(t){var r=Ut,e="";if(d(t)===r(414))try{e=JSON[r(411)](t),e=JSON[r(406)](e)}catch(r){e=t}else e=t;return e}($t)}function Vt(t,r){var e=Yt();return(Vt=function(t,r){return e[t-=340]})(t,r)}function Yt(){var t=["2MtBeLt","_opt","concat","2426260JOOcSu","9YOgvWS","debugLevel","error","length","898063VlHaRV","5AubHQt","JbPro","12sNjEkn","log","debugUuid","warn","140UDNiQy","5979600jyCcZR","394695iyrbNG","3823516oRnicI","[❗❗❗][imageDetector][","62058QgSsHC","apply","[✅✅✅][imageDetector][","7444151AEVWJj","debug"];return(Yt=function(){return t})()}!function(t){for(var r=Ut,e=t();;)try{if(126042===-parseInt(r(410))/1+parseInt(r(405))/2+-parseInt(r(407))/3+parseInt(r(408))/4+-parseInt(r(421))/5*(-parseInt(r(403))/6)+-parseInt(r(422))/7+parseInt(r(420))/8)break;e.push(e.shift())}catch(t){e.push(e.shift())}}(Ht),function(t){for(var r=Vt,e=t();;)try{if(597082===-parseInt(r(356))/1*(-parseInt(r(348))/2)+parseInt(r(340))/3+-parseInt(r(341))/4*(-parseInt(r(357))/5)+parseInt(r(343))/6*(-parseInt(r(363))/7)+-parseInt(r(364))/8+-parseInt(r(352))/9*(-parseInt(r(351))/10)+parseInt(r(346))/11*(-parseInt(r(359))/12))break;e.push(e.shift())}catch(t){e.push(e.shift())}}(Yt);var qt=T((function t(r){var e=Vt;u(this,t),this[e(360)]=function(t){var n=e;if(r[n(349)].debug&&r[n(349)][n(353)]==Rt[n(347)]){for(var o,a=r._opt[n(361)]?"["[n(350)](r._opt.debugUuid,"]"):"",i=arguments[n(355)],s=new Array(i>1?i-1:0),u=1;u<i;u++)s[u-1]=arguments[u];(o=console)[n(360)][n(344)](o,[n(358)[n(350)](a,n(345))[n(350)](t,"]")][n(350)](s))}},this.warn=function(t){var n=e;if(r._opt[n(347)]&&(r._opt[n(353)]==Rt[n(347)]||r[n(349)][n(353)]==Rt[n(362)])){for(var o,a=r._opt.debugUuid?"["[n(350)](r[n(349)][n(361)],"]"):"",i=arguments[n(355)],s=new Array(i>1?i-1:0),u=1;u<i;u++)s[u-1]=arguments[u];(o=console)[n(360)].apply(o,[n(358)[n(350)](a,n(342))[n(350)](t,"]")][n(350)](s))}},this[e(354)]=function(t){for(var n,o=e,a=r[o(349)][o(361)]?"["[o(350)](r._opt[o(361)],"]"):"",i=arguments[o(355)],s=new Array(i>1?i-1:0),u=1;u<i;u++)s[u-1]=arguments[u];(n=console).error.apply(n,[o(358).concat(a,"[❌❌❌][imageDetector][")[o(350)](t,"]")].concat(s))}})),Gt=Jt;function Jt(t,r){var e=Qt();return(Jt=function(t,r){return e[t-=135]})(t,r)}function Xt(){var t=Jt;try{var r=!Boolean[t(188)].valueOf[t(187)](Reflect[t(192)](Boolean,[],(function(){})))}catch(t){}return(Xt=function(){return!!r})()}function Qt(){var t=["140uvTMvD","load jessibuca face detector error","debug","TAG_NAME","updateConfig","assign","load jessibuca face detector fail","889995QwmhAS","module","2HpfRtA","emit","name","startTimestamp","delete","71170UefJtp","detector","showRect","HEAPU8","clear","_opt","length","off","constructor","buildTime","subarray","118146aefATB","rectangleColor","timeEnd, please contact the author(wx:bosswancheng) to get the new version","faces","FaceDetector","timeEnd","jessibuca-pro-face-detector-info","detectWidth","detect","width","setDetectWidth","call","prototype","load","data","setParams","construct","3275019zHBOSY","catch","then","destroy","concat","JbPro face detector version is ","height","8kvTkoz","3176320gDibOO","now","3490HflHdU","497574klKGmf","error","log","363849bIaTti","validatedFailed","outFaceYUV","JessibucaProFaceDetector","validatedFailed, please contact the author(wx:bosswancheng) to get the correct license","  "];return(Qt=function(){return t})()}!function(t){for(var r=Jt,e=t();;)try{if(711211===-parseInt(r(158))/1+-parseInt(r(160))/2*(parseInt(r(145))/3)+-parseInt(r(139))/4+-parseInt(r(151))/5*(-parseInt(r(176))/6)+parseInt(r(142))/7+parseInt(r(138))/8*(-parseInt(r(193))/9)+-parseInt(r(141))/10*(-parseInt(r(165))/11))break;e.push(e.shift())}catch(t){e.push(e.shift())}}(Qt);var Zt=function(t){var r=Jt;function e(){var t,r,n,o,a,i=Jt,s=arguments[i(171)]>0&&void 0!==arguments[0]?arguments[0]:{};u(this,e),r=this,a=Jt,n=U(n=e),(t=x(r,Xt()?Reflect[a(192)](n,o||[],U(r)[a(173)]):n.apply(r,o))).originalOptions=s;var c=Bt(),f=Object[i(156)]({},c,s);return t[i(170)]=f,t[i(153)]=new qt(t),t[i(154)]="FaceDetector",t[i(159)]=null,t.detector=null,t[i(163)]=null,t.detectWidth=s[i(183)]||192,t[i(167)]=!1!==s[i(167)],t.buildTime=s[i(162)]+"-"+s.buildTime,t[i(177)]=s[i(177)]||{r:0,g:255,b:0},console[i(144)](i(136)[i(135)](s.buildTime,":")[i(135)]('"1.0.1"',i(150))),t}return G(e,t),T(e,[{key:r(196),value:function(){var t=r;this[t(172)](),this[t(166)]&&(this[t(166)][t(169)](),this[t(166)][t(164)]()),this[t(159)]&&(this[t(159)]=null),this[t(163)]=null}},{key:r(189),value:function(){var t=this;return new Promise((function(r,e){var n=Jt;Dt()[n(195)]((function(o){var a=n;t.module=o,t[a(159)][a(180)]?(t[a(166)]=new(t[a(159)][a(180)])(t),t[a(166)].setDetectWidth(t[a(183)]),t[a(166)][a(191)]({showInfo:t[a(167)],rectangleColor:t[a(177)]}),r()):e(a(157))}))[n(194)]((function(t){var r=n;console[r(143)](t),e(r(152))}))}))}},{key:r(155),value:function(){var t=r,e=arguments[t(171)]>0&&void 0!==arguments[0]?arguments[0]:{};e[t(183)]&&(this[t(183)]=e[t(183)],this[t(166)]&&this[t(166)][t(186)](this.detectWidth));var n={};Nt(e[t(167)])&&(this[t(167)]=e.showRect,n.showInfo=e[t(167)]),Nt(e[t(177)])&&(this[t(177)]=e[t(177)],n[t(177)]=e.rectangleColor),Wt(n)&&this[t(166)]&&this[t(166)][t(191)](n)}},{key:r(184),value:function(t){var e=r,n=arguments[e(171)]>1&&void 0!==arguments[1]?arguments[1]:0;if(!this[e(166)])return t[e(190)];if(null===this[e(163)]&&(this.startTimestamp=Date[e(140)]()),Date[e(140)]()-this.startTimestamp>6e5)return t[e(190)];var o=this[e(166)][e(184)](t[e(190)],t[e(185)],t.height,n,this[e(174)]);if(o){var a=o[e(179)]||[];if(this[e(161)](e(182),{ts:t.ts,list:a}),o[e(147)]){var i=o[e(147)],s=i+3*(t[e(185)]*t[e(137)])/2;return this[e(159)][e(168)][e(175)](i,s)}}return t[e(190)]}},{key:r(146),value:function(){var t=r;this[t(153)].error(this[t(154)],t(149))}},{key:r(181),value:function(){var t=r;this[t(153)][t(143)](this[t(154)],t(178))}}])}(Ot);window[Gt(148)]=Zt}));