gis-cesium-helper 1.1.20 → 1.1.21

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.
Files changed (144) hide show
  1. package/dist/Cesium/Cesium.d.ts +3498 -2977
  2. package/dist/Cesium/Cesium.js +15065 -90
  3. package/dist/Cesium/README.md +13 -0
  4. package/dist/Cesium/ThirdParty/Workers/basis_transcoder.js +31 -1
  5. package/dist/Cesium/ThirdParty/Workers/draco_decoder_nodejs.js +1 -116
  6. package/dist/Cesium/ThirdParty/Workers/package.js +1 -0
  7. package/dist/Cesium/ThirdParty/Workers/package.json +1 -0
  8. package/dist/Cesium/ThirdParty/Workers/pako_deflate.min.js +1 -1
  9. package/dist/Cesium/ThirdParty/Workers/pako_inflate.min.js +1 -1
  10. package/dist/Cesium/ThirdParty/Workers/z-worker-pako.js +1 -1
  11. package/dist/Cesium/ThirdParty/draco_decoder.wasm +0 -0
  12. package/dist/Cesium/ThirdParty/google-earth-dbroot-parser.js +1 -1
  13. package/dist/Cesium/Widgets/Animation/Animation.css +127 -1
  14. package/dist/Cesium/Widgets/Animation/lighter.css +70 -1
  15. package/dist/Cesium/Widgets/BaseLayerPicker/BaseLayerPicker.css +108 -1
  16. package/dist/Cesium/Widgets/BaseLayerPicker/lighter.css +22 -1
  17. package/dist/Cesium/Widgets/Cesium3DTilesInspector/Cesium3DTilesInspector.css +102 -1
  18. package/dist/Cesium/Widgets/CesiumInspector/CesiumInspector.css +113 -1
  19. package/dist/Cesium/Widgets/CesiumWidget/CesiumWidget.css +124 -1
  20. package/dist/Cesium/Widgets/CesiumWidget/lighter.css +14 -1
  21. package/dist/Cesium/Widgets/FullscreenButton/FullscreenButton.css +8 -1
  22. package/dist/Cesium/Widgets/Geocoder/Geocoder.css +70 -1
  23. package/dist/Cesium/Widgets/Geocoder/lighter.css +17 -1
  24. package/dist/Cesium/Widgets/InfoBox/InfoBox.css +92 -1
  25. package/dist/Cesium/Widgets/InfoBox/InfoBoxDescription.css +178 -1
  26. package/dist/Cesium/Widgets/NavigationHelpButton/NavigationHelpButton.css +93 -1
  27. package/dist/Cesium/Widgets/NavigationHelpButton/lighter.css +38 -1
  28. package/dist/Cesium/Widgets/PerformanceWatchdog/PerformanceWatchdog.css +15 -1
  29. package/dist/Cesium/Widgets/ProjectionPicker/ProjectionPicker.css +38 -1
  30. package/dist/Cesium/Widgets/SceneModePicker/SceneModePicker.css +56 -1
  31. package/dist/Cesium/Widgets/SelectionIndicator/SelectionIndicator.css +20 -1
  32. package/dist/Cesium/Widgets/Timeline/Timeline.css +96 -1
  33. package/dist/Cesium/Widgets/Timeline/lighter.css +18 -1
  34. package/dist/Cesium/Widgets/VRButton/VRButton.css +8 -1
  35. package/dist/Cesium/Widgets/Viewer/Viewer.css +107 -1
  36. package/dist/Cesium/Widgets/VoxelInspector/VoxelInspector.css +16 -0
  37. package/dist/Cesium/Widgets/lighter.css +232 -1
  38. package/dist/Cesium/Widgets/lighterShared.css +46 -1
  39. package/dist/Cesium/Widgets/shared.css +103 -1
  40. package/dist/Cesium/Widgets/widgets.css +1311 -1
  41. package/dist/Cesium/Workers/ArcType-26a3f38d.js +1 -0
  42. package/dist/Cesium/Workers/AttributeCompression-48e336db.js +1 -0
  43. package/dist/Cesium/Workers/AxisAlignedBoundingBox-2c8f82be.js +1 -0
  44. package/dist/Cesium/Workers/BoundingRectangle-b8248608.js +1 -0
  45. package/dist/Cesium/Workers/BoxGeometry-85afccf5.js +1 -0
  46. package/dist/Cesium/Workers/Color-50ebab71.js +1 -0
  47. package/dist/Cesium/Workers/ComponentDatatype-ab629b88.js +1 -0
  48. package/dist/Cesium/Workers/CoplanarPolygonGeometryLibrary-44d91286.js +1 -0
  49. package/dist/Cesium/Workers/CorridorGeometryLibrary-0fed6511.js +1 -0
  50. package/dist/Cesium/Workers/CylinderGeometry-4802140c.js +1 -0
  51. package/dist/Cesium/Workers/CylinderGeometryLibrary-f49f33a8.js +1 -0
  52. package/dist/Cesium/Workers/EllipseGeometry-e8ae6742.js +1 -0
  53. package/dist/Cesium/Workers/EllipseGeometryLibrary-6ce53de3.js +1 -0
  54. package/dist/Cesium/Workers/EllipseOutlineGeometry-52d25fd2.js +1 -0
  55. package/dist/Cesium/Workers/EllipsoidGeodesic-2723ab86.js +1 -0
  56. package/dist/Cesium/Workers/EllipsoidGeometry-7cbedd8f.js +1 -0
  57. package/dist/Cesium/Workers/EllipsoidOutlineGeometry-876d584e.js +1 -0
  58. package/dist/Cesium/Workers/EllipsoidRhumbLine-77eff028.js +1 -0
  59. package/dist/Cesium/Workers/EllipsoidTangentPlane-4cf30b6c.js +1 -0
  60. package/dist/Cesium/Workers/EncodedCartesian3-5e2017ab.js +1 -0
  61. package/dist/Cesium/Workers/FrustumGeometry-cffd2aa8.js +1 -0
  62. package/dist/Cesium/Workers/GeometryAttribute-b10c5c29.js +1 -0
  63. package/dist/Cesium/Workers/GeometryAttributes-1e4ddcd2.js +1 -0
  64. package/dist/Cesium/Workers/GeometryInstance-0318e0cd.js +1 -0
  65. package/dist/Cesium/Workers/GeometryOffsetAttribute-2579b8d2.js +1 -0
  66. package/dist/Cesium/Workers/GeometryPipeline-5926bf6a.js +1 -0
  67. package/dist/Cesium/Workers/IndexDatatype-d3db4e7d.js +1 -0
  68. package/dist/Cesium/Workers/IntersectionTests-832aa5c7.js +1 -0
  69. package/dist/Cesium/Workers/Math-2ce22ee9.js +1 -0
  70. package/dist/Cesium/Workers/Matrix2-413c4048.js +1 -0
  71. package/dist/Cesium/Workers/Matrix3-81054f0f.js +1 -0
  72. package/dist/Cesium/Workers/OrientedBoundingBox-c3eda7c2.js +1 -0
  73. package/dist/Cesium/Workers/Plane-6add0ae1.js +1 -0
  74. package/dist/Cesium/Workers/PolygonGeometryLibrary-d5f3e119.js +1 -0
  75. package/dist/Cesium/Workers/PolygonPipeline-e8d27f39.js +1 -0
  76. package/dist/Cesium/Workers/PolylinePipeline-3006b0cf.js +1 -0
  77. package/dist/Cesium/Workers/PolylineVolumeGeometryLibrary-437b726e.js +1 -0
  78. package/dist/Cesium/Workers/PrimitivePipeline-90884677.js +1 -0
  79. package/dist/Cesium/Workers/RectangleGeometryLibrary-11b080fb.js +1 -0
  80. package/dist/Cesium/Workers/RuntimeError-9b4ce3fb.js +1 -0
  81. package/dist/Cesium/Workers/TerrainEncoding-7b6ac0c5.js +1 -0
  82. package/dist/Cesium/Workers/Transforms-c65aae74.js +14 -0
  83. package/dist/Cesium/Workers/VertexFormat-fbdec922.js +1 -0
  84. package/dist/Cesium/Workers/WallGeometryLibrary-dc44247b.js +1 -0
  85. package/dist/Cesium/Workers/WebGLConstants-7f557f93.js +1 -0
  86. package/dist/Cesium/Workers/WebMercatorProjection-943e2226.js +1 -0
  87. package/dist/Cesium/Workers/arrayRemoveDuplicates-9b636830.js +1 -0
  88. package/dist/Cesium/Workers/cesiumWorkerBootstrapper.js +28 -3
  89. package/dist/Cesium/Workers/combine-0c102d93.js +1 -0
  90. package/dist/Cesium/Workers/combineGeometry.js +1 -1
  91. package/dist/Cesium/Workers/createBoxGeometry.js +1 -1
  92. package/dist/Cesium/Workers/createBoxOutlineGeometry.js +1 -1
  93. package/dist/Cesium/Workers/createCircleGeometry.js +1 -1
  94. package/dist/Cesium/Workers/createCircleOutlineGeometry.js +1 -1
  95. package/dist/Cesium/Workers/createCoplanarPolygonGeometry.js +1 -1
  96. package/dist/Cesium/Workers/createCoplanarPolygonOutlineGeometry.js +1 -1
  97. package/dist/Cesium/Workers/createCorridorGeometry.js +1 -1
  98. package/dist/Cesium/Workers/createCorridorOutlineGeometry.js +1 -1
  99. package/dist/Cesium/Workers/createCylinderGeometry.js +1 -1
  100. package/dist/Cesium/Workers/createCylinderOutlineGeometry.js +1 -1
  101. package/dist/Cesium/Workers/createEllipseGeometry.js +1 -1
  102. package/dist/Cesium/Workers/createEllipseOutlineGeometry.js +1 -1
  103. package/dist/Cesium/Workers/createEllipsoidGeometry.js +1 -1
  104. package/dist/Cesium/Workers/createEllipsoidOutlineGeometry.js +1 -1
  105. package/dist/Cesium/Workers/createFrustumGeometry.js +1 -1
  106. package/dist/Cesium/Workers/createFrustumOutlineGeometry.js +1 -1
  107. package/dist/Cesium/Workers/createGeometry.js +1 -1
  108. package/dist/Cesium/Workers/createGroundPolylineGeometry.js +1 -1
  109. package/dist/Cesium/Workers/createPlaneGeometry.js +1 -1
  110. package/dist/Cesium/Workers/createPlaneOutlineGeometry.js +1 -1
  111. package/dist/Cesium/Workers/createPolygonGeometry.js +1 -1
  112. package/dist/Cesium/Workers/createPolygonOutlineGeometry.js +1 -1
  113. package/dist/Cesium/Workers/createPolylineGeometry.js +1 -1
  114. package/dist/Cesium/Workers/createPolylineVolumeGeometry.js +1 -1
  115. package/dist/Cesium/Workers/createPolylineVolumeOutlineGeometry.js +1 -1
  116. package/dist/Cesium/Workers/createRectangleGeometry.js +1 -1
  117. package/dist/Cesium/Workers/createRectangleOutlineGeometry.js +1 -1
  118. package/dist/Cesium/Workers/createSimplePolylineGeometry.js +1 -1
  119. package/dist/Cesium/Workers/createSphereGeometry.js +1 -1
  120. package/dist/Cesium/Workers/createSphereOutlineGeometry.js +1 -1
  121. package/dist/Cesium/Workers/createTaskProcessorWorker.js +1 -1
  122. package/dist/Cesium/Workers/createVectorTileClampedPolylines.js +1 -1
  123. package/dist/Cesium/Workers/createVectorTileGeometries.js +1 -1
  124. package/dist/Cesium/Workers/createVectorTilePoints.js +1 -1
  125. package/dist/Cesium/Workers/createVectorTilePolygons.js +1 -1
  126. package/dist/Cesium/Workers/createVectorTilePolylines.js +1 -1
  127. package/dist/Cesium/Workers/createVerticesFromGoogleEarthEnterpriseBuffer.js +1 -1
  128. package/dist/Cesium/Workers/createVerticesFromHeightmap.js +2 -2
  129. package/dist/Cesium/Workers/createVerticesFromQuantizedTerrainMesh.js +1 -1
  130. package/dist/Cesium/Workers/createWallGeometry.js +1 -1
  131. package/dist/Cesium/Workers/createWallOutlineGeometry.js +1 -1
  132. package/dist/Cesium/Workers/decodeDraco.js +1 -1
  133. package/dist/Cesium/Workers/decodeGoogleEarthEnterprisePacket.js +1 -1
  134. package/dist/Cesium/Workers/decodeI3S.js +1 -0
  135. package/dist/Cesium/Workers/defaultValue-f6d5e6da.js +1 -0
  136. package/dist/Cesium/Workers/package.js +26 -0
  137. package/dist/Cesium/Workers/transcodeKTX2.js +1 -1
  138. package/dist/Cesium/Workers/transferTypedArrayTest.js +26 -1
  139. package/dist/Cesium/Workers/upsampleQuantizedTerrainMesh.js +1 -1
  140. package/dist/Cesium/index.cjs +15065 -0
  141. package/dist/Cesium/index.js +15065 -0
  142. package/dist/gis3d/gis3d.css +772 -742
  143. package/dist/gis3d/gis3d.js +80490 -16
  144. package/package.json +1 -1
