PageSourceSearch

https://squareup.com/shop/hardware/v2/_next/static/chunks/5988.255d016ad9bb9042.js

js squareup.com collected 2026-09-24 07:34:47 UTC 36,218 bytes, 1 lines download raw bytes

1"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[5988],{85988:function(t,e,i){i.r(e),i.d(e,{market_qrcode:function(){return B}});var s=i(54982),o=Object.defineProperty,n=Object.getOwnPropertySymbols,r=Object.prototype.hasOwnProperty,h=Object.prototype.propertyIsEnumerable,l=(t,e,i)=>e in t?o(t,e,{enumerable:!0,configurable:!0,writable:!0,value:i}):t[e]=i,a=(t,e)=>{for(var i in e||(e={}))r.call(e,i)&&l(t,i,e[i]);if(n)for(var i of n(e))h.call(e,i)&&l(t,i,e[i]);return t};let c=Object.freeze([[],[4,16],[4,20],[4,24],[4,28],[4,32],[4,20,36],[4,22,40],[4,24,44],[4,26,48],[4,28,52],[4,30,56],[4,32,60],[4,24,44,64],[4,24,46,68],[4,24,48,72],[4,28,52,76],[4,28,54,80],[4,28,56,84],[4,32,60,88],[4,26,48,70,92],[4,24,48,72,96],[4,28,52,76,100],[4,26,52,78,104],[4,30,56,82,108],[4,28,56,84,112],[4,32,60,88,116],[4,24,48,72,96,120],[4,28,52,76,100,124],[4,24,50,76,102,128],[4,28,54,80,106,132],[4,32,58,84,110,136],[4,28,56,84,112,140],[4,32,60,88,116,144],[4,28,52,76,100,124,148],[4,22,48,74,100,126,152],[4,26,52,78,104,130,156],[4,30,56,82,108,134,160],[4,24,52,80,108,136,164],[4,28,56,84,112,140,168]]),d=Object.freeze({LOW:[19,34,55,80,108,136,156,194,232,274,324,370,428,461,523,589,647,721,795,861,932,1006,1094,1174,1276,1370,1468,1531,1631,1735,1843,1955,2071,2191,2306,2434,2566,2702,2812,2956],MEDIUM:[16,28,44,64,86,108,124,154,182,216,254,290,334,365,415,453,507,563,627,669,714,782,860,914,1e3,1062,1128,1193,1267,1373,1455,1541,1631,1725,1812,1914,1992,2102,2216,2334],QUARTER:[13,22,34,48,62,76,88,110,132,154,180,206,244,261,295,325,367,397,445,485,512,568,614,664,718,754,808,871,911,985,1033,1115,1171,1231,1286,1354,1426,1502,1582,1666],HIGH:[9,16,26,36,46,60,66,86,100,122,140,158,180,197,223,253,283,313,341,385,406,442,464,514,538,596,628,661,701,745,793,845,901,961,986,1054,1096,1142,1222,1276]}),u=Object.freeze({NUMERIC:"NUMERIC",ALPHANUMERIC:"ALPHANUMERIC",KANJI:"KANJI",BYTE:"BYTE"}),g=Object.freeze({LOW:"LOW",MEDIUM:"MEDIUM",QUARTER:"QUARTER",HIGH:"HIGH"});class f{constructor(t){this.length=t,this.content=new Uint8Array(t),this.byte=0,this.bit=0}get bitsLeft(){return(this.length-this.byte)*8-this.bit}get bytesLeft(){return 0===this.bit?this.length-this.byte:this.length-this.byte-1}codeForAlphaNUMERICal(t){let e="0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZ $%*+-./:";for(let i=0;i<e.length;i++)if(e[i]===t)return i}completeByte(){0!==this.bit&&(this.bit=0,this.byte++)}nextPutAlphaNUMERIC(t){for(let e=1;e<t.length;e+=2)this.nextPutBits(45*this.codeForAlphaNUMERICal(t[e-1])+this.codeForAlphaNUMERICal(t[e]),11);t.length%2==1&&this.nextPutBits(this.codeForAlphaNUMERICal(t[t.length-1]),6)}nextPutBits(t,e){if(0===e)return;let i=this.bit+e;if(i<8)this.content[this.byte]=this.content[this.byte]|t<<8-i,this.bit+=e;else if(8===i)this.content[this.byte]=this.content[this.byte]|t,this.byte++,this.bit=0;else{let e=t>>(i-=8);this.content[this.byte]=this.content[this.byte]|e,e=t-(e<<i),this.byte++,this.bit=0,this.nextPutBits(e,i)}}nextPutByte(t){t.forEach(t=>{this.nextPutBits(t,8)})}nextPutCompleteByte(t){this.completeByte(),this.content[this.byte]=t,this.byte++}nextPutKanji(t){for(let e=0;e<t.length;e++){let i=t.charCodeAt(e);i<=40956?i-=33088:i-=49472;let s=i%256,o=(i-s)/256;this.nextPutBits(192*o+s,13)}}nextPutNumeric(t){let e=[];for(let i=0;i<t.length;i++)e.push(t.charCodeAt(i)-48);for(let i=2;i<t.length;i+=3)this.nextPutBits(100*e[i-2]+10*e[i-1]+e[i],10);switch(t.length%3){case 0:break;case 1:this.nextPutBits(e[t.length-1],4);break;case 2:this.nextPutBits(10*e[t.length-2]+e[t.length-1],7)}}}class p{static withAll(t,e,i){let s=[];if(void 0===i)for(let i=0;i<e;i++)s.push(Array(t));else for(let o=0;o<e;o++)s.push(Array(t).fill(i));return new this(s)}constructor(t){this.content=t}at(t,e){return this.content[e][t]}copy(){return new this.constructor(this.content.map(t=>t.slice()))}fill(t,e,i,s,o){for(let n=e;n<e+s;n++){let e=this.content[n];for(let s=t;s<t+i;s++)e[s]=o}}get height(){return this.content.length}put(t,e,i){return this.content[e][t]=i}get width(){return this.content[0].length}}class A extends p{static forIntegerArray(t,e,i){let s=[];for(let o=0;o<e;o++){let e=i[o],n=[];for(let i=t-1;i>=0;i--)e%2==1?(n.unshift(!0),e--):n.unshift(!1),e/=2;s.push(n)}return new this(s)}asIntegerArray(){return this.content.map(t=>{let e=0;return t.forEach(t=>{e*=2,!0===t&&e++}),e})}bitAt(t,e){return this.at(t,e)?1:0}fillAlignmentPatternAt(t,e){for(let i=0;i<4;i++)this.content[e][t+i]=!0,this.content[e+4][t+i+1]=!0,this.content[e+1+i][t]=!0,this.content[e+i][t+4]=!0;this.content[e+2][t+2]=!0}fillFinderPatternAt(t,e){for(let i=0;i<6;i++)this.content[e][t+i]=!0,this.content[e+6][t+i+1]=!0,this.content[e+1+i][t]=!0,this.content[e+i][t+6]=!0;this.fill(t+2,e+2,3,3,!0)}}class v extends p{static chunkingAt(t,e){return({LOW:[[[1,26,19]],[[1,44,34]],[[1,70,55]],[[1,100,80]],[[1,134,108]],[[2,86,68]],[[2,98,78]],[[2,121,97]],[[2,146,116]],[[2,86,68],[2,87,69]],[[4,101,81]],[[2,116,92],[2,117,93]],[[4,133,107]],[[3,145,115],[1,146,116]],[[5,109,87],[1,110,88]],[[5,
1122,98],[1,123,99]],[[1,135,107],[5,136,108]],[[5,150,120],[1,151,121]],[[3,141,113],[4,142,114]],[[3,135,107],[5,136,108]],[[4,144,116],[4,145,117]],[[2,139,111],[7,140,112]],[[4,151,121],[5,152,122]],[[6,147,117],[4,148,118]],[[8,132,106],[4,133,107]],[[10,142,114],[2,143,115]],[[8,152,122],[4,153,123]],[[3,147,117],[10,148,118]],[[7,146,116],[7,147,117]],[[5,145,115],[10,146,116]],[[13,145,115],[3,146,116]],[[17,145,115]],[[17,145,115],[1,146,116]],[[13,145,115],[6,146,116]],[[12,151,121],[7,152,122]],[[6,151,121],[14,152,122]],[[17,152,122],[4,153,123]],[[4,152,122],[18,153,123]],[[20,147,117],[4,148,118]],[[19,148,118],[6,149,119]]],HIGH:[[[1,26,9]],[[1,44,16]],[[2,35,13]],[[4,25,9]],[[2,33,11],[2,34,12]],[[4,43,15]],[[4,39,13],[1,40,14]],[[4,40,14],[2,41,15]],[[4,36,12],[4,37,13]],[[6,43,15],[2,44,16]],[[3,36,12],[8,37,13]],[[7,42,14],[4,43,15]],[[12,33,11],[4,34,12]],[[11,36,12],[5,37,13]],[[11,36,12],[7,37,13]],[[3,45,15],[13,46,16]],[[2,42,14],[17,43,15]],[[2,42,14],[19,43,15]],[[9,39,13],[16,40,14]],[[15,43,15],[10,44,16]],[[19,46,16],[6,47,17]],[[34,37,13]],[[16,45,15],[14,46,16]],[[30,46,16],[2,47,17]],[[22,45,15],[13,46,16]],[[33,46,16],[4,47,17]],[[12,45,15],[28,46,16]],[[11,45,15],[31,46,16]],[[19,45,15],[26,46,16]],[[23,45,15],[25,46,16]],[[23,45,15],[28,46,16]],[[19,45,15],[35,46,16]],[[11,45,15],[46,46,16]],[[59,46,16],[1,47,17]],[[22,45,15],[41,46,16]],[[2,45,15],[64,46,16]],[[24,45,15],[46,46,16]],[[42,45,15],[32,46,16]],[[10,45,15],[67,46,16]],[[20,45,15],[61,46,16]]],MEDIUM:[[[1,26,16]],[[1,44,28]],[[1,70,44]],[[2,50,32]],[[2,67,43]],[[4,43,27]],[[4,49,31]],[[2,60,38],[2,61,39]],[[3,58,36],[2,59,37]],[[4,69,43],[1,70,44]],[[1,80,50],[4,81,51]],[[6,58,36],[2,59,37]],[[8,59,37],[1,60,38]],[[4,64,40],[5,65,41]],[[5,65,41],[5,66,42]],[[7,73,45],[3,74,46]],[[10,74,46],[1,75,47]],[[9,69,43],[4,70,44]],[[3,70,44],[11,71,45]],[[3,67,41],[13,68,42]],[[17,68,42]],[[17,74,46]],[[4,75,47],[14,76,48]],[[6,73,45],[14,74,46]],[[8,75,47],[13,76,48]],[[19,74,46],[4,75,47]],[[22,73,45],[3,74,46]],[[3,73,45],[23,74,46]],[[21,73,45],[7,74,46]],[[19,75,47],[10,76,48]],[[2,74,46],[29,75,47]],[[10,74,46],[23,75,47]],[[14,74,46],[21,75,47]],[[14,74,46],[23,75,47]],[[12,75,47],[26,76,48]],[[6,75,47],[34,76,48]],[[29,74,46],[14,75,47]],[[13,74,46],[32,75,47]],[[40,75,47],[7,76,48]],[[18,75,47],[31,76,48]]],QUARTER:[[[1,26,13]],[[1,44,22]],[[2,35,17]],[[2,50,24]],[[2,33,15],[2,34,16]],[[4,43,19]],[[2,32,14],[4,33,15]],[[4,40,18],[2,41,19]],[[4,36,16],[4,37,17]],[[6,43,19],[2,44,20]],[[4,50,22],[4,51,23]],[[4,46,20],[6,47,21]],[[8,44,20],[4,45,21]],[[11,36,16],[5,37,17]],[[5,54,24],[7,55,25]],[[15,43,19],[2,44,20]],[[1,50,22],[15,51,23]],[[17,50,22],[1,51,23]],[[17,47,21],[4,48,22]],[[15,54,24],[5,55,25]],[[17,50,22],[6,51,23]],[[7,54,24],[16,55,25]],[[11,54,24],[14,55,25]],[[11,54,24],[16,55,25]],[[7,54,24],[22,55,25]],[[28,50,22],[6,51,23]],[[8,53,23],[26,54,24]],[[4,54,24],[31,55,25]],[[1,53,23],[37,54,24]],[[15,54,24],[25,55,25]],[[42,54,24],[1,55,25]],[[10,54,24],[35,55,25]],[[29,54,24],[19,55,25]],[[44,54,24],[7,55,25]],[[39,54,24],[14,55,25]],[[46,54,24],[10,55,25]],[[49,54,24],[10,55,25]],[[48,54,24],[14,55,25]],[[43,54,24],[22,55,25]],[[34,54,24],[34,55,25]]]})[t][e-1]}static fromGF256Alpha(t){return[1,2,4,8,16,32,64,128,29,58,116,232,205,135,19,38,76,152,45,90,180,117,234,201,143,3,6,12,24,48,96,192,157,39,78,156,37,74,148,53,106,212,181,119,238,193,159,35,70,140,5,10,20,40,80,160,93,186,105,210,185,111,222,161,95,190,97,194,153,47,94,188,101,202,137,15,30,60,120,240,253,231,211,187,107,214,177,127,254,225,223,163,91,182,113,226,217,175,67,134,17,34,68,136,13,26,52,104,208,189,103,206,129,31,62,124,248,237,199,147,59,118,236,197,151,51,102,204,133,23,46,92,184,109,218,169,79,158,33,66,132,21,42,84,168,77,154,41,82,164,85,170,73,146,57,114,228,213,183,115,230,209,191,99,198,145,63,126,252,229,215,179,123,246,241,255,227,219,171,75,150,49,98,196,149,55,110,220,165,87,174,65,130,25,50,100,200,141,7,14,28,56,112,224,221,167,83,166,81,162,89,178,121,242,249,239,195,155,43,86,172,69,138,9,18,36,72,144,61,122,244,245,247,243,251,235,203,139,11,22,44,88,176,125,250,233,207,131,27,54,108,216,173,71,142][t]}static polynomial(t){if(this.polynomials.length>=t)return this.polynomials[t-1];let e=this.polynomials[this.polynomials.length-1];for(let i=this.polynomials.length;i<t;i++){let t=new Uint8Array(2);t[1]=i,e=this.product(e,t),this.polynomials.push(e)}return e}static product(t,e){let i=new Uint8Array(t.length+e.length-1);return t.forEach((t,s)=>{e.forEach((e,o)=>{let n=s+o;i[n]=this.fromGF256Alpha((t+e)%255)^i[n]})}),i.map(t=>this.toGF256Alpha(t))}static quotient(t,e){let i=new Uint8Array(t.length+e.length-1);for(let e=0;e<t.length;e++)i[e]=t[e];for(let s=0;s<t.length;s++){let t=i[s];0!==t&&(t=this.toGF256Alpha(t),e.forEach((e,o)=>{let n=s+o;i[n]=this.fromGF256Alpha((t+e)%255)^i[n]}))}return i.slice(i.length-e.length+1)}static toGF256Alpha(t){return[0,0,1,25,2,50,26,198,3,223,51,238,27,104,199,75,4,100,224,14,52,141,239,129,28,193,105,248,200,8,76,113,5,138,101,47,225,36,15,33,53,147,142,218,240,18,130,69,29,181,194,125,106,39,249,185,201,154,9,120,77,228,114,166,6,191,139,98,102,221,48,253,226,152,37,179,16,145,34,136,54,208,148,206,143,150,219,189,241,210,19,92,131,56,70,64,30,66,182,163,195,72,126,110,107,58,40,84,250,133,186,61,202,94,155,159,10,21,121,43,78,212,229,172,115,243,167,87,7,112,192,247,140,128,99,13,103,74,222,237,49,197,254,24,227,165,153,119,38,184,180,124,17,68,146,217,35,32,137,46,55,63,209,91,149,188,207,205,144,135,151,178,220,252,190,97,242,86,211,171,20,42,93,158,132,60,57,83,71,109,65,162,31,45,67,216,183,123,164,118,196,23,73,236,127,12,111,246,108,161,59,82,41,157,85,170,251,96,134,177,187,204,62,90,203,89,95,176,156,169,160,81,11,245,22,235,122,117,44,215,79,174,213,233,230,231,173,232,116,214,244,234,168,80,88,175][t]}static get masks(){return 0===this.maskArray.length&&[(t,e)=>(t+e)%2==0,(t,e)=>e%2==0,t=>t%3==0,(t,e)=>(t+e)%3==0,(t,e)=>((e-e%2)/2+(t-t%3)/3)%2==0,(t,e)=>t*e%2+t*e%3==0,(t,e)=>(t*e+t*e%3)%2==0,(t,e)=>
1(t*e%3+t+e)%2==0].forEach(t=>{let e=[];for(let i=0;i<12;i++){let s=[];for(let e=0;e<12;e++)s.push(t(e,i));e.push(s)}this.maskArray.push(new A(e))}),this.maskArray}static for(t,e){let i=this.instances[t+e];if(void 0===i){let s=4*e+17,o=[];for(let t=0;t<s;t++)o.push(Array(s).fill(this.AVAILABLE));i=new this(o,t,e),this.instances[t+e]=i}return i}constructor(t,e,i){super(t),this.errorCorrection=e,this.version=i,this.initialize()}initialize(){let t=0;this.errorCorrection===g.LOW?1===this.version?t=3:2===this.version?t=2:3===this.version&&(t=1):1===this.version&&(t=this.errorCorrection===g.MEDIUM?2:1),this.chunking=this.constructor.chunkingAt(this.errorCorrection,this.version);let e=[],i=[],s=0,o=0,n=[],r=[],h=0,l=0;this.chunking.forEach(a=>{for(let c=0;c<a[0];c++){let c=0;r.push(8*h),h+=a[1];let d=[],u=a[2];for(let t=0;t<u;t++)d.push({chunk:l,byte:c}),c++;e.push(d),s=Math.max(s,d.length);let g=[],f=a[1]-u;for(let t=0;t<f;t++)g.push({chunk:l,byte:c}),c++;i.push(g),o=Math.max(o,g.length),n.push(f-t),l++}}),this.chunkingOffsets=r,this.errorCorrectionCapacity=n;let a=[];for(let t=0;t<s;t++)e.forEach(e=>{e.length>t&&a.push(e[t])});for(let t=0;t<o;t++)i.forEach(e=>{e.length>t&&a.push(e[t])});let c=[];a.forEach(t=>{let e=t.byte,i=t.chunk;for(let t=0;t<8;t++)c.push({chunk:i,byte:e,bit:t})});let d=this.width;for(let t of(this.fill(0,0,9,9,this.constructor.AVOID),this.fill(d-8,0,8,9,this.constructor.AVOID),this.fill(0,d-8,9,8,this.constructor.AVOID),this.version>6&&(this.fill(d-11,0,3,6,this.constructor.AVOID),this.fill(0,d-11,6,3,this.constructor.AVOID)),this.fill(9,6,d-17,1,this.constructor.AVOID),this.fill(6,9,1,d-17,this.constructor.AVOID),m.alignmentPatternPositions(this.version)))this.fill(t.x,t.y,5,5,this.constructor.AVOID);let u=d-2,f=d;c.forEach(t=>{do{let t;let e=(u-u%2)/2%2==1;6===u?(t=!1,u=5):t=u<6?u%2==1:u%2==0,t?u--:e?0===f?u--:(u++,f--):f+1===d?u--:(u++,f++)}while(this.at(u,f)===this.constructor.AVOID&&u>-1);this.put(u,f,t)})}codewordsFor(t){let e=0,i=[];return this.chunking.forEach(s=>{for(let o=0;o<s[0];o++){let o=t.slice(e,e+s[2]);e+=s[2];let n=this.constructor.quotient(o,this.constructor.polynomial(s[1]-s[2]));i.push(...o),i.push(...n)}}),i}dataFor(t){let e=[];t.forEach(t=>{let i=t;[128,64,32,16,8,4,2,1].forEach(t=>{i>=t?(e.push(!0),i-=t):e.push(!1)})}),this.bits=e;let i=this.content.length,s=A.withAll(i,i,!1);for(let t=0;t<i;t++)for(let o=0;o<i;o++){let i=this.at(o,t);this.isDataPixel(i)&&s.put(o,t,e[this.chunkingOffsets[i.chunk]+8*i.byte+i.bit])}return s}isDataPixel(t){return t!==this.constructor.AVOID&&t!==this.constructor.AVAILABLE}maskedDataFor(t){let e=t.height;return this.constructor.masks.map(i=>{let s=A.withAll(e,e);for(let o=0;o<e;o++)for(let n=0;n<e;n++){let e=t.at(o,n);this.at(o,n)!==v.AVOID&&i.at(o%12,n%12)&&(e=!e),s.put(o,n,e)}return s})}asIntegerArray(){return this.content.map(t=>{let e=0;return t.forEach(t=>{e*=2,this.isDataPixel(t)&&e++}),e})}}v.AVAILABLE="available",v.AVOID="avoid",v.GENERATOR_FUNCTIONS=[(t,e)=>(t+e)%2==0,(t,e)=>e%2==0,t=>t%3==0,(t,e)=>(t+e)%3==0,(t,e)=>((e-e%2)/2+(t-t%3)/3)%2==0,(t,e)=>t*e%2+t*e%3==0,(t,e)=>(t*e+t*e%3)%2==0,(t,e)=>(t*e%3+t+e)%2==0],v.instances={},v.maskArray=[],v.polynomials=[new Uint8Array(2)];class m{static alignmentPatternPositions(t){let e=c[t-1];if(0===e.length)return[];let i=[],s=e[0];return e.slice(1,e.length-1).forEach(t=>{i.push({x:s,y:t}),i.push({x:t,y:s})}),(e=e.slice(1)).forEach(t=>{e.forEach(e=>{i.push({x:e,y:t})})}),i}static finderPatternPositions(t){let e=4*t+10;return[{x:0,y:0},{x:0,y:e},{x:e,y:0}]}static timingPatternPositions(t){let e=[],i=4*t+9;for(let t=8;t<i;t+=2)e.push({x:t,y:6}),e.push({x:6,y:t});return e}constructor(t,e){if(void 0===t||0===t.length)throw"no content to encode";this.content=t,this.options=e||{},"eci"in this.options&&(this.eci=this.options.eci),"errorCorrection"in this.options&&(this.errorCorrection=this.options.errorCorrection)}get alignmentPatternPositions(){return this.constructor.alignmentPatternPositions(this.version)}get dimension(){return 4*this.version+17}get encoding(){return this._encoding}set encoding(t){this._encoding=t}get finderPatternPositions(){return this.constructor.finderPatternPositions(this.version)}get hasEci(){return void 0!==this.eci&&3!==this.eci}get hasAlignmentPattern(){return this.version>1}get timingPatternPositions(){return this.constructor.timingPatternPositions(this.version)}}m.MAX_VERSION=40;var E={ENCODING:u,ERROR_CORRECTION:g,BitWriter:f,Matrix:p,BooleanMatrix:A,QRCodeMap:v,QRCode:m,QRCodeEncoder:class{constructor(t,e){this.co
1de=new m(t,e),this.encode()}encode(){this.initializeEncoding(),this.initializeVersion(),this.initializeCodewords(),this.initializeMapping(),this.initializeMasking()}initializeCodewords(){let t=new f(d[this.code.errorCorrection][this.code.version-1]);switch(this.code.encoding){case u.NUMERIC:t.nextPutBits(1,4),this.code.version<10?t.nextPutBits(this.length,10):this.code.version<27?t.nextPutBits(this.length,12):t.nextPutBits(this.length,14),t.nextPutNumeric(this.code.content);break;case u.ALPHANUMERIC:t.nextPutBits(2,4),this.code.version<10?t.nextPutBits(this.length,9):this.code.version<27?t.nextPutBits(this.length,11):t.nextPutBits(this.length,13),t.nextPutAlphaNUMERIC(this.code.content);break;case u.KANJI:t.nextPutBits(8,8),this.code.version<10?t.nextPutBits(this.length,8):this.code.version<27?t.nextPutBits(this.length,10):t.nextPutBits(this.length,12),t.nextPutKanji(this.code.content);break;case u.BYTE:this.code.hasEci&&(t.nextPutBits(7,4),this.code.eci<128?(t.nextPutBits(0,1),t.nextPutBits(this.code.eci,7)):this.code.eci<16384?(t.nextPutBits(2,2),t.nextPutBits(this.code.eci,14)):(t.nextPutBits(6,3),t.nextPutBits(this.code.eci,21))),t.nextPutBits(4,4),this.code.version<10?t.nextPutBits(this.length,8):t.nextPutBits(this.length,16),t.nextPutByte(this.bytes)}t.bitsLeft>3&&t.nextPutBits(0,4);let e=t.bytesLeft;for(let i=0;i<e;i++)t.nextPutCompleteByte(i%2==0?236:17);this.codewords=t.content}initializeEncoding(){if(this.code.hasEci){if(this.code.encoding=u.BYTE,3===this.code.eci){this.length=this.code.content.length,this.bytes=[];for(let t=0;t<length;t++)this.bytes.push(this.code.content.charCodeAt(t)%128)}else if(25===this.code.eci)this.bytes=this.toUtf16Bytes(this.code.content),this.length=this.bytes.length;else if(26===this.code.eci)this.bytes=this.toUtf8Bytes(this.code.content),this.length=this.bytes.length;else{this.length=this.code.content.length,this.bytes=[];for(let t=0;t<length;t++)this.bytes.push(this.code.content.charCodeAt(t)%256)}}else/^\d*$/.test(this.code.content)?(this.code.encoding=u.NUMERIC,this.length=this.code.content.length):/^[A-Z\d\dA-Z $%*+-./:]+$/.test(this.code.content)?(this.code.encoding=u.ALPHANUMERIC,this.length=this.code.content.length):/^[\u8140-\u9ffc\ue040-\uebbf]+$/.test(this.code.content)?(this.code.encoding=u.KANJI,this.length=this.code.content.length):(this.code.encoding=u.BYTE,this.bytes=this.toUtf8Bytes(this.code.content),this.length=this.bytes.length,this.code.eci=this.length===this.code.content.length?3:26)}initializeMapping(){this.map=v.for(this.code.errorCorrection,this.code.version),this.mapCodewords=this.map.codewordsFor(this.codewords),this.mapData=this.map.dataFor(this.mapCodewords)}initializeMasking(){let t,e;let i=this.map.maskedDataFor(this.mapData),s=1e6;i.forEach((i,o)=>{let n=this.penaltyForMatrix(i);n<s&&(s=n,t=i,e=o)}),this.lowestPenalty=s;let o=[1,0,3,2][this.errorCorrections.indexOf(this.code.errorCorrection)],n=o=(8*o+e)*1024;for(let t=14;t>=10;t--)n>=Math.pow(2,t)&&(n=1335*Math.pow(2,t-10)^n);o=o+n^21522;let r=this.code.dimension;if([[8,0,r-1,8],[8,1,r-2,8],[8,2,r-3,8],[8,3,r-4,8],[8,4,r-5,8],[8,5,r-6,8],[8,7,r-7,8],[8,8,r-8,8],[7,8,8,r-7],[5,8,8,r-6],[4,8,8,r-5],[3,8,8,r-4],[2,8,8,r-3],[1,8,8,r-2],[0,8,8,r-1]].forEach((e,i)=>{(Math.pow(2,i)&o)>0&&(t.put(e[0],e[1],!0),t.put(e[2],e[3],!0))}),t.put(8,r-8,!0),this.code.version>6){let e=4096*this.code.version;n=e;for(let t=17;t>=12;t--)n>=Math.pow(2,t)&&(n=7973*Math.pow(2,t-12)^n);e+=n;let i=0;for(let s=0;s<6;s++)for(let o=r-11;o<=r-9;o++)(Math.pow(2,i)&e)>0&&(t.put(s,o,!0),t.put(o,s,!0)),i++}this.code.data=t}initializeVersion(){if(this.errorCorrections.includes(this.code.errorCorrection)){let t=this.versionForLength(this.length,this.code.errorCorrection);if(t>m.MAX_VERSION)throw"This content is too long to be encoded for the specified error correction.";this.code.version=t}else{let t=this.errorCorrections.map(t=>this.versionForLength(this.length,t)),e=t[0];if(e>m.MAX_VERSION)throw"This string is too long to be encoded.";this.code.version=e;for(let i=3;i>=0;i--)if(t[i]===e){this.code.errorCorrection=this.errorCorrections[i];return}}}capacity(t,e){return({NUMERIC:{LOW:[41,77,127,187,255,322,370,461,552,652,772,883,1022,1101,1250,1408,1548,1725,1903,2061,2232,2409,2620,2812,3057,3283,3517,3669,3909,4158,4417,4686,4965,5253,5529,5836,6153,6479,6743,7089],MEDIUM:[34,63,101,149,202,255,293,365,432,513,604,691,796,871,991,1082,1212,1346,1500,1600,1708,1872,2059,2188,2395,2544,2701,2857,3035,3289,3486,3693,3909,4134,4343,4588,4775,5039,5313,5596],QUARTER:[27,48,77,111,144,178,207,259,312,3
164,427,489,580,621,703,775,876,948,1063,1159,1224,1358,1468,1588,1718,1804,1933,2085,2181,2358,2473,2670,2805,2949,3081,3244,3417,3599,3791,3993],HIGH:[17,34,58,82,106,139,154,202,235,288,331,374,427,468,530,602,674,746,813,919,969,1056,1108,1228,1286,1425,1501,1581,1677,1782,1897,2022,2157,2301,2361,2524,2625,2735,2927,3057]},ALPHANUMERIC:{LOW:[25,47,77,114,154,195,224,279,335,395,468,535,619,667,758,854,938,1046,1153,1249,1352,1460,1588,1704,1853,1990,2132,2223,2369,2520,2677,2840,3009,3183,3351,3537,3729,3927,4087,4296],MEDIUM:[20,38,61,90,122,154,178,221,262,311,366,419,483,528,600,656,734,816,909,970,1035,1134,1248,1326,1451,1542,1637,1732,1839,1994,2113,2238,2369,2506,2632,2780,2894,3054,3220,3391],QUARTER:[16,29,47,67,87,108,125,157,189,221,259,296,352,376,426,470,531,574,644,702,742,823,890,963,1041,1094,1172,1263,1322,1429,1499,1618,1700,1787,1867,1966,2071,2181,2298,2420],HIGH:[10,20,35,50,64,84,93,122,143,174,200,227,259,283,321,365,408,452,493,557,587,640,672,744,779,864,910,958,1016,1080,1150,1226,1307,1394,1431,1530,1591,1658,1774,1852]},KANJI:{LOW:[10,20,32,48,65,82,95,118,141,167,198,226,262,282,320,361,397,442,488,528,572,618,672,721,784,842,902,940,1002,1066,1132,1201,1273,1347,1417,1496,1577,1661,1729,1817],MEDIUM:[8,16,26,38,52,65,75,93,111,131,155,177,204,223,254,277,310,345,384,410,438,480,528,561,614,652,692,732,778,843,894,947,1002,1060,1113,1176,1224,1292,1362,1435],QUARTER:[7,12,20,28,37,45,53,66,80,93,109,125,149,159,180,198,224,243,272,297,314,348,376,407,440,462,496,534,559,604,634,684,719,756,790,832,876,923,972,1024],HIGH:[4,8,15,21,27,36,39,52,60,74,85,96,109,120,136,154,173,191,208,235,248,270,284,315,330,365,385,405,430,457,486,518,553,590,605,647,673,701,750,784]},BYTE:{LOW:[17,32,53,78,106,134,154,192,230,271,321,367,425,458,520,586,644,718,792,858,929,1003,1091,1171,1273,1367,1465,1528,1628,1732,1840,1952,2068,2188,2303,2431,2563,2699,2809,2953],MEDIUM:[14,26,42,62,84,106,122,152,180,213,251,287,331,362,412,450,504,560,624,666,711,779,857,911,997,1059,1125,1190,1264,1370,1452,1538,1628,1722,1809,1911,1989,2099,2213,2331],QUARTER:[11,20,32,46,60,74,86,108,130,151,177,203,241,258,292,322,364,394,442,482,509,565,611,661,715,751,805,868,908,982,1030,1112,1168,1228,1283,1351,1423,1499,1579,1663],HIGH:[7,14,24,34,44,58,64,84,98,119,137,155,177,194,220,250,280,310,338,382,403,439,461,511,535,593,625,658,698,742,790,842,898,958,983,1051,1093,1139,1219,1273]}})[t][e]}get errorCorrections(){return[g.LOW,g.MEDIUM,g.QUARTER,g.HIGH]}penaltyForMatrix(t){let e,i,s,o,n,r=0,h=t.content.length;for(let l=0;l<h-1;l++){i=e=t.bitAt(0,l),s=1,o=e,n=e;for(let h=1;h<10;h++)i===(e=t.bitAt(h,l))?t.bitAt(h,l+1)===i&&t.bitAt(h-1,l+1)===i&&(r+=3):i=e,o===e?s++:(s>4&&(r+=s-2),s=1,o=e),n=2*n+e;for(let a=10;a<h;a++)i===(e=t.bitAt(a,l))?t.bitAt(a,l+1)===i&&t.bitAt(a-1,l+1)===i&&(r+=3):i=e,o===e?s++:(s>4&&(r+=s-2),s=1,o=e),(1488==(n=(2*n+e)%2048)||93===n)&&(r+=40);s>4&&(r+=s-2)}let l=h-1;e=t.bitAt(0,l),s=1,o=e,n=e;for(let i=1;i<10;i++)o===(e=t.bitAt(i,l))?s++:(s>4&&(r+=s-2),s=1,o=e),n=2*n+e;for(let i=10;i<h;i++)o===(e=t.bitAt(i,l))?s++:(s>4&&(r+=s-2),s=1,o=e),(1488==(n=(2*n+e)%2048)||93===n)&&(r+=40);s>4&&(r+=s-2);let a=0;for(let i=0;i<h;i++){a+=e=t.bitAt(i,0),s=1,o=e,n=e;for(let h=1;h<10;h++)a+=e=t.bitAt(i,h),o===e?s++:(s>4&&(r+=s-2),s=1,o=e),n=2*n+e;for(let l=10;l<h;l++)a+=e=t.bitAt(i,l),o===e?s++:(s>4&&(r+=s-2),s=1,o=e),(1488==(n=(2*n+e)%2048)||93===n)&&(r+=40);s>4&&(r+=s-2)}return r+Math.floor(10*Math.abs(a/(h*h)-.5))}toUtf16Bytes(t){let e=[];for(let i=0;i<t.length;i++){let s=t.charCodeAt(i),o=s%256,n=(s-o)/256;e.push(n),e.push(o)}return e}toUtf8Bytes(t){let e=[],i=0;for(let s=0;s<t.length;s++){let o=t.charCodeAt(s);o<128?e[i++]=o:o<2048?(e[i++]=o>>6|192,e[i++]=63&o|128):(64512&o)==55296&&s+1<t.length&&(64512&t.charCodeAt(s+1))==56320?(o=65536+((1023&o)<<10)+(1023&t.charCodeAt(++s)),e[i++]=o>>18|240,e[i++]=o>>12&63|128,e[i++]=o>>6&63|128,e[i++]=63&o|128):(e[i++]=o>>12|224,e[i++]=o>>6&63|128,e[i++]=63&o|128)}return e}versionForLength(t,e){let i=(this.code.hasEci?d[e]:this.capacity(this.code.encoding,e)).findIndex(e=>e>=t);return -1===i?100:i+1}}};let{QRCode:y,QRCodeEncoder:b}=E;class P extends b{encode(){for(let t of(this.initializeEncoding(),this.errorCorrections))if(this.code.errorCorrection=t,this.initializeVersion(),!(this.code.version<this.minimumVersion)&&(this.initializeCodewords(),this.initializeMapping(),this.initializeMasking(),this.lowestPenalty<this.constructor.PENALTY_FOR_NEGATIVE_CAPACITY)){this.initializeTurtleData(),this.initializeSvg();return}let t=Math.max(this.minimumVersion,this.code.version+1);for(let e=t;e<=y.MAX_VERSION;e++)if(this.code.version=e,this.initializeCodewords(),this.initializeMapping(),this.initializeMasking(),this.lowestPenalty<this.constructor.PENALTY_FOR_NEGATIVE_CAPACITY){this.initializeTurtleData(),this.initializeSvg();return}}initializeSvg(){let t=this.svgOffset,e=this.svgDimension,i=this.svgForegroundStyle,s=this.svgBackgroun
1dStyle,o=[];o.push(this.svgTag(e)),o.push("<defs>"),o.push(this.svgFinderPattern(i)),o.push("</defs>"),o.push(this.svgBackground(s,e,0===t?void 0:t/2)),this.svgFinderPatterns(o,t),this.svgTurtle(o,i,t),o.push("</svg>"),this.svg=o.join("")}initializeTurtleData(){let t=this.code.data.copy();for(let e of this.code.timingPatternPositions)t.put(e.x,e.y,!0);for(let e of this.code.alignmentPatternPositions)t.fillAlignmentPatternAt(e.x,e.y);this.turtleData=t}get inverted(){let t=this.code.options.invert;return void 0!==t&&t}get hasBorder(){let t=this.code.options.border;return void 0!==t&&t}get minimumVersion(){return 1}async png(){if(void 0!==this._png)return this._png;if(void 0===this.svg)throw"no SVG to convert to PNG";let t=new Image,e=new Blob([this.svg],{type:"image/svg+xml;charset=utf-8"});t.src=URL.createObjectURL(e),await t.decode();let i=this.svgDimension,s=document.createElement("canvas");return s.width=i,s.height=i,s.getContext("2d").drawImage(t,0,0,i,i),this._png=s.toDataURL(),this._png}svgBackground(t,e,i){return""===t?"":void 0===i?`<rect ${t} x="0" y="0" width="${e}" height="${e}" />`:`<rect ${t} x="0" y="0" width="${e}" height="${e}" rx="${i}" ry="${i}" />`}get svgBackgroundStyle(){let t=this.code.options.styleBackground;return void 0!==t?t:this.inverted?'fill="black"':'fill="white"'}get svgDimension(){return 2*this.svgOffset+8*this.code.dimension}svgFinderPattern(t){return`<path id="f" ${t} fill-rule="evenodd" d="M 0 10 a10,10 0 0 1 10,-10 h36 a10,10 0 0 1 10,10 v36 a10,10 0 0 1 -10,10 h-36 a10,10 0 0 1 -10,-10 Z M 8 10 a2,2 0 0 1 2,-2 h36 a2,2 0 0 1 2,2 v36 a2,2 0 0 1 -2,2 h-36 a2,2 0 0 1 -2,-2 Z M 16 18 a2,2 0 0 1 2,-2 h20 a2,2 0 0 1 2,2 v20 a2,2 0 0 1 -2,2 h-20 a2,2 0 0 1 -2,-2 Z" />`}svgFinderPatterns(t,e){for(let i of this.code.finderPatternPositions)t.push(`<use xlink:href="#f" x="${8*i.x+e}" y="${8*i.y+e}" />`)}get svgForegroundStyle(){let t=this.code.options.styleForeground;return void 0!==t?t:this.inverted?'fill="white"':'fill="black"'}get svgOffset(){return this.hasBorder?32:0}svgTag(t){return`<svg version="1.1" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" width="${t}" height="${t}" viewBox="0 0 ${t} ${t}">`}svgTurtle(t,e,i){let s=this.code.dimension;for(let o=0;o<s;o++)for(let n=0;n<s;n++)this.turtleData.at(n,o)&&t.push(new C(this.turtleData,e,i,n,o).element)}}P.PENALTY_FOR_LEFTOVER_CAPACITY=[32,16,8,4,2,1],P.PENALTY_FOR_NEGATIVE_CAPACITY=1e4;class C{constructor(t,e,i,s,o){this.data=t,this.dimension=t.width,this.style=e||"",this.offset=i||0,this.start={x:s,y:o},this.visitedLocations=new Set,this.generateElement(),this.clearVisited()}clearVisited(){this.visitedLocations.forEach(t=>{let e=this.fromLocation(t);this.data.put(e.x,e.y,!1)})}get element(){return this._element}fromLocation(t){let e=t%this.dimension,i=(t-e)/this.dimension;return{x:e,y:i}}generateElement(){let t;let e=this.start.x,i=this.start.y,s="left",o=e,n=i,r=[];r.push(s);let h="top",l=new Set,a=new Set,c=new Set,d=new Set;for(d.add(this.toLocation(o,n));!(o===e&&n===i&&h===s);){r.push(h);let t=this.toLocation(o,n);switch(this.visitLocation(t),h){case"top":l.add(t),this.hasPixelAtCoordinate(o+1,n)?this.hasPixelAtCoordinate(o+1,n-1)?(o+=1,n-=1,h="left"):o+=1:h="right";break;case"right":a.add(t),this.hasPixelAtCoordinate(o,n+1)?this.hasPixelAtCoordinate(o+1,n+1)?(o+=1,n+=1,h="top"):n+=1:h="bottom";break;case"bottom":c.add(t),this.hasPixelAtCoordinate(o-1,n)?this.hasPixelAtCoordinate(o-1,n+1)?(o-=1,n+=1,h="right"):o-=1:h="left";break;case"left":d.add(t),this.hasPixelAtCoordinate(o,n-1)?this.hasPixelAtCoordinate(o-1,n-1)?(o-=1,n-=1,h="bottom"):n-=1:h="top"}}if(4===r.length){this._element=`<rect ${this.style} x="${8*e+this.offset}" y="${8*i+this.offset}" width="8" height="8" rx="2" ry="2" />`;return}let u=[];u.push(`M${8*e+this.offset+1} ${8*i+this.offset+4}`);let g=r[0];r.push(g);let f=0;for(let e=1;e<r.length;e++)(t=g)===(g=r[e])?f+=8:"top"===t&&"right"===g?(0!==f&&(u.push(`h${f}`),f=0),u.push("a3,3 0 0 1 3,3")):"right"===t&&"bottom"===g?(0!==f&&(u.push(`v${f}`),f=0),u.push("a3,3 0 0 1 -3,3")):"bottom"===t&&"left"===g?(0!==f&&(u.push(`h-${f}`),f=0),u.push("a3,3 0 0 1 -3,-3")):"left"===t&&"top"===g?(0!==f&&(u.push(`v-${f}`),f=0),u.push("a3,3 0 0 1 3,-3")):"top"===t&&"left"===g?(u.push(`h${f+5}`),f=5):"right"===t&&"top"===g?(u.push(`v${f+5}`),f=5):"bottom"===t&&"right"===g?(u.push(`h-${f+5}`),f=5):"left"===t&&"bottom"===g&&(u.push(`v-${f+5}`),f=5);f>0&&u.push(`v-${f}`),u.push("z");let p=new Set,A=new Set;for(this.visitedLocations.forEach(t=>{l.has(t)||A.add(t-this.dimension),d.has(t)||A.add(t-1),c.has(t)||A.add(t+this.dimension),a.has(t)||A.add(t+1)}),A=[...A].filter(t=>!this.hasVisitedLocation(t));A.length>0;){let t=[];
1A.forEach(e=>{this.hasPixelAtLocation(e)?(this.visitLocation(e),t.push(e)):p.add(e)}),A=new Set,t.forEach(t=>{A.add(t-this.dimension),A.add(t+this.dimension),A.add(t+1),A.add(t-1)}),A=[...A].filter(t=>!this.hasVisitedLocation(t))}for(;p.size>0;){let t,e,i;p.forEach(s=>{o=s%this.dimension,n=(s-o)/this.dimension,(void 0===t||n<i||n===i&&o>e)&&(t=s,e=o,i=n)}),u.push(`M${8*e+this.offset+9} ${8*i+this.offset-1}`),o=e,n=i,h="top";let s=5;for(;!(o===e&&n===i&&"right"===h);){let t=this.toLocation(o,n);switch(p.delete(t),h){case"top":this.hasPixelAtCoordinate(o-1,n-1)?this.hasPixelAtCoordinate(o-1,n)?(u.push(`h-${s+5}`),s=5,h="left"):(s+=8,o--):(s>0&&u.push(`h-${s}`),u.push("a3,3 0 0 1 -3,-3"),s=0,h="right",o--,n--);break;case"left":this.hasPixelAtCoordinate(o-1,n+1)?this.hasPixelAtCoordinate(o,n+1)?(u.push(`v${s+5}`),s=5,h="bottom"):(s+=8,n++):(s>0&&u.push(`v${s}`),u.push("a3,3 0 0 1 -3,3"),s=0,h="top",o--,n++);break;case"bottom":this.hasPixelAtCoordinate(o+1,n+1)?this.hasPixelAtCoordinate(o+1,n)?(u.push(`h${s+5}`),s=5,h="right"):(s+=8,o++):(s>0&&u.push(`h${s}`),u.push("a3,3 0 0 1 3,3"),s=0,h="left",o++,n++);break;case"right":this.hasPixelAtCoordinate(o+1,n-1)?this.hasPixelAtCoordinate(o,n-1)?(u.push(`v-${s+5}`),s=5,h="top"):(s+=8,n--):(s>0&&u.push(`v-${s}`),u.push("a3,3 0 0 1 3,-3"),s=0,h="bottom",o++,n--)}}u.push(`v-${s+5}`),u.push("z")}this._element=`<path ${this.style} d="${u.join("")}" />`}hasPixelAtCoordinate(t,e){return!(t>=this.dimension)&&!(t<0)&&!(e>=this.dimension)&&!(e<0)&&this.data.at(t,e)}hasPixelAtLocation(t){let e=t%this.dimension,i=(t-e)/this.dimension;return this.data.at(e,i)}hasVisitedCoordinate(t,e){return this.hasVisitedLocation(this.toLocation(t,e))}hasVisitedLocation(t){return this.visitedLocations.has(t)}toLocation(t,e){return this.dimension*e+t}visitCoordinate(t,e){this.visitLocation(this.toLocation(t,e))}visitLocation(t){this.visitedLocations.add(t)}}var x={SquareQRCodeEncoder:P,Turtle:C};let{Matrix:L}=E,{SquareQRCodeEncoder:w}=x,I=Object.freeze({AVAILABLE:"AVAILABLE",FALSE:"FALSE",TRUE:"TRUE",UNDECIDED:"UNDECIDED"});var M=a(a(a({},{MarketQRCodeEncoder:class extends w{static getJewel(){if(void 0!==this.jewel)return this.jewel;let t=L.withAll(9,9,I.UNDECIDED);t.put(0,0,I.AVAILABLE),t.put(0,8,I.AVAILABLE),t.put(8,0,I.AVAILABLE),t.put(8,8,I.AVAILABLE);for(let e=0;e<7;e++)t.put(e+1,0,I.FALSE),t.put(e+1,8,I.FALSE),t.put(0,e+1,I.FALSE),t.put(8,e+1,I.FALSE);t.put(3,3,I.FALSE),t.put(3,5,I.FALSE),t.put(5,3,I.FALSE),t.put(5,5,I.FALSE);for(let e=0;e<6;e++)t.put(1+e,1,I.TRUE),t.put(2+e,7,I.TRUE),t.put(7,1+e,I.TRUE),t.put(1,2+e,I.TRUE);return t.put(4,4,I.TRUE),this.jewel=t,t}initializeSvg(){let t=this.svgOffset,e=this.svgDimension,i=this.svgForegroundStyle,s=this.svgLogoStyle,o=[];o.push(this.svgTag(e)),o.push("<defs>"),o.push(this.svgFinderPattern(i)),o.push(this.svgLogo(s)),o.push("</defs>"),o.push(this.svgBackground(this.svgBackgroundStyle,e,0===t?void 0:16)),this.svgFinderPatterns(o,t),this.svgTurtle(o,i,t);let n=(this.code.dimension-7)*4+t;o.push(`<use xlink:href="#s" x="${n}" y="${n}" />`),o.push("</svg>"),this.svg=o.join("")}initializeTurtleData(){super.initializeTurtleData();let t=(this.code.dimension-9)/2;this.turtleData.fill(t,t+1,9,7,!1),this.turtleData.fill(t+1,t,7,1,!1),this.turtleData.fill(t+1,t+8,7,1,!1)}get isMonochrome(){let t=this.code.options.monochrome;return void 0!==t&&t}get minimumVersion(){return 2}penaltyForMatrix(t){let e=this.map.errorCorrectionCapacity,i=e.map(()=>new Set),s=this.constructor.getJewel(),o=(t.content.length-9)/2;for(let e=0;e<9;e++){let n=e+o;for(let r=0;r<9;r++){let h=r+o,l=this.map.at(h,n);if(this.map.isDataPixel(l))switch(s.at(r,e)){case I.FALSE:!1!==t.at(h,n)&&i[l.chunk].add(l.byte);break;case I.TRUE:!0!==t.at(h,n)&&i[l.chunk].add(l.byte);break;case I.UNDECIDED:i[l.chunk].add(l.byte)}}}let n=0;return e.forEach((t,e)=>{let s=t-2*i[e].size;s<0?n+=this.constructor.PENALTY_FOR_NEGATIVE_CAPACITY:s<this.constructor.PENALTY_FOR_LEFTOVER_CAPACITY.length&&(n+=this.constructor.PENALTY_FOR_LEFTOVER_CAPACITY[s])}),!t.at(o,o)&&n++,!t.at(o,o+8)&&n++,!t.at(o+8,o)&&n++,!t.at(o+8,o+8)&&n++,n}get svgForegroundStyle(){let t=this.code.options.styleForeground;return void 0!==t?t:this.inverted?this.isMonochrome?'fill="white"':'fill="white" fill-opacity="0.95"':this.isMonochrome?'fill="black"':'fill="black" fill-opacity="0.9"'}get svgLogoStyle(){if(this.isMonochrome)return this.svgForegroundStyle;let t=this.code.options.styleLogo;return void 0!==t?t:'fill="#006AFF"'}svgLogo(t){return`<path id="s" ${t} fill-rule="evenodd" d="M 0 9.8 C 0 3.92 3.92 0 9.8 0 L 46.2 0 C 52.08 0 56 3.92 56 9.8 L 56 46.2 C 56 52.08 52.08 56 46.2 56 L 9.8 56 C 3.92 56 0 52.08 0 46.2 Z M 11.2 14 C 11.2 12.32 12.32 11.2 14 11.2 L 42 11.2 C 43.68 
111.2 44.8 12.32 44.8 14 L 44.8 42 C 44.8 43.68 43.68 44.8 42 44.8 L 14 44.8 C 12.32 44.8 11.2 43.68 11.2 42 Z M 21 22.4 C 21 21.7 21.7 21 22.4 21 L 33.6 21 C 34.3 21 35 21.7 35 22.4 L 35 33.6 C 35 34.3 34.3 35 33.6 35 L 22.4 35 C 21.7 35 21 34.3 21 33.6 Z" />`}get svgOffset(){return this.hasBorder?48:0}},JEWEL_VALUE:I}),E),x);let B=class{constructor(t){(0,s.r)(this,t),this.content="",this.size=void 0,this.border=!1,this.monochrome=!1}render(){let t=this.content?new M.MarketQRCodeEncoder(this.content,{border:this.border,styleBackground:this.border?'class="background"':"",styleForeground:'class="foreground"',styleLogo:'class="logo"'}):null,e=void 0!==this.size?{height:`${this.size}px`,width:`${this.size}px`}:null;return(0,s.h)(s.H,{key:"6194ef9fecf9e6a02fff1c4540b5c4a075b03944",class:"market-qrcode","aria-hidden":"true"},(0,s.h)("div",{key:"72af149064f5cc18df5e353a606f67c55bedd6b2",innerHTML:t?t.svg:"",style:e}))}};B.style=":host{display:inline-block;box-sizing:border-box;border-radius:var(--qrcode-border-radius)}:host svg .foreground{fill:var(--qrcode-normal-variant-foreground-color)}:host svg .background{fill:var(--qrcode-normal-variant-background-color)}:host svg .logo{fill:var(--qrcode-normal-variant-icon-color)}:host([monochrome]) .foreground{fill:var(--qrcode-monochrome-variant-foreground-color)}:host([monochrome]) .background{fill:var(--qrcode-monochrome-variant-background-color)}:host([monochrome]) .logo{fill:var(--qrcode-monochrome-variant-icon-color)}:host([size]) svg{width:100%;height:100%}:host([border]){border:var(--qrcode-border-width) solid var(--qrcode-border-color)}"}}]);

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.