@editora/plugins 1.0.6 → 1.0.8
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +57 -4
- package/dist/_commonjsHelpers-BH3jXuIh.js +1 -0
- package/dist/_commonjsHelpers-ByX85dGu.mjs +33 -0
- package/dist/anchor.cjs.js +11 -11
- package/dist/anchor.esm.js +130 -107
- package/dist/anchoredPopover-BzqGPOAE.js +1 -0
- package/dist/anchoredPopover-Dts0IrgU.mjs +106 -0
- package/dist/background-color.cjs.js +3 -3
- package/dist/background-color.esm.js +116 -119
- package/dist/code.cjs.js +82 -102
- package/dist/code.esm.js +1172 -662
- package/dist/comments.cjs.js +10 -10
- package/dist/comments.esm.js +195 -177
- package/dist/document-manager.cjs.js +1 -1
- package/dist/document-manager.esm.js +1 -1
- package/dist/documentManager-CTqRftU8.mjs +8369 -0
- package/dist/documentManager-Jf0RbSks.js +17 -0
- package/dist/embed-iframe.cjs.js +2 -2
- package/dist/embed-iframe.esm.js +8 -5
- package/dist/emojis.cjs.js +64 -39
- package/dist/emojis.esm.js +133 -104
- package/dist/html2canvas.esm-B5qzocYs.js +5 -0
- package/dist/html2canvas.esm-BWVIUcAF.mjs +4802 -0
- package/dist/{index-Bskk414V.mjs → index-BFsKNTTj.mjs} +50 -50
- package/dist/index-CvJk4DKa.js +221 -0
- package/dist/index-D3CycEFU.mjs +16543 -0
- package/dist/index-tqLTHcO6.js +1 -0
- package/dist/index.cjs.js +1 -1
- package/dist/{index.es-Cz1qItab.js → index.es-CE_A4QSm.js} +5 -5
- package/dist/{index.es-DEcRmSTY.mjs → index.es-DQ78mYYo.mjs} +4 -3
- package/dist/index.esm.js +87 -79
- package/dist/jspdf.es.min-BoS80556.js +77 -0
- package/dist/jspdf.es.min-DQCoX5yh.mjs +7889 -0
- package/dist/link.cjs.js +6 -6
- package/dist/link.esm.js +41 -39
- package/dist/math.cjs.js +21 -21
- package/dist/math.esm.js +151 -112
- package/dist/media-manager.cjs.js +15 -15
- package/dist/media-manager.esm.js +227 -206
- package/dist/merge-tag.cjs.js +44 -12
- package/dist/merge-tag.esm.js +368 -241
- package/dist/page-break.cjs.js +2 -2
- package/dist/page-break.esm.js +77 -69
- package/dist/special-characters.cjs.js +83 -45
- package/dist/special-characters.esm.js +149 -100
- package/dist/spell-check.cjs.js +9 -9
- package/dist/spell-check.esm.js +235 -216
- package/dist/template.cjs.js +14 -14
- package/dist/template.esm.js +157 -131
- package/dist/text-color.cjs.js +9 -9
- package/dist/text-color.esm.js +131 -115
- package/index.d.ts +51 -1
- package/package.json +6 -4
- package/dist/colorSelectionApply-C0iOfMWb.js +0 -1
- package/dist/colorSelectionApply-D8r_gV32.mjs +0 -63
- package/dist/documentManager-DRUc1-Cs.mjs +0 -37581
- package/dist/documentManager-_tQQfQi9.js +0 -317
- package/dist/index-D3pJyAsj.js +0 -1
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const wr=require("./index-tqLTHcO6.js");var yr={exports:{}};var ms;function oc(){return ms||(ms=1,(function(bt,vt){(function(ot,mt){bt.exports=mt()})(globalThis,(()=>(()=>{var ot={9742:(z,P)=>{P.byteLength=function(N){var _=p(N),y=_[0],h=_[1];return 3*(y+h)/4-h},P.toByteArray=function(N){var _,y,h=p(N),u=h[0],m=h[1],E=new i((function(d,b,C){return 3*(b+C)/4-C})(0,u,m)),O=0,M=m>0?u-4:u;for(y=0;y<M;y+=4)_=a[N.charCodeAt(y)]<<18|a[N.charCodeAt(y+1)]<<12|a[N.charCodeAt(y+2)]<<6|a[N.charCodeAt(y+3)],E[O++]=_>>16&255,E[O++]=_>>8&255,E[O++]=255&_;return m===2&&(_=a[N.charCodeAt(y)]<<2|a[N.charCodeAt(y+1)]>>4,E[O++]=255&_),m===1&&(_=a[N.charCodeAt(y)]<<10|a[N.charCodeAt(y+1)]<<4|a[N.charCodeAt(y+2)]>>2,E[O++]=_>>8&255,E[O++]=255&_),E},P.fromByteArray=function(N){for(var _,y=N.length,h=y%3,u=[],m=16383,E=0,O=y-h;E<O;E+=m)u.push(S(N,E,E+m>O?O:E+m));return h===1?(_=N[y-1],u.push(r[_>>2]+r[_<<4&63]+"==")):h===2&&(_=(N[y-2]<<8)+N[y-1],u.push(r[_>>10]+r[_>>4&63]+r[_<<2&63]+"=")),u.join("")};for(var r=[],a=[],i=typeof Uint8Array<"u"?Uint8Array:Array,l="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",g=0,I=l.length;g<I;++g)r[g]=l[g],a[l.charCodeAt(g)]=g;function p(N){var _=N.length;if(_%4>0)throw new Error("Invalid string. Length must be a multiple of 4");var y=N.indexOf("=");return y===-1&&(y=_),[y,y===_?0:4-y%4]}function S(N,_,y){for(var h,u,m=[],E=_;E<y;E+=3)h=(N[E]<<16&16711680)+(N[E+1]<<8&65280)+(255&N[E+2]),m.push(r[(u=h)>>18&63]+r[u>>12&63]+r[u>>6&63]+r[63&u]);return m.join("")}a[45]=62,a[95]=63},8764:(z,P,r)=>{const a=r(9742),i=r(645),l=typeof Symbol=="function"&&typeof Symbol.for=="function"?Symbol.for("nodejs.util.inspect.custom"):null;P.Buffer=p,P.SlowBuffer=function(s){return+s!=s&&(s=0),p.alloc(+s)},P.INSPECT_MAX_BYTES=50;const g=2147483647;function I(s){if(s>g)throw new RangeError('The value "'+s+'" is invalid for option "size"');const w=new Uint8Array(s);return Object.setPrototypeOf(w,p.prototype),w}function p(s,w,R){if(typeof s=="number"){if(typeof w=="string")throw new TypeError('The "string" argument must be of type string. Received type number');return _(s)}return S(s,w,R)}function S(s,w,R){if(typeof s=="string")return(function(Z,et){if(typeof et=="string"&&et!==""||(et="utf8"),!p.isEncoding(et))throw new TypeError("Unknown encoding: "+et);const yt=0|m(Z,et);let At=I(yt);const It=At.write(Z,et);return It!==yt&&(At=At.slice(0,It)),At})(s,w);if(ArrayBuffer.isView(s))return(function(Z){if(it(Z,Uint8Array)){const et=new Uint8Array(Z);return h(et.buffer,et.byteOffset,et.byteLength)}return y(Z)})(s);if(s==null)throw new TypeError("The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type "+typeof s);if(it(s,ArrayBuffer)||s&&it(s.buffer,ArrayBuffer)||typeof SharedArrayBuffer<"u"&&(it(s,SharedArrayBuffer)||s&&it(s.buffer,SharedArrayBuffer)))return h(s,w,R);if(typeof s=="number")throw new TypeError('The "value" argument must not be of type number. Received type number');const j=s.valueOf&&s.valueOf();if(j!=null&&j!==s)return p.from(j,w,R);const X=(function(Z){if(p.isBuffer(Z)){const et=0|u(Z.length),yt=I(et);return yt.length===0||Z.copy(yt,0,0,et),yt}return Z.length!==void 0?typeof Z.length!="number"||wt(Z.length)?I(0):y(Z):Z.type==="Buffer"&&Array.isArray(Z.data)?y(Z.data):void 0})(s);if(X)return X;if(typeof Symbol<"u"&&Symbol.toPrimitive!=null&&typeof s[Symbol.toPrimitive]=="function")return p.from(s[Symbol.toPrimitive]("string"),w,R);throw new TypeError("The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type "+typeof s)}function N(s){if(typeof s!="number")throw new TypeError('"size" argument must be of type number');if(s<0)throw new RangeError('The value "'+s+'" is invalid for option "size"')}function _(s){return N(s),I(s<0?0:0|u(s))}function y(s){const w=s.length<0?0:0|u(s.length),R=I(w);for(let j=0;j<w;j+=1)R[j]=255&s[j];return R}function h(s,w,R){if(w<0||s.byteLength<w)throw new RangeError('"offset" is outside of buffer bounds');if(s.byteLength<w+(R||0))throw new RangeError('"length" is outside of buffer bounds');let j;return j=w===void 0&&R===void 0?new Uint8Array(s):R===void 0?new Uint8Array(s,w):new Uint8Array(s,w,R),Object.setPrototypeOf(j,p.prototype),j}function u(s){if(s>=g)throw new RangeError("Attempt to allocate Buffer larger than maximum size: 0x"+g.toString(16)+" bytes");return 0|s}function m(s,w){if(p.isBuffer(s))return s.length;if(ArrayBuffer.isView(s)||it(s,ArrayBuffer))return s.byteLength;if(typeof s!="string")throw new TypeError('The "string" argument must be one of type string, Buffer, or ArrayBuffer. Received type '+typeof s);const R=s.length,j=arguments.length>2&&arguments[2]===!0;if(!j&&R===0)return 0;let X=!1;for(;;)switch(w){case"ascii":case"latin1":case"binary":return R;case"utf8":case"utf-8":return st(s).length;case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return 2*R;case"hex":return R>>>1;case"base64":return ht(s).length;default:if(X)return j?-1:st(s).length;w=(""+w).toLowerCase(),X=!0}}function E(s,w,R){let j=!1;if((w===void 0||w<0)&&(w=0),w>this.length||((R===void 0||R>this.length)&&(R=this.length),R<=0)||(R>>>=0)<=(w>>>=0))return"";for(s||(s="utf8");;)switch(s){case"hex":return at(this,w,R);case"utf8":case"utf-8":return Q(this,w,R);case"ascii":return lt(this,w,R);case"latin1":case"binary":return rt(this,w,R);case"base64":return B(this,w,R);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return c(this,w,R);default:if(j)throw new TypeError("Unknown encoding: "+s);s=(s+"").toLowerCase(),j=!0}}function O(s,w,R){const j=s[w];s[w]=s[R],s[R]=j}function M(s,w,R,j,X){if(s.length===0)return-1;if(typeof R=="string"?(j=R,R=0):R>2147483647?R=2147483647:R<-2147483648&&(R=-2147483648),wt(R=+R)&&(R=X?0:s.length-1),R<0&&(R=s.length+R),R>=s.length){if(X)return-1;R=s.length-1}else if(R<0){if(!X)return-1;R=0}if(typeof w=="string"&&(w=p.from(w,j)),p.isBuffer(w))return w.length===0?-1:d(s,w,R,j,X);if(typeof w=="number")return w&=255,typeof Uint8Array.prototype.indexOf=="function"?X?Uint8Array.prototype.indexOf.call(s,w,R):Uint8Array.prototype.lastIndexOf.call(s,w,R):d(s,[w],R,j,X);throw new TypeError("val must be string, number or Buffer")}function d(s,w,R,j,X){let Z,et=1,yt=s.length,At=w.length;if(j!==void 0&&((j=String(j).toLowerCase())==="ucs2"||j==="ucs-2"||j==="utf16le"||j==="utf-16le")){if(s.length<2||w.length<2)return-1;et=2,yt/=2,At/=2,R/=2}function It(Et,Rt){return et===1?Et[Rt]:Et.readUInt16BE(Rt*et)}if(X){let Et=-1;for(Z=R;Z<yt;Z++)if(It(s,Z)===It(w,Et===-1?0:Z-Et)){if(Et===-1&&(Et=Z),Z-Et+1===At)return Et*et}else Et!==-1&&(Z-=Z-Et),Et=-1}else for(R+At>yt&&(R=yt-At),Z=R;Z>=0;Z--){let Et=!0;for(let Rt=0;Rt<At;Rt++)if(It(s,Z+Rt)!==It(w,Rt)){Et=!1;break}if(Et)return Z}return-1}function b(s,w,R,j){R=Number(R)||0;const X=s.length-R;j?(j=Number(j))>X&&(j=X):j=X;const Z=w.length;let et;for(j>Z/2&&(j=Z/2),et=0;et<j;++et){const yt=parseInt(w.substr(2*et,2),16);if(wt(yt))return et;s[R+et]=yt}return et}function C(s,w,R,j){return nt(st(w,s.length-R),s,R,j)}function x(s,w,R,j){return nt((function(X){const Z=[];for(let et=0;et<X.length;++et)Z.push(255&X.charCodeAt(et));return Z})(w),s,R,j)}function D(s,w,R,j){return nt(ht(w),s,R,j)}function n(s,w,R,j){return nt((function(X,Z){let et,yt,At;const It=[];for(let Et=0;Et<X.length&&!((Z-=2)<0);++Et)et=X.charCodeAt(Et),yt=et>>8,At=et%256,It.push(At),It.push(yt);return It})(w,s.length-R),s,R,j)}function B(s,w,R){return w===0&&R===s.length?a.fromByteArray(s):a.fromByteArray(s.slice(w,R))}function Q(s,w,R){R=Math.min(s.length,R);const j=[];let X=w;for(;X<R;){const Z=s[X];let et=null,yt=Z>239?4:Z>223?3:Z>191?2:1;if(X+yt<=R){let At,It,Et,Rt;switch(yt){case 1:Z<128&&(et=Z);break;case 2:At=s[X+1],(192&At)==128&&(Rt=(31&Z)<<6|63&At,Rt>127&&(et=Rt));break;case 3:At=s[X+1],It=s[X+2],(192&At)==128&&(192&It)==128&&(Rt=(15&Z)<<12|(63&At)<<6|63&It,Rt>2047&&(Rt<55296||Rt>57343)&&(et=Rt));break;case 4:At=s[X+1],It=s[X+2],Et=s[X+3],(192&At)==128&&(192&It)==128&&(192&Et)==128&&(Rt=(15&Z)<<18|(63&At)<<12|(63&It)<<6|63&Et,Rt>65535&&Rt<1114112&&(et=Rt))}}et===null?(et=65533,yt=1):et>65535&&(et-=65536,j.push(et>>>10&1023|55296),et=56320|1023&et),j.push(et),X+=yt}return(function(Z){const et=Z.length;if(et<=G)return String.fromCharCode.apply(String,Z);let yt="",At=0;for(;At<et;)yt+=String.fromCharCode.apply(String,Z.slice(At,At+=G));return yt})(j)}P.kMaxLength=g,p.TYPED_ARRAY_SUPPORT=(function(){try{const s=new Uint8Array(1),w={foo:function(){return 42}};return Object.setPrototypeOf(w,Uint8Array.prototype),Object.setPrototypeOf(s,w),s.foo()===42}catch{return!1}})(),p.TYPED_ARRAY_SUPPORT||typeof console>"u"||typeof console.error!="function"||console.error("This browser lacks typed array (Uint8Array) support which is required by `buffer` v5.x. Use `buffer` v4.x if you require old browser support."),Object.defineProperty(p.prototype,"parent",{enumerable:!0,get:function(){if(p.isBuffer(this))return this.buffer}}),Object.defineProperty(p.prototype,"offset",{enumerable:!0,get:function(){if(p.isBuffer(this))return this.byteOffset}}),p.poolSize=8192,p.from=function(s,w,R){return S(s,w,R)},Object.setPrototypeOf(p.prototype,Uint8Array.prototype),Object.setPrototypeOf(p,Uint8Array),p.alloc=function(s,w,R){return(function(j,X,Z){return N(j),j<=0?I(j):X!==void 0?typeof Z=="string"?I(j).fill(X,Z):I(j).fill(X):I(j)})(s,w,R)},p.allocUnsafe=function(s){return _(s)},p.allocUnsafeSlow=function(s){return _(s)},p.isBuffer=function(s){return s!=null&&s._isBuffer===!0&&s!==p.prototype},p.compare=function(s,w){if(it(s,Uint8Array)&&(s=p.from(s,s.offset,s.byteLength)),it(w,Uint8Array)&&(w=p.from(w,w.offset,w.byteLength)),!p.isBuffer(s)||!p.isBuffer(w))throw new TypeError('The "buf1", "buf2" arguments must be one of type Buffer or Uint8Array');if(s===w)return 0;let R=s.length,j=w.length;for(let X=0,Z=Math.min(R,j);X<Z;++X)if(s[X]!==w[X]){R=s[X],j=w[X];break}return R<j?-1:j<R?1:0},p.isEncoding=function(s){switch(String(s).toLowerCase()){case"hex":case"utf8":case"utf-8":case"ascii":case"latin1":case"binary":case"base64":case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return!0;default:return!1}},p.concat=function(s,w){if(!Array.isArray(s))throw new TypeError('"list" argument must be an Array of Buffers');if(s.length===0)return p.alloc(0);let R;if(w===void 0)for(w=0,R=0;R<s.length;++R)w+=s[R].length;const j=p.allocUnsafe(w);let X=0;for(R=0;R<s.length;++R){let Z=s[R];if(it(Z,Uint8Array))X+Z.length>j.length?(p.isBuffer(Z)||(Z=p.from(Z)),Z.copy(j,X)):Uint8Array.prototype.set.call(j,Z,X);else{if(!p.isBuffer(Z))throw new TypeError('"list" argument must be an Array of Buffers');Z.copy(j,X)}X+=Z.length}return j},p.byteLength=m,p.prototype._isBuffer=!0,p.prototype.swap16=function(){const s=this.length;if(s%2!=0)throw new RangeError("Buffer size must be a multiple of 16-bits");for(let w=0;w<s;w+=2)O(this,w,w+1);return this},p.prototype.swap32=function(){const s=this.length;if(s%4!=0)throw new RangeError("Buffer size must be a multiple of 32-bits");for(let w=0;w<s;w+=4)O(this,w,w+3),O(this,w+1,w+2);return this},p.prototype.swap64=function(){const s=this.length;if(s%8!=0)throw new RangeError("Buffer size must be a multiple of 64-bits");for(let w=0;w<s;w+=8)O(this,w,w+7),O(this,w+1,w+6),O(this,w+2,w+5),O(this,w+3,w+4);return this},p.prototype.toString=function(){const s=this.length;return s===0?"":arguments.length===0?Q(this,0,s):E.apply(this,arguments)},p.prototype.toLocaleString=p.prototype.toString,p.prototype.equals=function(s){if(!p.isBuffer(s))throw new TypeError("Argument must be a Buffer");return this===s||p.compare(this,s)===0},p.prototype.inspect=function(){let s="";const w=P.INSPECT_MAX_BYTES;return s=this.toString("hex",0,w).replace(/(.{2})/g,"$1 ").trim(),this.length>w&&(s+=" ... "),"<Buffer "+s+">"},l&&(p.prototype[l]=p.prototype.inspect),p.prototype.compare=function(s,w,R,j,X){if(it(s,Uint8Array)&&(s=p.from(s,s.offset,s.byteLength)),!p.isBuffer(s))throw new TypeError('The "target" argument must be one of type Buffer or Uint8Array. Received type '+typeof s);if(w===void 0&&(w=0),R===void 0&&(R=s?s.length:0),j===void 0&&(j=0),X===void 0&&(X=this.length),w<0||R>s.length||j<0||X>this.length)throw new RangeError("out of range index");if(j>=X&&w>=R)return 0;if(j>=X)return-1;if(w>=R)return 1;if(this===s)return 0;let Z=(X>>>=0)-(j>>>=0),et=(R>>>=0)-(w>>>=0);const yt=Math.min(Z,et),At=this.slice(j,X),It=s.slice(w,R);for(let Et=0;Et<yt;++Et)if(At[Et]!==It[Et]){Z=At[Et],et=It[Et];break}return Z<et?-1:et<Z?1:0},p.prototype.includes=function(s,w,R){return this.indexOf(s,w,R)!==-1},p.prototype.indexOf=function(s,w,R){return M(this,s,w,R,!0)},p.prototype.lastIndexOf=function(s,w,R){return M(this,s,w,R,!1)},p.prototype.write=function(s,w,R,j){if(w===void 0)j="utf8",R=this.length,w=0;else if(R===void 0&&typeof w=="string")j=w,R=this.length,w=0;else{if(!isFinite(w))throw new Error("Buffer.write(string, encoding, offset[, length]) is no longer supported");w>>>=0,isFinite(R)?(R>>>=0,j===void 0&&(j="utf8")):(j=R,R=void 0)}const X=this.length-w;if((R===void 0||R>X)&&(R=X),s.length>0&&(R<0||w<0)||w>this.length)throw new RangeError("Attempt to write outside buffer bounds");j||(j="utf8");let Z=!1;for(;;)switch(j){case"hex":return b(this,s,w,R);case"utf8":case"utf-8":return C(this,s,w,R);case"ascii":case"latin1":case"binary":return x(this,s,w,R);case"base64":return D(this,s,w,R);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return n(this,s,w,R);default:if(Z)throw new TypeError("Unknown encoding: "+j);j=(""+j).toLowerCase(),Z=!0}},p.prototype.toJSON=function(){return{type:"Buffer",data:Array.prototype.slice.call(this._arr||this,0)}};const G=4096;function lt(s,w,R){let j="";R=Math.min(s.length,R);for(let X=w;X<R;++X)j+=String.fromCharCode(127&s[X]);return j}function rt(s,w,R){let j="";R=Math.min(s.length,R);for(let X=w;X<R;++X)j+=String.fromCharCode(s[X]);return j}function at(s,w,R){const j=s.length;(!w||w<0)&&(w=0),(!R||R<0||R>j)&&(R=j);let X="";for(let Z=w;Z<R;++Z)X+=ft[s[Z]];return X}function c(s,w,R){const j=s.slice(w,R);let X="";for(let Z=0;Z<j.length-1;Z+=2)X+=String.fromCharCode(j[Z]+256*j[Z+1]);return X}function A(s,w,R){if(s%1!=0||s<0)throw new RangeError("offset is not uint");if(s+w>R)throw new RangeError("Trying to access beyond buffer length")}function U(s,w,R,j,X,Z){if(!p.isBuffer(s))throw new TypeError('"buffer" argument must be a Buffer instance');if(w>X||w<Z)throw new RangeError('"value" argument is out of bounds');if(R+j>s.length)throw new RangeError("Index out of range")}function k(s,w,R,j,X){o(w,j,X,s,R,7);let Z=Number(w&BigInt(4294967295));s[R++]=Z,Z>>=8,s[R++]=Z,Z>>=8,s[R++]=Z,Z>>=8,s[R++]=Z;let et=Number(w>>BigInt(32)&BigInt(4294967295));return s[R++]=et,et>>=8,s[R++]=et,et>>=8,s[R++]=et,et>>=8,s[R++]=et,R}function q(s,w,R,j,X){o(w,j,X,s,R,7);let Z=Number(w&BigInt(4294967295));s[R+7]=Z,Z>>=8,s[R+6]=Z,Z>>=8,s[R+5]=Z,Z>>=8,s[R+4]=Z;let et=Number(w>>BigInt(32)&BigInt(4294967295));return s[R+3]=et,et>>=8,s[R+2]=et,et>>=8,s[R+1]=et,et>>=8,s[R]=et,R+8}function F(s,w,R,j,X,Z){if(R+j>s.length)throw new RangeError("Index out of range");if(R<0)throw new RangeError("Index out of range")}function W(s,w,R,j,X){return w=+w,R>>>=0,X||F(s,0,R,4),i.write(s,w,R,j,23,4),R+4}function V(s,w,R,j,X){return w=+w,R>>>=0,X||F(s,0,R,8),i.write(s,w,R,j,52,8),R+8}p.prototype.slice=function(s,w){const R=this.length;(s=~~s)<0?(s+=R)<0&&(s=0):s>R&&(s=R),(w=w===void 0?R:~~w)<0?(w+=R)<0&&(w=0):w>R&&(w=R),w<s&&(w=s);const j=this.subarray(s,w);return Object.setPrototypeOf(j,p.prototype),j},p.prototype.readUintLE=p.prototype.readUIntLE=function(s,w,R){s>>>=0,w>>>=0,R||A(s,w,this.length);let j=this[s],X=1,Z=0;for(;++Z<w&&(X*=256);)j+=this[s+Z]*X;return j},p.prototype.readUintBE=p.prototype.readUIntBE=function(s,w,R){s>>>=0,w>>>=0,R||A(s,w,this.length);let j=this[s+--w],X=1;for(;w>0&&(X*=256);)j+=this[s+--w]*X;return j},p.prototype.readUint8=p.prototype.readUInt8=function(s,w){return s>>>=0,w||A(s,1,this.length),this[s]},p.prototype.readUint16LE=p.prototype.readUInt16LE=function(s,w){return s>>>=0,w||A(s,2,this.length),this[s]|this[s+1]<<8},p.prototype.readUint16BE=p.prototype.readUInt16BE=function(s,w){return s>>>=0,w||A(s,2,this.length),this[s]<<8|this[s+1]},p.prototype.readUint32LE=p.prototype.readUInt32LE=function(s,w){return s>>>=0,w||A(s,4,this.length),(this[s]|this[s+1]<<8|this[s+2]<<16)+16777216*this[s+3]},p.prototype.readUint32BE=p.prototype.readUInt32BE=function(s,w){return s>>>=0,w||A(s,4,this.length),16777216*this[s]+(this[s+1]<<16|this[s+2]<<8|this[s+3])},p.prototype.readBigUInt64LE=Tt((function(s){v(s>>>=0,"offset");const w=this[s],R=this[s+7];w!==void 0&&R!==void 0||L(s,this.length-8);const j=w+256*this[++s]+65536*this[++s]+this[++s]*2**24,X=this[++s]+256*this[++s]+65536*this[++s]+R*2**24;return BigInt(j)+(BigInt(X)<<BigInt(32))})),p.prototype.readBigUInt64BE=Tt((function(s){v(s>>>=0,"offset");const w=this[s],R=this[s+7];w!==void 0&&R!==void 0||L(s,this.length-8);const j=w*2**24+65536*this[++s]+256*this[++s]+this[++s],X=this[++s]*2**24+65536*this[++s]+256*this[++s]+R;return(BigInt(j)<<BigInt(32))+BigInt(X)})),p.prototype.readIntLE=function(s,w,R){s>>>=0,w>>>=0,R||A(s,w,this.length);let j=this[s],X=1,Z=0;for(;++Z<w&&(X*=256);)j+=this[s+Z]*X;return X*=128,j>=X&&(j-=Math.pow(2,8*w)),j},p.prototype.readIntBE=function(s,w,R){s>>>=0,w>>>=0,R||A(s,w,this.length);let j=w,X=1,Z=this[s+--j];for(;j>0&&(X*=256);)Z+=this[s+--j]*X;return X*=128,Z>=X&&(Z-=Math.pow(2,8*w)),Z},p.prototype.readInt8=function(s,w){return s>>>=0,w||A(s,1,this.length),128&this[s]?-1*(255-this[s]+1):this[s]},p.prototype.readInt16LE=function(s,w){s>>>=0,w||A(s,2,this.length);const R=this[s]|this[s+1]<<8;return 32768&R?4294901760|R:R},p.prototype.readInt16BE=function(s,w){s>>>=0,w||A(s,2,this.length);const R=this[s+1]|this[s]<<8;return 32768&R?4294901760|R:R},p.prototype.readInt32LE=function(s,w){return s>>>=0,w||A(s,4,this.length),this[s]|this[s+1]<<8|this[s+2]<<16|this[s+3]<<24},p.prototype.readInt32BE=function(s,w){return s>>>=0,w||A(s,4,this.length),this[s]<<24|this[s+1]<<16|this[s+2]<<8|this[s+3]},p.prototype.readBigInt64LE=Tt((function(s){v(s>>>=0,"offset");const w=this[s],R=this[s+7];w!==void 0&&R!==void 0||L(s,this.length-8);const j=this[s+4]+256*this[s+5]+65536*this[s+6]+(R<<24);return(BigInt(j)<<BigInt(32))+BigInt(w+256*this[++s]+65536*this[++s]+this[++s]*16777216)})),p.prototype.readBigInt64BE=Tt((function(s){v(s>>>=0,"offset");const w=this[s],R=this[s+7];w!==void 0&&R!==void 0||L(s,this.length-8);const j=(w<<24)+65536*this[++s]+256*this[++s]+this[++s];return(BigInt(j)<<BigInt(32))+BigInt(this[++s]*16777216+65536*this[++s]+256*this[++s]+R)})),p.prototype.readFloatLE=function(s,w){return s>>>=0,w||A(s,4,this.length),i.read(this,s,!0,23,4)},p.prototype.readFloatBE=function(s,w){return s>>>=0,w||A(s,4,this.length),i.read(this,s,!1,23,4)},p.prototype.readDoubleLE=function(s,w){return s>>>=0,w||A(s,8,this.length),i.read(this,s,!0,52,8)},p.prototype.readDoubleBE=function(s,w){return s>>>=0,w||A(s,8,this.length),i.read(this,s,!1,52,8)},p.prototype.writeUintLE=p.prototype.writeUIntLE=function(s,w,R,j){s=+s,w>>>=0,R>>>=0,j||U(this,s,w,R,Math.pow(2,8*R)-1,0);let X=1,Z=0;for(this[w]=255&s;++Z<R&&(X*=256);)this[w+Z]=s/X&255;return w+R},p.prototype.writeUintBE=p.prototype.writeUIntBE=function(s,w,R,j){s=+s,w>>>=0,R>>>=0,j||U(this,s,w,R,Math.pow(2,8*R)-1,0);let X=R-1,Z=1;for(this[w+X]=255&s;--X>=0&&(Z*=256);)this[w+X]=s/Z&255;return w+R},p.prototype.writeUint8=p.prototype.writeUInt8=function(s,w,R){return s=+s,w>>>=0,R||U(this,s,w,1,255,0),this[w]=255&s,w+1},p.prototype.writeUint16LE=p.prototype.writeUInt16LE=function(s,w,R){return s=+s,w>>>=0,R||U(this,s,w,2,65535,0),this[w]=255&s,this[w+1]=s>>>8,w+2},p.prototype.writeUint16BE=p.prototype.writeUInt16BE=function(s,w,R){return s=+s,w>>>=0,R||U(this,s,w,2,65535,0),this[w]=s>>>8,this[w+1]=255&s,w+2},p.prototype.writeUint32LE=p.prototype.writeUInt32LE=function(s,w,R){return s=+s,w>>>=0,R||U(this,s,w,4,4294967295,0),this[w+3]=s>>>24,this[w+2]=s>>>16,this[w+1]=s>>>8,this[w]=255&s,w+4},p.prototype.writeUint32BE=p.prototype.writeUInt32BE=function(s,w,R){return s=+s,w>>>=0,R||U(this,s,w,4,4294967295,0),this[w]=s>>>24,this[w+1]=s>>>16,this[w+2]=s>>>8,this[w+3]=255&s,w+4},p.prototype.writeBigUInt64LE=Tt((function(s,w=0){return k(this,s,w,BigInt(0),BigInt("0xffffffffffffffff"))})),p.prototype.writeBigUInt64BE=Tt((function(s,w=0){return q(this,s,w,BigInt(0),BigInt("0xffffffffffffffff"))})),p.prototype.writeIntLE=function(s,w,R,j){if(s=+s,w>>>=0,!j){const yt=Math.pow(2,8*R-1);U(this,s,w,R,yt-1,-yt)}let X=0,Z=1,et=0;for(this[w]=255&s;++X<R&&(Z*=256);)s<0&&et===0&&this[w+X-1]!==0&&(et=1),this[w+X]=(s/Z>>0)-et&255;return w+R},p.prototype.writeIntBE=function(s,w,R,j){if(s=+s,w>>>=0,!j){const yt=Math.pow(2,8*R-1);U(this,s,w,R,yt-1,-yt)}let X=R-1,Z=1,et=0;for(this[w+X]=255&s;--X>=0&&(Z*=256);)s<0&&et===0&&this[w+X+1]!==0&&(et=1),this[w+X]=(s/Z>>0)-et&255;return w+R},p.prototype.writeInt8=function(s,w,R){return s=+s,w>>>=0,R||U(this,s,w,1,127,-128),s<0&&(s=255+s+1),this[w]=255&s,w+1},p.prototype.writeInt16LE=function(s,w,R){return s=+s,w>>>=0,R||U(this,s,w,2,32767,-32768),this[w]=255&s,this[w+1]=s>>>8,w+2},p.prototype.writeInt16BE=function(s,w,R){return s=+s,w>>>=0,R||U(this,s,w,2,32767,-32768),this[w]=s>>>8,this[w+1]=255&s,w+2},p.prototype.writeInt32LE=function(s,w,R){return s=+s,w>>>=0,R||U(this,s,w,4,2147483647,-2147483648),this[w]=255&s,this[w+1]=s>>>8,this[w+2]=s>>>16,this[w+3]=s>>>24,w+4},p.prototype.writeInt32BE=function(s,w,R){return s=+s,w>>>=0,R||U(this,s,w,4,2147483647,-2147483648),s<0&&(s=4294967295+s+1),this[w]=s>>>24,this[w+1]=s>>>16,this[w+2]=s>>>8,this[w+3]=255&s,w+4},p.prototype.writeBigInt64LE=Tt((function(s,w=0){return k(this,s,w,-BigInt("0x8000000000000000"),BigInt("0x7fffffffffffffff"))})),p.prototype.writeBigInt64BE=Tt((function(s,w=0){return q(this,s,w,-BigInt("0x8000000000000000"),BigInt("0x7fffffffffffffff"))})),p.prototype.writeFloatLE=function(s,w,R){return W(this,s,w,!0,R)},p.prototype.writeFloatBE=function(s,w,R){return W(this,s,w,!1,R)},p.prototype.writeDoubleLE=function(s,w,R){return V(this,s,w,!0,R)},p.prototype.writeDoubleBE=function(s,w,R){return V(this,s,w,!1,R)},p.prototype.copy=function(s,w,R,j){if(!p.isBuffer(s))throw new TypeError("argument should be a Buffer");if(R||(R=0),j||j===0||(j=this.length),w>=s.length&&(w=s.length),w||(w=0),j>0&&j<R&&(j=R),j===R||s.length===0||this.length===0)return 0;if(w<0)throw new RangeError("targetStart out of bounds");if(R<0||R>=this.length)throw new RangeError("Index out of range");if(j<0)throw new RangeError("sourceEnd out of bounds");j>this.length&&(j=this.length),s.length-w<j-R&&(j=s.length-w+R);const X=j-R;return this===s&&typeof Uint8Array.prototype.copyWithin=="function"?this.copyWithin(w,R,j):Uint8Array.prototype.set.call(s,this.subarray(R,j),w),X},p.prototype.fill=function(s,w,R,j){if(typeof s=="string"){if(typeof w=="string"?(j=w,w=0,R=this.length):typeof R=="string"&&(j=R,R=this.length),j!==void 0&&typeof j!="string")throw new TypeError("encoding must be a string");if(typeof j=="string"&&!p.isEncoding(j))throw new TypeError("Unknown encoding: "+j);if(s.length===1){const Z=s.charCodeAt(0);(j==="utf8"&&Z<128||j==="latin1")&&(s=Z)}}else typeof s=="number"?s&=255:typeof s=="boolean"&&(s=Number(s));if(w<0||this.length<w||this.length<R)throw new RangeError("Out of range index");if(R<=w)return this;let X;if(w>>>=0,R=R===void 0?this.length:R>>>0,s||(s=0),typeof s=="number")for(X=w;X<R;++X)this[X]=s;else{const Z=p.isBuffer(s)?s:p.from(s,j),et=Z.length;if(et===0)throw new TypeError('The value "'+s+'" is invalid for argument "value"');for(X=0;X<R-w;++X)this[X+w]=Z[X%et]}return this};const $={};function K(s,w,R){$[s]=class extends R{constructor(){super(),Object.defineProperty(this,"message",{value:w.apply(this,arguments),writable:!0,configurable:!0}),this.name=`${this.name} [${s}]`,this.stack,delete this.name}get code(){return s}set code(j){Object.defineProperty(this,"code",{configurable:!0,enumerable:!0,value:j,writable:!0})}toString(){return`${this.name} [${s}]: ${this.message}`}}}function T(s){let w="",R=s.length;const j=s[0]==="-"?1:0;for(;R>=j+4;R-=3)w=`_${s.slice(R-3,R)}${w}`;return`${s.slice(0,R)}${w}`}function o(s,w,R,j,X,Z){if(s>R||s<w){const et=typeof w=="bigint"?"n":"";let yt;throw yt=w===0||w===BigInt(0)?`>= 0${et} and < 2${et} ** ${8*(Z+1)}${et}`:`>= -(2${et} ** ${8*(Z+1)-1}${et}) and < 2 ** ${8*(Z+1)-1}${et}`,new $.ERR_OUT_OF_RANGE("value",yt,s)}(function(et,yt,At){v(yt,"offset"),et[yt]!==void 0&&et[yt+At]!==void 0||L(yt,et.length-(At+1))})(j,X,Z)}function v(s,w){if(typeof s!="number")throw new $.ERR_INVALID_ARG_TYPE(w,"number",s)}function L(s,w,R){throw Math.floor(s)!==s?(v(s,R),new $.ERR_OUT_OF_RANGE("offset","an integer",s)):w<0?new $.ERR_BUFFER_OUT_OF_BOUNDS:new $.ERR_OUT_OF_RANGE("offset",`>= 0 and <= ${w}`,s)}K("ERR_BUFFER_OUT_OF_BOUNDS",(function(s){return s?`${s} is outside of buffer bounds`:"Attempt to access memory outside buffer bounds"}),RangeError),K("ERR_INVALID_ARG_TYPE",(function(s,w){return`The "${s}" argument must be of type number. Received type ${typeof w}`}),TypeError),K("ERR_OUT_OF_RANGE",(function(s,w,R){let j=`The value of "${s}" is out of range.`,X=R;return Number.isInteger(R)&&Math.abs(R)>4294967296?X=T(String(R)):typeof R=="bigint"&&(X=String(R),(R>BigInt(2)**BigInt(32)||R<-(BigInt(2)**BigInt(32)))&&(X=T(X)),X+="n"),j+=` It must be ${w}. Received ${X}`,j}),RangeError);const Y=/[^+/0-9A-Za-z-_]/g;function st(s,w){let R;w=w||1/0;const j=s.length;let X=null;const Z=[];for(let et=0;et<j;++et){if(R=s.charCodeAt(et),R>55295&&R<57344){if(!X){if(R>56319){(w-=3)>-1&&Z.push(239,191,189);continue}if(et+1===j){(w-=3)>-1&&Z.push(239,191,189);continue}X=R;continue}if(R<56320){(w-=3)>-1&&Z.push(239,191,189),X=R;continue}R=65536+(X-55296<<10|R-56320)}else X&&(w-=3)>-1&&Z.push(239,191,189);if(X=null,R<128){if((w-=1)<0)break;Z.push(R)}else if(R<2048){if((w-=2)<0)break;Z.push(R>>6|192,63&R|128)}else if(R<65536){if((w-=3)<0)break;Z.push(R>>12|224,R>>6&63|128,63&R|128)}else{if(!(R<1114112))throw new Error("Invalid code point");if((w-=4)<0)break;Z.push(R>>18|240,R>>12&63|128,R>>6&63|128,63&R|128)}}return Z}function ht(s){return a.toByteArray((function(w){if((w=(w=w.split("=")[0]).trim().replace(Y,"")).length<2)return"";for(;w.length%4!=0;)w+="=";return w})(s))}function nt(s,w,R,j){let X;for(X=0;X<j&&!(X+R>=w.length||X>=s.length);++X)w[X+R]=s[X];return X}function it(s,w){return s instanceof w||s!=null&&s.constructor!=null&&s.constructor.name!=null&&s.constructor.name===w.name}function wt(s){return s!=s}const ft=(function(){const s="0123456789abcdef",w=new Array(256);for(let R=0;R<16;++R){const j=16*R;for(let X=0;X<16;++X)w[j+X]=s[R]+s[X]}return w})();function Tt(s){return typeof BigInt>"u"?Ft:s}function Ft(){throw new Error("BigInt not supported")}},7187:z=>{var P,r=typeof Reflect=="object"?Reflect:null,a=r&&typeof r.apply=="function"?r.apply:function(E,O,M){return Function.prototype.apply.call(E,O,M)};P=r&&typeof r.ownKeys=="function"?r.ownKeys:Object.getOwnPropertySymbols?function(E){return Object.getOwnPropertyNames(E).concat(Object.getOwnPropertySymbols(E))}:function(E){return Object.getOwnPropertyNames(E)};var i=Number.isNaN||function(E){return E!=E};function l(){l.init.call(this)}z.exports=l,z.exports.once=function(E,O){return new Promise((function(M,d){function b(x){E.removeListener(O,C),d(x)}function C(){typeof E.removeListener=="function"&&E.removeListener("error",b),M([].slice.call(arguments))}m(E,O,C,{once:!0}),O!=="error"&&(function(x,D,n){typeof x.on=="function"&&m(x,"error",D,{once:!0})})(E,b)}))},l.EventEmitter=l,l.prototype._events=void 0,l.prototype._eventsCount=0,l.prototype._maxListeners=void 0;var g=10;function I(E){if(typeof E!="function")throw new TypeError('The "listener" argument must be of type Function. Received type '+typeof E)}function p(E){return E._maxListeners===void 0?l.defaultMaxListeners:E._maxListeners}function S(E,O,M,d){var b,C,x,D;if(I(M),(C=E._events)===void 0?(C=E._events=Object.create(null),E._eventsCount=0):(C.newListener!==void 0&&(E.emit("newListener",O,M.listener?M.listener:M),C=E._events),x=C[O]),x===void 0)x=C[O]=M,++E._eventsCount;else if(typeof x=="function"?x=C[O]=d?[M,x]:[x,M]:d?x.unshift(M):x.push(M),(b=p(E))>0&&x.length>b&&!x.warned){x.warned=!0;var n=new Error("Possible EventEmitter memory leak detected. "+x.length+" "+String(O)+" listeners added. Use emitter.setMaxListeners() to increase limit");n.name="MaxListenersExceededWarning",n.emitter=E,n.type=O,n.count=x.length,D=n,console&&console.warn&&console.warn(D)}return E}function N(){if(!this.fired)return this.target.removeListener(this.type,this.wrapFn),this.fired=!0,arguments.length===0?this.listener.call(this.target):this.listener.apply(this.target,arguments)}function _(E,O,M){var d={fired:!1,wrapFn:void 0,target:E,type:O,listener:M},b=N.bind(d);return b.listener=M,d.wrapFn=b,b}function y(E,O,M){var d=E._events;if(d===void 0)return[];var b=d[O];return b===void 0?[]:typeof b=="function"?M?[b.listener||b]:[b]:M?(function(C){for(var x=new Array(C.length),D=0;D<x.length;++D)x[D]=C[D].listener||C[D];return x})(b):u(b,b.length)}function h(E){var O=this._events;if(O!==void 0){var M=O[E];if(typeof M=="function")return 1;if(M!==void 0)return M.length}return 0}function u(E,O){for(var M=new Array(O),d=0;d<O;++d)M[d]=E[d];return M}function m(E,O,M,d){if(typeof E.on=="function")d.once?E.once(O,M):E.on(O,M);else{if(typeof E.addEventListener!="function")throw new TypeError('The "emitter" argument must be of type EventEmitter. Received type '+typeof E);E.addEventListener(O,(function b(C){d.once&&E.removeEventListener(O,b),M(C)}))}}Object.defineProperty(l,"defaultMaxListeners",{enumerable:!0,get:function(){return g},set:function(E){if(typeof E!="number"||E<0||i(E))throw new RangeError('The value of "defaultMaxListeners" is out of range. It must be a non-negative number. Received '+E+".");g=E}}),l.init=function(){this._events!==void 0&&this._events!==Object.getPrototypeOf(this)._events||(this._events=Object.create(null),this._eventsCount=0),this._maxListeners=this._maxListeners||void 0},l.prototype.setMaxListeners=function(E){if(typeof E!="number"||E<0||i(E))throw new RangeError('The value of "n" is out of range. It must be a non-negative number. Received '+E+".");return this._maxListeners=E,this},l.prototype.getMaxListeners=function(){return p(this)},l.prototype.emit=function(E){for(var O=[],M=1;M<arguments.length;M++)O.push(arguments[M]);var d=E==="error",b=this._events;if(b!==void 0)d=d&&b.error===void 0;else if(!d)return!1;if(d){var C;if(O.length>0&&(C=O[0]),C instanceof Error)throw C;var x=new Error("Unhandled error."+(C?" ("+C.message+")":""));throw x.context=C,x}var D=b[E];if(D===void 0)return!1;if(typeof D=="function")a(D,this,O);else{var n=D.length,B=u(D,n);for(M=0;M<n;++M)a(B[M],this,O)}return!0},l.prototype.addListener=function(E,O){return S(this,E,O,!1)},l.prototype.on=l.prototype.addListener,l.prototype.prependListener=function(E,O){return S(this,E,O,!0)},l.prototype.once=function(E,O){return I(O),this.on(E,_(this,E,O)),this},l.prototype.prependOnceListener=function(E,O){return I(O),this.prependListener(E,_(this,E,O)),this},l.prototype.removeListener=function(E,O){var M,d,b,C,x;if(I(O),(d=this._events)===void 0)return this;if((M=d[E])===void 0)return this;if(M===O||M.listener===O)--this._eventsCount==0?this._events=Object.create(null):(delete d[E],d.removeListener&&this.emit("removeListener",E,M.listener||O));else if(typeof M!="function"){for(b=-1,C=M.length-1;C>=0;C--)if(M[C]===O||M[C].listener===O){x=M[C].listener,b=C;break}if(b<0)return this;b===0?M.shift():(function(D,n){for(;n+1<D.length;n++)D[n]=D[n+1];D.pop()})(M,b),M.length===1&&(d[E]=M[0]),d.removeListener!==void 0&&this.emit("removeListener",E,x||O)}return this},l.prototype.off=l.prototype.removeListener,l.prototype.removeAllListeners=function(E){var O,M,d;if((M=this._events)===void 0)return this;if(M.removeListener===void 0)return arguments.length===0?(this._events=Object.create(null),this._eventsCount=0):M[E]!==void 0&&(--this._eventsCount==0?this._events=Object.create(null):delete M[E]),this;if(arguments.length===0){var b,C=Object.keys(M);for(d=0;d<C.length;++d)(b=C[d])!=="removeListener"&&this.removeAllListeners(b);return this.removeAllListeners("removeListener"),this._events=Object.create(null),this._eventsCount=0,this}if(typeof(O=M[E])=="function")this.removeListener(E,O);else if(O!==void 0)for(d=O.length-1;d>=0;d--)this.removeListener(E,O[d]);return this},l.prototype.listeners=function(E){return y(this,E,!0)},l.prototype.rawListeners=function(E){return y(this,E,!1)},l.listenerCount=function(E,O){return typeof E.listenerCount=="function"?E.listenerCount(O):h.call(E,O)},l.prototype.listenerCount=h,l.prototype.eventNames=function(){return this._eventsCount>0?P(this._events):[]}},645:(z,P)=>{P.read=function(r,a,i,l,g){var I,p,S=8*g-l-1,N=(1<<S)-1,_=N>>1,y=-7,h=i?g-1:0,u=i?-1:1,m=r[a+h];for(h+=u,I=m&(1<<-y)-1,m>>=-y,y+=S;y>0;I=256*I+r[a+h],h+=u,y-=8);for(p=I&(1<<-y)-1,I>>=-y,y+=l;y>0;p=256*p+r[a+h],h+=u,y-=8);if(I===0)I=1-_;else{if(I===N)return p?NaN:1/0*(m?-1:1);p+=Math.pow(2,l),I-=_}return(m?-1:1)*p*Math.pow(2,I-l)},P.write=function(r,a,i,l,g,I){var p,S,N,_=8*I-g-1,y=(1<<_)-1,h=y>>1,u=g===23?Math.pow(2,-24)-Math.pow(2,-77):0,m=l?0:I-1,E=l?1:-1,O=a<0||a===0&&1/a<0?1:0;for(a=Math.abs(a),isNaN(a)||a===1/0?(S=isNaN(a)?1:0,p=y):(p=Math.floor(Math.log(a)/Math.LN2),a*(N=Math.pow(2,-p))<1&&(p--,N*=2),(a+=p+h>=1?u/N:u*Math.pow(2,1-h))*N>=2&&(p++,N/=2),p+h>=y?(S=0,p=y):p+h>=1?(S=(a*N-1)*Math.pow(2,g),p+=h):(S=a*Math.pow(2,h-1)*Math.pow(2,g),p=0));g>=8;r[i+m]=255&S,m+=E,S/=256,g-=8);for(p=p<<g|S,_+=g;_>0;r[i+m]=255&p,m+=E,p/=256,_-=8);r[i+m-E]|=128*O}},5705:(z,P,r)=>{var a,i,l=r.g.MutationObserver||r.g.WebKitMutationObserver;if(l){var g=0,I=new l(_),p=r.g.document.createTextNode("");I.observe(p,{characterData:!0}),a=function(){p.data=g=++g%2}}else if(r.g.setImmediate||r.g.MessageChannel===void 0)a="document"in r.g&&"onreadystatechange"in r.g.document.createElement("script")?function(){var y=r.g.document.createElement("script");y.onreadystatechange=function(){_(),y.onreadystatechange=null,y.parentNode.removeChild(y),y=null},r.g.document.documentElement.appendChild(y)}:function(){setTimeout(_,0)};else{var S=new r.g.MessageChannel;S.port1.onmessage=_,a=function(){S.port2.postMessage(0)}}var N=[];function _(){var y,h;i=!0;for(var u=N.length;u;){for(h=N,N=[],y=-1;++y<u;)h[y]();u=N.length}i=!1}z.exports=function(y){N.push(y)!==1||i||a()}},5717:z=>{typeof Object.create=="function"?z.exports=function(P,r){r&&(P.super_=r,P.prototype=Object.create(r.prototype,{constructor:{value:P,enumerable:!1,writable:!0,configurable:!0}}))}:z.exports=function(P,r){if(r){P.super_=r;var a=function(){};a.prototype=r.prototype,P.prototype=new a,P.prototype.constructor=P}}},8458:(z,P,r)=>{var a=r(8910),i=r(3790),l="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=";P.encode=function(g){for(var I,p,S,N,_,y,h,u=[],m=0,E=g.length,O=E,M=a.getTypeOf(g)!=="string";m<g.length;)O=E-m,M?(I=g[m++],p=m<E?g[m++]:0,S=m<E?g[m++]:0):(I=g.charCodeAt(m++),p=m<E?g.charCodeAt(m++):0,S=m<E?g.charCodeAt(m++):0),N=I>>2,_=(3&I)<<4|p>>4,y=O>1?(15&p)<<2|S>>6:64,h=O>2?63&S:64,u.push(l.charAt(N)+l.charAt(_)+l.charAt(y)+l.charAt(h));return u.join("")},P.decode=function(g){var I,p,S,N,_,y,h=0,u=0,m="data:";if(g.substr(0,m.length)===m)throw new Error("Invalid base64 input, it looks like a data url.");var E,O=3*(g=g.replace(/[^A-Za-z0-9+/=]/g,"")).length/4;if(g.charAt(g.length-1)===l.charAt(64)&&O--,g.charAt(g.length-2)===l.charAt(64)&&O--,O%1!=0)throw new Error("Invalid base64 input, bad content length.");for(E=i.uint8array?new Uint8Array(0|O):new Array(0|O);h<g.length;)I=l.indexOf(g.charAt(h++))<<2|(N=l.indexOf(g.charAt(h++)))>>4,p=(15&N)<<4|(_=l.indexOf(g.charAt(h++)))>>2,S=(3&_)<<6|(y=l.indexOf(g.charAt(h++))),E[u++]=I,_!==64&&(E[u++]=p),y!==64&&(E[u++]=S);return E}},7326:(z,P,r)=>{var a=r(8565),i=r(5301),l=r(2541),g=r(5977);function I(p,S,N,_,y){this.compressedSize=p,this.uncompressedSize=S,this.crc32=N,this.compression=_,this.compressedContent=y}I.prototype={getContentWorker:function(){var p=new i(a.Promise.resolve(this.compressedContent)).pipe(this.compression.uncompressWorker()).pipe(new g("data_length")),S=this;return p.on("end",(function(){if(this.streamInfo.data_length!==S.uncompressedSize)throw new Error("Bug : uncompressed data size mismatch")})),p},getCompressedWorker:function(){return new i(a.Promise.resolve(this.compressedContent)).withStreamInfo("compressedSize",this.compressedSize).withStreamInfo("uncompressedSize",this.uncompressedSize).withStreamInfo("crc32",this.crc32).withStreamInfo("compression",this.compression)}},I.createWorkerFrom=function(p,S,N){return p.pipe(new l).pipe(new g("uncompressedSize")).pipe(S.compressWorker(N)).pipe(new g("compressedSize")).withStreamInfo("compression",S)},z.exports=I},1678:(z,P,r)=>{var a=r(3718);P.STORE={magic:"\0\0",compressWorker:function(){return new a("STORE compression")},uncompressWorker:function(){return new a("STORE decompression")}},P.DEFLATE=r(1033)},6988:(z,P,r)=>{var a=r(8910),i=(function(){for(var l,g=[],I=0;I<256;I++){l=I;for(var p=0;p<8;p++)l=1&l?3988292384^l>>>1:l>>>1;g[I]=l}return g})();z.exports=function(l,g){return l!==void 0&&l.length?a.getTypeOf(l)!=="string"?(function(I,p,S,N){var _=i,y=0+S;I^=-1;for(var h=0;h<y;h++)I=I>>>8^_[255&(I^p[h])];return-1^I})(0|g,l,l.length):(function(I,p,S,N){var _=i,y=0+S;I^=-1;for(var h=0;h<y;h++)I=I>>>8^_[255&(I^p.charCodeAt(h))];return-1^I})(0|g,l,l.length):0}},6032:(z,P)=>{P.base64=!1,P.binary=!1,P.dir=!1,P.createFolders=!0,P.date=null,P.compression=null,P.compressionOptions=null,P.comment=null,P.unixPermissions=null,P.dosPermissions=null},8565:(z,P,r)=>{var a;a=typeof Promise<"u"?Promise:r(3389),z.exports={Promise:a}},1033:(z,P,r)=>{var a=typeof Uint8Array<"u"&&typeof Uint16Array<"u"&&typeof Uint32Array<"u",i=r(9591),l=r(8910),g=r(3718),I=a?"uint8array":"array";function p(S,N){g.call(this,"FlateWorker/"+S),this._pako=null,this._pakoAction=S,this._pakoOptions=N,this.meta={}}P.magic="\b\0",l.inherits(p,g),p.prototype.processChunk=function(S){this.meta=S.meta,this._pako===null&&this._createPako(),this._pako.push(l.transformTo(I,S.data),!1)},p.prototype.flush=function(){g.prototype.flush.call(this),this._pako===null&&this._createPako(),this._pako.push([],!0)},p.prototype.cleanUp=function(){g.prototype.cleanUp.call(this),this._pako=null},p.prototype._createPako=function(){this._pako=new i[this._pakoAction]({raw:!0,level:this._pakoOptions.level||-1});var S=this;this._pako.onData=function(N){S.push({data:N,meta:S.meta})}},P.compressWorker=function(S){return new p("Deflate",S)},P.uncompressWorker=function(){return new p("Inflate",{})}},4979:(z,P,r)=>{var a=r(8910),i=r(3718),l=r(3600),g=r(6988),I=r(1141),p=function(y,h){var u,m="";for(u=0;u<h;u++)m+=String.fromCharCode(255&y),y>>>=8;return m},S=function(y,h,u,m,E,O){var M,d,b=y.file,C=y.compression,x=O!==l.utf8encode,D=a.transformTo("string",O(b.name)),n=a.transformTo("string",l.utf8encode(b.name)),B=b.comment,Q=a.transformTo("string",O(B)),G=a.transformTo("string",l.utf8encode(B)),lt=n.length!==b.name.length,rt=G.length!==B.length,at="",c="",A="",U=b.dir,k=b.date,q={crc32:0,compressedSize:0,uncompressedSize:0};h&&!u||(q.crc32=y.crc32,q.compressedSize=y.compressedSize,q.uncompressedSize=y.uncompressedSize);var F=0;h&&(F|=8),x||!lt&&!rt||(F|=2048);var W,V,$=0,K=0;U&&($|=16),E==="UNIX"?(K=798,$|=(V=W=b.unixPermissions,W||(V=U?16893:33204),(65535&V)<<16)):(K=20,$|=63&(b.dosPermissions||0)),M=k.getUTCHours(),M<<=6,M|=k.getUTCMinutes(),M<<=5,M|=k.getUTCSeconds()/2,d=k.getUTCFullYear()-1980,d<<=4,d|=k.getUTCMonth()+1,d<<=5,d|=k.getUTCDate(),lt&&(c=p(1,1)+p(g(D),4)+n,at+="up"+p(c.length,2)+c),rt&&(A=p(1,1)+p(g(Q),4)+G,at+="uc"+p(A.length,2)+A);var T="";return T+=`
|
|
2
|
+
\0`,T+=p(F,2),T+=C.magic,T+=p(M,2),T+=p(d,2),T+=p(q.crc32,4),T+=p(q.compressedSize,4),T+=p(q.uncompressedSize,4),T+=p(D.length,2),T+=p(at.length,2),{fileRecord:I.LOCAL_FILE_HEADER+T+D+at,dirRecord:I.CENTRAL_FILE_HEADER+p(K,2)+T+p(Q.length,2)+"\0\0\0\0"+p($,4)+p(m,4)+D+at+Q}},N=function(y){return I.DATA_DESCRIPTOR+p(y.crc32,4)+p(y.compressedSize,4)+p(y.uncompressedSize,4)};function _(y,h,u,m){i.call(this,"ZipFileWorker"),this.bytesWritten=0,this.zipComment=h,this.zipPlatform=u,this.encodeFileName=m,this.streamFiles=y,this.accumulate=!1,this.contentBuffer=[],this.dirRecords=[],this.currentSourceOffset=0,this.entriesCount=0,this.currentFile=null,this._sources=[]}a.inherits(_,i),_.prototype.push=function(y){var h=y.meta.percent||0,u=this.entriesCount,m=this._sources.length;this.accumulate?this.contentBuffer.push(y):(this.bytesWritten+=y.data.length,i.prototype.push.call(this,{data:y.data,meta:{currentFile:this.currentFile,percent:u?(h+100*(u-m-1))/u:100}}))},_.prototype.openedSource=function(y){this.currentSourceOffset=this.bytesWritten,this.currentFile=y.file.name;var h=this.streamFiles&&!y.file.dir;if(h){var u=S(y,h,!1,this.currentSourceOffset,this.zipPlatform,this.encodeFileName);this.push({data:u.fileRecord,meta:{percent:0}})}else this.accumulate=!0},_.prototype.closedSource=function(y){this.accumulate=!1;var h=this.streamFiles&&!y.file.dir,u=S(y,h,!0,this.currentSourceOffset,this.zipPlatform,this.encodeFileName);if(this.dirRecords.push(u.dirRecord),h)this.push({data:N(y),meta:{percent:100}});else for(this.push({data:u.fileRecord,meta:{percent:0}});this.contentBuffer.length;)this.push(this.contentBuffer.shift());this.currentFile=null},_.prototype.flush=function(){for(var y=this.bytesWritten,h=0;h<this.dirRecords.length;h++)this.push({data:this.dirRecords[h],meta:{percent:100}});var u=this.bytesWritten-y,m=(function(E,O,M,d,b){var C=a.transformTo("string",b(d));return I.CENTRAL_DIRECTORY_END+"\0\0\0\0"+p(E,2)+p(E,2)+p(O,4)+p(M,4)+p(C.length,2)+C})(this.dirRecords.length,u,y,this.zipComment,this.encodeFileName);this.push({data:m,meta:{percent:100}})},_.prototype.prepareNextSource=function(){this.previous=this._sources.shift(),this.openedSource(this.previous.streamInfo),this.isPaused?this.previous.pause():this.previous.resume()},_.prototype.registerPrevious=function(y){this._sources.push(y);var h=this;return y.on("data",(function(u){h.processChunk(u)})),y.on("end",(function(){h.closedSource(h.previous.streamInfo),h._sources.length?h.prepareNextSource():h.end()})),y.on("error",(function(u){h.error(u)})),this},_.prototype.resume=function(){return!!i.prototype.resume.call(this)&&(!this.previous&&this._sources.length?(this.prepareNextSource(),!0):this.previous||this._sources.length||this.generatedError?void 0:(this.end(),!0))},_.prototype.error=function(y){var h=this._sources;if(!i.prototype.error.call(this,y))return!1;for(var u=0;u<h.length;u++)try{h[u].error(y)}catch{}return!0},_.prototype.lock=function(){i.prototype.lock.call(this);for(var y=this._sources,h=0;h<y.length;h++)y[h].lock()},z.exports=_},7834:(z,P,r)=>{var a=r(1678),i=r(4979);P.generateWorker=function(l,g,I){var p=new i(g.streamFiles,I,g.platform,g.encodeFileName),S=0;try{l.forEach((function(N,_){S++;var y=(function(E,O){var M=E||O,d=a[M];if(!d)throw new Error(M+" is not a valid compression method !");return d})(_.options.compression,g.compression),h=_.options.compressionOptions||g.compressionOptions||{},u=_.dir,m=_.date;_._compressWorker(y,h).withStreamInfo("file",{name:N,dir:u,date:m,comment:_.comment||"",unixPermissions:_.unixPermissions,dosPermissions:_.dosPermissions}).pipe(p)})),p.entriesCount=S}catch(N){p.error(N)}return p}},6085:(z,P,r)=>{function a(){if(!(this instanceof a))return new a;if(arguments.length)throw new Error("The constructor with parameters has been removed in JSZip 3.0, please check the upgrade guide.");this.files=Object.create(null),this.comment=null,this.root="",this.clone=function(){var i=new a;for(var l in this)typeof this[l]!="function"&&(i[l]=this[l]);return i}}a.prototype=r(7132),a.prototype.loadAsync=r(1062),a.support=r(3790),a.defaults=r(6032),a.version="3.10.1",a.loadAsync=function(i,l){return new a().loadAsync(i,l)},a.external=r(8565),z.exports=a},1062:(z,P,r)=>{var a=r(8910),i=r(8565),l=r(3600),g=r(6624),I=r(2541),p=r(2182);function S(N){return new i.Promise((function(_,y){var h=N.decompressed.getContentWorker().pipe(new I);h.on("error",(function(u){y(u)})).on("end",(function(){h.streamInfo.crc32!==N.decompressed.crc32?y(new Error("Corrupted zip : CRC32 mismatch")):_()})).resume()}))}z.exports=function(N,_){var y=this;return _=a.extend(_||{},{base64:!1,checkCRC32:!1,optimizedBinaryString:!1,createFolders:!1,decodeFileName:l.utf8decode}),p.isNode&&p.isStream(N)?i.Promise.reject(new Error("JSZip can't accept a stream when loading a zip file.")):a.prepareContent("the loaded zip file",N,!0,_.optimizedBinaryString,_.base64).then((function(h){var u=new g(_);return u.load(h),u})).then((function(h){var u=[i.Promise.resolve(h)],m=h.files;if(_.checkCRC32)for(var E=0;E<m.length;E++)u.push(S(m[E]));return i.Promise.all(u)})).then((function(h){for(var u=h.shift(),m=u.files,E=0;E<m.length;E++){var O=m[E],M=O.fileNameStr,d=a.resolve(O.fileNameStr);y.file(d,O.decompressed,{binary:!0,optimizedBinaryString:!0,date:O.date,dir:O.dir,comment:O.fileCommentStr.length?O.fileCommentStr:null,unixPermissions:O.unixPermissions,dosPermissions:O.dosPermissions,createFolders:_.createFolders}),O.dir||(y.file(d).unsafeOriginalName=M)}return u.zipComment.length&&(y.comment=u.zipComment),y}))}},2182:z=>{z.exports={isNode:typeof Buffer<"u",newBufferFrom:function(P,r){if(Buffer.from&&Buffer.from!==Uint8Array.from)return Buffer.from(P,r);if(typeof P=="number")throw new Error('The "data" argument must not be a number');return new Buffer(P,r)},allocBuffer:function(P){if(Buffer.alloc)return Buffer.alloc(P);var r=new Buffer(P);return r.fill(0),r},isBuffer:function(P){return Buffer.isBuffer(P)},isStream:function(P){return P&&typeof P.on=="function"&&typeof P.pause=="function"&&typeof P.resume=="function"}}},660:(z,P,r)=>{var a=r(8910),i=r(3718);function l(g,I){i.call(this,"Nodejs stream input adapter for "+g),this._upstreamEnded=!1,this._bindStream(I)}a.inherits(l,i),l.prototype._bindStream=function(g){var I=this;this._stream=g,g.pause(),g.on("data",(function(p){I.push({data:p,meta:{percent:0}})})).on("error",(function(p){I.isPaused?this.generatedError=p:I.error(p)})).on("end",(function(){I.isPaused?I._upstreamEnded=!0:I.end()}))},l.prototype.pause=function(){return!!i.prototype.pause.call(this)&&(this._stream.pause(),!0)},l.prototype.resume=function(){return!!i.prototype.resume.call(this)&&(this._upstreamEnded?this.end():this._stream.resume(),!0)},z.exports=l},1220:(z,P,r)=>{var a=r(749).Readable;function i(l,g,I){a.call(this,g),this._helper=l;var p=this;l.on("data",(function(S,N){p.push(S)||p._helper.pause(),I&&I(N)})).on("error",(function(S){p.emit("error",S)})).on("end",(function(){p.push(null)}))}r(8910).inherits(i,a),i.prototype._read=function(){this._helper.resume()},z.exports=i},7132:(z,P,r)=>{var a=r(3600),i=r(8910),l=r(3718),g=r(1285),I=r(6032),p=r(7326),S=r(6859),N=r(7834),_=r(2182),y=r(660),h=function(d,b,C){var x,D=i.getTypeOf(b),n=i.extend(C||{},I);n.date=n.date||new Date,n.compression!==null&&(n.compression=n.compression.toUpperCase()),typeof n.unixPermissions=="string"&&(n.unixPermissions=parseInt(n.unixPermissions,8)),n.unixPermissions&&16384&n.unixPermissions&&(n.dir=!0),n.dosPermissions&&16&n.dosPermissions&&(n.dir=!0),n.dir&&(d=m(d)),n.createFolders&&(x=u(d))&&E.call(this,x,!0);var B=D==="string"&&n.binary===!1&&n.base64===!1;C&&C.binary!==void 0||(n.binary=!B),(b instanceof p&&b.uncompressedSize===0||n.dir||!b||b.length===0)&&(n.base64=!1,n.binary=!0,b="",n.compression="STORE",D="string");var Q;Q=b instanceof p||b instanceof l?b:_.isNode&&_.isStream(b)?new y(d,b):i.prepareContent(d,b,n.binary,n.optimizedBinaryString,n.base64);var G=new S(d,Q,n);this.files[d]=G},u=function(d){d.slice(-1)==="/"&&(d=d.substring(0,d.length-1));var b=d.lastIndexOf("/");return b>0?d.substring(0,b):""},m=function(d){return d.slice(-1)!=="/"&&(d+="/"),d},E=function(d,b){return b=b!==void 0?b:I.createFolders,d=m(d),this.files[d]||h.call(this,d,null,{dir:!0,createFolders:b}),this.files[d]};function O(d){return Object.prototype.toString.call(d)==="[object RegExp]"}var M={load:function(){throw new Error("This method has been removed in JSZip 3.0, please check the upgrade guide.")},forEach:function(d){var b,C,x;for(b in this.files)x=this.files[b],(C=b.slice(this.root.length,b.length))&&b.slice(0,this.root.length)===this.root&&d(C,x)},filter:function(d){var b=[];return this.forEach((function(C,x){d(C,x)&&b.push(x)})),b},file:function(d,b,C){if(arguments.length===1){if(O(d)){var x=d;return this.filter((function(n,B){return!B.dir&&x.test(n)}))}var D=this.files[this.root+d];return D&&!D.dir?D:null}return d=this.root+d,h.call(this,d,b,C),this},folder:function(d){if(!d)return this;if(O(d))return this.filter((function(D,n){return n.dir&&d.test(D)}));var b=this.root+d,C=E.call(this,b),x=this.clone();return x.root=C.name,x},remove:function(d){d=this.root+d;var b=this.files[d];if(b||(d.slice(-1)!=="/"&&(d+="/"),b=this.files[d]),b&&!b.dir)delete this.files[d];else for(var C=this.filter((function(D,n){return n.name.slice(0,d.length)===d})),x=0;x<C.length;x++)delete this.files[C[x].name];return this},generate:function(){throw new Error("This method has been removed in JSZip 3.0, please check the upgrade guide.")},generateInternalStream:function(d){var b,C={};try{if((C=i.extend(d||{},{streamFiles:!1,compression:"STORE",compressionOptions:null,type:"",platform:"DOS",comment:null,mimeType:"application/zip",encodeFileName:a.utf8encode})).type=C.type.toLowerCase(),C.compression=C.compression.toUpperCase(),C.type==="binarystring"&&(C.type="string"),!C.type)throw new Error("No output type specified.");i.checkSupport(C.type),C.platform!=="darwin"&&C.platform!=="freebsd"&&C.platform!=="linux"&&C.platform!=="sunos"||(C.platform="UNIX"),C.platform==="win32"&&(C.platform="DOS");var x=C.comment||this.comment||"";b=N.generateWorker(this,C,x)}catch(D){(b=new l("error")).error(D)}return new g(b,C.type||"string",C.mimeType)},generateAsync:function(d,b){return this.generateInternalStream(d).accumulate(b)},generateNodeStream:function(d,b){return(d=d||{}).type||(d.type="nodebuffer"),this.generateInternalStream(d).toNodejsStream(b)}};z.exports=M},749:(z,P,r)=>{z.exports=r(2830)},2370:(z,P,r)=>{var a=r(8542);function i(l){a.call(this,l);for(var g=0;g<this.data.length;g++)l[g]=255&l[g]}r(8910).inherits(i,a),i.prototype.byteAt=function(l){return this.data[this.zero+l]},i.prototype.lastIndexOfSignature=function(l){for(var g=l.charCodeAt(0),I=l.charCodeAt(1),p=l.charCodeAt(2),S=l.charCodeAt(3),N=this.length-4;N>=0;--N)if(this.data[N]===g&&this.data[N+1]===I&&this.data[N+2]===p&&this.data[N+3]===S)return N-this.zero;return-1},i.prototype.readAndCheckSignature=function(l){var g=l.charCodeAt(0),I=l.charCodeAt(1),p=l.charCodeAt(2),S=l.charCodeAt(3),N=this.readData(4);return g===N[0]&&I===N[1]&&p===N[2]&&S===N[3]},i.prototype.readData=function(l){if(this.checkOffset(l),l===0)return[];var g=this.data.slice(this.zero+this.index,this.zero+this.index+l);return this.index+=l,g},z.exports=i},8542:(z,P,r)=>{var a=r(8910);function i(l){this.data=l,this.length=l.length,this.index=0,this.zero=0}i.prototype={checkOffset:function(l){this.checkIndex(this.index+l)},checkIndex:function(l){if(this.length<this.zero+l||l<0)throw new Error("End of data reached (data length = "+this.length+", asked index = "+l+"). Corrupted zip ?")},setIndex:function(l){this.checkIndex(l),this.index=l},skip:function(l){this.setIndex(this.index+l)},byteAt:function(){},readInt:function(l){var g,I=0;for(this.checkOffset(l),g=this.index+l-1;g>=this.index;g--)I=(I<<8)+this.byteAt(g);return this.index+=l,I},readString:function(l){return a.transformTo("string",this.readData(l))},readData:function(){},lastIndexOfSignature:function(){},readAndCheckSignature:function(){},readDate:function(){var l=this.readInt(4);return new Date(Date.UTC(1980+(l>>25&127),(l>>21&15)-1,l>>16&31,l>>11&31,l>>5&63,(31&l)<<1))}},z.exports=i},9583:(z,P,r)=>{var a=r(414);function i(l){a.call(this,l)}r(8910).inherits(i,a),i.prototype.readData=function(l){this.checkOffset(l);var g=this.data.slice(this.zero+this.index,this.zero+this.index+l);return this.index+=l,g},z.exports=i},9226:(z,P,r)=>{var a=r(8542);function i(l){a.call(this,l)}r(8910).inherits(i,a),i.prototype.byteAt=function(l){return this.data.charCodeAt(this.zero+l)},i.prototype.lastIndexOfSignature=function(l){return this.data.lastIndexOf(l)-this.zero},i.prototype.readAndCheckSignature=function(l){return l===this.readData(4)},i.prototype.readData=function(l){this.checkOffset(l);var g=this.data.slice(this.zero+this.index,this.zero+this.index+l);return this.index+=l,g},z.exports=i},414:(z,P,r)=>{var a=r(2370);function i(l){a.call(this,l)}r(8910).inherits(i,a),i.prototype.readData=function(l){if(this.checkOffset(l),l===0)return new Uint8Array(0);var g=this.data.subarray(this.zero+this.index,this.zero+this.index+l);return this.index+=l,g},z.exports=i},8435:(z,P,r)=>{var a=r(8910),i=r(3790),l=r(2370),g=r(9226),I=r(9583),p=r(414);z.exports=function(S){var N=a.getTypeOf(S);return a.checkSupport(N),N!=="string"||i.uint8array?N==="nodebuffer"?new I(S):i.uint8array?new p(a.transformTo("uint8array",S)):new l(a.transformTo("array",S)):new g(S)}},1141:(z,P)=>{P.LOCAL_FILE_HEADER="PK",P.CENTRAL_FILE_HEADER="PK",P.CENTRAL_DIRECTORY_END="PK",P.ZIP64_CENTRAL_DIRECTORY_LOCATOR="PK\x07",P.ZIP64_CENTRAL_DIRECTORY_END="PK",P.DATA_DESCRIPTOR="PK\x07\b"},4293:(z,P,r)=>{var a=r(3718),i=r(8910);function l(g){a.call(this,"ConvertWorker to "+g),this.destType=g}i.inherits(l,a),l.prototype.processChunk=function(g){this.push({data:i.transformTo(this.destType,g.data),meta:g.meta})},z.exports=l},2541:(z,P,r)=>{var a=r(3718),i=r(6988);function l(){a.call(this,"Crc32Probe"),this.withStreamInfo("crc32",0)}r(8910).inherits(l,a),l.prototype.processChunk=function(g){this.streamInfo.crc32=i(g.data,this.streamInfo.crc32||0),this.push(g)},z.exports=l},5977:(z,P,r)=>{var a=r(8910),i=r(3718);function l(g){i.call(this,"DataLengthProbe for "+g),this.propName=g,this.withStreamInfo(g,0)}a.inherits(l,i),l.prototype.processChunk=function(g){if(g){var I=this.streamInfo[this.propName]||0;this.streamInfo[this.propName]=I+g.data.length}i.prototype.processChunk.call(this,g)},z.exports=l},5301:(z,P,r)=>{var a=r(8910),i=r(3718);function l(g){i.call(this,"DataWorker");var I=this;this.dataIsReady=!1,this.index=0,this.max=0,this.data=null,this.type="",this._tickScheduled=!1,g.then((function(p){I.dataIsReady=!0,I.data=p,I.max=p&&p.length||0,I.type=a.getTypeOf(p),I.isPaused||I._tickAndRepeat()}),(function(p){I.error(p)}))}a.inherits(l,i),l.prototype.cleanUp=function(){i.prototype.cleanUp.call(this),this.data=null},l.prototype.resume=function(){return!!i.prototype.resume.call(this)&&(!this._tickScheduled&&this.dataIsReady&&(this._tickScheduled=!0,a.delay(this._tickAndRepeat,[],this)),!0)},l.prototype._tickAndRepeat=function(){this._tickScheduled=!1,this.isPaused||this.isFinished||(this._tick(),this.isFinished||(a.delay(this._tickAndRepeat,[],this),this._tickScheduled=!0))},l.prototype._tick=function(){if(this.isPaused||this.isFinished)return!1;var g=null,I=Math.min(this.max,this.index+16384);if(this.index>=this.max)return this.end();switch(this.type){case"string":g=this.data.substring(this.index,I);break;case"uint8array":g=this.data.subarray(this.index,I);break;case"array":case"nodebuffer":g=this.data.slice(this.index,I)}return this.index=I,this.push({data:g,meta:{percent:this.max?this.index/this.max*100:0}})},z.exports=l},3718:z=>{function P(r){this.name=r||"default",this.streamInfo={},this.generatedError=null,this.extraStreamInfo={},this.isPaused=!0,this.isFinished=!1,this.isLocked=!1,this._listeners={data:[],end:[],error:[]},this.previous=null}P.prototype={push:function(r){this.emit("data",r)},end:function(){if(this.isFinished)return!1;this.flush();try{this.emit("end"),this.cleanUp(),this.isFinished=!0}catch(r){this.emit("error",r)}return!0},error:function(r){return!this.isFinished&&(this.isPaused?this.generatedError=r:(this.isFinished=!0,this.emit("error",r),this.previous&&this.previous.error(r),this.cleanUp()),!0)},on:function(r,a){return this._listeners[r].push(a),this},cleanUp:function(){this.streamInfo=this.generatedError=this.extraStreamInfo=null,this._listeners=[]},emit:function(r,a){if(this._listeners[r])for(var i=0;i<this._listeners[r].length;i++)this._listeners[r][i].call(this,a)},pipe:function(r){return r.registerPrevious(this)},registerPrevious:function(r){if(this.isLocked)throw new Error("The stream '"+this+"' has already been used.");this.streamInfo=r.streamInfo,this.mergeStreamInfo(),this.previous=r;var a=this;return r.on("data",(function(i){a.processChunk(i)})),r.on("end",(function(){a.end()})),r.on("error",(function(i){a.error(i)})),this},pause:function(){return!this.isPaused&&!this.isFinished&&(this.isPaused=!0,this.previous&&this.previous.pause(),!0)},resume:function(){if(!this.isPaused||this.isFinished)return!1;this.isPaused=!1;var r=!1;return this.generatedError&&(this.error(this.generatedError),r=!0),this.previous&&this.previous.resume(),!r},flush:function(){},processChunk:function(r){this.push(r)},withStreamInfo:function(r,a){return this.extraStreamInfo[r]=a,this.mergeStreamInfo(),this},mergeStreamInfo:function(){for(var r in this.extraStreamInfo)Object.prototype.hasOwnProperty.call(this.extraStreamInfo,r)&&(this.streamInfo[r]=this.extraStreamInfo[r])},lock:function(){if(this.isLocked)throw new Error("The stream '"+this+"' has already been used.");this.isLocked=!0,this.previous&&this.previous.lock()},toString:function(){var r="Worker "+this.name;return this.previous?this.previous+" -> "+r:r}},z.exports=P},1285:(z,P,r)=>{var a=r(8910),i=r(4293),l=r(3718),g=r(8458),I=r(3790),p=r(8565),S=null;if(I.nodestream)try{S=r(1220)}catch{}function N(_,y,h){var u=y;switch(y){case"blob":case"arraybuffer":u="uint8array";break;case"base64":u="string"}try{this._internalType=u,this._outputType=y,this._mimeType=h,a.checkSupport(u),this._worker=_.pipe(new i(u)),_.lock()}catch(m){this._worker=new l("error"),this._worker.error(m)}}N.prototype={accumulate:function(_){return y=this,h=_,new p.Promise((function(u,m){var E=[],O=y._internalType,M=y._outputType,d=y._mimeType;y.on("data",(function(b,C){E.push(b),h&&h(C)})).on("error",(function(b){E=[],m(b)})).on("end",(function(){try{var b=(function(C,x,D){switch(C){case"blob":return a.newBlob(a.transformTo("arraybuffer",x),D);case"base64":return g.encode(x);default:return a.transformTo(C,x)}})(M,(function(C,x){var D,n=0,B=null,Q=0;for(D=0;D<x.length;D++)Q+=x[D].length;switch(C){case"string":return x.join("");case"array":return Array.prototype.concat.apply([],x);case"uint8array":for(B=new Uint8Array(Q),D=0;D<x.length;D++)B.set(x[D],n),n+=x[D].length;return B;case"nodebuffer":return Buffer.concat(x);default:throw new Error("concat : unsupported type '"+C+"'")}})(O,E),d);u(b)}catch(C){m(C)}E=[]})).resume()}));var y,h},on:function(_,y){var h=this;return _==="data"?this._worker.on(_,(function(u){y.call(h,u.data,u.meta)})):this._worker.on(_,(function(){a.delay(y,arguments,h)})),this},resume:function(){return a.delay(this._worker.resume,[],this._worker),this},pause:function(){return this._worker.pause(),this},toNodejsStream:function(_){if(a.checkSupport("nodestream"),this._outputType!=="nodebuffer")throw new Error(this._outputType+" is not supported by this method");return new S(this,{objectMode:this._outputType!=="nodebuffer"},_)}},z.exports=N},3790:(z,P,r)=>{if(P.base64=!0,P.array=!0,P.string=!0,P.arraybuffer=typeof ArrayBuffer<"u"&&typeof Uint8Array<"u",P.nodebuffer=typeof Buffer<"u",P.uint8array=typeof Uint8Array<"u",typeof ArrayBuffer>"u")P.blob=!1;else{var a=new ArrayBuffer(0);try{P.blob=new Blob([a],{type:"application/zip"}).size===0}catch{try{var i=new(self.BlobBuilder||self.WebKitBlobBuilder||self.MozBlobBuilder||self.MSBlobBuilder);i.append(a),P.blob=i.getBlob("application/zip").size===0}catch{P.blob=!1}}}try{P.nodestream=!!r(749).Readable}catch{P.nodestream=!1}},3600:(z,P,r)=>{for(var a=r(8910),i=r(3790),l=r(2182),g=r(3718),I=new Array(256),p=0;p<256;p++)I[p]=p>=252?6:p>=248?5:p>=240?4:p>=224?3:p>=192?2:1;function S(){g.call(this,"utf-8 decode"),this.leftOver=null}function N(){g.call(this,"utf-8 encode")}I[254]=I[254]=1,P.utf8encode=function(_){return i.nodebuffer?l.newBufferFrom(_,"utf-8"):(function(y){var h,u,m,E,O,M=y.length,d=0;for(E=0;E<M;E++)(64512&(u=y.charCodeAt(E)))==55296&&E+1<M&&(64512&(m=y.charCodeAt(E+1)))==56320&&(u=65536+(u-55296<<10)+(m-56320),E++),d+=u<128?1:u<2048?2:u<65536?3:4;for(h=i.uint8array?new Uint8Array(d):new Array(d),O=0,E=0;O<d;E++)(64512&(u=y.charCodeAt(E)))==55296&&E+1<M&&(64512&(m=y.charCodeAt(E+1)))==56320&&(u=65536+(u-55296<<10)+(m-56320),E++),u<128?h[O++]=u:u<2048?(h[O++]=192|u>>>6,h[O++]=128|63&u):u<65536?(h[O++]=224|u>>>12,h[O++]=128|u>>>6&63,h[O++]=128|63&u):(h[O++]=240|u>>>18,h[O++]=128|u>>>12&63,h[O++]=128|u>>>6&63,h[O++]=128|63&u);return h})(_)},P.utf8decode=function(_){return i.nodebuffer?a.transformTo("nodebuffer",_).toString("utf-8"):(function(y){var h,u,m,E,O=y.length,M=new Array(2*O);for(u=0,h=0;h<O;)if((m=y[h++])<128)M[u++]=m;else if((E=I[m])>4)M[u++]=65533,h+=E-1;else{for(m&=E===2?31:E===3?15:7;E>1&&h<O;)m=m<<6|63&y[h++],E--;E>1?M[u++]=65533:m<65536?M[u++]=m:(m-=65536,M[u++]=55296|m>>10&1023,M[u++]=56320|1023&m)}return M.length!==u&&(M.subarray?M=M.subarray(0,u):M.length=u),a.applyFromCharCode(M)})(_=a.transformTo(i.uint8array?"uint8array":"array",_))},a.inherits(S,g),S.prototype.processChunk=function(_){var y=a.transformTo(i.uint8array?"uint8array":"array",_.data);if(this.leftOver&&this.leftOver.length){if(i.uint8array){var h=y;(y=new Uint8Array(h.length+this.leftOver.length)).set(this.leftOver,0),y.set(h,this.leftOver.length)}else y=this.leftOver.concat(y);this.leftOver=null}var u=(function(E,O){var M;for((O=O||E.length)>E.length&&(O=E.length),M=O-1;M>=0&&(192&E[M])==128;)M--;return M<0||M===0?O:M+I[E[M]]>O?M:O})(y),m=y;u!==y.length&&(i.uint8array?(m=y.subarray(0,u),this.leftOver=y.subarray(u,y.length)):(m=y.slice(0,u),this.leftOver=y.slice(u,y.length))),this.push({data:P.utf8decode(m),meta:_.meta})},S.prototype.flush=function(){this.leftOver&&this.leftOver.length&&(this.push({data:P.utf8decode(this.leftOver),meta:{}}),this.leftOver=null)},P.Utf8DecodeWorker=S,a.inherits(N,g),N.prototype.processChunk=function(_){this.push({data:P.utf8encode(_.data),meta:_.meta})},P.Utf8EncodeWorker=N},8910:(z,P,r)=>{var a=r(3790),i=r(8458),l=r(2182),g=r(8565);function I(h){return h}function p(h,u){for(var m=0;m<h.length;++m)u[m]=255&h.charCodeAt(m);return u}r(4889),P.newBlob=function(h,u){P.checkSupport("blob");try{return new Blob([h],{type:u})}catch{try{var m=new(self.BlobBuilder||self.WebKitBlobBuilder||self.MozBlobBuilder||self.MSBlobBuilder);return m.append(h),m.getBlob(u)}catch{throw new Error("Bug : can't construct the Blob.")}}};var S={stringifyByChunk:function(h,u,m){var E=[],O=0,M=h.length;if(M<=m)return String.fromCharCode.apply(null,h);for(;O<M;)u==="array"||u==="nodebuffer"?E.push(String.fromCharCode.apply(null,h.slice(O,Math.min(O+m,M)))):E.push(String.fromCharCode.apply(null,h.subarray(O,Math.min(O+m,M)))),O+=m;return E.join("")},stringifyByChar:function(h){for(var u="",m=0;m<h.length;m++)u+=String.fromCharCode(h[m]);return u},applyCanBeUsed:{uint8array:(function(){try{return a.uint8array&&String.fromCharCode.apply(null,new Uint8Array(1)).length===1}catch{return!1}})(),nodebuffer:(function(){try{return a.nodebuffer&&String.fromCharCode.apply(null,l.allocBuffer(1)).length===1}catch{return!1}})()}};function N(h){var u=65536,m=P.getTypeOf(h),E=!0;if(m==="uint8array"?E=S.applyCanBeUsed.uint8array:m==="nodebuffer"&&(E=S.applyCanBeUsed.nodebuffer),E)for(;u>1;)try{return S.stringifyByChunk(h,m,u)}catch{u=Math.floor(u/2)}return S.stringifyByChar(h)}function _(h,u){for(var m=0;m<h.length;m++)u[m]=h[m];return u}P.applyFromCharCode=N;var y={};y.string={string:I,array:function(h){return p(h,new Array(h.length))},arraybuffer:function(h){return y.string.uint8array(h).buffer},uint8array:function(h){return p(h,new Uint8Array(h.length))},nodebuffer:function(h){return p(h,l.allocBuffer(h.length))}},y.array={string:N,array:I,arraybuffer:function(h){return new Uint8Array(h).buffer},uint8array:function(h){return new Uint8Array(h)},nodebuffer:function(h){return l.newBufferFrom(h)}},y.arraybuffer={string:function(h){return N(new Uint8Array(h))},array:function(h){return _(new Uint8Array(h),new Array(h.byteLength))},arraybuffer:I,uint8array:function(h){return new Uint8Array(h)},nodebuffer:function(h){return l.newBufferFrom(new Uint8Array(h))}},y.uint8array={string:N,array:function(h){return _(h,new Array(h.length))},arraybuffer:function(h){return h.buffer},uint8array:I,nodebuffer:function(h){return l.newBufferFrom(h)}},y.nodebuffer={string:N,array:function(h){return _(h,new Array(h.length))},arraybuffer:function(h){return y.nodebuffer.uint8array(h).buffer},uint8array:function(h){return _(h,new Uint8Array(h.length))},nodebuffer:I},P.transformTo=function(h,u){if(u||(u=""),!h)return u;P.checkSupport(h);var m=P.getTypeOf(u);return y[m][h](u)},P.resolve=function(h){for(var u=h.split("/"),m=[],E=0;E<u.length;E++){var O=u[E];O==="."||O===""&&E!==0&&E!==u.length-1||(O===".."?m.pop():m.push(O))}return m.join("/")},P.getTypeOf=function(h){return typeof h=="string"?"string":Object.prototype.toString.call(h)==="[object Array]"?"array":a.nodebuffer&&l.isBuffer(h)?"nodebuffer":a.uint8array&&h instanceof Uint8Array?"uint8array":a.arraybuffer&&h instanceof ArrayBuffer?"arraybuffer":void 0},P.checkSupport=function(h){if(!a[h.toLowerCase()])throw new Error(h+" is not supported by this platform")},P.MAX_VALUE_16BITS=65535,P.MAX_VALUE_32BITS=-1,P.pretty=function(h){var u,m,E="";for(m=0;m<(h||"").length;m++)E+="\\x"+((u=h.charCodeAt(m))<16?"0":"")+u.toString(16).toUpperCase();return E},P.delay=function(h,u,m){setImmediate((function(){h.apply(m||null,u||[])}))},P.inherits=function(h,u){var m=function(){};m.prototype=u.prototype,h.prototype=new m},P.extend=function(){var h,u,m={};for(h=0;h<arguments.length;h++)for(u in arguments[h])Object.prototype.hasOwnProperty.call(arguments[h],u)&&m[u]===void 0&&(m[u]=arguments[h][u]);return m},P.prepareContent=function(h,u,m,E,O){return g.Promise.resolve(u).then((function(M){return a.blob&&(M instanceof Blob||["[object File]","[object Blob]"].indexOf(Object.prototype.toString.call(M))!==-1)&&typeof FileReader<"u"?new g.Promise((function(d,b){var C=new FileReader;C.onload=function(x){d(x.target.result)},C.onerror=function(x){b(x.target.error)},C.readAsArrayBuffer(M)})):M})).then((function(M){var d,b=P.getTypeOf(M);return b?(b==="arraybuffer"?M=P.transformTo("uint8array",M):b==="string"&&(O?M=i.decode(M):m&&E!==!0&&(M=p(d=M,a.uint8array?new Uint8Array(d.length):new Array(d.length)))),M):g.Promise.reject(new Error("Can't read the data of '"+h+"'. Is it in a supported JavaScript type (String, Blob, ArrayBuffer, etc) ?"))}))}},6624:(z,P,r)=>{var a=r(8435),i=r(8910),l=r(1141),g=r(9392),I=r(3790);function p(S){this.files=[],this.loadOptions=S}p.prototype={checkSignature:function(S){if(!this.reader.readAndCheckSignature(S)){this.reader.index-=4;var N=this.reader.readString(4);throw new Error("Corrupted zip or bug: unexpected signature ("+i.pretty(N)+", expected "+i.pretty(S)+")")}},isSignature:function(S,N){var _=this.reader.index;this.reader.setIndex(S);var y=this.reader.readString(4)===N;return this.reader.setIndex(_),y},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),N=I.uint8array?"uint8array":"array",_=i.transformTo(N,S);this.zipComment=this.loadOptions.decodeFileName(_)},readBlockZip64EndOfCentral:function(){this.zip64EndOfCentralSize=this.reader.readInt(8),this.reader.skip(4),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,N,_,y=this.zip64EndOfCentralSize-44;0<y;)S=this.reader.readInt(2),N=this.reader.readInt(4),_=this.reader.readData(N),this.zip64ExtensibleData[S]={id:S,length:N,value:_}},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,N;for(S=0;S<this.files.length;S++)N=this.files[S],this.reader.setIndex(N.localHeaderOffset),this.checkSignature(l.LOCAL_FILE_HEADER),N.readLocalPart(this.reader),N.handleUTF8(),N.processAttributes()},readCentralDir:function(){var S;for(this.reader.setIndex(this.centralDirOffset);this.reader.readAndCheckSignature(l.CENTRAL_FILE_HEADER);)(S=new g({zip64:this.zip64},this.loadOptions)).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(l.CENTRAL_DIRECTORY_END);if(S<0)throw this.isSignature(0,l.LOCAL_FILE_HEADER)?new Error("Corrupted zip: can't find end of central directory"):new Error("Can't find end of central directory : is this a zip file ? If it is, see https://stuk.github.io/jszip/documentation/howto/read_zip.html");this.reader.setIndex(S);var N=S;if(this.checkSignature(l.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(l.ZIP64_CENTRAL_DIRECTORY_LOCATOR))<0)throw new Error("Corrupted zip: can't find the ZIP64 end of central directory locator");if(this.reader.setIndex(S),this.checkSignature(l.ZIP64_CENTRAL_DIRECTORY_LOCATOR),this.readBlockZip64EndOfCentralLocator(),!this.isSignature(this.relativeOffsetEndOfZip64CentralDir,l.ZIP64_CENTRAL_DIRECTORY_END)&&(this.relativeOffsetEndOfZip64CentralDir=this.reader.lastIndexOfSignature(l.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(l.ZIP64_CENTRAL_DIRECTORY_END),this.readBlockZip64EndOfCentral()}var _=this.centralDirOffset+this.centralDirSize;this.zip64&&(_+=20,_+=12+this.zip64EndOfCentralSize);var y=N-_;if(y>0)this.isSignature(N,l.CENTRAL_FILE_HEADER)||(this.reader.zero=y);else if(y<0)throw new Error("Corrupted zip: missing "+Math.abs(y)+" bytes.")},prepareReader:function(S){this.reader=a(S)},load:function(S){this.prepareReader(S),this.readEndOfCentral(),this.readCentralDir(),this.readLocalFiles()}},z.exports=p},9392:(z,P,r)=>{var a=r(8435),i=r(8910),l=r(7326),g=r(6988),I=r(3600),p=r(1678),S=r(3790);function N(_,y){this.options=_,this.loadOptions=y}N.prototype={isEncrypted:function(){return(1&this.bitFlag)==1},useUTF8:function(){return(2048&this.bitFlag)==2048},readLocalPart:function(_){var y,h;if(_.skip(22),this.fileNameLength=_.readInt(2),h=_.readInt(2),this.fileName=_.readData(this.fileNameLength),_.skip(h),this.compressedSize===-1||this.uncompressedSize===-1)throw new Error("Bug or corrupted zip : didn't get enough information from the central directory (compressedSize === -1 || uncompressedSize === -1)");if((y=(function(u){for(var m in p)if(Object.prototype.hasOwnProperty.call(p,m)&&p[m].magic===u)return p[m];return null})(this.compressionMethod))===null)throw new Error("Corrupted zip : compression "+i.pretty(this.compressionMethod)+" unknown (inner file : "+i.transformTo("string",this.fileName)+")");this.decompressed=new l(this.compressedSize,this.uncompressedSize,this.crc32,y,_.readData(this.compressedSize))},readCentralPart:function(_){this.versionMadeBy=_.readInt(2),_.skip(2),this.bitFlag=_.readInt(2),this.compressionMethod=_.readString(2),this.date=_.readDate(),this.crc32=_.readInt(4),this.compressedSize=_.readInt(4),this.uncompressedSize=_.readInt(4);var y=_.readInt(2);if(this.extraFieldsLength=_.readInt(2),this.fileCommentLength=_.readInt(2),this.diskNumberStart=_.readInt(2),this.internalFileAttributes=_.readInt(2),this.externalFileAttributes=_.readInt(4),this.localHeaderOffset=_.readInt(4),this.isEncrypted())throw new Error("Encrypted zip are not supported");_.skip(y),this.readExtraFields(_),this.parseZIP64ExtraField(_),this.fileComment=_.readData(this.fileCommentLength)},processAttributes:function(){this.unixPermissions=null,this.dosPermissions=null;var _=this.versionMadeBy>>8;this.dir=!!(16&this.externalFileAttributes),_===0&&(this.dosPermissions=63&this.externalFileAttributes),_===3&&(this.unixPermissions=this.externalFileAttributes>>16&65535),this.dir||this.fileNameStr.slice(-1)!=="/"||(this.dir=!0)},parseZIP64ExtraField:function(){if(this.extraFields[1]){var _=a(this.extraFields[1].value);this.uncompressedSize===i.MAX_VALUE_32BITS&&(this.uncompressedSize=_.readInt(8)),this.compressedSize===i.MAX_VALUE_32BITS&&(this.compressedSize=_.readInt(8)),this.localHeaderOffset===i.MAX_VALUE_32BITS&&(this.localHeaderOffset=_.readInt(8)),this.diskNumberStart===i.MAX_VALUE_32BITS&&(this.diskNumberStart=_.readInt(4))}},readExtraFields:function(_){var y,h,u,m=_.index+this.extraFieldsLength;for(this.extraFields||(this.extraFields={});_.index+4<m;)y=_.readInt(2),h=_.readInt(2),u=_.readData(h),this.extraFields[y]={id:y,length:h,value:u};_.setIndex(m)},handleUTF8:function(){var _=S.uint8array?"uint8array":"array";if(this.useUTF8())this.fileNameStr=I.utf8decode(this.fileName),this.fileCommentStr=I.utf8decode(this.fileComment);else{var y=this.findExtraFieldUnicodePath();if(y!==null)this.fileNameStr=y;else{var h=i.transformTo(_,this.fileName);this.fileNameStr=this.loadOptions.decodeFileName(h)}var u=this.findExtraFieldUnicodeComment();if(u!==null)this.fileCommentStr=u;else{var m=i.transformTo(_,this.fileComment);this.fileCommentStr=this.loadOptions.decodeFileName(m)}}},findExtraFieldUnicodePath:function(){var _=this.extraFields[28789];if(_){var y=a(_.value);return y.readInt(1)!==1||g(this.fileName)!==y.readInt(4)?null:I.utf8decode(y.readData(_.length-5))}return null},findExtraFieldUnicodeComment:function(){var _=this.extraFields[25461];if(_){var y=a(_.value);return y.readInt(1)!==1||g(this.fileComment)!==y.readInt(4)?null:I.utf8decode(y.readData(_.length-5))}return null}},z.exports=N},6859:(z,P,r)=>{var a=r(1285),i=r(5301),l=r(3600),g=r(7326),I=r(3718),p=function(y,h,u){this.name=y,this.dir=u.dir,this.date=u.date,this.comment=u.comment,this.unixPermissions=u.unixPermissions,this.dosPermissions=u.dosPermissions,this._data=h,this._dataBinary=u.binary,this.options={compression:u.compression,compressionOptions:u.compressionOptions}};p.prototype={internalStream:function(y){var h=null,u="string";try{if(!y)throw new Error("No output type specified.");var m=(u=y.toLowerCase())==="string"||u==="text";u!=="binarystring"&&u!=="text"||(u="string"),h=this._decompressWorker();var E=!this._dataBinary;E&&!m&&(h=h.pipe(new l.Utf8EncodeWorker)),!E&&m&&(h=h.pipe(new l.Utf8DecodeWorker))}catch(O){(h=new I("error")).error(O)}return new a(h,u,"")},async:function(y,h){return this.internalStream(y).accumulate(h)},nodeStream:function(y,h){return this.internalStream(y||"nodebuffer").toNodejsStream(h)},_compressWorker:function(y,h){if(this._data instanceof g&&this._data.compression.magic===y.magic)return this._data.getCompressedWorker();var u=this._decompressWorker();return this._dataBinary||(u=u.pipe(new l.Utf8EncodeWorker)),g.createWorkerFrom(u,y,h)},_decompressWorker:function(){return this._data instanceof g?this._data.getContentWorker():this._data instanceof I?this._data:new i(this._data)}};for(var S=["asText","asBinary","asNodeBuffer","asUint8Array","asArrayBuffer"],N=function(){throw new Error("This method has been removed in JSZip 3.0, please check the upgrade guide.")},_=0;_<S.length;_++)p.prototype[S[_]]=N;z.exports=p},3389:(z,P,r)=>{var a=r(5705);function i(){}var l={},g=["REJECTED"],I=["FULFILLED"],p=["PENDING"];function S(m){if(typeof m!="function")throw new TypeError("resolver must be a function");this.state=p,this.queue=[],this.outcome=void 0,m!==i&&h(this,m)}function N(m,E,O){this.promise=m,typeof E=="function"&&(this.onFulfilled=E,this.callFulfilled=this.otherCallFulfilled),typeof O=="function"&&(this.onRejected=O,this.callRejected=this.otherCallRejected)}function _(m,E,O){a((function(){var M;try{M=E(O)}catch(d){return l.reject(m,d)}M===m?l.reject(m,new TypeError("Cannot resolve promise with itself")):l.resolve(m,M)}))}function y(m){var E=m&&m.then;if(m&&(typeof m=="object"||typeof m=="function")&&typeof E=="function")return function(){E.apply(m,arguments)}}function h(m,E){var O=!1;function M(C){O||(O=!0,l.reject(m,C))}function d(C){O||(O=!0,l.resolve(m,C))}var b=u((function(){E(d,M)}));b.status==="error"&&M(b.value)}function u(m,E){var O={};try{O.value=m(E),O.status="success"}catch(M){O.status="error",O.value=M}return O}z.exports=S,S.prototype.finally=function(m){if(typeof m!="function")return this;var E=this.constructor;return this.then((function(O){return E.resolve(m()).then((function(){return O}))}),(function(O){return E.resolve(m()).then((function(){throw O}))}))},S.prototype.catch=function(m){return this.then(null,m)},S.prototype.then=function(m,E){if(typeof m!="function"&&this.state===I||typeof E!="function"&&this.state===g)return this;var O=new this.constructor(i);return this.state!==p?_(O,this.state===I?m:E,this.outcome):this.queue.push(new N(O,m,E)),O},N.prototype.callFulfilled=function(m){l.resolve(this.promise,m)},N.prototype.otherCallFulfilled=function(m){_(this.promise,this.onFulfilled,m)},N.prototype.callRejected=function(m){l.reject(this.promise,m)},N.prototype.otherCallRejected=function(m){_(this.promise,this.onRejected,m)},l.resolve=function(m,E){var O=u(y,E);if(O.status==="error")return l.reject(m,O.value);var M=O.value;if(M)h(m,M);else{m.state=I,m.outcome=E;for(var d=-1,b=m.queue.length;++d<b;)m.queue[d].callFulfilled(E)}return m},l.reject=function(m,E){m.state=g,m.outcome=E;for(var O=-1,M=m.queue.length;++O<M;)m.queue[O].callRejected(E);return m},S.resolve=function(m){return m instanceof this?m:l.resolve(new this(i),m)},S.reject=function(m){var E=new this(i);return l.reject(E,m)},S.all=function(m){var E=this;if(Object.prototype.toString.call(m)!=="[object Array]")return this.reject(new TypeError("must be an array"));var O=m.length,M=!1;if(!O)return this.resolve([]);for(var d=new Array(O),b=0,C=-1,x=new this(i);++C<O;)D(m[C],C);return x;function D(n,B){E.resolve(n).then((function(Q){d[B]=Q,++b!==O||M||(M=!0,l.resolve(x,d))}),(function(Q){M||(M=!0,l.reject(x,Q))}))}},S.race=function(m){if(Object.prototype.toString.call(m)!=="[object Array]")return this.reject(new TypeError("must be an array"));var E=m.length,O=!1;if(!E)return this.resolve([]);for(var M,d=-1,b=new this(i);++d<E;)M=m[d],this.resolve(M).then((function(C){O||(O=!0,l.resolve(b,C))}),(function(C){O||(O=!0,l.reject(b,C))}));return b}},9591:(z,P,r)=>{var a={};(0,r(4236).assign)(a,r(4555),r(8843),r(1619)),z.exports=a},4555:(z,P,r)=>{var a=r(405),i=r(4236),l=r(9373),g=r(8898),I=r(2292),p=Object.prototype.toString;function S(_){if(!(this instanceof S))return new S(_);this.options=i.assign({level:-1,method:8,chunkSize:16384,windowBits:15,memLevel:8,strategy:0,to:""},_||{});var y=this.options;y.raw&&y.windowBits>0?y.windowBits=-y.windowBits:y.gzip&&y.windowBits>0&&y.windowBits<16&&(y.windowBits+=16),this.err=0,this.msg="",this.ended=!1,this.chunks=[],this.strm=new I,this.strm.avail_out=0;var h=a.deflateInit2(this.strm,y.level,y.method,y.windowBits,y.memLevel,y.strategy);if(h!==0)throw new Error(g[h]);if(y.header&&a.deflateSetHeader(this.strm,y.header),y.dictionary){var u;if(u=typeof y.dictionary=="string"?l.string2buf(y.dictionary):p.call(y.dictionary)==="[object ArrayBuffer]"?new Uint8Array(y.dictionary):y.dictionary,(h=a.deflateSetDictionary(this.strm,u))!==0)throw new Error(g[h]);this._dict_set=!0}}function N(_,y){var h=new S(y);if(h.push(_,!0),h.err)throw h.msg||g[h.err];return h.result}S.prototype.push=function(_,y){var h,u,m=this.strm,E=this.options.chunkSize;if(this.ended)return!1;u=y===~~y?y:y===!0?4:0,typeof _=="string"?m.input=l.string2buf(_):p.call(_)==="[object ArrayBuffer]"?m.input=new Uint8Array(_):m.input=_,m.next_in=0,m.avail_in=m.input.length;do{if(m.avail_out===0&&(m.output=new i.Buf8(E),m.next_out=0,m.avail_out=E),(h=a.deflate(m,u))!==1&&h!==0)return this.onEnd(h),this.ended=!0,!1;m.avail_out!==0&&(m.avail_in!==0||u!==4&&u!==2)||(this.options.to==="string"?this.onData(l.buf2binstring(i.shrinkBuf(m.output,m.next_out))):this.onData(i.shrinkBuf(m.output,m.next_out)))}while((m.avail_in>0||m.avail_out===0)&&h!==1);return u===4?(h=a.deflateEnd(this.strm),this.onEnd(h),this.ended=!0,h===0):u!==2||(this.onEnd(0),m.avail_out=0,!0)},S.prototype.onData=function(_){this.chunks.push(_)},S.prototype.onEnd=function(_){_===0&&(this.options.to==="string"?this.result=this.chunks.join(""):this.result=i.flattenChunks(this.chunks)),this.chunks=[],this.err=_,this.msg=this.strm.msg},P.Deflate=S,P.deflate=N,P.deflateRaw=function(_,y){return(y=y||{}).raw=!0,N(_,y)},P.gzip=function(_,y){return(y=y||{}).gzip=!0,N(_,y)}},8843:(z,P,r)=>{var a=r(7948),i=r(4236),l=r(9373),g=r(1619),I=r(8898),p=r(2292),S=r(2401),N=Object.prototype.toString;function _(h){if(!(this instanceof _))return new _(h);this.options=i.assign({chunkSize:16384,windowBits:0,to:""},h||{});var u=this.options;u.raw&&u.windowBits>=0&&u.windowBits<16&&(u.windowBits=-u.windowBits,u.windowBits===0&&(u.windowBits=-15)),!(u.windowBits>=0&&u.windowBits<16)||h&&h.windowBits||(u.windowBits+=32),u.windowBits>15&&u.windowBits<48&&(15&u.windowBits)==0&&(u.windowBits|=15),this.err=0,this.msg="",this.ended=!1,this.chunks=[],this.strm=new p,this.strm.avail_out=0;var m=a.inflateInit2(this.strm,u.windowBits);if(m!==g.Z_OK)throw new Error(I[m]);if(this.header=new S,a.inflateGetHeader(this.strm,this.header),u.dictionary&&(typeof u.dictionary=="string"?u.dictionary=l.string2buf(u.dictionary):N.call(u.dictionary)==="[object ArrayBuffer]"&&(u.dictionary=new Uint8Array(u.dictionary)),u.raw&&(m=a.inflateSetDictionary(this.strm,u.dictionary))!==g.Z_OK))throw new Error(I[m])}function y(h,u){var m=new _(u);if(m.push(h,!0),m.err)throw m.msg||I[m.err];return m.result}_.prototype.push=function(h,u){var m,E,O,M,d,b=this.strm,C=this.options.chunkSize,x=this.options.dictionary,D=!1;if(this.ended)return!1;E=u===~~u?u:u===!0?g.Z_FINISH:g.Z_NO_FLUSH,typeof h=="string"?b.input=l.binstring2buf(h):N.call(h)==="[object ArrayBuffer]"?b.input=new Uint8Array(h):b.input=h,b.next_in=0,b.avail_in=b.input.length;do{if(b.avail_out===0&&(b.output=new i.Buf8(C),b.next_out=0,b.avail_out=C),(m=a.inflate(b,g.Z_NO_FLUSH))===g.Z_NEED_DICT&&x&&(m=a.inflateSetDictionary(this.strm,x)),m===g.Z_BUF_ERROR&&D===!0&&(m=g.Z_OK,D=!1),m!==g.Z_STREAM_END&&m!==g.Z_OK)return this.onEnd(m),this.ended=!0,!1;b.next_out&&(b.avail_out!==0&&m!==g.Z_STREAM_END&&(b.avail_in!==0||E!==g.Z_FINISH&&E!==g.Z_SYNC_FLUSH)||(this.options.to==="string"?(O=l.utf8border(b.output,b.next_out),M=b.next_out-O,d=l.buf2string(b.output,O),b.next_out=M,b.avail_out=C-M,M&&i.arraySet(b.output,b.output,O,M,0),this.onData(d)):this.onData(i.shrinkBuf(b.output,b.next_out)))),b.avail_in===0&&b.avail_out===0&&(D=!0)}while((b.avail_in>0||b.avail_out===0)&&m!==g.Z_STREAM_END);return m===g.Z_STREAM_END&&(E=g.Z_FINISH),E===g.Z_FINISH?(m=a.inflateEnd(this.strm),this.onEnd(m),this.ended=!0,m===g.Z_OK):E!==g.Z_SYNC_FLUSH||(this.onEnd(g.Z_OK),b.avail_out=0,!0)},_.prototype.onData=function(h){this.chunks.push(h)},_.prototype.onEnd=function(h){h===g.Z_OK&&(this.options.to==="string"?this.result=this.chunks.join(""):this.result=i.flattenChunks(this.chunks)),this.chunks=[],this.err=h,this.msg=this.strm.msg},P.Inflate=_,P.inflate=y,P.inflateRaw=function(h,u){return(u=u||{}).raw=!0,y(h,u)},P.ungzip=y},4236:(z,P)=>{var r=typeof Uint8Array<"u"&&typeof Uint16Array<"u"&&typeof Int32Array<"u";function a(g,I){return Object.prototype.hasOwnProperty.call(g,I)}P.assign=function(g){for(var I=Array.prototype.slice.call(arguments,1);I.length;){var p=I.shift();if(p){if(typeof p!="object")throw new TypeError(p+"must be non-object");for(var S in p)a(p,S)&&(g[S]=p[S])}}return g},P.shrinkBuf=function(g,I){return g.length===I?g:g.subarray?g.subarray(0,I):(g.length=I,g)};var i={arraySet:function(g,I,p,S,N){if(I.subarray&&g.subarray)g.set(I.subarray(p,p+S),N);else for(var _=0;_<S;_++)g[N+_]=I[p+_]},flattenChunks:function(g){var I,p,S,N,_,y;for(S=0,I=0,p=g.length;I<p;I++)S+=g[I].length;for(y=new Uint8Array(S),N=0,I=0,p=g.length;I<p;I++)_=g[I],y.set(_,N),N+=_.length;return y}},l={arraySet:function(g,I,p,S,N){for(var _=0;_<S;_++)g[N+_]=I[p+_]},flattenChunks:function(g){return[].concat.apply([],g)}};P.setTyped=function(g){g?(P.Buf8=Uint8Array,P.Buf16=Uint16Array,P.Buf32=Int32Array,P.assign(P,i)):(P.Buf8=Array,P.Buf16=Array,P.Buf32=Array,P.assign(P,l))},P.setTyped(r)},9373:(z,P,r)=>{var a=r(4236),i=!0,l=!0;try{String.fromCharCode.apply(null,[0])}catch{i=!1}try{String.fromCharCode.apply(null,new Uint8Array(1))}catch{l=!1}for(var g=new a.Buf8(256),I=0;I<256;I++)g[I]=I>=252?6:I>=248?5:I>=240?4:I>=224?3:I>=192?2:1;function p(S,N){if(N<65534&&(S.subarray&&l||!S.subarray&&i))return String.fromCharCode.apply(null,a.shrinkBuf(S,N));for(var _="",y=0;y<N;y++)_+=String.fromCharCode(S[y]);return _}g[254]=g[254]=1,P.string2buf=function(S){var N,_,y,h,u,m=S.length,E=0;for(h=0;h<m;h++)(64512&(_=S.charCodeAt(h)))==55296&&h+1<m&&(64512&(y=S.charCodeAt(h+1)))==56320&&(_=65536+(_-55296<<10)+(y-56320),h++),E+=_<128?1:_<2048?2:_<65536?3:4;for(N=new a.Buf8(E),u=0,h=0;u<E;h++)(64512&(_=S.charCodeAt(h)))==55296&&h+1<m&&(64512&(y=S.charCodeAt(h+1)))==56320&&(_=65536+(_-55296<<10)+(y-56320),h++),_<128?N[u++]=_:_<2048?(N[u++]=192|_>>>6,N[u++]=128|63&_):_<65536?(N[u++]=224|_>>>12,N[u++]=128|_>>>6&63,N[u++]=128|63&_):(N[u++]=240|_>>>18,N[u++]=128|_>>>12&63,N[u++]=128|_>>>6&63,N[u++]=128|63&_);return N},P.buf2binstring=function(S){return p(S,S.length)},P.binstring2buf=function(S){for(var N=new a.Buf8(S.length),_=0,y=N.length;_<y;_++)N[_]=S.charCodeAt(_);return N},P.buf2string=function(S,N){var _,y,h,u,m=N||S.length,E=new Array(2*m);for(y=0,_=0;_<m;)if((h=S[_++])<128)E[y++]=h;else if((u=g[h])>4)E[y++]=65533,_+=u-1;else{for(h&=u===2?31:u===3?15:7;u>1&&_<m;)h=h<<6|63&S[_++],u--;u>1?E[y++]=65533:h<65536?E[y++]=h:(h-=65536,E[y++]=55296|h>>10&1023,E[y++]=56320|1023&h)}return p(E,y)},P.utf8border=function(S,N){var _;for((N=N||S.length)>S.length&&(N=S.length),_=N-1;_>=0&&(192&S[_])==128;)_--;return _<0||_===0?N:_+g[S[_]]>N?_:N}},6069:z=>{z.exports=function(P,r,a,i){for(var l=65535&P|0,g=P>>>16&65535|0,I=0;a!==0;){a-=I=a>2e3?2e3:a;do g=g+(l=l+r[i++]|0)|0;while(--I);l%=65521,g%=65521}return l|g<<16|0}},1619:z=>{z.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}},2869:z=>{var P=(function(){for(var r,a=[],i=0;i<256;i++){r=i;for(var l=0;l<8;l++)r=1&r?3988292384^r>>>1:r>>>1;a[i]=r}return a})();z.exports=function(r,a,i,l){var g=P,I=l+i;r^=-1;for(var p=l;p<I;p++)r=r>>>8^g[255&(r^a[p])];return-1^r}},405:(z,P,r)=>{var a,i=r(4236),l=r(342),g=r(6069),I=r(2869),p=r(8898),S=-2,N=258,_=262,y=103,h=113,u=666;function m(c,A){return c.msg=p[A],A}function E(c){return(c<<1)-(c>4?9:0)}function O(c){for(var A=c.length;--A>=0;)c[A]=0}function M(c){var A=c.state,U=A.pending;U>c.avail_out&&(U=c.avail_out),U!==0&&(i.arraySet(c.output,A.pending_buf,A.pending_out,U,c.next_out),c.next_out+=U,A.pending_out+=U,c.total_out+=U,c.avail_out-=U,A.pending-=U,A.pending===0&&(A.pending_out=0))}function d(c,A){l._tr_flush_block(c,c.block_start>=0?c.block_start:-1,c.strstart-c.block_start,A),c.block_start=c.strstart,M(c.strm)}function b(c,A){c.pending_buf[c.pending++]=A}function C(c,A){c.pending_buf[c.pending++]=A>>>8&255,c.pending_buf[c.pending++]=255&A}function x(c,A){var U,k,q=c.max_chain_length,F=c.strstart,W=c.prev_length,V=c.nice_match,$=c.strstart>c.w_size-_?c.strstart-(c.w_size-_):0,K=c.window,T=c.w_mask,o=c.prev,v=c.strstart+N,L=K[F+W-1],Y=K[F+W];c.prev_length>=c.good_match&&(q>>=2),V>c.lookahead&&(V=c.lookahead);do if(K[(U=A)+W]===Y&&K[U+W-1]===L&&K[U]===K[F]&&K[++U]===K[F+1]){F+=2,U++;do;while(K[++F]===K[++U]&&K[++F]===K[++U]&&K[++F]===K[++U]&&K[++F]===K[++U]&&K[++F]===K[++U]&&K[++F]===K[++U]&&K[++F]===K[++U]&&K[++F]===K[++U]&&F<v);if(k=N-(v-F),F=v-N,k>W){if(c.match_start=A,W=k,k>=V)break;L=K[F+W-1],Y=K[F+W]}}while((A=o[A&T])>$&&--q!=0);return W<=c.lookahead?W:c.lookahead}function D(c){var A,U,k,q,F,W,V,$,K,T,o=c.w_size;do{if(q=c.window_size-c.lookahead-c.strstart,c.strstart>=o+(o-_)){i.arraySet(c.window,c.window,o,o,0),c.match_start-=o,c.strstart-=o,c.block_start-=o,A=U=c.hash_size;do k=c.head[--A],c.head[A]=k>=o?k-o:0;while(--U);A=U=o;do k=c.prev[--A],c.prev[A]=k>=o?k-o:0;while(--U);q+=o}if(c.strm.avail_in===0)break;if(W=c.strm,V=c.window,$=c.strstart+c.lookahead,K=q,T=void 0,(T=W.avail_in)>K&&(T=K),U=T===0?0:(W.avail_in-=T,i.arraySet(V,W.input,W.next_in,T,$),W.state.wrap===1?W.adler=g(W.adler,V,T,$):W.state.wrap===2&&(W.adler=I(W.adler,V,T,$)),W.next_in+=T,W.total_in+=T,T),c.lookahead+=U,c.lookahead+c.insert>=3)for(F=c.strstart-c.insert,c.ins_h=c.window[F],c.ins_h=(c.ins_h<<c.hash_shift^c.window[F+1])&c.hash_mask;c.insert&&(c.ins_h=(c.ins_h<<c.hash_shift^c.window[F+3-1])&c.hash_mask,c.prev[F&c.w_mask]=c.head[c.ins_h],c.head[c.ins_h]=F,F++,c.insert--,!(c.lookahead+c.insert<3)););}while(c.lookahead<_&&c.strm.avail_in!==0)}function n(c,A){for(var U,k;;){if(c.lookahead<_){if(D(c),c.lookahead<_&&A===0)return 1;if(c.lookahead===0)break}if(U=0,c.lookahead>=3&&(c.ins_h=(c.ins_h<<c.hash_shift^c.window[c.strstart+3-1])&c.hash_mask,U=c.prev[c.strstart&c.w_mask]=c.head[c.ins_h],c.head[c.ins_h]=c.strstart),U!==0&&c.strstart-U<=c.w_size-_&&(c.match_length=x(c,U)),c.match_length>=3)if(k=l._tr_tally(c,c.strstart-c.match_start,c.match_length-3),c.lookahead-=c.match_length,c.match_length<=c.max_lazy_match&&c.lookahead>=3){c.match_length--;do c.strstart++,c.ins_h=(c.ins_h<<c.hash_shift^c.window[c.strstart+3-1])&c.hash_mask,U=c.prev[c.strstart&c.w_mask]=c.head[c.ins_h],c.head[c.ins_h]=c.strstart;while(--c.match_length!=0);c.strstart++}else c.strstart+=c.match_length,c.match_length=0,c.ins_h=c.window[c.strstart],c.ins_h=(c.ins_h<<c.hash_shift^c.window[c.strstart+1])&c.hash_mask;else k=l._tr_tally(c,0,c.window[c.strstart]),c.lookahead--,c.strstart++;if(k&&(d(c,!1),c.strm.avail_out===0))return 1}return c.insert=c.strstart<2?c.strstart:2,A===4?(d(c,!0),c.strm.avail_out===0?3:4):c.last_lit&&(d(c,!1),c.strm.avail_out===0)?1:2}function B(c,A){for(var U,k,q;;){if(c.lookahead<_){if(D(c),c.lookahead<_&&A===0)return 1;if(c.lookahead===0)break}if(U=0,c.lookahead>=3&&(c.ins_h=(c.ins_h<<c.hash_shift^c.window[c.strstart+3-1])&c.hash_mask,U=c.prev[c.strstart&c.w_mask]=c.head[c.ins_h],c.head[c.ins_h]=c.strstart),c.prev_length=c.match_length,c.prev_match=c.match_start,c.match_length=2,U!==0&&c.prev_length<c.max_lazy_match&&c.strstart-U<=c.w_size-_&&(c.match_length=x(c,U),c.match_length<=5&&(c.strategy===1||c.match_length===3&&c.strstart-c.match_start>4096)&&(c.match_length=2)),c.prev_length>=3&&c.match_length<=c.prev_length){q=c.strstart+c.lookahead-3,k=l._tr_tally(c,c.strstart-1-c.prev_match,c.prev_length-3),c.lookahead-=c.prev_length-1,c.prev_length-=2;do++c.strstart<=q&&(c.ins_h=(c.ins_h<<c.hash_shift^c.window[c.strstart+3-1])&c.hash_mask,U=c.prev[c.strstart&c.w_mask]=c.head[c.ins_h],c.head[c.ins_h]=c.strstart);while(--c.prev_length!=0);if(c.match_available=0,c.match_length=2,c.strstart++,k&&(d(c,!1),c.strm.avail_out===0))return 1}else if(c.match_available){if((k=l._tr_tally(c,0,c.window[c.strstart-1]))&&d(c,!1),c.strstart++,c.lookahead--,c.strm.avail_out===0)return 1}else c.match_available=1,c.strstart++,c.lookahead--}return c.match_available&&(k=l._tr_tally(c,0,c.window[c.strstart-1]),c.match_available=0),c.insert=c.strstart<2?c.strstart:2,A===4?(d(c,!0),c.strm.avail_out===0?3:4):c.last_lit&&(d(c,!1),c.strm.avail_out===0)?1:2}function Q(c,A,U,k,q){this.good_length=c,this.max_lazy=A,this.nice_length=U,this.max_chain=k,this.func=q}function G(){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=8,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 i.Buf16(1146),this.dyn_dtree=new i.Buf16(122),this.bl_tree=new i.Buf16(78),O(this.dyn_ltree),O(this.dyn_dtree),O(this.bl_tree),this.l_desc=null,this.d_desc=null,this.bl_desc=null,this.bl_count=new i.Buf16(16),this.heap=new i.Buf16(573),O(this.heap),this.heap_len=0,this.heap_max=0,this.depth=new i.Buf16(573),O(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 lt(c){var A;return c&&c.state?(c.total_in=c.total_out=0,c.data_type=2,(A=c.state).pending=0,A.pending_out=0,A.wrap<0&&(A.wrap=-A.wrap),A.status=A.wrap?42:h,c.adler=A.wrap===2?0:1,A.last_flush=0,l._tr_init(A),0):m(c,S)}function rt(c){var A,U=lt(c);return U===0&&((A=c.state).window_size=2*A.w_size,O(A.head),A.max_lazy_match=a[A.level].max_lazy,A.good_match=a[A.level].good_length,A.nice_match=a[A.level].nice_length,A.max_chain_length=a[A.level].max_chain,A.strstart=0,A.block_start=0,A.lookahead=0,A.insert=0,A.match_length=A.prev_length=2,A.match_available=0,A.ins_h=0),U}function at(c,A,U,k,q,F){if(!c)return S;var W=1;if(A===-1&&(A=6),k<0?(W=0,k=-k):k>15&&(W=2,k-=16),q<1||q>9||U!==8||k<8||k>15||A<0||A>9||F<0||F>4)return m(c,S);k===8&&(k=9);var V=new G;return c.state=V,V.strm=c,V.wrap=W,V.gzhead=null,V.w_bits=k,V.w_size=1<<V.w_bits,V.w_mask=V.w_size-1,V.hash_bits=q+7,V.hash_size=1<<V.hash_bits,V.hash_mask=V.hash_size-1,V.hash_shift=~~((V.hash_bits+3-1)/3),V.window=new i.Buf8(2*V.w_size),V.head=new i.Buf16(V.hash_size),V.prev=new i.Buf16(V.w_size),V.lit_bufsize=1<<q+6,V.pending_buf_size=4*V.lit_bufsize,V.pending_buf=new i.Buf8(V.pending_buf_size),V.d_buf=1*V.lit_bufsize,V.l_buf=3*V.lit_bufsize,V.level=A,V.strategy=F,V.method=U,rt(c)}a=[new Q(0,0,0,0,(function(c,A){var U=65535;for(U>c.pending_buf_size-5&&(U=c.pending_buf_size-5);;){if(c.lookahead<=1){if(D(c),c.lookahead===0&&A===0)return 1;if(c.lookahead===0)break}c.strstart+=c.lookahead,c.lookahead=0;var k=c.block_start+U;if((c.strstart===0||c.strstart>=k)&&(c.lookahead=c.strstart-k,c.strstart=k,d(c,!1),c.strm.avail_out===0)||c.strstart-c.block_start>=c.w_size-_&&(d(c,!1),c.strm.avail_out===0))return 1}return c.insert=0,A===4?(d(c,!0),c.strm.avail_out===0?3:4):(c.strstart>c.block_start&&(d(c,!1),c.strm.avail_out),1)})),new Q(4,4,8,4,n),new Q(4,5,16,8,n),new Q(4,6,32,32,n),new Q(4,4,16,16,B),new Q(8,16,32,32,B),new Q(8,16,128,128,B),new Q(8,32,128,256,B),new Q(32,128,258,1024,B),new Q(32,258,258,4096,B)],P.deflateInit=function(c,A){return at(c,A,8,15,8,0)},P.deflateInit2=at,P.deflateReset=rt,P.deflateResetKeep=lt,P.deflateSetHeader=function(c,A){return c&&c.state?c.state.wrap!==2?S:(c.state.gzhead=A,0):S},P.deflate=function(c,A){var U,k,q,F;if(!c||!c.state||A>5||A<0)return c?m(c,S):S;if(k=c.state,!c.output||!c.input&&c.avail_in!==0||k.status===u&&A!==4)return m(c,c.avail_out===0?-5:S);if(k.strm=c,U=k.last_flush,k.last_flush=A,k.status===42)if(k.wrap===2)c.adler=0,b(k,31),b(k,139),b(k,8),k.gzhead?(b(k,(k.gzhead.text?1:0)+(k.gzhead.hcrc?2:0)+(k.gzhead.extra?4:0)+(k.gzhead.name?8:0)+(k.gzhead.comment?16:0)),b(k,255&k.gzhead.time),b(k,k.gzhead.time>>8&255),b(k,k.gzhead.time>>16&255),b(k,k.gzhead.time>>24&255),b(k,k.level===9?2:k.strategy>=2||k.level<2?4:0),b(k,255&k.gzhead.os),k.gzhead.extra&&k.gzhead.extra.length&&(b(k,255&k.gzhead.extra.length),b(k,k.gzhead.extra.length>>8&255)),k.gzhead.hcrc&&(c.adler=I(c.adler,k.pending_buf,k.pending,0)),k.gzindex=0,k.status=69):(b(k,0),b(k,0),b(k,0),b(k,0),b(k,0),b(k,k.level===9?2:k.strategy>=2||k.level<2?4:0),b(k,3),k.status=h);else{var W=8+(k.w_bits-8<<4)<<8;W|=(k.strategy>=2||k.level<2?0:k.level<6?1:k.level===6?2:3)<<6,k.strstart!==0&&(W|=32),W+=31-W%31,k.status=h,C(k,W),k.strstart!==0&&(C(k,c.adler>>>16),C(k,65535&c.adler)),c.adler=1}if(k.status===69)if(k.gzhead.extra){for(q=k.pending;k.gzindex<(65535&k.gzhead.extra.length)&&(k.pending!==k.pending_buf_size||(k.gzhead.hcrc&&k.pending>q&&(c.adler=I(c.adler,k.pending_buf,k.pending-q,q)),M(c),q=k.pending,k.pending!==k.pending_buf_size));)b(k,255&k.gzhead.extra[k.gzindex]),k.gzindex++;k.gzhead.hcrc&&k.pending>q&&(c.adler=I(c.adler,k.pending_buf,k.pending-q,q)),k.gzindex===k.gzhead.extra.length&&(k.gzindex=0,k.status=73)}else k.status=73;if(k.status===73)if(k.gzhead.name){q=k.pending;do{if(k.pending===k.pending_buf_size&&(k.gzhead.hcrc&&k.pending>q&&(c.adler=I(c.adler,k.pending_buf,k.pending-q,q)),M(c),q=k.pending,k.pending===k.pending_buf_size)){F=1;break}F=k.gzindex<k.gzhead.name.length?255&k.gzhead.name.charCodeAt(k.gzindex++):0,b(k,F)}while(F!==0);k.gzhead.hcrc&&k.pending>q&&(c.adler=I(c.adler,k.pending_buf,k.pending-q,q)),F===0&&(k.gzindex=0,k.status=91)}else k.status=91;if(k.status===91)if(k.gzhead.comment){q=k.pending;do{if(k.pending===k.pending_buf_size&&(k.gzhead.hcrc&&k.pending>q&&(c.adler=I(c.adler,k.pending_buf,k.pending-q,q)),M(c),q=k.pending,k.pending===k.pending_buf_size)){F=1;break}F=k.gzindex<k.gzhead.comment.length?255&k.gzhead.comment.charCodeAt(k.gzindex++):0,b(k,F)}while(F!==0);k.gzhead.hcrc&&k.pending>q&&(c.adler=I(c.adler,k.pending_buf,k.pending-q,q)),F===0&&(k.status=y)}else k.status=y;if(k.status===y&&(k.gzhead.hcrc?(k.pending+2>k.pending_buf_size&&M(c),k.pending+2<=k.pending_buf_size&&(b(k,255&c.adler),b(k,c.adler>>8&255),c.adler=0,k.status=h)):k.status=h),k.pending!==0){if(M(c),c.avail_out===0)return k.last_flush=-1,0}else if(c.avail_in===0&&E(A)<=E(U)&&A!==4)return m(c,-5);if(k.status===u&&c.avail_in!==0)return m(c,-5);if(c.avail_in!==0||k.lookahead!==0||A!==0&&k.status!==u){var V=k.strategy===2?(function($,K){for(var T;;){if($.lookahead===0&&(D($),$.lookahead===0)){if(K===0)return 1;break}if($.match_length=0,T=l._tr_tally($,0,$.window[$.strstart]),$.lookahead--,$.strstart++,T&&(d($,!1),$.strm.avail_out===0))return 1}return $.insert=0,K===4?(d($,!0),$.strm.avail_out===0?3:4):$.last_lit&&(d($,!1),$.strm.avail_out===0)?1:2})(k,A):k.strategy===3?(function($,K){for(var T,o,v,L,Y=$.window;;){if($.lookahead<=N){if(D($),$.lookahead<=N&&K===0)return 1;if($.lookahead===0)break}if($.match_length=0,$.lookahead>=3&&$.strstart>0&&(o=Y[v=$.strstart-1])===Y[++v]&&o===Y[++v]&&o===Y[++v]){L=$.strstart+N;do;while(o===Y[++v]&&o===Y[++v]&&o===Y[++v]&&o===Y[++v]&&o===Y[++v]&&o===Y[++v]&&o===Y[++v]&&o===Y[++v]&&v<L);$.match_length=N-(L-v),$.match_length>$.lookahead&&($.match_length=$.lookahead)}if($.match_length>=3?(T=l._tr_tally($,1,$.match_length-3),$.lookahead-=$.match_length,$.strstart+=$.match_length,$.match_length=0):(T=l._tr_tally($,0,$.window[$.strstart]),$.lookahead--,$.strstart++),T&&(d($,!1),$.strm.avail_out===0))return 1}return $.insert=0,K===4?(d($,!0),$.strm.avail_out===0?3:4):$.last_lit&&(d($,!1),$.strm.avail_out===0)?1:2})(k,A):a[k.level].func(k,A);if(V!==3&&V!==4||(k.status=u),V===1||V===3)return c.avail_out===0&&(k.last_flush=-1),0;if(V===2&&(A===1?l._tr_align(k):A!==5&&(l._tr_stored_block(k,0,0,!1),A===3&&(O(k.head),k.lookahead===0&&(k.strstart=0,k.block_start=0,k.insert=0))),M(c),c.avail_out===0))return k.last_flush=-1,0}return A!==4?0:k.wrap<=0?1:(k.wrap===2?(b(k,255&c.adler),b(k,c.adler>>8&255),b(k,c.adler>>16&255),b(k,c.adler>>24&255),b(k,255&c.total_in),b(k,c.total_in>>8&255),b(k,c.total_in>>16&255),b(k,c.total_in>>24&255)):(C(k,c.adler>>>16),C(k,65535&c.adler)),M(c),k.wrap>0&&(k.wrap=-k.wrap),k.pending!==0?0:1)},P.deflateEnd=function(c){var A;return c&&c.state?(A=c.state.status)!==42&&A!==69&&A!==73&&A!==91&&A!==y&&A!==h&&A!==u?m(c,S):(c.state=null,A===h?m(c,-3):0):S},P.deflateSetDictionary=function(c,A){var U,k,q,F,W,V,$,K,T=A.length;if(!c||!c.state||(F=(U=c.state).wrap)===2||F===1&&U.status!==42||U.lookahead)return S;for(F===1&&(c.adler=g(c.adler,A,T,0)),U.wrap=0,T>=U.w_size&&(F===0&&(O(U.head),U.strstart=0,U.block_start=0,U.insert=0),K=new i.Buf8(U.w_size),i.arraySet(K,A,T-U.w_size,U.w_size,0),A=K,T=U.w_size),W=c.avail_in,V=c.next_in,$=c.input,c.avail_in=T,c.next_in=0,c.input=A,D(U);U.lookahead>=3;){k=U.strstart,q=U.lookahead-2;do U.ins_h=(U.ins_h<<U.hash_shift^U.window[k+3-1])&U.hash_mask,U.prev[k&U.w_mask]=U.head[U.ins_h],U.head[U.ins_h]=k,k++;while(--q);U.strstart=k,U.lookahead=2,D(U)}return U.strstart+=U.lookahead,U.block_start=U.strstart,U.insert=U.lookahead,U.lookahead=0,U.match_length=U.prev_length=2,U.match_available=0,c.next_in=V,c.input=$,c.avail_in=W,U.wrap=F,0},P.deflateInfo="pako deflate (from Nodeca project)"},2401:z=>{z.exports=function(){this.text=0,this.time=0,this.xflags=0,this.os=0,this.extra=null,this.extra_len=0,this.name="",this.comment="",this.hcrc=0,this.done=!1}},4264:z=>{z.exports=function(P,r){var a,i,l,g,I,p,S,N,_,y,h,u,m,E,O,M,d,b,C,x,D,n,B,Q,G;a=P.state,i=P.next_in,Q=P.input,l=i+(P.avail_in-5),g=P.next_out,G=P.output,I=g-(r-P.avail_out),p=g+(P.avail_out-257),S=a.dmax,N=a.wsize,_=a.whave,y=a.wnext,h=a.window,u=a.hold,m=a.bits,E=a.lencode,O=a.distcode,M=(1<<a.lenbits)-1,d=(1<<a.distbits)-1;t:do{m<15&&(u+=Q[i++]<<m,m+=8,u+=Q[i++]<<m,m+=8),b=E[u&M];e:for(;;){if(u>>>=C=b>>>24,m-=C,(C=b>>>16&255)==0)G[g++]=65535&b;else{if(!(16&C)){if((64&C)==0){b=E[(65535&b)+(u&(1<<C)-1)];continue e}if(32&C){a.mode=12;break t}P.msg="invalid literal/length code",a.mode=30;break t}x=65535&b,(C&=15)&&(m<C&&(u+=Q[i++]<<m,m+=8),x+=u&(1<<C)-1,u>>>=C,m-=C),m<15&&(u+=Q[i++]<<m,m+=8,u+=Q[i++]<<m,m+=8),b=O[u&d];r:for(;;){if(u>>>=C=b>>>24,m-=C,!(16&(C=b>>>16&255))){if((64&C)==0){b=O[(65535&b)+(u&(1<<C)-1)];continue r}P.msg="invalid distance code",a.mode=30;break t}if(D=65535&b,m<(C&=15)&&(u+=Q[i++]<<m,(m+=8)<C&&(u+=Q[i++]<<m,m+=8)),(D+=u&(1<<C)-1)>S){P.msg="invalid distance too far back",a.mode=30;break t}if(u>>>=C,m-=C,D>(C=g-I)){if((C=D-C)>_&&a.sane){P.msg="invalid distance too far back",a.mode=30;break t}if(n=0,B=h,y===0){if(n+=N-C,C<x){x-=C;do G[g++]=h[n++];while(--C);n=g-D,B=G}}else if(y<C){if(n+=N+y-C,(C-=y)<x){x-=C;do G[g++]=h[n++];while(--C);if(n=0,y<x){x-=C=y;do G[g++]=h[n++];while(--C);n=g-D,B=G}}}else if(n+=y-C,C<x){x-=C;do G[g++]=h[n++];while(--C);n=g-D,B=G}for(;x>2;)G[g++]=B[n++],G[g++]=B[n++],G[g++]=B[n++],x-=3;x&&(G[g++]=B[n++],x>1&&(G[g++]=B[n++]))}else{n=g-D;do G[g++]=G[n++],G[g++]=G[n++],G[g++]=G[n++],x-=3;while(x>2);x&&(G[g++]=G[n++],x>1&&(G[g++]=G[n++]))}break}}break}}while(i<l&&g<p);i-=x=m>>3,u&=(1<<(m-=x<<3))-1,P.next_in=i,P.next_out=g,P.avail_in=i<l?l-i+5:5-(i-l),P.avail_out=g<p?p-g+257:257-(g-p),a.hold=u,a.bits=m}},7948:(z,P,r)=>{var a=r(4236),i=r(6069),l=r(2869),g=r(4264),I=r(9241),p=-2,S=12,N=30;function _(x){return(x>>>24&255)+(x>>>8&65280)+((65280&x)<<8)+((255&x)<<24)}function y(){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 a.Buf16(320),this.work=new a.Buf16(288),this.lendyn=null,this.distdyn=null,this.sane=0,this.back=0,this.was=0}function h(x){var D;return x&&x.state?(D=x.state,x.total_in=x.total_out=D.total=0,x.msg="",D.wrap&&(x.adler=1&D.wrap),D.mode=1,D.last=0,D.havedict=0,D.dmax=32768,D.head=null,D.hold=0,D.bits=0,D.lencode=D.lendyn=new a.Buf32(852),D.distcode=D.distdyn=new a.Buf32(592),D.sane=1,D.back=-1,0):p}function u(x){var D;return x&&x.state?((D=x.state).wsize=0,D.whave=0,D.wnext=0,h(x)):p}function m(x,D){var n,B;return x&&x.state?(B=x.state,D<0?(n=0,D=-D):(n=1+(D>>4),D<48&&(D&=15)),D&&(D<8||D>15)?p:(B.window!==null&&B.wbits!==D&&(B.window=null),B.wrap=n,B.wbits=D,u(x))):p}function E(x,D){var n,B;return x?(B=new y,x.state=B,B.window=null,(n=m(x,D))!==0&&(x.state=null),n):p}var O,M,d=!0;function b(x){if(d){var D;for(O=new a.Buf32(512),M=new a.Buf32(32),D=0;D<144;)x.lens[D++]=8;for(;D<256;)x.lens[D++]=9;for(;D<280;)x.lens[D++]=7;for(;D<288;)x.lens[D++]=8;for(I(1,x.lens,0,288,O,0,x.work,{bits:9}),D=0;D<32;)x.lens[D++]=5;I(2,x.lens,0,32,M,0,x.work,{bits:5}),d=!1}x.lencode=O,x.lenbits=9,x.distcode=M,x.distbits=5}function C(x,D,n,B){var Q,G=x.state;return G.window===null&&(G.wsize=1<<G.wbits,G.wnext=0,G.whave=0,G.window=new a.Buf8(G.wsize)),B>=G.wsize?(a.arraySet(G.window,D,n-G.wsize,G.wsize,0),G.wnext=0,G.whave=G.wsize):((Q=G.wsize-G.wnext)>B&&(Q=B),a.arraySet(G.window,D,n-B,Q,G.wnext),(B-=Q)?(a.arraySet(G.window,D,n-B,B,0),G.wnext=B,G.whave=G.wsize):(G.wnext+=Q,G.wnext===G.wsize&&(G.wnext=0),G.whave<G.wsize&&(G.whave+=Q))),0}P.inflateReset=u,P.inflateReset2=m,P.inflateResetKeep=h,P.inflateInit=function(x){return E(x,15)},P.inflateInit2=E,P.inflate=function(x,D){var n,B,Q,G,lt,rt,at,c,A,U,k,q,F,W,V,$,K,T,o,v,L,Y,st,ht,nt=0,it=new a.Buf8(4),wt=[16,17,18,0,8,7,9,6,10,5,11,4,12,3,13,2,14,1,15];if(!x||!x.state||!x.output||!x.input&&x.avail_in!==0)return p;(n=x.state).mode===S&&(n.mode=13),lt=x.next_out,Q=x.output,at=x.avail_out,G=x.next_in,B=x.input,rt=x.avail_in,c=n.hold,A=n.bits,U=rt,k=at,Y=0;t:for(;;)switch(n.mode){case 1:if(n.wrap===0){n.mode=13;break}for(;A<16;){if(rt===0)break t;rt--,c+=B[G++]<<A,A+=8}if(2&n.wrap&&c===35615){n.check=0,it[0]=255&c,it[1]=c>>>8&255,n.check=l(n.check,it,2,0),c=0,A=0,n.mode=2;break}if(n.flags=0,n.head&&(n.head.done=!1),!(1&n.wrap)||(((255&c)<<8)+(c>>8))%31){x.msg="incorrect header check",n.mode=N;break}if((15&c)!=8){x.msg="unknown compression method",n.mode=N;break}if(A-=4,L=8+(15&(c>>>=4)),n.wbits===0)n.wbits=L;else if(L>n.wbits){x.msg="invalid window size",n.mode=N;break}n.dmax=1<<L,x.adler=n.check=1,n.mode=512&c?10:S,c=0,A=0;break;case 2:for(;A<16;){if(rt===0)break t;rt--,c+=B[G++]<<A,A+=8}if(n.flags=c,(255&n.flags)!=8){x.msg="unknown compression method",n.mode=N;break}if(57344&n.flags){x.msg="unknown header flags set",n.mode=N;break}n.head&&(n.head.text=c>>8&1),512&n.flags&&(it[0]=255&c,it[1]=c>>>8&255,n.check=l(n.check,it,2,0)),c=0,A=0,n.mode=3;case 3:for(;A<32;){if(rt===0)break t;rt--,c+=B[G++]<<A,A+=8}n.head&&(n.head.time=c),512&n.flags&&(it[0]=255&c,it[1]=c>>>8&255,it[2]=c>>>16&255,it[3]=c>>>24&255,n.check=l(n.check,it,4,0)),c=0,A=0,n.mode=4;case 4:for(;A<16;){if(rt===0)break t;rt--,c+=B[G++]<<A,A+=8}n.head&&(n.head.xflags=255&c,n.head.os=c>>8),512&n.flags&&(it[0]=255&c,it[1]=c>>>8&255,n.check=l(n.check,it,2,0)),c=0,A=0,n.mode=5;case 5:if(1024&n.flags){for(;A<16;){if(rt===0)break t;rt--,c+=B[G++]<<A,A+=8}n.length=c,n.head&&(n.head.extra_len=c),512&n.flags&&(it[0]=255&c,it[1]=c>>>8&255,n.check=l(n.check,it,2,0)),c=0,A=0}else n.head&&(n.head.extra=null);n.mode=6;case 6:if(1024&n.flags&&((q=n.length)>rt&&(q=rt),q&&(n.head&&(L=n.head.extra_len-n.length,n.head.extra||(n.head.extra=new Array(n.head.extra_len)),a.arraySet(n.head.extra,B,G,q,L)),512&n.flags&&(n.check=l(n.check,B,q,G)),rt-=q,G+=q,n.length-=q),n.length))break t;n.length=0,n.mode=7;case 7:if(2048&n.flags){if(rt===0)break t;q=0;do L=B[G+q++],n.head&&L&&n.length<65536&&(n.head.name+=String.fromCharCode(L));while(L&&q<rt);if(512&n.flags&&(n.check=l(n.check,B,q,G)),rt-=q,G+=q,L)break t}else n.head&&(n.head.name=null);n.length=0,n.mode=8;case 8:if(4096&n.flags){if(rt===0)break t;q=0;do L=B[G+q++],n.head&&L&&n.length<65536&&(n.head.comment+=String.fromCharCode(L));while(L&&q<rt);if(512&n.flags&&(n.check=l(n.check,B,q,G)),rt-=q,G+=q,L)break t}else n.head&&(n.head.comment=null);n.mode=9;case 9:if(512&n.flags){for(;A<16;){if(rt===0)break t;rt--,c+=B[G++]<<A,A+=8}if(c!==(65535&n.check)){x.msg="header crc mismatch",n.mode=N;break}c=0,A=0}n.head&&(n.head.hcrc=n.flags>>9&1,n.head.done=!0),x.adler=n.check=0,n.mode=S;break;case 10:for(;A<32;){if(rt===0)break t;rt--,c+=B[G++]<<A,A+=8}x.adler=n.check=_(c),c=0,A=0,n.mode=11;case 11:if(n.havedict===0)return x.next_out=lt,x.avail_out=at,x.next_in=G,x.avail_in=rt,n.hold=c,n.bits=A,2;x.adler=n.check=1,n.mode=S;case S:if(D===5||D===6)break t;case 13:if(n.last){c>>>=7&A,A-=7&A,n.mode=27;break}for(;A<3;){if(rt===0)break t;rt--,c+=B[G++]<<A,A+=8}switch(n.last=1&c,A-=1,3&(c>>>=1)){case 0:n.mode=14;break;case 1:if(b(n),n.mode=20,D===6){c>>>=2,A-=2;break t}break;case 2:n.mode=17;break;case 3:x.msg="invalid block type",n.mode=N}c>>>=2,A-=2;break;case 14:for(c>>>=7&A,A-=7&A;A<32;){if(rt===0)break t;rt--,c+=B[G++]<<A,A+=8}if((65535&c)!=(c>>>16^65535)){x.msg="invalid stored block lengths",n.mode=N;break}if(n.length=65535&c,c=0,A=0,n.mode=15,D===6)break t;case 15:n.mode=16;case 16:if(q=n.length){if(q>rt&&(q=rt),q>at&&(q=at),q===0)break t;a.arraySet(Q,B,G,q,lt),rt-=q,G+=q,at-=q,lt+=q,n.length-=q;break}n.mode=S;break;case 17:for(;A<14;){if(rt===0)break t;rt--,c+=B[G++]<<A,A+=8}if(n.nlen=257+(31&c),c>>>=5,A-=5,n.ndist=1+(31&c),c>>>=5,A-=5,n.ncode=4+(15&c),c>>>=4,A-=4,n.nlen>286||n.ndist>30){x.msg="too many length or distance symbols",n.mode=N;break}n.have=0,n.mode=18;case 18:for(;n.have<n.ncode;){for(;A<3;){if(rt===0)break t;rt--,c+=B[G++]<<A,A+=8}n.lens[wt[n.have++]]=7&c,c>>>=3,A-=3}for(;n.have<19;)n.lens[wt[n.have++]]=0;if(n.lencode=n.lendyn,n.lenbits=7,st={bits:n.lenbits},Y=I(0,n.lens,0,19,n.lencode,0,n.work,st),n.lenbits=st.bits,Y){x.msg="invalid code lengths set",n.mode=N;break}n.have=0,n.mode=19;case 19:for(;n.have<n.nlen+n.ndist;){for(;$=(nt=n.lencode[c&(1<<n.lenbits)-1])>>>16&255,K=65535&nt,!((V=nt>>>24)<=A);){if(rt===0)break t;rt--,c+=B[G++]<<A,A+=8}if(K<16)c>>>=V,A-=V,n.lens[n.have++]=K;else{if(K===16){for(ht=V+2;A<ht;){if(rt===0)break t;rt--,c+=B[G++]<<A,A+=8}if(c>>>=V,A-=V,n.have===0){x.msg="invalid bit length repeat",n.mode=N;break}L=n.lens[n.have-1],q=3+(3&c),c>>>=2,A-=2}else if(K===17){for(ht=V+3;A<ht;){if(rt===0)break t;rt--,c+=B[G++]<<A,A+=8}A-=V,L=0,q=3+(7&(c>>>=V)),c>>>=3,A-=3}else{for(ht=V+7;A<ht;){if(rt===0)break t;rt--,c+=B[G++]<<A,A+=8}A-=V,L=0,q=11+(127&(c>>>=V)),c>>>=7,A-=7}if(n.have+q>n.nlen+n.ndist){x.msg="invalid bit length repeat",n.mode=N;break}for(;q--;)n.lens[n.have++]=L}}if(n.mode===N)break;if(n.lens[256]===0){x.msg="invalid code -- missing end-of-block",n.mode=N;break}if(n.lenbits=9,st={bits:n.lenbits},Y=I(1,n.lens,0,n.nlen,n.lencode,0,n.work,st),n.lenbits=st.bits,Y){x.msg="invalid literal/lengths set",n.mode=N;break}if(n.distbits=6,n.distcode=n.distdyn,st={bits:n.distbits},Y=I(2,n.lens,n.nlen,n.ndist,n.distcode,0,n.work,st),n.distbits=st.bits,Y){x.msg="invalid distances set",n.mode=N;break}if(n.mode=20,D===6)break t;case 20:n.mode=21;case 21:if(rt>=6&&at>=258){x.next_out=lt,x.avail_out=at,x.next_in=G,x.avail_in=rt,n.hold=c,n.bits=A,g(x,k),lt=x.next_out,Q=x.output,at=x.avail_out,G=x.next_in,B=x.input,rt=x.avail_in,c=n.hold,A=n.bits,n.mode===S&&(n.back=-1);break}for(n.back=0;$=(nt=n.lencode[c&(1<<n.lenbits)-1])>>>16&255,K=65535&nt,!((V=nt>>>24)<=A);){if(rt===0)break t;rt--,c+=B[G++]<<A,A+=8}if($&&(240&$)==0){for(T=V,o=$,v=K;$=(nt=n.lencode[v+((c&(1<<T+o)-1)>>T)])>>>16&255,K=65535&nt,!(T+(V=nt>>>24)<=A);){if(rt===0)break t;rt--,c+=B[G++]<<A,A+=8}c>>>=T,A-=T,n.back+=T}if(c>>>=V,A-=V,n.back+=V,n.length=K,$===0){n.mode=26;break}if(32&$){n.back=-1,n.mode=S;break}if(64&$){x.msg="invalid literal/length code",n.mode=N;break}n.extra=15&$,n.mode=22;case 22:if(n.extra){for(ht=n.extra;A<ht;){if(rt===0)break t;rt--,c+=B[G++]<<A,A+=8}n.length+=c&(1<<n.extra)-1,c>>>=n.extra,A-=n.extra,n.back+=n.extra}n.was=n.length,n.mode=23;case 23:for(;$=(nt=n.distcode[c&(1<<n.distbits)-1])>>>16&255,K=65535&nt,!((V=nt>>>24)<=A);){if(rt===0)break t;rt--,c+=B[G++]<<A,A+=8}if((240&$)==0){for(T=V,o=$,v=K;$=(nt=n.distcode[v+((c&(1<<T+o)-1)>>T)])>>>16&255,K=65535&nt,!(T+(V=nt>>>24)<=A);){if(rt===0)break t;rt--,c+=B[G++]<<A,A+=8}c>>>=T,A-=T,n.back+=T}if(c>>>=V,A-=V,n.back+=V,64&$){x.msg="invalid distance code",n.mode=N;break}n.offset=K,n.extra=15&$,n.mode=24;case 24:if(n.extra){for(ht=n.extra;A<ht;){if(rt===0)break t;rt--,c+=B[G++]<<A,A+=8}n.offset+=c&(1<<n.extra)-1,c>>>=n.extra,A-=n.extra,n.back+=n.extra}if(n.offset>n.dmax){x.msg="invalid distance too far back",n.mode=N;break}n.mode=25;case 25:if(at===0)break t;if(q=k-at,n.offset>q){if((q=n.offset-q)>n.whave&&n.sane){x.msg="invalid distance too far back",n.mode=N;break}q>n.wnext?(q-=n.wnext,F=n.wsize-q):F=n.wnext-q,q>n.length&&(q=n.length),W=n.window}else W=Q,F=lt-n.offset,q=n.length;q>at&&(q=at),at-=q,n.length-=q;do Q[lt++]=W[F++];while(--q);n.length===0&&(n.mode=21);break;case 26:if(at===0)break t;Q[lt++]=n.length,at--,n.mode=21;break;case 27:if(n.wrap){for(;A<32;){if(rt===0)break t;rt--,c|=B[G++]<<A,A+=8}if(k-=at,x.total_out+=k,n.total+=k,k&&(x.adler=n.check=n.flags?l(n.check,Q,k,lt-k):i(n.check,Q,k,lt-k)),k=at,(n.flags?c:_(c))!==n.check){x.msg="incorrect data check",n.mode=N;break}c=0,A=0}n.mode=28;case 28:if(n.wrap&&n.flags){for(;A<32;){if(rt===0)break t;rt--,c+=B[G++]<<A,A+=8}if(c!==(4294967295&n.total)){x.msg="incorrect length check",n.mode=N;break}c=0,A=0}n.mode=29;case 29:Y=1;break t;case N:Y=-3;break t;case 31:return-4;default:return p}return x.next_out=lt,x.avail_out=at,x.next_in=G,x.avail_in=rt,n.hold=c,n.bits=A,(n.wsize||k!==x.avail_out&&n.mode<N&&(n.mode<27||D!==4))&&C(x,x.output,x.next_out,k-x.avail_out)?(n.mode=31,-4):(U-=x.avail_in,k-=x.avail_out,x.total_in+=U,x.total_out+=k,n.total+=k,n.wrap&&k&&(x.adler=n.check=n.flags?l(n.check,Q,k,x.next_out-k):i(n.check,Q,k,x.next_out-k)),x.data_type=n.bits+(n.last?64:0)+(n.mode===S?128:0)+(n.mode===20||n.mode===15?256:0),(U===0&&k===0||D===4)&&Y===0&&(Y=-5),Y)},P.inflateEnd=function(x){if(!x||!x.state)return p;var D=x.state;return D.window&&(D.window=null),x.state=null,0},P.inflateGetHeader=function(x,D){var n;return x&&x.state?(2&(n=x.state).wrap)==0?p:(n.head=D,D.done=!1,0):p},P.inflateSetDictionary=function(x,D){var n,B=D.length;return x&&x.state?(n=x.state).wrap!==0&&n.mode!==11?p:n.mode===11&&i(1,D,B,0)!==n.check?-3:C(x,D,B,B)?(n.mode=31,-4):(n.havedict=1,0):p},P.inflateInfo="pako inflate (from Nodeca project)"},9241:(z,P,r)=>{var a=r(4236),i=[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],l=[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],g=[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],I=[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];z.exports=function(p,S,N,_,y,h,u,m){var E,O,M,d,b,C,x,D,n,B=m.bits,Q=0,G=0,lt=0,rt=0,at=0,c=0,A=0,U=0,k=0,q=0,F=null,W=0,V=new a.Buf16(16),$=new a.Buf16(16),K=null,T=0;for(Q=0;Q<=15;Q++)V[Q]=0;for(G=0;G<_;G++)V[S[N+G]]++;for(at=B,rt=15;rt>=1&&V[rt]===0;rt--);if(at>rt&&(at=rt),rt===0)return y[h++]=20971520,y[h++]=20971520,m.bits=1,0;for(lt=1;lt<rt&&V[lt]===0;lt++);for(at<lt&&(at=lt),U=1,Q=1;Q<=15;Q++)if(U<<=1,(U-=V[Q])<0)return-1;if(U>0&&(p===0||rt!==1))return-1;for($[1]=0,Q=1;Q<15;Q++)$[Q+1]=$[Q]+V[Q];for(G=0;G<_;G++)S[N+G]!==0&&(u[$[S[N+G]]++]=G);if(p===0?(F=K=u,C=19):p===1?(F=i,W-=257,K=l,T-=257,C=256):(F=g,K=I,C=-1),q=0,G=0,Q=lt,b=h,c=at,A=0,M=-1,d=(k=1<<at)-1,p===1&&k>852||p===2&&k>592)return 1;for(;;){x=Q-A,u[G]<C?(D=0,n=u[G]):u[G]>C?(D=K[T+u[G]],n=F[W+u[G]]):(D=96,n=0),E=1<<Q-A,lt=O=1<<c;do y[b+(q>>A)+(O-=E)]=x<<24|D<<16|n|0;while(O!==0);for(E=1<<Q-1;q&E;)E>>=1;if(E!==0?(q&=E-1,q+=E):q=0,G++,--V[Q]==0){if(Q===rt)break;Q=S[N+u[G]]}if(Q>at&&(q&d)!==M){for(A===0&&(A=at),b+=lt,U=1<<(c=Q-A);c+A<rt&&!((U-=V[c+A])<=0);)c++,U<<=1;if(k+=1<<c,p===1&&k>852||p===2&&k>592)return 1;y[M=q&d]=at<<24|c<<16|b-h|0}}return q!==0&&(y[b+q]=Q-A<<24|4194304|0),m.bits=at,0}},8898:z=>{z.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"}},342:(z,P,r)=>{var a=r(4236);function i(F){for(var W=F.length;--W>=0;)F[W]=0}var l=[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],g=[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],I=[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,2,3,7],p=[16,17,18,0,8,7,9,6,10,5,11,4,12,3,13,2,14,1,15],S=new Array(576);i(S);var N=new Array(60);i(N);var _=new Array(512);i(_);var y=new Array(256);i(y);var h=new Array(29);i(h);var u,m,E,O=new Array(30);function M(F,W,V,$,K){this.static_tree=F,this.extra_bits=W,this.extra_base=V,this.elems=$,this.max_length=K,this.has_stree=F&&F.length}function d(F,W){this.dyn_tree=F,this.max_code=0,this.stat_desc=W}function b(F){return F<256?_[F]:_[256+(F>>>7)]}function C(F,W){F.pending_buf[F.pending++]=255&W,F.pending_buf[F.pending++]=W>>>8&255}function x(F,W,V){F.bi_valid>16-V?(F.bi_buf|=W<<F.bi_valid&65535,C(F,F.bi_buf),F.bi_buf=W>>16-F.bi_valid,F.bi_valid+=V-16):(F.bi_buf|=W<<F.bi_valid&65535,F.bi_valid+=V)}function D(F,W,V){x(F,V[2*W],V[2*W+1])}function n(F,W){var V=0;do V|=1&F,F>>>=1,V<<=1;while(--W>0);return V>>>1}function B(F,W,V){var $,K,T=new Array(16),o=0;for($=1;$<=15;$++)T[$]=o=o+V[$-1]<<1;for(K=0;K<=W;K++){var v=F[2*K+1];v!==0&&(F[2*K]=n(T[v]++,v))}}function Q(F){var W;for(W=0;W<286;W++)F.dyn_ltree[2*W]=0;for(W=0;W<30;W++)F.dyn_dtree[2*W]=0;for(W=0;W<19;W++)F.bl_tree[2*W]=0;F.dyn_ltree[512]=1,F.opt_len=F.static_len=0,F.last_lit=F.matches=0}function G(F){F.bi_valid>8?C(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 lt(F,W,V,$){var K=2*W,T=2*V;return F[K]<F[T]||F[K]===F[T]&&$[W]<=$[V]}function rt(F,W,V){for(var $=F.heap[V],K=V<<1;K<=F.heap_len&&(K<F.heap_len&<(W,F.heap[K+1],F.heap[K],F.depth)&&K++,!lt(W,$,F.heap[K],F.depth));)F.heap[V]=F.heap[K],V=K,K<<=1;F.heap[V]=$}function at(F,W,V){var $,K,T,o,v=0;if(F.last_lit!==0)do $=F.pending_buf[F.d_buf+2*v]<<8|F.pending_buf[F.d_buf+2*v+1],K=F.pending_buf[F.l_buf+v],v++,$===0?D(F,K,W):(D(F,(T=y[K])+256+1,W),(o=l[T])!==0&&x(F,K-=h[T],o),D(F,T=b(--$),V),(o=g[T])!==0&&x(F,$-=O[T],o));while(v<F.last_lit);D(F,256,W)}function c(F,W){var V,$,K,T=W.dyn_tree,o=W.stat_desc.static_tree,v=W.stat_desc.has_stree,L=W.stat_desc.elems,Y=-1;for(F.heap_len=0,F.heap_max=573,V=0;V<L;V++)T[2*V]!==0?(F.heap[++F.heap_len]=Y=V,F.depth[V]=0):T[2*V+1]=0;for(;F.heap_len<2;)T[2*(K=F.heap[++F.heap_len]=Y<2?++Y:0)]=1,F.depth[K]=0,F.opt_len--,v&&(F.static_len-=o[2*K+1]);for(W.max_code=Y,V=F.heap_len>>1;V>=1;V--)rt(F,T,V);K=L;do V=F.heap[1],F.heap[1]=F.heap[F.heap_len--],rt(F,T,1),$=F.heap[1],F.heap[--F.heap_max]=V,F.heap[--F.heap_max]=$,T[2*K]=T[2*V]+T[2*$],F.depth[K]=(F.depth[V]>=F.depth[$]?F.depth[V]:F.depth[$])+1,T[2*V+1]=T[2*$+1]=K,F.heap[1]=K++,rt(F,T,1);while(F.heap_len>=2);F.heap[--F.heap_max]=F.heap[1],(function(st,ht){var nt,it,wt,ft,Tt,Ft,s=ht.dyn_tree,w=ht.max_code,R=ht.stat_desc.static_tree,j=ht.stat_desc.has_stree,X=ht.stat_desc.extra_bits,Z=ht.stat_desc.extra_base,et=ht.stat_desc.max_length,yt=0;for(ft=0;ft<=15;ft++)st.bl_count[ft]=0;for(s[2*st.heap[st.heap_max]+1]=0,nt=st.heap_max+1;nt<573;nt++)(ft=s[2*s[2*(it=st.heap[nt])+1]+1]+1)>et&&(ft=et,yt++),s[2*it+1]=ft,it>w||(st.bl_count[ft]++,Tt=0,it>=Z&&(Tt=X[it-Z]),Ft=s[2*it],st.opt_len+=Ft*(ft+Tt),j&&(st.static_len+=Ft*(R[2*it+1]+Tt)));if(yt!==0){do{for(ft=et-1;st.bl_count[ft]===0;)ft--;st.bl_count[ft]--,st.bl_count[ft+1]+=2,st.bl_count[et]--,yt-=2}while(yt>0);for(ft=et;ft!==0;ft--)for(it=st.bl_count[ft];it!==0;)(wt=st.heap[--nt])>w||(s[2*wt+1]!==ft&&(st.opt_len+=(ft-s[2*wt+1])*s[2*wt],s[2*wt+1]=ft),it--)}})(F,W),B(T,Y,F.bl_count)}function A(F,W,V){var $,K,T=-1,o=W[1],v=0,L=7,Y=4;for(o===0&&(L=138,Y=3),W[2*(V+1)+1]=65535,$=0;$<=V;$++)K=o,o=W[2*($+1)+1],++v<L&&K===o||(v<Y?F.bl_tree[2*K]+=v:K!==0?(K!==T&&F.bl_tree[2*K]++,F.bl_tree[32]++):v<=10?F.bl_tree[34]++:F.bl_tree[36]++,v=0,T=K,o===0?(L=138,Y=3):K===o?(L=6,Y=3):(L=7,Y=4))}function U(F,W,V){var $,K,T=-1,o=W[1],v=0,L=7,Y=4;for(o===0&&(L=138,Y=3),$=0;$<=V;$++)if(K=o,o=W[2*($+1)+1],!(++v<L&&K===o)){if(v<Y)do D(F,K,F.bl_tree);while(--v!=0);else K!==0?(K!==T&&(D(F,K,F.bl_tree),v--),D(F,16,F.bl_tree),x(F,v-3,2)):v<=10?(D(F,17,F.bl_tree),x(F,v-3,3)):(D(F,18,F.bl_tree),x(F,v-11,7));v=0,T=K,o===0?(L=138,Y=3):K===o?(L=6,Y=3):(L=7,Y=4)}}i(O);var k=!1;function q(F,W,V,$){x(F,0+($?1:0),3),(function(K,T,o,v){G(K),C(K,o),C(K,~o),a.arraySet(K.pending_buf,K.window,T,o,K.pending),K.pending+=o})(F,W,V)}P._tr_init=function(F){k||((function(){var W,V,$,K,T,o=new Array(16);for($=0,K=0;K<28;K++)for(h[K]=$,W=0;W<1<<l[K];W++)y[$++]=K;for(y[$-1]=K,T=0,K=0;K<16;K++)for(O[K]=T,W=0;W<1<<g[K];W++)_[T++]=K;for(T>>=7;K<30;K++)for(O[K]=T<<7,W=0;W<1<<g[K]-7;W++)_[256+T++]=K;for(V=0;V<=15;V++)o[V]=0;for(W=0;W<=143;)S[2*W+1]=8,W++,o[8]++;for(;W<=255;)S[2*W+1]=9,W++,o[9]++;for(;W<=279;)S[2*W+1]=7,W++,o[7]++;for(;W<=287;)S[2*W+1]=8,W++,o[8]++;for(B(S,287,o),W=0;W<30;W++)N[2*W+1]=5,N[2*W]=n(W,5);u=new M(S,l,257,286,15),m=new M(N,g,0,30,15),E=new M(new Array(0),I,0,19,7)})(),k=!0),F.l_desc=new d(F.dyn_ltree,u),F.d_desc=new d(F.dyn_dtree,m),F.bl_desc=new d(F.bl_tree,E),F.bi_buf=0,F.bi_valid=0,Q(F)},P._tr_stored_block=q,P._tr_flush_block=function(F,W,V,$){var K,T,o=0;F.level>0?(F.strm.data_type===2&&(F.strm.data_type=(function(v){var L,Y=4093624447;for(L=0;L<=31;L++,Y>>>=1)if(1&Y&&v.dyn_ltree[2*L]!==0)return 0;if(v.dyn_ltree[18]!==0||v.dyn_ltree[20]!==0||v.dyn_ltree[26]!==0)return 1;for(L=32;L<256;L++)if(v.dyn_ltree[2*L]!==0)return 1;return 0})(F)),c(F,F.l_desc),c(F,F.d_desc),o=(function(v){var L;for(A(v,v.dyn_ltree,v.l_desc.max_code),A(v,v.dyn_dtree,v.d_desc.max_code),c(v,v.bl_desc),L=18;L>=3&&v.bl_tree[2*p[L]+1]===0;L--);return v.opt_len+=3*(L+1)+5+5+4,L})(F),K=F.opt_len+3+7>>>3,(T=F.static_len+3+7>>>3)<=K&&(K=T)):K=T=V+5,V+4<=K&&W!==-1?q(F,W,V,$):F.strategy===4||T===K?(x(F,2+($?1:0),3),at(F,S,N)):(x(F,4+($?1:0),3),(function(v,L,Y,st){var ht;for(x(v,L-257,5),x(v,Y-1,5),x(v,st-4,4),ht=0;ht<st;ht++)x(v,v.bl_tree[2*p[ht]+1],3);U(v,v.dyn_ltree,L-1),U(v,v.dyn_dtree,Y-1)})(F,F.l_desc.max_code+1,F.d_desc.max_code+1,o+1),at(F,F.dyn_ltree,F.dyn_dtree)),Q(F),$&&G(F)},P._tr_tally=function(F,W,V){return F.pending_buf[F.d_buf+2*F.last_lit]=W>>>8&255,F.pending_buf[F.d_buf+2*F.last_lit+1]=255&W,F.pending_buf[F.l_buf+F.last_lit]=255&V,F.last_lit++,W===0?F.dyn_ltree[2*V]++:(F.matches++,W--,F.dyn_ltree[2*(y[V]+256+1)]++,F.dyn_dtree[2*b(W)]++),F.last_lit===F.lit_bufsize-1},P._tr_align=function(F){x(F,2,3),D(F,256,S),(function(W){W.bi_valid===16?(C(W,W.bi_buf),W.bi_buf=0,W.bi_valid=0):W.bi_valid>=8&&(W.pending_buf[W.pending++]=255&W.bi_buf,W.bi_buf>>=8,W.bi_valid-=8)})(F)}},2292:z=>{z.exports=function(){this.input=null,this.next_in=0,this.avail_in=0,this.total_in=0,this.output=null,this.next_out=0,this.avail_out=0,this.total_out=0,this.msg="",this.state=null,this.data_type=2,this.adler=0}},4155:z=>{var P,r,a=z.exports={};function i(){throw new Error("setTimeout has not been defined")}function l(){throw new Error("clearTimeout has not been defined")}function g(m){if(P===setTimeout)return setTimeout(m,0);if((P===i||!P)&&setTimeout)return P=setTimeout,setTimeout(m,0);try{return P(m,0)}catch{try{return P.call(null,m,0)}catch{return P.call(this,m,0)}}}(function(){try{P=typeof setTimeout=="function"?setTimeout:i}catch{P=i}try{r=typeof clearTimeout=="function"?clearTimeout:l}catch{r=l}})();var I,p=[],S=!1,N=-1;function _(){S&&I&&(S=!1,I.length?p=I.concat(p):N=-1,p.length&&y())}function y(){if(!S){var m=g(_);S=!0;for(var E=p.length;E;){for(I=p,p=[];++N<E;)I&&I[N].run();N=-1,E=p.length}I=null,S=!1,(function(O){if(r===clearTimeout)return clearTimeout(O);if((r===l||!r)&&clearTimeout)return r=clearTimeout,clearTimeout(O);try{r(O)}catch{try{return r.call(null,O)}catch{return r.call(this,O)}}})(m)}}function h(m,E){this.fun=m,this.array=E}function u(){}a.nextTick=function(m){var E=new Array(arguments.length-1);if(arguments.length>1)for(var O=1;O<arguments.length;O++)E[O-1]=arguments[O];p.push(new h(m,E)),p.length!==1||S||g(y)},h.prototype.run=function(){this.fun.apply(null,this.array)},a.title="browser",a.browser=!0,a.env={},a.argv=[],a.version="",a.versions={},a.on=u,a.addListener=u,a.once=u,a.off=u,a.removeListener=u,a.removeAllListeners=u,a.emit=u,a.prependListener=u,a.prependOnceListener=u,a.listeners=function(m){return[]},a.binding=function(m){throw new Error("process.binding is not supported")},a.cwd=function(){return"/"},a.chdir=function(m){throw new Error("process.chdir is not supported")},a.umask=function(){return 0}},9509:(z,P,r)=>{var a=r(8764),i=a.Buffer;function l(I,p){for(var S in I)p[S]=I[S]}function g(I,p,S){return i(I,p,S)}i.from&&i.alloc&&i.allocUnsafe&&i.allocUnsafeSlow?z.exports=a:(l(a,P),P.Buffer=g),l(i,g),g.from=function(I,p,S){if(typeof I=="number")throw new TypeError("Argument must not be a number");return i(I,p,S)},g.alloc=function(I,p,S){if(typeof I!="number")throw new TypeError("Argument must be a number");var N=i(I);return p!==void 0?typeof S=="string"?N.fill(p,S):N.fill(p):N.fill(0),N},g.allocUnsafe=function(I){if(typeof I!="number")throw new TypeError("Argument must be a number");return i(I)},g.allocUnsafeSlow=function(I){if(typeof I!="number")throw new TypeError("Argument must be a number");return a.SlowBuffer(I)}},6099:(z,P,r)=>{(function(a){a.parser=function(T,o){return new g(T,o)},a.SAXParser=g,a.SAXStream=p,a.createStream=function(T,o){return new p(T,o)},a.MAX_BUFFER_LENGTH=65536;var i,l=["comment","sgmlDecl","textNode","tagName","doctype","procInstName","procInstBody","entity","attribName","attribValue","cdata","script"];function g(T,o){if(!(this instanceof g))return new g(T,o);var v=this;(function(L){for(var Y=0,st=l.length;Y<st;Y++)L[l[Y]]=""})(v),v.q=v.c="",v.bufferCheckPosition=a.MAX_BUFFER_LENGTH,v.opt=o||{},v.opt.lowercase=v.opt.lowercase||v.opt.lowercasetags,v.looseCase=v.opt.lowercase?"toLowerCase":"toUpperCase",v.tags=[],v.closed=v.closedRoot=v.sawRoot=!1,v.tag=v.error=null,v.strict=!!T,v.noscript=!(!T&&!v.opt.noscript),v.state=n.BEGIN,v.strictEntities=v.opt.strictEntities,v.ENTITIES=v.strictEntities?Object.create(a.XML_ENTITIES):Object.create(a.ENTITIES),v.attribList=[],v.opt.xmlns&&(v.ns=Object.create(_)),v.trackPosition=v.opt.position!==!1,v.trackPosition&&(v.position=v.line=v.column=0),Q(v,"onready")}a.EVENTS=["text","processinginstruction","sgmldeclaration","doctype","comment","opentagstart","attribute","opentag","closetag","opencdata","cdata","closecdata","error","end","ready","script","opennamespace","closenamespace"],Object.create||(Object.create=function(T){function o(){}return o.prototype=T,new o}),Object.keys||(Object.keys=function(T){var o=[];for(var v in T)T.hasOwnProperty(v)&&o.push(v);return o}),g.prototype={end:function(){c(this)},write:function(T){var o=this;if(this.error)throw this.error;if(o.closed)return at(o,"Cannot write after close. Assign an onready handler.");if(T===null)return c(o);typeof T=="object"&&(T=T.toString());for(var v=0,L="";L=K(T,v++),o.c=L,L;)switch(o.trackPosition&&(o.position++,L===`
|
|
3
|
+
`?(o.line++,o.column=0):o.column++),o.state){case n.BEGIN:if(o.state=n.BEGIN_WHITESPACE,L==="\uFEFF")continue;$(o,L);continue;case n.BEGIN_WHITESPACE:$(o,L);continue;case n.TEXT:if(o.sawRoot&&!o.closedRoot){for(var Y=v-1;L&&L!=="<"&&L!=="&";)(L=K(T,v++))&&o.trackPosition&&(o.position++,L===`
|
|
4
|
+
`?(o.line++,o.column=0):o.column++);o.textNode+=T.substring(Y,v-1)}L!=="<"||o.sawRoot&&o.closedRoot&&!o.strict?(E(L)||o.sawRoot&&!o.closedRoot||A(o,"Text data outside of root node."),L==="&"?o.state=n.TEXT_ENTITY:o.textNode+=L):(o.state=n.OPEN_WAKA,o.startTagPosition=o.position);continue;case n.SCRIPT:L==="<"?o.state=n.SCRIPT_ENDING:o.script+=L;continue;case n.SCRIPT_ENDING:L==="/"?o.state=n.CLOSE_TAG:(o.script+="<"+L,o.state=n.SCRIPT);continue;case n.OPEN_WAKA:if(L==="!")o.state=n.SGML_DECL,o.sgmlDecl="";else if(!E(L))if(d(y,L))o.state=n.OPEN_TAG,o.tagName=L;else if(L==="/")o.state=n.CLOSE_TAG,o.tagName="";else if(L==="?")o.state=n.PROC_INST,o.procInstName=o.procInstBody="";else{if(A(o,"Unencoded <"),o.startTagPosition+1<o.position){var st=o.position-o.startTagPosition;L=new Array(st).join(" ")+L}o.textNode+="<"+L,o.state=n.TEXT}continue;case n.SGML_DECL:(o.sgmlDecl+L).toUpperCase()==="[CDATA["?(G(o,"onopencdata"),o.state=n.CDATA,o.sgmlDecl="",o.cdata=""):o.sgmlDecl+L==="--"?(o.state=n.COMMENT,o.comment="",o.sgmlDecl=""):(o.sgmlDecl+L).toUpperCase()==="DOCTYPE"?(o.state=n.DOCTYPE,(o.doctype||o.sawRoot)&&A(o,"Inappropriately located doctype declaration"),o.doctype="",o.sgmlDecl=""):L===">"?(G(o,"onsgmldeclaration",o.sgmlDecl),o.sgmlDecl="",o.state=n.TEXT):(O(L)&&(o.state=n.SGML_DECL_QUOTED),o.sgmlDecl+=L);continue;case n.SGML_DECL_QUOTED:L===o.q&&(o.state=n.SGML_DECL,o.q=""),o.sgmlDecl+=L;continue;case n.DOCTYPE:L===">"?(o.state=n.TEXT,G(o,"ondoctype",o.doctype),o.doctype=!0):(o.doctype+=L,L==="["?o.state=n.DOCTYPE_DTD:O(L)&&(o.state=n.DOCTYPE_QUOTED,o.q=L));continue;case n.DOCTYPE_QUOTED:o.doctype+=L,L===o.q&&(o.q="",o.state=n.DOCTYPE);continue;case n.DOCTYPE_DTD:o.doctype+=L,L==="]"?o.state=n.DOCTYPE:O(L)&&(o.state=n.DOCTYPE_DTD_QUOTED,o.q=L);continue;case n.DOCTYPE_DTD_QUOTED:o.doctype+=L,L===o.q&&(o.state=n.DOCTYPE_DTD,o.q="");continue;case n.COMMENT:L==="-"?o.state=n.COMMENT_ENDING:o.comment+=L;continue;case n.COMMENT_ENDING:L==="-"?(o.state=n.COMMENT_ENDED,o.comment=rt(o.opt,o.comment),o.comment&&G(o,"oncomment",o.comment),o.comment=""):(o.comment+="-"+L,o.state=n.COMMENT);continue;case n.COMMENT_ENDED:L!==">"?(A(o,"Malformed comment"),o.comment+="--"+L,o.state=n.COMMENT):o.state=n.TEXT;continue;case n.CDATA:L==="]"?o.state=n.CDATA_ENDING:o.cdata+=L;continue;case n.CDATA_ENDING:L==="]"?o.state=n.CDATA_ENDING_2:(o.cdata+="]"+L,o.state=n.CDATA);continue;case n.CDATA_ENDING_2:L===">"?(o.cdata&&G(o,"oncdata",o.cdata),G(o,"onclosecdata"),o.cdata="",o.state=n.TEXT):L==="]"?o.cdata+="]":(o.cdata+="]]"+L,o.state=n.CDATA);continue;case n.PROC_INST:L==="?"?o.state=n.PROC_INST_ENDING:E(L)?o.state=n.PROC_INST_BODY:o.procInstName+=L;continue;case n.PROC_INST_BODY:if(!o.procInstBody&&E(L))continue;L==="?"?o.state=n.PROC_INST_ENDING:o.procInstBody+=L;continue;case n.PROC_INST_ENDING:L===">"?(G(o,"onprocessinginstruction",{name:o.procInstName,body:o.procInstBody}),o.procInstName=o.procInstBody="",o.state=n.TEXT):(o.procInstBody+="?"+L,o.state=n.PROC_INST_BODY);continue;case n.OPEN_TAG:d(h,L)?o.tagName+=L:(U(o),L===">"?F(o):L==="/"?o.state=n.OPEN_TAG_SLASH:(E(L)||A(o,"Invalid character in tag name"),o.state=n.ATTRIB));continue;case n.OPEN_TAG_SLASH:L===">"?(F(o,!0),W(o)):(A(o,"Forward-slash in opening tag not followed by >"),o.state=n.ATTRIB);continue;case n.ATTRIB:if(E(L))continue;L===">"?F(o):L==="/"?o.state=n.OPEN_TAG_SLASH:d(y,L)?(o.attribName=L,o.attribValue="",o.state=n.ATTRIB_NAME):A(o,"Invalid attribute name");continue;case n.ATTRIB_NAME:L==="="?o.state=n.ATTRIB_VALUE:L===">"?(A(o,"Attribute without value"),o.attribValue=o.attribName,q(o),F(o)):E(L)?o.state=n.ATTRIB_NAME_SAW_WHITE:d(h,L)?o.attribName+=L:A(o,"Invalid attribute name");continue;case n.ATTRIB_NAME_SAW_WHITE:if(L==="=")o.state=n.ATTRIB_VALUE;else{if(E(L))continue;A(o,"Attribute without value"),o.tag.attributes[o.attribName]="",o.attribValue="",G(o,"onattribute",{name:o.attribName,value:""}),o.attribName="",L===">"?F(o):d(y,L)?(o.attribName=L,o.state=n.ATTRIB_NAME):(A(o,"Invalid attribute name"),o.state=n.ATTRIB)}continue;case n.ATTRIB_VALUE:if(E(L))continue;O(L)?(o.q=L,o.state=n.ATTRIB_VALUE_QUOTED):(A(o,"Unquoted attribute value"),o.state=n.ATTRIB_VALUE_UNQUOTED,o.attribValue=L);continue;case n.ATTRIB_VALUE_QUOTED:if(L!==o.q){L==="&"?o.state=n.ATTRIB_VALUE_ENTITY_Q:o.attribValue+=L;continue}q(o),o.q="",o.state=n.ATTRIB_VALUE_CLOSED;continue;case n.ATTRIB_VALUE_CLOSED:E(L)?o.state=n.ATTRIB:L===">"?F(o):L==="/"?o.state=n.OPEN_TAG_SLASH:d(y,L)?(A(o,"No whitespace between attributes"),o.attribName=L,o.attribValue="",o.state=n.ATTRIB_NAME):A(o,"Invalid attribute name");continue;case n.ATTRIB_VALUE_UNQUOTED:if(!M(L)){L==="&"?o.state=n.ATTRIB_VALUE_ENTITY_U:o.attribValue+=L;continue}q(o),L===">"?F(o):o.state=n.ATTRIB;continue;case n.CLOSE_TAG:if(o.tagName)L===">"?W(o):d(h,L)?o.tagName+=L:o.script?(o.script+="</"+o.tagName,o.tagName="",o.state=n.SCRIPT):(E(L)||A(o,"Invalid tagname in closing tag"),o.state=n.CLOSE_TAG_SAW_WHITE);else{if(E(L))continue;b(y,L)?o.script?(o.script+="</"+L,o.state=n.SCRIPT):A(o,"Invalid tagname in closing tag."):o.tagName=L}continue;case n.CLOSE_TAG_SAW_WHITE:if(E(L))continue;L===">"?W(o):A(o,"Invalid characters in closing tag");continue;case n.TEXT_ENTITY:case n.ATTRIB_VALUE_ENTITY_Q:case n.ATTRIB_VALUE_ENTITY_U:var ht,nt;switch(o.state){case n.TEXT_ENTITY:ht=n.TEXT,nt="textNode";break;case n.ATTRIB_VALUE_ENTITY_Q:ht=n.ATTRIB_VALUE_QUOTED,nt="attribValue";break;case n.ATTRIB_VALUE_ENTITY_U:ht=n.ATTRIB_VALUE_UNQUOTED,nt="attribValue"}L===";"?(o[nt]+=V(o),o.entity="",o.state=ht):d(o.entity.length?m:u,L)?o.entity+=L:(A(o,"Invalid character in entity name"),o[nt]+="&"+o.entity+L,o.entity="",o.state=ht);continue;default:throw new Error(o,"Unknown state: "+o.state)}return o.position>=o.bufferCheckPosition&&(function(it){for(var wt=Math.max(a.MAX_BUFFER_LENGTH,10),ft=0,Tt=0,Ft=l.length;Tt<Ft;Tt++){var s=it[l[Tt]].length;if(s>wt)switch(l[Tt]){case"textNode":lt(it);break;case"cdata":G(it,"oncdata",it.cdata),it.cdata="";break;case"script":G(it,"onscript",it.script),it.script="";break;default:at(it,"Max buffer length exceeded: "+l[Tt])}ft=Math.max(ft,s)}var w=a.MAX_BUFFER_LENGTH-ft;it.bufferCheckPosition=w+it.position})(o),o},resume:function(){return this.error=null,this},close:function(){return this.write(null)},flush:function(){var T;lt(T=this),T.cdata!==""&&(G(T,"oncdata",T.cdata),T.cdata=""),T.script!==""&&(G(T,"onscript",T.script),T.script="")}};try{i=r(2830).Stream}catch{i=function(){}}var I=a.EVENTS.filter((function(T){return T!=="error"&&T!=="end"}));function p(T,o){if(!(this instanceof p))return new p(T,o);i.apply(this),this._parser=new g(T,o),this.writable=!0,this.readable=!0;var v=this;this._parser.onend=function(){v.emit("end")},this._parser.onerror=function(L){v.emit("error",L),v._parser.error=null},this._decoder=null,I.forEach((function(L){Object.defineProperty(v,"on"+L,{get:function(){return v._parser["on"+L]},set:function(Y){if(!Y)return v.removeAllListeners(L),v._parser["on"+L]=Y,Y;v.on(L,Y)},enumerable:!0,configurable:!1})}))}p.prototype=Object.create(i.prototype,{constructor:{value:p}}),p.prototype.write=function(T){if(typeof Buffer=="function"&&typeof Buffer.isBuffer=="function"&&Buffer.isBuffer(T)){if(!this._decoder){var o=r(2553).s;this._decoder=new o("utf8")}T=this._decoder.write(T)}return this._parser.write(T.toString()),this.emit("data",T),!0},p.prototype.end=function(T){return T&&T.length&&this.write(T),this._parser.end(),!0},p.prototype.on=function(T,o){var v=this;return v._parser["on"+T]||I.indexOf(T)===-1||(v._parser["on"+T]=function(){var L=arguments.length===1?[arguments[0]]:Array.apply(null,arguments);L.splice(0,0,T),v.emit.apply(v,L)}),i.prototype.on.call(v,T,o)};var S="http://www.w3.org/XML/1998/namespace",N="http://www.w3.org/2000/xmlns/",_={xml:S,xmlns:N},y=/[:_A-Za-z\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD]/,h=/[:_A-Za-z\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD\u00B7\u0300-\u036F\u203F-\u2040.\d-]/,u=/[#:_A-Za-z\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD]/,m=/[#:_A-Za-z\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD\u00B7\u0300-\u036F\u203F-\u2040.\d-]/;function E(T){return T===" "||T===`
|
|
5
|
+
`||T==="\r"||T===" "}function O(T){return T==='"'||T==="'"}function M(T){return T===">"||E(T)}function d(T,o){return T.test(o)}function b(T,o){return!d(T,o)}var C,x,D,n=0;for(var B in a.STATE={BEGIN:n++,BEGIN_WHITESPACE:n++,TEXT:n++,TEXT_ENTITY:n++,OPEN_WAKA:n++,SGML_DECL:n++,SGML_DECL_QUOTED:n++,DOCTYPE:n++,DOCTYPE_QUOTED:n++,DOCTYPE_DTD:n++,DOCTYPE_DTD_QUOTED:n++,COMMENT_STARTING:n++,COMMENT:n++,COMMENT_ENDING:n++,COMMENT_ENDED:n++,CDATA:n++,CDATA_ENDING:n++,CDATA_ENDING_2:n++,PROC_INST:n++,PROC_INST_BODY:n++,PROC_INST_ENDING:n++,OPEN_TAG:n++,OPEN_TAG_SLASH:n++,ATTRIB:n++,ATTRIB_NAME:n++,ATTRIB_NAME_SAW_WHITE:n++,ATTRIB_VALUE:n++,ATTRIB_VALUE_QUOTED:n++,ATTRIB_VALUE_CLOSED:n++,ATTRIB_VALUE_UNQUOTED:n++,ATTRIB_VALUE_ENTITY_Q:n++,ATTRIB_VALUE_ENTITY_U:n++,CLOSE_TAG:n++,CLOSE_TAG_SAW_WHITE:n++,SCRIPT:n++,SCRIPT_ENDING:n++},a.XML_ENTITIES={amp:"&",gt:">",lt:"<",quot:'"',apos:"'"},a.ENTITIES={amp:"&",gt:">",lt:"<",quot:'"',apos:"'",AElig:198,Aacute:193,Acirc:194,Agrave:192,Aring:197,Atilde:195,Auml:196,Ccedil:199,ETH:208,Eacute:201,Ecirc:202,Egrave:200,Euml:203,Iacute:205,Icirc:206,Igrave:204,Iuml:207,Ntilde:209,Oacute:211,Ocirc:212,Ograve:210,Oslash:216,Otilde:213,Ouml:214,THORN:222,Uacute:218,Ucirc:219,Ugrave:217,Uuml:220,Yacute:221,aacute:225,acirc:226,aelig:230,agrave:224,aring:229,atilde:227,auml:228,ccedil:231,eacute:233,ecirc:234,egrave:232,eth:240,euml:235,iacute:237,icirc:238,igrave:236,iuml:239,ntilde:241,oacute:243,ocirc:244,ograve:242,oslash:248,otilde:245,ouml:246,szlig:223,thorn:254,uacute:250,ucirc:251,ugrave:249,uuml:252,yacute:253,yuml:255,copy:169,reg:174,nbsp:160,iexcl:161,cent:162,pound:163,curren:164,yen:165,brvbar:166,sect:167,uml:168,ordf:170,laquo:171,not:172,shy:173,macr:175,deg:176,plusmn:177,sup1:185,sup2:178,sup3:179,acute:180,micro:181,para:182,middot:183,cedil:184,ordm:186,raquo:187,frac14:188,frac12:189,frac34:190,iquest:191,times:215,divide:247,OElig:338,oelig:339,Scaron:352,scaron:353,Yuml:376,fnof:402,circ:710,tilde:732,Alpha:913,Beta:914,Gamma:915,Delta:916,Epsilon:917,Zeta:918,Eta:919,Theta:920,Iota:921,Kappa:922,Lambda:923,Mu:924,Nu:925,Xi:926,Omicron:927,Pi:928,Rho:929,Sigma:931,Tau:932,Upsilon:933,Phi:934,Chi:935,Psi:936,Omega:937,alpha:945,beta:946,gamma:947,delta:948,epsilon:949,zeta:950,eta:951,theta:952,iota:953,kappa:954,lambda:955,mu:956,nu:957,xi:958,omicron:959,pi:960,rho:961,sigmaf:962,sigma:963,tau:964,upsilon:965,phi:966,chi:967,psi:968,omega:969,thetasym:977,upsih:978,piv:982,ensp:8194,emsp:8195,thinsp:8201,zwnj:8204,zwj:8205,lrm:8206,rlm:8207,ndash:8211,mdash:8212,lsquo:8216,rsquo:8217,sbquo:8218,ldquo:8220,rdquo:8221,bdquo:8222,dagger:8224,Dagger:8225,bull:8226,hellip:8230,permil:8240,prime:8242,Prime:8243,lsaquo:8249,rsaquo:8250,oline:8254,frasl:8260,euro:8364,image:8465,weierp:8472,real:8476,trade:8482,alefsym:8501,larr:8592,uarr:8593,rarr:8594,darr:8595,harr:8596,crarr:8629,lArr:8656,uArr:8657,rArr:8658,dArr:8659,hArr:8660,forall:8704,part:8706,exist:8707,empty:8709,nabla:8711,isin:8712,notin:8713,ni:8715,prod:8719,sum:8721,minus:8722,lowast:8727,radic:8730,prop:8733,infin:8734,ang:8736,and:8743,or:8744,cap:8745,cup:8746,int:8747,there4:8756,sim:8764,cong:8773,asymp:8776,ne:8800,equiv:8801,le:8804,ge:8805,sub:8834,sup:8835,nsub:8836,sube:8838,supe:8839,oplus:8853,otimes:8855,perp:8869,sdot:8901,lceil:8968,rceil:8969,lfloor:8970,rfloor:8971,lang:9001,rang:9002,loz:9674,spades:9824,clubs:9827,hearts:9829,diams:9830},Object.keys(a.ENTITIES).forEach((function(T){var o=a.ENTITIES[T],v=typeof o=="number"?String.fromCharCode(o):o;a.ENTITIES[T]=v})),a.STATE)a.STATE[a.STATE[B]]=B;function Q(T,o,v){T[o]&&T[o](v)}function G(T,o,v){T.textNode&<(T),Q(T,o,v)}function lt(T){T.textNode=rt(T.opt,T.textNode),T.textNode&&Q(T,"ontext",T.textNode),T.textNode=""}function rt(T,o){return T.trim&&(o=o.trim()),T.normalize&&(o=o.replace(/\s+/g," ")),o}function at(T,o){return lt(T),T.trackPosition&&(o+=`
|
|
6
|
+
Line: `+T.line+`
|
|
7
|
+
Column: `+T.column+`
|
|
8
|
+
Char: `+T.c),o=new Error(o),T.error=o,Q(T,"onerror",o),T}function c(T){return T.sawRoot&&!T.closedRoot&&A(T,"Unclosed root tag"),T.state!==n.BEGIN&&T.state!==n.BEGIN_WHITESPACE&&T.state!==n.TEXT&&at(T,"Unexpected end"),lt(T),T.c="",T.closed=!0,Q(T,"onend"),g.call(T,T.strict,T.opt),T}function A(T,o){if(typeof T!="object"||!(T instanceof g))throw new Error("bad call to strictFail");T.strict&&at(T,o)}function U(T){T.strict||(T.tagName=T.tagName[T.looseCase]());var o=T.tags[T.tags.length-1]||T,v=T.tag={name:T.tagName,attributes:{}};T.opt.xmlns&&(v.ns=o.ns),T.attribList.length=0,G(T,"onopentagstart",v)}function k(T,o){var v=T.indexOf(":")<0?["",T]:T.split(":"),L=v[0],Y=v[1];return o&&T==="xmlns"&&(L="xmlns",Y=""),{prefix:L,local:Y}}function q(T){if(T.strict||(T.attribName=T.attribName[T.looseCase]()),T.attribList.indexOf(T.attribName)!==-1||T.tag.attributes.hasOwnProperty(T.attribName))T.attribName=T.attribValue="";else{if(T.opt.xmlns){var o=k(T.attribName,!0),v=o.prefix,L=o.local;if(v==="xmlns")if(L==="xml"&&T.attribValue!==S)A(T,"xml: prefix must be bound to "+S+`
|
|
9
|
+
Actual: `+T.attribValue);else if(L==="xmlns"&&T.attribValue!==N)A(T,"xmlns: prefix must be bound to "+N+`
|
|
10
|
+
Actual: `+T.attribValue);else{var Y=T.tag,st=T.tags[T.tags.length-1]||T;Y.ns===st.ns&&(Y.ns=Object.create(st.ns)),Y.ns[L]=T.attribValue}T.attribList.push([T.attribName,T.attribValue])}else T.tag.attributes[T.attribName]=T.attribValue,G(T,"onattribute",{name:T.attribName,value:T.attribValue});T.attribName=T.attribValue=""}}function F(T,o){if(T.opt.xmlns){var v=T.tag,L=k(T.tagName);v.prefix=L.prefix,v.local=L.local,v.uri=v.ns[L.prefix]||"",v.prefix&&!v.uri&&(A(T,"Unbound namespace prefix: "+JSON.stringify(T.tagName)),v.uri=L.prefix);var Y=T.tags[T.tags.length-1]||T;v.ns&&Y.ns!==v.ns&&Object.keys(v.ns).forEach((function(R){G(T,"onopennamespace",{prefix:R,uri:v.ns[R]})}));for(var st=0,ht=T.attribList.length;st<ht;st++){var nt=T.attribList[st],it=nt[0],wt=nt[1],ft=k(it,!0),Tt=ft.prefix,Ft=ft.local,s=Tt===""?"":v.ns[Tt]||"",w={name:it,value:wt,prefix:Tt,local:Ft,uri:s};Tt&&Tt!=="xmlns"&&!s&&(A(T,"Unbound namespace prefix: "+JSON.stringify(Tt)),w.uri=Tt),T.tag.attributes[it]=w,G(T,"onattribute",w)}T.attribList.length=0}T.tag.isSelfClosing=!!o,T.sawRoot=!0,T.tags.push(T.tag),G(T,"onopentag",T.tag),o||(T.noscript||T.tagName.toLowerCase()!=="script"?T.state=n.TEXT:T.state=n.SCRIPT,T.tag=null,T.tagName=""),T.attribName=T.attribValue="",T.attribList.length=0}function W(T){if(!T.tagName)return A(T,"Weird empty close tag."),T.textNode+="</>",void(T.state=n.TEXT);if(T.script){if(T.tagName!=="script")return T.script+="</"+T.tagName+">",T.tagName="",void(T.state=n.SCRIPT);G(T,"onscript",T.script),T.script=""}var o=T.tags.length,v=T.tagName;T.strict||(v=v[T.looseCase]());for(var L=v;o--&&T.tags[o].name!==L;)A(T,"Unexpected close tag");if(o<0)return A(T,"Unmatched closing tag: "+T.tagName),T.textNode+="</"+T.tagName+">",void(T.state=n.TEXT);T.tagName=v;for(var Y=T.tags.length;Y-- >o;){var st=T.tag=T.tags.pop();T.tagName=T.tag.name,G(T,"onclosetag",T.tagName);var ht={};for(var nt in st.ns)ht[nt]=st.ns[nt];var it=T.tags[T.tags.length-1]||T;T.opt.xmlns&&st.ns!==it.ns&&Object.keys(st.ns).forEach((function(wt){var ft=st.ns[wt];G(T,"onclosenamespace",{prefix:wt,uri:ft})}))}o===0&&(T.closedRoot=!0),T.tagName=T.attribValue=T.attribName="",T.attribList.length=0,T.state=n.TEXT}function V(T){var o,v=T.entity,L=v.toLowerCase(),Y="";return T.ENTITIES[v]?T.ENTITIES[v]:T.ENTITIES[L]?T.ENTITIES[L]:((v=L).charAt(0)==="#"&&(v.charAt(1)==="x"?(v=v.slice(2),Y=(o=parseInt(v,16)).toString(16)):(v=v.slice(1),Y=(o=parseInt(v,10)).toString(10))),v=v.replace(/^0+/,""),isNaN(o)||Y.toLowerCase()!==v?(A(T,"Invalid character entity"),"&"+T.entity+";"):String.fromCodePoint(o))}function $(T,o){o==="<"?(T.state=n.OPEN_WAKA,T.startTagPosition=T.position):E(o)||(A(T,"Non-whitespace before first tag."),T.textNode=o,T.state=n.TEXT)}function K(T,o){var v="";return o<T.length&&(v=T.charAt(o)),v}n=a.STATE,String.fromCodePoint||(C=String.fromCharCode,x=Math.floor,D=function(){var T,o,v=16384,L=[],Y=-1,st=arguments.length;if(!st)return"";for(var ht="";++Y<st;){var nt=Number(arguments[Y]);if(!isFinite(nt)||nt<0||nt>1114111||x(nt)!==nt)throw RangeError("Invalid code point: "+nt);nt<=65535?L.push(nt):(T=55296+((nt-=65536)>>10),o=nt%1024+56320,L.push(T,o)),(Y+1===st||L.length>v)&&(ht+=C.apply(null,L),L.length=0)}return ht},Object.defineProperty?Object.defineProperty(String,"fromCodePoint",{value:D,configurable:!0,writable:!0}):String.fromCodePoint=D)})(P)},4889:function(z,P,r){var a=r(4155);(function(i,l){if(!i.setImmediate){var g,I,p,S,N,_=1,y={},h=!1,u=i.document,m=Object.getPrototypeOf&&Object.getPrototypeOf(i);m=m&&m.setTimeout?m:i,{}.toString.call(i.process)==="[object process]"?g=function(M){a.nextTick((function(){O(M)}))}:(function(){if(i.postMessage&&!i.importScripts){var M=!0,d=i.onmessage;return i.onmessage=function(){M=!1},i.postMessage("","*"),i.onmessage=d,M}})()?(S="setImmediate$"+Math.random()+"$",N=function(M){M.source===i&&typeof M.data=="string"&&M.data.indexOf(S)===0&&O(+M.data.slice(S.length))},i.addEventListener?i.addEventListener("message",N,!1):i.attachEvent("onmessage",N),g=function(M){i.postMessage(S+M,"*")}):i.MessageChannel?((p=new MessageChannel).port1.onmessage=function(M){O(M.data)},g=function(M){p.port2.postMessage(M)}):u&&"onreadystatechange"in u.createElement("script")?(I=u.documentElement,g=function(M){var d=u.createElement("script");d.onreadystatechange=function(){O(M),d.onreadystatechange=null,I.removeChild(d),d=null},I.appendChild(d)}):g=function(M){setTimeout(O,0,M)},m.setImmediate=function(M){typeof M!="function"&&(M=new Function(""+M));for(var d=new Array(arguments.length-1),b=0;b<d.length;b++)d[b]=arguments[b+1];var C={callback:M,args:d};return y[_]=C,g(_),_++},m.clearImmediate=E}function E(M){delete y[M]}function O(M){if(h)setTimeout(O,0,M);else{var d=y[M];if(d){h=!0;try{(function(b){var C=b.callback,x=b.args;switch(x.length){case 0:C();break;case 1:C(x[0]);break;case 2:C(x[0],x[1]);break;case 3:C(x[0],x[1],x[2]);break;default:C.apply(void 0,x)}})(d)}finally{E(M),h=!1}}}}})(typeof self>"u"?r.g===void 0?this:r.g:self)},2830:(z,P,r)=>{z.exports=i;var a=r(7187).EventEmitter;function i(){a.call(this)}r(5717)(i,a),i.Readable=r(6577),i.Writable=r(323),i.Duplex=r(8656),i.Transform=r(4473),i.PassThrough=r(2366),i.finished=r(1086),i.pipeline=r(6472),i.Stream=i,i.prototype.pipe=function(l,g){var I=this;function p(m){l.writable&&l.write(m)===!1&&I.pause&&I.pause()}function S(){I.readable&&I.resume&&I.resume()}I.on("data",p),l.on("drain",S),l._isStdio||g&&g.end===!1||(I.on("end",_),I.on("close",y));var N=!1;function _(){N||(N=!0,l.end())}function y(){N||(N=!0,typeof l.destroy=="function"&&l.destroy())}function h(m){if(u(),a.listenerCount(this,"error")===0)throw m}function u(){I.removeListener("data",p),l.removeListener("drain",S),I.removeListener("end",_),I.removeListener("close",y),I.removeListener("error",h),l.removeListener("error",h),I.removeListener("end",u),I.removeListener("close",u),l.removeListener("close",u)}return I.on("error",h),l.on("error",h),I.on("end",u),I.on("close",u),l.on("close",u),l.emit("pipe",I),l}},8106:z=>{var P={};function r(i,l,g){g||(g=Error);var I=(function(p){var S,N;function _(y,h,u){return p.call(this,(function(m,E,O){return typeof l=="string"?l:l(m,E,O)})(y,h,u))||this}return N=p,(S=_).prototype=Object.create(N.prototype),S.prototype.constructor=S,S.__proto__=N,_})(g);I.prototype.name=g.name,I.prototype.code=i,P[i]=I}function a(i,l){if(Array.isArray(i)){var g=i.length;return i=i.map((function(I){return String(I)})),g>2?"one of ".concat(l," ").concat(i.slice(0,g-1).join(", "),", or ")+i[g-1]:g===2?"one of ".concat(l," ").concat(i[0]," or ").concat(i[1]):"of ".concat(l," ").concat(i[0])}return"of ".concat(l," ").concat(String(i))}r("ERR_INVALID_OPT_VALUE",(function(i,l){return'The value "'+l+'" is invalid for option "'+i+'"'}),TypeError),r("ERR_INVALID_ARG_TYPE",(function(i,l,g){var I,p,S,N,_;if(typeof l=="string"&&(p="not ",l.substr(0,p.length)===p)?(I="must not be",l=l.replace(/^not /,"")):I="must be",(function(h,u,m){return(m===void 0||m>h.length)&&(m=h.length),h.substring(m-u.length,m)===u})(i," argument"))S="The ".concat(i," ").concat(I," ").concat(a(l,"type"));else{var y=(typeof _!="number"&&(_=0),_+1>(N=i).length||N.indexOf(".",_)===-1?"argument":"property");S='The "'.concat(i,'" ').concat(y," ").concat(I," ").concat(a(l,"type"))}return S+". Received type ".concat(typeof g)}),TypeError),r("ERR_STREAM_PUSH_AFTER_EOF","stream.push() after EOF"),r("ERR_METHOD_NOT_IMPLEMENTED",(function(i){return"The "+i+" method is not implemented"})),r("ERR_STREAM_PREMATURE_CLOSE","Premature close"),r("ERR_STREAM_DESTROYED",(function(i){return"Cannot call "+i+" after a stream was destroyed"})),r("ERR_MULTIPLE_CALLBACK","Callback called multiple times"),r("ERR_STREAM_CANNOT_PIPE","Cannot pipe, not readable"),r("ERR_STREAM_WRITE_AFTER_END","write after end"),r("ERR_STREAM_NULL_VALUES","May not write null values to stream",TypeError),r("ERR_UNKNOWN_ENCODING",(function(i){return"Unknown encoding: "+i}),TypeError),r("ERR_STREAM_UNSHIFT_AFTER_END_EVENT","stream.unshift() after end event"),z.exports.q=P},8656:(z,P,r)=>{var a=r(4155),i=Object.keys||function(h){var u=[];for(var m in h)u.push(m);return u};z.exports=N;var l=r(6577),g=r(323);r(5717)(N,l);for(var I=i(g.prototype),p=0;p<I.length;p++){var S=I[p];N.prototype[S]||(N.prototype[S]=g.prototype[S])}function N(h){if(!(this instanceof N))return new N(h);l.call(this,h),g.call(this,h),this.allowHalfOpen=!0,h&&(h.readable===!1&&(this.readable=!1),h.writable===!1&&(this.writable=!1),h.allowHalfOpen===!1&&(this.allowHalfOpen=!1,this.once("end",_)))}function _(){this._writableState.ended||a.nextTick(y,this)}function y(h){h.end()}Object.defineProperty(N.prototype,"writableHighWaterMark",{enumerable:!1,get:function(){return this._writableState.highWaterMark}}),Object.defineProperty(N.prototype,"writableBuffer",{enumerable:!1,get:function(){return this._writableState&&this._writableState.getBuffer()}}),Object.defineProperty(N.prototype,"writableLength",{enumerable:!1,get:function(){return this._writableState.length}}),Object.defineProperty(N.prototype,"destroyed",{enumerable:!1,get:function(){return this._readableState!==void 0&&this._writableState!==void 0&&this._readableState.destroyed&&this._writableState.destroyed},set:function(h){this._readableState!==void 0&&this._writableState!==void 0&&(this._readableState.destroyed=h,this._writableState.destroyed=h)}})},2366:(z,P,r)=>{z.exports=i;var a=r(4473);function i(l){if(!(this instanceof i))return new i(l);a.call(this,l)}r(5717)(i,a),i.prototype._transform=function(l,g,I){I(null,l)}},6577:(z,P,r)=>{var a,i=r(4155);z.exports=B,B.ReadableState=n,r(7187).EventEmitter;var l,g=function(o,v){return o.listeners(v).length},I=r(3194),p=r(8764).Buffer,S=r.g.Uint8Array||function(){},N=r(5575);l=N&&N.debuglog?N.debuglog("stream"):function(){};var _,y,h,u=r(9686),m=r(1029),E=r(94).getHighWaterMark,O=r(8106).q,M=O.ERR_INVALID_ARG_TYPE,d=O.ERR_STREAM_PUSH_AFTER_EOF,b=O.ERR_METHOD_NOT_IMPLEMENTED,C=O.ERR_STREAM_UNSHIFT_AFTER_END_EVENT;r(5717)(B,I);var x=m.errorOrDestroy,D=["error","close","destroy","pause","resume"];function n(o,v,L){a=a||r(8656),o=o||{},typeof L!="boolean"&&(L=v instanceof a),this.objectMode=!!o.objectMode,L&&(this.objectMode=this.objectMode||!!o.readableObjectMode),this.highWaterMark=E(this,o,"readableHighWaterMark",L),this.buffer=new u,this.length=0,this.pipes=null,this.pipesCount=0,this.flowing=null,this.ended=!1,this.endEmitted=!1,this.reading=!1,this.sync=!0,this.needReadable=!1,this.emittedReadable=!1,this.readableListening=!1,this.resumeScheduled=!1,this.paused=!0,this.emitClose=o.emitClose!==!1,this.autoDestroy=!!o.autoDestroy,this.destroyed=!1,this.defaultEncoding=o.defaultEncoding||"utf8",this.awaitDrain=0,this.readingMore=!1,this.decoder=null,this.encoding=null,o.encoding&&(_||(_=r(2553).s),this.decoder=new _(o.encoding),this.encoding=o.encoding)}function B(o){if(a=a||r(8656),!(this instanceof B))return new B(o);var v=this instanceof a;this._readableState=new n(o,this,v),this.readable=!0,o&&(typeof o.read=="function"&&(this._read=o.read),typeof o.destroy=="function"&&(this._destroy=o.destroy)),I.call(this)}function Q(o,v,L,Y,st){l("readableAddChunk",v);var ht,nt=o._readableState;if(v===null)nt.reading=!1,(function(it,wt){if(l("onEofChunk"),!wt.ended){if(wt.decoder){var ft=wt.decoder.end();ft&&ft.length&&(wt.buffer.push(ft),wt.length+=wt.objectMode?1:ft.length)}wt.ended=!0,wt.sync?at(it):(wt.needReadable=!1,wt.emittedReadable||(wt.emittedReadable=!0,c(it)))}})(o,nt);else if(st||(ht=(function(it,wt){var ft,Tt;return Tt=wt,p.isBuffer(Tt)||Tt instanceof S||typeof wt=="string"||wt===void 0||it.objectMode||(ft=new M("chunk",["string","Buffer","Uint8Array"],wt)),ft})(nt,v)),ht)x(o,ht);else if(nt.objectMode||v&&v.length>0)if(typeof v=="string"||nt.objectMode||Object.getPrototypeOf(v)===p.prototype||(v=(function(it){return p.from(it)})(v)),Y)nt.endEmitted?x(o,new C):G(o,nt,v,!0);else if(nt.ended)x(o,new d);else{if(nt.destroyed)return!1;nt.reading=!1,nt.decoder&&!L?(v=nt.decoder.write(v),nt.objectMode||v.length!==0?G(o,nt,v,!1):A(o,nt)):G(o,nt,v,!1)}else Y||(nt.reading=!1,A(o,nt));return!nt.ended&&(nt.length<nt.highWaterMark||nt.length===0)}function G(o,v,L,Y){v.flowing&&v.length===0&&!v.sync?(v.awaitDrain=0,o.emit("data",L)):(v.length+=v.objectMode?1:L.length,Y?v.buffer.unshift(L):v.buffer.push(L),v.needReadable&&at(o)),A(o,v)}Object.defineProperty(B.prototype,"destroyed",{enumerable:!1,get:function(){return this._readableState!==void 0&&this._readableState.destroyed},set:function(o){this._readableState&&(this._readableState.destroyed=o)}}),B.prototype.destroy=m.destroy,B.prototype._undestroy=m.undestroy,B.prototype._destroy=function(o,v){v(o)},B.prototype.push=function(o,v){var L,Y=this._readableState;return Y.objectMode?L=!0:typeof o=="string"&&((v=v||Y.defaultEncoding)!==Y.encoding&&(o=p.from(o,v),v=""),L=!0),Q(this,o,v,!1,L)},B.prototype.unshift=function(o){return Q(this,o,null,!0,!1)},B.prototype.isPaused=function(){return this._readableState.flowing===!1},B.prototype.setEncoding=function(o){_||(_=r(2553).s);var v=new _(o);this._readableState.decoder=v,this._readableState.encoding=this._readableState.decoder.encoding;for(var L=this._readableState.buffer.head,Y="";L!==null;)Y+=v.write(L.data),L=L.next;return this._readableState.buffer.clear(),Y!==""&&this._readableState.buffer.push(Y),this._readableState.length=Y.length,this};var lt=1073741824;function rt(o,v){return o<=0||v.length===0&&v.ended?0:v.objectMode?1:o!=o?v.flowing&&v.length?v.buffer.head.data.length:v.length:(o>v.highWaterMark&&(v.highWaterMark=(function(L){return L>=lt?L=lt:(L--,L|=L>>>1,L|=L>>>2,L|=L>>>4,L|=L>>>8,L|=L>>>16,L++),L})(o)),o<=v.length?o:v.ended?v.length:(v.needReadable=!0,0))}function at(o){var v=o._readableState;l("emitReadable",v.needReadable,v.emittedReadable),v.needReadable=!1,v.emittedReadable||(l("emitReadable",v.flowing),v.emittedReadable=!0,i.nextTick(c,o))}function c(o){var v=o._readableState;l("emitReadable_",v.destroyed,v.length,v.ended),v.destroyed||!v.length&&!v.ended||(o.emit("readable"),v.emittedReadable=!1),v.needReadable=!v.flowing&&!v.ended&&v.length<=v.highWaterMark,W(o)}function A(o,v){v.readingMore||(v.readingMore=!0,i.nextTick(U,o,v))}function U(o,v){for(;!v.reading&&!v.ended&&(v.length<v.highWaterMark||v.flowing&&v.length===0);){var L=v.length;if(l("maybeReadMore read 0"),o.read(0),L===v.length)break}v.readingMore=!1}function k(o){var v=o._readableState;v.readableListening=o.listenerCount("readable")>0,v.resumeScheduled&&!v.paused?v.flowing=!0:o.listenerCount("data")>0&&o.resume()}function q(o){l("readable nexttick read 0"),o.read(0)}function F(o,v){l("resume",v.reading),v.reading||o.read(0),v.resumeScheduled=!1,o.emit("resume"),W(o),v.flowing&&!v.reading&&o.read(0)}function W(o){var v=o._readableState;for(l("flow",v.flowing);v.flowing&&o.read()!==null;);}function V(o,v){return v.length===0?null:(v.objectMode?L=v.buffer.shift():!o||o>=v.length?(L=v.decoder?v.buffer.join(""):v.buffer.length===1?v.buffer.first():v.buffer.concat(v.length),v.buffer.clear()):L=v.buffer.consume(o,v.decoder),L);var L}function $(o){var v=o._readableState;l("endReadable",v.endEmitted),v.endEmitted||(v.ended=!0,i.nextTick(K,v,o))}function K(o,v){if(l("endReadableNT",o.endEmitted,o.length),!o.endEmitted&&o.length===0&&(o.endEmitted=!0,v.readable=!1,v.emit("end"),o.autoDestroy)){var L=v._writableState;(!L||L.autoDestroy&&L.finished)&&v.destroy()}}function T(o,v){for(var L=0,Y=o.length;L<Y;L++)if(o[L]===v)return L;return-1}B.prototype.read=function(o){l("read",o),o=parseInt(o,10);var v=this._readableState,L=o;if(o!==0&&(v.emittedReadable=!1),o===0&&v.needReadable&&((v.highWaterMark!==0?v.length>=v.highWaterMark:v.length>0)||v.ended))return l("read: emitReadable",v.length,v.ended),v.length===0&&v.ended?$(this):at(this),null;if((o=rt(o,v))===0&&v.ended)return v.length===0&&$(this),null;var Y,st=v.needReadable;return l("need readable",st),(v.length===0||v.length-o<v.highWaterMark)&&l("length less than watermark",st=!0),v.ended||v.reading?l("reading or ended",st=!1):st&&(l("do read"),v.reading=!0,v.sync=!0,v.length===0&&(v.needReadable=!0),this._read(v.highWaterMark),v.sync=!1,v.reading||(o=rt(L,v))),(Y=o>0?V(o,v):null)===null?(v.needReadable=v.length<=v.highWaterMark,o=0):(v.length-=o,v.awaitDrain=0),v.length===0&&(v.ended||(v.needReadable=!0),L!==o&&v.ended&&$(this)),Y!==null&&this.emit("data",Y),Y},B.prototype._read=function(o){x(this,new b("_read()"))},B.prototype.pipe=function(o,v){var L=this,Y=this._readableState;switch(Y.pipesCount){case 0:Y.pipes=o;break;case 1:Y.pipes=[Y.pipes,o];break;default:Y.pipes.push(o)}Y.pipesCount+=1,l("pipe count=%d opts=%j",Y.pipesCount,v);var st=v&&v.end===!1||o===i.stdout||o===i.stderr?s:ht;function ht(){l("onend"),o.end()}Y.endEmitted?i.nextTick(st):L.once("end",st),o.on("unpipe",(function w(R,j){l("onunpipe"),R===L&&j&&j.hasUnpiped===!1&&(j.hasUnpiped=!0,l("cleanup"),o.removeListener("close",Tt),o.removeListener("finish",Ft),o.removeListener("drain",nt),o.removeListener("error",ft),o.removeListener("unpipe",w),L.removeListener("end",ht),L.removeListener("end",s),L.removeListener("data",wt),it=!0,!Y.awaitDrain||o._writableState&&!o._writableState.needDrain||nt())}));var nt=(function(w){return function(){var R=w._readableState;l("pipeOnDrain",R.awaitDrain),R.awaitDrain&&R.awaitDrain--,R.awaitDrain===0&&g(w,"data")&&(R.flowing=!0,W(w))}})(L);o.on("drain",nt);var it=!1;function wt(w){l("ondata");var R=o.write(w);l("dest.write",R),R===!1&&((Y.pipesCount===1&&Y.pipes===o||Y.pipesCount>1&&T(Y.pipes,o)!==-1)&&!it&&(l("false write response, pause",Y.awaitDrain),Y.awaitDrain++),L.pause())}function ft(w){l("onerror",w),s(),o.removeListener("error",ft),g(o,"error")===0&&x(o,w)}function Tt(){o.removeListener("finish",Ft),s()}function Ft(){l("onfinish"),o.removeListener("close",Tt),s()}function s(){l("unpipe"),L.unpipe(o)}return L.on("data",wt),(function(w,R,j){if(typeof w.prependListener=="function")return w.prependListener(R,j);w._events&&w._events.error?Array.isArray(w._events.error)?w._events.error.unshift(j):w._events.error=[j,w._events.error]:w.on(R,j)})(o,"error",ft),o.once("close",Tt),o.once("finish",Ft),o.emit("pipe",L),Y.flowing||(l("pipe resume"),L.resume()),o},B.prototype.unpipe=function(o){var v=this._readableState,L={hasUnpiped:!1};if(v.pipesCount===0)return this;if(v.pipesCount===1)return o&&o!==v.pipes||(o||(o=v.pipes),v.pipes=null,v.pipesCount=0,v.flowing=!1,o&&o.emit("unpipe",this,L)),this;if(!o){var Y=v.pipes,st=v.pipesCount;v.pipes=null,v.pipesCount=0,v.flowing=!1;for(var ht=0;ht<st;ht++)Y[ht].emit("unpipe",this,{hasUnpiped:!1});return this}var nt=T(v.pipes,o);return nt===-1||(v.pipes.splice(nt,1),v.pipesCount-=1,v.pipesCount===1&&(v.pipes=v.pipes[0]),o.emit("unpipe",this,L)),this},B.prototype.on=function(o,v){var L=I.prototype.on.call(this,o,v),Y=this._readableState;return o==="data"?(Y.readableListening=this.listenerCount("readable")>0,Y.flowing!==!1&&this.resume()):o==="readable"&&(Y.endEmitted||Y.readableListening||(Y.readableListening=Y.needReadable=!0,Y.flowing=!1,Y.emittedReadable=!1,l("on readable",Y.length,Y.reading),Y.length?at(this):Y.reading||i.nextTick(q,this))),L},B.prototype.addListener=B.prototype.on,B.prototype.removeListener=function(o,v){var L=I.prototype.removeListener.call(this,o,v);return o==="readable"&&i.nextTick(k,this),L},B.prototype.removeAllListeners=function(o){var v=I.prototype.removeAllListeners.apply(this,arguments);return o!=="readable"&&o!==void 0||i.nextTick(k,this),v},B.prototype.resume=function(){var o=this._readableState;return o.flowing||(l("resume"),o.flowing=!o.readableListening,(function(v,L){L.resumeScheduled||(L.resumeScheduled=!0,i.nextTick(F,v,L))})(this,o)),o.paused=!1,this},B.prototype.pause=function(){return l("call pause flowing=%j",this._readableState.flowing),this._readableState.flowing!==!1&&(l("pause"),this._readableState.flowing=!1,this.emit("pause")),this._readableState.paused=!0,this},B.prototype.wrap=function(o){var v=this,L=this._readableState,Y=!1;for(var st in o.on("end",(function(){if(l("wrapped end"),L.decoder&&!L.ended){var nt=L.decoder.end();nt&&nt.length&&v.push(nt)}v.push(null)})),o.on("data",(function(nt){l("wrapped data"),L.decoder&&(nt=L.decoder.write(nt)),L.objectMode&&nt==null||(L.objectMode||nt&&nt.length)&&(v.push(nt)||(Y=!0,o.pause()))})),o)this[st]===void 0&&typeof o[st]=="function"&&(this[st]=(function(nt){return function(){return o[nt].apply(o,arguments)}})(st));for(var ht=0;ht<D.length;ht++)o.on(D[ht],this.emit.bind(this,D[ht]));return this._read=function(nt){l("wrapped _read",nt),Y&&(Y=!1,o.resume())},this},typeof Symbol=="function"&&(B.prototype[Symbol.asyncIterator]=function(){return y===void 0&&(y=r(828)),y(this)}),Object.defineProperty(B.prototype,"readableHighWaterMark",{enumerable:!1,get:function(){return this._readableState.highWaterMark}}),Object.defineProperty(B.prototype,"readableBuffer",{enumerable:!1,get:function(){return this._readableState&&this._readableState.buffer}}),Object.defineProperty(B.prototype,"readableFlowing",{enumerable:!1,get:function(){return this._readableState.flowing},set:function(o){this._readableState&&(this._readableState.flowing=o)}}),B._fromList=V,Object.defineProperty(B.prototype,"readableLength",{enumerable:!1,get:function(){return this._readableState.length}}),typeof Symbol=="function"&&(B.from=function(o,v){return h===void 0&&(h=r(1265)),h(B,o,v)})},4473:(z,P,r)=>{z.exports=N;var a=r(8106).q,i=a.ERR_METHOD_NOT_IMPLEMENTED,l=a.ERR_MULTIPLE_CALLBACK,g=a.ERR_TRANSFORM_ALREADY_TRANSFORMING,I=a.ERR_TRANSFORM_WITH_LENGTH_0,p=r(8656);function S(h,u){var m=this._transformState;m.transforming=!1;var E=m.writecb;if(E===null)return this.emit("error",new l);m.writechunk=null,m.writecb=null,u!=null&&this.push(u),E(h);var O=this._readableState;O.reading=!1,(O.needReadable||O.length<O.highWaterMark)&&this._read(O.highWaterMark)}function N(h){if(!(this instanceof N))return new N(h);p.call(this,h),this._transformState={afterTransform:S.bind(this),needTransform:!1,transforming:!1,writecb:null,writechunk:null,writeencoding:null},this._readableState.needReadable=!0,this._readableState.sync=!1,h&&(typeof h.transform=="function"&&(this._transform=h.transform),typeof h.flush=="function"&&(this._flush=h.flush)),this.on("prefinish",_)}function _(){var h=this;typeof this._flush!="function"||this._readableState.destroyed?y(this,null,null):this._flush((function(u,m){y(h,u,m)}))}function y(h,u,m){if(u)return h.emit("error",u);if(m!=null&&h.push(m),h._writableState.length)throw new I;if(h._transformState.transforming)throw new g;return h.push(null)}r(5717)(N,p),N.prototype.push=function(h,u){return this._transformState.needTransform=!1,p.prototype.push.call(this,h,u)},N.prototype._transform=function(h,u,m){m(new i("_transform()"))},N.prototype._write=function(h,u,m){var E=this._transformState;if(E.writecb=m,E.writechunk=h,E.writeencoding=u,!E.transforming){var O=this._readableState;(E.needTransform||O.needReadable||O.length<O.highWaterMark)&&this._read(O.highWaterMark)}},N.prototype._read=function(h){var u=this._transformState;u.writechunk===null||u.transforming?u.needTransform=!0:(u.transforming=!0,this._transform(u.writechunk,u.writeencoding,u.afterTransform))},N.prototype._destroy=function(h,u){p.prototype._destroy.call(this,h,(function(m){u(m)}))}},323:(z,P,r)=>{var a,i=r(4155);function l(A){var U=this;this.next=null,this.entry=null,this.finish=function(){(function(k,q,F){var W=k.entry;for(k.entry=null;W;){var V=W.callback;q.pendingcb--,V(void 0),W=W.next}q.corkedRequestsFree.next=k})(U,A)}}z.exports=B,B.WritableState=n;var g,I={deprecate:r(4927)},p=r(3194),S=r(8764).Buffer,N=r.g.Uint8Array||function(){},_=r(1029),y=r(94).getHighWaterMark,h=r(8106).q,u=h.ERR_INVALID_ARG_TYPE,m=h.ERR_METHOD_NOT_IMPLEMENTED,E=h.ERR_MULTIPLE_CALLBACK,O=h.ERR_STREAM_CANNOT_PIPE,M=h.ERR_STREAM_DESTROYED,d=h.ERR_STREAM_NULL_VALUES,b=h.ERR_STREAM_WRITE_AFTER_END,C=h.ERR_UNKNOWN_ENCODING,x=_.errorOrDestroy;function D(){}function n(A,U,k){a=a||r(8656),A=A||{},typeof k!="boolean"&&(k=U instanceof a),this.objectMode=!!A.objectMode,k&&(this.objectMode=this.objectMode||!!A.writableObjectMode),this.highWaterMark=y(this,A,"writableHighWaterMark",k),this.finalCalled=!1,this.needDrain=!1,this.ending=!1,this.ended=!1,this.finished=!1,this.destroyed=!1;var q=A.decodeStrings===!1;this.decodeStrings=!q,this.defaultEncoding=A.defaultEncoding||"utf8",this.length=0,this.writing=!1,this.corked=0,this.sync=!0,this.bufferProcessing=!1,this.onwrite=function(F){(function(W,V){var $=W._writableState,K=$.sync,T=$.writecb;if(typeof T!="function")throw new E;if((function(v){v.writing=!1,v.writecb=null,v.length-=v.writelen,v.writelen=0})($),V)(function(v,L,Y,st,ht){--L.pendingcb,Y?(i.nextTick(ht,st),i.nextTick(c,v,L),v._writableState.errorEmitted=!0,x(v,st)):(ht(st),v._writableState.errorEmitted=!0,x(v,st),c(v,L))})(W,$,K,V,T);else{var o=rt($)||W.destroyed;o||$.corked||$.bufferProcessing||!$.bufferedRequest||lt(W,$),K?i.nextTick(G,W,$,o,T):G(W,$,o,T)}})(U,F)},this.writecb=null,this.writelen=0,this.bufferedRequest=null,this.lastBufferedRequest=null,this.pendingcb=0,this.prefinished=!1,this.errorEmitted=!1,this.emitClose=A.emitClose!==!1,this.autoDestroy=!!A.autoDestroy,this.bufferedRequestCount=0,this.corkedRequestsFree=new l(this)}function B(A){var U=this instanceof(a=a||r(8656));if(!U&&!g.call(B,this))return new B(A);this._writableState=new n(A,this,U),this.writable=!0,A&&(typeof A.write=="function"&&(this._write=A.write),typeof A.writev=="function"&&(this._writev=A.writev),typeof A.destroy=="function"&&(this._destroy=A.destroy),typeof A.final=="function"&&(this._final=A.final)),p.call(this)}function Q(A,U,k,q,F,W,V){U.writelen=q,U.writecb=V,U.writing=!0,U.sync=!0,U.destroyed?U.onwrite(new M("write")):k?A._writev(F,U.onwrite):A._write(F,W,U.onwrite),U.sync=!1}function G(A,U,k,q){k||(function(F,W){W.length===0&&W.needDrain&&(W.needDrain=!1,F.emit("drain"))})(A,U),U.pendingcb--,q(),c(A,U)}function lt(A,U){U.bufferProcessing=!0;var k=U.bufferedRequest;if(A._writev&&k&&k.next){var q=U.bufferedRequestCount,F=new Array(q),W=U.corkedRequestsFree;W.entry=k;for(var V=0,$=!0;k;)F[V]=k,k.isBuf||($=!1),k=k.next,V+=1;F.allBuffers=$,Q(A,U,!0,U.length,F,"",W.finish),U.pendingcb++,U.lastBufferedRequest=null,W.next?(U.corkedRequestsFree=W.next,W.next=null):U.corkedRequestsFree=new l(U),U.bufferedRequestCount=0}else{for(;k;){var K=k.chunk,T=k.encoding,o=k.callback;if(Q(A,U,!1,U.objectMode?1:K.length,K,T,o),k=k.next,U.bufferedRequestCount--,U.writing)break}k===null&&(U.lastBufferedRequest=null)}U.bufferedRequest=k,U.bufferProcessing=!1}function rt(A){return A.ending&&A.length===0&&A.bufferedRequest===null&&!A.finished&&!A.writing}function at(A,U){A._final((function(k){U.pendingcb--,k&&x(A,k),U.prefinished=!0,A.emit("prefinish"),c(A,U)}))}function c(A,U){var k=rt(U);if(k&&((function(F,W){W.prefinished||W.finalCalled||(typeof F._final!="function"||W.destroyed?(W.prefinished=!0,F.emit("prefinish")):(W.pendingcb++,W.finalCalled=!0,i.nextTick(at,F,W)))})(A,U),U.pendingcb===0&&(U.finished=!0,A.emit("finish"),U.autoDestroy))){var q=A._readableState;(!q||q.autoDestroy&&q.endEmitted)&&A.destroy()}return k}r(5717)(B,p),n.prototype.getBuffer=function(){for(var A=this.bufferedRequest,U=[];A;)U.push(A),A=A.next;return U},(function(){try{Object.defineProperty(n.prototype,"buffer",{get:I.deprecate((function(){return this.getBuffer()}),"_writableState.buffer is deprecated. Use _writableState.getBuffer instead.","DEP0003")})}catch{}})(),typeof Symbol=="function"&&Symbol.hasInstance&&typeof Function.prototype[Symbol.hasInstance]=="function"?(g=Function.prototype[Symbol.hasInstance],Object.defineProperty(B,Symbol.hasInstance,{value:function(A){return!!g.call(this,A)||this===B&&A&&A._writableState instanceof n}})):g=function(A){return A instanceof this},B.prototype.pipe=function(){x(this,new O)},B.prototype.write=function(A,U,k){var q,F=this._writableState,W=!1,V=!F.objectMode&&(q=A,S.isBuffer(q)||q instanceof N);return V&&!S.isBuffer(A)&&(A=(function($){return S.from($)})(A)),typeof U=="function"&&(k=U,U=null),V?U="buffer":U||(U=F.defaultEncoding),typeof k!="function"&&(k=D),F.ending?(function($,K){var T=new b;x($,T),i.nextTick(K,T)})(this,k):(V||(function($,K,T,o){var v;return T===null?v=new d:typeof T=="string"||K.objectMode||(v=new u("chunk",["string","Buffer"],T)),!v||(x($,v),i.nextTick(o,v),!1)})(this,F,A,k))&&(F.pendingcb++,W=(function($,K,T,o,v,L){if(!T){var Y=(function(it,wt,ft){return it.objectMode||it.decodeStrings===!1||typeof wt!="string"||(wt=S.from(wt,ft)),wt})(K,o,v);o!==Y&&(T=!0,v="buffer",o=Y)}var st=K.objectMode?1:o.length;K.length+=st;var ht=K.length<K.highWaterMark;if(ht||(K.needDrain=!0),K.writing||K.corked){var nt=K.lastBufferedRequest;K.lastBufferedRequest={chunk:o,encoding:v,isBuf:T,callback:L,next:null},nt?nt.next=K.lastBufferedRequest:K.bufferedRequest=K.lastBufferedRequest,K.bufferedRequestCount+=1}else Q($,K,!1,st,o,v,L);return ht})(this,F,V,A,U,k)),W},B.prototype.cork=function(){this._writableState.corked++},B.prototype.uncork=function(){var A=this._writableState;A.corked&&(A.corked--,A.writing||A.corked||A.bufferProcessing||!A.bufferedRequest||lt(this,A))},B.prototype.setDefaultEncoding=function(A){if(typeof A=="string"&&(A=A.toLowerCase()),!(["hex","utf8","utf-8","ascii","binary","base64","ucs2","ucs-2","utf16le","utf-16le","raw"].indexOf((A+"").toLowerCase())>-1))throw new C(A);return this._writableState.defaultEncoding=A,this},Object.defineProperty(B.prototype,"writableBuffer",{enumerable:!1,get:function(){return this._writableState&&this._writableState.getBuffer()}}),Object.defineProperty(B.prototype,"writableHighWaterMark",{enumerable:!1,get:function(){return this._writableState.highWaterMark}}),B.prototype._write=function(A,U,k){k(new m("_write()"))},B.prototype._writev=null,B.prototype.end=function(A,U,k){var q=this._writableState;return typeof A=="function"?(k=A,A=null,U=null):typeof U=="function"&&(k=U,U=null),A!=null&&this.write(A,U),q.corked&&(q.corked=1,this.uncork()),q.ending||(function(F,W,V){W.ending=!0,c(F,W),V&&(W.finished?i.nextTick(V):F.once("finish",V)),W.ended=!0,F.writable=!1})(this,q,k),this},Object.defineProperty(B.prototype,"writableLength",{enumerable:!1,get:function(){return this._writableState.length}}),Object.defineProperty(B.prototype,"destroyed",{enumerable:!1,get:function(){return this._writableState!==void 0&&this._writableState.destroyed},set:function(A){this._writableState&&(this._writableState.destroyed=A)}}),B.prototype.destroy=_.destroy,B.prototype._undestroy=_.undestroy,B.prototype._destroy=function(A,U){U(A)}},828:(z,P,r)=>{var a,i=r(4155);function l(d,b,C){return b in d?Object.defineProperty(d,b,{value:C,enumerable:!0,configurable:!0,writable:!0}):d[b]=C,d}var g=r(1086),I=Symbol("lastResolve"),p=Symbol("lastReject"),S=Symbol("error"),N=Symbol("ended"),_=Symbol("lastPromise"),y=Symbol("handlePromise"),h=Symbol("stream");function u(d,b){return{value:d,done:b}}function m(d){var b=d[I];if(b!==null){var C=d[h].read();C!==null&&(d[_]=null,d[I]=null,d[p]=null,b(u(C,!1)))}}function E(d){i.nextTick(m,d)}var O=Object.getPrototypeOf((function(){})),M=Object.setPrototypeOf((l(a={get stream(){return this[h]},next:function(){var d=this,b=this[S];if(b!==null)return Promise.reject(b);if(this[N])return Promise.resolve(u(void 0,!0));if(this[h].destroyed)return new Promise((function(n,B){i.nextTick((function(){d[S]?B(d[S]):n(u(void 0,!0))}))}));var C,x=this[_];if(x)C=new Promise((function(n,B){return function(Q,G){n.then((function(){B[N]?Q(u(void 0,!0)):B[y](Q,G)}),G)}})(x,this));else{var D=this[h].read();if(D!==null)return Promise.resolve(u(D,!1));C=new Promise(this[y])}return this[_]=C,C}},Symbol.asyncIterator,(function(){return this})),l(a,"return",(function(){var d=this;return new Promise((function(b,C){d[h].destroy(null,(function(x){x?C(x):b(u(void 0,!0))}))}))})),a),O);z.exports=function(d){var b,C=Object.create(M,(l(b={},h,{value:d,writable:!0}),l(b,I,{value:null,writable:!0}),l(b,p,{value:null,writable:!0}),l(b,S,{value:null,writable:!0}),l(b,N,{value:d._readableState.endEmitted,writable:!0}),l(b,y,{value:function(x,D){var n=C[h].read();n?(C[_]=null,C[I]=null,C[p]=null,x(u(n,!1))):(C[I]=x,C[p]=D)},writable:!0}),b));return C[_]=null,g(d,(function(x){if(x&&x.code!=="ERR_STREAM_PREMATURE_CLOSE"){var D=C[p];return D!==null&&(C[_]=null,C[I]=null,C[p]=null,D(x)),void(C[S]=x)}var n=C[I];n!==null&&(C[_]=null,C[I]=null,C[p]=null,n(u(void 0,!0))),C[N]=!0})),d.on("readable",E.bind(null,C)),C}},9686:(z,P,r)=>{function a(S,N){var _=Object.keys(S);if(Object.getOwnPropertySymbols){var y=Object.getOwnPropertySymbols(S);N&&(y=y.filter((function(h){return Object.getOwnPropertyDescriptor(S,h).enumerable}))),_.push.apply(_,y)}return _}function i(S,N,_){return N in S?Object.defineProperty(S,N,{value:_,enumerable:!0,configurable:!0,writable:!0}):S[N]=_,S}function l(S,N){for(var _=0;_<N.length;_++){var y=N[_];y.enumerable=y.enumerable||!1,y.configurable=!0,"value"in y&&(y.writable=!0),Object.defineProperty(S,y.key,y)}}var g=r(8764).Buffer,I=r(5575).inspect,p=I&&I.custom||"inspect";z.exports=(function(){function S(){(function(y,h){if(!(y instanceof h))throw new TypeError("Cannot call a class as a function")})(this,S),this.head=null,this.tail=null,this.length=0}var N,_;return N=S,_=[{key:"push",value:function(y){var h={data:y,next:null};this.length>0?this.tail.next=h:this.head=h,this.tail=h,++this.length}},{key:"unshift",value:function(y){var h={data:y,next:this.head};this.length===0&&(this.tail=h),this.head=h,++this.length}},{key:"shift",value:function(){if(this.length!==0){var y=this.head.data;return this.length===1?this.head=this.tail=null:this.head=this.head.next,--this.length,y}}},{key:"clear",value:function(){this.head=this.tail=null,this.length=0}},{key:"join",value:function(y){if(this.length===0)return"";for(var h=this.head,u=""+h.data;h=h.next;)u+=y+h.data;return u}},{key:"concat",value:function(y){if(this.length===0)return g.alloc(0);for(var h,u,m,E=g.allocUnsafe(y>>>0),O=this.head,M=0;O;)h=O.data,u=E,m=M,g.prototype.copy.call(h,u,m),M+=O.data.length,O=O.next;return E}},{key:"consume",value:function(y,h){var u;return y<this.head.data.length?(u=this.head.data.slice(0,y),this.head.data=this.head.data.slice(y)):u=y===this.head.data.length?this.shift():h?this._getString(y):this._getBuffer(y),u}},{key:"first",value:function(){return this.head.data}},{key:"_getString",value:function(y){var h=this.head,u=1,m=h.data;for(y-=m.length;h=h.next;){var E=h.data,O=y>E.length?E.length:y;if(O===E.length?m+=E:m+=E.slice(0,y),(y-=O)==0){O===E.length?(++u,h.next?this.head=h.next:this.head=this.tail=null):(this.head=h,h.data=E.slice(O));break}++u}return this.length-=u,m}},{key:"_getBuffer",value:function(y){var h=g.allocUnsafe(y),u=this.head,m=1;for(u.data.copy(h),y-=u.data.length;u=u.next;){var E=u.data,O=y>E.length?E.length:y;if(E.copy(h,h.length-y,0,O),(y-=O)==0){O===E.length?(++m,u.next?this.head=u.next:this.head=this.tail=null):(this.head=u,u.data=E.slice(O));break}++m}return this.length-=m,h}},{key:p,value:function(y,h){return I(this,(function(u){for(var m=1;m<arguments.length;m++){var E=arguments[m]!=null?arguments[m]:{};m%2?a(Object(E),!0).forEach((function(O){i(u,O,E[O])})):Object.getOwnPropertyDescriptors?Object.defineProperties(u,Object.getOwnPropertyDescriptors(E)):a(Object(E)).forEach((function(O){Object.defineProperty(u,O,Object.getOwnPropertyDescriptor(E,O))}))}return u})({},h,{depth:0,customInspect:!1}))}}],_&&l(N.prototype,_),S})()},1029:(z,P,r)=>{var a=r(4155);function i(I,p){g(I,p),l(I)}function l(I){I._writableState&&!I._writableState.emitClose||I._readableState&&!I._readableState.emitClose||I.emit("close")}function g(I,p){I.emit("error",p)}z.exports={destroy:function(I,p){var S=this,N=this._readableState&&this._readableState.destroyed,_=this._writableState&&this._writableState.destroyed;return N||_?(p?p(I):I&&(this._writableState?this._writableState.errorEmitted||(this._writableState.errorEmitted=!0,a.nextTick(g,this,I)):a.nextTick(g,this,I)),this):(this._readableState&&(this._readableState.destroyed=!0),this._writableState&&(this._writableState.destroyed=!0),this._destroy(I||null,(function(y){!p&&y?S._writableState?S._writableState.errorEmitted?a.nextTick(l,S):(S._writableState.errorEmitted=!0,a.nextTick(i,S,y)):a.nextTick(i,S,y):p?(a.nextTick(l,S),p(y)):a.nextTick(l,S)})),this)},undestroy:function(){this._readableState&&(this._readableState.destroyed=!1,this._readableState.reading=!1,this._readableState.ended=!1,this._readableState.endEmitted=!1),this._writableState&&(this._writableState.destroyed=!1,this._writableState.ended=!1,this._writableState.ending=!1,this._writableState.finalCalled=!1,this._writableState.prefinished=!1,this._writableState.finished=!1,this._writableState.errorEmitted=!1)},errorOrDestroy:function(I,p){var S=I._readableState,N=I._writableState;S&&S.autoDestroy||N&&N.autoDestroy?I.destroy(p):I.emit("error",p)}}},1086:(z,P,r)=>{var a=r(8106).q.ERR_STREAM_PREMATURE_CLOSE;function i(){}z.exports=function l(g,I,p){if(typeof I=="function")return l(g,null,I);I||(I={}),p=(function(d){var b=!1;return function(){if(!b){b=!0;for(var C=arguments.length,x=new Array(C),D=0;D<C;D++)x[D]=arguments[D];d.apply(this,x)}}})(p||i);var S=I.readable||I.readable!==!1&&g.readable,N=I.writable||I.writable!==!1&&g.writable,_=function(){g.writable||h()},y=g._writableState&&g._writableState.finished,h=function(){N=!1,y=!0,S||p.call(g)},u=g._readableState&&g._readableState.endEmitted,m=function(){S=!1,u=!0,N||p.call(g)},E=function(d){p.call(g,d)},O=function(){var d;return S&&!u?(g._readableState&&g._readableState.ended||(d=new a),p.call(g,d)):N&&!y?(g._writableState&&g._writableState.ended||(d=new a),p.call(g,d)):void 0},M=function(){g.req.on("finish",h)};return(function(d){return d.setHeader&&typeof d.abort=="function"})(g)?(g.on("complete",h),g.on("abort",O),g.req?M():g.on("request",M)):N&&!g._writableState&&(g.on("end",_),g.on("close",_)),g.on("end",m),g.on("finish",h),I.error!==!1&&g.on("error",E),g.on("close",O),function(){g.removeListener("complete",h),g.removeListener("abort",O),g.removeListener("request",M),g.req&&g.req.removeListener("finish",h),g.removeListener("end",_),g.removeListener("close",_),g.removeListener("finish",h),g.removeListener("end",m),g.removeListener("error",E),g.removeListener("close",O)}}},1265:z=>{z.exports=function(){throw new Error("Readable.from is not available in the browser")}},6472:(z,P,r)=>{var a,i=r(8106).q,l=i.ERR_MISSING_ARGS,g=i.ERR_STREAM_DESTROYED;function I(y){if(y)throw y}function p(y,h,u,m){m=(function(M){var d=!1;return function(){d||(d=!0,M.apply(void 0,arguments))}})(m);var E=!1;y.on("close",(function(){E=!0})),a===void 0&&(a=r(1086)),a(y,{readable:h,writable:u},(function(M){if(M)return m(M);E=!0,m()}));var O=!1;return function(M){if(!E&&!O)return O=!0,(function(d){return d.setHeader&&typeof d.abort=="function"})(y)?y.abort():typeof y.destroy=="function"?y.destroy():void m(M||new g("pipe"))}}function S(y){y()}function N(y,h){return y.pipe(h)}function _(y){return y.length?typeof y[y.length-1]!="function"?I:y.pop():I}z.exports=function(){for(var y=arguments.length,h=new Array(y),u=0;u<y;u++)h[u]=arguments[u];var m,E=_(h);if(Array.isArray(h[0])&&(h=h[0]),h.length<2)throw new l("streams");var O=h.map((function(M,d){var b=d<h.length-1;return p(M,b,d>0,(function(C){m||(m=C),C&&O.forEach(S),b||(O.forEach(S),E(m))}))}));return h.reduce(N)}},94:(z,P,r)=>{var a=r(8106).q.ERR_INVALID_OPT_VALUE;z.exports={getHighWaterMark:function(i,l,g,I){var p=(function(S,N,_){return S.highWaterMark!=null?S.highWaterMark:N?S[_]:null})(l,I,g);if(p!=null){if(!isFinite(p)||Math.floor(p)!==p||p<0)throw new a(I?g:"highWaterMark",p);return Math.floor(p)}return i.objectMode?16:16384}}},3194:(z,P,r)=>{z.exports=r(7187).EventEmitter},2553:(z,P,r)=>{var a=r(9509).Buffer,i=a.isEncoding||function(u){switch((u=""+u)&&u.toLowerCase()){case"hex":case"utf8":case"utf-8":case"ascii":case"binary":case"base64":case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":case"raw":return!0;default:return!1}};function l(u){var m;switch(this.encoding=(function(E){var O=(function(M){if(!M)return"utf8";for(var d;;)switch(M){case"utf8":case"utf-8":return"utf8";case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return"utf16le";case"latin1":case"binary":return"latin1";case"base64":case"ascii":case"hex":return M;default:if(d)return;M=(""+M).toLowerCase(),d=!0}})(E);if(typeof O!="string"&&(a.isEncoding===i||!i(E)))throw new Error("Unknown encoding: "+E);return O||E})(u),this.encoding){case"utf16le":this.text=p,this.end=S,m=4;break;case"utf8":this.fillLast=I,m=4;break;case"base64":this.text=N,this.end=_,m=3;break;default:return this.write=y,void(this.end=h)}this.lastNeed=0,this.lastTotal=0,this.lastChar=a.allocUnsafe(m)}function g(u){return u<=127?0:u>>5==6?2:u>>4==14?3:u>>3==30?4:u>>6==2?-1:-2}function I(u){var m=this.lastTotal-this.lastNeed,E=(function(O,M,d){if((192&M[0])!=128)return O.lastNeed=0,"�";if(O.lastNeed>1&&M.length>1){if((192&M[1])!=128)return O.lastNeed=1,"�";if(O.lastNeed>2&&M.length>2&&(192&M[2])!=128)return O.lastNeed=2,"�"}})(this,u);return E!==void 0?E:this.lastNeed<=u.length?(u.copy(this.lastChar,m,0,this.lastNeed),this.lastChar.toString(this.encoding,0,this.lastTotal)):(u.copy(this.lastChar,m,0,u.length),void(this.lastNeed-=u.length))}function p(u,m){if((u.length-m)%2==0){var E=u.toString("utf16le",m);if(E){var O=E.charCodeAt(E.length-1);if(O>=55296&&O<=56319)return this.lastNeed=2,this.lastTotal=4,this.lastChar[0]=u[u.length-2],this.lastChar[1]=u[u.length-1],E.slice(0,-1)}return E}return this.lastNeed=1,this.lastTotal=2,this.lastChar[0]=u[u.length-1],u.toString("utf16le",m,u.length-1)}function S(u){var m=u&&u.length?this.write(u):"";if(this.lastNeed){var E=this.lastTotal-this.lastNeed;return m+this.lastChar.toString("utf16le",0,E)}return m}function N(u,m){var E=(u.length-m)%3;return E===0?u.toString("base64",m):(this.lastNeed=3-E,this.lastTotal=3,E===1?this.lastChar[0]=u[u.length-1]:(this.lastChar[0]=u[u.length-2],this.lastChar[1]=u[u.length-1]),u.toString("base64",m,u.length-E))}function _(u){var m=u&&u.length?this.write(u):"";return this.lastNeed?m+this.lastChar.toString("base64",0,3-this.lastNeed):m}function y(u){return u.toString(this.encoding)}function h(u){return u&&u.length?this.write(u):""}P.s=l,l.prototype.write=function(u){if(u.length===0)return"";var m,E;if(this.lastNeed){if((m=this.fillLast(u))===void 0)return"";E=this.lastNeed,this.lastNeed=0}else E=0;return E<u.length?m?m+this.text(u,E):this.text(u,E):m||""},l.prototype.end=function(u){var m=u&&u.length?this.write(u):"";return this.lastNeed?m+"�":m},l.prototype.text=function(u,m){var E=(function(M,d,b){var C=d.length-1;if(C<b)return 0;var x=g(d[C]);return x>=0?(x>0&&(M.lastNeed=x-1),x):--C<b||x===-2?0:(x=g(d[C]))>=0?(x>0&&(M.lastNeed=x-2),x):--C<b||x===-2?0:(x=g(d[C]))>=0?(x>0&&(x===2?x=0:M.lastNeed=x-3),x):0})(this,u,m);if(!this.lastNeed)return u.toString("utf8",m);this.lastTotal=E;var O=u.length-(E-this.lastNeed);return u.copy(this.lastChar,0,O),u.toString("utf8",m,O)},l.prototype.fillLast=function(u){if(this.lastNeed<=u.length)return u.copy(this.lastChar,this.lastTotal-this.lastNeed,0,this.lastNeed),this.lastChar.toString(this.encoding,0,this.lastTotal);u.copy(this.lastChar,this.lastTotal-this.lastNeed,0,u.length),this.lastNeed-=u.length}},5457:(z,P,r)=>{r.d(P,{vw:()=>l,rq:()=>i,EL:()=>I,NY:()=>g});let a=0;const i=p=>Math.floor(p/25.4*72*20),l=p=>Math.floor(72*p*20),g=()=>++a,I=()=>((p=21)=>{let S="",N=p;for(;N--;)S+="useandom-26T198340PX75pxJACKVERYMINDBUSHWOLF_GQZbfghjklqvwyzrict"[64*Math.random()|0];return S})().toLowerCase()},5575:(z,P,r)=>{r.r(P),r.d(P,{convertInchesToTwip:()=>a.vw,convertMillimetersToTwip:()=>a.rq,dateTimeValue:()=>i.sF,decimalNumber:()=>i.vH,eighthPointMeasureValue:()=>i.LV,hexColorValue:()=>i.dg,hpsMeasureValue:()=>i.KR,longHexNumber:()=>i.mA,measurementOrPercentValue:()=>i.aB,percentageValue:()=>i.wp,pointMeasureValue:()=>i.gg,positiveUniversalMeasureValue:()=>i._p,shortHexNumber:()=>i.G0,signedHpsMeasureValue:()=>i.Rg,signedTwipsMeasureValue:()=>i.xb,twipsMeasureValue:()=>i.Jd,uCharHexNumber:()=>i.xD,uniqueId:()=>a.EL,uniqueNumericId:()=>a.NY,universalMeasureValue:()=>i.KC,unsignedDecimalNumber:()=>i.f$});var a=r(5457),i=r(6595)},6595:(z,P,r)=>{r.d(P,{G0:()=>I,Jd:()=>E,KC:()=>S,KR:()=>u,LV:()=>d,Rg:()=>m,_p:()=>_,aB:()=>M,dg:()=>y,f$:()=>i,gg:()=>b,mA:()=>g,sF:()=>C,vH:()=>a,wp:()=>O,xD:()=>p,xb:()=>h});const a=x=>{if(isNaN(x))throw new Error(`Invalid value '${x}' specified. Must be an integer.`);return Math.floor(x)},i=x=>{const D=a(x);if(D<0)throw new Error(`Invalid value '${x}' specified. Must be a positive integer.`);return D},l=(x,D)=>{const n=2*D;if(x.length!==n||isNaN(+`0x${x}`))throw new Error(`Invalid hex value '${x}'. Expected ${n} digit hex value`);return x},g=x=>l(x,4),I=x=>l(x,2),p=x=>l(x,1),S=x=>{const D=x.slice(-2);if(!N.includes(D))throw new Error(`Invalid unit '${D}' specified. Valid units are ${N.join(", ")}`);const n=x.substring(0,x.length-2);if(isNaN(Number(n)))throw new Error(`Invalid value '${n}' specified. Expected a valid number.`);return`${Number(n)}${D}`},N=["mm","cm","in","pt","pc","pi"],_=x=>{const D=S(x);if(parseFloat(D)<0)throw new Error(`Invalid value '${D}' specified. Expected a positive number.`);return D},y=x=>{if(x==="auto")return x;const D=x.charAt(0)==="#"?x.substring(1):x;return l(D,3)},h=x=>typeof x=="string"?S(x):a(x),u=x=>typeof x=="string"?_(x):i(x),m=x=>typeof x=="string"?S(x):a(x),E=x=>typeof x=="string"?_(x):i(x),O=x=>{if(x.slice(-1)!=="%")throw new Error(`Invalid value '${x}'. Expected percentage value (eg '55%')`);const D=x.substring(0,x.length-1);if(isNaN(Number(D)))throw new Error(`Invalid value '${D}' specified. Expected a valid number.`);return`${Number(D)}%`},M=x=>typeof x=="number"?a(x):x.slice(-1)==="%"?O(x):S(x),d=i,b=i,C=x=>x.toISOString()},4927:(z,P,r)=>{function a(i){try{if(!r.g.localStorage)return!1}catch{return!1}var l=r.g.localStorage[i];return l!=null&&String(l).toLowerCase()==="true"}z.exports=function(i,l){if(a("noDeprecation"))return i;var g=!1;return function(){if(!g){if(a("throwDeprecation"))throw new Error(l);a("traceDeprecation")?console.trace(l):console.warn(l),g=!0}return i.apply(this,arguments)}}},9881:z=>{z.exports={isArray:function(P){return Array.isArray?Array.isArray(P):Object.prototype.toString.call(P)==="[object Array]"}}},7888:(z,P,r)=>{var a=r(1229),i=r(1388),l=r(6501),g=r(4673);z.exports={xml2js:a,xml2json:i,js2xml:l,json2xml:g}},6501:(z,P,r)=>{var a,i,l=r(4740),g=r(9881).isArray;function I(d,b,C){return(!C&&d.spaces?`
|
|
11
|
+
`:"")+Array(b+1).join(d.spaces)}function p(d,b,C){if(b.ignoreAttributes)return"";"attributesFn"in b&&(d=b.attributesFn(d,i,a));var x,D,n,B,Q=[];for(x in d)d.hasOwnProperty(x)&&d[x]!==null&&d[x]!==void 0&&(B=b.noQuotesForNativeAttributes&&typeof d[x]!="string"?"":'"',D=(D=""+d[x]).replace(/"/g,"""),n="attributeNameFn"in b?b.attributeNameFn(x,D,i,a):x,Q.push(b.spaces&&b.indentAttributes?I(b,C+1,!1):" "),Q.push(n+"="+B+("attributeValueFn"in b?b.attributeValueFn(D,x,i,a):D)+B));return d&&Object.keys(d).length&&b.spaces&&b.indentAttributes&&Q.push(I(b,C,!1)),Q.join("")}function S(d,b,C){return a=d,i="xml",b.ignoreDeclaration?"":"<?xml"+p(d[b.attributesKey],b,C)+"?>"}function N(d,b,C){if(b.ignoreInstruction)return"";var x;for(x in d)if(d.hasOwnProperty(x))break;var D="instructionNameFn"in b?b.instructionNameFn(x,d[x],i,a):x;if(typeof d[x]=="object")return a=d,i=D,"<?"+D+p(d[x][b.attributesKey],b,C)+"?>";var n=d[x]?d[x]:"";return"instructionFn"in b&&(n=b.instructionFn(n,x,i,a)),"<?"+D+(n?" "+n:"")+"?>"}function _(d,b){return b.ignoreComment?"":"<!--"+("commentFn"in b?b.commentFn(d,i,a):d)+"-->"}function y(d,b){return b.ignoreCdata?"":"<![CDATA["+("cdataFn"in b?b.cdataFn(d,i,a):d.replace("]]>","]]]]><![CDATA[>"))+"]]>"}function h(d,b){return b.ignoreDoctype?"":"<!DOCTYPE "+("doctypeFn"in b?b.doctypeFn(d,i,a):d)+">"}function u(d,b){return b.ignoreText?"":(d=(d=(d=""+d).replace(/&/g,"&")).replace(/&/g,"&").replace(/</g,"<").replace(/>/g,">"),"textFn"in b?b.textFn(d,i,a):d)}function m(d,b,C,x){return d.reduce((function(D,n){var B=I(b,C,x&&!D);switch(n.type){case"element":return D+B+(function(G,lt,rt){a=G,i=G.name;var at=[],c="elementNameFn"in lt?lt.elementNameFn(G.name,G):G.name;at.push("<"+c),G[lt.attributesKey]&&at.push(p(G[lt.attributesKey],lt,rt));var A=G[lt.elementsKey]&&G[lt.elementsKey].length||G[lt.attributesKey]&&G[lt.attributesKey]["xml:space"]==="preserve";return A||(A="fullTagEmptyElementFn"in lt?lt.fullTagEmptyElementFn(G.name,G):lt.fullTagEmptyElement),A?(at.push(">"),G[lt.elementsKey]&&G[lt.elementsKey].length&&(at.push(m(G[lt.elementsKey],lt,rt+1)),a=G,i=G.name),at.push(lt.spaces&&(function(U,k){var q;if(U.elements&&U.elements.length)for(q=0;q<U.elements.length;++q)switch(U.elements[q][k.typeKey]){case"text":if(k.indentText)return!0;break;case"cdata":if(k.indentCdata)return!0;break;case"instruction":if(k.indentInstruction)return!0;break;default:return!0}return!1})(G,lt)?`
|
|
12
|
+
`+Array(rt+1).join(lt.spaces):""),at.push("</"+c+">")):at.push("/>"),at.join("")})(n,b,C);case"comment":return D+B+_(n[b.commentKey],b);case"doctype":return D+B+h(n[b.doctypeKey],b);case"cdata":return D+(b.indentCdata?B:"")+y(n[b.cdataKey],b);case"text":return D+(b.indentText?B:"")+u(n[b.textKey],b);case"instruction":var Q={};return Q[n[b.nameKey]]=n[b.attributesKey]?n:n[b.instructionKey],D+(b.indentInstruction?B:"")+N(Q,b,C)}}),"")}function E(d,b,C){var x;for(x in d)if(d.hasOwnProperty(x))switch(x){case b.parentKey:case b.attributesKey:break;case b.textKey:if(b.indentText||C)return!0;break;case b.cdataKey:if(b.indentCdata||C)return!0;break;case b.instructionKey:if(b.indentInstruction||C)return!0;break;case b.doctypeKey:case b.commentKey:default:return!0}return!1}function O(d,b,C,x,D){a=d,i=b;var n="elementNameFn"in C?C.elementNameFn(b,d):b;if(d==null||d==="")return"fullTagEmptyElementFn"in C&&C.fullTagEmptyElementFn(b,d)||C.fullTagEmptyElement?"<"+n+"></"+n+">":"<"+n+"/>";var B=[];if(b){if(B.push("<"+n),typeof d!="object")return B.push(">"+u(d,C)+"</"+n+">"),B.join("");d[C.attributesKey]&&B.push(p(d[C.attributesKey],C,x));var Q=E(d,C,!0)||d[C.attributesKey]&&d[C.attributesKey]["xml:space"]==="preserve";if(Q||(Q="fullTagEmptyElementFn"in C?C.fullTagEmptyElementFn(b,d):C.fullTagEmptyElement),!Q)return B.push("/>"),B.join("");B.push(">")}return B.push(M(d,C,x+1,!1)),a=d,i=b,b&&B.push((D?I(C,x,!1):"")+"</"+n+">"),B.join("")}function M(d,b,C,x){var D,n,B,Q=[];for(n in d)if(d.hasOwnProperty(n))for(B=g(d[n])?d[n]:[d[n]],D=0;D<B.length;++D){switch(n){case b.declarationKey:Q.push(S(B[D],b,C));break;case b.instructionKey:Q.push((b.indentInstruction?I(b,C,x):"")+N(B[D],b,C));break;case b.attributesKey:case b.parentKey:break;case b.textKey:Q.push((b.indentText?I(b,C,x):"")+u(B[D],b));break;case b.cdataKey:Q.push((b.indentCdata?I(b,C,x):"")+y(B[D],b));break;case b.doctypeKey:Q.push(I(b,C,x)+h(B[D],b));break;case b.commentKey:Q.push(I(b,C,x)+_(B[D],b));break;default:Q.push(I(b,C,x)+O(B[D],n,b,C,E(B[D],b)))}x=x&&!Q.length}return Q.join("")}z.exports=function(d,b){b=(function(x){var D=l.copyOptions(x);return l.ensureFlagExists("ignoreDeclaration",D),l.ensureFlagExists("ignoreInstruction",D),l.ensureFlagExists("ignoreAttributes",D),l.ensureFlagExists("ignoreText",D),l.ensureFlagExists("ignoreComment",D),l.ensureFlagExists("ignoreCdata",D),l.ensureFlagExists("ignoreDoctype",D),l.ensureFlagExists("compact",D),l.ensureFlagExists("indentText",D),l.ensureFlagExists("indentCdata",D),l.ensureFlagExists("indentAttributes",D),l.ensureFlagExists("indentInstruction",D),l.ensureFlagExists("fullTagEmptyElement",D),l.ensureFlagExists("noQuotesForNativeAttributes",D),l.ensureSpacesExists(D),typeof D.spaces=="number"&&(D.spaces=Array(D.spaces+1).join(" ")),l.ensureKeyExists("declaration",D),l.ensureKeyExists("instruction",D),l.ensureKeyExists("attributes",D),l.ensureKeyExists("text",D),l.ensureKeyExists("comment",D),l.ensureKeyExists("cdata",D),l.ensureKeyExists("doctype",D),l.ensureKeyExists("type",D),l.ensureKeyExists("name",D),l.ensureKeyExists("elements",D),l.checkFnExists("doctype",D),l.checkFnExists("instruction",D),l.checkFnExists("cdata",D),l.checkFnExists("comment",D),l.checkFnExists("text",D),l.checkFnExists("instructionName",D),l.checkFnExists("elementName",D),l.checkFnExists("attributeName",D),l.checkFnExists("attributeValue",D),l.checkFnExists("attributes",D),l.checkFnExists("fullTagEmptyElement",D),D})(b);var C=[];return a=d,i="_root_",b.compact?C.push(M(d,b,0,!0)):(d[b.declarationKey]&&C.push(S(d[b.declarationKey],b,0)),d[b.elementsKey]&&d[b.elementsKey].length&&C.push(m(d[b.elementsKey],b,0,!C.length))),C.join("")}},4673:(z,P,r)=>{var a=r(6501);z.exports=function(i,l){i instanceof Buffer&&(i=i.toString());var g=null;if(typeof i=="string")try{g=JSON.parse(i)}catch{throw new Error("The JSON structure is invalid")}else g=i;return a(g,l)}},4740:(z,P,r)=>{var a=r(9881).isArray;z.exports={copyOptions:function(i){var l,g={};for(l in i)i.hasOwnProperty(l)&&(g[l]=i[l]);return g},ensureFlagExists:function(i,l){i in l&&typeof l[i]=="boolean"||(l[i]=!1)},ensureSpacesExists:function(i){(!("spaces"in i)||typeof i.spaces!="number"&&typeof i.spaces!="string")&&(i.spaces=0)},ensureAlwaysArrayExists:function(i){"alwaysArray"in i&&(typeof i.alwaysArray=="boolean"||a(i.alwaysArray))||(i.alwaysArray=!1)},ensureKeyExists:function(i,l){i+"Key"in l&&typeof l[i+"Key"]=="string"||(l[i+"Key"]=l.compact?"_"+i:i)},checkFnExists:function(i,l){return i+"Fn"in l}}},1229:(z,P,r)=>{var a,i,l=r(6099),g=r(4740),I=r(9881).isArray;function p(d){var b=Number(d);if(!isNaN(b))return b;var C=d.toLowerCase();return C==="true"||C!=="false"&&d}function S(d,b){var C;if(a.compact){if(!i[a[d+"Key"]]&&(I(a.alwaysArray)?a.alwaysArray.indexOf(a[d+"Key"])!==-1:a.alwaysArray)&&(i[a[d+"Key"]]=[]),i[a[d+"Key"]]&&!I(i[a[d+"Key"]])&&(i[a[d+"Key"]]=[i[a[d+"Key"]]]),d+"Fn"in a&&typeof b=="string"&&(b=a[d+"Fn"](b,i)),d==="instruction"&&("instructionFn"in a||"instructionNameFn"in a)){for(C in b)if(b.hasOwnProperty(C))if("instructionFn"in a)b[C]=a.instructionFn(b[C],C,i);else{var x=b[C];delete b[C],b[a.instructionNameFn(C,x,i)]=x}}I(i[a[d+"Key"]])?i[a[d+"Key"]].push(b):i[a[d+"Key"]]=b}else{i[a.elementsKey]||(i[a.elementsKey]=[]);var D={};if(D[a.typeKey]=d,d==="instruction"){for(C in b)if(b.hasOwnProperty(C))break;D[a.nameKey]="instructionNameFn"in a?a.instructionNameFn(C,b,i):C,a.instructionHasAttributes?(D[a.attributesKey]=b[C][a.attributesKey],"instructionFn"in a&&(D[a.attributesKey]=a.instructionFn(D[a.attributesKey],C,i))):("instructionFn"in a&&(b[C]=a.instructionFn(b[C],C,i)),D[a.instructionKey]=b[C])}else d+"Fn"in a&&(b=a[d+"Fn"](b,i)),D[a[d+"Key"]]=b;a.addParent&&(D[a.parentKey]=i),i[a.elementsKey].push(D)}}function N(d){var b;if("attributesFn"in a&&d&&(d=a.attributesFn(d,i)),(a.trim||"attributeValueFn"in a||"attributeNameFn"in a||a.nativeTypeAttributes)&&d){for(b in d)if(d.hasOwnProperty(b)&&(a.trim&&(d[b]=d[b].trim()),a.nativeTypeAttributes&&(d[b]=p(d[b])),"attributeValueFn"in a&&(d[b]=a.attributeValueFn(d[b],b,i)),"attributeNameFn"in a)){var C=d[b];delete d[b],d[a.attributeNameFn(b,d[b],i)]=C}}return d}function _(d){var b={};if(d.body&&(d.name.toLowerCase()==="xml"||a.instructionHasAttributes)){for(var C,x=/([\w:-]+)\s*=\s*(?:"([^"]*)"|'([^']*)'|(\w+))\s*/g;(C=x.exec(d.body))!==null;)b[C[1]]=C[2]||C[3]||C[4];b=N(b)}if(d.name.toLowerCase()==="xml"){if(a.ignoreDeclaration)return;i[a.declarationKey]={},Object.keys(b).length&&(i[a.declarationKey][a.attributesKey]=b),a.addParent&&(i[a.declarationKey][a.parentKey]=i)}else{if(a.ignoreInstruction)return;a.trim&&(d.body=d.body.trim());var D={};a.instructionHasAttributes&&Object.keys(b).length?(D[d.name]={},D[d.name][a.attributesKey]=b):D[d.name]=d.body,S("instruction",D)}}function y(d,b){var C;if(typeof d=="object"&&(b=d.attributes,d=d.name),b=N(b),"elementNameFn"in a&&(d=a.elementNameFn(d,i)),a.compact){var x;if(C={},!a.ignoreAttributes&&b&&Object.keys(b).length)for(x in C[a.attributesKey]={},b)b.hasOwnProperty(x)&&(C[a.attributesKey][x]=b[x]);!(d in i)&&(I(a.alwaysArray)?a.alwaysArray.indexOf(d)!==-1:a.alwaysArray)&&(i[d]=[]),i[d]&&!I(i[d])&&(i[d]=[i[d]]),I(i[d])?i[d].push(C):i[d]=C}else i[a.elementsKey]||(i[a.elementsKey]=[]),(C={})[a.typeKey]="element",C[a.nameKey]=d,!a.ignoreAttributes&&b&&Object.keys(b).length&&(C[a.attributesKey]=b),a.alwaysChildren&&(C[a.elementsKey]=[]),i[a.elementsKey].push(C);C[a.parentKey]=i,i=C}function h(d){a.ignoreText||(d.trim()||a.captureSpacesBetweenElements)&&(a.trim&&(d=d.trim()),a.nativeType&&(d=p(d)),a.sanitize&&(d=d.replace(/&/g,"&").replace(/</g,"<").replace(/>/g,">")),S("text",d))}function u(d){a.ignoreComment||(a.trim&&(d=d.trim()),S("comment",d))}function m(d){var b=i[a.parentKey];a.addParent||delete i[a.parentKey],i=b}function E(d){a.ignoreCdata||(a.trim&&(d=d.trim()),S("cdata",d))}function O(d){a.ignoreDoctype||(d=d.replace(/^ /,""),a.trim&&(d=d.trim()),S("doctype",d))}function M(d){d.note=d}z.exports=function(d,b){var C=l.parser(!0,{}),x={};if(i=x,a=(function(n){return a=g.copyOptions(n),g.ensureFlagExists("ignoreDeclaration",a),g.ensureFlagExists("ignoreInstruction",a),g.ensureFlagExists("ignoreAttributes",a),g.ensureFlagExists("ignoreText",a),g.ensureFlagExists("ignoreComment",a),g.ensureFlagExists("ignoreCdata",a),g.ensureFlagExists("ignoreDoctype",a),g.ensureFlagExists("compact",a),g.ensureFlagExists("alwaysChildren",a),g.ensureFlagExists("addParent",a),g.ensureFlagExists("trim",a),g.ensureFlagExists("nativeType",a),g.ensureFlagExists("nativeTypeAttributes",a),g.ensureFlagExists("sanitize",a),g.ensureFlagExists("instructionHasAttributes",a),g.ensureFlagExists("captureSpacesBetweenElements",a),g.ensureAlwaysArrayExists(a),g.ensureKeyExists("declaration",a),g.ensureKeyExists("instruction",a),g.ensureKeyExists("attributes",a),g.ensureKeyExists("text",a),g.ensureKeyExists("comment",a),g.ensureKeyExists("cdata",a),g.ensureKeyExists("doctype",a),g.ensureKeyExists("type",a),g.ensureKeyExists("name",a),g.ensureKeyExists("elements",a),g.ensureKeyExists("parent",a),g.checkFnExists("doctype",a),g.checkFnExists("instruction",a),g.checkFnExists("cdata",a),g.checkFnExists("comment",a),g.checkFnExists("text",a),g.checkFnExists("instructionName",a),g.checkFnExists("elementName",a),g.checkFnExists("attributeName",a),g.checkFnExists("attributeValue",a),g.checkFnExists("attributes",a),a})(b),C.opt={strictEntities:!0},C.onopentag=y,C.ontext=h,C.oncomment=u,C.onclosetag=m,C.onerror=M,C.oncdata=E,C.ondoctype=O,C.onprocessinginstruction=_,C.write(d).close(),x[a.elementsKey]){var D=x[a.elementsKey];delete x[a.elementsKey],x[a.elementsKey]=D,delete x.text}return x}},1388:(z,P,r)=>{var a=r(4740),i=r(1229);z.exports=function(l,g){var I,p,S;return I=(function(N){var _=a.copyOptions(N);return a.ensureSpacesExists(_),_})(g),p=i(l,I),S="compact"in I&&I.compact?"_parent":"parent",("addParent"in I&&I.addParent?JSON.stringify(p,(function(N,_){return N===S?"_":_}),I.spaces):JSON.stringify(p,null,I.spaces)).replace(/\u2028/g,"\\u2028").replace(/\u2029/g,"\\u2029")}},255:z=>{var P={"&":"&",'"':""","'":"'","<":"<",">":">"};z.exports=function(r){return r&&r.replace?r.replace(/([&"<>'])/g,(function(a,i){return P[i]})):r}},3479:(z,P,r)=>{var a=r(4155),i=r(255),l=r(2830).Stream;function g(p,S,N){N=N||0;var _,y,h=(_=S,new Array(N||0).join(_||"")),u=p;if(typeof p=="object"&&(u=p[y=Object.keys(p)[0]])&&u._elem)return u._elem.name=y,u._elem.icount=N,u._elem.indent=S,u._elem.indents=h,u._elem.interrupt=u,u._elem;var m,E=[],O=[];function M(d){Object.keys(d).forEach((function(b){E.push((function(C,x){return C+'="'+i(x)+'"'})(b,d[b]))}))}switch(typeof u){case"object":if(u===null)break;u._attr&&M(u._attr),u._cdata&&O.push(("<![CDATA["+u._cdata).replace(/\]\]>/g,"]]]]><![CDATA[>")+"]]>"),u.forEach&&(m=!1,O.push(""),u.forEach((function(d){typeof d=="object"?Object.keys(d)[0]=="_attr"?M(d._attr):O.push(g(d,S,N+1)):(O.pop(),m=!0,O.push(i(d)))})),m||O.push(""));break;default:O.push(i(u))}return{name:y,interrupt:!1,attributes:E,content:O,icount:N,indents:h,indent:S}}function I(p,S,N){if(typeof S!="object")return p(!1,S);var _=S.interrupt?1:S.content.length;function y(){for(;S.content.length;){var u=S.content.shift();if(u!==void 0){if(h(u))return;I(p,u)}}p(!1,(_>1?S.indents:"")+(S.name?"</"+S.name+">":"")+(S.indent&&!N?`
|
|
13
|
+
`:"")),N&&N()}function h(u){return!!u.interrupt&&(u.interrupt.append=p,u.interrupt.end=y,u.interrupt=!1,p(!0),!0)}if(p(!1,S.indents+(S.name?"<"+S.name:"")+(S.attributes.length?" "+S.attributes.join(" "):"")+(_?S.name?">":"":S.name?"/>":"")+(S.indent&&_>1?`
|
|
14
|
+
`:"")),!_)return p(!1,S.indent?`
|
|
15
|
+
`:"");h(S)||y()}z.exports=function(p,S){typeof S!="object"&&(S={indent:S});var N,_,y=S.stream?new l:null,h="",u=!1,m=S.indent?S.indent===!0?" ":S.indent:"",E=!0;function O(C){E?a.nextTick(C):C()}function M(C,x){if(x!==void 0&&(h+=x),C&&!u&&(y=y||new l,u=!0),C&&u){var D=h;O((function(){y.emit("data",D)})),h=""}}function d(C,x){I(M,g(C,m,m?1:0),x)}function b(){if(y){var C=h;O((function(){y.emit("data",C),y.emit("end"),y.readable=!1,y.emit("close")}))}}return O((function(){E=!1})),S.declaration&&(_={version:"1.0",encoding:(N=S.declaration).encoding||"UTF-8"},N.standalone&&(_.standalone=N.standalone),d({"?xml":{_attr:_}}),h=h.replace("/>","?>")),p&&p.forEach?p.forEach((function(C,x){var D;x+1===p.length&&(D=b),d(C,D)})):d(p,b),y?(y.readable=!0,y):h},z.exports.element=z.exports.Element=function(){var p=Array.prototype.slice.call(arguments),S={_elem:g(p),push:function(N){if(!this.append)throw new Error("not assigned to a parent!");var _=this,y=this._elem.indent;I(this.append,g(N,y,this._elem.icount+(y?1:0)),(function(){_.append(!0)}))},close:function(N){N!==void 0&&this.push(N),this.end&&this.end()}};return S}}},mt={};function ct(z){var P=mt[z];if(P!==void 0)return P.exports;var r=mt[z]={exports:{}};return ot[z].call(r.exports,r,r.exports,ct),r.exports}ct.d=(z,P)=>{for(var r in P)ct.o(P,r)&&!ct.o(z,r)&&Object.defineProperty(z,r,{enumerable:!0,get:P[r]})},ct.g=(function(){if(typeof globalThis=="object")return globalThis;try{return this||new Function("return this")()}catch{if(typeof window=="object")return window}})(),ct.o=(z,P)=>Object.prototype.hasOwnProperty.call(z,P),ct.r=z=>{typeof Symbol<"u"&&Symbol.toStringTag&&Object.defineProperty(z,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(z,"__esModule",{value:!0})};var xt={};return(()=>{ct.r(xt),ct.d(xt,{AbstractNumbering:()=>dr,Alignment:()=>A,AlignmentAttributes:()=>c,AlignmentType:()=>h,Attributes:()=>l,BaseEmphasisMark:()=>ft,BaseXmlComponent:()=>z,Body:()=>wn,Bookmark:()=>$r,BookmarkEnd:()=>qr,BookmarkStart:()=>Xr,Border:()=>q,BorderElement:()=>U,BorderStyle:()=>u,Column:()=>Uo,ColumnAttributes:()=>yn,ColumnBreak:()=>Ao,Columns:()=>Qr,ColumnsAttributes:()=>Jr,Comment:()=>Mr,CommentRangeEnd:()=>_o,CommentRangeStart:()=>vo,CommentReference:()=>Eo,Comments:()=>Ur,ConcreteHyperlink:()=>Ge,ConcreteNumbering:()=>fr,DeletedTextRun:()=>Za,DocGridAttributes:()=>tn,Document:()=>os,DocumentAttributes:()=>Qt,DocumentBackground:()=>xn,DocumentBackgroundAttributes:()=>bn,DocumentDefaults:()=>rs,DocumentGrid:()=>en,DocumentGridType:()=>De,DotEmphasisMark:()=>Ft,Drawing:()=>Fr,DropCapType:()=>$e,EMPTY_OBJECT:()=>P,EmphasisMark:()=>Tt,EmphasisMarkType:()=>C,ExternalHyperlink:()=>Vr,File:()=>os,FootNoteReferenceRunAttributes:()=>is,FootNotes:()=>Xn,Footer:()=>Ka,FooterWrapper:()=>ar,FootnoteReference:()=>as,FootnoteReferenceRun:()=>Ga,FrameAnchorType:()=>Xe,FrameProperties:()=>En,FramePropertiesAttributes:()=>_n,FrameWrap:()=>qe,GridSpan:()=>Mn,Header:()=>ja,HeaderFooterReference:()=>xe,HeaderFooterReferenceType:()=>Wt,HeaderFooterType:()=>ae,HeaderWrapper:()=>ur,HeadingLevel:()=>Ne,HeightRule:()=>ir,HorizontalPosition:()=>Sr,HorizontalPositionAlign:()=>E,HorizontalPositionRelativeFrom:()=>me,HpsMeasureElement:()=>Q,HyperlinkType:()=>ke,IgnoreIfEmptyXmlComponent:()=>a,ImageRun:()=>po,ImportDotx:()=>rc,ImportedRootElementAttributes:()=>N,ImportedXmlComponent:()=>S,Indent:()=>V,InitializableXmlComponent:()=>y,InsertedTextRun:()=>Va,InternalHyperlink:()=>ko,LeaderType:()=>Ce,Level:()=>qn,LevelBase:()=>pr,LevelForOverride:()=>ca,LevelFormat:()=>Ut,LevelOverride:()=>Zn,LevelSuffix:()=>hr,LineNumberAttributes:()=>rn,LineNumberRestartFormat:()=>Pe,LineNumberType:()=>nn,LineRuleType:()=>Jt,Math:()=>Ko,MathAccentCharacter:()=>Sn,MathAngledBrackets:()=>yi,MathBase:()=>Mt,MathCurlyBrackets:()=>wi,MathDegree:()=>kn,MathDenominator:()=>Tn,MathFraction:()=>$o,MathFunction:()=>li,MathFunctionName:()=>Dn,MathFunctionProperties:()=>Pn,MathIntegral:()=>ei,MathLimitLocation:()=>In,MathNAryProperties:()=>Ze,MathNumerator:()=>An,MathPreSubSuperScript:()=>oi,MathPreSubSuperScriptProperties:()=>On,MathRadical:()=>ui,MathRadicalProperties:()=>Ln,MathRoundBrackets:()=>mi,MathRun:()=>Vo,MathSquareBrackets:()=>gi,MathSubScript:()=>ni,MathSubScriptElement:()=>te,MathSubScriptProperties:()=>Nn,MathSubSuperScript:()=>si,MathSubSuperScriptProperties:()=>Cn,MathSum:()=>ti,MathSuperScript:()=>ri,MathSuperScriptElement:()=>ee,MathSuperScriptProperties:()=>Rn,Media:()=>lr,NumberFormat:()=>M,NumberProperties:()=>Ke,NumberValueElement:()=>lt,Numbering:()=>Yn,OnOffElement:()=>B,OutlineLevel:()=>Zr,OverlapType:()=>sr,Packer:()=>us,PageBorderDisplay:()=>Fe,PageBorderOffsetFrom:()=>Be,PageBorderZOrder:()=>Me,PageBorders:()=>on,PageBreak:()=>To,PageBreakBefore:()=>zr,PageMargin:()=>cn,PageMarginAttributes:()=>an,PageNumber:()=>D,PageNumberSeparator:()=>Ue,PageNumberType:()=>ln,PageNumberTypeAttributes:()=>un,PageOrientation:()=>ce,PageReference:()=>Fo,PageSize:()=>pn,PageSizeAttributes:()=>hn,PageTextDirection:()=>dn,PageTextDirectionType:()=>He,Paragraph:()=>jt,ParagraphProperties:()=>qt,ParagraphPropertiesDefaults:()=>ts,PrettifyType:()=>gr,RelativeHorizontalPosition:()=>rr,RelativeVerticalPosition:()=>nr,Run:()=>Bt,RunFonts:()=>Z,RunProperties:()=>Et,RunPropertiesChange:()=>Rt,RunPropertiesDefaults:()=>es,SectionProperties:()=>gn,SectionType:()=>ze,SectionTypeAttributes:()=>fn,SequentialIdentifier:()=>mo,Shading:()=>it,ShadingType:()=>b,SimpleField:()=>Br,SimpleMailMergeField:()=>yo,SimplePos:()=>Er,SpaceType:()=>d,Spacing:()=>Wr,StringContainer:()=>at,StringEnumValueElement:()=>rt,StringValueElement:()=>G,Style:()=>ue,StyleForCharacter:()=>de,StyleForParagraph:()=>pe,StyleLevel:()=>Wa,Styles:()=>Ae,SymbolRun:()=>_s,TDirection:()=>Un,Tab:()=>go,TabAttributes:()=>Kr,TabStop:()=>jr,TabStopItem:()=>Gr,TabStopPosition:()=>Oe,TabStopType:()=>ie,Table:()=>Ri,TableAnchorType:()=>er,TableBorders:()=>tr,TableCell:()=>Qe,TableCellBorders:()=>Bn,TableFloatOptionsAttributes:()=>Hn,TableFloatProperties:()=>zn,TableLayout:()=>Wn,TableLayoutType:()=>or,TableOfContents:()=>za,TableProperties:()=>jn,TableRow:()=>Ni,TableRowHeight:()=>Gn,TableRowHeightAttributes:()=>Kn,TableRowProperties:()=>Vn,TableWidthElement:()=>Vt,TextDirection:()=>Ye,TextRun:()=>Yt,TextWrappingSide:()=>we,TextWrappingType:()=>Xt,ThematicBreak:()=>F,Type:()=>mn,Underline:()=>It,UnderlineType:()=>x,VerticalAlign:()=>Le,VerticalAlignAttributes:()=>Yr,VerticalAlignElement:()=>Ve,VerticalMerge:()=>Je,VerticalMergeType:()=>he,VerticalPosition:()=>Ir,VerticalPositionAlign:()=>O,VerticalPositionRelativeFrom:()=>ge,WORKAROUND:()=>Ba,WORKAROUND2:()=>ea,WORKAROUND3:()=>_,WORKAROUND4:()=>ii,WidthType:()=>re,WrapNone:()=>We,WrapSquare:()=>Nr,WrapTight:()=>Cr,WrapTopAndBottom:()=>Or,XmlAttributeComponent:()=>i,XmlComponent:()=>r,convertInchesToTwip:()=>Ct.convertInchesToTwip,convertMillimetersToTwip:()=>Ct.convertMillimetersToTwip,convertToXmlComponent:()=>I,dateTimeValue:()=>Ct.dateTimeValue,decimalNumber:()=>Ct.decimalNumber,eighthPointMeasureValue:()=>Ct.eighthPointMeasureValue,hexColorValue:()=>Ct.hexColorValue,hpsMeasureValue:()=>Ct.hpsMeasureValue,longHexNumber:()=>Ct.longHexNumber,measurementOrPercentValue:()=>Ct.measurementOrPercentValue,percentageValue:()=>Ct.percentageValue,pointMeasureValue:()=>Ct.pointMeasureValue,positiveUniversalMeasureValue:()=>Ct.positiveUniversalMeasureValue,sectionMarginDefaults:()=>Gt,sectionPageSizeDefaults:()=>ve,shortHexNumber:()=>Ct.shortHexNumber,signedHpsMeasureValue:()=>Ct.signedHpsMeasureValue,signedTwipsMeasureValue:()=>Ct.signedTwipsMeasureValue,twipsMeasureValue:()=>Ct.twipsMeasureValue,uCharHexNumber:()=>Ct.uCharHexNumber,uniqueId:()=>Ct.uniqueId,uniqueNumericId:()=>Ct.uniqueNumericId,universalMeasureValue:()=>Ct.universalMeasureValue,unsignedDecimalNumber:()=>Ct.unsignedDecimalNumber});class z{constructor(t){this.rootKey=t}}const P=Object.seal({});class r extends z{constructor(t){super(t),this.root=new Array}prepForXml(t){var f;const H=this.root.map((J=>J instanceof z?J.prepForXml(t):J)).filter((J=>J!==void 0));return{[this.rootKey]:H.length?H.length===1&&(!((f=H[0])===null||f===void 0)&&f._attr)?H[0]:H:P}}addChildElement(t){return this.root.push(t),this}}class a extends r{prepForXml(t){const f=super.prepForXml(t);if(f&&(typeof f[this.rootKey]!="object"||Object.keys(f[this.rootKey]).length))return f}}class i extends z{constructor(t){super("_attr"),this.root=t}prepForXml(t){const f={};return Object.keys(this.root).forEach((H=>{const J=this.root[H];if(J!==void 0){const tt=this.xmlKeys&&this.xmlKeys[H]||H;f[tt]=J}})),{_attr:f}}}class l extends i{constructor(){super(...arguments),this.xmlKeys={val:"w:val",color:"w:color",fill:"w:fill",space:"w:space",sz:"w:sz",type:"w:type",rsidR:"w:rsidR",rsidRPr:"w:rsidRPr",rsidSect:"w:rsidSect",w:"w:w",h:"w:h",top:"w:top",right:"w:right",bottom:"w:bottom",left:"w:left",header:"w:header",footer:"w:footer",gutter:"w:gutter",linePitch:"w:linePitch",pos:"w:pos"}}}var g=ct(7888);const I=e=>{switch(e.type){case void 0:case"element":const t=new S(e.name,e.attributes),f=e.elements||[];for(const H of f){const J=I(H);J!==void 0&&t.push(J)}return t;case"text":return e.text;default:return}};class p extends i{}class S extends r{static fromXmlString(t){const f=(0,g.xml2js)(t,{compact:!1});return I(f)}constructor(t,f){super(t),f&&this.root.push(new p(f))}push(t){this.root.push(t)}}class N extends r{constructor(t){super(""),this._attr=t}prepForXml(t){return{_attr:this._attr}}}const _="";class y extends r{constructor(t,f){super(t),f&&(this.root=f.root)}}var h,u,m,E,O,M,d,b,C,x,D,n=ct(6595);class B extends r{constructor(t,f=!0){super(t),f!==!0&&this.root.push(new l({val:f}))}}class Q extends r{constructor(t,f){super(t),this.root.push(new l({val:(0,n.KR)(f)}))}}class G extends r{constructor(t,f){super(t),this.root.push(new l({val:f}))}}class lt extends r{constructor(t,f){super(t),this.root.push(new l({val:f}))}}class rt extends r{constructor(t,f){super(t),this.root.push(new l({val:f}))}}class at extends r{constructor(t,f){super(t),this.root.push(f)}}(function(e){e.START="start",e.CENTER="center",e.END="end",e.BOTH="both",e.MEDIUM_KASHIDA="mediumKashida",e.DISTRIBUTE="distribute",e.NUM_TAB="numTab",e.HIGH_KASHIDA="highKashida",e.LOW_KASHIDA="lowKashida",e.THAI_DISTRIBUTE="thaiDistribute",e.LEFT="left",e.RIGHT="right",e.JUSTIFIED="both"})(h||(h={}));class c extends i{constructor(){super(...arguments),this.xmlKeys={val:"w:val"}}}class A extends r{constructor(t){super("w:jc"),this.root.push(new c({val:t}))}}class U extends r{constructor(t,{color:f,size:H,space:J,style:tt}){super(t),this.root.push(new k({style:tt,color:f===void 0?void 0:(0,n.dg)(f),size:H===void 0?void 0:(0,n.LV)(H),space:J===void 0?void 0:(0,n.gg)(J)}))}}class k extends i{constructor(){super(...arguments),this.xmlKeys={style:"w:val",color:"w:color",size:"w:sz",space:"w:space"}}}(function(e){e.SINGLE="single",e.DASH_DOT_STROKED="dashDotStroked",e.DASHED="dashed",e.DASH_SMALL_GAP="dashSmallGap",e.DOT_DASH="dotDash",e.DOT_DOT_DASH="dotDotDash",e.DOTTED="dotted",e.DOUBLE="double",e.DOUBLE_WAVE="doubleWave",e.INSET="inset",e.NIL="nil",e.NONE="none",e.OUTSET="outset",e.THICK="thick",e.THICK_THIN_LARGE_GAP="thickThinLargeGap",e.THICK_THIN_MEDIUM_GAP="thickThinMediumGap",e.THICK_THIN_SMALL_GAP="thickThinSmallGap",e.THIN_THICK_LARGE_GAP="thinThickLargeGap",e.THIN_THICK_MEDIUM_GAP="thinThickMediumGap",e.THIN_THICK_SMALL_GAP="thinThickSmallGap",e.THIN_THICK_THIN_LARGE_GAP="thinThickThinLargeGap",e.THIN_THICK_THIN_MEDIUM_GAP="thinThickThinMediumGap",e.THIN_THICK_THIN_SMALL_GAP="thinThickThinSmallGap",e.THREE_D_EMBOSS="threeDEmboss",e.THREE_D_ENGRAVE="threeDEngrave",e.TRIPLE="triple",e.WAVE="wave"})(u||(u={}));class q extends a{constructor(t){super("w:pBdr"),t.top&&this.root.push(new U("w:top",t.top)),t.bottom&&this.root.push(new U("w:bottom",t.bottom)),t.left&&this.root.push(new U("w:left",t.left)),t.right&&this.root.push(new U("w:right",t.right))}}class F extends r{constructor(){super("w:pBdr");const t=new U("w:bottom",{color:"auto",space:1,style:u.SINGLE,size:6});this.root.push(t)}}class W extends i{constructor(){super(...arguments),this.xmlKeys={start:"w:start",end:"w:end",left:"w:left",right:"w:right",hanging:"w:hanging",firstLine:"w:firstLine"}}}class V extends r{constructor({start:t,end:f,left:H,right:J,hanging:tt,firstLine:ut}){super("w:ind"),this.root.push(new W({start:t===void 0?void 0:(0,n.xb)(t),end:f===void 0?void 0:(0,n.xb)(f),left:H===void 0?void 0:(0,n.xb)(H),right:J===void 0?void 0:(0,n.xb)(J),hanging:tt===void 0?void 0:(0,n.Jd)(tt),firstLine:ut===void 0?void 0:(0,n.Jd)(ut)}))}}class $ extends r{constructor(){super("w:br")}}(function(e){e.BEGIN="begin",e.END="end",e.SEPARATE="separate"})(m||(m={}));class K extends i{constructor(){super(...arguments),this.xmlKeys={type:"w:fldCharType",dirty:"w:dirty"}}}class T extends r{constructor(t){super("w:fldChar"),this.root.push(new K({type:m.BEGIN,dirty:t}))}}class o extends r{constructor(t){super("w:fldChar"),this.root.push(new K({type:m.SEPARATE,dirty:t}))}}class v extends r{constructor(t){super("w:fldChar"),this.root.push(new K({type:m.END,dirty:t}))}}(function(e){e.CENTER="center",e.INSIDE="inside",e.LEFT="left",e.OUTSIDE="outside",e.RIGHT="right"})(E||(E={})),(function(e){e.BOTTOM="bottom",e.CENTER="center",e.INSIDE="inside",e.OUTSIDE="outside",e.TOP="top"})(O||(O={})),(function(e){e.DECIMAL="decimal",e.UPPER_ROMAN="upperRoman",e.LOWER_ROMAN="lowerRoman",e.UPPER_LETTER="upperLetter",e.LOWER_LETTER="lowerLetter",e.ORDINAL="ordinal",e.CARDINAL_TEXT="cardinalText",e.ORDINAL_TEXT="ordinalText",e.HEX="hex",e.CHICAGO="chicago",e.IDEOGRAPH_DIGITAL="ideographDigital",e.JAPANESE_COUNTING="japaneseCounting",e.AIUEO="aiueo",e.IROHA="iroha",e.DECIMAL_FULL_WIDTH="decimalFullWidth",e.DECIMAL_HALF_WIDTH="decimalHalfWidth",e.JAPANESE_LEGAL="japaneseLegal",e.JAPANESE_DIGITAL_TEN_THOUSAND="japaneseDigitalTenThousand",e.DECIMAL_ENCLOSED_CIRCLE="decimalEnclosedCircle",e.DECIMAL_FULL_WIDTH_2="decimalFullWidth2",e.AIUEO_FULL_WIDTH="aiueoFullWidth",e.IROHA_FULL_WIDTH="irohaFullWidth",e.DECIMAL_ZERO="decimalZero",e.BULLET="bullet",e.GANADA="ganada",e.CHOSUNG="chosung",e.DECIMAL_ENCLOSED_FULL_STOP="decimalEnclosedFullstop",e.DECIMAL_ENCLOSED_PAREN="decimalEnclosedParen",e.DECIMAL_ENCLOSED_CIRCLE_CHINESE="decimalEnclosedCircleChinese",e.IDEOGRAPH_ENCLOSED_CIRCLE="ideographEnclosedCircle",e.IDEOGRAPH_TRADITIONAL="ideographTraditional",e.IDEOGRAPH_ZODIAC="ideographZodiac",e.IDEOGRAPH_ZODIAC_TRADITIONAL="ideographZodiacTraditional",e.TAIWANESE_COUNTING="taiwaneseCounting",e.IDEOGRAPH_LEGAL_TRADITIONAL="ideographLegalTraditional",e.TAIWANESE_COUNTING_THOUSAND="taiwaneseCountingThousand",e.TAIWANESE_DIGITAL="taiwaneseDigital",e.CHINESE_COUNTING="chineseCounting",e.CHINESE_LEGAL_SIMPLIFIED="chineseLegalSimplified",e.CHINESE_COUNTING_TEN_THOUSAND="chineseCountingThousand",e.KOREAN_DIGITAL="koreanDigital",e.KOREAN_COUNTING="koreanCounting",e.KOREAN_LEGAL="koreanLegal",e.KOREAN_DIGITAL_2="koreanDigital2",e.VIETNAMESE_COUNTING="vietnameseCounting",e.RUSSIAN_LOWER="russianLower",e.RUSSIAN_UPPER="russianUpper",e.NONE="none",e.NUMBER_IN_DASH="numberInDash",e.HEBREW_1="hebrew1",e.HEBREW_2="hebrew2",e.ARABIC_ALPHA="arabicAlpha",e.ARABIC_ABJAD="arabicAbjad",e.HINDI_VOWELS="hindiVowels",e.HINDI_CONSONANTS="hindiConsonants",e.HINDI_NUMBERS="hindiNumbers",e.HINDI_COUNTING="hindiCounting",e.THAI_LETTERS="thaiLetters",e.THAI_NUMBERS="thaiNumbers",e.THAI_COUNTING="thaiCounting",e.BAHT_TEXT="bahtText",e.DOLLAR_TEXT="dollarText"})(M||(M={})),(function(e){e.DEFAULT="default",e.PRESERVE="preserve"})(d||(d={}));class L extends i{constructor(){super(...arguments),this.xmlKeys={space:"xml:space"}}}class Y extends r{constructor(){super("w:instrText"),this.root.push(new L({space:d.PRESERVE})),this.root.push("PAGE")}}class st extends r{constructor(){super("w:instrText"),this.root.push(new L({space:d.PRESERVE})),this.root.push("NUMPAGES")}}class ht extends r{constructor(){super("w:instrText"),this.root.push(new L({space:d.PRESERVE})),this.root.push("SECTIONPAGES")}}class nt extends i{constructor(){super(...arguments),this.xmlKeys={fill:"w:fill",color:"w:color",type:"w:val"}}}class it extends r{constructor({fill:t,color:f,type:H}){super("w:shd"),this.root.push(new nt({fill:t===void 0?void 0:(0,n.dg)(t),color:f===void 0?void 0:(0,n.dg)(f),type:H}))}}(function(e){e.CLEAR="clear",e.DIAGONAL_CROSS="diagCross",e.DIAGONAL_STRIPE="diagStripe",e.HORIZONTAL_CROSS="horzCross",e.HORIZONTAL_STRIPE="horzStripe",e.NIL="nil",e.PERCENT_5="pct5",e.PERCENT_10="pct10",e.PERCENT_12="pct12",e.PERCENT_15="pct15",e.PERCENT_20="pct20",e.PERCENT_25="pct25",e.PERCENT_30="pct30",e.PERCENT_35="pct35",e.PERCENT_37="pct37",e.PERCENT_40="pct40",e.PERCENT_45="pct45",e.PERCENT_50="pct50",e.PERCENT_55="pct55",e.PERCENT_60="pct60",e.PERCENT_62="pct62",e.PERCENT_65="pct65",e.PERCENT_70="pct70",e.PERCENT_75="pct75",e.PERCENT_80="pct80",e.PERCENT_85="pct85",e.PERCENT_87="pct87",e.PERCENT_90="pct90",e.PERCENT_95="pct95",e.REVERSE_DIAGONAL_STRIPE="reverseDiagStripe",e.SOLID="solid",e.THIN_DIAGONAL_CROSS="thinDiagCross",e.THIN_DIAGONAL_STRIPE="thinDiagStripe",e.THIN_HORIZONTAL_CROSS="thinHorzCross",e.THIN_REVERSE_DIAGONAL_STRIPE="thinReverseDiagStripe",e.THIN_VERTICAL_STRIPE="thinVertStripe",e.VERTICAL_STRIPE="vertStripe"})(b||(b={}));class wt extends i{constructor(){super(...arguments),this.xmlKeys={id:"w:id",author:"w:author",date:"w:date"}}}(function(e){e.DOT="dot"})(C||(C={}));class ft extends r{constructor(t){super("w:em"),this.root.push(new l({val:t}))}}class Tt extends ft{constructor(t=C.DOT){super(t)}}class Ft extends ft{constructor(){super(C.DOT)}}class s extends r{constructor(t){super("w:spacing"),this.root.push(new l({val:(0,n.xb)(t)}))}}class w extends r{constructor(t){super("w:color"),this.root.push(new l({val:(0,n.dg)(t)}))}}class R extends r{constructor(t){super("w:highlight"),this.root.push(new l({val:t}))}}class j extends r{constructor(t){super("w:highlightCs"),this.root.push(new l({val:t}))}}class X extends i{constructor(){super(...arguments),this.xmlKeys={ascii:"w:ascii",cs:"w:cs",eastAsia:"w:eastAsia",hAnsi:"w:hAnsi",hint:"w:hint"}}}class Z extends r{constructor(t,f){if(super("w:rFonts"),typeof t=="string"){const H=t;this.root.push(new X({ascii:H,cs:H,eastAsia:H,hAnsi:H,hint:f}))}else{const H=t;this.root.push(new X(H))}}}class et extends r{constructor(t){super("w:vertAlign"),this.root.push(new l({val:t}))}}class yt extends et{constructor(){super("superscript")}}class At extends et{constructor(){super("subscript")}}(function(e){e.SINGLE="single",e.WORDS="words",e.DOUBLE="double",e.THICK="thick",e.DOTTED="dotted",e.DOTTEDHEAVY="dottedHeavy",e.DASH="dash",e.DASHEDHEAVY="dashedHeavy",e.DASHLONG="dashLong",e.DASHLONGHEAVY="dashLongHeavy",e.DOTDASH="dotDash",e.DASHDOTHEAVY="dashDotHeavy",e.DOTDOTDASH="dotDotDash",e.DASHDOTDOTHEAVY="dashDotDotHeavy",e.WAVE="wave",e.WAVYHEAVY="wavyHeavy",e.WAVYDOUBLE="wavyDouble",e.NONE="none"})(x||(x={}));class It extends r{constructor(t=x.SINGLE,f){super("w:u"),this.root.push(new l({val:t,color:f===void 0?void 0:(0,n.dg)(f)}))}}class Et extends a{constructor(t){var f,H;if(super("w:rPr"),!t)return;t.bold!==void 0&&this.push(new B("w:b",t.bold)),(t.boldComplexScript===void 0&&t.bold!==void 0||t.boldComplexScript)&&this.push(new B("w:bCs",(f=t.boldComplexScript)!==null&&f!==void 0?f:t.bold)),t.italics!==void 0&&this.push(new B("w:i",t.italics)),(t.italicsComplexScript===void 0&&t.italics!==void 0||t.italicsComplexScript)&&this.push(new B("w:iCs",(H=t.italicsComplexScript)!==null&&H!==void 0?H:t.italics)),t.underline&&this.push(new It(t.underline.type,t.underline.color)),t.emphasisMark&&this.push(new Tt(t.emphasisMark.type)),t.color&&this.push(new w(t.color)),t.size!==void 0&&this.push(new Q("w:sz",t.size));const J=t.sizeComplexScript===void 0||t.sizeComplexScript===!0?t.size:t.sizeComplexScript;J&&this.push(new Q("w:szCs",J)),t.rightToLeft!==void 0&&this.push(new B("w:rtl",t.rightToLeft)),t.smallCaps!==void 0?this.push(new B("w:smallCaps",t.smallCaps)):t.allCaps!==void 0&&this.push(new B("w:caps",t.allCaps)),t.strike!==void 0&&this.push(new B("w:strike",t.strike)),t.doubleStrike!==void 0&&this.push(new B("w:dstrike",t.doubleStrike)),t.subScript&&this.push(new At),t.superScript&&this.push(new yt),t.style&&this.push(new G("w:rStyle",t.style)),t.font&&(typeof t.font=="string"?this.push(new Z(t.font)):"name"in t.font?this.push(new Z(t.font.name,t.font.hint)):this.push(new Z(t.font))),t.highlight&&this.push(new R(t.highlight));const tt=t.highlightComplexScript===void 0||t.highlightComplexScript===!0?t.highlight:t.highlightComplexScript;tt&&this.push(new j(tt)),t.characterSpacing&&this.push(new s(t.characterSpacing)),t.emboss!==void 0&&this.push(new B("w:emboss",t.emboss)),t.imprint!==void 0&&this.push(new B("w:imprint",t.imprint)),t.shading&&this.push(new it(t.shading)),t.revision&&this.push(new Rt(t.revision)),t.border&&this.push(new U("w:bdr",t.border)),t.vanish&&this.push(new B("w:vanish",t.vanish)),t.specVanish&&this.push(new B("w:specVanish",t.vanish)),t.scale!==void 0&&this.push(new lt("w:w",t.scale))}push(t){this.root.push(t)}}class Rt extends r{constructor(t){super("w:rPrChange"),this.root.push(new wt({id:t.id,author:t.author,date:t.date})),this.addChildElement(new Et(t))}}class Re extends r{constructor(t){var f;return super("w:t"),typeof t=="string"?(this.root.push(new L({space:d.PRESERVE})),this.root.push(t),this):(this.root.push(new L({space:(f=t.space)!==null&&f!==void 0?f:d.DEFAULT})),this.root.push(t.text),this)}}(function(e){e.CURRENT="CURRENT",e.TOTAL_PAGES="TOTAL_PAGES",e.TOTAL_PAGES_IN_SECTION="TOTAL_PAGES_IN_SECTION"})(D||(D={}));class Bt extends r{constructor(t){if(super("w:r"),this.properties=new Et(t),this.root.push(this.properties),t.break)for(let f=0;f<t.break;f++)this.root.push(new $);if(t.children)for(const f of t.children)if(typeof f!="string")this.root.push(f);else switch(f){case D.CURRENT:this.root.push(new T),this.root.push(new Y),this.root.push(new o),this.root.push(new v);break;case D.TOTAL_PAGES:this.root.push(new T),this.root.push(new st),this.root.push(new o),this.root.push(new v);break;case D.TOTAL_PAGES_IN_SECTION:this.root.push(new T),this.root.push(new ht),this.root.push(new o),this.root.push(new v);break;default:this.root.push(new Re(f))}else t.text&&this.root.push(new Re(t.text))}}class Yt extends Bt{constructor(t){if(typeof t=="string")return super({}),this.root.push(new Re(t)),this;super(t)}}class vs extends i{constructor(){super(...arguments),this.xmlKeys={char:"w:char",symbolfont:"w:font"}}}class _r extends r{constructor(t="",f="Wingdings"){super("w:sym"),this.root.push(new vs({char:t,symbolfont:f}))}}class _s extends Bt{constructor(t){if(typeof t=="string")return super({}),this.root.push(new _r(t)),this;super(t),this.root.push(new _r(t.char,t.symbolfont))}}var me,ge,Xt,we,ye,Jt,Ne,ie,Ce,Oe,be,ke,Le,Wt,ae,De,Pe,Fe,Be,Me,Ue,ce,He,ze,Ot=ct(5457);(function(e){e.CHARACTER="character",e.COLUMN="column",e.INSIDE_MARGIN="insideMargin",e.LEFT_MARGIN="leftMargin",e.MARGIN="margin",e.OUTSIDE_MARGIN="outsideMargin",e.PAGE="page",e.RIGHT_MARGIN="rightMargin"})(me||(me={})),(function(e){e.BOTTOM_MARGIN="bottomMargin",e.INSIDE_MARGIN="insideMargin",e.LINE="line",e.MARGIN="margin",e.OUTSIDE_MARGIN="outsideMargin",e.PAGE="page",e.PARAGRAPH="paragraph",e.TOP_MARGIN="topMargin"})(ge||(ge={}));class Es extends i{constructor(){super(...arguments),this.xmlKeys={x:"x",y:"y"}}}class Er extends r{constructor(){super("wp:simplePos"),this.root.push(new Es({x:0,y:0}))}}class Tr extends r{constructor(t){super("wp:align"),this.root.push(t)}}class Ar extends r{constructor(t){super("wp:posOffset"),this.root.push(t.toString())}}class Ts extends i{constructor(){super(...arguments),this.xmlKeys={relativeFrom:"relativeFrom"}}}class Sr extends r{constructor(t){if(super("wp:positionH"),this.root.push(new Ts({relativeFrom:t.relative||me.PAGE})),t.align)this.root.push(new Tr(t.align));else{if(t.offset===void 0)throw new Error("There is no configuration provided for floating position (Align or offset)");this.root.push(new Ar(t.offset))}}}class As extends i{constructor(){super(...arguments),this.xmlKeys={relativeFrom:"relativeFrom"}}}class Ir extends r{constructor(t){if(super("wp:positionV"),this.root.push(new As({relativeFrom:t.relative||ge.PAGE})),t.align)this.root.push(new Tr(t.align));else{if(t.offset===void 0)throw new Error("There is no configuration provided for floating position (Align or offset)");this.root.push(new Ar(t.offset))}}}class Ss extends i{constructor(){super(...arguments),this.xmlKeys={uri:"uri"}}}class Is extends i{constructor(){super(...arguments),this.xmlKeys={embed:"r:embed",cstate:"cstate"}}}class Rs extends r{constructor(t){super("a:blip"),this.root.push(new Is({embed:`rId{${t.fileName}}`,cstate:"none"}))}}class Ns extends r{constructor(){super("a:srcRect")}}class Cs extends r{constructor(){super("a:fillRect")}}class Os extends r{constructor(){super("a:stretch"),this.root.push(new Cs)}}class ks extends r{constructor(t){super("pic:blipFill"),this.root.push(new Rs(t)),this.root.push(new Ns),this.root.push(new Os)}}class Ls extends i{constructor(){super(...arguments),this.xmlKeys={noChangeAspect:"noChangeAspect",noChangeArrowheads:"noChangeArrowheads"}}}class Ds extends r{constructor(){super("a:picLocks"),this.root.push(new Ls({noChangeAspect:1,noChangeArrowheads:1}))}}class Ps extends r{constructor(){super("pic:cNvPicPr"),this.root.push(new Ds)}}class Fs extends i{constructor(){super(...arguments),this.xmlKeys={id:"id",name:"name",descr:"descr"}}}class Bs extends r{constructor(){super("pic:cNvPr"),this.root.push(new Fs({id:0,name:"",descr:""}))}}class Ms extends r{constructor(){super("pic:nvPicPr"),this.root.push(new Bs),this.root.push(new Ps)}}class Us extends i{constructor(){super(...arguments),this.xmlKeys={xmlns:"xmlns:pic"}}}class Hs extends i{constructor(){super(...arguments),this.xmlKeys={cx:"cx",cy:"cy"}}}class zs extends r{constructor(t,f){super("a:ext"),this.attributes=new Hs({cx:t,cy:f}),this.root.push(this.attributes)}}class Ws extends i{constructor(){super(...arguments),this.xmlKeys={x:"x",y:"y"}}}class js extends r{constructor(){super("a:off"),this.root.push(new Ws({x:0,y:0}))}}class Ks extends i{constructor(){super(...arguments),this.xmlKeys={flipVertical:"flipV",flipHorizontal:"flipH",rotation:"rot"}}}class Gs extends r{constructor(t){var f,H;super("a:xfrm"),this.root.push(new Ks({flipVertical:(f=t.flip)===null||f===void 0?void 0:f.vertical,flipHorizontal:(H=t.flip)===null||H===void 0?void 0:H.horizontal,rotation:t.rotation})),this.extents=new zs(t.emus.x,t.emus.y),this.root.push(new js),this.root.push(this.extents)}}class Vs extends r{constructor(){super("a:avLst")}}class $s extends i{constructor(){super(...arguments),this.xmlKeys={prst:"prst"}}}class Xs extends r{constructor(){super("a:prstGeom"),this.root.push(new $s({prst:"rect"})),this.root.push(new Vs)}}class qs extends i{constructor(){super(...arguments),this.xmlKeys={bwMode:"bwMode"}}}class Zs extends r{constructor(t){super("pic:spPr"),this.root.push(new qs({bwMode:"auto"})),this.form=new Gs(t),this.root.push(this.form),this.root.push(new Xs)}}class Ys extends r{constructor(t,f){super("pic:pic"),this.root.push(new Us({xmlns:"http://schemas.openxmlformats.org/drawingml/2006/picture"})),this.root.push(new Ms),this.root.push(new ks(t)),this.root.push(new Zs(f))}}class Js extends r{constructor(t,f){super("a:graphicData"),this.root.push(new Ss({uri:"http://schemas.openxmlformats.org/drawingml/2006/picture"})),this.pic=new Ys(t,f),this.root.push(this.pic)}}class Qs extends i{constructor(){super(...arguments),this.xmlKeys={a:"xmlns:a"}}}class Rr extends r{constructor(t,f){super("a:graphic"),this.root.push(new Qs({a:"http://schemas.openxmlformats.org/drawingml/2006/main"})),this.data=new Js(t,f),this.root.push(this.data)}}(function(e){e[e.NONE=0]="NONE",e[e.SQUARE=1]="SQUARE",e[e.TIGHT=2]="TIGHT",e[e.TOP_AND_BOTTOM=3]="TOP_AND_BOTTOM"})(Xt||(Xt={})),(function(e){e.BOTH_SIDES="bothSides",e.LEFT="left",e.RIGHT="right",e.LARGEST="largest"})(we||(we={}));class We extends r{constructor(){super("wp:wrapNone")}}class to extends i{constructor(){super(...arguments),this.xmlKeys={distT:"distT",distB:"distB",distL:"distL",distR:"distR",wrapText:"wrapText"}}}class Nr extends r{constructor(t,f={top:0,bottom:0,left:0,right:0}){super("wp:wrapSquare"),this.root.push(new to({wrapText:t.side||we.BOTH_SIDES,distT:f.top,distB:f.bottom,distL:f.left,distR:f.right}))}}class eo extends i{constructor(){super(...arguments),this.xmlKeys={distT:"distT",distB:"distB"}}}class Cr extends r{constructor(t={top:0,bottom:0}){super("wp:wrapTight"),this.root.push(new eo({distT:t.top,distB:t.bottom}))}}class ro extends i{constructor(){super(...arguments),this.xmlKeys={distT:"distT",distB:"distB"}}}class Or extends r{constructor(t={top:0,bottom:0}){super("wp:wrapTopAndBottom"),this.root.push(new ro({distT:t.top,distB:t.bottom}))}}class no extends i{constructor(){super(...arguments),this.xmlKeys={id:"id",name:"name",description:"descr",title:"title"}}}class kr extends r{constructor({name:t,description:f,title:H}={name:"",description:"",title:""}){super("wp:docPr"),this.root.push(new no({id:(0,Ot.NY)(),name:t,description:f,title:H}))}}class so extends i{constructor(){super(...arguments),this.xmlKeys={b:"b",l:"l",r:"r",t:"t"}}}class Lr extends r{constructor(){super("wp:effectExtent"),this.root.push(new so({b:0,l:0,r:0,t:0}))}}class oo extends i{constructor(){super(...arguments),this.xmlKeys={cx:"cx",cy:"cy"}}}class Dr extends r{constructor(t,f){super("wp:extent"),this.attributes=new oo({cx:t,cy:f}),this.root.push(this.attributes)}}class io extends i{constructor(){super(...arguments),this.xmlKeys={xmlns:"xmlns:a",noChangeAspect:"noChangeAspect"}}}class ao extends r{constructor(){super("a:graphicFrameLocks"),this.root.push(new io({xmlns:"http://schemas.openxmlformats.org/drawingml/2006/main",noChangeAspect:1}))}}class Pr extends r{constructor(){super("wp:cNvGraphicFramePr"),this.root.push(new ao)}}class co extends i{constructor(){super(...arguments),this.xmlKeys={distT:"distT",distB:"distB",distL:"distL",distR:"distR",allowOverlap:"allowOverlap",behindDoc:"behindDoc",layoutInCell:"layoutInCell",locked:"locked",relativeHeight:"relativeHeight",simplePos:"simplePos"}}}class uo extends r{constructor(t,f,H){super("wp:anchor");const J=Object.assign({allowOverlap:!0,behindDocument:!1,lockAnchor:!1,layoutInCell:!0,verticalPosition:{},horizontalPosition:{}},H.floating);if(this.root.push(new co({distT:J.margins&&J.margins.top||0,distB:J.margins&&J.margins.bottom||0,distL:J.margins&&J.margins.left||0,distR:J.margins&&J.margins.right||0,simplePos:"0",allowOverlap:J.allowOverlap===!0?"1":"0",behindDoc:J.behindDocument===!0?"1":"0",locked:J.lockAnchor===!0?"1":"0",layoutInCell:J.layoutInCell===!0?"1":"0",relativeHeight:J.zIndex?J.zIndex:f.emus.y})),this.root.push(new Er),this.root.push(new Sr(J.horizontalPosition)),this.root.push(new Ir(J.verticalPosition)),this.root.push(new Dr(f.emus.x,f.emus.y)),this.root.push(new Lr),H.floating!==void 0&&H.floating.wrap!==void 0)switch(H.floating.wrap.type){case Xt.SQUARE:this.root.push(new Nr(H.floating.wrap,H.floating.margins));break;case Xt.TIGHT:this.root.push(new Cr(H.floating.margins));break;case Xt.TOP_AND_BOTTOM:this.root.push(new Or(H.floating.margins));break;case Xt.NONE:default:this.root.push(new We)}else this.root.push(new We);this.root.push(new kr(H.docProperties)),this.root.push(new Pr),this.root.push(new Rr(t,f))}}class lo extends i{constructor(){super(...arguments),this.xmlKeys={distT:"distT",distB:"distB",distL:"distL",distR:"distR"}}}class ho extends r{constructor({mediaData:t,transform:f,docProperties:H}){super("wp:inline"),this.root.push(new lo({distT:0,distB:0,distL:0,distR:0})),this.extent=new Dr(f.emus.x,f.emus.y),this.graphic=new Rr(t,f),this.root.push(this.extent),this.root.push(new Lr),this.root.push(new kr(H)),this.root.push(new Pr),this.root.push(this.graphic)}}class Fr extends r{constructor(t,f={}){super("w:drawing"),f.floating?this.root.push(new uo(t,t.transformation,f)):(this.inline=new ho({mediaData:t,transform:t.transformation,docProperties:f.docProperties}),this.root.push(this.inline))}}class po extends Bt{constructor(t){super({}),this.key=`${(0,Ot.EL)()}.png`;const f=typeof t.data=="string"?this.convertDataURIToBinary(t.data):t.data;this.imageData={stream:f,fileName:this.key,transformation:{pixels:{x:Math.round(t.transformation.width),y:Math.round(t.transformation.height)},emus:{x:Math.round(9525*t.transformation.width),y:Math.round(9525*t.transformation.height)},flip:t.transformation.flip,rotation:t.transformation.rotation?6e4*t.transformation.rotation:void 0}};const H=new Fr(this.imageData,{floating:t.floating,docProperties:t.altText});this.root.push(H)}prepForXml(t){return t.file.Media.addImage(this.key,this.imageData),super.prepForXml(t)}convertDataURIToBinary(t){if(typeof atob=="function"){const f=";base64,",H=t.indexOf(f),J=H===-1?0:H+f.length;return new Uint8Array(atob(t.substring(J)).split("").map((tt=>tt.charCodeAt(0))))}return new(ct(8764)).Buffer(t,"base64")}}class fo extends r{constructor(t){super("w:instrText"),this.root.push(new L({space:d.PRESERVE})),this.root.push(`SEQ ${t}`)}}class mo extends Bt{constructor(t){super({}),this.root.push(new T(!0)),this.root.push(new fo(t)),this.root.push(new o),this.root.push(new v)}}class go extends r{constructor(){super("w:tab")}}class wo extends i{constructor(){super(...arguments),this.xmlKeys={instr:"w:instr"}}}class Br extends r{constructor(t,f){super("w:fldSimple"),this.root.push(new wo({instr:t})),f!==void 0&&this.root.push(new Yt(f))}}class yo extends Br{constructor(t){super(` MERGEFIELD ${t} `,`«${t}»`)}}class bo extends i{constructor(){super(...arguments),this.xmlKeys={id:"w:id",initials:"w:initials",author:"w:author",date:"w:date"}}}class je extends i{constructor(){super(...arguments),this.xmlKeys={id:"w:id"}}}class xo extends i{constructor(){super(...arguments),this.xmlKeys={"xmlns:cx":"xmlns:cx","xmlns:cx1":"xmlns:cx1","xmlns:cx2":"xmlns:cx2","xmlns:cx3":"xmlns:cx3","xmlns:cx4":"xmlns:cx4","xmlns:cx5":"xmlns:cx5","xmlns:cx6":"xmlns:cx6","xmlns:cx7":"xmlns:cx7","xmlns:cx8":"xmlns:cx8","xmlns:mc":"xmlns:mc","xmlns:aink":"xmlns:aink","xmlns:am3d":"xmlns:am3d","xmlns:o":"xmlns:o","xmlns:r":"xmlns:r","xmlns:m":"xmlns:m","xmlns:v":"xmlns:v","xmlns:wp14":"xmlns:wp14","xmlns:wp":"xmlns:wp","xmlns:w10":"xmlns:w10","xmlns:w":"xmlns:w","xmlns:w14":"xmlns:w14","xmlns:w15":"xmlns:w15","xmlns:w16cex":"xmlns:w16cex","xmlns:w16cid":"xmlns:w16cid","xmlns:w16":"xmlns:w16","xmlns:w16sdtdh":"xmlns:w16sdtdh","xmlns:w16se":"xmlns:w16se","xmlns:wpg":"xmlns:wpg","xmlns:wpi":"xmlns:wpi","xmlns:wne":"xmlns:wne","xmlns:wps":"xmlns:wps"}}}class vo extends r{constructor(t){super("w:commentRangeStart"),this.root.push(new je({id:t}))}}class _o extends r{constructor(t){super("w:commentRangeEnd"),this.root.push(new je({id:t}))}}class Eo extends r{constructor(t){super("w:commentReference"),this.root.push(new je({id:t}))}}class Mr extends r{constructor({id:t,initials:f,author:H,date:J=new Date,text:tt}){super("w:comment"),this.root.push(new bo({id:t,initials:f,author:H,date:J.toISOString()})),this.root.push(new jt({children:[new Yt(tt)]}))}}class Ur extends r{constructor({children:t}){super("w:comments"),this.root.push(new xo({"xmlns:cx":"http://schemas.microsoft.com/office/drawing/2014/chartex","xmlns:cx1":"http://schemas.microsoft.com/office/drawing/2015/9/8/chartex","xmlns:cx2":"http://schemas.microsoft.com/office/drawing/2015/10/21/chartex","xmlns:cx3":"http://schemas.microsoft.com/office/drawing/2016/5/9/chartex","xmlns:cx4":"http://schemas.microsoft.com/office/drawing/2016/5/10/chartex","xmlns:cx5":"http://schemas.microsoft.com/office/drawing/2016/5/11/chartex","xmlns:cx6":"http://schemas.microsoft.com/office/drawing/2016/5/12/chartex","xmlns:cx7":"http://schemas.microsoft.com/office/drawing/2016/5/13/chartex","xmlns:cx8":"http://schemas.microsoft.com/office/drawing/2016/5/14/chartex","xmlns:mc":"http://schemas.openxmlformats.org/markup-compatibility/2006","xmlns:aink":"http://schemas.microsoft.com/office/drawing/2016/ink","xmlns:am3d":"http://schemas.microsoft.com/office/drawing/2017/model3d","xmlns:o":"urn:schemas-microsoft-com:office:office","xmlns:r":"http://schemas.openxmlformats.org/officeDocument/2006/relationships","xmlns:m":"http://schemas.openxmlformats.org/officeDocument/2006/math","xmlns:v":"urn:schemas-microsoft-com:vml","xmlns:wp14":"http://schemas.microsoft.com/office/word/2010/wordprocessingDrawing","xmlns:wp":"http://schemas.openxmlformats.org/drawingml/2006/wordprocessingDrawing","xmlns:w10":"urn:schemas-microsoft-com:office:word","xmlns:w":"http://schemas.openxmlformats.org/wordprocessingml/2006/main","xmlns:w14":"http://schemas.microsoft.com/office/word/2010/wordml","xmlns:w15":"http://schemas.microsoft.com/office/word/2012/wordml","xmlns:w16cex":"http://schemas.microsoft.com/office/word/2018/wordml/cex","xmlns:w16cid":"http://schemas.microsoft.com/office/word/2016/wordml/cid","xmlns:w16":"http://schemas.microsoft.com/office/word/2018/wordml","xmlns:w16sdtdh":"http://schemas.microsoft.com/office/word/2020/wordml/sdtdatahash","xmlns:w16se":"http://schemas.microsoft.com/office/word/2015/wordml/symex","xmlns:wpg":"http://schemas.microsoft.com/office/word/2010/wordprocessingGroup","xmlns:wpi":"http://schemas.microsoft.com/office/word/2010/wordprocessingInk","xmlns:wne":"http://schemas.microsoft.com/office/word/2006/wordml","xmlns:wps":"http://schemas.microsoft.com/office/word/2010/wordprocessingShape"}));for(const f of t)this.root.push(new Mr(f))}}(function(e){e.COLUMN="column",e.PAGE="page"})(ye||(ye={}));class Hr extends r{constructor(t){super("w:br"),this.root.push(new l({type:t}))}}class To extends Bt{constructor(){super({}),this.root.push(new Hr(ye.PAGE))}}class Ao extends Bt{constructor(){super({}),this.root.push(new Hr(ye.COLUMN))}}class zr extends r{constructor(){super("w:pageBreakBefore")}}(function(e){e.AT_LEAST="atLeast",e.EXACTLY="exactly",e.EXACT="exact",e.AUTO="auto"})(Jt||(Jt={}));class So extends i{constructor(){super(...arguments),this.xmlKeys={after:"w:after",before:"w:before",line:"w:line",lineRule:"w:lineRule"}}}class Wr extends r{constructor(t){super("w:spacing"),this.root.push(new So(t))}}(function(e){e.HEADING_1="Heading1",e.HEADING_2="Heading2",e.HEADING_3="Heading3",e.HEADING_4="Heading4",e.HEADING_5="Heading5",e.HEADING_6="Heading6",e.TITLE="Title"})(Ne||(Ne={}));class ue extends r{constructor(t){super("w:pStyle"),this.root.push(new l({val:t}))}}class jr extends r{constructor(t){super("w:tabs");for(const f of t)this.root.push(new Gr(f))}}(function(e){e.LEFT="left",e.RIGHT="right",e.CENTER="center",e.BAR="bar",e.CLEAR="clear",e.DECIMAL="decimal",e.END="end",e.NUM="num",e.START="start"})(ie||(ie={})),(function(e){e.DOT="dot",e.HYPHEN="hyphen",e.MIDDLE_DOT="middleDot",e.NONE="none",e.UNDERSCORE="underscore"})(Ce||(Ce={})),(function(e){e[e.MAX=9026]="MAX"})(Oe||(Oe={}));class Kr extends i{constructor(){super(...arguments),this.xmlKeys={val:"w:val",pos:"w:pos",leader:"w:leader"}}}class Gr extends r{constructor({type:t,position:f,leader:H}){super("w:tab"),this.root.push(new Kr({val:t,pos:f,leader:H}))}}class Ke extends r{constructor(t,f){super("w:numPr"),this.root.push(new Io(f)),this.root.push(new Ro(t))}}class Io extends r{constructor(t){if(super("w:ilvl"),t>9)throw new Error("Level cannot be greater than 9. Read more here: https://answers.microsoft.com/en-us/msoffice/forum/all/does-word-support-more-than-9-list-levels/d130fdcd-1781-446d-8c84-c6c79124e4d7");this.root.push(new l({val:t}))}}class Ro extends r{constructor(t){super("w:numId"),this.root.push(new l({val:typeof t=="string"?`{${t}}`:t}))}}class No extends i{constructor(){super(...arguments),this.xmlKeys={id:"Id",type:"Type",target:"Target",targetMode:"TargetMode"}}}(function(e){e.EXTERNAL="External"})(be||(be={}));class Co extends r{constructor(t,f,H,J){super("Relationship"),this.root.push(new No({id:t,type:f,target:H,targetMode:J}))}}class Oo extends i{constructor(){super(...arguments),this.xmlKeys={id:"r:id",history:"w:history",anchor:"w:anchor"}}}(function(e){e.INTERNAL="INTERNAL",e.EXTERNAL="EXTERNAL"})(ke||(ke={}));class Ge extends r{constructor(t,f,H){super("w:hyperlink"),this.linkId=f;const J={history:1,anchor:H||void 0,id:H?void 0:`rId${this.linkId}`},tt=new Oo(J);this.root.push(tt),t.forEach((ut=>{this.root.push(ut)}))}}class ko extends Ge{constructor(t){super(t.children,(0,Ot.EL)(),t.anchor)}}class Vr extends r{constructor(t){super("w:externalHyperlink"),this.options=t}}class Lo extends i{constructor(){super(...arguments),this.xmlKeys={id:"w:id",name:"w:name"}}}class Do extends i{constructor(){super(...arguments),this.xmlKeys={id:"w:id"}}}class $r{constructor(t){const f=(0,Ot.NY)();this.start=new Xr(t.id,f),this.children=t.children,this.end=new qr(f)}}class Xr extends r{constructor(t,f){super("w:bookmarkStart");const H=new Lo({name:t,id:f});this.root.push(H)}}class qr extends r{constructor(t){super("w:bookmarkEnd");const f=new Do({id:t});this.root.push(f)}}class Zr extends r{constructor(t){super("w:outlineLvl"),this.level=t,this.root.push(new l({val:t}))}}class Po extends r{constructor(t,f={}){super("w:instrText"),this.root.push(new L({space:d.PRESERVE}));let H=`PAGEREF ${t}`;f.hyperlink&&(H=`${H} \\h`),f.useRelativePosition&&(H=`${H} \\p`),this.root.push(H)}}class Fo extends Bt{constructor(t,f={}){super({children:[new T(!0),new Po(t,f),new v]})}}(function(e){e.BOTTOM="bottom",e.CENTER="center",e.TOP="top"})(Le||(Le={}));class Yr extends i{constructor(){super(...arguments),this.xmlKeys={verticalAlign:"w:val"}}}class Ve extends r{constructor(t){super("w:vAlign"),this.root.push(new Yr({verticalAlign:t}))}}(function(e){e.DEFAULT="default",e.FIRST="first",e.EVEN="even"})(Wt||(Wt={}));class Bo extends i{constructor(){super(...arguments),this.xmlKeys={type:"w:type",id:"r:id"}}}(function(e){e.HEADER="w:headerReference",e.FOOTER="w:footerReference"})(ae||(ae={}));class xe extends r{constructor(t,f){super(t),this.root.push(new Bo({type:f.type||Wt.DEFAULT,id:`rId${f.id}`}))}}class Jr extends i{constructor(){super(...arguments),this.xmlKeys={space:"w:space",count:"w:num",separate:"w:sep",equalWidth:"w:equalWidth"}}}class Qr extends r{constructor({space:t,count:f,separate:H,equalWidth:J,children:tt}){super("w:cols"),this.root.push(new Jr({space:t===void 0?void 0:(0,n.Jd)(t),count:f===void 0?void 0:(0,n.vH)(f),separate:H,equalWidth:J})),!J&&tt&&tt.forEach((ut=>this.addChildElement(ut)))}}(function(e){e.DEFAULT="default",e.LINES="lines",e.LINES_AND_CHARS="linesAndChars",e.SNAP_TO_CHARS="snapToChars"})(De||(De={}));class tn extends i{constructor(){super(...arguments),this.xmlKeys={type:"w:type",linePitch:"w:linePitch",charSpace:"w:charSpace"}}}class en extends r{constructor(t,f,H){super("w:docGrid"),this.root.push(new tn({type:H,linePitch:(0,n.vH)(t),charSpace:f?(0,n.vH)(f):void 0}))}}(function(e){e.NEW_PAGE="newPage",e.NEW_SECTION="newSection",e.CONTINUOUS="continuous"})(Pe||(Pe={}));class rn extends i{constructor(){super(...arguments),this.xmlKeys={countBy:"w:countBy",start:"w:start",restart:"w:restart",distance:"w:distance"}}}class nn extends r{constructor({countBy:t,start:f,restart:H,distance:J}){super("w:lnNumType"),this.root.push(new rn({countBy:t===void 0?void 0:(0,n.vH)(t),start:f===void 0?void 0:(0,n.vH)(f),restart:H,distance:J===void 0?void 0:(0,n.Jd)(J)}))}}(function(e){e.ALL_PAGES="allPages",e.FIRST_PAGE="firstPage",e.NOT_FIRST_PAGE="notFirstPage"})(Fe||(Fe={})),(function(e){e.PAGE="page",e.TEXT="text"})(Be||(Be={})),(function(e){e.BACK="back",e.FRONT="front"})(Me||(Me={}));class sn extends i{constructor(){super(...arguments),this.xmlKeys={display:"w:display",offsetFrom:"w:offsetFrom",zOrder:"w:zOrder"}}}class on extends a{constructor(t){if(super("w:pgBorders"),!t)return this;t.pageBorders?this.root.push(new sn({display:t.pageBorders.display,offsetFrom:t.pageBorders.offsetFrom,zOrder:t.pageBorders.zOrder})):this.root.push(new sn({})),t.pageBorderTop&&this.root.push(new U("w:top",t.pageBorderTop)),t.pageBorderLeft&&this.root.push(new U("w:left",t.pageBorderLeft)),t.pageBorderBottom&&this.root.push(new U("w:bottom",t.pageBorderBottom)),t.pageBorderRight&&this.root.push(new U("w:right",t.pageBorderRight))}}class an extends i{constructor(){super(...arguments),this.xmlKeys={top:"w:top",right:"w:right",bottom:"w:bottom",left:"w:left",header:"w:header",footer:"w:footer",gutter:"w:gutter"}}}class cn extends r{constructor(t,f,H,J,tt,ut,dt){super("w:pgMar"),this.root.push(new an({top:(0,n.xb)(t),right:(0,n.Jd)(f),bottom:(0,n.xb)(H),left:(0,n.Jd)(J),header:(0,n.Jd)(tt),footer:(0,n.Jd)(ut),gutter:(0,n.Jd)(dt)}))}}(function(e){e.HYPHEN="hyphen",e.PERIOD="period",e.COLON="colon",e.EM_DASH="emDash",e.EN_DASH="endash"})(Ue||(Ue={}));class un extends i{constructor(){super(...arguments),this.xmlKeys={start:"w:start",formatType:"w:fmt",separator:"w:chapSep"}}}class ln extends r{constructor({start:t,formatType:f,separator:H}){super("w:pgNumType"),this.root.push(new un({start:t===void 0?void 0:(0,n.vH)(t),formatType:f,separator:H}))}}(function(e){e.PORTRAIT="portrait",e.LANDSCAPE="landscape"})(ce||(ce={}));class hn extends i{constructor(){super(...arguments),this.xmlKeys={width:"w:w",height:"w:h",orientation:"w:orient"}}}class pn extends r{constructor(t,f,H){super("w:pgSz");const J=H===ce.LANDSCAPE,tt=(0,n.Jd)(t),ut=(0,n.Jd)(f);this.root.push(new hn({width:J?ut:tt,height:J?tt:ut,orientation:H}))}}(function(e){e.LEFT_TO_RIGHT_TOP_TO_BOTTOM="lrTb",e.TOP_TO_BOTTOM_RIGHT_TO_LEFT="tbRl"})(He||(He={}));class Mo extends i{constructor(){super(...arguments),this.xmlKeys={val:"w:val"}}}class dn extends r{constructor(t){super("w:textDirection"),this.root.push(new Mo({val:t}))}}(function(e){e.NEXT_PAGE="nextPage",e.NEXT_COLUMN="nextColumn",e.CONTINUOUS="continuous",e.EVEN_PAGE="evenPage",e.ODD_PAGE="oddPage"})(ze||(ze={}));class fn extends i{constructor(){super(...arguments),this.xmlKeys={val:"w:val"}}}class mn extends r{constructor(t){super("w:type"),this.root.push(new fn({val:t}))}}const Gt={TOP:"1in",RIGHT:"1in",BOTTOM:"1in",LEFT:"1in",HEADER:708,FOOTER:708,GUTTER:0},ve={WIDTH:11906,HEIGHT:16838,ORIENTATION:ce.PORTRAIT};class gn extends r{constructor({page:{size:{width:t=ve.WIDTH,height:f=ve.HEIGHT,orientation:H=ve.ORIENTATION}={},margin:{top:J=Gt.TOP,right:tt=Gt.RIGHT,bottom:ut=Gt.BOTTOM,left:dt=Gt.LEFT,header:_t=Gt.HEADER,footer:pt=Gt.FOOTER,gutter:gt=Gt.GUTTER}={},pageNumbers:Lt={},borders:St,textDirection:Dt}={},grid:{linePitch:zt=360,charSpace:Pt,type:Kt}={},headerWrapperGroup:nc={},footerWrapperGroup:sc={},lineNumbers:ls,titlePage:hs,verticalAlign:ps,column:ds,type:fs}={}){super("w:sectPr"),this.addHeaderFooterGroup(ae.HEADER,nc),this.addHeaderFooterGroup(ae.FOOTER,sc),fs&&this.root.push(new mn(fs)),this.root.push(new pn(t,f,H)),this.root.push(new cn(J,tt,ut,dt,_t,pt,gt)),St&&this.root.push(new on(St)),ls&&this.root.push(new nn(ls)),this.root.push(new ln(Lt)),ds&&this.root.push(new Qr(ds)),ps&&this.root.push(new Ve(ps)),hs!==void 0&&this.root.push(new B("w:titlePg",hs)),Dt&&this.root.push(new dn(Dt)),this.root.push(new en(zt,Pt,Kt))}addHeaderFooterGroup(t,f){f.default&&this.root.push(new xe(t,{type:Wt.DEFAULT,id:f.default.View.ReferenceId})),f.first&&this.root.push(new xe(t,{type:Wt.FIRST,id:f.first.View.ReferenceId})),f.even&&this.root.push(new xe(t,{type:Wt.EVEN,id:f.even.View.ReferenceId}))}}class wn extends r{constructor(){super("w:body"),this.sections=[]}addSection(t){const f=this.sections.pop();this.root.push(this.createSectionParagraph(f)),this.sections.push(new gn(t))}prepForXml(t){return this.sections.length===1&&(this.root.splice(0,1),this.root.push(this.sections.pop())),super.prepForXml(t)}push(t){this.root.push(t)}createSectionParagraph(t){const f=new jt({}),H=new qt({});return H.push(t),f.addChildElement(H),f}}class yn extends i{constructor(){super(...arguments),this.xmlKeys={width:"w:w",space:"w:space"}}}class Uo extends r{constructor({width:t,space:f}){super("w:col"),this.root.push(new yn({width:(0,n.Jd)(t),space:f===void 0?void 0:(0,n.Jd)(f)}))}}class Qt extends i{constructor(){super(...arguments),this.xmlKeys={wpc:"xmlns:wpc",mc:"xmlns:mc",o:"xmlns:o",r:"xmlns:r",m:"xmlns:m",v:"xmlns:v",wp14:"xmlns:wp14",wp:"xmlns:wp",w10:"xmlns:w10",w:"xmlns:w",w14:"xmlns:w14",w15:"xmlns:w15",wpg:"xmlns:wpg",wpi:"xmlns:wpi",wne:"xmlns:wne",wps:"xmlns:wps",Ignorable:"mc:Ignorable",cp:"xmlns:cp",dc:"xmlns:dc",dcterms:"xmlns:dcterms",dcmitype:"xmlns:dcmitype",xsi:"xmlns:xsi",type:"xsi:type",cx:"xmlns:cx",cx1:"xmlns:cx1",cx2:"xmlns:cx2",cx3:"xmlns:cx3",cx4:"xmlns:cx4",cx5:"xmlns:cx5",cx6:"xmlns:cx6",cx7:"xmlns:cx7",cx8:"xmlns:cx8",aink:"xmlns:aink",am3d:"xmlns:am3d",w16cex:"xmlns:w16cex",w16cid:"xmlns:w16cid",w16:"xmlns:w16",w16sdtdh:"xmlns:w16sdtdh",w16se:"xmlns:w16se"}}}class bn extends i{constructor(){super(...arguments),this.xmlKeys={color:"w:color",themeColor:"w:themeColor",themeShade:"w:themeShade",themeTint:"w:themeTint"}}}class xn extends r{constructor(t){super("w:background"),this.root.push(new bn({color:t.color===void 0?void 0:(0,n.dg)(t.color),themeColor:t.themeColor,themeShade:t.themeShade===void 0?void 0:(0,n.xD)(t.themeShade),themeTint:t.themeTint===void 0?void 0:(0,n.xD)(t.themeTint)}))}}class Ho extends r{constructor(t){super("w:document"),this.root.push(new Qt({wpc:"http://schemas.microsoft.com/office/word/2010/wordprocessingCanvas",mc:"http://schemas.openxmlformats.org/markup-compatibility/2006",o:"urn:schemas-microsoft-com:office:office",r:"http://schemas.openxmlformats.org/officeDocument/2006/relationships",m:"http://schemas.openxmlformats.org/officeDocument/2006/math",v:"urn:schemas-microsoft-com:vml",wp14:"http://schemas.microsoft.com/office/word/2010/wordprocessingDrawing",wp:"http://schemas.openxmlformats.org/drawingml/2006/wordprocessingDrawing",w10:"urn:schemas-microsoft-com:office:word",w:"http://schemas.openxmlformats.org/wordprocessingml/2006/main",w14:"http://schemas.microsoft.com/office/word/2010/wordml",w15:"http://schemas.microsoft.com/office/word/2012/wordml",wpg:"http://schemas.microsoft.com/office/word/2010/wordprocessingGroup",wpi:"http://schemas.microsoft.com/office/word/2010/wordprocessingInk",wne:"http://schemas.microsoft.com/office/word/2006/wordml",wps:"http://schemas.microsoft.com/office/word/2010/wordprocessingShape",cx:"http://schemas.microsoft.com/office/drawing/2014/chartex",cx1:"http://schemas.microsoft.com/office/drawing/2015/9/8/chartex",cx2:"http://schemas.microsoft.com/office/drawing/2015/10/21/chartex",cx3:"http://schemas.microsoft.com/office/drawing/2016/5/9/chartex",cx4:"http://schemas.microsoft.com/office/drawing/2016/5/10/chartex",cx5:"http://schemas.microsoft.com/office/drawing/2016/5/11/chartex",cx6:"http://schemas.microsoft.com/office/drawing/2016/5/12/chartex",cx7:"http://schemas.microsoft.com/office/drawing/2016/5/13/chartex",cx8:"http://schemas.microsoft.com/office/drawing/2016/5/14/chartex",aink:"http://schemas.microsoft.com/office/drawing/2016/ink",am3d:"http://schemas.microsoft.com/office/drawing/2017/model3d",w16cex:"http://schemas.microsoft.com/office/word/2018/wordml/cex",w16cid:"http://schemas.microsoft.com/office/word/2016/wordml/cid",w16:"http://schemas.microsoft.com/office/word/2018/wordml",w16sdtdh:"http://schemas.microsoft.com/office/word/2020/wordml/sdtdatahash",w16se:"http://schemas.microsoft.com/office/word/2015/wordml/symex",Ignorable:"w14 w15 wp14"})),this.body=new wn,t.background&&this.root.push(new xn(t.background)),this.root.push(this.body)}add(t){return this.body.push(t),this}get Body(){return this.body}}class zo extends i{constructor(){super(...arguments),this.xmlKeys={xmlns:"xmlns"}}}class le extends r{constructor(){super("Relationships"),this.root.push(new zo({xmlns:"http://schemas.openxmlformats.org/package/2006/relationships"}))}addRelationship(t){this.root.push(t)}createRelationship(t,f,H,J){const tt=new Co(`rId${t}`,f,H,J);return this.addRelationship(tt),tt}get RelationshipCount(){return this.root.length-1}}class vn{constructor(t){this.document=new Ho(t),this.relationships=new le}get View(){return this.document}get Relationships(){return this.relationships}}class Wo extends i{constructor(){super(...arguments),this.xmlKeys={val:"w:val"}}}class jo extends r{constructor(){super("w:wordWrap"),this.root.push(new Wo({val:0}))}}var $e,Xe,qe;(function(e){e.NONE="none",e.DROP="drop",e.MARGIN="margin"})($e||($e={})),(function(e){e.MARGIN="margin",e.PAGE="page",e.TEXT="text"})(Xe||(Xe={})),(function(e){e.AROUND="around",e.AUTO="auto",e.NONE="none",e.NOT_BESIDE="notBeside",e.THROUGH="through",e.TIGHT="tight"})(qe||(qe={}));class _n extends i{constructor(){super(...arguments),this.xmlKeys={anchorLock:"w:anchorLock",dropCap:"w:dropCap",width:"w:w",height:"w:h",x:"w:x",y:"w:y",anchorHorizontal:"w:hAnchor",anchorVertical:"w:vAnchor",spaceHorizontal:"w:hSpace",spaceVertical:"w:vSpace",rule:"w:hRule",alignmentX:"w:xAlign",alignmentY:"w:yAlign",lines:"w:lines",wrap:"w:wrap"}}}class En extends r{constructor(t){var f,H;super("w:framePr"),this.root.push(new _n({anchorLock:t.anchorLock,dropCap:t.dropCap,width:t.width,height:t.height,x:t.position?t.position.x:void 0,y:t.position?t.position.y:void 0,anchorHorizontal:t.anchor.horizontal,anchorVertical:t.anchor.vertical,spaceHorizontal:(f=t.space)===null||f===void 0?void 0:f.horizontal,spaceVertical:(H=t.space)===null||H===void 0?void 0:H.vertical,rule:t.rule,alignmentX:t.alignment?t.alignment.x:void 0,alignmentY:t.alignment?t.alignment.y:void 0,lines:t.lines,wrap:t.wrap}))}}class qt extends a{constructor(t){var f,H;if(super("w:pPr"),this.numberingReferences=[],!t)return this;t.heading&&this.push(new ue(t.heading)),t.bullet&&this.push(new ue("ListParagraph")),t.numbering&&(t.style||t.heading||t.numbering.custom||this.push(new ue("ListParagraph"))),t.style&&this.push(new ue(t.style)),t.keepNext!==void 0&&this.push(new B("w:keepNext",t.keepNext)),t.keepLines!==void 0&&this.push(new B("w:keepLines",t.keepLines)),t.pageBreakBefore&&this.push(new zr),t.frame&&this.push(new En(t.frame)),t.widowControl!==void 0&&this.push(new B("w:widowControl",t.widowControl)),t.bullet&&this.push(new Ke(1,t.bullet.level)),t.numbering&&(this.numberingReferences.push({reference:t.numbering.reference,instance:(f=t.numbering.instance)!==null&&f!==void 0?f:0}),this.push(new Ke(`${t.numbering.reference}-${(H=t.numbering.instance)!==null&&H!==void 0?H:0}`,t.numbering.level))),t.border&&this.push(new q(t.border)),t.thematicBreak&&this.push(new F),t.shading&&this.push(new it(t.shading)),t.wordWrap&&this.push(new jo);const J=[...t.rightTabStop?[{type:ie.RIGHT,position:t.rightTabStop}]:[],...t.tabStops?t.tabStops:[],...t.leftTabStop?[{type:ie.LEFT,position:t.leftTabStop}]:[]];J.length>0&&this.push(new jr(J)),t.bidirectional!==void 0&&this.push(new B("w:bidi",t.bidirectional)),t.spacing&&this.push(new Wr(t.spacing)),t.indent&&this.push(new V(t.indent)),t.contextualSpacing!==void 0&&this.push(new B("w:contextualSpacing",t.contextualSpacing)),t.alignment&&this.push(new A(t.alignment)),t.outlineLevel!==void 0&&this.push(new Zr(t.outlineLevel)),t.suppressLineNumbers!==void 0&&this.push(new B("w:suppressLineNumbers",t.suppressLineNumbers))}push(t){this.root.push(t)}prepForXml(t){if(t.viewWrapper instanceof vn)for(const f of this.numberingReferences)t.file.Numbering.createConcreteNumberingInstance(f.reference,f.instance);return super.prepForXml(t)}}class jt extends r{constructor(t){if(super("w:p"),typeof t=="string")return this.properties=new qt({}),this.root.push(this.properties),this.root.push(new Yt(t)),this;if(this.properties=new qt(t),this.root.push(this.properties),t.text&&this.root.push(new Yt(t.text)),t.children)for(const f of t.children)if(f instanceof $r){this.root.push(f.start);for(const H of f.children)this.root.push(H);this.root.push(f.end)}else this.root.push(f)}prepForXml(t){for(const f of this.root)if(f instanceof Vr){const H=this.root.indexOf(f),J=new Ge(f.options.children,(0,Ot.EL)());t.viewWrapper.Relationships.createRelationship(J.linkId,"http://schemas.openxmlformats.org/officeDocument/2006/relationships/hyperlink",f.options.link,be.EXTERNAL),this.root[H]=J}return super.prepForXml(t)}addRunToFront(t){return this.root.splice(1,0,t),this}}class Ko extends r{constructor(t){super("m:oMath");for(const f of t.children)this.root.push(f)}}class Go extends r{constructor(t){super("m:t"),this.root.push(t)}}class Vo extends r{constructor(t){super("m:r"),this.root.push(new Go(t))}}class Tn extends r{constructor(t){super("m:den");for(const f of t)this.root.push(f)}}class An extends r{constructor(t){super("m:num");for(const f of t)this.root.push(f)}}class $o extends r{constructor(t){super("m:f"),this.root.push(new An(t.numerator)),this.root.push(new Tn(t.denominator))}}class Xo extends i{constructor(){super(...arguments),this.xmlKeys={accent:"m:val"}}}class Sn extends r{constructor(t){super("m:chr"),this.root.push(new Xo({accent:t}))}}class Mt extends r{constructor(t){super("m:e");for(const f of t)this.root.push(f)}}class qo extends i{constructor(){super(...arguments),this.xmlKeys={value:"m:val"}}}class In extends r{constructor(){super("m:limLoc"),this.root.push(new qo({value:"undOvr"}))}}class Zo extends i{constructor(){super(...arguments),this.xmlKeys={hide:"m:val"}}}class Yo extends r{constructor(){super("m:subHide"),this.root.push(new Zo({hide:1}))}}class Jo extends i{constructor(){super(...arguments),this.xmlKeys={hide:"m:val"}}}class Qo extends r{constructor(){super("m:supHide"),this.root.push(new Jo({hide:1}))}}class Ze extends r{constructor(t,f,H){super("m:naryPr"),t&&this.root.push(new Sn(t)),this.root.push(new In),f||this.root.push(new Qo),H||this.root.push(new Yo)}}class te extends r{constructor(t){super("m:sub");for(const f of t)this.root.push(f)}}class ee extends r{constructor(t){super("m:sup");for(const f of t)this.root.push(f)}}class ti extends r{constructor(t){super("m:nary"),this.root.push(new Ze("∑",!!t.superScript,!!t.subScript)),t.subScript&&this.root.push(new te(t.subScript)),t.superScript&&this.root.push(new ee(t.superScript)),this.root.push(new Mt(t.children))}}class ei extends r{constructor(t){super("m:nary"),this.root.push(new Ze("",!!t.superScript,!!t.subScript)),t.subScript&&this.root.push(new te(t.subScript)),t.superScript&&this.root.push(new ee(t.superScript)),this.root.push(new Mt(t.children))}}class Rn extends r{constructor(){super("m:sSupPr")}}class ri extends r{constructor(t){super("m:sSup"),this.root.push(new Rn),this.root.push(new Mt(t.children)),this.root.push(new ee(t.superScript))}}class Nn extends r{constructor(){super("m:sSubPr")}}class ni extends r{constructor(t){super("m:sSub"),this.root.push(new Nn),this.root.push(new Mt(t.children)),this.root.push(new te(t.subScript))}}class Cn extends r{constructor(){super("m:sSubSupPr")}}class si extends r{constructor(t){super("m:sSubSup"),this.root.push(new Cn),this.root.push(new Mt(t.children)),this.root.push(new te(t.subScript)),this.root.push(new ee(t.superScript))}}class On extends r{constructor(){super("m:sPrePr")}}class oi extends r{constructor(t){super("m:sPre"),this.root.push(new On),this.root.push(new Mt(t.children)),this.root.push(new te(t.subScript)),this.root.push(new ee(t.superScript))}}const ii="";class kn extends r{constructor(t){if(super("m:deg"),t)for(const f of t)this.root.push(f)}}class ai extends i{constructor(){super(...arguments),this.xmlKeys={hide:"m:val"}}}class ci extends r{constructor(){super("m:degHide"),this.root.push(new ai({hide:1}))}}class Ln extends r{constructor(t){super("m:radPr"),t||this.root.push(new ci)}}class ui extends r{constructor(t){super("m:rad"),this.root.push(new Ln(!!t.degree)),this.root.push(new kn(t.degree)),this.root.push(new Mt(t.children))}}class Dn extends r{constructor(t){super("m:fName");for(const f of t)this.root.push(f)}}class Pn extends r{constructor(){super("m:funcPr")}}class li extends r{constructor(t){super("m:func"),this.root.push(new Pn),this.root.push(new Dn(t.name)),this.root.push(new Mt(t.children))}}class hi extends i{constructor(){super(...arguments),this.xmlKeys={character:"m:val"}}}class pi extends r{constructor(t){super("m:begChr"),this.root.push(new hi({character:t}))}}class di extends i{constructor(){super(...arguments),this.xmlKeys={character:"m:val"}}}class fi extends r{constructor(t){super("m:endChr"),this.root.push(new di({character:t}))}}class _e extends r{constructor(t){super("m:dPr"),t&&(this.root.push(new pi(t.beginningCharacter)),this.root.push(new fi(t.endingCharacter)))}}class mi extends r{constructor(t){super("m:d"),this.root.push(new _e),this.root.push(new Mt(t.children))}}class gi extends r{constructor(t){super("m:d"),this.root.push(new _e({beginningCharacter:"[",endingCharacter:"]"})),this.root.push(new Mt(t.children))}}class wi extends r{constructor(t){super("m:d"),this.root.push(new _e({beginningCharacter:"{",endingCharacter:"}"})),this.root.push(new Mt(t.children))}}class yi extends r{constructor(t){super("m:d"),this.root.push(new _e({beginningCharacter:"〈",endingCharacter:"〉"})),this.root.push(new Mt(t.children))}}class bi extends r{constructor(t){super("w:tblGrid");for(const f of t)this.root.push(new vi(f))}}class xi extends i{constructor(){super(...arguments),this.xmlKeys={w:"w:w"}}}class vi extends r{constructor(t){super("w:gridCol"),t!==void 0&&this.root.push(new xi({w:(0,n.Jd)(t)}))}}var re,Ee,he,Ye;(function(e){e.AUTO="auto",e.DXA="dxa",e.NIL="nil",e.PERCENTAGE="pct"})(re||(re={}));class _i extends i{constructor(){super(...arguments),this.xmlKeys={type:"w:type",size:"w:w"}}}class Vt extends r{constructor(t,{type:f=re.AUTO,size:H}){super(t);let J=H;f===re.PERCENTAGE&&typeof H=="number"&&(J=`${H}%`),this.root.push(new _i({type:f,size:(0,n.aB)(J)}))}}(function(e){e.TABLE="w:tblCellMar",e.TABLE_CELL="w:tcMar"})(Ee||(Ee={}));class Fn extends a{constructor(t,{marginUnitType:f=re.DXA,top:H,left:J,bottom:tt,right:ut}){super(t),H!==void 0&&this.root.push(new Vt("w:top",{type:f,size:H})),J!==void 0&&this.root.push(new Vt("w:left",{type:f,size:J})),tt!==void 0&&this.root.push(new Vt("w:bottom",{type:f,size:tt})),ut!==void 0&&this.root.push(new Vt("w:right",{type:f,size:ut}))}}class Bn extends a{constructor(t){super("w:tcBorders"),t.top&&this.root.push(new U("w:top",t.top)),t.start&&this.root.push(new U("w:start",t.start)),t.left&&this.root.push(new U("w:left",t.left)),t.bottom&&this.root.push(new U("w:bottom",t.bottom)),t.end&&this.root.push(new U("w:end",t.end)),t.right&&this.root.push(new U("w:right",t.right))}}class Ei extends i{constructor(){super(...arguments),this.xmlKeys={val:"w:val"}}}class Mn extends r{constructor(t){super("w:gridSpan"),this.root.push(new Ei({val:(0,n.vH)(t)}))}}(function(e){e.CONTINUE="continue",e.RESTART="restart"})(he||(he={}));class Ti extends i{constructor(){super(...arguments),this.xmlKeys={val:"w:val"}}}class Je extends r{constructor(t){super("w:vMerge"),this.root.push(new Ti({val:t}))}}(function(e){e.BOTTOM_TO_TOP_LEFT_TO_RIGHT="btLr",e.LEFT_TO_RIGHT_TOP_TO_BOTTOM="lrTb",e.TOP_TO_BOTTOM_RIGHT_TO_LEFT="tbRl"})(Ye||(Ye={}));class Ai extends i{constructor(){super(...arguments),this.xmlKeys={val:"w:val"}}}class Un extends r{constructor(t){super("w:textDirection"),this.root.push(new Ai({val:t}))}}class Si extends a{constructor(t){super("w:tcPr"),t.width&&this.root.push(new Vt("w:tcW",t.width)),t.columnSpan&&this.root.push(new Mn(t.columnSpan)),t.verticalMerge?this.root.push(new Je(t.verticalMerge)):t.rowSpan&&t.rowSpan>1&&this.root.push(new Je(he.RESTART)),t.borders&&this.root.push(new Bn(t.borders)),t.shading&&this.root.push(new it(t.shading)),t.margins&&this.root.push(new Fn(Ee.TABLE_CELL,t.margins)),t.textDirection&&this.root.push(new Un(t.textDirection)),t.verticalAlign&&this.root.push(new Ve(t.verticalAlign))}}class Qe extends r{constructor(t){super("w:tc"),this.options=t,this.root.push(new Si(t));for(const f of t.children)this.root.push(f)}prepForXml(t){return this.root[this.root.length-1]instanceof jt||this.root.push(new jt({})),super.prepForXml(t)}}const ne={style:u.NONE,size:0,color:"auto"},se={style:u.SINGLE,size:4,color:"auto"};class tr extends r{constructor(t){super("w:tblBorders"),t.top?this.root.push(new U("w:top",t.top)):this.root.push(new U("w:top",se)),t.left?this.root.push(new U("w:left",t.left)):this.root.push(new U("w:left",se)),t.bottom?this.root.push(new U("w:bottom",t.bottom)):this.root.push(new U("w:bottom",se)),t.right?this.root.push(new U("w:right",t.right)):this.root.push(new U("w:right",se)),t.insideHorizontal?this.root.push(new U("w:insideH",t.insideHorizontal)):this.root.push(new U("w:insideH",se)),t.insideVertical?this.root.push(new U("w:insideV",t.insideVertical)):this.root.push(new U("w:insideV",se))}}tr.NONE={top:ne,bottom:ne,left:ne,right:ne,insideHorizontal:ne,insideVertical:ne};var er,rr,nr,sr,or,ir,Te;(function(e){e.MARGIN="margin",e.PAGE="page",e.TEXT="text"})(er||(er={})),(function(e){e.CENTER="center",e.INSIDE="inside",e.LEFT="left",e.OUTSIDE="outside",e.RIGHT="right"})(rr||(rr={})),(function(e){e.CENTER="center",e.INSIDE="inside",e.BOTTOM="bottom",e.OUTSIDE="outside",e.INLINE="inline",e.TOP="top"})(nr||(nr={})),(function(e){e.NEVER="never",e.OVERLAP="overlap"})(sr||(sr={}));class Hn extends i{constructor(){super(...arguments),this.xmlKeys={horizontalAnchor:"w:horzAnchor",verticalAnchor:"w:vertAnchor",absoluteHorizontalPosition:"w:tblpX",relativeHorizontalPosition:"w:tblpXSpec",absoluteVerticalPosition:"w:tblpY",relativeVerticalPosition:"w:tblpYSpec",bottomFromText:"w:bottomFromText",topFromText:"w:topFromText",leftFromText:"w:leftFromText",rightFromText:"w:rightFromText"}}}class zn extends r{constructor(t){var{leftFromText:f,rightFromText:H,topFromText:J,bottomFromText:tt,absoluteHorizontalPosition:ut,absoluteVerticalPosition:dt}=t,_t=(function(pt,gt){var Lt={};for(var St in pt)Object.prototype.hasOwnProperty.call(pt,St)&>.indexOf(St)<0&&(Lt[St]=pt[St]);if(pt!=null&&typeof Object.getOwnPropertySymbols=="function"){var Dt=0;for(St=Object.getOwnPropertySymbols(pt);Dt<St.length;Dt++)gt.indexOf(St[Dt])<0&&Object.prototype.propertyIsEnumerable.call(pt,St[Dt])&&(Lt[St[Dt]]=pt[St[Dt]])}return Lt})(t,["leftFromText","rightFromText","topFromText","bottomFromText","absoluteHorizontalPosition","absoluteVerticalPosition"]);super("w:tblpPr"),this.root.push(new Hn(Object.assign({leftFromText:f===void 0?void 0:(0,n.Jd)(f),rightFromText:H===void 0?void 0:(0,n.Jd)(H),topFromText:J===void 0?void 0:(0,n.Jd)(J),bottomFromText:tt===void 0?void 0:(0,n.Jd)(tt),absoluteHorizontalPosition:ut===void 0?void 0:(0,n.xb)(ut),absoluteVerticalPosition:dt===void 0?void 0:(0,n.xb)(dt)},_t))),_t.overlap&&this.root.push(new rt("w:tblOverlap",_t.overlap))}}(function(e){e.AUTOFIT="autofit",e.FIXED="fixed"})(or||(or={}));class Ii extends i{constructor(){super(...arguments),this.xmlKeys={type:"w:type"}}}class Wn extends r{constructor(t){super("w:tblLayout"),this.root.push(new Ii({type:t}))}}class jn extends a{constructor(t){super("w:tblPr"),t.style&&this.root.push(new G("w:tblStyle",t.style)),t.float&&this.root.push(new zn(t.float)),t.visuallyRightToLeft!==void 0&&this.root.push(new B("w:bidiVisual",t.visuallyRightToLeft)),t.width&&this.root.push(new Vt("w:tblW",t.width)),t.alignment&&this.root.push(new A(t.alignment)),t.indent&&this.root.push(new Vt("w:tblInd",t.indent)),t.borders&&this.root.push(new tr(t.borders)),t.shading&&this.root.push(new it(t.shading)),t.layout&&this.root.push(new Wn(t.layout)),t.cellMargin&&this.root.push(new Fn(Ee.TABLE,t.cellMargin))}}class Ri extends r{constructor({rows:t,width:f,columnWidths:H=Array(Math.max(...t.map((St=>St.CellCount)))).fill(100),margins:J,indent:tt,float:ut,layout:dt,style:_t,borders:pt,alignment:gt,visuallyRightToLeft:Lt}){super("w:tbl"),this.root.push(new jn({borders:pt??{},width:f??{size:100},indent:tt,float:ut,layout:dt,style:_t,alignment:gt,cellMargin:J,visuallyRightToLeft:Lt})),this.root.push(new bi(H));for(const St of t)this.root.push(St);t.forEach(((St,Dt)=>{if(Dt===t.length-1)return;let zt=0;St.cells.forEach((Pt=>{if(Pt.options.rowSpan&&Pt.options.rowSpan>1){const Kt=new Qe({rowSpan:Pt.options.rowSpan-1,columnSpan:Pt.options.columnSpan,borders:Pt.options.borders,children:[],verticalMerge:he.CONTINUE});t[Dt+1].addCellToColumnIndex(Kt,zt)}zt+=Pt.options.columnSpan||1}))}))}}(function(e){e.AUTO="auto",e.ATLEAST="atLeast",e.EXACT="exact"})(ir||(ir={}));class Kn extends i{constructor(){super(...arguments),this.xmlKeys={value:"w:val",rule:"w:hRule"}}}class Gn extends r{constructor(t,f){super("w:trHeight"),this.root.push(new Kn({value:(0,n.Jd)(t),rule:f}))}}class Vn extends a{constructor(t){super("w:trPr"),t.cantSplit!==void 0&&this.root.push(new B("w:cantSplit",t.cantSplit)),t.tableHeader!==void 0&&this.root.push(new B("w:tblHeader",t.tableHeader)),t.height&&this.root.push(new Gn(t.height.value,t.height.rule))}}class Ni extends r{constructor(t){super("w:tr"),this.options=t,this.root.push(new Vn(t));for(const f of t.children)this.root.push(f)}get CellCount(){return this.options.children.length}get cells(){return this.root.filter((t=>t instanceof Qe))}addCellToIndex(t,f){this.root.splice(f+1,0,t)}addCellToColumnIndex(t,f){const H=this.columnIndexToRootIndex(f,!0);this.addCellToIndex(t,H-1)}rootIndexToColumnIndex(t){if(t<1||t>=this.root.length)throw new Error("cell 'rootIndex' should between 1 to "+(this.root.length-1));let f=0;for(let H=1;H<t;H++)f+=this.root[H].options.columnSpan||1;return f}columnIndexToRootIndex(t,f=!1){if(t<0)throw new Error("cell 'columnIndex' should not less than zero");let H=0,J=1;for(;H<=t;){if(J>=this.root.length){if(f)return this.root.length;throw new Error("cell 'columnIndex' should not great than "+(H-1))}const tt=this.root[J];J+=1,H+=tt&&tt.options.columnSpan||1}return J-1}}class Ci extends i{constructor(){super(...arguments),this.xmlKeys={xmlns:"xmlns",vt:"xmlns:vt"}}}class Oi extends r{constructor(){super("Properties"),this.root.push(new Ci({xmlns:"http://schemas.openxmlformats.org/officeDocument/2006/extended-properties",vt:"http://schemas.openxmlformats.org/officeDocument/2006/docPropsVTypes"}))}}class ki extends i{constructor(){super(...arguments),this.xmlKeys={xmlns:"xmlns"}}}class Li extends i{constructor(){super(...arguments),this.xmlKeys={contentType:"ContentType",extension:"Extension"}}}class Zt extends r{constructor(t,f){super("Default"),this.root.push(new Li({contentType:t,extension:f}))}}class Di extends i{constructor(){super(...arguments),this.xmlKeys={contentType:"ContentType",partName:"PartName"}}}class Ht extends r{constructor(t,f){super("Override"),this.root.push(new Di({contentType:t,partName:f}))}}class Pi extends r{constructor(){super("Types"),this.root.push(new ki({xmlns:"http://schemas.openxmlformats.org/package/2006/content-types"})),this.root.push(new Zt("image/png","png")),this.root.push(new Zt("image/jpeg","jpeg")),this.root.push(new Zt("image/jpeg","jpg")),this.root.push(new Zt("image/bmp","bmp")),this.root.push(new Zt("image/gif","gif")),this.root.push(new Zt("application/vnd.openxmlformats-package.relationships+xml","rels")),this.root.push(new Zt("application/xml","xml")),this.root.push(new Ht("application/vnd.openxmlformats-officedocument.wordprocessingml.document.main+xml","/word/document.xml")),this.root.push(new Ht("application/vnd.openxmlformats-officedocument.wordprocessingml.styles+xml","/word/styles.xml")),this.root.push(new Ht("application/vnd.openxmlformats-package.core-properties+xml","/docProps/core.xml")),this.root.push(new Ht("application/vnd.openxmlformats-officedocument.custom-properties+xml","/docProps/custom.xml")),this.root.push(new Ht("application/vnd.openxmlformats-officedocument.extended-properties+xml","/docProps/app.xml")),this.root.push(new Ht("application/vnd.openxmlformats-officedocument.wordprocessingml.numbering+xml","/word/numbering.xml")),this.root.push(new Ht("application/vnd.openxmlformats-officedocument.wordprocessingml.footnotes+xml","/word/footnotes.xml")),this.root.push(new Ht("application/vnd.openxmlformats-officedocument.wordprocessingml.settings+xml","/word/settings.xml")),this.root.push(new Ht("application/vnd.openxmlformats-officedocument.wordprocessingml.comments+xml","/word/comments.xml"))}addFooter(t){this.root.push(new Ht("application/vnd.openxmlformats-officedocument.wordprocessingml.footer+xml",`/word/footer${t}.xml`))}addHeader(t){this.root.push(new Ht("application/vnd.openxmlformats-officedocument.wordprocessingml.header+xml",`/word/header${t}.xml`))}}class Fi extends r{constructor(t){super("cp:coreProperties"),this.root.push(new Qt({cp:"http://schemas.openxmlformats.org/package/2006/metadata/core-properties",dc:"http://purl.org/dc/elements/1.1/",dcterms:"http://purl.org/dc/terms/",dcmitype:"http://purl.org/dc/dcmitype/",xsi:"http://www.w3.org/2001/XMLSchema-instance"})),t.title&&this.root.push(new at("dc:title",t.title)),t.subject&&this.root.push(new at("dc:subject",t.subject)),t.creator&&this.root.push(new at("dc:creator",t.creator)),t.keywords&&this.root.push(new at("cp:keywords",t.keywords)),t.description&&this.root.push(new at("dc:description",t.description)),t.lastModifiedBy&&this.root.push(new at("cp:lastModifiedBy",t.lastModifiedBy)),t.revision&&this.root.push(new at("cp:revision",String(t.revision))),this.root.push(new $n("dcterms:created")),this.root.push(new $n("dcterms:modified"))}}class $n extends r{constructor(t){super(t),this.root.push(new Qt({type:"dcterms:W3CDTF"})),this.root.push((0,n.sF)(new Date))}}class Bi extends i{constructor(){super(...arguments),this.xmlKeys={xmlns:"xmlns",vt:"xmlns:vt"}}}class Mi extends i{constructor(){super(...arguments),this.xmlKeys={fmtid:"fmtid",pid:"pid",name:"name"}}}class Ui extends r{constructor(t,f){super("property"),this.root.push(new Mi({fmtid:"{D5CDD505-2E9C-101B-9397-08002B2CF9AE}",pid:t.toString(),name:f.name})),this.root.push(new Hi(f.value))}}class Hi extends r{constructor(t){super("vt:lpwstr"),this.root.push(t)}}class zi extends r{constructor(t){super("Properties"),this.properties=[],this.root.push(new Bi({xmlns:"http://schemas.openxmlformats.org/officeDocument/2006/custom-properties",vt:"http://schemas.openxmlformats.org/officeDocument/2006/docPropsVTypes"})),this.nextId=2;for(const f of t)this.addCustomProperty(f)}prepForXml(t){return this.properties.forEach((f=>this.root.push(f))),super.prepForXml(t)}addCustomProperty(t){this.properties.push(new Ui(this.nextId++,t))}}class Wi extends i{constructor(){super(...arguments),this.xmlKeys={wpc:"xmlns:wpc",mc:"xmlns:mc",o:"xmlns:o",r:"xmlns:r",m:"xmlns:m",v:"xmlns:v",wp14:"xmlns:wp14",wp:"xmlns:wp",w10:"xmlns:w10",w:"xmlns:w",w14:"xmlns:w14",w15:"xmlns:w15",wpg:"xmlns:wpg",wpi:"xmlns:wpi",wne:"xmlns:wne",wps:"xmlns:wps",cp:"xmlns:cp",dc:"xmlns:dc",dcterms:"xmlns:dcterms",dcmitype:"xmlns:dcmitype",xsi:"xmlns:xsi",type:"xsi:type"}}}class ji extends y{constructor(t,f){super("w:ftr",f),this.refId=t,f||this.root.push(new Wi({wpc:"http://schemas.microsoft.com/office/word/2010/wordprocessingCanvas",mc:"http://schemas.openxmlformats.org/markup-compatibility/2006",o:"urn:schemas-microsoft-com:office:office",r:"http://schemas.openxmlformats.org/officeDocument/2006/relationships",m:"http://schemas.openxmlformats.org/officeDocument/2006/math",v:"urn:schemas-microsoft-com:vml",wp14:"http://schemas.microsoft.com/office/word/2010/wordprocessingDrawing",wp:"http://schemas.openxmlformats.org/drawingml/2006/wordprocessingDrawing",w10:"urn:schemas-microsoft-com:office:word",w:"http://schemas.openxmlformats.org/wordprocessingml/2006/main",w14:"http://schemas.microsoft.com/office/word/2010/wordml",w15:"http://schemas.microsoft.com/office/word/2012/wordml",wpg:"http://schemas.microsoft.com/office/word/2010/wordprocessingGroup",wpi:"http://schemas.microsoft.com/office/word/2010/wordprocessingInk",wne:"http://schemas.microsoft.com/office/word/2006/wordml",wps:"http://schemas.microsoft.com/office/word/2010/wordprocessingShape"}))}get ReferenceId(){return this.refId}add(t){this.root.push(t)}}class ar{constructor(t,f,H){this.media=t,this.footer=new ji(f,H),this.relationships=new le}add(t){this.footer.add(t)}addChildElement(t){this.footer.addChildElement(t)}get View(){return this.footer}get Relationships(){return this.relationships}get Media(){return this.media}}class Ki extends i{constructor(){super(...arguments),this.xmlKeys={type:"w:type",id:"w:id"}}}class Gi extends r{constructor(){super("w:footnoteRef")}}class Vi extends Bt{constructor(){super({style:"FootnoteReference"}),this.root.push(new Gi)}}(function(e){e.SEPERATOR="separator",e.CONTINUATION_SEPERATOR="continuationSeparator"})(Te||(Te={}));class cr extends r{constructor(t){super("w:footnote"),this.root.push(new Ki({type:t.type,id:t.id}));for(let f=0;f<t.children.length;f++){const H=t.children[f];f===0&&H.addRunToFront(new Vi),this.root.push(H)}}}class $i extends r{constructor(){super("w:continuationSeparator")}}class Xi extends Bt{constructor(){super({}),this.root.push(new $i)}}class qi extends r{constructor(){super("w:separator")}}class Zi extends Bt{constructor(){super({}),this.root.push(new qi)}}class Yi extends i{constructor(){super(...arguments),this.xmlKeys={wpc:"xmlns:wpc",mc:"xmlns:mc",o:"xmlns:o",r:"xmlns:r",m:"xmlns:m",v:"xmlns:v",wp14:"xmlns:wp14",wp:"xmlns:wp",w10:"xmlns:w10",w:"xmlns:w",w14:"xmlns:w14",w15:"xmlns:w15",wpg:"xmlns:wpg",wpi:"xmlns:wpi",wne:"xmlns:wne",wps:"xmlns:wps",Ignorable:"mc:Ignorable"}}}class Xn extends r{constructor(){super("w:footnotes"),this.root.push(new Yi({wpc:"http://schemas.microsoft.com/office/word/2010/wordprocessingCanvas",mc:"http://schemas.openxmlformats.org/markup-compatibility/2006",o:"urn:schemas-microsoft-com:office:office",r:"http://schemas.openxmlformats.org/officeDocument/2006/relationships",m:"http://schemas.openxmlformats.org/officeDocument/2006/math",v:"urn:schemas-microsoft-com:vml",wp14:"http://schemas.microsoft.com/office/word/2010/wordprocessingDrawing",wp:"http://schemas.openxmlformats.org/drawingml/2006/wordprocessingDrawing",w10:"urn:schemas-microsoft-com:office:word",w:"http://schemas.openxmlformats.org/wordprocessingml/2006/main",w14:"http://schemas.microsoft.com/office/word/2010/wordml",w15:"http://schemas.microsoft.com/office/word/2012/wordml",wpg:"http://schemas.microsoft.com/office/word/2010/wordprocessingGroup",wpi:"http://schemas.microsoft.com/office/word/2010/wordprocessingInk",wne:"http://schemas.microsoft.com/office/word/2006/wordml",wps:"http://schemas.microsoft.com/office/word/2010/wordprocessingShape",Ignorable:"w14 w15 wp14"}));const t=new cr({id:-1,type:Te.SEPERATOR,children:[new jt({spacing:{after:0,line:240,lineRule:Jt.AUTO},children:[new Zi]})]});this.root.push(t);const f=new cr({id:0,type:Te.CONTINUATION_SEPERATOR,children:[new jt({spacing:{after:0,line:240,lineRule:Jt.AUTO},children:[new Xi]})]});this.root.push(f)}createFootNote(t,f){const H=new cr({id:t,children:f});this.root.push(H)}}class Ji{constructor(){this.footnotess=new Xn,this.relationships=new le}get View(){return this.footnotess}get Relationships(){return this.relationships}}class Qi extends i{constructor(){super(...arguments),this.xmlKeys={wpc:"xmlns:wpc",mc:"xmlns:mc",o:"xmlns:o",r:"xmlns:r",m:"xmlns:m",v:"xmlns:v",wp14:"xmlns:wp14",wp:"xmlns:wp",w10:"xmlns:w10",w:"xmlns:w",w14:"xmlns:w14",w15:"xmlns:w15",wpg:"xmlns:wpg",wpi:"xmlns:wpi",wne:"xmlns:wne",wps:"xmlns:wps",cp:"xmlns:cp",dc:"xmlns:dc",dcterms:"xmlns:dcterms",dcmitype:"xmlns:dcmitype",xsi:"xmlns:xsi",type:"xsi:type",cx:"xmlns:cx",cx1:"xmlns:cx1",cx2:"xmlns:cx2",cx3:"xmlns:cx3",cx4:"xmlns:cx4",cx5:"xmlns:cx5",cx6:"xmlns:cx6",cx7:"xmlns:cx7",cx8:"xmlns:cx8",w16cid:"xmlns:w16cid",w16se:"xmlns:w16se"}}}class ta extends y{constructor(t,f){super("w:hdr",f),this.refId=t,f||this.root.push(new Qi({wpc:"http://schemas.microsoft.com/office/word/2010/wordprocessingCanvas",mc:"http://schemas.openxmlformats.org/markup-compatibility/2006",o:"urn:schemas-microsoft-com:office:office",r:"http://schemas.openxmlformats.org/officeDocument/2006/relationships",m:"http://schemas.openxmlformats.org/officeDocument/2006/math",v:"urn:schemas-microsoft-com:vml",wp14:"http://schemas.microsoft.com/office/word/2010/wordprocessingDrawing",wp:"http://schemas.openxmlformats.org/drawingml/2006/wordprocessingDrawing",w10:"urn:schemas-microsoft-com:office:word",w:"http://schemas.openxmlformats.org/wordprocessingml/2006/main",w14:"http://schemas.microsoft.com/office/word/2010/wordml",w15:"http://schemas.microsoft.com/office/word/2012/wordml",wpg:"http://schemas.microsoft.com/office/word/2010/wordprocessingGroup",wpi:"http://schemas.microsoft.com/office/word/2010/wordprocessingInk",wne:"http://schemas.microsoft.com/office/word/2006/wordml",wps:"http://schemas.microsoft.com/office/word/2010/wordprocessingShape",cx:"http://schemas.microsoft.com/office/drawing/2014/chartex",cx1:"http://schemas.microsoft.com/office/drawing/2015/9/8/chartex",cx2:"http://schemas.microsoft.com/office/drawing/2015/10/21/chartex",cx3:"http://schemas.microsoft.com/office/drawing/2016/5/9/chartex",cx4:"http://schemas.microsoft.com/office/drawing/2016/5/10/chartex",cx5:"http://schemas.microsoft.com/office/drawing/2016/5/11/chartex",cx6:"http://schemas.microsoft.com/office/drawing/2016/5/12/chartex",cx7:"http://schemas.microsoft.com/office/drawing/2016/5/13/chartex",cx8:"http://schemas.microsoft.com/office/drawing/2016/5/14/chartex",w16cid:"http://schemas.microsoft.com/office/word/2016/wordml/cid",w16se:"http://schemas.microsoft.com/office/word/2015/wordml/symex"}))}get ReferenceId(){return this.refId}add(t){this.root.push(t)}}class ur{constructor(t,f,H){this.media=t,this.header=new ta(f,H),this.relationships=new le}add(t){return this.header.add(t),this}addChildElement(t){this.header.addChildElement(t)}get View(){return this.header}get Relationships(){return this.relationships}get Media(){return this.media}}class lr{constructor(){this.map=new Map}addMedia(t,f){const H=`${(0,Ot.EL)()}.png`,J={stream:typeof t=="string"?this.convertDataURIToBinary(t):t,fileName:H,transformation:{pixels:{x:Math.round(f.width),y:Math.round(f.height)},emus:{x:Math.round(9525*f.width),y:Math.round(9525*f.height)},flip:f.flip,rotation:f.rotation?6e4*f.rotation:void 0}};return this.map.set(H,J),J}addImage(t,f){this.map.set(t,f)}get Array(){return Array.from(this.map.values())}convertDataURIToBinary(t){const f=";base64,",H=t.indexOf(f)+f.length;return typeof atob=="function"?new Uint8Array(atob(t.substring(H)).split("").map((J=>J.charCodeAt(0)))):new(ct(8764)).Buffer(t,"base64")}}const ea="";var Ut,hr;(function(e){e.DECIMAL="decimal",e.UPPER_ROMAN="upperRoman",e.LOWER_ROMAN="lowerRoman",e.UPPER_LETTER="upperLetter",e.LOWER_LETTER="lowerLetter",e.ORDINAL="ordinal",e.CARDINAL_TEXT="cardinalText",e.ORDINAL_TEXT="ordinalText",e.HEX="hex",e.CHICAGO="chicago",e.IDEOGRAPH__DIGITAL="ideographDigital",e.JAPANESE_COUNTING="japaneseCounting",e.AIUEO="aiueo",e.IROHA="iroha",e.DECIMAL_FULL_WIDTH="decimalFullWidth",e.DECIMAL_HALF_WIDTH="decimalHalfWidth",e.JAPANESE_LEGAL="japaneseLegal",e.JAPANESE_DIGITAL_TEN_THOUSAND="japaneseDigitalTenThousand",e.DECIMAL_ENCLOSED_CIRCLE="decimalEnclosedCircle",e.DECIMAL_FULL_WIDTH2="decimalFullWidth2",e.AIUEO_FULL_WIDTH="aiueoFullWidth",e.IROHA_FULL_WIDTH="irohaFullWidth",e.DECIMAL_ZERO="decimalZero",e.BULLET="bullet",e.GANADA="ganada",e.CHOSUNG="chosung",e.DECIMAL_ENCLOSED_FULLSTOP="decimalEnclosedFullstop",e.DECIMAL_ENCLOSED_PARENTHESES="decimalEnclosedParen",e.DECIMAL_ENCLOSED_CIRCLE_CHINESE="decimalEnclosedCircleChinese",e.IDEOGRAPH_ENCLOSED_CIRCLE="ideographEnclosedCircle",e.IDEOGRAPH_TRADITIONAL="ideographTraditional",e.IDEOGRAPH_ZODIAC="ideographZodiac",e.IDEOGRAPH_ZODIAC_TRADITIONAL="ideographZodiacTraditional",e.TAIWANESE_COUNTING="taiwaneseCounting",e.IDEOGRAPH_LEGAL_TRADITIONAL="ideographLegalTraditional",e.TAIWANESE_COUNTING_THOUSAND="taiwaneseCountingThousand",e.TAIWANESE_DIGITAL="taiwaneseDigital",e.CHINESE_COUNTING="chineseCounting",e.CHINESE_LEGAL_SIMPLIFIED="chineseLegalSimplified",e.CHINESE_COUNTING_THOUSAND="chineseCountingThousand",e.KOREAN_DIGITAL="koreanDigital",e.KOREAN_COUNTING="koreanCounting",e.KOREAN_LEGAL="koreanLegal",e.KOREAN_DIGITAL2="koreanDigital2",e.VIETNAMESE_COUNTING="vietnameseCounting",e.RUSSIAN_LOWER="russianLower",e.RUSSIAN_UPPER="russianUpper",e.NONE="none",e.NUMBER_IN_DASH="numberInDash",e.HEBREW1="hebrew1",e.HEBREW2="hebrew2",e.ARABIC_ALPHA="arabicAlpha",e.ARABIC_ABJAD="arabicAbjad",e.HINDI_VOWELS="hindiVowels",e.HINDI_CONSONANTS="hindiConsonants",e.HINDI_NUMBERS="hindiNumbers",e.HINDI_COUNTING="hindiCounting",e.THAI_LETTERS="thaiLetters",e.THAI_NUMBERS="thaiNumbers",e.THAI_COUNTING="thaiCounting",e.BAHT_TEXT="bahtText",e.DOLLAR_TEXT="dollarText",e.CUSTOM="custom"})(Ut||(Ut={}));class ra extends i{constructor(){super(...arguments),this.xmlKeys={ilvl:"w:ilvl",tentative:"w15:tentative"}}}class na extends r{constructor(t){super("w:numFmt"),this.root.push(new l({val:t}))}}class sa extends r{constructor(t){super("w:lvlText"),this.root.push(new l({val:t}))}}class oa extends r{constructor(t){super("w:lvlJc"),this.root.push(new l({val:t}))}}(function(e){e.NOTHING="nothing",e.SPACE="space",e.TAB="tab"})(hr||(hr={}));class ia extends r{constructor(t){super("w:suff"),this.root.push(new l({val:t}))}}class aa extends r{constructor(){super("w:isLgl")}}class pr extends r{constructor({level:t,format:f,text:H,alignment:J=h.START,start:tt=1,style:ut,suffix:dt,isLegalNumberingStyle:_t}){if(super("w:lvl"),this.root.push(new lt("w:start",(0,n.vH)(tt))),f&&this.root.push(new na(f)),dt&&this.root.push(new ia(dt)),_t&&this.root.push(new aa),H&&this.root.push(new sa(H)),this.root.push(new oa(J)),this.paragraphProperties=new qt(ut&&ut.paragraph),this.runProperties=new Et(ut&&ut.run),this.root.push(this.paragraphProperties),this.root.push(this.runProperties),t>9)throw new Error("Level cannot be greater than 9. Read more here: https://answers.microsoft.com/en-us/msoffice/forum/all/does-word-support-more-than-9-list-levels/d130fdcd-1781-446d-8c84-c6c79124e4d7");this.root.push(new ra({ilvl:(0,n.vH)(t),tentative:1}))}}class qn extends pr{}class ca extends pr{}class ua extends r{constructor(t){super("w:multiLevelType"),this.root.push(new l({val:t}))}}class la extends i{constructor(){super(...arguments),this.xmlKeys={abstractNumId:"w:abstractNumId",restartNumberingAfterBreak:"w15:restartNumberingAfterBreak"}}}class dr extends r{constructor(t,f){super("w:abstractNum"),this.root.push(new la({abstractNumId:(0,n.vH)(t),restartNumberingAfterBreak:0})),this.root.push(new ua("hybridMultilevel")),this.id=t;for(const H of f)this.root.push(new qn(H))}}class ha extends r{constructor(t){super("w:abstractNumId"),this.root.push(new l({val:t}))}}class pa extends i{constructor(){super(...arguments),this.xmlKeys={numId:"w:numId"}}}class fr extends r{constructor(t){super("w:num"),this.numId=t.numId,this.reference=t.reference,this.instance=t.instance,this.root.push(new pa({numId:(0,n.vH)(t.numId)})),this.root.push(new ha((0,n.vH)(t.abstractNumId))),t.overrideLevel&&this.root.push(new Zn(t.overrideLevel.num,t.overrideLevel.start))}}class da extends i{constructor(){super(...arguments),this.xmlKeys={ilvl:"w:ilvl"}}}class Zn extends r{constructor(t,f){super("w:lvlOverride"),this.root.push(new da({ilvl:t})),f!==void 0&&this.root.push(new ma(f))}}class fa extends i{constructor(){super(...arguments),this.xmlKeys={val:"w:val"}}}class ma extends r{constructor(t){super("w:startOverride"),this.root.push(new fa({val:t}))}}class Yn extends r{constructor(t){super("w:numbering"),this.abstractNumberingMap=new Map,this.concreteNumberingMap=new Map,this.referenceConfigMap=new Map,this.root.push(new Qt({wpc:"http://schemas.microsoft.com/office/word/2010/wordprocessingCanvas",mc:"http://schemas.openxmlformats.org/markup-compatibility/2006",o:"urn:schemas-microsoft-com:office:office",r:"http://schemas.openxmlformats.org/officeDocument/2006/relationships",m:"http://schemas.openxmlformats.org/officeDocument/2006/math",v:"urn:schemas-microsoft-com:vml",wp14:"http://schemas.microsoft.com/office/word/2010/wordprocessingDrawing",wp:"http://schemas.openxmlformats.org/drawingml/2006/wordprocessingDrawing",w10:"urn:schemas-microsoft-com:office:word",w:"http://schemas.openxmlformats.org/wordprocessingml/2006/main",w14:"http://schemas.microsoft.com/office/word/2010/wordml",w15:"http://schemas.microsoft.com/office/word/2012/wordml",wpg:"http://schemas.microsoft.com/office/word/2010/wordprocessingGroup",wpi:"http://schemas.microsoft.com/office/word/2010/wordprocessingInk",wne:"http://schemas.microsoft.com/office/word/2006/wordml",wps:"http://schemas.microsoft.com/office/word/2010/wordprocessingShape",Ignorable:"w14 w15 wp14"}));const f=new dr((0,Ot.NY)(),[{level:0,format:Ut.BULLET,text:"●",alignment:h.LEFT,style:{paragraph:{indent:{left:(0,Ot.vw)(.5),hanging:(0,Ot.vw)(.25)}}}},{level:1,format:Ut.BULLET,text:"○",alignment:h.LEFT,style:{paragraph:{indent:{left:(0,Ot.vw)(1),hanging:(0,Ot.vw)(.25)}}}},{level:2,format:Ut.BULLET,text:"■",alignment:h.LEFT,style:{paragraph:{indent:{left:2160,hanging:(0,Ot.vw)(.25)}}}},{level:3,format:Ut.BULLET,text:"●",alignment:h.LEFT,style:{paragraph:{indent:{left:2880,hanging:(0,Ot.vw)(.25)}}}},{level:4,format:Ut.BULLET,text:"○",alignment:h.LEFT,style:{paragraph:{indent:{left:3600,hanging:(0,Ot.vw)(.25)}}}},{level:5,format:Ut.BULLET,text:"■",alignment:h.LEFT,style:{paragraph:{indent:{left:4320,hanging:(0,Ot.vw)(.25)}}}},{level:6,format:Ut.BULLET,text:"●",alignment:h.LEFT,style:{paragraph:{indent:{left:5040,hanging:(0,Ot.vw)(.25)}}}},{level:7,format:Ut.BULLET,text:"●",alignment:h.LEFT,style:{paragraph:{indent:{left:5760,hanging:(0,Ot.vw)(.25)}}}},{level:8,format:Ut.BULLET,text:"●",alignment:h.LEFT,style:{paragraph:{indent:{left:6480,hanging:(0,Ot.vw)(.25)}}}}]);this.concreteNumberingMap.set("default-bullet-numbering",new fr({numId:1,abstractNumId:f.id,reference:"default-bullet-numbering",instance:0,overrideLevel:{num:0,start:1}})),this.abstractNumberingMap.set("default-bullet-numbering",f);for(const H of t.config)this.abstractNumberingMap.set(H.reference,new dr((0,Ot.NY)(),H.levels)),this.referenceConfigMap.set(H.reference,H.levels)}prepForXml(t){for(const f of this.abstractNumberingMap.values())this.root.push(f);for(const f of this.concreteNumberingMap.values())this.root.push(f);return super.prepForXml(t)}createConcreteNumberingInstance(t,f){const H=this.abstractNumberingMap.get(t);if(!H)return;const J=`${t}-${f}`;if(this.concreteNumberingMap.has(J))return;const tt=this.referenceConfigMap.get(t),ut=tt&&tt[0].start,dt={numId:(0,Ot.NY)(),abstractNumId:H.id,reference:t,instance:f,overrideLevel:ut&&Number.isInteger(ut)?{num:0,start:ut}:{num:0,start:1}};this.concreteNumberingMap.set(J,new fr(dt))}get ConcreteNumbering(){return Array.from(this.concreteNumberingMap.values())}get ReferenceConfig(){return Array.from(this.referenceConfigMap.values())}}class ga extends i{constructor(){super(...arguments),this.xmlKeys={version:"w:val",name:"w:name",uri:"w:uri"}}}class wa extends r{constructor(t){super("w:compatSetting"),this.root.push(new ga({version:t,uri:"http://schemas.microsoft.com/office/word",name:"compatibilityMode"}))}}class ya extends r{constructor(t){super("w:compat"),t.version&&this.root.push(new wa(t.version)),t.useSingleBorderforContiguousCells&&this.root.push(new B("w:useSingleBorderforContiguousCells",t.useSingleBorderforContiguousCells)),t.wordPerfectJustification&&this.root.push(new B("w:wpJustification",t.wordPerfectJustification)),t.noTabStopForHangingIndent&&this.root.push(new B("w:noTabHangInd",t.noTabStopForHangingIndent)),t.noLeading&&this.root.push(new B("w:noLeading",t.noLeading)),t.spaceForUnderline&&this.root.push(new B("w:spaceForUL",t.spaceForUnderline)),t.noColumnBalance&&this.root.push(new B("w:noColumnBalance",t.noColumnBalance)),t.balanceSingleByteDoubleByteWidth&&this.root.push(new B("w:balanceSingleByteDoubleByteWidth",t.balanceSingleByteDoubleByteWidth)),t.noExtraLineSpacing&&this.root.push(new B("w:noExtraLineSpacing",t.noExtraLineSpacing)),t.doNotLeaveBackslashAlone&&this.root.push(new B("w:doNotLeaveBackslashAlone",t.doNotLeaveBackslashAlone)),t.underlineTrailingSpaces&&this.root.push(new B("w:ulTrailSpace",t.underlineTrailingSpaces)),t.doNotExpandShiftReturn&&this.root.push(new B("w:doNotExpandShiftReturn",t.doNotExpandShiftReturn)),t.spacingInWholePoints&&this.root.push(new B("w:spacingInWholePoints",t.spacingInWholePoints)),t.lineWrapLikeWord6&&this.root.push(new B("w:lineWrapLikeWord6",t.lineWrapLikeWord6)),t.printBodyTextBeforeHeader&&this.root.push(new B("w:printBodyTextBeforeHeader",t.printBodyTextBeforeHeader)),t.printColorsBlack&&this.root.push(new B("w:printColBlack",t.printColorsBlack)),t.spaceWidth&&this.root.push(new B("w:wpSpaceWidth",t.spaceWidth)),t.showBreaksInFrames&&this.root.push(new B("w:showBreaksInFrames",t.showBreaksInFrames)),t.subFontBySize&&this.root.push(new B("w:subFontBySize",t.subFontBySize)),t.suppressBottomSpacing&&this.root.push(new B("w:suppressBottomSpacing",t.suppressBottomSpacing)),t.suppressTopSpacing&&this.root.push(new B("w:suppressTopSpacing",t.suppressTopSpacing)),t.suppressSpacingAtTopOfPage&&this.root.push(new B("w:suppressSpacingAtTopOfPage",t.suppressSpacingAtTopOfPage)),t.suppressTopSpacingWP&&this.root.push(new B("w:suppressTopSpacingWP",t.suppressTopSpacingWP)),t.suppressSpBfAfterPgBrk&&this.root.push(new B("w:suppressSpBfAfterPgBrk",t.suppressSpBfAfterPgBrk)),t.swapBordersFacingPages&&this.root.push(new B("w:swapBordersFacingPages",t.swapBordersFacingPages)),t.convertMailMergeEsc&&this.root.push(new B("w:convMailMergeEsc",t.convertMailMergeEsc)),t.truncateFontHeightsLikeWP6&&this.root.push(new B("w:truncateFontHeightsLikeWP6",t.truncateFontHeightsLikeWP6)),t.macWordSmallCaps&&this.root.push(new B("w:mwSmallCaps",t.macWordSmallCaps)),t.usePrinterMetrics&&this.root.push(new B("w:usePrinterMetrics",t.usePrinterMetrics)),t.doNotSuppressParagraphBorders&&this.root.push(new B("w:doNotSuppressParagraphBorders",t.doNotSuppressParagraphBorders)),t.wrapTrailSpaces&&this.root.push(new B("w:wrapTrailSpaces",t.wrapTrailSpaces)),t.footnoteLayoutLikeWW8&&this.root.push(new B("w:footnoteLayoutLikeWW8",t.footnoteLayoutLikeWW8)),t.shapeLayoutLikeWW8&&this.root.push(new B("w:shapeLayoutLikeWW8",t.shapeLayoutLikeWW8)),t.alignTablesRowByRow&&this.root.push(new B("w:alignTablesRowByRow",t.alignTablesRowByRow)),t.forgetLastTabAlignment&&this.root.push(new B("w:forgetLastTabAlignment",t.forgetLastTabAlignment)),t.adjustLineHeightInTable&&this.root.push(new B("w:adjustLineHeightInTable",t.adjustLineHeightInTable)),t.autoSpaceLikeWord95&&this.root.push(new B("w:autoSpaceLikeWord95",t.autoSpaceLikeWord95)),t.noSpaceRaiseLower&&this.root.push(new B("w:noSpaceRaiseLower",t.noSpaceRaiseLower)),t.doNotUseHTMLParagraphAutoSpacing&&this.root.push(new B("w:doNotUseHTMLParagraphAutoSpacing",t.doNotUseHTMLParagraphAutoSpacing)),t.layoutRawTableWidth&&this.root.push(new B("w:layoutRawTableWidth",t.layoutRawTableWidth)),t.layoutTableRowsApart&&this.root.push(new B("w:layoutTableRowsApart",t.layoutTableRowsApart)),t.useWord97LineBreakRules&&this.root.push(new B("w:useWord97LineBreakRules",t.useWord97LineBreakRules)),t.doNotBreakWrappedTables&&this.root.push(new B("w:doNotBreakWrappedTables",t.doNotBreakWrappedTables)),t.doNotSnapToGridInCell&&this.root.push(new B("w:doNotSnapToGridInCell",t.doNotSnapToGridInCell)),t.selectFieldWithFirstOrLastCharacter&&this.root.push(new B("w:selectFldWithFirstOrLastChar",t.selectFieldWithFirstOrLastCharacter)),t.applyBreakingRules&&this.root.push(new B("w:applyBreakingRules",t.applyBreakingRules)),t.doNotWrapTextWithPunctuation&&this.root.push(new B("w:doNotWrapTextWithPunct",t.doNotWrapTextWithPunctuation)),t.doNotUseEastAsianBreakRules&&this.root.push(new B("w:doNotUseEastAsianBreakRules",t.doNotUseEastAsianBreakRules)),t.useWord2002TableStyleRules&&this.root.push(new B("w:useWord2002TableStyleRules",t.useWord2002TableStyleRules)),t.growAutofit&&this.root.push(new B("w:growAutofit",t.growAutofit)),t.useFELayout&&this.root.push(new B("w:useFELayout",t.useFELayout)),t.useNormalStyleForList&&this.root.push(new B("w:useNormalStyleForList",t.useNormalStyleForList)),t.doNotUseIndentAsNumberingTabStop&&this.root.push(new B("w:doNotUseIndentAsNumberingTabStop",t.doNotUseIndentAsNumberingTabStop)),t.useAlternateEastAsianLineBreakRules&&this.root.push(new B("w:useAltKinsokuLineBreakRules",t.useAlternateEastAsianLineBreakRules)),t.allowSpaceOfSameStyleInTable&&this.root.push(new B("w:allowSpaceOfSameStyleInTable",t.allowSpaceOfSameStyleInTable)),t.doNotSuppressIndentation&&this.root.push(new B("w:doNotSuppressIndentation",t.doNotSuppressIndentation)),t.doNotAutofitConstrainedTables&&this.root.push(new B("w:doNotAutofitConstrainedTables",t.doNotAutofitConstrainedTables)),t.autofitToFirstFixedWidthCell&&this.root.push(new B("w:autofitToFirstFixedWidthCell",t.autofitToFirstFixedWidthCell)),t.underlineTabInNumberingList&&this.root.push(new B("w:underlineTabInNumList",t.underlineTabInNumberingList)),t.displayHangulFixedWidth&&this.root.push(new B("w:displayHangulFixedWidth",t.displayHangulFixedWidth)),t.splitPgBreakAndParaMark&&this.root.push(new B("w:splitPgBreakAndParaMark",t.splitPgBreakAndParaMark)),t.doNotVerticallyAlignCellWithSp&&this.root.push(new B("w:doNotVertAlignCellWithSp",t.doNotVerticallyAlignCellWithSp)),t.doNotBreakConstrainedForcedTable&&this.root.push(new B("w:doNotBreakConstrainedForcedTable",t.doNotBreakConstrainedForcedTable)),t.ignoreVerticalAlignmentInTextboxes&&this.root.push(new B("w:doNotVertAlignInTxbx",t.ignoreVerticalAlignmentInTextboxes)),t.useAnsiKerningPairs&&this.root.push(new B("w:useAnsiKerningPairs",t.useAnsiKerningPairs)),t.cachedColumnBalance&&this.root.push(new B("w:cachedColBalance",t.cachedColumnBalance))}}class ba extends i{constructor(){super(...arguments),this.xmlKeys={wpc:"xmlns:wpc",mc:"xmlns:mc",o:"xmlns:o",r:"xmlns:r",m:"xmlns:m",v:"xmlns:v",wp14:"xmlns:wp14",wp:"xmlns:wp",w10:"xmlns:w10",w:"xmlns:w",w14:"xmlns:w14",w15:"xmlns:w15",wpg:"xmlns:wpg",wpi:"xmlns:wpi",wne:"xmlns:wne",wps:"xmlns:wps",Ignorable:"mc:Ignorable"}}}class xa extends r{constructor(t){var f,H,J,tt;super("w:settings"),this.root.push(new ba({wpc:"http://schemas.microsoft.com/office/word/2010/wordprocessingCanvas",mc:"http://schemas.openxmlformats.org/markup-compatibility/2006",o:"urn:schemas-microsoft-com:office:office",r:"http://schemas.openxmlformats.org/officeDocument/2006/relationships",m:"http://schemas.openxmlformats.org/officeDocument/2006/math",v:"urn:schemas-microsoft-com:vml",wp14:"http://schemas.microsoft.com/office/word/2010/wordprocessingDrawing",wp:"http://schemas.openxmlformats.org/drawingml/2006/wordprocessingDrawing",w10:"urn:schemas-microsoft-com:office:word",w:"http://schemas.openxmlformats.org/wordprocessingml/2006/main",w14:"http://schemas.microsoft.com/office/word/2010/wordml",w15:"http://schemas.microsoft.com/office/word/2012/wordml",wpg:"http://schemas.microsoft.com/office/word/2010/wordprocessingGroup",wpi:"http://schemas.microsoft.com/office/word/2010/wordprocessingInk",wne:"http://schemas.microsoft.com/office/word/2006/wordml",wps:"http://schemas.microsoft.com/office/word/2010/wordprocessingShape",Ignorable:"w14 w15 wp14"})),this.root.push(new B("w:displayBackgroundShape",!0)),t.trackRevisions!==void 0&&this.root.push(new B("w:trackRevisions",t.trackRevisions)),t.evenAndOddHeaders!==void 0&&this.root.push(new B("w:evenAndOddHeaders",t.evenAndOddHeaders)),t.updateFields!==void 0&&this.root.push(new B("w:updateFields",t.updateFields)),this.root.push(new ya(Object.assign(Object.assign({},(f=t.compatibility)!==null&&f!==void 0?f:{}),{version:(tt=(J=(H=t.compatibility)===null||H===void 0?void 0:H.version)!==null&&J!==void 0?J:t.compatibilityModeVersion)!==null&&tt!==void 0?tt:15})))}}class Jn extends i{constructor(){super(...arguments),this.xmlKeys={val:"w:val"}}}class va extends r{constructor(t){super("w:name"),this.root.push(new Jn({val:t}))}}class _a extends r{constructor(t){super("w:uiPriority"),this.root.push(new Jn({val:(0,n.vH)(t)}))}}class Ea extends i{constructor(){super(...arguments),this.xmlKeys={type:"w:type",styleId:"w:styleId",default:"w:default",customStyle:"w:customStyle"}}}class Qn extends r{constructor(t,f){super("w:style"),this.root.push(new Ea(t)),f.name&&this.root.push(new va(f.name)),f.basedOn&&this.root.push(new G("w:basedOn",f.basedOn)),f.next&&this.root.push(new G("w:next",f.next)),f.link&&this.root.push(new G("w:link",f.link)),f.uiPriority!==void 0&&this.root.push(new _a(f.uiPriority)),f.semiHidden!==void 0&&this.root.push(new B("w:semiHidden",f.semiHidden)),f.unhideWhenUsed!==void 0&&this.root.push(new B("w:unhideWhenUsed",f.unhideWhenUsed)),f.quickFormat!==void 0&&this.root.push(new B("w:qFormat",f.quickFormat))}}class pe extends Qn{constructor(t){super({type:"paragraph",styleId:t.id},t),this.paragraphProperties=new qt(t.paragraph),this.runProperties=new Et(t.run),this.root.push(this.paragraphProperties),this.root.push(this.runProperties)}}class de extends Qn{constructor(t){super({type:"character",styleId:t.id},Object.assign({uiPriority:99,unhideWhenUsed:!0},t)),this.runProperties=new Et(t.run),this.root.push(this.runProperties)}}class $t extends pe{constructor(t){super(Object.assign(Object.assign({},t),{basedOn:"Normal",next:"Normal",quickFormat:!0}))}}class Ta extends $t{constructor(t){super(Object.assign(Object.assign({},t),{id:"Title",name:"Title"}))}}class Aa extends $t{constructor(t){super(Object.assign(Object.assign({},t),{id:"Heading1",name:"Heading 1"}))}}class Sa extends $t{constructor(t){super(Object.assign(Object.assign({},t),{id:"Heading2",name:"Heading 2"}))}}class Ia extends $t{constructor(t){super(Object.assign(Object.assign({},t),{id:"Heading3",name:"Heading 3"}))}}class Ra extends $t{constructor(t){super(Object.assign(Object.assign({},t),{id:"Heading4",name:"Heading 4"}))}}class Na extends $t{constructor(t){super(Object.assign(Object.assign({},t),{id:"Heading5",name:"Heading 5"}))}}class Ca extends $t{constructor(t){super(Object.assign(Object.assign({},t),{id:"Heading6",name:"Heading 6"}))}}class Oa extends $t{constructor(t){super(Object.assign(Object.assign({},t),{id:"Strong",name:"Strong"}))}}class ka extends pe{constructor(t){super(Object.assign(Object.assign({},t),{id:"ListParagraph",name:"List Paragraph",basedOn:"Normal",quickFormat:!0}))}}class La extends pe{constructor(t){super(Object.assign(Object.assign({},t),{id:"FootnoteText",name:"footnote text",link:"FootnoteTextChar",basedOn:"Normal",uiPriority:99,semiHidden:!0,unhideWhenUsed:!0,paragraph:{spacing:{after:0,line:240,lineRule:Jt.AUTO}},run:{size:20}}))}}class Da extends de{constructor(t){super(Object.assign(Object.assign({},t),{id:"FootnoteReference",name:"footnote reference",basedOn:"DefaultParagraphFont",semiHidden:!0,run:{superScript:!0}}))}}class Pa extends de{constructor(t){super(Object.assign(Object.assign({},t),{id:"FootnoteTextChar",name:"Footnote Text Char",basedOn:"DefaultParagraphFont",link:"FootnoteText",semiHidden:!0,run:{size:20}}))}}class Fa extends de{constructor(t){super(Object.assign(Object.assign({},t),{id:"Hyperlink",name:"Hyperlink",basedOn:"DefaultParagraphFont",run:{color:"0563C1",underline:{type:x.SINGLE}}}))}}class Ae extends r{constructor(t){if(super("w:styles"),t.initialStyles&&this.root.push(t.initialStyles),t.importedStyles)for(const f of t.importedStyles)this.root.push(f);if(t.paragraphStyles)for(const f of t.paragraphStyles)this.root.push(new pe(f));if(t.characterStyles)for(const f of t.characterStyles)this.root.push(new de(f))}}class ts extends r{constructor(t){super("w:pPrDefault"),this.root.push(new qt(t))}}class es extends r{constructor(t){super("w:rPrDefault"),this.root.push(new Et(t))}}class rs extends r{constructor(t){super("w:docDefaults"),this.runPropertiesDefaults=new es(t.run),this.paragraphPropertiesDefaults=new ts(t.paragraph),this.root.push(this.runPropertiesDefaults),this.root.push(this.paragraphPropertiesDefaults)}}class ns{newInstance(t){const f=(0,g.xml2js)(t,{compact:!1});let H;for(const tt of f.elements||[])tt.name==="w:styles"&&(H=tt);if(H===void 0)throw new Error("can not find styles element");const J=H.elements||[];return new Ae({initialStyles:new N(H.attributes),importedStyles:J.map((tt=>I(tt)))})}}class ss{newInstance(t={}){var f;return{initialStyles:new Qt({mc:"http://schemas.openxmlformats.org/markup-compatibility/2006",r:"http://schemas.openxmlformats.org/officeDocument/2006/relationships",w:"http://schemas.openxmlformats.org/wordprocessingml/2006/main",w14:"http://schemas.microsoft.com/office/word/2010/wordml",w15:"http://schemas.microsoft.com/office/word/2012/wordml",Ignorable:"w14 w15"}),importedStyles:[new rs((f=t.document)!==null&&f!==void 0?f:{}),new Ta(Object.assign({run:{size:56}},t.title)),new Aa(Object.assign({run:{color:"2E74B5",size:32}},t.heading1)),new Sa(Object.assign({run:{color:"2E74B5",size:26}},t.heading2)),new Ia(Object.assign({run:{color:"1F4D78",size:24}},t.heading3)),new Ra(Object.assign({run:{color:"2E74B5",italics:!0}},t.heading4)),new Na(Object.assign({run:{color:"2E74B5"}},t.heading5)),new Ca(Object.assign({run:{color:"1F4D78"}},t.heading6)),new Oa(Object.assign({run:{bold:!0}},t.strong)),new ka(t.listParagraph||{}),new Fa(t.hyperlink||{}),new Da(t.footnoteReference||{}),new La(t.footnoteText||{}),new Pa(t.footnoteTextChar||{})]}}}class os{constructor(t,f={}){var H,J,tt,ut,dt,_t,pt;if(this.currentRelationshipId=1,this.headers=[],this.footers=[],this.coreProperties=new Fi(Object.assign(Object.assign({},t),{creator:(H=t.creator)!==null&&H!==void 0?H:"Un-named",revision:(J=t.revision)!==null&&J!==void 0?J:1,lastModifiedBy:(tt=t.lastModifiedBy)!==null&&tt!==void 0?tt:"Un-named"})),this.numbering=new Yn(t.numbering?t.numbering:{config:[]}),this.comments=new Ur((ut=t.comments)!==null&&ut!==void 0?ut:{children:[]}),this.fileRelationships=new le,this.customProperties=new zi((dt=t.customProperties)!==null&&dt!==void 0?dt:[]),this.appProperties=new Oi,this.footnotesWrapper=new Ji,this.contentTypes=new Pi,this.documentWrapper=new vn({background:t.background}),this.settings=new xa({compatibilityModeVersion:t.compatabilityModeVersion,compatibility:t.compatibility,evenAndOddHeaders:!!t.evenAndOddHeaderAndFooters,trackRevisions:(_t=t.features)===null||_t===void 0?void 0:_t.trackRevisions,updateFields:(pt=t.features)===null||pt===void 0?void 0:pt.updateFields}),this.media=f.template&&f.template.media?f.template.media:new lr,f.template&&(this.currentRelationshipId=f.template.currentRelationshipId+1),f.template&&t.externalStyles)throw Error("can not use both template and external styles");if(f.template&&f.template.styles){const gt=new ns;this.styles=gt.newInstance(f.template.styles)}else if(t.externalStyles){const gt=new ns;this.styles=gt.newInstance(t.externalStyles)}else if(t.styles){const gt=new ss().newInstance(t.styles.default);this.styles=new Ae(Object.assign(Object.assign({},gt),t.styles))}else{const gt=new ss;this.styles=new Ae(gt.newInstance())}if(this.addDefaultRelationships(),f.template&&f.template.headers)for(const gt of f.template.headers)this.addHeaderToDocument(gt.header,gt.type);if(f.template&&f.template.footers)for(const gt of f.template.footers)this.addFooterToDocument(gt.footer,gt.type);for(const gt of t.sections)this.addSection(gt);if(t.footnotes)for(const gt in t.footnotes)this.footnotesWrapper.View.createFootNote(parseFloat(gt),t.footnotes[gt].children)}addSection({headers:t={},footers:f={},children:H,properties:J}){this.documentWrapper.View.Body.addSection(Object.assign(Object.assign({},J),{headerWrapperGroup:{default:t.default?this.createHeader(t.default):void 0,first:t.first?this.createHeader(t.first):void 0,even:t.even?this.createHeader(t.even):void 0},footerWrapperGroup:{default:f.default?this.createFooter(f.default):void 0,first:f.first?this.createFooter(f.first):void 0,even:f.even?this.createFooter(f.even):void 0}}));for(const tt of H)this.documentWrapper.View.add(tt)}createHeader(t){const f=new ur(this.media,this.currentRelationshipId++);for(const H of t.options.children)f.add(H);return this.addHeaderToDocument(f),f}createFooter(t){const f=new ar(this.media,this.currentRelationshipId++);for(const H of t.options.children)f.add(H);return this.addFooterToDocument(f),f}addHeaderToDocument(t,f=Wt.DEFAULT){this.headers.push({header:t,type:f}),this.documentWrapper.Relationships.createRelationship(t.View.ReferenceId,"http://schemas.openxmlformats.org/officeDocument/2006/relationships/header",`header${this.headers.length}.xml`),this.contentTypes.addHeader(this.headers.length)}addFooterToDocument(t,f=Wt.DEFAULT){this.footers.push({footer:t,type:f}),this.documentWrapper.Relationships.createRelationship(t.View.ReferenceId,"http://schemas.openxmlformats.org/officeDocument/2006/relationships/footer",`footer${this.footers.length}.xml`),this.contentTypes.addFooter(this.footers.length)}addDefaultRelationships(){this.fileRelationships.createRelationship(1,"http://schemas.openxmlformats.org/officeDocument/2006/relationships/officeDocument","word/document.xml"),this.fileRelationships.createRelationship(2,"http://schemas.openxmlformats.org/package/2006/relationships/metadata/core-properties","docProps/core.xml"),this.fileRelationships.createRelationship(3,"http://schemas.openxmlformats.org/officeDocument/2006/relationships/extended-properties","docProps/app.xml"),this.fileRelationships.createRelationship(4,"http://schemas.openxmlformats.org/officeDocument/2006/relationships/custom-properties","docProps/custom.xml"),this.documentWrapper.Relationships.createRelationship(this.currentRelationshipId++,"http://schemas.openxmlformats.org/officeDocument/2006/relationships/styles","styles.xml"),this.documentWrapper.Relationships.createRelationship(this.currentRelationshipId++,"http://schemas.openxmlformats.org/officeDocument/2006/relationships/numbering","numbering.xml"),this.documentWrapper.Relationships.createRelationship(this.currentRelationshipId++,"http://schemas.openxmlformats.org/officeDocument/2006/relationships/footnotes","footnotes.xml"),this.documentWrapper.Relationships.createRelationship(this.currentRelationshipId++,"http://schemas.openxmlformats.org/officeDocument/2006/relationships/settings","settings.xml"),this.documentWrapper.Relationships.createRelationship(this.currentRelationshipId++,"http://schemas.openxmlformats.org/officeDocument/2006/relationships/comments","comments.xml")}get Document(){return this.documentWrapper}get Styles(){return this.styles}get CoreProperties(){return this.coreProperties}get Numbering(){return this.numbering}get Media(){return this.media}get FileRelationships(){return this.fileRelationships}get Headers(){return this.headers.map((t=>t.header))}get Footers(){return this.footers.map((t=>t.footer))}get ContentTypes(){return this.contentTypes}get CustomProperties(){return this.customProperties}get AppProperties(){return this.appProperties}get FootNotes(){return this.footnotesWrapper}get Settings(){return this.settings}get Comments(){return this.comments}}const Ba="";class Ma extends r{constructor(t={}){super("w:instrText"),this.properties=t,this.root.push(new L({space:d.PRESERVE}));let f="TOC";this.properties.captionLabel&&(f=`${f} \\a "${this.properties.captionLabel}"`),this.properties.entriesFromBookmark&&(f=`${f} \\b "${this.properties.entriesFromBookmark}"`),this.properties.captionLabelIncludingNumbers&&(f=`${f} \\c "${this.properties.captionLabelIncludingNumbers}"`),this.properties.sequenceAndPageNumbersSeparator&&(f=`${f} \\d "${this.properties.sequenceAndPageNumbersSeparator}"`),this.properties.tcFieldIdentifier&&(f=`${f} \\f "${this.properties.tcFieldIdentifier}"`),this.properties.hyperlink&&(f=`${f} \\h`),this.properties.tcFieldLevelRange&&(f=`${f} \\l "${this.properties.tcFieldLevelRange}"`),this.properties.pageNumbersEntryLevelsRange&&(f=`${f} \\n "${this.properties.pageNumbersEntryLevelsRange}"`),this.properties.headingStyleRange&&(f=`${f} \\o "${this.properties.headingStyleRange}"`),this.properties.entryAndPageNumberSeparator&&(f=`${f} \\p "${this.properties.entryAndPageNumberSeparator}"`),this.properties.seqFieldIdentifierForPrefix&&(f=`${f} \\s "${this.properties.seqFieldIdentifierForPrefix}"`),this.properties.stylesWithLevels&&this.properties.stylesWithLevels.length&&(f=`${f} \\t "${this.properties.stylesWithLevels.map((H=>`${H.styleName},${H.level}`)).join(",")}"`),this.properties.useAppliedParagraphOutlineLevel&&(f=`${f} \\u`),this.properties.preserveTabInEntries&&(f=`${f} \\w`),this.properties.preserveNewLineInEntries&&(f=`${f} \\x`),this.properties.hideTabAndPageNumbersInWebView&&(f=`${f} \\z`),this.root.push(f)}}class Ua extends r{constructor(){super("w:sdtContent")}}class Ha extends r{constructor(t){super("w:sdtPr"),this.root.push(new G("w:alias",t))}}class za extends r{constructor(t="Table of Contents",f){super("w:sdt"),this.root.push(new Ha(t));const H=new Ua,J=new jt({children:[new Bt({children:[new T(!0),new Ma(f),new o]})]});H.addChildElement(J);const tt=new jt({children:[new Bt({children:[new v]})]});H.addChildElement(tt),this.root.push(H)}}class Wa{constructor(t,f){this.styleName=t,this.level=f}}class ja{constructor(t={children:[]}){this.options=t}}class Ka{constructor(t={children:[]}){this.options=t}}class is extends i{constructor(){super(...arguments),this.xmlKeys={id:"w:id"}}}class as extends r{constructor(t){super("w:footnoteReference"),this.root.push(new is({id:t}))}}class Ga extends Bt{constructor(t){super({style:"FootnoteReference"}),this.root.push(new as(t))}}class Va extends r{constructor(t){super("w:ins"),this.root.push(new wt({id:t.id,author:t.author,date:t.date})),this.addChildElement(new Yt(t))}}class $a extends r{constructor(){super("w:delInstrText"),this.root.push(new L({space:d.PRESERVE})),this.root.push("PAGE")}}class Xa extends r{constructor(){super("w:delInstrText"),this.root.push(new L({space:d.PRESERVE})),this.root.push("NUMPAGES")}}class qa extends r{constructor(){super("w:delInstrText"),this.root.push(new L({space:d.PRESERVE})),this.root.push("SECTIONPAGES")}}class cs extends r{constructor(t){super("w:delText"),this.root.push(new L({space:d.PRESERVE})),this.root.push(t)}}class Za extends r{constructor(t){super("w:del"),this.root.push(new wt({id:t.id,author:t.author,date:t.date})),this.deletedTextRunWrapper=new Ya(t),this.addChildElement(this.deletedTextRunWrapper)}}class Ya extends r{constructor(t){if(super("w:r"),this.root.push(new Et(t)),t.children)for(const f of t.children)if(typeof f!="string")this.root.push(f);else switch(f){case D.CURRENT:this.root.push(new T),this.root.push(new $a),this.root.push(new o),this.root.push(new v);break;case D.TOTAL_PAGES:this.root.push(new T),this.root.push(new Xa),this.root.push(new o),this.root.push(new v);break;case D.TOTAL_PAGES_IN_SECTION:this.root.push(new T),this.root.push(new qa),this.root.push(new o),this.root.push(new v);break;default:this.root.push(new cs(f))}else t.text&&this.root.push(new cs(t.text));if(t.break)for(let f=0;f<t.break;f++)this.root.splice(1,0,new $)}}var mr=ct(6085),kt=ct(3479);class Ja{format(t,f={}){const H=t.prepForXml(f);if(H)return H;throw Error("XMLComponent did not format correctly")}}class Qa{replace(t,f,H){let J=t;return f.forEach(((tt,ut)=>{J=J.replace(new RegExp(`{${tt.fileName}}`,"g"),(H+ut).toString())})),J}getMediaData(t,f){return f.Array.filter((H=>t.search(`{${H.fileName}}`)>0))}}class tc{replace(t,f){let H=t;for(const J of f)H=H.replace(new RegExp(`{${J.reference}-${J.instance}}`,"g"),J.numId.toString());return H}}var gr,Se=function(e,t,f,H){return new(f||(f=Promise))((function(J,tt){function ut(pt){try{_t(H.next(pt))}catch(gt){tt(gt)}}function dt(pt){try{_t(H.throw(pt))}catch(gt){tt(gt)}}function _t(pt){var gt;pt.done?J(pt.value):(gt=pt.value,gt instanceof f?gt:new f((function(Lt){Lt(gt)}))).then(ut,dt)}_t((H=H.apply(e,[])).next())}))};(function(e){e.NONE="",e.WITH_2_BLANKS=" ",e.WITH_4_BLANKS=" ",e.WITH_TAB=" "})(gr||(gr={}));class us{static toString(t,f){return Se(this,void 0,void 0,(function*(){return yield this.compiler.compile(t,f).generateAsync({type:"string",mimeType:"application/vnd.openxmlformats-officedocument.wordprocessingml.document",compression:"DEFLATE"})}))}static toBuffer(t,f){return Se(this,void 0,void 0,(function*(){return yield this.compiler.compile(t,f).generateAsync({type:"nodebuffer",mimeType:"application/vnd.openxmlformats-officedocument.wordprocessingml.document",compression:"DEFLATE"})}))}static toBase64String(t,f){return Se(this,void 0,void 0,(function*(){return yield this.compiler.compile(t,f).generateAsync({type:"base64",mimeType:"application/vnd.openxmlformats-officedocument.wordprocessingml.document",compression:"DEFLATE"})}))}static toBlob(t,f){return Se(this,void 0,void 0,(function*(){return yield this.compiler.compile(t,f).generateAsync({type:"blob",mimeType:"application/vnd.openxmlformats-officedocument.wordprocessingml.document",compression:"DEFLATE"})}))}static toStream(t,f){return this.compiler.compile(t,f).generateNodeStream({type:"nodebuffer",streamFiles:!0,mimeType:"application/vnd.openxmlformats-officedocument.wordprocessingml.document",compression:"DEFLATE"})}}us.compiler=new class{constructor(){this.formatter=new Ja,this.imageReplacer=new Qa,this.numberingReplacer=new tc}compile(e,t){const f=new mr,H=this.xmlifyFile(e,t),J=new Map(Object.entries(H));for(const[,tt]of J)if(Array.isArray(tt))for(const ut of tt)f.file(ut.path,ut.data);else f.file(tt.path,tt.data);for(const tt of e.Media.Array){const ut=tt.stream;f.file(`word/media/${tt.fileName}`,ut)}return f}xmlifyFile(e,t){const f=e.Document.Relationships.RelationshipCount+1,H=kt(this.formatter.format(e.Document.View,{viewWrapper:e.Document,file:e}),{indent:t,declaration:{standalone:"yes",encoding:"UTF-8"}}),J=this.imageReplacer.getMediaData(H,e.Media);return{Relationships:{data:(J.forEach(((tt,ut)=>{e.Document.Relationships.createRelationship(f+ut,"http://schemas.openxmlformats.org/officeDocument/2006/relationships/image",`media/${tt.fileName}`)})),kt(this.formatter.format(e.Document.Relationships,{viewWrapper:e.Document,file:e}),{indent:t,declaration:{encoding:"UTF-8"}})),path:"word/_rels/document.xml.rels"},Document:{data:(()=>{const tt=this.imageReplacer.replace(H,J,f);return this.numberingReplacer.replace(tt,e.Numbering.ConcreteNumbering)})(),path:"word/document.xml"},Styles:{data:(()=>{const tt=kt(this.formatter.format(e.Styles,{viewWrapper:e.Document,file:e}),{indent:t,declaration:{standalone:"yes",encoding:"UTF-8"}});return this.numberingReplacer.replace(tt,e.Numbering.ConcreteNumbering)})(),path:"word/styles.xml"},Properties:{data:kt(this.formatter.format(e.CoreProperties,{viewWrapper:e.Document,file:e}),{indent:t,declaration:{standalone:"yes",encoding:"UTF-8"}}),path:"docProps/core.xml"},Numbering:{data:kt(this.formatter.format(e.Numbering,{viewWrapper:e.Document,file:e}),{indent:t,declaration:{standalone:"yes",encoding:"UTF-8"}}),path:"word/numbering.xml"},FileRelationships:{data:kt(this.formatter.format(e.FileRelationships,{viewWrapper:e.Document,file:e}),{indent:t,declaration:{encoding:"UTF-8"}}),path:"_rels/.rels"},HeaderRelationships:e.Headers.map(((tt,ut)=>{const dt=kt(this.formatter.format(tt.View,{viewWrapper:tt,file:e}),{indent:t,declaration:{encoding:"UTF-8"}});return this.imageReplacer.getMediaData(dt,e.Media).forEach(((_t,pt)=>{tt.Relationships.createRelationship(pt,"http://schemas.openxmlformats.org/officeDocument/2006/relationships/image",`media/${_t.fileName}`)})),{data:kt(this.formatter.format(tt.Relationships,{viewWrapper:tt,file:e}),{indent:t,declaration:{encoding:"UTF-8"}}),path:`word/_rels/header${ut+1}.xml.rels`}})),FooterRelationships:e.Footers.map(((tt,ut)=>{const dt=kt(this.formatter.format(tt.View,{viewWrapper:tt,file:e}),{indent:t,declaration:{encoding:"UTF-8"}});return this.imageReplacer.getMediaData(dt,e.Media).forEach(((_t,pt)=>{tt.Relationships.createRelationship(pt,"http://schemas.openxmlformats.org/officeDocument/2006/relationships/image",`media/${_t.fileName}`)})),{data:kt(this.formatter.format(tt.Relationships,{viewWrapper:tt,file:e}),{indent:t,declaration:{encoding:"UTF-8"}}),path:`word/_rels/footer${ut+1}.xml.rels`}})),Headers:e.Headers.map(((tt,ut)=>{const dt=kt(this.formatter.format(tt.View,{viewWrapper:tt,file:e}),{indent:t,declaration:{encoding:"UTF-8"}}),_t=this.imageReplacer.getMediaData(dt,e.Media),pt=this.imageReplacer.replace(dt,_t,0);return{data:this.numberingReplacer.replace(pt,e.Numbering.ConcreteNumbering),path:`word/header${ut+1}.xml`}})),Footers:e.Footers.map(((tt,ut)=>{const dt=kt(this.formatter.format(tt.View,{viewWrapper:tt,file:e}),{indent:t,declaration:{encoding:"UTF-8"}}),_t=this.imageReplacer.getMediaData(dt,e.Media),pt=this.imageReplacer.replace(dt,_t,0);return{data:this.numberingReplacer.replace(pt,e.Numbering.ConcreteNumbering),path:`word/footer${ut+1}.xml`}})),ContentTypes:{data:kt(this.formatter.format(e.ContentTypes,{viewWrapper:e.Document,file:e}),{indent:t,declaration:{encoding:"UTF-8"}}),path:"[Content_Types].xml"},CustomProperties:{data:kt(this.formatter.format(e.CustomProperties,{viewWrapper:e.Document,file:e}),{indent:t,declaration:{standalone:"yes",encoding:"UTF-8"}}),path:"docProps/custom.xml"},AppProperties:{data:kt(this.formatter.format(e.AppProperties,{viewWrapper:e.Document,file:e}),{indent:t,declaration:{standalone:"yes",encoding:"UTF-8"}}),path:"docProps/app.xml"},FootNotes:{data:kt(this.formatter.format(e.FootNotes.View,{viewWrapper:e.FootNotes,file:e}),{indent:t,declaration:{encoding:"UTF-8"}}),path:"word/footnotes.xml"},FootNotesRelationships:{data:kt(this.formatter.format(e.FootNotes.Relationships,{viewWrapper:e.FootNotes,file:e}),{indent:t,declaration:{encoding:"UTF-8"}}),path:"word/_rels/footnotes.xml.rels"},Settings:{data:kt(this.formatter.format(e.Settings,{viewWrapper:e.Document,file:e}),{indent:t,declaration:{standalone:"yes",encoding:"UTF-8"}}),path:"word/settings.xml"},Comments:{data:kt(this.formatter.format(e.Comments,{viewWrapper:e.Document,file:e}),{indent:t,declaration:{standalone:"yes",encoding:"UTF-8"}}),path:"word/comments.xml"}}}};var oe=function(e,t,f,H){return new(f||(f=Promise))((function(J,tt){function ut(pt){try{_t(H.next(pt))}catch(gt){tt(gt)}}function dt(pt){try{_t(H.throw(pt))}catch(gt){tt(gt)}}function _t(pt){var gt;pt.done?J(pt.value):(gt=pt.value,gt instanceof f?gt:new f((function(Lt){Lt(gt)}))).then(ut,dt)}_t((H=H.apply(e,[])).next())}))};const ec={"http://schemas.openxmlformats.org/officeDocument/2006/relationships/header":"header","http://schemas.openxmlformats.org/officeDocument/2006/relationships/footer":"footer","http://schemas.openxmlformats.org/officeDocument/2006/relationships/image":"image","http://schemas.openxmlformats.org/officeDocument/2006/relationships/hyperlink":"hyperlink"};var Ie;(function(e){e.HEADER="header",e.FOOTER="footer",e.IMAGE="image",e.HYPERLINK="hyperlink"})(Ie||(Ie={}));class rc{extract(t){return oe(this,void 0,void 0,(function*(){const f=yield mr.loadAsync(t),H=yield f.files["word/document.xml"].async("text"),J=yield f.files["word/_rels/document.xml.rels"].async("text"),tt=this.extractDocumentRefs(H),ut=this.findReferenceFiles(J),dt=new lr;return{headers:yield this.createHeaders(f,tt,ut,dt,0),footers:yield this.createFooters(f,tt,ut,dt,tt.headers.length),currentRelationshipId:tt.footers.length+tt.headers.length,styles:yield f.files["word/styles.xml"].async("text"),titlePageIsDefined:this.checkIfTitlePageIsDefined(H),media:dt}}))}createFooters(t,f,H,J,tt){return oe(this,void 0,void 0,(function*(){const ut=f.footers.map(((dt,_t)=>oe(this,void 0,void 0,(function*(){const pt=H.find((Pt=>Pt.id===dt.id));if(pt===null||!pt)throw new Error(`Can not find target file for id ${dt.id}`);const gt=yield t.files[`word/${pt.target}`].async("text"),Lt=(0,g.xml2js)(gt,{compact:!1,captureSpacesBetweenElements:!0});if(!Lt.elements)return;const St=Lt.elements.reduce(((Pt,Kt)=>Kt.name==="w:ftr"?Kt:Pt)),Dt=I(St),zt=new ar(J,tt+_t,Dt);return yield this.addRelationshipToWrapper(pt,t,zt,J),{type:dt.type,footer:zt}})))).filter((dt=>!!dt));return Promise.all(ut)}))}createHeaders(t,f,H,J,tt){return oe(this,void 0,void 0,(function*(){const ut=f.headers.map(((dt,_t)=>oe(this,void 0,void 0,(function*(){const pt=H.find((Pt=>Pt.id===dt.id));if(pt===null||!pt)throw new Error(`Can not find target file for id ${dt.id}`);const gt=yield t.files[`word/${pt.target}`].async("text"),Lt=(0,g.xml2js)(gt,{compact:!1,captureSpacesBetweenElements:!0});if(!Lt.elements)return;const St=Lt.elements.reduce(((Pt,Kt)=>Kt.name==="w:hdr"?Kt:Pt)),Dt=I(St),zt=new ur(J,tt+_t,Dt);return yield this.addRelationshipToWrapper(pt,t,zt,J),{type:dt.type,header:zt}})))).filter((dt=>!!dt));return Promise.all(ut)}))}addRelationshipToWrapper(t,f,H,J){return oe(this,void 0,void 0,(function*(){const tt=f.files[`word/_rels/${t.target}.rels`];if(!tt)return;const ut=yield tt.async("text"),dt=this.findReferenceFiles(ut).filter((pt=>pt.type===Ie.IMAGE)),_t=this.findReferenceFiles(ut).filter((pt=>pt.type===Ie.HYPERLINK));for(const pt of dt){const gt=mr.support.arraybuffer?"arraybuffer":"nodebuffer",Lt=yield f.files[`word/${pt.target}`].async(gt),St=J.addMedia(Lt,{width:100,height:100});H.Relationships.createRelationship(pt.id,"http://schemas.openxmlformats.org/officeDocument/2006/relationships/image",`media/${St.fileName}`)}for(const pt of _t)H.Relationships.createRelationship(pt.id,"http://schemas.openxmlformats.org/officeDocument/2006/relationships/hyperlink",pt.target,be.EXTERNAL)}))}findReferenceFiles(t){const f=(0,g.xml2js)(t,{compact:!0});return(Array.isArray(f.Relationships.Relationship)?f.Relationships.Relationship:[f.Relationships.Relationship]).map((H=>{if(H._attributes===void 0)throw Error("relationship element has no attributes");return{id:this.parseRefId(H._attributes.Id),type:ec[H._attributes.Type],target:H._attributes.Target}})).filter((H=>H.type!==null))}extractDocumentRefs(t){const f=(0,g.xml2js)(t,{compact:!0})["w:document"]["w:body"]["w:sectPr"],H=f["w:headerReference"];let J;J=H===void 0?[]:Array.isArray(H)?H:[H];const tt=J.map((_t=>{if(_t._attributes===void 0)throw Error("header reference element has no attributes");return{type:_t._attributes["w:type"],id:this.parseRefId(_t._attributes["r:id"])}})),ut=f["w:footerReference"];let dt;return dt=ut===void 0?[]:Array.isArray(ut)?ut:[ut],{headers:tt,footers:dt.map((_t=>{if(_t._attributes===void 0)throw Error("footer reference element has no attributes");return{type:_t._attributes["w:type"],id:this.parseRefId(_t._attributes["r:id"])}}))}}checkIfTitlePageIsDefined(t){return(0,g.xml2js)(t,{compact:!0})["w:document"]["w:body"]["w:sectPr"]["w:titlePg"]!==void 0}parseRefId(t){const f=/^rId(\d+)$/.exec(t);if(f===null)throw new Error("Invalid ref id");return parseInt(f[1],10)}}var Ct=ct(5575)})(),xt})()))})(yr)),yr.exports}var Nt=oc();let br=null,xr=null,vr=null;async function ic(){return br||(br=Promise.resolve().then(()=>require("./index-CvJk4DKa.js")).then(bt=>bt.index)),br}async function ac(){return xr||(xr=Promise.resolve().then(()=>require("./jspdf.es.min-BoS80556.js")).then(bt=>bt.jspdf_es_min)),xr}async function cc(){return vr||(vr=Promise.resolve().then(()=>require("./html2canvas.esm-B5qzocYs.js"))),vr}async function uc(bt){const vt=await ic();return new Promise((ot,mt)=>{const ct=new FileReader;ct.onload=async xt=>{try{const z=xt.target?.result,P=await vt.convertToHtml({arrayBuffer:z});ot(P.value)}catch(z){mt(new Error(`Failed to import Word document: ${z}`))}},ct.onerror=()=>mt(new Error("Failed to read file")),ct.readAsArrayBuffer(bt)})}async function lc(bt,vt="document.docx"){const mt=wr.getDocumentManagerConfig().useClientSideFallback??!0;try{const ct=wr.getApiUrl("exportWord"),xt=wr.getApiHeaders(),z=await fetch(ct,{method:"POST",headers:{"Content-Type":"application/json",...xt},body:JSON.stringify({htmlContent:bt,filename:vt})});if(!z.ok){const r=await z.json().catch(()=>({error:"Unknown error"}));throw new Error(r.error||"Failed to export document")}const P=await z.blob();ys(P,vt)}catch(ct){if(mt){console.warn("API export failed, falling back to client-side generation:",ct);try{const xt=bs(bt),z=await Nt.Packer.toBlob(xt);ys(z,vt),console.info("✅ Document exported successfully using client-side generation")}catch(xt){throw new Error(`Failed to export to Word (both API and client-side): ${xt}`)}}else throw new Error(`Failed to export to Word via API: ${ct}`)}}async function hc(bt,vt="document.pdf",ot){try{const ct=(await ac()).default,xt=new ct({orientation:"portrait",unit:"mm",format:"a4"}),z=20,P=xt.internal.pageSize.getWidth(),r=xt.internal.pageSize.getHeight(),a=P-2*z,i=r-2*z;if(ot){const l=ot.style.position,g=ot.style.overflow,I=ot.style.height,p=ot.style.maxHeight;ot.style.position="relative",ot.style.overflow="visible",ot.style.height="auto",ot.style.maxHeight="none",ot.offsetHeight;try{const N=(await cc()).default,_=await N(ot,{scale:2,useCORS:!0,allowTaint:!0,backgroundColor:"#ffffff",width:ot.scrollWidth,height:ot.scrollHeight,scrollX:0,scrollY:0,windowWidth:ot.scrollWidth,windowHeight:ot.scrollHeight});ot.style.position=l,ot.style.overflow=g,ot.style.height=I,ot.style.maxHeight=p;const y=_.toDataURL("image/png"),h=a,u=_.height*h/_.width;if(u<=i)xt.addImage(y,"PNG",z,z,h,u);else{const m=_.height/u,E=m*i,O=Math.ceil(_.height/E);for(let M=0;M<O;M++){M>0&&xt.addPage();const d=document.createElement("canvas"),b=d.getContext("2d");d.width=_.width;const C=M*E,x=_.height-C,D=Math.min(E,x);d.height=D,b.drawImage(_,0,C,_.width,D,0,0,_.width,D);const n=d.toDataURL("image/png"),B=D/m;xt.addImage(n,"PNG",z,z,h,Math.min(B,i))}}}catch(S){throw ot.style.position=l,ot.style.overflow=g,ot.style.height=I,ot.style.maxHeight=p,S}}else{const l=bc(bt).split(`
|
|
16
|
+
`);let g=z;l.forEach(I=>{g>r-z&&(xt.addPage(),g=z),xt.text(I,z,g),g+=7})}xt.save(vt)}catch(mt){throw new Error(`Failed to export to PDF: ${mt}`)}}function bs(bt){const vt=document.createElement("div");vt.innerHTML=bt;const ot=[];return Array.from(vt.children).forEach(mt=>{const ct=mt.tagName;ct.match(/^H[1-6]$/)?ot.push(pc(mt)):ct==="P"?ot.push(gs(mt)):ct==="TABLE"?ot.push(wc(mt)):ct==="UL"||ct==="OL"?ot.push(...yc(mt,ct==="OL")):ct==="BLOCKQUOTE"?ot.push(dc(mt)):ct==="PRE"||ct==="CODE"?ot.push(fc(mt)):ct==="HR"?ot.push(mc()):mt.textContent?.trim()&&ot.push(gs(mt))}),ot.length===0&&ot.push(new Nt.Paragraph({children:[new Nt.TextRun({text:""})]})),new Nt.Document({sections:[{properties:{},children:ot}]})}function pc(bt){const vt=parseInt(bt.tagName.charAt(1)),ot=fe(bt),mt=xs(bt),ct={1:32,2:28,3:26,4:24,5:22,6:20};return new Nt.Paragraph({children:ot.map(xt=>{const z=new Nt.TextRun({text:xt.text,bold:xt.bold||vt<=3,italics:xt.italic,underline:xt.underline?{}:void 0,color:xt.color,size:ct[vt],font:xt.font});return xt.link?new Nt.TextRun({...z,style:"Hyperlink"}):z}),heading:`Heading${vt}`,alignment:mt,spacing:{before:240,after:120}})}function gs(bt){const vt=fe(bt),ot=xs(bt),mt=gc(bt);return new Nt.Paragraph({children:vt.map(ct=>{const xt={text:ct.text,bold:ct.bold,italics:ct.italic,underline:ct.underline?{}:void 0,strike:ct.strike,color:ct.color,size:ct.size,font:ct.font,highlight:ct.highlight};return ct.link&&(xt.style="Hyperlink"),new Nt.TextRun(xt)}),alignment:ot,indent:mt})}function dc(bt){const vt=fe(bt);return new Nt.Paragraph({children:vt.map(ot=>new Nt.TextRun({text:ot.text,bold:ot.bold,italics:ot.italic||!0,underline:ot.underline?{}:void 0,color:ot.color||"666666",size:ot.size})),indent:{left:720},border:{left:{color:"CCCCCC",space:1,style:"single",size:6}}})}function fc(bt){const vt=bt.textContent||"";return new Nt.Paragraph({children:[new Nt.TextRun({text:vt,font:"Courier New",size:20})],shading:{fill:"F5F5F5",type:"solid"},indent:{left:360},spacing:{before:120,after:120}})}function mc(){return new Nt.Paragraph({children:[new Nt.TextRun({text:""})],border:{bottom:{color:"CCCCCC",space:1,style:"single",size:6}},spacing:{before:120,after:120}})}function fe(bt){const vt=[];function ot(mt,ct={}){if(mt.nodeType===Node.TEXT_NODE){const xt=mt.textContent||"";(xt.trim()||xt.includes(" "))&&vt.push({text:xt,...ct})}else if(mt.nodeType===Node.ELEMENT_NODE){const xt=mt,z={...ct},P=xt.tagName;if((P==="STRONG"||P==="B")&&(z.bold=!0),(P==="EM"||P==="I")&&(z.italic=!0),P==="U"&&(z.underline=!0),(P==="S"||P==="STRIKE"||P==="DEL")&&(z.strike=!0),P==="A"){const a=xt.href;a&&(z.link=a,z.color="0563C1",z.underline=!0)}if(P==="BR"){vt.push({text:`
|
|
17
|
+
`,...ct});return}P==="CODE"&&(z.font="Courier New",xt.closest("pre")||(z.highlight="F5F5F5")),P==="MARK"&&(z.highlight="FFFF00"),(P==="SUB"||P==="SUP")&&(z.size=(z.size||24)*.7);const r=xt.style;if((r.fontWeight==="bold"||parseInt(r.fontWeight)>=600)&&(z.bold=!0),r.fontStyle==="italic"&&(z.italic=!0),r.textDecoration?.includes("underline")&&(z.underline=!0),r.textDecoration?.includes("line-through")&&(z.strike=!0),r.color&&(z.color=ws(r.color)),r.backgroundColor&&(z.highlight=ws(r.backgroundColor)),r.fontSize){const a=parseInt(r.fontSize);isNaN(a)||(z.size=Math.round(a*1.33))}r.fontFamily&&(z.font=r.fontFamily.replace(/['"]/g,"").split(",")[0].trim()),Array.from(xt.childNodes).forEach(a=>ot(a,z))}}return Array.from(bt.childNodes).forEach(mt=>ot(mt)),vt.length===0&&bt.textContent?.trim()&&vt.push({text:bt.textContent.trim()}),vt}function xs(bt){const ot=bt.style.textAlign;if(ot==="center")return"center";if(ot==="right")return"right";if(ot==="justify")return"justify";if(ot==="left")return"left"}function gc(bt){const ot=bt.style,mt={};if(ot.marginLeft||ot.paddingLeft){const ct=parseInt(ot.marginLeft||ot.paddingLeft);!isNaN(ct)&&ct>0&&(mt.left=Math.round(ct*14.4))}if(ot.marginRight||ot.paddingRight){const ct=parseInt(ot.marginRight||ot.paddingRight);!isNaN(ct)&&ct>0&&(mt.right=Math.round(ct*14.4))}return Object.keys(mt).length>0?mt:void 0}function ws(bt){if(bt.startsWith("#"))return bt.substring(1).toUpperCase();const vt=bt.match(/rgba?\((\d+),\s*(\d+),\s*(\d+)/);if(vt){const mt=parseInt(vt[1]),ct=parseInt(vt[2]),xt=parseInt(vt[3]);return(mt<<16|ct<<8|xt).toString(16).padStart(6,"0").toUpperCase()}return{black:"000000",white:"FFFFFF",red:"FF0000",green:"008000",blue:"0000FF",yellow:"FFFF00",cyan:"00FFFF",magenta:"FF00FF",gray:"808080",grey:"808080"}[bt.toLowerCase()]||"000000"}function wc(bt){const vt=[];return bt.querySelectorAll("tr").forEach(mt=>{const ct=[];mt.querySelectorAll("td, th").forEach(z=>{const P=fe(z),r=z.tagName==="TH";ct.push(new Nt.TableCell({children:[new Nt.Paragraph({children:P.map(a=>{const i={text:a.text,bold:a.bold||r,italics:a.italic,underline:a.underline?{}:void 0,strike:a.strike,color:a.color,size:a.size,font:a.font,highlight:a.highlight};return a.link&&(i.style="Hyperlink"),new Nt.TextRun(i)})})],shading:r?{fill:"E0E0E0",type:"solid"}:void 0}))}),vt.push(new Nt.TableRow({children:ct}))}),new Nt.Table({rows:vt,width:{size:100,type:"pct"}})}function yc(bt,vt=!1){const ot=[];return bt.querySelectorAll("li").forEach((ct,xt)=>{const z=fe(ct),P=vt?`${xt+1}.`:"•";ot.push(new Nt.Paragraph({children:[new Nt.TextRun({text:`${P} `,bold:!1}),...z.map(r=>{const a={text:r.text,bold:r.bold,italics:r.italic,underline:r.underline?{}:void 0,strike:r.strike,color:r.color,size:r.size,font:r.font,highlight:r.highlight};return r.link&&(a.style="Hyperlink"),new Nt.TextRun(a)})],indent:{left:720},spacing:{after:120}}))}),ot}function bc(bt){const vt=document.createElement("div");return vt.innerHTML=bt,vt.textContent||vt.innerText||""}function ys(bt,vt){const ot=URL.createObjectURL(bt),mt=document.createElement("a");mt.href=ot,mt.download=vt,document.body.appendChild(mt),mt.click(),document.body.removeChild(mt),URL.revokeObjectURL(ot)}exports.exportToPdf=hc;exports.exportToWord=lc;exports.htmlToDocx=bs;exports.importFromWord=uc;
|