(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-d2934c8e"],{2909:function(t,e,r){"use strict";function n(t,e){(null==e||e>t.length)&&(e=t.length);for(var r=0,n=new Array(e);r=r&&parseInt(n[r],10)}function x(){if("object"===("undefined"===typeof window?"undefined":Object(m["a"])(window))){if(y)return;"undefined"!==typeof console&&"function"===typeof console.log&&console.log.apply(console,arguments)}}function O(t,e){g&&console.warn(t+" is deprecated, please use "+e+" instead.")}function S(t){var e={browser:null,version:null};if("undefined"===typeof t||!t.navigator)return e.browser="Not a browser.",e;var r=t.navigator;if(r.mozGetUserMedia)e.browser="firefox",e.version=w(r.userAgent,/Firefox\/(\d+)\./,1);else if(r.webkitGetUserMedia||!1===t.isSecureContext&&t.webkitRTCPeerConnection&&!t.RTCIceGatherer)e.browser="chrome",e.version=w(r.userAgent,/Chrom(e|ium)\/(\d+)\./,2);else if(r.mediaDevices&&r.userAgent.match(/Edge\/(\d+).(\d+)$/))e.browser="edge",e.version=w(r.userAgent,/Edge\/(\d+).(\d+)$/,2);else{if(!t.RTCPeerConnection||!r.userAgent.match(/AppleWebKit\/(\d+)\./))return e.browser="Not a supported browser.",e;e.browser="safari",e.version=w(r.userAgent,/AppleWebKit\/(\d+)\./,1),e.supportsUnifiedPlan=t.RTCRtpTransceiver&&"currentDirection"in t.RTCRtpTransceiver.prototype}return e}function E(t){return"[object Object]"===Object.prototype.toString.call(t)}function j(t){return E(t)?Object.keys(t).reduce((function(e,r){var n=E(t[r]),o=n?j(t[r]):t[r],i=n&&!Object.keys(o).length;return void 0===o||i?e:Object.assign(e,a({},r,o))}),{}):t}var C=x;function T(t){var e=t&&t.navigator;if(e.mediaDevices){var r=S(t),n=function(t){if("object"!==Object(m["a"])(t)||t.mandatory||t.optional)return t;var e={};return Object.keys(t).forEach((function(r){if("require"!==r&&"advanced"!==r&&"mediaSource"!==r){var n="object"===Object(m["a"])(t[r])?t[r]:{ideal:t[r]};void 0!==n.exact&&"number"===typeof n.exact&&(n.min=n.max=n.exact);var o=function(t,e){return t?t+e.charAt(0).toUpperCase()+e.slice(1):"deviceId"===e?"sourceId":e};if(void 0!==n.ideal){e.optional=e.optional||[];var i={};"number"===typeof n.ideal?(i[o("min",r)]=n.ideal,e.optional.push(i),i={},i[o("max",r)]=n.ideal,e.optional.push(i)):(i[o("",r)]=n.ideal,e.optional.push(i))}void 0!==n.exact&&"number"!==typeof n.exact?(e.mandatory=e.mandatory||{},e.mandatory[o("",r)]=n.exact):["min","max"].forEach((function(t){void 0!==n[t]&&(e.mandatory=e.mandatory||{},e.mandatory[o(t,r)]=n[t])}))}})),t.advanced&&(e.optional=(e.optional||[]).concat(t.advanced)),e},o=function(t,o){if(r.version>=61)return o(t);if(t=JSON.parse(JSON.stringify(t)),t&&"object"===Object(m["a"])(t.audio)){var i=function(t,e,r){e in t&&!(r in t)&&(t[r]=t[e],delete t[e])};t=JSON.parse(JSON.stringify(t)),i(t.audio,"autoGainControl","googAutoGainControl"),i(t.audio,"noiseSuppression","googNoiseSuppression"),t.audio=n(t.audio)}if(t&&"object"===Object(m["a"])(t.video)){var a=t.video.facingMode;a=a&&("object"===Object(m["a"])(a)?a:{ideal:a});var c,u=r.version<66;if(a&&("user"===a.exact||"environment"===a.exact||"user"===a.ideal||"environment"===a.ideal)&&(!e.mediaDevices.getSupportedConstraints||!e.mediaDevices.getSupportedConstraints().facingMode||u))if(delete t.video.facingMode,"environment"===a.exact||"environment"===a.ideal?c=["back","rear"]:"user"!==a.exact&&"user"!==a.ideal||(c=["front"]),c)return e.mediaDevices.enumerateDevices().then((function(e){e=e.filter((function(t){return"videoinput"===t.kind}));var r=e.find((function(t){return c.some((function(e){return t.label.toLowerCase().includes(e)}))}));return!r&&e.length&&c.includes("back")&&(r=e[e.length-1]),r&&(t.video.deviceId=a.exact?{exact:r.deviceId}:{ideal:r.deviceId}),t.video=n(t.video),C("chrome: "+JSON.stringify(t)),o(t)}));t.video=n(t.video)}return C("chrome: "+JSON.stringify(t)),o(t)},i=function(t){return r.version>=64?t:{name:{PermissionDeniedError:"NotAllowedError",PermissionDismissedError:"NotAllowedError",InvalidStateError:"NotAllowedError",DevicesNotFoundError:"NotFoundError",ConstraintNotSatisfiedError:"OverconstrainedError",TrackStartError:"NotReadableError",MediaDeviceFailedDueToShutdown:"NotAllowedError",MediaDeviceKillSwitchOn:"NotAllowedError",TabCaptureError:"AbortError",ScreenCaptureError:"AbortError",DeviceCaptureError:"AbortError"}[t.name]||t.name,message:t.message,constraint:t.constraint||t.constraintName,toString:function(){return this.name+(this.message&&": ")+this.message}}},a=function(t,r,n){o(t,(function(t){e.webkitGetUserMedia(t,r,(function(t){n&&n(i(t))}))}))};if(e.getUserMedia=a.bind(e),e.mediaDevices.getUserMedia){var c=e.mediaDevices.getUserMedia.bind(e.mediaDevices);e.mediaDevices.getUserMedia=function(t){return o(t,(function(t){return c(t).then((function(e){if(t.audio&&!e.getAudioTracks().length||t.video&&!e.getVideoTracks().length)throw e.getTracks().forEach((function(t){t.stop()})),new DOMException("","NotFoundError");return e}),(function(t){return Promise.reject(i(t))}))}))}}}}function P(t){var e=t&&t.navigator,r=function(t){return{name:{PermissionDeniedError:"NotAllowedError"}[t.name]||t.name,message:t.message,constraint:t.constraint,toString:function(){return this.name}}},n=e.mediaDevices.getUserMedia.bind(e.mediaDevices);e.mediaDevices.getUserMedia=function(t){return n(t).catch((function(t){return Promise.reject(r(t))}))}}function _(t){var e=S(t),r=t&&t.navigator,n=t&&t.MediaStreamTrack;if(r.getUserMedia=function(t,e,n){O("navigator.getUserMedia","navigator.mediaDevices.getUserMedia"),r.mediaDevices.getUserMedia(t).then(e,n)},!(e.version>55&&"autoGainControl"in r.mediaDevices.getSupportedConstraints())){var o=function(t,e,r){e in t&&!(r in t)&&(t[r]=t[e],delete t[e])},i=r.mediaDevices.getUserMedia.bind(r.mediaDevices);if(r.mediaDevices.getUserMedia=function(t){return"object"===Object(m["a"])(t)&&"object"===Object(m["a"])(t.audio)&&(t=JSON.parse(JSON.stringify(t)),o(t.audio,"autoGainControl","mozAutoGainControl"),o(t.audio,"noiseSuppression","mozNoiseSuppression")),i(t)},n&&n.prototype.getSettings){var a=n.prototype.getSettings;n.prototype.getSettings=function(){var t=a.apply(this,arguments);return o(t,"mozAutoGainControl","autoGainControl"),o(t,"mozNoiseSuppression","noiseSuppression"),t}}if(n&&n.prototype.applyConstraints){var c=n.prototype.applyConstraints;n.prototype.applyConstraints=function(t){return"audio"===this.kind&&"object"===Object(m["a"])(t)&&(t=JSON.parse(JSON.stringify(t)),o(t,"autoGainControl","mozAutoGainControl"),o(t,"noiseSuppression","mozNoiseSuppression")),c.apply(this,[t])}}}}r("a434");function A(t){var e=t&&t.navigator;if(e.mediaDevices&&e.mediaDevices.getUserMedia){var r=e.mediaDevices,n=r.getUserMedia.bind(r);e.mediaDevices.getUserMedia=function(t){return n(R(t))}}!e.getUserMedia&&e.mediaDevices&&e.mediaDevices.getUserMedia&&(e.getUserMedia=function(t,r,n){e.mediaDevices.getUserMedia(t).then(r,n)}.bind(e))}function R(t){return t&&void 0!==t.video?Object.assign({},t,{video:j(t.video)}):t}var $=function(t){var e=!1,r=void 0;return function(){return e||(r=t.apply(void 0,arguments),e=!0),r}},k=$((function(){var t=S(window),e=t.browser;switch(e){case"chrome":T(window);break;case"firefox":_(window);break;case"edge":P(window);break;case"safari":A(window);break;default:throw new v["c"]}})),I=function(){function t(e,r){Object(p["a"])(this,t),this.videoEl=e,this.stream=r}return Object(h["a"])(t,[{key:"stop",value:function(){var t=this;this.videoEl.srcObject=null,this.stream.getTracks().forEach((function(e){t.stream.removeTrack(e),e.stop()}))}},{key:"getCapabilities",value:function(){var t,e,r=this.stream.getVideoTracks(),n=Object(d["a"])(r,1),o=n[0];return null!==(t=null===o||void 0===o||null===(e=o.getCapabilities)||void 0===e?void 0:e.call(o))&&void 0!==t?t:{}}}])}(),D=function(){var t=Object(f["a"])(Object(s["a"])().mark((function t(e){var r,n,o,i;return Object(s["a"])().wrap((function(t){while(1)switch(t.prev=t.next){case 0:return r=["OBS Virtual Camera","OBS-Camera","Desk View Camera","Schreibtischansicht-Kamera","Caméra Desk View","Fotocamera di Panoramica Scrivania","Rückseitige Ultra-Weitwinkelkamera","Rückseitige Telefotokamera","Rückseitige Dual-Weitwinkelkamera","Rückseitige Triple-Kamera","Back Dual Wide Camera","Back Triple Camera","Back Ultra Wide Camera","Zadní ultra širokoúhlý fotoaparát","Stolní kamera"],t.next=3,navigator.mediaDevices.enumerateDevices();case 3:if(n=t.sent.filter((function(t){var e=t.kind;return"videoinput"===e})).filter((function(t){var e=t.label;return!r.includes(e)})).filter((function(t){var e=t.label;return!e.includes("infrared")})),!(n.length>2)){t.next=16;break}o=n[0],i=n[n.length-1],t.t0=e,t.next="auto"===t.t0?10:"rear"===t.t0?11:"front"===t.t0?12:13;break;case 10:return t.abrupt("return",{deviceId:{exact:i.deviceId}});case 11:return t.abrupt("return",{deviceId:{exact:i.deviceId}});case 12:return t.abrupt("return",{deviceId:{exact:o.deviceId}});case 13:return t.abrupt("return",void 0);case 14:t.next=23;break;case 16:t.t1=e,t.next="auto"===t.t1?19:"rear"===t.t1?20:"front"===t.t1?21:22;break;case 19:return t.abrupt("return",{facingMode:{ideal:"environment"}});case 20:return t.abrupt("return",{facingMode:{exact:"environment"}});case 21:return t.abrupt("return",{facingMode:{exact:"user"}});case 22:return t.abrupt("return",void 0);case 23:case"end":return t.stop()}}),t)})));return function(e){return t.apply(this,arguments)}}(),M=function(t,e){return L.apply(this,arguments)};function L(){return L=Object(f["a"])(Object(s["a"])().mark((function t(e,r){var n,o,i,a,c,f,l,p,h;return Object(s["a"])().wrap((function(t){while(1)switch(t.prev=t.next){case 0:if(o=r.camera,i=r.torch,!0===window.isSecureContext){t.next=3;break}throw new v["b"];case 3:if(void 0!==(null===(n=navigator)||void 0===n||null===(n=n.mediaDevices)||void 0===n?void 0:n.getUserMedia)){t.next=5;break}throw new v["c"];case 5:return t.next=7,k();case 7:return t.t0=u,t.t1={width:{min:360,ideal:640,max:1920},height:{min:240,ideal:480,max:1080}},t.next=11,D(o);case 11:return t.t2=t.sent,t.t3=(0,t.t0)(t.t1,t.t2),a={audio:!1,video:t.t3},t.next=16,navigator.mediaDevices.getUserMedia(a);case 16:return c=t.sent,void 0!==e.srcObject?e.srcObject=c:void 0!==e.mozSrcObject?e.mozSrcObject=c:window.URL.createObjectURL?e.src=window.URL.createObjectURL(c):window.webkitURL?e.src=window.webkitURL.createObjectURL(c):e.src=c,t.next=20,Object(b["a"])(e,"loadeddata");case 20:return t.next=22,Object(b["b"])(500);case 22:return i&&(f=c.getVideoTracks(),l=Object(d["a"])(f,1),p=l[0],h=p.getCapabilities(),h.torch?p.applyConstraints({advanced:[{torch:!0}]}):console.warn("device does not support torch capability")),t.abrupt("return",new I(e,c));case 24:case"end":return t.stop()}}),t)}))),L.apply(this,arguments)}var U=r("b3af"),F={name:"qrcode-stream",mixins:[U["a"]],props:{camera:{type:String,default:"auto",validator:function(t){return["auto","rear","front","off"].includes(t)}},torch:{type:Boolean,default:!1},track:{type:Function},formats:{type:Array,default:function(){return["qr_code"]}}},data:function(){return{cameraInstance:null,destroyed:!1}},computed:{shouldStream:function(){return!1===this.destroyed&&"off"!==this.camera},shouldScan:function(){return!0===this.shouldStream&&null!==this.cameraInstance},scanInterval:function(){return void 0===this.track?500:40}},watch:{shouldStream:function(t){if(!t){var e=this.$refs.pauseFrame,r=e.getContext("2d"),n=this.$refs.video;e.width=n.videoWidth,e.height=n.videoHeight,r.drawImage(n,0,0,n.videoWidth,n.videoHeight)}},shouldScan:function(t){t&&(this.clearCanvas(this.$refs.pauseFrame),this.clearCanvas(this.$refs.trackingLayer),this.startScanning())},torch:function(){this.init()},camera:function(){this.init()}},mounted:function(){this.init()},beforeDestroy:function(){this.beforeResetCamera(),this.destroyed=!0},methods:{init:function(){var t=this,e=Object(f["a"])(Object(s["a"])().mark((function e(){var r;return Object(s["a"])().wrap((function(e){while(1)switch(e.prev=e.next){case 0:if(t.beforeResetCamera(),"off"!==t.camera){e.next=6;break}return t.cameraInstance=null,e.abrupt("return",{capabilities:{}});case 6:return e.next=8,M(t.$refs.video,{camera:t.camera,torch:t.torch});case 8:return t.cameraInstance=e.sent,r=t.cameraInstance.getCapabilities(),t.destroyed&&t.cameraInstance.stop(),e.abrupt("return",{capabilities:r});case 12:case"end":return e.stop()}}),e)})))();this.$emit("init",e)},startScanning:function(){var t=this,e=function(e){t.onDetect(Promise.resolve(e))};Object(l["a"])(this.$refs.video,{detectHandler:e,locateHandler:this.onLocate,minDelay:this.scanInterval,formats:this.formats})},beforeResetCamera:function(){null!==this.cameraInstance&&(this.cameraInstance.stop(),this.cameraInstance=null)},onLocate:function(t){var e=this.$refs.trackingLayer,r=this.$refs.video;if(void 0!==e)if(t.length>0&&void 0!==this.track&&void 0!==r){var n=r.offsetWidth,o=r.offsetHeight,i=r.videoWidth,a=r.videoHeight,c=Math.max(n/i,o/a),s=i*c,f=a*c,l=s/i,d=f/a,p=(n-s)/2,h=(o-f)/2,v=function(t){var e=t.x,r=t.y;return{x:Math.floor(e*l),y:Math.floor(r*d)}},b=function(t){var e=t.x,r=t.y;return{x:Math.floor(e+p),y:Math.floor(r+h)}},m=t.map((function(t){var e=t.boundingBox,r=t.cornerPoints,n=b(v({x:e.x,y:e.y})),o=n.x,i=n.y,a=v({x:e.width,y:e.height}),c=a.x,s=a.y;return u(u({},t),{},{cornerPoints:r.map((function(t){return b(v(t))})),boundingBox:DOMRectReadOnly.fromRect({x:o,y:i,width:c,height:s})})}));e.width=r.offsetWidth,e.height=r.offsetHeight;var y=e.getContext("2d");this.track(m,y)}else this.clearCanvas(e)},repaintTrackingLayer:function(t,e,r){var n=this,o=e.getContext("2d");window.requestAnimationFrame((function(){e.width=displayWidth,e.height=displayHeight,n.trackRepaintFunction(coordinatesAdjusted,o)}))},clearCanvas:function(t){var e=t.getContext("2d");e.clearRect(0,0,t.width,t.height)}}},N=F,B=(r("e848"),r("2877")),W=Object(B["a"])(N,n,o,!1,null,"0ee88866",null);e["a"]=W.exports},"0d26":function(t,e,r){"use strict";var n=r("e330"),o=Error,i=n("".replace),a=function(t){return String(new o(t).stack)}("zxcasd"),c=/\n\s*at [^:]*:[^\n]*/,u=c.test(a);t.exports=function(t,e){if(u&&"string"==typeof t&&!o.prepareStackTrace)while(e--)t=i(t,c,"");return t}},"0d51":function(t,e,r){"use strict";var n=String;t.exports=function(t){try{return n(t)}catch(e){return"Object"}}},"0eb6":function(t,e,r){"use strict";var n=r("23e7"),o=r("7c37"),i=r("d066"),a=r("d039"),c=r("7c73"),u=r("5c6c"),s=r("9bf2").f,f=r("cb2d"),l=r("edd0"),d=r("1a2d"),p=r("19aa"),h=r("825a"),v=r("aa1f"),b=r("e391"),m=r("cf98"),y=r("0d26"),g=r("69f3"),w=r("83ab"),x=r("c430"),O="DOMException",S="DATA_CLONE_ERR",E=i("Error"),j=i(O)||function(){try{var t=i("MessageChannel")||o("worker_threads").MessageChannel;(new t).port1.postMessage(new WeakMap)}catch(e){if(e.name===S&&25===e.code)return e.constructor}}(),C=j&&j.prototype,T=E.prototype,P=g.set,_=g.getterFor(O),A="stack"in new E(O),R=function(t){return d(m,t)&&m[t].m?m[t].c:0},$=function(){p(this,k);var t=arguments.length,e=b(t<1?void 0:arguments[0]),r=b(t<2?void 0:arguments[1],"Error"),n=R(r);if(P(this,{type:O,name:r,message:e,code:n}),w||(this.name=r,this.message=e,this.code=n),A){var o=new E(e);o.name=O,s(this,"stack",u(1,y(o.stack,1)))}},k=$.prototype=c(T),I=function(t){return{enumerable:!0,configurable:!0,get:t}},D=function(t){return I((function(){return _(this)[t]}))};w&&(l(k,"code",D("code")),l(k,"message",D("message")),l(k,"name",D("name"))),s(k,"constructor",u(1,$));var M=a((function(){return!(new j instanceof E)})),L=M||a((function(){return T.toString!==v||"2: 1"!==String(new j(1,2))})),U=M||a((function(){return 25!==new j(1,"DataCloneError").code})),F=M||25!==j[S]||25!==C[S],N=x?L||U||F:M;n({global:!0,constructor:!0,forced:N},{DOMException:N?$:j});var B=i(O),W=B.prototype;for(var H in L&&(x||j===B)&&f(W,"toString",v),U&&w&&j===B&&l(W,"code",I((function(){return R(h(this).name)}))),m)if(d(m,H)){var z=m[H],q=z.s,V=u(6,z.c);d(B,q)||s(B,q,V),d(W,q)||s(W,q,V)}},"107c":function(t,e,r){"use strict";var n=r("d039"),o=r("da84"),i=o.RegExp;t.exports=n((function(){var t=i("(?b)","g");return"b"!==t.exec("b").groups.a||"bc"!=="b".replace(t,"$c")}))},"131a":function(t,e,r){"use strict";var n=r("23e7"),o=r("d2bb");n({target:"Object",stat:!0},{setPrototypeOf:o})},"13d2":function(t,e,r){"use strict";var n=r("e330"),o=r("d039"),i=r("1626"),a=r("1a2d"),c=r("83ab"),u=r("5e77").CONFIGURABLE,s=r("8925"),f=r("69f3"),l=f.enforce,d=f.get,p=String,h=Object.defineProperty,v=n("".slice),b=n("".replace),m=n([].join),y=c&&!o((function(){return 8!==h((function(){}),"length",{value:8}).length})),g=String(String).split("String"),w=t.exports=function(t,e,r){"Symbol("===v(p(e),0,7)&&(e="["+b(p(e),/^Symbol\(([^)]*)\).*$/,"$1")+"]"),r&&r.getter&&(e="get "+e),r&&r.setter&&(e="set "+e),(!a(t,"name")||u&&t.name!==e)&&(c?h(t,"name",{value:e,configurable:!0}):t.name=e),y&&r&&a(r,"arity")&&t.length!==r.arity&&h(t,"length",{value:r.arity});try{r&&a(r,"constructor")&&r.constructor?c&&h(t,"prototype",{writable:!1}):t.prototype&&(t.prototype=void 0)}catch(o){}var n=l(t);return a(n,"source")||(n.source=m(g,"string"==typeof e?e:"")),t};Function.prototype.toString=w((function(){return i(this)&&d(this).source||s(this)}),"toString")},"13d5":function(t,e,r){"use strict";var n=r("23e7"),o=r("d58f").left,i=r("a640"),a=r("2d00"),c=r("605d"),u=!c&&a>79&&a<83,s=u||!i("reduce");n({target:"Array",proto:!0,forced:s},{reduce:function(t){var e=arguments.length;return o(this,t,e,e>1?arguments[1]:void 0)}})},"14c3":function(t,e,r){"use strict";var n=r("c65b"),o=r("825a"),i=r("1626"),a=r("c6b6"),c=r("9263"),u=TypeError;t.exports=function(t,e){var r=t.exec;if(i(r)){var s=n(r,t,e);return null!==s&&o(s),s}if("RegExp"===a(t))return n(c,t,e);throw new u("RegExp#exec called on incompatible receiver")}},"14d9":function(t,e,r){"use strict";var n=r("23e7"),o=r("7b0b"),i=r("07fa"),a=r("3a34"),c=r("3511"),u=r("d039"),s=u((function(){return 4294967297!==[].push.call({length:4294967296},1)})),f=function(){try{Object.defineProperty([],"length",{writable:!1}).push()}catch(t){return t instanceof TypeError}},l=s||!f();n({target:"Array",proto:!0,arity:1,forced:l},{push:function(t){var e=o(this),r=i(e),n=arguments.length;c(r+n);for(var u=0;u1?arguments[1]:void 0)}},"19aa":function(t,e,r){"use strict";var n=r("3a9b"),o=TypeError;t.exports=function(t,e){if(n(e,t))return t;throw new o("Incorrect invocation")}},"1a2d":function(t,e,r){"use strict";var n=r("e330"),o=r("7b0b"),i=n({}.hasOwnProperty);t.exports=Object.hasOwn||function(t,e){return i(o(t),e)}},"1be4":function(t,e,r){"use strict";var n=r("d066");t.exports=n("document","documentElement")},"1c7e":function(t,e,r){"use strict";var n=r("b622"),o=n("iterator"),i=!1;try{var a=0,c={next:function(){return{done:!!a++}},return:function(){i=!0}};c[o]=function(){return this},Array.from(c,(function(){throw 2}))}catch(u){}t.exports=function(t,e){try{if(!e&&!i)return!1}catch(u){return!1}var r=!1;try{var n={};n[o]=function(){return{next:function(){return{done:r=!0}}}},t(n)}catch(u){}return r}},"1cc0":function(t,e,r){"use strict";r.d(e,"a",(function(){return b})),r.d(e,"c",(function(){return m})),r.d(e,"b",(function(){return y}));var n=r("bee2"),o=r("d4ec");r("4ae1"),r("3410"),r("1f68"),r("131a");function i(t){return i=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t)},i(t)}function a(){try{var t=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(t){}return(a=function(){return!!t})()}r("d9e2");var c=r("53ca");function u(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}function s(t,e){if(e&&("object"===Object(c["a"])(e)||"function"===typeof e))return e;if(void 0!==e)throw new TypeError("Derived constructors may only return object or undefined");return u(t)}function f(t,e,r){return e=i(e),s(t,a()?Reflect.construct(e,r||[],i(t).constructor):e.apply(t,r))}function l(t,e){return l=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,e){return t.__proto__=e,t},l(t,e)}function d(t,e){if("function"!==typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),Object.defineProperty(t,"prototype",{writable:!1}),e&&l(t,e)}r("e260"),r("4ec9"),r("d3b7"),r("3ca3"),r("ddb0"),r("25f0");function p(t){try{return-1!==Function.toString.call(t).indexOf("[native code]")}catch(e){return"function"===typeof t}}r("14d9");function h(t,e,r){if(a())return Reflect.construct.apply(null,arguments);var n=[null];n.push.apply(n,e);var o=new(t.bind.apply(t,n));return r&&l(o,r.prototype),o}function v(t){var e="function"===typeof Map?new Map:void 0;return v=function(t){if(null===t||!p(t))return t;if("function"!==typeof t)throw new TypeError("Super expression must either be null or a function");if("undefined"!==typeof e){if(e.has(t))return e.get(t);e.set(t,r)}function r(){return h(t,arguments,i(this).constructor)}return r.prototype=Object.create(t.prototype,{constructor:{value:r,enumerable:!1,writable:!0,configurable:!0}}),l(r,t)},v(t)}r("b0c0");var b=function(t){function e(){var t;return Object(o["a"])(this,e),t=f(this,e,["can't process cross-origin image"]),t.name="DropImageFetchError",t}return d(e,t),Object(n["a"])(e)}(v(Error)),m=function(t){function e(){var t;return Object(o["a"])(this,e),t=f(this,e,["this browser has no Stream API support"]),t.name="StreamApiNotSupportedError",t}return d(e,t),Object(n["a"])(e)}(v(Error)),y=function(t){function e(){var t;return Object(o["a"])(this,e),t=f(this,e,["camera access is only permitted in secure context. Use HTTPS or localhost rather than HTTP."]),t.name="InsecureContextError",t}return d(e,t),Object(n["a"])(e)}(v(Error))},"1cdc":function(t,e,r){"use strict";var n=r("342f");t.exports=/(?:ipad|iphone|ipod).*applewebkit/i.test(n)},"1d80":function(t,e,r){"use strict";var n=r("7234"),o=TypeError;t.exports=function(t){if(n(t))throw new o("Can't call method on "+t);return t}},"1da1":function(t,e,r){"use strict";r.d(e,"a",(function(){return o}));r("d3b7"),r("e6cf");function n(t,e,r,n,o,i,a){try{var c=t[i](a),u=c.value}catch(s){return void r(s)}c.done?e(u):Promise.resolve(u).then(n,o)}function o(t){return function(){var e=this,r=arguments;return new Promise((function(o,i){var a=t.apply(e,r);function c(t){n(a,o,i,c,u,"next",t)}function u(t){n(a,o,i,c,u,"throw",t)}c(void 0)}))}}},"1dde":function(t,e,r){"use strict";var n=r("d039"),o=r("b622"),i=r("2d00"),a=o("species");t.exports=function(t){return i>=51||!n((function(){var e=[],r=e.constructor={};return r[a]=function(){return{foo:1}},1!==e[t](Boolean).foo}))}},"1f68":function(t,e,r){"use strict";var n=r("83ab"),o=r("edd0"),i=r("861d"),a=r("1787"),c=r("7b0b"),u=r("1d80"),s=Object.getPrototypeOf,f=Object.setPrototypeOf,l=Object.prototype,d="__proto__";if(n&&s&&f&&!(d in l))try{o(l,d,{configurable:!0,get:function(){return s(c(this))},set:function(t){var e=u(this);a(t)&&i(e)&&f(e,t)}})}catch(p){}},2266:function(t,e,r){"use strict";var n=r("0366"),o=r("c65b"),i=r("825a"),a=r("0d51"),c=r("e95a"),u=r("07fa"),s=r("3a9b"),f=r("9a1f"),l=r("35a1"),d=r("2a62"),p=TypeError,h=function(t,e){this.stopped=t,this.result=e},v=h.prototype;t.exports=function(t,e,r){var b,m,y,g,w,x,O,S=r&&r.that,E=!(!r||!r.AS_ENTRIES),j=!(!r||!r.IS_RECORD),C=!(!r||!r.IS_ITERATOR),T=!(!r||!r.INTERRUPTED),P=n(e,S),_=function(t){return b&&d(b,"normal",t),new h(!0,t)},A=function(t){return E?(i(t),T?P(t[0],t[1],_):P(t[0],t[1])):T?P(t,_):P(t)};if(j)b=t.iterator;else if(C)b=t;else{if(m=l(t),!m)throw new p(a(t)+" is not iterable");if(c(m)){for(y=0,g=u(t);g>y;y++)if(w=A(t[y]),w&&s(v,w))return w;return new h(!1)}b=f(t,m)}x=j?t.next:b.next;while(!(O=o(x,b)).done){try{w=A(O.value)}catch(R){d(b,"throw",R)}if("object"==typeof w&&w&&s(v,w))return w}return new h(!1)}},"23cb":function(t,e,r){"use strict";var n=r("5926"),o=Math.max,i=Math.min;t.exports=function(t,e){var r=n(t);return r<0?o(r+e,0):i(r,e)}},"23dc":function(t,e,r){"use strict";var n=r("d44e");n(Math,"Math",!0)},"23e7":function(t,e,r){"use strict";var n=r("da84"),o=r("06cf").f,i=r("9112"),a=r("cb2d"),c=r("6374"),u=r("e893"),s=r("94ca");t.exports=function(t,e){var r,f,l,d,p,h,v=t.target,b=t.global,m=t.stat;if(f=b?n:m?n[v]||c(v,{}):n[v]&&n[v].prototype,f)for(l in e){if(p=e[l],t.dontCallGetSet?(h=o(f,l),d=h&&h.value):d=f[l],r=s(b?l:v+(m?".":"#")+l,t.forced),!r&&void 0!==d){if(typeof p==typeof d)continue;u(p,d)}(t.sham||d&&d.sham)&&i(p,"sham",!0),a(f,l,p,t)}}},"241c":function(t,e,r){"use strict";var n=r("ca84"),o=r("7839"),i=o.concat("length","prototype");e.f=Object.getOwnPropertyNames||function(t){return n(t,i)}},"24fb":function(t,e,r){"use strict";function n(t,e){var r=t[1]||"",n=t[3];if(!n)return r;if(e&&"function"===typeof btoa){var i=o(n),a=n.sources.map((function(t){return"/*# sourceURL=".concat(n.sourceRoot||"").concat(t," */")}));return[r].concat(a).concat([i]).join("\n")}return[r].join("\n")}function o(t){var e=btoa(unescape(encodeURIComponent(JSON.stringify(t)))),r="sourceMappingURL=data:application/json;charset=utf-8;base64,".concat(e);return"/*# ".concat(r," */")}t.exports=function(t){var e=[];return e.toString=function(){return this.map((function(e){var r=n(e,t);return e[2]?"@media ".concat(e[2]," {").concat(r,"}"):r})).join("")},e.i=function(t,r,n){"string"===typeof t&&(t=[[null,t,""]]);var o={};if(n)for(var i=0;i1?arguments[1]:void 0)}})},"25f0":function(t,e,r){"use strict";var n=r("5e77").PROPER,o=r("cb2d"),i=r("825a"),a=r("577e"),c=r("d039"),u=r("90d8"),s="toString",f=RegExp.prototype,l=f[s],d=c((function(){return"/a/b"!==l.call({source:"a",flags:"b"})})),p=n&&l.name!==s;(d||p)&&o(f,s,(function(){var t=i(this),e=a(t.source),r=a(u(t));return"/"+e+"/"+r}),{unsafe:!0})},2626:function(t,e,r){"use strict";var n=r("d066"),o=r("edd0"),i=r("b622"),a=r("83ab"),c=i("species");t.exports=function(t){var e=n(t);a&&e&&!e[c]&&o(e,c,{configurable:!0,get:function(){return this}})}},"271a":function(t,e,r){"use strict";var n=r("cb2d"),o=r("e330"),i=r("577e"),a=r("d6d6"),c=URLSearchParams,u=c.prototype,s=o(u.getAll),f=o(u.has),l=new c("a=1");!l.has("a",2)&&l.has("a",void 0)||n(u,"has",(function(t){var e=arguments.length,r=e<2?void 0:arguments[1];if(e&&void 0===r)return f(this,t);var n=s(this,t);a(e,1);var o=i(r),c=0;while(c1?arguments[1]:void 0,e.length)),n=c(t);return d(e,r,r+n.length)===n}})},"2cf4":function(t,e,r){"use strict";var n,o,i,a,c=r("da84"),u=r("2ba4"),s=r("0366"),f=r("1626"),l=r("1a2d"),d=r("d039"),p=r("1be4"),h=r("f36a"),v=r("cc12"),b=r("d6d6"),m=r("1cdc"),y=r("605d"),g=c.setImmediate,w=c.clearImmediate,x=c.process,O=c.Dispatch,S=c.Function,E=c.MessageChannel,j=c.String,C=0,T={},P="onreadystatechange";d((function(){n=c.location}));var _=function(t){if(l(T,t)){var e=T[t];delete T[t],e()}},A=function(t){return function(){_(t)}},R=function(t){_(t.data)},$=function(t){c.postMessage(j(t),n.protocol+"//"+n.host)};g&&w||(g=function(t){b(arguments.length,1);var e=f(t)?t:S(t),r=h(arguments,1);return T[++C]=function(){u(e,void 0,r)},o(C),C},w=function(t){delete T[t]},y?o=function(t){x.nextTick(A(t))}:O&&O.now?o=function(t){O.now(A(t))}:E&&!m?(i=new E,a=i.port2,i.port1.onmessage=R,o=s(a.postMessage,a)):c.addEventListener&&f(c.postMessage)&&!c.importScripts&&n&&"file:"!==n.protocol&&!d($)?(o=$,c.addEventListener("message",R,!1)):o=P in v("script")?function(t){p.appendChild(v("script"))[P]=function(){p.removeChild(this),_(t)}}:function(t){setTimeout(A(t),0)}),t.exports={set:g,clear:w}},"2d00":function(t,e,r){"use strict";var n,o,i=r("da84"),a=r("342f"),c=i.process,u=i.Deno,s=c&&c.versions||u&&u.version,f=s&&s.v8;f&&(n=f.split("."),o=n[0]>0&&n[0]<4?1:+(n[0]+n[1])),!o&&a&&(n=a.match(/Edge\/(\d+)/),(!n||n[1]>=74)&&(n=a.match(/Chrome\/(\d+)/),n&&(o=+n[1]))),t.exports=o},3410:function(t,e,r){"use strict";var n=r("23e7"),o=r("d039"),i=r("7b0b"),a=r("e163"),c=r("e177"),u=o((function(){a(1)}));n({target:"Object",stat:!0,forced:u,sham:!c},{getPrototypeOf:function(t){return a(i(t))}})},"342f":function(t,e,r){"use strict";t.exports="undefined"!=typeof navigator&&String(navigator.userAgent)||""},3511:function(t,e,r){"use strict";var n=TypeError,o=9007199254740991;t.exports=function(t){if(t>o)throw n("Maximum allowed index exceeded");return t}},3529:function(t,e,r){"use strict";var n=r("23e7"),o=r("c65b"),i=r("59ed"),a=r("f069"),c=r("e667"),u=r("2266"),s=r("5eed");n({target:"Promise",stat:!0,forced:s},{race:function(t){var e=this,r=a.f(e),n=r.reject,s=c((function(){var a=i(e.resolve);u(t,(function(t){o(a,e,t).then(r.resolve,n)}))}));return s.error&&n(s.value),r.promise}})},"35a1":function(t,e,r){"use strict";var n=r("f5df"),o=r("dc4a"),i=r("7234"),a=r("3f8c"),c=r("b622"),u=c("iterator");t.exports=function(t){if(!i(t))return o(t,u)||o(t,"@@iterator")||a[n(t)]}},"37e8":function(t,e,r){"use strict";var n=r("83ab"),o=r("aed9"),i=r("9bf2"),a=r("825a"),c=r("fc6a"),u=r("df75");e.f=n&&!o?Object.defineProperties:function(t,e){a(t);var r,n=c(e),o=u(e),s=o.length,f=0;while(s>f)i.f(t,r=o[f++],n[r]);return t}},3835:function(t,e,r){"use strict";function n(t){if(Array.isArray(t))return t}r.d(e,"a",(function(){return c}));r("a4d3"),r("e01a"),r("d28b"),r("e260"),r("14d9"),r("d3b7"),r("3ca3"),r("ddb0");function o(t,e){var r=null==t?null:"undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(null!=r){var n,o,i,a,c=[],u=!0,s=!1;try{if(i=(r=r.call(t)).next,0===e){if(Object(r)!==r)return;u=!1}else for(;!(u=(n=i.call(r)).done)&&(c.push(n.value),c.length!==e);u=!0);}catch(t){s=!0,o=t}finally{try{if(!u&&null!=r["return"]&&(a=r["return"](),Object(a)!==a))return}finally{if(s)throw o}}return c}}var i=r("06c5");r("d9e2");function a(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}function c(t,e){return n(t)||o(t,e)||Object(i["a"])(t,e)||a()}},"3a34":function(t,e,r){"use strict";var n=r("83ab"),o=r("e8b5"),i=TypeError,a=Object.getOwnPropertyDescriptor,c=n&&!function(){if(void 0!==this)return!0;try{Object.defineProperty([],"length",{writable:!1}).length=1}catch(t){return t instanceof TypeError}}();t.exports=c?function(t,e){if(o(t)&&!a(t,"length").writable)throw new i("Cannot set read only .length");return t.length=e}:function(t,e){return t.length=e}},"3a9b":function(t,e,r){"use strict";var n=r("e330");t.exports=n({}.isPrototypeOf)},"3bbe":function(t,e,r){"use strict";var n=r("1787"),o=String,i=TypeError;t.exports=function(t){if(n(t))return t;throw new i("Can't set "+o(t)+" as a prototype")}},"3ca3":function(t,e,r){"use strict";var n=r("6547").charAt,o=r("577e"),i=r("69f3"),a=r("c6d2"),c=r("4754"),u="String Iterator",s=i.set,f=i.getterFor(u);a(String,"String",(function(t){s(this,{type:u,string:o(t),index:0})}),(function(){var t,e=f(this),r=e.string,o=e.index;return o>=r.length?c(void 0,!0):(t=n(r,o),e.index+=t.length,c(t,!1))}))},"3f8c":function(t,e,r){"use strict";t.exports={}},4002:function(t,e,r){"use strict";r("3ca3");var n,o=r("23e7"),i=r("83ab"),a=r("f354"),c=r("da84"),u=r("0366"),s=r("e330"),f=r("cb2d"),l=r("edd0"),d=r("19aa"),p=r("1a2d"),h=r("60da"),v=r("4df4"),b=r("f36a"),m=r("6547").codeAt,y=r("5fb2"),g=r("577e"),w=r("d44e"),x=r("d6d6"),O=r("5352"),S=r("69f3"),E=S.set,j=S.getterFor("URL"),C=O.URLSearchParams,T=O.getState,P=c.URL,_=c.TypeError,A=c.parseInt,R=Math.floor,$=Math.pow,k=s("".charAt),I=s(/./.exec),D=s([].join),M=s(1..toString),L=s([].pop),U=s([].push),F=s("".replace),N=s([].shift),B=s("".split),W=s("".slice),H=s("".toLowerCase),z=s([].unshift),q="Invalid authority",V="Invalid scheme",G="Invalid host",Y="Invalid port",J=/[a-z]/i,Q=/[\d+-.a-z]/i,X=/\d/,K=/^0x/i,Z=/^[0-7]+$/,tt=/^\d+$/,et=/^[\da-f]+$/i,rt=/[\0\t\n\r #%/:<>?@[\\\]^|]/,nt=/[\0\t\n\r #/:<>?@[\\\]^|]/,ot=/^[\u0000-\u0020]+/,it=/(^|[^\u0000-\u0020])[\u0000-\u0020]+$/,at=/[\t\n\r]/g,ct=function(t){var e,r,n,o,i,a,c,u=B(t,".");if(u.length&&""===u[u.length-1]&&u.length--,e=u.length,e>4)return t;for(r=[],n=0;n1&&"0"===k(o,0)&&(i=I(K,o)?16:8,o=W(o,8===i?1:2)),""===o)a=0;else{if(!I(10===i?tt:8===i?Z:et,o))return t;a=A(o,i)}U(r,a)}for(n=0;n=$(256,5-e))return null}else if(a>255)return null;for(c=L(r),n=0;n6)return;n=0;while(d()){if(o=null,n>0){if(!("."===d()&&n<4))return;l++}if(!I(X,d()))return;while(I(X,d())){if(i=A(d(),10),null===o)o=i;else{if(0===o)return;o=10*o+i}if(o>255)return;l++}u[s]=256*u[s]+o,n++,2!==n&&4!==n||s++}if(4!==n)return;break}if(":"===d()){if(l++,!d())return}else if(d())return;u[s++]=e}else{if(null!==f)return;l++,s++,f=s}}if(null!==f){a=s-f,s=7;while(0!==s&&a>0)c=u[s],u[s--]=u[f+a-1],u[f+--a]=c}else if(8!==s)return;return u},st=function(t){for(var e=null,r=1,n=null,o=0,i=0;i<8;i++)0!==t[i]?(o>r&&(e=n,r=o),n=null,o=0):(null===n&&(n=i),++o);return o>r&&(e=n,r=o),e},ft=function(t){var e,r,n,o;if("number"==typeof t){for(e=[],r=0;r<4;r++)z(e,t%256),t=R(t/256);return D(e,".")}if("object"==typeof t){for(e="",n=st(t),r=0;r<8;r++)o&&0===t[r]||(o&&(o=!1),n===r?(e+=r?":":"::",o=!0):(e+=M(t[r],16),r<7&&(e+=":")));return"["+e+"]"}return t},lt={},dt=h({},lt,{" ":1,'"':1,"<":1,">":1,"`":1}),pt=h({},dt,{"#":1,"?":1,"{":1,"}":1}),ht=h({},pt,{"/":1,":":1,";":1,"=":1,"@":1,"[":1,"\\":1,"]":1,"^":1,"|":1}),vt=function(t,e){var r=m(t,0);return r>32&&r<127&&!p(e,t)?t:encodeURIComponent(t)},bt={ftp:21,file:null,http:80,https:443,ws:80,wss:443},mt=function(t,e){var r;return 2===t.length&&I(J,k(t,0))&&(":"===(r=k(t,1))||!e&&"|"===r)},yt=function(t){var e;return t.length>1&&mt(W(t,0,2))&&(2===t.length||"/"===(e=k(t,2))||"\\"===e||"?"===e||"#"===e)},gt=function(t){return"."===t||"%2e"===H(t)},wt=function(t){return t=H(t),".."===t||"%2e."===t||".%2e"===t||"%2e%2e"===t},xt={},Ot={},St={},Et={},jt={},Ct={},Tt={},Pt={},_t={},At={},Rt={},$t={},kt={},It={},Dt={},Mt={},Lt={},Ut={},Ft={},Nt={},Bt={},Wt=function(t,e,r){var n,o,i,a=g(t);if(e){if(o=this.parse(a),o)throw new _(o);this.searchParams=null}else{if(void 0!==r&&(n=new Wt(r,!0)),o=this.parse(a,null,n),o)throw new _(o);i=T(new C),i.bindURL(this),this.searchParams=i}};Wt.prototype={type:"URL",parse:function(t,e,r){var o,i,a,c,u=this,s=e||xt,f=0,l="",d=!1,h=!1,m=!1;t=g(t),e||(u.scheme="",u.username="",u.password="",u.host=null,u.port=null,u.path=[],u.query=null,u.fragment=null,u.cannotBeABaseURL=!1,t=F(t,ot,""),t=F(t,it,"$1")),t=F(t,at,""),o=v(t);while(f<=o.length){switch(i=o[f],s){case xt:if(!i||!I(J,i)){if(e)return V;s=St;continue}l+=H(i),s=Ot;break;case Ot:if(i&&(I(Q,i)||"+"===i||"-"===i||"."===i))l+=H(i);else{if(":"!==i){if(e)return V;l="",s=St,f=0;continue}if(e&&(u.isSpecial()!==p(bt,l)||"file"===l&&(u.includesCredentials()||null!==u.port)||"file"===u.scheme&&!u.host))return;if(u.scheme=l,e)return void(u.isSpecial()&&bt[u.scheme]===u.port&&(u.port=null));l="","file"===u.scheme?s=It:u.isSpecial()&&r&&r.scheme===u.scheme?s=Et:u.isSpecial()?s=Pt:"/"===o[f+1]?(s=jt,f++):(u.cannotBeABaseURL=!0,U(u.path,""),s=Ft)}break;case St:if(!r||r.cannotBeABaseURL&&"#"!==i)return V;if(r.cannotBeABaseURL&&"#"===i){u.scheme=r.scheme,u.path=b(r.path),u.query=r.query,u.fragment="",u.cannotBeABaseURL=!0,s=Bt;break}s="file"===r.scheme?It:Ct;continue;case Et:if("/"!==i||"/"!==o[f+1]){s=Ct;continue}s=_t,f++;break;case jt:if("/"===i){s=At;break}s=Ut;continue;case Ct:if(u.scheme=r.scheme,i===n)u.username=r.username,u.password=r.password,u.host=r.host,u.port=r.port,u.path=b(r.path),u.query=r.query;else if("/"===i||"\\"===i&&u.isSpecial())s=Tt;else if("?"===i)u.username=r.username,u.password=r.password,u.host=r.host,u.port=r.port,u.path=b(r.path),u.query="",s=Nt;else{if("#"!==i){u.username=r.username,u.password=r.password,u.host=r.host,u.port=r.port,u.path=b(r.path),u.path.length--,s=Ut;continue}u.username=r.username,u.password=r.password,u.host=r.host,u.port=r.port,u.path=b(r.path),u.query=r.query,u.fragment="",s=Bt}break;case Tt:if(!u.isSpecial()||"/"!==i&&"\\"!==i){if("/"!==i){u.username=r.username,u.password=r.password,u.host=r.host,u.port=r.port,s=Ut;continue}s=At}else s=_t;break;case Pt:if(s=_t,"/"!==i||"/"!==k(l,f+1))continue;f++;break;case _t:if("/"!==i&&"\\"!==i){s=At;continue}break;case At:if("@"===i){d&&(l="%40"+l),d=!0,a=v(l);for(var y=0;y65535)return Y;u.port=u.isSpecial()&&O===bt[u.scheme]?null:O,l=""}if(e)return;s=Lt;continue}return Y}l+=i;break;case It:if(u.scheme="file","/"===i||"\\"===i)s=Dt;else{if(!r||"file"!==r.scheme){s=Ut;continue}switch(i){case n:u.host=r.host,u.path=b(r.path),u.query=r.query;break;case"?":u.host=r.host,u.path=b(r.path),u.query="",s=Nt;break;case"#":u.host=r.host,u.path=b(r.path),u.query=r.query,u.fragment="",s=Bt;break;default:yt(D(b(o,f),""))||(u.host=r.host,u.path=b(r.path),u.shortenPath()),s=Ut;continue}}break;case Dt:if("/"===i||"\\"===i){s=Mt;break}r&&"file"===r.scheme&&!yt(D(b(o,f),""))&&(mt(r.path[0],!0)?U(u.path,r.path[0]):u.host=r.host),s=Ut;continue;case Mt:if(i===n||"/"===i||"\\"===i||"?"===i||"#"===i){if(!e&&mt(l))s=Ut;else if(""===l){if(u.host="",e)return;s=Lt}else{if(c=u.parseHost(l),c)return c;if("localhost"===u.host&&(u.host=""),e)return;l="",s=Lt}continue}l+=i;break;case Lt:if(u.isSpecial()){if(s=Ut,"/"!==i&&"\\"!==i)continue}else if(e||"?"!==i)if(e||"#"!==i){if(i!==n&&(s=Ut,"/"!==i))continue}else u.fragment="",s=Bt;else u.query="",s=Nt;break;case Ut:if(i===n||"/"===i||"\\"===i&&u.isSpecial()||!e&&("?"===i||"#"===i)){if(wt(l)?(u.shortenPath(),"/"===i||"\\"===i&&u.isSpecial()||U(u.path,"")):gt(l)?"/"===i||"\\"===i&&u.isSpecial()||U(u.path,""):("file"===u.scheme&&!u.path.length&&mt(l)&&(u.host&&(u.host=""),l=k(l,0)+":"),U(u.path,l)),l="","file"===u.scheme&&(i===n||"?"===i||"#"===i))while(u.path.length>1&&""===u.path[0])N(u.path);"?"===i?(u.query="",s=Nt):"#"===i&&(u.fragment="",s=Bt)}else l+=vt(i,pt);break;case Ft:"?"===i?(u.query="",s=Nt):"#"===i?(u.fragment="",s=Bt):i!==n&&(u.path[0]+=vt(i,lt));break;case Nt:e||"#"!==i?i!==n&&("'"===i&&u.isSpecial()?u.query+="%27":u.query+="#"===i?"%23":vt(i,lt)):(u.fragment="",s=Bt);break;case Bt:i!==n&&(u.fragment+=vt(i,dt));break}f++}},parseHost:function(t){var e,r,n;if("["===k(t,0)){if("]"!==k(t,t.length-1))return G;if(e=ut(W(t,1,-1)),!e)return G;this.host=e}else if(this.isSpecial()){if(t=y(t),I(rt,t))return G;if(e=ct(t),null===e)return G;this.host=e}else{if(I(nt,t))return G;for(e="",r=v(t),n=0;n1?arguments[1]:void 0,n=E(e,new Wt(t,!1,r));i||(e.href=n.serialize(),e.origin=n.getOrigin(),e.protocol=n.getProtocol(),e.username=n.getUsername(),e.password=n.getPassword(),e.host=n.getHost(),e.hostname=n.getHostname(),e.port=n.getPort(),e.pathname=n.getPathname(),e.search=n.getSearch(),e.searchParams=n.getSearchParams(),e.hash=n.getHash())},zt=Ht.prototype,qt=function(t,e){return{get:function(){return j(this)[t]()},set:e&&function(t){return j(this)[e](t)},configurable:!0,enumerable:!0}};if(i&&(l(zt,"href",qt("serialize","setHref")),l(zt,"origin",qt("getOrigin")),l(zt,"protocol",qt("getProtocol","setProtocol")),l(zt,"username",qt("getUsername","setUsername")),l(zt,"password",qt("getPassword","setPassword")),l(zt,"host",qt("getHost","setHost")),l(zt,"hostname",qt("getHostname","setHostname")),l(zt,"port",qt("getPort","setPort")),l(zt,"pathname",qt("getPathname","setPathname")),l(zt,"search",qt("getSearch","setSearch")),l(zt,"searchParams",qt("getSearchParams")),l(zt,"hash",qt("getHash","setHash"))),f(zt,"toJSON",(function(){return j(this).serialize()}),{enumerable:!0}),f(zt,"toString",(function(){return j(this).serialize()}),{enumerable:!0}),P){var Vt=P.createObjectURL,Gt=P.revokeObjectURL;Vt&&f(Ht,"createObjectURL",u(Vt,P)),Gt&&f(Ht,"revokeObjectURL",u(Gt,P))}w(Ht,"URL"),o({global:!0,constructor:!0,forced:!a,sham:!i},{URL:Ht})},"408a":function(t,e,r){"use strict";var n=r("e330");t.exports=n(1..valueOf)},"40d5":function(t,e,r){"use strict";var n=r("d039");t.exports=!n((function(){var t=function(){}.bind();return"function"!=typeof t||t.hasOwnProperty("prototype")}))},"428f":function(t,e,r){"use strict";var n=r("da84");t.exports=n},4362:function(t,e,r){e.nextTick=function(t){var e=Array.prototype.slice.call(arguments);e.shift(),setTimeout((function(){t.apply(null,e)}),0)},e.platform=e.arch=e.execPath=e.title="browser",e.pid=1,e.browser=!0,e.env={},e.argv=[],e.binding=function(t){throw new Error("No such module. (Possibly not yet loaded)")},function(){var t,n="/";e.cwd=function(){return n},e.chdir=function(e){t||(t=r("df7c")),n=t.resolve(e,n)}}(),e.exit=e.kill=e.umask=e.dlopen=e.uptime=e.memoryUsage=e.uvCounters=function(){},e.features={}},"44ad":function(t,e,r){"use strict";var n=r("e330"),o=r("d039"),i=r("c6b6"),a=Object,c=n("".split);t.exports=o((function(){return!a("z").propertyIsEnumerable(0)}))?function(t){return"String"===i(t)?c(t,""):a(t)}:a},"44d2":function(t,e,r){"use strict";var n=r("b622"),o=r("7c73"),i=r("9bf2").f,a=n("unscopables"),c=Array.prototype;void 0===c[a]&&i(c,a,{configurable:!0,value:o(null)}),t.exports=function(t){c[a][t]=!0}},"44de":function(t,e,r){"use strict";t.exports=function(t,e){try{1===arguments.length?console.error(t):console.error(t,e)}catch(r){}}},"44e7":function(t,e,r){"use strict";var n=r("861d"),o=r("c6b6"),i=r("b622"),a=i("match");t.exports=function(t){var e;return n(t)&&(void 0!==(e=t[a])?!!e:"RegExp"===o(t))}},4625:function(t,e,r){"use strict";var n=r("c6b6"),o=r("e330");t.exports=function(t){if("Function"===n(t))return o(t)}},"466d":function(t,e,r){"use strict";var n=r("c65b"),o=r("d784"),i=r("825a"),a=r("7234"),c=r("50c4"),u=r("577e"),s=r("1d80"),f=r("dc4a"),l=r("8aa5"),d=r("14c3");o("match",(function(t,e,r){return[function(e){var r=s(this),o=a(e)?void 0:f(e,t);return o?n(o,e,r):new RegExp(e)[t](u(r))},function(t){var n=i(this),o=u(t),a=r(e,n,o);if(a.done)return a.value;if(!n.global)return d(n,o);var s=n.unicode;n.lastIndex=0;var f,p=[],h=0;while(null!==(f=d(n,o))){var v=u(f[0]);p[h]=v,""===v&&(n.lastIndex=l(o,c(n.lastIndex),s)),h++}return 0===h?null:p}]}))},4738:function(t,e,r){"use strict";var n=r("da84"),o=r("d256"),i=r("1626"),a=r("94ca"),c=r("8925"),u=r("b622"),s=r("6069"),f=r("6c59"),l=r("c430"),d=r("2d00"),p=o&&o.prototype,h=u("species"),v=!1,b=i(n.PromiseRejectionEvent),m=a("Promise",(function(){var t=c(o),e=t!==String(o);if(!e&&66===d)return!0;if(l&&(!p["catch"]||!p["finally"]))return!0;if(!d||d<51||!/native code/.test(t)){var r=new o((function(t){t(1)})),n=function(t){t((function(){}),(function(){}))},i=r.constructor={};if(i[h]=n,v=r.then((function(){}))instanceof n,!v)return!0}return!e&&(s||f)&&!b}));t.exports={CONSTRUCTOR:m,REJECTION_EVENT:b,SUBCLASSING:v}},4754:function(t,e,r){"use strict";t.exports=function(t,e){return{value:t,done:e}}},4840:function(t,e,r){"use strict";var n=r("825a"),o=r("5087"),i=r("7234"),a=r("b622"),c=a("species");t.exports=function(t,e){var r,a=n(t).constructor;return void 0===a||i(r=n(a)[c])?e:o(r)}},"485a":function(t,e,r){"use strict";var n=r("c65b"),o=r("1626"),i=r("861d"),a=TypeError;t.exports=function(t,e){var r,c;if("string"===e&&o(r=t.toString)&&!i(c=n(r,t)))return c;if(o(r=t.valueOf)&&!i(c=n(r,t)))return c;if("string"!==e&&o(r=t.toString)&&!i(c=n(r,t)))return c;throw new a("Can't convert object to primitive value")}},"499e":function(t,e,r){"use strict";function n(t,e){for(var r=[],n={},o=0;or.parts.length&&(n.parts.length=r.parts.length)}else{var a=[];for(o=0;of)if(s=c[f++],s!==s)return!0}else for(;u>f;f++)if((t||f in c)&&c[f]===r)return t||f||0;return!t&&-1}};t.exports={includes:a(!0),indexOf:a(!1)}},"4de4":function(t,e,r){"use strict";var n=r("23e7"),o=r("b727").filter,i=r("1dde"),a=i("filter");n({target:"Array",proto:!0,forced:!a},{filter:function(t){return o(this,t,arguments.length>1?arguments[1]:void 0)}})},"4df4":function(t,e,r){"use strict";var n=r("0366"),o=r("c65b"),i=r("7b0b"),a=r("9bdd"),c=r("e95a"),u=r("68ee"),s=r("07fa"),f=r("8418"),l=r("9a1f"),d=r("35a1"),p=Array;t.exports=function(t){var e=i(t),r=u(this),h=arguments.length,v=h>1?arguments[1]:void 0,b=void 0!==v;b&&(v=n(v,h>2?arguments[2]:void 0));var m,y,g,w,x,O,S=d(e),E=0;if(!S||this===p&&c(S))for(m=s(e),y=r?new this(m):p(m);m>E;E++)O=b?v(e[E],E):e[E],f(y,E,O);else for(y=r?new this:[],w=l(e,S),x=w.next;!(g=o(x,w)).done;E++)O=b?a(w,v,[g.value,E],!0):g.value,f(y,E,O);return y.length=E,y}},"4ec9":function(t,e,r){"use strict";r("6f48")},"4fad":function(t,e,r){"use strict";var n=r("d039"),o=r("861d"),i=r("c6b6"),a=r("d86b"),c=Object.isExtensible,u=n((function(){c(1)}));t.exports=u||a?function(t){return!!o(t)&&((!a||"ArrayBuffer"!==i(t))&&(!c||c(t)))}:c},5087:function(t,e,r){"use strict";var n=r("68ee"),o=r("0d51"),i=TypeError;t.exports=function(t){if(n(t))return t;throw new i(o(t)+" is not a constructor")}},"50c4":function(t,e,r){"use strict";var n=r("5926"),o=Math.min;t.exports=function(t){var e=n(t);return e>0?o(e,9007199254740991):0}},"51eb":function(t,e,r){"use strict";var n=r("825a"),o=r("485a"),i=TypeError;t.exports=function(t){if(n(this),"string"===t||"default"===t)t="string";else if("number"!==t)throw new i("Incorrect hint");return o(this,t)}},5352:function(t,e,r){"use strict";r("e260");var n=r("23e7"),o=r("da84"),i=r("157a"),a=r("c65b"),c=r("e330"),u=r("83ab"),s=r("f354"),f=r("cb2d"),l=r("edd0"),d=r("6964"),p=r("d44e"),h=r("dcc3"),v=r("69f3"),b=r("19aa"),m=r("1626"),y=r("1a2d"),g=r("0366"),w=r("f5df"),x=r("825a"),O=r("861d"),S=r("577e"),E=r("7c73"),j=r("5c6c"),C=r("9a1f"),T=r("35a1"),P=r("4754"),_=r("d6d6"),A=r("b622"),R=r("addb"),$=A("iterator"),k="URLSearchParams",I=k+"Iterator",D=v.set,M=v.getterFor(k),L=v.getterFor(I),U=i("fetch"),F=i("Request"),N=i("Headers"),B=F&&F.prototype,W=N&&N.prototype,H=o.RegExp,z=o.TypeError,q=o.decodeURIComponent,V=o.encodeURIComponent,G=c("".charAt),Y=c([].join),J=c([].push),Q=c("".replace),X=c([].shift),K=c([].splice),Z=c("".split),tt=c("".slice),et=/\+/g,rt=Array(4),nt=function(t){return rt[t-1]||(rt[t-1]=H("((?:%[\\da-f]{2}){"+t+"})","gi"))},ot=function(t){try{return q(t)}catch(e){return t}},it=function(t){var e=Q(t,et," "),r=4;try{return q(e)}catch(n){while(r)e=Q(e,nt(r--),ot);return e}},at=/[!'()~]|%20/g,ct={"!":"%21","'":"%27","(":"%28",")":"%29","~":"%7E","%20":"+"},ut=function(t){return ct[t]},st=function(t){return Q(V(t),at,ut)},ft=h((function(t,e){D(this,{type:I,target:M(t).entries,index:0,kind:e})}),k,(function(){var t=L(this),e=t.target,r=t.index++;if(!e||r>=e.length)return t.target=void 0,P(void 0,!0);var n=e[r];switch(t.kind){case"keys":return P(n.key,!1);case"values":return P(n.value,!1)}return P([n.key,n.value],!1)}),!0),lt=function(t){this.entries=[],this.url=null,void 0!==t&&(O(t)?this.parseObject(t):this.parseQuery("string"==typeof t?"?"===G(t,0)?tt(t,1):t:S(t)))};lt.prototype={type:k,bindURL:function(t){this.url=t,this.update()},parseObject:function(t){var e,r,n,o,i,c,u,s=this.entries,f=T(t);if(f){e=C(t,f),r=e.next;while(!(n=a(r,e)).done){if(o=C(x(n.value)),i=o.next,(c=a(i,o)).done||(u=a(i,o)).done||!a(i,o).done)throw new z("Expected sequence with length 2");J(s,{key:S(c.value),value:S(u.value)})}}else for(var l in t)y(t,l)&&J(s,{key:l,value:S(t[l])})},parseQuery:function(t){if(t){var e,r,n=this.entries,o=Z(t,"&"),i=0;while(i0?arguments[0]:void 0,e=D(this,new lt(t));u||(this.size=e.entries.length)},pt=dt.prototype;if(d(pt,{append:function(t,e){var r=M(this);_(arguments.length,2),J(r.entries,{key:S(t),value:S(e)}),u||this.length++,r.updateURL()},delete:function(t){var e=M(this),r=_(arguments.length,1),n=e.entries,o=S(t),i=r<2?void 0:arguments[1],a=void 0===i?i:S(i),c=0;while(ce.key?1:-1})),t.updateURL()},forEach:function(t){var e,r=M(this).entries,n=g(t,arguments.length>1?arguments[1]:void 0),o=0;while(o1?bt(arguments[1]):{})}}),m(F)){var mt=function(t){return b(this,B),new F(t,arguments.length>1?bt(arguments[1]):{})};B.constructor=mt,mt.prototype=B,n({global:!0,constructor:!0,dontCallGetSet:!0,forced:!0},{Request:mt})}}t.exports={URLSearchParams:dt,getState:M}},"53ca":function(t,e,r){"use strict";r.d(e,"a",(function(){return n}));r("a4d3"),r("e01a"),r("d28b"),r("e260"),r("d3b7"),r("3ca3"),r("ddb0");function n(t){return n="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},n(t)}},5494:function(t,e,r){"use strict";var n=r("83ab"),o=r("e330"),i=r("edd0"),a=URLSearchParams.prototype,c=o(a.forEach);n&&!("size"in a)&&i(a,"size",{get:function(){var t=0;return c(this,(function(){t++})),t},configurable:!0,enumerable:!0})},5692:function(t,e,r){"use strict";var n=r("c6cd");t.exports=function(t,e){return n[t]||(n[t]=e||{})}},"56ef":function(t,e,r){"use strict";var n=r("d066"),o=r("e330"),i=r("241c"),a=r("7418"),c=r("825a"),u=o([].concat);t.exports=n("Reflect","ownKeys")||function(t){var e=i.f(c(t)),r=a.f;return r?u(e,r(t)):e}},"577e":function(t,e,r){"use strict";var n=r("f5df"),o=String;t.exports=function(t){if("Symbol"===n(t))throw new TypeError("Cannot convert a Symbol value to a string");return o(t)}},"57b9":function(t,e,r){"use strict";var n=r("c65b"),o=r("d066"),i=r("b622"),a=r("cb2d");t.exports=function(){var t=o("Symbol"),e=t&&t.prototype,r=e&&e.valueOf,c=i("toPrimitive");e&&!e[c]&&a(e,c,(function(t){return n(r,this)}),{arity:1})}},5899:function(t,e,r){"use strict";t.exports="\t\n\v\f\r                 \u2028\u2029\ufeff"},"58a8":function(t,e,r){"use strict";var n=r("e330"),o=r("1d80"),i=r("577e"),a=r("5899"),c=n("".replace),u=RegExp("^["+a+"]+"),s=RegExp("(^|[^"+a+"])["+a+"]+$"),f=function(t){return function(e){var r=i(o(e));return 1&t&&(r=c(r,u,"")),2&t&&(r=c(r,s,"$1")),r}};t.exports={start:f(1),end:f(2),trim:f(3)}},5926:function(t,e,r){"use strict";var n=r("b42e");t.exports=function(t){var e=+t;return e!==e||0===e?0:n(e)}},"59ed":function(t,e,r){"use strict";var n=r("1626"),o=r("0d51"),i=TypeError;t.exports=function(t){if(n(t))return t;throw new i(o(t)+" is not a function")}},"5a34":function(t,e,r){"use strict";var n=r("44e7"),o=TypeError;t.exports=function(t){if(n(t))throw new o("The method doesn't accept regular expressions");return t}},"5a47":function(t,e,r){"use strict";var n=r("23e7"),o=r("04f8"),i=r("d039"),a=r("7418"),c=r("7b0b"),u=!o||i((function(){a.f(1)}));n({target:"Object",stat:!0,forced:u},{getOwnPropertySymbols:function(t){var e=a.f;return e?e(c(t)):[]}})},"5c0b":function(t,e,r){"use strict";var n=function(){var t=this,e=t._self._c;return e("input",{attrs:{type:"file",name:"image",accept:"image/*",capture:"environment",multiple:""},on:{change:t.onChangeInput}})},o=[],i=r("2909"),a=(r("d81d"),r("d3b7"),r("159b"),r("a180")),c=r("b3af"),u={name:"qrcode-capture",props:{formats:{type:Array,default:function(){return["qr_code"]}}},mixins:[c["a"]],methods:{onChangeInput:function(t){var e=this,r=Object(i["a"])(t.target.files),n=r.map((function(t){return Object(a["b"])(t,e.formats)}));n.forEach(this.onDetect)}}},s=u,f=r("2877"),l=Object(f["a"])(s,n,o,!1,null,null,null);e["a"]=l.exports},"5c6c":function(t,e,r){"use strict";t.exports=function(t,e){return{enumerable:!(1&t),configurable:!(2&t),writable:!(4&t),value:e}}},"5e77":function(t,e,r){"use strict";var n=r("83ab"),o=r("1a2d"),i=Function.prototype,a=n&&Object.getOwnPropertyDescriptor,c=o(i,"name"),u=c&&"something"===function(){}.name,s=c&&(!n||n&&a(i,"name").configurable);t.exports={EXISTS:c,PROPER:u,CONFIGURABLE:s}},"5e7e":function(t,e,r){"use strict";var n,o,i,a,c=r("23e7"),u=r("c430"),s=r("605d"),f=r("da84"),l=r("c65b"),d=r("cb2d"),p=r("d2bb"),h=r("d44e"),v=r("2626"),b=r("59ed"),m=r("1626"),y=r("861d"),g=r("19aa"),w=r("4840"),x=r("2cf4").set,O=r("b575"),S=r("44de"),E=r("e667"),j=r("01b4"),C=r("69f3"),T=r("d256"),P=r("4738"),_=r("f069"),A="Promise",R=P.CONSTRUCTOR,$=P.REJECTION_EVENT,k=P.SUBCLASSING,I=C.getterFor(A),D=C.set,M=T&&T.prototype,L=T,U=M,F=f.TypeError,N=f.document,B=f.process,W=_.f,H=W,z=!!(N&&N.createEvent&&f.dispatchEvent),q="unhandledrejection",V="rejectionhandled",G=0,Y=1,J=2,Q=1,X=2,K=function(t){var e;return!(!y(t)||!m(e=t.then))&&e},Z=function(t,e){var r,n,o,i=e.value,a=e.state===Y,c=a?t.ok:t.fail,u=t.resolve,s=t.reject,f=t.domain;try{c?(a||(e.rejection===X&&ot(e),e.rejection=Q),!0===c?r=i:(f&&f.enter(),r=c(i),f&&(f.exit(),o=!0)),r===t.promise?s(new F("Promise-chain cycle")):(n=K(r))?l(n,r,u,s):u(r)):s(i)}catch(d){f&&!o&&f.exit(),s(d)}},tt=function(t,e){t.notified||(t.notified=!0,O((function(){var r,n=t.reactions;while(r=n.get())Z(r,t);t.notified=!1,e&&!t.rejection&&rt(t)})))},et=function(t,e,r){var n,o;z?(n=N.createEvent("Event"),n.promise=e,n.reason=r,n.initEvent(t,!1,!0),f.dispatchEvent(n)):n={promise:e,reason:r},!$&&(o=f["on"+t])?o(n):t===q&&S("Unhandled promise rejection",r)},rt=function(t){l(x,f,(function(){var e,r=t.facade,n=t.value,o=nt(t);if(o&&(e=E((function(){s?B.emit("unhandledRejection",n,r):et(q,r,n)})),t.rejection=s||nt(t)?X:Q,e.error))throw e.value}))},nt=function(t){return t.rejection!==Q&&!t.parent},ot=function(t){l(x,f,(function(){var e=t.facade;s?B.emit("rejectionHandled",e):et(V,e,t.value)}))},it=function(t,e,r){return function(n){t(e,n,r)}},at=function(t,e,r){t.done||(t.done=!0,r&&(t=r),t.value=e,t.state=J,tt(t,!0))},ct=function(t,e,r){if(!t.done){t.done=!0,r&&(t=r);try{if(t.facade===e)throw new F("Promise can't be resolved itself");var n=K(e);n?O((function(){var r={done:!1};try{l(n,e,it(ct,r,t),it(at,r,t))}catch(o){at(r,o,t)}})):(t.value=e,t.state=Y,tt(t,!1))}catch(o){at({done:!1},o,t)}}};if(R&&(L=function(t){g(this,U),b(t),l(n,this);var e=I(this);try{t(it(ct,e),it(at,e))}catch(r){at(e,r)}},U=L.prototype,n=function(t){D(this,{type:A,done:!1,notified:!1,parent:!1,reactions:new j,rejection:!1,state:G,value:void 0})},n.prototype=d(U,"then",(function(t,e){var r=I(this),n=W(w(this,L));return r.parent=!0,n.ok=!m(t)||t,n.fail=m(e)&&e,n.domain=s?B.domain:void 0,r.state===G?r.reactions.add(n):O((function(){Z(n,r)})),n.promise})),o=function(){var t=new n,e=I(t);this.promise=t,this.resolve=it(ct,e),this.reject=it(at,e)},_.f=W=function(t){return t===L||t===i?new o(t):H(t)},!u&&m(T)&&M!==Object.prototype)){a=M.then,k||d(M,"then",(function(t,e){var r=this;return new L((function(t,e){l(a,r,t,e)})).then(t,e)}),{unsafe:!0});try{delete M.constructor}catch(ut){}p&&p(M,U)}c({global:!0,constructor:!0,wrap:!0,forced:R},{Promise:L}),h(L,A,!1,!0),v(A)},"5eed":function(t,e,r){"use strict";var n=r("d256"),o=r("1c7e"),i=r("4738").CONSTRUCTOR;t.exports=i||!o((function(t){n.all(t).then(void 0,(function(){}))}))},"5fb2":function(t,e,r){"use strict";var n=r("e330"),o=2147483647,i=36,a=1,c=26,u=38,s=700,f=72,l=128,d="-",p=/[^\0-\u007E]/,h=/[.\u3002\uFF0E\uFF61]/g,v="Overflow: input needs wider integers to process",b=i-a,m=RangeError,y=n(h.exec),g=Math.floor,w=String.fromCharCode,x=n("".charCodeAt),O=n([].join),S=n([].push),E=n("".replace),j=n("".split),C=n("".toLowerCase),T=function(t){var e=[],r=0,n=t.length;while(r=55296&&o<=56319&&r>1,t+=g(t/e);while(t>b*c>>1)t=g(t/b),n+=i;return g(n+(b+1)*t/(t+u))},A=function(t){var e=[];t=T(t);var r,n,u=t.length,s=l,p=0,h=f;for(r=0;r=s&&ng((o-p)/E))throw new m(v);for(p+=(x-s)*E,s=x,r=0;ro)throw new m(v);if(n===s){var j=p,C=i;while(1){var A=C<=h?a:C>=h+c?c:C-h;if(ja){var v,b=l(arguments[a++]),m=d?h(c(b),d(b)):c(b),y=m.length,g=0;while(y>g)v=m[g++],n&&!i(p,b,v)||(r[v]=b[v])}return r}:d},6374:function(t,e,r){"use strict";var n=r("da84"),o=Object.defineProperty;t.exports=function(t,e){try{o(n,t,{value:e,configurable:!0,writable:!0})}catch(r){n[t]=e}return e}},6547:function(t,e,r){"use strict";var n=r("e330"),o=r("5926"),i=r("577e"),a=r("1d80"),c=n("".charAt),u=n("".charCodeAt),s=n("".slice),f=function(t){return function(e,r){var n,f,l=i(a(e)),d=o(r),p=l.length;return d<0||d>=p?t?"":void 0:(n=u(l,d),n<55296||n>56319||d+1===p||(f=u(l,d+1))<56320||f>57343?t?c(l,d):n:t?s(l,d,d+2):f-56320+(n-55296<<10)+65536)}};t.exports={codeAt:f(!1),charAt:f(!0)}},6566:function(t,e,r){"use strict";var n=r("7c73"),o=r("edd0"),i=r("6964"),a=r("0366"),c=r("19aa"),u=r("7234"),s=r("2266"),f=r("c6d2"),l=r("4754"),d=r("2626"),p=r("83ab"),h=r("f183").fastKey,v=r("69f3"),b=v.set,m=v.getterFor;t.exports={getConstructor:function(t,e,r,f){var l=t((function(t,o){c(t,d),b(t,{type:e,index:n(null),first:void 0,last:void 0,size:0}),p||(t.size=0),u(o)||s(o,t[f],{that:t,AS_ENTRIES:r})})),d=l.prototype,v=m(e),y=function(t,e,r){var n,o,i=v(t),a=g(t,e);return a?a.value=r:(i.last=a={index:o=h(e,!0),key:e,value:r,previous:n=i.last,next:void 0,removed:!1},i.first||(i.first=a),n&&(n.next=a),p?i.size++:t.size++,"F"!==o&&(i.index[o]=a)),t},g=function(t,e){var r,n=v(t),o=h(e);if("F"!==o)return n.index[o];for(r=n.first;r;r=r.next)if(r.key===e)return r};return i(d,{clear:function(){var t=this,e=v(t),r=e.first;while(r)r.removed=!0,r.previous&&(r.previous=r.previous.next=void 0),r=r.next;e.first=e.last=void 0,e.index=n(null),p?e.size=0:t.size=0},delete:function(t){var e=this,r=v(e),n=g(e,t);if(n){var o=n.next,i=n.previous;delete r.index[n.index],n.removed=!0,i&&(i.next=o),o&&(o.previous=i),r.first===n&&(r.first=o),r.last===n&&(r.last=i),p?r.size--:e.size--}return!!n},forEach:function(t){var e,r=v(this),n=a(t,arguments.length>1?arguments[1]:void 0);while(e=e?e.next:r.first){n(e.value,e.key,this);while(e&&e.removed)e=e.previous}},has:function(t){return!!g(this,t)}}),i(d,r?{get:function(t){var e=g(this,t);return e&&e.value},set:function(t,e){return y(this,0===t?0:t,e)}}:{add:function(t){return y(this,t=0===t?0:t,t)}}),p&&o(d,"size",{configurable:!0,get:function(){return v(this).size}}),l},setStrong:function(t,e,r){var n=e+" Iterator",o=m(e),i=m(n);f(t,e,(function(t,e){b(this,{type:n,target:t,state:o(t),kind:e,last:void 0})}),(function(){var t=i(this),e=t.kind,r=t.last;while(r&&r.removed)r=r.previous;return t.target&&(t.last=r=r?r.next:t.state.first)?l("keys"===e?r.key:"values"===e?r.value:[r.key,r.value],!1):(t.target=void 0,l(void 0,!0))}),r?"entries":"values",!r,!0),d(e)}}},"65f0":function(t,e,r){"use strict";var n=r("0b42");t.exports=function(t,e){return new(n(t))(0===e?0:e)}},"68ee":function(t,e,r){"use strict";var n=r("e330"),o=r("d039"),i=r("1626"),a=r("f5df"),c=r("d066"),u=r("8925"),s=function(){},f=c("Reflect","construct"),l=/^\s*(?:class|function)\b/,d=n(l.exec),p=!l.test(s),h=function(t){if(!i(t))return!1;try{return f(s,[],t),!0}catch(e){return!1}},v=function(t){if(!i(t))return!1;switch(a(t)){case"AsyncFunction":case"GeneratorFunction":case"AsyncGeneratorFunction":return!1}try{return p||!!d(l,u(t))}catch(e){return!0}};v.sham=!0,t.exports=!f||o((function(){var t;return h(h.call)||!h(Object)||!h((function(){t=!0}))||t}))?v:h},6964:function(t,e,r){"use strict";var n=r("cb2d");t.exports=function(t,e,r){for(var o in e)n(t,o,e[o],r);return t}},"69f3":function(t,e,r){"use strict";var n,o,i,a=r("cdce"),c=r("da84"),u=r("861d"),s=r("9112"),f=r("1a2d"),l=r("c6cd"),d=r("f772"),p=r("d012"),h="Object already initialized",v=c.TypeError,b=c.WeakMap,m=function(t){return i(t)?o(t):n(t,{})},y=function(t){return function(e){var r;if(!u(e)||(r=o(e)).type!==t)throw new v("Incompatible receiver, "+t+" required");return r}};if(a||l.state){var g=l.state||(l.state=new b);g.get=g.get,g.has=g.has,g.set=g.set,n=function(t,e){if(g.has(t))throw new v(h);return e.facade=t,g.set(t,e),e},o=function(t){return g.get(t)||{}},i=function(t){return g.has(t)}}else{var w=d("state");p[w]=!0,n=function(t,e){if(f(t,w))throw new v(h);return e.facade=t,s(t,w,e),e},o=function(t){return f(t,w)?t[w]:{}},i=function(t){return f(t,w)}}t.exports={set:n,get:o,has:i,enforce:m,getterFor:y}},"6b75":function(t,e,r){"use strict";function n(t,e){(null==e||e>t.length)&&(e=t.length);for(var r=0,n=new Array(e);r{if(!e.has(t))throw TypeError("Cannot "+r)},i=(t,e,r)=>(o(t,e,"read from private field"),r?r.call(t):e.get(t)),a=(t,e,r)=>{if(e.has(t))throw TypeError("Cannot add the same private member more than once");e instanceof WeakSet?e.add(t):e.set(t,r)},c=(t,e,r,n)=>(o(t,e,"write to private field"),n?n.call(t,r):e.set(t,r),r);const u=["Aztec","Codabar","Code128","Code39","Code93","DataBar","DataBarExpanded","DataMatrix","DXFilmEdge","EAN-13","EAN-8","ITF","Linear-Codes","Matrix-Codes","MaxiCode","MicroQRCode","None","PDF417","QRCode","rMQRCode","UPC-A","UPC-E"];function s(t){return t.join("|")}function f(t){const e=l(t);let r=0,n=u.length-1;for(;r<=n;){const t=Math.floor((r+n)/2),o=u[t],i=l(o);if(i===e)return o;i{const r=t.match(/_(.+?)\.wasm$/);return r?`https://fastly.jsdelivr.net/npm/zxing-wasm@1.2.4/dist/${r[1]}/${t}`:e+t}};let O=new WeakMap;function S(t,e){var r;const n=O.get(t);if(null!=n&&n.modulePromise&&(void 0===e||Object.is(e,n.moduleOverrides)))return n.modulePromise;const o=null!=(r=null!=e?e:null==n?void 0:n.moduleOverrides)?r:x,i=t({...o});return O.set(t,{moduleOverrides:o,modulePromise:i}),i}async function E(t,e,r=y){const n={...y,...r},o=await S(t),{size:i}=e,a=new Uint8Array(await e.arrayBuffer()),c=o._malloc(i);o.HEAPU8.set(a,c);const u=o.readBarcodesFromImage(c,i,g(o,n));o._free(c);const s=[];for(let f=0;f{var e=typeof document<"u"&&document.currentScript?document.currentScript.src:void 0;return function(r={}){var o,i,a=r;a.ready=new Promise((t,e)=>{o=t,i=e});var c=Object.assign({},a),u="./this.program",s="object"==typeof window,f=typeof Bun<"u",l="function"==typeof importScripts;"object"==typeof t&&"object"==typeof t.versions&&t.versions.node;var d,p="";function h(t){return a.locateFile?a.locateFile(t,p):p+t}(s||l||f)&&(l?p=self.location.href:typeof document<"u"&&document.currentScript&&(p=document.currentScript.src),e&&(p=e),p=p.startsWith("blob:")?"":p.substr(0,p.replace(/[?#].*/,"").lastIndexOf("/")+1),l&&(d=t=>{var e=new XMLHttpRequest;return e.open("GET",t,!1),e.responseType="arraybuffer",e.send(null),new Uint8Array(e.response)}));var v,b=a.print||console.log.bind(console),m=a.printErr||console.error.bind(console);Object.assign(a,c),c=null,a.arguments&&a.arguments,a.thisProgram&&(u=a.thisProgram),a.quit&&a.quit,a.wasmBinary&&(v=a.wasmBinary),"object"!=typeof WebAssembly&&W("no native wasm support detected");var y,g,w,x,O,S,E,j,C,T=!1;function P(){var t=y.buffer;a.HEAP8=g=new Int8Array(t),a.HEAP16=x=new Int16Array(t),a.HEAPU8=w=new Uint8Array(t),a.HEAPU16=O=new Uint16Array(t),a.HEAP32=S=new Int32Array(t),a.HEAPU32=E=new Uint32Array(t),a.HEAPF32=j=new Float32Array(t),a.HEAPF64=C=new Float64Array(t)}var _=[],A=[],R=[];function $(){if(a.preRun)for("function"==typeof a.preRun&&(a.preRun=[a.preRun]);a.preRun.length;)D(a.preRun.shift());X(_)}function k(){X(A)}function I(){if(a.postRun)for("function"==typeof a.postRun&&(a.postRun=[a.postRun]);a.postRun.length;)L(a.postRun.shift());X(R)}function D(t){_.unshift(t)}function M(t){A.unshift(t)}function L(t){R.unshift(t)}var U=0,F=null;function N(t){var e;U++,null===(e=a.monitorRunDependencies)||void 0===e||e.call(a,U)}function B(t){var e;if(U--,null===(e=a.monitorRunDependencies)||void 0===e||e.call(a,U),0==U&&F){var r=F;F=null,r()}}function W(t){var e;null===(e=a.onAbort)||void 0===e||e.call(a,t),t="Aborted("+t+")",m(t),T=!0,t+=". Build with -sASSERTIONS for more info.";var r=new WebAssembly.RuntimeError(t);throw i(r),r}var H,z="data:application/octet-stream;base64,",q=t=>t.startsWith(z);function V(t){if(t==H&&v)return new Uint8Array(v);if(d)return d(t);throw"both async and sync fetching of the wasm failed"}function G(t){return!v&&(s||l||f)&&"function"==typeof fetch?fetch(t,{credentials:"same-origin"}).then(e=>{if(!e.ok)throw`failed to load wasm binary file at '${t}'`;return e.arrayBuffer()}).catch(()=>V(t)):Promise.resolve().then(()=>V(t))}function Y(t,e,r){return G(t).then(t=>WebAssembly.instantiate(t,e)).then(r,t=>{m("failed to asynchronously prepare wasm: "+t),W(t)})}function J(t,e,r,n){return t||"function"!=typeof WebAssembly.instantiateStreaming||q(e)||"function"!=typeof fetch?Y(e,r,n):fetch(e,{credentials:"same-origin"}).then(t=>{var o=WebAssembly.instantiateStreaming(t,r);return o.then(n,(function(t){return m("wasm streaming compile failed: "+t),m("falling back to ArrayBuffer instantiation"),Y(e,r,n)}))})}function Q(){var t={a:nn};function e(t,e){return on=t.exports,y=on.ma,P(),he=on.qa,M(on.na),B(),on}function r(t){e(t.instance)}if(N(),a.instantiateWasm)try{return a.instantiateWasm(t,e)}catch(n){m("Module.instantiateWasm callback failed with error: "+n),i(n)}return J(v,H,t,r).catch(i),{}}H="zxing_reader.wasm",q(H)||(H=h(H));var X=t=>{for(;t.length>0;)t.shift()(a)};a.noExitRuntime;var K=[],Z=0,tt=t=>{var e=new nt(t);return e.get_caught()||(e.set_caught(!0),Z--),e.set_rethrown(!1),K.push(e),hn(e.excPtr),e.get_exception_ptr()},et=0,rt=()=>{sn(0,0);var t=K.pop();pn(t.excPtr),et=0};class nt{constructor(t){this.excPtr=t,this.ptr=t-24}set_type(t){E[this.ptr+4>>2]=t}get_type(){return E[this.ptr+4>>2]}set_destructor(t){E[this.ptr+8>>2]=t}get_destructor(){return E[this.ptr+8>>2]}set_caught(t){t=t?1:0,g[this.ptr+12]=t}get_caught(){return 0!=g[this.ptr+12]}set_rethrown(t){t=t?1:0,g[this.ptr+13]=t}get_rethrown(){return 0!=g[this.ptr+13]}init(t,e){this.set_adjusted_ptr(0),this.set_type(t),this.set_destructor(e)}set_adjusted_ptr(t){E[this.ptr+16>>2]=t}get_adjusted_ptr(){return E[this.ptr+16>>2]}get_exception_ptr(){var t=bn(this.get_type());if(t)return E[this.excPtr>>2];var e=this.get_adjusted_ptr();return 0!==e?e:this.excPtr}}var ot=t=>{throw et||(et=t),et},it=t=>{var e=et;if(!e)return fn(0),0;var r=new nt(e);r.set_adjusted_ptr(e);var n=r.get_type();if(!n)return fn(0),e;for(var o in t){var i=t[o];if(0===i||i===n)break;var a=r.ptr+16;if(vn(i,n,a))return fn(i),e}return fn(n),e},at=()=>it([]),ct=t=>it([t]),ut=(t,e)=>it([t,e]),st=()=>{var t=K.pop();t||W("no exception to throw");var e=t.excPtr;throw t.get_rethrown()||(K.push(t),t.set_rethrown(!0),t.set_caught(!1),Z++),et=e,et},ft=(t,e,r)=>{var n=new nt(t);throw n.init(e,r),et=t,Z++,et},lt=()=>Z,dt={},pt=t=>{for(;t.length;){var e=t.pop(),r=t.pop();r(e)}};function ht(t){return this.fromWireType(E[t>>2])}var vt,bt,mt,yt={},gt={},wt={},xt=t=>{throw new vt(t)},Ot=(t,e,r)=>{function n(e){var n=r(e);n.length!==t.length&&xt("Mismatched type converter count");for(var o=0;o{gt.hasOwnProperty(t)?o[e]=gt[t]:(i.push(t),yt.hasOwnProperty(t)||(yt[t]=[]),yt[t].push(()=>{o[e]=gt[t],++a,a===i.length&&n(o)}))}),0===i.length&&n(o)},St=t=>{var e=dt[t];delete dt[t];var r=e.rawConstructor,n=e.rawDestructor,o=e.fields,i=o.map(t=>t.getterReturnType).concat(o.map(t=>t.setterArgumentType));Ot([t],i,t=>{var i={};return o.forEach((e,r)=>{var n=e.fieldName,a=t[r],c=e.getter,u=e.getterContext,s=t[r+o.length],f=e.setter,l=e.setterContext;i[n]={read:t=>a.fromWireType(c(u,t)),write:(t,e)=>{var r=[];f(l,t,s.toWireType(r,e)),pt(r)}}}),[{name:e.name,fromWireType:t=>{var e={};for(var r in i)e[r]=i[r].read(t);return n(t),e},toWireType:(t,e)=>{for(var o in i)if(!(o in e))throw new TypeError(`Missing field: "${o}"`);var a=r();for(o in i)i[o].write(a,e[o]);return null!==t&&t.push(n,a),a},argPackAdvance:Rt,readValueFromPointer:ht,destructorFunction:n}]})},Et=(t,e,r,n,o)=>{},jt=()=>{for(var t=new Array(256),e=0;e<256;++e)t[e]=String.fromCharCode(e);bt=t},Ct=t=>{for(var e="",r=t;w[r];)e+=bt[w[r++]];return e},Tt=t=>{throw new mt(t)};function Pt(t,e){let r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};var n=e.name;if(t||Tt(`type "${n}" must have a positive integer typeid pointer`),gt.hasOwnProperty(t)){if(r.ignoreDuplicateRegistrations)return;Tt(`Cannot register type '${n}' twice`)}if(gt[t]=e,delete wt[t],yt.hasOwnProperty(t)){var o=yt[t];delete yt[t],o.forEach(t=>t())}}function _t(t,e){let r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};if(!("argPackAdvance"in e))throw new TypeError("registerType registeredInstance requires argPackAdvance");return Pt(t,e,r)}var At,Rt=8,$t=(t,e,r,n)=>{e=Ct(e),_t(t,{name:e,fromWireType:function(t){return!!t},toWireType:function(t,e){return e?r:n},argPackAdvance:Rt,readValueFromPointer:function(t){return this.fromWireType(w[t])},destructorFunction:null})},kt=t=>({count:t.count,deleteScheduled:t.deleteScheduled,preservePointerOnDelete:t.preservePointerOnDelete,ptr:t.ptr,ptrType:t.ptrType,smartPtr:t.smartPtr,smartPtrType:t.smartPtrType}),It=t=>{function e(t){return t.$$.ptrType.registeredClass.name}Tt(e(t)+" instance already deleted")},Dt=!1,Mt=t=>{},Lt=t=>{t.smartPtr?t.smartPtrType.rawDestructor(t.smartPtr):t.ptrType.registeredClass.rawDestructor(t.ptr)},Ut=t=>{t.count.value-=1;var e=0===t.count.value;e&&Lt(t)},Ft=(t,e,r)=>{if(e===r)return t;if(void 0===r.baseClass)return null;var n=Ft(t,e,r.baseClass);return null===n?null:r.downcast(n)},Nt={},Bt=()=>Object.keys(Gt).length,Wt=()=>{var t=[];for(var e in Gt)Gt.hasOwnProperty(e)&&t.push(Gt[e]);return t},Ht=[],zt=()=>{for(;Ht.length;){var t=Ht.pop();t.$$.deleteScheduled=!1,t.delete()}},qt=t=>{At=t,Ht.length&&At&&At(zt)},Vt=()=>{a.getInheritedInstanceCount=Bt,a.getLiveInheritedInstances=Wt,a.flushPendingDeletes=zt,a.setDelayFunction=qt},Gt={},Yt=(t,e)=>{for(void 0===e&&Tt("ptr should not be undefined");t.baseClass;)e=t.upcast(e),t=t.baseClass;return e},Jt=(t,e)=>(e=Yt(t,e),Gt[e]),Qt=(t,e)=>{(!e.ptrType||!e.ptr)&&xt("makeClassHandle requires ptr and ptrType");var r=!!e.smartPtrType,n=!!e.smartPtr;return r!==n&&xt("Both smartPtrType and smartPtr must be specified"),e.count={value:1},Kt(Object.create(t,{$$:{value:e,writable:!0}}))};function Xt(t){var e=this.getPointee(t);if(!e)return this.destructor(t),null;var r=Jt(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 o(){return this.isSmartPointer?Qt(this.registeredClass.instancePrototype,{ptrType:this.pointeeType,ptr:e,smartPtrType:this,smartPtr:t}):Qt(this.registeredClass.instancePrototype,{ptrType:this,ptr:t})}var i,a=this.registeredClass.getActualType(e),c=Nt[a];if(!c)return o.call(this);i=this.isConst?c.constPointerType:c.pointerType;var u=Ft(e,this.registeredClass,i.registeredClass);return null===u?o.call(this):this.isSmartPointer?Qt(i.registeredClass.instancePrototype,{ptrType:i,ptr:u,smartPtrType:this,smartPtr:t}):Qt(i.registeredClass.instancePrototype,{ptrType:i,ptr:u})}var Kt=t=>typeof FinalizationRegistry>"u"?(Kt=t=>t,t):(Dt=new FinalizationRegistry(t=>{Ut(t.$$)}),Kt=t=>{var e=t.$$,r=!!e.smartPtr;if(r){var n={$$:e};Dt.register(t,n,t)}return t},Mt=t=>Dt.unregister(t),Kt(t)),Zt=()=>{Object.assign(te.prototype,{isAliasOf(t){if(!(this instanceof te)||!(t instanceof te))return!1;var e=this.$$.ptrType.registeredClass,r=this.$$.ptr;t.$$=t.$$;for(var n=t.$$.ptrType.registeredClass,o=t.$$.ptr;e.baseClass;)r=e.upcast(r),e=e.baseClass;for(;n.baseClass;)o=n.upcast(o),n=n.baseClass;return e===n&&r===o},clone(){if(this.$$.ptr||It(this),this.$$.preservePointerOnDelete)return this.$$.count.value+=1,this;var t=Kt(Object.create(Object.getPrototypeOf(this),{$$:{value:kt(this.$$)}}));return t.$$.count.value+=1,t.$$.deleteScheduled=!1,t},delete(){this.$$.ptr||It(this),this.$$.deleteScheduled&&!this.$$.preservePointerOnDelete&&Tt("Object already scheduled for deletion"),Mt(this),Ut(this.$$),this.$$.preservePointerOnDelete||(this.$$.smartPtr=void 0,this.$$.ptr=void 0)},isDeleted(){return!this.$$.ptr},deleteLater(){return this.$$.ptr||It(this),this.$$.deleteScheduled&&!this.$$.preservePointerOnDelete&&Tt("Object already scheduled for deletion"),Ht.push(this),1===Ht.length&&At&&At(zt),this.$$.deleteScheduled=!0,this}})};function te(){}var ee=(t,e)=>Object.defineProperty(e,"name",{value:t}),re=(t,e,r)=>{if(void 0===t[e].overloadTable){var n=t[e];t[e]=function(){for(var n=arguments.length,o=new Array(n),i=0;i{a.hasOwnProperty(t)?((void 0===r||void 0!==a[t].overloadTable&&void 0!==a[t].overloadTable[r])&&Tt(`Cannot register public name '${t}' twice`),re(a,t,t),a.hasOwnProperty(r)&&Tt(`Cannot register multiple overloads of a function with the same number of arguments (${r})!`),a[t].overloadTable[r]=e):(a[t]=e,void 0!==r&&(a[t].numArguments=r))},oe=48,ie=57,ae=t=>{if(void 0===t)return"_unknown";t=t.replace(/[^a-zA-Z0-9_]/g,"$");var e=t.charCodeAt(0);return e>=oe&&e<=ie?"_"+t:t};function ce(t,e,r,n,o,i,a,c){this.name=t,this.constructor=e,this.instancePrototype=r,this.rawDestructor=n,this.baseClass=o,this.getActualType=i,this.upcast=a,this.downcast=c,this.pureVirtualFunctions=[]}var ue=(t,e,r)=>{for(;e!==r;)e.upcast||Tt(`Expected null or instance of ${r.name}, got an instance of ${e.name}`),t=e.upcast(t),e=e.baseClass;return t};function se(t,e){if(null===e)return this.isReference&&Tt("null is not a valid "+this.name),0;e.$$||Tt(`Cannot pass "${qe(e)}" as a ${this.name}`),e.$$.ptr||Tt("Cannot pass deleted object as a pointer of type "+this.name);var r=e.$$.ptrType.registeredClass,n=ue(e.$$.ptr,r,this.registeredClass);return n}function fe(t,e){var r;if(null===e)return this.isReference&&Tt("null is not a valid "+this.name),this.isSmartPointer?(r=this.rawConstructor(),null!==t&&t.push(this.rawDestructor,r),r):0;(!e||!e.$$)&&Tt(`Cannot pass "${qe(e)}" as a ${this.name}`),e.$$.ptr||Tt("Cannot pass deleted object as a pointer of type "+this.name),!this.isConst&&e.$$.ptrType.isConst&&Tt(`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=ue(e.$$.ptr,n,this.registeredClass),this.isSmartPointer)switch(void 0===e.$$.smartPtr&&Tt("Passing raw pointer to smart pointer is illegal"),this.sharingPolicy){case 0:e.$$.smartPtrType===this?r=e.$$.smartPtr:Tt(`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 o=e.clone();r=this.rawShare(r,Ue.toHandle(()=>o.delete())),null!==t&&t.push(this.rawDestructor,r)}break;default:Tt("Unsupporting sharing policy")}return r}function le(t,e){if(null===e)return this.isReference&&Tt("null is not a valid "+this.name),0;e.$$||Tt(`Cannot pass "${qe(e)}" as a ${this.name}`),e.$$.ptr||Tt("Cannot pass deleted object as a pointer of type "+this.name),e.$$.ptrType.isConst&&Tt(`Cannot convert argument of type ${e.$$.ptrType.name} to parameter type ${this.name}`);var r=e.$$.ptrType.registeredClass,n=ue(e.$$.ptr,r,this.registeredClass);return n}var de=()=>{Object.assign(pe.prototype,{getPointee(t){return this.rawGetPointee&&(t=this.rawGetPointee(t)),t},destructor(t){var e;null===(e=this.rawDestructor)||void 0===e||e.call(this,t)},argPackAdvance:Rt,readValueFromPointer:ht,fromWireType:Xt})};function pe(t,e,r,n,o,i,a,c,u,s,f){this.name=t,this.registeredClass=e,this.isReference=r,this.isConst=n,this.isSmartPointer=o,this.pointeeType=i,this.sharingPolicy=a,this.rawGetPointee=c,this.rawConstructor=u,this.rawShare=s,this.rawDestructor=f,o||void 0!==e.baseClass?this.toWireType=fe:n?(this.toWireType=se,this.destructorFunction=null):(this.toWireType=le,this.destructorFunction=null)}var he,ve,be=(t,e,r)=>{a.hasOwnProperty(t)||xt("Replacing nonexistant public symbol"),void 0!==a[t].overloadTable&&void 0!==r?a[t].overloadTable[r]=e:(a[t]=e,a[t].argCount=r)},me=(t,e,r)=>{var n=a["dynCall_"+t];return n(e,...r)},ye=[],ge=t=>{var e=ye[t];return e||(t>=ye.length&&(ye.length=t+1),ye[t]=e=he.get(t)),e},we=function(t,e){let r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:[];if(t.includes("j"))return me(t,e,r);var n=ge(e)(...r);return n},xe=(t,e)=>function(){for(var r=arguments.length,n=new Array(r),o=0;o{function r(){return t.includes("j")?xe(t,e):ge(e)}t=Ct(t);var n=r();return"function"!=typeof n&&Tt(`unknown function pointer with signature ${t}: ${e}`),n},Se=(t,e)=>{var r=ee(e,(function(t){this.name=e,this.message=t;var r=new Error(t).stack;void 0!==r&&(this.stack=this.toString()+"\n"+r.replace(/^Error(:[^\n]*)?\n/,""))}));return r.prototype=Object.create(t.prototype),r.prototype.constructor=r,r.prototype.toString=function(){return void 0===this.message?this.name:`${this.name}: ${this.message}`},r},Ee=t=>{var e=un(t),r=Ct(e);return an(e),r},je=(t,e)=>{var r=[],n={};function o(t){if(!n[t]&&!gt[t]){if(wt[t])return void wt[t].forEach(o);r.push(t),n[t]=!0}}throw e.forEach(o),new ve(t+": "+r.map(Ee).join([", "]))},Ce=(t,e,r,n,o,i,a,c,u,s,f,l,d)=>{f=Ct(f),i=Oe(o,i),c&&(c=Oe(a,c)),s&&(s=Oe(u,s)),d=Oe(l,d);var p=ae(f);ne(p,(function(){je(`Cannot construct ${f} due to unbound types`,[n])})),Ot([t,e,r],n?[n]:[],e=>{var r,o;e=e[0],n?(r=e.registeredClass,o=r.instancePrototype):o=te.prototype;var a=ee(f,(function(){if(Object.getPrototypeOf(this)!==u)throw new mt("Use 'new' to construct "+f);if(void 0===v.constructor_body)throw new mt(f+" has no accessible constructor");for(var t=arguments.length,e=new Array(t),r=0;r{for(var r=[],n=0;n>2]);return r};function Pe(t){for(var e=1;e{var a=Te(e,r);o=Oe(n,o),Ot([],[t],t=>{t=t[0];var r="constructor "+t.name;if(void 0===t.registeredClass.constructor_body&&(t.registeredClass.constructor_body=[]),void 0!==t.registeredClass.constructor_body[e-1])throw new mt(`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]=()=>{je(`Cannot construct ${t.name} due to unbound types`,a)},Ot([],a,n=>(n.splice(1,0,null),t.registeredClass.constructor_body[e-1]=_e(r,n,null,o,i),[])),[]})},Re=t=>{t=t.trim();const e=t.indexOf("(");return-1!==e?t.substr(0,e):t},$e=(t,e,r,n,o,i,a,c,u)=>{var s=Te(r,n);e=Ct(e),e=Re(e),i=Oe(o,i),Ot([],[t],t=>{t=t[0];var n=`${t.name}.${e}`;function o(){je(`Cannot call ${n} due to unbound types`,s)}e.startsWith("@@")&&(e=Symbol[e.substring(2)]),c&&t.registeredClass.pureVirtualFunctions.push(e);var u=t.registeredClass.instancePrototype,f=u[e];return void 0===f||void 0===f.overloadTable&&f.className!==t.name&&f.argCount===r-2?(o.argCount=r-2,o.className=t.name,u[e]=o):(re(u,e,n),u[e].overloadTable[r-2]=o),Ot([],s,o=>{var c=_e(n,o,t,i,a);return void 0===u[e].overloadTable?(c.argCount=r-2,u[e]=c):u[e].overloadTable[r-2]=c,[]}),[]})},ke=[],Ie=[],De=t=>{t>9&&0===--Ie[t+1]&&(Ie[t]=void 0,ke.push(t))},Me=()=>Ie.length/2-5-ke.length,Le=()=>{Ie.push(0,1,void 0,1,null,1,!0,1,!1,1),a.count_emval_handles=Me},Ue={toValue:t=>(t||Tt("Cannot use deleted val. handle = "+t),Ie[t]),toHandle:t=>{switch(t){case void 0:return 2;case null:return 4;case!0:return 6;case!1:return 8;default:{const e=ke.pop()||Ie.length;return Ie[e]=t,Ie[e+1]=1,e}}}},Fe={name:"emscripten::val",fromWireType:t=>{var e=Ue.toValue(t);return De(t),e},toWireType:(t,e)=>Ue.toHandle(e),argPackAdvance:Rt,readValueFromPointer:ht,destructorFunction:null},Ne=t=>_t(t,Fe),Be=(t,e,r)=>{switch(e){case 1:return r?function(t){return this.fromWireType(g[t])}:function(t){return this.fromWireType(w[t])};case 2:return r?function(t){return this.fromWireType(x[t>>1])}:function(t){return this.fromWireType(O[t>>1])};case 4:return r?function(t){return this.fromWireType(S[t>>2])}:function(t){return this.fromWireType(E[t>>2])};default:throw new TypeError(`invalid integer width (${e}): ${t}`)}},We=(t,e,r,n)=>{function o(){}e=Ct(e),o.values={},_t(t,{name:e,constructor:o,fromWireType:function(t){return this.constructor.values[t]},toWireType:(t,e)=>e.value,argPackAdvance:Rt,readValueFromPointer:Be(e,r,n),destructorFunction:null}),ne(e,o)},He=(t,e)=>{var r=gt[t];return void 0===r&&Tt(`${e} has unknown type ${Ee(t)}`),r},ze=(t,e,r)=>{var n=He(t,"enum");e=Ct(e);var o=n.constructor,i=Object.create(n.constructor.prototype,{value:{value:r},constructor:{value:ee(`${n.name}_${e}`,(function(){}))}});o.values[r]=i,o[e]=i},qe=t=>{if(null===t)return"null";var e=typeof t;return"object"===e||"array"===e||"function"===e?t.toString():""+t},Ve=(t,e)=>{switch(e){case 4:return function(t){return this.fromWireType(j[t>>2])};case 8:return function(t){return this.fromWireType(C[t>>3])};default:throw new TypeError(`invalid float width (${e}): ${t}`)}},Ge=(t,e,r)=>{e=Ct(e),_t(t,{name:e,fromWireType:t=>t,toWireType:(t,e)=>e,argPackAdvance:Rt,readValueFromPointer:Ve(e,r),destructorFunction:null})},Ye=(t,e,r,n,o,i,a)=>{var c=Te(e,r);t=Ct(t),t=Re(t),o=Oe(n,o),ne(t,(function(){je(`Cannot call ${t} due to unbound types`,c)}),e-1),Ot([],c,r=>{var n=[r[0],null].concat(r.slice(1));return be(t,_e(t,n,null,o,i),e-1),[]})},Je=(t,e,r)=>{switch(e){case 1:return r?t=>g[t]:t=>w[t];case 2:return r?t=>x[t>>1]:t=>O[t>>1];case 4:return r?t=>S[t>>2]:t=>E[t>>2];default:throw new TypeError(`invalid integer width (${e}): ${t}`)}},Qe=(t,e,r,n,o)=>{e=Ct(e);var i=t=>t;if(0===n){var a=32-8*r;i=t=>t<>>a}var c,u=e.includes("unsigned"),s=(t,e)=>{};c=u?function(t,e){return s(e,this.name),e>>>0}:function(t,e){return s(e,this.name),e},_t(t,{name:e,fromWireType:i,toWireType:c,argPackAdvance:Rt,readValueFromPointer:Je(e,r,0!==n),destructorFunction:null})},Xe=(t,e,r)=>{var n=[Int8Array,Uint8Array,Int16Array,Uint16Array,Int32Array,Uint32Array,Float32Array,Float64Array],o=n[e];function i(t){var e=E[t>>2],r=E[t+4>>2];return new o(g.buffer,r,e)}r=Ct(r),_t(t,{name:r,fromWireType:i,argPackAdvance:Rt,readValueFromPointer:i},{ignoreDuplicateRegistrations:!0})},Ke=(t,e)=>{Ne(t)},Ze=(t,e,r,n)=>{if(!(n>0))return 0;for(var o=r,i=r+n-1,a=0;a=55296&&c<=57343){var u=t.charCodeAt(++a);c=65536+((1023&c)<<10)|1023&u}if(c<=127){if(r>=i)break;e[r++]=c}else if(c<=2047){if(r+1>=i)break;e[r++]=192|c>>6,e[r++]=128|63&c}else if(c<=65535){if(r+2>=i)break;e[r++]=224|c>>12,e[r++]=128|c>>6&63,e[r++]=128|63&c}else{if(r+3>=i)break;e[r++]=240|c>>18,e[r++]=128|c>>12&63,e[r++]=128|c>>6&63,e[r++]=128|63&c}}return e[r]=0,r-o},tr=(t,e,r)=>Ze(t,w,e,r),er=t=>{for(var e=0,r=0;r=55296&&n<=57343?(e+=4,++r):e+=3}return e},rr=typeof TextDecoder<"u"?new TextDecoder("utf8"):void 0,nr=(t,e,r)=>{for(var n=e+r,o=e;t[o]&&!(o>=n);)++o;if(o-e>16&&t.buffer&&rr)return rr.decode(t.subarray(e,o));for(var i="";e>10,56320|1023&s)}}else i+=String.fromCharCode((31&a)<<6|c)}else i+=String.fromCharCode(a)}return i},or=(t,e)=>t?nr(w,t,e):"",ir=(t,e)=>{e=Ct(e);var r="std::string"===e;_t(t,{name:e,fromWireType(t){var e,n=E[t>>2],o=t+4;if(r)for(var i=o,a=0;a<=n;++a){var c=o+a;if(a==n||0==w[c]){var u=c-i,s=or(i,u);void 0===e?e=s:(e+="\0",e+=s),i=c+1}}else{var f=new Array(n);for(a=0;a>2]=n,r&&o)tr(e,a,n+1);else if(o)for(var c=0;c255&&(an(a),Tt("String has UTF-16 code units that do not fit in 8 bits")),w[a+c]=u}else for(c=0;c{for(var r=t,n=r>>1,o=n+e/2;!(n>=o)&&O[n];)++n;if(r=n<<1,r-t>32&&ar)return ar.decode(w.subarray(t,r));for(var i="",a=0;!(a>=e/2);++a){var c=x[t+2*a>>1];if(0==c)break;i+=String.fromCharCode(c)}return i},ur=(t,e,r)=>{var n;if(null!==(n=r)&&void 0!==n||(r=2147483647),r<2)return 0;r-=2;for(var o=e,i=r<2*t.length?r/2:t.length,a=0;a>1]=c,e+=2}return x[e>>1]=0,e-o},sr=t=>2*t.length,fr=(t,e)=>{for(var r=0,n="";!(r>=e/4);){var o=S[t+4*r>>2];if(0==o)break;if(++r,o>=65536){var i=o-65536;n+=String.fromCharCode(55296|i>>10,56320|1023&i)}else n+=String.fromCharCode(o)}return n},lr=(t,e,r)=>{var n;if(null!==(n=r)&&void 0!==n||(r=2147483647),r<4)return 0;for(var o=e,i=o+r-4,a=0;a=55296&&c<=57343){var u=t.charCodeAt(++a);c=65536+((1023&c)<<10)|1023&u}if(S[e>>2]=c,e+=4,e+4>i)break}return S[e>>2]=0,e-o},dr=t=>{for(var e=0,r=0;r=55296&&n<=57343&&++r,e+=4}return e},pr=(t,e,r)=>{var n,o,i,a;r=Ct(r),2===e?(n=cr,o=ur,a=sr,i=t=>O[t>>1]):4===e&&(n=fr,o=lr,a=dr,i=t=>E[t>>2]),_t(t,{name:r,fromWireType:t=>{for(var r,o=E[t>>2],a=t+4,c=0;c<=o;++c){var u=t+4+c*e;if(c==o||0==i(u)){var s=u-a,f=n(a,s);void 0===r?r=f:(r+="\0",r+=f),a=u+e}}return an(t),r},toWireType:(t,n)=>{"string"!=typeof n&&Tt("Cannot pass non-string to C++ string type "+r);var i=a(n),c=cn(4+i+e);return E[c>>2]=i/e,o(n,c+4,i+e),null!==t&&t.push(an,c),c},argPackAdvance:Rt,readValueFromPointer:ht,destructorFunction(t){an(t)}})},hr=(t,e,r,n,o,i)=>{dt[t]={name:Ct(e),rawConstructor:Oe(r,n),rawDestructor:Oe(o,i),fields:[]}},vr=(t,e,r,n,o,i,a,c,u,s)=>{dt[t].fields.push({fieldName:Ct(e),getterReturnType:r,getter:Oe(n,o),getterContext:i,setterArgumentType:a,setter:Oe(c,u),setterContext:s})},br=(t,e)=>{e=Ct(e),_t(t,{isVoid:!0,name:e,argPackAdvance:0,fromWireType:()=>{},toWireType:(t,e)=>{}})},mr=[],yr=(t,e,r,n)=>(t=mr[t],e=Ue.toValue(e),t(null,e,r,n)),gr={},wr=t=>{var e=gr[t];return void 0===e?Ct(t):e},xr=()=>{if("object"==typeof globalThis)return globalThis;function t(t){t.$$$embind_global$$$=t;var e="object"==typeof $$$embind_global$$$&&t.$$$embind_global$$$==t;return e||delete t.$$$embind_global$$$,e}if("object"==typeof $$$embind_global$$$||("object"==typeof n&&t(n)?$$$embind_global$$$=n:"object"==typeof self&&t(self)&&($$$embind_global$$$=self),"object"==typeof $$$embind_global$$$))return $$$embind_global$$$;throw Error("unable to get global object.")},Or=t=>0===t?Ue.toHandle(xr()):(t=wr(t),Ue.toHandle(xr()[t])),Sr=t=>{var e=mr.length;return mr.push(t),e},Er=(t,e)=>{for(var r=new Array(t),n=0;n>2],"parameter "+n);return r},jr=Reflect.construct,Cr=(t,e,r)=>{var n=[],o=t.toWireType(n,r);return n.length&&(E[e>>2]=Ue.toHandle(n)),o},Tr=(t,e,r)=>{var n=Er(t,e),o=n.shift();t--;var i=new Array(t),a=(e,a,c,u)=>{for(var s=0,f=0;ft.name).join(", ")}) => ${o.name}>`;return Sr(ee(c,a))},Pr=t=>{t>9&&(Ie[t+1]+=1)},_r=t=>{var e=Ue.toValue(t);pt(e),De(t)},Ar=(t,e)=>{t=He(t,"_emval_take_value");var r=t.readValueFromPointer(e);return Ue.toHandle(r)},Rr=()=>{W("")},$r=(t,e,r)=>w.copyWithin(t,e,e+r),kr=()=>2147483648,Ir=t=>{var e=y.buffer,r=(t-e.byteLength+65535)/65536;try{return y.grow(r),P(),1}catch{}},Dr=t=>{var e=w.length;t>>>=0;var r=kr();if(t>r)return!1;for(var n=(t,e)=>t+(e-t%e)%e,o=1;o<=4;o*=2){var i=e*(1+.2/o);i=Math.min(i,t+100663296);var a=Math.min(r,n(Math.max(t,i),65536)),c=Ir(a);if(c)return!0}return!1},Mr={},Lr=()=>u||"./this.program",Ur=()=>{if(!Ur.strings){var t=("object"==typeof navigator&&navigator.languages&&navigator.languages[0]||"C").replace("-","_")+".UTF-8",e={USER:"web_user",LOGNAME:"web_user",PATH:"/",PWD:"/",HOME:"/home/web_user",LANG:t,_:Lr()};for(var r in Mr)void 0===Mr[r]?delete e[r]:e[r]=Mr[r];var n=[];for(var r in e)n.push(`${r}=${e[r]}`);Ur.strings=n}return Ur.strings},Fr=(t,e)=>{for(var r=0;r{var r=0;return Ur().forEach((n,o)=>{var i=e+r;E[t+4*o>>2]=i,Fr(n,i),r+=n.length+1}),0},Br=(t,e)=>{var r=Ur();E[t>>2]=r.length;var n=0;return r.forEach(t=>n+=t.length+1),E[e>>2]=n,0},Wr=t=>52;function Hr(t,e,r,n,o){return 70}var zr=[null,[],[]],qr=(t,e)=>{var r=zr[t];0===e||10===e?((1===t?b:m)(nr(r,0)),r.length=0):r.push(e)},Vr=(t,e,r,n)=>{for(var o=0,i=0;i>2],c=E[e+4>>2];e+=8;for(var u=0;u>2]=o,0},Gr=t=>t,Yr=t=>t%4===0&&(t%100!==0||t%400===0),Jr=(t,e)=>{for(var r=0,n=0;n<=e;r+=t[n++]);return r},Qr=[31,29,31,30,31,30,31,31,30,31,30,31],Xr=[31,28,31,30,31,30,31,31,30,31,30,31],Kr=(t,e)=>{for(var r=new Date(t.getTime());e>0;){var n=Yr(r.getFullYear()),o=r.getMonth(),i=(n?Qr:Xr)[o];if(!(e>i-r.getDate()))return r.setDate(r.getDate()+e),r;e-=i-r.getDate()+1,r.setDate(1),o<11?r.setMonth(o+1):(r.setMonth(0),r.setFullYear(r.getFullYear()+1))}return r};function Zr(t,e,r){var n=r>0?r:er(t)+1,o=new Array(n),i=Ze(t,o,0,o.length);return e&&(o.length=i),o}var tn=(t,e)=>{g.set(t,e)},en=(t,e,r,n)=>{var o=E[n+40>>2],i={tm_sec:S[n>>2],tm_min:S[n+4>>2],tm_hour:S[n+8>>2],tm_mday:S[n+12>>2],tm_mon:S[n+16>>2],tm_year:S[n+20>>2],tm_wday:S[n+24>>2],tm_yday:S[n+28>>2],tm_isdst:S[n+32>>2],tm_gmtoff:S[n+36>>2],tm_zone:o?or(o):""},a=or(r),c={"%c":"%a %b %d %H:%M:%S %Y","%D":"%m/%d/%y","%F":"%Y-%m-%d","%h":"%b","%r":"%I:%M:%S %p","%R":"%H:%M","%T":"%H:%M:%S","%x":"%m/%d/%y","%X":"%H:%M:%S","%Ec":"%c","%EC":"%C","%Ex":"%m/%d/%y","%EX":"%H:%M:%S","%Ey":"%y","%EY":"%Y","%Od":"%d","%Oe":"%e","%OH":"%H","%OI":"%I","%Om":"%m","%OM":"%M","%OS":"%S","%Ou":"%u","%OU":"%U","%OV":"%V","%Ow":"%w","%OW":"%W","%Oy":"%y"};for(var u in c)a=a.replace(new RegExp(u,"g"),c[u]);var s=["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],f=["January","February","March","April","May","June","July","August","September","October","November","December"];function l(t,e,r){for(var n="number"==typeof t?t.toString():t||"";n.length0?1:0}var n;return 0===(n=r(t.getFullYear()-e.getFullYear()))&&0===(n=r(t.getMonth()-e.getMonth()))&&(n=r(t.getDate()-e.getDate())),n}function h(t){switch(t.getDay()){case 0:return new Date(t.getFullYear()-1,11,29);case 1:return t;case 2:return new Date(t.getFullYear(),0,3);case 3:return new Date(t.getFullYear(),0,2);case 4:return new Date(t.getFullYear(),0,1);case 5:return new Date(t.getFullYear()-1,11,31);case 6:return new Date(t.getFullYear()-1,11,30)}}function v(t){var e=Kr(new Date(t.tm_year+1900,0,1),t.tm_yday),r=new Date(e.getFullYear(),0,4),n=new Date(e.getFullYear()+1,0,4),o=h(r),i=h(n);return p(o,e)<=0?p(i,e)<=0?e.getFullYear()+1:e.getFullYear():e.getFullYear()-1}var b={"%a":t=>s[t.tm_wday].substring(0,3),"%A":t=>s[t.tm_wday],"%b":t=>f[t.tm_mon].substring(0,3),"%B":t=>f[t.tm_mon],"%C":t=>{var e=t.tm_year+1900;return d(e/100|0,2)},"%d":t=>d(t.tm_mday,2),"%e":t=>l(t.tm_mday,2," "),"%g":t=>v(t).toString().substring(2),"%G":v,"%H":t=>d(t.tm_hour,2),"%I":t=>{var e=t.tm_hour;return 0==e?e=12:e>12&&(e-=12),d(e,2)},"%j":t=>d(t.tm_mday+Jr(Yr(t.tm_year+1900)?Qr:Xr,t.tm_mon-1),3),"%m":t=>d(t.tm_mon+1,2),"%M":t=>d(t.tm_min,2),"%n":()=>"\n","%p":t=>t.tm_hour>=0&&t.tm_hour<12?"AM":"PM","%S":t=>d(t.tm_sec,2),"%t":()=>"\t","%u":t=>t.tm_wday||7,"%U":t=>{var e=t.tm_yday+7-t.tm_wday;return d(Math.floor(e/7),2)},"%V":t=>{var e=Math.floor((t.tm_yday+7-(t.tm_wday+6)%7)/7);if((t.tm_wday+371-t.tm_yday-2)%7<=2&&e++,e){if(53==e){var r=(t.tm_wday+371-t.tm_yday)%7;4!=r&&(3!=r||!Yr(t.tm_year))&&(e=1)}}else{e=52;var n=(t.tm_wday+7-t.tm_yday-1)%7;(4==n||5==n&&Yr(t.tm_year%400-1))&&e++}return d(e,2)},"%w":t=>t.tm_wday,"%W":t=>{var e=t.tm_yday+7-(t.tm_wday+6)%7;return d(Math.floor(e/7),2)},"%y":t=>(t.tm_year+1900).toString().substring(2),"%Y":t=>t.tm_year+1900,"%z":t=>{var e=t.tm_gmtoff,r=e>=0;return e=Math.abs(e)/60,e=e/60*100+e%60,(r?"+":"-")+("0000"+e).slice(-4)},"%Z":t=>t.tm_zone,"%%":()=>"%"};for(var u in a=a.replace(/%%/g,"\0\0"),b)a.includes(u)&&(a=a.replace(new RegExp(u,"g"),b[u](i)));a=a.replace(/\0\0/g,"%");var m=Zr(a,!1);return m.length>e?0:(tn(m,t),m.length-1)},rn=(t,e,r,n,o)=>en(t,e,r,n);vt=a.InternalError=class extends Error{constructor(t){super(t),this.name="InternalError"}},jt(),mt=a.BindingError=class extends Error{constructor(t){super(t),this.name="BindingError"}},Zt(),Vt(),de(),ve=a.UnboundTypeError=Se(Error,"UnboundTypeError"),Le();var nn={s:tt,u:rt,b:at,g:ct,q:ut,K:st,f:ft,Y:lt,d:ot,ha:St,U:Et,ba:$t,fa:Ce,ea:Ae,w:$e,aa:Ne,x:We,h:ze,O:Ge,P:Ye,t:Qe,o:Xe,ga:Ke,N:ir,C:pr,A:hr,ia:vr,ca:br,E:yr,ka:De,la:Or,M:Tr,Q:Pr,R:_r,da:Ar,B:Rr,$:$r,Z:Dr,W:Nr,X:Br,_:Wr,T:Hr,L:Vr,F:In,D:Sn,G:kn,m:Dn,a:gn,e:jn,p:On,k:$n,I:An,v:Pn,H:Rn,z:Ln,S:Fn,l:Cn,j:En,c:xn,n:wn,J:_n,r:Mn,i:Tn,y:Un,ja:Gr,V:rn},on=Q(),an=a._free=t=>(an=a._free=on.oa)(t),cn=a._malloc=t=>(cn=a._malloc=on.pa)(t),un=t=>(un=on.ra)(t),sn=(t,e)=>(sn=on.sa)(t,e),fn=t=>(fn=on.ta)(t),ln=()=>(ln=on.ua)(),dn=t=>(dn=on.va)(t),pn=t=>(pn=on.wa)(t),hn=t=>(hn=on.xa)(t),vn=(t,e,r)=>(vn=on.ya)(t,e,r),bn=t=>(bn=on.za)(t);a.dynCall_viijii=(t,e,r,n,o,i,c)=>(a.dynCall_viijii=on.Aa)(t,e,r,n,o,i,c),a.dynCall_jiji=(t,e,r,n,o)=>(a.dynCall_jiji=on.Ba)(t,e,r,n,o);var mn,yn=a.dynCall_jiiii=(t,e,r,n,o)=>(yn=a.dynCall_jiiii=on.Ca)(t,e,r,n,o);function gn(t,e){var r=ln();try{return ge(t)(e)}catch(n){if(dn(r),n!==n+0)throw n;sn(1,0)}}function wn(t,e,r,n){var o=ln();try{ge(t)(e,r,n)}catch(i){if(dn(o),i!==i+0)throw i;sn(1,0)}}function xn(t,e,r){var n=ln();try{ge(t)(e,r)}catch(o){if(dn(n),o!==o+0)throw o;sn(1,0)}}function On(t,e,r,n){var o=ln();try{return ge(t)(e,r,n)}catch(i){if(dn(o),i!==i+0)throw i;sn(1,0)}}function Sn(t,e,r,n,o){var i=ln();try{return ge(t)(e,r,n,o)}catch(a){if(dn(i),a!==a+0)throw a;sn(1,0)}}function En(t,e){var r=ln();try{ge(t)(e)}catch(n){if(dn(r),n!==n+0)throw n;sn(1,0)}}function jn(t,e,r){var n=ln();try{return ge(t)(e,r)}catch(o){if(dn(n),o!==o+0)throw o;sn(1,0)}}function Cn(t){var e=ln();try{ge(t)()}catch(r){if(dn(e),r!==r+0)throw r;sn(1,0)}}function Tn(t,e,r,n,o,i,a,c,u,s,f){var l=ln();try{ge(t)(e,r,n,o,i,a,c,u,s,f)}catch(d){if(dn(l),d!==d+0)throw d;sn(1,0)}}function Pn(t,e,r,n,o,i,a){var c=ln();try{return ge(t)(e,r,n,o,i,a)}catch(u){if(dn(c),u!==u+0)throw u;sn(1,0)}}function _n(t,e,r,n,o){var i=ln();try{ge(t)(e,r,n,o)}catch(a){if(dn(i),a!==a+0)throw a;sn(1,0)}}function An(t,e,r,n,o,i){var a=ln();try{return ge(t)(e,r,n,o,i)}catch(c){if(dn(a),c!==c+0)throw c;sn(1,0)}}function Rn(t,e,r,n,o,i,a,c){var u=ln();try{return ge(t)(e,r,n,o,i,a,c)}catch(s){if(dn(u),s!==s+0)throw s;sn(1,0)}}function $n(t,e,r,n,o){var i=ln();try{return ge(t)(e,r,n,o)}catch(a){if(dn(i),a!==a+0)throw a;sn(1,0)}}function kn(t,e,r,n){var o=ln();try{return ge(t)(e,r,n)}catch(i){if(dn(o),i!==i+0)throw i;sn(1,0)}}function In(t,e,r,n){var o=ln();try{return ge(t)(e,r,n)}catch(i){if(dn(o),i!==i+0)throw i;sn(1,0)}}function Dn(t){var e=ln();try{return ge(t)()}catch(r){if(dn(e),r!==r+0)throw r;sn(1,0)}}function Mn(t,e,r,n,o,i,a,c){var u=ln();try{ge(t)(e,r,n,o,i,a,c)}catch(s){if(dn(u),s!==s+0)throw s;sn(1,0)}}function Ln(t,e,r,n,o,i,a,c,u,s,f,l){var d=ln();try{return ge(t)(e,r,n,o,i,a,c,u,s,f,l)}catch(p){if(dn(d),p!==p+0)throw p;sn(1,0)}}function Un(t,e,r,n,o,i,a,c,u,s,f,l,d,p,h,v){var b=ln();try{ge(t)(e,r,n,o,i,a,c,u,s,f,l,d,p,h,v)}catch(m){if(dn(b),m!==m+0)throw m;sn(1,0)}}function Fn(t,e,r,n,o){var i=ln();try{return yn(t,e,r,n,o)}catch(a){if(dn(i),a!==a+0)throw a;sn(1,0)}}function Nn(){function t(){mn||(mn=!0,a.calledRun=!0,!T&&(k(),o(a),a.onRuntimeInitialized&&a.onRuntimeInitialized(),I()))}U>0||($(),U>0)||(a.setStatus?(a.setStatus("Running..."),setTimeout((function(){setTimeout((function(){a.setStatus("")}),1),t()}),1)):t())}if(a.dynCall_iiiiij=(t,e,r,n,o,i,c)=>(a.dynCall_iiiiij=on.Da)(t,e,r,n,o,i,c),a.dynCall_iiiiijj=(t,e,r,n,o,i,c,u,s)=>(a.dynCall_iiiiijj=on.Ea)(t,e,r,n,o,i,c,u,s),a.dynCall_iiiiiijj=(t,e,r,n,o,i,c,u,s,f)=>(a.dynCall_iiiiiijj=on.Fa)(t,e,r,n,o,i,c,u,s,f),F=function t(){mn||Nn(),mn||(F=t)},a.preInit)for("function"==typeof a.preInit&&(a.preInit=[a.preInit]);a.preInit.length>0;)a.preInit.pop()();return Nn(),r.ready}})();function T(t){return S(C,t)}async function P(t,e){return E(C,t,e)}async function _(t,e){return j(C,t,e)}const A=[["aztec","Aztec"],["code_128","Code128"],["code_39","Code39"],["code_93","Code93"],["codabar","Codabar"],["databar","DataBar"],["databar_expanded","DataBarExpanded"],["data_matrix","DataMatrix"],["dx_film_edge","DXFilmEdge"],["ean_13","EAN-13"],["ean_8","EAN-8"],["itf","ITF"],["maxi_code","MaxiCode"],["micro_qr_code","MicroQRCode"],["pdf417","PDF417"],["qr_code","QRCode"],["rm_qr_code","rMQRCode"],["upc_a","UPC-A"],["upc_e","UPC-E"],["linear_codes","Linear-Codes"],["matrix_codes","Matrix-Codes"]],R=[...A,["unknown"]].map(t=>t[0]),$=new Map(A);function k(t){for(const[e,r]of $)if(t===r)return e;return"unknown"}function I(t){if(D(t))return{width:t.naturalWidth,height:t.naturalHeight};if(M(t))return{width:t.width.baseVal.value,height:t.height.baseVal.value};if(L(t))return{width:t.videoWidth,height:t.videoHeight};if(F(t))return{width:t.width,height:t.height};if(B(t))return{width:t.displayWidth,height:t.displayHeight};if(U(t))return{width:t.width,height:t.height};if(N(t))return{width:t.width,height:t.height};throw new 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 D(t){try{return t instanceof HTMLImageElement}catch{return!1}}function M(t){try{return t instanceof SVGImageElement}catch{return!1}}function L(t){try{return t instanceof HTMLVideoElement}catch{return!1}}function U(t){try{return t instanceof HTMLCanvasElement}catch{return!1}}function F(t){try{return t instanceof ImageBitmap}catch{return!1}}function N(t){try{return t instanceof OffscreenCanvas}catch{return!1}}function B(t){try{return t instanceof VideoFrame}catch{return!1}}function W(t){try{return t instanceof Blob}catch{return!1}}function H(t){try{return t instanceof ImageData}catch{return!1}}function z(t,e){try{const r=new OffscreenCanvas(t,e);if(r.getContext("2d")instanceof OffscreenCanvasRenderingContext2D)return r;throw void 0}catch{const r=document.createElement("canvas");return r.width=t,r.height=e,r}}async function q(t){if(D(t)&&!await J(t))throw new DOMException("Failed to load or decode HTMLImageElement.","InvalidStateError");if(M(t)&&!await Q(t))throw new DOMException("Failed to load or decode SVGImageElement.","InvalidStateError");if(B(t)&&X(t))throw new DOMException("VideoFrame is closed.","InvalidStateError");if(L(t)&&(0===t.readyState||1===t.readyState))throw new DOMException("Invalid element or state.","InvalidStateError");if(F(t)&&Z(t))throw new DOMException("The image source is detached.","InvalidStateError");const{width:e,height:r}=I(t);if(0===e||0===r)return null;const n=z(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 V(t){let e;try{if(globalThis.createImageBitmap)e=await createImageBitmap(t);else{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 G(t){const{width:e,height:r}=t;if(0===e||0===r)return null;const n=t.getContext("2d");try{return n.getImageData(0,0,e,r)}catch{throw new DOMException("Source would taint origin.","SecurityError")}}async function Y(t){if(W(t))return await V(t);if(H(t)){if(K(t))throw new DOMException("The image data has been detached.","InvalidStateError");return t}return U(t)||N(t)?G(t):await q(t)}async function J(t){try{return await t.decode(),!0}catch{return!1}}async function Q(t){var e;try{return await(null==(e=t.decode)?void 0:e.call(t)),!0}catch{return!1}}function X(t){return null===t.format}function K(t){return 0===t.data.buffer.byteLength}function Z(t){return 0===t.width&&0===t.height}function tt(t,e){return t instanceof DOMException?new DOMException(`${e}: ${t.message}`,t.name):t instanceof Error?new t.constructor(`${e}: ${t.message}`):new Error(`${e}: ${t}`)}var et;class rt extends EventTarget{constructor(t={}){var e;super(),a(this,et,void 0);try{const r=null==(e=null==t?void 0:t.formats)?void 0:e.filter(t=>"unknown"!==t);if(0===(null==r?void 0:r.length))throw new TypeError("Hint option provided, but is empty.");for(const t of null!=r?r:[])if(!$.has(t))throw new TypeError(`Failed to read the 'formats' property from 'BarcodeDetectorOptions': The provided value '${t}' is not a valid enum value of type BarcodeFormat.`);c(this,et,null!=r?r:[]),T().then(t=>{this.dispatchEvent(new CustomEvent("load",{detail:t}))}).catch(t=>{this.dispatchEvent(new CustomEvent("error",{detail:t}))})}catch(r){throw tt(r,"Failed to construct 'BarcodeDetector'")}}static async getSupportedFormats(){return R.filter(t=>"unknown"!==t)}async detect(t){try{const r=await Y(t);if(null===r)return[];let n;try{n=W(r)?await P(r,{tryHarder:!0,formats:i(this,et).map(t=>$.get(t))}):await _(r,{tryHarder:!0,formats:i(this,et).map(t=>$.get(t))})}catch(e){throw console.error(e),new DOMException("Barcode detection service unavailable.","NotSupportedError")}return n.map(t=>{const{topLeft:{x:e,y:r},topRight:{x:n,y:o},bottomLeft:{x:i,y:a},bottomRight:{x:c,y:u}}=t.position,s=Math.min(e,n,i,c),f=Math.min(r,o,a,u),l=Math.max(e,n,i,c),d=Math.max(r,o,a,u);return{boundingBox:new DOMRectReadOnly(s,f,l-s,d-f),rawValue:t.text,format:k(t.format),cornerPoints:[{x:e,y:r},{x:n,y:o},{x:c,y:u},{x:i,y:a}]}})}catch(r){throw tt(r,"Failed to execute 'detect' on 'BarcodeDetector'")}}}et=new WeakMap}).call(this,r("4362"),r("c8ba"))},"7b0b":function(t,e,r){"use strict";var n=r("1d80"),o=Object;t.exports=function(t){return o(n(t))}},"7c37":function(t,e,r){"use strict";var n=r("605d");t.exports=function(t){try{if(n)return Function('return require("'+t+'")')()}catch(e){}}},"7c73":function(t,e,r){"use strict";var n,o=r("825a"),i=r("37e8"),a=r("7839"),c=r("d012"),u=r("1be4"),s=r("cc12"),f=r("f772"),l=">",d="<",p="prototype",h="script",v=f("IE_PROTO"),b=function(){},m=function(t){return d+h+l+t+d+"/"+h+l},y=function(t){t.write(m("")),t.close();var e=t.parentWindow.Object;return t=null,e},g=function(){var t,e=s("iframe"),r="java"+h+":";return e.style.display="none",u.appendChild(e),e.src=String(r),t=e.contentWindow.document,t.open(),t.write(m("document.F=Object")),t.close(),t.F},w=function(){try{n=new ActiveXObject("htmlfile")}catch(e){}w="undefined"!=typeof document?document.domain&&n?y(n):g():y(n);var t=a.length;while(t--)delete w[p][a[t]];return w()};c[v]=!0,t.exports=Object.create||function(t,e){var r;return null!==t?(b[p]=o(t),r=new b,b[p]=null,r[v]=t):r=w(),void 0===e?r:i.f(r,e)}},"7db0":function(t,e,r){"use strict";var n=r("23e7"),o=r("b727").find,i=r("44d2"),a="find",c=!0;a in[]&&Array(1)[a]((function(){c=!1})),n({target:"Array",proto:!0,forced:c},{find:function(t){return o(this,t,arguments.length>1?arguments[1]:void 0)}}),i(a)},8172:function(t,e,r){"use strict";var n=r("e065"),o=r("57b9");n("toPrimitive"),o()},"825a":function(t,e,r){"use strict";var n=r("861d"),o=String,i=TypeError;t.exports=function(t){if(n(t))return t;throw new i(o(t)+" is not an object")}},"83ab":function(t,e,r){"use strict";var n=r("d039");t.exports=!n((function(){return 7!==Object.defineProperty({},1,{get:function(){return 7}})[1]}))},8418:function(t,e,r){"use strict";var n=r("83ab"),o=r("9bf2"),i=r("5c6c");t.exports=function(t,e,r){n?o.f(t,e,i(0,r)):t[e]=r}},"861d":function(t,e,r){"use strict";var n=r("1626");t.exports=function(t){return"object"==typeof t?null!==t:n(t)}},8875:function(t,e,r){var n,o,i;(function(r,a){o=[],n=a,i="function"===typeof n?n.apply(e,o):n,void 0===i||(t.exports=i)})("undefined"!==typeof self&&self,(function(){function t(){var e=Object.getOwnPropertyDescriptor(document,"currentScript");if(!e&&"currentScript"in document&&document.currentScript)return document.currentScript;if(e&&e.get!==t&&document.currentScript)return document.currentScript;try{throw new Error}catch(p){var r,n,o,i=/.*at [^(]*\((.*):(.+):(.+)\)$/gi,a=/@([^@]*):(\d+):(\d+)\s*$/gi,c=i.exec(p.stack)||a.exec(p.stack),u=c&&c[1]||!1,s=c&&c[2]||!1,f=document.location.href.replace(document.location.hash,""),l=document.getElementsByTagName("script");u===f&&(r=document.documentElement.outerHTML,n=new RegExp("(?:[^\\n]+?\\n){0,"+(s-2)+"}[^<]*