]> zoso.dev Git - nemo-wallet.git/commitdiff
Compile local versions of buffer used by Ledger and of zxing-wasm. main
authorChris Duncan <chris@zoso.dev>
Thu, 7 Nov 2024 23:03:16 +0000 (15:03 -0800)
committerChris Duncan <chris@zoso.dev>
Thu, 7 Nov 2024 23:03:16 +0000 (15:03 -0800)
buffer@6.0.4.js [new file with mode: 0644]
nemo-wallet.html
zxing-wasm@1.3.4.js [moved from zxing-wasm.js with 99% similarity]
zxing_full.wasm [new file with mode: 0644]

diff --git a/buffer@6.0.4.js b/buffer@6.0.4.js
new file mode 100644 (file)
index 0000000..25ad866
--- /dev/null
@@ -0,0 +1,12 @@
+"use strict";var buffer=(()=>{var M=(n,r)=>()=>(r||n((r={exports:{}}).exports,r),r.exports);var X=M(_=>{"use strict";_.byteLength=yr;_.toByteArray=xr;_.fromByteArray=dr;var d=[],x=[],sr=typeof Uint8Array<"u"?Uint8Array:Array,b="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/";for(m=0,H=b.length;m<H;++m)d[m]=b[m],x[b.charCodeAt(m)]=m;var m,H;x[45]=62;x[95]=63;function W(n){var r=n.length;if(r%4>0)throw new Error("Invalid string. Length must be a multiple of 4");var t=n.indexOf("=");t===-1&&(t=r);var i=t===r?0:4-t%4;return[t,i]}function yr(n){var r=W(n),t=r[0],i=r[1];return(t+i)*3/4-i}function wr(n,r,t){return(r+t)*3/4-t}function xr(n){var r,t=W(n),i=t[0],e=t[1],o=new sr(wr(n,i,e)),u=0,c=e>0?i-4:i,f;for(f=0;f<c;f+=4)r=x[n.charCodeAt(f)]<<18|x[n.charCodeAt(f+1)]<<12|x[n.charCodeAt(f+2)]<<6|x[n.charCodeAt(f+3)],o[u++]=r>>16&255,o[u++]=r>>8&255,o[u++]=r&255;return e===2&&(r=x[n.charCodeAt(f)]<<2|x[n.charCodeAt(f+1)]>>4,o[u++]=r&255),e===1&&(r=x[n.charCodeAt(f)]<<10|x[n.charCodeAt(f+1)]<<4|x[n.charCodeAt(f+2)]>>2,o[u++]=r>>8&255,o[u++]=r&255),o}function Br(n){return d[n>>18&63]+d[n>>12&63]+d[n>>6&63]+d[n&63]}function Er(n,r,t){for(var i,e=[],o=r;o<t;o+=3)i=(n[o]<<16&16711680)+(n[o+1]<<8&65280)+(n[o+2]&255),e.push(Br(i));return e.join("")}function dr(n){for(var r,t=n.length,i=t%3,e=[],o=16383,u=0,c=t-i;u<c;u+=o)e.push(Er(n,u,u+o>c?c:u+o));return i===1?(r=n[t-1],e.push(d[r>>2]+d[r<<4&63]+"==")):i===2&&(r=(n[t-2]<<8)+n[t-1],e.push(d[r>>10]+d[r>>4&63]+d[r<<2&63]+"=")),e.join("")}});var j=M(k=>{k.read=function(n,r,t,i,e){var o,u,c=e*8-i-1,f=(1<<c)-1,p=f>>1,l=-7,a=t?e-1:0,A=t?-1:1,E=n[r+a];for(a+=A,o=E&(1<<-l)-1,E>>=-l,l+=c;l>0;o=o*256+n[r+a],a+=A,l-=8);for(u=o&(1<<-l)-1,o>>=-l,l+=i;l>0;u=u*256+n[r+a],a+=A,l-=8);if(o===0)o=1-p;else{if(o===f)return u?NaN:(E?-1:1)*(1/0);u=u+Math.pow(2,i),o=o-p}return(E?-1:1)*u*Math.pow(2,o-i)};k.write=function(n,r,t,i,e,o){var u,c,f,p=o*8-e-1,l=(1<<p)-1,a=l>>1,A=e===23?Math.pow(2,-24)-Math.pow(2,-77):0,E=i?0:o-1,L=i?1:-1,ar=r<0||r===0&&1/r<0?1:0;for(r=Math.abs(r),isNaN(r)||r===1/0?(c=isNaN(r)?1:0,u=l):(u=Math.floor(Math.log(r)/Math.LN2),r*(f=Math.pow(2,-u))<1&&(u--,f*=2),u+a>=1?r+=A/f:r+=A*Math.pow(2,1-a),r*f>=2&&(u++,f/=2),u+a>=l?(c=0,u=l):u+a>=1?(c=(r*f-1)*Math.pow(2,e),u=u+a):(c=r*Math.pow(2,a-1)*Math.pow(2,e),u=0));e>=8;n[t+E]=c&255,E+=L,c/=256,e-=8);for(u=u<<e|c,p+=e;p>0;n[t+E]=u&255,E+=L,u/=256,p-=8);n[t+E-L]|=ar*128}});var Xr=M(B=>{var D=X(),T=j(),V=typeof Symbol=="function"&&typeof Symbol.for=="function"?Symbol.for("nodejs.util.inspect.custom"):null;B.Buffer=h;B.SlowBuffer=Ur;B.INSPECT_MAX_BYTES=50;var C=2147483647;B.kMaxLength=C;var Q=(1<<28)-16;B.kStringMaxLength=Q;B.constants={MAX_LENGTH:C,MAX_STRING_LENGTH:Q};B.Blob=typeof Blob<"u"?Blob:void 0;B.File=typeof File<"u"?File:void 0;B.atob=typeof atob<"u"?atob:void 0;B.btoa=typeof btoa<"u"?btoa:void 0;h.TYPED_ARRAY_SUPPORT=gr();!h.TYPED_ARRAY_SUPPORT&&typeof console<"u"&&typeof console.error=="function"&&console.error("This browser lacks typed array (Uint8Array) support which is required by `buffer` v5.x. Use `buffer` v4.x if you require old browser support.");function gr(){try{let n=new Uint8Array(1),r={foo:function(){return 42}};return Object.setPrototypeOf(r,Uint8Array.prototype),Object.setPrototypeOf(n,r),n.foo()===42}catch{return!1}}Object.defineProperty(h.prototype,"parent",{enumerable:!0,get:function(){if(h.isBuffer(this))return this.buffer}});Object.defineProperty(h.prototype,"offset",{enumerable:!0,get:function(){if(h.isBuffer(this))return this.byteOffset}});function g(n){if(n>C)throw new RangeError('The value "'+n+'" is invalid for option "size"');let r=new Uint8Array(n);return Object.setPrototypeOf(r,h.prototype),r}function h(n,r,t){if(typeof n=="number"){if(typeof r=="string")throw new TypeError('The "string" argument must be of type string. Received type number');return G(n)}return v(n,r,t)}h.poolSize=8192;function v(n,r,t){if(typeof n=="string")return mr(n,r);if(ArrayBuffer.isView(n))return Fr(n);if(n==null)throw new TypeError("The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type "+typeof n);if(w(n,ArrayBuffer)||n&&w(n.buffer,ArrayBuffer)||typeof SharedArrayBuffer<"u"&&(w(n,SharedArrayBuffer)||n&&w(n.buffer,SharedArrayBuffer)))return P(n,r,t);if(typeof n=="number")throw new TypeError('The "value" argument must not be of type number. Received type number');let i=n.valueOf&&n.valueOf();if(i!=null&&i!==n)return h.from(i,r,t);let e=Ar(n);if(e)return e;if(typeof Symbol<"u"&&Symbol.toPrimitive!=null&&typeof n[Symbol.toPrimitive]=="function")return h.from(n[Symbol.toPrimitive]("string"),r,t);throw new TypeError("The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type "+typeof n)}h.from=function(n,r,t){return v(n,r,t)};Object.setPrototypeOf(h.prototype,Uint8Array.prototype);Object.setPrototypeOf(h,Uint8Array);function rr(n){if(typeof n!="number")throw new TypeError('"size" argument must be of type number');if(n<0)throw new RangeError('The value "'+n+'" is invalid for option "size"')}function Ir(n,r,t){return rr(n),n<=0?g(n):r!==void 0?typeof t=="string"?g(n).fill(r,t):g(n).fill(r):g(n)}h.alloc=function(n,r,t){return Ir(n,r,t)};function G(n){return rr(n),g(n<0?0:Y(n)|0)}h.allocUnsafe=function(n){return G(n)};h.allocUnsafeSlow=function(n){return G(n)};function mr(n,r){if((typeof r!="string"||r==="")&&(r="utf8"),!h.isEncoding(r))throw new TypeError("Unknown encoding: "+r);let t=tr(n,r)|0,i=g(t),e=i.write(n,r);return e!==t&&(i=i.slice(0,e)),i}function $(n){let r=n.length<0?0:Y(n.length)|0,t=g(r);for(let i=0;i<r;i+=1)t[i]=n[i]&255;return t}function Fr(n){if(w(n,Uint8Array)){let r=new Uint8Array(n);return P(r.buffer,r.byteOffset,r.byteLength)}return $(n)}function P(n,r,t){if(r<0||n.byteLength<r)throw new RangeError('"offset" is outside of buffer bounds');if(n.byteLength<r+(t||0))throw new RangeError('"length" is outside of buffer bounds');let i;return r===void 0&&t===void 0?i=new Uint8Array(n):t===void 0?i=new Uint8Array(n,r):i=new Uint8Array(n,r,t),Object.setPrototypeOf(i,h.prototype),i}function Ar(n){if(h.isBuffer(n)){let r=Y(n.length)|0,t=g(r);return t.length===0||n.copy(t,0,0,r),t}if(n.length!==void 0)return typeof n.length!="number"||lr(n.length)?g(0):$(n);if(n.type==="Buffer"&&Array.isArray(n.data))return $(n.data)}function Y(n){if(n>=C)throw new RangeError("Attempt to allocate Buffer larger than maximum size: 0x"+C.toString(16)+" bytes");return n|0}function Ur(n){return+n!=n&&(n=0),h.alloc(+n)}h.isBuffer=function(r){return r!=null&&r._isBuffer===!0&&r!==h.prototype};h.compare=function(r,t){if(!w(r,Uint8Array)||!w(t,Uint8Array))throw new TypeError('The "buf1", "buf2" arguments must be one of type Buffer or Uint8Array');if(r===t)return 0;let i=r.length,e=t.length;for(let o=0,u=Math.min(i,e);o<u;++o)if(r[o]!==t[o]){i=r[o],e=t[o];break}return i<e?-1:e<i?1:0};h.isEncoding=function(r){switch(String(r).toLowerCase()){case"hex":case"utf8":case"utf-8":case"ascii":case"latin1":case"binary":case"base64":case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return!0;default:return!1}};h.concat=function(r,t){if(!Array.isArray(r))throw new TypeError('"list" argument must be an Array of Buffers');if(r.length===0)return h.alloc(0);let i;if(t===void 0)for(t=0,i=0;i<r.length;++i)t+=r[i].length;let e=h.allocUnsafe(t),o=0;for(i=0;i<r.length;++i){let u=r[i];if(!w(u,Uint8Array))throw new TypeError('"list" argument must be an Array of Buffers');if(o+u.length>e.length){e.set(u.subarray(0,e.length-o),o);break}e.set(u,o),o+=u.length}return e};function tr(n,r){if(ArrayBuffer.isView(n)||w(n,ArrayBuffer)||typeof SharedArrayBuffer<"u"&&w(n,SharedArrayBuffer))return n.byteLength;if(typeof n!="string")throw new TypeError('The "string" argument must be one of type string, Buffer, or ArrayBuffer. Received type '+typeof n);let t=n.length,i=arguments.length>2&&arguments[2]===!0;if(!i&&t===0)return 0;let e=!1;for(;;)switch(r){case"ascii":case"latin1":case"binary":return t;case"utf8":case"utf-8":return O(n).length;case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return t*2;case"hex":return t>>>1;case"base64":return pr(n).length;default:if(e)return i?-1:O(n).length;r=(""+r).toLowerCase(),e=!0}}h.byteLength=tr;function Tr(n,r,t){let i=!1;if((r===void 0||r<0)&&(r=0),r>this.length||((t===void 0||t>this.length)&&(t=this.length),t<=0)||(t>>>=0,r>>>=0,t<=r))return"";for(n||(n="utf8");;)switch(n){case"hex":return Dr(this,r,t);case"utf8":case"utf-8":return ir(this,r,t);case"ascii":return br(this,r,t);case"latin1":case"binary":return kr(this,r,t);case"base64":return Lr(this,r,t);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return $r(this,r,t);default:if(i)throw new TypeError("Unknown encoding: "+n);n=(n+"").toLowerCase(),i=!0}}h.prototype._isBuffer=!0;function F(n,r,t){let i=n[r];n[r]=n[t],n[t]=i}h.prototype.swap16=function(){let r=this.length;if(r%2!==0)throw new RangeError("Buffer size must be a multiple of 16-bits");for(let t=0;t<r;t+=2)F(this,t,t+1);return this};h.prototype.swap32=function(){let r=this.length;if(r%4!==0)throw new RangeError("Buffer size must be a multiple of 32-bits");for(let t=0;t<r;t+=4)F(this,t,t+3),F(this,t+1,t+2);return this};h.prototype.swap64=function(){let r=this.length;if(r%8!==0)throw new RangeError("Buffer size must be a multiple of 64-bits");for(let t=0;t<r;t+=8)F(this,t,t+7),F(this,t+1,t+6),F(this,t+2,t+5),F(this,t+3,t+4);return this};h.prototype.toString=function(){let r=this.length;return r===0?"":arguments.length===0?ir(this,0,r):Tr.apply(this,arguments)};h.prototype.toLocaleString=h.prototype.toString;h.prototype.equals=function(r){return this===r?!0:h.compare(this,r)===0};h.prototype.inspect=function(){let r="",t=B.INSPECT_MAX_BYTES;return r=this.toString("hex",0,t).replace(/(.{2})/g,"$1 ").trim(),this.length>t&&(r+=" ... "),"<Buffer "+r+">"};V&&(h.prototype[V]=h.prototype.inspect);h.prototype.compare=function(r,t,i,e,o){if(!w(r,Uint8Array))throw new TypeError('The "target" argument must be one of type Buffer or Uint8Array. Received type '+typeof r);if(t===void 0&&(t=0),i===void 0&&(i=r?r.length:0),e===void 0&&(e=0),o===void 0&&(o=this.length),t<0||i>r.length||e<0||o>this.length)throw new RangeError("out of range index");if(e>=o&&t>=i)return 0;if(e>=o)return-1;if(t>=i)return 1;if(t>>>=0,i>>>=0,e>>>=0,o>>>=0,this===r)return 0;let u=o-e,c=i-t,f=Math.min(u,c);for(let p=0;p<f;++p)if(this[e+p]!==r[t+p]){u=this[e+p],c=r[t+p];break}return u<c?-1:c<u?1:0};function nr(n,r,t,i,e){if(n.length===0)return-1;if(typeof t=="string"?(i=t,t=0):t>2147483647?t=2147483647:t<-2147483648&&(t=-2147483648),t=+t,lr(t)&&(t=e?0:n.length-1),t<0&&(t=n.length+t),t>=n.length){if(e)return-1;t=n.length-1}else if(t<0)if(e)t=0;else return-1;if(typeof r=="string"&&(r=h.from(r,i)),h.isBuffer(r))return r.length===0?-1:z(n,r,t,i,e);if(typeof r=="number")return r=r&255,typeof Uint8Array.prototype.indexOf=="function"?e?Uint8Array.prototype.indexOf.call(n,r,t):Uint8Array.prototype.lastIndexOf.call(n,r,t):z(n,[r],t,i,e);throw new TypeError("val must be string, number or Buffer")}function z(n,r,t,i,e){let o=1,u=n.length,c=r.length;if(i!==void 0&&(i=String(i).toLowerCase(),i==="ucs2"||i==="ucs-2"||i==="utf16le"||i==="utf-16le")){if(n.length<2||r.length<2)return-1;o=2,u/=2,c/=2,t/=2}function f(l,a){return o===1?l[a]:l.readUInt16BE(a*o)}let p;if(e){let l=-1;for(p=t;p<u;p++)if(f(n,p)===f(r,l===-1?0:p-l)){if(l===-1&&(l=p),p-l+1===c)return l*o}else l!==-1&&(p-=p-l),l=-1}else for(t+c>u&&(t=u-c),p=t;p>=0;p--){let l=!0;for(let a=0;a<c;a++)if(f(n,p+a)!==f(r,a)){l=!1;break}if(l)return p}return-1}h.prototype.includes=function(r,t,i){return this.indexOf(r,t,i)!==-1};h.prototype.indexOf=function(r,t,i){return nr(this,r,t,i,!0)};h.prototype.lastIndexOf=function(r,t,i){return nr(this,r,t,i,!1)};function Rr(n,r,t,i){t=Number(t)||0;let e=n.length-t;i?(i=Number(i),i>e&&(i=e)):i=e;let o=r.length;i>o>>>1&&(i=o>>>1);for(let u=0;u<i;++u){let c=r.charCodeAt(u*2+0),f=r.charCodeAt(u*2+1),p=Z[c&127],l=Z[f&127];if((c|f|p|l)&-128)return u;n[t+u]=p<<4|l}return i}function Cr(n,r,t,i){return N(O(r,n.length-t),n,t,i)}function Sr(n,r,t,i){return N(Yr(r),n,t,i)}function _r(n,r,t,i){return N(pr(r),n,t,i)}function Nr(n,r,t,i){return N(qr(r,n.length-t),n,t,i)}h.prototype.write=function(r,t,i,e){if(t===void 0)e="utf8",i=this.length,t=0;else if(i===void 0&&typeof t=="string")e=t,i=this.length,t=0;else if(isFinite(t))t=t>>>0,isFinite(i)?(i=i>>>0,e===void 0&&(e="utf8")):(e=i,i=void 0);else throw new Error("Buffer.write(string, encoding, offset[, length]) is no longer supported");let o=this.length-t;if((i===void 0||i>o)&&(i=o),r.length>0&&(i<0||t<0)||t>this.length)throw new RangeError("Attempt to write outside buffer bounds");e||(e="utf8");let u=!1;for(;;)switch(e){case"hex":return Rr(this,r,t,i);case"utf8":case"utf-8":return Cr(this,r,t,i);case"ascii":case"latin1":case"binary":return Sr(this,r,t,i);case"base64":return _r(this,r,t,i);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return Nr(this,r,t,i);default:if(u)throw new TypeError("Unknown encoding: "+e);e=(""+e).toLowerCase(),u=!0}};h.prototype.toJSON=function(){return{type:"Buffer",data:Array.prototype.slice.call(this,0)}};function Lr(n,r,t){return r===0&&t===n.length?D.fromByteArray(n):D.fromByteArray(n.slice(r,t))}function ir(n,r,t){t=Math.min(n.length,t);let i=[],e=r;for(;e<t;){let o=n[e],u=null,c=o>239?4:o>223?3:o>191?2:1;if(e+c<=t){let f,p,l,a;switch(c){case 1:o<128&&(u=o);break;case 2:f=n[e+1],(f&192)===128&&(a=(o&31)<<6|f&63,a>127&&(u=a));break;case 3:f=n[e+1],p=n[e+2],(f&192)===128&&(p&192)===128&&(a=(o&15)<<12|(f&63)<<6|p&63,a>2047&&(a<55296||a>57343)&&(u=a));break;case 4:f=n[e+1],p=n[e+2],l=n[e+3],(f&192)===128&&(p&192)===128&&(l&192)===128&&(a=(o&15)<<18|(f&63)<<12|(p&63)<<6|l&63,a>65535&&a<1114112&&(u=a))}}u===null?(u=65533,c=1):u>65535&&(u-=65536,i.push(u>>>10&1023|55296),u=56320|u&1023),i.push(u),e+=c}return Mr(i)}var J=4096;function Mr(n){let r=n.length;if(r<=J)return String.fromCharCode.apply(String,n);let t="",i=0;for(;i<r;)t+=String.fromCharCode.apply(String,n.slice(i,i+=J));return t}function br(n,r,t){let i="";t=Math.min(n.length,t);for(let e=r;e<t;++e)i+=String.fromCharCode(n[e]&127);return i}function kr(n,r,t){let i="";t=Math.min(n.length,t);for(let e=r;e<t;++e)i+=String.fromCharCode(n[e]);return i}function Dr(n,r,t){let i=n.length;(!r||r<0)&&(r=0),(!t||t<0||t>i)&&(t=i);let e="";for(let o=r;o<t;++o)e+=Hr[n[o]];return e}function $r(n,r,t){let i=n.slice(r,t),e="";for(let o=0;o<i.length-1;o+=2)e+=String.fromCharCode(i[o]+i[o+1]*256);return e}h.prototype.slice=function(r,t){let i=this.length;r=~~r,t=t===void 0?i:~~t,r<0?(r+=i,r<0&&(r=0)):r>i&&(r=i),t<0?(t+=i,t<0&&(t=0)):t>i&&(t=i),t<r&&(t=r);let e=this.subarray(r,t);return Object.setPrototypeOf(e,h.prototype),e};function s(n,r,t){if(n%1!==0||n<0)throw new RangeError("offset is not uint");if(n+r>t)throw new RangeError("Trying to access beyond buffer length")}h.prototype.readUintLE=h.prototype.readUIntLE=function(r,t,i){r=r>>>0,t=t>>>0,i||s(r,t,this.length);let e=this[r],o=1,u=0;for(;++u<t&&(o*=256);)e+=this[r+u]*o;return e};h.prototype.readUintBE=h.prototype.readUIntBE=function(r,t,i){r=r>>>0,t=t>>>0,i||s(r,t,this.length);let e=this[r+--t],o=1;for(;t>0&&(o*=256);)e+=this[r+--t]*o;return e};h.prototype.readUint8=h.prototype.readUInt8=function(r,t){return r=r>>>0,t||s(r,1,this.length),this[r]};h.prototype.readUint16LE=h.prototype.readUInt16LE=function(r,t){return r=r>>>0,t||s(r,2,this.length),this[r]|this[r+1]<<8};h.prototype.readUint16BE=h.prototype.readUInt16BE=function(r,t){return r=r>>>0,t||s(r,2,this.length),this[r]<<8|this[r+1]};h.prototype.readUint32LE=h.prototype.readUInt32LE=function(r,t){return r=r>>>0,t||s(r,4,this.length),(this[r]|this[r+1]<<8|this[r+2]<<16)+this[r+3]*16777216};h.prototype.readUint32BE=h.prototype.readUInt32BE=function(r,t){return r=r>>>0,t||s(r,4,this.length),this[r]*16777216+(this[r+1]<<16|this[r+2]<<8|this[r+3])};h.prototype.readBigUInt64LE=I(function(r){r=r>>>0,R(r,"offset");let t=this[r],i=this[r+7];(t===void 0||i===void 0)&&S(r,this.length-8);let e=t+this[++r]*2**8+this[++r]*2**16+this[++r]*2**24,o=this[++r]+this[++r]*2**8+this[++r]*2**16+i*2**24;return BigInt(e)+(BigInt(o)<<BigInt(32))});h.prototype.readBigUInt64BE=I(function(r){r=r>>>0,R(r,"offset");let t=this[r],i=this[r+7];(t===void 0||i===void 0)&&S(r,this.length-8);let e=t*2**24+this[++r]*2**16+this[++r]*2**8+this[++r],o=this[++r]*2**24+this[++r]*2**16+this[++r]*2**8+i;return(BigInt(e)<<BigInt(32))+BigInt(o)});h.prototype.readIntLE=function(r,t,i){r=r>>>0,t=t>>>0,i||s(r,t,this.length);let e=this[r],o=1,u=0;for(;++u<t&&(o*=256);)e+=this[r+u]*o;return o*=128,e>=o&&(e-=Math.pow(2,8*t)),e};h.prototype.readIntBE=function(r,t,i){r=r>>>0,t=t>>>0,i||s(r,t,this.length);let e=t,o=1,u=this[r+--e];for(;e>0&&(o*=256);)u+=this[r+--e]*o;return o*=128,u>=o&&(u-=Math.pow(2,8*t)),u};h.prototype.readInt8=function(r,t){return r=r>>>0,t||s(r,1,this.length),this[r]&128?(255-this[r]+1)*-1:this[r]};h.prototype.readInt16LE=function(r,t){r=r>>>0,t||s(r,2,this.length);let i=this[r]|this[r+1]<<8;return i&32768?i|4294901760:i};h.prototype.readInt16BE=function(r,t){r=r>>>0,t||s(r,2,this.length);let i=this[r+1]|this[r]<<8;return i&32768?i|4294901760:i};h.prototype.readInt32LE=function(r,t){return r=r>>>0,t||s(r,4,this.length),this[r]|this[r+1]<<8|this[r+2]<<16|this[r+3]<<24};h.prototype.readInt32BE=function(r,t){return r=r>>>0,t||s(r,4,this.length),this[r]<<24|this[r+1]<<16|this[r+2]<<8|this[r+3]};h.prototype.readBigInt64LE=I(function(r){r=r>>>0,R(r,"offset");let t=this[r],i=this[r+7];(t===void 0||i===void 0)&&S(r,this.length-8);let e=this[r+4]+this[r+5]*2**8+this[r+6]*2**16+(i<<24);return(BigInt(e)<<BigInt(32))+BigInt(t+this[++r]*2**8+this[++r]*2**16+this[++r]*2**24)});h.prototype.readBigInt64BE=I(function(r){r=r>>>0,R(r,"offset");let t=this[r],i=this[r+7];(t===void 0||i===void 0)&&S(r,this.length-8);let e=(t<<24)+this[++r]*2**16+this[++r]*2**8+this[++r];return(BigInt(e)<<BigInt(32))+BigInt(this[++r]*2**24+this[++r]*2**16+this[++r]*2**8+i)});h.prototype.readFloatLE=function(r,t){return r=r>>>0,t||s(r,4,this.length),T.read(this,r,!0,23,4)};h.prototype.readFloatBE=function(r,t){return r=r>>>0,t||s(r,4,this.length),T.read(this,r,!1,23,4)};h.prototype.readDoubleLE=function(r,t){return r=r>>>0,t||s(r,8,this.length),T.read(this,r,!0,52,8)};h.prototype.readDoubleBE=function(r,t){return r=r>>>0,t||s(r,8,this.length),T.read(this,r,!1,52,8)};function y(n,r,t,i,e,o){if(!h.isBuffer(n))throw new TypeError('"buffer" argument must be a Buffer instance');if(r>e||r<o)throw new RangeError('"value" argument is out of bounds');if(t+i>n.length)throw new RangeError("Index out of range")}h.prototype.writeUintLE=h.prototype.writeUIntLE=function(r,t,i,e){if(r=+r,t=t>>>0,i=i>>>0,!e){let c=Math.pow(2,8*i)-1;y(this,r,t,i,c,0)}let o=1,u=0;for(this[t]=r&255;++u<i&&(o*=256);)this[t+u]=r/o&255;return t+i};h.prototype.writeUintBE=h.prototype.writeUIntBE=function(r,t,i,e){if(r=+r,t=t>>>0,i=i>>>0,!e){let c=Math.pow(2,8*i)-1;y(this,r,t,i,c,0)}let o=i-1,u=1;for(this[t+o]=r&255;--o>=0&&(u*=256);)this[t+o]=r/u&255;return t+i};h.prototype.writeUint8=h.prototype.writeUInt8=function(r,t,i){return r=+r,t=t>>>0,i||y(this,r,t,1,255,0),this[t]=r&255,t+1};h.prototype.writeUint16LE=h.prototype.writeUInt16LE=function(r,t,i){return r=+r,t=t>>>0,i||y(this,r,t,2,65535,0),this[t]=r&255,this[t+1]=r>>>8,t+2};h.prototype.writeUint16BE=h.prototype.writeUInt16BE=function(r,t,i){return r=+r,t=t>>>0,i||y(this,r,t,2,65535,0),this[t]=r>>>8,this[t+1]=r&255,t+2};h.prototype.writeUint32LE=h.prototype.writeUInt32LE=function(r,t,i){return r=+r,t=t>>>0,i||y(this,r,t,4,4294967295,0),this[t+3]=r>>>24,this[t+2]=r>>>16,this[t+1]=r>>>8,this[t]=r&255,t+4};h.prototype.writeUint32BE=h.prototype.writeUInt32BE=function(r,t,i){return r=+r,t=t>>>0,i||y(this,r,t,4,4294967295,0),this[t]=r>>>24,this[t+1]=r>>>16,this[t+2]=r>>>8,this[t+3]=r&255,t+4};function er(n,r,t,i,e){fr(r,i,e,n,t,7);let o=Number(r&BigInt(4294967295));n[t++]=o,o=o>>8,n[t++]=o,o=o>>8,n[t++]=o,o=o>>8,n[t++]=o;let u=Number(r>>BigInt(32)&BigInt(4294967295));return n[t++]=u,u=u>>8,n[t++]=u,u=u>>8,n[t++]=u,u=u>>8,n[t++]=u,t}function or(n,r,t,i,e){fr(r,i,e,n,t,7);let o=Number(r&BigInt(4294967295));n[t+7]=o,o=o>>8,n[t+6]=o,o=o>>8,n[t+5]=o,o=o>>8,n[t+4]=o;let u=Number(r>>BigInt(32)&BigInt(4294967295));return n[t+3]=u,u=u>>8,n[t+2]=u,u=u>>8,n[t+1]=u,u=u>>8,n[t]=u,t+8}h.prototype.writeBigUInt64LE=I(function(r,t=0){return er(this,r,t,BigInt(0),BigInt("0xffffffffffffffff"))});h.prototype.writeBigUInt64BE=I(function(r,t=0){return or(this,r,t,BigInt(0),BigInt("0xffffffffffffffff"))});h.prototype.writeIntLE=function(r,t,i,e){if(r=+r,t=t>>>0,!e){let f=Math.pow(2,8*i-1);y(this,r,t,i,f-1,-f)}let o=0,u=1,c=0;for(this[t]=r&255;++o<i&&(u*=256);)r<0&&c===0&&this[t+o-1]!==0&&(c=1),this[t+o]=(r/u>>0)-c&255;return t+i};h.prototype.writeIntBE=function(r,t,i,e){if(r=+r,t=t>>>0,!e){let f=Math.pow(2,8*i-1);y(this,r,t,i,f-1,-f)}let o=i-1,u=1,c=0;for(this[t+o]=r&255;--o>=0&&(u*=256);)r<0&&c===0&&this[t+o+1]!==0&&(c=1),this[t+o]=(r/u>>0)-c&255;return t+i};h.prototype.writeInt8=function(r,t,i){return r=+r,t=t>>>0,i||y(this,r,t,1,127,-128),r<0&&(r=255+r+1),this[t]=r&255,t+1};h.prototype.writeInt16LE=function(r,t,i){return r=+r,t=t>>>0,i||y(this,r,t,2,32767,-32768),this[t]=r&255,this[t+1]=r>>>8,t+2};h.prototype.writeInt16BE=function(r,t,i){return r=+r,t=t>>>0,i||y(this,r,t,2,32767,-32768),this[t]=r>>>8,this[t+1]=r&255,t+2};h.prototype.writeInt32LE=function(r,t,i){return r=+r,t=t>>>0,i||y(this,r,t,4,2147483647,-2147483648),this[t]=r&255,this[t+1]=r>>>8,this[t+2]=r>>>16,this[t+3]=r>>>24,t+4};h.prototype.writeInt32BE=function(r,t,i){return r=+r,t=t>>>0,i||y(this,r,t,4,2147483647,-2147483648),r<0&&(r=4294967295+r+1),this[t]=r>>>24,this[t+1]=r>>>16,this[t+2]=r>>>8,this[t+3]=r&255,t+4};h.prototype.writeBigInt64LE=I(function(r,t=0){return er(this,r,t,-BigInt("0x8000000000000000"),BigInt("0x7fffffffffffffff"))});h.prototype.writeBigInt64BE=I(function(r,t=0){return or(this,r,t,-BigInt("0x8000000000000000"),BigInt("0x7fffffffffffffff"))});function ur(n,r,t,i,e,o){if(t+i>n.length)throw new RangeError("Index out of range");if(t<0)throw new RangeError("Index out of range")}function hr(n,r,t,i,e){return r=+r,t=t>>>0,e||ur(n,r,t,4,34028234663852886e22,-34028234663852886e22),T.write(n,r,t,i,23,4),t+4}h.prototype.writeFloatLE=function(r,t,i){return hr(this,r,t,!0,i)};h.prototype.writeFloatBE=function(r,t,i){return hr(this,r,t,!1,i)};function cr(n,r,t,i,e){return r=+r,t=t>>>0,e||ur(n,r,t,8,17976931348623157e292,-17976931348623157e292),T.write(n,r,t,i,52,8),t+8}h.prototype.writeDoubleLE=function(r,t,i){return cr(this,r,t,!0,i)};h.prototype.writeDoubleBE=function(r,t,i){return cr(this,r,t,!1,i)};h.prototype.copy=function(r,t,i,e){if(!w(r,Uint8Array))throw new TypeError("argument should be a Buffer");if(i||(i=0),!e&&e!==0&&(e=this.length),t>=r.length&&(t=r.length),t||(t=0),e>0&&e<i&&(e=i),e===i||r.length===0||this.length===0)return 0;if(t<0)throw new RangeError("targetStart out of bounds");if(i<0||i>=this.length)throw new RangeError("Index out of range");if(e<0)throw new RangeError("sourceEnd out of bounds");e>this.length&&(e=this.length),r.length-t<e-i&&(e=r.length-t+i);let o=e-i;return this===r&&typeof Uint8Array.prototype.copyWithin=="function"?this.copyWithin(t,i,e):Uint8Array.prototype.set.call(r,this.subarray(i,e),t),o};h.prototype.fill=function(r,t,i,e){if(typeof r=="string"){if(typeof t=="string"?(e=t,t=0,i=this.length):typeof i=="string"&&(e=i,i=this.length),e!==void 0&&typeof e!="string")throw new TypeError("encoding must be a string");if(typeof e=="string"&&!h.isEncoding(e))throw new TypeError("Unknown encoding: "+e);if(r.length===1){let u=r.charCodeAt(0);(e==="utf8"&&u<128||e==="latin1")&&(r=u)}}else typeof r=="number"?r=r&255:typeof r=="boolean"&&(r=Number(r));if(t<0||this.length<t||this.length<i)throw new RangeError("Out of range index");if(i<=t)return this;t=t>>>0,i=i===void 0?this.length:i>>>0,r||(r=0);let o;if(typeof r=="number")for(o=t;o<i;++o)this[o]=r;else{let u=w(r,Uint8Array)?r:h.from(r,e),c=u.length;if(c===0)throw new TypeError('The value "'+r+'" is invalid for argument "value"');for(o=0;o<i-t;++o)this[o+t]=u[o%c]}return this};var U={};function q(n,r,t){function i(){let e=new t(r.apply(null,arguments));return Object.setPrototypeOf(e,i.prototype),e.code=n,e.name=`${e.name} [${n}]`,Error.captureStackTrace&&Error.captureStackTrace(e,i),e.stack,delete e.name,e}Object.setPrototypeOf(i.prototype,t.prototype),Object.setPrototypeOf(i,t),i.prototype.toString=function(){return`${this.name} [${n}]: ${this.message}`},U[n]=i}q("ERR_BUFFER_OUT_OF_BOUNDS",function(n){return n?`${n} is outside of buffer bounds`:"Attempt to access memory outside buffer bounds"},RangeError);q("ERR_INVALID_ARG_TYPE",function(n,r){return`The "${n}" argument must be of type number. Received type ${typeof r}`},TypeError);q("ERR_OUT_OF_RANGE",function(n,r,t){let i=`The value of "${n}" is out of range.`,e=t;return Number.isInteger(t)&&Math.abs(t)>2**32?e=K(String(t)):typeof t=="bigint"&&(e=String(t),(t>BigInt(2)**BigInt(32)||t<-(BigInt(2)**BigInt(32)))&&(e=K(e)),e+="n"),i+=` It must be ${r}. Received ${e}`,i},RangeError);function K(n){let r="",t=n.length,i=n[0]==="-"?1:0;for(;t>=i+4;t-=3)r=`_${n.slice(t-3,t)}${r}`;return`${n.slice(0,t)}${r}`}function Pr(n,r,t){R(r,"offset"),(n[r]===void 0||n[r+t]===void 0)&&S(r,n.length-(t+1))}function fr(n,r,t,i,e,o){if(n>t||n<r){let u=typeof r=="bigint"?"n":"",c;throw o>3?r===0||r===BigInt(0)?c=`>= 0${u} and < 2${u} ** ${(o+1)*8}${u}`:c=`>= -(2${u} ** ${(o+1)*8-1}${u}) and < 2 ** ${(o+1)*8-1}${u}`:c=`>= ${r}${u} and <= ${t}${u}`,new U.ERR_OUT_OF_RANGE("value",c,n)}Pr(i,e,o)}function R(n,r){if(typeof n!="number")throw new U.ERR_INVALID_ARG_TYPE(r,"number",n)}function S(n,r,t){throw Math.floor(n)!==n?(R(n,t),new U.ERR_OUT_OF_RANGE(t||"offset","an integer",n)):r<0?new U.ERR_BUFFER_OUT_OF_BOUNDS:new U.ERR_OUT_OF_RANGE(t||"offset",`>= ${t?1:0} and <= ${r}`,n)}var Or=/[^+/0-9A-Za-z-_]/g;function Gr(n){if(n=n.split("=")[0],n=n.trim().replace(Or,""),n.length<2)return"";for(;n.length%4!==0;)n=n+"=";return n}function O(n,r){r=r||1/0;let t,i=n.length,e=null,o=[];for(let u=0;u<i;++u){if(t=n.charCodeAt(u),t>55295&&t<57344){if(!e){if(t>56319){(r-=3)>-1&&o.push(239,191,189);continue}else if(u+1===i){(r-=3)>-1&&o.push(239,191,189);continue}e=t;continue}if(t<56320){(r-=3)>-1&&o.push(239,191,189),e=t;continue}t=(e-55296<<10|t-56320)+65536}else e&&(r-=3)>-1&&o.push(239,191,189);if(e=null,t<128){if((r-=1)<0)break;o.push(t)}else if(t<2048){if((r-=2)<0)break;o.push(t>>6|192,t&63|128)}else if(t<65536){if((r-=3)<0)break;o.push(t>>12|224,t>>6&63|128,t&63|128)}else if(t<1114112){if((r-=4)<0)break;o.push(t>>18|240,t>>12&63|128,t>>6&63|128,t&63|128)}else throw new Error("Invalid code point")}return o}function Yr(n){let r=[];for(let t=0;t<n.length;++t)r.push(n.charCodeAt(t)&255);return r}function qr(n,r){let t,i,e,o=[];for(let u=0;u<n.length&&!((r-=2)<0);++u)t=n.charCodeAt(u),i=t>>8,e=t%256,o.push(e),o.push(i);return o}function pr(n){return D.toByteArray(Gr(n))}function N(n,r,t,i){let e;for(e=0;e<i&&!(e+t>=r.length||e>=n.length);++e)r[e+t]=n[e];return e}function w(n,r){return n instanceof r||n!=null&&n.constructor!=null&&n.constructor.name!=null&&n.constructor.name===r.name||r===Uint8Array&&h.isBuffer(n)}function lr(n){return n!==n}var Hr=function(){let n="0123456789abcdef",r=new Array(256);for(let t=0;t<16;++t){let i=t*16;for(let e=0;e<16;++e)r[i+e]=n[t]+n[e]}return r}(),Z=[-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,0,1,2,3,4,5,6,7,8,9,-1,-1,-1,-1,-1,-1,-1,10,11,12,13,14,15,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,10,11,12,13,14,15,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1];function I(n){return typeof BigInt>"u"?Wr:n}function Wr(){throw new Error("BigInt not supported")}});return Xr();})();
+/*!
+ * The buffer module from node.js, for the browser.
+ *
+ * @author   Feross Aboukhadijeh <https://feross.org>
+ * @license  MIT
+ */
+/*! Bundled license information:
+
+ieee754/index.js:
+  (*! ieee754. BSD-3-Clause License. Feross Aboukhadijeh <https://feross.org/opensource> *)
+*/
index ba2699de9e5992edcb8e1830e6f09cdf42b8b99e..7f4180c9314c381fafa66ef20d706b1d71c47771 100644 (file)
@@ -4,13 +4,19 @@
        <meta charset="utf-8" />
        <meta lang="en" />
        <meta name="viewport" content="width=device-width, initial-scale=1" />
