PageSourceSearch

https://de.serlo.org/_next/static/chunks/3116.a21306bd744696ec.js

js serlo.org collected 2026-09-24 17:45:09 UTC 21,299 bytes, 2 lines download raw bytes

1"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[3116],{86364:function(e,t,i){var r=i(99043);t.DF={prefix:r.prefix,iconName:r.iconName,icon:[r.width,r.height,r.aliases,r.unicode,r.svgPathData]},t.pZ=t.DF,r.prefix,r.iconName,r.width,r.height,r.aliases,r.unicode,r.svgPathData,r.aliases},96251:function(e,t){t.DF={prefix:"fab",iconName:"google",icon:[488,512,[],"f1a0","M488 261.8C488 403.3 391.1 504 248 504 110.8 504 0 393.2 0 256S110.8 8 248 8c66.8 0 123 24.5 166.3 64.9l-67.5 64.9C258.5 52.6 94.3 116.6 94.3 256c0 86.5 69.1 156.6 153.7 156.6 98.2 0 135-70.4 140.8-106.9H248v-85.3h236.1c2.3 12.7 3.9 24.9 3.9 41.4z"]},t.xY=t.DF},99043:function(e,t){Object.defineProperty(t,"__esModule",{value:!0});var i="square-facebook",r=["facebook-square"],n="f082",o="M64 32C28.7 32 0 60.7 0 96V416c0 35.3 28.7 64 64 64h98.2V334.2H109.4V256h52.8V222.3c0-87.1 39.4-127.5 125-127.5c16.2 0 44.2 3.2 55.7 6.4V172c-6-.6-16.5-1-29.6-1c-42 0-58.2 15.9-58.2 57.2V256h83.6l-14.4 78.2H255V480H384c35.3 0 64-28.7 64-64V96c0-35.3-28.7-64-64-64H64z";t.definition={prefix:"fab",iconName:i,icon:[448,512,r,n,o]},t.faSquareFacebook=t.definition,t.prefix="fab",t.iconName=i,t.width=448,t.height=512,t.ligatures=r,t.unicode=n,t.svgPathData=o,t.aliases=r},52611:function(e,t){Object.defineProperty(t,"__esModule",{value:!0});var i="square-whatsapp",r=["whatsapp-square"],n="f40c",o="M92.1 254.6c0 24.9 7 49.2 20.2 70.1l3.1 5-13.3 48.6L152 365.2l4.8 2.9c20.2 12 43.4 18.4 67.1 18.4h.1c72.6 0 133.3-59.1 133.3-131.8c0-35.2-15.2-68.3-40.1-93.2c-25-25-58-38.7-93.2-38.7c-72.7 0-131.8 59.1-131.9 131.8zM274.8 330c-12.6 1.9-22.4 .9-47.5-9.9c-36.8-15.9-61.8-51.5-66.9-58.7c-.4-.6-.7-.9-.8-1.1c-2-2.6-16.2-21.5-16.2-41c0-18.4 9-27.9 13.2-32.3c.3-.3 .5-.5 .7-.8c3.6-4 7.9-5 10.6-5c2.6 0 5.3 0 7.6 .1c.3 0 .5 0 .8 0c2.3 0 5.2 0 8.1 6.8c1.2 2.9 3 7.3 4.9 11.8c3.3 8 6.7 16.3 7.3 17.6c1 2 1.7 4.3 .3 6.9c-3.4 6.8-6.9 10.4-9.3 13c-3.1 3.2-4.5 4.7-2.3 8.6c15.3 26.3 30.6 35.4 53.9 47.1c4 2 6.3 1.7 8.6-1c2.3-2.6 9.9-11.6 12.5-15.5c2.6-4 5.3-3.3 8.9-2s23.1 10.9 27.1 12.9c.8 .4 1.5 .7 2.1 1c2.8 1.4 4.7 2.3 5.5 3.6c.9 1.9 .9 9.9-2.4 19.1c-3.3 9.3-19.1 17.7-26.7 18.8zM448 96c0-35.3-28.7-64-64-64H64C28.7 32 0 60.7 0 96V416c0 35.3 28.7 64 64 64H384c35.3 0 64-28.7 64-64V96zM148.1 393.9L64 416l22.5-82.2c-13.9-24-21.2-51.3-21.2-79.3C65.4 167.1 136.5 96 223.9 96c42.4 0 82.2 16.5 112.2 46.5c29.9 30 47.9 69.8 47.9 112.2c0 87.4-72.7 158.5-160.1 158.5c-26.6 0-52.7-6.7-75.8-19.3z";t.definition={prefix:"fab",iconName:i,icon:[448,512,r,n,o]},t.faSquareWhatsapp=t.definition,t.prefix="fab",t.iconName=i,t.width=448,t.height=512,t.ligatures=r,t.unicode=n,t.svgPathData=o,t.aliases=r},10330:function(e,t,i){var r=i(52611);t.DF={prefix:r.prefix,iconName:r.iconName,icon:[r.width,r.height,r.aliases,r.unicode,r.svgPathData]},t.yh=t.DF,r.prefix,r.iconName,r.width,r.height,r.aliases,r.unicode,r.svgPathData,r.aliases},94984:function(e,t){t.DF={prefix:"fas",iconName:"compass",icon:[512,512,[129517],"f14e","M256 512A256 256 0 1 0 256 0a256 256 0 1 0 0 512zm50.7-186.9L162.4 380.6c-19.4 7.5-38.5-11.6-31-31l55.5-144.3c3.3-8.5 9.9-15.1 18.4-18.4l144.3-55.5c19.4-7.5 38.5 11.6 31 31L325.1 306.7c-3.2 8.5-9.9 15.1-18.4 18.4zM288 256a32 32 0 1 0 -64 0 32 32 0 1 0 64 0z"]},t.GT=t.DF},44325:function(e,t){t.DF={prefix:"fas",iconName:"copy",icon:[448,512,[],"f0c5","M208 0L332.1 0c12.7 0 24.9 5.1 33.9 14.1l67.9 67.9c9 9 14.1 21.2 14.1 33.9L448 336c0 26.5-21.5 48-48 48l-192 0c-26.5 0-48-21.5-48-48l0-288c0-26.5 21.5-48 48-48zM48 128l80 0 0 64-64 0 0 256 192 0 0-32 64 0 0 48c0 26.5-21.5 48-48 48L48 512c-26.5 0-48-21.5-48-48L0 176c0-26.5 21.5-48 48-48z"]},t.kZ=t.DF},88441:function(e,t){t.DF={prefix:"fas",iconName:"download",icon:[512,512,[],"f019","M288 32c0-17.7-14.3-32-32-32s-32 14.3-32 32l0 242.7-73.4-73.4c-12.5-12.5-32.8-12.5-45.3 0s-12.5 32.8 0 45.3l128 128c12.5 12.5 32.8 12.5 45.3 0l128-128c12.5-12.5 12.5-32.8 0-45.3s-32.8-12.5-45.3 0L288 274.7 288 32zM64 352c-35.3 0-64 28.7-64 64l0 32c0 35.3 28.7 64 64 64l384 0c35.3 0 64-28.7 64-64l0-32c0-35.3-28.7-64-64-64l-101.5 0-45.3 45.3c-25 25-6
15.5 25-90.5 0L165.5 352 64 352zm368 56a24 24 0 1 1 0 48 24 24 0 1 1 0-48z"]},t.q7=t.DF},21103:function(e,t){Object.defineProperty(t,"__esModule",{value:!0});var i="file-lines",r=[128441,128462,61686,"file-alt","file-text"],n="f15c",o="M64 0C28.7 0 0 28.7 0 64L0 448c0 35.3 28.7 64 64 64l256 0c35.3 0 64-28.7 64-64l0-288-128 0c-17.7 0-32-14.3-32-32L224 0 64 0zM256 0l0 128 128 0L256 0zM112 256l160 0c8.8 0 16 7.2 16 16s-7.2 16-16 16l-160 0c-8.8 0-16-7.2-16-16s7.2-16 16-16zm0 64l160 0c8.8 0 16 7.2 16 16s-7.2 16-16 16l-160 0c-8.8 0-16-7.2-16-16s7.2-16 16-16zm0 64l160 0c8.8 0 16 7.2 16 16s-7.2 16-16 16l-160 0c-8.8 0-16-7.2-16-16s7.2-16 16-16z";t.definition={prefix:"fas",iconName:i,icon:[384,512,r,n,o]},t.faFileLines=t.definition,t.prefix="fas",t.iconName=i,t.width=384,t.height=512,t.ligatures=r,t.unicode=n,t.svgPathData=o,t.aliases=r},18231:function(e,t,i){var r=i(21103);t.DF={prefix:r.prefix,iconName:r.iconName,icon:[r.width,r.height,r.aliases,r.unicode,r.svgPathData]},t.OE=t.DF,r.prefix,r.iconName,r.width,r.height,r.aliases,r.unicode,r.svgPathData,r.aliases},29220:function(e,t,i){i.d(t,{t:function(){return R}});var r,n,o,a=i(2784),s=Object.defineProperty,l=Object.getOwnPropertySymbols,c=Object.prototype.hasOwnProperty,h=Object.prototype.propertyIsEnumerable,u=(e,t,i)=>t in e?s(e,t,{enumerable:!0,configurable:!0,writable:!0,value:i}):e[t]=i,f=(e,t)=>{for(var i in t||(t={}))c.call(t,i)&&u(e,i,t[i]);if(l)for(var i of l(t))h.call(t,i)&&u(e,i,t[i]);return e},d=(e,t)=>{var i={};for(var r in e)c.call(e,r)&&0>t.indexOf(r)&&(i[r]=e[r]);if(null!=e&&l)for(var r of l(e))0>t.indexOf(r)&&h.call(e,r)&&(i[r]=e[r]);return i};(e=>{let t=class t{constructor(e,i,r,o){if(this.version=e,this.errorCorrectionLevel=i,this.modules=[],this.isFunction=[],e<t.MIN_VERSION||e>t.MAX_VERSION)throw RangeError("Version value out of range");if(o<-1||o>7)throw RangeError("Mask value out of range");this.size=4*e+17;let a=[];for(let e=0;e<this.size;e++)a.push(!1);for(let e=0;e<this.size;e++)this.modules.push(a.slice()),this.isFunction.push(a.slice());this.drawFunctionPatterns();let s=this.addEccAndInterleave(r);if(this.drawCodewords(s),-1==o){let e=1e9;for(let t=0;t<8;t++){this.applyMask(t),this.drawFormatBits(t);let i=this.getPenaltyScore();i<e&&(o=t,e=i),this.applyMask(t)}}n(0<=o&&o<=7),this.mask=o,this.applyMask(o),this.drawFormatBits(o),this.isFunction=[]}static encodeText(i,r){let n=e.QrSegment.makeSegments(i);return t.encodeSegments(n,r)}static encodeBinary(i,r){let n=e.QrSegment.makeBytes(i);return t.encodeSegments([n],r)}static encodeSegments(e,r,o=1,s=40,l=-1,c=!0){let h,u;if(!(t.MIN_VERSION<=o&&o<=s&&s<=t.MAX_VERSION)||l<-1||l>7)throw RangeError("Invalid value");for(h=o;;h++){let i=8*t.getNumDataCodewords(h,r),n=a.getTotalBits(e,h);if(n<=i){u=n;break}if(h>=s)throw RangeError("Data too long")}for(let e of[t.Ecc.MEDIUM,t.Ecc.QUARTILE,t.Ecc.HIGH])c&&u<=8*t.getNumDataCodewords(h,e)&&(r=e);let f=[];for(let t of e)for(let e of(i(t.mode.modeBits,4,f),i(t.numChars,t.mode.numCharCountBits(h),f),t.getData()))f.push(e);n(f.length==u);let d=8*t.getNumDataCodewords(h,r);n(f.length<=d),i(0,Math.min(4,d-f.length),f),i(0,(8-f.length%8)%8,f),n(f.length%8==0);for(let e=236;f.length<d;e^=253)i(e,8,f);let m=[];for(;8*m.length<f.length;)m.push(0);return f.forEach((e,t)=>m[t>>>3]|=e<<7-(7&t)),new t(h,r,m,l)}getModule(e,t){return 0<=e&&e<this.size&&0<=t&&t<this.size&&this.modules[t][e]}getModules(){return this.modules}drawFunctionPatterns(){for(let e=0;e<this.size;e++)this.setFunctionModule(6,e,e%2==0),this.setFunctionModule(e,6,e%2==0);this.drawFinderPattern(3,3),this.drawFinderPattern(this.size-4,3),this.drawFinderPattern(3,this.size-4);let e=this.getAlignmentPatternPositions(),t=e.length;for(let i=0;i<t;i++)for(let r=0;r<t;r++)0==i&&0==r||0==i&&r==t-1||i==t-1&&0==r||this.drawAlignmentPattern(e[i],e[r]);this.drawFormatBits(0),this.drawVersion()}drawFormatBits(e){let t=this.errorCorrectionLevel.formatBits<<3|e,i=t;for(let e=0;e<10;e++)i=i<<1^(i>>>9)*1335;let o=(t<<10|i)^21522;n(o>>>15==0);for(let e=0;e<=5;e++)this.setFunctionModule(8,e,r(o,e));this.setFunctionModule(8,7,r(o,6)),this.setFunctionModule(8,8,r(o,7)),this.setFunctionModule(7,8,r(o,8));for(let e=9;e<15;e++)this.setFunctionModule(14-e,8,r(o,e));for(let e=0;e<8;e++)this.setFunctionModule(this.size-1-e,8,r(o,e));for(let e=8;e<15;e++)this.setFunctionModule(8,this.size-15+e,r(o,e));this.setFunctionModule(8,this.size-8,!0)}drawVersion(){if(this.version<7)return;let e=this.version;for(let t=0;t<12;t++)e=e<<1^(e>>>11)*7973;let t=this.version<<12|e;n(t>>>18==0);for(let e=0;e<18;e++){let i=r(t,e),n=this.size-11+e%3,o=Math.floor(e/3);this.setFunctionModule(n,o,i),this.setFunctionModule(o,n,i)}}drawFinderPattern(e,t){for(let i=-4;i<=4;i++)for(let r=-4;r<=4;r++){let n=Math.max(Math.abs(r),Math.abs(i)),o=e+r,a=t+i;0<=o&&o<this.size&&0<=a&&a<this.size&&this.setFunctionModule(o,a,2!=n&&4!=n)}}drawAlignmentPattern(e,t){for(let i=-2;i<=2;i++)for(let r=-2;r<=2;r++)this.setFunctionModule(e+r,t+i,1!=Math.max(Math.abs(r),Math.abs(i)))}setFunctionModule(e,t,i){this.modules[t][e]=i,this.isFunction[t][e]=!0}addEccAndInterleave(e){let i=this.version,r=this.errorCorrectionLevel;if(e.length!=t.getNumDataCodewords(i,r))throw RangeError("Invalid argument");let o=t.NUM_ERROR_CORRECTION_BLOCKS[r.ordinal][i],a=t.ECC_CODEWORDS_PER_BLOCK[r.ordinal][i],s=Math.floor(t.getNumRawDataModules(i)/8),l=o-s%o,c=Math.floor(s/o),h=[],u=t.reedSolomonComputeDivisor(a);for(let i=0,r=0;i<o;i++){let n=e.slice(r,r+c-a+(i<l?0:1));r+=n.length;let o=t.reedSolomonComputeRemainder(n,u);i<l&&n.push(0),h.push(n.concat(o))}let f=[];for(let e=0;e<h[0].length;
vendor: 5,255 bytes, line 1
1e++)h.forEach((t,i)=>{(e!=c-a||i>=l)&&f.push(t[e])});return n(f.length==s),f}drawCodewords(e){if(e.length!=Math.floor(t.getNumRawDataModules(this.version)/8))throw RangeError("Invalid argument");let i=0;for(let t=this.size-1;t>=1;t-=2){6==t&&(t=5);for(let n=0;n<this.size;n++)for(let o=0;o<2;o++){let a=t-o,s=(t+1&2)==0?this.size-1-n:n;!this.isFunction[s][a]&&i<8*e.length&&(this.modules[s][a]=r(e[i>>>3],7-(7&i)),i++)}}n(i==8*e.length)}applyMask(e){if(e<0||e>7)throw RangeError("Mask value out of range");for(let t=0;t<this.size;t++)for(let i=0;i<this.size;i++){let r;switch(e){case 0:r=(i+t)%2==0;break;case 1:r=t%2==0;break;case 2:r=i%3==0;break;case 3:r=(i+t)%3==0;break;case 4:r=(Math.floor(i/3)+Math.floor(t/2))%2==0;break;case 5:r=i*t%2+i*t%3==0;break;case 6:r=(i*t%2+i*t%3)%2==0;break;case 7:r=((i+t)%2+i*t%3)%2==0;break;default:throw Error("Unreachable")}!this.isFunction[t][i]&&r&&(this.modules[t][i]=!this.modules[t][i])}}getPenaltyScore(){let e=0;for(let i=0;i<this.size;i++){let r=!1,n=0,o=[0,0,0,0,0,0,0];for(let a=0;a<this.size;a++)this.modules[i][a]==r?5==++n?e+=t.PENALTY_N1:n>5&&e++:(this.finderPenaltyAddHistory(n,o),r||(e+=this.finderPenaltyCountPatterns(o)*t.PENALTY_N3),r=this.modules[i][a],n=1);e+=this.finderPenaltyTerminateAndCount(r,n,o)*t.PENALTY_N3}for(let i=0;i<this.size;i++){let r=!1,n=0,o=[0,0,0,0,0,0,0];for(let a=0;a<this.size;a++)this.modules[a][i]==r?5==++n?e+=t.PENALTY_N1:n>5&&e++:(this.finderPenaltyAddHistory(n,o),r||(e+=this.finderPenaltyCountPatterns(o)*t.PENALTY_N3),r=this.modules[a][i],n=1);e+=this.finderPenaltyTerminateAndCount(r,n,o)*t.PENALTY_N3}for(let i=0;i<this.size-1;i++)for(let r=0;r<this.size-1;r++){let n=this.modules[i][r];n==this.modules[i][r+1]&&n==this.modules[i+1][r]&&n==this.modules[i+1][r+1]&&(e+=t.PENALTY_N2)}let i=0;for(let e of this.modules)i=e.reduce((e,t)=>e+(t?1:0),i);let r=this.size*this.size,o=Math.ceil(Math.abs(20*i-10*r)/r)-1;return n(0<=o&&o<=9),n(0<=(e+=o*t.PENALTY_N4)&&e<=2568888),e}getAlignmentPatternPositions(){if(1==this.version)return[];{let e=Math.floor(this.version/7)+2,t=32==this.version?26:2*Math.ceil((4*this.version+4)/(2*e-2)),i=[6];for(let r=this.size-7;i.length<e;r-=t)i.splice(1,0,r);return i}}static getNumRawDataModules(e){if(e<t.MIN_VERSION||e>t.MAX_VERSION)throw RangeError("Version number out of range");let i=(16*e+128)*e+64;if(e>=2){let t=Math.floor(e/7)+2;i-=(25*t-10)*t-55,e>=7&&(i-=36)}return n(208<=i&&i<=29648),i}static getNumDataCodewords(e,i){return Math.floor(t.getNumRawDataModules(e)/8)-t.ECC_CODEWORDS_PER_BLOCK[i.ordinal][e]*t.NUM_ERROR_CORRECTION_BLOCKS[i.ordinal][e]}static reedSolomonComputeDivisor(e){if(e<1||e>255)throw RangeError("Degree out of range");let i=[];for(let t=0;t<e-1;t++)i.push(0);i.push(1);let r=1;for(let n=0;n<e;n++){for(let e=0;e<i.length;e++)i[e]=t.reedSolomonMultiply(i[e],r),e+1<i.length&&(i[e]^=i[e+1]);r=t.reedSolomonMultiply(r,2)}return i}static reedSolomonComputeRemainder(e,i){let r=i.map(e=>0);for(let n of e){let e=n^r.shift();r.push(0),i.forEach((i,n)=>r[n]^=t.reedSolomonMultiply(i,e))}return r}static reedSolomonMultiply(e,t){if(e>>>8!=0||t>>>8!=0)throw RangeError("Byte out of range");let i=0;for(let r=7;r>=0;r--)i=i<<1^(i>>>7)*285^(t>>>r&1)*e;return n(i>>>8==0),i}finderPenaltyCountPatterns(e){let t=e[1];n(t<=3*this.size);let i=t>0&&e[2]==t&&e[3]==3*t&&e[4]==t&&e[5]==t;return(i&&e[0]>=4*t&&e[6]>=t?1:0)+(i&&e[6]>=4*t&&e[0]>=t?1:0)}finderPenaltyTerminateAndCount(e,t,i){return e&&(this.finderPenaltyAddHistory(t,i),t=0),t+=this.size,this.finderPenaltyAddHistory(t,i),this.finderPenaltyCountPatterns(i)}finderPenaltyAddHistory(e,t){0==t[0]&&(e+=this.size),t.pop(),t.unshift(e)}};function i(e,t,i){if(t<0||t>31||e>>>t!=0)throw RangeError("Value out of range");for(let r=t-1;r>=0;r--)i.push(e>>>r&1)}function r(e,t){return(e>>>t&1)!=0}function n(e){if(!e)throw Error("Assertion error")}t.MIN_VERSION=1,t.MAX_VERSION=40,t.PENALTY_N1=3,t.PENALTY_N2=3,t.PENALTY_N3=40,t.PENALTY_N4=10,t.ECC_CODEWORDS_PER_BLOCK=[[-1,7,10,15,20,26,18,20,24,30,18,20,24,26,30,22,24,28,30,28,28,28,28,30,30,26,28,30,30,30,30,30,30,30,30,30,30,30,30,30,30],[-1,10,16,26,18,24,16,18,22,22,26,30,22,22,24,24,28,28,26,26,26,26,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28],[-1,13,22,18,26,18,24,18,22,20,24,28,26,24,20,30,24,28,28,26,30,28,30,30,30,30,28,30,30,30,30,30,30,30,30,30,30,30,30,30,30],[-1,17,28,22,16,22,28,26,26,24,28,24,28,22,24,24,30,28,28,26,28,30,24,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30]],t.NUM_ERROR_CORRECTION_BLOCKS=[[-1,1,1,1,1,1,2,2,2,2,4,4,4,4,4,6,6,6,6,7,8,8,9,9,10,12,12,12,13,14,15,16,17,18,19,19,20,21,22,24,25],[-1,1,1,1,2,2,4,4,4,5,5,5,8,9,9,10,10,11,13,14,16,17,17,18,20,21,23,25,26,28,29,31,33,35,37,38,40,43,45,47,49],[-1,1,1,2,2,4,4,6,6,8,8,8,10,12,16,12,17,16,18,21,20,23,23,25,27,29,34,34,35,38,40,43,45,48,51,53,56,59,62,65,68],[-1,1,1,2,4,4,4,5,6,8,8,11,11,16,16,18,16,19,21,25,25,25,34,30,32,35,37,40,42,45,48,51,54,57,60,63,66,70,74,77,81]],e.QrCode=t;let o=class e{constructor(e,t,i){if(this.mode=e,this.numChars=t,this.bitData=i,t<0)throw RangeError("Invalid argument");this.bitData=i.slice()}static makeBytes(t){let r=[];for(let e of t)i(e,8,r);return new e(e.Mode.BYTE,t.length,r)}static makeNumeric(t){if(!e.isNumeric(t))throw RangeError("String contains 
1non-numeric characters");let r=[];for(let e=0;e<t.length;){let n=Math.min(t.length-e,3);i(parseInt(t.substring(e,e+n),10),3*n+1,r),e+=n}return new e(e.Mode.NUMERIC,t.length,r)}static makeAlphanumeric(t){let r;if(!e.isAlphanumeric(t))throw RangeError("String contains unencodable characters in alphanumeric mode");let n=[];for(r=0;r+2<=t.length;r+=2){let o=45*e.ALPHANUMERIC_CHARSET.indexOf(t.charAt(r));i(o+=e.ALPHANUMERIC_CHARSET.indexOf(t.charAt(r+1)),11,n)}return r<t.length&&i(e.ALPHANUMERIC_CHARSET.indexOf(t.charAt(r)),6,n),new e(e.Mode.ALPHANUMERIC,t.length,n)}static makeSegments(t){return""==t?[]:e.isNumeric(t)?[e.makeNumeric(t)]:e.isAlphanumeric(t)?[e.makeAlphanumeric(t)]:[e.makeBytes(e.toUtf8ByteArray(t))]}static makeEci(t){let r=[];if(t<0)throw RangeError("ECI assignment value out of range");if(t<128)i(t,8,r);else if(t<16384)i(2,2,r),i(t,14,r);else if(t<1e6)i(6,3,r),i(t,21,r);else throw RangeError("ECI assignment value out of range");return new e(e.Mode.ECI,0,r)}static isNumeric(t){return e.NUMERIC_REGEX.test(t)}static isAlphanumeric(t){return e.ALPHANUMERIC_REGEX.test(t)}getData(){return this.bitData.slice()}static getTotalBits(e,t){let i=0;for(let r of e){let e=r.mode.numCharCountBits(t);if(r.numChars>=1<<e)return 1/0;i+=4+e+r.bitData.length}return i}static toUtf8ByteArray(e){e=encodeURI(e);let t=[];for(let i=0;i<e.length;i++)"%"!=e.charAt(i)?t.push(e.charCodeAt(i)):(t.push(parseInt(e.substring(i+1,i+3),16)),i+=2);return t}};o.NUMERIC_REGEX=/^[0-9]*$/,o.ALPHANUMERIC_REGEX=/^[A-Z0-9 $%*+.\/:-]*$/,o.ALPHANUMERIC_CHARSET="0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZ $%*+-./:";let a=o;e.QrSegment=o})(o||(o={})),(e=>{let t=class{constructor(e,t){this.ordinal=e,this.formatBits=t}};t.LOW=new t(0,1),t.MEDIUM=new t(1,0),t.QUARTILE=new t(2,3),t.HIGH=new t(3,2),e.Ecc=t})((r=o||(o={})).QrCode||(r.QrCode={})),(e=>{let t=class{constructor(e,t){this.modeBits=e,this.numBitsCharCount=t}numCharCountBits(e){return this.numBitsCharCount[Math.floor((e+7)/17)]}};t.NUMERIC=new t(1,[10,12,14]),t.ALPHANUMERIC=new t(2,[9,11,13]),t.BYTE=new t(4,[8,16,16]),t.KANJI=new t(8,[8,10,12]),t.ECI=new t(7,[0,0,0]),e.Mode=t})((n=o||(o={})).QrSegment||(n.QrSegment={}));var m=o,g={L:m.QrCode.Ecc.LOW,M:m.QrCode.Ecc.MEDIUM,Q:m.QrCode.Ecc.QUARTILE,H:m.QrCode.Ecc.HIGH},E="#FFFFFF",M="#000000";function p(e,t=0){let i=[];return e.forEach(function(e,r){let n=null;e.forEach(function(o,a){if(!o&&null!==n){i.push(`M${n+t} ${r+t}h${a-n}v1H${n+t}z`),n=null;return}if(a===e.length-1){if(!o)return;null===n?i.push(`M${a+t},${r+t} h1v1H${a+t}z`):i.push(`M${n+t},${r+t} h${a+1-n}v1H${n+t}z`);return}o&&null===n&&(n=a)})}),i.join("")}function C(e,t){return e.slice().map((e,i)=>i<t.y||i>=t.y+t.h?e:e.map((e,i)=>(i<t.x||i>=t.x+t.w)&&e))}function w({value:e,level:t,minVersion:i,includeMargin:r,marginSize:n,imageSettings:o,size:s,boostLevel:l}){let c=a.useMemo(()=>{let r=(Array.isArray(e)?e:[e]).reduce((e,t)=>(e.push(...m.QrSegment.makeSegments(t)),e),[]);return m.QrCode.encodeSegments(r,g[t],i,void 0,void 0,l)},[e,t,i,l]),{cells:h,margin:u,numCells:f,calculatedImageSettings:d}=a.useMemo(()=>{let e=c.getModules(),t=null!=n?Math.max(Math.floor(n),0):r?4:0,i=e.length+2*t,a=function(e,t,i,r){if(null==r)return null;let n=e.length+2*i,o=Math.floor(.1*t),a=n/t,s=(r.width||o)*a,l=(r.height||o)*a,c=null==r.x?e.length/2-s/2:r.x*a,h=null==r.y?e.length/2-l/2:r.y*a,u=null==r.opacity?1:r.opacity,f=null;if(r.excavate){let e=Math.floor(c),t=Math.floor(h);f={x:e,y:t,w:Math.ceil(s+c-e),h:Math.ceil(l+h-t)}}return{x:c,y:h,h:l,w:s,excavation:f,opacity:u,crossOrigin:r.crossOrigin}}(e,s,t,o);return{cells:e,margin:t,numCells:i,calculatedImageSettings:a}},[c,s,o,r,n]);return{qrcode:c,margin:u,cells:h,numCells:f,calculatedImageSettings:d}}var N=function(){try{new Path2D().addPath(new Path2D)}catch(e){return!1}return!0}();a.forwardRef(function(e,t){let{value:i,size:r=128,level:n="L",bgColor:o=E,fgColor:s=M,includeMargin:l=!1,minVersion:c=1,boostLevel:h,marginSize:u,imageSettings:m}=e,g=d(e,["value","size","level","bgColor","fgColor","includeMargin","minVersion","boostLevel","marginSize","imageSettings"]),{style:R}=g,v=d(g,["style"]),y=null==m?void 0:m.src,A=a.useRef(null),P=a.useRef(null),z=a.useCallback(e=>{A.current=e,"function"==typeof t?t(e):t&&(t.current=e)},[t]),[S,_]=a.useState(!1),{margin:D,cells:F,numCells:L,calculatedImageSettings:I}=w({value:i,level:n,minVersion:c,boostLevel:h,includeMargin:l,marginSize:u,imageSettings:m,size:r});a.useEffect(()=>{if(null!=A.current){let e=A.current,t=e.getContext("2d");if(!t)return;let i=F,n=P.current,a=null!=I&&null!==n&&n.complete&&0!==n.naturalHeight&&0!==n.naturalWi
vendor: 1,769 bytes, lines 1-2
1dth;a&&null!=I.excavation&&(i=C(F,I.excavation));let l=window.devicePixelRatio||1;e.height=e.width=r*l;let c=r/L*l;t.scale(c,c),t.fillStyle=o,t.fillRect(0,0,L,L),t.fillStyle=s,N?t.fill(new Path2D(p(i,D))):F.forEach(function(e,i){e.forEach(function(e,r){e&&t.fillRect(r+D,i+D,1,1)})}),I&&(t.globalAlpha=I.opacity),a&&t.drawImage(n,I.x+D,I.y+D,I.w,I.h)}}),a.useEffect(()=>{_(!1)},[y]);let O=f({height:r,width:r},R),b=null;return null!=y&&(b=a.createElement("img",{src:y,key:y,style:{display:"none"},onLoad:()=>{_(!0)},ref:P,crossOrigin:null==I?void 0:I.crossOrigin})),a.createElement(a.Fragment,null,a.createElement("canvas",f({style:O,height:r,width:r,ref:z,role:"img"},v)),b)}).displayName="QRCodeCanvas";var R=a.forwardRef(function(e,t){let{value:i,size:r=128,level:n="L",bgColor:o=E,fgColor:s=M,includeMargin:l=!1,minVersion:c=1,boostLevel:h,title:u,marginSize:m,imageSettings:g}=e,N=d(e,["value","size","level","bgColor","fgColor","includeMargin","minVersion","boostLevel","title","marginSize","imageSettings"]),{margin:R,cells:v,numCells:y,calculatedImageSettings:A}=w({value:i,level:n,minVersion:c,boostLevel:h,includeMargin:l,marginSize:m,imageSettings:g,size:r}),P=v,z=null;null!=g&&null!=A&&(null!=A.excavation&&(P=C(v,A.excavation)),z=a.createElement("image",{href:g.src,height:A.h,width:A.w,x:A.x+R,y:A.y+R,preserveAspectRatio:"none",opacity:A.opacity,crossOrigin:A.crossOrigin}));let S=p(P,R);return a.createElement("svg",f({height:r,width:r,viewBox:`0 0 ${y} ${y}`,ref:t,role:"img"},N),!!u&&a.createElement("title",null,u),a.createElement("path",{fill:o,d:`M0,0 h${y}v${y}H0z`,shapeRendering:"crispEdges"}),a.createElement("path",{fill:s,d:S,shapeRendering:"crispEdges"}),z)});R.displayName="QRCodeSVG"}}]);
2//# sourceMappingURL=3116.a21306bd744696ec.js.map

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.