1import{a as tn}from"./chunk-JPXBLFOP.js";import{b as Xt,c as Zt,h as en}from"./chunk-LGWCY2T2.js";import{Aa as A,Bi as Kt,Ch as Ht,Da as xt,Dd as j,E as we,Eb as It,Ed as F,Fb as Nt,Fi as Qt,Gi as Jt,Ha as ue,Hi as Yt,Ia as N,Id as ee,Jd as te,K as Z,Ka as b,Kd as ne,L as ft,Ld as ie,N as P,Na as wt,O as de,Oa as yt,P as pe,Pa as Et,T as mt,Ub as Lt,V as ht,Wa as Mt,X as _t,Xa as p,Ya as D,Za as St,_ as Ct,a as M,b as S,bm as $t,ca as h,d as m,e as gi,ed as Dt,f as qe,fb as Pt,fd as Ee,fi as Gt,ga as bt,gd as Bt,ia as k,ib as At,ja as vt,kb as Tt,kd as Ot,mc as Rt,md as zt,nd as qt,ob as v,od as Ut,pb as ye,pd as jt,qb as L,qd as Ft,ra as y,rf as Vt,sa as E,tc as kt,vj as Wt,xa as I,ya as d,za as l}from"./chunk-YMFY75IU.js";var cn=m((Jr,sn)=>{"use strict";sn.exports=function(){return typeof Promise=="function"&&Promise.prototype&&Promise.prototype.then}});var H=m(J=>{"use strict";var je,_i=[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];J.getSymbolSize=function(t){if(!t)throw new Error('"version" cannot be null or undefined');if(t<1||t>40)throw new Error('"version" should be in range from 1 to 40');return t*4+17};J.getSymbolTotalCodewords=function(t){return _i[t]};J.getBCHDigit=function(n){let t=0;for(;n!==0;)t++,n>>>=1;return t};J.setToSJISFunction=function(t){if(typeof t!="function")throw new Error('"toSJISFunc" is not a valid function.');je=t};J.isKanjiModeEnabled=function(){return typeof je<"u"};J.toSJIS=function(t){return je(t)}});var Me=m(T=>{"use strict";T.L={bit:1};T.M={bit:0};T.Q={bit:3};T.H={bit:2};function Ci(n){if(typeof n!="string")throw new Error("Param is not a string");switch(n.toLowerCase()){case"l":case"low":return T.L;case"m":case"medium":return T.M;case"q":case"quartile":return T.Q;case"h":case"high":return T.H;default:throw new Error("Unknown EC Level: "+n)}}T.isValid=function(t){return t&&typeof t.bit<"u"&&t.bit>=0&&t.bit<4};T.from=function(t,e){if(T.isValid(t))return t;try{return Ci(t)}catch(i){return e}}});var pn=m(($r,dn)=>{"use strict";function ln(){this.buffer=[],this.length=0}ln.prototype={get:function(n){let t=Math.floor(n/8);return(this.buffer[t]>>>7-n%8&1)===1},put:function(n,t){for(let e=0;e<t;e++)this.putBit((n>>>t-e-1&1)===1)},getLengthInBits:function(){return this.length},putBit:function(n){let t=Math.floor(this.length/8);this.buffer.length<=t&&this.buffer.push(0),n&&(this.buffer[t]|=128>>>this.length%8),this.length++}};dn.exports=ln});var gn=m((Xr,un)=>{"use strict";function ge(n){if(!n||n<1)throw new Error("BitMatrix size must be defined and greater than 0");this.size=n,this.data=new Uint8Array(n*n),this.reservedBit=new Uint8Array(n*n)}ge.prototype.set=function(n,t,e,i){let r=n*this.size+t;this.data[r]=e,i&&(this.reservedBit[r]=!0)};ge.prototype.get=function(n,t){return this.data[n*this.size+t]};ge.prototype.xor=function(n,t,e){this.data[n*this.size+t]^=e};ge.prototype.isReserved=function(n,t){return this.reservedBit[n*this.size+t]};un.exports=ge});var fn=m(Se=>{"use strict";var bi=H().getSymbolSize;Se.getRowColCoords=function(t){if(t===1)return[];let e=Math.floor(t/7)+2,i=bi(t),r=i===145?26:Math.ceil((i-13)/(2*e-2))*2,o=[i-7];for(let a=1;a<e-1;a++)o[a]=o[a-1]-r;return o.push(6),o.reverse()};Se.getPositions=function(t){let e=[],i=Se.getRowColCoords(t),r=i.length;for(let o=0;o<r;o++)for(let a=0;a<r;a++)o===0&&a===0||o===0&&a===r-1||o===r-1&&a===0||e.push([i[o],i[a]]);return e}});var _n=m(hn=>{"use strict";var vi=H().getSymbolSize,mn=7;hn.getPositions=function(t){let e=vi(t);return[[0,0],[e-mn,0],[0,e-mn]]}});var Cn=m(_=>{"use strict";_.Patterns={PATTERN000:0,PATTERN001:1,PATTERN010:2,PATTERN011:3,PATTERN100:4,PATTERN101:5,PATTERN110:6,PATTERN111:7};var Y={N1:3,N2:3,N3:40,N4:10};_.isValid=function(t){return t!=null&&t!==""&&!isNaN(t)&&t>=0&&t<=7};_.from=function(t){return _.isValid(t)?parseInt(t,10):void 0};_.getPenaltyN1=function(t){let e=t.size,i=0,r=0,o=0,a=null,s=null;for(let c=0;c<e;c++){r=o=0,a=s=null;for(let u=0;u<e;u++){let g=t.get(c,u);g===a?r++:(r>=5&&(i+=Y.N1+(r-5)),a=g,r=1),g=t.get(u,c),g===s?o++:(o>=5&&(i+=Y.N1+(o-5)),s=g,o=1)}r>=5&&(i+=Y.N1+(r-5)),o>=5&&(i+=Y.N1+(o-5))}return i};_.getPenaltyN2=function(t){let e=t.size,i=0;for(let r=0;r<e-1;r++)for(let o=0;o<e-1;o++){let a=t.get(r,o)+t.get(r,o+1)+t.get(r+1,o)+t.get(r+1,o+1);(a===4||a===0)&&i++}return i*Y.N2};_.getPenaltyN3=function(t){let e=t.size,i=0,r=0,o=0;for(let a=0;a<e;a++){r=o=0;for(let s=0;s<e;s++)r=r<<1&2047|t.get(a,s),s>=10&&(r===1488||r===93)&&i++,o=o<<1&2047|t.get(s,a),s>=10&&(o===1488||o===93)&&i++}return i*Y.N3};_.getPenaltyN4=function(t){let e=0,i=t.data.length;for(let o=0;o<i;o++)e+=t.data[o];return Math.abs(Math.ceil(e*100/i/5)-10)*Y.N4};function xi(n,t,e){switch(n){case _.Patterns.PATTERN000:return(t+e)%2===0;case _.Patterns.PATTERN001:return t%2===0;case _.Patterns.PATTERN010:return e%3===0;case _.Patterns.PATTERN011:return(t+e)%3===0;case _.Patterns.PATTERN100:return(Math.floor(t/2)+Math.floor(e/3))%2===0;case _.Patterns.PATTERN101:return t*e%2+t*e%3===0;case _.Patterns.PATTERN110:return(t*e%2+t*e%3)%2===0;case _.Patterns.PATTERN111:return(t*e%3+(t+e)%2)%2===0;default:throw new Error("bad maskPattern:"+n)}}
1_.applyMask=function(t,e){let i=e.size;for(let r=0;r<i;r++)for(let o=0;o<i;o++)e.isReserved(o,r)||e.xor(o,r,xi(t,o,r))};_.getBestMask=function(t,e){let i=Object.keys(_.Patterns).length,r=0,o=1/0;for(let a=0;a<i;a++){e(a),_.applyMask(a,t);let s=_.getPenaltyN1(t)+_.getPenaltyN2(t)+_.getPenaltyN3(t)+_.getPenaltyN4(t);_.applyMask(a,t),s<o&&(o=s,r=a)}return r}});var Ve=m(Fe=>{"use strict";var G=Me(),Pe=[1,1,1,1,1,1,1,1,1,1,2,2,1,2,2,4,1,2,4,4,2,4,4,4,2,4,6,5,2,4,6,6,2,5,8,8,4,5,8,8,4,5,8,11,4,8,10,11,4,9,12,16,4,9,16,16,6,10,12,18,6,10,17,16,6,11,16,19,6,13,18,21,7,14,21,25,8,16,20,25,8,17,23,25,9,17,23,34,9,18,25,30,10,20,27,32,12,21,29,35,12,23,34,37,12,25,34,40,13,26,35,42,14,28,38,45,15,29,40,48,16,31,43,51,17,33,45,54,18,35,48,57,19,37,51,60,19,38,53,63,20,40,56,66,21,43,59,70,22,45,62,74,24,47,65,77,25,49,68,81],Ae=[7,10,13,17,10,16,22,28,15,26,36,44,20,36,52,64,26,48,72,88,36,64,96,112,40,72,108,130,48,88,132,156,60,110,160,192,72,130,192,224,80,150,224,264,96,176,260,308,104,198,288,352,120,216,320,384,132,240,360,432,144,280,408,480,168,308,448,532,180,338,504,588,196,364,546,650,224,416,600,700,224,442,644,750,252,476,690,816,270,504,750,900,300,560,810,960,312,588,870,1050,336,644,952,1110,360,700,1020,1200,390,728,1050,1260,420,784,1140,1350,450,812,1200,1440,480,868,1290,1530,510,924,1350,1620,540,980,1440,1710,570,1036,1530,1800,570,1064,1590,1890,600,1120,1680,1980,630,1204,1770,2100,660,1260,1860,2220,720,1316,1950,2310,750,1372,2040,2430];Fe.getBlocksCount=function(t,e){switch(e){case G.L:return Pe[(t-1)*4+0];case G.M:return Pe[(t-1)*4+1];case G.Q:return Pe[(t-1)*4+2];case G.H:return Pe[(t-1)*4+3];default:return}};Fe.getTotalCodewordsCount=function(t,e){switch(e){case G.L:return Ae[(t-1)*4+0];case G.M:return Ae[(t-1)*4+1];case G.Q:return Ae[(t-1)*4+2];case G.H:return Ae[(t-1)*4+3];default:return}}});var bn=m(Ie=>{"use strict";var fe=new Uint8Array(512),Te=new Uint8Array(256);(function(){let t=1;for(let e=0;e<255;e++)fe[e]=t,Te[t]=e,t<<=1,t&256&&(t^=285);for(let e=255;e<512;e++)fe[e]=fe[e-255]})();Ie.log=function(t){if(t<1)throw new Error("log("+t+")");return Te[t]};Ie.exp=function(t){return fe[t]};Ie.mul=function(t,e){return t===0||e===0?0:fe[Te[t]+Te[e]]}});var vn=m(me=>{"use strict";var He=bn();me.mul=function(t,e){let i=new Uint8Array(t.length+e.length-1);for(let r=0;r<t.length;r++)for(let o=0;o<e.length;o++)i[r+o]^=He.mul(t[r],e[o]);return i};me.mod=function(t,e){let i=new Uint8Array(t);for(;i.length-e.length>=0;){let r=i[0];for(let a=0;a<e.length;a++)i[a]^=He.mul(e[a],r);let o=0;for(;o<i.length&&i[o]===0;)o++;i=i.slice(o)}return i};me.generateECPolynomial=function(t){let e=new Uint8Array([1]);for(let i=0;i<t;i++)e=me.mul(e,new Uint8Array([1,He.exp(i)]));return e}});var yn=m((oo,wn)=>{"use strict";var xn=vn();function Ge(n){this.genPoly=void 0,this.degree=n,this.degree&&this.initialize(this.degree)}Ge.prototype.initialize=function(t){this.degree=t,this.genPoly=xn.generateECPolynomial(this.degree)};Ge.prototype.encode=function(t){if(!this.genPoly)throw new Error("Encoder not initialized");let e=new Uint8Array(t.length+this.degree);e.set(t);let i=xn.mod(e,this.genPoly),r=this.degree-i.length;if(r>0){let o=new Uint8Array(this.degree);return o.set(i,r),o}return i};wn.exports=Ge});var Ke=m(En=>{"use strict";En.isValid=function(t){return!isNaN(t)&&t>=1&&t<=40}});var Qe=m(z=>{"use strict";var Mn="[0-9]+",wi="[A-Z $%*+\\-./:]+",he="(?:[u3000-u303F]|[u3040-u309F]|[u30A0-u30FF]|[uFF00-uFFEF]|[u4E00-u9FAF]|[u2605-u2606]|[u2190-u2195]|u203B|[u2010u2015u2018u2019u2025u2026u201Cu201Du2225u2260]|[u0391-u0451]|[u00A7u00A8u00B1u00B4u00D7u00F7])+";he=he.replace(/u/g,"\\u");var yi="(?:(?![A-Z0-9 $%*+\\-./:]|"+he+`)(?:.|[\r 2]))+`;z.KANJI=new RegExp(he,"g");z.BYTE_KANJI=new RegExp("[^A-Z0-9 $%*+\\-./:]+","g");z.BYTE=new RegExp(yi,"g");z.NUMERIC=new RegExp(Mn,"g");z.ALPHANUMERIC=new RegExp(wi,"g");var Ei=new RegExp("^"+he+"$"),Mi=new RegExp("^"+Mn+"$"),Si=new RegExp("^[A-Z0-9 $%*+\\-./:]+$");z.testKanji=function(t){return Ei.test(t)};z.testNumeric=function(t){return Mi.test(t)};z.testAlphanumeric=function(t){return Si.test(t)}});var K=m(x=>{"use strict";var Pi=Ke(),Je=Qe();x.NUMERIC={id:"Numeric",bit:1,ccBits:[10,12,14]};x.ALPHANUMERIC={id:"Alphanumeric",bit:2,ccBits:[9,11,13]};x.BYTE={id:"Byte",bit:4,ccBits:[8,16,16]};x.KANJI={id:"Kanji",bit:8,ccBits:[8,10,12]};x.MIXED={bit:-1};x.getCharCountIndicator=function(t,e){if(!t.ccBits)throw new Error("Invalid mode: "+t);if(!Pi.isValid(e))throw new Error("Invalid version: "+e);return e>=1&&e<10?t.ccBits[0]:e<27?t.ccBits[1]:t.ccBits[2]};x.getBestModeForData=function(t){return Je.testNumeric(t)?x.NUMERIC:Je.testAlphanumeric(t)?x.ALPHANUMERIC:Je.testKanji(t)?x.KANJI:x.BYTE};x.toString=function(t){if(t&&t.id)return t.id;throw new Error("Invalid mode")};x.isValid=function(t){return t&&t.bit&&t.ccBits};
2function Ai(n){if(typeof n!="string")throw new Error("Param is not a string");switch(n.toLowerCase()){case"numeric":return x.NUMERIC;case"alphanumeric":return x.ALPHANUMERIC;case"kanji":return x.KANJI;case"byte":return x.BYTE;default:throw new Error("Unknown mode: "+n)}}x.from=function(t,e){if(x.isValid(t))return t;try{return Ai(t)}catch(i){return e}}});var In=m(W=>{"use strict";var Ne=H(),Ti=Ve(),Sn=Me(),Q=K(),Ye=Ke(),An=7973,Pn=Ne.getBCHDigit(An);function Ii(n,t,e){for(let i=1;i<=40;i++)if(t<=W.getCapacity(i,e,n))return i}function Tn(n,t){return Q.getCharCountIndicator(n,t)+4}function Ni(n,t){let e=0;return n.forEach(function(i){let r=Tn(i.mode,t);e+=r+i.getBitsLength()}),e}function Li(n,t){for(let e=1;e<=40;e++)if(Ni(n,e)<=W.getCapacity(e,t,Q.MIXED))return e}W.from=function(t,e){return Ye.isValid(t)?parseInt(t,10):e};W.getCapacity=function(t,e,i){if(!Ye.isValid(t))throw new Error("Invalid QR Code version");typeof i>"u"&&(i=Q.BYTE);let r=Ne.getSymbolTotalCodewords(t),o=Ti.getTotalCodewordsCount(t,e),a=(r-o)*8;if(i===Q.MIXED)return a;let s=a-Tn(i,t);switch(i){case Q.NUMERIC:return Math.floor(s/10*3);case Q.ALPHANUMERIC:return Math.floor(s/11*2);case Q.KANJI:return Math.floor(s/13);case Q.BYTE:default:return Math.floor(s/8)}};W.getBestVersionForData=function(t,e){let i,r=Sn.from(e,Sn.M);if(Array.isArray(t)){if(t.length>1)return Li(t,r);if(t.length===0)return 1;i=t[0]}else i=t;return Ii(i.mode,i.getLength(),r)};W.getEncodedBits=function(t){if(!Ye.isValid(t)||t<7)throw new Error("Invalid QR Code version");let e=t<<12;for(;Ne.getBCHDigit(e)-Pn>=0;)e^=An<<Ne.getBCHDigit(e)-Pn;return t<<12|e}});var kn=m(Rn=>{"use strict";var We=H(),Ln=1335,Ri=21522,Nn=We.getBCHDigit(Ln);Rn.getEncodedBits=function(t,e){let i=t.bit<<3|e,r=i<<10;for(;We.getBCHDigit(r)-Nn>=0;)r^=Ln<<We.getBCHDigit(r)-Nn;return(i<<10|r)^Ri}});var Bn=m((uo,Dn)=>{"use strict";var ki=K();function re(n){this.mode=ki.NUMERIC,this.data=n.toString()}re.getBitsLength=function(t){return 10*Math.floor(t/3)+(t%3?t%3*3+1:0)};re.prototype.getLength=function(){return this.data.length};re.prototype.getBitsLength=function(){return re.getBitsLength(this.data.length)};re.prototype.write=function(t){let e,i,r;for(e=0;e+3<=this.data.length;e+=3)i=this.data.substr(e,3),r=parseInt(i,10),t.put(r,10);let o=this.data.length-e;o>0&&(i=this.data.substr(e),r=parseInt(i,10),t.put(r,o*3+1))};Dn.exports=re});var zn=m((go,On)=>{"use strict";var Di=K(),$e=["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 oe(n){this.mode=Di.ALPHANUMERIC,this.data=n}oe.getBitsLength=function(t){return 11*Math.floor(t/2)+6*(t%2)};oe.prototype.getLength=function(){return this.data.length};oe.prototype.getBitsLength=function(){return oe.getBitsLength(this.data.length)};oe.prototype.write=function(t){let e;for(e=0;e+2<=this.data.length;e+=2){let i=$e.indexOf(this.data[e])*45;i+=$e.indexOf(this.data[e+1]),t.put(i,11)}this.data.length%2&&t.put($e.indexOf(this.data[e]),6)};On.exports=oe});var Un=m((fo,qn)=>{"use strict";var Bi=K();function ae(n){this.mode=Bi.BYTE,typeof n=="string"?this.data=new TextEncoder().encode(n):this.data=new Uint8Array(n)}ae.getBitsLength=function(t){return t*8};ae.prototype.getLength=function(){return this.data.length};ae.prototype.getBitsLength=function(){return ae.getBitsLength(this.data.length)};ae.prototype.write=function(n){for(let t=0,e=this.data.length;t<e;t++)n.put(this.data[t],8)};qn.exports=ae});var Fn=m((mo,jn)=>{"use strict";var Oi=K(),zi=H();function se(n){this.mode=Oi.KANJI,this.data=n}se.getBitsLength=function(t){return t*13};se.prototype.getLength=function(){return this.data.length};se.prototype.getBitsLength=function(){return se.getBitsLength(this.data.length)};se.prototype.write=function(n){let t;for(t=0;t<this.data.length;t++){let e=zi.toSJIS(this.data[t]);if(e>=33088&&e<=40956)e-=33088;else if(e>=57408&&e<=60351)e-=49472;else throw new Error("Invalid SJIS character: "+this.data[t]+` 3Make sure your charset is UTF-8`);e=(e>>>8&255)*192+(e&255),n.put(e,13)}};jn.exports=se});var Vn=m((ho,Xe)=>{"use strict";var _e={single_source_shortest_paths:function(n,t,e){var i={},r={};r[t]=0;var o=_e.PriorityQueue.make();o.push(t,0);for(var a,s,c,u,g,w,C,R,q;!o.empty();){a=o.pop(),s=a.value,u=a.cost,g=n[s]||{};for(c in g)g.hasOwnProperty(c)&&(w=g[c],C=u+w,R=r[c],q=typeof r[c]>"u",(q||R>C)&&(r[c]=C,o.push(c,C),i[c]=s))}if(typeof e<"u"&&typeof r[e]>"u"){var U=["Could not find a path from ",t," to ",e,"."].join("");throw new Error(U)}return i},extract_shortest_path_from_predecessor_list:function(n,t){for(var e=[],i=t,r;i;)e.push(i),r=n[i],i=n[i];return e.reverse(),e},find_path:function(n,t,e){var i=_e.single_source_shortest_paths(n,t,e);return _e.extract_shortest_path_from_predecessor_list(i,e)},PriorityQueue:{make:function(n){var t=_e.PriorityQueue,e={},i;n=n||{};for(i in t)t.hasOwnProperty(i)&&(e[i]=t[i]);return e.queue=[],e.sorter=n.sorter||t.default_sorter,e},default_sorter:function(n,t){return n.cost-t.cost},push:function(n,t){var e={value:n,cost:t};this.queue.push(e),this.queue.sort(this.sorter)},pop:function(){return this.queue.shift()},empty:function(){return this.queue.length===0}}};typeof Xe<"u"&&(Xe.exports=_e)});var $n=m(ce=>{"use strict";var f=K(),Kn=Bn(),Qn=zn(),Jn=Un(),Yn=Fn(),Ce=Qe(),Le=H(),qi=Vn();function Hn(n){return unescape(encodeURIComponent(n)).length}function be(n,t,e){let i=[],r;for(;(r=n.exec(e))!==null;)i.push({data:r[0],index:r.index,mode:t,length:r[0].length});return i}function Wn(n){let t=be(Ce.NUMERIC,f.NUMERIC,n),e=be(Ce.ALPHANUMERIC,f.ALPHANUMERIC,n),i,r;return Le.isKanjiModeEnabled()?(i=be(Ce.BYTE,f.BYTE,n),r=be(Ce.KANJI,f.KANJI,n)):(i=be(Ce.BYTE_KANJI,f.BYTE,n),r=[]),t.concat(e,i,r).sort(function(a,s){return a.index-s.index}).map(function(a){return{data:a.data,mode:a.mode,length:a.length}})}function Ze(n,t){switch(t){case f.NUMERIC:return Kn.getBitsLength(n);case f.ALPHANUMERIC:return Qn.getBitsLength(n);case f.KANJI:return Yn.getBitsLength(n);case f.BYTE:return Jn.getBitsLength(n)}}function Ui(n){return n.reduce(function(t,e){let i=t.length-1>=0?t[t.length-1]:null;return i&&i.mode===e.mode?(t[t.length-1].data+=e.data,t):(t.push(e),t)},[])}function ji(n){let t=[];for(let e=0;e<n.length;e++){let i=n[e];switch(i.mode){case f.NUMERIC:t.push([i,{data:i.data,mode:f.ALPHANUMERIC,length:i.length},{data:i.data,mode:f.BYTE,length:i.length}]);break;case f.ALPHANUMERIC:t.push([i,{data:i.data,mode:f.BYTE,length:i.length}]);break;case f.KANJI:t.push([i,{data:i.data,mode:f.BYTE,length:Hn(i.data)}]);break;case f.BYTE:t.push([{data:i.data,mode:f.BYTE,length:Hn(i.data)}])}}return t}function Fi(n,t){let e={},i={start:{}},r=["start"];for(let o=0;o<n.length;o++){let a=n[o],s=[];for(let c=0;c<a.length;c++){let u=a[c],g=""+o+c;s.push(g),e[g]={node:u,lastCount:0},i[g]={};for(let w=0;w<r.length;w++){let C=r[w];e[C]&&e[C].node.mode===u.mode?(i[C][g]=Ze(e[C].lastCount+u.length,u.mode)-Ze(e[C].lastCount,u.mode),e[C].lastCount+=u.length):(e[C]&&(e[C].lastCount=u.length),i[C][g]=Ze(u.length,u.mode)+4+f.getCharCountIndicator(u.mode,t))}}r=s}for(let o=0;o<r.length;o++)i[r[o]].end=0;return{map:i,table:e}}function Gn(n,t){let e,i=f.getBestModeForData(n);
3if(e=f.from(t,i),e!==f.BYTE&&e.bit<i.bit)throw new Error('"'+n+'" cannot be encoded with mode '+f.toString(e)+`. 4 Suggested mode is: `+f.toString(i));switch(e===f.KANJI&&!Le.isKanjiModeEnabled()&&(e=f.BYTE),e){case f.NUMERIC:return new Kn(n);case f.ALPHANUMERIC:return new Qn(n);case f.KANJI:return new Yn(n);case f.BYTE:return new Jn(n)}}ce.fromArray=function(t){return t.reduce(function(e,i){return typeof i=="string"?e.push(Gn(i,null)):i.data&&e.push(Gn(i.data,i.mode)),e},[])};ce.fromString=function(t,e){let i=Wn(t,Le.isKanjiModeEnabled()),r=ji(i),o=Fi(r,e),a=qi.find_path(o.map,"start","end"),s=[];for(let c=1;c<a.length-1;c++)s.push(o.table[a[c]].node);return ce.fromArray(Ui(s))};ce.rawSplit=function(t){return ce.fromArray(Wn(t,Le.isKanjiModeEnabled()))}});var Zn=m(Xn=>{"use strict";var ke=H(),et=Me(),Vi=pn(),Hi=gn(),Gi=fn(),Ki=_n(),it=Cn(),rt=Ve(),Qi=yn(),Re=In(),Ji=kn(),Yi=K(),tt=$n();function Wi(n,t){let e=n.size,i=Ki.getPositions(t);for(let r=0;r<i.length;r++){let o=i[r][0],a=i[r][1];for(let s=-1;s<=7;s++)if(!(o+s<=-1||e<=o+s))for(let c=-1;c<=7;c++)a+c<=-1||e<=a+c||(s>=0&&s<=6&&(c===0||c===6)||c>=0&&c<=6&&(s===0||s===6)||s>=2&&s<=4&&c>=2&&c<=4?n.set(o+s,a+c,!0,!0):n.set(o+s,a+c,!1,!0))}}function $i(n){let t=n.size;for(let e=8;e<t-8;e++){let i=e%2===0;n.set(e,6,i,!0),n.set(6,e,i,!0)}}function Xi(n,t){let e=Gi.getPositions(t);for(let i=0;i<e.length;i++){let r=e[i][0],o=e[i][1];for(let a=-2;a<=2;a++)for(let s=-2;s<=2;s++)a===-2||a===2||s===-2||s===2||a===0&&s===0?n.set(r+a,o+s,!0,!0):n.set(r+a,o+s,!1,!0)}}function Zi(n,t){let e=n.size,i=Re.getEncodedBits(t),r,o,a;for(let s=0;s<18;s++)r=Math.floor(s/3),o=s%3+e-8-3,a=(i>>s&1)===1,n.set(r,o,a,!0),n.set(o,r,a,!0)}function nt(n,t,e){let i=n.size,r=Ji.getEncodedBits(t,e),o,a;for(o=0;o<15;o++)a=(r>>o&1)===1,o<6?n.set(o,8,a,!0):o<8?n.set(o+1,8,a,!0):n.set(i-15+o,8,a,!0),o<8?n.set(8,i-o-1,a,!0):o<9?n.set(8,15-o-1+1,a,!0):n.set(8,15-o-1,a,!0);n.set(i-8,8,1,!0)}function er(n,t){let e=n.size,i=-1,r=e-1,o=7,a=0;for(let s=e-1;s>0;s-=2)for(s===6&&s--;;){for(let c=0;c<2;c++)if(!n.isReserved(r,s-c)){let u=!1;a<t.length&&(u=(t[a]>>>o&1)===1),n.set(r,s-c,u),o--,o===-1&&(a++,o=7)}if(r+=i,r<0||e<=r){r-=i,i=-i;break}}}function tr(n,t,e){let i=new Vi;e.forEach(function(c){i.put(c.mode.bit,4),i.put(c.getLength(),Yi.getCharCountIndicator(c.mode,n)),c.write(i)});let r=ke.getSymbolTotalCodewords(n),o=rt.getTotalCodewordsCount(n,t),a=(r-o)*8;for(i.getLengthInBits()+4<=a&&i.put(0,4);i.getLengthInBits()%8!==0;)i.putBit(0);let s=(a-i.getLengthInBits())/8;for(let c=0;c<s;c++)i.put(c%2?17:236,8);return nr(i,n,t)}function nr(n,t,e){let i=ke.getSymbolTotalCodewords(t),r=rt.getTotalCodewordsCount(t,e),o=i-r,a=rt.getBlocksCount(t,e),s=i%a,c=a-s,u=Math.floor(i/a),g=Math.floor(o/a),w=g+1,C=u-g,R=new Qi(C),q=0,U=new Array(a),ut=new Array(a),Be=0,ui=new Uint8Array(n.buffer);for(let X=0;X<a;X++){let ze=X<c?g:w;U[X]=ui.slice(q,q+ze),ut[X]=R.encode(U[X]),q+=ze,Be=Math.max(Be,ze)}let Oe=new Uint8Array(i),gt=0,B,O;for(B=0;B<Be;B++)for(O=0;O<a;O++)B<U[O].length&&(Oe[gt++]=U[O][B]);for(B=0;B<C;B++)for(O=0;O<a;O++)Oe[gt++]=ut[O][B];return Oe}function ir(n,t,e,i){let r;if(Array.isArray(n))r=tt.fromArray(n);else if(typeof n=="string"){let u=t;if(!u){let g=tt.rawSplit(n);u=Re.getBestVersionForData(g,e)}r=tt.fromString(n,u||40)}else throw new Error("Invalid data");let o=Re.getBestVersionForData(r,e);if(!o)throw new Error("The amount of data is too big to be stored in a QR Code");if(!t)t=o;else if(t<o)throw new Error(` 5The chosen QR Code version cannot contain this amount of data. 6Minimum version required to store current data is: `+o+`. 7`);let a=tr(t,e,r),s=ke.getSymbolSize(t),c=new Hi(s);return Wi(c,t),$i(c),Xi(c,t),nt(c,e,0),t>=7&&Zi(c,t),er(c,a),isNaN(i)&&(i=it.getBestMask(c,nt.bind(null,c,e))),it.applyMask(i,c),nt(c,e,i),{modules:c,version:t,errorCorrectionLevel:e,maskPattern:i,segments:r}}Xn.create=function(t,e){if(typeof t>"u"||t==="")throw new Error("No input text");let i=et.M,r,o;return typeof e<"u"&&(i=et.from(e.errorCorrectionLevel,et.M),r=Re.from(e.version),o=it.from(e.maskPattern),e.toSJISFunc&&ke.setToSJISFunction(e.toSJISFunc)),ir(t,r,i,o)}});var ot=m($=>{"use strict";function ei(n){if(typeof n=="number"&&(n=n.toString()),typeof n!="str
7ing")throw new Error("Color should be defined as hex string");let t=n.slice().replace("#","").split("");if(t.length<3||t.length===5||t.length>8)throw new Error("Invalid hex color: "+n);(t.length===3||t.length===4)&&(t=Array.prototype.concat.apply([],t.map(function(i){return[i,i]}))),t.length===6&&t.push("F","F");let e=parseInt(t.join(""),16);return{r:e>>24&255,g:e>>16&255,b:e>>8&255,a:e&255,hex:"#"+t.slice(0,6).join("")}}$.getOptions=function(t){t||(t={}),t.color||(t.color={});let e=typeof t.margin>"u"||t.margin===null||t.margin<0?4:t.margin,i=t.width&&t.width>=21?t.width:void 0,r=t.scale||4;return{width:i,scale:i?4:r,margin:e,color:{dark:ei(t.color.dark||"#000000ff"),light:ei(t.color.light||"#ffffffff")},type:t.type,rendererOpts:t.rendererOpts||{}}};$.getScale=function(t,e){return e.width&&e.width>=t+e.margin*2?e.width/(t+e.margin*2):e.scale};$.getImageWidth=function(t,e){let i=$.getScale(t,e);return Math.floor((t+e.margin*2)*i)};$.qrToImageData=function(t,e,i){let r=e.modules.size,o=e.modules.data,a=$.getScale(r,i),s=Math.floor((r+i.margin*2)*a),c=i.margin*a,u=[i.color.light,i.color.dark];for(let g=0;g<s;g++)for(let w=0;w<s;w++){let C=(g*s+w)*4,R=i.color.light;if(g>=c&&w>=c&&g<s-c&&w<s-c){let q=Math.floor((g-c)/a),U=Math.floor((w-c)/a);R=u[o[q*r+U]?1:0]}t[C++]=R.r,t[C++]=R.g,t[C++]=R.b,t[C]=R.a}}});var ti=m(De=>{"use strict";var at=ot();function rr(n,t,e){n.clearRect(0,0,t.width,t.height),t.style||(t.style={}),t.height=e,t.width=e,t.style.height=e+"px",t.style.width=e+"px"}function or(){try{return document.createElement("canvas")}catch(n){throw new Error("You need to specify a canvas element")}}De.render=function(t,e,i){let r=i,o=e;typeof r>"u"&&(!e||!e.getContext)&&(r=e,e=void 0),e||(o=or()),r=at.getOptions(r);let a=at.getImageWidth(t.modules.size,r),s=o.getContext("2d"),c=s.createImageData(a,a);return at.qrToImageData(c.data,t,r),rr(s,o,a),s.putImageData(c,0,0),o};De.renderToDataURL=function(t,e,i){let r=i;typeof r>"u"&&(!e||!e.getContext)&&(r=e,e=void 0),r||(r={});let o=De.render(t,e,r),a=r.type||"image/png",s=r.rendererOpts||{};return o.toDataURL(a,s.quality)}});var ri=m(ii=>{"use strict";var ar=ot();function ni(n,t){let e=n.a/255,i=t+'="'+n.hex+'"';return e<1?i+" "+t+'-opacity="'+e.toFixed(2).slice(1)+'"':i}function st(n,t,e){let i=n+t;return typeof e<"u"&&(i+=" "+e),i}function sr(n,t,e){let i="",r=0,o=!1,a=0;for(let s=0;s<n.length;s++){let c=Math.floor(s%t),u=Math.floor(s/t);!c&&!o&&(o=!0),n[s]?(a++,s>0&&c>0&&n[s-1]||(i+=o?st("M",c+e,.5+u+e):st("m",r,0),r=0,o=!1),c+1<t&&n[s+1]||(i+=st("h",a),a=0)):r++}return i}ii.render=function(t,e,i){let r=ar.getOptions(e),o=t.modules.size,a=t.modules.data,s=o+r.margin*2,c=r.color.light.a?"<path "+ni(r.color.light,"fill")+' d="M0 0h'+s+"v"+s+'H0z"/>':"",u="<path "+ni(r.color.dark,"stroke")+' d="'+sr(a,o,r.margin)+'"/>',g='viewBox="0 0 '+s+" "+s+'"',C='<svg xmlns="http://www.w3.org/2000/svg" '+(r.width?'width="'+r.width+'" height="'+r.width+'" ':"")+g+' shape-rendering="crispEdges">'+c+u+`</svg> 8`;return typeof i=="function"&&i(null,C),C}});var ai=m(ve=>{"use strict";var cr=cn(),ct=Zn(),oi=ti(),lr=ri();function lt(n,t,e,i,r){let o=[].slice.call(arguments,1),a=o.length,s=typeof o[a-1]=="function";if(!s&&!cr())throw new Error("Callback required as last argument");if(s){if(a<2)throw new Error("Too few arguments provided");a===2?(r=e,e=t,t=i=void 0):a===3&&(t.getContext&&typeof r>"u"?(r=i,i=void 0):(r=i,i=e,e=t,t=void 0))}else{if(a<1)throw new Error("Too few arguments provided");return a===1?(e=t,t=i=void 0):a===2&&!t.getContext&&(i=e,e=t,t=void 0),new Promise(function(c,u){try{let g=ct.create(e,i);c(n(g,t,i))}catch(g){u(g)}})}try{let c=ct.create(e,i);
8r(null,n(c,t,i))}catch(c){r(c)}}ve.create=ct.create;ve.toCanvas=lt.bind(null,oi.render);ve.toDataURL=lt.bind(null,oi.renderToDataURL);ve.toString=lt.bind(null,function(n,t,e){return lr.render(n,e)})});var nn=(()=>{class n{static{this.FILE_NAME_PREFIX="file://"}static{this.FILE_EXTENSION=".pdf"}static{this.MOBILE_APP_DOCUMENTATION="file://mobileNet-doc#nameddest=_mobilenet_business_wersja_aplikacji_dla_klienta_korporacyjnego"}openMobileAppDocumentation(){window.open(this.resolveUrl(n.MOBILE_APP_DOCUMENTATION),"_blank")}resolveUrl(e){if(!e.startsWith(n.FILE_NAME_PREFIX))return e;let[i,r]=e.substring(n.FILE_NAME_PREFIX.length).split("#"),o=document.baseURI+i+n.FILE_EXTENSION;return r?`${o}#${r}`:o}static{this.\u0275fac=function(i){return new(i||n)}}static{this.\u0275prov=Z({token:n,factory:n.\u0275fac,providedIn:"root"})}}return n})();function fi(n,t){if(n&1&&(d(0,"div",11)(1,"mat-icon",14),p(2,"error"),l(),d(3,"span"),p(4),l()()),n&2){let e=b();h(4),D(e.error())}}function mi(n,t){n&1&&A(0,"mat-spinner",13)}function hi(n,t){n&1&&(d(0,"mat-icon",2),p(1,"link_off"),l())}var an=(()=>{class n{constructor(){this.device=L.required(),this.unpairing=L(!1),this.error=L(null),this.unpair=ye()}static{this.\u0275fac=function(i){return new(i||n)}}static{this.\u0275cmp=k({type:n,selectors:[["app-paired-device-card"]],inputs:{device:[1,"device"],unpairing:[1,"unpairing"],error:[1,"error"]},outputs:{unpair:"unpair"},decls:25,vars:8,consts:[[1,"paired-device"],[1,"paired-device__badge"],["fontSet","material-symbols-rounded"],[1,"paired-device__heading"],[1,"paired-device__title"],[1,"paired-device__subtitle"],[1,"paired-device__info"],[1,"paired-device__info-icon"],[1,"paired-device__info-text"],[1,"paired-device__info-name"],[1,"paired-device__info-time"],["role","alert",1,"paired-device__error"],["mat-stroked-button","","type","button",1,"paired-device__unpair",3,"click","disabled"],["diameter","18",1,"paired-device__unpair-spinner"],["fontSet","material-symbols-rounded",1,"paired-device__error-icon"]],template:function(i,r){i&1&&(d(0,"div",0)(1,"div",1)(2,"mat-icon",2),p(3,"check_circle"),l()(),d(4,"div",3)(5,"h2",4),p(6,"Urz\u0105dzenie sparowane"),l(),d(7,"p",5),p(8,"Twoje urz\u0105dzenie mobilne jest aktywne"),l()(),d(9,"div",6)(10,"div",7)(11,"mat-icon",2),p(12,"smartphone"),l()(),d(13,"div",8)(14,"div",9),p(15),l(),d(16,"div",10),p(17),At(18,"date"),l()()(),y(19,fi,5,1,"div",11),d(20,"button",12),N("click",function(){return r.unpair.emit()}),y(21,mi,1,0,"mat-spinner",13)(22,hi,2,0,"mat-icon",2),d(23,"span"),p(24,"Rozparuj urz\u0105dzenie"),l()()()),i&2&&(h(15),D(r.device().name),h(2),St("Sparowano: ",Tt(18,5,r.device().pairingTime,"dd.MM.yyyy HH:mm")),h(2),E(r.error()?19:-1),h(),I("disabled",r.unpairing()),h(),E(r.unpairing()?21:22))},dependencies:[F,j,te,ee,ie,ne,It],styles:[".paired-device[_ngcontent-%COMP%]{display:flex;flex-direction:column;align-items:center;gap:var(--spacing-l);padding:var(--spacing-s) 0}.paired-device__badge[_ngcontent-%COMP%]{width:64px;height:64px;border-radius:14px;background:#dcfce7;display:flex;align-items:center;justify-content:center}.paired-device__badge[_ngcontent-%COMP%] mat-icon[_ngcontent-%COMP%]{font-size:40px;width:40px;height:40px;color:#16a34a}.paired-device__heading[_ngcontent-%COMP%]{display:flex;flex-direction:column;align-items:center;gap:var(--spacing-xs);text-align:center}.paired-device__title[_ngcontent-%COMP%]{margin:0;font-size:1.5rem;font-weight:700}.paired-device__subtitle[_ngcontent-%COMP%]{margin:0;opacity:.6}.paired-device__info[_ngcontent-%COMP%]{display:flex;align-items:center;gap:var(--spacing-l);padding:var(--spacing-md);border-radius:12px;background:#00000005;border:1px solid rgba(0,0,0,.06);width:100%;box-sizing:border-box}.paired-device__info-icon[_ngcontent-%COMP%]{width:44px;height:44px;border-radius:10px;background:var(--color-warn);display:flex;align-items:center;justify-content:center;flex-shrink:0}.paired-device__info-icon[_ngcontent-%COMP%] mat-icon[_ngcontent-%COMP%]{color:#fff;font-size:24px;width:24px;height:24px}.paired-device__info-text[_ngcontent-%COMP%]{flex:1;display:flex;flex-direction:column;gap:2px;min-width:0}
8.paired-device__info-name[_ngcontent-%COMP%]{font-weight:600;font-size:.9375rem}.paired-device__info-time[_ngcontent-%COMP%]{font-size:.8125rem;opacity:.6}.paired-device__unpair[_ngcontent-%COMP%]{width:100%}.paired-device__unpair[_ngcontent-%COMP%] mat-icon[_ngcontent-%COMP%]{margin-right:var(--spacing-xs)}.paired-device__unpair-spinner[_ngcontent-%COMP%]{margin-right:var(--spacing-xs)}.paired-device__error[_ngcontent-%COMP%]{display:flex;align-items:center;gap:var(--spacing-s);padding:var(--spacing-md);border-radius:10px;background:#dc26260f;border:1px solid rgba(220,38,38,.2);color:#b91c1c;font-size:.875rem;width:100%;box-sizing:border-box}.paired-device__error-icon[_ngcontent-%COMP%]{font-size:20px;width:20px;height:20px;flex-shrink:0;color:#b91c1c}"],changeDetection:0})}}return n})();var le=gi(ai(),1);var dr=["qrcElement"],si=(()=>{class n{allowEmptyString=!1;colorDark="#000000ff";colorLight="#ffffffff";cssClass="qrcode";elementType="canvas";errorCorrectionLevel="M";imageSrc;imageHeight;imageWidth;margin=4;qrdata="";scale=4;version;width=10;alt;ariaLabel;title;qrCodeURL=new mt;qrcElement;context=null;centerImage;renderer=P(bt);sanitizer=P(Lt);ngOnChanges(){return qe(this,null,function*(){yield this.createQRCode()})}isValidQrCodeText(e){return this.allowEmptyString===!1?!(typeof e>"u"||e===""||e==="null"||e===null):!(typeof e>"u")}toDataURL(e){return new Promise((i,r)=>{(0,le.toDataURL)(this.qrdata,e,(o,a)=>{o?r(o):i(a)})})}toCanvas(e,i){return new Promise((r,o)=>{(0,le.toCanvas)(e,this.qrdata,i,a=>{a?o(a):r("success")})})}toSVG(e){return new Promise((i,r)=>{(0,le.toString)(this.qrdata,e,(o,a)=>{o?r(o):i(a)})})}renderElement(e){for(let i of this.qrcElement.nativeElement.childNodes)this.renderer.removeChild(this.qrcElement.nativeElement,i);this.renderer.appendChild(this.qrcElement.nativeElement,e)}createQRCode(){return qe(this,null,function*(){this.version&&this.version>40?(console.warn("[angularx-qrcode] max value for `version` is 40"),this.version=40):this.version&&this.version<1?(console.warn("[angularx-qrcode]`min value for `version` is 1"),this.version=1):this.version!==void 0&&isNaN(this.version)&&(console.warn("[angularx-qrcode] version should be a number, defaulting to auto."),this.version=void 0);try{if(!this.isValidQrCodeText(this.qrdata))throw new Error("[angularx-qrcode] Field `qrdata` is empty, set 'allowEmptyString=\"true\"' to overwrite this behaviour.");this.isValidQrCodeText(this.qrdata)&&this.qrdata===""&&(this.qrdata=" ");let e={color:{dark:this.colorDark,light:this.colorLight},errorCorrectionLevel:this.errorCorrectionLevel,margin:this.margin,scale:this.scale,version:this.version,width:this.width},i=this.imageSrc,r=this.imageHeight?+this.imageHeight:40,o=this.imageWidth?+this.imageWidth:40;switch(this.elementType){case"canvas":{let a=this.renderer.createElement("canvas");this.context=a.getContext("2d"),this.toCanvas(a,e).then(()=>{if(this.ariaLabel&&this.renderer.setAttribute(a,"aria-label",`${this.ariaLabel}`),this.title&&this.renderer.setAttribute(a,"title",`${this.title}`),i&&this.context){this.centerImage=new Image(o,r),i!==this.centerImage.src&&(this.centerImage.crossOrigin="anonymous",this.centerImage.src=i),r!==this.centerImage.height&&(this.centerImage.height=r),o!==this.centerImage.width&&(this.centerImage.width=o);let s=this.centerImage;s&&(s.onload=()=>{this.context?.drawImage(s,a.width/2-o/2,a.height/2-r/2,o,r)})}this.renderElement(a),this.emitQRCodeURL(a)}).catch(s=>{console.error("[angularx-qrcode] canvas error:",s)});break}case"svg":{let a=this.renderer.createElement("div");this.toSVG(e).then(s=>{this.renderer.setProperty(a,"innerHTML",s);let c=a.firstChild;this.renderer.setAttribute(c,"height",`${this.width}`),this.renderer.setAttribute(c,"width",`${this.width}`),this.renderElement(c),this.emitQRCodeURL(c)}).catch(s=>{console.error("[angularx-qrcode] svg error:",s)});break}default:{let a=this.renderer.createElement("img");this.toDataURL(e).then(s=>{this.alt&&a.setAttribute("alt",this.alt),this.ariaLabel&&a.setAttribute("aria-label",this.ariaLabel),a.setAttribute("src",s),this.title&&a.setAttribute("title",this.title),this.renderElement(a),this.emitQRCodeURL(a)}).catch(s=>{console.error("[angularx-qrcode] img/url error:",s)})}}}catch(e){console.error("[angularx-qrcode] Error generating QR Code:",e.message)}})}convertBase64ImageUrlToBlob(e){let i=e.split(";base64,"),r=i[0].split(":")[1],o=atob(i[1]),a=new Uint8Array(o.length);for(let s=0;s<o.length;
8++s)a[s]=o.charCodeAt(s);return new Blob([a],{type:r})}emitQRCodeURL(e){let i=e.constructor.name;if(i===SVGSVGElement.name){let c=e.outerHTML,u=new Blob([c],{type:"image/svg+xml"}),g=URL.createObjectURL(u),w=this.sanitizer.bypassSecurityTrustUrl(g);this.qrCodeURL.emit(w);return}let r="";i===HTMLCanvasElement.name&&(r=e.toDataURL("image/png")),i===HTMLImageElement.name&&(r=e.src);let o=this.convertBase64ImageUrlToBlob(r),a=URL.createObjectURL(o),s=this.sanitizer.bypassSecurityTrustUrl(a);this.qrCodeURL.emit(s)}static \u0275fac=function(i){return new(i||n)};static \u0275cmp=k({type:n,selectors:[["qrcode"]],viewQuery:function(i,r){if(i&1&&wt(dr,7),i&2){let o;yt(o=Et())&&(r.qrcElement=o.first)}},inputs:{allowEmptyString:"allowEmptyString",colorDark:"colorDark",colorLight:"colorLight",cssClass:"cssClass",elementType:"elementType",errorCorrectionLevel:"errorCorrectionLevel",imageSrc:"imageSrc",imageHeight:"imageHeight",imageWidth:"imageWidth",margin:"margin",qrdata:"qrdata",scale:"scale",version:"version",width:"width",alt:"alt",ariaLabel:"ariaLabel",title:"title"},outputs:{qrCodeURL:"qrCodeURL"},features:[_t],decls:2,vars:2,consts:[["qrcElement",""]],template:function(i,r){i&1&&xt(0,"div",null,0),i&2&&Mt(r.cssClass)},encapsulation:2,changeDetection:0})}return n})();var pr=new Set(["B","STRONG","I","EM","U","BR","P","SPAN","UL","OL","LI"]),ur=new Set(["SCRIPT","STYLE","IFRAME","OBJECT","EMBED","LINK","META","BASE","NOSCRIPT","TEMPLATE"]);function ci(n){if(!n)return"";let t=document.createElement("template");return t.innerHTML=n,dt(t.content),t.innerHTML}function dt(n){for(let t of Array.from(n.childNodes))gr(t)}function gr(n){if(n.nodeType===Node.COMMENT_NODE){n.parentNode?.removeChild(n);return}if(n.nodeType!==Node.ELEMENT_NODE)return;let t=n,e=t.tagName;if(ur.has(e)){t.remove();return}if(!pr.has(e)){dt(t);let i=t.parentNode;if(i){for(;t.firstChild;)i.insertBefore(t.firstChild,t);i.removeChild(t)}return}for(let i of Array.from(t.attributes))t.removeAttribute(i.name);dt(t)}function fr(n,t){n&1&&(d(0,"div",20),A(1,"qrcode",22),l()),n&2&&(h(),I("qrdata",t)("width",160)("margin",4))}function mr(n,t){n&1&&A(0,"div",21)}function hr(n,t){if(n&1&&(d(0,"div",14)(1,"div",15)(2,"mat-icon",16),p(3," ios "),l(),d(4,"div",17)(5,"div",18),p(6,"App Store"),l(),d(7,"div",19),p(8,"dla urz\u0105dze\u0144 iOS"),l()()(),y(9,fr,2,3,"div",20)(10,mr,1,0,"div",21),l()),n&2){let e,i=b(2);h(9),E((e=(e=i.appLinks())==null?null:e.appStoreLink)?9:10,e)}}function _r(n,t){n&1&&(d(0,"div",20),A(1,"qrcode",22),l()),n&2&&(h(),I("qrdata",t)("width",160)("margin",4))}function Cr(n,t){n&1&&A(0,"div",21)}function br(n,t){if(n&1&&(d(0,"div",14)(1,"div",15)(2,"mat-icon",16),p(3," android "),l(),d(4,"div",17)(5,"div",18),p(6,"Google Play"),l(),d(7,"div",19),p(8,"dla urz\u0105dze\u0144 Android"),l()()(),y(9,_r,2,3,"div",20)(10,Cr,1,0,"div",21),l()),n&2){let e,i=b(2);h(9),E((e=(e=i.appLinks())==null?null:e.googlePlayLink)?9:10,e)}}function vr(n,t){if(n&1&&(d(0,"section",6)(1,"div",7)(2,"div",8),p(3,"1"),l(),d(4,"div",9)(5,"div",10),p(6,"Zainstaluj aplikacj\u0119 mobiln\u0105"),l(),d(7,"div",11),p(8,"Zeskanuj kod QR odpowiedni dla Twojego systemu"),l()()(),d(9,"div",13),y(10,hr,11,1,"div",14),y(11,br,11,1,"div",14),l()()),n&2){let e=b();h(10),E(e.showAppStoreCard()?10:-1),h(),E(e.showGooglePlayCard()?11:-1)}}function xr(n,t){if(n&1&&A(0,"div",12),n&2){let e=b();I("innerHTML",e.safeActivateText(),Ct)}}function wr(n,t){if(n&1&&(d(0,"div",23)(1,"mat-icon",26),p(2,"error"),l(),d(3,"span"),p(4),l()()),n&2){let e=b(2);h(4),D(e.error())}}function yr(n,t){n&1&&A(0,"mat-spinner",25)}function Er(n,t){n&1&&(d(0,"mat-icon",3),p(1,"sms"),l())}function Mr(n,t){if(n&1){let e=ue();y(0,wr,5,1,"div",23),d(1,"button",24),N("click",function(){de(e);let r=b();return pe(r.activate.emit())}),y(2,yr,1,0,"mat-spinner",25)(3,Er,2,0,"mat-icon",3),d(4,"span"),p(5,"Aktywuj aplikacj\u0119 mobiln\u0105 przez SMS"),l()()}if(n&2){let e=b();E(e.error()?0:-1),h(),I("disabled",e.starting()),h(),E(e.starting()?2:3)}}function Sr(n,t){if(n&1&&(d(0,"section",6)(1,"div",7)(2,"div",8),p(3),l(),d(4,"div",9)(5,"div",10),p(6,"Sparuj urz\u0105dzenie w aplikacji mobilnej"),l(),d(7,"div",11),p(8),l()()(),d(9,"div",27)(10,"div",28)(11,"mat-icon",3),p(12),l()(),d(13,"div",29),p(14),l()()()),n&2){let e=b();h(3),D(e.pairStepNumber()),h(5),D(e.pairStepSubtitle()),h(4),D(e.pairStepIcon()),h(2),D(e.pairStepMessage())}}var li=(()=>{class n{constructor(){this.starting=L(!1),this.error=L(null),this.appLinks=L(null),this.activateText=L(""),this.pairingInProgress=L(!1),this.inProgressReason=L(null),this.activate=ye(),this.safeActivateText=v(()=>
8ci(this.activateText())),this.showAppStoreCard=v(()=>{let e=this.appLinks();return e===null||!!e.appStoreLink}),this.showGooglePlayCard=v(()=>{let e=this.appLinks();return e===null||!!e.googlePlayLink}),this.showStoresStep=v(()=>this.showAppStoreCard()||this.showGooglePlayCard()),this.activateStepNumber=v(()=>this.showStoresStep()?2:1),this.pairStepNumber=v(()=>this.activateStepNumber()+1),this.pairStepSubtitle=v(()=>this.inProgressReason()===Ee.ACTIVE_PAIRING_CODE?"Wprowad\u017A kod SMS w aplikacji mobilnej":"Czekamy na potwierdzenie z banku"),this.pairStepIcon=v(()=>this.inProgressReason()===Ee.ACTIVE_PAIRING_CODE?"sms":"support_agent"),this.pairStepMessage=v(()=>this.inProgressReason()===Ee.ACTIVE_PAIRING_CODE?"Kod paruj\u0105cy jest aktywny":"Skontaktuj si\u0119 z bankiem, aby potwierdzi\u0107 to\u017Csamo\u015B\u0107 i otrzyma\u0107 kod paruj\u0105cy")}static{this.\u0275fac=function(i){return new(i||n)}}static{this.\u0275cmp=k({type:n,selectors:[["app-pairing-onboarding"]],inputs:{starting:[1,"starting"],error:[1,"error"],appLinks:[1,"appLinks"],activateText:[1,"activateText"],pairingInProgress:[1,"pairingInProgress"],inProgressReason:[1,"inProgressReason"]},outputs:{activate:"activate"},decls:22,vars:5,consts:[[1,"pairing-onboarding"],[1,"pairing-onboarding__hero"],[1,"pairing-onboarding__hero-icon"],["fontSet","material-symbols-rounded"],[1,"pairing-onboarding__title"],[1,"pairing-onboarding__subtitle"],[1,"pairing-onboarding__step"],[1,"pairing-onboarding__step-header"],[1,"pairing-onboarding__step-number"],[1,"pairing-onboarding__step-heading"],[1,"pairing-onboarding__step-title"],[1,"pairing-onboarding__step-subtitle"],[1,"pairing-onboarding__activate-text",3,"innerHTML"],[1,"pairing-onboarding__stores"],[1,"pairing-onboarding__store"],[1,"pairing-onboarding__store-header"],["fontSet","material-symbols-rounded",1,"pairing-onboarding__store-icon"],[1,"pairing-onboarding__store-info"],[1,"pairing-onboarding__store-name"],[1,"pairing-onboarding__store-system"],[1,"pairing-onboarding__qr"],["aria-hidden","true",1,"pairing-onboarding__qr-placeholder"],["errorCorrectionLevel","M","elementType","svg",3,"qrdata","width","margin"],["role","alert",1,"pairing-onboarding__error"],["mat-flat-button","","color","warn","type","button",1,"pairing-onboarding__activate",3,"click","disabled"],["diameter","18",1,"pairing-onboarding__activate-spinner"],["fontSet","material-symbols-rounded",1,"pairing-onboarding__error-icon"],[1,"pairing-onboarding__info"],[1,"pairing-onboarding__info-icon"],[1,"pairing-onboarding__info-message"]],template:function(i,r){if(i&1&&(d(0,"div",0)(1,"div",1)(2,"div",2)(3,"mat-icon",3),p(4,"smartphone"),l()(),d(5,"h2",4),p(6,"Sparuj urz\u0105dzenie mobilne"),l(),d(7,"p",5),p(8,"Aby korzysta\u0107 z aplikacji mobilnej, wykonaj poni\u017Csze kroki"),l()(),y(9,vr,12,2,"section",6),d(10,"section",6)(11,"div",7)(12,"div",8),p(13),l(),d(14,"div",9)(15,"div",10),p(16,"Rozpocznij parowanie"),l(),d(17,"div",11),p(18,"Po zainstalowaniu aplikacji, kliknij przycisk poni\u017Cej"),l()()(),y(19,xr,1,1,"div",12),y(20,Mr,6,3),l(),y(21,Sr,15,4,"section",6),l()),i&2){let o;h(9),E(r.showStoresStep()?9:-1),h(4),D(r.activateStepNumber()),h(6),E(r.safeActivateText()?19:-1),h(),E(r.pairingInProgress()?-1:20),h(),E((o=r.pairingInProgress()&&r.inProgressReason())?21:-1,o)}},dependencies:[F,j,te,ee,ie,ne,si],styles:[".pairing-onboarding[_ngcontent-%COMP%]{display:flex;flex-direction:column;gap:var(--spacing-l);padding:var(--spacing-s) 0}.pairing-onboarding__hero[_ngcontent-%COMP%]{display:flex;flex-direction:column;align-items:center;gap:var(--spacing-s);text-align:center}.pairing-onboarding__hero-icon[_ngcontent-%COMP%]{width:64px;height:64px;border-radius:14px;background:var(--color-warn);display:flex;align-items:center;justify-content:center}.pairing-onboarding__hero-icon[_ngcontent-%COMP%] mat-icon[_ngcontent-%COMP%]{font-size:36px;width:36px;height:36px;color:#fff}.pairing-onboarding__title[_ngcontent-%COMP%]{margin:0;font-size:1.5rem;font-weight:700}.pairing-onboarding__subtitle[_ngcontent-%COMP%]{margin:0;opacity:.6}.pairing-onboarding__step[_ngcontent-%COMP%]{display:flex;flex-direction:column;gap:var(--spacing-md);padding:var(--spacing-md);border-radius:12px;background:#00000005;border:1px solid rgba(0,0,0,.06)}.pairing-onboarding__step-header[_ngcontent-%COMP%]{display:flex;align-items:center;gap:var(--spacing-md)}.pairing-onboarding__step-number[_ngcontent-%COMP%]{width:32px;height:32px;border-radius:50%;background:var(--color-warn);color:#fff;font-weight:700;font-size:.9375rem;display:flex;align-items:center;justify-content:center;flex-shrink:0}.pairing-onboarding__step-heading[_ngcontent-%COMP%]{display:flex;flex-direction:column;gap:2px;min-width:0}.pairing-onboarding__step-title[_ngcontent-%COMP%]{font-weight:600;font-size:1rem}.pairing-onboarding__step-subtitle[_ngcontent-%COMP%]{font-size:.8125rem;opacity:.6}.pairing-onboarding__stores[_ngcontent-%COMP%]{display:grid;grid-template-columns:1fr 1fr;gap:var(--spacing-xl)}.pairing-onboarding__store[_ngcontent-%COMP%]{display:flex;flex-direction:column;gap:var(--spacing-md);padding:var(--spacing-md);border-radius:10px;background:#fff;border:1px solid rgba(0,0,0,.08)}.pairing-onboarding__store-header[_ngcontent-%COMP%]{display:flex;align-items:center;gap:var(--spacing-s)}.pairing-onboarding__store-icon[_ngcontent-%COMP%]{font-size:28px;width:28px;height:28px;opacity:.7;flex-shrink:0}.pairing-onboarding__store-info[_ngcontent-%COMP%]{display:flex;flex-direction:column;gap:2px;min-width:0}
8.pairing-onboarding__store-name[_ngcontent-%COMP%]{font-weight:600;font-size:.9375rem}.pairing-onboarding__store-system[_ngcontent-%COMP%]{font-size:.75rem;opacity:.6}.pairing-onboarding__qr[_ngcontent-%COMP%]{aspect-ratio:1 / 1;display:flex;align-items:center;justify-content:center;background:#fff;border-radius:8px}.pairing-onboarding__qr-placeholder[_ngcontent-%COMP%]{aspect-ratio:1 / 1;border-radius:8px;background:repeating-linear-gradient(45deg,#0000000a,#0000000a 6px,#00000014 6px 12px);border:1px dashed rgba(0,0,0,.15)}.pairing-onboarding__activate-text[_ngcontent-%COMP%]{margin:0;padding:var(--spacing-md);border-radius:10px;background:#fff;border:1px solid rgba(0,0,0,.08);font-size:.875rem;line-height:1.5;color:#000000d9}.pairing-onboarding__activate-text[_ngcontent-%COMP%] [_ngcontent-%COMP%]:first-child{margin-top:0}.pairing-onboarding__activate-text[_ngcontent-%COMP%] [_ngcontent-%COMP%]:last-child{margin-bottom:0}.pairing-onboarding__info[_ngcontent-%COMP%]{display:flex;align-items:center;gap:var(--spacing-l);padding:var(--spacing-md);border-radius:10px;background:#fff;border:1px solid rgba(0,0,0,.08)}.pairing-onboarding__info-icon[_ngcontent-%COMP%]{width:44px;height:44px;border-radius:10px;background:#d97706;display:flex;align-items:center;justify-content:center;flex-shrink:0}.pairing-onboarding__info-icon[_ngcontent-%COMP%] mat-icon[_ngcontent-%COMP%]{color:#fff;font-size:24px;width:24px;height:24px}.pairing-onboarding__info-message[_ngcontent-%COMP%]{font-weight:600;font-size:.9375rem}.pairing-onboarding__activate[_ngcontent-%COMP%]{width:100%}.pairing-onboarding__activate[_ngcontent-%COMP%] mat-icon[_ngcontent-%COMP%]{margin-right:var(--spacing-xs)}.pairing-onboarding__activate-spinner[_ngcontent-%COMP%]{margin-right:var(--spacing-xs)}.pairing-onboarding__error[_ngcontent-%COMP%]{display:flex;align-items:center;gap:var(--spacing-s);padding:var(--spacing-md);border-radius:10px;background:#dc26260f;border:1px solid rgba(220,38,38,.2);color:#b91c1c;font-size:.875rem}.pairing-onboarding__error-icon[_ngcontent-%COMP%]{font-size:20px;width:20px;height:20px;flex-shrink:0;color:#b91c1c}@media(max-width:480px){.pairing-onboarding__stores[_ngcontent-%COMP%]{grid-template-columns:1fr}}"],changeDetection:0})}}return n})();var di=(()=>{class n{constructor(){this.dialogRef=P(Ot)}static{this.\u0275fac=function(i){return new(i||n)}}static{this.\u0275cmp=k({type:n,selectors:[["app-confirm-unpair-dialog"]],decls:12,vars:0,consts:[["mat-dialog-title",""],["align","end"],["mat-button","","type","button",3,"click"],["mat-flat-button","","color","warn","type","button",3,"click"]],template:function(i,r){i&1&&(d(0,"h2",0),p(1,"Rozparowanie urz\u0105dzenia"),l(),d(2,"mat-dialog-content")(3,"p"),p(4,"Czy na pewno chcesz rozparowa\u0107 swoje urz\u0105dzenie mobilne?"),l(),d(5,"p"),p(6,"Po rozparowaniu konieczne b\u0119dzie ponowne sparowanie, aby korzysta\u0107 z aplikacji mobilnej."),l()(),d(7,"mat-dialog-actions",1)(8,"button",2),N("click",function(){return r.dialogRef.close(!1)}),p(9,"Anuluj"),l(),d(10,"button",3),N("click",function(){return r.dialogRef.close(!0)}),p(11,"Rozparuj"),l()())},dependencies:[F,j,Ft,qt,jt,Ut],encapsulation:2,changeDetection:0})}}return n})();var Pr={pairingStatus:null,loading:!1,error:!1,starting:!1,startError:null,unpairing:!1,unpairError:null,appLinks:null,activateText:""},Ar={googlePlayLink:"",appStoreLink:""},Tr="Nie uda\u0142o si\u0119 rozparowa\u0107 urz\u0105dzenia. Spr\xF3buj ponownie p\xF3\u017Aniej.",Ir={DEVICE_ALREADY_PAIRED:"Masz ju\u017C sparowane urz\u0105dzenie mobilne. Od\u015Bwie\u017C stron\u0119, aby zobaczy\u0107 aktualny status.",PAIRING_CODE_STILL_VALID:"Poprzedni kod paruj\u0105cy jest wci\u0105\u017C aktywny. Od\u015Bwie\u017C stron\u0119, aby zobaczy\u0107 aktualny status.",PAIRING_ORDER_ALREADY_PLACED:"Zlecenie parowania zosta\u0142o ju\u017C z\u0142o\u017Cone i oczekuje na akceptacj\u0119 administratora.",PHONE_NUMBER_NOT_FOUND:"Nie odnaleziono numeru telefonu potrzebnego do uko\u0144czenia procesu parowania. Skontaktuj si\u0119 z bankiem, aby uzupe\u0142ni\u0107 dane.",UNKNOWN:"Nie uda\u0142o si\u0119 rozpocz\u0105\u0107 parowania. Spr\xF3buj ponownie p\xF3\u017Aniej."},xe=(()=>
8{class n{constructor(){this.mobileAppApiService=P(Bt),this.state=ht(Pr),this.pairingStatus=v(()=>this.state().pairingStatus),this.loading=v(()=>this.state().loading),this.error=v(()=>this.state().error),this.starting=v(()=>this.state().starting),this.startError=v(()=>this.state().startError),this.unpairing=v(()=>this.state().unpairing),this.unpairError=v(()=>this.state().unpairError),this.appLinks=v(()=>this.state().appLinks),this.activateText=v(()=>this.state().activateText)}loadStatus(){this.state.update(e=>S(M({},e),{loading:!0,error:!1})),this.mobileAppApiService.getStatus().pipe(we(()=>this.state.update(e=>S(M({},e),{loading:!1})))).subscribe({next:e=>this.state.update(i=>S(M({},i),{pairingStatus:e})),error:()=>this.state.update(e=>S(M({},e),{error:!0}))})}startPairing(){this.state.update(e=>S(M({},e),{starting:!0,startError:null})),this.mobileAppApiService.startPairing().pipe(we(()=>this.state.update(e=>S(M({},e),{starting:!1})))).subscribe({next:()=>this.loadStatus(),error:e=>{let i=e.error?.code??"UNKNOWN";this.state.update(r=>S(M({},r),{startError:Ir[i]}))}})}unpair(){this.state.update(e=>S(M({},e),{unpairing:!0,unpairError:null})),this.mobileAppApiService.unpair().pipe(we(()=>this.state.update(e=>S(M({},e),{unpairing:!1})))).subscribe({next:()=>this.loadStatus(),error:()=>this.state.update(e=>S(M({},e),{unpairError:Tr}))})}loadAppLinks(){this.state.update(e=>S(M({},e),{appLinks:null})),this.mobileAppApiService.getAppLinks().subscribe({next:e=>this.state.update(i=>S(M({},i),{appLinks:e})),error:()=>this.state.update(e=>S(M({},e),{appLinks:Ar}))})}loadActivateText(){this.state.update(e=>S(M({},e),{activateText:""})),this.mobileAppApiService.getActivateText().subscribe({next:e=>this.state.update(i=>S(M({},i),{activateText:e.activateText})),error:()=>this.state.update(e=>S(M({},e),{activateText:""}))})}static{this.\u0275fac=function(i){return new(i||n)}}static{this.\u0275prov=Z({token:n,factory:n.\u0275fac})}}return n})();var pt=(()=>{class n{constructor(){this.stateService=P(xe),this.dialog=P(zt)}refresh(){this.stateService.loadStatus(),this.stateService.loadAppLinks(),this.stateService.loadActivateText()}startPairing(){this.stateService.startPairing()}unpair(){this.dialog.open(di).afterClosed().subscribe(e=>{e&&this.stateService.unpair()})}static{this.\u0275fac=function(i){return new(i||n)}}static{this.\u0275prov=Z({token:n,factory:n.\u0275fac})}}return n})();function Nr(n,t){n&1&&(d(0,"div",2),A(1,"mat-spinner",8),l())}function Lr(n,t){n&1&&(d(0,"p",3),p(1,"Nie uda\u0142o si\u0119 pobra\u0107 statusu parowania."),l())}function Rr(n,t){if(n&1){let e=ue();d(0,"app-paired-device-card",12),N("unpair",function(){de(e);let r=b(3);return pe(r.actionService.unpair())}),l()}if(n&2){let e=b(),i=b(2);I("device",e.device)("unpairing",i.stateService.unpairing())("error",i.stateService.unpairError())}}function kr(n,t){if(n&1&&A(0,"app-pairing-onboarding",10),n&2){let e=b(),i=b(2);I("appLinks",i.stateService.appLinks())("activateText",i.stateService.activateText())("pairingInProgress",!0)("inProgressReason",e.inProgressReason)}}function Dr(n,t){if(n&1){let e=ue();d(0,"app-pairing-onboarding",13),N("activate",function(){de(e);let r=b(3);return pe(r.actionService.startPairing())}),l()}if(n&2){let e=b(3);I("starting",e.stateService.starting())("error",e.stateService.startError())("appLinks",e.stateService.appLinks())("activateText",e.stateService.activateText())}}function Br(n,t){if(n&1&&y(0,Rr,1,3,"app-paired-device-card",9)(1,kr,1,4,"app-pairing-onboarding",10)(2,Dr,1,4,"app-pairing-onboarding",11),n&2){let e,i=b(2);E((e=t.state)===i.PairingState.PAIRED?0:e===i.PairingState.PAIRING_IN_PROGRESS?1:e===i.PairingState.NOT_PAIRED?2:-1)}}function Or(n,t){if(n&1&&y(0,Br,3,1),n&2){let e,i=b();E((e=i.stateService.pairingStatus())?0:-1,e)}}var pi=(()=>{class n{constructor(){this.stateService=P(xe),this.documentationService=P(nn),this.actionService=P(pt),this.PairingState=Dt}ngOnInit(){this.actionService.refresh()}static{this.\u0275fac=function(i){return new(i||n)}}static{this.\u0275cmp=k({type:n,selectors:[["app-mobile-app"]],features:[Pt([xe,pt])],decls:11,vars:1,consts:[[1,"mobile-app-page"],["appearance","outlined",1,"card"],[1,"mobile-app__loading"],[1,"mobile-app__error"],[1,"mobile-app__documentation-divider"],[1,"mobile-app__documentation"],["mat-button","",3,"click"],["fontSet","material-symbols-rounded"],["diameter","32"],[3,"device","unpairing","error"],[3,"appLinks","activateText","pairingInProgress","inProgressReason"],[3,"starting","error","appLinks","activateText"],[3,"unpair","device","unpairing","error"],[3,"activate","starting","error","appLinks","activateText"]],template:function(i,r){i&1&&(d(0,"div",0)(1,"mat-card",1),y(2,Nr,2,0,"div",2)(3,Lr,2,0,"p",3)(4,Or,1,1),A(5,"mat-divider",4),d(6,"div",5)(7,"button",6),N("click",function(){return r.documentationService.openMobileAppDocumentation()}),d(8,"mat-icon",7),p(9,"description"),l(),p(10," Dokumentacja aplikacji mobilnej "),l()()()()),i&2&&(h(2),E(r.stateService.loading()?2:r.stateService.error()?3:4))},dependencies:[F,j,Qt,Kt,Yt,Jt,te,ee,ie,ne,an,li],styles:["[_nghost-%COMP%]{display:block;padding:1.5rem}",".mobile-app-page[_ngcontent-%COMP%]{max-width:640px;margin:0 auto}.mobile-app__loading[_ngcontent-%COMP%]{display:flex;justify-content:center;padding:var(--spacing-xl) 0}.mobile-app__error[_ngcontent-%COMP%]{margin:0;color:var(--color-warn)}.mobile-app__documentation-divider[_ngcontent-%COMP%]{margin-top:var(--spacing-l)}.mobile-app__documentation[_ngcontent-%COMP%]{display:flex;justify-content:center;padding-top:var(--spacing-md)}"],changeDetection:0})}}return n})();var zr=[{path:"",component:en,canActivateChild:[tn],data:{authorityCheckType:Ht.ANY},children:[{path:Vt,component:pi}]}],Ha=(()=>{class n{static{this.\u0275fac=function(i){return new(i||n)}}static{this.\u0275mod=vt({type:n})}static{this.\u0275inj=ft({providers:[Xt,Zt],imports:[Nt,Gt,Wt,Rt,$t,kt.forChild(zr)]})}}return n})();export{Ha as a};
Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.