chaos-game
Version:
A highly configurable Chaos Game fractal generator.
1 lines • 74.7 kB
JavaScript
(function(a,r){typeof exports=="object"&&typeof module<"u"?module.exports=r():typeof define=="function"&&define.amd?define(r):(a=typeof globalThis<"u"?globalThis:a||self,a.ChaosGame=r())})(this,(function(){"use strict";const a=`(function(){"use strict";function Pt(p){return p&&p.__esModule&&Object.prototype.hasOwnProperty.call(p,"default")?p.default:p}function jt(p){throw new Error('Could not dynamically require "'+p+'". Please configure the dynamicRequireTargets or/and ignoreDynamicRequires option of @rollup/plugin-commonjs appropriately for this require call to work.')}var it={exports:{}},nt={},bt;function Ne(){return bt||(bt=1,(function(p){var L=typeof Uint8Array<"u"&&typeof Uint16Array<"u"&&typeof Int32Array<"u";function O(t,a){return Object.prototype.hasOwnProperty.call(t,a)}p.assign=function(t){for(var a=Array.prototype.slice.call(arguments,1);a.length;){var h=a.shift();if(h){if(typeof h!="object")throw new TypeError(h+"must be non-object");for(var n in h)O(h,n)&&(t[n]=h[n])}}return t},p.shrinkBuf=function(t,a){return t.length===a?t:t.subarray?t.subarray(0,a):(t.length=a,t)};var g={arraySet:function(t,a,h,n,v){if(a.subarray&&t.subarray){t.set(a.subarray(h,h+n),v);return}for(var u=0;u<n;u++)t[v+u]=a[h+u]},flattenChunks:function(t){var a,h,n,v,u,f;for(n=0,a=0,h=t.length;a<h;a++)n+=t[a].length;for(f=new Uint8Array(n),v=0,a=0,h=t.length;a<h;a++)u=t[a],f.set(u,v),v+=u.length;return f}},Z={arraySet:function(t,a,h,n,v){for(var u=0;u<n;u++)t[v+u]=a[h+u]},flattenChunks:function(t){return[].concat.apply([],t)}};p.setTyped=function(t){t?(p.Buf8=Uint8Array,p.Buf16=Uint16Array,p.Buf32=Int32Array,p.assign(p,g)):(p.Buf8=Array,p.Buf16=Array,p.Buf32=Array,p.assign(p,Z))},p.setTyped(L)})(nt)),nt}var Pe={},Be={},Ye={},xt;function Wt(){if(xt)return Ye;xt=1;var p=Ne(),L=4,O=0,g=1,Z=2;function t(o){for(var C=o.length;--C>=0;)o[C]=0}var a=0,h=1,n=2,v=3,u=258,f=29,_=256,b=_+1+f,l=30,z=19,m=2*b+1,s=15,d=16,E=7,R=256,I=16,B=17,x=18,D=[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],Y=[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],U=[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,2,3,7],q=[16,17,18,0,8,7,9,6,10,5,11,4,12,3,13,2,14,1,15],N=512,H=new Array((b+2)*2);t(H);var K=new Array(l*2);t(K);var Q=new Array(N);t(Q);var $=new Array(u-v+1);t($);var X=new Array(f);t(X);var W=new Array(l);t(W);function re(o,C,F,j,w){this.static_tree=o,this.extra_bits=C,this.extra_base=F,this.elems=j,this.max_length=w,this.has_stree=o&&o.length}var be,ke,_e;function se(o,C){this.dyn_tree=o,this.max_code=0,this.stat_desc=C}function ce(o){return o<256?Q[o]:Q[256+(o>>>7)]}function ue(o,C){o.pending_buf[o.pending++]=C&255,o.pending_buf[o.pending++]=C>>>8&255}function ne(o,C,F){o.bi_valid>d-F?(o.bi_buf|=C<<o.bi_valid&65535,ue(o,o.bi_buf),o.bi_buf=C>>d-o.bi_valid,o.bi_valid+=F-d):(o.bi_buf|=C<<o.bi_valid&65535,o.bi_valid+=F)}function oe(o,C,F){ne(o,F[C*2],F[C*2+1])}function ae(o,C){var F=0;do F|=o&1,o>>>=1,F<<=1;while(--C>0);return F>>>1}function ee(o){o.bi_valid===16?(ue(o,o.bi_buf),o.bi_buf=0,o.bi_valid=0):o.bi_valid>=8&&(o.pending_buf[o.pending++]=o.bi_buf&255,o.bi_buf>>=8,o.bi_valid-=8)}function Ae(o,C){var F=C.dyn_tree,j=C.max_code,w=C.stat_desc.static_tree,y=C.stat_desc.has_stree,r=C.stat_desc.extra_bits,M=C.stat_desc.extra_base,G=C.stat_desc.max_length,e,S,A,i,c,k,J=0;for(i=0;i<=s;i++)o.bl_count[i]=0;for(F[o.heap[o.heap_max]*2+1]=0,e=o.heap_max+1;e<m;e++)S=o.heap[e],i=F[F[S*2+1]*2+1]+1,i>G&&(i=G,J++),F[S*2+1]=i,!(S>j)&&(o.bl_count[i]++,c=0,S>=M&&(c=r[S-M]),k=F[S*2],o.opt_len+=k*(i+c),y&&(o.static_len+=k*(w[S*2+1]+c)));if(J!==0){do{for(i=G-1;o.bl_count[i]===0;)i--;o.bl_count[i]--,o.bl_count[i+1]+=2,o.bl_count[G]--,J-=2}while(J>0);for(i=G;i!==0;i--)for(S=o.bl_count[i];S!==0;)A=o.heap[--e],!(A>j)&&(F[A*2+1]!==i&&(o.opt_len+=(i-F[A*2+1])*F[A*2],F[A*2+1]=i),S--)}}function me(o,C,F){var j=new Array(s+1),w=0,y,r;for(y=1;y<=s;y++)j[y]=w=w+F[y-1]<<1;for(r=0;r<=C;r++){var M=o[r*2+1];M!==0&&(o[r*2]=ae(j[M]++,M))}}function te(){var o,C,F,j,w,y=new Array(s+1);for(F=0,j=0;j<f-1;j++)for(X[j]=F,o=0;o<1<<D[j];o++)$[F++]=j;for($[F-1]=j,w=0,j=0;j<16;j++)for(W[j]=w,o=0;o<1<<Y[j];o++)Q[w++]=j;for(w>>=7;j<l;j++)for(W[j]=w<<7,o=0;o<1<<Y[j]-7;o++)Q[256+w++]=j;for(C=0;C<=s;C++)y[C]=0;for(o=0;o<=143;)H[o*2+1]=8,o++,y[8]++;for(;o<=255;)H[o*2+1]=9,o++,y[9]++;for(;o<=279;)H[o*2+1]=7,o++,y[7]++;for(;o<=287;)H[o*2+1]=8,o++,y[8]++;for(me(H,b+1,y),o=0;o<l;o++)K[o*2+1]=5,K[o*2]=ae(o,5);be=new re(H,D,_+1,b,s),ke=new re(K,Y,0,l,s),_e=new re(new Array(0),U,0,z,E)}function ve(o){var C;for(C=0;C<b;C++)o.dyn_ltree[C*2]=0;for(C=0;C<l;C++)o.dyn_dtree[C*2]=0;for(C=0;C<z;C++)o.bl_tree[C*2]=0;o.dyn_ltree[R*2]=1,o.opt_len=o.static_len=0,o.last_lit=o.matches=0}function Ie(o){o.bi_valid>8?ue(o,o.bi_buf):o.bi_valid>0&&(o.pending_buf[o.pending++]=o.bi_buf),o.bi_buf=0,o.bi_valid=0}function Te(o,C,F,j){Ie(o),ue(o,F),ue(o,~F),p.arraySet(o.pending_buf,o.window,C,F,o.pending),o.pending+=F}function xe(o,C,F,j){var w=C*2,y=F*2;return o[w]<o[y]||o[w]===o[y]&&j[C]<=j[F]}function he(o,C,F){for(var j=o.heap[F],w=F<<1;w<=o.heap_len&&(w<o.heap_len&&xe(C,o.heap[w+1],o.heap[w],o.depth)&&w++,!xe(C,j,o.heap[w],o.depth));)o.heap[F]=o.heap[w],F=w,w<<=1;o.heap[F]=j}function ie(o,C,F){var j,w,y=0,r,M;if(o.last_lit!==0)do j=o.pending_buf[o.d_buf+y*2]<<8|o.pending_buf[o.d_buf+y*2+1],w=o.pending_buf[o.l_buf+y],y++,j===0?oe(o,w,C):(r=$[w],oe(o,r+_+1,C),M=D[r],M!==0&&(w-=X[r],ne(o,w,M)),j--,r=ce(j),oe(o,r,F),M=Y[r],M!==0&&(j-=W[r],ne(o,j,M)));while(y<o.last_lit);oe(o,R,C)}function De(o,C){var F=C.dyn_tree,j=C.stat_desc.static_tree,w=C.stat_desc.has_stree,y=C.stat_desc.elems,r,M,G=-1,e;for(o.heap_len=0,o.heap_max=m,r=0;r<y;r++)F[r*2]!==0?(o.heap[++o.heap_len]=G=r,o.depth[r]=0):F[r*2+1]=0;for(;o.heap_len<2;)e=o.heap[++o.heap_len]=G<2?++G:0,F[e*2]=1,o.depth[e]=0,o.opt_len--,w&&(o.static_len-=j[e*2+1]);for(C.max_code=G,r=o.heap_len>>1;r>=1;r--)he(o,F,r);e=y;do r=o.heap[1],o.heap[1]=o.heap[o.heap_len--],he(o,F,1),M=o.heap[1],o.heap[--o.heap_max]=r,o.heap[--o.heap_max]=M,F[e*2]=F[r*2]+F[M*2],o.depth[e]=(o.depth[r]>=o.depth[M]?o.depth[r]:o.depth[M])+1,F[r*2+1]=F[M*2+1]=e,o.heap[1]=e++,he(o,F,1);while(o.heap_len>=2);o.heap[--o.heap_max]=o.heap[1],Ae(o,C),me(F,G,o.bl_count)}function $e(o,C,F){var j,w=-1,y,r=C[1],M=0,G=7,e=4;for(r===0&&(G=138,e=3),C[(F+1)*2+1]=65535,j=0;j<=F;j++)y=r,r=C[(j+1)*2+1],!(++M<G&&y===r)&&(M<e?o.bl_tree[y*2]+=M:y!==0?(y!==w&&o.bl_tree[y*2]++,o.bl_tree[I*2]++):M<=10?o.bl_tree[B*2]++:o.bl_tree[x*2]++,M=0,w=y,r===0?(G=138,e=3):y===r?(G=6,e=3):(G=7,e=4))}function Ue(o,C,F){var j,w=-1,y,r=C[1],M=0,G=7,e=4;for(r===0&&(G=138,e=3),j=0;j<=F;j++)if(y=r,r=C[(j+1)*2+1],!(++M<G&&y===r)){if(M<e)do oe(o,y,o.bl_tree);while(--M!==0);else y!==0?(y!==w&&(oe(o,y,o.bl_tree),M--),oe(o,I,o.bl_tree),ne(o,M-3,2)):M<=10?(oe(o,B,o.bl_tree),ne(o,M-3,3)):(oe(o,x,o.bl_tree),ne(o,M-11,7));M=0,w=y,r===0?(G=138,e=3):y===r?(G=6,e=3):(G=7,e=4)}}function Ce(o){var C;for($e(o,o.dyn_ltree,o.l_desc.max_code),$e(o,o.dyn_dtree,o.d_desc.max_code),De(o,o.bl_desc),C=z-1;C>=3&&o.bl_tree[q[C]*2+1]===0;C--);return o.opt_len+=3*(C+1)+5+5+4,C}function Je(o,C,F,j){var w;for(ne(o,C-257,5),ne(o,F-1,5),ne(o,j-4,4),w=0;w<j;w++)ne(o,o.bl_tree[q[w]*2+1],3);Ue(o,o.dyn_ltree,C-1),Ue(o,o.dyn_dtree,F-1)}function Ke(o){var C=4093624447,F;for(F=0;F<=31;F++,C>>>=1)if(C&1&&o.dyn_ltree[F*2]!==0)return O;if(o.dyn_ltree[18]!==0||o.dyn_ltree[20]!==0||o.dyn_ltree[26]!==0)return g;for(F=32;F<_;F++)if(o.dyn_ltree[F*2]!==0)return g;return O}var Le=!1;function Qe(o){Le||(te(),Le=!0),o.l_desc=new se(o.dyn_ltree,be),o.d_desc=new se(o.dyn_dtree,ke),o.bl_desc=new se(o.bl_tree,_e),o.bi_buf=0,o.bi_valid=0,ve(o)}function Ve(o,C,F,j){ne(o,(a<<1)+(j?1:0),3),Te(o,C,F)}function Ee(o){ne(o,h<<1,3),oe(o,R,H),ee(o)}function Oe(o,C,F,j){var w,y,r=0;o.level>0?(o.strm.data_type===Z&&(o.strm.data_type=Ke(o)),De(o,o.l_desc),De(o,o.d_desc),r=Ce(o),w=o.opt_len+3+7>>>3,y=o.static_len+3+7>>>3,y<=w&&(w=y)):w=y=F+5,F+4<=w&&C!==-1?Ve(o,C,F,j):o.strategy===L||y===w?(ne(o,(h<<1)+(j?1:0),3),ie(o,H,K)):(ne(o,(n<<1)+(j?1:0),3),Je(o,o.l_desc.max_code+1,o.d_desc.max_code+1,r+1),ie(o,o.dyn_ltree,o.dyn_dtree)),ve(o),j&&Ie(o)}function Ge(o,C,F){return o.pending_buf[o.d_buf+o.last_lit*2]=C>>>8&255,o.pending_buf[o.d_buf+o.last_lit*2+1]=C&255,o.pending_buf[o.l_buf+o.last_lit]=F&255,o.last_lit++,C===0?o.dyn_ltree[F*2]++:(o.matches++,C--,o.dyn_ltree[($[F]+_+1)*2]++,o.dyn_dtree[ce(C)*2]++),o.last_lit===o.lit_bufsize-1}return Ye._tr_init=Qe,Ye._tr_stored_block=Ve,Ye._tr_flush_block=Oe,Ye._tr_tally=Ge,Ye._tr_align=Ee,Ye}var ft,pt;function kt(){if(pt)return ft;pt=1;function p(L,O,g,Z){for(var t=L&65535|0,a=L>>>16&65535|0,h=0;g!==0;){h=g>2e3?2e3:g,g-=h;do t=t+O[Z++]|0,a=a+t|0;while(--h);t%=65521,a%=65521}return t|a<<16|0}return ft=p,ft}var lt,Et;function St(){if(Et)return lt;Et=1;function p(){for(var g,Z=[],t=0;t<256;t++){g=t;for(var a=0;a<8;a++)g=g&1?3988292384^g>>>1:g>>>1;Z[t]=g}return Z}var L=p();function O(g,Z,t,a){var h=L,n=a+t;g^=-1;for(var v=a;v<n;v++)g=g>>>8^h[(g^Z[v])&255];return g^-1}return lt=O,lt}var ot,At;function ht(){return At||(At=1,ot={2:"need dictionary",1:"stream end",0:"","-1":"file error","-2":"stream error","-3":"data error","-4":"insufficient memory","-5":"buffer error","-6":"incompatible version"}),ot}var mt;function $t(){if(mt)return Be;mt=1;var p=Ne(),L=Wt(),O=kt(),g=St(),Z=ht(),t=0,a=1,h=3,n=4,v=5,u=0,f=1,_=-2,b=-3,l=-5,z=-1,m=1,s=2,d=3,E=4,R=0,I=2,B=8,x=9,D=15,Y=8,U=29,q=256,N=q+1+U,H=30,K=19,Q=2*N+1,$=15,X=3,W=258,re=W+X+1,be=32,ke=42,_e=69,se=73,ce=91,ue=103,ne=113,oe=666,ae=1,ee=2,Ae=3,me=4,te=3;function ve(e,S){return e.msg=Z[S],S}function Ie(e){return(e<<1)-(e>4?9:0)}function Te(e){for(var S=e.length;--S>=0;)e[S]=0}function xe(e){var S=e.state,A=S.pending;A>e.avail_out&&(A=e.avail_out),A!==0&&(p.arraySet(e.output,S.pending_buf,S.pending_out,A,e.next_out),e.next_out+=A,S.pending_out+=A,e.total_out+=A,e.avail_out-=A,S.pending-=A,S.pending===0&&(S.pending_out=0))}function he(e,S){L._tr_flush_block(e,e.block_start>=0?e.block_start:-1,e.strstart-e.block_start,S),e.block_start=e.strstart,xe(e.strm)}function ie(e,S){e.pending_buf[e.pending++]=S}function De(e,S){e.pending_buf[e.pending++]=S>>>8&255,e.pending_buf[e.pending++]=S&255}function $e(e,S,A,i){var c=e.avail_in;return c>i&&(c=i),c===0?0:(e.avail_in-=c,p.arraySet(S,e.input,e.next_in,c,A),e.state.wrap===1?e.adler=O(e.adler,S,c,A):e.state.wrap===2&&(e.adler=g(e.adler,S,c,A)),e.next_in+=c,e.total_in+=c,c)}function Ue(e,S){var A=e.max_chain_length,i=e.strstart,c,k,J=e.prev_length,V=e.nice_match,P=e.strstart>e.w_size-re?e.strstart-(e.w_size-re):0,fe=e.window,He=e.w_mask,de=e.prev,le=e.strstart+W,we=fe[i+J-1],Se=fe[i+J];e.prev_length>=e.good_match&&(A>>=2),V>e.lookahead&&(V=e.lookahead);do if(c=S,!(fe[c+J]!==Se||fe[c+J-1]!==we||fe[c]!==fe[i]||fe[++c]!==fe[i+1])){i+=2,c++;do;while(fe[++i]===fe[++c]&&fe[++i]===fe[++c]&&fe[++i]===fe[++c]&&fe[++i]===fe[++c]&&fe[++i]===fe[++c]&&fe[++i]===fe[++c]&&fe[++i]===fe[++c]&&fe[++i]===fe[++c]&&i<le);if(k=W-(le-i),i=le-W,k>J){if(e.match_start=S,J=k,k>=V)break;we=fe[i+J-1],Se=fe[i+J]}}while((S=de[S&He])>P&&--A!==0);return J<=e.lookahead?J:e.lookahead}function Ce(e){var S=e.w_size,A,i,c,k,J;do{if(k=e.window_size-e.lookahead-e.strstart,e.strstart>=S+(S-re)){p.arraySet(e.window,e.window,S,S,0),e.match_start-=S,e.strstart-=S,e.block_start-=S,i=e.hash_size,A=i;do c=e.head[--A],e.head[A]=c>=S?c-S:0;while(--i);i=S,A=i;do c=e.prev[--A],e.prev[A]=c>=S?c-S:0;while(--i);k+=S}if(e.strm.avail_in===0)break;if(i=$e(e.strm,e.window,e.strstart+e.lookahead,k),e.lookahead+=i,e.lookahead+e.insert>=X)for(J=e.strstart-e.insert,e.ins_h=e.window[J],e.ins_h=(e.ins_h<<e.hash_shift^e.window[J+1])&e.hash_mask;e.insert&&(e.ins_h=(e.ins_h<<e.hash_shift^e.window[J+X-1])&e.hash_mask,e.prev[J&e.w_mask]=e.head[e.ins_h],e.head[e.ins_h]=J,J++,e.insert--,!(e.lookahead+e.insert<X)););}while(e.lookahead<re&&e.strm.avail_in!==0)}function Je(e,S){var A=65535;for(A>e.pending_buf_size-5&&(A=e.pending_buf_size-5);;){if(e.lookahead<=1){if(Ce(e),e.lookahead===0&&S===t)return ae;if(e.lookahead===0)break}e.strstart+=e.lookahead,e.lookahead=0;var i=e.block_start+A;if((e.strstart===0||e.strstart>=i)&&(e.lookahead=e.strstart-i,e.strstart=i,he(e,!1),e.strm.avail_out===0)||e.strstart-e.block_start>=e.w_size-re&&(he(e,!1),e.strm.avail_out===0))return ae}return e.insert=0,S===n?(he(e,!0),e.strm.avail_out===0?Ae:me):(e.strstart>e.block_start&&(he(e,!1),e.strm.avail_out===0),ae)}function Ke(e,S){for(var A,i;;){if(e.lookahead<re){if(Ce(e),e.lookahead<re&&S===t)return ae;if(e.lookahead===0)break}if(A=0,e.lookahead>=X&&(e.ins_h=(e.ins_h<<e.hash_shift^e.window[e.strstart+X-1])&e.hash_mask,A=e.prev[e.strstart&e.w_mask]=e.head[e.ins_h],e.head[e.ins_h]=e.strstart),A!==0&&e.strstart-A<=e.w_size-re&&(e.match_length=Ue(e,A)),e.match_length>=X)if(i=L._tr_tally(e,e.strstart-e.match_start,e.match_length-X),e.lookahead-=e.match_length,e.match_length<=e.max_lazy_match&&e.lookahead>=X){e.match_length--;do e.strstart++,e.ins_h=(e.ins_h<<e.hash_shift^e.window[e.strstart+X-1])&e.hash_mask,A=e.prev[e.strstart&e.w_mask]=e.head[e.ins_h],e.head[e.ins_h]=e.strstart;while(--e.match_length!==0);e.strstart++}else e.strstart+=e.match_length,e.match_length=0,e.ins_h=e.window[e.strstart],e.ins_h=(e.ins_h<<e.hash_shift^e.window[e.strstart+1])&e.hash_mask;else i=L._tr_tally(e,0,e.window[e.strstart]),e.lookahead--,e.strstart++;if(i&&(he(e,!1),e.strm.avail_out===0))return ae}return e.insert=e.strstart<X-1?e.strstart:X-1,S===n?(he(e,!0),e.strm.avail_out===0?Ae:me):e.last_lit&&(he(e,!1),e.strm.avail_out===0)?ae:ee}function Le(e,S){for(var A,i,c;;){if(e.lookahead<re){if(Ce(e),e.lookahead<re&&S===t)return ae;if(e.lookahead===0)break}if(A=0,e.lookahead>=X&&(e.ins_h=(e.ins_h<<e.hash_shift^e.window[e.strstart+X-1])&e.hash_mask,A=e.prev[e.strstart&e.w_mask]=e.head[e.ins_h],e.head[e.ins_h]=e.strstart),e.prev_length=e.match_length,e.prev_match=e.match_start,e.match_length=X-1,A!==0&&e.prev_length<e.max_lazy_match&&e.strstart-A<=e.w_size-re&&(e.match_length=Ue(e,A),e.match_length<=5&&(e.strategy===m||e.match_length===X&&e.strstart-e.match_start>4096)&&(e.match_length=X-1)),e.prev_length>=X&&e.match_length<=e.prev_length){c=e.strstart+e.lookahead-X,i=L._tr_tally(e,e.strstart-1-e.prev_match,e.prev_length-X),e.lookahead-=e.prev_length-1,e.prev_length-=2;do++e.strstart<=c&&(e.ins_h=(e.ins_h<<e.hash_shift^e.window[e.strstart+X-1])&e.hash_mask,A=e.prev[e.strstart&e.w_mask]=e.head[e.ins_h],e.head[e.ins_h]=e.strstart);while(--e.prev_length!==0);if(e.match_available=0,e.match_length=X-1,e.strstart++,i&&(he(e,!1),e.strm.avail_out===0))return ae}else if(e.match_available){if(i=L._tr_tally(e,0,e.window[e.strstart-1]),i&&he(e,!1),e.strstart++,e.lookahead--,e.strm.avail_out===0)return ae}else e.match_available=1,e.strstart++,e.lookahead--}return e.match_available&&(i=L._tr_tally(e,0,e.window[e.strstart-1]),e.match_available=0),e.insert=e.strstart<X-1?e.strstart:X-1,S===n?(he(e,!0),e.strm.avail_out===0?Ae:me):e.last_lit&&(he(e,!1),e.strm.avail_out===0)?ae:ee}function Qe(e,S){for(var A,i,c,k,J=e.window;;){if(e.lookahead<=W){if(Ce(e),e.lookahead<=W&&S===t)return ae;if(e.lookahead===0)break}if(e.match_length=0,e.lookahead>=X&&e.strstart>0&&(c=e.strstart-1,i=J[c],i===J[++c]&&i===J[++c]&&i===J[++c])){k=e.strstart+W;do;while(i===J[++c]&&i===J[++c]&&i===J[++c]&&i===J[++c]&&i===J[++c]&&i===J[++c]&&i===J[++c]&&i===J[++c]&&c<k);e.match_length=W-(k-c),e.match_length>e.lookahead&&(e.match_length=e.lookahead)}if(e.match_length>=X?(A=L._tr_tally(e,1,e.match_length-X),e.lookahead-=e.match_length,e.strstart+=e.match_length,e.match_length=0):(A=L._tr_tally(e,0,e.window[e.strstart]),e.lookahead--,e.strstart++),A&&(he(e,!1),e.strm.avail_out===0))return ae}return e.insert=0,S===n?(he(e,!0),e.strm.avail_out===0?Ae:me):e.last_lit&&(he(e,!1),e.strm.avail_out===0)?ae:ee}function Ve(e,S){for(var A;;){if(e.lookahead===0&&(Ce(e),e.lookahead===0)){if(S===t)return ae;break}if(e.match_length=0,A=L._tr_tally(e,0,e.window[e.strstart]),e.lookahead--,e.strstart++,A&&(he(e,!1),e.strm.avail_out===0))return ae}return e.insert=0,S===n?(he(e,!0),e.strm.avail_out===0?Ae:me):e.last_lit&&(he(e,!1),e.strm.avail_out===0)?ae:ee}function Ee(e,S,A,i,c){this.good_length=e,this.max_lazy=S,this.nice_length=A,this.max_chain=i,this.func=c}var Oe;Oe=[new Ee(0,0,0,0,Je),new Ee(4,4,8,4,Ke),new Ee(4,5,16,8,Ke),new Ee(4,6,32,32,Ke),new Ee(4,4,16,16,Le),new Ee(8,16,32,32,Le),new Ee(8,16,128,128,Le),new Ee(8,32,128,256,Le),new Ee(32,128,258,1024,Le),new Ee(32,258,258,4096,Le)];function Ge(e){e.window_size=2*e.w_size,Te(e.head),e.max_lazy_match=Oe[e.level].max_lazy,e.good_match=Oe[e.level].good_length,e.nice_match=Oe[e.level].nice_length,e.max_chain_length=Oe[e.level].max_chain,e.strstart=0,e.block_start=0,e.lookahead=0,e.insert=0,e.match_length=e.prev_length=X-1,e.match_available=0,e.ins_h=0}function o(){this.strm=null,this.status=0,this.pending_buf=null,this.pending_buf_size=0,this.pending_out=0,this.pending=0,this.wrap=0,this.gzhead=null,this.gzindex=0,this.method=B,this.last_flush=-1,this.w_size=0,this.w_bits=0,this.w_mask=0,this.window=null,this.window_size=0,this.prev=null,this.head=null,this.ins_h=0,this.hash_size=0,this.hash_bits=0,this.hash_mask=0,this.hash_shift=0,this.block_start=0,this.match_length=0,this.prev_match=0,this.match_available=0,this.strstart=0,this.match_start=0,this.lookahead=0,this.prev_length=0,this.max_chain_length=0,this.max_lazy_match=0,this.level=0,this.strategy=0,this.good_match=0,this.nice_match=0,this.dyn_ltree=new p.Buf16(Q*2),this.dyn_dtree=new p.Buf16((2*H+1)*2),this.bl_tree=new p.Buf16((2*K+1)*2),Te(this.dyn_ltree),Te(this.dyn_dtree),Te(this.bl_tree),this.l_desc=null,this.d_desc=null,this.bl_desc=null,this.bl_count=new p.Buf16($+1),this.heap=new p.Buf16(2*N+1),Te(this.heap),this.heap_len=0,this.heap_max=0,this.depth=new p.Buf16(2*N+1),Te(this.depth),this.l_buf=0,this.lit_bufsize=0,this.last_lit=0,this.d_buf=0,this.opt_len=0,this.static_len=0,this.matches=0,this.insert=0,this.bi_buf=0,this.bi_valid=0}function C(e){var S;return!e||!e.state?ve(e,_):(e.total_in=e.total_out=0,e.data_type=I,S=e.state,S.pending=0,S.pending_out=0,S.wrap<0&&(S.wrap=-S.wrap),S.status=S.wrap?ke:ne,e.adler=S.wrap===2?0:1,S.last_flush=t,L._tr_init(S),u)}function F(e){var S=C(e);return S===u&&Ge(e.state),S}function j(e,S){return!e||!e.state||e.state.wrap!==2?_:(e.state.gzhead=S,u)}function w(e,S,A,i,c,k){if(!e)return _;var J=1;if(S===z&&(S=6),i<0?(J=0,i=-i):i>15&&(J=2,i-=16),c<1||c>x||A!==B||i<8||i>15||S<0||S>9||k<0||k>E)return ve(e,_);i===8&&(i=9);var V=new o;return e.state=V,V.strm=e,V.wrap=J,V.gzhead=null,V.w_bits=i,V.w_size=1<<V.w_bits,V.w_mask=V.w_size-1,V.hash_bits=c+7,V.hash_size=1<<V.hash_bits,V.hash_mask=V.hash_size-1,V.hash_shift=~~((V.hash_bits+X-1)/X),V.window=new p.Buf8(V.w_size*2),V.head=new p.Buf16(V.hash_size),V.prev=new p.Buf16(V.w_size),V.lit_bufsize=1<<c+6,V.pending_buf_size=V.lit_bufsize*4,V.pending_buf=new p.Buf8(V.pending_buf_size),V.d_buf=1*V.lit_bufsize,V.l_buf=3*V.lit_bufsize,V.level=S,V.strategy=k,V.method=A,F(e)}function y(e,S){return w(e,S,B,D,Y,R)}function r(e,S){var A,i,c,k;if(!e||!e.state||S>v||S<0)return e?ve(e,_):_;if(i=e.state,!e.output||!e.input&&e.avail_in!==0||i.status===oe&&S!==n)return ve(e,e.avail_out===0?l:_);if(i.strm=e,A=i.last_flush,i.last_flush=S,i.status===ke)if(i.wrap===2)e.adler=0,ie(i,31),ie(i,139),ie(i,8),i.gzhead?(ie(i,(i.gzhead.text?1:0)+(i.gzhead.hcrc?2:0)+(i.gzhead.extra?4:0)+(i.gzhead.name?8:0)+(i.gzhead.comment?16:0)),ie(i,i.gzhead.time&255),ie(i,i.gzhead.time>>8&255),ie(i,i.gzhead.time>>16&255),ie(i,i.gzhead.time>>24&255),ie(i,i.level===9?2:i.strategy>=s||i.level<2?4:0),ie(i,i.gzhead.os&255),i.gzhead.extra&&i.gzhead.extra.length&&(ie(i,i.gzhead.extra.length&255),ie(i,i.gzhead.extra.length>>8&255)),i.gzhead.hcrc&&(e.adler=g(e.adler,i.pending_buf,i.pending,0)),i.gzindex=0,i.status=_e):(ie(i,0),ie(i,0),ie(i,0),ie(i,0),ie(i,0),ie(i,i.level===9?2:i.strategy>=s||i.level<2?4:0),ie(i,te),i.status=ne);else{var J=B+(i.w_bits-8<<4)<<8,V=-1;i.strategy>=s||i.level<2?V=0:i.level<6?V=1:i.level===6?V=2:V=3,J|=V<<6,i.strstart!==0&&(J|=be),J+=31-J%31,i.status=ne,De(i,J),i.strstart!==0&&(De(i,e.adler>>>16),De(i,e.adler&65535)),e.adler=1}if(i.status===_e)if(i.gzhead.extra){for(c=i.pending;i.gzindex<(i.gzhead.extra.length&65535)&&!(i.pending===i.pending_buf_size&&(i.gzhead.hcrc&&i.pending>c&&(e.adler=g(e.adler,i.pending_buf,i.pending-c,c)),xe(e),c=i.pending,i.pending===i.pending_buf_size));)ie(i,i.gzhead.extra[i.gzindex]&255),i.gzindex++;i.gzhead.hcrc&&i.pending>c&&(e.adler=g(e.adler,i.pending_buf,i.pending-c,c)),i.gzindex===i.gzhead.extra.length&&(i.gzindex=0,i.status=se)}else i.status=se;if(i.status===se)if(i.gzhead.name){c=i.pending;do{if(i.pending===i.pending_buf_size&&(i.gzhead.hcrc&&i.pending>c&&(e.adler=g(e.adler,i.pending_buf,i.pending-c,c)),xe(e),c=i.pending,i.pending===i.pending_buf_size)){k=1;break}i.gzindex<i.gzhead.name.length?k=i.gzhead.name.charCodeAt(i.gzindex++)&255:k=0,ie(i,k)}while(k!==0);i.gzhead.hcrc&&i.pending>c&&(e.adler=g(e.adler,i.pending_buf,i.pending-c,c)),k===0&&(i.gzindex=0,i.status=ce)}else i.status=ce;if(i.status===ce)if(i.gzhead.comment){c=i.pending;do{if(i.pending===i.pending_buf_size&&(i.gzhead.hcrc&&i.pending>c&&(e.adler=g(e.adler,i.pending_buf,i.pending-c,c)),xe(e),c=i.pending,i.pending===i.pending_buf_size)){k=1;break}i.gzindex<i.gzhead.comment.length?k=i.gzhead.comment.charCodeAt(i.gzindex++)&255:k=0,ie(i,k)}while(k!==0);i.gzhead.hcrc&&i.pending>c&&(e.adler=g(e.adler,i.pending_buf,i.pending-c,c)),k===0&&(i.status=ue)}else i.status=ue;if(i.status===ue&&(i.gzhead.hcrc?(i.pending+2>i.pending_buf_size&&xe(e),i.pending+2<=i.pending_buf_size&&(ie(i,e.adler&255),ie(i,e.adler>>8&255),e.adler=0,i.status=ne)):i.status=ne),i.pending!==0){if(xe(e),e.avail_out===0)return i.last_flush=-1,u}else if(e.avail_in===0&&Ie(S)<=Ie(A)&&S!==n)return ve(e,l);if(i.status===oe&&e.avail_in!==0)return ve(e,l);if(e.avail_in!==0||i.lookahead!==0||S!==t&&i.status!==oe){var P=i.strategy===s?Ve(i,S):i.strategy===d?Qe(i,S):Oe[i.level].func(i,S);if((P===Ae||P===me)&&(i.status=oe),P===ae||P===Ae)return e.avail_out===0&&(i.last_flush=-1),u;if(P===ee&&(S===a?L._tr_align(i):S!==v&&(L._tr_stored_block(i,0,0,!1),S===h&&(Te(i.head),i.lookahead===0&&(i.strstart=0,i.block_start=0,i.insert=0))),xe(e),e.avail_out===0))return i.last_flush=-1,u}return S!==n?u:i.wrap<=0?f:(i.wrap===2?(ie(i,e.adler&255),ie(i,e.adler>>8&255),ie(i,e.adler>>16&255),ie(i,e.adler>>24&255),ie(i,e.total_in&255),ie(i,e.total_in>>8&255),ie(i,e.total_in>>16&255),ie(i,e.total_in>>24&255)):(De(i,e.adler>>>16),De(i,e.adler&65535)),xe(e),i.wrap>0&&(i.wrap=-i.wrap),i.pending!==0?u:f)}function M(e){var S;return!e||!e.state?_:(S=e.state.status,S!==ke&&S!==_e&&S!==se&&S!==ce&&S!==ue&&S!==ne&&S!==oe?ve(e,_):(e.state=null,S===ne?ve(e,b):u))}function G(e,S){var A=S.length,i,c,k,J,V,P,fe,He;if(!e||!e.state||(i=e.state,J=i.wrap,J===2||J===1&&i.status!==ke||i.lookahead))return _;for(J===1&&(e.adler=O(e.adler,S,A,0)),i.wrap=0,A>=i.w_size&&(J===0&&(Te(i.head),i.strstart=0,i.block_start=0,i.insert=0),He=new p.Buf8(i.w_size),p.arraySet(He,S,A-i.w_size,i.w_size,0),S=He,A=i.w_size),V=e.avail_in,P=e.next_in,fe=e.input,e.avail_in=A,e.next_in=0,e.input=S,Ce(i);i.lookahead>=X;){c=i.strstart,k=i.lookahead-(X-1);do i.ins_h=(i.ins_h<<i.hash_shift^i.window[c+X-1])&i.hash_mask,i.prev[c&i.w_mask]=i.head[i.ins_h],i.head[i.ins_h]=c,c++;while(--k);i.strstart=c,i.lookahead=X-1,Ce(i)}return i.strstart+=i.lookahead,i.block_start=i.strstart,i.insert=i.lookahead,i.lookahead=0,i.match_length=i.prev_length=X-1,i.match_available=0,e.next_in=P,e.input=fe,e.avail_in=V,i.wrap=J,u}return Be.deflateInit=y,Be.deflateInit2=w,Be.deflateReset=F,Be.deflateResetKeep=C,Be.deflateSetHeader=j,Be.deflate=r,Be.deflateEnd=M,Be.deflateSetDictionary=G,Be.deflateInfo="pako deflate (from Nodeca project)",Be}var Xe={},yt;function Tt(){if(yt)return Xe;yt=1;var p=Ne(),L=!0,O=!0;try{String.fromCharCode.apply(null,[0])}catch{L=!1}try{String.fromCharCode.apply(null,new Uint8Array(1))}catch{O=!1}for(var g=new p.Buf8(256),Z=0;Z<256;Z++)g[Z]=Z>=252?6:Z>=248?5:Z>=240?4:Z>=224?3:Z>=192?2:1;g[254]=g[254]=1,Xe.string2buf=function(a){var h,n,v,u,f,_=a.length,b=0;for(u=0;u<_;u++)n=a.charCodeAt(u),(n&64512)===55296&&u+1<_&&(v=a.charCodeAt(u+1),(v&64512)===56320&&(n=65536+(n-55296<<10)+(v-56320),u++)),b+=n<128?1:n<2048?2:n<65536?3:4;for(h=new p.Buf8(b),f=0,u=0;f<b;u++)n=a.charCodeAt(u),(n&64512)===55296&&u+1<_&&(v=a.charCodeAt(u+1),(v&64512)===56320&&(n=65536+(n-55296<<10)+(v-56320),u++)),n<128?h[f++]=n:n<2048?(h[f++]=192|n>>>6,h[f++]=128|n&63):n<65536?(h[f++]=224|n>>>12,h[f++]=128|n>>>6&63,h[f++]=128|n&63):(h[f++]=240|n>>>18,h[f++]=128|n>>>12&63,h[f++]=128|n>>>6&63,h[f++]=128|n&63);return h};function t(a,h){if(h<65534&&(a.subarray&&O||!a.subarray&&L))return String.fromCharCode.apply(null,p.shrinkBuf(a,h));for(var n="",v=0;v<h;v++)n+=String.fromCharCode(a[v]);return n}return Xe.buf2binstring=function(a){return t(a,a.length)},Xe.binstring2buf=function(a){for(var h=new p.Buf8(a.length),n=0,v=h.length;n<v;n++)h[n]=a.charCodeAt(n);return h},Xe.buf2string=function(a,h){var n,v,u,f,_=h||a.length,b=new Array(_*2);for(v=0,n=0;n<_;){if(u=a[n++],u<128){b[v++]=u;continue}if(f=g[u],f>4){b[v++]=65533,n+=f-1;continue}for(u&=f===2?31:f===3?15:7;f>1&&n<_;)u=u<<6|a[n++]&63,f--;if(f>1){b[v++]=65533;continue}u<65536?b[v++]=u:(u-=65536,b[v++]=55296|u>>10&1023,b[v++]=56320|u&1023)}return t(b,v)},Xe.utf8border=function(a,h){var n;for(h=h||a.length,h>a.length&&(h=a.length),n=h-1;n>=0&&(a[n]&192)===128;)n--;return n<0||n===0?h:n+g[a[n]]>h?n:h},Xe}var st,zt;function Rt(){if(zt)return st;zt=1;function p(){this.input=null,this.next_in=0,this.avail_in=0,this.total_in=0,this.output=null,this.next_out=0,this.avail_out=0,this.total_out=0,this.msg="",this.state=null,this.data_type=2,this.adler=0}return st=p,st}var It;function Jt(){if(It)return Pe;It=1;var p=$t(),L=Ne(),O=Tt(),g=ht(),Z=Rt(),t=Object.prototype.toString,a=0,h=4,n=0,v=1,u=2,f=-1,_=0,b=8;function l(d){if(!(this instanceof l))return new l(d);this.options=L.assign({level:f,method:b,chunkSize:16384,windowBits:15,memLevel:8,strategy:_,to:""},d||{});var E=this.options;E.raw&&E.windowBits>0?E.windowBits=-E.windowBits:E.gzip&&E.windowBits>0&&E.windowBits<16&&(E.windowBits+=16),this.err=0,this.msg="",this.ended=!1,this.chunks=[],this.strm=new Z,this.strm.avail_out=0;var R=p.deflateInit2(this.strm,E.level,E.method,E.windowBits,E.memLevel,E.strategy);if(R!==n)throw new Error(g[R]);if(E.header&&p.deflateSetHeader(this.strm,E.header),E.dictionary){var I;if(typeof E.dictionary=="string"?I=O.string2buf(E.dictionary):t.call(E.dictionary)==="[object ArrayBuffer]"?I=new Uint8Array(E.dictionary):I=E.dictionary,R=p.deflateSetDictionary(this.strm,I),R!==n)throw new Error(g[R]);this._dict_set=!0}}l.prototype.push=function(d,E){var R=this.strm,I=this.options.chunkSize,B,x;if(this.ended)return!1;x=E===~~E?E:E===!0?h:a,typeof d=="string"?R.input=O.string2buf(d):t.call(d)==="[object ArrayBuffer]"?R.input=new Uint8Array(d):R.input=d,R.next_in=0,R.avail_in=R.input.length;do{if(R.avail_out===0&&(R.output=new L.Buf8(I),R.next_out=0,R.avail_out=I),B=p.deflate(R,x),B!==v&&B!==n)return this.onEnd(B),this.ended=!0,!1;(R.avail_out===0||R.avail_in===0&&(x===h||x===u))&&(this.options.to==="string"?this.onData(O.buf2binstring(L.shrinkBuf(R.output,R.next_out))):this.onData(L.shrinkBuf(R.output,R.next_out)))}while((R.avail_in>0||R.avail_out===0)&&B!==v);return x===h?(B=p.deflateEnd(this.strm),this.onEnd(B),this.ended=!0,B===n):(x===u&&(this.onEnd(n),R.avail_out=0),!0)},l.prototype.onData=function(d){this.chunks.push(d)},l.prototype.onEnd=function(d){d===n&&(this.options.to==="string"?this.result=this.chunks.join(""):this.result=L.flattenChunks(this.chunks)),this.chunks=[],this.err=d,this.msg=this.strm.msg};function z(d,E){var R=new l(E);if(R.push(d,!0),R.err)throw R.msg||g[R.err];return R.result}function m(d,E){return E=E||{},E.raw=!0,z(d,E)}function s(d,E){return E=E||{},E.gzip=!0,z(d,E)}return Pe.Deflate=l,Pe.deflate=z,Pe.deflateRaw=m,Pe.gzip=s,Pe}var je={},Re={},ut,Dt;function Qt(){if(Dt)return ut;Dt=1;var p=30,L=12;return ut=function(g,Z){var t,a,h,n,v,u,f,_,b,l,z,m,s,d,E,R,I,B,x,D,Y,U,q,N,H;t=g.state,a=g.next_in,N=g.input,h=a+(g.avail_in-5),n=g.next_out,H=g.output,v=n-(Z-g.avail_out),u=n+(g.avail_out-257),f=t.dmax,_=t.wsize,b=t.whave,l=t.wnext,z=t.window,m=t.hold,s=t.bits,d=t.lencode,E=t.distcode,R=(1<<t.lenbits)-1,I=(1<<t.distbits)-1;e:do{s<15&&(m+=N[a++]<<s,s+=8,m+=N[a++]<<s,s+=8),B=d[m&R];t:for(;;){if(x=B>>>24,m>>>=x,s-=x,x=B>>>16&255,x===0)H[n++]=B&65535;else if(x&16){D=B&65535,x&=15,x&&(s<x&&(m+=N[a++]<<s,s+=8),D+=m&(1<<x)-1,m>>>=x,s-=x),s<15&&(m+=N[a++]<<s,s+=8,m+=N[a++]<<s,s+=8),B=E[m&I];a:for(;;){if(x=B>>>24,m>>>=x,s-=x,x=B>>>16&255,x&16){if(Y=B&65535,x&=15,s<x&&(m+=N[a++]<<s,s+=8,s<x&&(m+=N[a++]<<s,s+=8)),Y+=m&(1<<x)-1,Y>f){g.msg="invalid distance too far back",t.mode=p;break e}if(m>>>=x,s-=x,x=n-v,Y>x){if(x=Y-x,x>b&&t.sane){g.msg="invalid distance too far back",t.mode=p;break e}if(U=0,q=z,l===0){if(U+=_-x,x<D){D-=x;do H[n++]=z[U++];while(--x);U=n-Y,q=H}}else if(l<x){if(U+=_+l-x,x-=l,x<D){D-=x;do H[n++]=z[U++];while(--x);if(U=0,l<D){x=l,D-=x;do H[n++]=z[U++];while(--x);U=n-Y,q=H}}}else if(U+=l-x,x<D){D-=x;do H[n++]=z[U++];while(--x);U=n-Y,q=H}for(;D>2;)H[n++]=q[U++],H[n++]=q[U++],H[n++]=q[U++],D-=3;D&&(H[n++]=q[U++],D>1&&(H[n++]=q[U++]))}else{U=n-Y;do H[n++]=H[U++],H[n++]=H[U++],H[n++]=H[U++],D-=3;while(D>2);D&&(H[n++]=H[U++],D>1&&(H[n++]=H[U++]))}}else if((x&64)===0){B=E[(B&65535)+(m&(1<<x)-1)];continue a}else{g.msg="invalid distance code",t.mode=p;break e}break}}else if((x&64)===0){B=d[(B&65535)+(m&(1<<x)-1)];continue t}else if(x&32){t.mode=L;break e}else{g.msg="invalid literal/length code",t.mode=p;break e}break}}while(a<h&&n<u);D=s>>3,a-=D,s-=D<<3,m&=(1<<s)-1,g.next_in=a,g.next_out=n,g.avail_in=a<h?5+(h-a):5-(a-h),g.avail_out=n<u?257+(u-n):257-(n-u),t.hold=m,t.bits=s},ut}var _t,Ct;function Gt(){if(Ct)return _t;Ct=1;var p=Ne(),L=15,O=852,g=592,Z=0,t=1,a=2,h=[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],n=[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],v=[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],u=[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];return _t=function(_,b,l,z,m,s,d,E){var R=E.bits,I=0,B=0,x=0,D=0,Y=0,U=0,q=0,N=0,H=0,K=0,Q,$,X,W,re,be=null,ke=0,_e,se=new p.Buf16(L+1),ce=new p.Buf16(L+1),ue=null,ne=0,oe,ae,ee;for(I=0;I<=L;I++)se[I]=0;for(B=0;B<z;B++)se[b[l+B]]++;for(Y=R,D=L;D>=1&&se[D]===0;D--);if(Y>D&&(Y=D),D===0)return m[s++]=1<<24|64<<16|0,m[s++]=1<<24|64<<16|0,E.bits=1,0;for(x=1;x<D&&se[x]===0;x++);for(Y<x&&(Y=x),N=1,I=1;I<=L;I++)if(N<<=1,N-=se[I],N<0)return-1;if(N>0&&(_===Z||D!==1))return-1;for(ce[1]=0,I=1;I<L;I++)ce[I+1]=ce[I]+se[I];for(B=0;B<z;B++)b[l+B]!==0&&(d[ce[b[l+B]]++]=B);if(_===Z?(be=ue=d,_e=19):_===t?(be=h,ke-=257,ue=n,ne-=257,_e=256):(be=v,ue=u,_e=-1),K=0,B=0,I=x,re=s,U=Y,q=0,X=-1,H=1<<Y,W=H-1,_===t&&H>O||_===a&&H>g)return 1;for(;;){oe=I-q,d[B]<_e?(ae=0,ee=d[B]):d[B]>_e?(ae=ue[ne+d[B]],ee=be[ke+d[B]]):(ae=96,ee=0),Q=1<<I-q,$=1<<U,x=$;do $-=Q,m[re+(K>>q)+$]=oe<<24|ae<<16|ee|0;while($!==0);for(Q=1<<I-1;K&Q;)Q>>=1;if(Q!==0?(K&=Q-1,K+=Q):K=0,B++,--se[I]===0){if(I===D)break;I=b[l+d[B]]}if(I>Y&&(K&W)!==X){for(q===0&&(q=Y),re+=x,U=I-q,N=1<<U;U+q<D&&(N-=se[U+q],!(N<=0));)U++,N<<=1;if(H+=1<<U,_===t&&H>O||_===a&&H>g)return 1;X=K&W,m[X]=Y<<24|U<<16|re-s|0}}return K!==0&&(m[re+K]=I-q<<24|64<<16|0),E.bits=Y,0},_t}var Mt;function ea(){if(Mt)return Re;Mt=1;var p=Ne(),L=kt(),O=St(),g=Qt(),Z=Gt(),t=0,a=1,h=2,n=4,v=5,u=6,f=0,_=1,b=2,l=-2,z=-3,m=-4,s=-5,d=8,E=1,R=2,I=3,B=4,x=5,D=6,Y=7,U=8,q=9,N=10,H=11,K=12,Q=13,$=14,X=15,W=16,re=17,be=18,ke=19,_e=20,se=21,ce=22,ue=23,ne=24,oe=25,ae=26,ee=27,Ae=28,me=29,te=30,ve=31,Ie=32,Te=852,xe=592,he=15,ie=he;function De(w){return(w>>>24&255)+(w>>>8&65280)+((w&65280)<<8)+((w&255)<<24)}function $e(){this.mode=0,this.last=!1,this.wrap=0,this.havedict=!1,this.flags=0,this.dmax=0,this.check=0,this.total=0,this.head=null,this.wbits=0,this.wsize=0,this.whave=0,this.wnext=0,this.window=null,this.hold=0,this.bits=0,this.length=0,this.offset=0,this.extra=0,this.lencode=null,this.distcode=null,this.lenbits=0,this.distbits=0,this.ncode=0,this.nlen=0,this.ndist=0,this.have=0,this.next=null,this.lens=new p.Buf16(320),this.work=new p.Buf16(288),this.lendyn=null,this.distdyn=null,this.sane=0,this.back=0,this.was=0}function Ue(w){var y;return!w||!w.state?l:(y=w.state,w.total_in=w.total_out=y.total=0,w.msg="",y.wrap&&(w.adler=y.wrap&1),y.mode=E,y.last=0,y.havedict=0,y.dmax=32768,y.head=null,y.hold=0,y.bits=0,y.lencode=y.lendyn=new p.Buf32(Te),y.distcode=y.distdyn=new p.Buf32(xe),y.sane=1,y.back=-1,f)}function Ce(w){var y;return!w||!w.state?l:(y=w.state,y.wsize=0,y.whave=0,y.wnext=0,Ue(w))}function Je(w,y){var r,M;return!w||!w.state||(M=w.state,y<0?(r=0,y=-y):(r=(y>>4)+1,y<48&&(y&=15)),y&&(y<8||y>15))?l:(M.window!==null&&M.wbits!==y&&(M.window=null),M.wrap=r,M.wbits=y,Ce(w))}function Ke(w,y){var r,M;return w?(M=new $e,w.state=M,M.window=null,r=Je(w,y),r!==f&&(w.state=null),r):l}function Le(w){return Ke(w,ie)}var Qe=!0,Ve,Ee;function Oe(w){if(Qe){var y;for(Ve=new p.Buf32(512),Ee=new p.Buf32(32),y=0;y<144;)w.lens[y++]=8;for(;y<256;)w.lens[y++]=9;for(;y<280;)w.lens[y++]=7;for(;y<288;)w.lens[y++]=8;for(Z(a,w.lens,0,288,Ve,0,w.work,{bits:9}),y=0;y<32;)w.lens[y++]=5;Z(h,w.lens,0,32,Ee,0,w.work,{bits:5}),Qe=!1}w.lencode=Ve,w.lenbits=9,w.distcode=Ee,w.distbits=5}function Ge(w,y,r,M){var G,e=w.state;return e.window===null&&(e.wsize=1<<e.wbits,e.wnext=0,e.whave=0,e.window=new p.Buf8(e.wsize)),M>=e.wsize?(p.arraySet(e.window,y,r-e.wsize,e.wsize,0),e.wnext=0,e.whave=e.wsize):(G=e.wsize-e.wnext,G>M&&(G=M),p.arraySet(e.window,y,r-M,G,e.wnext),M-=G,M?(p.arraySet(e.window,y,r-M,M,0),e.wnext=M,e.whave=e.wsize):(e.wnext+=G,e.wnext===e.wsize&&(e.wnext=0),e.whave<e.wsize&&(e.whave+=G))),0}function o(w,y){var r,M,G,e,S,A,i,c,k,J,V,P,fe,He,de=0,le,we,Se,ze,at,rt,ge,Me,pe=new p.Buf8(4),qe,Fe,Xt=[16,17,18,0,8,7,9,6,10,5,11,4,12,3,13,2,14,1,15];if(!w||!w.state||!w.output||!w.input&&w.avail_in!==0)return l;r=w.state,r.mode===K&&(r.mode=Q),S=w.next_out,G=w.output,i=w.avail_out,e=w.next_in,M=w.input,A=w.avail_in,c=r.hold,k=r.bits,J=A,V=i,Me=f;e:for(;;)switch(r.mode){case E:if(r.wrap===0){r.mode=Q;break}for(;k<16;){if(A===0)break e;A--,c+=M[e++]<<k,k+=8}if(r.wrap&2&&c===35615){r.check=0,pe[0]=c&255,pe[1]=c>>>8&255,r.check=O(r.check,pe,2,0),c=0,k=0,r.mode=R;break}if(r.flags=0,r.head&&(r.head.done=!1),!(r.wrap&1)||(((c&255)<<8)+(c>>8))%31){w.msg="incorrect header check",r.mode=te;break}if((c&15)!==d){w.msg="unknown compression method",r.mode=te;break}if(c>>>=4,k-=4,ge=(c&15)+8,r.wbits===0)r.wbits=ge;else if(ge>r.wbits){w.msg="invalid window size",r.mode=te;break}r.dmax=1<<ge,w.adler=r.check=1,r.mode=c&512?N:K,c=0,k=0;break;case R:for(;k<16;){if(A===0)break e;A--,c+=M[e++]<<k,k+=8}if(r.flags=c,(r.flags&255)!==d){w.msg="unknown compression method",r.mode=te;break}if(r.flags&57344){w.msg="unknown header flags set",r.mode=te;break}r.head&&(r.head.text=c>>8&1),r.flags&512&&(pe[0]=c&255,pe[1]=c>>>8&255,r.check=O(r.check,pe,2,0)),c=0,k=0,r.mode=I;case I:for(;k<32;){if(A===0)break e;A--,c+=M[e++]<<k,k+=8}r.head&&(r.head.time=c),r.flags&512&&(pe[0]=c&255,pe[1]=c>>>8&255,pe[2]=c>>>16&255,pe[3]=c>>>24&255,r.check=O(r.check,pe,4,0)),c=0,k=0,r.mode=B;case B:for(;k<16;){if(A===0)break e;A--,c+=M[e++]<<k,k+=8}r.head&&(r.head.xflags=c&255,r.head.os=c>>8),r.flags&512&&(pe[0]=c&255,pe[1]=c>>>8&255,r.check=O(r.check,pe,2,0)),c=0,k=0,r.mode=x;case x:if(r.flags&1024){for(;k<16;){if(A===0)break e;A--,c+=M[e++]<<k,k+=8}r.length=c,r.head&&(r.head.extra_len=c),r.flags&512&&(pe[0]=c&255,pe[1]=c>>>8&255,r.check=O(r.check,pe,2,0)),c=0,k=0}else r.head&&(r.head.extra=null);r.mode=D;case D:if(r.flags&1024&&(P=r.length,P>A&&(P=A),P&&(r.head&&(ge=r.head.extra_len-r.length,r.head.extra||(r.head.extra=new Array(r.head.extra_len)),p.arraySet(r.head.extra,M,e,P,ge)),r.flags&512&&(r.check=O(r.check,M,P,e)),A-=P,e+=P,r.length-=P),r.length))break e;r.length=0,r.mode=Y;case Y:if(r.flags&2048){if(A===0)break e;P=0;do ge=M[e+P++],r.head&&ge&&r.length<65536&&(r.head.name+=String.fromCharCode(ge));while(ge&&P<A);if(r.flags&512&&(r.check=O(r.check,M,P,e)),A-=P,e+=P,ge)break e}else r.head&&(r.head.name=null);r.length=0,r.mode=U;case U:if(r.flags&4096){if(A===0)break e;P=0;do ge=M[e+P++],r.head&&ge&&r.length<65536&&(r.head.comment+=String.fromCharCode(ge));while(ge&&P<A);if(r.flags&512&&(r.check=O(r.check,M,P,e)),A-=P,e+=P,ge)break e}else r.head&&(r.head.comment=null);r.mode=q;case q:if(r.flags&512){for(;k<16;){if(A===0)break e;A--,c+=M[e++]<<k,k+=8}if(c!==(r.check&65535)){w.msg="header crc mismatch",r.mode=te;break}c=0,k=0}r.head&&(r.head.hcrc=r.flags>>9&1,r.head.done=!0),w.adler=r.check=0,r.mode=K;break;case N:for(;k<32;){if(A===0)break e;A--,c+=M[e++]<<k,k+=8}w.adler=r.check=De(c),c=0,k=0,r.mode=H;case H:if(r.havedict===0)return w.next_out=S,w.avail_out=i,w.next_in=e,w.avail_in=A,r.hold=c,r.bits=k,b;w.adler=r.check=1,r.mode=K;case K:if(y===v||y===u)break e;case Q:if(r.last){c>>>=k&7,k-=k&7,r.mode=ee;break}for(;k<3;){if(A===0)break e;A--,c+=M[e++]<<k,k+=8}switch(r.last=c&1,c>>>=1,k-=1,c&3){case 0:r.mode=$;break;case 1:if(Oe(r),r.mode=_e,y===u){c>>>=2,k-=2;break e}break;case 2:r.mode=re;break;case 3:w.msg="invalid block type",r.mode=te}c>>>=2,k-=2;break;case $:for(c>>>=k&7,k-=k&7;k<32;){if(A===0)break e;A--,c+=M[e++]<<k,k+=8}if((c&65535)!==(c>>>16^65535)){w.msg="invalid stored block lengths",r.mode=te;break}if(r.length=c&65535,c=0,k=0,r.mode=X,y===u)break e;case X:r.mode=W;case W:if(P=r.length,P){if(P>A&&(P=A),P>i&&(P=i),P===0)break e;p.arraySet(G,M,e,P,S),A-=P,e+=P,i-=P,S+=P,r.length-=P;break}r.mode=K;break;case re:for(;k<14;){if(A===0)break e;A--,c+=M[e++]<<k,k+=8}if(r.nlen=(c&31)+257,c>>>=5,k-=5,r.ndist=(c&31)+1,c>>>=5,k-=5,r.ncode=(c&15)+4,c>>>=4,k-=4,r.nlen>286||r.ndist>30){w.msg="too many length or distance symbols",r.mode=te;break}r.have=0,r.mode=be;case be:for(;r.have<r.ncode;){for(;k<3;){if(A===0)break e;A--,c+=M[e++]<<k,k+=8}r.lens[Xt[r.have++]]=c&7,c>>>=3,k-=3}for(;r.have<19;)r.lens[Xt[r.have++]]=0;if(r.lencode=r.lendyn,r.lenbits=7,qe={bits:r.lenbits},Me=Z(t,r.lens,0,19,r.lencode,0,r.work,qe),r.lenbits=qe.bits,Me){w.msg="invalid code lengths set",r.mode=te;break}r.have=0,r.mode=ke;case ke:for(;r.have<r.nlen+r.ndist;){for(;de=r.lencode[c&(1<<r.lenbits)-1],le=de>>>24,we=de>>>16&255,Se=de&65535,!(le<=k);){if(A===0)break e;A--,c+=M[e++]<<k,k+=8}if(Se<16)c>>>=le,k-=le,r.lens[r.have++]=Se;else{if(Se===16){for(Fe=le+2;k<Fe;){if(A===0)break e;A--,c+=M[e++]<<k,k+=8}if(c>>>=le,k-=le,r.have===0){w.msg="invalid bit length repeat",r.mode=te;break}ge=r.lens[r.have-1],P=3+(c&3),c>>>=2,k-=2}else if(Se===17){for(Fe=le+3;k<Fe;){if(A===0)break e;A--,c+=M[e++]<<k,k+=8}c>>>=le,k-=le,ge=0,P=3+(c&7),c>>>=3,k-=3}else{for(Fe=le+7;k<Fe;){if(A===0)break e;A--,c+=M[e++]<<k,k+=8}c>>>=le,k-=le,ge=0,P=11+(c&127),c>>>=7,k-=7}if(r.have+P>r.nlen+r.ndist){w.msg="invalid bit length repeat",r.mode=te;break}for(;P--;)r.lens[r.have++]=ge}}if(r.mode===te)break;if(r.lens[256]===0){w.msg="invalid code -- missing end-of-block",r.mode=te;break}if(r.lenbits=9,qe={bits:r.lenbits},Me=Z(a,r.lens,0,r.nlen,r.lencode,0,r.work,qe),r.lenbits=qe.bits,Me){w.msg="invalid literal/lengths set",r.mode=te;break}if(r.distbits=6,r.distcode=r.distdyn,qe={bits:r.distbits},Me=Z(h,r.lens,r.nlen,r.ndist,r.distcode,0,r.work,qe),r.distbits=qe.bits,Me){w.msg="invalid distances set",r.mode=te;break}if(r.mode=_e,y===u)break e;case _e:r.mode=se;case se:if(A>=6&&i>=258){w.next_out=S,w.avail_out=i,w.next_in=e,w.avail_in=A,r.hold=c,r.bits=k,g(w,V),S=w.next_out,G=w.output,i=w.avail_out,e=w.next_in,M=w.input,A=w.avail_in,c=r.hold,k=r.bits,r.mode===K&&(r.back=-1);break}for(r.back=0;de=r.lencode[c&(1<<r.lenbits)-1],le=de>>>24,we=de>>>16&255,Se=de&65535,!(le<=k);){if(A===0)break e;A--,c+=M[e++]<<k,k+=8}if(we&&(we&240)===0){for(ze=le,at=we,rt=Se;de=r.lencode[rt+((c&(1<<ze+at)-1)>>ze)],le=de>>>24,we=de>>>16&255,Se=de&65535,!(ze+le<=k);){if(A===0)break e;A--,c+=M[e++]<<k,k+=8}c>>>=ze,k-=ze,r.back+=ze}if(c>>>=le,k-=le,r.back+=le,r.length=Se,we===0){r.mode=ae;break}if(we&32){r.back=-1,r.mode=K;break}if(we&64){w.msg="invalid literal/length code",r.mode=te;break}r.extra=we&15,r.mode=ce;case ce:if(r.extra){for(Fe=r.extra;k<Fe;){if(A===0)break e;A--,c+=M[e++]<<k,k+=8}r.length+=c&(1<<r.extra)-1,c>>>=r.extra,k-=r.extra,r.back+=r.extra}r.was=r.length,r.mode=ue;case ue:for(;de=r.distcode[c&(1<<r.distbits)-1],le=de>>>24,we=de>>>16&255,Se=de&65535,!(le<=k);){if(A===0)break e;A--,c+=M[e++]<<k,k+=8}if((we&240)===0){for(ze=le,at=we,rt=Se;de=r.distcode[rt+((c&(1<<ze+at)-1)>>ze)],le=de>>>24,we=de>>>16&255,Se=de&65535,!(ze+le<=k);){if(A===0)break e;A--,c+=M[e++]<<k,k+=8}c>>>=ze,k-=ze,r.back+=ze}if(c>>>=le,k-=le,r.back+=le,we&64){w.msg="invalid distance code",r.mode=te;break}r.offset=Se,r.extra=we&15,r.mode=ne;case ne:if(r.extra){for(Fe=r.extra;k<Fe;){if(A===0)break e;A--,c+=M[e++]<<k,k+=8}r.offset+=c&(1<<r.extra)-1,c>>>=r.extra,k-=r.extra,r.back+=r.extra}if(r.offset>r.dmax){w.msg="invalid distance too far back",r.mode=te;break}r.mode=oe;case oe:if(i===0)break e;if(P=V-i,r.offset>P){if(P=r.offset-P,P>r.whave&&r.sane){w.msg="invalid distance too far back",r.mode=te;break}P>r.wnext?(P-=r.wnext,fe=r.wsize-P):fe=r.wnext-P,P>r.length&&(P=r.length),He=r.window}else He=G,fe=S-r.offset,P=r.length;P>i&&(P=i),i-=P,r.length-=P;do G[S++]=He[fe++];while(--P);r.length===0&&(r.mode=se);break;case ae:if(i===0)break e;G[S++]=r.length,i--,r.mode=se;break;case ee:if(r.wrap){for(;k<32;){if(A===0)break e;A--,c|=M[e++]<<k,k+=8}if(V-=i,w.total_out+=V,r.total+=V,V&&(w.adler=r.check=r.flags?O(r.check,G,V,S-V):L(r.check,G,V,S-V)),V=i,(r.flags?c:De(c))!==r.check){w.msg="incorrect data check",r.mode=te;break}c=0,k=0}r.mode=Ae;case Ae:if(r.wrap&&r.flags){for(;k<32;){if(A===0)break e;A--,c+=M[e++]<<k,k+=8}if(c!==(r.total&4294967295)){w.msg="incorrect length check",r.mode=te;break}c=0,k=0}r.mode=me;case me:Me=_;break e;case te:Me=z;break e;case ve:return m;case Ie:default:return l}return w.next_out=S,w.avail_out=i,w.next_in=e,w.avail_in=A,r.hold=c,r.bits=k,(r.wsize||V!==w.avail_out&&r.mode<te&&(r.mode<ee||y!==n))&&Ge(w,w.output,w.next_out,V-w.avail_out),J-=w.avail_in,V-=w.avail_out,w.total_in+=J,w.total_out+=V,r.total+=V,r.wrap&&V&&(w.adler=r.check=r.flags?O(r.check,G,V,w.next_out-V):L(r.check,G,V,w.next_out-V)),w.data_type=r.bits+(r.last?64:0)+(r.mode===K?128:0)+(r.mode===_e||r.mode===X?256:0),(J===0&&V===0||y===n)&&Me===f&&(Me=s),Me}function C(w){if(!w||!w.state)return l;var y=w.state;return y.window&&(y.window=null),w.state=null,f}function F(w,y){var r;return!w||!w.state||(r=w.state,(r.wrap&2)===0)?l:(r.head=y,y.done=!1,f)}function j(w,y){var r=y.length,M,G,e;return!w||!w.state||(M=w.state,M.wrap!==0&&M.mode!==H)?l:M.mode===H&&(G=1,G=L(G,y,r,0),G!==M.check)?z:(e=Ge(w,y,r,r),e?(M.mode=ve,m):(M.havedict=1,f))}return Re.inflateReset=Ce,Re.inflateReset2=Je,Re.inflateResetKeep=Ue,Re.inflateInit=Le,Re.inflateInit2=Ke,Re.inflate=o,Re.inflateEnd=C,Re.inflateGetHeader=F,Re.inflateSetDictionary=j,Re.inflateInfo="pako inflate (from Nodeca project)",Re}var dt,Bt;function Lt(){return Bt||(Bt=1,dt={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_BUF_ERROR:-5,Z_NO_COMPRESSION:0,Z_BEST_SPEED:1,Z_BEST_COMPRESSION:9,Z_DEFAULT_COMPRESSION:-1,Z_FILTERED:1,Z_HUFFMAN_ONLY:2,Z_RLE:3,Z_FIXED:4,Z_DEFAULT_STRATEGY:0,Z_BINARY:0,Z_TEXT:1,Z_UNKNOWN:2,Z_DEFLATED:8}),dt}var ct,Zt;function ta(){if(Zt)return ct;Zt=1;function p(){this.text=0,this.time=0,this.xflags=0,this.os=0,this.extra=null,this.extra_len=0,this.name="",this.comment="",this.hcrc=0,this.done=!1}return ct=p,ct}var Ot;function aa(){if(Ot)return je;Ot=1;var p=ea(),L=Ne(),O=Tt(),g=Lt(),Z=ht(),t=Rt(),a=ta(),h=Object.prototype.toString;function n(f){if(!(this instanceof n))return new n(f);this.options=L.assign({chunkSize:16384,windowBits:0,to:""},f||{});var _=this.options;_.raw&&_.windowBits>=0&&_.windowBits<16&&(_.windowBits=-_.windowBits,_.windowBits===0&&(_.windowBits=-15)),_.windowBits>=0&&_.windowBits<16&&!(f&&f.windowBits)&&(_.windowBits+=32),_.windowBits>15&&_.windowBits<48&&(_.windowBits&15)===0&&(_.windowBits|=15),this.err=0,this.msg="",this.ended=!1,this.chunks=[],this.strm=new t,this.strm.avail_out=0;var b=p.inflateInit2(this.strm,_.windowBits);if(b!==g.Z_OK)throw new Error(Z[b]);if(this.header=new a,p.inflateGetHeader(this.strm,this.header),_.dictionary&&(typeof _.dictionary=="string"?_.dictionary=O.string2buf(_.dictionary):h.call(_.dictionary)==="[object ArrayBuffer]"&&(_.dictionary=new Uint8Array(_.dictionary)),_.raw&&(b=p.inflateSetDictionary(this.strm,_.dictionary),b!==g.Z_OK)))throw new Error(Z[b])}n.prototype.push=function(f,_){var b=this.strm,l=this.options.chunkSize,z=this.options.dictionary,m,s,d,E,R,I=!1;if(this.ended)return!1;s=_===~~_?_:_===!0?g.Z_FINISH:g.Z_NO_FLUSH,typeof f=="string"?b.input=O.binstring2buf(f):h.call(f)==="[object ArrayBuffer]"?b.input=new Uint8Array(f):b.input=f,b.next_in=0,b.avail_in=b.input.length;do{if(b.avail_out===0&&(b.output=new L.Buf8(l),b.next_out=0,b.avail_out=l),m=p.inflate(b,g.Z_NO_FLUSH),m===g.Z_NEED_DICT&&z&&(m=p.inflateSetDictionary(this.strm,z)),m===g.Z_BUF_ERROR&&I===!0&&(m=g.Z_OK,I=!1),m!==g.Z_STREAM_END&&m!==g.Z_OK)return this.onEnd(m),this.ended=!0,!1;b.next_out&&(b.avail_out===0||m===g.Z_STREAM_END||b.avail_in===0&&(s===g.Z_FINISH||s===g.Z_SYNC_FLUSH))&&(this.options.to==="string"?(d=O.utf8border(b.output,b.next_out),E=b.next_out-d,R=O.buf2string(b.output,d),b.next_out=E,b.avail_out=l-E,E&&L.arraySet(b.output,b.output,d,E,0),this.onData(R)):this.onData(L.shrinkBuf(b.output,b.next_out))),b.avail_in===0&&b.avail_out===0&&(I=!0)}while((b.avail_in>0||b.avail_out===0)&&m!==g.Z_STREAM_END);return m===g.Z_STREAM_END&&(s=g.Z_FINISH),s===g.Z_FINISH?(m=p.inflateEnd(this.strm),this.onEnd(m),this.ended=!0,m===g.Z_OK):(s===g.Z_SYNC_FLUSH&&(this.onEnd(g.Z_OK),b.avail_out=0),!0)},n.prototype.onData=function(f){this.chunks.push(f)},n.prototype.onEnd=function(f){f===g.Z_OK&&(this.options.to==="string"?this.result=this.chunks.join(""):this.result=L.flattenChunks(this.chunks)),this.chunks=[],this.err=f,this.msg=this.strm.msg};function v(f,_){var b=new n(_);if(b.push(f,!0),b.err)throw b.msg||Z[b.err];return b.result}function u(f,_){return _=_||{},_.raw=!0,v(f,_)}return je.Inflate=n,je.inflate=v,je.inflateRaw=u,je.ungzip=v,je}var vt,Ft;function ra(){if(Ft)return vt;Ft=1;var p=Ne().assign,L=Jt(),O=aa(),g=Lt(),Z={};return p(Z,L,O,g),vt=Z,vt}var Ht;function ia(){return Ht||(Ht=1,(function(p){(function(){var L={},O;p.exports=L,typeof jt=="function"?O=ra():O=window.pako,(function(g,Z){g.toRGBA8=function(t){var a=t.width,h=t.height;if(t.tabs.acTL==null)return[g.toRGBA8.decodeImage(t.data,a,h,t).buffer];var n=[];t.frames[0].data==null&&(t.frames[0].data=t.data);for(var v,u=new Uint8Array(a*h*4),f=0;f<t.frames.length;f++){var _=t.frames[f],b=_.rect.x,l=_.rect.y,z=_.rect.width,m=_.rect.height,s=g.toRGBA8.decodeImage(_.data,z,m,t);if(f==0?v=s:_.blend==0?g._copyTile(s,z,m,v,a,h,b,l,0):_.blend==1&&g._copyTile(s,z,m,v,a,h,b,l,1),n.push(v.buffer),v=v.slice(0),_.dispose!=0){if(_.dispose==1)g._copyTile(u,z,m,v,a,h,b,l,0);else if(_.dispose==2){for(var d=f-1;t.frames[d].dispose==2;)d--;v=new Uint8Array(n[d]).slice(0)}}}return n},g.toRGBA8.decodeImage=function(t,a,h,n){var v=a*h,u=g.decode._getBPP(n),f=Math.ceil(a*u/8),_=new Uint8Array(v*4),b=new Uint32Array(_.buffer),l=n.ctype,z=n.depth,m=g._bin.readUshort;if(l==6){var s=v<<2;if(z==8)for(var d=0;d<s;d++)_[d]=t[d];if(z==16)for(var d=0;d<s;d++)_[d]=t[d<<1]}else if(l==2){var E=n.tabs.tRNS,R=-1,I=-1,B=-1;if(E&&(R=E[0],I=E[1],B=E[2]),z==8)for(var d=0;d<v;d++){var x=d<<2,D=d*3;_[x]=t[D],_[x+1]=t[D+1],_[x+2]=t[D+2],_[x+3]=255,R!=-1&&t[D]==R&&t[D+1]==I&&t[D+2]==B&&(_[x+3]=0)}if(z==16)for(var d=0;d<v;d++){var x=d<<2,D=d*6;_[x]=t[D],_[x+1]=t[D+2],_[x+2]=t[D+4],_[x+3]=255,R!=-1&&m(t,D)==R&&m(t,D+2)==I&&m(t,D+4)==B&&(_[x+3]=0)}}else if(l==3){var Y=n.tabs.PLTE,U=n.tabs.tRNS,q=U?U.length:0;if(z==1)for(var N=0;N<h;N++)for(var H=N*f,K=N*a,d=0;d<a;d++){var x=K+d<<2,Q=t[H+(d>>3)]>>7-((d&7)<<0)&1,$=3*Q;_[x]=Y[$],_[x+1]=Y[$+1],_[x+2]=Y[$+2],_[x+3]=Q<q?U[Q]:255}if(z==2)for(var N=0;N<h;N++)for(var H=N*f,K=N*a,d=0;d<a;d++){var x=K+d<<2,Q=t[H+(d>>2)]>>6-((d&3)<<1)&3,$=3*Q;_[x]=Y[$],_[x+1]=Y[$+1],_[x+2]=Y[$+2],_[x+3]=Q<q?U[Q]:255}if(z==4)for(var N=0;N<h;N++)for(var H=N*f,K=N*a,d=0;d<a;d++){var x=K+d<<2,Q=t[H+(d>>1)]>>4-((d&1)<<2)&15,$=3*Q;_[x]=Y[$],_[x+1]=Y[$+1],_[x+2]=Y[$+2],_[x+3]=Q<q?U[Q]:255}if(z==8)for(var d=0;d<v;d++){var x=d<<2,Q=t[d],$=3*Q;_[x]=Y[$],_[x+1]=Y[$+1],_[x+2]=Y[$+2],_[x+3]=Q<q?U[Q]:255}}else if(l==4){if(z==8)for(var d=0;d<v;d++){var x=d<<2,X=d<<1,W=t[X];_[x]=W,_[x+1]=W,_[x+2]=W,_[x+3]=t[X+1]}if(z==16)for(var d=0;d<v;d++){var x=d<<2,X=d<<2,W=t[X];_[x]=W,_[x+1]=W,_[x+2]=W,_[x+3]=t[X+2]}}else if(l==0){var R=n.tabs.tRNS?n.tabs.tRNS:-1;if(z==1)for(var d=0;d<v;d++){var W=255*(t[d>>3]>>7-(d&7)&1),re=W==R*255?0:255;b[d]=re<<24|W<<16|W<<8|W}if(z==2)for(var d=0;d<v;d++){var W=85*(t[d>>2]>>6-((d&3)<<1)&3),re=W==R*85?0:255;b[d]=re<<24|W<<16|W<<8|W}if(z==4)for(var d=0;d<v;d++){var W=17*(t[d>>1]>>4-((d&1)<<2)&15),re=W==R*17?0:255;b[d]=re<<24|W<<16|W<<8|W}if(z==8)for(var d=0;d<v;d++){var W=t[d],re=W==R?0:255;b[d]=re<<24|W<<16|W<<8|W}if(z==16)for(var d=0;d<v;d++){var W=t[d<<1],re=m(t,d<<1)==R?0:255;b[d]=re<<24|W<<16|W<<8|W}}return _},g.decode=function(t){for(var a=new Uint8Array(t),h=8,n=g._bin,v=n.readUshort,u=n.readUint,f={tabs:{},frames:[]},_=new Uint8Array(a.length),b=0,l,z=0,m=[137,80,78,71,13,10,26,10],s=0;s<8;s++)if(a[s]!=m[s])throw"The input is not a PNG file!";for(;h<a.length;){var d=n.readUint(a,h);h+=4;var E=n.readASCII(a,h,4);if(h+=4,E=="IHDR")g.decode._IHDR(a,h,f);else if(E=="IDAT"){for(var s=0;s<d;s++)_[b+s]=a[h+s];b+=d}else if(E=="acTL")f.tabs[E]={num_frames:u(a,h),num_plays:u(a,h+4