From e0e6b6368c86b19729539059ff503c66b0e646f2 Mon Sep 17 00:00:00 2001 From: id1945 Date: Sun, 24 Nov 2024 06:26:00 +0000 Subject: [PATCH] deploy: 9e8141aed10e9824f6e42c1d64b4881df3673173 --- assets/wasm/index.d.ts | 20 ++- assets/wasm/index.js | 4 +- assets/wasm/index.js.map | 315 ++++++++++++++++++++++++++++++++++++- assets/wasm/index.mjs | 2 + assets/wasm/index.mjs.map | 316 ++++++++++++++++++++++++++++++++++++++ index.html | 2 +- main.5684d912b97fd1fc.js | 1 + main.d4416c5acecc9091.js | 1 - 8 files changed, 654 insertions(+), 7 deletions(-) create mode 100644 assets/wasm/index.mjs create mode 100644 assets/wasm/index.mjs.map create mode 100644 main.5684d912b97fd1fc.js delete mode 100644 main.d4416c5acecc9091.js diff --git a/assets/wasm/index.d.ts b/assets/wasm/index.d.ts index 01ae895..7fc56ca 100644 --- a/assets/wasm/index.d.ts +++ b/assets/wasm/index.d.ts @@ -19,7 +19,23 @@ interface ZBarInstance extends Record Promise; +/** + * Arguments used for building a `ZBarInstance` + */ +type ZBarModuleArgs = { + locateFile?: (filename: string, directory: string) => string; +}; +/** + * Causes a new `ZBarInstance` built with the specified arguments + * to be returned by subsequent `getInstance()` calls. + */ +declare function setModuleArgs(args?: ZBarModuleArgs): void; +/** + * Returns a `ZBarInstance` built with the arguments set by `setModuleArgs()`, + * or built without any arguments. + * Successive calls return the same instance until `setModuleArgs()` is called. + */ +declare function getInstance(): Promise; declare enum ZBarSymbolType { ZBAR_NONE = 0, @@ -135,4 +151,4 @@ declare const scanGrayBuffer: (buffer: ArrayBuffer, width: number, height: numbe declare const scanRGBABuffer: (buffer: ArrayBuffer, width: number, height: number, scanner?: ZBarScanner) => Promise>; declare const scanImageData: (image: ImageData, scanner?: ZBarScanner) => Promise>; -export { type Point, ZBarConfigType, ZBarImage, ZBarOrientation, ZBarScanner, ZBarSymbol, ZBarSymbolType, getDefaultScanner, getInstance, scanGrayBuffer, scanImageData, scanRGBABuffer }; +export { type Point, ZBarConfigType, ZBarImage, type ZBarModuleArgs, ZBarOrientation, ZBarScanner, ZBarSymbol, ZBarSymbolType, getDefaultScanner, getInstance, scanGrayBuffer, scanImageData, scanRGBABuffer, setModuleArgs }; \ No newline at end of file diff --git a/assets/wasm/index.js b/assets/wasm/index.js index d5e27ab..d7a9618 100644 --- a/assets/wasm/index.js +++ b/assets/wasm/index.js @@ -1,2 +1,2 @@ -var zbarWasm=function(e){"use strict";function t(e,t,r,n){return new(r||(r=Promise))((function(i,o){function s(e){try{c(n.next(e))}catch(e){o(e)}}function a(e){try{c(n.throw(e))}catch(e){o(e)}}function c(e){var t;e.done?i(e.value):(t=e.value,t instanceof r?t:new r((function(e){e(t)}))).then(s,a)}c((n=n.apply(e,t||[])).next())}))}function r(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}function n(e){if(e.__esModule)return e;var t=e.default;if("function"==typeof t){var r=function e(){return this instanceof e?Reflect.construct(t,arguments,this.constructor):t.apply(this,arguments)};r.prototype=t.prototype}else r={};return Object.defineProperty(r,"__esModule",{value:!0}),Object.keys(e).forEach((function(t){var n=Object.getOwnPropertyDescriptor(e,t);Object.defineProperty(r,t,n.get?n:{enumerable:!0,get:function(){return e[t]}})})),r}"function"==typeof SuppressedError&&SuppressedError;var i={exports:{}};const o=n(Object.freeze(Object.defineProperty({__proto__:null,default:{}},Symbol.toStringTag,{value:"Module"})));function s(e,t){for(var r=0,n=e.length-1;n>=0;n--){var i=e[n];"."===i?e.splice(n,1):".."===i?(e.splice(n,1),r++):r&&(e.splice(n,1),r--)}if(t)for(;r--;r)e.unshift("..");return e}var a=/^(\/?|)([\s\S]*?)((?:\.{1,2}|[^\/]+?|)(\.[^.\/]*|))(?:[\/]*)$/,c=function(e){return a.exec(e).slice(1)};function u(){for(var e="",t=!1,r=arguments.length-1;r>=-1&&!t;r--){var n=r>=0?arguments[r]:"/";if("string"!=typeof n)throw new TypeError("Arguments to path.resolve must be strings");n&&(e=n+"/"+e,t="/"===n.charAt(0))}return(t?"/":"")+(e=s(m(e.split("/"),(function(e){return!!e})),!t).join("/"))||"."}function f(e){var t=_(e),r="/"===R(e,-1);return(e=s(m(e.split("/"),(function(e){return!!e})),!t).join("/"))||t||(e="."),e&&r&&(e+="/"),(t?"/":"")+e}function _(e){return"/"===e.charAt(0)}function l(){return f(m(Array.prototype.slice.call(arguments,0),(function(e,t){if("string"!=typeof e)throw new TypeError("Arguments to path.join must be strings");return e})).join("/"))}function A(e,t){function r(e){for(var t=0;t=0&&""===e[r];r--);return t>r?[]:e.slice(t,r-t+1)}e=u(e).substr(1),t=u(t).substr(1);for(var n=r(e.split("/")),i=r(t.split("/")),o=Math.min(n.length,i.length),s=o,a=0;a{t=e,n=r}));var s,a,c,u=Object.assign({},i),f="object"==typeof window,_="function"==typeof importScripts,l="object"==typeof process&&"object"==typeof process.versions&&"string"==typeof process.versions.node,A="";if(l){var h=o,p=g;A=_?p.dirname(A)+"/":__dirname+"/",s=(e,t)=>(e=U(e)?new URL(e):p.normalize(e),h.readFileSync(e,t?void 0:"utf8")),c=e=>{var t=s(e,!0);return t.buffer||(t=new Uint8Array(t)),t},a=(e,t,r,n=!0)=>{e=U(e)?new URL(e):p.normalize(e),h.readFile(e,n?void 0:"utf8",((e,i)=>{e?r(e):t(n?i.buffer:i)}))},!i.thisProgram&&process.argv.length>1&&process.argv[1].replace(/\\/g,"/"),process.argv.slice(2),i.inspect=()=>"[Emscripten Module object]"}else(f||_)&&(_?A=self.location.href:"undefined"!=typeof document&&document.currentScript&&(A=document.currentScript.src),r&&(A=r),A=0!==A.indexOf("blob:")?A.substr(0,A.replace(/[?#].*/,"").lastIndexOf("/")+1):"",s=e=>{var t=new XMLHttpRequest;return t.open("GET",e,!1),t.send(null),t.responseText},_&&(c=e=>{var t=new XMLHttpRequest;return t.open("GET",e,!1),t.responseType="arraybuffer",t.send(null),new Uint8Array(t.response)}),a=(e,t,r)=>{var n=new XMLHttpRequest;n.open("GET",e,!0),n.responseType="arraybuffer",n.onload=()=>{200==n.status||0==n.status&&n.response?t(n.response):r()},n.onerror=r,n.send(null)});var d,y,m,R=i.print||console.log.bind(console),B=i.printErr||console.error.bind(console);Object.assign(i,u),u=null,i.arguments&&i.arguments,i.thisProgram&&i.thisProgram,i.quit&&i.quit,i.wasmBinary&&(d=i.wasmBinary),i.noExitRuntime,"object"!=typeof WebAssembly&&T("no native wasm support detected");var v,E,b=!1;function Z(){var e=y.buffer;i.HEAP8=new Int8Array(e),i.HEAP16=new Int16Array(e),i.HEAP32=new Int32Array(e),i.HEAPU8=v=new Uint8Array(e),i.HEAPU16=new Uint16Array(e),i.HEAPU32=E=new Uint32Array(e),i.HEAPF32=new Float32Array(e),i.HEAPF64=new Float64Array(e)}var I=[],S=[],C=[],w=0,N=null;function T(e){i.onAbort&&i.onAbort(e),B(e="Aborted("+e+")"),b=!0,e+=". Build with -sASSERTIONS for more info.";var t=new WebAssembly.RuntimeError(e);throw n(t),t}var O,P,D="data:application/octet-stream;base64,";function F(e){return e.startsWith(D)}function U(e){return e.startsWith("file://")}function G(e){if(e==O&&d)return new Uint8Array(d);if(c)return c(e);throw"both async and sync fetching of the wasm failed"}function H(e,t,r){return function(e){if(!d&&(f||_)){if("function"==typeof fetch&&!U(e))return fetch(e,{credentials:"same-origin"}).then((t=>{if(!t.ok)throw"failed to load wasm binary file at '"+e+"'";return t.arrayBuffer()})).catch((()=>G(e)));if(a)return new Promise(((t,r)=>{a(e,(e=>t(new Uint8Array(e))),r)}))}return Promise.resolve().then((()=>G(e)))}(e).then((e=>WebAssembly.instantiate(e,t))).then((e=>e)).then(r,(e=>{B("failed to asynchronously prepare wasm: "+e),T(e)}))}F(O="ngx-scanner-qrcode.wasm")||(P=O,O=i.locateFile?i.locateFile(P,A):A+P);var M,j=e=>{for(;e.length>0;)e.shift()(i)},x=e=>{var t=e-y.buffer.byteLength+65535>>>16;try{return y.grow(t),Z(),1}catch(e){}},L="undefined"!=typeof TextDecoder?new TextDecoder("utf8"):void 0,k=[null,[],[]],W=(e,t)=>{var r=k[e];0===t||10===t?((1===e?R:B)(((e,t,r)=>{for(var n=t+r,i=t;e[i]&&!(i>=n);)++i;if(i-t>16&&e.buffer&&L)return L.decode(e.subarray(t,i));for(var o="";t>10,56320|1023&u)}}else o+=String.fromCharCode((31&s)<<6|a)}else o+=String.fromCharCode(s)}return o})(r,0)),r.length=0):r.push(t)},Y={d:()=>!0,e:function(){return Date.now()},c:e=>{var t=v.length,r=2147483648;if((e>>>=0)>r)return!1;for(var n,i,o=1;o<=4;o*=2){var s=t*(1+.2/o);s=Math.min(s,e+100663296);var a=Math.min(r,(n=Math.max(e,s))+((i=65536)-n%i)%i);if(x(a))return!0}return!1},f:e=>52,b:function(e,t,r,n,i){return 70},a:(e,t,r,n)=>{for(var i=0,o=0;o>2],a=E[t+4>>2];t+=8;for(var c=0;c>2]=i,0}};function z(){function e(){M||(M=!0,i.calledRun=!0,b||(j(S),t(i),i.onRuntimeInitialized&&i.onRuntimeInitialized(),function(){if(i.postRun)for("function"==typeof i.postRun&&(i.postRun=[i.postRun]);i.postRun.length;)e=i.postRun.shift(),C.unshift(e);var e;j(C)}()))}w>0||(function(){if(i.preRun)for("function"==typeof i.preRun&&(i.preRun=[i.preRun]);i.preRun.length;)e=i.preRun.shift(),I.unshift(e);var e;j(I)}(),w>0||(i.setStatus?(i.setStatus("Running..."),setTimeout((function(){setTimeout((function(){i.setStatus("")}),1),e()}),1)):e()))}if(function(){var e,t,r,o,s={a:Y};function a(e,t){var r,n=e.exports;return y=(m=n).g,Z(),m.s,r=m.h,S.unshift(r),function(e){if(w--,i.monitorRunDependencies&&i.monitorRunDependencies(w),0==w&&N){var t=N;N=null,t()}}(),n}if(w++,i.monitorRunDependencies&&i.monitorRunDependencies(w),i.instantiateWasm)try{return i.instantiateWasm(s,a)}catch(e){B("Module.instantiateWasm callback failed with error: "+e),n(e)}(e=d,t=O,r=s,o=function(e){a(e.instance)},e||"function"!=typeof WebAssembly.instantiateStreaming||F(t)||U(t)||l||"function"!=typeof fetch?H(t,r,o):fetch(t,{credentials:"same-origin"}).then((e=>WebAssembly.instantiateStreaming(e,r).then(o,(function(e){return B("wasm streaming compile failed: "+e),B("falling back to ArrayBuffer instantiation"),H(t,r,o)}))))).catch(n)}(),i._ImageScanner_create=()=>(i._ImageScanner_create=m.i)(),i._ImageScanner_destory=e=>(i._ImageScanner_destory=m.j)(e),i._ImageScanner_set_config=(e,t,r,n)=>(i._ImageScanner_set_config=m.k)(e,t,r,n),i._ImageScanner_enable_cache=(e,t)=>(i._ImageScanner_enable_cache=m.l)(e,t),i._ImageScanner_recycle_image=(e,t)=>(i._ImageScanner_recycle_image=m.m)(e,t),i._ImageScanner_get_results=e=>(i._ImageScanner_get_results=m.n)(e),i._ImageScanner_scan=(e,t)=>(i._ImageScanner_scan=m.o)(e,t),i._Image_create=(e,t,r,n,o,s)=>(i._Image_create=m.p)(e,t,r,n,o,s),i._Image_destory=e=>(i._Image_destory=m.q)(e),i._Image_get_symbols=e=>(i._Image_get_symbols=m.r)(e),i._free=e=>(i._free=m.t)(e),i._malloc=e=>(i._malloc=m.u)(e),N=function e(){M||z(),M||(N=e)},i.preInit)for("function"==typeof i.preInit&&(i.preInit=[i.preInit]);i.preInit.length>0;)i.preInit.pop()();return z(),e.ready});e.exports=n}(i);const B=r(i.exports);let v;const E=t(void 0,void 0,void 0,(function*(){if(v=yield B(),!v)throw Error("WASM was not loaded");return v})),b=()=>t(void 0,void 0,void 0,(function*(){return yield E}));var Z,I,S;e.ZBarSymbolType=void 0,(Z=e.ZBarSymbolType||(e.ZBarSymbolType={}))[Z.ZBAR_NONE=0]="ZBAR_NONE",Z[Z.ZBAR_PARTIAL=1]="ZBAR_PARTIAL",Z[Z.ZBAR_EAN2=2]="ZBAR_EAN2",Z[Z.ZBAR_EAN5=5]="ZBAR_EAN5",Z[Z.ZBAR_EAN8=8]="ZBAR_EAN8",Z[Z.ZBAR_UPCE=9]="ZBAR_UPCE",Z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G_UNCERTAINTY",I[I.ZBAR_CFG_POSITION=128]="ZBAR_CFG_POSITION",I[I.ZBAR_CFG_TEST_INVERTED=129]="ZBAR_CFG_TEST_INVERTED",I[I.ZBAR_CFG_X_DENSITY=256]="ZBAR_CFG_X_DENSITY",I[I.ZBAR_CFG_Y_DENSITY=257]="ZBAR_CFG_Y_DENSITY",e.ZBarOrientation=void 0,(S=e.ZBarOrientation||(e.ZBarOrientation={}))[S.ZBAR_ORIENT_UNKNOWN=-1]="ZBAR_ORIENT_UNKNOWN",S[S.ZBAR_ORIENT_UP=0]="ZBAR_ORIENT_UP",S[S.ZBAR_ORIENT_RIGHT=1]="ZBAR_ORIENT_RIGHT",S[S.ZBAR_ORIENT_DOWN=2]="ZBAR_ORIENT_DOWN",S[S.ZBAR_ORIENT_LEFT=3]="ZBAR_ORIENT_LEFT";class C{constructor(e,t){this.ptr=e,this.inst=t}checkAlive(){if(!this.ptr)throw Error("Call after destroyed")}getPointer(){return this.checkAlive(),this.ptr}}class w{constructor(e,t){this.ptr=e,this.ptr32=e>>2,this.buf=t,this.HEAP8=new Int8Array(t),this.HEAPU32=new Uint32Array(t),this.HEAP32=new Int32Array(t)}}class N extends w{get type(){return this.HEAPU32[this.ptr32]}get data(){const e=this.HEAPU32[this.ptr32+4],t=this.HEAPU32[this.ptr32+5];return Int8Array.from(this.HEAP8.subarray(t,t+e))}get points(){const e=this.HEAPU32[this.ptr32+7],t=this.HEAPU32[this.ptr32+8]>>2,r=[];for(let n=0;n>16;return new this(t._Image_create(e,r,808466521,a,s,i),t)}))}destroy(){this.checkAlive(),this.inst._Image_destory(this.ptr),this.ptr=0}getSymbols(){this.checkAlive();const e=this.inst._Image_get_symbols(this.ptr);return O.createSymbolsFromPtr(e,this.inst.HEAPU8.buffer)}}class D extends C{static create(){return t(this,void 0,void 0,(function*(){const e=yield b();return new this(e._ImageScanner_create(),e)}))}destroy(){this.checkAlive(),this.inst._ImageScanner_destory(this.ptr),this.ptr=0}setConfig(e,t,r){return this.checkAlive(),this.inst._ImageScanner_set_config(this.ptr,e,t,r)}enableCache(e=!0){this.checkAlive(),this.inst._ImageScanner_enable_cache(this.ptr,e)}recycleImage(e){this.checkAlive(),this.inst._ImageScanner_recycle_image(this.ptr,e.getPointer())}getResults(){this.checkAlive();const e=this.inst._ImageScanner_get_results(this.ptr);return O.createSymbolsFromPtr(e,this.inst.HEAPU8.buffer)}scan(e){return this.checkAlive(),this.inst._ImageScanner_scan(this.ptr,e.getPointer())}}const F=()=>t(void 0,void 0,void 0,(function*(){const t=yield D.create();return t.setConfig(e.ZBarSymbolType.ZBAR_NONE,e.ZBarConfigType.ZBAR_CFG_BINARY,1),t}));let U;const G=(e,r)=>t(void 0,void 0,void 0,(function*(){void 0===r&&(r=U||(yield F()),U=r);const t=r.scan(e);if(t<0)throw Error("Scan Failed");return 0===t?[]:e.getSymbols()})),H=(e,r,n,i)=>t(void 0,void 0,void 0,(function*(){const t=yield P.createFromRGBABuffer(r,n,e),o=yield G(t,i);return t.destroy(),o}));return e.ZBarImage=P,e.ZBarScanner=D,e.ZBarSymbol=O,e.getDefaultScanner=F,e.getInstance=b,e.scanGrayBuffer=(e,r,n,i)=>t(void 0,void 0,void 0,(function*(){const t=yield P.createFromGrayBuffer(r,n,e),o=yield G(t,i);return t.destroy(),o})),e.scanImageData=(e,r)=>t(void 0,void 0,void 0,(function*(){return yield H(e.data.buffer,e.width,e.height,r)})),e.scanRGBABuffer=H,Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),e}({}); -//# sourceMappingURL=index.js.map +var zbarWasm=function(t){"use strict";function e(t,e,r,n){return new(r||(r=Promise))((function(i,o){function s(t){try{c(n.next(t))}catch(t){o(t)}}function a(t){try{c(n.throw(t))}catch(t){o(t)}}function c(t){var e;t.done?i(t.value):(e=t.value,e instanceof r?e:new r((function(t){t(e)}))).then(s,a)}c((n=n.apply(t,e||[])).next())}))}function r(t){return t&&t.__esModule&&Object.prototype.hasOwnProperty.call(t,"default")?t.default:t}function n(t){if(t.__esModule)return t;var e=t.default;if("function"==typeof e){var r=function t(){return this instanceof t?Reflect.construct(e,arguments,this.constructor):e.apply(this,arguments)};r.prototype=e.prototype}else r={};return Object.defineProperty(r,"__esModule",{value:!0}),Object.keys(t).forEach((function(e){var n=Object.getOwnPropertyDescriptor(t,e);Object.defineProperty(r,e,n.get?n:{enumerable:!0,get:function(){return t[e]}})})),r}"function"==typeof SuppressedError&&SuppressedError;var i={exports:{}};const o=n(Object.freeze(Object.defineProperty({__proto__:null,default:{}},Symbol.toStringTag,{value:"Module"})));function s(t,e){for(var r=0,n=t.length-1;n>=0;n--){var i=t[n];"."===i?t.splice(n,1):".."===i?(t.splice(n,1),r++):r&&(t.splice(n,1),r--)}if(e)for(;r--;r)t.unshift("..");return t}var a=/^(\/?|)([\s\S]*?)((?:\.{1,2}|[^\/]+?|)(\.[^.\/]*|))(?:[\/]*)$/,c=function(t){return a.exec(t).slice(1)};function u(){for(var t="",e=!1,r=arguments.length-1;r>=-1&&!e;r--){var n=r>=0?arguments[r]:"/";if("string"!=typeof n)throw new TypeError("Arguments to path.resolve must be strings");n&&(t=n+"/"+t,e="/"===n.charAt(0))}return(e?"/":"")+(t=s(m(t.split("/"),(function(t){return!!t})),!e).join("/"))||"."}function f(t){var e=_(t),r="/"===R(t,-1);return(t=s(m(t.split("/"),(function(t){return!!t})),!e).join("/"))||e||(t="."),t&&r&&(t+="/"),(e?"/":"")+t}function _(t){return"/"===t.charAt(0)}function l(){return f(m(Array.prototype.slice.call(arguments,0),(function(t,e){if("string"!=typeof t)throw new TypeError("Arguments to path.join must be strings");return t})).join("/"))}function A(t,e){function r(t){for(var e=0;e=0&&""===t[r];r--);return e>r?[]:t.slice(e,r-e+1)}t=u(t).substr(1),e=u(e).substr(1);for(var n=r(t.split("/")),i=r(e.split("/")),o=Math.min(n.length,i.length),s=o,a=0;a{e=t,n=r}));var s,a,c,u=Object.assign({},i),f="object"==typeof window,_="function"==typeof importScripts,l="object"==typeof process&&"object"==typeof process.versions&&"string"==typeof process.versions.node,A="";if(l){var h=o,p=g;A=_?p.dirname(A)+"/":__dirname+"/",s=(t,e)=>(t=U(t)?new URL(t):p.normalize(t),h.readFileSync(t,e?void 0:"utf8")),c=t=>{var e=s(t,!0);return e.buffer||(e=new Uint8Array(e)),e},a=(t,e,r,n=!0)=>{t=U(t)?new URL(t):p.normalize(t),h.readFile(t,n?void 0:"utf8",((t,i)=>{t?r(t):e(n?i.buffer:i)}))},!i.thisProgram&&process.argv.length>1&&process.argv[1].replace(/\\/g,"/"),process.argv.slice(2),i.inspect=()=>"[Emscripten Module object]"}else(f||_)&&(_?A=self.location.href:"undefined"!=typeof document&&document.currentScript&&(A=document.currentScript.src),r&&(A=r),A=0!==A.indexOf("blob:")?A.substr(0,A.replace(/[?#].*/,"").lastIndexOf("/")+1):"",s=t=>{var e=new XMLHttpRequest;return e.open("GET",t,!1),e.send(null),e.responseText},_&&(c=t=>{var e=new XMLHttpRequest;return e.open("GET",t,!1),e.responseType="arraybuffer",e.send(null),new Uint8Array(e.response)}),a=(t,e,r)=>{var n=new XMLHttpRequest;n.open("GET",t,!0),n.responseType="arraybuffer",n.onload=()=>{200==n.status||0==n.status&&n.response?e(n.response):r()},n.onerror=r,n.send(null)});var d,y,m,R=i.print||console.log.bind(console),B=i.printErr||console.error.bind(console);Object.assign(i,u),u=null,i.arguments&&i.arguments,i.thisProgram&&i.thisProgram,i.quit&&i.quit,i.wasmBinary&&(d=i.wasmBinary),i.noExitRuntime,"object"!=typeof WebAssembly&&T("no native wasm support detected");var v,E,b=!1;function Z(){var t=y.buffer;i.HEAP8=new Int8Array(t),i.HEAP16=new Int16Array(t),i.HEAP32=new Int32Array(t),i.HEAPU8=v=new Uint8Array(t),i.HEAPU16=new Uint16Array(t),i.HEAPU32=E=new Uint32Array(t),i.HEAPF32=new Float32Array(t),i.HEAPF64=new Float64Array(t)}var I=[],S=[],C=[],w=0,N=null;function T(t){i.onAbort&&i.onAbort(t),B(t="Aborted("+t+")"),b=!0,t+=". Build with -sASSERTIONS for more info.";var e=new WebAssembly.RuntimeError(t);throw n(e),e}var O,P,D="data:application/octet-stream;base64,";function F(t){return t.startsWith(D)}function U(t){return t.startsWith("file://")}function G(t){if(t==O&&d)return new Uint8Array(d);if(c)return c(t);throw"both async and sync fetching of the wasm failed"}function H(t,e,r){return function(t){if(!d&&(f||_)){if("function"==typeof fetch&&!U(t))return fetch(t,{credentials:"same-origin"}).then((e=>{if(!e.ok)throw"failed to load wasm binary file at '"+t+"'";return e.arrayBuffer()})).catch((()=>G(t)));if(a)return new Promise(((e,r)=>{a(t,(t=>e(new Uint8Array(t))),r)}))}return Promise.resolve().then((()=>G(t)))}(t).then((t=>WebAssembly.instantiate(t,e))).then((t=>t)).then(r,(t=>{B("failed to asynchronously prepare wasm: "+t),T(t)}))}F(O="ngx-scanner-qrcode.wasm")||(P=O,O=i.locateFile?i.locateFile(P,A):A+P);var M,j=t=>{for(;t.length>0;)t.shift()(i)},x=t=>{var e=t-y.buffer.byteLength+65535>>>16;try{return y.grow(e),Z(),1}catch(t){}},L="undefined"!=typeof TextDecoder?new TextDecoder("utf8"):void 0,k=[null,[],[]],W=(t,e)=>{var r=k[t];0===e||10===e?((1===t?R:B)(((t,e,r)=>{for(var n=e+r,i=e;t[i]&&!(i>=n);)++i;if(i-e>16&&t.buffer&&L)return L.decode(t.subarray(e,i));for(var o="";e>10,56320|1023&u)}}else o+=String.fromCharCode((31&s)<<6|a)}else o+=String.fromCharCode(s)}return o})(r,0)),r.length=0):r.push(e)},Y={d:()=>!0,e:function(){return Date.now()},c:t=>{var e=v.length,r=2147483648;if((t>>>=0)>r)return!1;for(var n,i,o=1;o<=4;o*=2){var s=e*(1+.2/o);s=Math.min(s,t+100663296);var a=Math.min(r,(n=Math.max(t,s))+((i=65536)-n%i)%i);if(x(a))return!0}return!1},f:t=>52,b:function(t,e,r,n,i){return 70},a:(t,e,r,n)=>{for(var i=0,o=0;o>2],a=E[e+4>>2];e+=8;for(var c=0;c>2]=i,0}};function z(){function t(){M||(M=!0,i.calledRun=!0,b||(j(S),e(i),i.onRuntimeInitialized&&i.onRuntimeInitialized(),function(){if(i.postRun)for("function"==typeof i.postRun&&(i.postRun=[i.postRun]);i.postRun.length;)t=i.postRun.shift(),C.unshift(t);var t;j(C)}()))}w>0||(function(){if(i.preRun)for("function"==typeof i.preRun&&(i.preRun=[i.preRun]);i.preRun.length;)t=i.preRun.shift(),I.unshift(t);var t;j(I)}(),w>0||(i.setStatus?(i.setStatus("Running..."),setTimeout((function(){setTimeout((function(){i.setStatus("")}),1),t()}),1)):t()))}if(function(){var t,e,r,o,s={a:Y};function a(t,e){var r,n=t.exports;return y=(m=n).g,Z(),m.s,r=m.h,S.unshift(r),function(t){if(w--,i.monitorRunDependencies&&i.monitorRunDependencies(w),0==w&&N){var e=N;N=null,e()}}(),n}if(w++,i.monitorRunDependencies&&i.monitorRunDependencies(w),i.instantiateWasm)try{return i.instantiateWasm(s,a)}catch(t){B("Module.instantiateWasm callback failed with error: "+t),n(t)}(t=d,e=O,r=s,o=function(t){a(t.instance)},t||"function"!=typeof WebAssembly.instantiateStreaming||F(e)||U(e)||l||"function"!=typeof fetch?H(e,r,o):fetch(e,{credentials:"same-origin"}).then((t=>WebAssembly.instantiateStreaming(t,r).then(o,(function(t){return B("wasm streaming compile failed: "+t),B("falling back to ArrayBuffer instantiation"),H(e,r,o)}))))).catch(n)}(),i._ImageScanner_create=()=>(i._ImageScanner_create=m.i)(),i._ImageScanner_destory=t=>(i._ImageScanner_destory=m.j)(t),i._ImageScanner_set_config=(t,e,r,n)=>(i._ImageScanner_set_config=m.k)(t,e,r,n),i._ImageScanner_enable_cache=(t,e)=>(i._ImageScanner_enable_cache=m.l)(t,e),i._ImageScanner_recycle_image=(t,e)=>(i._ImageScanner_recycle_image=m.m)(t,e),i._ImageScanner_get_results=t=>(i._ImageScanner_get_results=m.n)(t),i._ImageScanner_scan=(t,e)=>(i._ImageScanner_scan=m.o)(t,e),i._Image_create=(t,e,r,n,o,s)=>(i._Image_create=m.p)(t,e,r,n,o,s),i._Image_destory=t=>(i._Image_destory=m.q)(t),i._Image_get_symbols=t=>(i._Image_get_symbols=m.r)(t),i._free=t=>(i._free=m.t)(t),i._malloc=t=>(i._malloc=m.u)(t),N=function t(){M||z(),M||(N=t)},i.preInit)for("function"==typeof i.preInit&&(i.preInit=[i.preInit]);i.preInit.length>0;)i.preInit.pop()();return z(),t.ready});t.exports=n}(i);const B=r(i.exports);let v;function E(t={}){v=function(){return e(this,void 0,void 0,(function*(){const e=yield B(t);if(e)return e;throw Error("WASM was not loaded")}))}()}function b(){return e(this,void 0,void 0,(function*(){return v||E(),yield v}))}var Z,I,S;t.ZBarSymbolType=void 0,(Z=t.ZBarSymbolType||(t.ZBarSymbolType={}))[Z.ZBAR_NONE=0]="ZBAR_NONE",Z[Z.ZBAR_PARTIAL=1]="ZBAR_PARTIAL",Z[Z.ZBAR_EAN2=2]="ZBAR_EAN2",Z[Z.ZBAR_EAN5=5]="ZBAR_EAN5",Z[Z.ZBAR_EAN8=8]="ZBAR_EAN8",Z[Z.ZBAR_UPCE=9]="ZBAR_UPCE",Z[Z.ZBAR_ISBN10=10]="ZBAR_ISBN10",Z[Z.ZBAR_UPCA=12]="ZBAR_UPCA",Z[Z.ZBAR_EAN13=13]="ZBAR_EAN13",Z[Z.ZBAR_ISBN13=14]="ZBAR_ISBN13",Z[Z.ZBAR_COMPOSITE=15]="ZBAR_COMPOSITE",Z[Z.ZBAR_I25=25]="ZBAR_I25",Z[Z.ZBAR_DATABAR=34]="ZBAR_DATABAR",Z[Z.ZBAR_DATABAR_EXP=35]="ZBAR_DATABAR_EXP",Z[Z.ZBAR_CODABAR=38]="ZBAR_CODABAR",Z[Z.ZBAR_CODE39=39]="ZBAR_CODE39",Z[Z.ZBAR_PDF417=57]="ZBAR_PDF417",Z[Z.ZBAR_QRCODE=64]="ZBAR_QRCODE",Z[Z.ZBAR_SQCODE=80]="ZBAR_SQCODE",Z[Z.ZBAR_CODE93=93]="ZBAR_CODE93",Z[Z.ZBAR_CODE128=128]="ZBAR_CODE128",Z[Z.ZBAR_SYMBOL=255]="ZBAR_SYMBOL",Z[Z.ZBAR_ADDON2=512]="ZBAR_ADDON2",Z[Z.ZBAR_ADDON5=1280]="ZBAR_ADDON5",Z[Z.ZBAR_ADDON=1792]="ZBAR_ADDON",t.ZBarConfigType=void 0,(I=t.ZBarConfigType||(t.ZBarConfigType={}))[I.ZBAR_CFG_ENABLE=0]="ZBAR_CFG_ENABLE",I[I.ZBAR_CFG_ADD_CHECK=1]="ZBAR_CFG_ADD_CHECK",I[I.ZBAR_CFG_EMIT_CHECK=2]="ZBAR_CFG_EMIT_CHECK",I[I.ZBAR_CFG_ASCII=3]="ZBAR_CFG_ASCII",I[I.ZBAR_CFG_BINARY=4]="ZBAR_CFG_BINARY",I[I.ZBAR_CFG_NUM=5]="ZBAR_CFG_NUM",I[I.ZBAR_CFG_MIN_LEN=32]="ZBAR_CFG_MIN_LEN",I[I.ZBAR_CFG_MAX_LEN=33]="ZBAR_CFG_MAX_LEN",I[I.ZBAR_CFG_UNCERTAINTY=64]="ZBAR_CFG_UNCERTAINTY",I[I.ZBAR_CFG_POSITION=128]="ZBAR_CFG_POSITION",I[I.ZBAR_CFG_TEST_INVERTED=129]="ZBAR_CFG_TEST_INVERTED",I[I.ZBAR_CFG_X_DENSITY=256]="ZBAR_CFG_X_DENSITY",I[I.ZBAR_CFG_Y_DENSITY=257]="ZBAR_CFG_Y_DENSITY",t.ZBarOrientation=void 0,(S=t.ZBarOrientation||(t.ZBarOrientation={}))[S.ZBAR_ORIENT_UNKNOWN=-1]="ZBAR_ORIENT_UNKNOWN",S[S.ZBAR_ORIENT_UP=0]="ZBAR_ORIENT_UP",S[S.ZBAR_ORIENT_RIGHT=1]="ZBAR_ORIENT_RIGHT",S[S.ZBAR_ORIENT_DOWN=2]="ZBAR_ORIENT_DOWN",S[S.ZBAR_ORIENT_LEFT=3]="ZBAR_ORIENT_LEFT";class C{constructor(t,e){this.ptr=t,this.inst=e}checkAlive(){if(!this.ptr)throw Error("Call after destroyed")}getPointer(){return this.checkAlive(),this.ptr}}class w{constructor(t,e){this.ptr=t,this.ptr32=t>>2,this.buf=e,this.HEAP8=new Int8Array(e),this.HEAPU32=new Uint32Array(e),this.HEAP32=new Int32Array(e)}}class N extends w{get type(){return this.HEAPU32[this.ptr32]}get data(){const t=this.HEAPU32[this.ptr32+4],e=this.HEAPU32[this.ptr32+5];return Int8Array.from(this.HEAP8.subarray(e,e+t))}get points(){const t=this.HEAPU32[this.ptr32+7],e=this.HEAPU32[this.ptr32+8]>>2,r=[];for(let n=0;n>16;return new this(e._Image_create(t,r,808466521,a,s,i),e)}))}destroy(){this.checkAlive(),this.inst._Image_destory(this.ptr),this.ptr=0}getSymbols(){this.checkAlive();const t=this.inst._Image_get_symbols(this.ptr);return O.createSymbolsFromPtr(t,this.inst.HEAPU8.buffer)}}class D extends C{static create(){return e(this,void 0,void 0,(function*(){const t=yield b();return new this(t._ImageScanner_create(),t)}))}destroy(){this.checkAlive(),this.inst._ImageScanner_destory(this.ptr),this.ptr=0}setConfig(t,e,r){return this.checkAlive(),this.inst._ImageScanner_set_config(this.ptr,t,e,r)}enableCache(t=!0){this.checkAlive(),this.inst._ImageScanner_enable_cache(this.ptr,t)}recycleImage(t){this.checkAlive(),this.inst._ImageScanner_recycle_image(this.ptr,t.getPointer())}getResults(){this.checkAlive();const t=this.inst._ImageScanner_get_results(this.ptr);return O.createSymbolsFromPtr(t,this.inst.HEAPU8.buffer)}scan(t){return this.checkAlive(),this.inst._ImageScanner_scan(this.ptr,t.getPointer())}}const F=()=>e(void 0,void 0,void 0,(function*(){const e=yield D.create();return e.setConfig(t.ZBarSymbolType.ZBAR_NONE,t.ZBarConfigType.ZBAR_CFG_BINARY,1),e}));let U;const G=(t,r)=>e(void 0,void 0,void 0,(function*(){void 0===r&&(r=U||(yield F()),U=r);const e=r.scan(t);if(e<0)throw Error("Scan Failed");return 0===e?[]:t.getSymbols()})),H=(t,r,n,i)=>e(void 0,void 0,void 0,(function*(){const e=yield P.createFromRGBABuffer(r,n,t),o=yield G(e,i);return e.destroy(),o}));return t.ZBarImage=P,t.ZBarScanner=D,t.ZBarSymbol=O,t.getDefaultScanner=F,t.getInstance=b,t.scanGrayBuffer=(t,r,n,i)=>e(void 0,void 0,void 0,(function*(){const e=yield P.createFromGrayBuffer(r,n,t),o=yield G(e,i);return e.destroy(),o})),t.scanImageData=(t,r)=>e(void 0,void 0,void 0,(function*(){return yield H(t.data.buffer,t.width,t.height,r)})),t.scanRGBABuffer=H,t.setModuleArgs=E,Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}),t}({}); +//# sourceMappingURL=index.js.map \ No newline at end of file diff --git a/assets/wasm/index.js.map b/assets/wasm/index.js.map index 429ca13..6eb41b0 100644 --- a/assets/wasm/index.js.map +++ b/assets/wasm/index.js.map @@ -1 +1,314 @@ -{"version":3,"file":"index.js","sources":["../build/zbar.js","../src/instance.ts","../src/enum.ts","../src/CppObject.ts","../src/ZBarSymbol.ts","../src/ZBarImage.ts","../src/ZBarScanner.ts","../src/module.ts"],"sourcesContent":["\nvar zbarWasm = (() => {\n var _scriptDir = typeof document !== 'undefined' && document.currentScript ? document.currentScript.src : undefined;\n if (typeof __filename !== 'undefined') _scriptDir = _scriptDir || __filename;\n return (\nfunction(moduleArg = {}) {\n\nvar Module=moduleArg;var readyPromiseResolve,readyPromiseReject;Module[\"ready\"]=new Promise((resolve,reject)=>{readyPromiseResolve=resolve;readyPromiseReject=reject});var moduleOverrides=Object.assign({},Module);var arguments_=[];var thisProgram=\"./this.program\";var quit_=(status,toThrow)=>{throw toThrow};var ENVIRONMENT_IS_WEB=typeof window==\"object\";var ENVIRONMENT_IS_WORKER=typeof importScripts==\"function\";var ENVIRONMENT_IS_NODE=typeof process==\"object\"&&typeof process.versions==\"object\"&&typeof process.versions.node==\"string\";var scriptDirectory=\"\";function locateFile(path){if(Module[\"locateFile\"]){return Module[\"locateFile\"](path,scriptDirectory)}return scriptDirectory+path}var read_,readAsync,readBinary,setWindowTitle;if(ENVIRONMENT_IS_NODE){var fs=require(\"fs\");var nodePath=require(\"path\");if(ENVIRONMENT_IS_WORKER){scriptDirectory=nodePath.dirname(scriptDirectory)+\"/\"}else{scriptDirectory=__dirname+\"/\"}read_=(filename,binary)=>{filename=isFileURI(filename)?new URL(filename):nodePath.normalize(filename);return fs.readFileSync(filename,binary?undefined:\"utf8\")};readBinary=filename=>{var ret=read_(filename,true);if(!ret.buffer){ret=new Uint8Array(ret)}return ret};readAsync=(filename,onload,onerror,binary=true)=>{filename=isFileURI(filename)?new URL(filename):nodePath.normalize(filename);fs.readFile(filename,binary?undefined:\"utf8\",(err,data)=>{if(err)onerror(err);else onload(binary?data.buffer:data)})};if(!Module[\"thisProgram\"]&&process.argv.length>1){thisProgram=process.argv[1].replace(/\\\\/g,\"/\")}arguments_=process.argv.slice(2);quit_=(status,toThrow)=>{process.exitCode=status;throw toThrow};Module[\"inspect\"]=()=>\"[Emscripten Module object]\"}else if(ENVIRONMENT_IS_WEB||ENVIRONMENT_IS_WORKER){if(ENVIRONMENT_IS_WORKER){scriptDirectory=self.location.href}else if(typeof document!=\"undefined\"&&document.currentScript){scriptDirectory=document.currentScript.src}if(_scriptDir){scriptDirectory=_scriptDir}if(scriptDirectory.indexOf(\"blob:\")!==0){scriptDirectory=scriptDirectory.substr(0,scriptDirectory.replace(/[?#].*/,\"\").lastIndexOf(\"/\")+1)}else{scriptDirectory=\"\"}{read_=url=>{var xhr=new XMLHttpRequest;xhr.open(\"GET\",url,false);xhr.send(null);return xhr.responseText};if(ENVIRONMENT_IS_WORKER){readBinary=url=>{var xhr=new XMLHttpRequest;xhr.open(\"GET\",url,false);xhr.responseType=\"arraybuffer\";xhr.send(null);return new Uint8Array(xhr.response)}}readAsync=(url,onload,onerror)=>{var xhr=new XMLHttpRequest;xhr.open(\"GET\",url,true);xhr.responseType=\"arraybuffer\";xhr.onload=()=>{if(xhr.status==200||xhr.status==0&&xhr.response){onload(xhr.response);return}onerror()};xhr.onerror=onerror;xhr.send(null)}}setWindowTitle=title=>document.title=title}else{}var out=Module[\"print\"]||console.log.bind(console);var err=Module[\"printErr\"]||console.error.bind(console);Object.assign(Module,moduleOverrides);moduleOverrides=null;if(Module[\"arguments\"])arguments_=Module[\"arguments\"];if(Module[\"thisProgram\"])thisProgram=Module[\"thisProgram\"];if(Module[\"quit\"])quit_=Module[\"quit\"];var wasmBinary;if(Module[\"wasmBinary\"])wasmBinary=Module[\"wasmBinary\"];var noExitRuntime=Module[\"noExitRuntime\"]||true;if(typeof WebAssembly!=\"object\"){abort(\"no native wasm support detected\")}var wasmMemory;var wasmExports;var ABORT=false;var EXITSTATUS;var HEAP8,HEAPU8,HEAP16,HEAPU16,HEAP32,HEAPU32,HEAPF32,HEAPF64;function updateMemoryViews(){var b=wasmMemory.buffer;Module[\"HEAP8\"]=HEAP8=new Int8Array(b);Module[\"HEAP16\"]=HEAP16=new Int16Array(b);Module[\"HEAP32\"]=HEAP32=new Int32Array(b);Module[\"HEAPU8\"]=HEAPU8=new Uint8Array(b);Module[\"HEAPU16\"]=HEAPU16=new Uint16Array(b);Module[\"HEAPU32\"]=HEAPU32=new Uint32Array(b);Module[\"HEAPF32\"]=HEAPF32=new Float32Array(b);Module[\"HEAPF64\"]=HEAPF64=new Float64Array(b)}var wasmTable;var __ATPRERUN__=[];var __ATINIT__=[];var __ATPOSTRUN__=[];var runtimeInitialized=false;function preRun(){if(Module[\"preRun\"]){if(typeof Module[\"preRun\"]==\"function\")Module[\"preRun\"]=[Module[\"preRun\"]];while(Module[\"preRun\"].length){addOnPreRun(Module[\"preRun\"].shift())}}callRuntimeCallbacks(__ATPRERUN__)}function initRuntime(){runtimeInitialized=true;callRuntimeCallbacks(__ATINIT__)}function postRun(){if(Module[\"postRun\"]){if(typeof Module[\"postRun\"]==\"function\")Module[\"postRun\"]=[Module[\"postRun\"]];while(Module[\"postRun\"].length){addOnPostRun(Module[\"postRun\"].shift())}}callRuntimeCallbacks(__ATPOSTRUN__)}function addOnPreRun(cb){__ATPRERUN__.unshift(cb)}function addOnInit(cb){__ATINIT__.unshift(cb)}function addOnPostRun(cb){__ATPOSTRUN__.unshift(cb)}var runDependencies=0;var runDependencyWatcher=null;var dependenciesFulfilled=null;function addRunDependency(id){runDependencies++;if(Module[\"monitorRunDependencies\"]){Module[\"monitorRunDependencies\"](runDependencies)}}function removeRunDependency(id){runDependencies--;if(Module[\"monitorRunDependencies\"]){Module[\"monitorRunDependencies\"](runDependencies)}if(runDependencies==0){if(runDependencyWatcher!==null){clearInterval(runDependencyWatcher);runDependencyWatcher=null}if(dependenciesFulfilled){var callback=dependenciesFulfilled;dependenciesFulfilled=null;callback()}}}function abort(what){if(Module[\"onAbort\"]){Module[\"onAbort\"](what)}what=\"Aborted(\"+what+\")\";err(what);ABORT=true;EXITSTATUS=1;what+=\". Build with -sASSERTIONS for more info.\";var e=new WebAssembly.RuntimeError(what);readyPromiseReject(e);throw e}var dataURIPrefix=\"data:application/octet-stream;base64,\";function isDataURI(filename){return filename.startsWith(dataURIPrefix)}function isFileURI(filename){return filename.startsWith(\"file://\")}var wasmBinaryFile;wasmBinaryFile=\"ngx-scanner-qrcode.wasm\";if(!isDataURI(wasmBinaryFile)){wasmBinaryFile=locateFile(wasmBinaryFile)}function getBinarySync(file){if(file==wasmBinaryFile&&wasmBinary){return new Uint8Array(wasmBinary)}if(readBinary){return readBinary(file)}throw\"both async and sync fetching of the wasm failed\"}function getBinaryPromise(binaryFile){if(!wasmBinary&&(ENVIRONMENT_IS_WEB||ENVIRONMENT_IS_WORKER)){if(typeof fetch==\"function\"&&!isFileURI(binaryFile)){return fetch(binaryFile,{credentials:\"same-origin\"}).then(response=>{if(!response[\"ok\"]){throw\"failed to load wasm binary file at '\"+binaryFile+\"'\"}return response[\"arrayBuffer\"]()}).catch(()=>getBinarySync(binaryFile))}else if(readAsync){return new Promise((resolve,reject)=>{readAsync(binaryFile,response=>resolve(new Uint8Array(response)),reject)})}}return Promise.resolve().then(()=>getBinarySync(binaryFile))}function instantiateArrayBuffer(binaryFile,imports,receiver){return getBinaryPromise(binaryFile).then(binary=>WebAssembly.instantiate(binary,imports)).then(instance=>instance).then(receiver,reason=>{err(\"failed to asynchronously prepare wasm: \"+reason);abort(reason)})}function instantiateAsync(binary,binaryFile,imports,callback){if(!binary&&typeof WebAssembly.instantiateStreaming==\"function\"&&!isDataURI(binaryFile)&&!isFileURI(binaryFile)&&!ENVIRONMENT_IS_NODE&&typeof fetch==\"function\"){return fetch(binaryFile,{credentials:\"same-origin\"}).then(response=>{var result=WebAssembly.instantiateStreaming(response,imports);return result.then(callback,function(reason){err(\"wasm streaming compile failed: \"+reason);err(\"falling back to ArrayBuffer instantiation\");return instantiateArrayBuffer(binaryFile,imports,callback)})})}return instantiateArrayBuffer(binaryFile,imports,callback)}function createWasm(){var info={\"a\":wasmImports};function receiveInstance(instance,module){var exports=instance.exports;wasmExports=exports;wasmMemory=wasmExports[\"g\"];updateMemoryViews();wasmTable=wasmExports[\"s\"];addOnInit(wasmExports[\"h\"]);removeRunDependency(\"wasm-instantiate\");return exports}addRunDependency(\"wasm-instantiate\");function receiveInstantiationResult(result){receiveInstance(result[\"instance\"])}if(Module[\"instantiateWasm\"]){try{return Module[\"instantiateWasm\"](info,receiveInstance)}catch(e){err(\"Module.instantiateWasm callback failed with error: \"+e);readyPromiseReject(e)}}instantiateAsync(wasmBinary,wasmBinaryFile,info,receiveInstantiationResult).catch(readyPromiseReject);return{}}var callRuntimeCallbacks=callbacks=>{while(callbacks.length>0){callbacks.shift()(Module)}};var nowIsMonotonic=true;var __emscripten_get_now_is_monotonic=()=>nowIsMonotonic;function _emscripten_date_now(){return Date.now()}var _emscripten_get_now;_emscripten_get_now=()=>performance.now();var getHeapMax=()=>2147483648;var growMemory=size=>{var b=wasmMemory.buffer;var pages=size-b.byteLength+65535>>>16;try{wasmMemory.grow(pages);updateMemoryViews();return 1}catch(e){}};var _emscripten_resize_heap=requestedSize=>{var oldSize=HEAPU8.length;requestedSize>>>=0;var maxHeapSize=getHeapMax();if(requestedSize>maxHeapSize){return false}var alignUp=(x,multiple)=>x+(multiple-x%multiple)%multiple;for(var cutDown=1;cutDown<=4;cutDown*=2){var overGrownHeapSize=oldSize*(1+.2/cutDown);overGrownHeapSize=Math.min(overGrownHeapSize,requestedSize+100663296);var newSize=Math.min(maxHeapSize,alignUp(Math.max(requestedSize,overGrownHeapSize),65536));var replacement=growMemory(newSize);if(replacement){return true}}return false};var UTF8Decoder=typeof TextDecoder!=\"undefined\"?new TextDecoder(\"utf8\"):undefined;var UTF8ArrayToString=(heapOrArray,idx,maxBytesToRead)=>{var endIdx=idx+maxBytesToRead;var endPtr=idx;while(heapOrArray[endPtr]&&!(endPtr>=endIdx))++endPtr;if(endPtr-idx>16&&heapOrArray.buffer&&UTF8Decoder){return UTF8Decoder.decode(heapOrArray.subarray(idx,endPtr))}var str=\"\";while(idx>10,56320|ch&1023)}}return str};var UTF8ToString=(ptr,maxBytesToRead)=>ptr?UTF8ArrayToString(HEAPU8,ptr,maxBytesToRead):\"\";var SYSCALLS={varargs:undefined,get(){SYSCALLS.varargs+=4;var ret=HEAP32[SYSCALLS.varargs-4>>2];return ret},getStr(ptr){var ret=UTF8ToString(ptr);return ret}};var _fd_close=fd=>52;function convertI32PairToI53Checked(lo,hi){return hi+2097152>>>0<4194305-!!lo?(lo>>>0)+hi*4294967296:NaN}function _fd_seek(fd,offset_low,offset_high,whence,newOffset){var offset=convertI32PairToI53Checked(offset_low,offset_high);return 70}var printCharBuffers=[null,[],[]];var printChar=(stream,curr)=>{var buffer=printCharBuffers[stream];if(curr===0||curr===10){(stream===1?out:err)(UTF8ArrayToString(buffer,0));buffer.length=0}else{buffer.push(curr)}};var _fd_write=(fd,iov,iovcnt,pnum)=>{var num=0;for(var i=0;i>2];var len=HEAPU32[iov+4>>2];iov+=8;for(var j=0;j>2]=num;return 0};var wasmImports={d:__emscripten_get_now_is_monotonic,e:_emscripten_date_now,c:_emscripten_resize_heap,f:_fd_close,b:_fd_seek,a:_fd_write};var asm=createWasm();var ___wasm_call_ctors=()=>(___wasm_call_ctors=wasmExports[\"h\"])();var _ImageScanner_create=Module[\"_ImageScanner_create\"]=()=>(_ImageScanner_create=Module[\"_ImageScanner_create\"]=wasmExports[\"i\"])();var _ImageScanner_destory=Module[\"_ImageScanner_destory\"]=a0=>(_ImageScanner_destory=Module[\"_ImageScanner_destory\"]=wasmExports[\"j\"])(a0);var _ImageScanner_set_config=Module[\"_ImageScanner_set_config\"]=(a0,a1,a2,a3)=>(_ImageScanner_set_config=Module[\"_ImageScanner_set_config\"]=wasmExports[\"k\"])(a0,a1,a2,a3);var _ImageScanner_enable_cache=Module[\"_ImageScanner_enable_cache\"]=(a0,a1)=>(_ImageScanner_enable_cache=Module[\"_ImageScanner_enable_cache\"]=wasmExports[\"l\"])(a0,a1);var _ImageScanner_recycle_image=Module[\"_ImageScanner_recycle_image\"]=(a0,a1)=>(_ImageScanner_recycle_image=Module[\"_ImageScanner_recycle_image\"]=wasmExports[\"m\"])(a0,a1);var _ImageScanner_get_results=Module[\"_ImageScanner_get_results\"]=a0=>(_ImageScanner_get_results=Module[\"_ImageScanner_get_results\"]=wasmExports[\"n\"])(a0);var _ImageScanner_scan=Module[\"_ImageScanner_scan\"]=(a0,a1)=>(_ImageScanner_scan=Module[\"_ImageScanner_scan\"]=wasmExports[\"o\"])(a0,a1);var _Image_create=Module[\"_Image_create\"]=(a0,a1,a2,a3,a4,a5)=>(_Image_create=Module[\"_Image_create\"]=wasmExports[\"p\"])(a0,a1,a2,a3,a4,a5);var _Image_destory=Module[\"_Image_destory\"]=a0=>(_Image_destory=Module[\"_Image_destory\"]=wasmExports[\"q\"])(a0);var _Image_get_symbols=Module[\"_Image_get_symbols\"]=a0=>(_Image_get_symbols=Module[\"_Image_get_symbols\"]=wasmExports[\"r\"])(a0);var ___errno_location=()=>(___errno_location=wasmExports[\"__errno_location\"])();var _free=Module[\"_free\"]=a0=>(_free=Module[\"_free\"]=wasmExports[\"t\"])(a0);var _malloc=Module[\"_malloc\"]=a0=>(_malloc=Module[\"_malloc\"]=wasmExports[\"u\"])(a0);var calledRun;dependenciesFulfilled=function runCaller(){if(!calledRun)run();if(!calledRun)dependenciesFulfilled=runCaller};function run(){if(runDependencies>0){return}preRun();if(runDependencies>0){return}function doRun(){if(calledRun)return;calledRun=true;Module[\"calledRun\"]=true;if(ABORT)return;initRuntime();readyPromiseResolve(Module);if(Module[\"onRuntimeInitialized\"])Module[\"onRuntimeInitialized\"]();postRun()}if(Module[\"setStatus\"]){Module[\"setStatus\"](\"Running...\");setTimeout(function(){setTimeout(function(){Module[\"setStatus\"](\"\")},1);doRun()},1)}else{doRun()}}if(Module[\"preInit\"]){if(typeof Module[\"preInit\"]==\"function\")Module[\"preInit\"]=[Module[\"preInit\"]];while(Module[\"preInit\"].length>0){Module[\"preInit\"].pop()()}}run();\n\n\n return moduleArg.ready\n}\n\n);\n})();\nif (typeof exports === 'object' && typeof module === 'object')\n module.exports = zbarWasm;\nelse if (typeof define === 'function' && define['amd'])\n define([], () => zbarWasm);\n","import zbarJs from 'zbarJs'\nimport type ZBarInstance from './ZBarInstance'\n\nlet zbarInstance: ZBarInstance\n\nconst zbarInstancePromise = (async () => {\n zbarInstance = await zbarJs()\n if (!zbarInstance) {\n throw Error('WASM was not loaded')\n }\n return zbarInstance\n})()\n\nexport const getInstance = async (): Promise => {\n return await zbarInstancePromise\n}\n","/* Copied from https://github.com/mchehab/zbar, release 0.23.90 */\n\nexport enum ZBarSymbolType {\n ZBAR_NONE\t = 0, /**< no symbol decoded */\n ZBAR_PARTIAL = 1, /**< intermediate status */\n ZBAR_EAN2\t = 2, /**< GS1 2-digit add-on */\n ZBAR_EAN5\t = 5, /**< GS1 5-digit add-on */\n ZBAR_EAN8\t = 8, /**< EAN-8 */\n ZBAR_UPCE\t = 9, /**< UPC-E */\n ZBAR_ISBN10\t = 10, /**< ISBN-10 (from EAN-13). @since 0.4 */\n ZBAR_UPCA\t = 12, /**< UPC-A */\n ZBAR_EAN13\t = 13, /**< EAN-13 */\n ZBAR_ISBN13\t = 14, /**< ISBN-13 (from EAN-13). @since 0.4 */\n ZBAR_COMPOSITE = 15, /**< EAN/UPC composite */\n ZBAR_I25\t = 25, /**< Interleaved 2 of 5. @since 0.4 */\n ZBAR_DATABAR = 34, /**< GS1 DataBar (RSS). @since 0.11 */\n ZBAR_DATABAR_EXP = 35, /**< GS1 DataBar Expanded. @since 0.11 */\n ZBAR_CODABAR = 38, /**< Codabar. @since 0.11 */\n ZBAR_CODE39\t = 39, /**< Code 39. @since 0.4 */\n ZBAR_PDF417\t = 57, /**< PDF417. @since 0.6 */\n ZBAR_QRCODE\t = 64, /**< QR Code. @since 0.10 */\n ZBAR_SQCODE\t = 80, /**< SQ Code. @since 0.20.1 */\n ZBAR_CODE93\t = 93, /**< Code 93. @since 0.11 */\n ZBAR_CODE128 = 128, /**< Code 128 */\n\n /*\n * Please see _zbar_get_symbol_hash() if adding\n * anything after 128\n */\n\n /** mask for base symbol type.\n * @deprecated in 0.11, remove this from existing code\n */\n ZBAR_SYMBOL = 0x00ff,\n /** 2-digit add-on flag.\n * @deprecated in 0.11, a ::ZBAR_EAN2 component is used for\n * 2-digit GS1 add-ons\n */\n ZBAR_ADDON2 = 0x0200,\n /** 5-digit add-on flag.\n * @deprecated in 0.11, a ::ZBAR_EAN5 component is used for\n * 5-digit GS1 add-ons\n */\n ZBAR_ADDON5 = 0x0500,\n /** add-on flag mask.\n * @deprecated in 0.11, GS1 add-ons are represented using composite\n * symbols of type ::ZBAR_COMPOSITE; add-on components use ::ZBAR_EAN2\n * or ::ZBAR_EAN5\n */\n ZBAR_ADDON = 0x0700,\n}\n\nexport enum ZBarConfigType {\n ZBAR_CFG_ENABLE = 0, /**< enable symbology/feature */\n ZBAR_CFG_ADD_CHECK, /**< enable check digit when optional */\n ZBAR_CFG_EMIT_CHECK, /**< return check digit when present */\n ZBAR_CFG_ASCII, /**< enable full ASCII character set */\n ZBAR_CFG_BINARY, /**< don't convert binary data to text */\n ZBAR_CFG_NUM, /**< number of boolean decoder configs */\n\n ZBAR_CFG_MIN_LEN = 0x20, /**< minimum data length for valid decode */\n ZBAR_CFG_MAX_LEN, /**< maximum data length for valid decode */\n\n ZBAR_CFG_UNCERTAINTY = 0x40, /**< required video consistency frames */\n\n ZBAR_CFG_POSITION = 0x80, /**< enable scanner to collect position data */\n ZBAR_CFG_TEST_INVERTED, /**< if fails to decode, test inverted */\n\n ZBAR_CFG_X_DENSITY = 0x100, /**< image scanner vertical scan density */\n ZBAR_CFG_Y_DENSITY, /**< image scanner horizontal scan density */\n}\n\nexport enum ZBarOrientation {\n ZBAR_ORIENT_UNKNOWN = -1, /**< unable to determine orientation */\n ZBAR_ORIENT_UP, /**< upright, read left to right */\n ZBAR_ORIENT_RIGHT, /**< sideways, read top to bottom */\n ZBAR_ORIENT_DOWN, /**< upside-down, read right to left */\n ZBAR_ORIENT_LEFT, /**< sideways, read bottom to top */\n}\n","import type ZBarInstance from './ZBarInstance'\n\nexport class CppObject {\n protected ptr: number\n protected inst: ZBarInstance\n\n protected constructor(ptr: number, inst: ZBarInstance) {\n this.ptr = ptr\n this.inst = inst\n }\n\n protected checkAlive(): void {\n if (this.ptr) return\n throw Error('Call after destroyed')\n }\n\n getPointer(): number {\n this.checkAlive()\n return this.ptr\n }\n}\n","import { ZBarOrientation, ZBarSymbolType } from './enum'\n\nexport interface Point {\n x: number\n y: number\n}\n\nclass TypePointer {\n protected ptr: number\n protected ptr32: number\n protected buf: ArrayBuffer\n protected HEAP8: Int8Array\n protected HEAP32: Int32Array\n protected HEAPU32: Uint32Array\n\n constructor(ptr: number, buf: ArrayBuffer) {\n this.ptr = ptr\n this.ptr32 = ptr >> 2\n this.buf = buf\n this.HEAP8 = new Int8Array(buf)\n this.HEAPU32 = new Uint32Array(buf)\n this.HEAP32 = new Int32Array(buf)\n }\n}\n\nclass SymbolPtr extends TypePointer {\n get type(): ZBarSymbolType {\n return this.HEAPU32[this.ptr32] as ZBarSymbolType\n }\n\n get data(): Int8Array {\n const\n len = this.HEAPU32[this.ptr32 + 4],\n ptr = this.HEAPU32[this.ptr32 + 5];\n return Int8Array.from(this.HEAP8.subarray(ptr, ptr + len))\n }\n\n get points(): Array {\n const\n len = this.HEAPU32[this.ptr32 + 7],\n ptr = this.HEAPU32[this.ptr32 + 8],\n ptr32 = ptr >> 2,\n res: Point[] = [];\n for (let i = 0; i < len; ++i) {\n const\n x = this.HEAP32[ptr32 + i * 2],\n y = this.HEAP32[ptr32 + i * 2 + 1];\n res.push({ x, y } as Point)\n }\n return res\n }\n\n get orientation(): ZBarOrientation {\n return this.HEAP32[this.ptr32 + 9]\n }\n\n get next(): SymbolPtr | null {\n const ptr = this.HEAPU32[this.ptr32 + 11]\n if (!ptr) return null\n return new SymbolPtr(ptr, this.buf)\n }\n\n get time(): number {\n return this.HEAPU32[this.ptr32 + 13]\n }\n\n get cacheCount(): number {\n return this.HEAP32[this.ptr32 + 14]\n }\n\n get quality(): number {\n return this.HEAP32[this.ptr32 + 15]\n }\n}\n\nclass SymbolSetPtr extends TypePointer {\n get head(): SymbolPtr | null {\n const ptr = this.HEAPU32[this.ptr32 + 2]\n if (!ptr) return null\n return new SymbolPtr(ptr, this.buf)\n }\n}\n\nexport class ZBarSymbol {\n type: ZBarSymbolType\n typeName: string\n data: Int8Array\n points: Array\n orientation: ZBarOrientation\n time: number\n cacheCount: number\n quality: number\n private constructor(ptr: SymbolPtr) {\n this.type = ptr.type\n this.typeName = ZBarSymbolType[this.type]\n this.data = ptr.data\n this.points = ptr.points\n this.orientation = ptr.orientation\n this.time = ptr.time\n this.cacheCount = ptr.cacheCount\n this.quality = ptr.quality\n }\n\n static createSymbolsFromPtr(ptr: number, buf: ArrayBuffer): Array {\n if (ptr == 0) return [];\n\n const set = new SymbolSetPtr(ptr, buf);\n let symbol = set.head;\n const res: ZBarSymbol[] = [];\n while (symbol !== null) {\n res.push(new ZBarSymbol(symbol));\n symbol = symbol.next;\n }\n return res;\n }\n\n decode(encoding?: string) {\n const decoder = new TextDecoder(encoding);\n return decoder.decode(this.data);\n }\n}\n","import { CppObject } from './CppObject'\nimport { ZBarSymbol } from './ZBarSymbol'\nimport { getInstance } from './instance'\n\nexport class ZBarImage extends CppObject {\n static async createFromGrayBuffer(\n width: number,\n height: number,\n dataBuf: ArrayBuffer,\n sequence_num: number = 0\n ): Promise {\n const\n inst = await getInstance(),\n data = new Uint8Array(dataBuf),\n len = width * height;\n if (len !== data.byteLength) {\n throw Error(`data length (${data.byteLength} bytes) does not match width and height (${len} bytes)`)\n }\n const\n buf = inst._malloc(len),\n heap = inst.HEAPU8;\n heap.set(data, buf)\n const ptr = inst._Image_create(\n width,\n height,\n 0x30303859 /* Y800 */,\n buf,\n len,\n sequence_num\n )\n return new this(ptr, inst)\n }\n\n static async createFromRGBABuffer(\n width: number,\n height: number,\n dataBuf: ArrayBuffer,\n sequence_num: number = 0\n ): Promise {\n const\n inst = await getInstance(),\n data = new Uint8Array(dataBuf),\n len = width * height;\n if (len * 4 !== data.byteLength) {\n throw Error(`data length (${data.byteLength} bytes) does not match width and height (${len * 4} bytes)`)\n }\n const\n buf = inst._malloc(len),\n bufEnd = buf + len,\n heap = inst.HEAPU8;\n for (let i = buf, j = 0; i < bufEnd; i++, j += 4) {\n heap[i] = (\n data[j] * 19595 +\n data[j + 1] * 38469 +\n data[j + 2] * 7472\n ) >> 16\n }\n const ptr = inst._Image_create(\n width,\n height,\n 0x30303859 /* Y800 */,\n buf,\n len,\n sequence_num\n )\n return new this(ptr, inst)\n }\n\n destroy(): void {\n this.checkAlive()\n this.inst._Image_destory(this.ptr)\n this.ptr = 0\n }\n\n getSymbols(): Array {\n this.checkAlive()\n const res = this.inst._Image_get_symbols(this.ptr)\n return ZBarSymbol.createSymbolsFromPtr(res, this.inst.HEAPU8.buffer)\n }\n}\n","import { CppObject } from './CppObject'\nimport { ZBarImage } from './ZBarImage'\nimport { getInstance } from './instance'\nimport { ZBarSymbol } from './ZBarSymbol'\nimport { ZBarSymbolType, ZBarConfigType } from './enum'\n\nexport class ZBarScanner extends CppObject {\n static async create(): Promise {\n const\n inst = await getInstance(),\n ptr = inst._ImageScanner_create();\n return new this(ptr, inst)\n }\n\n destroy(): void {\n this.checkAlive()\n this.inst._ImageScanner_destory(this.ptr)\n this.ptr = 0\n }\n\n setConfig(sym: ZBarSymbolType, conf: ZBarConfigType, value: number): number {\n this.checkAlive()\n return this.inst._ImageScanner_set_config(this.ptr, sym, conf, value)\n }\n\n enableCache(enable: boolean = true): void {\n this.checkAlive()\n this.inst._ImageScanner_enable_cache(this.ptr, enable)\n }\n\n recycleImage(image: ZBarImage): void {\n this.checkAlive()\n this.inst._ImageScanner_recycle_image(this.ptr, image.getPointer())\n }\n\n getResults(): Array {\n this.checkAlive()\n const res = this.inst._ImageScanner_get_results(this.ptr)\n return ZBarSymbol.createSymbolsFromPtr(res, this.inst.HEAPU8.buffer)\n }\n\n scan(image: ZBarImage): number {\n this.checkAlive()\n return this.inst._ImageScanner_scan(this.ptr, image.getPointer())\n }\n}\n","import { ZBarImage } from './ZBarImage'\nimport { ZBarScanner } from './ZBarScanner'\nimport { ZBarSymbol } from './ZBarSymbol'\nimport { ZBarConfigType, ZBarSymbolType } from './enum'\n\n// Returns a new ZBarScanner instance that delegates QR code text decoding\n// to the native TextDecoder (fixes #7: Issue with utf-8)\nexport const getDefaultScanner = async () => {\n const scanner = await ZBarScanner.create()\n scanner.setConfig(ZBarSymbolType.ZBAR_NONE, ZBarConfigType.ZBAR_CFG_BINARY, 1)\n return scanner\n}\n\nlet defaultScanner: ZBarScanner\n\nconst scanImage = async (\n image: ZBarImage,\n scanner?: ZBarScanner\n): Promise> => {\n if (scanner === undefined) {\n // Create the default scanner lazily\n scanner = defaultScanner || await getDefaultScanner()\n defaultScanner = scanner\n }\n const res = scanner.scan(image)\n if (res < 0) {\n throw Error('Scan Failed')\n }\n if (res === 0) return []\n return image.getSymbols()\n}\nexport const scanGrayBuffer = async (\n buffer: ArrayBuffer,\n width: number,\n height: number,\n scanner?: ZBarScanner\n): Promise> => {\n const\n image = await ZBarImage.createFromGrayBuffer(width, height, buffer),\n res = await scanImage(image, scanner);\n image.destroy()\n return res\n}\nexport const scanRGBABuffer = async (\n buffer: ArrayBuffer,\n width: number,\n height: number,\n scanner?: ZBarScanner\n): Promise> => {\n const\n image = await ZBarImage.createFromRGBABuffer(width, height, buffer),\n res = await scanImage(image, scanner);\n image.destroy()\n return res\n}\nexport const scanImageData = async (\n image: ImageData,\n scanner?: ZBarScanner\n): Promise> => {\n return await scanRGBABuffer(\n image.data.buffer,\n image.width,\n image.height,\n scanner\n )\n}\n"],"names":["_scriptDir","zbarWasm","document","currentScript","src","undefined","__filename","moduleArg","readyPromiseResolve","readyPromiseReject","Module","Promise","resolve","reject","read_","readAsync","readBinary","moduleOverrides","Object","assign","ENVIRONMENT_IS_WEB","window","ENVIRONMENT_IS_WORKER","importScripts","ENVIRONMENT_IS_NODE","process","versions","node","scriptDirectory","fs","require$$0","nodePath","require$$1","dirname","__dirname","filename","binary","isFileURI","URL","normalize","readFileSync","ret","buffer","Uint8Array","onload","onerror","readFile","err","data","argv","length","replace","slice","self","location","href","indexOf","substr","lastIndexOf","url","xhr","XMLHttpRequest","open","send","responseText","responseType","response","status","wasmBinary","wasmMemory","wasmExports","out","console","log","bind","error","WebAssembly","abort","HEAPU8","HEAPU32","ABORT","updateMemoryViews","b","Int8Array","Int16Array","Int32Array","Uint16Array","Uint32Array","Float32Array","Float64Array","__ATPRERUN__","__ATINIT__","__ATPOSTRUN__","runDependencies","dependenciesFulfilled","what","e","RuntimeError","wasmBinaryFile","path","dataURIPrefix","isDataURI","startsWith","getBinarySync","file","instantiateArrayBuffer","binaryFile","imports","receiver","fetch","credentials","then","catch","getBinaryPromise","instantiate","instance","reason","calledRun","callRuntimeCallbacks","callbacks","shift","growMemory","size","pages","byteLength","grow","UTF8Decoder","TextDecoder","printCharBuffers","printChar","stream","curr","heapOrArray","idx","maxBytesToRead","endIdx","endPtr","decode","subarray","str","u0","u1","u2","String","fromCharCode","ch","UTF8ArrayToString","push","wasmImports","d","Date","now","c","requestedSize","oldSize","maxHeapSize","x","multiple","cutDown","overGrownHeapSize","Math","min","newSize","max","f","fd","offset_low","offset_high","whence","newOffset","a","iov","iovcnt","pnum","num","i","ptr","len","j","run","doRun","cb","unshift","postRun","preRun","setTimeout","callback","info","receiveInstance","module","exports","id","removeRunDependency","result","instantiateStreaming","createWasm","a0","a1","a2","a3","a4","a5","runCaller","pop","ready","zbarInstance","zbarInstancePromise","__awaiter","zbarJs","Error","getInstance","ZBarSymbolType","ZBarConfigType","ZBarOrientation","CppObject","constructor","inst","this","checkAlive","getPointer","TypePointer","buf","ptr32","HEAP8","HEAP32","SymbolPtr","type","from","points","res","y","orientation","next","time","cacheCount","quality","SymbolSetPtr","head","ZBarSymbol","typeName","createSymbolsFromPtr","symbol","encoding","ZBarImage","createFromGrayBuffer","width","height","dataBuf","sequence_num","_malloc","set","_Image_create","createFromRGBABuffer","bufEnd","heap","destroy","_Image_destory","getSymbols","_Image_get_symbols","ZBarScanner","create","_ImageScanner_create","_ImageScanner_destory","setConfig","sym","conf","value","_ImageScanner_set_config","enableCache","enable","_ImageScanner_enable_cache","recycleImage","image","_ImageScanner_recycle_image","getResults","_ImageScanner_get_results","scan","_ImageScanner_scan","getDefaultScanner","scanner","ZBAR_NONE","ZBAR_CFG_BINARY","defaultScanner","scanImage","scanRGBABuffer"],"mappings":"6oGACA,IACMA,EADFC,GACED,EAAiC,oBAAbE,UAA4BA,SAASC,cAAgBD,SAASC,cAAcC,SAAMC,EAChF,oBAAfC,aAA4BN,EAAaA,GAAcM,YAClE,SACOC,EAAY,CAAA,GAErB,IAAyBC,EAAoBC,EAAzCC,EAAOH,EAAqDG,EAAc,MAAE,IAAIC,SAAQ,CAACC,EAAQC,KAAUL,EAAoBI,EAAQH,EAAmBI,CAAA,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AAOC,EAAQ5M,GAC5D2L,QAAYsD,EAAUX,EAAOO,GAE/B,OADAP,EAAMjB,UACC1B,CACT,+GAvB8B,CAC5B3L,EACA2M,EACAC,EACAiC,IAC8BxE,OAAA,OAAA,OAAA,GAAA,YAC9B,MACEiE,QAAc7B,EAAUC,qBAAqBC,EAAOC,EAAQ5M,GAC5D2L,QAAYsD,EAAUX,EAAOO,GAE/B,OADAP,EAAMjB,UACC1B,CACT,oBAa6B,CAC3B2C,EACAO,IAC8BxE,OAAA,OAAA,OAAA,GAAA,YAC9B,aAAa6E,EACXZ,EAAMhO,KAAKN,OACXsO,EAAM3B,MACN2B,EAAM1B,OACNiC,EAEJ"} \ No newline at end of file +{ + "version": 3, + "file": "index.js", + "sources": [ + "../build/zbar.js", + "../src/instance.ts", + "../src/enum.ts", + "../src/CppObject.ts", + "../src/ZBarSymbol.ts", + "../src/ZBarImage.ts", + "../src/ZBarScanner.ts", + "../src/module.ts" + ], + "sourcesContent": [ + "\nvar zbarWasm = (() => {\n var _scriptDir = typeof document !== 'undefined' && document.currentScript ? document.currentScript.src : undefined;\n if (typeof __filename !== 'undefined') _scriptDir = _scriptDir || __filename;\n return (\nfunction(moduleArg = {}) {\n\nvar Module=moduleArg;var readyPromiseResolve,readyPromiseReject;Module[\"ready\"]=new Promise((resolve,reject)=>{readyPromiseResolve=resolve;readyPromiseReject=reject});var moduleOverrides=Object.assign({},Module);var arguments_=[];var thisProgram=\"./this.program\";var quit_=(status,toThrow)=>{throw toThrow};var ENVIRONMENT_IS_WEB=typeof window==\"object\";var ENVIRONMENT_IS_WORKER=typeof importScripts==\"function\";var ENVIRONMENT_IS_NODE=typeof process==\"object\"&&typeof process.versions==\"object\"&&typeof process.versions.node==\"string\";var scriptDirectory=\"\";function locateFile(path){if(Module[\"locateFile\"]){return Module[\"locateFile\"](path,scriptDirectory)}return scriptDirectory+path}var read_,readAsync,readBinary,setWindowTitle;if(ENVIRONMENT_IS_NODE){var fs=require(\"fs\");var nodePath=require(\"path\");if(ENVIRONMENT_IS_WORKER){scriptDirectory=nodePath.dirname(scriptDirectory)+\"/\"}else{scriptDirectory=__dirname+\"/\"}read_=(filename,binary)=>{filename=isFileURI(filename)?new URL(filename):nodePath.normalize(filename);return fs.readFileSync(filename,binary?undefined:\"utf8\")};readBinary=filename=>{var ret=read_(filename,true);if(!ret.buffer){ret=new Uint8Array(ret)}return ret};readAsync=(filename,onload,onerror,binary=true)=>{filename=isFileURI(filename)?new URL(filename):nodePath.normalize(filename);fs.readFile(filename,binary?undefined:\"utf8\",(err,data)=>{if(err)onerror(err);else onload(binary?data.buffer:data)})};if(!Module[\"thisProgram\"]&&process.argv.length>1){thisProgram=process.argv[1].replace(/\\\\/g,\"/\")}arguments_=process.argv.slice(2);quit_=(status,toThrow)=>{process.exitCode=status;throw toThrow};Module[\"inspect\"]=()=>\"[Emscripten Module object]\"}else if(ENVIRONMENT_IS_WEB||ENVIRONMENT_IS_WORKER){if(ENVIRONMENT_IS_WORKER){scriptDirectory=self.location.href}else if(typeof document!=\"undefined\"&&document.currentScript){scriptDirectory=document.currentScript.src}if(_scriptDir){scriptDirectory=_scriptDir}if(scriptDirectory.indexOf(\"blob:\")!==0){scriptDirectory=scriptDirectory.substr(0,scriptDirectory.replace(/[?#].*/,\"\").lastIndexOf(\"/\")+1)}else{scriptDirectory=\"\"}{read_=url=>{var xhr=new XMLHttpRequest;xhr.open(\"GET\",url,false);xhr.send(null);return xhr.responseText};if(ENVIRONMENT_IS_WORKER){readBinary=url=>{var xhr=new XMLHttpRequest;xhr.open(\"GET\",url,false);xhr.responseType=\"arraybuffer\";xhr.send(null);return new Uint8Array(xhr.response)}}readAsync=(url,onload,onerror)=>{var xhr=new XMLHttpRequest;xhr.open(\"GET\",url,true);xhr.responseType=\"arraybuffer\";xhr.onload=()=>{if(xhr.status==200||xhr.status==0&&xhr.response){onload(xhr.response);return}onerror()};xhr.onerror=onerror;xhr.send(null)}}setWindowTitle=title=>document.title=title}else{}var out=Module[\"print\"]||console.log.bind(console);var err=Module[\"printErr\"]||console.error.bind(console);Object.assign(Module,moduleOverrides);moduleOverrides=null;if(Module[\"arguments\"])arguments_=Module[\"arguments\"];if(Module[\"thisProgram\"])thisProgram=Module[\"thisProgram\"];if(Module[\"quit\"])quit_=Module[\"quit\"];var wasmBinary;if(Module[\"wasmBinary\"])wasmBinary=Module[\"wasmBinary\"];var noExitRuntime=Module[\"noExitRuntime\"]||true;if(typeof WebAssembly!=\"object\"){abort(\"no native wasm support detected\")}var wasmMemory;var wasmExports;var ABORT=false;var EXITSTATUS;var HEAP8,HEAPU8,HEAP16,HEAPU16,HEAP32,HEAPU32,HEAPF32,HEAPF64;function updateMemoryViews(){var b=wasmMemory.buffer;Module[\"HEAP8\"]=HEAP8=new Int8Array(b);Module[\"HEAP16\"]=HEAP16=new Int16Array(b);Module[\"HEAP32\"]=HEAP32=new Int32Array(b);Module[\"HEAPU8\"]=HEAPU8=new Uint8Array(b);Module[\"HEAPU16\"]=HEAPU16=new Uint16Array(b);Module[\"HEAPU32\"]=HEAPU32=new Uint32Array(b);Module[\"HEAPF32\"]=HEAPF32=new Float32Array(b);Module[\"HEAPF64\"]=HEAPF64=new Float64Array(b)}var wasmTable;var __ATPRERUN__=[];var __ATINIT__=[];var __ATPOSTRUN__=[];var runtimeInitialized=false;function preRun(){if(Module[\"preRun\"]){if(typeof Module[\"preRun\"]==\"function\")Module[\"preRun\"]=[Module[\"preRun\"]];while(Module[\"preRun\"].length){addOnPreRun(Module[\"preRun\"].shift())}}callRuntimeCallbacks(__ATPRERUN__)}function initRuntime(){runtimeInitialized=true;callRuntimeCallbacks(__ATINIT__)}function postRun(){if(Module[\"postRun\"]){if(typeof Module[\"postRun\"]==\"function\")Module[\"postRun\"]=[Module[\"postRun\"]];while(Module[\"postRun\"].length){addOnPostRun(Module[\"postRun\"].shift())}}callRuntimeCallbacks(__ATPOSTRUN__)}function addOnPreRun(cb){__ATPRERUN__.unshift(cb)}function addOnInit(cb){__ATINIT__.unshift(cb)}function addOnPostRun(cb){__ATPOSTRUN__.unshift(cb)}var runDependencies=0;var runDependencyWatcher=null;var dependenciesFulfilled=null;function addRunDependency(id){runDependencies++;if(Module[\"monitorRunDependencies\"]){Module[\"monitorRunDependencies\"](runDependencies)}}function removeRunDependency(id){runDependencies--;if(Module[\"monitorRunDependencies\"]){Module[\"monitorRunDependencies\"](runDependencies)}if(runDependencies==0){if(runDependencyWatcher!==null){clearInterval(runDependencyWatcher);runDependencyWatcher=null}if(dependenciesFulfilled){var callback=dependenciesFulfilled;dependenciesFulfilled=null;callback()}}}function abort(what){if(Module[\"onAbort\"]){Module[\"onAbort\"](what)}what=\"Aborted(\"+what+\")\";err(what);ABORT=true;EXITSTATUS=1;what+=\". Build with -sASSERTIONS for more info.\";var e=new WebAssembly.RuntimeError(what);readyPromiseReject(e);throw e}var dataURIPrefix=\"data:application/octet-stream;base64,\";function isDataURI(filename){return filename.startsWith(dataURIPrefix)}function isFileURI(filename){return filename.startsWith(\"file://\")}var wasmBinaryFile;wasmBinaryFile=\"ngx-scanner-qrcode.wasm\";if(!isDataURI(wasmBinaryFile)){wasmBinaryFile=locateFile(wasmBinaryFile)}function getBinarySync(file){if(file==wasmBinaryFile&&wasmBinary){return new Uint8Array(wasmBinary)}if(readBinary){return readBinary(file)}throw\"both async and sync fetching of the wasm failed\"}function getBinaryPromise(binaryFile){if(!wasmBinary&&(ENVIRONMENT_IS_WEB||ENVIRONMENT_IS_WORKER)){if(typeof fetch==\"function\"&&!isFileURI(binaryFile)){return fetch(binaryFile,{credentials:\"same-origin\"}).then(response=>{if(!response[\"ok\"]){throw\"failed to load wasm binary file at '\"+binaryFile+\"'\"}return response[\"arrayBuffer\"]()}).catch(()=>getBinarySync(binaryFile))}else if(readAsync){return new Promise((resolve,reject)=>{readAsync(binaryFile,response=>resolve(new Uint8Array(response)),reject)})}}return Promise.resolve().then(()=>getBinarySync(binaryFile))}function instantiateArrayBuffer(binaryFile,imports,receiver){return getBinaryPromise(binaryFile).then(binary=>WebAssembly.instantiate(binary,imports)).then(instance=>instance).then(receiver,reason=>{err(\"failed to asynchronously prepare wasm: \"+reason);abort(reason)})}function instantiateAsync(binary,binaryFile,imports,callback){if(!binary&&typeof WebAssembly.instantiateStreaming==\"function\"&&!isDataURI(binaryFile)&&!isFileURI(binaryFile)&&!ENVIRONMENT_IS_NODE&&typeof fetch==\"function\"){return fetch(binaryFile,{credentials:\"same-origin\"}).then(response=>{var result=WebAssembly.instantiateStreaming(response,imports);return result.then(callback,function(reason){err(\"wasm streaming compile failed: \"+reason);err(\"falling back to ArrayBuffer instantiation\");return instantiateArrayBuffer(binaryFile,imports,callback)})})}return instantiateArrayBuffer(binaryFile,imports,callback)}function createWasm(){var info={\"a\":wasmImports};function receiveInstance(instance,module){var exports=instance.exports;wasmExports=exports;wasmMemory=wasmExports[\"g\"];updateMemoryViews();wasmTable=wasmExports[\"s\"];addOnInit(wasmExports[\"h\"]);removeRunDependency(\"wasm-instantiate\");return exports}addRunDependency(\"wasm-instantiate\");function receiveInstantiationResult(result){receiveInstance(result[\"instance\"])}if(Module[\"instantiateWasm\"]){try{return Module[\"instantiateWasm\"](info,receiveInstance)}catch(e){err(\"Module.instantiateWasm callback failed with error: \"+e);readyPromiseReject(e)}}instantiateAsync(wasmBinary,wasmBinaryFile,info,receiveInstantiationResult).catch(readyPromiseReject);return{}}var callRuntimeCallbacks=callbacks=>{while(callbacks.length>0){callbacks.shift()(Module)}};var nowIsMonotonic=true;var __emscripten_get_now_is_monotonic=()=>nowIsMonotonic;function _emscripten_date_now(){return Date.now()}var _emscripten_get_now;_emscripten_get_now=()=>performance.now();var getHeapMax=()=>2147483648;var growMemory=size=>{var b=wasmMemory.buffer;var pages=size-b.byteLength+65535>>>16;try{wasmMemory.grow(pages);updateMemoryViews();return 1}catch(e){}};var _emscripten_resize_heap=requestedSize=>{var oldSize=HEAPU8.length;requestedSize>>>=0;var maxHeapSize=getHeapMax();if(requestedSize>maxHeapSize){return false}var alignUp=(x,multiple)=>x+(multiple-x%multiple)%multiple;for(var cutDown=1;cutDown<=4;cutDown*=2){var overGrownHeapSize=oldSize*(1+.2/cutDown);overGrownHeapSize=Math.min(overGrownHeapSize,requestedSize+100663296);var newSize=Math.min(maxHeapSize,alignUp(Math.max(requestedSize,overGrownHeapSize),65536));var replacement=growMemory(newSize);if(replacement){return true}}return false};var UTF8Decoder=typeof TextDecoder!=\"undefined\"?new TextDecoder(\"utf8\"):undefined;var UTF8ArrayToString=(heapOrArray,idx,maxBytesToRead)=>{var endIdx=idx+maxBytesToRead;var endPtr=idx;while(heapOrArray[endPtr]&&!(endPtr>=endIdx))++endPtr;if(endPtr-idx>16&&heapOrArray.buffer&&UTF8Decoder){return UTF8Decoder.decode(heapOrArray.subarray(idx,endPtr))}var str=\"\";while(idx>10,56320|ch&1023)}}return str};var UTF8ToString=(ptr,maxBytesToRead)=>ptr?UTF8ArrayToString(HEAPU8,ptr,maxBytesToRead):\"\";var SYSCALLS={varargs:undefined,get(){SYSCALLS.varargs+=4;var ret=HEAP32[SYSCALLS.varargs-4>>2];return ret},getStr(ptr){var ret=UTF8ToString(ptr);return ret}};var _fd_close=fd=>52;function convertI32PairToI53Checked(lo,hi){return hi+2097152>>>0<4194305-!!lo?(lo>>>0)+hi*4294967296:NaN}function _fd_seek(fd,offset_low,offset_high,whence,newOffset){var offset=convertI32PairToI53Checked(offset_low,offset_high);return 70}var printCharBuffers=[null,[],[]];var printChar=(stream,curr)=>{var buffer=printCharBuffers[stream];if(curr===0||curr===10){(stream===1?out:err)(UTF8ArrayToString(buffer,0));buffer.length=0}else{buffer.push(curr)}};var _fd_write=(fd,iov,iovcnt,pnum)=>{var num=0;for(var i=0;i>2];var len=HEAPU32[iov+4>>2];iov+=8;for(var j=0;j>2]=num;return 0};var wasmImports={d:__emscripten_get_now_is_monotonic,e:_emscripten_date_now,c:_emscripten_resize_heap,f:_fd_close,b:_fd_seek,a:_fd_write};var asm=createWasm();var ___wasm_call_ctors=()=>(___wasm_call_ctors=wasmExports[\"h\"])();var _ImageScanner_create=Module[\"_ImageScanner_create\"]=()=>(_ImageScanner_create=Module[\"_ImageScanner_create\"]=wasmExports[\"i\"])();var _ImageScanner_destory=Module[\"_ImageScanner_destory\"]=a0=>(_ImageScanner_destory=Module[\"_ImageScanner_destory\"]=wasmExports[\"j\"])(a0);var _ImageScanner_set_config=Module[\"_ImageScanner_set_config\"]=(a0,a1,a2,a3)=>(_ImageScanner_set_config=Module[\"_ImageScanner_set_config\"]=wasmExports[\"k\"])(a0,a1,a2,a3);var _ImageScanner_enable_cache=Module[\"_ImageScanner_enable_cache\"]=(a0,a1)=>(_ImageScanner_enable_cache=Module[\"_ImageScanner_enable_cache\"]=wasmExports[\"l\"])(a0,a1);var _ImageScanner_recycle_image=Module[\"_ImageScanner_recycle_image\"]=(a0,a1)=>(_ImageScanner_recycle_image=Module[\"_ImageScanner_recycle_image\"]=wasmExports[\"m\"])(a0,a1);var _ImageScanner_get_results=Module[\"_ImageScanner_get_results\"]=a0=>(_ImageScanner_get_results=Module[\"_ImageScanner_get_results\"]=wasmExports[\"n\"])(a0);var _ImageScanner_scan=Module[\"_ImageScanner_scan\"]=(a0,a1)=>(_ImageScanner_scan=Module[\"_ImageScanner_scan\"]=wasmExports[\"o\"])(a0,a1);var _Image_create=Module[\"_Image_create\"]=(a0,a1,a2,a3,a4,a5)=>(_Image_create=Module[\"_Image_create\"]=wasmExports[\"p\"])(a0,a1,a2,a3,a4,a5);var _Image_destory=Module[\"_Image_destory\"]=a0=>(_Image_destory=Module[\"_Image_destory\"]=wasmExports[\"q\"])(a0);var _Image_get_symbols=Module[\"_Image_get_symbols\"]=a0=>(_Image_get_symbols=Module[\"_Image_get_symbols\"]=wasmExports[\"r\"])(a0);var ___errno_location=()=>(___errno_location=wasmExports[\"__errno_location\"])();var _free=Module[\"_free\"]=a0=>(_free=Module[\"_free\"]=wasmExports[\"t\"])(a0);var _malloc=Module[\"_malloc\"]=a0=>(_malloc=Module[\"_malloc\"]=wasmExports[\"u\"])(a0);var calledRun;dependenciesFulfilled=function runCaller(){if(!calledRun)run();if(!calledRun)dependenciesFulfilled=runCaller};function run(){if(runDependencies>0){return}preRun();if(runDependencies>0){return}function doRun(){if(calledRun)return;calledRun=true;Module[\"calledRun\"]=true;if(ABORT)return;initRuntime();readyPromiseResolve(Module);if(Module[\"onRuntimeInitialized\"])Module[\"onRuntimeInitialized\"]();postRun()}if(Module[\"setStatus\"]){Module[\"setStatus\"](\"Running...\");setTimeout(function(){setTimeout(function(){Module[\"setStatus\"](\"\")},1);doRun()},1)}else{doRun()}}if(Module[\"preInit\"]){if(typeof Module[\"preInit\"]==\"function\")Module[\"preInit\"]=[Module[\"preInit\"]];while(Module[\"preInit\"].length>0){Module[\"preInit\"].pop()()}}run();\n\n\n return moduleArg.ready\n}\n\n);\n})();\nif (typeof exports === 'object' && typeof module === 'object')\n module.exports = zbarWasm;\nelse if (typeof define === 'function' && define['amd'])\n define([], () => zbarWasm);\n", + "import zbarJs from 'zbarJs'\nimport type ZBarInstance from './ZBarInstance'\n\n\nlet zbarInstancePromise: Promise\n\n\n/**\n * Arguments used for building a `ZBarInstance`\n */\nexport type ZBarModuleArgs = {\n locateFile?: (filename: string, directory: string) => string,\n}\n\n\n/**\n * Causes a new `ZBarInstance` built with the specified arguments\n * to be returned by subsequent `getInstance()` calls.\n */\nexport function setModuleArgs(args: ZBarModuleArgs = {}): void {\n zbarInstancePromise = (async function(): Promise {\n const zbarInstance = await zbarJs(args)\n\n if (zbarInstance) {\n return zbarInstance\n\n } else {\n throw Error('WASM was not loaded')\n }\n })()\n}\n\n\n/**\n * Returns a `ZBarInstance` built with the arguments set by `setModuleArgs()`,\n * or built without any arguments.\n * Successive calls return the same instance until `setModuleArgs()` is called.\n */\nexport async function getInstance(): Promise {\n // Instantiate the module without arguments if no args have been set explicitly\n if (!zbarInstancePromise) {\n setModuleArgs()\n }\n\n return await zbarInstancePromise\n}\n", + "/* Copied from https://github.com/mchehab/zbar, release 0.23.90 */\n\nexport enum ZBarSymbolType {\n ZBAR_NONE\t = 0, /**< no symbol decoded */\n ZBAR_PARTIAL = 1, /**< intermediate status */\n ZBAR_EAN2\t = 2, /**< GS1 2-digit add-on */\n ZBAR_EAN5\t = 5, /**< GS1 5-digit add-on */\n ZBAR_EAN8\t = 8, /**< EAN-8 */\n ZBAR_UPCE\t = 9, /**< UPC-E */\n ZBAR_ISBN10\t = 10, /**< ISBN-10 (from EAN-13). @since 0.4 */\n ZBAR_UPCA\t = 12, /**< UPC-A */\n ZBAR_EAN13\t = 13, /**< EAN-13 */\n ZBAR_ISBN13\t = 14, /**< ISBN-13 (from EAN-13). @since 0.4 */\n ZBAR_COMPOSITE = 15, /**< EAN/UPC composite */\n ZBAR_I25\t = 25, /**< Interleaved 2 of 5. @since 0.4 */\n ZBAR_DATABAR = 34, /**< GS1 DataBar (RSS). @since 0.11 */\n ZBAR_DATABAR_EXP = 35, /**< GS1 DataBar Expanded. @since 0.11 */\n ZBAR_CODABAR = 38, /**< Codabar. @since 0.11 */\n ZBAR_CODE39\t = 39, /**< Code 39. @since 0.4 */\n ZBAR_PDF417\t = 57, /**< PDF417. @since 0.6 */\n ZBAR_QRCODE\t = 64, /**< QR Code. @since 0.10 */\n ZBAR_SQCODE\t = 80, /**< SQ Code. @since 0.20.1 */\n ZBAR_CODE93\t = 93, /**< Code 93. @since 0.11 */\n ZBAR_CODE128 = 128, /**< Code 128 */\n\n /*\n * Please see _zbar_get_symbol_hash() if adding\n * anything after 128\n */\n\n /** mask for base symbol type.\n * @deprecated in 0.11, remove this from existing code\n */\n ZBAR_SYMBOL = 0x00ff,\n /** 2-digit add-on flag.\n * @deprecated in 0.11, a ::ZBAR_EAN2 component is used for\n * 2-digit GS1 add-ons\n */\n ZBAR_ADDON2 = 0x0200,\n /** 5-digit add-on flag.\n * @deprecated in 0.11, a ::ZBAR_EAN5 component is used for\n * 5-digit GS1 add-ons\n */\n ZBAR_ADDON5 = 0x0500,\n /** add-on flag mask.\n * @deprecated in 0.11, GS1 add-ons are represented using composite\n * symbols of type ::ZBAR_COMPOSITE; add-on components use ::ZBAR_EAN2\n * or ::ZBAR_EAN5\n */\n ZBAR_ADDON = 0x0700,\n}\n\nexport enum ZBarConfigType {\n ZBAR_CFG_ENABLE = 0, /**< enable symbology/feature */\n ZBAR_CFG_ADD_CHECK, /**< enable check digit when optional */\n ZBAR_CFG_EMIT_CHECK, /**< return check digit when present */\n ZBAR_CFG_ASCII, /**< enable full ASCII character set */\n ZBAR_CFG_BINARY, /**< don't convert binary data to text */\n ZBAR_CFG_NUM, /**< number of boolean decoder configs */\n\n ZBAR_CFG_MIN_LEN = 0x20, /**< minimum data length for valid decode */\n ZBAR_CFG_MAX_LEN, /**< maximum data length for valid decode */\n\n ZBAR_CFG_UNCERTAINTY = 0x40, /**< required video consistency frames */\n\n ZBAR_CFG_POSITION = 0x80, /**< enable scanner to collect position data */\n ZBAR_CFG_TEST_INVERTED, /**< if fails to decode, test inverted */\n\n ZBAR_CFG_X_DENSITY = 0x100, /**< image scanner vertical scan density */\n ZBAR_CFG_Y_DENSITY, /**< image scanner horizontal scan density */\n}\n\nexport enum ZBarOrientation {\n ZBAR_ORIENT_UNKNOWN = -1, /**< unable to determine orientation */\n ZBAR_ORIENT_UP, /**< upright, read left to right */\n ZBAR_ORIENT_RIGHT, /**< sideways, read top to bottom */\n ZBAR_ORIENT_DOWN, /**< upside-down, read right to left */\n ZBAR_ORIENT_LEFT, /**< sideways, read bottom to top */\n}\n", + "import type ZBarInstance from './ZBarInstance'\n\nexport class CppObject {\n protected ptr: number\n protected inst: ZBarInstance\n\n protected constructor(ptr: number, inst: ZBarInstance) {\n this.ptr = ptr\n this.inst = inst\n }\n\n protected checkAlive(): void {\n if (this.ptr) return\n throw Error('Call after destroyed')\n }\n\n getPointer(): number {\n this.checkAlive()\n return this.ptr\n }\n}\n", + "import { ZBarOrientation, ZBarSymbolType } from './enum'\n\nexport interface Point {\n x: number\n y: number\n}\n\nclass TypePointer {\n protected ptr: number\n protected ptr32: number\n protected buf: ArrayBuffer\n protected HEAP8: Int8Array\n protected HEAP32: Int32Array\n protected HEAPU32: Uint32Array\n\n constructor(ptr: number, buf: ArrayBuffer) {\n this.ptr = ptr\n this.ptr32 = ptr >> 2\n this.buf = buf\n this.HEAP8 = new Int8Array(buf)\n this.HEAPU32 = new Uint32Array(buf)\n this.HEAP32 = new Int32Array(buf)\n }\n}\n\nclass SymbolPtr extends TypePointer {\n get type(): ZBarSymbolType {\n return this.HEAPU32[this.ptr32] as ZBarSymbolType\n }\n\n get data(): Int8Array {\n const\n len = this.HEAPU32[this.ptr32 + 4],\n ptr = this.HEAPU32[this.ptr32 + 5];\n return Int8Array.from(this.HEAP8.subarray(ptr, ptr + len))\n }\n\n get points(): Array {\n const\n len = this.HEAPU32[this.ptr32 + 7],\n ptr = this.HEAPU32[this.ptr32 + 8],\n ptr32 = ptr >> 2,\n res: Point[] = [];\n for (let i = 0; i < len; ++i) {\n const\n x = this.HEAP32[ptr32 + i * 2],\n y = this.HEAP32[ptr32 + i * 2 + 1];\n res.push({ x, y } as Point)\n }\n return res\n }\n\n get orientation(): ZBarOrientation {\n return this.HEAP32[this.ptr32 + 9]\n }\n\n get next(): SymbolPtr | null {\n const ptr = this.HEAPU32[this.ptr32 + 11]\n if (!ptr) return null\n return new SymbolPtr(ptr, this.buf)\n }\n\n get time(): number {\n return this.HEAPU32[this.ptr32 + 13]\n }\n\n get cacheCount(): number {\n return this.HEAP32[this.ptr32 + 14]\n }\n\n get quality(): number {\n return this.HEAP32[this.ptr32 + 15]\n }\n}\n\nclass SymbolSetPtr extends TypePointer {\n get head(): SymbolPtr | null {\n const ptr = this.HEAPU32[this.ptr32 + 2]\n if (!ptr) return null\n return new SymbolPtr(ptr, this.buf)\n }\n}\n\nexport class ZBarSymbol {\n type: ZBarSymbolType\n typeName: string\n data: Int8Array\n points: Array\n orientation: ZBarOrientation\n time: number\n cacheCount: number\n quality: number\n private constructor(ptr: SymbolPtr) {\n this.type = ptr.type\n this.typeName = ZBarSymbolType[this.type]\n this.data = ptr.data\n this.points = ptr.points\n this.orientation = ptr.orientation\n this.time = ptr.time\n this.cacheCount = ptr.cacheCount\n this.quality = ptr.quality\n }\n\n static createSymbolsFromPtr(ptr: number, buf: ArrayBuffer): Array {\n if (ptr == 0) return [];\n\n const set = new SymbolSetPtr(ptr, buf);\n let symbol = set.head;\n const res: ZBarSymbol[] = [];\n while (symbol !== null) {\n res.push(new ZBarSymbol(symbol));\n symbol = symbol.next;\n }\n return res;\n }\n\n decode(encoding?: string) {\n const decoder = new TextDecoder(encoding);\n return decoder.decode(this.data);\n }\n}\n", + "import { CppObject } from './CppObject'\nimport { ZBarSymbol } from './ZBarSymbol'\nimport { getInstance } from './instance'\n\nexport class ZBarImage extends CppObject {\n static async createFromGrayBuffer(\n width: number,\n height: number,\n dataBuf: ArrayBuffer,\n sequence_num: number = 0\n ): Promise {\n const\n inst = await getInstance(),\n data = new Uint8Array(dataBuf),\n len = width * height;\n if (len !== data.byteLength) {\n throw Error(`data length (${data.byteLength} bytes) does not match width and height (${len} bytes)`)\n }\n const\n buf = inst._malloc(len),\n heap = inst.HEAPU8;\n heap.set(data, buf)\n const ptr = inst._Image_create(\n width,\n height,\n 0x30303859 /* Y800 */,\n buf,\n len,\n sequence_num\n )\n return new this(ptr, inst)\n }\n\n static async createFromRGBABuffer(\n width: number,\n height: number,\n dataBuf: ArrayBuffer,\n sequence_num: number = 0\n ): Promise {\n const\n inst = await getInstance(),\n data = new Uint8Array(dataBuf),\n len = width * height;\n if (len * 4 !== data.byteLength) {\n throw Error(`data length (${data.byteLength} bytes) does not match width and height (${len * 4} bytes)`)\n }\n const\n buf = inst._malloc(len),\n bufEnd = buf + len,\n heap = inst.HEAPU8;\n for (let i = buf, j = 0; i < bufEnd; i++, j += 4) {\n heap[i] = (\n data[j] * 19595 +\n data[j + 1] * 38469 +\n data[j + 2] * 7472\n ) >> 16\n }\n const ptr = inst._Image_create(\n width,\n height,\n 0x30303859 /* Y800 */,\n buf,\n len,\n sequence_num\n )\n return new this(ptr, inst)\n }\n\n destroy(): void {\n this.checkAlive()\n this.inst._Image_destory(this.ptr)\n this.ptr = 0\n }\n\n getSymbols(): Array {\n this.checkAlive()\n const res = this.inst._Image_get_symbols(this.ptr)\n return ZBarSymbol.createSymbolsFromPtr(res, this.inst.HEAPU8.buffer)\n }\n}\n", + "import { CppObject } from './CppObject'\nimport { ZBarImage } from './ZBarImage'\nimport { getInstance } from './instance'\nimport { ZBarSymbol } from './ZBarSymbol'\nimport { ZBarSymbolType, ZBarConfigType } from './enum'\n\nexport class ZBarScanner extends CppObject {\n static async create(): Promise {\n const\n inst = await getInstance(),\n ptr = inst._ImageScanner_create();\n return new this(ptr, inst)\n }\n\n destroy(): void {\n this.checkAlive()\n this.inst._ImageScanner_destory(this.ptr)\n this.ptr = 0\n }\n\n setConfig(sym: ZBarSymbolType, conf: ZBarConfigType, value: number): number {\n this.checkAlive()\n return this.inst._ImageScanner_set_config(this.ptr, sym, conf, value)\n }\n\n enableCache(enable: boolean = true): void {\n this.checkAlive()\n this.inst._ImageScanner_enable_cache(this.ptr, enable)\n }\n\n recycleImage(image: ZBarImage): void {\n this.checkAlive()\n this.inst._ImageScanner_recycle_image(this.ptr, image.getPointer())\n }\n\n getResults(): Array {\n this.checkAlive()\n const res = this.inst._ImageScanner_get_results(this.ptr)\n return ZBarSymbol.createSymbolsFromPtr(res, this.inst.HEAPU8.buffer)\n }\n\n scan(image: ZBarImage): number {\n this.checkAlive()\n return this.inst._ImageScanner_scan(this.ptr, image.getPointer())\n }\n}\n", + "import { ZBarImage } from './ZBarImage'\nimport { ZBarScanner } from './ZBarScanner'\nimport { ZBarSymbol } from './ZBarSymbol'\nimport { ZBarConfigType, ZBarSymbolType } from './enum'\n\n// Returns a new ZBarScanner instance that delegates QR code text decoding\n// to the native TextDecoder (fixes #7: Issue with utf-8)\nexport const getDefaultScanner = async () => {\n const scanner = await ZBarScanner.create()\n scanner.setConfig(ZBarSymbolType.ZBAR_NONE, ZBarConfigType.ZBAR_CFG_BINARY, 1)\n return scanner\n}\n\nlet defaultScanner: ZBarScanner\n\nconst scanImage = async (\n image: ZBarImage,\n scanner?: ZBarScanner\n): Promise> => {\n if (scanner === undefined) {\n // Create the default scanner lazily\n scanner = defaultScanner || await getDefaultScanner()\n defaultScanner = scanner\n }\n const res = scanner.scan(image)\n if (res < 0) {\n throw Error('Scan Failed')\n }\n if (res === 0) return []\n return image.getSymbols()\n}\nexport const scanGrayBuffer = async (\n buffer: ArrayBuffer,\n width: number,\n height: number,\n scanner?: ZBarScanner\n): Promise> => {\n const\n image = await ZBarImage.createFromGrayBuffer(width, height, buffer),\n res = await scanImage(image, scanner);\n image.destroy()\n return res\n}\nexport const scanRGBABuffer = async (\n buffer: ArrayBuffer,\n width: number,\n height: number,\n scanner?: ZBarScanner\n): Promise> => {\n const\n image = await ZBarImage.createFromRGBABuffer(width, height, buffer),\n res = await scanImage(image, scanner);\n image.destroy()\n return res\n}\nexport const scanImageData = async (\n image: ImageData,\n scanner?: ZBarScanner\n): Promise> => {\n return await scanRGBABuffer(\n image.data.buffer,\n image.width,\n image.height,\n scanner\n )\n}\n" + ], + "names": [ + "_scriptDir", + "zbarWasm", + "document", + "currentScript", + "src", + "undefined", + "__filename", + "moduleArg", + "readyPromiseResolve", + "readyPromiseReject", + "Module", + "Promise", + "resolve", + "reject", + "read_", + "readAsync", + "readBinary", + "moduleOverrides", + "Object", + "assign", + "ENVIRONMENT_IS_WEB", + "window", + "ENVIRONMENT_IS_WORKER", + "importScripts", + "ENVIRONMENT_IS_NODE", + "process", + "versions", + "node", + "scriptDirectory", + "fs", + "require$$0", + "nodePath", + "require$$1", + "dirname", + "__dirname", + "filename", + "binary", + "isFileURI", + "URL", + "normalize", + "readFileSync", + "ret", + "buffer", + "Uint8Array", + "onload", + "onerror", + "readFile", + "err", + "data", + "argv", + "length", + "replace", + "slice", + "self", + "location", + "href", + "indexOf", + "substr", + "lastIndexOf", + "url", + "xhr", + "XMLHttpRequest", + "open", + "send", + "responseText", + "responseType", + "response", + "status", + "wasmBinary", + "wasmMemory", + "wasmExports", + "out", + "console", + "log", + "bind", + "error", + "WebAssembly", + "abort", + "HEAPU8", + "HEAPU32", + "ABORT", + "updateMemoryViews", + "b", + "Int8Array", + "Int16Array", + "Int32Array", + "Uint16Array", + "Uint32Array", + "Float32Array", + "Float64Array", + "__ATPRERUN__", + "__ATINIT__", + "__ATPOSTRUN__", + "runDependencies", + "dependenciesFulfilled", + "what", + "e", + "RuntimeError", + "wasmBinaryFile", + "path", + "dataURIPrefix", + "isDataURI", + "startsWith", + "getBinarySync", + "file", + "instantiateArrayBuffer", + "binaryFile", + "imports", + "receiver", + "fetch", + "credentials", + "then", + "catch", + "getBinaryPromise", + "instantiate", + "instance", + "reason", + "calledRun", + "callRuntimeCallbacks", + "callbacks", + "shift", + "growMemory", + "size", + "pages", + "byteLength", + "grow", + "UTF8Decoder", + "TextDecoder", + "printCharBuffers", + "printChar", + "stream", + "curr", + "heapOrArray", + "idx", + "maxBytesToRead", + "endIdx", + "endPtr", + "decode", + "subarray", + "str", + "u0", + "u1", + "u2", + "String", + "fromCharCode", + "ch", + "UTF8ArrayToString", + "push", + "wasmImports", + "d", + "Date", + "now", + "c", + "requestedSize", + "oldSize", + "maxHeapSize", + "x", + "multiple", + "cutDown", + "overGrownHeapSize", + "Math", + "min", + "newSize", + "max", + "f", + "fd", + "offset_low", + "offset_high", + "whence", + "newOffset", + "a", + "iov", + "iovcnt", + "pnum", + "num", + "i", + "ptr", + "len", + "j", + "run", + "doRun", + "cb", + "unshift", + "postRun", + "preRun", + "setTimeout", + "callback", + "info", + "receiveInstance", + "module", + "exports", + "id", + "removeRunDependency", + "result", + "instantiateStreaming", + "createWasm", + "a0", + "a1", + "a2", + "a3", + "a4", + "a5", + "runCaller", + "pop", + "ready", + "zbarInstancePromise", + "setModuleArgs", + "args", + "zbarInstance", + "zbarJs", + "Error", + "getInstance", + "ZBarSymbolType", + "ZBarConfigType", + "ZBarOrientation", + "CppObject", + "constructor", + "inst", + "this", + "checkAlive", + "getPointer", + "TypePointer", + "buf", + "ptr32", + "HEAP8", + "HEAP32", + "SymbolPtr", + "type", + "from", + "points", + "res", + "y", + "orientation", + "next", + "time", + "cacheCount", + "quality", + "SymbolSetPtr", + "head", + "ZBarSymbol", + "typeName", + "createSymbolsFromPtr", + "symbol", + "encoding", + "ZBarImage", + "createFromGrayBuffer", + "width", + "height", + "dataBuf", + "sequence_num", + "_malloc", + "set", + "_Image_create", + "createFromRGBABuffer", + "bufEnd", + "heap", + "destroy", + "_Image_destory", + "getSymbols", + "_Image_get_symbols", + "ZBarScanner", + "create", + "_ImageScanner_create", + "_ImageScanner_destory", + "setConfig", + "sym", + "conf", + "value", + "_ImageScanner_set_config", + "enableCache", + "enable", + "_ImageScanner_enable_cache", + "recycleImage", + "image", + "_ImageScanner_recycle_image", + "getResults", + "_ImageScanner_get_results", + "scan", + "_ImageScanner_scan", + "getDefaultScanner", + "__awaiter", + "scanner", + "ZBAR_NONE", + "ZBAR_CFG_BINARY", + "defaultScanner", + "scanImage", + "scanRGBABuffer" + ], + "mappings": "6oGACA,IACMA,EADFC,GACED,EAAiC,oBAAbE,UAA4BA,SAASC,cAAgBD,SAASC,cAAcC,SAAMC,EAChF,oBAAfC,aAA4BN,EAAaA,GAAcM,YAClE,SACOC,EAAY,CAAA,GAErB,IAAyBC,EAAoBC,EAAzCC,EAAOH,EAAqDG,EAAc,MAAE,IAAIC,SAAQ,CAACC,EAAQC,KAAUL,EAAoBI,EAAQH,EAAmBI,CAAA,IAAS,IAA8gBC,EAAMC,EAAUC,EAA1hBC,EAAgBC,OAAOC,OAAO,CAAE,EAACT,GAA2GU,EAAkC,iBAARC,OAAqBC,EAA4C,mBAAfC,cAA8BC,EAAoC,iBAATC,SAA4C,iBAAlBA,QAAQC,UAAkD,iBAAvBD,QAAQC,SAASC,KAAmBC,EAAgB,GAAkL,GAAGJ,EAAoB,CAAC,I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GAE/B,OADAR,EAAMjB,UACC1B,CACT,oBAa6B,CAC3B2C,EACAQ,IAC8BD,OAAA,OAAA,OAAA,GAAA,YAC9B,aAAaM,EACXb,EAAMjO,KAAKN,OACXuO,EAAM3B,MACN2B,EAAM1B,OACNkC,EAEJ" + } \ No newline at end of file diff --git a/assets/wasm/index.mjs b/assets/wasm/index.mjs new file mode 100644 index 0000000..d1fc82a --- /dev/null +++ b/assets/wasm/index.mjs @@ -0,0 +1,2 @@ +function t(t,e,n,r){return new(n||(n=Promise))((function(i,o){function s(t){try{c(r.next(t))}catch(t){o(t)}}function a(t){try{c(r.throw(t))}catch(t){o(t)}}function c(t){var e;t.done?i(t.value):(e=t.value,e instanceof n?e:new n((function(t){t(e)}))).then(s,a)}c((r=r.apply(t,e||[])).next())}))}"function"==typeof SuppressedError&&SuppressedError;var e,n=(e=import.meta.url,async function(t={}){var n,r,i=t;i.ready=new Promise(((t,e)=>{n=t,r=e}));var o,s,a,c=Object.assign({},i),_="object"==typeof window,u="function"==typeof importScripts,A="object"==typeof process&&"object"==typeof process.versions&&"string"==typeof process.versions.node,f="";if(A){const{createRequire:t}=await Promise.resolve().then((()=>g));var h=t(import.meta.url),l=h("fs"),R=h("path");f=u?R.dirname(f)+"/":h("url").fileURLToPath(new URL("./",import.meta.url)),o=(t,e)=>(t=U(t)?new URL(t):R.normalize(t),l.readFileSync(t,e?void 0:"utf8")),a=t=>{var e=o(t,!0);return e.buffer||(e=new Uint8Array(e)),e},s=(t,e,n,r=!0)=>{t=U(t)?new URL(t):R.normalize(t),l.readFile(t,r?void 0:"utf8",((t,i)=>{t?n(t):e(r?i.buffer:i)}))},!i.thisProgram&&process.argv.length>1&&process.argv[1].replace(/\\/g,"/"),process.argv.slice(2),i.inspect=()=>"[Emscripten Module object]"}else(_||u)&&(u?f=self.location.href:"undefined"!=typeof document&&document.currentScript&&(f=document.currentScript.src),e&&(f=e),f=0!==f.indexOf("blob:")?f.substr(0,f.replace(/[?#].*/,"").lastIndexOf("/")+1):"",o=t=>{var e=new XMLHttpRequest;return e.open("GET",t,!1),e.send(null),e.responseText},u&&(a=t=>{var e=new XMLHttpRequest;return e.open("GET",t,!1),e.responseType="arraybuffer",e.send(null),new Uint8Array(e.response)}),s=(t,e,n)=>{var r=new XMLHttpRequest;r.open("GET",t,!0),r.responseType="arraybuffer",r.onload=()=>{200==r.status||0==r.status&&r.response?e(r.response):n()},r.onerror=n,r.send(null)});var d,m,p,y=i.print||console.log.bind(console),B=i.printErr||console.error.bind(console);Object.assign(i,c),c=null,i.arguments&&i.arguments,i.thisProgram&&i.thisProgram,i.quit&&i.quit,i.wasmBinary&&(d=i.wasmBinary),i.noExitRuntime,"object"!=typeof WebAssembly&&P("no native wasm support detected");var E,I,Z=!1;function v(){var t=m.buffer;i.HEAP8=new Int8Array(t),i.HEAP16=new Int16Array(t),i.HEAP32=new Int32Array(t),i.HEAPU8=E=new Uint8Array(t),i.HEAPU16=new Uint16Array(t),i.HEAPU32=I=new Uint32Array(t),i.HEAPF32=new Float32Array(t),i.HEAPF64=new Float64Array(t)}var b=[],C=[],N=[],S=0,w=null;function P(t){i.onAbort&&i.onAbort(t),B(t="Aborted("+t+")"),Z=!0,t+=". Build with -sASSERTIONS for more info.";var e=new WebAssembly.RuntimeError(t);throw r(e),e}var T,O,D="data:application/octet-stream;base64,";function F(t){return t.startsWith(D)}function U(t){return t.startsWith("file://")}function H(t){if(t==T&&d)return new Uint8Array(d);if(a)return a(t);throw"both async and sync fetching of the wasm failed"}function G(t,e,n){return function(t){if(!d&&(_||u)){if("function"==typeof fetch&&!U(t))return fetch(t,{credentials:"same-origin"}).then((e=>{if(!e.ok)throw"failed to load wasm binary file at '"+t+"'";return e.arrayBuffer()})).catch((()=>H(t)));if(s)return new Promise(((e,n)=>{s(t,(t=>e(new Uint8Array(t))),n)}))}return Promise.resolve().then((()=>H(t)))}(t).then((t=>WebAssembly.instantiate(t,e))).then((t=>t)).then(n,(t=>{B("failed to asynchronously prepare wasm: "+t),P(t)}))}i.locateFile?F(T="ngx-scanner-qrcode.wasm")||(O=T,T=i.locateFile?i.locateFile(O,f):f+O):T=new URL("ngx-scanner-qrcode.wasm",import.meta.url).href;var L,M=t=>{for(;t.length>0;)t.shift()(i)},x=t=>{var e=t-m.buffer.byteLength+65535>>>16;try{return m.grow(e),v(),1}catch(t){}},W="undefined"!=typeof TextDecoder?new TextDecoder("utf8"):void 0,k=[null,[],[]],Y=(t,e)=>{var n=k[t];0===e||10===e?((1===t?y:B)(((t,e,n)=>{for(var r=e+n,i=e;t[i]&&!(i>=r);)++i;if(i-e>16&&t.buffer&&W)return W.decode(t.subarray(e,i));for(var o="";e>10,56320|1023&_)}}else o+=String.fromCharCode((31&s)<<6|a)}else o+=String.fromCharCode(s)}return o})(n,0)),n.length=0):n.push(e)},j={d:()=>!0,e:function(){return Date.now()},c:t=>{var e=E.length,n=2147483648;if((t>>>=0)>n)return!1;for(var r,i,o=1;o<=4;o*=2){var s=e*(1+.2/o);s=Math.min(s,t+100663296);var a=Math.min(n,(r=Math.max(t,s))+((i=65536)-r%i)%i);if(x(a))return!0}return!1},f:t=>52,b:function(t,e,n,r,i){return 70},a:(t,e,n,r)=>{for(var i=0,o=0;o>2],a=I[e+4>>2];e+=8;for(var c=0;c>2]=i,0}};function q(){function t(){L||(L=!0,i.calledRun=!0,Z||(M(C),n(i),i.onRuntimeInitialized&&i.onRuntimeInitialized(),function(){if(i.postRun)for("function"==typeof i.postRun&&(i.postRun=[i.postRun]);i.postRun.length;)t=i.postRun.shift(),N.unshift(t);var t;M(N)}()))}S>0||(function(){if(i.preRun)for("function"==typeof i.preRun&&(i.preRun=[i.preRun]);i.preRun.length;)t=i.preRun.shift(),b.unshift(t);var t;M(b)}(),S>0||(i.setStatus?(i.setStatus("Running..."),setTimeout((function(){setTimeout((function(){i.setStatus("")}),1),t()}),1)):t()))}if(function(){var t,e,n,o,s={a:j};function a(t,e){var n,r=t.exports;return m=(p=r).g,v(),p.s,n=p.h,C.unshift(n),function(t){if(S--,i.monitorRunDependencies&&i.monitorRunDependencies(S),0==S&&w){var e=w;w=null,e()}}(),r}if(S++,i.monitorRunDependencies&&i.monitorRunDependencies(S),i.instantiateWasm)try{return i.instantiateWasm(s,a)}catch(t){B("Module.instantiateWasm callback failed with error: "+t),r(t)}(t=d,e=T,n=s,o=function(t){a(t.instance)},t||"function"!=typeof WebAssembly.instantiateStreaming||F(e)||U(e)||A||"function"!=typeof fetch?G(e,n,o):fetch(e,{credentials:"same-origin"}).then((t=>WebAssembly.instantiateStreaming(t,n).then(o,(function(t){return B("wasm streaming compile failed: "+t),B("falling back to ArrayBuffer instantiation"),G(e,n,o)}))))).catch(r)}(),i._ImageScanner_create=()=>(i._ImageScanner_create=p.i)(),i._ImageScanner_destory=t=>(i._ImageScanner_destory=p.j)(t),i._ImageScanner_set_config=(t,e,n,r)=>(i._ImageScanner_set_config=p.k)(t,e,n,r),i._ImageScanner_enable_cache=(t,e)=>(i._ImageScanner_enable_cache=p.l)(t,e),i._ImageScanner_recycle_image=(t,e)=>(i._ImageScanner_recycle_image=p.m)(t,e),i._ImageScanner_get_results=t=>(i._ImageScanner_get_results=p.n)(t),i._ImageScanner_scan=(t,e)=>(i._ImageScanner_scan=p.o)(t,e),i._Image_create=(t,e,n,r,o,s)=>(i._Image_create=p.p)(t,e,n,r,o,s),i._Image_destory=t=>(i._Image_destory=p.q)(t),i._Image_get_symbols=t=>(i._Image_get_symbols=p.r)(t),i._free=t=>(i._free=p.t)(t),i._malloc=t=>(i._malloc=p.u)(t),w=function t(){L||q(),L||(w=t)},i.preInit)for("function"==typeof i.preInit&&(i.preInit=[i.preInit]);i.preInit.length>0;)i.preInit.pop()();return q(),t.ready});let r;function i(e={}){r=function(){return t(this,void 0,void 0,(function*(){const t=yield n(e);if(t)return t;throw Error("WASM was not loaded")}))}()}function o(){return t(this,void 0,void 0,(function*(){return r||i(),yield r}))}var s,a,c;!function(t){t[t.ZBAR_NONE=0]="ZBAR_NONE",t[t.ZBAR_P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ZBAR_CFG_MAX_LEN=33]="ZBAR_CFG_MAX_LEN",t[t.ZBAR_CFG_UNCERTAINTY=64]="ZBAR_CFG_UNCERTAINTY",t[t.ZBAR_CFG_POSITION=128]="ZBAR_CFG_POSITION",t[t.ZBAR_CFG_TEST_INVERTED=129]="ZBAR_CFG_TEST_INVERTED",t[t.ZBAR_CFG_X_DENSITY=256]="ZBAR_CFG_X_DENSITY",t[t.ZBAR_CFG_Y_DENSITY=257]="ZBAR_CFG_Y_DENSITY"}(a||(a={})),function(t){t[t.ZBAR_ORIENT_UNKNOWN=-1]="ZBAR_ORIENT_UNKNOWN",t[t.ZBAR_ORIENT_UP=0]="ZBAR_ORIENT_UP",t[t.ZBAR_ORIENT_RIGHT=1]="ZBAR_ORIENT_RIGHT",t[t.ZBAR_ORIENT_DOWN=2]="ZBAR_ORIENT_DOWN",t[t.ZBAR_ORIENT_LEFT=3]="ZBAR_ORIENT_LEFT"}(c||(c={}));class _{constructor(t,e){this.ptr=t,this.inst=e}checkAlive(){if(!this.ptr)throw Error("Call after destroyed")}getPointer(){return this.checkAlive(),this.ptr}}class u{constructor(t,e){this.ptr=t,this.ptr32=t>>2,this.buf=e,this.HEAP8=new Int8Array(e),this.HEAPU32=new Uint32Array(e),this.HEAP32=new Int32Array(e)}}class A extends u{get type(){return this.HEAPU32[this.ptr32]}get data(){const t=this.HEAPU32[this.ptr32+4],e=this.HEAPU32[this.ptr32+5];return Int8Array.from(this.HEAP8.subarray(e,e+t))}get points(){const t=this.HEAPU32[this.ptr32+7],e=this.HEAPU32[this.ptr32+8]>>2,n=[];for(let r=0;r>16;return new this(t._Image_create(e,n,808466521,c,a,i),t)}))}destroy(){this.checkAlive(),this.inst._Image_destory(this.ptr),this.ptr=0}getSymbols(){this.checkAlive();const t=this.inst._Image_get_symbols(this.ptr);return h.createSymbolsFromPtr(t,this.inst.HEAPU8.buffer)}}class R extends _{static create(){return t(this,void 0,void 0,(function*(){const t=yield o();return new this(t._ImageScanner_create(),t)}))}destroy(){this.checkAlive(),this.inst._ImageScanner_destory(this.ptr),this.ptr=0}setConfig(t,e,n){return this.checkAlive(),this.inst._ImageScanner_set_config(this.ptr,t,e,n)}enableCache(t=!0){this.checkAlive(),this.inst._ImageScanner_enable_cache(this.ptr,t)}recycleImage(t){this.checkAlive(),this.inst._ImageScanner_recycle_image(this.ptr,t.getPointer())}getResults(){this.checkAlive();const t=this.inst._ImageScanner_get_results(this.ptr);return h.createSymbolsFromPtr(t,this.inst.HEAPU8.buffer)}scan(t){return this.checkAlive(),this.inst._ImageScanner_scan(this.ptr,t.getPointer())}}const d=()=>t(void 0,void 0,void 0,(function*(){const t=yield R.create();return t.setConfig(s.ZBAR_NONE,a.ZBAR_CFG_BINARY,1),t}));let m;const p=(e,n)=>t(void 0,void 0,void 0,(function*(){void 0===n&&(n=m||(yield d()),m=n);const t=n.scan(e);if(t<0)throw Error("Scan Failed");return 0===t?[]:e.getSymbols()})),y=(e,n,r,i)=>t(void 0,void 0,void 0,(function*(){const t=yield l.createFromGrayBuffer(n,r,e),o=yield p(t,i);return t.destroy(),o})),B=(e,n,r,i)=>t(void 0,void 0,void 0,(function*(){const t=yield l.createFromRGBABuffer(n,r,e),o=yield p(t,i);return t.destroy(),o})),E=(e,n)=>t(void 0,void 0,void 0,(function*(){return yield B(e.data.buffer,e.width,e.height,n)})),g=Object.freeze(Object.defineProperty({__proto__:null},Symbol.toStringTag,{value:"Module"}));export{a as ZBarConfigType,l as ZBarImage,c as ZBarOrientation,R as ZBarScanner,h as ZBarSymbol,s as ZBarSymbolType,d as getDefaultScanner,o as getInstance,y as scanGrayBuffer,E as scanImageData,B as scanRGBABuffer,i as setModuleArgs}; +//# sourceMappingURL=index.mjs.map \ No newline at end of file diff --git a/assets/wasm/index.mjs.map b/assets/wasm/index.mjs.map new file mode 100644 index 0000000..5532554 --- /dev/null +++ b/assets/wasm/index.mjs.map @@ -0,0 +1,316 @@ +{ +"version": 3, +"file": "index.mjs", +"sources": [ +"../build/zbar.mjs", +"../src/instance.ts", +"../src/enum.ts", +"../src/CppObject.ts", +"../src/ZBarSymbol.ts", +"../src/ZBarImage.ts", +"../src/ZBarScanner.ts", +"../src/module.ts" +], +"sourcesContent": [ +"\nvar zbarWasm = (() => {\n var _scriptDir = import.meta.url;\n \n return (\nasync function(moduleArg = {}) {\n\nvar Module=moduleArg;var readyPromiseResolve,readyPromiseReject;Module[\"ready\"]=new Promise((resolve,reject)=>{readyPromiseResolve=resolve;readyPromiseReject=reject});var moduleOverrides=Object.assign({},Module);var arguments_=[];var thisProgram=\"./this.program\";var quit_=(status,toThrow)=>{throw toThrow};var ENVIRONMENT_IS_WEB=typeof window==\"object\";var ENVIRONMENT_IS_WORKER=typeof importScripts==\"function\";var ENVIRONMENT_IS_NODE=typeof process==\"object\"&&typeof process.versions==\"object\"&&typeof process.versions.node==\"string\";var scriptDirectory=\"\";function locateFile(path){if(Module[\"locateFile\"]){return Module[\"locateFile\"](path,scriptDirectory)}return scriptDirectory+path}var read_,readAsync,readBinary,setWindowTitle;if(ENVIRONMENT_IS_NODE){const{createRequire:createRequire}=await import(\"module\");var require=createRequire(import.meta.url);var fs=require(\"fs\");var nodePath=require(\"path\");if(ENVIRONMENT_IS_WORKER){scriptDirectory=nodePath.dirname(scriptDirectory)+\"/\"}else{scriptDirectory=require(\"url\").fileURLToPath(new URL(\"./\",import.meta.url))}read_=(filename,binary)=>{filename=isFileURI(filename)?new URL(filename):nodePath.normalize(filename);return fs.readFileSync(filename,binary?undefined:\"utf8\")};readBinary=filename=>{var ret=read_(filename,true);if(!ret.buffer){ret=new Uint8Array(ret)}return ret};readAsync=(filename,onload,onerror,binary=true)=>{filename=isFileURI(filename)?new URL(filename):nodePath.normalize(filename);fs.readFile(filename,binary?undefined:\"utf8\",(err,data)=>{if(err)onerror(err);else onload(binary?data.buffer:data)})};if(!Module[\"thisProgram\"]&&process.argv.length>1){thisProgram=process.argv[1].replace(/\\\\/g,\"/\")}arguments_=process.argv.slice(2);quit_=(status,toThrow)=>{process.exitCode=status;throw toThrow};Module[\"inspect\"]=()=>\"[Emscripten Module object]\"}else if(ENVIRONMENT_IS_WEB||ENVIRONMENT_IS_WORKER){if(ENVIRONMENT_IS_WORKER){scriptDirectory=self.location.href}else if(typeof document!=\"undefined\"&&document.currentScript){scriptDirectory=document.currentScript.src}if(_scriptDir){scriptDirectory=_scriptDir}if(scriptDirectory.indexOf(\"blob:\")!==0){scriptDirectory=scriptDirectory.substr(0,scriptDirectory.replace(/[?#].*/,\"\").lastIndexOf(\"/\")+1)}else{scriptDirectory=\"\"}{read_=url=>{var xhr=new XMLHttpRequest;xhr.open(\"GET\",url,false);xhr.send(null);return xhr.responseText};if(ENVIRONMENT_IS_WORKER){readBinary=url=>{var xhr=new XMLHttpRequest;xhr.open(\"GET\",url,false);xhr.responseType=\"arraybuffer\";xhr.send(null);return new Uint8Array(xhr.response)}}readAsync=(url,onload,onerror)=>{var xhr=new XMLHttpRequest;xhr.open(\"GET\",url,true);xhr.responseType=\"arraybuffer\";xhr.onload=()=>{if(xhr.status==200||xhr.status==0&&xhr.response){onload(xhr.response);return}onerror()};xhr.onerror=onerror;xhr.send(null)}}setWindowTitle=title=>document.title=title}else{}var out=Module[\"print\"]||console.log.bind(console);var err=Module[\"printErr\"]||console.error.bind(console);Object.assign(Module,moduleOverrides);moduleOverrides=null;if(Module[\"arguments\"])arguments_=Module[\"arguments\"];if(Module[\"thisProgram\"])thisProgram=Module[\"thisProgram\"];if(Module[\"quit\"])quit_=Module[\"quit\"];var wasmBinary;if(Module[\"wasmBinary\"])wasmBinary=Module[\"wasmBinary\"];var noExitRuntime=Module[\"noExitRuntime\"]||true;if(typeof WebAssembly!=\"object\"){abort(\"no native wasm support detected\")}var wasmMemory;var wasmExports;var ABORT=false;var EXITSTATUS;var HEAP8,HEAPU8,HEAP16,HEAPU16,HEAP32,HEAPU32,HEAPF32,HEAPF64;function updateMemoryViews(){var b=wasmMemory.buffer;Module[\"HEAP8\"]=HEAP8=new Int8Array(b);Module[\"HEAP16\"]=HEAP16=new Int16Array(b);Module[\"HEAP32\"]=HEAP32=new Int32Array(b);Module[\"HEAPU8\"]=HEAPU8=new Uint8Array(b);Module[\"HEAPU16\"]=HEAPU16=new Uint16Array(b);Module[\"HEAPU32\"]=HEAPU32=new Uint32Array(b);Module[\"HEAPF32\"]=HEAPF32=new Float32Array(b);Module[\"HEAPF64\"]=HEAPF64=new Float64Array(b)}var wasmTable;var __ATPRERUN__=[];var __ATINIT__=[];var __ATPOSTRUN__=[];var runtimeInitialized=false;function preRun(){if(Module[\"preRun\"]){if(typeof Module[\"preRun\"]==\"function\")Module[\"preRun\"]=[Module[\"preRun\"]];while(Module[\"preRun\"].length){addOnPreRun(Module[\"preRun\"].shift())}}callRuntimeCallbacks(__ATPRERUN__)}function initRuntime(){runtimeInitialized=true;callRuntimeCallbacks(__ATINIT__)}function postRun(){if(Module[\"postRun\"]){if(typeof Module[\"postRun\"]==\"function\")Module[\"postRun\"]=[Module[\"postRun\"]];while(Module[\"postRun\"].length){addOnPostRun(Module[\"postRun\"].shift())}}callRuntimeCallbacks(__ATPOSTRUN__)}function addOnPreRun(cb){__ATPRERUN__.unshift(cb)}function addOnInit(cb){__ATINIT__.unshift(cb)}function addOnPostRun(cb){__ATPOSTRUN__.unshift(cb)}var runDependencies=0;var runDependencyWatcher=null;var dependenciesFulfilled=null;function addRunDependency(id){runDependencies++;if(Module[\"monitorRunDependencies\"]){Module[\"monitorRunDependencies\"](runDependencies)}}function removeRunDependency(id){runDependencies--;if(Module[\"monitorRunDependencies\"]){Module[\"monitorRunDependencies\"](runDependencies)}if(runDependencies==0){if(runDependencyWatcher!==null){clearInterval(runDependencyWatcher);runDependencyWatcher=null}if(dependenciesFulfilled){var callback=dependenciesFulfilled;dependenciesFulfilled=null;callback()}}}function abort(what){if(Module[\"onAbort\"]){Module[\"onAbort\"](what)}what=\"Aborted(\"+what+\")\";err(what);ABORT=true;EXITSTATUS=1;what+=\". Build with -sASSERTIONS for more info.\";var e=new WebAssembly.RuntimeError(what);readyPromiseReject(e);throw e}var dataURIPrefix=\"data:application/octet-stream;base64,\";function isDataURI(filename){return filename.startsWith(dataURIPrefix)}function isFileURI(filename){return filename.startsWith(\"file://\")}var wasmBinaryFile;if(Module[\"locateFile\"]){wasmBinaryFile=\"ngx-scanner-qrcode.wasm\";if(!isDataURI(wasmBinaryFile)){wasmBinaryFile=locateFile(wasmBinaryFile)}}else{wasmBinaryFile=new URL(\"ngx-scanner-qrcode.wasm\",import.meta.url).href}function getBinarySync(file){if(file==wasmBinaryFile&&wasmBinary){return new Uint8Array(wasmBinary)}if(readBinary){return readBinary(file)}throw\"both async and sync fetching of the wasm failed\"}function getBinaryPromise(binaryFile){if(!wasmBinary&&(ENVIRONMENT_IS_WEB||ENVIRONMENT_IS_WORKER)){if(typeof fetch==\"function\"&&!isFileURI(binaryFile)){return fetch(binaryFile,{credentials:\"same-origin\"}).then(response=>{if(!response[\"ok\"]){throw\"failed to load wasm binary file at '\"+binaryFile+\"'\"}return response[\"arrayBuffer\"]()}).catch(()=>getBinarySync(binaryFile))}else if(readAsync){return new Promise((resolve,reject)=>{readAsync(binaryFile,response=>resolve(new Uint8Array(response)),reject)})}}return Promise.resolve().then(()=>getBinarySync(binaryFile))}function instantiateArrayBuffer(binaryFile,imports,receiver){return getBinaryPromise(binaryFile).then(binary=>WebAssembly.instantiate(binary,imports)).then(instance=>instance).then(receiver,reason=>{err(\"failed to asynchronously prepare wasm: \"+reason);abort(reason)})}function instantiateAsync(binary,binaryFile,imports,callback){if(!binary&&typeof WebAssembly.instantiateStreaming==\"function\"&&!isDataURI(binaryFile)&&!isFileURI(binaryFile)&&!ENVIRONMENT_IS_NODE&&typeof fetch==\"function\"){return fetch(binaryFile,{credentials:\"same-origin\"}).then(response=>{var result=WebAssembly.instantiateStreaming(response,imports);return result.then(callback,function(reason){err(\"wasm streaming compile failed: \"+reason);err(\"falling back to ArrayBuffer instantiation\");return instantiateArrayBuffer(binaryFile,imports,callback)})})}return instantiateArrayBuffer(binaryFile,imports,callback)}function createWasm(){var info={\"a\":wasmImports};function receiveInstance(instance,module){var exports=instance.exports;wasmExports=exports;wasmMemory=wasmExports[\"g\"];updateMemoryViews();wasmTable=wasmExports[\"s\"];addOnInit(wasmExports[\"h\"]);removeRunDependency(\"wasm-instantiate\");return exports}addRunDependency(\"wasm-instantiate\");function receiveInstantiationResult(result){receiveInstance(result[\"instance\"])}if(Module[\"instantiateWasm\"]){try{return Module[\"instantiateWasm\"](info,receiveInstance)}catch(e){err(\"Module.instantiateWasm callback failed with error: \"+e);readyPromiseReject(e)}}instantiateAsync(wasmBinary,wasmBinaryFile,info,receiveInstantiationResult).catch(readyPromiseReject);return{}}var callRuntimeCallbacks=callbacks=>{while(callbacks.length>0){callbacks.shift()(Module)}};var nowIsMonotonic=true;var __emscripten_get_now_is_monotonic=()=>nowIsMonotonic;function _emscripten_date_now(){return Date.now()}var _emscripten_get_now;_emscripten_get_now=()=>performance.now();var getHeapMax=()=>2147483648;var growMemory=size=>{var b=wasmMemory.buffer;var pages=size-b.byteLength+65535>>>16;try{wasmMemory.grow(pages);updateMemoryViews();return 1}catch(e){}};var _emscripten_resize_heap=requestedSize=>{var oldSize=HEAPU8.length;requestedSize>>>=0;var maxHeapSize=getHeapMax();if(requestedSize>maxHeapSize){return false}var alignUp=(x,multiple)=>x+(multiple-x%multiple)%multiple;for(var cutDown=1;cutDown<=4;cutDown*=2){var overGrownHeapSize=oldSize*(1+.2/cutDown);overGrownHeapSize=Math.min(overGrownHeapSize,requestedSize+100663296);var newSize=Math.min(maxHeapSize,alignUp(Math.max(requestedSize,overGrownHeapSize),65536));var replacement=growMemory(newSize);if(replacement){return true}}return false};var UTF8Decoder=typeof TextDecoder!=\"undefined\"?new TextDecoder(\"utf8\"):undefined;var UTF8ArrayToString=(heapOrArray,idx,maxBytesToRead)=>{var endIdx=idx+maxBytesToRead;var endPtr=idx;while(heapOrArray[endPtr]&&!(endPtr>=endIdx))++endPtr;if(endPtr-idx>16&&heapOrArray.buffer&&UTF8Decoder){return UTF8Decoder.decode(heapOrArray.subarray(idx,endPtr))}var str=\"\";while(idx>10,56320|ch&1023)}}return str};var UTF8ToString=(ptr,maxBytesToRead)=>ptr?UTF8ArrayToString(HEAPU8,ptr,maxBytesToRead):\"\";var SYSCALLS={varargs:undefined,get(){SYSCALLS.varargs+=4;var ret=HEAP32[SYSCALLS.varargs-4>>2];return ret},getStr(ptr){var ret=UTF8ToString(ptr);return ret}};var _fd_close=fd=>52;function convertI32PairToI53Checked(lo,hi){return hi+2097152>>>0<4194305-!!lo?(lo>>>0)+hi*4294967296:NaN}function _fd_seek(fd,offset_low,offset_high,whence,newOffset){var offset=convertI32PairToI53Checked(offset_low,offset_high);return 70}var printCharBuffers=[null,[],[]];var printChar=(stream,curr)=>{var buffer=printCharBuffers[stream];if(curr===0||curr===10){(stream===1?out:err)(UTF8ArrayToString(buffer,0));buffer.length=0}else{buffer.push(curr)}};var _fd_write=(fd,iov,iovcnt,pnum)=>{var num=0;for(var i=0;i>2];var len=HEAPU32[iov+4>>2];iov+=8;for(var j=0;j>2]=num;return 0};var wasmImports={d:__emscripten_get_now_is_monotonic,e:_emscripten_date_now,c:_emscripten_resize_heap,f:_fd_close,b:_fd_seek,a:_fd_write};var asm=createWasm();var ___wasm_call_ctors=()=>(___wasm_call_ctors=wasmExports[\"h\"])();var _ImageScanner_create=Module[\"_ImageScanner_create\"]=()=>(_ImageScanner_create=Module[\"_ImageScanner_create\"]=wasmExports[\"i\"])();var _ImageScanner_destory=Module[\"_ImageScanner_destory\"]=a0=>(_ImageScanner_destory=Module[\"_ImageScanner_destory\"]=wasmExports[\"j\"])(a0);var _ImageScanner_set_config=Module[\"_ImageScanner_set_config\"]=(a0,a1,a2,a3)=>(_ImageScanner_set_config=Module[\"_ImageScanner_set_config\"]=wasmExports[\"k\"])(a0,a1,a2,a3);var _ImageScanner_enable_cache=Module[\"_ImageScanner_enable_cache\"]=(a0,a1)=>(_ImageScanner_enable_cache=Module[\"_ImageScanner_enable_cache\"]=wasmExports[\"l\"])(a0,a1);var _ImageScanner_recycle_image=Module[\"_ImageScanner_recycle_image\"]=(a0,a1)=>(_ImageScanner_recycle_image=Module[\"_ImageScanner_recycle_image\"]=wasmExports[\"m\"])(a0,a1);var _ImageScanner_get_results=Module[\"_ImageScanner_get_results\"]=a0=>(_ImageScanner_get_results=Module[\"_ImageScanner_get_results\"]=wasmExports[\"n\"])(a0);var _ImageScanner_scan=Module[\"_ImageScanner_scan\"]=(a0,a1)=>(_ImageScanner_scan=Module[\"_ImageScanner_scan\"]=wasmExports[\"o\"])(a0,a1);var _Image_create=Module[\"_Image_create\"]=(a0,a1,a2,a3,a4,a5)=>(_Image_create=Module[\"_Image_create\"]=wasmExports[\"p\"])(a0,a1,a2,a3,a4,a5);var _Image_destory=Module[\"_Image_destory\"]=a0=>(_Image_destory=Module[\"_Image_destory\"]=wasmExports[\"q\"])(a0);var _Image_get_symbols=Module[\"_Image_get_symbols\"]=a0=>(_Image_get_symbols=Module[\"_Image_get_symbols\"]=wasmExports[\"r\"])(a0);var ___errno_location=()=>(___errno_location=wasmExports[\"__errno_location\"])();var _free=Module[\"_free\"]=a0=>(_free=Module[\"_free\"]=wasmExports[\"t\"])(a0);var _malloc=Module[\"_malloc\"]=a0=>(_malloc=Module[\"_malloc\"]=wasmExports[\"u\"])(a0);var calledRun;dependenciesFulfilled=function runCaller(){if(!calledRun)run();if(!calledRun)dependenciesFulfilled=runCaller};function run(){if(runDependencies>0){return}preRun();if(runDependencies>0){return}function doRun(){if(calledRun)return;calledRun=true;Module[\"calledRun\"]=true;if(ABORT)return;initRuntime();readyPromiseResolve(Module);if(Module[\"onRuntimeInitialized\"])Module[\"onRuntimeInitialized\"]();postRun()}if(Module[\"setStatus\"]){Module[\"setStatus\"](\"Running...\");setTimeout(function(){setTimeout(function(){Module[\"setStatus\"](\"\")},1);doRun()},1)}else{doRun()}}if(Module[\"preInit\"]){if(typeof Module[\"preInit\"]==\"function\")Module[\"preInit\"]=[Module[\"preInit\"]];while(Module[\"preInit\"].length>0){Module[\"preInit\"].pop()()}}run();\n\n\n return moduleArg.ready\n}\n\n);\n})();\nexport default zbarWasm;", +"import zbarJs from 'zbarJs'\nimport type ZBarInstance from './ZBarInstance'\n\n\nlet zbarInstancePromise: Promise\n\n\n/**\n * Arguments used for building a `ZBarInstance`\n */\nexport type ZBarModuleArgs = {\n locateFile?: (filename: string, directory: string) => string,\n}\n\n\n/**\n * Causes a new `ZBarInstance` built with the specified arguments\n * to be returned by subsequent `getInstance()` calls.\n */\nexport function setModuleArgs(args: ZBarModuleArgs = {}): void {\n zbarInstancePromise = (async function(): Promise {\n const zbarInstance = await zbarJs(args)\n\n if (zbarInstance) {\n return zbarInstance\n\n } else {\n throw Error('WASM was not loaded')\n }\n })()\n}\n\n\n/**\n * Returns a `ZBarInstance` built with the arguments set by `setModuleArgs()`,\n * or built without any arguments.\n * Successive calls return the same instance until `setModuleArgs()` is called.\n */\nexport async function getInstance(): Promise {\n // Instantiate the module without arguments if no args have been set explicitly\n if (!zbarInstancePromise) {\n setModuleArgs()\n }\n\n return await zbarInstancePromise\n}\n", +"/* Copied from https://github.com/mchehab/zbar, release 0.23.90 */\n\nexport enum ZBarSymbolType {\n ZBAR_NONE\t = 0, /**< no symbol decoded */\n ZBAR_PARTIAL = 1, /**< intermediate status */\n ZBAR_EAN2\t = 2, /**< GS1 2-digit add-on */\n ZBAR_EAN5\t = 5, /**< GS1 5-digit add-on */\n ZBAR_EAN8\t = 8, /**< EAN-8 */\n ZBAR_UPCE\t = 9, /**< UPC-E */\n ZBAR_ISBN10\t = 10, /**< ISBN-10 (from EAN-13). @since 0.4 */\n ZBAR_UPCA\t = 12, /**< UPC-A */\n ZBAR_EAN13\t = 13, /**< EAN-13 */\n ZBAR_ISBN13\t = 14, /**< ISBN-13 (from EAN-13). @since 0.4 */\n ZBAR_COMPOSITE = 15, /**< EAN/UPC composite */\n ZBAR_I25\t = 25, /**< Interleaved 2 of 5. @since 0.4 */\n ZBAR_DATABAR = 34, /**< GS1 DataBar (RSS). @since 0.11 */\n ZBAR_DATABAR_EXP = 35, /**< GS1 DataBar Expanded. @since 0.11 */\n ZBAR_CODABAR = 38, /**< Codabar. @since 0.11 */\n ZBAR_CODE39\t = 39, /**< Code 39. @since 0.4 */\n ZBAR_PDF417\t = 57, /**< PDF417. @since 0.6 */\n ZBAR_QRCODE\t = 64, /**< QR Code. @since 0.10 */\n ZBAR_SQCODE\t = 80, /**< SQ Code. @since 0.20.1 */\n ZBAR_CODE93\t = 93, /**< Code 93. @since 0.11 */\n ZBAR_CODE128 = 128, /**< Code 128 */\n\n /*\n * Please see _zbar_get_symbol_hash() if adding\n * anything after 128\n */\n\n /** mask for base symbol type.\n * @deprecated in 0.11, remove this from existing code\n */\n ZBAR_SYMBOL = 0x00ff,\n /** 2-digit add-on flag.\n * @deprecated in 0.11, a ::ZBAR_EAN2 component is used for\n * 2-digit GS1 add-ons\n */\n ZBAR_ADDON2 = 0x0200,\n /** 5-digit add-on flag.\n * @deprecated in 0.11, a ::ZBAR_EAN5 component is used for\n * 5-digit GS1 add-ons\n */\n ZBAR_ADDON5 = 0x0500,\n /** add-on flag mask.\n * @deprecated in 0.11, GS1 add-ons are represented using composite\n * symbols of type ::ZBAR_COMPOSITE; add-on components use ::ZBAR_EAN2\n * or ::ZBAR_EAN5\n */\n ZBAR_ADDON = 0x0700,\n}\n\nexport enum ZBarConfigType {\n ZBAR_CFG_ENABLE = 0, /**< enable symbology/feature */\n ZBAR_CFG_ADD_CHECK, /**< enable check digit when optional */\n ZBAR_CFG_EMIT_CHECK, /**< return check digit when present */\n ZBAR_CFG_ASCII, /**< enable full ASCII character set */\n ZBAR_CFG_BINARY, /**< don't convert binary data to text */\n ZBAR_CFG_NUM, /**< number of boolean decoder configs */\n\n ZBAR_CFG_MIN_LEN = 0x20, /**< minimum data length for valid decode */\n ZBAR_CFG_MAX_LEN, /**< maximum data length for valid decode */\n\n ZBAR_CFG_UNCERTAINTY = 0x40, /**< required video consistency frames */\n\n ZBAR_CFG_POSITION = 0x80, /**< enable scanner to collect position data */\n ZBAR_CFG_TEST_INVERTED, /**< if fails to decode, test inverted */\n\n ZBAR_CFG_X_DENSITY = 0x100, /**< image scanner vertical scan density */\n ZBAR_CFG_Y_DENSITY, /**< image scanner horizontal scan density */\n}\n\nexport enum ZBarOrientation {\n ZBAR_ORIENT_UNKNOWN = -1, /**< unable to determine orientation */\n ZBAR_ORIENT_UP, /**< upright, read left to right */\n ZBAR_ORIENT_RIGHT, /**< sideways, read top to bottom */\n ZBAR_ORIENT_DOWN, /**< upside-down, read right to left */\n ZBAR_ORIENT_LEFT, /**< sideways, read bottom to top */\n}\n", +"import type ZBarInstance from './ZBarInstance'\n\nexport class CppObject {\n protected ptr: number\n protected inst: ZBarInstance\n\n protected constructor(ptr: number, inst: ZBarInstance) {\n this.ptr = ptr\n this.inst = inst\n }\n\n protected checkAlive(): void {\n if (this.ptr) return\n throw Error('Call after destroyed')\n }\n\n getPointer(): number {\n this.checkAlive()\n return this.ptr\n }\n}\n", +"import { ZBarOrientation, ZBarSymbolType } from './enum'\n\nexport interface Point {\n x: number\n y: number\n}\n\nclass TypePointer {\n protected ptr: number\n protected ptr32: number\n protected buf: ArrayBuffer\n protected HEAP8: Int8Array\n protected HEAP32: Int32Array\n protected HEAPU32: Uint32Array\n\n constructor(ptr: number, buf: ArrayBuffer) {\n this.ptr = ptr\n this.ptr32 = ptr >> 2\n this.buf = buf\n this.HEAP8 = new Int8Array(buf)\n this.HEAPU32 = new Uint32Array(buf)\n this.HEAP32 = new Int32Array(buf)\n }\n}\n\nclass SymbolPtr extends TypePointer {\n get type(): ZBarSymbolType {\n return this.HEAPU32[this.ptr32] as ZBarSymbolType\n }\n\n get data(): Int8Array {\n const\n len = this.HEAPU32[this.ptr32 + 4],\n ptr = this.HEAPU32[this.ptr32 + 5];\n return Int8Array.from(this.HEAP8.subarray(ptr, ptr + len))\n }\n\n get points(): Array {\n const\n len = this.HEAPU32[this.ptr32 + 7],\n ptr = this.HEAPU32[this.ptr32 + 8],\n ptr32 = ptr >> 2,\n res: Point[] = [];\n for (let i = 0; i < len; ++i) {\n const\n x = this.HEAP32[ptr32 + i * 2],\n y = this.HEAP32[ptr32 + i * 2 + 1];\n res.push({ x, y } as Point)\n }\n return res\n }\n\n get orientation(): ZBarOrientation {\n return this.HEAP32[this.ptr32 + 9]\n }\n\n get next(): SymbolPtr | null {\n const ptr = this.HEAPU32[this.ptr32 + 11]\n if (!ptr) return null\n return new SymbolPtr(ptr, this.buf)\n }\n\n get time(): number {\n return this.HEAPU32[this.ptr32 + 13]\n }\n\n get cacheCount(): number {\n return this.HEAP32[this.ptr32 + 14]\n }\n\n get quality(): number {\n return this.HEAP32[this.ptr32 + 15]\n }\n}\n\nclass SymbolSetPtr extends TypePointer {\n get head(): SymbolPtr | null {\n const ptr = this.HEAPU32[this.ptr32 + 2]\n if (!ptr) return null\n return new SymbolPtr(ptr, this.buf)\n }\n}\n\nexport class ZBarSymbol {\n type: ZBarSymbolType\n typeName: string\n data: Int8Array\n points: Array\n orientation: ZBarOrientation\n time: number\n cacheCount: number\n quality: number\n private constructor(ptr: SymbolPtr) {\n this.type = ptr.type\n this.typeName = ZBarSymbolType[this.type]\n this.data = ptr.data\n this.points = ptr.points\n this.orientation = ptr.orientation\n this.time = ptr.time\n this.cacheCount = ptr.cacheCount\n this.quality = ptr.quality\n }\n\n static createSymbolsFromPtr(ptr: number, buf: ArrayBuffer): Array {\n if (ptr == 0) return [];\n\n const set = new SymbolSetPtr(ptr, buf);\n let symbol = set.head;\n const res: ZBarSymbol[] = [];\n while (symbol !== null) {\n res.push(new ZBarSymbol(symbol));\n symbol = symbol.next;\n }\n return res;\n }\n\n decode(encoding?: string) {\n const decoder = new TextDecoder(encoding);\n return decoder.decode(this.data);\n }\n}\n", +"import { CppObject } from './CppObject'\nimport { ZBarSymbol } from './ZBarSymbol'\nimport { getInstance } from './instance'\n\nexport class ZBarImage extends CppObject {\n static async createFromGrayBuffer(\n width: number,\n height: number,\n dataBuf: ArrayBuffer,\n sequence_num: number = 0\n ): Promise {\n const\n inst = await getInstance(),\n data = new Uint8Array(dataBuf),\n len = width * height;\n if (len !== data.byteLength) {\n throw Error(`data length (${data.byteLength} bytes) does not match width and height (${len} bytes)`)\n }\n const\n buf = inst._malloc(len),\n heap = inst.HEAPU8;\n heap.set(data, buf)\n const ptr = inst._Image_create(\n width,\n height,\n 0x30303859 /* Y800 */,\n buf,\n len,\n sequence_num\n )\n return new this(ptr, inst)\n }\n\n static async createFromRGBABuffer(\n width: number,\n height: number,\n dataBuf: ArrayBuffer,\n sequence_num: number = 0\n ): Promise {\n const\n inst = await getInstance(),\n data = new Uint8Array(dataBuf),\n len = width * height;\n if (len * 4 !== data.byteLength) {\n throw Error(`data length (${data.byteLength} bytes) does not match width and height (${len * 4} bytes)`)\n }\n const\n buf = inst._malloc(len),\n bufEnd = buf + len,\n heap = inst.HEAPU8;\n for (let i = buf, j = 0; i < bufEnd; i++, j += 4) {\n heap[i] = (\n data[j] * 19595 +\n data[j + 1] * 38469 +\n data[j + 2] * 7472\n ) >> 16\n }\n const ptr = inst._Image_create(\n width,\n height,\n 0x30303859 /* Y800 */,\n buf,\n len,\n sequence_num\n )\n return new this(ptr, inst)\n }\n\n destroy(): void {\n this.checkAlive()\n this.inst._Image_destory(this.ptr)\n this.ptr = 0\n }\n\n getSymbols(): Array {\n this.checkAlive()\n const res = this.inst._Image_get_symbols(this.ptr)\n return ZBarSymbol.createSymbolsFromPtr(res, this.inst.HEAPU8.buffer)\n }\n}\n", +"import { CppObject } from './CppObject'\nimport { ZBarImage } from './ZBarImage'\nimport { getInstance } from './instance'\nimport { ZBarSymbol } from './ZBarSymbol'\nimport { ZBarSymbolType, ZBarConfigType } from './enum'\n\nexport class ZBarScanner extends CppObject {\n static async create(): Promise {\n const\n inst = await getInstance(),\n ptr = inst._ImageScanner_create();\n return new this(ptr, inst)\n }\n\n destroy(): void {\n this.checkAlive()\n this.inst._ImageScanner_destory(this.ptr)\n this.ptr = 0\n }\n\n setConfig(sym: ZBarSymbolType, conf: ZBarConfigType, value: number): number {\n this.checkAlive()\n return this.inst._ImageScanner_set_config(this.ptr, sym, conf, value)\n }\n\n enableCache(enable: boolean = true): void {\n this.checkAlive()\n this.inst._ImageScanner_enable_cache(this.ptr, enable)\n }\n\n recycleImage(image: ZBarImage): void {\n this.checkAlive()\n this.inst._ImageScanner_recycle_image(this.ptr, image.getPointer())\n }\n\n getResults(): Array {\n this.checkAlive()\n const res = this.inst._ImageScanner_get_results(this.ptr)\n return ZBarSymbol.createSymbolsFromPtr(res, this.inst.HEAPU8.buffer)\n }\n\n scan(image: ZBarImage): number {\n this.checkAlive()\n return this.inst._ImageScanner_scan(this.ptr, image.getPointer())\n }\n}\n", +"import { ZBarImage } from './ZBarImage'\nimport { ZBarScanner } from './ZBarScanner'\nimport { ZBarSymbol } from './ZBarSymbol'\nimport { ZBarConfigType, ZBarSymbolType } from './enum'\n\n// Returns a new ZBarScanner instance that delegates QR code text decoding\n// to the native TextDecoder (fixes #7: Issue with utf-8)\nexport const getDefaultScanner = async () => {\n const scanner = await ZBarScanner.create()\n scanner.setConfig(ZBarSymbolType.ZBAR_NONE, ZBarConfigType.ZBAR_CFG_BINARY, 1)\n return scanner\n}\n\nlet defaultScanner: ZBarScanner\n\nconst scanImage = async (\n image: ZBarImage,\n scanner?: ZBarScanner\n): Promise> => {\n if (scanner === undefined) {\n // Create the default scanner lazily\n scanner = defaultScanner || await getDefaultScanner()\n defaultScanner = scanner\n }\n const res = scanner.scan(image)\n if (res < 0) {\n throw Error('Scan Failed')\n }\n if (res === 0) return []\n return image.getSymbols()\n}\nexport const scanGrayBuffer = async (\n buffer: ArrayBuffer,\n width: number,\n height: number,\n scanner?: ZBarScanner\n): Promise> => {\n const\n image = await ZBarImage.createFromGrayBuffer(width, height, buffer),\n res = await scanImage(image, scanner);\n image.destroy()\n return res\n}\nexport const scanRGBABuffer = async (\n buffer: ArrayBuffer,\n width: number,\n height: number,\n scanner?: ZBarScanner\n): Promise> => {\n const\n image = await ZBarImage.createFromRGBABuffer(width, height, buffer),\n res = await scanImage(image, scanner);\n image.destroy()\n return res\n}\nexport const scanImageData = async (\n image: ImageData,\n scanner?: ZBarScanner\n): Promise> => {\n return await scanRGBABuffer(\n image.data.buffer,\n image.width,\n image.height,\n scanner\n )\n}\n" +], +"names": [ +"_scriptDir", +"zbarWasm", +"url", +"moduleArg", +"readyPromiseResolve", +"readyPromiseReject", +"Module", +"Promise", +"resolve", +"reject", +"read_", +"readAsync", +"readBinary", +"moduleOverrides", +"Object", +"assign", +"ENVIRONMENT_IS_WEB", +"window", +"ENVIRONMENT_IS_WORKER", +"importScripts", +"ENVIRONMENT_IS_NODE", +"process", +"versions", +"node", +"scriptDirectory", +"createRequire", +"then", +"_polyfillNode_module", +"require", +"fs", +"nodePath", +"dirname", +"fileURLToPath", +"URL", +"filename", +"binary", +"isFileURI", +"normalize", +"readFileSync", +"undefined", +"ret", +"buffer", +"Uint8Array", +"onload", +"onerror", +"readFile", +"err", +"data", +"argv", +"length", +"replace", +"slice", +"self", +"location", +"href", +"document", +"currentScript", +"src", +"indexOf", +"substr", +"lastIndexOf", +"xhr", +"XMLHttpRequest", +"open", +"send", +"responseText", +"responseType", +"response", +"status", +"wasmBinary", +"wasmMemory", +"wasmExports", +"out", +"console", +"log", +"bind", +"error", +"WebAssembly", +"abort", +"HEAPU8", +"HEAPU32", +"ABORT", +"updateMemoryViews", +"b", +"Int8Array", +"Int16Array", +"Int32Array", +"Uint16Array", +"Uint32Array", +"Float32Array", +"Float64Array", +"__ATPRERUN__", +"__ATINIT__", +"__ATPOSTRUN__", +"runDependencies", +"dependenciesFulfilled", +"what", +"e", +"RuntimeError", +"wasmBinaryFile", +"path", +"dataURIPrefix", +"isDataURI", +"startsWith", +"getBinarySync", +"file", +"instantiateArrayBuffer", +"binaryFile", +"imports", +"receiver", +"fetch", +"credentials", +"catch", +"getBinaryPromise", +"instantiate", +"instance", +"reason", +"calledRun", +"callRuntimeCallbacks", +"callbacks", +"shift", +"growMemory", +"size", +"pages", +"byteLength", +"grow", +"UTF8Decoder", +"TextDecoder", +"printCharBuffers", +"printChar", +"stream", +"curr", +"heapOrArray", +"idx", +"maxBytesToRead", +"endIdx", +"endPtr", +"decode", +"subarray", +"str", +"u0", +"u1", +"u2", +"String", +"fromCharCode", +"ch", +"UTF8ArrayToString", +"push", +"wasmImports", +"d", +"Date", +"now", +"c", +"requestedSize", +"oldSize", +"maxHeapSize", +"x", +"multiple", +"cutDown", +"overGrownHeapSize", +"Math", +"min", +"newSize", +"max", +"f", +"fd", +"offset_low", +"offset_high", +"whence", +"newOffset", +"a", +"iov", +"iovcnt", +"pnum", +"num", +"i", +"ptr", +"len", +"j", +"run", +"doRun", +"cb", +"unshift", +"postRun", +"preRun", +"setTimeout", +"callback", +"info", +"receiveInstance", +"module", +"exports", +"id", +"removeRunDependency", +"result", +"instantiateStreaming", +"createWasm", +"a0", +"a1", +"a2", +"a3", +"a4", +"a5", +"runCaller", +"pop", +"ready", +"zbarInstancePromise", +"setModuleArgs", +"args", +"zbarInstance", +"zbarJs", +"Error", +"getInstance", +"ZBarSymbolType", +"ZBarConfigType", +"ZBarOrientation", +"CppObject", +"constructor", +"inst", +"this", +"checkAlive", +"getPointer", +"TypePointer", +"buf", +"ptr32", +"HEAP8", +"HEAP32", +"SymbolPtr", +"type", +"from", +"points", +"res", +"y", +"orientation", +"next", +"time", +"cacheCount", +"quality", +"SymbolSetPtr", +"head", +"ZBarSymbol", +"typeName", +"createSymbolsFromPtr", +"symbol", +"encoding", +"ZBarImage", +"createFromGrayBuffer", +"width", +"height", +"dataBuf", +"sequence_num", +"_malloc", +"set", +"_Image_create", +"createFromRGBABuffer", +"bufEnd", +"heap", +"destroy", +"_Image_destory", +"getSymbols", +"_Image_get_symbols", +"ZBarScanner", +"create", +"_ImageScanner_create", +"_ImageScanner_destory", +"setConfig", +"sym", +"conf", +"value", +"_ImageScanner_set_config", +"enableCache", +"enable", +"_ImageScanner_enable_cache", +"recycleImage", +"image", +"_ImageScanner_recycle_image", +"getResults", +"_ImageScanner_get_results", +"scan", +"_ImageScanner_scan", +"getDefaultScanner", +"__awaiter", +"scanner", +"ZBAR_NONE", +"ZBAR_CFG_BINARY", +"defaultScanner", +"scanImage", +"scanGrayBuffer", +"scanRGBABuffer", +"scanImageData" +], +"mappings": "yVACA,IACMA,EADFC,GACED,cAAyBE,IAE7B,eACaC,EAAY,CAAA,GAE3B,IAAyBC,EAAoBC,EAAzCC,EAAOH,EAAqDG,EAAc,MAAE,IAAIC,SAAQ,CAACC,EAAQC,KAAUL,EAAoBI,EAAQH,EAAmBI,KAAS,IAA8gBC,EAAMC,EAAUC,EAA1hBC,EAAgBC,OAAOC,OAAO,CAAA,EAAGT,GAA2GU,EAAkC,iBAARC,OAAqBC,EAA4C,mBAAfC,cAA8BC,EAAoC,iBAATC,SAA4C,iBAAlBA,QAAQC,UAAkD,iBAAvBD,QAAQC,SAASC,KAAmBC,EAAgB,GAAkL,GAAGJ,EAAoB,CAAC,MAAMK,cAAcA,SAAqBlB,QAAgBC,UAAAkB,MAAA,IAAAC,IAAC,IAAIC,EAAQH,cAA0BvB,KAAS2B,EAAGD,EAAQ,MAAUE,EAASF,EAAQ,QAAkCJ,EAAvBN,EAAuCY,EAASC,QAAQP,GAAiB,IAAyBI,EAAQ,OAAOI,cAAc,IAAIC,IAAI,iBAAiB/B,MAAMQ,EAAM,CAACwB,EAASC,KAAUD,EAASE,EAAUF,GAAU,IAAID,IAAIC,GAAUJ,EAASO,UAAUH,GAAiBL,EAAGS,aAAaJ,EAASC,OAAOI,EAAU,SAAS3B,EAAWsB,IAAW,IAAIM,EAAI9B,EAAMwB,GAAS,GAA8C,OAApCM,EAAIC,SAAQD,EAAI,IAAIE,WAAWF,IAAYA,GAAK7B,EAAU,CAACuB,EAASS,EAAOC,EAAQT,GAAO,KAAQD,EAASE,EAAUF,GAAU,IAA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AAK1C,IAAKiG,EAAMrD,aACrD,ECrCI,MAAM2D,EAAoB,IAAWC,OAAA,OAAA,OAAA,GAAA,YAC1C,MAAMC,QAAgBrB,EAAYC,SAElC,OADAoB,EAAQjB,UAAUpD,EAAesE,UAAWrE,EAAesE,gBAAiB,GACrEF,CACT,IAEA,IAAIG,EAEJ,MAAMC,EAAY,CAChBZ,EACAQ,IAC8BD,OAAA,OAAA,OAAA,GAAA,iBACdjP,IAAZkP,IAEFA,EAAUG,UAAwBL,KAClCK,EAAiBH,GAEnB,MAAMnD,EAAMmD,EAAQJ,KAAKJ,GACzB,GAAI3C,EAAM,EACR,MAAMpB,MAAM,eAEd,OAAY,IAARoB,EAAkB,GACf2C,EAAMf,YACf,IACa4B,EAAiB,CAC5BrP,EACA6M,EACAC,EACAkC,IAC8BD,OAAA,OAAA,OAAA,GAAA,YAC9B,MACEP,QAAc7B,EAAUC,qBAAqBC,EAAOC,EAAQ9M,GAC5D6L,QAAYuD,EAAUZ,EAAOQ,GAE/B,OADAR,EAAMjB,UACC1B,CACT,IACayD,EAAiB,CAC5BtP,EACA6M,EACAC,EACAkC,IAC8BD,OAAA,OAAA,OAAA,GAAA,YAC9B,MACEP,QAAc7B,EAAUS,qBAAqBP,EAAOC,EAAQ9M,GAC5D6L,QAAYuD,EAAUZ,EAAOQ,GAE/B,OADAR,EAAMjB,UACC1B,CACT,IACa0D,EAAgB,CAC3Bf,EACAQ,IAC8BD,OAAA,OAAA,OAAA,GAAA,YAC9B,aAAaO,EACXd,EAAMlO,KAAKN,OACXwO,EAAM3B,MACN2B,EAAM1B,OACNkC,EAEJ" +} \ No newline at end of file diff --git a/index.html b/index.html index 0dc97c9..52e7db0 100644 --- a/index.html +++ b/index.html @@ -9,5 +9,5 @@ - + diff --git a/main.5684d912b97fd1fc.js b/main.5684d912b97fd1fc.js new file mode 100644 index 0000000..361fc81 --- /dev/null +++ b/main.5684d912b97fd1fc.js @@ -0,0 +1 @@ +"use strict";(self.webpackChunkngx_scanner_qrcode=self.webpackChunkngx_scanner_qrcode||[]).push([[179],{37:()=>{function de(e){return"function"==typeof e}function ei(e){const n=e(r=>{Error.call(r),r.stack=(new Error).stack});return n.prototype=Object.create(Error.prototype),n.prototype.constructor=n,n}const ti=ei(e=>function(n){e(this),this.message=n?`${n.length} errors occurred during unsubscription:\n${n.map((r,o)=>`${o+1}) ${r.toString()}`).join("\n ")}`:"",this.name="UnsubscriptionError",this.errors=n});function Br(e,t){if(e){const n=e.indexOf(t);0<=n&&e.splice(n,1)}}class It{constructor(t){this.initialTeardown=t,this.closed=!1,this._parentage=null,this._finalizers=null}unsubscribe(){let t;if(!this.closed){this.closed=!0;const{_parentage:n}=this;if(n)if(this._parentage=null,Array.isArray(n))for(const i of n)i.remove(this);else n.remove(this);const{initialTeardown:r}=this;if(de(r))try{r()}catch(i){t=i instanceof ti?i.errors:[i]}const{_finalizers:o}=this;if(o){this._finalizers=null;for(const i of o)try{td(i)}catch(s){t=t??[],s instanceof ti?t=[...t,...s.errors]:t.push(s)}}if(t)throw new ti(t)}}add(t){var n;if(t&&t!==this)if(this.closed)td(t);else{if(t instanceof It){if(t.closed||t._hasParent(this))return;t._addParent(this)}(this._finalizers=null!==(n=this._finalizers)&&void 0!==n?n:[]).push(t)}}_hasParent(t){const{_parentage:n}=this;return n===t||Array.isArray(n)&&n.includes(t)}_addParent(t){const{_parentage:n}=this;this._parentage=Array.isArray(n)?(n.push(t),n):n?[n,t]:t}_removeParent(t){const{_parentage:n}=this;n===t?this._parentage=null:Array.isArray(n)&&Br(n,t)}remove(t){const{_finalizers:n}=this;n&&Br(n,t),t instanceof It&&t._removeParent(this)}}It.EMPTY=(()=>{const e=new It;return e.closed=!0,e})();const Jc=It.EMPTY;function ed(e){return e instanceof It||e&&"closed"in e&&de(e.remove)&&de(e.add)&&de(e.unsubscribe)}function td(e){de(e)?e():e.unsubscribe()}const Fn={onUnhandledError:null,onStoppedNotification:null,Promise:void 0,useDeprecatedSynchronousErrorHandling:!1,useDeprecatedNextContext:!1},ni={setTimeout(e,t,...n){const{delegate:r}=ni;return r?.setTimeout?r.setTimeout(e,t,...n):setTimeout(e,t,...n)},clearTimeout(e){const{delegate:t}=ni;return(t?.clearTimeout||clearTimeout)(e)},delegate:void 0};function nd(e){ni.setTimeout(()=>{const{onUnhandledError:t}=Fn;if(!t)throw e;t(e)})}function rd(){}const d_=na("C",void 0,void 0);function na(e,t,n){return{kind:e,value:t,error:n}}let xn=null;function ri(e){if(Fn.useDeprecatedSynchronousErrorHandling){const t=!xn;if(t&&(xn={errorThrown:!1,error:null}),e(),t){const{errorThrown:n,error:r}=xn;if(xn=null,n)throw r}}else e()}class ra extends It{constructor(t){super(),this.isStopped=!1,t?(this.destination=t,ed(t)&&t.add(this)):this.destination=D_}static create(t,n,r){return new Hr(t,n,r)}next(t){this.isStopped?ia(function h_(e){return na("N",e,void 0)}(t),this):this._next(t)}error(t){this.isStopped?ia(function f_(e){return na("E",void 0,e)}(t),this):(this.isStopped=!0,this._error(t))}complete(){this.isStopped?ia(d_,this):(this.isStopped=!0,this._complete())}unsubscribe(){this.closed||(this.isStopped=!0,super.unsubscribe(),this.destination=null)}_next(t){this.destination.next(t)}_error(t){try{this.destination.error(t)}finally{this.unsubscribe()}}_complete(){try{this.destination.complete()}finally{this.unsubscribe()}}}const g_=Function.prototype.bind;function oa(e,t){return g_.call(e,t)}class m_{constructor(t){this.partialObserver=t}next(t){const{partialObserver:n}=this;if(n.next)try{n.next(t)}catch(r){oi(r)}}error(t){const{partialObserver:n}=this;if(n.error)try{n.error(t)}catch(r){oi(r)}else oi(t)}complete(){const{partialObserver:t}=this;if(t.complete)try{t.complete()}catch(n){oi(n)}}}class Hr extends ra{constructor(t,n,r){let o;if(super(),de(t)||!t)o={next:t??void 0,error:n??void 0,complete:r??void 0};else{let i;this&&Fn.useDeprecatedNextContext?(i=Object.create(t),i.unsubscribe=()=>this.unsubscribe(),o={next:t.next&&oa(t.next,i),error:t.error&&oa(t.error,i),complete:t.complete&&oa(t.complete,i)}):o=t}this.destination=new m_(o)}}function oi(e){Fn.useDeprecatedSynchronousErrorHandling?function p_(e){Fn.useDeprecatedSynchronousErrorHandling&&xn&&(xn.errorThrown=!0,xn.error=e)}(e):nd(e)}function ia(e,t){const{onStoppedNotification:n}=Fn;n&&ni.setTimeout(()=>n(e,t))}const D_={closed:!0,next:rd,error:function y_(e){throw e},complete:rd},sa="function"==typeof Symbol&&Symbol.observable||"@@observable";function aa(e){return e}let $e=(()=>{class e{constructor(n){n&&(this._subscribe=n)}lift(n){const r=new e;return r.source=this,r.operator=n,r}subscribe(n,r,o){const i=function __(e){return e&&e instanceof ra||function v_(e){return e&&de(e.next)&&de(e.error)&&de(e.complete)}(e)&&ed(e)}(n)?n:new Hr(n,r,o);return ri(()=>{const{operator:s,source:a}=this;i.add(s?s.call(i,a):a?this._subscribe(i):this._trySubscribe(i))}),i}_trySubscribe(n){try{return this._subscribe(n)}catch(r){n.error(r)}}forEach(n,r){return new(r=id(r))((o,i)=>{const s=new Hr({next:a=>{try{n(a)}catch(l){i(l),s.unsubscribe()}},error:i,complete:o});this.subscribe(s)})}_subscribe(n){var r;return null===(r=this.source)||void 0===r?void 0:r.subscribe(n)}[sa](){return this}pipe(...n){return function od(e){return 0===e.length?aa:1===e.length?e[0]:function(n){return e.reduce((r,o)=>o(r),n)}}(n)(this)}toPromise(n){return new(n=id(n))((r,o)=>{let i;this.subscribe(s=>i=s,s=>o(s),()=>r(i))})}}return e.create=t=>new e(t),e})();function id(e){var t;return null!==(t=e??Fn.Promise)&&void 0!==t?t:Promise}const C_=ei(e=>function(){e(this),this.name="ObjectUnsubscribedError",this.message="object unsubscribed"});let jr=(()=>{class e extends $e{constructor(){super(),this.closed=!1,this.currentObservers=null,this.observers=[],this.isStopped=!1,this.hasError=!1,this.thrownError=null}lift(n){const r=new sd(this,this);return r.operator=n,r}_throwIfClosed(){if(this.closed)throw new C_}next(n){ri(()=>{if(this._throwIfClosed(),!this.isStopped){this.currentObservers||(this.currentObservers=Array.from(this.observers));for(const r of this.currentObservers)r.next(n)}})}error(n){ri(()=>{if(this._throwIfClosed(),!this.isStopped){this.hasError=this.isStopped=!0,this.thrownError=n;const{observers:r}=this;for(;r.length;)r.shift().error(n)}})}complete(){ri(()=>{if(this._throwIfClosed(),!this.isStopped){this.isStopped=!0;const{observers:n}=this;for(;n.length;)n.shift().complete()}})}unsubscribe(){this.isStopped=this.closed=!0,this.observers=this.currentObservers=null}get observed(){var n;return(null===(n=this.observers)||void 0===n?void 0:n.length)>0}_trySubscribe(n){return this._throwIfClosed(),super._trySubscribe(n)}_subscribe(n){return this._throwIfClosed(),this._checkFinalizedStatuses(n),this._innerSubscribe(n)}_innerSubscribe(n){const{hasError:r,isStopped:o,observers:i}=this;return r||o?Jc:(this.currentObservers=null,i.push(n),new It(()=>{this.currentObservers=null,Br(i,n)}))}_checkFinalizedStatuses(n){const{hasError:r,thrownError:o,isStopped:i}=this;r?n.error(o):i&&n.complete()}asObservable(){const n=new $e;return n.source=this,n}}return e.create=(t,n)=>new sd(t,n),e})();class sd extends jr{constructor(t,n){super(),this.destination=t,this.source=n}next(t){var n,r;null===(r=null===(n=this.destination)||void 0===n?void 0:n.next)||void 0===r||r.call(n,t)}error(t){var n,r;null===(r=null===(n=this.destination)||void 0===n?void 0:n.error)||void 0===r||r.call(n,t)}complete(){var t,n;null===(n=null===(t=this.destination)||void 0===t?void 0:t.complete)||void 0===n||n.call(t)}_subscribe(t){var n,r;return null!==(r=null===(n=this.source)||void 0===n?void 0:n.subscribe(t))&&void 0!==r?r:Jc}}class la extends jr{constructor(t){super(),this._value=t}get value(){return this.getValue()}_subscribe(t){const n=super._subscribe(t);return!n.closed&&t.next(this._value),n}getValue(){const{hasError:t,thrownError:n,_value:r}=this;if(t)throw n;return this._throwIfClosed(),r}next(t){super.next(this._value=t)}}function On(e){return t=>{if(function E_(e){return de(e?.lift)}(t))return t.lift(function(n){try{return e(n,this)}catch(r){this.error(r)}});throw new TypeError("Unable to lift unknown Observable type")}}function dn(e,t,n,r,o){return new w_(e,t,n,r,o)}class w_ extends ra{constructor(t,n,r,o,i,s){super(t),this.onFinalize=i,this.shouldUnsubscribe=s,this._next=n?function(a){try{n(a)}catch(l){t.error(l)}}:super._next,this._error=o?function(a){try{o(a)}catch(l){t.error(l)}finally{this.unsubscribe()}}:super._error,this._complete=r?function(){try{r()}catch(a){t.error(a)}finally{this.unsubscribe()}}:super._complete}unsubscribe(){var t;if(!this.shouldUnsubscribe||this.shouldUnsubscribe()){const{closed:n}=this;super.unsubscribe(),!n&&(null===(t=this.onFinalize)||void 0===t||t.call(this))}}}function fn(e){return this instanceof fn?(this.v=e,this):new fn(e)}function cd(e){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var n,t=e[Symbol.asyncIterator];return t?t.call(e):(e=function ha(e){var t="function"==typeof Symbol&&Symbol.iterator,n=t&&e[t],r=0;if(n)return n.call(e);if(e&&"number"==typeof e.length)return{next:function(){return e&&r>=e.length&&(e=void 0),{value:e&&e[r++],done:!e}}};throw new TypeError(t?"Object is not iterable.":"Symbol.iterator is not defined.")}(e),n={},r("next"),r("throw"),r("return"),n[Symbol.asyncIterator]=function(){return this},n);function r(i){n[i]=e[i]&&function(s){return new Promise(function(a,l){!function o(i,s,a,l){Promise.resolve(l).then(function(u){i({value:u,done:a})},s)}(a,l,(s=e[i](s)).done,s.value)})}}}"function"==typeof SuppressedError&&SuppressedError;const dd=e=>e&&"number"==typeof e.length&&"function"!=typeof e;function fd(e){return de(e?.then)}function hd(e){return de(e[sa])}function pd(e){return Symbol.asyncIterator&&de(e?.[Symbol.asyncIterator])}function gd(e){return new TypeError(`You provided ${null!==e&&"object"==typeof e?"an invalid object":`'${e}'`} where a stream was expected. You can provide an Observable, Promise, ReadableStream, Array, AsyncIterable, or Iterable.`)}const md=function z_(){return"function"==typeof Symbol&&Symbol.iterator?Symbol.iterator:"@@iterator"}();function yd(e){return de(e?.[md])}function Dd(e){return function ud(e,t,n){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var o,r=n.apply(e,t||[]),i=[];return o={},s("next"),s("throw"),s("return"),o[Symbol.asyncIterator]=function(){return this},o;function s(f){r[f]&&(o[f]=function(h){return new Promise(function(p,m){i.push([f,h,p,m])>1||a(f,h)})})}function a(f,h){try{!function l(f){f.value instanceof fn?Promise.resolve(f.value.v).then(u,c):d(i[0][2],f)}(r[f](h))}catch(p){d(i[0][3],p)}}function u(f){a("next",f)}function c(f){a("throw",f)}function d(f,h){f(h),i.shift(),i.length&&a(i[0][0],i[0][1])}}(this,arguments,function*(){const n=e.getReader();try{for(;;){const{value:r,done:o}=yield fn(n.read());if(o)return yield fn(void 0);yield yield fn(r)}}finally{n.releaseLock()}})}function vd(e){return de(e?.getReader)}function Tt(e){if(e instanceof $e)return e;if(null!=e){if(hd(e))return function q_(e){return new $e(t=>{const n=e[sa]();if(de(n.subscribe))return n.subscribe(t);throw new TypeError("Provided object does not correctly implement Symbol.observable")})}(e);if(dd(e))return function W_(e){return new $e(t=>{for(let n=0;n{e.then(n=>{t.closed||(t.next(n),t.complete())},n=>t.error(n)).then(null,nd)})}(e);if(pd(e))return _d(e);if(yd(e))return function Z_(e){return new $e(t=>{for(const n of e)if(t.next(n),t.closed)return;t.complete()})}(e);if(vd(e))return function Y_(e){return _d(Dd(e))}(e)}throw gd(e)}function _d(e){return new $e(t=>{(function K_(e,t){var n,r,o,i;return function ad(e,t,n,r){return new(n||(n=Promise))(function(i,s){function a(c){try{u(r.next(c))}catch(d){s(d)}}function l(c){try{u(r.throw(c))}catch(d){s(d)}}function u(c){c.done?i(c.value):function o(i){return i instanceof n?i:new n(function(s){s(i)})}(c.value).then(a,l)}u((r=r.apply(e,t||[])).next())})}(this,void 0,void 0,function*(){try{for(n=cd(e);!(r=yield n.next()).done;)if(t.next(r.value),t.closed)return}catch(s){o={error:s}}finally{try{r&&!r.done&&(i=n.return)&&(yield i.call(n))}finally{if(o)throw o.error}}t.complete()})})(e,t).catch(n=>t.error(n))})}function hn(e,t,n,r=0,o=!1){const i=t.schedule(function(){n(),o?e.add(this.schedule(null,r)):this.unsubscribe()},r);if(e.add(i),!o)return i}function Cd(e,t,n=1/0){return de(t)?Cd((r,o)=>function ua(e,t){return On((n,r)=>{let o=0;n.subscribe(dn(r,i=>{r.next(e.call(t,i,o++))}))})}((i,s)=>t(r,i,o,s))(Tt(e(r,o))),n):("number"==typeof t&&(n=t),On((r,o)=>function X_(e,t,n,r,o,i,s,a){const l=[];let u=0,c=0,d=!1;const f=()=>{d&&!l.length&&!u&&t.complete()},h=m=>u{i&&t.next(m),u++;let y=!1;Tt(n(m,c++)).subscribe(dn(t,v=>{o?.(v),i?h(v):t.next(v)},()=>{y=!0},void 0,()=>{if(y)try{for(u--;l.length&&up(v)):p(v)}f()}catch(v){t.error(v)}}))};return e.subscribe(dn(t,h,()=>{d=!0,f()})),()=>{a?.()}}(r,o,e,n)))}const Ed=new $e(e=>e.complete());function pa(e){return e[e.length-1]}function wd(e){return function tC(e){return e&&de(e.schedule)}(pa(e))?e.pop():void 0}function bd(e,t=0){return On((n,r)=>{n.subscribe(dn(r,o=>hn(r,e,()=>r.next(o),t),()=>hn(r,e,()=>r.complete(),t),o=>hn(r,e,()=>r.error(o),t)))})}function Sd(e,t=0){return On((n,r)=>{r.add(e.schedule(()=>n.subscribe(r),t))})}function Md(e,t){if(!e)throw new Error("Iterable cannot be null");return new $e(n=>{hn(n,t,()=>{const r=e[Symbol.asyncIterator]();hn(n,t,()=>{r.next().then(o=>{o.done?n.complete():n.next(o.value)})},0,!0)})})}function ga(e,t){return t?function uC(e,t){if(null!=e){if(hd(e))return function oC(e,t){return Tt(e).pipe(Sd(t),bd(t))}(e,t);if(dd(e))return function sC(e,t){return new $e(n=>{let r=0;return t.schedule(function(){r===e.length?n.complete():(n.next(e[r++]),n.closed||this.schedule())})})}(e,t);if(fd(e))return function iC(e,t){return Tt(e).pipe(Sd(t),bd(t))}(e,t);if(pd(e))return Md(e,t);if(yd(e))return function aC(e,t){return new $e(n=>{let r;return hn(n,t,()=>{r=e[md](),hn(n,t,()=>{let o,i;try{({value:o,done:i}=r.next())}catch(s){return void n.error(s)}i?n.complete():n.next(o)},0,!0)}),()=>de(r?.return)&&r.return()})}(e,t);if(vd(e))return function lC(e,t){return Md(Dd(e),t)}(e,t)}throw gd(e)}(e,t):Tt(e)}function Ad(e={}){const{connector:t=(()=>new jr),resetOnError:n=!0,resetOnComplete:r=!0,resetOnRefCountZero:o=!0}=e;return i=>{let s,a,l,u=0,c=!1,d=!1;const f=()=>{a?.unsubscribe(),a=void 0},h=()=>{f(),s=l=void 0,c=d=!1},p=()=>{const m=s;h(),m?.unsubscribe()};return On((m,y)=>{u++,!d&&!c&&f();const v=l=l??t();y.add(()=>{u--,0===u&&!d&&!c&&(a=ma(p,o))}),v.subscribe(y),!s&&u>0&&(s=new Hr({next:g=>v.next(g),error:g=>{d=!0,f(),a=ma(h,n,g),v.error(g)},complete:()=>{c=!0,f(),a=ma(h,r),v.complete()}}),Tt(m).subscribe(s))})(i)}}function ma(e,t,...n){if(!0===t)return void e();if(!1===t)return;const r=new Hr({next:()=>{r.unsubscribe(),e()}});return Tt(t(...n)).subscribe(r)}function pC(e,t){return e===t}function J(e){for(let t in e)if(e[t]===J)return t;throw Error("Could not find renamed property on target object.")}function ii(e,t){for(const n in t)t.hasOwnProperty(n)&&!e.hasOwnProperty(n)&&(e[n]=t[n])}function we(e){if("string"==typeof e)return e;if(Array.isArray(e))return"["+e.map(we).join(", ")+"]";if(null==e)return""+e;if(e.overriddenName)return`${e.overriddenName}`;if(e.name)return`${e.name}`;const t=e.toString();if(null==t)return""+t;const n=t.indexOf("\n");return-1===n?t:t.substring(0,n)}function ya(e,t){return null==e||""===e?null===t?"":t:null==t||""===t?e:e+" "+t}const gC=J({__forward_ref__:J});function oe(e){return e.__forward_ref__=oe,e.toString=function(){return we(this())},e}function O(e){return Da(e)?e():e}function Da(e){return"function"==typeof e&&e.hasOwnProperty(gC)&&e.__forward_ref__===oe}function va(e){return e&&!!e.\u0275providers}const Id="https://g.co/ng/security#xss";class C extends Error{constructor(t,n){super(function si(e,t){return`NG0${Math.abs(e)}${t?": "+t:""}`}(t,n)),this.code=t}}function R(e){return"string"==typeof e?e:null==e?"":String(e)}function ai(e,t){throw new C(-201,!1)}function ft(e,t){null==e&&function Y(e,t,n,r){throw new Error(`ASSERTION ERROR: ${e}`+(null==r?"":` [Expected=> ${n} ${r} ${t} <=Actual]`))}(t,e,null,"!=")}function K(e){return{token:e.token,providedIn:e.providedIn||null,factory:e.factory,value:void 0}}function Nt(e){return{providers:e.providers||[],imports:e.imports||[]}}function li(e){return Td(e,ui)||Td(e,Fd)}function Td(e,t){return e.hasOwnProperty(t)?e[t]:null}function Nd(e){return e&&(e.hasOwnProperty(_a)||e.hasOwnProperty(EC))?e[_a]:null}const ui=J({\u0275prov:J}),_a=J({\u0275inj:J}),Fd=J({ngInjectableDef:J}),EC=J({ngInjectorDef:J});var x=(()=>((x=x||{})[x.Default=0]="Default",x[x.Host=1]="Host",x[x.Self=2]="Self",x[x.SkipSelf=4]="SkipSelf",x[x.Optional=8]="Optional",x))();let Ca;function Ze(e){const t=Ca;return Ca=e,t}function Od(e,t,n){const r=li(e);return r&&"root"==r.providedIn?void 0===r.value?r.value=r.factory():r.value:n&x.Optional?null:void 0!==t?t:void ai(we(e))}const ne=(()=>typeof globalThis<"u"&&globalThis||typeof global<"u"&&global||typeof window<"u"&&window||typeof self<"u"&&typeof WorkerGlobalScope<"u"&&self instanceof WorkerGlobalScope&&self)(),$r={},Ea="__NG_DI_FLAG__",ci="ngTempTokenPath",bC=/\n/gm,Rd="__source";let Yn;function gn(e){const t=Yn;return Yn=e,t}function AC(e,t=x.Default){if(void 0===Yn)throw new C(-203,!1);return null===Yn?Od(e,void 0,t):Yn.get(e,t&x.Optional?null:void 0,t)}function H(e,t=x.Default){return(function xd(){return Ca}()||AC)(O(e),t)}function ae(e,t=x.Default){return H(e,di(t))}function di(e){return typeof e>"u"||"number"==typeof e?e:0|(e.optional&&8)|(e.host&&1)|(e.self&&2)|(e.skipSelf&&4)}function wa(e){const t=[];for(let n=0;n((Ft=Ft||{})[Ft.OnPush=0]="OnPush",Ft[Ft.Default=1]="Default",Ft))(),it=(()=>{return(e=it||(it={}))[e.Emulated=0]="Emulated",e[e.None=2]="None",e[e.ShadowDom=3]="ShadowDom",it;var e})();const xt={},q=[],fi=J({\u0275cmp:J}),ba=J({\u0275dir:J}),Sa=J({\u0275pipe:J}),Vd=J({\u0275mod:J}),Qt=J({\u0275fac:J}),Gr=J({__NG_ELEMENT_ID__:J}),kd=J({__NG_ENV_ID__:J});function Ld(e,t,n){let r=e.length;for(;;){const o=e.indexOf(t,n);if(-1===o)return o;if(0===o||e.charCodeAt(o-1)<=32){const i=t.length;if(o+i===r||e.charCodeAt(o+i)<=32)return o}n=o+1}}function Ma(e,t,n){let r=0;for(;rt){s=i-1;break}}}for(;ii?"":o[d+1].toLowerCase();const h=8&r?f:null;if(h&&-1!==Ld(h,u,0)||2&r&&u!==f){if(vt(r))return!1;s=!0}}}}else{if(!s&&!vt(r)&&!vt(l))return!1;if(s&&vt(l))continue;s=!1,r=l|1&r}}return vt(r)||s}function vt(e){return 0==(1&e)}function RC(e,t,n,r){if(null===t)return-1;let o=0;if(r||!n){let i=!1;for(;o-1)for(n++;n0?'="'+a+'"':"")+"]"}else 8&r?o+="."+s:4&r&&(o+=" "+s);else""!==o&&!vt(s)&&(t+=zd(i,o),o=""),r=s,i=i||!vt(r);n++}return""!==o&&(t+=zd(i,o)),t}function Aa(e){return Wt(()=>{const t=Wd(e),n={...t,decls:e.decls,vars:e.vars,template:e.template,consts:e.consts||null,ngContentSelectors:e.ngContentSelectors,onPush:e.changeDetection===Ft.OnPush,directiveDefs:null,pipeDefs:null,dependencies:t.standalone&&e.dependencies||null,getStandaloneInjector:null,signals:e.signals??!1,data:e.data||{},encapsulation:e.encapsulation||it.Emulated,styles:e.styles||q,_:null,schemas:e.schemas||null,tView:null,id:""};Qd(n);const r=e.dependencies;return n.directiveDefs=hi(r,!1),n.pipeDefs=hi(r,!0),n.id=function WC(e){let t=0;const n=[e.selectors,e.ngContentSelectors,e.hostVars,e.hostAttrs,e.consts,e.vars,e.decls,e.encapsulation,e.standalone,e.signals,e.exportAs,JSON.stringify(e.inputs),JSON.stringify(e.outputs),Object.getOwnPropertyNames(e.type.prototype),!!e.contentQueries,!!e.viewQuery].join("|");for(const o of n)t=Math.imul(31,t)+o.charCodeAt(0)<<0;return t+=2147483648,"c"+t}(n),n})}function UC(e){return Q(e)||Oe(e)}function GC(e){return null!==e}function Zt(e){return Wt(()=>({type:e.type,bootstrap:e.bootstrap||q,declarations:e.declarations||q,imports:e.imports||q,exports:e.exports||q,transitiveCompileScopes:null,schemas:e.schemas||null,id:e.id||null}))}function qd(e,t){if(null==e)return xt;const n={};for(const r in e)if(e.hasOwnProperty(r)){let o=e[r],i=o;Array.isArray(o)&&(i=o[1],o=o[0]),n[o]=r,t&&(t[o]=i)}return n}function P(e){return Wt(()=>{const t=Wd(e);return Qd(t),t})}function Ue(e){return{type:e.type,name:e.name,factory:null,pure:!1!==e.pure,standalone:!0===e.standalone,onDestroy:e.type.prototype.ngOnDestroy||null}}function Q(e){return e[fi]||null}function Oe(e){return e[ba]||null}function Ye(e){return e[Sa]||null}function Wd(e){const t={};return{type:e.type,providersResolver:null,factory:null,hostBindings:e.hostBindings||null,hostVars:e.hostVars||0,hostAttrs:e.hostAttrs||null,contentQueries:e.contentQueries||null,declaredInputs:t,inputTransforms:null,inputConfig:e.inputs||xt,exportAs:e.exportAs||null,standalone:!0===e.standalone,signals:!0===e.signals,selectors:e.selectors||q,viewQuery:e.viewQuery||null,features:e.features||null,setInput:null,findHostDirectiveDefs:null,hostDirectives:null,inputs:qd(e.inputs,t),outputs:qd(e.outputs)}}function Qd(e){e.features?.forEach(t=>t(e))}function hi(e,t){if(!e)return null;const n=t?Ye:UC;return()=>("function"==typeof e?e():e).map(r=>n(r)).filter(GC)}const be=0,b=1,V=2,fe=3,_t=4,Wr=5,Re=6,Kn=7,ve=8,Xn=9,Rn=10,k=11,Qr=12,Zd=13,Jn=14,_e=15,Zr=16,er=17,Ot=18,Yr=19,Yd=20,mn=21,Yt=22,pi=23,gi=24,$=25,Ia=1,Kd=2,Rt=7,tr=9,Pe=11;function at(e){return Array.isArray(e)&&"object"==typeof e[Ia]}function Ke(e){return Array.isArray(e)&&!0===e[Ia]}function Ta(e){return 0!=(4&e.flags)}function Pn(e){return e.componentOffset>-1}function yi(e){return 1==(1&e.flags)}function Ct(e){return!!e.template}function Na(e){return 0!=(512&e[V])}function Vn(e,t){return e.hasOwnProperty(Qt)?e[Qt]:null}let JC=ne.WeakRef??class XC{constructor(t){this.ref=t}deref(){return this.ref}},tE=0,Pt=null,Di=!1;function Te(e){const t=Pt;return Pt=e,t}class nf{constructor(){this.id=tE++,this.ref=function eE(e){return new JC(e)}(this),this.producers=new Map,this.consumers=new Map,this.trackingVersion=0,this.valueVersion=0}consumerPollProducersForChange(){for(const[t,n]of this.producers){const r=n.producerNode.deref();if(void 0!==r&&n.atTrackingVersion===this.trackingVersion){if(r.producerPollStatus(n.seenValueVersion))return!0}else this.producers.delete(t),r?.consumers.delete(this.id)}return!1}producerMayHaveChanged(){const t=Di;Di=!0;try{for(const[n,r]of this.consumers){const o=r.consumerNode.deref();void 0!==o&&o.trackingVersion===r.atTrackingVersion?o.onConsumerDependencyMayHaveChanged():(this.consumers.delete(n),o?.producers.delete(this.id))}}finally{Di=t}}producerAccessed(){if(Di)throw new Error("");if(null===Pt)return;let t=Pt.producers.get(this.id);void 0===t?(t={consumerNode:Pt.ref,producerNode:this.ref,seenValueVersion:this.valueVersion,atTrackingVersion:Pt.trackingVersion},Pt.producers.set(this.id,t),this.consumers.set(Pt.id,t)):(t.seenValueVersion=this.valueVersion,t.atTrackingVersion=Pt.trackingVersion)}get hasProducers(){return this.producers.size>0}get producerUpdatesAllowed(){return!1!==Pt?.consumerAllowSignalWrites}producerPollStatus(t){return this.valueVersion!==t||(this.onProducerUpdateValueVersion(),this.valueVersion!==t)}}let rf=null;const sf=()=>{};class iE extends nf{constructor(t,n,r){super(),this.watch=t,this.schedule=n,this.dirty=!1,this.cleanupFn=sf,this.registerOnCleanup=o=>{this.cleanupFn=o},this.consumerAllowSignalWrites=r}notify(){this.dirty||this.schedule(this),this.dirty=!0}onConsumerDependencyMayHaveChanged(){this.notify()}onProducerUpdateValueVersion(){}run(){if(this.dirty=!1,0!==this.trackingVersion&&!this.consumerPollProducersForChange())return;const t=Te(this);this.trackingVersion++;try{this.cleanupFn(),this.cleanupFn=sf,this.watch(this.registerOnCleanup)}finally{Te(t)}}cleanup(){this.cleanupFn()}}class sE{constructor(t,n,r){this.previousValue=t,this.currentValue=n,this.firstChange=r}isFirstChange(){return this.firstChange}}function af(e){return e.type.prototype.ngOnChanges&&(e.setInput=lE),aE}function aE(){const e=uf(this),t=e?.current;if(t){const n=e.previous;if(n===xt)e.previous=t;else for(let r in t)n[r]=t[r];e.current=null,this.ngOnChanges(t)}}function lE(e,t,n,r){const o=this.declaredInputs[n],i=uf(e)||function uE(e,t){return e[lf]=t}(e,{previous:xt,current:null}),s=i.current||(i.current={}),a=i.previous,l=a[o];s[o]=new sE(l&&l.currentValue,t,a===xt),e[r]=t}const lf="__ngSimpleChanges__";function uf(e){return e[lf]||null}const Vt=function(e,t,n){};function le(e){for(;Array.isArray(e);)e=e[be];return e}function Ci(e,t){return le(t[e])}function Xe(e,t){return le(t[e.index])}function ff(e,t){return e.data[t]}function nr(e,t){return e[t]}function lt(e,t){const n=t[e];return at(n)?n:n[be]}function yn(e,t){return null==t?null:e[t]}function hf(e){e[er]=0}function mE(e){1024&e[V]||(e[V]|=1024,gf(e,1))}function pf(e){1024&e[V]&&(e[V]&=-1025,gf(e,-1))}function gf(e,t){let n=e[fe];if(null===n)return;n[Wr]+=t;let r=n;for(n=n[fe];null!==n&&(1===t&&1===r[Wr]||-1===t&&0===r[Wr]);)n[Wr]+=t,r=n,n=n[fe]}const F={lFrame:Mf(null),bindingsEnabled:!0,skipHydrationRootTNode:null};function Df(){return F.bindingsEnabled}function D(){return F.lFrame.lView}function U(){return F.lFrame.tView}function Je(e){return F.lFrame.contextLView=e,e[ve]}function et(e){return F.lFrame.contextLView=null,e}function Ne(){let e=vf();for(;null!==e&&64===e.type;)e=e.parent;return e}function vf(){return F.lFrame.currentTNode}function kt(e,t){const n=F.lFrame;n.currentTNode=e,n.isParent=t}function Va(){return F.lFrame.isParent}function Ge(){const e=F.lFrame;let t=e.bindingRootIndex;return-1===t&&(t=e.bindingRootIndex=e.tView.bindingStartIndex),t}function or(){return F.lFrame.bindingIndex++}function IE(e,t){const n=F.lFrame;n.bindingIndex=n.bindingRootIndex=e,La(t)}function La(e){F.lFrame.currentDirectiveIndex=e}function wf(){return F.lFrame.currentQueryIndex}function Ha(e){F.lFrame.currentQueryIndex=e}function NE(e){const t=e[b];return 2===t.type?t.declTNode:1===t.type?e[Re]:null}function bf(e,t,n){if(n&x.SkipSelf){let o=t,i=e;for(;!(o=o.parent,null!==o||n&x.Host||(o=NE(i),null===o||(i=i[Jn],10&o.type))););if(null===o)return!1;t=o,e=i}const r=F.lFrame=Sf();return r.currentTNode=t,r.lView=e,!0}function ja(e){const t=Sf(),n=e[b];F.lFrame=t,t.currentTNode=n.firstChild,t.lView=e,t.tView=n,t.contextLView=e,t.bindingIndex=n.bindingStartIndex,t.inI18n=!1}function Sf(){const e=F.lFrame,t=null===e?null:e.child;return null===t?Mf(e):t}function Mf(e){const t={currentTNode:null,isParent:!0,lView:null,tView:null,selectedIndex:-1,contextLView:null,elementDepthCount:0,currentNamespace:null,currentDirectiveIndex:-1,bindingRootIndex:-1,bindingIndex:-1,currentQueryIndex:0,parent:e,child:null,inI18n:!1};return null!==e&&(e.child=t),t}function Af(){const e=F.lFrame;return F.lFrame=e.parent,e.currentTNode=null,e.lView=null,e}const If=Af;function $a(){const e=Af();e.isParent=!0,e.tView=null,e.selectedIndex=-1,e.contextLView=null,e.elementDepthCount=0,e.currentDirectiveIndex=-1,e.currentNamespace=null,e.bindingRootIndex=-1,e.bindingIndex=-1,e.currentQueryIndex=0}function ze(){return F.lFrame.selectedIndex}function kn(e){F.lFrame.selectedIndex=e}let Nf=!0;function Ei(){return Nf}function Dn(e){Nf=e}function wi(e,t){for(let n=t.directiveStart,r=t.directiveEnd;n=r)break}else t[l]<0&&(e[er]+=65536),(a>13>16&&(3&e[V])===t&&(e[V]+=8192,xf(a,i)):xf(a,i)}const ir=-1;class Jr{constructor(t,n,r){this.factory=t,this.resolving=!1,this.canSeeViewProviders=n,this.injectImpl=r}}function Of(e){return e!==ir}function Mi(e){return 32767&e}function Ai(e,t){let n=function $E(e){return e>>16}(e),r=t;for(;n>0;)r=r[Jn],n--;return r}let za=!0;function Ii(e){const t=za;return za=e,t}const Rf=255,Pf=5;let UE=0;const Lt={};function Ti(e,t){const n=Vf(e,t);if(-1!==n)return n;const r=t[b];r.firstCreatePass&&(e.injectorIndex=t.length,qa(r.data,e),qa(t,null),qa(r.blueprint,null));const o=Wa(e,t),i=e.injectorIndex;if(Of(o)){const s=Mi(o),a=Ai(o,t),l=a[b].data;for(let u=0;u<8;u++)t[i+u]=a[s+u]|l[s+u]}return t[i+8]=o,i}function qa(e,t){e.push(0,0,0,0,0,0,0,0,t)}function Vf(e,t){return-1===e.injectorIndex||e.parent&&e.parent.injectorIndex===e.injectorIndex||null===t[e.injectorIndex+8]?-1:e.injectorIndex}function Wa(e,t){if(e.parent&&-1!==e.parent.injectorIndex)return e.parent.injectorIndex;let n=0,r=null,o=t;for(;null!==o;){if(r=Uf(o),null===r)return ir;if(n++,o=o[Jn],-1!==r.injectorIndex)return r.injectorIndex|n<<16}return ir}function Qa(e,t,n){!function GE(e,t,n){let r;"string"==typeof n?r=n.charCodeAt(0)||0:n.hasOwnProperty(Gr)&&(r=n[Gr]),null==r&&(r=n[Gr]=UE++);const o=r&Rf;t.data[e+(o>>Pf)]|=1<=0?t&Rf:QE:t}(n);if("function"==typeof i){if(!bf(t,e,r))return r&x.Host?kf(o,0,r):Lf(t,n,r,o);try{const s=i(r);if(null!=s||r&x.Optional)return s;ai()}finally{If()}}else if("number"==typeof i){let s=null,a=Vf(e,t),l=ir,u=r&x.Host?t[_e][Re]:null;for((-1===a||r&x.SkipSelf)&&(l=-1===a?Wa(e,t):t[a+8],l!==ir&&$f(r,!1)?(s=t[b],a=Mi(l),t=Ai(l,t)):a=-1);-1!==a;){const c=t[b];if(jf(i,a,c.data)){const d=qE(a,t,n,s,r,u);if(d!==Lt)return d}l=t[a+8],l!==ir&&$f(r,t[b].data[a+8]===u)&&jf(i,a,t)?(s=c,a=Mi(l),t=Ai(l,t)):a=-1}}return o}function qE(e,t,n,r,o,i){const s=t[b],a=s.data[e+8],c=Ni(a,s,n,null==r?Pn(a)&&za:r!=s&&0!=(3&a.type),o&x.Host&&i===a);return null!==c?Ln(t,s,c,a):Lt}function Ni(e,t,n,r,o){const i=e.providerIndexes,s=t.data,a=1048575&i,l=e.directiveStart,c=i>>20,f=o?a+c:e.directiveEnd;for(let h=r?a:a+c;h=l&&p.type===n)return h}if(o){const h=s[l];if(h&&Ct(h)&&h.type===n)return l}return null}function Ln(e,t,n,r){let o=e[n];const i=t.data;if(function BE(e){return e instanceof Jr}(o)){const s=o;s.resolving&&function mC(e,t){const n=t?`. Dependency path: ${t.join(" > ")} > ${e}`:"";throw new C(-200,`Circular dependency in DI detected for ${e}${n}`)}(function Z(e){return"function"==typeof e?e.name||e.toString():"object"==typeof e&&null!=e&&"function"==typeof e.type?e.type.name||e.type.toString():R(e)}(i[n]));const a=Ii(s.canSeeViewProviders);s.resolving=!0;const l=s.injectImpl?Ze(s.injectImpl):null;bf(e,r,x.Default);try{o=e[n]=s.factory(void 0,i,e,r),t.firstCreatePass&&n>=r.directiveStart&&function kE(e,t,n){const{ngOnChanges:r,ngOnInit:o,ngDoCheck:i}=t.type.prototype;if(r){const s=af(t);(n.preOrderHooks??=[]).push(e,s),(n.preOrderCheckHooks??=[]).push(e,s)}o&&(n.preOrderHooks??=[]).push(0-e,o),i&&((n.preOrderHooks??=[]).push(e,i),(n.preOrderCheckHooks??=[]).push(e,i))}(n,i[n],t)}finally{null!==l&&Ze(l),Ii(a),s.resolving=!1,If()}}return o}function jf(e,t,n){return!!(n[t+(e>>Pf)]&1<{const t=e.prototype.constructor,n=t[Qt]||Za(t),r=Object.prototype;let o=Object.getPrototypeOf(e.prototype).constructor;for(;o&&o!==r;){const i=o[Qt]||Za(o);if(i&&i!==n)return i;o=Object.getPrototypeOf(o)}return i=>new i})}function Za(e){return Da(e)?()=>{const t=Za(O(e));return t&&t()}:Vn(e)}function Uf(e){const t=e[b],n=t.type;return 2===n?t.declTNode:1===n?e[Re]:null}const lr="__parameters__";function cr(e,t,n){return Wt(()=>{const r=function Ka(e){return function(...n){if(e){const r=e(...n);for(const o in r)this[o]=r[o]}}}(t);function o(...i){if(this instanceof o)return r.apply(this,i),this;const s=new o(...i);return a.annotation=s,a;function a(l,u,c){const d=l.hasOwnProperty(lr)?l[lr]:Object.defineProperty(l,lr,{value:[]})[lr];for(;d.length<=c;)d.push(null);return(d[c]=d[c]||[]).push(s),l}}return n&&(o.prototype=Object.create(n.prototype)),o.prototype.ngMetadataName=e,o.annotationCls=o,o})}function no(e,t){e.forEach(n=>Array.isArray(n)?no(n,t):t(n))}function zf(e,t,n){t>=e.length?e.push(n):e.splice(t,0,n)}function Fi(e,t){return t>=e.length-1?e.pop():e.splice(t,1)[0]}function ut(e,t,n){let r=dr(e,t);return r>=0?e[1|r]=n:(r=~r,function ew(e,t,n,r){let o=e.length;if(o==t)e.push(n,r);else if(1===o)e.push(r,e[0]),e[0]=n;else{for(o--,e.push(e[o-1],e[o]);o>t;)e[o]=e[o-2],o--;e[t]=n,e[t+1]=r}}(e,r,t,n)),r}function Xa(e,t){const n=dr(e,t);if(n>=0)return e[1|n]}function dr(e,t){return function qf(e,t,n){let r=0,o=e.length>>n;for(;o!==r;){const i=r+(o-r>>1),s=e[i<t?o=i:r=i+1}return~(o<((tt=tt||{})[tt.Important=1]="Important",tt[tt.DashCase=2]="DashCase",tt))();const sl=new Map;let bw=0;const ll="__ngContext__";function ke(e,t){at(t)?(e[ll]=t[Yr],function Mw(e){sl.set(e[Yr],e)}(t)):e[ll]=t}let ul;function cl(e,t){return ul(e,t)}function so(e){const t=e[fe];return Ke(t)?t[fe]:t}function fh(e){return ph(e[Qr])}function hh(e){return ph(e[_t])}function ph(e){for(;null!==e&&!Ke(e);)e=e[_t];return e}function pr(e,t,n,r,o){if(null!=r){let i,s=!1;Ke(r)?i=r:at(r)&&(s=!0,r=r[be]);const a=le(r);0===e&&null!==n?null==o?vh(t,n,a):Bn(t,n,a,o||null,!0):1===e&&null!==n?Bn(t,n,a,o||null,!0):2===e?function $i(e,t,n){const r=Hi(e,t);r&&function zw(e,t,n,r){e.removeChild(t,n,r)}(e,r,t,n)}(t,a,s):3===e&&t.destroyNode(a),null!=i&&function Qw(e,t,n,r,o){const i=n[Rt];i!==le(n)&&pr(t,e,r,i,o);for(let a=Pe;a0&&(e[n-1][_t]=r[_t]);const i=Fi(e,Pe+t);!function kw(e,t){lo(e,t,t[k],2,null,null),t[be]=null,t[Re]=null}(r[b],r);const s=i[Ot];null!==s&&s.detachView(i[b]),r[fe]=null,r[_t]=null,r[V]&=-129}return r}function yh(e,t){if(!(256&t[V])){const n=t[k];t[pi]?.destroy(),t[gi]?.destroy(),n.destroyNode&&lo(e,t,n,3,null,null),function Hw(e){let t=e[Qr];if(!t)return hl(e[b],e);for(;t;){let n=null;if(at(t))n=t[Qr];else{const r=t[Pe];r&&(n=r)}if(!n){for(;t&&!t[_t]&&t!==e;)at(t)&&hl(t[b],t),t=t[fe];null===t&&(t=e),at(t)&&hl(t[b],t),n=t&&t[_t]}t=n}}(t)}}function hl(e,t){if(!(256&t[V])){t[V]&=-129,t[V]|=256,function Gw(e,t){let n;if(null!=e&&null!=(n=e.destroyHooks))for(let r=0;r=0?r[s]():r[-s].unsubscribe(),i+=2}else n[i].call(r[n[i+1]]);null!==r&&(t[Kn]=null);const o=t[mn];if(null!==o){t[mn]=null;for(let i=0;i-1){const{encapsulation:i}=e.data[r.directiveStart+o];if(i===it.None||i===it.Emulated)return null}return Xe(r,n)}}(e,t.parent,n)}function Bn(e,t,n,r,o){e.insertBefore(t,n,r,o)}function vh(e,t,n){e.appendChild(t,n)}function _h(e,t,n,r,o){null!==r?Bn(e,t,n,r,o):vh(e,t,n)}function Hi(e,t){return e.parentNode(t)}let gl,Ui,vl,wh=function Eh(e,t,n){return 40&e.type?Xe(e,n):null};function ji(e,t,n,r){const o=pl(e,r,t),i=t[k],a=function Ch(e,t,n){return wh(e,t,n)}(r.parent||t[Re],r,t);if(null!=o)if(Array.isArray(n))for(let l=0;le,createScript:e=>e,createScriptURL:e=>e})}catch{}return Ui}()?.createHTML(e)||e}class Hn{constructor(t){this.changingThisBreaksApplicationSecurity=t}toString(){return`SafeValue must use [property]=binding: ${this.changingThisBreaksApplicationSecurity} (see ${Id})`}}class tb extends Hn{getTypeName(){return"HTML"}}class nb extends Hn{getTypeName(){return"Style"}}class rb extends Hn{getTypeName(){return"Script"}}class ob extends Hn{getTypeName(){return"URL"}}class ib extends Hn{getTypeName(){return"ResourceURL"}}function ct(e){return e instanceof Hn?e.changingThisBreaksApplicationSecurity:e}function Bt(e,t){const n=function sb(e){return e instanceof Hn&&e.getTypeName()||null}(e);if(null!=n&&n!==t){if("ResourceURL"===n&&"URL"===t)return!0;throw new Error(`Required a safe ${t}, got a ${n} (see ${Id})`)}return n===t}class fb{constructor(t){this.inertDocumentHelper=t}getInertBodyElement(t){t=""+t;try{const n=(new window.DOMParser).parseFromString(gr(t),"text/html").body;return null===n?this.inertDocumentHelper.getInertBodyElement(t):(n.removeChild(n.firstChild),n)}catch{return null}}}class hb{constructor(t){this.defaultDoc=t,this.inertDocument=this.defaultDoc.implementation.createHTMLDocument("sanitization-inert")}getInertBodyElement(t){const n=this.inertDocument.createElement("template");return n.innerHTML=gr(t),n}}const gb=/^(?!javascript:)(?:[a-z0-9+.-]+:|[^&:\/?#]*(?:[\/?#]|$))/i;function zi(e){return(e=String(e)).match(gb)?e:"unsafe:"+e}function en(e){const t={};for(const n of e.split(","))t[n]=!0;return t}function co(...e){const t={};for(const n of e)for(const r in n)n.hasOwnProperty(r)&&(t[r]=!0);return t}const Rh=en("area,br,col,hr,img,wbr"),Ph=en("colgroup,dd,dt,li,p,tbody,td,tfoot,th,thead,tr"),Vh=en("rp,rt"),Cl=co(Rh,co(Ph,en("address,article,aside,blockquote,caption,center,del,details,dialog,dir,div,dl,figure,figcaption,footer,h1,h2,h3,h4,h5,h6,header,hgroup,hr,ins,main,map,menu,nav,ol,pre,section,summary,table,ul")),co(Vh,en("a,abbr,acronym,audio,b,bdi,bdo,big,br,cite,code,del,dfn,em,font,i,img,ins,kbd,label,map,mark,picture,q,ruby,rp,rt,s,samp,small,source,span,strike,strong,sub,sup,time,track,tt,u,var,video")),co(Vh,Ph)),El=en("background,cite,href,itemtype,longdesc,poster,src,xlink:href"),kh=co(El,en("abbr,accesskey,align,alt,autoplay,axis,bgcolor,border,cellpadding,cellspacing,class,clear,color,cols,colspan,compact,controls,coords,datetime,default,dir,download,face,headers,height,hidden,hreflang,hspace,ismap,itemscope,itemprop,kind,label,lang,language,loop,media,muted,nohref,nowrap,open,preload,rel,rev,role,rows,rowspan,rules,scope,scrolling,shape,size,sizes,span,srclang,srcset,start,summary,tabindex,target,title,translate,type,usemap,valign,value,vspace,width"),en("aria-activedescendant,aria-atomic,aria-autocomplete,aria-busy,aria-checked,aria-colcount,aria-colindex,aria-colspan,aria-controls,aria-current,aria-describedby,aria-details,aria-disabled,aria-dropeffect,aria-errormessage,aria-expanded,aria-flowto,aria-grabbed,aria-haspopup,aria-hidden,aria-invalid,aria-keyshortcuts,aria-label,aria-labelledby,aria-level,aria-live,aria-modal,aria-multiline,aria-multiselectable,aria-orientation,aria-owns,aria-placeholder,aria-posinset,aria-pressed,aria-readonly,aria-relevant,aria-required,aria-roledescription,aria-rowcount,aria-rowindex,aria-rowspan,aria-selected,aria-setsize,aria-sort,aria-valuemax,aria-valuemin,aria-valuenow,aria-valuetext")),mb=en("script,style,template");class yb{constructor(){this.sanitizedSomething=!1,this.buf=[]}sanitizeChildren(t){let n=t.firstChild,r=!0;for(;n;)if(n.nodeType===Node.ELEMENT_NODE?r=this.startElement(n):n.nodeType===Node.TEXT_NODE?this.chars(n.nodeValue):this.sanitizedSomething=!0,r&&n.firstChild)n=n.firstChild;else for(;n;){n.nodeType===Node.ELEMENT_NODE&&this.endElement(n);let o=this.checkClobberedElement(n,n.nextSibling);if(o){n=o;break}n=this.checkClobberedElement(n,n.parentNode)}return this.buf.join("")}startElement(t){const n=t.nodeName.toLowerCase();if(!Cl.hasOwnProperty(n))return this.sanitizedSomething=!0,!mb.hasOwnProperty(n);this.buf.push("<"),this.buf.push(n);const r=t.attributes;for(let o=0;o"),!0}endElement(t){const n=t.nodeName.toLowerCase();Cl.hasOwnProperty(n)&&!Rh.hasOwnProperty(n)&&(this.buf.push(""))}chars(t){this.buf.push(Lh(t))}checkClobberedElement(t,n){if(n&&(t.compareDocumentPosition(n)&Node.DOCUMENT_POSITION_CONTAINED_BY)===Node.DOCUMENT_POSITION_CONTAINED_BY)throw new Error(`Failed to sanitize html because the element is clobbered: ${t.outerHTML}`);return n}}const Db=/[\uD800-\uDBFF][\uDC00-\uDFFF]/g,vb=/([^\#-~ |!])/g;function Lh(e){return e.replace(/&/g,"&").replace(Db,function(t){return"&#"+(1024*(t.charCodeAt(0)-55296)+(t.charCodeAt(1)-56320)+65536)+";"}).replace(vb,function(t){return"&#"+t.charCodeAt(0)+";"}).replace(//g,">")}let qi;function Bh(e,t){let n=null;try{qi=qi||function Oh(e){const t=new hb(e);return function pb(){try{return!!(new window.DOMParser).parseFromString(gr(""),"text/html")}catch{return!1}}()?new fb(t):t}(e);let r=t?String(t):"";n=qi.getInertBodyElement(r);let o=5,i=r;do{if(0===o)throw new Error("Failed to sanitize html because the input is unstable");o--,r=i,i=n.innerHTML,n=qi.getInertBodyElement(r)}while(r!==i);return gr((new yb).sanitizeChildren(wl(n)||n))}finally{if(n){const r=wl(n)||n;for(;r.firstChild;)r.removeChild(r.firstChild)}}}function wl(e){return"content"in e&&function _b(e){return e.nodeType===Node.ELEMENT_NODE&&"TEMPLATE"===e.nodeName}(e)?e.content:null}var ie=(()=>((ie=ie||{})[ie.NONE=0]="NONE",ie[ie.HTML=1]="HTML",ie[ie.STYLE=2]="STYLE",ie[ie.SCRIPT=3]="SCRIPT",ie[ie.URL=4]="URL",ie[ie.RESOURCE_URL=5]="RESOURCE_URL",ie))();function fo(e){const t=function ho(){const e=D();return e&&e[Rn].sanitizer}();return t?t.sanitize(ie.URL,e)||"":Bt(e,"URL")?ct(e):zi(R(e))}class T{constructor(t,n){this._desc=t,this.ngMetadataName="InjectionToken",this.\u0275prov=void 0,"number"==typeof n?this.__NG_ELEMENT_ID__=n:void 0!==n&&(this.\u0275prov=K({token:this,providedIn:n.providedIn||"root",factory:n.factory}))}get multi(){return this}toString(){return`InjectionToken ${this._desc}`}}const Wi=new T("ENVIRONMENT_INITIALIZER"),jh=new T("INJECTOR",-1),$h=new T("INJECTOR_DEF_TYPES");class Uh{get(t,n=$r){if(n===$r){const r=new Error(`NullInjectorError: No provider for ${we(t)}!`);throw r.name="NullInjectorError",r}return n}}function Ib(...e){return{\u0275providers:zh(0,e),\u0275fromNgModule:!0}}function zh(e,...t){const n=[],r=new Set;let o;return no(t,i=>{const s=i;bl(s,n,[],r)&&(o||=[],o.push(s))}),void 0!==o&&qh(o,n),n}function qh(e,t){for(let n=0;n{t.push(i)})}}function bl(e,t,n,r){if(!(e=O(e)))return!1;let o=null,i=Nd(e);const s=!i&&Q(e);if(i||s){if(s&&!s.standalone)return!1;o=e}else{const l=e.ngModule;if(i=Nd(l),!i)return!1;o=l}const a=r.has(o);if(s){if(a)return!1;if(r.add(o),s.dependencies){const l="function"==typeof s.dependencies?s.dependencies():s.dependencies;for(const u of l)bl(u,t,n,r)}}else{if(!i)return!1;{if(null!=i.imports&&!a){let u;r.add(o);try{no(i.imports,c=>{bl(c,t,n,r)&&(u||=[],u.push(c))})}finally{}void 0!==u&&qh(u,t)}if(!a){const u=Vn(o)||(()=>new o);t.push({provide:o,useFactory:u,deps:q},{provide:$h,useValue:o,multi:!0},{provide:Wi,useValue:()=>H(o),multi:!0})}const l=i.providers;null==l||a||Sl(l,c=>{t.push(c)})}}return o!==e&&void 0!==e.providers}function Sl(e,t){for(let n of e)va(n)&&(n=n.\u0275providers),Array.isArray(n)?Sl(n,t):t(n)}const Tb=J({provide:String,useValue:J});function Ml(e){return null!==e&&"object"==typeof e&&Tb in e}function jn(e){return"function"==typeof e}const Al=new T("Set Injector scope."),Qi={},Fb={};let Il;function Zi(){return void 0===Il&&(Il=new Uh),Il}class mr{}class Tl extends mr{get destroyed(){return this._destroyed}constructor(t,n,r,o){super(),this.parent=n,this.source=r,this.scopes=o,this.records=new Map,this._ngOnDestroyHooks=new Set,this._onDestroyHooks=[],this._destroyed=!1,Fl(t,s=>this.processProvider(s)),this.records.set(jh,yr(void 0,this)),o.has("environment")&&this.records.set(mr,yr(void 0,this));const i=this.records.get(Al);null!=i&&"string"==typeof i.value&&this.scopes.add(i.value),this.injectorDefTypes=new Set(this.get($h.multi,q,x.Self))}destroy(){this.assertNotDestroyed(),this._destroyed=!0;try{for(const n of this._ngOnDestroyHooks)n.ngOnDestroy();const t=this._onDestroyHooks;this._onDestroyHooks=[];for(const n of t)n()}finally{this.records.clear(),this._ngOnDestroyHooks.clear(),this.injectorDefTypes.clear()}}onDestroy(t){return this.assertNotDestroyed(),this._onDestroyHooks.push(t),()=>this.removeOnDestroy(t)}runInContext(t){this.assertNotDestroyed();const n=gn(this),r=Ze(void 0);try{return t()}finally{gn(n),Ze(r)}}get(t,n=$r,r=x.Default){if(this.assertNotDestroyed(),t.hasOwnProperty(kd))return t[kd](this);r=di(r);const o=gn(this),i=Ze(void 0);try{if(!(r&x.SkipSelf)){let a=this.records.get(t);if(void 0===a){const l=function Vb(e){return"function"==typeof e||"object"==typeof e&&e instanceof T}(t)&&li(t);a=l&&this.injectableDefInScope(l)?yr(Nl(t),Qi):null,this.records.set(t,a)}if(null!=a)return this.hydrate(t,a)}return(r&x.Self?Zi():this.parent).get(t,n=r&x.Optional&&n===$r?null:n)}catch(s){if("NullInjectorError"===s.name){if((s[ci]=s[ci]||[]).unshift(we(t)),o)throw s;return function TC(e,t,n,r){const o=e[ci];throw t[Rd]&&o.unshift(t[Rd]),e.message=function NC(e,t,n,r=null){e=e&&"\n"===e.charAt(0)&&"\u0275"==e.charAt(1)?e.slice(2):e;let o=we(t);if(Array.isArray(t))o=t.map(we).join(" -> ");else if("object"==typeof t){let i=[];for(let s in t)if(t.hasOwnProperty(s)){let a=t[s];i.push(s+":"+("string"==typeof a?JSON.stringify(a):we(a)))}o=`{${i.join(", ")}}`}return`${n}${r?"("+r+")":""}[${o}]: ${e.replace(bC,"\n ")}`}("\n"+e.message,o,n,r),e.ngTokenPath=o,e[ci]=null,e}(s,t,"R3InjectorError",this.source)}throw s}finally{Ze(i),gn(o)}}resolveInjectorInitializers(){const t=gn(this),n=Ze(void 0);try{const r=this.get(Wi.multi,q,x.Self);for(const o of r)o()}finally{gn(t),Ze(n)}}toString(){const t=[],n=this.records;for(const r of n.keys())t.push(we(r));return`R3Injector[${t.join(", ")}]`}assertNotDestroyed(){if(this._destroyed)throw new C(205,!1)}processProvider(t){let n=jn(t=O(t))?t:O(t&&t.provide);const r=function Ob(e){return Ml(e)?yr(void 0,e.useValue):yr(Zh(e),Qi)}(t);if(jn(t)||!0!==t.multi)this.records.get(n);else{let o=this.records.get(n);o||(o=yr(void 0,Qi,!0),o.factory=()=>wa(o.multi),this.records.set(n,o)),n=t,o.multi.push(t)}this.records.set(n,r)}hydrate(t,n){return n.value===Qi&&(n.value=Fb,n.value=n.factory()),"object"==typeof n.value&&n.value&&function Pb(e){return null!==e&&"object"==typeof e&&"function"==typeof e.ngOnDestroy}(n.value)&&this._ngOnDestroyHooks.add(n.value),n.value}injectableDefInScope(t){if(!t.providedIn)return!1;const n=O(t.providedIn);return"string"==typeof n?"any"===n||this.scopes.has(n):this.injectorDefTypes.has(n)}removeOnDestroy(t){const n=this._onDestroyHooks.indexOf(t);-1!==n&&this._onDestroyHooks.splice(n,1)}}function Nl(e){const t=li(e),n=null!==t?t.factory:Vn(e);if(null!==n)return n;if(e instanceof T)throw new C(204,!1);if(e instanceof Function)return function xb(e){const t=e.length;if(t>0)throw function ro(e,t){const n=[];for(let r=0;rn.factory(e):()=>new e}(e);throw new C(204,!1)}function Zh(e,t,n){let r;if(jn(e)){const o=O(e);return Vn(o)||Nl(o)}if(Ml(e))r=()=>O(e.useValue);else if(function Qh(e){return!(!e||!e.useFactory)}(e))r=()=>e.useFactory(...wa(e.deps||[]));else if(function Wh(e){return!(!e||!e.useExisting)}(e))r=()=>H(O(e.useExisting));else{const o=O(e&&(e.useClass||e.provide));if(!function Rb(e){return!!e.deps}(e))return Vn(o)||Nl(o);r=()=>new o(...wa(e.deps))}return r}function yr(e,t,n=!1){return{factory:e,value:t,multi:n?[]:void 0}}function Fl(e,t){for(const n of e)Array.isArray(n)?Fl(n,t):n&&va(n)?Fl(n.\u0275providers,t):t(n)}const Yi=new T("AppId",{providedIn:"root",factory:()=>kb}),kb="ng",Yh=new T("Platform Initializer"),Dr=new T("Platform ID",{providedIn:"platform",factory:()=>"unknown"}),Kh=new T("CSP nonce",{providedIn:"root",factory:()=>function uo(){if(void 0!==vl)return vl;if(typeof document<"u")return document;throw new C(210,!1)}().body?.querySelector("[ngCspNonce]")?.getAttribute("ngCspNonce")||null});let Jh=(e,t)=>null;function ep(e,t){return Jh(e,t)}class qb{}class rp{}class Qb{resolveComponentFactory(t){throw function Wb(e){const t=Error(`No component factory found for ${we(e)}.`);return t.ngComponent=e,t}(t)}}let ts=(()=>{class e{}return e.NULL=new Qb,e})();function Zb(){return vr(Ne(),D())}function vr(e,t){return new pt(Xe(e,t))}let pt=(()=>{class e{constructor(n){this.nativeElement=n}}return e.__NG_ELEMENT_ID__=Zb,e})();function Yb(e){return e instanceof pt?e.nativeElement:e}class ip{}let vn=(()=>{class e{constructor(){this.destroyNode=null}}return e.__NG_ELEMENT_ID__=()=>function Kb(){const e=D(),n=lt(Ne().index,e);return(at(n)?n:e)[k]}(),e})(),Xb=(()=>{class e{}return e.\u0275prov=K({token:e,providedIn:"root",factory:()=>null}),e})();class ns{constructor(t){this.full=t,this.major=t.split(".")[0],this.minor=t.split(".")[1],this.patch=t.split(".").slice(2).join(".")}}const Jb=new ns("16.1.4"),$l={};function yo(e){for(;e;){e[V]|=64;const t=so(e);if(Na(e)&&!t)return e;e=t}return null}function Ul(e){return e.ngOriginalError}class $n{constructor(){this._console=console}handleError(t){const n=this._findOriginalError(t);this._console.error("ERROR",t),n&&this._console.error("ORIGINAL ERROR",n)}_findOriginalError(t){let n=t&&Ul(t);for(;n&&Ul(n);)n=Ul(n);return n||null}}const lp=new T("",{providedIn:"root",factory:()=>!1});class hp extends nf{constructor(){super(...arguments),this.consumerAllowSignalWrites=!1,this._lView=null}set lView(t){this._lView=t}onConsumerDependencyMayHaveChanged(){yo(this._lView)}onProducerUpdateValueVersion(){}get hasReadASignal(){return this.hasProducers}runInContext(t,n,r){const o=Te(this);this.trackingVersion++;try{t(n,r)}finally{Te(o)}}destroy(){this.trackingVersion++}}let os=null;function pp(){return os??=new hp,os}function gp(e,t){return e[t]??pp()}function mp(e,t){const n=pp();n.hasReadASignal&&(e[t]=os,n.lView=e,os=new hp)}const L={};function ee(e){yp(U(),D(),ze()+e,!1)}function yp(e,t,n,r){if(!r)if(3==(3&t[V])){const i=e.preOrderCheckHooks;null!==i&&bi(t,i,n)}else{const i=e.preOrderHooks;null!==i&&Si(t,i,0,n)}kn(n)}function Cp(e,t=null,n=null,r){const o=Ep(e,t,n,r);return o.resolveInjectorInitializers(),o}function Ep(e,t=null,n=null,r,o=new Set){const i=[n||q,Ib(e)];return r=r||("object"==typeof e?void 0:we(e)),new Tl(i,t||Zi(),r||null,o)}let nn=(()=>{class e{static create(n,r){if(Array.isArray(n))return Cp({name:""},r,n,"");{const o=n.name??"";return Cp({name:o},n.parent,n.providers,o)}}}return e.THROW_IF_NOT_FOUND=$r,e.NULL=new Uh,e.\u0275prov=K({token:e,providedIn:"any",factory:()=>H(jh)}),e.__NG_ELEMENT_ID__=-1,e})();function _(e,t=x.Default){const n=D();return null===n?H(e,t):Bf(Ne(),n,O(e),t)}function is(e,t,n,r,o,i,s,a,l,u,c){const d=t.blueprint.slice();return d[be]=o,d[V]=140|r,(null!==u||e&&2048&e[V])&&(d[V]|=2048),hf(d),d[fe]=d[Jn]=e,d[ve]=n,d[Rn]=s||e&&e[Rn],d[k]=a||e&&e[k],d[Xn]=l||e&&e[Xn]||null,d[Re]=i,d[Yr]=function Sw(){return bw++}(),d[Yt]=c,d[Yd]=u,d[_e]=2==t.type?e[_e]:d,d}function Cr(e,t,n,r,o){let i=e.data[t];if(null===i)i=function Gl(e,t,n,r,o){const i=vf(),s=Va(),l=e.data[t]=function CS(e,t,n,r,o,i){let s=t?t.injectorIndex:-1,a=0;return function rr(){return null!==F.skipHydrationRootTNode}()&&(a|=128),{type:n,index:r,insertBeforeIndex:null,injectorIndex:s,directiveStart:-1,directiveEnd:-1,directiveStylingLast:-1,componentOffset:-1,propertyBindings:null,flags:a,providerIndexes:0,value:o,attrs:i,mergedAttrs:null,localNames:null,initialInputs:void 0,inputs:null,outputs:null,tView:null,next:null,prev:null,projectionNext:null,child:null,parent:t,projection:null,styles:null,stylesWithoutHost:null,residualStyles:void 0,classes:null,classesWithoutHost:null,residualClasses:void 0,classBindings:0,styleBindings:0}}(0,s?i:i&&i.parent,n,t,r,o);return null===e.firstChild&&(e.firstChild=l),null!==i&&(s?null==i.child&&null!==l.parent&&(i.child=l):null===i.next&&(i.next=l,l.prev=i)),l}(e,t,n,r,o),function AE(){return F.lFrame.inI18n}()&&(i.flags|=32);else if(64&i.type){i.type=n,i.value=r,i.attrs=o;const s=function Xr(){const e=F.lFrame,t=e.currentTNode;return e.isParent?t:t.parent}();i.injectorIndex=null===s?-1:s.injectorIndex}return kt(i,!0),i}function Do(e,t,n,r){if(0===n)return-1;const o=t.length;for(let i=0;i$&&yp(e,t,$,!1),Vt(a?2:0,o),a)i.runInContext(n,r,o);else{const u=Te(null);try{n(r,o)}finally{Te(u)}}}finally{a&&null===t[pi]&&mp(t,pi),kn(s),Vt(a?3:1,o)}}function zl(e,t,n){if(Ta(t)){const r=Te(null);try{const i=t.directiveEnd;for(let s=t.directiveStart;snull;function Mp(e,t,n,r){for(let o in e)if(e.hasOwnProperty(o)){n=null===n?{}:n;const i=e[o];null===r?Ap(n,t,o,i):r.hasOwnProperty(o)&&Ap(n,t,r[o],i)}return n}function Ap(e,t,n,r){e.hasOwnProperty(n)?e[n].push(t,r):e[n]=[t,r]}function Zl(e,t,n,r){if(Df()){const o=null===r?null:{"":-1},i=function NS(e,t){const n=e.directiveRegistry;let r=null,o=null;if(n)for(let i=0;i0;){const n=e[--t];if("number"==typeof n&&n<0)return n}return 0})(s)!=a&&s.push(a),s.push(n,r,i)}}(e,t,r,Do(e,n,o.hostVars,L),o)}function VS(e,t,n,r,o,i){const s=i[t];if(null!==s)for(let a=0;a{class e{constructor(){this.all=new Set,this.queue=new Map}create(n,r,o){const i=typeof Zone>"u"?null:Zone.current,s=new iE(n,u=>{this.all.has(u)&&this.queue.set(u,i)},o);let a;this.all.add(s),s.notify();const l=()=>{s.cleanup(),a?.(),this.all.delete(s),this.queue.delete(s)};return a=r?.onDestroy(l),{destroy:l}}flush(){if(0!==this.queue.size)for(const[n,r]of this.queue)this.queue.delete(n),r?r.run(()=>n.run()):n.run()}get isQueueEmpty(){return 0===this.queue.size}}return e.\u0275prov=K({token:e,providedIn:"root",factory:()=>new e}),e})();function as(e,t,n){let r=n?e.styles:null,o=n?e.classes:null,i=0;if(null!==t)for(let s=0;s0){Bp(e,1);const o=e[b].components;null!==o&&jp(e,o,1)}}function jp(e,t,n){for(let r=0;r-1&&(fl(t,r),Fi(n,r))}this._attachedToViewContainer=!1}yh(this._lView[b],this._lView)}onDestroy(t){!function mf(e,t){if(256==(256&e[V]))throw new C(911,!1);null===e[mn]&&(e[mn]=[]),e[mn].push(t)}(this._lView,t)}markForCheck(){yo(this._cdRefInjectingView||this._lView)}detach(){this._lView[V]&=-129}reattach(){this._lView[V]|=128}detectChanges(){ls(this._lView[b],this._lView,this.context)}checkNoChanges(){}attachToViewContainerRef(){if(this._appRef)throw new C(902,!1);this._attachedToViewContainer=!0}detachFromAppRef(){this._appRef=null,function Bw(e,t){lo(e,t,t[k],2,null,null)}(this._lView[b],this._lView)}attachToAppRef(t){if(this._attachedToViewContainer)throw new C(902,!1);this._appRef=t}}class WS extends _o{constructor(t){super(t),this._view=t}detectChanges(){const t=this._view;ls(t[b],t,t[ve],!1)}checkNoChanges(){}get context(){return null}}class $p extends ts{constructor(t){super(),this.ngModule=t}resolveComponentFactory(t){const n=Q(t);return new Co(n,this.ngModule)}}function Up(e){const t=[];for(let n in e)e.hasOwnProperty(n)&&t.push({propName:e[n],templateName:n});return t}class ZS{constructor(t,n){this.injector=t,this.parentInjector=n}get(t,n,r){r=di(r);const o=this.injector.get(t,$l,r);return o!==$l||n===$l?o:this.parentInjector.get(t,n,r)}}class Co extends rp{get inputs(){const t=this.componentDef,n=t.inputTransforms,r=Up(t.inputs);if(null!==n)for(const o of r)n.hasOwnProperty(o.propName)&&(o.transform=n[o.propName]);return r}get outputs(){return Up(this.componentDef.outputs)}constructor(t,n){super(),this.componentDef=t,this.ngModule=n,this.componentType=t.type,this.selector=function HC(e){return e.map(BC).join(",")}(t.selectors),this.ngContentSelectors=t.ngContentSelectors?t.ngContentSelectors:[],this.isBoundToModule=!!n}create(t,n,r,o){let i=(o=o||this.ngModule)instanceof mr?o:o?.injector;i&&null!==this.componentDef.getStandaloneInjector&&(i=this.componentDef.getStandaloneInjector(i)||i);const s=i?new ZS(t,i):t,a=s.get(ip,null);if(null===a)throw new C(407,!1);const c={rendererFactory:a,sanitizer:s.get(Xb,null),effectManager:s.get(kp,null)},d=a.createRenderer(null,this.componentDef),f=this.componentDef.selectors[0][0]||"div",h=r?function mS(e,t,n,r){const i=r.get(lp,!1)||n===it.ShadowDom,s=e.selectRootElement(t,i);return function yS(e){Sp(e)}(s),s}(d,r,this.componentDef.encapsulation,s):Bi(d,f,function QS(e){const t=e.toLowerCase();return"svg"===t?"svg":"math"===t?"math":null}(f)),y=this.componentDef.signals?4608:this.componentDef.onPush?576:528,v=Ql(0,null,null,1,0,null,null,null,null,null,null),g=is(null,v,null,y,null,null,c,d,s,null,null);let E,S;ja(g);try{const A=this.componentDef;let me,In=null;A.findHostDirectiveDefs?(me=[],In=new Map,A.findHostDirectiveDefs(A,me,In),me.push(A)):me=[A];const qt=function KS(e,t){const n=e[b],r=$;return e[r]=t,Cr(n,r,2,"#host",null)}(g,h),Xo=function XS(e,t,n,r,o,i,s){const a=o[b];!function JS(e,t,n,r){for(const o of e)t.mergedAttrs=zr(t.mergedAttrs,o.hostAttrs);null!==t.mergedAttrs&&(as(t,t.mergedAttrs,!0),null!==n&&Th(r,n,t))}(r,e,t,s);let l=null;null!==t&&(l=ep(t,o[Xn]));const u=i.rendererFactory.createRenderer(t,n);let c=16;n.signals?c=4096:n.onPush&&(c=64);const d=is(o,bp(n),null,c,o[e.index],e,i,u,null,null,l);return a.firstCreatePass&&Yl(a,e,r.length-1),ss(o,d),o[e.index]=d}(qt,h,A,me,g,c,d);S=ff(v,$),h&&function tM(e,t,n,r){if(r)Ma(e,n,["ng-version",Jb.full]);else{const{attrs:o,classes:i}=function jC(e){const t=[],n=[];let r=1,o=2;for(;r0&&Ih(e,n,i.join(" "))}}(d,A,h,r),void 0!==n&&function nM(e,t,n){const r=e.projection=[];for(let o=0;o=0;r--){const o=e[r];o.hostVars=t+=o.hostVars,o.hostAttrs=zr(o.hostAttrs,n=zr(n,o.hostAttrs))}}(r)}function us(e){return e===xt?{}:e===q?[]:e}function iM(e,t){const n=e.viewQuery;e.viewQuery=n?(r,o)=>{t(r,o),n(r,o)}:t}function sM(e,t){const n=e.contentQueries;e.contentQueries=n?(r,o,i)=>{t(r,o,i),n(r,o,i)}:t}function aM(e,t){const n=e.hostBindings;e.hostBindings=n?(r,o)=>{t(r,o),n(r,o)}:t}function cs(e){return!!function tu(e){return null!==e&&("function"==typeof e||"object"==typeof e)}(e)&&(Array.isArray(e)||!(e instanceof Map)&&Symbol.iterator in e)}function jt(e,t,n){return e[t]=n}function Le(e,t,n){return!Object.is(e[t],n)&&(e[t]=n,!0)}function sn(e,t,n,r,o,i,s,a){const l=D(),u=U(),c=e+$,d=u.firstCreatePass?function OM(e,t,n,r,o,i,s,a,l){const u=t.consts,c=Cr(t,e,4,s||null,yn(u,a));Zl(t,n,c,yn(u,l)),wi(t,c);const d=c.tView=Ql(2,c,r,o,i,t.directiveRegistry,t.pipeRegistry,null,t.schemas,u,null);return null!==t.queries&&(t.queries.template(t,c),d.queries=t.queries.embeddedTView(c)),c}(c,u,l,t,n,r,o,i,s):u.data[c];kt(d,!1);const f=sg(u,l,d,e);Ei()&&ji(u,l,f,d),ke(f,l),ss(l,l[c]=Fp(f,l,f,d)),yi(d)&&ql(u,l,d),null!=s&&Wl(l,d,a)}let sg=function ag(e,t,n,r){return Dn(!0),t[k].createComment("")};function Fe(e){return nr(function ME(){return F.lFrame.contextLView}(),$+e)}function X(e,t,n){const r=D();return Le(r,or(),t)&&function dt(e,t,n,r,o,i,s,a){const l=Xe(t,n);let c,u=t.inputs;!a&&null!=u&&(c=u[r])?(Jl(e,n,c,r,o),Pn(t)&&function bS(e,t){const n=lt(t,e);16&n[V]||(n[V]|=64)}(n,t.index)):3&t.type&&(r=function wS(e){return"class"===e?"className":"for"===e?"htmlFor":"formaction"===e?"formAction":"innerHtml"===e?"innerHTML":"readonly"===e?"readOnly":"tabindex"===e?"tabIndex":e}(r),o=null!=s?s(o,t.value||"",r):o,i.setProperty(l,r,o))}(U(),function he(){const e=F.lFrame;return ff(e.tView,e.selectedIndex)}(),r,e,t,r[k],n,!1),X}function au(e,t,n,r,o){const s=o?"class":"style";Jl(e,n,t.inputs[s],s,r)}function G(e,t,n,r){const o=D(),i=U(),s=$+e,a=o[k],l=i.firstCreatePass?function kM(e,t,n,r,o,i){const s=t.consts,l=Cr(t,e,2,r,yn(s,o));return Zl(t,n,l,yn(s,i)),null!==l.attrs&&as(l,l.attrs,!1),null!==l.mergedAttrs&&as(l,l.mergedAttrs,!0),null!==t.queries&&t.queries.elementStart(t,l),l}(s,i,o,t,n,r):i.data[s],u=lg(i,o,l,a,t,e);o[s]=u;const c=yi(l);return kt(l,!0),Th(a,u,l),32!=(32&l.flags)&&Ei()&&ji(i,o,u,l),0===function DE(){return F.lFrame.elementDepthCount}()&&ke(u,o),function vE(){F.lFrame.elementDepthCount++}(),c&&(ql(i,o,l),zl(i,l,o)),null!==r&&Wl(o,l),G}function z(){let e=Ne();Va()?function ka(){F.lFrame.isParent=!1}():(e=e.parent,kt(e,!1));const t=e;(function CE(e){return F.skipHydrationRootTNode===e})(t)&&function SE(){F.skipHydrationRootTNode=null}(),function _E(){F.lFrame.elementDepthCount--}();const n=U();return n.firstCreatePass&&(wi(n,e),Ta(e)&&n.queries.elementEnd(e)),null!=t.classesWithoutHost&&function HE(e){return 0!=(8&e.flags)}(t)&&au(n,t,D(),t.classesWithoutHost,!0),null!=t.stylesWithoutHost&&function jE(e){return 0!=(16&e.flags)}(t)&&au(n,t,D(),t.stylesWithoutHost,!1),z}function Et(e,t,n,r){return G(e,t,n,r),z(),Et}let lg=(e,t,n,r,o,i)=>(Dn(!0),Bi(r,o,function Tf(){return F.lFrame.currentNamespace}()));function Mo(){return D()}function gs(e){return!!e&&"function"==typeof e.then}function dg(e){return!!e&&"function"==typeof e.subscribe}function re(e,t,n,r){const o=D(),i=U(),s=Ne();return function hg(e,t,n,r,o,i,s){const a=yi(r),u=e.firstCreatePass&&Rp(e),c=t[ve],d=Op(t);let f=!0;if(3&r.type||s){const m=Xe(r,t),y=s?s(m):m,v=d.length,g=s?S=>s(le(S[r.index])):r.index;let E=null;if(!s&&a&&(E=function UM(e,t,n,r){const o=e.cleanup;if(null!=o)for(let i=0;il?a[l]:null}"string"==typeof s&&(i+=2)}return null}(e,t,o,r.index)),null!==E)(E.__ngLastListenerFn__||E).__ngNextListenerFn__=i,E.__ngLastListenerFn__=i,f=!1;else{i=gg(r,t,c,i,!1);const S=n.listen(y,o,i);d.push(i,S),u&&u.push(o,g,v,v+1)}}else i=gg(r,t,c,i,!1);const h=r.outputs;let p;if(f&&null!==h&&(p=h[o])){const m=p.length;if(m)for(let y=0;y-1?lt(e.index,t):t);let l=pg(t,n,r,s),u=i.__ngNextListenerFn__;for(;u;)l=pg(t,n,u,s)&&l,u=u.__ngNextListenerFn__;return o&&!1===l&&s.preventDefault(),l}}function _n(e=1){return function FE(e){return(F.lFrame.contextLView=function xE(e,t){for(;e>0;)t=t[Jn],e--;return t}(e,F.lFrame.contextLView))[ve]}(e)}function ms(e,t){return e<<17|t<<2}function Cn(e){return e>>17&32767}function du(e){return 2|e}function Gn(e){return(131068&e)>>2}function fu(e,t){return-131069&e|t<<2}function hu(e){return 1|e}function Sg(e,t,n,r,o){const i=e[n+1],s=null===t;let a=r?Cn(i):Gn(i),l=!1;for(;0!==a&&(!1===l||s);){const c=e[a+1];XM(e[a],t)&&(l=!0,e[a+1]=r?hu(c):du(c)),a=r?Cn(c):Gn(c)}l&&(e[n+1]=r?du(i):hu(i))}function XM(e,t){return null===e||null==t||(Array.isArray(e)?e[1]:e)===t||!(!Array.isArray(e)||"string"!=typeof t)&&dr(e,t)>=0}function En(e,t){return function wt(e,t,n,r){const o=D(),i=U(),s=function Jt(e){const t=F.lFrame,n=t.bindingIndex;return t.bindingIndex=t.bindingIndex+e,n}(2);i.firstUpdatePass&&function Rg(e,t,n,r){const o=e.data;if(null===o[n+1]){const i=o[ze()],s=function Og(e,t){return t>=e.expandoStartIndex}(e,n);(function Lg(e,t){return 0!=(e.flags&(t?8:16))})(i,r)&&null===t&&!s&&(t=!1),t=function aA(e,t,n,r){const o=function Ba(e){const t=F.lFrame.currentDirectiveIndex;return-1===t?null:e[t]}(e);let i=r?t.residualClasses:t.residualStyles;if(null===o)0===(r?t.classBindings:t.styleBindings)&&(n=Ao(n=pu(null,e,t,n,r),t.attrs,r),i=null);else{const s=t.directiveStylingLast;if(-1===s||e[s]!==o)if(n=pu(o,e,t,n,r),null===i){let l=function lA(e,t,n){const r=n?t.classBindings:t.styleBindings;if(0!==Gn(r))return e[Cn(r)]}(e,t,r);void 0!==l&&Array.isArray(l)&&(l=pu(null,e,t,l[1],r),l=Ao(l,t.attrs,r),function uA(e,t,n,r){e[Cn(n?t.classBindings:t.styleBindings)]=r}(e,t,r,l))}else i=function cA(e,t,n){let r;const o=t.directiveEnd;for(let i=1+t.directiveStylingLast;i0)&&(u=!0)):c=n,o)if(0!==l){const f=Cn(e[a+1]);e[r+1]=ms(f,a),0!==f&&(e[f+1]=fu(e[f+1],r)),e[a+1]=function QM(e,t){return 131071&e|t<<17}(e[a+1],r)}else e[r+1]=ms(a,0),0!==a&&(e[a+1]=fu(e[a+1],r)),a=r;else e[r+1]=ms(l,0),0===a?a=r:e[l+1]=fu(e[l+1],r),l=r;u&&(e[r+1]=du(e[r+1])),Sg(e,c,r,!0),Sg(e,c,r,!1),function KM(e,t,n,r,o){const i=o?e.residualClasses:e.residualStyles;null!=i&&"string"==typeof t&&dr(i,t)>=0&&(n[r+1]=hu(n[r+1]))}(t,c,e,r,i),s=ms(a,l),i?t.classBindings=s:t.styleBindings=s}(o,i,t,n,s,r)}}(i,e,s,r),t!==L&&Le(o,s,t)&&function Vg(e,t,n,r,o,i,s,a){if(!(3&t.type))return;const l=e.data,u=l[a+1],c=function ZM(e){return 1==(1&e)}(u)?kg(l,t,n,o,Gn(u),s):void 0;ys(c)||(ys(i)||function WM(e){return 2==(2&e)}(u)&&(i=kg(l,null,n,o,a,s)),function Zw(e,t,n,r,o){if(t)o?e.addClass(n,r):e.removeClass(n,r);else{let i=-1===r.indexOf("-")?void 0:tt.DashCase;null==o?e.removeStyle(n,r,i):("string"==typeof o&&o.endsWith("!important")&&(o=o.slice(0,-10),i|=tt.Important),e.setStyle(n,r,o,i))}}(r,s,Ci(ze(),n),o,i))}(i,i.data[ze()],o,o[k],e,o[s+1]=function pA(e,t){return null==e||""===e||("string"==typeof t?e+=t:"object"==typeof e&&(e=we(ct(e)))),e}(t,n),r,s)}(e,t,null,!0),En}function pu(e,t,n,r,o){let i=null;const s=n.directiveEnd;let a=n.directiveStylingLast;for(-1===a?a=n.directiveStart:a++;a0;){const l=e[o],u=Array.isArray(l),c=u?l[1]:l,d=null===c;let f=n[o+1];f===L&&(f=d?q:void 0);let h=d?Xa(f,r):c===r?f:void 0;if(u&&!ys(h)&&(h=Xa(l,r)),ys(h)&&(a=h,s))return a;const p=e[o+1];o=s?Cn(p):Gn(p)}if(null!==t){let l=i?t.residualClasses:t.residualStyles;null!=l&&(a=Xa(l,r))}return a}function ys(e){return void 0!==e}function Be(e,t=""){const n=D(),r=U(),o=e+$,i=r.firstCreatePass?Cr(r,o,1,t,null):r.data[o],s=Bg(r,n,i,t,e);n[o]=s,Ei()&&ji(r,n,s,i),kt(i,!1)}let Bg=(e,t,n,r,o)=>(Dn(!0),function Li(e,t){return e.createText(t)}(t[k],r));function gu(e){return Io("",e,""),gu}function Io(e,t,n){const r=D(),o=function wr(e,t,n,r){return Le(e,or(),n)?t+R(n)+r:L}(r,e,t,n);return o!==L&&function rn(e,t,n){const r=Ci(t,e);!function gh(e,t,n){e.setValue(t,n)}(e[k],r,n)}(r,ze(),o),Io}const Or="en-US";let am=Or;function Du(e,t,n,r,o){if(e=O(e),Array.isArray(e))for(let i=0;i>20;if(jn(e)||!e.multi){const h=new Jr(l,o,_),p=_u(a,t,o?c:c+f,d);-1===p?(Qa(Ti(u,s),i,a),vu(i,e,t.length),t.push(a),u.directiveStart++,u.directiveEnd++,o&&(u.providerIndexes+=1048576),n.push(h),s.push(h)):(n[p]=h,s[p]=h)}else{const h=_u(a,t,c+f,d),p=_u(a,t,c,c+f),y=p>=0&&n[p];if(o&&!y||!o&&!(h>=0&&n[h])){Qa(Ti(u,s),i,a);const v=function RI(e,t,n,r,o){const i=new Jr(e,n,_);return i.multi=[],i.index=t,i.componentProviders=0,xm(i,o,r&&!n),i}(o?OI:xI,n.length,o,r,l);!o&&y&&(n[p].providerFactory=v),vu(i,e,t.length,0),t.push(a),u.directiveStart++,u.directiveEnd++,o&&(u.providerIndexes+=1048576),n.push(v),s.push(v)}else vu(i,e,h>-1?h:p,xm(n[o?p:h],l,!o&&r));!o&&r&&y&&n[p].componentProviders++}}}function vu(e,t,n,r){const o=jn(t),i=function Nb(e){return!!e.useClass}(t);if(o||i){const l=(i?O(t.useClass):t).prototype.ngOnDestroy;if(l){const u=e.destroyHooks||(e.destroyHooks=[]);if(!o&&t.multi){const c=u.indexOf(n);-1===c?u.push(n,[r,l]):u[c+1].push(r,l)}else u.push(n,l)}}}function xm(e,t,n){return n&&e.componentProviders++,e.multi.push(t)-1}function _u(e,t,n,r){for(let o=n;o{n.providersResolver=(r,o)=>function FI(e,t,n){const r=U();if(r.firstCreatePass){const o=Ct(e);Du(n,r.data,r.blueprint,o,!0),Du(t,r.data,r.blueprint,o,!1)}}(r,o?o(e):e,t)}}class Rr{}class PI{}class Eu extends Rr{constructor(t,n,r){super(),this._parent=n,this._bootstrapComponents=[],this.destroyCbs=[],this.componentFactoryResolver=new $p(this);const o=function st(e,t){const n=e[Vd]||null;if(!n&&!0===t)throw new Error(`Type ${we(e)} does not have '\u0275mod' property.`);return n}(t);this._bootstrapComponents=function tn(e){return e instanceof Function?e():e}(o.bootstrap),this._r3Injector=Ep(t,n,[{provide:Rr,useValue:this},{provide:ts,useValue:this.componentFactoryResolver},...r],we(t),new Set(["environment"])),this._r3Injector.resolveInjectorInitializers(),this.instance=this._r3Injector.get(t)}get injector(){return this._r3Injector}destroy(){const t=this._r3Injector;!t.destroyed&&t.destroy(),this.destroyCbs.forEach(n=>n()),this.destroyCbs=null}onDestroy(t){this.destroyCbs.push(t)}}class wu extends PI{constructor(t){super(),this.moduleType=t}create(t){return new Eu(this.moduleType,t,[])}}function Su(e,t,n){const r=Ge()+e,o=D();return o[r]===L?jt(o,r,n?t.call(n):t()):function Eo(e,t){return e[t]}(o,r)}function jm(e,t,n,r,o,i,s){const a=t+n;return function Un(e,t,n,r){const o=Le(e,t,n);return Le(e,t+1,r)||o}(e,a,o,i)?jt(e,a+2,s?r.call(s,o,i):r(o,i)):function Ro(e,t){const n=e[t];return n===L?void 0:n}(e,a+2)}function qm(e,t,n,r){const o=e+$,i=D(),s=nr(i,o);return function Po(e,t){return e[b].data[t].pure}(i,o)?jm(i,Ge(),t,s.transform,n,r,s):s.transform(n,r)}function Mu(e){return t=>{setTimeout(e,void 0,t)}}const xe=class c0 extends jr{constructor(t=!1){super(),this.__isAsync=t}emit(t){super.next(t)}subscribe(t,n,r){let o=t,i=n||(()=>null),s=r;if(t&&"object"==typeof t){const l=t;o=l.next?.bind(l),i=l.error?.bind(l),s=l.complete?.bind(l)}this.__isAsync&&(i=Mu(i),o&&(o=Mu(o)),s&&(s=Mu(s)));const a=super.subscribe({next:o,error:i,complete:s});return t instanceof It&&t.add(a),a}};function d0(){return this._results[Symbol.iterator]()}class Au{get changes(){return this._changes||(this._changes=new xe)}constructor(t=!1){this._emitDistinctChangesOnly=t,this.dirty=!0,this._results=[],this._changesDetected=!1,this._changes=null,this.length=0,this.first=void 0,this.last=void 0;const n=Au.prototype;n[Symbol.iterator]||(n[Symbol.iterator]=d0)}get(t){return this._results[t]}map(t){return this._results.map(t)}filter(t){return this._results.filter(t)}find(t){return this._results.find(t)}reduce(t,n){return this._results.reduce(t,n)}forEach(t){this._results.forEach(t)}some(t){return this._results.some(t)}toArray(){return this._results.slice()}toString(){return this._results.toString()}reset(t,n){const r=this;r.dirty=!1;const o=function ht(e){return e.flat(Number.POSITIVE_INFINITY)}(t);(this._changesDetected=!function XE(e,t,n){if(e.length!==t.length)return!1;for(let r=0;r{class e{}return e.__NG_ELEMENT_ID__=p0,e})();const f0=an,h0=class extends f0{constructor(t,n,r){super(),this._declarationLView=t,this._declarationTContainer=n,this.elementRef=r}get ssrId(){return this._declarationTContainer.tView?.ssrId||null}createEmbeddedView(t,n){return this.createEmbeddedViewImpl(t,n,null)}createEmbeddedViewImpl(t,n,r){const s=this._declarationTContainer.tView,a=is(this._declarationLView,s,t,4096&this._declarationLView[V]?4096:16,null,s.declTNode,null,null,null,n||null,r||null);a[Zr]=this._declarationLView[this._declarationTContainer.index];const u=this._declarationLView[Ot];return null!==u&&(a[Ot]=u.createEmbeddedView(s)),eu(s,a,t),new _o(a)}};function p0(){return Es(Ne(),D())}function Es(e,t){return 4&e.type?new h0(t,e,vr(e,t)):null}let Gt=(()=>{class e{}return e.__NG_ELEMENT_ID__=C0,e})();function C0(){return Xm(Ne(),D())}const E0=Gt,Ym=class extends E0{constructor(t,n,r){super(),this._lContainer=t,this._hostTNode=n,this._hostLView=r}get element(){return vr(this._hostTNode,this._hostLView)}get injector(){return new sr(this._hostTNode,this._hostLView)}get parentInjector(){const t=Wa(this._hostTNode,this._hostLView);if(Of(t)){const n=Ai(t,this._hostLView),r=Mi(t);return new sr(n[b].data[r+8],n)}return new sr(null,this._hostLView)}clear(){for(;this.length>0;)this.remove(this.length-1)}get(t){const n=Km(this._lContainer);return null!==n&&n[t]||null}get length(){return this._lContainer.length-Pe}createEmbeddedView(t,n,r){let o,i;"number"==typeof r?o=r:null!=r&&(o=r.index,i=r.injector);const a=t.createEmbeddedViewImpl(n||{},i,null);return this.insertImpl(a,o,false),a}createComponent(t,n,r,o,i){const s=t&&!function to(e){return"function"==typeof e}(t);let a;if(s)a=n;else{const m=n||{};a=m.index,r=m.injector,o=m.projectableNodes,i=m.environmentInjector||m.ngModuleRef}const l=s?t:new Co(Q(t)),u=r||this.parentInjector;if(!i&&null==l.ngModule){const y=(s?u:this.parentInjector).get(mr,null);y&&(i=y)}Q(l.componentType??{});const h=l.create(u,o,null,i);return this.insertImpl(h.hostView,a,false),h}insert(t,n){return this.insertImpl(t,n,!1)}insertImpl(t,n,r){const o=t._lView,i=o[b];if(function gE(e){return Ke(e[fe])}(o)){const l=this.indexOf(t);if(-1!==l)this.detach(l);else{const u=o[fe],c=new Ym(u,u[Re],u[fe]);c.detach(c.indexOf(t))}}const s=this._adjustIndex(n),a=this._lContainer;if(function jw(e,t,n,r){const o=Pe+r,i=n.length;r>0&&(n[o-1][_t]=t),r0)r.push(s[a/2]);else{const u=i[a+1],c=t[-l];for(let d=Pe;d{class e{constructor(){this.initialized=!1,this.done=!1,this.donePromise=new Promise((n,r)=>{this.resolve=n,this.reject=r}),this.appInits=ae(eT,{optional:!0})??[]}runInitializers(){if(this.initialized)return;const n=[];for(const o of this.appInits){const i=o();if(gs(i))n.push(i);else if(dg(i)){const s=new Promise((a,l)=>{i.subscribe({complete:a,error:l})});n.push(s)}}const r=()=>{this.done=!0,this.resolve()};Promise.all(n).then(()=>{r()}).catch(o=>{this.reject(o)}),0===n.length&&r(),this.initialized=!0}}return e.\u0275fac=function(n){return new(n||e)},e.\u0275prov=K({token:e,factory:e.\u0275fac,providedIn:"root"}),e})();const ln=new T("LocaleId",{providedIn:"root",factory:()=>ae(ln,x.Optional|x.SkipSelf)||function nT(){return typeof $localize<"u"&&$localize.locale||Or}()});let oT=(()=>{class e{constructor(){this.taskId=0,this.pendingTasks=new Set,this.hasPendingTasks=new la(!1)}add(){this.hasPendingTasks.next(!0);const n=this.taskId++;return this.pendingTasks.add(n),n}remove(n){this.pendingTasks.delete(n),0===this.pendingTasks.size&&this.hasPendingTasks.next(!1)}ngOnDestroy(){this.pendingTasks.clear(),this.hasPendingTasks.next(!1)}}return e.\u0275fac=function(n){return new(n||e)},e.\u0275prov=K({token:e,factory:e.\u0275fac,providedIn:"root"}),e})();function Sy(...e){}class Ae{constructor({enableLongStackTrace:t=!1,shouldCoalesceEventChangeDetection:n=!1,shouldCoalesceRunChangeDetection:r=!1}){if(this.hasPendingMacrotasks=!1,this.hasPendingMicrotasks=!1,this.isStable=!0,this.onUnstable=new xe(!1),this.onMicrotaskEmpty=new xe(!1),this.onStable=new xe(!1),this.onError=new xe(!1),typeof Zone>"u")throw new C(908,!1);Zone.assertZonePatched();const o=this;o._nesting=0,o._outer=o._inner=Zone.current,Zone.TaskTrackingZoneSpec&&(o._inner=o._inner.fork(new Zone.TaskTrackingZoneSpec)),t&&Zone.longStackTraceZoneSpec&&(o._inner=o._inner.fork(Zone.longStackTraceZoneSpec)),o.shouldCoalesceEventChangeDetection=!r&&n,o.shouldCoalesceRunChangeDetection=r,o.lastRequestAnimationFrameId=-1,o.nativeRequestAnimationFrame=function lT(){const e="function"==typeof ne.requestAnimationFrame;let t=ne[e?"requestAnimationFrame":"setTimeout"],n=ne[e?"cancelAnimationFrame":"clearTimeout"];if(typeof Zone<"u"&&t&&n){const r=t[Zone.__symbol__("OriginalDelegate")];r&&(t=r);const o=n[Zone.__symbol__("OriginalDelegate")];o&&(n=o)}return{nativeRequestAnimationFrame:t,nativeCancelAnimationFrame:n}}().nativeRequestAnimationFrame,function dT(e){const t=()=>{!function cT(e){e.isCheckStableRunning||-1!==e.lastRequestAnimationFrameId||(e.lastRequestAnimationFrameId=e.nativeRequestAnimationFrame.call(ne,()=>{e.fakeTopEventTask||(e.fakeTopEventTask=Zone.root.scheduleEventTask("fakeTopEventTask",()=>{e.lastRequestAnimationFrameId=-1,ju(e),e.isCheckStableRunning=!0,Hu(e),e.isCheckStableRunning=!1},void 0,()=>{},()=>{})),e.fakeTopEventTask.invoke()}),ju(e))}(e)};e._inner=e._inner.fork({name:"angular",properties:{isAngularZone:!0},onInvokeTask:(n,r,o,i,s,a)=>{try{return My(e),n.invokeTask(o,i,s,a)}finally{(e.shouldCoalesceEventChangeDetection&&"eventTask"===i.type||e.shouldCoalesceRunChangeDetection)&&t(),Ay(e)}},onInvoke:(n,r,o,i,s,a,l)=>{try{return My(e),n.invoke(o,i,s,a,l)}finally{e.shouldCoalesceRunChangeDetection&&t(),Ay(e)}},onHasTask:(n,r,o,i)=>{n.hasTask(o,i),r===o&&("microTask"==i.change?(e._hasPendingMicrotasks=i.microTask,ju(e),Hu(e)):"macroTask"==i.change&&(e.hasPendingMacrotasks=i.macroTask))},onHandleError:(n,r,o,i)=>(n.handleError(o,i),e.runOutsideAngular(()=>e.onError.emit(i)),!1)})}(o)}static isInAngularZone(){return typeof Zone<"u"&&!0===Zone.current.get("isAngularZone")}static assertInAngularZone(){if(!Ae.isInAngularZone())throw new C(909,!1)}static assertNotInAngularZone(){if(Ae.isInAngularZone())throw new C(909,!1)}run(t,n,r){return this._inner.run(t,n,r)}runTask(t,n,r,o){const i=this._inner,s=i.scheduleEventTask("NgZoneEvent: "+o,t,uT,Sy,Sy);try{return i.runTask(s,n,r)}finally{i.cancelTask(s)}}runGuarded(t,n,r){return this._inner.runGuarded(t,n,r)}runOutsideAngular(t){return this._outer.run(t)}}const uT={};function Hu(e){if(0==e._nesting&&!e.hasPendingMicrotasks&&!e.isStable)try{e._nesting++,e.onMicrotaskEmpty.emit(null)}finally{if(e._nesting--,!e.hasPendingMicrotasks)try{e.runOutsideAngular(()=>e.onStable.emit(null))}finally{e.isStable=!0}}}function ju(e){e.hasPendingMicrotasks=!!(e._hasPendingMicrotasks||(e.shouldCoalesceEventChangeDetection||e.shouldCoalesceRunChangeDetection)&&-1!==e.lastRequestAnimationFrameId)}function My(e){e._nesting++,e.isStable&&(e.isStable=!1,e.onUnstable.emit(null))}function Ay(e){e._nesting--,Hu(e)}class fT{constructor(){this.hasPendingMicrotasks=!1,this.hasPendingMacrotasks=!1,this.isStable=!0,this.onUnstable=new xe,this.onMicrotaskEmpty=new xe,this.onStable=new xe,this.onError=new xe}run(t,n,r){return t.apply(n,r)}runGuarded(t,n,r){return t.apply(n,r)}runOutsideAngular(t){return t()}runTask(t,n,r,o){return t.apply(n,r)}}const Iy=new T("",{providedIn:"root",factory:Ty});function Ty(){const e=ae(Ae);let t=!0;return function cC(...e){const t=wd(e),n=function rC(e,t){return"number"==typeof pa(e)?e.pop():t}(e,1/0),r=e;return r.length?1===r.length?Tt(r[0]):function J_(e=1/0){return Cd(aa,e)}(n)(ga(r,t)):Ed}(new $e(o=>{t=e.isStable&&!e.hasPendingMacrotasks&&!e.hasPendingMicrotasks,e.runOutsideAngular(()=>{o.next(t),o.complete()})}),new $e(o=>{let i;e.runOutsideAngular(()=>{i=e.onStable.subscribe(()=>{Ae.assertNotInAngularZone(),queueMicrotask(()=>{!t&&!e.hasPendingMacrotasks&&!e.hasPendingMicrotasks&&(t=!0,o.next(!0))})})});const s=e.onUnstable.subscribe(()=>{Ae.assertInAngularZone(),t&&(t=!1,e.runOutsideAngular(()=>{o.next(!1)}))});return()=>{i.unsubscribe(),s.unsubscribe()}}).pipe(Ad()))}const Ny=new T(""),bs=new T("");let Gu,$u=(()=>{class e{constructor(n,r,o){this._ngZone=n,this.registry=r,this._pendingCount=0,this._isZoneStable=!0,this._didWork=!1,this._callbacks=[],this.taskTrackingZone=null,Gu||(function hT(e){Gu=e}(o),o.addToWindow(r)),this._watchAngularEvents(),n.run(()=>{this.taskTrackingZone=typeof Zone>"u"?null:Zone.current.get("TaskTrackingZone")})}_watchAngularEvents(){this._ngZone.onUnstable.subscribe({next:()=>{this._didWork=!0,this._isZoneStable=!1}}),this._ngZone.runOutsideAngular(()=>{this._ngZone.onStable.subscribe({next:()=>{Ae.assertNotInAngularZone(),queueMicrotask(()=>{this._isZoneStable=!0,this._runCallbacksIfReady()})}})})}increasePendingRequestCount(){return this._pendingCount+=1,this._didWork=!0,this._pendingCount}decreasePendingRequestCount(){if(this._pendingCount-=1,this._pendingCount<0)throw new Error("pending async requests below zero");return this._runCallbacksIfReady(),this._pendingCount}isStable(){return this._isZoneStable&&0===this._pendingCount&&!this._ngZone.hasPendingMacrotasks}_runCallbacksIfReady(){if(this.isStable())queueMicrotask(()=>{for(;0!==this._callbacks.length;){let n=this._callbacks.pop();clearTimeout(n.timeoutId),n.doneCb(this._didWork)}this._didWork=!1});else{let n=this.getPendingTasks();this._callbacks=this._callbacks.filter(r=>!r.updateCb||!r.updateCb(n)||(clearTimeout(r.timeoutId),!1)),this._didWork=!0}}getPendingTasks(){return this.taskTrackingZone?this.taskTrackingZone.macroTasks.map(n=>({source:n.source,creationLocation:n.creationLocation,data:n.data})):[]}addCallback(n,r,o){let i=-1;r&&r>0&&(i=setTimeout(()=>{this._callbacks=this._callbacks.filter(s=>s.timeoutId!==i),n(this._didWork,this.getPendingTasks())},r)),this._callbacks.push({doneCb:n,timeoutId:i,updateCb:o})}whenStable(n,r,o){if(o&&!this.taskTrackingZone)throw new Error('Task tracking zone is required when passing an update callback to whenStable(). Is "zone.js/plugins/task-tracking" loaded?');this.addCallback(n,r,o),this._runCallbacksIfReady()}getPendingRequestCount(){return this._pendingCount}registerApplication(n){this.registry.registerApplication(n,this)}unregisterApplication(n){this.registry.unregisterApplication(n)}findProviders(n,r,o){return[]}}return e.\u0275fac=function(n){return new(n||e)(H(Ae),H(Uu),H(bs))},e.\u0275prov=K({token:e,factory:e.\u0275fac}),e})(),Uu=(()=>{class e{constructor(){this._applications=new Map}registerApplication(n,r){this._applications.set(n,r)}unregisterApplication(n){this._applications.delete(n)}unregisterAllApplications(){this._applications.clear()}getTestability(n){return this._applications.get(n)||null}getAllTestabilities(){return Array.from(this._applications.values())}getAllRootElements(){return Array.from(this._applications.keys())}findTestabilityInTree(n,r=!0){return Gu?.findTestabilityInTree(this,n,r)??null}}return e.\u0275fac=function(n){return new(n||e)},e.\u0275prov=K({token:e,factory:e.\u0275fac,providedIn:"platform"}),e})(),wn=null;const Fy=new T("AllowMultipleToken"),zu=new T("PlatformDestroyListeners"),xy=new T("appBootstrapListener");function Py(e,t,n=[]){const r=`Platform: ${t}`,o=new T(r);return(i=[])=>{let s=qu();if(!s||s.injector.get(Fy,!1)){const a=[...n,...i,{provide:o,useValue:!0}];e?e(a):function mT(e){if(wn&&!wn.get(Fy,!1))throw new C(400,!1);(function Oy(){!function rE(e){rf=e}(()=>{throw new C(600,!1)})})(),wn=e;const t=e.get(ky);(function Ry(e){e.get(Yh,null)?.forEach(n=>n())})(e)}(function Vy(e=[],t){return nn.create({name:t,providers:[{provide:Al,useValue:"platform"},{provide:zu,useValue:new Set([()=>wn=null])},...e]})}(a,r))}return function DT(e){const t=qu();if(!t)throw new C(401,!1);return t}()}}function qu(){return wn?.get(ky)??null}let ky=(()=>{class e{constructor(n){this._injector=n,this._modules=[],this._destroyListeners=[],this._destroyed=!1}bootstrapModuleFactory(n,r){const o=function vT(e="zone.js",t){return"noop"===e?new fT:"zone.js"===e?new Ae(t):e}(r?.ngZone,function Ly(e){return{enableLongStackTrace:!1,shouldCoalesceEventChangeDetection:e?.eventCoalescing??!1,shouldCoalesceRunChangeDetection:e?.runCoalescing??!1}}({eventCoalescing:r?.ngZoneEventCoalescing,runCoalescing:r?.ngZoneRunCoalescing}));return o.run(()=>{const i=function kI(e,t,n){return new Eu(e,t,n)}(n.moduleType,this.injector,function Uy(e){return[{provide:Ae,useFactory:e},{provide:Wi,multi:!0,useFactory:()=>{const t=ae(CT,{optional:!0});return()=>t.initialize()}},{provide:$y,useFactory:_T},{provide:Iy,useFactory:Ty}]}(()=>o)),s=i.injector.get($n,null);return o.runOutsideAngular(()=>{const a=o.onError.subscribe({next:l=>{s.handleError(l)}});i.onDestroy(()=>{Ss(this._modules,i),a.unsubscribe()})}),function By(e,t,n){try{const r=n();return gs(r)?r.catch(o=>{throw t.runOutsideAngular(()=>e.handleError(o)),o}):r}catch(r){throw t.runOutsideAngular(()=>e.handleError(r)),r}}(s,o,()=>{const a=i.injector.get(Bu);return a.runInitializers(),a.donePromise.then(()=>(function lm(e){ft(e,"Expected localeId to be defined"),"string"==typeof e&&(am=e.toLowerCase().replace(/_/g,"-"))}(i.injector.get(ln,Or)||Or),this._moduleDoBootstrap(i),i))})})}bootstrapModule(n,r=[]){const o=Hy({},r);return function pT(e,t,n){const r=new wu(n);return Promise.resolve(r)}(0,0,n).then(i=>this.bootstrapModuleFactory(i,o))}_moduleDoBootstrap(n){const r=n.injector.get(Ho);if(n._bootstrapComponents.length>0)n._bootstrapComponents.forEach(o=>r.bootstrap(o));else{if(!n.instance.ngDoBootstrap)throw new C(-403,!1);n.instance.ngDoBootstrap(r)}this._modules.push(n)}onDestroy(n){this._destroyListeners.push(n)}get injector(){return this._injector}destroy(){if(this._destroyed)throw new C(404,!1);this._modules.slice().forEach(r=>r.destroy()),this._destroyListeners.forEach(r=>r());const n=this._injector.get(zu,null);n&&(n.forEach(r=>r()),n.clear()),this._destroyed=!0}get destroyed(){return this._destroyed}}return e.\u0275fac=function(n){return new(n||e)(H(nn))},e.\u0275prov=K({token:e,factory:e.\u0275fac,providedIn:"platform"}),e})();function Hy(e,t){return Array.isArray(t)?t.reduce(Hy,e):{...e,...t}}let Ho=(()=>{class e{constructor(){this._bootstrapListeners=[],this._runningTick=!1,this._destroyed=!1,this._destroyListeners=[],this._views=[],this.internalErrorHandler=ae($y),this.zoneIsStable=ae(Iy),this.componentTypes=[],this.components=[],this.isStable=ae(oT).hasPendingTasks.pipe(function fC(e,t){return On((n,r)=>{let o=null,i=0,s=!1;const a=()=>s&&!o&&r.complete();n.subscribe(dn(r,l=>{o?.unsubscribe();let u=0;const c=i++;Tt(e(l,c)).subscribe(o=dn(r,d=>r.next(t?t(l,d,c,u++):d),()=>{o=null,a()}))},()=>{s=!0,a()}))})}(n=>n?function dC(...e){return ga(e,wd(e))}(!1):this.zoneIsStable),function hC(e,t=aa){return e=e??pC,On((n,r)=>{let o,i=!0;n.subscribe(dn(r,s=>{const a=t(s);(i||!e(o,a))&&(i=!1,o=a,r.next(s))}))})}(),Ad()),this._injector=ae(mr)}get destroyed(){return this._destroyed}get injector(){return this._injector}bootstrap(n,r){const o=n instanceof rp;if(!this._injector.get(Bu).done)throw!o&&function qr(e){const t=Q(e)||Oe(e)||Ye(e);return null!==t&&t.standalone}(n),new C(405,!1);let s;s=o?n:this._injector.get(ts).resolveComponentFactory(n),this.componentTypes.push(s.componentType);const a=function gT(e){return e.isBoundToModule}(s)?void 0:this._injector.get(Rr),u=s.create(nn.NULL,[],r||s.selector,a),c=u.location.nativeElement,d=u.injector.get(Ny,null);return d?.registerApplication(c),u.onDestroy(()=>{this.detachView(u.hostView),Ss(this.components,u),d?.unregisterApplication(c)}),this._loadComponent(u),u}tick(){if(this._runningTick)throw new C(101,!1);try{this._runningTick=!0;for(let n of this._views)n.detectChanges()}catch(n){this.internalErrorHandler(n)}finally{this._runningTick=!1}}attachView(n){const r=n;this._views.push(r),r.attachToAppRef(this)}detachView(n){const r=n;Ss(this._views,r),r.detachFromAppRef()}_loadComponent(n){this.attachView(n.hostView),this.tick(),this.components.push(n);const r=this._injector.get(xy,[]);r.push(...this._bootstrapListeners),r.forEach(o=>o(n))}ngOnDestroy(){if(!this._destroyed)try{this._destroyListeners.forEach(n=>n()),this._views.slice().forEach(n=>n.destroy())}finally{this._destroyed=!0,this._views=[],this._bootstrapListeners=[],this._destroyListeners=[]}}onDestroy(n){return this._destroyListeners.push(n),()=>Ss(this._destroyListeners,n)}destroy(){if(this._destroyed)throw new C(406,!1);const n=this._injector;n.destroy&&!n.destroyed&&n.destroy()}get viewCount(){return this._views.length}warnIfDestroyed(){}}return e.\u0275fac=function(n){return new(n||e)},e.\u0275prov=K({token:e,factory:e.\u0275fac,providedIn:"root"}),e})();function Ss(e,t){const n=e.indexOf(t);n>-1&&e.splice(n,1)}const $y=new T("",{providedIn:"root",factory:()=>ae($n).handleError.bind(void 0)});function _T(){const e=ae(Ae),t=ae($n);return n=>e.runOutsideAngular(()=>t.handleError(n))}let CT=(()=>{class e{constructor(){this.zone=ae(Ae),this.applicationRef=ae(Ho)}initialize(){this._onMicrotaskEmptySubscription||(this._onMicrotaskEmptySubscription=this.zone.onMicrotaskEmpty.subscribe({next:()=>{this.zone.run(()=>{this.applicationRef.tick()})}}))}ngOnDestroy(){this._onMicrotaskEmptySubscription?.unsubscribe()}}return e.\u0275fac=function(n){return new(n||e)},e.\u0275prov=K({token:e,factory:e.\u0275fac,providedIn:"root"}),e})();class Qy{constructor(){}supports(t){return cs(t)}create(t){return new NT(t)}}const TT=(e,t)=>t;class NT{constructor(t){this.length=0,this._linkedRecords=null,this._unlinkedRecords=null,this._previousItHead=null,this._itHead=null,this._itTail=null,this._additionsHead=null,this._additionsTail=null,this._movesHead=null,this._movesTail=null,this._removalsHead=null,this._removalsTail=null,this._identityChangesHead=null,this._identityChangesTail=null,this._trackByFn=t||TT}forEachItem(t){let n;for(n=this._itHead;null!==n;n=n._next)t(n)}forEachOperation(t){let n=this._itHead,r=this._removalsHead,o=0,i=null;for(;n||r;){const s=!r||n&&n.currentIndex{s=this._trackByFn(o,a),null!==n&&Object.is(n.trackById,s)?(r&&(n=this._verifyReinsertion(n,a,s,o)),Object.is(n.item,a)||this._addIdentityChange(n,a)):(n=this._mismatch(n,a,s,o),r=!0),n=n._next,o++}),this.length=o;return this._truncate(n),this.collection=t,this.isDirty}get isDirty(){return null!==this._additionsHead||null!==this._movesHead||null!==this._removalsHead||null!==this._identityChangesHead}_reset(){if(this.isDirty){let t;for(t=this._previousItHead=this._itHead;null!==t;t=t._next)t._nextPrevious=t._next;for(t=this._additionsHead;null!==t;t=t._nextAdded)t.previousIndex=t.currentIndex;for(this._additionsHead=this._additionsTail=null,t=this._movesHead;null!==t;t=t._nextMoved)t.previousIndex=t.currentIndex;this._movesHead=this._movesTail=null,this._removalsHead=this._removalsTail=null,this._identityChangesHead=this._identityChangesTail=null}}_mismatch(t,n,r,o){let i;return null===t?i=this._itTail:(i=t._prev,this._remove(t)),null!==(t=null===this._unlinkedRecords?null:this._unlinkedRecords.get(r,null))?(Object.is(t.item,n)||this._addIdentityChange(t,n),this._reinsertAfter(t,i,o)):null!==(t=null===this._linkedRecords?null:this._linkedRecords.get(r,o))?(Object.is(t.item,n)||this._addIdentityChange(t,n),this._moveAfter(t,i,o)):t=this._addAfter(new FT(n,r),i,o),t}_verifyReinsertion(t,n,r,o){let i=null===this._unlinkedRecords?null:this._unlinkedRecords.get(r,null);return null!==i?t=this._reinsertAfter(i,t._prev,o):t.currentIndex!=o&&(t.currentIndex=o,this._addToMoves(t,o)),t}_truncate(t){for(;null!==t;){const n=t._next;this._addToRemovals(this._unlink(t)),t=n}null!==this._unlinkedRecords&&this._unlinkedRecords.clear(),null!==this._additionsTail&&(this._additionsTail._nextAdded=null),null!==this._movesTail&&(this._movesTail._nextMoved=null),null!==this._itTail&&(this._itTail._next=null),null!==this._removalsTail&&(this._removalsTail._nextRemoved=null),null!==this._identityChangesTail&&(this._identityChangesTail._nextIdentityChange=null)}_reinsertAfter(t,n,r){null!==this._unlinkedRecords&&this._unlinkedRecords.remove(t);const o=t._prevRemoved,i=t._nextRemoved;return null===o?this._removalsHead=i:o._nextRemoved=i,null===i?this._removalsTail=o:i._prevRemoved=o,this._insertAfter(t,n,r),this._addToMoves(t,r),t}_moveAfter(t,n,r){return this._unlink(t),this._insertAfter(t,n,r),this._addToMoves(t,r),t}_addAfter(t,n,r){return this._insertAfter(t,n,r),this._additionsTail=null===this._additionsTail?this._additionsHead=t:this._additionsTail._nextAdded=t,t}_insertAfter(t,n,r){const o=null===n?this._itHead:n._next;return t._next=o,t._prev=n,null===o?this._itTail=t:o._prev=t,null===n?this._itHead=t:n._next=t,null===this._linkedRecords&&(this._linkedRecords=new Zy),this._linkedRecords.put(t),t.currentIndex=r,t}_remove(t){return this._addToRemovals(this._unlink(t))}_unlink(t){null!==this._linkedRecords&&this._linkedRecords.remove(t);const n=t._prev,r=t._next;return null===n?this._itHead=r:n._next=r,null===r?this._itTail=n:r._prev=n,t}_addToMoves(t,n){return t.previousIndex===n||(this._movesTail=null===this._movesTail?this._movesHead=t:this._movesTail._nextMoved=t),t}_addToRemovals(t){return null===this._unlinkedRecords&&(this._unlinkedRecords=new Zy),this._unlinkedRecords.put(t),t.currentIndex=null,t._nextRemoved=null,null===this._removalsTail?(this._removalsTail=this._removalsHead=t,t._prevRemoved=null):(t._prevRemoved=this._removalsTail,this._removalsTail=this._removalsTail._nextRemoved=t),t}_addIdentityChange(t,n){return t.item=n,this._identityChangesTail=null===this._identityChangesTail?this._identityChangesHead=t:this._identityChangesTail._nextIdentityChange=t,t}}class FT{constructor(t,n){this.item=t,this.trackById=n,this.currentIndex=null,this.previousIndex=null,this._nextPrevious=null,this._prev=null,this._next=null,this._prevDup=null,this._nextDup=null,this._prevRemoved=null,this._nextRemoved=null,this._nextAdded=null,this._nextMoved=null,this._nextIdentityChange=null}}class xT{constructor(){this._head=null,this._tail=null}add(t){null===this._head?(this._head=this._tail=t,t._nextDup=null,t._prevDup=null):(this._tail._nextDup=t,t._prevDup=this._tail,t._nextDup=null,this._tail=t)}get(t,n){let r;for(r=this._head;null!==r;r=r._nextDup)if((null===n||n<=r.currentIndex)&&Object.is(r.trackById,t))return r;return null}remove(t){const n=t._prevDup,r=t._nextDup;return null===n?this._head=r:n._nextDup=r,null===r?this._tail=n:r._prevDup=n,null===this._head}}class Zy{constructor(){this.map=new Map}put(t){const n=t.trackById;let r=this.map.get(n);r||(r=new xT,this.map.set(n,r)),r.add(t)}get(t,n){const o=this.map.get(t);return o?o.get(t,n):null}remove(t){const n=t.trackById;return this.map.get(n).remove(t)&&this.map.delete(n),t}get isEmpty(){return 0===this.map.size}clear(){this.map.clear()}}function Yy(e,t,n){const r=e.previousIndex;if(null===r)return r;let o=0;return n&&r{class e{constructor(n){this.factories=n}static create(n,r){if(null!=r){const o=r.factories.slice();n=n.concat(o)}return new e(n)}static extend(n){return{provide:e,useFactory:r=>e.create(n,r||Xy()),deps:[[e,new tl,new el]]}}find(n){const r=this.factories.find(o=>o.supports(n));if(null!=r)return r;throw new C(901,!1)}}return e.\u0275prov=K({token:e,providedIn:"root",factory:Xy}),e})();const kT=Py(null,"core",[]);let LT=(()=>{class e{constructor(n){}}return e.\u0275fac=function(n){return new(n||e)(H(Ho))},e.\u0275mod=Zt({type:e}),e.\u0275inj=Nt({}),e})(),ec=null;function $o(){return ec}class ZT{}const un=new T("DocumentToken");class kN{constructor(t,n,r,o){this.$implicit=t,this.ngForOf=n,this.index=r,this.count=o}get first(){return 0===this.index}get last(){return this.index===this.count-1}get even(){return this.index%2==0}get odd(){return!this.even}}let mD=(()=>{class e{set ngForOf(n){this._ngForOf=n,this._ngForOfDirty=!0}set ngForTrackBy(n){this._trackByFn=n}get ngForTrackBy(){return this._trackByFn}constructor(n,r,o){this._viewContainer=n,this._template=r,this._differs=o,this._ngForOf=null,this._ngForOfDirty=!0,this._differ=null}set ngForTemplate(n){n&&(this._template=n)}ngDoCheck(){if(this._ngForOfDirty){this._ngForOfDirty=!1;const n=this._ngForOf;!this._differ&&n&&(this._differ=this._differs.find(n).create(this.ngForTrackBy))}if(this._differ){const n=this._differ.diff(this._ngForOf);n&&this._applyChanges(n)}}_applyChanges(n){const r=this._viewContainer;n.forEachOperation((o,i,s)=>{if(null==o.previousIndex)r.createEmbeddedView(this._template,new kN(o.item,this._ngForOf,-1,-1),null===s?void 0:s);else if(null==s)r.remove(null===i?void 0:i);else if(null!==i){const a=r.get(i);r.move(a,s),yD(a,o)}});for(let o=0,i=r.length;o{yD(r.get(o.currentIndex),o)})}static ngTemplateContextGuard(n,r){return!0}}return e.\u0275fac=function(n){return new(n||e)(_(Gt),_(an),_(Is))},e.\u0275dir=P({type:e,selectors:[["","ngFor","","ngForOf",""]],inputs:{ngForOf:"ngForOf",ngForTrackBy:"ngForTrackBy",ngForTemplate:"ngForTemplate"},standalone:!0}),e})();function yD(e,t){e.context.$implicit=t.item}let DD=(()=>{class e{constructor(n,r){this._viewContainer=n,this._context=new LN,this._thenTemplateRef=null,this._elseTemplateRef=null,this._thenViewRef=null,this._elseViewRef=null,this._thenTemplateRef=r}set ngIf(n){this._context.$implicit=this._context.ngIf=n,this._updateView()}set ngIfThen(n){vD("ngIfThen",n),this._thenTemplateRef=n,this._thenViewRef=null,this._updateView()}set ngIfElse(n){vD("ngIfElse",n),this._elseTemplateRef=n,this._elseViewRef=null,this._updateView()}_updateView(){this._context.$implicit?this._thenViewRef||(this._viewContainer.clear(),this._elseViewRef=null,this._thenTemplateRef&&(this._thenViewRef=this._viewContainer.createEmbeddedView(this._thenTemplateRef,this._context))):this._elseViewRef||(this._viewContainer.clear(),this._thenViewRef=null,this._elseTemplateRef&&(this._elseViewRef=this._viewContainer.createEmbeddedView(this._elseTemplateRef,this._context)))}static ngTemplateContextGuard(n,r){return!0}}return e.\u0275fac=function(n){return new(n||e)(_(Gt),_(an))},e.\u0275dir=P({type:e,selectors:[["","ngIf",""]],inputs:{ngIf:"ngIf",ngIfThen:"ngIfThen",ngIfElse:"ngIfElse"},standalone:!0}),e})();class LN{constructor(){this.$implicit=null,this.ngIf=null}}function vD(e,t){if(t&&!t.createEmbeddedView)throw new Error(`${e} must be a TemplateRef, but received '${we(t)}'.`)}let uF=(()=>{class e{}return e.\u0275fac=function(n){return new(n||e)},e.\u0275mod=Zt({type:e}),e.\u0275inj=Nt({}),e})();function wD(e){return"server"===e}class kF extends ZT{constructor(){super(...arguments),this.supportsDOMEvents=!0}}class yc extends kF{static makeCurrent(){!function QT(e){ec||(ec=e)}(new yc)}onAndCancel(t,n,r){return t.addEventListener(n,r),()=>{t.removeEventListener(n,r)}}dispatchEvent(t,n){t.dispatchEvent(n)}remove(t){t.parentNode&&t.parentNode.removeChild(t)}createElement(t,n){return(n=n||this.getDefaultDocument()).createElement(t)}createHtmlDocument(){return document.implementation.createHTMLDocument("fakeTitle")}getDefaultDocument(){return document}isElementNode(t){return t.nodeType===Node.ELEMENT_NODE}isShadowRoot(t){return t instanceof DocumentFragment}getGlobalEventTarget(t,n){return"window"===n?window:"document"===n?t:"body"===n?t.body:null}getBaseHref(t){const n=function LF(){return qo=qo||document.querySelector("base"),qo?qo.getAttribute("href"):null}();return null==n?null:function BF(e){js=js||document.createElement("a"),js.setAttribute("href",e);const t=js.pathname;return"/"===t.charAt(0)?t:`/${t}`}(n)}resetBaseElement(){qo=null}getUserAgent(){return window.navigator.userAgent}getCookie(t){return function RN(e,t){t=encodeURIComponent(t);for(const n of e.split(";")){const r=n.indexOf("="),[o,i]=-1==r?[n,""]:[n.slice(0,r),n.slice(r+1)];if(o.trim()===t)return decodeURIComponent(i)}return null}(document.cookie,t)}}let js,qo=null,jF=(()=>{class e{build(){return new XMLHttpRequest}}return e.\u0275fac=function(n){return new(n||e)},e.\u0275prov=K({token:e,factory:e.\u0275fac}),e})();const Dc=new T("EventManagerPlugins");let TD=(()=>{class e{constructor(n,r){this._zone=r,this._eventNameToPlugin=new Map,n.forEach(o=>{o.manager=this}),this._plugins=n.slice().reverse()}addEventListener(n,r,o){return this._findPluginFor(r).addEventListener(n,r,o)}getZone(){return this._zone}_findPluginFor(n){let r=this._eventNameToPlugin.get(n);if(r)return r;if(r=this._plugins.find(i=>i.supports(n)),!r)throw new C(5101,!1);return this._eventNameToPlugin.set(n,r),r}}return e.\u0275fac=function(n){return new(n||e)(H(Dc),H(Ae))},e.\u0275prov=K({token:e,factory:e.\u0275fac}),e})();class ND{constructor(t){this._doc=t}}const vc="ng-app-id";let FD=(()=>{class e{constructor(n,r,o,i={}){this.doc=n,this.appId=r,this.nonce=o,this.platformId=i,this.styleRef=new Map,this.hostNodes=new Set,this.styleNodesInDOM=this.collectServerRenderedStyles(),this.platformIsServer=wD(i),this.resetHostNodes()}addStyles(n){for(const r of n)1===this.changeUsageCount(r,1)&&this.onStyleAdded(r)}removeStyles(n){for(const r of n)this.changeUsageCount(r,-1)<=0&&this.onStyleRemoved(r)}ngOnDestroy(){const n=this.styleNodesInDOM;n&&(n.forEach(r=>r.remove()),n.clear());for(const r of this.getAllStyles())this.onStyleRemoved(r);this.resetHostNodes()}addHost(n){this.hostNodes.add(n);for(const r of this.getAllStyles())this.addStyleToHost(n,r)}removeHost(n){this.hostNodes.delete(n)}getAllStyles(){return this.styleRef.keys()}onStyleAdded(n){for(const r of this.hostNodes)this.addStyleToHost(r,n)}onStyleRemoved(n){const r=this.styleRef;r.get(n)?.elements?.forEach(o=>o.remove()),r.delete(n)}collectServerRenderedStyles(){const n=this.doc.head?.querySelectorAll(`style[${vc}="${this.appId}"]`);if(n?.length){const r=new Map;return n.forEach(o=>{null!=o.textContent&&r.set(o.textContent,o)}),r}return null}changeUsageCount(n,r){const o=this.styleRef;if(o.has(n)){const i=o.get(n);return i.usage+=r,i.usage}return o.set(n,{usage:r,elements:[]}),r}getStyleElement(n,r){const o=this.styleNodesInDOM,i=o?.get(r);if(i?.parentNode===n)return o.delete(r),i.removeAttribute(vc),i;{const s=this.doc.createElement("style");return this.nonce&&s.setAttribute("nonce",this.nonce),s.textContent=r,this.platformIsServer&&s.setAttribute(vc,this.appId),s}}addStyleToHost(n,r){const o=this.getStyleElement(n,r);n.appendChild(o);const i=this.styleRef,s=i.get(r)?.elements;s?s.push(o):i.set(r,{elements:[o],usage:1})}resetHostNodes(){const n=this.hostNodes;n.clear(),n.add(this.doc.head)}}return e.\u0275fac=function(n){return new(n||e)(H(un),H(Yi),H(Kh,8),H(Dr))},e.\u0275prov=K({token:e,factory:e.\u0275fac}),e})();const _c={svg:"http://www.w3.org/2000/svg",xhtml:"http://www.w3.org/1999/xhtml",xlink:"http://www.w3.org/1999/xlink",xml:"http://www.w3.org/XML/1998/namespace",xmlns:"http://www.w3.org/2000/xmlns/",math:"http://www.w3.org/1998/MathML/"},Cc=/%COMP%/g,zF=new T("RemoveStylesOnCompDestroy",{providedIn:"root",factory:()=>!1});function OD(e,t){return t.map(n=>n.replace(Cc,e))}let RD=(()=>{class e{constructor(n,r,o,i,s,a,l,u=null){this.eventManager=n,this.sharedStylesHost=r,this.appId=o,this.removeStylesOnCompDestroy=i,this.doc=s,this.platformId=a,this.ngZone=l,this.nonce=u,this.rendererByCompId=new Map,this.platformIsServer=wD(a),this.defaultRenderer=new Ec(n,s,l,this.platformIsServer)}createRenderer(n,r){if(!n||!r)return this.defaultRenderer;this.platformIsServer&&r.encapsulation===it.ShadowDom&&(r={...r,encapsulation:it.Emulated});const o=this.getOrCreateRenderer(n,r);return o instanceof VD?o.applyToHost(n):o instanceof wc&&o.applyStyles(),o}getOrCreateRenderer(n,r){const o=this.rendererByCompId;let i=o.get(r.id);if(!i){const s=this.doc,a=this.ngZone,l=this.eventManager,u=this.sharedStylesHost,c=this.removeStylesOnCompDestroy,d=this.platformIsServer;switch(r.encapsulation){case it.Emulated:i=new VD(l,u,r,this.appId,c,s,a,d);break;case it.ShadowDom:return new ZF(l,u,n,r,s,a,this.nonce,d);default:i=new wc(l,u,r,c,s,a,d)}i.onDestroy=()=>o.delete(r.id),o.set(r.id,i)}return i}ngOnDestroy(){this.rendererByCompId.clear()}}return e.\u0275fac=function(n){return new(n||e)(H(TD),H(FD),H(Yi),H(zF),H(un),H(Dr),H(Ae),H(Kh))},e.\u0275prov=K({token:e,factory:e.\u0275fac}),e})();class Ec{constructor(t,n,r,o){this.eventManager=t,this.doc=n,this.ngZone=r,this.platformIsServer=o,this.data=Object.create(null),this.destroyNode=null}destroy(){}createElement(t,n){return n?this.doc.createElementNS(_c[n]||n,t):this.doc.createElement(t)}createComment(t){return this.doc.createComment(t)}createText(t){return this.doc.createTextNode(t)}appendChild(t,n){(PD(t)?t.content:t).appendChild(n)}insertBefore(t,n,r){t&&(PD(t)?t.content:t).insertBefore(n,r)}removeChild(t,n){t&&t.removeChild(n)}selectRootElement(t,n){let r="string"==typeof t?this.doc.querySelector(t):t;if(!r)throw new C(-5104,!1);return n||(r.textContent=""),r}parentNode(t){return t.parentNode}nextSibling(t){return t.nextSibling}setAttribute(t,n,r,o){if(o){n=o+":"+n;const i=_c[o];i?t.setAttributeNS(i,n,r):t.setAttribute(n,r)}else t.setAttribute(n,r)}removeAttribute(t,n,r){if(r){const o=_c[r];o?t.removeAttributeNS(o,n):t.removeAttribute(`${r}:${n}`)}else t.removeAttribute(n)}addClass(t,n){t.classList.add(n)}removeClass(t,n){t.classList.remove(n)}setStyle(t,n,r,o){o&(tt.DashCase|tt.Important)?t.style.setProperty(n,r,o&tt.Important?"important":""):t.style[n]=r}removeStyle(t,n,r){r&tt.DashCase?t.style.removeProperty(n):t.style[n]=""}setProperty(t,n,r){t[n]=r}setValue(t,n){t.nodeValue=n}listen(t,n,r){if("string"==typeof t&&!(t=$o().getGlobalEventTarget(this.doc,t)))throw new Error(`Unsupported event target ${t} for event ${n}`);return this.eventManager.addEventListener(t,n,this.decoratePreventDefault(r))}decoratePreventDefault(t){return n=>{if("__ngUnwrap__"===n)return t;!1===(this.platformIsServer?this.ngZone.runGuarded(()=>t(n)):t(n))&&n.preventDefault()}}}function PD(e){return"TEMPLATE"===e.tagName&&void 0!==e.content}class ZF extends Ec{constructor(t,n,r,o,i,s,a,l){super(t,i,s,l),this.sharedStylesHost=n,this.hostEl=r,this.shadowRoot=r.attachShadow({mode:"open"}),this.sharedStylesHost.addHost(this.shadowRoot);const u=OD(o.id,o.styles);for(const c of u){const d=document.createElement("style");a&&d.setAttribute("nonce",a),d.textContent=c,this.shadowRoot.appendChild(d)}}nodeOrShadowRoot(t){return t===this.hostEl?this.shadowRoot:t}appendChild(t,n){return super.appendChild(this.nodeOrShadowRoot(t),n)}insertBefore(t,n,r){return super.insertBefore(this.nodeOrShadowRoot(t),n,r)}removeChild(t,n){return super.removeChild(this.nodeOrShadowRoot(t),n)}parentNode(t){return this.nodeOrShadowRoot(super.parentNode(this.nodeOrShadowRoot(t)))}destroy(){this.sharedStylesHost.removeHost(this.shadowRoot)}}class wc extends Ec{constructor(t,n,r,o,i,s,a,l){super(t,i,s,a),this.sharedStylesHost=n,this.removeStylesOnCompDestroy=o,this.rendererUsageCount=0,this.styles=l?OD(l,r.styles):r.styles}applyStyles(){this.sharedStylesHost.addStyles(this.styles),this.rendererUsageCount++}destroy(){this.removeStylesOnCompDestroy&&(this.sharedStylesHost.removeStyles(this.styles),this.rendererUsageCount--,0===this.rendererUsageCount&&this.onDestroy?.())}}class VD extends wc{constructor(t,n,r,o,i,s,a,l){const u=o+"-"+r.id;super(t,n,r,i,s,a,l,u),this.contentAttr=function qF(e){return"_ngcontent-%COMP%".replace(Cc,e)}(u),this.hostAttr=function WF(e){return"_nghost-%COMP%".replace(Cc,e)}(u)}applyToHost(t){this.applyStyles(),this.setAttribute(t,this.hostAttr,"")}createElement(t,n){const r=super.createElement(t,n);return super.setAttribute(r,this.contentAttr,""),r}}let YF=(()=>{class e extends ND{constructor(n){super(n)}supports(n){return!0}addEventListener(n,r,o){return n.addEventListener(r,o,!1),()=>this.removeEventListener(n,r,o)}removeEventListener(n,r,o){return n.removeEventListener(r,o)}}return e.\u0275fac=function(n){return new(n||e)(H(un))},e.\u0275prov=K({token:e,factory:e.\u0275fac}),e})();const kD=["alt","control","meta","shift"],KF={"\b":"Backspace","\t":"Tab","\x7f":"Delete","\x1b":"Escape",Del:"Delete",Esc:"Escape",Left:"ArrowLeft",Right:"ArrowRight",Up:"ArrowUp",Down:"ArrowDown",Menu:"ContextMenu",Scroll:"ScrollLock",Win:"OS"},XF={alt:e=>e.altKey,control:e=>e.ctrlKey,meta:e=>e.metaKey,shift:e=>e.shiftKey};let JF=(()=>{class e extends ND{constructor(n){super(n)}supports(n){return null!=e.parseEventName(n)}addEventListener(n,r,o){const i=e.parseEventName(r),s=e.eventCallback(i.fullKey,o,this.manager.getZone());return this.manager.getZone().runOutsideAngular(()=>$o().onAndCancel(n,i.domEventName,s))}static parseEventName(n){const r=n.toLowerCase().split("."),o=r.shift();if(0===r.length||"keydown"!==o&&"keyup"!==o)return null;const i=e._normalizeKey(r.pop());let s="",a=r.indexOf("code");if(a>-1&&(r.splice(a,1),s="code."),kD.forEach(u=>{const c=r.indexOf(u);c>-1&&(r.splice(c,1),s+=u+".")}),s+=i,0!=r.length||0===i.length)return null;const l={};return l.domEventName=o,l.fullKey=s,l}static matchEventFullKeyCode(n,r){let o=KF[n.key]||n.key,i="";return r.indexOf("code.")>-1&&(o=n.code,i="code."),!(null==o||!o)&&(o=o.toLowerCase()," "===o?o="space":"."===o&&(o="dot"),kD.forEach(s=>{s!==o&&(0,XF[s])(n)&&(i+=s+".")}),i+=o,i===r)}static eventCallback(n,r,o){return i=>{e.matchEventFullKeyCode(i,n)&&o.runGuarded(()=>r(i))}}static _normalizeKey(n){return"esc"===n?"escape":n}}return e.\u0275fac=function(n){return new(n||e)(H(un))},e.\u0275prov=K({token:e,factory:e.\u0275fac}),e})();const rx=Py(kT,"browser",[{provide:Dr,useValue:"browser"},{provide:Yh,useValue:function ex(){yc.makeCurrent()},multi:!0},{provide:un,useFactory:function nx(){return function eb(e){vl=e}(document),document},deps:[]}]),ox=new T(""),HD=[{provide:bs,useClass:class HF{addToWindow(t){ne.getAngularTestability=(r,o=!0)=>{const i=t.findTestabilityInTree(r,o);if(null==i)throw new C(5103,!1);return i},ne.getAllAngularTestabilities=()=>t.getAllTestabilities(),ne.getAllAngularRootElements=()=>t.getAllRootElements(),ne.frameworkStabilizers||(ne.frameworkStabilizers=[]),ne.frameworkStabilizers.push(r=>{const o=ne.getAllAngularTestabilities();let i=o.length,s=!1;const a=function(l){s=s||l,i--,0==i&&r(s)};o.forEach(l=>{l.whenStable(a)})})}findTestabilityInTree(t,n,r){return null==n?null:t.getTestability(n)??(r?$o().isShadowRoot(n)?this.findTestabilityInTree(t,n.host,!0):this.findTestabilityInTree(t,n.parentElement,!0):null)}},deps:[]},{provide:Ny,useClass:$u,deps:[Ae,Uu,bs]},{provide:$u,useClass:$u,deps:[Ae,Uu,bs]}],jD=[{provide:Al,useValue:"root"},{provide:$n,useFactory:function tx(){return new $n},deps:[]},{provide:Dc,useClass:YF,multi:!0,deps:[un,Ae,Dr]},{provide:Dc,useClass:JF,multi:!0,deps:[un]},RD,FD,TD,{provide:ip,useExisting:RD},{provide:class pF{},useClass:jF,deps:[]},[]];let ix=(()=>{class e{constructor(n){}static withServerTransition(n){return{ngModule:e,providers:[{provide:Yi,useValue:n.appId}]}}}return e.\u0275fac=function(n){return new(n||e)(H(ox,12))},e.\u0275mod=Zt({type:e}),e.\u0275inj=Nt({providers:[...jD,...HD],imports:[uF,LT]}),e})();typeof window<"u"&&window;let GD=(()=>{class e{}return e.\u0275fac=function(n){return new(n||e)},e.\u0275prov=K({token:e,factory:function(n){let r=null;return r=n?new(n||e):H(zD),r},providedIn:"root"}),e})(),zD=(()=>{class e extends GD{constructor(n){super(),this._doc=n}sanitize(n,r){if(null==r)return null;switch(n){case ie.NONE:return r;case ie.HTML:return Bt(r,"HTML")?ct(r):Bh(this._doc,String(r)).toString();case ie.STYLE:return Bt(r,"Style")?ct(r):r;case ie.SCRIPT:if(Bt(r,"Script"))return ct(r);throw new C(5200,!1);case ie.URL:return Bt(r,"URL")?ct(r):zi(String(r));case ie.RESOURCE_URL:if(Bt(r,"ResourceURL"))return ct(r);throw new C(5201,!1);default:throw new C(5202,!1)}}bypassSecurityTrustHtml(n){return function ab(e){return new tb(e)}(n)}bypassSecurityTrustStyle(n){return function lb(e){return new nb(e)}(n)}bypassSecurityTrustScript(n){return function ub(e){return new rb(e)}(n)}bypassSecurityTrustUrl(n){return function cb(e){return new ob(e)}(n)}bypassSecurityTrustResourceUrl(n){return function db(e){return new ib(e)}(n)}}return e.\u0275fac=function(n){return new(n||e)(H(un))},e.\u0275prov=K({token:e,factory:function(n){let r=null;return r=n?new n:function dx(e){return new zD(e.get(un))}(H(nn)),r},providedIn:"root"}),e})();function WD(e,t,n,r,o,i,s){try{var a=e[i](s),l=a.value}catch(u){return void n(u)}a.done?t(l):Promise.resolve(l).then(r,o)}function $s(e){return function(){var t=this,n=arguments;return new Promise(function(r,o){var i=e.apply(t,n);function s(l){WD(i,r,o,s,a,"next",l)}function a(l){WD(i,r,o,s,a,"throw",l)}s(void 0)})}}class Dt extends jr{constructor(){super(...arguments),this._value=null,this._hasValue=!1,this._isComplete=!1}_checkFinalizedStatuses(t){const{hasError:n,_hasValue:r,_value:o,thrownError:i,isStopped:s,_isComplete:a}=this;n?t.error(i):(s||a)&&(r&&t.next(o),t.complete())}next(t){this.isStopped||(this._value=t,this._hasValue=!0)}complete(){const{_hasValue:t,_value:n,_isComplete:r}=this;r||(this._isComplete=!0,t&&super.next(n),super.complete())}}const fx=["video"],hx=["canvas"],px=["resultsPanel"];var M=(()=>((M=M||{})[M.ScannerQRCode_NONE=0]="ScannerQRCode_NONE",M[M.ScannerQRCode_PARTIAL=1]="ScannerQRCode_PARTIAL",M[M.ScannerQRCode_EAN2=2]="ScannerQRCode_EAN2",M[M.ScannerQRCode_EAN5=5]="ScannerQRCode_EAN5",M[M.ScannerQRCode_EAN8=8]="ScannerQRCode_EAN8",M[M.ScannerQRCode_UPCE=9]="ScannerQRCode_UPCE",M[M.ScannerQRCode_ISBN10=10]="ScannerQRCode_ISBN10",M[M.ScannerQRCode_UPCA=12]="ScannerQRCode_UPCA",M[M.ScannerQRCode_EAN13=13]="ScannerQRCode_EAN13",M[M.ScannerQRCode_ISBN13=14]="ScannerQRCode_ISBN13",M[M.ScannerQRCode_COMPOSITE=15]="ScannerQRCode_COMPOSITE",M[M.ScannerQRCode_I25=25]="ScannerQRCode_I25",M[M.ScannerQRCode_DATABAR=34]="ScannerQRCode_DATABAR",M[M.ScannerQRCode_DATABAR_EXP=35]="ScannerQRCode_DATABAR_EXP",M[M.ScannerQRCode_CODABAR=38]="ScannerQRCode_CODABAR",M[M.ScannerQRCode_CODE39=39]="ScannerQRCode_CODE39",M[M.ScannerQRCode_PDF417=57]="ScannerQRCode_PDF417",M[M.ScannerQRCode_QRCODE=64]="ScannerQRCode_QRCODE",M[M.ScannerQRCode_SQCODE=80]="ScannerQRCode_SQCODE",M[M.ScannerQRCode_CODE93=93]="ScannerQRCode_CODE93",M[M.ScannerQRCode_CODE128=128]="ScannerQRCode_CODE128",M[M.ScannerQRCode_SYMBOL=255]="ScannerQRCode_SYMBOL",M[M.ScannerQRCode_ADDON2=512]="ScannerQRCode_ADDON2",M[M.ScannerQRCode_ADDON5=1280]="ScannerQRCode_ADDON5",M[M.ScannerQRCode_ADDON=1792]="ScannerQRCode_ADDON",M))();const Mc="assets/wasm/index.js",Wo="https://cdn.jsdelivr.net/npm/ngx-scanner-qrcode@1.7.3/wasm/index.js",ZD={audio:!1,video:!0},Ac={lineWidth:1,strokeStyle:"green",fillStyle:"#55f02880"},Ic={font:"15px serif",strokeStyle:"#fff0",fillStyle:"#ff0000"},He={src:"",fps:30,vibrate:300,decode:"utf-8",unScan:!1,isBeep:!0,isMasked:!0,loadWasmUrl:"",symbolType:[M.ScannerQRCode_NONE],constraints:ZD,canvasStyles:[Ac,Ic]};var Us=()=>"zbarWasm"in window;const W=(e,t,n)=>{n?e.error(n):e.next(t),e.complete()},Tc=(e=!1)=>{if(!1===e)return;const t=new Audio("data:audio/mpeg;base64,SUQzBAAAAAAAI1RTU0UAAAAPAAADTGF2ZjU4LjI5LjEwMAAAAAAAAAAAAAAA/+M4wAAAAAAAAAAAAEluZm8AAAAPAAAABQAAAkAAgICAgICAgICAgICAgICAgICAgKCgoKCgoKCgoKCgoKCgoKCgoKCgwMDAwMDAwMDAwMDAwMDAwMDAwMDg4ODg4ODg4ODg4ODg4ODg4ODg4P//////////////////////////AAAAAExhdmM1OC41NAAAAAAAAAAAAAAAACQEUQAAAAAAAAJAk0uXRQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA/+MYxAANQAbGeUEQAAHZYZ3fASqD4P5TKBgocg+Bw/8+CAYBA4XB9/4EBAEP4nB9+UOf/6gfUCAIKyjgQ/Kf//wfswAAAwQA/+MYxAYOqrbdkZGQAMA7DJLCsQxNOij///////////+tv///3RWiZGBEhsf/FO/+LoCSFs1dFVS/g8f/4Mhv0nhqAieHleLy/+MYxAYOOrbMAY2gABf/////////////////usPJ66R0wI4boY9/8jQYg//g2SPx1M0N3Z0kVJLIs///Uw4aMyvHJJYmPBYG/+MYxAgPMALBucAQAoGgaBoFQVBUFQWDv6gZBUFQVBUGgaBr5YSgqCoKhIGg7+IQVBUFQVBoGga//SsFSoKnf/iVTEFNRTMu/+MYxAYAAANIAAAAADEwMFVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVV");t.oncanplaythrough=()=>{const n=t.play();n&&n.catch(r=>{})}},YD=(e,t,n,r)=>{let o,i,s=t.width,a=t.height,l=s/a,u=parseInt(getComputedStyle(t).width),c=parseInt(getComputedStyle(t).height),d=u/c;n.innerHTML="",l>d?(o=u/s,i=u/l/a):(i=c/a,o=c*l/s);for(let f=0;fd?(p.style.top=Tn*i+.5*(c-u/l)+"px",p.style.left=qt*o+"px",p.width=(In-qt)*o,p.height=(Xo-Tn)*o):(p.style.top=Tn*i+"px",p.style.left=qt*o+.5*(u-c*l)+"px",p.width=(In-qt)*i,p.height=(Xo-Tn)*i);for(const ue in r[0])m[ue]=r[0][ue];const Kc=[];for(let ue=0;uewindow.innerWidth?.9*window.innerWidth:s)+"px",ue.style.borderRadius=`clamp(1px, ${o*E-10}px, 3px)`,ue.style.paddingBlock=`clamp(1px, ${o*E-10}px, 3px)`,ue.style.paddingInline=`clamp(2.5px, ${o*E-6}px, 10px)`;const ea=``,ta=(new DOMParser).parseFromString(ea,"application/xml"),Xc=ue.ownerDocument.importNode(ta.documentElement,!0);Xc.style.marginLeft=`clamp(1px, ${o*E-10}px, 3px)`,ue.appendChild(Xc),Xc.addEventListener("click",()=>window.navigator.clipboard.writeText(h.value)),ue.addEventListener("click",()=>window.navigator.clipboard.writeText(h.value));const Nn=document.createElement("div");Nn.setAttribute("class","qrcode-tooltip"),Nn.appendChild(ue),i=c/a,o=c*l/s,Nn.style.fontSize=o*E+"px",Nn.style.top=Tn*i+"px",Nn.style.left=qt*o+.5*(u-c*l)+"px",Nn.style.width=(In-qt)*i+"px",Nn.style.height=(Xo-Tn)*i+"px";const Zn=document.createElement("span");Zn.innerText=h.value,Zn.style.top=Tn*i+-20*i+"px",Zn.style.left=qt*o+.5*(u-c*l)+"px";const WO=r[1]?.font?.split(" ")?.[1];Zn.style.fontFamily=WO,Zn.style.fontSize=o*E+"px",Zn.style.color=r?.[1]?.fillStyle,n?.appendChild(Nn),n?.appendChild(Zn)}n?.appendChild(p)}},KD=(e,t)=>new Promise((n,r)=>e.toBlob(o=>n(o),t)),XD=(e=[],t,n,r,o=new Dt)=>(JD(e,n,r).then(i=>{Promise.all(Object.assign([],i).map(s=>((e,t)=>{let n=t?.decode??He.decode,r=2===t?.canvasStyles?.length?t?.canvasStyles:[Ac,Ic],o=t?.isBeep??He.isBeep,i=t?.isMasked??He.isMasked,s=t?.unScan??He.unScan,a=t?.symbolType??He.symbolType;return new Promise((l,u)=>{const c=new FileReader;c.onload=()=>{const d={name:e.name,file:e,url:URL.createObjectURL(e)},f=new Image;f.setAttribute("crossOrigin","anonymous"),f.onload=$s(function*(){const h=document.createElement("canvas");h.width=f.naturalWidth||f.width,h.height=f.naturalHeight||f.height;const p=h.getContext("2d");p.drawImage(f,0,0,h.width,h.height);const m=p.getImageData(0,0,h.width,h.height);if(s)return l(Object.assign({},d,{data:[],canvas:h}));if(Us()){let y=yield zbarWasm.scanImageData(m);if(a?.some(g=>g.toString()!==M.ScannerQRCode_NONE.toString())&&(y=y.filter(g=>{const E=g.typeName.replace("ZBAR","ScannerQRCode");return a?.some(A=>A.toString()===M[E].toString())})),y?.length){y.forEach(A=>A.value=A.decode(n?.toLocaleLowerCase())),i&&((e,t,n)=>{let r=t.getContext("2d",{willReadFrequently:!0});for(let o=0;o{for(const S in n[0])r[S]=n[0][S];const g=[];for(let S=0;S{const g=n[1]?.font?.split(" ")?.[1];y.height=t.height,y.width=t.width;let E=y.getContext("2d",{willReadFrequently:!0});E.font=u+"px "+g;for(const S in n[1])E[S]=n[1][S];Ex(E,i.value,h,p-5)};m(),v(),r.drawImage(y,0,0)}})(y,h,r);const g=yield KD(h),E=URL.createObjectURL(g);l(Object.assign({},d,{data:y,url:E,canvas:h,file:(A=g,me=d.name,new File([A],me,{lastModified:(new Date).getTime(),type:A.type}))})),Tc(o)}else l(Object.assign({},d,{data:y,canvas:h}))}var A,me}),f.src=d.url},c.onerror=d=>u(d),c.readAsDataURL(e)})})(s,t))).then(s=>{W(o,s)}).catch(s=>W(o,null,s))}),o),Ex=(e,t,n,r)=>{let o=1.2*e.measureText("M").width,i=t.split("\n");for(var s=0;s{if(e.length&&(t<100||n<100)){const r=[];return new Promise((o,i)=>{for(const s of e){const a=new Image,l=new FileReader;l.onload=function(u){a.onload=function(){const c=document.createElement("canvas"),d=c.getContext("2d"),f=Math.round(a.width*(t/100)),h=Math.round(a.height*(t/100));c.width=f,c.height=h,d.drawImage(a,0,0,f,h),c.toBlob(p=>{const m=new File([p],s.name,{type:s.type});r.push(m),e.length===r.length&&o(r)},s.type,n/100)},a.src=u.target.result},l.onerror=u=>i(u),l.readAsDataURL(s)}})}return Promise.resolve(e)},ev=e=>{Object.assign([],e.childNodes).forEach(t=>e.removeChild(t))},Nc=(e,t)=>{e.style.width=t.offsetWidth+"px",e.style.height=t.offsetHeight+"px"},tv=(e=300)=>{e&&bx()&&window?.navigator?.vibrate(e)},bx=()=>{const e=navigator.userAgent||navigator.vendor||window.opera;return!(!/(android|bb\d+|meego).+mobile|avantgo|bada\/|blackberry|blazer|compal|elaine|fennec|hiptop|iemobile|ip(hone|od)|iris|kindle|lge |maemo|midp|mmp|mobile.+firefox|netfront|opera m(ob|in)i|palm( os)?|phone|p(ixi|re)\/|plucker|pocket|psp|series(4|6)0|symbian|treo|up\.(browser|link)|vodafone|wap|windows ce|xda|xiino|android|ipad|playbook|silk/i.test(e)&&!/1207|6310|6590|3gso|4thp|50[1-6]i|770s|802s|a wa|abac|ac(er|oo|s-)|ai(ko|rn)|al(av|ca|co)|amoi|an(ex|ny|yw)|aptu|ar(ch|go)|as(te|us)|attw|au(di|-m|r |s )|avan|be(ck|ll|nq)|bi(lb|rd)|bl(ac|az)|br(e|v)w|bumb|bw-(n|u)|c55\/|capi|ccwa|cdm-|cell|chtm|cldc|cmd-|co(mp|nd)|craw|da(it|ll|ng)|dbte|dc-s|devi|dica|dmob|do(c|p)o|ds(12|-d)|el(49|ai)|em(l2|ul)|er(ic|k0)|esl8|ez([4-7]0|os|wa|ze)|fetc|fly(-|_)|g1 u|g560|gene|gf-5|g-mo|go(\.w|od)|gr(ad|un)|haie|hcit|hd-(m|p|t)|hei-|hi(pt|ta)|hp( i|ip)|hs-c|ht(c(-| |_|a|g|p|s|t)|tp)|hu(aw|tc)|i-(20|go|ma)|i230|iac( |-|\/)|ibro|idea|ig01|ikom|im1k|inno|ipaq|iris|ja(t|v)a|jbro|jemu|jigs|kddi|keji|kgt( |\/)|klon|kpt |kwc-|kyo(c|k)|le(no|xi)|lg( g|\/(k|l|u)|50|54|-[a-w])|libw|lynx|m1-w|m3ga|m50\/|ma(te|ui|xo)|mc(01|21|ca)|m-cr|me(rc|ri)|mi(o8|oa|ts)|mmef|mo(01|02|bi|de|do|t(-| |o|v)|zz)|mt(50|p1|v )|mwbp|mywa|n10[0-2]|n20[2-3]|n30(0|2)|n50(0|2|5)|n7(0(0|1)|10)|ne((c|m)-|on|tf|wf|wg|wt)|nok(6|i)|nzph|o2im|op(ti|wv)|oran|owg1|p800|pan(a|d|t)|pdxg|pg(13|-([1-8]|c))|phil|pire|pl(ay|uc)|pn-2|po(ck|rt|se)|prox|psio|pt-g|qa-a|qc(07|12|21|32|60|-[2-7]|i-)|qtek|r380|r600|raks|rim9|ro(ve|zo)|s55\/|sa(ge|ma|mm|ms|ny|va)|sc(01|h-|oo|p-)|sdk\/|se(c(-|0|1)|47|mc|nd|ri)|sgh-|shar|sie(-|m)|sk-0|sl(45|id)|sm(al|ar|b3|it|t5)|so(ft|ny)|sp(01|h-|v-|v )|sy(01|mb)|t2(18|50)|t6(00|10|18)|ta(gt|lk)|tcl-|tdg-|tel(i|m)|tim-|t-mo|to(pl|sh)|ts(70|m-|m3|m5)|tx-9|up(\.b|g1|si)|utst|v400|v750|veri|vi(rg|te)|vk(40|5[0-3]|-v)|vm40|voda|vulc|vx(52|53|60|61|70|80|81|83|85|98)|w3c(-| )|webc|whit|wi(g |nc|nw)|wmlb|wonu|x700|yas-|your|zeto|zte-/i.test(e.substr(0,4))||/^((?!chrome|android).)*safari/i.test(e))};let nv=(()=>{class e{loadFiles(n=[],r,o){const i=new Dt;return JD(n,r,o).then(s=>{Promise.all(Object.assign([],s).map(a=>this.readAsDataURL(a))).then(a=>W(i,a)).catch(a=>W(i,null,a))}),i}loadFilesToScan(n=[],r,o,i){return XD(n,r,o,i)}readAsDataURL(n){return new Promise((r,o)=>{const i=new FileReader;i.onload=()=>{const s={name:n.name,file:n,url:URL.createObjectURL(n)};r(s)},i.onerror=s=>o(s),i.readAsDataURL(n)})}}return e.\u0275fac=function(n){return new(n||e)},e.\u0275prov=K({token:e,factory:e.\u0275fac,providedIn:"root"}),e})();const rv=(e="",t=new Dt,n)=>{let r=0;const o=(i=!1)=>{const s=u=>{let c;try{const d=()=>{u&&zbarWasm.setModuleArgs({locateFile:(h,p)=>e||p+h}),setTimeout(()=>W(t,!0))},f=()=>{clearTimeout(c),Us()?d():c=setTimeout(()=>f())};setTimeout(()=>f()),setTimeout(()=>clearTimeout(c),3e3)}catch{clearTimeout(c)}},a=document.querySelectorAll(`script[src="${Wo}"]`),l=document.querySelectorAll('script[src="https://cdn.jsdelivr.net/npm/ngx-scanner-qrcode@latest/wasm/index.js"]');if(a.length||l.length)s(!1);else{const u=document.querySelectorAll(`script[src="${Mc}"]`);if(1===u.length)s(!1);else if(u.forEach(c=>c.remove()),n){const c=n.createElement("script");n.setAttribute(c,"src",i?Wo:Mc),n.setAttribute(c,"type","text/javascript"),n.setAttribute(c,"async",""),n.appendChild(document.head,c),c.onload=()=>s(!0),c.onerror=()=>{r<2?(document.head.removeChild(c),o(!0)):W(t,!1,Wo)},r+=1}else{const c=document.createElement("script");c.setAttribute("src",i?Wo:Mc),c.setAttribute("type","text/javascript"),c.setAttribute("async",""),document.head.appendChild(c),c.onload=()=>s(!0),c.onerror=()=>{r<2?(document.head.removeChild(c),o(!0)):W(t,!1,Wo)},r+=1}}};return o(),t};let Sx=(()=>{class e{constructor(n,r){this.renderer=n,this.elementRef=r,this.event=new xe,this.config=He,this.src=He.src,this.fps=He.fps,this.vibrate=He.vibrate,this.decode=He.decode,this.isBeep=He.isBeep,this.isMasked=He.isMasked,this.unScan=He.unScan,this.loadWasmUrl=He.loadWasmUrl,this.symbolType=He.symbolType,this.constraints=He.constraints,this.canvasStyles=[Ac,Ic],this.isStart=!1,this.isPause=!1,this.isLoading=!1,this.isTorch=!1,this.data=new la([]),this.devices=new la([]),this.deviceIndexActive=0,this.dataForResize=[],this.ready=new Dt,this.STATUS={startON:()=>this.isStart=!0,pauseON:()=>this.isPause=!0,loadingON:()=>this.isLoading=!0,startOFF:()=>this.isStart=!1,pauseOFF:()=>this.isPause=!1,loadingOFF:()=>this.isLoading=!1,torchOFF:()=>this.isTorch=!1}}ngOnInit(){this.overrideConfig(),rv(this.loadWasmUrl,this.ready,this.renderer).subscribe(()=>{this.src&&this.loadImage(this.src),this.resize()})}start(n){const r=new Dt;return this.isStart?W(r,!1):this.safariWebRTC(r,n),r}stop(){this.STATUS.pauseOFF(),this.STATUS.startOFF(),this.STATUS.torchOFF(),this.STATUS.loadingOFF();const n=new Dt;try{clearTimeout(this.rAF_ID),this.video.nativeElement.srcObject.getTracks().forEach(r=>{r.stop(),W(n,!0)}),this.dataForResize=[],(e=>{e.getContext("2d",{willReadFrequently:!0}).clearRect(0,0,e.width,e.height)})(this.canvas.nativeElement),ev(this.resultsPanel.nativeElement)}catch(r){W(n,!1,r)}return n}play(){const n=new Dt;return this.isPause?(this.video.nativeElement.play(),this.STATUS.pauseOFF(),this.requestAnimationFrame(),W(n,!0)):W(n,!1),n}pause(){const n=new Dt;return this.isStart?(clearTimeout(this.rAF_ID),this.video.nativeElement.pause(),this.STATUS.pauseON(),W(n,!0)):W(n,!1),n}playDevice(n,r=new Dt){const o=this.getConstraints();switch(!0){case"null"===n||"undefined"===n||!n:stop(),this.stop(),W(r,!1);break;case n&&(!this.isStart||!o||o.deviceId!==n):stop(),this.stop(),this.STATUS.loadingON(),this.deviceIndexActive=this.devices.value.findIndex(a=>a.deviceId===n);const s={...this.constraints,audio:!1,video:{deviceId:n,...this.constraints.video}};navigator.mediaDevices.getUserMedia(s).then(a=>{this.video.nativeElement.srcObject=a,this.video.nativeElement.onloadedmetadata=()=>{this.video.nativeElement.play(),this.requestAnimationFrame(),W(r,!0),this.STATUS.startON(),this.STATUS.loadingOFF()}}).catch(a=>{this.eventEmit(!1),W(r,!1,a),this.STATUS.startOFF(),this.STATUS.loadingOFF()});break;default:W(r,!1),this.STATUS.loadingOFF()}return r}loadImage(n){const r=new Dt;this.STATUS.startOFF(),this.STATUS.loadingON();const o=new Image;return o.setAttribute("crossOrigin","anonymous"),o.onload=()=>{Us()&&this.drawImage(o,i=>{W(r,i),this.STATUS.startOFF(),this.STATUS.loadingOFF()})},o.src=n,r}torcher(){const n=this.applyConstraints({advanced:[{torch:this.isTorch}]});return n.subscribe(()=>!1,()=>this.isTorch=!this.isTorch),n}applyConstraints(n,r=0){var o=this;const i=new Dt;if(this.isStart){const s=this.video.nativeElement.srcObject;if(null===r&&void 0===r&&Number.isNaN(r))W(i,!1,"Please check again deviceIndex");else{const a=s.getVideoTracks()[r];new window.ImageCapture(a).getPhotoCapabilities().then($s(function*(){yield a.applyConstraints(n),Nc(o.video.nativeElement,o.canvas.nativeElement),W(i,!0)})).catch(u=>{switch(u?.name){case"NotFoundError":case"DevicesNotFoundError":W(i,!1,"Required track is missing");break;case"NotReadableError":case"TrackStartError":W(i,!1,"Webcam or mic are already in use");break;case"OverconstrainedError":case"ConstraintNotSatisfiedError":W(i,!1,"Constraints can not be satisfied by avb. devices");break;case"NotAllowedError":case"PermissionDeniedError":W(i,!1,"Permission denied in browser");break;case"TypeError":W(i,!1,"Empty constraints object");break;default:W(i,!1,u)}})}}else W(i,!1,"Please start the scanner");return i}getConstraints(n=0){return this.video.nativeElement.srcObject?.getVideoTracks()[n]?.getConstraints()}download(n=`ngx_scanner_qrcode_${Date.now()}.png`,r,o){var i=this;const s=new Dt;return $s(function*(){const l=((e,t)=>new File([e],t,{lastModified:(new Date).getTime(),type:e.type}))(yield KD(i.canvas.nativeElement),n);XD([l],i.config,r,o,s).subscribe(u=>{u.forEach(c=>{if(c?.data?.length){const d=document.createElement("a");d.href=c.url,d.download=c.name,d.click(),d.remove()}})})})(),s}resize(){window.addEventListener("resize",()=>{YD(this.dataForResize,this.canvas.nativeElement,this.resultsPanel.nativeElement,this.canvasStyles),Nc(this.video.nativeElement,this.canvas.nativeElement)})}overrideConfig(){"src"in this.config&&(this.src=this.config.src),"fps"in this.config&&(this.fps=this.config.fps),"vibrate"in this.config&&(this.vibrate=this.config.vibrate),"decode"in this.config&&(this.decode=this.config.decode),"isBeep"in this.config&&(this.isBeep=this.config.isBeep),"isMasked"in this.config&&(this.isMasked=this.config.isMasked),"unScan"in this.config&&(this.unScan=this.config.unScan),"loadWasmUrl"in this.config&&(this.loadWasmUrl=this.config.loadWasmUrl),"symbolType"in this.config&&(this.symbolType=this.config.symbolType),"constraints"in this.config&&(this.constraints=((e,t,n)=>{if(t&&Object.keys(t[e]).length){for(const r in n){const o=JSON.parse(JSON.stringify({...t[e],[r]:n[r]}));t[e]=t[e].hasOwnProperty(r)?t[e]:o}return t[e]}return n})("constraints",this.config,ZD)),"canvasStyles"in this.config&&2===this.config?.canvasStyles?.length&&(this.canvasStyles=this.config.canvasStyles)}safariWebRTC(n,r){this.STATUS.startOFF(),this.STATUS.loadingON(),navigator.mediaDevices.getUserMedia(this.constraints).then(o=>{o.getTracks().forEach(i=>i.stop()),this.loadAllDevices(n,r)}).catch(o=>{W(n,!1,o),this.STATUS.startOFF(),this.STATUS.loadingOFF()})}loadAllDevices(n,r){navigator.mediaDevices.enumerateDevices().then(o=>{let i=o.filter(s=>"videoinput"==s.kind);this.devices.next(i),i?.length>0?(W(n,i),r?r(i):this.playDevice(i[0].deviceId)):(W(n,!1,"No camera detected."),this.STATUS.startOFF(),this.STATUS.loadingOFF())}).catch(o=>{W(n,!1,o),this.STATUS.startOFF(),this.STATUS.loadingOFF()})}drawImage(n,r=(()=>{})){var o=this;return $s(function*(){const i=o.canvas.nativeElement,s=i.getContext("2d",{willReadFrequently:!0});n instanceof HTMLImageElement&&(i.width=n.naturalWidth,i.height=n.naturalHeight,n.style.visibility="",o.video.nativeElement.style.visibility="hidden",o.renderer.setStyle(o.elementRef.nativeElement,"width",i.width+"px"),o.renderer.setStyle(o.elementRef.nativeElement,"maxWidth","100%"),o.renderer.setStyle(o.elementRef.nativeElement,"display","inline-block")),n instanceof HTMLVideoElement&&(i.width=n.videoWidth,i.height=n.videoHeight,n.style.visibility="",o.canvas.nativeElement.style.visibility="hidden"),Nc(o.video.nativeElement,i),s.clearRect(0,0,i.width,i.height),s.drawImage(n,0,0,i.width,i.height);const a=s.getImageData(0,0,i.width,i.height);if(o.unScan)return Promise.resolve();let l=yield zbarWasm.scanImageData(a);if(o.symbolType?.some(c=>c.toString()!==M.ScannerQRCode_NONE.toString())&&(l=l.filter(c=>{const d=c.typeName.replace("ZBAR","ScannerQRCode");return o.symbolType?.some(h=>h.toString()===M[d].toString())})),l?.length){l.forEach(d=>d.value=d.decode(o.decode?.toLocaleLowerCase())),o.isMasked&&YD(l,Object.freeze(o.canvas.nativeElement),o.resultsPanel.nativeElement,o.canvasStyles);const c=()=>{o.eventEmit(l),o.dataForResize=l};n instanceof HTMLImageElement&&(r(!0),c(),tv(o.vibrate),Tc(o.isBeep)),n instanceof HTMLVideoElement&&(c(),tv(o.vibrate),Tc(o.isBeep))}else r(!1),ev(o.resultsPanel.nativeElement),o.dataForResize=[]})()}eventEmit(n=!1){!1!==n&&this.data.next(n||[]),!1!==n&&this.event.emit(n||[])}requestAnimationFrame(n=100){try{clearTimeout(this.rAF_ID),this.rAF_ID=setTimeout(()=>{this.video.nativeElement.readyState===this.video.nativeElement.HAVE_ENOUGH_DATA&&(n=0,Us()&&this.drawImage(this.video.nativeElement),this.isStart&&!this.isPause&&this.requestAnimationFrame(n))},n||this.fps)}catch{clearTimeout(this.rAF_ID)}}get isReady(){return this.ready}ngOnDestroy(){this.pause()}}return e.\u0275fac=function(n){return new(n||e)(_(vn),_(pt))},e.\u0275cmp=Aa({type:e,selectors:[["ngx-scanner-qrcode"]],viewQuery:function(n,r){if(1&n&&(ko(fx,5),ko(hx,5),ko(px,5)),2&n){let o;Vo(o=Lo())&&(r.video=o.first),Vo(o=Lo())&&(r.canvas=o.first),Vo(o=Lo())&&(r.resultsPanel=o.first)}},hostAttrs:[1,"ngx-scanner-qrcode"],inputs:{config:"config",src:"src",fps:"fps",vibrate:"vibrate",decode:"decode",isBeep:"isBeep",isMasked:"isMasked",unScan:"unScan",loadWasmUrl:"loadWasmUrl",symbolType:"symbolType",constraints:"constraints",canvasStyles:"canvasStyles"},outputs:{event:"event"},exportAs:["scanner"],decls:6,vars:0,consts:[[1,"origin-overlay"],["resultsPanel",""],[1,"origin-canvas"],["canvas",""],["playsinline","",1,"origin-video"],["video",""]],template:function(n,r){1&n&&Et(0,"div",0,1)(2,"canvas",2,3)(4,"video",4,5)},styles:[".ngx-scanner-qrcode{display:block;position:relative}.origin-overlay{width:100%;position:absolute}.origin-overlay span{z-index:2;text-align:left;position:absolute}.origin-overlay .qrcode-polygon{z-index:1;position:absolute}.origin-canvas{width:100%;position:absolute}.origin-video{width:100%;background-color:#262626}.qrcode-tooltip{z-index:3;position:absolute}.qrcode-tooltip:hover .qrcode-tooltip-temp{display:block;position:absolute;cursor:copy}.qrcode-tooltip:hover .qrcode-tooltip-temp:active{color:#afafaf}.qrcode-tooltip .qrcode-tooltip-temp{bottom:0;left:50%;color:#fff;text-align:left;display:none;width:max-content;word-wrap:break-word;transform:translate(-50%);transform-style:preserve-3d;background-color:#000000d0;box-shadow:1px 1px 20px #000000e0}.qrcode-tooltip .qrcode-tooltip-temp svg{cursor:pointer}.qrcode-tooltip .qrcode-tooltip-temp svg rect{fill:none;stroke:#fff;stroke-linejoin:round;stroke-width:32px}.qrcode-tooltip .qrcode-tooltip-temp svg path{fill:none;stroke:#fff;stroke-linecap:round;stroke-linejoin:round;stroke-width:32px}.qrcode-tooltip .qrcode-tooltip-temp svg:active rect{stroke:#afafaf}.qrcode-tooltip .qrcode-tooltip-temp svg:active path{stroke:#afafaf}\n"],encapsulation:2}),e})(),Mx=(()=>{class e{}return e.\u0275fac=function(n){return new(n||e)},e.\u0275mod=Zt({type:e}),e.\u0275inj=Nt({providers:[nv]}),e})();let ov=(()=>{class e{constructor(n,r){this._renderer=n,this._elementRef=r,this.onChange=o=>{},this.onTouched=()=>{}}setProperty(n,r){this._renderer.setProperty(this._elementRef.nativeElement,n,r)}registerOnTouched(n){this.onTouched=n}registerOnChange(n){this.onChange=n}setDisabledState(n){this.setProperty("disabled",n)}}return e.\u0275fac=function(n){return new(n||e)(_(vn),_(pt))},e.\u0275dir=P({type:e}),e})(),Wn=(()=>{class e extends ov{}return e.\u0275fac=function(){let t;return function(r){return(t||(t=Ve(e)))(r||e)}}(),e.\u0275dir=P({type:e,features:[te]}),e})();const zt=new T("NgValueAccessor"),Lr=new T("CallSetDisabledState",{providedIn:"root",factory:()=>Zs}),Zs="always";let Gv=(()=>{class e{}return e.\u0275fac=function(n){return new(n||e)},e.\u0275mod=Zt({type:e}),e.\u0275inj=Nt({}),e})();const _O={provide:zt,useExisting:oe(()=>Qc),multi:!0};function Kv(e,t){return null==e?`${t}`:(t&&"object"==typeof t&&(t="Object"),`${e}: ${t}`.slice(0,50))}let Qc=(()=>{class e extends Wn{constructor(){super(...arguments),this._optionMap=new Map,this._idCounter=0,this._compareWith=Object.is}set compareWith(n){this._compareWith=n}writeValue(n){this.value=n;const o=Kv(this._getOptionId(n),n);this.setProperty("value",o)}registerOnChange(n){this.onChange=r=>{this.value=this._getOptionValue(r),n(this.value)}}_registerOption(){return(this._idCounter++).toString()}_getOptionId(n){for(const r of this._optionMap.keys())if(this._compareWith(this._optionMap.get(r),n))return r;return null}_getOptionValue(n){const r=function CO(e){return e.split(":")[0]}(n);return this._optionMap.has(r)?this._optionMap.get(r):n}}return e.\u0275fac=function(){let t;return function(r){return(t||(t=Ve(e)))(r||e)}}(),e.\u0275dir=P({type:e,selectors:[["select","formControlName","",3,"multiple",""],["select","formControl","",3,"multiple",""],["select","ngModel","",3,"multiple",""]],hostBindings:function(n,r){1&n&&re("change",function(i){return r.onChange(i.target.value)})("blur",function(){return r.onTouched()})},inputs:{compareWith:"compareWith"},features:[ce([_O]),te]}),e})(),Xv=(()=>{class e{constructor(n,r,o){this._element=n,this._renderer=r,this._select=o,this._select&&(this.id=this._select._registerOption())}set ngValue(n){null!=this._select&&(this._select._optionMap.set(this.id,n),this._setElementValue(Kv(this.id,n)),this._select.writeValue(this._select.value))}set value(n){this._setElementValue(n),this._select&&this._select.writeValue(this._select.value)}_setElementValue(n){this._renderer.setProperty(this._element.nativeElement,"value",n)}ngOnDestroy(){this._select&&(this._select._optionMap.delete(this.id),this._select.writeValue(this._select.value))}}return e.\u0275fac=function(n){return new(n||e)(_(pt),_(vn),_(Qc,9))},e.\u0275dir=P({type:e,selectors:[["option"]],inputs:{ngValue:"ngValue",value:"value"}}),e})();const EO={provide:zt,useExisting:oe(()=>Zc),multi:!0};function Jv(e,t){return null==e?`${t}`:("string"==typeof t&&(t=`'${t}'`),t&&"object"==typeof t&&(t="Object"),`${e}: ${t}`.slice(0,50))}let Zc=(()=>{class e extends Wn{constructor(){super(...arguments),this._optionMap=new Map,this._idCounter=0,this._compareWith=Object.is}set compareWith(n){this._compareWith=n}writeValue(n){let r;if(this.value=n,Array.isArray(n)){const o=n.map(i=>this._getOptionId(i));r=(i,s)=>{i._setSelected(o.indexOf(s.toString())>-1)}}else r=(o,i)=>{o._setSelected(!1)};this._optionMap.forEach(r)}registerOnChange(n){this.onChange=r=>{const o=[],i=r.selectedOptions;if(void 0!==i){const s=i;for(let a=0;a{class e{constructor(n,r,o){this._element=n,this._renderer=r,this._select=o,this._select&&(this.id=this._select._registerOption(this))}set ngValue(n){null!=this._select&&(this._value=n,this._setElementValue(Jv(this.id,n)),this._select.writeValue(this._select.value))}set value(n){this._select?(this._value=n,this._setElementValue(Jv(this.id,n)),this._select.writeValue(this._select.value)):this._setElementValue(n)}_setElementValue(n){this._renderer.setProperty(this._element.nativeElement,"value",n)}_setSelected(n){this._renderer.setProperty(this._element.nativeElement,"selected",n)}ngOnDestroy(){this._select&&(this._select._optionMap.delete(this.id),this._select.writeValue(this._select.value))}}return e.\u0275fac=function(n){return new(n||e)(_(pt),_(vn),_(Zc,9))},e.\u0275dir=P({type:e,selectors:[["option"]],inputs:{ngValue:"ngValue",value:"value"}}),e})(),xO=(()=>{class e{}return e.\u0275fac=function(n){return new(n||e)},e.\u0275mod=Zt({type:e}),e.\u0275inj=Nt({imports:[Gv]}),e})(),RO=(()=>{class e{static withConfig(n){return{ngModule:e,providers:[{provide:Lr,useValue:n.callSetDisabledState??Zs}]}}}return e.\u0275fac=function(n){return new(n||e)},e.\u0275mod=Zt({type:e}),e.\u0275inj=Nt({imports:[xO]}),e})(),PO=(()=>{class e{constructor(n){this._sanitizer=n}transform(n,r){switch(r){case"html":default:return this._sanitizer.bypassSecurityTrustHtml(n);case"style":return this._sanitizer.bypassSecurityTrustStyle(n);case"script":return this._sanitizer.bypassSecurityTrustScript(n);case"url":return this._sanitizer.bypassSecurityTrustUrl(n);case"resourceUrl":return this._sanitizer.bypassSecurityTrustResourceUrl(n)}}}return e.\u0275fac=function(n){return new(n||e)(_(GD,16))},e.\u0275pipe=Ue({name:"safe",type:e,pure:!0}),e})();const VO=["action"];function kO(e,t){if(1&e&&(G(0,"option",34),Be(1),z()),2&e){const n=t.$implicit,r=t.index;_n();const o=Fe(22);X("value",n.deviceId)("selected",r==o.deviceIndexActive),ee(1),gu(n.label)}}function LO(e,t){1&e&&(G(0,"p"),Be(1,"\u231b Loading..."),z())}function BO(e,t){if(1&e){const n=Mo();G(0,"img",35),re("click",function(){Je(n);const o=_n(),i=Fe(22);return et(o.handle(i,"start"))}),z()}}function HO(e,t){if(1&e){const n=Mo();G(0,"img",36),re("click",function(){Je(n);const o=_n(),i=Fe(22);return et(o.handle(i,"stop"))}),z()}}function jO(e,t){if(1&e&&(G(0,"option",34),Be(1),z()),2&e){const n=t.$implicit,r=_n();X("value",n)("selected",n==r.percentage),ee(1),Io("Scale ",n,"%")}}function $O(e,t){if(1&e&&(G(0,"option",34),Be(1),z()),2&e){const n=t.$implicit,r=_n();X("value",n)("selected",n==r.quality),ee(1),Io("Quality ",n,"%")}}function UO(e,t){if(1&e){const n=Mo();G(0,"div")(1,"ngx-scanner-qrcode",30,31),re("event",function(o){return Je(n),et(_n().onEvent(o))}),z()()}if(2&e){const n=t.$implicit,r=_n();ee(1),X("src",n.url)("config",r.config)}}function GO(e,t){if(1&e&&(G(0,"div"),Et(1,"img",37),function zm(e,t){const n=U();let r;const o=e+$;n.firstCreatePass?(r=function o0(e,t){if(t)for(let n=t.length-1;n>=0;n--){const r=t[n];if(e===r.name)return r}}(t,n.pipeRegistry),n.data[o]=r,r.onDestroy&&(n.destroyHooks??=[]).push(o,r.onDestroy)):r=n.data[o];const i=r.factory||(r.factory=Vn(r.type)),s=Ze(_);try{const a=Ii(!1),l=i();return Ii(a),function VM(e,t,n,r){n>=e.data.length&&(e.data[n]=null,e.blueprint[n]=null),t[n]=r}(n,D(),o,l),l}finally{Ze(s)}}(2,"safe"),z()),2&e){const n=t.$implicit;ee(1),X("src",qm(2,1,n.url,"url"),fo)}}const c_=function(){return[10,20,30,40,50,60,70,80,90,100]};let zO=(()=>{class e{constructor(n){this.qrcode=n,this.config={constraints:{video:{width:window.innerWidth}},symbolType:[M.ScannerQRCode_QRCODE,M.ScannerQRCode_I25,M.ScannerQRCode_DATABAR,M.ScannerQRCode_CODE39]},this.qrCodeResult=[],this.qrCodeResult2=[],this.percentage=80,this.quality=100}ngAfterViewInit(){this.action.isReady.subscribe(n=>{})}onEvent(n,r){console.log(n)}handle(n,r){"start"===r?n[r](i=>{const s=i.find(a=>/back|rear|environment/gi.test(a.label));n.playDevice(s?s.deviceId:i[0].deviceId)}).subscribe(i=>console.log(r,i),alert):n[r]().subscribe(i=>console.log(r,i),alert)}onDowload(n){n.download().subscribe(console.log,alert)}onSelects(n){this.qrcode.loadFiles(n,this.percentage,this.quality).subscribe(r=>{this.qrCodeResult=r})}onSelects2(n){this.qrcode.loadFilesToScan(n,this.config,this.percentage,this.quality).subscribe(r=>{console.log(r),this.qrCodeResult2=r})}onGetConstraints(){const n=this.action.getConstraints();console.log(n)}applyConstraints(){const n=this.action.applyConstraints({...this.action.getConstraints(),width:510});console.log(n)}}return e.\u0275fac=function(n){return new(n||e)(_(nv))},e.\u0275cmp=Aa({type:e,selectors:[["app-root"]],viewQuery:function(n,r){if(1&n&&ko(VO,5),2&n){let o;Vo(o=Lo())&&(r.action=o.first)}},decls:65,vars:44,consts:[[1,"container"],[1,"row"],[1,"col-xs-12","col-md-6","col-lg-4","col-xl-3","my-1"],[1,"form-select","form-select-md",3,"change"],["select1",""],["selected","",3,"value"],[3,"value","selected",4,"ngFor","ngForOf"],["select2",""],["value","utf-8",3,"selected"],["value","iso-8859-15",3,"selected"],["value","windows-1252",3,"selected"],["value","macintosh",3,"selected"],[3,"config","event"],["action","scanner"],[4,"ngIf"],[1,"btn",3,"disabled"],["src","assets/images/camera-on.svg","width","30px",3,"click",4,"ngIf"],["src","assets/images/camera-off.svg","width","30px",3,"click",4,"ngIf"],[1,"btn",3,"disabled","click"],["width","30px",3,"src"],["src","assets/images/capture.svg","width","30px"],["type","file",1,"btn","btn-success","my-2",3,"multiple","accept","change"],["file",""],["file2",""],[1,"btn","btn-success",3,"click"],[1,"d-flex","justify-content-center","my-2"],[1,"col-xs-12","col-md-6","col-lg-4","col-xl-2","m-1"],["select3",""],["select4",""],[4,"ngFor","ngForOf"],[3,"src","config","event"],["actionFile","scanner"],[1,"center"],["href","https://github.com/id1945/ngx-scanner-qrcode/blob/master/LICENSE"],[3,"value","selected"],["src","assets/images/camera-on.svg","width","30px",3,"click"],["src","assets/images/camera-off.svg","width","30px",3,"click"],["alt","",2,"max-width","100%",3,"src"]],template:function(n,r){if(1&n){const o=Mo();G(0,"div",0)(1,"h1"),Be(2," ngx-scanner-qrcode "),z(),G(3,"div",1)(4,"div",2)(5,"select",3,4),re("change",function(){Je(o);const s=Fe(6);return et(Fe(22).playDevice(s.value))}),G(7,"option",5),Be(8,"Select device"),z(),sn(9,kO,2,3,"option",6),z()(),G(10,"div",2)(11,"select",3,7),re("change",function(){Je(o);const s=Fe(22),a=Fe(12);return et(s.decode=a.value)}),G(13,"option",8),Be(14,"UTF-8"),z(),G(15,"option",9),Be(16,"ISO-8859-15"),z(),G(17,"option",10),Be(18,"Windows-1252"),z(),G(19,"option",11),Be(20,"Macintosh"),z()()()(),G(21,"ngx-scanner-qrcode",12,13),re("event",function(s){Je(o);const a=Fe(22);return et(r.onEvent(s,a))}),z(),Et(23,"br"),sn(24,LO,2,0,"p",14),G(25,"button",15),sn(26,BO,1,0,"img",16),sn(27,HO,1,0,"img",17),z(),G(28,"button",18),re("click",function(){Je(o);const s=Fe(22);return et(r.handle(s,s.isPause?"play":"pause"))}),Et(29,"img",19),z(),G(30,"button",18),re("click",function(){Je(o);const s=Fe(22);return s.isTorch=!s.isTorch,et(r.handle(s,"torcher"))}),Et(31,"img",19),z(),G(32,"button",18),re("click",function(){Je(o);const s=Fe(22);return et(r.onDowload(s))}),Et(33,"img",20),z(),Et(34,"br"),G(35,"input",21,22),re("change",function(){Je(o);const s=Fe(36);return et(r.onSelects(s.files))}),z(),Et(37,"br"),G(38,"input",21,23),re("change",function(){Je(o);const s=Fe(39);return et(r.onSelects2(s.files))}),z(),Et(40,"br"),G(41,"button",24),re("click",function(){return r.onGetConstraints()}),Be(42,"Get"),z(),G(43,"button",24),re("click",function(){return r.applyConstraints()}),Be(44,"App"),z(),G(45,"div",25)(46,"div",26)(47,"select",3,27),re("change",function(){Je(o);const s=Fe(48);return et(r.percentage=+s.value)}),sn(49,jO,2,3,"option",6),z()(),G(50,"div",26)(51,"select",3,28),re("change",function(){Je(o);const s=Fe(52);return et(r.quality=+s.value)}),sn(53,$O,2,3,"option",6),z()()(),sn(54,UO,3,2,"div",29),sn(55,GO,3,4,"div",29),G(56,"ngx-scanner-qrcode",30,31),re("event",function(s){return r.onEvent(s)}),z(),G(58,"p",32)(59,"a",33),Be(60,"LGPL-2.1+ License"),z()(),G(61,"p",32),Be(62,"Author: DaiDH"),z(),G(63,"p",32),Be(64,"Copyright (C) 1991, 1999 Free Software Foundation, Inc."),z()()}if(2&n){const o=Fe(22);ee(7),X("value",null),ee(2),X("ngForOf",o.devices.value),ee(4),X("selected","utf-8"==o.decode),ee(2),X("selected","iso-8859-15"==o.decode),ee(2),X("selected","windows-1252"==o.decode),ee(2),X("selected","macintosh"==o.decode),ee(2),X("config",r.config),ee(3),X("ngIf",o.isLoading),ee(1),En("btn-info",!o.isStart)("btn-warning",o.isStart),X("disabled",o.isLoading),ee(1),X("ngIf",!o.isStart),ee(1),X("ngIf",o.isStart),ee(1),En("btn-info",!o.isStart)("btn-warning",o.isStart),X("disabled",!o.isStart),ee(1),X("src",o.isPause?"assets/images/play.svg ":"assets/images/pause.svg",fo),ee(1),En("btn-info",!o.isStart)("btn-warning",o.isStart),X("disabled",!o.isStart),ee(1),X("src",o.isTorch?"assets/images/flash-off.svg":"assets/images/flash-on.svg",fo),ee(1),En("btn-info",!o.isStart)("btn-warning",o.isStart),X("disabled",!o.isStart),ee(3),X("multiple","multiple")("accept",".jpg, .png, .gif, .jpeg"),ee(3),X("multiple","multiple")("accept",".jpg, .png, .gif, .jpeg"),ee(11),X("ngForOf",Su(42,c_)),ee(4),X("ngForOf",Su(43,c_)),ee(1),X("ngForOf",r.qrCodeResult),ee(1),X("ngForOf",r.qrCodeResult2),ee(1),X("src","https://raw.githubusercontent.com/id1945/ngx-scanner-qrcode/master/supported-barcode-types.png")("config",r.config)}},dependencies:[mD,DD,Xv,e_,Sx,PO],styles:["h1[_ngcontent-%COMP%], h5[_ngcontent-%COMP%], p[_ngcontent-%COMP%]{font-weight:600;word-break:break-all;font-family:Courier New,Courier,monospace}div[_ngcontent-%COMP%]{text-align:center;background:#fdfdfd}div[_ngcontent-%COMP%] button[_ngcontent-%COMP%]{border-radius:50%;height:60px;width:60px;margin:4px}div[_ngcontent-%COMP%] buttondisabled[_ngcontent-%COMP%]{cursor:no-drop}div[_ngcontent-%COMP%] .data[_ngcontent-%COMP%]{background:antiquewhite;border-radius:5px}"]}),e})();rv("assets/wasm/ngx-scanner-qrcode.wasm").subscribe(e=>{console.log("LOAD_WASM",e)});let qO=(()=>{class e{}return e.\u0275fac=function(n){return new(n||e)},e.\u0275mod=Zt({type:e,bootstrap:[zO]}),e.\u0275inj=Nt({imports:[ix,RO,Mx]}),e})();rx().bootstrapModule(qO).catch(e=>console.error(e))}},de=>{de(de.s=37)}]); \ No newline at end of file diff --git a/main.d4416c5acecc9091.js b/main.d4416c5acecc9091.js deleted file mode 100644 index 49901fe..0000000 --- a/main.d4416c5acecc9091.js +++ /dev/null @@ -1 +0,0 @@ -"use strict";(self.webpackChunkngx_scanner_qrcode=self.webpackChunkngx_scanner_qrcode||[]).push([[179],{37:()=>{function ce(e){return"function"==typeof e}function Jo(e){const n=e(r=>{Error.call(r),r.stack=(new Error).stack});return n.prototype=Object.create(Error.prototype),n.prototype.constructor=n,n}const ei=Jo(e=>function(n){e(this),this.message=n?`${n.length} errors occurred during unsubscription:\n${n.map((r,o)=>`${o+1}) ${r.toString()}`).join("\n ")}`:"",this.name="UnsubscriptionError",this.errors=n});function Lr(e,t){if(e){const n=e.indexOf(t);0<=n&&e.splice(n,1)}}class At{constructor(t){this.initialTeardown=t,this.closed=!1,this._parentage=null,this._finalizers=null}unsubscribe(){let t;if(!this.closed){this.closed=!0;const{_parentage:n}=this;if(n)if(this._parentage=null,Array.isArray(n))for(const i of n)i.remove(this);else n.remove(this);const{initialTeardown:r}=this;if(ce(r))try{r()}catch(i){t=i instanceof ei?i.errors:[i]}const{_finalizers:o}=this;if(o){this._finalizers=null;for(const i of o)try{ed(i)}catch(s){t=t??[],s instanceof ei?t=[...t,...s.errors]:t.push(s)}}if(t)throw new ei(t)}}add(t){var n;if(t&&t!==this)if(this.closed)ed(t);else{if(t instanceof At){if(t.closed||t._hasParent(this))return;t._addParent(this)}(this._finalizers=null!==(n=this._finalizers)&&void 0!==n?n:[]).push(t)}}_hasParent(t){const{_parentage:n}=this;return n===t||Array.isArray(n)&&n.includes(t)}_addParent(t){const{_parentage:n}=this;this._parentage=Array.isArray(n)?(n.push(t),n):n?[n,t]:t}_removeParent(t){const{_parentage:n}=this;n===t?this._parentage=null:Array.isArray(n)&&Lr(n,t)}remove(t){const{_finalizers:n}=this;n&&Lr(n,t),t instanceof At&&t._removeParent(this)}}At.EMPTY=(()=>{const e=new At;return e.closed=!0,e})();const Xc=At.EMPTY;function Jc(e){return e instanceof At||e&&"closed"in e&&ce(e.remove)&&ce(e.add)&&ce(e.unsubscribe)}function ed(e){ce(e)?e():e.unsubscribe()}const Nn={onUnhandledError:null,onStoppedNotification:null,Promise:void 0,useDeprecatedSynchronousErrorHandling:!1,useDeprecatedNextContext:!1},ti={setTimeout(e,t,...n){const{delegate:r}=ti;return r?.setTimeout?r.setTimeout(e,t,...n):setTimeout(e,t,...n)},clearTimeout(e){const{delegate:t}=ti;return(t?.clearTimeout||clearTimeout)(e)},delegate:void 0};function td(e){ti.setTimeout(()=>{const{onUnhandledError:t}=Nn;if(!t)throw e;t(e)})}function nd(){}const c_=ta("C",void 0,void 0);function ta(e,t,n){return{kind:e,value:t,error:n}}let Fn=null;function ni(e){if(Nn.useDeprecatedSynchronousErrorHandling){const t=!Fn;if(t&&(Fn={errorThrown:!1,error:null}),e(),t){const{errorThrown:n,error:r}=Fn;if(Fn=null,n)throw r}}else e()}class na extends At{constructor(t){super(),this.isStopped=!1,t?(this.destination=t,Jc(t)&&t.add(this)):this.destination=y_}static create(t,n,r){return new Br(t,n,r)}next(t){this.isStopped?oa(function f_(e){return ta("N",e,void 0)}(t),this):this._next(t)}error(t){this.isStopped?oa(function d_(e){return ta("E",void 0,e)}(t),this):(this.isStopped=!0,this._error(t))}complete(){this.isStopped?oa(c_,this):(this.isStopped=!0,this._complete())}unsubscribe(){this.closed||(this.isStopped=!0,super.unsubscribe(),this.destination=null)}_next(t){this.destination.next(t)}_error(t){try{this.destination.error(t)}finally{this.unsubscribe()}}_complete(){try{this.destination.complete()}finally{this.unsubscribe()}}}const p_=Function.prototype.bind;function ra(e,t){return p_.call(e,t)}class g_{constructor(t){this.partialObserver=t}next(t){const{partialObserver:n}=this;if(n.next)try{n.next(t)}catch(r){ri(r)}}error(t){const{partialObserver:n}=this;if(n.error)try{n.error(t)}catch(r){ri(r)}else ri(t)}complete(){const{partialObserver:t}=this;if(t.complete)try{t.complete()}catch(n){ri(n)}}}class Br extends na{constructor(t,n,r){let o;if(super(),ce(t)||!t)o={next:t??void 0,error:n??void 0,complete:r??void 0};else{let i;this&&Nn.useDeprecatedNextContext?(i=Object.create(t),i.unsubscribe=()=>this.unsubscribe(),o={next:t.next&&ra(t.next,i),error:t.error&&ra(t.error,i),complete:t.complete&&ra(t.complete,i)}):o=t}this.destination=new g_(o)}}function ri(e){Nn.useDeprecatedSynchronousErrorHandling?function h_(e){Nn.useDeprecatedSynchronousErrorHandling&&Fn&&(Fn.errorThrown=!0,Fn.error=e)}(e):td(e)}function oa(e,t){const{onStoppedNotification:n}=Nn;n&&ti.setTimeout(()=>n(e,t))}const y_={closed:!0,next:nd,error:function m_(e){throw e},complete:nd},ia="function"==typeof Symbol&&Symbol.observable||"@@observable";function sa(e){return e}let He=(()=>{class e{constructor(n){n&&(this._subscribe=n)}lift(n){const r=new e;return r.source=this,r.operator=n,r}subscribe(n,r,o){const i=function v_(e){return e&&e instanceof na||function D_(e){return e&&ce(e.next)&&ce(e.error)&&ce(e.complete)}(e)&&Jc(e)}(n)?n:new Br(n,r,o);return ni(()=>{const{operator:s,source:a}=this;i.add(s?s.call(i,a):a?this._subscribe(i):this._trySubscribe(i))}),i}_trySubscribe(n){try{return this._subscribe(n)}catch(r){n.error(r)}}forEach(n,r){return new(r=od(r))((o,i)=>{const s=new Br({next:a=>{try{n(a)}catch(l){i(l),s.unsubscribe()}},error:i,complete:o});this.subscribe(s)})}_subscribe(n){var r;return null===(r=this.source)||void 0===r?void 0:r.subscribe(n)}[ia](){return this}pipe(...n){return function rd(e){return 0===e.length?sa:1===e.length?e[0]:function(n){return e.reduce((r,o)=>o(r),n)}}(n)(this)}toPromise(n){return new(n=od(n))((r,o)=>{let i;this.subscribe(s=>i=s,s=>o(s),()=>r(i))})}}return e.create=t=>new e(t),e})();function od(e){var t;return null!==(t=e??Nn.Promise)&&void 0!==t?t:Promise}const __=Jo(e=>function(){e(this),this.name="ObjectUnsubscribedError",this.message="object unsubscribed"});let Hr=(()=>{class e extends He{constructor(){super(),this.closed=!1,this.currentObservers=null,this.observers=[],this.isStopped=!1,this.hasError=!1,this.thrownError=null}lift(n){const r=new id(this,this);return r.operator=n,r}_throwIfClosed(){if(this.closed)throw new __}next(n){ni(()=>{if(this._throwIfClosed(),!this.isStopped){this.currentObservers||(this.currentObservers=Array.from(this.observers));for(const r of this.currentObservers)r.next(n)}})}error(n){ni(()=>{if(this._throwIfClosed(),!this.isStopped){this.hasError=this.isStopped=!0,this.thrownError=n;const{observers:r}=this;for(;r.length;)r.shift().error(n)}})}complete(){ni(()=>{if(this._throwIfClosed(),!this.isStopped){this.isStopped=!0;const{observers:n}=this;for(;n.length;)n.shift().complete()}})}unsubscribe(){this.isStopped=this.closed=!0,this.observers=this.currentObservers=null}get observed(){var n;return(null===(n=this.observers)||void 0===n?void 0:n.length)>0}_trySubscribe(n){return this._throwIfClosed(),super._trySubscribe(n)}_subscribe(n){return this._throwIfClosed(),this._checkFinalizedStatuses(n),this._innerSubscribe(n)}_innerSubscribe(n){const{hasError:r,isStopped:o,observers:i}=this;return r||o?Xc:(this.currentObservers=null,i.push(n),new At(()=>{this.currentObservers=null,Lr(i,n)}))}_checkFinalizedStatuses(n){const{hasError:r,thrownError:o,isStopped:i}=this;r?n.error(o):i&&n.complete()}asObservable(){const n=new He;return n.source=this,n}}return e.create=(t,n)=>new id(t,n),e})();class id extends Hr{constructor(t,n){super(),this.destination=t,this.source=n}next(t){var n,r;null===(r=null===(n=this.destination)||void 0===n?void 0:n.next)||void 0===r||r.call(n,t)}error(t){var n,r;null===(r=null===(n=this.destination)||void 0===n?void 0:n.error)||void 0===r||r.call(n,t)}complete(){var t,n;null===(n=null===(t=this.destination)||void 0===t?void 0:t.complete)||void 0===n||n.call(t)}_subscribe(t){var n,r;return null!==(r=null===(n=this.source)||void 0===n?void 0:n.subscribe(t))&&void 0!==r?r:Xc}}class aa extends Hr{constructor(t){super(),this._value=t}get value(){return this.getValue()}_subscribe(t){const n=super._subscribe(t);return!n.closed&&t.next(this._value),n}getValue(){const{hasError:t,thrownError:n,_value:r}=this;if(t)throw n;return this._throwIfClosed(),r}next(t){super.next(this._value=t)}}function Rn(e){return t=>{if(function C_(e){return ce(e?.lift)}(t))return t.lift(function(n){try{return e(n,this)}catch(r){this.error(r)}});throw new TypeError("Unable to lift unknown Observable type")}}function cn(e,t,n,r,o){return new w_(e,t,n,r,o)}class w_ extends na{constructor(t,n,r,o,i,s){super(t),this.onFinalize=i,this.shouldUnsubscribe=s,this._next=n?function(a){try{n(a)}catch(l){t.error(l)}}:super._next,this._error=o?function(a){try{o(a)}catch(l){t.error(l)}finally{this.unsubscribe()}}:super._error,this._complete=r?function(){try{r()}catch(a){t.error(a)}finally{this.unsubscribe()}}:super._complete}unsubscribe(){var t;if(!this.shouldUnsubscribe||this.shouldUnsubscribe()){const{closed:n}=this;super.unsubscribe(),!n&&(null===(t=this.onFinalize)||void 0===t||t.call(this))}}}function dn(e){return this instanceof dn?(this.v=e,this):new dn(e)}function ud(e){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var n,t=e[Symbol.asyncIterator];return t?t.call(e):(e=function fa(e){var t="function"==typeof Symbol&&Symbol.iterator,n=t&&e[t],r=0;if(n)return n.call(e);if(e&&"number"==typeof e.length)return{next:function(){return e&&r>=e.length&&(e=void 0),{value:e&&e[r++],done:!e}}};throw new TypeError(t?"Object is not iterable.":"Symbol.iterator is not defined.")}(e),n={},r("next"),r("throw"),r("return"),n[Symbol.asyncIterator]=function(){return this},n);function r(i){n[i]=e[i]&&function(s){return new Promise(function(a,l){!function o(i,s,a,l){Promise.resolve(l).then(function(u){i({value:u,done:a})},s)}(a,l,(s=e[i](s)).done,s.value)})}}}"function"==typeof SuppressedError&&SuppressedError;const cd=e=>e&&"number"==typeof e.length&&"function"!=typeof e;function dd(e){return ce(e?.then)}function fd(e){return ce(e[ia])}function hd(e){return Symbol.asyncIterator&&ce(e?.[Symbol.asyncIterator])}function pd(e){return new TypeError(`You provided ${null!==e&&"object"==typeof e?"an invalid object":`'${e}'`} where a stream was expected. You can provide an Observable, Promise, ReadableStream, Array, AsyncIterable, or Iterable.`)}const gd=function G_(){return"function"==typeof Symbol&&Symbol.iterator?Symbol.iterator:"@@iterator"}();function md(e){return ce(e?.[gd])}function yd(e){return function ld(e,t,n){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var o,r=n.apply(e,t||[]),i=[];return o={},s("next"),s("throw"),s("return"),o[Symbol.asyncIterator]=function(){return this},o;function s(f){r[f]&&(o[f]=function(h){return new Promise(function(p,m){i.push([f,h,p,m])>1||a(f,h)})})}function a(f,h){try{!function l(f){f.value instanceof dn?Promise.resolve(f.value.v).then(u,c):d(i[0][2],f)}(r[f](h))}catch(p){d(i[0][3],p)}}function u(f){a("next",f)}function c(f){a("throw",f)}function d(f,h){f(h),i.shift(),i.length&&a(i[0][0],i[0][1])}}(this,arguments,function*(){const n=e.getReader();try{for(;;){const{value:r,done:o}=yield dn(n.read());if(o)return yield dn(void 0);yield yield dn(r)}}finally{n.releaseLock()}})}function Dd(e){return ce(e?.getReader)}function Mt(e){if(e instanceof He)return e;if(null!=e){if(fd(e))return function Q_(e){return new He(t=>{const n=e[ia]();if(ce(n.subscribe))return n.subscribe(t);throw new TypeError("Provided object does not correctly implement Symbol.observable")})}(e);if(cd(e))return function z_(e){return new He(t=>{for(let n=0;n{e.then(n=>{t.closed||(t.next(n),t.complete())},n=>t.error(n)).then(null,td)})}(e);if(hd(e))return vd(e);if(md(e))return function W_(e){return new He(t=>{for(const n of e)if(t.next(n),t.closed)return;t.complete()})}(e);if(Dd(e))return function Z_(e){return vd(yd(e))}(e)}throw pd(e)}function vd(e){return new He(t=>{(function Y_(e,t){var n,r,o,i;return function sd(e,t,n,r){return new(n||(n=Promise))(function(i,s){function a(c){try{u(r.next(c))}catch(d){s(d)}}function l(c){try{u(r.throw(c))}catch(d){s(d)}}function u(c){c.done?i(c.value):function o(i){return i instanceof n?i:new n(function(s){s(i)})}(c.value).then(a,l)}u((r=r.apply(e,t||[])).next())})}(this,void 0,void 0,function*(){try{for(n=ud(e);!(r=yield n.next()).done;)if(t.next(r.value),t.closed)return}catch(s){o={error:s}}finally{try{r&&!r.done&&(i=n.return)&&(yield i.call(n))}finally{if(o)throw o.error}}t.complete()})})(e,t).catch(n=>t.error(n))})}function fn(e,t,n,r=0,o=!1){const i=t.schedule(function(){n(),o?e.add(this.schedule(null,r)):this.unsubscribe()},r);if(e.add(i),!o)return i}function _d(e,t,n=1/0){return ce(t)?_d((r,o)=>function la(e,t){return Rn((n,r)=>{let o=0;n.subscribe(cn(r,i=>{r.next(e.call(t,i,o++))}))})}((i,s)=>t(r,i,o,s))(Mt(e(r,o))),n):("number"==typeof t&&(n=t),Rn((r,o)=>function K_(e,t,n,r,o,i,s,a){const l=[];let u=0,c=0,d=!1;const f=()=>{d&&!l.length&&!u&&t.complete()},h=m=>u{i&&t.next(m),u++;let y=!1;Mt(n(m,c++)).subscribe(cn(t,v=>{o?.(v),i?h(v):t.next(v)},()=>{y=!0},void 0,()=>{if(y)try{for(u--;l.length&&up(v)):p(v)}f()}catch(v){t.error(v)}}))};return e.subscribe(cn(t,h,()=>{d=!0,f()})),()=>{a?.()}}(r,o,e,n)))}const Cd=new He(e=>e.complete());function ha(e){return e[e.length-1]}function wd(e){return function eC(e){return e&&ce(e.schedule)}(ha(e))?e.pop():void 0}function Ed(e,t=0){return Rn((n,r)=>{n.subscribe(cn(r,o=>fn(r,e,()=>r.next(o),t),()=>fn(r,e,()=>r.complete(),t),o=>fn(r,e,()=>r.error(o),t)))})}function Sd(e,t=0){return Rn((n,r)=>{r.add(e.schedule(()=>n.subscribe(r),t))})}function bd(e,t){if(!e)throw new Error("Iterable cannot be null");return new He(n=>{fn(n,t,()=>{const r=e[Symbol.asyncIterator]();fn(n,t,()=>{r.next().then(o=>{o.done?n.complete():n.next(o.value)})},0,!0)})})}function pa(e,t){return t?function lC(e,t){if(null!=e){if(fd(e))return function rC(e,t){return Mt(e).pipe(Sd(t),Ed(t))}(e,t);if(cd(e))return function iC(e,t){return new He(n=>{let r=0;return t.schedule(function(){r===e.length?n.complete():(n.next(e[r++]),n.closed||this.schedule())})})}(e,t);if(dd(e))return function oC(e,t){return Mt(e).pipe(Sd(t),Ed(t))}(e,t);if(hd(e))return bd(e,t);if(md(e))return function sC(e,t){return new He(n=>{let r;return fn(n,t,()=>{r=e[gd](),fn(n,t,()=>{let o,i;try{({value:o,done:i}=r.next())}catch(s){return void n.error(s)}i?n.complete():n.next(o)},0,!0)}),()=>ce(r?.return)&&r.return()})}(e,t);if(Dd(e))return function aC(e,t){return bd(yd(e),t)}(e,t)}throw pd(e)}(e,t):Mt(e)}function Ad(e={}){const{connector:t=(()=>new Hr),resetOnError:n=!0,resetOnComplete:r=!0,resetOnRefCountZero:o=!0}=e;return i=>{let s,a,l,u=0,c=!1,d=!1;const f=()=>{a?.unsubscribe(),a=void 0},h=()=>{f(),s=l=void 0,c=d=!1},p=()=>{const m=s;h(),m?.unsubscribe()};return Rn((m,y)=>{u++,!d&&!c&&f();const v=l=l??t();y.add(()=>{u--,0===u&&!d&&!c&&(a=ga(p,o))}),v.subscribe(y),!s&&u>0&&(s=new Br({next:g=>v.next(g),error:g=>{d=!0,f(),a=ga(h,n,g),v.error(g)},complete:()=>{c=!0,f(),a=ga(h,r),v.complete()}}),Mt(m).subscribe(s))})(i)}}function ga(e,t,...n){if(!0===t)return void e();if(!1===t)return;const r=new Br({next:()=>{r.unsubscribe(),e()}});return Mt(t(...n)).subscribe(r)}function hC(e,t){return e===t}function X(e){for(let t in e)if(e[t]===X)return t;throw Error("Could not find renamed property on target object.")}function oi(e,t){for(const n in t)t.hasOwnProperty(n)&&!e.hasOwnProperty(n)&&(e[n]=t[n])}function we(e){if("string"==typeof e)return e;if(Array.isArray(e))return"["+e.map(we).join(", ")+"]";if(null==e)return""+e;if(e.overriddenName)return`${e.overriddenName}`;if(e.name)return`${e.name}`;const t=e.toString();if(null==t)return""+t;const n=t.indexOf("\n");return-1===n?t:t.substring(0,n)}function ma(e,t){return null==e||""===e?null===t?"":t:null==t||""===t?e:e+" "+t}const pC=X({__forward_ref__:X});function re(e){return e.__forward_ref__=re,e.toString=function(){return we(this())},e}function F(e){return ya(e)?e():e}function ya(e){return"function"==typeof e&&e.hasOwnProperty(pC)&&e.__forward_ref__===re}function Da(e){return e&&!!e.\u0275providers}const Md="https://g.co/ng/security#xss";class C extends Error{constructor(t,n){super(function ii(e,t){return`NG0${Math.abs(e)}${t?": "+t:""}`}(t,n)),this.code=t}}function x(e){return"string"==typeof e?e:null==e?"":String(e)}function si(e,t){throw new C(-201,!1)}function ct(e,t){null==e&&function Z(e,t,n,r){throw new Error(`ASSERTION ERROR: ${e}`+(null==r?"":` [Expected=> ${n} ${r} ${t} <=Actual]`))}(t,e,null,"!=")}function Y(e){return{token:e.token,providedIn:e.providedIn||null,factory:e.factory,value:void 0}}function It(e){return{providers:e.providers||[],imports:e.imports||[]}}function ai(e){return Id(e,li)||Id(e,Nd)}function Id(e,t){return e.hasOwnProperty(t)?e[t]:null}function Td(e){return e&&(e.hasOwnProperty(va)||e.hasOwnProperty(CC))?e[va]:null}const li=X({\u0275prov:X}),va=X({\u0275inj:X}),Nd=X({ngInjectableDef:X}),CC=X({ngInjectorDef:X});var N=(()=>((N=N||{})[N.Default=0]="Default",N[N.Host=1]="Host",N[N.Self=2]="Self",N[N.SkipSelf=4]="SkipSelf",N[N.Optional=8]="Optional",N))();let _a;function qe(e){const t=_a;return _a=e,t}function Rd(e,t,n){const r=ai(e);return r&&"root"==r.providedIn?void 0===r.value?r.value=r.factory():r.value:n&N.Optional?null:void 0!==t?t:void si(we(e))}const te=(()=>typeof globalThis<"u"&&globalThis||typeof global<"u"&&global||typeof window<"u"&&window||typeof self<"u"&&typeof WorkerGlobalScope<"u"&&self instanceof WorkerGlobalScope&&self)(),jr={},Ca="__NG_DI_FLAG__",ui="ngTempTokenPath",EC=/\n/gm,xd="__source";let Zn;function pn(e){const t=Zn;return Zn=e,t}function AC(e,t=N.Default){if(void 0===Zn)throw new C(-203,!1);return null===Zn?Rd(e,void 0,t):Zn.get(e,t&N.Optional?null:void 0,t)}function B(e,t=N.Default){return(function Fd(){return _a}()||AC)(F(e),t)}function se(e,t=N.Default){return B(e,ci(t))}function ci(e){return typeof e>"u"||"number"==typeof e?e:0|(e.optional&&8)|(e.host&&1)|(e.self&&2)|(e.skipSelf&&4)}function wa(e){const t=[];for(let n=0;n((Tt=Tt||{})[Tt.OnPush=0]="OnPush",Tt[Tt.Default=1]="Default",Tt))(),rt=(()=>{return(e=rt||(rt={}))[e.Emulated=0]="Emulated",e[e.None=2]="None",e[e.ShadowDom=3]="ShadowDom",rt;var e})();const Nt={},Q=[],di=X({\u0275cmp:X}),Ea=X({\u0275dir:X}),Sa=X({\u0275pipe:X}),Pd=X({\u0275mod:X}),zt=X({\u0275fac:X}),Ur=X({__NG_ELEMENT_ID__:X}),Vd=X({__NG_ENV_ID__:X});function kd(e,t,n){let r=e.length;for(;;){const o=e.indexOf(t,n);if(-1===o)return o;if(0===o||e.charCodeAt(o-1)<=32){const i=t.length;if(o+i===r||e.charCodeAt(o+i)<=32)return o}n=o+1}}function ba(e,t,n){let r=0;for(;rt){s=i-1;break}}}for(;ii?"":o[d+1].toLowerCase();const h=8&r?f:null;if(h&&-1!==kd(h,u,0)||2&r&&u!==f){if(yt(r))return!1;s=!0}}}}else{if(!s&&!yt(r)&&!yt(l))return!1;if(s&&yt(l))continue;s=!1,r=l|1&r}}return yt(r)||s}function yt(e){return 0==(1&e)}function xC(e,t,n,r){if(null===t)return-1;let o=0;if(r||!n){let i=!1;for(;o-1)for(n++;n0?'="'+a+'"':"")+"]"}else 8&r?o+="."+s:4&r&&(o+=" "+s);else""!==o&&!yt(s)&&(t+=Gd(i,o),o=""),r=s,i=i||!yt(r);n++}return""!==o&&(t+=Gd(i,o)),t}function Aa(e){return Qt(()=>{const t=zd(e),n={...t,decls:e.decls,vars:e.vars,template:e.template,consts:e.consts||null,ngContentSelectors:e.ngContentSelectors,onPush:e.changeDetection===Tt.OnPush,directiveDefs:null,pipeDefs:null,dependencies:t.standalone&&e.dependencies||null,getStandaloneInjector:null,signals:e.signals??!1,data:e.data||{},encapsulation:e.encapsulation||rt.Emulated,styles:e.styles||Q,_:null,schemas:e.schemas||null,tView:null,id:""};qd(n);const r=e.dependencies;return n.directiveDefs=fi(r,!1),n.pipeDefs=fi(r,!0),n.id=function zC(e){let t=0;const n=[e.selectors,e.ngContentSelectors,e.hostVars,e.hostAttrs,e.consts,e.vars,e.decls,e.encapsulation,e.standalone,e.signals,e.exportAs,JSON.stringify(e.inputs),JSON.stringify(e.outputs),Object.getOwnPropertyNames(e.type.prototype),!!e.contentQueries,!!e.viewQuery].join("|");for(const o of n)t=Math.imul(31,t)+o.charCodeAt(0)<<0;return t+=2147483648,"c"+t}(n),n})}function $C(e){return q(e)||Re(e)}function UC(e){return null!==e}function qt(e){return Qt(()=>({type:e.type,bootstrap:e.bootstrap||Q,declarations:e.declarations||Q,imports:e.imports||Q,exports:e.exports||Q,transitiveCompileScopes:null,schemas:e.schemas||null,id:e.id||null}))}function Qd(e,t){if(null==e)return Nt;const n={};for(const r in e)if(e.hasOwnProperty(r)){let o=e[r],i=o;Array.isArray(o)&&(i=o[1],o=o[0]),n[o]=r,t&&(t[o]=i)}return n}function O(e){return Qt(()=>{const t=zd(e);return qd(t),t})}function je(e){return{type:e.type,name:e.name,factory:null,pure:!1!==e.pure,standalone:!0===e.standalone,onDestroy:e.type.prototype.ngOnDestroy||null}}function q(e){return e[di]||null}function Re(e){return e[Ea]||null}function We(e){return e[Sa]||null}function zd(e){const t={};return{type:e.type,providersResolver:null,factory:null,hostBindings:e.hostBindings||null,hostVars:e.hostVars||0,hostAttrs:e.hostAttrs||null,contentQueries:e.contentQueries||null,declaredInputs:t,inputTransforms:null,inputConfig:e.inputs||Nt,exportAs:e.exportAs||null,standalone:!0===e.standalone,signals:!0===e.signals,selectors:e.selectors||Q,viewQuery:e.viewQuery||null,features:e.features||null,setInput:null,findHostDirectiveDefs:null,hostDirectives:null,inputs:Qd(e.inputs,t),outputs:Qd(e.outputs)}}function qd(e){e.features?.forEach(t=>t(e))}function fi(e,t){if(!e)return null;const n=t?We:$C;return()=>("function"==typeof e?e():e).map(r=>n(r)).filter(UC)}const Ee=0,S=1,P=2,de=3,Dt=4,zr=5,xe=6,Yn=7,ye=8,Kn=9,xn=10,V=11,qr=12,Wd=13,Xn=14,De=15,Wr=16,Jn=17,Ft=18,Zr=19,Zd=20,gn=21,Wt=22,hi=23,pi=24,j=25,Ma=1,Yd=2,Rt=7,er=9,Oe=11;function it(e){return Array.isArray(e)&&"object"==typeof e[Ma]}function Ze(e){return Array.isArray(e)&&!0===e[Ma]}function Ia(e){return 0!=(4&e.flags)}function On(e){return e.componentOffset>-1}function mi(e){return 1==(1&e.flags)}function vt(e){return!!e.template}function Ta(e){return 0!=(512&e[P])}function Pn(e,t){return e.hasOwnProperty(zt)?e[zt]:null}let XC=te.WeakRef??class KC{constructor(t){this.ref=t}deref(){return this.ref}},ew=0,xt=null,yi=!1;function Ie(e){const t=xt;return xt=e,t}class tf{constructor(){this.id=ew++,this.ref=function JC(e){return new XC(e)}(this),this.producers=new Map,this.consumers=new Map,this.trackingVersion=0,this.valueVersion=0}consumerPollProducersForChange(){for(const[t,n]of this.producers){const r=n.producerNode.deref();if(void 0!==r&&n.atTrackingVersion===this.trackingVersion){if(r.producerPollStatus(n.seenValueVersion))return!0}else this.producers.delete(t),r?.consumers.delete(this.id)}return!1}producerMayHaveChanged(){const t=yi;yi=!0;try{for(const[n,r]of this.consumers){const o=r.consumerNode.deref();void 0!==o&&o.trackingVersion===r.atTrackingVersion?o.onConsumerDependencyMayHaveChanged():(this.consumers.delete(n),o?.producers.delete(this.id))}}finally{yi=t}}producerAccessed(){if(yi)throw new Error("");if(null===xt)return;let t=xt.producers.get(this.id);void 0===t?(t={consumerNode:xt.ref,producerNode:this.ref,seenValueVersion:this.valueVersion,atTrackingVersion:xt.trackingVersion},xt.producers.set(this.id,t),this.consumers.set(xt.id,t)):(t.seenValueVersion=this.valueVersion,t.atTrackingVersion=xt.trackingVersion)}get hasProducers(){return this.producers.size>0}get producerUpdatesAllowed(){return!1!==xt?.consumerAllowSignalWrites}producerPollStatus(t){return this.valueVersion!==t||(this.onProducerUpdateValueVersion(),this.valueVersion!==t)}}let nf=null;const of=()=>{};class ow extends tf{constructor(t,n,r){super(),this.watch=t,this.schedule=n,this.dirty=!1,this.cleanupFn=of,this.registerOnCleanup=o=>{this.cleanupFn=o},this.consumerAllowSignalWrites=r}notify(){this.dirty||this.schedule(this),this.dirty=!0}onConsumerDependencyMayHaveChanged(){this.notify()}onProducerUpdateValueVersion(){}run(){if(this.dirty=!1,0!==this.trackingVersion&&!this.consumerPollProducersForChange())return;const t=Ie(this);this.trackingVersion++;try{this.cleanupFn(),this.cleanupFn=of,this.watch(this.registerOnCleanup)}finally{Ie(t)}}cleanup(){this.cleanupFn()}}class iw{constructor(t,n,r){this.previousValue=t,this.currentValue=n,this.firstChange=r}isFirstChange(){return this.firstChange}}function sf(e){return e.type.prototype.ngOnChanges&&(e.setInput=aw),sw}function sw(){const e=lf(this),t=e?.current;if(t){const n=e.previous;if(n===Nt)e.previous=t;else for(let r in t)n[r]=t[r];e.current=null,this.ngOnChanges(t)}}function aw(e,t,n,r){const o=this.declaredInputs[n],i=lf(e)||function lw(e,t){return e[af]=t}(e,{previous:Nt,current:null}),s=i.current||(i.current={}),a=i.previous,l=a[o];s[o]=new iw(l&&l.currentValue,t,a===Nt),e[r]=t}const af="__ngSimpleChanges__";function lf(e){return e[af]||null}const Ot=function(e,t,n){};function ae(e){for(;Array.isArray(e);)e=e[Ee];return e}function _i(e,t){return ae(t[e])}function Ye(e,t){return ae(t[e.index])}function df(e,t){return e.data[t]}function tr(e,t){return e[t]}function st(e,t){const n=t[e];return it(n)?n:n[Ee]}function mn(e,t){return null==t?null:e[t]}function ff(e){e[Jn]=0}function gw(e){1024&e[P]||(e[P]|=1024,pf(e,1))}function hf(e){1024&e[P]&&(e[P]&=-1025,pf(e,-1))}function pf(e,t){let n=e[de];if(null===n)return;n[zr]+=t;let r=n;for(n=n[de];null!==n&&(1===t&&1===r[zr]||-1===t&&0===r[zr]);)n[zr]+=t,r=n,n=n[de]}const T={lFrame:bf(null),bindingsEnabled:!0,skipHydrationRootTNode:null};function yf(){return T.bindingsEnabled}function D(){return T.lFrame.lView}function $(){return T.lFrame.tView}function Ke(e){return T.lFrame.contextLView=e,e[ye]}function Xe(e){return T.lFrame.contextLView=null,e}function Te(){let e=Df();for(;null!==e&&64===e.type;)e=e.parent;return e}function Df(){return T.lFrame.currentTNode}function Pt(e,t){const n=T.lFrame;n.currentTNode=e,n.isParent=t}function Pa(){return T.lFrame.isParent}function $e(){const e=T.lFrame;let t=e.bindingRootIndex;return-1===t&&(t=e.bindingRootIndex=e.tView.bindingStartIndex),t}function rr(){return T.lFrame.bindingIndex++}function Mw(e,t){const n=T.lFrame;n.bindingIndex=n.bindingRootIndex=e,ka(t)}function ka(e){T.lFrame.currentDirectiveIndex=e}function wf(){return T.lFrame.currentQueryIndex}function Ba(e){T.lFrame.currentQueryIndex=e}function Tw(e){const t=e[S];return 2===t.type?t.declTNode:1===t.type?e[xe]:null}function Ef(e,t,n){if(n&N.SkipSelf){let o=t,i=e;for(;!(o=o.parent,null!==o||n&N.Host||(o=Tw(i),null===o||(i=i[Xn],10&o.type))););if(null===o)return!1;t=o,e=i}const r=T.lFrame=Sf();return r.currentTNode=t,r.lView=e,!0}function Ha(e){const t=Sf(),n=e[S];T.lFrame=t,t.currentTNode=n.firstChild,t.lView=e,t.tView=n,t.contextLView=e,t.bindingIndex=n.bindingStartIndex,t.inI18n=!1}function Sf(){const e=T.lFrame,t=null===e?null:e.child;return null===t?bf(e):t}function bf(e){const t={currentTNode:null,isParent:!0,lView:null,tView:null,selectedIndex:-1,contextLView:null,elementDepthCount:0,currentNamespace:null,currentDirectiveIndex:-1,bindingRootIndex:-1,bindingIndex:-1,currentQueryIndex:0,parent:e,child:null,inI18n:!1};return null!==e&&(e.child=t),t}function Af(){const e=T.lFrame;return T.lFrame=e.parent,e.currentTNode=null,e.lView=null,e}const Mf=Af;function ja(){const e=Af();e.isParent=!0,e.tView=null,e.selectedIndex=-1,e.contextLView=null,e.elementDepthCount=0,e.currentDirectiveIndex=-1,e.currentNamespace=null,e.bindingRootIndex=-1,e.bindingIndex=-1,e.currentQueryIndex=0}function Ue(){return T.lFrame.selectedIndex}function Vn(e){T.lFrame.selectedIndex=e}let Tf=!0;function Ci(){return Tf}function yn(e){Tf=e}function wi(e,t){for(let n=t.directiveStart,r=t.directiveEnd;n=r)break}else t[l]<0&&(e[Jn]+=65536),(a>13>16&&(3&e[P])===t&&(e[P]+=8192,Ff(a,i)):Ff(a,i)}const or=-1;class Xr{constructor(t,n,r){this.factory=t,this.resolving=!1,this.canSeeViewProviders=n,this.injectImpl=r}}function Rf(e){return e!==or}function bi(e){return 32767&e}function Ai(e,t){let n=function jw(e){return e>>16}(e),r=t;for(;n>0;)r=r[Xn],n--;return r}let Ga=!0;function Mi(e){const t=Ga;return Ga=e,t}const xf=255,Of=5;let $w=0;const Vt={};function Ii(e,t){const n=Pf(e,t);if(-1!==n)return n;const r=t[S];r.firstCreatePass&&(e.injectorIndex=t.length,Qa(r.data,e),Qa(t,null),Qa(r.blueprint,null));const o=za(e,t),i=e.injectorIndex;if(Rf(o)){const s=bi(o),a=Ai(o,t),l=a[S].data;for(let u=0;u<8;u++)t[i+u]=a[s+u]|l[s+u]}return t[i+8]=o,i}function Qa(e,t){e.push(0,0,0,0,0,0,0,0,t)}function Pf(e,t){return-1===e.injectorIndex||e.parent&&e.parent.injectorIndex===e.injectorIndex||null===t[e.injectorIndex+8]?-1:e.injectorIndex}function za(e,t){if(e.parent&&-1!==e.parent.injectorIndex)return e.parent.injectorIndex;let n=0,r=null,o=t;for(;null!==o;){if(r=$f(o),null===r)return or;if(n++,o=o[Xn],-1!==r.injectorIndex)return r.injectorIndex|n<<16}return or}function qa(e,t,n){!function Uw(e,t,n){let r;"string"==typeof n?r=n.charCodeAt(0)||0:n.hasOwnProperty(Ur)&&(r=n[Ur]),null==r&&(r=n[Ur]=$w++);const o=r&xf;t.data[e+(o>>Of)]|=1<=0?t&xf:qw:t}(n);if("function"==typeof i){if(!Ef(t,e,r))return r&N.Host?Vf(o,0,r):kf(t,n,r,o);try{const s=i(r);if(null!=s||r&N.Optional)return s;si()}finally{Mf()}}else if("number"==typeof i){let s=null,a=Pf(e,t),l=or,u=r&N.Host?t[De][xe]:null;for((-1===a||r&N.SkipSelf)&&(l=-1===a?za(e,t):t[a+8],l!==or&&jf(r,!1)?(s=t[S],a=bi(l),t=Ai(l,t)):a=-1);-1!==a;){const c=t[S];if(Hf(i,a,c.data)){const d=Qw(a,t,n,s,r,u);if(d!==Vt)return d}l=t[a+8],l!==or&&jf(r,t[S].data[a+8]===u)&&Hf(i,a,t)?(s=c,a=bi(l),t=Ai(l,t)):a=-1}}return o}function Qw(e,t,n,r,o,i){const s=t[S],a=s.data[e+8],c=Ti(a,s,n,null==r?On(a)&&Ga:r!=s&&0!=(3&a.type),o&N.Host&&i===a);return null!==c?kn(t,s,c,a):Vt}function Ti(e,t,n,r,o){const i=e.providerIndexes,s=t.data,a=1048575&i,l=e.directiveStart,c=i>>20,f=o?a+c:e.directiveEnd;for(let h=r?a:a+c;h=l&&p.type===n)return h}if(o){const h=s[l];if(h&&vt(h)&&h.type===n)return l}return null}function kn(e,t,n,r){let o=e[n];const i=t.data;if(function Lw(e){return e instanceof Xr}(o)){const s=o;s.resolving&&function gC(e,t){const n=t?`. Dependency path: ${t.join(" > ")} > ${e}`:"";throw new C(-200,`Circular dependency in DI detected for ${e}${n}`)}(function W(e){return"function"==typeof e?e.name||e.toString():"object"==typeof e&&null!=e&&"function"==typeof e.type?e.type.name||e.type.toString():x(e)}(i[n]));const a=Mi(s.canSeeViewProviders);s.resolving=!0;const l=s.injectImpl?qe(s.injectImpl):null;Ef(e,r,N.Default);try{o=e[n]=s.factory(void 0,i,e,r),t.firstCreatePass&&n>=r.directiveStart&&function Vw(e,t,n){const{ngOnChanges:r,ngOnInit:o,ngDoCheck:i}=t.type.prototype;if(r){const s=sf(t);(n.preOrderHooks??=[]).push(e,s),(n.preOrderCheckHooks??=[]).push(e,s)}o&&(n.preOrderHooks??=[]).push(0-e,o),i&&((n.preOrderHooks??=[]).push(e,i),(n.preOrderCheckHooks??=[]).push(e,i))}(n,i[n],t)}finally{null!==l&&qe(l),Mi(a),s.resolving=!1,Mf()}}return o}function Hf(e,t,n){return!!(n[t+(e>>Of)]&1<{const t=e.prototype.constructor,n=t[zt]||Wa(t),r=Object.prototype;let o=Object.getPrototypeOf(e.prototype).constructor;for(;o&&o!==r;){const i=o[zt]||Wa(o);if(i&&i!==n)return i;o=Object.getPrototypeOf(o)}return i=>new i})}function Wa(e){return ya(e)?()=>{const t=Wa(F(e));return t&&t()}:Pn(e)}function $f(e){const t=e[S],n=t.type;return 2===n?t.declTNode:1===n?e[xe]:null}const ar="__parameters__";function ur(e,t,n){return Qt(()=>{const r=function Ya(e){return function(...n){if(e){const r=e(...n);for(const o in r)this[o]=r[o]}}}(t);function o(...i){if(this instanceof o)return r.apply(this,i),this;const s=new o(...i);return a.annotation=s,a;function a(l,u,c){const d=l.hasOwnProperty(ar)?l[ar]:Object.defineProperty(l,ar,{value:[]})[ar];for(;d.length<=c;)d.push(null);return(d[c]=d[c]||[]).push(s),l}}return n&&(o.prototype=Object.create(n.prototype)),o.prototype.ngMetadataName=e,o.annotationCls=o,o})}function to(e,t){e.forEach(n=>Array.isArray(n)?to(n,t):t(n))}function Gf(e,t,n){t>=e.length?e.push(n):e.splice(t,0,n)}function Ni(e,t){return t>=e.length-1?e.pop():e.splice(t,1)[0]}function at(e,t,n){let r=cr(e,t);return r>=0?e[1|r]=n:(r=~r,function Jw(e,t,n,r){let o=e.length;if(o==t)e.push(n,r);else if(1===o)e.push(r,e[0]),e[0]=n;else{for(o--,e.push(e[o-1],e[o]);o>t;)e[o]=e[o-2],o--;e[t]=n,e[t+1]=r}}(e,r,t,n)),r}function Ka(e,t){const n=cr(e,t);if(n>=0)return e[1|n]}function cr(e,t){return function Qf(e,t,n){let r=0,o=e.length>>n;for(;o!==r;){const i=r+(o-r>>1),s=e[i<t?o=i:r=i+1}return~(o<((Je=Je||{})[Je.Important=1]="Important",Je[Je.DashCase=2]="DashCase",Je))();const il=new Map;let EE=0;const al="__ngContext__";function Ve(e,t){it(t)?(e[al]=t[Zr],function bE(e){il.set(e[Zr],e)}(t)):e[al]=t}let ll;function ul(e,t){return ll(e,t)}function io(e){const t=e[de];return Ze(t)?t[de]:t}function dh(e){return hh(e[qr])}function fh(e){return hh(e[Dt])}function hh(e){for(;null!==e&&!Ze(e);)e=e[Dt];return e}function hr(e,t,n,r,o){if(null!=r){let i,s=!1;Ze(r)?i=r:it(r)&&(s=!0,r=r[Ee]);const a=ae(r);0===e&&null!==n?null==o?Dh(t,n,a):Ln(t,n,a,o||null,!0):1===e&&null!==n?Ln(t,n,a,o||null,!0):2===e?function ji(e,t,n){const r=Bi(e,t);r&&function GE(e,t,n,r){e.removeChild(t,n,r)}(e,r,t,n)}(t,a,s):3===e&&t.destroyNode(a),null!=i&&function qE(e,t,n,r,o){const i=n[Rt];i!==ae(n)&&hr(t,e,r,i,o);for(let a=Oe;a0&&(e[n-1][Dt]=r[Dt]);const i=Ni(e,Oe+t);!function VE(e,t){ao(e,t,t[V],2,null,null),t[Ee]=null,t[xe]=null}(r[S],r);const s=i[Ft];null!==s&&s.detachView(i[S]),r[de]=null,r[Dt]=null,r[P]&=-129}return r}function mh(e,t){if(!(256&t[P])){const n=t[V];t[hi]?.destroy(),t[pi]?.destroy(),n.destroyNode&&ao(e,t,n,3,null,null),function BE(e){let t=e[qr];if(!t)return fl(e[S],e);for(;t;){let n=null;if(it(t))n=t[qr];else{const r=t[Oe];r&&(n=r)}if(!n){for(;t&&!t[Dt]&&t!==e;)it(t)&&fl(t[S],t),t=t[de];null===t&&(t=e),it(t)&&fl(t[S],t),n=t&&t[Dt]}t=n}}(t)}}function fl(e,t){if(!(256&t[P])){t[P]&=-129,t[P]|=256,function UE(e,t){let n;if(null!=e&&null!=(n=e.destroyHooks))for(let r=0;r=0?r[s]():r[-s].unsubscribe(),i+=2}else n[i].call(r[n[i+1]]);null!==r&&(t[Yn]=null);const o=t[gn];if(null!==o){t[gn]=null;for(let i=0;i-1){const{encapsulation:i}=e.data[r.directiveStart+o];if(i===rt.None||i===rt.Emulated)return null}return Ye(r,n)}}(e,t.parent,n)}function Ln(e,t,n,r,o){e.insertBefore(t,n,r,o)}function Dh(e,t,n){e.appendChild(t,n)}function vh(e,t,n,r,o){null!==r?Ln(e,t,n,r,o):Dh(e,t,n)}function Bi(e,t){return e.parentNode(t)}let pl,$i,Dl,wh=function Ch(e,t,n){return 40&e.type?Ye(e,n):null};function Hi(e,t,n,r){const o=hl(e,r,t),i=t[V],a=function _h(e,t,n){return wh(e,t,n)}(r.parent||t[xe],r,t);if(null!=o)if(Array.isArray(n))for(let l=0;le,createScript:e=>e,createScriptURL:e=>e})}catch{}return $i}()?.createHTML(e)||e}class Bn{constructor(t){this.changingThisBreaksApplicationSecurity=t}toString(){return`SafeValue must use [property]=binding: ${this.changingThisBreaksApplicationSecurity} (see ${Md})`}}class eS extends Bn{getTypeName(){return"HTML"}}class tS extends Bn{getTypeName(){return"Style"}}class nS extends Bn{getTypeName(){return"Script"}}class rS extends Bn{getTypeName(){return"URL"}}class oS extends Bn{getTypeName(){return"ResourceURL"}}function lt(e){return e instanceof Bn?e.changingThisBreaksApplicationSecurity:e}function kt(e,t){const n=function iS(e){return e instanceof Bn&&e.getTypeName()||null}(e);if(null!=n&&n!==t){if("ResourceURL"===n&&"URL"===t)return!0;throw new Error(`Required a safe ${t}, got a ${n} (see ${Md})`)}return n===t}class dS{constructor(t){this.inertDocumentHelper=t}getInertBodyElement(t){t=""+t;try{const n=(new window.DOMParser).parseFromString(pr(t),"text/html").body;return null===n?this.inertDocumentHelper.getInertBodyElement(t):(n.removeChild(n.firstChild),n)}catch{return null}}}class fS{constructor(t){this.defaultDoc=t,this.inertDocument=this.defaultDoc.implementation.createHTMLDocument("sanitization-inert")}getInertBodyElement(t){const n=this.inertDocument.createElement("template");return n.innerHTML=pr(t),n}}const pS=/^(?!javascript:)(?:[a-z0-9+.-]+:|[^&:\/?#]*(?:[\/?#]|$))/i;function Gi(e){return(e=String(e)).match(pS)?e:"unsafe:"+e}function Xt(e){const t={};for(const n of e.split(","))t[n]=!0;return t}function uo(...e){const t={};for(const n of e)for(const r in n)n.hasOwnProperty(r)&&(t[r]=!0);return t}const xh=Xt("area,br,col,hr,img,wbr"),Oh=Xt("colgroup,dd,dt,li,p,tbody,td,tfoot,th,thead,tr"),Ph=Xt("rp,rt"),_l=uo(xh,uo(Oh,Xt("address,article,aside,blockquote,caption,center,del,details,dialog,dir,div,dl,figure,figcaption,footer,h1,h2,h3,h4,h5,h6,header,hgroup,hr,ins,main,map,menu,nav,ol,pre,section,summary,table,ul")),uo(Ph,Xt("a,abbr,acronym,audio,b,bdi,bdo,big,br,cite,code,del,dfn,em,font,i,img,ins,kbd,label,map,mark,picture,q,ruby,rp,rt,s,samp,small,source,span,strike,strong,sub,sup,time,track,tt,u,var,video")),uo(Ph,Oh)),Cl=Xt("background,cite,href,itemtype,longdesc,poster,src,xlink:href"),Vh=uo(Cl,Xt("abbr,accesskey,align,alt,autoplay,axis,bgcolor,border,cellpadding,cellspacing,class,clear,color,cols,colspan,compact,controls,coords,datetime,default,dir,download,face,headers,height,hidden,hreflang,hspace,ismap,itemscope,itemprop,kind,label,lang,language,loop,media,muted,nohref,nowrap,open,preload,rel,rev,role,rows,rowspan,rules,scope,scrolling,shape,size,sizes,span,srclang,srcset,start,summary,tabindex,target,title,translate,type,usemap,valign,value,vspace,width"),Xt("aria-activedescendant,aria-atomic,aria-autocomplete,aria-busy,aria-checked,aria-colcount,aria-colindex,aria-colspan,aria-controls,aria-current,aria-describedby,aria-details,aria-disabled,aria-dropeffect,aria-errormessage,aria-expanded,aria-flowto,aria-grabbed,aria-haspopup,aria-hidden,aria-invalid,aria-keyshortcuts,aria-label,aria-labelledby,aria-level,aria-live,aria-modal,aria-multiline,aria-multiselectable,aria-orientation,aria-owns,aria-placeholder,aria-posinset,aria-pressed,aria-readonly,aria-relevant,aria-required,aria-roledescription,aria-rowcount,aria-rowindex,aria-rowspan,aria-selected,aria-setsize,aria-sort,aria-valuemax,aria-valuemin,aria-valuenow,aria-valuetext")),gS=Xt("script,style,template");class mS{constructor(){this.sanitizedSomething=!1,this.buf=[]}sanitizeChildren(t){let n=t.firstChild,r=!0;for(;n;)if(n.nodeType===Node.ELEMENT_NODE?r=this.startElement(n):n.nodeType===Node.TEXT_NODE?this.chars(n.nodeValue):this.sanitizedSomething=!0,r&&n.firstChild)n=n.firstChild;else for(;n;){n.nodeType===Node.ELEMENT_NODE&&this.endElement(n);let o=this.checkClobberedElement(n,n.nextSibling);if(o){n=o;break}n=this.checkClobberedElement(n,n.parentNode)}return this.buf.join("")}startElement(t){const n=t.nodeName.toLowerCase();if(!_l.hasOwnProperty(n))return this.sanitizedSomething=!0,!gS.hasOwnProperty(n);this.buf.push("<"),this.buf.push(n);const r=t.attributes;for(let o=0;o"),!0}endElement(t){const n=t.nodeName.toLowerCase();_l.hasOwnProperty(n)&&!xh.hasOwnProperty(n)&&(this.buf.push(""))}chars(t){this.buf.push(kh(t))}checkClobberedElement(t,n){if(n&&(t.compareDocumentPosition(n)&Node.DOCUMENT_POSITION_CONTAINED_BY)===Node.DOCUMENT_POSITION_CONTAINED_BY)throw new Error(`Failed to sanitize html because the element is clobbered: ${t.outerHTML}`);return n}}const yS=/[\uD800-\uDBFF][\uDC00-\uDFFF]/g,DS=/([^\#-~ |!])/g;function kh(e){return e.replace(/&/g,"&").replace(yS,function(t){return"&#"+(1024*(t.charCodeAt(0)-55296)+(t.charCodeAt(1)-56320)+65536)+";"}).replace(DS,function(t){return"&#"+t.charCodeAt(0)+";"}).replace(//g,">")}let Qi;function Lh(e,t){let n=null;try{Qi=Qi||function Rh(e){const t=new fS(e);return function hS(){try{return!!(new window.DOMParser).parseFromString(pr(""),"text/html")}catch{return!1}}()?new dS(t):t}(e);let r=t?String(t):"";n=Qi.getInertBodyElement(r);let o=5,i=r;do{if(0===o)throw new Error("Failed to sanitize html because the input is unstable");o--,r=i,i=n.innerHTML,n=Qi.getInertBodyElement(r)}while(r!==i);return pr((new mS).sanitizeChildren(wl(n)||n))}finally{if(n){const r=wl(n)||n;for(;r.firstChild;)r.removeChild(r.firstChild)}}}function wl(e){return"content"in e&&function vS(e){return e.nodeType===Node.ELEMENT_NODE&&"TEMPLATE"===e.nodeName}(e)?e.content:null}var oe=(()=>((oe=oe||{})[oe.NONE=0]="NONE",oe[oe.HTML=1]="HTML",oe[oe.STYLE=2]="STYLE",oe[oe.SCRIPT=3]="SCRIPT",oe[oe.URL=4]="URL",oe[oe.RESOURCE_URL=5]="RESOURCE_URL",oe))();function co(e){const t=function fo(){const e=D();return e&&e[xn].sanitizer}();return t?t.sanitize(oe.URL,e)||"":kt(e,"URL")?lt(e):Gi(x(e))}class M{constructor(t,n){this._desc=t,this.ngMetadataName="InjectionToken",this.\u0275prov=void 0,"number"==typeof n?this.__NG_ELEMENT_ID__=n:void 0!==n&&(this.\u0275prov=Y({token:this,providedIn:n.providedIn||"root",factory:n.factory}))}get multi(){return this}toString(){return`InjectionToken ${this._desc}`}}const zi=new M("ENVIRONMENT_INITIALIZER"),Hh=new M("INJECTOR",-1),jh=new M("INJECTOR_DEF_TYPES");class $h{get(t,n=jr){if(n===jr){const r=new Error(`NullInjectorError: No provider for ${we(t)}!`);throw r.name="NullInjectorError",r}return n}}function MS(...e){return{\u0275providers:Gh(0,e),\u0275fromNgModule:!0}}function Gh(e,...t){const n=[],r=new Set;let o;return to(t,i=>{const s=i;El(s,n,[],r)&&(o||=[],o.push(s))}),void 0!==o&&Qh(o,n),n}function Qh(e,t){for(let n=0;n{t.push(i)})}}function El(e,t,n,r){if(!(e=F(e)))return!1;let o=null,i=Td(e);const s=!i&&q(e);if(i||s){if(s&&!s.standalone)return!1;o=e}else{const l=e.ngModule;if(i=Td(l),!i)return!1;o=l}const a=r.has(o);if(s){if(a)return!1;if(r.add(o),s.dependencies){const l="function"==typeof s.dependencies?s.dependencies():s.dependencies;for(const u of l)El(u,t,n,r)}}else{if(!i)return!1;{if(null!=i.imports&&!a){let u;r.add(o);try{to(i.imports,c=>{El(c,t,n,r)&&(u||=[],u.push(c))})}finally{}void 0!==u&&Qh(u,t)}if(!a){const u=Pn(o)||(()=>new o);t.push({provide:o,useFactory:u,deps:Q},{provide:jh,useValue:o,multi:!0},{provide:zi,useValue:()=>B(o),multi:!0})}const l=i.providers;null==l||a||Sl(l,c=>{t.push(c)})}}return o!==e&&void 0!==e.providers}function Sl(e,t){for(let n of e)Da(n)&&(n=n.\u0275providers),Array.isArray(n)?Sl(n,t):t(n)}const IS=X({provide:String,useValue:X});function bl(e){return null!==e&&"object"==typeof e&&IS in e}function Hn(e){return"function"==typeof e}const Al=new M("Set Injector scope."),qi={},NS={};let Ml;function Wi(){return void 0===Ml&&(Ml=new $h),Ml}class gr{}class Il extends gr{get destroyed(){return this._destroyed}constructor(t,n,r,o){super(),this.parent=n,this.source=r,this.scopes=o,this.records=new Map,this._ngOnDestroyHooks=new Set,this._onDestroyHooks=[],this._destroyed=!1,Nl(t,s=>this.processProvider(s)),this.records.set(Hh,mr(void 0,this)),o.has("environment")&&this.records.set(gr,mr(void 0,this));const i=this.records.get(Al);null!=i&&"string"==typeof i.value&&this.scopes.add(i.value),this.injectorDefTypes=new Set(this.get(jh.multi,Q,N.Self))}destroy(){this.assertNotDestroyed(),this._destroyed=!0;try{for(const n of this._ngOnDestroyHooks)n.ngOnDestroy();const t=this._onDestroyHooks;this._onDestroyHooks=[];for(const n of t)n()}finally{this.records.clear(),this._ngOnDestroyHooks.clear(),this.injectorDefTypes.clear()}}onDestroy(t){return this.assertNotDestroyed(),this._onDestroyHooks.push(t),()=>this.removeOnDestroy(t)}runInContext(t){this.assertNotDestroyed();const n=pn(this),r=qe(void 0);try{return t()}finally{pn(n),qe(r)}}get(t,n=jr,r=N.Default){if(this.assertNotDestroyed(),t.hasOwnProperty(Vd))return t[Vd](this);r=ci(r);const o=pn(this),i=qe(void 0);try{if(!(r&N.SkipSelf)){let a=this.records.get(t);if(void 0===a){const l=function PS(e){return"function"==typeof e||"object"==typeof e&&e instanceof M}(t)&&ai(t);a=l&&this.injectableDefInScope(l)?mr(Tl(t),qi):null,this.records.set(t,a)}if(null!=a)return this.hydrate(t,a)}return(r&N.Self?Wi():this.parent).get(t,n=r&N.Optional&&n===jr?null:n)}catch(s){if("NullInjectorError"===s.name){if((s[ui]=s[ui]||[]).unshift(we(t)),o)throw s;return function IC(e,t,n,r){const o=e[ui];throw t[xd]&&o.unshift(t[xd]),e.message=function TC(e,t,n,r=null){e=e&&"\n"===e.charAt(0)&&"\u0275"==e.charAt(1)?e.slice(2):e;let o=we(t);if(Array.isArray(t))o=t.map(we).join(" -> ");else if("object"==typeof t){let i=[];for(let s in t)if(t.hasOwnProperty(s)){let a=t[s];i.push(s+":"+("string"==typeof a?JSON.stringify(a):we(a)))}o=`{${i.join(", ")}}`}return`${n}${r?"("+r+")":""}[${o}]: ${e.replace(EC,"\n ")}`}("\n"+e.message,o,n,r),e.ngTokenPath=o,e[ui]=null,e}(s,t,"R3InjectorError",this.source)}throw s}finally{qe(i),pn(o)}}resolveInjectorInitializers(){const t=pn(this),n=qe(void 0);try{const r=this.get(zi.multi,Q,N.Self);for(const o of r)o()}finally{pn(t),qe(n)}}toString(){const t=[],n=this.records;for(const r of n.keys())t.push(we(r));return`R3Injector[${t.join(", ")}]`}assertNotDestroyed(){if(this._destroyed)throw new C(205,!1)}processProvider(t){let n=Hn(t=F(t))?t:F(t&&t.provide);const r=function RS(e){return bl(e)?mr(void 0,e.useValue):mr(Wh(e),qi)}(t);if(Hn(t)||!0!==t.multi)this.records.get(n);else{let o=this.records.get(n);o||(o=mr(void 0,qi,!0),o.factory=()=>wa(o.multi),this.records.set(n,o)),n=t,o.multi.push(t)}this.records.set(n,r)}hydrate(t,n){return n.value===qi&&(n.value=NS,n.value=n.factory()),"object"==typeof n.value&&n.value&&function OS(e){return null!==e&&"object"==typeof e&&"function"==typeof e.ngOnDestroy}(n.value)&&this._ngOnDestroyHooks.add(n.value),n.value}injectableDefInScope(t){if(!t.providedIn)return!1;const n=F(t.providedIn);return"string"==typeof n?"any"===n||this.scopes.has(n):this.injectorDefTypes.has(n)}removeOnDestroy(t){const n=this._onDestroyHooks.indexOf(t);-1!==n&&this._onDestroyHooks.splice(n,1)}}function Tl(e){const t=ai(e),n=null!==t?t.factory:Pn(e);if(null!==n)return n;if(e instanceof M)throw new C(204,!1);if(e instanceof Function)return function FS(e){const t=e.length;if(t>0)throw function no(e,t){const n=[];for(let r=0;rn.factory(e):()=>new e}(e);throw new C(204,!1)}function Wh(e,t,n){let r;if(Hn(e)){const o=F(e);return Pn(o)||Tl(o)}if(bl(e))r=()=>F(e.useValue);else if(function qh(e){return!(!e||!e.useFactory)}(e))r=()=>e.useFactory(...wa(e.deps||[]));else if(function zh(e){return!(!e||!e.useExisting)}(e))r=()=>B(F(e.useExisting));else{const o=F(e&&(e.useClass||e.provide));if(!function xS(e){return!!e.deps}(e))return Pn(o)||Tl(o);r=()=>new o(...wa(e.deps))}return r}function mr(e,t,n=!1){return{factory:e,value:t,multi:n?[]:void 0}}function Nl(e,t){for(const n of e)Array.isArray(n)?Nl(n,t):n&&Da(n)?Nl(n.\u0275providers,t):t(n)}const Zi=new M("AppId",{providedIn:"root",factory:()=>VS}),VS="ng",Zh=new M("Platform Initializer"),yr=new M("Platform ID",{providedIn:"platform",factory:()=>"unknown"}),Yh=new M("CSP nonce",{providedIn:"root",factory:()=>function lo(){if(void 0!==Dl)return Dl;if(typeof document<"u")return document;throw new C(210,!1)}().body?.querySelector("[ngCspNonce]")?.getAttribute("ngCspNonce")||null});let Xh=(e,t)=>null;function Jh(e,t){return Xh(e,t)}class QS{}class np{}class qS{resolveComponentFactory(t){throw function zS(e){const t=Error(`No component factory found for ${we(e)}.`);return t.ngComponent=e,t}(t)}}let es=(()=>{class e{}return e.NULL=new qS,e})();function WS(){return Dr(Te(),D())}function Dr(e,t){return new ft(Ye(e,t))}let ft=(()=>{class e{constructor(n){this.nativeElement=n}}return e.__NG_ELEMENT_ID__=WS,e})();function ZS(e){return e instanceof ft?e.nativeElement:e}class op{}let Dn=(()=>{class e{constructor(){this.destroyNode=null}}return e.__NG_ELEMENT_ID__=()=>function YS(){const e=D(),n=st(Te().index,e);return(it(n)?n:e)[V]}(),e})(),KS=(()=>{class e{}return e.\u0275prov=Y({token:e,providedIn:"root",factory:()=>null}),e})();class ts{constructor(t){this.full=t,this.major=t.split(".")[0],this.minor=t.split(".")[1],this.patch=t.split(".").slice(2).join(".")}}const XS=new ts("16.1.4"),jl={};function mo(e){for(;e;){e[P]|=64;const t=io(e);if(Ta(e)&&!t)return e;e=t}return null}function $l(e){return e.ngOriginalError}class jn{constructor(){this._console=console}handleError(t){const n=this._findOriginalError(t);this._console.error("ERROR",t),n&&this._console.error("ORIGINAL ERROR",n)}_findOriginalError(t){let n=t&&$l(t);for(;n&&$l(n);)n=$l(n);return n||null}}const ap=new M("",{providedIn:"root",factory:()=>!1});class fp extends tf{constructor(){super(...arguments),this.consumerAllowSignalWrites=!1,this._lView=null}set lView(t){this._lView=t}onConsumerDependencyMayHaveChanged(){mo(this._lView)}onProducerUpdateValueVersion(){}get hasReadASignal(){return this.hasProducers}runInContext(t,n,r){const o=Ie(this);this.trackingVersion++;try{t(n,r)}finally{Ie(o)}}destroy(){this.trackingVersion++}}let rs=null;function hp(){return rs??=new fp,rs}function pp(e,t){return e[t]??hp()}function gp(e,t){const n=hp();n.hasReadASignal&&(e[t]=rs,n.lView=e,rs=new fp)}const k={};function J(e){mp($(),D(),Ue()+e,!1)}function mp(e,t,n,r){if(!r)if(3==(3&t[P])){const i=e.preOrderCheckHooks;null!==i&&Ei(t,i,n)}else{const i=e.preOrderHooks;null!==i&&Si(t,i,0,n)}Vn(n)}function _p(e,t=null,n=null,r){const o=Cp(e,t,n,r);return o.resolveInjectorInitializers(),o}function Cp(e,t=null,n=null,r,o=new Set){const i=[n||Q,MS(e)];return r=r||("object"==typeof e?void 0:we(e)),new Il(i,t||Wi(),r||null,o)}let en=(()=>{class e{static create(n,r){if(Array.isArray(n))return _p({name:""},r,n,"");{const o=n.name??"";return _p({name:o},n.parent,n.providers,o)}}}return e.THROW_IF_NOT_FOUND=jr,e.NULL=new $h,e.\u0275prov=Y({token:e,providedIn:"any",factory:()=>B(Hh)}),e.__NG_ELEMENT_ID__=-1,e})();function _(e,t=N.Default){const n=D();return null===n?B(e,t):Lf(Te(),n,F(e),t)}function os(e,t,n,r,o,i,s,a,l,u,c){const d=t.blueprint.slice();return d[Ee]=o,d[P]=140|r,(null!==u||e&&2048&e[P])&&(d[P]|=2048),ff(d),d[de]=d[Xn]=e,d[ye]=n,d[xn]=s||e&&e[xn],d[V]=a||e&&e[V],d[Kn]=l||e&&e[Kn]||null,d[xe]=i,d[Zr]=function SE(){return EE++}(),d[Wt]=c,d[Zd]=u,d[De]=2==t.type?e[De]:d,d}function _r(e,t,n,r,o){let i=e.data[t];if(null===i)i=function Ul(e,t,n,r,o){const i=Df(),s=Pa(),l=e.data[t]=function _b(e,t,n,r,o,i){let s=t?t.injectorIndex:-1,a=0;return function nr(){return null!==T.skipHydrationRootTNode}()&&(a|=128),{type:n,index:r,insertBeforeIndex:null,injectorIndex:s,directiveStart:-1,directiveEnd:-1,directiveStylingLast:-1,componentOffset:-1,propertyBindings:null,flags:a,providerIndexes:0,value:o,attrs:i,mergedAttrs:null,localNames:null,initialInputs:void 0,inputs:null,outputs:null,tView:null,next:null,prev:null,projectionNext:null,child:null,parent:t,projection:null,styles:null,stylesWithoutHost:null,residualStyles:void 0,classes:null,classesWithoutHost:null,residualClasses:void 0,classBindings:0,styleBindings:0}}(0,s?i:i&&i.parent,n,t,r,o);return null===e.firstChild&&(e.firstChild=l),null!==i&&(s?null==i.child&&null!==l.parent&&(i.child=l):null===i.next&&(i.next=l,l.prev=i)),l}(e,t,n,r,o),function Aw(){return T.lFrame.inI18n}()&&(i.flags|=32);else if(64&i.type){i.type=n,i.value=r,i.attrs=o;const s=function Kr(){const e=T.lFrame,t=e.currentTNode;return e.isParent?t:t.parent}();i.injectorIndex=null===s?-1:s.injectorIndex}return Pt(i,!0),i}function yo(e,t,n,r){if(0===n)return-1;const o=t.length;for(let i=0;ij&&mp(e,t,j,!1),Ot(a?2:0,o),a)i.runInContext(n,r,o);else{const u=Ie(null);try{n(r,o)}finally{Ie(u)}}}finally{a&&null===t[hi]&&gp(t,hi),Vn(s),Ot(a?3:1,o)}}function Gl(e,t,n){if(Ia(t)){const r=Ie(null);try{const i=t.directiveEnd;for(let s=t.directiveStart;snull;function bp(e,t,n,r){for(let o in e)if(e.hasOwnProperty(o)){n=null===n?{}:n;const i=e[o];null===r?Ap(n,t,o,i):r.hasOwnProperty(o)&&Ap(n,t,r[o],i)}return n}function Ap(e,t,n,r){e.hasOwnProperty(n)?e[n].push(t,r):e[n]=[t,r]}function Wl(e,t,n,r){if(yf()){const o=null===r?null:{"":-1},i=function Tb(e,t){const n=e.directiveRegistry;let r=null,o=null;if(n)for(let i=0;i0;){const n=e[--t];if("number"==typeof n&&n<0)return n}return 0})(s)!=a&&s.push(a),s.push(n,r,i)}}(e,t,r,yo(e,n,o.hostVars,k),o)}function Pb(e,t,n,r,o,i){const s=i[t];if(null!==s)for(let a=0;a{class e{constructor(){this.all=new Set,this.queue=new Map}create(n,r,o){const i=typeof Zone>"u"?null:Zone.current,s=new ow(n,u=>{this.all.has(u)&&this.queue.set(u,i)},o);let a;this.all.add(s),s.notify();const l=()=>{s.cleanup(),a?.(),this.all.delete(s),this.queue.delete(s)};return a=r?.onDestroy(l),{destroy:l}}flush(){if(0!==this.queue.size)for(const[n,r]of this.queue)this.queue.delete(n),r?r.run(()=>n.run()):n.run()}get isQueueEmpty(){return 0===this.queue.size}}return e.\u0275prov=Y({token:e,providedIn:"root",factory:()=>new e}),e})();function ss(e,t,n){let r=n?e.styles:null,o=n?e.classes:null,i=0;if(null!==t)for(let s=0;s0){Lp(e,1);const o=e[S].components;null!==o&&Hp(e,o,1)}}function Hp(e,t,n){for(let r=0;r-1&&(dl(t,r),Ni(n,r))}this._attachedToViewContainer=!1}mh(this._lView[S],this._lView)}onDestroy(t){!function gf(e,t){if(256==(256&e[P]))throw new C(911,!1);null===e[gn]&&(e[gn]=[]),e[gn].push(t)}(this._lView,t)}markForCheck(){mo(this._cdRefInjectingView||this._lView)}detach(){this._lView[P]&=-129}reattach(){this._lView[P]|=128}detectChanges(){as(this._lView[S],this._lView,this.context)}checkNoChanges(){}attachToViewContainerRef(){if(this._appRef)throw new C(902,!1);this._attachedToViewContainer=!0}detachFromAppRef(){this._appRef=null,function LE(e,t){ao(e,t,t[V],2,null,null)}(this._lView[S],this._lView)}attachToAppRef(t){if(this._attachedToViewContainer)throw new C(902,!1);this._appRef=t}}class zb extends vo{constructor(t){super(t),this._view=t}detectChanges(){const t=this._view;as(t[S],t,t[ye],!1)}checkNoChanges(){}get context(){return null}}class jp extends es{constructor(t){super(),this.ngModule=t}resolveComponentFactory(t){const n=q(t);return new _o(n,this.ngModule)}}function $p(e){const t=[];for(let n in e)e.hasOwnProperty(n)&&t.push({propName:e[n],templateName:n});return t}class Wb{constructor(t,n){this.injector=t,this.parentInjector=n}get(t,n,r){r=ci(r);const o=this.injector.get(t,jl,r);return o!==jl||n===jl?o:this.parentInjector.get(t,n,r)}}class _o extends np{get inputs(){const t=this.componentDef,n=t.inputTransforms,r=$p(t.inputs);if(null!==n)for(const o of r)n.hasOwnProperty(o.propName)&&(o.transform=n[o.propName]);return r}get outputs(){return $p(this.componentDef.outputs)}constructor(t,n){super(),this.componentDef=t,this.ngModule=n,this.componentType=t.type,this.selector=function BC(e){return e.map(LC).join(",")}(t.selectors),this.ngContentSelectors=t.ngContentSelectors?t.ngContentSelectors:[],this.isBoundToModule=!!n}create(t,n,r,o){let i=(o=o||this.ngModule)instanceof gr?o:o?.injector;i&&null!==this.componentDef.getStandaloneInjector&&(i=this.componentDef.getStandaloneInjector(i)||i);const s=i?new Wb(t,i):t,a=s.get(op,null);if(null===a)throw new C(407,!1);const c={rendererFactory:a,sanitizer:s.get(KS,null),effectManager:s.get(Vp,null)},d=a.createRenderer(null,this.componentDef),f=this.componentDef.selectors[0][0]||"div",h=r?function gb(e,t,n,r){const i=r.get(ap,!1)||n===rt.ShadowDom,s=e.selectRootElement(t,i);return function mb(e){Sp(e)}(s),s}(d,r,this.componentDef.encapsulation,s):Li(d,f,function qb(e){const t=e.toLowerCase();return"svg"===t?"svg":"math"===t?"math":null}(f)),y=this.componentDef.signals?4608:this.componentDef.onPush?576:528,v=ql(0,null,null,1,0,null,null,null,null,null,null),g=os(null,v,null,y,null,null,c,d,s,null,null);let w,b;Ha(g);try{const R=this.componentDef;let Ce,Mn=null;R.findHostDirectiveDefs?(Ce=[],Mn=new Map,R.findHostDirectiveDefs(R,Ce,Mn),Ce.push(R)):Ce=[R];const Gt=function Yb(e,t){const n=e[S],r=j;return e[r]=t,_r(n,r,2,"#host",null)}(g,h),Ko=function Kb(e,t,n,r,o,i,s){const a=o[S];!function Xb(e,t,n,r){for(const o of e)t.mergedAttrs=Gr(t.mergedAttrs,o.hostAttrs);null!==t.mergedAttrs&&(ss(t,t.mergedAttrs,!0),null!==n&&Ih(r,n,t))}(r,e,t,s);let l=null;null!==t&&(l=Jh(t,o[Kn]));const u=i.rendererFactory.createRenderer(t,n);let c=16;n.signals?c=4096:n.onPush&&(c=64);const d=os(o,Ep(n),null,c,o[e.index],e,i,u,null,null,l);return a.firstCreatePass&&Zl(a,e,r.length-1),is(o,d),o[e.index]=d}(Gt,h,R,Ce,g,c,d);b=df(v,j),h&&function eA(e,t,n,r){if(r)ba(e,n,["ng-version",XS.full]);else{const{attrs:o,classes:i}=function HC(e){const t=[],n=[];let r=1,o=2;for(;r0&&Mh(e,n,i.join(" "))}}(d,R,h,r),void 0!==n&&function tA(e,t,n){const r=e.projection=[];for(let o=0;o=0;r--){const o=e[r];o.hostVars=t+=o.hostVars,o.hostAttrs=Gr(o.hostAttrs,n=Gr(n,o.hostAttrs))}}(r)}function ls(e){return e===Nt?{}:e===Q?[]:e}function oA(e,t){const n=e.viewQuery;e.viewQuery=n?(r,o)=>{t(r,o),n(r,o)}:t}function iA(e,t){const n=e.contentQueries;e.contentQueries=n?(r,o,i)=>{t(r,o,i),n(r,o,i)}:t}function sA(e,t){const n=e.hostBindings;e.hostBindings=n?(r,o)=>{t(r,o),n(r,o)}:t}function us(e){return!!function eu(e){return null!==e&&("function"==typeof e||"object"==typeof e)}(e)&&(Array.isArray(e)||!(e instanceof Map)&&Symbol.iterator in e)}function Bt(e,t,n){return e[t]=n}function ke(e,t,n){return!Object.is(e[t],n)&&(e[t]=n,!0)}function rn(e,t,n,r,o,i,s,a){const l=D(),u=$(),c=e+j,d=u.firstCreatePass?function RA(e,t,n,r,o,i,s,a,l){const u=t.consts,c=_r(t,e,4,s||null,mn(u,a));Wl(t,n,c,mn(u,l)),wi(t,c);const d=c.tView=ql(2,c,r,o,i,t.directiveRegistry,t.pipeRegistry,null,t.schemas,u,null);return null!==t.queries&&(t.queries.template(t,c),d.queries=t.queries.embeddedTView(c)),c}(c,u,l,t,n,r,o,i,s):u.data[c];Pt(d,!1);const f=ig(u,l,d,e);Ci()&&Hi(u,l,f,d),Ve(f,l),is(l,l[c]=Np(f,l,f,d)),mi(d)&&Ql(u,l,d),null!=s&&zl(l,d,a)}let ig=function sg(e,t,n,r){return yn(!0),t[V].createComment("")};function Ne(e){return tr(function bw(){return T.lFrame.contextLView}(),j+e)}function K(e,t,n){const r=D();return ke(r,rr(),t)&&function ut(e,t,n,r,o,i,s,a){const l=Ye(t,n);let c,u=t.inputs;!a&&null!=u&&(c=u[r])?(Xl(e,n,c,r,o),On(t)&&function Eb(e,t){const n=st(t,e);16&n[P]||(n[P]|=64)}(n,t.index)):3&t.type&&(r=function wb(e){return"class"===e?"className":"for"===e?"htmlFor":"formaction"===e?"formAction":"innerHtml"===e?"innerHTML":"readonly"===e?"readOnly":"tabindex"===e?"tabIndex":e}(r),o=null!=s?s(o,t.value||"",r):o,i.setProperty(l,r,o))}($(),function fe(){const e=T.lFrame;return df(e.tView,e.selectedIndex)}(),r,e,t,r[V],n,!1),K}function su(e,t,n,r,o){const s=o?"class":"style";Xl(e,n,t.inputs[s],s,r)}function U(e,t,n,r){const o=D(),i=$(),s=j+e,a=o[V],l=i.firstCreatePass?function VA(e,t,n,r,o,i){const s=t.consts,l=_r(t,e,2,r,mn(s,o));return Wl(t,n,l,mn(s,i)),null!==l.attrs&&ss(l,l.attrs,!1),null!==l.mergedAttrs&&ss(l,l.mergedAttrs,!0),null!==t.queries&&t.queries.elementStart(t,l),l}(s,i,o,t,n,r):i.data[s],u=ag(i,o,l,a,t,e);o[s]=u;const c=mi(l);return Pt(l,!0),Ih(a,u,l),32!=(32&l.flags)&&Ci()&&Hi(i,o,u,l),0===function yw(){return T.lFrame.elementDepthCount}()&&Ve(u,o),function Dw(){T.lFrame.elementDepthCount++}(),c&&(Ql(i,o,l),Gl(i,l,o)),null!==r&&zl(o,l),U}function G(){let e=Te();Pa()?function Va(){T.lFrame.isParent=!1}():(e=e.parent,Pt(e,!1));const t=e;(function _w(e){return T.skipHydrationRootTNode===e})(t)&&function Sw(){T.skipHydrationRootTNode=null}(),function vw(){T.lFrame.elementDepthCount--}();const n=$();return n.firstCreatePass&&(wi(n,e),Ia(e)&&n.queries.elementEnd(e)),null!=t.classesWithoutHost&&function Bw(e){return 0!=(8&e.flags)}(t)&&su(n,t,D(),t.classesWithoutHost,!0),null!=t.stylesWithoutHost&&function Hw(e){return 0!=(16&e.flags)}(t)&&su(n,t,D(),t.stylesWithoutHost,!1),G}function _t(e,t,n,r){return U(e,t,n,r),G(),_t}let ag=(e,t,n,r,o,i)=>(yn(!0),Li(r,o,function If(){return T.lFrame.currentNamespace}()));function bo(){return D()}function ps(e){return!!e&&"function"==typeof e.then}function cg(e){return!!e&&"function"==typeof e.subscribe}function ne(e,t,n,r){const o=D(),i=$(),s=Te();return function fg(e,t,n,r,o,i,s){const a=mi(r),u=e.firstCreatePass&&xp(e),c=t[ye],d=Rp(t);let f=!0;if(3&r.type||s){const m=Ye(r,t),y=s?s(m):m,v=d.length,g=s?b=>s(ae(b[r.index])):r.index;let w=null;if(!s&&a&&(w=function $A(e,t,n,r){const o=e.cleanup;if(null!=o)for(let i=0;il?a[l]:null}"string"==typeof s&&(i+=2)}return null}(e,t,o,r.index)),null!==w)(w.__ngLastListenerFn__||w).__ngNextListenerFn__=i,w.__ngLastListenerFn__=i,f=!1;else{i=pg(r,t,c,i,!1);const b=n.listen(y,o,i);d.push(i,b),u&&u.push(o,g,v,v+1)}}else i=pg(r,t,c,i,!1);const h=r.outputs;let p;if(f&&null!==h&&(p=h[o])){const m=p.length;if(m)for(let y=0;y-1?st(e.index,t):t);let l=hg(t,n,r,s),u=i.__ngNextListenerFn__;for(;u;)l=hg(t,n,u,s)&&l,u=u.__ngNextListenerFn__;return o&&!1===l&&s.preventDefault(),l}}function vn(e=1){return function Nw(e){return(T.lFrame.contextLView=function Fw(e,t){for(;e>0;)t=t[Xn],e--;return t}(e,T.lFrame.contextLView))[ye]}(e)}function gs(e,t){return e<<17|t<<2}function _n(e){return e>>17&32767}function cu(e){return 2|e}function Un(e){return(131068&e)>>2}function du(e,t){return-131069&e|t<<2}function fu(e){return 1|e}function Sg(e,t,n,r,o){const i=e[n+1],s=null===t;let a=r?_n(i):Un(i),l=!1;for(;0!==a&&(!1===l||s);){const c=e[a+1];KA(e[a],t)&&(l=!0,e[a+1]=r?fu(c):cu(c)),a=r?_n(c):Un(c)}l&&(e[n+1]=r?cu(i):fu(i))}function KA(e,t){return null===e||null==t||(Array.isArray(e)?e[1]:e)===t||!(!Array.isArray(e)||"string"!=typeof t)&&cr(e,t)>=0}function Cn(e,t){return function Ct(e,t,n,r){const o=D(),i=$(),s=function Kt(e){const t=T.lFrame,n=t.bindingIndex;return t.bindingIndex=t.bindingIndex+e,n}(2);i.firstUpdatePass&&function xg(e,t,n,r){const o=e.data;if(null===o[n+1]){const i=o[Ue()],s=function Rg(e,t){return t>=e.expandoStartIndex}(e,n);(function kg(e,t){return 0!=(e.flags&(t?8:16))})(i,r)&&null===t&&!s&&(t=!1),t=function sM(e,t,n,r){const o=function La(e){const t=T.lFrame.currentDirectiveIndex;return-1===t?null:e[t]}(e);let i=r?t.residualClasses:t.residualStyles;if(null===o)0===(r?t.classBindings:t.styleBindings)&&(n=Ao(n=hu(null,e,t,n,r),t.attrs,r),i=null);else{const s=t.directiveStylingLast;if(-1===s||e[s]!==o)if(n=hu(o,e,t,n,r),null===i){let l=function aM(e,t,n){const r=n?t.classBindings:t.styleBindings;if(0!==Un(r))return e[_n(r)]}(e,t,r);void 0!==l&&Array.isArray(l)&&(l=hu(null,e,t,l[1],r),l=Ao(l,t.attrs,r),function lM(e,t,n,r){e[_n(n?t.classBindings:t.styleBindings)]=r}(e,t,r,l))}else i=function uM(e,t,n){let r;const o=t.directiveEnd;for(let i=1+t.directiveStylingLast;i0)&&(u=!0)):c=n,o)if(0!==l){const f=_n(e[a+1]);e[r+1]=gs(f,a),0!==f&&(e[f+1]=du(e[f+1],r)),e[a+1]=function qA(e,t){return 131071&e|t<<17}(e[a+1],r)}else e[r+1]=gs(a,0),0!==a&&(e[a+1]=du(e[a+1],r)),a=r;else e[r+1]=gs(l,0),0===a?a=r:e[l+1]=du(e[l+1],r),l=r;u&&(e[r+1]=cu(e[r+1])),Sg(e,c,r,!0),Sg(e,c,r,!1),function YA(e,t,n,r,o){const i=o?e.residualClasses:e.residualStyles;null!=i&&"string"==typeof t&&cr(i,t)>=0&&(n[r+1]=fu(n[r+1]))}(t,c,e,r,i),s=gs(a,l),i?t.classBindings=s:t.styleBindings=s}(o,i,t,n,s,r)}}(i,e,s,r),t!==k&&ke(o,s,t)&&function Pg(e,t,n,r,o,i,s,a){if(!(3&t.type))return;const l=e.data,u=l[a+1],c=function WA(e){return 1==(1&e)}(u)?Vg(l,t,n,o,Un(u),s):void 0;ms(c)||(ms(i)||function zA(e){return 2==(2&e)}(u)&&(i=Vg(l,null,n,o,a,s)),function WE(e,t,n,r,o){if(t)o?e.addClass(n,r):e.removeClass(n,r);else{let i=-1===r.indexOf("-")?void 0:Je.DashCase;null==o?e.removeStyle(n,r,i):("string"==typeof o&&o.endsWith("!important")&&(o=o.slice(0,-10),i|=Je.Important),e.setStyle(n,r,o,i))}}(r,s,_i(Ue(),n),o,i))}(i,i.data[Ue()],o,o[V],e,o[s+1]=function hM(e,t){return null==e||""===e||("string"==typeof t?e+=t:"object"==typeof e&&(e=we(lt(e)))),e}(t,n),r,s)}(e,t,null,!0),Cn}function hu(e,t,n,r,o){let i=null;const s=n.directiveEnd;let a=n.directiveStylingLast;for(-1===a?a=n.directiveStart:a++;a0;){const l=e[o],u=Array.isArray(l),c=u?l[1]:l,d=null===c;let f=n[o+1];f===k&&(f=d?Q:void 0);let h=d?Ka(f,r):c===r?f:void 0;if(u&&!ms(h)&&(h=Ka(l,r)),ms(h)&&(a=h,s))return a;const p=e[o+1];o=s?_n(p):Un(p)}if(null!==t){let l=i?t.residualClasses:t.residualStyles;null!=l&&(a=Ka(l,r))}return a}function ms(e){return void 0!==e}function Le(e,t=""){const n=D(),r=$(),o=e+j,i=r.firstCreatePass?_r(r,o,1,t,null):r.data[o],s=Lg(r,n,i,t,e);n[o]=s,Ci()&&Hi(r,n,s,i),Pt(i,!1)}let Lg=(e,t,n,r,o)=>(yn(!0),function ki(e,t){return e.createText(t)}(t[V],r));function pu(e){return Mo("",e,""),pu}function Mo(e,t,n){const r=D(),o=function wr(e,t,n,r){return ke(e,rr(),n)?t+x(n)+r:k}(r,e,t,n);return o!==k&&function tn(e,t,n){const r=_i(t,e);!function ph(e,t,n){e.setValue(t,n)}(e[V],r,n)}(r,Ue(),o),Mo}const Rr="en-US";let sm=Rr;function yu(e,t,n,r,o){if(e=F(e),Array.isArray(e))for(let i=0;i>20;if(Hn(e)||!e.multi){const h=new Xr(l,o,_),p=vu(a,t,o?c:c+f,d);-1===p?(qa(Ii(u,s),i,a),Du(i,e,t.length),t.push(a),u.directiveStart++,u.directiveEnd++,o&&(u.providerIndexes+=1048576),n.push(h),s.push(h)):(n[p]=h,s[p]=h)}else{const h=vu(a,t,c+f,d),p=vu(a,t,c,c+f),y=p>=0&&n[p];if(o&&!y||!o&&!(h>=0&&n[h])){qa(Ii(u,s),i,a);const v=function xI(e,t,n,r,o){const i=new Xr(e,n,_);return i.multi=[],i.index=t,i.componentProviders=0,Fm(i,o,r&&!n),i}(o?RI:FI,n.length,o,r,l);!o&&y&&(n[p].providerFactory=v),Du(i,e,t.length,0),t.push(a),u.directiveStart++,u.directiveEnd++,o&&(u.providerIndexes+=1048576),n.push(v),s.push(v)}else Du(i,e,h>-1?h:p,Fm(n[o?p:h],l,!o&&r));!o&&r&&y&&n[p].componentProviders++}}}function Du(e,t,n,r){const o=Hn(t),i=function TS(e){return!!e.useClass}(t);if(o||i){const l=(i?F(t.useClass):t).prototype.ngOnDestroy;if(l){const u=e.destroyHooks||(e.destroyHooks=[]);if(!o&&t.multi){const c=u.indexOf(n);-1===c?u.push(n,[r,l]):u[c+1].push(r,l)}else u.push(n,l)}}}function Fm(e,t,n){return n&&e.componentProviders++,e.multi.push(t)-1}function vu(e,t,n,r){for(let o=n;o{n.providersResolver=(r,o)=>function NI(e,t,n){const r=$();if(r.firstCreatePass){const o=vt(e);yu(n,r.data,r.blueprint,o,!0),yu(t,r.data,r.blueprint,o,!1)}}(r,o?o(e):e,t)}}class xr{}class OI{}class Cu extends xr{constructor(t,n,r){super(),this._parent=n,this._bootstrapComponents=[],this.destroyCbs=[],this.componentFactoryResolver=new jp(this);const o=function ot(e,t){const n=e[Pd]||null;if(!n&&!0===t)throw new Error(`Type ${we(e)} does not have '\u0275mod' property.`);return n}(t);this._bootstrapComponents=function Jt(e){return e instanceof Function?e():e}(o.bootstrap),this._r3Injector=Cp(t,n,[{provide:xr,useValue:this},{provide:es,useValue:this.componentFactoryResolver},...r],we(t),new Set(["environment"])),this._r3Injector.resolveInjectorInitializers(),this.instance=this._r3Injector.get(t)}get injector(){return this._r3Injector}destroy(){const t=this._r3Injector;!t.destroyed&&t.destroy(),this.destroyCbs.forEach(n=>n()),this.destroyCbs=null}onDestroy(t){this.destroyCbs.push(t)}}class wu extends OI{constructor(t){super(),this.moduleType=t}create(t){return new Cu(this.moduleType,t,[])}}function Su(e,t,n){const r=$e()+e,o=D();return o[r]===k?Bt(o,r,n?t.call(n):t()):function Co(e,t){return e[t]}(o,r)}function Hm(e,t,n,r,o,i,s){const a=t+n;return function $n(e,t,n,r){const o=ke(e,t,n);return ke(e,t+1,r)||o}(e,a,o,i)?Bt(e,a+2,s?r.call(s,o,i):r(o,i)):function xo(e,t){const n=e[t];return n===k?void 0:n}(e,a+2)}function Qm(e,t,n,r){const o=e+j,i=D(),s=tr(i,o);return function Oo(e,t){return e[S].data[t].pure}(i,o)?Hm(i,$e(),t,s.transform,n,r,s):s.transform(n,r)}function bu(e){return t=>{setTimeout(e,void 0,t)}}const Fe=class u0 extends Hr{constructor(t=!1){super(),this.__isAsync=t}emit(t){super.next(t)}subscribe(t,n,r){let o=t,i=n||(()=>null),s=r;if(t&&"object"==typeof t){const l=t;o=l.next?.bind(l),i=l.error?.bind(l),s=l.complete?.bind(l)}this.__isAsync&&(i=bu(i),o&&(o=bu(o)),s&&(s=bu(s)));const a=super.subscribe({next:o,error:i,complete:s});return t instanceof At&&t.add(a),a}};function c0(){return this._results[Symbol.iterator]()}class Au{get changes(){return this._changes||(this._changes=new Fe)}constructor(t=!1){this._emitDistinctChangesOnly=t,this.dirty=!0,this._results=[],this._changesDetected=!1,this._changes=null,this.length=0,this.first=void 0,this.last=void 0;const n=Au.prototype;n[Symbol.iterator]||(n[Symbol.iterator]=c0)}get(t){return this._results[t]}map(t){return this._results.map(t)}filter(t){return this._results.filter(t)}find(t){return this._results.find(t)}reduce(t,n){return this._results.reduce(t,n)}forEach(t){this._results.forEach(t)}some(t){return this._results.some(t)}toArray(){return this._results.slice()}toString(){return this._results.toString()}reset(t,n){const r=this;r.dirty=!1;const o=function dt(e){return e.flat(Number.POSITIVE_INFINITY)}(t);(this._changesDetected=!function Kw(e,t,n){if(e.length!==t.length)return!1;for(let r=0;r{class e{}return e.__NG_ELEMENT_ID__=h0,e})();const d0=on,f0=class extends d0{constructor(t,n,r){super(),this._declarationLView=t,this._declarationTContainer=n,this.elementRef=r}get ssrId(){return this._declarationTContainer.tView?.ssrId||null}createEmbeddedView(t,n){return this.createEmbeddedViewImpl(t,n,null)}createEmbeddedViewImpl(t,n,r){const s=this._declarationTContainer.tView,a=os(this._declarationLView,s,t,4096&this._declarationLView[P]?4096:16,null,s.declTNode,null,null,null,n||null,r||null);a[Wr]=this._declarationLView[this._declarationTContainer.index];const u=this._declarationLView[Ft];return null!==u&&(a[Ft]=u.createEmbeddedView(s)),Jl(s,a,t),new vo(a)}};function h0(){return Cs(Te(),D())}function Cs(e,t){return 4&e.type?new f0(t,e,Dr(e,t)):null}let $t=(()=>{class e{}return e.__NG_ELEMENT_ID__=_0,e})();function _0(){return Km(Te(),D())}const C0=$t,Zm=class extends C0{constructor(t,n,r){super(),this._lContainer=t,this._hostTNode=n,this._hostLView=r}get element(){return Dr(this._hostTNode,this._hostLView)}get injector(){return new ir(this._hostTNode,this._hostLView)}get parentInjector(){const t=za(this._hostTNode,this._hostLView);if(Rf(t)){const n=Ai(t,this._hostLView),r=bi(t);return new ir(n[S].data[r+8],n)}return new ir(null,this._hostLView)}clear(){for(;this.length>0;)this.remove(this.length-1)}get(t){const n=Ym(this._lContainer);return null!==n&&n[t]||null}get length(){return this._lContainer.length-Oe}createEmbeddedView(t,n,r){let o,i;"number"==typeof r?o=r:null!=r&&(o=r.index,i=r.injector);const a=t.createEmbeddedViewImpl(n||{},i,null);return this.insertImpl(a,o,false),a}createComponent(t,n,r,o,i){const s=t&&!function eo(e){return"function"==typeof e}(t);let a;if(s)a=n;else{const m=n||{};a=m.index,r=m.injector,o=m.projectableNodes,i=m.environmentInjector||m.ngModuleRef}const l=s?t:new _o(q(t)),u=r||this.parentInjector;if(!i&&null==l.ngModule){const y=(s?u:this.parentInjector).get(gr,null);y&&(i=y)}q(l.componentType??{});const h=l.create(u,o,null,i);return this.insertImpl(h.hostView,a,false),h}insert(t,n){return this.insertImpl(t,n,!1)}insertImpl(t,n,r){const o=t._lView,i=o[S];if(function pw(e){return Ze(e[de])}(o)){const l=this.indexOf(t);if(-1!==l)this.detach(l);else{const u=o[de],c=new Zm(u,u[xe],u[de]);c.detach(c.indexOf(t))}}const s=this._adjustIndex(n),a=this._lContainer;if(function HE(e,t,n,r){const o=Oe+r,i=n.length;r>0&&(n[o-1][Dt]=t),r0)r.push(s[a/2]);else{const u=i[a+1],c=t[-l];for(let d=Oe;d{class e{constructor(){this.initialized=!1,this.done=!1,this.donePromise=new Promise((n,r)=>{this.resolve=n,this.reject=r}),this.appInits=se(J0,{optional:!0})??[]}runInitializers(){if(this.initialized)return;const n=[];for(const o of this.appInits){const i=o();if(ps(i))n.push(i);else if(cg(i)){const s=new Promise((a,l)=>{i.subscribe({complete:a,error:l})});n.push(s)}}const r=()=>{this.done=!0,this.resolve()};Promise.all(n).then(()=>{r()}).catch(o=>{this.reject(o)}),0===n.length&&r(),this.initialized=!0}}return e.\u0275fac=function(n){return new(n||e)},e.\u0275prov=Y({token:e,factory:e.\u0275fac,providedIn:"root"}),e})();const sn=new M("LocaleId",{providedIn:"root",factory:()=>se(sn,N.Optional|N.SkipSelf)||function tT(){return typeof $localize<"u"&&$localize.locale||Rr}()});let rT=(()=>{class e{constructor(){this.taskId=0,this.pendingTasks=new Set,this.hasPendingTasks=new aa(!1)}add(){this.hasPendingTasks.next(!0);const n=this.taskId++;return this.pendingTasks.add(n),n}remove(n){this.pendingTasks.delete(n),0===this.pendingTasks.size&&this.hasPendingTasks.next(!1)}ngOnDestroy(){this.pendingTasks.clear(),this.hasPendingTasks.next(!1)}}return e.\u0275fac=function(n){return new(n||e)},e.\u0275prov=Y({token:e,factory:e.\u0275fac,providedIn:"root"}),e})();function Sy(...e){}class Ae{constructor({enableLongStackTrace:t=!1,shouldCoalesceEventChangeDetection:n=!1,shouldCoalesceRunChangeDetection:r=!1}){if(this.hasPendingMacrotasks=!1,this.hasPendingMicrotasks=!1,this.isStable=!0,this.onUnstable=new Fe(!1),this.onMicrotaskEmpty=new Fe(!1),this.onStable=new Fe(!1),this.onError=new Fe(!1),typeof Zone>"u")throw new C(908,!1);Zone.assertZonePatched();const o=this;o._nesting=0,o._outer=o._inner=Zone.current,Zone.TaskTrackingZoneSpec&&(o._inner=o._inner.fork(new Zone.TaskTrackingZoneSpec)),t&&Zone.longStackTraceZoneSpec&&(o._inner=o._inner.fork(Zone.longStackTraceZoneSpec)),o.shouldCoalesceEventChangeDetection=!r&&n,o.shouldCoalesceRunChangeDetection=r,o.lastRequestAnimationFrameId=-1,o.nativeRequestAnimationFrame=function aT(){const e="function"==typeof te.requestAnimationFrame;let t=te[e?"requestAnimationFrame":"setTimeout"],n=te[e?"cancelAnimationFrame":"clearTimeout"];if(typeof Zone<"u"&&t&&n){const r=t[Zone.__symbol__("OriginalDelegate")];r&&(t=r);const o=n[Zone.__symbol__("OriginalDelegate")];o&&(n=o)}return{nativeRequestAnimationFrame:t,nativeCancelAnimationFrame:n}}().nativeRequestAnimationFrame,function cT(e){const t=()=>{!function uT(e){e.isCheckStableRunning||-1!==e.lastRequestAnimationFrameId||(e.lastRequestAnimationFrameId=e.nativeRequestAnimationFrame.call(te,()=>{e.fakeTopEventTask||(e.fakeTopEventTask=Zone.root.scheduleEventTask("fakeTopEventTask",()=>{e.lastRequestAnimationFrameId=-1,Hu(e),e.isCheckStableRunning=!0,Bu(e),e.isCheckStableRunning=!1},void 0,()=>{},()=>{})),e.fakeTopEventTask.invoke()}),Hu(e))}(e)};e._inner=e._inner.fork({name:"angular",properties:{isAngularZone:!0},onInvokeTask:(n,r,o,i,s,a)=>{try{return by(e),n.invokeTask(o,i,s,a)}finally{(e.shouldCoalesceEventChangeDetection&&"eventTask"===i.type||e.shouldCoalesceRunChangeDetection)&&t(),Ay(e)}},onInvoke:(n,r,o,i,s,a,l)=>{try{return by(e),n.invoke(o,i,s,a,l)}finally{e.shouldCoalesceRunChangeDetection&&t(),Ay(e)}},onHasTask:(n,r,o,i)=>{n.hasTask(o,i),r===o&&("microTask"==i.change?(e._hasPendingMicrotasks=i.microTask,Hu(e),Bu(e)):"macroTask"==i.change&&(e.hasPendingMacrotasks=i.macroTask))},onHandleError:(n,r,o,i)=>(n.handleError(o,i),e.runOutsideAngular(()=>e.onError.emit(i)),!1)})}(o)}static isInAngularZone(){return typeof Zone<"u"&&!0===Zone.current.get("isAngularZone")}static assertInAngularZone(){if(!Ae.isInAngularZone())throw new C(909,!1)}static assertNotInAngularZone(){if(Ae.isInAngularZone())throw new C(909,!1)}run(t,n,r){return this._inner.run(t,n,r)}runTask(t,n,r,o){const i=this._inner,s=i.scheduleEventTask("NgZoneEvent: "+o,t,lT,Sy,Sy);try{return i.runTask(s,n,r)}finally{i.cancelTask(s)}}runGuarded(t,n,r){return this._inner.runGuarded(t,n,r)}runOutsideAngular(t){return this._outer.run(t)}}const lT={};function Bu(e){if(0==e._nesting&&!e.hasPendingMicrotasks&&!e.isStable)try{e._nesting++,e.onMicrotaskEmpty.emit(null)}finally{if(e._nesting--,!e.hasPendingMicrotasks)try{e.runOutsideAngular(()=>e.onStable.emit(null))}finally{e.isStable=!0}}}function Hu(e){e.hasPendingMicrotasks=!!(e._hasPendingMicrotasks||(e.shouldCoalesceEventChangeDetection||e.shouldCoalesceRunChangeDetection)&&-1!==e.lastRequestAnimationFrameId)}function by(e){e._nesting++,e.isStable&&(e.isStable=!1,e.onUnstable.emit(null))}function Ay(e){e._nesting--,Bu(e)}class dT{constructor(){this.hasPendingMicrotasks=!1,this.hasPendingMacrotasks=!1,this.isStable=!0,this.onUnstable=new Fe,this.onMicrotaskEmpty=new Fe,this.onStable=new Fe,this.onError=new Fe}run(t,n,r){return t.apply(n,r)}runGuarded(t,n,r){return t.apply(n,r)}runOutsideAngular(t){return t()}runTask(t,n,r,o){return t.apply(n,r)}}const My=new M("",{providedIn:"root",factory:Iy});function Iy(){const e=se(Ae);let t=!0;return function uC(...e){const t=wd(e),n=function nC(e,t){return"number"==typeof ha(e)?e.pop():t}(e,1/0),r=e;return r.length?1===r.length?Mt(r[0]):function X_(e=1/0){return _d(sa,e)}(n)(pa(r,t)):Cd}(new He(o=>{t=e.isStable&&!e.hasPendingMacrotasks&&!e.hasPendingMicrotasks,e.runOutsideAngular(()=>{o.next(t),o.complete()})}),new He(o=>{let i;e.runOutsideAngular(()=>{i=e.onStable.subscribe(()=>{Ae.assertNotInAngularZone(),queueMicrotask(()=>{!t&&!e.hasPendingMacrotasks&&!e.hasPendingMicrotasks&&(t=!0,o.next(!0))})})});const s=e.onUnstable.subscribe(()=>{Ae.assertInAngularZone(),t&&(t=!1,e.runOutsideAngular(()=>{o.next(!1)}))});return()=>{i.unsubscribe(),s.unsubscribe()}}).pipe(Ad()))}const Ty=new M(""),Es=new M("");let Uu,ju=(()=>{class e{constructor(n,r,o){this._ngZone=n,this.registry=r,this._pendingCount=0,this._isZoneStable=!0,this._didWork=!1,this._callbacks=[],this.taskTrackingZone=null,Uu||(function fT(e){Uu=e}(o),o.addToWindow(r)),this._watchAngularEvents(),n.run(()=>{this.taskTrackingZone=typeof Zone>"u"?null:Zone.current.get("TaskTrackingZone")})}_watchAngularEvents(){this._ngZone.onUnstable.subscribe({next:()=>{this._didWork=!0,this._isZoneStable=!1}}),this._ngZone.runOutsideAngular(()=>{this._ngZone.onStable.subscribe({next:()=>{Ae.assertNotInAngularZone(),queueMicrotask(()=>{this._isZoneStable=!0,this._runCallbacksIfReady()})}})})}increasePendingRequestCount(){return this._pendingCount+=1,this._didWork=!0,this._pendingCount}decreasePendingRequestCount(){if(this._pendingCount-=1,this._pendingCount<0)throw new Error("pending async requests below zero");return this._runCallbacksIfReady(),this._pendingCount}isStable(){return this._isZoneStable&&0===this._pendingCount&&!this._ngZone.hasPendingMacrotasks}_runCallbacksIfReady(){if(this.isStable())queueMicrotask(()=>{for(;0!==this._callbacks.length;){let n=this._callbacks.pop();clearTimeout(n.timeoutId),n.doneCb(this._didWork)}this._didWork=!1});else{let n=this.getPendingTasks();this._callbacks=this._callbacks.filter(r=>!r.updateCb||!r.updateCb(n)||(clearTimeout(r.timeoutId),!1)),this._didWork=!0}}getPendingTasks(){return this.taskTrackingZone?this.taskTrackingZone.macroTasks.map(n=>({source:n.source,creationLocation:n.creationLocation,data:n.data})):[]}addCallback(n,r,o){let i=-1;r&&r>0&&(i=setTimeout(()=>{this._callbacks=this._callbacks.filter(s=>s.timeoutId!==i),n(this._didWork,this.getPendingTasks())},r)),this._callbacks.push({doneCb:n,timeoutId:i,updateCb:o})}whenStable(n,r,o){if(o&&!this.taskTrackingZone)throw new Error('Task tracking zone is required when passing an update callback to whenStable(). Is "zone.js/plugins/task-tracking" loaded?');this.addCallback(n,r,o),this._runCallbacksIfReady()}getPendingRequestCount(){return this._pendingCount}registerApplication(n){this.registry.registerApplication(n,this)}unregisterApplication(n){this.registry.unregisterApplication(n)}findProviders(n,r,o){return[]}}return e.\u0275fac=function(n){return new(n||e)(B(Ae),B($u),B(Es))},e.\u0275prov=Y({token:e,factory:e.\u0275fac}),e})(),$u=(()=>{class e{constructor(){this._applications=new Map}registerApplication(n,r){this._applications.set(n,r)}unregisterApplication(n){this._applications.delete(n)}unregisterAllApplications(){this._applications.clear()}getTestability(n){return this._applications.get(n)||null}getAllTestabilities(){return Array.from(this._applications.values())}getAllRootElements(){return Array.from(this._applications.keys())}findTestabilityInTree(n,r=!0){return Uu?.findTestabilityInTree(this,n,r)??null}}return e.\u0275fac=function(n){return new(n||e)},e.\u0275prov=Y({token:e,factory:e.\u0275fac,providedIn:"platform"}),e})(),wn=null;const Ny=new M("AllowMultipleToken"),Gu=new M("PlatformDestroyListeners"),Fy=new M("appBootstrapListener");function Oy(e,t,n=[]){const r=`Platform: ${t}`,o=new M(r);return(i=[])=>{let s=Qu();if(!s||s.injector.get(Ny,!1)){const a=[...n,...i,{provide:o,useValue:!0}];e?e(a):function gT(e){if(wn&&!wn.get(Ny,!1))throw new C(400,!1);(function Ry(){!function nw(e){nf=e}(()=>{throw new C(600,!1)})})(),wn=e;const t=e.get(Vy);(function xy(e){e.get(Zh,null)?.forEach(n=>n())})(e)}(function Py(e=[],t){return en.create({name:t,providers:[{provide:Al,useValue:"platform"},{provide:Gu,useValue:new Set([()=>wn=null])},...e]})}(a,r))}return function yT(e){const t=Qu();if(!t)throw new C(401,!1);return t}()}}function Qu(){return wn?.get(Vy)??null}let Vy=(()=>{class e{constructor(n){this._injector=n,this._modules=[],this._destroyListeners=[],this._destroyed=!1}bootstrapModuleFactory(n,r){const o=function DT(e="zone.js",t){return"noop"===e?new dT:"zone.js"===e?new Ae(t):e}(r?.ngZone,function ky(e){return{enableLongStackTrace:!1,shouldCoalesceEventChangeDetection:e?.eventCoalescing??!1,shouldCoalesceRunChangeDetection:e?.runCoalescing??!1}}({eventCoalescing:r?.ngZoneEventCoalescing,runCoalescing:r?.ngZoneRunCoalescing}));return o.run(()=>{const i=function VI(e,t,n){return new Cu(e,t,n)}(n.moduleType,this.injector,function $y(e){return[{provide:Ae,useFactory:e},{provide:zi,multi:!0,useFactory:()=>{const t=se(_T,{optional:!0});return()=>t.initialize()}},{provide:jy,useFactory:vT},{provide:My,useFactory:Iy}]}(()=>o)),s=i.injector.get(jn,null);return o.runOutsideAngular(()=>{const a=o.onError.subscribe({next:l=>{s.handleError(l)}});i.onDestroy(()=>{Ss(this._modules,i),a.unsubscribe()})}),function Ly(e,t,n){try{const r=n();return ps(r)?r.catch(o=>{throw t.runOutsideAngular(()=>e.handleError(o)),o}):r}catch(r){throw t.runOutsideAngular(()=>e.handleError(r)),r}}(s,o,()=>{const a=i.injector.get(Lu);return a.runInitializers(),a.donePromise.then(()=>(function am(e){ct(e,"Expected localeId to be defined"),"string"==typeof e&&(sm=e.toLowerCase().replace(/_/g,"-"))}(i.injector.get(sn,Rr)||Rr),this._moduleDoBootstrap(i),i))})})}bootstrapModule(n,r=[]){const o=By({},r);return function hT(e,t,n){const r=new wu(n);return Promise.resolve(r)}(0,0,n).then(i=>this.bootstrapModuleFactory(i,o))}_moduleDoBootstrap(n){const r=n.injector.get(Bo);if(n._bootstrapComponents.length>0)n._bootstrapComponents.forEach(o=>r.bootstrap(o));else{if(!n.instance.ngDoBootstrap)throw new C(-403,!1);n.instance.ngDoBootstrap(r)}this._modules.push(n)}onDestroy(n){this._destroyListeners.push(n)}get injector(){return this._injector}destroy(){if(this._destroyed)throw new C(404,!1);this._modules.slice().forEach(r=>r.destroy()),this._destroyListeners.forEach(r=>r());const n=this._injector.get(Gu,null);n&&(n.forEach(r=>r()),n.clear()),this._destroyed=!0}get destroyed(){return this._destroyed}}return e.\u0275fac=function(n){return new(n||e)(B(en))},e.\u0275prov=Y({token:e,factory:e.\u0275fac,providedIn:"platform"}),e})();function By(e,t){return Array.isArray(t)?t.reduce(By,e):{...e,...t}}let Bo=(()=>{class e{constructor(){this._bootstrapListeners=[],this._runningTick=!1,this._destroyed=!1,this._destroyListeners=[],this._views=[],this.internalErrorHandler=se(jy),this.zoneIsStable=se(My),this.componentTypes=[],this.components=[],this.isStable=se(rT).hasPendingTasks.pipe(function dC(e,t){return Rn((n,r)=>{let o=null,i=0,s=!1;const a=()=>s&&!o&&r.complete();n.subscribe(cn(r,l=>{o?.unsubscribe();let u=0;const c=i++;Mt(e(l,c)).subscribe(o=cn(r,d=>r.next(t?t(l,d,c,u++):d),()=>{o=null,a()}))},()=>{s=!0,a()}))})}(n=>n?function cC(...e){return pa(e,wd(e))}(!1):this.zoneIsStable),function fC(e,t=sa){return e=e??hC,Rn((n,r)=>{let o,i=!0;n.subscribe(cn(r,s=>{const a=t(s);(i||!e(o,a))&&(i=!1,o=a,r.next(s))}))})}(),Ad()),this._injector=se(gr)}get destroyed(){return this._destroyed}get injector(){return this._injector}bootstrap(n,r){const o=n instanceof np;if(!this._injector.get(Lu).done)throw!o&&function Qr(e){const t=q(e)||Re(e)||We(e);return null!==t&&t.standalone}(n),new C(405,!1);let s;s=o?n:this._injector.get(es).resolveComponentFactory(n),this.componentTypes.push(s.componentType);const a=function pT(e){return e.isBoundToModule}(s)?void 0:this._injector.get(xr),u=s.create(en.NULL,[],r||s.selector,a),c=u.location.nativeElement,d=u.injector.get(Ty,null);return d?.registerApplication(c),u.onDestroy(()=>{this.detachView(u.hostView),Ss(this.components,u),d?.unregisterApplication(c)}),this._loadComponent(u),u}tick(){if(this._runningTick)throw new C(101,!1);try{this._runningTick=!0;for(let n of this._views)n.detectChanges()}catch(n){this.internalErrorHandler(n)}finally{this._runningTick=!1}}attachView(n){const r=n;this._views.push(r),r.attachToAppRef(this)}detachView(n){const r=n;Ss(this._views,r),r.detachFromAppRef()}_loadComponent(n){this.attachView(n.hostView),this.tick(),this.components.push(n);const r=this._injector.get(Fy,[]);r.push(...this._bootstrapListeners),r.forEach(o=>o(n))}ngOnDestroy(){if(!this._destroyed)try{this._destroyListeners.forEach(n=>n()),this._views.slice().forEach(n=>n.destroy())}finally{this._destroyed=!0,this._views=[],this._bootstrapListeners=[],this._destroyListeners=[]}}onDestroy(n){return this._destroyListeners.push(n),()=>Ss(this._destroyListeners,n)}destroy(){if(this._destroyed)throw new C(406,!1);const n=this._injector;n.destroy&&!n.destroyed&&n.destroy()}get viewCount(){return this._views.length}warnIfDestroyed(){}}return e.\u0275fac=function(n){return new(n||e)},e.\u0275prov=Y({token:e,factory:e.\u0275fac,providedIn:"root"}),e})();function Ss(e,t){const n=e.indexOf(t);n>-1&&e.splice(n,1)}const jy=new M("",{providedIn:"root",factory:()=>se(jn).handleError.bind(void 0)});function vT(){const e=se(Ae),t=se(jn);return n=>e.runOutsideAngular(()=>t.handleError(n))}let _T=(()=>{class e{constructor(){this.zone=se(Ae),this.applicationRef=se(Bo)}initialize(){this._onMicrotaskEmptySubscription||(this._onMicrotaskEmptySubscription=this.zone.onMicrotaskEmpty.subscribe({next:()=>{this.zone.run(()=>{this.applicationRef.tick()})}}))}ngOnDestroy(){this._onMicrotaskEmptySubscription?.unsubscribe()}}return e.\u0275fac=function(n){return new(n||e)},e.\u0275prov=Y({token:e,factory:e.\u0275fac,providedIn:"root"}),e})();class qy{constructor(){}supports(t){return us(t)}create(t){return new TT(t)}}const IT=(e,t)=>t;class TT{constructor(t){this.length=0,this._linkedRecords=null,this._unlinkedRecords=null,this._previousItHead=null,this._itHead=null,this._itTail=null,this._additionsHead=null,this._additionsTail=null,this._movesHead=null,this._movesTail=null,this._removalsHead=null,this._removalsTail=null,this._identityChangesHead=null,this._identityChangesTail=null,this._trackByFn=t||IT}forEachItem(t){let n;for(n=this._itHead;null!==n;n=n._next)t(n)}forEachOperation(t){let n=this._itHead,r=this._removalsHead,o=0,i=null;for(;n||r;){const s=!r||n&&n.currentIndex{s=this._trackByFn(o,a),null!==n&&Object.is(n.trackById,s)?(r&&(n=this._verifyReinsertion(n,a,s,o)),Object.is(n.item,a)||this._addIdentityChange(n,a)):(n=this._mismatch(n,a,s,o),r=!0),n=n._next,o++}),this.length=o;return this._truncate(n),this.collection=t,this.isDirty}get isDirty(){return null!==this._additionsHead||null!==this._movesHead||null!==this._removalsHead||null!==this._identityChangesHead}_reset(){if(this.isDirty){let t;for(t=this._previousItHead=this._itHead;null!==t;t=t._next)t._nextPrevious=t._next;for(t=this._additionsHead;null!==t;t=t._nextAdded)t.previousIndex=t.currentIndex;for(this._additionsHead=this._additionsTail=null,t=this._movesHead;null!==t;t=t._nextMoved)t.previousIndex=t.currentIndex;this._movesHead=this._movesTail=null,this._removalsHead=this._removalsTail=null,this._identityChangesHead=this._identityChangesTail=null}}_mismatch(t,n,r,o){let i;return null===t?i=this._itTail:(i=t._prev,this._remove(t)),null!==(t=null===this._unlinkedRecords?null:this._unlinkedRecords.get(r,null))?(Object.is(t.item,n)||this._addIdentityChange(t,n),this._reinsertAfter(t,i,o)):null!==(t=null===this._linkedRecords?null:this._linkedRecords.get(r,o))?(Object.is(t.item,n)||this._addIdentityChange(t,n),this._moveAfter(t,i,o)):t=this._addAfter(new NT(n,r),i,o),t}_verifyReinsertion(t,n,r,o){let i=null===this._unlinkedRecords?null:this._unlinkedRecords.get(r,null);return null!==i?t=this._reinsertAfter(i,t._prev,o):t.currentIndex!=o&&(t.currentIndex=o,this._addToMoves(t,o)),t}_truncate(t){for(;null!==t;){const n=t._next;this._addToRemovals(this._unlink(t)),t=n}null!==this._unlinkedRecords&&this._unlinkedRecords.clear(),null!==this._additionsTail&&(this._additionsTail._nextAdded=null),null!==this._movesTail&&(this._movesTail._nextMoved=null),null!==this._itTail&&(this._itTail._next=null),null!==this._removalsTail&&(this._removalsTail._nextRemoved=null),null!==this._identityChangesTail&&(this._identityChangesTail._nextIdentityChange=null)}_reinsertAfter(t,n,r){null!==this._unlinkedRecords&&this._unlinkedRecords.remove(t);const o=t._prevRemoved,i=t._nextRemoved;return null===o?this._removalsHead=i:o._nextRemoved=i,null===i?this._removalsTail=o:i._prevRemoved=o,this._insertAfter(t,n,r),this._addToMoves(t,r),t}_moveAfter(t,n,r){return this._unlink(t),this._insertAfter(t,n,r),this._addToMoves(t,r),t}_addAfter(t,n,r){return this._insertAfter(t,n,r),this._additionsTail=null===this._additionsTail?this._additionsHead=t:this._additionsTail._nextAdded=t,t}_insertAfter(t,n,r){const o=null===n?this._itHead:n._next;return t._next=o,t._prev=n,null===o?this._itTail=t:o._prev=t,null===n?this._itHead=t:n._next=t,null===this._linkedRecords&&(this._linkedRecords=new Wy),this._linkedRecords.put(t),t.currentIndex=r,t}_remove(t){return this._addToRemovals(this._unlink(t))}_unlink(t){null!==this._linkedRecords&&this._linkedRecords.remove(t);const n=t._prev,r=t._next;return null===n?this._itHead=r:n._next=r,null===r?this._itTail=n:r._prev=n,t}_addToMoves(t,n){return t.previousIndex===n||(this._movesTail=null===this._movesTail?this._movesHead=t:this._movesTail._nextMoved=t),t}_addToRemovals(t){return null===this._unlinkedRecords&&(this._unlinkedRecords=new Wy),this._unlinkedRecords.put(t),t.currentIndex=null,t._nextRemoved=null,null===this._removalsTail?(this._removalsTail=this._removalsHead=t,t._prevRemoved=null):(t._prevRemoved=this._removalsTail,this._removalsTail=this._removalsTail._nextRemoved=t),t}_addIdentityChange(t,n){return t.item=n,this._identityChangesTail=null===this._identityChangesTail?this._identityChangesHead=t:this._identityChangesTail._nextIdentityChange=t,t}}class NT{constructor(t,n){this.item=t,this.trackById=n,this.currentIndex=null,this.previousIndex=null,this._nextPrevious=null,this._prev=null,this._next=null,this._prevDup=null,this._nextDup=null,this._prevRemoved=null,this._nextRemoved=null,this._nextAdded=null,this._nextMoved=null,this._nextIdentityChange=null}}class FT{constructor(){this._head=null,this._tail=null}add(t){null===this._head?(this._head=this._tail=t,t._nextDup=null,t._prevDup=null):(this._tail._nextDup=t,t._prevDup=this._tail,t._nextDup=null,this._tail=t)}get(t,n){let r;for(r=this._head;null!==r;r=r._nextDup)if((null===n||n<=r.currentIndex)&&Object.is(r.trackById,t))return r;return null}remove(t){const n=t._prevDup,r=t._nextDup;return null===n?this._head=r:n._nextDup=r,null===r?this._tail=n:r._prevDup=n,null===this._head}}class Wy{constructor(){this.map=new Map}put(t){const n=t.trackById;let r=this.map.get(n);r||(r=new FT,this.map.set(n,r)),r.add(t)}get(t,n){const o=this.map.get(t);return o?o.get(t,n):null}remove(t){const n=t.trackById;return this.map.get(n).remove(t)&&this.map.delete(n),t}get isEmpty(){return 0===this.map.size}clear(){this.map.clear()}}function Zy(e,t,n){const r=e.previousIndex;if(null===r)return r;let o=0;return n&&r{class e{constructor(n){this.factories=n}static create(n,r){if(null!=r){const o=r.factories.slice();n=n.concat(o)}return new e(n)}static extend(n){return{provide:e,useFactory:r=>e.create(n,r||Ky()),deps:[[e,new el,new Ja]]}}find(n){const r=this.factories.find(o=>o.supports(n));if(null!=r)return r;throw new C(901,!1)}}return e.\u0275prov=Y({token:e,providedIn:"root",factory:Ky}),e})();const VT=Oy(null,"core",[]);let kT=(()=>{class e{constructor(n){}}return e.\u0275fac=function(n){return new(n||e)(B(Bo))},e.\u0275mod=qt({type:e}),e.\u0275inj=It({}),e})(),Ju=null;function jo(){return Ju}class WT{}const an=new M("DocumentToken");class VN{constructor(t,n,r,o){this.$implicit=t,this.ngForOf=n,this.index=r,this.count=o}get first(){return 0===this.index}get last(){return this.index===this.count-1}get even(){return this.index%2==0}get odd(){return!this.even}}let gD=(()=>{class e{set ngForOf(n){this._ngForOf=n,this._ngForOfDirty=!0}set ngForTrackBy(n){this._trackByFn=n}get ngForTrackBy(){return this._trackByFn}constructor(n,r,o){this._viewContainer=n,this._template=r,this._differs=o,this._ngForOf=null,this._ngForOfDirty=!0,this._differ=null}set ngForTemplate(n){n&&(this._template=n)}ngDoCheck(){if(this._ngForOfDirty){this._ngForOfDirty=!1;const n=this._ngForOf;!this._differ&&n&&(this._differ=this._differs.find(n).create(this.ngForTrackBy))}if(this._differ){const n=this._differ.diff(this._ngForOf);n&&this._applyChanges(n)}}_applyChanges(n){const r=this._viewContainer;n.forEachOperation((o,i,s)=>{if(null==o.previousIndex)r.createEmbeddedView(this._template,new VN(o.item,this._ngForOf,-1,-1),null===s?void 0:s);else if(null==s)r.remove(null===i?void 0:i);else if(null!==i){const a=r.get(i);r.move(a,s),mD(a,o)}});for(let o=0,i=r.length;o{mD(r.get(o.currentIndex),o)})}static ngTemplateContextGuard(n,r){return!0}}return e.\u0275fac=function(n){return new(n||e)(_($t),_(on),_(Ms))},e.\u0275dir=O({type:e,selectors:[["","ngFor","","ngForOf",""]],inputs:{ngForOf:"ngForOf",ngForTrackBy:"ngForTrackBy",ngForTemplate:"ngForTemplate"},standalone:!0}),e})();function mD(e,t){e.context.$implicit=t.item}let yD=(()=>{class e{constructor(n,r){this._viewContainer=n,this._context=new kN,this._thenTemplateRef=null,this._elseTemplateRef=null,this._thenViewRef=null,this._elseViewRef=null,this._thenTemplateRef=r}set ngIf(n){this._context.$implicit=this._context.ngIf=n,this._updateView()}set ngIfThen(n){DD("ngIfThen",n),this._thenTemplateRef=n,this._thenViewRef=null,this._updateView()}set ngIfElse(n){DD("ngIfElse",n),this._elseTemplateRef=n,this._elseViewRef=null,this._updateView()}_updateView(){this._context.$implicit?this._thenViewRef||(this._viewContainer.clear(),this._elseViewRef=null,this._thenTemplateRef&&(this._thenViewRef=this._viewContainer.createEmbeddedView(this._thenTemplateRef,this._context))):this._elseViewRef||(this._viewContainer.clear(),this._thenViewRef=null,this._elseTemplateRef&&(this._elseViewRef=this._viewContainer.createEmbeddedView(this._elseTemplateRef,this._context)))}static ngTemplateContextGuard(n,r){return!0}}return e.\u0275fac=function(n){return new(n||e)(_($t),_(on))},e.\u0275dir=O({type:e,selectors:[["","ngIf",""]],inputs:{ngIf:"ngIf",ngIfThen:"ngIfThen",ngIfElse:"ngIfElse"},standalone:!0}),e})();class kN{constructor(){this.$implicit=null,this.ngIf=null}}function DD(e,t){if(t&&!t.createEmbeddedView)throw new Error(`${e} must be a TemplateRef, but received '${we(t)}'.`)}let lF=(()=>{class e{}return e.\u0275fac=function(n){return new(n||e)},e.\u0275mod=qt({type:e}),e.\u0275inj=It({}),e})();function wD(e){return"server"===e}class VF extends WT{constructor(){super(...arguments),this.supportsDOMEvents=!0}}class mc extends VF{static makeCurrent(){!function qT(e){Ju||(Ju=e)}(new mc)}onAndCancel(t,n,r){return t.addEventListener(n,r),()=>{t.removeEventListener(n,r)}}dispatchEvent(t,n){t.dispatchEvent(n)}remove(t){t.parentNode&&t.parentNode.removeChild(t)}createElement(t,n){return(n=n||this.getDefaultDocument()).createElement(t)}createHtmlDocument(){return document.implementation.createHTMLDocument("fakeTitle")}getDefaultDocument(){return document}isElementNode(t){return t.nodeType===Node.ELEMENT_NODE}isShadowRoot(t){return t instanceof DocumentFragment}getGlobalEventTarget(t,n){return"window"===n?window:"document"===n?t:"body"===n?t.body:null}getBaseHref(t){const n=function kF(){return Qo=Qo||document.querySelector("base"),Qo?Qo.getAttribute("href"):null}();return null==n?null:function LF(e){Hs=Hs||document.createElement("a"),Hs.setAttribute("href",e);const t=Hs.pathname;return"/"===t.charAt(0)?t:`/${t}`}(n)}resetBaseElement(){Qo=null}getUserAgent(){return window.navigator.userAgent}getCookie(t){return function xN(e,t){t=encodeURIComponent(t);for(const n of e.split(";")){const r=n.indexOf("="),[o,i]=-1==r?[n,""]:[n.slice(0,r),n.slice(r+1)];if(o.trim()===t)return decodeURIComponent(i)}return null}(document.cookie,t)}}let Hs,Qo=null,HF=(()=>{class e{build(){return new XMLHttpRequest}}return e.\u0275fac=function(n){return new(n||e)},e.\u0275prov=Y({token:e,factory:e.\u0275fac}),e})();const yc=new M("EventManagerPlugins");let ID=(()=>{class e{constructor(n,r){this._zone=r,this._eventNameToPlugin=new Map,n.forEach(o=>{o.manager=this}),this._plugins=n.slice().reverse()}addEventListener(n,r,o){return this._findPluginFor(r).addEventListener(n,r,o)}getZone(){return this._zone}_findPluginFor(n){let r=this._eventNameToPlugin.get(n);if(r)return r;if(r=this._plugins.find(i=>i.supports(n)),!r)throw new C(5101,!1);return this._eventNameToPlugin.set(n,r),r}}return e.\u0275fac=function(n){return new(n||e)(B(yc),B(Ae))},e.\u0275prov=Y({token:e,factory:e.\u0275fac}),e})();class TD{constructor(t){this._doc=t}}const Dc="ng-app-id";let ND=(()=>{class e{constructor(n,r,o,i={}){this.doc=n,this.appId=r,this.nonce=o,this.platformId=i,this.styleRef=new Map,this.hostNodes=new Set,this.styleNodesInDOM=this.collectServerRenderedStyles(),this.platformIsServer=wD(i),this.resetHostNodes()}addStyles(n){for(const r of n)1===this.changeUsageCount(r,1)&&this.onStyleAdded(r)}removeStyles(n){for(const r of n)this.changeUsageCount(r,-1)<=0&&this.onStyleRemoved(r)}ngOnDestroy(){const n=this.styleNodesInDOM;n&&(n.forEach(r=>r.remove()),n.clear());for(const r of this.getAllStyles())this.onStyleRemoved(r);this.resetHostNodes()}addHost(n){this.hostNodes.add(n);for(const r of this.getAllStyles())this.addStyleToHost(n,r)}removeHost(n){this.hostNodes.delete(n)}getAllStyles(){return this.styleRef.keys()}onStyleAdded(n){for(const r of this.hostNodes)this.addStyleToHost(r,n)}onStyleRemoved(n){const r=this.styleRef;r.get(n)?.elements?.forEach(o=>o.remove()),r.delete(n)}collectServerRenderedStyles(){const n=this.doc.head?.querySelectorAll(`style[${Dc}="${this.appId}"]`);if(n?.length){const r=new Map;return n.forEach(o=>{null!=o.textContent&&r.set(o.textContent,o)}),r}return null}changeUsageCount(n,r){const o=this.styleRef;if(o.has(n)){const i=o.get(n);return i.usage+=r,i.usage}return o.set(n,{usage:r,elements:[]}),r}getStyleElement(n,r){const o=this.styleNodesInDOM,i=o?.get(r);if(i?.parentNode===n)return o.delete(r),i.removeAttribute(Dc),i;{const s=this.doc.createElement("style");return this.nonce&&s.setAttribute("nonce",this.nonce),s.textContent=r,this.platformIsServer&&s.setAttribute(Dc,this.appId),s}}addStyleToHost(n,r){const o=this.getStyleElement(n,r);n.appendChild(o);const i=this.styleRef,s=i.get(r)?.elements;s?s.push(o):i.set(r,{elements:[o],usage:1})}resetHostNodes(){const n=this.hostNodes;n.clear(),n.add(this.doc.head)}}return e.\u0275fac=function(n){return new(n||e)(B(an),B(Zi),B(Yh,8),B(yr))},e.\u0275prov=Y({token:e,factory:e.\u0275fac}),e})();const vc={svg:"http://www.w3.org/2000/svg",xhtml:"http://www.w3.org/1999/xhtml",xlink:"http://www.w3.org/1999/xlink",xml:"http://www.w3.org/XML/1998/namespace",xmlns:"http://www.w3.org/2000/xmlns/",math:"http://www.w3.org/1998/MathML/"},_c=/%COMP%/g,GF=new M("RemoveStylesOnCompDestroy",{providedIn:"root",factory:()=>!1});function RD(e,t){return t.map(n=>n.replace(_c,e))}let xD=(()=>{class e{constructor(n,r,o,i,s,a,l,u=null){this.eventManager=n,this.sharedStylesHost=r,this.appId=o,this.removeStylesOnCompDestroy=i,this.doc=s,this.platformId=a,this.ngZone=l,this.nonce=u,this.rendererByCompId=new Map,this.platformIsServer=wD(a),this.defaultRenderer=new Cc(n,s,l,this.platformIsServer)}createRenderer(n,r){if(!n||!r)return this.defaultRenderer;this.platformIsServer&&r.encapsulation===rt.ShadowDom&&(r={...r,encapsulation:rt.Emulated});const o=this.getOrCreateRenderer(n,r);return o instanceof PD?o.applyToHost(n):o instanceof wc&&o.applyStyles(),o}getOrCreateRenderer(n,r){const o=this.rendererByCompId;let i=o.get(r.id);if(!i){const s=this.doc,a=this.ngZone,l=this.eventManager,u=this.sharedStylesHost,c=this.removeStylesOnCompDestroy,d=this.platformIsServer;switch(r.encapsulation){case rt.Emulated:i=new PD(l,u,r,this.appId,c,s,a,d);break;case rt.ShadowDom:return new WF(l,u,n,r,s,a,this.nonce,d);default:i=new wc(l,u,r,c,s,a,d)}i.onDestroy=()=>o.delete(r.id),o.set(r.id,i)}return i}ngOnDestroy(){this.rendererByCompId.clear()}}return e.\u0275fac=function(n){return new(n||e)(B(ID),B(ND),B(Zi),B(GF),B(an),B(yr),B(Ae),B(Yh))},e.\u0275prov=Y({token:e,factory:e.\u0275fac}),e})();class Cc{constructor(t,n,r,o){this.eventManager=t,this.doc=n,this.ngZone=r,this.platformIsServer=o,this.data=Object.create(null),this.destroyNode=null}destroy(){}createElement(t,n){return n?this.doc.createElementNS(vc[n]||n,t):this.doc.createElement(t)}createComment(t){return this.doc.createComment(t)}createText(t){return this.doc.createTextNode(t)}appendChild(t,n){(OD(t)?t.content:t).appendChild(n)}insertBefore(t,n,r){t&&(OD(t)?t.content:t).insertBefore(n,r)}removeChild(t,n){t&&t.removeChild(n)}selectRootElement(t,n){let r="string"==typeof t?this.doc.querySelector(t):t;if(!r)throw new C(-5104,!1);return n||(r.textContent=""),r}parentNode(t){return t.parentNode}nextSibling(t){return t.nextSibling}setAttribute(t,n,r,o){if(o){n=o+":"+n;const i=vc[o];i?t.setAttributeNS(i,n,r):t.setAttribute(n,r)}else t.setAttribute(n,r)}removeAttribute(t,n,r){if(r){const o=vc[r];o?t.removeAttributeNS(o,n):t.removeAttribute(`${r}:${n}`)}else t.removeAttribute(n)}addClass(t,n){t.classList.add(n)}removeClass(t,n){t.classList.remove(n)}setStyle(t,n,r,o){o&(Je.DashCase|Je.Important)?t.style.setProperty(n,r,o&Je.Important?"important":""):t.style[n]=r}removeStyle(t,n,r){r&Je.DashCase?t.style.removeProperty(n):t.style[n]=""}setProperty(t,n,r){t[n]=r}setValue(t,n){t.nodeValue=n}listen(t,n,r){if("string"==typeof t&&!(t=jo().getGlobalEventTarget(this.doc,t)))throw new Error(`Unsupported event target ${t} for event ${n}`);return this.eventManager.addEventListener(t,n,this.decoratePreventDefault(r))}decoratePreventDefault(t){return n=>{if("__ngUnwrap__"===n)return t;!1===(this.platformIsServer?this.ngZone.runGuarded(()=>t(n)):t(n))&&n.preventDefault()}}}function OD(e){return"TEMPLATE"===e.tagName&&void 0!==e.content}class WF extends Cc{constructor(t,n,r,o,i,s,a,l){super(t,i,s,l),this.sharedStylesHost=n,this.hostEl=r,this.shadowRoot=r.attachShadow({mode:"open"}),this.sharedStylesHost.addHost(this.shadowRoot);const u=RD(o.id,o.styles);for(const c of u){const d=document.createElement("style");a&&d.setAttribute("nonce",a),d.textContent=c,this.shadowRoot.appendChild(d)}}nodeOrShadowRoot(t){return t===this.hostEl?this.shadowRoot:t}appendChild(t,n){return super.appendChild(this.nodeOrShadowRoot(t),n)}insertBefore(t,n,r){return super.insertBefore(this.nodeOrShadowRoot(t),n,r)}removeChild(t,n){return super.removeChild(this.nodeOrShadowRoot(t),n)}parentNode(t){return this.nodeOrShadowRoot(super.parentNode(this.nodeOrShadowRoot(t)))}destroy(){this.sharedStylesHost.removeHost(this.shadowRoot)}}class wc extends Cc{constructor(t,n,r,o,i,s,a,l){super(t,i,s,a),this.sharedStylesHost=n,this.removeStylesOnCompDestroy=o,this.rendererUsageCount=0,this.styles=l?RD(l,r.styles):r.styles}applyStyles(){this.sharedStylesHost.addStyles(this.styles),this.rendererUsageCount++}destroy(){this.removeStylesOnCompDestroy&&(this.sharedStylesHost.removeStyles(this.styles),this.rendererUsageCount--,0===this.rendererUsageCount&&this.onDestroy?.())}}class PD extends wc{constructor(t,n,r,o,i,s,a,l){const u=o+"-"+r.id;super(t,n,r,i,s,a,l,u),this.contentAttr=function QF(e){return"_ngcontent-%COMP%".replace(_c,e)}(u),this.hostAttr=function zF(e){return"_nghost-%COMP%".replace(_c,e)}(u)}applyToHost(t){this.applyStyles(),this.setAttribute(t,this.hostAttr,"")}createElement(t,n){const r=super.createElement(t,n);return super.setAttribute(r,this.contentAttr,""),r}}let ZF=(()=>{class e extends TD{constructor(n){super(n)}supports(n){return!0}addEventListener(n,r,o){return n.addEventListener(r,o,!1),()=>this.removeEventListener(n,r,o)}removeEventListener(n,r,o){return n.removeEventListener(r,o)}}return e.\u0275fac=function(n){return new(n||e)(B(an))},e.\u0275prov=Y({token:e,factory:e.\u0275fac}),e})();const VD=["alt","control","meta","shift"],YF={"\b":"Backspace","\t":"Tab","\x7f":"Delete","\x1b":"Escape",Del:"Delete",Esc:"Escape",Left:"ArrowLeft",Right:"ArrowRight",Up:"ArrowUp",Down:"ArrowDown",Menu:"ContextMenu",Scroll:"ScrollLock",Win:"OS"},KF={alt:e=>e.altKey,control:e=>e.ctrlKey,meta:e=>e.metaKey,shift:e=>e.shiftKey};let XF=(()=>{class e extends TD{constructor(n){super(n)}supports(n){return null!=e.parseEventName(n)}addEventListener(n,r,o){const i=e.parseEventName(r),s=e.eventCallback(i.fullKey,o,this.manager.getZone());return this.manager.getZone().runOutsideAngular(()=>jo().onAndCancel(n,i.domEventName,s))}static parseEventName(n){const r=n.toLowerCase().split("."),o=r.shift();if(0===r.length||"keydown"!==o&&"keyup"!==o)return null;const i=e._normalizeKey(r.pop());let s="",a=r.indexOf("code");if(a>-1&&(r.splice(a,1),s="code."),VD.forEach(u=>{const c=r.indexOf(u);c>-1&&(r.splice(c,1),s+=u+".")}),s+=i,0!=r.length||0===i.length)return null;const l={};return l.domEventName=o,l.fullKey=s,l}static matchEventFullKeyCode(n,r){let o=YF[n.key]||n.key,i="";return r.indexOf("code.")>-1&&(o=n.code,i="code."),!(null==o||!o)&&(o=o.toLowerCase()," "===o?o="space":"."===o&&(o="dot"),VD.forEach(s=>{s!==o&&(0,KF[s])(n)&&(i+=s+".")}),i+=o,i===r)}static eventCallback(n,r,o){return i=>{e.matchEventFullKeyCode(i,n)&&o.runGuarded(()=>r(i))}}static _normalizeKey(n){return"esc"===n?"escape":n}}return e.\u0275fac=function(n){return new(n||e)(B(an))},e.\u0275prov=Y({token:e,factory:e.\u0275fac}),e})();const nR=Oy(VT,"browser",[{provide:yr,useValue:"browser"},{provide:Zh,useValue:function JF(){mc.makeCurrent()},multi:!0},{provide:an,useFactory:function tR(){return function JE(e){Dl=e}(document),document},deps:[]}]),rR=new M(""),BD=[{provide:Es,useClass:class BF{addToWindow(t){te.getAngularTestability=(r,o=!0)=>{const i=t.findTestabilityInTree(r,o);if(null==i)throw new C(5103,!1);return i},te.getAllAngularTestabilities=()=>t.getAllTestabilities(),te.getAllAngularRootElements=()=>t.getAllRootElements(),te.frameworkStabilizers||(te.frameworkStabilizers=[]),te.frameworkStabilizers.push(r=>{const o=te.getAllAngularTestabilities();let i=o.length,s=!1;const a=function(l){s=s||l,i--,0==i&&r(s)};o.forEach(l=>{l.whenStable(a)})})}findTestabilityInTree(t,n,r){return null==n?null:t.getTestability(n)??(r?jo().isShadowRoot(n)?this.findTestabilityInTree(t,n.host,!0):this.findTestabilityInTree(t,n.parentElement,!0):null)}},deps:[]},{provide:Ty,useClass:ju,deps:[Ae,$u,Es]},{provide:ju,useClass:ju,deps:[Ae,$u,Es]}],HD=[{provide:Al,useValue:"root"},{provide:jn,useFactory:function eR(){return new jn},deps:[]},{provide:yc,useClass:ZF,multi:!0,deps:[an,Ae,yr]},{provide:yc,useClass:XF,multi:!0,deps:[an]},xD,ND,ID,{provide:op,useExisting:xD},{provide:class hF{},useClass:HF,deps:[]},[]];let oR=(()=>{class e{constructor(n){}static withServerTransition(n){return{ngModule:e,providers:[{provide:Zi,useValue:n.appId}]}}}return e.\u0275fac=function(n){return new(n||e)(B(rR,12))},e.\u0275mod=qt({type:e}),e.\u0275inj=It({providers:[...HD,...BD],imports:[lF,kT]}),e})();typeof window<"u"&&window;let UD=(()=>{class e{}return e.\u0275fac=function(n){return new(n||e)},e.\u0275prov=Y({token:e,factory:function(n){let r=null;return r=n?new(n||e):B(GD),r},providedIn:"root"}),e})(),GD=(()=>{class e extends UD{constructor(n){super(),this._doc=n}sanitize(n,r){if(null==r)return null;switch(n){case oe.NONE:return r;case oe.HTML:return kt(r,"HTML")?lt(r):Lh(this._doc,String(r)).toString();case oe.STYLE:return kt(r,"Style")?lt(r):r;case oe.SCRIPT:if(kt(r,"Script"))return lt(r);throw new C(5200,!1);case oe.URL:return kt(r,"URL")?lt(r):Gi(String(r));case oe.RESOURCE_URL:if(kt(r,"ResourceURL"))return lt(r);throw new C(5201,!1);default:throw new C(5202,!1)}}bypassSecurityTrustHtml(n){return function sS(e){return new eS(e)}(n)}bypassSecurityTrustStyle(n){return function aS(e){return new tS(e)}(n)}bypassSecurityTrustScript(n){return function lS(e){return new nS(e)}(n)}bypassSecurityTrustUrl(n){return function uS(e){return new rS(e)}(n)}bypassSecurityTrustResourceUrl(n){return function cS(e){return new oS(e)}(n)}}return e.\u0275fac=function(n){return new(n||e)(B(an))},e.\u0275prov=Y({token:e,factory:function(n){let r=null;return r=n?new n:function cR(e){return new GD(e.get(an))}(B(en)),r},providedIn:"root"}),e})();function zD(e,t,n,r,o,i,s){try{var a=e[i](s),l=a.value}catch(u){return void n(u)}a.done?t(l):Promise.resolve(l).then(r,o)}function js(e){return function(){var t=this,n=arguments;return new Promise(function(r,o){var i=e.apply(t,n);function s(l){zD(i,r,o,s,a,"next",l)}function a(l){zD(i,r,o,s,a,"throw",l)}s(void 0)})}}class mt extends Hr{constructor(){super(...arguments),this._value=null,this._hasValue=!1,this._isComplete=!1}_checkFinalizedStatuses(t){const{hasError:n,_hasValue:r,_value:o,thrownError:i,isStopped:s,_isComplete:a}=this;n?t.error(i):(s||a)&&(r&&t.next(o),t.complete())}next(t){this.isStopped||(this._value=t,this._hasValue=!0)}complete(){const{_hasValue:t,_value:n,_isComplete:r}=this;r||(this._isComplete=!0,t&&super.next(n),super.complete())}}const dR=["video"],fR=["canvas"],hR=["resultsPanel"],Sc="assets/wasm/index.js",zo="https://cdn.jsdelivr.net/npm/ngx-scanner-qrcode@1.6.8/wasm/index.js",qD={audio:!1,video:!0},bc={lineWidth:1,strokeStyle:"green",fillStyle:"#55f02880"},Ac={font:"15px serif",strokeStyle:"#fff0",fillStyle:"#ff0000"},un={src:"",fps:30,vibrate:300,decode:"utf-8",isBeep:!0,constraints:qD,canvasStyles:[bc,Ac]};var $s=()=>"zbarWasm"in window;const z=(e,t,n)=>{n?e.error(n):e.next(t),e.complete()},Mc=(e=!1)=>{if(!1===e)return;const t=new Audio("data:audio/mpeg;base64,SUQzBAAAAAAAI1RTU0UAAAAPAAADTGF2ZjU4LjI5LjEwMAAAAAAAAAAAAAAA/+M4wAAAAAAAAAAAAEluZm8AAAAPAAAABQAAAkAAgICAgICAgICAgICAgICAgICAgKCgoKCgoKCgoKCgoKCgoKCgoKCgwMDAwMDAwMDAwMDAwMDAwMDAwMDg4ODg4ODg4ODg4ODg4ODg4ODg4P//////////////////////////AAAAAExhdmM1OC41NAAAAAAAAAAAAAAAACQEUQAAAAAAAAJAk0uXRQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA/+MYxAANQAbGeUEQAAHZYZ3fASqD4P5TKBgocg+Bw/8+CAYBA4XB9/4EBAEP4nB9+UOf/6gfUCAIKyjgQ/Kf//wfswAAAwQA/+MYxAYOqrbdkZGQAMA7DJLCsQxNOij///////////+tv///3RWiZGBEhsf/FO/+LoCSFs1dFVS/g8f/4Mhv0nhqAieHleLy/+MYxAYOOrbMAY2gABf/////////////////usPJ66R0wI4boY9/8jQYg//g2SPx1M0N3Z0kVJLIs///Uw4aMyvHJJYmPBYG/+MYxAgPMALBucAQAoGgaBoFQVBUFQWDv6gZBUFQVBUGgaBr5YSgqCoKhIGg7+IQVBUFQVBoGga//SsFSoKnf/iVTEFNRTMu/+MYxAYAAANIAAAAADEwMFVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVV");t.oncanplaythrough=()=>{const n=t.play();n&&n.catch(r=>{})}},WD=(e,t,n,r)=>{let o,i,s=t.width,a=t.height,l=s/a,u=parseInt(getComputedStyle(t).width),c=parseInt(getComputedStyle(t).height),d=u/c;n.innerHTML="",l>d?(o=u/s,i=u/l/a):(i=c/a,o=c*l/s);for(let f=0;fd?(p.style.top=In*i+.5*(c-u/l)+"px",p.style.left=Gt*o+"px",p.width=(Mn-Gt)*o,p.height=(Ko-In)*o):(p.style.top=In*i+"px",p.style.left=Gt*o+.5*(u-c*l)+"px",p.width=(Mn-Gt)*i,p.height=(Ko-In)*i);for(const le in r[0])m[le]=r[0][le];const Yc=[];for(let le=0;lewindow.innerWidth?.9*window.innerWidth:s)+"px",le.style.borderRadius=`clamp(1px, ${o*w-10}px, 3px)`,le.style.paddingBlock=`clamp(1px, ${o*w-10}px, 3px)`,le.style.paddingInline=`clamp(2.5px, ${o*w-6}px, 10px)`;const Js=``,ea=(new DOMParser).parseFromString(Js,"application/xml"),Kc=le.ownerDocument.importNode(ea.documentElement,!0);Kc.style.marginLeft=`clamp(1px, ${o*w-10}px, 3px)`,le.appendChild(Kc),Kc.addEventListener("click",()=>window.navigator.clipboard.writeText(h.value)),le.addEventListener("click",()=>window.navigator.clipboard.writeText(h.value));const Tn=document.createElement("div");Tn.setAttribute("class","qrcode-tooltip"),Tn.appendChild(le),i=c/a,o=c*l/s,Tn.style.fontSize=o*w+"px",Tn.style.top=In*i+"px",Tn.style.left=Gt*o+.5*(u-c*l)+"px",Tn.style.width=(Mn-Gt)*i+"px",Tn.style.height=(Ko-In)*i+"px";const Wn=document.createElement("span");Wn.innerText=h.value,Wn.style.top=In*i+-20*i+"px",Wn.style.left=Gt*o+.5*(u-c*l)+"px";const qx=r[1]?.font?.split(" ")?.[1];Wn.style.fontFamily=qx,Wn.style.fontSize=o*w+"px",Wn.style.color=r?.[1]?.fillStyle,n?.appendChild(Tn),n?.appendChild(Wn)}n?.appendChild(p)}},ZD=(e,t)=>new Promise((n,r)=>e.toBlob(o=>n(o),t)),YD=(e=[],t,n,r,o=new mt)=>(KD(e,n,r).then(i=>{Promise.all(Object.assign([],i).map(s=>((e,t)=>{let n=t?.decode??un.decode,r=2===t?.canvasStyles?.length?t?.canvasStyles:[bc,Ac],o=t?.isBeep??un.isBeep;return new Promise((i,s)=>{const a=new FileReader;a.onload=()=>{const l={name:e.name,file:e,url:URL.createObjectURL(e)},u=new Image;u.setAttribute("crossOrigin","anonymous"),u.onload=js(function*(){const c=document.createElement("canvas");c.width=u.naturalWidth||u.width,c.height=u.naturalHeight||u.height;const d=c.getContext("2d");d.drawImage(u,0,0,c.width,c.height);const f=d.getImageData(0,0,c.width,c.height);if($s()){const h=yield zbarWasm.scanImageData(f);if(h?.length){h.forEach(v=>v.value=v.decode(n?.toLocaleLowerCase())),((e,t,n)=>{let r=t.getContext("2d",{willReadFrequently:!0});for(let o=0;o{for(const b in n[0])r[b]=n[0][b];const g=[];for(let b=0;b{const g=n[1]?.font?.split(" ")?.[1];y.height=t.height,y.width=t.width;let w=y.getContext("2d",{willReadFrequently:!0});w.font=u+"px "+g;for(const b in n[1])w[b]=n[1][b];_R(w,i.value,h,p-5)};m(),v(),r.drawImage(y,0,0)}})(h,c,r);const p=yield ZD(c),m=URL.createObjectURL(p);i(Object.assign({},l,{data:h,url:m,canvas:c,file:(v=p,g=l.name,new File([v],g,{lastModified:(new Date).getTime(),type:v.type}))})),Mc(o)}else i(Object.assign({},l,{data:h,canvas:c}))}var v,g}),u.src=l.url},a.onerror=l=>s(l),a.readAsDataURL(e)})})(s,t))).then(s=>{z(o,s)}).catch(s=>z(o,null,s))}),o),_R=(e,t,n,r)=>{let o=1.2*e.measureText("M").width,i=t.split("\n");for(var s=0;s{if(e.length&&(t<100||n<100)){const r=[];return new Promise((o,i)=>{for(const s of e){const a=new Image,l=new FileReader;l.onload=function(u){a.onload=function(){const c=document.createElement("canvas"),d=c.getContext("2d"),f=Math.round(a.width*(t/100)),h=Math.round(a.height*(t/100));c.width=f,c.height=h,d.drawImage(a,0,0,f,h),c.toBlob(p=>{const m=new File([p],s.name,{type:s.type});r.push(m),e.length===r.length&&o(r)},s.type,n/100)},a.src=u.target.result},l.onerror=u=>i(u),l.readAsDataURL(s)}})}return Promise.resolve(e)},XD=e=>{Object.assign([],e.childNodes).forEach(t=>e.removeChild(t))},Ic=(e,t)=>{e.style.width=t.offsetWidth+"px",e.style.height=t.offsetHeight+"px"},JD=(e=300)=>{e&&wR()&&window?.navigator?.vibrate(e)},wR=()=>{const e=navigator.userAgent||navigator.vendor||window.opera;return!(!/(android|bb\d+|meego).+mobile|avantgo|bada\/|blackberry|blazer|compal|elaine|fennec|hiptop|iemobile|ip(hone|od)|iris|kindle|lge |maemo|midp|mmp|mobile.+firefox|netfront|opera m(ob|in)i|palm( os)?|phone|p(ixi|re)\/|plucker|pocket|psp|series(4|6)0|symbian|treo|up\.(browser|link)|vodafone|wap|windows ce|xda|xiino|android|ipad|playbook|silk/i.test(e)&&!/1207|6310|6590|3gso|4thp|50[1-6]i|770s|802s|a wa|abac|ac(er|oo|s-)|ai(ko|rn)|al(av|ca|co)|amoi|an(ex|ny|yw)|aptu|ar(ch|go)|as(te|us)|attw|au(di|-m|r |s )|avan|be(ck|ll|nq)|bi(lb|rd)|bl(ac|az)|br(e|v)w|bumb|bw-(n|u)|c55\/|capi|ccwa|cdm-|cell|chtm|cldc|cmd-|co(mp|nd)|craw|da(it|ll|ng)|dbte|dc-s|devi|dica|dmob|do(c|p)o|ds(12|-d)|el(49|ai)|em(l2|ul)|er(ic|k0)|esl8|ez([4-7]0|os|wa|ze)|fetc|fly(-|_)|g1 u|g560|gene|gf-5|g-mo|go(\.w|od)|gr(ad|un)|haie|hcit|hd-(m|p|t)|hei-|hi(pt|ta)|hp( i|ip)|hs-c|ht(c(-| |_|a|g|p|s|t)|tp)|hu(aw|tc)|i-(20|go|ma)|i230|iac( |-|\/)|ibro|idea|ig01|ikom|im1k|inno|ipaq|iris|ja(t|v)a|jbro|jemu|jigs|kddi|keji|kgt( |\/)|klon|kpt |kwc-|kyo(c|k)|le(no|xi)|lg( g|\/(k|l|u)|50|54|-[a-w])|libw|lynx|m1-w|m3ga|m50\/|ma(te|ui|xo)|mc(01|21|ca)|m-cr|me(rc|ri)|mi(o8|oa|ts)|mmef|mo(01|02|bi|de|do|t(-| |o|v)|zz)|mt(50|p1|v )|mwbp|mywa|n10[0-2]|n20[2-3]|n30(0|2)|n50(0|2|5)|n7(0(0|1)|10)|ne((c|m)-|on|tf|wf|wg|wt)|nok(6|i)|nzph|o2im|op(ti|wv)|oran|owg1|p800|pan(a|d|t)|pdxg|pg(13|-([1-8]|c))|phil|pire|pl(ay|uc)|pn-2|po(ck|rt|se)|prox|psio|pt-g|qa-a|qc(07|12|21|32|60|-[2-7]|i-)|qtek|r380|r600|raks|rim9|ro(ve|zo)|s55\/|sa(ge|ma|mm|ms|ny|va)|sc(01|h-|oo|p-)|sdk\/|se(c(-|0|1)|47|mc|nd|ri)|sgh-|shar|sie(-|m)|sk-0|sl(45|id)|sm(al|ar|b3|it|t5)|so(ft|ny)|sp(01|h-|v-|v )|sy(01|mb)|t2(18|50)|t6(00|10|18)|ta(gt|lk)|tcl-|tdg-|tel(i|m)|tim-|t-mo|to(pl|sh)|ts(70|m-|m3|m5)|tx-9|up(\.b|g1|si)|utst|v400|v750|veri|vi(rg|te)|vk(40|5[0-3]|-v)|vm40|voda|vulc|vx(52|53|60|61|70|80|81|83|85|98)|w3c(-| )|webc|whit|wi(g |nc|nw)|wmlb|wonu|x700|yas-|your|zeto|zte-/i.test(e.substr(0,4))||/^((?!chrome|android).)*safari/i.test(e))};let ev=(()=>{class e{loadFiles(n=[],r,o){const i=new mt;return KD(n,r,o).then(s=>{Promise.all(Object.assign([],s).map(a=>this.readAsDataURL(a))).then(a=>z(i,a)).catch(a=>z(i,null,a))}),i}loadFilesToScan(n=[],r,o,i){return YD(n,r,o,i)}readAsDataURL(n){return new Promise((r,o)=>{const i=new FileReader;i.onload=()=>{const s={name:n.name,file:n,url:URL.createObjectURL(n)};r(s)},i.onerror=s=>o(s),i.readAsDataURL(n)})}}return e.\u0275fac=function(n){return new(n||e)},e.\u0275prov=Y({token:e,factory:e.\u0275fac,providedIn:"root"}),e})();const tv=(e=new mt,t)=>{let n=0;const r=(o=!1)=>{const i=()=>{let l;try{const u=()=>{clearTimeout(l),$s()?setTimeout(()=>z(e,!0)):l=setTimeout(()=>u())};setTimeout(()=>u()),setTimeout(()=>clearTimeout(l),3e3)}catch{clearTimeout(l)}},s=document.querySelectorAll(`script[src="${zo}"]`),a=document.querySelectorAll('script[src="https://cdn.jsdelivr.net/npm/ngx-scanner-qrcode@latest/wasm/index.js"]');if(s.length||a.length)i();else{const l=document.querySelectorAll(`script[src="${Sc}"]`);if(1===l.length)i();else if(l.forEach(u=>u.remove()),t){const u=t.createElement("script");t.setAttribute(u,"src",o?zo:Sc),t.setAttribute(u,"type","text/javascript"),t.setAttribute(u,"async",""),t.appendChild(document.head,u),u.onload=()=>i(),u.onerror=()=>{n<2?(document.head.removeChild(u),r(!0)):z(e,!1,zo)},n+=1}else{const u=document.createElement("script");u.setAttribute("src",o?zo:Sc),u.setAttribute("type","text/javascript"),u.setAttribute("async",""),document.head.appendChild(u),u.onload=()=>i(),u.onerror=()=>{n<2?(document.head.removeChild(u),r(!0)):z(e,!1,zo)},n+=1}}};return r(),e};let ER=(()=>{class e{constructor(n,r){this.renderer=n,this.elementRef=r,this.event=new Fe,this.src=un.src,this.fps=un.fps,this.vibrate=un.vibrate,this.decode=un.decode,this.isBeep=un.isBeep,this.config=un,this.constraints=un.constraints,this.canvasStyles=[bc,Ac],this.isStart=!1,this.isPause=!1,this.isLoading=!1,this.isTorch=!1,this.data=new aa([]),this.devices=new aa([]),this.deviceIndexActive=0,this.dataForResize=[],this.ready=new mt,this.STATUS={startON:()=>this.isStart=!0,pauseON:()=>this.isPause=!0,loadingON:()=>this.isLoading=!0,startOFF:()=>this.isStart=!1,pauseOFF:()=>this.isPause=!1,loadingOFF:()=>this.isLoading=!1,torchOFF:()=>this.isTorch=!1}}ngOnInit(){this.overrideConfig(),tv(this.ready,this.renderer).subscribe(()=>{this.src&&this.loadImage(this.src),this.resize()})}start(n){const r=new mt;return this.isStart?z(r,!1):this.safariWebRTC(r,n),r}stop(){this.STATUS.pauseOFF(),this.STATUS.startOFF(),this.STATUS.torchOFF(),this.STATUS.loadingOFF();const n=new mt;try{clearTimeout(this.rAF_ID),this.video.nativeElement.srcObject.getTracks().forEach(r=>{r.stop(),z(n,!0)}),this.dataForResize=[],(e=>{e.getContext("2d",{willReadFrequently:!0}).clearRect(0,0,e.width,e.height)})(this.canvas.nativeElement),XD(this.resultsPanel.nativeElement)}catch(r){z(n,!1,r)}return n}play(){const n=new mt;return this.isPause?(this.video.nativeElement.play(),this.STATUS.pauseOFF(),this.requestAnimationFrame(),z(n,!0)):z(n,!1),n}pause(){const n=new mt;return this.isStart?(clearTimeout(this.rAF_ID),this.video.nativeElement.pause(),this.STATUS.pauseON(),z(n,!0)):z(n,!1),n}playDevice(n,r=new mt){const o=this.getConstraints();switch(!0){case"null"===n||"undefined"===n||!n:stop(),this.stop(),z(r,!1);break;case n&&(!this.isStart||!o||o.deviceId!==n):stop(),this.stop(),this.STATUS.loadingON(),this.deviceIndexActive=this.devices.value.findIndex(a=>a.deviceId===n);const s={...this.constraints,audio:!1,video:{deviceId:n,...this.constraints.video}};navigator.mediaDevices.getUserMedia(s).then(a=>{this.video.nativeElement.srcObject=a,this.video.nativeElement.onloadedmetadata=()=>{this.video.nativeElement.play(),this.requestAnimationFrame(),z(r,!0),this.STATUS.startON(),this.STATUS.loadingOFF()}}).catch(a=>{this.eventEmit(!1),z(r,!1,a),this.STATUS.startOFF(),this.STATUS.loadingOFF()});break;default:z(r,!1),this.STATUS.loadingOFF()}return r}loadImage(n){const r=new mt;this.STATUS.startOFF(),this.STATUS.loadingON();const o=new Image;return o.setAttribute("crossOrigin","anonymous"),o.onload=()=>{$s()&&this.drawImage(o,i=>{z(r,i),this.STATUS.startOFF(),this.STATUS.loadingOFF()})},o.src=n,r}torcher(){const n=this.applyConstraints({advanced:[{torch:this.isTorch}]});return n.subscribe(()=>!1,()=>this.isTorch=!this.isTorch),n}applyConstraints(n,r=0){var o=this;const i=new mt;if(this.isStart){const s=this.video.nativeElement.srcObject;if(null===r&&void 0===r&&Number.isNaN(r))z(i,!1,"Please check again deviceIndex");else{const a=s.getVideoTracks()[r];new window.ImageCapture(a).getPhotoCapabilities().then(js(function*(){yield a.applyConstraints(n),Ic(o.video.nativeElement,o.canvas.nativeElement),z(i,!0)})).catch(u=>{switch(u?.name){case"NotFoundError":case"DevicesNotFoundError":z(i,!1,"Required track is missing");break;case"NotReadableError":case"TrackStartError":z(i,!1,"Webcam or mic are already in use");break;case"OverconstrainedError":case"ConstraintNotSatisfiedError":z(i,!1,"Constraints can not be satisfied by avb. devices");break;case"NotAllowedError":case"PermissionDeniedError":z(i,!1,"Permission denied in browser");break;case"TypeError":z(i,!1,"Empty constraints object");break;default:z(i,!1,u)}})}}else z(i,!1,"Please start the scanner");return i}getConstraints(n=0){return this.video.nativeElement.srcObject?.getVideoTracks()[n]?.getConstraints()}download(n=`ngx_scanner_qrcode_${Date.now()}.png`,r,o){var i=this;const s=new mt;return js(function*(){const l=((e,t)=>new File([e],t,{lastModified:(new Date).getTime(),type:e.type}))(yield ZD(i.canvas.nativeElement),n);YD([l],i.config,r,o,s).subscribe(u=>{u.forEach(c=>{if(c?.data?.length){const d=document.createElement("a");d.href=c.url,d.download=c.name,d.click(),d.remove()}})})})(),s}resize(){window.addEventListener("resize",()=>{WD(this.dataForResize,this.canvas.nativeElement,this.resultsPanel.nativeElement,this.canvasStyles),Ic(this.video.nativeElement,this.canvas.nativeElement)})}overrideConfig(){"src"in this.config&&(this.src=this.config.src),"fps"in this.config&&(this.fps=this.config.fps),"vibrate"in this.config&&(this.vibrate=this.config.vibrate),"decode"in this.config&&(this.decode=this.config.decode),"isBeep"in this.config&&(this.isBeep=this.config.isBeep),"constraints"in this.config&&(this.constraints=((e,t,n)=>{if(t&&Object.keys(t[e]).length){for(const r in n){const o=JSON.parse(JSON.stringify({...t[e],[r]:n[r]}));t[e]=t[e].hasOwnProperty(r)?t[e]:o}return t[e]}return n})("constraints",this.config,qD)),"canvasStyles"in this.config&&2===this.config?.canvasStyles?.length&&(this.canvasStyles=this.config.canvasStyles)}safariWebRTC(n,r){this.STATUS.startOFF(),this.STATUS.loadingON(),navigator.mediaDevices.getUserMedia(this.constraints).then(o=>{o.getTracks().forEach(i=>i.stop()),this.loadAllDevices(n,r)}).catch(o=>{z(n,!1,o),this.STATUS.startOFF(),this.STATUS.loadingOFF()})}loadAllDevices(n,r){navigator.mediaDevices.enumerateDevices().then(o=>{let i=o.filter(s=>"videoinput"==s.kind);this.devices.next(i),i?.length>0?(z(n,i),r?r(i):this.playDevice(i[0].deviceId)):(z(n,!1,"No camera detected."),this.STATUS.startOFF(),this.STATUS.loadingOFF())}).catch(o=>{z(n,!1,o),this.STATUS.startOFF(),this.STATUS.loadingOFF()})}drawImage(n,r=(()=>{})){var o=this;return js(function*(){const i=o.canvas.nativeElement,s=i.getContext("2d",{willReadFrequently:!0});n instanceof HTMLImageElement&&(i.width=n.naturalWidth,i.height=n.naturalHeight,n.style.visibility="",o.video.nativeElement.style.visibility="hidden",o.renderer.setStyle(o.elementRef.nativeElement,"width",i.width+"px"),o.renderer.setStyle(o.elementRef.nativeElement,"maxWidth","100%"),o.renderer.setStyle(o.elementRef.nativeElement,"display","inline-block")),n instanceof HTMLVideoElement&&(i.width=n.videoWidth,i.height=n.videoHeight,n.style.visibility="",o.canvas.nativeElement.style.visibility="hidden"),Ic(o.video.nativeElement,i),s.clearRect(0,0,i.width,i.height),s.drawImage(n,0,0,i.width,i.height);const a=s.getImageData(0,0,i.width,i.height),l=yield zbarWasm.scanImageData(a);if(l?.length){l.forEach(c=>c.value=c.decode(o.decode?.toLocaleLowerCase())),WD(l,Object.freeze(o.canvas.nativeElement),o.resultsPanel.nativeElement,o.canvasStyles);const u=()=>{o.eventEmit(l),o.dataForResize=l};n instanceof HTMLImageElement&&(r(!0),u(),JD(o.vibrate),Mc(o.isBeep)),n instanceof HTMLVideoElement&&(u(),JD(o.vibrate),Mc(o.isBeep))}else r(!1),XD(o.resultsPanel.nativeElement),o.dataForResize=[]})()}eventEmit(n=!1){!1!==n&&this.data.next(n||[]),!1!==n&&this.event.emit(n||[])}requestAnimationFrame(n=100){try{clearTimeout(this.rAF_ID),this.rAF_ID=setTimeout(()=>{this.video.nativeElement.readyState===this.video.nativeElement.HAVE_ENOUGH_DATA&&(n=0,$s()&&this.drawImage(this.video.nativeElement),this.isStart&&!this.isPause&&this.requestAnimationFrame(n))},n||this.fps)}catch{clearTimeout(this.rAF_ID)}}get isReady(){return this.ready}ngOnDestroy(){this.pause()}}return e.\u0275fac=function(n){return new(n||e)(_(Dn),_(ft))},e.\u0275cmp=Aa({type:e,selectors:[["ngx-scanner-qrcode"]],viewQuery:function(n,r){if(1&n&&(Vo(dR,5),Vo(fR,5),Vo(hR,5)),2&n){let o;Po(o=ko())&&(r.video=o.first),Po(o=ko())&&(r.canvas=o.first),Po(o=ko())&&(r.resultsPanel=o.first)}},hostAttrs:[1,"ngx-scanner-qrcode"],inputs:{src:"src",fps:"fps",vibrate:"vibrate",decode:"decode",isBeep:"isBeep",config:"config",constraints:"constraints",canvasStyles:"canvasStyles"},outputs:{event:"event"},exportAs:["scanner"],decls:6,vars:0,consts:[[1,"origin-overlay"],["resultsPanel",""],[1,"origin-canvas"],["canvas",""],["playsinline","",1,"origin-video"],["video",""]],template:function(n,r){1&n&&_t(0,"div",0,1)(2,"canvas",2,3)(4,"video",4,5)},styles:[".ngx-scanner-qrcode{display:block;position:relative}.origin-overlay{width:100%;position:absolute}.origin-overlay span{z-index:2;text-align:left;position:absolute}.origin-overlay .qrcode-polygon{z-index:1;position:absolute}.origin-canvas{width:100%;position:absolute}.origin-video{width:100%;background-color:#262626}.qrcode-tooltip{z-index:3;position:absolute}.qrcode-tooltip:hover .qrcode-tooltip-temp{display:block;position:absolute;cursor:copy}.qrcode-tooltip:hover .qrcode-tooltip-temp:active{color:#afafaf}.qrcode-tooltip .qrcode-tooltip-temp{bottom:0;left:50%;color:#fff;text-align:left;display:none;width:max-content;word-wrap:break-word;transform:translate(-50%);transform-style:preserve-3d;background-color:#000000d0;box-shadow:1px 1px 20px #000000e0}.qrcode-tooltip .qrcode-tooltip-temp svg{cursor:pointer}.qrcode-tooltip .qrcode-tooltip-temp svg rect{fill:none;stroke:#fff;stroke-linejoin:round;stroke-width:32px}.qrcode-tooltip .qrcode-tooltip-temp svg path{fill:none;stroke:#fff;stroke-linecap:round;stroke-linejoin:round;stroke-width:32px}.qrcode-tooltip .qrcode-tooltip-temp svg:active rect{stroke:#afafaf}.qrcode-tooltip .qrcode-tooltip-temp svg:active path{stroke:#afafaf}\n"],encapsulation:2}),e})(),AR=(()=>{class e{}return e.\u0275fac=function(n){return new(n||e)},e.\u0275mod=qt({type:e}),e.\u0275inj=It({providers:[ev]}),e})();let rv=(()=>{class e{constructor(n,r){this._renderer=n,this._elementRef=r,this.onChange=o=>{},this.onTouched=()=>{}}setProperty(n,r){this._renderer.setProperty(this._elementRef.nativeElement,n,r)}registerOnTouched(n){this.onTouched=n}registerOnChange(n){this.onChange=n}setDisabledState(n){this.setProperty("disabled",n)}}return e.\u0275fac=function(n){return new(n||e)(_(Dn),_(ft))},e.\u0275dir=O({type:e}),e})(),zn=(()=>{class e extends rv{}return e.\u0275fac=function(){let t;return function(r){return(t||(t=Pe(e)))(r||e)}}(),e.\u0275dir=O({type:e,features:[ee]}),e})();const Ut=new M("NgValueAccessor"),kr=new M("CallSetDisabledState",{providedIn:"root",factory:()=>Ws}),Ws="always";let Uv=(()=>{class e{}return e.\u0275fac=function(n){return new(n||e)},e.\u0275mod=qt({type:e}),e.\u0275inj=It({}),e})();const _x={provide:Ut,useExisting:re(()=>qc),multi:!0};function Yv(e,t){return null==e?`${t}`:(t&&"object"==typeof t&&(t="Object"),`${e}: ${t}`.slice(0,50))}let qc=(()=>{class e extends zn{constructor(){super(...arguments),this._optionMap=new Map,this._idCounter=0,this._compareWith=Object.is}set compareWith(n){this._compareWith=n}writeValue(n){this.value=n;const o=Yv(this._getOptionId(n),n);this.setProperty("value",o)}registerOnChange(n){this.onChange=r=>{this.value=this._getOptionValue(r),n(this.value)}}_registerOption(){return(this._idCounter++).toString()}_getOptionId(n){for(const r of this._optionMap.keys())if(this._compareWith(this._optionMap.get(r),n))return r;return null}_getOptionValue(n){const r=function Cx(e){return e.split(":")[0]}(n);return this._optionMap.has(r)?this._optionMap.get(r):n}}return e.\u0275fac=function(){let t;return function(r){return(t||(t=Pe(e)))(r||e)}}(),e.\u0275dir=O({type:e,selectors:[["select","formControlName","",3,"multiple",""],["select","formControl","",3,"multiple",""],["select","ngModel","",3,"multiple",""]],hostBindings:function(n,r){1&n&&ne("change",function(i){return r.onChange(i.target.value)})("blur",function(){return r.onTouched()})},inputs:{compareWith:"compareWith"},features:[ue([_x]),ee]}),e})(),Kv=(()=>{class e{constructor(n,r,o){this._element=n,this._renderer=r,this._select=o,this._select&&(this.id=this._select._registerOption())}set ngValue(n){null!=this._select&&(this._select._optionMap.set(this.id,n),this._setElementValue(Yv(this.id,n)),this._select.writeValue(this._select.value))}set value(n){this._setElementValue(n),this._select&&this._select.writeValue(this._select.value)}_setElementValue(n){this._renderer.setProperty(this._element.nativeElement,"value",n)}ngOnDestroy(){this._select&&(this._select._optionMap.delete(this.id),this._select.writeValue(this._select.value))}}return e.\u0275fac=function(n){return new(n||e)(_(ft),_(Dn),_(qc,9))},e.\u0275dir=O({type:e,selectors:[["option"]],inputs:{ngValue:"ngValue",value:"value"}}),e})();const wx={provide:Ut,useExisting:re(()=>Wc),multi:!0};function Xv(e,t){return null==e?`${t}`:("string"==typeof t&&(t=`'${t}'`),t&&"object"==typeof t&&(t="Object"),`${e}: ${t}`.slice(0,50))}let Wc=(()=>{class e extends zn{constructor(){super(...arguments),this._optionMap=new Map,this._idCounter=0,this._compareWith=Object.is}set compareWith(n){this._compareWith=n}writeValue(n){let r;if(this.value=n,Array.isArray(n)){const o=n.map(i=>this._getOptionId(i));r=(i,s)=>{i._setSelected(o.indexOf(s.toString())>-1)}}else r=(o,i)=>{o._setSelected(!1)};this._optionMap.forEach(r)}registerOnChange(n){this.onChange=r=>{const o=[],i=r.selectedOptions;if(void 0!==i){const s=i;for(let a=0;a{class e{constructor(n,r,o){this._element=n,this._renderer=r,this._select=o,this._select&&(this.id=this._select._registerOption(this))}set ngValue(n){null!=this._select&&(this._value=n,this._setElementValue(Xv(this.id,n)),this._select.writeValue(this._select.value))}set value(n){this._select?(this._value=n,this._setElementValue(Xv(this.id,n)),this._select.writeValue(this._select.value)):this._setElementValue(n)}_setElementValue(n){this._renderer.setProperty(this._element.nativeElement,"value",n)}_setSelected(n){this._renderer.setProperty(this._element.nativeElement,"selected",n)}ngOnDestroy(){this._select&&(this._select._optionMap.delete(this.id),this._select.writeValue(this._select.value))}}return e.\u0275fac=function(n){return new(n||e)(_(ft),_(Dn),_(Wc,9))},e.\u0275dir=O({type:e,selectors:[["option"]],inputs:{ngValue:"ngValue",value:"value"}}),e})(),Rx=(()=>{class e{}return e.\u0275fac=function(n){return new(n||e)},e.\u0275mod=qt({type:e}),e.\u0275inj=It({imports:[Uv]}),e})(),Ox=(()=>{class e{static withConfig(n){return{ngModule:e,providers:[{provide:kr,useValue:n.callSetDisabledState??Ws}]}}}return e.\u0275fac=function(n){return new(n||e)},e.\u0275mod=qt({type:e}),e.\u0275inj=It({imports:[Rx]}),e})(),Px=(()=>{class e{constructor(n){this._sanitizer=n}transform(n,r){switch(r){case"html":default:return this._sanitizer.bypassSecurityTrustHtml(n);case"style":return this._sanitizer.bypassSecurityTrustStyle(n);case"script":return this._sanitizer.bypassSecurityTrustScript(n);case"url":return this._sanitizer.bypassSecurityTrustUrl(n);case"resourceUrl":return this._sanitizer.bypassSecurityTrustResourceUrl(n)}}}return e.\u0275fac=function(n){return new(n||e)(_(UD,16))},e.\u0275pipe=je({name:"safe",type:e,pure:!0}),e})();const Vx=["action"];function kx(e,t){if(1&e&&(U(0,"option",34),Le(1),G()),2&e){const n=t.$implicit,r=t.index;vn();const o=Ne(22);K("value",n.deviceId)("selected",r==o.deviceIndexActive),J(1),pu(n.label)}}function Lx(e,t){1&e&&(U(0,"p"),Le(1,"\u231b Loading..."),G())}function Bx(e,t){if(1&e){const n=bo();U(0,"img",35),ne("click",function(){Ke(n);const o=vn(),i=Ne(22);return Xe(o.handle(i,"start"))}),G()}}function Hx(e,t){if(1&e){const n=bo();U(0,"img",36),ne("click",function(){Ke(n);const o=vn(),i=Ne(22);return Xe(o.handle(i,"stop"))}),G()}}function jx(e,t){if(1&e&&(U(0,"option",34),Le(1),G()),2&e){const n=t.$implicit,r=vn();K("value",n)("selected",n==r.percentage),J(1),Mo("Scale ",n,"%")}}function $x(e,t){if(1&e&&(U(0,"option",34),Le(1),G()),2&e){const n=t.$implicit,r=vn();K("value",n)("selected",n==r.quality),J(1),Mo("Quality ",n,"%")}}function Ux(e,t){if(1&e){const n=bo();U(0,"div")(1,"ngx-scanner-qrcode",30,31),ne("event",function(o){return Ke(n),Xe(vn().onEvent(o))}),G()()}if(2&e){const n=t.$implicit,r=vn();J(1),K("src",n.url)("config",r.config)}}function Gx(e,t){if(1&e&&(U(0,"div"),_t(1,"img",37),function Gm(e,t){const n=$();let r;const o=e+j;n.firstCreatePass?(r=function r0(e,t){if(t)for(let n=t.length-1;n>=0;n--){const r=t[n];if(e===r.name)return r}}(t,n.pipeRegistry),n.data[o]=r,r.onDestroy&&(n.destroyHooks??=[]).push(o,r.onDestroy)):r=n.data[o];const i=r.factory||(r.factory=Pn(r.type)),s=qe(_);try{const a=Mi(!1),l=i();return Mi(a),function PA(e,t,n,r){n>=e.data.length&&(e.data[n]=null,e.blueprint[n]=null),t[n]=r}(n,D(),o,l),l}finally{qe(s)}}(2,"safe"),G()),2&e){const n=t.$implicit;J(1),K("src",Qm(2,1,n.url,"url"),co)}}const u_=function(){return[10,20,30,40,50,60,70,80,90,100]};let Qx=(()=>{class e{constructor(n){this.qrcode=n,this.config={constraints:{video:{width:window.innerWidth}}},this.qrCodeResult=[],this.qrCodeResult2=[],this.percentage=80,this.quality=100}ngAfterViewInit(){this.action.isReady.subscribe(n=>{})}onEvent(n,r){console.log(n)}handle(n,r){"start"===r?n[r](i=>{const s=i.find(a=>/back|rear|environment/gi.test(a.label));n.playDevice(s?s.deviceId:i[0].deviceId)}).subscribe(i=>console.log(r,i),alert):n[r]().subscribe(i=>console.log(r,i),alert)}onDowload(n){n.download().subscribe(console.log,alert)}onSelects(n){this.qrcode.loadFiles(n,this.percentage,this.quality).subscribe(r=>{this.qrCodeResult=r})}onSelects2(n){this.qrcode.loadFilesToScan(n,this.config,this.percentage,this.quality).subscribe(r=>{console.log(r),this.qrCodeResult2=r})}onGetConstraints(){const n=this.action.getConstraints();console.log(n)}applyConstraints(){const n=this.action.applyConstraints({...this.action.getConstraints(),width:510});console.log(n)}}return e.\u0275fac=function(n){return new(n||e)(_(ev))},e.\u0275cmp=Aa({type:e,selectors:[["app-root"]],viewQuery:function(n,r){if(1&n&&Vo(Vx,5),2&n){let o;Po(o=ko())&&(r.action=o.first)}},decls:65,vars:44,consts:[[1,"container"],[1,"row"],[1,"col-xs-12","col-md-6","col-lg-4","col-xl-3","my-1"],[1,"form-select","form-select-md",3,"change"],["select1",""],["selected","",3,"value"],[3,"value","selected",4,"ngFor","ngForOf"],["select2",""],["value","utf-8",3,"selected"],["value","iso-8859-15",3,"selected"],["value","windows-1252",3,"selected"],["value","macintosh",3,"selected"],[3,"config","event"],["action","scanner"],[4,"ngIf"],[1,"btn",3,"disabled"],["src","assets/images/camera-on.svg","width","30px",3,"click",4,"ngIf"],["src","assets/images/camera-off.svg","width","30px",3,"click",4,"ngIf"],[1,"btn",3,"disabled","click"],["width","30px",3,"src"],["src","assets/images/capture.svg","width","30px"],["type","file",1,"btn","btn-success","my-2",3,"multiple","accept","change"],["file",""],["file2",""],[1,"btn","btn-success",3,"click"],[1,"d-flex","justify-content-center","my-2"],[1,"col-xs-12","col-md-6","col-lg-4","col-xl-2","m-1"],["select3",""],["select4",""],[4,"ngFor","ngForOf"],[3,"src","config","event"],["actionFile","scanner"],[1,"center"],["href","https://github.com/id1945/ngx-scanner-qrcode/blob/master/LICENSE"],[3,"value","selected"],["src","assets/images/camera-on.svg","width","30px",3,"click"],["src","assets/images/camera-off.svg","width","30px",3,"click"],["alt","",2,"max-width","100%",3,"src"]],template:function(n,r){if(1&n){const o=bo();U(0,"div",0)(1,"h1"),Le(2," ngx-scanner-qrcode "),G(),U(3,"div",1)(4,"div",2)(5,"select",3,4),ne("change",function(){Ke(o);const s=Ne(6);return Xe(Ne(22).playDevice(s.value))}),U(7,"option",5),Le(8,"Select device"),G(),rn(9,kx,2,3,"option",6),G()(),U(10,"div",2)(11,"select",3,7),ne("change",function(){Ke(o);const s=Ne(22),a=Ne(12);return Xe(s.decode=a.value)}),U(13,"option",8),Le(14,"UTF-8"),G(),U(15,"option",9),Le(16,"ISO-8859-15"),G(),U(17,"option",10),Le(18,"Windows-1252"),G(),U(19,"option",11),Le(20,"Macintosh"),G()()()(),U(21,"ngx-scanner-qrcode",12,13),ne("event",function(s){Ke(o);const a=Ne(22);return Xe(r.onEvent(s,a))}),G(),_t(23,"br"),rn(24,Lx,2,0,"p",14),U(25,"button",15),rn(26,Bx,1,0,"img",16),rn(27,Hx,1,0,"img",17),G(),U(28,"button",18),ne("click",function(){Ke(o);const s=Ne(22);return Xe(r.handle(s,s.isPause?"play":"pause"))}),_t(29,"img",19),G(),U(30,"button",18),ne("click",function(){Ke(o);const s=Ne(22);return s.isTorch=!s.isTorch,Xe(r.handle(s,"torcher"))}),_t(31,"img",19),G(),U(32,"button",18),ne("click",function(){Ke(o);const s=Ne(22);return Xe(r.onDowload(s))}),_t(33,"img",20),G(),_t(34,"br"),U(35,"input",21,22),ne("change",function(){Ke(o);const s=Ne(36);return Xe(r.onSelects(s.files))}),G(),_t(37,"br"),U(38,"input",21,23),ne("change",function(){Ke(o);const s=Ne(39);return Xe(r.onSelects2(s.files))}),G(),_t(40,"br"),U(41,"button",24),ne("click",function(){return r.onGetConstraints()}),Le(42,"Get"),G(),U(43,"button",24),ne("click",function(){return r.applyConstraints()}),Le(44,"App"),G(),U(45,"div",25)(46,"div",26)(47,"select",3,27),ne("change",function(){Ke(o);const s=Ne(48);return Xe(r.percentage=+s.value)}),rn(49,jx,2,3,"option",6),G()(),U(50,"div",26)(51,"select",3,28),ne("change",function(){Ke(o);const s=Ne(52);return Xe(r.quality=+s.value)}),rn(53,$x,2,3,"option",6),G()()(),rn(54,Ux,3,2,"div",29),rn(55,Gx,3,4,"div",29),U(56,"ngx-scanner-qrcode",30,31),ne("event",function(s){return r.onEvent(s)}),G(),U(58,"p",32)(59,"a",33),Le(60,"LGPL-2.1+ License"),G()(),U(61,"p",32),Le(62,"Author: DaiDH"),G(),U(63,"p",32),Le(64,"Copyright (C) 1991, 1999 Free Software Foundation, Inc."),G()()}if(2&n){const o=Ne(22);J(7),K("value",null),J(2),K("ngForOf",o.devices.value),J(4),K("selected","utf-8"==o.decode),J(2),K("selected","iso-8859-15"==o.decode),J(2),K("selected","windows-1252"==o.decode),J(2),K("selected","macintosh"==o.decode),J(2),K("config",r.config),J(3),K("ngIf",o.isLoading),J(1),Cn("btn-info",!o.isStart)("btn-warning",o.isStart),K("disabled",o.isLoading),J(1),K("ngIf",!o.isStart),J(1),K("ngIf",o.isStart),J(1),Cn("btn-info",!o.isStart)("btn-warning",o.isStart),K("disabled",!o.isStart),J(1),K("src",o.isPause?"assets/images/play.svg ":"assets/images/pause.svg",co),J(1),Cn("btn-info",!o.isStart)("btn-warning",o.isStart),K("disabled",!o.isStart),J(1),K("src",o.isTorch?"assets/images/flash-off.svg":"assets/images/flash-on.svg",co),J(1),Cn("btn-info",!o.isStart)("btn-warning",o.isStart),K("disabled",!o.isStart),J(3),K("multiple","multiple")("accept",".jpg, .png, .gif, .jpeg"),J(3),K("multiple","multiple")("accept",".jpg, .png, .gif, .jpeg"),J(11),K("ngForOf",Su(42,u_)),J(4),K("ngForOf",Su(43,u_)),J(1),K("ngForOf",r.qrCodeResult),J(1),K("ngForOf",r.qrCodeResult2),J(1),K("src","https://raw.githubusercontent.com/id1945/ngx-scanner-qrcode/master/supported-barcode-types.png")("config",r.config)}},dependencies:[gD,yD,Kv,Jv,ER,Px],styles:["h1[_ngcontent-%COMP%], h5[_ngcontent-%COMP%], p[_ngcontent-%COMP%]{font-weight:600;word-break:break-all;font-family:Courier New,Courier,monospace}div[_ngcontent-%COMP%]{text-align:center;background:#fdfdfd}div[_ngcontent-%COMP%] button[_ngcontent-%COMP%]{border-radius:50%;height:60px;width:60px;margin:4px}div[_ngcontent-%COMP%] buttondisabled[_ngcontent-%COMP%]{cursor:no-drop}div[_ngcontent-%COMP%] .data[_ngcontent-%COMP%]{background:antiquewhite;border-radius:5px}"]}),e})();tv().subscribe(e=>{console.log("LOAD_WASM",e)});let zx=(()=>{class e{}return e.\u0275fac=function(n){return new(n||e)},e.\u0275mod=qt({type:e,bootstrap:[Qx]}),e.\u0275inj=It({imports:[oR,Ox,AR]}),e})();nR().bootstrapModule(zx).catch(e=>console.error(e))}},ce=>{ce(ce.s=37)}]); \ No newline at end of file