-       <script src="./zxing-wasm.js"></script>
-       <script type="module">
-               import { Buffer } from 'https://esm.run/buffer-browser@6.0.4/index.js'
-               globalThis.Buffer = Buffer
-       </script>
+       <script src="./zxing-wasm@1.3.4.js"></script>
+       <script src="./buffer@6.0.4.js"></script>
        <script type="module" src="https://cdn.jsdelivr.net/npm/libnemo@0.0.19/dist/global.min.js"></script>
        <script>
+               const Buffer = buffer.Buffer
+               ZXingWASM.setZXingModuleOverrides({
+                       locateFile: (path, prefix) => {
+                               if (path.endsWith(".wasm")) {
+                                       return `./${path}`
+                               }
+                               return prefix + path
+                       },
+               })
                const observer = new MutationObserver((mutations) => {
                        for (const mutation of mutations) {
                                if (mutation.type === "attributes") {
similarity index 99%
rename from zxing-wasm.js
rename to zxing-wasm@1.3.4.js
index 008b2a6ee15b1a232c8405a3e8dcb2e9958a03d6..229e1a369f6735973db2fff1452fc3300410403c 100644 (file)
@@ -1,7 +1,7 @@
 // SPDX-FileCopyrightText: 2024 Ze-Zheng Wu <zezhengwu@proton.me>
 // SPDX-License-Identifier: MIT
-// zxing-wasm@1.3.3
+// zxing-wasm@1.3.4
 // ZXing-C++ WebAssembly as an ES/CJS module with types
 // https://github.com/Sec-ant/zxing-wasm
-var ZXingWASM=function(A){"use strict";const Dr=["Aztec","Codabar","Code128","Code39","Code93","DataBar","DataBarExpanded","DataBarLimited","DataMatrix","DXFilmEdge","EAN-13","EAN-8","ITF","Linear-Codes","Matrix-Codes","MaxiCode","MicroQRCode","None","PDF417","QRCode","rMQRCode","UPC-A","UPC-E"];function nt(v){return v.join("|")}function it(v){const h=ae(v);let C=0,k=Dr.length-1;for(;C<=k;){const c=Math.floor((C+k)/2),I=Dr[c],j=ae(I);if(j===h)return I;j<h?C=c+1:k=c-1}return"None"}function ae(v){return v.toLowerCase().replace(/_-\[\]/g,"")}const at=["LocalAverage","GlobalHistogram","FixedThreshold","BoolCast"];function ot(v,h){return v.Binarizer[h]}const st=["Unknown","ASCII","ISO8859_1","ISO8859_2","ISO8859_3","ISO8859_4","ISO8859_5","ISO8859_6","ISO8859_7","ISO8859_8","ISO8859_9","ISO8859_10","ISO8859_11","ISO8859_13","ISO8859_14","ISO8859_15","ISO8859_16","Cp437","Cp1250","Cp1251","Cp1252","Cp1256","Shift_JIS","Big5","GB2312","GB18030","EUC_JP","EUC_KR","UTF16BE","UTF8","UTF16LE","UTF32BE","UTF32LE","BINARY"];function oe(v,h){return v.CharacterSet[h]}const se=["Text","Binary","Mixed","GS1","ISO15434","UnknownECI"];function ut(v){return se[v.value]}const ct=["Ignore","Read","Require"];function lt(v,h){return v.EanAddOnSymbol[h]}const ft=["Plain","ECI","HRI","Hex","Escaped"];function vt(v,h){return v.TextMode[h]}const rr={formats:[],tryHarder:!0,tryRotate:!0,tryInvert:!0,tryDownscale:!0,binarizer:"LocalAverage",isPure:!1,downscaleFactor:3,downscaleThreshold:500,minLineCount:2,maxNumberOfSymbols:255,tryCode39ExtendedMode:!1,validateCode39CheckSum:!1,validateITFCheckSum:!1,returnCodabarStartEnd:!1,returnErrors:!1,eanAddOnSymbol:"Read",textMode:"Plain",characterSet:"Unknown"};function ue(v,h){return{...h,formats:nt(h.formats),binarizer:ot(v,h.binarizer),eanAddOnSymbol:lt(v,h.eanAddOnSymbol),textMode:vt(v,h.textMode),characterSet:oe(v,h.characterSet)}}const dt=[-1,0,1,2,3,4,5,6,7,8],ht=["L","M","Q","H"],Mr={width:200,height:200,format:"QRCode",characterSet:"UTF8",eccLevel:-1,margin:10};function pt(v,h){return{...h,characterSet:oe(v,h.characterSet)}}function ce(v){return{...v,format:it(v.format),eccLevel:v.eccLevel,contentType:ut(v.contentType)}}function _t(v){const{image:h,error:C}=v;return h?{image:new Blob([new Uint8Array(h)],{type:"image/png"}),error:""}:{image:null,error:C}}const gt={locateFile:(v,h)=>{const C=v.match(/_(.+?)\.wasm$/);return C?`https://fastly.jsdelivr.net/npm/zxing-wasm@1.3.2/dist/${C[1]}/${v}`:h+v}};let gr=new WeakMap;function mr(v,h){var I;const C=gr.get(v);if(C!=null&&C.modulePromise&&(h===void 0||Object.is(h,C.moduleOverrides)))return C.modulePromise;const k=(I=h!=null?h:C==null?void 0:C.moduleOverrides)!=null?I:gt,c=v({...k});return gr.set(v,{moduleOverrides:k,modulePromise:c}),c}function mt(){gr=new WeakMap}function yt(v,h){gr.set(v,{moduleOverrides:h})}async function $t(v,h,C=rr){const k={...rr,...C},c=await mr(v),{size:I}=h,j=new Uint8Array(await h.arrayBuffer()),G=c._malloc(I);c.HEAPU8.set(j,G);const er=c.readBarcodesFromImage(G,I,ue(c,k));c._free(G);const Z=[];for(let M=0;M<er.size();++M)Z.push(ce(er.get(M)));return Z}async function bt(v,h,C=rr){const k={...rr,...C},c=await mr(v),{data:I,width:j,height:G,data:{byteLength:er}}=h,Z=c._malloc(er);c.HEAPU8.set(I,Z);const M=c.readBarcodesFromPixmap(Z,j,G,ue(c,k));c._free(Z);const ur=[];for(let tr=0;tr<M.size();++tr)ur.push(ce(M.get(tr)));return ur}async function wt(v,h,C=Mr){const k={...Mr,...C},c=await mr(v),I=c.writeBarcodeToImage(h,pt(c,k));return _t(I)}var sr=(()=>{var h;var v=typeof document<"u"&&((h=document.currentScript)==null?void 0:h.tagName.toUpperCase())==="SCRIPT"?document.currentScript.src:void 0;return function(C={}){var k,c=C,I,j,G=new Promise((r,e)=>{I=r,j=e}),er=typeof window=="object",Z=typeof Bun<"u",M=typeof importScripts=="function";typeof process=="object"&&typeof process.versions=="object"&&typeof process.versions.node=="string"&&process.type!="renderer";var ur=Object.assign({},c),tr="./this.program",B="";function St(r){return c.locateFile?c.locateFile(r,B):B+r}var ve,Br;if(er||M||Z){var Hr;M?B=self.location.href:typeof document<"u"&&((Hr=document.currentScript)===null||Hr===void 0?void 0:Hr.tagName.toUpperCase())==="SCRIPT"&&(B=document.currentScript.src),v&&(B=v),B.startsWith("blob:")?B="":B=B.substr(0,B.replace(/[?#].*/,"").lastIndexOf("/")+1),M&&(Br=r=>{var e=new XMLHttpRequest;return e.open("GET",r,!1),e.responseType="arraybuffer",e.send(null),new Uint8Array(e.response)}),ve=r=>fetch(r,{credentials:"same-origin"}).then(e=>e.ok?e.arrayBuffer():Promise.reject(new Error(e.status+" : "+e.url)))}var Ft=c.print||console.log.bind(console),nr=c.printErr||console.error.bind(console);Object.assign(c,ur),ur=null,c.arguments&&c.arguments,c.thisProgram&&(tr=c.thisProgram);var yr=c.wasmBinary,$r,de=!1,H,O,ir,cr,Q,w,he,pe;function _e(){var r=$r.buffer;c.HEAP8=H=new Int8Array(r),c.HEAP16=ir=new Int16Array(r),c.HEAPU8=O=new Uint8Array(r),c.HEAPU16=cr=new Uint16Array(r),c.HEAP32=Q=new Int32Array(r),c.HEAPU32=w=new Uint32Array(r),c.HEAPF32=he=new Float32Array(r),c.HEAPF64=pe=new Float64Array(r)}var ge=[],me=[],ye=[];function Rt(){var r=c.preRun;r&&(typeof r=="function"&&(r=[r]),r.forEach(It)),Vr(ge)}function Ot(){Vr(me)}function kt(){var r=c.postRun;r&&(typeof r=="function"&&(r=[r]),r.forEach(jt)),Vr(ye)}function It(r){ge.unshift(r)}function Wt(r){me.unshift(r)}function jt(r){ye.unshift(r)}var q=0,lr=null;function Ut(r){var e;q++,(e=c.monitorRunDependencies)===null||e===void 0||e.call(c,q)}function Dt(r){var e;if(q--,(e=c.monitorRunDependencies)===null||e===void 0||e.call(c,q),q==0&&lr){var t=lr;lr=null,t()}}function xr(r){var e;(e=c.onAbort)===null||e===void 0||e.call(c,r),r="Aborted("+r+")",nr(r),de=!0,r+=". Build with -sASSERTIONS for more info.";var t=new WebAssembly.RuntimeError(r);throw j(t),t}var Mt="data:application/octet-stream;base64,",$e=r=>r.startsWith(Mt);function Bt(){var r="zxing_full.wasm";return $e(r)?r:St(r)}var br;function be(r){if(r==br&&yr)return new Uint8Array(yr);if(Br)return Br(r);throw"both async and sync fetching of the wasm failed"}function Ht(r){return yr?Promise.resolve().then(()=>be(r)):ve(r).then(e=>new Uint8Array(e),()=>be(r))}function we(r,e,t){return Ht(r).then(n=>WebAssembly.instantiate(n,e)).then(t,n=>{nr(`failed to asynchronously prepare wasm: ${n}`),xr(n)})}function xt(r,e,t,n){return!r&&typeof WebAssembly.instantiateStreaming=="function"&&!$e(e)&&typeof fetch=="function"?fetch(e,{credentials:"same-origin"}).then(i=>{var a=WebAssembly.instantiateStreaming(i,t);return a.then(n,function(s){return nr(`wasm streaming compile failed: ${s}`),nr("falling back to ArrayBuffer instantiation"),we(e,t,n)})}):we(e,t,n)}function Vt(){return{a:ki}}function Lt(){var r,e=Vt();function t(i,a){return P=i.exports,$r=P.za,_e(),ke=P.Da,Wt(P.Aa),Dt(),P}Ut();function n(i){t(i.instance)}if(c.instantiateWasm)try{return c.instantiateWasm(e,t)}catch(i){nr(`Module.instantiateWasm callback failed with error: ${i}`),j(i)}return(r=br)!==null&&r!==void 0||(br=Bt()),xt(yr,br,e,n).catch(j),{}}var Vr=r=>{r.forEach(e=>e(c))};c.noExitRuntime;var g=r=>Ne(r),m=()=>ze(),wr=[],Cr=0,Nt=r=>{var e=new Lr(r);return e.get_caught()||(e.set_caught(!0),Cr--),e.set_rethrown(!1),wr.push(e),Ze(r),Ve(r)},V=0,zt=()=>{p(0,0);var r=wr.pop();Xe(r.excPtr),V=0};class Lr{constructor(e){this.excPtr=e,this.ptr=e-24}set_type(e){w[this.ptr+4>>2]=e}get_type(){return w[this.ptr+4>>2]}set_destructor(e){w[this.ptr+8>>2]=e}get_destructor(){return w[this.ptr+8>>2]}set_caught(e){e=e?1:0,H[this.ptr+12]=e}get_caught(){return H[this.ptr+12]!=0}set_rethrown(e){e=e?1:0,H[this.ptr+13]=e}get_rethrown(){return H[this.ptr+13]!=0}init(e,t){this.set_adjusted_ptr(0),this.set_type(e),this.set_destructor(t)}set_adjusted_ptr(e){w[this.ptr+16>>2]=e}get_adjusted_ptr(){return w[this.ptr+16>>2]}}var Xt=r=>{throw V||(V=r),V},Tr=r=>Le(r),Nr=r=>{var e=V;if(!e)return Tr(0),0;var t=new Lr(e);t.set_adjusted_ptr(e);var n=t.get_type();if(!n)return Tr(0),e;for(var i of r){if(i===0||i===n)break;var a=t.ptr+16;if(Ge(i,n,a))return Tr(i),e}return Tr(n),e},Zt=()=>Nr([]),Gt=r=>Nr([r]),Qt=(r,e)=>Nr([r,e]),qt=()=>{var r=wr.pop();r||xr("no exception to throw");var e=r.excPtr;throw r.get_rethrown()||(wr.push(r),r.set_rethrown(!0),r.set_caught(!1),Cr++),V=e,V},Jt=(r,e,t)=>{var n=new Lr(r);throw n.init(e,t),V=r,Cr++,V},Kt=()=>Cr,Yt=()=>{xr("")},Pr={},zr=r=>{for(;r.length;){var e=r.pop(),t=r.pop();t(e)}};function fr(r){return this.fromWireType(w[r>>2])}var ar={},J={},Ar={},Ce,Er=r=>{throw new Ce(r)},K=(r,e,t)=>{r.forEach(o=>Ar[o]=e);function n(o){var u=t(o);u.length!==r.length&&Er("Mismatched type converter count");for(var l=0;l<r.length;++l)U(r[l],u[l])}var i=new Array(e.length),a=[],s=0;e.forEach((o,u)=>{J.hasOwnProperty(o)?i[u]=J[o]:(a.push(o),ar.hasOwnProperty(o)||(ar[o]=[]),ar[o].push(()=>{i[u]=J[o],++s,s===a.length&&n(i)}))}),a.length===0&&n(i)},rn=r=>{var e=Pr[r];delete Pr[r];var t=e.rawConstructor,n=e.rawDestructor,i=e.fields,a=i.map(s=>s.getterReturnType).concat(i.map(s=>s.setterArgumentType));K([r],a,s=>{var o={};return i.forEach((u,l)=>{var f=u.fieldName,d=s[l],_=u.getter,b=u.getterContext,T=s[l+i.length],F=u.setter,E=u.setterContext;o[f]={read:S=>d.fromWireType(_(b,S)),write:(S,Y)=>{var W=[];F(E,S,T.toWireType(W,Y)),zr(W)}}}),[{name:e.name,fromWireType:u=>{var l={};for(var f in o)l[f]=o[f].read(u);return n(u),l},toWireType:(u,l)=>{for(var f in o)if(!(f in l))throw new TypeError(`Missing field: "${f}"`);var d=t();for(f in o)o[f].write(d,l[f]);return u!==null&&u.push(n,d),d},argPackAdvance:x,readValueFromPointer:fr,destructorFunction:n}]})},en=(r,e,t,n,i)=>{},tn=()=>{for(var r=new Array(256),e=0;e<256;++e)r[e]=String.fromCharCode(e);Te=r},Te,R=r=>{for(var e="",t=r;O[t];)e+=Te[O[t++]];return e},or,$=r=>{throw new or(r)};function nn(r,e){let t=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};var n=e.name;if(r||$(`type "${n}" must have a positive integer typeid pointer`),J.hasOwnProperty(r)){if(t.ignoreDuplicateRegistrations)return;$(`Cannot register type '${n}' twice`)}if(J[r]=e,delete Ar[r],ar.hasOwnProperty(r)){var i=ar[r];delete ar[r],i.forEach(a=>a())}}function U(r,e){let t=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};return nn(r,e,t)}var x=8,an=(r,e,t,n)=>{e=R(e),U(r,{name:e,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})},on=r=>({count:r.count,deleteScheduled:r.deleteScheduled,preservePointerOnDelete:r.preservePointerOnDelete,ptr:r.ptr,ptrType:r.ptrType,smartPtr:r.smartPtr,smartPtrType:r.smartPtrType}),Xr=r=>{function e(t){return t.$$.ptrType.registeredClass.name}$(e(r)+" instance already deleted")},Zr=!1,Pe=r=>{},sn=r=>{r.smartPtr?r.smartPtrType.rawDestructor(r.smartPtr):r.ptrType.registeredClass.rawDestructor(r.ptr)},Ae=r=>{r.count.value-=1;var e=r.count.value===0;e&&sn(r)},Ee=(r,e,t)=>{if(e===t)return r;if(t.baseClass===void 0)return null;var n=Ee(r,e,t.baseClass);return n===null?null:t.downcast(n)},Se={},un={},cn=(r,e)=>{for(e===void 0&&$("ptr should not be undefined");r.baseClass;)e=r.upcast(e),r=r.baseClass;return e},ln=(r,e)=>(e=cn(r,e),un[e]),Sr=(r,e)=>{(!e.ptrType||!e.ptr)&&Er("makeClassHandle requires ptr and ptrType");var t=!!e.smartPtrType,n=!!e.smartPtr;return t!==n&&Er("Both smartPtrType and smartPtr must be specified"),e.count={value:1},vr(Object.create(r,{$$:{value:e,writable:!0}}))};function fn(r){var e=this.getPointee(r);if(!e)return this.destructor(r),null;var t=ln(this.registeredClass,e);if(t!==void 0){if(t.$$.count.value===0)return t.$$.ptr=e,t.$$.smartPtr=r,t.clone();var n=t.clone();return this.destructor(r),n}function i(){return this.isSmartPointer?Sr(this.registeredClass.instancePrototype,{ptrType:this.pointeeType,ptr:e,smartPtrType:this,smartPtr:r}):Sr(this.registeredClass.instancePrototype,{ptrType:this,ptr:r})}var a=this.registeredClass.getActualType(e),s=Se[a];if(!s)return i.call(this);var o;this.isConst?o=s.constPointerType:o=s.pointerType;var u=Ee(e,this.registeredClass,o.registeredClass);return u===null?i.call(this):this.isSmartPointer?Sr(o.registeredClass.instancePrototype,{ptrType:o,ptr:u,smartPtrType:this,smartPtr:r}):Sr(o.registeredClass.instancePrototype,{ptrType:o,ptr:u})}var vr=r=>typeof FinalizationRegistry>"u"?(vr=e=>e,r):(Zr=new FinalizationRegistry(e=>{Ae(e.$$)}),vr=e=>{var t=e.$$,n=!!t.smartPtr;if(n){var i={$$:t};Zr.register(e,i,e)}return e},Pe=e=>Zr.unregister(e),vr(r)),Fr=[],vn=()=>{for(;Fr.length;){var r=Fr.pop();r.$$.deleteScheduled=!1,r.delete()}},Fe,dn=()=>{Object.assign(Rr.prototype,{isAliasOf(r){if(!(this instanceof Rr)||!(r instanceof Rr))return!1;var e=this.$$.ptrType.registeredClass,t=this.$$.ptr;r.$$=r.$$;for(var n=r.$$.ptrType.registeredClass,i=r.$$.ptr;e.baseClass;)t=e.upcast(t),e=e.baseClass;for(;n.baseClass;)i=n.upcast(i),n=n.baseClass;return e===n&&t===i},clone(){if(this.$$.ptr||Xr(this),this.$$.preservePointerOnDelete)return this.$$.count.value+=1,this;var r=vr(Object.create(Object.getPrototypeOf(this),{$$:{value:on(this.$$)}}));return r.$$.count.value+=1,r.$$.deleteScheduled=!1,r},delete(){this.$$.ptr||Xr(this),this.$$.deleteScheduled&&!this.$$.preservePointerOnDelete&&$("Object already scheduled for deletion"),Pe(this),Ae(this.$$),this.$$.preservePointerOnDelete||(this.$$.smartPtr=void 0,this.$$.ptr=void 0)},isDeleted(){return!this.$$.ptr},deleteLater(){return this.$$.ptr||Xr(this),this.$$.deleteScheduled&&!this.$$.preservePointerOnDelete&&$("Object already scheduled for deletion"),Fr.push(this),Fr.length===1&&Fe&&Fe(vn),this.$$.deleteScheduled=!0,this}})};function Rr(){}var dr=(r,e)=>Object.defineProperty(e,"name",{value:r}),Re=(r,e,t)=>{if(r[e].overloadTable===void 0){var n=r[e];r[e]=function(){for(var i=arguments.length,a=new Array(i),s=0;s<i;s++)a[s]=arguments[s];return r[e].overloadTable.hasOwnProperty(a.length)||$(`Function '${t}' called with an invalid number of arguments (${a.length}) - expects one of (${r[e].overloadTable})!`),r[e].overloadTable[a.length].apply(this,a)},r[e].overloadTable=[],r[e].overloadTable[n.argCount]=n}},Gr=(r,e,t)=>{c.hasOwnProperty(r)?((t===void 0||c[r].overloadTable!==void 0&&c[r].overloadTable[t]!==void 0)&&$(`Cannot register public name '${r}' twice`),Re(c,r,r),c.hasOwnProperty(t)&&$(`Cannot register multiple overloads of a function with the same number of arguments (${t})!`),c[r].overloadTable[t]=e):(c[r]=e,t!==void 0&&(c[r].numArguments=t))},hn=48,pn=57,_n=r=>{r=r.replace(/[^a-zA-Z0-9_]/g,"$");var e=r.charCodeAt(0);return e>=hn&&e<=pn?`_${r}`:r};function gn(r,e,t,n,i,a,s,o){this.name=r,this.constructor=e,this.instancePrototype=t,this.rawDestructor=n,this.baseClass=i,this.getActualType=a,this.upcast=s,this.downcast=o,this.pureVirtualFunctions=[]}var Qr=(r,e,t)=>{for(;e!==t;)e.upcast||$(`Expected null or instance of ${t.name}, got an instance of ${e.name}`),r=e.upcast(r),e=e.baseClass;return r};function mn(r,e){if(e===null)return this.isReference&&$(`null is not a valid ${this.name}`),0;e.$$||$(`Cannot pass "${ee(e)}" as a ${this.name}`),e.$$.ptr||$(`Cannot pass deleted object as a pointer of type ${this.name}`);var t=e.$$.ptrType.registeredClass,n=Qr(e.$$.ptr,t,this.registeredClass);return n}function yn(r,e){var t;if(e===null)return this.isReference&&$(`null is not a valid ${this.name}`),this.isSmartPointer?(t=this.rawConstructor(),r!==null&&r.push(this.rawDestructor,t),t):0;(!e||!e.$$)&&$(`Cannot pass "${ee(e)}" as a ${this.name}`),e.$$.ptr||$(`Cannot pass deleted object as a pointer of type ${this.name}`),!this.isConst&&e.$$.ptrType.isConst&&$(`Cannot convert argument of type ${e.$$.smartPtrType?e.$$.smartPtrType.name:e.$$.ptrType.name} to parameter type ${this.name}`);var n=e.$$.ptrType.registeredClass;if(t=Qr(e.$$.ptr,n,this.registeredClass),this.isSmartPointer)switch(e.$$.smartPtr===void 0&&$("Passing raw pointer to smart pointer is illegal"),this.sharingPolicy){case 0:e.$$.smartPtrType===this?t=e.$$.smartPtr:$(`Cannot convert argument of type ${e.$$.smartPtrType?e.$$.smartPtrType.name:e.$$.ptrType.name} to parameter type ${this.name}`);break;case 1:t=e.$$.smartPtr;break;case 2:if(e.$$.smartPtrType===this)t=e.$$.smartPtr;else{var i=e.clone();t=this.rawShare(t,N.toHandle(()=>i.delete())),r!==null&&r.push(this.rawDestructor,t)}break;default:$("Unsupporting sharing policy")}return t}function $n(r,e){if(e===null)return this.isReference&&$(`null is not a valid ${this.name}`),0;e.$$||$(`Cannot pass "${ee(e)}" as a ${this.name}`),e.$$.ptr||$(`Cannot pass deleted object as a pointer of type ${this.name}`),e.$$.ptrType.isConst&&$(`Cannot convert argument of type ${e.$$.ptrType.name} to parameter type ${this.name}`);var t=e.$$.ptrType.registeredClass,n=Qr(e.$$.ptr,t,this.registeredClass);return n}var bn=()=>{Object.assign(Or.prototype,{getPointee(r){return this.rawGetPointee&&(r=this.rawGetPointee(r)),r},destructor(r){var e;(e=this.rawDestructor)===null||e===void 0||e.call(this,r)},argPackAdvance:x,readValueFromPointer:fr,fromWireType:fn})};function Or(r,e,t,n,i,a,s,o,u,l,f){this.name=r,this.registeredClass=e,this.isReference=t,this.isConst=n,this.isSmartPointer=i,this.pointeeType=a,this.sharingPolicy=s,this.rawGetPointee=o,this.rawConstructor=u,this.rawShare=l,this.rawDestructor=f,!i&&e.baseClass===void 0?n?(this.toWireType=mn,this.destructorFunction=null):(this.toWireType=$n,this.destructorFunction=null):this.toWireType=yn}var Oe=(r,e,t)=>{c.hasOwnProperty(r)||Er("Replacing nonexistent public symbol"),c[r].overloadTable!==void 0&&t!==void 0?c[r].overloadTable[t]=e:(c[r]=e,c[r].argCount=t)},wn=(r,e,t)=>{r=r.replace(/p/g,"i");var n=c["dynCall_"+r];return n(e,...t)},kr=[],ke,y=r=>{var e=kr[r];return e||(r>=kr.length&&(kr.length=r+1),kr[r]=e=ke.get(r)),e},Cn=function(r,e){let t=arguments.length>2&&arguments[2]!==void 0?arguments[2]:[];if(r.includes("j"))return wn(r,e,t);var n=y(e)(...t);return n},Tn=(r,e)=>function(){for(var t=arguments.length,n=new Array(t),i=0;i<t;i++)n[i]=arguments[i];return Cn(r,e,n)},D=(r,e)=>{r=R(r);function t(){return r.includes("j")?Tn(r,e):y(e)}var n=t();return typeof n!="function"&&$(`unknown function pointer with signature ${r}: ${e}`),n},Pn=(r,e)=>{var t=dr(e,function(n){this.name=e,this.message=n;var i=new Error(n).stack;i!==void 0&&(this.stack=this.toString()+`
+var ZXingWASM=function(A){"use strict";const Dr=["Aztec","Codabar","Code128","Code39","Code93","DataBar","DataBarExpanded","DataBarLimited","DataMatrix","DXFilmEdge","EAN-13","EAN-8","ITF","Linear-Codes","Matrix-Codes","MaxiCode","MicroQRCode","None","PDF417","QRCode","rMQRCode","UPC-A","UPC-E"];function nt(v){return v.join("|")}function it(v){const h=ae(v);let C=0,k=Dr.length-1;for(;C<=k;){const c=Math.floor((C+k)/2),I=Dr[c],j=ae(I);if(j===h)return I;j<h?C=c+1:k=c-1}return"None"}function ae(v){return v.toLowerCase().replace(/_-\[\]/g,"")}const at=["LocalAverage","GlobalHistogram","FixedThreshold","BoolCast"];function ot(v,h){return v.Binarizer[h]}const st=["Unknown","ASCII","ISO8859_1","ISO8859_2","ISO8859_3","ISO8859_4","ISO8859_5","ISO8859_6","ISO8859_7","ISO8859_8","ISO8859_9","ISO8859_10","ISO8859_11","ISO8859_13","ISO8859_14","ISO8859_15","ISO8859_16","Cp437","Cp1250","Cp1251","Cp1252","Cp1256","Shift_JIS","Big5","GB2312","GB18030","EUC_JP","EUC_KR","UTF16BE","UTF8","UTF16LE","UTF32BE","UTF32LE","BINARY"];function oe(v,h){return v.CharacterSet[h]}const se=["Text","Binary","Mixed","GS1","ISO15434","UnknownECI"];function ut(v){return se[v.value]}const ct=["Ignore","Read","Require"];function lt(v,h){return v.EanAddOnSymbol[h]}const ft=["Plain","ECI","HRI","Hex","Escaped"];function vt(v,h){return v.TextMode[h]}const rr={formats:[],tryHarder:!0,tryRotate:!0,tryInvert:!0,tryDownscale:!0,binarizer:"LocalAverage",isPure:!1,downscaleFactor:3,downscaleThreshold:500,minLineCount:2,maxNumberOfSymbols:255,tryCode39ExtendedMode:!1,validateCode39CheckSum:!1,validateITFCheckSum:!1,returnCodabarStartEnd:!1,returnErrors:!1,eanAddOnSymbol:"Read",textMode:"Plain",characterSet:"Unknown"};function ue(v,h){return{...h,formats:nt(h.formats),binarizer:ot(v,h.binarizer),eanAddOnSymbol:lt(v,h.eanAddOnSymbol),textMode:vt(v,h.textMode),characterSet:oe(v,h.characterSet)}}const dt=[-1,0,1,2,3,4,5,6,7,8],ht=["L","M","Q","H"],Mr={width:200,height:200,format:"QRCode",characterSet:"UTF8",eccLevel:-1,margin:10};function pt(v,h){return{...h,characterSet:oe(v,h.characterSet)}}function ce(v){return{...v,format:it(v.format),eccLevel:v.eccLevel,contentType:ut(v.contentType)}}function _t(v){const{image:h,error:C}=v;return h?{image:new Blob([new Uint8Array(h)],{type:"image/png"}),error:""}:{image:null,error:C}}const gt={locateFile:(v,h)=>{const C=v.match(/_(.+?)\.wasm$/);return C?`https://fastly.jsdelivr.net/npm/zxing-wasm@1.3.4/dist/${C[1]}/${v}`:h+v}};let gr=new WeakMap;function mr(v,h){var I;const C=gr.get(v);if(C!=null&&C.modulePromise&&(h===void 0||Object.is(h,C.moduleOverrides)))return C.modulePromise;const k=(I=h!=null?h:C==null?void 0:C.moduleOverrides)!=null?I:gt,c=v({...k});return gr.set(v,{moduleOverrides:k,modulePromise:c}),c}function mt(){gr=new WeakMap}function yt(v,h){gr.set(v,{moduleOverrides:h})}async function $t(v,h,C=rr){const k={...rr,...C},c=await mr(v),{size:I}=h,j=new Uint8Array(await h.arrayBuffer()),G=c._malloc(I);c.HEAPU8.set(j,G);const er=c.readBarcodesFromImage(G,I,ue(c,k));c._free(G);const Z=[];for(let M=0;M<er.size();++M)Z.push(ce(er.get(M)));return Z}async function bt(v,h,C=rr){const k={...rr,...C},c=await mr(v),{data:I,width:j,height:G,data:{byteLength:er}}=h,Z=c._malloc(er);c.HEAPU8.set(I,Z);const M=c.readBarcodesFromPixmap(Z,j,G,ue(c,k));c._free(Z);const ur=[];for(let tr=0;tr<M.size();++tr)ur.push(ce(M.get(tr)));return ur}async function wt(v,h,C=Mr){const k={...Mr,...C},c=await mr(v),I=c.writeBarcodeToImage(h,pt(c,k));return _t(I)}var sr=(()=>{var h;var v=typeof document<"u"&&((h=document.currentScript)==null?void 0:h.tagName.toUpperCase())==="SCRIPT"?document.currentScript.src:void 0;return function(C={}){var k,c=C,I,j,G=new Promise((r,e)=>{I=r,j=e}),er=typeof window=="object",Z=typeof Bun<"u",M=typeof importScripts=="function";typeof process=="object"&&typeof process.versions=="object"&&typeof process.versions.node=="string"&&process.type!="renderer";var ur=Object.assign({},c),tr="./this.program",B="";function St(r){return c.locateFile?c.locateFile(r,B):B+r}var ve,Br;if(er||M||Z){var Hr;M?B=self.location.href:typeof document<"u"&&((Hr=document.currentScript)===null||Hr===void 0?void 0:Hr.tagName.toUpperCase())==="SCRIPT"&&(B=document.currentScript.src),v&&(B=v),B.startsWith("blob:")?B="":B=B.substr(0,B.replace(/[?#].*/,"").lastIndexOf("/")+1),M&&(Br=r=>{var e=new XMLHttpRequest;return e.open("GET",r,!1),e.responseType="arraybuffer",e.send(null),new Uint8Array(e.response)}),ve=r=>fetch(r,{credentials:"same-origin"}).then(e=>e.ok?e.arrayBuffer():Promise.reject(new Error(e.status+" : "+e.url)))}var Ft=c.print||console.log.bind(console),nr=c.printErr||console.error.bind(console);Object.assign(c,ur),ur=null,c.arguments&&c.arguments,c.thisProgram&&(tr=c.thisProgram);var yr=c.wasmBinary,$r,de=!1,H,O,ir,cr,Q,w,he,pe;function _e(){var r=$r.buffer;c.HEAP8=H=new Int8Array(r),c.HEAP16=ir=new Int16Array(r),c.HEAPU8=O=new Uint8Array(r),c.HEAPU16=cr=new Uint16Array(r),c.HEAP32=Q=new Int32Array(r),c.HEAPU32=w=new Uint32Array(r),c.HEAPF32=he=new Float32Array(r),c.HEAPF64=pe=new Float64Array(r)}var ge=[],me=[],ye=[];function Rt(){var r=c.preRun;r&&(typeof r=="function"&&(r=[r]),r.forEach(It)),Vr(ge)}function Ot(){Vr(me)}function kt(){var r=c.postRun;r&&(typeof r=="function"&&(r=[r]),r.forEach(jt)),Vr(ye)}function It(r){ge.unshift(r)}function Wt(r){me.unshift(r)}function jt(r){ye.unshift(r)}var q=0,lr=null;function Ut(r){var e;q++,(e=c.monitorRunDependencies)===null||e===void 0||e.call(c,q)}function Dt(r){var e;if(q--,(e=c.monitorRunDependencies)===null||e===void 0||e.call(c,q),q==0&&lr){var t=lr;lr=null,t()}}function xr(r){var e;(e=c.onAbort)===null||e===void 0||e.call(c,r),r="Aborted("+r+")",nr(r),de=!0,r+=". Build with -sASSERTIONS for more info.";var t=new WebAssembly.RuntimeError(r);throw j(t),t}var Mt="data:application/octet-stream;base64,",$e=r=>r.startsWith(Mt);function Bt(){var r="zxing_full.wasm";return $e(r)?r:St(r)}var br;function be(r){if(r==br&&yr)return new Uint8Array(yr);if(Br)return Br(r);throw"both async and sync fetching of the wasm failed"}function Ht(r){return yr?Promise.resolve().then(()=>be(r)):ve(r).then(e=>new Uint8Array(e),()=>be(r))}function we(r,e,t){return Ht(r).then(n=>WebAssembly.instantiate(n,e)).then(t,n=>{nr(`failed to asynchronously prepare wasm: ${n}`),xr(n)})}function xt(r,e,t,n){return!r&&typeof WebAssembly.instantiateStreaming=="function"&&!$e(e)&&typeof fetch=="function"?fetch(e,{credentials:"same-origin"}).then(i=>{var a=WebAssembly.instantiateStreaming(i,t);return a.then(n,function(s){return nr(`wasm streaming compile failed: ${s}`),nr("falling back to ArrayBuffer instantiation"),we(e,t,n)})}):we(e,t,n)}function Vt(){return{a:ki}}function Lt(){var r,e=Vt();function t(i,a){return P=i.exports,$r=P.za,_e(),ke=P.Da,Wt(P.Aa),Dt(),P}Ut();function n(i){t(i.instance)}if(c.instantiateWasm)try{return c.instantiateWasm(e,t)}catch(i){nr(`Module.instantiateWasm callback failed with error: ${i}`),j(i)}return(r=br)!==null&&r!==void 0||(br=Bt()),xt(yr,br,e,n).catch(j),{}}var Vr=r=>{r.forEach(e=>e(c))};c.noExitRuntime;var g=r=>Ne(r),m=()=>ze(),wr=[],Cr=0,Nt=r=>{var e=new Lr(r);return e.get_caught()||(e.set_caught(!0),Cr--),e.set_rethrown(!1),wr.push(e),Ze(r),Ve(r)},V=0,zt=()=>{p(0,0);var r=wr.pop();Xe(r.excPtr),V=0};class Lr{constructor(e){this.excPtr=e,this.ptr=e-24}set_type(e){w[this.ptr+4>>2]=e}get_type(){return w[this.ptr+4>>2]}set_destructor(e){w[this.ptr+8>>2]=e}get_destructor(){return w[this.ptr+8>>2]}set_caught(e){e=e?1:0,H[this.ptr+12]=e}get_caught(){return H[this.ptr+12]!=0}set_rethrown(e){e=e?1:0,H[this.ptr+13]=e}get_rethrown(){return H[this.ptr+13]!=0}init(e,t){this.set_adjusted_ptr(0),this.set_type(e),this.set_destructor(t)}set_adjusted_ptr(e){w[this.ptr+16>>2]=e}get_adjusted_ptr(){return w[this.ptr+16>>2]}}var Xt=r=>{throw V||(V=r),V},Tr=r=>Le(r),Nr=r=>{var e=V;if(!e)return Tr(0),0;var t=new Lr(e);t.set_adjusted_ptr(e);var n=t.get_type();if(!n)return Tr(0),e;for(var i of r){if(i===0||i===n)break;var a=t.ptr+16;if(Ge(i,n,a))return Tr(i),e}return Tr(n),e},Zt=()=>Nr([]),Gt=r=>Nr([r]),Qt=(r,e)=>Nr([r,e]),qt=()=>{var r=wr.pop();r||xr("no exception to throw");var e=r.excPtr;throw r.get_rethrown()||(wr.push(r),r.set_rethrown(!0),r.set_caught(!1),Cr++),V=e,V},Jt=(r,e,t)=>{var n=new Lr(r);throw n.init(e,t),V=r,Cr++,V},Kt=()=>Cr,Yt=()=>{xr("")},Pr={},zr=r=>{for(;r.length;){var e=r.pop(),t=r.pop();t(e)}};function fr(r){return this.fromWireType(w[r>>2])}var ar={},J={},Ar={},Ce,Er=r=>{throw new Ce(r)},K=(r,e,t)=>{r.forEach(o=>Ar[o]=e);function n(o){var u=t(o);u.length!==r.length&&Er("Mismatched type converter count");for(var l=0;l<r.length;++l)U(r[l],u[l])}var i=new Array(e.length),a=[],s=0;e.forEach((o,u)=>{J.hasOwnProperty(o)?i[u]=J[o]:(a.push(o),ar.hasOwnProperty(o)||(ar[o]=[]),ar[o].push(()=>{i[u]=J[o],++s,s===a.length&&n(i)}))}),a.length===0&&n(i)},rn=r=>{var e=Pr[r];delete Pr[r];var t=e.rawConstructor,n=e.rawDestructor,i=e.fields,a=i.map(s=>s.getterReturnType).concat(i.map(s=>s.setterArgumentType));K([r],a,s=>{var o={};return i.forEach((u,l)=>{var f=u.fieldName,d=s[l],_=u.getter,b=u.getterContext,T=s[l+i.length],F=u.setter,E=u.setterContext;o[f]={read:S=>d.fromWireType(_(b,S)),write:(S,Y)=>{var W=[];F(E,S,T.toWireType(W,Y)),zr(W)}}}),[{name:e.name,fromWireType:u=>{var l={};for(var f in o)l[f]=o[f].read(u);return n(u),l},toWireType:(u,l)=>{for(var f in o)if(!(f in l))throw new TypeError(`Missing field: "${f}"`);var d=t();for(f in o)o[f].write(d,l[f]);return u!==null&&u.push(n,d),d},argPackAdvance:x,readValueFromPointer:fr,destructorFunction:n}]})},en=(r,e,t,n,i)=>{},tn=()=>{for(var r=new Array(256),e=0;e<256;++e)r[e]=String.fromCharCode(e);Te=r},Te,R=r=>{for(var e="",t=r;O[t];)e+=Te[O[t++]];return e},or,$=r=>{throw new or(r)};function nn(r,e){let t=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};var n=e.name;if(r||$(`type "${n}" must have a positive integer typeid pointer`),J.hasOwnProperty(r)){if(t.ignoreDuplicateRegistrations)return;$(`Cannot register type '${n}' twice`)}if(J[r]=e,delete Ar[r],ar.hasOwnProperty(r)){var i=ar[r];delete ar[r],i.forEach(a=>a())}}function U(r,e){let t=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};return nn(r,e,t)}var x=8,an=(r,e,t,n)=>{e=R(e),U(r,{name:e,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})},on=r=>({count:r.count,deleteScheduled:r.deleteScheduled,preservePointerOnDelete:r.preservePointerOnDelete,ptr:r.ptr,ptrType:r.ptrType,smartPtr:r.smartPtr,smartPtrType:r.smartPtrType}),Xr=r=>{function e(t){return t.$$.ptrType.registeredClass.name}$(e(r)+" instance already deleted")},Zr=!1,Pe=r=>{},sn=r=>{r.smartPtr?r.smartPtrType.rawDestructor(r.smartPtr):r.ptrType.registeredClass.rawDestructor(r.ptr)},Ae=r=>{r.count.value-=1;var e=r.count.value===0;e&&sn(r)},Ee=(r,e,t)=>{if(e===t)return r;if(t.baseClass===void 0)return null;var n=Ee(r,e,t.baseClass);return n===null?null:t.downcast(n)},Se={},un={},cn=(r,e)=>{for(e===void 0&&$("ptr should not be undefined");r.baseClass;)e=r.upcast(e),r=r.baseClass;return e},ln=(r,e)=>(e=cn(r,e),un[e]),Sr=(r,e)=>{(!e.ptrType||!e.ptr)&&Er("makeClassHandle requires ptr and ptrType");var t=!!e.smartPtrType,n=!!e.smartPtr;return t!==n&&Er("Both smartPtrType and smartPtr must be specified"),e.count={value:1},vr(Object.create(r,{$$:{value:e,writable:!0}}))};function fn(r){var e=this.getPointee(r);if(!e)return this.destructor(r),null;var t=ln(this.registeredClass,e);if(t!==void 0){if(t.$$.count.value===0)return t.$$.ptr=e,t.$$.smartPtr=r,t.clone();var n=t.clone();return this.destructor(r),n}function i(){return this.isSmartPointer?Sr(this.registeredClass.instancePrototype,{ptrType:this.pointeeType,ptr:e,smartPtrType:this,smartPtr:r}):Sr(this.registeredClass.instancePrototype,{ptrType:this,ptr:r})}var a=this.registeredClass.getActualType(e),s=Se[a];if(!s)return i.call(this);var o;this.isConst?o=s.constPointerType:o=s.pointerType;var u=Ee(e,this.registeredClass,o.registeredClass);return u===null?i.call(this):this.isSmartPointer?Sr(o.registeredClass.instancePrototype,{ptrType:o,ptr:u,smartPtrType:this,smartPtr:r}):Sr(o.registeredClass.instancePrototype,{ptrType:o,ptr:u})}var vr=r=>typeof FinalizationRegistry>"u"?(vr=e=>e,r):(Zr=new FinalizationRegistry(e=>{Ae(e.$$)}),vr=e=>{var t=e.$$,n=!!t.smartPtr;if(n){var i={$$:t};Zr.register(e,i,e)}return e},Pe=e=>Zr.unregister(e),vr(r)),Fr=[],vn=()=>{for(;Fr.length;){var r=Fr.pop();r.$$.deleteScheduled=!1,r.delete()}},Fe,dn=()=>{Object.assign(Rr.prototype,{isAliasOf(r){if(!(this instanceof Rr)||!(r instanceof Rr))return!1;var e=this.$$.ptrType.registeredClass,t=this.$$.ptr;r.$$=r.$$;for(var n=r.$$.ptrType.registeredClass,i=r.$$.ptr;e.baseClass;)t=e.upcast(t),e=e.baseClass;for(;n.baseClass;)i=n.upcast(i),n=n.baseClass;return e===n&&t===i},clone(){if(this.$$.ptr||Xr(this),this.$$.preservePointerOnDelete)return this.$$.count.value+=1,this;var r=vr(Object.create(Object.getPrototypeOf(this),{$$:{value:on(this.$$)}}));return r.$$.count.value+=1,r.$$.deleteScheduled=!1,r},delete(){this.$$.ptr||Xr(this),this.$$.deleteScheduled&&!this.$$.preservePointerOnDelete&&$("Object already scheduled for deletion"),Pe(this),Ae(this.$$),this.$$.preservePointerOnDelete||(this.$$.smartPtr=void 0,this.$$.ptr=void 0)},isDeleted(){return!this.$$.ptr},deleteLater(){return this.$$.ptr||Xr(this),this.$$.deleteScheduled&&!this.$$.preservePointerOnDelete&&$("Object already scheduled for deletion"),Fr.push(this),Fr.length===1&&Fe&&Fe(vn),this.$$.deleteScheduled=!0,this}})};function Rr(){}var dr=(r,e)=>Object.defineProperty(e,"name",{value:r}),Re=(r,e,t)=>{if(r[e].overloadTable===void 0){var n=r[e];r[e]=function(){for(var i=arguments.length,a=new Array(i),s=0;s<i;s++)a[s]=arguments[s];return r[e].overloadTable.hasOwnProperty(a.length)||$(`Function '${t}' called with an invalid number of arguments (${a.length}) - expects one of (${r[e].overloadTable})!`),r[e].overloadTable[a.length].apply(this,a)},r[e].overloadTable=[],r[e].overloadTable[n.argCount]=n}},Gr=(r,e,t)=>{c.hasOwnProperty(r)?((t===void 0||c[r].overloadTable!==void 0&&c[r].overloadTable[t]!==void 0)&&$(`Cannot register public name '${r}' twice`),Re(c,r,r),c.hasOwnProperty(t)&&$(`Cannot register multiple overloads of a function with the same number of arguments (${t})!`),c[r].overloadTable[t]=e):(c[r]=e,t!==void 0&&(c[r].numArguments=t))},hn=48,pn=57,_n=r=>{r=r.replace(/[^a-zA-Z0-9_]/g,"$");var e=r.charCodeAt(0);return e>=hn&&e<=pn?`_${r}`:r};function gn(r,e,t,n,i,a,s,o){this.name=r,this.constructor=e,this.instancePrototype=t,this.rawDestructor=n,this.baseClass=i,this.getActualType=a,this.upcast=s,this.downcast=o,this.pureVirtualFunctions=[]}var Qr=(r,e,t)=>{for(;e!==t;)e.upcast||$(`Expected null or instance of ${t.name}, got an instance of ${e.name}`),r=e.upcast(r),e=e.baseClass;return r};function mn(r,e){if(e===null)return this.isReference&&$(`null is not a valid ${this.name}`),0;e.$$||$(`Cannot pass "${ee(e)}" as a ${this.name}`),e.$$.ptr||$(`Cannot pass deleted object as a pointer of type ${this.name}`);var t=e.$$.ptrType.registeredClass,n=Qr(e.$$.ptr,t,this.registeredClass);return n}function yn(r,e){var t;if(e===null)return this.isReference&&$(`null is not a valid ${this.name}`),this.isSmartPointer?(t=this.rawConstructor(),r!==null&&r.push(this.rawDestructor,t),t):0;(!e||!e.$$)&&$(`Cannot pass "${ee(e)}" as a ${this.name}`),e.$$.ptr||$(`Cannot pass deleted object as a pointer of type ${this.name}`),!this.isConst&&e.$$.ptrType.isConst&&$(`Cannot convert argument of type ${e.$$.smartPtrType?e.$$.smartPtrType.name:e.$$.ptrType.name} to parameter type ${this.name}`);var n=e.$$.ptrType.registeredClass;if(t=Qr(e.$$.ptr,n,this.registeredClass),this.isSmartPointer)switch(e.$$.smartPtr===void 0&&$("Passing raw pointer to smart pointer is illegal"),this.sharingPolicy){case 0:e.$$.smartPtrType===this?t=e.$$.smartPtr:$(`Cannot convert argument of type ${e.$$.smartPtrType?e.$$.smartPtrType.name:e.$$.ptrType.name} to parameter type ${this.name}`);break;case 1:t=e.$$.smartPtr;break;case 2:if(e.$$.smartPtrType===this)t=e.$$.smartPtr;else{var i=e.clone();t=this.rawShare(t,N.toHandle(()=>i.delete())),r!==null&&r.push(this.rawDestructor,t)}break;default:$("Unsupporting sharing policy")}return t}function $n(r,e){if(e===null)return this.isReference&&$(`null is not a valid ${this.name}`),0;e.$$||$(`Cannot pass "${ee(e)}" as a ${this.name}`),e.$$.ptr||$(`Cannot pass deleted object as a pointer of type ${this.name}`),e.$$.ptrType.isConst&&$(`Cannot convert argument of type ${e.$$.ptrType.name} to parameter type ${this.name}`);var t=e.$$.ptrType.registeredClass,n=Qr(e.$$.ptr,t,this.registeredClass);return n}var bn=()=>{Object.assign(Or.prototype,{getPointee(r){return this.rawGetPointee&&(r=this.rawGetPointee(r)),r},destructor(r){var e;(e=this.rawDestructor)===null||e===void 0||e.call(this,r)},argPackAdvance:x,readValueFromPointer:fr,fromWireType:fn})};function Or(r,e,t,n,i,a,s,o,u,l,f){this.name=r,this.registeredClass=e,this.isReference=t,this.isConst=n,this.isSmartPointer=i,this.pointeeType=a,this.sharingPolicy=s,this.rawGetPointee=o,this.rawConstructor=u,this.rawShare=l,this.rawDestructor=f,!i&&e.baseClass===void 0?n?(this.toWireType=mn,this.destructorFunction=null):(this.toWireType=$n,this.destructorFunction=null):this.toWireType=yn}var Oe=(r,e,t)=>{c.hasOwnProperty(r)||Er("Replacing nonexistent public symbol"),c[r].overloadTable!==void 0&&t!==void 0?c[r].overloadTable[t]=e:(c[r]=e,c[r].argCount=t)},wn=(r,e,t)=>{r=r.replace(/p/g,"i");var n=c["dynCall_"+r];return n(e,...t)},kr=[],ke,y=r=>{var e=kr[r];return e||(r>=kr.length&&(kr.length=r+1),kr[r]=e=ke.get(r)),e},Cn=function(r,e){let t=arguments.length>2&&arguments[2]!==void 0?arguments[2]:[];if(r.includes("j"))return wn(r,e,t);var n=y(e)(...t);return n},Tn=(r,e)=>function(){for(var t=arguments.length,n=new Array(t),i=0;i<t;i++)n[i]=arguments[i];return Cn(r,e,n)},D=(r,e)=>{r=R(r);function t(){return r.includes("j")?Tn(r,e):y(e)}var n=t();return typeof n!="function"&&$(`unknown function pointer with signature ${r}: ${e}`),n},Pn=(r,e)=>{var t=dr(e,function(n){this.name=e,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(r.prototype),t.prototype.constructor=t,t.prototype.toString=function(){return this.message===void 0?this.name:`${this.name}: ${this.message}`},t},Ie,We=r=>{var e=xe(r),t=R(e);return z(e),t},Ir=(r,e)=>{var t=[],n={};function i(a){if(!n[a]&&!J[a]){if(Ar[a]){Ar[a].forEach(i);return}t.push(a),n[a]=!0}}throw e.forEach(i),new Ie(`${r}: `+t.map(We).join([", "]))},An=(r,e,t,n,i,a,s,o,u,l,f,d,_)=>{f=R(f),a=D(i,a),o&&(o=D(s,o)),l&&(l=D(u,l)),_=D(d,_);var b=_n(f);Gr(b,function(){Ir(`Cannot construct ${f} due to unbound types`,[n])}),K([r,e,t],n?[n]:[],T=>{T=T[0];var F,E;n?(F=T.registeredClass,E=F.instancePrototype):E=Rr.prototype;var S=dr(f,function(){if(Object.getPrototypeOf(this)!==Y)throw new or("Use 'new' to construct "+f);if(W.constructor_body===void 0)throw new or(f+" has no accessible constructor");for(var et=arguments.length,jr=new Array(et),Ur=0;Ur<et;Ur++)jr[Ur]=arguments[Ur];var tt=W.constructor_body[jr.length];if(tt===void 0)throw new or(`Tried to invoke ctor of ${f} with invalid number of parameters (${jr.length}) - expected (${Object.keys(W.constructor_body).toString()}) parameters instead!`);return tt.apply(this,jr)}),Y=Object.create(E,{constructor:{value:S}});S.prototype=Y;var W=new gn(f,S,Y,_,F,a,o,l);if(W.baseClass){var X,_r;(_r=(X=W.baseClass).__derivedClasses)!==null&&_r!==void 0||(X.__derivedClasses=[]),W.baseClass.__derivedClasses.push(W)}var da=new Or(f,W,!0,!1,!1),Ye=new Or(f+"*",W,!1,!1,!1),rt=new Or(f+" const*",W,!1,!0,!1);return Se[r]={pointerType:Ye,constPointerType:rt},Oe(b,S),[da,Ye,rt]})},qr=(r,e)=>{for(var t=[],n=0;n<r;n++)t.push(w[e+n*4>>2]);return t};function En(r){for(var e=1;e<r.length;++e)if(r[e]!==null&&r[e].destructorFunction===void 0)return!0;return!1}function Jr(r,e,t,n,i,a){var s=e.length;s<2&&$("argTypes array size mismatch! Must at least get return value and 'this' types!");var o=e[1]!==null&&t!==null,u=En(e),l=e[0].name!=="void",f=s-2,d=new Array(f),_=[],b=[],T=function(){b.length=0;var F;_.length=o?2:1,_[0]=i,o&&(F=e[1].toWireType(b,this),_[1]=F);for(var E=0;E<f;++E)d[E]=e[E+2].toWireType(b,E<0||arguments.length<=E?void 0:arguments[E]),_.push(d[E]);var S=n(..._);function Y(W){if(u)zr(b);else for(var X=o?1:2;X<e.length;X++){var _r=X===1?F:d[X-2];e[X].destructorFunction!==null&&e[X].destructorFunction(_r)}if(l)return e[0].fromWireType(W)}return Y(S)};return dr(r,T)}var Sn=(r,e,t,n,i,a)=>{var s=qr(e,t);i=D(n,i),K([],[r],o=>{o=o[0];var u=`constructor ${o.name}`;if(o.registeredClass.constructor_body===void 0&&(o.registeredClass.constructor_body=[]),o.registeredClass.constructor_body[e-1]!==void 0)throw new or(`Cannot register multiple constructors with identical number of parameters (${e-1}) for class '${o.name}'! Overload resolution is currently only performed using the parameter count, not actual type info!`);return o.registeredClass.constructor_body[e-1]=()=>{Ir(`Cannot construct ${o.name} due to unbound types`,s)},K([],s,l=>(l.splice(1,0,null),o.registeredClass.constructor_body[e-1]=Jr(u,l,null,i,a),[])),[]})},je=r=>{r=r.trim();const e=r.indexOf("(");return e!==-1?r.substr(0,e):r},Fn=(r,e,t,n,i,a,s,o,u,l)=>{var f=qr(t,n);e=R(e),e=je(e),a=D(i,a),K([],[r],d=>{d=d[0];var _=`${d.name}.${e}`;e.startsWith("@@")&&(e=Symbol[e.substring(2)]),o&&d.registeredClass.pureVirtualFunctions.push(e);function b(){Ir(`Cannot call ${_} due to unbound types`,f)}var T=d.registeredClass.instancePrototype,F=T[e];return F===void 0||F.overloadTable===void 0&&F.className!==d.name&&F.argCount===t-2?(b.argCount=t-2,b.className=d.name,T[e]=b):(Re(T,e,_),T[e].overloadTable[t-2]=b),K([],f,E=>{var S=Jr(_,E,d,a,s);return T[e].overloadTable===void 0?(S.argCount=t-2,T[e]=S):T[e].overloadTable[t-2]=S,[]}),[]})},Kr=[],L=[],Yr=r=>{r>9&&--L[r+1]===0&&(L[r]=void 0,Kr.push(r))},Rn=()=>L.length/2-5-Kr.length,On=()=>{L.push(0,1,void 0,1,null,1,!0,1,!1,1),c.count_emval_handles=Rn},N={toValue:r=>(r||$("Cannot use deleted val. handle = "+r),L[r]),toHandle:r=>{switch(r){case void 0:return 2;case null:return 4;case!0:return 6;case!1:return 8;default:{const e=Kr.pop()||L.length;return L[e]=r,L[e+1]=1,e}}}},Ue={name:"emscripten::val",fromWireType:r=>{var e=N.toValue(r);return Yr(r),e},toWireType:(r,e)=>N.toHandle(e),argPackAdvance:x,readValueFromPointer:fr,destructorFunction:null},kn=r=>U(r,Ue),In=(r,e,t)=>{switch(e){case 1:return t?function(n){return this.fromWireType(H[n])}:function(n){return this.fromWireType(O[n])};case 2:return t?function(n){return this.fromWireType(ir[n>>1])}:function(n){return this.fromWireType(cr[n>>1])};case 4:return t?function(n){return this.fromWireType(Q[n>>2])}:function(n){return this.fromWireType(w[n>>2])};default:throw new TypeError(`invalid integer width (${e}): ${r}`)}},Wn=(r,e,t,n)=>{e=R(e);function i(){}i.values={},U(r,{name:e,constructor:i,fromWireType:function(a){return this.constructor.values[a]},toWireType:(a,s)=>s.value,argPackAdvance:x,readValueFromPointer:In(e,t,n),destructorFunction:null}),Gr(e,i)},re=(r,e)=>{var t=J[r];return t===void 0&&$(`${e} has unknown type ${We(r)}`),t},jn=(r,e,t)=>{var n=re(r,"enum");e=R(e);var i=n.constructor,a=Object.create(n.constructor.prototype,{value:{value:t},constructor:{value:dr(`${n.name}_${e}`,function(){})}});i.values[t]=a,i[e]=a},ee=r=>{if(r===null)return"null";var e=typeof r;return e==="object"||e==="array"||e==="function"?r.toString():""+r},Un=(r,e)=>{switch(e){case 4:return function(t){return this.fromWireType(he[t>>2])};case 8:return function(t){return this.fromWireType(pe[t>>3])};default:throw new TypeError(`invalid float width (${e}): ${r}`)}},Dn=(r,e,t)=>{e=R(e),U(r,{name:e,fromWireType:n=>n,toWireType:(n,i)=>i,argPackAdvance:x,readValueFromPointer:Un(e,t),destructorFunction:null})},Mn=(r,e,t,n,i,a,s,o)=>{var u=qr(e,t);r=R(r),r=je(r),i=D(n,i),Gr(r,function(){Ir(`Cannot call ${r} due to unbound types`,u)},e-1),K([],u,l=>{var f=[l[0],null].concat(l.slice(1));return Oe(r,Jr(r,f,null,i,a),e-1),[]})},Bn=(r,e,t)=>{switch(e){case 1:return t?n=>H[n]:n=>O[n];case 2:return t?n=>ir[n>>1]:n=>cr[n>>1];case 4:return t?n=>Q[n>>2]:n=>w[n>>2];default:throw new TypeError(`invalid integer width (${e}): ${r}`)}},Hn=(r,e,t,n,i)=>{e=R(e);var a=f=>f;if(n===0){var s=32-8*t;a=f=>f<<s>>>s}var o=e.includes("unsigned"),u=(f,d)=>{},l;o?l=function(f,d){return u(d,this.name),d>>>0}:l=function(f,d){return u(d,this.name),d},U(r,{name:e,fromWireType:a,toWireType:l,argPackAdvance:x,readValueFromPointer:Bn(e,t,n!==0),destructorFunction:null})},xn=(r,e,t)=>{var n=[Int8Array,Uint8Array,Int16Array,Uint16Array,Int32Array,Uint32Array,Float32Array,Float64Array],i=n[e];function a(s){var o=w[s>>2],u=w[s+4>>2];return new i(H.buffer,u,o)}t=R(t),U(r,{name:t,fromWireType:a,argPackAdvance:x,readValueFromPointer:a},{ignoreDuplicateRegistrations:!0})},Vn=Object.assign({optional:!0},Ue),Ln=(r,e)=>{U(r,Vn)},Nn=(r,e,t,n)=>{if(!(n>0))return 0;for(var i=t,a=t+n-1,s=0;s<r.length;++s){var o=r.charCodeAt(s);if(o>=55296&&o<=57343){var u=r.charCodeAt(++s);o=65536+((o&1023)<<10)|u&1023}if(o<=127){if(t>=a)break;e[t++]=o}else if(o<=2047){if(t+1>=a)break;e[t++]=192|o>>6,e[t++]=128|o&63}else if(o<=65535){if(t+2>=a)break;e[t++]=224|o>>12,e[t++]=128|o>>6&63,e[t++]=128|o&63}else{if(t+3>=a)break;e[t++]=240|o>>18,e[t++]=128|o>>12&63,e[t++]=128|o>>6&63,e[t++]=128|o&63}}return e[t]=0,t-i},hr=(r,e,t)=>Nn(r,O,e,t),zn=r=>{for(var e=0,t=0;t<r.length;++t){var n=r.charCodeAt(t);n<=127?e++:n<=2047?e+=2:n>=55296&&n<=57343?(e+=4,++t):e+=3}return e},De=typeof TextDecoder<"u"?new TextDecoder:void 0,Me=function(r){let e=arguments.length>1&&arguments[1]!==void 0?arguments[1]:0,t=arguments.length>2&&arguments[2]!==void 0?arguments[2]:NaN;for(var n=e+t,i=e;r[i]&&!(i>=n);)++i;if(i-e>16&&r.buffer&&De)return De.decode(r.subarray(e,i));for(var a="";e<i;){var s=r[e++];if(!(s&128)){a+=String.fromCharCode(s);continue}var o=r[e++]&63;if((s&224)==192){a+=String.fromCharCode((s&31)<<6|o);continue}var u=r[e++]&63;if((s&240)==224?s=(s&15)<<12|o<<6|u:s=(s&7)<<18|o<<12|u<<6|r[e++]&63,s<65536)a+=String.fromCharCode(s);else{var l=s-65536;a+=String.fromCharCode(55296|l>>10,56320|l&1023)}}return a},Xn=(r,e)=>r?Me(O,r,e):"",Zn=(r,e)=>{e=R(e);var t=e==="std::string";U(r,{name:e,fromWireType(n){var i=w[n>>2],a=n+4,s;if(t)for(var o=a,u=0;u<=i;++u){var l=a+u;if(u==i||O[l]==0){var f=l-o,d=Xn(o,f);s===void 0?s=d:(s+="\0",s+=d),o=l+1}}else{for(var _=new Array(i),u=0;u<i;++u)_[u]=String.fromCharCode(O[a+u]);s=_.join("")}return z(n),s},toWireType(n,i){i instanceof ArrayBuffer&&(i=new Uint8Array(i));var a,s=typeof i=="string";s||i instanceof Uint8Array||i instanceof Uint8ClampedArray||i instanceof Int8Array||$("Cannot pass non-string to std::string"),t&&s?a=zn(i):a=i.length;var o=ie(4+a+1),u=o+4;if(w[o>>2]=a,t&&s)hr(i,u,a+1);else if(s)for(var l=0;l<a;++l){var f=i.charCodeAt(l);f>255&&(z(u),$("String has UTF-16 code units that do not fit in 8 bits")),O[u+l]=f}else for(var l=0;l<a;++l)O[u+l]=i[l];return n!==null&&n.push(z,o),o},argPackAdvance:x,readValueFromPointer:fr,destructorFunction(n){z(n)}})},Be=typeof TextDecoder<"u"?new TextDecoder("utf-16le"):void 0,Gn=(r,e)=>{for(var t=r,n=t>>1,i=n+e/2;!(n>=i)&&cr[n];)++n;if(t=n<<1,t-r>32&&Be)return Be.decode(O.subarray(r,t));for(var a="",s=0;!(s>=e/2);++s){var o=ir[r+s*2>>1];if(o==0)break;a+=String.fromCharCode(o)}return a},Qn=(r,e,t)=>{var n;if((n=t)!==null&&n!==void 0||(t=2147483647),t<2)return 0;t-=2;for(var i=e,a=t<r.length*2?t/2:r.length,s=0;s<a;++s){var o=r.charCodeAt(s);ir[e>>1]=o,e+=2}return ir[e>>1]=0,e-i},qn=r=>r.length*2,Jn=(r,e)=>{for(var t=0,n="";!(t>=e/4);){var i=Q[r+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},Kn=(r,e,t)=>{var n;if((n=t)!==null&&n!==void 0||(t=2147483647),t<4)return 0;for(var i=e,a=i+t-4,s=0;s<r.length;++s){var o=r.charCodeAt(s);if(o>=55296&&o<=57343){var u=r.charCodeAt(++s);o=65536+((o&1023)<<10)|u&1023}if(Q[e>>2]=o,e+=4,e+4>a)break}return Q[e>>2]=0,e-i},Yn=r=>{for(var e=0,t=0;t<r.length;++t){var n=r.charCodeAt(t);n>=55296&&n<=57343&&++t,e+=4}return e},ri=(r,e,t)=>{t=R(t);var n,i,a,s;e===2?(n=Gn,i=Qn,s=qn,a=o=>cr[o>>1]):e===4&&(n=Jn,i=Kn,s=Yn,a=o=>w[o>>2]),U(r,{name:t,fromWireType:o=>{for(var u=w[o>>2],l,f=o+4,d=0;d<=u;++d){var _=o+4+d*e;if(d==u||a(_)==0){var b=_-f,T=n(f,b);l===void 0?l=T:(l+="\0",l+=T),f=_+e}}return z(o),l},toWireType:(o,u)=>{typeof u!="string"&&$(`Cannot pass non-string to C++ string type ${t}`);var l=s(u),f=ie(4+l+e);return w[f>>2]=l/e,i(u,f+4,l+e),o!==null&&o.push(z,f),f},argPackAdvance:x,readValueFromPointer:fr,destructorFunction(o){z(o)}})},ei=(r,e,t,n,i,a)=>{Pr[r]={name:R(e),rawConstructor:D(t,n),rawDestructor:D(i,a),fields:[]}},ti=(r,e,t,n,i,a,s,o,u,l)=>{Pr[r].fields.push({fieldName:R(e),getterReturnType:t,getter:D(n,i),getterContext:a,setterArgumentType:s,setter:D(o,u),setterContext:l})},ni=(r,e)=>{e=R(e),U(r,{isVoid:!0,name:e,argPackAdvance:0,fromWireType:()=>{},toWireType:(t,n)=>{}})},ii=(r,e,t)=>O.copyWithin(r,e,e+t),te=[],ai=(r,e,t,n)=>(r=te[r],e=N.toValue(e),r(null,e,t,n)),oi={},si=r=>{var e=oi[r];return e===void 0?R(r):e},He=()=>{if(typeof globalThis=="object")return globalThis;function r(e){e.$$$embind_global$$$=e;var t=typeof $$$embind_global$$$=="object"&&e.$$$embind_global$$$==e;return t||delete e.$$$embind_global$$$,t}if(typeof $$$embind_global$$$=="object"||(typeof global=="object"&&r(global)?$$$embind_global$$$=global:typeof self=="object"&&r(self)&&($$$embind_global$$$=self),typeof $$$embind_global$$$=="object"))return $$$embind_global$$$;throw Error("unable to get global object.")},ui=r=>r===0?N.toHandle(He()):(r=si(r),N.toHandle(He()[r])),ci=r=>{var e=te.length;return te.push(r),e},li=(r,e)=>{for(var t=new Array(r),n=0;n<r;++n)t[n]=re(w[e+n*4>>2],"parameter "+n);return t},fi=Reflect.construct,vi=(r,e,t)=>{var n=[],i=r.toWireType(n,t);return n.length&&(w[e>>2]=N.toHandle(n)),i},di=(r,e,t)=>{var n=li(r,e),i=n.shift();r--;var a=new Array(r),s=(u,l,f,d)=>{for(var _=0,b=0;b<r;++b)a[b]=n[b].readValueFromPointer(d+_),_+=n[b].argPackAdvance;var T=t===1?fi(l,a):l.apply(u,a);return vi(i,f,T)},o=`methodCaller<(${n.map(u=>u.name).join(", ")}) => ${i.name}>`;return ci(dr(o,s))},hi=r=>{r>9&&(L[r+1]+=1)},pi=r=>{var e=N.toValue(r);zr(e),Yr(r)},_i=(r,e)=>{r=re(r,"_emval_take_value");var t=r.readValueFromPointer(e);return N.toHandle(t)},gi=(r,e,t,n)=>{var i=new Date().getFullYear(),a=new Date(i,0,1),s=new Date(i,6,1),o=a.getTimezoneOffset(),u=s.getTimezoneOffset(),l=Math.max(o,u);w[r>>2]=l*60,Q[e>>2]=+(o!=u);var f=b=>{var T=b>=0?"-":"+",F=Math.abs(b),E=String(Math.floor(F/60)).padStart(2,"0"),S=String(F%60).padStart(2,"0");return`UTC${T}${E}${S}`},d=f(o),_=f(u);u<o?(hr(d,t,17),hr(_,n,17)):(hr(d,n,17),hr(_,t,17))},mi=()=>2147483648,yi=(r,e)=>Math.ceil(r/e)*e,$i=r=>{var e=$r.buffer,t=(r-e.byteLength+65535)/65536|0;try{return $r.grow(t),_e(),1}catch{}},bi=r=>{var e=O.length;r>>>=0;var t=mi();if(r>t)return!1;for(var n=1;n<=4;n*=2){var i=e*(1+.2/n);i=Math.min(i,r+100663296);var a=Math.min(t,yi(Math.max(r,i),65536)),s=$i(a);if(s)return!0}return!1},ne={},wi=()=>tr||"./this.program",pr=()=>{if(!pr.strings){var r=(typeof navigator=="object"&&navigator.languages&&navigator.languages[0]||"C").replace("-","_")+".UTF-8",e={USER:"web_user",LOGNAME:"web_user",PATH:"/",PWD:"/",HOME:"/home/web_user",LANG:r,_:wi()};for(var t in ne)ne[t]===void 0?delete e[t]:e[t]=ne[t];var n=[];for(var t in e)n.push(`${t}=${e[t]}`);pr.strings=n}return pr.strings},Ci=(r,e)=>{for(var t=0;t<r.length;++t)H[e++]=r.charCodeAt(t);H[e]=0},Ti=(r,e)=>{var t=0;return pr().forEach((n,i)=>{var a=e+t;w[r+i*4>>2]=a,Ci(n,a),t+=n.length+1}),0},Pi=(r,e)=>{var t=pr();w[r>>2]=t.length;var n=0;return t.forEach(i=>n+=i.length+1),w[e>>2]=n,0},Ai=r=>52;function Ei(r,e,t,n,i){return 70}var Si=[null,[],[]],Fi=(r,e)=>{var t=Si[r];e===0||e===10?((r===1?Ft:nr)(Me(t)),t.length=0):t.push(e)},Ri=(r,e,t,n)=>{for(var i=0,a=0;a<t;a++){var s=w[e>>2],o=w[e+4>>2];e+=8;for(var u=0;u<o;u++)Fi(r,O[s+u]);i+=o}return w[n>>2]=i,0},Oi=r=>r;Ce=c.InternalError=class extends Error{constructor(e){super(e),this.name="InternalError"}},tn(),or=c.BindingError=class extends Error{constructor(e){super(e),this.name="BindingError"}},dn(),bn(),Ie=c.UnboundTypeError=Pn(Error,"UnboundTypeError"),On();var ki={t:Nt,x:zt,a:Zt,j:Gt,k:Qt,Q:qt,r:Jt,ia:Kt,d:Xt,ea:Yt,wa:rn,da:en,qa:an,ua:An,ta:Sn,G:Fn,pa:kn,H:Wn,q:jn,Y:Dn,S:Mn,z:Hn,v:xn,va:Ln,W:Zn,R:ri,E:ei,xa:ti,ra:ni,la:ii,V:ai,ya:Yr,_:ui,X:di,Z:hi,$:pi,sa:_i,fa:gi,ja:bi,ga:Ti,ha:Pi,ka:Ai,ba:Ei,U:Ri,L:Yi,D:ea,N:Di,T:ua,s:Qi,b:Ii,F:Ki,na,c:Bi,ma:ia,i:Ui,h:Ni,n:zi,P:Ji,w:Xi,K:oa,M:qi,B:ta,J:ca,ca:fa,aa:va,m:Hi,g:Mi,e:ji,f:Wi,O:sa,l:Vi,oa:ra,o:xi,u:Zi,y:Gi,C:aa,p:Li,I:la,A:Oi},P=Lt(),xe=r=>(xe=P.Ba)(r),z=c._free=r=>(z=c._free=P.Ca)(r),ie=c._malloc=r=>(ie=c._malloc=P.Ea)(r),Ve=r=>(Ve=P.Fa)(r),p=(r,e)=>(p=P.Ga)(r,e),Le=r=>(Le=P.Ha)(r),Ne=r=>(Ne=P.Ia)(r),ze=()=>(ze=P.Ja)(),Xe=r=>(Xe=P.Ka)(r),Ze=r=>(Ze=P.La)(r),Ge=(r,e,t)=>(Ge=P.Ma)(r,e,t);c.dynCall_viijii=(r,e,t,n,i,a,s)=>(c.dynCall_viijii=P.Na)(r,e,t,n,i,a,s);var Qe=c.dynCall_jiii=(r,e,t,n)=>(Qe=c.dynCall_jiii=P.Oa)(r,e,t,n);c.dynCall_jiji=(r,e,t,n,i)=>(c.dynCall_jiji=P.Pa)(r,e,t,n,i);var qe=c.dynCall_jiiii=(r,e,t,n,i)=>(qe=c.dynCall_jiiii=P.Qa)(r,e,t,n,i);c.dynCall_iiiiij=(r,e,t,n,i,a,s)=>(c.dynCall_iiiiij=P.Ra)(r,e,t,n,i,a,s),c.dynCall_iiiiijj=(r,e,t,n,i,a,s,o,u)=>(c.dynCall_iiiiijj=P.Sa)(r,e,t,n,i,a,s,o,u),c.dynCall_iiiiiijj=(r,e,t,n,i,a,s,o,u,l)=>(c.dynCall_iiiiiijj=P.Ta)(r,e,t,n,i,a,s,o,u,l);function Ii(r,e){var t=m();try{return y(r)(e)}catch(n){if(g(t),n!==n+0)throw n;p(1,0)}}function Wi(r,e,t,n){var i=m();try{y(r)(e,t,n)}catch(a){if(g(i),a!==a+0)throw a;p(1,0)}}function ji(r,e,t){var n=m();try{y(r)(e,t)}catch(i){if(g(n),i!==i+0)throw i;p(1,0)}}function Ui(r,e,t,n){var i=m();try{return y(r)(e,t,n)}catch(a){if(g(i),a!==a+0)throw a;p(1,0)}}function Di(r,e,t,n,i){var a=m();try{return y(r)(e,t,n,i)}catch(s){if(g(a),s!==s+0)throw s;p(1,0)}}function Mi(r,e){var t=m();try{y(r)(e)}catch(n){if(g(t),n!==n+0)throw n;p(1,0)}}function Bi(r,e,t){var n=m();try{return y(r)(e,t)}catch(i){if(g(n),i!==i+0)throw i;p(1,0)}}function Hi(r){var e=m();try{y(r)()}catch(t){if(g(e),t!==t+0)throw t;p(1,0)}}function xi(r,e,t,n,i,a){var s=m();try{y(r)(e,t,n,i,a)}catch(o){if(g(s),o!==o+0)throw o;p(1,0)}}function Vi(r,e,t,n,i){var a=m();try{y(r)(e,t,n,i)}catch(s){if(g(a),s!==s+0)throw s;p(1,0)}}function Li(r,e,t,n,i,a,s,o,u,l,f){var d=m();try{y(r)(e,t,n,i,a,s,o,u,l,f)}catch(_){if(g(d),_!==_+0)throw _;p(1,0)}}function Ni(r,e,t,n,i){var a=m();try{return y(r)(e,t,n,i)}catch(s){if(g(a),s!==s+0)throw s;p(1,0)}}function zi(r,e,t,n,i,a){var s=m();try{return y(r)(e,t,n,i,a)}catch(o){if(g(s),o!==o+0)throw o;p(1,0)}}function Xi(r,e,t,n,i,a,s){var o=m();try{return y(r)(e,t,n,i,a,s)}catch(u){if(g(o),u!==u+0)throw u;p(1,0)}}function Zi(r,e,t,n,i,a,s,o){var u=m();try{y(r)(e,t,n,i,a,s,o)}catch(l){if(g(u),l!==l+0)throw l;p(1,0)}}function Gi(r,e,t,n,i,a,s,o,u){var l=m();try{y(r)(e,t,n,i,a,s,o,u)}catch(f){if(g(l),f!==f+0)throw f;p(1,0)}}function Qi(r){var e=m();try{return y(r)()}catch(t){if(g(e),t!==t+0)throw t;p(1,0)}}function qi(r,e,t,n,i,a,s,o,u){var l=m();try{return y(r)(e,t,n,i,a,s,o,u)}catch(f){if(g(l),f!==f+0)throw f;p(1,0)}}function Ji(r,e,t,n,i,a,s){var o=m();try{return y(r)(e,t,n,i,a,s)}catch(u){if(g(o),u!==u+0)throw u;p(1,0)}}function Ki(r,e,t,n){var i=m();try{return y(r)(e,t,n)}catch(a){if(g(i),a!==a+0)throw a;p(1,0)}}function Yi(r,e,t,n){var i=m();try{return y(r)(e,t,n)}catch(a){if(g(i),a!==a+0)throw a;p(1,0)}}function ra(r,e,t,n,i,a,s,o){var u=m();try{y(r)(e,t,n,i,a,s,o)}catch(l){if(g(u),l!==l+0)throw l;p(1,0)}}function ea(r,e,t,n,i,a){var s=m();try{return y(r)(e,t,n,i,a)}catch(o){if(g(s),o!==o+0)throw o;p(1,0)}}function ta(r,e,t,n,i,a,s,o,u,l){var f=m();try{return y(r)(e,t,n,i,a,s,o,u,l)}catch(d){if(g(f),d!==d+0)throw d;p(1,0)}}function na(r,e,t){var n=m();try{return y(r)(e,t)}catch(i){if(g(n),i!==i+0)throw i;p(1,0)}}function ia(r,e,t,n,i){var a=m();try{return y(r)(e,t,n,i)}catch(s){if(g(a),s!==s+0)throw s;p(1,0)}}function aa(r,e,t,n,i,a,s,o,u,l){var f=m();try{y(r)(e,t,n,i,a,s,o,u,l)}catch(d){if(g(f),d!==d+0)throw d;p(1,0)}}function oa(r,e,t,n,i,a,s,o){var u=m();try{return y(r)(e,t,n,i,a,s,o)}catch(l){if(g(u),l!==l+0)throw l;p(1,0)}}function sa(r,e,t,n,i,a,s){var o=m();try{y(r)(e,t,n,i,a,s)}catch(u){if(g(o),u!==u+0)throw u;p(1,0)}}function ua(r,e,t,n){var i=m();try{return y(r)(e,t,n)}catch(a){if(g(i),a!==a+0)throw a;p(1,0)}}function ca(r,e,t,n,i,a,s,o,u,l,f,d){var _=m();try{return y(r)(e,t,n,i,a,s,o,u,l,f,d)}catch(b){if(g(_),b!==b+0)throw b;p(1,0)}}function la(r,e,t,n,i,a,s,o,u,l,f,d,_,b,T,F){var E=m();try{y(r)(e,t,n,i,a,s,o,u,l,f,d,_,b,T,F)}catch(S){if(g(E),S!==S+0)throw S;p(1,0)}}function fa(r,e,t,n){var i=m();try{return Qe(r,e,t,n)}catch(a){if(g(i),a!==a+0)throw a;p(1,0)}}function va(r,e,t,n,i){var a=m();try{return qe(r,e,t,n,i)}catch(s){if(g(a),s!==s+0)throw s;p(1,0)}}var Wr,Je;lr=function r(){Wr||Ke(),Wr||(lr=r)};function Ke(){if(q>0||!Je&&(Je=1,Rt(),q>0))return;function r(){var e;Wr||(Wr=1,c.calledRun=1,!de&&(Ot(),I(c),(e=c.onRuntimeInitialized)===null||e===void 0||e.call(c),kt()))}c.setStatus?(c.setStatus("Running..."),setTimeout(()=>{setTimeout(()=>c.setStatus(""),1),r()},1)):r()}if(c.preInit)for(typeof c.preInit=="function"&&(c.preInit=[c.preInit]);c.preInit.length>0;)c.preInit.pop()();return Ke(),k=G,k}})();const le={...rr,formats:[...rr.formats]},fe={...Mr};function Ct(v){return mr(sr,v)}function Tt(v){return yt(sr,v)}async function Pt(v,h){return $t(sr,v,h)}async function At(v,h){return bt(sr,v,h)}async function Et(v,h){return wt(sr,v,h)}return A.barcodeFormats=Dr,A.binarizers=at,A.characterSets=st,A.contentTypes=se,A.defaultDecodeHints=le,A.defaultEncodeHints=fe,A.defaultReaderOptions=le,A.defaultWriterOptions=fe,A.eanAddOnSymbols=ct,A.getZXingModule=Ct,A.purgeZXingModule=mt,A.readBarcodesFromImageData=At,A.readBarcodesFromImageFile=Pt,A.readOutputEccLevels=ht,A.setZXingModuleOverrides=Tt,A.textModes=ft,A.writeBarcodeToImageFile=Et,A.writeInputEccLevels=dt,Object.defineProperty(A,Symbol.toStringTag,{value:"Module"}),A}({});
diff --git a/zxing_full.wasm b/zxing_full.wasm
new file mode 100644 (file)
index 0000000..3d48bb0
Binary files /dev/null and b/zxing_full.wasm differ