tweb/public/mtproto.worker.1991be6aa417...

4 lines
400 KiB
JavaScript
Raw Normal View History

2022-04-17 15:01:10 +02:00
!function(e){var t={};function a(n){if(t[n])return t[n].exports;var s=t[n]={i:n,l:!1,exports:{}};return e[n].call(s.exports,s,s.exports,a),s.l=!0,s.exports}a.m=e,a.c=t,a.d=function(e,t,n){a.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:n})},a.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},a.t=function(e,t){if(1&t&&(e=a(e)),8&t)return e;if(4&t&&"object"==typeof e&&e&&e.__esModule)return e;var n=Object.create(null);if(a.r(n),Object.defineProperty(n,"default",{enumerable:!0,value:e}),2&t&&"string"!=typeof e)for(var s in e)a.d(n,s,function(t){return e[t]}.bind(null,s));return n},a.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return a.d(t,"a",t),t},a.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},a.p="",a(a.s=3)}([function(e,t,a){(function(e){var n,s=function(e){"use strict";var t=1e7,a=9007199254740992,n=c(a),i="function"==typeof BigInt;function r(e,t,a,n){return void 0===e?r[0]:void 0!==t&&(10!=+t||a)?O(e,t,a,n):W(e)}function p(e,t){this.value=e,this.sign=t,this.isSmall=!1}function o(e){this.value=e,this.sign=e<0,this.isSmall=!0}function m(e){this.value=e}function d(e){return-a<e&&e<a}function c(e){return e<1e7?[e]:e<1e14?[e%1e7,Math.floor(e/1e7)]:[e%1e7,Math.floor(e/1e7)%1e7,Math.floor(e/1e14)]}function y(e){l(e);var a=e.length;if(a<4&&M(e,n)<0)switch(a){case 0:return 0;case 1:return e[0];case 2:return e[0]+e[1]*t;default:return e[0]+(e[1]+e[2]*t)*t}return e}function l(e){for(var t=e.length;0===e[--t];);e.length=t+1}function g(e){for(var t=new Array(e),a=-1;++a<e;)t[a]=0;return t}function u(e){return e>0?Math.floor(e):Math.ceil(e)}function h(e,a){var n,s,i=e.length,r=a.length,p=new Array(i),o=0,m=t;for(s=0;s<r;s++)o=(n=e[s]+a[s]+o)>=m?1:0,p[s]=n-o*m;for(;s<i;)o=(n=e[s]+o)===m?1:0,p[s++]=n-o*m;return o>0&&p.push(o),p}function f(e,t){return e.length>=t.length?h(e,t):h(t,e)}function _(e,a){var n,s,i=e.length,r=new Array(i),p=t;for(s=0;s<i;s++)n=e[s]-p+a,a=Math.floor(n/p),r[s]=n-a*p,a+=1;for(;a>0;)r[s++]=a%p,a=Math.floor(a/p);return r}function v(e,t){var a,n,s=e.length,i=t.length,r=new Array(s),p=0;for(a=0;a<i;a++)(n=e[a]-p-t[a])<0?(n+=1e7,p=1):p=0,r[a]=n;for(a=i;a<s;a++){if(!((n=e[a]-p)<0)){r[a++]=n;break}n+=1e7,r[a]=n}for(;a<s;a++)r[a]=e[a];return l(r),r}function b(e,t,a){var n,s,i=e.length,r=new Array(i),m=-t;for(n=0;n<i;n++)s=e[n]+m,m=Math.floor(s/1e7),s%=1e7,r[n]=s<0?s+1e7:s;return"number"==typeof(r=y(r))?(a&&(r=-r),new o(r)):new p(r,a)}function w(e,t){var a,n,s,i,r=e.length,p=t.length,o=g(r+p);for(s=0;s<r;++s){i=e[s];for(var m=0;m<p;++m)a=i*t[m]+o[s+m],n=Math.floor(a/1e7),o[s+m]=a-1e7*n,o[s+m+1]+=n}return l(o),o}function P(e,a){var n,s,i=e.length,r=new Array(i),p=t,o=0;for(s=0;s<i;s++)n=e[s]*a+o,o=Math.floor(n/p),r[s]=n-o*p;for(;o>0;)r[s++]=o%p,o=Math.floor(o/p);return r}function S(e,t){for(var a=[];t-- >0;)a.push(0);return a.concat(e)}function I(e,a,n){return new p(e<t?P(a,e):w(a,c(e)),n)}function k(e){var t,a,n,s,i=e.length,r=g(i+i);for(n=0;n<i;n++){a=0-(s=e[n])*s;for(var p=n;p<i;p++)t=s*e[p]*2+r[n+p]+a,a=Math.floor(t/1e7),r[n+p]=t-1e7*a;r[n+i]=a}return l(r),r}function C(e,t){var a,n,s,i,r=e.length,p=g(r);for(s=0,a=r-1;a>=0;--a)s=(i=1e7*s+e[a])-(n=u(i/t))*t,p[a]=0|n;return[p,0|s]}function A(e,a){var n,s=W(a);if(i)return[new m(e.value/s.value),new m(e.value%s.value)];var d,h=e.value,f=s.value;if(0===f)throw new Error("Cannot divide by zero");if(e.isSmall)return s.isSmall?[new o(u(h/f)),new o(h%f)]:[r[0],e];if(s.isSmall){if(1===f)return[e,r[0]];if(-1==f)return[e.negate(),r[0]];var _=Math.abs(f);if(_<t){d=y((n=C(h,_))[0]);var b=n[1];return e.sign&&(b=-b),"number"==typeof d?(e.sign!==s.sign&&(d=-d),[new o(d),new o(b)]):[new p(d,e.sign!==s.sign),new o(b)]}f=c(_)}var w=M(h,f);if(-1===w)return[r[0],e];if(0===w)return[r[e.sign===s.sign?1:-1],r[0]];d=(n=h.length+f.length<=200?function(e,a){var n,s,i,r,p,o,m,d=e.length,c=a.length,l=t,u=g(a.length),h=a[c-1],f=Math.ceil(l/(2*h)),_=P(e,f),v=P(a,f);for(_.length<=d&&_.push(0),v.push(0),h=v[c-1
2022-04-16 19:15:57 +02:00
/*! pako 2.0.3 https://github.com/nodeca/pako @license (MIT AND Zlib) */
2022-05-25 19:59:52 +02:00
!function(e){"use strict";var t=(e,t,a,n)=>{let s=65535&e|0,i=e>>>16&65535|0,r=0;for(;0!==a;){r=a>2e3?2e3:a,a-=r;do{s=s+t[n++]|0,i=i+s|0}while(--r);s%=65521,i%=65521}return s|i<<16|0};const a=new Uint32Array((()=>{let e,t=[];for(var a=0;a<256;a++){e=a;for(var n=0;n<8;n++)e=1&e?3988292384^e>>>1:e>>>1;t[a]=e}return t})());var n=(e,t,n,s)=>{const i=a,r=s+n;e^=-1;for(let a=s;a<r;a++)e=e>>>8^i[255&(e^t[a])];return-1^e},s=function(e,t){let a,n,s,i,r,p,o,m,d,c,y,l,g,u,h,f,_,v,b,w,P,S,I,k;const C=e.state;a=e.next_in,I=e.input,n=a+(e.avail_in-5),s=e.next_out,k=e.output,i=s-(t-e.avail_out),r=s+(e.avail_out-257),p=C.dmax,o=C.wsize,m=C.whave,d=C.wnext,c=C.window,y=C.hold,l=C.bits,g=C.lencode,u=C.distcode,h=(1<<C.lenbits)-1,f=(1<<C.distbits)-1;e:do{l<15&&(y+=I[a++]<<l,l+=8,y+=I[a++]<<l,l+=8),_=g[y&h];t:for(;;){if(v=_>>>24,y>>>=v,l-=v,v=_>>>16&255,0===v)k[s++]=65535&_;else{if(!(16&v)){if(0==(64&v)){_=g[(65535&_)+(y&(1<<v)-1)];continue t}if(32&v){C.mode=12;break e}e.msg="invalid literal/length code",C.mode=30;break e}b=65535&_,v&=15,v&&(l<v&&(y+=I[a++]<<l,l+=8),b+=y&(1<<v)-1,y>>>=v,l-=v),l<15&&(y+=I[a++]<<l,l+=8,y+=I[a++]<<l,l+=8),_=u[y&f];a:for(;;){if(v=_>>>24,y>>>=v,l-=v,v=_>>>16&255,!(16&v)){if(0==(64&v)){_=u[(65535&_)+(y&(1<<v)-1)];continue a}e.msg="invalid distance code",C.mode=30;break e}if(w=65535&_,v&=15,l<v&&(y+=I[a++]<<l,l+=8,l<v&&(y+=I[a++]<<l,l+=8)),w+=y&(1<<v)-1,w>p){e.msg="invalid distance too far back",C.mode=30;break e}if(y>>>=v,l-=v,v=s-i,w>v){if(v=w-v,v>m&&C.sane){e.msg="invalid distance too far back",C.mode=30;break e}if(P=0,S=c,0===d){if(P+=o-v,v<b){b-=v;do{k[s++]=c[P++]}while(--v);P=s-w,S=k}}else if(d<v){if(P+=o+d-v,v-=d,v<b){b-=v;do{k[s++]=c[P++]}while(--v);if(P=0,d<b){v=d,b-=v;do{k[s++]=c[P++]}while(--v);P=s-w,S=k}}}else if(P+=d-v,v<b){b-=v;do{k[s++]=c[P++]}while(--v);P=s-w,S=k}for(;b>2;)k[s++]=S[P++],k[s++]=S[P++],k[s++]=S[P++],b-=3;b&&(k[s++]=S[P++],b>1&&(k[s++]=S[P++]))}else{P=s-w;do{k[s++]=k[P++],k[s++]=k[P++],k[s++]=k[P++],b-=3}while(b>2);b&&(k[s++]=k[P++],b>1&&(k[s++]=k[P++]))}break}}break}}while(a<n&&s<r);b=l>>3,a-=b,l-=b<<3,y&=(1<<l)-1,e.next_in=a,e.next_out=s,e.avail_in=a<n?n-a+5:5-(a-n),e.avail_out=s<r?r-s+257:257-(s-r),C.hold=y,C.bits=l};const i=new Uint16Array([3,4,5,6,7,8,9,10,11,13,15,17,19,23,27,31,35,43,51,59,67,83,99,115,131,163,195,227,258,0,0]),r=new Uint8Array([16,16,16,16,16,16,16,16,17,17,17,17,18,18,18,18,19,19,19,19,20,20,20,20,21,21,21,21,16,72,78]),p=new Uint16Array([1,2,3,4,5,7,9,13,17,25,33,49,65,97,129,193,257,385,513,769,1025,1537,2049,3073,4097,6145,8193,12289,16385,24577,0,0]),o=new Uint8Array([16,16,16,16,17,17,18,18,19,19,20,20,21,21,22,22,23,23,24,24,25,25,26,26,27,27,28,28,29,29,64,64]);var m=(e,t,a,n,s,m,d,c)=>{const y=c.bits;let l,g,u,h,f,_,v=0,b=0,w=0,P=0,S=0,I=0,k=0,C=0,A=0,M=0,R=null,E=0;const D=new Uint16Array(16),T=new Uint16Array(16);let V,B,U,x=null,F=0;for(v=0;v<=15;v++)D[v]=0;for(b=0;b<n;b++)D[t[a+b]]++;for(S=y,P=15;P>=1&&0===D[P];P--);if(S>P&&(S=P),0===P)return s[m++]=20971520,s[m++]=20971520,c.bits=1,0;for(w=1;w<P&&0===D[w];w++);for(S<w&&(S=w),C=1,v=1;v<=15;v++)if(C<<=1,C-=D[v],C<0)return-1;if(C>0&&(0===e||1!==P))return-1;for(T[1]=0,v=1;v<15;v++)T[v+1]=T[v]+D[v];for(b=0;b<n;b++)0!==t[a+b]&&(d[T[t[a+b]]++]=b);if(0===e?(R=x=d,_=19):1===e?(R=i,E-=257,x=r,F-=257,_=256):(R=p,x=o,_=-1),M=0,b=0,v=w,f=m,I=S,k=0,u=-1,A=1<<S,h=A-1,1===e&&A>852||2===e&&A>592)return 1;for(;;){V=v-k,d[b]<_?(B=0,U=d[b]):d[b]>_?(B=x[F+d[b]],U=R[E+d[b]]):(B=96,U=0),l=1<<v-k,g=1<<I,w=g;do{g-=l,s[f+(M>>k)+g]=V<<24|B<<16|U|0}while(0!==g);for(l=1<<v-1;M&l;)l>>=1;if(0!==l?(M&=l-1,M+=l):M=0,b++,0==--D[v]){if(v===P)break;v=t[a+d[b]]}if(v>S&&(M&h)!==u){for(0===k&&(k=S),f+=w,I=v-k,C=1<<I;I+k<P&&(C-=D[I+k],!(C<=0));)I++,C<<=1;if(A+=1<<I,1===e&&A>852||2===e&&A>592)return 1;u=M&h,s[u]=S<<24|I<<16|f-m|0}}return 0!==M&&(s[f+M]=v-k<<24|64<<16|0),c.bits=S,0},d={Z_NO_FLUSH:0,Z_PARTIAL_FLUSH:1,Z_SYNC_FLUSH:2,Z_FULL_FLUSH:3,Z_FINISH:4,Z_BLOCK:5,Z_TREES:6,Z_OK:0,Z_STREAM_END:1,Z_NEED_DICT:2,Z_ERRNO:-1,Z_STREAM_ERROR:-2,Z_DATA_ERROR:-3,Z_MEM_ERROR:-4,Z_BUF_ERROR:-5,Z_NO_COMPRESSION:0,Z_BEST_SPEED:1,Z_BEST_COMPRESSION
//# sourceMappingURL=mtproto.worker.1991be6aa417d5efa583.bundle.worker.js.map