PageSourceSearch

https://www.imagineai.live/_next/static/chunks/2255.cae1ad1c8f533fd6.js

js imagineai.live collected 2026-09-28 09:01:06 UTC 13,208 bytes, 1 lines download raw bytes

vendor: 6,460 bytes, line 1
1"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[2255],{2255:(t,e,r)=>{r.r(e),r.d(e,{default:()=>m});var i=r(95155),s=r(59066),n=r(12115);class o{static encodeText(t,e){let r=u.makeSegments(t);return o.encodeSegments(r,e)}static encodeBinary(t,e){let r=u.makeBytes(t);return o.encodeSegments([r],e)}static encodeSegments(t,e,r=1,i=40,s=-1,n=!0){let l,d;if(!(o.MIN_VERSION<=r&&r<=i&&i<=o.MAX_VERSION)||s<-1||s>7)throw RangeError("Invalid value");for(l=r;;l++){let r=8*o.getNumDataCodewords(l,e),s=u.getTotalBits(t,l);if(s<=r){d=s;break}if(l>=i)throw RangeError("Data too long")}for(let t of[c.MEDIUM,c.QUARTILE,c.HIGH])n&&d<=8*o.getNumDataCodewords(l,t)&&(e=t);let f=[];for(let e of t)for(let t of(a(e.mode.modeBits,4,f),a(e.numChars,e.mode.numCharCountBits(l),f),e.getData()))f.push(t);h(f.length==d);let m=8*o.getNumDataCodewords(l,e);h(f.length<=m),a(0,Math.min(4,m-f.length),f),a(0,(8-f.length%8)%8,f),h(f.length%8==0);for(let t=236;f.length<m;t^=253)a(t,8,f);let g=[];for(;8*g.length<f.length;)g.push(0);return f.forEach((t,e)=>g[e>>>3]|=t<<7-(7&e)),new o(l,e,g,s)}modules=[];isFunction=[];constructor(t,e,r,i){if(this.version=t,this.errorCorrectionLevel=e,t<o.MIN_VERSION||t>o.MAX_VERSION)throw RangeError("Version value out of range");if(i<-1||i>7)throw RangeError("Mask value out of range");this.size=4*t+17;let s=[];for(let t=0;t<this.size;t++)s.push(!1);for(let t=0;t<this.size;t++)this.modules.push(s.slice()),this.isFunction.push(s.slice());this.drawFunctionPatterns();let n=this.addEccAndInterleave(r);if(this.drawCodewords(n),-1==i){let t=1e9;for(let e=0;e<8;e++){this.applyMask(e),this.drawFormatBits(e);let r=this.getPenaltyScore();r<t&&(i=e,t=r),this.applyMask(e)}}h(0<=i&&i<=7),this.mask=i,this.applyMask(i),this.drawFormatBits(i),this.isFunction=[]}getModule(t,e){return 0<=t&&t<this.size&&0<=e&&e<this.size&&this.modules[e][t]}getModules(){return this.modules}drawFunctionPatterns(){for(let t=0;t<this.size;t++)this.setFunctionModule(6,t,t%2==0),this.setFunctionModule(t,6,t%2==0);this.drawFinderPattern(3,3),this.drawFinderPattern(this.size-4,3),this.drawFinderPattern(3,this.size-4);let t=this.getAlignmentPatternPositions(),e=t.length;for(let r=0;r<e;r++)for(let i=0;i<e;i++)0==r&&0==i||0==r&&i==e-1||r==e-1&&0==i||this.drawAlignmentPattern(t[r],t[i]);this.drawFormatBits(0),this.drawVersion()}drawFormatBits(t){let e=this.errorCorrectionLevel.formatBits<<3|t,r=e;for(let t=0;t<10;t++)r=r<<1^(r>>>9)*1335;let i=(e<<10|r)^21522;h(i>>>15==0);for(let t=0;t<=5;t++)this.setFunctionModule(8,t,l(i,t));this.setFunctionModule(8,7,l(i,6)),this.setFunctionModule(8,8,l(i,7)),this.setFunctionModule(7,8,l(i,8));for(let t=9;t<15;t++)this.setFunctionModule(14-t,8,l(i,t));for(let t=0;t<8;t++)this.setFunctionModule(this.size-1-t,8,l(i,t));for(let t=8;t<15;t++)this.setFunctionModule(8,this.size-15+t,l(i,t));this.setFunctionModule(8,this.size-8,!0)}drawVersion(){if(this.version<7)return;let t=this.version;for(let e=0;e<12;e++)t=t<<1^(t>>>11)*7973;let e=this.version<<12|t;h(e>>>18==0);for(let t=0;t<18;t++){let r=l(e,t),i=this.size-11+t%3,s=Math.floor(t/3);this.setFunctionModule(i,s,r),this.setFunctionModule(s,i,r)}}drawFinderPattern(t,e){for(let r=-4;r<=4;r++)for(let i=-4;i<=4;i++){let s=Math.max(Math.abs(i),Math.abs(r)),n=t+i,o=e+r;0<=n&&n<this.size&&0<=o&&o<this.size&&this.setFunctionModule(n,o,2!=s&&4!=s)}}drawAlignmentPattern(t,e){for(let r=-2;r<=2;r++)for(let i=-2;i<=2;i++)this.setFunctionModule(t+i,e+r,1!=Math.max(Math.abs(i),Math.abs(r)))}setFunctionModule(t,e,r){this.modules[e][t]=r,this.isFunction[e][t]=!0}addEccAndInterleave(t){let e=this.version,r=this.errorCorrectionLevel;if(t.length!=o.getNumDataCodewords(e,r))throw RangeError("Invalid argument");let i=o.NUM_ERROR_CORRECTION_BLOCKS[r.ordinal][e],s=o.ECC_CODEWORDS_PER_BLOCK[r.ordinal][e],n=Math.floor(o.getNumRawDataModules(e)/8),a=i-n%i,l=Math.floor(n/i),u=[],c=o.reedSolomonComputeDivisor(s);for(let e=0,r=0;e<i;e++){let i=t.slice(r,r+l-s+(e<a?0:1));r+=i.length;let n=o.reedSolomonComputeRemainder(i,c);e<a&&i.push(0),u.push(i.concat(n))}let d=[];for(let t=0;t<u[0].length;t++)u.forEach((e,r)=>{(t!=l-s||r>=a)&&d.push(e[t])});return h(d.length==n),d}drawCodewords(t){if(t.length!=Math.floor(o.getNumRawDataModules(this.version)/8))throw RangeError("Invalid argument");let e=0;for(let r=this.size-1;r>=1;r-=2){6==r&&(r=5);for(let i=0;i<this.size;i++)for(let s=0;s<2;s++){let n=r-s,o=r+1&2?i:this.size-1-i;!this.isFunction[o][n]&&e<8*t.length&&(this.modules[o][n]=l(t[e>>>3],7-(7&e)),e++)}}h(e==8*t.length)}applyMask(t){if(t<0||t>7)throw RangeError("Mask value out of range");for(let e=0;e<this.size;e++)for(let r=0;r<this.size;r++){let i;switch(t){case 0:i=(r+e)%2==0;break;case 1:i=e%2==0;break;case 2:i=r%3==0;break;case 3:i=(r+e)%3==0;break;case 4:i=(Math.floor(r/3)+Math.floor(e/2))%2==0;break;case 5:i=r*e%2+r*e%3==0;break;case 6:i=(r*e%2+r*e%3)%2==0;break;case 7:i=((r+e)%2+r*e%3)%2==0;break;default:throw Error("Unreachable")}!this.isFunction[e][r]&&i&&(this.modules[e][r]=!this.modules[e][r])}}getPenaltyScore(){let t=0;for(let e=0;e<this.size;e++){let r=!1,i=0,s=[0,0,0,0,0,0,0];for(let n=0;n<this.size;n++)this.modules[e][n]==r?5==++i?t+=o.PENALTY_N1:i>5&&t++:(this.finderPenaltyAddHistory(i,s),r||(t+=this.finderPenaltyCountPatterns(s)*o.PENALTY_N3),r=this.modules[e][n],i=1);t+=this.finderPenaltyTerminateAndCount(r,i,s)*o.PENALTY_N3}for(let e=0;e<this.size;e++){let r=!1,i=0,s=[0,0,0,0,0,0,0];for(let n=0;n<this.size;n++)this.modules[n][e]==r?5==++i?t+=o.PENALTY_N1:i>5&&t++:(this.finderPenaltyAddHistory(i,s),r||(t+=this.finderPenaltyCountPatterns(s)*o.PENALTY_N3),r=this.modules[n][e],i=1);t+=this.finderPenaltyTerminateAndCount(r,i,s)*o.PENALTY_N3}for(let e=0;e<this.size-1;e++)for(let r=0;r<this.size-1;r++){let i=this.modules[e][r];i==this.modules[e][r+1]&&i==this.modules[e+1][r]&&i==this.modules[e+1][r+1]&&(t+=o.PENALTY_N2)}let e=0;for(let t of this.modules)e=t.reduce((t,e)=>t+(e?1:0),e);let r=this.size*this.size,i=Math.ceil(Math.abs(20*e-10*r)/r)-1;return h(0<=i&&i<=9),h(0<=(t+=i*o.PENALTY_N4)&&t<=2568888),t}getAlignmentPatternPositions(){if(1==this.version)return[];let t=Math.floor(this.version/7)+2,e=32==this.version?26:2*Math.ceil((4*this.version+4)/(2*t-2)),r=[6];for(let i=this.size-7;r.length<t;i-=e)r.splice(1,0,i);return r}static getNumRawDataModules(t){if(t<o.MIN_VERSION||t>o.MAX_VERSION)throw RangeError("Version number out of range");let e=(16*t+128)*t+64;if(t>=2){let r=Math.floor(t/7)+2;e-=(25*r-10)*r-55,t>
vendor: 3,488 bytes, line 1
1=7&&(e-=36)}return h(208<=e&&e<=29648),e}static getNumDataCodewords(t,e){return Math.floor(o.getNumRawDataModules(t)/8)-o.ECC_CODEWORDS_PER_BLOCK[e.ordinal][t]*o.NUM_ERROR_CORRECTION_BLOCKS[e.ordinal][t]}static reedSolomonComputeDivisor(t){if(t<1||t>255)throw RangeError("Degree out of range");let e=[];for(let r=0;r<t-1;r++)e.push(0);e.push(1);let r=1;for(let i=0;i<t;i++){for(let t=0;t<e.length;t++)e[t]=o.reedSolomonMultiply(e[t],r),t+1<e.length&&(e[t]^=e[t+1]);r=o.reedSolomonMultiply(r,2)}return e}static reedSolomonComputeRemainder(t,e){let r=e.map(t=>0);for(let i of t){let t=i^r.shift();r.push(0),e.forEach((e,i)=>r[i]^=o.reedSolomonMultiply(e,t))}return r}static reedSolomonMultiply(t,e){if(t>>>8||e>>>8)throw RangeError("Byte out of range");let r=0;for(let i=7;i>=0;i--)r=r<<1^(r>>>7)*285^(e>>>i&1)*t;return h(r>>>8==0),r}finderPenaltyCountPatterns(t){let e=t[1];h(e<=3*this.size);let r=e>0&&t[2]==e&&t[3]==3*e&&t[4]==e&&t[5]==e;return(r&&t[0]>=4*e&&t[6]>=e?1:0)+(r&&t[6]>=4*e&&t[0]>=e?1:0)}finderPenaltyTerminateAndCount(t,e,r){return t&&(this.finderPenaltyAddHistory(e,r),e=0),e+=this.size,this.finderPenaltyAddHistory(e,r),this.finderPenaltyCountPatterns(r)}finderPenaltyAddHistory(t,e){0==e[0]&&(t+=this.size),e.pop(),e.unshift(t)}static MIN_VERSION=1;static MAX_VERSION=40;static PENALTY_N1=3;static PENALTY_N2=3;static PENALTY_N3=40;static PENALTY_N4=10;static 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]];static 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]]}function a(t,e,r){if(e<0||e>31||t>>>e)throw RangeError("Value out of range");for(let i=e-1;i>=0;i--)r.push(t>>>i&1)}function l(t,e){return(t>>>e&1)!=0}function h(t){if(!t)throw Error("Assertion error")}class u{static makeBytes(t){let e=[];for(let r of t)a(r,8,e);return new u(d.BYTE,t.length,e)}static makeNumeric(t){if(!u.isNumeric(t))throw RangeError("String contains non-numeric characters");let e=[];for(let r=0;r<t.length;){let i=Math.min(t.length-r,3);a(parseInt(t.substring(r,r+i),10),3*i+1,e),r+=i}return new u(d.NUMERIC,t.length,e)}static makeAlphanumeric(t){let e;if(!u.isAlphanumeric(t))throw RangeError("String contains unencodable characters in alphanumeric mode");let r=[];for(e=0;e+2<=t.length;e+=2){let i=45*u.ALPHANUMERIC_CHARSET.indexOf(t.charAt(e));a(i+=u.ALPHANUMERIC_CHARSET.indexOf(t.charAt(e+1)),11,r)}return e<t.length&&a(u.ALPHANUMERIC_CHARSET.indexOf(t.charAt(e)),6,r),new u(d.ALPHANUMERIC,t.length,r)}static makeSegments(t){return""==t?[]:u.isNumeric(t)?[u.makeNumeric(t)]:u.isAlphanumeric(t)?[u.makeAlphanumeric(t)]:[u.makeBytes(u.toUtf8ByteArray(t))]}static makeEci(t){let e=[];
1if(t<0)throw RangeError("ECI assignment value out of range");if(t<128)a(t,8,e);else if(t<16384)a(2,2,e),a(t,14,e);else if(t<1e6)a(6,3,e),a(t,21,e);else throw RangeError("ECI assignment value out of range");return new u(d.ECI,0,e)}static isNumeric(t){return u.NUMERIC_REGEX.test(t)}static isAlphanumeric(t){return u.ALPHANUMERIC_REGEX.test(t)}constructor(t,e,r){if(this.mode=t,this.numChars=e,this.bitData=r,e<0)throw RangeError("Invalid argument");this.bitData=r.slice()}getData(){return this.bitData.slice()}static getTotalBits(t,e){let r=0;for(let i of t){let t=i.mode.numCharCountBits(e);if(i.numChars>=1<<t)return 1/0;r+=4+t+i.bitData.length}return r}static toUtf8ByteArray(t){t=encodeURI(t);let e=[];for(let r=0;r<t.length;r++)"%"!=t.charAt(r)?e.push(t.charCodeAt(r)):(e.push(parseInt(t.substring(r+1,r+3),16)),r+=2);return e}static NUMERIC_REGEX=/^[0-9]*$/;static ALPHANUMERIC_REGEX=/^[A-Z0-9 $%*+./:-]*$/;static ALPHANUMERIC_CHARSET="0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZ $%*+-./:"}class c{static LOW=new c(0,1);static MEDIUM=new c(1,0);static QUARTILE=new c(2,3);static HIGH=new c(3,2);constructor(t,e){this.ordinal=t,this.formatBits=e}}class d{static NUMERIC=new d(1,[10,12,14]);static ALPHANUMERIC=new d(2,[9,11,13]);static BYTE=new d(4,[8,16,16]);static KANJI=new d(8,[8,10,12]);static ECI=new d(7,[0,0,0]);constructor(t,e){this.modeBits=t,this.numBitsCharCount=e}numCharCountBits(t){return this.numBitsCharCount[Math.floor((t+7)/17)]}}let f={L:c.LOW,M:c.MEDIUM,Q:c.QUARTILE,H:c.HIGH},m=(0,n.memo)(function(t){let{value:e,size:r=128,level:a="L",color:l="#000000",minVersion:h=1,title:c,logoSize:d}=t,{margin:m,cells:g,numCells:E,calculatedImageSettings:M}=function({value:t,level:e,minVersion:r,includeMargin:i,marginSize:s,logoSize:a,size:l}){let h=(0,n.useMemo)(()=>{let i=u.makeSegments(t);return o.encodeSegments(i,f[e],r)},[t,e,r]),{cells:c,margin:d,numCells:m,calculatedImageSettings:g}=(0,n.useMemo)(()=>{let t=h.getModules(),e=null!=s?Math.max(Math.floor(s),0):i?4:0,r=t.length+2*e,n=function(t,e,r,i){if(!i)return null;let s=(t.length+2*r)/e,n=i*s,o=i*s,a=t.length/2-n/2,l=t.length/2-o/2,h=Math.floor(a),u=Math.floor(l),c=Math.ceil(n+a-h),d=Math.ceil(o+l-u);return{x:a,y:l,h:o,w:n,excavation:{x:h,y:u,w:c,h:d}}}(t,l,e,a);return{cells:t,margin:e,numCells:r,calculatedImageSettings:n}},[h,l,a,i,s]);return{qrcode:h,margin:d,cells:c,numCells:m,calculatedImageSettings:g}}({value:e,level:a,minVersion:h,includeMargin:!1,marginSize:void 0,logoSize:d,size:r}),C=function(t,e=0){let r=[];return t.forEach(function(t,i){let s=null;t.forEach(function(n,o){if(!n&&null!==s){r.push(`M${s+e} ${i+e}h${o-s}v1H${s+e}z`),s=null;return}if(o===t.length-1){if(!n)return;null===s?r.push(`M${o+e},${i+e} h1v1H${o+e}z`):r.push(`M${s+e},${i+e} h${o+1-s}v1H${s+e}z`);return}n&&null===s&&(s=o)})}),r.join("")}((0,n.useMemo)(()=>{var t;return d&&M?.excavation?(t=M.excavation,g.slice().map((e,r)=>r<t.y||r>=t.y+t.h?e:e.map((e,r)=>(r<t.x||r>=t.x+t.w)&&e))):g},[M?.excavation,g,d]),m);return(0,i.jsxs)("svg",{height:r,width:r,viewBox:`0 0 ${E} ${E}`,role:"img",children:[!!c&&(0,i.jsx)("title",{children:c}),(0,i.jsx)(s.P.path,{fill:l,d:C,shapeRendering:"crispEdges",initial:{opacity:0}
1,animate:{opacity:2},exit:{opacity:-1}})]})});m.displayName="Memo(QRCodeSVG)"}}]);

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.