PageSourceSearch

https://www.copilotkit.ai/_next/static/chunks/2998.75f51b17f6fc50f0.js

js copilotkit.ai collected 2026-10-02 03:06:47 UTC 14,235 bytes, 1 lines download raw bytes

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