@mappedin/react-native-sdk 5.0.2 → 5.1.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/index.d.ts CHANGED
@@ -76,9 +76,7 @@ declare module '@mappedin/react-native-sdk/wrappers/react-native-sdk/src/MiMapVi
76
76
  /**
77
77
  * Called when the camera is updated
78
78
  */
79
- onCameraChanged?: (prop: {
80
- change: TCameraChange;
81
- }) => void;
79
+ onCameraChanged?: (prop: TCameraChange) => void;
82
80
  /**
83
81
  * Called when data is loaded for this venue
84
82
  */
@@ -3101,7 +3099,7 @@ declare module '@mappedin/react-native-sdk/core/packages/renderer/internal/Mappe
3101
3099
  top?: number;
3102
3100
  left?: number;
3103
3101
  textLabelVisible?: boolean;
3104
- pinVisibility?: PINVISIBILITY;
3102
+ pinVisibility: PINVISIBILITY;
3105
3103
  textAlign?: TEXTALIGN;
3106
3104
  cachedSymbol?: HTMLCanvasElement;
3107
3105
  };
@@ -3121,6 +3119,7 @@ declare module '@mappedin/react-native-sdk/core/packages/renderer/internal/Mappe
3121
3119
  export type TFloatingLabelAppearance = {
3122
3120
  /**
3123
3121
  * Margin around the label and marker. This will affect label density
3122
+ * @default 6
3124
3123
  */
3125
3124
  margin?: number;
3126
3125
  text?: {
@@ -3154,6 +3153,7 @@ declare module '@mappedin/react-native-sdk/core/packages/renderer/internal/Mappe
3154
3153
  marker?: {
3155
3154
  /**
3156
3155
  * Size of the marker in pixels
3156
+ * @deprecated Behavior when using this along with `iconVisibilityThreshold` and `icon` is undefined
3157
3157
  */
3158
3158
  size?: number;
3159
3159
  foregroundColor?: {
@@ -3176,6 +3176,17 @@ declare module '@mappedin/react-native-sdk/core/packages/renderer/internal/Mappe
3176
3176
  */
3177
3177
  inactive?: string;
3178
3178
  };
3179
+ /**
3180
+ * SVG of icon to place inside Floating Label
3181
+ */
3182
+ icon?: string;
3183
+ /**
3184
+ * Defines when the icon becomes visible relative to the current zoom level
3185
+ * anything below 0 will result in icons never showing up
3186
+ * 0 ensures icons show up at maxZoom (fully zoomed in)
3187
+ * 1 ensures they always show up
3188
+ */
3189
+ iconVisibilityThreshold?: number;
3179
3190
  };
3180
3191
  };
3181
3192
  type TAppearanceFilledIn = {
@@ -3198,12 +3209,15 @@ declare module '@mappedin/react-native-sdk/core/packages/renderer/internal/Mappe
3198
3209
  active: string;
3199
3210
  inactive: string;
3200
3211
  };
3212
+ icon?: string;
3213
+ iconVisibilityThreshold?: number;
3201
3214
  };
3202
3215
  };
3203
3216
  export type TFloatingLabelOptionsInternal = {
3204
3217
  id: string;
3205
3218
  position?: Vector3;
3206
- polygon: MappedinPolygon;
3219
+ polygon?: MappedinPolygon;
3220
+ mapId: string;
3207
3221
  polygonHeight?: number;
3208
3222
  text?: string;
3209
3223
  shortText?: string;
@@ -3230,7 +3244,9 @@ declare module '@mappedin/react-native-sdk/core/packages/renderer/internal/Mappe
3230
3244
  lines: number;
3231
3245
  contextConfigured: boolean;
3232
3246
  fillText: TDrawFn | undefined;
3233
- newStyle: {};
3247
+ newStyle: {
3248
+ pinVisibility: PINVISIBILITY;
3249
+ };
3234
3250
  static testId: number;
3235
3251
  style: TStyle;
3236
3252
  setColor: () => void;
@@ -3241,6 +3257,9 @@ declare module '@mappedin/react-native-sdk/core/packages/renderer/internal/Mappe
3241
3257
  mapView: ICore;
3242
3258
  constructor(options: TFloatingLabelOptionsInternal, mapView: ICore);
3243
3259
  enable(updateEngine?: boolean): void;
3260
+ get totalTextBoxHeight(): number;
3261
+ get totalTextBoxWidth(): number;
3262
+ get totalMarkerSize(): number;
3244
3263
  get strategies(): TColliderStrategy[];
3245
3264
  getCachedSymbol(orientation: any, textAlign: any, xCoordinate: any): any;
3246
3265
  colliderDidMount(): void;
@@ -3250,9 +3269,10 @@ declare module '@mappedin/react-native-sdk/core/packages/renderer/internal/Mappe
3250
3269
  colliderDidGoOutsideGrid(): void;
3251
3270
  colliderDidNotFindAHome(): void;
3252
3271
  disable(updateEngine?: boolean): void;
3272
+ static imagePromiseCache: {
3273
+ [key in number]?: Promise<HTMLImageElement>;
3274
+ };
3253
3275
  draw(context: CanvasRenderingContext2D): void;
3254
- static original: FloatingLabel;
3255
- static clone(options: TFloatingLabelOptionsInternal, mapView: ICore): any;
3256
3276
  }
3257
3277
  export default FloatingLabel;
3258
3278
  }
@@ -5162,7 +5182,7 @@ declare module '@mappedin/react-native-sdk/core/packages/renderer/layers/Labels/
5162
5182
  import { TFloatingLabelAllLocationsOptions, MappedinPolygon, MappedinNode, TAddFloatingLabelOptions, TFloatingLabelPolygonOptions } from '@mappedin/react-native-sdk/core/packages/renderer';
5163
5183
  import { TFloatingLabelAppearance } from '@mappedin/react-native-sdk/core/packages/renderer/index.rn';
5164
5184
  export type TLabelRenderOptions = TFloatingLabelPolygonOptions & {
5165
- polygon: MappedinPolygon;
5185
+ polygon?: MappedinPolygon;
5166
5186
  rank: number;
5167
5187
  entranceNode: MappedinNode;
5168
5188
  text: string;
@@ -6842,7 +6862,6 @@ declare module '@mappedin/react-native-sdk/core/packages/renderer/internal/quad-
6842
6862
  draw(context: CanvasRenderingContext2D): void;
6843
6863
  }
