cycls 0.0.2.103__py3-none-any.whl → 0.0.2.105__py3-none-any.whl
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.
- cycls/app.py +2 -1
- cycls/themes/default/assets/FileSaver.min-D3FSkpuq.js +1 -0
- cycls/themes/default/assets/html2canvas.esm-CBrSDip1.js +22 -0
- cycls/themes/default/assets/index-DMDqC1yz.js +719 -0
- cycls/themes/default/assets/index-q-dOswxc.css +1 -0
- cycls/themes/default/assets/index-vX_oGdsN.js +29 -0
- cycls/themes/default/assets/index.es-C6RWrIg8.js +18 -0
- cycls/themes/default/assets/jspdf.es.min-Cx6CH6ND.js +146 -0
- cycls/themes/default/index.html +2 -2
- cycls/web.py +17 -14
- {cycls-0.0.2.103.dist-info → cycls-0.0.2.105.dist-info}/METADATA +1 -1
- cycls-0.0.2.105.dist-info/RECORD +20 -0
- cycls/themes/default/assets/FileSaver.min-BN40akLc.js +0 -1
- cycls/themes/default/assets/html2canvas.esm-QH1iLAAe.js +0 -22
- cycls/themes/default/assets/index-3AQCbjkB.js +0 -29
- cycls/themes/default/assets/index-CjN0qc53.css +0 -1
- cycls/themes/default/assets/index-qcHL6SRo.js +0 -719
- cycls/themes/default/assets/index.es-BmxgotDY.js +0 -18
- cycls/themes/default/assets/jspdf.es.min-CvOy4co6.js +0 -146
- cycls-0.0.2.103.dist-info/RECORD +0 -20
- {cycls-0.0.2.103.dist-info → cycls-0.0.2.105.dist-info}/WHEEL +0 -0
- {cycls-0.0.2.103.dist-info → cycls-0.0.2.105.dist-info}/entry_points.txt +0 -0
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
var _u=Object.defineProperty,Eu=Object.defineProperties,xu=Object.getOwnPropertyDescriptors,Yt=Object.getOwnPropertySymbols,Qa=Object.prototype.hasOwnProperty,eo=Object.prototype.propertyIsEnumerable,li=(t,e,r)=>e in t?_u(t,e,{enumerable:!0,configurable:!0,writable:!0,value:r}):t[e]=r,me=(t,e)=>{for(var r in e||(e={}))Qa.call(e,r)&&li(t,r,e[r]);if(Yt)for(var r of Yt(e))eo.call(e,r)&&li(t,r,e[r]);return t},Re=(t,e)=>Eu(t,xu(e)),Tu=(t,e)=>{var r={};for(var i in t)Qa.call(t,i)&&e.indexOf(i)<0&&(r[i]=t[i]);if(t!=null&&Yt)for(var i of Yt(t))e.indexOf(i)<0&&eo.call(t,i)&&(r[i]=t[i]);return r},ee=(t,e,r)=>li(t,typeof e!="symbol"?e+"":e,r),vi=(t,e,r)=>new Promise((i,o)=>{var u=h=>{try{n(r.next(h))}catch(_){o(_)}},f=h=>{try{n(r.throw(h))}catch(_){o(_)}},n=h=>h.done?i(h.value):Promise.resolve(h.value).then(u,f);n((r=r.apply(t,e)).next())});class Jt{constructor(e){ee(this,"rootKey"),this.rootKey=e}}const Au=Object.seal({});class X extends Jt{constructor(e){super(e),ee(this,"root"),this.root=new Array}prepForXml(e){var r;e.stack.push(this);const i=this.root.map(o=>o instanceof Jt?o.prepForXml(e):o).filter(o=>o!==void 0);return e.stack.pop(),{[this.rootKey]:i.length?i.length===1&&((r=i[0])!=null&&r._attr)?i[0]:i:Au}}addChildElement(e){return this.root.push(e),this}}class Ye extends X{prepForXml(e){const r=super.prepForXml(e);if(r&&(typeof r[this.rootKey]!="object"||Object.keys(r[this.rootKey]).length))return r}}class fe extends Jt{constructor(e){super("_attr"),ee(this,"xmlKeys"),this.root=e}prepForXml(e){const r={};return Object.entries(this.root).forEach(([i,o])=>{if(o!==void 0){const u=this.xmlKeys&&this.xmlKeys[i]||i;r[u]=o}}),{_attr:r}}}class Le extends Jt{constructor(e){super("_attr"),this.root=e}prepForXml(e){return{_attr:Object.values(this.root).filter(({value:i})=>i!==void 0).reduce((i,{key:o,value:u})=>Re(me({},i),{[o]:u}),{})}}}class _e extends fe{constructor(){super(...arguments),ee(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 We=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function bi(t){return t&&t.__esModule&&Object.prototype.hasOwnProperty.call(t,"default")?t.default:t}var wr={},jt={exports:{}},Ui;function _i(){if(Ui)return jt.exports;Ui=1;var t=typeof Reflect=="object"?Reflect:null,e=t&&typeof t.apply=="function"?t.apply:function(S,L,F){return Function.prototype.apply.call(S,L,F)},r;t&&typeof t.ownKeys=="function"?r=t.ownKeys:Object.getOwnPropertySymbols?r=function(S){return Object.getOwnPropertyNames(S).concat(Object.getOwnPropertySymbols(S))}:r=function(S){return Object.getOwnPropertyNames(S)};function i(c){console&&console.warn&&console.warn(c)}var o=Number.isNaN||function(S){return S!==S};function u(){u.init.call(this)}jt.exports=u,jt.exports.once=l,u.EventEmitter=u,u.prototype._events=void 0,u.prototype._eventsCount=0,u.prototype._maxListeners=void 0;var f=10;function n(c){if(typeof c!="function")throw new TypeError('The "listener" argument must be of type Function. Received type '+typeof c)}Object.defineProperty(u,"defaultMaxListeners",{enumerable:!0,get:function(){return f},set:function(c){if(typeof c!="number"||c<0||o(c))throw new RangeError('The value of "defaultMaxListeners" is out of range. It must be a non-negative number. Received '+c+".");f=c}}),u.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},u.prototype.setMaxListeners=function(S){if(typeof S!="number"||S<0||o(S))throw new RangeError('The value of "n" is out of range. It must be a non-negative number. Received '+S+".");return this._maxListeners=S,this};function h(c){return c._maxListeners===void 0?u.defaultMaxListeners:c._maxListeners}u.prototype.getMaxListeners=function(){return h(this)},u.prototype.emit=function(S){for(var L=[],F=1;F<arguments.length;F++)L.push(arguments[F]);var W=S==="error",k=this._events;if(k!==void 0)W=W&&k.error===void 0;else if(!W)return!1;if(W){var Z;if(L.length>0&&(Z=L[0]),Z instanceof Error)throw Z;var ue=new Error("Unhandled error."+(Z?" ("+Z.message+")":""));throw ue.context=Z,ue}var C=k[S];if(C===void 0)return!1;if(typeof C=="function")e(C,this,L);else for(var U=C.length,g=A(C,U),F=0;F<U;++F)e(g[F],this,L);return!0};function _(c,S,L,F){var W,k,Z;if(n(L),k=c._events,k===void 0?(k=c._events=Object.create(null),c._eventsCount=0):(k.newListener!==void 0&&(c.emit("newListener",S,L.listener?L.listener:L),k=c._events),Z=k[S]),Z===void 0)Z=k[S]=L,++c._eventsCount;else if(typeof Z=="function"?Z=k[S]=F?[L,Z]:[Z,L]:F?Z.unshift(L):Z.push(L),W=h(c),W>0&&Z.length>W&&!Z.warned){Z.warned=!0;var ue=new Error("Possible EventEmitter memory leak detected. "+Z.length+" "+String(S)+" listeners added. Use emitter.setMaxListeners() to increase limit");ue.name="MaxListenersExceededWarning",ue.emitter=c,ue.type=S,ue.count=Z.length,i(ue)}return c}u.prototype.addListener=function(S,L){return _(this,S,L,!1)},u.prototype.on=u.prototype.addListener,u.prototype.prependListener=function(S,L){return _(this,S,L,!0)};function E(){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 R(c,S,L){var F={fired:!1,wrapFn:void 0,target:c,type:S,listener:L},W=E.bind(F);return W.listener=L,F.wrapFn=W,W}u.prototype.once=function(S,L){return n(L),this.on(S,R(this,S,L)),this},u.prototype.prependOnceListener=function(S,L){return n(L),this.prependListener(S,R(this,S,L)),this},u.prototype.removeListener=function(S,L){var F,W,k,Z,ue;if(n(L),W=this._events,W===void 0)return this;if(F=W[S],F===void 0)return this;if(F===L||F.listener===L)--this._eventsCount===0?this._events=Object.create(null):(delete W[S],W.removeListener&&this.emit("removeListener",S,F.listener||L));else if(typeof F!="function"){for(k=-1,Z=F.length-1;Z>=0;Z--)if(F[Z]===L||F[Z].listener===L){ue=F[Z].listener,k=Z;break}if(k<0)return this;k===0?F.shift():v(F,k),F.length===1&&(W[S]=F[0]),W.removeListener!==void 0&&this.emit("removeListener",S,ue||L)}return this},u.prototype.off=u.prototype.removeListener,u.prototype.removeAllListeners=function(S){var L,F,W;if(F=this._events,F===void 0)return this;if(F.removeListener===void 0)return arguments.length===0?(this._events=Object.create(null),this._eventsCount=0):F[S]!==void 0&&(--this._eventsCount===0?this._events=Object.create(null):delete F[S]),this;if(arguments.length===0){var k=Object.keys(F),Z;for(W=0;W<k.length;++W)Z=k[W],Z!=="removeListener"&&this.removeAllListeners(Z);return this.removeAllListeners("removeListener"),this._events=Object.create(null),this._eventsCount=0,this}if(L=F[S],typeof L=="function")this.removeListener(S,L);else if(L!==void 0)for(W=L.length-1;W>=0;W--)this.removeListener(S,L[W]);return this};function I(c,S,L){var F=c._events;if(F===void 0)return[];var W=F[S];return W===void 0?[]:typeof W=="function"?L?[W.listener||W]:[W]:L?N(W):A(W,W.length)}u.prototype.listeners=function(S){return I(this,S,!0)},u.prototype.rawListeners=function(S){return I(this,S,!1)},u.listenerCount=function(c,S){return typeof c.listenerCount=="function"?c.listenerCount(S):w.call(c,S)},u.prototype.listenerCount=w;function w(c){var S=this._events;if(S!==void 0){var L=S[c];if(typeof L=="function")return 1;if(L!==void 0)return L.length}return 0}u.prototype.eventNames=function(){return this._eventsCount>0?r(this._events):[]};function A(c,S){for(var L=new Array(S),F=0;F<S;++F)L[F]=c[F];return L}function v(c,S){for(;S+1<c.length;S++)c[S]=c[S+1];c.pop()}function N(c){for(var S=new Array(c.length),L=0;L<S.length;++L)S[L]=c[L].listener||c[L];return S}function l(c,S){return new Promise(function(L,F){function W(Z){c.removeListener(S,k),F(Z)}function k(){typeof c.removeListener=="function"&&c.removeListener("error",W),L([].slice.call(arguments))}d(c,S,k,{once:!0}),S!=="error"&&b(c,W,{once:!0})})}function b(c,S,L){typeof c.on=="function"&&d(c,"error",S,L)}function d(c,S,L,F){if(typeof c.on=="function")F.once?c.once(S,L):c.on(S,L);else if(typeof c.addEventListener=="function")c.addEventListener(S,function W(k){F.once&&c.removeEventListener(S,W),L(k)});else throw new TypeError('The "emitter" argument must be of type EventEmitter. Received type '+typeof c)}return jt.exports}var zt={exports:{}},Hi;function tt(){return Hi||(Hi=1,typeof Object.create=="function"?zt.exports=function(e,r){r&&(e.super_=r,e.prototype=Object.create(r.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}))}:zt.exports=function(e,r){if(r){e.super_=r;var i=function(){};i.prototype=r.prototype,e.prototype=new i,e.prototype.constructor=e}}),zt.exports}function Su(t){return t&&t.__esModule&&Object.prototype.hasOwnProperty.call(t,"default")?t.default:t}var to={exports:{}},xe=to.exports={},Ue,He;function ci(){throw new Error("setTimeout has not been defined")}function hi(){throw new Error("clearTimeout has not been defined")}(function(){try{typeof setTimeout=="function"?Ue=setTimeout:Ue=ci}catch{Ue=ci}try{typeof clearTimeout=="function"?He=clearTimeout:He=hi}catch{He=hi}})();function ro(t){if(Ue===setTimeout)return setTimeout(t,0);if((Ue===ci||!Ue)&&setTimeout)return Ue=setTimeout,setTimeout(t,0);try{return Ue(t,0)}catch{try{return Ue.call(null,t,0)}catch{return Ue.call(this,t,0)}}}function Ru(t){if(He===clearTimeout)return clearTimeout(t);if((He===hi||!He)&&clearTimeout)return He=clearTimeout,clearTimeout(t);try{return He(t)}catch{try{return He.call(null,t)}catch{return He.call(this,t)}}}var $e=[],gt=!1,ot,Zt=-1;function Iu(){!gt||!ot||(gt=!1,ot.length?$e=ot.concat($e):Zt=-1,$e.length&&no())}function no(){if(!gt){var t=ro(Iu);gt=!0;for(var e=$e.length;e;){for(ot=$e,$e=[];++Zt<e;)ot&&ot[Zt].run();Zt=-1,e=$e.length}ot=null,gt=!1,Ru(t)}}xe.nextTick=function(t){var e=new Array(arguments.length-1);if(arguments.length>1)for(var r=1;r<arguments.length;r++)e[r-1]=arguments[r];$e.push(new io(t,e)),$e.length===1&&!gt&&ro(no)};function io(t,e){this.fun=t,this.array=e}io.prototype.run=function(){this.fun.apply(null,this.array)};xe.title="browser";xe.browser=!0;xe.env={};xe.argv=[];xe.version="";xe.versions={};function Je(){}xe.on=Je;xe.addListener=Je;xe.once=Je;xe.off=Je;xe.removeListener=Je;xe.removeAllListeners=Je;xe.emit=Je;xe.prependListener=Je;xe.prependOnceListener=Je;xe.listeners=function(t){return[]};xe.binding=function(t){throw new Error("process.binding is not supported")};xe.cwd=function(){return"/"};xe.chdir=function(t){throw new Error("process.chdir is not supported")};xe.umask=function(){return 0};var Nu=to.exports;const ge=Su(Nu);var gr,Wi;function so(){return Wi||(Wi=1,gr=_i().EventEmitter),gr}var yr={},At={},ji;function ku(){if(ji)return At;ji=1,At.byteLength=n,At.toByteArray=_,At.fromByteArray=I;for(var t=[],e=[],r=typeof Uint8Array<"u"?Uint8Array:Array,i="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",o=0,u=i.length;o<u;++o)t[o]=i[o],e[i.charCodeAt(o)]=o;e[45]=62,e[95]=63;function f(w){var A=w.length;if(A%4>0)throw new Error("Invalid string. Length must be a multiple of 4");var v=w.indexOf("=");v===-1&&(v=A);var N=v===A?0:4-v%4;return[v,N]}function n(w){var A=f(w),v=A[0],N=A[1];return(v+N)*3/4-N}function h(w,A,v){return(A+v)*3/4-v}function _(w){var A,v=f(w),N=v[0],l=v[1],b=new r(h(w,N,l)),d=0,c=l>0?N-4:N,S;for(S=0;S<c;S+=4)A=e[w.charCodeAt(S)]<<18|e[w.charCodeAt(S+1)]<<12|e[w.charCodeAt(S+2)]<<6|e[w.charCodeAt(S+3)],b[d++]=A>>16&255,b[d++]=A>>8&255,b[d++]=A&255;return l===2&&(A=e[w.charCodeAt(S)]<<2|e[w.charCodeAt(S+1)]>>4,b[d++]=A&255),l===1&&(A=e[w.charCodeAt(S)]<<10|e[w.charCodeAt(S+1)]<<4|e[w.charCodeAt(S+2)]>>2,b[d++]=A>>8&255,b[d++]=A&255),b}function E(w){return t[w>>18&63]+t[w>>12&63]+t[w>>6&63]+t[w&63]}function R(w,A,v){for(var N,l=[],b=A;b<v;b+=3)N=(w[b]<<16&16711680)+(w[b+1]<<8&65280)+(w[b+2]&255),l.push(E(N));return l.join("")}function I(w){for(var A,v=w.length,N=v%3,l=[],b=16383,d=0,c=v-N;d<c;d+=b)l.push(R(w,d,d+b>c?c:d+b));return N===1?(A=w[v-1],l.push(t[A>>2]+t[A<<4&63]+"==")):N===2&&(A=(w[v-2]<<8)+w[v-1],l.push(t[A>>10]+t[A>>4&63]+t[A<<2&63]+"=")),l.join("")}return At}var Gt={};/*! ieee754. BSD-3-Clause License. Feross Aboukhadijeh <https://feross.org/opensource> */var zi;function Cu(){return zi||(zi=1,Gt.read=function(t,e,r,i,o){var u,f,n=o*8-i-1,h=(1<<n)-1,_=h>>1,E=-7,R=r?o-1:0,I=r?-1:1,w=t[e+R];for(R+=I,u=w&(1<<-E)-1,w>>=-E,E+=n;E>0;u=u*256+t[e+R],R+=I,E-=8);for(f=u&(1<<-E)-1,u>>=-E,E+=i;E>0;f=f*256+t[e+R],R+=I,E-=8);if(u===0)u=1-_;else{if(u===h)return f?NaN:(w?-1:1)*(1/0);f=f+Math.pow(2,i),u=u-_}return(w?-1:1)*f*Math.pow(2,u-i)},Gt.write=function(t,e,r,i,o,u){var f,n,h,_=u*8-o-1,E=(1<<_)-1,R=E>>1,I=o===23?Math.pow(2,-24)-Math.pow(2,-77):0,w=i?0:u-1,A=i?1:-1,v=e<0||e===0&&1/e<0?1:0;for(e=Math.abs(e),isNaN(e)||e===1/0?(n=isNaN(e)?1:0,f=E):(f=Math.floor(Math.log(e)/Math.LN2),e*(h=Math.pow(2,-f))<1&&(f--,h*=2),f+R>=1?e+=I/h:e+=I*Math.pow(2,1-R),e*h>=2&&(f++,h/=2),f+R>=E?(n=0,f=E):f+R>=1?(n=(e*h-1)*Math.pow(2,o),f=f+R):(n=e*Math.pow(2,R-1)*Math.pow(2,o),f=0));o>=8;t[r+w]=n&255,w+=A,n/=256,o-=8);for(f=f<<o|n,_+=o;_>0;t[r+w]=f&255,w+=A,f/=256,_-=8);t[r+w-A]|=v*128}),Gt}/*!
|
|
2
|
+
* The buffer module from node.js, for the browser.
|
|
3
|
+
*
|
|
4
|
+
* @author Feross Aboukhadijeh <https://feross.org>
|
|
5
|
+
* @license MIT
|
|
6
|
+
*/var Gi;function er(){return Gi||(Gi=1,function(t){var e=ku(),r=Cu(),i=typeof Symbol=="function"&&typeof Symbol.for=="function"?Symbol.for("nodejs.util.inspect.custom"):null;t.Buffer=n,t.SlowBuffer=b,t.INSPECT_MAX_BYTES=50;var o=2147483647;t.kMaxLength=o,n.TYPED_ARRAY_SUPPORT=u(),!n.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.");function u(){try{var T=new Uint8Array(1),s={foo:function(){return 42}};return Object.setPrototypeOf(s,Uint8Array.prototype),Object.setPrototypeOf(T,s),T.foo()===42}catch{return!1}}Object.defineProperty(n.prototype,"parent",{enumerable:!0,get:function(){if(n.isBuffer(this))return this.buffer}}),Object.defineProperty(n.prototype,"offset",{enumerable:!0,get:function(){if(n.isBuffer(this))return this.byteOffset}});function f(T){if(T>o)throw new RangeError('The value "'+T+'" is invalid for option "size"');var s=new Uint8Array(T);return Object.setPrototypeOf(s,n.prototype),s}function n(T,s,a){if(typeof T=="number"){if(typeof s=="string")throw new TypeError('The "string" argument must be of type string. Received type number');return R(T)}return h(T,s,a)}n.poolSize=8192;function h(T,s,a){if(typeof T=="string")return I(T,s);if(ArrayBuffer.isView(T))return A(T);if(T==null)throw new TypeError("The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type "+typeof T);if(Q(T,ArrayBuffer)||T&&Q(T.buffer,ArrayBuffer)||typeof SharedArrayBuffer<"u"&&(Q(T,SharedArrayBuffer)||T&&Q(T.buffer,SharedArrayBuffer)))return v(T,s,a);if(typeof T=="number")throw new TypeError('The "value" argument must not be of type number. Received type number');var m=T.valueOf&&T.valueOf();if(m!=null&&m!==T)return n.from(m,s,a);var B=N(T);if(B)return B;if(typeof Symbol<"u"&&Symbol.toPrimitive!=null&&typeof T[Symbol.toPrimitive]=="function")return n.from(T[Symbol.toPrimitive]("string"),s,a);throw new TypeError("The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type "+typeof T)}n.from=function(T,s,a){return h(T,s,a)},Object.setPrototypeOf(n.prototype,Uint8Array.prototype),Object.setPrototypeOf(n,Uint8Array);function _(T){if(typeof T!="number")throw new TypeError('"size" argument must be of type number');if(T<0)throw new RangeError('The value "'+T+'" is invalid for option "size"')}function E(T,s,a){return _(T),T<=0?f(T):s!==void 0?typeof a=="string"?f(T).fill(s,a):f(T).fill(s):f(T)}n.alloc=function(T,s,a){return E(T,s,a)};function R(T){return _(T),f(T<0?0:l(T)|0)}n.allocUnsafe=function(T){return R(T)},n.allocUnsafeSlow=function(T){return R(T)};function I(T,s){if((typeof s!="string"||s==="")&&(s="utf8"),!n.isEncoding(s))throw new TypeError("Unknown encoding: "+s);var a=d(T,s)|0,m=f(a),B=m.write(T,s);return B!==a&&(m=m.slice(0,B)),m}function w(T){for(var s=T.length<0?0:l(T.length)|0,a=f(s),m=0;m<s;m+=1)a[m]=T[m]&255;return a}function A(T){if(Q(T,Uint8Array)){var s=new Uint8Array(T);return v(s.buffer,s.byteOffset,s.byteLength)}return w(T)}function v(T,s,a){if(s<0||T.byteLength<s)throw new RangeError('"offset" is outside of buffer bounds');if(T.byteLength<s+(a||0))throw new RangeError('"length" is outside of buffer bounds');var m;return s===void 0&&a===void 0?m=new Uint8Array(T):a===void 0?m=new Uint8Array(T,s):m=new Uint8Array(T,s,a),Object.setPrototypeOf(m,n.prototype),m}function N(T){if(n.isBuffer(T)){var s=l(T.length)|0,a=f(s);return a.length===0||T.copy(a,0,0,s),a}if(T.length!==void 0)return typeof T.length!="number"||p(T.length)?f(0):w(T);if(T.type==="Buffer"&&Array.isArray(T.data))return w(T.data)}function l(T){if(T>=o)throw new RangeError("Attempt to allocate Buffer larger than maximum size: 0x"+o.toString(16)+" bytes");return T|0}function b(T){return+T!=T&&(T=0),n.alloc(+T)}n.isBuffer=function(s){return s!=null&&s._isBuffer===!0&&s!==n.prototype},n.compare=function(s,a){if(Q(s,Uint8Array)&&(s=n.from(s,s.offset,s.byteLength)),Q(a,Uint8Array)&&(a=n.from(a,a.offset,a.byteLength)),!n.isBuffer(s)||!n.isBuffer(a))throw new TypeError('The "buf1", "buf2" arguments must be one of type Buffer or Uint8Array');if(s===a)return 0;for(var m=s.length,B=a.length,G=0,H=Math.min(m,B);G<H;++G)if(s[G]!==a[G]){m=s[G],B=a[G];break}return m<B?-1:B<m?1:0},n.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}},n.concat=function(s,a){if(!Array.isArray(s))throw new TypeError('"list" argument must be an Array of Buffers');if(s.length===0)return n.alloc(0);var m;if(a===void 0)for(a=0,m=0;m<s.length;++m)a+=s[m].length;var B=n.allocUnsafe(a),G=0;for(m=0;m<s.length;++m){var H=s[m];if(Q(H,Uint8Array))G+H.length>B.length?n.from(H).copy(B,G):Uint8Array.prototype.set.call(B,H,G);else if(n.isBuffer(H))H.copy(B,G);else throw new TypeError('"list" argument must be an Array of Buffers');G+=H.length}return B};function d(T,s){if(n.isBuffer(T))return T.length;if(ArrayBuffer.isView(T)||Q(T,ArrayBuffer))return T.byteLength;if(typeof T!="string")throw new TypeError('The "string" argument must be one of type string, Buffer, or ArrayBuffer. Received type '+typeof T);var a=T.length,m=arguments.length>2&&arguments[2]===!0;if(!m&&a===0)return 0;for(var B=!1;;)switch(s){case"ascii":case"latin1":case"binary":return a;case"utf8":case"utf-8":return y(T).length;case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return a*2;case"hex":return a>>>1;case"base64":return O(T).length;default:if(B)return m?-1:y(T).length;s=(""+s).toLowerCase(),B=!0}}n.byteLength=d;function c(T,s,a){var m=!1;if((s===void 0||s<0)&&(s=0),s>this.length||((a===void 0||a>this.length)&&(a=this.length),a<=0)||(a>>>=0,s>>>=0,a<=s))return"";for(T||(T="utf8");;)switch(T){case"hex":return re(this,s,a);case"utf8":case"utf-8":return g(this,s,a);case"ascii":return z(this,s,a);case"latin1":case"binary":return se(this,s,a);case"base64":return U(this,s,a);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return ce(this,s,a);default:if(m)throw new TypeError("Unknown encoding: "+T);T=(T+"").toLowerCase(),m=!0}}n.prototype._isBuffer=!0;function S(T,s,a){var m=T[s];T[s]=T[a],T[a]=m}n.prototype.swap16=function(){var s=this.length;if(s%2!==0)throw new RangeError("Buffer size must be a multiple of 16-bits");for(var a=0;a<s;a+=2)S(this,a,a+1);return this},n.prototype.swap32=function(){var s=this.length;if(s%4!==0)throw new RangeError("Buffer size must be a multiple of 32-bits");for(var a=0;a<s;a+=4)S(this,a,a+3),S(this,a+1,a+2);return this},n.prototype.swap64=function(){var s=this.length;if(s%8!==0)throw new RangeError("Buffer size must be a multiple of 64-bits");for(var a=0;a<s;a+=8)S(this,a,a+7),S(this,a+1,a+6),S(this,a+2,a+5),S(this,a+3,a+4);return this},n.prototype.toString=function(){var s=this.length;return s===0?"":arguments.length===0?g(this,0,s):c.apply(this,arguments)},n.prototype.toLocaleString=n.prototype.toString,n.prototype.equals=function(s){if(!n.isBuffer(s))throw new TypeError("Argument must be a Buffer");return this===s?!0:n.compare(this,s)===0},n.prototype.inspect=function(){var s="",a=t.INSPECT_MAX_BYTES;return s=this.toString("hex",0,a).replace(/(.{2})/g,"$1 ").trim(),this.length>a&&(s+=" ... "),"<Buffer "+s+">"},i&&(n.prototype[i]=n.prototype.inspect),n.prototype.compare=function(s,a,m,B,G){if(Q(s,Uint8Array)&&(s=n.from(s,s.offset,s.byteLength)),!n.isBuffer(s))throw new TypeError('The "target" argument must be one of type Buffer or Uint8Array. Received type '+typeof s);if(a===void 0&&(a=0),m===void 0&&(m=s?s.length:0),B===void 0&&(B=0),G===void 0&&(G=this.length),a<0||m>s.length||B<0||G>this.length)throw new RangeError("out of range index");if(B>=G&&a>=m)return 0;if(B>=G)return-1;if(a>=m)return 1;if(a>>>=0,m>>>=0,B>>>=0,G>>>=0,this===s)return 0;for(var H=G-B,ie=m-a,oe=Math.min(H,ie),ae=this.slice(B,G),he=s.slice(a,m),de=0;de<oe;++de)if(ae[de]!==he[de]){H=ae[de],ie=he[de];break}return H<ie?-1:ie<H?1:0};function L(T,s,a,m,B){if(T.length===0)return-1;if(typeof a=="string"?(m=a,a=0):a>2147483647?a=2147483647:a<-2147483648&&(a=-2147483648),a=+a,p(a)&&(a=B?0:T.length-1),a<0&&(a=T.length+a),a>=T.length){if(B)return-1;a=T.length-1}else if(a<0)if(B)a=0;else return-1;if(typeof s=="string"&&(s=n.from(s,m)),n.isBuffer(s))return s.length===0?-1:F(T,s,a,m,B);if(typeof s=="number")return s=s&255,typeof Uint8Array.prototype.indexOf=="function"?B?Uint8Array.prototype.indexOf.call(T,s,a):Uint8Array.prototype.lastIndexOf.call(T,s,a):F(T,[s],a,m,B);throw new TypeError("val must be string, number or Buffer")}function F(T,s,a,m,B){var G=1,H=T.length,ie=s.length;if(m!==void 0&&(m=String(m).toLowerCase(),m==="ucs2"||m==="ucs-2"||m==="utf16le"||m==="utf-16le")){if(T.length<2||s.length<2)return-1;G=2,H/=2,ie/=2,a/=2}function oe(Ie,Qe){return G===1?Ie[Qe]:Ie.readUInt16BE(Qe*G)}var ae;if(B){var he=-1;for(ae=a;ae<H;ae++)if(oe(T,ae)===oe(s,he===-1?0:ae-he)){if(he===-1&&(he=ae),ae-he+1===ie)return he*G}else he!==-1&&(ae-=ae-he),he=-1}else for(a+ie>H&&(a=H-ie),ae=a;ae>=0;ae--){for(var de=!0,we=0;we<ie;we++)if(oe(T,ae+we)!==oe(s,we)){de=!1;break}if(de)return ae}return-1}n.prototype.includes=function(s,a,m){return this.indexOf(s,a,m)!==-1},n.prototype.indexOf=function(s,a,m){return L(this,s,a,m,!0)},n.prototype.lastIndexOf=function(s,a,m){return L(this,s,a,m,!1)};function W(T,s,a,m){a=Number(a)||0;var B=T.length-a;m?(m=Number(m),m>B&&(m=B)):m=B;var G=s.length;m>G/2&&(m=G/2);for(var H=0;H<m;++H){var ie=parseInt(s.substr(H*2,2),16);if(p(ie))return H;T[a+H]=ie}return H}function k(T,s,a,m){return P(y(s,T.length-a),T,a,m)}function Z(T,s,a,m){return P(j(s),T,a,m)}function ue(T,s,a,m){return P(O(s),T,a,m)}function C(T,s,a,m){return P(M(s,T.length-a),T,a,m)}n.prototype.write=function(s,a,m,B){if(a===void 0)B="utf8",m=this.length,a=0;else if(m===void 0&&typeof a=="string")B=a,m=this.length,a=0;else if(isFinite(a))a=a>>>0,isFinite(m)?(m=m>>>0,B===void 0&&(B="utf8")):(B=m,m=void 0);else throw new Error("Buffer.write(string, encoding, offset[, length]) is no longer supported");var G=this.length-a;if((m===void 0||m>G)&&(m=G),s.length>0&&(m<0||a<0)||a>this.length)throw new RangeError("Attempt to write outside buffer bounds");B||(B="utf8");for(var H=!1;;)switch(B){case"hex":return W(this,s,a,m);case"utf8":case"utf-8":return k(this,s,a,m);case"ascii":case"latin1":case"binary":return Z(this,s,a,m);case"base64":return ue(this,s,a,m);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return C(this,s,a,m);default:if(H)throw new TypeError("Unknown encoding: "+B);B=(""+B).toLowerCase(),H=!0}},n.prototype.toJSON=function(){return{type:"Buffer",data:Array.prototype.slice.call(this._arr||this,0)}};function U(T,s,a){return s===0&&a===T.length?e.fromByteArray(T):e.fromByteArray(T.slice(s,a))}function g(T,s,a){a=Math.min(T.length,a);for(var m=[],B=s;B<a;){var G=T[B],H=null,ie=G>239?4:G>223?3:G>191?2:1;if(B+ie<=a){var oe,ae,he,de;switch(ie){case 1:G<128&&(H=G);break;case 2:oe=T[B+1],(oe&192)===128&&(de=(G&31)<<6|oe&63,de>127&&(H=de));break;case 3:oe=T[B+1],ae=T[B+2],(oe&192)===128&&(ae&192)===128&&(de=(G&15)<<12|(oe&63)<<6|ae&63,de>2047&&(de<55296||de>57343)&&(H=de));break;case 4:oe=T[B+1],ae=T[B+2],he=T[B+3],(oe&192)===128&&(ae&192)===128&&(he&192)===128&&(de=(G&15)<<18|(oe&63)<<12|(ae&63)<<6|he&63,de>65535&&de<1114112&&(H=de))}}H===null?(H=65533,ie=1):H>65535&&(H-=65536,m.push(H>>>10&1023|55296),H=56320|H&1023),m.push(H),B+=ie}return te(m)}var q=4096;function te(T){var s=T.length;if(s<=q)return String.fromCharCode.apply(String,T);for(var a="",m=0;m<s;)a+=String.fromCharCode.apply(String,T.slice(m,m+=q));return a}function z(T,s,a){var m="";a=Math.min(T.length,a);for(var B=s;B<a;++B)m+=String.fromCharCode(T[B]&127);return m}function se(T,s,a){var m="";a=Math.min(T.length,a);for(var B=s;B<a;++B)m+=String.fromCharCode(T[B]);return m}function re(T,s,a){var m=T.length;(!s||s<0)&&(s=0),(!a||a<0||a>m)&&(a=m);for(var B="",G=s;G<a;++G)B+=J[T[G]];return B}function ce(T,s,a){for(var m=T.slice(s,a),B="",G=0;G<m.length-1;G+=2)B+=String.fromCharCode(m[G]+m[G+1]*256);return B}n.prototype.slice=function(s,a){var m=this.length;s=~~s,a=a===void 0?m:~~a,s<0?(s+=m,s<0&&(s=0)):s>m&&(s=m),a<0?(a+=m,a<0&&(a=0)):a>m&&(a=m),a<s&&(a=s);var B=this.subarray(s,a);return Object.setPrototypeOf(B,n.prototype),B};function V(T,s,a){if(T%1!==0||T<0)throw new RangeError("offset is not uint");if(T+s>a)throw new RangeError("Trying to access beyond buffer length")}n.prototype.readUintLE=n.prototype.readUIntLE=function(s,a,m){s=s>>>0,a=a>>>0,m||V(s,a,this.length);for(var B=this[s],G=1,H=0;++H<a&&(G*=256);)B+=this[s+H]*G;return B},n.prototype.readUintBE=n.prototype.readUIntBE=function(s,a,m){s=s>>>0,a=a>>>0,m||V(s,a,this.length);for(var B=this[s+--a],G=1;a>0&&(G*=256);)B+=this[s+--a]*G;return B},n.prototype.readUint8=n.prototype.readUInt8=function(s,a){return s=s>>>0,a||V(s,1,this.length),this[s]},n.prototype.readUint16LE=n.prototype.readUInt16LE=function(s,a){return s=s>>>0,a||V(s,2,this.length),this[s]|this[s+1]<<8},n.prototype.readUint16BE=n.prototype.readUInt16BE=function(s,a){return s=s>>>0,a||V(s,2,this.length),this[s]<<8|this[s+1]},n.prototype.readUint32LE=n.prototype.readUInt32LE=function(s,a){return s=s>>>0,a||V(s,4,this.length),(this[s]|this[s+1]<<8|this[s+2]<<16)+this[s+3]*16777216},n.prototype.readUint32BE=n.prototype.readUInt32BE=function(s,a){return s=s>>>0,a||V(s,4,this.length),this[s]*16777216+(this[s+1]<<16|this[s+2]<<8|this[s+3])},n.prototype.readIntLE=function(s,a,m){s=s>>>0,a=a>>>0,m||V(s,a,this.length);for(var B=this[s],G=1,H=0;++H<a&&(G*=256);)B+=this[s+H]*G;return G*=128,B>=G&&(B-=Math.pow(2,8*a)),B},n.prototype.readIntBE=function(s,a,m){s=s>>>0,a=a>>>0,m||V(s,a,this.length);for(var B=a,G=1,H=this[s+--B];B>0&&(G*=256);)H+=this[s+--B]*G;return G*=128,H>=G&&(H-=Math.pow(2,8*a)),H},n.prototype.readInt8=function(s,a){return s=s>>>0,a||V(s,1,this.length),this[s]&128?(255-this[s]+1)*-1:this[s]},n.prototype.readInt16LE=function(s,a){s=s>>>0,a||V(s,2,this.length);var m=this[s]|this[s+1]<<8;return m&32768?m|4294901760:m},n.prototype.readInt16BE=function(s,a){s=s>>>0,a||V(s,2,this.length);var m=this[s+1]|this[s]<<8;return m&32768?m|4294901760:m},n.prototype.readInt32LE=function(s,a){return s=s>>>0,a||V(s,4,this.length),this[s]|this[s+1]<<8|this[s+2]<<16|this[s+3]<<24},n.prototype.readInt32BE=function(s,a){return s=s>>>0,a||V(s,4,this.length),this[s]<<24|this[s+1]<<16|this[s+2]<<8|this[s+3]},n.prototype.readFloatLE=function(s,a){return s=s>>>0,a||V(s,4,this.length),r.read(this,s,!0,23,4)},n.prototype.readFloatBE=function(s,a){return s=s>>>0,a||V(s,4,this.length),r.read(this,s,!1,23,4)},n.prototype.readDoubleLE=function(s,a){return s=s>>>0,a||V(s,8,this.length),r.read(this,s,!0,52,8)},n.prototype.readDoubleBE=function(s,a){return s=s>>>0,a||V(s,8,this.length),r.read(this,s,!1,52,8)};function D(T,s,a,m,B,G){if(!n.isBuffer(T))throw new TypeError('"buffer" argument must be a Buffer instance');if(s>B||s<G)throw new RangeError('"value" argument is out of bounds');if(a+m>T.length)throw new RangeError("Index out of range")}n.prototype.writeUintLE=n.prototype.writeUIntLE=function(s,a,m,B){if(s=+s,a=a>>>0,m=m>>>0,!B){var G=Math.pow(2,8*m)-1;D(this,s,a,m,G,0)}var H=1,ie=0;for(this[a]=s&255;++ie<m&&(H*=256);)this[a+ie]=s/H&255;return a+m},n.prototype.writeUintBE=n.prototype.writeUIntBE=function(s,a,m,B){if(s=+s,a=a>>>0,m=m>>>0,!B){var G=Math.pow(2,8*m)-1;D(this,s,a,m,G,0)}var H=m-1,ie=1;for(this[a+H]=s&255;--H>=0&&(ie*=256);)this[a+H]=s/ie&255;return a+m},n.prototype.writeUint8=n.prototype.writeUInt8=function(s,a,m){return s=+s,a=a>>>0,m||D(this,s,a,1,255,0),this[a]=s&255,a+1},n.prototype.writeUint16LE=n.prototype.writeUInt16LE=function(s,a,m){return s=+s,a=a>>>0,m||D(this,s,a,2,65535,0),this[a]=s&255,this[a+1]=s>>>8,a+2},n.prototype.writeUint16BE=n.prototype.writeUInt16BE=function(s,a,m){return s=+s,a=a>>>0,m||D(this,s,a,2,65535,0),this[a]=s>>>8,this[a+1]=s&255,a+2},n.prototype.writeUint32LE=n.prototype.writeUInt32LE=function(s,a,m){return s=+s,a=a>>>0,m||D(this,s,a,4,4294967295,0),this[a+3]=s>>>24,this[a+2]=s>>>16,this[a+1]=s>>>8,this[a]=s&255,a+4},n.prototype.writeUint32BE=n.prototype.writeUInt32BE=function(s,a,m){return s=+s,a=a>>>0,m||D(this,s,a,4,4294967295,0),this[a]=s>>>24,this[a+1]=s>>>16,this[a+2]=s>>>8,this[a+3]=s&255,a+4},n.prototype.writeIntLE=function(s,a,m,B){if(s=+s,a=a>>>0,!B){var G=Math.pow(2,8*m-1);D(this,s,a,m,G-1,-G)}var H=0,ie=1,oe=0;for(this[a]=s&255;++H<m&&(ie*=256);)s<0&&oe===0&&this[a+H-1]!==0&&(oe=1),this[a+H]=(s/ie>>0)-oe&255;return a+m},n.prototype.writeIntBE=function(s,a,m,B){if(s=+s,a=a>>>0,!B){var G=Math.pow(2,8*m-1);D(this,s,a,m,G-1,-G)}var H=m-1,ie=1,oe=0;for(this[a+H]=s&255;--H>=0&&(ie*=256);)s<0&&oe===0&&this[a+H+1]!==0&&(oe=1),this[a+H]=(s/ie>>0)-oe&255;return a+m},n.prototype.writeInt8=function(s,a,m){return s=+s,a=a>>>0,m||D(this,s,a,1,127,-128),s<0&&(s=255+s+1),this[a]=s&255,a+1},n.prototype.writeInt16LE=function(s,a,m){return s=+s,a=a>>>0,m||D(this,s,a,2,32767,-32768),this[a]=s&255,this[a+1]=s>>>8,a+2},n.prototype.writeInt16BE=function(s,a,m){return s=+s,a=a>>>0,m||D(this,s,a,2,32767,-32768),this[a]=s>>>8,this[a+1]=s&255,a+2},n.prototype.writeInt32LE=function(s,a,m){return s=+s,a=a>>>0,m||D(this,s,a,4,2147483647,-2147483648),this[a]=s&255,this[a+1]=s>>>8,this[a+2]=s>>>16,this[a+3]=s>>>24,a+4},n.prototype.writeInt32BE=function(s,a,m){return s=+s,a=a>>>0,m||D(this,s,a,4,2147483647,-2147483648),s<0&&(s=4294967295+s+1),this[a]=s>>>24,this[a+1]=s>>>16,this[a+2]=s>>>8,this[a+3]=s&255,a+4};function $(T,s,a,m,B,G){if(a+m>T.length)throw new RangeError("Index out of range");if(a<0)throw new RangeError("Index out of range")}function Y(T,s,a,m,B){return s=+s,a=a>>>0,B||$(T,s,a,4),r.write(T,s,a,m,23,4),a+4}n.prototype.writeFloatLE=function(s,a,m){return Y(this,s,a,!0,m)},n.prototype.writeFloatBE=function(s,a,m){return Y(this,s,a,!1,m)};function ne(T,s,a,m,B){return s=+s,a=a>>>0,B||$(T,s,a,8),r.write(T,s,a,m,52,8),a+8}n.prototype.writeDoubleLE=function(s,a,m){return ne(this,s,a,!0,m)},n.prototype.writeDoubleBE=function(s,a,m){return ne(this,s,a,!1,m)},n.prototype.copy=function(s,a,m,B){if(!n.isBuffer(s))throw new TypeError("argument should be a Buffer");if(m||(m=0),!B&&B!==0&&(B=this.length),a>=s.length&&(a=s.length),a||(a=0),B>0&&B<m&&(B=m),B===m||s.length===0||this.length===0)return 0;if(a<0)throw new RangeError("targetStart out of bounds");if(m<0||m>=this.length)throw new RangeError("Index out of range");if(B<0)throw new RangeError("sourceEnd out of bounds");B>this.length&&(B=this.length),s.length-a<B-m&&(B=s.length-a+m);var G=B-m;return this===s&&typeof Uint8Array.prototype.copyWithin=="function"?this.copyWithin(a,m,B):Uint8Array.prototype.set.call(s,this.subarray(m,B),a),G},n.prototype.fill=function(s,a,m,B){if(typeof s=="string"){if(typeof a=="string"?(B=a,a=0,m=this.length):typeof m=="string"&&(B=m,m=this.length),B!==void 0&&typeof B!="string")throw new TypeError("encoding must be a string");if(typeof B=="string"&&!n.isEncoding(B))throw new TypeError("Unknown encoding: "+B);if(s.length===1){var G=s.charCodeAt(0);(B==="utf8"&&G<128||B==="latin1")&&(s=G)}}else typeof s=="number"?s=s&255:typeof s=="boolean"&&(s=Number(s));if(a<0||this.length<a||this.length<m)throw new RangeError("Out of range index");if(m<=a)return this;a=a>>>0,m=m===void 0?this.length:m>>>0,s||(s=0);var H;if(typeof s=="number")for(H=a;H<m;++H)this[H]=s;else{var ie=n.isBuffer(s)?s:n.from(s,B),oe=ie.length;if(oe===0)throw new TypeError('The value "'+s+'" is invalid for argument "value"');for(H=0;H<m-a;++H)this[H+a]=ie[H%oe]}return this};var K=/[^+/0-9A-Za-z-_]/g;function x(T){if(T=T.split("=")[0],T=T.trim().replace(K,""),T.length<2)return"";for(;T.length%4!==0;)T=T+"=";return T}function y(T,s){s=s||1/0;for(var a,m=T.length,B=null,G=[],H=0;H<m;++H){if(a=T.charCodeAt(H),a>55295&&a<57344){if(!B){if(a>56319){(s-=3)>-1&&G.push(239,191,189);continue}else if(H+1===m){(s-=3)>-1&&G.push(239,191,189);continue}B=a;continue}if(a<56320){(s-=3)>-1&&G.push(239,191,189),B=a;continue}a=(B-55296<<10|a-56320)+65536}else B&&(s-=3)>-1&&G.push(239,191,189);if(B=null,a<128){if((s-=1)<0)break;G.push(a)}else if(a<2048){if((s-=2)<0)break;G.push(a>>6|192,a&63|128)}else if(a<65536){if((s-=3)<0)break;G.push(a>>12|224,a>>6&63|128,a&63|128)}else if(a<1114112){if((s-=4)<0)break;G.push(a>>18|240,a>>12&63|128,a>>6&63|128,a&63|128)}else throw new Error("Invalid code point")}return G}function j(T){for(var s=[],a=0;a<T.length;++a)s.push(T.charCodeAt(a)&255);return s}function M(T,s){for(var a,m,B,G=[],H=0;H<T.length&&!((s-=2)<0);++H)a=T.charCodeAt(H),m=a>>8,B=a%256,G.push(B),G.push(m);return G}function O(T){return e.toByteArray(x(T))}function P(T,s,a,m){for(var B=0;B<m&&!(B+a>=s.length||B>=T.length);++B)s[B+a]=T[B];return B}function Q(T,s){return T instanceof s||T!=null&&T.constructor!=null&&T.constructor.name!=null&&T.constructor.name===s.name}function p(T){return T!==T}var J=function(){for(var T="0123456789abcdef",s=new Array(256),a=0;a<16;++a)for(var m=a*16,B=0;B<16;++B)s[m+B]=T[a]+T[B];return s}()}(yr)),yr}var vr={},br={},_r,qi;function ao(){return qi||(qi=1,_r=function(){if(typeof Symbol!="function"||typeof Object.getOwnPropertySymbols!="function")return!1;if(typeof Symbol.iterator=="symbol")return!0;var e={},r=Symbol("test"),i=Object(r);if(typeof r=="string"||Object.prototype.toString.call(r)!=="[object Symbol]"||Object.prototype.toString.call(i)!=="[object Symbol]")return!1;var o=42;e[r]=o;for(var u in e)return!1;if(typeof Object.keys=="function"&&Object.keys(e).length!==0||typeof Object.getOwnPropertyNames=="function"&&Object.getOwnPropertyNames(e).length!==0)return!1;var f=Object.getOwnPropertySymbols(e);if(f.length!==1||f[0]!==r||!Object.prototype.propertyIsEnumerable.call(e,r))return!1;if(typeof Object.getOwnPropertyDescriptor=="function"){var n=Object.getOwnPropertyDescriptor(e,r);if(n.value!==o||n.enumerable!==!0)return!1}return!0}),_r}var Er,Ki;function Ei(){if(Ki)return Er;Ki=1;var t=ao();return Er=function(){return t()&&!!Symbol.toStringTag},Er}var xr,Vi;function oo(){return Vi||(Vi=1,xr=Object),xr}var Tr,$i;function Ou(){return $i||($i=1,Tr=Error),Tr}var Ar,Xi;function Du(){return Xi||(Xi=1,Ar=EvalError),Ar}var Sr,Zi;function Pu(){return Zi||(Zi=1,Sr=RangeError),Sr}var Rr,Yi;function Lu(){return Yi||(Yi=1,Rr=ReferenceError),Rr}var Ir,Ji;function uo(){return Ji||(Ji=1,Ir=SyntaxError),Ir}var Nr,Qi;function Ot(){return Qi||(Qi=1,Nr=TypeError),Nr}var kr,es;function Fu(){return es||(es=1,kr=URIError),kr}var Cr,ts;function Bu(){return ts||(ts=1,Cr=Math.abs),Cr}var Or,rs;function Mu(){return rs||(rs=1,Or=Math.floor),Or}var Dr,ns;function Uu(){return ns||(ns=1,Dr=Math.max),Dr}var Pr,is;function Hu(){return is||(is=1,Pr=Math.min),Pr}var Lr,ss;function Wu(){return ss||(ss=1,Lr=Math.pow),Lr}var Fr,as;function ju(){return as||(as=1,Fr=Math.round),Fr}var Br,os;function zu(){return os||(os=1,Br=Number.isNaN||function(e){return e!==e}),Br}var Mr,us;function Gu(){if(us)return Mr;us=1;var t=zu();return Mr=function(r){return t(r)||r===0?r:r<0?-1:1},Mr}var Ur,ls;function qu(){return ls||(ls=1,Ur=Object.getOwnPropertyDescriptor),Ur}var Hr,cs;function Dt(){if(cs)return Hr;cs=1;var t=qu();if(t)try{t([],"length")}catch{t=null}return Hr=t,Hr}var Wr,hs;function tr(){if(hs)return Wr;hs=1;var t=Object.defineProperty||!1;if(t)try{t({},"a",{value:1})}catch{t=!1}return Wr=t,Wr}var jr,fs;function Ku(){if(fs)return jr;fs=1;var t=typeof Symbol<"u"&&Symbol,e=ao();return jr=function(){return typeof t!="function"||typeof Symbol!="function"||typeof t("foo")!="symbol"||typeof Symbol("bar")!="symbol"?!1:e()},jr}var zr,ds;function lo(){return ds||(ds=1,zr=typeof Reflect<"u"&&Reflect.getPrototypeOf||null),zr}var Gr,ps;function co(){if(ps)return Gr;ps=1;var t=oo();return Gr=t.getPrototypeOf||null,Gr}var qr,ms;function Vu(){if(ms)return qr;ms=1;var t="Function.prototype.bind called on incompatible ",e=Object.prototype.toString,r=Math.max,i="[object Function]",o=function(h,_){for(var E=[],R=0;R<h.length;R+=1)E[R]=h[R];for(var I=0;I<_.length;I+=1)E[I+h.length]=_[I];return E},u=function(h,_){for(var E=[],R=_,I=0;R<h.length;R+=1,I+=1)E[I]=h[R];return E},f=function(n,h){for(var _="",E=0;E<n.length;E+=1)_+=n[E],E+1<n.length&&(_+=h);return _};return qr=function(h){var _=this;if(typeof _!="function"||e.apply(_)!==i)throw new TypeError(t+_);for(var E=u(arguments,1),R,I=function(){if(this instanceof R){var l=_.apply(this,o(E,arguments));return Object(l)===l?l:this}return _.apply(h,o(E,arguments))},w=r(0,_.length-E.length),A=[],v=0;v<w;v++)A[v]="$"+v;if(R=Function("binder","return function ("+f(A,",")+"){ return binder.apply(this,arguments); }")(I),_.prototype){var N=function(){};N.prototype=_.prototype,R.prototype=new N,N.prototype=null}return R},qr}var Kr,ws;function Pt(){if(ws)return Kr;ws=1;var t=Vu();return Kr=Function.prototype.bind||t,Kr}var Vr,gs;function xi(){return gs||(gs=1,Vr=Function.prototype.call),Vr}var $r,ys;function ho(){return ys||(ys=1,$r=Function.prototype.apply),$r}var Xr,vs;function $u(){return vs||(vs=1,Xr=typeof Reflect<"u"&&Reflect&&Reflect.apply),Xr}var Zr,bs;function Xu(){if(bs)return Zr;bs=1;var t=Pt(),e=ho(),r=xi(),i=$u();return Zr=i||t.call(r,e),Zr}var Yr,_s;function Zu(){if(_s)return Yr;_s=1;var t=Pt(),e=Ot(),r=xi(),i=Xu();return Yr=function(u){if(u.length<1||typeof u[0]!="function")throw new e("a function is required");return i(t,r,u)},Yr}var Jr,Es;function Yu(){if(Es)return Jr;Es=1;var t=Zu(),e=Dt(),r;try{r=[].__proto__===Array.prototype}catch(f){if(!f||typeof f!="object"||!("code"in f)||f.code!=="ERR_PROTO_ACCESS")throw f}var i=!!r&&e&&e(Object.prototype,"__proto__"),o=Object,u=o.getPrototypeOf;return Jr=i&&typeof i.get=="function"?t([i.get]):typeof u=="function"?function(n){return u(n==null?n:o(n))}:!1,Jr}var Qr,xs;function Ju(){if(xs)return Qr;xs=1;var t=lo(),e=co(),r=Yu();return Qr=t?function(o){return t(o)}:e?function(o){if(!o||typeof o!="object"&&typeof o!="function")throw new TypeError("getProto: not an object");return e(o)}:r?function(o){return r(o)}:null,Qr}var en,Ts;function Qu(){if(Ts)return en;Ts=1;var t=Function.prototype.call,e=Object.prototype.hasOwnProperty,r=Pt();return en=r.call(t,e),en}var tn,As;function Ti(){if(As)return tn;As=1;var t,e=oo(),r=Ou(),i=Du(),o=Pu(),u=Lu(),f=uo(),n=Ot(),h=Fu(),_=Bu(),E=Mu(),R=Uu(),I=Hu(),w=Wu(),A=ju(),v=Gu(),N=Function,l=function(j){try{return N('"use strict"; return ('+j+").constructor;")()}catch{}},b=Dt(),d=tr(),c=function(){throw new n},S=b?function(){try{return arguments.callee,c}catch{try{return b(arguments,"callee").get}catch{return c}}}():c,L=Ku()(),F=Ju(),W=co(),k=lo(),Z=ho(),ue=xi(),C={},U=typeof Uint8Array>"u"||!F?t:F(Uint8Array),g={__proto__:null,"%AggregateError%":typeof AggregateError>"u"?t:AggregateError,"%Array%":Array,"%ArrayBuffer%":typeof ArrayBuffer>"u"?t:ArrayBuffer,"%ArrayIteratorPrototype%":L&&F?F([][Symbol.iterator]()):t,"%AsyncFromSyncIteratorPrototype%":t,"%AsyncFunction%":C,"%AsyncGenerator%":C,"%AsyncGeneratorFunction%":C,"%AsyncIteratorPrototype%":C,"%Atomics%":typeof Atomics>"u"?t:Atomics,"%BigInt%":typeof BigInt>"u"?t:BigInt,"%BigInt64Array%":typeof BigInt64Array>"u"?t:BigInt64Array,"%BigUint64Array%":typeof BigUint64Array>"u"?t:BigUint64Array,"%Boolean%":Boolean,"%DataView%":typeof DataView>"u"?t:DataView,"%Date%":Date,"%decodeURI%":decodeURI,"%decodeURIComponent%":decodeURIComponent,"%encodeURI%":encodeURI,"%encodeURIComponent%":encodeURIComponent,"%Error%":r,"%eval%":eval,"%EvalError%":i,"%Float16Array%":typeof Float16Array>"u"?t:Float16Array,"%Float32Array%":typeof Float32Array>"u"?t:Float32Array,"%Float64Array%":typeof Float64Array>"u"?t:Float64Array,"%FinalizationRegistry%":typeof FinalizationRegistry>"u"?t:FinalizationRegistry,"%Function%":N,"%GeneratorFunction%":C,"%Int8Array%":typeof Int8Array>"u"?t:Int8Array,"%Int16Array%":typeof Int16Array>"u"?t:Int16Array,"%Int32Array%":typeof Int32Array>"u"?t:Int32Array,"%isFinite%":isFinite,"%isNaN%":isNaN,"%IteratorPrototype%":L&&F?F(F([][Symbol.iterator]())):t,"%JSON%":typeof JSON=="object"?JSON:t,"%Map%":typeof Map>"u"?t:Map,"%MapIteratorPrototype%":typeof Map>"u"||!L||!F?t:F(new Map()[Symbol.iterator]()),"%Math%":Math,"%Number%":Number,"%Object%":e,"%Object.getOwnPropertyDescriptor%":b,"%parseFloat%":parseFloat,"%parseInt%":parseInt,"%Promise%":typeof Promise>"u"?t:Promise,"%Proxy%":typeof Proxy>"u"?t:Proxy,"%RangeError%":o,"%ReferenceError%":u,"%Reflect%":typeof Reflect>"u"?t:Reflect,"%RegExp%":RegExp,"%Set%":typeof Set>"u"?t:Set,"%SetIteratorPrototype%":typeof Set>"u"||!L||!F?t:F(new Set()[Symbol.iterator]()),"%SharedArrayBuffer%":typeof SharedArrayBuffer>"u"?t:SharedArrayBuffer,"%String%":String,"%StringIteratorPrototype%":L&&F?F(""[Symbol.iterator]()):t,"%Symbol%":L?Symbol:t,"%SyntaxError%":f,"%ThrowTypeError%":S,"%TypedArray%":U,"%TypeError%":n,"%Uint8Array%":typeof Uint8Array>"u"?t:Uint8Array,"%Uint8ClampedArray%":typeof Uint8ClampedArray>"u"?t:Uint8ClampedArray,"%Uint16Array%":typeof Uint16Array>"u"?t:Uint16Array,"%Uint32Array%":typeof Uint32Array>"u"?t:Uint32Array,"%URIError%":h,"%WeakMap%":typeof WeakMap>"u"?t:WeakMap,"%WeakRef%":typeof WeakRef>"u"?t:WeakRef,"%WeakSet%":typeof WeakSet>"u"?t:WeakSet,"%Function.prototype.call%":ue,"%Function.prototype.apply%":Z,"%Object.defineProperty%":d,"%Object.getPrototypeOf%":W,"%Math.abs%":_,"%Math.floor%":E,"%Math.max%":R,"%Math.min%":I,"%Math.pow%":w,"%Math.round%":A,"%Math.sign%":v,"%Reflect.getPrototypeOf%":k};if(F)try{null.error}catch(j){var q=F(F(j));g["%Error.prototype%"]=q}var te=function j(M){var O;if(M==="%AsyncFunction%")O=l("async function () {}");else if(M==="%GeneratorFunction%")O=l("function* () {}");else if(M==="%AsyncGeneratorFunction%")O=l("async function* () {}");else if(M==="%AsyncGenerator%"){var P=j("%AsyncGeneratorFunction%");P&&(O=P.prototype)}else if(M==="%AsyncIteratorPrototype%"){var Q=j("%AsyncGenerator%");Q&&F&&(O=F(Q.prototype))}return g[M]=O,O},z={__proto__:null,"%ArrayBufferPrototype%":["ArrayBuffer","prototype"],"%ArrayPrototype%":["Array","prototype"],"%ArrayProto_entries%":["Array","prototype","entries"],"%ArrayProto_forEach%":["Array","prototype","forEach"],"%ArrayProto_keys%":["Array","prototype","keys"],"%ArrayProto_values%":["Array","prototype","values"],"%AsyncFunctionPrototype%":["AsyncFunction","prototype"],"%AsyncGenerator%":["AsyncGeneratorFunction","prototype"],"%AsyncGeneratorPrototype%":["AsyncGeneratorFunction","prototype","prototype"],"%BooleanPrototype%":["Boolean","prototype"],"%DataViewPrototype%":["DataView","prototype"],"%DatePrototype%":["Date","prototype"],"%ErrorPrototype%":["Error","prototype"],"%EvalErrorPrototype%":["EvalError","prototype"],"%Float32ArrayPrototype%":["Float32Array","prototype"],"%Float64ArrayPrototype%":["Float64Array","prototype"],"%FunctionPrototype%":["Function","prototype"],"%Generator%":["GeneratorFunction","prototype"],"%GeneratorPrototype%":["GeneratorFunction","prototype","prototype"],"%Int8ArrayPrototype%":["Int8Array","prototype"],"%Int16ArrayPrototype%":["Int16Array","prototype"],"%Int32ArrayPrototype%":["Int32Array","prototype"],"%JSONParse%":["JSON","parse"],"%JSONStringify%":["JSON","stringify"],"%MapPrototype%":["Map","prototype"],"%NumberPrototype%":["Number","prototype"],"%ObjectPrototype%":["Object","prototype"],"%ObjProto_toString%":["Object","prototype","toString"],"%ObjProto_valueOf%":["Object","prototype","valueOf"],"%PromisePrototype%":["Promise","prototype"],"%PromiseProto_then%":["Promise","prototype","then"],"%Promise_all%":["Promise","all"],"%Promise_reject%":["Promise","reject"],"%Promise_resolve%":["Promise","resolve"],"%RangeErrorPrototype%":["RangeError","prototype"],"%ReferenceErrorPrototype%":["ReferenceError","prototype"],"%RegExpPrototype%":["RegExp","prototype"],"%SetPrototype%":["Set","prototype"],"%SharedArrayBufferPrototype%":["SharedArrayBuffer","prototype"],"%StringPrototype%":["String","prototype"],"%SymbolPrototype%":["Symbol","prototype"],"%SyntaxErrorPrototype%":["SyntaxError","prototype"],"%TypedArrayPrototype%":["TypedArray","prototype"],"%TypeErrorPrototype%":["TypeError","prototype"],"%Uint8ArrayPrototype%":["Uint8Array","prototype"],"%Uint8ClampedArrayPrototype%":["Uint8ClampedArray","prototype"],"%Uint16ArrayPrototype%":["Uint16Array","prototype"],"%Uint32ArrayPrototype%":["Uint32Array","prototype"],"%URIErrorPrototype%":["URIError","prototype"],"%WeakMapPrototype%":["WeakMap","prototype"],"%WeakSetPrototype%":["WeakSet","prototype"]},se=Pt(),re=Qu(),ce=se.call(ue,Array.prototype.concat),V=se.call(Z,Array.prototype.splice),D=se.call(ue,String.prototype.replace),$=se.call(ue,String.prototype.slice),Y=se.call(ue,RegExp.prototype.exec),ne=/[^%.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|%$))/g,K=/\\(\\)?/g,x=function(M){var O=$(M,0,1),P=$(M,-1);if(O==="%"&&P!=="%")throw new f("invalid intrinsic syntax, expected closing `%`");if(P==="%"&&O!=="%")throw new f("invalid intrinsic syntax, expected opening `%`");var Q=[];return D(M,ne,function(p,J,T,s){Q[Q.length]=T?D(s,K,"$1"):J||p}),Q},y=function(M,O){var P=M,Q;if(re(z,P)&&(Q=z[P],P="%"+Q[0]+"%"),re(g,P)){var p=g[P];if(p===C&&(p=te(P)),typeof p>"u"&&!O)throw new n("intrinsic "+M+" exists, but is not available. Please file an issue!");return{alias:Q,name:P,value:p}}throw new f("intrinsic "+M+" does not exist!")};return tn=function(M,O){if(typeof M!="string"||M.length===0)throw new n("intrinsic name must be a non-empty string");if(arguments.length>1&&typeof O!="boolean")throw new n('"allowMissing" argument must be a boolean');if(Y(/^%?[^%]*%?$/,M)===null)throw new f("`%` may not be present anywhere but at the beginning and end of the intrinsic name");var P=x(M),Q=P.length>0?P[0]:"",p=y("%"+Q+"%",O),J=p.name,T=p.value,s=!1,a=p.alias;a&&(Q=a[0],V(P,ce([0,1],a)));for(var m=1,B=!0;m<P.length;m+=1){var G=P[m],H=$(G,0,1),ie=$(G,-1);if((H==='"'||H==="'"||H==="`"||ie==='"'||ie==="'"||ie==="`")&&H!==ie)throw new f("property names with quotes must have matching quotes");if((G==="constructor"||!B)&&(s=!0),Q+="."+G,J="%"+Q+"%",re(g,J))T=g[J];else if(T!=null){if(!(G in T)){if(!O)throw new n("base intrinsic for "+M+" exists, but the property is not available.");return}if(b&&m+1>=P.length){var oe=b(T,G);B=!!oe,B&&"get"in oe&&!("originalValue"in oe.get)?T=oe.get:T=T[G]}else B=re(T,G),T=T[G];B&&!s&&(g[J]=T)}}return T},tn}var rn={exports:{}},nn,Ss;function el(){if(Ss)return nn;Ss=1;var t=tr(),e=uo(),r=Ot(),i=Dt();return nn=function(u,f,n){if(!u||typeof u!="object"&&typeof u!="function")throw new r("`obj` must be an object or a function`");if(typeof f!="string"&&typeof f!="symbol")throw new r("`property` must be a string or a symbol`");if(arguments.length>3&&typeof arguments[3]!="boolean"&&arguments[3]!==null)throw new r("`nonEnumerable`, if provided, must be a boolean or null");if(arguments.length>4&&typeof arguments[4]!="boolean"&&arguments[4]!==null)throw new r("`nonWritable`, if provided, must be a boolean or null");if(arguments.length>5&&typeof arguments[5]!="boolean"&&arguments[5]!==null)throw new r("`nonConfigurable`, if provided, must be a boolean or null");if(arguments.length>6&&typeof arguments[6]!="boolean")throw new r("`loose`, if provided, must be a boolean");var h=arguments.length>3?arguments[3]:null,_=arguments.length>4?arguments[4]:null,E=arguments.length>5?arguments[5]:null,R=arguments.length>6?arguments[6]:!1,I=!!i&&i(u,f);if(t)t(u,f,{configurable:E===null&&I?I.configurable:!E,enumerable:h===null&&I?I.enumerable:!h,value:n,writable:_===null&&I?I.writable:!_});else if(R||!h&&!_&&!E)u[f]=n;else throw new e("This environment does not support defining a property as non-configurable, non-writable, or non-enumerable.")},nn}var sn,Rs;function tl(){if(Rs)return sn;Rs=1;var t=tr(),e=function(){return!!t};return e.hasArrayLengthDefineBug=function(){if(!t)return null;try{return t([],"length",{value:1}).length!==1}catch{return!0}},sn=e,sn}var an,Is;function rl(){if(Is)return an;Is=1;var t=Ti(),e=el(),r=tl()(),i=Dt(),o=Ot(),u=t("%Math.floor%");return an=function(n,h){if(typeof n!="function")throw new o("`fn` is not a function");if(typeof h!="number"||h<0||h>4294967295||u(h)!==h)throw new o("`length` must be a positive 32-bit integer");var _=arguments.length>2&&!!arguments[2],E=!0,R=!0;if("length"in n&&i){var I=i(n,"length");I&&!I.configurable&&(E=!1),I&&!I.writable&&(R=!1)}return(E||R||!_)&&(r?e(n,"length",h,!0,!0):e(n,"length",h)),n},an}var Ns;function fo(){return Ns||(Ns=1,function(t){var e=Pt(),r=Ti(),i=rl(),o=Ot(),u=r("%Function.prototype.apply%"),f=r("%Function.prototype.call%"),n=r("%Reflect.apply%",!0)||e.call(f,u),h=tr(),_=r("%Math.max%");t.exports=function(I){if(typeof I!="function")throw new o("a function is required");var w=n(e,f,arguments);return i(w,1+_(0,I.length-(arguments.length-1)),!0)};var E=function(){return n(e,u,arguments)};h?h(t.exports,"apply",{value:E}):t.exports.apply=E}(rn)),rn.exports}var on,ks;function po(){if(ks)return on;ks=1;var t=Ti(),e=fo(),r=e(t("String.prototype.indexOf"));return on=function(o,u){var f=t(o,!!u);return typeof f=="function"&&r(o,".prototype.")>-1?e(f):f},on}var un,Cs;function nl(){if(Cs)return un;Cs=1;var t=Ei()(),e=po(),r=e("Object.prototype.toString"),i=function(n){return t&&n&&typeof n=="object"&&Symbol.toStringTag in n?!1:r(n)==="[object Arguments]"},o=function(n){return i(n)?!0:n!==null&&typeof n=="object"&&typeof n.length=="number"&&n.length>=0&&r(n)!=="[object Array]"&&r(n.callee)==="[object Function]"},u=function(){return i(arguments)}();return i.isLegacyArguments=o,un=u?i:o,un}var ln,Os;function il(){if(Os)return ln;Os=1;var t=Object.prototype.toString,e=Function.prototype.toString,r=/^\s*(?:function)?\*/,i=Ei()(),o=Object.getPrototypeOf,u=function(){if(!i)return!1;try{return Function("return function*() {}")()}catch{}},f;return ln=function(h){if(typeof h!="function")return!1;if(r.test(e.call(h)))return!0;if(!i){var _=t.call(h);return _==="[object GeneratorFunction]"}if(!o)return!1;if(typeof f>"u"){var E=u();f=E?o(E):!1}return o(h)===f},ln}var cn,Ds;function sl(){if(Ds)return cn;Ds=1;var t=Function.prototype.toString,e=typeof Reflect=="object"&&Reflect!==null&&Reflect.apply,r,i;if(typeof e=="function"&&typeof Object.defineProperty=="function")try{r=Object.defineProperty({},"length",{get:function(){throw i}}),i={},e(function(){throw 42},null,r)}catch(b){b!==i&&(e=null)}else e=null;var o=/^\s*class\b/,u=function(d){try{var c=t.call(d);return o.test(c)}catch{return!1}},f=function(d){try{return u(d)?!1:(t.call(d),!0)}catch{return!1}},n=Object.prototype.toString,h="[object Object]",_="[object Function]",E="[object GeneratorFunction]",R="[object HTMLAllCollection]",I="[object HTML document.all class]",w="[object HTMLCollection]",A=typeof Symbol=="function"&&!!Symbol.toStringTag,v=!(0 in[,]),N=function(){return!1};if(typeof document=="object"){var l=document.all;n.call(l)===n.call(document.all)&&(N=function(d){if((v||!d)&&(typeof d>"u"||typeof d=="object"))try{var c=n.call(d);return(c===R||c===I||c===w||c===h)&&d("")==null}catch{}return!1})}return cn=e?function(d){if(N(d))return!0;if(!d||typeof d!="function"&&typeof d!="object")return!1;try{e(d,null,r)}catch(c){if(c!==i)return!1}return!u(d)&&f(d)}:function(d){if(N(d))return!0;if(!d||typeof d!="function"&&typeof d!="object")return!1;if(A)return f(d);if(u(d))return!1;var c=n.call(d);return c!==_&&c!==E&&!/^\[object HTML/.test(c)?!1:f(d)},cn}var hn,Ps;function al(){if(Ps)return hn;Ps=1;var t=sl(),e=Object.prototype.toString,r=Object.prototype.hasOwnProperty,i=function(h,_,E){for(var R=0,I=h.length;R<I;R++)r.call(h,R)&&(E==null?_(h[R],R,h):_.call(E,h[R],R,h))},o=function(h,_,E){for(var R=0,I=h.length;R<I;R++)E==null?_(h.charAt(R),R,h):_.call(E,h.charAt(R),R,h)},u=function(h,_,E){for(var R in h)r.call(h,R)&&(E==null?_(h[R],R,h):_.call(E,h[R],R,h))},f=function(h,_,E){if(!t(_))throw new TypeError("iterator must be a function");var R;arguments.length>=3&&(R=E),e.call(h)==="[object Array]"?i(h,_,R):typeof h=="string"?o(h,_,R):u(h,_,R)};return hn=f,hn}var fn,Ls;function ol(){return Ls||(Ls=1,fn=["Float32Array","Float64Array","Int8Array","Int16Array","Int32Array","Uint8Array","Uint8ClampedArray","Uint16Array","Uint32Array","BigInt64Array","BigUint64Array"]),fn}var dn,Fs;function ul(){if(Fs)return dn;Fs=1;var t=ol(),e=typeof globalThis>"u"?We:globalThis;return dn=function(){for(var i=[],o=0;o<t.length;o++)typeof e[t[o]]=="function"&&(i[i.length]=t[o]);return i},dn}var pn,Bs;function mo(){if(Bs)return pn;Bs=1;var t=al(),e=ul(),r=fo(),i=po(),o=Dt(),u=i("Object.prototype.toString"),f=Ei()(),n=typeof globalThis>"u"?We:globalThis,h=e(),_=i("String.prototype.slice"),E=Object.getPrototypeOf,R=i("Array.prototype.indexOf",!0)||function(N,l){for(var b=0;b<N.length;b+=1)if(N[b]===l)return b;return-1},I={__proto__:null};f&&o&&E?t(h,function(v){var N=new n[v];if(Symbol.toStringTag in N){var l=E(N),b=o(l,Symbol.toStringTag);if(!b){var d=E(l);b=o(d,Symbol.toStringTag)}I["$"+v]=r(b.get)}}):t(h,function(v){var N=new n[v],l=N.slice||N.set;l&&(I["$"+v]=r(l))});var w=function(N){var l=!1;return t(I,function(b,d){if(!l)try{"$"+b(N)===d&&(l=_(d,1))}catch{}}),l},A=function(N){var l=!1;return t(I,function(b,d){if(!l)try{b(N),l=_(d,1)}catch{}}),l};return pn=function(N){if(!N||typeof N!="object")return!1;if(!f){var l=_(u(N),8,-1);return R(h,l)>-1?l:l!=="Object"?!1:A(N)}return o?w(N):null},pn}var mn,Ms;function ll(){if(Ms)return mn;Ms=1;var t=mo();return mn=function(r){return!!t(r)},mn}var Us;function cl(){return Us||(Us=1,function(t){var e=nl(),r=il(),i=mo(),o=ll();function u(m){return m.call.bind(m)}var f=typeof BigInt<"u",n=typeof Symbol<"u",h=u(Object.prototype.toString),_=u(Number.prototype.valueOf),E=u(String.prototype.valueOf),R=u(Boolean.prototype.valueOf);if(f)var I=u(BigInt.prototype.valueOf);if(n)var w=u(Symbol.prototype.valueOf);function A(m,B){if(typeof m!="object")return!1;try{return B(m),!0}catch{return!1}}t.isArgumentsObject=e,t.isGeneratorFunction=r,t.isTypedArray=o;function v(m){return typeof Promise<"u"&&m instanceof Promise||m!==null&&typeof m=="object"&&typeof m.then=="function"&&typeof m.catch=="function"}t.isPromise=v;function N(m){return typeof ArrayBuffer<"u"&&ArrayBuffer.isView?ArrayBuffer.isView(m):o(m)||$(m)}t.isArrayBufferView=N;function l(m){return i(m)==="Uint8Array"}t.isUint8Array=l;function b(m){return i(m)==="Uint8ClampedArray"}t.isUint8ClampedArray=b;function d(m){return i(m)==="Uint16Array"}t.isUint16Array=d;function c(m){return i(m)==="Uint32Array"}t.isUint32Array=c;function S(m){return i(m)==="Int8Array"}t.isInt8Array=S;function L(m){return i(m)==="Int16Array"}t.isInt16Array=L;function F(m){return i(m)==="Int32Array"}t.isInt32Array=F;function W(m){return i(m)==="Float32Array"}t.isFloat32Array=W;function k(m){return i(m)==="Float64Array"}t.isFloat64Array=k;function Z(m){return i(m)==="BigInt64Array"}t.isBigInt64Array=Z;function ue(m){return i(m)==="BigUint64Array"}t.isBigUint64Array=ue;function C(m){return h(m)==="[object Map]"}C.working=typeof Map<"u"&&C(new Map);function U(m){return typeof Map>"u"?!1:C.working?C(m):m instanceof Map}t.isMap=U;function g(m){return h(m)==="[object Set]"}g.working=typeof Set<"u"&&g(new Set);function q(m){return typeof Set>"u"?!1:g.working?g(m):m instanceof Set}t.isSet=q;function te(m){return h(m)==="[object WeakMap]"}te.working=typeof WeakMap<"u"&&te(new WeakMap);function z(m){return typeof WeakMap>"u"?!1:te.working?te(m):m instanceof WeakMap}t.isWeakMap=z;function se(m){return h(m)==="[object WeakSet]"}se.working=typeof WeakSet<"u"&&se(new WeakSet);function re(m){return se(m)}t.isWeakSet=re;function ce(m){return h(m)==="[object ArrayBuffer]"}ce.working=typeof ArrayBuffer<"u"&&ce(new ArrayBuffer);function V(m){return typeof ArrayBuffer>"u"?!1:ce.working?ce(m):m instanceof ArrayBuffer}t.isArrayBuffer=V;function D(m){return h(m)==="[object DataView]"}D.working=typeof ArrayBuffer<"u"&&typeof DataView<"u"&&D(new DataView(new ArrayBuffer(1),0,1));function $(m){return typeof DataView>"u"?!1:D.working?D(m):m instanceof DataView}t.isDataView=$;var Y=typeof SharedArrayBuffer<"u"?SharedArrayBuffer:void 0;function ne(m){return h(m)==="[object SharedArrayBuffer]"}function K(m){return typeof Y>"u"?!1:(typeof ne.working>"u"&&(ne.working=ne(new Y)),ne.working?ne(m):m instanceof Y)}t.isSharedArrayBuffer=K;function x(m){return h(m)==="[object AsyncFunction]"}t.isAsyncFunction=x;function y(m){return h(m)==="[object Map Iterator]"}t.isMapIterator=y;function j(m){return h(m)==="[object Set Iterator]"}t.isSetIterator=j;function M(m){return h(m)==="[object Generator]"}t.isGeneratorObject=M;function O(m){return h(m)==="[object WebAssembly.Module]"}t.isWebAssemblyCompiledModule=O;function P(m){return A(m,_)}t.isNumberObject=P;function Q(m){return A(m,E)}t.isStringObject=Q;function p(m){return A(m,R)}t.isBooleanObject=p;function J(m){return f&&A(m,I)}t.isBigIntObject=J;function T(m){return n&&A(m,w)}t.isSymbolObject=T;function s(m){return P(m)||Q(m)||p(m)||J(m)||T(m)}t.isBoxedPrimitive=s;function a(m){return typeof Uint8Array<"u"&&(V(m)||K(m))}t.isAnyArrayBuffer=a,["isProxy","isExternal","isModuleNamespaceObject"].forEach(function(m){Object.defineProperty(t,m,{enumerable:!1,value:function(){throw new Error(m+" is not supported in userland")}})})}(br)),br}var wn,Hs;function hl(){return Hs||(Hs=1,wn=function(e){return e&&typeof e=="object"&&typeof e.copy=="function"&&typeof e.fill=="function"&&typeof e.readUInt8=="function"}),wn}var Ws;function wo(){return Ws||(Ws=1,function(t){var e=Object.getOwnPropertyDescriptors||function($){for(var Y=Object.keys($),ne={},K=0;K<Y.length;K++)ne[Y[K]]=Object.getOwnPropertyDescriptor($,Y[K]);return ne},r=/%[sdj%]/g;t.format=function(D){if(!S(D)){for(var $=[],Y=0;Y<arguments.length;Y++)$.push(f(arguments[Y]));return $.join(" ")}for(var Y=1,ne=arguments,K=ne.length,x=String(D).replace(r,function(j){if(j==="%%")return"%";if(Y>=K)return j;switch(j){case"%s":return String(ne[Y++]);case"%d":return Number(ne[Y++]);case"%j":try{return JSON.stringify(ne[Y++])}catch{return"[Circular]"}default:return j}}),y=ne[Y];Y<K;y=ne[++Y])b(y)||!k(y)?x+=" "+y:x+=" "+f(y);return x},t.deprecate=function(D,$){if(typeof ge<"u"&&ge.noDeprecation===!0)return D;if(typeof ge>"u")return function(){return t.deprecate(D,$).apply(this,arguments)};var Y=!1;function ne(){if(!Y){if(ge.throwDeprecation)throw new Error($);ge.traceDeprecation?console.trace($):console.error($),Y=!0}return D.apply(this,arguments)}return ne};var i={},o=/^$/;if(ge.env.NODE_DEBUG){var u=ge.env.NODE_DEBUG;u=u.replace(/[|\\{}()[\]^$+?.]/g,"\\$&").replace(/\*/g,".*").replace(/,/g,"$|^").toUpperCase(),o=new RegExp("^"+u+"$","i")}t.debuglog=function(D){if(D=D.toUpperCase(),!i[D])if(o.test(D)){var $=ge.pid;i[D]=function(){var Y=t.format.apply(t,arguments);console.error("%s %d: %s",D,$,Y)}}else i[D]=function(){};return i[D]};function f(D,$){var Y={seen:[],stylize:h};return arguments.length>=3&&(Y.depth=arguments[2]),arguments.length>=4&&(Y.colors=arguments[3]),l($)?Y.showHidden=$:$&&t._extend(Y,$),F(Y.showHidden)&&(Y.showHidden=!1),F(Y.depth)&&(Y.depth=2),F(Y.colors)&&(Y.colors=!1),F(Y.customInspect)&&(Y.customInspect=!0),Y.colors&&(Y.stylize=n),E(Y,D,Y.depth)}t.inspect=f,f.colors={bold:[1,22],italic:[3,23],underline:[4,24],inverse:[7,27],white:[37,39],grey:[90,39],black:[30,39],blue:[34,39],cyan:[36,39],green:[32,39],magenta:[35,39],red:[31,39],yellow:[33,39]},f.styles={special:"cyan",number:"yellow",boolean:"yellow",undefined:"grey",null:"bold",string:"green",date:"magenta",regexp:"red"};function n(D,$){var Y=f.styles[$];return Y?"\x1B["+f.colors[Y][0]+"m"+D+"\x1B["+f.colors[Y][1]+"m":D}function h(D,$){return D}function _(D){var $={};return D.forEach(function(Y,ne){$[Y]=!0}),$}function E(D,$,Y){if(D.customInspect&&$&&C($.inspect)&&$.inspect!==t.inspect&&!($.constructor&&$.constructor.prototype===$)){var ne=$.inspect(Y,D);return S(ne)||(ne=E(D,ne,Y)),ne}var K=R(D,$);if(K)return K;var x=Object.keys($),y=_(x);if(D.showHidden&&(x=Object.getOwnPropertyNames($)),ue($)&&(x.indexOf("message")>=0||x.indexOf("description")>=0))return I($);if(x.length===0){if(C($)){var j=$.name?": "+$.name:"";return D.stylize("[Function"+j+"]","special")}if(W($))return D.stylize(RegExp.prototype.toString.call($),"regexp");if(Z($))return D.stylize(Date.prototype.toString.call($),"date");if(ue($))return I($)}var M="",O=!1,P=["{","}"];if(N($)&&(O=!0,P=["[","]"]),C($)){var Q=$.name?": "+$.name:"";M=" [Function"+Q+"]"}if(W($)&&(M=" "+RegExp.prototype.toString.call($)),Z($)&&(M=" "+Date.prototype.toUTCString.call($)),ue($)&&(M=" "+I($)),x.length===0&&(!O||$.length==0))return P[0]+M+P[1];if(Y<0)return W($)?D.stylize(RegExp.prototype.toString.call($),"regexp"):D.stylize("[Object]","special");D.seen.push($);var p;return O?p=w(D,$,Y,y,x):p=x.map(function(J){return A(D,$,Y,y,J,O)}),D.seen.pop(),v(p,M,P)}function R(D,$){if(F($))return D.stylize("undefined","undefined");if(S($)){var Y="'"+JSON.stringify($).replace(/^"|"$/g,"").replace(/'/g,"\\'").replace(/\\"/g,'"')+"'";return D.stylize(Y,"string")}if(c($))return D.stylize(""+$,"number");if(l($))return D.stylize(""+$,"boolean");if(b($))return D.stylize("null","null")}function I(D){return"["+Error.prototype.toString.call(D)+"]"}function w(D,$,Y,ne,K){for(var x=[],y=0,j=$.length;y<j;++y)se($,String(y))?x.push(A(D,$,Y,ne,String(y),!0)):x.push("");return K.forEach(function(M){M.match(/^\d+$/)||x.push(A(D,$,Y,ne,M,!0))}),x}function A(D,$,Y,ne,K,x){var y,j,M;if(M=Object.getOwnPropertyDescriptor($,K)||{value:$[K]},M.get?M.set?j=D.stylize("[Getter/Setter]","special"):j=D.stylize("[Getter]","special"):M.set&&(j=D.stylize("[Setter]","special")),se(ne,K)||(y="["+K+"]"),j||(D.seen.indexOf(M.value)<0?(b(Y)?j=E(D,M.value,null):j=E(D,M.value,Y-1),j.indexOf(`
|
|
7
|
+
`)>-1&&(x?j=j.split(`
|
|
8
|
+
`).map(function(O){return" "+O}).join(`
|
|
9
|
+
`).slice(2):j=`
|
|
10
|
+
`+j.split(`
|
|
11
|
+
`).map(function(O){return" "+O}).join(`
|
|
12
|
+
`))):j=D.stylize("[Circular]","special")),F(y)){if(x&&K.match(/^\d+$/))return j;y=JSON.stringify(""+K),y.match(/^"([a-zA-Z_][a-zA-Z_0-9]*)"$/)?(y=y.slice(1,-1),y=D.stylize(y,"name")):(y=y.replace(/'/g,"\\'").replace(/\\"/g,'"').replace(/(^"|"$)/g,"'"),y=D.stylize(y,"string"))}return y+": "+j}function v(D,$,Y){var ne=D.reduce(function(K,x){return x.indexOf(`
|
|
13
|
+
`)>=0,K+x.replace(/\u001b\[\d\d?m/g,"").length+1},0);return ne>60?Y[0]+($===""?"":$+`
|
|
14
|
+
`)+" "+D.join(`,
|
|
15
|
+
`)+" "+Y[1]:Y[0]+$+" "+D.join(", ")+" "+Y[1]}t.types=cl();function N(D){return Array.isArray(D)}t.isArray=N;function l(D){return typeof D=="boolean"}t.isBoolean=l;function b(D){return D===null}t.isNull=b;function d(D){return D==null}t.isNullOrUndefined=d;function c(D){return typeof D=="number"}t.isNumber=c;function S(D){return typeof D=="string"}t.isString=S;function L(D){return typeof D=="symbol"}t.isSymbol=L;function F(D){return D===void 0}t.isUndefined=F;function W(D){return k(D)&&g(D)==="[object RegExp]"}t.isRegExp=W,t.types.isRegExp=W;function k(D){return typeof D=="object"&&D!==null}t.isObject=k;function Z(D){return k(D)&&g(D)==="[object Date]"}t.isDate=Z,t.types.isDate=Z;function ue(D){return k(D)&&(g(D)==="[object Error]"||D instanceof Error)}t.isError=ue,t.types.isNativeError=ue;function C(D){return typeof D=="function"}t.isFunction=C;function U(D){return D===null||typeof D=="boolean"||typeof D=="number"||typeof D=="string"||typeof D=="symbol"||typeof D>"u"}t.isPrimitive=U,t.isBuffer=hl();function g(D){return Object.prototype.toString.call(D)}function q(D){return D<10?"0"+D.toString(10):D.toString(10)}var te=["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"];function z(){var D=new Date,$=[q(D.getHours()),q(D.getMinutes()),q(D.getSeconds())].join(":");return[D.getDate(),te[D.getMonth()],$].join(" ")}t.log=function(){console.log("%s - %s",z(),t.format.apply(t,arguments))},t.inherits=tt(),t._extend=function(D,$){if(!$||!k($))return D;for(var Y=Object.keys($),ne=Y.length;ne--;)D[Y[ne]]=$[Y[ne]];return D};function se(D,$){return Object.prototype.hasOwnProperty.call(D,$)}var re=typeof Symbol<"u"?Symbol("util.promisify.custom"):void 0;t.promisify=function($){if(typeof $!="function")throw new TypeError('The "original" argument must be of type Function');if(re&&$[re]){var Y=$[re];if(typeof Y!="function")throw new TypeError('The "util.promisify.custom" argument must be of type Function');return Object.defineProperty(Y,re,{value:Y,enumerable:!1,writable:!1,configurable:!0}),Y}function Y(){for(var ne,K,x=new Promise(function(M,O){ne=M,K=O}),y=[],j=0;j<arguments.length;j++)y.push(arguments[j]);y.push(function(M,O){M?K(M):ne(O)});try{$.apply(this,y)}catch(M){K(M)}return x}return Object.setPrototypeOf(Y,Object.getPrototypeOf($)),re&&Object.defineProperty(Y,re,{value:Y,enumerable:!1,writable:!1,configurable:!0}),Object.defineProperties(Y,e($))},t.promisify.custom=re;function ce(D,$){if(!D){var Y=new Error("Promise was rejected with a falsy value");Y.reason=D,D=Y}return $(D)}function V(D){if(typeof D!="function")throw new TypeError('The "original" argument must be of type Function');function $(){for(var Y=[],ne=0;ne<arguments.length;ne++)Y.push(arguments[ne]);var K=Y.pop();if(typeof K!="function")throw new TypeError("The last argument must be of type Function");var x=this,y=function(){return K.apply(x,arguments)};D.apply(this,Y).then(function(j){ge.nextTick(y.bind(null,null,j))},function(j){ge.nextTick(ce.bind(null,j,y))})}return Object.setPrototypeOf($,Object.getPrototypeOf(D)),Object.defineProperties($,e(D)),$}t.callbackify=V}(vr)),vr}var gn,js;function fl(){if(js)return gn;js=1;function t(I,w){var A=Object.keys(I);if(Object.getOwnPropertySymbols){var v=Object.getOwnPropertySymbols(I);w&&(v=v.filter(function(N){return Object.getOwnPropertyDescriptor(I,N).enumerable})),A.push.apply(A,v)}return A}function e(I){for(var w=1;w<arguments.length;w++){var A=arguments[w]!=null?arguments[w]:{};w%2?t(Object(A),!0).forEach(function(v){r(I,v,A[v])}):Object.getOwnPropertyDescriptors?Object.defineProperties(I,Object.getOwnPropertyDescriptors(A)):t(Object(A)).forEach(function(v){Object.defineProperty(I,v,Object.getOwnPropertyDescriptor(A,v))})}return I}function r(I,w,A){return w in I?Object.defineProperty(I,w,{value:A,enumerable:!0,configurable:!0,writable:!0}):I[w]=A,I}function i(I,w){if(!(I instanceof w))throw new TypeError("Cannot call a class as a function")}function o(I,w){for(var A=0;A<w.length;A++){var v=w[A];v.enumerable=v.enumerable||!1,v.configurable=!0,"value"in v&&(v.writable=!0),Object.defineProperty(I,v.key,v)}}function u(I,w,A){return w&&o(I.prototype,w),I}var f=er(),n=f.Buffer,h=wo(),_=h.inspect,E=_&&_.custom||"inspect";function R(I,w,A){n.prototype.copy.call(I,w,A)}return gn=function(){function I(){i(this,I),this.head=null,this.tail=null,this.length=0}return u(I,[{key:"push",value:function(A){var v={data:A,next:null};this.length>0?this.tail.next=v:this.head=v,this.tail=v,++this.length}},{key:"unshift",value:function(A){var v={data:A,next:this.head};this.length===0&&(this.tail=v),this.head=v,++this.length}},{key:"shift",value:function(){if(this.length!==0){var A=this.head.data;return this.length===1?this.head=this.tail=null:this.head=this.head.next,--this.length,A}}},{key:"clear",value:function(){this.head=this.tail=null,this.length=0}},{key:"join",value:function(A){if(this.length===0)return"";for(var v=this.head,N=""+v.data;v=v.next;)N+=A+v.data;return N}},{key:"concat",value:function(A){if(this.length===0)return n.alloc(0);for(var v=n.allocUnsafe(A>>>0),N=this.head,l=0;N;)R(N.data,v,l),l+=N.data.length,N=N.next;return v}},{key:"consume",value:function(A,v){var N;return A<this.head.data.length?(N=this.head.data.slice(0,A),this.head.data=this.head.data.slice(A)):A===this.head.data.length?N=this.shift():N=v?this._getString(A):this._getBuffer(A),N}},{key:"first",value:function(){return this.head.data}},{key:"_getString",value:function(A){var v=this.head,N=1,l=v.data;for(A-=l.length;v=v.next;){var b=v.data,d=A>b.length?b.length:A;if(d===b.length?l+=b:l+=b.slice(0,A),A-=d,A===0){d===b.length?(++N,v.next?this.head=v.next:this.head=this.tail=null):(this.head=v,v.data=b.slice(d));break}++N}return this.length-=N,l}},{key:"_getBuffer",value:function(A){var v=n.allocUnsafe(A),N=this.head,l=1;for(N.data.copy(v),A-=N.data.length;N=N.next;){var b=N.data,d=A>b.length?b.length:A;if(b.copy(v,v.length-A,0,d),A-=d,A===0){d===b.length?(++l,N.next?this.head=N.next:this.head=this.tail=null):(this.head=N,N.data=b.slice(d));break}++l}return this.length-=l,v}},{key:E,value:function(A,v){return _(this,e({},v,{depth:0,customInspect:!1}))}}]),I}(),gn}var yn,zs;function go(){if(zs)return yn;zs=1;function t(f,n){var h=this,_=this._readableState&&this._readableState.destroyed,E=this._writableState&&this._writableState.destroyed;return _||E?(n?n(f):f&&(this._writableState?this._writableState.errorEmitted||(this._writableState.errorEmitted=!0,ge.nextTick(o,this,f)):ge.nextTick(o,this,f)),this):(this._readableState&&(this._readableState.destroyed=!0),this._writableState&&(this._writableState.destroyed=!0),this._destroy(f||null,function(R){!n&&R?h._writableState?h._writableState.errorEmitted?ge.nextTick(r,h):(h._writableState.errorEmitted=!0,ge.nextTick(e,h,R)):ge.nextTick(e,h,R):n?(ge.nextTick(r,h),n(R)):ge.nextTick(r,h)}),this)}function e(f,n){o(f,n),r(f)}function r(f){f._writableState&&!f._writableState.emitClose||f._readableState&&!f._readableState.emitClose||f.emit("close")}function i(){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)}function o(f,n){f.emit("error",n)}function u(f,n){var h=f._readableState,_=f._writableState;h&&h.autoDestroy||_&&_.autoDestroy?f.destroy(n):f.emit("error",n)}return yn={destroy:t,undestroy:i,errorOrDestroy:u},yn}var vn={},Gs;function Et(){if(Gs)return vn;Gs=1;function t(n,h){n.prototype=Object.create(h.prototype),n.prototype.constructor=n,n.__proto__=h}var e={};function r(n,h,_){_||(_=Error);function E(I,w,A){return typeof h=="string"?h:h(I,w,A)}var R=function(I){t(w,I);function w(A,v,N){return I.call(this,E(A,v,N))||this}return w}(_);R.prototype.name=_.name,R.prototype.code=n,e[n]=R}function i(n,h){if(Array.isArray(n)){var _=n.length;return n=n.map(function(E){return String(E)}),_>2?"one of ".concat(h," ").concat(n.slice(0,_-1).join(", "),", or ")+n[_-1]:_===2?"one of ".concat(h," ").concat(n[0]," or ").concat(n[1]):"of ".concat(h," ").concat(n[0])}else return"of ".concat(h," ").concat(String(n))}function o(n,h,_){return n.substr(0,h.length)===h}function u(n,h,_){return(_===void 0||_>n.length)&&(_=n.length),n.substring(_-h.length,_)===h}function f(n,h,_){return typeof _!="number"&&(_=0),_+h.length>n.length?!1:n.indexOf(h,_)!==-1}return r("ERR_INVALID_OPT_VALUE",function(n,h){return'The value "'+h+'" is invalid for option "'+n+'"'},TypeError),r("ERR_INVALID_ARG_TYPE",function(n,h,_){var E;typeof h=="string"&&o(h,"not ")?(E="must not be",h=h.replace(/^not /,"")):E="must be";var R;if(u(n," argument"))R="The ".concat(n," ").concat(E," ").concat(i(h,"type"));else{var I=f(n,".")?"property":"argument";R='The "'.concat(n,'" ').concat(I," ").concat(E," ").concat(i(h,"type"))}return R+=". Received type ".concat(typeof _),R},TypeError),r("ERR_STREAM_PUSH_AFTER_EOF","stream.push() after EOF"),r("ERR_METHOD_NOT_IMPLEMENTED",function(n){return"The "+n+" method is not implemented"}),r("ERR_STREAM_PREMATURE_CLOSE","Premature close"),r("ERR_STREAM_DESTROYED",function(n){return"Cannot call "+n+" 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(n){return"Unknown encoding: "+n},TypeError),r("ERR_STREAM_UNSHIFT_AFTER_END_EVENT","stream.unshift() after end event"),vn.codes=e,vn}var bn,qs;function yo(){if(qs)return bn;qs=1;var t=Et().codes.ERR_INVALID_OPT_VALUE;function e(i,o,u){return i.highWaterMark!=null?i.highWaterMark:o?i[u]:null}function r(i,o,u,f){var n=e(o,f,u);if(n!=null){if(!(isFinite(n)&&Math.floor(n)===n)||n<0){var h=f?u:"highWaterMark";throw new t(h,n)}return Math.floor(n)}return i.objectMode?16:16*1024}return bn={getHighWaterMark:r},bn}var _n,Ks;function dl(){if(Ks)return _n;Ks=1,_n=t;function t(r,i){if(e("noDeprecation"))return r;var o=!1;function u(){if(!o){if(e("throwDeprecation"))throw new Error(i);e("traceDeprecation")?console.trace(i):console.warn(i),o=!0}return r.apply(this,arguments)}return u}function e(r){try{if(!We.localStorage)return!1}catch{return!1}var i=We.localStorage[r];return i==null?!1:String(i).toLowerCase()==="true"}return _n}var En,Vs;function vo(){if(Vs)return En;Vs=1,En=W;function t(K){var x=this;this.next=null,this.entry=null,this.finish=function(){ne(x,K)}}var e;W.WritableState=L;var r={deprecate:dl()},i=so(),o=er().Buffer,u=We.Uint8Array||function(){};function f(K){return o.from(K)}function n(K){return o.isBuffer(K)||K instanceof u}var h=go(),_=yo(),E=_.getHighWaterMark,R=Et().codes,I=R.ERR_INVALID_ARG_TYPE,w=R.ERR_METHOD_NOT_IMPLEMENTED,A=R.ERR_MULTIPLE_CALLBACK,v=R.ERR_STREAM_CANNOT_PIPE,N=R.ERR_STREAM_DESTROYED,l=R.ERR_STREAM_NULL_VALUES,b=R.ERR_STREAM_WRITE_AFTER_END,d=R.ERR_UNKNOWN_ENCODING,c=h.errorOrDestroy;tt()(W,i);function S(){}function L(K,x,y){e=e||bt(),K=K||{},typeof y!="boolean"&&(y=x instanceof e),this.objectMode=!!K.objectMode,y&&(this.objectMode=this.objectMode||!!K.writableObjectMode),this.highWaterMark=E(this,K,"writableHighWaterMark",y),this.finalCalled=!1,this.needDrain=!1,this.ending=!1,this.ended=!1,this.finished=!1,this.destroyed=!1;var j=K.decodeStrings===!1;this.decodeStrings=!j,this.defaultEncoding=K.defaultEncoding||"utf8",this.length=0,this.writing=!1,this.corked=0,this.sync=!0,this.bufferProcessing=!1,this.onwrite=function(M){te(x,M)},this.writecb=null,this.writelen=0,this.bufferedRequest=null,this.lastBufferedRequest=null,this.pendingcb=0,this.prefinished=!1,this.errorEmitted=!1,this.emitClose=K.emitClose!==!1,this.autoDestroy=!!K.autoDestroy,this.bufferedRequestCount=0,this.corkedRequestsFree=new t(this)}L.prototype.getBuffer=function(){for(var x=this.bufferedRequest,y=[];x;)y.push(x),x=x.next;return y},function(){try{Object.defineProperty(L.prototype,"buffer",{get:r.deprecate(function(){return this.getBuffer()},"_writableState.buffer is deprecated. Use _writableState.getBuffer instead.","DEP0003")})}catch{}}();var F;typeof Symbol=="function"&&Symbol.hasInstance&&typeof Function.prototype[Symbol.hasInstance]=="function"?(F=Function.prototype[Symbol.hasInstance],Object.defineProperty(W,Symbol.hasInstance,{value:function(x){return F.call(this,x)?!0:this!==W?!1:x&&x._writableState instanceof L}})):F=function(x){return x instanceof this};function W(K){e=e||bt();var x=this instanceof e;if(!x&&!F.call(W,this))return new W(K);this._writableState=new L(K,this,x),this.writable=!0,K&&(typeof K.write=="function"&&(this._write=K.write),typeof K.writev=="function"&&(this._writev=K.writev),typeof K.destroy=="function"&&(this._destroy=K.destroy),typeof K.final=="function"&&(this._final=K.final)),i.call(this)}W.prototype.pipe=function(){c(this,new v)};function k(K,x){var y=new b;c(K,y),ge.nextTick(x,y)}function Z(K,x,y,j){var M;return y===null?M=new l:typeof y!="string"&&!x.objectMode&&(M=new I("chunk",["string","Buffer"],y)),M?(c(K,M),ge.nextTick(j,M),!1):!0}W.prototype.write=function(K,x,y){var j=this._writableState,M=!1,O=!j.objectMode&&n(K);return O&&!o.isBuffer(K)&&(K=f(K)),typeof x=="function"&&(y=x,x=null),O?x="buffer":x||(x=j.defaultEncoding),typeof y!="function"&&(y=S),j.ending?k(this,y):(O||Z(this,j,K,y))&&(j.pendingcb++,M=C(this,j,O,K,x,y)),M},W.prototype.cork=function(){this._writableState.corked++},W.prototype.uncork=function(){var K=this._writableState;K.corked&&(K.corked--,!K.writing&&!K.corked&&!K.bufferProcessing&&K.bufferedRequest&&re(this,K))},W.prototype.setDefaultEncoding=function(x){if(typeof x=="string"&&(x=x.toLowerCase()),!(["hex","utf8","utf-8","ascii","binary","base64","ucs2","ucs-2","utf16le","utf-16le","raw"].indexOf((x+"").toLowerCase())>-1))throw new d(x);return this._writableState.defaultEncoding=x,this},Object.defineProperty(W.prototype,"writableBuffer",{enumerable:!1,get:function(){return this._writableState&&this._writableState.getBuffer()}});function ue(K,x,y){return!K.objectMode&&K.decodeStrings!==!1&&typeof x=="string"&&(x=o.from(x,y)),x}Object.defineProperty(W.prototype,"writableHighWaterMark",{enumerable:!1,get:function(){return this._writableState.highWaterMark}});function C(K,x,y,j,M,O){if(!y){var P=ue(x,j,M);j!==P&&(y=!0,M="buffer",j=P)}var Q=x.objectMode?1:j.length;x.length+=Q;var p=x.length<x.highWaterMark;if(p||(x.needDrain=!0),x.writing||x.corked){var J=x.lastBufferedRequest;x.lastBufferedRequest={chunk:j,encoding:M,isBuf:y,callback:O,next:null},J?J.next=x.lastBufferedRequest:x.bufferedRequest=x.lastBufferedRequest,x.bufferedRequestCount+=1}else U(K,x,!1,Q,j,M,O);return p}function U(K,x,y,j,M,O,P){x.writelen=j,x.writecb=P,x.writing=!0,x.sync=!0,x.destroyed?x.onwrite(new N("write")):y?K._writev(M,x.onwrite):K._write(M,O,x.onwrite),x.sync=!1}function g(K,x,y,j,M){--x.pendingcb,y?(ge.nextTick(M,j),ge.nextTick($,K,x),K._writableState.errorEmitted=!0,c(K,j)):(M(j),K._writableState.errorEmitted=!0,c(K,j),$(K,x))}function q(K){K.writing=!1,K.writecb=null,K.length-=K.writelen,K.writelen=0}function te(K,x){var y=K._writableState,j=y.sync,M=y.writecb;if(typeof M!="function")throw new A;if(q(y),x)g(K,y,j,x,M);else{var O=ce(y)||K.destroyed;!O&&!y.corked&&!y.bufferProcessing&&y.bufferedRequest&&re(K,y),j?ge.nextTick(z,K,y,O,M):z(K,y,O,M)}}function z(K,x,y,j){y||se(K,x),x.pendingcb--,j(),$(K,x)}function se(K,x){x.length===0&&x.needDrain&&(x.needDrain=!1,K.emit("drain"))}function re(K,x){x.bufferProcessing=!0;var y=x.bufferedRequest;if(K._writev&&y&&y.next){var j=x.bufferedRequestCount,M=new Array(j),O=x.corkedRequestsFree;O.entry=y;for(var P=0,Q=!0;y;)M[P]=y,y.isBuf||(Q=!1),y=y.next,P+=1;M.allBuffers=Q,U(K,x,!0,x.length,M,"",O.finish),x.pendingcb++,x.lastBufferedRequest=null,O.next?(x.corkedRequestsFree=O.next,O.next=null):x.corkedRequestsFree=new t(x),x.bufferedRequestCount=0}else{for(;y;){var p=y.chunk,J=y.encoding,T=y.callback,s=x.objectMode?1:p.length;if(U(K,x,!1,s,p,J,T),y=y.next,x.bufferedRequestCount--,x.writing)break}y===null&&(x.lastBufferedRequest=null)}x.bufferedRequest=y,x.bufferProcessing=!1}W.prototype._write=function(K,x,y){y(new w("_write()"))},W.prototype._writev=null,W.prototype.end=function(K,x,y){var j=this._writableState;return typeof K=="function"?(y=K,K=null,x=null):typeof x=="function"&&(y=x,x=null),K!=null&&this.write(K,x),j.corked&&(j.corked=1,this.uncork()),j.ending||Y(this,j,y),this},Object.defineProperty(W.prototype,"writableLength",{enumerable:!1,get:function(){return this._writableState.length}});function ce(K){return K.ending&&K.length===0&&K.bufferedRequest===null&&!K.finished&&!K.writing}function V(K,x){K._final(function(y){x.pendingcb--,y&&c(K,y),x.prefinished=!0,K.emit("prefinish"),$(K,x)})}function D(K,x){!x.prefinished&&!x.finalCalled&&(typeof K._final=="function"&&!x.destroyed?(x.pendingcb++,x.finalCalled=!0,ge.nextTick(V,K,x)):(x.prefinished=!0,K.emit("prefinish")))}function $(K,x){var y=ce(x);if(y&&(D(K,x),x.pendingcb===0&&(x.finished=!0,K.emit("finish"),x.autoDestroy))){var j=K._readableState;(!j||j.autoDestroy&&j.endEmitted)&&K.destroy()}return y}function Y(K,x,y){x.ending=!0,$(K,x),y&&(x.finished?ge.nextTick(y):K.once("finish",y)),x.ended=!0,K.writable=!1}function ne(K,x,y){var j=K.entry;for(K.entry=null;j;){var M=j.callback;x.pendingcb--,M(y),j=j.next}x.corkedRequestsFree.next=K}return Object.defineProperty(W.prototype,"destroyed",{enumerable:!1,get:function(){return this._writableState===void 0?!1:this._writableState.destroyed},set:function(x){this._writableState&&(this._writableState.destroyed=x)}}),W.prototype.destroy=h.destroy,W.prototype._undestroy=h.undestroy,W.prototype._destroy=function(K,x){x(K)},En}var xn,$s;function bt(){if($s)return xn;$s=1;var t=Object.keys||function(_){var E=[];for(var R in _)E.push(R);return E};xn=f;var e=bo(),r=vo();tt()(f,e);for(var i=t(r.prototype),o=0;o<i.length;o++){var u=i[o];f.prototype[u]||(f.prototype[u]=r.prototype[u])}function f(_){if(!(this instanceof f))return new f(_);e.call(this,_),r.call(this,_),this.allowHalfOpen=!0,_&&(_.readable===!1&&(this.readable=!1),_.writable===!1&&(this.writable=!1),_.allowHalfOpen===!1&&(this.allowHalfOpen=!1,this.once("end",n)))}Object.defineProperty(f.prototype,"writableHighWaterMark",{enumerable:!1,get:function(){return this._writableState.highWaterMark}}),Object.defineProperty(f.prototype,"writableBuffer",{enumerable:!1,get:function(){return this._writableState&&this._writableState.getBuffer()}}),Object.defineProperty(f.prototype,"writableLength",{enumerable:!1,get:function(){return this._writableState.length}});function n(){this._writableState.ended||ge.nextTick(h,this)}function h(_){_.end()}return Object.defineProperty(f.prototype,"destroyed",{enumerable:!1,get:function(){return this._readableState===void 0||this._writableState===void 0?!1:this._readableState.destroyed&&this._writableState.destroyed},set:function(E){this._readableState===void 0||this._writableState===void 0||(this._readableState.destroyed=E,this._writableState.destroyed=E)}}),xn}var Tn={},qt={exports:{}},Xs;function pl(){return Xs||(Xs=1,function(t,e){var r=er(),i=r.Buffer;function o(f,n){for(var h in f)n[h]=f[h]}i.from&&i.alloc&&i.allocUnsafe&&i.allocUnsafeSlow?t.exports=r:(o(r,e),e.Buffer=u);function u(f,n,h){return i(f,n,h)}o(i,u),u.from=function(f,n,h){if(typeof f=="number")throw new TypeError("Argument must not be a number");return i(f,n,h)},u.alloc=function(f,n,h){if(typeof f!="number")throw new TypeError("Argument must be a number");var _=i(f);return n!==void 0?typeof h=="string"?_.fill(n,h):_.fill(n):_.fill(0),_},u.allocUnsafe=function(f){if(typeof f!="number")throw new TypeError("Argument must be a number");return i(f)},u.allocUnsafeSlow=function(f){if(typeof f!="number")throw new TypeError("Argument must be a number");return r.SlowBuffer(f)}}(qt,qt.exports)),qt.exports}var Zs;function fi(){if(Zs)return Tn;Zs=1;var t=pl().Buffer,e=t.isEncoding||function(l){switch(l=""+l,l&&l.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 r(l){if(!l)return"utf8";for(var b;;)switch(l){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 l;default:if(b)return;l=(""+l).toLowerCase(),b=!0}}function i(l){var b=r(l);if(typeof b!="string"&&(t.isEncoding===e||!e(l)))throw new Error("Unknown encoding: "+l);return b||l}Tn.StringDecoder=o;function o(l){this.encoding=i(l);var b;switch(this.encoding){case"utf16le":this.text=R,this.end=I,b=4;break;case"utf8":this.fillLast=h,b=4;break;case"base64":this.text=w,this.end=A,b=3;break;default:this.write=v,this.end=N;return}this.lastNeed=0,this.lastTotal=0,this.lastChar=t.allocUnsafe(b)}o.prototype.write=function(l){if(l.length===0)return"";var b,d;if(this.lastNeed){if(b=this.fillLast(l),b===void 0)return"";d=this.lastNeed,this.lastNeed=0}else d=0;return d<l.length?b?b+this.text(l,d):this.text(l,d):b||""},o.prototype.end=E,o.prototype.text=_,o.prototype.fillLast=function(l){if(this.lastNeed<=l.length)return l.copy(this.lastChar,this.lastTotal-this.lastNeed,0,this.lastNeed),this.lastChar.toString(this.encoding,0,this.lastTotal);l.copy(this.lastChar,this.lastTotal-this.lastNeed,0,l.length),this.lastNeed-=l.length};function u(l){return l<=127?0:l>>5===6?2:l>>4===14?3:l>>3===30?4:l>>6===2?-1:-2}function f(l,b,d){var c=b.length-1;if(c<d)return 0;var S=u(b[c]);return S>=0?(S>0&&(l.lastNeed=S-1),S):--c<d||S===-2?0:(S=u(b[c]),S>=0?(S>0&&(l.lastNeed=S-2),S):--c<d||S===-2?0:(S=u(b[c]),S>=0?(S>0&&(S===2?S=0:l.lastNeed=S-3),S):0))}function n(l,b,d){if((b[0]&192)!==128)return l.lastNeed=0,"�";if(l.lastNeed>1&&b.length>1){if((b[1]&192)!==128)return l.lastNeed=1,"�";if(l.lastNeed>2&&b.length>2&&(b[2]&192)!==128)return l.lastNeed=2,"�"}}function h(l){var b=this.lastTotal-this.lastNeed,d=n(this,l);if(d!==void 0)return d;if(this.lastNeed<=l.length)return l.copy(this.lastChar,b,0,this.lastNeed),this.lastChar.toString(this.encoding,0,this.lastTotal);l.copy(this.lastChar,b,0,l.length),this.lastNeed-=l.length}function _(l,b){var d=f(this,l,b);if(!this.lastNeed)return l.toString("utf8",b);this.lastTotal=d;var c=l.length-(d-this.lastNeed);return l.copy(this.lastChar,0,c),l.toString("utf8",b,c)}function E(l){var b=l&&l.length?this.write(l):"";return this.lastNeed?b+"�":b}function R(l,b){if((l.length-b)%2===0){var d=l.toString("utf16le",b);if(d){var c=d.charCodeAt(d.length-1);if(c>=55296&&c<=56319)return this.lastNeed=2,this.lastTotal=4,this.lastChar[0]=l[l.length-2],this.lastChar[1]=l[l.length-1],d.slice(0,-1)}return d}return this.lastNeed=1,this.lastTotal=2,this.lastChar[0]=l[l.length-1],l.toString("utf16le",b,l.length-1)}function I(l){var b=l&&l.length?this.write(l):"";if(this.lastNeed){var d=this.lastTotal-this.lastNeed;return b+this.lastChar.toString("utf16le",0,d)}return b}function w(l,b){var d=(l.length-b)%3;return d===0?l.toString("base64",b):(this.lastNeed=3-d,this.lastTotal=3,d===1?this.lastChar[0]=l[l.length-1]:(this.lastChar[0]=l[l.length-2],this.lastChar[1]=l[l.length-1]),l.toString("base64",b,l.length-d))}function A(l){var b=l&&l.length?this.write(l):"";return this.lastNeed?b+this.lastChar.toString("base64",0,3-this.lastNeed):b}function v(l){return l.toString(this.encoding)}function N(l){return l&&l.length?this.write(l):""}return Tn}var An,Ys;function Ai(){if(Ys)return An;Ys=1;var t=Et().codes.ERR_STREAM_PREMATURE_CLOSE;function e(u){var f=!1;return function(){if(!f){f=!0;for(var n=arguments.length,h=new Array(n),_=0;_<n;_++)h[_]=arguments[_];u.apply(this,h)}}}function r(){}function i(u){return u.setHeader&&typeof u.abort=="function"}function o(u,f,n){if(typeof f=="function")return o(u,null,f);f||(f={}),n=e(n||r);var h=f.readable||f.readable!==!1&&u.readable,_=f.writable||f.writable!==!1&&u.writable,E=function(){u.writable||I()},R=u._writableState&&u._writableState.finished,I=function(){_=!1,R=!0,h||n.call(u)},w=u._readableState&&u._readableState.endEmitted,A=function(){h=!1,w=!0,_||n.call(u)},v=function(d){n.call(u,d)},N=function(){var d;if(h&&!w)return(!u._readableState||!u._readableState.ended)&&(d=new t),n.call(u,d);if(_&&!R)return(!u._writableState||!u._writableState.ended)&&(d=new t),n.call(u,d)},l=function(){u.req.on("finish",I)};return i(u)?(u.on("complete",I),u.on("abort",N),u.req?l():u.on("request",l)):_&&!u._writableState&&(u.on("end",E),u.on("close",E)),u.on("end",A),u.on("finish",I),f.error!==!1&&u.on("error",v),u.on("close",N),function(){u.removeListener("complete",I),u.removeListener("abort",N),u.removeListener("request",l),u.req&&u.req.removeListener("finish",I),u.removeListener("end",E),u.removeListener("close",E),u.removeListener("finish",I),u.removeListener("end",A),u.removeListener("error",v),u.removeListener("close",N)}}return An=o,An}var Sn,Js;function ml(){if(Js)return Sn;Js=1;var t;function e(l,b,d){return b in l?Object.defineProperty(l,b,{value:d,enumerable:!0,configurable:!0,writable:!0}):l[b]=d,l}var r=Ai(),i=Symbol("lastResolve"),o=Symbol("lastReject"),u=Symbol("error"),f=Symbol("ended"),n=Symbol("lastPromise"),h=Symbol("handlePromise"),_=Symbol("stream");function E(l,b){return{value:l,done:b}}function R(l){var b=l[i];if(b!==null){var d=l[_].read();d!==null&&(l[n]=null,l[i]=null,l[o]=null,b(E(d,!1)))}}function I(l){ge.nextTick(R,l)}function w(l,b){return function(d,c){l.then(function(){if(b[f]){d(E(void 0,!0));return}b[h](d,c)},c)}}var A=Object.getPrototypeOf(function(){}),v=Object.setPrototypeOf((t={get stream(){return this[_]},next:function(){var b=this,d=this[u];if(d!==null)return Promise.reject(d);if(this[f])return Promise.resolve(E(void 0,!0));if(this[_].destroyed)return new Promise(function(F,W){ge.nextTick(function(){b[u]?W(b[u]):F(E(void 0,!0))})});var c=this[n],S;if(c)S=new Promise(w(c,this));else{var L=this[_].read();if(L!==null)return Promise.resolve(E(L,!1));S=new Promise(this[h])}return this[n]=S,S}},e(t,Symbol.asyncIterator,function(){return this}),e(t,"return",function(){var b=this;return new Promise(function(d,c){b[_].destroy(null,function(S){if(S){c(S);return}d(E(void 0,!0))})})}),t),A),N=function(b){var d,c=Object.create(v,(d={},e(d,_,{value:b,writable:!0}),e(d,i,{value:null,writable:!0}),e(d,o,{value:null,writable:!0}),e(d,u,{value:null,writable:!0}),e(d,f,{value:b._readableState.endEmitted,writable:!0}),e(d,h,{value:function(L,F){var W=c[_].read();W?(c[n]=null,c[i]=null,c[o]=null,L(E(W,!1))):(c[i]=L,c[o]=F)},writable:!0}),d));return c[n]=null,r(b,function(S){if(S&&S.code!=="ERR_STREAM_PREMATURE_CLOSE"){var L=c[o];L!==null&&(c[n]=null,c[i]=null,c[o]=null,L(S)),c[u]=S;return}var F=c[i];F!==null&&(c[n]=null,c[i]=null,c[o]=null,F(E(void 0,!0))),c[f]=!0}),b.on("readable",I.bind(null,c)),c};return Sn=N,Sn}var Rn,Qs;function wl(){return Qs||(Qs=1,Rn=function(){throw new Error("Readable.from is not available in the browser")}),Rn}var In,ea;function bo(){if(ea)return In;ea=1,In=k;var t;k.ReadableState=W,_i().EventEmitter;var e=function(P,Q){return P.listeners(Q).length},r=so(),i=er().Buffer,o=We.Uint8Array||function(){};function u(O){return i.from(O)}function f(O){return i.isBuffer(O)||O instanceof o}var n=wo(),h;n&&n.debuglog?h=n.debuglog("stream"):h=function(){};var _=fl(),E=go(),R=yo(),I=R.getHighWaterMark,w=Et().codes,A=w.ERR_INVALID_ARG_TYPE,v=w.ERR_STREAM_PUSH_AFTER_EOF,N=w.ERR_METHOD_NOT_IMPLEMENTED,l=w.ERR_STREAM_UNSHIFT_AFTER_END_EVENT,b,d,c;tt()(k,r);var S=E.errorOrDestroy,L=["error","close","destroy","pause","resume"];function F(O,P,Q){if(typeof O.prependListener=="function")return O.prependListener(P,Q);!O._events||!O._events[P]?O.on(P,Q):Array.isArray(O._events[P])?O._events[P].unshift(Q):O._events[P]=[Q,O._events[P]]}function W(O,P,Q){t=t||bt(),O=O||{},typeof Q!="boolean"&&(Q=P instanceof t),this.objectMode=!!O.objectMode,Q&&(this.objectMode=this.objectMode||!!O.readableObjectMode),this.highWaterMark=I(this,O,"readableHighWaterMark",Q),this.buffer=new _,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&&(b||(b=fi().StringDecoder),this.decoder=new b(O.encoding),this.encoding=O.encoding)}function k(O){if(t=t||bt(),!(this instanceof k))return new k(O);var P=this instanceof t;this._readableState=new W(O,this,P),this.readable=!0,O&&(typeof O.read=="function"&&(this._read=O.read),typeof O.destroy=="function"&&(this._destroy=O.destroy)),r.call(this)}Object.defineProperty(k.prototype,"destroyed",{enumerable:!1,get:function(){return this._readableState===void 0?!1:this._readableState.destroyed},set:function(P){this._readableState&&(this._readableState.destroyed=P)}}),k.prototype.destroy=E.destroy,k.prototype._undestroy=E.undestroy,k.prototype._destroy=function(O,P){P(O)},k.prototype.push=function(O,P){var Q=this._readableState,p;return Q.objectMode?p=!0:typeof O=="string"&&(P=P||Q.defaultEncoding,P!==Q.encoding&&(O=i.from(O,P),P=""),p=!0),Z(this,O,P,!1,p)},k.prototype.unshift=function(O){return Z(this,O,null,!0,!1)};function Z(O,P,Q,p,J){h("readableAddChunk",P);var T=O._readableState;if(P===null)T.reading=!1,te(O,T);else{var s;if(J||(s=C(T,P)),s)S(O,s);else if(T.objectMode||P&&P.length>0)if(typeof P!="string"&&!T.objectMode&&Object.getPrototypeOf(P)!==i.prototype&&(P=u(P)),p)T.endEmitted?S(O,new l):ue(O,T,P,!0);else if(T.ended)S(O,new v);else{if(T.destroyed)return!1;T.reading=!1,T.decoder&&!Q?(P=T.decoder.write(P),T.objectMode||P.length!==0?ue(O,T,P,!1):re(O,T)):ue(O,T,P,!1)}else p||(T.reading=!1,re(O,T))}return!T.ended&&(T.length<T.highWaterMark||T.length===0)}function ue(O,P,Q,p){P.flowing&&P.length===0&&!P.sync?(P.awaitDrain=0,O.emit("data",Q)):(P.length+=P.objectMode?1:Q.length,p?P.buffer.unshift(Q):P.buffer.push(Q),P.needReadable&&z(O)),re(O,P)}function C(O,P){var Q;return!f(P)&&typeof P!="string"&&P!==void 0&&!O.objectMode&&(Q=new A("chunk",["string","Buffer","Uint8Array"],P)),Q}k.prototype.isPaused=function(){return this._readableState.flowing===!1},k.prototype.setEncoding=function(O){b||(b=fi().StringDecoder);var P=new b(O);this._readableState.decoder=P,this._readableState.encoding=this._readableState.decoder.encoding;for(var Q=this._readableState.buffer.head,p="";Q!==null;)p+=P.write(Q.data),Q=Q.next;return this._readableState.buffer.clear(),p!==""&&this._readableState.buffer.push(p),this._readableState.length=p.length,this};var U=1073741824;function g(O){return O>=U?O=U:(O--,O|=O>>>1,O|=O>>>2,O|=O>>>4,O|=O>>>8,O|=O>>>16,O++),O}function q(O,P){return O<=0||P.length===0&&P.ended?0:P.objectMode?1:O!==O?P.flowing&&P.length?P.buffer.head.data.length:P.length:(O>P.highWaterMark&&(P.highWaterMark=g(O)),O<=P.length?O:P.ended?P.length:(P.needReadable=!0,0))}k.prototype.read=function(O){h("read",O),O=parseInt(O,10);var P=this._readableState,Q=O;if(O!==0&&(P.emittedReadable=!1),O===0&&P.needReadable&&((P.highWaterMark!==0?P.length>=P.highWaterMark:P.length>0)||P.ended))return h("read: emitReadable",P.length,P.ended),P.length===0&&P.ended?y(this):z(this),null;if(O=q(O,P),O===0&&P.ended)return P.length===0&&y(this),null;var p=P.needReadable;h("need readable",p),(P.length===0||P.length-O<P.highWaterMark)&&(p=!0,h("length less than watermark",p)),P.ended||P.reading?(p=!1,h("reading or ended",p)):p&&(h("do read"),P.reading=!0,P.sync=!0,P.length===0&&(P.needReadable=!0),this._read(P.highWaterMark),P.sync=!1,P.reading||(O=q(Q,P)));var J;return O>0?J=x(O,P):J=null,J===null?(P.needReadable=P.length<=P.highWaterMark,O=0):(P.length-=O,P.awaitDrain=0),P.length===0&&(P.ended||(P.needReadable=!0),Q!==O&&P.ended&&y(this)),J!==null&&this.emit("data",J),J};function te(O,P){if(h("onEofChunk"),!P.ended){if(P.decoder){var Q=P.decoder.end();Q&&Q.length&&(P.buffer.push(Q),P.length+=P.objectMode?1:Q.length)}P.ended=!0,P.sync?z(O):(P.needReadable=!1,P.emittedReadable||(P.emittedReadable=!0,se(O)))}}function z(O){var P=O._readableState;h("emitReadable",P.needReadable,P.emittedReadable),P.needReadable=!1,P.emittedReadable||(h("emitReadable",P.flowing),P.emittedReadable=!0,ge.nextTick(se,O))}function se(O){var P=O._readableState;h("emitReadable_",P.destroyed,P.length,P.ended),!P.destroyed&&(P.length||P.ended)&&(O.emit("readable"),P.emittedReadable=!1),P.needReadable=!P.flowing&&!P.ended&&P.length<=P.highWaterMark,K(O)}function re(O,P){P.readingMore||(P.readingMore=!0,ge.nextTick(ce,O,P))}function ce(O,P){for(;!P.reading&&!P.ended&&(P.length<P.highWaterMark||P.flowing&&P.length===0);){var Q=P.length;if(h("maybeReadMore read 0"),O.read(0),Q===P.length)break}P.readingMore=!1}k.prototype._read=function(O){S(this,new N("_read()"))},k.prototype.pipe=function(O,P){var Q=this,p=this._readableState;switch(p.pipesCount){case 0:p.pipes=O;break;case 1:p.pipes=[p.pipes,O];break;default:p.pipes.push(O);break}p.pipesCount+=1,h("pipe count=%d opts=%j",p.pipesCount,P);var J=(!P||P.end!==!1)&&O!==ge.stdout&&O!==ge.stderr,T=J?a:he;p.endEmitted?ge.nextTick(T):Q.once("end",T),O.on("unpipe",s);function s(de,we){h("onunpipe"),de===Q&&we&&we.hasUnpiped===!1&&(we.hasUnpiped=!0,G())}function a(){h("onend"),O.end()}var m=V(Q);O.on("drain",m);var B=!1;function G(){h("cleanup"),O.removeListener("close",oe),O.removeListener("finish",ae),O.removeListener("drain",m),O.removeListener("error",ie),O.removeListener("unpipe",s),Q.removeListener("end",a),Q.removeListener("end",he),Q.removeListener("data",H),B=!0,p.awaitDrain&&(!O._writableState||O._writableState.needDrain)&&m()}Q.on("data",H);function H(de){h("ondata");var we=O.write(de);h("dest.write",we),we===!1&&((p.pipesCount===1&&p.pipes===O||p.pipesCount>1&&M(p.pipes,O)!==-1)&&!B&&(h("false write response, pause",p.awaitDrain),p.awaitDrain++),Q.pause())}function ie(de){h("onerror",de),he(),O.removeListener("error",ie),e(O,"error")===0&&S(O,de)}F(O,"error",ie);function oe(){O.removeListener("finish",ae),he()}O.once("close",oe);function ae(){h("onfinish"),O.removeListener("close",oe),he()}O.once("finish",ae);function he(){h("unpipe"),Q.unpipe(O)}return O.emit("pipe",Q),p.flowing||(h("pipe resume"),Q.resume()),O};function V(O){return function(){var Q=O._readableState;h("pipeOnDrain",Q.awaitDrain),Q.awaitDrain&&Q.awaitDrain--,Q.awaitDrain===0&&e(O,"data")&&(Q.flowing=!0,K(O))}}k.prototype.unpipe=function(O){var P=this._readableState,Q={hasUnpiped:!1};if(P.pipesCount===0)return this;if(P.pipesCount===1)return O&&O!==P.pipes?this:(O||(O=P.pipes),P.pipes=null,P.pipesCount=0,P.flowing=!1,O&&O.emit("unpipe",this,Q),this);if(!O){var p=P.pipes,J=P.pipesCount;P.pipes=null,P.pipesCount=0,P.flowing=!1;for(var T=0;T<J;T++)p[T].emit("unpipe",this,{hasUnpiped:!1});return this}var s=M(P.pipes,O);return s===-1?this:(P.pipes.splice(s,1),P.pipesCount-=1,P.pipesCount===1&&(P.pipes=P.pipes[0]),O.emit("unpipe",this,Q),this)},k.prototype.on=function(O,P){var Q=r.prototype.on.call(this,O,P),p=this._readableState;return O==="data"?(p.readableListening=this.listenerCount("readable")>0,p.flowing!==!1&&this.resume()):O==="readable"&&!p.endEmitted&&!p.readableListening&&(p.readableListening=p.needReadable=!0,p.flowing=!1,p.emittedReadable=!1,h("on readable",p.length,p.reading),p.length?z(this):p.reading||ge.nextTick($,this)),Q},k.prototype.addListener=k.prototype.on,k.prototype.removeListener=function(O,P){var Q=r.prototype.removeListener.call(this,O,P);return O==="readable"&&ge.nextTick(D,this),Q},k.prototype.removeAllListeners=function(O){var P=r.prototype.removeAllListeners.apply(this,arguments);return(O==="readable"||O===void 0)&&ge.nextTick(D,this),P};function D(O){var P=O._readableState;P.readableListening=O.listenerCount("readable")>0,P.resumeScheduled&&!P.paused?P.flowing=!0:O.listenerCount("data")>0&&O.resume()}function $(O){h("readable nexttick read 0"),O.read(0)}k.prototype.resume=function(){var O=this._readableState;return O.flowing||(h("resume"),O.flowing=!O.readableListening,Y(this,O)),O.paused=!1,this};function Y(O,P){P.resumeScheduled||(P.resumeScheduled=!0,ge.nextTick(ne,O,P))}function ne(O,P){h("resume",P.reading),P.reading||O.read(0),P.resumeScheduled=!1,O.emit("resume"),K(O),P.flowing&&!P.reading&&O.read(0)}k.prototype.pause=function(){return h("call pause flowing=%j",this._readableState.flowing),this._readableState.flowing!==!1&&(h("pause"),this._readableState.flowing=!1,this.emit("pause")),this._readableState.paused=!0,this};function K(O){var P=O._readableState;for(h("flow",P.flowing);P.flowing&&O.read()!==null;);}k.prototype.wrap=function(O){var P=this,Q=this._readableState,p=!1;O.on("end",function(){if(h("wrapped end"),Q.decoder&&!Q.ended){var s=Q.decoder.end();s&&s.length&&P.push(s)}P.push(null)}),O.on("data",function(s){if(h("wrapped data"),Q.decoder&&(s=Q.decoder.write(s)),!(Q.objectMode&&s==null)&&!(!Q.objectMode&&(!s||!s.length))){var a=P.push(s);a||(p=!0,O.pause())}});for(var J in O)this[J]===void 0&&typeof O[J]=="function"&&(this[J]=function(a){return function(){return O[a].apply(O,arguments)}}(J));for(var T=0;T<L.length;T++)O.on(L[T],this.emit.bind(this,L[T]));return this._read=function(s){h("wrapped _read",s),p&&(p=!1,O.resume())},this},typeof Symbol=="function"&&(k.prototype[Symbol.asyncIterator]=function(){return d===void 0&&(d=ml()),d(this)}),Object.defineProperty(k.prototype,"readableHighWaterMark",{enumerable:!1,get:function(){return this._readableState.highWaterMark}}),Object.defineProperty(k.prototype,"readableBuffer",{enumerable:!1,get:function(){return this._readableState&&this._readableState.buffer}}),Object.defineProperty(k.prototype,"readableFlowing",{enumerable:!1,get:function(){return this._readableState.flowing},set:function(P){this._readableState&&(this._readableState.flowing=P)}}),k._fromList=x,Object.defineProperty(k.prototype,"readableLength",{enumerable:!1,get:function(){return this._readableState.length}});function x(O,P){if(P.length===0)return null;var Q;return P.objectMode?Q=P.buffer.shift():!O||O>=P.length?(P.decoder?Q=P.buffer.join(""):P.buffer.length===1?Q=P.buffer.first():Q=P.buffer.concat(P.length),P.buffer.clear()):Q=P.buffer.consume(O,P.decoder),Q}function y(O){var P=O._readableState;h("endReadable",P.endEmitted),P.endEmitted||(P.ended=!0,ge.nextTick(j,P,O))}function j(O,P){if(h("endReadableNT",O.endEmitted,O.length),!O.endEmitted&&O.length===0&&(O.endEmitted=!0,P.readable=!1,P.emit("end"),O.autoDestroy)){var Q=P._writableState;(!Q||Q.autoDestroy&&Q.finished)&&P.destroy()}}typeof Symbol=="function"&&(k.from=function(O,P){return c===void 0&&(c=wl()),c(k,O,P)});function M(O,P){for(var Q=0,p=O.length;Q<p;Q++)if(O[Q]===P)return Q;return-1}return In}var Nn,ta;function _o(){if(ta)return Nn;ta=1,Nn=n;var t=Et().codes,e=t.ERR_METHOD_NOT_IMPLEMENTED,r=t.ERR_MULTIPLE_CALLBACK,i=t.ERR_TRANSFORM_ALREADY_TRANSFORMING,o=t.ERR_TRANSFORM_WITH_LENGTH_0,u=bt();tt()(n,u);function f(E,R){var I=this._transformState;I.transforming=!1;var w=I.writecb;if(w===null)return this.emit("error",new r);I.writechunk=null,I.writecb=null,R!=null&&this.push(R),w(E);var A=this._readableState;A.reading=!1,(A.needReadable||A.length<A.highWaterMark)&&this._read(A.highWaterMark)}function n(E){if(!(this instanceof n))return new n(E);u.call(this,E),this._transformState={afterTransform:f.bind(this),needTransform:!1,transforming:!1,writecb:null,writechunk:null,writeencoding:null},this._readableState.needReadable=!0,this._readableState.sync=!1,E&&(typeof E.transform=="function"&&(this._transform=E.transform),typeof E.flush=="function"&&(this._flush=E.flush)),this.on("prefinish",h)}function h(){var E=this;typeof this._flush=="function"&&!this._readableState.destroyed?this._flush(function(R,I){_(E,R,I)}):_(this,null,null)}n.prototype.push=function(E,R){return this._transformState.needTransform=!1,u.prototype.push.call(this,E,R)},n.prototype._transform=function(E,R,I){I(new e("_transform()"))},n.prototype._write=function(E,R,I){var w=this._transformState;if(w.writecb=I,w.writechunk=E,w.writeencoding=R,!w.transforming){var A=this._readableState;(w.needTransform||A.needReadable||A.length<A.highWaterMark)&&this._read(A.highWaterMark)}},n.prototype._read=function(E){var R=this._transformState;R.writechunk!==null&&!R.transforming?(R.transforming=!0,this._transform(R.writechunk,R.writeencoding,R.afterTransform)):R.needTransform=!0},n.prototype._destroy=function(E,R){u.prototype._destroy.call(this,E,function(I){R(I)})};function _(E,R,I){if(R)return E.emit("error",R);if(I!=null&&E.push(I),E._writableState.length)throw new o;if(E._transformState.transforming)throw new i;return E.push(null)}return Nn}var kn,ra;function gl(){if(ra)return kn;ra=1,kn=e;var t=_o();tt()(e,t);function e(r){if(!(this instanceof e))return new e(r);t.call(this,r)}return e.prototype._transform=function(r,i,o){o(null,r)},kn}var Cn,na;function yl(){if(na)return Cn;na=1;var t;function e(I){var w=!1;return function(){w||(w=!0,I.apply(void 0,arguments))}}var r=Et().codes,i=r.ERR_MISSING_ARGS,o=r.ERR_STREAM_DESTROYED;function u(I){if(I)throw I}function f(I){return I.setHeader&&typeof I.abort=="function"}function n(I,w,A,v){v=e(v);var N=!1;I.on("close",function(){N=!0}),t===void 0&&(t=Ai()),t(I,{readable:w,writable:A},function(b){if(b)return v(b);N=!0,v()});var l=!1;return function(b){if(!N&&!l){if(l=!0,f(I))return I.abort();if(typeof I.destroy=="function")return I.destroy();v(b||new o("pipe"))}}}function h(I){I()}function _(I,w){return I.pipe(w)}function E(I){return!I.length||typeof I[I.length-1]!="function"?u:I.pop()}function R(){for(var I=arguments.length,w=new Array(I),A=0;A<I;A++)w[A]=arguments[A];var v=E(w);if(Array.isArray(w[0])&&(w=w[0]),w.length<2)throw new i("streams");var N,l=w.map(function(b,d){var c=d<w.length-1,S=d>0;return n(b,c,S,function(L){N||(N=L),L&&l.forEach(h),!c&&(l.forEach(h),v(N))})});return w.reduce(_)}return Cn=R,Cn}var On,ia;function Si(){if(ia)return On;ia=1,On=r;var t=_i().EventEmitter,e=tt();e(r,t),r.Readable=bo(),r.Writable=vo(),r.Duplex=bt(),r.Transform=_o(),r.PassThrough=gl(),r.finished=Ai(),r.pipeline=yl(),r.Stream=r;function r(){t.call(this)}return r.prototype.pipe=function(i,o){var u=this;function f(w){i.writable&&i.write(w)===!1&&u.pause&&u.pause()}u.on("data",f);function n(){u.readable&&u.resume&&u.resume()}i.on("drain",n),!i._isStdio&&(!o||o.end!==!1)&&(u.on("end",_),u.on("close",E));var h=!1;function _(){h||(h=!0,i.end())}function E(){h||(h=!0,typeof i.destroy=="function"&&i.destroy())}function R(w){if(I(),t.listenerCount(this,"error")===0)throw w}u.on("error",R),i.on("error",R);function I(){u.removeListener("data",f),i.removeListener("drain",n),u.removeListener("end",_),u.removeListener("close",E),u.removeListener("error",R),i.removeListener("error",R),u.removeListener("end",I),u.removeListener("close",I),i.removeListener("close",I)}return u.on("end",I),u.on("close",I),i.on("close",I),i.emit("pipe",u),i},On}var sa;function vl(){return sa||(sa=1,function(t){(function(e){e.parser=function(x,y){return new i(x,y)},e.SAXParser=i,e.SAXStream=E,e.createStream=_,e.MAX_BUFFER_LENGTH=64*1024;var r=["comment","sgmlDecl","textNode","tagName","doctype","procInstName","procInstBody","entity","attribName","attribValue","cdata","script"];e.EVENTS=["text","processinginstruction","sgmldeclaration","doctype","comment","opentagstart","attribute","opentag","closetag","opencdata","cdata","closecdata","error","end","ready","script","opennamespace","closenamespace"];function i(x,y){if(!(this instanceof i))return new i(x,y);var j=this;u(j),j.q=j.c="",j.bufferCheckPosition=e.MAX_BUFFER_LENGTH,j.opt=y||{},j.opt.lowercase=j.opt.lowercase||j.opt.lowercasetags,j.looseCase=j.opt.lowercase?"toLowerCase":"toUpperCase",j.tags=[],j.closed=j.closedRoot=j.sawRoot=!1,j.tag=j.error=null,j.strict=!!x,j.noscript=!!(x||j.opt.noscript),j.state=k.BEGIN,j.strictEntities=j.opt.strictEntities,j.ENTITIES=j.strictEntities?Object.create(e.XML_ENTITIES):Object.create(e.ENTITIES),j.attribList=[],j.opt.xmlns&&(j.ns=Object.create(v)),j.trackPosition=j.opt.position!==!1,j.trackPosition&&(j.position=j.line=j.column=0),ue(j,"onready")}Object.create||(Object.create=function(x){function y(){}y.prototype=x;var j=new y;return j}),Object.keys||(Object.keys=function(x){var y=[];for(var j in x)x.hasOwnProperty(j)&&y.push(j);return y});function o(x){for(var y=Math.max(e.MAX_BUFFER_LENGTH,10),j=0,M=0,O=r.length;M<O;M++){var P=x[r[M]].length;if(P>y)switch(r[M]){case"textNode":U(x);break;case"cdata":C(x,"oncdata",x.cdata),x.cdata="";break;case"script":C(x,"onscript",x.script),x.script="";break;default:q(x,"Max buffer length exceeded: "+r[M])}j=Math.max(j,P)}var Q=e.MAX_BUFFER_LENGTH-j;x.bufferCheckPosition=Q+x.position}function u(x){for(var y=0,j=r.length;y<j;y++)x[r[y]]=""}function f(x){U(x),x.cdata!==""&&(C(x,"oncdata",x.cdata),x.cdata=""),x.script!==""&&(C(x,"onscript",x.script),x.script="")}i.prototype={end:function(){te(this)},write:K,resume:function(){return this.error=null,this},close:function(){return this.write(null)},flush:function(){f(this)}};var n;try{n=Si().Stream}catch{n=function(){}}var h=e.EVENTS.filter(function(x){return x!=="error"&&x!=="end"});function _(x,y){return new E(x,y)}function E(x,y){if(!(this instanceof E))return new E(x,y);n.apply(this),this._parser=new i(x,y),this.writable=!0,this.readable=!0;var j=this;this._parser.onend=function(){j.emit("end")},this._parser.onerror=function(M){j.emit("error",M),j._parser.error=null},this._decoder=null,h.forEach(function(M){Object.defineProperty(j,"on"+M,{get:function(){return j._parser["on"+M]},set:function(O){if(!O)return j.removeAllListeners(M),j._parser["on"+M]=O,O;j.on(M,O)},enumerable:!0,configurable:!1})})}E.prototype=Object.create(n.prototype,{constructor:{value:E}}),E.prototype.write=function(x){if(typeof Buffer=="function"&&typeof Buffer.isBuffer=="function"&&Buffer.isBuffer(x)){if(!this._decoder){var y=fi().StringDecoder;this._decoder=new y("utf8")}x=this._decoder.write(x)}return this._parser.write(x.toString()),this.emit("data",x),!0},E.prototype.end=function(x){return x&&x.length&&this.write(x),this._parser.end(),!0},E.prototype.on=function(x,y){var j=this;return!j._parser["on"+x]&&h.indexOf(x)!==-1&&(j._parser["on"+x]=function(){var M=arguments.length===1?[arguments[0]]:Array.apply(null,arguments);M.splice(0,0,x),j.emit.apply(j,M)}),n.prototype.on.call(j,x,y)};var R="[CDATA[",I="DOCTYPE",w="http://www.w3.org/XML/1998/namespace",A="http://www.w3.org/2000/xmlns/",v={xml:w,xmlns:A},N=/[:_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]/,l=/[:_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-]/,b=/[#:_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]/,d=/[#:_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 c(x){return x===" "||x===`
|
|
16
|
+
`||x==="\r"||x===" "}function S(x){return x==='"'||x==="'"}function L(x){return x===">"||c(x)}function F(x,y){return x.test(y)}function W(x,y){return!F(x,y)}var k=0;e.STATE={BEGIN:k++,BEGIN_WHITESPACE:k++,TEXT:k++,TEXT_ENTITY:k++,OPEN_WAKA:k++,SGML_DECL:k++,SGML_DECL_QUOTED:k++,DOCTYPE:k++,DOCTYPE_QUOTED:k++,DOCTYPE_DTD:k++,DOCTYPE_DTD_QUOTED:k++,COMMENT_STARTING:k++,COMMENT:k++,COMMENT_ENDING:k++,COMMENT_ENDED:k++,CDATA:k++,CDATA_ENDING:k++,CDATA_ENDING_2:k++,PROC_INST:k++,PROC_INST_BODY:k++,PROC_INST_ENDING:k++,OPEN_TAG:k++,OPEN_TAG_SLASH:k++,ATTRIB:k++,ATTRIB_NAME:k++,ATTRIB_NAME_SAW_WHITE:k++,ATTRIB_VALUE:k++,ATTRIB_VALUE_QUOTED:k++,ATTRIB_VALUE_CLOSED:k++,ATTRIB_VALUE_UNQUOTED:k++,ATTRIB_VALUE_ENTITY_Q:k++,ATTRIB_VALUE_ENTITY_U:k++,CLOSE_TAG:k++,CLOSE_TAG_SAW_WHITE:k++,SCRIPT:k++,SCRIPT_ENDING:k++},e.XML_ENTITIES={amp:"&",gt:">",lt:"<",quot:'"',apos:"'"},e.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(e.ENTITIES).forEach(function(x){var y=e.ENTITIES[x],j=typeof y=="number"?String.fromCharCode(y):y;e.ENTITIES[x]=j});for(var Z in e.STATE)e.STATE[e.STATE[Z]]=Z;k=e.STATE;function ue(x,y,j){x[y]&&x[y](j)}function C(x,y,j){x.textNode&&U(x),ue(x,y,j)}function U(x){x.textNode=g(x.opt,x.textNode),x.textNode&&ue(x,"ontext",x.textNode),x.textNode=""}function g(x,y){return x.trim&&(y=y.trim()),x.normalize&&(y=y.replace(/\s+/g," ")),y}function q(x,y){return U(x),x.trackPosition&&(y+=`
|
|
17
|
+
Line: `+x.line+`
|
|
18
|
+
Column: `+x.column+`
|
|
19
|
+
Char: `+x.c),y=new Error(y),x.error=y,ue(x,"onerror",y),x}function te(x){return x.sawRoot&&!x.closedRoot&&z(x,"Unclosed root tag"),x.state!==k.BEGIN&&x.state!==k.BEGIN_WHITESPACE&&x.state!==k.TEXT&&q(x,"Unexpected end"),U(x),x.c="",x.closed=!0,ue(x,"onend"),i.call(x,x.strict,x.opt),x}function z(x,y){if(typeof x!="object"||!(x instanceof i))throw new Error("bad call to strictFail");x.strict&&q(x,y)}function se(x){x.strict||(x.tagName=x.tagName[x.looseCase]());var y=x.tags[x.tags.length-1]||x,j=x.tag={name:x.tagName,attributes:{}};x.opt.xmlns&&(j.ns=y.ns),x.attribList.length=0,C(x,"onopentagstart",j)}function re(x,y){var j=x.indexOf(":"),M=j<0?["",x]:x.split(":"),O=M[0],P=M[1];return y&&x==="xmlns"&&(O="xmlns",P=""),{prefix:O,local:P}}function ce(x){if(x.strict||(x.attribName=x.attribName[x.looseCase]()),x.attribList.indexOf(x.attribName)!==-1||x.tag.attributes.hasOwnProperty(x.attribName)){x.attribName=x.attribValue="";return}if(x.opt.xmlns){var y=re(x.attribName,!0),j=y.prefix,M=y.local;if(j==="xmlns")if(M==="xml"&&x.attribValue!==w)z(x,"xml: prefix must be bound to "+w+`
|
|
20
|
+
Actual: `+x.attribValue);else if(M==="xmlns"&&x.attribValue!==A)z(x,"xmlns: prefix must be bound to "+A+`
|
|
21
|
+
Actual: `+x.attribValue);else{var O=x.tag,P=x.tags[x.tags.length-1]||x;O.ns===P.ns&&(O.ns=Object.create(P.ns)),O.ns[M]=x.attribValue}x.attribList.push([x.attribName,x.attribValue])}else x.tag.attributes[x.attribName]=x.attribValue,C(x,"onattribute",{name:x.attribName,value:x.attribValue});x.attribName=x.attribValue=""}function V(x,y){if(x.opt.xmlns){var j=x.tag,M=re(x.tagName);j.prefix=M.prefix,j.local=M.local,j.uri=j.ns[M.prefix]||"",j.prefix&&!j.uri&&(z(x,"Unbound namespace prefix: "+JSON.stringify(x.tagName)),j.uri=M.prefix);var O=x.tags[x.tags.length-1]||x;j.ns&&O.ns!==j.ns&&Object.keys(j.ns).forEach(function(H){C(x,"onopennamespace",{prefix:H,uri:j.ns[H]})});for(var P=0,Q=x.attribList.length;P<Q;P++){var p=x.attribList[P],J=p[0],T=p[1],s=re(J,!0),a=s.prefix,m=s.local,B=a===""?"":j.ns[a]||"",G={name:J,value:T,prefix:a,local:m,uri:B};a&&a!=="xmlns"&&!B&&(z(x,"Unbound namespace prefix: "+JSON.stringify(a)),G.uri=a),x.tag.attributes[J]=G,C(x,"onattribute",G)}x.attribList.length=0}x.tag.isSelfClosing=!!y,x.sawRoot=!0,x.tags.push(x.tag),C(x,"onopentag",x.tag),y||(!x.noscript&&x.tagName.toLowerCase()==="script"?x.state=k.SCRIPT:x.state=k.TEXT,x.tag=null,x.tagName=""),x.attribName=x.attribValue="",x.attribList.length=0}function D(x){if(!x.tagName){z(x,"Weird empty close tag."),x.textNode+="</>",x.state=k.TEXT;return}if(x.script){if(x.tagName!=="script"){x.script+="</"+x.tagName+">",x.tagName="",x.state=k.SCRIPT;return}C(x,"onscript",x.script),x.script=""}var y=x.tags.length,j=x.tagName;x.strict||(j=j[x.looseCase]());for(var M=j;y--;){var O=x.tags[y];if(O.name!==M)z(x,"Unexpected close tag");else break}if(y<0){z(x,"Unmatched closing tag: "+x.tagName),x.textNode+="</"+x.tagName+">",x.state=k.TEXT;return}x.tagName=j;for(var P=x.tags.length;P-- >y;){var Q=x.tag=x.tags.pop();x.tagName=x.tag.name,C(x,"onclosetag",x.tagName);var p={};for(var J in Q.ns)p[J]=Q.ns[J];var T=x.tags[x.tags.length-1]||x;x.opt.xmlns&&Q.ns!==T.ns&&Object.keys(Q.ns).forEach(function(s){var a=Q.ns[s];C(x,"onclosenamespace",{prefix:s,uri:a})})}y===0&&(x.closedRoot=!0),x.tagName=x.attribValue=x.attribName="",x.attribList.length=0,x.state=k.TEXT}function $(x){var y=x.entity,j=y.toLowerCase(),M,O="";return x.ENTITIES[y]?x.ENTITIES[y]:x.ENTITIES[j]?x.ENTITIES[j]:(y=j,y.charAt(0)==="#"&&(y.charAt(1)==="x"?(y=y.slice(2),M=parseInt(y,16),O=M.toString(16)):(y=y.slice(1),M=parseInt(y,10),O=M.toString(10))),y=y.replace(/^0+/,""),isNaN(M)||O.toLowerCase()!==y?(z(x,"Invalid character entity"),"&"+x.entity+";"):String.fromCodePoint(M))}function Y(x,y){y==="<"?(x.state=k.OPEN_WAKA,x.startTagPosition=x.position):c(y)||(z(x,"Non-whitespace before first tag."),x.textNode=y,x.state=k.TEXT)}function ne(x,y){var j="";return y<x.length&&(j=x.charAt(y)),j}function K(x){var y=this;if(this.error)throw this.error;if(y.closed)return q(y,"Cannot write after close. Assign an onready handler.");if(x===null)return te(y);typeof x=="object"&&(x=x.toString());for(var j=0,M="";M=ne(x,j++),y.c=M,!!M;)switch(y.trackPosition&&(y.position++,M===`
|
|
22
|
+
`?(y.line++,y.column=0):y.column++),y.state){case k.BEGIN:if(y.state=k.BEGIN_WHITESPACE,M==="\uFEFF")continue;Y(y,M);continue;case k.BEGIN_WHITESPACE:Y(y,M);continue;case k.TEXT:if(y.sawRoot&&!y.closedRoot){for(var O=j-1;M&&M!=="<"&&M!=="&";)M=ne(x,j++),M&&y.trackPosition&&(y.position++,M===`
|
|
23
|
+
`?(y.line++,y.column=0):y.column++);y.textNode+=x.substring(O,j-1)}M==="<"&&!(y.sawRoot&&y.closedRoot&&!y.strict)?(y.state=k.OPEN_WAKA,y.startTagPosition=y.position):(!c(M)&&(!y.sawRoot||y.closedRoot)&&z(y,"Text data outside of root node."),M==="&"?y.state=k.TEXT_ENTITY:y.textNode+=M);continue;case k.SCRIPT:M==="<"?y.state=k.SCRIPT_ENDING:y.script+=M;continue;case k.SCRIPT_ENDING:M==="/"?y.state=k.CLOSE_TAG:(y.script+="<"+M,y.state=k.SCRIPT);continue;case k.OPEN_WAKA:if(M==="!")y.state=k.SGML_DECL,y.sgmlDecl="";else if(!c(M))if(F(N,M))y.state=k.OPEN_TAG,y.tagName=M;else if(M==="/")y.state=k.CLOSE_TAG,y.tagName="";else if(M==="?")y.state=k.PROC_INST,y.procInstName=y.procInstBody="";else{if(z(y,"Unencoded <"),y.startTagPosition+1<y.position){var P=y.position-y.startTagPosition;M=new Array(P).join(" ")+M}y.textNode+="<"+M,y.state=k.TEXT}continue;case k.SGML_DECL:(y.sgmlDecl+M).toUpperCase()===R?(C(y,"onopencdata"),y.state=k.CDATA,y.sgmlDecl="",y.cdata=""):y.sgmlDecl+M==="--"?(y.state=k.COMMENT,y.comment="",y.sgmlDecl=""):(y.sgmlDecl+M).toUpperCase()===I?(y.state=k.DOCTYPE,(y.doctype||y.sawRoot)&&z(y,"Inappropriately located doctype declaration"),y.doctype="",y.sgmlDecl=""):M===">"?(C(y,"onsgmldeclaration",y.sgmlDecl),y.sgmlDecl="",y.state=k.TEXT):(S(M)&&(y.state=k.SGML_DECL_QUOTED),y.sgmlDecl+=M);continue;case k.SGML_DECL_QUOTED:M===y.q&&(y.state=k.SGML_DECL,y.q=""),y.sgmlDecl+=M;continue;case k.DOCTYPE:M===">"?(y.state=k.TEXT,C(y,"ondoctype",y.doctype),y.doctype=!0):(y.doctype+=M,M==="["?y.state=k.DOCTYPE_DTD:S(M)&&(y.state=k.DOCTYPE_QUOTED,y.q=M));continue;case k.DOCTYPE_QUOTED:y.doctype+=M,M===y.q&&(y.q="",y.state=k.DOCTYPE);continue;case k.DOCTYPE_DTD:y.doctype+=M,M==="]"?y.state=k.DOCTYPE:S(M)&&(y.state=k.DOCTYPE_DTD_QUOTED,y.q=M);continue;case k.DOCTYPE_DTD_QUOTED:y.doctype+=M,M===y.q&&(y.state=k.DOCTYPE_DTD,y.q="");continue;case k.COMMENT:M==="-"?y.state=k.COMMENT_ENDING:y.comment+=M;continue;case k.COMMENT_ENDING:M==="-"?(y.state=k.COMMENT_ENDED,y.comment=g(y.opt,y.comment),y.comment&&C(y,"oncomment",y.comment),y.comment=""):(y.comment+="-"+M,y.state=k.COMMENT);continue;case k.COMMENT_ENDED:M!==">"?(z(y,"Malformed comment"),y.comment+="--"+M,y.state=k.COMMENT):y.state=k.TEXT;continue;case k.CDATA:M==="]"?y.state=k.CDATA_ENDING:y.cdata+=M;continue;case k.CDATA_ENDING:M==="]"?y.state=k.CDATA_ENDING_2:(y.cdata+="]"+M,y.state=k.CDATA);continue;case k.CDATA_ENDING_2:M===">"?(y.cdata&&C(y,"oncdata",y.cdata),C(y,"onclosecdata"),y.cdata="",y.state=k.TEXT):M==="]"?y.cdata+="]":(y.cdata+="]]"+M,y.state=k.CDATA);continue;case k.PROC_INST:M==="?"?y.state=k.PROC_INST_ENDING:c(M)?y.state=k.PROC_INST_BODY:y.procInstName+=M;continue;case k.PROC_INST_BODY:if(!y.procInstBody&&c(M))continue;M==="?"?y.state=k.PROC_INST_ENDING:y.procInstBody+=M;continue;case k.PROC_INST_ENDING:M===">"?(C(y,"onprocessinginstruction",{name:y.procInstName,body:y.procInstBody}),y.procInstName=y.procInstBody="",y.state=k.TEXT):(y.procInstBody+="?"+M,y.state=k.PROC_INST_BODY);continue;case k.OPEN_TAG:F(l,M)?y.tagName+=M:(se(y),M===">"?V(y):M==="/"?y.state=k.OPEN_TAG_SLASH:(c(M)||z(y,"Invalid character in tag name"),y.state=k.ATTRIB));continue;case k.OPEN_TAG_SLASH:M===">"?(V(y,!0),D(y)):(z(y,"Forward-slash in opening tag not followed by >"),y.state=k.ATTRIB);continue;case k.ATTRIB:if(c(M))continue;M===">"?V(y):M==="/"?y.state=k.OPEN_TAG_SLASH:F(N,M)?(y.attribName=M,y.attribValue="",y.state=k.ATTRIB_NAME):z(y,"Invalid attribute name");continue;case k.ATTRIB_NAME:M==="="?y.state=k.ATTRIB_VALUE:M===">"?(z(y,"Attribute without value"),y.attribValue=y.attribName,ce(y),V(y)):c(M)?y.state=k.ATTRIB_NAME_SAW_WHITE:F(l,M)?y.attribName+=M:z(y,"Invalid attribute name");continue;case k.ATTRIB_NAME_SAW_WHITE:if(M==="=")y.state=k.ATTRIB_VALUE;else{if(c(M))continue;z(y,"Attribute without value"),y.tag.attributes[y.attribName]="",y.attribValue="",C(y,"onattribute",{name:y.attribName,value:""}),y.attribName="",M===">"?V(y):F(N,M)?(y.attribName=M,y.state=k.ATTRIB_NAME):(z(y,"Invalid attribute name"),y.state=k.ATTRIB)}continue;case k.ATTRIB_VALUE:if(c(M))continue;S(M)?(y.q=M,y.state=k.ATTRIB_VALUE_QUOTED):(z(y,"Unquoted attribute value"),y.state=k.ATTRIB_VALUE_UNQUOTED,y.attribValue=M);continue;case k.ATTRIB_VALUE_QUOTED:if(M!==y.q){M==="&"?y.state=k.ATTRIB_VALUE_ENTITY_Q:y.attribValue+=M;continue}ce(y),y.q="",y.state=k.ATTRIB_VALUE_CLOSED;continue;case k.ATTRIB_VALUE_CLOSED:c(M)?y.state=k.ATTRIB:M===">"?V(y):M==="/"?y.state=k.OPEN_TAG_SLASH:F(N,M)?(z(y,"No whitespace between attributes"),y.attribName=M,y.attribValue="",y.state=k.ATTRIB_NAME):z(y,"Invalid attribute name");continue;case k.ATTRIB_VALUE_UNQUOTED:if(!L(M)){M==="&"?y.state=k.ATTRIB_VALUE_ENTITY_U:y.attribValue+=M;continue}ce(y),M===">"?V(y):y.state=k.ATTRIB;continue;case k.CLOSE_TAG:if(y.tagName)M===">"?D(y):F(l,M)?y.tagName+=M:y.script?(y.script+="</"+y.tagName,y.tagName="",y.state=k.SCRIPT):(c(M)||z(y,"Invalid tagname in closing tag"),y.state=k.CLOSE_TAG_SAW_WHITE);else{if(c(M))continue;W(N,M)?y.script?(y.script+="</"+M,y.state=k.SCRIPT):z(y,"Invalid tagname in closing tag."):y.tagName=M}continue;case k.CLOSE_TAG_SAW_WHITE:if(c(M))continue;M===">"?D(y):z(y,"Invalid characters in closing tag");continue;case k.TEXT_ENTITY:case k.ATTRIB_VALUE_ENTITY_Q:case k.ATTRIB_VALUE_ENTITY_U:var Q,p;switch(y.state){case k.TEXT_ENTITY:Q=k.TEXT,p="textNode";break;case k.ATTRIB_VALUE_ENTITY_Q:Q=k.ATTRIB_VALUE_QUOTED,p="attribValue";break;case k.ATTRIB_VALUE_ENTITY_U:Q=k.ATTRIB_VALUE_UNQUOTED,p="attribValue";break}M===";"?(y[p]+=$(y),y.entity="",y.state=Q):F(y.entity.length?d:b,M)?y.entity+=M:(z(y,"Invalid character in entity name"),y[p]+="&"+y.entity+M,y.entity="",y.state=Q);continue;default:throw new Error(y,"Unknown state: "+y.state)}return y.position>=y.bufferCheckPosition&&o(y),y}/*! http://mths.be/fromcodepoint v0.1.0 by @mathias */String.fromCodePoint||function(){var x=String.fromCharCode,y=Math.floor,j=function(){var M=16384,O=[],P,Q,p=-1,J=arguments.length;if(!J)return"";for(var T="";++p<J;){var s=Number(arguments[p]);if(!isFinite(s)||s<0||s>1114111||y(s)!==s)throw RangeError("Invalid code point: "+s);s<=65535?O.push(s):(s-=65536,P=(s>>10)+55296,Q=s%1024+56320,O.push(P,Q)),(p+1===J||O.length>M)&&(T+=x.apply(null,O),O.length=0)}return T};Object.defineProperty?Object.defineProperty(String,"fromCodePoint",{value:j,configurable:!0,writable:!0}):String.fromCodePoint=j}()})(t)}(wr)),wr}var Dn,aa;function Ri(){return aa||(aa=1,Dn={isArray:function(t){return Array.isArray?Array.isArray(t):Object.prototype.toString.call(t)==="[object Array]"}}),Dn}var Pn,oa;function Ii(){if(oa)return Pn;oa=1;var t=Ri().isArray;return Pn={copyOptions:function(e){var r,i={};for(r in e)e.hasOwnProperty(r)&&(i[r]=e[r]);return i},ensureFlagExists:function(e,r){(!(e in r)||typeof r[e]!="boolean")&&(r[e]=!1)},ensureSpacesExists:function(e){(!("spaces"in e)||typeof e.spaces!="number"&&typeof e.spaces!="string")&&(e.spaces=0)},ensureAlwaysArrayExists:function(e){(!("alwaysArray"in e)||typeof e.alwaysArray!="boolean"&&!t(e.alwaysArray))&&(e.alwaysArray=!1)},ensureKeyExists:function(e,r){(!(e+"Key"in r)||typeof r[e+"Key"]!="string")&&(r[e+"Key"]=r.compact?"_"+e:e)},checkFnExists:function(e,r){return e+"Fn"in r}},Pn}var Ln,ua;function Eo(){if(ua)return Ln;ua=1;var t=vl(),e=Ii(),r=Ri().isArray,i,o;function u(l){return i=e.copyOptions(l),e.ensureFlagExists("ignoreDeclaration",i),e.ensureFlagExists("ignoreInstruction",i),e.ensureFlagExists("ignoreAttributes",i),e.ensureFlagExists("ignoreText",i),e.ensureFlagExists("ignoreComment",i),e.ensureFlagExists("ignoreCdata",i),e.ensureFlagExists("ignoreDoctype",i),e.ensureFlagExists("compact",i),e.ensureFlagExists("alwaysChildren",i),e.ensureFlagExists("addParent",i),e.ensureFlagExists("trim",i),e.ensureFlagExists("nativeType",i),e.ensureFlagExists("nativeTypeAttributes",i),e.ensureFlagExists("sanitize",i),e.ensureFlagExists("instructionHasAttributes",i),e.ensureFlagExists("captureSpacesBetweenElements",i),e.ensureAlwaysArrayExists(i),e.ensureKeyExists("declaration",i),e.ensureKeyExists("instruction",i),e.ensureKeyExists("attributes",i),e.ensureKeyExists("text",i),e.ensureKeyExists("comment",i),e.ensureKeyExists("cdata",i),e.ensureKeyExists("doctype",i),e.ensureKeyExists("type",i),e.ensureKeyExists("name",i),e.ensureKeyExists("elements",i),e.ensureKeyExists("parent",i),e.checkFnExists("doctype",i),e.checkFnExists("instruction",i),e.checkFnExists("cdata",i),e.checkFnExists("comment",i),e.checkFnExists("text",i),e.checkFnExists("instructionName",i),e.checkFnExists("elementName",i),e.checkFnExists("attributeName",i),e.checkFnExists("attributeValue",i),e.checkFnExists("attributes",i),i}function f(l){var b=Number(l);if(!isNaN(b))return b;var d=l.toLowerCase();return d==="true"?!0:d==="false"?!1:l}function n(l,b){var d;if(i.compact){if(!o[i[l+"Key"]]&&(r(i.alwaysArray)?i.alwaysArray.indexOf(i[l+"Key"])!==-1:i.alwaysArray)&&(o[i[l+"Key"]]=[]),o[i[l+"Key"]]&&!r(o[i[l+"Key"]])&&(o[i[l+"Key"]]=[o[i[l+"Key"]]]),l+"Fn"in i&&typeof b=="string"&&(b=i[l+"Fn"](b,o)),l==="instruction"&&("instructionFn"in i||"instructionNameFn"in i)){for(d in b)if(b.hasOwnProperty(d))if("instructionFn"in i)b[d]=i.instructionFn(b[d],d,o);else{var c=b[d];delete b[d],b[i.instructionNameFn(d,c,o)]=c}}r(o[i[l+"Key"]])?o[i[l+"Key"]].push(b):o[i[l+"Key"]]=b}else{o[i.elementsKey]||(o[i.elementsKey]=[]);var S={};if(S[i.typeKey]=l,l==="instruction"){for(d in b)if(b.hasOwnProperty(d))break;S[i.nameKey]="instructionNameFn"in i?i.instructionNameFn(d,b,o):d,i.instructionHasAttributes?(S[i.attributesKey]=b[d][i.attributesKey],"instructionFn"in i&&(S[i.attributesKey]=i.instructionFn(S[i.attributesKey],d,o))):("instructionFn"in i&&(b[d]=i.instructionFn(b[d],d,o)),S[i.instructionKey]=b[d])}else l+"Fn"in i&&(b=i[l+"Fn"](b,o)),S[i[l+"Key"]]=b;i.addParent&&(S[i.parentKey]=o),o[i.elementsKey].push(S)}}function h(l){if("attributesFn"in i&&l&&(l=i.attributesFn(l,o)),(i.trim||"attributeValueFn"in i||"attributeNameFn"in i||i.nativeTypeAttributes)&&l){var b;for(b in l)if(l.hasOwnProperty(b)&&(i.trim&&(l[b]=l[b].trim()),i.nativeTypeAttributes&&(l[b]=f(l[b])),"attributeValueFn"in i&&(l[b]=i.attributeValueFn(l[b],b,o)),"attributeNameFn"in i)){var d=l[b];delete l[b],l[i.attributeNameFn(b,l[b],o)]=d}}return l}function _(l){var b={};if(l.body&&(l.name.toLowerCase()==="xml"||i.instructionHasAttributes)){for(var d=/([\w:-]+)\s*=\s*(?:"([^"]*)"|'([^']*)'|(\w+))\s*/g,c;(c=d.exec(l.body))!==null;)b[c[1]]=c[2]||c[3]||c[4];b=h(b)}if(l.name.toLowerCase()==="xml"){if(i.ignoreDeclaration)return;o[i.declarationKey]={},Object.keys(b).length&&(o[i.declarationKey][i.attributesKey]=b),i.addParent&&(o[i.declarationKey][i.parentKey]=o)}else{if(i.ignoreInstruction)return;i.trim&&(l.body=l.body.trim());var S={};i.instructionHasAttributes&&Object.keys(b).length?(S[l.name]={},S[l.name][i.attributesKey]=b):S[l.name]=l.body,n("instruction",S)}}function E(l,b){var d;if(typeof l=="object"&&(b=l.attributes,l=l.name),b=h(b),"elementNameFn"in i&&(l=i.elementNameFn(l,o)),i.compact){if(d={},!i.ignoreAttributes&&b&&Object.keys(b).length){d[i.attributesKey]={};var c;for(c in b)b.hasOwnProperty(c)&&(d[i.attributesKey][c]=b[c])}!(l in o)&&(r(i.alwaysArray)?i.alwaysArray.indexOf(l)!==-1:i.alwaysArray)&&(o[l]=[]),o[l]&&!r(o[l])&&(o[l]=[o[l]]),r(o[l])?o[l].push(d):o[l]=d}else o[i.elementsKey]||(o[i.elementsKey]=[]),d={},d[i.typeKey]="element",d[i.nameKey]=l,!i.ignoreAttributes&&b&&Object.keys(b).length&&(d[i.attributesKey]=b),i.alwaysChildren&&(d[i.elementsKey]=[]),o[i.elementsKey].push(d);d[i.parentKey]=o,o=d}function R(l){i.ignoreText||!l.trim()&&!i.captureSpacesBetweenElements||(i.trim&&(l=l.trim()),i.nativeType&&(l=f(l)),i.sanitize&&(l=l.replace(/&/g,"&").replace(/</g,"<").replace(/>/g,">")),n("text",l))}function I(l){i.ignoreComment||(i.trim&&(l=l.trim()),n("comment",l))}function w(l){var b=o[i.parentKey];i.addParent||delete o[i.parentKey],o=b}function A(l){i.ignoreCdata||(i.trim&&(l=l.trim()),n("cdata",l))}function v(l){i.ignoreDoctype||(l=l.replace(/^ /,""),i.trim&&(l=l.trim()),n("doctype",l))}function N(l){l.note=l}return Ln=function(l,b){var d=t.parser(!0,{}),c={};if(o=c,i=u(b),d.opt={strictEntities:!0},d.onopentag=E,d.ontext=R,d.oncomment=I,d.onclosetag=w,d.onerror=N,d.oncdata=A,d.ondoctype=v,d.onprocessinginstruction=_,d.write(l).close(),c[i.elementsKey]){var S=c[i.elementsKey];delete c[i.elementsKey],c[i.elementsKey]=S,delete c.text}return c},Ln}var Fn,la;function bl(){if(la)return Fn;la=1;var t=Ii(),e=Eo();function r(i){var o=t.copyOptions(i);return t.ensureSpacesExists(o),o}return Fn=function(i,o){var u,f,n,h;return u=r(o),f=e(i,u),h="compact"in u&&u.compact?"_parent":"parent","addParent"in u&&u.addParent?n=JSON.stringify(f,function(_,E){return _===h?"_":E},u.spaces):n=JSON.stringify(f,null,u.spaces),n.replace(/\u2028/g,"\\u2028").replace(/\u2029/g,"\\u2029")},Fn}var Bn,ca;function xo(){if(ca)return Bn;ca=1;var t=Ii(),e=Ri().isArray,r,i;function o(d){var c=t.copyOptions(d);return t.ensureFlagExists("ignoreDeclaration",c),t.ensureFlagExists("ignoreInstruction",c),t.ensureFlagExists("ignoreAttributes",c),t.ensureFlagExists("ignoreText",c),t.ensureFlagExists("ignoreComment",c),t.ensureFlagExists("ignoreCdata",c),t.ensureFlagExists("ignoreDoctype",c),t.ensureFlagExists("compact",c),t.ensureFlagExists("indentText",c),t.ensureFlagExists("indentCdata",c),t.ensureFlagExists("indentAttributes",c),t.ensureFlagExists("indentInstruction",c),t.ensureFlagExists("fullTagEmptyElement",c),t.ensureFlagExists("noQuotesForNativeAttributes",c),t.ensureSpacesExists(c),typeof c.spaces=="number"&&(c.spaces=Array(c.spaces+1).join(" ")),t.ensureKeyExists("declaration",c),t.ensureKeyExists("instruction",c),t.ensureKeyExists("attributes",c),t.ensureKeyExists("text",c),t.ensureKeyExists("comment",c),t.ensureKeyExists("cdata",c),t.ensureKeyExists("doctype",c),t.ensureKeyExists("type",c),t.ensureKeyExists("name",c),t.ensureKeyExists("elements",c),t.checkFnExists("doctype",c),t.checkFnExists("instruction",c),t.checkFnExists("cdata",c),t.checkFnExists("comment",c),t.checkFnExists("text",c),t.checkFnExists("instructionName",c),t.checkFnExists("elementName",c),t.checkFnExists("attributeName",c),t.checkFnExists("attributeValue",c),t.checkFnExists("attributes",c),t.checkFnExists("fullTagEmptyElement",c),c}function u(d,c,S){return(!S&&d.spaces?`
|
|
24
|
+
`:"")+Array(c+1).join(d.spaces)}function f(d,c,S){if(c.ignoreAttributes)return"";"attributesFn"in c&&(d=c.attributesFn(d,i,r));var L,F,W,k,Z=[];for(L in d)d.hasOwnProperty(L)&&d[L]!==null&&d[L]!==void 0&&(k=c.noQuotesForNativeAttributes&&typeof d[L]!="string"?"":'"',F=""+d[L],F=F.replace(/"/g,"""),W="attributeNameFn"in c?c.attributeNameFn(L,F,i,r):L,Z.push(c.spaces&&c.indentAttributes?u(c,S+1,!1):" "),Z.push(W+"="+k+("attributeValueFn"in c?c.attributeValueFn(F,L,i,r):F)+k));return d&&Object.keys(d).length&&c.spaces&&c.indentAttributes&&Z.push(u(c,S,!1)),Z.join("")}function n(d,c,S){return r=d,i="xml",c.ignoreDeclaration?"":"<?xml"+f(d[c.attributesKey],c,S)+"?>"}function h(d,c,S){if(c.ignoreInstruction)return"";var L;for(L in d)if(d.hasOwnProperty(L))break;var F="instructionNameFn"in c?c.instructionNameFn(L,d[L],i,r):L;if(typeof d[L]=="object")return r=d,i=F,"<?"+F+f(d[L][c.attributesKey],c,S)+"?>";var W=d[L]?d[L]:"";return"instructionFn"in c&&(W=c.instructionFn(W,L,i,r)),"<?"+F+(W?" "+W:"")+"?>"}function _(d,c){return c.ignoreComment?"":"<!--"+("commentFn"in c?c.commentFn(d,i,r):d)+"-->"}function E(d,c){return c.ignoreCdata?"":"<![CDATA["+("cdataFn"in c?c.cdataFn(d,i,r):d.replace("]]>","]]]]><![CDATA[>"))+"]]>"}function R(d,c){return c.ignoreDoctype?"":"<!DOCTYPE "+("doctypeFn"in c?c.doctypeFn(d,i,r):d)+">"}function I(d,c){return c.ignoreText?"":(d=""+d,d=d.replace(/&/g,"&"),d=d.replace(/&/g,"&").replace(/</g,"<").replace(/>/g,">"),"textFn"in c?c.textFn(d,i,r):d)}function w(d,c){var S;if(d.elements&&d.elements.length)for(S=0;S<d.elements.length;++S)switch(d.elements[S][c.typeKey]){case"text":if(c.indentText)return!0;break;case"cdata":if(c.indentCdata)return!0;break;case"instruction":if(c.indentInstruction)return!0;break;case"doctype":case"comment":case"element":return!0;default:return!0}return!1}function A(d,c,S){r=d,i=d.name;var L=[],F="elementNameFn"in c?c.elementNameFn(d.name,d):d.name;L.push("<"+F),d[c.attributesKey]&&L.push(f(d[c.attributesKey],c,S));var W=d[c.elementsKey]&&d[c.elementsKey].length||d[c.attributesKey]&&d[c.attributesKey]["xml:space"]==="preserve";return W||("fullTagEmptyElementFn"in c?W=c.fullTagEmptyElementFn(d.name,d):W=c.fullTagEmptyElement),W?(L.push(">"),d[c.elementsKey]&&d[c.elementsKey].length&&(L.push(v(d[c.elementsKey],c,S+1)),r=d,i=d.name),L.push(c.spaces&&w(d,c)?`
|
|
25
|
+
`+Array(S+1).join(c.spaces):""),L.push("</"+F+">")):L.push("/>"),L.join("")}function v(d,c,S,L){return d.reduce(function(F,W){var k=u(c,S,L&&!F);switch(W.type){case"element":return F+k+A(W,c,S);case"comment":return F+k+_(W[c.commentKey],c);case"doctype":return F+k+R(W[c.doctypeKey],c);case"cdata":return F+(c.indentCdata?k:"")+E(W[c.cdataKey],c);case"text":return F+(c.indentText?k:"")+I(W[c.textKey],c);case"instruction":var Z={};return Z[W[c.nameKey]]=W[c.attributesKey]?W:W[c.instructionKey],F+(c.indentInstruction?k:"")+h(Z,c,S)}},"")}function N(d,c,S){var L;for(L in d)if(d.hasOwnProperty(L))switch(L){case c.parentKey:case c.attributesKey:break;case c.textKey:if(c.indentText||S)return!0;break;case c.cdataKey:if(c.indentCdata||S)return!0;break;case c.instructionKey:if(c.indentInstruction||S)return!0;break;case c.doctypeKey:case c.commentKey:return!0;default:return!0}return!1}function l(d,c,S,L,F){r=d,i=c;var W="elementNameFn"in S?S.elementNameFn(c,d):c;if(typeof d>"u"||d===null||d==="")return"fullTagEmptyElementFn"in S&&S.fullTagEmptyElementFn(c,d)||S.fullTagEmptyElement?"<"+W+"></"+W+">":"<"+W+"/>";var k=[];if(c){if(k.push("<"+W),typeof d!="object")return k.push(">"+I(d,S)+"</"+W+">"),k.join("");d[S.attributesKey]&&k.push(f(d[S.attributesKey],S,L));var Z=N(d,S,!0)||d[S.attributesKey]&&d[S.attributesKey]["xml:space"]==="preserve";if(Z||("fullTagEmptyElementFn"in S?Z=S.fullTagEmptyElementFn(c,d):Z=S.fullTagEmptyElement),Z)k.push(">");else return k.push("/>"),k.join("")}return k.push(b(d,S,L+1,!1)),r=d,i=c,c&&k.push((F?u(S,L,!1):"")+"</"+W+">"),k.join("")}function b(d,c,S,L){var F,W,k,Z=[];for(W in d)if(d.hasOwnProperty(W))for(k=e(d[W])?d[W]:[d[W]],F=0;F<k.length;++F){switch(W){case c.declarationKey:Z.push(n(k[F],c,S));break;case c.instructionKey:Z.push((c.indentInstruction?u(c,S,L):"")+h(k[F],c,S));break;case c.attributesKey:case c.parentKey:break;case c.textKey:Z.push((c.indentText?u(c,S,L):"")+I(k[F],c));break;case c.cdataKey:Z.push((c.indentCdata?u(c,S,L):"")+E(k[F],c));break;case c.doctypeKey:Z.push(u(c,S,L)+R(k[F],c));break;case c.commentKey:Z.push(u(c,S,L)+_(k[F],c));break;default:Z.push(u(c,S,L)+l(k[F],W,c,S,N(k[F],c)))}L=L&&!Z.length}return Z.join("")}return Bn=function(d,c){c=o(c);var S=[];return r=d,i="_root_",c.compact?S.push(b(d,c,0,!0)):(d[c.declarationKey]&&S.push(n(d[c.declarationKey],c,0)),d[c.elementsKey]&&d[c.elementsKey].length&&S.push(v(d[c.elementsKey],c,0,!S.length))),S.join("")},Bn}var Mn,ha;function _l(){if(ha)return Mn;ha=1;var t=xo();return Mn=function(e,r){e instanceof Buffer&&(e=e.toString());var i=null;if(typeof e=="string")try{i=JSON.parse(e)}catch{throw new Error("The JSON structure is invalid")}else i=e;return t(i,r)},Mn}var Un,fa;function El(){if(fa)return Un;fa=1;var t=Eo(),e=bl(),r=xo(),i=_l();return Un={xml2js:t,xml2json:e,js2xml:r,json2xml:i},Un}var rr=El();const Ni=t=>{switch(t.type){case void 0:case"element":const e=new Tl(t.name,t.attributes),r=t.elements||[];for(const i of r){const o=Ni(i);o!==void 0&&e.push(o)}return e;case"text":return t.text;default:return}};class xl extends fe{}class Tl extends X{static fromXmlString(e){const r=rr.xml2js(e,{compact:!1});return Ni(r)}constructor(e,r){super(e),r&&this.root.push(new xl(r))}push(e){this.root.push(e)}}class Al extends X{constructor(e){super(""),this._attr=e}prepForXml(e){return{_attr:this._attr}}}const sm="";class To extends X{constructor(e,r){super(e),r&&(this.root=r.root)}}const Ae=t=>{if(isNaN(t))throw new Error(`Invalid value '${t}' specified. Must be an integer.`);return Math.floor(t)},nr=t=>{const e=Ae(t);if(e<0)throw new Error(`Invalid value '${t}' specified. Must be a positive integer.`);return e},ir=(t,e)=>{const r=e*2;if(t.length!==r||isNaN(+`0x${t}`))throw new Error(`Invalid hex value '${t}'. Expected ${r} digit hex value`);return t},am=t=>ir(t,4),Sl=t=>ir(t,2),da=t=>ir(t,1),sr=t=>{const e=t.slice(-2),r=t.substring(0,t.length-2);return`${Number(r)}${e}`},Ao=t=>{const e=sr(t);if(parseFloat(e)<0)throw new Error(`Invalid value '${e}' specified. Expected a positive number.`);return e},_t=t=>{if(t==="auto")return t;const e=t.charAt(0)==="#"?t.substring(1):t;return ir(e,3)},Xe=t=>typeof t=="string"?sr(t):Ae(t),Rl=t=>typeof t=="string"?Ao(t):nr(t),om=t=>typeof t=="string"?sr(t):Ae(t),Te=t=>typeof t=="string"?Ao(t):nr(t),Il=t=>{const e=t.substring(0,t.length-1);return`${Number(e)}%`},So=t=>typeof t=="number"?Ae(t):t.slice(-1)==="%"?Il(t):sr(t),Nl=nr,kl=nr,Cl=t=>t.toISOString();class le extends X{constructor(e,r=!0){super(e),r!==!0&&this.root.push(new _e({val:r}))}}class Hn extends X{constructor(e,r){super(e),this.root.push(new _e({val:Rl(r)}))}}class Se extends X{}class et extends X{constructor(e,r){super(e),this.root.push(new _e({val:r}))}}const St=(t,e)=>new pe({name:t,attributes:{value:{key:"w:val",value:e}}});class Ct extends X{constructor(e,r){super(e),this.root.push(new _e({val:r}))}}class Ol extends X{constructor(e,r){super(e),this.root.push(new _e({val:r}))}}class it extends X{constructor(e,r){super(e),this.root.push(r)}}class pe extends X{constructor({name:e,attributes:r,children:i}){super(e),r&&this.root.push(new Le(r)),i&&this.root.push(...i)}}const Me={START:"start",CENTER:"center",END:"end",BOTH:"both",MEDIUM_KASHIDA:"mediumKashida",DISTRIBUTE:"distribute",NUM_TAB:"numTab",HIGH_KASHIDA:"highKashida",LOW_KASHIDA:"lowKashida",THAI_DISTRIBUTE:"thaiDistribute",LEFT:"left",RIGHT:"right",JUSTIFIED:"both"};class Dl extends fe{constructor(){super(...arguments),ee(this,"xmlKeys",{val:"w:val"})}}class Ro extends X{constructor(e){super("w:jc"),this.root.push(new Dl({val:e}))}}class ve extends X{constructor(e,{color:r,size:i,space:o,style:u}){super(e),this.root.push(new Pl({style:u,color:r===void 0?void 0:_t(r),size:i===void 0?void 0:Nl(i),space:o===void 0?void 0:kl(o)}))}}class Pl extends fe{constructor(){super(...arguments),ee(this,"xmlKeys",{style:"w:val",color:"w:color",size:"w:sz",space:"w:space"})}}const ki={SINGLE:"single",DASH_DOT_STROKED:"dashDotStroked",DASHED:"dashed",DASH_SMALL_GAP:"dashSmallGap",DOT_DASH:"dotDash",DOT_DOT_DASH:"dotDotDash",DOTTED:"dotted",DOUBLE:"double",DOUBLE_WAVE:"doubleWave",INSET:"inset",NIL:"nil",NONE:"none",OUTSET:"outset",THICK:"thick",THICK_THIN_LARGE_GAP:"thickThinLargeGap",THICK_THIN_MEDIUM_GAP:"thickThinMediumGap",THICK_THIN_SMALL_GAP:"thickThinSmallGap",THIN_THICK_LARGE_GAP:"thinThickLargeGap",THIN_THICK_MEDIUM_GAP:"thinThickMediumGap",THIN_THICK_SMALL_GAP:"thinThickSmallGap",THIN_THICK_THIN_LARGE_GAP:"thinThickThinLargeGap",THIN_THICK_THIN_MEDIUM_GAP:"thinThickThinMediumGap",THIN_THICK_THIN_SMALL_GAP:"thinThickThinSmallGap",THREE_D_EMBOSS:"threeDEmboss",THREE_D_ENGRAVE:"threeDEngrave",TRIPLE:"triple",WAVE:"wave"};class Ll extends Ye{constructor(e){super("w:pBdr"),e.top&&this.root.push(new ve("w:top",e.top)),e.bottom&&this.root.push(new ve("w:bottom",e.bottom)),e.left&&this.root.push(new ve("w:left",e.left)),e.right&&this.root.push(new ve("w:right",e.right))}}class Fl extends X{constructor(){super("w:pBdr");const e=new ve("w:bottom",{color:"auto",space:1,style:ki.SINGLE,size:6});this.root.push(e)}}class Bl extends X{constructor({start:e,end:r,left:i,right:o,hanging:u,firstLine:f}){super("w:ind"),this.root.push(new Le({start:{key:"w:start",value:e===void 0?void 0:Xe(e)},end:{key:"w:end",value:r===void 0?void 0:Xe(r)},left:{key:"w:left",value:i===void 0?void 0:Xe(i)},right:{key:"w:right",value:o===void 0?void 0:Xe(o)},hanging:{key:"w:hanging",value:u===void 0?void 0:Te(u)},firstLine:{key:"w:firstLine",value:f===void 0?void 0:Te(f)}}))}}let Io=class extends X{constructor(){super("w:br")}};const Ci={BEGIN:"begin",END:"end",SEPARATE:"separate"};class Oi extends fe{constructor(){super(...arguments),ee(this,"xmlKeys",{type:"w:fldCharType",dirty:"w:dirty"})}}class je extends X{constructor(e){super("w:fldChar"),this.root.push(new Oi({type:Ci.BEGIN,dirty:e}))}}class Ze extends X{constructor(e){super("w:fldChar"),this.root.push(new Oi({type:Ci.SEPARATE,dirty:e}))}}class ze extends X{constructor(e){super("w:fldChar"),this.root.push(new Oi({type:Ci.END,dirty:e}))}}const lm={CENTER:"center",INSIDE:"inside",LEFT:"left",OUTSIDE:"outside",RIGHT:"right"},cm={BOTTOM:"bottom",CENTER:"center",INSIDE:"inside",OUTSIDE:"outside",TOP:"top"},hm={DECIMAL:"decimal",UPPER_ROMAN:"upperRoman",LOWER_ROMAN:"lowerRoman",UPPER_LETTER:"upperLetter",LOWER_LETTER:"lowerLetter",ORDINAL:"ordinal",CARDINAL_TEXT:"cardinalText",ORDINAL_TEXT:"ordinalText",HEX:"hex",CHICAGO:"chicago",IDEOGRAPH_DIGITAL:"ideographDigital",JAPANESE_COUNTING:"japaneseCounting",AIUEO:"aiueo",IROHA:"iroha",DECIMAL_FULL_WIDTH:"decimalFullWidth",DECIMAL_HALF_WIDTH:"decimalHalfWidth",JAPANESE_LEGAL:"japaneseLegal",JAPANESE_DIGITAL_TEN_THOUSAND:"japaneseDigitalTenThousand",DECIMAL_ENCLOSED_CIRCLE:"decimalEnclosedCircle",DECIMAL_FULL_WIDTH_2:"decimalFullWidth2",AIUEO_FULL_WIDTH:"aiueoFullWidth",IROHA_FULL_WIDTH:"irohaFullWidth",DECIMAL_ZERO:"decimalZero",BULLET:"bullet",GANADA:"ganada",CHOSUNG:"chosung",DECIMAL_ENCLOSED_FULL_STOP:"decimalEnclosedFullstop",DECIMAL_ENCLOSED_PAREN:"decimalEnclosedParen",DECIMAL_ENCLOSED_CIRCLE_CHINESE:"decimalEnclosedCircleChinese",IDEOGRAPH_ENCLOSED_CIRCLE:"ideographEnclosedCircle",IDEOGRAPH_TRADITIONAL:"ideographTraditional",IDEOGRAPH_ZODIAC:"ideographZodiac",IDEOGRAPH_ZODIAC_TRADITIONAL:"ideographZodiacTraditional",TAIWANESE_COUNTING:"taiwaneseCounting",IDEOGRAPH_LEGAL_TRADITIONAL:"ideographLegalTraditional",TAIWANESE_COUNTING_THOUSAND:"taiwaneseCountingThousand",TAIWANESE_DIGITAL:"taiwaneseDigital",CHINESE_COUNTING:"chineseCounting",CHINESE_LEGAL_SIMPLIFIED:"chineseLegalSimplified",CHINESE_COUNTING_TEN_THOUSAND:"chineseCountingThousand",KOREAN_DIGITAL:"koreanDigital",KOREAN_COUNTING:"koreanCounting",KOREAN_LEGAL:"koreanLegal",KOREAN_DIGITAL_2:"koreanDigital2",VIETNAMESE_COUNTING:"vietnameseCounting",RUSSIAN_LOWER:"russianLower",RUSSIAN_UPPER:"russianUpper",NONE:"none",NUMBER_IN_DASH:"numberInDash",HEBREW_1:"hebrew1",HEBREW_2:"hebrew2",ARABIC_ALPHA:"arabicAlpha",ARABIC_ABJAD:"arabicAbjad",HINDI_VOWELS:"hindiVowels",HINDI_CONSONANTS:"hindiConsonants",HINDI_NUMBERS:"hindiNumbers",HINDI_COUNTING:"hindiCounting",THAI_LETTERS:"thaiLetters",THAI_NUMBERS:"thaiNumbers",THAI_COUNTING:"thaiCounting",BAHT_TEXT:"bahtText",DOLLAR_TEXT:"dollarText"},ke={DEFAULT:"default",PRESERVE:"preserve"};class Ce extends fe{constructor(){super(...arguments),ee(this,"xmlKeys",{space:"xml:space"})}}class Ml extends X{constructor(){super("w:instrText"),this.root.push(new Ce({space:ke.PRESERVE})),this.root.push("PAGE")}}class Ul extends X{constructor(){super("w:instrText"),this.root.push(new Ce({space:ke.PRESERVE})),this.root.push("NUMPAGES")}}class Hl extends X{constructor(){super("w:instrText"),this.root.push(new Ce({space:ke.PRESERVE})),this.root.push("SECTIONPAGES")}}class Wl extends X{constructor(){super("w:instrText"),this.root.push(new Ce({space:ke.PRESERVE})),this.root.push("SECTION")}}class jl extends fe{constructor(){super(...arguments),ee(this,"xmlKeys",{fill:"w:fill",color:"w:color",type:"w:val"})}}class ar extends X{constructor({fill:e,color:r,type:i}){super("w:shd"),this.root.push(new jl({fill:e===void 0?void 0:_t(e),color:r===void 0?void 0:_t(r),type:i}))}}const fm={CLEAR:"clear",DIAGONAL_CROSS:"diagCross",DIAGONAL_STRIPE:"diagStripe",HORIZONTAL_CROSS:"horzCross",HORIZONTAL_STRIPE:"horzStripe",NIL:"nil",PERCENT_5:"pct5",PERCENT_10:"pct10",PERCENT_12:"pct12",PERCENT_15:"pct15",PERCENT_20:"pct20",PERCENT_25:"pct25",PERCENT_30:"pct30",PERCENT_35:"pct35",PERCENT_37:"pct37",PERCENT_40:"pct40",PERCENT_45:"pct45",PERCENT_50:"pct50",PERCENT_55:"pct55",PERCENT_60:"pct60",PERCENT_62:"pct62",PERCENT_65:"pct65",PERCENT_70:"pct70",PERCENT_75:"pct75",PERCENT_80:"pct80",PERCENT_85:"pct85",PERCENT_87:"pct87",PERCENT_90:"pct90",PERCENT_95:"pct95",REVERSE_DIAGONAL_STRIPE:"reverseDiagStripe",SOLID:"solid",THIN_DIAGONAL_CROSS:"thinDiagCross",THIN_DIAGONAL_STRIPE:"thinDiagStripe",THIN_HORIZONTAL_CROSS:"thinHorzCross",THIN_REVERSE_DIAGONAL_STRIPE:"thinReverseDiagStripe",THIN_VERTICAL_STRIPE:"thinVertStripe",VERTICAL_STRIPE:"vertStripe"};class Di extends fe{constructor(){super(...arguments),ee(this,"xmlKeys",{id:"w:id",author:"w:author",date:"w:date"})}}const No={DOT:"dot"};class ko extends X{constructor(e){super("w:em"),this.root.push(new _e({val:e}))}}class zl extends ko{constructor(e=No.DOT){super(e)}}class dm extends ko{constructor(){super(No.DOT)}}class Gl extends X{constructor(e){super("w:spacing"),this.root.push(new _e({val:Xe(e)}))}}class ql extends X{constructor(e){super("w:color"),this.root.push(new _e({val:_t(e)}))}}class Kl extends X{constructor(e){super("w:highlight"),this.root.push(new _e({val:e}))}}class Vl extends X{constructor(e){super("w:highlightCs"),this.root.push(new _e({val:e}))}}const $l=t=>new pe({name:"w:lang",attributes:{value:{key:"w:val",value:t.value},eastAsia:{key:"w:eastAsia",value:t.eastAsia},bidirectional:{key:"w:bidi",value:t.bidirectional}}});class pa extends fe{constructor(){super(...arguments),ee(this,"xmlKeys",{ascii:"w:ascii",cs:"w:cs",eastAsia:"w:eastAsia",hAnsi:"w:hAnsi",hint:"w:hint"})}}class Wn extends X{constructor(e,r){if(super("w:rFonts"),typeof e=="string"){const i=e;this.root.push(new pa({ascii:i,cs:i,eastAsia:i,hAnsi:i,hint:r}))}else{const i=e;this.root.push(new pa(i))}}}let Co=class extends X{constructor(e){super("w:vertAlign"),this.root.push(new _e({val:e}))}};class Xl extends Co{constructor(){super("superscript")}}class Zl extends Co{constructor(){super("subscript")}}const Oo={SINGLE:"single",WORDS:"words",DOUBLE:"double",THICK:"thick",DOTTED:"dotted",DOTTEDHEAVY:"dottedHeavy",DASH:"dash",DASHEDHEAVY:"dashedHeavy",DASHLONG:"dashLong",DASHLONGHEAVY:"dashLongHeavy",DOTDASH:"dotDash",DASHDOTHEAVY:"dashDotHeavy",DOTDOTDASH:"dotDotDash",DASHDOTDOTHEAVY:"dashDotDotHeavy",WAVE:"wave",WAVYHEAVY:"wavyHeavy",WAVYDOUBLE:"wavyDouble",NONE:"none"};class Yl extends X{constructor(e=Oo.SINGLE,r){super("w:u"),this.root.push(new _e({val:e,color:r===void 0?void 0:_t(r)}))}}const mm={BLINK_BACKGROUND:"blinkBackground",LIGHTS:"lights",ANTS_BLACK:"antsBlack",ANTS_RED:"antsRed",SHIMMER:"shimmer",SPARKLE:"sparkle",NONE:"none"},wm={BLACK:"black",BLUE:"blue",CYAN:"cyan",DARK_BLUE:"darkBlue",DARK_CYAN:"darkCyan",DARK_GRAY:"darkGray",DARK_GREEN:"darkGreen",DARK_MAGENTA:"darkMagenta",DARK_RED:"darkRed",DARK_YELLOW:"darkYellow",GREEN:"green",LIGHT_GRAY:"lightGray",MAGENTA:"magenta",NONE:"none",RED:"red",WHITE:"white",YELLOW:"yellow"};class rt extends Ye{constructor(e){var r,i;if(super("w:rPr"),!e)return;e.style&&this.push(new et("w:rStyle",e.style)),e.font&&(typeof e.font=="string"?this.push(new Wn(e.font)):"name"in e.font?this.push(new Wn(e.font.name,e.font.hint)):this.push(new Wn(e.font))),e.bold!==void 0&&this.push(new le("w:b",e.bold)),(e.boldComplexScript===void 0&&e.bold!==void 0||e.boldComplexScript)&&this.push(new le("w:bCs",(r=e.boldComplexScript)!=null?r:e.bold)),e.italics!==void 0&&this.push(new le("w:i",e.italics)),(e.italicsComplexScript===void 0&&e.italics!==void 0||e.italicsComplexScript)&&this.push(new le("w:iCs",(i=e.italicsComplexScript)!=null?i:e.italics)),e.smallCaps!==void 0?this.push(new le("w:smallCaps",e.smallCaps)):e.allCaps!==void 0&&this.push(new le("w:caps",e.allCaps)),e.strike!==void 0&&this.push(new le("w:strike",e.strike)),e.doubleStrike!==void 0&&this.push(new le("w:dstrike",e.doubleStrike)),e.emboss!==void 0&&this.push(new le("w:emboss",e.emboss)),e.imprint!==void 0&&this.push(new le("w:imprint",e.imprint)),e.noProof!==void 0&&this.push(new le("w:noProof",e.noProof)),e.snapToGrid!==void 0&&this.push(new le("w:snapToGrid",e.snapToGrid)),e.vanish&&this.push(new le("w:vanish",e.vanish)),e.color&&this.push(new ql(e.color)),e.characterSpacing&&this.push(new Gl(e.characterSpacing)),e.scale!==void 0&&this.push(new Ct("w:w",e.scale)),e.kern&&this.push(new Hn("w:kern",e.kern)),e.position&&this.push(new et("w:position",e.position)),e.size!==void 0&&this.push(new Hn("w:sz",e.size));const o=e.sizeComplexScript===void 0||e.sizeComplexScript===!0?e.size:e.sizeComplexScript;o&&this.push(new Hn("w:szCs",o)),e.highlight&&this.push(new Kl(e.highlight));const u=e.highlightComplexScript===void 0||e.highlightComplexScript===!0?e.highlight:e.highlightComplexScript;u&&this.push(new Vl(u)),e.underline&&this.push(new Yl(e.underline.type,e.underline.color)),e.effect&&this.push(new et("w:effect",e.effect)),e.border&&this.push(new ve("w:bdr",e.border)),e.shading&&this.push(new ar(e.shading)),e.subScript&&this.push(new Zl),e.superScript&&this.push(new Xl),e.rightToLeft!==void 0&&this.push(new le("w:rtl",e.rightToLeft)),e.emphasisMark&&this.push(new zl(e.emphasisMark.type)),e.language&&this.push($l(e.language)),e.specVanish&&this.push(new le("w:specVanish",e.vanish)),e.math&&this.push(new le("w:oMath",e.math)),e.revision&&this.push(new Jl(e.revision))}push(e){this.root.push(e)}}class Jl extends X{constructor(e){super("w:rPrChange"),this.root.push(new Di({id:e.id,author:e.author,date:e.date})),this.addChildElement(new rt(e))}}class di extends X{constructor(e){var r;super("w:t"),typeof e=="string"?(this.root.push(new Ce({space:ke.PRESERVE})),this.root.push(e)):(this.root.push(new Ce({space:(r=e.space)!=null?r:ke.DEFAULT})),this.root.push(e.text))}}const ut={CURRENT:"CURRENT",TOTAL_PAGES:"TOTAL_PAGES",TOTAL_PAGES_IN_SECTION:"TOTAL_PAGES_IN_SECTION",CURRENT_SECTION:"SECTION"};class Oe extends X{constructor(e){if(super("w:r"),ee(this,"properties"),this.properties=new rt(e),this.root.push(this.properties),e.break)for(let r=0;r<e.break;r++)this.root.push(new Io);if(e.children)for(const r of e.children){if(typeof r=="string"){switch(r){case ut.CURRENT:this.root.push(new je),this.root.push(new Ml),this.root.push(new Ze),this.root.push(new ze);break;case ut.TOTAL_PAGES:this.root.push(new je),this.root.push(new Ul),this.root.push(new Ze),this.root.push(new ze);break;case ut.TOTAL_PAGES_IN_SECTION:this.root.push(new je),this.root.push(new Hl),this.root.push(new Ze),this.root.push(new ze);break;case ut.CURRENT_SECTION:this.root.push(new je),this.root.push(new Wl),this.root.push(new Ze),this.root.push(new ze);break;default:this.root.push(new di(r));break}continue}this.root.push(r)}else e.text!==void 0&&this.root.push(new di(e.text))}}class Qt extends Oe{constructor(e){super(typeof e=="string"?{text:e}:e)}}class Ql extends fe{constructor(){super(...arguments),ee(this,"xmlKeys",{char:"w:char",symbolfont:"w:font"})}}let ma=class extends X{constructor(e="",r="Wingdings"){super("w:sym"),this.root.push(new Ql({char:e,symbolfont:r}))}};class ec extends Oe{constructor(e){if(typeof e=="string")return super({}),this.root.push(new ma(e)),this;super(e),this.root.push(new ma(e.char,e.symbolfont))}}var jn={},ye={},zn,wa;function Lt(){if(wa)return zn;wa=1,zn=t;function t(e,r){if(!e)throw new Error(r||"Assertion failed")}return t.equal=function(r,i,o){if(r!=i)throw new Error(o||"Assertion failed: "+r+" != "+i)},zn}var ga;function Ge(){if(ga)return ye;ga=1;var t=Lt(),e=tt();ye.inherits=e;function r(C,U){return(C.charCodeAt(U)&64512)!==55296||U<0||U+1>=C.length?!1:(C.charCodeAt(U+1)&64512)===56320}function i(C,U){if(Array.isArray(C))return C.slice();if(!C)return[];var g=[];if(typeof C=="string")if(U){if(U==="hex")for(C=C.replace(/[^a-z0-9]+/ig,""),C.length%2!==0&&(C="0"+C),te=0;te<C.length;te+=2)g.push(parseInt(C[te]+C[te+1],16))}else for(var q=0,te=0;te<C.length;te++){var z=C.charCodeAt(te);z<128?g[q++]=z:z<2048?(g[q++]=z>>6|192,g[q++]=z&63|128):r(C,te)?(z=65536+((z&1023)<<10)+(C.charCodeAt(++te)&1023),g[q++]=z>>18|240,g[q++]=z>>12&63|128,g[q++]=z>>6&63|128,g[q++]=z&63|128):(g[q++]=z>>12|224,g[q++]=z>>6&63|128,g[q++]=z&63|128)}else for(te=0;te<C.length;te++)g[te]=C[te]|0;return g}ye.toArray=i;function o(C){for(var U="",g=0;g<C.length;g++)U+=n(C[g].toString(16));return U}ye.toHex=o;function u(C){var U=C>>>24|C>>>8&65280|C<<8&16711680|(C&255)<<24;return U>>>0}ye.htonl=u;function f(C,U){for(var g="",q=0;q<C.length;q++){var te=C[q];U==="little"&&(te=u(te)),g+=h(te.toString(16))}return g}ye.toHex32=f;function n(C){return C.length===1?"0"+C:C}ye.zero2=n;function h(C){return C.length===7?"0"+C:C.length===6?"00"+C:C.length===5?"000"+C:C.length===4?"0000"+C:C.length===3?"00000"+C:C.length===2?"000000"+C:C.length===1?"0000000"+C:C}ye.zero8=h;function _(C,U,g,q){var te=g-U;t(te%4===0);for(var z=new Array(te/4),se=0,re=U;se<z.length;se++,re+=4){var ce;q==="big"?ce=C[re]<<24|C[re+1]<<16|C[re+2]<<8|C[re+3]:ce=C[re+3]<<24|C[re+2]<<16|C[re+1]<<8|C[re],z[se]=ce>>>0}return z}ye.join32=_;function E(C,U){for(var g=new Array(C.length*4),q=0,te=0;q<C.length;q++,te+=4){var z=C[q];U==="big"?(g[te]=z>>>24,g[te+1]=z>>>16&255,g[te+2]=z>>>8&255,g[te+3]=z&255):(g[te+3]=z>>>24,g[te+2]=z>>>16&255,g[te+1]=z>>>8&255,g[te]=z&255)}return g}ye.split32=E;function R(C,U){return C>>>U|C<<32-U}ye.rotr32=R;function I(C,U){return C<<U|C>>>32-U}ye.rotl32=I;function w(C,U){return C+U>>>0}ye.sum32=w;function A(C,U,g){return C+U+g>>>0}ye.sum32_3=A;function v(C,U,g,q){return C+U+g+q>>>0}ye.sum32_4=v;function N(C,U,g,q,te){return C+U+g+q+te>>>0}ye.sum32_5=N;function l(C,U,g,q){var te=C[U],z=C[U+1],se=q+z>>>0,re=(se<q?1:0)+g+te;C[U]=re>>>0,C[U+1]=se}ye.sum64=l;function b(C,U,g,q){var te=U+q>>>0,z=(te<U?1:0)+C+g;return z>>>0}ye.sum64_hi=b;function d(C,U,g,q){var te=U+q;return te>>>0}ye.sum64_lo=d;function c(C,U,g,q,te,z,se,re){var ce=0,V=U;V=V+q>>>0,ce+=V<U?1:0,V=V+z>>>0,ce+=V<z?1:0,V=V+re>>>0,ce+=V<re?1:0;var D=C+g+te+se+ce;return D>>>0}ye.sum64_4_hi=c;function S(C,U,g,q,te,z,se,re){var ce=U+q+z+re;return ce>>>0}ye.sum64_4_lo=S;function L(C,U,g,q,te,z,se,re,ce,V){var D=0,$=U;$=$+q>>>0,D+=$<U?1:0,$=$+z>>>0,D+=$<z?1:0,$=$+re>>>0,D+=$<re?1:0,$=$+V>>>0,D+=$<V?1:0;var Y=C+g+te+se+ce+D;return Y>>>0}ye.sum64_5_hi=L;function F(C,U,g,q,te,z,se,re,ce,V){var D=U+q+z+re+V;return D>>>0}ye.sum64_5_lo=F;function W(C,U,g){var q=U<<32-g|C>>>g;return q>>>0}ye.rotr64_hi=W;function k(C,U,g){var q=C<<32-g|U>>>g;return q>>>0}ye.rotr64_lo=k;function Z(C,U,g){return C>>>g}ye.shr64_hi=Z;function ue(C,U,g){var q=C<<32-g|U>>>g;return q>>>0}return ye.shr64_lo=ue,ye}var Gn={},ya;function Ft(){if(ya)return Gn;ya=1;var t=Ge(),e=Lt();function r(){this.pending=null,this.pendingTotal=0,this.blockSize=this.constructor.blockSize,this.outSize=this.constructor.outSize,this.hmacStrength=this.constructor.hmacStrength,this.padLength=this.constructor.padLength/8,this.endian="big",this._delta8=this.blockSize/8,this._delta32=this.blockSize/32}return Gn.BlockHash=r,r.prototype.update=function(o,u){if(o=t.toArray(o,u),this.pending?this.pending=this.pending.concat(o):this.pending=o,this.pendingTotal+=o.length,this.pending.length>=this._delta8){o=this.pending;var f=o.length%this._delta8;this.pending=o.slice(o.length-f,o.length),this.pending.length===0&&(this.pending=null),o=t.join32(o,0,o.length-f,this.endian);for(var n=0;n<o.length;n+=this._delta32)this._update(o,n,n+this._delta32)}return this},r.prototype.digest=function(o){return this.update(this._pad()),e(this.pending===null),this._digest(o)},r.prototype._pad=function(){var o=this.pendingTotal,u=this._delta8,f=u-(o+this.padLength)%u,n=new Array(f+this.padLength);n[0]=128;for(var h=1;h<f;h++)n[h]=0;if(o<<=3,this.endian==="big"){for(var _=8;_<this.padLength;_++)n[h++]=0;n[h++]=0,n[h++]=0,n[h++]=0,n[h++]=0,n[h++]=o>>>24&255,n[h++]=o>>>16&255,n[h++]=o>>>8&255,n[h++]=o&255}else for(n[h++]=o&255,n[h++]=o>>>8&255,n[h++]=o>>>16&255,n[h++]=o>>>24&255,n[h++]=0,n[h++]=0,n[h++]=0,n[h++]=0,_=8;_<this.padLength;_++)n[h++]=0;return n},Gn}var st={},Be={},va;function Do(){if(va)return Be;va=1;var t=Ge(),e=t.rotr32;function r(E,R,I,w){if(E===0)return i(R,I,w);if(E===1||E===3)return u(R,I,w);if(E===2)return o(R,I,w)}Be.ft_1=r;function i(E,R,I){return E&R^~E&I}Be.ch32=i;function o(E,R,I){return E&R^E&I^R&I}Be.maj32=o;function u(E,R,I){return E^R^I}Be.p32=u;function f(E){return e(E,2)^e(E,13)^e(E,22)}Be.s0_256=f;function n(E){return e(E,6)^e(E,11)^e(E,25)}Be.s1_256=n;function h(E){return e(E,7)^e(E,18)^E>>>3}Be.g0_256=h;function _(E){return e(E,17)^e(E,19)^E>>>10}return Be.g1_256=_,Be}var qn,ba;function tc(){if(ba)return qn;ba=1;var t=Ge(),e=Ft(),r=Do(),i=t.rotl32,o=t.sum32,u=t.sum32_5,f=r.ft_1,n=e.BlockHash,h=[1518500249,1859775393,2400959708,3395469782];function _(){if(!(this instanceof _))return new _;n.call(this),this.h=[1732584193,4023233417,2562383102,271733878,3285377520],this.W=new Array(80)}return t.inherits(_,n),qn=_,_.blockSize=512,_.outSize=160,_.hmacStrength=80,_.padLength=64,_.prototype._update=function(R,I){for(var w=this.W,A=0;A<16;A++)w[A]=R[I+A];for(;A<w.length;A++)w[A]=i(w[A-3]^w[A-8]^w[A-14]^w[A-16],1);var v=this.h[0],N=this.h[1],l=this.h[2],b=this.h[3],d=this.h[4];for(A=0;A<w.length;A++){var c=~~(A/20),S=u(i(v,5),f(c,N,l,b),d,w[A],h[c]);d=b,b=l,l=i(N,30),N=v,v=S}this.h[0]=o(this.h[0],v),this.h[1]=o(this.h[1],N),this.h[2]=o(this.h[2],l),this.h[3]=o(this.h[3],b),this.h[4]=o(this.h[4],d)},_.prototype._digest=function(R){return R==="hex"?t.toHex32(this.h,"big"):t.split32(this.h,"big")},qn}var Kn,_a;function Po(){if(_a)return Kn;_a=1;var t=Ge(),e=Ft(),r=Do(),i=Lt(),o=t.sum32,u=t.sum32_4,f=t.sum32_5,n=r.ch32,h=r.maj32,_=r.s0_256,E=r.s1_256,R=r.g0_256,I=r.g1_256,w=e.BlockHash,A=[1116352408,1899447441,3049323471,3921009573,961987163,1508970993,2453635748,2870763221,3624381080,310598401,607225278,1426881987,1925078388,2162078206,2614888103,3248222580,3835390401,4022224774,264347078,604807628,770255983,1249150122,1555081692,1996064986,2554220882,2821834349,2952996808,3210313671,3336571891,3584528711,113926993,338241895,666307205,773529912,1294757372,1396182291,1695183700,1986661051,2177026350,2456956037,2730485921,2820302411,3259730800,3345764771,3516065817,3600352804,4094571909,275423344,430227734,506948616,659060556,883997877,958139571,1322822218,1537002063,1747873779,1955562222,2024104815,2227730452,2361852424,2428436474,2756734187,3204031479,3329325298];function v(){if(!(this instanceof v))return new v;w.call(this),this.h=[1779033703,3144134277,1013904242,2773480762,1359893119,2600822924,528734635,1541459225],this.k=A,this.W=new Array(64)}return t.inherits(v,w),Kn=v,v.blockSize=512,v.outSize=256,v.hmacStrength=192,v.padLength=64,v.prototype._update=function(l,b){for(var d=this.W,c=0;c<16;c++)d[c]=l[b+c];for(;c<d.length;c++)d[c]=u(I(d[c-2]),d[c-7],R(d[c-15]),d[c-16]);var S=this.h[0],L=this.h[1],F=this.h[2],W=this.h[3],k=this.h[4],Z=this.h[5],ue=this.h[6],C=this.h[7];for(i(this.k.length===d.length),c=0;c<d.length;c++){var U=f(C,E(k),n(k,Z,ue),this.k[c],d[c]),g=o(_(S),h(S,L,F));C=ue,ue=Z,Z=k,k=o(W,U),W=F,F=L,L=S,S=o(U,g)}this.h[0]=o(this.h[0],S),this.h[1]=o(this.h[1],L),this.h[2]=o(this.h[2],F),this.h[3]=o(this.h[3],W),this.h[4]=o(this.h[4],k),this.h[5]=o(this.h[5],Z),this.h[6]=o(this.h[6],ue),this.h[7]=o(this.h[7],C)},v.prototype._digest=function(l){return l==="hex"?t.toHex32(this.h,"big"):t.split32(this.h,"big")},Kn}var Vn,Ea;function rc(){if(Ea)return Vn;Ea=1;var t=Ge(),e=Po();function r(){if(!(this instanceof r))return new r;e.call(this),this.h=[3238371032,914150663,812702999,4144912697,4290775857,1750603025,1694076839,3204075428]}return t.inherits(r,e),Vn=r,r.blockSize=512,r.outSize=224,r.hmacStrength=192,r.padLength=64,r.prototype._digest=function(o){return o==="hex"?t.toHex32(this.h.slice(0,7),"big"):t.split32(this.h.slice(0,7),"big")},Vn}var $n,xa;function Lo(){if(xa)return $n;xa=1;var t=Ge(),e=Ft(),r=Lt(),i=t.rotr64_hi,o=t.rotr64_lo,u=t.shr64_hi,f=t.shr64_lo,n=t.sum64,h=t.sum64_hi,_=t.sum64_lo,E=t.sum64_4_hi,R=t.sum64_4_lo,I=t.sum64_5_hi,w=t.sum64_5_lo,A=e.BlockHash,v=[1116352408,3609767458,1899447441,602891725,3049323471,3964484399,3921009573,2173295548,961987163,4081628472,1508970993,3053834265,2453635748,2937671579,2870763221,3664609560,3624381080,2734883394,310598401,1164996542,607225278,1323610764,1426881987,3590304994,1925078388,4068182383,2162078206,991336113,2614888103,633803317,3248222580,3479774868,3835390401,2666613458,4022224774,944711139,264347078,2341262773,604807628,2007800933,770255983,1495990901,1249150122,1856431235,1555081692,3175218132,1996064986,2198950837,2554220882,3999719339,2821834349,766784016,2952996808,2566594879,3210313671,3203337956,3336571891,1034457026,3584528711,2466948901,113926993,3758326383,338241895,168717936,666307205,1188179964,773529912,1546045734,1294757372,1522805485,1396182291,2643833823,1695183700,2343527390,1986661051,1014477480,2177026350,1206759142,2456956037,344077627,2730485921,1290863460,2820302411,3158454273,3259730800,3505952657,3345764771,106217008,3516065817,3606008344,3600352804,1432725776,4094571909,1467031594,275423344,851169720,430227734,3100823752,506948616,1363258195,659060556,3750685593,883997877,3785050280,958139571,3318307427,1322822218,3812723403,1537002063,2003034995,1747873779,3602036899,1955562222,1575990012,2024104815,1125592928,2227730452,2716904306,2361852424,442776044,2428436474,593698344,2756734187,3733110249,3204031479,2999351573,3329325298,3815920427,3391569614,3928383900,3515267271,566280711,3940187606,3454069534,4118630271,4000239992,116418474,1914138554,174292421,2731055270,289380356,3203993006,460393269,320620315,685471733,587496836,852142971,1086792851,1017036298,365543100,1126000580,2618297676,1288033470,3409855158,1501505948,4234509866,1607167915,987167468,1816402316,1246189591];function N(){if(!(this instanceof N))return new N;A.call(this),this.h=[1779033703,4089235720,3144134277,2227873595,1013904242,4271175723,2773480762,1595750129,1359893119,2917565137,2600822924,725511199,528734635,4215389547,1541459225,327033209],this.k=v,this.W=new Array(160)}t.inherits(N,A),$n=N,N.blockSize=1024,N.outSize=512,N.hmacStrength=192,N.padLength=128,N.prototype._prepareBlock=function(g,q){for(var te=this.W,z=0;z<32;z++)te[z]=g[q+z];for(;z<te.length;z+=2){var se=ue(te[z-4],te[z-3]),re=C(te[z-4],te[z-3]),ce=te[z-14],V=te[z-13],D=k(te[z-30],te[z-29]),$=Z(te[z-30],te[z-29]),Y=te[z-32],ne=te[z-31];te[z]=E(se,re,ce,V,D,$,Y,ne),te[z+1]=R(se,re,ce,V,D,$,Y,ne)}},N.prototype._update=function(g,q){this._prepareBlock(g,q);var te=this.W,z=this.h[0],se=this.h[1],re=this.h[2],ce=this.h[3],V=this.h[4],D=this.h[5],$=this.h[6],Y=this.h[7],ne=this.h[8],K=this.h[9],x=this.h[10],y=this.h[11],j=this.h[12],M=this.h[13],O=this.h[14],P=this.h[15];r(this.k.length===te.length);for(var Q=0;Q<te.length;Q+=2){var p=O,J=P,T=F(ne,K),s=W(ne,K),a=l(ne,K,x,y,j),m=b(ne,K,x,y,j,M),B=this.k[Q],G=this.k[Q+1],H=te[Q],ie=te[Q+1],oe=I(p,J,T,s,a,m,B,G,H,ie),ae=w(p,J,T,s,a,m,B,G,H,ie);p=S(z,se),J=L(z,se),T=d(z,se,re,ce,V),s=c(z,se,re,ce,V,D);var he=h(p,J,T,s),de=_(p,J,T,s);O=j,P=M,j=x,M=y,x=ne,y=K,ne=h($,Y,oe,ae),K=_(Y,Y,oe,ae),$=V,Y=D,V=re,D=ce,re=z,ce=se,z=h(oe,ae,he,de),se=_(oe,ae,he,de)}n(this.h,0,z,se),n(this.h,2,re,ce),n(this.h,4,V,D),n(this.h,6,$,Y),n(this.h,8,ne,K),n(this.h,10,x,y),n(this.h,12,j,M),n(this.h,14,O,P)},N.prototype._digest=function(g){return g==="hex"?t.toHex32(this.h,"big"):t.split32(this.h,"big")};function l(U,g,q,te,z){var se=U&q^~U&z;return se<0&&(se+=4294967296),se}function b(U,g,q,te,z,se){var re=g&te^~g&se;return re<0&&(re+=4294967296),re}function d(U,g,q,te,z){var se=U&q^U&z^q&z;return se<0&&(se+=4294967296),se}function c(U,g,q,te,z,se){var re=g&te^g&se^te&se;return re<0&&(re+=4294967296),re}function S(U,g){var q=i(U,g,28),te=i(g,U,2),z=i(g,U,7),se=q^te^z;return se<0&&(se+=4294967296),se}function L(U,g){var q=o(U,g,28),te=o(g,U,2),z=o(g,U,7),se=q^te^z;return se<0&&(se+=4294967296),se}function F(U,g){var q=i(U,g,14),te=i(U,g,18),z=i(g,U,9),se=q^te^z;return se<0&&(se+=4294967296),se}function W(U,g){var q=o(U,g,14),te=o(U,g,18),z=o(g,U,9),se=q^te^z;return se<0&&(se+=4294967296),se}function k(U,g){var q=i(U,g,1),te=i(U,g,8),z=u(U,g,7),se=q^te^z;return se<0&&(se+=4294967296),se}function Z(U,g){var q=o(U,g,1),te=o(U,g,8),z=f(U,g,7),se=q^te^z;return se<0&&(se+=4294967296),se}function ue(U,g){var q=i(U,g,19),te=i(g,U,29),z=u(U,g,6),se=q^te^z;return se<0&&(se+=4294967296),se}function C(U,g){var q=o(U,g,19),te=o(g,U,29),z=f(U,g,6),se=q^te^z;return se<0&&(se+=4294967296),se}return $n}var Xn,Ta;function nc(){if(Ta)return Xn;Ta=1;var t=Ge(),e=Lo();function r(){if(!(this instanceof r))return new r;e.call(this),this.h=[3418070365,3238371032,1654270250,914150663,2438529370,812702999,355462360,4144912697,1731405415,4290775857,2394180231,1750603025,3675008525,1694076839,1203062813,3204075428]}return t.inherits(r,e),Xn=r,r.blockSize=1024,r.outSize=384,r.hmacStrength=192,r.padLength=128,r.prototype._digest=function(o){return o==="hex"?t.toHex32(this.h.slice(0,12),"big"):t.split32(this.h.slice(0,12),"big")},Xn}var Aa;function ic(){return Aa||(Aa=1,st.sha1=tc(),st.sha224=rc(),st.sha256=Po(),st.sha384=nc(),st.sha512=Lo()),st}var Zn={},Sa;function sc(){if(Sa)return Zn;Sa=1;var t=Ge(),e=Ft(),r=t.rotl32,i=t.sum32,o=t.sum32_3,u=t.sum32_4,f=e.BlockHash;function n(){if(!(this instanceof n))return new n;f.call(this),this.h=[1732584193,4023233417,2562383102,271733878,3285377520],this.endian="little"}t.inherits(n,f),Zn.ripemd160=n,n.blockSize=512,n.outSize=160,n.hmacStrength=192,n.padLength=64,n.prototype._update=function(N,l){for(var b=this.h[0],d=this.h[1],c=this.h[2],S=this.h[3],L=this.h[4],F=b,W=d,k=c,Z=S,ue=L,C=0;C<80;C++){var U=i(r(u(b,h(C,d,c,S),N[R[C]+l],_(C)),w[C]),L);b=L,L=S,S=r(c,10),c=d,d=U,U=i(r(u(F,h(79-C,W,k,Z),N[I[C]+l],E(C)),A[C]),ue),F=ue,ue=Z,Z=r(k,10),k=W,W=U}U=o(this.h[1],c,Z),this.h[1]=o(this.h[2],S,ue),this.h[2]=o(this.h[3],L,F),this.h[3]=o(this.h[4],b,W),this.h[4]=o(this.h[0],d,k),this.h[0]=U},n.prototype._digest=function(N){return N==="hex"?t.toHex32(this.h,"little"):t.split32(this.h,"little")};function h(v,N,l,b){return v<=15?N^l^b:v<=31?N&l|~N&b:v<=47?(N|~l)^b:v<=63?N&b|l&~b:N^(l|~b)}function _(v){return v<=15?0:v<=31?1518500249:v<=47?1859775393:v<=63?2400959708:2840853838}function E(v){return v<=15?1352829926:v<=31?1548603684:v<=47?1836072691:v<=63?2053994217:0}var R=[0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,7,4,13,1,10,6,15,3,12,0,9,5,2,14,11,8,3,10,14,4,9,15,8,1,2,7,0,6,13,11,5,12,1,9,11,10,0,8,12,4,13,3,7,15,14,5,6,2,4,0,5,9,7,12,2,10,14,1,3,8,11,6,15,13],I=[5,14,7,0,9,2,11,4,13,6,15,8,1,10,3,12,6,11,3,7,0,13,5,10,14,15,8,12,4,9,1,2,15,5,1,3,7,14,6,9,11,8,12,2,10,0,4,13,8,6,4,1,3,11,15,0,5,12,2,13,9,7,10,14,12,15,10,4,1,5,8,7,6,2,13,14,0,3,9,11],w=[11,14,15,12,5,8,7,9,11,13,14,15,6,7,9,8,7,6,8,13,11,9,7,15,7,12,15,9,11,7,13,12,11,13,6,7,14,9,13,15,14,8,13,6,5,12,7,5,11,12,14,15,14,15,9,8,9,14,5,6,8,6,5,12,9,15,5,11,6,8,13,12,5,12,13,14,11,8,5,6],A=[8,9,9,11,13,15,15,5,7,7,8,11,14,14,12,6,9,13,15,7,12,8,9,11,7,7,12,7,6,15,13,11,9,7,15,11,8,6,6,14,12,13,5,14,13,13,7,5,15,5,8,11,14,14,6,14,6,9,12,9,12,5,15,8,8,5,12,9,12,5,14,6,8,13,6,5,15,13,11,11];return Zn}var Yn,Ra;function ac(){if(Ra)return Yn;Ra=1;var t=Ge(),e=Lt();function r(i,o,u){if(!(this instanceof r))return new r(i,o,u);this.Hash=i,this.blockSize=i.blockSize/8,this.outSize=i.outSize/8,this.inner=null,this.outer=null,this._init(t.toArray(o,u))}return Yn=r,r.prototype._init=function(o){o.length>this.blockSize&&(o=new this.Hash().update(o).digest()),e(o.length<=this.blockSize);for(var u=o.length;u<this.blockSize;u++)o.push(0);for(u=0;u<o.length;u++)o[u]^=54;for(this.inner=new this.Hash().update(o),u=0;u<o.length;u++)o[u]^=106;this.outer=new this.Hash().update(o)},r.prototype.update=function(o,u){return this.inner.update(o,u),this},r.prototype.digest=function(o){return this.outer.update(this.inner.digest()),this.outer.digest(o)},Yn}var Ia;function oc(){return Ia||(Ia=1,function(t){var e=t;e.utils=Ge(),e.common=Ft(),e.sha=ic(),e.ripemd=sc(),e.hmac=ac(),e.sha1=e.sha.sha1,e.sha256=e.sha.sha256,e.sha224=e.sha.sha224,e.sha384=e.sha.sha384,e.sha512=e.sha.sha512,e.ripemd160=e.ripemd.ripemd160}(jn)),jn}var uc=oc();const lc=bi(uc);let cc="useandom-26T198340PX75pxJACKVERYMINDBUSHWOLF_GQZbfghjklqvwyzrict",hc=(t,e=21)=>(r=e)=>{let i="",o=r|0;for(;o--;)i+=t[Math.random()*t.length|0];return i},fc=(t=21)=>{let e="",r=t|0;for(;r--;)e+=cc[Math.random()*64|0];return e};const ym=t=>Math.floor(t/25.4*72*20),Pe=t=>Math.floor(t*72*20),or=(t=0)=>{let e=t;return()=>++e},dc=()=>or(),pc=()=>or(1),mc=()=>or(),wc=()=>or(),ur=()=>fc().toLowerCase(),Na=t=>lc.sha1().update(t instanceof ArrayBuffer?new Uint8Array(t):t).digest("hex"),Rt=t=>hc("1234567890abcdef",t)(),gc=()=>`${Rt(8)}-${Rt(4)}-${Rt(4)}-${Rt(4)}-${Rt(12)}`,yc={CHARACTER:"character",COLUMN:"column",INSIDE_MARGIN:"insideMargin",LEFT_MARGIN:"leftMargin",MARGIN:"margin",OUTSIDE_MARGIN:"outsideMargin",PAGE:"page",RIGHT_MARGIN:"rightMargin"},vc={BOTTOM_MARGIN:"bottomMargin",INSIDE_MARGIN:"insideMargin",LINE:"line",MARGIN:"margin",OUTSIDE_MARGIN:"outsideMargin",PAGE:"page",PARAGRAPH:"paragraph",TOP_MARGIN:"topMargin"},bc=()=>new pe({name:"wp:simplePos",attributes:{x:{key:"x",value:0},y:{key:"y",value:0}}}),Fo=t=>new pe({name:"wp:align",children:[t]}),Bo=t=>new pe({name:"wp:posOffset",children:[t.toString()]}),_c=({relative:t,align:e,offset:r})=>new pe({name:"wp:positionH",attributes:{relativeFrom:{key:"relativeFrom",value:t??yc.PAGE}},children:[(()=>{if(e)return Fo(e);if(r!==void 0)return Bo(r);throw new Error("There is no configuration provided for floating position (Align or offset)")})()]}),Ec=({relative:t,align:e,offset:r})=>new pe({name:"wp:positionV",attributes:{relativeFrom:{key:"relativeFrom",value:t??vc.PAGE}},children:[(()=>{if(e)return Fo(e);if(r!==void 0)return Bo(r);throw new Error("There is no configuration provided for floating position (Align or offset)")})()]});class xc extends fe{constructor(){super(...arguments),ee(this,"xmlKeys",{uri:"uri"})}}const Tc=t=>new pe({name:"asvg:svgBlip",attributes:{asvg:{key:"xmlns:asvg",value:"http://schemas.microsoft.com/office/drawing/2016/SVG/main"},embed:{key:"r:embed",value:`rId{${t.fileName}}`}}}),Ac=t=>new pe({name:"a:ext",attributes:{uri:{key:"uri",value:"{96DAC541-7B7A-43D3-8B79-37D633B846F1}"}},children:[Tc(t)]}),Sc=t=>new pe({name:"a:extLst",children:[Ac(t)]}),Rc=t=>new pe({name:"a:blip",attributes:{embed:{key:"r:embed",value:`rId{${t.type==="svg"?t.fallback.fileName:t.fileName}}`},cstate:{key:"cstate",value:"none"}},children:t.type==="svg"?[Sc(t)]:[]});class Ic extends X{constructor(){super("a:srcRect")}}class Nc extends X{constructor(){super("a:fillRect")}}class kc extends X{constructor(){super("a:stretch"),this.root.push(new Nc)}}class Cc extends X{constructor(e){super("pic:blipFill"),this.root.push(Rc(e)),this.root.push(new Ic),this.root.push(new kc)}}class Oc extends fe{constructor(){super(...arguments),ee(this,"xmlKeys",{noChangeAspect:"noChangeAspect",noChangeArrowheads:"noChangeArrowheads"})}}class Dc extends X{constructor(){super("a:picLocks"),this.root.push(new Oc({noChangeAspect:1,noChangeArrowheads:1}))}}class Pc extends X{constructor(){super("pic:cNvPicPr"),this.root.push(new Dc)}}const Mo=(t,e)=>new pe({name:"a:hlinkClick",attributes:Re(me({},e?{xmlns:{key:"xmlns:a",value:"http://schemas.openxmlformats.org/drawingml/2006/main"}}:{}),{id:{key:"r:id",value:`rId${t}`}})});class Lc extends fe{constructor(){super(...arguments),ee(this,"xmlKeys",{id:"id",name:"name",descr:"descr"})}}class Fc extends X{constructor(){super("pic:cNvPr"),this.root.push(new Lc({id:0,name:"",descr:""}))}prepForXml(e){for(let r=e.stack.length-1;r>=0;r--){const i=e.stack[r];if(i instanceof Bt){this.root.push(Mo(i.linkId,!1));break}}return super.prepForXml(e)}}class Bc extends X{constructor(){super("pic:nvPicPr"),this.root.push(new Fc),this.root.push(new Pc)}}class Mc extends fe{constructor(){super(...arguments),ee(this,"xmlKeys",{xmlns:"xmlns:pic"})}}class Uc extends fe{constructor(){super(...arguments),ee(this,"xmlKeys",{cx:"cx",cy:"cy"})}}class Hc extends X{constructor(e,r){super("a:ext"),ee(this,"attributes"),this.attributes=new Uc({cx:e,cy:r}),this.root.push(this.attributes)}}class Wc extends fe{constructor(){super(...arguments),ee(this,"xmlKeys",{x:"x",y:"y"})}}class jc extends X{constructor(){super("a:off"),this.root.push(new Wc({x:0,y:0}))}}class zc extends fe{constructor(){super(...arguments),ee(this,"xmlKeys",{flipVertical:"flipV",flipHorizontal:"flipH",rotation:"rot"})}}class Gc extends X{constructor(e){var r,i;super("a:xfrm"),ee(this,"extents"),this.root.push(new zc({flipVertical:(r=e.flip)==null?void 0:r.vertical,flipHorizontal:(i=e.flip)==null?void 0:i.horizontal,rotation:e.rotation})),this.extents=new Hc(e.emus.x,e.emus.y),this.root.push(new jc),this.root.push(this.extents)}}const Uo=()=>new pe({name:"a:noFill"}),qc=t=>new pe({name:"a:srgbClr",attributes:{value:{key:"val",value:t.value}}}),Kc=t=>new pe({name:"a:schemeClr",attributes:{value:{key:"val",value:t.value}}}),ka=t=>new pe({name:"a:solidFill",children:[t.type==="rgb"?qc(t):Kc(t)]}),Vc=t=>new pe({name:"a:ln",attributes:{width:{key:"w",value:t.width},cap:{key:"cap",value:t.cap},compoundLine:{key:"cmpd",value:t.compoundLine},align:{key:"algn",value:t.align}},children:[t.type==="noFill"?Uo():t.solidFillType==="rgb"?ka({type:"rgb",value:t.value}):ka({type:"scheme",value:t.value})]});class $c extends X{constructor(){super("a:avLst")}}class Xc extends fe{constructor(){super(...arguments),ee(this,"xmlKeys",{prst:"prst"})}}class Zc extends X{constructor(){super("a:prstGeom"),this.root.push(new Xc({prst:"rect"})),this.root.push(new $c)}}class Yc extends fe{constructor(){super(...arguments),ee(this,"xmlKeys",{bwMode:"bwMode"})}}class Jc extends X{constructor({outline:e,transform:r}){super("pic:spPr"),ee(this,"form"),this.root.push(new Yc({bwMode:"auto"})),this.form=new Gc(r),this.root.push(this.form),this.root.push(new Zc),e&&(this.root.push(Uo()),this.root.push(Vc(e)))}}class Qc extends X{constructor({mediaData:e,transform:r,outline:i}){super("pic:pic"),this.root.push(new Mc({xmlns:"http://schemas.openxmlformats.org/drawingml/2006/picture"})),this.root.push(new Bc),this.root.push(new Cc(e)),this.root.push(new Jc({transform:r,outline:i}))}}class eh extends X{constructor({mediaData:e,transform:r,outline:i}){super("a:graphicData"),ee(this,"pic"),this.root.push(new xc({uri:"http://schemas.openxmlformats.org/drawingml/2006/picture"})),this.pic=new Qc({mediaData:e,transform:r,outline:i}),this.root.push(this.pic)}}class th extends fe{constructor(){super(...arguments),ee(this,"xmlKeys",{a:"xmlns:a"})}}class Ho extends X{constructor({mediaData:e,transform:r,outline:i}){super("a:graphic"),ee(this,"data"),this.root.push(new th({a:"http://schemas.openxmlformats.org/drawingml/2006/main"})),this.data=new eh({mediaData:e,transform:r,outline:i}),this.root.push(this.data)}}const Kt={NONE:0,SQUARE:1,TIGHT:2,TOP_AND_BOTTOM:3},rh={BOTH_SIDES:"bothSides",LEFT:"left",RIGHT:"right",LARGEST:"largest"};class Ca extends X{constructor(){super("wp:wrapNone")}}class nh extends fe{constructor(){super(...arguments),ee(this,"xmlKeys",{distT:"distT",distB:"distB",distL:"distL",distR:"distR",wrapText:"wrapText"})}}class ih extends X{constructor(e,r={top:0,bottom:0,left:0,right:0}){super("wp:wrapSquare"),this.root.push(new nh({wrapText:e.side||rh.BOTH_SIDES,distT:r.top,distB:r.bottom,distL:r.left,distR:r.right}))}}class sh extends fe{constructor(){super(...arguments),ee(this,"xmlKeys",{distT:"distT",distB:"distB"})}}class ah extends X{constructor(e={top:0,bottom:0}){super("wp:wrapTight"),this.root.push(new sh({distT:e.top,distB:e.bottom}))}}class oh extends fe{constructor(){super(...arguments),ee(this,"xmlKeys",{distT:"distT",distB:"distB"})}}class uh extends X{constructor(e={top:0,bottom:0}){super("wp:wrapTopAndBottom"),this.root.push(new oh({distT:e.top,distB:e.bottom}))}}class Wo extends X{constructor({name:e,description:r,title:i}={name:"",description:"",title:""}){super("wp:docPr"),ee(this,"docPropertiesUniqueNumericId",mc());const o={id:{key:"id",value:this.docPropertiesUniqueNumericId()},name:{key:"name",value:e}};r!=null&&(o.description={key:"descr",value:r}),i!=null&&(o.title={key:"title",value:i}),this.root.push(new Le(o))}prepForXml(e){for(let r=e.stack.length-1;r>=0;r--){const i=e.stack[r];if(i instanceof Bt){this.root.push(Mo(i.linkId,!0));break}}return super.prepForXml(e)}}const jo=({top:t,right:e,bottom:r,left:i})=>new pe({name:"wp:effectExtent",attributes:{top:{key:"t",value:t},right:{key:"r",value:e},bottom:{key:"b",value:r},left:{key:"l",value:i}}}),zo=({x:t,y:e})=>new pe({name:"wp:extent",attributes:{x:{key:"cx",value:t},y:{key:"cy",value:e}}});class lh extends fe{constructor(){super(...arguments),ee(this,"xmlKeys",{xmlns:"xmlns:a",noChangeAspect:"noChangeAspect"})}}class ch extends X{constructor(){super("a:graphicFrameLocks"),this.root.push(new lh({xmlns:"http://schemas.openxmlformats.org/drawingml/2006/main",noChangeAspect:1}))}}const Go=()=>new pe({name:"wp:cNvGraphicFramePr",children:[new ch]});class hh extends fe{constructor(){super(...arguments),ee(this,"xmlKeys",{distT:"distT",distB:"distB",distL:"distL",distR:"distR",allowOverlap:"allowOverlap",behindDoc:"behindDoc",layoutInCell:"layoutInCell",locked:"locked",relativeHeight:"relativeHeight",simplePos:"simplePos"})}}class fh extends X{constructor({mediaData:e,transform:r,drawingOptions:i}){super("wp:anchor");const o=me({allowOverlap:!0,behindDocument:!1,lockAnchor:!1,layoutInCell:!0,verticalPosition:{},horizontalPosition:{}},i.floating);if(this.root.push(new hh({distT:o.margins&&o.margins.top||0,distB:o.margins&&o.margins.bottom||0,distL:o.margins&&o.margins.left||0,distR:o.margins&&o.margins.right||0,simplePos:"0",allowOverlap:o.allowOverlap===!0?"1":"0",behindDoc:o.behindDocument===!0?"1":"0",locked:o.lockAnchor===!0?"1":"0",layoutInCell:o.layoutInCell===!0?"1":"0",relativeHeight:o.zIndex?o.zIndex:r.emus.y})),this.root.push(bc()),this.root.push(_c(o.horizontalPosition)),this.root.push(Ec(o.verticalPosition)),this.root.push(zo({x:r.emus.x,y:r.emus.y})),this.root.push(jo({top:0,right:0,bottom:0,left:0})),i.floating!==void 0&&i.floating.wrap!==void 0)switch(i.floating.wrap.type){case Kt.SQUARE:this.root.push(new ih(i.floating.wrap,i.floating.margins));break;case Kt.TIGHT:this.root.push(new ah(i.floating.margins));break;case Kt.TOP_AND_BOTTOM:this.root.push(new uh(i.floating.margins));break;case Kt.NONE:default:this.root.push(new Ca)}else this.root.push(new Ca);this.root.push(new Wo(i.docProperties)),this.root.push(Go()),this.root.push(new Ho({mediaData:e,transform:r,outline:i.outline}))}}const dh=({mediaData:t,transform:e,docProperties:r,outline:i})=>{var o,u,f,n;return new pe({name:"wp:inline",attributes:{distanceTop:{key:"distT",value:0},distanceBottom:{key:"distB",value:0},distanceLeft:{key:"distL",value:0},distanceRight:{key:"distR",value:0}},children:[zo({x:e.emus.x,y:e.emus.y}),jo(i?{top:((o=i.width)!=null?o:9525)*2,right:((u=i.width)!=null?u:9525)*2,bottom:((f=i.width)!=null?f:9525)*2,left:((n=i.width)!=null?n:9525)*2}:{top:0,right:0,bottom:0,left:0}),new Wo(r),Go(),new Ho({mediaData:t,transform:e,outline:i})]})};class ph extends X{constructor(e,r={}){super("w:drawing"),r.floating?this.root.push(new fh({mediaData:e,transform:e.transformation,drawingOptions:r})):this.root.push(dh({mediaData:e,transform:e.transformation,docProperties:r.docProperties,outline:r.outline}))}}const mh=t=>{if(typeof atob=="function"){const e=";base64,",r=t.indexOf(e),i=r===-1?0:r+e.length;return new Uint8Array(atob(t.substring(i)).split("").map(o=>o.charCodeAt(0)))}else{const e=require("buffer");return new e.Buffer(t,"base64")}},wh=t=>typeof t=="string"?mh(t):t,Jn=(t,e)=>({data:wh(t.data),fileName:e,transformation:{pixels:{x:Math.round(t.transformation.width),y:Math.round(t.transformation.height)},emus:{x:Math.round(t.transformation.width*9525),y:Math.round(t.transformation.height*9525)},flip:t.transformation.flip,rotation:t.transformation.rotation?t.transformation.rotation*6e4:void 0}});class vm extends Oe{constructor(e){super({}),ee(this,"imageData");const i=`${Na(e.data)}.${e.type}`;this.imageData=e.type==="svg"?Re(me({type:e.type},Jn(e,i)),{fallback:me({type:e.fallback.type},Jn(Re(me({},e.fallback),{transformation:e.transformation}),`${Na(e.fallback.data)}.${e.fallback.type}`))}):me({type:e.type},Jn(e,i));const o=new ph(this.imageData,{floating:e.floating,docProperties:e.altText,outline:e.outline});this.root.push(o)}prepForXml(e){return e.file.Media.addImage(this.imageData.fileName,this.imageData),this.imageData.type==="svg"&&e.file.Media.addImage(this.imageData.fallback.fileName,this.imageData.fallback),super.prepForXml(e)}}class gh extends X{constructor(e){super("w:instrText"),this.root.push(new Ce({space:ke.PRESERVE})),this.root.push(`SEQ ${e}`)}}class bm extends Oe{constructor(e){super({}),this.root.push(new je(!0)),this.root.push(new gh(e)),this.root.push(new Ze),this.root.push(new ze)}}class yh extends fe{constructor(){super(...arguments),ee(this,"xmlKeys",{instr:"w:instr"})}}class vh extends X{constructor(e,r){super("w:fldSimple"),this.root.push(new yh({instr:e})),r!==void 0&&this.root.push(new Qt(r))}}class _m extends vh{constructor(e){super(` MERGEFIELD ${e} `,`«${e}»`)}}class bh extends fe{constructor(){super(...arguments),ee(this,"xmlKeys",{xmlns:"xmlns"})}}class _h extends fe{constructor(){super(...arguments),ee(this,"xmlKeys",{id:"Id",type:"Type",target:"Target",targetMode:"TargetMode"})}}const qo={EXTERNAL:"External"};class Eh extends X{constructor(e,r,i,o){super("Relationship"),this.root.push(new _h({id:e,type:r,target:i,targetMode:o}))}}class ft extends X{constructor(){super("Relationships"),this.root.push(new bh({xmlns:"http://schemas.openxmlformats.org/package/2006/relationships"}))}createRelationship(e,r,i,o){const u=new Eh(`rId${e}`,r,i,o);return this.root.push(u),u}get RelationshipCount(){return this.root.length-1}}class xh extends fe{constructor(){super(...arguments),ee(this,"xmlKeys",{id:"w:id",initials:"w:initials",author:"w:author",date:"w:date"})}}class Pi extends fe{constructor(){super(...arguments),ee(this,"xmlKeys",{id:"w:id"})}}class Th extends fe{constructor(){super(...arguments),ee(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 Em extends X{constructor(e){super("w:commentRangeStart"),this.root.push(new Pi({id:e}))}}class xm extends X{constructor(e){super("w:commentRangeEnd"),this.root.push(new Pi({id:e}))}}class Tm extends X{constructor(e){super("w:commentReference"),this.root.push(new Pi({id:e}))}}class Ah extends X{constructor({id:e,initials:r,author:i,date:o=new Date,children:u}){super("w:comment"),this.root.push(new xh({id:e,initials:r,author:i,date:o.toISOString()}));for(const f of u)this.root.push(f)}}class Sh extends X{constructor({children:e}){super("w:comments"),ee(this,"relationships"),this.root.push(new Th({"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 r of e)this.root.push(new Ah(r));this.relationships=new ft}get Relationships(){return this.relationships}}class Am extends Se{constructor(){super("w:noBreakHyphen")}}class Sm extends Se{constructor(){super("w:softHyphen")}}class Rm extends Se{constructor(){super("w:dayShort")}}class Im extends Se{constructor(){super("w:monthShort")}}class Nm extends Se{constructor(){super("w:yearShort")}}class km extends Se{constructor(){super("w:dayLong")}}class Cm extends Se{constructor(){super("w:monthLong")}}class Om extends Se{constructor(){super("w:yearLong")}}class Dm extends Se{constructor(){super("w:annotationRef")}}class Pm extends Se{constructor(){super("w:footnoteRef")}}class Lm extends Se{constructor(){super("w:endnoteRef")}}class Fm extends Se{constructor(){super("w:separator")}}class Bm extends Se{constructor(){super("w:continuationSeparator")}}class Mm extends Se{constructor(){super("w:pgNum")}}class Um extends Se{constructor(){super("w:cr")}}class Hm extends Se{constructor(){super("w:tab")}}class Wm extends Se{constructor(){super("w:lastRenderedPageBreak")}}const jm={LEFT:"left",CENTER:"center",RIGHT:"right"},zm={MARGIN:"margin",INDENT:"indent"},Gm={NONE:"none",DOT:"dot",HYPHEN:"hyphen",UNDERSCORE:"underscore",MIDDLE_DOT:"middleDot"};class qm extends X{constructor(e){super("w:ptab"),this.root.push(new Le({alignment:{key:"w:alignment",value:e.alignment},relativeTo:{key:"w:relativeTo",value:e.relativeTo},leader:{key:"w:leader",value:e.leader}}))}}const Ko={COLUMN:"column",PAGE:"page"};class Vo extends X{constructor(e){super("w:br"),this.root.push(new _e({type:e}))}}class Km extends Oe{constructor(){super({}),this.root.push(new Vo(Ko.PAGE))}}class Vm extends Oe{constructor(){super({}),this.root.push(new Vo(Ko.COLUMN))}}class Rh extends X{constructor(){super("w:pageBreakBefore")}}const pi={AT_LEAST:"atLeast",EXACTLY:"exactly",EXACT:"exact",AUTO:"auto"};class Ih extends fe{constructor(){super(...arguments),ee(this,"xmlKeys",{after:"w:after",before:"w:before",line:"w:line",lineRule:"w:lineRule",beforeAutoSpacing:"w:beforeAutospacing",afterAutoSpacing:"w:afterAutospacing"})}}class Nh extends X{constructor(e){super("w:spacing"),this.root.push(new Ih(e))}}const $m={HEADING_1:"Heading1",HEADING_2:"Heading2",HEADING_3:"Heading3",HEADING_4:"Heading4",HEADING_5:"Heading5",HEADING_6:"Heading6",TITLE:"Title"};let Vt=class extends X{constructor(e){super("w:pStyle"),this.root.push(new _e({val:e}))}};class kh extends X{constructor(e){super("w:tabs");for(const r of e)this.root.push(new Oh(r))}}const Oa={LEFT:"left",RIGHT:"right",CENTER:"center",BAR:"bar",CLEAR:"clear",DECIMAL:"decimal",END:"end",NUM:"num",START:"start"},Zm={DOT:"dot",HYPHEN:"hyphen",MIDDLE_DOT:"middleDot",NONE:"none",UNDERSCORE:"underscore"},Ym={MAX:9026};class Ch extends fe{constructor(){super(...arguments),ee(this,"xmlKeys",{val:"w:val",pos:"w:pos",leader:"w:leader"})}}class Oh extends X{constructor({type:e,position:r,leader:i}){super("w:tab"),this.root.push(new Ch({val:e,pos:r,leader:i}))}}class Qn extends X{constructor(e,r){super("w:numPr"),this.root.push(new Dh(r)),this.root.push(new Ph(e))}}class Dh extends X{constructor(e){if(super("w:ilvl"),e>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 _e({val:e}))}}class Ph extends X{constructor(e){super("w:numId"),this.root.push(new _e({val:typeof e=="string"?`{${e}}`:e}))}}class lr extends X{constructor(){super(...arguments),ee(this,"fileChild",Symbol())}}class Lh extends fe{constructor(){super(...arguments),ee(this,"xmlKeys",{id:"r:id",history:"w:history",anchor:"w:anchor"})}}const Jm={INTERNAL:"INTERNAL",EXTERNAL:"EXTERNAL"};class Bt extends X{constructor(e,r,i){super("w:hyperlink"),ee(this,"linkId"),this.linkId=r;const o={history:1,anchor:i||void 0,id:i?void 0:`rId${this.linkId}`},u=new Lh(o);this.root.push(u),e.forEach(f=>{this.root.push(f)})}}class Qm extends Bt{constructor(e){super(e.children,ur(),e.anchor)}}class $o extends X{constructor(e){super("w:externalHyperlink"),this.options=e}}class Fh extends fe{constructor(){super(...arguments),ee(this,"xmlKeys",{id:"w:id",name:"w:name"})}}class Bh extends fe{constructor(){super(...arguments),ee(this,"xmlKeys",{id:"w:id"})}}class Mh{constructor(e){ee(this,"bookmarkUniqueNumericId",wc()),ee(this,"start"),ee(this,"children"),ee(this,"end");const r=this.bookmarkUniqueNumericId();this.start=new Uh(e.id,r),this.children=e.children,this.end=new Hh(r)}}class Uh extends X{constructor(e,r){super("w:bookmarkStart");const i=new Fh({name:e,id:r});this.root.push(i)}}class Hh extends X{constructor(e){super("w:bookmarkEnd");const r=new Bh({id:e});this.root.push(r)}}class Wh extends X{constructor(e){super("w:outlineLvl"),this.level=e,this.root.push(new _e({val:e}))}}class jh extends X{constructor(e,r={}){super("w:instrText"),this.root.push(new Ce({space:ke.PRESERVE}));let i=`PAGEREF ${e}`;r.hyperlink&&(i=`${i} \\h`),r.useRelativePosition&&(i=`${i} \\p`),this.root.push(i)}}class ew extends Oe{constructor(e,r={}){super({children:[new je(!0),new jh(e,r),new ze]})}}const zh={TOP:"top",CENTER:"center",BOTTOM:"bottom"},Gh=Re(me({},zh),{BOTH:"both"}),tw=Gh;class qh extends fe{constructor(){super(...arguments),ee(this,"xmlKeys",{verticalAlign:"w:val"})}}class Xo extends X{constructor(e){super("w:vAlign"),this.root.push(new qh({verticalAlign:e}))}}class Kh extends X{constructor({space:e,count:r,separate:i,equalWidth:o,children:u}){super("w:cols"),this.root.push(new Le({space:{key:"w:space",value:e===void 0?void 0:Te(e)},count:{key:"w:num",value:r===void 0?void 0:Ae(r)},separate:{key:"w:sep",value:i},equalWidth:{key:"w:equalWidth",value:o}})),!o&&u&&u.forEach(f=>this.addChildElement(f))}}const rw={DEFAULT:"default",LINES:"lines",LINES_AND_CHARS:"linesAndChars",SNAP_TO_CHARS:"snapToChars"},Vh=({type:t,linePitch:e,charSpace:r})=>new pe({name:"w:docGrid",attributes:{type:{key:"w:type",value:t},linePitch:{key:"w:linePitch",value:Ae(e)},charSpace:{key:"w:charSpace",value:r?Ae(r):void 0}}}),yt={DEFAULT:"default",FIRST:"first",EVEN:"even"};class $h extends fe{constructor(){super(...arguments),ee(this,"xmlKeys",{type:"w:type",id:"r:id"})}}const Da={HEADER:"w:headerReference",FOOTER:"w:footerReference"};class ei extends X{constructor(e,r){super(e),this.root.push(new $h({type:r.type||yt.DEFAULT,id:`rId${r.id}`}))}}const nw={NEW_PAGE:"newPage",NEW_SECTION:"newSection",CONTINUOUS:"continuous"},Xh=({countBy:t,start:e,restart:r,distance:i})=>new pe({name:"w:lnNumType",attributes:{countBy:{key:"w:countBy",value:t===void 0?void 0:Ae(t)},start:{key:"w:start",value:e===void 0?void 0:Ae(e)},restart:{key:"w:restart",value:r},distance:{key:"w:distance",value:i===void 0?void 0:Te(i)}}}),iw={ALL_PAGES:"allPages",FIRST_PAGE:"firstPage",NOT_FIRST_PAGE:"notFirstPage"},sw={PAGE:"page",TEXT:"text"},aw={BACK:"back",FRONT:"front"};class Pa extends fe{constructor(){super(...arguments),ee(this,"xmlKeys",{display:"w:display",offsetFrom:"w:offsetFrom",zOrder:"w:zOrder"})}}class Zh extends Ye{constructor(e){if(super("w:pgBorders"),!e)return this;e.pageBorders?this.root.push(new Pa({display:e.pageBorders.display,offsetFrom:e.pageBorders.offsetFrom,zOrder:e.pageBorders.zOrder})):this.root.push(new Pa({})),e.pageBorderTop&&this.root.push(new ve("w:top",e.pageBorderTop)),e.pageBorderLeft&&this.root.push(new ve("w:left",e.pageBorderLeft)),e.pageBorderBottom&&this.root.push(new ve("w:bottom",e.pageBorderBottom)),e.pageBorderRight&&this.root.push(new ve("w:right",e.pageBorderRight))}}class Yh extends X{constructor(e,r,i,o,u,f,n){super("w:pgMar"),this.root.push(new Le({top:{key:"w:top",value:Xe(e)},right:{key:"w:right",value:Te(r)},bottom:{key:"w:bottom",value:Xe(i)},left:{key:"w:left",value:Te(o)},header:{key:"w:header",value:Te(u)},footer:{key:"w:footer",value:Te(f)},gutter:{key:"w:gutter",value:Te(n)}}))}}const ow={HYPHEN:"hyphen",PERIOD:"period",COLON:"colon",EM_DASH:"emDash",EN_DASH:"endash"};class Jh extends fe{constructor(){super(...arguments),ee(this,"xmlKeys",{start:"w:start",formatType:"w:fmt",separator:"w:chapSep"})}}class Qh extends X{constructor({start:e,formatType:r,separator:i}){super("w:pgNumType"),this.root.push(new Jh({start:e===void 0?void 0:Ae(e),formatType:r,separator:i}))}}const mi={PORTRAIT:"portrait",LANDSCAPE:"landscape"},ef=({width:t,height:e,orientation:r,code:i})=>{const o=Te(t),u=Te(e);return new pe({name:"w:pgSz",attributes:{width:{key:"w:w",value:r===mi.LANDSCAPE?u:o},height:{key:"w:h",value:r===mi.LANDSCAPE?o:u},orientation:{key:"w:orient",value:r},code:{key:"w:code",value:i}}})},uw={LEFT_TO_RIGHT_TOP_TO_BOTTOM:"lrTb",TOP_TO_BOTTOM_RIGHT_TO_LEFT:"tbRl"};class tf extends fe{constructor(){super(...arguments),ee(this,"xmlKeys",{val:"w:val"})}}class rf extends X{constructor(e){super("w:textDirection"),this.root.push(new tf({val:e}))}}const lw={NEXT_PAGE:"nextPage",NEXT_COLUMN:"nextColumn",CONTINUOUS:"continuous",EVEN_PAGE:"evenPage",ODD_PAGE:"oddPage"};class nf extends fe{constructor(){super(...arguments),ee(this,"xmlKeys",{val:"w:val"})}}class sf extends X{constructor(e){super("w:type"),this.root.push(new nf({val:e}))}}const at={TOP:1440,RIGHT:1440,BOTTOM:1440,LEFT:1440,HEADER:708,FOOTER:708,GUTTER:0},ti={WIDTH:11906,HEIGHT:16838,ORIENTATION:mi.PORTRAIT};class af extends X{constructor({page:{size:{width:e=ti.WIDTH,height:r=ti.HEIGHT,orientation:i=ti.ORIENTATION}={},margin:{top:o=at.TOP,right:u=at.RIGHT,bottom:f=at.BOTTOM,left:n=at.LEFT,header:h=at.HEADER,footer:_=at.FOOTER,gutter:E=at.GUTTER}={},pageNumbers:R={},borders:I,textDirection:w}={},grid:{linePitch:A=360,charSpace:v,type:N}={},headerWrapperGroup:l={},footerWrapperGroup:b={},lineNumbers:d,titlePage:c,verticalAlign:S,column:L,type:F}={}){super("w:sectPr"),this.addHeaderFooterGroup(Da.HEADER,l),this.addHeaderFooterGroup(Da.FOOTER,b),F&&this.root.push(new sf(F)),this.root.push(ef({width:e,height:r,orientation:i})),this.root.push(new Yh(o,u,f,n,h,_,E)),I&&this.root.push(new Zh(I)),d&&this.root.push(Xh(d)),this.root.push(new Qh(R)),L&&this.root.push(new Kh(L)),S&&this.root.push(new Xo(S)),c!==void 0&&this.root.push(new le("w:titlePg",c)),w&&this.root.push(new rf(w)),this.root.push(Vh({linePitch:A,charSpace:v,type:N}))}addHeaderFooterGroup(e,r){r.default&&this.root.push(new ei(e,{type:yt.DEFAULT,id:r.default.View.ReferenceId})),r.first&&this.root.push(new ei(e,{type:yt.FIRST,id:r.first.View.ReferenceId})),r.even&&this.root.push(new ei(e,{type:yt.EVEN,id:r.even.View.ReferenceId}))}}class of extends X{constructor(){super("w:body"),ee(this,"sections",[])}addSection(e){const r=this.sections.pop();this.root.push(this.createSectionParagraph(r)),this.sections.push(new af(e))}prepForXml(e){return this.sections.length===1&&(this.root.splice(0,1),this.root.push(this.sections.pop())),super.prepForXml(e)}push(e){this.root.push(e)}createSectionParagraph(e){const r=new ht({}),i=new ct({});return i.push(e),r.addChildElement(i),r}}class cw extends X{constructor({width:e,space:r}){super("w:col"),this.root.push(new Le({width:{key:"w:w",value:Te(e)},space:{key:"w:space",value:r===void 0?void 0:Te(r)}}))}}const 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",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",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"};class cr extends fe{constructor(e,r){super(me({Ignorable:r},Object.fromEntries(e.map(i=>[i,wi[i]])))),ee(this,"xmlKeys",me({Ignorable:"mc:Ignorable"},Object.fromEntries(Object.keys(wi).map(i=>[i,`xmlns:${i}`]))))}}class uf extends fe{constructor(){super(...arguments),ee(this,"xmlKeys",{color:"w:color",themeColor:"w:themeColor",themeShade:"w:themeShade",themeTint:"w:themeTint"})}}class lf extends X{constructor(e){super("w:background"),this.root.push(new uf({color:e.color===void 0?void 0:_t(e.color),themeColor:e.themeColor,themeShade:e.themeShade===void 0?void 0:da(e.themeShade),themeTint:e.themeTint===void 0?void 0:da(e.themeTint)}))}}class cf extends X{constructor(e){super("w:document"),ee(this,"body"),this.root.push(new cr(["wpc","mc","o","r","m","v","wp14","wp","w10","w","w14","w15","wpg","wpi","wne","wps","cx","cx1","cx2","cx3","cx4","cx5","cx6","cx7","cx8","aink","am3d","w16cex","w16cid","w16","w16sdtdh","w16se"],"w14 w15 wp14")),this.body=new of,e.background&&this.root.push(new lf(e.background)),this.root.push(this.body)}add(e){return this.body.push(e),this}get Body(){return this.body}}class Zo{constructor(e){ee(this,"document"),ee(this,"relationships"),this.document=new cf(e),this.relationships=new ft}get View(){return this.document}get Relationships(){return this.relationships}}class hf extends fe{constructor(){super(...arguments),ee(this,"xmlKeys",{val:"w:val"})}}class ff extends X{constructor(){super("w:wordWrap"),this.root.push(new hf({val:0}))}}const hw={NONE:"none",DROP:"drop",MARGIN:"margin"},fw={MARGIN:"margin",PAGE:"page",TEXT:"text"},dw={AROUND:"around",AUTO:"auto",NONE:"none",NOT_BESIDE:"notBeside",THROUGH:"through",TIGHT:"tight"},df=t=>{var e,r;return new pe({name:"w:framePr",attributes:{anchorLock:{key:"w:anchorLock",value:t.anchorLock},dropCap:{key:"w:dropCap",value:t.dropCap},width:{key:"w:w",value:t.width},height:{key:"w:h",value:t.height},x:{key:"w:x",value:t.position?t.position.x:void 0},y:{key:"w:y",value:t.position?t.position.y:void 0},anchorHorizontal:{key:"w:hAnchor",value:t.anchor.horizontal},anchorVertical:{key:"w:vAnchor",value:t.anchor.vertical},spaceHorizontal:{key:"w:hSpace",value:(e=t.space)==null?void 0:e.horizontal},spaceVertical:{key:"w:vSpace",value:(r=t.space)==null?void 0:r.vertical},rule:{key:"w:hRule",value:t.rule},alignmentX:{key:"w:xAlign",value:t.alignment?t.alignment.x:void 0},alignmentY:{key:"w:yAlign",value:t.alignment?t.alignment.y:void 0},lines:{key:"w:lines",value:t.lines},wrap:{key:"w:wrap",value:t.wrap}}})};class ct extends Ye{constructor(e){var r,i;if(super("w:pPr"),ee(this,"numberingReferences",[]),!e)return this;e.heading&&this.push(new Vt(e.heading)),e.bullet&&this.push(new Vt("ListParagraph")),e.numbering&&!e.style&&!e.heading&&(e.numbering.custom||this.push(new Vt("ListParagraph"))),e.style&&this.push(new Vt(e.style)),e.keepNext!==void 0&&this.push(new le("w:keepNext",e.keepNext)),e.keepLines!==void 0&&this.push(new le("w:keepLines",e.keepLines)),e.pageBreakBefore&&this.push(new Rh),e.frame&&this.push(df(e.frame)),e.widowControl!==void 0&&this.push(new le("w:widowControl",e.widowControl)),e.bullet&&this.push(new Qn(1,e.bullet.level)),e.numbering?(this.numberingReferences.push({reference:e.numbering.reference,instance:(r=e.numbering.instance)!=null?r:0}),this.push(new Qn(`${e.numbering.reference}-${(i=e.numbering.instance)!=null?i:0}`,e.numbering.level))):e.numbering===!1&&this.push(new Qn(0,0)),e.border&&this.push(new Ll(e.border)),e.thematicBreak&&this.push(new Fl),e.shading&&this.push(new ar(e.shading)),e.wordWrap&&this.push(new ff),e.overflowPunctuation&&this.push(new le("w:overflowPunct",e.overflowPunctuation));const o=[...e.rightTabStop!==void 0?[{type:Oa.RIGHT,position:e.rightTabStop}]:[],...e.tabStops?e.tabStops:[],...e.leftTabStop!==void 0?[{type:Oa.LEFT,position:e.leftTabStop}]:[]];o.length>0&&this.push(new kh(o)),e.bidirectional!==void 0&&this.push(new le("w:bidi",e.bidirectional)),e.spacing&&this.push(new Nh(e.spacing)),e.indent&&this.push(new Bl(e.indent)),e.contextualSpacing!==void 0&&this.push(new le("w:contextualSpacing",e.contextualSpacing)),e.alignment&&this.push(new Ro(e.alignment)),e.outlineLevel!==void 0&&this.push(new Wh(e.outlineLevel)),e.suppressLineNumbers!==void 0&&this.push(new le("w:suppressLineNumbers",e.suppressLineNumbers)),e.autoSpaceEastAsianText!==void 0&&this.push(new le("w:autoSpaceDN",e.autoSpaceEastAsianText)),e.run&&this.push(new rt(e.run))}push(e){this.root.push(e)}prepForXml(e){if(e.viewWrapper instanceof Zo)for(const r of this.numberingReferences)e.file.Numbering.createConcreteNumberingInstance(r.reference,r.instance);return super.prepForXml(e)}}class ht extends lr{constructor(e){if(super("w:p"),ee(this,"properties"),typeof e=="string")return this.properties=new ct({}),this.root.push(this.properties),this.root.push(new Qt(e)),this;if(this.properties=new ct(e),this.root.push(this.properties),e.text&&this.root.push(new Qt(e.text)),e.children)for(const r of e.children){if(r instanceof Mh){this.root.push(r.start);for(const i of r.children)this.root.push(i);this.root.push(r.end);continue}this.root.push(r)}}prepForXml(e){for(const r of this.root)if(r instanceof $o){const i=this.root.indexOf(r),o=new Bt(r.options.children,ur());e.viewWrapper.Relationships.createRelationship(o.linkId,"http://schemas.openxmlformats.org/officeDocument/2006/relationships/hyperlink",r.options.link,qo.EXTERNAL),this.root[i]=o}return super.prepForXml(e)}addRunToFront(e){return this.root.splice(1,0,e),this}}let pw=class extends X{constructor(e){super("m:oMath");for(const r of e.children)this.root.push(r)}};class pf extends X{constructor(e){super("m:t"),this.root.push(e)}}class ww extends X{constructor(e){super("m:r"),this.root.push(new pf(e))}}class mf extends X{constructor(e){super("m:den");for(const r of e)this.root.push(r)}}class wf extends X{constructor(e){super("m:num");for(const r of e)this.root.push(r)}}class gw extends X{constructor(e){super("m:f"),this.root.push(new wf(e.numerator)),this.root.push(new mf(e.denominator))}}const gf=({accent:t})=>new pe({name:"m:chr",attributes:{accent:{key:"m:val",value:t}}}),Ne=({children:t})=>new pe({name:"m:e",children:t}),yf=({value:t})=>new pe({name:"m:limLoc",attributes:{value:{key:"m:val",value:t||"undOvr"}}}),vf=()=>new pe({name:"m:subHide",attributes:{hide:{key:"m:val",value:1}}}),bf=()=>new pe({name:"m:supHide",attributes:{hide:{key:"m:val",value:1}}}),Yo=({accent:t,hasSuperScript:e,hasSubScript:r,limitLocationVal:i})=>new pe({name:"m:naryPr",children:[...t?[gf({accent:t})]:[],yf({value:i}),...e?[]:[bf()],...r?[]:[vf()]]}),Mt=({children:t})=>new pe({name:"m:sub",children:t}),Ut=({children:t})=>new pe({name:"m:sup",children:t});class yw extends X{constructor(e){super("m:nary"),this.root.push(Yo({accent:"∑",hasSuperScript:!!e.superScript,hasSubScript:!!e.subScript})),e.subScript&&this.root.push(Mt({children:e.subScript})),e.superScript&&this.root.push(Ut({children:e.superScript})),this.root.push(Ne({children:e.children}))}}class vw extends X{constructor(e){super("m:nary"),this.root.push(Yo({accent:"",hasSuperScript:!!e.superScript,hasSubScript:!!e.subScript,limitLocationVal:"subSup"})),e.subScript&&this.root.push(Mt({children:e.subScript})),e.superScript&&this.root.push(Ut({children:e.superScript})),this.root.push(Ne({children:e.children}))}}class Jo extends X{constructor(e){super("m:lim");for(const r of e)this.root.push(r)}}class bw extends X{constructor(e){super("m:limUpp"),this.root.push(Ne({children:e.children})),this.root.push(new Jo(e.limit))}}class _w extends X{constructor(e){super("m:limLow"),this.root.push(Ne({children:e.children})),this.root.push(new Jo(e.limit))}}const _f=()=>new pe({name:"m:sSupPr"});class Ew extends X{constructor(e){super("m:sSup"),this.root.push(_f()),this.root.push(Ne({children:e.children})),this.root.push(Ut({children:e.superScript}))}}const Ef=()=>new pe({name:"m:sSubPr"});class xw extends X{constructor(e){super("m:sSub"),this.root.push(Ef()),this.root.push(Ne({children:e.children})),this.root.push(Mt({children:e.subScript}))}}const xf=()=>new pe({name:"m:sSubSupPr"});class Tw extends X{constructor(e){super("m:sSubSup"),this.root.push(xf()),this.root.push(Ne({children:e.children})),this.root.push(Mt({children:e.subScript})),this.root.push(Ut({children:e.superScript}))}}const Tf=()=>new pe({name:"m:sPrePr"});class Aw extends pe{constructor({children:e,subScript:r,superScript:i}){super({name:"m:sPre",children:[Tf(),Ne({children:e}),Mt({children:r}),Ut({children:i})]})}}const Sw="";class Af extends X{constructor(e){if(super("m:deg"),e)for(const r of e)this.root.push(r)}}class Sf extends fe{constructor(){super(...arguments),ee(this,"xmlKeys",{hide:"m:val"})}}class Rf extends X{constructor(){super("m:degHide"),this.root.push(new Sf({hide:1}))}}class If extends X{constructor(e){super("m:radPr"),e||this.root.push(new Rf)}}class Rw extends X{constructor(e){super("m:rad"),this.root.push(new If(!!e.degree)),this.root.push(new Af(e.degree)),this.root.push(Ne({children:e.children}))}}class Nf extends X{constructor(e){super("m:fName");for(const r of e)this.root.push(r)}}class kf extends X{constructor(){super("m:funcPr")}}class Iw extends X{constructor(e){super("m:func"),this.root.push(new kf),this.root.push(new Nf(e.name)),this.root.push(Ne({children:e.children}))}}const Cf=({character:t})=>new pe({name:"m:begChr",attributes:{character:{key:"m:val",value:t}}}),Of=({character:t})=>new pe({name:"m:endChr",attributes:{character:{key:"m:val",value:t}}}),hr=({characters:t})=>new pe({name:"m:dPr",children:t?[Cf({character:t.beginningCharacter}),Of({character:t.endingCharacter})]:[]});class Nw extends X{constructor(e){super("m:d"),this.root.push(hr({})),this.root.push(Ne({children:e.children}))}}class kw extends X{constructor(e){super("m:d"),this.root.push(hr({characters:{beginningCharacter:"[",endingCharacter:"]"}})),this.root.push(Ne({children:e.children}))}}class Cw extends X{constructor(e){super("m:d"),this.root.push(hr({characters:{beginningCharacter:"{",endingCharacter:"}"}})),this.root.push(Ne({children:e.children}))}}class Ow extends X{constructor(e){super("m:d"),this.root.push(hr({characters:{beginningCharacter:"〈",endingCharacter:"〉"}})),this.root.push(Ne({children:e.children}))}}class Df extends X{constructor(e){super("w:tblGrid");for(const r of e)this.root.push(new Pf(r))}}class Pf extends X{constructor(e){super("w:gridCol"),e!==void 0&&this.root.push(new Le({width:{key:"w:w",value:Te(e)}}))}}const Qo={TABLE:"w:tblCellMar",TABLE_CELL:"w:tcMar"};class eu extends Ye{constructor(e,{marginUnitType:r=gi.DXA,top:i,left:o,bottom:u,right:f}){super(e),i!==void 0&&this.root.push(new lt("w:top",{type:r,size:i})),o!==void 0&&this.root.push(new lt("w:left",{type:r,size:o})),u!==void 0&&this.root.push(new lt("w:bottom",{type:r,size:u})),f!==void 0&&this.root.push(new lt("w:right",{type:r,size:f}))}}const gi={AUTO:"auto",DXA:"dxa",NIL:"nil",PERCENTAGE:"pct"};class lt extends X{constructor(e,{type:r=gi.AUTO,size:i}){super(e);let o=i;r===gi.PERCENTAGE&&typeof i=="number"&&(o=`${i}%`),this.root.push(new Le({type:{key:"w:type",value:r},size:{key:"w:w",value:So(o)}}))}}class Lf extends Ye{constructor(e){super("w:tcBorders"),e.top&&this.root.push(new ve("w:top",e.top)),e.start&&this.root.push(new ve("w:start",e.start)),e.left&&this.root.push(new ve("w:left",e.left)),e.bottom&&this.root.push(new ve("w:bottom",e.bottom)),e.end&&this.root.push(new ve("w:end",e.end)),e.right&&this.root.push(new ve("w:right",e.right))}}class Ff extends fe{constructor(){super(...arguments),ee(this,"xmlKeys",{val:"w:val"})}}class Bf extends X{constructor(e){super("w:gridSpan"),this.root.push(new Ff({val:Ae(e)}))}}const tu={CONTINUE:"continue",RESTART:"restart"};class Mf extends fe{constructor(){super(...arguments),ee(this,"xmlKeys",{val:"w:val"})}}class La extends X{constructor(e){super("w:vMerge"),this.root.push(new Mf({val:e}))}}const Dw={BOTTOM_TO_TOP_LEFT_TO_RIGHT:"btLr",LEFT_TO_RIGHT_TOP_TO_BOTTOM:"lrTb",TOP_TO_BOTTOM_RIGHT_TO_LEFT:"tbRl"};class Uf extends fe{constructor(){super(...arguments),ee(this,"xmlKeys",{val:"w:val"})}}class Hf extends X{constructor(e){super("w:textDirection"),this.root.push(new Uf({val:e}))}}class Wf extends Ye{constructor(e){super("w:tcPr"),e.width&&this.root.push(new lt("w:tcW",e.width)),e.columnSpan&&this.root.push(new Bf(e.columnSpan)),e.verticalMerge?this.root.push(new La(e.verticalMerge)):e.rowSpan&&e.rowSpan>1&&this.root.push(new La(tu.RESTART)),e.borders&&this.root.push(new Lf(e.borders)),e.shading&&this.root.push(new ar(e.shading)),e.margins&&this.root.push(new eu(Qo.TABLE_CELL,e.margins)),e.textDirection&&this.root.push(new Hf(e.textDirection)),e.verticalAlign&&this.root.push(new Xo(e.verticalAlign))}}class ru extends X{constructor(e){super("w:tc"),this.options=e,this.root.push(new Wf(e));for(const r of e.children)this.root.push(r)}prepForXml(e){return this.root[this.root.length-1]instanceof ht||this.root.push(new ht({})),super.prepForXml(e)}}const dt={style:ki.NONE,size:0,color:"auto"},pt={style:ki.SINGLE,size:4,color:"auto"};class nu extends X{constructor(e){super("w:tblBorders"),e.top?this.root.push(new ve("w:top",e.top)):this.root.push(new ve("w:top",pt)),e.left?this.root.push(new ve("w:left",e.left)):this.root.push(new ve("w:left",pt)),e.bottom?this.root.push(new ve("w:bottom",e.bottom)):this.root.push(new ve("w:bottom",pt)),e.right?this.root.push(new ve("w:right",e.right)):this.root.push(new ve("w:right",pt)),e.insideHorizontal?this.root.push(new ve("w:insideH",e.insideHorizontal)):this.root.push(new ve("w:insideH",pt)),e.insideVertical?this.root.push(new ve("w:insideV",e.insideVertical)):this.root.push(new ve("w:insideV",pt))}}ee(nu,"NONE",{top:dt,bottom:dt,left:dt,right:dt,insideHorizontal:dt,insideVertical:dt});const Pw={MARGIN:"margin",PAGE:"page",TEXT:"text"},Lw={CENTER:"center",INSIDE:"inside",LEFT:"left",OUTSIDE:"outside",RIGHT:"right"},Fw={CENTER:"center",INSIDE:"inside",BOTTOM:"bottom",OUTSIDE:"outside",INLINE:"inline",TOP:"top"},Bw={NEVER:"never",OVERLAP:"overlap"};class jf extends X{constructor({horizontalAnchor:e,verticalAnchor:r,absoluteHorizontalPosition:i,relativeHorizontalPosition:o,absoluteVerticalPosition:u,relativeVerticalPosition:f,bottomFromText:n,topFromText:h,leftFromText:_,rightFromText:E,overlap:R}){super("w:tblpPr"),this.root.push(new Le({leftFromText:{key:"w:leftFromText",value:_===void 0?void 0:Te(_)},rightFromText:{key:"w:rightFromText",value:E===void 0?void 0:Te(E)},topFromText:{key:"w:topFromText",value:h===void 0?void 0:Te(h)},bottomFromText:{key:"w:bottomFromText",value:n===void 0?void 0:Te(n)},absoluteHorizontalPosition:{key:"w:tblpX",value:i===void 0?void 0:Xe(i)},absoluteVerticalPosition:{key:"w:tblpY",value:u===void 0?void 0:Xe(u)},horizontalAnchor:{key:"w:horzAnchor",value:e===void 0?void 0:e},relativeHorizontalPosition:{key:"w:tblpXSpec",value:o},relativeVerticalPosition:{key:"w:tblpYSpec",value:f},verticalAnchor:{key:"w:vertAnchor",value:r}})),R&&this.root.push(new Ol("w:tblOverlap",R))}}const Mw={AUTOFIT:"autofit",FIXED:"fixed"};class zf extends fe{constructor(){super(...arguments),ee(this,"xmlKeys",{type:"w:type"})}}class Gf extends X{constructor(e){super("w:tblLayout"),this.root.push(new zf({type:e}))}}const qf={DXA:"dxa"};class iu extends X{constructor({type:e=qf.DXA,value:r}){super("w:tblCellSpacing"),this.root.push(new Le({type:{key:"w:type",value:e},value:{key:"w:w",value:So(r)}}))}}class Kf extends Ye{constructor(e){super("w:tblPr"),e.style&&this.root.push(new et("w:tblStyle",e.style)),e.float&&this.root.push(new jf(e.float)),e.visuallyRightToLeft!==void 0&&this.root.push(new le("w:bidiVisual",e.visuallyRightToLeft)),e.width&&this.root.push(new lt("w:tblW",e.width)),e.alignment&&this.root.push(new Ro(e.alignment)),e.indent&&this.root.push(new lt("w:tblInd",e.indent)),e.borders&&this.root.push(new nu(e.borders)),e.shading&&this.root.push(new ar(e.shading)),e.layout&&this.root.push(new Gf(e.layout)),e.cellMargin&&this.root.push(new eu(Qo.TABLE,e.cellMargin)),e.cellSpacing&&this.root.push(new iu(e.cellSpacing))}}class Uw extends lr{constructor({rows:e,width:r,columnWidths:i=Array(Math.max(...e.map(w=>w.CellCount))).fill(100),margins:o,indent:u,float:f,layout:n,style:h,borders:_,alignment:E,visuallyRightToLeft:R,cellSpacing:I}){super("w:tbl"),this.root.push(new Kf({borders:_??{},width:r??{size:100},indent:u,float:f,layout:n,style:h,alignment:E,cellMargin:o,visuallyRightToLeft:R,cellSpacing:I})),this.root.push(new Df(i));for(const w of e)this.root.push(w);e.forEach((w,A)=>{if(A===e.length-1)return;let v=0;w.cells.forEach(N=>{if(N.options.rowSpan&&N.options.rowSpan>1){const l=new ru({rowSpan:N.options.rowSpan-1,columnSpan:N.options.columnSpan,borders:N.options.borders,children:[],verticalMerge:tu.CONTINUE});e[A+1].addCellToColumnIndex(l,v)}v+=N.options.columnSpan||1})})}}const Hw={AUTO:"auto",ATLEAST:"atLeast",EXACT:"exact"};class Vf extends fe{constructor(){super(...arguments),ee(this,"xmlKeys",{value:"w:val",rule:"w:hRule"})}}class $f extends X{constructor(e,r){super("w:trHeight"),this.root.push(new Vf({value:Te(e),rule:r}))}}class Xf extends Ye{constructor(e){super("w:trPr"),e.cantSplit!==void 0&&this.root.push(new le("w:cantSplit",e.cantSplit)),e.tableHeader!==void 0&&this.root.push(new le("w:tblHeader",e.tableHeader)),e.height&&this.root.push(new $f(e.height.value,e.height.rule)),e.cellSpacing&&this.root.push(new iu(e.cellSpacing))}}class Ww extends X{constructor(e){super("w:tr"),this.options=e,this.root.push(new Xf(e));for(const r of e.children)this.root.push(r)}get CellCount(){return this.options.children.length}get cells(){return this.root.filter(e=>e instanceof ru)}addCellToIndex(e,r){this.root.splice(r+1,0,e)}addCellToColumnIndex(e,r){const i=this.columnIndexToRootIndex(r,!0);this.addCellToIndex(e,i-1)}rootIndexToColumnIndex(e){if(e<1||e>=this.root.length)throw new Error(`cell 'rootIndex' should between 1 to ${this.root.length-1}`);let r=0;for(let i=1;i<e;i++){const o=this.root[i];r+=o.options.columnSpan||1}return r}columnIndexToRootIndex(e,r=!1){if(e<0)throw new Error("cell 'columnIndex' should not less than zero");let i=0,o=1;for(;i<=e;){if(o>=this.root.length){if(r)return this.root.length;throw new Error(`cell 'columnIndex' should not great than ${i-1}`)}const u=this.root[o];o+=1,i+=u&&u.options.columnSpan||1}return o-1}}class Zf extends fe{constructor(){super(...arguments),ee(this,"xmlKeys",{xmlns:"xmlns",vt:"xmlns:vt"})}}class Yf extends X{constructor(){super("Properties"),this.root.push(new Zf({xmlns:"http://schemas.openxmlformats.org/officeDocument/2006/extended-properties",vt:"http://schemas.openxmlformats.org/officeDocument/2006/docPropsVTypes"}))}}class Jf extends fe{constructor(){super(...arguments),ee(this,"xmlKeys",{xmlns:"xmlns"})}}class Qf extends fe{constructor(){super(...arguments),ee(this,"xmlKeys",{contentType:"ContentType",extension:"Extension"})}}class Ke extends X{constructor(e,r){super("Default"),this.root.push(new Qf({contentType:e,extension:r}))}}class ed extends fe{constructor(){super(...arguments),ee(this,"xmlKeys",{contentType:"ContentType",partName:"PartName"})}}class De extends X{constructor(e,r){super("Override"),this.root.push(new ed({contentType:e,partName:r}))}}class td extends X{constructor(){super("Types"),this.root.push(new Jf({xmlns:"http://schemas.openxmlformats.org/package/2006/content-types"})),this.root.push(new Ke("image/png","png")),this.root.push(new Ke("image/jpeg","jpeg")),this.root.push(new Ke("image/jpeg","jpg")),this.root.push(new Ke("image/bmp","bmp")),this.root.push(new Ke("image/gif","gif")),this.root.push(new Ke("image/svg+xml","svg")),this.root.push(new Ke("application/vnd.openxmlformats-package.relationships+xml","rels")),this.root.push(new Ke("application/xml","xml")),this.root.push(new Ke("application/vnd.openxmlformats-officedocument.obfuscatedFont","odttf")),this.root.push(new De("application/vnd.openxmlformats-officedocument.wordprocessingml.document.main+xml","/word/document.xml")),this.root.push(new De("application/vnd.openxmlformats-officedocument.wordprocessingml.styles+xml","/word/styles.xml")),this.root.push(new De("application/vnd.openxmlformats-package.core-properties+xml","/docProps/core.xml")),this.root.push(new De("application/vnd.openxmlformats-officedocument.custom-properties+xml","/docProps/custom.xml")),this.root.push(new De("application/vnd.openxmlformats-officedocument.extended-properties+xml","/docProps/app.xml")),this.root.push(new De("application/vnd.openxmlformats-officedocument.wordprocessingml.numbering+xml","/word/numbering.xml")),this.root.push(new De("application/vnd.openxmlformats-officedocument.wordprocessingml.footnotes+xml","/word/footnotes.xml")),this.root.push(new De("application/vnd.openxmlformats-officedocument.wordprocessingml.settings+xml","/word/settings.xml")),this.root.push(new De("application/vnd.openxmlformats-officedocument.wordprocessingml.comments+xml","/word/comments.xml")),this.root.push(new De("application/vnd.openxmlformats-officedocument.wordprocessingml.fontTable+xml","/word/fontTable.xml"))}addFooter(e){this.root.push(new De("application/vnd.openxmlformats-officedocument.wordprocessingml.footer+xml",`/word/footer${e}.xml`))}addHeader(e){this.root.push(new De("application/vnd.openxmlformats-officedocument.wordprocessingml.header+xml",`/word/header${e}.xml`))}}class rd extends X{constructor(e){super("cp:coreProperties"),this.root.push(new cr(["cp","dc","dcterms","dcmitype","xsi"])),e.title&&this.root.push(new it("dc:title",e.title)),e.subject&&this.root.push(new it("dc:subject",e.subject)),e.creator&&this.root.push(new it("dc:creator",e.creator)),e.keywords&&this.root.push(new it("cp:keywords",e.keywords)),e.description&&this.root.push(new it("dc:description",e.description)),e.lastModifiedBy&&this.root.push(new it("cp:lastModifiedBy",e.lastModifiedBy)),e.revision&&this.root.push(new it("cp:revision",String(e.revision))),this.root.push(new Fa("dcterms:created")),this.root.push(new Fa("dcterms:modified"))}}class nd extends fe{constructor(){super(...arguments),ee(this,"xmlKeys",{type:"xsi:type"})}}class Fa extends X{constructor(e){super(e),this.root.push(new nd({type:"dcterms:W3CDTF"})),this.root.push(Cl(new Date))}}class id extends fe{constructor(){super(...arguments),ee(this,"xmlKeys",{xmlns:"xmlns",vt:"xmlns:vt"})}}class sd extends fe{constructor(){super(...arguments),ee(this,"xmlKeys",{fmtid:"fmtid",pid:"pid",name:"name"})}}class ad extends X{constructor(e,r){super("property"),this.root.push(new sd({fmtid:"{D5CDD505-2E9C-101B-9397-08002B2CF9AE}",pid:e.toString(),name:r.name})),this.root.push(new od(r.value))}}class od extends X{constructor(e){super("vt:lpwstr"),this.root.push(e)}}class ud extends X{constructor(e){super("Properties"),ee(this,"nextId"),ee(this,"properties",[]),this.root.push(new id({xmlns:"http://schemas.openxmlformats.org/officeDocument/2006/custom-properties",vt:"http://schemas.openxmlformats.org/officeDocument/2006/docPropsVTypes"})),this.nextId=2;for(const r of e)this.addCustomProperty(r)}prepForXml(e){return this.properties.forEach(r=>this.root.push(r)),super.prepForXml(e)}addCustomProperty(e){this.properties.push(new ad(this.nextId++,e))}}const jw={ANSI:"00",DEFAULT:"01",SYMBOL:"02",MAC:"4D",JIS:"80",HANGUL:"81",JOHAB:"82",GB_2312:"86",CHINESEBIG5:"88",GREEK:"A1",TURKISH:"A2",VIETNAMESE:"A3",HEBREW:"B1",ARABIC:"B2",BALTIC:"BA",RUSSIAN:"CC",THAI:"DE",EASTEUROPE:"EE",OEM:"FF"},$t=({id:t,fontKey:e,subsetted:r},i)=>new pe({name:i,attributes:me({id:{key:"r:id",value:t}},e?{fontKey:{key:"w:fontKey",value:`{${e}}`}}:{}),children:[...r?[new le("w:subsetted",r)]:[]]}),ld=({name:t,altName:e,panose1:r,charset:i,family:o,notTrueType:u,pitch:f,sig:n,embedRegular:h,embedBold:_,embedItalic:E,embedBoldItalic:R})=>new pe({name:"w:font",attributes:{name:{key:"w:name",value:t}},children:[...e?[St("w:altName",e)]:[],...r?[St("w:panose1",r)]:[],...i?[St("w:charset",i)]:[],St("w:family",o),...u?[new le("w:notTrueType",u)]:[],St("w:pitch",f),...n?[new pe({name:"w:sig",attributes:{usb0:{key:"w:usb0",value:n.usb0},usb1:{key:"w:usb1",value:n.usb1},usb2:{key:"w:usb2",value:n.usb2},usb3:{key:"w:usb3",value:n.usb3},csb0:{key:"w:csb0",value:n.csb0},csb1:{key:"w:csb1",value:n.csb1}}})]:[],...h?[$t(h,"w:embedRegular")]:[],..._?[$t(_,"w:embedBold")]:[],...E?[$t(E,"w:embedItalic")]:[],...R?[$t(R,"w:embedBoldItalic")]:[]]}),cd=({name:t,index:e,fontKey:r,characterSet:i})=>ld({name:t,sig:{usb0:"E0002AFF",usb1:"C000247B",usb2:"00000009",usb3:"00000000",csb0:"000001FF",csb1:"00000000"},charset:i,family:"auto",pitch:"variable",embedRegular:{fontKey:r,id:`rId${e}`}}),hd=t=>new pe({name:"w:fonts",attributes:{mc:{key:"xmlns:mc",value:"http://schemas.openxmlformats.org/markup-compatibility/2006"},r:{key:"xmlns:r",value:"http://schemas.openxmlformats.org/officeDocument/2006/relationships"},w:{key:"xmlns:w",value:"http://schemas.openxmlformats.org/wordprocessingml/2006/main"},w14:{key:"xmlns:w14",value:"http://schemas.microsoft.com/office/word/2010/wordml"},w15:{key:"xmlns:w15",value:"http://schemas.microsoft.com/office/word/2012/wordml"},w16cex:{key:"xmlns:w16cex",value:"http://schemas.microsoft.com/office/word/2018/wordml/cex"},w16cid:{key:"xmlns:w16cid",value:"http://schemas.microsoft.com/office/word/2016/wordml/cid"},w16:{key:"xmlns:w16",value:"http://schemas.microsoft.com/office/word/2018/wordml"},w16sdtdh:{key:"xmlns:w16sdtdh",value:"http://schemas.microsoft.com/office/word/2020/wordml/sdtdatahash"},w16se:{key:"xmlns:w16se",value:"http://schemas.microsoft.com/office/word/2015/wordml/symex"},Ignorable:{key:"mc:Ignorable",value:"w14 w15 w16se w16cid w16 w16cex w16sdtdh"}},children:t.map((e,r)=>cd({name:e.name,index:r+1,fontKey:e.fontKey}))});class fd{constructor(e){ee(this,"fontTable"),ee(this,"relationships"),ee(this,"fontOptionsWithKey",[]),this.options=e,this.fontOptionsWithKey=e.map(r=>Re(me({},r),{fontKey:gc()})),this.fontTable=hd(this.fontOptionsWithKey),this.relationships=new ft;for(let r=0;r<e.length;r++)this.relationships.createRelationship(r+1,"http://schemas.openxmlformats.org/officeDocument/2006/relationships/font",`fonts/${e[r].name}.odttf`)}get View(){return this.fontTable}get Relationships(){return this.relationships}}class dd extends fe{constructor(){super(...arguments),ee(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"})}}let pd=class extends To{constructor(e,r){super("w:ftr",r),ee(this,"refId"),this.refId=e,r||this.root.push(new dd({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(e){this.root.push(e)}};class md{constructor(e,r,i){ee(this,"footer"),ee(this,"relationships"),this.media=e,this.footer=new pd(r,i),this.relationships=new ft}add(e){this.footer.add(e)}addChildElement(e){this.footer.addChildElement(e)}get View(){return this.footer}get Relationships(){return this.relationships}get Media(){return this.media}}class wd extends fe{constructor(){super(...arguments),ee(this,"xmlKeys",{type:"w:type",id:"w:id"})}}class gd extends X{constructor(){super("w:footnoteRef")}}class yd extends Oe{constructor(){super({style:"FootnoteReference"}),this.root.push(new gd)}}const Ba={SEPERATOR:"separator",CONTINUATION_SEPERATOR:"continuationSeparator"};class ri extends X{constructor(e){super("w:footnote"),this.root.push(new wd({type:e.type,id:e.id}));for(let r=0;r<e.children.length;r++){const i=e.children[r];r===0&&i.addRunToFront(new yd),this.root.push(i)}}}class vd extends X{constructor(){super("w:continuationSeparator")}}class bd extends Oe{constructor(){super({}),this.root.push(new vd)}}class _d extends X{constructor(){super("w:separator")}}class Ed extends Oe{constructor(){super({}),this.root.push(new _d)}}class xd extends fe{constructor(){super(...arguments),ee(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 Td extends X{constructor(){super("w:footnotes"),this.root.push(new xd({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 e=new ri({id:-1,type:Ba.SEPERATOR,children:[new ht({spacing:{after:0,line:240,lineRule:pi.AUTO},children:[new Ed]})]});this.root.push(e);const r=new ri({id:0,type:Ba.CONTINUATION_SEPERATOR,children:[new ht({spacing:{after:0,line:240,lineRule:pi.AUTO},children:[new bd]})]});this.root.push(r)}createFootNote(e,r){const i=new ri({id:e,children:r});this.root.push(i)}}class Ad{constructor(){ee(this,"footnotess"),ee(this,"relationships"),this.footnotess=new Td,this.relationships=new ft}get View(){return this.footnotess}get Relationships(){return this.relationships}}class Sd extends fe{constructor(){super(...arguments),ee(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"})}}let Rd=class extends To{constructor(e,r){super("w:hdr",r),ee(this,"refId"),this.refId=e,r||this.root.push(new Sd({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(e){this.root.push(e)}};class Id{constructor(e,r,i){ee(this,"header"),ee(this,"relationships"),this.media=e,this.header=new Rd(r,i),this.relationships=new ft}add(e){return this.header.add(e),this}addChildElement(e){this.header.addChildElement(e)}get View(){return this.header}get Relationships(){return this.relationships}get Media(){return this.media}}class su{constructor(){ee(this,"map"),this.map=new Map}addImage(e,r){this.map.set(e,r)}get Array(){return Array.from(this.map.values())}}const qw="",Ve={DECIMAL:"decimal",UPPER_ROMAN:"upperRoman",LOWER_ROMAN:"lowerRoman",UPPER_LETTER:"upperLetter",LOWER_LETTER:"lowerLetter",ORDINAL:"ordinal",CARDINAL_TEXT:"cardinalText",ORDINAL_TEXT:"ordinalText",HEX:"hex",CHICAGO:"chicago",IDEOGRAPH__DIGITAL:"ideographDigital",JAPANESE_COUNTING:"japaneseCounting",AIUEO:"aiueo",IROHA:"iroha",DECIMAL_FULL_WIDTH:"decimalFullWidth",DECIMAL_HALF_WIDTH:"decimalHalfWidth",JAPANESE_LEGAL:"japaneseLegal",JAPANESE_DIGITAL_TEN_THOUSAND:"japaneseDigitalTenThousand",DECIMAL_ENCLOSED_CIRCLE:"decimalEnclosedCircle",DECIMAL_FULL_WIDTH2:"decimalFullWidth2",AIUEO_FULL_WIDTH:"aiueoFullWidth",IROHA_FULL_WIDTH:"irohaFullWidth",DECIMAL_ZERO:"decimalZero",BULLET:"bullet",GANADA:"ganada",CHOSUNG:"chosung",DECIMAL_ENCLOSED_FULLSTOP:"decimalEnclosedFullstop",DECIMAL_ENCLOSED_PARENTHESES:"decimalEnclosedParen",DECIMAL_ENCLOSED_CIRCLE_CHINESE:"decimalEnclosedCircleChinese",IDEOGRAPH_ENCLOSED_CIRCLE:"ideographEnclosedCircle",IDEOGRAPH_TRADITIONAL:"ideographTraditional",IDEOGRAPH_ZODIAC:"ideographZodiac",IDEOGRAPH_ZODIAC_TRADITIONAL:"ideographZodiacTraditional",TAIWANESE_COUNTING:"taiwaneseCounting",IDEOGRAPH_LEGAL_TRADITIONAL:"ideographLegalTraditional",TAIWANESE_COUNTING_THOUSAND:"taiwaneseCountingThousand",TAIWANESE_DIGITAL:"taiwaneseDigital",CHINESE_COUNTING:"chineseCounting",CHINESE_LEGAL_SIMPLIFIED:"chineseLegalSimplified",CHINESE_COUNTING_THOUSAND:"chineseCountingThousand",KOREAN_DIGITAL:"koreanDigital",KOREAN_COUNTING:"koreanCounting",KOREAN_LEGAL:"koreanLegal",KOREAN_DIGITAL2:"koreanDigital2",VIETNAMESE_COUNTING:"vietnameseCounting",RUSSIAN_LOWER:"russianLower",RUSSIAN_UPPER:"russianUpper",NONE:"none",NUMBER_IN_DASH:"numberInDash",HEBREW1:"hebrew1",HEBREW2:"hebrew2",ARABIC_ALPHA:"arabicAlpha",ARABIC_ABJAD:"arabicAbjad",HINDI_VOWELS:"hindiVowels",HINDI_CONSONANTS:"hindiConsonants",HINDI_NUMBERS:"hindiNumbers",HINDI_COUNTING:"hindiCounting",THAI_LETTERS:"thaiLetters",THAI_NUMBERS:"thaiNumbers",THAI_COUNTING:"thaiCounting",BAHT_TEXT:"bahtText",DOLLAR_TEXT:"dollarText",CUSTOM:"custom"};class Nd extends fe{constructor(){super(...arguments),ee(this,"xmlKeys",{ilvl:"w:ilvl",tentative:"w15:tentative"})}}class kd extends X{constructor(e){super("w:numFmt"),this.root.push(new _e({val:e}))}}class Cd extends X{constructor(e){super("w:lvlText"),this.root.push(new _e({val:e}))}}class Od extends X{constructor(e){super("w:lvlJc"),this.root.push(new _e({val:e}))}}const Kw={NOTHING:"nothing",SPACE:"space",TAB:"tab"};class Dd extends X{constructor(e){super("w:suff"),this.root.push(new _e({val:e}))}}class Pd extends X{constructor(){super("w:isLgl")}}class au extends X{constructor({level:e,format:r,text:i,alignment:o=Me.START,start:u=1,style:f,suffix:n,isLegalNumberingStyle:h}){if(super("w:lvl"),ee(this,"paragraphProperties"),ee(this,"runProperties"),this.root.push(new Ct("w:start",Ae(u))),r&&this.root.push(new kd(r)),n&&this.root.push(new Dd(n)),h&&this.root.push(new Pd),i&&this.root.push(new Cd(i)),this.root.push(new Od(o)),this.paragraphProperties=new ct(f&&f.paragraph),this.runProperties=new rt(f&&f.run),this.root.push(this.paragraphProperties),this.root.push(this.runProperties),e>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 Nd({ilvl:Ae(e),tentative:1}))}}class Ld extends au{}class Vw extends au{}class Fd extends X{constructor(e){super("w:multiLevelType"),this.root.push(new _e({val:e}))}}class Bd extends fe{constructor(){super(...arguments),ee(this,"xmlKeys",{abstractNumId:"w:abstractNumId",restartNumberingAfterBreak:"w15:restartNumberingAfterBreak"})}}class Ma extends X{constructor(e,r){super("w:abstractNum"),ee(this,"id"),this.root.push(new Bd({abstractNumId:Ae(e),restartNumberingAfterBreak:0})),this.root.push(new Fd("hybridMultilevel")),this.id=e;for(const i of r)this.root.push(new Ld(i))}}class Md extends X{constructor(e){super("w:abstractNumId"),this.root.push(new _e({val:e}))}}class Ud extends fe{constructor(){super(...arguments),ee(this,"xmlKeys",{numId:"w:numId"})}}class Ua extends X{constructor(e){if(super("w:num"),ee(this,"numId"),ee(this,"reference"),ee(this,"instance"),this.numId=e.numId,this.reference=e.reference,this.instance=e.instance,this.root.push(new Ud({numId:Ae(e.numId)})),this.root.push(new Md(Ae(e.abstractNumId))),e.overrideLevels&&e.overrideLevels.length)for(const r of e.overrideLevels)this.root.push(new Wd(r.num,r.start))}}class Hd extends fe{constructor(){super(...arguments),ee(this,"xmlKeys",{ilvl:"w:ilvl"})}}class Wd extends X{constructor(e,r){super("w:lvlOverride"),this.root.push(new Hd({ilvl:e})),r!==void 0&&this.root.push(new zd(r))}}class jd extends fe{constructor(){super(...arguments),ee(this,"xmlKeys",{val:"w:val"})}}class zd extends X{constructor(e){super("w:startOverride"),this.root.push(new jd({val:e}))}}class Gd extends X{constructor(e){super("w:numbering"),ee(this,"abstractNumberingMap",new Map),ee(this,"concreteNumberingMap",new Map),ee(this,"referenceConfigMap",new Map),ee(this,"abstractNumUniqueNumericId",dc()),ee(this,"concreteNumUniqueNumericId",pc()),this.root.push(new cr(["wpc","mc","o","r","m","v","wp14","wp","w10","w","w14","w15","wpg","wpi","wne","wps"],"w14 w15 wp14"));const r=new Ma(this.abstractNumUniqueNumericId(),[{level:0,format:Ve.BULLET,text:"●",alignment:Me.LEFT,style:{paragraph:{indent:{left:Pe(.5),hanging:Pe(.25)}}}},{level:1,format:Ve.BULLET,text:"○",alignment:Me.LEFT,style:{paragraph:{indent:{left:Pe(1),hanging:Pe(.25)}}}},{level:2,format:Ve.BULLET,text:"■",alignment:Me.LEFT,style:{paragraph:{indent:{left:2160,hanging:Pe(.25)}}}},{level:3,format:Ve.BULLET,text:"●",alignment:Me.LEFT,style:{paragraph:{indent:{left:2880,hanging:Pe(.25)}}}},{level:4,format:Ve.BULLET,text:"○",alignment:Me.LEFT,style:{paragraph:{indent:{left:3600,hanging:Pe(.25)}}}},{level:5,format:Ve.BULLET,text:"■",alignment:Me.LEFT,style:{paragraph:{indent:{left:4320,hanging:Pe(.25)}}}},{level:6,format:Ve.BULLET,text:"●",alignment:Me.LEFT,style:{paragraph:{indent:{left:5040,hanging:Pe(.25)}}}},{level:7,format:Ve.BULLET,text:"●",alignment:Me.LEFT,style:{paragraph:{indent:{left:5760,hanging:Pe(.25)}}}},{level:8,format:Ve.BULLET,text:"●",alignment:Me.LEFT,style:{paragraph:{indent:{left:6480,hanging:Pe(.25)}}}}]);this.concreteNumberingMap.set("default-bullet-numbering",new Ua({numId:1,abstractNumId:r.id,reference:"default-bullet-numbering",instance:0,overrideLevels:[{num:0,start:1}]})),this.abstractNumberingMap.set("default-bullet-numbering",r);for(const i of e.config)this.abstractNumberingMap.set(i.reference,new Ma(this.abstractNumUniqueNumericId(),i.levels)),this.referenceConfigMap.set(i.reference,i.levels)}prepForXml(e){for(const r of this.abstractNumberingMap.values())this.root.push(r);for(const r of this.concreteNumberingMap.values())this.root.push(r);return super.prepForXml(e)}createConcreteNumberingInstance(e,r){const i=this.abstractNumberingMap.get(e);if(!i)return;const o=`${e}-${r}`;if(this.concreteNumberingMap.has(o))return;const u=this.referenceConfigMap.get(e),f=u&&u[0].start,n={numId:this.concreteNumUniqueNumericId(),abstractNumId:i.id,reference:e,instance:r,overrideLevels:[f&&Number.isInteger(f)?{num:0,start:f}:{num:0,start:1}]};this.concreteNumberingMap.set(o,new Ua(n))}get ConcreteNumbering(){return Array.from(this.concreteNumberingMap.values())}get ReferenceConfig(){return Array.from(this.referenceConfigMap.values())}}class qd extends fe{constructor(){super(...arguments),ee(this,"xmlKeys",{version:"w:val",name:"w:name",uri:"w:uri"})}}class Kd extends X{constructor(e){super("w:compatSetting"),this.root.push(new qd({version:e,uri:"http://schemas.microsoft.com/office/word",name:"compatibilityMode"}))}}class Vd extends X{constructor(e){super("w:compat"),e.version&&this.root.push(new Kd(e.version)),e.useSingleBorderforContiguousCells&&this.root.push(new le("w:useSingleBorderforContiguousCells",e.useSingleBorderforContiguousCells)),e.wordPerfectJustification&&this.root.push(new le("w:wpJustification",e.wordPerfectJustification)),e.noTabStopForHangingIndent&&this.root.push(new le("w:noTabHangInd",e.noTabStopForHangingIndent)),e.noLeading&&this.root.push(new le("w:noLeading",e.noLeading)),e.spaceForUnderline&&this.root.push(new le("w:spaceForUL",e.spaceForUnderline)),e.noColumnBalance&&this.root.push(new le("w:noColumnBalance",e.noColumnBalance)),e.balanceSingleByteDoubleByteWidth&&this.root.push(new le("w:balanceSingleByteDoubleByteWidth",e.balanceSingleByteDoubleByteWidth)),e.noExtraLineSpacing&&this.root.push(new le("w:noExtraLineSpacing",e.noExtraLineSpacing)),e.doNotLeaveBackslashAlone&&this.root.push(new le("w:doNotLeaveBackslashAlone",e.doNotLeaveBackslashAlone)),e.underlineTrailingSpaces&&this.root.push(new le("w:ulTrailSpace",e.underlineTrailingSpaces)),e.doNotExpandShiftReturn&&this.root.push(new le("w:doNotExpandShiftReturn",e.doNotExpandShiftReturn)),e.spacingInWholePoints&&this.root.push(new le("w:spacingInWholePoints",e.spacingInWholePoints)),e.lineWrapLikeWord6&&this.root.push(new le("w:lineWrapLikeWord6",e.lineWrapLikeWord6)),e.printBodyTextBeforeHeader&&this.root.push(new le("w:printBodyTextBeforeHeader",e.printBodyTextBeforeHeader)),e.printColorsBlack&&this.root.push(new le("w:printColBlack",e.printColorsBlack)),e.spaceWidth&&this.root.push(new le("w:wpSpaceWidth",e.spaceWidth)),e.showBreaksInFrames&&this.root.push(new le("w:showBreaksInFrames",e.showBreaksInFrames)),e.subFontBySize&&this.root.push(new le("w:subFontBySize",e.subFontBySize)),e.suppressBottomSpacing&&this.root.push(new le("w:suppressBottomSpacing",e.suppressBottomSpacing)),e.suppressTopSpacing&&this.root.push(new le("w:suppressTopSpacing",e.suppressTopSpacing)),e.suppressSpacingAtTopOfPage&&this.root.push(new le("w:suppressSpacingAtTopOfPage",e.suppressSpacingAtTopOfPage)),e.suppressTopSpacingWP&&this.root.push(new le("w:suppressTopSpacingWP",e.suppressTopSpacingWP)),e.suppressSpBfAfterPgBrk&&this.root.push(new le("w:suppressSpBfAfterPgBrk",e.suppressSpBfAfterPgBrk)),e.swapBordersFacingPages&&this.root.push(new le("w:swapBordersFacingPages",e.swapBordersFacingPages)),e.convertMailMergeEsc&&this.root.push(new le("w:convMailMergeEsc",e.convertMailMergeEsc)),e.truncateFontHeightsLikeWP6&&this.root.push(new le("w:truncateFontHeightsLikeWP6",e.truncateFontHeightsLikeWP6)),e.macWordSmallCaps&&this.root.push(new le("w:mwSmallCaps",e.macWordSmallCaps)),e.usePrinterMetrics&&this.root.push(new le("w:usePrinterMetrics",e.usePrinterMetrics)),e.doNotSuppressParagraphBorders&&this.root.push(new le("w:doNotSuppressParagraphBorders",e.doNotSuppressParagraphBorders)),e.wrapTrailSpaces&&this.root.push(new le("w:wrapTrailSpaces",e.wrapTrailSpaces)),e.footnoteLayoutLikeWW8&&this.root.push(new le("w:footnoteLayoutLikeWW8",e.footnoteLayoutLikeWW8)),e.shapeLayoutLikeWW8&&this.root.push(new le("w:shapeLayoutLikeWW8",e.shapeLayoutLikeWW8)),e.alignTablesRowByRow&&this.root.push(new le("w:alignTablesRowByRow",e.alignTablesRowByRow)),e.forgetLastTabAlignment&&this.root.push(new le("w:forgetLastTabAlignment",e.forgetLastTabAlignment)),e.adjustLineHeightInTable&&this.root.push(new le("w:adjustLineHeightInTable",e.adjustLineHeightInTable)),e.autoSpaceLikeWord95&&this.root.push(new le("w:autoSpaceLikeWord95",e.autoSpaceLikeWord95)),e.noSpaceRaiseLower&&this.root.push(new le("w:noSpaceRaiseLower",e.noSpaceRaiseLower)),e.doNotUseHTMLParagraphAutoSpacing&&this.root.push(new le("w:doNotUseHTMLParagraphAutoSpacing",e.doNotUseHTMLParagraphAutoSpacing)),e.layoutRawTableWidth&&this.root.push(new le("w:layoutRawTableWidth",e.layoutRawTableWidth)),e.layoutTableRowsApart&&this.root.push(new le("w:layoutTableRowsApart",e.layoutTableRowsApart)),e.useWord97LineBreakRules&&this.root.push(new le("w:useWord97LineBreakRules",e.useWord97LineBreakRules)),e.doNotBreakWrappedTables&&this.root.push(new le("w:doNotBreakWrappedTables",e.doNotBreakWrappedTables)),e.doNotSnapToGridInCell&&this.root.push(new le("w:doNotSnapToGridInCell",e.doNotSnapToGridInCell)),e.selectFieldWithFirstOrLastCharacter&&this.root.push(new le("w:selectFldWithFirstOrLastChar",e.selectFieldWithFirstOrLastCharacter)),e.applyBreakingRules&&this.root.push(new le("w:applyBreakingRules",e.applyBreakingRules)),e.doNotWrapTextWithPunctuation&&this.root.push(new le("w:doNotWrapTextWithPunct",e.doNotWrapTextWithPunctuation)),e.doNotUseEastAsianBreakRules&&this.root.push(new le("w:doNotUseEastAsianBreakRules",e.doNotUseEastAsianBreakRules)),e.useWord2002TableStyleRules&&this.root.push(new le("w:useWord2002TableStyleRules",e.useWord2002TableStyleRules)),e.growAutofit&&this.root.push(new le("w:growAutofit",e.growAutofit)),e.useFELayout&&this.root.push(new le("w:useFELayout",e.useFELayout)),e.useNormalStyleForList&&this.root.push(new le("w:useNormalStyleForList",e.useNormalStyleForList)),e.doNotUseIndentAsNumberingTabStop&&this.root.push(new le("w:doNotUseIndentAsNumberingTabStop",e.doNotUseIndentAsNumberingTabStop)),e.useAlternateEastAsianLineBreakRules&&this.root.push(new le("w:useAltKinsokuLineBreakRules",e.useAlternateEastAsianLineBreakRules)),e.allowSpaceOfSameStyleInTable&&this.root.push(new le("w:allowSpaceOfSameStyleInTable",e.allowSpaceOfSameStyleInTable)),e.doNotSuppressIndentation&&this.root.push(new le("w:doNotSuppressIndentation",e.doNotSuppressIndentation)),e.doNotAutofitConstrainedTables&&this.root.push(new le("w:doNotAutofitConstrainedTables",e.doNotAutofitConstrainedTables)),e.autofitToFirstFixedWidthCell&&this.root.push(new le("w:autofitToFirstFixedWidthCell",e.autofitToFirstFixedWidthCell)),e.underlineTabInNumberingList&&this.root.push(new le("w:underlineTabInNumList",e.underlineTabInNumberingList)),e.displayHangulFixedWidth&&this.root.push(new le("w:displayHangulFixedWidth",e.displayHangulFixedWidth)),e.splitPgBreakAndParaMark&&this.root.push(new le("w:splitPgBreakAndParaMark",e.splitPgBreakAndParaMark)),e.doNotVerticallyAlignCellWithSp&&this.root.push(new le("w:doNotVertAlignCellWithSp",e.doNotVerticallyAlignCellWithSp)),e.doNotBreakConstrainedForcedTable&&this.root.push(new le("w:doNotBreakConstrainedForcedTable",e.doNotBreakConstrainedForcedTable)),e.ignoreVerticalAlignmentInTextboxes&&this.root.push(new le("w:doNotVertAlignInTxbx",e.ignoreVerticalAlignmentInTextboxes)),e.useAnsiKerningPairs&&this.root.push(new le("w:useAnsiKerningPairs",e.useAnsiKerningPairs)),e.cachedColumnBalance&&this.root.push(new le("w:cachedColBalance",e.cachedColumnBalance))}}class $d extends fe{constructor(){super(...arguments),ee(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 Xd extends X{constructor(e){var r,i,o,u,f,n,h,_;super("w:settings"),this.root.push(new $d({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 le("w:displayBackgroundShape",!0)),e.trackRevisions!==void 0&&this.root.push(new le("w:trackRevisions",e.trackRevisions)),e.evenAndOddHeaders!==void 0&&this.root.push(new le("w:evenAndOddHeaders",e.evenAndOddHeaders)),e.updateFields!==void 0&&this.root.push(new le("w:updateFields",e.updateFields)),e.defaultTabStop!==void 0&&this.root.push(new Ct("w:defaultTabStop",e.defaultTabStop)),((r=e.hyphenation)==null?void 0:r.autoHyphenation)!==void 0&&this.root.push(new le("w:autoHyphenation",e.hyphenation.autoHyphenation)),((i=e.hyphenation)==null?void 0:i.hyphenationZone)!==void 0&&this.root.push(new Ct("w:hyphenationZone",e.hyphenation.hyphenationZone)),((o=e.hyphenation)==null?void 0:o.consecutiveHyphenLimit)!==void 0&&this.root.push(new Ct("w:consecutiveHyphenLimit",e.hyphenation.consecutiveHyphenLimit)),((u=e.hyphenation)==null?void 0:u.doNotHyphenateCaps)!==void 0&&this.root.push(new le("w:doNotHyphenateCaps",e.hyphenation.doNotHyphenateCaps)),this.root.push(new Vd(Re(me({},(f=e.compatibility)!=null?f:{}),{version:(_=(h=(n=e.compatibility)==null?void 0:n.version)!=null?h:e.compatibilityModeVersion)!=null?_:15})))}}class ou extends fe{constructor(){super(...arguments),ee(this,"xmlKeys",{val:"w:val"})}}class Zd extends X{constructor(e){super("w:name"),this.root.push(new ou({val:e}))}}class Yd extends X{constructor(e){super("w:uiPriority"),this.root.push(new ou({val:Ae(e)}))}}class Jd extends fe{constructor(){super(...arguments),ee(this,"xmlKeys",{type:"w:type",styleId:"w:styleId",default:"w:default",customStyle:"w:customStyle"})}}class uu extends X{constructor(e,r){super("w:style"),this.root.push(new Jd(e)),r.name&&this.root.push(new Zd(r.name)),r.basedOn&&this.root.push(new et("w:basedOn",r.basedOn)),r.next&&this.root.push(new et("w:next",r.next)),r.link&&this.root.push(new et("w:link",r.link)),r.uiPriority!==void 0&&this.root.push(new Yd(r.uiPriority)),r.semiHidden!==void 0&&this.root.push(new le("w:semiHidden",r.semiHidden)),r.unhideWhenUsed!==void 0&&this.root.push(new le("w:unhideWhenUsed",r.unhideWhenUsed)),r.quickFormat!==void 0&&this.root.push(new le("w:qFormat",r.quickFormat))}}class fr extends uu{constructor(e){super({type:"paragraph",styleId:e.id},e),ee(this,"paragraphProperties"),ee(this,"runProperties"),this.paragraphProperties=new ct(e.paragraph),this.runProperties=new rt(e.run),this.root.push(this.paragraphProperties),this.root.push(this.runProperties)}}class dr extends uu{constructor(e){super({type:"character",styleId:e.id},me({uiPriority:99,unhideWhenUsed:!0},e)),ee(this,"runProperties"),this.runProperties=new rt(e.run),this.root.push(this.runProperties)}}class nt extends fr{constructor(e){super(me({basedOn:"Normal",next:"Normal",quickFormat:!0},e))}}class Qd extends nt{constructor(e){super(me({id:"Title",name:"Title"},e))}}class ep extends nt{constructor(e){super(me({id:"Heading1",name:"Heading 1"},e))}}class tp extends nt{constructor(e){super(me({id:"Heading2",name:"Heading 2"},e))}}class rp extends nt{constructor(e){super(me({id:"Heading3",name:"Heading 3"},e))}}class np extends nt{constructor(e){super(me({id:"Heading4",name:"Heading 4"},e))}}class ip extends nt{constructor(e){super(me({id:"Heading5",name:"Heading 5"},e))}}class sp extends nt{constructor(e){super(me({id:"Heading6",name:"Heading 6"},e))}}class ap extends nt{constructor(e){super(me({id:"Strong",name:"Strong"},e))}}class op extends fr{constructor(e){super(me({id:"ListParagraph",name:"List Paragraph",basedOn:"Normal",quickFormat:!0},e))}}class up extends fr{constructor(e){super(me({id:"FootnoteText",name:"footnote text",link:"FootnoteTextChar",basedOn:"Normal",uiPriority:99,semiHidden:!0,unhideWhenUsed:!0,paragraph:{spacing:{after:0,line:240,lineRule:pi.AUTO}},run:{size:20}},e))}}class lp extends dr{constructor(e){super(me({id:"FootnoteReference",name:"footnote reference",basedOn:"DefaultParagraphFont",semiHidden:!0,run:{superScript:!0}},e))}}class cp extends dr{constructor(e){super(me({id:"FootnoteTextChar",name:"Footnote Text Char",basedOn:"DefaultParagraphFont",link:"FootnoteText",semiHidden:!0,run:{size:20}},e))}}class hp extends dr{constructor(e){super(me({id:"Hyperlink",name:"Hyperlink",basedOn:"DefaultParagraphFont",run:{color:"0563C1",underline:{type:Oo.SINGLE}}},e))}}class yi extends X{constructor(e){if(super("w:styles"),e.initialStyles&&this.root.push(e.initialStyles),e.importedStyles)for(const r of e.importedStyles)this.root.push(r);if(e.paragraphStyles)for(const r of e.paragraphStyles)this.root.push(new fr(r));if(e.characterStyles)for(const r of e.characterStyles)this.root.push(new dr(r))}}class fp extends X{constructor(e){super("w:pPrDefault"),this.root.push(new ct(e))}}class dp extends X{constructor(e){super("w:rPrDefault"),this.root.push(new rt(e))}}class pp extends X{constructor(e){super("w:docDefaults"),ee(this,"runPropertiesDefaults"),ee(this,"paragraphPropertiesDefaults"),this.runPropertiesDefaults=new dp(e.run),this.paragraphPropertiesDefaults=new fp(e.paragraph),this.root.push(this.runPropertiesDefaults),this.root.push(this.paragraphPropertiesDefaults)}}class mp{newInstance(e){const r=rr.xml2js(e,{compact:!1});let i;for(const f of r.elements||[])f.name==="w:styles"&&(i=f);if(i===void 0)throw new Error("can not find styles element");const o=i.elements||[];return new yi({initialStyles:new Al(i.attributes),importedStyles:o.map(f=>Ni(f))})}}class Ha{newInstance(e={}){var r;return{initialStyles:new cr(["mc","r","w","w14","w15"],"w14 w15"),importedStyles:[new pp((r=e.document)!=null?r:{}),new Qd(me({run:{size:56}},e.title)),new ep(me({run:{color:"2E74B5",size:32}},e.heading1)),new tp(me({run:{color:"2E74B5",size:26}},e.heading2)),new rp(me({run:{color:"1F4D78",size:24}},e.heading3)),new np(me({run:{color:"2E74B5",italics:!0}},e.heading4)),new ip(me({run:{color:"2E74B5"}},e.heading5)),new sp(me({run:{color:"1F4D78"}},e.heading6)),new ap(me({run:{bold:!0}},e.strong)),new op(e.listParagraph||{}),new hp(e.hyperlink||{}),new lp(e.footnoteReference||{}),new up(e.footnoteText||{}),new cp(e.footnoteTextChar||{})]}}}class $w{constructor(e){ee(this,"currentRelationshipId",1),ee(this,"documentWrapper"),ee(this,"headers",[]),ee(this,"footers",[]),ee(this,"coreProperties"),ee(this,"numbering"),ee(this,"media"),ee(this,"fileRelationships"),ee(this,"footnotesWrapper"),ee(this,"settings"),ee(this,"contentTypes"),ee(this,"customProperties"),ee(this,"appProperties"),ee(this,"styles"),ee(this,"comments"),ee(this,"fontWrapper");var r,i,o,u,f,n,h,_,E,R,I,w;if(this.coreProperties=new rd(Re(me({},e),{creator:(r=e.creator)!=null?r:"Un-named",revision:(i=e.revision)!=null?i:1,lastModifiedBy:(o=e.lastModifiedBy)!=null?o:"Un-named"})),this.numbering=new Gd(e.numbering?e.numbering:{config:[]}),this.comments=new Sh((u=e.comments)!=null?u:{children:[]}),this.fileRelationships=new ft,this.customProperties=new ud((f=e.customProperties)!=null?f:[]),this.appProperties=new Yf,this.footnotesWrapper=new Ad,this.contentTypes=new td,this.documentWrapper=new Zo({background:e.background}),this.settings=new Xd({compatibilityModeVersion:e.compatabilityModeVersion,compatibility:e.compatibility,evenAndOddHeaders:!!e.evenAndOddHeaderAndFooters,trackRevisions:(n=e.features)==null?void 0:n.trackRevisions,updateFields:(h=e.features)==null?void 0:h.updateFields,defaultTabStop:e.defaultTabStop,hyphenation:{autoHyphenation:(_=e.hyphenation)==null?void 0:_.autoHyphenation,hyphenationZone:(E=e.hyphenation)==null?void 0:E.hyphenationZone,consecutiveHyphenLimit:(R=e.hyphenation)==null?void 0:R.consecutiveHyphenLimit,doNotHyphenateCaps:(I=e.hyphenation)==null?void 0:I.doNotHyphenateCaps}}),this.media=new su,e.externalStyles!==void 0){const A=new mp;this.styles=A.newInstance(e.externalStyles)}else if(e.styles){const v=new Ha().newInstance(e.styles.default);this.styles=new yi(me(me({},v),e.styles))}else{const A=new Ha;this.styles=new yi(A.newInstance())}this.addDefaultRelationships();for(const A of e.sections)this.addSection(A);if(e.footnotes)for(const A in e.footnotes)this.footnotesWrapper.View.createFootNote(parseFloat(A),e.footnotes[A].children);this.fontWrapper=new fd((w=e.fonts)!=null?w:[])}addSection({headers:e={},footers:r={},children:i,properties:o}){this.documentWrapper.View.Body.addSection(Re(me({},o),{headerWrapperGroup:{default:e.default?this.createHeader(e.default):void 0,first:e.first?this.createHeader(e.first):void 0,even:e.even?this.createHeader(e.even):void 0},footerWrapperGroup:{default:r.default?this.createFooter(r.default):void 0,first:r.first?this.createFooter(r.first):void 0,even:r.even?this.createFooter(r.even):void 0}}));for(const u of i)this.documentWrapper.View.add(u)}createHeader(e){const r=new Id(this.media,this.currentRelationshipId++);for(const i of e.options.children)r.add(i);return this.addHeaderToDocument(r),r}createFooter(e){const r=new md(this.media,this.currentRelationshipId++);for(const i of e.options.children)r.add(i);return this.addFooterToDocument(r),r}addHeaderToDocument(e,r=yt.DEFAULT){this.headers.push({header:e,type:r}),this.documentWrapper.Relationships.createRelationship(e.View.ReferenceId,"http://schemas.openxmlformats.org/officeDocument/2006/relationships/header",`header${this.headers.length}.xml`),this.contentTypes.addHeader(this.headers.length)}addFooterToDocument(e,r=yt.DEFAULT){this.footers.push({footer:e,type:r}),this.documentWrapper.Relationships.createRelationship(e.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(e=>e.header)}get Footers(){return this.footers.map(e=>e.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}get FontTable(){return this.fontWrapper}}class wp extends X{constructor(e={}){super("w:instrText"),ee(this,"properties"),this.properties=e,this.root.push(new Ce({space:ke.PRESERVE}));let r="TOC";if(this.properties.captionLabel&&(r=`${r} \\a "${this.properties.captionLabel}"`),this.properties.entriesFromBookmark&&(r=`${r} \\b "${this.properties.entriesFromBookmark}"`),this.properties.captionLabelIncludingNumbers&&(r=`${r} \\c "${this.properties.captionLabelIncludingNumbers}"`),this.properties.sequenceAndPageNumbersSeparator&&(r=`${r} \\d "${this.properties.sequenceAndPageNumbersSeparator}"`),this.properties.tcFieldIdentifier&&(r=`${r} \\f "${this.properties.tcFieldIdentifier}"`),this.properties.hyperlink&&(r=`${r} \\h`),this.properties.tcFieldLevelRange&&(r=`${r} \\l "${this.properties.tcFieldLevelRange}"`),this.properties.pageNumbersEntryLevelsRange&&(r=`${r} \\n "${this.properties.pageNumbersEntryLevelsRange}"`),this.properties.headingStyleRange&&(r=`${r} \\o "${this.properties.headingStyleRange}"`),this.properties.entryAndPageNumberSeparator&&(r=`${r} \\p "${this.properties.entryAndPageNumberSeparator}"`),this.properties.seqFieldIdentifierForPrefix&&(r=`${r} \\s "${this.properties.seqFieldIdentifierForPrefix}"`),this.properties.stylesWithLevels&&this.properties.stylesWithLevels.length){const i=this.properties.stylesWithLevels.map(o=>`${o.styleName},${o.level}`).join(",");r=`${r} \\t "${i}"`}this.properties.useAppliedParagraphOutlineLevel&&(r=`${r} \\u`),this.properties.preserveTabInEntries&&(r=`${r} \\w`),this.properties.preserveNewLineInEntries&&(r=`${r} \\x`),this.properties.hideTabAndPageNumbersInWebView&&(r=`${r} \\z`),this.root.push(r)}}class lu extends X{constructor(){super("w:sdtContent")}}class cu extends X{constructor(e){super("w:sdtPr"),e&&this.root.push(new et("w:alias",e))}}class Xw extends lr{constructor(e="Table of Contents",r){super("w:sdt"),this.root.push(new cu(e));const i=new lu,o=new ht({children:[new Oe({children:[new je(!0),new wp(r),new Ze]})]});i.addChildElement(o);const u=new ht({children:[new Oe({children:[new ze]})]});i.addChildElement(u),this.root.push(i)}}class Zw{constructor(e,r){ee(this,"styleName"),ee(this,"level"),this.styleName=e,this.level=r}}class Yw{constructor(e={children:[]}){ee(this,"options"),this.options=e}}class Jw{constructor(e={children:[]}){ee(this,"options"),this.options=e}}class gp extends fe{constructor(){super(...arguments),ee(this,"xmlKeys",{id:"w:id"})}}class yp extends X{constructor(e){super("w:footnoteReference"),this.root.push(new gp({id:e}))}}class Qw extends Oe{constructor(e){super({style:"FootnoteReference"}),this.root.push(new yp(e))}}class eg extends X{constructor(e){super("w:ins"),this.root.push(new Di({id:e.id,author:e.author,date:e.date})),this.addChildElement(new Qt(e))}}class vp extends X{constructor(){super("w:delInstrText"),this.root.push(new Ce({space:ke.PRESERVE})),this.root.push("PAGE")}}class bp extends X{constructor(){super("w:delInstrText"),this.root.push(new Ce({space:ke.PRESERVE})),this.root.push("NUMPAGES")}}class _p extends X{constructor(){super("w:delInstrText"),this.root.push(new Ce({space:ke.PRESERVE})),this.root.push("SECTIONPAGES")}}class Wa extends X{constructor(e){super("w:delText"),this.root.push(new Ce({space:ke.PRESERVE})),this.root.push(e)}}class tg extends X{constructor(e){super("w:del"),ee(this,"deletedTextRunWrapper"),this.root.push(new Di({id:e.id,author:e.author,date:e.date})),this.deletedTextRunWrapper=new Ep(e),this.addChildElement(this.deletedTextRunWrapper)}}class Ep extends X{constructor(e){if(super("w:r"),this.root.push(new rt(e)),e.children)for(const r of e.children){if(typeof r=="string"){switch(r){case ut.CURRENT:this.root.push(new je),this.root.push(new vp),this.root.push(new Ze),this.root.push(new ze);break;case ut.TOTAL_PAGES:this.root.push(new je),this.root.push(new bp),this.root.push(new Ze),this.root.push(new ze);break;case ut.TOTAL_PAGES_IN_SECTION:this.root.push(new je),this.root.push(new _p),this.root.push(new Ze),this.root.push(new ze);break;default:this.root.push(new Wa(r));break}continue}this.root.push(r)}else e.text&&this.root.push(new Wa(e.text));if(e.break)for(let r=0;r<e.break;r++)this.root.splice(1,0,new Io)}}class ja extends fe{constructor(){super(...arguments),ee(this,"xmlKeys",{val:"w14:val",symbolfont:"w14:font"})}}class ni extends X{constructor(e,r,i){super(e),i?this.root.push(new ja({val:Sl(r),symbolfont:i})):this.root.push(new ja({val:r}))}}class xp extends X{constructor(e){var r,i,o,u,f,n,h,_;super("w14:checkbox"),ee(this,"DEFAULT_UNCHECKED_SYMBOL","2610"),ee(this,"DEFAULT_CHECKED_SYMBOL","2612"),ee(this,"DEFAULT_FONT","MS Gothic");const E=e!=null&&e.checked?"1":"0";let R,I;this.root.push(new ni("w14:checked",E)),R=(r=e==null?void 0:e.checkedState)!=null&&r.value?(i=e==null?void 0:e.checkedState)==null?void 0:i.value:this.DEFAULT_CHECKED_SYMBOL,I=(o=e==null?void 0:e.checkedState)!=null&&o.font?(u=e==null?void 0:e.checkedState)==null?void 0:u.font:this.DEFAULT_FONT,this.root.push(new ni("w14:checkedState",R,I)),R=(f=e==null?void 0:e.uncheckedState)!=null&&f.value?(n=e==null?void 0:e.uncheckedState)==null?void 0:n.value:this.DEFAULT_UNCHECKED_SYMBOL,I=(h=e==null?void 0:e.uncheckedState)!=null&&h.font?(_=e==null?void 0:e.uncheckedState)==null?void 0:_.font:this.DEFAULT_FONT,this.root.push(new ni("w14:uncheckedState",R,I))}}class rg extends X{constructor(e){var r,i,o,u;super("w:sdt"),ee(this,"DEFAULT_UNCHECKED_SYMBOL","2610"),ee(this,"DEFAULT_CHECKED_SYMBOL","2612"),ee(this,"DEFAULT_FONT","MS Gothic");const f=new cu(e==null?void 0:e.alias);f.addChildElement(new xp(e)),this.root.push(f);const n=new lu,h=(r=e==null?void 0:e.checkedState)==null?void 0:r.font,_=(i=e==null?void 0:e.checkedState)==null?void 0:i.value,E=(o=e==null?void 0:e.uncheckedState)==null?void 0:o.font,R=(u=e==null?void 0:e.uncheckedState)==null?void 0:u.value;let I,w;e!=null&&e.checked?(I=h||this.DEFAULT_FONT,w=_||this.DEFAULT_CHECKED_SYMBOL):(I=E||this.DEFAULT_FONT,w=R||this.DEFAULT_UNCHECKED_SYMBOL);const A=new ec({char:w,symbolfont:I});n.addChildElement(A),this.root.push(n)}}const Tp=({shape:t})=>new pe({name:"w:pict",children:[t]}),Ap=({children:t=[]})=>new pe({name:"w:txbxContent",children:t}),Sp=({style:t,children:e,inset:r})=>new pe({name:"v:textbox",attributes:{style:{key:"style",value:t},insetMode:{key:"insetmode",value:r?"custom":"auto"},inset:{key:"inset",value:r?`${r.left}, ${r.top}, ${r.right}, ${r.bottom}`:void 0}},children:[Ap({children:e})]}),Rp="#_x0000_t202",Ip={flip:"flip",height:"height",left:"left",marginBottom:"margin-bottom",marginLeft:"margin-left",marginRight:"margin-right",marginTop:"margin-top",positionHorizontal:"mso-position-horizontal",positionHorizontalRelative:"mso-position-horizontal-relative",positionVertical:"mso-position-vertical",positionVerticalRelative:"mso-position-vertical-relative",wrapDistanceBottom:"mso-wrap-distance-bottom",wrapDistanceLeft:"mso-wrap-distance-left",wrapDistanceRight:"mso-wrap-distance-right",wrapDistanceTop:"mso-wrap-distance-top",wrapEdited:"mso-wrap-edited",wrapStyle:"mso-wrap-style",position:"position",rotation:"rotation",top:"top",visibility:"visibility",width:"width",zIndex:"z-index"},Np=t=>t?Object.entries(t).map(([e,r])=>`${Ip[e]}:${r}`).join(";"):void 0,kp=({id:t,children:e,type:r=Rp,style:i})=>new pe({name:"v:shape",attributes:{id:{key:"id",value:t},type:{key:"type",value:r},style:{key:"style",value:Np(i)}},children:[Sp({style:"mso-fit-shape-to-text:t;",children:e})]});class ng extends lr{constructor(e){var r=e,{style:i,children:o}=r,u=Tu(r,["style","children"]);super("w:p"),this.root.push(new ct(u)),this.root.push(Tp({shape:kp({children:o,id:ur(),style:i})}))}}var Cp=Si();function Xt(t){throw new Error('Could not dynamically require "'+t+'". Please configure the dynamicRequireTargets or/and ignoreDynamicRequires option of @rollup/plugin-commonjs appropriately for this require call to work.')}var ii={exports:{}},za;function Op(){return za||(za=1,function(t,e){(function(r){t.exports=r()})(function(){return function r(i,o,u){function f(_,E){if(!o[_]){if(!i[_]){var R=typeof Xt=="function"&&Xt;if(!E&&R)return R(_,!0);if(n)return n(_,!0);var I=new Error("Cannot find module '"+_+"'");throw I.code="MODULE_NOT_FOUND",I}var w=o[_]={exports:{}};i[_][0].call(w.exports,function(A){var v=i[_][1][A];return f(v||A)},w,w.exports,r,i,o,u)}return o[_].exports}for(var n=typeof Xt=="function"&&Xt,h=0;h<u.length;h++)f(u[h]);return f}({1:[function(r,i,o){var u=r("./utils"),f=r("./support"),n="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=";o.encode=function(h){for(var _,E,R,I,w,A,v,N=[],l=0,b=h.length,d=b,c=u.getTypeOf(h)!=="string";l<h.length;)d=b-l,R=c?(_=h[l++],E=l<b?h[l++]:0,l<b?h[l++]:0):(_=h.charCodeAt(l++),E=l<b?h.charCodeAt(l++):0,l<b?h.charCodeAt(l++):0),I=_>>2,w=(3&_)<<4|E>>4,A=1<d?(15&E)<<2|R>>6:64,v=2<d?63&R:64,N.push(n.charAt(I)+n.charAt(w)+n.charAt(A)+n.charAt(v));return N.join("")},o.decode=function(h){var _,E,R,I,w,A,v=0,N=0,l="data:";if(h.substr(0,l.length)===l)throw new Error("Invalid base64 input, it looks like a data url.");var b,d=3*(h=h.replace(/[^A-Za-z0-9+/=]/g,"")).length/4;if(h.charAt(h.length-1)===n.charAt(64)&&d--,h.charAt(h.length-2)===n.charAt(64)&&d--,d%1!=0)throw new Error("Invalid base64 input, bad content length.");for(b=f.uint8array?new Uint8Array(0|d):new Array(0|d);v<h.length;)_=n.indexOf(h.charAt(v++))<<2|(I=n.indexOf(h.charAt(v++)))>>4,E=(15&I)<<4|(w=n.indexOf(h.charAt(v++)))>>2,R=(3&w)<<6|(A=n.indexOf(h.charAt(v++))),b[N++]=_,w!==64&&(b[N++]=E),A!==64&&(b[N++]=R);return b}},{"./support":30,"./utils":32}],2:[function(r,i,o){var u=r("./external"),f=r("./stream/DataWorker"),n=r("./stream/Crc32Probe"),h=r("./stream/DataLengthProbe");function _(E,R,I,w,A){this.compressedSize=E,this.uncompressedSize=R,this.crc32=I,this.compression=w,this.compressedContent=A}_.prototype={getContentWorker:function(){var E=new f(u.Promise.resolve(this.compressedContent)).pipe(this.compression.uncompressWorker()).pipe(new h("data_length")),R=this;return E.on("end",function(){if(this.streamInfo.data_length!==R.uncompressedSize)throw new Error("Bug : uncompressed data size mismatch")}),E},getCompressedWorker:function(){return new f(u.Promise.resolve(this.compressedContent)).withStreamInfo("compressedSize",this.compressedSize).withStreamInfo("uncompressedSize",this.uncompressedSize).withStreamInfo("crc32",this.crc32).withStreamInfo("compression",this.compression)}},_.createWorkerFrom=function(E,R,I){return E.pipe(new n).pipe(new h("uncompressedSize")).pipe(R.compressWorker(I)).pipe(new h("compressedSize")).withStreamInfo("compression",R)},i.exports=_},{"./external":6,"./stream/Crc32Probe":25,"./stream/DataLengthProbe":26,"./stream/DataWorker":27}],3:[function(r,i,o){var u=r("./stream/GenericWorker");o.STORE={magic:"\0\0",compressWorker:function(){return new u("STORE compression")},uncompressWorker:function(){return new u("STORE decompression")}},o.DEFLATE=r("./flate")},{"./flate":7,"./stream/GenericWorker":28}],4:[function(r,i,o){var u=r("./utils"),f=function(){for(var n,h=[],_=0;_<256;_++){n=_;for(var E=0;E<8;E++)n=1&n?3988292384^n>>>1:n>>>1;h[_]=n}return h}();i.exports=function(n,h){return n!==void 0&&n.length?u.getTypeOf(n)!=="string"?function(_,E,R,I){var w=f,A=I+R;_^=-1;for(var v=I;v<A;v++)_=_>>>8^w[255&(_^E[v])];return-1^_}(0|h,n,n.length,0):function(_,E,R,I){var w=f,A=I+R;_^=-1;for(var v=I;v<A;v++)_=_>>>8^w[255&(_^E.charCodeAt(v))];return-1^_}(0|h,n,n.length,0):0}},{"./utils":32}],5:[function(r,i,o){o.base64=!1,o.binary=!1,o.dir=!1,o.createFolders=!0,o.date=null,o.compression=null,o.compressionOptions=null,o.comment=null,o.unixPermissions=null,o.dosPermissions=null},{}],6:[function(r,i,o){var u=null;u=typeof Promise<"u"?Promise:r("lie"),i.exports={Promise:u}},{lie:37}],7:[function(r,i,o){var u=typeof Uint8Array<"u"&&typeof Uint16Array<"u"&&typeof Uint32Array<"u",f=r("pako"),n=r("./utils"),h=r("./stream/GenericWorker"),_=u?"uint8array":"array";function E(R,I){h.call(this,"FlateWorker/"+R),this._pako=null,this._pakoAction=R,this._pakoOptions=I,this.meta={}}o.magic="\b\0",n.inherits(E,h),E.prototype.processChunk=function(R){this.meta=R.meta,this._pako===null&&this._createPako(),this._pako.push(n.transformTo(_,R.data),!1)},E.prototype.flush=function(){h.prototype.flush.call(this),this._pako===null&&this._createPako(),this._pako.push([],!0)},E.prototype.cleanUp=function(){h.prototype.cleanUp.call(this),this._pako=null},E.prototype._createPako=function(){this._pako=new f[this._pakoAction]({raw:!0,level:this._pakoOptions.level||-1});var R=this;this._pako.onData=function(I){R.push({data:I,meta:R.meta})}},o.compressWorker=function(R){return new E("Deflate",R)},o.uncompressWorker=function(){return new E("Inflate",{})}},{"./stream/GenericWorker":28,"./utils":32,pako:38}],8:[function(r,i,o){function u(w,A){var v,N="";for(v=0;v<A;v++)N+=String.fromCharCode(255&w),w>>>=8;return N}function f(w,A,v,N,l,b){var d,c,S=w.file,L=w.compression,F=b!==_.utf8encode,W=n.transformTo("string",b(S.name)),k=n.transformTo("string",_.utf8encode(S.name)),Z=S.comment,ue=n.transformTo("string",b(Z)),C=n.transformTo("string",_.utf8encode(Z)),U=k.length!==S.name.length,g=C.length!==Z.length,q="",te="",z="",se=S.dir,re=S.date,ce={crc32:0,compressedSize:0,uncompressedSize:0};A&&!v||(ce.crc32=w.crc32,ce.compressedSize=w.compressedSize,ce.uncompressedSize=w.uncompressedSize);var V=0;A&&(V|=8),F||!U&&!g||(V|=2048);var D=0,$=0;se&&(D|=16),l==="UNIX"?($=798,D|=function(ne,K){var x=ne;return ne||(x=K?16893:33204),(65535&x)<<16}(S.unixPermissions,se)):($=20,D|=function(ne){return 63&(ne||0)}(S.dosPermissions)),d=re.getUTCHours(),d<<=6,d|=re.getUTCMinutes(),d<<=5,d|=re.getUTCSeconds()/2,c=re.getUTCFullYear()-1980,c<<=4,c|=re.getUTCMonth()+1,c<<=5,c|=re.getUTCDate(),U&&(te=u(1,1)+u(E(W),4)+k,q+="up"+u(te.length,2)+te),g&&(z=u(1,1)+u(E(ue),4)+C,q+="uc"+u(z.length,2)+z);var Y="";return Y+=`
|
|
26
|
+
\0`,Y+=u(V,2),Y+=L.magic,Y+=u(d,2),Y+=u(c,2),Y+=u(ce.crc32,4),Y+=u(ce.compressedSize,4),Y+=u(ce.uncompressedSize,4),Y+=u(W.length,2),Y+=u(q.length,2),{fileRecord:R.LOCAL_FILE_HEADER+Y+W+q,dirRecord:R.CENTRAL_FILE_HEADER+u($,2)+Y+u(ue.length,2)+"\0\0\0\0"+u(D,4)+u(N,4)+W+q+ue}}var n=r("../utils"),h=r("../stream/GenericWorker"),_=r("../utf8"),E=r("../crc32"),R=r("../signature");function I(w,A,v,N){h.call(this,"ZipFileWorker"),this.bytesWritten=0,this.zipComment=A,this.zipPlatform=v,this.encodeFileName=N,this.streamFiles=w,this.accumulate=!1,this.contentBuffer=[],this.dirRecords=[],this.currentSourceOffset=0,this.entriesCount=0,this.currentFile=null,this._sources=[]}n.inherits(I,h),I.prototype.push=function(w){var A=w.meta.percent||0,v=this.entriesCount,N=this._sources.length;this.accumulate?this.contentBuffer.push(w):(this.bytesWritten+=w.data.length,h.prototype.push.call(this,{data:w.data,meta:{currentFile:this.currentFile,percent:v?(A+100*(v-N-1))/v:100}}))},I.prototype.openedSource=function(w){this.currentSourceOffset=this.bytesWritten,this.currentFile=w.file.name;var A=this.streamFiles&&!w.file.dir;if(A){var v=f(w,A,!1,this.currentSourceOffset,this.zipPlatform,this.encodeFileName);this.push({data:v.fileRecord,meta:{percent:0}})}else this.accumulate=!0},I.prototype.closedSource=function(w){this.accumulate=!1;var A=this.streamFiles&&!w.file.dir,v=f(w,A,!0,this.currentSourceOffset,this.zipPlatform,this.encodeFileName);if(this.dirRecords.push(v.dirRecord),A)this.push({data:function(N){return R.DATA_DESCRIPTOR+u(N.crc32,4)+u(N.compressedSize,4)+u(N.uncompressedSize,4)}(w),meta:{percent:100}});else for(this.push({data:v.fileRecord,meta:{percent:0}});this.contentBuffer.length;)this.push(this.contentBuffer.shift());this.currentFile=null},I.prototype.flush=function(){for(var w=this.bytesWritten,A=0;A<this.dirRecords.length;A++)this.push({data:this.dirRecords[A],meta:{percent:100}});var v=this.bytesWritten-w,N=function(l,b,d,c,S){var L=n.transformTo("string",S(c));return R.CENTRAL_DIRECTORY_END+"\0\0\0\0"+u(l,2)+u(l,2)+u(b,4)+u(d,4)+u(L.length,2)+L}(this.dirRecords.length,v,w,this.zipComment,this.encodeFileName);this.push({data:N,meta:{percent:100}})},I.prototype.prepareNextSource=function(){this.previous=this._sources.shift(),this.openedSource(this.previous.streamInfo),this.isPaused?this.previous.pause():this.previous.resume()},I.prototype.registerPrevious=function(w){this._sources.push(w);var A=this;return w.on("data",function(v){A.processChunk(v)}),w.on("end",function(){A.closedSource(A.previous.streamInfo),A._sources.length?A.prepareNextSource():A.end()}),w.on("error",function(v){A.error(v)}),this},I.prototype.resume=function(){return!!h.prototype.resume.call(this)&&(!this.previous&&this._sources.length?(this.prepareNextSource(),!0):this.previous||this._sources.length||this.generatedError?void 0:(this.end(),!0))},I.prototype.error=function(w){var A=this._sources;if(!h.prototype.error.call(this,w))return!1;for(var v=0;v<A.length;v++)try{A[v].error(w)}catch{}return!0},I.prototype.lock=function(){h.prototype.lock.call(this);for(var w=this._sources,A=0;A<w.length;A++)w[A].lock()},i.exports=I},{"../crc32":4,"../signature":23,"../stream/GenericWorker":28,"../utf8":31,"../utils":32}],9:[function(r,i,o){var u=r("../compressions"),f=r("./ZipFileWorker");o.generateWorker=function(n,h,_){var E=new f(h.streamFiles,_,h.platform,h.encodeFileName),R=0;try{n.forEach(function(I,w){R++;var A=function(b,d){var c=b||d,S=u[c];if(!S)throw new Error(c+" is not a valid compression method !");return S}(w.options.compression,h.compression),v=w.options.compressionOptions||h.compressionOptions||{},N=w.dir,l=w.date;w._compressWorker(A,v).withStreamInfo("file",{name:I,dir:N,date:l,comment:w.comment||"",unixPermissions:w.unixPermissions,dosPermissions:w.dosPermissions}).pipe(E)}),E.entriesCount=R}catch(I){E.error(I)}return E}},{"../compressions":3,"./ZipFileWorker":8}],10:[function(r,i,o){function u(){if(!(this instanceof u))return new u;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 f=new u;for(var n in this)typeof this[n]!="function"&&(f[n]=this[n]);return f}}(u.prototype=r("./object")).loadAsync=r("./load"),u.support=r("./support"),u.defaults=r("./defaults"),u.version="3.10.1",u.loadAsync=function(f,n){return new u().loadAsync(f,n)},u.external=r("./external"),i.exports=u},{"./defaults":5,"./external":6,"./load":11,"./object":15,"./support":30}],11:[function(r,i,o){var u=r("./utils"),f=r("./external"),n=r("./utf8"),h=r("./zipEntries"),_=r("./stream/Crc32Probe"),E=r("./nodejsUtils");function R(I){return new f.Promise(function(w,A){var v=I.decompressed.getContentWorker().pipe(new _);v.on("error",function(N){A(N)}).on("end",function(){v.streamInfo.crc32!==I.decompressed.crc32?A(new Error("Corrupted zip : CRC32 mismatch")):w()}).resume()})}i.exports=function(I,w){var A=this;return w=u.extend(w||{},{base64:!1,checkCRC32:!1,optimizedBinaryString:!1,createFolders:!1,decodeFileName:n.utf8decode}),E.isNode&&E.isStream(I)?f.Promise.reject(new Error("JSZip can't accept a stream when loading a zip file.")):u.prepareContent("the loaded zip file",I,!0,w.optimizedBinaryString,w.base64).then(function(v){var N=new h(w);return N.load(v),N}).then(function(v){var N=[f.Promise.resolve(v)],l=v.files;if(w.checkCRC32)for(var b=0;b<l.length;b++)N.push(R(l[b]));return f.Promise.all(N)}).then(function(v){for(var N=v.shift(),l=N.files,b=0;b<l.length;b++){var d=l[b],c=d.fileNameStr,S=u.resolve(d.fileNameStr);A.file(S,d.decompressed,{binary:!0,optimizedBinaryString:!0,date:d.date,dir:d.dir,comment:d.fileCommentStr.length?d.fileCommentStr:null,unixPermissions:d.unixPermissions,dosPermissions:d.dosPermissions,createFolders:w.createFolders}),d.dir||(A.file(S).unsafeOriginalName=c)}return N.zipComment.length&&(A.comment=N.zipComment),A})}},{"./external":6,"./nodejsUtils":14,"./stream/Crc32Probe":25,"./utf8":31,"./utils":32,"./zipEntries":33}],12:[function(r,i,o){var u=r("../utils"),f=r("../stream/GenericWorker");function n(h,_){f.call(this,"Nodejs stream input adapter for "+h),this._upstreamEnded=!1,this._bindStream(_)}u.inherits(n,f),n.prototype._bindStream=function(h){var _=this;(this._stream=h).pause(),h.on("data",function(E){_.push({data:E,meta:{percent:0}})}).on("error",function(E){_.isPaused?this.generatedError=E:_.error(E)}).on("end",function(){_.isPaused?_._upstreamEnded=!0:_.end()})},n.prototype.pause=function(){return!!f.prototype.pause.call(this)&&(this._stream.pause(),!0)},n.prototype.resume=function(){return!!f.prototype.resume.call(this)&&(this._upstreamEnded?this.end():this._stream.resume(),!0)},i.exports=n},{"../stream/GenericWorker":28,"../utils":32}],13:[function(r,i,o){var u=r("readable-stream").Readable;function f(n,h,_){u.call(this,h),this._helper=n;var E=this;n.on("data",function(R,I){E.push(R)||E._helper.pause(),_&&_(I)}).on("error",function(R){E.emit("error",R)}).on("end",function(){E.push(null)})}r("../utils").inherits(f,u),f.prototype._read=function(){this._helper.resume()},i.exports=f},{"../utils":32,"readable-stream":16}],14:[function(r,i,o){i.exports={isNode:typeof Buffer<"u",newBufferFrom:function(u,f){if(Buffer.from&&Buffer.from!==Uint8Array.from)return Buffer.from(u,f);if(typeof u=="number")throw new Error('The "data" argument must not be a number');return new Buffer(u,f)},allocBuffer:function(u){if(Buffer.alloc)return Buffer.alloc(u);var f=new Buffer(u);return f.fill(0),f},isBuffer:function(u){return Buffer.isBuffer(u)},isStream:function(u){return u&&typeof u.on=="function"&&typeof u.pause=="function"&&typeof u.resume=="function"}}},{}],15:[function(r,i,o){function u(S,L,F){var W,k=n.getTypeOf(L),Z=n.extend(F||{},E);Z.date=Z.date||new Date,Z.compression!==null&&(Z.compression=Z.compression.toUpperCase()),typeof Z.unixPermissions=="string"&&(Z.unixPermissions=parseInt(Z.unixPermissions,8)),Z.unixPermissions&&16384&Z.unixPermissions&&(Z.dir=!0),Z.dosPermissions&&16&Z.dosPermissions&&(Z.dir=!0),Z.dir&&(S=l(S)),Z.createFolders&&(W=N(S))&&b.call(this,W,!0);var ue=k==="string"&&Z.binary===!1&&Z.base64===!1;F&&F.binary!==void 0||(Z.binary=!ue),(L instanceof R&&L.uncompressedSize===0||Z.dir||!L||L.length===0)&&(Z.base64=!1,Z.binary=!0,L="",Z.compression="STORE",k="string");var C=null;C=L instanceof R||L instanceof h?L:A.isNode&&A.isStream(L)?new v(S,L):n.prepareContent(S,L,Z.binary,Z.optimizedBinaryString,Z.base64);var U=new I(S,C,Z);this.files[S]=U}var f=r("./utf8"),n=r("./utils"),h=r("./stream/GenericWorker"),_=r("./stream/StreamHelper"),E=r("./defaults"),R=r("./compressedObject"),I=r("./zipObject"),w=r("./generate"),A=r("./nodejsUtils"),v=r("./nodejs/NodejsStreamInputAdapter"),N=function(S){S.slice(-1)==="/"&&(S=S.substring(0,S.length-1));var L=S.lastIndexOf("/");return 0<L?S.substring(0,L):""},l=function(S){return S.slice(-1)!=="/"&&(S+="/"),S},b=function(S,L){return L=L!==void 0?L:E.createFolders,S=l(S),this.files[S]||u.call(this,S,null,{dir:!0,createFolders:L}),this.files[S]};function d(S){return Object.prototype.toString.call(S)==="[object RegExp]"}var c={load:function(){throw new Error("This method has been removed in JSZip 3.0, please check the upgrade guide.")},forEach:function(S){var L,F,W;for(L in this.files)W=this.files[L],(F=L.slice(this.root.length,L.length))&&L.slice(0,this.root.length)===this.root&&S(F,W)},filter:function(S){var L=[];return this.forEach(function(F,W){S(F,W)&&L.push(W)}),L},file:function(S,L,F){if(arguments.length!==1)return S=this.root+S,u.call(this,S,L,F),this;if(d(S)){var W=S;return this.filter(function(Z,ue){return!ue.dir&&W.test(Z)})}var k=this.files[this.root+S];return k&&!k.dir?k:null},folder:function(S){if(!S)return this;if(d(S))return this.filter(function(k,Z){return Z.dir&&S.test(k)});var L=this.root+S,F=b.call(this,L),W=this.clone();return W.root=F.name,W},remove:function(S){S=this.root+S;var L=this.files[S];if(L||(S.slice(-1)!=="/"&&(S+="/"),L=this.files[S]),L&&!L.dir)delete this.files[S];else for(var F=this.filter(function(k,Z){return Z.name.slice(0,S.length)===S}),W=0;W<F.length;W++)delete this.files[F[W].name];return this},generate:function(){throw new Error("This method has been removed in JSZip 3.0, please check the upgrade guide.")},generateInternalStream:function(S){var L,F={};try{if((F=n.extend(S||{},{streamFiles:!1,compression:"STORE",compressionOptions:null,type:"",platform:"DOS",comment:null,mimeType:"application/zip",encodeFileName:f.utf8encode})).type=F.type.toLowerCase(),F.compression=F.compression.toUpperCase(),F.type==="binarystring"&&(F.type="string"),!F.type)throw new Error("No output type specified.");n.checkSupport(F.type),F.platform!=="darwin"&&F.platform!=="freebsd"&&F.platform!=="linux"&&F.platform!=="sunos"||(F.platform="UNIX"),F.platform==="win32"&&(F.platform="DOS");var W=F.comment||this.comment||"";L=w.generateWorker(this,F,W)}catch(k){(L=new h("error")).error(k)}return new _(L,F.type||"string",F.mimeType)},generateAsync:function(S,L){return this.generateInternalStream(S).accumulate(L)},generateNodeStream:function(S,L){return(S=S||{}).type||(S.type="nodebuffer"),this.generateInternalStream(S).toNodejsStream(L)}};i.exports=c},{"./compressedObject":2,"./defaults":5,"./generate":9,"./nodejs/NodejsStreamInputAdapter":12,"./nodejsUtils":14,"./stream/GenericWorker":28,"./stream/StreamHelper":29,"./utf8":31,"./utils":32,"./zipObject":35}],16:[function(r,i,o){i.exports=r("stream")},{stream:void 0}],17:[function(r,i,o){var u=r("./DataReader");function f(n){u.call(this,n);for(var h=0;h<this.data.length;h++)n[h]=255&n[h]}r("../utils").inherits(f,u),f.prototype.byteAt=function(n){return this.data[this.zero+n]},f.prototype.lastIndexOfSignature=function(n){for(var h=n.charCodeAt(0),_=n.charCodeAt(1),E=n.charCodeAt(2),R=n.charCodeAt(3),I=this.length-4;0<=I;--I)if(this.data[I]===h&&this.data[I+1]===_&&this.data[I+2]===E&&this.data[I+3]===R)return I-this.zero;return-1},f.prototype.readAndCheckSignature=function(n){var h=n.charCodeAt(0),_=n.charCodeAt(1),E=n.charCodeAt(2),R=n.charCodeAt(3),I=this.readData(4);return h===I[0]&&_===I[1]&&E===I[2]&&R===I[3]},f.prototype.readData=function(n){if(this.checkOffset(n),n===0)return[];var h=this.data.slice(this.zero+this.index,this.zero+this.index+n);return this.index+=n,h},i.exports=f},{"../utils":32,"./DataReader":18}],18:[function(r,i,o){var u=r("../utils");function f(n){this.data=n,this.length=n.length,this.index=0,this.zero=0}f.prototype={checkOffset:function(n){this.checkIndex(this.index+n)},checkIndex:function(n){if(this.length<this.zero+n||n<0)throw new Error("End of data reached (data length = "+this.length+", asked index = "+n+"). Corrupted zip ?")},setIndex:function(n){this.checkIndex(n),this.index=n},skip:function(n){this.setIndex(this.index+n)},byteAt:function(){},readInt:function(n){var h,_=0;for(this.checkOffset(n),h=this.index+n-1;h>=this.index;h--)_=(_<<8)+this.byteAt(h);return this.index+=n,_},readString:function(n){return u.transformTo("string",this.readData(n))},readData:function(){},lastIndexOfSignature:function(){},readAndCheckSignature:function(){},readDate:function(){var n=this.readInt(4);return new Date(Date.UTC(1980+(n>>25&127),(n>>21&15)-1,n>>16&31,n>>11&31,n>>5&63,(31&n)<<1))}},i.exports=f},{"../utils":32}],19:[function(r,i,o){var u=r("./Uint8ArrayReader");function f(n){u.call(this,n)}r("../utils").inherits(f,u),f.prototype.readData=function(n){this.checkOffset(n);var h=this.data.slice(this.zero+this.index,this.zero+this.index+n);return this.index+=n,h},i.exports=f},{"../utils":32,"./Uint8ArrayReader":21}],20:[function(r,i,o){var u=r("./DataReader");function f(n){u.call(this,n)}r("../utils").inherits(f,u),f.prototype.byteAt=function(n){return this.data.charCodeAt(this.zero+n)},f.prototype.lastIndexOfSignature=function(n){return this.data.lastIndexOf(n)-this.zero},f.prototype.readAndCheckSignature=function(n){return n===this.readData(4)},f.prototype.readData=function(n){this.checkOffset(n);var h=this.data.slice(this.zero+this.index,this.zero+this.index+n);return this.index+=n,h},i.exports=f},{"../utils":32,"./DataReader":18}],21:[function(r,i,o){var u=r("./ArrayReader");function f(n){u.call(this,n)}r("../utils").inherits(f,u),f.prototype.readData=function(n){if(this.checkOffset(n),n===0)return new Uint8Array(0);var h=this.data.subarray(this.zero+this.index,this.zero+this.index+n);return this.index+=n,h},i.exports=f},{"../utils":32,"./ArrayReader":17}],22:[function(r,i,o){var u=r("../utils"),f=r("../support"),n=r("./ArrayReader"),h=r("./StringReader"),_=r("./NodeBufferReader"),E=r("./Uint8ArrayReader");i.exports=function(R){var I=u.getTypeOf(R);return u.checkSupport(I),I!=="string"||f.uint8array?I==="nodebuffer"?new _(R):f.uint8array?new E(u.transformTo("uint8array",R)):new n(u.transformTo("array",R)):new h(R)}},{"../support":30,"../utils":32,"./ArrayReader":17,"./NodeBufferReader":19,"./StringReader":20,"./Uint8ArrayReader":21}],23:[function(r,i,o){o.LOCAL_FILE_HEADER="PK",o.CENTRAL_FILE_HEADER="PK",o.CENTRAL_DIRECTORY_END="PK",o.ZIP64_CENTRAL_DIRECTORY_LOCATOR="PK\x07",o.ZIP64_CENTRAL_DIRECTORY_END="PK",o.DATA_DESCRIPTOR="PK\x07\b"},{}],24:[function(r,i,o){var u=r("./GenericWorker"),f=r("../utils");function n(h){u.call(this,"ConvertWorker to "+h),this.destType=h}f.inherits(n,u),n.prototype.processChunk=function(h){this.push({data:f.transformTo(this.destType,h.data),meta:h.meta})},i.exports=n},{"../utils":32,"./GenericWorker":28}],25:[function(r,i,o){var u=r("./GenericWorker"),f=r("../crc32");function n(){u.call(this,"Crc32Probe"),this.withStreamInfo("crc32",0)}r("../utils").inherits(n,u),n.prototype.processChunk=function(h){this.streamInfo.crc32=f(h.data,this.streamInfo.crc32||0),this.push(h)},i.exports=n},{"../crc32":4,"../utils":32,"./GenericWorker":28}],26:[function(r,i,o){var u=r("../utils"),f=r("./GenericWorker");function n(h){f.call(this,"DataLengthProbe for "+h),this.propName=h,this.withStreamInfo(h,0)}u.inherits(n,f),n.prototype.processChunk=function(h){if(h){var _=this.streamInfo[this.propName]||0;this.streamInfo[this.propName]=_+h.data.length}f.prototype.processChunk.call(this,h)},i.exports=n},{"../utils":32,"./GenericWorker":28}],27:[function(r,i,o){var u=r("../utils"),f=r("./GenericWorker");function n(h){f.call(this,"DataWorker");var _=this;this.dataIsReady=!1,this.index=0,this.max=0,this.data=null,this.type="",this._tickScheduled=!1,h.then(function(E){_.dataIsReady=!0,_.data=E,_.max=E&&E.length||0,_.type=u.getTypeOf(E),_.isPaused||_._tickAndRepeat()},function(E){_.error(E)})}u.inherits(n,f),n.prototype.cleanUp=function(){f.prototype.cleanUp.call(this),this.data=null},n.prototype.resume=function(){return!!f.prototype.resume.call(this)&&(!this._tickScheduled&&this.dataIsReady&&(this._tickScheduled=!0,u.delay(this._tickAndRepeat,[],this)),!0)},n.prototype._tickAndRepeat=function(){this._tickScheduled=!1,this.isPaused||this.isFinished||(this._tick(),this.isFinished||(u.delay(this._tickAndRepeat,[],this),this._tickScheduled=!0))},n.prototype._tick=function(){if(this.isPaused||this.isFinished)return!1;var h=null,_=Math.min(this.max,this.index+16384);if(this.index>=this.max)return this.end();switch(this.type){case"string":h=this.data.substring(this.index,_);break;case"uint8array":h=this.data.subarray(this.index,_);break;case"array":case"nodebuffer":h=this.data.slice(this.index,_)}return this.index=_,this.push({data:h,meta:{percent:this.max?this.index/this.max*100:0}})},i.exports=n},{"../utils":32,"./GenericWorker":28}],28:[function(r,i,o){function u(f){this.name=f||"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}u.prototype={push:function(f){this.emit("data",f)},end:function(){if(this.isFinished)return!1;this.flush();try{this.emit("end"),this.cleanUp(),this.isFinished=!0}catch(f){this.emit("error",f)}return!0},error:function(f){return!this.isFinished&&(this.isPaused?this.generatedError=f:(this.isFinished=!0,this.emit("error",f),this.previous&&this.previous.error(f),this.cleanUp()),!0)},on:function(f,n){return this._listeners[f].push(n),this},cleanUp:function(){this.streamInfo=this.generatedError=this.extraStreamInfo=null,this._listeners=[]},emit:function(f,n){if(this._listeners[f])for(var h=0;h<this._listeners[f].length;h++)this._listeners[f][h].call(this,n)},pipe:function(f){return f.registerPrevious(this)},registerPrevious:function(f){if(this.isLocked)throw new Error("The stream '"+this+"' has already been used.");this.streamInfo=f.streamInfo,this.mergeStreamInfo(),this.previous=f;var n=this;return f.on("data",function(h){n.processChunk(h)}),f.on("end",function(){n.end()}),f.on("error",function(h){n.error(h)}),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;var f=this.isPaused=!1;return this.generatedError&&(this.error(this.generatedError),f=!0),this.previous&&this.previous.resume(),!f},flush:function(){},processChunk:function(f){this.push(f)},withStreamInfo:function(f,n){return this.extraStreamInfo[f]=n,this.mergeStreamInfo(),this},mergeStreamInfo:function(){for(var f in this.extraStreamInfo)Object.prototype.hasOwnProperty.call(this.extraStreamInfo,f)&&(this.streamInfo[f]=this.extraStreamInfo[f])},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 f="Worker "+this.name;return this.previous?this.previous+" -> "+f:f}},i.exports=u},{}],29:[function(r,i,o){var u=r("../utils"),f=r("./ConvertWorker"),n=r("./GenericWorker"),h=r("../base64"),_=r("../support"),E=r("../external"),R=null;if(_.nodestream)try{R=r("../nodejs/NodejsStreamOutputAdapter")}catch{}function I(A,v){return new E.Promise(function(N,l){var b=[],d=A._internalType,c=A._outputType,S=A._mimeType;A.on("data",function(L,F){b.push(L),v&&v(F)}).on("error",function(L){b=[],l(L)}).on("end",function(){try{var L=function(F,W,k){switch(F){case"blob":return u.newBlob(u.transformTo("arraybuffer",W),k);case"base64":return h.encode(W);default:return u.transformTo(F,W)}}(c,function(F,W){var k,Z=0,ue=null,C=0;for(k=0;k<W.length;k++)C+=W[k].length;switch(F){case"string":return W.join("");case"array":return Array.prototype.concat.apply([],W);case"uint8array":for(ue=new Uint8Array(C),k=0;k<W.length;k++)ue.set(W[k],Z),Z+=W[k].length;return ue;case"nodebuffer":return Buffer.concat(W);default:throw new Error("concat : unsupported type '"+F+"'")}}(d,b),S);N(L)}catch(F){l(F)}b=[]}).resume()})}function w(A,v,N){var l=v;switch(v){case"blob":case"arraybuffer":l="uint8array";break;case"base64":l="string"}try{this._internalType=l,this._outputType=v,this._mimeType=N,u.checkSupport(l),this._worker=A.pipe(new f(l)),A.lock()}catch(b){this._worker=new n("error"),this._worker.error(b)}}w.prototype={accumulate:function(A){return I(this,A)},on:function(A,v){var N=this;return A==="data"?this._worker.on(A,function(l){v.call(N,l.data,l.meta)}):this._worker.on(A,function(){u.delay(v,arguments,N)}),this},resume:function(){return u.delay(this._worker.resume,[],this._worker),this},pause:function(){return this._worker.pause(),this},toNodejsStream:function(A){if(u.checkSupport("nodestream"),this._outputType!=="nodebuffer")throw new Error(this._outputType+" is not supported by this method");return new R(this,{objectMode:this._outputType!=="nodebuffer"},A)}},i.exports=w},{"../base64":1,"../external":6,"../nodejs/NodejsStreamOutputAdapter":13,"../support":30,"../utils":32,"./ConvertWorker":24,"./GenericWorker":28}],30:[function(r,i,o){if(o.base64=!0,o.array=!0,o.string=!0,o.arraybuffer=typeof ArrayBuffer<"u"&&typeof Uint8Array<"u",o.nodebuffer=typeof Buffer<"u",o.uint8array=typeof Uint8Array<"u",typeof ArrayBuffer>"u")o.blob=!1;else{var u=new ArrayBuffer(0);try{o.blob=new Blob([u],{type:"application/zip"}).size===0}catch{try{var f=new(self.BlobBuilder||self.WebKitBlobBuilder||self.MozBlobBuilder||self.MSBlobBuilder);f.append(u),o.blob=f.getBlob("application/zip").size===0}catch{o.blob=!1}}}try{o.nodestream=!!r("readable-stream").Readable}catch{o.nodestream=!1}},{"readable-stream":16}],31:[function(r,i,o){for(var u=r("./utils"),f=r("./support"),n=r("./nodejsUtils"),h=r("./stream/GenericWorker"),_=new Array(256),E=0;E<256;E++)_[E]=252<=E?6:248<=E?5:240<=E?4:224<=E?3:192<=E?2:1;_[254]=_[254]=1;function R(){h.call(this,"utf-8 decode"),this.leftOver=null}function I(){h.call(this,"utf-8 encode")}o.utf8encode=function(w){return f.nodebuffer?n.newBufferFrom(w,"utf-8"):function(A){var v,N,l,b,d,c=A.length,S=0;for(b=0;b<c;b++)(64512&(N=A.charCodeAt(b)))==55296&&b+1<c&&(64512&(l=A.charCodeAt(b+1)))==56320&&(N=65536+(N-55296<<10)+(l-56320),b++),S+=N<128?1:N<2048?2:N<65536?3:4;for(v=f.uint8array?new Uint8Array(S):new Array(S),b=d=0;d<S;b++)(64512&(N=A.charCodeAt(b)))==55296&&b+1<c&&(64512&(l=A.charCodeAt(b+1)))==56320&&(N=65536+(N-55296<<10)+(l-56320),b++),N<128?v[d++]=N:(N<2048?v[d++]=192|N>>>6:(N<65536?v[d++]=224|N>>>12:(v[d++]=240|N>>>18,v[d++]=128|N>>>12&63),v[d++]=128|N>>>6&63),v[d++]=128|63&N);return v}(w)},o.utf8decode=function(w){return f.nodebuffer?u.transformTo("nodebuffer",w).toString("utf-8"):function(A){var v,N,l,b,d=A.length,c=new Array(2*d);for(v=N=0;v<d;)if((l=A[v++])<128)c[N++]=l;else if(4<(b=_[l]))c[N++]=65533,v+=b-1;else{for(l&=b===2?31:b===3?15:7;1<b&&v<d;)l=l<<6|63&A[v++],b--;1<b?c[N++]=65533:l<65536?c[N++]=l:(l-=65536,c[N++]=55296|l>>10&1023,c[N++]=56320|1023&l)}return c.length!==N&&(c.subarray?c=c.subarray(0,N):c.length=N),u.applyFromCharCode(c)}(w=u.transformTo(f.uint8array?"uint8array":"array",w))},u.inherits(R,h),R.prototype.processChunk=function(w){var A=u.transformTo(f.uint8array?"uint8array":"array",w.data);if(this.leftOver&&this.leftOver.length){if(f.uint8array){var v=A;(A=new Uint8Array(v.length+this.leftOver.length)).set(this.leftOver,0),A.set(v,this.leftOver.length)}else A=this.leftOver.concat(A);this.leftOver=null}var N=function(b,d){var c;for((d=d||b.length)>b.length&&(d=b.length),c=d-1;0<=c&&(192&b[c])==128;)c--;return c<0||c===0?d:c+_[b[c]]>d?c:d}(A),l=A;N!==A.length&&(f.uint8array?(l=A.subarray(0,N),this.leftOver=A.subarray(N,A.length)):(l=A.slice(0,N),this.leftOver=A.slice(N,A.length))),this.push({data:o.utf8decode(l),meta:w.meta})},R.prototype.flush=function(){this.leftOver&&this.leftOver.length&&(this.push({data:o.utf8decode(this.leftOver),meta:{}}),this.leftOver=null)},o.Utf8DecodeWorker=R,u.inherits(I,h),I.prototype.processChunk=function(w){this.push({data:o.utf8encode(w.data),meta:w.meta})},o.Utf8EncodeWorker=I},{"./nodejsUtils":14,"./stream/GenericWorker":28,"./support":30,"./utils":32}],32:[function(r,i,o){var u=r("./support"),f=r("./base64"),n=r("./nodejsUtils"),h=r("./external");function _(v){return v}function E(v,N){for(var l=0;l<v.length;++l)N[l]=255&v.charCodeAt(l);return N}r("setimmediate"),o.newBlob=function(v,N){o.checkSupport("blob");try{return new Blob([v],{type:N})}catch{try{var l=new(self.BlobBuilder||self.WebKitBlobBuilder||self.MozBlobBuilder||self.MSBlobBuilder);return l.append(v),l.getBlob(N)}catch{throw new Error("Bug : can't construct the Blob.")}}};var R={stringifyByChunk:function(v,N,l){var b=[],d=0,c=v.length;if(c<=l)return String.fromCharCode.apply(null,v);for(;d<c;)N==="array"||N==="nodebuffer"?b.push(String.fromCharCode.apply(null,v.slice(d,Math.min(d+l,c)))):b.push(String.fromCharCode.apply(null,v.subarray(d,Math.min(d+l,c)))),d+=l;return b.join("")},stringifyByChar:function(v){for(var N="",l=0;l<v.length;l++)N+=String.fromCharCode(v[l]);return N},applyCanBeUsed:{uint8array:function(){try{return u.uint8array&&String.fromCharCode.apply(null,new Uint8Array(1)).length===1}catch{return!1}}(),nodebuffer:function(){try{return u.nodebuffer&&String.fromCharCode.apply(null,n.allocBuffer(1)).length===1}catch{return!1}}()}};function I(v){var N=65536,l=o.getTypeOf(v),b=!0;if(l==="uint8array"?b=R.applyCanBeUsed.uint8array:l==="nodebuffer"&&(b=R.applyCanBeUsed.nodebuffer),b)for(;1<N;)try{return R.stringifyByChunk(v,l,N)}catch{N=Math.floor(N/2)}return R.stringifyByChar(v)}function w(v,N){for(var l=0;l<v.length;l++)N[l]=v[l];return N}o.applyFromCharCode=I;var A={};A.string={string:_,array:function(v){return E(v,new Array(v.length))},arraybuffer:function(v){return A.string.uint8array(v).buffer},uint8array:function(v){return E(v,new Uint8Array(v.length))},nodebuffer:function(v){return E(v,n.allocBuffer(v.length))}},A.array={string:I,array:_,arraybuffer:function(v){return new Uint8Array(v).buffer},uint8array:function(v){return new Uint8Array(v)},nodebuffer:function(v){return n.newBufferFrom(v)}},A.arraybuffer={string:function(v){return I(new Uint8Array(v))},array:function(v){return w(new Uint8Array(v),new Array(v.byteLength))},arraybuffer:_,uint8array:function(v){return new Uint8Array(v)},nodebuffer:function(v){return n.newBufferFrom(new Uint8Array(v))}},A.uint8array={string:I,array:function(v){return w(v,new Array(v.length))},arraybuffer:function(v){return v.buffer},uint8array:_,nodebuffer:function(v){return n.newBufferFrom(v)}},A.nodebuffer={string:I,array:function(v){return w(v,new Array(v.length))},arraybuffer:function(v){return A.nodebuffer.uint8array(v).buffer},uint8array:function(v){return w(v,new Uint8Array(v.length))},nodebuffer:_},o.transformTo=function(v,N){if(N=N||"",!v)return N;o.checkSupport(v);var l=o.getTypeOf(N);return A[l][v](N)},o.resolve=function(v){for(var N=v.split("/"),l=[],b=0;b<N.length;b++){var d=N[b];d==="."||d===""&&b!==0&&b!==N.length-1||(d===".."?l.pop():l.push(d))}return l.join("/")},o.getTypeOf=function(v){return typeof v=="string"?"string":Object.prototype.toString.call(v)==="[object Array]"?"array":u.nodebuffer&&n.isBuffer(v)?"nodebuffer":u.uint8array&&v instanceof Uint8Array?"uint8array":u.arraybuffer&&v instanceof ArrayBuffer?"arraybuffer":void 0},o.checkSupport=function(v){if(!u[v.toLowerCase()])throw new Error(v+" is not supported by this platform")},o.MAX_VALUE_16BITS=65535,o.MAX_VALUE_32BITS=-1,o.pretty=function(v){var N,l,b="";for(l=0;l<(v||"").length;l++)b+="\\x"+((N=v.charCodeAt(l))<16?"0":"")+N.toString(16).toUpperCase();return b},o.delay=function(v,N,l){setImmediate(function(){v.apply(l||null,N||[])})},o.inherits=function(v,N){function l(){}l.prototype=N.prototype,v.prototype=new l},o.extend=function(){var v,N,l={};for(v=0;v<arguments.length;v++)for(N in arguments[v])Object.prototype.hasOwnProperty.call(arguments[v],N)&&l[N]===void 0&&(l[N]=arguments[v][N]);return l},o.prepareContent=function(v,N,l,b,d){return h.Promise.resolve(N).then(function(c){return u.blob&&(c instanceof Blob||["[object File]","[object Blob]"].indexOf(Object.prototype.toString.call(c))!==-1)&&typeof FileReader<"u"?new h.Promise(function(S,L){var F=new FileReader;F.onload=function(W){S(W.target.result)},F.onerror=function(W){L(W.target.error)},F.readAsArrayBuffer(c)}):c}).then(function(c){var S=o.getTypeOf(c);return S?(S==="arraybuffer"?c=o.transformTo("uint8array",c):S==="string"&&(d?c=f.decode(c):l&&b!==!0&&(c=function(L){return E(L,u.uint8array?new Uint8Array(L.length):new Array(L.length))}(c))),c):h.Promise.reject(new Error("Can't read the data of '"+v+"'. Is it in a supported JavaScript type (String, Blob, ArrayBuffer, etc) ?"))})}},{"./base64":1,"./external":6,"./nodejsUtils":14,"./support":30,setimmediate:54}],33:[function(r,i,o){var u=r("./reader/readerFor"),f=r("./utils"),n=r("./signature"),h=r("./zipEntry"),_=r("./support");function E(R){this.files=[],this.loadOptions=R}E.prototype={checkSignature:function(R){if(!this.reader.readAndCheckSignature(R)){this.reader.index-=4;var I=this.reader.readString(4);throw new Error("Corrupted zip or bug: unexpected signature ("+f.pretty(I)+", expected "+f.pretty(R)+")")}},isSignature:function(R,I){var w=this.reader.index;this.reader.setIndex(R);var A=this.reader.readString(4)===I;return this.reader.setIndex(w),A},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 R=this.reader.readData(this.zipCommentLength),I=_.uint8array?"uint8array":"array",w=f.transformTo(I,R);this.zipComment=this.loadOptions.decodeFileName(w)},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 R,I,w,A=this.zip64EndOfCentralSize-44;0<A;)R=this.reader.readInt(2),I=this.reader.readInt(4),w=this.reader.readData(I),this.zip64ExtensibleData[R]={id:R,length:I,value:w}},readBlockZip64EndOfCentralLocator:function(){if(this.diskWithZip64CentralDirStart=this.reader.readInt(4),this.relativeOffsetEndOfZip64CentralDir=this.reader.readInt(8),this.disksCount=this.reader.readInt(4),1<this.disksCount)throw new Error("Multi-volumes zip are not supported")},readLocalFiles:function(){var R,I;for(R=0;R<this.files.length;R++)I=this.files[R],this.reader.setIndex(I.localHeaderOffset),this.checkSignature(n.LOCAL_FILE_HEADER),I.readLocalPart(this.reader),I.handleUTF8(),I.processAttributes()},readCentralDir:function(){var R;for(this.reader.setIndex(this.centralDirOffset);this.reader.readAndCheckSignature(n.CENTRAL_FILE_HEADER);)(R=new h({zip64:this.zip64},this.loadOptions)).readCentralPart(this.reader),this.files.push(R);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 R=this.reader.lastIndexOfSignature(n.CENTRAL_DIRECTORY_END);if(R<0)throw this.isSignature(0,n.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(R);var I=R;if(this.checkSignature(n.CENTRAL_DIRECTORY_END),this.readBlockEndOfCentral(),this.diskNumber===f.MAX_VALUE_16BITS||this.diskWithCentralDirStart===f.MAX_VALUE_16BITS||this.centralDirRecordsOnThisDisk===f.MAX_VALUE_16BITS||this.centralDirRecords===f.MAX_VALUE_16BITS||this.centralDirSize===f.MAX_VALUE_32BITS||this.centralDirOffset===f.MAX_VALUE_32BITS){if(this.zip64=!0,(R=this.reader.lastIndexOfSignature(n.ZIP64_CENTRAL_DIRECTORY_LOCATOR))<0)throw new Error("Corrupted zip: can't find the ZIP64 end of central directory locator");if(this.reader.setIndex(R),this.checkSignature(n.ZIP64_CENTRAL_DIRECTORY_LOCATOR),this.readBlockZip64EndOfCentralLocator(),!this.isSignature(this.relativeOffsetEndOfZip64CentralDir,n.ZIP64_CENTRAL_DIRECTORY_END)&&(this.relativeOffsetEndOfZip64CentralDir=this.reader.lastIndexOfSignature(n.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(n.ZIP64_CENTRAL_DIRECTORY_END),this.readBlockZip64EndOfCentral()}var w=this.centralDirOffset+this.centralDirSize;this.zip64&&(w+=20,w+=12+this.zip64EndOfCentralSize);var A=I-w;if(0<A)this.isSignature(I,n.CENTRAL_FILE_HEADER)||(this.reader.zero=A);else if(A<0)throw new Error("Corrupted zip: missing "+Math.abs(A)+" bytes.")},prepareReader:function(R){this.reader=u(R)},load:function(R){this.prepareReader(R),this.readEndOfCentral(),this.readCentralDir(),this.readLocalFiles()}},i.exports=E},{"./reader/readerFor":22,"./signature":23,"./support":30,"./utils":32,"./zipEntry":34}],34:[function(r,i,o){var u=r("./reader/readerFor"),f=r("./utils"),n=r("./compressedObject"),h=r("./crc32"),_=r("./utf8"),E=r("./compressions"),R=r("./support");function I(w,A){this.options=w,this.loadOptions=A}I.prototype={isEncrypted:function(){return(1&this.bitFlag)==1},useUTF8:function(){return(2048&this.bitFlag)==2048},readLocalPart:function(w){var A,v;if(w.skip(22),this.fileNameLength=w.readInt(2),v=w.readInt(2),this.fileName=w.readData(this.fileNameLength),w.skip(v),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((A=function(N){for(var l in E)if(Object.prototype.hasOwnProperty.call(E,l)&&E[l].magic===N)return E[l];return null}(this.compressionMethod))===null)throw new Error("Corrupted zip : compression "+f.pretty(this.compressionMethod)+" unknown (inner file : "+f.transformTo("string",this.fileName)+")");this.decompressed=new n(this.compressedSize,this.uncompressedSize,this.crc32,A,w.readData(this.compressedSize))},readCentralPart:function(w){this.versionMadeBy=w.readInt(2),w.skip(2),this.bitFlag=w.readInt(2),this.compressionMethod=w.readString(2),this.date=w.readDate(),this.crc32=w.readInt(4),this.compressedSize=w.readInt(4),this.uncompressedSize=w.readInt(4);var A=w.readInt(2);if(this.extraFieldsLength=w.readInt(2),this.fileCommentLength=w.readInt(2),this.diskNumberStart=w.readInt(2),this.internalFileAttributes=w.readInt(2),this.externalFileAttributes=w.readInt(4),this.localHeaderOffset=w.readInt(4),this.isEncrypted())throw new Error("Encrypted zip are not supported");w.skip(A),this.readExtraFields(w),this.parseZIP64ExtraField(w),this.fileComment=w.readData(this.fileCommentLength)},processAttributes:function(){this.unixPermissions=null,this.dosPermissions=null;var w=this.versionMadeBy>>8;this.dir=!!(16&this.externalFileAttributes),w==0&&(this.dosPermissions=63&this.externalFileAttributes),w==3&&(this.unixPermissions=this.externalFileAttributes>>16&65535),this.dir||this.fileNameStr.slice(-1)!=="/"||(this.dir=!0)},parseZIP64ExtraField:function(){if(this.extraFields[1]){var w=u(this.extraFields[1].value);this.uncompressedSize===f.MAX_VALUE_32BITS&&(this.uncompressedSize=w.readInt(8)),this.compressedSize===f.MAX_VALUE_32BITS&&(this.compressedSize=w.readInt(8)),this.localHeaderOffset===f.MAX_VALUE_32BITS&&(this.localHeaderOffset=w.readInt(8)),this.diskNumberStart===f.MAX_VALUE_32BITS&&(this.diskNumberStart=w.readInt(4))}},readExtraFields:function(w){var A,v,N,l=w.index+this.extraFieldsLength;for(this.extraFields||(this.extraFields={});w.index+4<l;)A=w.readInt(2),v=w.readInt(2),N=w.readData(v),this.extraFields[A]={id:A,length:v,value:N};w.setIndex(l)},handleUTF8:function(){var w=R.uint8array?"uint8array":"array";if(this.useUTF8())this.fileNameStr=_.utf8decode(this.fileName),this.fileCommentStr=_.utf8decode(this.fileComment);else{var A=this.findExtraFieldUnicodePath();if(A!==null)this.fileNameStr=A;else{var v=f.transformTo(w,this.fileName);this.fileNameStr=this.loadOptions.decodeFileName(v)}var N=this.findExtraFieldUnicodeComment();if(N!==null)this.fileCommentStr=N;else{var l=f.transformTo(w,this.fileComment);this.fileCommentStr=this.loadOptions.decodeFileName(l)}}},findExtraFieldUnicodePath:function(){var w=this.extraFields[28789];if(w){var A=u(w.value);return A.readInt(1)!==1||h(this.fileName)!==A.readInt(4)?null:_.utf8decode(A.readData(w.length-5))}return null},findExtraFieldUnicodeComment:function(){var w=this.extraFields[25461];if(w){var A=u(w.value);return A.readInt(1)!==1||h(this.fileComment)!==A.readInt(4)?null:_.utf8decode(A.readData(w.length-5))}return null}},i.exports=I},{"./compressedObject":2,"./compressions":3,"./crc32":4,"./reader/readerFor":22,"./support":30,"./utf8":31,"./utils":32}],35:[function(r,i,o){function u(A,v,N){this.name=A,this.dir=N.dir,this.date=N.date,this.comment=N.comment,this.unixPermissions=N.unixPermissions,this.dosPermissions=N.dosPermissions,this._data=v,this._dataBinary=N.binary,this.options={compression:N.compression,compressionOptions:N.compressionOptions}}var f=r("./stream/StreamHelper"),n=r("./stream/DataWorker"),h=r("./utf8"),_=r("./compressedObject"),E=r("./stream/GenericWorker");u.prototype={internalStream:function(A){var v=null,N="string";try{if(!A)throw new Error("No output type specified.");var l=(N=A.toLowerCase())==="string"||N==="text";N!=="binarystring"&&N!=="text"||(N="string"),v=this._decompressWorker();var b=!this._dataBinary;b&&!l&&(v=v.pipe(new h.Utf8EncodeWorker)),!b&&l&&(v=v.pipe(new h.Utf8DecodeWorker))}catch(d){(v=new E("error")).error(d)}return new f(v,N,"")},async:function(A,v){return this.internalStream(A).accumulate(v)},nodeStream:function(A,v){return this.internalStream(A||"nodebuffer").toNodejsStream(v)},_compressWorker:function(A,v){if(this._data instanceof _&&this._data.compression.magic===A.magic)return this._data.getCompressedWorker();var N=this._decompressWorker();return this._dataBinary||(N=N.pipe(new h.Utf8EncodeWorker)),_.createWorkerFrom(N,A,v)},_decompressWorker:function(){return this._data instanceof _?this._data.getContentWorker():this._data instanceof E?this._data:new n(this._data)}};for(var R=["asText","asBinary","asNodeBuffer","asUint8Array","asArrayBuffer"],I=function(){throw new Error("This method has been removed in JSZip 3.0, please check the upgrade guide.")},w=0;w<R.length;w++)u.prototype[R[w]]=I;i.exports=u},{"./compressedObject":2,"./stream/DataWorker":27,"./stream/GenericWorker":28,"./stream/StreamHelper":29,"./utf8":31}],36:[function(r,i,o){(function(u){var f,n,h=u.MutationObserver||u.WebKitMutationObserver;if(h){var _=0,E=new h(A),R=u.document.createTextNode("");E.observe(R,{characterData:!0}),f=function(){R.data=_=++_%2}}else if(u.setImmediate||u.MessageChannel===void 0)f="document"in u&&"onreadystatechange"in u.document.createElement("script")?function(){var v=u.document.createElement("script");v.onreadystatechange=function(){A(),v.onreadystatechange=null,v.parentNode.removeChild(v),v=null},u.document.documentElement.appendChild(v)}:function(){setTimeout(A,0)};else{var I=new u.MessageChannel;I.port1.onmessage=A,f=function(){I.port2.postMessage(0)}}var w=[];function A(){var v,N;n=!0;for(var l=w.length;l;){for(N=w,w=[],v=-1;++v<l;)N[v]();l=w.length}n=!1}i.exports=function(v){w.push(v)!==1||n||f()}}).call(this,typeof We<"u"?We:typeof self<"u"?self:typeof window<"u"?window:{})},{}],37:[function(r,i,o){var u=r("immediate");function f(){}var n={},h=["REJECTED"],_=["FULFILLED"],E=["PENDING"];function R(l){if(typeof l!="function")throw new TypeError("resolver must be a function");this.state=E,this.queue=[],this.outcome=void 0,l!==f&&v(this,l)}function I(l,b,d){this.promise=l,typeof b=="function"&&(this.onFulfilled=b,this.callFulfilled=this.otherCallFulfilled),typeof d=="function"&&(this.onRejected=d,this.callRejected=this.otherCallRejected)}function w(l,b,d){u(function(){var c;try{c=b(d)}catch(S){return n.reject(l,S)}c===l?n.reject(l,new TypeError("Cannot resolve promise with itself")):n.resolve(l,c)})}function A(l){var b=l&&l.then;if(l&&(typeof l=="object"||typeof l=="function")&&typeof b=="function")return function(){b.apply(l,arguments)}}function v(l,b){var d=!1;function c(F){d||(d=!0,n.reject(l,F))}function S(F){d||(d=!0,n.resolve(l,F))}var L=N(function(){b(S,c)});L.status==="error"&&c(L.value)}function N(l,b){var d={};try{d.value=l(b),d.status="success"}catch(c){d.status="error",d.value=c}return d}(i.exports=R).prototype.finally=function(l){if(typeof l!="function")return this;var b=this.constructor;return this.then(function(d){return b.resolve(l()).then(function(){return d})},function(d){return b.resolve(l()).then(function(){throw d})})},R.prototype.catch=function(l){return this.then(null,l)},R.prototype.then=function(l,b){if(typeof l!="function"&&this.state===_||typeof b!="function"&&this.state===h)return this;var d=new this.constructor(f);return this.state!==E?w(d,this.state===_?l:b,this.outcome):this.queue.push(new I(d,l,b)),d},I.prototype.callFulfilled=function(l){n.resolve(this.promise,l)},I.prototype.otherCallFulfilled=function(l){w(this.promise,this.onFulfilled,l)},I.prototype.callRejected=function(l){n.reject(this.promise,l)},I.prototype.otherCallRejected=function(l){w(this.promise,this.onRejected,l)},n.resolve=function(l,b){var d=N(A,b);if(d.status==="error")return n.reject(l,d.value);var c=d.value;if(c)v(l,c);else{l.state=_,l.outcome=b;for(var S=-1,L=l.queue.length;++S<L;)l.queue[S].callFulfilled(b)}return l},n.reject=function(l,b){l.state=h,l.outcome=b;for(var d=-1,c=l.queue.length;++d<c;)l.queue[d].callRejected(b);return l},R.resolve=function(l){return l instanceof this?l:n.resolve(new this(f),l)},R.reject=function(l){var b=new this(f);return n.reject(b,l)},R.all=function(l){var b=this;if(Object.prototype.toString.call(l)!=="[object Array]")return this.reject(new TypeError("must be an array"));var d=l.length,c=!1;if(!d)return this.resolve([]);for(var S=new Array(d),L=0,F=-1,W=new this(f);++F<d;)k(l[F],F);return W;function k(Z,ue){b.resolve(Z).then(function(C){S[ue]=C,++L!==d||c||(c=!0,n.resolve(W,S))},function(C){c||(c=!0,n.reject(W,C))})}},R.race=function(l){var b=this;if(Object.prototype.toString.call(l)!=="[object Array]")return this.reject(new TypeError("must be an array"));var d=l.length,c=!1;if(!d)return this.resolve([]);for(var S=-1,L=new this(f);++S<d;)F=l[S],b.resolve(F).then(function(W){c||(c=!0,n.resolve(L,W))},function(W){c||(c=!0,n.reject(L,W))});var F;return L}},{immediate:36}],38:[function(r,i,o){var u={};(0,r("./lib/utils/common").assign)(u,r("./lib/deflate"),r("./lib/inflate"),r("./lib/zlib/constants")),i.exports=u},{"./lib/deflate":39,"./lib/inflate":40,"./lib/utils/common":41,"./lib/zlib/constants":44}],39:[function(r,i,o){var u=r("./zlib/deflate"),f=r("./utils/common"),n=r("./utils/strings"),h=r("./zlib/messages"),_=r("./zlib/zstream"),E=Object.prototype.toString,R=0,I=-1,w=0,A=8;function v(l){if(!(this instanceof v))return new v(l);this.options=f.assign({level:I,method:A,chunkSize:16384,windowBits:15,memLevel:8,strategy:w,to:""},l||{});var b=this.options;b.raw&&0<b.windowBits?b.windowBits=-b.windowBits:b.gzip&&0<b.windowBits&&b.windowBits<16&&(b.windowBits+=16),this.err=0,this.msg="",this.ended=!1,this.chunks=[],this.strm=new _,this.strm.avail_out=0;var d=u.deflateInit2(this.strm,b.level,b.method,b.windowBits,b.memLevel,b.strategy);if(d!==R)throw new Error(h[d]);if(b.header&&u.deflateSetHeader(this.strm,b.header),b.dictionary){var c;if(c=typeof b.dictionary=="string"?n.string2buf(b.dictionary):E.call(b.dictionary)==="[object ArrayBuffer]"?new Uint8Array(b.dictionary):b.dictionary,(d=u.deflateSetDictionary(this.strm,c))!==R)throw new Error(h[d]);this._dict_set=!0}}function N(l,b){var d=new v(b);if(d.push(l,!0),d.err)throw d.msg||h[d.err];return d.result}v.prototype.push=function(l,b){var d,c,S=this.strm,L=this.options.chunkSize;if(this.ended)return!1;c=b===~~b?b:b===!0?4:0,typeof l=="string"?S.input=n.string2buf(l):E.call(l)==="[object ArrayBuffer]"?S.input=new Uint8Array(l):S.input=l,S.next_in=0,S.avail_in=S.input.length;do{if(S.avail_out===0&&(S.output=new f.Buf8(L),S.next_out=0,S.avail_out=L),(d=u.deflate(S,c))!==1&&d!==R)return this.onEnd(d),!(this.ended=!0);S.avail_out!==0&&(S.avail_in!==0||c!==4&&c!==2)||(this.options.to==="string"?this.onData(n.buf2binstring(f.shrinkBuf(S.output,S.next_out))):this.onData(f.shrinkBuf(S.output,S.next_out)))}while((0<S.avail_in||S.avail_out===0)&&d!==1);return c===4?(d=u.deflateEnd(this.strm),this.onEnd(d),this.ended=!0,d===R):c!==2||(this.onEnd(R),!(S.avail_out=0))},v.prototype.onData=function(l){this.chunks.push(l)},v.prototype.onEnd=function(l){l===R&&(this.options.to==="string"?this.result=this.chunks.join(""):this.result=f.flattenChunks(this.chunks)),this.chunks=[],this.err=l,this.msg=this.strm.msg},o.Deflate=v,o.deflate=N,o.deflateRaw=function(l,b){return(b=b||{}).raw=!0,N(l,b)},o.gzip=function(l,b){return(b=b||{}).gzip=!0,N(l,b)}},{"./utils/common":41,"./utils/strings":42,"./zlib/deflate":46,"./zlib/messages":51,"./zlib/zstream":53}],40:[function(r,i,o){var u=r("./zlib/inflate"),f=r("./utils/common"),n=r("./utils/strings"),h=r("./zlib/constants"),_=r("./zlib/messages"),E=r("./zlib/zstream"),R=r("./zlib/gzheader"),I=Object.prototype.toString;function w(v){if(!(this instanceof w))return new w(v);this.options=f.assign({chunkSize:16384,windowBits:0,to:""},v||{});var N=this.options;N.raw&&0<=N.windowBits&&N.windowBits<16&&(N.windowBits=-N.windowBits,N.windowBits===0&&(N.windowBits=-15)),!(0<=N.windowBits&&N.windowBits<16)||v&&v.windowBits||(N.windowBits+=32),15<N.windowBits&&N.windowBits<48&&(15&N.windowBits)==0&&(N.windowBits|=15),this.err=0,this.msg="",this.ended=!1,this.chunks=[],this.strm=new E,this.strm.avail_out=0;var l=u.inflateInit2(this.strm,N.windowBits);if(l!==h.Z_OK)throw new Error(_[l]);this.header=new R,u.inflateGetHeader(this.strm,this.header)}function A(v,N){var l=new w(N);if(l.push(v,!0),l.err)throw l.msg||_[l.err];return l.result}w.prototype.push=function(v,N){var l,b,d,c,S,L,F=this.strm,W=this.options.chunkSize,k=this.options.dictionary,Z=!1;if(this.ended)return!1;b=N===~~N?N:N===!0?h.Z_FINISH:h.Z_NO_FLUSH,typeof v=="string"?F.input=n.binstring2buf(v):I.call(v)==="[object ArrayBuffer]"?F.input=new Uint8Array(v):F.input=v,F.next_in=0,F.avail_in=F.input.length;do{if(F.avail_out===0&&(F.output=new f.Buf8(W),F.next_out=0,F.avail_out=W),(l=u.inflate(F,h.Z_NO_FLUSH))===h.Z_NEED_DICT&&k&&(L=typeof k=="string"?n.string2buf(k):I.call(k)==="[object ArrayBuffer]"?new Uint8Array(k):k,l=u.inflateSetDictionary(this.strm,L)),l===h.Z_BUF_ERROR&&Z===!0&&(l=h.Z_OK,Z=!1),l!==h.Z_STREAM_END&&l!==h.Z_OK)return this.onEnd(l),!(this.ended=!0);F.next_out&&(F.avail_out!==0&&l!==h.Z_STREAM_END&&(F.avail_in!==0||b!==h.Z_FINISH&&b!==h.Z_SYNC_FLUSH)||(this.options.to==="string"?(d=n.utf8border(F.output,F.next_out),c=F.next_out-d,S=n.buf2string(F.output,d),F.next_out=c,F.avail_out=W-c,c&&f.arraySet(F.output,F.output,d,c,0),this.onData(S)):this.onData(f.shrinkBuf(F.output,F.next_out)))),F.avail_in===0&&F.avail_out===0&&(Z=!0)}while((0<F.avail_in||F.avail_out===0)&&l!==h.Z_STREAM_END);return l===h.Z_STREAM_END&&(b=h.Z_FINISH),b===h.Z_FINISH?(l=u.inflateEnd(this.strm),this.onEnd(l),this.ended=!0,l===h.Z_OK):b!==h.Z_SYNC_FLUSH||(this.onEnd(h.Z_OK),!(F.avail_out=0))},w.prototype.onData=function(v){this.chunks.push(v)},w.prototype.onEnd=function(v){v===h.Z_OK&&(this.options.to==="string"?this.result=this.chunks.join(""):this.result=f.flattenChunks(this.chunks)),this.chunks=[],this.err=v,this.msg=this.strm.msg},o.Inflate=w,o.inflate=A,o.inflateRaw=function(v,N){return(N=N||{}).raw=!0,A(v,N)},o.ungzip=A},{"./utils/common":41,"./utils/strings":42,"./zlib/constants":44,"./zlib/gzheader":47,"./zlib/inflate":49,"./zlib/messages":51,"./zlib/zstream":53}],41:[function(r,i,o){var u=typeof Uint8Array<"u"&&typeof Uint16Array<"u"&&typeof Int32Array<"u";o.assign=function(h){for(var _=Array.prototype.slice.call(arguments,1);_.length;){var E=_.shift();if(E){if(typeof E!="object")throw new TypeError(E+"must be non-object");for(var R in E)E.hasOwnProperty(R)&&(h[R]=E[R])}}return h},o.shrinkBuf=function(h,_){return h.length===_?h:h.subarray?h.subarray(0,_):(h.length=_,h)};var f={arraySet:function(h,_,E,R,I){if(_.subarray&&h.subarray)h.set(_.subarray(E,E+R),I);else for(var w=0;w<R;w++)h[I+w]=_[E+w]},flattenChunks:function(h){var _,E,R,I,w,A;for(_=R=0,E=h.length;_<E;_++)R+=h[_].length;for(A=new Uint8Array(R),_=I=0,E=h.length;_<E;_++)w=h[_],A.set(w,I),I+=w.length;return A}},n={arraySet:function(h,_,E,R,I){for(var w=0;w<R;w++)h[I+w]=_[E+w]},flattenChunks:function(h){return[].concat.apply([],h)}};o.setTyped=function(h){h?(o.Buf8=Uint8Array,o.Buf16=Uint16Array,o.Buf32=Int32Array,o.assign(o,f)):(o.Buf8=Array,o.Buf16=Array,o.Buf32=Array,o.assign(o,n))},o.setTyped(u)},{}],42:[function(r,i,o){var u=r("./common"),f=!0,n=!0;try{String.fromCharCode.apply(null,[0])}catch{f=!1}try{String.fromCharCode.apply(null,new Uint8Array(1))}catch{n=!1}for(var h=new u.Buf8(256),_=0;_<256;_++)h[_]=252<=_?6:248<=_?5:240<=_?4:224<=_?3:192<=_?2:1;function E(R,I){if(I<65537&&(R.subarray&&n||!R.subarray&&f))return String.fromCharCode.apply(null,u.shrinkBuf(R,I));for(var w="",A=0;A<I;A++)w+=String.fromCharCode(R[A]);return w}h[254]=h[254]=1,o.string2buf=function(R){var I,w,A,v,N,l=R.length,b=0;for(v=0;v<l;v++)(64512&(w=R.charCodeAt(v)))==55296&&v+1<l&&(64512&(A=R.charCodeAt(v+1)))==56320&&(w=65536+(w-55296<<10)+(A-56320),v++),b+=w<128?1:w<2048?2:w<65536?3:4;for(I=new u.Buf8(b),v=N=0;N<b;v++)(64512&(w=R.charCodeAt(v)))==55296&&v+1<l&&(64512&(A=R.charCodeAt(v+1)))==56320&&(w=65536+(w-55296<<10)+(A-56320),v++),w<128?I[N++]=w:(w<2048?I[N++]=192|w>>>6:(w<65536?I[N++]=224|w>>>12:(I[N++]=240|w>>>18,I[N++]=128|w>>>12&63),I[N++]=128|w>>>6&63),I[N++]=128|63&w);return I},o.buf2binstring=function(R){return E(R,R.length)},o.binstring2buf=function(R){for(var I=new u.Buf8(R.length),w=0,A=I.length;w<A;w++)I[w]=R.charCodeAt(w);return I},o.buf2string=function(R,I){var w,A,v,N,l=I||R.length,b=new Array(2*l);for(w=A=0;w<l;)if((v=R[w++])<128)b[A++]=v;else if(4<(N=h[v]))b[A++]=65533,w+=N-1;else{for(v&=N===2?31:N===3?15:7;1<N&&w<l;)v=v<<6|63&R[w++],N--;1<N?b[A++]=65533:v<65536?b[A++]=v:(v-=65536,b[A++]=55296|v>>10&1023,b[A++]=56320|1023&v)}return E(b,A)},o.utf8border=function(R,I){var w;for((I=I||R.length)>R.length&&(I=R.length),w=I-1;0<=w&&(192&R[w])==128;)w--;return w<0||w===0?I:w+h[R[w]]>I?w:I}},{"./common":41}],43:[function(r,i,o){i.exports=function(u,f,n,h){for(var _=65535&u|0,E=u>>>16&65535|0,R=0;n!==0;){for(n-=R=2e3<n?2e3:n;E=E+(_=_+f[h++]|0)|0,--R;);_%=65521,E%=65521}return _|E<<16|0}},{}],44:[function(r,i,o){i.exports={Z_NO_FLUSH:0,Z_PARTIAL_FLUSH:1,Z_SYNC_FLUSH:2,Z_FULL_FLUSH:3,Z_FINISH:4,Z_BLOCK:5,Z_TREES:6,Z_OK:0,Z_STREAM_END:1,Z_NEED_DICT:2,Z_ERRNO:-1,Z_STREAM_ERROR:-2,Z_DATA_ERROR:-3,Z_BUF_ERROR:-5,Z_NO_COMPRESSION:0,Z_BEST_SPEED:1,Z_BEST_COMPRESSION:9,Z_DEFAULT_COMPRESSION:-1,Z_FILTERED:1,Z_HUFFMAN_ONLY:2,Z_RLE:3,Z_FIXED:4,Z_DEFAULT_STRATEGY:0,Z_BINARY:0,Z_TEXT:1,Z_UNKNOWN:2,Z_DEFLATED:8}},{}],45:[function(r,i,o){var u=function(){for(var f,n=[],h=0;h<256;h++){f=h;for(var _=0;_<8;_++)f=1&f?3988292384^f>>>1:f>>>1;n[h]=f}return n}();i.exports=function(f,n,h,_){var E=u,R=_+h;f^=-1;for(var I=_;I<R;I++)f=f>>>8^E[255&(f^n[I])];return-1^f}},{}],46:[function(r,i,o){var u,f=r("../utils/common"),n=r("./trees"),h=r("./adler32"),_=r("./crc32"),E=r("./messages"),R=0,I=4,w=0,A=-2,v=-1,N=4,l=2,b=8,d=9,c=286,S=30,L=19,F=2*c+1,W=15,k=3,Z=258,ue=Z+k+1,C=42,U=113,g=1,q=2,te=3,z=4;function se(p,J){return p.msg=E[J],J}function re(p){return(p<<1)-(4<p?9:0)}function ce(p){for(var J=p.length;0<=--J;)p[J]=0}function V(p){var J=p.state,T=J.pending;T>p.avail_out&&(T=p.avail_out),T!==0&&(f.arraySet(p.output,J.pending_buf,J.pending_out,T,p.next_out),p.next_out+=T,J.pending_out+=T,p.total_out+=T,p.avail_out-=T,J.pending-=T,J.pending===0&&(J.pending_out=0))}function D(p,J){n._tr_flush_block(p,0<=p.block_start?p.block_start:-1,p.strstart-p.block_start,J),p.block_start=p.strstart,V(p.strm)}function $(p,J){p.pending_buf[p.pending++]=J}function Y(p,J){p.pending_buf[p.pending++]=J>>>8&255,p.pending_buf[p.pending++]=255&J}function ne(p,J){var T,s,a=p.max_chain_length,m=p.strstart,B=p.prev_length,G=p.nice_match,H=p.strstart>p.w_size-ue?p.strstart-(p.w_size-ue):0,ie=p.window,oe=p.w_mask,ae=p.prev,he=p.strstart+Z,de=ie[m+B-1],we=ie[m+B];p.prev_length>=p.good_match&&(a>>=2),G>p.lookahead&&(G=p.lookahead);do if(ie[(T=J)+B]===we&&ie[T+B-1]===de&&ie[T]===ie[m]&&ie[++T]===ie[m+1]){m+=2,T++;do;while(ie[++m]===ie[++T]&&ie[++m]===ie[++T]&&ie[++m]===ie[++T]&&ie[++m]===ie[++T]&&ie[++m]===ie[++T]&&ie[++m]===ie[++T]&&ie[++m]===ie[++T]&&ie[++m]===ie[++T]&&m<he);if(s=Z-(he-m),m=he-Z,B<s){if(p.match_start=J,G<=(B=s))break;de=ie[m+B-1],we=ie[m+B]}}while((J=ae[J&oe])>H&&--a!=0);return B<=p.lookahead?B:p.lookahead}function K(p){var J,T,s,a,m,B,G,H,ie,oe,ae=p.w_size;do{if(a=p.window_size-p.lookahead-p.strstart,p.strstart>=ae+(ae-ue)){for(f.arraySet(p.window,p.window,ae,ae,0),p.match_start-=ae,p.strstart-=ae,p.block_start-=ae,J=T=p.hash_size;s=p.head[--J],p.head[J]=ae<=s?s-ae:0,--T;);for(J=T=ae;s=p.prev[--J],p.prev[J]=ae<=s?s-ae:0,--T;);a+=ae}if(p.strm.avail_in===0)break;if(B=p.strm,G=p.window,H=p.strstart+p.lookahead,ie=a,oe=void 0,oe=B.avail_in,ie<oe&&(oe=ie),T=oe===0?0:(B.avail_in-=oe,f.arraySet(G,B.input,B.next_in,oe,H),B.state.wrap===1?B.adler=h(B.adler,G,oe,H):B.state.wrap===2&&(B.adler=_(B.adler,G,oe,H)),B.next_in+=oe,B.total_in+=oe,oe),p.lookahead+=T,p.lookahead+p.insert>=k)for(m=p.strstart-p.insert,p.ins_h=p.window[m],p.ins_h=(p.ins_h<<p.hash_shift^p.window[m+1])&p.hash_mask;p.insert&&(p.ins_h=(p.ins_h<<p.hash_shift^p.window[m+k-1])&p.hash_mask,p.prev[m&p.w_mask]=p.head[p.ins_h],p.head[p.ins_h]=m,m++,p.insert--,!(p.lookahead+p.insert<k)););}while(p.lookahead<ue&&p.strm.avail_in!==0)}function x(p,J){for(var T,s;;){if(p.lookahead<ue){if(K(p),p.lookahead<ue&&J===R)return g;if(p.lookahead===0)break}if(T=0,p.lookahead>=k&&(p.ins_h=(p.ins_h<<p.hash_shift^p.window[p.strstart+k-1])&p.hash_mask,T=p.prev[p.strstart&p.w_mask]=p.head[p.ins_h],p.head[p.ins_h]=p.strstart),T!==0&&p.strstart-T<=p.w_size-ue&&(p.match_length=ne(p,T)),p.match_length>=k)if(s=n._tr_tally(p,p.strstart-p.match_start,p.match_length-k),p.lookahead-=p.match_length,p.match_length<=p.max_lazy_match&&p.lookahead>=k){for(p.match_length--;p.strstart++,p.ins_h=(p.ins_h<<p.hash_shift^p.window[p.strstart+k-1])&p.hash_mask,T=p.prev[p.strstart&p.w_mask]=p.head[p.ins_h],p.head[p.ins_h]=p.strstart,--p.match_length!=0;);p.strstart++}else p.strstart+=p.match_length,p.match_length=0,p.ins_h=p.window[p.strstart],p.ins_h=(p.ins_h<<p.hash_shift^p.window[p.strstart+1])&p.hash_mask;else s=n._tr_tally(p,0,p.window[p.strstart]),p.lookahead--,p.strstart++;if(s&&(D(p,!1),p.strm.avail_out===0))return g}return p.insert=p.strstart<k-1?p.strstart:k-1,J===I?(D(p,!0),p.strm.avail_out===0?te:z):p.last_lit&&(D(p,!1),p.strm.avail_out===0)?g:q}function y(p,J){for(var T,s,a;;){if(p.lookahead<ue){if(K(p),p.lookahead<ue&&J===R)return g;if(p.lookahead===0)break}if(T=0,p.lookahead>=k&&(p.ins_h=(p.ins_h<<p.hash_shift^p.window[p.strstart+k-1])&p.hash_mask,T=p.prev[p.strstart&p.w_mask]=p.head[p.ins_h],p.head[p.ins_h]=p.strstart),p.prev_length=p.match_length,p.prev_match=p.match_start,p.match_length=k-1,T!==0&&p.prev_length<p.max_lazy_match&&p.strstart-T<=p.w_size-ue&&(p.match_length=ne(p,T),p.match_length<=5&&(p.strategy===1||p.match_length===k&&4096<p.strstart-p.match_start)&&(p.match_length=k-1)),p.prev_length>=k&&p.match_length<=p.prev_length){for(a=p.strstart+p.lookahead-k,s=n._tr_tally(p,p.strstart-1-p.prev_match,p.prev_length-k),p.lookahead-=p.prev_length-1,p.prev_length-=2;++p.strstart<=a&&(p.ins_h=(p.ins_h<<p.hash_shift^p.window[p.strstart+k-1])&p.hash_mask,T=p.prev[p.strstart&p.w_mask]=p.head[p.ins_h],p.head[p.ins_h]=p.strstart),--p.prev_length!=0;);if(p.match_available=0,p.match_length=k-1,p.strstart++,s&&(D(p,!1),p.strm.avail_out===0))return g}else if(p.match_available){if((s=n._tr_tally(p,0,p.window[p.strstart-1]))&&D(p,!1),p.strstart++,p.lookahead--,p.strm.avail_out===0)return g}else p.match_available=1,p.strstart++,p.lookahead--}return p.match_available&&(s=n._tr_tally(p,0,p.window[p.strstart-1]),p.match_available=0),p.insert=p.strstart<k-1?p.strstart:k-1,J===I?(D(p,!0),p.strm.avail_out===0?te:z):p.last_lit&&(D(p,!1),p.strm.avail_out===0)?g:q}function j(p,J,T,s,a){this.good_length=p,this.max_lazy=J,this.nice_length=T,this.max_chain=s,this.func=a}function M(){this.strm=null,this.status=0,this.pending_buf=null,this.pending_buf_size=0,this.pending_out=0,this.pending=0,this.wrap=0,this.gzhead=null,this.gzindex=0,this.method=b,this.last_flush=-1,this.w_size=0,this.w_bits=0,this.w_mask=0,this.window=null,this.window_size=0,this.prev=null,this.head=null,this.ins_h=0,this.hash_size=0,this.hash_bits=0,this.hash_mask=0,this.hash_shift=0,this.block_start=0,this.match_length=0,this.prev_match=0,this.match_available=0,this.strstart=0,this.match_start=0,this.lookahead=0,this.prev_length=0,this.max_chain_length=0,this.max_lazy_match=0,this.level=0,this.strategy=0,this.good_match=0,this.nice_match=0,this.dyn_ltree=new f.Buf16(2*F),this.dyn_dtree=new f.Buf16(2*(2*S+1)),this.bl_tree=new f.Buf16(2*(2*L+1)),ce(this.dyn_ltree),ce(this.dyn_dtree),ce(this.bl_tree),this.l_desc=null,this.d_desc=null,this.bl_desc=null,this.bl_count=new f.Buf16(W+1),this.heap=new f.Buf16(2*c+1),ce(this.heap),this.heap_len=0,this.heap_max=0,this.depth=new f.Buf16(2*c+1),ce(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 O(p){var J;return p&&p.state?(p.total_in=p.total_out=0,p.data_type=l,(J=p.state).pending=0,J.pending_out=0,J.wrap<0&&(J.wrap=-J.wrap),J.status=J.wrap?C:U,p.adler=J.wrap===2?0:1,J.last_flush=R,n._tr_init(J),w):se(p,A)}function P(p){var J=O(p);return J===w&&function(T){T.window_size=2*T.w_size,ce(T.head),T.max_lazy_match=u[T.level].max_lazy,T.good_match=u[T.level].good_length,T.nice_match=u[T.level].nice_length,T.max_chain_length=u[T.level].max_chain,T.strstart=0,T.block_start=0,T.lookahead=0,T.insert=0,T.match_length=T.prev_length=k-1,T.match_available=0,T.ins_h=0}(p.state),J}function Q(p,J,T,s,a,m){if(!p)return A;var B=1;if(J===v&&(J=6),s<0?(B=0,s=-s):15<s&&(B=2,s-=16),a<1||d<a||T!==b||s<8||15<s||J<0||9<J||m<0||N<m)return se(p,A);s===8&&(s=9);var G=new M;return(p.state=G).strm=p,G.wrap=B,G.gzhead=null,G.w_bits=s,G.w_size=1<<G.w_bits,G.w_mask=G.w_size-1,G.hash_bits=a+7,G.hash_size=1<<G.hash_bits,G.hash_mask=G.hash_size-1,G.hash_shift=~~((G.hash_bits+k-1)/k),G.window=new f.Buf8(2*G.w_size),G.head=new f.Buf16(G.hash_size),G.prev=new f.Buf16(G.w_size),G.lit_bufsize=1<<a+6,G.pending_buf_size=4*G.lit_bufsize,G.pending_buf=new f.Buf8(G.pending_buf_size),G.d_buf=1*G.lit_bufsize,G.l_buf=3*G.lit_bufsize,G.level=J,G.strategy=m,G.method=T,P(p)}u=[new j(0,0,0,0,function(p,J){var T=65535;for(T>p.pending_buf_size-5&&(T=p.pending_buf_size-5);;){if(p.lookahead<=1){if(K(p),p.lookahead===0&&J===R)return g;if(p.lookahead===0)break}p.strstart+=p.lookahead,p.lookahead=0;var s=p.block_start+T;if((p.strstart===0||p.strstart>=s)&&(p.lookahead=p.strstart-s,p.strstart=s,D(p,!1),p.strm.avail_out===0)||p.strstart-p.block_start>=p.w_size-ue&&(D(p,!1),p.strm.avail_out===0))return g}return p.insert=0,J===I?(D(p,!0),p.strm.avail_out===0?te:z):(p.strstart>p.block_start&&(D(p,!1),p.strm.avail_out),g)}),new j(4,4,8,4,x),new j(4,5,16,8,x),new j(4,6,32,32,x),new j(4,4,16,16,y),new j(8,16,32,32,y),new j(8,16,128,128,y),new j(8,32,128,256,y),new j(32,128,258,1024,y),new j(32,258,258,4096,y)],o.deflateInit=function(p,J){return Q(p,J,b,15,8,0)},o.deflateInit2=Q,o.deflateReset=P,o.deflateResetKeep=O,o.deflateSetHeader=function(p,J){return p&&p.state?p.state.wrap!==2?A:(p.state.gzhead=J,w):A},o.deflate=function(p,J){var T,s,a,m;if(!p||!p.state||5<J||J<0)return p?se(p,A):A;if(s=p.state,!p.output||!p.input&&p.avail_in!==0||s.status===666&&J!==I)return se(p,p.avail_out===0?-5:A);if(s.strm=p,T=s.last_flush,s.last_flush=J,s.status===C)if(s.wrap===2)p.adler=0,$(s,31),$(s,139),$(s,8),s.gzhead?($(s,(s.gzhead.text?1:0)+(s.gzhead.hcrc?2:0)+(s.gzhead.extra?4:0)+(s.gzhead.name?8:0)+(s.gzhead.comment?16:0)),$(s,255&s.gzhead.time),$(s,s.gzhead.time>>8&255),$(s,s.gzhead.time>>16&255),$(s,s.gzhead.time>>24&255),$(s,s.level===9?2:2<=s.strategy||s.level<2?4:0),$(s,255&s.gzhead.os),s.gzhead.extra&&s.gzhead.extra.length&&($(s,255&s.gzhead.extra.length),$(s,s.gzhead.extra.length>>8&255)),s.gzhead.hcrc&&(p.adler=_(p.adler,s.pending_buf,s.pending,0)),s.gzindex=0,s.status=69):($(s,0),$(s,0),$(s,0),$(s,0),$(s,0),$(s,s.level===9?2:2<=s.strategy||s.level<2?4:0),$(s,3),s.status=U);else{var B=b+(s.w_bits-8<<4)<<8;B|=(2<=s.strategy||s.level<2?0:s.level<6?1:s.level===6?2:3)<<6,s.strstart!==0&&(B|=32),B+=31-B%31,s.status=U,Y(s,B),s.strstart!==0&&(Y(s,p.adler>>>16),Y(s,65535&p.adler)),p.adler=1}if(s.status===69)if(s.gzhead.extra){for(a=s.pending;s.gzindex<(65535&s.gzhead.extra.length)&&(s.pending!==s.pending_buf_size||(s.gzhead.hcrc&&s.pending>a&&(p.adler=_(p.adler,s.pending_buf,s.pending-a,a)),V(p),a=s.pending,s.pending!==s.pending_buf_size));)$(s,255&s.gzhead.extra[s.gzindex]),s.gzindex++;s.gzhead.hcrc&&s.pending>a&&(p.adler=_(p.adler,s.pending_buf,s.pending-a,a)),s.gzindex===s.gzhead.extra.length&&(s.gzindex=0,s.status=73)}else s.status=73;if(s.status===73)if(s.gzhead.name){a=s.pending;do{if(s.pending===s.pending_buf_size&&(s.gzhead.hcrc&&s.pending>a&&(p.adler=_(p.adler,s.pending_buf,s.pending-a,a)),V(p),a=s.pending,s.pending===s.pending_buf_size)){m=1;break}m=s.gzindex<s.gzhead.name.length?255&s.gzhead.name.charCodeAt(s.gzindex++):0,$(s,m)}while(m!==0);s.gzhead.hcrc&&s.pending>a&&(p.adler=_(p.adler,s.pending_buf,s.pending-a,a)),m===0&&(s.gzindex=0,s.status=91)}else s.status=91;if(s.status===91)if(s.gzhead.comment){a=s.pending;do{if(s.pending===s.pending_buf_size&&(s.gzhead.hcrc&&s.pending>a&&(p.adler=_(p.adler,s.pending_buf,s.pending-a,a)),V(p),a=s.pending,s.pending===s.pending_buf_size)){m=1;break}m=s.gzindex<s.gzhead.comment.length?255&s.gzhead.comment.charCodeAt(s.gzindex++):0,$(s,m)}while(m!==0);s.gzhead.hcrc&&s.pending>a&&(p.adler=_(p.adler,s.pending_buf,s.pending-a,a)),m===0&&(s.status=103)}else s.status=103;if(s.status===103&&(s.gzhead.hcrc?(s.pending+2>s.pending_buf_size&&V(p),s.pending+2<=s.pending_buf_size&&($(s,255&p.adler),$(s,p.adler>>8&255),p.adler=0,s.status=U)):s.status=U),s.pending!==0){if(V(p),p.avail_out===0)return s.last_flush=-1,w}else if(p.avail_in===0&&re(J)<=re(T)&&J!==I)return se(p,-5);if(s.status===666&&p.avail_in!==0)return se(p,-5);if(p.avail_in!==0||s.lookahead!==0||J!==R&&s.status!==666){var G=s.strategy===2?function(H,ie){for(var oe;;){if(H.lookahead===0&&(K(H),H.lookahead===0)){if(ie===R)return g;break}if(H.match_length=0,oe=n._tr_tally(H,0,H.window[H.strstart]),H.lookahead--,H.strstart++,oe&&(D(H,!1),H.strm.avail_out===0))return g}return H.insert=0,ie===I?(D(H,!0),H.strm.avail_out===0?te:z):H.last_lit&&(D(H,!1),H.strm.avail_out===0)?g:q}(s,J):s.strategy===3?function(H,ie){for(var oe,ae,he,de,we=H.window;;){if(H.lookahead<=Z){if(K(H),H.lookahead<=Z&&ie===R)return g;if(H.lookahead===0)break}if(H.match_length=0,H.lookahead>=k&&0<H.strstart&&(ae=we[he=H.strstart-1])===we[++he]&&ae===we[++he]&&ae===we[++he]){de=H.strstart+Z;do;while(ae===we[++he]&&ae===we[++he]&&ae===we[++he]&&ae===we[++he]&&ae===we[++he]&&ae===we[++he]&&ae===we[++he]&&ae===we[++he]&&he<de);H.match_length=Z-(de-he),H.match_length>H.lookahead&&(H.match_length=H.lookahead)}if(H.match_length>=k?(oe=n._tr_tally(H,1,H.match_length-k),H.lookahead-=H.match_length,H.strstart+=H.match_length,H.match_length=0):(oe=n._tr_tally(H,0,H.window[H.strstart]),H.lookahead--,H.strstart++),oe&&(D(H,!1),H.strm.avail_out===0))return g}return H.insert=0,ie===I?(D(H,!0),H.strm.avail_out===0?te:z):H.last_lit&&(D(H,!1),H.strm.avail_out===0)?g:q}(s,J):u[s.level].func(s,J);if(G!==te&&G!==z||(s.status=666),G===g||G===te)return p.avail_out===0&&(s.last_flush=-1),w;if(G===q&&(J===1?n._tr_align(s):J!==5&&(n._tr_stored_block(s,0,0,!1),J===3&&(ce(s.head),s.lookahead===0&&(s.strstart=0,s.block_start=0,s.insert=0))),V(p),p.avail_out===0))return s.last_flush=-1,w}return J!==I?w:s.wrap<=0?1:(s.wrap===2?($(s,255&p.adler),$(s,p.adler>>8&255),$(s,p.adler>>16&255),$(s,p.adler>>24&255),$(s,255&p.total_in),$(s,p.total_in>>8&255),$(s,p.total_in>>16&255),$(s,p.total_in>>24&255)):(Y(s,p.adler>>>16),Y(s,65535&p.adler)),V(p),0<s.wrap&&(s.wrap=-s.wrap),s.pending!==0?w:1)},o.deflateEnd=function(p){var J;return p&&p.state?(J=p.state.status)!==C&&J!==69&&J!==73&&J!==91&&J!==103&&J!==U&&J!==666?se(p,A):(p.state=null,J===U?se(p,-3):w):A},o.deflateSetDictionary=function(p,J){var T,s,a,m,B,G,H,ie,oe=J.length;if(!p||!p.state||(m=(T=p.state).wrap)===2||m===1&&T.status!==C||T.lookahead)return A;for(m===1&&(p.adler=h(p.adler,J,oe,0)),T.wrap=0,oe>=T.w_size&&(m===0&&(ce(T.head),T.strstart=0,T.block_start=0,T.insert=0),ie=new f.Buf8(T.w_size),f.arraySet(ie,J,oe-T.w_size,T.w_size,0),J=ie,oe=T.w_size),B=p.avail_in,G=p.next_in,H=p.input,p.avail_in=oe,p.next_in=0,p.input=J,K(T);T.lookahead>=k;){for(s=T.strstart,a=T.lookahead-(k-1);T.ins_h=(T.ins_h<<T.hash_shift^T.window[s+k-1])&T.hash_mask,T.prev[s&T.w_mask]=T.head[T.ins_h],T.head[T.ins_h]=s,s++,--a;);T.strstart=s,T.lookahead=k-1,K(T)}return T.strstart+=T.lookahead,T.block_start=T.strstart,T.insert=T.lookahead,T.lookahead=0,T.match_length=T.prev_length=k-1,T.match_available=0,p.next_in=G,p.input=H,p.avail_in=B,T.wrap=m,w},o.deflateInfo="pako deflate (from Nodeca project)"},{"../utils/common":41,"./adler32":43,"./crc32":45,"./messages":51,"./trees":52}],47:[function(r,i,o){i.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}},{}],48:[function(r,i,o){i.exports=function(u,f){var n,h,_,E,R,I,w,A,v,N,l,b,d,c,S,L,F,W,k,Z,ue,C,U,g,q;n=u.state,h=u.next_in,g=u.input,_=h+(u.avail_in-5),E=u.next_out,q=u.output,R=E-(f-u.avail_out),I=E+(u.avail_out-257),w=n.dmax,A=n.wsize,v=n.whave,N=n.wnext,l=n.window,b=n.hold,d=n.bits,c=n.lencode,S=n.distcode,L=(1<<n.lenbits)-1,F=(1<<n.distbits)-1;e:do{d<15&&(b+=g[h++]<<d,d+=8,b+=g[h++]<<d,d+=8),W=c[b&L];t:for(;;){if(b>>>=k=W>>>24,d-=k,(k=W>>>16&255)===0)q[E++]=65535&W;else{if(!(16&k)){if((64&k)==0){W=c[(65535&W)+(b&(1<<k)-1)];continue t}if(32&k){n.mode=12;break e}u.msg="invalid literal/length code",n.mode=30;break e}Z=65535&W,(k&=15)&&(d<k&&(b+=g[h++]<<d,d+=8),Z+=b&(1<<k)-1,b>>>=k,d-=k),d<15&&(b+=g[h++]<<d,d+=8,b+=g[h++]<<d,d+=8),W=S[b&F];r:for(;;){if(b>>>=k=W>>>24,d-=k,!(16&(k=W>>>16&255))){if((64&k)==0){W=S[(65535&W)+(b&(1<<k)-1)];continue r}u.msg="invalid distance code",n.mode=30;break e}if(ue=65535&W,d<(k&=15)&&(b+=g[h++]<<d,(d+=8)<k&&(b+=g[h++]<<d,d+=8)),w<(ue+=b&(1<<k)-1)){u.msg="invalid distance too far back",n.mode=30;break e}if(b>>>=k,d-=k,(k=E-R)<ue){if(v<(k=ue-k)&&n.sane){u.msg="invalid distance too far back",n.mode=30;break e}if(U=l,(C=0)===N){if(C+=A-k,k<Z){for(Z-=k;q[E++]=l[C++],--k;);C=E-ue,U=q}}else if(N<k){if(C+=A+N-k,(k-=N)<Z){for(Z-=k;q[E++]=l[C++],--k;);if(C=0,N<Z){for(Z-=k=N;q[E++]=l[C++],--k;);C=E-ue,U=q}}}else if(C+=N-k,k<Z){for(Z-=k;q[E++]=l[C++],--k;);C=E-ue,U=q}for(;2<Z;)q[E++]=U[C++],q[E++]=U[C++],q[E++]=U[C++],Z-=3;Z&&(q[E++]=U[C++],1<Z&&(q[E++]=U[C++]))}else{for(C=E-ue;q[E++]=q[C++],q[E++]=q[C++],q[E++]=q[C++],2<(Z-=3););Z&&(q[E++]=q[C++],1<Z&&(q[E++]=q[C++]))}break}}break}}while(h<_&&E<I);h-=Z=d>>3,b&=(1<<(d-=Z<<3))-1,u.next_in=h,u.next_out=E,u.avail_in=h<_?_-h+5:5-(h-_),u.avail_out=E<I?I-E+257:257-(E-I),n.hold=b,n.bits=d}},{}],49:[function(r,i,o){var u=r("../utils/common"),f=r("./adler32"),n=r("./crc32"),h=r("./inffast"),_=r("./inftrees"),E=1,R=2,I=0,w=-2,A=1,v=852,N=592;function l(C){return(C>>>24&255)+(C>>>8&65280)+((65280&C)<<8)+((255&C)<<24)}function b(){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 u.Buf16(320),this.work=new u.Buf16(288),this.lendyn=null,this.distdyn=null,this.sane=0,this.back=0,this.was=0}function d(C){var U;return C&&C.state?(U=C.state,C.total_in=C.total_out=U.total=0,C.msg="",U.wrap&&(C.adler=1&U.wrap),U.mode=A,U.last=0,U.havedict=0,U.dmax=32768,U.head=null,U.hold=0,U.bits=0,U.lencode=U.lendyn=new u.Buf32(v),U.distcode=U.distdyn=new u.Buf32(N),U.sane=1,U.back=-1,I):w}function c(C){var U;return C&&C.state?((U=C.state).wsize=0,U.whave=0,U.wnext=0,d(C)):w}function S(C,U){var g,q;return C&&C.state?(q=C.state,U<0?(g=0,U=-U):(g=1+(U>>4),U<48&&(U&=15)),U&&(U<8||15<U)?w:(q.window!==null&&q.wbits!==U&&(q.window=null),q.wrap=g,q.wbits=U,c(C))):w}function L(C,U){var g,q;return C?(q=new b,(C.state=q).window=null,(g=S(C,U))!==I&&(C.state=null),g):w}var F,W,k=!0;function Z(C){if(k){var U;for(F=new u.Buf32(512),W=new u.Buf32(32),U=0;U<144;)C.lens[U++]=8;for(;U<256;)C.lens[U++]=9;for(;U<280;)C.lens[U++]=7;for(;U<288;)C.lens[U++]=8;for(_(E,C.lens,0,288,F,0,C.work,{bits:9}),U=0;U<32;)C.lens[U++]=5;_(R,C.lens,0,32,W,0,C.work,{bits:5}),k=!1}C.lencode=F,C.lenbits=9,C.distcode=W,C.distbits=5}function ue(C,U,g,q){var te,z=C.state;return z.window===null&&(z.wsize=1<<z.wbits,z.wnext=0,z.whave=0,z.window=new u.Buf8(z.wsize)),q>=z.wsize?(u.arraySet(z.window,U,g-z.wsize,z.wsize,0),z.wnext=0,z.whave=z.wsize):(q<(te=z.wsize-z.wnext)&&(te=q),u.arraySet(z.window,U,g-q,te,z.wnext),(q-=te)?(u.arraySet(z.window,U,g-q,q,0),z.wnext=q,z.whave=z.wsize):(z.wnext+=te,z.wnext===z.wsize&&(z.wnext=0),z.whave<z.wsize&&(z.whave+=te))),0}o.inflateReset=c,o.inflateReset2=S,o.inflateResetKeep=d,o.inflateInit=function(C){return L(C,15)},o.inflateInit2=L,o.inflate=function(C,U){var g,q,te,z,se,re,ce,V,D,$,Y,ne,K,x,y,j,M,O,P,Q,p,J,T,s,a=0,m=new u.Buf8(4),B=[16,17,18,0,8,7,9,6,10,5,11,4,12,3,13,2,14,1,15];if(!C||!C.state||!C.output||!C.input&&C.avail_in!==0)return w;(g=C.state).mode===12&&(g.mode=13),se=C.next_out,te=C.output,ce=C.avail_out,z=C.next_in,q=C.input,re=C.avail_in,V=g.hold,D=g.bits,$=re,Y=ce,J=I;e:for(;;)switch(g.mode){case A:if(g.wrap===0){g.mode=13;break}for(;D<16;){if(re===0)break e;re--,V+=q[z++]<<D,D+=8}if(2&g.wrap&&V===35615){m[g.check=0]=255&V,m[1]=V>>>8&255,g.check=n(g.check,m,2,0),D=V=0,g.mode=2;break}if(g.flags=0,g.head&&(g.head.done=!1),!(1&g.wrap)||(((255&V)<<8)+(V>>8))%31){C.msg="incorrect header check",g.mode=30;break}if((15&V)!=8){C.msg="unknown compression method",g.mode=30;break}if(D-=4,p=8+(15&(V>>>=4)),g.wbits===0)g.wbits=p;else if(p>g.wbits){C.msg="invalid window size",g.mode=30;break}g.dmax=1<<p,C.adler=g.check=1,g.mode=512&V?10:12,D=V=0;break;case 2:for(;D<16;){if(re===0)break e;re--,V+=q[z++]<<D,D+=8}if(g.flags=V,(255&g.flags)!=8){C.msg="unknown compression method",g.mode=30;break}if(57344&g.flags){C.msg="unknown header flags set",g.mode=30;break}g.head&&(g.head.text=V>>8&1),512&g.flags&&(m[0]=255&V,m[1]=V>>>8&255,g.check=n(g.check,m,2,0)),D=V=0,g.mode=3;case 3:for(;D<32;){if(re===0)break e;re--,V+=q[z++]<<D,D+=8}g.head&&(g.head.time=V),512&g.flags&&(m[0]=255&V,m[1]=V>>>8&255,m[2]=V>>>16&255,m[3]=V>>>24&255,g.check=n(g.check,m,4,0)),D=V=0,g.mode=4;case 4:for(;D<16;){if(re===0)break e;re--,V+=q[z++]<<D,D+=8}g.head&&(g.head.xflags=255&V,g.head.os=V>>8),512&g.flags&&(m[0]=255&V,m[1]=V>>>8&255,g.check=n(g.check,m,2,0)),D=V=0,g.mode=5;case 5:if(1024&g.flags){for(;D<16;){if(re===0)break e;re--,V+=q[z++]<<D,D+=8}g.length=V,g.head&&(g.head.extra_len=V),512&g.flags&&(m[0]=255&V,m[1]=V>>>8&255,g.check=n(g.check,m,2,0)),D=V=0}else g.head&&(g.head.extra=null);g.mode=6;case 6:if(1024&g.flags&&(re<(ne=g.length)&&(ne=re),ne&&(g.head&&(p=g.head.extra_len-g.length,g.head.extra||(g.head.extra=new Array(g.head.extra_len)),u.arraySet(g.head.extra,q,z,ne,p)),512&g.flags&&(g.check=n(g.check,q,ne,z)),re-=ne,z+=ne,g.length-=ne),g.length))break e;g.length=0,g.mode=7;case 7:if(2048&g.flags){if(re===0)break e;for(ne=0;p=q[z+ne++],g.head&&p&&g.length<65536&&(g.head.name+=String.fromCharCode(p)),p&&ne<re;);if(512&g.flags&&(g.check=n(g.check,q,ne,z)),re-=ne,z+=ne,p)break e}else g.head&&(g.head.name=null);g.length=0,g.mode=8;case 8:if(4096&g.flags){if(re===0)break e;for(ne=0;p=q[z+ne++],g.head&&p&&g.length<65536&&(g.head.comment+=String.fromCharCode(p)),p&&ne<re;);if(512&g.flags&&(g.check=n(g.check,q,ne,z)),re-=ne,z+=ne,p)break e}else g.head&&(g.head.comment=null);g.mode=9;case 9:if(512&g.flags){for(;D<16;){if(re===0)break e;re--,V+=q[z++]<<D,D+=8}if(V!==(65535&g.check)){C.msg="header crc mismatch",g.mode=30;break}D=V=0}g.head&&(g.head.hcrc=g.flags>>9&1,g.head.done=!0),C.adler=g.check=0,g.mode=12;break;case 10:for(;D<32;){if(re===0)break e;re--,V+=q[z++]<<D,D+=8}C.adler=g.check=l(V),D=V=0,g.mode=11;case 11:if(g.havedict===0)return C.next_out=se,C.avail_out=ce,C.next_in=z,C.avail_in=re,g.hold=V,g.bits=D,2;C.adler=g.check=1,g.mode=12;case 12:if(U===5||U===6)break e;case 13:if(g.last){V>>>=7&D,D-=7&D,g.mode=27;break}for(;D<3;){if(re===0)break e;re--,V+=q[z++]<<D,D+=8}switch(g.last=1&V,D-=1,3&(V>>>=1)){case 0:g.mode=14;break;case 1:if(Z(g),g.mode=20,U!==6)break;V>>>=2,D-=2;break e;case 2:g.mode=17;break;case 3:C.msg="invalid block type",g.mode=30}V>>>=2,D-=2;break;case 14:for(V>>>=7&D,D-=7&D;D<32;){if(re===0)break e;re--,V+=q[z++]<<D,D+=8}if((65535&V)!=(V>>>16^65535)){C.msg="invalid stored block lengths",g.mode=30;break}if(g.length=65535&V,D=V=0,g.mode=15,U===6)break e;case 15:g.mode=16;case 16:if(ne=g.length){if(re<ne&&(ne=re),ce<ne&&(ne=ce),ne===0)break e;u.arraySet(te,q,z,ne,se),re-=ne,z+=ne,ce-=ne,se+=ne,g.length-=ne;break}g.mode=12;break;case 17:for(;D<14;){if(re===0)break e;re--,V+=q[z++]<<D,D+=8}if(g.nlen=257+(31&V),V>>>=5,D-=5,g.ndist=1+(31&V),V>>>=5,D-=5,g.ncode=4+(15&V),V>>>=4,D-=4,286<g.nlen||30<g.ndist){C.msg="too many length or distance symbols",g.mode=30;break}g.have=0,g.mode=18;case 18:for(;g.have<g.ncode;){for(;D<3;){if(re===0)break e;re--,V+=q[z++]<<D,D+=8}g.lens[B[g.have++]]=7&V,V>>>=3,D-=3}for(;g.have<19;)g.lens[B[g.have++]]=0;if(g.lencode=g.lendyn,g.lenbits=7,T={bits:g.lenbits},J=_(0,g.lens,0,19,g.lencode,0,g.work,T),g.lenbits=T.bits,J){C.msg="invalid code lengths set",g.mode=30;break}g.have=0,g.mode=19;case 19:for(;g.have<g.nlen+g.ndist;){for(;j=(a=g.lencode[V&(1<<g.lenbits)-1])>>>16&255,M=65535&a,!((y=a>>>24)<=D);){if(re===0)break e;re--,V+=q[z++]<<D,D+=8}if(M<16)V>>>=y,D-=y,g.lens[g.have++]=M;else{if(M===16){for(s=y+2;D<s;){if(re===0)break e;re--,V+=q[z++]<<D,D+=8}if(V>>>=y,D-=y,g.have===0){C.msg="invalid bit length repeat",g.mode=30;break}p=g.lens[g.have-1],ne=3+(3&V),V>>>=2,D-=2}else if(M===17){for(s=y+3;D<s;){if(re===0)break e;re--,V+=q[z++]<<D,D+=8}D-=y,p=0,ne=3+(7&(V>>>=y)),V>>>=3,D-=3}else{for(s=y+7;D<s;){if(re===0)break e;re--,V+=q[z++]<<D,D+=8}D-=y,p=0,ne=11+(127&(V>>>=y)),V>>>=7,D-=7}if(g.have+ne>g.nlen+g.ndist){C.msg="invalid bit length repeat",g.mode=30;break}for(;ne--;)g.lens[g.have++]=p}}if(g.mode===30)break;if(g.lens[256]===0){C.msg="invalid code -- missing end-of-block",g.mode=30;break}if(g.lenbits=9,T={bits:g.lenbits},J=_(E,g.lens,0,g.nlen,g.lencode,0,g.work,T),g.lenbits=T.bits,J){C.msg="invalid literal/lengths set",g.mode=30;break}if(g.distbits=6,g.distcode=g.distdyn,T={bits:g.distbits},J=_(R,g.lens,g.nlen,g.ndist,g.distcode,0,g.work,T),g.distbits=T.bits,J){C.msg="invalid distances set",g.mode=30;break}if(g.mode=20,U===6)break e;case 20:g.mode=21;case 21:if(6<=re&&258<=ce){C.next_out=se,C.avail_out=ce,C.next_in=z,C.avail_in=re,g.hold=V,g.bits=D,h(C,Y),se=C.next_out,te=C.output,ce=C.avail_out,z=C.next_in,q=C.input,re=C.avail_in,V=g.hold,D=g.bits,g.mode===12&&(g.back=-1);break}for(g.back=0;j=(a=g.lencode[V&(1<<g.lenbits)-1])>>>16&255,M=65535&a,!((y=a>>>24)<=D);){if(re===0)break e;re--,V+=q[z++]<<D,D+=8}if(j&&(240&j)==0){for(O=y,P=j,Q=M;j=(a=g.lencode[Q+((V&(1<<O+P)-1)>>O)])>>>16&255,M=65535&a,!(O+(y=a>>>24)<=D);){if(re===0)break e;re--,V+=q[z++]<<D,D+=8}V>>>=O,D-=O,g.back+=O}if(V>>>=y,D-=y,g.back+=y,g.length=M,j===0){g.mode=26;break}if(32&j){g.back=-1,g.mode=12;break}if(64&j){C.msg="invalid literal/length code",g.mode=30;break}g.extra=15&j,g.mode=22;case 22:if(g.extra){for(s=g.extra;D<s;){if(re===0)break e;re--,V+=q[z++]<<D,D+=8}g.length+=V&(1<<g.extra)-1,V>>>=g.extra,D-=g.extra,g.back+=g.extra}g.was=g.length,g.mode=23;case 23:for(;j=(a=g.distcode[V&(1<<g.distbits)-1])>>>16&255,M=65535&a,!((y=a>>>24)<=D);){if(re===0)break e;re--,V+=q[z++]<<D,D+=8}if((240&j)==0){for(O=y,P=j,Q=M;j=(a=g.distcode[Q+((V&(1<<O+P)-1)>>O)])>>>16&255,M=65535&a,!(O+(y=a>>>24)<=D);){if(re===0)break e;re--,V+=q[z++]<<D,D+=8}V>>>=O,D-=O,g.back+=O}if(V>>>=y,D-=y,g.back+=y,64&j){C.msg="invalid distance code",g.mode=30;break}g.offset=M,g.extra=15&j,g.mode=24;case 24:if(g.extra){for(s=g.extra;D<s;){if(re===0)break e;re--,V+=q[z++]<<D,D+=8}g.offset+=V&(1<<g.extra)-1,V>>>=g.extra,D-=g.extra,g.back+=g.extra}if(g.offset>g.dmax){C.msg="invalid distance too far back",g.mode=30;break}g.mode=25;case 25:if(ce===0)break e;if(ne=Y-ce,g.offset>ne){if((ne=g.offset-ne)>g.whave&&g.sane){C.msg="invalid distance too far back",g.mode=30;break}K=ne>g.wnext?(ne-=g.wnext,g.wsize-ne):g.wnext-ne,ne>g.length&&(ne=g.length),x=g.window}else x=te,K=se-g.offset,ne=g.length;for(ce<ne&&(ne=ce),ce-=ne,g.length-=ne;te[se++]=x[K++],--ne;);g.length===0&&(g.mode=21);break;case 26:if(ce===0)break e;te[se++]=g.length,ce--,g.mode=21;break;case 27:if(g.wrap){for(;D<32;){if(re===0)break e;re--,V|=q[z++]<<D,D+=8}if(Y-=ce,C.total_out+=Y,g.total+=Y,Y&&(C.adler=g.check=g.flags?n(g.check,te,Y,se-Y):f(g.check,te,Y,se-Y)),Y=ce,(g.flags?V:l(V))!==g.check){C.msg="incorrect data check",g.mode=30;break}D=V=0}g.mode=28;case 28:if(g.wrap&&g.flags){for(;D<32;){if(re===0)break e;re--,V+=q[z++]<<D,D+=8}if(V!==(4294967295&g.total)){C.msg="incorrect length check",g.mode=30;break}D=V=0}g.mode=29;case 29:J=1;break e;case 30:J=-3;break e;case 31:return-4;case 32:default:return w}return C.next_out=se,C.avail_out=ce,C.next_in=z,C.avail_in=re,g.hold=V,g.bits=D,(g.wsize||Y!==C.avail_out&&g.mode<30&&(g.mode<27||U!==4))&&ue(C,C.output,C.next_out,Y-C.avail_out)?(g.mode=31,-4):($-=C.avail_in,Y-=C.avail_out,C.total_in+=$,C.total_out+=Y,g.total+=Y,g.wrap&&Y&&(C.adler=g.check=g.flags?n(g.check,te,Y,C.next_out-Y):f(g.check,te,Y,C.next_out-Y)),C.data_type=g.bits+(g.last?64:0)+(g.mode===12?128:0)+(g.mode===20||g.mode===15?256:0),($==0&&Y===0||U===4)&&J===I&&(J=-5),J)},o.inflateEnd=function(C){if(!C||!C.state)return w;var U=C.state;return U.window&&(U.window=null),C.state=null,I},o.inflateGetHeader=function(C,U){var g;return C&&C.state?(2&(g=C.state).wrap)==0?w:((g.head=U).done=!1,I):w},o.inflateSetDictionary=function(C,U){var g,q=U.length;return C&&C.state?(g=C.state).wrap!==0&&g.mode!==11?w:g.mode===11&&f(1,U,q,0)!==g.check?-3:ue(C,U,q,q)?(g.mode=31,-4):(g.havedict=1,I):w},o.inflateInfo="pako inflate (from Nodeca project)"},{"../utils/common":41,"./adler32":43,"./crc32":45,"./inffast":48,"./inftrees":50}],50:[function(r,i,o){var u=r("../utils/common"),f=[3,4,5,6,7,8,9,10,11,13,15,17,19,23,27,31,35,43,51,59,67,83,99,115,131,163,195,227,258,0,0],n=[16,16,16,16,16,16,16,16,17,17,17,17,18,18,18,18,19,19,19,19,20,20,20,20,21,21,21,21,16,72,78],h=[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],_=[16,16,16,16,17,17,18,18,19,19,20,20,21,21,22,22,23,23,24,24,25,25,26,26,27,27,28,28,29,29,64,64];i.exports=function(E,R,I,w,A,v,N,l){var b,d,c,S,L,F,W,k,Z,ue=l.bits,C=0,U=0,g=0,q=0,te=0,z=0,se=0,re=0,ce=0,V=0,D=null,$=0,Y=new u.Buf16(16),ne=new u.Buf16(16),K=null,x=0;for(C=0;C<=15;C++)Y[C]=0;for(U=0;U<w;U++)Y[R[I+U]]++;for(te=ue,q=15;1<=q&&Y[q]===0;q--);if(q<te&&(te=q),q===0)return A[v++]=20971520,A[v++]=20971520,l.bits=1,0;for(g=1;g<q&&Y[g]===0;g++);for(te<g&&(te=g),C=re=1;C<=15;C++)if(re<<=1,(re-=Y[C])<0)return-1;if(0<re&&(E===0||q!==1))return-1;for(ne[1]=0,C=1;C<15;C++)ne[C+1]=ne[C]+Y[C];for(U=0;U<w;U++)R[I+U]!==0&&(N[ne[R[I+U]]++]=U);if(F=E===0?(D=K=N,19):E===1?(D=f,$-=257,K=n,x-=257,256):(D=h,K=_,-1),C=g,L=v,se=U=V=0,c=-1,S=(ce=1<<(z=te))-1,E===1&&852<ce||E===2&&592<ce)return 1;for(;;){for(W=C-se,Z=N[U]<F?(k=0,N[U]):N[U]>F?(k=K[x+N[U]],D[$+N[U]]):(k=96,0),b=1<<C-se,g=d=1<<z;A[L+(V>>se)+(d-=b)]=W<<24|k<<16|Z|0,d!==0;);for(b=1<<C-1;V&b;)b>>=1;if(b!==0?(V&=b-1,V+=b):V=0,U++,--Y[C]==0){if(C===q)break;C=R[I+N[U]]}if(te<C&&(V&S)!==c){for(se===0&&(se=te),L+=g,re=1<<(z=C-se);z+se<q&&!((re-=Y[z+se])<=0);)z++,re<<=1;if(ce+=1<<z,E===1&&852<ce||E===2&&592<ce)return 1;A[c=V&S]=te<<24|z<<16|L-v|0}}return V!==0&&(A[L+V]=C-se<<24|64<<16|0),l.bits=te,0}},{"../utils/common":41}],51:[function(r,i,o){i.exports={2:"need dictionary",1:"stream end",0:"","-1":"file error","-2":"stream error","-3":"data error","-4":"insufficient memory","-5":"buffer error","-6":"incompatible version"}},{}],52:[function(r,i,o){var u=r("../utils/common"),f=0,n=1;function h(a){for(var m=a.length;0<=--m;)a[m]=0}var _=0,E=29,R=256,I=R+1+E,w=30,A=19,v=2*I+1,N=15,l=16,b=7,d=256,c=16,S=17,L=18,F=[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],W=[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],k=[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,2,3,7],Z=[16,17,18,0,8,7,9,6,10,5,11,4,12,3,13,2,14,1,15],ue=new Array(2*(I+2));h(ue);var C=new Array(2*w);h(C);var U=new Array(512);h(U);var g=new Array(256);h(g);var q=new Array(E);h(q);var te,z,se,re=new Array(w);function ce(a,m,B,G,H){this.static_tree=a,this.extra_bits=m,this.extra_base=B,this.elems=G,this.max_length=H,this.has_stree=a&&a.length}function V(a,m){this.dyn_tree=a,this.max_code=0,this.stat_desc=m}function D(a){return a<256?U[a]:U[256+(a>>>7)]}function $(a,m){a.pending_buf[a.pending++]=255&m,a.pending_buf[a.pending++]=m>>>8&255}function Y(a,m,B){a.bi_valid>l-B?(a.bi_buf|=m<<a.bi_valid&65535,$(a,a.bi_buf),a.bi_buf=m>>l-a.bi_valid,a.bi_valid+=B-l):(a.bi_buf|=m<<a.bi_valid&65535,a.bi_valid+=B)}function ne(a,m,B){Y(a,B[2*m],B[2*m+1])}function K(a,m){for(var B=0;B|=1&a,a>>>=1,B<<=1,0<--m;);return B>>>1}function x(a,m,B){var G,H,ie=new Array(N+1),oe=0;for(G=1;G<=N;G++)ie[G]=oe=oe+B[G-1]<<1;for(H=0;H<=m;H++){var ae=a[2*H+1];ae!==0&&(a[2*H]=K(ie[ae]++,ae))}}function y(a){var m;for(m=0;m<I;m++)a.dyn_ltree[2*m]=0;for(m=0;m<w;m++)a.dyn_dtree[2*m]=0;for(m=0;m<A;m++)a.bl_tree[2*m]=0;a.dyn_ltree[2*d]=1,a.opt_len=a.static_len=0,a.last_lit=a.matches=0}function j(a){8<a.bi_valid?$(a,a.bi_buf):0<a.bi_valid&&(a.pending_buf[a.pending++]=a.bi_buf),a.bi_buf=0,a.bi_valid=0}function M(a,m,B,G){var H=2*m,ie=2*B;return a[H]<a[ie]||a[H]===a[ie]&&G[m]<=G[B]}function O(a,m,B){for(var G=a.heap[B],H=B<<1;H<=a.heap_len&&(H<a.heap_len&&M(m,a.heap[H+1],a.heap[H],a.depth)&&H++,!M(m,G,a.heap[H],a.depth));)a.heap[B]=a.heap[H],B=H,H<<=1;a.heap[B]=G}function P(a,m,B){var G,H,ie,oe,ae=0;if(a.last_lit!==0)for(;G=a.pending_buf[a.d_buf+2*ae]<<8|a.pending_buf[a.d_buf+2*ae+1],H=a.pending_buf[a.l_buf+ae],ae++,G===0?ne(a,H,m):(ne(a,(ie=g[H])+R+1,m),(oe=F[ie])!==0&&Y(a,H-=q[ie],oe),ne(a,ie=D(--G),B),(oe=W[ie])!==0&&Y(a,G-=re[ie],oe)),ae<a.last_lit;);ne(a,d,m)}function Q(a,m){var B,G,H,ie=m.dyn_tree,oe=m.stat_desc.static_tree,ae=m.stat_desc.has_stree,he=m.stat_desc.elems,de=-1;for(a.heap_len=0,a.heap_max=v,B=0;B<he;B++)ie[2*B]!==0?(a.heap[++a.heap_len]=de=B,a.depth[B]=0):ie[2*B+1]=0;for(;a.heap_len<2;)ie[2*(H=a.heap[++a.heap_len]=de<2?++de:0)]=1,a.depth[H]=0,a.opt_len--,ae&&(a.static_len-=oe[2*H+1]);for(m.max_code=de,B=a.heap_len>>1;1<=B;B--)O(a,ie,B);for(H=he;B=a.heap[1],a.heap[1]=a.heap[a.heap_len--],O(a,ie,1),G=a.heap[1],a.heap[--a.heap_max]=B,a.heap[--a.heap_max]=G,ie[2*H]=ie[2*B]+ie[2*G],a.depth[H]=(a.depth[B]>=a.depth[G]?a.depth[B]:a.depth[G])+1,ie[2*B+1]=ie[2*G+1]=H,a.heap[1]=H++,O(a,ie,1),2<=a.heap_len;);a.heap[--a.heap_max]=a.heap[1],function(we,Ie){var Qe,Fe,xt,Ee,Ht,mr,qe=Ie.dyn_tree,Bi=Ie.max_code,yu=Ie.stat_desc.static_tree,vu=Ie.stat_desc.has_stree,bu=Ie.stat_desc.extra_bits,Mi=Ie.stat_desc.extra_base,Tt=Ie.stat_desc.max_length,Wt=0;for(Ee=0;Ee<=N;Ee++)we.bl_count[Ee]=0;for(qe[2*we.heap[we.heap_max]+1]=0,Qe=we.heap_max+1;Qe<v;Qe++)Tt<(Ee=qe[2*qe[2*(Fe=we.heap[Qe])+1]+1]+1)&&(Ee=Tt,Wt++),qe[2*Fe+1]=Ee,Bi<Fe||(we.bl_count[Ee]++,Ht=0,Mi<=Fe&&(Ht=bu[Fe-Mi]),mr=qe[2*Fe],we.opt_len+=mr*(Ee+Ht),vu&&(we.static_len+=mr*(yu[2*Fe+1]+Ht)));if(Wt!==0){do{for(Ee=Tt-1;we.bl_count[Ee]===0;)Ee--;we.bl_count[Ee]--,we.bl_count[Ee+1]+=2,we.bl_count[Tt]--,Wt-=2}while(0<Wt);for(Ee=Tt;Ee!==0;Ee--)for(Fe=we.bl_count[Ee];Fe!==0;)Bi<(xt=we.heap[--Qe])||(qe[2*xt+1]!==Ee&&(we.opt_len+=(Ee-qe[2*xt+1])*qe[2*xt],qe[2*xt+1]=Ee),Fe--)}}(a,m),x(ie,de,a.bl_count)}function p(a,m,B){var G,H,ie=-1,oe=m[1],ae=0,he=7,de=4;for(oe===0&&(he=138,de=3),m[2*(B+1)+1]=65535,G=0;G<=B;G++)H=oe,oe=m[2*(G+1)+1],++ae<he&&H===oe||(ae<de?a.bl_tree[2*H]+=ae:H!==0?(H!==ie&&a.bl_tree[2*H]++,a.bl_tree[2*c]++):ae<=10?a.bl_tree[2*S]++:a.bl_tree[2*L]++,ie=H,de=(ae=0)===oe?(he=138,3):H===oe?(he=6,3):(he=7,4))}function J(a,m,B){var G,H,ie=-1,oe=m[1],ae=0,he=7,de=4;for(oe===0&&(he=138,de=3),G=0;G<=B;G++)if(H=oe,oe=m[2*(G+1)+1],!(++ae<he&&H===oe)){if(ae<de)for(;ne(a,H,a.bl_tree),--ae!=0;);else H!==0?(H!==ie&&(ne(a,H,a.bl_tree),ae--),ne(a,c,a.bl_tree),Y(a,ae-3,2)):ae<=10?(ne(a,S,a.bl_tree),Y(a,ae-3,3)):(ne(a,L,a.bl_tree),Y(a,ae-11,7));ie=H,de=(ae=0)===oe?(he=138,3):H===oe?(he=6,3):(he=7,4)}}h(re);var T=!1;function s(a,m,B,G){Y(a,(_<<1)+(G?1:0),3),function(H,ie,oe,ae){j(H),$(H,oe),$(H,~oe),u.arraySet(H.pending_buf,H.window,ie,oe,H.pending),H.pending+=oe}(a,m,B)}o._tr_init=function(a){T||(function(){var m,B,G,H,ie,oe=new Array(N+1);for(H=G=0;H<E-1;H++)for(q[H]=G,m=0;m<1<<F[H];m++)g[G++]=H;for(g[G-1]=H,H=ie=0;H<16;H++)for(re[H]=ie,m=0;m<1<<W[H];m++)U[ie++]=H;for(ie>>=7;H<w;H++)for(re[H]=ie<<7,m=0;m<1<<W[H]-7;m++)U[256+ie++]=H;for(B=0;B<=N;B++)oe[B]=0;for(m=0;m<=143;)ue[2*m+1]=8,m++,oe[8]++;for(;m<=255;)ue[2*m+1]=9,m++,oe[9]++;for(;m<=279;)ue[2*m+1]=7,m++,oe[7]++;for(;m<=287;)ue[2*m+1]=8,m++,oe[8]++;for(x(ue,I+1,oe),m=0;m<w;m++)C[2*m+1]=5,C[2*m]=K(m,5);te=new ce(ue,F,R+1,I,N),z=new ce(C,W,0,w,N),se=new ce(new Array(0),k,0,A,b)}(),T=!0),a.l_desc=new V(a.dyn_ltree,te),a.d_desc=new V(a.dyn_dtree,z),a.bl_desc=new V(a.bl_tree,se),a.bi_buf=0,a.bi_valid=0,y(a)},o._tr_stored_block=s,o._tr_flush_block=function(a,m,B,G){var H,ie,oe=0;0<a.level?(a.strm.data_type===2&&(a.strm.data_type=function(ae){var he,de=4093624447;for(he=0;he<=31;he++,de>>>=1)if(1&de&&ae.dyn_ltree[2*he]!==0)return f;if(ae.dyn_ltree[18]!==0||ae.dyn_ltree[20]!==0||ae.dyn_ltree[26]!==0)return n;for(he=32;he<R;he++)if(ae.dyn_ltree[2*he]!==0)return n;return f}(a)),Q(a,a.l_desc),Q(a,a.d_desc),oe=function(ae){var he;for(p(ae,ae.dyn_ltree,ae.l_desc.max_code),p(ae,ae.dyn_dtree,ae.d_desc.max_code),Q(ae,ae.bl_desc),he=A-1;3<=he&&ae.bl_tree[2*Z[he]+1]===0;he--);return ae.opt_len+=3*(he+1)+5+5+4,he}(a),H=a.opt_len+3+7>>>3,(ie=a.static_len+3+7>>>3)<=H&&(H=ie)):H=ie=B+5,B+4<=H&&m!==-1?s(a,m,B,G):a.strategy===4||ie===H?(Y(a,2+(G?1:0),3),P(a,ue,C)):(Y(a,4+(G?1:0),3),function(ae,he,de,we){var Ie;for(Y(ae,he-257,5),Y(ae,de-1,5),Y(ae,we-4,4),Ie=0;Ie<we;Ie++)Y(ae,ae.bl_tree[2*Z[Ie]+1],3);J(ae,ae.dyn_ltree,he-1),J(ae,ae.dyn_dtree,de-1)}(a,a.l_desc.max_code+1,a.d_desc.max_code+1,oe+1),P(a,a.dyn_ltree,a.dyn_dtree)),y(a),G&&j(a)},o._tr_tally=function(a,m,B){return a.pending_buf[a.d_buf+2*a.last_lit]=m>>>8&255,a.pending_buf[a.d_buf+2*a.last_lit+1]=255&m,a.pending_buf[a.l_buf+a.last_lit]=255&B,a.last_lit++,m===0?a.dyn_ltree[2*B]++:(a.matches++,m--,a.dyn_ltree[2*(g[B]+R+1)]++,a.dyn_dtree[2*D(m)]++),a.last_lit===a.lit_bufsize-1},o._tr_align=function(a){Y(a,2,3),ne(a,d,ue),function(m){m.bi_valid===16?($(m,m.bi_buf),m.bi_buf=0,m.bi_valid=0):8<=m.bi_valid&&(m.pending_buf[m.pending++]=255&m.bi_buf,m.bi_buf>>=8,m.bi_valid-=8)}(a)}},{"../utils/common":41}],53:[function(r,i,o){i.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}},{}],54:[function(r,i,o){(function(u){(function(f,n){if(!f.setImmediate){var h,_,E,R,I=1,w={},A=!1,v=f.document,N=Object.getPrototypeOf&&Object.getPrototypeOf(f);N=N&&N.setTimeout?N:f,h={}.toString.call(f.process)==="[object process]"?function(c){ge.nextTick(function(){b(c)})}:function(){if(f.postMessage&&!f.importScripts){var c=!0,S=f.onmessage;return f.onmessage=function(){c=!1},f.postMessage("","*"),f.onmessage=S,c}}()?(R="setImmediate$"+Math.random()+"$",f.addEventListener?f.addEventListener("message",d,!1):f.attachEvent("onmessage",d),function(c){f.postMessage(R+c,"*")}):f.MessageChannel?((E=new MessageChannel).port1.onmessage=function(c){b(c.data)},function(c){E.port2.postMessage(c)}):v&&"onreadystatechange"in v.createElement("script")?(_=v.documentElement,function(c){var S=v.createElement("script");S.onreadystatechange=function(){b(c),S.onreadystatechange=null,_.removeChild(S),S=null},_.appendChild(S)}):function(c){setTimeout(b,0,c)},N.setImmediate=function(c){typeof c!="function"&&(c=new Function(""+c));for(var S=new Array(arguments.length-1),L=0;L<S.length;L++)S[L]=arguments[L+1];var F={callback:c,args:S};return w[I]=F,h(I),I++},N.clearImmediate=l}function l(c){delete w[c]}function b(c){if(A)setTimeout(b,0,c);else{var S=w[c];if(S){A=!0;try{(function(L){var F=L.callback,W=L.args;switch(W.length){case 0:F();break;case 1:F(W[0]);break;case 2:F(W[0],W[1]);break;case 3:F(W[0],W[1],W[2]);break;default:F.apply(n,W)}})(S)}finally{l(c),A=!1}}}}function d(c){c.source===f&&typeof c.data=="string"&&c.data.indexOf(R)===0&&b(+c.data.slice(R.length))}})(typeof self>"u"?u===void 0?this:u:self)}).call(this,typeof We<"u"?We:typeof self<"u"?self:typeof window<"u"?window:{})},{}]},{},[10])(10)})}(ii)),ii.exports}var Dp=Op();const vt=bi(Dp);var It={exports:{}},si,Ga;function Pp(){if(Ga)return si;Ga=1;var t={"&":"&",'"':""","'":"'","<":"<",">":">"};function e(r){return r&&r.replace?r.replace(/([&"<>'])/g,function(i,o){return t[o]}):r}return si=e,si}var qa;function Lp(){if(qa)return It.exports;qa=1;var t=Pp(),e=Si().Stream,r=" ";function i(_,E){typeof E!="object"&&(E={indent:E});var R=E.stream?new e:null,I="",w=!1,A=E.indent?E.indent===!0?r:E.indent:"",v=!0;function N(S){v?ge.nextTick(S):S()}function l(S,L){if(L!==void 0&&(I+=L),S&&!w&&(R=R||new e,w=!0),S&&w){var F=I;N(function(){R.emit("data",F)}),I=""}}function b(S,L){n(l,f(S,A,A?1:0),L)}function d(){if(R){var S=I;N(function(){R.emit("data",S),R.emit("end"),R.readable=!1,R.emit("close")})}}function c(S){var L=S.encoding||"UTF-8",F={version:"1.0",encoding:L};S.standalone&&(F.standalone=S.standalone),b({"?xml":{_attr:F}}),I=I.replace("/>","?>")}return N(function(){v=!1}),E.declaration&&c(E.declaration),_&&_.forEach?_.forEach(function(S,L){var F;L+1===_.length&&(F=d),b(S,F)}):b(_,d),R?(R.readable=!0,R):I}function o(){var _=Array.prototype.slice.call(arguments),E={_elem:f(_)};return E.push=function(R){if(!this.append)throw new Error("not assigned to a parent!");var I=this,w=this._elem.indent;n(this.append,f(R,w,this._elem.icount+(w?1:0)),function(){I.append(!0)})},E.close=function(R){R!==void 0&&this.push(R),this.end&&this.end()},E}function u(_,E){return new Array(E||0).join(_||"")}function f(_,E,R){R=R||0;var I=u(E,R),w,A=_,v=!1;if(typeof _=="object"){var N=Object.keys(_);if(w=N[0],A=_[w],A&&A._elem)return A._elem.name=w,A._elem.icount=R,A._elem.indent=E,A._elem.indents=I,A._elem.interrupt=A,A._elem}var l=[],b=[],d;function c(S){var L=Object.keys(S);L.forEach(function(F){l.push(h(F,S[F]))})}switch(typeof A){case"object":if(A===null)break;A._attr&&c(A._attr),A._cdata&&b.push(("<![CDATA["+A._cdata).replace(/\]\]>/g,"]]]]><![CDATA[>")+"]]>"),A.forEach&&(d=!1,b.push(""),A.forEach(function(S){if(typeof S=="object"){var L=Object.keys(S)[0];L=="_attr"?c(S._attr):b.push(f(S,E,R+1))}else b.pop(),d=!0,b.push(t(S))}),d||b.push(""));break;default:b.push(t(A))}return{name:w,interrupt:v,attributes:l,content:b,icount:R,indents:I,indent:E}}function n(_,E,R){if(typeof E!="object")return _(!1,E);var I=E.interrupt?1:E.content.length;function w(){for(;E.content.length;){var v=E.content.shift();if(v!==void 0){if(A(v))return;n(_,v)}}_(!1,(I>1?E.indents:"")+(E.name?"</"+E.name+">":"")+(E.indent&&!R?`
|
|
27
|
+
`:"")),R&&R()}function A(v){return v.interrupt?(v.interrupt.append=_,v.interrupt.end=w,v.interrupt=!1,_(!0),!0):!1}if(_(!1,E.indents+(E.name?"<"+E.name:"")+(E.attributes.length?" "+E.attributes.join(" "):"")+(I?E.name?">":"":E.name?"/>":"")+(E.indent&&I>1?`
|
|
28
|
+
`:"")),!I)return _(!1,E.indent?`
|
|
29
|
+
`:"");A(E)||w()}function h(_,E){return _+'="'+t(E)+'"'}return It.exports=i,It.exports.element=It.exports.Element=o,It.exports}var Fp=Lp();const be=bi(Fp),Nt=0,ai=32,Bp=32,Mp=(t,e)=>{const r=e.replace(/-/g,"");if(r.length!==Bp)throw new Error(`Error: Cannot extract GUID from font filename: ${e}`);const o=r.replace(/(..)/g,"$1 ").trim().split(" ").map(h=>parseInt(h,16));o.reverse();const f=t.slice(Nt,ai).map((h,_)=>h^o[_%o.length]),n=new Uint8Array(Nt+f.length+Math.max(0,t.length-ai));return n.set(t.slice(0,Nt)),n.set(f,Nt),n.set(t.slice(ai),Nt+f.length),n};class Li{format(e,r={stack:[]}){const i=e.prepForXml(r);if(i)return i;throw Error("XMLComponent did not format correctly")}}class hu{replace(e,r,i){let o=e;return r.forEach((u,f)=>{o=o.replace(new RegExp(`{${u.fileName}}`,"g"),(i+f).toString())}),o}getMediaData(e,r){return r.Array.filter(i=>e.search(`{${i.fileName}}`)>0)}}class Up{replace(e,r){let i=e;for(const o of r)i=i.replace(new RegExp(`{${o.reference}-${o.instance}}`,"g"),o.numId.toString());return i}}class Hp{constructor(){ee(this,"formatter"),ee(this,"imageReplacer"),ee(this,"numberingReplacer"),this.formatter=new Li,this.imageReplacer=new hu,this.numberingReplacer=new Up}compile(e,r,i=[]){const o=new vt,u=this.xmlifyFile(e,r),f=new Map(Object.entries(u));for(const[,n]of f)if(Array.isArray(n))for(const h of n)o.file(h.path,h.data);else o.file(n.path,n.data);for(const n of i)o.file(n.path,n.data);for(const n of e.Media.Array)n.type!=="svg"?o.file(`word/media/${n.fileName}`,n.data):(o.file(`word/media/${n.fileName}`,n.data),o.file(`word/media/${n.fallback.fileName}`,n.fallback.data));for(const{data:n,name:h,fontKey:_}of e.FontTable.fontOptionsWithKey){const[E]=h.split(".");o.file(`word/fonts/${E}.odttf`,Mp(n,_))}return o}xmlifyFile(e,r){const i=e.Document.Relationships.RelationshipCount+1,o=be(this.formatter.format(e.Document.View,{viewWrapper:e.Document,file:e,stack:[]}),{indent:r,declaration:{standalone:"yes",encoding:"UTF-8"}}),u=e.Comments.Relationships.RelationshipCount+1,f=be(this.formatter.format(e.Comments,{viewWrapper:{View:e.Comments,Relationships:e.Comments.Relationships},file:e,stack:[]}),{indent:r,declaration:{standalone:"yes",encoding:"UTF-8"}}),n=this.imageReplacer.getMediaData(o,e.Media),h=this.imageReplacer.getMediaData(f,e.Media);return{Relationships:{data:(n.forEach((_,E)=>{e.Document.Relationships.createRelationship(i+E,"http://schemas.openxmlformats.org/officeDocument/2006/relationships/image",`media/${_.fileName}`)}),e.Document.Relationships.createRelationship(e.Document.Relationships.RelationshipCount+1,"http://schemas.openxmlformats.org/officeDocument/2006/relationships/fontTable","fontTable.xml"),be(this.formatter.format(e.Document.Relationships,{viewWrapper:e.Document,file:e,stack:[]}),{indent:r,declaration:{encoding:"UTF-8"}})),path:"word/_rels/document.xml.rels"},Document:{data:(()=>{const _=this.imageReplacer.replace(o,n,i);return this.numberingReplacer.replace(_,e.Numbering.ConcreteNumbering)})(),path:"word/document.xml"},Styles:{data:(()=>{const _=be(this.formatter.format(e.Styles,{viewWrapper:e.Document,file:e,stack:[]}),{indent:r,declaration:{standalone:"yes",encoding:"UTF-8"}});return this.numberingReplacer.replace(_,e.Numbering.ConcreteNumbering)})(),path:"word/styles.xml"},Properties:{data:be(this.formatter.format(e.CoreProperties,{viewWrapper:e.Document,file:e,stack:[]}),{indent:r,declaration:{standalone:"yes",encoding:"UTF-8"}}),path:"docProps/core.xml"},Numbering:{data:be(this.formatter.format(e.Numbering,{viewWrapper:e.Document,file:e,stack:[]}),{indent:r,declaration:{standalone:"yes",encoding:"UTF-8"}}),path:"word/numbering.xml"},FileRelationships:{data:be(this.formatter.format(e.FileRelationships,{viewWrapper:e.Document,file:e,stack:[]}),{indent:r,declaration:{encoding:"UTF-8"}}),path:"_rels/.rels"},HeaderRelationships:e.Headers.map((_,E)=>{const R=be(this.formatter.format(_.View,{viewWrapper:_,file:e,stack:[]}),{indent:r,declaration:{encoding:"UTF-8"}});return this.imageReplacer.getMediaData(R,e.Media).forEach((w,A)=>{_.Relationships.createRelationship(A,"http://schemas.openxmlformats.org/officeDocument/2006/relationships/image",`media/${w.fileName}`)}),{data:be(this.formatter.format(_.Relationships,{viewWrapper:_,file:e,stack:[]}),{indent:r,declaration:{encoding:"UTF-8"}}),path:`word/_rels/header${E+1}.xml.rels`}}),FooterRelationships:e.Footers.map((_,E)=>{const R=be(this.formatter.format(_.View,{viewWrapper:_,file:e,stack:[]}),{indent:r,declaration:{encoding:"UTF-8"}});return this.imageReplacer.getMediaData(R,e.Media).forEach((w,A)=>{_.Relationships.createRelationship(A,"http://schemas.openxmlformats.org/officeDocument/2006/relationships/image",`media/${w.fileName}`)}),{data:be(this.formatter.format(_.Relationships,{viewWrapper:_,file:e,stack:[]}),{indent:r,declaration:{encoding:"UTF-8"}}),path:`word/_rels/footer${E+1}.xml.rels`}}),Headers:e.Headers.map((_,E)=>{const R=be(this.formatter.format(_.View,{viewWrapper:_,file:e,stack:[]}),{indent:r,declaration:{encoding:"UTF-8"}}),I=this.imageReplacer.getMediaData(R,e.Media),w=this.imageReplacer.replace(R,I,0);return{data:this.numberingReplacer.replace(w,e.Numbering.ConcreteNumbering),path:`word/header${E+1}.xml`}}),Footers:e.Footers.map((_,E)=>{const R=be(this.formatter.format(_.View,{viewWrapper:_,file:e,stack:[]}),{indent:r,declaration:{encoding:"UTF-8"}}),I=this.imageReplacer.getMediaData(R,e.Media),w=this.imageReplacer.replace(R,I,0);return{data:this.numberingReplacer.replace(w,e.Numbering.ConcreteNumbering),path:`word/footer${E+1}.xml`}}),ContentTypes:{data:be(this.formatter.format(e.ContentTypes,{viewWrapper:e.Document,file:e,stack:[]}),{indent:r,declaration:{encoding:"UTF-8"}}),path:"[Content_Types].xml"},CustomProperties:{data:be(this.formatter.format(e.CustomProperties,{viewWrapper:e.Document,file:e,stack:[]}),{indent:r,declaration:{standalone:"yes",encoding:"UTF-8"}}),path:"docProps/custom.xml"},AppProperties:{data:be(this.formatter.format(e.AppProperties,{viewWrapper:e.Document,file:e,stack:[]}),{indent:r,declaration:{standalone:"yes",encoding:"UTF-8"}}),path:"docProps/app.xml"},FootNotes:{data:be(this.formatter.format(e.FootNotes.View,{viewWrapper:e.FootNotes,file:e,stack:[]}),{indent:r,declaration:{encoding:"UTF-8"}}),path:"word/footnotes.xml"},FootNotesRelationships:{data:be(this.formatter.format(e.FootNotes.Relationships,{viewWrapper:e.FootNotes,file:e,stack:[]}),{indent:r,declaration:{encoding:"UTF-8"}}),path:"word/_rels/footnotes.xml.rels"},Settings:{data:be(this.formatter.format(e.Settings,{viewWrapper:e.Document,file:e,stack:[]}),{indent:r,declaration:{standalone:"yes",encoding:"UTF-8"}}),path:"word/settings.xml"},Comments:{data:(()=>{const _=this.imageReplacer.replace(f,h,u);return this.numberingReplacer.replace(_,e.Numbering.ConcreteNumbering)})(),path:"word/comments.xml"},CommentsRelationships:{data:(h.forEach((_,E)=>{e.Comments.Relationships.createRelationship(u+E,"http://schemas.openxmlformats.org/officeDocument/2006/relationships/image",`media/${_.fileName}`)}),be(this.formatter.format(e.Comments.Relationships,{viewWrapper:{View:e.Comments,Relationships:e.Comments.Relationships},file:e,stack:[]}),{indent:r,declaration:{encoding:"UTF-8"}})),path:"word/_rels/comments.xml.rels"},FontTable:{data:be(this.formatter.format(e.FontTable.View,{viewWrapper:e.Document,file:e,stack:[]}),{indent:r,declaration:{standalone:"yes",encoding:"UTF-8"}}),path:"word/fontTable.xml"},FontTableRelationships:{data:be(this.formatter.format(e.FontTable.Relationships,{viewWrapper:e.Document,file:e,stack:[]}),{indent:r,declaration:{encoding:"UTF-8"}}),path:"word/_rels/fontTable.xml.rels"}}}}const Wp={NONE:"",WITH_2_BLANKS:" ",WITH_4_BLANKS:" ",WITH_TAB:" "},Ka=t=>t===!0?Wp.WITH_2_BLANKS:t===!1?void 0:t,fu=class wt{static pack(e,r,i){return vi(this,arguments,function*(o,u,f,n=[]){return this.compiler.compile(o,Ka(f),n).generateAsync({type:u,mimeType:"application/vnd.openxmlformats-officedocument.wordprocessingml.document",compression:"DEFLATE"})})}static toString(e,r,i=[]){return wt.pack(e,"string",r,i)}static toBuffer(e,r,i=[]){return wt.pack(e,"nodebuffer",r,i)}static toBase64String(e,r,i=[]){return wt.pack(e,"base64",r,i)}static toBlob(e,r,i=[]){return wt.pack(e,"blob",r,i)}static toArrayBuffer(e,r,i=[]){return wt.pack(e,"arraybuffer",r,i)}static toStream(e,r,i=[]){const o=new Cp.Stream;return this.compiler.compile(e,Ka(r),i).generateAsync({type:"nodebuffer",mimeType:"application/vnd.openxmlformats-officedocument.wordprocessingml.document",compression:"DEFLATE"}).then(f=>{o.emit("data",f),o.emit("end")}),o}};ee(fu,"compiler",new Hp);let ig=fu;const jp=new Li,pr=t=>rr.xml2js(t,{compact:!1,captureSpacesBetweenElements:!0}),du=t=>{var e;return(e=pr(be(jp.format(new di({text:t})))).elements[0].elements)!=null?e:[]},pu=t=>Re(me({},t),{attributes:{"xml:space":"preserve"}}),Fi=(t,e)=>{var r,i;return(i=(r=t.elements)==null?void 0:r.filter(o=>o.name===e)[0].elements)!=null?i:[]},mt=(t,e,r)=>{const i=Fi(t,"Types");i.some(u=>{var f,n;return u.type==="element"&&u.name==="Default"&&((f=u==null?void 0:u.attributes)==null?void 0:f.ContentType)===e&&((n=u==null?void 0:u.attributes)==null?void 0:n.Extension)===r})||i.push({attributes:{ContentType:e,Extension:r},name:"Default",type:"element"})},zp=t=>{const e=parseInt(t.substring(3),10);return isNaN(e)?0:e},Gp=t=>Fi(t,"Relationships").map(r=>{var i,o,u;return zp((u=(o=(i=r.attributes)==null?void 0:i.Id)==null?void 0:o.toString())!=null?u:"")}).reduce((r,i)=>Math.max(r,i),0)+1,Va=(t,e,r,i,o)=>{const u=Fi(t,"Relationships");return u.push({attributes:{Id:`rId${e}`,Type:r,Target:i,TargetMode:o},name:"Relationship",type:"element"}),u},qp=(t,e)=>{var r,i,o,u;for(let f=0;f<((r=t.elements)!=null?r:[]).length;f++){const n=t.elements[f];if(n.type==="element"&&n.name==="w:r"){const h=((i=n.elements)!=null?i:[]).filter(_=>_.type==="element"&&_.name==="w:t");for(const _ of h)if((o=_.elements)!=null&&o[0]&&(u=_.elements[0].text)!=null&&u.includes(e))return f}}throw new Error("Token not found")},Kp=(t,e)=>{var r,i;let o=0;const u=(i=(r=t.elements)==null?void 0:r.map((h,_)=>{var E,R,I;if(h.type==="element"&&h.name==="w:t"){const v=((I=(R=(E=h.elements)==null?void 0:E[0])==null?void 0:R.text)!=null?I:"").split(e).map(N=>Re(me(me({},h),pu(h)),{elements:du(N)}));return o=_,v}else return h}).flat())!=null?i:[],f=Re(me({},JSON.parse(JSON.stringify(t))),{elements:u.slice(0,o+1)}),n=Re(me({},JSON.parse(JSON.stringify(t))),{elements:u.slice(o+1)});return{left:f,right:n}},kt={START:0,MIDDLE:1,END:2},Vp=({paragraphElement:t,renderedParagraph:e,originalText:r,replacementText:i})=>{const o=e.text.indexOf(r),u=o+r.length-1;let f=kt.START;for(const n of e.runs)for(const{text:h,index:_,start:E,end:R}of n.parts)switch(f){case kt.START:if(o>=E){const I=o-E,w=Math.min(u,R)-E,A=n.text.substring(I,w+1);if(A==="")continue;const v=h.replace(A,i);oi(t.elements[n.index].elements[_],v),f=kt.MIDDLE;continue}break;case kt.MIDDLE:if(u<=R){const I=h.substring(u-E+1);oi(t.elements[n.index].elements[_],I);const w=t.elements[n.index].elements[_];t.elements[n.index].elements[_]=pu(w),f=kt.END}else oi(t.elements[n.index].elements[_],"");break}return t},oi=(t,e)=>(t.elements=du(e),t),$p=t=>{if(t.element.name!=="w:p")throw new Error(`Invalid node type: ${t.element.name}`);if(!t.element.elements)return{text:"",runs:[],index:-1,pathToParagraph:[]};let e=0;const r=t.element.elements.map((o,u)=>({element:o,i:u})).filter(({element:o})=>o.name==="w:r").map(({element:o,i:u})=>{const f=Xp(o,u,e);return e+=f.text.length,f}).filter(o=>!!o);return{text:r.reduce((o,u)=>o+u.text,""),runs:r,index:t.index,pathToParagraph:mu(t)}},Xp=(t,e,r)=>{if(!t.elements)return{text:"",parts:[],index:-1,start:r,end:r};let i=r;const o=t.elements.map((f,n)=>{var h,_;return f.name==="w:t"&&f.elements&&f.elements.length>0?{text:(_=(h=f.elements[0].text)==null?void 0:h.toString())!=null?_:"",index:n,start:i,end:(()=>{var E,R;return i+=((R=(E=f.elements[0].text)==null?void 0:E.toString())!=null?R:"").length-1,i})()}:void 0}).filter(f=>!!f).map(f=>f);return{text:o.reduce((f,n)=>f+n.text,""),parts:o,index:e,start:r,end:i}},mu=t=>t.parent?[...mu(t.parent),t.index]:[t.index],$a=t=>{var e,r;return(r=(e=t.element.elements)==null?void 0:e.map((i,o)=>({element:i,index:o,parent:t})))!=null?r:[]},wu=t=>{let e=[];const r=[...$a({element:t,index:0,parent:void 0})];let i;for(;r.length>0;)i=r.shift(),i.element.name==="w:p"&&(e=[...e,$p(i)]),r.push(...$a(i));return e},Zp=(t,e)=>wu(t).filter(r=>r.text.includes(e)),Yp=new Li,ui="ɵ",Jp=({json:t,patch:e,patchText:r,context:i,keepOriginalStyles:o=!0})=>{const u=Zp(t,r);if(u.length===0)return{element:t,didFindOccurrence:!1};for(const f of u){const n=e.children.map(h=>pr(be(Yp.format(h,i)))).map(h=>h.elements[0]);switch(e.type){case Xa.DOCUMENT:{const h=Qp(t,f.pathToParagraph),_=em(f.pathToParagraph);h.elements.splice(_,1,...n);break}case Xa.PARAGRAPH:default:{const h=gu(t,f.pathToParagraph);Vp({paragraphElement:h,renderedParagraph:f,originalText:r,replacementText:ui});const _=qp(h,ui),E=h.elements[_],{left:R,right:I}=Kp(E,ui);let w=n,A=I;if(o){const v=E.elements.filter(N=>N.type==="element"&&N.name==="w:rPr");w=n.map(N=>{var l;return Re(me({},N),{elements:[...v,...(l=N.elements)!=null?l:[]]})}),A=Re(me({},I),{elements:[...v,...I.elements]})}h.elements.splice(_,1,R,...w,A);break}}}return{element:t,didFindOccurrence:!0}},gu=(t,e)=>{let r=t;for(let i=1;i<e.length;i++){const o=e[i];r=r.elements[o]}return r},Qp=(t,e)=>gu(t,e.slice(0,e.length-1)),em=t=>t[t.length-1],Xa={DOCUMENT:"file",PARAGRAPH:"paragraph"},Za=new hu,tm=new Uint8Array([255,254]),rm=new Uint8Array([254,255]),Ya=(t,e)=>{if(t.length!==e.length)return!1;for(let r=0;r<t.length;r++)if(t[r]!==e[r])return!1;return!0},sg=t=>vi(void 0,[t],function*({outputType:e,data:r,patches:i,keepOriginalStyles:o,placeholderDelimiters:u={start:"{{",end:"}}"},recursive:f=!0}){var n,h,_;const E=r instanceof vt?r:yield vt.loadAsync(r),R=new Map,I={Media:new su},w=new Map,A=[],v=[];let N=!1;const l=new Map;for(const[d,c]of Object.entries(E.files)){const S=yield c.async("uint8array"),L=S.slice(0,2);if(Ya(L,tm)||Ya(L,rm)){l.set(d,S);continue}if(!d.endsWith(".xml")&&!d.endsWith(".rels")){l.set(d,S);continue}const F=pr(yield c.async("text"));if(d==="word/document.xml"){const W=(n=F.elements)==null?void 0:n.find(k=>k.name==="w:document");if(W&&W.attributes){for(const k of["mc","wp","r","w15","m"])W.attributes[`xmlns:${k}`]=wi[k];W.attributes["mc:Ignorable"]=`${W.attributes["mc:Ignorable"]||""} w15`.trim()}}if(d.startsWith("word/")&&!d.endsWith(".xml.rels")){const W={file:I,viewWrapper:{Relationships:{createRelationship:(C,U,g,q)=>{v.push({key:d,hyperlink:{id:C,link:g}})}}},stack:[]};if(R.set(d,W),!(u!=null&&u.start.trim())||!(u!=null&&u.end.trim()))throw new Error("Both start and end delimiters must be non-empty strings.");const{start:k,end:Z}=u;for(const[C,U]of Object.entries(i)){const g=`${k}${C}${Z}`;for(;;){const{didFindOccurrence:q}=Jp({json:F,patch:Re(me({},U),{children:U.children.map(te=>{if(te instanceof $o){const z=new Bt(te.options.children,ur());return v.push({key:d,hyperlink:{id:z.linkId,link:te.options.link}}),z}else return te})}),patchText:g,context:W,keepOriginalStyles:o});if(!f||!q)break}}const ue=Za.getMediaData(JSON.stringify(F),W.file.Media);ue.length>0&&(N=!0,A.push({key:d,mediaDatas:ue}))}w.set(d,F)}for(const{key:d,mediaDatas:c}of A){const S=`word/_rels/${d.split("/").pop()}.rels`,L=(h=w.get(S))!=null?h:Ja();w.set(S,L);const F=Gp(L),W=Za.replace(JSON.stringify(w.get(d)),c,F);w.set(d,JSON.parse(W));for(let k=0;k<c.length;k++){const{fileName:Z}=c[k];Va(L,F+k,"http://schemas.openxmlformats.org/officeDocument/2006/relationships/image",`media/${Z}`)}}for(const{key:d,hyperlink:c}of v){const S=`word/_rels/${d.split("/").pop()}.rels`,L=(_=w.get(S))!=null?_:Ja();w.set(S,L),Va(L,c.id,"http://schemas.openxmlformats.org/officeDocument/2006/relationships/hyperlink",c.link,qo.EXTERNAL)}if(N){const d=w.get("[Content_Types].xml");if(!d)throw new Error("Could not find content types file");mt(d,"image/png","png"),mt(d,"image/jpeg","jpeg"),mt(d,"image/jpeg","jpg"),mt(d,"image/bmp","bmp"),mt(d,"image/gif","gif"),mt(d,"image/svg+xml","svg")}const b=new vt;for(const[d,c]of w){const S=nm(c);b.file(d,S)}for(const[d,c]of l)b.file(d,c);for(const{data:d,fileName:c}of I.Media.Array)b.file(`word/media/${c}`,d);return b.generateAsync({type:e,mimeType:"application/vnd.openxmlformats-officedocument.wordprocessingml.document",compression:"DEFLATE"})}),nm=t=>rr.js2xml(t,{attributeValueFn:r=>String(r).replace(/&(?!amp;|lt;|gt;|quot;|apos;)/g,"&").replace(/</g,"<").replace(/>/g,">").replace(/"/g,""").replace(/'/g,"'")}),Ja=()=>({declaration:{attributes:{version:"1.0",encoding:"UTF-8",standalone:"yes"}},elements:[{type:"element",name:"Relationships",attributes:{xmlns:"http://schemas.openxmlformats.org/package/2006/relationships"},elements:[]}]}),ag=t=>vi(void 0,[t],function*({data:e}){const r=e instanceof vt?e:yield vt.loadAsync(e),i=new Set;for(const[o,u]of Object.entries(r.files))if(!(!o.endsWith(".xml")&&!o.endsWith(".rels"))&&o.startsWith("word/")&&!o.endsWith(".xml.rels")){const f=pr(yield u.async("text"));wu(f).forEach(n=>im(n.text).forEach(h=>i.add(h)))}return Array.from(i)}),im=t=>{var e;const r=new RegExp("(?<=\\{\\{).+?(?=\\}\\})","gs");return(e=t.match(r))!=null?e:[]};export{Ma as AbstractNumbering,Ro as Alignment,Dl as AlignmentAttributes,Me as AlignmentType,Dm as AnnotationReference,_e as Attributes,ko as BaseEmphasisMark,Jt as BaseXmlComponent,of as Body,Mh as Bookmark,Hh as BookmarkEnd,Uh as BookmarkStart,Ll as Border,ve as BorderElement,ki as BorderStyle,pe as BuilderElement,Um as CarriageReturn,jw as CharacterSet,rg as CheckBox,ni as CheckBoxSymbolElement,xp as CheckBoxUtil,cw as Column,Vm as ColumnBreak,Kh as Columns,Ah as Comment,xm as CommentRangeEnd,Em as CommentRangeStart,Tm as CommentReference,Sh as Comments,Bt as ConcreteHyperlink,Ua as ConcreteNumbering,Bm as ContinuationSeparator,km as DayLong,Rm as DayShort,tg as DeletedTextRun,$w as Document,wi as DocumentAttributeNamespaces,cr as DocumentAttributes,lf as DocumentBackground,uf as DocumentBackgroundAttributes,pp as DocumentDefaults,rw as DocumentGridType,dm as DotEmphasisMark,ph as Drawing,hw as DropCapType,Au as EMPTY_OBJECT,zl as EmphasisMark,No as EmphasisMarkType,Se as EmptyElement,Lm as EndnoteReference,$o as ExternalHyperlink,$w as File,lr as FileChild,gp as FootNoteReferenceRunAttributes,Td as FootNotes,Jw as Footer,md as FooterWrapper,yp as FootnoteReference,Pm as FootnoteReferenceElement,Qw as FootnoteReferenceRun,fw as FrameAnchorType,dw as FrameWrap,Bf as GridSpan,Yw as Header,ei as HeaderFooterReference,yt as HeaderFooterReferenceType,Da as HeaderFooterType,Id as HeaderWrapper,$m as HeadingLevel,Hw as HeightRule,wm as HighlightColor,lm as HorizontalPositionAlign,yc as HorizontalPositionRelativeFrom,Hn as HpsMeasureElement,Jm as HyperlinkType,Ye as IgnoreIfEmptyXmlComponent,vm as ImageRun,Al as ImportedRootElementAttributes,Tl as ImportedXmlComponent,Bl as Indent,To as InitializableXmlComponent,eg as InsertedTextRun,Qm as InternalHyperlink,Wm as LastRenderedPageBreak,Zm as LeaderType,Ld as Level,au as LevelBase,Vw as LevelForOverride,Ve as LevelFormat,Wd as LevelOverride,Kw as LevelSuffix,nw as LineNumberRestartFormat,pi as LineRuleType,pw as Math,Ow as MathAngledBrackets,Cw as MathCurlyBrackets,Af as MathDegree,mf as MathDenominator,gw as MathFraction,Iw as MathFunction,Nf as MathFunctionName,kf as MathFunctionProperties,vw as MathIntegral,Jo as MathLimit,_w as MathLimitLower,bw as MathLimitUpper,wf as MathNumerator,Aw as MathPreSubSuperScript,Rw as MathRadical,If as MathRadicalProperties,Nw as MathRoundBrackets,ww as MathRun,kw as MathSquareBrackets,xw as MathSubScript,Tw as MathSubSuperScript,yw as MathSum,Ew as MathSuperScript,su as Media,Cm as MonthLong,Im as MonthShort,Le as NextAttributeComponent,Am as NoBreakHyphen,hm as NumberFormat,Qn as NumberProperties,Ct as NumberValueElement,Gd as Numbering,le as OnOffElement,Wh as OutlineLevel,Bw as OverlapType,ig as Packer,iw as PageBorderDisplay,sw as PageBorderOffsetFrom,aw as PageBorderZOrder,Zh as PageBorders,Km as PageBreak,Rh as PageBreakBefore,Yh as PageMargin,ut as PageNumber,Mm as PageNumberElement,ow as PageNumberSeparator,Qh as PageNumberType,Jh as PageNumberTypeAttributes,mi as PageOrientation,ew as PageReference,rf as PageTextDirection,uw as PageTextDirectionType,ht as Paragraph,ct as ParagraphProperties,fp as ParagraphPropertiesDefaults,Xa as PatchType,qm as PositionalTab,jm as PositionalTabAlignment,Gm as PositionalTabLeader,zm as PositionalTabRelativeTo,Wp as PrettifyType,Lw as RelativeHorizontalPosition,Fw as RelativeVerticalPosition,Oe as Run,Wn as RunFonts,rt as RunProperties,Jl as RunPropertiesChange,dp as RunPropertiesDefaults,af as SectionProperties,lw as SectionType,nf as SectionTypeAttributes,Fm as Separator,bm as SequentialIdentifier,ar as Shading,fm as ShadingType,vh as SimpleField,_m as SimpleMailMergeField,Sm as SoftHyphen,ke as SpaceType,Nh as Spacing,it as StringContainer,Ol as StringEnumValueElement,et as StringValueElement,Vt as Style,dr as StyleForCharacter,fr as StyleForParagraph,Zw as StyleLevel,yi as Styles,ec as SymbolRun,Hf as TDirection,Hm as Tab,Ch as TabAttributes,kh as TabStop,Oh as TabStopItem,Ym as TabStopPosition,Oa as TabStopType,Uw as Table,Pw as TableAnchorType,nu as TableBorders,ru as TableCell,Lf as TableCellBorders,jf as TableFloatProperties,Gf as TableLayout,Mw as TableLayoutType,Xw as TableOfContents,Kf as TableProperties,Ww as TableRow,$f as TableRowHeight,Vf as TableRowHeightAttributes,Xf as TableRowProperties,lt as TableWidthElement,Dw as TextDirection,mm as TextEffect,Qt as TextRun,rh as TextWrappingSide,Kt as TextWrappingType,ng as Textbox,Fl as ThematicBreak,sf as Type,Yl as Underline,Oo as UnderlineType,tw as VerticalAlign,qh as VerticalAlignAttributes,Xo as VerticalAlignElement,Gh as VerticalAlignSection,zh as VerticalAlignTable,La as VerticalMerge,tu as VerticalMergeType,cm as VerticalPositionAlign,vc as VerticalPositionRelativeFrom,qw as WORKAROUND2,sm as WORKAROUND3,Sw as WORKAROUND4,gi as WidthType,Ca as WrapNone,ih as WrapSquare,ah as WrapTight,uh as WrapTopAndBottom,fe as XmlAttributeComponent,X as XmlComponent,Om as YearLong,Nm as YearShort,dc as abstractNumUniqueNumericIdGen,wc as bookmarkUniqueNumericIdGen,pc as concreteNumUniqueNumericIdGen,Pe as convertInchesToTwip,ym as convertMillimetersToTwip,Ni as convertToXmlComponent,Vh as createDocumentGrid,df as createFrameProperties,_c as createHorizontalPosition,Xh as createLineNumberType,gf as createMathAccentCharacter,Ne as createMathBase,yf as createMathLimitLocation,Yo as createMathNAryProperties,Tf as createMathPreSubSuperScriptProperties,Mt as createMathSubScriptElement,Ef as createMathSubScriptProperties,xf as createMathSubSuperScriptProperties,Ut as createMathSuperScriptElement,_f as createMathSuperScriptProperties,ef as createPageSize,bc as createSimplePos,St as createStringElement,Ec as createVerticalPosition,Cl as dateTimeValue,Ae as decimalNumber,mc as docPropertiesUniqueNumericIdGen,Nl as eighthPointMeasureValue,Na as hashedId,_t as hexColorValue,Rl as hpsMeasureValue,am as longHexNumber,So as measurementOrPercentValue,ag as patchDetector,sg as patchDocument,Il as percentageValue,kl as pointMeasureValue,Ao as positiveUniversalMeasureValue,at as sectionMarginDefaults,ti as sectionPageSizeDefaults,Sl as shortHexNumber,om as signedHpsMeasureValue,Xe as signedTwipsMeasureValue,Te as twipsMeasureValue,da as uCharHexNumber,ur as uniqueId,or as uniqueNumericIdCreator,gc as uniqueUuid,sr as universalMeasureValue,nr as unsignedDecimalNumber};
|