import{qasSo,rasne,sasBe,oasWr,vasPo,xasUt,masue,dasge,easI,yasEo,zasHt,AasUr,BasOo,aasAo,casMo,fasZ,tasSe,jaspe,kasLt,Casxo,has_r,iasTr,Das$r,FasSr,Easko,GasDo,lasNt,nasPr,UasEr,pasjo,HasOr}from"./app-D4Udf6Mm.js";import{FasRo}from"./Form-BGrUTood.js";import{SasFo}from"./Spinner-DHClvaFf.js";import{_asIo}from"./QrContentDisplay-C6rCu47Q.js";import{uasWo}from"./bus-RVphoWuw.js";/*! 2FAuth version 5.4.1 - Copyright (c) 2024 Bubka - https://github.com/Bubka/2FAuth */varLr=(r,i,a)=>{if(!i.has(r))throwTypeError("Cannot "+a)},Ar=(r,i,a)=>(Lr(r,i,"read from private field"),a?a.call(r):i.get(r)),Uo=(r,i,a)=>{if(i.has(r))throwTypeError("Cannot add the same private member more than once");iinstanceofWeakSet?i.add(r):i.set(r,a)},Lo=(r,i,a,c)=>(Lr(r,i,"write to private field"),i.set(r,a),a);constNr=[["aztec","Aztec"],["code_128","Code128"],["code_39","Code39"],["code_93","Code93"],["codabar","Codabar"],["databar","DataBar"],["databar_expanded","DataBarExpanded"],["data_matrix","DataMatrix"],["dx_film_edge","DXFilmEdge"],["ean_13","EAN-13"],["ean_8","EAN-8"],["itf","ITF"],["maxi_code","MaxiCode"],["micro_qr_code","MicroQRCode"],["pdf417","PDF417"],["qr_code","QRCode"],["rm_qr_code","rMQRCode"],["upc_a","UPC-A"],["upc_e","UPC-E"],["linear_codes","Linear-Codes"],["matrix_codes","Matrix-Codes"]],No=[...Nr,["unknown"]].map(r=>r[0]),lt=newMap(Nr);functionHo(r){for(const[i,a]oflt)if(r===a)returni;return"unknown"}functionVo(r){if(Hr(r))return{width:r.naturalWidth,height:r.naturalHeight};if(Vr(r))return{width:r.width.baseVal.value,height:r.height.baseVal.value};if(Br(r))return{width:r.videoWidth,height:r.videoHeight};if(Gr(r))return{width:r.width,height:r.height};if(Jr(r))return{width:r.displayWidth,height:r.displayHeight};if(zr(r))return{width:r.width,height:r.height};if(qr(r))return{width:r.width,height:r.height};thrownewTypeError("The provided value is not of type '(Blob or HTMLCanvasElement or HTMLImageElement or HTMLVideoElement or ImageBitmap or ImageData or OffscreenCanvas or SVGImageElement or VideoFrame)'.")}functionHr(r){try{returnrinstanceofHTMLImageElement}catch{return!1}}functionVr(r){try{returnrinstanceofSVGImageElement}catch{return!1}}functionBr(r){try{returnrinstanceofHTMLVideoElement}catch{return!1}}functionzr(r){try{returnrinstanceofHTMLCanvasElement}catch{return!1}}functionGr(r){try{returnrinstanceofImageBitmap}catch{return!1}}functionqr(r){try{returnrinstanceofOffscreenCanvas}catch{return!1}}functionJr(r){try{returnrinstanceofVideoFrame}catch{return!1}}functionYr(r){try{returnrinstanceofBlob}catch{return!1}}functionBo(r){try{returnrinstanceofImageData}catch{return!1}}functionzo(r,i){try{consta=newOffscreenCanvas(r,i);if(a.getContext("2d")instanceofOffscreenCanvasRenderingContext2D)returna;throwvoid0}catch{constc=document.createElement("canvas");returnc.width=r,c.height=i,c}}asyncfunctionQr(r){if(Hr(r)&&!awaitYo(r))thrownewDOMException("Failed to load or decode HTMLImageElement.","InvalidStateError");if(Vr(r)&&!awaitQo(r))thrownewDOMException("Failed to load or decode SVGImageElement.","InvalidStateError");if(Jr(r)&&Xo(r))thrownewDOMException("VideoFrame is closed.","InvalidStateError");if(Br(r)&&(r.readyState===0||r.readyState===1))thrownewDOMException("Invalid element or state.","InvalidStateError");if(Gr(r)&&Zo(r))thrownewDOMException("The image source is detached.","InvalidStateError");const{width:i,height:a}=Vo(r);if(i===0||a===0)returnnull;constc=zo(i,a).getContext("2d");c.drawImage(r,0,0);try{returnc.getImageData(0,0,i,a)}catch{thrownewDOMException("Source would taint origin.","SecurityError")}}asyncfunctionGo(r){leti;try{if(globalThis.createImageBitmap)i=awaitcreateImageBitmap(r);elseif(globalThis.Image){i=newImage;leta="";try{a=URL.createObjectURL(r),i.src=a,awaiti.decode()}finally{URL.revokeObjectURL(a)}}elsereturnr}catch{thrownewDOMException("Failed to load or decode Blob.","InvalidStateError")}returnawaitQr(i)}functionqo(r){const{width:i,height:a}=r;