Files
RecipesCam/dist/_expo/static/js/web/index-fe4c29bbb7677101e078eaec09be441a.js
T
2026-07-17 09:33:24 +07:00

4 lines
44 KiB
JavaScript

__d(function(g,r,i,a,m,e,d){"use strict";Object.defineProperty(e,'__esModule',{value:!0}),Object.defineProperty(e,"BarcodeDetector",{enumerable:!0,get:function(){return t.t}}),Object.defineProperty(e,"ZXING_CPP_COMMIT",{enumerable:!0,get:function(){return t.s}}),Object.defineProperty(e,"ZXING_WASM_SHA256",{enumerable:!0,get:function(){return t.r}}),Object.defineProperty(e,"ZXING_WASM_VERSION",{enumerable:!0,get:function(){return t.o}}),Object.defineProperty(e,"prepareZXingModule",{enumerable:!0,get:function(){return t.n}}),Object.defineProperty(e,"purgeZXingModule",{enumerable:!0,get:function(){return t.i}}),Object.defineProperty(e,"setZXingModuleOverrides",{enumerable:!0,get:function(){return t.a}});var t=r(d[0]);r(d[1]),r(d[2])},4128,[4129,4130,4131]);
__d(function(_g,_r2,_i,_a,_m,_e2,_d){"use strict";Object.defineProperty(_e2,'__esModule',{value:!0}),Object.defineProperty(_e2,"a",{enumerable:!0,get:function(){return S}}),Object.defineProperty(_e2,"i",{enumerable:!0,get:function(){return O}}),Object.defineProperty(_e2,"n",{enumerable:!0,get:function(){return A}}),Object.defineProperty(_e2,"o",{enumerable:!0,get:function(){return v}}),Object.defineProperty(_e2,"r",{enumerable:!0,get:function(){return I}}),Object.defineProperty(_e2,"s",{enumerable:!0,get:function(){return g}}),Object.defineProperty(_e2,"t",{enumerable:!0,get:function(){return dt}});var t=[["All","*","*"," ",0,"All"],["AllReadable","*","r"," ",0,"All Readable"],["AllCreatable","*","w"," ",0,"All Creatable"],["AllLinear","*","l"," ",0,"All Linear"],["AllMatrix","*","m"," ",0,"All Matrix"],["AllGS1","*","G"," ",0,"All GS1"],["AllRetail","*","R"," ",0,"All Retail"],["AllIndustrial","*","I"," ",0,"All Industrial"],["Codabar","F"," ","lrw ",18,"Codabar"],["Code39","A"," ","lrw I",8,"Code 39"],["Code39Std","A","s","lrw I",8,"Code 39 Standard"],["Code39Ext","A","e","lr I",9,"Code 39 Extended"],["Code32","A","2","lr I",129,"Code 32"],["PZN","A","p","lr I",52,"Pharmazentralnummer"],["Code93","G"," ","lrw I",25,"Code 93"],["Code128","C"," ","lrwGI",20,"Code 128"],["ITF","I"," ","lrw I",3,"ITF"],["ITF14","I","4","lr I",89,"ITF-14"],["DataBar","e"," ","lr GR",29,"DataBar"],["DataBarOmni","e","o","lr GR",29,"DataBar Omni"],["DataBarStk","e","s","lr GR",79,"DataBar Stacked"],["DataBarStkOmni","e","O","lr GR",80,"DataBar Stacked Omni"],["DataBarLtd","e","l","lr GR",30,"DataBar Limited"],["DataBarExp","e","e","lr GR",31,"DataBar Expanded"],["DataBarExpStk","e","E","lr GR",81,"DataBar Expanded Stacked"],["EANUPC","E"," ","lr R",15,"EAN/UPC"],["EAN13","E","1","lrw R",15,"EAN-13"],["EAN8","E","8","lrw R",10,"EAN-8"],["EAN5","E","5","l R",12,"EAN-5"],["EAN2","E","2","l R",11,"EAN-2"],["ISBN","E","i","lr R",69,"ISBN"],["UPCA","E","a","lrw R",34,"UPC-A"],["UPCE","E","e","lrw R",37,"UPC-E"],["Telepen","B"," ","lr I",32,"Telepen"],["TelepenAlpha","B","0","lr I",32,"Telepen Alpha"],["TelepenNumeric","B","1","lr I",87,"Telepen Numeric"],["OtherBarcode","X"," "," r ",0,"Other barcode"],["DXFilmEdge","X","x","lr ",147,"DX Film Edge"],["PDF417","L"," ","mrw ",55,"PDF417"],["CompactPDF417","L","c","mr ",56,"Compact PDF417"],["MicroPDF417","L","m","mr ",84,"MicroPDF417"],["Aztec","z"," ","mr G ",92,"Aztec"],["AztecCode","z","c","mrwG ",92,"Aztec Code"],["AztecRune","z","r","mr ",128,"Aztec Rune"],["QRCode","Q"," ","mrwG ",58,"QR Code"],["QRCodeModel1","Q","1","mr ",0,"QR Code Model 1"],["QRCodeModel2","Q","2","mr ",58,"QR Code Model 2"],["MicroQRCode","Q","m","mr ",97,"Micro QR Code"],["RMQRCode","Q","r","mr G ",145,"rMQR Code"],["DataMatrix","d"," ","mrwG ",71,"Data Matrix"],["MaxiCode","U"," ","mr ",57,"MaxiCode"]],e={DataBarExpanded:"DataBarExp",DataBarLimited:"DataBarLtd","Linear-Codes":"AllLinear","Matrix-Codes":"AllMatrix",Any:"All",rMQRCode:"RMQRCode"};function r(t){var r;return null==(r=e[t])?t:r}function n(t){return t.map(r).join(",")}t.map(t=>t[5]),t.filter(t=>"*"===t[1]).map(t=>t[0]),t.filter(t=>"*"!==t[1]).map(t=>t[0]),t.filter(t=>" "===t[2]).map(t=>t[0]),t.filter(t=>"l"===t[3][0]).map(t=>t[0]),t.filter(t=>"m"===t[3][0]).map(t=>t[0]),t.filter(t=>"r"===t[3][1]).map(t=>t[0]),t.filter(t=>"w"===t[3][2]||0!==t[4]).map(t=>t[0]),t.filter(t=>"G"===t[3][3]).map(t=>t[0]),t.filter(t=>"R"===t[3][4]).map(t=>t[0]),t.filter(t=>"I"===t[3][4]).map(t=>t[0]);var a=["LocalAverage","GlobalHistogram","FixedThreshold","BoolCast"];function o(t){return a.indexOf(t)}var i="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".split(".");function s(t){return"UnicodeBig"===t?i.indexOf("UTF16BE"):i.indexOf(t)}var l=["Text","Binary","Mixed","GS1","ISO15434","UnknownECI"];function u(t){return l[t]}var c=["Ignore","Read","Require"];function d(t){return c.indexOf(t)}var f=["Plain","ECI","HRI","Escaped","Hex","HexECI"];function h(t){return f.indexOf(t)}var p={formats:[],tryHarder:!0,tryRotate:!0,tryInvert:!0,tryDownscale:!0,tryDenoise:!1,binarizer:"LocalAverage",isPure:!1,downscaleFactor:3,downscaleThreshold:500,minLineCount:2,maxNumberOfSymbols:255,validateOptionalChecksum:!1,returnErrors:!1,eanAddOnSymbol:"Ignore",textMode:"HRI",characterSet:"Unknown",tryCode39ExtendedMode:!0};function m(t){var e;return Object.assign({},t,{formats:n(t.formats),binarizer:o(t.binarizer),eanAddOnSymbol:d(t.eanAddOnSymbol),textMode:h(t.textMode),characterSet:s(t.characterSet),tryCode39ExtendedMode:null==(e=t.tryCode39ExtendedMode)||e})}function y(t){return Object.assign({},t,{format:t.format,symbology:t.symbology,contentType:u(t.contentType)})}var v="3.1.1",g="6c2961d2a9ea4bc4e4ae8f37b1497299f04dd861",w={locateFile:(t,e)=>{let r=t.match(/_(.+?)\.wasm$/);return r?`https://fastly.jsdelivr.net/npm/zxing-wasm@3.1.1/dist/${r[1]}/${t}`:e+t}},b=new WeakMap;function C(t,e){return Object.is(t,e)||Object.keys(t).length===Object.keys(e).length&&Object.keys(t).every(r=>Object.hasOwn(e,r)&&t[r]===e[r])}function $(t,{overrides:e,equalityFn:r=C,fireImmediately:n=!1}={}){var a,o;let i,[s,l]=null==(a=b.get(t))?[w]:a,u=null==e?s:e;if(n){if(l&&(i=r(s,u)))return l;let e=t(Object.assign({},u));return b.set(t,[u,e]),e}(null==(o=i)?r(s,u):o)||b.set(t,[u])}function T(t){b.delete(t)}function E(t){let e=t.byteLength>>2,r=new Uint8Array(e);for(let n=0;n<e;n++){let e=n<<2;r[n]=306*t[e]+601*t[e+1]+117*t[e+2]+512>>10}return r}async function P(t,e,r=p){let n,a,o=Object.assign({},p,r),i=await $(t,{fireImmediately:!0});if("width"in e&&"height"in e&&"data"in e){let{data:t,width:r,height:s}=e,l=E(t),u=l.byteLength;if(a=i._malloc(u),!a)throw Error(`Failed to allocate ${u} bytes in WASM memory`);try{i.HEAPU8.set(l,a),n=i.readBarcodesFromPixmap(a,r,s,m(o))}finally{i._free(a)}}else{let t,r;if("buffer"in e)[t,r]=[e.byteLength,e];else if("byteLength"in e)[t,r]=[e.byteLength,new Uint8Array(e)];else{if(!("size"in e))throw TypeError("Invalid input type");[t,r]=[e.size,new Uint8Array(await e.arrayBuffer())]}if(a=i._malloc(t),!a)throw Error(`Failed to allocate ${t} bytes in WASM memory`);try{i.HEAPU8.set(r,a),n=i.readBarcodesFromImage(a,t,m(o))}finally{i._free(a)}}let s=[];for(let t=0;t<n.size();++t)s.push(y(n.get(t)));return s}async function _(t={}){var e,r,n,a=t,o=!!globalThis.window,i=typeof Bun<"u",s=!!globalThis.WorkerGlobalScope;null!=(r=globalThis.process)&&null!=(r=r.versions)&&r.node&&(null==(n=globalThis.process)||n.type);var l,u,c="./this.program",d="";function f(t){return a.locateFile?a.locateFile(t,d):d+t}if(o||s||i){try{d=new URL(".",void 0).href}catch{}s&&(u=t=>{var e=new XMLHttpRequest;return e.open("GET",t,!1),e.responseType="arraybuffer",e.send(null),new Uint8Array(e.response)}),l=async t=>{var e=await fetch(t,{credentials:"same-origin"});if(e.ok)return e.arrayBuffer();throw Error(e.status+" : "+e.url)}}console.log.bind(console);var h,p,m,y,v=console.error.bind(console),g=!1,w=!1;function b(){var t=ce.buffer;x=new Int8Array(t),O=new Int16Array(t),a.HEAPU8=F=new Uint8Array(t),D=new Uint16Array(t),S=new Int32Array(t),M=new Uint32Array(t),I=new Float32Array(t),R=new Float64Array(t)}function C(){if(a.preRun)for("function"==typeof a.preRun&&(a.preRun=[a.preRun]);a.preRun.length;)W(a.preRun.shift());j(U)}function $(){if(a.postRun)for("function"==typeof a.postRun&&(a.postRun=[a.postRun]);a.postRun.length;)k(a.postRun.shift());j(B)}function T(t){var e,r;null==(e=a.onAbort)||e.call(a,t),v(t="Aborted("+t+")"),g=!0,t+=". Build with -sASSERTIONS for more info.";var n=new WebAssembly.RuntimeError(t);throw null==(r=m)||r(n),n}function E(t){if(t==y&&h)return new Uint8Array(h);if(u)return u(t);throw"both async and sync fetching of the wasm failed"}async function P(t){if(!h)try{var e=await l(t);return new Uint8Array(e)}catch{}return E(t)}async function _(t,e){try{var r=await P(t);return await WebAssembly.instantiate(r,e)}catch(t){v(`failed to asynchronously prepare wasm: ${t}`),T(t)}}async function A(t,e,r){if(!t&&WebAssembly.instantiateStreaming)try{var n=fetch(e,{credentials:"same-origin"});return await WebAssembly.instantiateStreaming(n,r)}catch(t){v(`wasm streaming compile failed: ${t}`),v("falling back to ArrayBuffer instantiation")}return _(e,r)}var O,S,x,I,R,D,M,F,j=t=>{for(;t.length>0;)t.shift()(a)},B=[],k=t=>B.push(t),U=[],W=t=>U.push(t),L=t=>re(t),V=()=>ne(),z=[],G=0,H=0;class N{constructor(t){this.excPtr=t,this.ptr=t-24}set_type(t){M[this.ptr+4>>2]=t}get_type(){return M[this.ptr+4>>2]}set_destructor(t){M[this.ptr+8>>2]=t}get_destructor(){return M[this.ptr+8>>2]}set_caught(t){t=+!!t,x[this.ptr+12]=t}get_caught(){return 0!=x[this.ptr+12]}set_rethrown(t){t=+!!t,x[this.ptr+13]=t}get_rethrown(){return 0!=x[this.ptr+13]}init(t,e){this.set_adjusted_ptr(0),this.set_type(t),this.set_destructor(e)}set_adjusted_ptr(t){M[this.ptr+16>>2]=t}get_adjusted_ptr(){return M[this.ptr+16>>2]}}var Q=t=>ee(t),q=t=>{var e=H;if(!e)return Q(0),0;var r=new N(e);r.set_adjusted_ptr(e);var n=r.get_type();if(!n)return Q(0),e;for(var a of t){if(0===a||a===n)break;var o=r.ptr+16;if(ie(a,n,o))return Q(a),e}return Q(n),e},X={},Z=t=>{for(;t.length;){var e=t.pop();t.pop()(e)}};function J(t){return this.fromWireType(M[t>>2])}var Y={},K={},tt={},et=class extends Error{constructor(t){super(t),this.name="InternalError"}},rt=t=>{throw new et(t)},nt=(t,e,r)=>{function n(e){var n=r(e);n.length!==t.length&&rt("Mismatched type converter count");for(var a=0;a<t.length;++a)lt(t[a],n[a])}t.forEach(t=>tt[t]=e);var a=Array(e.length),o=[],i=0;{let t=e;for(let e=0;e<t.length;++e){let r=t[e];K.hasOwnProperty(r)?a[e]=K[r]:(o.push(r),Y.hasOwnProperty(r)||(Y[r]=[]),Y[r].push(()=>{a[e]=K[r],++i===o.length&&n(a)}))}}0===o.length&&n(a)},at=t=>{for(var e="";;){var r=F[t++];if(!r)return e;e+=String.fromCharCode(r)}},ot=class extends Error{constructor(t){super(t),this.name="BindingError"}},it=t=>{throw new ot(t)};function st(t,e){let r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};var n=e.name;if(t||it(`type "${n}" must have a positive integer typeid pointer`),K.hasOwnProperty(t)){if(r.ignoreDuplicateRegistrations)return;it(`Cannot register type '${n}' twice`)}if(K[t]=e,delete tt[t],Y.hasOwnProperty(t)){var a=Y[t];delete Y[t],a.forEach(t=>t())}}function lt(t,e){return st(t,e,arguments.length>2&&void 0!==arguments[2]?arguments[2]:{})}var ut=t=>({count:t.count,deleteScheduled:t.deleteScheduled,preservePointerOnDelete:t.preservePointerOnDelete,ptr:t.ptr,ptrType:t.ptrType,smartPtr:t.smartPtr,smartPtrType:t.smartPtrType}),ct=t=>{it((function(t){return t.$$.ptrType.registeredClass.name})(t)+" instance already deleted")},dt=!1,ft=t=>{},ht=t=>{t.smartPtr?t.smartPtrType.rawDestructor(t.smartPtr):t.ptrType.registeredClass.rawDestructor(t.ptr)},pt=t=>{--t.count.value,0===t.count.value&&ht(t)},mt=t=>globalThis.FinalizationRegistry?(dt=new FinalizationRegistry(t=>{pt(t.$$)}),mt=t=>{var e=t.$$;if(e.smartPtr){var r={$$:e};dt.register(t,r,t)}return t},ft=t=>dt.unregister(t),mt(t)):(mt=t=>t,t),yt=[];function vt(){}var gt=(t,e)=>Object.defineProperty(e,"name",{value:t}),wt={},bt=(t,e,r)=>{if(void 0===t[e].overloadTable){var n=t[e];t[e]=function(){var n=[...arguments];return t[e].overloadTable.hasOwnProperty(n.length)||it(`Function '${r}' called with an invalid number of arguments (${n.length}) - expects one of (${t[e].overloadTable})!`),t[e].overloadTable[n.length].apply(this,n)},t[e].overloadTable=[],t[e].overloadTable[n.argCount]=n}},Ct=(t,e,r)=>{a.hasOwnProperty(t)?((void 0===r||void 0!==a[t].overloadTable&&void 0!==a[t].overloadTable[r])&&it(`Cannot register public name '${t}' twice`),bt(a,t,t),a[t].overloadTable.hasOwnProperty(r)&&it(`Cannot register multiple overloads of a function with the same number of arguments (${r})!`),a[t].overloadTable[r]=e):(a[t]=e,a[t].argCount=r)},$t=t=>{var e=(t=t.replace(/[^a-zA-Z0-9_]/g,"$")).charCodeAt(0);return e>=48&&e<=57?`_${t}`:t};function Tt(t,e,r,n,a,o,i,s){this.name=t,this.constructor=e,this.instancePrototype=r,this.rawDestructor=n,this.baseClass=a,this.getActualType=o,this.upcast=i,this.downcast=s,this.pureVirtualFunctions=[]}var Et=(t,e,r)=>{for(;e!==r;)e.upcast||it(`Expected null or instance of ${r.name}, got an instance of ${e.name}`),t=e.upcast(t),e=e.baseClass;return t},Pt=t=>{if(null===t)return"null";var e=typeof t;return"object"===e||"array"===e||"function"===e?t.toString():""+t};function _t(t,e){if(null===e)return this.isReference&&it(`null is not a valid ${this.name}`),0;e.$$||it(`Cannot pass "${Pt(e)}" as a ${this.name}`),e.$$.ptr||it(`Cannot pass deleted object as a pointer of type ${this.name}`);var r=e.$$.ptrType.registeredClass;return Et(e.$$.ptr,r,this.registeredClass)}function At(t,e){var r;if(null===e)return this.isReference&&it(`null is not a valid ${this.name}`),this.isSmartPointer?(r=this.rawConstructor(),null!==t&&t.push(this.rawDestructor,r),r):0;(!e||!e.$$)&&it(`Cannot pass "${Pt(e)}" as a ${this.name}`),e.$$.ptr||it(`Cannot pass deleted object as a pointer of type ${this.name}`),!this.isConst&&e.$$.ptrType.isConst&&it(`Cannot convert argument of type ${e.$$.smartPtrType?e.$$.smartPtrType.name:e.$$.ptrType.name} to parameter type ${this.name}`);var n=e.$$.ptrType.registeredClass;if(r=Et(e.$$.ptr,n,this.registeredClass),this.isSmartPointer)switch(void 0===e.$$.smartPtr&&it("Passing raw pointer to smart pointer is illegal"),this.sharingPolicy){case 0:e.$$.smartPtrType===this?r=e.$$.smartPtr:it(`Cannot convert argument of type ${e.$$.smartPtrType?e.$$.smartPtrType.name:e.$$.ptrType.name} to parameter type ${this.name}`);break;case 1:r=e.$$.smartPtr;break;case 2:if(e.$$.smartPtrType===this)r=e.$$.smartPtr;else{var a=e.clone();r=this.rawShare(r,ye.toHandle(()=>a.delete())),null!==t&&t.push(this.rawDestructor,r)}break;default:it("Unsupported sharing policy")}return r}function Ot(t,e){if(null===e)return this.isReference&&it(`null is not a valid ${this.name}`),0;e.$$||it(`Cannot pass "${Pt(e)}" as a ${this.name}`),e.$$.ptr||it(`Cannot pass deleted object as a pointer of type ${this.name}`),e.$$.ptrType.isConst&&it(`Cannot convert argument of type ${e.$$.ptrType.name} to parameter type ${this.name}`);var r=e.$$.ptrType.registeredClass;return Et(e.$$.ptr,r,this.registeredClass)}var St=(t,e,r)=>{if(e===r)return t;if(void 0===r.baseClass)return null;var n=St(t,e,r.baseClass);return null===n?null:r.downcast(n)},xt={},It=(t,e)=>{for(void 0===e&&it("ptr should not be undefined");t.baseClass;)e=t.upcast(e),t=t.baseClass;return e},Rt=(t,e)=>(e=It(t,e),xt[e]),Dt=(t,e)=>((!e.ptrType||!e.ptr)&&rt("makeClassHandle requires ptr and ptrType"),!!e.smartPtrType!=!!e.smartPtr&&rt("Both smartPtrType and smartPtr must be specified"),e.count={value:1},mt(Object.create(t,{$$:{value:e,writable:!0}})));function Mt(t){var e=this.getPointee(t);if(!e)return this.destructor(t),null;var r=Rt(this.registeredClass,e);if(void 0!==r){if(0===r.$$.count.value)return r.$$.ptr=e,r.$$.smartPtr=t,r.clone();var n=r.clone();return this.destructor(t),n}function a(){return this.isSmartPointer?Dt(this.registeredClass.instancePrototype,{ptrType:this.pointeeType,ptr:e,smartPtrType:this,smartPtr:t}):Dt(this.registeredClass.instancePrototype,{ptrType:this,ptr:t})}var o=wt[this.registeredClass.getActualType(e)];if(!o)return a.call(this);var i=this.isConst?o.constPointerType:o.pointerType,s=St(e,this.registeredClass,i.registeredClass);return null===s?a.call(this):this.isSmartPointer?Dt(i.registeredClass.instancePrototype,{ptrType:i,ptr:s,smartPtrType:this,smartPtr:t}):Dt(i.registeredClass.instancePrototype,{ptrType:i,ptr:s})}function Ft(t,e,r,n,a,o,i,s,l,u,c){this.name=t,this.registeredClass=e,this.isReference=r,this.isConst=n,this.isSmartPointer=a,this.pointeeType=o,this.sharingPolicy=i,this.rawGetPointee=s,this.rawConstructor=l,this.rawShare=u,this.rawDestructor=c,a||void 0!==e.baseClass?this.toWireType=At:n?(this.toWireType=_t,this.destructorFunction=null):(this.toWireType=Ot,this.destructorFunction=null)}var jt=(t,e,r)=>{a.hasOwnProperty(t)||rt("Replacing nonexistent public symbol"),void 0!==a[t].overloadTable&&void 0!==r?a[t].overloadTable[r]=e:(a[t]=e,a[t].argCount=r)},Bt={},kt=(t,e,r)=>(t=t.replace(/p/g,"i"),(0,Bt[t])(e,...r)),Ut=[],Wt=t=>{var e=Ut[t];return e||(Ut[t]=e=de.get(t)),e},Lt=function(t,e){let r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:[];if(t.includes("j"))return kt(t,e,r);return Wt(e)(...r)},Vt=function(t,e){let r=arguments.length>2&&void 0!==arguments[2]&&arguments[2];return function(){return Lt(t,e,[...arguments],r)}},zt=function(t,e){var r=(t=at(t)).includes("j")?Vt(t,e):Wt(e);return"function"!=typeof r&&it(`unknown function pointer with signature ${t}: ${e}`),r};class Gt extends Error{}var Ht=t=>{var e=Zt(t),r=at(e);return Jt(e),r},Nt=(t,e)=>{var r=[],n={};throw e.forEach(function t(e){if(!n[e]&&!K[e]){if(tt[e])return void tt[e].forEach(t);r.push(e),n[e]=!0}}),new Gt(`${t}: `+r.map(Ht).join([", "]))},Qt=(t,e)=>{for(var r=[],n=0;n<t;n++)r.push(M[e+4*n>>2]);return r};function qt(t){for(var e=1;e<t.length;++e)if(null!==t[e]&&void 0===t[e].destructorFunction)return!0;return!1}function Xt(t,e,r,n,a,o){var i=e.length;i<2&&it("argTypes array size mismatch! Must at least get return value and 'this' types!");var s=null!==e[1]&&null!==r,l=qt(e),u=!e[0].isVoid,c=i-2,d=Array(c),f=[],h=[];return gt(t,function(){var t;h.length=0,f.length=s?2:1,f[0]=a,s&&(t=e[1].toWireType(h,this),f[1]=t);for(var r=0;r<c;++r)d[r]=e[r+2].toWireType(h,r<0||arguments.length<=r?void 0:arguments[r]),f.push(d[r]);return(function(r){if(l)Z(h);else for(var n=s?1:2;n<e.length;n++){var a=1===n?t:d[n-2];null!==e[n].destructorFunction&&e[n].destructorFunction(a)}if(u)return e[0].fromWireType(r)})(n(...f))})}var Zt,Jt,Yt,Kt,te,ee,re,ne,ae,oe,ie,se,le,ue,ce,de,fe=t=>{let e=(t=t.trim()).indexOf("(");return-1===e?t:t.slice(0,e)},he=[],pe=[0,1,,1,null,1,!0,1,!1,1],me=t=>{t>9&&0===--pe[t+1]&&(pe[t]=void 0,he.push(t))},ye={toValue:t=>(t||it(`Cannot use deleted val. handle = ${t}`),pe[t]),toHandle:t=>{switch(t){case void 0:return 2;case null:return 4;case!0:return 6;case!1:return 8;default:{let e=he.pop()||pe.length;return pe[e]=t,pe[e+1]=1,e}}}},ve={name:"emscripten::val",fromWireType:t=>{var e=ye.toValue(t);return me(t),e},toWireType:(t,e)=>ye.toHandle(e),readValueFromPointer:J,destructorFunction:null},ge=(t,e)=>{switch(e){case 4:return function(t){return this.fromWireType(I[t>>2])};case 8:return function(t){return this.fromWireType(R[t>>3])};default:throw TypeError(`invalid float width (${e}): ${t}`)}},we=(t,e,r)=>{switch(e){case 1:return r?t=>x[t]:t=>F[t];case 2:return r?t=>O[t>>1]:t=>D[t>>1];case 4:return r?t=>S[t>>2]:t=>M[t>>2];default:throw TypeError(`invalid integer width (${e}): ${t}`)}},be=(t,e,r)=>{let n=(t,e)=>{let r=0;return{next(){if(r>=t)return{done:!0};let n=r;return r++,{value:e(n),done:!1}},[Symbol.iterator](){return this}}};t[Symbol.iterator]||(t[Symbol.iterator]=function(){return n(this[e](),t=>this[r](t))})},Ce=Object.assign({optional:!0},ve),$e=(t,e,r,n)=>{if(!(n>0))return 0;for(var a=r,o=r+n-1,i=0;i<t.length;++i){var s=t.codePointAt(i);if(s<=127){if(r>=o)break;e[r++]=s}else if(s<=2047){if(r+1>=o)break;e[r++]=192|s>>6,e[r++]=128|63&s}else if(s<=65535){if(r+2>=o)break;e[r++]=224|s>>12,e[r++]=128|s>>6&63,e[r++]=128|63&s}else{if(r+3>=o)break;e[r++]=240|s>>18,e[r++]=128|s>>12&63,e[r++]=128|s>>6&63,e[r++]=128|63&s,i++}}return e[r]=0,r-a},Te=(t,e,r)=>$e(t,F,e,r),Ee=t=>{for(var e=0,r=0;r<t.length;++r){var n=t.charCodeAt(r);n<=127?e++:n<=2047?e+=2:n>=55296&&n<=57343?(e+=4,++r):e+=3}return e},Pe=globalThis.TextDecoder&&new TextDecoder,_e=(t,e,r,n)=>{var a=e+r;if(n)return a;for(;t[e]&&!(e>=a);)++e;return e},Ae=function(t){let e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0;var r=_e(t,e,arguments.length>2?arguments[2]:void 0,arguments.length>3?arguments[3]:void 0);if(r-e>16&&t.buffer&&Pe)return Pe.decode(t.subarray(e,r));for(var n="";e<r;){var a=t[e++];if(128&a){var o=63&t[e++];if(192!=(224&a)){var i=63&t[e++];if((a=224==(240&a)?(15&a)<<12|o<<6|i:(7&a)<<18|o<<12|i<<6|63&t[e++])<65536)n+=String.fromCharCode(a);else{var s=a-65536;n+=String.fromCharCode(55296|s>>10,56320|1023&s)}}else n+=String.fromCharCode((31&a)<<6|o)}else n+=String.fromCharCode(a)}return n},Oe=(t,e,r)=>t?Ae(F,t,e,r):"",Se=globalThis.TextDecoder?new TextDecoder("utf-16le"):void 0,xe=(t,e,r)=>{var n=t>>1,a=_e(D,n,e/2,r);if(a-n>16&&Se)return Se.decode(D.subarray(n,a));for(var o="",i=n;i<a;++i){var s=D[i];o+=String.fromCharCode(s)}return o},Ie=(t,e,r)=>{if(null!=r||(r=2147483647),r<2)return 0;for(var n=e,a=(r-=2)<2*t.length?r/2:t.length,o=0;o<a;++o){var i=t.charCodeAt(o);O[e>>1]=i,e+=2}return O[e>>1]=0,e-n},Re=t=>2*t.length,De=(t,e,r)=>{for(var n="",a=t>>2,o=0;!(o>=e/4);o++){var i=M[a+o];if(!i&&!r)break;n+=String.fromCodePoint(i)}return n},Me=(t,e,r)=>{if(null!=r||(r=2147483647),r<4)return 0;for(var n=e,a=n+r-4,o=0;o<t.length;++o){var i=t.codePointAt(o);if(i>65535&&o++,S[e>>2]=i,(e+=4)+4>a)break}return S[e>>2]=0,e-n},Fe=t=>{for(var e=0,r=0;r<t.length;++r)t.codePointAt(r)>65535&&r++,e+=4;return e},je=[],Be=t=>{var e=je.length;return je.push(t),e},ke=(t,e)=>{var r=K[t];return void 0===r&&it(`${e} has unknown type ${Ht(t)}`),r},Ue=(t,e)=>{for(var r=Array(t),n=0;n<t;++n)r[n]=ke(M[e+4*n>>2],`parameter ${n}`);return r},We=(t,e,r)=>{var n=[],a=t(n,r);return n.length&&(M[e>>2]=ye.toHandle(n)),a},Le={},Ve=t=>{var e=Le[t];return void 0===e?at(t):e},ze=(t,e)=>Math.ceil(t/e)*e,Ge=t=>{var e=(t-ce.buffer.byteLength+65535)/65536|0;try{return ce.grow(e),b(),1}catch{}},He={},Ne=()=>{if(!Ne.strings){var t,e,r={USER:"web_user",LOGNAME:"web_user",PATH:"/",PWD:"/",HOME:"/home/web_user",LANG:(null==(t=null==(e=globalThis.navigator)?void 0:e.language)?"C":t).replace("-","_")+".UTF-8",_:c||"./this.program"};for(var n in He)void 0===He[n]?delete r[n]:r[n]=He[n];var a=[];for(var n in r)a.push(`${n}=${r[n]}`);Ne.strings=a}return Ne.strings};if((()=>{let t=vt.prototype;Object.assign(t,{isAliasOf(t){if(!(this instanceof vt&&t instanceof vt))return!1;var e=this.$$.ptrType.registeredClass,r=this.$$.ptr;t.$$=t.$$;for(var n=t.$$.ptrType.registeredClass,a=t.$$.ptr;e.baseClass;)r=e.upcast(r),e=e.baseClass;for(;n.baseClass;)a=n.upcast(a),n=n.baseClass;return e===n&&r===a},clone(){if(this.$$.ptr||ct(this),this.$$.preservePointerOnDelete)return this.$$.count.value+=1,this;var t=mt(Object.create(Object.getPrototypeOf(this),{$$:{value:ut(this.$$)}}));return t.$$.count.value+=1,t.$$.deleteScheduled=!1,t},delete(){this.$$.ptr||ct(this),this.$$.deleteScheduled&&!this.$$.preservePointerOnDelete&&it("Object already scheduled for deletion"),ft(this),pt(this.$$),this.$$.preservePointerOnDelete||(this.$$.smartPtr=void 0,this.$$.ptr=void 0)},isDeleted(){return!this.$$.ptr},deleteLater(){return this.$$.ptr||ct(this),this.$$.deleteScheduled&&!this.$$.preservePointerOnDelete&&it("Object already scheduled for deletion"),yt.push(this),yt.length,this.$$.deleteScheduled=!0,this}});let e=Symbol.dispose;e&&(t[e]=t.delete)})(),Object.assign(Ft.prototype,{getPointee(t){return this.rawGetPointee&&(t=this.rawGetPointee(t)),t},destructor(t){var e;null==(e=this.rawDestructor)||e.call(this,t)},readValueFromPointer:J,fromWireType:Mt}),a.noExitRuntime&&a.noExitRuntime,a.print&&a.print,a.printErr&&(v=a.printErr),a.wasmBinary&&(h=a.wasmBinary),a.arguments&&a.arguments,a.thisProgram&&(c=a.thisProgram),a.preInit)for("function"==typeof a.preInit&&(a.preInit=[a.preInit]);a.preInit.length>0;)a.preInit.shift()();function Qe(t){Zt=t.za,Jt=a._free=t.Aa,Yt=a._malloc=t.Ca,Kt=t.Da,te=t.Ea,ee=t.Fa,re=t.Ga,ne=t.Ha,ae=t.Ia,oe=t.Ja,ie=t.Ka,Bt.viijii=t.La,se=Bt.viijjijjjjjj=t.Ma,le=Bt.iiijj=t.Na,ue=Bt.jiiii=t.Oa,Bt.iiiiij=t.Pa,Bt.iiiiijj=t.Qa,Bt.iiiiiijj=t.Ra,ce=t.xa,de=t.Ba}var qe={q:t=>{var e=new N(t);return e.get_caught()||(e.set_caught(!0),G--),e.set_rethrown(!1),z.push(e),Kt(t)},x:()=>{te(0,0);var t=z.pop();ae(t.excPtr),H=0},a:()=>q([]),i:t=>q([t]),m:(t,e)=>q([t,e]),S:()=>{var t=z.pop();t||T("no exception to throw");var e=t.excPtr;throw t.get_rethrown()||(z.push(t),t.set_rethrown(!0),t.set_caught(!1),G++),oe(e),H=e},p:(t,e,r)=>{throw new N(t).init(e,r),oe(t),G++,H=t},fa:()=>G,d:t=>{throw H||(H=t),H},ba:()=>T(""),ua:t=>{var e=X[t];delete X[t];var r=e.rawConstructor,n=e.rawDestructor,a=e.fields,o=a.map(t=>t.getterReturnType).concat(a.map(t=>t.setterArgumentType));nt([t],o,t=>{var o={};{let e=a;for(let r=0;r<e.length;++r){let n=e[r],i=t[r],s=n.getter,l=n.getterContext,u=t[r+a.length],c=n.setter,d=n.setterContext;o[n.fieldName]={read:t=>i.fromWireType(s(l,t)),write:(t,e)=>{var r=[];c(d,t,u.toWireType(r,e)),Z(r)},optional:i.optional}}}return[{name:e.name,fromWireType:t=>{var e={};for(var r in o)e[r]=o[r].read(t);return n(t),e},toWireType:(t,e)=>{for(var a in o)if(!(a in e)&&!o[a].optional)throw TypeError(`Missing field: "${a}"`);var i=r();for(a in o)o[a].write(i,e[a]);return null!==t&&t.push(n,i),i},readValueFromPointer:J,destructorFunction:n}]})},aa:(t,e,r,n,a)=>{},oa:(t,e,r,n)=>{lt(t,{name:e=at(e),fromWireType:function(t){return!!t},toWireType:function(t,e){return e?r:n},readValueFromPointer:function(t){return this.fromWireType(F[t])},destructorFunction:null})},sa:(t,e,r,n,a,o,i,s,l,u,c,d,f)=>{c=at(c),o=zt(a,o),s&&(s=zt(i,s)),u&&(u=zt(l,u)),f=zt(d,f);var h=$t(c);Ct(h,function(){Nt(`Cannot construct ${c} due to unbound types`,[n])}),nt([t,e,r],n?[n]:[],e=>{var r,a;e=e[0],n?a=(r=e.registeredClass).instancePrototype:a=vt.prototype;var i=gt(c,function(){if(Object.getPrototypeOf(this)!==l)throw new ot(`Use 'new' to construct ${c}`);if(void 0===p.constructor_body)throw new ot(`${c} has no accessible constructor`);var t=[...arguments],e=p.constructor_body[t.length];if(void 0===e)throw new ot(`Tried to invoke ctor of ${c} with invalid number of parameters (${t.length}) - expected (${Object.keys(p.constructor_body).toString()}) parameters instead!`);return e.apply(this,t)}),l=Object.create(a,{constructor:{value:i}});i.prototype=l;var d,p=new Tt(c,i,l,f,r,o,s,u);p.baseClass&&(null!=(d=p.baseClass).__derivedClasses||(d.__derivedClasses=[]),p.baseClass.__derivedClasses.push(p));var m=new Ft(c,p,!0,!1,!1),y=new Ft(c+"*",p,!1,!1,!1),v=new Ft(c+" const*",p,!1,!0,!1);return wt[t]={pointerType:y,constPointerType:v},jt(h,i),[m,y,v]})},ra:(t,e,r,n,a,o)=>{var i=Qt(e,r);a=zt(n,a),nt([],[t],t=>{var r=`constructor ${(t=t[0]).name}`;if(void 0===t.registeredClass.constructor_body&&(t.registeredClass.constructor_body=[]),void 0!==t.registeredClass.constructor_body[e-1])throw new ot(`Cannot register multiple constructors with identical number of parameters (${e-1}) for class '${t.name}'! Overload resolution is currently only performed using the parameter count, not actual type info!`);return t.registeredClass.constructor_body[e-1]=()=>{Nt(`Cannot construct ${t.name} due to unbound types`,i)},nt([],i,n=>(n.splice(1,0,null),t.registeredClass.constructor_body[e-1]=Xt(r,n,null,a,o),[])),[]})},H:(t,e,r,n,a,o,i,s,l,u)=>{var c=Qt(r,n);e=at(e),e=fe(e),o=zt(a,o,l),nt([],[t],t=>{var n=`${(t=t[0]).name}.${e}`;function a(){Nt(`Cannot call ${n} due to unbound types`,c)}e.startsWith("@@")&&(e=Symbol[e.substring(2)]),s&&t.registeredClass.pureVirtualFunctions.push(e);var l=t.registeredClass.instancePrototype,u=l[e];return void 0===u||void 0===u.overloadTable&&u.className!==t.name&&u.argCount===r-2?(a.argCount=r-2,a.className=t.name,l[e]=a):(bt(l,e,n),l[e].overloadTable[r-2]=a),nt([],c,a=>{var s=Xt(n,a,t,o,i);return void 0===l[e].overloadTable?(s.argCount=r-2,l[e]=s):l[e].overloadTable[r-2]=s,[]}),[]})},ma:t=>lt(t,ve),X:(t,e,r)=>{lt(t,{name:e=at(e),fromWireType:t=>t,toWireType:(t,e)=>e,readValueFromPointer:ge(e,r),destructorFunction:null})},Y:(t,e,r,n,a,o,i,s)=>{var l=Qt(e,r);t=at(t),t=fe(t),a=zt(n,a,i),Ct(t,function(){Nt(`Cannot call ${t} due to unbound types`,l)},e-1),nt([],l,r=>{var n=[r[0],null].concat(r.slice(1));return jt(t,Xt(t,n,null,a,o),e-1),[]})},A:(t,e,r,n,a)=>{e=at(e);let o=t=>t;if(0===n){var i=32-8*r;o=t=>t<<i>>>i,a=o(a)}lt(t,{name:e,fromWireType:o,toWireType:(t,e)=>e,readValueFromPointer:we(e,r,0!==n),destructorFunction:null})},qa:(t,e,r,n)=>{r=at(r),n=at(n),nt([],[t,e],t=>{let e=t[0];return be(e.registeredClass.instancePrototype,r,n),[]})},u:(t,e,r)=>{var n=[Int8Array,Uint8Array,Int16Array,Uint16Array,Int32Array,Uint32Array,Float32Array,Float64Array][e];function a(t){var e=M[t>>2],r=M[t+4>>2];return new n(x.buffer,r,e)}lt(t,{name:r=at(r),fromWireType:a,readValueFromPointer:a},{ignoreDuplicateRegistrations:!0})},ta:(t,e)=>{lt(t,Ce)},na:(t,e)=>{lt(t,{name:e=at(e),fromWireType(t){var e,r=M[t>>2];return e=Oe(t+4,r,!0),Jt(t),e},toWireType(t,e){e instanceof ArrayBuffer&&(e=new Uint8Array(e));var r,n="string"==typeof e;n||ArrayBuffer.isView(e)&&1==e.BYTES_PER_ELEMENT||it("Cannot pass non-string to std::string"),r=n?Ee(e):e.length;var a=Yt(4+r+1),o=a+4;return M[a>>2]=r,n?Te(e,o,r+1):F.set(e,o),null!==t&&t.push(Jt,a),a},readValueFromPointer:J,destructorFunction(t){Jt(t)}})},T:(t,e,r)=>{var n,a,o;r=at(r),2===e?(n=xe,a=Ie,o=Re):(n=De,a=Me,o=Fe),lt(t,{name:r,fromWireType:t=>{var r=M[t>>2],a=n(t+4,r*e,!0);return Jt(t),a},toWireType:(t,n)=>{"string"!=typeof n&&it(`Cannot pass non-string to C++ string type ${r}`);var i=o(n),s=Yt(4+i+e);return M[s>>2]=i/e,a(n,s+4,i+e),null!==t&&t.push(Jt,s),s},readValueFromPointer:J,destructorFunction(t){Jt(t)}})},I:(t,e,r,n,a,o)=>{X[t]={name:at(e),rawConstructor:zt(r,n),rawDestructor:zt(a,o),fields:[]}},va:(t,e,r,n,a,o,i,s,l,u)=>{X[t].fields.push({fieldName:at(e),getterReturnType:r,getter:zt(n,a),getterContext:o,setterArgumentType:i,setter:zt(s,l),setterContext:u})},pa:(t,e)=>{lt(t,{isVoid:!0,name:e=at(e),fromWireType:()=>{},toWireType:(t,e)=>{}})},O:(t,e,r)=>{var[n,...a]=Ue(t,e),o=n.toWireType.bind(n),i=a.map(t=>t.readValueFromPointer.bind(t));t--;var s=Array(t);return Be(gt(`methodCaller<(${a.map(t=>t.name)}) => ${n.name}>`,(e,n,a,l)=>{for(var u=0,c=0;c<t;++c)s[c]=i[c](l+u),u+=8;var d;switch(r){case 0:d=ye.toValue(e).apply(null,s);break;case 2:d=Reflect.construct(ye.toValue(e),s);break;case 3:d=s[0];break;case 1:d=ye.toValue(e)[Ve(n)](...s)}return We(o,a,d)}))},wa:me,F:t=>t?(t=Ve(t),ye.toHandle(globalThis[t])):ye.toHandle(globalThis),U:t=>{t>9&&(pe[t+1]+=1)},N:(t,e,r,n,a)=>je[t](e,r,n,a),ha:t=>{Z(ye.toValue(t)),me(t)},ca:(t,e,r,n)=>{var a=(new Date).getFullYear(),o=new Date(a,0,1),i=new Date(a,6,1),s=o.getTimezoneOffset(),l=i.getTimezoneOffset(),u=Math.max(s,l);M[t>>2]=60*u,S[e>>2]=Number(s!=l);var c=t=>{var e=t>=0?"-":"+",r=Math.abs(t);return`UTC${e}${String(Math.floor(r/60)).padStart(2,"0")}${String(r%60).padStart(2,"0")}`},d=c(s),f=c(l);l<s?(Te(d,r,17),Te(f,n,17)):(Te(d,n,17),Te(f,r,17))},ga:t=>{var e=F.length,r=2147483648;if((t>>>=0)>r)return!1;for(var n=1;n<=4;n*=2){var a=e*(1+.2/n);if(a=Math.min(a,t+100663296),Ge(Math.min(r,ze(Math.max(t,a),65536))))return!0}return!1},da:(t,e)=>{var r=0,n=0;for(var a of Ne()){var o=e+r;M[t+n>>2]=o,r+=Te(a,o,1/0)+1,n+=4}return 0},ea:(t,e)=>{var r=Ne();M[t>>2]=r.length;var n=0;for(var a of r)n+=Ee(a)+1;return M[e>>2]=n,0},ka:function(t,e,r){var n=V();try{return Wt(t)(e,r)}catch(t){if(L(n),t!==t+0)throw t;te(1,0)}},M:function(t,e,r,n){var a=V();try{return Wt(t)(e,r,n)}catch(t){if(L(a),t!==t+0)throw t;te(1,0)}},B:function(t,e,r,n,a,o){var i=V();try{return Wt(t)(e,r,n,a,o)}catch(t){if(L(i),t!==t+0)throw t;te(1,0)}},P:function(t,e,r,n,a,o){var i=V();try{return Wt(t)(e,r,n,a,o)}catch(t){if(L(i),t!==t+0)throw t;te(1,0)}},V:function(t,e,r,n){var a=V();try{return Wt(t)(e,r,n)}catch(t){if(L(a),t!==t+0)throw t;te(1,0)}},s:function(t){var e=V();try{return Wt(t)()}catch(t){if(L(e),t!==t+0)throw t;te(1,0)}},b:function(t,e){var r=V();try{return Wt(t)(e)}catch(t){if(L(r),t!==t+0)throw t;te(1,0)}},C:function(t,e,r,n){var a=V();try{return Wt(t)(e,r,n)}catch(t){if(L(a),t!==t+0)throw t;te(1,0)}},ia:function(t,e,r){var n=V();try{return Wt(t)(e,r)}catch(t){if(L(n),t!==t+0)throw t;te(1,0)}},c:function(t,e,r){var n=V();try{return Wt(t)(e,r)}catch(t){if(L(n),t!==t+0)throw t;te(1,0)}},Q:function(t,e,r,n,a){var o=V();try{return Wt(t)(e,r,n,a)}catch(t){if(L(o),t!==t+0)throw t;te(1,0)}},h:function(t,e,r,n){var a=V();try{return Wt(t)(e,r,n)}catch(t){if(L(a),t!==t+0)throw t;te(1,0)}},j:function(t,e,r,n,a){var o=V();try{return Wt(t)(e,r,n,a)}catch(t){if(L(o),t!==t+0)throw t;te(1,0)}},r:function(t,e,r,n,a,o){var i=V();try{return Wt(t)(e,r,n,a,o)}catch(t){if(L(i),t!==t+0)throw t;te(1,0)}},R:function(t,e,r,n,a,o,i){var s=V();try{return Wt(t)(e,r,n,a,o,i)}catch(t){if(L(s),t!==t+0)throw t;te(1,0)}},t:function(t,e,r,n,a,o,i){var s=V();try{return Wt(t)(e,r,n,a,o,i)}catch(t){if(L(s),t!==t+0)throw t;te(1,0)}},G:function(t,e,r,n,a,o,i,s){var l=V();try{return Wt(t)(e,r,n,a,o,i,s)}catch(t){if(L(l),t!==t+0)throw t;te(1,0)}},D:function(t,e,r,n,a,o,i,s,l){var u=V();try{return Wt(t)(e,r,n,a,o,i,s,l)}catch(t){if(L(u),t!==t+0)throw t;te(1,0)}},K:function(t,e,r,n,a,o,i,s,l,u,c,d){var f=V();try{return Wt(t)(e,r,n,a,o,i,s,l,u,c,d)}catch(t){if(L(f),t!==t+0)throw t;te(1,0)}},_:function(t,e,r,n,a,o,i){var s=V();try{return le(t,e,r,n,a,o,i)}catch(t){if(L(s),t!==t+0)throw t;te(1,0)}},Z:function(t,e,r,n,a){var o=V();try{return ue(t,e,r,n,a)}catch(t){if(L(o),t!==t+0)throw t;te(1,0)}},f:function(t){var e=V();try{Wt(t)()}catch(t){if(L(e),t!==t+0)throw t;te(1,0)}},l:function(t,e){var r=V();try{Wt(t)(e)}catch(t){if(L(r),t!==t+0)throw t;te(1,0)}},e:function(t,e,r){var n=V();try{Wt(t)(e,r)}catch(t){if(L(n),t!==t+0)throw t;te(1,0)}},W:function(t,e,r,n,a,o,i,s,l){var u=V();try{Wt(t)(e,r,n,a,o,i,s,l)}catch(t){if(L(u),t!==t+0)throw t;te(1,0)}},g:function(t,e,r,n){var a=V();try{Wt(t)(e,r,n)}catch(t){if(L(a),t!==t+0)throw t;te(1,0)}},L:function(t,e,r,n,a,o,i){var s=V();try{Wt(t)(e,r,n,a,o,i)}catch(t){if(L(s),t!==t+0)throw t;te(1,0)}},k:function(t,e,r,n,a){var o=V();try{Wt(t)(e,r,n,a)}catch(t){if(L(o),t!==t+0)throw t;te(1,0)}},ja:function(t,e,r,n,a,o,i,s){var l=V();try{Wt(t)(e,r,n,a,o,i,s)}catch(t){if(L(l),t!==t+0)throw t;te(1,0)}},o:function(t,e,r,n,a,o){var i=V();try{Wt(t)(e,r,n,a,o)}catch(t){if(L(i),t!==t+0)throw t;te(1,0)}},y:function(t,e,r,n,a,o,i){var s=V();try{Wt(t)(e,r,n,a,o,i)}catch(t){if(L(s),t!==t+0)throw t;te(1,0)}},v:function(t,e,r,n,a,o,i,s){var l=V();try{Wt(t)(e,r,n,a,o,i,s)}catch(t){if(L(l),t!==t+0)throw t;te(1,0)}},E:function(t,e,r,n,a,o,i,s,l){var u=V();try{Wt(t)(e,r,n,a,o,i,s,l)}catch(t){if(L(u),t!==t+0)throw t;te(1,0)}},w:function(t,e,r,n,a,o,i,s,l,u){var c=V();try{Wt(t)(e,r,n,a,o,i,s,l,u)}catch(t){if(L(c),t!==t+0)throw t;te(1,0)}},n:function(t,e,r,n,a,o,i,s,l,u,c){var d=V();try{Wt(t)(e,r,n,a,o,i,s,l,u,c)}catch(t){if(L(d),t!==t+0)throw t;te(1,0)}},J:function(t,e,r,n,a,o,i,s,l,u,c,d,f,h,p,m){var y=V();try{Wt(t)(e,r,n,a,o,i,s,l,u,c,d,f,h,p,m)}catch(t){if(L(y),t!==t+0)throw t;te(1,0)}},la:function(t,e,r,n,a,o,i,s,l,u,c,d,f,h,p,m,y){var v=V();try{Wt(t)(e,r,n,a,o,i,s,l,u,c,d,f,h,p,m,y)}catch(t){if(L(v),t!==t+0)throw t;te(1,0)}},$:function(t,e,r,n,a,o,i,s,l,u,c,d,f,h,p,m,y,v,g,w){var b=V();try{se(t,e,r,n,a,o,i,s,l,u,c,d,f,h,p,m,y,v,g,w)}catch(t){if(L(b),t!==t+0)throw t;te(1,0)}},z:t=>t};var Xe=await(async function(){function t(t,e){return Qe(Xe=t.exports),b(),Xe}var e={a:qe};return a.instantiateWasm?new Promise((r,n)=>{a.instantiateWasm(e,(e,n)=>{r(t(e))})}):(null!=y||(y=f("zxing_reader.wasm")),(function(e){return t(e.instance)})(await A(h,y,e)))})();return(function(){function t(){var t,e;a.calledRun=!0,!g&&(w=!0,Xe.ya(),null==(t=p)||t(a),null==(e=a.onRuntimeInitialized)||e.call(a),$())}C(),a.setStatus?(a.setStatus("Running..."),setTimeout(()=>{setTimeout(()=>a.setStatus(""),1),t()},1)):t()})(),e=w?a:new Promise((t,e)=>{p=t,m=e}),e}function A(t){return $(_,t)}function O(){return T(_)}function S(t){A({overrides:t,equalityFn:Object.is,fireImmediately:!1})}async function x(t,e){return P(_,t,e)}Object.assign({},p),Object.assign({},{format:"QRCode",readerInit:!1,forceSquareDataMatrix:!1,ecLevel:"",scale:1,sizeHint:0,rotate:0,invert:!1,withHRT:!1,withQuietZones:!0,addHRT:!1,addQuietZones:!0,options:""});var I="6a858c01e076bab3a1bd413e4f2cf5e5e45f819a0d9441d83c66993bc48ed38f",R=[["aztec","Aztec"],["aztec_code","AztecCode"],["aztec_rune","AztecRune"],["code_128","Code128"],["code_39","Code39"],["code_39_standard","Code39Std"],["code_39_extended","Code39Ext"],["code_32","Code32"],["pzn","PZN"],["code_93","Code93"],["codabar","Codabar"],["databar","DataBar"],["databar_omni","DataBarOmni"],["databar_stacked","DataBarStk"],["databar_stacked_omni","DataBarStkOmni"],["databar_expanded","DataBarExp"],["databar_expanded_stacked","DataBarExpStk"],["databar_limited","DataBarLtd"],["data_matrix","DataMatrix"],["dx_film_edge","DXFilmEdge"],["ean_13","EAN13"],["ean_upc","EANUPC"],["isbn","ISBN"],["ean_8","EAN8"],["itf","ITF"],["itf_14","ITF14"],["maxi_code","MaxiCode"],["micro_qr_code","MicroQRCode"],["pdf417","PDF417"],["compact_pdf417","CompactPDF417"],["micro_pdf417","MicroPDF417"],["qr_code","QRCode"],["qr_code_model_1","QRCodeModel1"],["qr_code_model_2","QRCodeModel2"],["rm_qr_code","RMQRCode"],["upc_a","UPCA"],["upc_e","UPCE"],["telepen","Telepen"],["telepen_alpha","TelepenAlpha"],["telepen_numeric","TelepenNumeric"],["other_barcode","OtherBarcode"],["linear_codes","AllLinear"],["matrix_codes","AllMatrix"],["gs1_codes","AllGS1"],["retail_codes","AllRetail"],["industrial_codes","AllIndustrial"],["any","All"]],D=[...R,["unknown"]].map(t=>t[0]),M=new Map(R);function F(t){for(let[e,r]of M)if(t===r)return e;return"unknown"}function j(t){if(B(t))return{width:t.naturalWidth,height:t.naturalHeight};if(k(t))return{width:t.width.baseVal.value,height:t.height.baseVal.value};if(U(t))return{width:t.videoWidth,height:t.videoHeight};if(L(t))return{width:t.width,height:t.height};if(z(t))return{width:t.displayWidth,height:t.displayHeight};if(W(t)||V(t))return{width:t.width,height:t.height};throw TypeError("The provided value is not of type '(Blob or HTMLCanvasElement or HTMLImageElement or HTMLVideoElement or ImageBitmap or ImageData or OffscreenCanvas or SVGImageElement or VideoFrame)'.")}function B(t){try{var e;return t instanceof(null==t||null==(e=t.ownerDocument)||null==(e=e.defaultView)?void 0:e.HTMLImageElement)}catch{return!1}}function k(t){try{var e;return t instanceof(null==t||null==(e=t.ownerDocument)||null==(e=e.defaultView)?void 0:e.SVGImageElement)}catch{return!1}}function U(t){try{var e;return t instanceof(null==t||null==(e=t.ownerDocument)||null==(e=e.defaultView)?void 0:e.HTMLVideoElement)}catch{return!1}}function W(t){try{var e;return t instanceof(null==t||null==(e=t.ownerDocument)||null==(e=e.defaultView)?void 0:e.HTMLCanvasElement)}catch{return!1}}function L(t){try{return t instanceof ImageBitmap||"[object ImageBitmap]"===Object.prototype.toString.call(t)}catch{return!1}}function V(t){try{return t instanceof OffscreenCanvas||"[object OffscreenCanvas]"===Object.prototype.toString.call(t)}catch{return!1}}function z(t){try{return t instanceof VideoFrame||"[object VideoFrame]"===Object.prototype.toString.call(t)}catch{return!1}}function G(t){try{return t instanceof Blob||"[object Blob]"===Object.prototype.toString.call(t)}catch{return!1}}function H(t){try{return t instanceof ImageData||"[object ImageData]"===Object.prototype.toString.call(t)}catch{return!1}}function N(t,e){try{let r=new OffscreenCanvas(t,e);if(r.getContext("2d")instanceof OffscreenCanvasRenderingContext2D)return r;throw void 0}catch{let r=document.createElement("canvas");return r.width=t,r.height=e,r}}async function Q(t){if(B(t)&&!await J(t))throw new DOMException("Failed to load or decode HTMLImageElement.","InvalidStateError");if(k(t)&&!await Y(t))throw new DOMException("Failed to load or decode SVGImageElement.","InvalidStateError");if(z(t)&&K(t))throw new DOMException("VideoFrame is closed.","InvalidStateError");if(U(t)&&(0===t.readyState||1===t.readyState))throw new DOMException("Invalid element or state.","InvalidStateError");if(L(t)&&et(t))throw new DOMException("The image source is detached.","InvalidStateError");let{width:e,height:r}=j(t);if(0===e||0===r)return null;let n=N(e,r).getContext("2d");n.drawImage(t,0,0);try{return n.getImageData(0,0,e,r)}catch{throw new DOMException("Source would taint origin.","SecurityError")}}async function q(t){let e;try{e=await createImageBitmap(t)}catch{try{if(!globalThis.Image)return t;{e=new Image;let r="";try{r=URL.createObjectURL(t),e.src=r,await e.decode()}finally{URL.revokeObjectURL(r)}}}catch{throw new DOMException("Failed to load or decode Blob.","InvalidStateError")}}return await Q(e)}function X(t){let{width:e,height:r}=t;if(0===e||0===r)return null;let n=t.getContext("2d");try{return n.getImageData(0,0,e,r)}catch{throw new DOMException("Source would taint origin.","SecurityError")}}async function Z(t){if(G(t))return await q(t);if(H(t)){if(tt(t))throw new DOMException("The image data has been detached.","InvalidStateError");return t}return W(t)||V(t)?X(t):await Q(t)}async function J(t){try{return await t.decode(),!0}catch{return!1}}async function Y(t){try{var e;return await(null==(e=t.decode)?void 0:e.call(t)),!0}catch{return!1}}function K(t){return null===t.format}function tt(t){return 0===t.data.buffer.byteLength}function et(t){return 0===t.width&&0===t.height}function rt(t,e){return nt(t)?new DOMException(`${e}: ${t.message}`,t.name):at(t)?new t.constructor(`${e}: ${t.message}`):Error(`${e}: ${t}`)}function nt(t){return t instanceof DOMException||"[object DOMException]"===Object.prototype.toString.call(t)}function at(t){return t instanceof Error||"[object Error]"===Object.prototype.toString.call(t)}function ot(t,e){if(e.has(t))throw TypeError("Cannot initialize the same private elements twice on an object")}function it(t,e,r){ot(t,e),e.set(t,r)}function st(t,e,r){if("function"==typeof t?t===e:t.has(e))return arguments.length<3?e:r;throw TypeError("Private element is not present on this object")}function lt(t,e,r){return t.set(st(t,e),r),r}function ut(t,e){return t.get(st(t,e))}var ct=new WeakMap,dt=class{constructor(t={}){it(this,ct,void 0);try{var e;let r=null==t||null==(e=t.formats)?void 0:e.filter(t=>"unknown"!==t);if(0===(null==r?void 0:r.length))throw TypeError("Hint option provided, but is empty.");for(let t of null==r?[]:r)if(!M.has(t))throw TypeError(`Failed to read the 'formats' property from 'BarcodeDetectorOptions': The provided value '${t}' is not a valid enum value of type BarcodeFormat.`);lt(ct,this,null==r?[]:r),A({fireImmediately:!0}).catch(()=>{})}catch(t){throw rt(t,"Failed to construct 'BarcodeDetector'")}}static async getSupportedFormats(){return D.filter(t=>"unknown"!==t)}async detect(t){try{let e=await Z(t);if(null===e)return[];let r,n={textMode:"Plain",formats:ut(ct,this).map(t=>M.get(t))};try{r=await x(e,n)}catch(t){throw console.error(t),new DOMException("Barcode detection service unavailable.","NotSupportedError")}return r.map(t=>{let{topLeft:{x:e,y:r},topRight:{x:n,y:a},bottomLeft:{x:o,y:i},bottomRight:{x:s,y:l}}=t.position,u=Math.min(e,n,o,s),c=Math.min(r,a,i,l),d=Math.max(e,n,o,s),f=Math.max(r,a,i,l);return{boundingBox:new DOMRectReadOnly(u,c,d-u,f-c),rawValue:t.text,format:F(t.format),cornerPoints:[{x:e,y:r},{x:n,y:a},{x:s,y:l},{x:o,y:i}]}})}catch(t){throw rt(t,"Failed to execute 'detect' on 'BarcodeDetector'")}}}},4129,[]);
__d(function(g,r,i,a,m,e,d){"use strict";Object.defineProperty(e,'__esModule',{value:!0}),Object.defineProperty(e,"ZXING_CPP_COMMIT",{enumerable:!0,get:function(){return n.s}}),Object.defineProperty(e,"ZXING_WASM_SHA256",{enumerable:!0,get:function(){return n.r}}),Object.defineProperty(e,"ZXING_WASM_VERSION",{enumerable:!0,get:function(){return n.o}}),Object.defineProperty(e,"prepareZXingModule",{enumerable:!0,get:function(){return n.n}}),Object.defineProperty(e,"purgeZXingModule",{enumerable:!0,get:function(){return n.i}}),Object.defineProperty(e,"setZXingModuleOverrides",{enumerable:!0,get:function(){return n.a}});var t,n=r(d[0]);null!=(t=globalThis).BarcodeDetector||(t.BarcodeDetector=n.t)},4130,[4129]);
__d(function(g,r,i,a,m,e,d){"use strict";Object.defineProperty(e,'__esModule',{value:!0}),Object.defineProperty(e,"BarcodeDetector",{enumerable:!0,get:function(){return t.t}}),Object.defineProperty(e,"ZXING_CPP_COMMIT",{enumerable:!0,get:function(){return t.s}}),Object.defineProperty(e,"ZXING_WASM_SHA256",{enumerable:!0,get:function(){return t.r}}),Object.defineProperty(e,"ZXING_WASM_VERSION",{enumerable:!0,get:function(){return t.o}}),Object.defineProperty(e,"prepareZXingModule",{enumerable:!0,get:function(){return t.n}}),Object.defineProperty(e,"purgeZXingModule",{enumerable:!0,get:function(){return t.i}}),Object.defineProperty(e,"setZXingModuleOverrides",{enumerable:!0,get:function(){return t.a}});var t=r(d[0])},4131,[4129]);