Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

ibp-cdn

Package Overview
Dependencies
Maintainers
1
Versions
73
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

ibp-cdn - npm Package Compare versions

Comparing version 1.0.24 to 1.0.25

2

package.json
{
"name": "ibp-cdn",
"version": "1.0.24",
"version": "1.0.25",
"description": "Style & JS optimized",

@@ -5,0 +5,0 @@ "main": "index.js",

@@ -1,2 +0,2 @@

(()=>{var r={2312:()=>{var r,f,o,e,t,n,a=[0,11,15,19,23,27,31,16,18,20,22,24,26,28,20,22,24,24,26,28,28,22,24,24,26,26,28,28,24,24,26,26,26,28,28,24,26,26,26,28,28],c=[3220,1468,2713,1235,3062,1890,2119,1549,2344,2936,1117,2583,1330,2470,1667,2249,2028,3780,481,4011,142,3098,831,3445,592,2517,1776,2234,1951,2827,1070,2660,1345,3177],i=[30660,29427,32170,30877,26159,25368,27713,26998,21522,20773,24188,23371,17913,16590,20375,19104,13663,12392,16177,14854,9396,8579,11994,11245,5769,5054,7399,6608,1890,597,3340,2107],l=[1,0,19,7,1,0,16,10,1,0,13,13,1,0,9,17,1,0,34,10,1,0,28,16,1,0,22,22,1,0,16,28,1,0,55,15,1,0,44,26,2,0,17,18,2,0,13,22,1,0,80,20,2,0,32,18,2,0,24,26,4,0,9,16,1,0,108,26,2,0,43,24,2,2,15,18,2,2,11,22,2,0,68,18,4,0,27,16,4,0,19,24,4,0,15,28,2,0,78,20,4,0,31,18,2,4,14,18,4,1,13,26,2,0,97,24,2,2,38,22,4,2,18,22,4,2,14,26,2,0,116,30,3,2,36,22,4,4,16,20,4,4,12,24,2,2,68,18,4,1,43,26,6,2,19,24,6,2,15,28,4,0,81,20,1,4,50,30,4,4,22,28,3,8,12,24,2,2,92,24,6,2,36,22,4,6,20,26,7,4,14,28,4,0,107,26,8,1,37,22,8,4,20,24,12,4,11,22,3,1,115,30,4,5,40,24,11,5,16,20,11,5,12,24,5,1,87,22,5,5,41,24,5,7,24,30,11,7,12,24,5,1,98,24,7,3,45,28,15,2,19,24,3,13,15,30,1,5,107,28,10,1,46,28,1,15,22,28,2,17,14,28,5,1,120,30,9,4,43,26,17,1,22,28,2,19,14,28,3,4,113,28,3,11,44,26,17,4,21,26,9,16,13,26,3,5,107,28,3,13,41,26,15,5,24,30,15,10,15,28,4,4,116,28,17,0,42,26,17,6,22,28,19,6,16,30,2,7,111,28,17,0,46,28,7,16,24,30,34,0,13,24,4,5,121,30,4,14,47,28,11,14,24,30,16,14,15,30,6,4,117,30,6,14,45,28,11,16,24,30,30,2,16,30,8,4,106,26,8,13,47,28,7,22,24,30,22,13,15,30,10,2,114,28,19,4,46,28,28,6,22,28,33,4,16,30,8,4,122,30,22,3,45,28,8,26,23,30,12,28,15,30,3,10,117,30,3,23,45,28,4,31,24,30,11,31,15,30,7,7,116,30,21,7,45,28,1,37,23,30,19,26,15,30,5,10,115,30,19,10,47,28,15,25,24,30,23,25,15,30,13,3,115,30,2,29,46,28,42,1,24,30,23,28,15,30,17,0,115,30,10,23,46,28,10,35,24,30,19,35,15,30,17,1,115,30,14,21,46,28,29,19,24,30,11,46,15,30,13,6,115,30,14,23,46,28,44,7,24,30,59,1,16,30,12,7,121,30,12,26,47,28,39,14,24,30,22,41,15,30,6,14,121,30,6,34,47,28,46,10,24,30,2,64,15,30,17,4,122,30,29,14,46,28,49,10,24,30,24,46,15,30,4,18,122,30,13,32,46,28,48,14,24,30,42,32,15,30,20,4,117,30,40,7,47,28,43,22,24,30,10,67,15,30,19,6,118,30,18,31,47,28,34,34,24,30,20,61,15,30],u=[255,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],s=[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,0],v=[],x=[],p=[],h=[],b=[],k=1;function g(r,f){var o;r>f&&(o=r,r=f,f=o),o=f,o*=f,o+=f,o>>=1,h[o+=r]=1}function y(r,o){var e;for(p[r+f*o]=1,e=-2;e<2;e++)p[r+e+f*(o-2)]=1,p[r-2+f*(o+e+1)]=1,p[r+2+f*(o+e)]=1,p[r+e+1+f*(o+2)]=1;for(e=0;e<2;e++)g(r-1,o+e),g(r+1,o-e),g(r-e,o-1),g(r+e,o+1)}function _(r){for(;r>=255;)r=((r-=255)>>8)+(255&r);return r}var m=[];function R(r,f,o,e){var t,n,a;for(t=0;t<e;t++)v[o+t]=0;for(t=0;t<f;t++){if(255!=(a=u[v[r+t]^v[o]]))for(n=1;n<e;n++)v[o+n-1]=v[o+n]^s[_(a+m[e-n])];else for(n=o;n<o+e;n++)v[n]=v[n+1];v[o+e-1]=255==a?0:s[_(a+m[0])]}}function w(r,f){var o;return r>f&&(o=r,r=f,f=o),o=f,o+=f*f,o>>=1,h[o+=r]}function I(r){var o,e,t,n;switch(r){case 0:for(e=0;e<f;e++)for(o=0;o<f;o++)o+e&1||w(o,e)||(p[o+e*f]^=1);break;case 1:for(e=0;e<f;e++)for(o=0;o<f;o++)1&e||w(o,e)||(p[o+e*f]^=1);break;case 2:for(e=0;e<f;e++)for(t=0,o=0;o<f;o++,t++)3==t&&(t=0),t||w(o,e)||(p[o+e*f]^=1);break;case 3:for(n=0,e=0;e<f;e++,n++)for(3==n&&(n=0),t=n,o=0;o<f;o++,t++)3==t&&(t=0),t||w(o,e)||(p[o+e*f]^=1);break;case 4:for(e=0;e<f;e++)for(t=0,n=e>>1&1,o=0;o<f;o++,t++)3==t&&(t=0,n=!n),n||w(o,e)||(p[o+e*f]^=1);break;case 5:for(n=0,e=0;e<f;e++,n++)for(3==n&&(n=0),t=0,o=0;o<f;o++,t++)3==t&&(t=0),(o&e&1)+!(!t|!n)||w(o,e)||(p[o+e*f]^=1);break;case 6:for(n=0,e=0;e<f;e++,n++)for(3==n&&(n=0),t=0,o=0;o<f;o++,t++)3==t&&(t=0),(o&e&1)+(t&&t==n)&1||w(o,e)||(p[o+e*f]^=1);break;case 7:for(n=0,e=0;e<f;e++,n++)for(3==n&&(n=0),t=0,o=0;o<f;o++,t++)3==t&&(t=0),(t&&t==n)+(o+e&1)&1||w(o,e)||(p[o+e*f]^=1)}}function M(r){var f,o=0;for(f=0;f<=r;f++)b[f]>=5&&(o+=3+b[f]-5);for(f=3;f<r-1;f+=2)b[f-2]==b[f+2]&&b[f+2]==b[f-1]&&b[f-1]==b[f+1]&&3*b[f-1]==b[f]&&(0==b[f-3]||f+3>r||3*b[f-3]>=4*b[f]||3*b[f+3]>=4*b[f])&&(o+=40);return o}function B(){var r,o,e,t,n,a=0,c=0;for(o=0;o<f-1;o++)for(r=0;r<f-1;r++)(p[r+f*o]&&p[r+1+f*o]&&p[r+f*(o+1)]&&p[r+1+f*(o+1)]||!(p[r+f*o]||p[r+1+f*o]||p[r+f*(o+1)]||p[r+1+f*(o+1)]))&&(a+=3);for(o=0;o<f;o++){for(b[0]=0,e=t=r=0;r<f;r++)(n=p[r+f*o])==t?b[e]++:b[++e]=1,c+=(t=n)?1:-1;a+=M(e)}c<0&&(c=-c);var i=c;for(count=0,i+=i<<2,i<<=1;i>f*f;)i-=f*f,count++;for(a+=10*count,r=0;r<f;r++){for(b[0]=0,e=t=o=0;o<f;o++)(n=p[r+f*o])==t?b[e]++:b[++e]=1,t=n;a+=M(e)}return a}var C,E=256,S=256;!function(b,M){var q,j;if(function(r){var f=document.getElementById(r);null!=f&&((C=f.getContext("2d")).canvas.width=E,C.canvas.height=S,C.fillStyle="#ffffff",C.fillRect(0,0,E,S))}(b),d=document,k=1,d.getElementById(M))for(qf=function(d){var b,M,C,E,S,q,j,A;E=d.length,r=0;do{if(r++,C=4*(k-1)+16*(r-1),o=l[C++],e=l[C++],t=l[C++],n=l[C],E<=(C=t*(o+e)+e-3+(r<=9)))break}while(r<40);for(f=17+4*r,S=t+(t+n)*(o+e)+e,E=0;E<S;E++)x[E]=0;for(v=d.slice(0),E=0;E<f*f;E++)p[E]=0;for(E=0;E<(f*(f+1)+1)/2;E++)h[E]=0;for(E=0;E<3;E++){for(C=0,M=0,1==E&&(C=f-7),2==E&&(M=f-7),p[M+3+f*(C+3)]=1,b=0;b<6;b++)p[M+b+f*C]=1,p[M+f*(C+b+1)]=1,p[M+6+f*(C+b)]=1,p[M+b+1+f*(C+6)]=1;for(b=1;b<5;b++)g(M+b,C+1),g(M+1,C+b+1),g(M+5,C+b),g(M+b+1,C+5);for(b=2;b<4;b++)p[M+b+f*(C+2)]=1,p[M+2+f*(C+b+1)]=1,p[M+4+f*(C+b)]=1,p[M+b+1+f*(C+4)]=1}if(r>1)for(E=a[r],M=f-7;;){for(b=f-7;b>E-3&&(y(b,M),!(b<E));)b-=E;if(M<=E+9)break;y(6,M-=E),y(M,6)}for(p[8+f*(f-8)]=1,M=0;M<7;M++)g(7,M),g(f-8,M),g(7,M+f-7);for(b=0;b<8;b++)g(b,7),g(b+f-8,7),g(b,f-8);for(b=0;b<9;b++)g(b,8);for(b=0;b<8;b++)g(b+f-8,8),g(8,b);for(M=0;M<7;M++)g(8,M+f-7);for(b=0;b<f-14;b++)1&b?(g(8+b,6),g(6,8+b)):(p[8+b+6*f]=1,p[6+f*(8+b)]=1);if(r>6)for(E=c[r-7],C=17,b=0;b<6;b++)for(M=0;M<3;M++,C--)1&(C>11?r>>C-12:E>>C)?(p[5-b+f*(2-M+f-11)]=1,p[2-M+f-11+f*(5-b)]=1):(g(5-b,2-M+f-11),g(2-M+f-11,5-b));for(M=0;M<f;M++)for(b=0;b<=M;b++)p[b+f*M]&&g(b,M);for(S=v.length,q=0;q<S;q++)x[q]=v.charCodeAt(q);if(v=x.slice(0),S>=(b=t*(o+e)+e)-2&&(S=b-2,r>9&&S--),q=S,r>9){for(v[q+2]=0,v[q+3]=0;q--;)E=v[q],v[q+3]|=255&E<<4,v[q+2]=E>>4;v[2]|=255&S<<4,v[1]=S>>4,v[0]=64|S>>12}else{for(v[q+1]=0,v[q+2]=0;q--;)E=v[q],v[q+2]|=255&E<<4,v[q+1]=E>>4;v[1]|=255&S<<4,v[0]=64|S>>4}for(q=S+3-(r<10);q<b;)v[q++]=236,v[q++]=17;for(m[0]=1,q=0;q<n;q++){for(m[q+1]=1,j=q;j>0;j--)m[j]=m[j]?m[j-1]^s[_(u[m[j]]+q)]:m[j-1];m[0]=s[_(u[m[0]]+q)]}for(q=0;q<=n;q++)m[q]=u[m[q]];for(C=b,M=0,q=0;q<o;q++)R(M,t,C,n),M+=t,C+=n;for(q=0;q<e;q++)R(M,t+1,C,n),M+=t+1,C+=n;for(M=0,q=0;q<t;q++){for(j=0;j<o;j++)x[M++]=v[q+j*t];for(j=0;j<e;j++)x[M++]=v[o*t+q+j*(t+1)]}for(j=0;j<e;j++)x[M++]=v[o*t+q+j*(t+1)];for(q=0;q<n;q++)for(j=0;j<o+e;j++)x[M++]=v[b+q+j*n];for(v=x,b=M=f-1,C=S=1,A=(t+n)*(o+e)+e,q=0;q<A;q++)for(E=v[q],j=0;j<8;j++,E<<=1){128&E&&(p[b+f*M]=1);do{S?b--:(b++,C?0!=M?M--:(C=!C,6==(b-=2)&&(b--,M=9)):M!=f-1?M++:(C=!C,6==(b-=2)&&(b--,M-=8))),S=!S}while(w(b,M))}for(v=p.slice(0),E=0,M=3e4,C=0;C<8&&(I(C),(b=B())<M&&(M=b,E=C),7!=E);C++)p=v.slice(0);for(E!=C&&I(E),M=i[E+(k-1<<3)],C=0;C<8;C++,M>>=1)1&M&&(p[f-1-C+8*f]=1,C<6?p[8+f*C]=1:p[8+f*(C+1)]=1);for(C=0;C<7;C++,M>>=1)1&M&&(p[8+f*(f-7+C)]=1,C?p[6-C+8*f]=1:p[7+8*f]=1);return p}(d.getElementById(M).value),C.lineWidth=1,px=E,px/=f+10,px=Math.round(px-.5),C.clearRect(0,0,E,S),C.fillStyle="#ffffff",C.fillRect(0,0,px*(f+8),px*(f+8)),C.fillStyle="#000000",q=0;q<f;q++)for(j=0;j<f;j++)qf[j*f+q]&&C.fillRect(px*(4+q),px*(4+j),px,px)}("canvasId","txtQRCode")}},f={};function o(e){var t=f[e];if(void 0!==t)return t.exports;var n=f[e]={exports:{}};return r[e](n,n.exports,o),n.exports}var e={};(()=>{"use strict";e.__esModule=!0,o(2312)})();var t=exports;for(var n in e)t[n]=e[n];e.__esModule&&Object.defineProperty(t,"__esModule",{value:!0})})();
(()=>{var r={2312:()=>{var r,f,o,e,t,a,n=[0,11,15,19,23,27,31,16,18,20,22,24,26,28,20,22,24,24,26,28,28,22,24,24,26,26,28,28,24,24,26,26,26,28,28,24,26,26,26,28,28],i=[3220,1468,2713,1235,3062,1890,2119,1549,2344,2936,1117,2583,1330,2470,1667,2249,2028,3780,481,4011,142,3098,831,3445,592,2517,1776,2234,1951,2827,1070,2660,1345,3177],c=[30660,29427,32170,30877,26159,25368,27713,26998,21522,20773,24188,23371,17913,16590,20375,19104,13663,12392,16177,14854,9396,8579,11994,11245,5769,5054,7399,6608,1890,597,3340,2107],l=[1,0,19,7,1,0,16,10,1,0,13,13,1,0,9,17,1,0,34,10,1,0,28,16,1,0,22,22,1,0,16,28,1,0,55,15,1,0,44,26,2,0,17,18,2,0,13,22,1,0,80,20,2,0,32,18,2,0,24,26,4,0,9,16,1,0,108,26,2,0,43,24,2,2,15,18,2,2,11,22,2,0,68,18,4,0,27,16,4,0,19,24,4,0,15,28,2,0,78,20,4,0,31,18,2,4,14,18,4,1,13,26,2,0,97,24,2,2,38,22,4,2,18,22,4,2,14,26,2,0,116,30,3,2,36,22,4,4,16,20,4,4,12,24,2,2,68,18,4,1,43,26,6,2,19,24,6,2,15,28,4,0,81,20,1,4,50,30,4,4,22,28,3,8,12,24,2,2,92,24,6,2,36,22,4,6,20,26,7,4,14,28,4,0,107,26,8,1,37,22,8,4,20,24,12,4,11,22,3,1,115,30,4,5,40,24,11,5,16,20,11,5,12,24,5,1,87,22,5,5,41,24,5,7,24,30,11,7,12,24,5,1,98,24,7,3,45,28,15,2,19,24,3,13,15,30,1,5,107,28,10,1,46,28,1,15,22,28,2,17,14,28,5,1,120,30,9,4,43,26,17,1,22,28,2,19,14,28,3,4,113,28,3,11,44,26,17,4,21,26,9,16,13,26,3,5,107,28,3,13,41,26,15,5,24,30,15,10,15,28,4,4,116,28,17,0,42,26,17,6,22,28,19,6,16,30,2,7,111,28,17,0,46,28,7,16,24,30,34,0,13,24,4,5,121,30,4,14,47,28,11,14,24,30,16,14,15,30,6,4,117,30,6,14,45,28,11,16,24,30,30,2,16,30,8,4,106,26,8,13,47,28,7,22,24,30,22,13,15,30,10,2,114,28,19,4,46,28,28,6,22,28,33,4,16,30,8,4,122,30,22,3,45,28,8,26,23,30,12,28,15,30,3,10,117,30,3,23,45,28,4,31,24,30,11,31,15,30,7,7,116,30,21,7,45,28,1,37,23,30,19,26,15,30,5,10,115,30,19,10,47,28,15,25,24,30,23,25,15,30,13,3,115,30,2,29,46,28,42,1,24,30,23,28,15,30,17,0,115,30,10,23,46,28,10,35,24,30,19,35,15,30,17,1,115,30,14,21,46,28,29,19,24,30,11,46,15,30,13,6,115,30,14,23,46,28,44,7,24,30,59,1,16,30,12,7,121,30,12,26,47,28,39,14,24,30,22,41,15,30,6,14,121,30,6,34,47,28,46,10,24,30,2,64,15,30,17,4,122,30,29,14,46,28,49,10,24,30,24,46,15,30,4,18,122,30,13,32,46,28,48,14,24,30,42,32,15,30,20,4,117,30,40,7,47,28,43,22,24,30,10,67,15,30,19,6,118,30,18,31,47,28,34,34,24,30,20,61,15,30],u=[255,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],s=[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,0],v=[],d=[],h=[],b=[],k=[],g=1;function x(r,f){var o;r>f&&(o=r,r=f,f=o),o=f,o*=f,o+=f,o>>=1,b[o+=r]=1}function y(r,o){var e;for(h[r+f*o]=1,e=-2;e<2;e++)h[r+e+f*(o-2)]=1,h[r-2+f*(o+e+1)]=1,h[r+2+f*(o+e)]=1,h[r+e+1+f*(o+2)]=1;for(e=0;e<2;e++)x(r-1,o+e),x(r+1,o-e),x(r-e,o-1),x(r+e,o+1)}function p(r){for(;r>=255;)r=((r-=255)>>8)+(255&r);return r}var _=[];function m(r,f,o,e){var t,a,n;for(t=0;t<e;t++)v[o+t]=0;for(t=0;t<f;t++){if(255!=(n=u[v[r+t]^v[o]]))for(a=1;a<e;a++)v[o+a-1]=v[o+a]^s[p(n+_[e-a])];else for(a=o;a<o+e;a++)v[a]=v[a+1];v[o+e-1]=255==n?0:s[p(n+_[0])]}}function R(r,f){var o;return r>f&&(o=r,r=f,f=o),o=f,o+=f*f,o>>=1,b[o+=r]}function w(r){var o,e,t,a;switch(r){case 0:for(e=0;e<f;e++)for(o=0;o<f;o++)o+e&1||R(o,e)||(h[o+e*f]^=1);break;case 1:for(e=0;e<f;e++)for(o=0;o<f;o++)1&e||R(o,e)||(h[o+e*f]^=1);break;case 2:for(e=0;e<f;e++)for(t=0,o=0;o<f;o++,t++)3==t&&(t=0),t||R(o,e)||(h[o+e*f]^=1);break;case 3:for(a=0,e=0;e<f;e++,a++)for(3==a&&(a=0),t=a,o=0;o<f;o++,t++)3==t&&(t=0),t||R(o,e)||(h[o+e*f]^=1);break;case 4:for(e=0;e<f;e++)for(t=0,a=e>>1&1,o=0;o<f;o++,t++)3==t&&(t=0,a=!a),a||R(o,e)||(h[o+e*f]^=1);break;case 5:for(a=0,e=0;e<f;e++,a++)for(3==a&&(a=0),t=0,o=0;o<f;o++,t++)3==t&&(t=0),(o&e&1)+!(!t|!a)||R(o,e)||(h[o+e*f]^=1);break;case 6:for(a=0,e=0;e<f;e++,a++)for(3==a&&(a=0),t=0,o=0;o<f;o++,t++)3==t&&(t=0),(o&e&1)+(t&&t==a)&1||R(o,e)||(h[o+e*f]^=1);break;case 7:for(a=0,e=0;e<f;e++,a++)for(3==a&&(a=0),t=0,o=0;o<f;o++,t++)3==t&&(t=0),(t&&t==a)+(o+e&1)&1||R(o,e)||(h[o+e*f]^=1)}}function I(r){var f,o=0;for(f=0;f<=r;f++)k[f]>=5&&(o+=3+k[f]-5);for(f=3;f<r-1;f+=2)k[f-2]==k[f+2]&&k[f+2]==k[f-1]&&k[f-1]==k[f+1]&&3*k[f-1]==k[f]&&(0==k[f-3]||f+3>r||3*k[f-3]>=4*k[f]||3*k[f+3]>=4*k[f])&&(o+=40);return o}function M(){var r,o,e,t,a,n=0,i=0;for(o=0;o<f-1;o++)for(r=0;r<f-1;r++)(h[r+f*o]&&h[r+1+f*o]&&h[r+f*(o+1)]&&h[r+1+f*(o+1)]||!(h[r+f*o]||h[r+1+f*o]||h[r+f*(o+1)]||h[r+1+f*(o+1)]))&&(n+=3);for(o=0;o<f;o++){for(k[0]=0,e=t=r=0;r<f;r++)(a=h[r+f*o])==t?k[e]++:k[++e]=1,i+=(t=a)?1:-1;n+=I(e)}i<0&&(i=-i);var c=i,l=0;for(c+=c<<2,c<<=1;c>f*f;)c-=f*f,l++;for(n+=10*l,r=0;r<f;r++){for(k[0]=0,e=t=o=0;o<f;o++)(a=h[r+f*o])==t?k[e]++:k[++e]=1,t=a;n+=I(e)}return n}var B,C=256,E=256;!function(k,I){!function(r){var f=document.getElementById(r);null!=f&&((B=f.getContext("2d")).canvas.width=C,B.canvas.height=E,B.fillStyle="#ffffff",B.fillRect(0,0,C,E))}(k);var S=document;if(g=1,S.getElementById(I)){var j,A,O=function(k){var I,B,C,E,S,j,A,O;E=k.length,r=0;do{if(r++,C=4*(g-1)+16*(r-1),o=l[C++],e=l[C++],t=l[C++],a=l[C],E<=(C=t*(o+e)+e-3+(r<=9)))break}while(r<40);for(f=17+4*r,S=t+(t+a)*(o+e)+e,E=0;E<S;E++)d[E]=0;for(v=k.slice(0),E=0;E<f*f;E++)h[E]=0;for(E=0;E<(f*(f+1)+1)/2;E++)b[E]=0;for(E=0;E<3;E++){for(C=0,B=0,1==E&&(C=f-7),2==E&&(B=f-7),h[B+3+f*(C+3)]=1,I=0;I<6;I++)h[B+I+f*C]=1,h[B+f*(C+I+1)]=1,h[B+6+f*(C+I)]=1,h[B+I+1+f*(C+6)]=1;for(I=1;I<5;I++)x(B+I,C+1),x(B+1,C+I+1),x(B+5,C+I),x(B+I+1,C+5);for(I=2;I<4;I++)h[B+I+f*(C+2)]=1,h[B+2+f*(C+I+1)]=1,h[B+4+f*(C+I)]=1,h[B+I+1+f*(C+4)]=1}if(r>1)for(E=n[r],B=f-7;;){for(I=f-7;I>E-3&&(y(I,B),!(I<E));)I-=E;if(B<=E+9)break;y(6,B-=E),y(B,6)}for(h[8+f*(f-8)]=1,B=0;B<7;B++)x(7,B),x(f-8,B),x(7,B+f-7);for(I=0;I<8;I++)x(I,7),x(I+f-8,7),x(I,f-8);for(I=0;I<9;I++)x(I,8);for(I=0;I<8;I++)x(I+f-8,8),x(8,I);for(B=0;B<7;B++)x(8,B+f-7);for(I=0;I<f-14;I++)1&I?(x(8+I,6),x(6,8+I)):(h[8+I+6*f]=1,h[6+f*(8+I)]=1);if(r>6)for(E=i[r-7],C=17,I=0;I<6;I++)for(B=0;B<3;B++,C--)1&(C>11?r>>C-12:E>>C)?(h[5-I+f*(2-B+f-11)]=1,h[2-B+f-11+f*(5-I)]=1):(x(5-I,2-B+f-11),x(2-B+f-11,5-I));for(B=0;B<f;B++)for(I=0;I<=B;I++)h[I+f*B]&&x(I,B);for(S=v.length,j=0;j<S;j++)d[j]=v.charCodeAt(j);if(v=d.slice(0),S>=(I=t*(o+e)+e)-2&&(S=I-2,r>9&&S--),j=S,r>9){for(v[j+2]=0,v[j+3]=0;j--;)E=v[j],v[j+3]|=255&E<<4,v[j+2]=E>>4;v[2]|=255&S<<4,v[1]=S>>4,v[0]=64|S>>12}else{for(v[j+1]=0,v[j+2]=0;j--;)E=v[j],v[j+2]|=255&E<<4,v[j+1]=E>>4;v[1]|=255&S<<4,v[0]=64|S>>4}for(j=S+3-(r<10);j<I;)v[j++]=236,v[j++]=17;for(_[0]=1,j=0;j<a;j++){for(_[j+1]=1,A=j;A>0;A--)_[A]=_[A]?_[A-1]^s[p(u[_[A]]+j)]:_[A-1];_[0]=s[p(u[_[0]]+j)]}for(j=0;j<=a;j++)_[j]=u[_[j]];for(C=I,B=0,j=0;j<o;j++)m(B,t,C,a),B+=t,C+=a;for(j=0;j<e;j++)m(B,t+1,C,a),B+=t+1,C+=a;for(B=0,j=0;j<t;j++){for(A=0;A<o;A++)d[B++]=v[j+A*t];for(A=0;A<e;A++)d[B++]=v[o*t+j+A*(t+1)]}for(A=0;A<e;A++)d[B++]=v[o*t+j+A*(t+1)];for(j=0;j<a;j++)for(A=0;A<o+e;A++)d[B++]=v[I+j+A*a];for(v=d,I=B=f-1,C=S=1,O=(t+a)*(o+e)+e,j=0;j<O;j++)for(E=v[j],A=0;A<8;A++,E<<=1){128&E&&(h[I+f*B]=1);do{S?I--:(I++,C?0!=B?B--:(C=!C,6==(I-=2)&&(I--,B=9)):B!=f-1?B++:(C=!C,6==(I-=2)&&(I--,B-=8))),S=!S}while(R(I,B))}for(v=h.slice(0),E=0,B=3e4,C=0;C<8&&(w(C),(I=M())<B&&(B=I,E=C),7!=E);C++)h=v.slice(0);for(E!=C&&w(E),B=c[E+(g-1<<3)],C=0;C<8;C++,B>>=1)1&B&&(h[f-1-C+8*f]=1,C<6?h[8+f*C]=1:h[8+f*(C+1)]=1);for(C=0;C<7;C++,B>>=1)1&B&&(h[8+f*(f-7+C)]=1,C?h[6-C+8*f]=1:h[7+8*f]=1);return h}(S.getElementById(I).value);B.lineWidth=1;var P=C;for(P/=f+10,P=Math.round(P-.5),B.clearRect(0,0,C,E),B.fillStyle="#ffffff",B.fillRect(0,0,P*(f+8),P*(f+8)),B.fillStyle="#000000",j=0;j<f;j++)for(A=0;A<f;A++)O[A*f+j]&&B.fillRect(P*(4+j),P*(4+A),P,P)}}("canvasId","txtQRCode")}},f={};function o(e){var t=f[e];if(void 0!==t)return t.exports;var a=f[e]={exports:{}};return r[e](a,a.exports,o),a.exports}var e={};(()=>{"use strict";e.__esModule=!0,o(2312)})();var t=exports;for(var a in e)t[a]=e[a];e.__esModule&&Object.defineProperty(t,"__esModule",{value:!0})})();
//# sourceMappingURL=qrcode.js.map

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc