Build 576754stable
Module 687813
7,561 characters · in 676f94dfd2109b36.jsDependencies
Source Raw
function(e,r,t){"use strict";t.d(r,{$1:()=>K,he:()=>U});var a={},n=function(e,r,t,n,o){var s=new Worker(a[r]||(a[r]=URL.createObjectURL(new Blob([e+';addEventListener("error",function(e){e=e.error;postMessage({$e$:[e.message,e.code,e.stack]})})'],{type:"text/javascript"}))));return s.onmessage=function(e){var r=e.data,t=r.$e$;if(t){var a=Error(t[0]);a.code=t[1],a.stack=t[2],o(a,null)}else o(null,r)},s.postMessage(t,n),s},o=Uint8Array,s=Uint16Array,i=Int32Array,l=new o([0,0,0,0,0,0,0,0,1,1,1,1,2,2,2,2,3,3,3,3,4,4,4,4,5,5,5,5,0,0,0,0]),c=new o([0,0,0,0,1,1,2,2,3,3,4,4,5,5,6,6,7,7,8,8,9,9,10,10,11,11,12,12,13,13,0,0]),u=new o([16,17,18,0,8,7,9,6,10,5,11,4,12,3,13,2,14,1,15]),f=function(e,r){for(var t=new s(31),a=0;a<31;++a)t[a]=r+=1<<e[a-1];for(var n=new i(t[30]),a=1;a<30;++a)for(var o=t[a];o<t[a+1];++o)n[o]=o-t[a]<<5|a;return{b:t,r:n}},h=f(l,2),d=h.b,m=h.r;d[28]=258,m[258]=28;var p=f(c,0),g=p.b;p.r;for(var b=new s(32768),M=0;M<32768;++M){var v=(43690&M)>>1|(21845&M)<<1;v=(61680&(v=(52428&v)>>2|(13107&v)<<2))>>4|(3855&v)<<4,b[M]=((65280&v)>>8|(255&v)<<8)>>1}for(var w=function(e,r,t){for(var a,n=e.length,o=0,i=new s(r);o<n;++o)e[o]&&++i[e[o]-1];var l=new s(r);for(o=1;o<r;++o)l[o]=l[o-1]+i[o-1]<<1;if(t){a=new s(1<<r);var c=15-r;for(o=0;o<n;++o)if(e[o])for(var u=o<<4|e[o],f=r-e[o],h=l[e[o]-1]++<<f,d=h|(1<<f)-1;h<=d;++h)a[b[h]>>c]=u}else for(o=0,a=new s(n);o<n;++o)e[o]&&(a[o]=b[l[e[o]-1]++]>>15-e[o]);return a},y=new o(288),M=0;M<144;++M)y[M]=8;for(var M=144;M<256;++M)y[M]=9;for(var M=256;M<280;++M)y[M]=7;for(var M=280;M<288;++M)y[M]=8;for(var C=new o(32),M=0;M<32;++M)C[M]=5;var R=w(y,9,1),k=w(C,5,1),_=function(e){for(var r=e[0],t=1;t<e.length;++t)e[t]>r&&(r=e[t]);return r},B=function(e,r,t){var a=r/8|0;return(e[a]|e[a+1]<<8)>>(7&r)&t},N=function(e,r){var t=r/8|0;return(e[t]|e[t+1]<<8|e[t+2]<<16)>>(7&r)},x=function(e){return(e+7)/8|0},S=function(e,r,t){(null==r||r<0)&&(r=0),(null==t||t>e.length)&&(t=e.length);var a=new o(t-r);return a.set(e.subarray(r,t)),a},z=["unexpected EOF","invalid block type","invalid length/literal","invalid distance","stream finished","no stream handler",,"no callback","invalid UTF-8 data","extra field too long","date not in range 1980-2099","filename too long","stream finishing","invalid zip data"],I=function(e,r,t){var a=Error(r||z[e]);if(a.code=e,Error.captureStackTrace&&Error.captureStackTrace(a,I),!t)throw a;return a},L=function(e,r,t,a){var n=e.length,s=a?a.length:0;if(!n||r.f&&!r.l)return t||new o(0);var i=!t||2!=r.i,f=r.i;t||(t=new o(3*n));var h=function(e){var r=t.length;if(e>r){var a=new o(Math.max(2*r,e));a.set(t),t=a}},m=r.f||0,p=r.p||0,b=r.b||0,M=r.l,v=r.d,y=r.m,C=r.n,z=8*n;do{if(!M){m=B(e,p,1);var L=B(e,p+1,3);if(p+=3,L)if(1==L)M=R,v=k,y=9,C=5;else if(2==L){var A=B(e,p,31)+257,E=B(e,p+10,15)+4,P=A+B(e,p+5,31)+1;p+=14;for(var j=new o(P),O=new o(19),$=0;$<E;++$)O[u[$]]=B(e,p+3*$,7);p+=3*E;for(var D=_(O),q=(1<<D)-1,T=w(O,D,1),$=0;$<P;){var H=T[B(e,p,q)];p+=15&H;var W=H>>4;if(W<16)j[$++]=W;else{var F=0,G=0;for(16==W?(G=3+B(e,p,3),p+=2,F=j[$-1]):17==W?(G=3+B(e,p,7),p+=3):18==W&&(G=11+B(e,p,127),p+=7);G--;)j[$++]=F}}var X=j.subarray(0,A),Y=j.subarray(A);y=_(X),C=_(Y),M=w(X,y,1),v=w(Y,C,1)}else I(1);else{var W=x(p)+4,Z=e[W-4]|e[W-3]<<8,U=W+Z;if(U>n){f&&I(0);break}i&&h(b+Z),t.set(e.subarray(W,U),b),r.b=b+=Z,r.p=p=8*U,r.f=m;continue}if(p>z){f&&I(0);break}}i&&h(b+131072);for(var J=(1<<y)-1,Q=(1<<C)-1,V=p;;V=p){var F=M[N(e,p)&J],K=F>>4;if((p+=15&F)>z){f&&I(0);break}if(F||I(2),K<256)t[b++]=K;else if(256==K){V=p,M=null;break}else{var ee=K-254;if(K>264){var $=K-257,er=l[$];ee=B(e,p,(1<<er)-1)+d[$],p+=er}var et=v[N(e,p)&Q],ea=et>>4;et||I(3),p+=15&et;var Y=g[ea];if(ea>3){var er=c[ea];Y+=N(e,p)&(1<<er)-1,p+=er}if(p>z){f&&I(0);break}i&&h(b+131072);var en=b+ee;if(b<Y){var eo=s-Y,es=Math.min(Y,en);for(eo+b<0&&I(3);b<es;++b)t[b]=a[eo+b]}for(;b<en;b+=4)t[b]=t[b-Y],t[b+1]=t[b+1-Y],t[b+2]=t[b+2-Y],t[b+3]=t[b+3-Y];b=en}}r.l=M,r.p=V,r.b=b,r.f=m,M&&(m=1,r.m=y,r.d=v,r.n=C)}while(!m);return b==t.length?t:S(t,0,b)},A=new o(0),E=function(e,r){var t={};for(var a in e)t[a]=e[a];for(var a in r)t[a]=r[a];return t},P=function(e,r,t){for(var a=e(),n=e.toString(),o=n.slice(n.indexOf("[")+1,n.lastIndexOf("]")).replace(/\s+/g,"").split(","),s=0;s<a.length;++s){var i=a[s],l=o[s];if("function"==typeof i){r+=";"+l+"=";var c=i.toString();if(i.prototype)if(-1!=c.indexOf("[native code]")){var u=c.indexOf(" ",8)+1;r+=c.slice(u,c.indexOf("(",u))}else for(var f in r+=c,i.prototype)r+=";"+l+".prototype."+f+"="+i.prototype[f].toString();else r+=c}else t[l]=i}return r},j=[],O=function(e){var r=[];for(var t in e)e[t].buffer&&r.push((e[t]=new e[t].constructor(e[t])).buffer);return r},$=function(e,r,t,a){if(!j[t]){for(var o="",s={},i=e.length-1,l=0;l<i;++l)o=P(e[l],o,s);j[t]={c:P(e[i],o,s),e:s}}var c=E({},j[t].e);return n(j[t].c+";onmessage=function(e){for(var k in e.data)self[k]=e.data[k];onmessage="+r.toString()+"}",t,c,O(c),a)},D=function(){return[o,s,i,l,c,u,d,g,R,k,b,z,w,_,B,N,x,S,I,L,X,q,T]},q=function(e){return postMessage(e,[e.buffer])},T=function(e){return e&&{out:e.size&&new o(e.size),dictionary:e.dictionary}},H=function(e,r,t,a,n,o){var s=$(t,a,n,function(e,r){s.terminate(),o(e,r)});return s.postMessage([e,r],r.consume?[e.buffer]:[]),function(){s.terminate()}},W=function(e,r){return e[r]|e[r+1]<<8},F=function(e,r){return(e[r]|e[r+1]<<8|e[r+2]<<16|e[r+3]<<24)>>>0},G=function(e,r){return F(e,r)+0x100000000*F(e,r+4)};function X(e,r){return L(e,{i:2},r&&r.out,r&&r.dictionary)}var Y="u">typeof TextDecoder&&new TextDecoder;try{Y.decode(A,{stream:!0})}catch(e){}var Z=function(e){for(var r="",t=0;;){var a=e[t++],n=(a>127)+(a>223)+(a>239);if(t+n>e.length)return{s:r,r:S(e,t-1)};n?3==n?r+=String.fromCharCode(55296|(a=((15&a)<<18|(63&e[t++])<<12|(63&e[t++])<<6|63&e[t++])-65536)>>10,56320|1023&a):1&n?r+=String.fromCharCode((31&a)<<6|63&e[t++]):r+=String.fromCharCode((15&a)<<12|(63&e[t++])<<6|63&e[t++]):r+=String.fromCharCode(a)}};function U(e,r){if(r){for(var t="",a=0;a<e.length;a+=16384)t+=String.fromCharCode.apply(null,e.subarray(a,a+16384));return t}if(Y)return Y.decode(e);var n=Z(e),o=n.s,t=n.r;return t.length&&I(8),o}var J=function(e,r,t){var a=W(e,r+28),n=U(e.subarray(r+46,r+46+a),!(2048&W(e,r+8))),o=r+46+a,s=F(e,r+20),i=t&&0xffffffff==s?Q(e,o):[s,F(e,r+24),F(e,r+42)],l=i[0],c=i[1],u=i[2];return[W(e,r+10),l,c,n,o+W(e,r+30)+W(e,r+32),u]},Q=function(e,r){for(;1!=W(e,r);r+=4+W(e,r+2));return[G(e,r+12),G(e,r+4),G(e,r+20)]},V="function"==typeof queueMicrotask?queueMicrotask:"function"==typeof setTimeout?setTimeout:function(e){e()};function K(e,r,t){t||(t=r,r={}),"function"!=typeof t&&I(7);var a=[],n=function(){for(var e=0;e<a.length;++e)a[e]()},s={},i=function(e,r){V(function(){t(e,r)})};V(function(){i=t});for(var l=e.length-22;0x6054b50!=F(e,l);--l)if(!l||e.length-l>65558)return i(I(13,0,1),null),n;var c=W(e,l+8);if(c){var u=c,f=F(e,l+16),h=0xffffffff==f||65535==u;if(h){var d=F(e,l-12);(h=0x6064b50==F(e,d))&&(u=c=F(e,d+32),f=F(e,d+48))}for(var m=r&&r.filter,p=0;p<u;++p)!function(){var r=J(e,f,h),t=r[0],l=r[1],u=r[2],d=r[3],p=r[4],g=r[5],b=g+30+W(e,g+26)+W(e,g+28);f=p;var M=function(e,r){e?(n(),i(e,null)):(r&&(s[d]=r),--c||i(null,s))};if(!m||m({name:d,size:l,originalSize:u,compression:t}))if(t)if(8==t){var v,w,y=e.subarray(b,b+l);if(l<32e4)try{M(null,X(y,{out:new o(u)}))}catch(e){M(e,null)}else a.push((v={size:u},(w=M)||(w=v,v={}),"function"!=typeof w&&I(7),H(y,v,[D],function(e){return q(X(e.data[0],T(e.data[1])))},1,w)))}else M(I(14,"unknown compression type "+t,1),null);else M(null,S(e,b,b+l));else M(null,null)}()}else i(null,{});return n}}