ckgl/node_modules/zxing-wasm/dist/cjs/reader/index.js
2024-12-21 18:03:43 +08:00

4 lines
37 KiB
JavaScript

"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const W=require("../core-D9FNMpWh.cjs");var Fe=(()=>{var H=typeof document<"u"&&document.currentScript?document.currentScript.src:void 0;return function(X={}){var l=X,Ze,ce;l.ready=new Promise((e,r)=>{Ze=e,ce=r});var Ge=Object.assign({},l),qe="./this.program",Je=typeof window=="object",fe=typeof importScripts=="function";typeof process=="object"&&typeof process.versions=="object"&&process.versions.node;var I="";function Ir(e){return l.locateFile?l.locateFile(e,I):I+e}var Se;(Je||fe)&&(fe?I=self.location.href:typeof document<"u"&&document.currentScript&&(I=document.currentScript.src),H&&(I=H),I.indexOf("blob:")!==0?I=I.substr(0,I.replace(/[?#].*/,"").lastIndexOf("/")+1):I="",fe&&(Se=e=>{var r=new XMLHttpRequest;return r.open("GET",e,!1),r.responseType="arraybuffer",r.send(null),new Uint8Array(r.response)})),l.print||console.log.bind(console);var Q=l.printErr||console.error.bind(console);Object.assign(l,Ge),Ge=null,l.arguments&&l.arguments,l.thisProgram&&(qe=l.thisProgram),l.quit&&l.quit;var ee;l.wasmBinary&&(ee=l.wasmBinary),typeof WebAssembly!="object"&&de("no native wasm support detected");var ve,Ke=!1,M,O,Z,re,D,m,Qe,er;function rr(){var e=ve.buffer;l.HEAP8=M=new Int8Array(e),l.HEAP16=Z=new Int16Array(e),l.HEAPU8=O=new Uint8Array(e),l.HEAPU16=re=new Uint16Array(e),l.HEAP32=D=new Int32Array(e),l.HEAPU32=m=new Uint32Array(e),l.HEAPF32=Qe=new Float32Array(e),l.HEAPF64=er=new Float64Array(e)}var tr=[],nr=[],ir=[];function Ur(){if(l.preRun)for(typeof l.preRun=="function"&&(l.preRun=[l.preRun]);l.preRun.length;)Yr(l.preRun.shift());Ee(tr)}function xr(){Ee(nr)}function Vr(){if(l.postRun)for(typeof l.postRun=="function"&&(l.postRun=[l.postRun]);l.postRun.length;)Lr(l.postRun.shift());Ee(ir)}function Yr(e){tr.unshift(e)}function Br(e){nr.unshift(e)}function Lr(e){ir.unshift(e)}var L=0,te=null;function zr(e){var r;L++,(r=l.monitorRunDependencies)===null||r===void 0||r.call(l,L)}function Nr(e){var r;if(L--,(r=l.monitorRunDependencies)===null||r===void 0||r.call(l,L),L==0&&te){var t=te;te=null,t()}}function de(e){var r;(r=l.onAbort)===null||r===void 0||r.call(l,e),e="Aborted("+e+")",Q(e),Ke=!0,e+=". Build with -sASSERTIONS for more info.";var t=new WebAssembly.RuntimeError(e);throw ce(t),t}var Xr="data:application/octet-stream;base64,",ar=e=>e.startsWith(Xr),G;G="zxing_reader.wasm",ar(G)||(G=Ir(G));function or(e){if(e==G&&ee)return new Uint8Array(ee);if(Se)return Se(e);throw"both async and sync fetching of the wasm failed"}function Zr(e){return!ee&&(Je||fe)&&typeof fetch=="function"?fetch(e,{credentials:"same-origin"}).then(r=>{if(!r.ok)throw"failed to load wasm binary file at '"+e+"'";return r.arrayBuffer()}).catch(()=>or(e)):Promise.resolve().then(()=>or(e))}function sr(e,r,t){return Zr(e).then(n=>WebAssembly.instantiate(n,r)).then(n=>n).then(t,n=>{Q(`failed to asynchronously prepare wasm: ${n}`),de(n)})}function Gr(e,r,t,n){return!e&&typeof WebAssembly.instantiateStreaming=="function"&&!ar(r)&&typeof fetch=="function"?fetch(r,{credentials:"same-origin"}).then(i=>{var a=WebAssembly.instantiateStreaming(i,t);return a.then(n,function(o){return Q(`wasm streaming compile failed: ${o}`),Q("falling back to ArrayBuffer instantiation"),sr(r,t,n)})}):sr(r,t,n)}function qr(){var e={a:In};function r(n,i){return F=n.exports,ve=F.ia,rr(),_r=F.ma,Br(F.ja),Nr(),F}zr();function t(n){r(n.instance)}if(l.instantiateWasm)try{return l.instantiateWasm(e,r)}catch(n){Q(`Module.instantiateWasm callback failed with error: ${n}`),ce(n)}return Gr(ee,G,e,t).catch(ce),{}}var Ee=e=>{for(;e.length>0;)e.shift()(l)};l.noExitRuntime;var pe=[],he=0,Jr=e=>{var r=new Re(e);return r.get_caught()||(r.set_caught(!0),he--),r.set_rethrown(!1),pe.push(r),Dr(r.excPtr),r.get_exception_ptr()},V=0,Kr=()=>{$(0,0);var e=pe.pop();Rr(e.excPtr),V=0};function Re(e){this.excPtr=e,this.ptr=e-24,this.set_type=function(r){m[this.ptr+4>>2]=r},this.get_type=function(){return m[this.ptr+4>>2]},this.set_destructor=function(r){m[this.ptr+8>>2]=r},this.get_destructor=function(){return m[this.ptr+8>>2]},this.set_caught=function(r){r=r?1:0,M[this.ptr+12>>0]=r},this.get_caught=function(){return M[this.ptr+12>>0]!=0},this.set_rethrown=function(r){r=r?1:0,M[this.ptr+13>>0]=r},this.get_rethrown=function(){return M[this.ptr+13>>0]!=0},this.init=function(r,t){this.set_adjusted_ptr(0),this.set_type(r),this.set_destructor(t)},this.set_adjusted_ptr=function(r){m[this.ptr+16>>2]=r},this.get_adjusted_ptr=function(){return m[this.ptr+16>>2]},this.get_exception_ptr=function(){var r=Wr(this.get_type());if(r)return m[this.excPtr>>2];var t=this.get_adjusted_ptr();return t!==0?t:this.excPtr}}var Qr=e=>{throw V||(V=e),V},De=e=>{var r=V;if(!r)return le(0),0;var t=new Re(r);t.set_adjusted_ptr(r);var n=t.get_type();if(!n)return le(0),r;for(var i in e){var a=e[i];if(a===0||a===n)break;var o=t.ptr+16;if(Or(a,n,o))return le(a),r}return le(n),r},et=()=>De([]),rt=e=>De([e]),tt=(e,r)=>De([e,r]),nt=()=>{var e=pe.pop();e||de("no exception to throw");var r=e.excPtr;throw e.get_rethrown()||(pe.push(e),e.set_rethrown(!0),e.set_caught(!1),he++),V=r,V},it=(e,r,t)=>{var n=new Re(e);throw n.init(r,t),V=e,he++,V},at=()=>he,ge={},Oe=e=>{for(;e.length;){var r=e.pop(),t=e.pop();t(r)}};function We(e){return this.fromWireType(D[e>>2])}var q={},z={},_e={},ur,ye=e=>{throw new ur(e)},N=(e,r,t)=>{e.forEach(function(s){_e[s]=r});function n(s){var u=t(s);u.length!==e.length&&ye("Mismatched type converter count");for(var f=0;f<e.length;++f)U(e[f],u[f])}var i=new Array(r.length),a=[],o=0;r.forEach((s,u)=>{z.hasOwnProperty(s)?i[u]=z[s]:(a.push(s),q.hasOwnProperty(s)||(q[s]=[]),q[s].push(()=>{i[u]=z[s],++o,o===a.length&&n(i)}))}),a.length===0&&n(i)},ot=e=>{var r=ge[e];delete ge[e];var t=r.rawConstructor,n=r.rawDestructor,i=r.fields,a=i.map(o=>o.getterReturnType).concat(i.map(o=>o.setterArgumentType));N([e],a,o=>{var s={};return i.forEach((u,f)=>{var v=u.fieldName,p=o[f],h=u.getter,g=u.getterContext,b=o[f+i.length],C=u.setter,y=u.setterContext;s[v]={read:R=>p.fromWireType(h(g,R)),write:(R,c)=>{var d=[];C(y,R,b.toWireType(d,c)),Oe(d)}}}),[{name:r.name,fromWireType:u=>{var f={};for(var v in s)f[v]=s[v].read(u);return n(u),f},toWireType:(u,f)=>{for(var v in s)if(!(v in f))throw new TypeError(`Missing field: "${v}"`);var p=t();for(v in s)s[v].write(p,f[v]);return u!==null&&u.push(n,p),p},argPackAdvance:x,readValueFromPointer:We,destructorFunction:n}]})},st=(e,r,t,n,i)=>{},ut=()=>{for(var e=new Array(256),r=0;r<256;++r)e[r]=String.fromCharCode(r);lr=e},lr,E=e=>{for(var r="",t=e;O[t];)r+=lr[O[t++]];return r},J,_=e=>{throw new J(e)};function lt(e,r){let t=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};var n=r.name;if(e||_(`type "${n}" must have a positive integer typeid pointer`),z.hasOwnProperty(e)){if(t.ignoreDuplicateRegistrations)return;_(`Cannot register type '${n}' twice`)}if(z[e]=r,delete _e[e],q.hasOwnProperty(e)){var i=q[e];delete q[e],i.forEach(a=>a())}}function U(e,r){let t=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};if(!("argPackAdvance"in r))throw new TypeError("registerType registeredInstance requires argPackAdvance");return lt(e,r,t)}var x=8,ct=(e,r,t,n)=>{r=E(r),U(e,{name:r,fromWireType:function(i){return!!i},toWireType:function(i,a){return a?t:n},argPackAdvance:x,readValueFromPointer:function(i){return this.fromWireType(O[i])},destructorFunction:null})},ft=e=>({count:e.count,deleteScheduled:e.deleteScheduled,preservePointerOnDelete:e.preservePointerOnDelete,ptr:e.ptr,ptrType:e.ptrType,smartPtr:e.smartPtr,smartPtrType:e.smartPtrType}),ke=e=>{function r(t){return t.$$.ptrType.registeredClass.name}_(r(e)+" instance already deleted")},Me=!1,cr=e=>{},vt=e=>{e.smartPtr?e.smartPtrType.rawDestructor(e.smartPtr):e.ptrType.registeredClass.rawDestructor(e.ptr)},fr=e=>{e.count.value-=1;var r=e.count.value===0;r&&vt(e)},vr=(e,r,t)=>{if(r===t)return e;if(t.baseClass===void 0)return null;var n=vr(e,r,t.baseClass);return n===null?null:t.downcast(n)},dr={},dt=()=>Object.keys(ae).length,pt=()=>{var e=[];for(var r in ae)ae.hasOwnProperty(r)&&e.push(ae[r]);return e},ne=[],je=()=>{for(;ne.length;){var e=ne.pop();e.$$.deleteScheduled=!1,e.delete()}},ie,ht=e=>{ie=e,ne.length&&ie&&ie(je)},gt=()=>{l.getInheritedInstanceCount=dt,l.getLiveInheritedInstances=pt,l.flushPendingDeletes=je,l.setDelayFunction=ht},ae={},_t=(e,r)=>{for(r===void 0&&_("ptr should not be undefined");e.baseClass;)r=e.upcast(r),e=e.baseClass;return r},yt=(e,r)=>(r=_t(e,r),ae[r]),me=(e,r)=>{(!r.ptrType||!r.ptr)&&ye("makeClassHandle requires ptr and ptrType");var t=!!r.smartPtrType,n=!!r.smartPtr;return t!==n&&ye("Both smartPtrType and smartPtr must be specified"),r.count={value:1},oe(Object.create(e,{$$:{value:r,writable:!0}}))};function mt(e){var r=this.getPointee(e);if(!r)return this.destructor(e),null;var t=yt(this.registeredClass,r);if(t!==void 0){if(t.$$.count.value===0)return t.$$.ptr=r,t.$$.smartPtr=e,t.clone();var n=t.clone();return this.destructor(e),n}function i(){return this.isSmartPointer?me(this.registeredClass.instancePrototype,{ptrType:this.pointeeType,ptr:r,smartPtrType:this,smartPtr:e}):me(this.registeredClass.instancePrototype,{ptrType:this,ptr:e})}var a=this.registeredClass.getActualType(r),o=dr[a];if(!o)return i.call(this);var s;this.isConst?s=o.constPointerType:s=o.pointerType;var u=vr(r,this.registeredClass,s.registeredClass);return u===null?i.call(this):this.isSmartPointer?me(s.registeredClass.instancePrototype,{ptrType:s,ptr:u,smartPtrType:this,smartPtr:e}):me(s.registeredClass.instancePrototype,{ptrType:s,ptr:u})}var oe=e=>typeof FinalizationRegistry>"u"?(oe=r=>r,e):(Me=new FinalizationRegistry(r=>{fr(r.$$)}),oe=r=>{var t=r.$$,n=!!t.smartPtr;if(n){var i={$$:t};Me.register(r,i,r)}return r},cr=r=>Me.unregister(r),oe(e)),$t=()=>{Object.assign($e.prototype,{isAliasOf(e){if(!(this instanceof $e)||!(e instanceof $e))return!1;var r=this.$$.ptrType.registeredClass,t=this.$$.ptr;e.$$=e.$$;for(var n=e.$$.ptrType.registeredClass,i=e.$$.ptr;r.baseClass;)t=r.upcast(t),r=r.baseClass;for(;n.baseClass;)i=n.upcast(i),n=n.baseClass;return r===n&&t===i},clone(){if(this.$$.ptr||ke(this),this.$$.preservePointerOnDelete)return this.$$.count.value+=1,this;var e=oe(Object.create(Object.getPrototypeOf(this),{$$:{value:ft(this.$$)}}));return e.$$.count.value+=1,e.$$.deleteScheduled=!1,e},delete(){this.$$.ptr||ke(this),this.$$.deleteScheduled&&!this.$$.preservePointerOnDelete&&_("Object already scheduled for deletion"),cr(this),fr(this.$$),this.$$.preservePointerOnDelete||(this.$$.smartPtr=void 0,this.$$.ptr=void 0)},isDeleted(){return!this.$$.ptr},deleteLater(){return this.$$.ptr||ke(this),this.$$.deleteScheduled&&!this.$$.preservePointerOnDelete&&_("Object already scheduled for deletion"),ne.push(this),ne.length===1&&ie&&ie(je),this.$$.deleteScheduled=!0,this}})};function $e(){}var se=(e,r)=>Object.defineProperty(r,"name",{value:e}),pr=(e,r,t)=>{if(e[r].overloadTable===void 0){var n=e[r];e[r]=function(){return e[r].overloadTable.hasOwnProperty(arguments.length)||_(`Function '${t}' called with an invalid number of arguments (${arguments.length}) - expects one of (${e[r].overloadTable})!`),e[r].overloadTable[arguments.length].apply(this,arguments)},e[r].overloadTable=[],e[r].overloadTable[n.argCount]=n}},He=(e,r,t)=>{l.hasOwnProperty(e)?((t===void 0||l[e].overloadTable!==void 0&&l[e].overloadTable[t]!==void 0)&&_(`Cannot register public name '${e}' twice`),pr(l,e,e),l.hasOwnProperty(t)&&_(`Cannot register multiple overloads of a function with the same number of arguments (${t})!`),l[e].overloadTable[t]=r):(l[e]=r,t!==void 0&&(l[e].numArguments=t))},bt=48,wt=57,Tt=e=>{if(e===void 0)return"_unknown";e=e.replace(/[^a-zA-Z0-9_]/g,"$");var r=e.charCodeAt(0);return r>=bt&&r<=wt?`_${e}`:e};function Pt(e,r,t,n,i,a,o,s){this.name=e,this.constructor=r,this.instancePrototype=t,this.rawDestructor=n,this.baseClass=i,this.getActualType=a,this.upcast=o,this.downcast=s,this.pureVirtualFunctions=[]}var Ie=(e,r,t)=>{for(;r!==t;)r.upcast||_(`Expected null or instance of ${t.name}, got an instance of ${r.name}`),e=r.upcast(e),r=r.baseClass;return e};function Ct(e,r){if(r===null)return this.isReference&&_(`null is not a valid ${this.name}`),0;r.$$||_(`Cannot pass "${Be(r)}" as a ${this.name}`),r.$$.ptr||_(`Cannot pass deleted object as a pointer of type ${this.name}`);var t=r.$$.ptrType.registeredClass,n=Ie(r.$$.ptr,t,this.registeredClass);return n}function At(e,r){var t;if(r===null)return this.isReference&&_(`null is not a valid ${this.name}`),this.isSmartPointer?(t=this.rawConstructor(),e!==null&&e.push(this.rawDestructor,t),t):0;(!r||!r.$$)&&_(`Cannot pass "${Be(r)}" as a ${this.name}`),r.$$.ptr||_(`Cannot pass deleted object as a pointer of type ${this.name}`),!this.isConst&&r.$$.ptrType.isConst&&_(`Cannot convert argument of type ${r.$$.smartPtrType?r.$$.smartPtrType.name:r.$$.ptrType.name} to parameter type ${this.name}`);var n=r.$$.ptrType.registeredClass;if(t=Ie(r.$$.ptr,n,this.registeredClass),this.isSmartPointer)switch(r.$$.smartPtr===void 0&&_("Passing raw pointer to smart pointer is illegal"),this.sharingPolicy){case 0:r.$$.smartPtrType===this?t=r.$$.smartPtr:_(`Cannot convert argument of type ${r.$$.smartPtrType?r.$$.smartPtrType.name:r.$$.ptrType.name} to parameter type ${this.name}`);break;case 1:t=r.$$.smartPtr;break;case 2:if(r.$$.smartPtrType===this)t=r.$$.smartPtr;else{var i=r.clone();t=this.rawShare(t,Y.toHandle(()=>i.delete())),e!==null&&e.push(this.rawDestructor,t)}break;default:_("Unsupporting sharing policy")}return t}function Ft(e,r){if(r===null)return this.isReference&&_(`null is not a valid ${this.name}`),0;r.$$||_(`Cannot pass "${Be(r)}" as a ${this.name}`),r.$$.ptr||_(`Cannot pass deleted object as a pointer of type ${this.name}`),r.$$.ptrType.isConst&&_(`Cannot convert argument of type ${r.$$.ptrType.name} to parameter type ${this.name}`);var t=r.$$.ptrType.registeredClass,n=Ie(r.$$.ptr,t,this.registeredClass);return n}function hr(e){return this.fromWireType(m[e>>2])}var St=()=>{Object.assign(be.prototype,{getPointee(e){return this.rawGetPointee&&(e=this.rawGetPointee(e)),e},destructor(e){var r;(r=this.rawDestructor)===null||r===void 0||r.call(this,e)},argPackAdvance:x,readValueFromPointer:hr,deleteObject(e){e!==null&&e.delete()},fromWireType:mt})};function be(e,r,t,n,i,a,o,s,u,f,v){this.name=e,this.registeredClass=r,this.isReference=t,this.isConst=n,this.isSmartPointer=i,this.pointeeType=a,this.sharingPolicy=o,this.rawGetPointee=s,this.rawConstructor=u,this.rawShare=f,this.rawDestructor=v,!i&&r.baseClass===void 0?n?(this.toWireType=Ct,this.destructorFunction=null):(this.toWireType=Ft,this.destructorFunction=null):this.toWireType=At}var gr=(e,r,t)=>{l.hasOwnProperty(e)||ye("Replacing nonexistant public symbol"),l[e].overloadTable!==void 0&&t!==void 0?l[e].overloadTable[t]=r:(l[e]=r,l[e].argCount=t)},Et=(e,r,t)=>{var n=l["dynCall_"+e];return t&&t.length?n.apply(null,[r].concat(t)):n.call(null,r)},we=[],_r,w=e=>{var r=we[e];return r||(e>=we.length&&(we.length=e+1),we[e]=r=_r.get(e)),r},Rt=(e,r,t)=>{if(e.includes("j"))return Et(e,r,t);var n=w(r).apply(null,t);return n},Dt=(e,r)=>{var t=[];return function(){return t.length=0,Object.assign(t,arguments),Rt(e,r,t)}},j=(e,r)=>{e=E(e);function t(){return e.includes("j")?Dt(e,r):w(r)}var n=t();return typeof n!="function"&&_(`unknown function pointer with signature ${e}: ${r}`),n},Ot=(e,r)=>{var t=se(r,function(n){this.name=r,this.message=n;var i=new Error(n).stack;i!==void 0&&(this.stack=this.toString()+`
`+i.replace(/^Error(:[^\n]*)?\n/,""))});return t.prototype=Object.create(e.prototype),t.prototype.constructor=t,t.prototype.toString=function(){return this.message===void 0?this.name:`${this.name}: ${this.message}`},t},yr,mr=e=>{var r=Er(e),t=E(r);return B(r),t},Te=(e,r)=>{var t=[],n={};function i(a){if(!n[a]&&!z[a]){if(_e[a]){_e[a].forEach(i);return}t.push(a),n[a]=!0}}throw r.forEach(i),new yr(`${e}: `+t.map(mr).join([", "]))},Wt=(e,r,t,n,i,a,o,s,u,f,v,p,h)=>{v=E(v),a=j(i,a),s&&(s=j(o,s)),f&&(f=j(u,f)),h=j(p,h);var g=Tt(v);He(g,function(){Te(`Cannot construct ${v} due to unbound types`,[n])}),N([e,r,t],n?[n]:[],function(b){b=b[0];var C,y;n?(C=b.registeredClass,y=C.instancePrototype):y=$e.prototype;var R=se(v,function(){if(Object.getPrototypeOf(this)!==c)throw new J("Use 'new' to construct "+v);if(d.constructor_body===void 0)throw new J(v+" has no accessible constructor");var Hr=d.constructor_body[arguments.length];if(Hr===void 0)throw new J(`Tried to invoke ctor of ${v} with invalid number of parameters (${arguments.length}) - expected (${Object.keys(d.constructor_body).toString()}) parameters instead!`);return Hr.apply(this,arguments)}),c=Object.create(y,{constructor:{value:R}});R.prototype=c;var d=new Pt(v,R,c,h,C,a,s,f);if(d.baseClass){var A,S;(S=(A=d.baseClass).__derivedClasses)!==null&&S!==void 0||(A.__derivedClasses=[]),d.baseClass.__derivedClasses.push(d)}var K=new be(v,d,!0,!1,!1),Ae=new be(v+"*",d,!1,!1,!1),jr=new be(v+" const*",d,!1,!0,!1);return dr[e]={pointerType:Ae,constPointerType:jr},gr(g,R),[K,Ae,jr]})},Ue=(e,r)=>{for(var t=[],n=0;n<e;n++)t.push(m[r+n*4>>2]);return t};function kt(e){for(var r=1;r<e.length;++r)if(e[r]!==null&&e[r].destructorFunction===void 0)return!0;return!1}function xe(e,r,t,n,i,a){var o=r.length;o<2&&_("argTypes array size mismatch! Must at least get return value and 'this' types!");var s=r[1]!==null&&t!==null,u=kt(r),f=r[0].name!=="void",v=o-2,p=new Array(v),h=[],g=[],b=function(){arguments.length!==v&&_(`function ${e} called with ${arguments.length} arguments, expected ${v}`),g.length=0;var C;h.length=s?2:1,h[0]=i,s&&(C=r[1].toWireType(g,this),h[1]=C);for(var y=0;y<v;++y)p[y]=r[y+2].toWireType(g,arguments[y]),h.push(p[y]);var R=n.apply(null,h);function c(d){if(u)Oe(g);else for(var A=s?1:2;A<r.length;A++){var S=A===1?C:p[A-2];r[A].destructorFunction!==null&&r[A].destructorFunction(S)}if(f)return r[0].fromWireType(d)}return c(R)};return se(e,b)}var Mt=(e,r,t,n,i,a)=>{var o=Ue(r,t);i=j(n,i),N([],[e],function(s){s=s[0];var u=`constructor ${s.name}`;if(s.registeredClass.constructor_body===void 0&&(s.registeredClass.constructor_body=[]),s.registeredClass.constructor_body[r-1]!==void 0)throw new J(`Cannot register multiple constructors with identical number of parameters (${r-1}) for class '${s.name}'! Overload resolution is currently only performed using the parameter count, not actual type info!`);return s.registeredClass.constructor_body[r-1]=()=>{Te(`Cannot construct ${s.name} due to unbound types`,o)},N([],o,f=>(f.splice(1,0,null),s.registeredClass.constructor_body[r-1]=xe(u,f,null,i,a),[])),[]})},$r=e=>{e=e.trim();const r=e.indexOf("(");return r!==-1?e.substr(0,r):e},jt=(e,r,t,n,i,a,o,s,u)=>{var f=Ue(t,n);r=E(r),r=$r(r),a=j(i,a),N([],[e],function(v){v=v[0];var p=`${v.name}.${r}`;r.startsWith("@@")&&(r=Symbol[r.substring(2)]),s&&v.registeredClass.pureVirtualFunctions.push(r);function h(){Te(`Cannot call ${p} due to unbound types`,f)}var g=v.registeredClass.instancePrototype,b=g[r];return b===void 0||b.overloadTable===void 0&&b.className!==v.name&&b.argCount===t-2?(h.argCount=t-2,h.className=v.name,g[r]=h):(pr(g,r,p),g[r].overloadTable[t-2]=h),N([],f,function(C){var y=xe(p,C,v,a,o);return g[r].overloadTable===void 0?(y.argCount=t-2,g[r]=y):g[r].overloadTable[t-2]=y,[]}),[]})};function Ht(){Object.assign(br.prototype,{get(e){return this.allocated[e]},has(e){return this.allocated[e]!==void 0},allocate(e){var r=this.freelist.pop()||this.allocated.length;return this.allocated[r]=e,r},free(e){this.allocated[e]=void 0,this.freelist.push(e)}})}function br(){this.allocated=[void 0],this.freelist=[]}var k=new br,Ve=e=>{e>=k.reserved&&--k.get(e).refcount===0&&k.free(e)},It=()=>{for(var e=0,r=k.reserved;r<k.allocated.length;++r)k.allocated[r]!==void 0&&++e;return e},Ut=()=>{k.allocated.push({value:void 0},{value:null},{value:!0},{value:!1}),k.reserved=k.allocated.length,l.count_emval_handles=It},Y={toValue:e=>(e||_("Cannot use deleted val. handle = "+e),k.get(e).value),toHandle:e=>{switch(e){case void 0:return 1;case null:return 2;case!0:return 3;case!1:return 4;default:return k.allocate({refcount:1,value:e})}}},xt=(e,r)=>{r=E(r),U(e,{name:r,fromWireType:t=>{var n=Y.toValue(t);return Ve(t),n},toWireType:(t,n)=>Y.toHandle(n),argPackAdvance:x,readValueFromPointer:We,destructorFunction:null})},Vt=(e,r,t)=>{switch(r){case 1:return t?function(n){return this.fromWireType(M[n>>0])}:function(n){return this.fromWireType(O[n>>0])};case 2:return t?function(n){return this.fromWireType(Z[n>>1])}:function(n){return this.fromWireType(re[n>>1])};case 4:return t?function(n){return this.fromWireType(D[n>>2])}:function(n){return this.fromWireType(m[n>>2])};default:throw new TypeError(`invalid integer width (${r}): ${e}`)}},Yt=(e,r,t,n)=>{r=E(r);function i(){}i.values={},U(e,{name:r,constructor:i,fromWireType:function(a){return this.constructor.values[a]},toWireType:(a,o)=>o.value,argPackAdvance:x,readValueFromPointer:Vt(r,t,n),destructorFunction:null}),He(r,i)},Ye=(e,r)=>{var t=z[e];return t===void 0&&_(r+" has unknown type "+mr(e)),t},Bt=(e,r,t)=>{var n=Ye(e,"enum");r=E(r);var i=n.constructor,a=Object.create(n.constructor.prototype,{value:{value:t},constructor:{value:se(`${n.name}_${r}`,function(){})}});i.values[t]=a,i[r]=a},Be=e=>{if(e===null)return"null";var r=typeof e;return r==="object"||r==="array"||r==="function"?e.toString():""+e},Lt=(e,r)=>{switch(r){case 4:return function(t){return this.fromWireType(Qe[t>>2])};case 8:return function(t){return this.fromWireType(er[t>>3])};default:throw new TypeError(`invalid float width (${r}): ${e}`)}},zt=(e,r,t)=>{r=E(r),U(e,{name:r,fromWireType:n=>n,toWireType:(n,i)=>i,argPackAdvance:x,readValueFromPointer:Lt(r,t),destructorFunction:null})},Nt=(e,r,t,n,i,a,o)=>{var s=Ue(r,t);e=E(e),e=$r(e),i=j(n,i),He(e,function(){Te(`Cannot call ${e} due to unbound types`,s)},r-1),N([],s,function(u){var f=[u[0],null].concat(u.slice(1));return gr(e,xe(e,f,null,i,a),r-1),[]})},Xt=(e,r,t)=>{switch(r){case 1:return t?n=>M[n>>0]:n=>O[n>>0];case 2:return t?n=>Z[n>>1]:n=>re[n>>1];case 4:return t?n=>D[n>>2]:n=>m[n>>2];default:throw new TypeError(`invalid integer width (${r}): ${e}`)}},Zt=(e,r,t,n,i)=>{r=E(r);var a=v=>v;if(n===0){var o=32-8*t;a=v=>v<<o>>>o}var s=r.includes("unsigned"),u=(v,p)=>{},f;s?f=function(v,p){return u(p,this.name),p>>>0}:f=function(v,p){return u(p,this.name),p},U(e,{name:r,fromWireType:a,toWireType:f,argPackAdvance:x,readValueFromPointer:Xt(r,t,n!==0),destructorFunction:null})},Gt=(e,r,t)=>{var n=[Int8Array,Uint8Array,Int16Array,Uint16Array,Int32Array,Uint32Array,Float32Array,Float64Array],i=n[r];function a(o){var s=m[o>>2],u=m[o+4>>2];return new i(M.buffer,u,s)}t=E(t),U(e,{name:t,fromWireType:a,argPackAdvance:x,readValueFromPointer:a},{ignoreDuplicateRegistrations:!0})},wr=(e,r,t,n)=>{if(!(n>0))return 0;for(var i=t,a=t+n-1,o=0;o<e.length;++o){var s=e.charCodeAt(o);if(s>=55296&&s<=57343){var u=e.charCodeAt(++o);s=65536+((s&1023)<<10)|u&1023}if(s<=127){if(t>=a)break;r[t++]=s}else if(s<=2047){if(t+1>=a)break;r[t++]=192|s>>6,r[t++]=128|s&63}else if(s<=65535){if(t+2>=a)break;r[t++]=224|s>>12,r[t++]=128|s>>6&63,r[t++]=128|s&63}else{if(t+3>=a)break;r[t++]=240|s>>18,r[t++]=128|s>>12&63,r[t++]=128|s>>6&63,r[t++]=128|s&63}}return r[t]=0,t-i},qt=(e,r,t)=>wr(e,O,r,t),Tr=e=>{for(var r=0,t=0;t<e.length;++t){var n=e.charCodeAt(t);n<=127?r++:n<=2047?r+=2:n>=55296&&n<=57343?(r+=4,++t):r+=3}return r},Pr=typeof TextDecoder<"u"?new TextDecoder("utf8"):void 0,Jt=(e,r,t)=>{for(var n=r+t,i=r;e[i]&&!(i>=n);)++i;if(i-r>16&&e.buffer&&Pr)return Pr.decode(e.subarray(r,i));for(var a="";r<i;){var o=e[r++];if(!(o&128)){a+=String.fromCharCode(o);continue}var s=e[r++]&63;if((o&224)==192){a+=String.fromCharCode((o&31)<<6|s);continue}var u=e[r++]&63;if((o&240)==224?o=(o&15)<<12|s<<6|u:o=(o&7)<<18|s<<12|u<<6|e[r++]&63,o<65536)a+=String.fromCharCode(o);else{var f=o-65536;a+=String.fromCharCode(55296|f>>10,56320|f&1023)}}return a},Le=(e,r)=>e?Jt(O,e,r):"",Kt=(e,r)=>{r=E(r);var t=r==="std::string";U(e,{name:r,fromWireType(n){var i=m[n>>2],a=n+4,o;if(t)for(var s=a,u=0;u<=i;++u){var f=a+u;if(u==i||O[f]==0){var v=f-s,p=Le(s,v);o===void 0?o=p:(o+="\0",o+=p),s=f+1}}else{for(var h=new Array(i),u=0;u<i;++u)h[u]=String.fromCharCode(O[a+u]);o=h.join("")}return B(n),o},toWireType(n,i){i instanceof ArrayBuffer&&(i=new Uint8Array(i));var a,o=typeof i=="string";o||i instanceof Uint8Array||i instanceof Uint8ClampedArray||i instanceof Int8Array||_("Cannot pass non-string to std::string"),t&&o?a=Tr(i):a=i.length;var s=Xe(4+a+1),u=s+4;if(m[s>>2]=a,t&&o)qt(i,u,a+1);else if(o)for(var f=0;f<a;++f){var v=i.charCodeAt(f);v>255&&(B(u),_("String has UTF-16 code units that do not fit in 8 bits")),O[u+f]=v}else for(var f=0;f<a;++f)O[u+f]=i[f];return n!==null&&n.push(B,s),s},argPackAdvance:x,readValueFromPointer:hr,destructorFunction(n){B(n)}})},Cr=typeof TextDecoder<"u"?new TextDecoder("utf-16le"):void 0,Qt=(e,r)=>{for(var t=e,n=t>>1,i=n+r/2;!(n>=i)&&re[n];)++n;if(t=n<<1,t-e>32&&Cr)return Cr.decode(O.subarray(e,t));for(var a="",o=0;!(o>=r/2);++o){var s=Z[e+o*2>>1];if(s==0)break;a+=String.fromCharCode(s)}return a},en=(e,r,t)=>{var n;if((n=t)!==null&&n!==void 0||(t=2147483647),t<2)return 0;t-=2;for(var i=r,a=t<e.length*2?t/2:e.length,o=0;o<a;++o){var s=e.charCodeAt(o);Z[r>>1]=s,r+=2}return Z[r>>1]=0,r-i},rn=e=>e.length*2,tn=(e,r)=>{for(var t=0,n="";!(t>=r/4);){var i=D[e+t*4>>2];if(i==0)break;if(++t,i>=65536){var a=i-65536;n+=String.fromCharCode(55296|a>>10,56320|a&1023)}else n+=String.fromCharCode(i)}return n},nn=(e,r,t)=>{var n;if((n=t)!==null&&n!==void 0||(t=2147483647),t<4)return 0;for(var i=r,a=i+t-4,o=0;o<e.length;++o){var s=e.charCodeAt(o);if(s>=55296&&s<=57343){var u=e.charCodeAt(++o);s=65536+((s&1023)<<10)|u&1023}if(D[r>>2]=s,r+=4,r+4>a)break}return D[r>>2]=0,r-i},an=e=>{for(var r=0,t=0;t<e.length;++t){var n=e.charCodeAt(t);n>=55296&&n<=57343&&++t,r+=4}return r},on=(e,r,t)=>{t=E(t);var n,i,a,o,s;r===2?(n=Qt,i=en,o=rn,a=()=>re,s=1):r===4&&(n=tn,i=nn,o=an,a=()=>m,s=2),U(e,{name:t,fromWireType:u=>{for(var f=m[u>>2],v=a(),p,h=u+4,g=0;g<=f;++g){var b=u+4+g*r;if(g==f||v[b>>s]==0){var C=b-h,y=n(h,C);p===void 0?p=y:(p+="\0",p+=y),h=b+r}}return B(u),p},toWireType:(u,f)=>{typeof f!="string"&&_(`Cannot pass non-string to C++ string type ${t}`);var v=o(f),p=Xe(4+v+r);return m[p>>2]=v>>s,i(f,p+4,v+r),u!==null&&u.push(B,p),p},argPackAdvance:x,readValueFromPointer:We,destructorFunction(u){B(u)}})},sn=(e,r,t,n,i,a)=>{ge[e]={name:E(r),rawConstructor:j(t,n),rawDestructor:j(i,a),fields:[]}},un=(e,r,t,n,i,a,o,s,u,f)=>{ge[e].fields.push({fieldName:E(r),getterReturnType:t,getter:j(n,i),getterContext:a,setterArgumentType:o,setter:j(s,u),setterContext:f})},ln=(e,r)=>{r=E(r),U(e,{isVoid:!0,name:r,argPackAdvance:0,fromWireType:()=>{},toWireType:(t,n)=>{}})},ze=[],cn=(e,r,t,n)=>(e=ze[e],r=Y.toValue(r),e(null,r,t,n)),fn={},vn=e=>{var r=fn[e];return r===void 0?E(e):r},Ar=()=>{if(typeof globalThis=="object")return globalThis;function e(r){r.$$$embind_global$$$=r;var t=typeof $$$embind_global$$$=="object"&&r.$$$embind_global$$$==r;return t||delete r.$$$embind_global$$$,t}if(typeof $$$embind_global$$$=="object"||(typeof global=="object"&&e(global)?$$$embind_global$$$=global:typeof self=="object"&&e(self)&&($$$embind_global$$$=self),typeof $$$embind_global$$$=="object"))return $$$embind_global$$$;throw Error("unable to get global object.")},dn=e=>e===0?Y.toHandle(Ar()):(e=vn(e),Y.toHandle(Ar()[e])),pn=e=>{var r=ze.length;return ze.push(e),r},hn=(e,r)=>{for(var t=new Array(e),n=0;n<e;++n)t[n]=Ye(m[r+n*4>>2],"parameter "+n);return t},gn=Reflect.construct,_n=(e,r,t)=>{var n=[],i=e.toWireType(n,t);return n.length&&(m[r>>2]=Y.toHandle(n)),i},yn=(e,r,t)=>{var n=hn(e,r),i=n.shift();e--;var a=new Array(e),o=(u,f,v,p)=>{for(var h=0,g=0;g<e;++g)a[g]=n[g].readValueFromPointer(p+h),h+=n[g].argPackAdvance;for(var b=t===1?gn(f,a):f.apply(u,a),g=0;g<e;++g){var C,y;(C=(y=n[g]).deleteObject)===null||C===void 0||C.call(y,a[g])}return _n(i,v,b)},s=`methodCaller<(${n.map(u=>u.name).join(", ")}) => ${i.name}>`;return pn(se(s,o))},mn=e=>{e>4&&(k.get(e).refcount+=1)},$n=e=>{var r=Y.toValue(e);Oe(r),Ve(e)},bn=(e,r)=>{e=Ye(e,"_emval_take_value");var t=e.readValueFromPointer(r);return Y.toHandle(t)},wn=()=>{de("")},Tn=(e,r,t)=>O.copyWithin(e,r,r+t),Pn=()=>2147483648,Cn=e=>{var r=ve.buffer,t=(e-r.byteLength+65535)/65536;try{return ve.grow(t),rr(),1}catch{}},An=e=>{var r=O.length;e>>>=0;var t=Pn();if(e>t)return!1;for(var n=(u,f)=>u+(f-u%f)%f,i=1;i<=4;i*=2){var a=r*(1+.2/i);a=Math.min(a,e+100663296);var o=Math.min(t,n(Math.max(e,a),65536)),s=Cn(o);if(s)return!0}return!1},Ne={},Fn=()=>qe||"./this.program",ue=()=>{if(!ue.strings){var e=(typeof navigator=="object"&&navigator.languages&&navigator.languages[0]||"C").replace("-","_")+".UTF-8",r={USER:"web_user",LOGNAME:"web_user",PATH:"/",PWD:"/",HOME:"/home/web_user",LANG:e,_:Fn()};for(var t in Ne)Ne[t]===void 0?delete r[t]:r[t]=Ne[t];var n=[];for(var t in r)n.push(`${t}=${r[t]}`);ue.strings=n}return ue.strings},Sn=(e,r)=>{for(var t=0;t<e.length;++t)M[r++>>0]=e.charCodeAt(t);M[r>>0]=0},En=(e,r)=>{var t=0;return ue().forEach((n,i)=>{var a=r+t;m[e+i*4>>2]=a,Sn(n,a),t+=n.length+1}),0},Rn=(e,r)=>{var t=ue();m[e>>2]=t.length;var n=0;return t.forEach(i=>n+=i.length+1),m[r>>2]=n,0},Dn=e=>e,Pe=e=>e%4===0&&(e%100!==0||e%400===0),On=(e,r)=>{for(var t=0,n=0;n<=r;t+=e[n++]);return t},Fr=[31,29,31,30,31,30,31,31,30,31,30,31],Sr=[31,28,31,30,31,30,31,31,30,31,30,31],Wn=(e,r)=>{for(var t=new Date(e.getTime());r>0;){var n=Pe(t.getFullYear()),i=t.getMonth(),a=(n?Fr:Sr)[i];if(r>a-t.getDate())r-=a-t.getDate()+1,t.setDate(1),i<11?t.setMonth(i+1):(t.setMonth(0),t.setFullYear(t.getFullYear()+1));else return t.setDate(t.getDate()+r),t}return t};function kn(e,r,t){var n=t>0?t:Tr(e)+1,i=new Array(n),a=wr(e,i,0,i.length);return r&&(i.length=a),i}var Mn=(e,r)=>{M.set(e,r)},jn=(e,r,t,n)=>{var i=m[n+40>>2],a={tm_sec:D[n>>2],tm_min:D[n+4>>2],tm_hour:D[n+8>>2],tm_mday:D[n+12>>2],tm_mon:D[n+16>>2],tm_year:D[n+20>>2],tm_wday:D[n+24>>2],tm_yday:D[n+28>>2],tm_isdst:D[n+32>>2],tm_gmtoff:D[n+36>>2],tm_zone:i?Le(i):""},o=Le(t),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)o=o.replace(new RegExp(u,"g"),s[u]);var f=["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],v=["January","February","March","April","May","June","July","August","September","October","November","December"];function p(c,d,A){for(var S=typeof c=="number"?c.toString():c||"";S.length<d;)S=A[0]+S;return S}function h(c,d){return p(c,d,"0")}function g(c,d){function A(K){return K<0?-1:K>0?1:0}var S;return(S=A(c.getFullYear()-d.getFullYear()))===0&&(S=A(c.getMonth()-d.getMonth()))===0&&(S=A(c.getDate()-d.getDate())),S}function b(c){switch(c.getDay()){case 0:return new Date(c.getFullYear()-1,11,29);case 1:return c;case 2:return new Date(c.getFullYear(),0,3);case 3:return new Date(c.getFullYear(),0,2);case 4:return new Date(c.getFullYear(),0,1);case 5:return new Date(c.getFullYear()-1,11,31);case 6:return new Date(c.getFullYear()-1,11,30)}}function C(c){var d=Wn(new Date(c.tm_year+1900,0,1),c.tm_yday),A=new Date(d.getFullYear(),0,4),S=new Date(d.getFullYear()+1,0,4),K=b(A),Ae=b(S);return g(K,d)<=0?g(Ae,d)<=0?d.getFullYear()+1:d.getFullYear():d.getFullYear()-1}var y={"%a":c=>f[c.tm_wday].substring(0,3),"%A":c=>f[c.tm_wday],"%b":c=>v[c.tm_mon].substring(0,3),"%B":c=>v[c.tm_mon],"%C":c=>{var d=c.tm_year+1900;return h(d/100|0,2)},"%d":c=>h(c.tm_mday,2),"%e":c=>p(c.tm_mday,2," "),"%g":c=>C(c).toString().substring(2),"%G":c=>C(c),"%H":c=>h(c.tm_hour,2),"%I":c=>{var d=c.tm_hour;return d==0?d=12:d>12&&(d-=12),h(d,2)},"%j":c=>h(c.tm_mday+On(Pe(c.tm_year+1900)?Fr:Sr,c.tm_mon-1),3),"%m":c=>h(c.tm_mon+1,2),"%M":c=>h(c.tm_min,2),"%n":()=>`
`,"%p":c=>c.tm_hour>=0&&c.tm_hour<12?"AM":"PM","%S":c=>h(c.tm_sec,2),"%t":()=>" ","%u":c=>c.tm_wday||7,"%U":c=>{var d=c.tm_yday+7-c.tm_wday;return h(Math.floor(d/7),2)},"%V":c=>{var d=Math.floor((c.tm_yday+7-(c.tm_wday+6)%7)/7);if((c.tm_wday+371-c.tm_yday-2)%7<=2&&d++,d){if(d==53){var S=(c.tm_wday+371-c.tm_yday)%7;S!=4&&(S!=3||!Pe(c.tm_year))&&(d=1)}}else{d=52;var A=(c.tm_wday+7-c.tm_yday-1)%7;(A==4||A==5&&Pe(c.tm_year%400-1))&&d++}return h(d,2)},"%w":c=>c.tm_wday,"%W":c=>{var d=c.tm_yday+7-(c.tm_wday+6)%7;return h(Math.floor(d/7),2)},"%y":c=>(c.tm_year+1900).toString().substring(2),"%Y":c=>c.tm_year+1900,"%z":c=>{var d=c.tm_gmtoff,A=d>=0;return d=Math.abs(d)/60,d=d/60*100+d%60,(A?"+":"-")+("0000"+d).slice(-4)},"%Z":c=>c.tm_zone,"%%":()=>"%"};o=o.replace(/%%/g,"\0\0");for(var u in y)o.includes(u)&&(o=o.replace(new RegExp(u,"g"),y[u](a)));o=o.replace(/\0\0/g,"%");var R=kn(o,!1);return R.length>r?0:(Mn(R,e),R.length-1)},Hn=(e,r,t,n,i)=>jn(e,r,t,n);ur=l.InternalError=class extends Error{constructor(r){super(r),this.name="InternalError"}},ut(),J=l.BindingError=class extends Error{constructor(r){super(r),this.name="BindingError"}},$t(),gt(),St(),yr=l.UnboundTypeError=Ot(Error,"UnboundTypeError"),Ht(),Ut();var In={s:Jr,u:Kr,b:et,g:rt,q:tt,J:nt,f:it,V:at,d:Qr,da:ot,Q:st,_:ct,ca:Wt,ba:Mt,w:jt,Y:xt,x:Yt,h:Bt,L:zt,M:Nt,t:Zt,o:Gt,K:Kt,C:on,A:sn,ea:un,$:ln,R:cn,ha:Ve,fa:dn,Z:yn,N:mn,O:$n,aa:bn,B:wn,X:Tn,W:An,T:En,U:Rn,E:ei,D:Bn,F:Qn,n:ri,a:Un,e:zn,m:Yn,k:Xn,H:Jn,v:Gn,G:Kn,z:ni,P:ai,l:Nn,j:Ln,c:Vn,p:xn,I:qn,r:ti,i:Zn,y:ii,ga:Dn,S:Hn},F=qr(),B=l._free=e=>(B=l._free=F.ka)(e),Xe=l._malloc=e=>(Xe=l._malloc=F.la)(e),Er=e=>(Er=F.na)(e),$=(e,r)=>($=F.oa)(e,r),le=e=>(le=F.pa)(e),T=()=>(T=F.qa)(),P=e=>(P=F.ra)(e),Rr=e=>(Rr=F.sa)(e),Dr=e=>(Dr=F.ta)(e),Or=(e,r,t)=>(Or=F.ua)(e,r,t),Wr=e=>(Wr=F.va)(e);l.dynCall_viijii=(e,r,t,n,i,a,o)=>(l.dynCall_viijii=F.wa)(e,r,t,n,i,a,o);var kr=l.dynCall_jiiii=(e,r,t,n,i)=>(kr=l.dynCall_jiiii=F.xa)(e,r,t,n,i);l.dynCall_iiiiij=(e,r,t,n,i,a,o)=>(l.dynCall_iiiiij=F.ya)(e,r,t,n,i,a,o),l.dynCall_iiiiijj=(e,r,t,n,i,a,o,s,u)=>(l.dynCall_iiiiijj=F.za)(e,r,t,n,i,a,o,s,u),l.dynCall_iiiiiijj=(e,r,t,n,i,a,o,s,u,f)=>(l.dynCall_iiiiiijj=F.Aa)(e,r,t,n,i,a,o,s,u,f);function Un(e,r){var t=T();try{return w(e)(r)}catch(n){if(P(t),n!==n+0)throw n;$(1,0)}}function xn(e,r,t,n){var i=T();try{w(e)(r,t,n)}catch(a){if(P(i),a!==a+0)throw a;$(1,0)}}function Vn(e,r,t){var n=T();try{w(e)(r,t)}catch(i){if(P(n),i!==i+0)throw i;$(1,0)}}function Yn(e,r,t,n){var i=T();try{return w(e)(r,t,n)}catch(a){if(P(i),a!==a+0)throw a;$(1,0)}}function Bn(e,r,t,n,i){var a=T();try{return w(e)(r,t,n,i)}catch(o){if(P(a),o!==o+0)throw o;$(1,0)}}function Ln(e,r){var t=T();try{w(e)(r)}catch(n){if(P(t),n!==n+0)throw n;$(1,0)}}function zn(e,r,t){var n=T();try{return w(e)(r,t)}catch(i){if(P(n),i!==i+0)throw i;$(1,0)}}function Nn(e){var r=T();try{w(e)()}catch(t){if(P(r),t!==t+0)throw t;$(1,0)}}function Xn(e,r,t,n,i){var a=T();try{return w(e)(r,t,n,i)}catch(o){if(P(a),o!==o+0)throw o;$(1,0)}}function Zn(e,r,t,n,i,a,o,s,u,f,v){var p=T();try{w(e)(r,t,n,i,a,o,s,u,f,v)}catch(h){if(P(p),h!==h+0)throw h;$(1,0)}}function Gn(e,r,t,n,i,a,o){var s=T();try{return w(e)(r,t,n,i,a,o)}catch(u){if(P(s),u!==u+0)throw u;$(1,0)}}function qn(e,r,t,n,i){var a=T();try{w(e)(r,t,n,i)}catch(o){if(P(a),o!==o+0)throw o;$(1,0)}}function Jn(e,r,t,n,i,a){var o=T();try{return w(e)(r,t,n,i,a)}catch(s){if(P(o),s!==s+0)throw s;$(1,0)}}function Kn(e,r,t,n,i,a,o,s){var u=T();try{return w(e)(r,t,n,i,a,o,s)}catch(f){if(P(u),f!==f+0)throw f;$(1,0)}}function Qn(e,r,t,n){var i=T();try{return w(e)(r,t,n)}catch(a){if(P(i),a!==a+0)throw a;$(1,0)}}function ei(e,r,t,n){var i=T();try{return w(e)(r,t,n)}catch(a){if(P(i),a!==a+0)throw a;$(1,0)}}function ri(e){var r=T();try{return w(e)()}catch(t){if(P(r),t!==t+0)throw t;$(1,0)}}function ti(e,r,t,n,i,a,o,s){var u=T();try{w(e)(r,t,n,i,a,o,s)}catch(f){if(P(u),f!==f+0)throw f;$(1,0)}}function ni(e,r,t,n,i,a,o,s,u,f,v,p){var h=T();try{return w(e)(r,t,n,i,a,o,s,u,f,v,p)}catch(g){if(P(h),g!==g+0)throw g;$(1,0)}}function ii(e,r,t,n,i,a,o,s,u,f,v,p,h,g,b,C){var y=T();try{w(e)(r,t,n,i,a,o,s,u,f,v,p,h,g,b,C)}catch(R){if(P(y),R!==R+0)throw R;$(1,0)}}function ai(e,r,t,n,i){var a=T();try{return kr(e,r,t,n,i)}catch(o){if(P(a),o!==o+0)throw o;$(1,0)}}var Ce;te=function e(){Ce||Mr(),Ce||(te=e)};function Mr(){if(L>0||(Ur(),L>0))return;function e(){Ce||(Ce=!0,l.calledRun=!0,!Ke&&(xr(),Ze(l),l.onRuntimeInitialized&&l.onRuntimeInitialized(),Vr()))}l.setStatus?(l.setStatus("Running..."),setTimeout(function(){setTimeout(function(){l.setStatus("")},1),e()},1)):e()}if(l.preInit)for(typeof l.preInit=="function"&&(l.preInit=[l.preInit]);l.preInit.length>0;)l.preInit.pop()();return Mr(),X.ready}})();function oi(H){return W.getZXingModuleWithFactory(Fe,H)}function si(H){return W.setZXingModuleOverridesWithFactory(Fe,H)}async function ui(H,X){return W.readBarcodesFromImageFileWithFactory(Fe,H,X)}async function li(H,X){return W.readBarcodesFromImageDataWithFactory(Fe,H,X)}exports.barcodeFormats=W.barcodeFormats;exports.binarizers=W.binarizers;exports.characterSets=W.characterSets;exports.contentTypes=W.contentTypes;exports.defaultDecodeHints=W.defaultReaderOptions;exports.defaultReaderOptions=W.defaultReaderOptions;exports.eanAddOnSymbols=W.eanAddOnSymbols;exports.purgeZXingModule=W.purgeZXingModule;exports.readOutputEccLevels=W.readOutputEccLevels;exports.textModes=W.textModes;exports.getZXingModule=oi;exports.readBarcodesFromImageData=li;exports.readBarcodesFromImageFile=ui;exports.setZXingModuleOverrides=si;