6844
6864
  class QuadTree {
6845
- #private;
6846
6865
  boundary: Rectangle;
6847
6866
  capacity: number;
6848
6867
  objects: Rectangle[];
package/package.json CHANGED
@@ -1,7 +1,8 @@
1
1
  {
2
2
  "name": "@mappedin/react-native-sdk",
3
- "version": "5.0.2",
4
- "main": "dist/index.js",
3
+ "version": "5.1.0",
4
+ "main": "dist/commonjs/index.js",
5
+ "module": "dist/module/index.js",
5
6
  "types": "dist/index.d.ts",
6
7
  "license": "UNLICENSED",
7
8
  "repository": {
@@ -34,5 +35,5 @@
34
35
  "dependencies": {
35
36
  "react-native-webview": "^11.13.0"
36
37
  },
37
- "gitHead": "60c50874cc91ee767d4903cf53963479d871a7ef"
38
+ "gitHead": "9e3d8c56b61bd23d4319f9260191028d1755f77b"
38
39
  }
@@ -1 +0,0 @@
1
- import{h as vn}from"./chunk-MJIJTBP6.js";vn();var hn={},Kn=function(n,r,t,e,i){var a=new Worker(hn[r]||(hn[r]=URL.createObjectURL(new Blob([n+';addEventListener("error",function(e){e=e.error;postMessage({$e$:[e.message,e.code,e.stack]})})'],{type:"text/javascript"}))));return a.onmessage=function(o){var f=o.data,u=f.$e$;if(u){var s=new Error(u[0]);s.code=u[1],s.stack=u[2],i(s,null)}else i(null,f)},a.postMessage(t,e),a},U=Uint8Array,$=Uint16Array,vr=Uint32Array,hr=new U([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]),lr=new U([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]),Tr=new U([16,17,18,0,8,7,9,6,10,5,11,4,12,3,13,2,14,1,15]),ln=function(n,r){for(var t=new $(31),e=0;e<31;++e)t[e]=r+=1<<n[e-1];for(var i=new vr(t[30]),e=1;e<30;++e)for(var a=t[e];a<t[e+1];++a)i[a]=a-t[e]<<5|e;return[t,i]},cn=ln(hr,2),qr=cn[0],Ir=cn[1];qr[28]=258,Ir[258]=28;var pn=ln(lr,0),gn=pn[0],Hr=pn[1],Ur=new $(32768);for(C=0;C<32768;++C)nr=(C&43690)>>>1|(C&21845)<<1,nr=(nr&52428)>>>2|(nr&13107)<<2,nr=(nr&61680)>>>4|(nr&3855)<<4,Ur[C]=((nr&65280)>>>8|(nr&255)<<8)>>>1;var nr,C,Q=function(n,r,t){for(var e=n.length,i=0,a=new $(r);i<e;++i)n[i]&&++a[n[i]-1];var o=new $(r);for(i=0;i<r;++i)o[i]=o[i-1]+a[i-1]<<1;var f;if(t){f=new $(1<<r);var u=15-r;for(i=0;i<e;++i)if(n[i])for(var s=i<<4|n[i],v=r-n[i],l=o[n[i]-1]++<<v,g=l|(1<<v)-1;l<=g;++l)f[Ur[l]>>>u]=s}else for(f=new $(e),i=0;i<e;++i)n[i]&&(f[i]=Ur[o[n[i]-1]++]>>>15-n[i]);return f},tr=new U(288);for(C=0;C<144;++C)tr[C]=8;var C;for(C=144;C<256;++C)tr[C]=9;var C;for(C=256;C<280;++C)tr[C]=7;var C;for(C=280;C<288;++C)tr[C]=8;var C,cr=new U(32);for(C=0;C<32;++C)cr[C]=5;var C,yn=Q(tr,9,0),wn=Q(tr,9,1),mn=Q(cr,5,0),xn=Q(cr,5,1),Br=function(n){for(var r=n[0],t=1;t<n.length;++t)n[t]>r&&(r=n[t]);return r},V=function(n,r,t){var e=r/8|0;return(n[e]|n[e+1]<<8)>>(r&7)&t},Zr=function(n,r){var t=r/8|0;return(n[t]|n[t+1]<<8|n[t+2]<<16)>>(r&7)},Dr=function(n){return(n+7)/8|0},X=function(n,r,t){(r==null||r<0)&&(r=0),(t==null||t>n.length)&&(t=n.length);var e=new(n.BYTES_PER_ELEMENT==2?$:n.BYTES_PER_ELEMENT==4?vr:U)(t-r);return e.set(n.subarray(r,t)),e},it={UnexpectedEOF:0,InvalidBlockType:1,InvalidLengthLiteral:2,InvalidDistance:3,StreamFinished:4,NoStreamHandler:5,InvalidHeader:6,NoCallback:7,InvalidUTF8:8,ExtraFieldTooLong:9,InvalidDate:10,FilenameTooLong:11,StreamFinishing:12,InvalidZipData:13,UnknownCompressionMethod:14},zn=["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"],p=function(n,r,t){var e=new Error(r||zn[n]);if(e.code=n,Error.captureStackTrace&&Error.captureStackTrace(e,p),!t)throw e;return e},Sr=function(n,r,t){var e=n.length;if(!e||t&&t.f&&!t.l)return r||new U(0);var i=!r||t,a=!t||t.i;t||(t={}),r||(r=new U(e*3));var o=function(Fr){var Mr=r.length;if(Fr>Mr){var ur=new U(Math.max(Mr*2,Fr));ur.set(r),r=ur}},f=t.f||0,u=t.p||0,s=t.b||0,v=t.l,l=t.d,g=t.m,x=t.n,y=e*8;do{if(!v){f=V(n,u,1);var m=V(n,u+1,3);if(u+=3,m)if(m==1)v=wn,l=xn,g=9,x=5;else if(m==2){var T=V(n,u,31)+257,w=V(n,u+10,15)+4,I=T+V(n,u+5,31)+1;u+=14;for(var S=new U(I),A=new U(19),c=0;c<w;++c)A[Tr[c]]=V(n,u+c*3,7);u+=w*3;for(var L=Br(A),D=(1<<L)-1,N=Q(A,L,1),c=0;c<I;){var G=N[V(n,u,D)];u+=G&15;var h=G>>>4;if(h<16)S[c++]=h;else{var Z=0,E=0;for(h==16?(E=3+V(n,u,3),u+=2,Z=S[c-1]):h==17?(E=3+V(n,u,7),u+=3):h==18&&(E=11+V(n,u,127),u+=7);E--;)S[c++]=Z}}var O=S.subarray(0,T),B=S.subarray(T);g=Br(O),x=Br(B),v=Q(O,g,1),l=Q(B,x,1)}else p(1);else{var h=Dr(u)+4,z=n[h-4]|n[h-3]<<8,M=h+z;if(M>e){a&&p(0);break}i&&o(s+z),r.set(n.subarray(h,M),s),t.b=s+=z,t.p=u=M*8,t.f=f;continue}if(u>y){a&&p(0);break}}i&&o(s+131072);for(var k=(1<<g)-1,q=(1<<x)-1,W=u;;W=u){var Z=v[Zr(n,u)&k],K=Z>>>4;if(u+=Z&15,u>y){a&&p(0);break}if(Z||p(2),K<256)r[s++]=K;else if(K==256){W=u,v=null;break}else{var H=K-254;if(K>264){var c=K-257,b=hr[c];H=V(n,u,(1<<b)-1)+qr[c],u+=b}var _=l[Zr(n,u)&q],j=_>>>4;_||p(3),u+=_&15;var B=gn[j];if(j>3){var b=lr[j];B+=Zr(n,u)&(1<<b)-1,u+=b}if(u>y){a&&p(0);break}i&&o(s+131072);for(var R=s+H;s<R;s+=4)r[s]=r[s-B],r[s+1]=r[s+1-B],r[s+2]=r[s+2-B],r[s+3]=r[s+3-B];s=R}}t.l=v,t.p=W,t.b=s,t.f=f,v&&(f=1,t.m=g,t.d=l,t.n=x)}while(!f);return s==r.length?r:X(r,0,s)},rr=function(n,r,t){t<<=r&7;var e=r/8|0;n[e]|=t,n[e+1]|=t>>>8},pr=function(n,r,t){t<<=r&7;var e=r/8|0;n[e]|=t,n[e+1]|=t>>>8,n[e+2]|=t>>>16},kr=function(n,r){for(var t=[],e=0;e<n.length;++e)n[e]&&t.push({s:e,f:n[e]});var i=t.length,a=t.slice();if(!i)return[er,0];if(i==1){var o=new U(t[0].s+1);return o[t[0].s]=1,[o,1]}t.sort(function(I,S){return I.f-S.f}),t.push({s:-1,f:25001});var f=t[0],u=t[1],s=0,v=1,l=2;for(t[0]={s:-1,f:f.f+u.f,l:f,r:u};v!=i-1;)f=t[t[s].f<t[l].f?s++:l++],u=t[s!=v&&t[s].f<t[l].f?s++:l++],t[v++]={s:-1,f:f.f+u.f,l:f,r:u};for(var g=a[0].s,e=1;e<i;++e)a[e].s>g&&(g=a[e].s);var x=new $(g+1),y=Gr(t[v-1],x,0);if(y>r){var e=0,m=0,h=y-r,z=1<<h;for(a.sort(function(S,A){return x[A.s]-x[S.s]||S.f-A.f});e<i;++e){var M=a[e].s;if(x[M]>r)m+=z-(1<<y-x[M]),x[M]=r;else break}for(m>>>=h;m>0;){var T=a[e].s;x[T]<r?m-=1<<r-x[T]++-1:++e}for(;e>=0&&m;--e){var w=a[e].s;x[w]==r&&(--x[w],++m)}y=r}return[new U(x),y]},Gr=function(n,r,t){return n.s==-1?Math.max(Gr(n.l,r,t+1),Gr(n.r,r,t+1)):r[n.s]=t},Yr=function(n){for(var r=n.length;r&&!n[--r];);for(var t=new $(++r),e=0,i=n[0],a=1,o=function(u){t[e++]=u},f=1;f<=r;++f)if(n[f]==i&&f!=r)++a;else{if(!i&&a>2){for(;a>138;a-=138)o(32754);a>2&&(o(a>10?a-11<<5|28690:a-3<<5|12305),a=0)}else if(a>3){for(o(i),--a;a>6;a-=6)o(8304);a>2&&(o(a-3<<5|8208),a=0)}for(;a--;)o(i);a=1,i=n[f]}return[t.subarray(0,e),r]},gr=function(n,r){for(var t=0,e=0;e<r.length;++e)t+=n[e]*r[e];return t},Or=function(n,r,t){var e=t.length,i=Dr(r+2);n[i]=e&255,n[i+1]=e>>>8,n[i+2]=n[i]^255,n[i+3]=n[i+1]^255;for(var a=0;a<e;++a)n[i+a+4]=t[a];return(i+4+e)*8},Wr=function(n,r,t,e,i,a,o,f,u,s,v){rr(r,v++,t),++i[256];for(var l=kr(i,15),g=l[0],x=l[1],y=kr(a,15),m=y[0],h=y[1],z=Yr(g),M=z[0],T=z[1],w=Yr(m),I=w[0],S=w[1],A=new $(19),c=0;c<M.length;++c)A[M[c]&31]++;for(var c=0;c<I.length;++c)A[I[c]&31]++;for(var L=kr(A,7),D=L[0],N=L[1],G=19;G>4&&!D[Tr[G-1]];--G);var Z=s+5<<3,E=gr(i,tr)+gr(a,cr)+o,O=gr(i,g)+gr(a,m)+o+14+3*G+gr(A,D)+(2*A[16]+3*A[17]+7*A[18]);if(Z<=E&&Z<=O)return Or(r,v,n.subarray(u,u+s));var B,k,q,W;if(rr(r,v,1+(O<E)),v+=2,O<E){B=Q(g,x,0),k=g,q=Q(m,h,0),W=m;var K=Q(D,N,0);rr(r,v,T-257),rr(r,v+5,S-1),rr(r,v+10,G-4),v+=14;for(var c=0;c<G;++c)rr(r,v+3*c,D[Tr[c]]);v+=3*G;for(var H=[M,I],b=0;b<2;++b)for(var _=H[b],c=0;c<_.length;++c){var j=_[c]&31;rr(r,v,K[j]),v+=D[j],j>15&&(rr(r,v,_[c]>>>5&127),v+=_[c]>>>12)}}else B=yn,k=tr,q=mn,W=cr;for(var c=0;c<f;++c)if(e[c]>255){var j=e[c]>>>18&31;pr(r,v,B[j+257]),v+=k[j+257],j>7&&(rr(r,v,e[c]>>>23&31),v+=hr[j]);var R=e[c]&31;pr(r,v,q[R]),v+=W[R],R>3&&(pr(r,v,e[c]>>>5&8191),v+=lr[R])}else pr(r,v,B[e[c]]),v+=k[e[c]];return pr(r,v,B[256]),v+k[256]},An=new vr([65540,131080,131088,131104,262176,1048704,1048832,2114560,2117632]),er=new U(0),Mn=function(n,r,t,e,i,a){var o=n.length,f=new U(e+o+5*(1+Math.ceil(o/7e3))+i),u=f.subarray(e,f.length-i),s=0;if(!r||o<8)for(var v=0;v<=o;v+=65535){var l=v+65535;l>=o&&(u[s>>3]=a),s=Or(u,s+1,n.subarray(v,l))}else{for(var g=An[r-1],x=g>>>13,y=g&8191,m=(1<<t)-1,h=new $(32768),z=new $(m+1),M=Math.ceil(t/3),T=2*M,w=function($r){return(n[$r]^n[$r+1]<<M^n[$r+2]<<T)&m},I=new vr(25e3),S=new $(288),A=new $(32),c=0,L=0,v=0,D=0,N=0,G=0;v<o;++v){var Z=w(v),E=v&32767,O=z[Z];if(h[E]=O,z[Z]=E,N<=v){var B=o-v;if((c>7e3||D>24576)&&B>423){s=Wr(n,u,0,I,S,A,L,D,G,v-G,s),D=c=L=0,G=v;for(var k=0;k<286;++k)S[k]=0;for(var k=0;k<30;++k)A[k]=0}var q=2,W=0,K=y,H=E-O&32767;if(B>2&&Z==w(v-H))for(var b=Math.min(x,B)-1,_=Math.min(32767,v),j=Math.min(258,B);H<=_&&--K&&E!=O;){if(n[v+q]==n[v+q-H]){for(var R=0;R<j&&n[v+R]==n[v+R-H];++R);if(R>q){if(q=R,W=H,R>b)break;for(var Fr=Math.min(H,R-2),Mr=0,k=0;k<Fr;++k){var ur=v-H+k+32768&32767,Jn=h[ur],fn=ur-Jn+32768&32767;fn>Mr&&(Mr=fn,O=ur)}}}E=O,O=h[E],H+=E-O+32768&32767}if(W){I[D++]=268435456|Ir[q]<<18|Hr[W];var sn=Ir[q]&31,un=Hr[W]&31;L+=hr[sn]+lr[un],++S[257+sn],++A[un],N=v+q,++c}else I[D++]=n[v],++S[n[v]]}}s=Wr(n,u,a,I,S,A,L,D,G,v-G,s),!a&&s&7&&(s=Or(u,s+1,er))}return X(f,0,e+Dr(s)+i)},Tn=function(){for(var n=new Int32Array(256),r=0;r<256;++r){for(var t=r,e=9;--e;)t=(t&1&&-306674912)^t>>>1;n[r]=t}return n}(),yr=function(){var n=-1;return{p:function(r){for(var t=n,e=0;e<r.length;++e)t=Tn[t&255^r[e]]^t>>>8;n=t},d:function(){return~n}}},jr=function(){var n=1,r=0;return{p:function(t){for(var e=n,i=r,a=t.length|0,o=0;o!=a;){for(var f=Math.min(o+2655,a);o<f;++o)i+=e+=t[o];e=(e&65535)+15*(e>>16),i=(i&65535)+15*(i>>16)}n=e,r=i},d:function(){return n%=65521,r%=65521,(n&255)<<24|n>>>8<<16|(r&255)<<8|r>>>8}}},fr=function(n,r,t,e,i){return Mn(n,r.level==null?6:r.level,r.mem==null?Math.ceil(Math.max(8,Math.min(13,Math.log(n.length)))*1.5):12+r.mem,t,e,!i)},Cr=function(n,r){var t={};for(var e in n)t[e]=n[e];for(var e in r)t[e]=r[e];return t},Un=function(n,r,t){for(var e=n(),i=n.toString(),a=i.slice(i.indexOf("[")+1,i.lastIndexOf("]")).replace(/\s+/g,"").split(","),o=0;o<e.length;++o){var f=e[o],u=a[o];if(typeof f=="function"){r+=";"+u+"=";var s=f.toString();if(f.prototype)if(s.indexOf("[native code]")!=-1){var v=s.indexOf(" ",8)+1;r+=s.slice(v,s.indexOf("(",v))}else{r+=s;for(var l in f.prototype)r+=";"+u+".prototype."+l+"="+f.prototype[l].toString()}else r+=s}else t[u]=f}return[r,t]},Lr=[],Qn=function(n){var r=[];for(var t in n)n[t].buffer&&r.push((n[t]=new n[t].constructor(n[t])).buffer);return r},Dn=function(n,r,t,e){var i;if(!Lr[t]){for(var a="",o={},f=n.length-1,u=0;u<f;++u)i=Un(n[u],a,o),a=i[0],o=i[1];Lr[t]=Un(n[f],a,o)}var s=Cr({},Lr[t][1]);return Kn(Lr[t][0]+";onmessage=function(e){for(var k in e.data)self[k]=e.data[k];onmessage="+r.toString()+"}",t,s,Qn(s),e)},wr=function(){return[U,$,vr,hr,lr,Tr,qr,gn,wn,xn,Ur,zn,Q,Br,V,Zr,Dr,X,p,Sr,Er,ar,Jr]},mr=function(){return[U,$,vr,hr,lr,Tr,Ir,Hr,yn,tr,mn,cr,Ur,An,er,Q,rr,pr,kr,Gr,Yr,gr,Or,Wr,Dr,X,Mn,fr,Pr,ar]},Sn=function(){return[Qr,Xr,F,yr,Tn]},Cn=function(){return[Vr,In]},En=function(){return[dr,F,jr]},Fn=function(){return[Bn]},ar=function(n){return postMessage(n,[n.buffer])},Jr=function(n){return n&&n.size&&new U(n.size)},xr=function(n,r,t,e,i,a){var o=Dn(t,e,i,function(f,u){o.terminate(),a(f,u)});return o.postMessage([n,r],r.consume?[n.buffer]:[]),function(){o.terminate()}},d=function(n){return n.ondata=function(r,t){return postMessage([r,t],[r.buffer])},function(r){return n.push(r.data[0],r.data[1])}},zr=function(n,r,t,e,i){var a,o=Dn(n,e,i,function(f,u){f?(o.terminate(),r.ondata.call(r,f)):(u[1]&&o.terminate(),r.ondata.call(r,f,u[0],u[1]))});o.postMessage(t),r.push=function(f,u){r.ondata||p(5),a&&r.ondata(p(4,0,1),null,!!u),o.postMessage([f,a=u],[f.buffer])},r.terminate=function(){o.terminate()}},Y=function(n,r){return n[r]|n[r+1]<<8},P=function(n,r){return(n[r]|n[r+1]<<8|n[r+2]<<16|n[r+3]<<24)>>>0},Kr=function(n,r){return P(n,r)+P(n,r+4)*4294967296},F=function(n,r,t){for(;t;++r)n[r]=t,t>>>=8},Qr=function(n,r){var t=r.filename;if(n[0]=31,n[1]=139,n[2]=8,n[8]=r.level<2?4:r.level==9?2:0,n[9]=3,r.mtime!=0&&F(n,4,Math.floor(new Date(r.mtime||Date.now())/1e3)),t){n[3]=8;for(var e=0;e<=t.length;++e)n[e+10]=t.charCodeAt(e)}},Vr=function(n){(n[0]!=31||n[1]!=139||n[2]!=8)&&p(6,"invalid gzip data");var r=n[3],t=10;r&4&&(t+=n[10]|(n[11]<<8)+2);for(var e=(r>>3&1)+(r>>4&1);e>0;e-=!n[t++]);return t+(r&2)},In=function(n){var r=n.length;return(n[r-4]|n[r-3]<<8|n[r-2]<<16|n[r-1]<<24)>>>0},Xr=function(n){return 10+(n.filename&&n.filename.length+1||0)},dr=function(n,r){var t=r.level,e=t==0?0:t<6?1:t==9?3:2;n[0]=120,n[1]=e<<6|(e?32-2*e:1)},Bn=function(n){((n[0]&15)!=8||n[0]>>>4>7||(n[0]<<8|n[1])%31)&&p(6,"invalid zlib data"),n[1]&32&&p(6,"invalid zlib data: preset dictionaries not supported")};function br(n,r){return!r&&typeof n=="function"&&(r=n,n={}),this.ondata=r,n}var ir=function(){function n(r,t){!t&&typeof r=="function"&&(t=r,r={}),this.ondata=t,this.o=r||{}}return n.prototype.p=function(r,t){this.ondata(fr(r,this.o,0,0,!t),t)},n.prototype.push=function(r,t){this.ondata||p(5),this.d&&p(4),this.d=t,this.p(r,t||!1)},n}();var Vn=function(){function n(r,t){zr([mr,function(){return[d,ir]}],this,br.call(this,r,t),function(e){var i=new ir(e.data);onmessage=d(i)},6)}return n}();function Xn(n,r,t){return t||(t=r,r={}),typeof t!="function"&&p(7),xr(n,r,[mr],function(e){return ar(Pr(e.data[0],e.data[1]))},0,t)}function Pr(n,r){return fr(n,r||{},0,0)}var J=function(){function n(r){this.s={},this.p=new U(0),this.ondata=r}return n.prototype.e=function(r){this.ondata||p(5),this.d&&p(4);var t=this.p.length,e=new U(t+r.length);e.set(this.p),e.set(r,t),this.p=e},n.prototype.c=function(r){this.d=this.s.i=r||!1;var t=this.s.b,e=Sr(this.p,this.o,this.s);this.ondata(X(e,t,this.s.b),this.d),this.o=X(e,this.s.b-32768),this.s.b=this.o.length,this.p=X(this.p,this.s.p/8|0),this.s.p&=7},n.prototype.push=function(r,t){this.e(r),this.c(t)},n}();var Zn=function(){function n(r){this.ondata=r,zr([wr,function(){return[d,J]}],this,0,function(){var t=new J;onmessage=d(t)},7)}return n}();function kn(n,r,t){return t||(t=r,r={}),typeof t!="function"&&p(7),xr(n,r,[wr],function(e){return ar(Er(e.data[0],Jr(e.data[1])))},1,t)}function Er(n,r){return Sr(n,r)}var Gn=function(){function n(r,t){this.c=yr(),this.l=0,this.v=1,ir.call(this,r,t)}return n.prototype.push=function(r,t){ir.prototype.push.call(this,r,t)},n.prototype.p=function(r,t){this.c.p(r),this.l+=r.length;var e=fr(r,this.o,this.v&&Xr(this.o),t&&8,!t);this.v&&(Qr(e,this.o),this.v=0),t&&(F(e,e.length-8,this.c.d()),F(e,e.length-4,this.l)),this.ondata(e,t)},n}();var at=function(){function n(r,t){zr([mr,Sn,function(){return[d,ir,Gn]}],this,br.call(this,r,t),function(e){var i=new Gn(e.data);onmessage=d(i)},8)}return n}();function ot(n,r,t){return t||(t=r,r={}),typeof t!="function"&&p(7),xr(n,r,[mr,Sn,function(){return[On]}],function(e){return ar(On(e.data[0],e.data[1]))},2,t)}function On(n,r){r||(r={});var t=yr(),e=n.length;t.p(n);var i=fr(n,r,Xr(r),8),a=i.length;return Qr(i,r),F(i,a-8,t.d()),F(i,a-4,e),i}var _r=function(){function n(r){this.v=1,J.call(this,r)}return n.prototype.push=function(r,t){if(J.prototype.e.call(this,r),this.v){var e=this.p.length>3?Vr(this.p):4;if(e>=this.p.length&&!t)return;this.p=this.p.subarray(e),this.v=0}t&&(this.p.length<8&&p(6,"invalid gzip data"),this.p=this.p.subarray(0,-8)),J.prototype.c.call(this,t)},n}();var dn=function(){function n(r){this.ondata=r,zr([wr,Cn,function(){return[d,J,_r]}],this,0,function(){var t=new _r;onmessage=d(t)},9)}return n}();function bn(n,r,t){return t||(t=r,r={}),typeof t!="function"&&p(7),xr(n,r,[wr,Cn,function(){return[rn]}],function(e){return ar(rn(e.data[0]))},3,t)}function rn(n,r){return Sr(n.subarray(Vr(n),-8),r||new U(In(n)))}var Ln=function(){function n(r,t){this.c=jr(),this.v=1,ir.call(this,r,t)}return n.prototype.push=function(r,t){ir.prototype.push.call(this,r,t)},n.prototype.p=function(r,t){this.c.p(r);var e=fr(r,this.o,this.v&&2,t&&4,!t);this.v&&(dr(e,this.o),this.v=0),t&&F(e,e.length-4,this.c.d()),this.ondata(e,t)},n}();var ft=function(){function n(r,t){zr([mr,En,function(){return[d,ir,Ln]}],this,br.call(this,r,t),function(e){var i=new Ln(e.data);onmessage=d(i)},10)}return n}();function st(n,r,t){return t||(t=r,r={}),typeof t!="function"&&p(7),xr(n,r,[mr,En,function(){return[Pn]}],function(e){return ar(Pn(e.data[0],e.data[1]))},4,t)}function Pn(n,r){r||(r={});var t=jr();t.p(n);var e=fr(n,r,2,4);return dr(e,r),F(e,e.length-4,t.d()),e}var nn=function(){function n(r){this.v=1,J.call(this,r)}return n.prototype.push=function(r,t){if(J.prototype.e.call(this,r),this.v){if(this.p.length<2&&!t)return;this.p=this.p.subarray(2),this.v=0}t&&(this.p.length<4&&p(6,"invalid zlib data"),this.p=this.p.subarray(0,-4)),J.prototype.c.call(this,t)},n}();var _n=function(){function n(r){this.ondata=r,zr([wr,Fn,function(){return[d,J,nn]}],this,0,function(){var t=new nn;onmessage=d(t)},11)}return n}();function rt(n,r,t){return t||(t=r,r={}),typeof t!="function"&&p(7),xr(n,r,[wr,Fn,function(){return[tn]}],function(e){return ar(tn(e.data[0],Jr(e.data[1])))},5,t)}function tn(n,r){return Sr((Bn(n),n.subarray(2,-4)),r)}var nt=function(){function n(r){this.G=_r,this.I=J,this.Z=nn,this.ondata=r}return n.prototype.push=function(r,t){if(this.ondata||p(5),this.s)this.s.push(r,t);else{if(this.p&&this.p.length){var e=new U(this.p.length+r.length);e.set(this.p),e.set(r,this.p.length)}else this.p=r;if(this.p.length>2){var i=this,a=function(){i.ondata.apply(i,arguments)};this.s=this.p[0]==31&&this.p[1]==139&&this.p[2]==8?new this.G(a):(this.p[0]&15)!=8||this.p[0]>>4>7||(this.p[0]<<8|this.p[1])%31?new this.I(a):new this.Z(a),this.s.push(this.p,t),this.p=null}}},n}();var ut=function(){function n(r){this.G=dn,this.I=Zn,this.Z=_n,this.ondata=r}return n.prototype.push=function(r,t){nt.prototype.push.call(this,r,t)},n}();function vt(n,r,t){return t||(t=r,r={}),typeof t!="function"&&p(7),n[0]==31&&n[1]==139&&n[2]==8?bn(n,r,t):(n[0]&15)!=8||n[0]>>4>7||(n[0]<<8|n[1])%31?kn(n,r,t):rt(n,r,t)}function ht(n,r){return n[0]==31&&n[1]==139&&n[2]==8?rn(n,r):(n[0]&15)!=8||n[0]>>4>7||(n[0]<<8|n[1])%31?Er(n,r):tn(n,r)}var en=function(n,r,t,e){for(var i in n){var a=n[i],o=r+i,f=e;Array.isArray(a)&&(f=Cr(e,a[1]),a=a[0]),a instanceof U?t[o]=[a,f]:(t[o+="/"]=[new U(0),f],en(a,o,t,e))}},Nn=typeof TextEncoder!="undefined"&&new TextEncoder,an=typeof TextDecoder!="undefined"&&new TextDecoder,Rn=0;try{an.decode(er,{stream:!0}),Rn=1}catch(n){}var $n=function(n){for(var r="",t=0;;){var e=n[t++],i=(e>127)+(e>223)+(e>239);if(t+i>n.length)return[r,X(n,t-1)];i?i==3?(e=((e&15)<<18|(n[t++]&63)<<12|(n[t++]&63)<<6|n[t++]&63)-65536,r+=String.fromCharCode(55296|e>>10,56320|e&1023)):i&1?r+=String.fromCharCode((e&31)<<6|n[t++]&63):r+=String.fromCharCode((e&15)<<12|(n[t++]&63)<<6|n[t++]&63):r+=String.fromCharCode(e)}},lt=function(){function n(r){this.ondata=r,Rn?this.t=new TextDecoder:this.p=er}return n.prototype.push=function(r,t){if(this.ondata||p(5),t=!!t,this.t){this.ondata(this.t.decode(r,{stream:!0}),t),t&&(this.t.decode().length&&p(8),this.t=null);return}this.p||p(4);var e=new U(this.p.length+r.length);e.set(this.p),e.set(r,this.p.length);var i=$n(e),a=i[0],o=i[1];t?(o.length&&p(8),this.p=null):this.p=o,this.ondata(a,t)},n}();var ct=function(){function n(r){this.ondata=r}return n.prototype.push=function(r,t){this.ondata||p(5),this.d&&p(4),this.ondata(sr(r),this.d=t||!1)},n}();function sr(n,r){if(r){for(var t=new U(n.length),e=0;e<n.length;++e)t[e]=n.charCodeAt(e);return t}if(Nn)return Nn.encode(n);for(var i=n.length,a=new U(n.length+(n.length>>1)),o=0,f=function(v){a[o++]=v},e=0;e<i;++e){if(o+5>a.length){var u=new U(o+8+(i-e<<1));u.set(a),a=u}var s=n.charCodeAt(e);s<128||r?f(s):s<2048?(f(192|s>>6),f(128|s&63)):s>55295&&s<57344?(s=65536+(s&1023<<10)|n.charCodeAt(++e)&1023,f(240|s>>18),f(128|s>>12&63),f(128|s>>6&63),f(128|s&63)):(f(224|s>>12),f(128|s>>6&63),f(128|s&63))}return X(a,0,o)}function qn(n,r){if(r){for(var t="",e=0;e<n.length;e+=16384)t+=String.fromCharCode.apply(null,n.subarray(e,e+16384));return t}else{if(an)return an.decode(n);var i=$n(n),a=i[0],o=i[1];return o.length&&p(8),a}}var Hn=function(n){return n==1?3:n<6?2:n==9?1:0},Yn=function(n,r){return r+30+Y(n,r+26)+Y(n,r+28)},Wn=function(n,r,t){var e=Y(n,r+28),i=qn(n.subarray(r+46,r+46+e),!(Y(n,r+8)&2048)),a=r+46+e,o=P(n,r+20),f=t&&o==4294967295?jn(n,a):[o,P(n,r+24),P(n,r+42)],u=f[0],s=f[1],v=f[2];return[Y(n,r+10),u,s,i,a+Y(n,r+30)+Y(n,r+32),v]},jn=function(n,r){for(;Y(n,r)!=1;r+=4+Y(n,r+2));return[Kr(n,r+12),Kr(n,r+4),Kr(n,r+20)]},or=function(n){var r=0;if(n)for(var t in n){var e=n[t].length;e>65535&&p(9),r+=e+4}return r},Ar=function(n,r,t,e,i,a,o,f){var u=e.length,s=t.extra,v=f&&f.length,l=or(s);F(n,r,o!=null?33639248:67324752),r+=4,o!=null&&(n[r++]=20,n[r++]=t.os),n[r]=20,r+=2,n[r++]=t.flag<<1|(a==null&&8),n[r++]=i&&8,n[r++]=t.compression&255,n[r++]=t.compression>>8;var g=new Date(t.mtime==null?Date.now():t.mtime),x=g.getFullYear()-1980;if((x<0||x>119)&&p(10),F(n,r,x<<25|g.getMonth()+1<<21|g.getDate()<<16|g.getHours()<<11|g.getMinutes()<<5|g.getSeconds()>>>1),r+=4,a!=null&&(F(n,r,t.crc),F(n,r+4,a),F(n,r+8,t.size)),F(n,r+12,u),F(n,r+14,l),r+=16,o!=null&&(F(n,r,v),F(n,r+6,t.attrs),F(n,r+10,o),r+=14),n.set(e,r),r+=u,l)for(var y in s){var m=s[y],h=m.length;F(n,r,+y),F(n,r+2,h),n.set(m,r+4),r+=4+h}return v&&(n.set(f,r),r+=v),r},on=function(n,r,t,e,i){F(n,r,101010256),F(n,r+8,t),F(n,r+10,t),F(n,r+12,e),F(n,r+16,i)},Nr=function(){function n(r){this.filename=r,this.c=yr(),this.size=0,this.compression=0}return n.prototype.process=function(r,t){this.ondata(null,r,t)},n.prototype.push=function(r,t){this.ondata||p(5),this.c.p(r),this.size+=r.length,t&&(this.crc=this.c.d()),this.process(r,t||!1)},n}();var pt=function(){function n(r,t){var e=this;t||(t={}),Nr.call(this,r),this.d=new ir(t,function(i,a){e.ondata(null,i,a)}),this.compression=8,this.flag=Hn(t.level)}return n.prototype.process=function(r,t){try{this.d.push(r,t)}catch(e){this.ondata(e,null,t)}},n.prototype.push=function(r,t){Nr.prototype.push.call(this,r,t)},n}();var gt=function(){function n(r,t){var e=this;t||(t={}),Nr.call(this,r),this.d=new Vn(t,function(i,a,o){e.ondata(i,a,o)}),this.compression=8,this.flag=Hn(t.level),this.terminate=this.d.terminate}return n.prototype.process=function(r,t){this.d.push(r,t)},n.prototype.push=function(r,t){Nr.prototype.push.call(this,r,t)},n}();var yt=function(){function n(r){this.ondata=r,this.u=[],this.d=1}return n.prototype.add=function(r){var t=this;if(this.ondata||p(5),this.d&2)this.ondata(p(4+(this.d&1)*8,0,1),null,!1);else{var e=sr(r.filename),i=e.length,a=r.comment,o=a&&sr(a),f=i!=r.filename.length||o&&a.length!=o.length,u=i+or(r.extra)+30;i>65535&&this.ondata(p(11,0,1),null,!1);var s=new U(u);Ar(s,0,r,e,f);var v=[s],l=function(){for(var h=0,z=v;h<z.length;h++){var M=z[h];t.ondata(null,M,!1)}v=[]},g=this.d;this.d=0;var x=this.u.length,y=Cr(r,{f:e,u:f,o,t:function(){r.terminate&&r.terminate()},r:function(){if(l(),g){var h=t.u[x+1];h?h.r():t.d=1}g=1}}),m=0;r.ondata=function(h,z,M){if(h)t.ondata(h,z,M),t.terminate();else if(m+=z.length,v.push(z),M){var T=new U(16);F(T,0,134695760),F(T,4,r.crc),F(T,8,m),F(T,12,r.size),v.push(T),y.c=m,y.b=u+m+16,y.crc=r.crc,y.size=r.size,g&&y.r(),g=1}else g&&l()},this.u.push(y)}},n.prototype.end=function(){var r=this;if(this.d&2){this.ondata(p(4+(this.d&1)*8,0,1),null,!0);return}this.d?this.e():this.u.push({r:function(){!(r.d&1)||(r.u.splice(-1,1),r.e())},t:function(){}}),this.d=3},n.prototype.e=function(){for(var r=0,t=0,e=0,i=0,a=this.u;i<a.length;i++){var o=a[i];e+=46+o.f.length+or(o.extra)+(o.o?o.o.length:0)}for(var f=new U(e+22),u=0,s=this.u;u<s.length;u++){var o=s[u];Ar(f,r,o,o.f,o.u,o.c,t,o.o),r+=46+o.f.length+or(o.extra)+(o.o?o.o.length:0),t+=o.b}on(f,r,this.u.length,e,t),this.ondata(null,f,!0),this.d=2},n.prototype.terminate=function(){for(var r=0,t=this.u;r<t.length;r++){var e=t[r];e.t()}this.d=2},n}();function wt(n,r,t){t||(t=r,r={}),typeof t!="function"&&p(7);var e={};en(n,"",e,r);var i=Object.keys(e),a=i.length,o=0,f=0,u=a,s=new Array(a),v=[],l=function(){for(var h=0;h<v.length;++h)v[h]()},g=function(h,z){Rr(function(){t(h,z)})};Rr(function(){g=t});var x=function(){var h=new U(f+22),z=o,M=f-o;f=0;for(var T=0;T<u;++T){var w=s[T];try{var I=w.c.length;Ar(h,f,w,w.f,w.u,I);var S=30+w.f.length+or(w.extra),A=f+S;h.set(w.c,A),Ar(h,o,w,w.f,w.u,I,f,w.m),o+=16+S+(w.m?w.m.length:0),f=A+I}catch(c){return g(c,null)}}on(h,o,s.length,M,z),g(null,h)};a||x();for(var y=function(h){var z=i[h],M=e[z],T=M[0],w=M[1],I=yr(),S=T.length;I.p(T);var A=sr(z),c=A.length,L=w.comment,D=L&&sr(L),N=D&&D.length,G=or(w.extra),Z=w.level==0?0:8,E=function(O,B){if(O)l(),g(O,null);else{var k=B.length;s[h]=Cr(w,{size:S,crc:I.d(),c:B,f:A,m:D,u:c!=z.length||D&&L.length!=N,compression:Z}),o+=30+c+G+k,f+=76+2*(c+G)+(N||0)+k,--a||x()}};if(c>65535&&E(p(11,0,1),null),!Z)E(null,T);else if(S<16e4)try{E(null,Pr(T,w))}catch(O){E(O,null)}else v.push(Xn(T,w,E))},m=0;m<u;++m)y(m);return l}function mt(n,r){r||(r={});var t={},e=[];en(n,"",t,r);var i=0,a=0;for(var o in t){var f=t[o],u=f[0],s=f[1],v=s.level==0?0:8,l=sr(o),g=l.length,x=s.comment,y=x&&sr(x),m=y&&y.length,h=or(s.extra);g>65535&&p(11);var z=v?Pr(u,s):u,M=z.length,T=yr();T.p(u),e.push(Cr(s,{size:u.length,crc:T.d(),c:z,f:l,m:y,u:g!=o.length||y&&x.length!=m,o:i,compression:v})),i+=30+g+h+M,a+=76+2*(g+h)+(m||0)+M}for(var w=new U(a+22),I=i,S=a-i,A=0;A<e.length;++A){var l=e[A];Ar(w,l.o,l,l.f,l.u,l.c.length);var c=30+l.f.length+or(l.extra);w.set(l.c,l.o+c),Ar(w,i,l,l.f,l.u,l.c.length,l.o,l.m),i+=16+c+(l.m?l.m.length:0)}return on(w,i,e.length,S,I),w}var tt=function(){function n(){}return n.prototype.push=function(r,t){this.ondata(null,r,t)},n.compression=0,n}();var xt=function(){function n(){var r=this;this.i=new J(function(t,e){r.ondata(null,t,e)})}return n.prototype.push=function(r,t){try{this.i.push(r,t)}catch(e){this.ondata(e,null,t)}},n.compression=8,n}();var zt=function(){function n(r,t){var e=this;t<32e4?this.i=new J(function(i,a){e.ondata(null,i,a)}):(this.i=new Zn(function(i,a,o){e.ondata(i,a,o)}),this.terminate=this.i.terminate)}return n.prototype.push=function(r,t){this.i.terminate&&(r=X(r,0)),this.i.push(r,t)},n.compression=8,n}();var At=function(){function n(r){this.onfile=r,this.k=[],this.o={0:tt},this.p=er}return n.prototype.push=function(r,t){var e=this;if(this.onfile||p(5),this.p||p(4),this.c>0){var i=Math.min(this.c,r.length),a=r.subarray(0,i);if(this.c-=i,this.d?this.d.push(a,!this.c):this.k[0].push(a),r=r.subarray(i),r.length)return this.push(r,t)}else{var o=0,f=0,u=void 0,s=void 0;this.p.length?r.length?(s=new U(this.p.length+r.length),s.set(this.p),s.set(r,this.p.length)):s=this.p:s=r;for(var v=s.length,l=this.c,g=l&&this.d,x=function(){var z,M=P(s,f);if(M==67324752){o=1,u=f,y.d=null,y.c=0;var T=Y(s,f+6),w=Y(s,f+8),I=T&2048,S=T&8,A=Y(s,f+26),c=Y(s,f+28);if(v>f+30+A+c){var L=[];y.k.unshift(L),o=2;var D=P(s,f+18),N=P(s,f+22),G=qn(s.subarray(f+30,f+=30+A),!I);D==4294967295?(z=S?[-2]:jn(s,f),D=z[0],N=z[1]):S&&(D=-1),f+=c,y.c=D;var Z,E={name:G,compression:w,start:function(){if(E.ondata||p(5),!D)E.ondata(null,er,!0);else{var O=e.o[w];O||E.ondata(p(14,"unknown compression type "+w,1),null,!1),Z=D<0?new O(G):new O(G,D,N),Z.ondata=function(W,K,H){E.ondata(W,K,H)};for(var B=0,k=L;B<k.length;B++){var q=k[B];Z.push(q,!1)}e.k[0]==L&&e.c?e.d=Z:Z.push(er,!0)}},terminate:function(){Z&&Z.terminate&&Z.terminate()}};D>=0&&(E.size=D,E.originalSize=N),y.onfile(E)}return"break"}else if(l){if(M==134695760)return u=f+=12+(l==-2&&8),o=3,y.c=0,"break";if(M==33639248)return u=f-=4,o=3,y.c=0,"break"}},y=this;f<v-4;++f){var m=x();if(m==="break")break}if(this.p=er,l<0){var h=o?s.subarray(0,u-12-(l==-2&&8)-(P(s,u-16)==134695760&&4)):s.subarray(0,f);g?g.push(h,!!o):this.k[+(o==2)].push(h)}if(o&2)return this.push(s.subarray(f),t);this.p=s.subarray(f)}t&&(this.c&&p(13),this.p=null)},n.prototype.register=function(r){this.o[r.compression]=r},n}();var Rr=typeof queueMicrotask=="function"?queueMicrotask:typeof setTimeout=="function"?setTimeout:function(n){n()};function Mt(n,r,t){t||(t=r,r={}),typeof t!="function"&&p(7);var e=[],i=function(){for(var m=0;m<e.length;++m)e[m]()},a={},o=function(m,h){Rr(function(){t(m,h)})};Rr(function(){o=t});for(var f=n.length-22;P(n,f)!=101010256;--f)if(!f||n.length-f>65558)return o(p(13,0,1),null),i;var u=Y(n,f+8);if(u){var s=u,v=P(n,f+16),l=v==4294967295;if(l){if(f=P(n,f-12),P(n,f)!=101075792)return o(p(13,0,1),null),i;s=u=P(n,f+32),v=P(n,f+48)}for(var g=r&&r.filter,x=function(m){var h=Wn(n,v,l),z=h[0],M=h[1],T=h[2],w=h[3],I=h[4],S=h[5],A=Yn(n,S);v=I;var c=function(D,N){D?(i(),o(D,null)):(N&&(a[w]=N),--u||o(null,a))};if(!g||g({name:w,size:M,originalSize:T,compression:z}))if(!z)c(null,X(n,A,A+M));else if(z==8){var L=n.subarray(A,A+M);if(M<32e4)try{c(null,Er(L,new U(T)))}catch(D){c(D,null)}else e.push(kn(L,{size:T},c))}else c(p(14,"unknown compression type "+z,1),null);else c(null,null)},y=0;y<s;++y)x(y)}else o(null,{});return i}function Tt(n,r){for(var t={},e=n.length-22;P(n,e)!=101010256;--e)(!e||n.length-e>65558)&&p(13);var i=Y(n,e+8);if(!i)return{};var a=P(n,e+16),o=a==4294967295;o&&(e=P(n,e-12),P(n,e)!=101075792&&p(13),i=P(n,e+32),a=P(n,e+48));for(var f=r&&r.filter,u=0;u<i;++u){var s=Wn(n,a,o),v=s[0],l=s[1],g=s[2],x=s[3],y=s[4],m=s[5],h=Yn(n,m);a=y,(!f||f({name:x,size:l,originalSize:g,compression:v}))&&(v?v==8?t[x]=Er(n.subarray(h,h+l),new U(g)):p(14,"unknown compression type "+v):t[x]=X(n,h,h+l))}return t}export{at as AsyncCompress,ut as AsyncDecompress,Vn as AsyncDeflate,dn as AsyncGunzip,at as AsyncGzip,Zn as AsyncInflate,zt as AsyncUnzipInflate,_n as AsyncUnzlib,gt as AsyncZipDeflate,ft as AsyncZlib,Gn as Compress,lt as DecodeUTF8,nt as Decompress,ir as Deflate,ct as EncodeUTF8,it as FlateErrorCode,_r as Gunzip,Gn as Gzip,J as Inflate,At as Unzip,xt as UnzipInflate,tt as UnzipPassThrough,nn as Unzlib,yt as Zip,pt as ZipDeflate,Nr as ZipPassThrough,Ln as Zlib,ot as compress,On as compressSync,vt as decompress,ht as decompressSync,Xn as deflate,Pr as deflateSync,bn as gunzip,rn as gunzipSync,ot as gzip,On as gzipSync,kn as inflate,Er as inflateSync,qn as strFromU8,sr as strToU8,Mt as unzip,Tt as unzipSync,rt as unzlib,tn as unzlibSync,wt as zip,mt as zipSync,st as zlib,Pn as zlibSync};
@@ -1 +0,0 @@
1
- var h=Object.create;var e=Object.defineProperty;var i=Object.getOwnPropertyDescriptor;var j=Object.getOwnPropertyNames;var k=Object.getPrototypeOf,l=Object.prototype.hasOwnProperty;var m=(a,b,c)=>b in a?e(a,b,{enumerable:!0,configurable:!0,writable:!0,value:c}):a[b]=c;var n=a=>e(a,"__esModule",{value:!0});var o=(a,b)=>()=>(a&&(b=a(a=0)),b);var s=(a,b)=>()=>(b||a((b={exports:{}}).exports,b),b.exports);var p=(a,b,c)=>{if(b&&typeof b=="object"||typeof b=="function")for(let d of j(b))!l.call(a,d)&&d!=="default"&&e(a,d,{get:()=>b[d],enumerable:!(c=i(b,d))||c.enumerable});return a},t=a=>p(n(e(a!=null?h(k(a)):{},"default",a&&a.__esModule&&"default"in a?{get:()=>a.default,enumerable:!0}:{value:a,enumerable:!0})),a);var u=(a,b,c)=>(m(a,typeof b!="symbol"?b+"":b,c),c),f=(a,b,c)=>{if(!b.has(a))throw TypeError("Cannot "+c)};var v=(a,b,c)=>(f(a,b,"read from private field"),c?c.call(a):b.get(a)),w=(a,b,c)=>{if(b.has(a))throw TypeError("Cannot add the same private member more than once");b instanceof WeakSet?b.add(a):b.set(a,c)},x=(a,b,c,d)=>(f(a,b,"write to private field"),d?d.call(a,c):b.set(a,c),c);var y=(a,b,c)=>(f(a,b,"access private method"),c);var r,B,q=o(()=>{r={},B={env:r}});export{s as a,t as b,u as c,v as d,w as e,x as f,y as g,q as h,B as i};