import{sasCe,acas_e,NasEe,_asSe}from"./index.413febc1.js";/* empty css *//* empty css *//* empty css *//* empty css *//* empty css *//* empty css *//* empty css *//* empty css *//* empty css *//* empty css */import{dasBe,faswt,rasAe,oasIe,aYasTe,c0asPe,bYasNe,b3asFe,bSasMe,bIasDe,Casx,Dasq,aIasC,aHasS,aMasU,aNasv,G,uasRe,a$asZt,b0asWt,aKasnt,aJasot,aEasrt,nasXt,bcasUe,bkasLe,b$asve,b8aske,biasVe,c1as$e,bGasxe,bKasOe,bOasHe,bmasze,bnasYe}from"./arco.76adc92f.js";import{easyt,gaste,hasI,basF,sasJe}from"./serial.c6b76da8.js";import{uasKe}from"./loading.e4b365a7.js";import"./chart.d41e8c5b.js";import"./vue.107cc2d0.js";varW={},je=function(){returntypeofPromise=="function"&&Promise.prototype&&Promise.prototype.then},re={},k={};letPt;constqe=[0,26,44,70,100,134,172,196,242,292,346,404,466,532,581,655,733,815,901,991,1085,1156,1258,1364,1474,1588,1706,1828,1921,2051,2185,2323,2465,2611,2761,2876,3034,3196,3362,3532,3706];k.getSymbolSize=function(n){if(!n)thrownewError('"version" cannot be null or undefined');if(n<1||n>40)thrownewError('"version" should be in range from 1 to 40');returnn*4+17};k.getSymbolTotalCodewords=function(n){returnqe[n]};k.getBCHDigit=function(o){letn=0;for(;o!==0;)n++,o>>>=1;returnn};k.setToSJISFunction=function(n){if(typeofn!="function")thrownewError('"toSJISFunc" is not a valid function.');Pt=n};k.isKanjiModeEnabled=function(){returntypeofPt<"u"};k.toSJIS=function(n){returnPt(n)};varut={};(function(o){o.L={bit:1},o.M={bit:0},o.Q={bit:3},o.H={bit:2};functionn(i){if(typeofi!="string")thrownewError("Param is not a string");switch(i.toLowerCase()){case"l":case"low":returno.L;case"m":case"medium":returno.M;case"q":case"quartile":returno.Q;case"h":case"high":returno.H;default:thrownewError("Unknown EC Level: "+i)}}o.isValid=function(e){returne&&typeofe.bit<"u"&&e.bit>=0&&e.bit<4},o.from=function(e,a){if(o.isValid(e))returne;try{returnn(e)}catch{returna}}})(ut);functionae(){this.buffer=[],this.length=0}ae.prototype={get:function(o){constn=Math.floor(o/8);return(this.buffer[n]>>>7-o%8&1)===1},put:function(o,n){for(leti=0;i<n;i++)this.putBit((o>>>n-i-1&1)===1)},getLengthInBits:function(){returnthis.length},putBit:function(o){constn=Math.floor(this.length/8);this.buffer.length<=n&&this.buffer.push(0),o&&(this.buffer[n]|=128>>>this.length%8),this.length++}};varGe=ae;functionX(o){if(!o||o<1)thrownewError("BitMatrix size must be defined and greater than 0");this.size=o,this.data=newUint8Array(o*o),this.reservedBit=newUint8Array(o*o)}X.prototype.set=function(o,n,i,e){consta=o*this.size+n;this.data[a]=i,e&&(this.reservedBit[a]=!0)};X.prototype.get=function(o,n){returnthis.data[o*this.size+n]};X.prototype.xor=function(o,n,i){this.data[o*this.size+n]^=i};X.prototype.isReserved=function(o,n){returnthis.reservedBit[o*this.size+n]};varQe=X,ie={};(function(o){constn=k.getSymbolSize;o.getRowColCoords=function(e){if(e===1)return[];consta=Math.floor(e/7)+2,r=n(e),s=r===145?26:Math.ceil((r-13)/(2*a-2))*2,t=[r-7];for(letl=1;l<a-1;l++)t[l]=t[l-1]-s;returnt.push(6),t.reverse()},o.getPositions=function(e){consta=[],r=o.getRowColCoords(e),s=r.length;for(lett=0;t<s;t++)for(letl=0;l<s;l++)t===0&&l===0||t===0&&l===s-1||t===s-1&&l===0||a.push([r[t],r[l]]);returna}})(ie);varse={};constZe=k.getSymbolSize,ee=7;se.getPositions=function(n){consti=Ze(n);return[[0,0],[i-ee,0],[0,i-ee]]};varle={};(function(o){o.Patterns={PATTERN000:0,PATTERN001:1,PATTERN010:2,PATTERN011:3,PATTERN100:4,PATTERN101:5,PATTERN110:6,PATTERN111:7};constn={N1:3,N2:3,N3:40,N4:10};o.isValid=function(a){returna!=null&&a!==""&&!isNaN(a)&&a>=0&&a<=7},o.from=function(a){returno.isValid(a)?parseInt(a,10):void0},o.getPenaltyN1=function(a){constr=a.size;lets=0,t=0,l=0,g=null,h=null;for(letA=0;A<r;A++){t=l=0,g=h=null;for(lety=0;y<r;y++){letm=a.get(A,y);m===g?t++:(t>=5&&(s+=n.N1+(t-5)),g=
]))+`;$.KANJI=new RegExp(Z,"g");$.BYTE_KANJI=new RegExp("[^A-Z0-9 $%*+\\-./:]+","g");$.BYTE=new RegExp(tn,"g");$.NUMERIC=new RegExp(de,"g");$.ALPHANUMERIC=new RegExp(Xe,"g");const en=new RegExp("^"+Z+"$"),nn=new RegExp("^"+de+"$"),on=new RegExp("^[A-Z0-9 $%*+\\-./:]+$");$.testKanji=function(n){return en.test(n)};$.testNumeric=function(n){return nn.test(n)};$.testAlphanumeric=function(n){return on.test(n)};(function(o){const n=Ft,i=$;o.NUMERIC={id:"Numeric",bit:1<<0,ccBits:[10,12,14]},o.ALPHANUMERIC={id:"Alphanumeric",bit:1<<1,ccBits:[9,11,13]},o.BYTE={id:"Byte",bit:1<<2,ccBits:[8,16,16]},o.KANJI={id:"Kanji",bit:1<<3,ccBits:[8,10,12]},o.MIXED={bit:-1},o.getCharCountIndicator=function(r,s){if(!r.ccBits)throw new Error("Invalid mode: "+r);if(!n.isValid(s))throw new Error("Invalid version: "+s);return s>=1&&s<10?r.ccBits[0]:s<27?r.ccBits[1]:r.ccBits[2]},o.getBestModeForData=function(r){return i.testNumeric(r)?o.NUMERIC:i.testAlphanumeric(r)?o.ALPHANUMERIC:i.testKanji(r)?o.KANJI:o.BYTE},o.toString=function(r){if(r&&r.id)return r.id;throw new Error("Invalid mode")},o.isValid=function(r){return r&&r.bit&&r.ccBits};function e(a){if(typeof a!="string")throw new Error("Param is not a string");switch(a.toLowerCase()){case"numeric":return o.NUMERIC;case"alphanumeric":return o.ALPHANUMERIC;case"kanji":return o.KANJI;case"byte":return o.BYTE;default:throw new Error("Unknown mode: "+a)}}o.from=function(r,s){if(o.isValid(r))return r;try{return e(r)}catch{return s}}})(H);(function(o){const n=k,i=ct,e=ut,a=H,r=Ft,s=1<<12|1<<11|1<<10|1<<9|1<<8|1<<5|1<<2|1<<0,t=n.getBCHDigit(s);function l(y,m,_){for(let E=1;E<=40;E++)if(m<=o.getCapacity(E,_,y))return E}function g(y,m){return a.getCharCountIndicator(y,m)+4}function h(y,m){let _=0;return y.forEach(function(E){const T=g(E.mode,m);_+=T+E.getBitsLength()}),_}function A(y,m){for(let _=1;_<=40;_++)if(h(y,_)<=o.getCapacity(_,m,a.MIXED))return _}o.from=function(m,_){return r.isValid(m)?parseInt(m,10):_},o.getCapacity=function(m,_,E){if(!r.isValid(m))throw new Error("Invalid QR Code version");typeof E>"u"&&(E=a.BYTE);const T=n.getSymbolTotalCodewords(m),b=i.getTotalCodewordsCount(m,_),c=(T-b)*8;if(E===a.MIXED)return c;const u=c-g(E,m);switch(E){case a.NUMERIC:return Math.floor(u/10*3);case a.ALPHANUMERIC:return Math.floor(u/11*2);case a.KANJI:return Math.floor(u/13);case a.BYTE:default:return Math.floor(u/8)}},o.getBestVersionForData=function(m,_){let E;const T=e.from(_,e.M);if(Array.isArray(m)){if(m.length>1)return A(m,T);if(m.length===0)return 1;E=m[0]}else E=m;return l(E.mode,E.getLength(),T)},o.getEncodedBits=function(m){if(!r.isValid(m)||m<7)throw new Error("Invalid QR Code version");let _=m<<12;for(;n.getBCHDigit(_)-t>=0;)_^=s<<n.getBCHDigit(_)-t;return m<<12|_}})(fe);var ge={};const Bt=k,he=1<<10|1<<8|1<<5|1<<4|1<<2|1<<1|1<<0,rn=1<<14|1<<12|1<<10|1<<4|1<<1,ne=Bt.getBCHDigit(he);ge.getEncodedBits=function(n,i){const e=n.bit<<3|i;let a=e<<10;for(;Bt.getBCHDigit(a)-ne>=0;)a^=he<<Bt.getBCHDigit(a)-ne;return(e<<10|a)^rn};var pe={};const an=H;function Y(o){this.mode=an.NUMERIC,this.data=o.toString()}Y.getBitsLength=function(n){return 10*Math.floor(n/3)+(n%3?n%3*3+1:0)};Y.prototype.getLength=function(){return this.data.length};Y.prototype.getBitsLength=function(){return Y.getBitsLength(this.data.length)};Y.prototype.write=function(n){let i,e,a;for(i=0;i+3<=this.data.length;i+=3)e=this.data.substr(i,3),a=parseInt(e,10),n.put(a,10);const r=this.data.length-i;r>0&&(e=this.data.substr(i),a=parseInt(e,10),n.put(a,r*3+1))};var sn=Y;const ln=H,bt=["0","1","2","3","4","5","6","7","8","9","A","B","C","D","E","F","G","H","I","J","K","L","M","N","O","P","Q","R","S","T","U","V","W","X","Y","Z"," ","$","%","*","+","-",".","/",":"];function J(o){this.mode=ln.ALPHANUMERIC,this.data=o}J.getBitsLength=function(n){return 11*Math.floor(n/2)+6*(n%2)};J.prototype.getLength=function(){return this.data.length};J.prototype.getBitsLength=function(){return J.getBitsLength(this.data.length)};J.prototype.write=function(n){let i;for(i=0;i+2<=this.data.length;i+=2){let e=bt.indexOf(this.data[i])*45;e+=bt.indexOf(this.data[i+1]),
MakesureyourcharsetisUTF-8`);i=(i>>>8&255)*192+(i&255),o.put(i,13)}};var mn=j,me={exports:{}};(function(o){var n={single_source_shortest_paths:function(i,e,a){var r={},s={};s[e]=0;var t=n.PriorityQueue.make();t.push(e,0);for(var l,g,h,A,y,m,_,E,T;!t.empty();){l=t.pop(),g=l.value,A=l.cost,y=i[g]||{};for(h in y)y.hasOwnProperty(h)&&(m=y[h],_=A+m,E=s[h],T=typeof s[h]>"u",(T||E>_)&&(s[h]=_,t.push(h,_),r[h]=g))}if(typeof a<"u"&&typeof s[a]>"u"){var b=["Could not find a path from ",e," to ",a,"."].join("");throw new Error(b)}return r},extract_shortest_path_from_predecessor_list:function(i,e){for(var a=[],r=e;r;)a.push(r),i[r],r=i[r];return a.reverse(),a},find_path:function(i,e,a){var r=n.single_source_shortest_paths(i,e,a);return n.extract_shortest_path_from_predecessor_list(r,a)},PriorityQueue:{make:function(i){var e=n.PriorityQueue,a={},r;i=i||{};for(r in e)e.hasOwnProperty(r)&&(a[r]=e[r]);return a.queue=[],a.sorter=i.sorter||e.default_sorter,a},default_sorter:function(i,e){return i.cost-e.cost},push:function(i,e){var a={value:i,cost:e};this.queue.push(a),this.queue.sort(this.sorter)},pop:function(){return this.queue.shift()},empty:function(){return this.queue.length===0}}};o.exports=n})(me);(function(o){const n=H,i=sn,e=un,a=gn,r=mn,s=$,t=k,l=me.exports;function g(b){return unescape(encodeURIComponent(b)).length}function h(b,c,u){const f=[];let d;for(;(d=b.exec(u))!==null;)f.push({data:d[0],index:d.index,mode:c,length:d[0].length});return f}function A(b){const c=h(s.NUMERIC,n.NUMERIC,b),u=h(s.ALPHANUMERIC,n.ALPHANUMERIC,b);let f,d;return t.isKanjiModeEnabled()?(f=h(s.BYTE,n.BYTE,b),d=h(s.KANJI,n.KANJI,b)):(f=h(s.BYTE_KANJI,n.BYTE,b),d=[]),c.concat(u,f,d).sort(function(B,R){return B.index-R.index}).map(function(B){return{data:B.data,mode:B.mode,length:B.length}})}function y(b,c){switch(c){case n.NUMERIC:return i.getBitsLength(b);case n.ALPHANUMERIC:return e.getBitsLength(b);case n.KANJI:return r.getBitsLength(b);case n.BYTE:return a.getBitsLength(b)}}function m(b){return b.reduce(function(c,u){const f=c.length-1>=0?c[c.length-1]:null;return f&&f.mode===u.mode?(c[c.length-1].data+=u.data,c):(c.push(u),c)},[])}function _(b){const c=[];for(let u=0;u<b.length;u++){const f=b[u];switch(f.mode){case n.NUMERIC:c.push([f,{data:f.data,mode:n.ALPHANUMERIC,length:f.length},{data:f.data,mode:n.BYTE,length:f.length}]);break;case n.ALPHANUMERIC:c.push([f,{data:f.data,mode:n.BYTE,length:f.length}]);break;case n.KANJI:c.push([f,{data:f.data,mode:n.BYTE,length:g(f.data)}]);break;case n.BYTE:c.push([{data:f.data,mode:n.BYTE,length:g(f.data)}])}}return c}function E(b,c){const u={},f={start:{}};let d=["start"];for(let p=0;p<b.length;p++){const B=b[p],R=[];for(let M=0;M<B.length;M++){const D=B[M],P=""+p+M;R.push(P),u[P]={node:D,lastCount:0},f[P]={};for(let V=0;V<d.length;V++){const L=d[V];u[L]&&u[L].node.mode===D.mode?(f[L][P]=y(u[L].lastCount+D.length,D.mode)-y(u[L].lastCount,D.mode),u[L].lastCount+=D.length):(u[L]&&(u[L].lastCount=D.length),f[L][P]=y(D.length,D.mode)+4+n.getCharCountIndicator(D.mode,c))}}d=R}for(let p=0;p<d.length;p++)f[d[p]].end=0;return{map:f,table:u}}function T(b,c){let u;const f=n.getBestModeForData(b);if(u=n.from(c,f),u!==n.BYTE&&u.bit<f.bit)throw new Error('"'+b+'" cannot be encoded with mode '+n.toString(u)+`.