@@ -1 +1 @@
1
- !function(e){"object"==typeof exports&&"undefined"!=typeof module?module.exports=e():"function"==typeof define&&define.amd?define([],e):("undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:this).pako=e()}((function(){return function e(t,i,n){function a(o,s){if(!i[o]){if(!t[o]){var f="function"==typeof require&&require;if(!s&&f)return f(o,!0);if(r)return r(o,!0);var l=new Error("Cannot find module '"+o+"'");throw l.code="MODULE_NOT_FOUND",l}var d=i[o]={exports:{}};t[o][0].call(d.exports,(function(e){return a(t[o][1][e]||e)}),d,d.exports,e,t,i,n)}return i[o].exports}for(var r="function"==typeof require&&require,o=0;o<n.length;o++)a(n[o]);return a}({1:[function(e,t,i){"use strict";var n="undefined"!=typeof Uint8Array&&"undefined"!=typeof Uint16Array&&"undefined"!=typeof Int32Array;i.assign=function(e){for(var t,i,n=Array.prototype.slice.call(arguments,1);n.length;){var a=n.shift();if(a){if("object"!=typeof a)throw new TypeError(a+"must be non-object");for(var r in a)t=a,i=r,Object.prototype.hasOwnProperty.call(t,i)&&(e[r]=a[r])}}return e},i.shrinkBuf=function(e,t){return e.length===t?e:e.subarray?e.subarray(0,t):(e.length=t,e)};var a={arraySet:function(e,t,i,n,a){if(t.subarray&&e.subarray)e.set(t.subarray(i,i+n),a);else for(var r=0;r<n;r++)e[a+r]=t[i+r]},flattenChunks:function(e){var t,i,n,a,r,o;for(t=n=0,i=e.length;t<i;t++)n+=e[t].length;for(o=new Uint8Array(n),t=a=0,i=e.length;t<i;t++)r=e[t],o.set(r,a),a+=r.length;return o}},r={arraySet:function(e,t,i,n,a){for(var r=0;r<n;r++)e[a+r]=t[i+r]},flattenChunks:function(e){return[].concat.apply([],e)}};i.setTyped=function(e){e?(i.Buf8=Uint8Array,i.Buf16=Uint16Array,i.Buf32=Int32Array,i.assign(i,a)):(i.Buf8=Array,i.Buf16=Array,i.Buf32=Array,i.assign(i,r))},i.setTyped(n)},{}],2:[function(e,t,i){"use strict";var n=e("./common"),a=!0,r=!0;try{String.fromCharCode.apply(null,[0])}catch(e){a=!1}try{String.fromCharCode.apply(null,new Uint8Array(1))}catch(e){r=!1}for(var o=new n.Buf8(256),s=0;s<256;s++)o[s]=252<=s?6:248<=s?5:240<=s?4:224<=s?3:192<=s?2:1;function f(e,t){if(t<65534&&(e.subarray&&r||!e.subarray&&a))return String.fromCharCode.apply(null,n.shrinkBuf(e,t));for(var i="",o=0;o<t;o++)i+=String.fromCharCode(e[o]);return i}o[254]=o[254]=1,i.string2buf=function(e){var t,i,a,r,o,s=e.length,f=0;for(r=0;r<s;r++)55296==(64512&(i=e.charCodeAt(r)))&&r+1<s&&56320==(64512&(a=e.charCodeAt(r+1)))&&(i=65536+(i-55296<<10)+(a-56320),r++),f+=i<128?1:i<2048?2:i<65536?3:4;for(t=new n.Buf8(f),r=o=0;o<f;r++)55296==(64512&(i=e.charCodeAt(r)))&&r+1<s&&56320==(64512&(a=e.charCodeAt(r+1)))&&(i=65536+(i-55296<<10)+(a-56320),r++),i<128?t[o++]=i:(i<2048?t[o++]=192|i>>>6:(i<65536?t[o++]=224|i>>>12:(t[o++]=240|i>>>18,t[o++]=128|i>>>12&63),t[o++]=128|i>>>6&63),t[o++]=128|63&i);return t},i.buf2binstring=function(e){return f(e,e.length)},i.binstring2buf=function(e){for(var t=new n.Buf8(e.length),i=0,a=t.length;i<a;i++)t[i]=e.charCodeAt(i);return t},i.buf2string=function(e,t){var i,n,a,r,s=t||e.length,l=new Array(2*s);for(i=n=0;i<s;)if((a=e[i++])<128)l[n++]=a;else if(4<(r=o[a]))l[n++]=65533,i+=r-1;else{for(a&=2===r?31:3===r?15:7;1<r&&i<s;)a=a<<6|63&e[i++],r--;1<r?l[n++]=65533:a<65536?l[n++]=a:(a-=65536,l[n++]=55296|a>>10&1023,l[n++]=56320|1023&a)}return f(l,n)},i.utf8border=function(e,t){var i;for((t=t||e.length)>e.length&&(t=e.length),i=t-1;0<=i&&128==(192&e[i]);)i--;return i<0||0===i?t:i+o[e[i]]>t?i:t}},{"./common":1}],3:[function(e,t,i){"use strict";t.exports=function(e,t,i,n){for(var a=65535&e|0,r=e>>>16&65535|0,o=0;0!==i;){for(i-=o=2e3<i?2e3:i;r=r+(a=a+t[n++]|0)|0,--o;);a%=65521,r%=65521}return a|r<<16|0}},{}],4:[function(e,t,i){"use strict";t.exports={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}},{}],5:[function(e,t,i){"use strict";var n=function(){for(var e,t=[],i=0;i<256;i++){e=i;for(var n=0;n<8;n++)e=1&e?3988292384^e>>>1:e>>>1;t[i]=e}return t}();t.exports=function(e,t,i,a){var r=n,o=a+i;e^=-1;for(var s=a;s<o;s++)e=e>>>8^r[255&(e^t[s])];return-1^e}},{}],6:[function(e,t,i){"use strict";t.exports=function(){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}},{}],7:[function(e,t,i){"use strict";t.exports=function(e,t){var i,n,a,r,o,s,f,l,d,c,u,h,b,m,w,k,_,g,v,p,x,y,S,E,Z;i=e.state,n=e.next_in,E=e.input,a=n+(e.avail_in-5),r=e.next_out,Z=e.output,o=r-(t-e.avail_out),s=r+(e.avail_out-257),f=i.dmax,l=i.wsize,d=i.whave,c=i.wnext,u=i.window,h=i.hold,b=i.bits,m=i.lencode,w=i.distcode,k=(1<<i.lenbits)-1,_=(1<<i.distbits)-1;e:do{b<15&&(h+=E[n++]<<b,b+=8,h+=E[n++]<<b,b+=8),g=m[h&k];t:for(;;){if(h>>>=v=g>>>24,b-=v,0==(v=g>>>16&255))Z[r++]=65535&g;else{if(!(16&v)){if(0==(64&v)){g=m[(65535&g)+(h&(1<<v)-1)];continue t}if(32&v){i.mode=12;break e}e.msg="invalid literal/length code",i.mode=30;break e}p=65535&g,(v&=15)&&(b<v&&(h+=E[n++]<<b,b+=8),p+=h&(1<<v)-1,h>>>=v,b-=v),b<15&&(h+=E[n++]<<b,b+=8,h+=E[n++]<<b,b+=8),g=w[h&_];i:for(;;){if(h>>>=v=g>>>24,b-=v,!(16&(v=g>>>16&255))){if(0==(64&v)){g=w[(65535&g)+(h&(1<<v)-1)];continue i}e.msg="invalid distance code",i.mode=30;break e}if(x=65535&g,b<(v&=15)&&(h+=E[n++]<<b,(b+=8)<v&&(h+=E[n++]<<b,b+=8)),f<(x+=h&(1<<v)-1)){e.msg="invalid distance too far back",i.mode=30;break e}if(h>>>=v,b-=v,(v=r-o)<x){if(d<(v=x-v)&&i.sane){e.msg="invalid distance too far back",i.mode=30;break e}if(S=u,(y=0)===c){if(y+=l-v,v<p){for(p-=v;Z[r++]=u[y++],--v;);y=r-x,S=Z}}else if(c<v){if(y+=l+c-v,(v-=c)<p){for(p-=v;Z[r++]=u[y++],--v;);if(y=0,c<p){for(p-=v=c;Z[r++]=u[y++],--v;);y=r-x,S=Z}}}else if(y+=c-v,v<p){for(p-=v;Z[r++]=u[y++],--v;);y=r-x,S=Z}for(;2<p;)Z[r++]=S[y++],Z[r++]=S[y++],Z[r++]=S[y++],p-=3;p&&(Z[r++]=S[y++],1<p&&(Z[r++]=S[y++]))}else{for(y=r-x;Z[r++]=Z[y++],Z[r++]=Z[y++],Z[r++]=Z[y++],2<(p-=3););p&&(Z[r++]=Z[y++],1<p&&(Z[r++]=Z[y++]))}break}}break}}while(n<a&&r<s);n-=p=b>>3,h&=(1<<(b-=p<<3))-1,e.next_in=n,e.next_out=r,e.avail_in=n<a?a-n+5:5-(n-a),e.avail_out=r<s?s-r+257:257-(r-s),i.hold=h,i.bits=b}},{}],8:[function(e,t,i){"use strict";var n=e("../utils/common"),a=e("./adler32"),r=e("./crc32"),o=e("./inffast"),s=e("./inftrees"),f=-2;function l(e){return(e>>>24&255)+(e>>>8&65280)+((65280&e)<<8)+((255&e)<<24)}function d(){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 n.Buf16(320),this.work=new n.Buf16(288),this.lendyn=null,this.distdyn=null,this.sane=0,this.back=0,this.was=0}function c(e){var t;return e&&e.state?(t=e.state,e.total_in=e.total_out=t.total=0,e.msg="",t.wrap&&(e.adler=1&t.wrap),t.mode=1,t.last=0,t.havedict=0,t.dmax=32768,t.head=null,t.hold=0,t.bits=0,t.lencode=t.lendyn=new n.Buf32(852),t.distcode=t.distdyn=new n.Buf32(592),t.sane=1,t.back=-1,0):f}function u(e){var t;return e&&e.state?((t=e.state).wsize=0,t.whave=0,t.wnext=0,c(e)):f}function h(e,t){var i,n;return e&&e.state?(n=e.state,t<0?(i=0,t=-t):(i=1+(t>>4),t<48&&(t&=15)),t&&(t<8||15<t)?f:(null!==n.window&&n.wbits!==t&&(n.window=null),n.wrap=i,n.wbits=t,u(e))):f}function b(e,t){var i,n;return e?(n=new d,(e.state=n).window=null,0!==(i=h(e,t))&&(e.state=null),i):f}var m,w,k=!0;function _(e){if(k){var t;for(m=new n.Buf32(512),w=new n.Buf32(32),t=0;t<144;)e.lens[t++]=8;for(;t<256;)e.lens[t++]=9;for(;t<280;)e.lens[t++]=7;for(;t<288;)e.lens[t++]=8;for(s(1,e.lens,0,288,m,0,e.work,{bits:9}),t=0;t<32;)e.lens[t++]=5;s(2,e.lens,0,32,w,0,e.work,{bits:5}),k=!1}e.lencode=m,e.lenbits=9,e.distcode=w,e.distbits=5}function g(e,t,i,a){var r,o=e.state;return null===o.window&&(o.wsize=1<<o.wbits,o.wnext=0,o.whave=0,o.window=new n.Buf8(o.wsize)),a>=o.wsize?(n.arraySet(o.window,t,i-o.wsize,o.wsize,0),o.wnext=0,o.whave=o.wsize):(a<(r=o.wsize-o.wnext)&&(r=a),n.arraySet(o.window,t,i-a,r,o.wnext),(a-=r)?(n.arraySet(o.window,t,i-a,a,0),o.wnext=a,o.whave=o.wsize):(o.wnext+=r,o.wnext===o.wsize&&(o.wnext=0),o.whave<o.wsize&&(o.whave+=r))),0}i.inflateReset=u,i.inflateReset2=h,i.inflateResetKeep=c,i.inflateInit=function(e){return b(e,15)},i.inflateInit2=b,i.inflate=function(e,t){var i,d,c,u,h,b,m,w,k,v,p,x,y,S,E,Z,B,A,z,R,N,O,C,I,D=0,T=new n.Buf8(4),U=[16,17,18,0,8,7,9,6,10,5,11,4,12,3,13,2,14,1,15];if(!e||!e.state||!e.output||!e.input&&0!==e.avail_in)return f;12===(i=e.state).mode&&(i.mode=13),h=e.next_out,c=e.output,m=e.avail_out,u=e.next_in,d=e.input,b=e.avail_in,w=i.hold,k=i.bits,v=b,p=m,O=0;e:for(;;)switch(i.mode){case 1:if(0===i.wrap){i.mode=13;break}for(;k<16;){if(0===b)break e;b--,w+=d[u++]<<k,k+=8}if(2&i.wrap&&35615===w){T[i.check=0]=255&w,T[1]=w>>>8&255,i.check=r(i.check,T,2,0),k=w=0,i.mode=2;break}if(i.flags=0,i.head&&(i.head.done=!1),!(1&i.wrap)||(((255&w)<<8)+(w>>8))%31){e.msg="incorrect header check",i.mode=30;break}if(8!=(15&w)){e.msg="unknown compression method",i.mode=30;break}if(k-=4,N=8+(15&(w>>>=4)),0===i.wbits)i.wbits=N;else if(N>i.wbits){e.msg="invalid window size",i.mode=30;break}i.dmax=1<<N,e.adler=i.check=1,i.mode=512&w?10:12,k=w=0;break;case 2:for(;k<16;){if(0===b)break e;b--,w+=d[u++]<<k,k+=8}if(i.flags=w,8!=(255&i.flags)){e.msg="unknown compression method",i.mode=30;break}if(57344&i.flags){e.msg="unknown header flags set",i.mode=30;break}i.head&&(i.head.text=w>>8&1),512&i.flags&&(T[0]=255&w,T[1]=w>>>8&255,i.check=r(i.check,T,2,0)),k=w=0,i.mode=3;case 3:for(;k<32;){if(0===b)break e;b--,w+=d[u++]<<k,k+=8}i.head&&(i.head.time=w),512&i.flags&&(T[0]=255&w,T[1]=w>>>8&255,T[2]=w>>>16&255,T[3]=w>>>24&255,i.check=r(i.check,T,4,0)),k=w=0,i.mode=4;case 4:for(;k<16;){if(0===b)break e;b--,w+=d[u++]<<k,k+=8}i.head&&(i.head.xflags=255&w,i.head.os=w>>8),512&i.flags&&(T[0]=255&w,T[1]=w>>>8&255,i.check=r(i.check,T,2,0)),k=w=0,i.mode=5;case 5:if(1024&i.flags){for(;k<16;){if(0===b)break e;b--,w+=d[u++]<<k,k+=8}i.length=w,i.head&&(i.head.extra_len=w),512&i.flags&&(T[0]=255&w,T[1]=w>>>8&255,i.check=r(i.check,T,2,0)),k=w=0}else i.head&&(i.head.extra=null);i.mode=6;case 6:if(1024&i.flags&&(b<(x=i.length)&&(x=b),x&&(i.head&&(N=i.head.extra_len-i.length,i.head.extra||(i.head.extra=new Array(i.head.extra_len)),n.arraySet(i.head.extra,d,u,x,N)),512&i.flags&&(i.check=r(i.check,d,x,u)),b-=x,u+=x,i.length-=x),i.length))break e;i.length=0,i.mode=7;case 7:if(2048&i.flags){if(0===b)break e;for(x=0;N=d[u+x++],i.head&&N&&i.length<65536&&(i.head.name+=String.fromCharCode(N)),N&&x<b;);if(512&i.flags&&(i.check=r(i.check,d,x,u)),b-=x,u+=x,N)break e}else i.head&&(i.head.name=null);i.length=0,i.mode=8;case 8:if(4096&i.flags){if(0===b)break e;for(x=0;N=d[u+x++],i.head&&N&&i.length<65536&&(i.head.comment+=String.fromCharCode(N)),N&&x<b;);if(512&i.flags&&(i.check=r(i.check,d,x,u)),b-=x,u+=x,N)break e}else i.head&&(i.head.comment=null);i.mode=9;case 9:if(512&i.flags){for(;k<16;){if(0===b)break e;b--,w+=d[u++]<<k,k+=8}if(w!==(65535&i.check)){e.msg="header crc mismatch",i.mode=30;break}k=w=0}i.head&&(i.head.hcrc=i.flags>>9&1,i.head.done=!0),e.adler=i.check=0,i.mode=12;break;case 10:for(;k<32;){if(0===b)break e;b--,w+=d[u++]<<k,k+=8}e.adler=i.check=l(w),k=w=0,i.mode=11;case 11:if(0===i.havedict)return e.next_out=h,e.avail_out=m,e.next_in=u,e.avail_in=b,i.hold=w,i.bits=k,2;e.adler=i.check=1,i.mode=12;case 12:if(5===t||6===t)break e;case 13:if(i.last){w>>>=7&k,k-=7&k,i.mode=27;break}for(;k<3;){if(0===b)break e;b--,w+=d[u++]<<k,k+=8}switch(i.last=1&w,k-=1,3&(w>>>=1)){case 0:i.mode=14;break;case 1:if(_(i),i.mode=20,6!==t)break;w>>>=2,k-=2;break e;case 2:i.mode=17;break;case 3:e.msg="invalid block type",i.mode=30}w>>>=2,k-=2;break;case 14:for(w>>>=7&k,k-=7&k;k<32;){if(0===b)break e;b--,w+=d[u++]<<k,k+=8}if((65535&w)!=(w>>>16^65535)){e.msg="invalid stored block lengths",i.mode=30;break}if(i.length=65535&w,k=w=0,i.mode=15,6===t)break e;case 15:i.mode=16;case 16:if(x=i.length){if(b<x&&(x=b),m<x&&(x=m),0===x)break e;n.arraySet(c,d,u,x,h),b-=x,u+=x,m-=x,h+=x,i.length-=x;break}i.mode=12;break;case 17:for(;k<14;){if(0===b)break e;b--,w+=d[u++]<<k,k+=8}if(i.nlen=257+(31&w),w>>>=5,k-=5,i.ndist=1+(31&w),w>>>=5,k-=5,i.ncode=4+(15&w),w>>>=4,k-=4,286<i.nlen||30<i.ndist){e.msg="too many length or distance symbols",i.mode=30;break}i.have=0,i.mode=18;case 18:for(;i.have<i.ncode;){for(;k<3;){if(0===b)break e;b--,w+=d[u++]<<k,k+=8}i.lens[U[i.have++]]=7&w,w>>>=3,k-=3}for(;i.have<19;)i.lens[U[i.have++]]=0;if(i.lencode=i.lendyn,i.lenbits=7,C={bits:i.lenbits},O=s(0,i.lens,0,19,i.lencode,0,i.work,C),i.lenbits=C.bits,O){e.msg="invalid code lengths set",i.mode=30;break}i.have=0,i.mode=19;case 19:for(;i.have<i.nlen+i.ndist;){for(;Z=(D=i.lencode[w&(1<<i.lenbits)-1])>>>16&255,B=65535&D,!((E=D>>>24)<=k);){if(0===b)break e;b--,w+=d[u++]<<k,k+=8}if(B<16)w>>>=E,k-=E,i.lens[i.have++]=B;else{if(16===B){for(I=E+2;k<I;){if(0===b)break e;b--,w+=d[u++]<<k,k+=8}if(w>>>=E,k-=E,0===i.have){e.msg="invalid bit length repeat",i.mode=30;break}N=i.lens[i.have-1],x=3+(3&w),w>>>=2,k-=2}else if(17===B){for(I=E+3;k<I;){if(0===b)break e;b--,w+=d[u++]<<k,k+=8}k-=E,N=0,x=3+(7&(w>>>=E)),w>>>=3,k-=3}else{for(I=E+7;k<I;){if(0===b)break e;b--,w+=d[u++]<<k,k+=8}k-=E,N=0,x=11+(127&(w>>>=E)),w>>>=7,k-=7}if(i.have+x>i.nlen+i.ndist){e.msg="invalid bit length repeat",i.mode=30;break}for(;x--;)i.lens[i.have++]=N}}if(30===i.mode)break;if(0===i.lens[256]){e.msg="invalid code -- missing end-of-block",i.mode=30;break}if(i.lenbits=9,C={bits:i.lenbits},O=s(1,i.lens,0,i.nlen,i.lencode,0,i.work,C),i.lenbits=C.bits,O){e.msg="invalid literal/lengths set",i.mode=30;break}if(i.distbits=6,i.distcode=i.distdyn,C={bits:i.distbits},O=s(2,i.lens,i.nlen,i.ndist,i.distcode,0,i.work,C),i.distbits=C.bits,O){e.msg="invalid distances set",i.mode=30;break}if(i.mode=20,6===t)break e;case 20:i.mode=21;case 21:if(6<=b&&258<=m){e.next_out=h,e.avail_out=m,e.next_in=u,e.avail_in=b,i.hold=w,i.bits=k,o(e,p),h=e.next_out,c=e.output,m=e.avail_out,u=e.next_in,d=e.input,b=e.avail_in,w=i.hold,k=i.bits,12===i.mode&&(i.back=-1);break}for(i.back=0;Z=(D=i.lencode[w&(1<<i.lenbits)-1])>>>16&255,B=65535&D,!((E=D>>>24)<=k);){if(0===b)break e;b--,w+=d[u++]<<k,k+=8}if(Z&&0==(240&Z)){for(A=E,z=Z,R=B;Z=(D=i.lencode[R+((w&(1<<A+z)-1)>>A)])>>>16&255,B=65535&D,!(A+(E=D>>>24)<=k);){if(0===b)break e;b--,w+=d[u++]<<k,k+=8}w>>>=A,k-=A,i.back+=A}if(w>>>=E,k-=E,i.back+=E,i.length=B,0===Z){i.mode=26;break}if(32&Z){i.back=-1,i.mode=12;break}if(64&Z){e.msg="invalid literal/length code",i.mode=30;break}i.extra=15&Z,i.mode=22;case 22:if(i.extra){for(I=i.extra;k<I;){if(0===b)break e;b--,w+=d[u++]<<k,k+=8}i.length+=w&(1<<i.extra)-1,w>>>=i.extra,k-=i.extra,i.back+=i.extra}i.was=i.length,i.mode=23;case 23:for(;Z=(D=i.distcode[w&(1<<i.distbits)-1])>>>16&255,B=65535&D,!((E=D>>>24)<=k);){if(0===b)break e;b--,w+=d[u++]<<k,k+=8}if(0==(240&Z)){for(A=E,z=Z,R=B;Z=(D=i.distcode[R+((w&(1<<A+z)-1)>>A)])>>>16&255,B=65535&D,!(A+(E=D>>>24)<=k);){if(0===b)break e;b--,w+=d[u++]<<k,k+=8}w>>>=A,k-=A,i.back+=A}if(w>>>=E,k-=E,i.back+=E,64&Z){e.msg="invalid distance code",i.mode=30;break}i.offset=B,i.extra=15&Z,i.mode=24;case 24:if(i.extra){for(I=i.extra;k<I;){if(0===b)break e;b--,w+=d[u++]<<k,k+=8}i.offset+=w&(1<<i.extra)-1,w>>>=i.extra,k-=i.extra,i.back+=i.extra}if(i.offset>i.dmax){e.msg="invalid distance too far back",i.mode=30;break}i.mode=25;case 25:if(0===m)break e;if(x=p-m,i.offset>x){if((x=i.offset-x)>i.whave&&i.sane){e.msg="invalid distance too far back",i.mode=30;break}x>i.wnext?(x-=i.wnext,y=i.wsize-x):y=i.wnext-x,x>i.length&&(x=i.length),S=i.window}else S=c,y=h-i.offset,x=i.length;for(m<x&&(x=m),m-=x,i.length-=x;c[h++]=S[y++],--x;);0===i.length&&(i.mode=21);break;case 26:if(0===m)break e;c[h++]=i.length,m--,i.mode=21;break;case 27:if(i.wrap){for(;k<32;){if(0===b)break e;b--,w|=d[u++]<<k,k+=8}if(p-=m,e.total_out+=p,i.total+=p,p&&(e.adler=i.check=i.flags?r(i.check,c,p,h-p):a(i.check,c,p,h-p)),p=m,(i.flags?w:l(w))!==i.check){e.msg="incorrect data check",i.mode=30;break}k=w=0}i.mode=28;case 28:if(i.wrap&&i.flags){for(;k<32;){if(0===b)break e;b--,w+=d[u++]<<k,k+=8}if(w!==(4294967295&i.total)){e.msg="incorrect length check",i.mode=30;break}k=w=0}i.mode=29;case 29:O=1;break e;case 30:O=-3;break e;case 31:return-4;default:return f}return e.next_out=h,e.avail_out=m,e.next_in=u,e.avail_in=b,i.hold=w,i.bits=k,(i.wsize||p!==e.avail_out&&i.mode<30&&(i.mode<27||4!==t))&&g(e,e.output,e.next_out,p-e.avail_out)?(i.mode=31,-4):(v-=e.avail_in,p-=e.avail_out,e.total_in+=v,e.total_out+=p,i.total+=p,i.wrap&&p&&(e.adler=i.check=i.flags?r(i.check,c,p,e.next_out-p):a(i.check,c,p,e.next_out-p)),e.data_type=i.bits+(i.last?64:0)+(12===i.mode?128:0)+(20===i.mode||15===i.mode?256:0),(0===v&&0===p||4===t)&&0===O&&(O=-5),O)},i.inflateEnd=function(e){if(!e||!e.state)return f;var t=e.state;return t.window&&(t.window=null),e.state=null,0},i.inflateGetHeader=function(e,t){var i;return e&&e.state?0==(2&(i=e.state).wrap)?f:((i.head=t).done=!1,0):f},i.inflateSetDictionary=function(e,t){var i,n=t.length;return e&&e.state?0!==(i=e.state).wrap&&11!==i.mode?f:11===i.mode&&a(1,t,n,0)!==i.check?-3:g(e,t,n,n)?(i.mode=31,-4):(i.havedict=1,0):f},i.inflateInfo="pako inflate (from Nodeca project)"},{"../utils/common":1,"./adler32":3,"./crc32":5,"./inffast":7,"./inftrees":9}],9:[function(e,t,i){"use strict";var n=e("../utils/common"),a=[3,4,5,6,7,8,9,10,11,13,15,17,19,23,27,31,35,43,51,59,67,83,99,115,131,163,195,227,258,0,0],r=[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],o=[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],s=[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];t.exports=function(e,t,i,f,l,d,c,u){var h,b,m,w,k,_,g,v,p,x=u.bits,y=0,S=0,E=0,Z=0,B=0,A=0,z=0,R=0,N=0,O=0,C=null,I=0,D=new n.Buf16(16),T=new n.Buf16(16),U=null,F=0;for(y=0;y<=15;y++)D[y]=0;for(S=0;S<f;S++)D[t[i+S]]++;for(B=x,Z=15;1<=Z&&0===D[Z];Z--);if(Z<B&&(B=Z),0===Z)return l[d++]=20971520,l[d++]=20971520,u.bits=1,0;for(E=1;E<Z&&0===D[E];E++);for(B<E&&(B=E),y=R=1;y<=15;y++)if(R<<=1,(R-=D[y])<0)return-1;if(0<R&&(0===e||1!==Z))return-1;for(T[1]=0,y=1;y<15;y++)T[y+1]=T[y]+D[y];for(S=0;S<f;S++)0!==t[i+S]&&(c[T[t[i+S]]++]=S);if(0===e?(C=U=c,_=19):1===e?(C=a,I-=257,U=r,F-=257,_=256):(C=o,U=s,_=-1),y=E,k=d,z=S=O=0,m=-1,w=(N=1<<(A=B))-1,1===e&&852<N||2===e&&592<N)return 1;for(;;){for(g=y-z,c[S]<_?(v=0,p=c[S]):c[S]>_?(v=U[F+c[S]],p=C[I+c[S]]):(v=96,p=0),h=1<<y-z,E=b=1<<A;l[k+(O>>z)+(b-=h)]=g<<24|v<<16|p|0,0!==b;);for(h=1<<y-1;O&h;)h>>=1;if(0!==h?(O&=h-1,O+=h):O=0,S++,0==--D[y]){if(y===Z)break;y=t[i+c[S]]}if(B<y&&(O&w)!==m){for(0===z&&(z=B),k+=E,R=1<<(A=y-z);A+z<Z&&!((R-=D[A+z])<=0);)A++,R<<=1;if(N+=1<<A,1===e&&852<N||2===e&&592<N)return 1;l[m=O&w]=B<<24|A<<16|k-d|0}}return 0!==O&&(l[k+O]=y-z<<24|64<<16|0),u.bits=B,0}},{"../utils/common":1}],10:[function(e,t,i){"use strict";t.exports={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"}},{}],11:[function(e,t,i){"use strict";t.exports=function(){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}},{}],"/lib/inflate.js":[function(e,t,i){"use strict";var n=e("./zlib/inflate"),a=e("./utils/common"),r=e("./utils/strings"),o=e("./zlib/constants"),s=e("./zlib/messages"),f=e("./zlib/zstream"),l=e("./zlib/gzheader"),d=Object.prototype.toString;function c(e){if(!(this instanceof c))return new c(e);this.options=a.assign({chunkSize:16384,windowBits:0,to:""},e||{});var t=this.options;t.raw&&0<=t.windowBits&&t.windowBits<16&&(t.windowBits=-t.windowBits,0===t.windowBits&&(t.windowBits=-15)),!(0<=t.windowBits&&t.windowBits<16)||e&&e.windowBits||(t.windowBits+=32),15<t.windowBits&&t.windowBits<48&&0==(15&t.windowBits)&&(t.windowBits|=15),this.err=0,this.msg="",this.ended=!1,this.chunks=[],this.strm=new f,this.strm.avail_out=0;var i=n.inflateInit2(this.strm,t.windowBits);if(i!==o.Z_OK)throw new Error(s[i]);if(this.header=new l,n.inflateGetHeader(this.strm,this.header),t.dictionary&&("string"==typeof t.dictionary?t.dictionary=r.string2buf(t.dictionary):"[object ArrayBuffer]"===d.call(t.dictionary)&&(t.dictionary=new Uint8Array(t.dictionary)),t.raw&&(i=n.inflateSetDictionary(this.strm,t.dictionary))!==o.Z_OK))throw new Error(s[i])}function u(e,t){var i=new c(t);if(i.push(e,!0),i.err)throw i.msg||s[i.err];return i.result}c.prototype.push=function(e,t){var i,s,f,l,c,u=this.strm,h=this.options.chunkSize,b=this.options.dictionary,m=!1;if(this.ended)return!1;s=t===~~t?t:!0===t?o.Z_FINISH:o.Z_NO_FLUSH,"string"==typeof e?u.input=r.binstring2buf(e):"[object ArrayBuffer]"===d.call(e)?u.input=new Uint8Array(e):u.input=e,u.next_in=0,u.avail_in=u.input.length;do{if(0===u.avail_out&&(u.output=new a.Buf8(h),u.next_out=0,u.avail_out=h),(i=n.inflate(u,o.Z_NO_FLUSH))===o.Z_NEED_DICT&&b&&(i=n.inflateSetDictionary(this.strm,b)),i===o.Z_BUF_ERROR&&!0===m&&(i=o.Z_OK,m=!1),i!==o.Z_STREAM_END&&i!==o.Z_OK)return this.onEnd(i),!(this.ended=!0);u.next_out&&(0!==u.avail_out&&i!==o.Z_STREAM_END&&(0!==u.avail_in||s!==o.Z_FINISH&&s!==o.Z_SYNC_FLUSH)||("string"===this.options.to?(f=r.utf8border(u.output,u.next_out),l=u.next_out-f,c=r.buf2string(u.output,f),u.next_out=l,u.avail_out=h-l,l&&a.arraySet(u.output,u.output,f,l,0),this.onData(c)):this.onData(a.shrinkBuf(u.output,u.next_out)))),0===u.avail_in&&0===u.avail_out&&(m=!0)}while((0<u.avail_in||0===u.avail_out)&&i!==o.Z_STREAM_END);return i===o.Z_STREAM_END&&(s=o.Z_FINISH),s===o.Z_FINISH?(i=n.inflateEnd(this.strm),this.onEnd(i),this.ended=!0,i===o.Z_OK):s!==o.Z_SYNC_FLUSH||(this.onEnd(o.Z_OK),!(u.avail_out=0))},c.prototype.onData=function(e){this.chunks.push(e)},c.prototype.onEnd=function(e){e===o.Z_OK&&("string"===this.options.to?this.result=this.chunks.join(""):this.result=a.flattenChunks(this.chunks)),this.chunks=[],this.err=e,this.msg=this.strm.msg},i.Inflate=c,i.inflate=u,i.inflateRaw=function(e,t){return(t=t||{}).raw=!0,u(e,t)},i.ungzip=u},{"./utils/common":1,"./utils/strings":2,"./zlib/constants":4,"./zlib/gzheader":6,"./zlib/inflate":8,"./zlib/messages":10,"./zlib/zstream":11}]},{},[])("/lib/inflate.js")}));
1
+ /*! pako 2.0.4 https://github.com/nodeca/pako @license (MIT AND Zlib) */(function(O,B){typeof exports=="object"&&typeof module<"u"?B(exports):typeof define=="function"&&define.amd?define(["exports"],B):B((O=typeof globalThis<"u"?globalThis:O||self).pako={})})(this,function(O){"use strict";var B=(e,i,t,o)=>{let s=65535&e|0,r=e>>>16&65535|0,h=0;for(;t!==0;){h=t>2e3?2e3:t,t-=h;do s=s+i[o++]|0,r=r+s|0;while(--h);s%=65521,r%=65521}return s|r<<16|0};const pt=new Uint32Array((()=>{let e,i=[];for(var t=0;t<256;t++){e=t;for(var o=0;o<8;o++)e=1&e?3988292384^e>>>1:e>>>1;i[t]=e}return i})());var U=(e,i,t,o)=>{const s=pt,r=o+t;e^=-1;for(let h=o;h<r;h++)e=e>>>8^s[255&(e^i[h])];return-1^e},vt=function(e,i){let t,o,s,r,h,l,g,n,a,Z,w,d,S,p,u,y,k,f,_,E,c,x,m,b;const v=e.state;t=e.next_in,m=e.input,o=t+(e.avail_in-5),s=e.next_out,b=e.output,r=s-(i-e.avail_out),h=s+(e.avail_out-257),l=v.dmax,g=v.wsize,n=v.whave,a=v.wnext,Z=v.window,w=v.hold,d=v.bits,S=v.lencode,p=v.distcode,u=(1<<v.lenbits)-1,y=(1<<v.distbits)-1;t:do{d<15&&(w+=m[t++]<<d,d+=8,w+=m[t++]<<d,d+=8),k=S[w&u];e:for(;;){if(f=k>>>24,w>>>=f,d-=f,f=k>>>16&255,f===0)b[s++]=65535&k;else{if(!(16&f)){if(!(64&f)){k=S[(65535&k)+(w&(1<<f)-1)];continue e}if(32&f){v.mode=12;break t}e.msg="invalid literal/length code",v.mode=30;break t}_=65535&k,f&=15,f&&(d<f&&(w+=m[t++]<<d,d+=8),_+=w&(1<<f)-1,w>>>=f,d-=f),d<15&&(w+=m[t++]<<d,d+=8,w+=m[t++]<<d,d+=8),k=p[w&y];i:for(;;){if(f=k>>>24,w>>>=f,d-=f,f=k>>>16&255,!(16&f)){if(!(64&f)){k=p[(65535&k)+(w&(1<<f)-1)];continue i}e.msg="invalid distance code",v.mode=30;break t}if(E=65535&k,f&=15,d<f&&(w+=m[t++]<<d,d+=8,d<f&&(w+=m[t++]<<d,d+=8)),E+=w&(1<<f)-1,E>l){e.msg="invalid distance too far back",v.mode=30;break t}if(w>>>=f,d-=f,f=s-r,E>f){if(f=E-f,f>n&&v.sane){e.msg="invalid distance too far back",v.mode=30;break t}if(c=0,x=Z,a===0){if(c+=g-f,f<_){_-=f;do b[s++]=Z[c++];while(--f);c=s-E,x=b}}else if(a<f){if(c+=g+a-f,f-=a,f<_){_-=f;do b[s++]=Z[c++];while(--f);if(c=0,a<_){f=a,_-=f;do b[s++]=Z[c++];while(--f);c=s-E,x=b}}}else if(c+=a-f,f<_){_-=f;do b[s++]=Z[c++];while(--f);c=s-E,x=b}for(;_>2;)b[s++]=x[c++],b[s++]=x[c++],b[s++]=x[c++],_-=3;_&&(b[s++]=x[c++],_>1&&(b[s++]=x[c++]))}else{c=s-E;do b[s++]=b[c++],b[s++]=b[c++],b[s++]=b[c++],_-=3;while(_>2);_&&(b[s++]=b[c++],_>1&&(b[s++]=b[c++]))}break}}break}}while(t<o&&s<h);_=d>>3,t-=_,d-=_<<3,w&=(1<<d)-1,e.next_in=t,e.next_out=s,e.avail_in=t<o?o-t+5:5-(t-o),e.avail_out=s<h?h-s+257:257-(s-h),v.hold=w,v.bits=d};const H=15,xt=new Uint16Array([3,4,5,6,7,8,9,10,11,13,15,17,19,23,27,31,35,43,51,59,67,83,99,115,131,163,195,227,258,0,0]),yt=new Uint8Array([16,16,16,16,16,16,16,16,17,17,17,17,18,18,18,18,19,19,19,19,20,20,20,20,21,21,21,21,16,72,78]),Et=new Uint16Array([1,2,3,4,5,7,9,13,17,25,33,49,65,97,129,193,257,385,513,769,1025,1537,2049,3073,4097,6145,8193,12289,16385,24577,0,0]),Rt=new Uint8Array([16,16,16,16,17,17,18,18,19,19,20,20,21,21,22,22,23,23,24,24,25,25,26,26,27,27,28,28,29,29,64,64]);var z=(e,i,t,o,s,r,h,l)=>{const g=l.bits;let n,a,Z,w,d,S,p=0,u=0,y=0,k=0,f=0,_=0,E=0,c=0,x=0,m=0,b=null,v=0;const A=new Uint16Array(16),N=new Uint16Array(16);let _t,K,P,Y=null,gt=0;for(p=0;p<=H;p++)A[p]=0;for(u=0;u<o;u++)A[i[t+u]]++;for(f=g,k=H;k>=1&&A[k]===0;k--);if(f>k&&(f=k),k===0)return s[r++]=20971520,s[r++]=20971520,l.bits=1,0;for(y=1;y<k&&A[y]===0;y++);for(f<y&&(f=y),c=1,p=1;p<=H;p++)if(c<<=1,c-=A[p],c<0)return-1;if(c>0&&(e===0||k!==1))return-1;for(N[1]=0,p=1;p<H;p++)N[p+1]=N[p]+A[p];for(u=0;u<o;u++)i[t+u]!==0&&(h[N[i[t+u]]++]=u);if(e===0?(b=Y=h,S=19):e===1?(b=xt,v-=257,Y=yt,gt-=257,S=256):(b=Et,Y=Rt,S=-1),m=0,u=0,p=y,d=r,_=f,E=0,Z=-1,x=1<<f,w=x-1,e===1&&x>852||e===2&&x>592)return 1;for(;;){_t=p-E,h[u]<S?(K=0,P=h[u]):h[u]>S?(K=Y[gt+h[u]],P=b[v+h[u]]):(K=96,P=0),n=1<<p-E,a=1<<_,y=a;do a-=n,s[d+(m>>E)+a]=_t<<24|K<<16|P|0;while(a!==0);for(n=1<<p-1;m&n;)n>>=1;if(n!==0?(m&=n-1,m+=n):m=0,u++,--A[p]==0){if(p===k)break;p=i[t+h[u]]}if(p>f&&(m&w)!==Z){for(E===0&&(E=f),d+=y,_=p-E,c=1<<_;_+E<k&&(c-=A[_+E],!(c<=0));)_++,c<<=1;if(x+=1<<_,e===1&&x>852||e===2&&x>592)return 1;Z=m&w,s[Z]=f<<24|_<<16|d-r|0}}return m!==0&&(s[d+m]=p-E<<24|64<<16|0),l.bits=f,0},G={Z_NO_FLUSH:0,Z_PARTIAL_FLUSH:1,Z_SYNC_FLUSH:2,Z_FULL_FLUSH:3,Z_FINISH:4,Z_BLOCK:5,Z_TREES:6,Z_OK:0,Z_STREAM_END:1,Z_NEED_DICT:2,Z_ERRNO:-1,Z_STREAM_ERROR:-2,Z_DATA_ERROR:-3,Z_MEM_ERROR:-4,Z_BUF_ERROR:-5,Z_NO_COMPRESSION:0,Z_BEST_SPEED:1,Z_BEST_COMPRESSION: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};const{Z_FINISH:$,Z_BLOCK:At,Z_TREES:j,Z_OK:C,Z_STREAM_END:Zt,Z_NEED_DICT:St,Z_STREAM_ERROR:T,Z_DATA_ERROR:tt,Z_MEM_ERROR:et,Z_BUF_ERROR:Tt,Z_DEFLATED:it}=G,D=12,R=30,nt=e=>(e>>>24&255)+(e>>>8&65280)+((65280&e)<<8)+((255&e)<<24);function Ot(){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 Uint16Array(320),this.work=new Uint16Array(288),this.lendyn=null,this.distdyn=null,this.sane=0,this.back=0,this.was=0}const at=e=>{if(!e||!e.state)return T;const i=e.state;return e.total_in=e.total_out=i.total=0,e.msg="",i.wrap&&(e.adler=1&i.wrap),i.mode=1,i.last=0,i.havedict=0,i.dmax=32768,i.head=null,i.hold=0,i.bits=0,i.lencode=i.lendyn=new Int32Array(852),i.distcode=i.distdyn=new Int32Array(592),i.sane=1,i.back=-1,C},rt=e=>{if(!e||!e.state)return T;const i=e.state;return i.wsize=0,i.whave=0,i.wnext=0,at(e)},ot=(e,i)=>{let t;if(!e||!e.state)return T;const o=e.state;return i<0?(t=0,i=-i):(t=1+(i>>4),i<48&&(i&=15)),i&&(i<8||i>15)?T:(o.window!==null&&o.wbits!==i&&(o.window=null),o.wrap=t,o.wbits=i,rt(e))},st=(e,i)=>{if(!e)return T;const t=new Ot;e.state=t,t.window=null;const o=ot(e,i);return o!==C&&(e.state=null),o};let X,W,lt=!0;const Ut=e=>{if(lt){X=new Int32Array(512),W=new Int32Array(32);let i=0;for(;i<144;)e.lens[i++]=8;for(;i<256;)e.lens[i++]=9;for(;i<280;)e.lens[i++]=7;for(;i<288;)e.lens[i++]=8;for(z(1,e.lens,0,288,X,0,e.work,{bits:9}),i=0;i<32;)e.lens[i++]=5;z(2,e.lens,0,32,W,0,e.work,{bits:5}),lt=!1}e.lencode=X,e.lenbits=9,e.distcode=W,e.distbits=5},dt=(e,i,t,o)=>{let s;const r=e.state;return r.window===null&&(r.wsize=1<<r.wbits,r.wnext=0,r.whave=0,r.window=new Uint8Array(r.wsize)),o>=r.wsize?(r.window.set(i.subarray(t-r.wsize,t),0),r.wnext=0,r.whave=r.wsize):(s=r.wsize-r.wnext,s>o&&(s=o),r.window.set(i.subarray(t-o,t-o+s),r.wnext),(o-=s)?(r.window.set(i.subarray(t-o,t),0),r.wnext=o,r.whave=r.wsize):(r.wnext+=s,r.wnext===r.wsize&&(r.wnext=0),r.whave<r.wsize&&(r.whave+=s))),0};var I={inflateReset:rt,inflateReset2:ot,inflateResetKeep:at,inflateInit:e=>st(e,15),inflateInit2:st,inflate:(e,i)=>{let t,o,s,r,h,l,g,n,a,Z,w,d,S,p,u,y,k,f,_,E,c,x,m=0;const b=new Uint8Array(4);let v,A;const N=new Uint8Array([16,17,18,0,8,7,9,6,10,5,11,4,12,3,13,2,14,1,15]);if(!e||!e.state||!e.output||!e.input&&e.avail_in!==0)return T;t=e.state,t.mode===D&&(t.mode=13),h=e.next_out,s=e.output,g=e.avail_out,r=e.next_in,o=e.input,l=e.avail_in,n=t.hold,a=t.bits,Z=l,w=g,x=C;t:for(;;)switch(t.mode){case 1:if(t.wrap===0){t.mode=13;break}for(;a<16;){if(l===0)break t;l--,n+=o[r++]<<a,a+=8}if(2&t.wrap&&n===35615){t.check=0,b[0]=255&n,b[1]=n>>>8&255,t.check=U(t.check,b,2,0),n=0,a=0,t.mode=2;break}if(t.flags=0,t.head&&(t.head.done=!1),!(1&t.wrap)||(((255&n)<<8)+(n>>8))%31){e.msg="incorrect header check",t.mode=R;break}if((15&n)!==it){e.msg="unknown compression method",t.mode=R;break}if(n>>>=4,a-=4,c=8+(15&n),t.wbits===0)t.wbits=c;else if(c>t.wbits){e.msg="invalid window size",t.mode=R;break}t.dmax=1<<t.wbits,e.adler=t.check=1,t.mode=512&n?10:D,n=0,a=0;break;case 2:for(;a<16;){if(l===0)break t;l--,n+=o[r++]<<a,a+=8}if(t.flags=n,(255&t.flags)!==it){e.msg="unknown compression method",t.mode=R;break}if(57344&t.flags){e.msg="unknown header flags set",t.mode=R;break}t.head&&(t.head.text=n>>8&1),512&t.flags&&(b[0]=255&n,b[1]=n>>>8&255,t.check=U(t.check,b,2,0)),n=0,a=0,t.mode=3;case 3:for(;a<32;){if(l===0)break t;l--,n+=o[r++]<<a,a+=8}t.head&&(t.head.time=n),512&t.flags&&(b[0]=255&n,b[1]=n>>>8&255,b[2]=n>>>16&255,b[3]=n>>>24&255,t.check=U(t.check,b,4,0)),n=0,a=0,t.mode=4;case 4:for(;a<16;){if(l===0)break t;l--,n+=o[r++]<<a,a+=8}t.head&&(t.head.xflags=255&n,t.head.os=n>>8),512&t.flags&&(b[0]=255&n,b[1]=n>>>8&255,t.check=U(t.check,b,2,0)),n=0,a=0,t.mode=5;case 5:if(1024&t.flags){for(;a<16;){if(l===0)break t;l--,n+=o[r++]<<a,a+=8}t.length=n,t.head&&(t.head.extra_len=n),512&t.flags&&(b[0]=255&n,b[1]=n>>>8&255,t.check=U(t.check,b,2,0)),n=0,a=0}else t.head&&(t.head.extra=null);t.mode=6;case 6:if(1024&t.flags&&(d=t.length,d>l&&(d=l),d&&(t.head&&(c=t.head.extra_len-t.length,t.head.extra||(t.head.extra=new Uint8Array(t.head.extra_len)),t.head.extra.set(o.subarray(r,r+d),c)),512&t.flags&&(t.check=U(t.check,o,d,r)),l-=d,r+=d,t.length-=d),t.length))break t;t.length=0,t.mode=7;case 7:if(2048&t.flags){if(l===0)break t;d=0;do c=o[r+d++],t.head&&c&&t.length<65536&&(t.head.name+=String.fromCharCode(c));while(c&&d<l);if(512&t.flags&&(t.check=U(t.check,o,d,r)),l-=d,r+=d,c)break t}else t.head&&(t.head.name=null);t.length=0,t.mode=8;case 8:if(4096&t.flags){if(l===0)break t;d=0;do c=o[r+d++],t.head&&c&&t.length<65536&&(t.head.comment+=String.fromCharCode(c));while(c&&d<l);if(512&t.flags&&(t.check=U(t.check,o,d,r)),l-=d,r+=d,c)break t}else t.head&&(t.head.comment=null);t.mode=9;case 9:if(512&t.flags){for(;a<16;){if(l===0)break t;l--,n+=o[r++]<<a,a+=8}if(n!==(65535&t.check)){e.msg="header crc mismatch",t.mode=R;break}n=0,a=0}t.head&&(t.head.hcrc=t.flags>>9&1,t.head.done=!0),e.adler=t.check=0,t.mode=D;break;case 10:for(;a<32;){if(l===0)break t;l--,n+=o[r++]<<a,a+=8}e.adler=t.check=nt(n),n=0,a=0,t.mode=11;case 11:if(t.havedict===0)return e.next_out=h,e.avail_out=g,e.next_in=r,e.avail_in=l,t.hold=n,t.bits=a,St;e.adler=t.check=1,t.mode=D;case D:if(i===At||i===j)break t;case 13:if(t.last){n>>>=7&a,a-=7&a,t.mode=27;break}for(;a<3;){if(l===0)break t;l--,n+=o[r++]<<a,a+=8}switch(t.last=1&n,n>>>=1,a-=1,3&n){case 0:t.mode=14;break;case 1:if(Ut(t),t.mode=20,i===j){n>>>=2,a-=2;break t}break;case 2:t.mode=17;break;case 3:e.msg="invalid block type",t.mode=R}n>>>=2,a-=2;break;case 14:for(n>>>=7&a,a-=7&a;a<32;){if(l===0)break t;l--,n+=o[r++]<<a,a+=8}if((65535&n)!=(n>>>16^65535)){e.msg="invalid stored block lengths",t.mode=R;break}if(t.length=65535&n,n=0,a=0,t.mode=15,i===j)break t;case 15:t.mode=16;case 16:if(d=t.length,d){if(d>l&&(d=l),d>g&&(d=g),d===0)break t;s.set(o.subarray(r,r+d),h),l-=d,r+=d,g-=d,h+=d,t.length-=d;break}t.mode=D;break;case 17:for(;a<14;){if(l===0)break t;l--,n+=o[r++]<<a,a+=8}if(t.nlen=257+(31&n),n>>>=5,a-=5,t.ndist=1+(31&n),n>>>=5,a-=5,t.ncode=4+(15&n),n>>>=4,a-=4,t.nlen>286||t.ndist>30){e.msg="too many length or distance symbols",t.mode=R;break}t.have=0,t.mode=18;case 18:for(;t.have<t.ncode;){for(;a<3;){if(l===0)break t;l--,n+=o[r++]<<a,a+=8}t.lens[N[t.have++]]=7&n,n>>>=3,a-=3}for(;t.have<19;)t.lens[N[t.have++]]=0;if(t.lencode=t.lendyn,t.lenbits=7,v={bits:t.lenbits},x=z(0,t.lens,0,19,t.lencode,0,t.work,v),t.lenbits=v.bits,x){e.msg="invalid code lengths set",t.mode=R;break}t.have=0,t.mode=19;case 19:for(;t.have<t.nlen+t.ndist;){for(;m=t.lencode[n&(1<<t.lenbits)-1],u=m>>>24,y=m>>>16&255,k=65535&m,!(u<=a);){if(l===0)break t;l--,n+=o[r++]<<a,a+=8}if(k<16)n>>>=u,a-=u,t.lens[t.have++]=k;else{if(k===16){for(A=u+2;a<A;){if(l===0)break t;l--,n+=o[r++]<<a,a+=8}if(n>>>=u,a-=u,t.have===0){e.msg="invalid bit length repeat",t.mode=R;break}c=t.lens[t.have-1],d=3+(3&n),n>>>=2,a-=2}else if(k===17){for(A=u+3;a<A;){if(l===0)break t;l--,n+=o[r++]<<a,a+=8}n>>>=u,a-=u,c=0,d=3+(7&n),n>>>=3,a-=3}else{for(A=u+7;a<A;){if(l===0)break t;l--,n+=o[r++]<<a,a+=8}n>>>=u,a-=u,c=0,d=11+(127&n),n>>>=7,a-=7}if(t.have+d>t.nlen+t.ndist){e.msg="invalid bit length repeat",t.mode=R;break}for(;d--;)t.lens[t.have++]=c}}if(t.mode===R)break;if(t.lens[256]===0){e.msg="invalid code -- missing end-of-block",t.mode=R;break}if(t.lenbits=9,v={bits:t.lenbits},x=z(1,t.lens,0,t.nlen,t.lencode,0,t.work,v),t.lenbits=v.bits,x){e.msg="invalid literal/lengths set",t.mode=R;break}if(t.distbits=6,t.distcode=t.distdyn,v={bits:t.distbits},x=z(2,t.lens,t.nlen,t.ndist,t.distcode,0,t.work,v),t.distbits=v.bits,x){e.msg="invalid distances set",t.mode=R;break}if(t.mode=20,i===j)break t;case 20:t.mode=21;case 21:if(l>=6&&g>=258){e.next_out=h,e.avail_out=g,e.next_in=r,e.avail_in=l,t.hold=n,t.bits=a,vt(e,w),h=e.next_out,s=e.output,g=e.avail_out,r=e.next_in,o=e.input,l=e.avail_in,n=t.hold,a=t.bits,t.mode===D&&(t.back=-1);break}for(t.back=0;m=t.lencode[n&(1<<t.lenbits)-1],u=m>>>24,y=m>>>16&255,k=65535&m,!(u<=a);){if(l===0)break t;l--,n+=o[r++]<<a,a+=8}if(y&&!(240&y)){for(f=u,_=y,E=k;m=t.lencode[E+((n&(1<<f+_)-1)>>f)],u=m>>>24,y=m>>>16&255,k=65535&m,!(f+u<=a);){if(l===0)break t;l--,n+=o[r++]<<a,a+=8}n>>>=f,a-=f,t.back+=f}if(n>>>=u,a-=u,t.back+=u,t.length=k,y===0){t.mode=26;break}if(32&y){t.back=-1,t.mode=D;break}if(64&y){e.msg="invalid literal/length code",t.mode=R;break}t.extra=15&y,t.mode=22;case 22:if(t.extra){for(A=t.extra;a<A;){if(l===0)break t;l--,n+=o[r++]<<a,a+=8}t.length+=n&(1<<t.extra)-1,n>>>=t.extra,a-=t.extra,t.back+=t.extra}t.was=t.length,t.mode=23;case 23:for(;m=t.distcode[n&(1<<t.distbits)-1],u=m>>>24,y=m>>>16&255,k=65535&m,!(u<=a);){if(l===0)break t;l--,n+=o[r++]<<a,a+=8}if(!(240&y)){for(f=u,_=y,E=k;m=t.distcode[E+((n&(1<<f+_)-1)>>f)],u=m>>>24,y=m>>>16&255,k=65535&m,!(f+u<=a);){if(l===0)break t;l--,n+=o[r++]<<a,a+=8}n>>>=f,a-=f,t.back+=f}if(n>>>=u,a-=u,t.back+=u,64&y){e.msg="invalid distance code",t.mode=R;break}t.offset=k,t.extra=15&y,t.mode=24;case 24:if(t.extra){for(A=t.extra;a<A;){if(l===0)break t;l--,n+=o[r++]<<a,a+=8}t.offset+=n&(1<<t.extra)-1,n>>>=t.extra,a-=t.extra,t.back+=t.extra}if(t.offset>t.dmax){e.msg="invalid distance too far back",t.mode=R;break}t.mode=25;case 25:if(g===0)break t;if(d=w-g,t.offset>d){if(d=t.offset-d,d>t.whave&&t.sane){e.msg="invalid distance too far back",t.mode=R;break}d>t.wnext?(d-=t.wnext,S=t.wsize-d):S=t.wnext-d,d>t.length&&(d=t.length),p=t.window}else p=s,S=h-t.offset,d=t.length;d>g&&(d=g),g-=d,t.length-=d;do s[h++]=p[S++];while(--d);t.length===0&&(t.mode=21);break;case 26:if(g===0)break t;s[h++]=t.length,g--,t.mode=21;break;case 27:if(t.wrap){for(;a<32;){if(l===0)break t;l--,n|=o[r++]<<a,a+=8}if(w-=g,e.total_out+=w,t.total+=w,w&&(e.adler=t.check=t.flags?U(t.check,s,w,h-w):B(t.check,s,w,h-w)),w=g,(t.flags?n:nt(n))!==t.check){e.msg="incorrect data check",t.mode=R;break}n=0,a=0}t.mode=28;case 28:if(t.wrap&&t.flags){for(;a<32;){if(l===0)break t;l--,n+=o[r++]<<a,a+=8}if(n!==(4294967295&t.total)){e.msg="incorrect length check",t.mode=R;break}n=0,a=0}t.mode=29;case 29:x=Zt;break t;case R:x=tt;break t;case 31:return et;case 32:default:return T}return e.next_out=h,e.avail_out=g,e.next_in=r,e.avail_in=l,t.hold=n,t.bits=a,(t.wsize||w!==e.avail_out&&t.mode<R&&(t.mode<27||i!==$))&&dt(e,e.output,e.next_out,w-e.avail_out),Z-=e.avail_in,w-=e.avail_out,e.total_in+=Z,e.total_out+=w,t.total+=w,t.wrap&&w&&(e.adler=t.check=t.flags?U(t.check,s,w,e.next_out-w):B(t.check,s,w,e.next_out-w)),e.data_type=t.bits+(t.last?64:0)+(t.mode===D?128:0)+(t.mode===20||t.mode===15?256:0),(Z===0&&w===0||i===$)&&x===C&&(x=Tt),x},inflateEnd:e=>{if(!e||!e.state)return T;let i=e.state;return i.window&&(i.window=null),e.state=null,C},inflateGetHeader:(e,i)=>{if(!e||!e.state)return T;const t=e.state;return 2&t.wrap?(t.head=i,i.done=!1,C):T},inflateSetDictionary:(e,i)=>{const t=i.length;let o,s,r;return e&&e.state?(o=e.state,o.wrap!==0&&o.mode!==11?T:o.mode===11&&(s=1,s=B(s,i,t,0),s!==o.check)?tt:(r=dt(e,i,t,t),r?(o.mode=31,et):(o.havedict=1,C))):T},inflateInfo:"pako inflate (from Nodeca project)"};const Dt=(e,i)=>Object.prototype.hasOwnProperty.call(e,i);var It=function(e){const i=Array.prototype.slice.call(arguments,1);for(;i.length;){const t=i.shift();if(t){if(typeof t!="object")throw new TypeError(t+"must be non-object");for(const o in t)Dt(t,o)&&(e[o]=t[o])}}return e},Bt=e=>{let i=0;for(let o=0,s=e.length;o<s;o++)i+=e[o].length;const t=new Uint8Array(i);for(let o=0,s=0,r=e.length;o<r;o++){let h=e[o];t.set(h,s),s+=h.length}return t};let ft=!0;try{String.fromCharCode.apply(null,new Uint8Array(1))}catch{ft=!1}const F=new Uint8Array(256);for(let e=0;e<256;e++)F[e]=e>=252?6:e>=248?5:e>=240?4:e>=224?3:e>=192?2:1;F[254]=F[254]=1;var Ct=e=>{if(typeof TextEncoder=="function"&&TextEncoder.prototype.encode)return new TextEncoder().encode(e);let i,t,o,s,r,h=e.length,l=0;for(s=0;s<h;s++)t=e.charCodeAt(s),(64512&t)==55296&&s+1<h&&(o=e.charCodeAt(s+1),(64512&o)==56320&&(t=65536+(t-55296<<10)+(o-56320),s++)),l+=t<128?1:t<2048?2:t<65536?3:4;for(i=new Uint8Array(l),r=0,s=0;r<l;s++)t=e.charCodeAt(s),(64512&t)==55296&&s+1<h&&(o=e.charCodeAt(s+1),(64512&o)==56320&&(t=65536+(t-55296<<10)+(o-56320),s++)),t<128?i[r++]=t:t<2048?(i[r++]=192|t>>>6,i[r++]=128|63&t):t<65536?(i[r++]=224|t>>>12,i[r++]=128|t>>>6&63,i[r++]=128|63&t):(i[r++]=240|t>>>18,i[r++]=128|t>>>12&63,i[r++]=128|t>>>6&63,i[r++]=128|63&t);return i},Nt=(e,i)=>{const t=i||e.length;if(typeof TextDecoder=="function"&&TextDecoder.prototype.decode)return new TextDecoder().decode(e.subarray(0,i));let o,s;const r=new Array(2*t);for(s=0,o=0;o<t;){let h=e[o++];if(h<128){r[s++]=h;continue}let l=F[h];if(l>4)r[s++]=65533,o+=l-1;else{for(h&=l===2?31:l===3?15:7;l>1&&o<t;)h=h<<6|63&e[o++],l--;l>1?r[s++]=65533:h<65536?r[s++]=h:(h-=65536,r[s++]=55296|h>>10&1023,r[s++]=56320|1023&h)}}return((h,l)=>{if(l<65534&&h.subarray&&ft)return String.fromCharCode.apply(null,h.length===l?h:h.subarray(0,l));let g="";for(let n=0;n<l;n++)g+=String.fromCharCode(h[n]);return g})(r,s)},zt=(e,i)=>{(i=i||e.length)>e.length&&(i=e.length);let t=i-1;for(;t>=0&&(192&e[t])==128;)t--;return t<0||t===0?i:t+F[e[t]]>i?t:i},q={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"},Ft=function(){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},Lt=function(){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};const ht=Object.prototype.toString,{Z_NO_FLUSH:Mt,Z_FINISH:Ht,Z_OK:L,Z_STREAM_END:J,Z_NEED_DICT:Q,Z_STREAM_ERROR:jt,Z_DATA_ERROR:ct,Z_MEM_ERROR:Kt}=G;function M(e){this.options=It({chunkSize:65536,windowBits:15,to:""},e||{});const i=this.options;i.raw&&i.windowBits>=0&&i.windowBits<16&&(i.windowBits=-i.windowBits,i.windowBits===0&&(i.windowBits=-15)),!(i.windowBits>=0&&i.windowBits<16)||e&&e.windowBits||(i.windowBits+=32),i.windowBits>15&&i.windowBits<48&&!(15&i.windowBits)&&(i.windowBits|=15),this.err=0,this.msg="",this.ended=!1,this.chunks=[],this.strm=new Ft,this.strm.avail_out=0;let t=I.inflateInit2(this.strm,i.windowBits);if(t!==L)throw new Error(q[t]);if(this.header=new Lt,I.inflateGetHeader(this.strm,this.header),i.dictionary&&(typeof i.dictionary=="string"?i.dictionary=Ct(i.dictionary):ht.call(i.dictionary)==="[object ArrayBuffer]"&&(i.dictionary=new Uint8Array(i.dictionary)),i.raw&&(t=I.inflateSetDictionary(this.strm,i.dictionary),t!==L)))throw new Error(q[t])}function V(e,i){const t=new M(i);if(t.push(e),t.err)throw t.msg||q[t.err];return t.result}M.prototype.push=function(e,i){const t=this.strm,o=this.options.chunkSize,s=this.options.dictionary;let r,h,l;if(this.ended)return!1;for(h=i===~~i?i:i===!0?Ht:Mt,ht.call(e)==="[object ArrayBuffer]"?t.input=new Uint8Array(e):t.input=e,t.next_in=0,t.avail_in=t.input.length;;){for(t.avail_out===0&&(t.output=new Uint8Array(o),t.next_out=0,t.avail_out=o),r=I.inflate(t,h),r===Q&&s&&(r=I.inflateSetDictionary(t,s),r===L?r=I.inflate(t,h):r===ct&&(r=Q));t.avail_in>0&&r===J&&t.state.wrap>0&&e[t.next_in]!==0;)I.inflateReset(t),r=I.inflate(t,h);switch(r){case jt:case ct:case Q:case Kt:return this.onEnd(r),this.ended=!0,!1}if(l=t.avail_out,t.next_out&&(t.avail_out===0||r===J))if(this.options.to==="string"){let g=zt(t.output,t.next_out),n=t.next_out-g,a=Nt(t.output,g);t.next_out=n,t.avail_out=o-n,n&&t.output.set(t.output.subarray(g,g+n),0),this.onData(a)}else this.onData(t.output.length===t.next_out?t.output:t.output.subarray(0,t.next_out));if(r!==L||l!==0){if(r===J)return r=I.inflateEnd(this.strm),this.onEnd(r),this.ended=!0,!0;if(t.avail_in===0)break}}return!0},M.prototype.onData=function(e){this.chunks.push(e)},M.prototype.onEnd=function(e){e===L&&(this.options.to==="string"?this.result=this.chunks.join(""):this.result=Bt(this.chunks)),this.chunks=[],this.err=e,this.msg=this.strm.msg};var ut=M,wt=V,bt=function(e,i){return(i=i||{}).raw=!0,V(e,i)},mt=V,kt=G,Pt={Inflate:ut,inflate:wt,inflateRaw:bt,ungzip:mt,constants:kt};O.Inflate=ut,O.constants=kt,O.default=Pt,O.inflate=wt,O.inflateRaw=bt,O.ungzip=mt,Object.defineProperty(O,"__esModule",{value:!0})});
@@ -1 +1 @@
1
- !function(){"use strict";const t=[];for(let e=0;e<256;e++){let n=e;for(let t=0;t<8;t++)1&n?n=n>>>1^3988292384:n>>>=1;t[e]=n}class e{constructor(t){this.crc=t||-1}append(e){let n=0|this.crc;for(let s=0,r=0|e.length;s<r;s++)n=n>>>8^t[255&(n^e[s])];this.crc=n}get(){return~this.crc}}const n={concat(t,e){if(0===t.length||0===e.length)return t.concat(e);const s=t[t.length-1],r=n.getPartial(s);return 32===r?t.concat(e):n._shiftRight(e,r,0|s,t.slice(0,t.length-1))},bitLength(t){const e=t.length;if(0===e)return 0;const s=t[e-1];return 32*(e-1)+n.getPartial(s)},clamp(t,e){if(32*t.length<e)return t;const s=(t=t.slice(0,Math.ceil(e/32))).length;return e&=31,s>0&&e&&(t[s-1]=n.partial(e,t[s-1]&2147483648>>e-1,1)),t},partial:(t,e,n)=>32===t?e:(n?0|e:e<<32-t)+1099511627776*t,getPartial:t=>Math.round(t/1099511627776)||32,_shiftRight(t,e,s,r){for(void 0===r&&(r=[]);e>=32;e-=32)r.push(s),s=0;if(0===e)return r.concat(t);for(let n=0;n<t.length;n++)r.push(s|t[n]>>>e),s=t[n]<<32-e;const a=t.length?t[t.length-1]:0,i=n.getPartial(a);return r.push(n.partial(e+i&31,e+i>32?s:r.pop(),1)),r}},s={bytes:{fromBits(t){const e=n.bitLength(t)/8,s=new Uint8Array(e);let r;for(let n=0;n<e;n++)0==(3&n)&&(r=t[n/4]),s[n]=r>>>24,r<<=8;return s},toBits(t){const e=[];let s,r=0;for(s=0;s<t.length;s++)r=r<<8|t[s],3==(3&s)&&(e.push(r),r=0);return 3&s&&e.push(n.partial(8*(3&s),r)),e}}},r={sha1:function(t){t?(this._h=t._h.slice(0),this._buffer=t._buffer.slice(0),this._length=t._length):this.reset()}};r.sha1.prototype={blockSize:512,reset:function(){const t=this;return t._h=this._init.slice(0),t._buffer=[],t._length=0,t},update:function(t){const e=this;"string"==typeof t&&(t=s.utf8String.toBits(t));const r=e._buffer=n.concat(e._buffer,t),a=e._length,i=e._length=a+n.bitLength(t);if(i>9007199254740991)throw new Error("Cannot hash more than 2^53 - 1 bits");const c=new Uint32Array(r);let o=0;for(let t=e.blockSize+a-(e.blockSize+a&e.blockSize-1);t<=i;t+=e.blockSize)e._block(c.subarray(16*o,16*(o+1))),o+=1;return r.splice(0,16*o),e},finalize:function(){const t=this;let e=t._buffer;const s=t._h;e=n.concat(e,[n.partial(1,1)]);for(let t=e.length+2;15&t;t++)e.push(0);for(e.push(Math.floor(t._length/4294967296)),e.push(0|t._length);e.length;)t._block(e.splice(0,16));return t.reset(),s},_init:[1732584193,4023233417,2562383102,271733878,3285377520],_key:[1518500249,1859775393,2400959708,3395469782],_f:function(t,e,n,s){return t<=19?e&n|~e&s:t<=39?e^n^s:t<=59?e&n|e&s|n&s:t<=79?e^n^s:void 0},_S:function(t,e){return e<<t|e>>>32-t},_block:function(t){const e=this,n=e._h,s=Array(80);for(let e=0;e<16;e++)s[e]=t[e];let r=n[0],a=n[1],i=n[2],c=n[3],o=n[4];for(let t=0;t<=79;t++){t>=16&&(s[t]=e._S(1,s[t-3]^s[t-8]^s[t-14]^s[t-16]));const n=e._S(5,r)+e._f(t,a,i,c)+o+s[t]+e._key[Math.floor(t/20)]|0;o=c,c=i,i=e._S(30,a),a=r,r=n}n[0]=n[0]+r|0,n[1]=n[1]+a|0,n[2]=n[2]+i|0,n[3]=n[3]+c|0,n[4]=n[4]+o|0}};const a=class{constructor(t){const e=this;e._tables=[[[],[],[],[],[]],[[],[],[],[],[]]],e._tables[0][0][0]||e._precompute();const n=e._tables[0][4],s=e._tables[1],r=t.length;let a,i,c,o=1;if(4!==r&&6!==r&&8!==r)throw new Error("invalid aes key size");for(e._key=[i=t.slice(0),c=[]],a=r;a<4*r+28;a++){let t=i[a-1];(a%r==0||8===r&&a%r==4)&&(t=n[t>>>24]<<24^n[t>>16&255]<<16^n[t>>8&255]<<8^n[255&t],a%r==0&&(t=t<<8^t>>>24^o<<24,o=o<<1^283*(o>>7))),i[a]=i[a-r]^t}for(let t=0;a;t++,a--){const e=i[3&t?a:a-4];c[t]=a<=4||t<4?e:s[0][n[e>>>24]]^s[1][n[e>>16&255]]^s[2][n[e>>8&255]]^s[3][n[255&e]]}}encrypt(t){return this._crypt(t,0)}decrypt(t){return this._crypt(t,1)}_precompute(){const t=this._tables[0],e=this._tables[1],n=t[4],s=e[4],r=[],a=[];let i,c,o,l;for(let t=0;t<256;t++)a[(r[t]=t<<1^283*(t>>7))^t]=t;for(let h=i=0;!n[h];h^=c||1,i=a[i]||1){let a=i^i<<1^i<<2^i<<3^i<<4;a=a>>8^255&a^99,n[h]=a,s[a]=h,l=r[o=r[c=r[h]]];let p=16843009*l^65537*o^257*c^16843008*h,u=257*r[a]^16843008*a;for(let n=0;n<4;n++)t[n][h]=u=u<<24^u>>>8,e[n][a]=p=p<<24^p>>>8}for(let n=0;n<5;n++)t[n]=t[n].slice(0),e[n]=e[n].slice(0)}_crypt(t,e){if(4!==t.length)throw new Error("invalid aes block size");const n=this._key[e],s=n.length/4-2,r=[0,0,0,0],a=this._tables[e],i=a[0],c=a[1],o=a[2],l=a[3],h=a[4];let p,u,d,f=t[0]^n[0],g=t[e?3:1]^n[1],y=t[2]^n[2],w=t[e?1:3]^n[3],_=4;for(let t=0;t<s;t++)p=i[f>>>24]^c[g>>16&255]^o[y>>8&255]^l[255&w]^n[_],u=i[g>>>24]^c[y>>16&255]^o[w>>8&255]^l[255&f]^n[_+1],d=i[y>>>24]^c[w>>16&255]^o[f>>8&255]^l[255&g]^n[_+2],w=i[w>>>24]^c[f>>16&255]^o[g>>8&255]^l[255&y]^n[_+3],_+=4,f=p,g=u,y=d;for(let t=0;t<4;t++)r[e?3&-t:t]=h[f>>>24]<<24^h[g>>16&255]<<16^h[y>>8&255]<<8^h[255&w]^n[_++],p=f,f=g,g=y,y=w,w=p;return r}},i=class{constructor(t,e){this._prf=t,this._initIv=e,this._iv=e}reset(){this._iv=this._initIv}update(t){return this.calculate(this._prf,t,this._iv)}incWord(t){if(255==(t>>24&255)){let e=t>>16&255,n=t>>8&255,s=255&t;255===e?(e=0,255===n?(n=0,255===s?s=0:++s):++n):++e,t=0,t+=e<<16,t+=n<<8,t+=s}else t+=1<<24;return t}incCounter(t){0===(t[0]=this.incWord(t[0]))&&(t[1]=this.incWord(t[1]))}calculate(t,e,s){let r;if(!(r=e.length))return[];const a=n.bitLength(e);for(let n=0;n<r;n+=4){this.incCounter(s);const r=t.encrypt(s);e[n]^=r[0],e[n+1]^=r[1],e[n+2]^=r[2],e[n+3]^=r[3]}return n.clamp(e,a)}},c=class{constructor(t){const e=this,n=e._hash=r.sha1,s=[[],[]],a=n.prototype.blockSize/32;e._baseHash=[new n,new n],t.length>a&&(t=n.hash(t));for(let e=0;e<a;e++)s[0][e]=909522486^t[e],s[1][e]=1549556828^t[e];e._baseHash[0].update(s[0]),e._baseHash[1].update(s[1]),e._resultHash=new n(e._baseHash[0])}reset(){const t=this;t._resultHash=new t._hash(t._baseHash[0]),t._updated=!1}update(t){this._updated=!0,this._resultHash.update(t)}digest(){const t=this,e=t._resultHash.finalize(),n=new t._hash(t._baseHash[1]).update(e).finalize();return t.reset(),n}},o="Invalid pasword",l=16,h={name:"PBKDF2"},p=Object.assign({hash:{name:"HMAC"}},h),u=Object.assign({iterations:1e3,hash:{name:"SHA-1"}},h),d=["deriveBits"],f=[8,12,16],g=[16,24,32],y=10,w=[0,0,0,0],_=s.bytes,b=a,m=i,k=c;class A{constructor(t,e,n){Object.assign(this,{password:t,signed:e,strength:n-1,pendingInput:new Uint8Array(0)})}async append(t){const e=this;if(e.password){const n=S(t,0,f[e.strength]+2);await async function(t,e,n){await v(t,n,S(e,0,f[t.strength]));const s=S(e,f[t.strength]),r=t.keys.passwordVerification;if(r[0]!=s[0]||r[1]!=s[1])throw new Error(o)}(e,n,e.password),e.password=null,e.aesCtrGladman=new m(new b(e.keys.key),Array.from(w)),e.hmac=new k(e.keys.authentication),t=S(t,f[e.strength]+2)}return z(e,t,new Uint8Array(t.length-y-(t.length-y)%l),0,y,!0)}flush(){const t=this,e=t.pendingInput,n=S(e,0,e.length-y),s=S(e,e.length-y);let r=new Uint8Array(0);if(n.length){const e=_.toBits(n);t.hmac.update(e);const s=t.aesCtrGladman.update(e);r=_.fromBits(s)}let a=!0;if(t.signed){const e=S(_.fromBits(t.hmac.digest()),0,y);for(let t=0;t<y;t++)e[t]!=s[t]&&(a=!1)}return{valid:a,data:r}}}class U{constructor(t,e){Object.assign(this,{password:t,strength:e-1,pendingInput:new Uint8Array(0)})}async append(t){const e=this;let n=new Uint8Array(0);e.password&&(n=await async function(t,e){const n=crypto.getRandomValues(new Uint8Array(f[t.strength]));return await v(t,e,n),C(n,t.keys.passwordVerification)}(e,e.password),e.password=null,e.aesCtrGladman=new m(new b(e.keys.key),Array.from(w)),e.hmac=new k(e.keys.authentication));const s=new Uint8Array(n.length+t.length-t.length%l);return s.set(n,0),z(e,t,s,n.length,0)}flush(){const t=this;let e=new Uint8Array(0);if(t.pendingInput.length){const n=t.aesCtrGladman.update(_.toBits(t.pendingInput));t.hmac.update(n),e=_.fromBits(n)}const n=S(_.fromBits(t.hmac.digest()),0,y);return{data:C(e,n),signature:n}}}function z(t,e,n,s,r,a){const i=e.length-r;let c;for(t.pendingInput.length&&(e=C(t.pendingInput,e),n=function(t,e){if(e&&e>t.length){const n=t;(t=new Uint8Array(e)).set(n,0)}return t}(n,i-i%l)),c=0;c<=i-l;c+=l){const r=_.toBits(S(e,c,c+l));a&&t.hmac.update(r);const i=t.aesCtrGladman.update(r);a||t.hmac.update(i),n.set(_.fromBits(i),c+s)}return t.pendingInput=S(e,c),n}async function v(t,e,n){const s=(new TextEncoder).encode(e),r=await crypto.subtle.importKey("raw",s,p,!1,d),a=await crypto.subtle.deriveBits(Object.assign({salt:n},u),r,8*(2*g[t.strength]+2)),i=new Uint8Array(a);t.keys={key:_.toBits(S(i,0,g[t.strength])),authentication:_.toBits(S(i,g[t.strength],2*g[t.strength])),passwordVerification:S(i,2*g[t.strength])}}function C(t,e){let n=t;return t.length+e.length&&(n=new Uint8Array(t.length+e.length),n.set(t,0),n.set(e,t.length)),n}function S(t,e,n){return t.subarray(e,n)}class B{constructor(t,e){Object.assign(this,{password:t,passwordVerification:e}),V(this,t)}append(t){const e=this;if(e.password){const n=I(e,t.subarray(0,12));if(e.password=null,n[11]!=e.passwordVerification)throw new Error(o);t=t.subarray(12)}return I(e,t)}flush(){return{valid:!0,data:new Uint8Array(0)}}}class D{constructor(t,e){Object.assign(this,{password:t,passwordVerification:e}),V(this,t)}append(t){const e=this;let n,s;if(e.password){e.password=null;const r=crypto.getRandomValues(new Uint8Array(12));r[11]=e.passwordVerification,n=new Uint8Array(t.length+r.length),n.set(H(e,r),0),s=12}else n=new Uint8Array(t.length),s=0;return n.set(H(e,t),s),n}flush(){return{data:new Uint8Array(0)}}}function I(t,e){const n=new Uint8Array(e.length);for(let s=0;s<e.length;s++)n[s]=j(t)^e[s],M(t,n[s]);return n}function H(t,e){const n=new Uint8Array(e.length);for(let s=0;s<e.length;s++)n[s]=j(t)^e[s],M(t,e[s]);return n}function V(t,n){t.keys=[305419896,591751049,878082192],t.crcKey0=new e(t.keys[0]),t.crcKey2=new e(t.keys[2]);for(let e=0;e<n.length;e++)M(t,n.charCodeAt(e))}function M(t,e){t.crcKey0.append([e]),t.keys[0]=~t.crcKey0.get(),t.keys[1]=E(t.keys[1]+O(t.keys[0])),t.keys[1]=E(Math.imul(t.keys[1],134775813)+1),t.crcKey2.append([t.keys[1]>>>24]),t.keys[2]=~t.crcKey2.get()}function j(t){const e=2|t.keys[2];return O(Math.imul(e,1^e)>>>8)}function O(t){return 255&t}function E(t){return 4294967295&t}const K="deflate",W="inflate",G="Invalid signature";class L{constructor(t,{signature:n,password:s,signed:r,compressed:a,zipCrypto:i,passwordVerification:c,encryptionStrength:o},{chunkSize:l}){const h=Boolean(s);Object.assign(this,{signature:n,encrypted:h,signed:r,compressed:a,inflate:a&&new t({chunkSize:l}),crc32:r&&new e,zipCrypto:i,decrypt:h&&i?new B(s,c):new A(s,r,o)})}async append(t){const e=this;return e.encrypted&&t.length&&(t=await e.decrypt.append(t)),e.compressed&&t.length&&(t=await e.inflate.append(t)),(!e.encrypted||e.zipCrypto)&&e.signed&&t.length&&e.crc32.append(t),t}async flush(){const t=this;let e,n=new Uint8Array(0);if(t.encrypted){const e=t.decrypt.flush();if(!e.valid)throw new Error(G);n=e.data}if((!t.encrypted||t.zipCrypto)&&t.signed){const n=new DataView(new Uint8Array(4).buffer);if(e=t.crc32.get(),n.setUint32(0,e),t.signature!=n.getUint32(0,!1))throw new Error(G)}return t.compressed&&(n=await t.inflate.append(n)||new Uint8Array(0),await t.inflate.flush()),{data:n,signature:e}}}class P{constructor(t,{encrypted:n,signed:s,compressed:r,level:a,zipCrypto:i,password:c,passwordVerification:o,encryptionStrength:l},{chunkSize:h}){Object.assign(this,{encrypted:n,signed:s,compressed:r,deflate:r&&new t({level:a||5,chunkSize:h}),crc32:s&&new e,zipCrypto:i,encrypt:n&&i?new D(c,o):new U(c,l)})}async append(t){const e=this;let n=t;return e.compressed&&t.length&&(n=await e.deflate.append(t)),e.encrypted&&n.length&&(n=await e.encrypt.append(n)),(!e.encrypted||e.zipCrypto)&&e.signed&&t.length&&e.crc32.append(t),n}async flush(){const t=this;let e,n=new Uint8Array(0);if(t.compressed&&(n=await t.deflate.flush()||new Uint8Array(0)),t.encrypted){n=await t.encrypt.append(n);const s=t.encrypt.flush();e=s.signature;const r=new Uint8Array(n.length+s.data.length);r.set(n,0),r.set(s.data,n.length),n=r}return t.encrypted&&!t.zipCrypto||!t.signed||(e=t.crc32.get()),{data:n,signature:e}}}const T={init(t){t.scripts&&t.scripts.length&&importScripts.apply(void 0,t.scripts);const e=t.options;let n;self.initCodec&&self.initCodec(),e.codecType.startsWith(K)?n=self.Deflate:e.codecType.startsWith(W)&&(n=self.Inflate),R=function(t,e,n){return e.codecType.startsWith(K)?new P(t,e,n):e.codecType.startsWith(W)?new L(t,e,n):void 0}(n,e,t.config)},append:async t=>({data:await R.append(t.data)}),flush:()=>R.flush()};let R;function x(t,e,n){return class{constructor(s){const r=this;r.codec=new t(Object.assign({},e,s)),n(r.codec,(t=>{if(r.pendingData){const e=r.pendingData;r.pendingData=new Uint8Array(e.length+t.length),r.pendingData.set(e,0),r.pendingData.set(t,e.length)}else r.pendingData=new Uint8Array(t)}))}async append(t){return this.codec.push(t),s(this)}async flush(){return this.codec.push(new Uint8Array(0),!0),s(this)}};function s(t){if(t.pendingData){const e=t.pendingData;return t.pendingData=null,e}return new Uint8Array(0)}}addEventListener("message",(async t=>{const e=t.data,n=e.type,s=T[n];if(s)try{e.data&&(e.data=new Uint8Array(e.data));const t=await s(e)||{};if(t.type=n,t.data)try{t.data=t.data.buffer,postMessage(t,[t.data])}catch(e){postMessage(t)}else postMessage(t)}catch(t){postMessage({type:n,error:{message:t.message,stack:t.stack}})}})),self.initCodec=()=>{const{Deflate:t,Inflate:e}=((t,e={},n)=>({Deflate:x(t.Deflate,e.deflate,n),Inflate:x(t.Inflate,e.inflate,n)}))(pako,{deflate:{raw:!0},inflate:{raw:!0}},((t,e)=>t.onData=e));self.Deflate=t,self.Inflate=e}}();
1
+ (function(){"use strict";const{Array:G,Object:y,Math:k,Error:m,Uint8Array:p,Uint16Array:ve,Uint32Array:M,Int32Array:ze,DataView:j,TextEncoder:x,crypto:b,postMessage:A}=globalThis,F=[];for(let n=0;256>n;n++){let e=n;for(let t=0;8>t;t++)1&e?e=e>>>1^3988292384:e>>>=1;F[n]=e}class R{constructor(e){this.crc=e||-1}append(e){let t=0|this.crc;for(let s=0,a=0|e.length;a>s;s++)t=t>>>8^F[255&(t^e[s])];this.crc=t}get(){return~this.crc}}const u={concat(n,e){if(n.length===0||e.length===0)return n.concat(e);const t=n[n.length-1],s=u.getPartial(t);return s===32?n.concat(e):u._shiftRight(e,s,0|t,n.slice(0,n.length-1))},bitLength(n){const e=n.length;if(e===0)return 0;const t=n[e-1];return 32*(e-1)+u.getPartial(t)},clamp(n,e){if(32*n.length<e)return n;const t=(n=n.slice(0,k.ceil(e/32))).length;return e&=31,t>0&&e&&(n[t-1]=u.partial(e,n[t-1]&2147483648>>e-1,1)),n},partial:(n,e,t)=>n===32?e:(t?0|e:e<<32-n)+1099511627776*n,getPartial:n=>k.round(n/1099511627776)||32,_shiftRight(n,e,t,s){for(s===void 0&&(s=[]);e>=32;e-=32)s.push(t),t=0;if(e===0)return s.concat(n);for(let i=0;i<n.length;i++)s.push(t|n[i]>>>e),t=n[i]<<32-e;const a=n.length?n[n.length-1]:0,r=u.getPartial(a);return s.push(u.partial(e+r&31,e+r>32?t:s.pop(),1)),s}},W={bytes:{fromBits(n){const e=u.bitLength(n)/8,t=new p(e);let s;for(let a=0;e>a;a++)!(3&a)&&(s=n[a/4]),t[a]=s>>>24,s<<=8;return t},toBits(n){const e=[];let t,s=0;for(t=0;t<n.length;t++)s=s<<8|n[t],(3&t)==3&&(e.push(s),s=0);return 3&t&&e.push(u.partial(8*(3&t),s)),e}}},O={sha1:function(n){n?(this._h=n._h.slice(0),this._buffer=n._buffer.slice(0),this._length=n._length):this.reset()}};O.sha1.prototype={blockSize:512,reset:function(){const n=this;return n._h=this._init.slice(0),n._buffer=[],n._length=0,n},update:function(n){const e=this;typeof n=="string"&&(n=W.utf8String.toBits(n));const t=e._buffer=u.concat(e._buffer,n),s=e._length,a=e._length=s+u.bitLength(n);if(a>9007199254740991)throw new m("Cannot hash more than 2^53 - 1 bits");const r=new M(t);let i=0;for(let c=e.blockSize+s-(e.blockSize+s&e.blockSize-1);a>=c;c+=e.blockSize)e._block(r.subarray(16*i,16*(i+1))),i+=1;return t.splice(0,16*i),e},finalize:function(){const n=this;let e=n._buffer;const t=n._h;e=u.concat(e,[u.partial(1,1)]);for(let s=e.length+2;15&s;s++)e.push(0);for(e.push(k.floor(n._length/4294967296)),e.push(0|n._length);e.length;)n._block(e.splice(0,16));return n.reset(),t},_init:[1732584193,4023233417,2562383102,271733878,3285377520],_key:[1518500249,1859775393,2400959708,3395469782],_f:(n,e,t,s)=>n>19?n>39?n>59?n>79?void 0:e^t^s:e&t|e&s|t&s:e^t^s:e&t|~e&s,_S:(n,e)=>e<<n|e>>>32-n,_block:function(n){const e=this,t=e._h,s=G(80);for(let o=0;16>o;o++)s[o]=n[o];let a=t[0],r=t[1],i=t[2],c=t[3],l=t[4];for(let o=0;79>=o;o++){16>o||(s[o]=e._S(1,s[o-3]^s[o-8]^s[o-14]^s[o-16]));const h=e._S(5,a)+e._f(o,r,i,c)+l+s[o]+e._key[k.floor(o/20)]|0;l=c,c=i,i=e._S(30,r),r=a,a=h}t[0]=t[0]+a|0,t[1]=t[1]+r|0,t[2]=t[2]+i|0,t[3]=t[3]+c|0,t[4]=t[4]+l|0}};const de={getRandomValues(n){const e=new M(n.buffer),t=s=>{let a=987654321;const r=4294967295;return()=>(a=36969*(65535&a)+(a>>16)&r,(((a<<16)+(s=18e3*(65535&s)+(s>>16)&r)&r)/4294967296+.5)*(k.random()>.5?1:-1))};for(let s,a=0;a<n.length;a+=4){const r=t(4294967296*(s||k.random()));s=987654071*r(),e[a/4]=4294967296*r()|0}return n}},T={importKey:n=>new T.hmacSha1(W.bytes.toBits(n)),pbkdf2(n,e,t,s){if(t=t||1e4,0>s||0>t)throw new m("invalid params to pbkdf2");const a=1+(s>>5)<<2;let r,i,c,l,o;const h=new ArrayBuffer(a),d=new j(h);let w=0;const z=u;for(e=W.bytes.toBits(e),o=1;(a||1)>w;o++){for(r=i=n.encrypt(z.concat(e,[o])),c=1;t>c;c++)for(i=n.encrypt(i),l=0;l<i.length;l++)r[l]^=i[l];for(c=0;(a||1)>w&&c<r.length;c++)d.setInt32(w,r[c]),w+=4}return h.slice(0,s/8)},hmacSha1:class{constructor(n){const e=this,t=e._hash=O.sha1,s=[[],[]],a=t.prototype.blockSize/32;e._baseHash=[new t,new t],n.length>a&&(n=t.hash(n));for(let r=0;a>r;r++)s[0][r]=909522486^n[r],s[1][r]=1549556828^n[r];e._baseHash[0].update(s[0]),e._baseHash[1].update(s[1]),e._resultHash=new t(e._baseHash[0])}reset(){const n=this;n._resultHash=new n._hash(n._baseHash[0]),n._updated=!1}update(n){this._updated=!0,this._resultHash.update(n)}digest(){const n=this,e=n._resultHash.finalize(),t=new n._hash(n._baseHash[1]).update(e).finalize();return n.reset(),t}encrypt(n){if(this._updated)throw new m("encrypt on already updated hmac called!");return this.update(n),this.digest(n)}}},q="Invalid pasword",D=16,J={name:"PBKDF2"},ue=y.assign({hash:{name:"HMAC"}},J),N=y.assign({iterations:1e3,hash:{name:"SHA-1"}},J),fe=["deriveBits"],H=[8,12,16],K=[16,24,32],v=10,Q=[0,0,0,0],U=b!==void 0,X=U&&b.subtle!==void 0,_=W.bytes,Y=class{constructor(n){const e=this;e._tables=[[[],[],[],[],[]],[[],[],[],[],[]]],e._tables[0][0][0]||e._precompute();const t=e._tables[0][4],s=e._tables[1],a=n.length;let r,i,c,l=1;if(a!==4&&a!==6&&a!==8)throw new m("invalid aes key size");for(e._key=[i=n.slice(0),c=[]],r=a;4*a+28>r;r++){let o=i[r-1];(r%a==0||a===8&&r%a==4)&&(o=t[o>>>24]<<24^t[o>>16&255]<<16^t[o>>8&255]<<8^t[255&o],r%a==0&&(o=o<<8^o>>>24^l<<24,l=l<<1^283*(l>>7))),i[r]=i[r-a]^o}for(let o=0;r;o++,r--){const h=i[3&o?r:r-4];c[o]=4>=r||4>o?h:s[0][t[h>>>24]]^s[1][t[h>>16&255]]^s[2][t[h>>8&255]]^s[3][t[255&h]]}}encrypt(n){return this._crypt(n,0)}decrypt(n){return this._crypt(n,1)}_precompute(){const n=this._tables[0],e=this._tables[1],t=n[4],s=e[4],a=[],r=[];let i,c,l,o;for(let h=0;256>h;h++)r[(a[h]=h<<1^283*(h>>7))^h]=h;for(let h=i=0;!t[h];h^=c||1,i=r[i]||1){let d=i^i<<1^i<<2^i<<3^i<<4;d=d>>8^255&d^99,t[h]=d,s[d]=h,o=a[l=a[c=a[h]]];let w=16843009*o^65537*l^257*c^16843008*h,z=257*a[d]^16843008*d;for(let g=0;4>g;g++)n[g][h]=z=z<<24^z>>>8,e[g][d]=w=w<<24^w>>>8}for(let h=0;5>h;h++)n[h]=n[h].slice(0),e[h]=e[h].slice(0)}_crypt(n,e){if(n.length!==4)throw new m("invalid aes block size");const t=this._key[e],s=t.length/4-2,a=[0,0,0,0],r=this._tables[e],i=r[0],c=r[1],l=r[2],o=r[3],h=r[4];let d,w,z,g=n[0]^t[0],C=n[e?3:1]^t[1],S=n[2]^t[2],B=n[e?1:3]^t[3],V=4;for(let I=0;s>I;I++)d=i[g>>>24]^c[C>>16&255]^l[S>>8&255]^o[255&B]^t[V],w=i[C>>>24]^c[S>>16&255]^l[B>>8&255]^o[255&g]^t[V+1],z=i[S>>>24]^c[B>>16&255]^l[g>>8&255]^o[255&C]^t[V+2],B=i[B>>>24]^c[g>>16&255]^l[C>>8&255]^o[255&S]^t[V+3],V+=4,g=d,C=w,S=z;for(let I=0;4>I;I++)a[e?3&-I:I]=h[g>>>24]<<24^h[C>>16&255]<<16^h[S>>8&255]<<8^h[255&B]^t[V++],d=g,g=C,C=S,S=B,B=d;return a}},Z=class{constructor(n,e){this._prf=n,this._initIv=e,this._iv=e}reset(){this._iv=this._initIv}update(n){return this.calculate(this._prf,n,this._iv)}incWord(n){if((n>>24&255)==255){let e=n>>16&255,t=n>>8&255,s=255&n;e===255?(e=0,t===255?(t=0,s===255?s=0:++s):++t):++e,n=0,n+=e<<16,n+=t<<8,n+=s}else n+=1<<24;return n}incCounter(n){(n[0]=this.incWord(n[0]))===0&&(n[1]=this.incWord(n[1]))}calculate(n,e,t){let s;if(!(s=e.length))return[];const a=u.bitLength(e);for(let r=0;s>r;r+=4){this.incCounter(t);const i=n.encrypt(t);e[r]^=i[0],e[r+1]^=i[1],e[r+2]^=i[2],e[r+3]^=i[3]}return u.clamp(e,a)}},$=T.hmacSha1;class ge{constructor(e,t,s){y.assign(this,{password:e,signed:t,strength:s-1,pendingInput:new p(0)})}async append(e){const t=this;if(t.password){const s=f(e,0,H[t.strength]+2);await(async(a,r,i)=>{await te(a,i,f(r,0,H[a.strength]));const c=f(r,H[a.strength]),l=a.keys.passwordVerification;if(l[0]!=c[0]||l[1]!=c[1])throw new m(q)})(t,s,t.password),t.password=null,t.aesCtrGladman=new Z(new Y(t.keys.key),G.from(Q)),t.hmac=new $(t.keys.authentication),e=f(e,H[t.strength]+2)}return ee(t,e,new p(e.length-v-(e.length-v)%D),0,v,!0)}flush(){const e=this,t=e.pendingInput,s=f(t,0,t.length-v),a=f(t,t.length-v);let r=new p(0);if(s.length){const c=_.toBits(s);e.hmac.update(c);const l=e.aesCtrGladman.update(c);r=_.fromBits(l)}let i=!0;if(e.signed){const c=f(_.fromBits(e.hmac.digest()),0,v);for(let l=0;v>l;l++)c[l]!=a[l]&&(i=!1)}return{valid:i,data:r}}}class we{constructor(e,t){y.assign(this,{password:e,strength:t-1,pendingInput:new p(0)})}async append(e){const t=this;let s=new p(0);t.password&&(s=await(async(r,i)=>{const c=(l=new p(H[r.strength]),U&&typeof b.getRandomValues=="function"?b.getRandomValues(l):de.getRandomValues(l));var l;return await te(r,i,c),L(c,r.keys.passwordVerification)})(t,t.password),t.password=null,t.aesCtrGladman=new Z(new Y(t.keys.key),G.from(Q)),t.hmac=new $(t.keys.authentication));const a=new p(s.length+e.length-e.length%D);return a.set(s,0),ee(t,e,a,s.length,0)}flush(){const e=this;let t=new p(0);if(e.pendingInput.length){const a=e.aesCtrGladman.update(_.toBits(e.pendingInput));e.hmac.update(a),t=_.fromBits(a)}const s=f(_.fromBits(e.hmac.digest()),0,v);return{data:L(t,s),signature:s}}}function ee(n,e,t,s,a,r){const i=e.length-a;let c;for(n.pendingInput.length&&(e=L(n.pendingInput,e),t=((l,o)=>{if(o&&o>l.length){const h=l;(l=new p(o)).set(h,0)}return l})(t,i-i%D)),c=0;i-D>=c;c+=D){const l=_.toBits(f(e,c,c+D));r&&n.hmac.update(l);const o=n.aesCtrGladman.update(l);r||n.hmac.update(o),t.set(_.fromBits(o),c+s)}return n.pendingInput=f(e,c),t}async function te(n,e,t){const s=(c=>{if(x===void 0){const l=new p((c=unescape(encodeURIComponent(c))).length);for(let o=0;o<l.length;o++)l[o]=c.charCodeAt(o);return l}return new x().encode(c)})(e),a=await((c,l,o,h,d)=>U&&X&&typeof b.subtle.importKey=="function"?b.subtle.importKey("raw",l,o,!1,d):T.importKey(l))(0,s,ue,0,fe),r=await(async(c,l,o)=>U&&X&&typeof b.subtle.deriveBits=="function"?await b.subtle.deriveBits(c,l,o):T.pbkdf2(l,c.salt,N.iterations,o))(y.assign({salt:t},N),a,8*(2*K[n.strength]+2)),i=new p(r);n.keys={key:_.toBits(f(i,0,K[n.strength])),authentication:_.toBits(f(i,K[n.strength],2*K[n.strength])),passwordVerification:f(i,2*K[n.strength])}}function L(n,e){let t=n;return n.length+e.length&&(t=new p(n.length+e.length),t.set(n,0),t.set(e,n.length)),t}function f(n,e,t){return n.subarray(e,t)}class ye{constructor(e,t){y.assign(this,{password:e,passwordVerification:t}),ae(this,e)}append(e){const t=this;if(t.password){const s=ne(t,e.subarray(0,12));if(t.password=null,s[11]!=t.passwordVerification)throw new m(q);e=e.subarray(12)}return ne(t,e)}flush(){return{valid:!0,data:new p(0)}}}class _e{constructor(e,t){y.assign(this,{password:e,passwordVerification:t}),ae(this,e)}append(e){const t=this;let s,a;if(t.password){t.password=null;const r=b.getRandomValues(new p(12));r[11]=t.passwordVerification,s=new p(e.length+r.length),s.set(se(t,r),0),a=12}else s=new p(e.length),a=0;return s.set(se(t,e),a),s}flush(){return{data:new p(0)}}}function ne(n,e){const t=new p(e.length);for(let s=0;s<e.length;s++)t[s]=re(n)^e[s],P(n,t[s]);return t}function se(n,e){const t=new p(e.length);for(let s=0;s<e.length;s++)t[s]=re(n)^e[s],P(n,e[s]);return t}function ae(n,e){n.keys=[305419896,591751049,878082192],n.crcKey0=new R(n.keys[0]),n.crcKey2=new R(n.keys[2]);for(let t=0;t<e.length;t++)P(n,e.charCodeAt(t))}function P(n,e){n.crcKey0.append([e]),n.keys[0]=~n.crcKey0.get(),n.keys[1]=ce(n.keys[1]+ie(n.keys[0])),n.keys[1]=ce(k.imul(n.keys[1],134775813)+1),n.crcKey2.append([n.keys[1]>>>24]),n.keys[2]=~n.crcKey2.get()}function re(n){const e=2|n.keys[2];return ie(k.imul(e,1^e)>>>8)}function ie(n){return 255&n}function ce(n){return 4294967295&n}const oe="deflate",le="inflate",he="Invalid signature";class me{constructor(e,{signature:t,password:s,signed:a,compressed:r,zipCrypto:i,passwordVerification:c,encryptionStrength:l},{chunkSize:o}){const h=!!s;y.assign(this,{signature:t,encrypted:h,signed:a,compressed:r,inflate:r&&new e({chunkSize:o}),crc32:a&&new R,zipCrypto:i,decrypt:h&&i?new ye(s,c):new ge(s,a,l)})}async append(e){const t=this;return t.encrypted&&e.length&&(e=await t.decrypt.append(e)),t.compressed&&e.length&&(e=await t.inflate.append(e)),(!t.encrypted||t.zipCrypto)&&t.signed&&e.length&&t.crc32.append(e),e}async flush(){const e=this;let t,s=new p(0);if(e.encrypted){const a=e.decrypt.flush();if(!a.valid)throw new m(he);s=a.data}if((!e.encrypted||e.zipCrypto)&&e.signed){const a=new j(new p(4).buffer);if(t=e.crc32.get(),a.setUint32(0,t),e.signature!=a.getUint32(0,!1))throw new m(he)}return e.compressed&&(s=await e.inflate.append(s)||new p(0),await e.inflate.flush()),{data:s,signature:t}}}class be{constructor(e,{encrypted:t,signed:s,compressed:a,level:r,zipCrypto:i,password:c,passwordVerification:l,encryptionStrength:o},{chunkSize:h}){y.assign(this,{encrypted:t,signed:s,compressed:a,deflate:a&&new e({level:r||5,chunkSize:h}),crc32:s&&new R,zipCrypto:i,encrypt:t&&i?new _e(c,l):new we(c,o)})}async append(e){const t=this;let s=e;return t.compressed&&e.length&&(s=await t.deflate.append(e)),t.encrypted&&s.length&&(s=await t.encrypt.append(s)),(!t.encrypted||t.zipCrypto)&&t.signed&&e.length&&t.crc32.append(e),s}async flush(){const e=this;let t,s=new p(0);if(e.compressed&&(s=await e.deflate.flush()||new p(0)),e.encrypted){s=await e.encrypt.append(s);const a=e.encrypt.flush();t=a.signature;const r=new p(s.length+a.data.length);r.set(s,0),r.set(a.data,s.length),s=r}return e.encrypted&&!e.zipCrypto||!e.signed||(t=e.crc32.get()),{data:s,signature:t}}}const ke={init(n){n.scripts&&n.scripts.length&&importScripts.apply(void 0,n.scripts);const e=n.options;let t;self.initCodec&&self.initCodec(),e.codecType.startsWith(oe)?t=self.Deflate:e.codecType.startsWith(le)&&(t=self.Inflate),E=((s,a,r)=>a.codecType.startsWith(oe)?new be(s,a,r):a.codecType.startsWith(le)?new me(s,a,r):void 0)(t,e,n.config)},append:async n=>({data:await E.append(n.data)}),flush:()=>E.flush()};let E;function pe(n,e,t){return class{constructor(a){const r=this;r.codec=new n(y.assign({},e,a)),t(r.codec,i=>{if(r.pendingData){const c=r.pendingData;r.pendingData=new p(c.length+i.length),r.pendingData.set(c,0),r.pendingData.set(i,c.length)}else r.pendingData=new p(i)})}append(a){return this.codec.push(a),s(this)}flush(){return this.codec.push(new p(0),!0),s(this)}};function s(a){if(a.pendingData){const r=a.pendingData;return a.pendingData=null,r}return new p(0)}}addEventListener("message",async n=>{const e=n.data,t=e.type,s=ke[t];if(s)try{e.data&&(e.data=new p(e.data));const a=await s(e)||{};if(a.type=t,a.data)try{a.data=a.data.buffer,A(a,[a.data])}catch{A(a)}else A(a)}catch(a){A({type:t,error:{message:a.message,stack:a.stack}})}}),self.initCodec=()=>{const{Deflate:n,Inflate:e}=((t,s={},a)=>({Deflate:pe(t.Deflate,s.deflate,a),Inflate:pe(t.Inflate,s.inflate,a)}))(pako,{deflate:{raw:!0},inflate:{raw:!0}},(t,s)=>t.onData=s);self.Deflate=n,self.Inflate=e}})();