xh-htmlword 1.0.0

Sign up to get free protection for your applications and to get access to all the features.
@@ -0,0 +1,82 @@
1
+ (function(Ke,Me){typeof exports=="object"&&typeof module<"u"?module.exports=Me():typeof define=="function"&&define.amd?define(Me):(Ke=typeof globalThis<"u"?globalThis:Ke||self,Ke.Counter=Me())})(this,function(){"use strict";var Ke=Object.getOwnPropertyNames,Me=(ce=>typeof require<"u"?require:typeof Proxy<"u"?new Proxy(ce,{get:(xe,b)=>(typeof require<"u"?require:xe)[b]}):ce)(function(ce){if(typeof require<"u")return require.apply(this,arguments);throw Error('Dynamic require of "'+ce+'" is not supported')}),tt=(ce,xe)=>function(){return xe||(0,ce[Ke(ce)[0]])((xe={exports:{}}).exports,xe),xe.exports},rt=tt({"node_modules/html-docx-js/dist/html-docx.js"(ce,xe){(function(b){if(typeof ce=="object"&&typeof xe<"u")xe.exports=b();else if(typeof define=="function"&&define.amd)define([],b);else{var I;typeof window<"u"?I=window:typeof global<"u"?I=global:typeof self<"u"&&(I=self),I.htmlDocx=b()}})(function(){return function b(I,y,p){function o(i,d){if(!y[i]){if(!I[i]){var _=typeof Me=="function"&&Me;if(!d&&_)return _(i,!0);if(c)return c(i,!0);throw new Error("Cannot find module '"+i+"'")}var m=y[i]={exports:{}};I[i][0].call(m.exports,function(r){var s=I[i][1][r];return o(s||r)},m,m.exports,b,I,y,p)}return y[i].exports}for(var c=typeof Me=="function"&&Me,h=0;h<p.length;h++)o(p[h]);return o}({1:[function(b,I,y){var p=b("base64-js"),o=b("ieee754"),c=b("is-array");y.Buffer=i,y.SlowBuffer=i,y.INSPECT_MAX_BYTES=50,i.poolSize=8192;var h=1073741823;i.TYPED_ARRAY_SUPPORT=function(){try{var t=new ArrayBuffer(0),u=new Uint8Array(t);return u.foo=function(){return 42},u.foo()===42&&typeof u.subarray=="function"&&new Uint8Array(1).subarray(1,1).byteLength===0}catch{return!1}}();function i(t,u,v){if(!(this instanceof i))return new i(t,u,v);var B=typeof t,P;if(B==="number")P=t>0?t>>>0:0;else if(B==="string")u==="base64"&&(t=ne(t)),P=i.byteLength(t,u);else if(B==="object"&&t!==null)t.type==="Buffer"&&c(t.data)&&(t=t.data),P=+t.length>0?Math.floor(+t.length):0;else throw new TypeError("must start with number, buffer, array or string");if(this.length>h)throw new RangeError("Attempt to allocate Buffer larger than maximum size: 0x"+h.toString(16)+" bytes");var Y;i.TYPED_ARRAY_SUPPORT?Y=i._augment(new Uint8Array(P)):(Y=this,Y.length=P,Y._isBuffer=!0);var K;if(i.TYPED_ARRAY_SUPPORT&&typeof t.byteLength=="number")Y._set(t);else if(C(t))if(i.isBuffer(t))for(K=0;K<P;K++)Y[K]=t.readUInt8(K);else for(K=0;K<P;K++)Y[K]=(t[K]%256+256)%256;else if(B==="string")Y.write(t,0,u);else if(B==="number"&&!i.TYPED_ARRAY_SUPPORT&&!v)for(K=0;K<P;K++)Y[K]=0;return Y}i.isBuffer=function(t){return!!(t!=null&&t._isBuffer)},i.compare=function(t,u){if(!i.isBuffer(t)||!i.isBuffer(u))throw new TypeError("Arguments must be Buffers");for(var v=t.length,B=u.length,P=0,Y=Math.min(v,B);P<Y&&t[P]===u[P];P++);return P!==Y&&(v=t[P],B=u[P]),v<B?-1:B<v?1:0},i.isEncoding=function(t){switch(String(t).toLowerCase()){case"hex":case"utf8":case"utf-8":case"ascii":case"binary":case"base64":case"raw":case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return!0;default:return!1}},i.concat=function(t,u){if(!c(t))throw new TypeError("Usage: Buffer.concat(list[, length])");if(t.length===0)return new i(0);if(t.length===1)return t[0];var v;if(u===void 0)for(u=0,v=0;v<t.length;v++)u+=t[v].length;var B=new i(u),P=0;for(v=0;v<t.length;v++){var Y=t[v];Y.copy(B,P),P+=Y.length}return B},i.byteLength=function(t,u){var v;switch(t=t+"",u||"utf8"){case"ascii":case"binary":case"raw":v=t.length;break;case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":v=t.length*2;break;case"hex":v=t.length>>>1;break;case"utf8":case"utf-8":v=G(t).length;break;case"base64":v=ae(t).length;break;default:v=t.length}return v},i.prototype.length=void 0,i.prototype.parent=void 0,i.prototype.toString=function(t,u,v){var B=!1;if(u=u>>>0,v=v===void 0||v===1/0?this.length:v>>>0,t||(t="utf8"),u<0&&(u=0),v>this.length&&(v=this.length),v<=u)return"";for(;;)switch(t){case"hex":return V(this,u,v);case"utf8":case"utf-8":return w(this,u,v);case"ascii":return x(this,u,v);case"binary":return D(this,u,v);case"base64":return g(this,u,v);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return L(this,u,v);default:if(B)throw new TypeError("Unknown encoding: "+t);t=(t+"").toLowerCase(),B=!0}},i.prototype.equals=function(t){if(!i.isBuffer(t))throw new TypeError("Argument must be a Buffer");return i.compare(this,t)===0},i.prototype.inspect=function(){var t="",u=y.INSPECT_MAX_BYTES;return this.length>0&&(t=this.toString("hex",0,u).match(/.{2}/g).join(" "),this.length>u&&(t+=" ... ")),"<Buffer "+t+">"},i.prototype.compare=function(t){if(!i.isBuffer(t))throw new TypeError("Argument must be a Buffer");return i.compare(this,t)},i.prototype.get=function(t){return console.log(".get() is deprecated. Access using array indexes instead."),this.readUInt8(t)},i.prototype.set=function(t,u){return console.log(".set() is deprecated. Access using array indexes instead."),this.writeUInt8(t,u)};function d(t,u,v,B){v=Number(v)||0;var P=t.length-v;B?(B=Number(B),B>P&&(B=P)):B=P;var Y=u.length;if(Y%2!==0)throw new Error("Invalid hex string");B>Y/2&&(B=Y/2);for(var K=0;K<B;K++){var le=parseInt(u.substr(K*2,2),16);if(isNaN(le))throw new Error("Invalid hex string");t[v+K]=le}return K}function _(t,u,v,B){var P=pe(G(u),t,v,B);return P}function m(t,u,v,B){var P=pe(q(u),t,v,B);return P}function r(t,u,v,B){return m(t,u,v,B)}function s(t,u,v,B){var P=pe(ae(u),t,v,B);return P}function l(t,u,v,B){var P=pe(se(u),t,v,B,2);return P}i.prototype.write=function(t,u,v,B){if(isFinite(u))isFinite(v)||(B=v,v=void 0);else{var P=B;B=u,u=v,v=P}u=Number(u)||0;var Y=this.length-u;v?(v=Number(v),v>Y&&(v=Y)):v=Y,B=String(B||"utf8").toLowerCase();var K;switch(B){case"hex":K=d(this,t,u,v);break;case"utf8":case"utf-8":K=_(this,t,u,v);break;case"ascii":K=m(this,t,u,v);break;case"binary":K=r(this,t,u,v);break;case"base64":K=s(this,t,u,v);break;case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":K=l(this,t,u,v);break;default:throw new TypeError("Unknown encoding: "+B)}return K},i.prototype.toJSON=function(){return{type:"Buffer",data:Array.prototype.slice.call(this._arr||this,0)}};function g(t,u,v){return u===0&&v===t.length?p.fromByteArray(t):p.fromByteArray(t.slice(u,v))}function w(t,u,v){var B="",P="";v=Math.min(t.length,v);for(var Y=u;Y<v;Y++)t[Y]<=127?(B+=de(P)+String.fromCharCode(t[Y]),P=""):P+="%"+t[Y].toString(16);return B+de(P)}function x(t,u,v){var B="";v=Math.min(t.length,v);for(var P=u;P<v;P++)B+=String.fromCharCode(t[P]);return B}function D(t,u,v){return x(t,u,v)}function V(t,u,v){var B=t.length;(!u||u<0)&&(u=0),(!v||v<0||v>B)&&(v=B);for(var P="",Y=u;Y<v;Y++)P+=R(t[Y]);return P}function L(t,u,v){for(var B=t.slice(u,v),P="",Y=0;Y<B.length;Y+=2)P+=String.fromCharCode(B[Y]+B[Y+1]*256);return P}i.prototype.slice=function(t,u){var v=this.length;if(t=~~t,u=u===void 0?v:~~u,t<0?(t+=v,t<0&&(t=0)):t>v&&(t=v),u<0?(u+=v,u<0&&(u=0)):u>v&&(u=v),u<t&&(u=t),i.TYPED_ARRAY_SUPPORT)return i._augment(this.subarray(t,u));for(var B=u-t,P=new i(B,void 0,!0),Y=0;Y<B;Y++)P[Y]=this[Y+t];return P};function A(t,u,v){if(t%1!==0||t<0)throw new RangeError("offset is not uint");if(t+u>v)throw new RangeError("Trying to access beyond buffer length")}i.prototype.readUInt8=function(t,u){return u||A(t,1,this.length),this[t]},i.prototype.readUInt16LE=function(t,u){return u||A(t,2,this.length),this[t]|this[t+1]<<8},i.prototype.readUInt16BE=function(t,u){return u||A(t,2,this.length),this[t]<<8|this[t+1]},i.prototype.readUInt32LE=function(t,u){return u||A(t,4,this.length),(this[t]|this[t+1]<<8|this[t+2]<<16)+this[t+3]*16777216},i.prototype.readUInt32BE=function(t,u){return u||A(t,4,this.length),this[t]*16777216+(this[t+1]<<16|this[t+2]<<8|this[t+3])},i.prototype.readInt8=function(t,u){return u||A(t,1,this.length),this[t]&128?(255-this[t]+1)*-1:this[t]},i.prototype.readInt16LE=function(t,u){u||A(t,2,this.length);var v=this[t]|this[t+1]<<8;return v&32768?v|4294901760:v},i.prototype.readInt16BE=function(t,u){u||A(t,2,this.length);var v=this[t+1]|this[t]<<8;return v&32768?v|4294901760:v},i.prototype.readInt32LE=function(t,u){return u||A(t,4,this.length),this[t]|this[t+1]<<8|this[t+2]<<16|this[t+3]<<24},i.prototype.readInt32BE=function(t,u){return u||A(t,4,this.length),this[t]<<24|this[t+1]<<16|this[t+2]<<8|this[t+3]},i.prototype.readFloatLE=function(t,u){return u||A(t,4,this.length),o.read(this,t,!0,23,4)},i.prototype.readFloatBE=function(t,u){return u||A(t,4,this.length),o.read(this,t,!1,23,4)},i.prototype.readDoubleLE=function(t,u){return u||A(t,8,this.length),o.read(this,t,!0,52,8)},i.prototype.readDoubleBE=function(t,u){return u||A(t,8,this.length),o.read(this,t,!1,52,8)};function F(t,u,v,B,P,Y){if(!i.isBuffer(t))throw new TypeError("buffer must be a Buffer instance");if(u>P||u<Y)throw new TypeError("value is out of bounds");if(v+B>t.length)throw new TypeError("index out of range")}i.prototype.writeUInt8=function(t,u,v){return t=+t,u=u>>>0,v||F(this,t,u,1,255,0),i.TYPED_ARRAY_SUPPORT||(t=Math.floor(t)),this[u]=t,u+1};function N(t,u,v,B){u<0&&(u=65535+u+1);for(var P=0,Y=Math.min(t.length-v,2);P<Y;P++)t[v+P]=(u&255<<8*(B?P:1-P))>>>(B?P:1-P)*8}i.prototype.writeUInt16LE=function(t,u,v){return t=+t,u=u>>>0,v||F(this,t,u,2,65535,0),i.TYPED_ARRAY_SUPPORT?(this[u]=t,this[u+1]=t>>>8):N(this,t,u,!0),u+2},i.prototype.writeUInt16BE=function(t,u,v){return t=+t,u=u>>>0,v||F(this,t,u,2,65535,0),i.TYPED_ARRAY_SUPPORT?(this[u]=t>>>8,this[u+1]=t):N(this,t,u,!1),u+2};function W(t,u,v,B){u<0&&(u=4294967295+u+1);for(var P=0,Y=Math.min(t.length-v,4);P<Y;P++)t[v+P]=u>>>(B?P:3-P)*8&255}i.prototype.writeUInt32LE=function(t,u,v){return t=+t,u=u>>>0,v||F(this,t,u,4,4294967295,0),i.TYPED_ARRAY_SUPPORT?(this[u+3]=t>>>24,this[u+2]=t>>>16,this[u+1]=t>>>8,this[u]=t):W(this,t,u,!0),u+4},i.prototype.writeUInt32BE=function(t,u,v){return t=+t,u=u>>>0,v||F(this,t,u,4,4294967295,0),i.TYPED_ARRAY_SUPPORT?(this[u]=t>>>24,this[u+1]=t>>>16,this[u+2]=t>>>8,this[u+3]=t):W(this,t,u,!1),u+4},i.prototype.writeInt8=function(t,u,v){return t=+t,u=u>>>0,v||F(this,t,u,1,127,-128),i.TYPED_ARRAY_SUPPORT||(t=Math.floor(t)),t<0&&(t=255+t+1),this[u]=t,u+1},i.prototype.writeInt16LE=function(t,u,v){return t=+t,u=u>>>0,v||F(this,t,u,2,32767,-32768),i.TYPED_ARRAY_SUPPORT?(this[u]=t,this[u+1]=t>>>8):N(this,t,u,!0),u+2},i.prototype.writeInt16BE=function(t,u,v){return t=+t,u=u>>>0,v||F(this,t,u,2,32767,-32768),i.TYPED_ARRAY_SUPPORT?(this[u]=t>>>8,this[u+1]=t):N(this,t,u,!1),u+2},i.prototype.writeInt32LE=function(t,u,v){return t=+t,u=u>>>0,v||F(this,t,u,4,2147483647,-2147483648),i.TYPED_ARRAY_SUPPORT?(this[u]=t,this[u+1]=t>>>8,this[u+2]=t>>>16,this[u+3]=t>>>24):W(this,t,u,!0),u+4},i.prototype.writeInt32BE=function(t,u,v){return t=+t,u=u>>>0,v||F(this,t,u,4,2147483647,-2147483648),t<0&&(t=4294967295+t+1),i.TYPED_ARRAY_SUPPORT?(this[u]=t>>>24,this[u+1]=t>>>16,this[u+2]=t>>>8,this[u+3]=t):W(this,t,u,!1),u+4};function $(t,u,v,B,P,Y){if(u>P||u<Y)throw new TypeError("value is out of bounds");if(v+B>t.length)throw new TypeError("index out of range")}function J(t,u,v,B,P){return P||$(t,u,v,4,34028234663852886e22,-34028234663852886e22),o.write(t,u,v,B,23,4),v+4}i.prototype.writeFloatLE=function(t,u,v){return J(this,t,u,!0,v)},i.prototype.writeFloatBE=function(t,u,v){return J(this,t,u,!1,v)};function j(t,u,v,B,P){return P||$(t,u,v,8,17976931348623157e292,-17976931348623157e292),o.write(t,u,v,B,52,8),v+8}i.prototype.writeDoubleLE=function(t,u,v){return j(this,t,u,!0,v)},i.prototype.writeDoubleBE=function(t,u,v){return j(this,t,u,!1,v)},i.prototype.copy=function(t,u,v,B){var P=this;if(v||(v=0),!B&&B!==0&&(B=this.length),u||(u=0),B!==v&&!(t.length===0||P.length===0)){if(B<v)throw new TypeError("sourceEnd < sourceStart");if(u<0||u>=t.length)throw new TypeError("targetStart out of bounds");if(v<0||v>=P.length)throw new TypeError("sourceStart out of bounds");if(B<0||B>P.length)throw new TypeError("sourceEnd out of bounds");B>this.length&&(B=this.length),t.length-u<B-v&&(B=t.length-u+v);var Y=B-v;if(Y<1e3||!i.TYPED_ARRAY_SUPPORT)for(var K=0;K<Y;K++)t[K+u]=this[K+v];else t._set(this.subarray(v,v+Y),u)}},i.prototype.fill=function(t,u,v){if(t||(t=0),u||(u=0),v||(v=this.length),v<u)throw new TypeError("end < start");if(v!==u&&this.length!==0){if(u<0||u>=this.length)throw new TypeError("start out of bounds");if(v<0||v>this.length)throw new TypeError("end out of bounds");var B;if(typeof t=="number")for(B=u;B<v;B++)this[B]=t;else{var P=G(t.toString()),Y=P.length;for(B=u;B<v;B++)this[B]=P[B%Y]}return this}},i.prototype.toArrayBuffer=function(){if(typeof Uint8Array<"u"){if(i.TYPED_ARRAY_SUPPORT)return new i(this).buffer;for(var t=new Uint8Array(this.length),u=0,v=t.length;u<v;u+=1)t[u]=this[u];return t.buffer}else throw new TypeError("Buffer.toArrayBuffer not supported in this browser")};var Z=i.prototype;i._augment=function(t){return t.constructor=i,t._isBuffer=!0,t._get=t.get,t._set=t.set,t.get=Z.get,t.set=Z.set,t.write=Z.write,t.toString=Z.toString,t.toLocaleString=Z.toString,t.toJSON=Z.toJSON,t.equals=Z.equals,t.compare=Z.compare,t.copy=Z.copy,t.slice=Z.slice,t.readUInt8=Z.readUInt8,t.readUInt16LE=Z.readUInt16LE,t.readUInt16BE=Z.readUInt16BE,t.readUInt32LE=Z.readUInt32LE,t.readUInt32BE=Z.readUInt32BE,t.readInt8=Z.readInt8,t.readInt16LE=Z.readInt16LE,t.readInt16BE=Z.readInt16BE,t.readInt32LE=Z.readInt32LE,t.readInt32BE=Z.readInt32BE,t.readFloatLE=Z.readFloatLE,t.readFloatBE=Z.readFloatBE,t.readDoubleLE=Z.readDoubleLE,t.readDoubleBE=Z.readDoubleBE,t.writeUInt8=Z.writeUInt8,t.writeUInt16LE=Z.writeUInt16LE,t.writeUInt16BE=Z.writeUInt16BE,t.writeUInt32LE=Z.writeUInt32LE,t.writeUInt32BE=Z.writeUInt32BE,t.writeInt8=Z.writeInt8,t.writeInt16LE=Z.writeInt16LE,t.writeInt16BE=Z.writeInt16BE,t.writeInt32LE=Z.writeInt32LE,t.writeInt32BE=Z.writeInt32BE,t.writeFloatLE=Z.writeFloatLE,t.writeFloatBE=Z.writeFloatBE,t.writeDoubleLE=Z.writeDoubleLE,t.writeDoubleBE=Z.writeDoubleBE,t.fill=Z.fill,t.inspect=Z.inspect,t.toArrayBuffer=Z.toArrayBuffer,t};var ee=/[^+\/0-9A-z]/g;function ne(t){for(t=S(t).replace(ee,"");t.length%4!==0;)t=t+"=";return t}function S(t){return t.trim?t.trim():t.replace(/^\s+|\s+$/g,"")}function C(t){return c(t)||i.isBuffer(t)||t&&typeof t=="object"&&typeof t.length=="number"}function R(t){return t<16?"0"+t.toString(16):t.toString(16)}function G(t){for(var u=[],v=0;v<t.length;v++){var B=t.charCodeAt(v);if(B<=127)u.push(B);else{var P=v;B>=55296&&B<=57343&&v++;for(var Y=encodeURIComponent(t.slice(P,v+1)).substr(1).split("%"),K=0;K<Y.length;K++)u.push(parseInt(Y[K],16))}}return u}function q(t){for(var u=[],v=0;v<t.length;v++)u.push(t.charCodeAt(v)&255);return u}function se(t){for(var u,v,B,P=[],Y=0;Y<t.length;Y++)u=t.charCodeAt(Y),v=u>>8,B=u%256,P.push(B),P.push(v);return P}function ae(t){return p.toByteArray(t)}function pe(t,u,v,B,P){P&&(B-=B%P);for(var Y=0;Y<B&&!(Y+v>=u.length||Y>=t.length);Y++)u[Y+v]=t[Y];return Y}function de(t){try{return decodeURIComponent(t)}catch{return"�"}}},{"base64-js":2,ieee754:3,"is-array":4}],2:[function(b,I,y){var p="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/";(function(o){var c=typeof Uint8Array<"u"?Uint8Array:Array,h=43,i=47,d=48,_=97,m=65;function r(g){var w=g.charCodeAt(0);if(w===h)return 62;if(w===i)return 63;if(w<d)return-1;if(w<d+10)return w-d+26+26;if(w<m+26)return w-m;if(w<_+26)return w-_+26}function s(g){var w,x,D,V,L,A;if(g.length%4>0)throw new Error("Invalid string. Length must be a multiple of 4");var F=g.length;L=g.charAt(F-2)==="="?2:g.charAt(F-1)==="="?1:0,A=new c(g.length*3/4-L),D=L>0?g.length-4:g.length;var N=0;function W($){A[N++]=$}for(w=0,x=0;w<D;w+=4,x+=3)V=r(g.charAt(w))<<18|r(g.charAt(w+1))<<12|r(g.charAt(w+2))<<6|r(g.charAt(w+3)),W((V&16711680)>>16),W((V&65280)>>8),W(V&255);return L===2?(V=r(g.charAt(w))<<2|r(g.charAt(w+1))>>4,W(V&255)):L===1&&(V=r(g.charAt(w))<<10|r(g.charAt(w+1))<<4|r(g.charAt(w+2))>>2,W(V>>8&255),W(V&255)),A}function l(g){var w,x=g.length%3,D="",V,L;function A(N){return p.charAt(N)}function F(N){return A(N>>18&63)+A(N>>12&63)+A(N>>6&63)+A(N&63)}for(w=0,L=g.length-x;w<L;w+=3)V=(g[w]<<16)+(g[w+1]<<8)+g[w+2],D+=F(V);switch(x){case 1:V=g[g.length-1],D+=A(V>>2),D+=A(V<<4&63),D+="==";break;case 2:V=(g[g.length-2]<<8)+g[g.length-1],D+=A(V>>10),D+=A(V>>4&63),D+=A(V<<2&63),D+="=";break}return D}o.toByteArray=s,o.fromByteArray=l})(typeof y>"u"?this.base64js={}:y)},{}],3:[function(b,I,y){y.read=function(p,o,c,h,i){var d,_,m=i*8-h-1,r=(1<<m)-1,s=r>>1,l=-7,g=c?i-1:0,w=c?-1:1,x=p[o+g];for(g+=w,d=x&(1<<-l)-1,x>>=-l,l+=m;l>0;d=d*256+p[o+g],g+=w,l-=8);for(_=d&(1<<-l)-1,d>>=-l,l+=h;l>0;_=_*256+p[o+g],g+=w,l-=8);if(d===0)d=1-s;else{if(d===r)return _?NaN:(x?-1:1)*(1/0);_=_+Math.pow(2,h),d=d-s}return(x?-1:1)*_*Math.pow(2,d-h)},y.write=function(p,o,c,h,i,d){var _,m,r,s=d*8-i-1,l=(1<<s)-1,g=l>>1,w=i===23?Math.pow(2,-24)-Math.pow(2,-77):0,x=h?0:d-1,D=h?1:-1,V=o<0||o===0&&1/o<0?1:0;for(o=Math.abs(o),isNaN(o)||o===1/0?(m=isNaN(o)?1:0,_=l):(_=Math.floor(Math.log(o)/Math.LN2),o*(r=Math.pow(2,-_))<1&&(_--,r*=2),_+g>=1?o+=w/r:o+=w*Math.pow(2,1-g),o*r>=2&&(_++,r/=2),_+g>=l?(m=0,_=l):_+g>=1?(m=(o*r-1)*Math.pow(2,i),_=_+g):(m=o*Math.pow(2,g-1)*Math.pow(2,i),_=0));i>=8;p[c+x]=m&255,x+=D,m/=256,i-=8);for(_=_<<i|m,s+=i;s>0;p[c+x]=_&255,x+=D,_/=256,s-=8);p[c+x-D]|=V*128}},{}],4:[function(b,I,y){var p=Array.isArray,o=Object.prototype.toString;I.exports=p||function(c){return!!c&&o.call(c)=="[object Array]"}},{}],5:[function(b,I,y){var p=b("./dataReader");function o(c){if(c){this.data=c,this.length=this.data.length,this.index=0,this.zero=0;for(var h=0;h<this.data.length;h++)c[h]=c[h]&255}}o.prototype=new p,o.prototype.byteAt=function(c){return this.data[this.zero+c]},o.prototype.lastIndexOfSignature=function(c){for(var h=c.charCodeAt(0),i=c.charCodeAt(1),d=c.charCodeAt(2),_=c.charCodeAt(3),m=this.length-4;m>=0;--m)if(this.data[m]===h&&this.data[m+1]===i&&this.data[m+2]===d&&this.data[m+3]===_)return m-this.zero;return-1},o.prototype.readData=function(c){if(this.checkOffset(c),c===0)return[];var h=this.data.slice(this.zero+this.index,this.zero+this.index+c);return this.index+=c,h},I.exports=o},{"./dataReader":10}],6:[function(b,I,y){var p="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=";y.encode=function(o,c){for(var h="",i,d,_,m,r,s,l,g=0;g<o.length;)i=o.charCodeAt(g++),d=o.charCodeAt(g++),_=o.charCodeAt(g++),m=i>>2,r=(i&3)<<4|d>>4,s=(d&15)<<2|_>>6,l=_&63,isNaN(d)?s=l=64:isNaN(_)&&(l=64),h=h+p.charAt(m)+p.charAt(r)+p.charAt(s)+p.charAt(l);return h},y.decode=function(o,c){var h="",i,d,_,m,r,s,l,g=0;for(o=o.replace(/[^A-Za-z0-9\+\/\=]/g,"");g<o.length;)m=p.indexOf(o.charAt(g++)),r=p.indexOf(o.charAt(g++)),s=p.indexOf(o.charAt(g++)),l=p.indexOf(o.charAt(g++)),i=m<<2|r>>4,d=(r&15)<<4|s>>2,_=(s&3)<<6|l,h=h+String.fromCharCode(i),s!=64&&(h=h+String.fromCharCode(d)),l!=64&&(h=h+String.fromCharCode(_));return h}},{}],7:[function(b,I,y){function p(){this.compressedSize=0,this.uncompressedSize=0,this.crc32=0,this.compressionMethod=null,this.compressedContent=null}p.prototype={getContent:function(){return null},getCompressedContent:function(){return null}},I.exports=p},{}],8:[function(b,I,y){y.STORE={magic:"\0\0",compress:function(p,o){return p},uncompress:function(p){return p},compressInputType:null,uncompressInputType:null},y.DEFLATE=b("./flate")},{"./flate":13}],9:[function(b,I,y){var p=b("./utils"),o=[0,1996959894,3993919788,2567524794,124634137,1886057615,3915621685,2657392035,249268274,2044508324,3772115230,2547177864,162941995,2125561021,3887607047,2428444049,498536548,1789927666,4089016648,2227061214,450548861,1843258603,4107580753,2211677639,325883990,1684777152,4251122042,2321926636,335633487,1661365465,4195302755,2366115317,997073096,1281953886,3579855332,2724688242,1006888145,1258607687,3524101629,2768942443,901097722,1119000684,3686517206,2898065728,853044451,1172266101,3705015759,2882616665,651767980,1373503546,3369554304,3218104598,565507253,1454621731,3485111705,3099436303,671266974,1594198024,3322730930,2970347812,795835527,1483230225,3244367275,3060149565,1994146192,31158534,2563907772,4023717930,1907459465,112637215,2680153253,3904427059,2013776290,251722036,2517215374,3775830040,2137656763,141376813,2439277719,3865271297,1802195444,476864866,2238001368,4066508878,1812370925,453092731,2181625025,4111451223,1706088902,314042704,2344532202,4240017532,1658658271,366619977,2362670323,4224994405,1303535960,984961486,2747007092,3569037538,1256170817,1037604311,2765210733,3554079995,1131014506,879679996,2909243462,3663771856,1141124467,855842277,2852801631,3708648649,1342533948,654459306,3188396048,3373015174,1466479909,544179635,3110523913,3462522015,1591671054,702138776,2966460450,3352799412,1504918807,783551873,3082640443,3233442989,3988292384,2596254646,62317068,1957810842,3939845945,2647816111,81470997,1943803523,3814918930,2489596804,225274430,2053790376,3826175755,2466906013,167816743,2097651377,4027552580,2265490386,503444072,1762050814,4150417245,2154129355,426522225,1852507879,4275313526,2312317920,282753626,1742555852,4189708143,2394877945,397917763,1622183637,3604390888,2714866558,953729732,1340076626,3518719985,2797360999,1068828381,1219638859,3624741850,2936675148,906185462,1090812512,3747672003,2825379669,829329135,1181335161,3412177804,3160834842,628085408,1382605366,3423369109,3138078467,570562233,1426400815,3317316542,2998733608,733239954,1555261956,3268935591,3050360625,752459403,1541320221,2607071920,3965973030,1969922972,40735498,2617837225,3943577151,1913087877,83908371,2512341634,3803740692,2075208622,213261112,2463272603,3855990285,2094854071,198958881,2262029012,4057260610,1759359992,534414190,2176718541,4139329115,1873836001,414664567,2282248934,4279200368,1711684554,285281116,2405801727,4167216745,1634467795,376229701,2685067896,3608007406,1308918612,956543938,2808555105,3495958263,1231636301,1047427035,2932959818,3654703836,1088359270,936918e3,2847714899,3736837829,1202900863,817233897,3183342108,3401237130,1404277552,615818150,3134207493,3453421203,1423857449,601450431,3009837614,3294710456,1567103746,711928724,3020668471,3272380065,1510334235,755167117];I.exports=function(h,i){if(typeof h>"u"||!h.length)return 0;var d=p.getTypeOf(h)!=="string";typeof i>"u"&&(i=0);var _=0,m=0,r=0;i=i^-1;for(var s=0,l=h.length;s<l;s++)r=d?h[s]:h.charCodeAt(s),m=(i^r)&255,_=o[m],i=i>>>8^_;return i^-1}},{"./utils":26}],10:[function(b,I,y){var p=b("./utils");function o(c){this.data=null,this.length=0,this.index=0,this.zero=0}o.prototype={checkOffset:function(c){this.checkIndex(this.index+c)},checkIndex:function(c){if(this.length<this.zero+c||c<0)throw new Error("End of data reached (data length = "+this.length+", asked index = "+c+"). Corrupted zip ?")},setIndex:function(c){this.checkIndex(c),this.index=c},skip:function(c){this.setIndex(this.index+c)},byteAt:function(c){},readInt:function(c){var h=0,i;for(this.checkOffset(c),i=this.index+c-1;i>=this.index;i--)h=(h<<8)+this.byteAt(i);return this.index+=c,h},readString:function(c){return p.transformTo("string",this.readData(c))},readData:function(c){},lastIndexOfSignature:function(c){},readDate:function(){var c=this.readInt(4);return new Date((c>>25&127)+1980,(c>>21&15)-1,c>>16&31,c>>11&31,c>>5&63,(c&31)<<1)}},I.exports=o},{"./utils":26}],11:[function(b,I,y){y.base64=!1,y.binary=!1,y.dir=!1,y.createFolders=!1,y.date=null,y.compression=null,y.compressionOptions=null,y.comment=null,y.unixPermissions=null,y.dosPermissions=null},{}],12:[function(b,I,y){var p=b("./utils");y.string2binary=function(o){return p.string2binary(o)},y.string2Uint8Array=function(o){return p.transformTo("uint8array",o)},y.uint8Array2String=function(o){return p.transformTo("string",o)},y.string2Blob=function(o){var c=p.transformTo("arraybuffer",o);return p.arrayBuffer2Blob(c)},y.arrayBuffer2Blob=function(o){return p.arrayBuffer2Blob(o)},y.transformTo=function(o,c){return p.transformTo(o,c)},y.getTypeOf=function(o){return p.getTypeOf(o)},y.checkSupport=function(o){return p.checkSupport(o)},y.MAX_VALUE_16BITS=p.MAX_VALUE_16BITS,y.MAX_VALUE_32BITS=p.MAX_VALUE_32BITS,y.pretty=function(o){return p.pretty(o)},y.findCompression=function(o){return p.findCompression(o)},y.isRegExp=function(o){return p.isRegExp(o)}},{"./utils":26}],13:[function(b,I,y){var p=typeof Uint8Array<"u"&&typeof Uint16Array<"u"&&typeof Uint32Array<"u",o=b("pako");y.uncompressInputType=p?"uint8array":"array",y.compressInputType=p?"uint8array":"array",y.magic="\b\0",y.compress=function(c,h){return o.deflateRaw(c,{level:h.level||-1})},y.uncompress=function(c){return o.inflateRaw(c)}},{pako:29}],14:[function(b,I,y){var p=b("./base64");function o(c,h){if(!(this instanceof o))return new o(c,h);this.files={},this.comment=null,this.root="",c&&this.load(c,h),this.clone=function(){var i=new o;for(var d in this)typeof this[d]!="function"&&(i[d]=this[d]);return i}}o.prototype=b("./object"),o.prototype.load=b("./load"),o.support=b("./support"),o.defaults=b("./defaults"),o.utils=b("./deprecatedPublicUtils"),o.base64={encode:function(c){return p.encode(c)},decode:function(c){return p.decode(c)}},o.compressions=b("./compressions"),I.exports=o},{"./base64":6,"./compressions":8,"./defaults":11,"./deprecatedPublicUtils":12,"./load":15,"./object":18,"./support":22}],15:[function(b,I,y){var p=b("./base64"),o=b("./utf8"),c=b("./utils"),h=b("./zipEntries");I.exports=function(i,d){var _,m,r,s;for(d=c.extend(d||{},{base64:!1,checkCRC32:!1,optimizedBinaryString:!1,createFolders:!1,decodeFileName:o.utf8decode}),d.base64&&(i=p.decode(i)),m=new h(i,d),_=m.files,r=0;r<_.length;r++)s=_[r],this.file(s.fileNameStr,s.decompressed,{binary:!0,optimizedBinaryString:!0,date:s.date,dir:s.dir,comment:s.fileCommentStr.length?s.fileCommentStr:null,unixPermissions:s.unixPermissions,dosPermissions:s.dosPermissions,createFolders:d.createFolders});return m.zipComment.length&&(this.comment=m.zipComment),this}},{"./base64":6,"./utf8":25,"./utils":26,"./zipEntries":27}],16:[function(b,I,y){(function(p){I.exports=function(o,c){return new p(o,c)},I.exports.test=function(o){return p.isBuffer(o)}}).call(this,b("buffer").Buffer)},{buffer:1}],17:[function(b,I,y){var p=b("./uint8ArrayReader");function o(c){this.data=c,this.length=this.data.length,this.index=0,this.zero=0}o.prototype=new p,o.prototype.readData=function(c){this.checkOffset(c);var h=this.data.slice(this.zero+this.index,this.zero+this.index+c);return this.index+=c,h},I.exports=o},{"./uint8ArrayReader":23}],18:[function(b,I,y){var p=b("./support"),o=b("./utils"),c=b("./crc32"),h=b("./signature"),i=b("./defaults"),d=b("./base64"),_=b("./compressions"),m=b("./compressedObject"),r=b("./nodeBuffer"),s=b("./utf8"),l=b("./stringWriter"),g=b("./uint8ArrayWriter"),w=function(S){if(S._data instanceof m&&(S._data=S._data.getContent(),S.options.binary=!0,S.options.base64=!1,o.getTypeOf(S._data)==="uint8array")){var C=S._data;S._data=new Uint8Array(C.length),C.length!==0&&S._data.set(C,0)}return S._data},x=function(S){var C=w(S),R=o.getTypeOf(C);return R==="string"?!S.options.binary&&p.nodebuffer?r(C,"utf-8"):S.asBinary():C},D=function(S){var C=w(this);return C===null||typeof C>"u"?"":(this.options.base64&&(C=d.decode(C)),S&&this.options.binary?C=ne.utf8decode(C):C=o.transformTo("string",C),!S&&!this.options.binary&&(C=o.transformTo("string",ne.utf8encode(C))),C)},V=function(S,C,R){this.name=S,this.dir=R.dir,this.date=R.date,this.comment=R.comment,this.unixPermissions=R.unixPermissions,this.dosPermissions=R.dosPermissions,this._data=C,this.options=R,this._initialMetadata={dir:R.dir,date:R.date}};V.prototype={asText:function(){return D.call(this,!0)},asBinary:function(){return D.call(this,!1)},asNodeBuffer:function(){var S=x(this);return o.transformTo("nodebuffer",S)},asUint8Array:function(){var S=x(this);return o.transformTo("uint8array",S)},asArrayBuffer:function(){return this.asUint8Array().buffer}};var L=function(S,C){var R="",G;for(G=0;G<C;G++)R+=String.fromCharCode(S&255),S=S>>>8;return R},A=function(S){return S=S||{},S.base64===!0&&(S.binary===null||S.binary===void 0)&&(S.binary=!0),S=o.extend(S,i),S.date=S.date||new Date,S.compression!==null&&(S.compression=S.compression.toUpperCase()),S},F=function(S,C,R){var G=o.getTypeOf(C),q;if(R=A(R),typeof R.unixPermissions=="string"&&(R.unixPermissions=parseInt(R.unixPermissions,8)),R.unixPermissions&&R.unixPermissions&16384&&(R.dir=!0),R.dosPermissions&&R.dosPermissions&16&&(R.dir=!0),R.dir&&(S=W(S)),R.createFolders&&(q=N(S))&&$.call(this,q,!0),R.dir||C===null||typeof C>"u")R.base64=!1,R.binary=!1,C=null,G=null;else if(G==="string")R.binary&&!R.base64&&R.optimizedBinaryString!==!0&&(C=o.string2binary(C));else{if(R.base64=!1,R.binary=!0,!G&&!(C instanceof m))throw new Error("The data of '"+S+"' is in an unsupported format !");G==="arraybuffer"&&(C=o.transformTo("uint8array",C))}var se=new V(S,C,R);return this.files[S]=se,se},N=function(S){S.slice(-1)=="/"&&(S=S.substring(0,S.length-1));var C=S.lastIndexOf("/");return C>0?S.substring(0,C):""},W=function(S){return S.slice(-1)!="/"&&(S+="/"),S},$=function(S,C){return C=typeof C<"u"?C:!1,S=W(S),this.files[S]||F.call(this,S,null,{dir:!0,createFolders:C}),this.files[S]},J=function(S,C,R){var G=new m,q;return S._data instanceof m?(G.uncompressedSize=S._data.uncompressedSize,G.crc32=S._data.crc32,G.uncompressedSize===0||S.dir?(C=_.STORE,G.compressedContent="",G.crc32=0):S._data.compressionMethod===C.magic?G.compressedContent=S._data.getCompressedContent():(q=S._data.getContent(),G.compressedContent=C.compress(o.transformTo(C.compressInputType,q),R))):(q=x(S),(!q||q.length===0||S.dir)&&(C=_.STORE,q=""),G.uncompressedSize=q.length,G.crc32=c(q),G.compressedContent=C.compress(o.transformTo(C.compressInputType,q),R)),G.compressedSize=G.compressedContent.length,G.compressionMethod=C.magic,G},j=function(S,C){var R=S;return S||(R=C?16893:33204),(R&65535)<<16},Z=function(S,C){return(S||0)&63},ee=function(S,C,R,G,q,se){R.compressedContent;var ae=se!==s.utf8encode,pe=o.transformTo("string",se(C.name)),de=o.transformTo("string",s.utf8encode(C.name)),t=C.comment||"",u=o.transformTo("string",se(t)),v=o.transformTo("string",s.utf8encode(t)),B=de.length!==C.name.length,P=v.length!==t.length,Y=C.options,K,le,ue="",be="",ke="",Se,fe;C._initialMetadata.dir!==C.dir?Se=C.dir:Se=Y.dir,C._initialMetadata.date!==C.date?fe=C.date:fe=Y.date;var Ee=0,De=0;Se&&(Ee|=16),q==="UNIX"?(De=798,Ee|=j(C.unixPermissions,Se)):(De=20,Ee|=Z(C.dosPermissions)),K=fe.getHours(),K=K<<6,K=K|fe.getMinutes(),K=K<<5,K=K|fe.getSeconds()/2,le=fe.getFullYear()-1980,le=le<<4,le=le|fe.getMonth()+1,le=le<<5,le=le|fe.getDate(),B&&(be=L(1,1)+L(c(pe),4)+de,ue+="up"+L(be.length,2)+be),P&&(ke=L(1,1)+L(this.crc32(u),4)+v,ue+="uc"+L(ke.length,2)+ke);var ve="";ve+=`
2
+ \0`,ve+=!ae&&(B||P)?"\0\b":"\0\0",ve+=R.compressionMethod,ve+=L(K,2),ve+=L(le,2),ve+=L(R.crc32,4),ve+=L(R.compressedSize,4),ve+=L(R.uncompressedSize,4),ve+=L(pe.length,2),ve+=L(ue.length,2);var Re=h.LOCAL_FILE_HEADER+ve+pe+ue,me=h.CENTRAL_FILE_HEADER+L(De,2)+ve+L(u.length,2)+"\0\0\0\0"+L(Ee,4)+L(G,4)+pe+ue+u;return{fileRecord:Re,dirRecord:me,compressedObject:R}},ne={load:function(S,C){throw new Error("Load method is not defined. Is the file jszip-load.js included ?")},filter:function(S){var C=[],R,G,q,se;for(R in this.files)this.files.hasOwnProperty(R)&&(q=this.files[R],se=new V(q.name,q._data,o.extend(q.options)),G=R.slice(this.root.length,R.length),R.slice(0,this.root.length)===this.root&&S(G,se)&&C.push(se));return C},file:function(S,C,R){if(arguments.length===1)if(o.isRegExp(S)){var G=S;return this.filter(function(q,se){return!se.dir&&G.test(q)})}else return this.filter(function(q,se){return!se.dir&&q===S})[0]||null;else S=this.root+S,F.call(this,S,C,R);return this},folder:function(S){if(!S)return this;if(o.isRegExp(S))return this.filter(function(q,se){return se.dir&&S.test(q)});var C=this.root+S,R=$.call(this,C),G=this.clone();return G.root=R.name,G},remove:function(S){S=this.root+S;var C=this.files[S];if(C||(S.slice(-1)!="/"&&(S+="/"),C=this.files[S]),C&&!C.dir)delete this.files[S];else for(var R=this.filter(function(q,se){return se.name.slice(0,S.length)===S}),G=0;G<R.length;G++)delete this.files[R[G].name];return this},generate:function(S){S=o.extend(S||{},{base64:!0,compression:"STORE",compressionOptions:null,type:"base64",platform:"DOS",comment:null,mimeType:"application/zip",encodeFileName:s.utf8encode}),o.checkSupport(S.type),(S.platform==="darwin"||S.platform==="freebsd"||S.platform==="linux"||S.platform==="sunos")&&(S.platform="UNIX"),S.platform==="win32"&&(S.platform="DOS");var C=[],R=0,G=0,q,se,ae=o.transformTo("string",S.encodeFileName(S.comment||this.comment||""));for(var pe in this.files)if(this.files.hasOwnProperty(pe)){var de=this.files[pe],t=de.options.compression||S.compression.toUpperCase(),u=_[t];if(!u)throw new Error(t+" is not a valid compression method !");var v=de.options.compressionOptions||S.compressionOptions||{},B=J.call(this,de,u,v),P=ee.call(this,pe,de,B,R,S.platform,S.encodeFileName);R+=P.fileRecord.length+B.compressedSize,G+=P.dirRecord.length,C.push(P)}var Y="";Y=h.CENTRAL_DIRECTORY_END+"\0\0\0\0"+L(C.length,2)+L(C.length,2)+L(G,4)+L(R,4)+L(ae.length,2)+ae;var K=S.type.toLowerCase();for(K==="uint8array"||K==="arraybuffer"||K==="blob"||K==="nodebuffer"?q=new g(R+G+Y.length):q=new l(R+G+Y.length),se=0;se<C.length;se++)q.append(C[se].fileRecord),q.append(C[se].compressedObject.compressedContent);for(se=0;se<C.length;se++)q.append(C[se].dirRecord);q.append(Y);var le=q.finalize();switch(S.type.toLowerCase()){case"uint8array":case"arraybuffer":case"nodebuffer":return o.transformTo(S.type.toLowerCase(),le);case"blob":return o.arrayBuffer2Blob(o.transformTo("arraybuffer",le),S.mimeType);case"base64":return S.base64?d.encode(le):le;default:return le}},crc32:function(S,C){return c(S,C)},utf8encode:function(S){return o.transformTo("string",s.utf8encode(S))},utf8decode:function(S){return s.utf8decode(S)}};I.exports=ne},{"./base64":6,"./compressedObject":7,"./compressions":8,"./crc32":9,"./defaults":11,"./nodeBuffer":16,"./signature":19,"./stringWriter":21,"./support":22,"./uint8ArrayWriter":24,"./utf8":25,"./utils":26}],19:[function(b,I,y){y.LOCAL_FILE_HEADER="PK",y.CENTRAL_FILE_HEADER="PK",y.CENTRAL_DIRECTORY_END="PK",y.ZIP64_CENTRAL_DIRECTORY_LOCATOR="PK\x07",y.ZIP64_CENTRAL_DIRECTORY_END="PK",y.DATA_DESCRIPTOR="PK\x07\b"},{}],20:[function(b,I,y){var p=b("./dataReader"),o=b("./utils");function c(h,i){this.data=h,i||(this.data=o.string2binary(this.data)),this.length=this.data.length,this.index=0,this.zero=0}c.prototype=new p,c.prototype.byteAt=function(h){return this.data.charCodeAt(this.zero+h)},c.prototype.lastIndexOfSignature=function(h){return this.data.lastIndexOf(h)-this.zero},c.prototype.readData=function(h){this.checkOffset(h);var i=this.data.slice(this.zero+this.index,this.zero+this.index+h);return this.index+=h,i},I.exports=c},{"./dataReader":10,"./utils":26}],21:[function(b,I,y){var p=b("./utils"),o=function(){this.data=[]};o.prototype={append:function(c){c=p.transformTo("string",c),this.data.push(c)},finalize:function(){return this.data.join("")}},I.exports=o},{"./utils":26}],22:[function(b,I,y){(function(p){if(y.base64=!0,y.array=!0,y.string=!0,y.arraybuffer=typeof ArrayBuffer<"u"&&typeof Uint8Array<"u",y.nodebuffer=typeof p<"u",y.uint8array=typeof Uint8Array<"u",typeof ArrayBuffer>"u")y.blob=!1;else{var o=new ArrayBuffer(0);try{y.blob=new Blob([o],{type:"application/zip"}).size===0}catch{try{var c=window.BlobBuilder||window.WebKitBlobBuilder||window.MozBlobBuilder||window.MSBlobBuilder,h=new c;h.append(o),y.blob=h.getBlob("application/zip").size===0}catch{y.blob=!1}}}}).call(this,b("buffer").Buffer)},{buffer:1}],23:[function(b,I,y){var p=b("./arrayReader");function o(c){c&&(this.data=c,this.length=this.data.length,this.index=0,this.zero=0)}o.prototype=new p,o.prototype.readData=function(c){if(this.checkOffset(c),c===0)return new Uint8Array(0);var h=this.data.subarray(this.zero+this.index,this.zero+this.index+c);return this.index+=c,h},I.exports=o},{"./arrayReader":5}],24:[function(b,I,y){var p=b("./utils"),o=function(c){this.data=new Uint8Array(c),this.index=0};o.prototype={append:function(c){c.length!==0&&(c=p.transformTo("uint8array",c),this.data.set(c,this.index),this.index+=c.length)},finalize:function(){return this.data}},I.exports=o},{"./utils":26}],25:[function(b,I,y){for(var p=b("./utils"),o=b("./support"),c=b("./nodeBuffer"),h=new Array(256),i=0;i<256;i++)h[i]=i>=252?6:i>=248?5:i>=240?4:i>=224?3:i>=192?2:1;h[254]=h[254]=1;var d=function(r){var s,l,g,w,x,D=r.length,V=0;for(w=0;w<D;w++)l=r.charCodeAt(w),(l&64512)===55296&&w+1<D&&(g=r.charCodeAt(w+1),(g&64512)===56320&&(l=65536+(l-55296<<10)+(g-56320),w++)),V+=l<128?1:l<2048?2:l<65536?3:4;for(o.uint8array?s=new Uint8Array(V):s=new Array(V),x=0,w=0;x<V;w++)l=r.charCodeAt(w),(l&64512)===55296&&w+1<D&&(g=r.charCodeAt(w+1),(g&64512)===56320&&(l=65536+(l-55296<<10)+(g-56320),w++)),l<128?s[x++]=l:l<2048?(s[x++]=192|l>>>6,s[x++]=128|l&63):l<65536?(s[x++]=224|l>>>12,s[x++]=128|l>>>6&63,s[x++]=128|l&63):(s[x++]=240|l>>>18,s[x++]=128|l>>>12&63,s[x++]=128|l>>>6&63,s[x++]=128|l&63);return s},_=function(r,s){var l;for(s=s||r.length,s>r.length&&(s=r.length),l=s-1;l>=0&&(r[l]&192)===128;)l--;return l<0||l===0?s:l+h[r[l]]>s?l:s},m=function(r){var s,l,g,w,x=r.length,D=new Array(x*2);for(l=0,s=0;s<x;){if(g=r[s++],g<128){D[l++]=g;continue}if(w=h[g],w>4){D[l++]=65533,s+=w-1;continue}for(g&=w===2?31:w===3?15:7;w>1&&s<x;)g=g<<6|r[s++]&63,w--;if(w>1){D[l++]=65533;continue}g<65536?D[l++]=g:(g-=65536,D[l++]=55296|g>>10&1023,D[l++]=56320|g&1023)}return D.length!==l&&(D.subarray?D=D.subarray(0,l):D.length=l),p.applyFromCharCode(D)};y.utf8encode=function(s){return o.nodebuffer?c(s,"utf-8"):d(s)},y.utf8decode=function(s){if(o.nodebuffer)return p.transformTo("nodebuffer",s).toString("utf-8");s=p.transformTo(o.uint8array?"uint8array":"array",s);for(var l=[],g=0,w=s.length,x=65536;g<w;){var D=_(s,Math.min(g+x,w));o.uint8array?l.push(m(s.subarray(g,D))):l.push(m(s.slice(g,D))),g=D}return l.join("")}},{"./nodeBuffer":16,"./support":22,"./utils":26}],26:[function(b,I,y){var p=b("./support"),o=b("./compressions"),c=b("./nodeBuffer");y.string2binary=function(r){for(var s="",l=0;l<r.length;l++)s+=String.fromCharCode(r.charCodeAt(l)&255);return s},y.arrayBuffer2Blob=function(r,s){y.checkSupport("blob"),s=s||"application/zip";try{return new Blob([r],{type:s})}catch{try{var l=window.BlobBuilder||window.WebKitBlobBuilder||window.MozBlobBuilder||window.MSBlobBuilder,g=new l;return g.append(r),g.getBlob(s)}catch{throw new Error("Bug : can't construct the Blob.")}}};function h(r){return r}function i(r,s){for(var l=0;l<r.length;++l)s[l]=r.charCodeAt(l)&255;return s}function d(r){var s=65536,l=[],g=r.length,w=y.getTypeOf(r),x=0,D=!0;try{switch(w){case"uint8array":String.fromCharCode.apply(null,new Uint8Array(0));break;case"nodebuffer":String.fromCharCode.apply(null,c(0));break}}catch{D=!1}if(!D){for(var V="",L=0;L<r.length;L++)V+=String.fromCharCode(r[L]);return V}for(;x<g&&s>1;)try{w==="array"||w==="nodebuffer"?l.push(String.fromCharCode.apply(null,r.slice(x,Math.min(x+s,g)))):l.push(String.fromCharCode.apply(null,r.subarray(x,Math.min(x+s,g)))),x+=s}catch{s=Math.floor(s/2)}return l.join("")}y.applyFromCharCode=d;function _(r,s){for(var l=0;l<r.length;l++)s[l]=r[l];return s}var m={};m.string={string:h,array:function(r){return i(r,new Array(r.length))},arraybuffer:function(r){return m.string.uint8array(r).buffer},uint8array:function(r){return i(r,new Uint8Array(r.length))},nodebuffer:function(r){return i(r,c(r.length))}},m.array={string:d,array:h,arraybuffer:function(r){return new Uint8Array(r).buffer},uint8array:function(r){return new Uint8Array(r)},nodebuffer:function(r){return c(r)}},m.arraybuffer={string:function(r){return d(new Uint8Array(r))},array:function(r){return _(new Uint8Array(r),new Array(r.byteLength))},arraybuffer:h,uint8array:function(r){return new Uint8Array(r)},nodebuffer:function(r){return c(new Uint8Array(r))}},m.uint8array={string:d,array:function(r){return _(r,new Array(r.length))},arraybuffer:function(r){return r.buffer},uint8array:h,nodebuffer:function(r){return c(r)}},m.nodebuffer={string:d,array:function(r){return _(r,new Array(r.length))},arraybuffer:function(r){return m.nodebuffer.uint8array(r).buffer},uint8array:function(r){return _(r,new Uint8Array(r.length))},nodebuffer:h},y.transformTo=function(r,s){if(s||(s=""),!r)return s;y.checkSupport(r);var l=y.getTypeOf(s),g=m[l][r](s);return g},y.getTypeOf=function(r){if(typeof r=="string")return"string";if(Object.prototype.toString.call(r)==="[object Array]")return"array";if(p.nodebuffer&&c.test(r))return"nodebuffer";if(p.uint8array&&r instanceof Uint8Array)return"uint8array";if(p.arraybuffer&&r instanceof ArrayBuffer)return"arraybuffer"},y.checkSupport=function(r){var s=p[r.toLowerCase()];if(!s)throw new Error(r+" is not supported by this browser")},y.MAX_VALUE_16BITS=65535,y.MAX_VALUE_32BITS=-1,y.pretty=function(r){var s="",l,g;for(g=0;g<(r||"").length;g++)l=r.charCodeAt(g),s+="\\x"+(l<16?"0":"")+l.toString(16).toUpperCase();return s},y.findCompression=function(r){for(var s in o)if(o.hasOwnProperty(s)&&o[s].magic===r)return o[s];return null},y.isRegExp=function(r){return Object.prototype.toString.call(r)==="[object RegExp]"},y.extend=function(){var r={},s,l;for(s=0;s<arguments.length;s++)for(l in arguments[s])arguments[s].hasOwnProperty(l)&&typeof r[l]>"u"&&(r[l]=arguments[s][l]);return r}},{"./compressions":8,"./nodeBuffer":16,"./support":22}],27:[function(b,I,y){var p=b("./stringReader"),o=b("./nodeBufferReader"),c=b("./uint8ArrayReader"),h=b("./arrayReader"),i=b("./utils"),d=b("./signature"),_=b("./zipEntry"),m=b("./support");b("./object");function r(s,l){this.files=[],this.loadOptions=l,s&&this.load(s)}r.prototype={checkSignature:function(s){var l=this.reader.readString(4);if(l!==s)throw new Error("Corrupted zip or bug : unexpected signature ("+i.pretty(l)+", expected "+i.pretty(s)+")")},isSignature:function(s,l){var g=this.reader.index;this.reader.setIndex(s);var w=this.reader.readString(4),x=w===l;return this.reader.setIndex(g),x},readBlockEndOfCentral:function(){this.diskNumber=this.reader.readInt(2),this.diskWithCentralDirStart=this.reader.readInt(2),this.centralDirRecordsOnThisDisk=this.reader.readInt(2),this.centralDirRecords=this.reader.readInt(2),this.centralDirSize=this.reader.readInt(4),this.centralDirOffset=this.reader.readInt(4),this.zipCommentLength=this.reader.readInt(2);var s=this.reader.readData(this.zipCommentLength),l=m.uint8array?"uint8array":"array",g=i.transformTo(l,s);this.zipComment=this.loadOptions.decodeFileName(g)},readBlockZip64EndOfCentral:function(){this.zip64EndOfCentralSize=this.reader.readInt(8),this.versionMadeBy=this.reader.readString(2),this.versionNeeded=this.reader.readInt(2),this.diskNumber=this.reader.readInt(4),this.diskWithCentralDirStart=this.reader.readInt(4),this.centralDirRecordsOnThisDisk=this.reader.readInt(8),this.centralDirRecords=this.reader.readInt(8),this.centralDirSize=this.reader.readInt(8),this.centralDirOffset=this.reader.readInt(8),this.zip64ExtensibleData={};for(var s=this.zip64EndOfCentralSize-44,l=0,g,w,x;l<s;)g=this.reader.readInt(2),w=this.reader.readInt(4),x=this.reader.readString(w),this.zip64ExtensibleData[g]={id:g,length:w,value:x}},readBlockZip64EndOfCentralLocator:function(){if(this.diskWithZip64CentralDirStart=this.reader.readInt(4),this.relativeOffsetEndOfZip64CentralDir=this.reader.readInt(8),this.disksCount=this.reader.readInt(4),this.disksCount>1)throw new Error("Multi-volumes zip are not supported")},readLocalFiles:function(){var s,l;for(s=0;s<this.files.length;s++)l=this.files[s],this.reader.setIndex(l.localHeaderOffset),this.checkSignature(d.LOCAL_FILE_HEADER),l.readLocalPart(this.reader),l.handleUTF8(),l.processAttributes()},readCentralDir:function(){var s;for(this.reader.setIndex(this.centralDirOffset);this.reader.readString(4)===d.CENTRAL_FILE_HEADER;)s=new _({zip64:this.zip64},this.loadOptions),s.readCentralPart(this.reader),this.files.push(s);if(this.centralDirRecords!==this.files.length&&this.centralDirRecords!==0&&this.files.length===0)throw new Error("Corrupted zip or bug: expected "+this.centralDirRecords+" records in central dir, got "+this.files.length)},readEndOfCentral:function(){var s=this.reader.lastIndexOfSignature(d.CENTRAL_DIRECTORY_END);if(s<0){var l=!this.isSignature(0,d.LOCAL_FILE_HEADER);throw l?new Error("Can't find end of central directory : is this a zip file ? If it is, see http://stuk.github.io/jszip/documentation/howto/read_zip.html"):new Error("Corrupted zip : can't find end of central directory")}this.reader.setIndex(s);var g=s;if(this.checkSignature(d.CENTRAL_DIRECTORY_END),this.readBlockEndOfCentral(),this.diskNumber===i.MAX_VALUE_16BITS||this.diskWithCentralDirStart===i.MAX_VALUE_16BITS||this.centralDirRecordsOnThisDisk===i.MAX_VALUE_16BITS||this.centralDirRecords===i.MAX_VALUE_16BITS||this.centralDirSize===i.MAX_VALUE_32BITS||this.centralDirOffset===i.MAX_VALUE_32BITS){if(this.zip64=!0,s=this.reader.lastIndexOfSignature(d.ZIP64_CENTRAL_DIRECTORY_LOCATOR),s<0)throw new Error("Corrupted zip : can't find the ZIP64 end of central directory locator");if(this.reader.setIndex(s),this.checkSignature(d.ZIP64_CENTRAL_DIRECTORY_LOCATOR),this.readBlockZip64EndOfCentralLocator(),!this.isSignature(this.relativeOffsetEndOfZip64CentralDir,d.ZIP64_CENTRAL_DIRECTORY_END)&&(this.relativeOffsetEndOfZip64CentralDir=this.reader.lastIndexOfSignature(d.ZIP64_CENTRAL_DIRECTORY_END),this.relativeOffsetEndOfZip64CentralDir<0))throw new Error("Corrupted zip : can't find the ZIP64 end of central directory");this.reader.setIndex(this.relativeOffsetEndOfZip64CentralDir),this.checkSignature(d.ZIP64_CENTRAL_DIRECTORY_END),this.readBlockZip64EndOfCentral()}var w=this.centralDirOffset+this.centralDirSize;this.zip64&&(w+=20,w+=12+this.zip64EndOfCentralSize);var x=g-w;if(x>0)this.isSignature(g,d.CENTRAL_FILE_HEADER)||(this.reader.zero=x);else if(x<0)throw new Error("Corrupted zip: missing "+Math.abs(x)+" bytes.")},prepareReader:function(s){var l=i.getTypeOf(s);if(i.checkSupport(l),l==="string"&&!m.uint8array)this.reader=new p(s,this.loadOptions.optimizedBinaryString);else if(l==="nodebuffer")this.reader=new o(s);else if(m.uint8array)this.reader=new c(i.transformTo("uint8array",s));else if(m.array)this.reader=new h(i.transformTo("array",s));else throw new Error("Unexpected error: unsupported type '"+l+"'")},load:function(s){this.prepareReader(s),this.readEndOfCentral(),this.readCentralDir(),this.readLocalFiles()}},I.exports=r},{"./arrayReader":5,"./nodeBufferReader":17,"./object":18,"./signature":19,"./stringReader":20,"./support":22,"./uint8ArrayReader":23,"./utils":26,"./zipEntry":28}],28:[function(b,I,y){var p=b("./stringReader"),o=b("./utils"),c=b("./compressedObject"),h=b("./object"),i=b("./support"),d=0,_=3;function m(r,s){this.options=r,this.loadOptions=s}m.prototype={isEncrypted:function(){return(this.bitFlag&1)===1},useUTF8:function(){return(this.bitFlag&2048)===2048},prepareCompressedContent:function(r,s,l){return function(){var g=r.index;r.setIndex(s);var w=r.readData(l);return r.setIndex(g),w}},prepareContent:function(r,s,l,g,w){return function(){var x=o.transformTo(g.uncompressInputType,this.getCompressedContent()),D=g.uncompress(x);if(D.length!==w)throw new Error("Bug : uncompressed data size mismatch");return D}},readLocalPart:function(r){var s,l;if(r.skip(22),this.fileNameLength=r.readInt(2),l=r.readInt(2),this.fileName=r.readData(this.fileNameLength),r.skip(l),this.compressedSize==-1||this.uncompressedSize==-1)throw new Error("Bug or corrupted zip : didn't get enough informations from the central directory (compressedSize == -1 || uncompressedSize == -1)");if(s=o.findCompression(this.compressionMethod),s===null)throw new Error("Corrupted zip : compression "+o.pretty(this.compressionMethod)+" unknown (inner file : "+o.transformTo("string",this.fileName)+")");if(this.decompressed=new c,this.decompressed.compressedSize=this.compressedSize,this.decompressed.uncompressedSize=this.uncompressedSize,this.decompressed.crc32=this.crc32,this.decompressed.compressionMethod=this.compressionMethod,this.decompressed.getCompressedContent=this.prepareCompressedContent(r,r.index,this.compressedSize,s),this.decompressed.getContent=this.prepareContent(r,r.index,this.compressedSize,s,this.uncompressedSize),this.loadOptions.checkCRC32&&(this.decompressed=o.transformTo("string",this.decompressed.getContent()),h.crc32(this.decompressed)!==this.crc32))throw new Error("Corrupted zip : CRC32 mismatch")},readCentralPart:function(r){if(this.versionMadeBy=r.readInt(2),this.versionNeeded=r.readInt(2),this.bitFlag=r.readInt(2),this.compressionMethod=r.readString(2),this.date=r.readDate(),this.crc32=r.readInt(4),this.compressedSize=r.readInt(4),this.uncompressedSize=r.readInt(4),this.fileNameLength=r.readInt(2),this.extraFieldsLength=r.readInt(2),this.fileCommentLength=r.readInt(2),this.diskNumberStart=r.readInt(2),this.internalFileAttributes=r.readInt(2),this.externalFileAttributes=r.readInt(4),this.localHeaderOffset=r.readInt(4),this.isEncrypted())throw new Error("Encrypted zip are not supported");this.fileName=r.readData(this.fileNameLength),this.readExtraFields(r),this.parseZIP64ExtraField(r),this.fileComment=r.readData(this.fileCommentLength)},processAttributes:function(){this.unixPermissions=null,this.dosPermissions=null;var r=this.versionMadeBy>>8;this.dir=!!(this.externalFileAttributes&16),r===d&&(this.dosPermissions=this.externalFileAttributes&63),r===_&&(this.unixPermissions=this.externalFileAttributes>>16&65535),!this.dir&&this.fileNameStr.slice(-1)==="/"&&(this.dir=!0)},parseZIP64ExtraField:function(r){if(this.extraFields[1]){var s=new p(this.extraFields[1].value);this.uncompressedSize===o.MAX_VALUE_32BITS&&(this.uncompressedSize=s.readInt(8)),this.compressedSize===o.MAX_VALUE_32BITS&&(this.compressedSize=s.readInt(8)),this.localHeaderOffset===o.MAX_VALUE_32BITS&&(this.localHeaderOffset=s.readInt(8)),this.diskNumberStart===o.MAX_VALUE_32BITS&&(this.diskNumberStart=s.readInt(4))}},readExtraFields:function(r){var s=r.index,l,g,w;for(this.extraFields=this.extraFields||{};r.index<s+this.extraFieldsLength;)l=r.readInt(2),g=r.readInt(2),w=r.readString(g),this.extraFields[l]={id:l,length:g,value:w}},handleUTF8:function(){var r=i.uint8array?"uint8array":"array";if(this.useUTF8())this.fileNameStr=h.utf8decode(this.fileName),this.fileCommentStr=h.utf8decode(this.fileComment);else{var s=this.findExtraFieldUnicodePath();if(s!==null)this.fileNameStr=s;else{var l=o.transformTo(r,this.fileName);this.fileNameStr=this.loadOptions.decodeFileName(l)}var g=this.findExtraFieldUnicodeComment();if(g!==null)this.fileCommentStr=g;else{var w=o.transformTo(r,this.fileComment);this.fileCommentStr=this.loadOptions.decodeFileName(w)}}},findExtraFieldUnicodePath:function(){var r=this.extraFields[28789];if(r){var s=new p(r.value);return s.readInt(1)!==1||h.crc32(this.fileName)!==s.readInt(4)?null:h.utf8decode(s.readString(r.length-5))}return null},findExtraFieldUnicodeComment:function(){var r=this.extraFields[25461];if(r){var s=new p(r.value);return s.readInt(1)!==1||h.crc32(this.fileComment)!==s.readInt(4)?null:h.utf8decode(s.readString(r.length-5))}return null}},I.exports=m},{"./compressedObject":7,"./object":18,"./stringReader":20,"./support":22,"./utils":26}],29:[function(b,I,y){var p=b("./lib/utils/common").assign,o=b("./lib/deflate"),c=b("./lib/inflate"),h=b("./lib/zlib/constants"),i={};p(i,o,c,h),I.exports=i},{"./lib/deflate":30,"./lib/inflate":31,"./lib/utils/common":32,"./lib/zlib/constants":35}],30:[function(b,I,y){var p=b("./zlib/deflate"),o=b("./utils/common"),c=b("./utils/strings"),h=b("./zlib/messages"),i=b("./zlib/zstream"),d=Object.prototype.toString,_=0,m=4,r=0,s=1,l=2,g=-1,w=0,x=8;function D(F){if(!(this instanceof D))return new D(F);this.options=o.assign({level:g,method:x,chunkSize:16384,windowBits:15,memLevel:8,strategy:w,to:""},F||{});var N=this.options;N.raw&&N.windowBits>0?N.windowBits=-N.windowBits:N.gzip&&N.windowBits>0&&N.windowBits<16&&(N.windowBits+=16),this.err=0,this.msg="",this.ended=!1,this.chunks=[],this.strm=new i,this.strm.avail_out=0;var W=p.deflateInit2(this.strm,N.level,N.method,N.windowBits,N.memLevel,N.strategy);if(W!==r)throw new Error(h[W]);if(N.header&&p.deflateSetHeader(this.strm,N.header),N.dictionary){var $;if(typeof N.dictionary=="string"?$=c.string2buf(N.dictionary):d.call(N.dictionary)==="[object ArrayBuffer]"?$=new Uint8Array(N.dictionary):$=N.dictionary,W=p.deflateSetDictionary(this.strm,$),W!==r)throw new Error(h[W]);this._dict_set=!0}}D.prototype.push=function(F,N){var W=this.strm,$=this.options.chunkSize,J,j;if(this.ended)return!1;j=N===~~N?N:N===!0?m:_,typeof F=="string"?W.input=c.string2buf(F):d.call(F)==="[object ArrayBuffer]"?W.input=new Uint8Array(F):W.input=F,W.next_in=0,W.avail_in=W.input.length;do{if(W.avail_out===0&&(W.output=new o.Buf8($),W.next_out=0,W.avail_out=$),J=p.deflate(W,j),J!==s&&J!==r)return this.onEnd(J),this.ended=!0,!1;(W.avail_out===0||W.avail_in===0&&(j===m||j===l))&&(this.options.to==="string"?this.onData(c.buf2binstring(o.shrinkBuf(W.output,W.next_out))):this.onData(o.shrinkBuf(W.output,W.next_out)))}while((W.avail_in>0||W.avail_out===0)&&J!==s);return j===m?(J=p.deflateEnd(this.strm),this.onEnd(J),this.ended=!0,J===r):(j===l&&(this.onEnd(r),W.avail_out=0),!0)},D.prototype.onData=function(F){this.chunks.push(F)},D.prototype.onEnd=function(F){F===r&&(this.options.to==="string"?this.result=this.chunks.join(""):this.result=o.flattenChunks(this.chunks)),this.chunks=[],this.err=F,this.msg=this.strm.msg};function V(F,N){var W=new D(N);if(W.push(F,!0),W.err)throw W.msg;return W.result}function L(F,N){return N=N||{},N.raw=!0,V(F,N)}function A(F,N){return N=N||{},N.gzip=!0,V(F,N)}y.Deflate=D,y.deflate=V,y.deflateRaw=L,y.gzip=A},{"./utils/common":32,"./utils/strings":33,"./zlib/deflate":37,"./zlib/messages":42,"./zlib/zstream":44}],31:[function(b,I,y){var p=b("./zlib/inflate"),o=b("./utils/common"),c=b("./utils/strings"),h=b("./zlib/constants"),i=b("./zlib/messages"),d=b("./zlib/zstream"),_=b("./zlib/gzheader"),m=Object.prototype.toString;function r(g){if(!(this instanceof r))return new r(g);this.options=o.assign({chunkSize:16384,windowBits:0,to:""},g||{});var w=this.options;w.raw&&w.windowBits>=0&&w.windowBits<16&&(w.windowBits=-w.windowBits,w.windowBits===0&&(w.windowBits=-15)),w.windowBits>=0&&w.windowBits<16&&!(g&&g.windowBits)&&(w.windowBits+=32),w.windowBits>15&&w.windowBits<48&&(w.windowBits&15||(w.windowBits|=15)),this.err=0,this.msg="",this.ended=!1,this.chunks=[],this.strm=new d,this.strm.avail_out=0;var x=p.inflateInit2(this.strm,w.windowBits);if(x!==h.Z_OK)throw new Error(i[x]);this.header=new _,p.inflateGetHeader(this.strm,this.header)}r.prototype.push=function(g,w){var x=this.strm,D=this.options.chunkSize,V=this.options.dictionary,L,A,F,N,W,$,J=!1;if(this.ended)return!1;A=w===~~w?w:w===!0?h.Z_FINISH:h.Z_NO_FLUSH,typeof g=="string"?x.input=c.binstring2buf(g):m.call(g)==="[object ArrayBuffer]"?x.input=new Uint8Array(g):x.input=g,x.next_in=0,x.avail_in=x.input.length;do{if(x.avail_out===0&&(x.output=new o.Buf8(D),x.next_out=0,x.avail_out=D),L=p.inflate(x,h.Z_NO_FLUSH),L===h.Z_NEED_DICT&&V&&(typeof V=="string"?$=c.string2buf(V):m.call(V)==="[object ArrayBuffer]"?$=new Uint8Array(V):$=V,L=p.inflateSetDictionary(this.strm,$)),L===h.Z_BUF_ERROR&&J===!0&&(L=h.Z_OK,J=!1),L!==h.Z_STREAM_END&&L!==h.Z_OK)return this.onEnd(L),this.ended=!0,!1;x.next_out&&(x.avail_out===0||L===h.Z_STREAM_END||x.avail_in===0&&(A===h.Z_FINISH||A===h.Z_SYNC_FLUSH))&&(this.options.to==="string"?(F=c.utf8border(x.output,x.next_out),N=x.next_out-F,W=c.buf2string(x.output,F),x.next_out=N,x.avail_out=D-N,N&&o.arraySet(x.output,x.output,F,N,0),this.onData(W)):this.onData(o.shrinkBuf(x.output,x.next_out))),x.avail_in===0&&x.avail_out===0&&(J=!0)}while((x.avail_in>0||x.avail_out===0)&&L!==h.Z_STREAM_END);return L===h.Z_STREAM_END&&(A=h.Z_FINISH),A===h.Z_FINISH?(L=p.inflateEnd(this.strm),this.onEnd(L),this.ended=!0,L===h.Z_OK):(A===h.Z_SYNC_FLUSH&&(this.onEnd(h.Z_OK),x.avail_out=0),!0)},r.prototype.onData=function(g){this.chunks.push(g)},r.prototype.onEnd=function(g){g===h.Z_OK&&(this.options.to==="string"?this.result=this.chunks.join(""):this.result=o.flattenChunks(this.chunks)),this.chunks=[],this.err=g,this.msg=this.strm.msg};function s(g,w){var x=new r(w);if(x.push(g,!0),x.err)throw x.msg;return x.result}function l(g,w){return w=w||{},w.raw=!0,s(g,w)}y.Inflate=r,y.inflate=s,y.inflateRaw=l,y.ungzip=s},{"./utils/common":32,"./utils/strings":33,"./zlib/constants":35,"./zlib/gzheader":38,"./zlib/inflate":40,"./zlib/messages":42,"./zlib/zstream":44}],32:[function(b,I,y){var p=typeof Uint8Array<"u"&&typeof Uint16Array<"u"&&typeof Int32Array<"u";y.assign=function(h){for(var i=Array.prototype.slice.call(arguments,1);i.length;){var d=i.shift();if(d){if(typeof d!="object")throw new TypeError(d+"must be non-object");for(var _ in d)d.hasOwnProperty(_)&&(h[_]=d[_])}}return h},y.shrinkBuf=function(h,i){return h.length===i?h:h.subarray?h.subarray(0,i):(h.length=i,h)};var o={arraySet:function(h,i,d,_,m){if(i.subarray&&h.subarray){h.set(i.subarray(d,d+_),m);return}for(var r=0;r<_;r++)h[m+r]=i[d+r]},flattenChunks:function(h){var i,d,_,m,r,s;for(_=0,i=0,d=h.length;i<d;i++)_+=h[i].length;for(s=new Uint8Array(_),m=0,i=0,d=h.length;i<d;i++)r=h[i],s.set(r,m),m+=r.length;return s}},c={arraySet:function(h,i,d,_,m){for(var r=0;r<_;r++)h[m+r]=i[d+r]},flattenChunks:function(h){return[].concat.apply([],h)}};y.setTyped=function(h){h?(y.Buf8=Uint8Array,y.Buf16=Uint16Array,y.Buf32=Int32Array,y.assign(y,o)):(y.Buf8=Array,y.Buf16=Array,y.Buf32=Array,y.assign(y,c))},y.setTyped(p)},{}],33:[function(b,I,y){var p=b("./common"),o=!0,c=!0;try{String.fromCharCode.apply(null,[0])}catch{o=!1}try{String.fromCharCode.apply(null,new Uint8Array(1))}catch{c=!1}for(var h=new p.Buf8(256),i=0;i<256;i++)h[i]=i>=252?6:i>=248?5:i>=240?4:i>=224?3:i>=192?2:1;h[254]=h[254]=1,y.string2buf=function(_){var m,r,s,l,g,w=_.length,x=0;for(l=0;l<w;l++)r=_.charCodeAt(l),(r&64512)===55296&&l+1<w&&(s=_.charCodeAt(l+1),(s&64512)===56320&&(r=65536+(r-55296<<10)+(s-56320),l++)),x+=r<128?1:r<2048?2:r<65536?3:4;for(m=new p.Buf8(x),g=0,l=0;g<x;l++)r=_.charCodeAt(l),(r&64512)===55296&&l+1<w&&(s=_.charCodeAt(l+1),(s&64512)===56320&&(r=65536+(r-55296<<10)+(s-56320),l++)),r<128?m[g++]=r:r<2048?(m[g++]=192|r>>>6,m[g++]=128|r&63):r<65536?(m[g++]=224|r>>>12,m[g++]=128|r>>>6&63,m[g++]=128|r&63):(m[g++]=240|r>>>18,m[g++]=128|r>>>12&63,m[g++]=128|r>>>6&63,m[g++]=128|r&63);return m};function d(_,m){if(m<65537&&(_.subarray&&c||!_.subarray&&o))return String.fromCharCode.apply(null,p.shrinkBuf(_,m));for(var r="",s=0;s<m;s++)r+=String.fromCharCode(_[s]);return r}y.buf2binstring=function(_){return d(_,_.length)},y.binstring2buf=function(_){for(var m=new p.Buf8(_.length),r=0,s=m.length;r<s;r++)m[r]=_.charCodeAt(r);return m},y.buf2string=function(_,m){var r,s,l,g,w=m||_.length,x=new Array(w*2);for(s=0,r=0;r<w;){if(l=_[r++],l<128){x[s++]=l;continue}if(g=h[l],g>4){x[s++]=65533,r+=g-1;continue}for(l&=g===2?31:g===3?15:7;g>1&&r<w;)l=l<<6|_[r++]&63,g--;if(g>1){x[s++]=65533;continue}l<65536?x[s++]=l:(l-=65536,x[s++]=55296|l>>10&1023,x[s++]=56320|l&1023)}return d(x,s)},y.utf8border=function(_,m){var r;for(m=m||_.length,m>_.length&&(m=_.length),r=m-1;r>=0&&(_[r]&192)===128;)r--;return r<0||r===0?m:r+h[_[r]]>m?r:m}},{"./common":32}],34:[function(b,I,y){function p(o,c,h,i){for(var d=o&65535|0,_=o>>>16&65535|0,m=0;h!==0;){m=h>2e3?2e3:h,h-=m;do d=d+c[i++]|0,_=_+d|0;while(--m);d%=65521,_%=65521}return d|_<<16|0}I.exports=p},{}],35:[function(b,I,y){I.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}},{}],36:[function(b,I,y){function p(){for(var h,i=[],d=0;d<256;d++){h=d;for(var _=0;_<8;_++)h=h&1?3988292384^h>>>1:h>>>1;i[d]=h}return i}var o=p();function c(h,i,d,_){var m=o,r=_+d;h^=-1;for(var s=_;s<r;s++)h=h>>>8^m[(h^i[s])&255];return h^-1}I.exports=c},{}],37:[function(b,I,y){var p=b("../utils/common"),o=b("./trees"),c=b("./adler32"),h=b("./crc32"),i=b("./messages"),d=0,_=1,m=3,r=4,s=5,l=0,g=1,w=-2,x=-3,D=-5,V=-1,L=1,A=2,F=3,N=4,W=0,$=2,J=8,j=9,Z=15,ee=8,ne=29,S=256,C=S+1+ne,R=30,G=19,q=2*C+1,se=15,ae=3,pe=258,de=pe+ae+1,t=32,u=42,v=69,B=73,P=91,Y=103,K=113,le=666,ue=1,be=2,ke=3,Se=4,fe=3;function Ee(e,O){return e.msg=i[O],O}function De(e){return(e<<1)-(e>4?9:0)}function ve(e){for(var O=e.length;--O>=0;)e[O]=0}function Re(e){var O=e.state,z=O.pending;z>e.avail_out&&(z=e.avail_out),z!==0&&(p.arraySet(e.output,O.pending_buf,O.pending_out,z,e.next_out),e.next_out+=z,O.pending_out+=z,e.total_out+=z,e.avail_out-=z,O.pending-=z,O.pending===0&&(O.pending_out=0))}function me(e,O){o._tr_flush_block(e,e.block_start>=0?e.block_start:-1,e.strstart-e.block_start,O),e.block_start=e.strstart,Re(e.strm)}function he(e,O){e.pending_buf[e.pending++]=O}function Be(e,O){e.pending_buf[e.pending++]=O>>>8&255,e.pending_buf[e.pending++]=O&255}function We(e,O,z,a){var E=e.avail_in;return E>a&&(E=a),E===0?0:(e.avail_in-=E,p.arraySet(O,e.input,e.next_in,E,z),e.state.wrap===1?e.adler=c(e.adler,O,E,z):e.state.wrap===2&&(e.adler=h(e.adler,O,E,z)),e.next_in+=E,e.total_in+=E,E)}function Ye(e,O){var z=e.max_chain_length,a=e.strstart,E,k,ie=e.prev_length,Q=e.nice_match,re=e.strstart>e.w_size-de?e.strstart-(e.w_size-de):0,ge=e.window,Fe=e.w_mask,we=e.prev,_e=e.strstart+pe,Ae=ge[a+ie-1],Ce=ge[a+ie];e.prev_length>=e.good_match&&(z>>=2),Q>e.lookahead&&(Q=e.lookahead);do if(E=O,!(ge[E+ie]!==Ce||ge[E+ie-1]!==Ae||ge[E]!==ge[a]||ge[++E]!==ge[a+1])){a+=2,E++;do;while(ge[++a]===ge[++E]&&ge[++a]===ge[++E]&&ge[++a]===ge[++E]&&ge[++a]===ge[++E]&&ge[++a]===ge[++E]&&ge[++a]===ge[++E]&&ge[++a]===ge[++E]&&ge[++a]===ge[++E]&&a<_e);if(k=pe-(_e-a),a=_e-pe,k>ie){if(e.match_start=O,ie=k,k>=Q)break;Ae=ge[a+ie-1],Ce=ge[a+ie]}}while((O=we[O&Fe])>re&&--z!==0);return ie<=e.lookahead?ie:e.lookahead}function ze(e){var O=e.w_size,z,a,E,k,ie;do{if(k=e.window_size-e.lookahead-e.strstart,e.strstart>=O+(O-de)){p.arraySet(e.window,e.window,O,O,0),e.match_start-=O,e.strstart-=O,e.block_start-=O,a=e.hash_size,z=a;do E=e.head[--z],e.head[z]=E>=O?E-O:0;while(--a);a=O,z=a;do E=e.prev[--z],e.prev[z]=E>=O?E-O:0;while(--a);k+=O}if(e.strm.avail_in===0)break;if(a=We(e.strm,e.window,e.strstart+e.lookahead,k),e.lookahead+=a,e.lookahead+e.insert>=ae)for(ie=e.strstart-e.insert,e.ins_h=e.window[ie],e.ins_h=(e.ins_h<<e.hash_shift^e.window[ie+1])&e.hash_mask;e.insert&&(e.ins_h=(e.ins_h<<e.hash_shift^e.window[ie+ae-1])&e.hash_mask,e.prev[ie&e.w_mask]=e.head[e.ins_h],e.head[e.ins_h]=ie,ie++,e.insert--,!(e.lookahead+e.insert<ae)););}while(e.lookahead<de&&e.strm.avail_in!==0)}function Xe(e,O){var z=65535;for(z>e.pending_buf_size-5&&(z=e.pending_buf_size-5);;){if(e.lookahead<=1){if(ze(e),e.lookahead===0&&O===d)return ue;if(e.lookahead===0)break}e.strstart+=e.lookahead,e.lookahead=0;var a=e.block_start+z;if((e.strstart===0||e.strstart>=a)&&(e.lookahead=e.strstart-a,e.strstart=a,me(e,!1),e.strm.avail_out===0)||e.strstart-e.block_start>=e.w_size-de&&(me(e,!1),e.strm.avail_out===0))return ue}return e.insert=0,O===r?(me(e,!0),e.strm.avail_out===0?ke:Se):(e.strstart>e.block_start&&(me(e,!1),e.strm.avail_out===0),ue)}function He(e,O){for(var z,a;;){if(e.lookahead<de){if(ze(e),e.lookahead<de&&O===d)return ue;if(e.lookahead===0)break}if(z=0,e.lookahead>=ae&&(e.ins_h=(e.ins_h<<e.hash_shift^e.window[e.strstart+ae-1])&e.hash_mask,z=e.prev[e.strstart&e.w_mask]=e.head[e.ins_h],e.head[e.ins_h]=e.strstart),z!==0&&e.strstart-z<=e.w_size-de&&(e.match_length=Ye(e,z)),e.match_length>=ae)if(a=o._tr_tally(e,e.strstart-e.match_start,e.match_length-ae),e.lookahead-=e.match_length,e.match_length<=e.max_lazy_match&&e.lookahead>=ae){e.match_length--;do e.strstart++,e.ins_h=(e.ins_h<<e.hash_shift^e.window[e.strstart+ae-1])&e.hash_mask,z=e.prev[e.strstart&e.w_mask]=e.head[e.ins_h],e.head[e.ins_h]=e.strstart;while(--e.match_length!==0);e.strstart++}else e.strstart+=e.match_length,e.match_length=0,e.ins_h=e.window[e.strstart],e.ins_h=(e.ins_h<<e.hash_shift^e.window[e.strstart+1])&e.hash_mask;else a=o._tr_tally(e,0,e.window[e.strstart]),e.lookahead--,e.strstart++;if(a&&(me(e,!1),e.strm.avail_out===0))return ue}return e.insert=e.strstart<ae-1?e.strstart:ae-1,O===r?(me(e,!0),e.strm.avail_out===0?ke:Se):e.last_lit&&(me(e,!1),e.strm.avail_out===0)?ue:be}function Ue(e,O){for(var z,a,E;;){if(e.lookahead<de){if(ze(e),e.lookahead<de&&O===d)return ue;if(e.lookahead===0)break}if(z=0,e.lookahead>=ae&&(e.ins_h=(e.ins_h<<e.hash_shift^e.window[e.strstart+ae-1])&e.hash_mask,z=e.prev[e.strstart&e.w_mask]=e.head[e.ins_h],e.head[e.ins_h]=e.strstart),e.prev_length=e.match_length,e.prev_match=e.match_start,e.match_length=ae-1,z!==0&&e.prev_length<e.max_lazy_match&&e.strstart-z<=e.w_size-de&&(e.match_length=Ye(e,z),e.match_length<=5&&(e.strategy===L||e.match_length===ae&&e.strstart-e.match_start>4096)&&(e.match_length=ae-1)),e.prev_length>=ae&&e.match_length<=e.prev_length){E=e.strstart+e.lookahead-ae,a=o._tr_tally(e,e.strstart-1-e.prev_match,e.prev_length-ae),e.lookahead-=e.prev_length-1,e.prev_length-=2;do++e.strstart<=E&&(e.ins_h=(e.ins_h<<e.hash_shift^e.window[e.strstart+ae-1])&e.hash_mask,z=e.prev[e.strstart&e.w_mask]=e.head[e.ins_h],e.head[e.ins_h]=e.strstart);while(--e.prev_length!==0);if(e.match_available=0,e.match_length=ae-1,e.strstart++,a&&(me(e,!1),e.strm.avail_out===0))return ue}else if(e.match_available){if(a=o._tr_tally(e,0,e.window[e.strstart-1]),a&&me(e,!1),e.strstart++,e.lookahead--,e.strm.avail_out===0)return ue}else e.match_available=1,e.strstart++,e.lookahead--}return e.match_available&&(a=o._tr_tally(e,0,e.window[e.strstart-1]),e.match_available=0),e.insert=e.strstart<ae-1?e.strstart:ae-1,O===r?(me(e,!0),e.strm.avail_out===0?ke:Se):e.last_lit&&(me(e,!1),e.strm.avail_out===0)?ue:be}function Ge(e,O){for(var z,a,E,k,ie=e.window;;){if(e.lookahead<=pe){if(ze(e),e.lookahead<=pe&&O===d)return ue;if(e.lookahead===0)break}if(e.match_length=0,e.lookahead>=ae&&e.strstart>0&&(E=e.strstart-1,a=ie[E],a===ie[++E]&&a===ie[++E]&&a===ie[++E])){k=e.strstart+pe;do;while(a===ie[++E]&&a===ie[++E]&&a===ie[++E]&&a===ie[++E]&&a===ie[++E]&&a===ie[++E]&&a===ie[++E]&&a===ie[++E]&&E<k);e.match_length=pe-(k-E),e.match_length>e.lookahead&&(e.match_length=e.lookahead)}if(e.match_length>=ae?(z=o._tr_tally(e,1,e.match_length-ae),e.lookahead-=e.match_length,e.strstart+=e.match_length,e.match_length=0):(z=o._tr_tally(e,0,e.window[e.strstart]),e.lookahead--,e.strstart++),z&&(me(e,!1),e.strm.avail_out===0))return ue}return e.insert=0,O===r?(me(e,!0),e.strm.avail_out===0?ke:Se):e.last_lit&&(me(e,!1),e.strm.avail_out===0)?ue:be}function je(e,O){for(var z;;){if(e.lookahead===0&&(ze(e),e.lookahead===0)){if(O===d)return ue;break}if(e.match_length=0,z=o._tr_tally(e,0,e.window[e.strstart]),e.lookahead--,e.strstart++,z&&(me(e,!1),e.strm.avail_out===0))return ue}return e.insert=0,O===r?(me(e,!0),e.strm.avail_out===0?ke:Se):e.last_lit&&(me(e,!1),e.strm.avail_out===0)?ue:be}function Ie(e,O,z,a,E){this.good_length=e,this.max_lazy=O,this.nice_length=z,this.max_chain=a,this.func=E}var Ne;Ne=[new Ie(0,0,0,0,Xe),new Ie(4,4,8,4,He),new Ie(4,5,16,8,He),new Ie(4,6,32,32,He),new Ie(4,4,16,16,Ue),new Ie(8,16,32,32,Ue),new Ie(8,16,128,128,Ue),new Ie(8,32,128,256,Ue),new Ie(32,128,258,1024,Ue),new Ie(32,258,258,4096,Ue)];function Ve(e){e.window_size=2*e.w_size,ve(e.head),e.max_lazy_match=Ne[e.level].max_lazy,e.good_match=Ne[e.level].good_length,e.nice_match=Ne[e.level].nice_length,e.max_chain_length=Ne[e.level].max_chain,e.strstart=0,e.block_start=0,e.lookahead=0,e.insert=0,e.match_length=e.prev_length=ae-1,e.match_available=0,e.ins_h=0}function f(){this.strm=null,this.status=0,this.pending_buf=null,this.pending_buf_size=0,this.pending_out=0,this.pending=0,this.wrap=0,this.gzhead=null,this.gzindex=0,this.method=J,this.last_flush=-1,this.w_size=0,this.w_bits=0,this.w_mask=0,this.window=null,this.window_size=0,this.prev=null,this.head=null,this.ins_h=0,this.hash_size=0,this.hash_bits=0,this.hash_mask=0,this.hash_shift=0,this.block_start=0,this.match_length=0,this.prev_match=0,this.match_available=0,this.strstart=0,this.match_start=0,this.lookahead=0,this.prev_length=0,this.max_chain_length=0,this.max_lazy_match=0,this.level=0,this.strategy=0,this.good_match=0,this.nice_match=0,this.dyn_ltree=new p.Buf16(q*2),this.dyn_dtree=new p.Buf16((2*R+1)*2),this.bl_tree=new p.Buf16((2*G+1)*2),ve(this.dyn_ltree),ve(this.dyn_dtree),ve(this.bl_tree),this.l_desc=null,this.d_desc=null,this.bl_desc=null,this.bl_count=new p.Buf16(se+1),this.heap=new p.Buf16(2*C+1),ve(this.heap),this.heap_len=0,this.heap_max=0,this.depth=new p.Buf16(2*C+1),ve(this.depth),this.l_buf=0,this.lit_bufsize=0,this.last_lit=0,this.d_buf=0,this.opt_len=0,this.static_len=0,this.matches=0,this.insert=0,this.bi_buf=0,this.bi_valid=0}function M(e){var O;return!e||!e.state?Ee(e,w):(e.total_in=e.total_out=0,e.data_type=$,O=e.state,O.pending=0,O.pending_out=0,O.wrap<0&&(O.wrap=-O.wrap),O.status=O.wrap?u:K,e.adler=O.wrap===2?0:1,O.last_flush=d,o._tr_init(O),l)}function X(e){var O=M(e);return O===l&&Ve(e.state),O}function te(e,O){return!e||!e.state||e.state.wrap!==2?w:(e.state.gzhead=O,l)}function T(e,O,z,a,E,k){if(!e)return w;var ie=1;if(O===V&&(O=6),a<0?(ie=0,a=-a):a>15&&(ie=2,a-=16),E<1||E>j||z!==J||a<8||a>15||O<0||O>9||k<0||k>N)return Ee(e,w);a===8&&(a=9);var Q=new f;return e.state=Q,Q.strm=e,Q.wrap=ie,Q.gzhead=null,Q.w_bits=a,Q.w_size=1<<Q.w_bits,Q.w_mask=Q.w_size-1,Q.hash_bits=E+7,Q.hash_size=1<<Q.hash_bits,Q.hash_mask=Q.hash_size-1,Q.hash_shift=~~((Q.hash_bits+ae-1)/ae),Q.window=new p.Buf8(Q.w_size*2),Q.head=new p.Buf16(Q.hash_size),Q.prev=new p.Buf16(Q.w_size),Q.lit_bufsize=1<<E+6,Q.pending_buf_size=Q.lit_bufsize*4,Q.pending_buf=new p.Buf8(Q.pending_buf_size),Q.d_buf=Q.lit_bufsize>>1,Q.l_buf=3*Q.lit_bufsize,Q.level=O,Q.strategy=k,Q.method=z,X(e)}function U(e,O){return T(e,O,J,Z,ee,W)}function n(e,O){var z,a,E,k;if(!e||!e.state||O>s||O<0)return e?Ee(e,w):w;if(a=e.state,!e.output||!e.input&&e.avail_in!==0||a.status===le&&O!==r)return Ee(e,e.avail_out===0?D:w);if(a.strm=e,z=a.last_flush,a.last_flush=O,a.status===u)if(a.wrap===2)e.adler=0,he(a,31),he(a,139),he(a,8),a.gzhead?(he(a,(a.gzhead.text?1:0)+(a.gzhead.hcrc?2:0)+(a.gzhead.extra?4:0)+(a.gzhead.name?8:0)+(a.gzhead.comment?16:0)),he(a,a.gzhead.time&255),he(a,a.gzhead.time>>8&255),he(a,a.gzhead.time>>16&255),he(a,a.gzhead.time>>24&255),he(a,a.level===9?2:a.strategy>=A||a.level<2?4:0),he(a,a.gzhead.os&255),a.gzhead.extra&&a.gzhead.extra.length&&(he(a,a.gzhead.extra.length&255),he(a,a.gzhead.extra.length>>8&255)),a.gzhead.hcrc&&(e.adler=h(e.adler,a.pending_buf,a.pending,0)),a.gzindex=0,a.status=v):(he(a,0),he(a,0),he(a,0),he(a,0),he(a,0),he(a,a.level===9?2:a.strategy>=A||a.level<2?4:0),he(a,fe),a.status=K);else{var ie=J+(a.w_bits-8<<4)<<8,Q=-1;a.strategy>=A||a.level<2?Q=0:a.level<6?Q=1:a.level===6?Q=2:Q=3,ie|=Q<<6,a.strstart!==0&&(ie|=t),ie+=31-ie%31,a.status=K,Be(a,ie),a.strstart!==0&&(Be(a,e.adler>>>16),Be(a,e.adler&65535)),e.adler=1}if(a.status===v)if(a.gzhead.extra){for(E=a.pending;a.gzindex<(a.gzhead.extra.length&65535)&&!(a.pending===a.pending_buf_size&&(a.gzhead.hcrc&&a.pending>E&&(e.adler=h(e.adler,a.pending_buf,a.pending-E,E)),Re(e),E=a.pending,a.pending===a.pending_buf_size));)he(a,a.gzhead.extra[a.gzindex]&255),a.gzindex++;a.gzhead.hcrc&&a.pending>E&&(e.adler=h(e.adler,a.pending_buf,a.pending-E,E)),a.gzindex===a.gzhead.extra.length&&(a.gzindex=0,a.status=B)}else a.status=B;if(a.status===B)if(a.gzhead.name){E=a.pending;do{if(a.pending===a.pending_buf_size&&(a.gzhead.hcrc&&a.pending>E&&(e.adler=h(e.adler,a.pending_buf,a.pending-E,E)),Re(e),E=a.pending,a.pending===a.pending_buf_size)){k=1;break}a.gzindex<a.gzhead.name.length?k=a.gzhead.name.charCodeAt(a.gzindex++)&255:k=0,he(a,k)}while(k!==0);a.gzhead.hcrc&&a.pending>E&&(e.adler=h(e.adler,a.pending_buf,a.pending-E,E)),k===0&&(a.gzindex=0,a.status=P)}else a.status=P;if(a.status===P)if(a.gzhead.comment){E=a.pending;do{if(a.pending===a.pending_buf_size&&(a.gzhead.hcrc&&a.pending>E&&(e.adler=h(e.adler,a.pending_buf,a.pending-E,E)),Re(e),E=a.pending,a.pending===a.pending_buf_size)){k=1;break}a.gzindex<a.gzhead.comment.length?k=a.gzhead.comment.charCodeAt(a.gzindex++)&255:k=0,he(a,k)}while(k!==0);a.gzhead.hcrc&&a.pending>E&&(e.adler=h(e.adler,a.pending_buf,a.pending-E,E)),k===0&&(a.status=Y)}else a.status=Y;if(a.status===Y&&(a.gzhead.hcrc?(a.pending+2>a.pending_buf_size&&Re(e),a.pending+2<=a.pending_buf_size&&(he(a,e.adler&255),he(a,e.adler>>8&255),e.adler=0,a.status=K)):a.status=K),a.pending!==0){if(Re(e),e.avail_out===0)return a.last_flush=-1,l}else if(e.avail_in===0&&De(O)<=De(z)&&O!==r)return Ee(e,D);if(a.status===le&&e.avail_in!==0)return Ee(e,D);if(e.avail_in!==0||a.lookahead!==0||O!==d&&a.status!==le){var re=a.strategy===A?je(a,O):a.strategy===F?Ge(a,O):Ne[a.level].func(a,O);if((re===ke||re===Se)&&(a.status=le),re===ue||re===ke)return e.avail_out===0&&(a.last_flush=-1),l;if(re===be&&(O===_?o._tr_align(a):O!==s&&(o._tr_stored_block(a,0,0,!1),O===m&&(ve(a.head),a.lookahead===0&&(a.strstart=0,a.block_start=0,a.insert=0))),Re(e),e.avail_out===0))return a.last_flush=-1,l}return O!==r?l:a.wrap<=0?g:(a.wrap===2?(he(a,e.adler&255),he(a,e.adler>>8&255),he(a,e.adler>>16&255),he(a,e.adler>>24&255),he(a,e.total_in&255),he(a,e.total_in>>8&255),he(a,e.total_in>>16&255),he(a,e.total_in>>24&255)):(Be(a,e.adler>>>16),Be(a,e.adler&65535)),Re(e),a.wrap>0&&(a.wrap=-a.wrap),a.pending!==0?l:g)}function H(e){var O;return!e||!e.state?w:(O=e.state.status,O!==u&&O!==v&&O!==B&&O!==P&&O!==Y&&O!==K&&O!==le?Ee(e,w):(e.state=null,O===K?Ee(e,x):l))}function oe(e,O){var z=O.length,a,E,k,ie,Q,re,ge,Fe;if(!e||!e.state||(a=e.state,ie=a.wrap,ie===2||ie===1&&a.status!==u||a.lookahead))return w;for(ie===1&&(e.adler=c(e.adler,O,z,0)),a.wrap=0,z>=a.w_size&&(ie===0&&(ve(a.head),a.strstart=0,a.block_start=0,a.insert=0),Fe=new p.Buf8(a.w_size),p.arraySet(Fe,O,z-a.w_size,a.w_size,0),O=Fe,z=a.w_size),Q=e.avail_in,re=e.next_in,ge=e.input,e.avail_in=z,e.next_in=0,e.input=O,ze(a);a.lookahead>=ae;){E=a.strstart,k=a.lookahead-(ae-1);do a.ins_h=(a.ins_h<<a.hash_shift^a.window[E+ae-1])&a.hash_mask,a.prev[E&a.w_mask]=a.head[a.ins_h],a.head[a.ins_h]=E,E++;while(--k);a.strstart=E,a.lookahead=ae-1,ze(a)}return a.strstart+=a.lookahead,a.block_start=a.strstart,a.insert=a.lookahead,a.lookahead=0,a.match_length=a.prev_length=ae-1,a.match_available=0,e.next_in=re,e.input=ge,e.avail_in=Q,a.wrap=ie,l}y.deflateInit=U,y.deflateInit2=T,y.deflateReset=X,y.deflateResetKeep=M,y.deflateSetHeader=te,y.deflate=n,y.deflateEnd=H,y.deflateSetDictionary=oe,y.deflateInfo="pako deflate (from Nodeca project)"},{"../utils/common":32,"./adler32":34,"./crc32":36,"./messages":42,"./trees":43}],38:[function(b,I,y){function p(){this.text=0,this.time=0,this.xflags=0,this.os=0,this.extra=null,this.extra_len=0,this.name="",this.comment="",this.hcrc=0,this.done=!1}I.exports=p},{}],39:[function(b,I,y){var p=30,o=12;I.exports=function(h,i){var d,_,m,r,s,l,g,w,x,D,V,L,A,F,N,W,$,J,j,Z,ee,ne,S,C,R;d=h.state,_=h.next_in,C=h.input,m=_+(h.avail_in-5),r=h.next_out,R=h.output,s=r-(i-h.avail_out),l=r+(h.avail_out-257),g=d.dmax,w=d.wsize,x=d.whave,D=d.wnext,V=d.window,L=d.hold,A=d.bits,F=d.lencode,N=d.distcode,W=(1<<d.lenbits)-1,$=(1<<d.distbits)-1;e:do{A<15&&(L+=C[_++]<<A,A+=8,L+=C[_++]<<A,A+=8),J=F[L&W];t:for(;;){if(j=J>>>24,L>>>=j,A-=j,j=J>>>16&255,j===0)R[r++]=J&65535;else if(j&16){Z=J&65535,j&=15,j&&(A<j&&(L+=C[_++]<<A,A+=8),Z+=L&(1<<j)-1,L>>>=j,A-=j),A<15&&(L+=C[_++]<<A,A+=8,L+=C[_++]<<A,A+=8),J=N[L&$];r:for(;;){if(j=J>>>24,L>>>=j,A-=j,j=J>>>16&255,j&16){if(ee=J&65535,j&=15,A<j&&(L+=C[_++]<<A,A+=8,A<j&&(L+=C[_++]<<A,A+=8)),ee+=L&(1<<j)-1,ee>g){h.msg="invalid distance too far back",d.mode=p;break e}if(L>>>=j,A-=j,j=r-s,ee>j){if(j=ee-j,j>x&&d.sane){h.msg="invalid distance too far back",d.mode=p;break e}if(ne=0,S=V,D===0){if(ne+=w-j,j<Z){Z-=j;do R[r++]=V[ne++];while(--j);ne=r-ee,S=R}}else if(D<j){if(ne+=w+D-j,j-=D,j<Z){Z-=j;do R[r++]=V[ne++];while(--j);if(ne=0,D<Z){j=D,Z-=j;do R[r++]=V[ne++];while(--j);ne=r-ee,S=R}}}else if(ne+=D-j,j<Z){Z-=j;do R[r++]=V[ne++];while(--j);ne=r-ee,S=R}for(;Z>2;)R[r++]=S[ne++],R[r++]=S[ne++],R[r++]=S[ne++],Z-=3;Z&&(R[r++]=S[ne++],Z>1&&(R[r++]=S[ne++]))}else{ne=r-ee;do R[r++]=R[ne++],R[r++]=R[ne++],R[r++]=R[ne++],Z-=3;while(Z>2);Z&&(R[r++]=R[ne++],Z>1&&(R[r++]=R[ne++]))}}else if(j&64){h.msg="invalid distance code",d.mode=p;break e}else{J=N[(J&65535)+(L&(1<<j)-1)];continue r}break}}else if(j&64)if(j&32){d.mode=o;break e}else{h.msg="invalid literal/length code",d.mode=p;break e}else{J=F[(J&65535)+(L&(1<<j)-1)];continue t}break}}while(_<m&&r<l);Z=A>>3,_-=Z,A-=Z<<3,L&=(1<<A)-1,h.next_in=_,h.next_out=r,h.avail_in=_<m?5+(m-_):5-(_-m),h.avail_out=r<l?257+(l-r):257-(r-l),d.hold=L,d.bits=A}},{}],40:[function(b,I,y){var p=b("../utils/common"),o=b("./adler32"),c=b("./crc32"),h=b("./inffast"),i=b("./inftrees"),d=0,_=1,m=2,r=4,s=5,l=6,g=0,w=1,x=2,D=-2,V=-3,L=-4,A=-5,F=8,N=1,W=2,$=3,J=4,j=5,Z=6,ee=7,ne=8,S=9,C=10,R=11,G=12,q=13,se=14,ae=15,pe=16,de=17,t=18,u=19,v=20,B=21,P=22,Y=23,K=24,le=25,ue=26,be=27,ke=28,Se=29,fe=30,Ee=31,De=32,ve=852,Re=592,me=15,he=me;function Be(T){return(T>>>24&255)+(T>>>8&65280)+((T&65280)<<8)+((T&255)<<24)}function We(){this.mode=0,this.last=!1,this.wrap=0,this.havedict=!1,this.flags=0,this.dmax=0,this.check=0,this.total=0,this.head=null,this.wbits=0,this.wsize=0,this.whave=0,this.wnext=0,this.window=null,this.hold=0,this.bits=0,this.length=0,this.offset=0,this.extra=0,this.lencode=null,this.distcode=null,this.lenbits=0,this.distbits=0,this.ncode=0,this.nlen=0,this.ndist=0,this.have=0,this.next=null,this.lens=new p.Buf16(320),this.work=new p.Buf16(288),this.lendyn=null,this.distdyn=null,this.sane=0,this.back=0,this.was=0}function Ye(T){var U;return!T||!T.state?D:(U=T.state,T.total_in=T.total_out=U.total=0,T.msg="",U.wrap&&(T.adler=U.wrap&1),U.mode=N,U.last=0,U.havedict=0,U.dmax=32768,U.head=null,U.hold=0,U.bits=0,U.lencode=U.lendyn=new p.Buf32(ve),U.distcode=U.distdyn=new p.Buf32(Re),U.sane=1,U.back=-1,g)}function ze(T){var U;return!T||!T.state?D:(U=T.state,U.wsize=0,U.whave=0,U.wnext=0,Ye(T))}function Xe(T,U){var n,H;return!T||!T.state||(H=T.state,U<0?(n=0,U=-U):(n=(U>>4)+1,U<48&&(U&=15)),U&&(U<8||U>15))?D:(H.window!==null&&H.wbits!==U&&(H.window=null),H.wrap=n,H.wbits=U,ze(T))}function He(T,U){var n,H;return T?(H=new We,T.state=H,H.window=null,n=Xe(T,U),n!==g&&(T.state=null),n):D}function Ue(T){return He(T,he)}var Ge=!0,je,Ie;function Ne(T){if(Ge){var U;for(je=new p.Buf32(512),Ie=new p.Buf32(32),U=0;U<144;)T.lens[U++]=8;for(;U<256;)T.lens[U++]=9;for(;U<280;)T.lens[U++]=7;for(;U<288;)T.lens[U++]=8;for(i(_,T.lens,0,288,je,0,T.work,{bits:9}),U=0;U<32;)T.lens[U++]=5;i(m,T.lens,0,32,Ie,0,T.work,{bits:5}),Ge=!1}T.lencode=je,T.lenbits=9,T.distcode=Ie,T.distbits=5}function Ve(T,U,n,H){var oe,e=T.state;return e.window===null&&(e.wsize=1<<e.wbits,e.wnext=0,e.whave=0,e.window=new p.Buf8(e.wsize)),H>=e.wsize?(p.arraySet(e.window,U,n-e.wsize,e.wsize,0),e.wnext=0,e.whave=e.wsize):(oe=e.wsize-e.wnext,oe>H&&(oe=H),p.arraySet(e.window,U,n-H,oe,e.wnext),H-=oe,H?(p.arraySet(e.window,U,n-H,H,0),e.wnext=H,e.whave=e.wsize):(e.wnext+=oe,e.wnext===e.wsize&&(e.wnext=0),e.whave<e.wsize&&(e.whave+=oe))),0}function f(T,U){var n,H,oe,e,O,z,a,E,k,ie,Q,re,ge,Fe,we=0,_e,Ae,Ce,Oe,$e,Qe,ye,Le,Te=new p.Buf8(4),Ze,Pe,et=[16,17,18,0,8,7,9,6,10,5,11,4,12,3,13,2,14,1,15];if(!T||!T.state||!T.output||!T.input&&T.avail_in!==0)return D;n=T.state,n.mode===G&&(n.mode=q),O=T.next_out,oe=T.output,a=T.avail_out,e=T.next_in,H=T.input,z=T.avail_in,E=n.hold,k=n.bits,ie=z,Q=a,Le=g;e:for(;;)switch(n.mode){case N:if(n.wrap===0){n.mode=q;break}for(;k<16;){if(z===0)break e;z--,E+=H[e++]<<k,k+=8}if(n.wrap&2&&E===35615){n.check=0,Te[0]=E&255,Te[1]=E>>>8&255,n.check=c(n.check,Te,2,0),E=0,k=0,n.mode=W;break}if(n.flags=0,n.head&&(n.head.done=!1),!(n.wrap&1)||(((E&255)<<8)+(E>>8))%31){T.msg="incorrect header check",n.mode=fe;break}if((E&15)!==F){T.msg="unknown compression method",n.mode=fe;break}if(E>>>=4,k-=4,ye=(E&15)+8,n.wbits===0)n.wbits=ye;else if(ye>n.wbits){T.msg="invalid window size",n.mode=fe;break}n.dmax=1<<ye,T.adler=n.check=1,n.mode=E&512?C:G,E=0,k=0;break;case W:for(;k<16;){if(z===0)break e;z--,E+=H[e++]<<k,k+=8}if(n.flags=E,(n.flags&255)!==F){T.msg="unknown compression method",n.mode=fe;break}if(n.flags&57344){T.msg="unknown header flags set",n.mode=fe;break}n.head&&(n.head.text=E>>8&1),n.flags&512&&(Te[0]=E&255,Te[1]=E>>>8&255,n.check=c(n.check,Te,2,0)),E=0,k=0,n.mode=$;case $:for(;k<32;){if(z===0)break e;z--,E+=H[e++]<<k,k+=8}n.head&&(n.head.time=E),n.flags&512&&(Te[0]=E&255,Te[1]=E>>>8&255,Te[2]=E>>>16&255,Te[3]=E>>>24&255,n.check=c(n.check,Te,4,0)),E=0,k=0,n.mode=J;case J:for(;k<16;){if(z===0)break e;z--,E+=H[e++]<<k,k+=8}n.head&&(n.head.xflags=E&255,n.head.os=E>>8),n.flags&512&&(Te[0]=E&255,Te[1]=E>>>8&255,n.check=c(n.check,Te,2,0)),E=0,k=0,n.mode=j;case j:if(n.flags&1024){for(;k<16;){if(z===0)break e;z--,E+=H[e++]<<k,k+=8}n.length=E,n.head&&(n.head.extra_len=E),n.flags&512&&(Te[0]=E&255,Te[1]=E>>>8&255,n.check=c(n.check,Te,2,0)),E=0,k=0}else n.head&&(n.head.extra=null);n.mode=Z;case Z:if(n.flags&1024&&(re=n.length,re>z&&(re=z),re&&(n.head&&(ye=n.head.extra_len-n.length,n.head.extra||(n.head.extra=new Array(n.head.extra_len)),p.arraySet(n.head.extra,H,e,re,ye)),n.flags&512&&(n.check=c(n.check,H,re,e)),z-=re,e+=re,n.length-=re),n.length))break e;n.length=0,n.mode=ee;case ee:if(n.flags&2048){if(z===0)break e;re=0;do ye=H[e+re++],n.head&&ye&&n.length<65536&&(n.head.name+=String.fromCharCode(ye));while(ye&&re<z);if(n.flags&512&&(n.check=c(n.check,H,re,e)),z-=re,e+=re,ye)break e}else n.head&&(n.head.name=null);n.length=0,n.mode=ne;case ne:if(n.flags&4096){if(z===0)break e;re=0;do ye=H[e+re++],n.head&&ye&&n.length<65536&&(n.head.comment+=String.fromCharCode(ye));while(ye&&re<z);if(n.flags&512&&(n.check=c(n.check,H,re,e)),z-=re,e+=re,ye)break e}else n.head&&(n.head.comment=null);n.mode=S;case S:if(n.flags&512){for(;k<16;){if(z===0)break e;z--,E+=H[e++]<<k,k+=8}if(E!==(n.check&65535)){T.msg="header crc mismatch",n.mode=fe;break}E=0,k=0}n.head&&(n.head.hcrc=n.flags>>9&1,n.head.done=!0),T.adler=n.check=0,n.mode=G;break;case C:for(;k<32;){if(z===0)break e;z--,E+=H[e++]<<k,k+=8}T.adler=n.check=Be(E),E=0,k=0,n.mode=R;case R:if(n.havedict===0)return T.next_out=O,T.avail_out=a,T.next_in=e,T.avail_in=z,n.hold=E,n.bits=k,x;T.adler=n.check=1,n.mode=G;case G:if(U===s||U===l)break e;case q:if(n.last){E>>>=k&7,k-=k&7,n.mode=be;break}for(;k<3;){if(z===0)break e;z--,E+=H[e++]<<k,k+=8}switch(n.last=E&1,E>>>=1,k-=1,E&3){case 0:n.mode=se;break;case 1:if(Ne(n),n.mode=v,U===l){E>>>=2,k-=2;break e}break;case 2:n.mode=de;break;case 3:T.msg="invalid block type",n.mode=fe}E>>>=2,k-=2;break;case se:for(E>>>=k&7,k-=k&7;k<32;){if(z===0)break e;z--,E+=H[e++]<<k,k+=8}if((E&65535)!==(E>>>16^65535)){T.msg="invalid stored block lengths",n.mode=fe;break}if(n.length=E&65535,E=0,k=0,n.mode=ae,U===l)break e;case ae:n.mode=pe;case pe:if(re=n.length,re){if(re>z&&(re=z),re>a&&(re=a),re===0)break e;p.arraySet(oe,H,e,re,O),z-=re,e+=re,a-=re,O+=re,n.length-=re;break}n.mode=G;break;case de:for(;k<14;){if(z===0)break e;z--,E+=H[e++]<<k,k+=8}if(n.nlen=(E&31)+257,E>>>=5,k-=5,n.ndist=(E&31)+1,E>>>=5,k-=5,n.ncode=(E&15)+4,E>>>=4,k-=4,n.nlen>286||n.ndist>30){T.msg="too many length or distance symbols",n.mode=fe;break}n.have=0,n.mode=t;case t:for(;n.have<n.ncode;){for(;k<3;){if(z===0)break e;z--,E+=H[e++]<<k,k+=8}n.lens[et[n.have++]]=E&7,E>>>=3,k-=3}for(;n.have<19;)n.lens[et[n.have++]]=0;if(n.lencode=n.lendyn,n.lenbits=7,Ze={bits:n.lenbits},Le=i(d,n.lens,0,19,n.lencode,0,n.work,Ze),n.lenbits=Ze.bits,Le){T.msg="invalid code lengths set",n.mode=fe;break}n.have=0,n.mode=u;case u:for(;n.have<n.nlen+n.ndist;){for(;we=n.lencode[E&(1<<n.lenbits)-1],_e=we>>>24,Ae=we>>>16&255,Ce=we&65535,!(_e<=k);){if(z===0)break e;z--,E+=H[e++]<<k,k+=8}if(Ce<16)E>>>=_e,k-=_e,n.lens[n.have++]=Ce;else{if(Ce===16){for(Pe=_e+2;k<Pe;){if(z===0)break e;z--,E+=H[e++]<<k,k+=8}if(E>>>=_e,k-=_e,n.have===0){T.msg="invalid bit length repeat",n.mode=fe;break}ye=n.lens[n.have-1],re=3+(E&3),E>>>=2,k-=2}else if(Ce===17){for(Pe=_e+3;k<Pe;){if(z===0)break e;z--,E+=H[e++]<<k,k+=8}E>>>=_e,k-=_e,ye=0,re=3+(E&7),E>>>=3,k-=3}else{for(Pe=_e+7;k<Pe;){if(z===0)break e;z--,E+=H[e++]<<k,k+=8}E>>>=_e,k-=_e,ye=0,re=11+(E&127),E>>>=7,k-=7}if(n.have+re>n.nlen+n.ndist){T.msg="invalid bit length repeat",n.mode=fe;break}for(;re--;)n.lens[n.have++]=ye}}if(n.mode===fe)break;if(n.lens[256]===0){T.msg="invalid code -- missing end-of-block",n.mode=fe;break}if(n.lenbits=9,Ze={bits:n.lenbits},Le=i(_,n.lens,0,n.nlen,n.lencode,0,n.work,Ze),n.lenbits=Ze.bits,Le){T.msg="invalid literal/lengths set",n.mode=fe;break}if(n.distbits=6,n.distcode=n.distdyn,Ze={bits:n.distbits},Le=i(m,n.lens,n.nlen,n.ndist,n.distcode,0,n.work,Ze),n.distbits=Ze.bits,Le){T.msg="invalid distances set",n.mode=fe;break}if(n.mode=v,U===l)break e;case v:n.mode=B;case B:if(z>=6&&a>=258){T.next_out=O,T.avail_out=a,T.next_in=e,T.avail_in=z,n.hold=E,n.bits=k,h(T,Q),O=T.next_out,oe=T.output,a=T.avail_out,e=T.next_in,H=T.input,z=T.avail_in,E=n.hold,k=n.bits,n.mode===G&&(n.back=-1);break}for(n.back=0;we=n.lencode[E&(1<<n.lenbits)-1],_e=we>>>24,Ae=we>>>16&255,Ce=we&65535,!(_e<=k);){if(z===0)break e;z--,E+=H[e++]<<k,k+=8}if(Ae&&!(Ae&240)){for(Oe=_e,$e=Ae,Qe=Ce;we=n.lencode[Qe+((E&(1<<Oe+$e)-1)>>Oe)],_e=we>>>24,Ae=we>>>16&255,Ce=we&65535,!(Oe+_e<=k);){if(z===0)break e;z--,E+=H[e++]<<k,k+=8}E>>>=Oe,k-=Oe,n.back+=Oe}if(E>>>=_e,k-=_e,n.back+=_e,n.length=Ce,Ae===0){n.mode=ue;break}if(Ae&32){n.back=-1,n.mode=G;break}if(Ae&64){T.msg="invalid literal/length code",n.mode=fe;break}n.extra=Ae&15,n.mode=P;case P:if(n.extra){for(Pe=n.extra;k<Pe;){if(z===0)break e;z--,E+=H[e++]<<k,k+=8}n.length+=E&(1<<n.extra)-1,E>>>=n.extra,k-=n.extra,n.back+=n.extra}n.was=n.length,n.mode=Y;case Y:for(;we=n.distcode[E&(1<<n.distbits)-1],_e=we>>>24,Ae=we>>>16&255,Ce=we&65535,!(_e<=k);){if(z===0)break e;z--,E+=H[e++]<<k,k+=8}if(!(Ae&240)){for(Oe=_e,$e=Ae,Qe=Ce;we=n.distcode[Qe+((E&(1<<Oe+$e)-1)>>Oe)],_e=we>>>24,Ae=we>>>16&255,Ce=we&65535,!(Oe+_e<=k);){if(z===0)break e;z--,E+=H[e++]<<k,k+=8}E>>>=Oe,k-=Oe,n.back+=Oe}if(E>>>=_e,k-=_e,n.back+=_e,Ae&64){T.msg="invalid distance code",n.mode=fe;break}n.offset=Ce,n.extra=Ae&15,n.mode=K;case K:if(n.extra){for(Pe=n.extra;k<Pe;){if(z===0)break e;z--,E+=H[e++]<<k,k+=8}n.offset+=E&(1<<n.extra)-1,E>>>=n.extra,k-=n.extra,n.back+=n.extra}if(n.offset>n.dmax){T.msg="invalid distance too far back",n.mode=fe;break}n.mode=le;case le:if(a===0)break e;if(re=Q-a,n.offset>re){if(re=n.offset-re,re>n.whave&&n.sane){T.msg="invalid distance too far back",n.mode=fe;break}re>n.wnext?(re-=n.wnext,ge=n.wsize-re):ge=n.wnext-re,re>n.length&&(re=n.length),Fe=n.window}else Fe=oe,ge=O-n.offset,re=n.length;re>a&&(re=a),a-=re,n.length-=re;do oe[O++]=Fe[ge++];while(--re);n.length===0&&(n.mode=B);break;case ue:if(a===0)break e;oe[O++]=n.length,a--,n.mode=B;break;case be:if(n.wrap){for(;k<32;){if(z===0)break e;z--,E|=H[e++]<<k,k+=8}if(Q-=a,T.total_out+=Q,n.total+=Q,Q&&(T.adler=n.check=n.flags?c(n.check,oe,Q,O-Q):o(n.check,oe,Q,O-Q)),Q=a,(n.flags?E:Be(E))!==n.check){T.msg="incorrect data check",n.mode=fe;break}E=0,k=0}n.mode=ke;case ke:if(n.wrap&&n.flags){for(;k<32;){if(z===0)break e;z--,E+=H[e++]<<k,k+=8}if(E!==(n.total&4294967295)){T.msg="incorrect length check",n.mode=fe;break}E=0,k=0}n.mode=Se;case Se:Le=w;break e;case fe:Le=V;break e;case Ee:return L;case De:default:return D}return T.next_out=O,T.avail_out=a,T.next_in=e,T.avail_in=z,n.hold=E,n.bits=k,(n.wsize||Q!==T.avail_out&&n.mode<fe&&(n.mode<be||U!==r))&&Ve(T,T.output,T.next_out,Q-T.avail_out),ie-=T.avail_in,Q-=T.avail_out,T.total_in+=ie,T.total_out+=Q,n.total+=Q,n.wrap&&Q&&(T.adler=n.check=n.flags?c(n.check,oe,Q,T.next_out-Q):o(n.check,oe,Q,T.next_out-Q)),T.data_type=n.bits+(n.last?64:0)+(n.mode===G?128:0)+(n.mode===v||n.mode===ae?256:0),(ie===0&&Q===0||U===r)&&Le===g&&(Le=A),Le}function M(T){if(!T||!T.state)return D;var U=T.state;return U.window&&(U.window=null),T.state=null,g}function X(T,U){var n;return!T||!T.state||(n=T.state,!(n.wrap&2))?D:(n.head=U,U.done=!1,g)}function te(T,U){var n=U.length,H,oe,e;return!T||!T.state||(H=T.state,H.wrap!==0&&H.mode!==R)?D:H.mode===R&&(oe=1,oe=o(oe,U,n,0),oe!==H.check)?V:(e=Ve(T,U,n,n),e?(H.mode=Ee,L):(H.havedict=1,g))}y.inflateReset=ze,y.inflateReset2=Xe,y.inflateResetKeep=Ye,y.inflateInit=Ue,y.inflateInit2=He,y.inflate=f,y.inflateEnd=M,y.inflateGetHeader=X,y.inflateSetDictionary=te,y.inflateInfo="pako inflate (from Nodeca project)"},{"../utils/common":32,"./adler32":34,"./crc32":36,"./inffast":39,"./inftrees":41}],41:[function(b,I,y){var p=b("../utils/common"),o=15,c=852,h=592,i=0,d=1,_=2,m=[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],s=[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],l=[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];I.exports=function(w,x,D,V,L,A,F,N){var W=N.bits,$=0,J=0,j=0,Z=0,ee=0,ne=0,S=0,C=0,R=0,G=0,q,se,ae,pe,de,t=null,u=0,v,B=new p.Buf16(o+1),P=new p.Buf16(o+1),Y=null,K=0,le,ue,be;for($=0;$<=o;$++)B[$]=0;for(J=0;J<V;J++)B[x[D+J]]++;for(ee=W,Z=o;Z>=1&&B[Z]===0;Z--);if(ee>Z&&(ee=Z),Z===0)return L[A++]=1<<24|64<<16|0,L[A++]=1<<24|64<<16|0,N.bits=1,0;for(j=1;j<Z&&B[j]===0;j++);for(ee<j&&(ee=j),C=1,$=1;$<=o;$++)if(C<<=1,C-=B[$],C<0)return-1;if(C>0&&(w===i||Z!==1))return-1;for(P[1]=0,$=1;$<o;$++)P[$+1]=P[$]+B[$];for(J=0;J<V;J++)x[D+J]!==0&&(F[P[x[D+J]]++]=J);if(w===i?(t=Y=F,v=19):w===d?(t=m,u-=257,Y=r,K-=257,v=256):(t=s,Y=l,v=-1),G=0,J=0,$=j,de=A,ne=ee,S=0,ae=-1,R=1<<ee,pe=R-1,w===d&&R>c||w===_&&R>h)return 1;for(;;){le=$-S,F[J]<v?(ue=0,be=F[J]):F[J]>v?(ue=Y[K+F[J]],be=t[u+F[J]]):(ue=96,be=0),q=1<<$-S,se=1<<ne,j=se;do se-=q,L[de+(G>>S)+se]=le<<24|ue<<16|be|0;while(se!==0);for(q=1<<$-1;G&q;)q>>=1;if(q!==0?(G&=q-1,G+=q):G=0,J++,--B[$]===0){if($===Z)break;$=x[D+F[J]]}if($>ee&&(G&pe)!==ae){for(S===0&&(S=ee),de+=j,ne=$-S,C=1<<ne;ne+S<Z&&(C-=B[ne+S],!(C<=0));)ne++,C<<=1;if(R+=1<<ne,w===d&&R>c||w===_&&R>h)return 1;ae=G&pe,L[ae]=ee<<24|ne<<16|de-A|0}}return G!==0&&(L[de+G]=$-S<<24|64<<16|0),N.bits=ee,0}},{"../utils/common":32}],42:[function(b,I,y){I.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"}},{}],43:[function(b,I,y){var p=b("../utils/common"),o=4,c=0,h=1,i=2;function d(f){for(var M=f.length;--M>=0;)f[M]=0}var _=0,m=1,r=2,s=3,l=258,g=29,w=256,x=w+1+g,D=30,V=19,L=2*x+1,A=15,F=16,N=7,W=256,$=16,J=17,j=18,Z=[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],ee=[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],ne=[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,2,3,7],S=[16,17,18,0,8,7,9,6,10,5,11,4,12,3,13,2,14,1,15],C=512,R=new Array((x+2)*2);d(R);var G=new Array(D*2);d(G);var q=new Array(C);d(q);var se=new Array(l-s+1);d(se);var ae=new Array(g);d(ae);var pe=new Array(D);d(pe);function de(f,M,X,te,T){this.static_tree=f,this.extra_bits=M,this.extra_base=X,this.elems=te,this.max_length=T,this.has_stree=f&&f.length}var t,u,v;function B(f,M){this.dyn_tree=f,this.max_code=0,this.stat_desc=M}function P(f){return f<256?q[f]:q[256+(f>>>7)]}function Y(f,M){f.pending_buf[f.pending++]=M&255,f.pending_buf[f.pending++]=M>>>8&255}function K(f,M,X){f.bi_valid>F-X?(f.bi_buf|=M<<f.bi_valid&65535,Y(f,f.bi_buf),f.bi_buf=M>>F-f.bi_valid,f.bi_valid+=X-F):(f.bi_buf|=M<<f.bi_valid&65535,f.bi_valid+=X)}function le(f,M,X){K(f,X[M*2],X[M*2+1])}function ue(f,M){var X=0;do X|=f&1,f>>>=1,X<<=1;while(--M>0);return X>>>1}function be(f){f.bi_valid===16?(Y(f,f.bi_buf),f.bi_buf=0,f.bi_valid=0):f.bi_valid>=8&&(f.pending_buf[f.pending++]=f.bi_buf&255,f.bi_buf>>=8,f.bi_valid-=8)}function ke(f,M){var X=M.dyn_tree,te=M.max_code,T=M.stat_desc.static_tree,U=M.stat_desc.has_stree,n=M.stat_desc.extra_bits,H=M.stat_desc.extra_base,oe=M.stat_desc.max_length,e,O,z,a,E,k,ie=0;for(a=0;a<=A;a++)f.bl_count[a]=0;for(X[f.heap[f.heap_max]*2+1]=0,e=f.heap_max+1;e<L;e++)O=f.heap[e],a=X[X[O*2+1]*2+1]+1,a>oe&&(a=oe,ie++),X[O*2+1]=a,!(O>te)&&(f.bl_count[a]++,E=0,O>=H&&(E=n[O-H]),k=X[O*2],f.opt_len+=k*(a+E),U&&(f.static_len+=k*(T[O*2+1]+E)));if(ie!==0){do{for(a=oe-1;f.bl_count[a]===0;)a--;f.bl_count[a]--,f.bl_count[a+1]+=2,f.bl_count[oe]--,ie-=2}while(ie>0);for(a=oe;a!==0;a--)for(O=f.bl_count[a];O!==0;)z=f.heap[--e],!(z>te)&&(X[z*2+1]!==a&&(f.opt_len+=(a-X[z*2+1])*X[z*2],X[z*2+1]=a),O--)}}function Se(f,M,X){var te=new Array(A+1),T=0,U,n;for(U=1;U<=A;U++)te[U]=T=T+X[U-1]<<1;for(n=0;n<=M;n++){var H=f[n*2+1];H!==0&&(f[n*2]=ue(te[H]++,H))}}function fe(){var f,M,X,te,T,U=new Array(A+1);for(X=0,te=0;te<g-1;te++)for(ae[te]=X,f=0;f<1<<Z[te];f++)se[X++]=te;for(se[X-1]=te,T=0,te=0;te<16;te++)for(pe[te]=T,f=0;f<1<<ee[te];f++)q[T++]=te;for(T>>=7;te<D;te++)for(pe[te]=T<<7,f=0;f<1<<ee[te]-7;f++)q[256+T++]=te;for(M=0;M<=A;M++)U[M]=0;for(f=0;f<=143;)R[f*2+1]=8,f++,U[8]++;for(;f<=255;)R[f*2+1]=9,f++,U[9]++;for(;f<=279;)R[f*2+1]=7,f++,U[7]++;for(;f<=287;)R[f*2+1]=8,f++,U[8]++;for(Se(R,x+1,U),f=0;f<D;f++)G[f*2+1]=5,G[f*2]=ue(f,5);t=new de(R,Z,w+1,x,A),u=new de(G,ee,0,D,A),v=new de(new Array(0),ne,0,V,N)}function Ee(f){var M;for(M=0;M<x;M++)f.dyn_ltree[M*2]=0;for(M=0;M<D;M++)f.dyn_dtree[M*2]=0;for(M=0;M<V;M++)f.bl_tree[M*2]=0;f.dyn_ltree[W*2]=1,f.opt_len=f.static_len=0,f.last_lit=f.matches=0}function De(f){f.bi_valid>8?Y(f,f.bi_buf):f.bi_valid>0&&(f.pending_buf[f.pending++]=f.bi_buf),f.bi_buf=0,f.bi_valid=0}function ve(f,M,X,te){De(f),te&&(Y(f,X),Y(f,~X)),p.arraySet(f.pending_buf,f.window,M,X,f.pending),f.pending+=X}function Re(f,M,X,te){var T=M*2,U=X*2;return f[T]<f[U]||f[T]===f[U]&&te[M]<=te[X]}function me(f,M,X){for(var te=f.heap[X],T=X<<1;T<=f.heap_len&&(T<f.heap_len&&Re(M,f.heap[T+1],f.heap[T],f.depth)&&T++,!Re(M,te,f.heap[T],f.depth));)f.heap[X]=f.heap[T],X=T,T<<=1;f.heap[X]=te}function he(f,M,X){var te,T,U=0,n,H;if(f.last_lit!==0)do te=f.pending_buf[f.d_buf+U*2]<<8|f.pending_buf[f.d_buf+U*2+1],T=f.pending_buf[f.l_buf+U],U++,te===0?le(f,T,M):(n=se[T],le(f,n+w+1,M),H=Z[n],H!==0&&(T-=ae[n],K(f,T,H)),te--,n=P(te),le(f,n,X),H=ee[n],H!==0&&(te-=pe[n],K(f,te,H)));while(U<f.last_lit);le(f,W,M)}function Be(f,M){var X=M.dyn_tree,te=M.stat_desc.static_tree,T=M.stat_desc.has_stree,U=M.stat_desc.elems,n,H,oe=-1,e;for(f.heap_len=0,f.heap_max=L,n=0;n<U;n++)X[n*2]!==0?(f.heap[++f.heap_len]=oe=n,f.depth[n]=0):X[n*2+1]=0;for(;f.heap_len<2;)e=f.heap[++f.heap_len]=oe<2?++oe:0,X[e*2]=1,f.depth[e]=0,f.opt_len--,T&&(f.static_len-=te[e*2+1]);for(M.max_code=oe,n=f.heap_len>>1;n>=1;n--)me(f,X,n);e=U;do n=f.heap[1],f.heap[1]=f.heap[f.heap_len--],me(f,X,1),H=f.heap[1],f.heap[--f.heap_max]=n,f.heap[--f.heap_max]=H,X[e*2]=X[n*2]+X[H*2],f.depth[e]=(f.depth[n]>=f.depth[H]?f.depth[n]:f.depth[H])+1,X[n*2+1]=X[H*2+1]=e,f.heap[1]=e++,me(f,X,1);while(f.heap_len>=2);f.heap[--f.heap_max]=f.heap[1],ke(f,M),Se(X,oe,f.bl_count)}function We(f,M,X){var te,T=-1,U,n=M[0*2+1],H=0,oe=7,e=4;for(n===0&&(oe=138,e=3),M[(X+1)*2+1]=65535,te=0;te<=X;te++)U=n,n=M[(te+1)*2+1],!(++H<oe&&U===n)&&(H<e?f.bl_tree[U*2]+=H:U!==0?(U!==T&&f.bl_tree[U*2]++,f.bl_tree[$*2]++):H<=10?f.bl_tree[J*2]++:f.bl_tree[j*2]++,H=0,T=U,n===0?(oe=138,e=3):U===n?(oe=6,e=3):(oe=7,e=4))}function Ye(f,M,X){var te,T=-1,U,n=M[0*2+1],H=0,oe=7,e=4;for(n===0&&(oe=138,e=3),te=0;te<=X;te++)if(U=n,n=M[(te+1)*2+1],!(++H<oe&&U===n)){if(H<e)do le(f,U,f.bl_tree);while(--H!==0);else U!==0?(U!==T&&(le(f,U,f.bl_tree),H--),le(f,$,f.bl_tree),K(f,H-3,2)):H<=10?(le(f,J,f.bl_tree),K(f,H-3,3)):(le(f,j,f.bl_tree),K(f,H-11,7));H=0,T=U,n===0?(oe=138,e=3):U===n?(oe=6,e=3):(oe=7,e=4)}}function ze(f){var M;for(We(f,f.dyn_ltree,f.l_desc.max_code),We(f,f.dyn_dtree,f.d_desc.max_code),Be(f,f.bl_desc),M=V-1;M>=3&&f.bl_tree[S[M]*2+1]===0;M--);return f.opt_len+=3*(M+1)+5+5+4,M}function Xe(f,M,X,te){var T;for(K(f,M-257,5),K(f,X-1,5),K(f,te-4,4),T=0;T<te;T++)K(f,f.bl_tree[S[T]*2+1],3);Ye(f,f.dyn_ltree,M-1),Ye(f,f.dyn_dtree,X-1)}function He(f){var M=4093624447,X;for(X=0;X<=31;X++,M>>>=1)if(M&1&&f.dyn_ltree[X*2]!==0)return c;if(f.dyn_ltree[9*2]!==0||f.dyn_ltree[10*2]!==0||f.dyn_ltree[13*2]!==0)return h;for(X=32;X<w;X++)if(f.dyn_ltree[X*2]!==0)return h;return c}var Ue=!1;function Ge(f){Ue||(fe(),Ue=!0),f.l_desc=new B(f.dyn_ltree,t),f.d_desc=new B(f.dyn_dtree,u),f.bl_desc=new B(f.bl_tree,v),f.bi_buf=0,f.bi_valid=0,Ee(f)}function je(f,M,X,te){K(f,(_<<1)+(te?1:0),3),ve(f,M,X,!0)}function Ie(f){K(f,m<<1,3),le(f,W,R),be(f)}function Ne(f,M,X,te){var T,U,n=0;f.level>0?(f.strm.data_type===i&&(f.strm.data_type=He(f)),Be(f,f.l_desc),Be(f,f.d_desc),n=ze(f),T=f.opt_len+3+7>>>3,U=f.static_len+3+7>>>3,U<=T&&(T=U)):T=U=X+5,X+4<=T&&M!==-1?je(f,M,X,te):f.strategy===o||U===T?(K(f,(m<<1)+(te?1:0),3),he(f,R,G)):(K(f,(r<<1)+(te?1:0),3),Xe(f,f.l_desc.max_code+1,f.d_desc.max_code+1,n+1),he(f,f.dyn_ltree,f.dyn_dtree)),Ee(f),te&&De(f)}function Ve(f,M,X){return f.pending_buf[f.d_buf+f.last_lit*2]=M>>>8&255,f.pending_buf[f.d_buf+f.last_lit*2+1]=M&255,f.pending_buf[f.l_buf+f.last_lit]=X&255,f.last_lit++,M===0?f.dyn_ltree[X*2]++:(f.matches++,M--,f.dyn_ltree[(se[X]+w+1)*2]++,f.dyn_dtree[P(M)*2]++),f.last_lit===f.lit_bufsize-1}y._tr_init=Ge,y._tr_stored_block=je,y._tr_flush_block=Ne,y._tr_tally=Ve,y._tr_align=Ie},{"../utils/common":32}],44:[function(b,I,y){function p(){this.input=null,this.next_in=0,this.avail_in=0,this.total_in=0,this.output=null,this.next_out=0,this.avail_out=0,this.total_out=0,this.msg="",this.state=null,this.data_type=2,this.adler=0}I.exports=p},{}],45:[function(b,I,y){var p=b("lodash._root"),o=1/0,c="[object Symbol]",h=/[&<>"'`]/g,i=RegExp(h.source),d={"&":"&amp;","<":"&lt;",">":"&gt;",'"':"&quot;","'":"&#39;","`":"&#96;"};function _(L){return d[L]}var m=Object.prototype,r=m.toString,s=p.Symbol,l=s?s.prototype:void 0,g=s?l.toString:void 0;function w(L){return!!L&&typeof L=="object"}function x(L){return typeof L=="symbol"||w(L)&&r.call(L)==c}function D(L){if(typeof L=="string")return L;if(L==null)return"";if(x(L))return s?g.call(L):"";var A=L+"";return A=="0"&&1/L==-o?"-0":A}function V(L){return L=D(L),L&&i.test(L)?L.replace(h,_):L}I.exports=V},{"lodash._root":46}],46:[function(b,I,y){(function(p){var o={function:!0,object:!0},c=o[typeof y]&&y&&!y.nodeType?y:void 0,h=o[typeof I]&&I&&!I.nodeType?I:void 0,i=s(c&&h&&typeof p=="object"&&p),d=s(o[typeof self]&&self),_=s(o[typeof window]&&window),m=s(o[typeof this]&&this),r=i||_!==(m&&m.window)&&_||d||m||Function("return this")();function s(l){return l&&l.Object===Object?l:null}I.exports=r}).call(this,typeof self<"u"?self:typeof window<"u"?window:{})},{}],47:[function(b,I,y){var p=b("lodash._arraycopy"),o=b("lodash._arrayeach"),c=b("lodash._createassigner"),h=b("lodash.isarguments"),i=b("lodash.isarray"),d=b("lodash.isplainobject"),_=b("lodash.istypedarray"),m=b("lodash.keys"),r=b("lodash.toplainobject");function s(N){return!!N&&typeof N=="object"}var l=9007199254740991;function g(N,W,$,J,j){if(!A(N))return N;var Z=V(W)&&(i(W)||_(W)),ee=Z?void 0:m(W);return o(ee||W,function(ne,S){if(ee&&(S=ne,ne=W[S]),s(ne))J||(J=[]),j||(j=[]),w(N,W,S,g,$,J,j);else{var C=N[S],R=$?$(C,ne,S,N,W):void 0,G=R===void 0;G&&(R=ne),(R!==void 0||Z&&!(S in N))&&(G||(R===R?R!==C:C===C))&&(N[S]=R)}}),N}function w(N,W,$,J,j,Z,ee){for(var ne=Z.length,S=W[$];ne--;)if(Z[ne]==S){N[$]=ee[ne];return}var C=N[$],R=j?j(C,S,$,N,W):void 0,G=R===void 0;G&&(R=S,V(S)&&(i(S)||_(S))?R=i(C)?C:V(C)?p(C):[]:d(S)||h(S)?R=h(C)?r(C):d(C)?C:{}:G=!1),Z.push(S),ee.push(R),G?N[$]=J(R,S,j,Z,ee):(R===R?R!==C:C===C)&&(N[$]=R)}function x(N){return function(W){return W==null?void 0:W[N]}}var D=x("length");function V(N){return N!=null&&L(D(N))}function L(N){return typeof N=="number"&&N>-1&&N%1==0&&N<=l}function A(N){var W=typeof N;return!!N&&(W=="object"||W=="function")}var F=c(g);I.exports=F},{"lodash._arraycopy":48,"lodash._arrayeach":49,"lodash._createassigner":50,"lodash.isarguments":55,"lodash.isarray":56,"lodash.isplainobject":57,"lodash.istypedarray":59,"lodash.keys":60,"lodash.toplainobject":62}],48:[function(b,I,y){function p(o,c){var h=-1,i=o.length;for(c||(c=Array(i));++h<i;)c[h]=o[h];return c}I.exports=p},{}],49:[function(b,I,y){function p(o,c){for(var h=-1,i=o.length;++h<i&&c(o[h],h,o)!==!1;);return o}I.exports=p},{}],50:[function(b,I,y){var p=b("lodash._bindcallback"),o=b("lodash._isiterateecall"),c=b("lodash.restparam");function h(i){return c(function(d,_){var m=-1,r=d==null?0:_.length,s=r>2?_[r-2]:void 0,l=r>2?_[2]:void 0,g=r>1?_[r-1]:void 0;for(typeof s=="function"?(s=p(s,g,5),r-=2):(s=typeof g=="function"?g:void 0,r-=s?1:0),l&&o(_[0],_[1],l)&&(s=r<3?void 0:s,r=1);++m<r;){var w=_[m];w&&i(d,w,s)}return d})}I.exports=h},{"lodash._bindcallback":51,"lodash._isiterateecall":52,"lodash.restparam":53}],51:[function(b,I,y){function p(c,h,i){if(typeof c!="function")return o;if(h===void 0)return c;switch(i){case 1:return function(d){return c.call(h,d)};case 3:return function(d,_,m){return c.call(h,d,_,m)};case 4:return function(d,_,m,r){return c.call(h,d,_,m,r)};case 5:return function(d,_,m,r,s){return c.call(h,d,_,m,r,s)}}return function(){return c.apply(h,arguments)}}function o(c){return c}I.exports=p},{}],52:[function(b,I,y){var p=/^\d+$/,o=9007199254740991;function c(s){return function(l){return l==null?void 0:l[s]}}var h=c("length");function i(s){return s!=null&&m(h(s))}function d(s,l){return s=typeof s=="number"||p.test(s)?+s:-1,l=l??o,s>-1&&s%1==0&&s<l}function _(s,l,g){if(!r(g))return!1;var w=typeof l;if(w=="number"?i(g)&&d(l,g.length):w=="string"&&l in g){var x=g[l];return s===s?s===x:x!==x}return!1}function m(s){return typeof s=="number"&&s>-1&&s%1==0&&s<=o}function r(s){var l=typeof s;return!!s&&(l=="object"||l=="function")}I.exports=_},{}],53:[function(b,I,y){var p="Expected a function",o=Math.max;function c(h,i){if(typeof h!="function")throw new TypeError(p);return i=o(i===void 0?h.length-1:+i||0,0),function(){for(var d=arguments,_=-1,m=o(d.length-i,0),r=Array(m);++_<m;)r[_]=d[i+_];switch(i){case 0:return h.call(this,r);case 1:return h.call(this,d[0],r);case 2:return h.call(this,d[0],d[1],r)}var s=Array(i+1);for(_=-1;++_<i;)s[_]=d[_];return s[i]=r,h.apply(this,s)}}I.exports=c},{}],54:[function(b,I,y){var p="[object Function]",o=/^\[object .+?Constructor\]$/;function c(w){return!!w&&typeof w=="object"}var h=Object.prototype,i=Function.prototype.toString,d=h.hasOwnProperty,_=h.toString,m=RegExp("^"+i.call(d).replace(/[\\^$.*+?()[\]{}|]/g,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");function r(w,x){var D=w==null?void 0:w[x];return g(D)?D:void 0}function s(w){return l(w)&&_.call(w)==p}function l(w){var x=typeof w;return!!w&&(x=="object"||x=="function")}function g(w){return w==null?!1:s(w)?m.test(i.call(w)):c(w)&&o.test(w)}I.exports=r},{}],55:[function(b,I,y){var p=9007199254740991,o="[object Arguments]",c="[object Function]",h="[object GeneratorFunction]",i=Object.prototype,d=i.hasOwnProperty,_=i.toString,m=i.propertyIsEnumerable;function r(A){return function(F){return F==null?void 0:F[A]}}var s=r("length");function l(A){return w(A)&&d.call(A,"callee")&&(!m.call(A,"callee")||_.call(A)==o)}function g(A){return A!=null&&D(s(A))&&!x(A)}function w(A){return L(A)&&g(A)}function x(A){var F=V(A)?_.call(A):"";return F==c||F==h}function D(A){return typeof A=="number"&&A>-1&&A%1==0&&A<=p}function V(A){var F=typeof A;return!!A&&(F=="object"||F=="function")}function L(A){return!!A&&typeof A=="object"}I.exports=l},{}],56:[function(b,I,y){var p="[object Array]",o="[object Function]",c=/^\[object .+?Constructor\]$/;function h(A){return!!A&&typeof A=="object"}var i=Object.prototype,d=Function.prototype.toString,_=i.hasOwnProperty,m=i.toString,r=RegExp("^"+d.call(_).replace(/[\\^$.*+?()[\]{}|]/g,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$"),s=g(Array,"isArray"),l=9007199254740991;function g(A,F){var N=A==null?void 0:A[F];return L(N)?N:void 0}function w(A){return typeof A=="number"&&A>-1&&A%1==0&&A<=l}var x=s||function(A){return h(A)&&w(A.length)&&m.call(A)==p};function D(A){return V(A)&&m.call(A)==o}function V(A){var F=typeof A;return!!A&&(F=="object"||F=="function")}function L(A){return A==null?!1:D(A)?r.test(d.call(A)):h(A)&&c.test(A)}I.exports=x},{}],57:[function(b,I,y){var p=b("lodash._basefor"),o=b("lodash.isarguments"),c=b("lodash.keysin"),h="[object Object]";function i(l){return!!l&&typeof l=="object"}var d=Object.prototype,_=d.hasOwnProperty,m=d.toString;function r(l,g){return p(l,g,c)}function s(l){var g;if(!(i(l)&&m.call(l)==h&&!o(l))||!_.call(l,"constructor")&&(g=l.constructor,typeof g=="function"&&!(g instanceof g)))return!1;var w;return r(l,function(x,D){w=D}),w===void 0||_.call(l,w)}I.exports=s},{"lodash._basefor":58,"lodash.isarguments":55,"lodash.keysin":61}],58:[function(b,I,y){var p=o();function o(c){return function(h,i,d){for(var _=-1,m=Object(h),r=d(h),s=r.length;s--;){var l=r[c?s:++_];if(i(m[l],l,m)===!1)break}return h}}I.exports=p},{}],59:[function(b,I,y){var p=9007199254740991,o="[object Arguments]",c="[object Array]",h="[object Boolean]",i="[object Date]",d="[object Error]",_="[object Function]",m="[object Map]",r="[object Number]",s="[object Object]",l="[object RegExp]",g="[object Set]",w="[object String]",x="[object WeakMap]",D="[object ArrayBuffer]",V="[object DataView]",L="[object Float32Array]",A="[object Float64Array]",F="[object Int8Array]",N="[object Int16Array]",W="[object Int32Array]",$="[object Uint8Array]",J="[object Uint8ClampedArray]",j="[object Uint16Array]",Z="[object Uint32Array]",ee={};ee[L]=ee[A]=ee[F]=ee[N]=ee[W]=ee[$]=ee[J]=ee[j]=ee[Z]=!0,ee[o]=ee[c]=ee[D]=ee[h]=ee[V]=ee[i]=ee[d]=ee[_]=ee[m]=ee[r]=ee[s]=ee[l]=ee[g]=ee[w]=ee[x]=!1;var ne=Object.prototype,S=ne.toString;function C(q){return typeof q=="number"&&q>-1&&q%1==0&&q<=p}function R(q){return!!q&&typeof q=="object"}function G(q){return R(q)&&C(q.length)&&!!ee[S.call(q)]}I.exports=G},{}],60:[function(b,I,y){var p=b("lodash._getnative"),o=b("lodash.isarguments"),c=b("lodash.isarray"),h=/^\d+$/,i=Object.prototype,d=i.hasOwnProperty,_=p(Object,"keys"),m=9007199254740991;function r(A){return function(F){return F==null?void 0:F[A]}}var s=r("length");function l(A){return A!=null&&w(s(A))}function g(A,F){return A=typeof A=="number"||h.test(A)?+A:-1,F=F??m,A>-1&&A%1==0&&A<F}function w(A){return typeof A=="number"&&A>-1&&A%1==0&&A<=m}function x(A){for(var F=L(A),N=F.length,W=N&&A.length,$=!!W&&w(W)&&(c(A)||o(A)),J=-1,j=[];++J<N;){var Z=F[J];($&&g(Z,W)||d.call(A,Z))&&j.push(Z)}return j}function D(A){var F=typeof A;return!!A&&(F=="object"||F=="function")}var V=_?function(A){var F=A==null?void 0:A.constructor;return typeof F=="function"&&F.prototype===A||typeof A!="function"&&l(A)?x(A):D(A)?_(A):[]}:x;function L(A){if(A==null)return[];D(A)||(A=Object(A));var F=A.length;F=F&&w(F)&&(c(A)||o(A))&&F||0;for(var N=A.constructor,W=-1,$=typeof N=="function"&&N.prototype===A,J=Array(F),j=F>0;++W<F;)J[W]=W+"";for(var Z in A)!(j&&g(Z,F))&&!(Z=="constructor"&&($||!d.call(A,Z)))&&J.push(Z);return J}I.exports=V},{"lodash._getnative":54,"lodash.isarguments":55,"lodash.isarray":56}],61:[function(b,I,y){var p=b("lodash.isarguments"),o=b("lodash.isarray"),c=/^\d+$/,h=Object.prototype,i=h.hasOwnProperty,d=9007199254740991;function _(l,g){return l=typeof l=="number"||c.test(l)?+l:-1,g=g??d,l>-1&&l%1==0&&l<g}function m(l){return typeof l=="number"&&l>-1&&l%1==0&&l<=d}function r(l){var g=typeof l;return!!l&&(g=="object"||g=="function")}function s(l){if(l==null)return[];r(l)||(l=Object(l));var g=l.length;g=g&&m(g)&&(o(l)||p(l))&&g||0;for(var w=l.constructor,x=-1,D=typeof w=="function"&&w.prototype===l,V=Array(g),L=g>0;++x<g;)V[x]=x+"";for(var A in l)!(L&&_(A,g))&&!(A=="constructor"&&(D||!i.call(l,A)))&&V.push(A);return V}I.exports=s},{"lodash.isarguments":55,"lodash.isarray":56}],62:[function(b,I,y){var p=b("lodash._basecopy"),o=b("lodash.keysin");function c(h){return p(h,o(h))}I.exports=c},{"lodash._basecopy":63,"lodash.keysin":61}],63:[function(b,I,y){function p(o,c,h){h||(h={});for(var i=-1,d=c.length;++i<d;){var _=c[i];h[_]=o[_]}return h}I.exports=p},{}],64:[function(b,I,y){var p,o;p=b("jszip"),o=b("./internal"),I.exports={asBlob:function(c,h){var i;return i=new p,o.addFiles(i,c,h),o.generateDocument(i)}}},{"./internal":65,jszip:14}],65:[function(b,I,y){(function(p,o){var c,h,i;c=b("./templates/document"),h=b("./utils"),i={merge:b("lodash.merge")},I.exports={generateDocument:function(d){var _;if(_=d.generate({type:"arraybuffer"}),p.Blob)return new Blob([_],{type:"application/vnd.openxmlformats-officedocument.wordprocessingml.document"});if(p.Buffer)return new o(new Uint8Array(_));throw new Error("Neither Blob nor Buffer are accessible in this environment. Consider adding Blob.js shim")},renderDocumentFile:function(d){var _;return d==null&&(d={}),_=i.merge({margins:{top:1440,right:700,bottom:1440,left:700,header:720,footer:720,gutter:0}},function(){switch(d.orientation){case"landscape":return{height:12240,width:15840,orient:"landscape"};default:return{width:12240,height:15840,orient:"portrait"}}}(),{margins:d.margins}),c(_)},addFiles:function(d,_,m){return d.file("[Content_Types].xml",o("PD94bWwgdmVyc2lvbj0iMS4wIiBlbmNvZGluZz0iVVRGLTgiIHN0YW5kYWxvbmU9InllcyI/Pgo8VHlwZXMgeG1sbnM9Imh0dHA6Ly9zY2hlbWFzLm9wZW54bWxmb3JtYXRzLm9yZy9wYWNrYWdlLzIwMDYvY29udGVudC10eXBlcyI+CiAgPERlZmF1bHQgRXh0ZW5zaW9uPSJyZWxzIiBDb250ZW50VHlwZT0KICAgICJhcHBsaWNhdGlvbi92bmQub3BlbnhtbGZvcm1hdHMtcGFja2FnZS5yZWxhdGlvbnNoaXBzK3htbCIgLz4KICA8T3ZlcnJpZGUgUGFydE5hbWU9Ii93b3JkL2RvY3VtZW50LnhtbCIgQ29udGVudFR5cGU9CiAgICAiYXBwbGljYXRpb24vdm5kLm9wZW54bWxmb3JtYXRzLW9mZmljZWRvY3VtZW50LndvcmRwcm9jZXNzaW5nbWwuZG9jdW1lbnQubWFpbit4bWwiLz4KICA8T3ZlcnJpZGUgUGFydE5hbWU9Ii93b3JkL2FmY2h1bmsubWh0IiBDb250ZW50VHlwZT0ibWVzc2FnZS9yZmM4MjIiLz4KPC9UeXBlcz4K","base64")),d.folder("_rels").file(".rels",o("PD94bWwgdmVyc2lvbj0iMS4wIiBlbmNvZGluZz0iVVRGLTgiIHN0YW5kYWxvbmU9InllcyI/Pgo8UmVsYXRpb25zaGlwcyB4bWxucz0iaHR0cDovL3NjaGVtYXMub3BlbnhtbGZvcm1hdHMub3JnL3BhY2thZ2UvMjAwNi9yZWxhdGlvbnNoaXBzIj4KICA8UmVsYXRpb25zaGlwCiAgICAgIFR5cGU9Imh0dHA6Ly9zY2hlbWFzLm9wZW54bWxmb3JtYXRzLm9yZy9vZmZpY2VEb2N1bWVudC8yMDA2L3JlbGF0aW9uc2hpcHMvb2ZmaWNlRG9jdW1lbnQiCiAgICAgIFRhcmdldD0iL3dvcmQvZG9jdW1lbnQueG1sIiBJZD0iUjA5YzgzZmFmYzA2NzQ4OGUiIC8+CjwvUmVsYXRpb25zaGlwcz4K","base64")),d.folder("word").file("document.xml",this.renderDocumentFile(m)).file("afchunk.mht",h.getMHTdocument(_)).folder("_rels").file("document.xml.rels",o("PD94bWwgdmVyc2lvbj0iMS4wIiBlbmNvZGluZz0iVVRGLTgiIHN0YW5kYWxvbmU9InllcyI/Pgo8UmVsYXRpb25zaGlwcyB4bWxucz0iaHR0cDovL3NjaGVtYXMub3BlbnhtbGZvcm1hdHMub3JnL3BhY2thZ2UvMjAwNi9yZWxhdGlvbnNoaXBzIj4KICA8UmVsYXRpb25zaGlwIFR5cGU9Imh0dHA6Ly9zY2hlbWFzLm9wZW54bWxmb3JtYXRzLm9yZy9vZmZpY2VEb2N1bWVudC8yMDA2L3JlbGF0aW9uc2hpcHMvYUZDaHVuayIKICAgIFRhcmdldD0iL3dvcmQvYWZjaHVuay5taHQiIElkPSJodG1sQ2h1bmsiIC8+CjwvUmVsYXRpb25zaGlwcz4K","base64"))}}}).call(this,typeof self<"u"?self:typeof window<"u"?window:{},b("buffer").Buffer)},{"./templates/document":66,"./utils":69,buffer:1,"lodash.merge":47}],66:[function(b,I,y){b("lodash.escape"),I.exports=function(p){var o,c="";return c+=`<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
3
+ <w:document
4
+ xmlns:w="http://schemas.openxmlformats.org/wordprocessingml/2006/main"
5
+ xmlns:m="http://schemas.openxmlformats.org/officeDocument/2006/math"
6
+ xmlns:r="http://schemas.openxmlformats.org/officeDocument/2006/relationships"
7
+ xmlns:wp="http://schemas.openxmlformats.org/drawingml/2006/wordprocessingDrawing"
8
+ xmlns:a="http://schemas.openxmlformats.org/drawingml/2006/main"
9
+ xmlns:ns6="http://schemas.openxmlformats.org/schemaLibrary/2006/main"
10
+ xmlns:c="http://schemas.openxmlformats.org/drawingml/2006/chart"
11
+ xmlns:ns8="http://schemas.openxmlformats.org/drawingml/2006/chartDrawing"
12
+ xmlns:dgm="http://schemas.openxmlformats.org/drawingml/2006/diagram"
13
+ xmlns:pic="http://schemas.openxmlformats.org/drawingml/2006/picture"
14
+ xmlns:ns11="http://schemas.openxmlformats.org/drawingml/2006/spreadsheetDrawing"
15
+ xmlns:dsp="http://schemas.microsoft.com/office/drawing/2008/diagram"
16
+ xmlns:ns13="urn:schemas-microsoft-com:office:excel"
17
+ xmlns:o="urn:schemas-microsoft-com:office:office"
18
+ xmlns:v="urn:schemas-microsoft-com:vml"
19
+ xmlns:w10="urn:schemas-microsoft-com:office:word"
20
+ xmlns:ns17="urn:schemas-microsoft-com:office:powerpoint"
21
+ xmlns:odx="http://opendope.org/xpaths"
22
+ xmlns:odc="http://opendope.org/conditions"
23
+ xmlns:odq="http://opendope.org/questions"
24
+ xmlns:odi="http://opendope.org/components"
25
+ xmlns:odgm="http://opendope.org/SmartArt/DataHierarchy"
26
+ xmlns:ns24="http://schemas.openxmlformats.org/officeDocument/2006/bibliography"
27
+ xmlns:ns25="http://schemas.openxmlformats.org/drawingml/2006/compatibility"
28
+ xmlns:ns26="http://schemas.openxmlformats.org/drawingml/2006/lockedCanvas">
29
+ <w:body>
30
+ <w:altChunk r:id="htmlChunk" />
31
+ <w:sectPr>
32
+ <w:pgSz w:w="`+((o=p.width)==null?"":o)+'" w:h="'+((o=p.height)==null?"":o)+'" w:orient="'+((o=p.orient)==null?"":o)+`" />
33
+ <w:pgMar w:top="`+((o=p.margins.top)==null?"":o)+`"
34
+ w:right="`+((o=p.margins.right)==null?"":o)+`"
35
+ w:bottom="`+((o=p.margins.bottom)==null?"":o)+`"
36
+ w:left="`+((o=p.margins.left)==null?"":o)+`"
37
+ w:header="`+((o=p.margins.header)==null?"":o)+`"
38
+ w:footer="`+((o=p.margins.footer)==null?"":o)+`"
39
+ w:gutter="`+((o=p.margins.gutter)==null?"":o)+`"/>
40
+ </w:sectPr>
41
+ </w:body>
42
+ </w:document>
43
+ `,c}},{"lodash.escape":45}],67:[function(b,I,y){b("lodash.escape"),I.exports=function(p){var o,c="";return c+=`MIME-Version: 1.0
44
+ Content-Type: multipart/related;
45
+ type="text/html";
46
+ boundary="----=mhtDocumentPart"
47
+
48
+
49
+ ------=mhtDocumentPart
50
+ Content-Type: text/html;
51
+ charset="utf-8"
52
+ Content-Transfer-Encoding: quoted-printable
53
+ Content-Location: file:///C:/fake/document.html
54
+
55
+ `+((o=p.htmlSource)==null?"":o)+`
56
+
57
+ `+((o=p.contentParts)==null?"":o)+`
58
+
59
+ ------=mhtDocumentPart--
60
+ `,c}},{"lodash.escape":45}],68:[function(b,I,y){b("lodash.escape"),I.exports=function(p){var o,c="";return c+=`------=mhtDocumentPart
61
+ Content-Type: `+((o=p.contentType)==null?"":o)+`
62
+ Content-Transfer-Encoding: `+((o=p.contentEncoding)==null?"":o)+`
63
+ Content-Location: `+((o=p.contentLocation)==null?"":o)+`
64
+
65
+ `+((o=p.encodedContent)==null?"":o)+`
66
+ `,c}},{"lodash.escape":45}],69:[function(b,I,y){var p,o;p=b("./templates/mht_document"),o=b("./templates/mht_part"),I.exports={getMHTdocument:function(c){var h,i;return i=this._prepareImageParts(c),c=i.htmlSource,h=i.imageContentParts,c=c.replace(/\=/g,"=3D"),p({htmlSource:c,contentParts:h.join(`
67
+ `)})},_prepareImageParts:function(c){var h,i,d;if(h=[],d=/"data:(\w+\/\w+);(\w+),(\S+)"/g,i=function(_,m,r,s){var l,g,w;return w=h.length,g=m.split("/")[1],l="file:///C:/fake/image"+w+"."+g,h.push(o({contentType:m,contentEncoding:r,contentLocation:l,encodedContent:s})),'"'+l+'"'},typeof c=="string")return/<img/g.test(c)?(c=c.replace(d,i),{htmlSource:c,imageContentParts:h}):{htmlSource:c,imageContentParts:h};throw new Error("Not a valid source provided!")}}},{"./templates/mht_document":67,"./templates/mht_part":68}]},{},[64])(64)})}});const nt=rt();/*! Bundled license information:
68
+
69
+ html-docx-js/dist/html-docx.js:
70
+ (*!
71
+ * The buffer module from node.js, for the browser.
72
+ *
73
+ * @author Feross Aboukhadijeh <feross@feross.org> <http://feross.org>
74
+ * @license MIT
75
+ *)
76
+ */var Je=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function it(ce){return ce&&ce.__esModule&&Object.prototype.hasOwnProperty.call(ce,"default")?ce.default:ce}var qe={exports:{}};(function(ce,xe){(function(b,I){I()})(Je,function(){function b(i,d){return typeof d>"u"?d={autoBom:!1}:typeof d!="object"&&(console.warn("Deprecated: Expected third argument to be a object"),d={autoBom:!d}),d.autoBom&&/^\s*(?:text\/\S*|application\/xml|\S*\/\S*\+xml)\s*;.*charset\s*=\s*utf-8/i.test(i.type)?new Blob(["\uFEFF",i],{type:i.type}):i}function I(i,d,_){var m=new XMLHttpRequest;m.open("GET",i),m.responseType="blob",m.onload=function(){h(m.response,d,_)},m.onerror=function(){console.error("could not download file")},m.send()}function y(i){var d=new XMLHttpRequest;d.open("HEAD",i,!1);try{d.send()}catch{}return 200<=d.status&&299>=d.status}function p(i){try{i.dispatchEvent(new MouseEvent("click"))}catch{var d=document.createEvent("MouseEvents");d.initMouseEvent("click",!0,!0,window,0,0,0,80,20,!1,!1,!1,!1,0,null),i.dispatchEvent(d)}}var o=typeof window=="object"&&window.window===window?window:typeof self=="object"&&self.self===self?self:typeof Je=="object"&&Je.global===Je?Je:void 0,c=o.navigator&&/Macintosh/.test(navigator.userAgent)&&/AppleWebKit/.test(navigator.userAgent)&&!/Safari/.test(navigator.userAgent),h=o.saveAs||(typeof window!="object"||window!==o?function(){}:"download"in HTMLAnchorElement.prototype&&!c?function(i,d,_){var m=o.URL||o.webkitURL,r=document.createElement("a");d=d||i.name||"download",r.download=d,r.rel="noopener",typeof i=="string"?(r.href=i,r.origin===location.origin?p(r):y(r.href)?I(i,d,_):p(r,r.target="_blank")):(r.href=m.createObjectURL(i),setTimeout(function(){m.revokeObjectURL(r.href)},4e4),setTimeout(function(){p(r)},0))}:"msSaveOrOpenBlob"in navigator?function(i,d,_){if(d=d||i.name||"download",typeof i!="string")navigator.msSaveOrOpenBlob(b(i,_),d);else if(y(i))I(i,d,_);else{var m=document.createElement("a");m.href=i,m.target="_blank",setTimeout(function(){p(m)})}}:function(i,d,_,m){if(m=m||open("","_blank"),m&&(m.document.title=m.document.body.innerText="downloading..."),typeof i=="string")return I(i,d,_);var r=i.type==="application/octet-stream",s=/constructor/i.test(o.HTMLElement)||o.safari,l=/CriOS\/[\d]+/.test(navigator.userAgent);if((l||r&&s||c)&&typeof FileReader<"u"){var g=new FileReader;g.onloadend=function(){var D=g.result;D=l?D:D.replace(/^data:[^;]*;/,"data:attachment/file;"),m?m.location.href=D:location=D,m=null},g.readAsDataURL(i)}else{var w=o.URL||o.webkitURL,x=w.createObjectURL(i);m?m.location=x:location.href=x,m=null,setTimeout(function(){w.revokeObjectURL(x)},4e4)}});o.saveAs=h.saveAs=h,ce.exports=h})})(qe);var at=qe.exports;const ot=it(at),st=(ce,xe,b)=>new Promise((I,y)=>{const p=new Image;p.crossOrigin="",p.src=ce.src,p.onload=function(){const h=document.createElement("canvas");h.width=ce.width,h.height=ce.height;const i=h.getContext("2d");i==null||i.drawImage(p,0,0,ce.width,ce.height);const d=p.src.substring(p.src.lastIndexOf(".")+1).toLowerCase(),_=h.toDataURL("image/"+d);ce.setAttribute("src",_),h.remove(),clearTimeout(o),I(_)},p.onerror=async()=>{clearTimeout(o),await c(),console.error("图片加载异常:",p.src),I("xh-htmlword: 图片加载异常")};const o=setTimeout(async()=>{await c(),console.error("图片加载超时:",p.src),I("xh-htmlword: 图片加载超时")},xe),c=()=>new Promise(h=>{const i=new Image;i.crossOrigin="",i.src=b||"https://img1.baidu.com/it/u=1865245832,1454392848&fm=253&fmt=auto&app=138&f=JPEG?w=256&h=256",i.onload=()=>{const d=document.createElement("canvas");d.width=ce.width,d.height=ce.height;const _=d.getContext("2d");_==null||_.drawImage(i,0,0,ce.width,ce.height);const m=i.src.substring(i.src.lastIndexOf(".")+1).toLowerCase(),r=d.toDataURL("image/"+m);ce.setAttribute("src",r),d.remove(),h()}})}),lt=({dom:ce,fileName:xe=ft(),timeOut:b=5e3,callBack:I,options:y={},defultImg:p})=>{const o=document.querySelector(ce),c=o.cloneNode(!0),h=o==null?void 0:o.getElementsByTagName("canvas"),i=c==null?void 0:c.getElementsByTagName("canvas"),d=Array.from(h).map((m,r)=>new Promise(s=>{const l=m.toDataURL("image/png",1),g=new Image;g.onload=()=>{URL.revokeObjectURL(l),s()},g.src=l,i[r].parentNode.insertBefore(g,i[r])})),_=c.getElementsByTagName("canvas");Array.from(_).forEach(m=>m.parentNode.removeChild(m)),Promise.all(d).then(async()=>{const m=[...c.getElementsByTagName("img")];let r=[];m.forEach(g=>{r.push(st(g,b,p))}),await Promise.all(r);const s=`
77
+ <html xmlns:o='urn:schemas-microsoft-com:office:office' xmlns:w='urn:schemas-microsoft-com:office:word' xmlns='http://www.w3.org/TR/REC-html40'><head>
78
+ </head>
79
+ <body>
80
+ ${c.outerHTML}
81
+ </body>
82
+ </html>`,l=nt.asBlob(s,y);ot(l,`${xe}.docx`),I&&I()})},ft=()=>{const ce=new Date,xe=ce.getFullYear(),b=("0"+(ce.getMonth()+1)).slice(-2),I=("0"+ce.getDate()).slice(-2);return`${xe}${b}${I}`};return lt});
package/dist/vite.svg ADDED
@@ -0,0 +1 @@
1
+ <svg xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" aria-hidden="true" role="img" class="iconify iconify--logos" width="31.88" height="32" preserveAspectRatio="xMidYMid meet" viewBox="0 0 256 257"><defs><linearGradient id="IconifyId1813088fe1fbc01fb466" x1="-.828%" x2="57.636%" y1="7.652%" y2="78.411%"><stop offset="0%" stop-color="#41D1FF"></stop><stop offset="100%" stop-color="#BD34FE"></stop></linearGradient><linearGradient id="IconifyId1813088fe1fbc01fb467" x1="43.376%" x2="50.316%" y1="2.242%" y2="89.03%"><stop offset="0%" stop-color="#FFEA83"></stop><stop offset="8.333%" stop-color="#FFDD35"></stop><stop offset="100%" stop-color="#FFA800"></stop></linearGradient></defs><path fill="url(#IconifyId1813088fe1fbc01fb466)" d="M255.153 37.938L134.897 252.976c-2.483 4.44-8.862 4.466-11.382.048L.875 37.958c-2.746-4.814 1.371-10.646 6.827-9.67l120.385 21.517a6.537 6.537 0 0 0 2.322-.004l117.867-21.483c5.438-.991 9.574 4.796 6.877 9.62Z"></path><path fill="url(#IconifyId1813088fe1fbc01fb467)" d="M185.432.063L96.44 17.501a3.268 3.268 0 0 0-2.634 3.014l-5.474 92.456a3.268 3.268 0 0 0 3.997 3.378l24.777-5.718c2.318-.535 4.413 1.507 3.936 3.838l-7.361 36.047c-.495 2.426 1.782 4.5 4.151 3.78l15.304-4.649c2.372-.72 4.652 1.36 4.15 3.788l-11.698 56.621c-.732 3.542 3.979 5.473 5.943 2.437l1.313-2.028l72.516-144.72c1.215-2.423-.88-5.186-3.54-4.672l-25.505 4.922c-2.396.462-4.435-1.77-3.759-4.114l16.646-57.705c.677-2.35-1.37-4.583-3.769-4.113Z"></path></svg>
package/index.d.ts ADDED
@@ -0,0 +1,12 @@
1
+ /**
2
+ * xuhao-htmlword: Tiny (~200b) functional event emitter / pubsub.
3
+ * @name xuhao-htmlword
4
+ *
5
+ */
6
+ export default function handleExportWord({
7
+ dom: string,
8
+ fileName: string,
9
+ timeOut: number,
10
+ callback: Function,
11
+ options: Object,
12
+ }): void;
package/package.json ADDED
@@ -0,0 +1,34 @@
1
+ {
2
+ "name": "xh-htmlword",
3
+ "version": "1.0.0",
4
+ "type": "module",
5
+ "description": "用于html页转word文档的工具",
6
+ "files": [
7
+ "dist",
8
+ "index.d.ts"
9
+ ],
10
+ "main": "./dist/counter.umd.cjs",
11
+ "module": "./dist/counter.js",
12
+ "types": "./index.d.ts",
13
+ "exports": {
14
+ "types": "./index.d.ts",
15
+ "import": "./dist/counter.js",
16
+ "require": "./dist/counter.umd.cjs"
17
+ },
18
+ "scripts": {
19
+ "dev": "vite",
20
+ "build": "vite build"
21
+ },
22
+ "devDependencies": {
23
+ "vite": "^5.0.10"
24
+ },
25
+ "keywords": [
26
+ "word",
27
+ "HTMLDOCX"
28
+ ],
29
+ "author": "xuhao",
30
+ "license": "ISC",
31
+ "dependencies": {
32
+ "file-saver": "^2.0.5"
33
+ }
34
+ }