revise 1.0.0 → 2.0.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (104) hide show
  1. package/CHANGELOG.md +962 -0
  2. package/FONT-LICENSE-HAN-EXT-B.txt +91 -0
  3. package/FONT-LICENSE-KATEX.txt +95 -0
  4. package/FONT-LICENSE-LIBERATION.txt +102 -0
  5. package/FONT-LICENSE-NOTO-MULTILINGUAL.txt +93 -0
  6. package/FONT-LICENSE-NOTO-SANS-SC.txt +93 -0
  7. package/FONT-LICENSE-NOTO.txt +94 -0
  8. package/FONT-LICENSE-SOURCE-CODE-PRO.txt +94 -0
  9. package/FONT-LICENSE-SOURCE-SERIF-4.txt +93 -0
  10. package/LICENSE +41 -21
  11. package/README.md +39 -1
  12. package/THIRD-PARTY-NOTICES.md +3376 -0
  13. package/assets/historyMaterializeWorker-CoAX9ZAi.js +3 -0
  14. package/backend.d.ts +133 -0
  15. package/backend.js +1 -0
  16. package/chunks/AgentPageRenderer-C0n4EnuW.js +1 -0
  17. package/chunks/AgentPageRenderer-DURfmiu0.js +1 -0
  18. package/chunks/AttachmentDocumentImporter-DSic_6At.js +1 -0
  19. package/chunks/AttachmentDocumentImporter-dNMtkxrv.js +1 -0
  20. package/chunks/BidiText-B4Hzrjg9.js +1 -0
  21. package/chunks/ColorParserFull-BKH72fK8.js +1 -0
  22. package/chunks/DocumentStylesheet-byN5dtC6.js +1 -0
  23. package/chunks/DocxConverter-B7P52lw7.js +11 -0
  24. package/chunks/DocxConverter-COV6CjUM.js +11 -0
  25. package/chunks/DocxConverter-Cq_zCEJC.js +11 -0
  26. package/chunks/DocxGraft-CJ12C9WP.js +1 -0
  27. package/chunks/DocxGraft-CQpvFcYb.js +1 -0
  28. package/chunks/DocxGraft-DcmFuUkd.js +1 -0
  29. package/chunks/FileImporter-DVnYOJHp.js +1 -0
  30. package/chunks/FileImporter-q9mCch0J.js +1 -0
  31. package/chunks/HorizontalRuleOrnaments-gmUZ3R7Q.js +1 -0
  32. package/chunks/HtmlConverter-JvRlkQM3.js +61 -0
  33. package/chunks/ListNumbering-Qlu6AuRZ.js +1 -0
  34. package/chunks/MarkdownConverter-B-tPY7X3.js +17 -0
  35. package/chunks/MathRenderer-B0Y1h1JU.js +33 -0
  36. package/chunks/OdtConverter-Br81BSoJ.js +1 -0
  37. package/chunks/OdtConverter-CQjh0vlo.js +1 -0
  38. package/chunks/OdtConverter-DYHnR4E8.js +1 -0
  39. package/chunks/PdfConverter-D26rXumc.js +21 -0
  40. package/chunks/PdfConverter-DGZpUSVf.js +21 -0
  41. package/chunks/PdfConverter-DZzVP0-B.js +21 -0
  42. package/chunks/PdfImportService-CBD8TL1k.js +2 -0
  43. package/chunks/PdfImportService-D6uUKGMf.js +2 -0
  44. package/chunks/RtfConverter-BQGge3K-.js +14 -0
  45. package/chunks/RtfConverter-CMfZ4olw.js +14 -0
  46. package/chunks/RtfConverter-oIwzoqCD.js +14 -0
  47. package/chunks/TableBorders-BLkZYt1k.js +1 -0
  48. package/chunks/TableGrid-DVWaRZv0.js +1 -0
  49. package/chunks/TextFileDecoder--rsVs3NR.js +2 -0
  50. package/chunks/TxtConverter-C1lp6dBS.js +11 -0
  51. package/chunks/__vite-browser-external-l0sNRNKZ.js +0 -0
  52. package/chunks/_commonjsHelpers-DaMA6jEr.js +1 -0
  53. package/chunks/_revise-sdk-lazy-harfbuzz-CDWdjF9f.js +1 -0
  54. package/chunks/_revise-sdk-lazy-harfbuzz-X8gnYTZL.js +1 -0
  55. package/chunks/ar-kgSWdrXF.js +8 -0
  56. package/chunks/backend-Cq-khfdG.js +1 -0
  57. package/chunks/base64-CfDUyGi8.js +36 -0
  58. package/chunks/browser-module-6b2Fq-5C.js +3 -0
  59. package/chunks/browser-module-CFmqfGkE.js +3 -0
  60. package/chunks/browser-module-CkO57IPL.js +3 -0
  61. package/chunks/bundle.min-DRpfgV69.js +8 -0
  62. package/chunks/capture-DU3MC7tb.js +1 -0
  63. package/chunks/carrier-WgcRSu7a.js +1 -0
  64. package/chunks/de-C2QTHrqo.js +8 -0
  65. package/chunks/es-BKboUn4q.js +8 -0
  66. package/chunks/footnoteFlatten-CW-DUcgK.js +1 -0
  67. package/chunks/graftExport-CVg7PO2A.js +2 -0
  68. package/chunks/html2canvas.esm-CntiHiYW.js +5 -0
  69. package/chunks/index-BWdRWxoH.js +24 -0
  70. package/chunks/index-CLw_BlSL.js +353 -0
  71. package/chunks/index-F-kHIwWT.js +353 -0
  72. package/chunks/index.es-CI0QPo8w.js +5 -0
  73. package/chunks/index.es-DOqegDGr.js +5 -0
  74. package/chunks/index.es-tXDO0RMv.js +5 -0
  75. package/chunks/jspdf.es.min-CzYti8jo.js +77 -0
  76. package/chunks/jspdf.es.min-DU74zN8b.js +77 -0
  77. package/chunks/jspdf.es.min-ejWOGhkJ.js +77 -0
  78. package/chunks/jszip.min-CPW0h1Kx.js +2 -0
  79. package/chunks/katex-DWj8TvwO.js +261 -0
  80. package/chunks/pdf-BLWDCiFF.js +12 -0
  81. package/chunks/persistInlineDocumentImages-DQj2iaqg.js +1 -0
  82. package/chunks/pseudoLocale-CdBtPHRi.js +1 -0
  83. package/chunks/pseudoLocale-DEVWLkGC.js +1 -0
  84. package/chunks/purify.es-BwLardii.js +2 -0
  85. package/chunks/serverDocumentSession-DZrYbdpk.js +42 -0
  86. package/chunks/tree-sitter-D6zWWUMP.js +4 -0
  87. package/chunks/wasmInline.generated-CBYFkdSM.js +1 -0
  88. package/chunks/web-tree-sitter-BXGZGnNj.js +1 -0
  89. package/full.js +1 -0
  90. package/index.d.ts +929 -0
  91. package/index.js +1 -0
  92. package/package.json +93 -26
  93. package/root.d.ts +5 -0
  94. package/root.js +2 -0
  95. package/serverToolContract.d.ts +373 -0
  96. package/serverToolInputs.generated.d.ts +229 -0
  97. package/style.css +1 -0
  98. package/.npmignore +0 -4
  99. package/.travis.yml +0 -16
  100. package/revise.js +0 -16
  101. package/t/cover +0 -18
  102. package/t/revise/comparator.t.js +0 -31
  103. package/t/revise/extractor.t.js +0 -29
  104. package/t/test +0 -20
@@ -0,0 +1,24 @@
1
+ var hc=Object.defineProperty,pc=Object.defineProperties,fc=Object.getOwnPropertyDescriptors,ii=Object.getOwnPropertySymbols,dc=Object.prototype.hasOwnProperty,mc=Object.prototype.propertyIsEnumerable,lr=(e,t,r)=>t in e?hc(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r,mt=(e,t)=>{for(var r in t||(t={}))dc.call(t,r)&&lr(e,r,t[r]);if(ii)for(var r of ii(t))mc.call(t,r)&&lr(e,r,t[r]);return e},Ht=(e,t)=>pc(e,fc(t)),rt=(e,t,r)=>lr(e,typeof t!="symbol"?t+"":t,r),gc=(e,t,r)=>new Promise((i,p)=>{var c=g=>{try{n(r.next(g))}catch(T){p(T)}},h=g=>{try{n(r.throw(g))}catch(T){p(T)}},n=g=>g.done?i(g.value):Promise.resolve(g.value).then(c,h);n((r=r.apply(e,t)).next())});class Ee{constructor(t){rt(this,"rootKey"),this.rootKey=t}}const oi=Object.seal({});class et extends Ee{constructor(t){super(t),rt(this,"root"),this.root=new Array}prepForXml(t){var r;t.stack.push(this);const i=this.root.map(p=>p instanceof Ee?p.prepForXml(t):p).filter(p=>p!==void 0);return t.stack.pop(),{[this.rootKey]:i.length?i.length===1&&(r=i[0])!=null&&r._attr?i[0]:i:oi}}addChildElement(t){return this.root.push(t),this}}class Ot extends et{prepForXml(t){const r=super.prepForXml(t);if(r&&(typeof r[this.rootKey]!="object"||Object.keys(r[this.rootKey]).length))return r}}class pt extends Ee{constructor(t){super("_attr"),rt(this,"xmlKeys"),this.root=t}prepForXml(t){const r={};return Object.entries(this.root).forEach(([i,p])=>{if(p!==void 0){const c=this.xmlKeys&&this.xmlKeys[i]||i;r[c]=p}}),{_attr:r}}}class Dt extends Ee{constructor(t){super("_attr"),this.root=t}prepForXml(t){return{_attr:Object.values(this.root).filter(({value:r})=>r!==void 0).reduce((r,{key:i,value:p})=>Ht(mt({},r),{[i]:p}),{})}}}class vt extends pt{constructor(){super(...arguments),rt(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 Pt=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function hr(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var si={},Ke={exports:{}},ai;function pr(){if(ai)return Ke.exports;ai=1;var e=typeof Reflect=="object"?Reflect:null,t=e&&typeof e.apply=="function"?e.apply:function(l,k,F){return Function.prototype.apply.call(l,k,F)},r;e&&typeof e.ownKeys=="function"?r=e.ownKeys:Object.getOwnPropertySymbols?r=function(l){return Object.getOwnPropertyNames(l).concat(Object.getOwnPropertySymbols(l))}:r=function(l){return Object.getOwnPropertyNames(l)};function i(l){console&&console.warn&&console.warn(l)}var p=Number.isNaN||function(l){return l!==l};function c(){c.init.call(this)}Ke.exports=c,Ke.exports.once=u,c.EventEmitter=c,c.prototype._events=void 0,c.prototype._eventsCount=0,c.prototype._maxListeners=void 0;var h=10;function n(l){if(typeof l!="function")throw new TypeError('The "listener" argument must be of type Function. Received type '+typeof l)}Object.defineProperty(c,"defaultMaxListeners",{enumerable:!0,get:function(){return h},set:function(l){if(typeof l!="number"||l<0||p(l))throw new RangeError('The value of "defaultMaxListeners" is out of range. It must be a non-negative number. Received '+l+".");h=l}}),c.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},c.prototype.setMaxListeners=function(l){if(typeof l!="number"||l<0||p(l))throw new RangeError('The value of "n" is out of range. It must be a non-negative number. Received '+l+".");return this._maxListeners=l,this};function g(l){return l._maxListeners===void 0?c.defaultMaxListeners:l._maxListeners}c.prototype.getMaxListeners=function(){return g(this)},c.prototype.emit=function(l){for(var k=[],F=1;F<arguments.length;F++)k.push(arguments[F]);var B=l==="error",U=this._events;if(U!==void 0)B=B&&U.error===void 0;else if(!B)return!1;if(B){var C;if(k.length>0&&(C=k[0]),C instanceof Error)throw C;var Q=new Error("Unhandled error."+(C?" ("+C.message+")":""));throw Q.context=C,Q}var at=U[l];if(at===void 0)return!1;if(typeof at=="function")t(at,this,k);else for(var N=at.length,j=A(at,N),F=0;F<N;++F)t(j[F],this,k);return!0};function T(l,k,F,B){var U,C,Q;if(n(F),C=l._events,C===void 0?(C=l._events=Object.create(null),l._eventsCount=0):(C.newListener!==void 0&&(l.emit("newListener",k,F.listener?F.listener:F),C=l._events),Q=C[k]),Q===void 0)Q=C[k]=F,++l._eventsCount;else if(typeof Q=="function"?Q=C[k]=B?[F,Q]:[Q,F]:B?Q.unshift(F):Q.push(F),U=g(l),U>0&&Q.length>U&&!Q.warned){Q.warned=!0;var at=new Error("Possible EventEmitter memory leak detected. "+Q.length+" "+String(k)+" listeners added. Use emitter.setMaxListeners() to increase limit");at.name="MaxListenersExceededWarning",at.emitter=l,at.type=k,at.count=Q.length,i(at)}return l}c.prototype.addListener=function(l,k){return T(this,l,k,!1)},c.prototype.on=c.prototype.addListener,c.prototype.prependListener=function(l,k){return T(this,l,k,!0)};function _(){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 S(l,k,F){var B={fired:!1,wrapFn:void 0,target:l,type:k,listener:F},U=_.bind(B);return U.listener=F,B.wrapFn=U,U}c.prototype.once=function(l,k){return n(k),this.on(l,S(this,l,k)),this},c.prototype.prependOnceListener=function(l,k){return n(k),this.prependListener(l,S(this,l,k)),this},c.prototype.removeListener=function(l,k){var F,B,U,C,Q;if(n(k),B=this._events,B===void 0)return this;if(F=B[l],F===void 0)return this;if(F===k||F.listener===k)--this._eventsCount===0?this._events=Object.create(null):(delete B[l],B.removeListener&&this.emit("removeListener",l,F.listener||k));else if(typeof F!="function"){for(U=-1,C=F.length-1;C>=0;C--)if(F[C]===k||F[C].listener===k){Q=F[C].listener,U=C;break}if(U<0)return this;U===0?F.shift():v(F,U),F.length===1&&(B[l]=F[0]),B.removeListener!==void 0&&this.emit("removeListener",l,Q||k)}return this},c.prototype.off=c.prototype.removeListener,c.prototype.removeAllListeners=function(l){var k,F,B;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[l]!==void 0&&(--this._eventsCount===0?this._events=Object.create(null):delete F[l]),this;if(arguments.length===0){var U=Object.keys(F),C;for(B=0;B<U.length;++B)C=U[B],C!=="removeListener"&&this.removeAllListeners(C);return this.removeAllListeners("removeListener"),this._events=Object.create(null),this._eventsCount=0,this}if(k=F[l],typeof k=="function")this.removeListener(l,k);else if(k!==void 0)for(B=k.length-1;B>=0;B--)this.removeListener(l,k[B]);return this};function I(l,k,F){var B=l._events;if(B===void 0)return[];var U=B[k];return U===void 0?[]:typeof U=="function"?F?[U.listener||U]:[U]:F?R(U):A(U,U.length)}c.prototype.listeners=function(l){return I(this,l,!0)},c.prototype.rawListeners=function(l){return I(this,l,!1)},c.listenerCount=function(l,k){return typeof l.listenerCount=="function"?l.listenerCount(k):d.call(l,k)},c.prototype.listenerCount=d;function d(l){var k=this._events;if(k!==void 0){var F=k[l];if(typeof F=="function")return 1;if(F!==void 0)return F.length}return 0}c.prototype.eventNames=function(){return this._eventsCount>0?r(this._events):[]};function A(l,k){for(var F=new Array(k),B=0;B<k;++B)F[B]=l[B];return F}function v(l,k){for(;k+1<l.length;k++)l[k]=l[k+1];l.pop()}function R(l){for(var k=new Array(l.length),F=0;F<k.length;++F)k[F]=l[F].listener||l[F];return k}function u(l,k){return new Promise(function(F,B){function U(Q){l.removeListener(k,C),B(Q)}function C(){typeof l.removeListener=="function"&&l.removeListener("error",U),F([].slice.call(arguments))}b(l,k,C,{once:!0}),k!=="error"&&m(l,U,{once:!0})})}function m(l,k,F){typeof l.on=="function"&&b(l,"error",k,F)}function b(l,k,F,B){if(typeof l.on=="function")B.once?l.once(k,F):l.on(k,F);else if(typeof l.addEventListener=="function")l.addEventListener(k,function U(C){B.once&&l.removeEventListener(k,U),F(C)});else throw new TypeError('The "emitter" argument must be of type EventEmitter. Received type '+typeof l)}return Ke.exports}var fr={exports:{}},ui;function qt(){return ui||(ui=1,typeof Object.create=="function"?fr.exports=function(e,t){t&&(e.super_=t,e.prototype=Object.create(t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}))}:fr.exports=function(e,t){if(t){e.super_=t;var r=function(){};r.prototype=t.prototype,e.prototype=new r,e.prototype.constructor=e}}),fr.exports}function wc(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var ci={exports:{}},Et=ci.exports={},Ft,Bt;function dr(){throw new Error("setTimeout has not been defined")}function mr(){throw new Error("clearTimeout has not been defined")}(function(){try{typeof setTimeout=="function"?Ft=setTimeout:Ft=dr}catch{Ft=dr}try{typeof clearTimeout=="function"?Bt=clearTimeout:Bt=mr}catch{Bt=mr}})();function li(e){if(Ft===setTimeout)return setTimeout(e,0);if((Ft===dr||!Ft)&&setTimeout)return Ft=setTimeout,setTimeout(e,0);try{return Ft(e,0)}catch{try{return Ft.call(null,e,0)}catch{return Ft.call(this,e,0)}}}function yc(e){if(Bt===clearTimeout)return clearTimeout(e);if((Bt===mr||!Bt)&&clearTimeout)return Bt=clearTimeout,clearTimeout(e);try{return Bt(e)}catch{try{return Bt.call(null,e)}catch{return Bt.call(this,e)}}}var Kt=[],he=!1,re,Ve=-1;function bc(){!he||!re||(he=!1,re.length?Kt=re.concat(Kt):Ve=-1,Kt.length&&hi())}function hi(){if(!he){var e=li(bc);he=!0;for(var t=Kt.length;t;){for(re=Kt,Kt=[];++Ve<t;)re&&re[Ve].run();Ve=-1,t=Kt.length}re=null,he=!1,yc(e)}}Et.nextTick=function(e){var t=new Array(arguments.length-1);if(arguments.length>1)for(var r=1;r<arguments.length;r++)t[r-1]=arguments[r];Kt.push(new pi(e,t)),Kt.length===1&&!he&&li(hi)};function pi(e,t){this.fun=e,this.array=t}pi.prototype.run=function(){this.fun.apply(null,this.array)},Et.title="browser",Et.browser=!0,Et.env={},Et.argv=[],Et.version="",Et.versions={};function Vt(){}Et.on=Vt,Et.addListener=Vt,Et.once=Vt,Et.off=Vt,Et.removeListener=Vt,Et.removeAllListeners=Vt,Et.emit=Vt,Et.prependListener=Vt,Et.prependOnceListener=Vt,Et.listeners=function(e){return[]},Et.binding=function(e){throw new Error("process.binding is not supported")},Et.cwd=function(){return"/"},Et.chdir=function(e){throw new Error("process.chdir is not supported")},Et.umask=function(){return 0};var vc=ci.exports;const gt=wc(vc);var fi,di;function mi(){return di||(di=1,fi=pr().EventEmitter),fi}var gi={},Te={},wi;function xc(){if(wi)return Te;wi=1,Te.byteLength=n,Te.toByteArray=T,Te.fromByteArray=I;for(var e=[],t=[],r=typeof Uint8Array<"u"?Uint8Array:Array,i="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",p=0,c=i.length;p<c;++p)e[p]=i[p],t[i.charCodeAt(p)]=p;t[45]=62,t[95]=63;function h(d){var A=d.length;if(A%4>0)throw new Error("Invalid string. Length must be a multiple of 4");var v=d.indexOf("=");v===-1&&(v=A);var R=v===A?0:4-v%4;return[v,R]}function n(d){var A=h(d),v=A[0],R=A[1];return(v+R)*3/4-R}function g(d,A,v){return(A+v)*3/4-v}function T(d){var A,v=h(d),R=v[0],u=v[1],m=new r(g(d,R,u)),b=0,l=u>0?R-4:R,k;for(k=0;k<l;k+=4)A=t[d.charCodeAt(k)]<<18|t[d.charCodeAt(k+1)]<<12|t[d.charCodeAt(k+2)]<<6|t[d.charCodeAt(k+3)],m[b++]=A>>16&255,m[b++]=A>>8&255,m[b++]=A&255;return u===2&&(A=t[d.charCodeAt(k)]<<2|t[d.charCodeAt(k+1)]>>4,m[b++]=A&255),u===1&&(A=t[d.charCodeAt(k)]<<10|t[d.charCodeAt(k+1)]<<4|t[d.charCodeAt(k+2)]>>2,m[b++]=A>>8&255,m[b++]=A&255),m}function _(d){return e[d>>18&63]+e[d>>12&63]+e[d>>6&63]+e[d&63]}function S(d,A,v){for(var R,u=[],m=A;m<v;m+=3)R=(d[m]<<16&16711680)+(d[m+1]<<8&65280)+(d[m+2]&255),u.push(_(R));return u.join("")}function I(d){for(var A,v=d.length,R=v%3,u=[],m=16383,b=0,l=v-R;b<l;b+=m)u.push(S(d,b,b+m>l?l:b+m));return R===1?(A=d[v-1],u.push(e[A>>2]+e[A<<4&63]+"==")):R===2&&(A=(d[v-2]<<8)+d[v-1],u.push(e[A>>10]+e[A>>4&63]+e[A<<2&63]+"=")),u.join("")}return Te}var gr={},yi;function _c(){return yi||(yi=1,gr.read=function(e,t,r,i,p){var c,h,n=p*8-i-1,g=(1<<n)-1,T=g>>1,_=-7,S=r?p-1:0,I=r?-1:1,d=e[t+S];for(S+=I,c=d&(1<<-_)-1,d>>=-_,_+=n;_>0;c=c*256+e[t+S],S+=I,_-=8);for(h=c&(1<<-_)-1,c>>=-_,_+=i;_>0;h=h*256+e[t+S],S+=I,_-=8);if(c===0)c=1-T;else{if(c===g)return h?NaN:(d?-1:1)*(1/0);h=h+Math.pow(2,i),c=c-T}return(d?-1:1)*h*Math.pow(2,c-i)},gr.write=function(e,t,r,i,p,c){var h,n,g,T=c*8-p-1,_=(1<<T)-1,S=_>>1,I=p===23?Math.pow(2,-24)-Math.pow(2,-77):0,d=i?0:c-1,A=i?1:-1,v=t<0||t===0&&1/t<0?1:0;for(t=Math.abs(t),isNaN(t)||t===1/0?(n=isNaN(t)?1:0,h=_):(h=Math.floor(Math.log(t)/Math.LN2),t*(g=Math.pow(2,-h))<1&&(h--,g*=2),h+S>=1?t+=I/g:t+=I*Math.pow(2,1-S),t*g>=2&&(h++,g/=2),h+S>=_?(n=0,h=_):h+S>=1?(n=(t*g-1)*Math.pow(2,p),h=h+S):(n=t*Math.pow(2,S-1)*Math.pow(2,p),h=0));p>=8;e[r+d]=n&255,d+=A,n/=256,p-=8);for(h=h<<p|n,T+=p;T>0;e[r+d]=h&255,d+=A,h/=256,T-=8);e[r+d-A]|=v*128}),gr}var bi;function Ge(){return bi||(bi=1,function(e){var t=xc(),r=_c(),i=typeof Symbol=="function"&&typeof Symbol.for=="function"?Symbol.for("nodejs.util.inspect.custom"):null;e.Buffer=n,e.SlowBuffer=m,e.INSPECT_MAX_BYTES=50;var p=2147483647;e.kMaxLength=p,n.TYPED_ARRAY_SUPPORT=c(),!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 c(){try{var o=new Uint8Array(1),s={foo:function(){return 42}};return Object.setPrototypeOf(s,Uint8Array.prototype),Object.setPrototypeOf(o,s),o.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 h(o){if(o>p)throw new RangeError('The value "'+o+'" is invalid for option "size"');var s=new Uint8Array(o);return Object.setPrototypeOf(s,n.prototype),s}function n(o,s,a){if(typeof o=="number"){if(typeof s=="string")throw new TypeError('The "string" argument must be of type string. Received type number');return S(o)}return g(o,s,a)}n.poolSize=8192;function g(o,s,a){if(typeof o=="string")return I(o,s);if(ArrayBuffer.isView(o))return A(o);if(o==null)throw new TypeError("The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type "+typeof o);if(tt(o,ArrayBuffer)||o&&tt(o.buffer,ArrayBuffer)||typeof SharedArrayBuffer<"u"&&(tt(o,SharedArrayBuffer)||o&&tt(o.buffer,SharedArrayBuffer)))return v(o,s,a);if(typeof o=="number")throw new TypeError('The "value" argument must not be of type number. Received type number');var x=o.valueOf&&o.valueOf();if(x!=null&&x!==o)return n.from(x,s,a);var M=R(o);if(M)return M;if(typeof Symbol<"u"&&Symbol.toPrimitive!=null&&typeof o[Symbol.toPrimitive]=="function")return n.from(o[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 o)}n.from=function(o,s,a){return g(o,s,a)},Object.setPrototypeOf(n.prototype,Uint8Array.prototype),Object.setPrototypeOf(n,Uint8Array);function T(o){if(typeof o!="number")throw new TypeError('"size" argument must be of type number');if(o<0)throw new RangeError('The value "'+o+'" is invalid for option "size"')}function _(o,s,a){return T(o),o<=0?h(o):s!==void 0?typeof a=="string"?h(o).fill(s,a):h(o).fill(s):h(o)}n.alloc=function(o,s,a){return _(o,s,a)};function S(o){return T(o),h(o<0?0:u(o)|0)}n.allocUnsafe=function(o){return S(o)},n.allocUnsafeSlow=function(o){return S(o)};function I(o,s){if((typeof s!="string"||s==="")&&(s="utf8"),!n.isEncoding(s))throw new TypeError("Unknown encoding: "+s);var a=b(o,s)|0,x=h(a),M=x.write(o,s);return M!==a&&(x=x.slice(0,M)),x}function d(o){for(var s=o.length<0?0:u(o.length)|0,a=h(s),x=0;x<s;x+=1)a[x]=o[x]&255;return a}function A(o){if(tt(o,Uint8Array)){var s=new Uint8Array(o);return v(s.buffer,s.byteOffset,s.byteLength)}return d(o)}function v(o,s,a){if(s<0||o.byteLength<s)throw new RangeError('"offset" is outside of buffer bounds');if(o.byteLength<s+(a||0))throw new RangeError('"length" is outside of buffer bounds');var x;return s===void 0&&a===void 0?x=new Uint8Array(o):a===void 0?x=new Uint8Array(o,s):x=new Uint8Array(o,s,a),Object.setPrototypeOf(x,n.prototype),x}function R(o){if(n.isBuffer(o)){var s=u(o.length)|0,a=h(s);return a.length===0||o.copy(a,0,0,s),a}if(o.length!==void 0)return typeof o.length!="number"||f(o.length)?h(0):d(o);if(o.type==="Buffer"&&Array.isArray(o.data))return d(o.data)}function u(o){if(o>=p)throw new RangeError("Attempt to allocate Buffer larger than maximum size: 0x"+p.toString(16)+" bytes");return o|0}function m(o){return+o!=o&&(o=0),n.alloc(+o)}n.isBuffer=function(o){return o!=null&&o._isBuffer===!0&&o!==n.prototype},n.compare=function(o,s){if(tt(o,Uint8Array)&&(o=n.from(o,o.offset,o.byteLength)),tt(s,Uint8Array)&&(s=n.from(s,s.offset,s.byteLength)),!n.isBuffer(o)||!n.isBuffer(s))throw new TypeError('The "buf1", "buf2" arguments must be one of type Buffer or Uint8Array');if(o===s)return 0;for(var a=o.length,x=s.length,M=0,V=Math.min(a,x);M<V;++M)if(o[M]!==s[M]){a=o[M],x=s[M];break}return a<x?-1:x<a?1:0},n.isEncoding=function(o){switch(String(o).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(o,s){if(!Array.isArray(o))throw new TypeError('"list" argument must be an Array of Buffers');if(o.length===0)return n.alloc(0);var a;if(s===void 0)for(s=0,a=0;a<o.length;++a)s+=o[a].length;var x=n.allocUnsafe(s),M=0;for(a=0;a<o.length;++a){var V=o[a];if(tt(V,Uint8Array))M+V.length>x.length?n.from(V).copy(x,M):Uint8Array.prototype.set.call(x,V,M);else if(n.isBuffer(V))V.copy(x,M);else throw new TypeError('"list" argument must be an Array of Buffers');M+=V.length}return x};function b(o,s){if(n.isBuffer(o))return o.length;if(ArrayBuffer.isView(o)||tt(o,ArrayBuffer))return o.byteLength;if(typeof o!="string")throw new TypeError('The "string" argument must be one of type string, Buffer, or ArrayBuffer. Received type '+typeof o);var a=o.length,x=arguments.length>2&&arguments[2]===!0;if(!x&&a===0)return 0;for(var M=!1;;)switch(s){case"ascii":case"latin1":case"binary":return a;case"utf8":case"utf-8":return w(o).length;case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return a*2;case"hex":return a>>>1;case"base64":return O(o).length;default:if(M)return x?-1:w(o).length;s=(""+s).toLowerCase(),M=!0}}n.byteLength=b;function l(o,s,a){var x=!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(o||(o="utf8");;)switch(o){case"hex":return J(this,s,a);case"utf8":case"utf-8":return y(this,s,a);case"ascii":return K(this,s,a);case"latin1":case"binary":return it(this,s,a);case"base64":return j(this,s,a);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return lt(this,s,a);default:if(x)throw new TypeError("Unknown encoding: "+o);o=(o+"").toLowerCase(),x=!0}}n.prototype._isBuffer=!0;function k(o,s,a){var x=o[s];o[s]=o[a],o[a]=x}n.prototype.swap16=function(){var o=this.length;if(o%2!==0)throw new RangeError("Buffer size must be a multiple of 16-bits");for(var s=0;s<o;s+=2)k(this,s,s+1);return this},n.prototype.swap32=function(){var o=this.length;if(o%4!==0)throw new RangeError("Buffer size must be a multiple of 32-bits");for(var s=0;s<o;s+=4)k(this,s,s+3),k(this,s+1,s+2);return this},n.prototype.swap64=function(){var o=this.length;if(o%8!==0)throw new RangeError("Buffer size must be a multiple of 64-bits");for(var s=0;s<o;s+=8)k(this,s,s+7),k(this,s+1,s+6),k(this,s+2,s+5),k(this,s+3,s+4);return this},n.prototype.toString=function(){var o=this.length;return o===0?"":arguments.length===0?y(this,0,o):l.apply(this,arguments)},n.prototype.toLocaleString=n.prototype.toString,n.prototype.equals=function(o){if(!n.isBuffer(o))throw new TypeError("Argument must be a Buffer");return this===o?!0:n.compare(this,o)===0},n.prototype.inspect=function(){var o="",s=e.INSPECT_MAX_BYTES;return o=this.toString("hex",0,s).replace(/(.{2})/g,"$1 ").trim(),this.length>s&&(o+=" ... "),"<Buffer "+o+">"},i&&(n.prototype[i]=n.prototype.inspect),n.prototype.compare=function(o,s,a,x,M){if(tt(o,Uint8Array)&&(o=n.from(o,o.offset,o.byteLength)),!n.isBuffer(o))throw new TypeError('The "target" argument must be one of type Buffer or Uint8Array. Received type '+typeof o);if(s===void 0&&(s=0),a===void 0&&(a=o?o.length:0),x===void 0&&(x=0),M===void 0&&(M=this.length),s<0||a>o.length||x<0||M>this.length)throw new RangeError("out of range index");if(x>=M&&s>=a)return 0;if(x>=M)return-1;if(s>=a)return 1;if(s>>>=0,a>>>=0,x>>>=0,M>>>=0,this===o)return 0;for(var V=M-x,H=a-s,ot=Math.min(V,H),ct=this.slice(x,M),st=o.slice(s,a),ht=0;ht<ot;++ht)if(ct[ht]!==st[ht]){V=ct[ht],H=st[ht];break}return V<H?-1:H<V?1:0};function F(o,s,a,x,M){if(o.length===0)return-1;if(typeof a=="string"?(x=a,a=0):a>2147483647?a=2147483647:a<-2147483648&&(a=-2147483648),a=+a,f(a)&&(a=M?0:o.length-1),a<0&&(a=o.length+a),a>=o.length){if(M)return-1;a=o.length-1}else if(a<0)if(M)a=0;else return-1;if(typeof s=="string"&&(s=n.from(s,x)),n.isBuffer(s))return s.length===0?-1:B(o,s,a,x,M);if(typeof s=="number")return s=s&255,typeof Uint8Array.prototype.indexOf=="function"?M?Uint8Array.prototype.indexOf.call(o,s,a):Uint8Array.prototype.lastIndexOf.call(o,s,a):B(o,[s],a,x,M);throw new TypeError("val must be string, number or Buffer")}function B(o,s,a,x,M){var V=1,H=o.length,ot=s.length;if(x!==void 0&&(x=String(x).toLowerCase(),x==="ucs2"||x==="ucs-2"||x==="utf16le"||x==="utf-16le")){if(o.length<2||s.length<2)return-1;V=2,H/=2,ot/=2,a/=2}function ct(kt,Xt){return V===1?kt[Xt]:kt.readUInt16BE(Xt*V)}var st;if(M){var ht=-1;for(st=a;st<H;st++)if(ct(o,st)===ct(s,ht===-1?0:st-ht)){if(ht===-1&&(ht=st),st-ht+1===ot)return ht*V}else ht!==-1&&(st-=st-ht),ht=-1}else for(a+ot>H&&(a=H-ot),st=a;st>=0;st--){for(var ft=!0,dt=0;dt<ot;dt++)if(ct(o,st+dt)!==ct(s,dt)){ft=!1;break}if(ft)return st}return-1}n.prototype.includes=function(o,s,a){return this.indexOf(o,s,a)!==-1},n.prototype.indexOf=function(o,s,a){return F(this,o,s,a,!0)},n.prototype.lastIndexOf=function(o,s,a){return F(this,o,s,a,!1)};function U(o,s,a,x){a=Number(a)||0;var M=o.length-a;x?(x=Number(x),x>M&&(x=M)):x=M;var V=s.length;x>V/2&&(x=V/2);for(var H=0;H<x;++H){var ot=parseInt(s.substr(H*2,2),16);if(f(ot))return H;o[a+H]=ot}return H}function C(o,s,a,x){return P(w(s,o.length-a),o,a,x)}function Q(o,s,a,x){return P(z(s),o,a,x)}function at(o,s,a,x){return P(O(s),o,a,x)}function N(o,s,a,x){return P(L(s,o.length-a),o,a,x)}n.prototype.write=function(o,s,a,x){if(s===void 0)x="utf8",a=this.length,s=0;else if(a===void 0&&typeof s=="string")x=s,a=this.length,s=0;else if(isFinite(s))s=s>>>0,isFinite(a)?(a=a>>>0,x===void 0&&(x="utf8")):(x=a,a=void 0);else throw new Error("Buffer.write(string, encoding, offset[, length]) is no longer supported");var M=this.length-s;if((a===void 0||a>M)&&(a=M),o.length>0&&(a<0||s<0)||s>this.length)throw new RangeError("Attempt to write outside buffer bounds");x||(x="utf8");for(var V=!1;;)switch(x){case"hex":return U(this,o,s,a);case"utf8":case"utf-8":return C(this,o,s,a);case"ascii":case"latin1":case"binary":return Q(this,o,s,a);case"base64":return at(this,o,s,a);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return N(this,o,s,a);default:if(V)throw new TypeError("Unknown encoding: "+x);x=(""+x).toLowerCase(),V=!0}},n.prototype.toJSON=function(){return{type:"Buffer",data:Array.prototype.slice.call(this._arr||this,0)}};function j(o,s,a){return s===0&&a===o.length?t.fromByteArray(o):t.fromByteArray(o.slice(s,a))}function y(o,s,a){a=Math.min(o.length,a);for(var x=[],M=s;M<a;){var V=o[M],H=null,ot=V>239?4:V>223?3:V>191?2:1;if(M+ot<=a){var ct,st,ht,ft;switch(ot){case 1:V<128&&(H=V);break;case 2:ct=o[M+1],(ct&192)===128&&(ft=(V&31)<<6|ct&63,ft>127&&(H=ft));break;case 3:ct=o[M+1],st=o[M+2],(ct&192)===128&&(st&192)===128&&(ft=(V&15)<<12|(ct&63)<<6|st&63,ft>2047&&(ft<55296||ft>57343)&&(H=ft));break;case 4:ct=o[M+1],st=o[M+2],ht=o[M+3],(ct&192)===128&&(st&192)===128&&(ht&192)===128&&(ft=(V&15)<<18|(ct&63)<<12|(st&63)<<6|ht&63,ft>65535&&ft<1114112&&(H=ft))}}H===null?(H=65533,ot=1):H>65535&&(H-=65536,x.push(H>>>10&1023|55296),H=56320|H&1023),x.push(H),M+=ot}return $(x)}var W=4096;function $(o){var s=o.length;if(s<=W)return String.fromCharCode.apply(String,o);for(var a="",x=0;x<s;)a+=String.fromCharCode.apply(String,o.slice(x,x+=W));return a}function K(o,s,a){var x="";a=Math.min(o.length,a);for(var M=s;M<a;++M)x+=String.fromCharCode(o[M]&127);return x}function it(o,s,a){var x="";a=Math.min(o.length,a);for(var M=s;M<a;++M)x+=String.fromCharCode(o[M]);return x}function J(o,s,a){var x=o.length;(!s||s<0)&&(s=0),(!a||a<0||a>x)&&(a=x);for(var M="",V=s;V<a;++V)M+=q[o[V]];return M}function lt(o,s,a){for(var x=o.slice(s,a),M="",V=0;V<x.length-1;V+=2)M+=String.fromCharCode(x[V]+x[V+1]*256);return M}n.prototype.slice=function(o,s){var a=this.length;o=~~o,s=s===void 0?a:~~s,o<0?(o+=a,o<0&&(o=0)):o>a&&(o=a),s<0?(s+=a,s<0&&(s=0)):s>a&&(s=a),s<o&&(s=o);var x=this.subarray(o,s);return Object.setPrototypeOf(x,n.prototype),x};function X(o,s,a){if(o%1!==0||o<0)throw new RangeError("offset is not uint");if(o+s>a)throw new RangeError("Trying to access beyond buffer length")}n.prototype.readUintLE=n.prototype.readUIntLE=function(o,s,a){o=o>>>0,s=s>>>0,a||X(o,s,this.length);for(var x=this[o],M=1,V=0;++V<s&&(M*=256);)x+=this[o+V]*M;return x},n.prototype.readUintBE=n.prototype.readUIntBE=function(o,s,a){o=o>>>0,s=s>>>0,a||X(o,s,this.length);for(var x=this[o+--s],M=1;s>0&&(M*=256);)x+=this[o+--s]*M;return x},n.prototype.readUint8=n.prototype.readUInt8=function(o,s){return o=o>>>0,s||X(o,1,this.length),this[o]},n.prototype.readUint16LE=n.prototype.readUInt16LE=function(o,s){return o=o>>>0,s||X(o,2,this.length),this[o]|this[o+1]<<8},n.prototype.readUint16BE=n.prototype.readUInt16BE=function(o,s){return o=o>>>0,s||X(o,2,this.length),this[o]<<8|this[o+1]},n.prototype.readUint32LE=n.prototype.readUInt32LE=function(o,s){return o=o>>>0,s||X(o,4,this.length),(this[o]|this[o+1]<<8|this[o+2]<<16)+this[o+3]*16777216},n.prototype.readUint32BE=n.prototype.readUInt32BE=function(o,s){return o=o>>>0,s||X(o,4,this.length),this[o]*16777216+(this[o+1]<<16|this[o+2]<<8|this[o+3])},n.prototype.readIntLE=function(o,s,a){o=o>>>0,s=s>>>0,a||X(o,s,this.length);for(var x=this[o],M=1,V=0;++V<s&&(M*=256);)x+=this[o+V]*M;return M*=128,x>=M&&(x-=Math.pow(2,8*s)),x},n.prototype.readIntBE=function(o,s,a){o=o>>>0,s=s>>>0,a||X(o,s,this.length);for(var x=s,M=1,V=this[o+--x];x>0&&(M*=256);)V+=this[o+--x]*M;return M*=128,V>=M&&(V-=Math.pow(2,8*s)),V},n.prototype.readInt8=function(o,s){return o=o>>>0,s||X(o,1,this.length),this[o]&128?(255-this[o]+1)*-1:this[o]},n.prototype.readInt16LE=function(o,s){o=o>>>0,s||X(o,2,this.length);var a=this[o]|this[o+1]<<8;return a&32768?a|4294901760:a},n.prototype.readInt16BE=function(o,s){o=o>>>0,s||X(o,2,this.length);var a=this[o+1]|this[o]<<8;return a&32768?a|4294901760:a},n.prototype.readInt32LE=function(o,s){return o=o>>>0,s||X(o,4,this.length),this[o]|this[o+1]<<8|this[o+2]<<16|this[o+3]<<24},n.prototype.readInt32BE=function(o,s){return o=o>>>0,s||X(o,4,this.length),this[o]<<24|this[o+1]<<16|this[o+2]<<8|this[o+3]},n.prototype.readFloatLE=function(o,s){return o=o>>>0,s||X(o,4,this.length),r.read(this,o,!0,23,4)},n.prototype.readFloatBE=function(o,s){return o=o>>>0,s||X(o,4,this.length),r.read(this,o,!1,23,4)},n.prototype.readDoubleLE=function(o,s){return o=o>>>0,s||X(o,8,this.length),r.read(this,o,!0,52,8)},n.prototype.readDoubleBE=function(o,s){return o=o>>>0,s||X(o,8,this.length),r.read(this,o,!1,52,8)};function D(o,s,a,x,M,V){if(!n.isBuffer(o))throw new TypeError('"buffer" argument must be a Buffer instance');if(s>M||s<V)throw new RangeError('"value" argument is out of bounds');if(a+x>o.length)throw new RangeError("Index out of range")}n.prototype.writeUintLE=n.prototype.writeUIntLE=function(o,s,a,x){if(o=+o,s=s>>>0,a=a>>>0,!x){var M=Math.pow(2,8*a)-1;D(this,o,s,a,M,0)}var V=1,H=0;for(this[s]=o&255;++H<a&&(V*=256);)this[s+H]=o/V&255;return s+a},n.prototype.writeUintBE=n.prototype.writeUIntBE=function(o,s,a,x){if(o=+o,s=s>>>0,a=a>>>0,!x){var M=Math.pow(2,8*a)-1;D(this,o,s,a,M,0)}var V=a-1,H=1;for(this[s+V]=o&255;--V>=0&&(H*=256);)this[s+V]=o/H&255;return s+a},n.prototype.writeUint8=n.prototype.writeUInt8=function(o,s,a){return o=+o,s=s>>>0,a||D(this,o,s,1,255,0),this[s]=o&255,s+1},n.prototype.writeUint16LE=n.prototype.writeUInt16LE=function(o,s,a){return o=+o,s=s>>>0,a||D(this,o,s,2,65535,0),this[s]=o&255,this[s+1]=o>>>8,s+2},n.prototype.writeUint16BE=n.prototype.writeUInt16BE=function(o,s,a){return o=+o,s=s>>>0,a||D(this,o,s,2,65535,0),this[s]=o>>>8,this[s+1]=o&255,s+2},n.prototype.writeUint32LE=n.prototype.writeUInt32LE=function(o,s,a){return o=+o,s=s>>>0,a||D(this,o,s,4,4294967295,0),this[s+3]=o>>>24,this[s+2]=o>>>16,this[s+1]=o>>>8,this[s]=o&255,s+4},n.prototype.writeUint32BE=n.prototype.writeUInt32BE=function(o,s,a){return o=+o,s=s>>>0,a||D(this,o,s,4,4294967295,0),this[s]=o>>>24,this[s+1]=o>>>16,this[s+2]=o>>>8,this[s+3]=o&255,s+4},n.prototype.writeIntLE=function(o,s,a,x){if(o=+o,s=s>>>0,!x){var M=Math.pow(2,8*a-1);D(this,o,s,a,M-1,-M)}var V=0,H=1,ot=0;for(this[s]=o&255;++V<a&&(H*=256);)o<0&&ot===0&&this[s+V-1]!==0&&(ot=1),this[s+V]=(o/H>>0)-ot&255;return s+a},n.prototype.writeIntBE=function(o,s,a,x){if(o=+o,s=s>>>0,!x){var M=Math.pow(2,8*a-1);D(this,o,s,a,M-1,-M)}var V=a-1,H=1,ot=0;for(this[s+V]=o&255;--V>=0&&(H*=256);)o<0&&ot===0&&this[s+V+1]!==0&&(ot=1),this[s+V]=(o/H>>0)-ot&255;return s+a},n.prototype.writeInt8=function(o,s,a){return o=+o,s=s>>>0,a||D(this,o,s,1,127,-128),o<0&&(o=255+o+1),this[s]=o&255,s+1},n.prototype.writeInt16LE=function(o,s,a){return o=+o,s=s>>>0,a||D(this,o,s,2,32767,-32768),this[s]=o&255,this[s+1]=o>>>8,s+2},n.prototype.writeInt16BE=function(o,s,a){return o=+o,s=s>>>0,a||D(this,o,s,2,32767,-32768),this[s]=o>>>8,this[s+1]=o&255,s+2},n.prototype.writeInt32LE=function(o,s,a){return o=+o,s=s>>>0,a||D(this,o,s,4,2147483647,-2147483648),this[s]=o&255,this[s+1]=o>>>8,this[s+2]=o>>>16,this[s+3]=o>>>24,s+4},n.prototype.writeInt32BE=function(o,s,a){return o=+o,s=s>>>0,a||D(this,o,s,4,2147483647,-2147483648),o<0&&(o=4294967295+o+1),this[s]=o>>>24,this[s+1]=o>>>16,this[s+2]=o>>>8,this[s+3]=o&255,s+4};function Z(o,s,a,x,M,V){if(a+x>o.length)throw new RangeError("Index out of range");if(a<0)throw new RangeError("Index out of range")}function Y(o,s,a,x,M){return s=+s,a=a>>>0,M||Z(o,s,a,4),r.write(o,s,a,x,23,4),a+4}n.prototype.writeFloatLE=function(o,s,a){return Y(this,o,s,!0,a)},n.prototype.writeFloatBE=function(o,s,a){return Y(this,o,s,!1,a)};function nt(o,s,a,x,M){return s=+s,a=a>>>0,M||Z(o,s,a,8),r.write(o,s,a,x,52,8),a+8}n.prototype.writeDoubleLE=function(o,s,a){return nt(this,o,s,!0,a)},n.prototype.writeDoubleBE=function(o,s,a){return nt(this,o,s,!1,a)},n.prototype.copy=function(o,s,a,x){if(!n.isBuffer(o))throw new TypeError("argument should be a Buffer");if(a||(a=0),!x&&x!==0&&(x=this.length),s>=o.length&&(s=o.length),s||(s=0),x>0&&x<a&&(x=a),x===a||o.length===0||this.length===0)return 0;if(s<0)throw new RangeError("targetStart out of bounds");if(a<0||a>=this.length)throw new RangeError("Index out of range");if(x<0)throw new RangeError("sourceEnd out of bounds");x>this.length&&(x=this.length),o.length-s<x-a&&(x=o.length-s+a);var M=x-a;return this===o&&typeof Uint8Array.prototype.copyWithin=="function"?this.copyWithin(s,a,x):Uint8Array.prototype.set.call(o,this.subarray(a,x),s),M},n.prototype.fill=function(o,s,a,x){if(typeof o=="string"){if(typeof s=="string"?(x=s,s=0,a=this.length):typeof a=="string"&&(x=a,a=this.length),x!==void 0&&typeof x!="string")throw new TypeError("encoding must be a string");if(typeof x=="string"&&!n.isEncoding(x))throw new TypeError("Unknown encoding: "+x);if(o.length===1){var M=o.charCodeAt(0);(x==="utf8"&&M<128||x==="latin1")&&(o=M)}}else typeof o=="number"?o=o&255:typeof o=="boolean"&&(o=Number(o));if(s<0||this.length<s||this.length<a)throw new RangeError("Out of range index");if(a<=s)return this;s=s>>>0,a=a===void 0?this.length:a>>>0,o||(o=0);var V;if(typeof o=="number")for(V=s;V<a;++V)this[V]=o;else{var H=n.isBuffer(o)?o:n.from(o,x),ot=H.length;if(ot===0)throw new TypeError('The value "'+o+'" is invalid for argument "value"');for(V=0;V<a-s;++V)this[V+s]=H[V%ot]}return this};var G=/[^+/0-9A-Za-z-_]/g;function E(o){if(o=o.split("=")[0],o=o.trim().replace(G,""),o.length<2)return"";for(;o.length%4!==0;)o=o+"=";return o}function w(o,s){s=s||1/0;for(var a,x=o.length,M=null,V=[],H=0;H<x;++H){if(a=o.charCodeAt(H),a>55295&&a<57344){if(!M){if(a>56319){(s-=3)>-1&&V.push(239,191,189);continue}else if(H+1===x){(s-=3)>-1&&V.push(239,191,189);continue}M=a;continue}if(a<56320){(s-=3)>-1&&V.push(239,191,189),M=a;continue}a=(M-55296<<10|a-56320)+65536}else M&&(s-=3)>-1&&V.push(239,191,189);if(M=null,a<128){if((s-=1)<0)break;V.push(a)}else if(a<2048){if((s-=2)<0)break;V.push(a>>6|192,a&63|128)}else if(a<65536){if((s-=3)<0)break;V.push(a>>12|224,a>>6&63|128,a&63|128)}else if(a<1114112){if((s-=4)<0)break;V.push(a>>18|240,a>>12&63|128,a>>6&63|128,a&63|128)}else throw new Error("Invalid code point")}return V}function z(o){for(var s=[],a=0;a<o.length;++a)s.push(o.charCodeAt(a)&255);return s}function L(o,s){for(var a,x,M,V=[],H=0;H<o.length&&!((s-=2)<0);++H)a=o.charCodeAt(H),x=a>>8,M=a%256,V.push(M),V.push(x);return V}function O(o){return t.toByteArray(E(o))}function P(o,s,a,x){for(var M=0;M<x&&!(M+a>=s.length||M>=o.length);++M)s[M+a]=o[M];return M}function tt(o,s){return o instanceof s||o!=null&&o.constructor!=null&&o.constructor.name!=null&&o.constructor.name===s.name}function f(o){return o!==o}var q=function(){for(var o="0123456789abcdef",s=new Array(256),a=0;a<16;++a)for(var x=a*16,M=0;M<16;++M)s[x+M]=o[a]+o[M];return s}()}(gi)),gi}var vi={},xi={},_i,Ei;function Ti(){return Ei||(Ei=1,_i=function(){if(typeof Symbol!="function"||typeof Object.getOwnPropertySymbols!="function")return!1;if(typeof Symbol.iterator=="symbol")return!0;var e={},t=Symbol("test"),r=Object(t);if(typeof t=="string"||Object.prototype.toString.call(t)!=="[object Symbol]"||Object.prototype.toString.call(r)!=="[object Symbol]")return!1;var i=42;e[t]=i;for(var p 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 c=Object.getOwnPropertySymbols(e);if(c.length!==1||c[0]!==t||!Object.prototype.propertyIsEnumerable.call(e,t))return!1;if(typeof Object.getOwnPropertyDescriptor=="function"){var h=Object.getOwnPropertyDescriptor(e,t);if(h.value!==i||h.enumerable!==!0)return!1}return!0}),_i}var wr,Ai;function yr(){if(Ai)return wr;Ai=1;var e=Ti();return wr=function(){return e()&&!!Symbol.toStringTag},wr}var ki,Si;function Ci(){return Si||(Si=1,ki=Object),ki}var Ii,Ri;function Ec(){return Ri||(Ri=1,Ii=Error),Ii}var Ni,Oi;function Tc(){return Oi||(Oi=1,Ni=EvalError),Ni}var Di,Pi;function Ac(){return Pi||(Pi=1,Di=RangeError),Di}var Fi,Bi;function kc(){return Bi||(Bi=1,Fi=ReferenceError),Fi}var Li,Mi;function ji(){return Mi||(Mi=1,Li=SyntaxError),Li}var zi,Wi;function Ae(){return Wi||(Wi=1,zi=TypeError),zi}var Ui,Hi;function Sc(){return Hi||(Hi=1,Ui=URIError),Ui}var Ki,Vi;function Cc(){return Vi||(Vi=1,Ki=Math.abs),Ki}var Gi,Zi;function Ic(){return Zi||(Zi=1,Gi=Math.floor),Gi}var Xi,qi;function Rc(){return qi||(qi=1,Xi=Math.max),Xi}var Yi,Qi;function Nc(){return Qi||(Qi=1,Yi=Math.min),Yi}var $i,Ji;function Oc(){return Ji||(Ji=1,$i=Math.pow),$i}var to,eo;function Dc(){return eo||(eo=1,to=Math.round),to}var ro,no;function Pc(){return no||(no=1,ro=Number.isNaN||function(e){return e!==e}),ro}var br,io;function Fc(){if(io)return br;io=1;var e=Pc();return br=function(t){return e(t)||t===0?t:t<0?-1:1},br}var oo,so;function Bc(){return so||(so=1,oo=Object.getOwnPropertyDescriptor),oo}var vr,ao;function ke(){if(ao)return vr;ao=1;var e=Bc();if(e)try{e([],"length")}catch{e=null}return vr=e,vr}var xr,uo;function Ze(){if(uo)return xr;uo=1;var e=Object.defineProperty||!1;if(e)try{e({},"a",{value:1})}catch{e=!1}return xr=e,xr}var _r,co;function Lc(){if(co)return _r;co=1;var e=typeof Symbol<"u"&&Symbol,t=Ti();return _r=function(){return typeof e!="function"||typeof Symbol!="function"||typeof e("foo")!="symbol"||typeof Symbol("bar")!="symbol"?!1:t()},_r}var lo,ho;function po(){return ho||(ho=1,lo=typeof Reflect<"u"&&Reflect.getPrototypeOf||null),lo}var Er,fo;function mo(){if(fo)return Er;fo=1;var e=Ci();return Er=e.getPrototypeOf||null,Er}var Tr,go;function Mc(){if(go)return Tr;go=1;var e="Function.prototype.bind called on incompatible ",t=Object.prototype.toString,r=Math.max,i="[object Function]",p=function(n,g){for(var T=[],_=0;_<n.length;_+=1)T[_]=n[_];for(var S=0;S<g.length;S+=1)T[S+n.length]=g[S];return T},c=function(n,g){for(var T=[],_=g,S=0;_<n.length;_+=1,S+=1)T[S]=n[_];return T},h=function(n,g){for(var T="",_=0;_<n.length;_+=1)T+=n[_],_+1<n.length&&(T+=g);return T};return Tr=function(n){var g=this;if(typeof g!="function"||t.apply(g)!==i)throw new TypeError(e+g);for(var T=c(arguments,1),_,S=function(){if(this instanceof _){var R=g.apply(this,p(T,arguments));return Object(R)===R?R:this}return g.apply(n,p(T,arguments))},I=r(0,g.length-T.length),d=[],A=0;A<I;A++)d[A]="$"+A;if(_=Function("binder","return function ("+h(d,",")+"){ return binder.apply(this,arguments); }")(S),g.prototype){var v=function(){};v.prototype=g.prototype,_.prototype=new v,v.prototype=null}return _},Tr}var Ar,wo;function Se(){if(wo)return Ar;wo=1;var e=Mc();return Ar=Function.prototype.bind||e,Ar}var yo,bo;function kr(){return bo||(bo=1,yo=Function.prototype.call),yo}var vo,xo;function _o(){return xo||(xo=1,vo=Function.prototype.apply),vo}var Eo,To;function jc(){return To||(To=1,Eo=typeof Reflect<"u"&&Reflect&&Reflect.apply),Eo}var Sr,Ao;function zc(){if(Ao)return Sr;Ao=1;var e=Se(),t=_o(),r=kr(),i=jc();return Sr=i||e.call(r,t),Sr}var Cr,ko;function Wc(){if(ko)return Cr;ko=1;var e=Se(),t=Ae(),r=kr(),i=zc();return Cr=function(p){if(p.length<1||typeof p[0]!="function")throw new t("a function is required");return i(e,r,p)},Cr}var Ir,So;function Uc(){if(So)return Ir;So=1;var e=Wc(),t=ke(),r;try{r=[].__proto__===Array.prototype}catch(h){if(!h||typeof h!="object"||!("code"in h)||h.code!=="ERR_PROTO_ACCESS")throw h}var i=!!r&&t&&t(Object.prototype,"__proto__"),p=Object,c=p.getPrototypeOf;return Ir=i&&typeof i.get=="function"?e([i.get]):typeof c=="function"?function(h){return c(h==null?h:p(h))}:!1,Ir}var Rr,Co;function Hc(){if(Co)return Rr;Co=1;var e=po(),t=mo(),r=Uc();return Rr=e?function(i){return e(i)}:t?function(i){if(!i||typeof i!="object"&&typeof i!="function")throw new TypeError("getProto: not an object");return t(i)}:r?function(i){return r(i)}:null,Rr}var Nr,Io;function Kc(){if(Io)return Nr;Io=1;var e=Function.prototype.call,t=Object.prototype.hasOwnProperty,r=Se();return Nr=r.call(e,t),Nr}var Or,Ro;function Dr(){if(Ro)return Or;Ro=1;var e,t=Ci(),r=Ec(),i=Tc(),p=Ac(),c=kc(),h=ji(),n=Ae(),g=Sc(),T=Cc(),_=Ic(),S=Rc(),I=Nc(),d=Oc(),A=Dc(),v=Fc(),R=Function,u=function(z){try{return R('"use strict"; return ('+z+").constructor;")()}catch{}},m=ke(),b=Ze(),l=function(){throw new n},k=m?function(){try{return arguments.callee,l}catch{try{return m(arguments,"callee").get}catch{return l}}}():l,F=Lc()(),B=Hc(),U=mo(),C=po(),Q=_o(),at=kr(),N={},j=typeof Uint8Array>"u"||!B?e:B(Uint8Array),y={__proto__:null,"%AggregateError%":typeof AggregateError>"u"?e:AggregateError,"%Array%":Array,"%ArrayBuffer%":typeof ArrayBuffer>"u"?e:ArrayBuffer,"%ArrayIteratorPrototype%":F&&B?B([][Symbol.iterator]()):e,"%AsyncFromSyncIteratorPrototype%":e,"%AsyncFunction%":N,"%AsyncGenerator%":N,"%AsyncGeneratorFunction%":N,"%AsyncIteratorPrototype%":N,"%Atomics%":typeof Atomics>"u"?e:Atomics,"%BigInt%":typeof BigInt>"u"?e:BigInt,"%BigInt64Array%":typeof BigInt64Array>"u"?e:BigInt64Array,"%BigUint64Array%":typeof BigUint64Array>"u"?e:BigUint64Array,"%Boolean%":Boolean,"%DataView%":typeof DataView>"u"?e:DataView,"%Date%":Date,"%decodeURI%":decodeURI,"%decodeURIComponent%":decodeURIComponent,"%encodeURI%":encodeURI,"%encodeURIComponent%":encodeURIComponent,"%Error%":r,"%eval%":eval,"%EvalError%":i,"%Float16Array%":typeof Float16Array>"u"?e:Float16Array,"%Float32Array%":typeof Float32Array>"u"?e:Float32Array,"%Float64Array%":typeof Float64Array>"u"?e:Float64Array,"%FinalizationRegistry%":typeof FinalizationRegistry>"u"?e:FinalizationRegistry,"%Function%":R,"%GeneratorFunction%":N,"%Int8Array%":typeof Int8Array>"u"?e:Int8Array,"%Int16Array%":typeof Int16Array>"u"?e:Int16Array,"%Int32Array%":typeof Int32Array>"u"?e:Int32Array,"%isFinite%":isFinite,"%isNaN%":isNaN,"%IteratorPrototype%":F&&B?B(B([][Symbol.iterator]())):e,"%JSON%":typeof JSON=="object"?JSON:e,"%Map%":typeof Map>"u"?e:Map,"%MapIteratorPrototype%":typeof Map>"u"||!F||!B?e:B(new Map()[Symbol.iterator]()),"%Math%":Math,"%Number%":Number,"%Object%":t,"%Object.getOwnPropertyDescriptor%":m,"%parseFloat%":parseFloat,"%parseInt%":parseInt,"%Promise%":typeof Promise>"u"?e:Promise,"%Proxy%":typeof Proxy>"u"?e:Proxy,"%RangeError%":p,"%ReferenceError%":c,"%Reflect%":typeof Reflect>"u"?e:Reflect,"%RegExp%":RegExp,"%Set%":typeof Set>"u"?e:Set,"%SetIteratorPrototype%":typeof Set>"u"||!F||!B?e:B(new Set()[Symbol.iterator]()),"%SharedArrayBuffer%":typeof SharedArrayBuffer>"u"?e:SharedArrayBuffer,"%String%":String,"%StringIteratorPrototype%":F&&B?B(""[Symbol.iterator]()):e,"%Symbol%":F?Symbol:e,"%SyntaxError%":h,"%ThrowTypeError%":k,"%TypedArray%":j,"%TypeError%":n,"%Uint8Array%":typeof Uint8Array>"u"?e:Uint8Array,"%Uint8ClampedArray%":typeof Uint8ClampedArray>"u"?e:Uint8ClampedArray,"%Uint16Array%":typeof Uint16Array>"u"?e:Uint16Array,"%Uint32Array%":typeof Uint32Array>"u"?e:Uint32Array,"%URIError%":g,"%WeakMap%":typeof WeakMap>"u"?e:WeakMap,"%WeakRef%":typeof WeakRef>"u"?e:WeakRef,"%WeakSet%":typeof WeakSet>"u"?e:WeakSet,"%Function.prototype.call%":at,"%Function.prototype.apply%":Q,"%Object.defineProperty%":b,"%Object.getPrototypeOf%":U,"%Math.abs%":T,"%Math.floor%":_,"%Math.max%":S,"%Math.min%":I,"%Math.pow%":d,"%Math.round%":A,"%Math.sign%":v,"%Reflect.getPrototypeOf%":C};if(B)try{null.error}catch(z){var W=B(B(z));y["%Error.prototype%"]=W}var $=function z(L){var O;if(L==="%AsyncFunction%")O=u("async function () {}");else if(L==="%GeneratorFunction%")O=u("function* () {}");else if(L==="%AsyncGeneratorFunction%")O=u("async function* () {}");else if(L==="%AsyncGenerator%"){var P=z("%AsyncGeneratorFunction%");P&&(O=P.prototype)}else if(L==="%AsyncIteratorPrototype%"){var tt=z("%AsyncGenerator%");tt&&B&&(O=B(tt.prototype))}return y[L]=O,O},K={__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"]},it=Se(),J=Kc(),lt=it.call(at,Array.prototype.concat),X=it.call(Q,Array.prototype.splice),D=it.call(at,String.prototype.replace),Z=it.call(at,String.prototype.slice),Y=it.call(at,RegExp.prototype.exec),nt=/[^%.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|%$))/g,G=/\\(\\)?/g,E=function(z){var L=Z(z,0,1),O=Z(z,-1);if(L==="%"&&O!=="%")throw new h("invalid intrinsic syntax, expected closing `%`");if(O==="%"&&L!=="%")throw new h("invalid intrinsic syntax, expected opening `%`");var P=[];return D(z,nt,function(tt,f,q,o){P[P.length]=q?D(o,G,"$1"):f||tt}),P},w=function(z,L){var O=z,P;if(J(K,O)&&(P=K[O],O="%"+P[0]+"%"),J(y,O)){var tt=y[O];if(tt===N&&(tt=$(O)),typeof tt>"u"&&!L)throw new n("intrinsic "+z+" exists, but is not available. Please file an issue!");return{alias:P,name:O,value:tt}}throw new h("intrinsic "+z+" does not exist!")};return Or=function(z,L){if(typeof z!="string"||z.length===0)throw new n("intrinsic name must be a non-empty string");if(arguments.length>1&&typeof L!="boolean")throw new n('"allowMissing" argument must be a boolean');if(Y(/^%?[^%]*%?$/,z)===null)throw new h("`%` may not be present anywhere but at the beginning and end of the intrinsic name");var O=E(z),P=O.length>0?O[0]:"",tt=w("%"+P+"%",L),f=tt.name,q=tt.value,o=!1,s=tt.alias;s&&(P=s[0],X(O,lt([0,1],s)));for(var a=1,x=!0;a<O.length;a+=1){var M=O[a],V=Z(M,0,1),H=Z(M,-1);if((V==='"'||V==="'"||V==="`"||H==='"'||H==="'"||H==="`")&&V!==H)throw new h("property names with quotes must have matching quotes");if((M==="constructor"||!x)&&(o=!0),P+="."+M,f="%"+P+"%",J(y,f))q=y[f];else if(q!=null){if(!(M in q)){if(!L)throw new n("base intrinsic for "+z+" exists, but the property is not available.");return}if(m&&a+1>=O.length){var ot=m(q,M);x=!!ot,x&&"get"in ot&&!("originalValue"in ot.get)?q=ot.get:q=q[M]}else x=J(q,M),q=q[M];x&&!o&&(y[f]=q)}}return q},Or}var No={exports:{}},Pr,Oo;function Vc(){if(Oo)return Pr;Oo=1;var e=Ze(),t=ji(),r=Ae(),i=ke();return Pr=function(p,c,h){if(!p||typeof p!="object"&&typeof p!="function")throw new r("`obj` must be an object or a function`");if(typeof c!="string"&&typeof c!="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 n=arguments.length>3?arguments[3]:null,g=arguments.length>4?arguments[4]:null,T=arguments.length>5?arguments[5]:null,_=arguments.length>6?arguments[6]:!1,S=!!i&&i(p,c);if(e)e(p,c,{configurable:T===null&&S?S.configurable:!T,enumerable:n===null&&S?S.enumerable:!n,value:h,writable:g===null&&S?S.writable:!g});else if(_||!n&&!g&&!T)p[c]=h;else throw new t("This environment does not support defining a property as non-configurable, non-writable, or non-enumerable.")},Pr}var Fr,Do;function Gc(){if(Do)return Fr;Do=1;var e=Ze(),t=function(){return!!e};return t.hasArrayLengthDefineBug=function(){if(!e)return null;try{return e([],"length",{value:1}).length!==1}catch{return!0}},Fr=t,Fr}var Br,Po;function Zc(){if(Po)return Br;Po=1;var e=Dr(),t=Vc(),r=Gc()(),i=ke(),p=Ae(),c=e("%Math.floor%");return Br=function(h,n){if(typeof h!="function")throw new p("`fn` is not a function");if(typeof n!="number"||n<0||n>4294967295||c(n)!==n)throw new p("`length` must be a positive 32-bit integer");var g=arguments.length>2&&!!arguments[2],T=!0,_=!0;if("length"in h&&i){var S=i(h,"length");S&&!S.configurable&&(T=!1),S&&!S.writable&&(_=!1)}return(T||_||!g)&&(r?t(h,"length",n,!0,!0):t(h,"length",n)),h},Br}var Fo;function Bo(){return Fo||(Fo=1,function(e){var t=Se(),r=Dr(),i=Zc(),p=Ae(),c=r("%Function.prototype.apply%"),h=r("%Function.prototype.call%"),n=r("%Reflect.apply%",!0)||t.call(h,c),g=Ze(),T=r("%Math.max%");e.exports=function(S){if(typeof S!="function")throw new p("a function is required");var I=n(t,h,arguments);return i(I,1+T(0,S.length-(arguments.length-1)),!0)};var _=function(){return n(t,c,arguments)};g?g(e.exports,"apply",{value:_}):e.exports.apply=_}(No)),No.exports}var Lr,Lo;function Mo(){if(Lo)return Lr;Lo=1;var e=Dr(),t=Bo(),r=t(e("String.prototype.indexOf"));return Lr=function(i,p){var c=e(i,!!p);return typeof c=="function"&&r(i,".prototype.")>-1?t(c):c},Lr}var Mr,jo;function Xc(){if(jo)return Mr;jo=1;var e=yr()(),t=Mo(),r=t("Object.prototype.toString"),i=function(h){return e&&h&&typeof h=="object"&&Symbol.toStringTag in h?!1:r(h)==="[object Arguments]"},p=function(h){return i(h)?!0:h!==null&&typeof h=="object"&&typeof h.length=="number"&&h.length>=0&&r(h)!=="[object Array]"&&r(h.callee)==="[object Function]"},c=function(){return i(arguments)}();return i.isLegacyArguments=p,Mr=c?i:p,Mr}var jr,zo;function qc(){if(zo)return jr;zo=1;var e=Object.prototype.toString,t=Function.prototype.toString,r=/^\s*(?:function)?\*/,i=yr()(),p=Object.getPrototypeOf,c=function(){if(!i)return!1;try{return Function("return function*() {}")()}catch{}},h;return jr=function(n){if(typeof n!="function")return!1;if(r.test(t.call(n)))return!0;if(!i){var g=e.call(n);return g==="[object GeneratorFunction]"}if(!p)return!1;if(typeof h>"u"){var T=c();h=T?p(T):!1}return p(n)===h},jr}var zr,Wo;function Yc(){if(Wo)return zr;Wo=1;var e=Function.prototype.toString,t=typeof Reflect=="object"&&Reflect!==null&&Reflect.apply,r,i;if(typeof t=="function"&&typeof Object.defineProperty=="function")try{r=Object.defineProperty({},"length",{get:function(){throw i}}),i={},t(function(){throw 42},null,r)}catch(m){m!==i&&(t=null)}else t=null;var p=/^\s*class\b/,c=function(m){try{var b=e.call(m);return p.test(b)}catch{return!1}},h=function(m){try{return c(m)?!1:(e.call(m),!0)}catch{return!1}},n=Object.prototype.toString,g="[object Object]",T="[object Function]",_="[object GeneratorFunction]",S="[object HTMLAllCollection]",I="[object HTML document.all class]",d="[object HTMLCollection]",A=typeof Symbol=="function"&&!!Symbol.toStringTag,v=!(0 in[,]),R=function(){return!1};if(typeof document=="object"){var u=document.all;n.call(u)===n.call(document.all)&&(R=function(m){if((v||!m)&&(typeof m>"u"||typeof m=="object"))try{var b=n.call(m);return(b===S||b===I||b===d||b===g)&&m("")==null}catch{}return!1})}return zr=t?function(m){if(R(m))return!0;if(!m||typeof m!="function"&&typeof m!="object")return!1;try{t(m,null,r)}catch(b){if(b!==i)return!1}return!c(m)&&h(m)}:function(m){if(R(m))return!0;if(!m||typeof m!="function"&&typeof m!="object")return!1;if(A)return h(m);if(c(m))return!1;var b=n.call(m);return b!==T&&b!==_&&!/^\[object HTML/.test(b)?!1:h(m)},zr}var Wr,Uo;function Qc(){if(Uo)return Wr;Uo=1;var e=Yc(),t=Object.prototype.toString,r=Object.prototype.hasOwnProperty,i=function(n,g,T){for(var _=0,S=n.length;_<S;_++)r.call(n,_)&&(T==null?g(n[_],_,n):g.call(T,n[_],_,n))},p=function(n,g,T){for(var _=0,S=n.length;_<S;_++)T==null?g(n.charAt(_),_,n):g.call(T,n.charAt(_),_,n)},c=function(n,g,T){for(var _ in n)r.call(n,_)&&(T==null?g(n[_],_,n):g.call(T,n[_],_,n))},h=function(n,g,T){if(!e(g))throw new TypeError("iterator must be a function");var _;arguments.length>=3&&(_=T),t.call(n)==="[object Array]"?i(n,g,_):typeof n=="string"?p(n,g,_):c(n,g,_)};return Wr=h,Wr}var Ho,Ko;function $c(){return Ko||(Ko=1,Ho=["Float32Array","Float64Array","Int8Array","Int16Array","Int32Array","Uint8Array","Uint8ClampedArray","Uint16Array","Uint32Array","BigInt64Array","BigUint64Array"]),Ho}var Ur,Vo;function Jc(){if(Vo)return Ur;Vo=1;var e=$c(),t=typeof globalThis>"u"?Pt:globalThis;return Ur=function(){for(var r=[],i=0;i<e.length;i++)typeof t[e[i]]=="function"&&(r[r.length]=e[i]);return r},Ur}var Hr,Go;function Zo(){if(Go)return Hr;Go=1;var e=Qc(),t=Jc(),r=Bo(),i=Mo(),p=ke(),c=i("Object.prototype.toString"),h=yr()(),n=typeof globalThis>"u"?Pt:globalThis,g=t(),T=i("String.prototype.slice"),_=Object.getPrototypeOf,S=i("Array.prototype.indexOf",!0)||function(v,R){for(var u=0;u<v.length;u+=1)if(v[u]===R)return u;return-1},I={__proto__:null};h&&p&&_?e(g,function(v){var R=new n[v];if(Symbol.toStringTag in R){var u=_(R),m=p(u,Symbol.toStringTag);if(!m){var b=_(u);m=p(b,Symbol.toStringTag)}I["$"+v]=r(m.get)}}):e(g,function(v){var R=new n[v],u=R.slice||R.set;u&&(I["$"+v]=r(u))});var d=function(v){var R=!1;return e(I,function(u,m){if(!R)try{"$"+u(v)===m&&(R=T(m,1))}catch{}}),R},A=function(v){var R=!1;return e(I,function(u,m){if(!R)try{u(v),R=T(m,1)}catch{}}),R};return Hr=function(v){if(!v||typeof v!="object")return!1;if(!h){var R=T(c(v),8,-1);return S(g,R)>-1?R:R!=="Object"?!1:A(v)}return p?d(v):null},Hr}var Kr,Xo;function tl(){if(Xo)return Kr;Xo=1;var e=Zo();return Kr=function(t){return!!e(t)},Kr}var qo;function el(){return qo||(qo=1,function(e){var t=Xc(),r=qc(),i=Zo(),p=tl();function c(x){return x.call.bind(x)}var h=typeof BigInt<"u",n=typeof Symbol<"u",g=c(Object.prototype.toString),T=c(Number.prototype.valueOf),_=c(String.prototype.valueOf),S=c(Boolean.prototype.valueOf);if(h)var I=c(BigInt.prototype.valueOf);if(n)var d=c(Symbol.prototype.valueOf);function A(x,M){if(typeof x!="object")return!1;try{return M(x),!0}catch{return!1}}e.isArgumentsObject=t,e.isGeneratorFunction=r,e.isTypedArray=p;function v(x){return typeof Promise<"u"&&x instanceof Promise||x!==null&&typeof x=="object"&&typeof x.then=="function"&&typeof x.catch=="function"}e.isPromise=v;function R(x){return typeof ArrayBuffer<"u"&&ArrayBuffer.isView?ArrayBuffer.isView(x):p(x)||Z(x)}e.isArrayBufferView=R;function u(x){return i(x)==="Uint8Array"}e.isUint8Array=u;function m(x){return i(x)==="Uint8ClampedArray"}e.isUint8ClampedArray=m;function b(x){return i(x)==="Uint16Array"}e.isUint16Array=b;function l(x){return i(x)==="Uint32Array"}e.isUint32Array=l;function k(x){return i(x)==="Int8Array"}e.isInt8Array=k;function F(x){return i(x)==="Int16Array"}e.isInt16Array=F;function B(x){return i(x)==="Int32Array"}e.isInt32Array=B;function U(x){return i(x)==="Float32Array"}e.isFloat32Array=U;function C(x){return i(x)==="Float64Array"}e.isFloat64Array=C;function Q(x){return i(x)==="BigInt64Array"}e.isBigInt64Array=Q;function at(x){return i(x)==="BigUint64Array"}e.isBigUint64Array=at;function N(x){return g(x)==="[object Map]"}N.working=typeof Map<"u"&&N(new Map);function j(x){return typeof Map>"u"?!1:N.working?N(x):x instanceof Map}e.isMap=j;function y(x){return g(x)==="[object Set]"}y.working=typeof Set<"u"&&y(new Set);function W(x){return typeof Set>"u"?!1:y.working?y(x):x instanceof Set}e.isSet=W;function $(x){return g(x)==="[object WeakMap]"}$.working=typeof WeakMap<"u"&&$(new WeakMap);function K(x){return typeof WeakMap>"u"?!1:$.working?$(x):x instanceof WeakMap}e.isWeakMap=K;function it(x){return g(x)==="[object WeakSet]"}it.working=typeof WeakSet<"u"&&it(new WeakSet);function J(x){return it(x)}e.isWeakSet=J;function lt(x){return g(x)==="[object ArrayBuffer]"}lt.working=typeof ArrayBuffer<"u"&&lt(new ArrayBuffer);function X(x){return typeof ArrayBuffer>"u"?!1:lt.working?lt(x):x instanceof ArrayBuffer}e.isArrayBuffer=X;function D(x){return g(x)==="[object DataView]"}D.working=typeof ArrayBuffer<"u"&&typeof DataView<"u"&&D(new DataView(new ArrayBuffer(1),0,1));function Z(x){return typeof DataView>"u"?!1:D.working?D(x):x instanceof DataView}e.isDataView=Z;var Y=typeof SharedArrayBuffer<"u"?SharedArrayBuffer:void 0;function nt(x){return g(x)==="[object SharedArrayBuffer]"}function G(x){return typeof Y>"u"?!1:(typeof nt.working>"u"&&(nt.working=nt(new Y)),nt.working?nt(x):x instanceof Y)}e.isSharedArrayBuffer=G;function E(x){return g(x)==="[object AsyncFunction]"}e.isAsyncFunction=E;function w(x){return g(x)==="[object Map Iterator]"}e.isMapIterator=w;function z(x){return g(x)==="[object Set Iterator]"}e.isSetIterator=z;function L(x){return g(x)==="[object Generator]"}e.isGeneratorObject=L;function O(x){return g(x)==="[object WebAssembly.Module]"}e.isWebAssemblyCompiledModule=O;function P(x){return A(x,T)}e.isNumberObject=P;function tt(x){return A(x,_)}e.isStringObject=tt;function f(x){return A(x,S)}e.isBooleanObject=f;function q(x){return h&&A(x,I)}e.isBigIntObject=q;function o(x){return n&&A(x,d)}e.isSymbolObject=o;function s(x){return P(x)||tt(x)||f(x)||q(x)||o(x)}e.isBoxedPrimitive=s;function a(x){return typeof Uint8Array<"u"&&(X(x)||G(x))}e.isAnyArrayBuffer=a,["isProxy","isExternal","isModuleNamespaceObject"].forEach(function(x){Object.defineProperty(e,x,{enumerable:!1,value:function(){throw new Error(x+" is not supported in userland")}})})}(xi)),xi}var Yo,Qo;function rl(){return Qo||(Qo=1,Yo=function(e){return e&&typeof e=="object"&&typeof e.copy=="function"&&typeof e.fill=="function"&&typeof e.readUInt8=="function"}),Yo}var $o;function Jo(){return $o||($o=1,function(e){var t=Object.getOwnPropertyDescriptors||function(D){for(var Z=Object.keys(D),Y={},nt=0;nt<Z.length;nt++)Y[Z[nt]]=Object.getOwnPropertyDescriptor(D,Z[nt]);return Y},r=/%[sdj%]/g;e.format=function(D){if(!k(D)){for(var Z=[],Y=0;Y<arguments.length;Y++)Z.push(h(arguments[Y]));return Z.join(" ")}for(var Y=1,nt=arguments,G=nt.length,E=String(D).replace(r,function(L){if(L==="%%")return"%";if(Y>=G)return L;switch(L){case"%s":return String(nt[Y++]);case"%d":return Number(nt[Y++]);case"%j":try{return JSON.stringify(nt[Y++])}catch{return"[Circular]"}default:return L}}),w=nt[Y];Y<G;w=nt[++Y])m(w)||!C(w)?E+=" "+w:E+=" "+h(w);return E},e.deprecate=function(D,Z){if(typeof gt<"u"&&gt.noDeprecation===!0)return D;if(typeof gt>"u")return function(){return e.deprecate(D,Z).apply(this,arguments)};var Y=!1;function nt(){if(!Y){if(gt.throwDeprecation)throw new Error(Z);gt.traceDeprecation||console.error(Z),Y=!0}return D.apply(this,arguments)}return nt};var i={},p=/^$/;if(gt.env.NODE_DEBUG){var c=gt.env.NODE_DEBUG;c=c.replace(/[|\\{}()[\]^$+?.]/g,"\\$&").replace(/\*/g,".*").replace(/,/g,"$|^").toUpperCase(),p=new RegExp("^"+c+"$","i")}e.debuglog=function(D){if(D=D.toUpperCase(),!i[D])if(p.test(D)){var Z=gt.pid;i[D]=function(){var Y=e.format.apply(e,arguments);console.error("%s %d: %s",D,Z,Y)}}else i[D]=function(){};return i[D]};function h(D,Z){var Y={seen:[],stylize:g};return arguments.length>=3&&(Y.depth=arguments[2]),arguments.length>=4&&(Y.colors=arguments[3]),u(Z)?Y.showHidden=Z:Z&&e._extend(Y,Z),B(Y.showHidden)&&(Y.showHidden=!1),B(Y.depth)&&(Y.depth=2),B(Y.colors)&&(Y.colors=!1),B(Y.customInspect)&&(Y.customInspect=!0),Y.colors&&(Y.stylize=n),_(Y,D,Y.depth)}e.inspect=h,h.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]},h.styles={special:"cyan",number:"yellow",boolean:"yellow",undefined:"grey",null:"bold",string:"green",date:"magenta",regexp:"red"};function n(D,Z){var Y=h.styles[Z];return Y?"\x1B["+h.colors[Y][0]+"m"+D+"\x1B["+h.colors[Y][1]+"m":D}function g(D,Z){return D}function T(D){var Z={};return D.forEach(function(Y,nt){Z[Y]=!0}),Z}function _(D,Z,Y){if(D.customInspect&&Z&&N(Z.inspect)&&Z.inspect!==e.inspect&&!(Z.constructor&&Z.constructor.prototype===Z)){var nt=Z.inspect(Y,D);return k(nt)||(nt=_(D,nt,Y)),nt}var G=S(D,Z);if(G)return G;var E=Object.keys(Z),w=T(E);if(D.showHidden&&(E=Object.getOwnPropertyNames(Z)),at(Z)&&(E.indexOf("message")>=0||E.indexOf("description")>=0))return I(Z);if(E.length===0){if(N(Z)){var z=Z.name?": "+Z.name:"";return D.stylize("[Function"+z+"]","special")}if(U(Z))return D.stylize(RegExp.prototype.toString.call(Z),"regexp");if(Q(Z))return D.stylize(Date.prototype.toString.call(Z),"date");if(at(Z))return I(Z)}var L="",O=!1,P=["{","}"];if(R(Z)&&(O=!0,P=["[","]"]),N(Z)){var tt=Z.name?": "+Z.name:"";L=" [Function"+tt+"]"}if(U(Z)&&(L=" "+RegExp.prototype.toString.call(Z)),Q(Z)&&(L=" "+Date.prototype.toUTCString.call(Z)),at(Z)&&(L=" "+I(Z)),E.length===0&&(!O||Z.length==0))return P[0]+L+P[1];if(Y<0)return U(Z)?D.stylize(RegExp.prototype.toString.call(Z),"regexp"):D.stylize("[Object]","special");D.seen.push(Z);var f;return O?f=d(D,Z,Y,w,E):f=E.map(function(q){return A(D,Z,Y,w,q,O)}),D.seen.pop(),v(f,L,P)}function S(D,Z){if(B(Z))return D.stylize("undefined","undefined");if(k(Z)){var Y="'"+JSON.stringify(Z).replace(/^"|"$/g,"").replace(/'/g,"\\'").replace(/\\"/g,'"')+"'";return D.stylize(Y,"string")}if(l(Z))return D.stylize(""+Z,"number");if(u(Z))return D.stylize(""+Z,"boolean");if(m(Z))return D.stylize("null","null")}function I(D){return"["+Error.prototype.toString.call(D)+"]"}function d(D,Z,Y,nt,G){for(var E=[],w=0,z=Z.length;w<z;++w)it(Z,String(w))?E.push(A(D,Z,Y,nt,String(w),!0)):E.push("");return G.forEach(function(L){L.match(/^\d+$/)||E.push(A(D,Z,Y,nt,L,!0))}),E}function A(D,Z,Y,nt,G,E){var w,z,L;if(L=Object.getOwnPropertyDescriptor(Z,G)||{value:Z[G]},L.get?L.set?z=D.stylize("[Getter/Setter]","special"):z=D.stylize("[Getter]","special"):L.set&&(z=D.stylize("[Setter]","special")),it(nt,G)||(w="["+G+"]"),z||(D.seen.indexOf(L.value)<0?(m(Y)?z=_(D,L.value,null):z=_(D,L.value,Y-1),z.indexOf(`
2
+ `)>-1&&(E?z=z.split(`
3
+ `).map(function(O){return" "+O}).join(`
4
+ `).slice(2):z=`
5
+ `+z.split(`
6
+ `).map(function(O){return" "+O}).join(`
7
+ `))):z=D.stylize("[Circular]","special")),B(w)){if(E&&G.match(/^\d+$/))return z;w=JSON.stringify(""+G),w.match(/^"([a-zA-Z_][a-zA-Z_0-9]*)"$/)?(w=w.slice(1,-1),w=D.stylize(w,"name")):(w=w.replace(/'/g,"\\'").replace(/\\"/g,'"').replace(/(^"|"$)/g,"'"),w=D.stylize(w,"string"))}return w+": "+z}function v(D,Z,Y){var nt=D.reduce(function(G,E){return E.indexOf(`
8
+ `)>=0,G+E.replace(/\u001b\[\d\d?m/g,"").length+1},0);return nt>60?Y[0]+(Z===""?"":Z+`
9
+ `)+" "+D.join(`,
10
+ `)+" "+Y[1]:Y[0]+Z+" "+D.join(", ")+" "+Y[1]}e.types=el();function R(D){return Array.isArray(D)}e.isArray=R;function u(D){return typeof D=="boolean"}e.isBoolean=u;function m(D){return D===null}e.isNull=m;function b(D){return D==null}e.isNullOrUndefined=b;function l(D){return typeof D=="number"}e.isNumber=l;function k(D){return typeof D=="string"}e.isString=k;function F(D){return typeof D=="symbol"}e.isSymbol=F;function B(D){return D===void 0}e.isUndefined=B;function U(D){return C(D)&&y(D)==="[object RegExp]"}e.isRegExp=U,e.types.isRegExp=U;function C(D){return typeof D=="object"&&D!==null}e.isObject=C;function Q(D){return C(D)&&y(D)==="[object Date]"}e.isDate=Q,e.types.isDate=Q;function at(D){return C(D)&&(y(D)==="[object Error]"||D instanceof Error)}e.isError=at,e.types.isNativeError=at;function N(D){return typeof D=="function"}e.isFunction=N;function j(D){return D===null||typeof D=="boolean"||typeof D=="number"||typeof D=="string"||typeof D=="symbol"||typeof D>"u"}e.isPrimitive=j,e.isBuffer=rl();function y(D){return Object.prototype.toString.call(D)}function W(D){return D<10?"0"+D.toString(10):D.toString(10)}var $=["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"];function K(){var D=new Date,Z=[W(D.getHours()),W(D.getMinutes()),W(D.getSeconds())].join(":");return[D.getDate(),$[D.getMonth()],Z].join(" ")}e.log=function(){K(),e.format.apply(e,arguments)},e.inherits=qt(),e._extend=function(D,Z){if(!Z||!C(Z))return D;for(var Y=Object.keys(Z),nt=Y.length;nt--;)D[Y[nt]]=Z[Y[nt]];return D};function it(D,Z){return Object.prototype.hasOwnProperty.call(D,Z)}var J=typeof Symbol<"u"?Symbol("util.promisify.custom"):void 0;e.promisify=function(D){if(typeof D!="function")throw new TypeError('The "original" argument must be of type Function');if(J&&D[J]){var Z=D[J];if(typeof Z!="function")throw new TypeError('The "util.promisify.custom" argument must be of type Function');return Object.defineProperty(Z,J,{value:Z,enumerable:!1,writable:!1,configurable:!0}),Z}function Z(){for(var Y,nt,G=new Promise(function(z,L){Y=z,nt=L}),E=[],w=0;w<arguments.length;w++)E.push(arguments[w]);E.push(function(z,L){z?nt(z):Y(L)});try{D.apply(this,E)}catch(z){nt(z)}return G}return Object.setPrototypeOf(Z,Object.getPrototypeOf(D)),J&&Object.defineProperty(Z,J,{value:Z,enumerable:!1,writable:!1,configurable:!0}),Object.defineProperties(Z,t(D))},e.promisify.custom=J;function lt(D,Z){if(!D){var Y=new Error("Promise was rejected with a falsy value");Y.reason=D,D=Y}return Z(D)}function X(D){if(typeof D!="function")throw new TypeError('The "original" argument must be of type Function');function Z(){for(var Y=[],nt=0;nt<arguments.length;nt++)Y.push(arguments[nt]);var G=Y.pop();if(typeof G!="function")throw new TypeError("The last argument must be of type Function");var E=this,w=function(){return G.apply(E,arguments)};D.apply(this,Y).then(function(z){gt.nextTick(w.bind(null,null,z))},function(z){gt.nextTick(lt.bind(null,z,w))})}return Object.setPrototypeOf(Z,Object.getPrototypeOf(D)),Object.defineProperties(Z,t(D)),Z}e.callbackify=X}(vi)),vi}var Vr,ts;function nl(){if(ts)return Vr;ts=1;function e(I,d){var A=Object.keys(I);if(Object.getOwnPropertySymbols){var v=Object.getOwnPropertySymbols(I);d&&(v=v.filter(function(R){return Object.getOwnPropertyDescriptor(I,R).enumerable})),A.push.apply(A,v)}return A}function t(I){for(var d=1;d<arguments.length;d++){var A=arguments[d]!=null?arguments[d]:{};d%2?e(Object(A),!0).forEach(function(v){r(I,v,A[v])}):Object.getOwnPropertyDescriptors?Object.defineProperties(I,Object.getOwnPropertyDescriptors(A)):e(Object(A)).forEach(function(v){Object.defineProperty(I,v,Object.getOwnPropertyDescriptor(A,v))})}return I}function r(I,d,A){return d in I?Object.defineProperty(I,d,{value:A,enumerable:!0,configurable:!0,writable:!0}):I[d]=A,I}function i(I,d){if(!(I instanceof d))throw new TypeError("Cannot call a class as a function")}function p(I,d){for(var A=0;A<d.length;A++){var v=d[A];v.enumerable=v.enumerable||!1,v.configurable=!0,"value"in v&&(v.writable=!0),Object.defineProperty(I,v.key,v)}}function c(I,d,A){return d&&p(I.prototype,d),I}var h=Ge(),n=h.Buffer,g=Jo(),T=g.inspect,_=T&&T.custom||"inspect";function S(I,d,A){n.prototype.copy.call(I,d,A)}return Vr=function(){function I(){i(this,I),this.head=null,this.tail=null,this.length=0}return c(I,[{key:"push",value:function(d){var A={data:d,next:null};this.length>0?this.tail.next=A:this.head=A,this.tail=A,++this.length}},{key:"unshift",value:function(d){var A={data:d,next:this.head};this.length===0&&(this.tail=A),this.head=A,++this.length}},{key:"shift",value:function(){if(this.length!==0){var d=this.head.data;return this.length===1?this.head=this.tail=null:this.head=this.head.next,--this.length,d}}},{key:"clear",value:function(){this.head=this.tail=null,this.length=0}},{key:"join",value:function(d){if(this.length===0)return"";for(var A=this.head,v=""+A.data;A=A.next;)v+=d+A.data;return v}},{key:"concat",value:function(d){if(this.length===0)return n.alloc(0);for(var A=n.allocUnsafe(d>>>0),v=this.head,R=0;v;)S(v.data,A,R),R+=v.data.length,v=v.next;return A}},{key:"consume",value:function(d,A){var v;return d<this.head.data.length?(v=this.head.data.slice(0,d),this.head.data=this.head.data.slice(d)):d===this.head.data.length?v=this.shift():v=A?this._getString(d):this._getBuffer(d),v}},{key:"first",value:function(){return this.head.data}},{key:"_getString",value:function(d){var A=this.head,v=1,R=A.data;for(d-=R.length;A=A.next;){var u=A.data,m=d>u.length?u.length:d;if(m===u.length?R+=u:R+=u.slice(0,d),d-=m,d===0){m===u.length?(++v,A.next?this.head=A.next:this.head=this.tail=null):(this.head=A,A.data=u.slice(m));break}++v}return this.length-=v,R}},{key:"_getBuffer",value:function(d){var A=n.allocUnsafe(d),v=this.head,R=1;for(v.data.copy(A),d-=v.data.length;v=v.next;){var u=v.data,m=d>u.length?u.length:d;if(u.copy(A,A.length-d,0,m),d-=m,d===0){m===u.length?(++R,v.next?this.head=v.next:this.head=this.tail=null):(this.head=v,v.data=u.slice(m));break}++R}return this.length-=R,A}},{key:_,value:function(d,A){return T(this,t({},A,{depth:0,customInspect:!1}))}}]),I}(),Vr}var Gr,es;function rs(){if(es)return Gr;es=1;function e(h,n){var g=this,T=this._readableState&&this._readableState.destroyed,_=this._writableState&&this._writableState.destroyed;return T||_?(n?n(h):h&&(this._writableState?this._writableState.errorEmitted||(this._writableState.errorEmitted=!0,gt.nextTick(p,this,h)):gt.nextTick(p,this,h)),this):(this._readableState&&(this._readableState.destroyed=!0),this._writableState&&(this._writableState.destroyed=!0),this._destroy(h||null,function(S){!n&&S?g._writableState?g._writableState.errorEmitted?gt.nextTick(r,g):(g._writableState.errorEmitted=!0,gt.nextTick(t,g,S)):gt.nextTick(t,g,S):n?(gt.nextTick(r,g),n(S)):gt.nextTick(r,g)}),this)}function t(h,n){p(h,n),r(h)}function r(h){h._writableState&&!h._writableState.emitClose||h._readableState&&!h._readableState.emitClose||h.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 p(h,n){h.emit("error",n)}function c(h,n){var g=h._readableState,T=h._writableState;g&&g.autoDestroy||T&&T.autoDestroy?h.destroy(n):h.emit("error",n)}return Gr={destroy:e,undestroy:i,errorOrDestroy:c},Gr}var Zr={},ns;function pe(){if(ns)return Zr;ns=1;function e(n,g){n.prototype=Object.create(g.prototype),n.prototype.constructor=n,n.__proto__=g}var t={};function r(n,g,T){T||(T=Error);function _(I,d,A){return typeof g=="string"?g:g(I,d,A)}var S=function(I){e(d,I);function d(A,v,R){return I.call(this,_(A,v,R))||this}return d}(T);S.prototype.name=T.name,S.prototype.code=n,t[n]=S}function i(n,g){if(Array.isArray(n)){var T=n.length;return n=n.map(function(_){return String(_)}),T>2?"one of ".concat(g," ").concat(n.slice(0,T-1).join(", "),", or ")+n[T-1]:T===2?"one of ".concat(g," ").concat(n[0]," or ").concat(n[1]):"of ".concat(g," ").concat(n[0])}else return"of ".concat(g," ").concat(String(n))}function p(n,g,T){return n.substr(0,g.length)===g}function c(n,g,T){return(T===void 0||T>n.length)&&(T=n.length),n.substring(T-g.length,T)===g}function h(n,g,T){return typeof T!="number"&&(T=0),T+g.length>n.length?!1:n.indexOf(g,T)!==-1}return r("ERR_INVALID_OPT_VALUE",function(n,g){return'The value "'+g+'" is invalid for option "'+n+'"'},TypeError),r("ERR_INVALID_ARG_TYPE",function(n,g,T){var _;typeof g=="string"&&p(g,"not ")?(_="must not be",g=g.replace(/^not /,"")):_="must be";var S;if(c(n," argument"))S="The ".concat(n," ").concat(_," ").concat(i(g,"type"));else{var I=h(n,".")?"property":"argument";S='The "'.concat(n,'" ').concat(I," ").concat(_," ").concat(i(g,"type"))}return S+=". Received type ".concat(typeof T),S},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"),Zr.codes=t,Zr}var Xr,is;function os(){if(is)return Xr;is=1;var e=pe().codes.ERR_INVALID_OPT_VALUE;function t(i,p,c){return i.highWaterMark!=null?i.highWaterMark:p?i[c]:null}function r(i,p,c,h){var n=t(p,h,c);if(n!=null){if(!(isFinite(n)&&Math.floor(n)===n)||n<0){var g=h?c:"highWaterMark";throw new e(g,n)}return Math.floor(n)}return i.objectMode?16:16*1024}return Xr={getHighWaterMark:r},Xr}var qr,ss;function il(){if(ss)return qr;ss=1,qr=e;function e(r,i){if(t("noDeprecation"))return r;var p=!1;function c(){if(!p){if(t("throwDeprecation"))throw new Error(i);t("traceDeprecation")||console.warn(i),p=!0}return r.apply(this,arguments)}return c}function t(r){try{if(!Pt.localStorage)return!1}catch{return!1}var i=Pt.localStorage[r];return i==null?!1:String(i).toLowerCase()==="true"}return qr}var Yr,as;function us(){if(as)return Yr;as=1,Yr=U;function e(G){var E=this;this.next=null,this.entry=null,this.finish=function(){nt(E,G)}}var t;U.WritableState=F;var r={deprecate:il()},i=mi(),p=Ge().Buffer,c=Pt.Uint8Array||function(){};function h(G){return p.from(G)}function n(G){return p.isBuffer(G)||G instanceof c}var g=rs(),T=os(),_=T.getHighWaterMark,S=pe().codes,I=S.ERR_INVALID_ARG_TYPE,d=S.ERR_METHOD_NOT_IMPLEMENTED,A=S.ERR_MULTIPLE_CALLBACK,v=S.ERR_STREAM_CANNOT_PIPE,R=S.ERR_STREAM_DESTROYED,u=S.ERR_STREAM_NULL_VALUES,m=S.ERR_STREAM_WRITE_AFTER_END,b=S.ERR_UNKNOWN_ENCODING,l=g.errorOrDestroy;qt()(U,i);function k(){}function F(G,E,w){t=t||fe(),G=G||{},typeof w!="boolean"&&(w=E instanceof t),this.objectMode=!!G.objectMode,w&&(this.objectMode=this.objectMode||!!G.writableObjectMode),this.highWaterMark=_(this,G,"writableHighWaterMark",w),this.finalCalled=!1,this.needDrain=!1,this.ending=!1,this.ended=!1,this.finished=!1,this.destroyed=!1;var z=G.decodeStrings===!1;this.decodeStrings=!z,this.defaultEncoding=G.defaultEncoding||"utf8",this.length=0,this.writing=!1,this.corked=0,this.sync=!0,this.bufferProcessing=!1,this.onwrite=function(L){$(E,L)},this.writecb=null,this.writelen=0,this.bufferedRequest=null,this.lastBufferedRequest=null,this.pendingcb=0,this.prefinished=!1,this.errorEmitted=!1,this.emitClose=G.emitClose!==!1,this.autoDestroy=!!G.autoDestroy,this.bufferedRequestCount=0,this.corkedRequestsFree=new e(this)}F.prototype.getBuffer=function(){for(var G=this.bufferedRequest,E=[];G;)E.push(G),G=G.next;return E},function(){try{Object.defineProperty(F.prototype,"buffer",{get:r.deprecate(function(){return this.getBuffer()},"_writableState.buffer is deprecated. Use _writableState.getBuffer instead.","DEP0003")})}catch{}}();var B;typeof Symbol=="function"&&Symbol.hasInstance&&typeof Function.prototype[Symbol.hasInstance]=="function"?(B=Function.prototype[Symbol.hasInstance],Object.defineProperty(U,Symbol.hasInstance,{value:function(G){return B.call(this,G)?!0:this!==U?!1:G&&G._writableState instanceof F}})):B=function(G){return G instanceof this};function U(G){t=t||fe();var E=this instanceof t;if(!E&&!B.call(U,this))return new U(G);this._writableState=new F(G,this,E),this.writable=!0,G&&(typeof G.write=="function"&&(this._write=G.write),typeof G.writev=="function"&&(this._writev=G.writev),typeof G.destroy=="function"&&(this._destroy=G.destroy),typeof G.final=="function"&&(this._final=G.final)),i.call(this)}U.prototype.pipe=function(){l(this,new v)};function C(G,E){var w=new m;l(G,w),gt.nextTick(E,w)}function Q(G,E,w,z){var L;return w===null?L=new u:typeof w!="string"&&!E.objectMode&&(L=new I("chunk",["string","Buffer"],w)),L?(l(G,L),gt.nextTick(z,L),!1):!0}U.prototype.write=function(G,E,w){var z=this._writableState,L=!1,O=!z.objectMode&&n(G);return O&&!p.isBuffer(G)&&(G=h(G)),typeof E=="function"&&(w=E,E=null),O?E="buffer":E||(E=z.defaultEncoding),typeof w!="function"&&(w=k),z.ending?C(this,w):(O||Q(this,z,G,w))&&(z.pendingcb++,L=N(this,z,O,G,E,w)),L},U.prototype.cork=function(){this._writableState.corked++},U.prototype.uncork=function(){var G=this._writableState;G.corked&&(G.corked--,!G.writing&&!G.corked&&!G.bufferProcessing&&G.bufferedRequest&&J(this,G))},U.prototype.setDefaultEncoding=function(G){if(typeof G=="string"&&(G=G.toLowerCase()),!(["hex","utf8","utf-8","ascii","binary","base64","ucs2","ucs-2","utf16le","utf-16le","raw"].indexOf((G+"").toLowerCase())>-1))throw new b(G);return this._writableState.defaultEncoding=G,this},Object.defineProperty(U.prototype,"writableBuffer",{enumerable:!1,get:function(){return this._writableState&&this._writableState.getBuffer()}});function at(G,E,w){return!G.objectMode&&G.decodeStrings!==!1&&typeof E=="string"&&(E=p.from(E,w)),E}Object.defineProperty(U.prototype,"writableHighWaterMark",{enumerable:!1,get:function(){return this._writableState.highWaterMark}});function N(G,E,w,z,L,O){if(!w){var P=at(E,z,L);z!==P&&(w=!0,L="buffer",z=P)}var tt=E.objectMode?1:z.length;E.length+=tt;var f=E.length<E.highWaterMark;if(f||(E.needDrain=!0),E.writing||E.corked){var q=E.lastBufferedRequest;E.lastBufferedRequest={chunk:z,encoding:L,isBuf:w,callback:O,next:null},q?q.next=E.lastBufferedRequest:E.bufferedRequest=E.lastBufferedRequest,E.bufferedRequestCount+=1}else j(G,E,!1,tt,z,L,O);return f}function j(G,E,w,z,L,O,P){E.writelen=z,E.writecb=P,E.writing=!0,E.sync=!0,E.destroyed?E.onwrite(new R("write")):w?G._writev(L,E.onwrite):G._write(L,O,E.onwrite),E.sync=!1}function y(G,E,w,z,L){--E.pendingcb,w?(gt.nextTick(L,z),gt.nextTick(Z,G,E),G._writableState.errorEmitted=!0,l(G,z)):(L(z),G._writableState.errorEmitted=!0,l(G,z),Z(G,E))}function W(G){G.writing=!1,G.writecb=null,G.length-=G.writelen,G.writelen=0}function $(G,E){var w=G._writableState,z=w.sync,L=w.writecb;if(typeof L!="function")throw new A;if(W(w),E)y(G,w,z,E,L);else{var O=lt(w)||G.destroyed;!O&&!w.corked&&!w.bufferProcessing&&w.bufferedRequest&&J(G,w),z?gt.nextTick(K,G,w,O,L):K(G,w,O,L)}}function K(G,E,w,z){w||it(G,E),E.pendingcb--,z(),Z(G,E)}function it(G,E){E.length===0&&E.needDrain&&(E.needDrain=!1,G.emit("drain"))}function J(G,E){E.bufferProcessing=!0;var w=E.bufferedRequest;if(G._writev&&w&&w.next){var z=E.bufferedRequestCount,L=new Array(z),O=E.corkedRequestsFree;O.entry=w;for(var P=0,tt=!0;w;)L[P]=w,w.isBuf||(tt=!1),w=w.next,P+=1;L.allBuffers=tt,j(G,E,!0,E.length,L,"",O.finish),E.pendingcb++,E.lastBufferedRequest=null,O.next?(E.corkedRequestsFree=O.next,O.next=null):E.corkedRequestsFree=new e(E),E.bufferedRequestCount=0}else{for(;w;){var f=w.chunk,q=w.encoding,o=w.callback,s=E.objectMode?1:f.length;if(j(G,E,!1,s,f,q,o),w=w.next,E.bufferedRequestCount--,E.writing)break}w===null&&(E.lastBufferedRequest=null)}E.bufferedRequest=w,E.bufferProcessing=!1}U.prototype._write=function(G,E,w){w(new d("_write()"))},U.prototype._writev=null,U.prototype.end=function(G,E,w){var z=this._writableState;return typeof G=="function"?(w=G,G=null,E=null):typeof E=="function"&&(w=E,E=null),G!=null&&this.write(G,E),z.corked&&(z.corked=1,this.uncork()),z.ending||Y(this,z,w),this},Object.defineProperty(U.prototype,"writableLength",{enumerable:!1,get:function(){return this._writableState.length}});function lt(G){return G.ending&&G.length===0&&G.bufferedRequest===null&&!G.finished&&!G.writing}function X(G,E){G._final(function(w){E.pendingcb--,w&&l(G,w),E.prefinished=!0,G.emit("prefinish"),Z(G,E)})}function D(G,E){!E.prefinished&&!E.finalCalled&&(typeof G._final=="function"&&!E.destroyed?(E.pendingcb++,E.finalCalled=!0,gt.nextTick(X,G,E)):(E.prefinished=!0,G.emit("prefinish")))}function Z(G,E){var w=lt(E);if(w&&(D(G,E),E.pendingcb===0&&(E.finished=!0,G.emit("finish"),E.autoDestroy))){var z=G._readableState;(!z||z.autoDestroy&&z.endEmitted)&&G.destroy()}return w}function Y(G,E,w){E.ending=!0,Z(G,E),w&&(E.finished?gt.nextTick(w):G.once("finish",w)),E.ended=!0,G.writable=!1}function nt(G,E,w){var z=G.entry;for(G.entry=null;z;){var L=z.callback;E.pendingcb--,L(w),z=z.next}E.corkedRequestsFree.next=G}return Object.defineProperty(U.prototype,"destroyed",{enumerable:!1,get:function(){return this._writableState===void 0?!1:this._writableState.destroyed},set:function(G){this._writableState&&(this._writableState.destroyed=G)}}),U.prototype.destroy=g.destroy,U.prototype._undestroy=g.undestroy,U.prototype._destroy=function(G,E){E(G)},Yr}var Qr,cs;function fe(){if(cs)return Qr;cs=1;var e=Object.keys||function(T){var _=[];for(var S in T)_.push(S);return _};Qr=h;var t=ws(),r=us();qt()(h,t);for(var i=e(r.prototype),p=0;p<i.length;p++){var c=i[p];h.prototype[c]||(h.prototype[c]=r.prototype[c])}function h(T){if(!(this instanceof h))return new h(T);t.call(this,T),r.call(this,T),this.allowHalfOpen=!0,T&&(T.readable===!1&&(this.readable=!1),T.writable===!1&&(this.writable=!1),T.allowHalfOpen===!1&&(this.allowHalfOpen=!1,this.once("end",n)))}Object.defineProperty(h.prototype,"writableHighWaterMark",{enumerable:!1,get:function(){return this._writableState.highWaterMark}}),Object.defineProperty(h.prototype,"writableBuffer",{enumerable:!1,get:function(){return this._writableState&&this._writableState.getBuffer()}}),Object.defineProperty(h.prototype,"writableLength",{enumerable:!1,get:function(){return this._writableState.length}});function n(){this._writableState.ended||gt.nextTick(g,this)}function g(T){T.end()}return Object.defineProperty(h.prototype,"destroyed",{enumerable:!1,get:function(){return this._readableState===void 0||this._writableState===void 0?!1:this._readableState.destroyed&&this._writableState.destroyed},set:function(T){this._readableState===void 0||this._writableState===void 0||(this._readableState.destroyed=T,this._writableState.destroyed=T)}}),Qr}var $r={},Jr={exports:{}},ls;function ol(){return ls||(ls=1,function(e,t){var r=Ge(),i=r.Buffer;function p(h,n){for(var g in h)n[g]=h[g]}i.from&&i.alloc&&i.allocUnsafe&&i.allocUnsafeSlow?e.exports=r:(p(r,t),t.Buffer=c);function c(h,n,g){return i(h,n,g)}p(i,c),c.from=function(h,n,g){if(typeof h=="number")throw new TypeError("Argument must not be a number");return i(h,n,g)},c.alloc=function(h,n,g){if(typeof h!="number")throw new TypeError("Argument must be a number");var T=i(h);return n!==void 0?typeof g=="string"?T.fill(n,g):T.fill(n):T.fill(0),T},c.allocUnsafe=function(h){if(typeof h!="number")throw new TypeError("Argument must be a number");return i(h)},c.allocUnsafeSlow=function(h){if(typeof h!="number")throw new TypeError("Argument must be a number");return r.SlowBuffer(h)}}(Jr,Jr.exports)),Jr.exports}var hs;function tn(){if(hs)return $r;hs=1;var e=ol().Buffer,t=e.isEncoding||function(u){switch(u=""+u,u&&u.toLowerCase()){case"hex":case"utf8":case"utf-8":case"ascii":case"binary":case"base64":case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":case"raw":return!0;default:return!1}};function r(u){if(!u)return"utf8";for(var m;;)switch(u){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 u;default:if(m)return;u=(""+u).toLowerCase(),m=!0}}function i(u){var m=r(u);if(typeof m!="string"&&(e.isEncoding===t||!t(u)))throw new Error("Unknown encoding: "+u);return m||u}$r.StringDecoder=p;function p(u){this.encoding=i(u);var m;switch(this.encoding){case"utf16le":this.text=S,this.end=I,m=4;break;case"utf8":this.fillLast=g,m=4;break;case"base64":this.text=d,this.end=A,m=3;break;default:this.write=v,this.end=R;return}this.lastNeed=0,this.lastTotal=0,this.lastChar=e.allocUnsafe(m)}p.prototype.write=function(u){if(u.length===0)return"";var m,b;if(this.lastNeed){if(m=this.fillLast(u),m===void 0)return"";b=this.lastNeed,this.lastNeed=0}else b=0;return b<u.length?m?m+this.text(u,b):this.text(u,b):m||""},p.prototype.end=_,p.prototype.text=T,p.prototype.fillLast=function(u){if(this.lastNeed<=u.length)return u.copy(this.lastChar,this.lastTotal-this.lastNeed,0,this.lastNeed),this.lastChar.toString(this.encoding,0,this.lastTotal);u.copy(this.lastChar,this.lastTotal-this.lastNeed,0,u.length),this.lastNeed-=u.length};function c(u){return u<=127?0:u>>5===6?2:u>>4===14?3:u>>3===30?4:u>>6===2?-1:-2}function h(u,m,b){var l=m.length-1;if(l<b)return 0;var k=c(m[l]);return k>=0?(k>0&&(u.lastNeed=k-1),k):--l<b||k===-2?0:(k=c(m[l]),k>=0?(k>0&&(u.lastNeed=k-2),k):--l<b||k===-2?0:(k=c(m[l]),k>=0?(k>0&&(k===2?k=0:u.lastNeed=k-3),k):0))}function n(u,m,b){if((m[0]&192)!==128)return u.lastNeed=0,"�";if(u.lastNeed>1&&m.length>1){if((m[1]&192)!==128)return u.lastNeed=1,"�";if(u.lastNeed>2&&m.length>2&&(m[2]&192)!==128)return u.lastNeed=2,"�"}}function g(u){var m=this.lastTotal-this.lastNeed,b=n(this,u);if(b!==void 0)return b;if(this.lastNeed<=u.length)return u.copy(this.lastChar,m,0,this.lastNeed),this.lastChar.toString(this.encoding,0,this.lastTotal);u.copy(this.lastChar,m,0,u.length),this.lastNeed-=u.length}function T(u,m){var b=h(this,u,m);if(!this.lastNeed)return u.toString("utf8",m);this.lastTotal=b;var l=u.length-(b-this.lastNeed);return u.copy(this.lastChar,0,l),u.toString("utf8",m,l)}function _(u){var m=u&&u.length?this.write(u):"";return this.lastNeed?m+"�":m}function S(u,m){if((u.length-m)%2===0){var b=u.toString("utf16le",m);if(b){var l=b.charCodeAt(b.length-1);if(l>=55296&&l<=56319)return this.lastNeed=2,this.lastTotal=4,this.lastChar[0]=u[u.length-2],this.lastChar[1]=u[u.length-1],b.slice(0,-1)}return b}return this.lastNeed=1,this.lastTotal=2,this.lastChar[0]=u[u.length-1],u.toString("utf16le",m,u.length-1)}function I(u){var m=u&&u.length?this.write(u):"";if(this.lastNeed){var b=this.lastTotal-this.lastNeed;return m+this.lastChar.toString("utf16le",0,b)}return m}function d(u,m){var b=(u.length-m)%3;return b===0?u.toString("base64",m):(this.lastNeed=3-b,this.lastTotal=3,b===1?this.lastChar[0]=u[u.length-1]:(this.lastChar[0]=u[u.length-2],this.lastChar[1]=u[u.length-1]),u.toString("base64",m,u.length-b))}function A(u){var m=u&&u.length?this.write(u):"";return this.lastNeed?m+this.lastChar.toString("base64",0,3-this.lastNeed):m}function v(u){return u.toString(this.encoding)}function R(u){return u&&u.length?this.write(u):""}return $r}var en,ps;function rn(){if(ps)return en;ps=1;var e=pe().codes.ERR_STREAM_PREMATURE_CLOSE;function t(c){var h=!1;return function(){if(!h){h=!0;for(var n=arguments.length,g=new Array(n),T=0;T<n;T++)g[T]=arguments[T];c.apply(this,g)}}}function r(){}function i(c){return c.setHeader&&typeof c.abort=="function"}function p(c,h,n){if(typeof h=="function")return p(c,null,h);h||(h={}),n=t(n||r);var g=h.readable||h.readable!==!1&&c.readable,T=h.writable||h.writable!==!1&&c.writable,_=function(){c.writable||I()},S=c._writableState&&c._writableState.finished,I=function(){T=!1,S=!0,g||n.call(c)},d=c._readableState&&c._readableState.endEmitted,A=function(){g=!1,d=!0,T||n.call(c)},v=function(m){n.call(c,m)},R=function(){var m;if(g&&!d)return(!c._readableState||!c._readableState.ended)&&(m=new e),n.call(c,m);if(T&&!S)return(!c._writableState||!c._writableState.ended)&&(m=new e),n.call(c,m)},u=function(){c.req.on("finish",I)};return i(c)?(c.on("complete",I),c.on("abort",R),c.req?u():c.on("request",u)):T&&!c._writableState&&(c.on("end",_),c.on("close",_)),c.on("end",A),c.on("finish",I),h.error!==!1&&c.on("error",v),c.on("close",R),function(){c.removeListener("complete",I),c.removeListener("abort",R),c.removeListener("request",u),c.req&&c.req.removeListener("finish",I),c.removeListener("end",_),c.removeListener("close",_),c.removeListener("finish",I),c.removeListener("end",A),c.removeListener("error",v),c.removeListener("close",R)}}return en=p,en}var nn,fs;function sl(){if(fs)return nn;fs=1;var e;function t(u,m,b){return m in u?Object.defineProperty(u,m,{value:b,enumerable:!0,configurable:!0,writable:!0}):u[m]=b,u}var r=rn(),i=Symbol("lastResolve"),p=Symbol("lastReject"),c=Symbol("error"),h=Symbol("ended"),n=Symbol("lastPromise"),g=Symbol("handlePromise"),T=Symbol("stream");function _(u,m){return{value:u,done:m}}function S(u){var m=u[i];if(m!==null){var b=u[T].read();b!==null&&(u[n]=null,u[i]=null,u[p]=null,m(_(b,!1)))}}function I(u){gt.nextTick(S,u)}function d(u,m){return function(b,l){u.then(function(){if(m[h]){b(_(void 0,!0));return}m[g](b,l)},l)}}var A=Object.getPrototypeOf(function(){}),v=Object.setPrototypeOf((e={get stream(){return this[T]},next:function(){var u=this,m=this[c];if(m!==null)return Promise.reject(m);if(this[h])return Promise.resolve(_(void 0,!0));if(this[T].destroyed)return new Promise(function(F,B){gt.nextTick(function(){u[c]?B(u[c]):F(_(void 0,!0))})});var b=this[n],l;if(b)l=new Promise(d(b,this));else{var k=this[T].read();if(k!==null)return Promise.resolve(_(k,!1));l=new Promise(this[g])}return this[n]=l,l}},t(e,Symbol.asyncIterator,function(){return this}),t(e,"return",function(){var u=this;return new Promise(function(m,b){u[T].destroy(null,function(l){if(l){b(l);return}m(_(void 0,!0))})})}),e),A),R=function(u){var m,b=Object.create(v,(m={},t(m,T,{value:u,writable:!0}),t(m,i,{value:null,writable:!0}),t(m,p,{value:null,writable:!0}),t(m,c,{value:null,writable:!0}),t(m,h,{value:u._readableState.endEmitted,writable:!0}),t(m,g,{value:function(l,k){var F=b[T].read();F?(b[n]=null,b[i]=null,b[p]=null,l(_(F,!1))):(b[i]=l,b[p]=k)},writable:!0}),m));return b[n]=null,r(u,function(l){if(l&&l.code!=="ERR_STREAM_PREMATURE_CLOSE"){var k=b[p];k!==null&&(b[n]=null,b[i]=null,b[p]=null,k(l)),b[c]=l;return}var F=b[i];F!==null&&(b[n]=null,b[i]=null,b[p]=null,F(_(void 0,!0))),b[h]=!0}),u.on("readable",I.bind(null,b)),b};return nn=R,nn}var ds,ms;function al(){return ms||(ms=1,ds=function(){throw new Error("Readable.from is not available in the browser")}),ds}var on,gs;function ws(){if(gs)return on;gs=1,on=C;var e;C.ReadableState=U,pr().EventEmitter;var t=function(O,P){return O.listeners(P).length},r=mi(),i=Ge().Buffer,p=Pt.Uint8Array||function(){};function c(O){return i.from(O)}function h(O){return i.isBuffer(O)||O instanceof p}var n=Jo(),g;n&&n.debuglog?g=n.debuglog("stream"):g=function(){};var T=nl(),_=rs(),S=os(),I=S.getHighWaterMark,d=pe().codes,A=d.ERR_INVALID_ARG_TYPE,v=d.ERR_STREAM_PUSH_AFTER_EOF,R=d.ERR_METHOD_NOT_IMPLEMENTED,u=d.ERR_STREAM_UNSHIFT_AFTER_END_EVENT,m,b,l;qt()(C,r);var k=_.errorOrDestroy,F=["error","close","destroy","pause","resume"];function B(O,P,tt){if(typeof O.prependListener=="function")return O.prependListener(P,tt);!O._events||!O._events[P]?O.on(P,tt):Array.isArray(O._events[P])?O._events[P].unshift(tt):O._events[P]=[tt,O._events[P]]}function U(O,P,tt){e=e||fe(),O=O||{},typeof tt!="boolean"&&(tt=P instanceof e),this.objectMode=!!O.objectMode,tt&&(this.objectMode=this.objectMode||!!O.readableObjectMode),this.highWaterMark=I(this,O,"readableHighWaterMark",tt),this.buffer=new T,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&&(m||(m=tn().StringDecoder),this.decoder=new m(O.encoding),this.encoding=O.encoding)}function C(O){if(e=e||fe(),!(this instanceof C))return new C(O);var P=this instanceof e;this._readableState=new U(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(C.prototype,"destroyed",{enumerable:!1,get:function(){return this._readableState===void 0?!1:this._readableState.destroyed},set:function(O){this._readableState&&(this._readableState.destroyed=O)}}),C.prototype.destroy=_.destroy,C.prototype._undestroy=_.undestroy,C.prototype._destroy=function(O,P){P(O)},C.prototype.push=function(O,P){var tt=this._readableState,f;return tt.objectMode?f=!0:typeof O=="string"&&(P=P||tt.defaultEncoding,P!==tt.encoding&&(O=i.from(O,P),P=""),f=!0),Q(this,O,P,!1,f)},C.prototype.unshift=function(O){return Q(this,O,null,!0,!1)};function Q(O,P,tt,f,q){g("readableAddChunk",P);var o=O._readableState;if(P===null)o.reading=!1,$(O,o);else{var s;if(q||(s=N(o,P)),s)k(O,s);else if(o.objectMode||P&&P.length>0)if(typeof P!="string"&&!o.objectMode&&Object.getPrototypeOf(P)!==i.prototype&&(P=c(P)),f)o.endEmitted?k(O,new u):at(O,o,P,!0);else if(o.ended)k(O,new v);else{if(o.destroyed)return!1;o.reading=!1,o.decoder&&!tt?(P=o.decoder.write(P),o.objectMode||P.length!==0?at(O,o,P,!1):J(O,o)):at(O,o,P,!1)}else f||(o.reading=!1,J(O,o))}return!o.ended&&(o.length<o.highWaterMark||o.length===0)}function at(O,P,tt,f){P.flowing&&P.length===0&&!P.sync?(P.awaitDrain=0,O.emit("data",tt)):(P.length+=P.objectMode?1:tt.length,f?P.buffer.unshift(tt):P.buffer.push(tt),P.needReadable&&K(O)),J(O,P)}function N(O,P){var tt;return!h(P)&&typeof P!="string"&&P!==void 0&&!O.objectMode&&(tt=new A("chunk",["string","Buffer","Uint8Array"],P)),tt}C.prototype.isPaused=function(){return this._readableState.flowing===!1},C.prototype.setEncoding=function(O){m||(m=tn().StringDecoder);var P=new m(O);this._readableState.decoder=P,this._readableState.encoding=this._readableState.decoder.encoding;for(var tt=this._readableState.buffer.head,f="";tt!==null;)f+=P.write(tt.data),tt=tt.next;return this._readableState.buffer.clear(),f!==""&&this._readableState.buffer.push(f),this._readableState.length=f.length,this};var j=1073741824;function y(O){return O>=j?O=j:(O--,O|=O>>>1,O|=O>>>2,O|=O>>>4,O|=O>>>8,O|=O>>>16,O++),O}function W(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=y(O)),O<=P.length?O:P.ended?P.length:(P.needReadable=!0,0))}C.prototype.read=function(O){g("read",O),O=parseInt(O,10);var P=this._readableState,tt=O;if(O!==0&&(P.emittedReadable=!1),O===0&&P.needReadable&&((P.highWaterMark!==0?P.length>=P.highWaterMark:P.length>0)||P.ended))return g("read: emitReadable",P.length,P.ended),P.length===0&&P.ended?w(this):K(this),null;if(O=W(O,P),O===0&&P.ended)return P.length===0&&w(this),null;var f=P.needReadable;g("need readable",f),(P.length===0||P.length-O<P.highWaterMark)&&(f=!0,g("length less than watermark",f)),P.ended||P.reading?(f=!1,g("reading or ended",f)):f&&(g("do read"),P.reading=!0,P.sync=!0,P.length===0&&(P.needReadable=!0),this._read(P.highWaterMark),P.sync=!1,P.reading||(O=W(tt,P)));var q;return O>0?q=E(O,P):q=null,q===null?(P.needReadable=P.length<=P.highWaterMark,O=0):(P.length-=O,P.awaitDrain=0),P.length===0&&(P.ended||(P.needReadable=!0),tt!==O&&P.ended&&w(this)),q!==null&&this.emit("data",q),q};function $(O,P){if(g("onEofChunk"),!P.ended){if(P.decoder){var tt=P.decoder.end();tt&&tt.length&&(P.buffer.push(tt),P.length+=P.objectMode?1:tt.length)}P.ended=!0,P.sync?K(O):(P.needReadable=!1,P.emittedReadable||(P.emittedReadable=!0,it(O)))}}function K(O){var P=O._readableState;g("emitReadable",P.needReadable,P.emittedReadable),P.needReadable=!1,P.emittedReadable||(g("emitReadable",P.flowing),P.emittedReadable=!0,gt.nextTick(it,O))}function it(O){var P=O._readableState;g("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,G(O)}function J(O,P){P.readingMore||(P.readingMore=!0,gt.nextTick(lt,O,P))}function lt(O,P){for(;!P.reading&&!P.ended&&(P.length<P.highWaterMark||P.flowing&&P.length===0);){var tt=P.length;if(g("maybeReadMore read 0"),O.read(0),tt===P.length)break}P.readingMore=!1}C.prototype._read=function(O){k(this,new R("_read()"))},C.prototype.pipe=function(O,P){var tt=this,f=this._readableState;switch(f.pipesCount){case 0:f.pipes=O;break;case 1:f.pipes=[f.pipes,O];break;default:f.pipes.push(O);break}f.pipesCount+=1,g("pipe count=%d opts=%j",f.pipesCount,P);var q=(!P||P.end!==!1)&&O!==gt.stdout&&O!==gt.stderr,o=q?a:ht;f.endEmitted?gt.nextTick(o):tt.once("end",o),O.on("unpipe",s);function s(ft,dt){g("onunpipe"),ft===tt&&dt&&dt.hasUnpiped===!1&&(dt.hasUnpiped=!0,V())}function a(){g("onend"),O.end()}var x=X(tt);O.on("drain",x);var M=!1;function V(){g("cleanup"),O.removeListener("close",ct),O.removeListener("finish",st),O.removeListener("drain",x),O.removeListener("error",ot),O.removeListener("unpipe",s),tt.removeListener("end",a),tt.removeListener("end",ht),tt.removeListener("data",H),M=!0,f.awaitDrain&&(!O._writableState||O._writableState.needDrain)&&x()}tt.on("data",H);function H(ft){g("ondata");var dt=O.write(ft);g("dest.write",dt),dt===!1&&((f.pipesCount===1&&f.pipes===O||f.pipesCount>1&&L(f.pipes,O)!==-1)&&!M&&(g("false write response, pause",f.awaitDrain),f.awaitDrain++),tt.pause())}function ot(ft){g("onerror",ft),ht(),O.removeListener("error",ot),t(O,"error")===0&&k(O,ft)}B(O,"error",ot);function ct(){O.removeListener("finish",st),ht()}O.once("close",ct);function st(){g("onfinish"),O.removeListener("close",ct),ht()}O.once("finish",st);function ht(){g("unpipe"),tt.unpipe(O)}return O.emit("pipe",tt),f.flowing||(g("pipe resume"),tt.resume()),O};function X(O){return function(){var P=O._readableState;g("pipeOnDrain",P.awaitDrain),P.awaitDrain&&P.awaitDrain--,P.awaitDrain===0&&t(O,"data")&&(P.flowing=!0,G(O))}}C.prototype.unpipe=function(O){var P=this._readableState,tt={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,tt),this);if(!O){var f=P.pipes,q=P.pipesCount;P.pipes=null,P.pipesCount=0,P.flowing=!1;for(var o=0;o<q;o++)f[o].emit("unpipe",this,{hasUnpiped:!1});return this}var s=L(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,tt),this)},C.prototype.on=function(O,P){var tt=r.prototype.on.call(this,O,P),f=this._readableState;return O==="data"?(f.readableListening=this.listenerCount("readable")>0,f.flowing!==!1&&this.resume()):O==="readable"&&!f.endEmitted&&!f.readableListening&&(f.readableListening=f.needReadable=!0,f.flowing=!1,f.emittedReadable=!1,g("on readable",f.length,f.reading),f.length?K(this):f.reading||gt.nextTick(Z,this)),tt},C.prototype.addListener=C.prototype.on,C.prototype.removeListener=function(O,P){var tt=r.prototype.removeListener.call(this,O,P);return O==="readable"&&gt.nextTick(D,this),tt},C.prototype.removeAllListeners=function(O){var P=r.prototype.removeAllListeners.apply(this,arguments);return(O==="readable"||O===void 0)&&gt.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 Z(O){g("readable nexttick read 0"),O.read(0)}C.prototype.resume=function(){var O=this._readableState;return O.flowing||(g("resume"),O.flowing=!O.readableListening,Y(this,O)),O.paused=!1,this};function Y(O,P){P.resumeScheduled||(P.resumeScheduled=!0,gt.nextTick(nt,O,P))}function nt(O,P){g("resume",P.reading),P.reading||O.read(0),P.resumeScheduled=!1,O.emit("resume"),G(O),P.flowing&&!P.reading&&O.read(0)}C.prototype.pause=function(){return g("call pause flowing=%j",this._readableState.flowing),this._readableState.flowing!==!1&&(g("pause"),this._readableState.flowing=!1,this.emit("pause")),this._readableState.paused=!0,this};function G(O){var P=O._readableState;for(g("flow",P.flowing);P.flowing&&O.read()!==null;);}C.prototype.wrap=function(O){var P=this,tt=this._readableState,f=!1;O.on("end",function(){if(g("wrapped end"),tt.decoder&&!tt.ended){var s=tt.decoder.end();s&&s.length&&P.push(s)}P.push(null)}),O.on("data",function(s){if(g("wrapped data"),tt.decoder&&(s=tt.decoder.write(s)),!(tt.objectMode&&s==null)&&!(!tt.objectMode&&(!s||!s.length))){var a=P.push(s);a||(f=!0,O.pause())}});for(var q in O)this[q]===void 0&&typeof O[q]=="function"&&(this[q]=function(s){return function(){return O[s].apply(O,arguments)}}(q));for(var o=0;o<F.length;o++)O.on(F[o],this.emit.bind(this,F[o]));return this._read=function(s){g("wrapped _read",s),f&&(f=!1,O.resume())},this},typeof Symbol=="function"&&(C.prototype[Symbol.asyncIterator]=function(){return b===void 0&&(b=sl()),b(this)}),Object.defineProperty(C.prototype,"readableHighWaterMark",{enumerable:!1,get:function(){return this._readableState.highWaterMark}}),Object.defineProperty(C.prototype,"readableBuffer",{enumerable:!1,get:function(){return this._readableState&&this._readableState.buffer}}),Object.defineProperty(C.prototype,"readableFlowing",{enumerable:!1,get:function(){return this._readableState.flowing},set:function(O){this._readableState&&(this._readableState.flowing=O)}}),C._fromList=E,Object.defineProperty(C.prototype,"readableLength",{enumerable:!1,get:function(){return this._readableState.length}});function E(O,P){if(P.length===0)return null;var tt;return P.objectMode?tt=P.buffer.shift():!O||O>=P.length?(P.decoder?tt=P.buffer.join(""):P.buffer.length===1?tt=P.buffer.first():tt=P.buffer.concat(P.length),P.buffer.clear()):tt=P.buffer.consume(O,P.decoder),tt}function w(O){var P=O._readableState;g("endReadable",P.endEmitted),P.endEmitted||(P.ended=!0,gt.nextTick(z,P,O))}function z(O,P){if(g("endReadableNT",O.endEmitted,O.length),!O.endEmitted&&O.length===0&&(O.endEmitted=!0,P.readable=!1,P.emit("end"),O.autoDestroy)){var tt=P._writableState;(!tt||tt.autoDestroy&&tt.finished)&&P.destroy()}}typeof Symbol=="function"&&(C.from=function(O,P){return l===void 0&&(l=al()),l(C,O,P)});function L(O,P){for(var tt=0,f=O.length;tt<f;tt++)if(O[tt]===P)return tt;return-1}return on}var sn,ys;function bs(){if(ys)return sn;ys=1,sn=n;var e=pe().codes,t=e.ERR_METHOD_NOT_IMPLEMENTED,r=e.ERR_MULTIPLE_CALLBACK,i=e.ERR_TRANSFORM_ALREADY_TRANSFORMING,p=e.ERR_TRANSFORM_WITH_LENGTH_0,c=fe();qt()(n,c);function h(_,S){var I=this._transformState;I.transforming=!1;var d=I.writecb;if(d===null)return this.emit("error",new r);I.writechunk=null,I.writecb=null,S!=null&&this.push(S),d(_);var A=this._readableState;A.reading=!1,(A.needReadable||A.length<A.highWaterMark)&&this._read(A.highWaterMark)}function n(_){if(!(this instanceof n))return new n(_);c.call(this,_),this._transformState={afterTransform:h.bind(this),needTransform:!1,transforming:!1,writecb:null,writechunk:null,writeencoding:null},this._readableState.needReadable=!0,this._readableState.sync=!1,_&&(typeof _.transform=="function"&&(this._transform=_.transform),typeof _.flush=="function"&&(this._flush=_.flush)),this.on("prefinish",g)}function g(){var _=this;typeof this._flush=="function"&&!this._readableState.destroyed?this._flush(function(S,I){T(_,S,I)}):T(this,null,null)}n.prototype.push=function(_,S){return this._transformState.needTransform=!1,c.prototype.push.call(this,_,S)},n.prototype._transform=function(_,S,I){I(new t("_transform()"))},n.prototype._write=function(_,S,I){var d=this._transformState;if(d.writecb=I,d.writechunk=_,d.writeencoding=S,!d.transforming){var A=this._readableState;(d.needTransform||A.needReadable||A.length<A.highWaterMark)&&this._read(A.highWaterMark)}},n.prototype._read=function(_){var S=this._transformState;S.writechunk!==null&&!S.transforming?(S.transforming=!0,this._transform(S.writechunk,S.writeencoding,S.afterTransform)):S.needTransform=!0},n.prototype._destroy=function(_,S){c.prototype._destroy.call(this,_,function(I){S(I)})};function T(_,S,I){if(S)return _.emit("error",S);if(I!=null&&_.push(I),_._writableState.length)throw new p;if(_._transformState.transforming)throw new i;return _.push(null)}return sn}var an,vs;function ul(){if(vs)return an;vs=1,an=t;var e=bs();qt()(t,e);function t(r){if(!(this instanceof t))return new t(r);e.call(this,r)}return t.prototype._transform=function(r,i,p){p(null,r)},an}var un,xs;function cl(){if(xs)return un;xs=1;var e;function t(I){var d=!1;return function(){d||(d=!0,I.apply(void 0,arguments))}}var r=pe().codes,i=r.ERR_MISSING_ARGS,p=r.ERR_STREAM_DESTROYED;function c(I){if(I)throw I}function h(I){return I.setHeader&&typeof I.abort=="function"}function n(I,d,A,v){v=t(v);var R=!1;I.on("close",function(){R=!0}),e===void 0&&(e=rn()),e(I,{readable:d,writable:A},function(m){if(m)return v(m);R=!0,v()});var u=!1;return function(m){if(!R&&!u){if(u=!0,h(I))return I.abort();if(typeof I.destroy=="function")return I.destroy();v(m||new p("pipe"))}}}function g(I){I()}function T(I,d){return I.pipe(d)}function _(I){return!I.length||typeof I[I.length-1]!="function"?c:I.pop()}function S(){for(var I=arguments.length,d=new Array(I),A=0;A<I;A++)d[A]=arguments[A];var v=_(d);if(Array.isArray(d[0])&&(d=d[0]),d.length<2)throw new i("streams");var R,u=d.map(function(m,b){var l=b<d.length-1,k=b>0;return n(m,l,k,function(F){R||(R=F),F&&u.forEach(g),!l&&(u.forEach(g),v(R))})});return d.reduce(T)}return un=S,un}var cn,_s;function ln(){if(_s)return cn;_s=1,cn=r;var e=pr().EventEmitter,t=qt();t(r,e),r.Readable=ws(),r.Writable=us(),r.Duplex=fe(),r.Transform=bs(),r.PassThrough=ul(),r.finished=rn(),r.pipeline=cl(),r.Stream=r;function r(){e.call(this)}return r.prototype.pipe=function(i,p){var c=this;function h(d){i.writable&&i.write(d)===!1&&c.pause&&c.pause()}c.on("data",h);function n(){c.readable&&c.resume&&c.resume()}i.on("drain",n),!i._isStdio&&(!p||p.end!==!1)&&(c.on("end",T),c.on("close",_));var g=!1;function T(){g||(g=!0,i.end())}function _(){g||(g=!0,typeof i.destroy=="function"&&i.destroy())}function S(d){if(I(),e.listenerCount(this,"error")===0)throw d}c.on("error",S),i.on("error",S);function I(){c.removeListener("data",h),i.removeListener("drain",n),c.removeListener("end",T),c.removeListener("close",_),c.removeListener("error",S),i.removeListener("error",S),c.removeListener("end",I),c.removeListener("close",I),i.removeListener("close",I)}return c.on("end",I),c.on("close",I),i.on("close",I),i.emit("pipe",c),i},cn}var Es;function ll(){return Es||(Es=1,function(e){(function(t){t.parser=function(E,w){return new i(E,w)},t.SAXParser=i,t.SAXStream=_,t.createStream=T,t.MAX_BUFFER_LENGTH=64*1024;var r=["comment","sgmlDecl","textNode","tagName","doctype","procInstName","procInstBody","entity","attribName","attribValue","cdata","script"];t.EVENTS=["text","processinginstruction","sgmldeclaration","doctype","comment","opentagstart","attribute","opentag","closetag","opencdata","cdata","closecdata","error","end","ready","script","opennamespace","closenamespace"];function i(E,w){if(!(this instanceof i))return new i(E,w);var z=this;c(z),z.q=z.c="",z.bufferCheckPosition=t.MAX_BUFFER_LENGTH,z.opt=w||{},z.opt.lowercase=z.opt.lowercase||z.opt.lowercasetags,z.looseCase=z.opt.lowercase?"toLowerCase":"toUpperCase",z.tags=[],z.closed=z.closedRoot=z.sawRoot=!1,z.tag=z.error=null,z.strict=!!E,z.noscript=!!(E||z.opt.noscript),z.state=C.BEGIN,z.strictEntities=z.opt.strictEntities,z.ENTITIES=z.strictEntities?Object.create(t.XML_ENTITIES):Object.create(t.ENTITIES),z.attribList=[],z.opt.xmlns&&(z.ns=Object.create(v)),z.trackPosition=z.opt.position!==!1,z.trackPosition&&(z.position=z.line=z.column=0),at(z,"onready")}Object.create||(Object.create=function(E){function w(){}w.prototype=E;var z=new w;return z}),Object.keys||(Object.keys=function(E){var w=[];for(var z in E)E.hasOwnProperty(z)&&w.push(z);return w});function p(E){for(var w=Math.max(t.MAX_BUFFER_LENGTH,10),z=0,L=0,O=r.length;L<O;L++){var P=E[r[L]].length;if(P>w)switch(r[L]){case"textNode":j(E);break;case"cdata":N(E,"oncdata",E.cdata),E.cdata="";break;case"script":N(E,"onscript",E.script),E.script="";break;default:W(E,"Max buffer length exceeded: "+r[L])}z=Math.max(z,P)}var tt=t.MAX_BUFFER_LENGTH-z;E.bufferCheckPosition=tt+E.position}function c(E){for(var w=0,z=r.length;w<z;w++)E[r[w]]=""}function h(E){j(E),E.cdata!==""&&(N(E,"oncdata",E.cdata),E.cdata=""),E.script!==""&&(N(E,"onscript",E.script),E.script="")}i.prototype={end:function(){$(this)},write:G,resume:function(){return this.error=null,this},close:function(){return this.write(null)},flush:function(){h(this)}};var n;try{n=ln().Stream}catch{n=function(){}}var g=t.EVENTS.filter(function(E){return E!=="error"&&E!=="end"});function T(E,w){return new _(E,w)}function _(E,w){if(!(this instanceof _))return new _(E,w);n.apply(this),this._parser=new i(E,w),this.writable=!0,this.readable=!0;var z=this;this._parser.onend=function(){z.emit("end")},this._parser.onerror=function(L){z.emit("error",L),z._parser.error=null},this._decoder=null,g.forEach(function(L){Object.defineProperty(z,"on"+L,{get:function(){return z._parser["on"+L]},set:function(O){if(!O)return z.removeAllListeners(L),z._parser["on"+L]=O,O;z.on(L,O)},enumerable:!0,configurable:!1})})}_.prototype=Object.create(n.prototype,{constructor:{value:_}}),_.prototype.write=function(E){if(typeof Buffer=="function"&&typeof Buffer.isBuffer=="function"&&Buffer.isBuffer(E)){if(!this._decoder){var w=tn().StringDecoder;this._decoder=new w("utf8")}E=this._decoder.write(E)}return this._parser.write(E.toString()),this.emit("data",E),!0},_.prototype.end=function(E){return E&&E.length&&this.write(E),this._parser.end(),!0},_.prototype.on=function(E,w){var z=this;return!z._parser["on"+E]&&g.indexOf(E)!==-1&&(z._parser["on"+E]=function(){var L=arguments.length===1?[arguments[0]]:Array.apply(null,arguments);L.splice(0,0,E),z.emit.apply(z,L)}),n.prototype.on.call(z,E,w)};var S="[CDATA[",I="DOCTYPE",d="http://www.w3.org/XML/1998/namespace",A="http://www.w3.org/2000/xmlns/",v={xml:d,xmlns:A},R=/[:_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]/,u=/[:_A-Za-z\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD\u00B7\u0300-\u036F\u203F-\u2040.\d-]/,m=/[#:_A-Za-z\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD]/,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\u00B7\u0300-\u036F\u203F-\u2040.\d-]/;function l(E){return E===" "||E===`
11
+ `||E==="\r"||E===" "}function k(E){return E==='"'||E==="'"}function F(E){return E===">"||l(E)}function B(E,w){return E.test(w)}function U(E,w){return!B(E,w)}var C=0;t.STATE={BEGIN:C++,BEGIN_WHITESPACE:C++,TEXT:C++,TEXT_ENTITY:C++,OPEN_WAKA:C++,SGML_DECL:C++,SGML_DECL_QUOTED:C++,DOCTYPE:C++,DOCTYPE_QUOTED:C++,DOCTYPE_DTD:C++,DOCTYPE_DTD_QUOTED:C++,COMMENT_STARTING:C++,COMMENT:C++,COMMENT_ENDING:C++,COMMENT_ENDED:C++,CDATA:C++,CDATA_ENDING:C++,CDATA_ENDING_2:C++,PROC_INST:C++,PROC_INST_BODY:C++,PROC_INST_ENDING:C++,OPEN_TAG:C++,OPEN_TAG_SLASH:C++,ATTRIB:C++,ATTRIB_NAME:C++,ATTRIB_NAME_SAW_WHITE:C++,ATTRIB_VALUE:C++,ATTRIB_VALUE_QUOTED:C++,ATTRIB_VALUE_CLOSED:C++,ATTRIB_VALUE_UNQUOTED:C++,ATTRIB_VALUE_ENTITY_Q:C++,ATTRIB_VALUE_ENTITY_U:C++,CLOSE_TAG:C++,CLOSE_TAG_SAW_WHITE:C++,SCRIPT:C++,SCRIPT_ENDING:C++},t.XML_ENTITIES={amp:"&",gt:">",lt:"<",quot:'"',apos:"'"},t.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(t.ENTITIES).forEach(function(E){var w=t.ENTITIES[E],z=typeof w=="number"?String.fromCharCode(w):w;t.ENTITIES[E]=z});for(var Q in t.STATE)t.STATE[t.STATE[Q]]=Q;C=t.STATE;function at(E,w,z){E[w]&&E[w](z)}function N(E,w,z){E.textNode&&j(E),at(E,w,z)}function j(E){E.textNode=y(E.opt,E.textNode),E.textNode&&at(E,"ontext",E.textNode),E.textNode=""}function y(E,w){return E.trim&&(w=w.trim()),E.normalize&&(w=w.replace(/\s+/g," ")),w}function W(E,w){return j(E),E.trackPosition&&(w+=`
12
+ Line: `+E.line+`
13
+ Column: `+E.column+`
14
+ Char: `+E.c),w=new Error(w),E.error=w,at(E,"onerror",w),E}function $(E){return E.sawRoot&&!E.closedRoot&&K(E,"Unclosed root tag"),E.state!==C.BEGIN&&E.state!==C.BEGIN_WHITESPACE&&E.state!==C.TEXT&&W(E,"Unexpected end"),j(E),E.c="",E.closed=!0,at(E,"onend"),i.call(E,E.strict,E.opt),E}function K(E,w){if(typeof E!="object"||!(E instanceof i))throw new Error("bad call to strictFail");E.strict&&W(E,w)}function it(E){E.strict||(E.tagName=E.tagName[E.looseCase]());var w=E.tags[E.tags.length-1]||E,z=E.tag={name:E.tagName,attributes:{}};E.opt.xmlns&&(z.ns=w.ns),E.attribList.length=0,N(E,"onopentagstart",z)}function J(E,w){var z=E.indexOf(":"),L=z<0?["",E]:E.split(":"),O=L[0],P=L[1];return w&&E==="xmlns"&&(O="xmlns",P=""),{prefix:O,local:P}}function lt(E){if(E.strict||(E.attribName=E.attribName[E.looseCase]()),E.attribList.indexOf(E.attribName)!==-1||E.tag.attributes.hasOwnProperty(E.attribName)){E.attribName=E.attribValue="";return}if(E.opt.xmlns){var w=J(E.attribName,!0),z=w.prefix,L=w.local;if(z==="xmlns")if(L==="xml"&&E.attribValue!==d)K(E,"xml: prefix must be bound to "+d+`
15
+ Actual: `+E.attribValue);else if(L==="xmlns"&&E.attribValue!==A)K(E,"xmlns: prefix must be bound to "+A+`
16
+ Actual: `+E.attribValue);else{var O=E.tag,P=E.tags[E.tags.length-1]||E;O.ns===P.ns&&(O.ns=Object.create(P.ns)),O.ns[L]=E.attribValue}E.attribList.push([E.attribName,E.attribValue])}else E.tag.attributes[E.attribName]=E.attribValue,N(E,"onattribute",{name:E.attribName,value:E.attribValue});E.attribName=E.attribValue=""}function X(E,w){if(E.opt.xmlns){var z=E.tag,L=J(E.tagName);z.prefix=L.prefix,z.local=L.local,z.uri=z.ns[L.prefix]||"",z.prefix&&!z.uri&&(K(E,"Unbound namespace prefix: "+JSON.stringify(E.tagName)),z.uri=L.prefix);var O=E.tags[E.tags.length-1]||E;z.ns&&O.ns!==z.ns&&Object.keys(z.ns).forEach(function(H){N(E,"onopennamespace",{prefix:H,uri:z.ns[H]})});for(var P=0,tt=E.attribList.length;P<tt;P++){var f=E.attribList[P],q=f[0],o=f[1],s=J(q,!0),a=s.prefix,x=s.local,M=a===""?"":z.ns[a]||"",V={name:q,value:o,prefix:a,local:x,uri:M};a&&a!=="xmlns"&&!M&&(K(E,"Unbound namespace prefix: "+JSON.stringify(a)),V.uri=a),E.tag.attributes[q]=V,N(E,"onattribute",V)}E.attribList.length=0}E.tag.isSelfClosing=!!w,E.sawRoot=!0,E.tags.push(E.tag),N(E,"onopentag",E.tag),w||(!E.noscript&&E.tagName.toLowerCase()==="script"?E.state=C.SCRIPT:E.state=C.TEXT,E.tag=null,E.tagName=""),E.attribName=E.attribValue="",E.attribList.length=0}function D(E){if(!E.tagName){K(E,"Weird empty close tag."),E.textNode+="</>",E.state=C.TEXT;return}if(E.script){if(E.tagName!=="script"){E.script+="</"+E.tagName+">",E.tagName="",E.state=C.SCRIPT;return}N(E,"onscript",E.script),E.script=""}var w=E.tags.length,z=E.tagName;E.strict||(z=z[E.looseCase]());for(var L=z;w--;){var O=E.tags[w];if(O.name!==L)K(E,"Unexpected close tag");else break}if(w<0){K(E,"Unmatched closing tag: "+E.tagName),E.textNode+="</"+E.tagName+">",E.state=C.TEXT;return}E.tagName=z;for(var P=E.tags.length;P-- >w;){var tt=E.tag=E.tags.pop();E.tagName=E.tag.name,N(E,"onclosetag",E.tagName);var f={};for(var q in tt.ns)f[q]=tt.ns[q];var o=E.tags[E.tags.length-1]||E;E.opt.xmlns&&tt.ns!==o.ns&&Object.keys(tt.ns).forEach(function(s){var a=tt.ns[s];N(E,"onclosenamespace",{prefix:s,uri:a})})}w===0&&(E.closedRoot=!0),E.tagName=E.attribValue=E.attribName="",E.attribList.length=0,E.state=C.TEXT}function Z(E){var w=E.entity,z=w.toLowerCase(),L,O="";return E.ENTITIES[w]?E.ENTITIES[w]:E.ENTITIES[z]?E.ENTITIES[z]:(w=z,w.charAt(0)==="#"&&(w.charAt(1)==="x"?(w=w.slice(2),L=parseInt(w,16),O=L.toString(16)):(w=w.slice(1),L=parseInt(w,10),O=L.toString(10))),w=w.replace(/^0+/,""),isNaN(L)||O.toLowerCase()!==w?(K(E,"Invalid character entity"),"&"+E.entity+";"):String.fromCodePoint(L))}function Y(E,w){w==="<"?(E.state=C.OPEN_WAKA,E.startTagPosition=E.position):l(w)||(K(E,"Non-whitespace before first tag."),E.textNode=w,E.state=C.TEXT)}function nt(E,w){var z="";return w<E.length&&(z=E.charAt(w)),z}function G(E){var w=this;if(this.error)throw this.error;if(w.closed)return W(w,"Cannot write after close. Assign an onready handler.");if(E===null)return $(w);typeof E=="object"&&(E=E.toString());for(var z=0,L="";L=nt(E,z++),w.c=L,!!L;)switch(w.trackPosition&&(w.position++,L===`
17
+ `?(w.line++,w.column=0):w.column++),w.state){case C.BEGIN:if(w.state=C.BEGIN_WHITESPACE,L==="\uFEFF")continue;Y(w,L);continue;case C.BEGIN_WHITESPACE:Y(w,L);continue;case C.TEXT:if(w.sawRoot&&!w.closedRoot){for(var O=z-1;L&&L!=="<"&&L!=="&";)L=nt(E,z++),L&&w.trackPosition&&(w.position++,L===`
18
+ `?(w.line++,w.column=0):w.column++);w.textNode+=E.substring(O,z-1)}L==="<"&&!(w.sawRoot&&w.closedRoot&&!w.strict)?(w.state=C.OPEN_WAKA,w.startTagPosition=w.position):(!l(L)&&(!w.sawRoot||w.closedRoot)&&K(w,"Text data outside of root node."),L==="&"?w.state=C.TEXT_ENTITY:w.textNode+=L);continue;case C.SCRIPT:L==="<"?w.state=C.SCRIPT_ENDING:w.script+=L;continue;case C.SCRIPT_ENDING:L==="/"?w.state=C.CLOSE_TAG:(w.script+="<"+L,w.state=C.SCRIPT);continue;case C.OPEN_WAKA:if(L==="!")w.state=C.SGML_DECL,w.sgmlDecl="";else if(!l(L))if(B(R,L))w.state=C.OPEN_TAG,w.tagName=L;else if(L==="/")w.state=C.CLOSE_TAG,w.tagName="";else if(L==="?")w.state=C.PROC_INST,w.procInstName=w.procInstBody="";else{if(K(w,"Unencoded <"),w.startTagPosition+1<w.position){var P=w.position-w.startTagPosition;L=new Array(P).join(" ")+L}w.textNode+="<"+L,w.state=C.TEXT}continue;case C.SGML_DECL:(w.sgmlDecl+L).toUpperCase()===S?(N(w,"onopencdata"),w.state=C.CDATA,w.sgmlDecl="",w.cdata=""):w.sgmlDecl+L==="--"?(w.state=C.COMMENT,w.comment="",w.sgmlDecl=""):(w.sgmlDecl+L).toUpperCase()===I?(w.state=C.DOCTYPE,(w.doctype||w.sawRoot)&&K(w,"Inappropriately located doctype declaration"),w.doctype="",w.sgmlDecl=""):L===">"?(N(w,"onsgmldeclaration",w.sgmlDecl),w.sgmlDecl="",w.state=C.TEXT):(k(L)&&(w.state=C.SGML_DECL_QUOTED),w.sgmlDecl+=L);continue;case C.SGML_DECL_QUOTED:L===w.q&&(w.state=C.SGML_DECL,w.q=""),w.sgmlDecl+=L;continue;case C.DOCTYPE:L===">"?(w.state=C.TEXT,N(w,"ondoctype",w.doctype),w.doctype=!0):(w.doctype+=L,L==="["?w.state=C.DOCTYPE_DTD:k(L)&&(w.state=C.DOCTYPE_QUOTED,w.q=L));continue;case C.DOCTYPE_QUOTED:w.doctype+=L,L===w.q&&(w.q="",w.state=C.DOCTYPE);continue;case C.DOCTYPE_DTD:w.doctype+=L,L==="]"?w.state=C.DOCTYPE:k(L)&&(w.state=C.DOCTYPE_DTD_QUOTED,w.q=L);continue;case C.DOCTYPE_DTD_QUOTED:w.doctype+=L,L===w.q&&(w.state=C.DOCTYPE_DTD,w.q="");continue;case C.COMMENT:L==="-"?w.state=C.COMMENT_ENDING:w.comment+=L;continue;case C.COMMENT_ENDING:L==="-"?(w.state=C.COMMENT_ENDED,w.comment=y(w.opt,w.comment),w.comment&&N(w,"oncomment",w.comment),w.comment=""):(w.comment+="-"+L,w.state=C.COMMENT);continue;case C.COMMENT_ENDED:L!==">"?(K(w,"Malformed comment"),w.comment+="--"+L,w.state=C.COMMENT):w.state=C.TEXT;continue;case C.CDATA:L==="]"?w.state=C.CDATA_ENDING:w.cdata+=L;continue;case C.CDATA_ENDING:L==="]"?w.state=C.CDATA_ENDING_2:(w.cdata+="]"+L,w.state=C.CDATA);continue;case C.CDATA_ENDING_2:L===">"?(w.cdata&&N(w,"oncdata",w.cdata),N(w,"onclosecdata"),w.cdata="",w.state=C.TEXT):L==="]"?w.cdata+="]":(w.cdata+="]]"+L,w.state=C.CDATA);continue;case C.PROC_INST:L==="?"?w.state=C.PROC_INST_ENDING:l(L)?w.state=C.PROC_INST_BODY:w.procInstName+=L;continue;case C.PROC_INST_BODY:if(!w.procInstBody&&l(L))continue;L==="?"?w.state=C.PROC_INST_ENDING:w.procInstBody+=L;continue;case C.PROC_INST_ENDING:L===">"?(N(w,"onprocessinginstruction",{name:w.procInstName,body:w.procInstBody}),w.procInstName=w.procInstBody="",w.state=C.TEXT):(w.procInstBody+="?"+L,w.state=C.PROC_INST_BODY);continue;case C.OPEN_TAG:B(u,L)?w.tagName+=L:(it(w),L===">"?X(w):L==="/"?w.state=C.OPEN_TAG_SLASH:(l(L)||K(w,"Invalid character in tag name"),w.state=C.ATTRIB));continue;case C.OPEN_TAG_SLASH:L===">"?(X(w,!0),D(w)):(K(w,"Forward-slash in opening tag not followed by >"),w.state=C.ATTRIB);continue;case C.ATTRIB:if(l(L))continue;L===">"?X(w):L==="/"?w.state=C.OPEN_TAG_SLASH:B(R,L)?(w.attribName=L,w.attribValue="",w.state=C.ATTRIB_NAME):K(w,"Invalid attribute name");continue;case C.ATTRIB_NAME:L==="="?w.state=C.ATTRIB_VALUE:L===">"?(K(w,"Attribute without value"),w.attribValue=w.attribName,lt(w),X(w)):l(L)?w.state=C.ATTRIB_NAME_SAW_WHITE:B(u,L)?w.attribName+=L:K(w,"Invalid attribute name");continue;case C.ATTRIB_NAME_SAW_WHITE:if(L==="=")w.state=C.ATTRIB_VALUE;else{if(l(L))continue;K(w,"Attribute without value"),w.tag.attributes[w.attribName]="",w.attribValue="",N(w,"onattribute",{name:w.attribName,value:""}),w.attribName="",L===">"?X(w):B(R,L)?(w.attribName=L,w.state=C.ATTRIB_NAME):(K(w,"Invalid attribute name"),w.state=C.ATTRIB)}continue;case C.ATTRIB_VALUE:if(l(L))continue;k(L)?(w.q=L,w.state=C.ATTRIB_VALUE_QUOTED):(K(w,"Unquoted attribute value"),w.state=C.ATTRIB_VALUE_UNQUOTED,w.attribValue=L);continue;case C.ATTRIB_VALUE_QUOTED:if(L!==w.q){L==="&"?w.state=C.ATTRIB_VALUE_ENTITY_Q:w.attribValue+=L;continue}lt(w),w.q="",w.state=C.ATTRIB_VALUE_CLOSED;continue;case C.ATTRIB_VALUE_CLOSED:l(L)?w.state=C.ATTRIB:L===">"?X(w):L==="/"?w.state=C.OPEN_TAG_SLASH:B(R,L)?(K(w,"No whitespace between attributes"),w.attribName=L,w.attribValue="",w.state=C.ATTRIB_NAME):K(w,"Invalid attribute name");continue;case C.ATTRIB_VALUE_UNQUOTED:if(!F(L)){L==="&"?w.state=C.ATTRIB_VALUE_ENTITY_U:w.attribValue+=L;continue}lt(w),L===">"?X(w):w.state=C.ATTRIB;continue;case C.CLOSE_TAG:if(w.tagName)L===">"?D(w):B(u,L)?w.tagName+=L:w.script?(w.script+="</"+w.tagName,w.tagName="",w.state=C.SCRIPT):(l(L)||K(w,"Invalid tagname in closing tag"),w.state=C.CLOSE_TAG_SAW_WHITE);else{if(l(L))continue;U(R,L)?w.script?(w.script+="</"+L,w.state=C.SCRIPT):K(w,"Invalid tagname in closing tag."):w.tagName=L}continue;case C.CLOSE_TAG_SAW_WHITE:if(l(L))continue;L===">"?D(w):K(w,"Invalid characters in closing tag");continue;case C.TEXT_ENTITY:case C.ATTRIB_VALUE_ENTITY_Q:case C.ATTRIB_VALUE_ENTITY_U:var tt,f;switch(w.state){case C.TEXT_ENTITY:tt=C.TEXT,f="textNode";break;case C.ATTRIB_VALUE_ENTITY_Q:tt=C.ATTRIB_VALUE_QUOTED,f="attribValue";break;case C.ATTRIB_VALUE_ENTITY_U:tt=C.ATTRIB_VALUE_UNQUOTED,f="attribValue";break}L===";"?(w[f]+=Z(w),w.entity="",w.state=tt):B(w.entity.length?b:m,L)?w.entity+=L:(K(w,"Invalid character in entity name"),w[f]+="&"+w.entity+L,w.entity="",w.state=tt);continue;default:throw new Error(w,"Unknown state: "+w.state)}return w.position>=w.bufferCheckPosition&&p(w),w}String.fromCodePoint||function(){var E=String.fromCharCode,w=Math.floor,z=function(){var L=16384,O=[],P,tt,f=-1,q=arguments.length;if(!q)return"";for(var o="";++f<q;){var s=Number(arguments[f]);if(!isFinite(s)||s<0||s>1114111||w(s)!==s)throw RangeError("Invalid code point: "+s);s<=65535?O.push(s):(s-=65536,P=(s>>10)+55296,tt=s%1024+56320,O.push(P,tt)),(f+1===q||O.length>L)&&(o+=E.apply(null,O),O.length=0)}return o};Object.defineProperty?Object.defineProperty(String,"fromCodePoint",{value:z,configurable:!0,writable:!0}):String.fromCodePoint=z}()})(e)}(si)),si}var Ts,As;function hn(){return As||(As=1,Ts={isArray:function(e){return Array.isArray?Array.isArray(e):Object.prototype.toString.call(e)==="[object Array]"}}),Ts}var pn,ks;function fn(){if(ks)return pn;ks=1;var e=hn().isArray;return pn={copyOptions:function(t){var r,i={};for(r in t)t.hasOwnProperty(r)&&(i[r]=t[r]);return i},ensureFlagExists:function(t,r){(!(t in r)||typeof r[t]!="boolean")&&(r[t]=!1)},ensureSpacesExists:function(t){(!("spaces"in t)||typeof t.spaces!="number"&&typeof t.spaces!="string")&&(t.spaces=0)},ensureAlwaysArrayExists:function(t){(!("alwaysArray"in t)||typeof t.alwaysArray!="boolean"&&!e(t.alwaysArray))&&(t.alwaysArray=!1)},ensureKeyExists:function(t,r){(!(t+"Key"in r)||typeof r[t+"Key"]!="string")&&(r[t+"Key"]=r.compact?"_"+t:t)},checkFnExists:function(t,r){return t+"Fn"in r}},pn}var dn,Ss;function Cs(){if(Ss)return dn;Ss=1;var e=ll(),t=fn(),r=hn().isArray,i,p;function c(u){return i=t.copyOptions(u),t.ensureFlagExists("ignoreDeclaration",i),t.ensureFlagExists("ignoreInstruction",i),t.ensureFlagExists("ignoreAttributes",i),t.ensureFlagExists("ignoreText",i),t.ensureFlagExists("ignoreComment",i),t.ensureFlagExists("ignoreCdata",i),t.ensureFlagExists("ignoreDoctype",i),t.ensureFlagExists("compact",i),t.ensureFlagExists("alwaysChildren",i),t.ensureFlagExists("addParent",i),t.ensureFlagExists("trim",i),t.ensureFlagExists("nativeType",i),t.ensureFlagExists("nativeTypeAttributes",i),t.ensureFlagExists("sanitize",i),t.ensureFlagExists("instructionHasAttributes",i),t.ensureFlagExists("captureSpacesBetweenElements",i),t.ensureAlwaysArrayExists(i),t.ensureKeyExists("declaration",i),t.ensureKeyExists("instruction",i),t.ensureKeyExists("attributes",i),t.ensureKeyExists("text",i),t.ensureKeyExists("comment",i),t.ensureKeyExists("cdata",i),t.ensureKeyExists("doctype",i),t.ensureKeyExists("type",i),t.ensureKeyExists("name",i),t.ensureKeyExists("elements",i),t.ensureKeyExists("parent",i),t.checkFnExists("doctype",i),t.checkFnExists("instruction",i),t.checkFnExists("cdata",i),t.checkFnExists("comment",i),t.checkFnExists("text",i),t.checkFnExists("instructionName",i),t.checkFnExists("elementName",i),t.checkFnExists("attributeName",i),t.checkFnExists("attributeValue",i),t.checkFnExists("attributes",i),i}function h(u){var m=Number(u);if(!isNaN(m))return m;var b=u.toLowerCase();return b==="true"?!0:b==="false"?!1:u}function n(u,m){var b;if(i.compact){if(!p[i[u+"Key"]]&&(r(i.alwaysArray)?i.alwaysArray.indexOf(i[u+"Key"])!==-1:i.alwaysArray)&&(p[i[u+"Key"]]=[]),p[i[u+"Key"]]&&!r(p[i[u+"Key"]])&&(p[i[u+"Key"]]=[p[i[u+"Key"]]]),u+"Fn"in i&&typeof m=="string"&&(m=i[u+"Fn"](m,p)),u==="instruction"&&("instructionFn"in i||"instructionNameFn"in i)){for(b in m)if(m.hasOwnProperty(b))if("instructionFn"in i)m[b]=i.instructionFn(m[b],b,p);else{var l=m[b];delete m[b],m[i.instructionNameFn(b,l,p)]=l}}r(p[i[u+"Key"]])?p[i[u+"Key"]].push(m):p[i[u+"Key"]]=m}else{p[i.elementsKey]||(p[i.elementsKey]=[]);var k={};if(k[i.typeKey]=u,u==="instruction"){for(b in m)if(m.hasOwnProperty(b))break;k[i.nameKey]="instructionNameFn"in i?i.instructionNameFn(b,m,p):b,i.instructionHasAttributes?(k[i.attributesKey]=m[b][i.attributesKey],"instructionFn"in i&&(k[i.attributesKey]=i.instructionFn(k[i.attributesKey],b,p))):("instructionFn"in i&&(m[b]=i.instructionFn(m[b],b,p)),k[i.instructionKey]=m[b])}else u+"Fn"in i&&(m=i[u+"Fn"](m,p)),k[i[u+"Key"]]=m;i.addParent&&(k[i.parentKey]=p),p[i.elementsKey].push(k)}}function g(u){if("attributesFn"in i&&u&&(u=i.attributesFn(u,p)),(i.trim||"attributeValueFn"in i||"attributeNameFn"in i||i.nativeTypeAttributes)&&u){var m;for(m in u)if(u.hasOwnProperty(m)&&(i.trim&&(u[m]=u[m].trim()),i.nativeTypeAttributes&&(u[m]=h(u[m])),"attributeValueFn"in i&&(u[m]=i.attributeValueFn(u[m],m,p)),"attributeNameFn"in i)){var b=u[m];delete u[m],u[i.attributeNameFn(m,u[m],p)]=b}}return u}function T(u){var m={};if(u.body&&(u.name.toLowerCase()==="xml"||i.instructionHasAttributes)){for(var b=/([\w:-]+)\s*=\s*(?:"([^"]*)"|'([^']*)'|(\w+))\s*/g,l;(l=b.exec(u.body))!==null;)m[l[1]]=l[2]||l[3]||l[4];m=g(m)}if(u.name.toLowerCase()==="xml"){if(i.ignoreDeclaration)return;p[i.declarationKey]={},Object.keys(m).length&&(p[i.declarationKey][i.attributesKey]=m),i.addParent&&(p[i.declarationKey][i.parentKey]=p)}else{if(i.ignoreInstruction)return;i.trim&&(u.body=u.body.trim());var k={};i.instructionHasAttributes&&Object.keys(m).length?(k[u.name]={},k[u.name][i.attributesKey]=m):k[u.name]=u.body,n("instruction",k)}}function _(u,m){var b;if(typeof u=="object"&&(m=u.attributes,u=u.name),m=g(m),"elementNameFn"in i&&(u=i.elementNameFn(u,p)),i.compact){if(b={},!i.ignoreAttributes&&m&&Object.keys(m).length){b[i.attributesKey]={};var l;for(l in m)m.hasOwnProperty(l)&&(b[i.attributesKey][l]=m[l])}!(u in p)&&(r(i.alwaysArray)?i.alwaysArray.indexOf(u)!==-1:i.alwaysArray)&&(p[u]=[]),p[u]&&!r(p[u])&&(p[u]=[p[u]]),r(p[u])?p[u].push(b):p[u]=b}else p[i.elementsKey]||(p[i.elementsKey]=[]),b={},b[i.typeKey]="element",b[i.nameKey]=u,!i.ignoreAttributes&&m&&Object.keys(m).length&&(b[i.attributesKey]=m),i.alwaysChildren&&(b[i.elementsKey]=[]),p[i.elementsKey].push(b);b[i.parentKey]=p,p=b}function S(u){i.ignoreText||!u.trim()&&!i.captureSpacesBetweenElements||(i.trim&&(u=u.trim()),i.nativeType&&(u=h(u)),i.sanitize&&(u=u.replace(/&/g,"&amp;").replace(/</g,"&lt;").replace(/>/g,"&gt;")),n("text",u))}function I(u){i.ignoreComment||(i.trim&&(u=u.trim()),n("comment",u))}function d(u){var m=p[i.parentKey];i.addParent||delete p[i.parentKey],p=m}function A(u){i.ignoreCdata||(i.trim&&(u=u.trim()),n("cdata",u))}function v(u){i.ignoreDoctype||(u=u.replace(/^ /,""),i.trim&&(u=u.trim()),n("doctype",u))}function R(u){u.note=u}return dn=function(u,m){var b=e.parser(!0,{}),l={};if(p=l,i=c(m),b.opt={strictEntities:!0},b.onopentag=_,b.ontext=S,b.oncomment=I,b.onclosetag=d,b.onerror=R,b.oncdata=A,b.ondoctype=v,b.onprocessinginstruction=T,b.write(u).close(),l[i.elementsKey]){var k=l[i.elementsKey];delete l[i.elementsKey],l[i.elementsKey]=k,delete l.text}return l},dn}var mn,Is;function hl(){if(Is)return mn;Is=1;var e=fn(),t=Cs();function r(i){var p=e.copyOptions(i);return e.ensureSpacesExists(p),p}return mn=function(i,p){var c,h,n,g;return c=r(p),h=t(i,c),g="compact"in c&&c.compact?"_parent":"parent","addParent"in c&&c.addParent?n=JSON.stringify(h,function(T,_){return T===g?"_":_},c.spaces):n=JSON.stringify(h,null,c.spaces),n.replace(/\u2028/g,"\\u2028").replace(/\u2029/g,"\\u2029")},mn}var gn,Rs;function Ns(){if(Rs)return gn;Rs=1;var e=fn(),t=hn().isArray,r,i;function p(b){var l=e.copyOptions(b);return e.ensureFlagExists("ignoreDeclaration",l),e.ensureFlagExists("ignoreInstruction",l),e.ensureFlagExists("ignoreAttributes",l),e.ensureFlagExists("ignoreText",l),e.ensureFlagExists("ignoreComment",l),e.ensureFlagExists("ignoreCdata",l),e.ensureFlagExists("ignoreDoctype",l),e.ensureFlagExists("compact",l),e.ensureFlagExists("indentText",l),e.ensureFlagExists("indentCdata",l),e.ensureFlagExists("indentAttributes",l),e.ensureFlagExists("indentInstruction",l),e.ensureFlagExists("fullTagEmptyElement",l),e.ensureFlagExists("noQuotesForNativeAttributes",l),e.ensureSpacesExists(l),typeof l.spaces=="number"&&(l.spaces=Array(l.spaces+1).join(" ")),e.ensureKeyExists("declaration",l),e.ensureKeyExists("instruction",l),e.ensureKeyExists("attributes",l),e.ensureKeyExists("text",l),e.ensureKeyExists("comment",l),e.ensureKeyExists("cdata",l),e.ensureKeyExists("doctype",l),e.ensureKeyExists("type",l),e.ensureKeyExists("name",l),e.ensureKeyExists("elements",l),e.checkFnExists("doctype",l),e.checkFnExists("instruction",l),e.checkFnExists("cdata",l),e.checkFnExists("comment",l),e.checkFnExists("text",l),e.checkFnExists("instructionName",l),e.checkFnExists("elementName",l),e.checkFnExists("attributeName",l),e.checkFnExists("attributeValue",l),e.checkFnExists("attributes",l),e.checkFnExists("fullTagEmptyElement",l),l}function c(b,l,k){return(!k&&b.spaces?`
19
+ `:"")+Array(l+1).join(b.spaces)}function h(b,l,k){if(l.ignoreAttributes)return"";"attributesFn"in l&&(b=l.attributesFn(b,i,r));var F,B,U,C,Q=[];for(F in b)b.hasOwnProperty(F)&&b[F]!==null&&b[F]!==void 0&&(C=l.noQuotesForNativeAttributes&&typeof b[F]!="string"?"":'"',B=""+b[F],B=B.replace(/"/g,"&quot;"),U="attributeNameFn"in l?l.attributeNameFn(F,B,i,r):F,Q.push(l.spaces&&l.indentAttributes?c(l,k+1,!1):" "),Q.push(U+"="+C+("attributeValueFn"in l?l.attributeValueFn(B,F,i,r):B)+C));return b&&Object.keys(b).length&&l.spaces&&l.indentAttributes&&Q.push(c(l,k,!1)),Q.join("")}function n(b,l,k){return r=b,i="xml",l.ignoreDeclaration?"":"<?xml"+h(b[l.attributesKey],l,k)+"?>"}function g(b,l,k){if(l.ignoreInstruction)return"";var F;for(F in b)if(b.hasOwnProperty(F))break;var B="instructionNameFn"in l?l.instructionNameFn(F,b[F],i,r):F;if(typeof b[F]=="object")return r=b,i=B,"<?"+B+h(b[F][l.attributesKey],l,k)+"?>";var U=b[F]?b[F]:"";return"instructionFn"in l&&(U=l.instructionFn(U,F,i,r)),"<?"+B+(U?" "+U:"")+"?>"}function T(b,l){return l.ignoreComment?"":"<!--"+("commentFn"in l?l.commentFn(b,i,r):b)+"-->"}function _(b,l){return l.ignoreCdata?"":"<![CDATA["+("cdataFn"in l?l.cdataFn(b,i,r):b.replace("]]>","]]]]><![CDATA[>"))+"]]>"}function S(b,l){return l.ignoreDoctype?"":"<!DOCTYPE "+("doctypeFn"in l?l.doctypeFn(b,i,r):b)+">"}function I(b,l){return l.ignoreText?"":(b=""+b,b=b.replace(/&amp;/g,"&"),b=b.replace(/&/g,"&amp;").replace(/</g,"&lt;").replace(/>/g,"&gt;"),"textFn"in l?l.textFn(b,i,r):b)}function d(b,l){var k;if(b.elements&&b.elements.length)for(k=0;k<b.elements.length;++k)switch(b.elements[k][l.typeKey]){case"text":if(l.indentText)return!0;break;case"cdata":if(l.indentCdata)return!0;break;case"instruction":if(l.indentInstruction)return!0;break;case"doctype":case"comment":case"element":return!0;default:return!0}return!1}function A(b,l,k){r=b,i=b.name;var F=[],B="elementNameFn"in l?l.elementNameFn(b.name,b):b.name;F.push("<"+B),b[l.attributesKey]&&F.push(h(b[l.attributesKey],l,k));var U=b[l.elementsKey]&&b[l.elementsKey].length||b[l.attributesKey]&&b[l.attributesKey]["xml:space"]==="preserve";return U||("fullTagEmptyElementFn"in l?U=l.fullTagEmptyElementFn(b.name,b):U=l.fullTagEmptyElement),U?(F.push(">"),b[l.elementsKey]&&b[l.elementsKey].length&&(F.push(v(b[l.elementsKey],l,k+1)),r=b,i=b.name),F.push(l.spaces&&d(b,l)?`
20
+ `+Array(k+1).join(l.spaces):""),F.push("</"+B+">")):F.push("/>"),F.join("")}function v(b,l,k,F){return b.reduce(function(B,U){var C=c(l,k,F&&!B);switch(U.type){case"element":return B+C+A(U,l,k);case"comment":return B+C+T(U[l.commentKey],l);case"doctype":return B+C+S(U[l.doctypeKey],l);case"cdata":return B+(l.indentCdata?C:"")+_(U[l.cdataKey],l);case"text":return B+(l.indentText?C:"")+I(U[l.textKey],l);case"instruction":var Q={};return Q[U[l.nameKey]]=U[l.attributesKey]?U:U[l.instructionKey],B+(l.indentInstruction?C:"")+g(Q,l,k)}},"")}function R(b,l,k){var F;for(F in b)if(b.hasOwnProperty(F))switch(F){case l.parentKey:case l.attributesKey:break;case l.textKey:if(l.indentText||k)return!0;break;case l.cdataKey:if(l.indentCdata||k)return!0;break;case l.instructionKey:if(l.indentInstruction||k)return!0;break;case l.doctypeKey:case l.commentKey:return!0;default:return!0}return!1}function u(b,l,k,F,B){r=b,i=l;var U="elementNameFn"in k?k.elementNameFn(l,b):l;if(typeof b>"u"||b===null||b==="")return"fullTagEmptyElementFn"in k&&k.fullTagEmptyElementFn(l,b)||k.fullTagEmptyElement?"<"+U+"></"+U+">":"<"+U+"/>";var C=[];if(l){if(C.push("<"+U),typeof b!="object")return C.push(">"+I(b,k)+"</"+U+">"),C.join("");b[k.attributesKey]&&C.push(h(b[k.attributesKey],k,F));var Q=R(b,k,!0)||b[k.attributesKey]&&b[k.attributesKey]["xml:space"]==="preserve";if(Q||("fullTagEmptyElementFn"in k?Q=k.fullTagEmptyElementFn(l,b):Q=k.fullTagEmptyElement),Q)C.push(">");else return C.push("/>"),C.join("")}return C.push(m(b,k,F+1,!1)),r=b,i=l,l&&C.push((B?c(k,F,!1):"")+"</"+U+">"),C.join("")}function m(b,l,k,F){var B,U,C,Q=[];for(U in b)if(b.hasOwnProperty(U))for(C=t(b[U])?b[U]:[b[U]],B=0;B<C.length;++B){switch(U){case l.declarationKey:Q.push(n(C[B],l,k));break;case l.instructionKey:Q.push((l.indentInstruction?c(l,k,F):"")+g(C[B],l,k));break;case l.attributesKey:case l.parentKey:break;case l.textKey:Q.push((l.indentText?c(l,k,F):"")+I(C[B],l));break;case l.cdataKey:Q.push((l.indentCdata?c(l,k,F):"")+_(C[B],l));break;case l.doctypeKey:Q.push(c(l,k,F)+S(C[B],l));break;case l.commentKey:Q.push(c(l,k,F)+T(C[B],l));break;default:Q.push(c(l,k,F)+u(C[B],U,l,k,R(C[B],l)))}F=F&&!Q.length}return Q.join("")}return gn=function(b,l){l=p(l);var k=[];return r=b,i="_root_",l.compact?k.push(m(b,l,0,!0)):(b[l.declarationKey]&&k.push(n(b[l.declarationKey],l,0)),b[l.elementsKey]&&b[l.elementsKey].length&&k.push(v(b[l.elementsKey],l,0,!k.length))),k.join("")},gn}var wn,Os;function pl(){if(Os)return wn;Os=1;var e=Ns();return wn=function(t,r){t instanceof Buffer&&(t=t.toString());var i=null;if(typeof t=="string")try{i=JSON.parse(t)}catch{throw new Error("The JSON structure is invalid")}else i=t;return e(i,r)},wn}var yn,Ds;function fl(){if(Ds)return yn;Ds=1;var e=Cs(),t=hl(),r=Ns(),i=pl();return yn={xml2js:e,xml2json:t,js2xml:r,json2xml:i},yn}var Ps=fl();const Xe=e=>{switch(e.type){case void 0:case"element":const t=new Fs(e.name,e.attributes),r=e.elements||[];for(const i of r){const p=Xe(i);p!==void 0&&t.push(p)}return t;case"text":return e.text;default:return}};class dl extends pt{}class Fs extends et{static fromXmlString(t){const r=Ps.xml2js(t,{compact:!1});return Xe(r)}constructor(t,r){super(t),r&&this.root.push(new dl(r))}push(t){this.root.push(t)}}class Bs extends et{constructor(t){super(""),this._attr=t}prepForXml(t){return{_attr:this._attr}}}class bn extends et{constructor(t,r){super(t),r&&(this.root=r.root)}}const At=e=>{if(isNaN(e))throw new Error(`Invalid value '${e}' specified. Must be an integer.`);return Math.floor(e)},Ce=e=>{const t=At(e);if(t<0)throw new Error(`Invalid value '${e}' specified. Must be a positive integer.`);return t},Ls=(e,t)=>{const r=t*2;if(e.length!==r||isNaN(+`0x${e}`))throw new Error(`Invalid hex value '${e}'. Expected ${r} digit hex value`);return e},vn=e=>Ls(e,1),qe=e=>{const t=e.slice(-2),r=e.substring(0,e.length-2);return`${Number(r)}${t}`},xn=e=>{const t=qe(e);if(parseFloat(t)<0)throw new Error(`Invalid value '${t}' specified. Expected a positive number.`);return t},ne=e=>{if(e==="auto")return e;const t=e.charAt(0)==="#"?e.substring(1):e;return Ls(t,3)},Lt=e=>typeof e=="string"?qe(e):At(e),Ms=e=>typeof e=="string"?xn(e):Ce(e),Tt=e=>typeof e=="string"?xn(e):Ce(e),js=e=>{const t=e.substring(0,e.length-1);return`${Number(t)}%`},_n=e=>typeof e=="number"?At(e):e.slice(-1)==="%"?js(e):qe(e),zs=Ce,Ws=Ce,Us=e=>e.toISOString();class ut extends et{constructor(t,r=!0){super(t),r!==!0&&this.root.push(new vt({val:r}))}}class Ye extends et{constructor(t,r){super(t),this.root.push(new vt({val:Ms(r)}))}}class Hs extends et{}class Yt extends et{constructor(t,r){super(t),this.root.push(new vt({val:r}))}}const de=(e,t)=>new wt({name:e,attributes:{value:{key:"w:val",value:t}}});class me extends et{constructor(t,r){super(t),this.root.push(new vt({val:r}))}}class Ks extends et{constructor(t,r){super(t),this.root.push(new vt({val:r}))}}class Qt extends et{constructor(t,r){super(t),this.root.push(r)}}class wt extends et{constructor({name:t,attributes:r,children:i}){super(t),r&&this.root.push(new Dt(r)),i&&this.root.push(...i)}}const It={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 Vs extends pt{constructor(){super(...arguments),rt(this,"xmlKeys",{val:"w:val"})}}class En extends et{constructor(t){super("w:jc"),this.root.push(new Vs({val:t}))}}class yt extends et{constructor(t,{color:r,size:i,space:p,style:c}){super(t),this.root.push(new ml({style:c,color:r===void 0?void 0:ne(r),size:i===void 0?void 0:zs(i),space:p===void 0?void 0:Ws(p)}))}}class ml extends pt{constructor(){super(...arguments),rt(this,"xmlKeys",{style:"w:val",color:"w:color",size:"w:sz",space:"w:space"})}}const Qe={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 Gs extends Ot{constructor(t){super("w:pBdr"),t.top&&this.root.push(new yt("w:top",t.top)),t.bottom&&this.root.push(new yt("w:bottom",t.bottom)),t.left&&this.root.push(new yt("w:left",t.left)),t.right&&this.root.push(new yt("w:right",t.right))}}class Zs extends et{constructor(){super("w:pBdr");const t=new yt("w:bottom",{color:"auto",space:1,style:Qe.SINGLE,size:6});this.root.push(t)}}class Xs extends et{constructor({start:t,end:r,left:i,right:p,hanging:c,firstLine:h}){super("w:ind"),this.root.push(new Dt({start:{key:"w:start",value:t===void 0?void 0:Lt(t)},end:{key:"w:end",value:r===void 0?void 0:Lt(r)},left:{key:"w:left",value:i===void 0?void 0:Lt(i)},right:{key:"w:right",value:p===void 0?void 0:Lt(p)},hanging:{key:"w:hanging",value:c===void 0?void 0:Tt(c)},firstLine:{key:"w:firstLine",value:h===void 0?void 0:Tt(h)}}))}}let qs=class extends et{constructor(){super("w:br")}};const Tn={BEGIN:"begin",END:"end",SEPARATE:"separate"};class An extends pt{constructor(){super(...arguments),rt(this,"xmlKeys",{type:"w:fldCharType",dirty:"w:dirty"})}}class ie extends et{constructor(t){super("w:fldChar"),this.root.push(new An({type:Tn.BEGIN,dirty:t}))}}class oe extends et{constructor(t){super("w:fldChar"),this.root.push(new An({type:Tn.SEPARATE,dirty:t}))}}class se extends et{constructor(t){super("w:fldChar"),this.root.push(new An({type:Tn.END,dirty:t}))}}const Rt={DEFAULT:"default",PRESERVE:"preserve"};class Mt extends pt{constructor(){super(...arguments),rt(this,"xmlKeys",{space:"xml:space"})}}class gl extends et{constructor(){super("w:instrText"),this.root.push(new Mt({space:Rt.PRESERVE})),this.root.push("PAGE")}}class wl extends et{constructor(){super("w:instrText"),this.root.push(new Mt({space:Rt.PRESERVE})),this.root.push("NUMPAGES")}}class yl extends et{constructor(){super("w:instrText"),this.root.push(new Mt({space:Rt.PRESERVE})),this.root.push("SECTIONPAGES")}}class bl extends et{constructor(){super("w:instrText"),this.root.push(new Mt({space:Rt.PRESERVE})),this.root.push("SECTION")}}class vl extends pt{constructor(){super(...arguments),rt(this,"xmlKeys",{fill:"w:fill",color:"w:color",type:"w:val"})}}class Ie extends et{constructor({fill:t,color:r,type:i}){super("w:shd"),this.root.push(new vl({fill:t===void 0?void 0:ne(t),color:r===void 0?void 0:ne(r),type:i}))}}const xl={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 kn extends pt{constructor(){super(...arguments),rt(this,"xmlKeys",{id:"w:id",author:"w:author",date:"w:date"})}}const Ys={DOT:"dot"};class Qs extends et{constructor(t){super("w:em"),this.root.push(new vt({val:t}))}}class $s extends Qs{constructor(t=Ys.DOT){super(t)}}class _l extends et{constructor(t){super("w:spacing"),this.root.push(new vt({val:Lt(t)}))}}class El extends et{constructor(t){super("w:color"),this.root.push(new vt({val:ne(t)}))}}class Tl extends et{constructor(t){super("w:highlight"),this.root.push(new vt({val:t}))}}class Al extends et{constructor(t){super("w:highlightCs"),this.root.push(new vt({val:t}))}}const kl=e=>new wt({name:"w:lang",attributes:{value:{key:"w:val",value:e.value},eastAsia:{key:"w:eastAsia",value:e.eastAsia},bidirectional:{key:"w:bidi",value:e.bidirectional}}});class Js extends pt{constructor(){super(...arguments),rt(this,"xmlKeys",{ascii:"w:ascii",cs:"w:cs",eastAsia:"w:eastAsia",hAnsi:"w:hAnsi",hint:"w:hint"})}}class $e extends et{constructor(t,r){if(super("w:rFonts"),typeof t=="string"){const i=t;this.root.push(new Js({ascii:i,cs:i,eastAsia:i,hAnsi:i,hint:r}))}else{const i=t;this.root.push(new Js(i))}}}let ta=class extends et{constructor(e){super("w:vertAlign"),this.root.push(new vt({val:e}))}};class Sl extends ta{constructor(){super("superscript")}}class Cl extends ta{constructor(){super("subscript")}}const Sn={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 ea extends et{constructor(t=Sn.SINGLE,r){super("w:u"),this.root.push(new vt({val:t,color:r===void 0?void 0:ne(r)}))}}class Gt extends Ot{constructor(t){var r,i;if(super("w:rPr"),!t)return;t.noProof!==void 0&&this.push(new ut("w:noProof",t.noProof)),t.bold!==void 0&&this.push(new ut("w:b",t.bold)),(t.boldComplexScript===void 0&&t.bold!==void 0||t.boldComplexScript)&&this.push(new ut("w:bCs",(r=t.boldComplexScript)!=null?r:t.bold)),t.italics!==void 0&&this.push(new ut("w:i",t.italics)),(t.italicsComplexScript===void 0&&t.italics!==void 0||t.italicsComplexScript)&&this.push(new ut("w:iCs",(i=t.italicsComplexScript)!=null?i:t.italics)),t.underline&&this.push(new ea(t.underline.type,t.underline.color)),t.effect&&this.push(new Yt("w:effect",t.effect)),t.emphasisMark&&this.push(new $s(t.emphasisMark.type)),t.color&&this.push(new El(t.color)),t.kern&&this.push(new Ye("w:kern",t.kern)),t.position&&this.push(new Yt("w:position",t.position)),t.size!==void 0&&this.push(new Ye("w:sz",t.size));const p=t.sizeComplexScript===void 0||t.sizeComplexScript===!0?t.size:t.sizeComplexScript;p&&this.push(new Ye("w:szCs",p)),t.rightToLeft!==void 0&&this.push(new ut("w:rtl",t.rightToLeft)),t.smallCaps!==void 0?this.push(new ut("w:smallCaps",t.smallCaps)):t.allCaps!==void 0&&this.push(new ut("w:caps",t.allCaps)),t.strike!==void 0&&this.push(new ut("w:strike",t.strike)),t.doubleStrike!==void 0&&this.push(new ut("w:dstrike",t.doubleStrike)),t.subScript&&this.push(new Cl),t.superScript&&this.push(new Sl),t.style&&this.push(new Yt("w:rStyle",t.style)),t.font&&(typeof t.font=="string"?this.push(new $e(t.font)):"name"in t.font?this.push(new $e(t.font.name,t.font.hint)):this.push(new $e(t.font))),t.highlight&&this.push(new Tl(t.highlight));const c=t.highlightComplexScript===void 0||t.highlightComplexScript===!0?t.highlight:t.highlightComplexScript;c&&this.push(new Al(c)),t.characterSpacing&&this.push(new _l(t.characterSpacing)),t.emboss!==void 0&&this.push(new ut("w:emboss",t.emboss)),t.imprint!==void 0&&this.push(new ut("w:imprint",t.imprint)),t.shading&&this.push(new Ie(t.shading)),t.revision&&this.push(new ra(t.revision)),t.border&&this.push(new yt("w:bdr",t.border)),t.snapToGrid!==void 0&&this.push(new ut("w:snapToGrid",t.snapToGrid)),t.vanish&&this.push(new ut("w:vanish",t.vanish)),t.specVanish&&this.push(new ut("w:specVanish",t.vanish)),t.scale!==void 0&&this.push(new me("w:w",t.scale)),t.language&&this.push(kl(t.language)),t.math&&this.push(new ut("w:oMath",t.math))}push(t){this.root.push(t)}}class ra extends et{constructor(t){super("w:rPrChange"),this.root.push(new kn({id:t.id,author:t.author,date:t.date})),this.addChildElement(new Gt(t))}}class na extends et{constructor(t){var r;super("w:t"),typeof t=="string"?(this.root.push(new Mt({space:Rt.PRESERVE})),this.root.push(t)):(this.root.push(new Mt({space:(r=t.space)!=null?r:Rt.DEFAULT})),this.root.push(t.text))}}const $t={CURRENT:"CURRENT",TOTAL_PAGES:"TOTAL_PAGES",TOTAL_PAGES_IN_SECTION:"TOTAL_PAGES_IN_SECTION",CURRENT_SECTION:"SECTION"};class ae extends et{constructor(t){if(super("w:r"),rt(this,"properties"),this.properties=new Gt(t),this.root.push(this.properties),t.break)for(let r=0;r<t.break;r++)this.root.push(new qs);if(t.children)for(const r of t.children){if(typeof r=="string"){switch(r){case $t.CURRENT:this.root.push(new ie),this.root.push(new gl),this.root.push(new oe),this.root.push(new se);break;case $t.TOTAL_PAGES:this.root.push(new ie),this.root.push(new wl),this.root.push(new oe),this.root.push(new se);break;case $t.TOTAL_PAGES_IN_SECTION:this.root.push(new ie),this.root.push(new yl),this.root.push(new oe),this.root.push(new se);break;case $t.CURRENT_SECTION:this.root.push(new ie),this.root.push(new bl),this.root.push(new oe),this.root.push(new se);break;default:this.root.push(new na(r));break}continue}this.root.push(r)}else t.text!==void 0&&this.root.push(new na(t.text))}}class Je extends ae{constructor(t){super(typeof t=="string"?{text:t}:t)}}var ia={},bt={},Cn,oa;function Re(){if(oa)return Cn;oa=1,Cn=e;function e(t,r){if(!t)throw new Error(r||"Assertion failed")}return e.equal=function(t,r,i){if(t!=r)throw new Error(i||"Assertion failed: "+t+" != "+r)},Cn}var sa;function jt(){if(sa)return bt;sa=1;var e=Re(),t=qt();bt.inherits=t;function r(N,j){return(N.charCodeAt(j)&64512)!==55296||j<0||j+1>=N.length?!1:(N.charCodeAt(j+1)&64512)===56320}function i(N,j){if(Array.isArray(N))return N.slice();if(!N)return[];var y=[];if(typeof N=="string")if(j){if(j==="hex")for(N=N.replace(/[^a-z0-9]+/ig,""),N.length%2!==0&&(N="0"+N),$=0;$<N.length;$+=2)y.push(parseInt(N[$]+N[$+1],16))}else for(var W=0,$=0;$<N.length;$++){var K=N.charCodeAt($);K<128?y[W++]=K:K<2048?(y[W++]=K>>6|192,y[W++]=K&63|128):r(N,$)?(K=65536+((K&1023)<<10)+(N.charCodeAt(++$)&1023),y[W++]=K>>18|240,y[W++]=K>>12&63|128,y[W++]=K>>6&63|128,y[W++]=K&63|128):(y[W++]=K>>12|224,y[W++]=K>>6&63|128,y[W++]=K&63|128)}else for($=0;$<N.length;$++)y[$]=N[$]|0;return y}bt.toArray=i;function p(N){for(var j="",y=0;y<N.length;y++)j+=n(N[y].toString(16));return j}bt.toHex=p;function c(N){var j=N>>>24|N>>>8&65280|N<<8&16711680|(N&255)<<24;return j>>>0}bt.htonl=c;function h(N,j){for(var y="",W=0;W<N.length;W++){var $=N[W];j==="little"&&($=c($)),y+=g($.toString(16))}return y}bt.toHex32=h;function n(N){return N.length===1?"0"+N:N}bt.zero2=n;function g(N){return N.length===7?"0"+N:N.length===6?"00"+N:N.length===5?"000"+N:N.length===4?"0000"+N:N.length===3?"00000"+N:N.length===2?"000000"+N:N.length===1?"0000000"+N:N}bt.zero8=g;function T(N,j,y,W){var $=y-j;e($%4===0);for(var K=new Array($/4),it=0,J=j;it<K.length;it++,J+=4){var lt;W==="big"?lt=N[J]<<24|N[J+1]<<16|N[J+2]<<8|N[J+3]:lt=N[J+3]<<24|N[J+2]<<16|N[J+1]<<8|N[J],K[it]=lt>>>0}return K}bt.join32=T;function _(N,j){for(var y=new Array(N.length*4),W=0,$=0;W<N.length;W++,$+=4){var K=N[W];j==="big"?(y[$]=K>>>24,y[$+1]=K>>>16&255,y[$+2]=K>>>8&255,y[$+3]=K&255):(y[$+3]=K>>>24,y[$+2]=K>>>16&255,y[$+1]=K>>>8&255,y[$]=K&255)}return y}bt.split32=_;function S(N,j){return N>>>j|N<<32-j}bt.rotr32=S;function I(N,j){return N<<j|N>>>32-j}bt.rotl32=I;function d(N,j){return N+j>>>0}bt.sum32=d;function A(N,j,y){return N+j+y>>>0}bt.sum32_3=A;function v(N,j,y,W){return N+j+y+W>>>0}bt.sum32_4=v;function R(N,j,y,W,$){return N+j+y+W+$>>>0}bt.sum32_5=R;function u(N,j,y,W){var $=N[j],K=N[j+1],it=W+K>>>0,J=(it<W?1:0)+y+$;N[j]=J>>>0,N[j+1]=it}bt.sum64=u;function m(N,j,y,W){var $=j+W>>>0,K=($<j?1:0)+N+y;return K>>>0}bt.sum64_hi=m;function b(N,j,y,W){var $=j+W;return $>>>0}bt.sum64_lo=b;function l(N,j,y,W,$,K,it,J){var lt=0,X=j;X=X+W>>>0,lt+=X<j?1:0,X=X+K>>>0,lt+=X<K?1:0,X=X+J>>>0,lt+=X<J?1:0;var D=N+y+$+it+lt;return D>>>0}bt.sum64_4_hi=l;function k(N,j,y,W,$,K,it,J){var lt=j+W+K+J;return lt>>>0}bt.sum64_4_lo=k;function F(N,j,y,W,$,K,it,J,lt,X){var D=0,Z=j;Z=Z+W>>>0,D+=Z<j?1:0,Z=Z+K>>>0,D+=Z<K?1:0,Z=Z+J>>>0,D+=Z<J?1:0,Z=Z+X>>>0,D+=Z<X?1:0;var Y=N+y+$+it+lt+D;return Y>>>0}bt.sum64_5_hi=F;function B(N,j,y,W,$,K,it,J,lt,X){var D=j+W+K+J+X;return D>>>0}bt.sum64_5_lo=B;function U(N,j,y){var W=j<<32-y|N>>>y;return W>>>0}bt.rotr64_hi=U;function C(N,j,y){var W=N<<32-y|j>>>y;return W>>>0}bt.rotr64_lo=C;function Q(N,j,y){return N>>>y}bt.shr64_hi=Q;function at(N,j,y){var W=N<<32-y|j>>>y;return W>>>0}return bt.shr64_lo=at,bt}var In={},aa;function Ne(){if(aa)return In;aa=1;var e=jt(),t=Re();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 In.BlockHash=r,r.prototype.update=function(i,p){if(i=e.toArray(i,p),this.pending?this.pending=this.pending.concat(i):this.pending=i,this.pendingTotal+=i.length,this.pending.length>=this._delta8){i=this.pending;var c=i.length%this._delta8;this.pending=i.slice(i.length-c,i.length),this.pending.length===0&&(this.pending=null),i=e.join32(i,0,i.length-c,this.endian);for(var h=0;h<i.length;h+=this._delta32)this._update(i,h,h+this._delta32)}return this},r.prototype.digest=function(i){return this.update(this._pad()),t(this.pending===null),this._digest(i)},r.prototype._pad=function(){var i=this.pendingTotal,p=this._delta8,c=p-(i+this.padLength)%p,h=new Array(c+this.padLength);h[0]=128;for(var n=1;n<c;n++)h[n]=0;if(i<<=3,this.endian==="big"){for(var g=8;g<this.padLength;g++)h[n++]=0;h[n++]=0,h[n++]=0,h[n++]=0,h[n++]=0,h[n++]=i>>>24&255,h[n++]=i>>>16&255,h[n++]=i>>>8&255,h[n++]=i&255}else for(h[n++]=i&255,h[n++]=i>>>8&255,h[n++]=i>>>16&255,h[n++]=i>>>24&255,h[n++]=0,h[n++]=0,h[n++]=0,h[n++]=0,g=8;g<this.padLength;g++)h[n++]=0;return h},In}var ge={},zt={},ua;function ca(){if(ua)return zt;ua=1;var e=jt(),t=e.rotr32;function r(_,S,I,d){if(_===0)return i(S,I,d);if(_===1||_===3)return c(S,I,d);if(_===2)return p(S,I,d)}zt.ft_1=r;function i(_,S,I){return _&S^~_&I}zt.ch32=i;function p(_,S,I){return _&S^_&I^S&I}zt.maj32=p;function c(_,S,I){return _^S^I}zt.p32=c;function h(_){return t(_,2)^t(_,13)^t(_,22)}zt.s0_256=h;function n(_){return t(_,6)^t(_,11)^t(_,25)}zt.s1_256=n;function g(_){return t(_,7)^t(_,18)^_>>>3}zt.g0_256=g;function T(_){return t(_,17)^t(_,19)^_>>>10}return zt.g1_256=T,zt}var Rn,la;function Il(){if(la)return Rn;la=1;var e=jt(),t=Ne(),r=ca(),i=e.rotl32,p=e.sum32,c=e.sum32_5,h=r.ft_1,n=t.BlockHash,g=[1518500249,1859775393,2400959708,3395469782];function T(){if(!(this instanceof T))return new T;n.call(this),this.h=[1732584193,4023233417,2562383102,271733878,3285377520],this.W=new Array(80)}return e.inherits(T,n),Rn=T,T.blockSize=512,T.outSize=160,T.hmacStrength=80,T.padLength=64,T.prototype._update=function(_,S){for(var I=this.W,d=0;d<16;d++)I[d]=_[S+d];for(;d<I.length;d++)I[d]=i(I[d-3]^I[d-8]^I[d-14]^I[d-16],1);var A=this.h[0],v=this.h[1],R=this.h[2],u=this.h[3],m=this.h[4];for(d=0;d<I.length;d++){var b=~~(d/20),l=c(i(A,5),h(b,v,R,u),m,I[d],g[b]);m=u,u=R,R=i(v,30),v=A,A=l}this.h[0]=p(this.h[0],A),this.h[1]=p(this.h[1],v),this.h[2]=p(this.h[2],R),this.h[3]=p(this.h[3],u),this.h[4]=p(this.h[4],m)},T.prototype._digest=function(_){return _==="hex"?e.toHex32(this.h,"big"):e.split32(this.h,"big")},Rn}var Nn,ha;function pa(){if(ha)return Nn;ha=1;var e=jt(),t=Ne(),r=ca(),i=Re(),p=e.sum32,c=e.sum32_4,h=e.sum32_5,n=r.ch32,g=r.maj32,T=r.s0_256,_=r.s1_256,S=r.g0_256,I=r.g1_256,d=t.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;d.call(this),this.h=[1779033703,3144134277,1013904242,2773480762,1359893119,2600822924,528734635,1541459225],this.k=A,this.W=new Array(64)}return e.inherits(v,d),Nn=v,v.blockSize=512,v.outSize=256,v.hmacStrength=192,v.padLength=64,v.prototype._update=function(R,u){for(var m=this.W,b=0;b<16;b++)m[b]=R[u+b];for(;b<m.length;b++)m[b]=c(I(m[b-2]),m[b-7],S(m[b-15]),m[b-16]);var l=this.h[0],k=this.h[1],F=this.h[2],B=this.h[3],U=this.h[4],C=this.h[5],Q=this.h[6],at=this.h[7];for(i(this.k.length===m.length),b=0;b<m.length;b++){var N=h(at,_(U),n(U,C,Q),this.k[b],m[b]),j=p(T(l),g(l,k,F));at=Q,Q=C,C=U,U=p(B,N),B=F,F=k,k=l,l=p(N,j)}this.h[0]=p(this.h[0],l),this.h[1]=p(this.h[1],k),this.h[2]=p(this.h[2],F),this.h[3]=p(this.h[3],B),this.h[4]=p(this.h[4],U),this.h[5]=p(this.h[5],C),this.h[6]=p(this.h[6],Q),this.h[7]=p(this.h[7],at)},v.prototype._digest=function(R){return R==="hex"?e.toHex32(this.h,"big"):e.split32(this.h,"big")},Nn}var On,fa;function Rl(){if(fa)return On;fa=1;var e=jt(),t=pa();function r(){if(!(this instanceof r))return new r;t.call(this),this.h=[3238371032,914150663,812702999,4144912697,4290775857,1750603025,1694076839,3204075428]}return e.inherits(r,t),On=r,r.blockSize=512,r.outSize=224,r.hmacStrength=192,r.padLength=64,r.prototype._digest=function(i){return i==="hex"?e.toHex32(this.h.slice(0,7),"big"):e.split32(this.h.slice(0,7),"big")},On}var Dn,da;function ma(){if(da)return Dn;da=1;var e=jt(),t=Ne(),r=Re(),i=e.rotr64_hi,p=e.rotr64_lo,c=e.shr64_hi,h=e.shr64_lo,n=e.sum64,g=e.sum64_hi,T=e.sum64_lo,_=e.sum64_4_hi,S=e.sum64_4_lo,I=e.sum64_5_hi,d=e.sum64_5_lo,A=t.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 R(){if(!(this instanceof R))return new R;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)}e.inherits(R,A),Dn=R,R.blockSize=1024,R.outSize=512,R.hmacStrength=192,R.padLength=128,R.prototype._prepareBlock=function(j,y){for(var W=this.W,$=0;$<32;$++)W[$]=j[y+$];for(;$<W.length;$+=2){var K=at(W[$-4],W[$-3]),it=N(W[$-4],W[$-3]),J=W[$-14],lt=W[$-13],X=C(W[$-30],W[$-29]),D=Q(W[$-30],W[$-29]),Z=W[$-32],Y=W[$-31];W[$]=_(K,it,J,lt,X,D,Z,Y),W[$+1]=S(K,it,J,lt,X,D,Z,Y)}},R.prototype._update=function(j,y){this._prepareBlock(j,y);var W=this.W,$=this.h[0],K=this.h[1],it=this.h[2],J=this.h[3],lt=this.h[4],X=this.h[5],D=this.h[6],Z=this.h[7],Y=this.h[8],nt=this.h[9],G=this.h[10],E=this.h[11],w=this.h[12],z=this.h[13],L=this.h[14],O=this.h[15];r(this.k.length===W.length);for(var P=0;P<W.length;P+=2){var tt=L,f=O,q=B(Y,nt),o=U(Y,nt),s=u(Y,nt,G,E,w),a=m(Y,nt,G,E,w,z),x=this.k[P],M=this.k[P+1],V=W[P],H=W[P+1],ot=I(tt,f,q,o,s,a,x,M,V,H),ct=d(tt,f,q,o,s,a,x,M,V,H);tt=k($,K),f=F($,K),q=b($,K,it,J,lt),o=l($,K,it,J,lt,X);var st=g(tt,f,q,o),ht=T(tt,f,q,o);L=w,O=z,w=G,z=E,G=Y,E=nt,Y=g(D,Z,ot,ct),nt=T(Z,Z,ot,ct),D=lt,Z=X,lt=it,X=J,it=$,J=K,$=g(ot,ct,st,ht),K=T(ot,ct,st,ht)}n(this.h,0,$,K),n(this.h,2,it,J),n(this.h,4,lt,X),n(this.h,6,D,Z),n(this.h,8,Y,nt),n(this.h,10,G,E),n(this.h,12,w,z),n(this.h,14,L,O)},R.prototype._digest=function(j){return j==="hex"?e.toHex32(this.h,"big"):e.split32(this.h,"big")};function u(j,y,W,$,K){var it=j&W^~j&K;return it<0&&(it+=4294967296),it}function m(j,y,W,$,K,it){var J=y&$^~y&it;return J<0&&(J+=4294967296),J}function b(j,y,W,$,K){var it=j&W^j&K^W&K;return it<0&&(it+=4294967296),it}function l(j,y,W,$,K,it){var J=y&$^y&it^$&it;return J<0&&(J+=4294967296),J}function k(j,y){var W=i(j,y,28),$=i(y,j,2),K=i(y,j,7),it=W^$^K;return it<0&&(it+=4294967296),it}function F(j,y){var W=p(j,y,28),$=p(y,j,2),K=p(y,j,7),it=W^$^K;return it<0&&(it+=4294967296),it}function B(j,y){var W=i(j,y,14),$=i(j,y,18),K=i(y,j,9),it=W^$^K;return it<0&&(it+=4294967296),it}function U(j,y){var W=p(j,y,14),$=p(j,y,18),K=p(y,j,9),it=W^$^K;return it<0&&(it+=4294967296),it}function C(j,y){var W=i(j,y,1),$=i(j,y,8),K=c(j,y,7),it=W^$^K;return it<0&&(it+=4294967296),it}function Q(j,y){var W=p(j,y,1),$=p(j,y,8),K=h(j,y,7),it=W^$^K;return it<0&&(it+=4294967296),it}function at(j,y){var W=i(j,y,19),$=i(y,j,29),K=c(j,y,6),it=W^$^K;return it<0&&(it+=4294967296),it}function N(j,y){var W=p(j,y,19),$=p(y,j,29),K=h(j,y,6),it=W^$^K;return it<0&&(it+=4294967296),it}return Dn}var Pn,ga;function Nl(){if(ga)return Pn;ga=1;var e=jt(),t=ma();function r(){if(!(this instanceof r))return new r;t.call(this),this.h=[3418070365,3238371032,1654270250,914150663,2438529370,812702999,355462360,4144912697,1731405415,4290775857,2394180231,1750603025,3675008525,1694076839,1203062813,3204075428]}return e.inherits(r,t),Pn=r,r.blockSize=1024,r.outSize=384,r.hmacStrength=192,r.padLength=128,r.prototype._digest=function(i){return i==="hex"?e.toHex32(this.h.slice(0,12),"big"):e.split32(this.h.slice(0,12),"big")},Pn}var wa;function Ol(){return wa||(wa=1,ge.sha1=Il(),ge.sha224=Rl(),ge.sha256=pa(),ge.sha384=Nl(),ge.sha512=ma()),ge}var Fn={},ya;function Dl(){if(ya)return Fn;ya=1;var e=jt(),t=Ne(),r=e.rotl32,i=e.sum32,p=e.sum32_3,c=e.sum32_4,h=t.BlockHash;function n(){if(!(this instanceof n))return new n;h.call(this),this.h=[1732584193,4023233417,2562383102,271733878,3285377520],this.endian="little"}e.inherits(n,h),Fn.ripemd160=n,n.blockSize=512,n.outSize=160,n.hmacStrength=192,n.padLength=64,n.prototype._update=function(v,R){for(var u=this.h[0],m=this.h[1],b=this.h[2],l=this.h[3],k=this.h[4],F=u,B=m,U=b,C=l,Q=k,at=0;at<80;at++){var N=i(r(c(u,g(at,m,b,l),v[S[at]+R],T(at)),d[at]),k);u=k,k=l,l=r(b,10),b=m,m=N,N=i(r(c(F,g(79-at,B,U,C),v[I[at]+R],_(at)),A[at]),Q),F=Q,Q=C,C=r(U,10),U=B,B=N}N=p(this.h[1],b,C),this.h[1]=p(this.h[2],l,Q),this.h[2]=p(this.h[3],k,F),this.h[3]=p(this.h[4],u,B),this.h[4]=p(this.h[0],m,U),this.h[0]=N},n.prototype._digest=function(v){return v==="hex"?e.toHex32(this.h,"little"):e.split32(this.h,"little")};function g(v,R,u,m){return v<=15?R^u^m:v<=31?R&u|~R&m:v<=47?(R|~u)^m:v<=63?R&m|u&~m:R^(u|~m)}function T(v){return v<=15?0:v<=31?1518500249:v<=47?1859775393:v<=63?2400959708:2840853838}function _(v){return v<=15?1352829926:v<=31?1548603684:v<=47?1836072691:v<=63?2053994217:0}var S=[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],d=[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 Fn}var Bn,ba;function Pl(){if(ba)return Bn;ba=1;var e=jt(),t=Re();function r(i,p,c){if(!(this instanceof r))return new r(i,p,c);this.Hash=i,this.blockSize=i.blockSize/8,this.outSize=i.outSize/8,this.inner=null,this.outer=null,this._init(e.toArray(p,c))}return Bn=r,r.prototype._init=function(i){i.length>this.blockSize&&(i=new this.Hash().update(i).digest()),t(i.length<=this.blockSize);for(var p=i.length;p<this.blockSize;p++)i.push(0);for(p=0;p<i.length;p++)i[p]^=54;for(this.inner=new this.Hash().update(i),p=0;p<i.length;p++)i[p]^=106;this.outer=new this.Hash().update(i)},r.prototype.update=function(i,p){return this.inner.update(i,p),this},r.prototype.digest=function(i){return this.outer.update(this.inner.digest()),this.outer.digest(i)},Bn}var va;function Fl(){return va||(va=1,function(e){var t=e;t.utils=jt(),t.common=Ne(),t.sha=Ol(),t.ripemd=Dl(),t.hmac=Pl(),t.sha1=t.sha.sha1,t.sha256=t.sha.sha256,t.sha224=t.sha.sha224,t.sha384=t.sha.sha384,t.sha512=t.sha.sha512,t.ripemd160=t.ripemd.ripemd160}(ia)),ia}var Bl=Fl();const Ll=hr(Bl);let Ml="useandom-26T198340PX75pxJACKVERYMINDBUSHWOLF_GQZbfghjklqvwyzrict",jl=(e,t=21)=>(r=t)=>{let i="",p=r|0;for(;p--;)i+=e[Math.random()*e.length|0];return i},zl=(e=21)=>{let t="",r=e|0;for(;r--;)t+=Ml[Math.random()*64|0];return t};const St=e=>Math.floor(e*72*20),Oe=(e=0)=>{let t=e;return()=>++t},xa=()=>Oe(),_a=()=>Oe(1),Ea=()=>Oe(),Ta=()=>Oe(),Ln=()=>zl().toLowerCase(),Mn=e=>Ll.sha1().update(e instanceof ArrayBuffer?new Uint8Array(e):e).digest("hex"),De=e=>jl("1234567890abcdef",e)(),Aa=()=>`${De(8)}-${De(4)}-${De(4)}-${De(4)}-${De(12)}`,ka={PAGE:"page"},Sa={PAGE:"page"},Ca=()=>new wt({name:"wp:simplePos",attributes:{x:{key:"x",value:0},y:{key:"y",value:0}}}),Ia=e=>new wt({name:"wp:align",children:[e]}),Ra=e=>new wt({name:"wp:posOffset",children:[e.toString()]}),Na=({relative:e,align:t,offset:r})=>new wt({name:"wp:positionH",attributes:{relativeFrom:{key:"relativeFrom",value:e??ka.PAGE}},children:[(()=>{if(t)return Ia(t);if(r!==void 0)return Ra(r);throw new Error("There is no configuration provided for floating position (Align or offset)")})()]}),Oa=({relative:e,align:t,offset:r})=>new wt({name:"wp:positionV",attributes:{relativeFrom:{key:"relativeFrom",value:e??Sa.PAGE}},children:[(()=>{if(t)return Ia(t);if(r!==void 0)return Ra(r);throw new Error("There is no configuration provided for floating position (Align or offset)")})()]});class Wl extends pt{constructor(){super(...arguments),rt(this,"xmlKeys",{uri:"uri"})}}const Ul=e=>new wt({name:"asvg:svgBlip",attributes:{asvg:{key:"xmlns:asvg",value:"http://schemas.microsoft.com/office/drawing/2016/SVG/main"},embed:{key:"r:embed",value:`rId{${e.fileName}}`}}}),Hl=e=>new wt({name:"a:ext",attributes:{uri:{key:"uri",value:"{96DAC541-7B7A-43D3-8B79-37D633B846F1}"}},children:[Ul(e)]}),Kl=e=>new wt({name:"a:extLst",children:[Hl(e)]}),Vl=e=>new wt({name:"a:blip",attributes:{embed:{key:"r:embed",value:`rId{${e.type==="svg"?e.fallback.fileName:e.fileName}}`},cstate:{key:"cstate",value:"none"}},children:e.type==="svg"?[Kl(e)]:[]});class Gl extends et{constructor(){super("a:srcRect")}}class Zl extends et{constructor(){super("a:fillRect")}}class Xl extends et{constructor(){super("a:stretch"),this.root.push(new Zl)}}class ql extends et{constructor(t){super("pic:blipFill"),this.root.push(Vl(t)),this.root.push(new Gl),this.root.push(new Xl)}}class Yl extends pt{constructor(){super(...arguments),rt(this,"xmlKeys",{noChangeAspect:"noChangeAspect",noChangeArrowheads:"noChangeArrowheads"})}}class Ql extends et{constructor(){super("a:picLocks"),this.root.push(new Yl({noChangeAspect:1,noChangeArrowheads:1}))}}class $l extends et{constructor(){super("pic:cNvPicPr"),this.root.push(new Ql)}}const Da=(e,t)=>new wt({name:"a:hlinkClick",attributes:Ht(mt({},t?{xmlns:{key:"xmlns:a",value:"http://schemas.openxmlformats.org/drawingml/2006/main"}}:{}),{id:{key:"r:id",value:`rId${e}`}})});class Jl extends pt{constructor(){super(...arguments),rt(this,"xmlKeys",{id:"id",name:"name",descr:"descr"})}}class th extends et{constructor(){super("pic:cNvPr"),this.root.push(new Jl({id:0,name:"",descr:""}))}prepForXml(t){for(let r=t.stack.length-1;r>=0;r--){const i=t.stack[r];if(i instanceof Be){this.root.push(Da(i.linkId,!1));break}}return super.prepForXml(t)}}class eh extends et{constructor(){super("pic:nvPicPr"),this.root.push(new th),this.root.push(new $l)}}class rh extends pt{constructor(){super(...arguments),rt(this,"xmlKeys",{xmlns:"xmlns:pic"})}}class nh extends pt{constructor(){super(...arguments),rt(this,"xmlKeys",{cx:"cx",cy:"cy"})}}class ih extends et{constructor(t,r){super("a:ext"),rt(this,"attributes"),this.attributes=new nh({cx:t,cy:r}),this.root.push(this.attributes)}}class oh extends pt{constructor(){super(...arguments),rt(this,"xmlKeys",{x:"x",y:"y"})}}class sh extends et{constructor(){super("a:off"),this.root.push(new oh({x:0,y:0}))}}class ah extends pt{constructor(){super(...arguments),rt(this,"xmlKeys",{flipVertical:"flipV",flipHorizontal:"flipH",rotation:"rot"})}}class uh extends et{constructor(t){var r,i;super("a:xfrm"),rt(this,"extents"),this.root.push(new ah({flipVertical:(r=t.flip)==null?void 0:r.vertical,flipHorizontal:(i=t.flip)==null?void 0:i.horizontal,rotation:t.rotation})),this.extents=new ih(t.emus.x,t.emus.y),this.root.push(new sh),this.root.push(this.extents)}}const Pa=()=>new wt({name:"a:noFill"}),ch=e=>new wt({name:"a:srgbClr",attributes:{value:{key:"val",value:e.value}}}),lh=e=>new wt({name:"a:schemeClr",attributes:{value:{key:"val",value:e.value}}}),Fa=e=>new wt({name:"a:solidFill",children:[e.type==="rgb"?ch(e):lh(e)]}),hh=e=>new wt({name:"a:ln",attributes:{width:{key:"w",value:e.width},cap:{key:"cap",value:e.cap},compoundLine:{key:"cmpd",value:e.compoundLine},align:{key:"algn",value:e.align}},children:[e.type==="noFill"?Pa():e.solidFillType==="rgb"?Fa({type:"rgb",value:e.value}):Fa({type:"scheme",value:e.value})]});class ph extends et{constructor(){super("a:avLst")}}class fh extends pt{constructor(){super(...arguments),rt(this,"xmlKeys",{prst:"prst"})}}class dh extends et{constructor(){super("a:prstGeom"),this.root.push(new fh({prst:"rect"})),this.root.push(new ph)}}class mh extends pt{constructor(){super(...arguments),rt(this,"xmlKeys",{bwMode:"bwMode"})}}class gh extends et{constructor({outline:t,transform:r}){super("pic:spPr"),rt(this,"form"),this.root.push(new mh({bwMode:"auto"})),this.form=new uh(r),this.root.push(this.form),this.root.push(new dh),t&&(this.root.push(Pa()),this.root.push(hh(t)))}}class wh extends et{constructor({mediaData:t,transform:r,outline:i}){super("pic:pic"),this.root.push(new rh({xmlns:"http://schemas.openxmlformats.org/drawingml/2006/picture"})),this.root.push(new eh),this.root.push(new ql(t)),this.root.push(new gh({transform:r,outline:i}))}}class yh extends et{constructor({mediaData:t,transform:r,outline:i}){super("a:graphicData"),rt(this,"pic"),this.root.push(new Wl({uri:"http://schemas.openxmlformats.org/drawingml/2006/picture"})),this.pic=new wh({mediaData:t,transform:r,outline:i}),this.root.push(this.pic)}}class bh extends pt{constructor(){super(...arguments),rt(this,"xmlKeys",{a:"xmlns:a"})}}class Ba extends et{constructor({mediaData:t,transform:r,outline:i}){super("a:graphic"),rt(this,"data"),this.root.push(new bh({a:"http://schemas.openxmlformats.org/drawingml/2006/main"})),this.data=new yh({mediaData:t,transform:r,outline:i}),this.root.push(this.data)}}const Pe={NONE:0,SQUARE:1,TIGHT:2,TOP_AND_BOTTOM:3},La={BOTH_SIDES:"bothSides"};class jn extends et{constructor(){super("wp:wrapNone")}}class vh extends pt{constructor(){super(...arguments),rt(this,"xmlKeys",{distT:"distT",distB:"distB",distL:"distL",distR:"distR",wrapText:"wrapText"})}}class Ma extends et{constructor(t,r={top:0,bottom:0,left:0,right:0}){super("wp:wrapSquare"),this.root.push(new vh({wrapText:t.side||La.BOTH_SIDES,distT:r.top,distB:r.bottom,distL:r.left,distR:r.right}))}}class xh extends pt{constructor(){super(...arguments),rt(this,"xmlKeys",{distT:"distT",distB:"distB"})}}class ja extends et{constructor(t={top:0,bottom:0}){super("wp:wrapTight"),this.root.push(new xh({distT:t.top,distB:t.bottom}))}}class _h extends pt{constructor(){super(...arguments),rt(this,"xmlKeys",{distT:"distT",distB:"distB"})}}class za extends et{constructor(t={top:0,bottom:0}){super("wp:wrapTopAndBottom"),this.root.push(new _h({distT:t.top,distB:t.bottom}))}}class Wa extends et{constructor({name:t,description:r,title:i}={name:"",description:"",title:""}){super("wp:docPr"),rt(this,"docPropertiesUniqueNumericId",Ea());const p={id:{key:"id",value:this.docPropertiesUniqueNumericId()},name:{key:"name",value:t}};r!=null&&(p.description={key:"descr",value:r}),i!=null&&(p.title={key:"title",value:i}),this.root.push(new Dt(p))}prepForXml(t){for(let r=t.stack.length-1;r>=0;r--){const i=t.stack[r];if(i instanceof Be){this.root.push(Da(i.linkId,!0));break}}return super.prepForXml(t)}}const Ua=({top:e,right:t,bottom:r,left:i})=>new wt({name:"wp:effectExtent",attributes:{top:{key:"t",value:e},right:{key:"r",value:t},bottom:{key:"b",value:r},left:{key:"l",value:i}}}),Ha=({x:e,y:t})=>new wt({name:"wp:extent",attributes:{x:{key:"cx",value:e},y:{key:"cy",value:t}}});class Eh extends pt{constructor(){super(...arguments),rt(this,"xmlKeys",{xmlns:"xmlns:a",noChangeAspect:"noChangeAspect"})}}class Th extends et{constructor(){super("a:graphicFrameLocks"),this.root.push(new Eh({xmlns:"http://schemas.openxmlformats.org/drawingml/2006/main",noChangeAspect:1}))}}const Ka=()=>new wt({name:"wp:cNvGraphicFramePr",children:[new Th]});class Ah extends pt{constructor(){super(...arguments),rt(this,"xmlKeys",{distT:"distT",distB:"distB",distL:"distL",distR:"distR",allowOverlap:"allowOverlap",behindDoc:"behindDoc",layoutInCell:"layoutInCell",locked:"locked",relativeHeight:"relativeHeight",simplePos:"simplePos"})}}class kh extends et{constructor({mediaData:t,transform:r,drawingOptions:i}){super("wp:anchor");const p=mt({allowOverlap:!0,behindDocument:!1,lockAnchor:!1,layoutInCell:!0,verticalPosition:{},horizontalPosition:{}},i.floating);if(this.root.push(new Ah({distT:p.margins&&p.margins.top||0,distB:p.margins&&p.margins.bottom||0,distL:p.margins&&p.margins.left||0,distR:p.margins&&p.margins.right||0,simplePos:"0",allowOverlap:p.allowOverlap===!0?"1":"0",behindDoc:p.behindDocument===!0?"1":"0",locked:p.lockAnchor===!0?"1":"0",layoutInCell:p.layoutInCell===!0?"1":"0",relativeHeight:p.zIndex?p.zIndex:r.emus.y})),this.root.push(Ca()),this.root.push(Na(p.horizontalPosition)),this.root.push(Oa(p.verticalPosition)),this.root.push(Ha({x:r.emus.x,y:r.emus.y})),this.root.push(Ua({top:0,right:0,bottom:0,left:0})),i.floating!==void 0&&i.floating.wrap!==void 0)switch(i.floating.wrap.type){case Pe.SQUARE:this.root.push(new Ma(i.floating.wrap,i.floating.margins));break;case Pe.TIGHT:this.root.push(new ja(i.floating.margins));break;case Pe.TOP_AND_BOTTOM:this.root.push(new za(i.floating.margins));break;case Pe.NONE:default:this.root.push(new jn)}else this.root.push(new jn);this.root.push(new Wa(i.docProperties)),this.root.push(Ka()),this.root.push(new Ba({mediaData:t,transform:r,outline:i.outline}))}}const Sh=({mediaData:e,transform:t,docProperties:r,outline:i})=>{var p,c,h,n;return new wt({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:[Ha({x:t.emus.x,y:t.emus.y}),Ua(i?{top:((p=i.width)!=null?p:9525)*2,right:((c=i.width)!=null?c:9525)*2,bottom:((h=i.width)!=null?h:9525)*2,left:((n=i.width)!=null?n:9525)*2}:{top:0,right:0,bottom:0,left:0}),new Wa(r),Ka(),new Ba({mediaData:e,transform:t,outline:i})]})};class Va extends et{constructor(t,r={}){super("w:drawing"),r.floating?this.root.push(new kh({mediaData:t,transform:t.transformation,drawingOptions:r})):this.root.push(Sh({mediaData:t,transform:t.transformation,docProperties:r.docProperties,outline:r.outline}))}}const Ch=e=>{if(typeof atob=="function"){const t=";base64,",r=e.indexOf(t),i=r===-1?0:r+t.length;return new Uint8Array(atob(e.substring(i)).split("").map(p=>p.charCodeAt(0)))}else{const t=require("buffer");return new t.Buffer(e,"base64")}},Ih=e=>typeof e=="string"?Ch(e):e,zn=(e,t)=>({data:Ih(e.data),fileName:t,transformation:{pixels:{x:Math.round(e.transformation.width),y:Math.round(e.transformation.height)},emus:{x:Math.round(e.transformation.width*9525),y:Math.round(e.transformation.height*9525)},flip:e.transformation.flip,rotation:e.transformation.rotation?e.transformation.rotation*6e4:void 0}});class Rh extends ae{constructor(t){super({}),rt(this,"imageData");const r=`${Mn(t.data)}.${t.type}`;this.imageData=t.type==="svg"?Ht(mt({type:t.type},zn(t,r)),{fallback:mt({type:t.fallback.type},zn(Ht(mt({},t.fallback),{transformation:t.transformation}),`${Mn(t.fallback.data)}.${t.fallback.type}`))}):mt({type:t.type},zn(t,r));const i=new Va(this.imageData,{floating:t.floating,docProperties:t.altText,outline:t.outline});this.root.push(i)}prepForXml(t){return t.file.Media.addImage(this.imageData.fileName,this.imageData),this.imageData.type==="svg"&&t.file.Media.addImage(this.imageData.fallback.fileName,this.imageData.fallback),super.prepForXml(t)}}class Nh extends pt{constructor(){super(...arguments),rt(this,"xmlKeys",{xmlns:"xmlns"})}}class Oh extends pt{constructor(){super(...arguments),rt(this,"xmlKeys",{id:"Id",type:"Type",target:"Target",targetMode:"TargetMode"})}}const Dh={EXTERNAL:"External"};class Ph extends et{constructor(t,r,i,p){super("Relationship"),this.root.push(new Oh({id:t,type:r,target:i,targetMode:p}))}}class ue extends et{constructor(){super("Relationships"),this.root.push(new Nh({xmlns:"http://schemas.openxmlformats.org/package/2006/relationships"}))}createRelationship(t,r,i,p){const c=new Ph(`rId${t}`,r,i,p);return this.root.push(c),c}get RelationshipCount(){return this.root.length-1}}class Fh extends pt{constructor(){super(...arguments),rt(this,"xmlKeys",{id:"w:id",initials:"w:initials",author:"w:author",date:"w:date"})}}class Wn extends pt{constructor(){super(...arguments),rt(this,"xmlKeys",{id:"w:id"})}}class Bh extends pt{constructor(){super(...arguments),rt(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 Lh extends et{constructor(t){super("w:commentRangeStart"),this.root.push(new Wn({id:t}))}}class Mh extends et{constructor(t){super("w:commentRangeEnd"),this.root.push(new Wn({id:t}))}}class jh extends et{constructor(t){super("w:commentReference"),this.root.push(new Wn({id:t}))}}class Ga extends et{constructor({id:t,initials:r,author:i,date:p=new Date,children:c}){super("w:comment"),this.root.push(new Fh({id:t,initials:r,author:i,date:p.toISOString()}));for(const h of c)this.root.push(h)}}class Za extends et{constructor({children:t}){super("w:comments"),rt(this,"relationships"),this.root.push(new Bh({"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 t)this.root.push(new Ga(r));this.relationships=new ue}get Relationships(){return this.relationships}}class zh extends Hs{constructor(){super("w:tab")}}const Wh={PAGE:"page"};class Uh extends et{constructor(t){super("w:br"),this.root.push(new vt({type:t}))}}class Hh extends ae{constructor(){super({}),this.root.push(new Uh(Wh.PAGE))}}class Xa extends et{constructor(){super("w:pageBreakBefore")}}const tr={AUTO:"auto"};class Kh extends pt{constructor(){super(...arguments),rt(this,"xmlKeys",{after:"w:after",before:"w:before",line:"w:line",lineRule:"w:lineRule",beforeAutoSpacing:"w:beforeAutospacing",afterAutoSpacing:"w:afterAutospacing"})}}class qa extends et{constructor(t){super("w:spacing"),this.root.push(new Kh(t))}}const Vh={HEADING_1:"Heading1",HEADING_2:"Heading2",HEADING_3:"Heading3",HEADING_4:"Heading4",HEADING_5:"Heading5",HEADING_6:"Heading6",TITLE:"Title"};let Fe=class extends et{constructor(e){super("w:pStyle"),this.root.push(new vt({val:e}))}};class Ya extends et{constructor(t){super("w:tabs");for(const r of t)this.root.push(new $a(r))}}const Un={LEFT:"left",RIGHT:"right",CENTER:"center",BAR:"bar",CLEAR:"clear",DECIMAL:"decimal",END:"end",NUM:"num",START:"start"},Gh={DOT:"dot",HYPHEN:"hyphen",MIDDLE_DOT:"middleDot",NONE:"none",UNDERSCORE:"underscore"};class Qa extends pt{constructor(){super(...arguments),rt(this,"xmlKeys",{val:"w:val",pos:"w:pos",leader:"w:leader"})}}class $a extends et{constructor({type:t,position:r,leader:i}){super("w:tab"),this.root.push(new Qa({val:t,pos:r,leader:i}))}}class er extends et{constructor(t,r){super("w:numPr"),this.root.push(new Zh(r)),this.root.push(new Xh(t))}}class Zh extends et{constructor(t){if(super("w:ilvl"),t>9)throw new Error("Level cannot be greater than 9. Read more here: https://answers.microsoft.com/en-us/msoffice/forum/all/does-word-support-more-than-9-list-levels/d130fdcd-1781-446d-8c84-c6c79124e4d7");this.root.push(new vt({val:t}))}}class Xh extends et{constructor(t){super("w:numId"),this.root.push(new vt({val:typeof t=="string"?`{${t}}`:t}))}}class Hn extends et{constructor(){super(...arguments),rt(this,"fileChild",Symbol())}}class qh extends pt{constructor(){super(...arguments),rt(this,"xmlKeys",{id:"r:id",history:"w:history",anchor:"w:anchor"})}}class Be extends et{constructor(t,r,i){super("w:hyperlink"),rt(this,"linkId"),this.linkId=r;const p={history:1,anchor:i||void 0,id:i?void 0:`rId${this.linkId}`},c=new qh(p);this.root.push(c),t.forEach(h=>{this.root.push(h)})}}class Yh extends Be{constructor(t){super(t.children,Ln(),t.anchor)}}class Ja extends et{constructor(t){super("w:externalHyperlink"),this.options=t}}class Qh extends pt{constructor(){super(...arguments),rt(this,"xmlKeys",{id:"w:id",name:"w:name"})}}class $h extends pt{constructor(){super(...arguments),rt(this,"xmlKeys",{id:"w:id"})}}class tu{constructor(t){rt(this,"bookmarkUniqueNumericId",Ta()),rt(this,"start"),rt(this,"children"),rt(this,"end");const r=this.bookmarkUniqueNumericId();this.start=new eu(t.id,r),this.children=t.children,this.end=new ru(r)}}class eu extends et{constructor(t,r){super("w:bookmarkStart");const i=new Qh({name:t,id:r});this.root.push(i)}}class ru extends et{constructor(t){super("w:bookmarkEnd");const r=new $h({id:t});this.root.push(r)}}class nu extends et{constructor(t){super("w:outlineLvl"),this.level=t,this.root.push(new vt({val:t}))}}const iu={TOP:"top",CENTER:"center",BOTTOM:"bottom"};Ht(mt({},iu),{BOTH:"both"});class ou extends pt{constructor(){super(...arguments),rt(this,"xmlKeys",{verticalAlign:"w:val"})}}class Kn extends et{constructor(t){super("w:vAlign"),this.root.push(new ou({verticalAlign:t}))}}class su extends et{constructor({space:t,count:r,separate:i,equalWidth:p,children:c}){super("w:cols"),this.root.push(new Dt({space:{key:"w:space",value:t===void 0?void 0:Tt(t)},count:{key:"w:num",value:r===void 0?void 0:At(r)},separate:{key:"w:sep",value:i},equalWidth:{key:"w:equalWidth",value:p}})),!p&&c&&c.forEach(h=>this.addChildElement(h))}}const au=({type:e,linePitch:t,charSpace:r})=>new wt({name:"w:docGrid",attributes:{type:{key:"w:type",value:e},linePitch:{key:"w:linePitch",value:At(t)},charSpace:{key:"w:charSpace",value:r?At(r):void 0}}}),ce={DEFAULT:"default",FIRST:"first",EVEN:"even"};class Jh extends pt{constructor(){super(...arguments),rt(this,"xmlKeys",{type:"w:type",id:"r:id"})}}const Vn={HEADER:"w:headerReference",FOOTER:"w:footerReference"};class rr extends et{constructor(t,r){super(t),this.root.push(new Jh({type:r.type||ce.DEFAULT,id:`rId${r.id}`}))}}const uu=({countBy:e,start:t,restart:r,distance:i})=>new wt({name:"w:lnNumType",attributes:{countBy:{key:"w:countBy",value:e===void 0?void 0:At(e)},start:{key:"w:start",value:t===void 0?void 0:At(t)},restart:{key:"w:restart",value:r},distance:{key:"w:distance",value:i===void 0?void 0:Tt(i)}}});class cu extends pt{constructor(){super(...arguments),rt(this,"xmlKeys",{display:"w:display",offsetFrom:"w:offsetFrom",zOrder:"w:zOrder"})}}class lu extends Ot{constructor(t){if(super("w:pgBorders"),!t)return this;t.pageBorders?this.root.push(new cu({display:t.pageBorders.display,offsetFrom:t.pageBorders.offsetFrom,zOrder:t.pageBorders.zOrder})):this.root.push(new cu({})),t.pageBorderTop&&this.root.push(new yt("w:top",t.pageBorderTop)),t.pageBorderLeft&&this.root.push(new yt("w:left",t.pageBorderLeft)),t.pageBorderBottom&&this.root.push(new yt("w:bottom",t.pageBorderBottom)),t.pageBorderRight&&this.root.push(new yt("w:right",t.pageBorderRight))}}class hu extends et{constructor(t,r,i,p,c,h,n){super("w:pgMar"),this.root.push(new Dt({top:{key:"w:top",value:Lt(t)},right:{key:"w:right",value:Tt(r)},bottom:{key:"w:bottom",value:Lt(i)},left:{key:"w:left",value:Tt(p)},header:{key:"w:header",value:Tt(c)},footer:{key:"w:footer",value:Tt(h)},gutter:{key:"w:gutter",value:Tt(n)}}))}}class pu extends pt{constructor(){super(...arguments),rt(this,"xmlKeys",{start:"w:start",formatType:"w:fmt",separator:"w:chapSep"})}}class fu extends et{constructor({start:t,formatType:r,separator:i}){super("w:pgNumType"),this.root.push(new pu({start:t===void 0?void 0:At(t),formatType:r,separator:i}))}}const nr={PORTRAIT:"portrait",LANDSCAPE:"landscape"},du=({width:e,height:t,orientation:r,code:i})=>{const p=Tt(e),c=Tt(t);return new wt({name:"w:pgSz",attributes:{width:{key:"w:w",value:r===nr.LANDSCAPE?c:p},height:{key:"w:h",value:r===nr.LANDSCAPE?p:c},orientation:{key:"w:orient",value:r},code:{key:"w:code",value:i}}})};class tp extends pt{constructor(){super(...arguments),rt(this,"xmlKeys",{val:"w:val"})}}class mu extends et{constructor(t){super("w:textDirection"),this.root.push(new tp({val:t}))}}const ep={NEXT_PAGE:"nextPage",NEXT_COLUMN:"nextColumn",CONTINUOUS:"continuous",EVEN_PAGE:"evenPage",ODD_PAGE:"oddPage"};class gu extends pt{constructor(){super(...arguments),rt(this,"xmlKeys",{val:"w:val"})}}class wu extends et{constructor(t){super("w:type"),this.root.push(new gu({val:t}))}}const Jt={TOP:1440,RIGHT:1440,BOTTOM:1440,LEFT:1440,HEADER:708,FOOTER:708,GUTTER:0},ir={WIDTH:11906,HEIGHT:16838,ORIENTATION:nr.PORTRAIT};class yu extends et{constructor({page:{size:{width:t=ir.WIDTH,height:r=ir.HEIGHT,orientation:i=ir.ORIENTATION}={},margin:{top:p=Jt.TOP,right:c=Jt.RIGHT,bottom:h=Jt.BOTTOM,left:n=Jt.LEFT,header:g=Jt.HEADER,footer:T=Jt.FOOTER,gutter:_=Jt.GUTTER}={},pageNumbers:S={},borders:I,textDirection:d}={},grid:{linePitch:A=360,charSpace:v,type:R}={},headerWrapperGroup:u={},footerWrapperGroup:m={},lineNumbers:b,titlePage:l,verticalAlign:k,column:F,type:B}={}){super("w:sectPr"),this.addHeaderFooterGroup(Vn.HEADER,u),this.addHeaderFooterGroup(Vn.FOOTER,m),B&&this.root.push(new wu(B)),this.root.push(du({width:t,height:r,orientation:i})),this.root.push(new hu(p,c,h,n,g,T,_)),I&&this.root.push(new lu(I)),b&&this.root.push(uu(b)),this.root.push(new fu(S)),F&&this.root.push(new su(F)),k&&this.root.push(new Kn(k)),l!==void 0&&this.root.push(new ut("w:titlePg",l)),d&&this.root.push(new mu(d)),this.root.push(au({linePitch:A,charSpace:v,type:R}))}addHeaderFooterGroup(t,r){r.default&&this.root.push(new rr(t,{type:ce.DEFAULT,id:r.default.View.ReferenceId})),r.first&&this.root.push(new rr(t,{type:ce.FIRST,id:r.first.View.ReferenceId})),r.even&&this.root.push(new rr(t,{type:ce.EVEN,id:r.even.View.ReferenceId}))}}class bu extends et{constructor(){super("w:body"),rt(this,"sections",[])}addSection(t){const r=this.sections.pop();this.root.push(this.createSectionParagraph(r)),this.sections.push(new yu(t))}prepForXml(t){return this.sections.length===1&&(this.root.splice(0,1),this.root.push(this.sections.pop())),super.prepForXml(t)}push(t){this.root.push(t)}createSectionParagraph(t){const r=new we({}),i=new le({});return i.push(t),r.addChildElement(i),r}}const Gn={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 Le extends pt{constructor(t,r){super(mt({Ignorable:r},Object.fromEntries(t.map(i=>[i,Gn[i]])))),rt(this,"xmlKeys",mt({Ignorable:"mc:Ignorable"},Object.fromEntries(Object.keys(Gn).map(i=>[i,`xmlns:${i}`]))))}}class vu extends pt{constructor(){super(...arguments),rt(this,"xmlKeys",{color:"w:color",themeColor:"w:themeColor",themeShade:"w:themeShade",themeTint:"w:themeTint"})}}class xu extends et{constructor(t){super("w:background"),this.root.push(new vu({color:t.color===void 0?void 0:ne(t.color),themeColor:t.themeColor,themeShade:t.themeShade===void 0?void 0:vn(t.themeShade),themeTint:t.themeTint===void 0?void 0:vn(t.themeTint)}))}}class rp extends et{constructor(t){super("w:document"),rt(this,"body"),this.root.push(new Le(["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 bu,t.background&&this.root.push(new xu(t.background)),this.root.push(this.body)}add(t){return this.body.push(t),this}get Body(){return this.body}}class _u{constructor(t){rt(this,"document"),rt(this,"relationships"),this.document=new rp(t),this.relationships=new ue}get View(){return this.document}get Relationships(){return this.relationships}}class np extends pt{constructor(){super(...arguments),rt(this,"xmlKeys",{val:"w:val"})}}class ip extends et{constructor(){super("w:wordWrap"),this.root.push(new np({val:0}))}}const Eu=e=>{var t,r;return new wt({name:"w:framePr",attributes:{anchorLock:{key:"w:anchorLock",value:e.anchorLock},dropCap:{key:"w:dropCap",value:e.dropCap},width:{key:"w:w",value:e.width},height:{key:"w:h",value:e.height},x:{key:"w:x",value:e.position?e.position.x:void 0},y:{key:"w:y",value:e.position?e.position.y:void 0},anchorHorizontal:{key:"w:hAnchor",value:e.anchor.horizontal},anchorVertical:{key:"w:vAnchor",value:e.anchor.vertical},spaceHorizontal:{key:"w:hSpace",value:(t=e.space)==null?void 0:t.horizontal},spaceVertical:{key:"w:vSpace",value:(r=e.space)==null?void 0:r.vertical},rule:{key:"w:hRule",value:e.rule},alignmentX:{key:"w:xAlign",value:e.alignment?e.alignment.x:void 0},alignmentY:{key:"w:yAlign",value:e.alignment?e.alignment.y:void 0},lines:{key:"w:lines",value:e.lines},wrap:{key:"w:wrap",value:e.wrap}}})};class le extends Ot{constructor(t){var r,i;if(super("w:pPr"),rt(this,"numberingReferences",[]),!t)return this;t.heading&&this.push(new Fe(t.heading)),t.bullet&&this.push(new Fe("ListParagraph")),t.numbering&&!t.style&&!t.heading&&(t.numbering.custom||this.push(new Fe("ListParagraph"))),t.style&&this.push(new Fe(t.style)),t.keepNext!==void 0&&this.push(new ut("w:keepNext",t.keepNext)),t.keepLines!==void 0&&this.push(new ut("w:keepLines",t.keepLines)),t.pageBreakBefore&&this.push(new Xa),t.frame&&this.push(Eu(t.frame)),t.widowControl!==void 0&&this.push(new ut("w:widowControl",t.widowControl)),t.bullet&&this.push(new er(1,t.bullet.level)),t.numbering?(this.numberingReferences.push({reference:t.numbering.reference,instance:(r=t.numbering.instance)!=null?r:0}),this.push(new er(`${t.numbering.reference}-${(i=t.numbering.instance)!=null?i:0}`,t.numbering.level))):t.numbering===!1&&this.push(new er(0,0)),t.border&&this.push(new Gs(t.border)),t.thematicBreak&&this.push(new Zs),t.shading&&this.push(new Ie(t.shading)),t.wordWrap&&this.push(new ip),t.overflowPunctuation&&this.push(new ut("w:overflowPunct",t.overflowPunctuation));const p=[...t.rightTabStop!==void 0?[{type:Un.RIGHT,position:t.rightTabStop}]:[],...t.tabStops?t.tabStops:[],...t.leftTabStop!==void 0?[{type:Un.LEFT,position:t.leftTabStop}]:[]];p.length>0&&this.push(new Ya(p)),t.bidirectional!==void 0&&this.push(new ut("w:bidi",t.bidirectional)),t.spacing&&this.push(new qa(t.spacing)),t.indent&&this.push(new Xs(t.indent)),t.contextualSpacing!==void 0&&this.push(new ut("w:contextualSpacing",t.contextualSpacing)),t.alignment&&this.push(new En(t.alignment)),t.outlineLevel!==void 0&&this.push(new nu(t.outlineLevel)),t.suppressLineNumbers!==void 0&&this.push(new ut("w:suppressLineNumbers",t.suppressLineNumbers)),t.autoSpaceEastAsianText!==void 0&&this.push(new ut("w:autoSpaceDN",t.autoSpaceEastAsianText)),t.run&&this.push(new Gt(t.run))}push(t){this.root.push(t)}prepForXml(t){if(t.viewWrapper instanceof _u)for(const r of this.numberingReferences)t.file.Numbering.createConcreteNumberingInstance(r.reference,r.instance);return super.prepForXml(t)}}class we extends Hn{constructor(t){if(super("w:p"),rt(this,"properties"),typeof t=="string")return this.properties=new le({}),this.root.push(this.properties),this.root.push(new Je(t)),this;if(this.properties=new le(t),this.root.push(this.properties),t.text&&this.root.push(new Je(t.text)),t.children)for(const r of t.children){if(r instanceof tu){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(t){for(const r of this.root)if(r instanceof Ja){const i=this.root.indexOf(r),p=new Be(r.options.children,Ln());t.viewWrapper.Relationships.createRelationship(p.linkId,"http://schemas.openxmlformats.org/officeDocument/2006/relationships/hyperlink",r.options.link,Dh.EXTERNAL),this.root[i]=p}return super.prepForXml(t)}addRunToFront(t){return this.root.splice(1,0,t),this}}class op extends et{constructor(t){super("w:tblGrid");for(const r of t)this.root.push(new sp(r))}}class sp extends et{constructor(t){super("w:gridCol"),t!==void 0&&this.root.push(new Dt({width:{key:"w:w",value:Tt(t)}}))}}const Tu={TABLE:"w:tblCellMar",TABLE_CELL:"w:tcMar"};class Au extends Ot{constructor(t,{marginUnitType:r=or.DXA,top:i,left:p,bottom:c,right:h}){super(t),i!==void 0&&this.root.push(new te("w:top",{type:r,size:i})),p!==void 0&&this.root.push(new te("w:left",{type:r,size:p})),c!==void 0&&this.root.push(new te("w:bottom",{type:r,size:c})),h!==void 0&&this.root.push(new te("w:right",{type:r,size:h}))}}const or={AUTO:"auto",DXA:"dxa",NIL:"nil",PERCENTAGE:"pct"};class te extends et{constructor(t,{type:r=or.AUTO,size:i}){super(t);let p=i;r===or.PERCENTAGE&&typeof i=="number"&&(p=`${i}%`),this.root.push(new Dt({type:{key:"w:type",value:r},size:{key:"w:w",value:_n(p)}}))}}class ku extends Ot{constructor(t){super("w:tcBorders"),t.top&&this.root.push(new yt("w:top",t.top)),t.start&&this.root.push(new yt("w:start",t.start)),t.left&&this.root.push(new yt("w:left",t.left)),t.bottom&&this.root.push(new yt("w:bottom",t.bottom)),t.end&&this.root.push(new yt("w:end",t.end)),t.right&&this.root.push(new yt("w:right",t.right))}}class ap extends pt{constructor(){super(...arguments),rt(this,"xmlKeys",{val:"w:val"})}}class Su extends et{constructor(t){super("w:gridSpan"),this.root.push(new ap({val:At(t)}))}}const Zn={CONTINUE:"continue",RESTART:"restart"};class up extends pt{constructor(){super(...arguments),rt(this,"xmlKeys",{val:"w:val"})}}class Xn extends et{constructor(t){super("w:vMerge"),this.root.push(new up({val:t}))}}class cp extends pt{constructor(){super(...arguments),rt(this,"xmlKeys",{val:"w:val"})}}class Cu extends et{constructor(t){super("w:textDirection"),this.root.push(new cp({val:t}))}}class lp extends Ot{constructor(t){super("w:tcPr"),t.width&&this.root.push(new te("w:tcW",t.width)),t.columnSpan&&this.root.push(new Su(t.columnSpan)),t.verticalMerge?this.root.push(new Xn(t.verticalMerge)):t.rowSpan&&t.rowSpan>1&&this.root.push(new Xn(Zn.RESTART)),t.borders&&this.root.push(new ku(t.borders)),t.shading&&this.root.push(new Ie(t.shading)),t.margins&&this.root.push(new Au(Tu.TABLE_CELL,t.margins)),t.textDirection&&this.root.push(new Cu(t.textDirection)),t.verticalAlign&&this.root.push(new Kn(t.verticalAlign))}}class qn extends et{constructor(t){super("w:tc"),this.options=t,this.root.push(new lp(t));for(const r of t.children)this.root.push(r)}prepForXml(t){return this.root[this.root.length-1]instanceof we||this.root.push(new we({})),super.prepForXml(t)}}const ye={style:Qe.NONE,size:0,color:"auto"},be={style:Qe.SINGLE,size:4,color:"auto"};class Yn extends et{constructor(t){super("w:tblBorders"),t.top?this.root.push(new yt("w:top",t.top)):this.root.push(new yt("w:top",be)),t.left?this.root.push(new yt("w:left",t.left)):this.root.push(new yt("w:left",be)),t.bottom?this.root.push(new yt("w:bottom",t.bottom)):this.root.push(new yt("w:bottom",be)),t.right?this.root.push(new yt("w:right",t.right)):this.root.push(new yt("w:right",be)),t.insideHorizontal?this.root.push(new yt("w:insideH",t.insideHorizontal)):this.root.push(new yt("w:insideH",be)),t.insideVertical?this.root.push(new yt("w:insideV",t.insideVertical)):this.root.push(new yt("w:insideV",be))}}rt(Yn,"NONE",{top:ye,bottom:ye,left:ye,right:ye,insideHorizontal:ye,insideVertical:ye});class Iu extends et{constructor({horizontalAnchor:t,verticalAnchor:r,absoluteHorizontalPosition:i,relativeHorizontalPosition:p,absoluteVerticalPosition:c,relativeVerticalPosition:h,bottomFromText:n,topFromText:g,leftFromText:T,rightFromText:_,overlap:S}){super("w:tblpPr"),this.root.push(new Dt({leftFromText:{key:"w:leftFromText",value:T===void 0?void 0:Tt(T)},rightFromText:{key:"w:rightFromText",value:_===void 0?void 0:Tt(_)},topFromText:{key:"w:topFromText",value:g===void 0?void 0:Tt(g)},bottomFromText:{key:"w:bottomFromText",value:n===void 0?void 0:Tt(n)},absoluteHorizontalPosition:{key:"w:tblpX",value:i===void 0?void 0:Lt(i)},absoluteVerticalPosition:{key:"w:tblpY",value:c===void 0?void 0:Lt(c)},horizontalAnchor:{key:"w:horzAnchor",value:t===void 0?void 0:t},relativeHorizontalPosition:{key:"w:tblpXSpec",value:p},relativeVerticalPosition:{key:"w:tblpYSpec",value:h},verticalAnchor:{key:"w:vertAnchor",value:r}})),S&&this.root.push(new Ks("w:tblOverlap",S))}}class hp extends pt{constructor(){super(...arguments),rt(this,"xmlKeys",{type:"w:type"})}}class Ru extends et{constructor(t){super("w:tblLayout"),this.root.push(new hp({type:t}))}}const pp={DXA:"dxa"};class Nu extends et{constructor({type:t=pp.DXA,value:r}){super("w:tblCellSpacing"),this.root.push(new Dt({type:{key:"w:type",value:t},value:{key:"w:w",value:_n(r)}}))}}class Ou extends Ot{constructor(t){super("w:tblPr"),t.style&&this.root.push(new Yt("w:tblStyle",t.style)),t.float&&this.root.push(new Iu(t.float)),t.visuallyRightToLeft!==void 0&&this.root.push(new ut("w:bidiVisual",t.visuallyRightToLeft)),t.width&&this.root.push(new te("w:tblW",t.width)),t.alignment&&this.root.push(new En(t.alignment)),t.indent&&this.root.push(new te("w:tblInd",t.indent)),t.borders&&this.root.push(new Yn(t.borders)),t.shading&&this.root.push(new Ie(t.shading)),t.layout&&this.root.push(new Ru(t.layout)),t.cellMargin&&this.root.push(new Au(Tu.TABLE,t.cellMargin)),t.cellSpacing&&this.root.push(new Nu(t.cellSpacing))}}class fp extends Hn{constructor({rows:t,width:r,columnWidths:i=Array(Math.max(...t.map(d=>d.CellCount))).fill(100),margins:p,indent:c,float:h,layout:n,style:g,borders:T,alignment:_,visuallyRightToLeft:S,cellSpacing:I}){super("w:tbl"),this.root.push(new Ou({borders:T??{},width:r??{size:100},indent:c,float:h,layout:n,style:g,alignment:_,cellMargin:p,visuallyRightToLeft:S,cellSpacing:I})),this.root.push(new op(i));for(const d of t)this.root.push(d);t.forEach((d,A)=>{if(A===t.length-1)return;let v=0;d.cells.forEach(R=>{if(R.options.rowSpan&&R.options.rowSpan>1){const u=new qn({rowSpan:R.options.rowSpan-1,columnSpan:R.options.columnSpan,borders:R.options.borders,children:[],verticalMerge:Zn.CONTINUE});t[A+1].addCellToColumnIndex(u,v)}v+=R.options.columnSpan||1})})}}class Du extends pt{constructor(){super(...arguments),rt(this,"xmlKeys",{value:"w:val",rule:"w:hRule"})}}class Pu extends et{constructor(t,r){super("w:trHeight"),this.root.push(new Du({value:Tt(t),rule:r}))}}class Fu extends Ot{constructor(t){super("w:trPr"),t.cantSplit!==void 0&&this.root.push(new ut("w:cantSplit",t.cantSplit)),t.tableHeader!==void 0&&this.root.push(new ut("w:tblHeader",t.tableHeader)),t.height&&this.root.push(new Pu(t.height.value,t.height.rule)),t.cellSpacing&&this.root.push(new Nu(t.cellSpacing))}}class dp extends et{constructor(t){super("w:tr"),this.options=t,this.root.push(new Fu(t));for(const r of t.children)this.root.push(r)}get CellCount(){return this.options.children.length}get cells(){return this.root.filter(t=>t instanceof qn)}addCellToIndex(t,r){this.root.splice(r+1,0,t)}addCellToColumnIndex(t,r){const i=this.columnIndexToRootIndex(r,!0);this.addCellToIndex(t,i-1)}rootIndexToColumnIndex(t){if(t<1||t>=this.root.length)throw new Error(`cell 'rootIndex' should between 1 to ${this.root.length-1}`);let r=0;for(let i=1;i<t;i++){const p=this.root[i];r+=p.options.columnSpan||1}return r}columnIndexToRootIndex(t,r=!1){if(t<0)throw new Error("cell 'columnIndex' should not less than zero");let i=0,p=1;for(;i<=t;){if(p>=this.root.length){if(r)return this.root.length;throw new Error(`cell 'columnIndex' should not great than ${i-1}`)}const c=this.root[p];p+=1,i+=c&&c.options.columnSpan||1}return p-1}}class mp extends pt{constructor(){super(...arguments),rt(this,"xmlKeys",{xmlns:"xmlns",vt:"xmlns:vt"})}}class gp extends et{constructor(){super("Properties"),this.root.push(new mp({xmlns:"http://schemas.openxmlformats.org/officeDocument/2006/extended-properties",vt:"http://schemas.openxmlformats.org/officeDocument/2006/docPropsVTypes"}))}}class wp extends pt{constructor(){super(...arguments),rt(this,"xmlKeys",{xmlns:"xmlns"})}}class yp extends pt{constructor(){super(...arguments),rt(this,"xmlKeys",{contentType:"ContentType",extension:"Extension"})}}class Zt extends et{constructor(t,r){super("Default"),this.root.push(new yp({contentType:t,extension:r}))}}class bp extends pt{constructor(){super(...arguments),rt(this,"xmlKeys",{contentType:"ContentType",partName:"PartName"})}}class Ct extends et{constructor(t,r){super("Override"),this.root.push(new bp({contentType:t,partName:r}))}}class vp extends et{constructor(){super("Types"),this.root.push(new wp({xmlns:"http://schemas.openxmlformats.org/package/2006/content-types"})),this.root.push(new Zt("image/png","png")),this.root.push(new Zt("image/jpeg","jpeg")),this.root.push(new Zt("image/jpeg","jpg")),this.root.push(new Zt("image/bmp","bmp")),this.root.push(new Zt("image/gif","gif")),this.root.push(new Zt("image/svg+xml","svg")),this.root.push(new Zt("application/vnd.openxmlformats-package.relationships+xml","rels")),this.root.push(new Zt("application/xml","xml")),this.root.push(new Zt("application/vnd.openxmlformats-officedocument.obfuscatedFont","odttf")),this.root.push(new Ct("application/vnd.openxmlformats-officedocument.wordprocessingml.document.main+xml","/word/document.xml")),this.root.push(new Ct("application/vnd.openxmlformats-officedocument.wordprocessingml.styles+xml","/word/styles.xml")),this.root.push(new Ct("application/vnd.openxmlformats-package.core-properties+xml","/docProps/core.xml")),this.root.push(new Ct("application/vnd.openxmlformats-officedocument.custom-properties+xml","/docProps/custom.xml")),this.root.push(new Ct("application/vnd.openxmlformats-officedocument.extended-properties+xml","/docProps/app.xml")),this.root.push(new Ct("application/vnd.openxmlformats-officedocument.wordprocessingml.numbering+xml","/word/numbering.xml")),this.root.push(new Ct("application/vnd.openxmlformats-officedocument.wordprocessingml.footnotes+xml","/word/footnotes.xml")),this.root.push(new Ct("application/vnd.openxmlformats-officedocument.wordprocessingml.settings+xml","/word/settings.xml")),this.root.push(new Ct("application/vnd.openxmlformats-officedocument.wordprocessingml.comments+xml","/word/comments.xml")),this.root.push(new Ct("application/vnd.openxmlformats-officedocument.wordprocessingml.fontTable+xml","/word/fontTable.xml"))}addFooter(t){this.root.push(new Ct("application/vnd.openxmlformats-officedocument.wordprocessingml.footer+xml",`/word/footer${t}.xml`))}addHeader(t){this.root.push(new Ct("application/vnd.openxmlformats-officedocument.wordprocessingml.header+xml",`/word/header${t}.xml`))}}class xp extends et{constructor(t){super("cp:coreProperties"),this.root.push(new Le(["cp","dc","dcterms","dcmitype","xsi"])),t.title&&this.root.push(new Qt("dc:title",t.title)),t.subject&&this.root.push(new Qt("dc:subject",t.subject)),t.creator&&this.root.push(new Qt("dc:creator",t.creator)),t.keywords&&this.root.push(new Qt("cp:keywords",t.keywords)),t.description&&this.root.push(new Qt("dc:description",t.description)),t.lastModifiedBy&&this.root.push(new Qt("cp:lastModifiedBy",t.lastModifiedBy)),t.revision&&this.root.push(new Qt("cp:revision",String(t.revision))),this.root.push(new Bu("dcterms:created")),this.root.push(new Bu("dcterms:modified"))}}class _p extends pt{constructor(){super(...arguments),rt(this,"xmlKeys",{type:"xsi:type"})}}class Bu extends et{constructor(t){super(t),this.root.push(new _p({type:"dcterms:W3CDTF"})),this.root.push(Us(new Date))}}class Ep extends pt{constructor(){super(...arguments),rt(this,"xmlKeys",{xmlns:"xmlns",vt:"xmlns:vt"})}}class Tp extends pt{constructor(){super(...arguments),rt(this,"xmlKeys",{fmtid:"fmtid",pid:"pid",name:"name"})}}class Ap extends et{constructor(t,r){super("property"),this.root.push(new Tp({fmtid:"{D5CDD505-2E9C-101B-9397-08002B2CF9AE}",pid:t.toString(),name:r.name})),this.root.push(new kp(r.value))}}class kp extends et{constructor(t){super("vt:lpwstr"),this.root.push(t)}}class Sp extends et{constructor(t){super("Properties"),rt(this,"nextId"),rt(this,"properties",[]),this.root.push(new Ep({xmlns:"http://schemas.openxmlformats.org/officeDocument/2006/custom-properties",vt:"http://schemas.openxmlformats.org/officeDocument/2006/docPropsVTypes"})),this.nextId=2;for(const r of t)this.addCustomProperty(r)}prepForXml(t){return this.properties.forEach(r=>this.root.push(r)),super.prepForXml(t)}addCustomProperty(t){this.properties.push(new Ap(this.nextId++,t))}}const sr=({id:e,fontKey:t,subsetted:r},i)=>new wt({name:i,attributes:mt({id:{key:"r:id",value:e}},t?{fontKey:{key:"w:fontKey",value:`{${t}}`}}:{}),children:[...r?[new ut("w:subsetted",r)]:[]]}),Cp=({name:e,altName:t,panose1:r,charset:i,family:p,notTrueType:c,pitch:h,sig:n,embedRegular:g,embedBold:T,embedItalic:_,embedBoldItalic:S})=>new wt({name:"w:font",attributes:{name:{key:"w:name",value:e}},children:[...t?[de("w:altName",t)]:[],...r?[de("w:panose1",r)]:[],...i?[de("w:charset",i)]:[],de("w:family",p),...c?[new ut("w:notTrueType",c)]:[],de("w:pitch",h),...n?[new wt({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}}})]:[],...g?[sr(g,"w:embedRegular")]:[],...T?[sr(T,"w:embedBold")]:[],..._?[sr(_,"w:embedItalic")]:[],...S?[sr(S,"w:embedBoldItalic")]:[]]}),Ip=({name:e,index:t,fontKey:r,characterSet:i})=>Cp({name:e,sig:{usb0:"E0002AFF",usb1:"C000247B",usb2:"00000009",usb3:"00000000",csb0:"000001FF",csb1:"00000000"},charset:i,family:"auto",pitch:"variable",embedRegular:{fontKey:r,id:`rId${t}`}}),Rp=e=>new wt({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:e.map((t,r)=>Ip({name:t.name,index:r+1,fontKey:t.fontKey}))});class Np{constructor(t){rt(this,"fontTable"),rt(this,"relationships"),rt(this,"fontOptionsWithKey",[]),this.options=t,this.fontOptionsWithKey=t.map(r=>Ht(mt({},r),{fontKey:Aa()})),this.fontTable=Rp(this.fontOptionsWithKey),this.relationships=new ue;for(let r=0;r<t.length;r++)this.relationships.createRelationship(r+1,"http://schemas.openxmlformats.org/officeDocument/2006/relationships/font",`fonts/${t[r].name}.odttf`)}get View(){return this.fontTable}get Relationships(){return this.relationships}}class Op extends pt{constructor(){super(...arguments),rt(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 Dp=class extends bn{constructor(e,t){super("w:ftr",t),rt(this,"refId"),this.refId=e,t||this.root.push(new Op({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 Lu{constructor(t,r,i){rt(this,"footer"),rt(this,"relationships"),this.media=t,this.footer=new Dp(r,i),this.relationships=new ue}add(t){this.footer.add(t)}addChildElement(t){this.footer.addChildElement(t)}get View(){return this.footer}get Relationships(){return this.relationships}get Media(){return this.media}}class Pp extends pt{constructor(){super(...arguments),rt(this,"xmlKeys",{type:"w:type",id:"w:id"})}}class Fp extends et{constructor(){super("w:footnoteRef")}}class Bp extends ae{constructor(){super({style:"FootnoteReference"}),this.root.push(new Fp)}}const Mu={SEPERATOR:"separator",CONTINUATION_SEPERATOR:"continuationSeparator"};class Qn extends et{constructor(t){super("w:footnote"),this.root.push(new Pp({type:t.type,id:t.id}));for(let r=0;r<t.children.length;r++){const i=t.children[r];r===0&&i.addRunToFront(new Bp),this.root.push(i)}}}class Lp extends et{constructor(){super("w:continuationSeparator")}}class Mp extends ae{constructor(){super({}),this.root.push(new Lp)}}class jp extends et{constructor(){super("w:separator")}}class zp extends ae{constructor(){super({}),this.root.push(new jp)}}class Wp extends pt{constructor(){super(...arguments),rt(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 ju extends et{constructor(){super("w:footnotes"),this.root.push(new Wp({wpc:"http://schemas.microsoft.com/office/word/2010/wordprocessingCanvas",mc:"http://schemas.openxmlformats.org/markup-compatibility/2006",o:"urn:schemas-microsoft-com:office:office",r:"http://schemas.openxmlformats.org/officeDocument/2006/relationships",m:"http://schemas.openxmlformats.org/officeDocument/2006/math",v:"urn:schemas-microsoft-com:vml",wp14:"http://schemas.microsoft.com/office/word/2010/wordprocessingDrawing",wp:"http://schemas.openxmlformats.org/drawingml/2006/wordprocessingDrawing",w10:"urn:schemas-microsoft-com:office:word",w:"http://schemas.openxmlformats.org/wordprocessingml/2006/main",w14:"http://schemas.microsoft.com/office/word/2010/wordml",w15:"http://schemas.microsoft.com/office/word/2012/wordml",wpg:"http://schemas.microsoft.com/office/word/2010/wordprocessingGroup",wpi:"http://schemas.microsoft.com/office/word/2010/wordprocessingInk",wne:"http://schemas.microsoft.com/office/word/2006/wordml",wps:"http://schemas.microsoft.com/office/word/2010/wordprocessingShape",Ignorable:"w14 w15 wp14"}));const t=new Qn({id:-1,type:Mu.SEPERATOR,children:[new we({spacing:{after:0,line:240,lineRule:tr.AUTO},children:[new zp]})]});this.root.push(t);const r=new Qn({id:0,type:Mu.CONTINUATION_SEPERATOR,children:[new we({spacing:{after:0,line:240,lineRule:tr.AUTO},children:[new Mp]})]});this.root.push(r)}createFootNote(t,r){const i=new Qn({id:t,children:r});this.root.push(i)}}class Up{constructor(){rt(this,"footnotess"),rt(this,"relationships"),this.footnotess=new ju,this.relationships=new ue}get View(){return this.footnotess}get Relationships(){return this.relationships}}class Hp extends pt{constructor(){super(...arguments),rt(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 Kp=class extends bn{constructor(e,t){super("w:hdr",t),rt(this,"refId"),this.refId=e,t||this.root.push(new Hp({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 zu{constructor(t,r,i){rt(this,"header"),rt(this,"relationships"),this.media=t,this.header=new Kp(r,i),this.relationships=new ue}add(t){return this.header.add(t),this}addChildElement(t){this.header.addChildElement(t)}get View(){return this.header}get Relationships(){return this.relationships}get Media(){return this.media}}class Wu{constructor(){rt(this,"map"),this.map=new Map}addImage(t,r){this.map.set(t,r)}get Array(){return Array.from(this.map.values())}}const Wt={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 Vp extends pt{constructor(){super(...arguments),rt(this,"xmlKeys",{ilvl:"w:ilvl",tentative:"w15:tentative"})}}class Gp extends et{constructor(t){super("w:numFmt"),this.root.push(new vt({val:t}))}}class Zp extends et{constructor(t){super("w:lvlText"),this.root.push(new vt({val:t}))}}class Xp extends et{constructor(t){super("w:lvlJc"),this.root.push(new vt({val:t}))}}const qp={NOTHING:"nothing",SPACE:"space",TAB:"tab"};class Yp extends et{constructor(t){super("w:suff"),this.root.push(new vt({val:t}))}}class Qp extends et{constructor(){super("w:isLgl")}}class Uu extends et{constructor({level:t,format:r,text:i,alignment:p=It.START,start:c=1,style:h,suffix:n,isLegalNumberingStyle:g}){if(super("w:lvl"),rt(this,"paragraphProperties"),rt(this,"runProperties"),this.root.push(new me("w:start",At(c))),r&&this.root.push(new Gp(r)),n&&this.root.push(new Yp(n)),g&&this.root.push(new Qp),i&&this.root.push(new Zp(i)),this.root.push(new Xp(p)),this.paragraphProperties=new le(h&&h.paragraph),this.runProperties=new Gt(h&&h.run),this.root.push(this.paragraphProperties),this.root.push(this.runProperties),t>9)throw new Error("Level cannot be greater than 9. Read more here: https://answers.microsoft.com/en-us/msoffice/forum/all/does-word-support-more-than-9-list-levels/d130fdcd-1781-446d-8c84-c6c79124e4d7");this.root.push(new Vp({ilvl:At(t),tentative:1}))}}class Hu extends Uu{}class $p extends et{constructor(t){super("w:multiLevelType"),this.root.push(new vt({val:t}))}}class Jp extends pt{constructor(){super(...arguments),rt(this,"xmlKeys",{abstractNumId:"w:abstractNumId",restartNumberingAfterBreak:"w15:restartNumberingAfterBreak"})}}class $n extends et{constructor(t,r){super("w:abstractNum"),rt(this,"id"),this.root.push(new Jp({abstractNumId:At(t),restartNumberingAfterBreak:0})),this.root.push(new $p("hybridMultilevel")),this.id=t;for(const i of r)this.root.push(new Hu(i))}}class tf extends et{constructor(t){super("w:abstractNumId"),this.root.push(new vt({val:t}))}}class ef extends pt{constructor(){super(...arguments),rt(this,"xmlKeys",{numId:"w:numId"})}}class Jn extends et{constructor(t){if(super("w:num"),rt(this,"numId"),rt(this,"reference"),rt(this,"instance"),this.numId=t.numId,this.reference=t.reference,this.instance=t.instance,this.root.push(new ef({numId:At(t.numId)})),this.root.push(new tf(At(t.abstractNumId))),t.overrideLevels&&t.overrideLevels.length)for(const r of t.overrideLevels)this.root.push(new Ku(r.num,r.start))}}class rf extends pt{constructor(){super(...arguments),rt(this,"xmlKeys",{ilvl:"w:ilvl"})}}class Ku extends et{constructor(t,r){super("w:lvlOverride"),this.root.push(new rf({ilvl:t})),r!==void 0&&this.root.push(new of(r))}}class nf extends pt{constructor(){super(...arguments),rt(this,"xmlKeys",{val:"w:val"})}}class of extends et{constructor(t){super("w:startOverride"),this.root.push(new nf({val:t}))}}class Vu extends et{constructor(t){super("w:numbering"),rt(this,"abstractNumberingMap",new Map),rt(this,"concreteNumberingMap",new Map),rt(this,"referenceConfigMap",new Map),rt(this,"abstractNumUniqueNumericId",xa()),rt(this,"concreteNumUniqueNumericId",_a()),this.root.push(new Le(["wpc","mc","o","r","m","v","wp14","wp","w10","w","w14","w15","wpg","wpi","wne","wps"],"w14 w15 wp14"));const r=new $n(this.abstractNumUniqueNumericId(),[{level:0,format:Wt.BULLET,text:"●",alignment:It.LEFT,style:{paragraph:{indent:{left:St(.5),hanging:St(.25)}}}},{level:1,format:Wt.BULLET,text:"○",alignment:It.LEFT,style:{paragraph:{indent:{left:St(1),hanging:St(.25)}}}},{level:2,format:Wt.BULLET,text:"■",alignment:It.LEFT,style:{paragraph:{indent:{left:2160,hanging:St(.25)}}}},{level:3,format:Wt.BULLET,text:"●",alignment:It.LEFT,style:{paragraph:{indent:{left:2880,hanging:St(.25)}}}},{level:4,format:Wt.BULLET,text:"○",alignment:It.LEFT,style:{paragraph:{indent:{left:3600,hanging:St(.25)}}}},{level:5,format:Wt.BULLET,text:"■",alignment:It.LEFT,style:{paragraph:{indent:{left:4320,hanging:St(.25)}}}},{level:6,format:Wt.BULLET,text:"●",alignment:It.LEFT,style:{paragraph:{indent:{left:5040,hanging:St(.25)}}}},{level:7,format:Wt.BULLET,text:"●",alignment:It.LEFT,style:{paragraph:{indent:{left:5760,hanging:St(.25)}}}},{level:8,format:Wt.BULLET,text:"●",alignment:It.LEFT,style:{paragraph:{indent:{left:6480,hanging:St(.25)}}}}]);this.concreteNumberingMap.set("default-bullet-numbering",new Jn({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 t.config)this.abstractNumberingMap.set(i.reference,new $n(this.abstractNumUniqueNumericId(),i.levels)),this.referenceConfigMap.set(i.reference,i.levels)}prepForXml(t){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(t)}createConcreteNumberingInstance(t,r){const i=this.abstractNumberingMap.get(t);if(!i)return;const p=`${t}-${r}`;if(this.concreteNumberingMap.has(p))return;const c=this.referenceConfigMap.get(t),h=c&&c[0].start,n={numId:this.concreteNumUniqueNumericId(),abstractNumId:i.id,reference:t,instance:r,overrideLevels:[h&&Number.isInteger(h)?{num:0,start:h}:{num:0,start:1}]};this.concreteNumberingMap.set(p,new Jn(n))}get ConcreteNumbering(){return Array.from(this.concreteNumberingMap.values())}get ReferenceConfig(){return Array.from(this.referenceConfigMap.values())}}class sf extends pt{constructor(){super(...arguments),rt(this,"xmlKeys",{version:"w:val",name:"w:name",uri:"w:uri"})}}class af extends et{constructor(t){super("w:compatSetting"),this.root.push(new sf({version:t,uri:"http://schemas.microsoft.com/office/word",name:"compatibilityMode"}))}}class uf extends et{constructor(t){super("w:compat"),t.version&&this.root.push(new af(t.version)),t.useSingleBorderforContiguousCells&&this.root.push(new ut("w:useSingleBorderforContiguousCells",t.useSingleBorderforContiguousCells)),t.wordPerfectJustification&&this.root.push(new ut("w:wpJustification",t.wordPerfectJustification)),t.noTabStopForHangingIndent&&this.root.push(new ut("w:noTabHangInd",t.noTabStopForHangingIndent)),t.noLeading&&this.root.push(new ut("w:noLeading",t.noLeading)),t.spaceForUnderline&&this.root.push(new ut("w:spaceForUL",t.spaceForUnderline)),t.noColumnBalance&&this.root.push(new ut("w:noColumnBalance",t.noColumnBalance)),t.balanceSingleByteDoubleByteWidth&&this.root.push(new ut("w:balanceSingleByteDoubleByteWidth",t.balanceSingleByteDoubleByteWidth)),t.noExtraLineSpacing&&this.root.push(new ut("w:noExtraLineSpacing",t.noExtraLineSpacing)),t.doNotLeaveBackslashAlone&&this.root.push(new ut("w:doNotLeaveBackslashAlone",t.doNotLeaveBackslashAlone)),t.underlineTrailingSpaces&&this.root.push(new ut("w:ulTrailSpace",t.underlineTrailingSpaces)),t.doNotExpandShiftReturn&&this.root.push(new ut("w:doNotExpandShiftReturn",t.doNotExpandShiftReturn)),t.spacingInWholePoints&&this.root.push(new ut("w:spacingInWholePoints",t.spacingInWholePoints)),t.lineWrapLikeWord6&&this.root.push(new ut("w:lineWrapLikeWord6",t.lineWrapLikeWord6)),t.printBodyTextBeforeHeader&&this.root.push(new ut("w:printBodyTextBeforeHeader",t.printBodyTextBeforeHeader)),t.printColorsBlack&&this.root.push(new ut("w:printColBlack",t.printColorsBlack)),t.spaceWidth&&this.root.push(new ut("w:wpSpaceWidth",t.spaceWidth)),t.showBreaksInFrames&&this.root.push(new ut("w:showBreaksInFrames",t.showBreaksInFrames)),t.subFontBySize&&this.root.push(new ut("w:subFontBySize",t.subFontBySize)),t.suppressBottomSpacing&&this.root.push(new ut("w:suppressBottomSpacing",t.suppressBottomSpacing)),t.suppressTopSpacing&&this.root.push(new ut("w:suppressTopSpacing",t.suppressTopSpacing)),t.suppressSpacingAtTopOfPage&&this.root.push(new ut("w:suppressSpacingAtTopOfPage",t.suppressSpacingAtTopOfPage)),t.suppressTopSpacingWP&&this.root.push(new ut("w:suppressTopSpacingWP",t.suppressTopSpacingWP)),t.suppressSpBfAfterPgBrk&&this.root.push(new ut("w:suppressSpBfAfterPgBrk",t.suppressSpBfAfterPgBrk)),t.swapBordersFacingPages&&this.root.push(new ut("w:swapBordersFacingPages",t.swapBordersFacingPages)),t.convertMailMergeEsc&&this.root.push(new ut("w:convMailMergeEsc",t.convertMailMergeEsc)),t.truncateFontHeightsLikeWP6&&this.root.push(new ut("w:truncateFontHeightsLikeWP6",t.truncateFontHeightsLikeWP6)),t.macWordSmallCaps&&this.root.push(new ut("w:mwSmallCaps",t.macWordSmallCaps)),t.usePrinterMetrics&&this.root.push(new ut("w:usePrinterMetrics",t.usePrinterMetrics)),t.doNotSuppressParagraphBorders&&this.root.push(new ut("w:doNotSuppressParagraphBorders",t.doNotSuppressParagraphBorders)),t.wrapTrailSpaces&&this.root.push(new ut("w:wrapTrailSpaces",t.wrapTrailSpaces)),t.footnoteLayoutLikeWW8&&this.root.push(new ut("w:footnoteLayoutLikeWW8",t.footnoteLayoutLikeWW8)),t.shapeLayoutLikeWW8&&this.root.push(new ut("w:shapeLayoutLikeWW8",t.shapeLayoutLikeWW8)),t.alignTablesRowByRow&&this.root.push(new ut("w:alignTablesRowByRow",t.alignTablesRowByRow)),t.forgetLastTabAlignment&&this.root.push(new ut("w:forgetLastTabAlignment",t.forgetLastTabAlignment)),t.adjustLineHeightInTable&&this.root.push(new ut("w:adjustLineHeightInTable",t.adjustLineHeightInTable)),t.autoSpaceLikeWord95&&this.root.push(new ut("w:autoSpaceLikeWord95",t.autoSpaceLikeWord95)),t.noSpaceRaiseLower&&this.root.push(new ut("w:noSpaceRaiseLower",t.noSpaceRaiseLower)),t.doNotUseHTMLParagraphAutoSpacing&&this.root.push(new ut("w:doNotUseHTMLParagraphAutoSpacing",t.doNotUseHTMLParagraphAutoSpacing)),t.layoutRawTableWidth&&this.root.push(new ut("w:layoutRawTableWidth",t.layoutRawTableWidth)),t.layoutTableRowsApart&&this.root.push(new ut("w:layoutTableRowsApart",t.layoutTableRowsApart)),t.useWord97LineBreakRules&&this.root.push(new ut("w:useWord97LineBreakRules",t.useWord97LineBreakRules)),t.doNotBreakWrappedTables&&this.root.push(new ut("w:doNotBreakWrappedTables",t.doNotBreakWrappedTables)),t.doNotSnapToGridInCell&&this.root.push(new ut("w:doNotSnapToGridInCell",t.doNotSnapToGridInCell)),t.selectFieldWithFirstOrLastCharacter&&this.root.push(new ut("w:selectFldWithFirstOrLastChar",t.selectFieldWithFirstOrLastCharacter)),t.applyBreakingRules&&this.root.push(new ut("w:applyBreakingRules",t.applyBreakingRules)),t.doNotWrapTextWithPunctuation&&this.root.push(new ut("w:doNotWrapTextWithPunct",t.doNotWrapTextWithPunctuation)),t.doNotUseEastAsianBreakRules&&this.root.push(new ut("w:doNotUseEastAsianBreakRules",t.doNotUseEastAsianBreakRules)),t.useWord2002TableStyleRules&&this.root.push(new ut("w:useWord2002TableStyleRules",t.useWord2002TableStyleRules)),t.growAutofit&&this.root.push(new ut("w:growAutofit",t.growAutofit)),t.useFELayout&&this.root.push(new ut("w:useFELayout",t.useFELayout)),t.useNormalStyleForList&&this.root.push(new ut("w:useNormalStyleForList",t.useNormalStyleForList)),t.doNotUseIndentAsNumberingTabStop&&this.root.push(new ut("w:doNotUseIndentAsNumberingTabStop",t.doNotUseIndentAsNumberingTabStop)),t.useAlternateEastAsianLineBreakRules&&this.root.push(new ut("w:useAltKinsokuLineBreakRules",t.useAlternateEastAsianLineBreakRules)),t.allowSpaceOfSameStyleInTable&&this.root.push(new ut("w:allowSpaceOfSameStyleInTable",t.allowSpaceOfSameStyleInTable)),t.doNotSuppressIndentation&&this.root.push(new ut("w:doNotSuppressIndentation",t.doNotSuppressIndentation)),t.doNotAutofitConstrainedTables&&this.root.push(new ut("w:doNotAutofitConstrainedTables",t.doNotAutofitConstrainedTables)),t.autofitToFirstFixedWidthCell&&this.root.push(new ut("w:autofitToFirstFixedWidthCell",t.autofitToFirstFixedWidthCell)),t.underlineTabInNumberingList&&this.root.push(new ut("w:underlineTabInNumList",t.underlineTabInNumberingList)),t.displayHangulFixedWidth&&this.root.push(new ut("w:displayHangulFixedWidth",t.displayHangulFixedWidth)),t.splitPgBreakAndParaMark&&this.root.push(new ut("w:splitPgBreakAndParaMark",t.splitPgBreakAndParaMark)),t.doNotVerticallyAlignCellWithSp&&this.root.push(new ut("w:doNotVertAlignCellWithSp",t.doNotVerticallyAlignCellWithSp)),t.doNotBreakConstrainedForcedTable&&this.root.push(new ut("w:doNotBreakConstrainedForcedTable",t.doNotBreakConstrainedForcedTable)),t.ignoreVerticalAlignmentInTextboxes&&this.root.push(new ut("w:doNotVertAlignInTxbx",t.ignoreVerticalAlignmentInTextboxes)),t.useAnsiKerningPairs&&this.root.push(new ut("w:useAnsiKerningPairs",t.useAnsiKerningPairs)),t.cachedColumnBalance&&this.root.push(new ut("w:cachedColBalance",t.cachedColumnBalance))}}class cf extends pt{constructor(){super(...arguments),rt(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 lf extends et{constructor(t){var r,i,p,c,h,n,g,T;super("w:settings"),this.root.push(new cf({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 ut("w:displayBackgroundShape",!0)),t.trackRevisions!==void 0&&this.root.push(new ut("w:trackRevisions",t.trackRevisions)),t.evenAndOddHeaders!==void 0&&this.root.push(new ut("w:evenAndOddHeaders",t.evenAndOddHeaders)),t.updateFields!==void 0&&this.root.push(new ut("w:updateFields",t.updateFields)),t.defaultTabStop!==void 0&&this.root.push(new me("w:defaultTabStop",t.defaultTabStop)),((r=t.hyphenation)==null?void 0:r.autoHyphenation)!==void 0&&this.root.push(new ut("w:autoHyphenation",t.hyphenation.autoHyphenation)),((i=t.hyphenation)==null?void 0:i.hyphenationZone)!==void 0&&this.root.push(new me("w:hyphenationZone",t.hyphenation.hyphenationZone)),((p=t.hyphenation)==null?void 0:p.consecutiveHyphenLimit)!==void 0&&this.root.push(new me("w:consecutiveHyphenLimit",t.hyphenation.consecutiveHyphenLimit)),((c=t.hyphenation)==null?void 0:c.doNotHyphenateCaps)!==void 0&&this.root.push(new ut("w:doNotHyphenateCaps",t.hyphenation.doNotHyphenateCaps)),this.root.push(new uf(Ht(mt({},(h=t.compatibility)!=null?h:{}),{version:(T=(g=(n=t.compatibility)==null?void 0:n.version)!=null?g:t.compatibilityModeVersion)!=null?T:15})))}}class Gu extends pt{constructor(){super(...arguments),rt(this,"xmlKeys",{val:"w:val"})}}class hf extends et{constructor(t){super("w:name"),this.root.push(new Gu({val:t}))}}class pf extends et{constructor(t){super("w:uiPriority"),this.root.push(new Gu({val:At(t)}))}}class ff extends pt{constructor(){super(...arguments),rt(this,"xmlKeys",{type:"w:type",styleId:"w:styleId",default:"w:default",customStyle:"w:customStyle"})}}class Zu extends et{constructor(t,r){super("w:style"),this.root.push(new ff(t)),r.name&&this.root.push(new hf(r.name)),r.basedOn&&this.root.push(new Yt("w:basedOn",r.basedOn)),r.next&&this.root.push(new Yt("w:next",r.next)),r.link&&this.root.push(new Yt("w:link",r.link)),r.uiPriority!==void 0&&this.root.push(new pf(r.uiPriority)),r.semiHidden!==void 0&&this.root.push(new ut("w:semiHidden",r.semiHidden)),r.unhideWhenUsed!==void 0&&this.root.push(new ut("w:unhideWhenUsed",r.unhideWhenUsed)),r.quickFormat!==void 0&&this.root.push(new ut("w:qFormat",r.quickFormat))}}class Me extends Zu{constructor(t){super({type:"paragraph",styleId:t.id},t),rt(this,"paragraphProperties"),rt(this,"runProperties"),this.paragraphProperties=new le(t.paragraph),this.runProperties=new Gt(t.run),this.root.push(this.paragraphProperties),this.root.push(this.runProperties)}}class je extends Zu{constructor(t){super({type:"character",styleId:t.id},mt({uiPriority:99,unhideWhenUsed:!0},t)),rt(this,"runProperties"),this.runProperties=new Gt(t.run),this.root.push(this.runProperties)}}class ee extends Me{constructor(t){super(mt({basedOn:"Normal",next:"Normal",quickFormat:!0},t))}}class df extends ee{constructor(t){super(mt({id:"Title",name:"Title"},t))}}class mf extends ee{constructor(t){super(mt({id:"Heading1",name:"Heading 1"},t))}}class gf extends ee{constructor(t){super(mt({id:"Heading2",name:"Heading 2"},t))}}class wf extends ee{constructor(t){super(mt({id:"Heading3",name:"Heading 3"},t))}}class yf extends ee{constructor(t){super(mt({id:"Heading4",name:"Heading 4"},t))}}class bf extends ee{constructor(t){super(mt({id:"Heading5",name:"Heading 5"},t))}}class vf extends ee{constructor(t){super(mt({id:"Heading6",name:"Heading 6"},t))}}class xf extends ee{constructor(t){super(mt({id:"Strong",name:"Strong"},t))}}class _f extends Me{constructor(t){super(mt({id:"ListParagraph",name:"List Paragraph",basedOn:"Normal",quickFormat:!0},t))}}class Ef extends Me{constructor(t){super(mt({id:"FootnoteText",name:"footnote text",link:"FootnoteTextChar",basedOn:"Normal",uiPriority:99,semiHidden:!0,unhideWhenUsed:!0,paragraph:{spacing:{after:0,line:240,lineRule:tr.AUTO}},run:{size:20}},t))}}class Tf extends je{constructor(t){super(mt({id:"FootnoteReference",name:"footnote reference",basedOn:"DefaultParagraphFont",semiHidden:!0,run:{superScript:!0}},t))}}class Af extends je{constructor(t){super(mt({id:"FootnoteTextChar",name:"Footnote Text Char",basedOn:"DefaultParagraphFont",link:"FootnoteText",semiHidden:!0,run:{size:20}},t))}}class kf extends je{constructor(t){super(mt({id:"Hyperlink",name:"Hyperlink",basedOn:"DefaultParagraphFont",run:{color:"0563C1",underline:{type:Sn.SINGLE}}},t))}}class ar extends et{constructor(t){if(super("w:styles"),t.initialStyles&&this.root.push(t.initialStyles),t.importedStyles)for(const r of t.importedStyles)this.root.push(r);if(t.paragraphStyles)for(const r of t.paragraphStyles)this.root.push(new Me(r));if(t.characterStyles)for(const r of t.characterStyles)this.root.push(new je(r))}}class Xu extends et{constructor(t){super("w:pPrDefault"),this.root.push(new le(t))}}class qu extends et{constructor(t){super("w:rPrDefault"),this.root.push(new Gt(t))}}class Yu extends et{constructor(t){super("w:docDefaults"),rt(this,"runPropertiesDefaults"),rt(this,"paragraphPropertiesDefaults"),this.runPropertiesDefaults=new qu(t.run),this.paragraphPropertiesDefaults=new Xu(t.paragraph),this.root.push(this.runPropertiesDefaults),this.root.push(this.paragraphPropertiesDefaults)}}class Sf{newInstance(t){const r=Ps.xml2js(t,{compact:!1});let i;for(const c of r.elements||[])c.name==="w:styles"&&(i=c);if(i===void 0)throw new Error("can not find styles element");const p=i.elements||[];return new ar({initialStyles:new Bs(i.attributes),importedStyles:p.map(c=>Xe(c))})}}class Qu{newInstance(t={}){var r;return{initialStyles:new Le(["mc","r","w","w14","w15"],"w14 w15"),importedStyles:[new Yu((r=t.document)!=null?r:{}),new df(mt({run:{size:56}},t.title)),new mf(mt({run:{color:"2E74B5",size:32}},t.heading1)),new gf(mt({run:{color:"2E74B5",size:26}},t.heading2)),new wf(mt({run:{color:"1F4D78",size:24}},t.heading3)),new yf(mt({run:{color:"2E74B5",italics:!0}},t.heading4)),new bf(mt({run:{color:"2E74B5"}},t.heading5)),new vf(mt({run:{color:"1F4D78"}},t.heading6)),new xf(mt({run:{bold:!0}},t.strong)),new _f(t.listParagraph||{}),new kf(t.hyperlink||{}),new Tf(t.footnoteReference||{}),new Ef(t.footnoteText||{}),new Af(t.footnoteTextChar||{})]}}}class $u{constructor(t){rt(this,"currentRelationshipId",1),rt(this,"documentWrapper"),rt(this,"headers",[]),rt(this,"footers",[]),rt(this,"coreProperties"),rt(this,"numbering"),rt(this,"media"),rt(this,"fileRelationships"),rt(this,"footnotesWrapper"),rt(this,"settings"),rt(this,"contentTypes"),rt(this,"customProperties"),rt(this,"appProperties"),rt(this,"styles"),rt(this,"comments"),rt(this,"fontWrapper");var r,i,p,c,h,n,g,T,_,S,I,d;if(this.coreProperties=new xp(Ht(mt({},t),{creator:(r=t.creator)!=null?r:"Un-named",revision:(i=t.revision)!=null?i:1,lastModifiedBy:(p=t.lastModifiedBy)!=null?p:"Un-named"})),this.numbering=new Vu(t.numbering?t.numbering:{config:[]}),this.comments=new Za((c=t.comments)!=null?c:{children:[]}),this.fileRelationships=new ue,this.customProperties=new Sp((h=t.customProperties)!=null?h:[]),this.appProperties=new gp,this.footnotesWrapper=new Up,this.contentTypes=new vp,this.documentWrapper=new _u({background:t.background}),this.settings=new lf({compatibilityModeVersion:t.compatabilityModeVersion,compatibility:t.compatibility,evenAndOddHeaders:!!t.evenAndOddHeaderAndFooters,trackRevisions:(n=t.features)==null?void 0:n.trackRevisions,updateFields:(g=t.features)==null?void 0:g.updateFields,defaultTabStop:t.defaultTabStop,hyphenation:{autoHyphenation:(T=t.hyphenation)==null?void 0:T.autoHyphenation,hyphenationZone:(_=t.hyphenation)==null?void 0:_.hyphenationZone,consecutiveHyphenLimit:(S=t.hyphenation)==null?void 0:S.consecutiveHyphenLimit,doNotHyphenateCaps:(I=t.hyphenation)==null?void 0:I.doNotHyphenateCaps}}),this.media=new Wu,t.externalStyles!==void 0){const A=new Sf;this.styles=A.newInstance(t.externalStyles)}else if(t.styles){const A=new Qu().newInstance(t.styles.default);this.styles=new ar(mt(mt({},A),t.styles))}else{const A=new Qu;this.styles=new ar(A.newInstance())}this.addDefaultRelationships();for(const A of t.sections)this.addSection(A);if(t.footnotes)for(const A in t.footnotes)this.footnotesWrapper.View.createFootNote(parseFloat(A),t.footnotes[A].children);this.fontWrapper=new Np((d=t.fonts)!=null?d:[])}addSection({headers:t={},footers:r={},children:i,properties:p}){this.documentWrapper.View.Body.addSection(Ht(mt({},p),{headerWrapperGroup:{default:t.default?this.createHeader(t.default):void 0,first:t.first?this.createHeader(t.first):void 0,even:t.even?this.createHeader(t.even):void 0},footerWrapperGroup:{default: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 c of i)this.documentWrapper.View.add(c)}createHeader(t){const r=new zu(this.media,this.currentRelationshipId++);for(const i of t.options.children)r.add(i);return this.addHeaderToDocument(r),r}createFooter(t){const r=new Lu(this.media,this.currentRelationshipId++);for(const i of t.options.children)r.add(i);return this.addFooterToDocument(r),r}addHeaderToDocument(t,r=ce.DEFAULT){this.headers.push({header:t,type:r}),this.documentWrapper.Relationships.createRelationship(t.View.ReferenceId,"http://schemas.openxmlformats.org/officeDocument/2006/relationships/header",`header${this.headers.length}.xml`),this.contentTypes.addHeader(this.headers.length)}addFooterToDocument(t,r=ce.DEFAULT){this.footers.push({footer:t,type:r}),this.documentWrapper.Relationships.createRelationship(t.View.ReferenceId,"http://schemas.openxmlformats.org/officeDocument/2006/relationships/footer",`footer${this.footers.length}.xml`),this.contentTypes.addFooter(this.footers.length)}addDefaultRelationships(){this.fileRelationships.createRelationship(1,"http://schemas.openxmlformats.org/officeDocument/2006/relationships/officeDocument","word/document.xml"),this.fileRelationships.createRelationship(2,"http://schemas.openxmlformats.org/package/2006/relationships/metadata/core-properties","docProps/core.xml"),this.fileRelationships.createRelationship(3,"http://schemas.openxmlformats.org/officeDocument/2006/relationships/extended-properties","docProps/app.xml"),this.fileRelationships.createRelationship(4,"http://schemas.openxmlformats.org/officeDocument/2006/relationships/custom-properties","docProps/custom.xml"),this.documentWrapper.Relationships.createRelationship(this.currentRelationshipId++,"http://schemas.openxmlformats.org/officeDocument/2006/relationships/styles","styles.xml"),this.documentWrapper.Relationships.createRelationship(this.currentRelationshipId++,"http://schemas.openxmlformats.org/officeDocument/2006/relationships/numbering","numbering.xml"),this.documentWrapper.Relationships.createRelationship(this.currentRelationshipId++,"http://schemas.openxmlformats.org/officeDocument/2006/relationships/footnotes","footnotes.xml"),this.documentWrapper.Relationships.createRelationship(this.currentRelationshipId++,"http://schemas.openxmlformats.org/officeDocument/2006/relationships/settings","settings.xml"),this.documentWrapper.Relationships.createRelationship(this.currentRelationshipId++,"http://schemas.openxmlformats.org/officeDocument/2006/relationships/comments","comments.xml")}get Document(){return this.documentWrapper}get Styles(){return this.styles}get CoreProperties(){return this.coreProperties}get Numbering(){return this.numbering}get Media(){return this.media}get FileRelationships(){return this.fileRelationships}get Headers(){return this.headers.map(t=>t.header)}get Footers(){return this.footers.map(t=>t.footer)}get ContentTypes(){return this.contentTypes}get CustomProperties(){return this.customProperties}get AppProperties(){return this.appProperties}get FootNotes(){return this.footnotesWrapper}get Settings(){return this.settings}get Comments(){return this.comments}get FontTable(){return this.fontWrapper}}class Cf{constructor(t={children:[]}){rt(this,"options"),this.options=t}}class If{constructor(t={children:[]}){rt(this,"options"),this.options=t}}class Ju extends pt{constructor(){super(...arguments),rt(this,"xmlKeys",{id:"w:id"})}}class Rf extends et{constructor(t){super("w:footnoteReference"),this.root.push(new Ju({id:t}))}}class Nf extends et{constructor(t){super("w:ins"),this.root.push(new kn({id:t.id,author:t.author,date:t.date})),this.addChildElement(new Je(t))}}class Of extends et{constructor(){super("w:delInstrText"),this.root.push(new Mt({space:Rt.PRESERVE})),this.root.push("PAGE")}}class Df extends et{constructor(){super("w:delInstrText"),this.root.push(new Mt({space:Rt.PRESERVE})),this.root.push("NUMPAGES")}}class Pf extends et{constructor(){super("w:delInstrText"),this.root.push(new Mt({space:Rt.PRESERVE})),this.root.push("SECTIONPAGES")}}class tc extends et{constructor(t){super("w:delText"),this.root.push(new Mt({space:Rt.PRESERVE})),this.root.push(t)}}class Ff extends et{constructor(t){super("w:del"),rt(this,"deletedTextRunWrapper"),this.root.push(new kn({id:t.id,author:t.author,date:t.date})),this.deletedTextRunWrapper=new Bf(t),this.addChildElement(this.deletedTextRunWrapper)}}class Bf extends et{constructor(t){if(super("w:r"),this.root.push(new Gt(t)),t.children)for(const r of t.children){if(typeof r=="string"){switch(r){case $t.CURRENT:this.root.push(new ie),this.root.push(new Of),this.root.push(new oe),this.root.push(new se);break;case $t.TOTAL_PAGES:this.root.push(new ie),this.root.push(new Df),this.root.push(new oe),this.root.push(new se);break;case $t.TOTAL_PAGES_IN_SECTION:this.root.push(new ie),this.root.push(new Pf),this.root.push(new oe),this.root.push(new se);break;default:this.root.push(new tc(r));break}continue}this.root.push(r)}else t.text&&this.root.push(new tc(t.text));if(t.break)for(let r=0;r<t.break;r++)this.root.splice(1,0,new qs)}}var Lf=ln();function ur(e){throw new Error('Could not dynamically require "'+e+'". Please configure the dynamicRequireTargets or/and ignoreDynamicRequires option of @rollup/plugin-commonjs appropriately for this require call to work.')}var ec={exports:{}},rc;function Mf(){return rc||(rc=1,function(e,t){(function(r){e.exports=r()})(function(){return function r(i,p,c){function h(T,_){if(!p[T]){if(!i[T]){var S=typeof ur=="function"&&ur;if(!_&&S)return S(T,!0);if(n)return n(T,!0);var I=new Error("Cannot find module '"+T+"'");throw I.code="MODULE_NOT_FOUND",I}var d=p[T]={exports:{}};i[T][0].call(d.exports,function(A){var v=i[T][1][A];return h(v||A)},d,d.exports,r,i,p,c)}return p[T].exports}for(var n=typeof ur=="function"&&ur,g=0;g<c.length;g++)h(c[g]);return h}({1:[function(r,i,p){var c=r("./utils"),h=r("./support"),n="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=";p.encode=function(g){for(var T,_,S,I,d,A,v,R=[],u=0,m=g.length,b=m,l=c.getTypeOf(g)!=="string";u<g.length;)b=m-u,S=l?(T=g[u++],_=u<m?g[u++]:0,u<m?g[u++]:0):(T=g.charCodeAt(u++),_=u<m?g.charCodeAt(u++):0,u<m?g.charCodeAt(u++):0),I=T>>2,d=(3&T)<<4|_>>4,A=1<b?(15&_)<<2|S>>6:64,v=2<b?63&S:64,R.push(n.charAt(I)+n.charAt(d)+n.charAt(A)+n.charAt(v));return R.join("")},p.decode=function(g){var T,_,S,I,d,A,v=0,R=0,u="data:";if(g.substr(0,u.length)===u)throw new Error("Invalid base64 input, it looks like a data url.");var m,b=3*(g=g.replace(/[^A-Za-z0-9+/=]/g,"")).length/4;if(g.charAt(g.length-1)===n.charAt(64)&&b--,g.charAt(g.length-2)===n.charAt(64)&&b--,b%1!=0)throw new Error("Invalid base64 input, bad content length.");for(m=h.uint8array?new Uint8Array(0|b):new Array(0|b);v<g.length;)T=n.indexOf(g.charAt(v++))<<2|(I=n.indexOf(g.charAt(v++)))>>4,_=(15&I)<<4|(d=n.indexOf(g.charAt(v++)))>>2,S=(3&d)<<6|(A=n.indexOf(g.charAt(v++))),m[R++]=T,d!==64&&(m[R++]=_),A!==64&&(m[R++]=S);return m}},{"./support":30,"./utils":32}],2:[function(r,i,p){var c=r("./external"),h=r("./stream/DataWorker"),n=r("./stream/Crc32Probe"),g=r("./stream/DataLengthProbe");function T(_,S,I,d,A){this.compressedSize=_,this.uncompressedSize=S,this.crc32=I,this.compression=d,this.compressedContent=A}T.prototype={getContentWorker:function(){var _=new h(c.Promise.resolve(this.compressedContent)).pipe(this.compression.uncompressWorker()).pipe(new g("data_length")),S=this;return _.on("end",function(){if(this.streamInfo.data_length!==S.uncompressedSize)throw new Error("Bug : uncompressed data size mismatch")}),_},getCompressedWorker:function(){return new h(c.Promise.resolve(this.compressedContent)).withStreamInfo("compressedSize",this.compressedSize).withStreamInfo("uncompressedSize",this.uncompressedSize).withStreamInfo("crc32",this.crc32).withStreamInfo("compression",this.compression)}},T.createWorkerFrom=function(_,S,I){return _.pipe(new n).pipe(new g("uncompressedSize")).pipe(S.compressWorker(I)).pipe(new g("compressedSize")).withStreamInfo("compression",S)},i.exports=T},{"./external":6,"./stream/Crc32Probe":25,"./stream/DataLengthProbe":26,"./stream/DataWorker":27}],3:[function(r,i,p){var c=r("./stream/GenericWorker");p.STORE={magic:"\0\0",compressWorker:function(){return new c("STORE compression")},uncompressWorker:function(){return new c("STORE decompression")}},p.DEFLATE=r("./flate")},{"./flate":7,"./stream/GenericWorker":28}],4:[function(r,i,p){var c=r("./utils"),h=function(){for(var n,g=[],T=0;T<256;T++){n=T;for(var _=0;_<8;_++)n=1&n?3988292384^n>>>1:n>>>1;g[T]=n}return g}();i.exports=function(n,g){return n!==void 0&&n.length?c.getTypeOf(n)!=="string"?function(T,_,S,I){var d=h,A=I+S;T^=-1;for(var v=I;v<A;v++)T=T>>>8^d[255&(T^_[v])];return-1^T}(0|g,n,n.length,0):function(T,_,S,I){var d=h,A=I+S;T^=-1;for(var v=I;v<A;v++)T=T>>>8^d[255&(T^_.charCodeAt(v))];return-1^T}(0|g,n,n.length,0):0}},{"./utils":32}],5:[function(r,i,p){p.base64=!1,p.binary=!1,p.dir=!1,p.createFolders=!0,p.date=null,p.compression=null,p.compressionOptions=null,p.comment=null,p.unixPermissions=null,p.dosPermissions=null},{}],6:[function(r,i,p){var c=null;c=typeof Promise<"u"?Promise:r("lie"),i.exports={Promise:c}},{lie:37}],7:[function(r,i,p){var c=typeof Uint8Array<"u"&&typeof Uint16Array<"u"&&typeof Uint32Array<"u",h=r("pako"),n=r("./utils"),g=r("./stream/GenericWorker"),T=c?"uint8array":"array";function _(S,I){g.call(this,"FlateWorker/"+S),this._pako=null,this._pakoAction=S,this._pakoOptions=I,this.meta={}}p.magic="\b\0",n.inherits(_,g),_.prototype.processChunk=function(S){this.meta=S.meta,this._pako===null&&this._createPako(),this._pako.push(n.transformTo(T,S.data),!1)},_.prototype.flush=function(){g.prototype.flush.call(this),this._pako===null&&this._createPako(),this._pako.push([],!0)},_.prototype.cleanUp=function(){g.prototype.cleanUp.call(this),this._pako=null},_.prototype._createPako=function(){this._pako=new h[this._pakoAction]({raw:!0,level:this._pakoOptions.level||-1});var S=this;this._pako.onData=function(I){S.push({data:I,meta:S.meta})}},p.compressWorker=function(S){return new _("Deflate",S)},p.uncompressWorker=function(){return new _("Inflate",{})}},{"./stream/GenericWorker":28,"./utils":32,pako:38}],8:[function(r,i,p){function c(d,A){var v,R="";for(v=0;v<A;v++)R+=String.fromCharCode(255&d),d>>>=8;return R}function h(d,A,v,R,u,m){var b,l,k=d.file,F=d.compression,B=m!==T.utf8encode,U=n.transformTo("string",m(k.name)),C=n.transformTo("string",T.utf8encode(k.name)),Q=k.comment,at=n.transformTo("string",m(Q)),N=n.transformTo("string",T.utf8encode(Q)),j=C.length!==k.name.length,y=N.length!==Q.length,W="",$="",K="",it=k.dir,J=k.date,lt={crc32:0,compressedSize:0,uncompressedSize:0};A&&!v||(lt.crc32=d.crc32,lt.compressedSize=d.compressedSize,lt.uncompressedSize=d.uncompressedSize);var X=0;A&&(X|=8),B||!j&&!y||(X|=2048);var D=0,Z=0;it&&(D|=16),u==="UNIX"?(Z=798,D|=function(nt,G){var E=nt;return nt||(E=G?16893:33204),(65535&E)<<16}(k.unixPermissions,it)):(Z=20,D|=function(nt){return 63&(nt||0)}(k.dosPermissions)),b=J.getUTCHours(),b<<=6,b|=J.getUTCMinutes(),b<<=5,b|=J.getUTCSeconds()/2,l=J.getUTCFullYear()-1980,l<<=4,l|=J.getUTCMonth()+1,l<<=5,l|=J.getUTCDate(),j&&($=c(1,1)+c(_(U),4)+C,W+="up"+c($.length,2)+$),y&&(K=c(1,1)+c(_(at),4)+N,W+="uc"+c(K.length,2)+K);var Y="";return Y+=`
21
+ \0`,Y+=c(X,2),Y+=F.magic,Y+=c(b,2),Y+=c(l,2),Y+=c(lt.crc32,4),Y+=c(lt.compressedSize,4),Y+=c(lt.uncompressedSize,4),Y+=c(U.length,2),Y+=c(W.length,2),{fileRecord:S.LOCAL_FILE_HEADER+Y+U+W,dirRecord:S.CENTRAL_FILE_HEADER+c(Z,2)+Y+c(at.length,2)+"\0\0\0\0"+c(D,4)+c(R,4)+U+W+at}}var n=r("../utils"),g=r("../stream/GenericWorker"),T=r("../utf8"),_=r("../crc32"),S=r("../signature");function I(d,A,v,R){g.call(this,"ZipFileWorker"),this.bytesWritten=0,this.zipComment=A,this.zipPlatform=v,this.encodeFileName=R,this.streamFiles=d,this.accumulate=!1,this.contentBuffer=[],this.dirRecords=[],this.currentSourceOffset=0,this.entriesCount=0,this.currentFile=null,this._sources=[]}n.inherits(I,g),I.prototype.push=function(d){var A=d.meta.percent||0,v=this.entriesCount,R=this._sources.length;this.accumulate?this.contentBuffer.push(d):(this.bytesWritten+=d.data.length,g.prototype.push.call(this,{data:d.data,meta:{currentFile:this.currentFile,percent:v?(A+100*(v-R-1))/v:100}}))},I.prototype.openedSource=function(d){this.currentSourceOffset=this.bytesWritten,this.currentFile=d.file.name;var A=this.streamFiles&&!d.file.dir;if(A){var v=h(d,A,!1,this.currentSourceOffset,this.zipPlatform,this.encodeFileName);this.push({data:v.fileRecord,meta:{percent:0}})}else this.accumulate=!0},I.prototype.closedSource=function(d){this.accumulate=!1;var A=this.streamFiles&&!d.file.dir,v=h(d,A,!0,this.currentSourceOffset,this.zipPlatform,this.encodeFileName);if(this.dirRecords.push(v.dirRecord),A)this.push({data:function(R){return S.DATA_DESCRIPTOR+c(R.crc32,4)+c(R.compressedSize,4)+c(R.uncompressedSize,4)}(d),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 d=this.bytesWritten,A=0;A<this.dirRecords.length;A++)this.push({data:this.dirRecords[A],meta:{percent:100}});var v=this.bytesWritten-d,R=function(u,m,b,l,k){var F=n.transformTo("string",k(l));return S.CENTRAL_DIRECTORY_END+"\0\0\0\0"+c(u,2)+c(u,2)+c(m,4)+c(b,4)+c(F.length,2)+F}(this.dirRecords.length,v,d,this.zipComment,this.encodeFileName);this.push({data:R,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(d){this._sources.push(d);var A=this;return d.on("data",function(v){A.processChunk(v)}),d.on("end",function(){A.closedSource(A.previous.streamInfo),A._sources.length?A.prepareNextSource():A.end()}),d.on("error",function(v){A.error(v)}),this},I.prototype.resume=function(){return!!g.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(d){var A=this._sources;if(!g.prototype.error.call(this,d))return!1;for(var v=0;v<A.length;v++)try{A[v].error(d)}catch{}return!0},I.prototype.lock=function(){g.prototype.lock.call(this);for(var d=this._sources,A=0;A<d.length;A++)d[A].lock()},i.exports=I},{"../crc32":4,"../signature":23,"../stream/GenericWorker":28,"../utf8":31,"../utils":32}],9:[function(r,i,p){var c=r("../compressions"),h=r("./ZipFileWorker");p.generateWorker=function(n,g,T){var _=new h(g.streamFiles,T,g.platform,g.encodeFileName),S=0;try{n.forEach(function(I,d){S++;var A=function(m,b){var l=m||b,k=c[l];if(!k)throw new Error(l+" is not a valid compression method !");return k}(d.options.compression,g.compression),v=d.options.compressionOptions||g.compressionOptions||{},R=d.dir,u=d.date;d._compressWorker(A,v).withStreamInfo("file",{name:I,dir:R,date:u,comment:d.comment||"",unixPermissions:d.unixPermissions,dosPermissions:d.dosPermissions}).pipe(_)}),_.entriesCount=S}catch(I){_.error(I)}return _}},{"../compressions":3,"./ZipFileWorker":8}],10:[function(r,i,p){function c(){if(!(this instanceof c))return new c;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 h=new c;for(var n in this)typeof this[n]!="function"&&(h[n]=this[n]);return h}}(c.prototype=r("./object")).loadAsync=r("./load"),c.support=r("./support"),c.defaults=r("./defaults"),c.version="3.10.1",c.loadAsync=function(h,n){return new c().loadAsync(h,n)},c.external=r("./external"),i.exports=c},{"./defaults":5,"./external":6,"./load":11,"./object":15,"./support":30}],11:[function(r,i,p){var c=r("./utils"),h=r("./external"),n=r("./utf8"),g=r("./zipEntries"),T=r("./stream/Crc32Probe"),_=r("./nodejsUtils");function S(I){return new h.Promise(function(d,A){var v=I.decompressed.getContentWorker().pipe(new T);v.on("error",function(R){A(R)}).on("end",function(){v.streamInfo.crc32!==I.decompressed.crc32?A(new Error("Corrupted zip : CRC32 mismatch")):d()}).resume()})}i.exports=function(I,d){var A=this;return d=c.extend(d||{},{base64:!1,checkCRC32:!1,optimizedBinaryString:!1,createFolders:!1,decodeFileName:n.utf8decode}),_.isNode&&_.isStream(I)?h.Promise.reject(new Error("JSZip can't accept a stream when loading a zip file.")):c.prepareContent("the loaded zip file",I,!0,d.optimizedBinaryString,d.base64).then(function(v){var R=new g(d);return R.load(v),R}).then(function(v){var R=[h.Promise.resolve(v)],u=v.files;if(d.checkCRC32)for(var m=0;m<u.length;m++)R.push(S(u[m]));return h.Promise.all(R)}).then(function(v){for(var R=v.shift(),u=R.files,m=0;m<u.length;m++){var b=u[m],l=b.fileNameStr,k=c.resolve(b.fileNameStr);A.file(k,b.decompressed,{binary:!0,optimizedBinaryString:!0,date:b.date,dir:b.dir,comment:b.fileCommentStr.length?b.fileCommentStr:null,unixPermissions:b.unixPermissions,dosPermissions:b.dosPermissions,createFolders:d.createFolders}),b.dir||(A.file(k).unsafeOriginalName=l)}return R.zipComment.length&&(A.comment=R.zipComment),A})}},{"./external":6,"./nodejsUtils":14,"./stream/Crc32Probe":25,"./utf8":31,"./utils":32,"./zipEntries":33}],12:[function(r,i,p){var c=r("../utils"),h=r("../stream/GenericWorker");function n(g,T){h.call(this,"Nodejs stream input adapter for "+g),this._upstreamEnded=!1,this._bindStream(T)}c.inherits(n,h),n.prototype._bindStream=function(g){var T=this;(this._stream=g).pause(),g.on("data",function(_){T.push({data:_,meta:{percent:0}})}).on("error",function(_){T.isPaused?this.generatedError=_:T.error(_)}).on("end",function(){T.isPaused?T._upstreamEnded=!0:T.end()})},n.prototype.pause=function(){return!!h.prototype.pause.call(this)&&(this._stream.pause(),!0)},n.prototype.resume=function(){return!!h.prototype.resume.call(this)&&(this._upstreamEnded?this.end():this._stream.resume(),!0)},i.exports=n},{"../stream/GenericWorker":28,"../utils":32}],13:[function(r,i,p){var c=r("readable-stream").Readable;function h(n,g,T){c.call(this,g),this._helper=n;var _=this;n.on("data",function(S,I){_.push(S)||_._helper.pause(),T&&T(I)}).on("error",function(S){_.emit("error",S)}).on("end",function(){_.push(null)})}r("../utils").inherits(h,c),h.prototype._read=function(){this._helper.resume()},i.exports=h},{"../utils":32,"readable-stream":16}],14:[function(r,i,p){i.exports={isNode:typeof Buffer<"u",newBufferFrom:function(c,h){if(Buffer.from&&Buffer.from!==Uint8Array.from)return Buffer.from(c,h);if(typeof c=="number")throw new Error('The "data" argument must not be a number');return new Buffer(c,h)},allocBuffer:function(c){if(Buffer.alloc)return Buffer.alloc(c);var h=new Buffer(c);return h.fill(0),h},isBuffer:function(c){return Buffer.isBuffer(c)},isStream:function(c){return c&&typeof c.on=="function"&&typeof c.pause=="function"&&typeof c.resume=="function"}}},{}],15:[function(r,i,p){function c(k,F,B){var U,C=n.getTypeOf(F),Q=n.extend(B||{},_);Q.date=Q.date||new Date,Q.compression!==null&&(Q.compression=Q.compression.toUpperCase()),typeof Q.unixPermissions=="string"&&(Q.unixPermissions=parseInt(Q.unixPermissions,8)),Q.unixPermissions&&16384&Q.unixPermissions&&(Q.dir=!0),Q.dosPermissions&&16&Q.dosPermissions&&(Q.dir=!0),Q.dir&&(k=u(k)),Q.createFolders&&(U=R(k))&&m.call(this,U,!0);var at=C==="string"&&Q.binary===!1&&Q.base64===!1;B&&B.binary!==void 0||(Q.binary=!at),(F instanceof S&&F.uncompressedSize===0||Q.dir||!F||F.length===0)&&(Q.base64=!1,Q.binary=!0,F="",Q.compression="STORE",C="string");var N=null;N=F instanceof S||F instanceof g?F:A.isNode&&A.isStream(F)?new v(k,F):n.prepareContent(k,F,Q.binary,Q.optimizedBinaryString,Q.base64);var j=new I(k,N,Q);this.files[k]=j}var h=r("./utf8"),n=r("./utils"),g=r("./stream/GenericWorker"),T=r("./stream/StreamHelper"),_=r("./defaults"),S=r("./compressedObject"),I=r("./zipObject"),d=r("./generate"),A=r("./nodejsUtils"),v=r("./nodejs/NodejsStreamInputAdapter"),R=function(k){k.slice(-1)==="/"&&(k=k.substring(0,k.length-1));var F=k.lastIndexOf("/");return 0<F?k.substring(0,F):""},u=function(k){return k.slice(-1)!=="/"&&(k+="/"),k},m=function(k,F){return F=F!==void 0?F:_.createFolders,k=u(k),this.files[k]||c.call(this,k,null,{dir:!0,createFolders:F}),this.files[k]};function b(k){return Object.prototype.toString.call(k)==="[object RegExp]"}var l={load:function(){throw new Error("This method has been removed in JSZip 3.0, please check the upgrade guide.")},forEach:function(k){var F,B,U;for(F in this.files)U=this.files[F],(B=F.slice(this.root.length,F.length))&&F.slice(0,this.root.length)===this.root&&k(B,U)},filter:function(k){var F=[];return this.forEach(function(B,U){k(B,U)&&F.push(U)}),F},file:function(k,F,B){if(arguments.length!==1)return k=this.root+k,c.call(this,k,F,B),this;if(b(k)){var U=k;return this.filter(function(Q,at){return!at.dir&&U.test(Q)})}var C=this.files[this.root+k];return C&&!C.dir?C:null},folder:function(k){if(!k)return this;if(b(k))return this.filter(function(C,Q){return Q.dir&&k.test(C)});var F=this.root+k,B=m.call(this,F),U=this.clone();return U.root=B.name,U},remove:function(k){k=this.root+k;var F=this.files[k];if(F||(k.slice(-1)!=="/"&&(k+="/"),F=this.files[k]),F&&!F.dir)delete this.files[k];else for(var B=this.filter(function(C,Q){return Q.name.slice(0,k.length)===k}),U=0;U<B.length;U++)delete this.files[B[U].name];return this},generate:function(){throw new Error("This method has been removed in JSZip 3.0, please check the upgrade guide.")},generateInternalStream:function(k){var F,B={};try{if((B=n.extend(k||{},{streamFiles:!1,compression:"STORE",compressionOptions:null,type:"",platform:"DOS",comment:null,mimeType:"application/zip",encodeFileName:h.utf8encode})).type=B.type.toLowerCase(),B.compression=B.compression.toUpperCase(),B.type==="binarystring"&&(B.type="string"),!B.type)throw new Error("No output type specified.");n.checkSupport(B.type),B.platform!=="darwin"&&B.platform!=="freebsd"&&B.platform!=="linux"&&B.platform!=="sunos"||(B.platform="UNIX"),B.platform==="win32"&&(B.platform="DOS");var U=B.comment||this.comment||"";F=d.generateWorker(this,B,U)}catch(C){(F=new g("error")).error(C)}return new T(F,B.type||"string",B.mimeType)},generateAsync:function(k,F){return this.generateInternalStream(k).accumulate(F)},generateNodeStream:function(k,F){return(k=k||{}).type||(k.type="nodebuffer"),this.generateInternalStream(k).toNodejsStream(F)}};i.exports=l},{"./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,p){i.exports=r("stream")},{stream:void 0}],17:[function(r,i,p){var c=r("./DataReader");function h(n){c.call(this,n);for(var g=0;g<this.data.length;g++)n[g]=255&n[g]}r("../utils").inherits(h,c),h.prototype.byteAt=function(n){return this.data[this.zero+n]},h.prototype.lastIndexOfSignature=function(n){for(var g=n.charCodeAt(0),T=n.charCodeAt(1),_=n.charCodeAt(2),S=n.charCodeAt(3),I=this.length-4;0<=I;--I)if(this.data[I]===g&&this.data[I+1]===T&&this.data[I+2]===_&&this.data[I+3]===S)return I-this.zero;return-1},h.prototype.readAndCheckSignature=function(n){var g=n.charCodeAt(0),T=n.charCodeAt(1),_=n.charCodeAt(2),S=n.charCodeAt(3),I=this.readData(4);return g===I[0]&&T===I[1]&&_===I[2]&&S===I[3]},h.prototype.readData=function(n){if(this.checkOffset(n),n===0)return[];var g=this.data.slice(this.zero+this.index,this.zero+this.index+n);return this.index+=n,g},i.exports=h},{"../utils":32,"./DataReader":18}],18:[function(r,i,p){var c=r("../utils");function h(n){this.data=n,this.length=n.length,this.index=0,this.zero=0}h.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 g,T=0;for(this.checkOffset(n),g=this.index+n-1;g>=this.index;g--)T=(T<<8)+this.byteAt(g);return this.index+=n,T},readString:function(n){return c.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=h},{"../utils":32}],19:[function(r,i,p){var c=r("./Uint8ArrayReader");function h(n){c.call(this,n)}r("../utils").inherits(h,c),h.prototype.readData=function(n){this.checkOffset(n);var g=this.data.slice(this.zero+this.index,this.zero+this.index+n);return this.index+=n,g},i.exports=h},{"../utils":32,"./Uint8ArrayReader":21}],20:[function(r,i,p){var c=r("./DataReader");function h(n){c.call(this,n)}r("../utils").inherits(h,c),h.prototype.byteAt=function(n){return this.data.charCodeAt(this.zero+n)},h.prototype.lastIndexOfSignature=function(n){return this.data.lastIndexOf(n)-this.zero},h.prototype.readAndCheckSignature=function(n){return n===this.readData(4)},h.prototype.readData=function(n){this.checkOffset(n);var g=this.data.slice(this.zero+this.index,this.zero+this.index+n);return this.index+=n,g},i.exports=h},{"../utils":32,"./DataReader":18}],21:[function(r,i,p){var c=r("./ArrayReader");function h(n){c.call(this,n)}r("../utils").inherits(h,c),h.prototype.readData=function(n){if(this.checkOffset(n),n===0)return new Uint8Array(0);var g=this.data.subarray(this.zero+this.index,this.zero+this.index+n);return this.index+=n,g},i.exports=h},{"../utils":32,"./ArrayReader":17}],22:[function(r,i,p){var c=r("../utils"),h=r("../support"),n=r("./ArrayReader"),g=r("./StringReader"),T=r("./NodeBufferReader"),_=r("./Uint8ArrayReader");i.exports=function(S){var I=c.getTypeOf(S);return c.checkSupport(I),I!=="string"||h.uint8array?I==="nodebuffer"?new T(S):h.uint8array?new _(c.transformTo("uint8array",S)):new n(c.transformTo("array",S)):new g(S)}},{"../support":30,"../utils":32,"./ArrayReader":17,"./NodeBufferReader":19,"./StringReader":20,"./Uint8ArrayReader":21}],23:[function(r,i,p){p.LOCAL_FILE_HEADER="PK",p.CENTRAL_FILE_HEADER="PK",p.CENTRAL_DIRECTORY_END="PK",p.ZIP64_CENTRAL_DIRECTORY_LOCATOR="PK\x07",p.ZIP64_CENTRAL_DIRECTORY_END="PK",p.DATA_DESCRIPTOR="PK\x07\b"},{}],24:[function(r,i,p){var c=r("./GenericWorker"),h=r("../utils");function n(g){c.call(this,"ConvertWorker to "+g),this.destType=g}h.inherits(n,c),n.prototype.processChunk=function(g){this.push({data:h.transformTo(this.destType,g.data),meta:g.meta})},i.exports=n},{"../utils":32,"./GenericWorker":28}],25:[function(r,i,p){var c=r("./GenericWorker"),h=r("../crc32");function n(){c.call(this,"Crc32Probe"),this.withStreamInfo("crc32",0)}r("../utils").inherits(n,c),n.prototype.processChunk=function(g){this.streamInfo.crc32=h(g.data,this.streamInfo.crc32||0),this.push(g)},i.exports=n},{"../crc32":4,"../utils":32,"./GenericWorker":28}],26:[function(r,i,p){var c=r("../utils"),h=r("./GenericWorker");function n(g){h.call(this,"DataLengthProbe for "+g),this.propName=g,this.withStreamInfo(g,0)}c.inherits(n,h),n.prototype.processChunk=function(g){if(g){var T=this.streamInfo[this.propName]||0;this.streamInfo[this.propName]=T+g.data.length}h.prototype.processChunk.call(this,g)},i.exports=n},{"../utils":32,"./GenericWorker":28}],27:[function(r,i,p){var c=r("../utils"),h=r("./GenericWorker");function n(g){h.call(this,"DataWorker");var T=this;this.dataIsReady=!1,this.index=0,this.max=0,this.data=null,this.type="",this._tickScheduled=!1,g.then(function(_){T.dataIsReady=!0,T.data=_,T.max=_&&_.length||0,T.type=c.getTypeOf(_),T.isPaused||T._tickAndRepeat()},function(_){T.error(_)})}c.inherits(n,h),n.prototype.cleanUp=function(){h.prototype.cleanUp.call(this),this.data=null},n.prototype.resume=function(){return!!h.prototype.resume.call(this)&&(!this._tickScheduled&&this.dataIsReady&&(this._tickScheduled=!0,c.delay(this._tickAndRepeat,[],this)),!0)},n.prototype._tickAndRepeat=function(){this._tickScheduled=!1,this.isPaused||this.isFinished||(this._tick(),this.isFinished||(c.delay(this._tickAndRepeat,[],this),this._tickScheduled=!0))},n.prototype._tick=function(){if(this.isPaused||this.isFinished)return!1;var g=null,T=Math.min(this.max,this.index+16384);if(this.index>=this.max)return this.end();switch(this.type){case"string":g=this.data.substring(this.index,T);break;case"uint8array":g=this.data.subarray(this.index,T);break;case"array":case"nodebuffer":g=this.data.slice(this.index,T)}return this.index=T,this.push({data:g,meta:{percent:this.max?this.index/this.max*100:0}})},i.exports=n},{"../utils":32,"./GenericWorker":28}],28:[function(r,i,p){function c(h){this.name=h||"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}c.prototype={push:function(h){this.emit("data",h)},end:function(){if(this.isFinished)return!1;this.flush();try{this.emit("end"),this.cleanUp(),this.isFinished=!0}catch(h){this.emit("error",h)}return!0},error:function(h){return!this.isFinished&&(this.isPaused?this.generatedError=h:(this.isFinished=!0,this.emit("error",h),this.previous&&this.previous.error(h),this.cleanUp()),!0)},on:function(h,n){return this._listeners[h].push(n),this},cleanUp:function(){this.streamInfo=this.generatedError=this.extraStreamInfo=null,this._listeners=[]},emit:function(h,n){if(this._listeners[h])for(var g=0;g<this._listeners[h].length;g++)this._listeners[h][g].call(this,n)},pipe:function(h){return h.registerPrevious(this)},registerPrevious:function(h){if(this.isLocked)throw new Error("The stream '"+this+"' has already been used.");this.streamInfo=h.streamInfo,this.mergeStreamInfo(),this.previous=h;var n=this;return h.on("data",function(g){n.processChunk(g)}),h.on("end",function(){n.end()}),h.on("error",function(g){n.error(g)}),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 h=this.isPaused=!1;return this.generatedError&&(this.error(this.generatedError),h=!0),this.previous&&this.previous.resume(),!h},flush:function(){},processChunk:function(h){this.push(h)},withStreamInfo:function(h,n){return this.extraStreamInfo[h]=n,this.mergeStreamInfo(),this},mergeStreamInfo:function(){for(var h in this.extraStreamInfo)Object.prototype.hasOwnProperty.call(this.extraStreamInfo,h)&&(this.streamInfo[h]=this.extraStreamInfo[h])},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 h="Worker "+this.name;return this.previous?this.previous+" -> "+h:h}},i.exports=c},{}],29:[function(r,i,p){var c=r("../utils"),h=r("./ConvertWorker"),n=r("./GenericWorker"),g=r("../base64"),T=r("../support"),_=r("../external"),S=null;if(T.nodestream)try{S=r("../nodejs/NodejsStreamOutputAdapter")}catch{}function I(A,v){return new _.Promise(function(R,u){var m=[],b=A._internalType,l=A._outputType,k=A._mimeType;A.on("data",function(F,B){m.push(F),v&&v(B)}).on("error",function(F){m=[],u(F)}).on("end",function(){try{var F=function(B,U,C){switch(B){case"blob":return c.newBlob(c.transformTo("arraybuffer",U),C);case"base64":return g.encode(U);default:return c.transformTo(B,U)}}(l,function(B,U){var C,Q=0,at=null,N=0;for(C=0;C<U.length;C++)N+=U[C].length;switch(B){case"string":return U.join("");case"array":return Array.prototype.concat.apply([],U);case"uint8array":for(at=new Uint8Array(N),C=0;C<U.length;C++)at.set(U[C],Q),Q+=U[C].length;return at;case"nodebuffer":return Buffer.concat(U);default:throw new Error("concat : unsupported type '"+B+"'")}}(b,m),k);R(F)}catch(B){u(B)}m=[]}).resume()})}function d(A,v,R){var u=v;switch(v){case"blob":case"arraybuffer":u="uint8array";break;case"base64":u="string"}try{this._internalType=u,this._outputType=v,this._mimeType=R,c.checkSupport(u),this._worker=A.pipe(new h(u)),A.lock()}catch(m){this._worker=new n("error"),this._worker.error(m)}}d.prototype={accumulate:function(A){return I(this,A)},on:function(A,v){var R=this;return A==="data"?this._worker.on(A,function(u){v.call(R,u.data,u.meta)}):this._worker.on(A,function(){c.delay(v,arguments,R)}),this},resume:function(){return c.delay(this._worker.resume,[],this._worker),this},pause:function(){return this._worker.pause(),this},toNodejsStream:function(A){if(c.checkSupport("nodestream"),this._outputType!=="nodebuffer")throw new Error(this._outputType+" is not supported by this method");return new S(this,{objectMode:this._outputType!=="nodebuffer"},A)}},i.exports=d},{"../base64":1,"../external":6,"../nodejs/NodejsStreamOutputAdapter":13,"../support":30,"../utils":32,"./ConvertWorker":24,"./GenericWorker":28}],30:[function(r,i,p){if(p.base64=!0,p.array=!0,p.string=!0,p.arraybuffer=typeof ArrayBuffer<"u"&&typeof Uint8Array<"u",p.nodebuffer=typeof Buffer<"u",p.uint8array=typeof Uint8Array<"u",typeof ArrayBuffer>"u")p.blob=!1;else{var c=new ArrayBuffer(0);try{p.blob=new Blob([c],{type:"application/zip"}).size===0}catch{try{var h=new(self.BlobBuilder||self.WebKitBlobBuilder||self.MozBlobBuilder||self.MSBlobBuilder);h.append(c),p.blob=h.getBlob("application/zip").size===0}catch{p.blob=!1}}}try{p.nodestream=!!r("readable-stream").Readable}catch{p.nodestream=!1}},{"readable-stream":16}],31:[function(r,i,p){for(var c=r("./utils"),h=r("./support"),n=r("./nodejsUtils"),g=r("./stream/GenericWorker"),T=new Array(256),_=0;_<256;_++)T[_]=252<=_?6:248<=_?5:240<=_?4:224<=_?3:192<=_?2:1;T[254]=T[254]=1;function S(){g.call(this,"utf-8 decode"),this.leftOver=null}function I(){g.call(this,"utf-8 encode")}p.utf8encode=function(d){return h.nodebuffer?n.newBufferFrom(d,"utf-8"):function(A){var v,R,u,m,b,l=A.length,k=0;for(m=0;m<l;m++)(64512&(R=A.charCodeAt(m)))==55296&&m+1<l&&(64512&(u=A.charCodeAt(m+1)))==56320&&(R=65536+(R-55296<<10)+(u-56320),m++),k+=R<128?1:R<2048?2:R<65536?3:4;for(v=h.uint8array?new Uint8Array(k):new Array(k),m=b=0;b<k;m++)(64512&(R=A.charCodeAt(m)))==55296&&m+1<l&&(64512&(u=A.charCodeAt(m+1)))==56320&&(R=65536+(R-55296<<10)+(u-56320),m++),R<128?v[b++]=R:(R<2048?v[b++]=192|R>>>6:(R<65536?v[b++]=224|R>>>12:(v[b++]=240|R>>>18,v[b++]=128|R>>>12&63),v[b++]=128|R>>>6&63),v[b++]=128|63&R);return v}(d)},p.utf8decode=function(d){return h.nodebuffer?c.transformTo("nodebuffer",d).toString("utf-8"):function(A){var v,R,u,m,b=A.length,l=new Array(2*b);for(v=R=0;v<b;)if((u=A[v++])<128)l[R++]=u;else if(4<(m=T[u]))l[R++]=65533,v+=m-1;else{for(u&=m===2?31:m===3?15:7;1<m&&v<b;)u=u<<6|63&A[v++],m--;1<m?l[R++]=65533:u<65536?l[R++]=u:(u-=65536,l[R++]=55296|u>>10&1023,l[R++]=56320|1023&u)}return l.length!==R&&(l.subarray?l=l.subarray(0,R):l.length=R),c.applyFromCharCode(l)}(d=c.transformTo(h.uint8array?"uint8array":"array",d))},c.inherits(S,g),S.prototype.processChunk=function(d){var A=c.transformTo(h.uint8array?"uint8array":"array",d.data);if(this.leftOver&&this.leftOver.length){if(h.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 R=function(m,b){var l;for((b=b||m.length)>m.length&&(b=m.length),l=b-1;0<=l&&(192&m[l])==128;)l--;return l<0||l===0?b:l+T[m[l]]>b?l:b}(A),u=A;R!==A.length&&(h.uint8array?(u=A.subarray(0,R),this.leftOver=A.subarray(R,A.length)):(u=A.slice(0,R),this.leftOver=A.slice(R,A.length))),this.push({data:p.utf8decode(u),meta:d.meta})},S.prototype.flush=function(){this.leftOver&&this.leftOver.length&&(this.push({data:p.utf8decode(this.leftOver),meta:{}}),this.leftOver=null)},p.Utf8DecodeWorker=S,c.inherits(I,g),I.prototype.processChunk=function(d){this.push({data:p.utf8encode(d.data),meta:d.meta})},p.Utf8EncodeWorker=I},{"./nodejsUtils":14,"./stream/GenericWorker":28,"./support":30,"./utils":32}],32:[function(r,i,p){var c=r("./support"),h=r("./base64"),n=r("./nodejsUtils"),g=r("./external");function T(v){return v}function _(v,R){for(var u=0;u<v.length;++u)R[u]=255&v.charCodeAt(u);return R}r("setimmediate"),p.newBlob=function(v,R){p.checkSupport("blob");try{return new Blob([v],{type:R})}catch{try{var u=new(self.BlobBuilder||self.WebKitBlobBuilder||self.MozBlobBuilder||self.MSBlobBuilder);return u.append(v),u.getBlob(R)}catch{throw new Error("Bug : can't construct the Blob.")}}};var S={stringifyByChunk:function(v,R,u){var m=[],b=0,l=v.length;if(l<=u)return String.fromCharCode.apply(null,v);for(;b<l;)R==="array"||R==="nodebuffer"?m.push(String.fromCharCode.apply(null,v.slice(b,Math.min(b+u,l)))):m.push(String.fromCharCode.apply(null,v.subarray(b,Math.min(b+u,l)))),b+=u;return m.join("")},stringifyByChar:function(v){for(var R="",u=0;u<v.length;u++)R+=String.fromCharCode(v[u]);return R},applyCanBeUsed:{uint8array:function(){try{return c.uint8array&&String.fromCharCode.apply(null,new Uint8Array(1)).length===1}catch{return!1}}(),nodebuffer:function(){try{return c.nodebuffer&&String.fromCharCode.apply(null,n.allocBuffer(1)).length===1}catch{return!1}}()}};function I(v){var R=65536,u=p.getTypeOf(v),m=!0;if(u==="uint8array"?m=S.applyCanBeUsed.uint8array:u==="nodebuffer"&&(m=S.applyCanBeUsed.nodebuffer),m)for(;1<R;)try{return S.stringifyByChunk(v,u,R)}catch{R=Math.floor(R/2)}return S.stringifyByChar(v)}function d(v,R){for(var u=0;u<v.length;u++)R[u]=v[u];return R}p.applyFromCharCode=I;var A={};A.string={string:T,array:function(v){return _(v,new Array(v.length))},arraybuffer:function(v){return A.string.uint8array(v).buffer},uint8array:function(v){return _(v,new Uint8Array(v.length))},nodebuffer:function(v){return _(v,n.allocBuffer(v.length))}},A.array={string:I,array:T,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 d(new Uint8Array(v),new Array(v.byteLength))},arraybuffer:T,uint8array:function(v){return new Uint8Array(v)},nodebuffer:function(v){return n.newBufferFrom(new Uint8Array(v))}},A.uint8array={string:I,array:function(v){return d(v,new Array(v.length))},arraybuffer:function(v){return v.buffer},uint8array:T,nodebuffer:function(v){return n.newBufferFrom(v)}},A.nodebuffer={string:I,array:function(v){return d(v,new Array(v.length))},arraybuffer:function(v){return A.nodebuffer.uint8array(v).buffer},uint8array:function(v){return d(v,new Uint8Array(v.length))},nodebuffer:T},p.transformTo=function(v,R){if(R=R||"",!v)return R;p.checkSupport(v);var u=p.getTypeOf(R);return A[u][v](R)},p.resolve=function(v){for(var R=v.split("/"),u=[],m=0;m<R.length;m++){var b=R[m];b==="."||b===""&&m!==0&&m!==R.length-1||(b===".."?u.pop():u.push(b))}return u.join("/")},p.getTypeOf=function(v){return typeof v=="string"?"string":Object.prototype.toString.call(v)==="[object Array]"?"array":c.nodebuffer&&n.isBuffer(v)?"nodebuffer":c.uint8array&&v instanceof Uint8Array?"uint8array":c.arraybuffer&&v instanceof ArrayBuffer?"arraybuffer":void 0},p.checkSupport=function(v){if(!c[v.toLowerCase()])throw new Error(v+" is not supported by this platform")},p.MAX_VALUE_16BITS=65535,p.MAX_VALUE_32BITS=-1,p.pretty=function(v){var R,u,m="";for(u=0;u<(v||"").length;u++)m+="\\x"+((R=v.charCodeAt(u))<16?"0":"")+R.toString(16).toUpperCase();return m},p.delay=function(v,R,u){setImmediate(function(){v.apply(u||null,R||[])})},p.inherits=function(v,R){function u(){}u.prototype=R.prototype,v.prototype=new u},p.extend=function(){var v,R,u={};for(v=0;v<arguments.length;v++)for(R in arguments[v])Object.prototype.hasOwnProperty.call(arguments[v],R)&&u[R]===void 0&&(u[R]=arguments[v][R]);return u},p.prepareContent=function(v,R,u,m,b){return g.Promise.resolve(R).then(function(l){return c.blob&&(l instanceof Blob||["[object File]","[object Blob]"].indexOf(Object.prototype.toString.call(l))!==-1)&&typeof FileReader<"u"?new g.Promise(function(k,F){var B=new FileReader;B.onload=function(U){k(U.target.result)},B.onerror=function(U){F(U.target.error)},B.readAsArrayBuffer(l)}):l}).then(function(l){var k=p.getTypeOf(l);return k?(k==="arraybuffer"?l=p.transformTo("uint8array",l):k==="string"&&(b?l=h.decode(l):u&&m!==!0&&(l=function(F){return _(F,c.uint8array?new Uint8Array(F.length):new Array(F.length))}(l))),l):g.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,p){var c=r("./reader/readerFor"),h=r("./utils"),n=r("./signature"),g=r("./zipEntry"),T=r("./support");function _(S){this.files=[],this.loadOptions=S}_.prototype={checkSignature:function(S){if(!this.reader.readAndCheckSignature(S)){this.reader.index-=4;var I=this.reader.readString(4);throw new Error("Corrupted zip or bug: unexpected signature ("+h.pretty(I)+", expected "+h.pretty(S)+")")}},isSignature:function(S,I){var d=this.reader.index;this.reader.setIndex(S);var A=this.reader.readString(4)===I;return this.reader.setIndex(d),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 S=this.reader.readData(this.zipCommentLength),I=T.uint8array?"uint8array":"array",d=h.transformTo(I,S);this.zipComment=this.loadOptions.decodeFileName(d)},readBlockZip64EndOfCentral:function(){this.zip64EndOfCentralSize=this.reader.readInt(8),this.reader.skip(4),this.diskNumber=this.reader.readInt(4),this.diskWithCentralDirStart=this.reader.readInt(4),this.centralDirRecordsOnThisDisk=this.reader.readInt(8),this.centralDirRecords=this.reader.readInt(8),this.centralDirSize=this.reader.readInt(8),this.centralDirOffset=this.reader.readInt(8),this.zip64ExtensibleData={};for(var S,I,d,A=this.zip64EndOfCentralSize-44;0<A;)S=this.reader.readInt(2),I=this.reader.readInt(4),d=this.reader.readData(I),this.zip64ExtensibleData[S]={id:S,length:I,value:d}},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 S,I;for(S=0;S<this.files.length;S++)I=this.files[S],this.reader.setIndex(I.localHeaderOffset),this.checkSignature(n.LOCAL_FILE_HEADER),I.readLocalPart(this.reader),I.handleUTF8(),I.processAttributes()},readCentralDir:function(){var S;for(this.reader.setIndex(this.centralDirOffset);this.reader.readAndCheckSignature(n.CENTRAL_FILE_HEADER);)(S=new g({zip64:this.zip64},this.loadOptions)).readCentralPart(this.reader),this.files.push(S);if(this.centralDirRecords!==this.files.length&&this.centralDirRecords!==0&&this.files.length===0)throw new Error("Corrupted zip or bug: expected "+this.centralDirRecords+" records in central dir, got "+this.files.length)},readEndOfCentral:function(){var S=this.reader.lastIndexOfSignature(n.CENTRAL_DIRECTORY_END);if(S<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(S);var I=S;if(this.checkSignature(n.CENTRAL_DIRECTORY_END),this.readBlockEndOfCentral(),this.diskNumber===h.MAX_VALUE_16BITS||this.diskWithCentralDirStart===h.MAX_VALUE_16BITS||this.centralDirRecordsOnThisDisk===h.MAX_VALUE_16BITS||this.centralDirRecords===h.MAX_VALUE_16BITS||this.centralDirSize===h.MAX_VALUE_32BITS||this.centralDirOffset===h.MAX_VALUE_32BITS){if(this.zip64=!0,(S=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(S),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 d=this.centralDirOffset+this.centralDirSize;this.zip64&&(d+=20,d+=12+this.zip64EndOfCentralSize);var A=I-d;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(S){this.reader=c(S)},load:function(S){this.prepareReader(S),this.readEndOfCentral(),this.readCentralDir(),this.readLocalFiles()}},i.exports=_},{"./reader/readerFor":22,"./signature":23,"./support":30,"./utils":32,"./zipEntry":34}],34:[function(r,i,p){var c=r("./reader/readerFor"),h=r("./utils"),n=r("./compressedObject"),g=r("./crc32"),T=r("./utf8"),_=r("./compressions"),S=r("./support");function I(d,A){this.options=d,this.loadOptions=A}I.prototype={isEncrypted:function(){return(1&this.bitFlag)==1},useUTF8:function(){return(2048&this.bitFlag)==2048},readLocalPart:function(d){var A,v;if(d.skip(22),this.fileNameLength=d.readInt(2),v=d.readInt(2),this.fileName=d.readData(this.fileNameLength),d.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(R){for(var u in _)if(Object.prototype.hasOwnProperty.call(_,u)&&_[u].magic===R)return _[u];return null}(this.compressionMethod))===null)throw new Error("Corrupted zip : compression "+h.pretty(this.compressionMethod)+" unknown (inner file : "+h.transformTo("string",this.fileName)+")");this.decompressed=new n(this.compressedSize,this.uncompressedSize,this.crc32,A,d.readData(this.compressedSize))},readCentralPart:function(d){this.versionMadeBy=d.readInt(2),d.skip(2),this.bitFlag=d.readInt(2),this.compressionMethod=d.readString(2),this.date=d.readDate(),this.crc32=d.readInt(4),this.compressedSize=d.readInt(4),this.uncompressedSize=d.readInt(4);var A=d.readInt(2);if(this.extraFieldsLength=d.readInt(2),this.fileCommentLength=d.readInt(2),this.diskNumberStart=d.readInt(2),this.internalFileAttributes=d.readInt(2),this.externalFileAttributes=d.readInt(4),this.localHeaderOffset=d.readInt(4),this.isEncrypted())throw new Error("Encrypted zip are not supported");d.skip(A),this.readExtraFields(d),this.parseZIP64ExtraField(d),this.fileComment=d.readData(this.fileCommentLength)},processAttributes:function(){this.unixPermissions=null,this.dosPermissions=null;var d=this.versionMadeBy>>8;this.dir=!!(16&this.externalFileAttributes),d==0&&(this.dosPermissions=63&this.externalFileAttributes),d==3&&(this.unixPermissions=this.externalFileAttributes>>16&65535),this.dir||this.fileNameStr.slice(-1)!=="/"||(this.dir=!0)},parseZIP64ExtraField:function(){if(this.extraFields[1]){var d=c(this.extraFields[1].value);this.uncompressedSize===h.MAX_VALUE_32BITS&&(this.uncompressedSize=d.readInt(8)),this.compressedSize===h.MAX_VALUE_32BITS&&(this.compressedSize=d.readInt(8)),this.localHeaderOffset===h.MAX_VALUE_32BITS&&(this.localHeaderOffset=d.readInt(8)),this.diskNumberStart===h.MAX_VALUE_32BITS&&(this.diskNumberStart=d.readInt(4))}},readExtraFields:function(d){var A,v,R,u=d.index+this.extraFieldsLength;for(this.extraFields||(this.extraFields={});d.index+4<u;)A=d.readInt(2),v=d.readInt(2),R=d.readData(v),this.extraFields[A]={id:A,length:v,value:R};d.setIndex(u)},handleUTF8:function(){var d=S.uint8array?"uint8array":"array";if(this.useUTF8())this.fileNameStr=T.utf8decode(this.fileName),this.fileCommentStr=T.utf8decode(this.fileComment);else{var A=this.findExtraFieldUnicodePath();if(A!==null)this.fileNameStr=A;else{var v=h.transformTo(d,this.fileName);this.fileNameStr=this.loadOptions.decodeFileName(v)}var R=this.findExtraFieldUnicodeComment();if(R!==null)this.fileCommentStr=R;else{var u=h.transformTo(d,this.fileComment);this.fileCommentStr=this.loadOptions.decodeFileName(u)}}},findExtraFieldUnicodePath:function(){var d=this.extraFields[28789];if(d){var A=c(d.value);return A.readInt(1)!==1||g(this.fileName)!==A.readInt(4)?null:T.utf8decode(A.readData(d.length-5))}return null},findExtraFieldUnicodeComment:function(){var d=this.extraFields[25461];if(d){var A=c(d.value);return A.readInt(1)!==1||g(this.fileComment)!==A.readInt(4)?null:T.utf8decode(A.readData(d.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,p){function c(A,v,R){this.name=A,this.dir=R.dir,this.date=R.date,this.comment=R.comment,this.unixPermissions=R.unixPermissions,this.dosPermissions=R.dosPermissions,this._data=v,this._dataBinary=R.binary,this.options={compression:R.compression,compressionOptions:R.compressionOptions}}var h=r("./stream/StreamHelper"),n=r("./stream/DataWorker"),g=r("./utf8"),T=r("./compressedObject"),_=r("./stream/GenericWorker");c.prototype={internalStream:function(A){var v=null,R="string";try{if(!A)throw new Error("No output type specified.");var u=(R=A.toLowerCase())==="string"||R==="text";R!=="binarystring"&&R!=="text"||(R="string"),v=this._decompressWorker();var m=!this._dataBinary;m&&!u&&(v=v.pipe(new g.Utf8EncodeWorker)),!m&&u&&(v=v.pipe(new g.Utf8DecodeWorker))}catch(b){(v=new _("error")).error(b)}return new h(v,R,"")},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 T&&this._data.compression.magic===A.magic)return this._data.getCompressedWorker();var R=this._decompressWorker();return this._dataBinary||(R=R.pipe(new g.Utf8EncodeWorker)),T.createWorkerFrom(R,A,v)},_decompressWorker:function(){return this._data instanceof T?this._data.getContentWorker():this._data instanceof _?this._data:new n(this._data)}};for(var S=["asText","asBinary","asNodeBuffer","asUint8Array","asArrayBuffer"],I=function(){throw new Error("This method has been removed in JSZip 3.0, please check the upgrade guide.")},d=0;d<S.length;d++)c.prototype[S[d]]=I;i.exports=c},{"./compressedObject":2,"./stream/DataWorker":27,"./stream/GenericWorker":28,"./stream/StreamHelper":29,"./utf8":31}],36:[function(r,i,p){(function(c){var h,n,g=c.MutationObserver||c.WebKitMutationObserver;if(g){var T=0,_=new g(A),S=c.document.createTextNode("");_.observe(S,{characterData:!0}),h=function(){S.data=T=++T%2}}else if(c.setImmediate||c.MessageChannel===void 0)h="document"in c&&"onreadystatechange"in c.document.createElement("script")?function(){var v=c.document.createElement("script");v.onreadystatechange=function(){A(),v.onreadystatechange=null,v.parentNode.removeChild(v),v=null},c.document.documentElement.appendChild(v)}:function(){setTimeout(A,0)};else{var I=new c.MessageChannel;I.port1.onmessage=A,h=function(){I.port2.postMessage(0)}}var d=[];function A(){var v,R;n=!0;for(var u=d.length;u;){for(R=d,d=[],v=-1;++v<u;)R[v]();u=d.length}n=!1}i.exports=function(v){d.push(v)!==1||n||h()}}).call(this,typeof Pt<"u"?Pt:typeof self<"u"?self:typeof window<"u"?window:{})},{}],37:[function(r,i,p){var c=r("immediate");function h(){}var n={},g=["REJECTED"],T=["FULFILLED"],_=["PENDING"];function S(u){if(typeof u!="function")throw new TypeError("resolver must be a function");this.state=_,this.queue=[],this.outcome=void 0,u!==h&&v(this,u)}function I(u,m,b){this.promise=u,typeof m=="function"&&(this.onFulfilled=m,this.callFulfilled=this.otherCallFulfilled),typeof b=="function"&&(this.onRejected=b,this.callRejected=this.otherCallRejected)}function d(u,m,b){c(function(){var l;try{l=m(b)}catch(k){return n.reject(u,k)}l===u?n.reject(u,new TypeError("Cannot resolve promise with itself")):n.resolve(u,l)})}function A(u){var m=u&&u.then;if(u&&(typeof u=="object"||typeof u=="function")&&typeof m=="function")return function(){m.apply(u,arguments)}}function v(u,m){var b=!1;function l(B){b||(b=!0,n.reject(u,B))}function k(B){b||(b=!0,n.resolve(u,B))}var F=R(function(){m(k,l)});F.status==="error"&&l(F.value)}function R(u,m){var b={};try{b.value=u(m),b.status="success"}catch(l){b.status="error",b.value=l}return b}(i.exports=S).prototype.finally=function(u){if(typeof u!="function")return this;var m=this.constructor;return this.then(function(b){return m.resolve(u()).then(function(){return b})},function(b){return m.resolve(u()).then(function(){throw b})})},S.prototype.catch=function(u){return this.then(null,u)},S.prototype.then=function(u,m){if(typeof u!="function"&&this.state===T||typeof m!="function"&&this.state===g)return this;var b=new this.constructor(h);return this.state!==_?d(b,this.state===T?u:m,this.outcome):this.queue.push(new I(b,u,m)),b},I.prototype.callFulfilled=function(u){n.resolve(this.promise,u)},I.prototype.otherCallFulfilled=function(u){d(this.promise,this.onFulfilled,u)},I.prototype.callRejected=function(u){n.reject(this.promise,u)},I.prototype.otherCallRejected=function(u){d(this.promise,this.onRejected,u)},n.resolve=function(u,m){var b=R(A,m);if(b.status==="error")return n.reject(u,b.value);var l=b.value;if(l)v(u,l);else{u.state=T,u.outcome=m;for(var k=-1,F=u.queue.length;++k<F;)u.queue[k].callFulfilled(m)}return u},n.reject=function(u,m){u.state=g,u.outcome=m;for(var b=-1,l=u.queue.length;++b<l;)u.queue[b].callRejected(m);return u},S.resolve=function(u){return u instanceof this?u:n.resolve(new this(h),u)},S.reject=function(u){var m=new this(h);return n.reject(m,u)},S.all=function(u){var m=this;if(Object.prototype.toString.call(u)!=="[object Array]")return this.reject(new TypeError("must be an array"));var b=u.length,l=!1;if(!b)return this.resolve([]);for(var k=new Array(b),F=0,B=-1,U=new this(h);++B<b;)C(u[B],B);return U;function C(Q,at){m.resolve(Q).then(function(N){k[at]=N,++F!==b||l||(l=!0,n.resolve(U,k))},function(N){l||(l=!0,n.reject(U,N))})}},S.race=function(u){var m=this;if(Object.prototype.toString.call(u)!=="[object Array]")return this.reject(new TypeError("must be an array"));var b=u.length,l=!1;if(!b)return this.resolve([]);for(var k=-1,F=new this(h);++k<b;)B=u[k],m.resolve(B).then(function(U){l||(l=!0,n.resolve(F,U))},function(U){l||(l=!0,n.reject(F,U))});var B;return F}},{immediate:36}],38:[function(r,i,p){var c={};(0,r("./lib/utils/common").assign)(c,r("./lib/deflate"),r("./lib/inflate"),r("./lib/zlib/constants")),i.exports=c},{"./lib/deflate":39,"./lib/inflate":40,"./lib/utils/common":41,"./lib/zlib/constants":44}],39:[function(r,i,p){var c=r("./zlib/deflate"),h=r("./utils/common"),n=r("./utils/strings"),g=r("./zlib/messages"),T=r("./zlib/zstream"),_=Object.prototype.toString,S=0,I=-1,d=0,A=8;function v(u){if(!(this instanceof v))return new v(u);this.options=h.assign({level:I,method:A,chunkSize:16384,windowBits:15,memLevel:8,strategy:d,to:""},u||{});var m=this.options;m.raw&&0<m.windowBits?m.windowBits=-m.windowBits:m.gzip&&0<m.windowBits&&m.windowBits<16&&(m.windowBits+=16),this.err=0,this.msg="",this.ended=!1,this.chunks=[],this.strm=new T,this.strm.avail_out=0;var b=c.deflateInit2(this.strm,m.level,m.method,m.windowBits,m.memLevel,m.strategy);if(b!==S)throw new Error(g[b]);if(m.header&&c.deflateSetHeader(this.strm,m.header),m.dictionary){var l;if(l=typeof m.dictionary=="string"?n.string2buf(m.dictionary):_.call(m.dictionary)==="[object ArrayBuffer]"?new Uint8Array(m.dictionary):m.dictionary,(b=c.deflateSetDictionary(this.strm,l))!==S)throw new Error(g[b]);this._dict_set=!0}}function R(u,m){var b=new v(m);if(b.push(u,!0),b.err)throw b.msg||g[b.err];return b.result}v.prototype.push=function(u,m){var b,l,k=this.strm,F=this.options.chunkSize;if(this.ended)return!1;l=m===~~m?m:m===!0?4:0,typeof u=="string"?k.input=n.string2buf(u):_.call(u)==="[object ArrayBuffer]"?k.input=new Uint8Array(u):k.input=u,k.next_in=0,k.avail_in=k.input.length;do{if(k.avail_out===0&&(k.output=new h.Buf8(F),k.next_out=0,k.avail_out=F),(b=c.deflate(k,l))!==1&&b!==S)return this.onEnd(b),!(this.ended=!0);k.avail_out!==0&&(k.avail_in!==0||l!==4&&l!==2)||(this.options.to==="string"?this.onData(n.buf2binstring(h.shrinkBuf(k.output,k.next_out))):this.onData(h.shrinkBuf(k.output,k.next_out)))}while((0<k.avail_in||k.avail_out===0)&&b!==1);return l===4?(b=c.deflateEnd(this.strm),this.onEnd(b),this.ended=!0,b===S):l!==2||(this.onEnd(S),!(k.avail_out=0))},v.prototype.onData=function(u){this.chunks.push(u)},v.prototype.onEnd=function(u){u===S&&(this.options.to==="string"?this.result=this.chunks.join(""):this.result=h.flattenChunks(this.chunks)),this.chunks=[],this.err=u,this.msg=this.strm.msg},p.Deflate=v,p.deflate=R,p.deflateRaw=function(u,m){return(m=m||{}).raw=!0,R(u,m)},p.gzip=function(u,m){return(m=m||{}).gzip=!0,R(u,m)}},{"./utils/common":41,"./utils/strings":42,"./zlib/deflate":46,"./zlib/messages":51,"./zlib/zstream":53}],40:[function(r,i,p){var c=r("./zlib/inflate"),h=r("./utils/common"),n=r("./utils/strings"),g=r("./zlib/constants"),T=r("./zlib/messages"),_=r("./zlib/zstream"),S=r("./zlib/gzheader"),I=Object.prototype.toString;function d(v){if(!(this instanceof d))return new d(v);this.options=h.assign({chunkSize:16384,windowBits:0,to:""},v||{});var R=this.options;R.raw&&0<=R.windowBits&&R.windowBits<16&&(R.windowBits=-R.windowBits,R.windowBits===0&&(R.windowBits=-15)),!(0<=R.windowBits&&R.windowBits<16)||v&&v.windowBits||(R.windowBits+=32),15<R.windowBits&&R.windowBits<48&&(15&R.windowBits)==0&&(R.windowBits|=15),this.err=0,this.msg="",this.ended=!1,this.chunks=[],this.strm=new _,this.strm.avail_out=0;var u=c.inflateInit2(this.strm,R.windowBits);if(u!==g.Z_OK)throw new Error(T[u]);this.header=new S,c.inflateGetHeader(this.strm,this.header)}function A(v,R){var u=new d(R);if(u.push(v,!0),u.err)throw u.msg||T[u.err];return u.result}d.prototype.push=function(v,R){var u,m,b,l,k,F,B=this.strm,U=this.options.chunkSize,C=this.options.dictionary,Q=!1;if(this.ended)return!1;m=R===~~R?R:R===!0?g.Z_FINISH:g.Z_NO_FLUSH,typeof v=="string"?B.input=n.binstring2buf(v):I.call(v)==="[object ArrayBuffer]"?B.input=new Uint8Array(v):B.input=v,B.next_in=0,B.avail_in=B.input.length;do{if(B.avail_out===0&&(B.output=new h.Buf8(U),B.next_out=0,B.avail_out=U),(u=c.inflate(B,g.Z_NO_FLUSH))===g.Z_NEED_DICT&&C&&(F=typeof C=="string"?n.string2buf(C):I.call(C)==="[object ArrayBuffer]"?new Uint8Array(C):C,u=c.inflateSetDictionary(this.strm,F)),u===g.Z_BUF_ERROR&&Q===!0&&(u=g.Z_OK,Q=!1),u!==g.Z_STREAM_END&&u!==g.Z_OK)return this.onEnd(u),!(this.ended=!0);B.next_out&&(B.avail_out!==0&&u!==g.Z_STREAM_END&&(B.avail_in!==0||m!==g.Z_FINISH&&m!==g.Z_SYNC_FLUSH)||(this.options.to==="string"?(b=n.utf8border(B.output,B.next_out),l=B.next_out-b,k=n.buf2string(B.output,b),B.next_out=l,B.avail_out=U-l,l&&h.arraySet(B.output,B.output,b,l,0),this.onData(k)):this.onData(h.shrinkBuf(B.output,B.next_out)))),B.avail_in===0&&B.avail_out===0&&(Q=!0)}while((0<B.avail_in||B.avail_out===0)&&u!==g.Z_STREAM_END);return u===g.Z_STREAM_END&&(m=g.Z_FINISH),m===g.Z_FINISH?(u=c.inflateEnd(this.strm),this.onEnd(u),this.ended=!0,u===g.Z_OK):m!==g.Z_SYNC_FLUSH||(this.onEnd(g.Z_OK),!(B.avail_out=0))},d.prototype.onData=function(v){this.chunks.push(v)},d.prototype.onEnd=function(v){v===g.Z_OK&&(this.options.to==="string"?this.result=this.chunks.join(""):this.result=h.flattenChunks(this.chunks)),this.chunks=[],this.err=v,this.msg=this.strm.msg},p.Inflate=d,p.inflate=A,p.inflateRaw=function(v,R){return(R=R||{}).raw=!0,A(v,R)},p.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,p){var c=typeof Uint8Array<"u"&&typeof Uint16Array<"u"&&typeof Int32Array<"u";p.assign=function(g){for(var T=Array.prototype.slice.call(arguments,1);T.length;){var _=T.shift();if(_){if(typeof _!="object")throw new TypeError(_+"must be non-object");for(var S in _)_.hasOwnProperty(S)&&(g[S]=_[S])}}return g},p.shrinkBuf=function(g,T){return g.length===T?g:g.subarray?g.subarray(0,T):(g.length=T,g)};var h={arraySet:function(g,T,_,S,I){if(T.subarray&&g.subarray)g.set(T.subarray(_,_+S),I);else for(var d=0;d<S;d++)g[I+d]=T[_+d]},flattenChunks:function(g){var T,_,S,I,d,A;for(T=S=0,_=g.length;T<_;T++)S+=g[T].length;for(A=new Uint8Array(S),T=I=0,_=g.length;T<_;T++)d=g[T],A.set(d,I),I+=d.length;return A}},n={arraySet:function(g,T,_,S,I){for(var d=0;d<S;d++)g[I+d]=T[_+d]},flattenChunks:function(g){return[].concat.apply([],g)}};p.setTyped=function(g){g?(p.Buf8=Uint8Array,p.Buf16=Uint16Array,p.Buf32=Int32Array,p.assign(p,h)):(p.Buf8=Array,p.Buf16=Array,p.Buf32=Array,p.assign(p,n))},p.setTyped(c)},{}],42:[function(r,i,p){var c=r("./common"),h=!0,n=!0;try{String.fromCharCode.apply(null,[0])}catch{h=!1}try{String.fromCharCode.apply(null,new Uint8Array(1))}catch{n=!1}for(var g=new c.Buf8(256),T=0;T<256;T++)g[T]=252<=T?6:248<=T?5:240<=T?4:224<=T?3:192<=T?2:1;function _(S,I){if(I<65537&&(S.subarray&&n||!S.subarray&&h))return String.fromCharCode.apply(null,c.shrinkBuf(S,I));for(var d="",A=0;A<I;A++)d+=String.fromCharCode(S[A]);return d}g[254]=g[254]=1,p.string2buf=function(S){var I,d,A,v,R,u=S.length,m=0;for(v=0;v<u;v++)(64512&(d=S.charCodeAt(v)))==55296&&v+1<u&&(64512&(A=S.charCodeAt(v+1)))==56320&&(d=65536+(d-55296<<10)+(A-56320),v++),m+=d<128?1:d<2048?2:d<65536?3:4;for(I=new c.Buf8(m),v=R=0;R<m;v++)(64512&(d=S.charCodeAt(v)))==55296&&v+1<u&&(64512&(A=S.charCodeAt(v+1)))==56320&&(d=65536+(d-55296<<10)+(A-56320),v++),d<128?I[R++]=d:(d<2048?I[R++]=192|d>>>6:(d<65536?I[R++]=224|d>>>12:(I[R++]=240|d>>>18,I[R++]=128|d>>>12&63),I[R++]=128|d>>>6&63),I[R++]=128|63&d);return I},p.buf2binstring=function(S){return _(S,S.length)},p.binstring2buf=function(S){for(var I=new c.Buf8(S.length),d=0,A=I.length;d<A;d++)I[d]=S.charCodeAt(d);return I},p.buf2string=function(S,I){var d,A,v,R,u=I||S.length,m=new Array(2*u);for(d=A=0;d<u;)if((v=S[d++])<128)m[A++]=v;else if(4<(R=g[v]))m[A++]=65533,d+=R-1;else{for(v&=R===2?31:R===3?15:7;1<R&&d<u;)v=v<<6|63&S[d++],R--;1<R?m[A++]=65533:v<65536?m[A++]=v:(v-=65536,m[A++]=55296|v>>10&1023,m[A++]=56320|1023&v)}return _(m,A)},p.utf8border=function(S,I){var d;for((I=I||S.length)>S.length&&(I=S.length),d=I-1;0<=d&&(192&S[d])==128;)d--;return d<0||d===0?I:d+g[S[d]]>I?d:I}},{"./common":41}],43:[function(r,i,p){i.exports=function(c,h,n,g){for(var T=65535&c|0,_=c>>>16&65535|0,S=0;n!==0;){for(n-=S=2e3<n?2e3:n;_=_+(T=T+h[g++]|0)|0,--S;);T%=65521,_%=65521}return T|_<<16|0}},{}],44:[function(r,i,p){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,p){var c=function(){for(var h,n=[],g=0;g<256;g++){h=g;for(var T=0;T<8;T++)h=1&h?3988292384^h>>>1:h>>>1;n[g]=h}return n}();i.exports=function(h,n,g,T){var _=c,S=T+g;h^=-1;for(var I=T;I<S;I++)h=h>>>8^_[255&(h^n[I])];return-1^h}},{}],46:[function(r,i,p){var c,h=r("../utils/common"),n=r("./trees"),g=r("./adler32"),T=r("./crc32"),_=r("./messages"),S=0,I=4,d=0,A=-2,v=-1,R=4,u=2,m=8,b=9,l=286,k=30,F=19,B=2*l+1,U=15,C=3,Q=258,at=Q+C+1,N=42,j=113,y=1,W=2,$=3,K=4;function it(f,q){return f.msg=_[q],q}function J(f){return(f<<1)-(4<f?9:0)}function lt(f){for(var q=f.length;0<=--q;)f[q]=0}function X(f){var q=f.state,o=q.pending;o>f.avail_out&&(o=f.avail_out),o!==0&&(h.arraySet(f.output,q.pending_buf,q.pending_out,o,f.next_out),f.next_out+=o,q.pending_out+=o,f.total_out+=o,f.avail_out-=o,q.pending-=o,q.pending===0&&(q.pending_out=0))}function D(f,q){n._tr_flush_block(f,0<=f.block_start?f.block_start:-1,f.strstart-f.block_start,q),f.block_start=f.strstart,X(f.strm)}function Z(f,q){f.pending_buf[f.pending++]=q}function Y(f,q){f.pending_buf[f.pending++]=q>>>8&255,f.pending_buf[f.pending++]=255&q}function nt(f,q){var o,s,a=f.max_chain_length,x=f.strstart,M=f.prev_length,V=f.nice_match,H=f.strstart>f.w_size-at?f.strstart-(f.w_size-at):0,ot=f.window,ct=f.w_mask,st=f.prev,ht=f.strstart+Q,ft=ot[x+M-1],dt=ot[x+M];f.prev_length>=f.good_match&&(a>>=2),V>f.lookahead&&(V=f.lookahead);do if(ot[(o=q)+M]===dt&&ot[o+M-1]===ft&&ot[o]===ot[x]&&ot[++o]===ot[x+1]){x+=2,o++;do;while(ot[++x]===ot[++o]&&ot[++x]===ot[++o]&&ot[++x]===ot[++o]&&ot[++x]===ot[++o]&&ot[++x]===ot[++o]&&ot[++x]===ot[++o]&&ot[++x]===ot[++o]&&ot[++x]===ot[++o]&&x<ht);if(s=Q-(ht-x),x=ht-Q,M<s){if(f.match_start=q,V<=(M=s))break;ft=ot[x+M-1],dt=ot[x+M]}}while((q=st[q&ct])>H&&--a!=0);return M<=f.lookahead?M:f.lookahead}function G(f){var q,o,s,a,x,M,V,H,ot,ct,st=f.w_size;do{if(a=f.window_size-f.lookahead-f.strstart,f.strstart>=st+(st-at)){for(h.arraySet(f.window,f.window,st,st,0),f.match_start-=st,f.strstart-=st,f.block_start-=st,q=o=f.hash_size;s=f.head[--q],f.head[q]=st<=s?s-st:0,--o;);for(q=o=st;s=f.prev[--q],f.prev[q]=st<=s?s-st:0,--o;);a+=st}if(f.strm.avail_in===0)break;if(M=f.strm,V=f.window,H=f.strstart+f.lookahead,ot=a,ct=void 0,ct=M.avail_in,ot<ct&&(ct=ot),o=ct===0?0:(M.avail_in-=ct,h.arraySet(V,M.input,M.next_in,ct,H),M.state.wrap===1?M.adler=g(M.adler,V,ct,H):M.state.wrap===2&&(M.adler=T(M.adler,V,ct,H)),M.next_in+=ct,M.total_in+=ct,ct),f.lookahead+=o,f.lookahead+f.insert>=C)for(x=f.strstart-f.insert,f.ins_h=f.window[x],f.ins_h=(f.ins_h<<f.hash_shift^f.window[x+1])&f.hash_mask;f.insert&&(f.ins_h=(f.ins_h<<f.hash_shift^f.window[x+C-1])&f.hash_mask,f.prev[x&f.w_mask]=f.head[f.ins_h],f.head[f.ins_h]=x,x++,f.insert--,!(f.lookahead+f.insert<C)););}while(f.lookahead<at&&f.strm.avail_in!==0)}function E(f,q){for(var o,s;;){if(f.lookahead<at){if(G(f),f.lookahead<at&&q===S)return y;if(f.lookahead===0)break}if(o=0,f.lookahead>=C&&(f.ins_h=(f.ins_h<<f.hash_shift^f.window[f.strstart+C-1])&f.hash_mask,o=f.prev[f.strstart&f.w_mask]=f.head[f.ins_h],f.head[f.ins_h]=f.strstart),o!==0&&f.strstart-o<=f.w_size-at&&(f.match_length=nt(f,o)),f.match_length>=C)if(s=n._tr_tally(f,f.strstart-f.match_start,f.match_length-C),f.lookahead-=f.match_length,f.match_length<=f.max_lazy_match&&f.lookahead>=C){for(f.match_length--;f.strstart++,f.ins_h=(f.ins_h<<f.hash_shift^f.window[f.strstart+C-1])&f.hash_mask,o=f.prev[f.strstart&f.w_mask]=f.head[f.ins_h],f.head[f.ins_h]=f.strstart,--f.match_length!=0;);f.strstart++}else f.strstart+=f.match_length,f.match_length=0,f.ins_h=f.window[f.strstart],f.ins_h=(f.ins_h<<f.hash_shift^f.window[f.strstart+1])&f.hash_mask;else s=n._tr_tally(f,0,f.window[f.strstart]),f.lookahead--,f.strstart++;if(s&&(D(f,!1),f.strm.avail_out===0))return y}return f.insert=f.strstart<C-1?f.strstart:C-1,q===I?(D(f,!0),f.strm.avail_out===0?$:K):f.last_lit&&(D(f,!1),f.strm.avail_out===0)?y:W}function w(f,q){for(var o,s,a;;){if(f.lookahead<at){if(G(f),f.lookahead<at&&q===S)return y;if(f.lookahead===0)break}if(o=0,f.lookahead>=C&&(f.ins_h=(f.ins_h<<f.hash_shift^f.window[f.strstart+C-1])&f.hash_mask,o=f.prev[f.strstart&f.w_mask]=f.head[f.ins_h],f.head[f.ins_h]=f.strstart),f.prev_length=f.match_length,f.prev_match=f.match_start,f.match_length=C-1,o!==0&&f.prev_length<f.max_lazy_match&&f.strstart-o<=f.w_size-at&&(f.match_length=nt(f,o),f.match_length<=5&&(f.strategy===1||f.match_length===C&&4096<f.strstart-f.match_start)&&(f.match_length=C-1)),f.prev_length>=C&&f.match_length<=f.prev_length){for(a=f.strstart+f.lookahead-C,s=n._tr_tally(f,f.strstart-1-f.prev_match,f.prev_length-C),f.lookahead-=f.prev_length-1,f.prev_length-=2;++f.strstart<=a&&(f.ins_h=(f.ins_h<<f.hash_shift^f.window[f.strstart+C-1])&f.hash_mask,o=f.prev[f.strstart&f.w_mask]=f.head[f.ins_h],f.head[f.ins_h]=f.strstart),--f.prev_length!=0;);if(f.match_available=0,f.match_length=C-1,f.strstart++,s&&(D(f,!1),f.strm.avail_out===0))return y}else if(f.match_available){if((s=n._tr_tally(f,0,f.window[f.strstart-1]))&&D(f,!1),f.strstart++,f.lookahead--,f.strm.avail_out===0)return y}else f.match_available=1,f.strstart++,f.lookahead--}return f.match_available&&(s=n._tr_tally(f,0,f.window[f.strstart-1]),f.match_available=0),f.insert=f.strstart<C-1?f.strstart:C-1,q===I?(D(f,!0),f.strm.avail_out===0?$:K):f.last_lit&&(D(f,!1),f.strm.avail_out===0)?y:W}function z(f,q,o,s,a){this.good_length=f,this.max_lazy=q,this.nice_length=o,this.max_chain=s,this.func=a}function L(){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=m,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 h.Buf16(2*B),this.dyn_dtree=new h.Buf16(2*(2*k+1)),this.bl_tree=new h.Buf16(2*(2*F+1)),lt(this.dyn_ltree),lt(this.dyn_dtree),lt(this.bl_tree),this.l_desc=null,this.d_desc=null,this.bl_desc=null,this.bl_count=new h.Buf16(U+1),this.heap=new h.Buf16(2*l+1),lt(this.heap),this.heap_len=0,this.heap_max=0,this.depth=new h.Buf16(2*l+1),lt(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(f){var q;return f&&f.state?(f.total_in=f.total_out=0,f.data_type=u,(q=f.state).pending=0,q.pending_out=0,q.wrap<0&&(q.wrap=-q.wrap),q.status=q.wrap?N:j,f.adler=q.wrap===2?0:1,q.last_flush=S,n._tr_init(q),d):it(f,A)}function P(f){var q=O(f);return q===d&&function(o){o.window_size=2*o.w_size,lt(o.head),o.max_lazy_match=c[o.level].max_lazy,o.good_match=c[o.level].good_length,o.nice_match=c[o.level].nice_length,o.max_chain_length=c[o.level].max_chain,o.strstart=0,o.block_start=0,o.lookahead=0,o.insert=0,o.match_length=o.prev_length=C-1,o.match_available=0,o.ins_h=0}(f.state),q}function tt(f,q,o,s,a,x){if(!f)return A;var M=1;if(q===v&&(q=6),s<0?(M=0,s=-s):15<s&&(M=2,s-=16),a<1||b<a||o!==m||s<8||15<s||q<0||9<q||x<0||R<x)return it(f,A);s===8&&(s=9);var V=new L;return(f.state=V).strm=f,V.wrap=M,V.gzhead=null,V.w_bits=s,V.w_size=1<<V.w_bits,V.w_mask=V.w_size-1,V.hash_bits=a+7,V.hash_size=1<<V.hash_bits,V.hash_mask=V.hash_size-1,V.hash_shift=~~((V.hash_bits+C-1)/C),V.window=new h.Buf8(2*V.w_size),V.head=new h.Buf16(V.hash_size),V.prev=new h.Buf16(V.w_size),V.lit_bufsize=1<<a+6,V.pending_buf_size=4*V.lit_bufsize,V.pending_buf=new h.Buf8(V.pending_buf_size),V.d_buf=1*V.lit_bufsize,V.l_buf=3*V.lit_bufsize,V.level=q,V.strategy=x,V.method=o,P(f)}c=[new z(0,0,0,0,function(f,q){var o=65535;for(o>f.pending_buf_size-5&&(o=f.pending_buf_size-5);;){if(f.lookahead<=1){if(G(f),f.lookahead===0&&q===S)return y;if(f.lookahead===0)break}f.strstart+=f.lookahead,f.lookahead=0;var s=f.block_start+o;if((f.strstart===0||f.strstart>=s)&&(f.lookahead=f.strstart-s,f.strstart=s,D(f,!1),f.strm.avail_out===0)||f.strstart-f.block_start>=f.w_size-at&&(D(f,!1),f.strm.avail_out===0))return y}return f.insert=0,q===I?(D(f,!0),f.strm.avail_out===0?$:K):(f.strstart>f.block_start&&(D(f,!1),f.strm.avail_out),y)}),new z(4,4,8,4,E),new z(4,5,16,8,E),new z(4,6,32,32,E),new z(4,4,16,16,w),new z(8,16,32,32,w),new z(8,16,128,128,w),new z(8,32,128,256,w),new z(32,128,258,1024,w),new z(32,258,258,4096,w)],p.deflateInit=function(f,q){return tt(f,q,m,15,8,0)},p.deflateInit2=tt,p.deflateReset=P,p.deflateResetKeep=O,p.deflateSetHeader=function(f,q){return f&&f.state?f.state.wrap!==2?A:(f.state.gzhead=q,d):A},p.deflate=function(f,q){var o,s,a,x;if(!f||!f.state||5<q||q<0)return f?it(f,A):A;if(s=f.state,!f.output||!f.input&&f.avail_in!==0||s.status===666&&q!==I)return it(f,f.avail_out===0?-5:A);if(s.strm=f,o=s.last_flush,s.last_flush=q,s.status===N)if(s.wrap===2)f.adler=0,Z(s,31),Z(s,139),Z(s,8),s.gzhead?(Z(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)),Z(s,255&s.gzhead.time),Z(s,s.gzhead.time>>8&255),Z(s,s.gzhead.time>>16&255),Z(s,s.gzhead.time>>24&255),Z(s,s.level===9?2:2<=s.strategy||s.level<2?4:0),Z(s,255&s.gzhead.os),s.gzhead.extra&&s.gzhead.extra.length&&(Z(s,255&s.gzhead.extra.length),Z(s,s.gzhead.extra.length>>8&255)),s.gzhead.hcrc&&(f.adler=T(f.adler,s.pending_buf,s.pending,0)),s.gzindex=0,s.status=69):(Z(s,0),Z(s,0),Z(s,0),Z(s,0),Z(s,0),Z(s,s.level===9?2:2<=s.strategy||s.level<2?4:0),Z(s,3),s.status=j);else{var M=m+(s.w_bits-8<<4)<<8;M|=(2<=s.strategy||s.level<2?0:s.level<6?1:s.level===6?2:3)<<6,s.strstart!==0&&(M|=32),M+=31-M%31,s.status=j,Y(s,M),s.strstart!==0&&(Y(s,f.adler>>>16),Y(s,65535&f.adler)),f.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&&(f.adler=T(f.adler,s.pending_buf,s.pending-a,a)),X(f),a=s.pending,s.pending!==s.pending_buf_size));)Z(s,255&s.gzhead.extra[s.gzindex]),s.gzindex++;s.gzhead.hcrc&&s.pending>a&&(f.adler=T(f.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&&(f.adler=T(f.adler,s.pending_buf,s.pending-a,a)),X(f),a=s.pending,s.pending===s.pending_buf_size)){x=1;break}x=s.gzindex<s.gzhead.name.length?255&s.gzhead.name.charCodeAt(s.gzindex++):0,Z(s,x)}while(x!==0);s.gzhead.hcrc&&s.pending>a&&(f.adler=T(f.adler,s.pending_buf,s.pending-a,a)),x===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&&(f.adler=T(f.adler,s.pending_buf,s.pending-a,a)),X(f),a=s.pending,s.pending===s.pending_buf_size)){x=1;break}x=s.gzindex<s.gzhead.comment.length?255&s.gzhead.comment.charCodeAt(s.gzindex++):0,Z(s,x)}while(x!==0);s.gzhead.hcrc&&s.pending>a&&(f.adler=T(f.adler,s.pending_buf,s.pending-a,a)),x===0&&(s.status=103)}else s.status=103;if(s.status===103&&(s.gzhead.hcrc?(s.pending+2>s.pending_buf_size&&X(f),s.pending+2<=s.pending_buf_size&&(Z(s,255&f.adler),Z(s,f.adler>>8&255),f.adler=0,s.status=j)):s.status=j),s.pending!==0){if(X(f),f.avail_out===0)return s.last_flush=-1,d}else if(f.avail_in===0&&J(q)<=J(o)&&q!==I)return it(f,-5);if(s.status===666&&f.avail_in!==0)return it(f,-5);if(f.avail_in!==0||s.lookahead!==0||q!==S&&s.status!==666){var V=s.strategy===2?function(H,ot){for(var ct;;){if(H.lookahead===0&&(G(H),H.lookahead===0)){if(ot===S)return y;break}if(H.match_length=0,ct=n._tr_tally(H,0,H.window[H.strstart]),H.lookahead--,H.strstart++,ct&&(D(H,!1),H.strm.avail_out===0))return y}return H.insert=0,ot===I?(D(H,!0),H.strm.avail_out===0?$:K):H.last_lit&&(D(H,!1),H.strm.avail_out===0)?y:W}(s,q):s.strategy===3?function(H,ot){for(var ct,st,ht,ft,dt=H.window;;){if(H.lookahead<=Q){if(G(H),H.lookahead<=Q&&ot===S)return y;if(H.lookahead===0)break}if(H.match_length=0,H.lookahead>=C&&0<H.strstart&&(st=dt[ht=H.strstart-1])===dt[++ht]&&st===dt[++ht]&&st===dt[++ht]){ft=H.strstart+Q;do;while(st===dt[++ht]&&st===dt[++ht]&&st===dt[++ht]&&st===dt[++ht]&&st===dt[++ht]&&st===dt[++ht]&&st===dt[++ht]&&st===dt[++ht]&&ht<ft);H.match_length=Q-(ft-ht),H.match_length>H.lookahead&&(H.match_length=H.lookahead)}if(H.match_length>=C?(ct=n._tr_tally(H,1,H.match_length-C),H.lookahead-=H.match_length,H.strstart+=H.match_length,H.match_length=0):(ct=n._tr_tally(H,0,H.window[H.strstart]),H.lookahead--,H.strstart++),ct&&(D(H,!1),H.strm.avail_out===0))return y}return H.insert=0,ot===I?(D(H,!0),H.strm.avail_out===0?$:K):H.last_lit&&(D(H,!1),H.strm.avail_out===0)?y:W}(s,q):c[s.level].func(s,q);if(V!==$&&V!==K||(s.status=666),V===y||V===$)return f.avail_out===0&&(s.last_flush=-1),d;if(V===W&&(q===1?n._tr_align(s):q!==5&&(n._tr_stored_block(s,0,0,!1),q===3&&(lt(s.head),s.lookahead===0&&(s.strstart=0,s.block_start=0,s.insert=0))),X(f),f.avail_out===0))return s.last_flush=-1,d}return q!==I?d:s.wrap<=0?1:(s.wrap===2?(Z(s,255&f.adler),Z(s,f.adler>>8&255),Z(s,f.adler>>16&255),Z(s,f.adler>>24&255),Z(s,255&f.total_in),Z(s,f.total_in>>8&255),Z(s,f.total_in>>16&255),Z(s,f.total_in>>24&255)):(Y(s,f.adler>>>16),Y(s,65535&f.adler)),X(f),0<s.wrap&&(s.wrap=-s.wrap),s.pending!==0?d:1)},p.deflateEnd=function(f){var q;return f&&f.state?(q=f.state.status)!==N&&q!==69&&q!==73&&q!==91&&q!==103&&q!==j&&q!==666?it(f,A):(f.state=null,q===j?it(f,-3):d):A},p.deflateSetDictionary=function(f,q){var o,s,a,x,M,V,H,ot,ct=q.length;if(!f||!f.state||(x=(o=f.state).wrap)===2||x===1&&o.status!==N||o.lookahead)return A;for(x===1&&(f.adler=g(f.adler,q,ct,0)),o.wrap=0,ct>=o.w_size&&(x===0&&(lt(o.head),o.strstart=0,o.block_start=0,o.insert=0),ot=new h.Buf8(o.w_size),h.arraySet(ot,q,ct-o.w_size,o.w_size,0),q=ot,ct=o.w_size),M=f.avail_in,V=f.next_in,H=f.input,f.avail_in=ct,f.next_in=0,f.input=q,G(o);o.lookahead>=C;){for(s=o.strstart,a=o.lookahead-(C-1);o.ins_h=(o.ins_h<<o.hash_shift^o.window[s+C-1])&o.hash_mask,o.prev[s&o.w_mask]=o.head[o.ins_h],o.head[o.ins_h]=s,s++,--a;);o.strstart=s,o.lookahead=C-1,G(o)}return o.strstart+=o.lookahead,o.block_start=o.strstart,o.insert=o.lookahead,o.lookahead=0,o.match_length=o.prev_length=C-1,o.match_available=0,f.next_in=V,f.input=H,f.avail_in=M,o.wrap=x,d},p.deflateInfo="pako deflate (from Nodeca project)"},{"../utils/common":41,"./adler32":43,"./crc32":45,"./messages":51,"./trees":52}],47:[function(r,i,p){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,p){i.exports=function(c,h){var n,g,T,_,S,I,d,A,v,R,u,m,b,l,k,F,B,U,C,Q,at,N,j,y,W;n=c.state,g=c.next_in,y=c.input,T=g+(c.avail_in-5),_=c.next_out,W=c.output,S=_-(h-c.avail_out),I=_+(c.avail_out-257),d=n.dmax,A=n.wsize,v=n.whave,R=n.wnext,u=n.window,m=n.hold,b=n.bits,l=n.lencode,k=n.distcode,F=(1<<n.lenbits)-1,B=(1<<n.distbits)-1;t:do{b<15&&(m+=y[g++]<<b,b+=8,m+=y[g++]<<b,b+=8),U=l[m&F];e:for(;;){if(m>>>=C=U>>>24,b-=C,(C=U>>>16&255)===0)W[_++]=65535&U;else{if(!(16&C)){if((64&C)==0){U=l[(65535&U)+(m&(1<<C)-1)];continue e}if(32&C){n.mode=12;break t}c.msg="invalid literal/length code",n.mode=30;break t}Q=65535&U,(C&=15)&&(b<C&&(m+=y[g++]<<b,b+=8),Q+=m&(1<<C)-1,m>>>=C,b-=C),b<15&&(m+=y[g++]<<b,b+=8,m+=y[g++]<<b,b+=8),U=k[m&B];r:for(;;){if(m>>>=C=U>>>24,b-=C,!(16&(C=U>>>16&255))){if((64&C)==0){U=k[(65535&U)+(m&(1<<C)-1)];continue r}c.msg="invalid distance code",n.mode=30;break t}if(at=65535&U,b<(C&=15)&&(m+=y[g++]<<b,(b+=8)<C&&(m+=y[g++]<<b,b+=8)),d<(at+=m&(1<<C)-1)){c.msg="invalid distance too far back",n.mode=30;break t}if(m>>>=C,b-=C,(C=_-S)<at){if(v<(C=at-C)&&n.sane){c.msg="invalid distance too far back",n.mode=30;break t}if(j=u,(N=0)===R){if(N+=A-C,C<Q){for(Q-=C;W[_++]=u[N++],--C;);N=_-at,j=W}}else if(R<C){if(N+=A+R-C,(C-=R)<Q){for(Q-=C;W[_++]=u[N++],--C;);if(N=0,R<Q){for(Q-=C=R;W[_++]=u[N++],--C;);N=_-at,j=W}}}else if(N+=R-C,C<Q){for(Q-=C;W[_++]=u[N++],--C;);N=_-at,j=W}for(;2<Q;)W[_++]=j[N++],W[_++]=j[N++],W[_++]=j[N++],Q-=3;Q&&(W[_++]=j[N++],1<Q&&(W[_++]=j[N++]))}else{for(N=_-at;W[_++]=W[N++],W[_++]=W[N++],W[_++]=W[N++],2<(Q-=3););Q&&(W[_++]=W[N++],1<Q&&(W[_++]=W[N++]))}break}}break}}while(g<T&&_<I);g-=Q=b>>3,m&=(1<<(b-=Q<<3))-1,c.next_in=g,c.next_out=_,c.avail_in=g<T?T-g+5:5-(g-T),c.avail_out=_<I?I-_+257:257-(_-I),n.hold=m,n.bits=b}},{}],49:[function(r,i,p){var c=r("../utils/common"),h=r("./adler32"),n=r("./crc32"),g=r("./inffast"),T=r("./inftrees"),_=1,S=2,I=0,d=-2,A=1,v=852,R=592;function u(N){return(N>>>24&255)+(N>>>8&65280)+((65280&N)<<8)+((255&N)<<24)}function m(){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 c.Buf16(320),this.work=new c.Buf16(288),this.lendyn=null,this.distdyn=null,this.sane=0,this.back=0,this.was=0}function b(N){var j;return N&&N.state?(j=N.state,N.total_in=N.total_out=j.total=0,N.msg="",j.wrap&&(N.adler=1&j.wrap),j.mode=A,j.last=0,j.havedict=0,j.dmax=32768,j.head=null,j.hold=0,j.bits=0,j.lencode=j.lendyn=new c.Buf32(v),j.distcode=j.distdyn=new c.Buf32(R),j.sane=1,j.back=-1,I):d}function l(N){var j;return N&&N.state?((j=N.state).wsize=0,j.whave=0,j.wnext=0,b(N)):d}function k(N,j){var y,W;return N&&N.state?(W=N.state,j<0?(y=0,j=-j):(y=1+(j>>4),j<48&&(j&=15)),j&&(j<8||15<j)?d:(W.window!==null&&W.wbits!==j&&(W.window=null),W.wrap=y,W.wbits=j,l(N))):d}function F(N,j){var y,W;return N?(W=new m,(N.state=W).window=null,(y=k(N,j))!==I&&(N.state=null),y):d}var B,U,C=!0;function Q(N){if(C){var j;for(B=new c.Buf32(512),U=new c.Buf32(32),j=0;j<144;)N.lens[j++]=8;for(;j<256;)N.lens[j++]=9;for(;j<280;)N.lens[j++]=7;for(;j<288;)N.lens[j++]=8;for(T(_,N.lens,0,288,B,0,N.work,{bits:9}),j=0;j<32;)N.lens[j++]=5;T(S,N.lens,0,32,U,0,N.work,{bits:5}),C=!1}N.lencode=B,N.lenbits=9,N.distcode=U,N.distbits=5}function at(N,j,y,W){var $,K=N.state;return K.window===null&&(K.wsize=1<<K.wbits,K.wnext=0,K.whave=0,K.window=new c.Buf8(K.wsize)),W>=K.wsize?(c.arraySet(K.window,j,y-K.wsize,K.wsize,0),K.wnext=0,K.whave=K.wsize):(W<($=K.wsize-K.wnext)&&($=W),c.arraySet(K.window,j,y-W,$,K.wnext),(W-=$)?(c.arraySet(K.window,j,y-W,W,0),K.wnext=W,K.whave=K.wsize):(K.wnext+=$,K.wnext===K.wsize&&(K.wnext=0),K.whave<K.wsize&&(K.whave+=$))),0}p.inflateReset=l,p.inflateReset2=k,p.inflateResetKeep=b,p.inflateInit=function(N){return F(N,15)},p.inflateInit2=F,p.inflate=function(N,j){var y,W,$,K,it,J,lt,X,D,Z,Y,nt,G,E,w,z,L,O,P,tt,f,q,o,s,a=0,x=new c.Buf8(4),M=[16,17,18,0,8,7,9,6,10,5,11,4,12,3,13,2,14,1,15];if(!N||!N.state||!N.output||!N.input&&N.avail_in!==0)return d;(y=N.state).mode===12&&(y.mode=13),it=N.next_out,$=N.output,lt=N.avail_out,K=N.next_in,W=N.input,J=N.avail_in,X=y.hold,D=y.bits,Z=J,Y=lt,q=I;t:for(;;)switch(y.mode){case A:if(y.wrap===0){y.mode=13;break}for(;D<16;){if(J===0)break t;J--,X+=W[K++]<<D,D+=8}if(2&y.wrap&&X===35615){x[y.check=0]=255&X,x[1]=X>>>8&255,y.check=n(y.check,x,2,0),D=X=0,y.mode=2;break}if(y.flags=0,y.head&&(y.head.done=!1),!(1&y.wrap)||(((255&X)<<8)+(X>>8))%31){N.msg="incorrect header check",y.mode=30;break}if((15&X)!=8){N.msg="unknown compression method",y.mode=30;break}if(D-=4,f=8+(15&(X>>>=4)),y.wbits===0)y.wbits=f;else if(f>y.wbits){N.msg="invalid window size",y.mode=30;break}y.dmax=1<<f,N.adler=y.check=1,y.mode=512&X?10:12,D=X=0;break;case 2:for(;D<16;){if(J===0)break t;J--,X+=W[K++]<<D,D+=8}if(y.flags=X,(255&y.flags)!=8){N.msg="unknown compression method",y.mode=30;break}if(57344&y.flags){N.msg="unknown header flags set",y.mode=30;break}y.head&&(y.head.text=X>>8&1),512&y.flags&&(x[0]=255&X,x[1]=X>>>8&255,y.check=n(y.check,x,2,0)),D=X=0,y.mode=3;case 3:for(;D<32;){if(J===0)break t;J--,X+=W[K++]<<D,D+=8}y.head&&(y.head.time=X),512&y.flags&&(x[0]=255&X,x[1]=X>>>8&255,x[2]=X>>>16&255,x[3]=X>>>24&255,y.check=n(y.check,x,4,0)),D=X=0,y.mode=4;case 4:for(;D<16;){if(J===0)break t;J--,X+=W[K++]<<D,D+=8}y.head&&(y.head.xflags=255&X,y.head.os=X>>8),512&y.flags&&(x[0]=255&X,x[1]=X>>>8&255,y.check=n(y.check,x,2,0)),D=X=0,y.mode=5;case 5:if(1024&y.flags){for(;D<16;){if(J===0)break t;J--,X+=W[K++]<<D,D+=8}y.length=X,y.head&&(y.head.extra_len=X),512&y.flags&&(x[0]=255&X,x[1]=X>>>8&255,y.check=n(y.check,x,2,0)),D=X=0}else y.head&&(y.head.extra=null);y.mode=6;case 6:if(1024&y.flags&&(J<(nt=y.length)&&(nt=J),nt&&(y.head&&(f=y.head.extra_len-y.length,y.head.extra||(y.head.extra=new Array(y.head.extra_len)),c.arraySet(y.head.extra,W,K,nt,f)),512&y.flags&&(y.check=n(y.check,W,nt,K)),J-=nt,K+=nt,y.length-=nt),y.length))break t;y.length=0,y.mode=7;case 7:if(2048&y.flags){if(J===0)break t;for(nt=0;f=W[K+nt++],y.head&&f&&y.length<65536&&(y.head.name+=String.fromCharCode(f)),f&&nt<J;);if(512&y.flags&&(y.check=n(y.check,W,nt,K)),J-=nt,K+=nt,f)break t}else y.head&&(y.head.name=null);y.length=0,y.mode=8;case 8:if(4096&y.flags){if(J===0)break t;for(nt=0;f=W[K+nt++],y.head&&f&&y.length<65536&&(y.head.comment+=String.fromCharCode(f)),f&&nt<J;);if(512&y.flags&&(y.check=n(y.check,W,nt,K)),J-=nt,K+=nt,f)break t}else y.head&&(y.head.comment=null);y.mode=9;case 9:if(512&y.flags){for(;D<16;){if(J===0)break t;J--,X+=W[K++]<<D,D+=8}if(X!==(65535&y.check)){N.msg="header crc mismatch",y.mode=30;break}D=X=0}y.head&&(y.head.hcrc=y.flags>>9&1,y.head.done=!0),N.adler=y.check=0,y.mode=12;break;case 10:for(;D<32;){if(J===0)break t;J--,X+=W[K++]<<D,D+=8}N.adler=y.check=u(X),D=X=0,y.mode=11;case 11:if(y.havedict===0)return N.next_out=it,N.avail_out=lt,N.next_in=K,N.avail_in=J,y.hold=X,y.bits=D,2;N.adler=y.check=1,y.mode=12;case 12:if(j===5||j===6)break t;case 13:if(y.last){X>>>=7&D,D-=7&D,y.mode=27;break}for(;D<3;){if(J===0)break t;J--,X+=W[K++]<<D,D+=8}switch(y.last=1&X,D-=1,3&(X>>>=1)){case 0:y.mode=14;break;case 1:if(Q(y),y.mode=20,j!==6)break;X>>>=2,D-=2;break t;case 2:y.mode=17;break;case 3:N.msg="invalid block type",y.mode=30}X>>>=2,D-=2;break;case 14:for(X>>>=7&D,D-=7&D;D<32;){if(J===0)break t;J--,X+=W[K++]<<D,D+=8}if((65535&X)!=(X>>>16^65535)){N.msg="invalid stored block lengths",y.mode=30;break}if(y.length=65535&X,D=X=0,y.mode=15,j===6)break t;case 15:y.mode=16;case 16:if(nt=y.length){if(J<nt&&(nt=J),lt<nt&&(nt=lt),nt===0)break t;c.arraySet($,W,K,nt,it),J-=nt,K+=nt,lt-=nt,it+=nt,y.length-=nt;break}y.mode=12;break;case 17:for(;D<14;){if(J===0)break t;J--,X+=W[K++]<<D,D+=8}if(y.nlen=257+(31&X),X>>>=5,D-=5,y.ndist=1+(31&X),X>>>=5,D-=5,y.ncode=4+(15&X),X>>>=4,D-=4,286<y.nlen||30<y.ndist){N.msg="too many length or distance symbols",y.mode=30;break}y.have=0,y.mode=18;case 18:for(;y.have<y.ncode;){for(;D<3;){if(J===0)break t;J--,X+=W[K++]<<D,D+=8}y.lens[M[y.have++]]=7&X,X>>>=3,D-=3}for(;y.have<19;)y.lens[M[y.have++]]=0;if(y.lencode=y.lendyn,y.lenbits=7,o={bits:y.lenbits},q=T(0,y.lens,0,19,y.lencode,0,y.work,o),y.lenbits=o.bits,q){N.msg="invalid code lengths set",y.mode=30;break}y.have=0,y.mode=19;case 19:for(;y.have<y.nlen+y.ndist;){for(;z=(a=y.lencode[X&(1<<y.lenbits)-1])>>>16&255,L=65535&a,!((w=a>>>24)<=D);){if(J===0)break t;J--,X+=W[K++]<<D,D+=8}if(L<16)X>>>=w,D-=w,y.lens[y.have++]=L;else{if(L===16){for(s=w+2;D<s;){if(J===0)break t;J--,X+=W[K++]<<D,D+=8}if(X>>>=w,D-=w,y.have===0){N.msg="invalid bit length repeat",y.mode=30;break}f=y.lens[y.have-1],nt=3+(3&X),X>>>=2,D-=2}else if(L===17){for(s=w+3;D<s;){if(J===0)break t;J--,X+=W[K++]<<D,D+=8}D-=w,f=0,nt=3+(7&(X>>>=w)),X>>>=3,D-=3}else{for(s=w+7;D<s;){if(J===0)break t;J--,X+=W[K++]<<D,D+=8}D-=w,f=0,nt=11+(127&(X>>>=w)),X>>>=7,D-=7}if(y.have+nt>y.nlen+y.ndist){N.msg="invalid bit length repeat",y.mode=30;break}for(;nt--;)y.lens[y.have++]=f}}if(y.mode===30)break;if(y.lens[256]===0){N.msg="invalid code -- missing end-of-block",y.mode=30;break}if(y.lenbits=9,o={bits:y.lenbits},q=T(_,y.lens,0,y.nlen,y.lencode,0,y.work,o),y.lenbits=o.bits,q){N.msg="invalid literal/lengths set",y.mode=30;break}if(y.distbits=6,y.distcode=y.distdyn,o={bits:y.distbits},q=T(S,y.lens,y.nlen,y.ndist,y.distcode,0,y.work,o),y.distbits=o.bits,q){N.msg="invalid distances set",y.mode=30;break}if(y.mode=20,j===6)break t;case 20:y.mode=21;case 21:if(6<=J&&258<=lt){N.next_out=it,N.avail_out=lt,N.next_in=K,N.avail_in=J,y.hold=X,y.bits=D,g(N,Y),it=N.next_out,$=N.output,lt=N.avail_out,K=N.next_in,W=N.input,J=N.avail_in,X=y.hold,D=y.bits,y.mode===12&&(y.back=-1);break}for(y.back=0;z=(a=y.lencode[X&(1<<y.lenbits)-1])>>>16&255,L=65535&a,!((w=a>>>24)<=D);){if(J===0)break t;J--,X+=W[K++]<<D,D+=8}if(z&&(240&z)==0){for(O=w,P=z,tt=L;z=(a=y.lencode[tt+((X&(1<<O+P)-1)>>O)])>>>16&255,L=65535&a,!(O+(w=a>>>24)<=D);){if(J===0)break t;J--,X+=W[K++]<<D,D+=8}X>>>=O,D-=O,y.back+=O}if(X>>>=w,D-=w,y.back+=w,y.length=L,z===0){y.mode=26;break}if(32&z){y.back=-1,y.mode=12;break}if(64&z){N.msg="invalid literal/length code",y.mode=30;break}y.extra=15&z,y.mode=22;case 22:if(y.extra){for(s=y.extra;D<s;){if(J===0)break t;J--,X+=W[K++]<<D,D+=8}y.length+=X&(1<<y.extra)-1,X>>>=y.extra,D-=y.extra,y.back+=y.extra}y.was=y.length,y.mode=23;case 23:for(;z=(a=y.distcode[X&(1<<y.distbits)-1])>>>16&255,L=65535&a,!((w=a>>>24)<=D);){if(J===0)break t;J--,X+=W[K++]<<D,D+=8}if((240&z)==0){for(O=w,P=z,tt=L;z=(a=y.distcode[tt+((X&(1<<O+P)-1)>>O)])>>>16&255,L=65535&a,!(O+(w=a>>>24)<=D);){if(J===0)break t;J--,X+=W[K++]<<D,D+=8}X>>>=O,D-=O,y.back+=O}if(X>>>=w,D-=w,y.back+=w,64&z){N.msg="invalid distance code",y.mode=30;break}y.offset=L,y.extra=15&z,y.mode=24;case 24:if(y.extra){for(s=y.extra;D<s;){if(J===0)break t;J--,X+=W[K++]<<D,D+=8}y.offset+=X&(1<<y.extra)-1,X>>>=y.extra,D-=y.extra,y.back+=y.extra}if(y.offset>y.dmax){N.msg="invalid distance too far back",y.mode=30;break}y.mode=25;case 25:if(lt===0)break t;if(nt=Y-lt,y.offset>nt){if((nt=y.offset-nt)>y.whave&&y.sane){N.msg="invalid distance too far back",y.mode=30;break}G=nt>y.wnext?(nt-=y.wnext,y.wsize-nt):y.wnext-nt,nt>y.length&&(nt=y.length),E=y.window}else E=$,G=it-y.offset,nt=y.length;for(lt<nt&&(nt=lt),lt-=nt,y.length-=nt;$[it++]=E[G++],--nt;);y.length===0&&(y.mode=21);break;case 26:if(lt===0)break t;$[it++]=y.length,lt--,y.mode=21;break;case 27:if(y.wrap){for(;D<32;){if(J===0)break t;J--,X|=W[K++]<<D,D+=8}if(Y-=lt,N.total_out+=Y,y.total+=Y,Y&&(N.adler=y.check=y.flags?n(y.check,$,Y,it-Y):h(y.check,$,Y,it-Y)),Y=lt,(y.flags?X:u(X))!==y.check){N.msg="incorrect data check",y.mode=30;break}D=X=0}y.mode=28;case 28:if(y.wrap&&y.flags){for(;D<32;){if(J===0)break t;J--,X+=W[K++]<<D,D+=8}if(X!==(4294967295&y.total)){N.msg="incorrect length check",y.mode=30;break}D=X=0}y.mode=29;case 29:q=1;break t;case 30:q=-3;break t;case 31:return-4;case 32:default:return d}return N.next_out=it,N.avail_out=lt,N.next_in=K,N.avail_in=J,y.hold=X,y.bits=D,(y.wsize||Y!==N.avail_out&&y.mode<30&&(y.mode<27||j!==4))&&at(N,N.output,N.next_out,Y-N.avail_out)?(y.mode=31,-4):(Z-=N.avail_in,Y-=N.avail_out,N.total_in+=Z,N.total_out+=Y,y.total+=Y,y.wrap&&Y&&(N.adler=y.check=y.flags?n(y.check,$,Y,N.next_out-Y):h(y.check,$,Y,N.next_out-Y)),N.data_type=y.bits+(y.last?64:0)+(y.mode===12?128:0)+(y.mode===20||y.mode===15?256:0),(Z==0&&Y===0||j===4)&&q===I&&(q=-5),q)},p.inflateEnd=function(N){if(!N||!N.state)return d;var j=N.state;return j.window&&(j.window=null),N.state=null,I},p.inflateGetHeader=function(N,j){var y;return N&&N.state?(2&(y=N.state).wrap)==0?d:((y.head=j).done=!1,I):d},p.inflateSetDictionary=function(N,j){var y,W=j.length;return N&&N.state?(y=N.state).wrap!==0&&y.mode!==11?d:y.mode===11&&h(1,j,W,0)!==y.check?-3:at(N,j,W,W)?(y.mode=31,-4):(y.havedict=1,I):d},p.inflateInfo="pako inflate (from Nodeca project)"},{"../utils/common":41,"./adler32":43,"./crc32":45,"./inffast":48,"./inftrees":50}],50:[function(r,i,p){var c=r("../utils/common"),h=[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],g=[1,2,3,4,5,7,9,13,17,25,33,49,65,97,129,193,257,385,513,769,1025,1537,2049,3073,4097,6145,8193,12289,16385,24577,0,0],T=[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(_,S,I,d,A,v,R,u){var m,b,l,k,F,B,U,C,Q,at=u.bits,N=0,j=0,y=0,W=0,$=0,K=0,it=0,J=0,lt=0,X=0,D=null,Z=0,Y=new c.Buf16(16),nt=new c.Buf16(16),G=null,E=0;for(N=0;N<=15;N++)Y[N]=0;for(j=0;j<d;j++)Y[S[I+j]]++;for($=at,W=15;1<=W&&Y[W]===0;W--);if(W<$&&($=W),W===0)return A[v++]=20971520,A[v++]=20971520,u.bits=1,0;for(y=1;y<W&&Y[y]===0;y++);for($<y&&($=y),N=J=1;N<=15;N++)if(J<<=1,(J-=Y[N])<0)return-1;if(0<J&&(_===0||W!==1))return-1;for(nt[1]=0,N=1;N<15;N++)nt[N+1]=nt[N]+Y[N];for(j=0;j<d;j++)S[I+j]!==0&&(R[nt[S[I+j]]++]=j);if(B=_===0?(D=G=R,19):_===1?(D=h,Z-=257,G=n,E-=257,256):(D=g,G=T,-1),N=y,F=v,it=j=X=0,l=-1,k=(lt=1<<(K=$))-1,_===1&&852<lt||_===2&&592<lt)return 1;for(;;){for(U=N-it,Q=R[j]<B?(C=0,R[j]):R[j]>B?(C=G[E+R[j]],D[Z+R[j]]):(C=96,0),m=1<<N-it,y=b=1<<K;A[F+(X>>it)+(b-=m)]=U<<24|C<<16|Q|0,b!==0;);for(m=1<<N-1;X&m;)m>>=1;if(m!==0?(X&=m-1,X+=m):X=0,j++,--Y[N]==0){if(N===W)break;N=S[I+R[j]]}if($<N&&(X&k)!==l){for(it===0&&(it=$),F+=y,J=1<<(K=N-it);K+it<W&&!((J-=Y[K+it])<=0);)K++,J<<=1;if(lt+=1<<K,_===1&&852<lt||_===2&&592<lt)return 1;A[l=X&k]=$<<24|K<<16|F-v|0}}return X!==0&&(A[F+X]=N-it<<24|64<<16|0),u.bits=$,0}},{"../utils/common":41}],51:[function(r,i,p){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,p){var c=r("../utils/common"),h=0,n=1;function g(a){for(var x=a.length;0<=--x;)a[x]=0}var T=0,_=29,S=256,I=S+1+_,d=30,A=19,v=2*I+1,R=15,u=16,m=7,b=256,l=16,k=17,F=18,B=[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],U=[0,0,0,0,1,1,2,2,3,3,4,4,5,5,6,6,7,7,8,8,9,9,10,10,11,11,12,12,13,13],C=[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,2,3,7],Q=[16,17,18,0,8,7,9,6,10,5,11,4,12,3,13,2,14,1,15],at=new Array(2*(I+2));g(at);var N=new Array(2*d);g(N);var j=new Array(512);g(j);var y=new Array(256);g(y);var W=new Array(_);g(W);var $,K,it,J=new Array(d);function lt(a,x,M,V,H){this.static_tree=a,this.extra_bits=x,this.extra_base=M,this.elems=V,this.max_length=H,this.has_stree=a&&a.length}function X(a,x){this.dyn_tree=a,this.max_code=0,this.stat_desc=x}function D(a){return a<256?j[a]:j[256+(a>>>7)]}function Z(a,x){a.pending_buf[a.pending++]=255&x,a.pending_buf[a.pending++]=x>>>8&255}function Y(a,x,M){a.bi_valid>u-M?(a.bi_buf|=x<<a.bi_valid&65535,Z(a,a.bi_buf),a.bi_buf=x>>u-a.bi_valid,a.bi_valid+=M-u):(a.bi_buf|=x<<a.bi_valid&65535,a.bi_valid+=M)}function nt(a,x,M){Y(a,M[2*x],M[2*x+1])}function G(a,x){for(var M=0;M|=1&a,a>>>=1,M<<=1,0<--x;);return M>>>1}function E(a,x,M){var V,H,ot=new Array(R+1),ct=0;for(V=1;V<=R;V++)ot[V]=ct=ct+M[V-1]<<1;for(H=0;H<=x;H++){var st=a[2*H+1];st!==0&&(a[2*H]=G(ot[st]++,st))}}function w(a){var x;for(x=0;x<I;x++)a.dyn_ltree[2*x]=0;for(x=0;x<d;x++)a.dyn_dtree[2*x]=0;for(x=0;x<A;x++)a.bl_tree[2*x]=0;a.dyn_ltree[2*b]=1,a.opt_len=a.static_len=0,a.last_lit=a.matches=0}function z(a){8<a.bi_valid?Z(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 L(a,x,M,V){var H=2*x,ot=2*M;return a[H]<a[ot]||a[H]===a[ot]&&V[x]<=V[M]}function O(a,x,M){for(var V=a.heap[M],H=M<<1;H<=a.heap_len&&(H<a.heap_len&&L(x,a.heap[H+1],a.heap[H],a.depth)&&H++,!L(x,V,a.heap[H],a.depth));)a.heap[M]=a.heap[H],M=H,H<<=1;a.heap[M]=V}function P(a,x,M){var V,H,ot,ct,st=0;if(a.last_lit!==0)for(;V=a.pending_buf[a.d_buf+2*st]<<8|a.pending_buf[a.d_buf+2*st+1],H=a.pending_buf[a.l_buf+st],st++,V===0?nt(a,H,x):(nt(a,(ot=y[H])+S+1,x),(ct=B[ot])!==0&&Y(a,H-=W[ot],ct),nt(a,ot=D(--V),M),(ct=U[ot])!==0&&Y(a,V-=J[ot],ct)),st<a.last_lit;);nt(a,b,x)}function tt(a,x){var M,V,H,ot=x.dyn_tree,ct=x.stat_desc.static_tree,st=x.stat_desc.has_stree,ht=x.stat_desc.elems,ft=-1;for(a.heap_len=0,a.heap_max=v,M=0;M<ht;M++)ot[2*M]!==0?(a.heap[++a.heap_len]=ft=M,a.depth[M]=0):ot[2*M+1]=0;for(;a.heap_len<2;)ot[2*(H=a.heap[++a.heap_len]=ft<2?++ft:0)]=1,a.depth[H]=0,a.opt_len--,st&&(a.static_len-=ct[2*H+1]);for(x.max_code=ft,M=a.heap_len>>1;1<=M;M--)O(a,ot,M);for(H=ht;M=a.heap[1],a.heap[1]=a.heap[a.heap_len--],O(a,ot,1),V=a.heap[1],a.heap[--a.heap_max]=M,a.heap[--a.heap_max]=V,ot[2*H]=ot[2*M]+ot[2*V],a.depth[H]=(a.depth[M]>=a.depth[V]?a.depth[M]:a.depth[V])+1,ot[2*M+1]=ot[2*V+1]=H,a.heap[1]=H++,O(a,ot,1),2<=a.heap_len;);a.heap[--a.heap_max]=a.heap[1],function(dt,kt){var Xt,Nt,xe,_t,Ue,cr,Ut=kt.dyn_tree,ri=kt.max_code,uc=kt.stat_desc.static_tree,cc=kt.stat_desc.has_stree,lc=kt.stat_desc.extra_bits,ni=kt.stat_desc.extra_base,_e=kt.stat_desc.max_length,He=0;for(_t=0;_t<=R;_t++)dt.bl_count[_t]=0;for(Ut[2*dt.heap[dt.heap_max]+1]=0,Xt=dt.heap_max+1;Xt<v;Xt++)_e<(_t=Ut[2*Ut[2*(Nt=dt.heap[Xt])+1]+1]+1)&&(_t=_e,He++),Ut[2*Nt+1]=_t,ri<Nt||(dt.bl_count[_t]++,Ue=0,ni<=Nt&&(Ue=lc[Nt-ni]),cr=Ut[2*Nt],dt.opt_len+=cr*(_t+Ue),cc&&(dt.static_len+=cr*(uc[2*Nt+1]+Ue)));if(He!==0){do{for(_t=_e-1;dt.bl_count[_t]===0;)_t--;dt.bl_count[_t]--,dt.bl_count[_t+1]+=2,dt.bl_count[_e]--,He-=2}while(0<He);for(_t=_e;_t!==0;_t--)for(Nt=dt.bl_count[_t];Nt!==0;)ri<(xe=dt.heap[--Xt])||(Ut[2*xe+1]!==_t&&(dt.opt_len+=(_t-Ut[2*xe+1])*Ut[2*xe],Ut[2*xe+1]=_t),Nt--)}}(a,x),E(ot,ft,a.bl_count)}function f(a,x,M){var V,H,ot=-1,ct=x[1],st=0,ht=7,ft=4;for(ct===0&&(ht=138,ft=3),x[2*(M+1)+1]=65535,V=0;V<=M;V++)H=ct,ct=x[2*(V+1)+1],++st<ht&&H===ct||(st<ft?a.bl_tree[2*H]+=st:H!==0?(H!==ot&&a.bl_tree[2*H]++,a.bl_tree[2*l]++):st<=10?a.bl_tree[2*k]++:a.bl_tree[2*F]++,ot=H,ft=(st=0)===ct?(ht=138,3):H===ct?(ht=6,3):(ht=7,4))}function q(a,x,M){var V,H,ot=-1,ct=x[1],st=0,ht=7,ft=4;for(ct===0&&(ht=138,ft=3),V=0;V<=M;V++)if(H=ct,ct=x[2*(V+1)+1],!(++st<ht&&H===ct)){if(st<ft)for(;nt(a,H,a.bl_tree),--st!=0;);else H!==0?(H!==ot&&(nt(a,H,a.bl_tree),st--),nt(a,l,a.bl_tree),Y(a,st-3,2)):st<=10?(nt(a,k,a.bl_tree),Y(a,st-3,3)):(nt(a,F,a.bl_tree),Y(a,st-11,7));ot=H,ft=(st=0)===ct?(ht=138,3):H===ct?(ht=6,3):(ht=7,4)}}g(J);var o=!1;function s(a,x,M,V){Y(a,(T<<1)+(V?1:0),3),function(H,ot,ct,st){z(H),Z(H,ct),Z(H,~ct),c.arraySet(H.pending_buf,H.window,ot,ct,H.pending),H.pending+=ct}(a,x,M)}p._tr_init=function(a){o||(function(){var x,M,V,H,ot,ct=new Array(R+1);for(H=V=0;H<_-1;H++)for(W[H]=V,x=0;x<1<<B[H];x++)y[V++]=H;for(y[V-1]=H,H=ot=0;H<16;H++)for(J[H]=ot,x=0;x<1<<U[H];x++)j[ot++]=H;for(ot>>=7;H<d;H++)for(J[H]=ot<<7,x=0;x<1<<U[H]-7;x++)j[256+ot++]=H;for(M=0;M<=R;M++)ct[M]=0;for(x=0;x<=143;)at[2*x+1]=8,x++,ct[8]++;for(;x<=255;)at[2*x+1]=9,x++,ct[9]++;for(;x<=279;)at[2*x+1]=7,x++,ct[7]++;for(;x<=287;)at[2*x+1]=8,x++,ct[8]++;for(E(at,I+1,ct),x=0;x<d;x++)N[2*x+1]=5,N[2*x]=G(x,5);$=new lt(at,B,S+1,I,R),K=new lt(N,U,0,d,R),it=new lt(new Array(0),C,0,A,m)}(),o=!0),a.l_desc=new X(a.dyn_ltree,$),a.d_desc=new X(a.dyn_dtree,K),a.bl_desc=new X(a.bl_tree,it),a.bi_buf=0,a.bi_valid=0,w(a)},p._tr_stored_block=s,p._tr_flush_block=function(a,x,M,V){var H,ot,ct=0;0<a.level?(a.strm.data_type===2&&(a.strm.data_type=function(st){var ht,ft=4093624447;for(ht=0;ht<=31;ht++,ft>>>=1)if(1&ft&&st.dyn_ltree[2*ht]!==0)return h;if(st.dyn_ltree[18]!==0||st.dyn_ltree[20]!==0||st.dyn_ltree[26]!==0)return n;for(ht=32;ht<S;ht++)if(st.dyn_ltree[2*ht]!==0)return n;return h}(a)),tt(a,a.l_desc),tt(a,a.d_desc),ct=function(st){var ht;for(f(st,st.dyn_ltree,st.l_desc.max_code),f(st,st.dyn_dtree,st.d_desc.max_code),tt(st,st.bl_desc),ht=A-1;3<=ht&&st.bl_tree[2*Q[ht]+1]===0;ht--);return st.opt_len+=3*(ht+1)+5+5+4,ht}(a),H=a.opt_len+3+7>>>3,(ot=a.static_len+3+7>>>3)<=H&&(H=ot)):H=ot=M+5,M+4<=H&&x!==-1?s(a,x,M,V):a.strategy===4||ot===H?(Y(a,2+(V?1:0),3),P(a,at,N)):(Y(a,4+(V?1:0),3),function(st,ht,ft,dt){var kt;for(Y(st,ht-257,5),Y(st,ft-1,5),Y(st,dt-4,4),kt=0;kt<dt;kt++)Y(st,st.bl_tree[2*Q[kt]+1],3);q(st,st.dyn_ltree,ht-1),q(st,st.dyn_dtree,ft-1)}(a,a.l_desc.max_code+1,a.d_desc.max_code+1,ct+1),P(a,a.dyn_ltree,a.dyn_dtree)),w(a),V&&z(a)},p._tr_tally=function(a,x,M){return a.pending_buf[a.d_buf+2*a.last_lit]=x>>>8&255,a.pending_buf[a.d_buf+2*a.last_lit+1]=255&x,a.pending_buf[a.l_buf+a.last_lit]=255&M,a.last_lit++,x===0?a.dyn_ltree[2*M]++:(a.matches++,x--,a.dyn_ltree[2*(y[M]+S+1)]++,a.dyn_dtree[2*D(x)]++),a.last_lit===a.lit_bufsize-1},p._tr_align=function(a){Y(a,2,3),nt(a,b,at),function(x){x.bi_valid===16?(Z(x,x.bi_buf),x.bi_buf=0,x.bi_valid=0):8<=x.bi_valid&&(x.pending_buf[x.pending++]=255&x.bi_buf,x.bi_buf>>=8,x.bi_valid-=8)}(a)}},{"../utils/common":41}],53:[function(r,i,p){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,p){(function(c){(function(h,n){if(!h.setImmediate){var g,T,_,S,I=1,d={},A=!1,v=h.document,R=Object.getPrototypeOf&&Object.getPrototypeOf(h);R=R&&R.setTimeout?R:h,g={}.toString.call(h.process)==="[object process]"?function(l){gt.nextTick(function(){m(l)})}:function(){if(h.postMessage&&!h.importScripts){var l=!0,k=h.onmessage;return h.onmessage=function(){l=!1},h.postMessage("","*"),h.onmessage=k,l}}()?(S="setImmediate$"+Math.random()+"$",h.addEventListener?h.addEventListener("message",b,!1):h.attachEvent("onmessage",b),function(l){h.postMessage(S+l,"*")}):h.MessageChannel?((_=new MessageChannel).port1.onmessage=function(l){m(l.data)},function(l){_.port2.postMessage(l)}):v&&"onreadystatechange"in v.createElement("script")?(T=v.documentElement,function(l){var k=v.createElement("script");k.onreadystatechange=function(){m(l),k.onreadystatechange=null,T.removeChild(k),k=null},T.appendChild(k)}):function(l){setTimeout(m,0,l)},R.setImmediate=function(l){typeof l!="function"&&(l=new Function(""+l));for(var k=new Array(arguments.length-1),F=0;F<k.length;F++)k[F]=arguments[F+1];var B={callback:l,args:k};return d[I]=B,g(I),I++},R.clearImmediate=u}function u(l){delete d[l]}function m(l){if(A)setTimeout(m,0,l);else{var k=d[l];if(k){A=!0;try{(function(F){var B=F.callback,U=F.args;switch(U.length){case 0:B();break;case 1:B(U[0]);break;case 2:B(U[0],U[1]);break;case 3:B(U[0],U[1],U[2]);break;default:B.apply(n,U)}})(k)}finally{u(l),A=!1}}}}function b(l){l.source===h&&typeof l.data=="string"&&l.data.indexOf(S)===0&&m(+l.data.slice(S.length))}})(typeof self>"u"?c===void 0?this:c:self)}).call(this,typeof Pt<"u"?Pt:typeof self<"u"?self:typeof window<"u"?window:{})},{}]},{},[10])(10)})}(ec)),ec.exports}var jf=Mf();const zf=hr(jf);var ze={exports:{}},ti,nc;function Wf(){if(nc)return ti;nc=1;var e={"&":"&amp;",'"':"&quot;","'":"&apos;","<":"&lt;",">":"&gt;"};function t(r){return r&&r.replace?r.replace(/([&"<>'])/g,function(i,p){return e[p]}):r}return ti=t,ti}var ic;function Uf(){if(ic)return ze.exports;ic=1;var e=Wf(),t=ln().Stream,r=" ";function i(T,_){typeof _!="object"&&(_={indent:_});var S=_.stream?new t:null,I="",d=!1,A=_.indent?_.indent===!0?r:_.indent:"",v=!0;function R(k){v?gt.nextTick(k):k()}function u(k,F){if(F!==void 0&&(I+=F),k&&!d&&(S=S||new t,d=!0),k&&d){var B=I;R(function(){S.emit("data",B)}),I=""}}function m(k,F){n(u,h(k,A,A?1:0),F)}function b(){if(S){var k=I;R(function(){S.emit("data",k),S.emit("end"),S.readable=!1,S.emit("close")})}}function l(k){var F=k.encoding||"UTF-8",B={version:"1.0",encoding:F};k.standalone&&(B.standalone=k.standalone),m({"?xml":{_attr:B}}),I=I.replace("/>","?>")}return R(function(){v=!1}),_.declaration&&l(_.declaration),T&&T.forEach?T.forEach(function(k,F){var B;F+1===T.length&&(B=b),m(k,B)}):m(T,b),S?(S.readable=!0,S):I}function p(){var T=Array.prototype.slice.call(arguments),_={_elem:h(T)};return _.push=function(S){if(!this.append)throw new Error("not assigned to a parent!");var I=this,d=this._elem.indent;n(this.append,h(S,d,this._elem.icount+(d?1:0)),function(){I.append(!0)})},_.close=function(S){S!==void 0&&this.push(S),this.end&&this.end()},_}function c(T,_){return new Array(_||0).join(T||"")}function h(T,_,S){S=S||0;var I=c(_,S),d,A=T,v=!1;if(typeof T=="object"){var R=Object.keys(T);if(d=R[0],A=T[d],A&&A._elem)return A._elem.name=d,A._elem.icount=S,A._elem.indent=_,A._elem.indents=I,A._elem.interrupt=A,A._elem}var u=[],m=[],b;function l(k){var F=Object.keys(k);F.forEach(function(B){u.push(g(B,k[B]))})}switch(typeof A){case"object":if(A===null)break;A._attr&&l(A._attr),A._cdata&&m.push(("<![CDATA["+A._cdata).replace(/\]\]>/g,"]]]]><![CDATA[>")+"]]>"),A.forEach&&(b=!1,m.push(""),A.forEach(function(k){if(typeof k=="object"){var F=Object.keys(k)[0];F=="_attr"?l(k._attr):m.push(h(k,_,S+1))}else m.pop(),b=!0,m.push(e(k))}),b||m.push(""));break;default:m.push(e(A))}return{name:d,interrupt:v,attributes:u,content:m,icount:S,indents:I,indent:_}}function n(T,_,S){if(typeof _!="object")return T(!1,_);var I=_.interrupt?1:_.content.length;function d(){for(;_.content.length;){var v=_.content.shift();if(v!==void 0){if(A(v))return;n(T,v)}}T(!1,(I>1?_.indents:"")+(_.name?"</"+_.name+">":"")+(_.indent&&!S?`
22
+ `:"")),S&&S()}function A(v){return v.interrupt?(v.interrupt.append=T,v.interrupt.end=d,v.interrupt=!1,T(!0),!0):!1}if(T(!1,_.indents+(_.name?"<"+_.name:"")+(_.attributes.length?" "+_.attributes.join(" "):"")+(I?_.name?">":"":_.name?"/>":"")+(_.indent&&I>1?`
23
+ `:"")),!I)return T(!1,_.indent?`
24
+ `:"");A(_)||d()}function g(T,_){return T+'="'+e(_)+'"'}return ze.exports=i,ze.exports.element=ze.exports.Element=p,ze.exports}var Hf=Uf();const xt=hr(Hf),We=0,ei=32,Kf=32,Vf=(e,t)=>{const r=t.replace(/-/g,"");if(r.length!==Kf)throw new Error(`Error: Cannot extract GUID from font filename: ${t}`);const i=r.replace(/(..)/g,"$1 ").trim().split(" ").map(h=>parseInt(h,16));i.reverse();const p=e.slice(We,ei).map((h,n)=>h^i[n%i.length]),c=new Uint8Array(We+p.length+Math.max(0,e.length-ei));return c.set(e.slice(0,We)),c.set(p,We),c.set(e.slice(ei),We+p.length),c};class Gf{format(t,r={stack:[]}){const i=t.prepForXml(r);if(i)return i;throw Error("XMLComponent did not format correctly")}}class Zf{replace(t,r,i){let p=t;return r.forEach((c,h)=>{p=p.replace(new RegExp(`{${c.fileName}}`,"g"),(i+h).toString())}),p}getMediaData(t,r){return r.Array.filter(i=>t.search(`{${i.fileName}}`)>0)}}class Xf{replace(t,r){let i=t;for(const p of r)i=i.replace(new RegExp(`{${p.reference}-${p.instance}}`,"g"),p.numId.toString());return i}}class qf{constructor(){rt(this,"formatter"),rt(this,"imageReplacer"),rt(this,"numberingReplacer"),this.formatter=new Gf,this.imageReplacer=new Zf,this.numberingReplacer=new Xf}compile(t,r,i=[]){const p=new zf,c=this.xmlifyFile(t,r),h=new Map(Object.entries(c));for(const[,n]of h)if(Array.isArray(n))for(const g of n)p.file(g.path,g.data);else p.file(n.path,n.data);for(const n of i)p.file(n.path,n.data);for(const n of t.Media.Array)n.type!=="svg"?p.file(`word/media/${n.fileName}`,n.data):(p.file(`word/media/${n.fileName}`,n.data),p.file(`word/media/${n.fallback.fileName}`,n.fallback.data));for(const{data:n,name:g,fontKey:T}of t.FontTable.fontOptionsWithKey){const[_]=g.split(".");p.file(`word/fonts/${_}.odttf`,Vf(n,T))}return p}xmlifyFile(t,r){const i=t.Document.Relationships.RelationshipCount+1,p=xt(this.formatter.format(t.Document.View,{viewWrapper:t.Document,file:t,stack:[]}),{indent:r,declaration:{standalone:"yes",encoding:"UTF-8"}}),c=t.Comments.Relationships.RelationshipCount+1,h=xt(this.formatter.format(t.Comments,{viewWrapper:{View:t.Comments,Relationships:t.Comments.Relationships},file:t,stack:[]}),{indent:r,declaration:{standalone:"yes",encoding:"UTF-8"}}),n=this.imageReplacer.getMediaData(p,t.Media),g=this.imageReplacer.getMediaData(h,t.Media);return{Relationships:{data:(n.forEach((T,_)=>{t.Document.Relationships.createRelationship(i+_,"http://schemas.openxmlformats.org/officeDocument/2006/relationships/image",`media/${T.fileName}`)}),t.Document.Relationships.createRelationship(t.Document.Relationships.RelationshipCount+1,"http://schemas.openxmlformats.org/officeDocument/2006/relationships/fontTable","fontTable.xml"),xt(this.formatter.format(t.Document.Relationships,{viewWrapper:t.Document,file:t,stack:[]}),{indent:r,declaration:{encoding:"UTF-8"}})),path:"word/_rels/document.xml.rels"},Document:{data:(()=>{const T=this.imageReplacer.replace(p,n,i);return this.numberingReplacer.replace(T,t.Numbering.ConcreteNumbering)})(),path:"word/document.xml"},Styles:{data:(()=>{const T=xt(this.formatter.format(t.Styles,{viewWrapper:t.Document,file:t,stack:[]}),{indent:r,declaration:{standalone:"yes",encoding:"UTF-8"}});return this.numberingReplacer.replace(T,t.Numbering.ConcreteNumbering)})(),path:"word/styles.xml"},Properties:{data:xt(this.formatter.format(t.CoreProperties,{viewWrapper:t.Document,file:t,stack:[]}),{indent:r,declaration:{standalone:"yes",encoding:"UTF-8"}}),path:"docProps/core.xml"},Numbering:{data:xt(this.formatter.format(t.Numbering,{viewWrapper:t.Document,file:t,stack:[]}),{indent:r,declaration:{standalone:"yes",encoding:"UTF-8"}}),path:"word/numbering.xml"},FileRelationships:{data:xt(this.formatter.format(t.FileRelationships,{viewWrapper:t.Document,file:t,stack:[]}),{indent:r,declaration:{encoding:"UTF-8"}}),path:"_rels/.rels"},HeaderRelationships:t.Headers.map((T,_)=>{const S=xt(this.formatter.format(T.View,{viewWrapper:T,file:t,stack:[]}),{indent:r,declaration:{encoding:"UTF-8"}});return this.imageReplacer.getMediaData(S,t.Media).forEach((I,d)=>{T.Relationships.createRelationship(d,"http://schemas.openxmlformats.org/officeDocument/2006/relationships/image",`media/${I.fileName}`)}),{data:xt(this.formatter.format(T.Relationships,{viewWrapper:T,file:t,stack:[]}),{indent:r,declaration:{encoding:"UTF-8"}}),path:`word/_rels/header${_+1}.xml.rels`}}),FooterRelationships:t.Footers.map((T,_)=>{const S=xt(this.formatter.format(T.View,{viewWrapper:T,file:t,stack:[]}),{indent:r,declaration:{encoding:"UTF-8"}});return this.imageReplacer.getMediaData(S,t.Media).forEach((I,d)=>{T.Relationships.createRelationship(d,"http://schemas.openxmlformats.org/officeDocument/2006/relationships/image",`media/${I.fileName}`)}),{data:xt(this.formatter.format(T.Relationships,{viewWrapper:T,file:t,stack:[]}),{indent:r,declaration:{encoding:"UTF-8"}}),path:`word/_rels/footer${_+1}.xml.rels`}}),Headers:t.Headers.map((T,_)=>{const S=xt(this.formatter.format(T.View,{viewWrapper:T,file:t,stack:[]}),{indent:r,declaration:{encoding:"UTF-8"}}),I=this.imageReplacer.getMediaData(S,t.Media),d=this.imageReplacer.replace(S,I,0);return{data:this.numberingReplacer.replace(d,t.Numbering.ConcreteNumbering),path:`word/header${_+1}.xml`}}),Footers:t.Footers.map((T,_)=>{const S=xt(this.formatter.format(T.View,{viewWrapper:T,file:t,stack:[]}),{indent:r,declaration:{encoding:"UTF-8"}}),I=this.imageReplacer.getMediaData(S,t.Media),d=this.imageReplacer.replace(S,I,0);return{data:this.numberingReplacer.replace(d,t.Numbering.ConcreteNumbering),path:`word/footer${_+1}.xml`}}),ContentTypes:{data:xt(this.formatter.format(t.ContentTypes,{viewWrapper:t.Document,file:t,stack:[]}),{indent:r,declaration:{encoding:"UTF-8"}}),path:"[Content_Types].xml"},CustomProperties:{data:xt(this.formatter.format(t.CustomProperties,{viewWrapper:t.Document,file:t,stack:[]}),{indent:r,declaration:{standalone:"yes",encoding:"UTF-8"}}),path:"docProps/custom.xml"},AppProperties:{data:xt(this.formatter.format(t.AppProperties,{viewWrapper:t.Document,file:t,stack:[]}),{indent:r,declaration:{standalone:"yes",encoding:"UTF-8"}}),path:"docProps/app.xml"},FootNotes:{data:xt(this.formatter.format(t.FootNotes.View,{viewWrapper:t.FootNotes,file:t,stack:[]}),{indent:r,declaration:{encoding:"UTF-8"}}),path:"word/footnotes.xml"},FootNotesRelationships:{data:xt(this.formatter.format(t.FootNotes.Relationships,{viewWrapper:t.FootNotes,file:t,stack:[]}),{indent:r,declaration:{encoding:"UTF-8"}}),path:"word/_rels/footnotes.xml.rels"},Settings:{data:xt(this.formatter.format(t.Settings,{viewWrapper:t.Document,file:t,stack:[]}),{indent:r,declaration:{standalone:"yes",encoding:"UTF-8"}}),path:"word/settings.xml"},Comments:{data:(()=>{const T=this.imageReplacer.replace(h,g,c);return this.numberingReplacer.replace(T,t.Numbering.ConcreteNumbering)})(),path:"word/comments.xml"},CommentsRelationships:{data:(g.forEach((T,_)=>{t.Comments.Relationships.createRelationship(c+_,"http://schemas.openxmlformats.org/officeDocument/2006/relationships/image",`media/${T.fileName}`)}),xt(this.formatter.format(t.Comments.Relationships,{viewWrapper:{View:t.Comments,Relationships:t.Comments.Relationships},file:t,stack:[]}),{indent:r,declaration:{encoding:"UTF-8"}})),path:"word/_rels/comments.xml.rels"},FontTable:{data:xt(this.formatter.format(t.FontTable.View,{viewWrapper:t.Document,file:t,stack:[]}),{indent:r,declaration:{standalone:"yes",encoding:"UTF-8"}}),path:"word/fontTable.xml"},FontTableRelationships:{data:xt(this.formatter.format(t.FontTable.Relationships,{viewWrapper:t.Document,file:t,stack:[]}),{indent:r,declaration:{encoding:"UTF-8"}}),path:"word/_rels/fontTable.xml.rels"}}}}const oc={WITH_2_BLANKS:" "},sc=e=>e===!0?oc.WITH_2_BLANKS:e===!1?void 0:e,ac=class ve{static pack(t,r,i){return gc(this,arguments,function*(p,c,h,n=[]){return this.compiler.compile(p,sc(h),n).generateAsync({type:c,mimeType:"application/vnd.openxmlformats-officedocument.wordprocessingml.document",compression:"DEFLATE"})})}static toString(t,r,i=[]){return ve.pack(t,"string",r,i)}static toBuffer(t,r,i=[]){return ve.pack(t,"nodebuffer",r,i)}static toBase64String(t,r,i=[]){return ve.pack(t,"base64",r,i)}static toBlob(t,r,i=[]){return ve.pack(t,"blob",r,i)}static toArrayBuffer(t,r,i=[]){return ve.pack(t,"arraybuffer",r,i)}static toStream(t,r,i=[]){const p=new Lf.Stream;return this.compiler.compile(t,sc(r),i).generateAsync({type:"nodebuffer",mimeType:"application/vnd.openxmlformats-officedocument.wordprocessingml.document",compression:"DEFLATE"}).then(c=>{p.emit("data",c),p.emit("end")}),p}};rt(ac,"compiler",new qf);let Yf=ac;export{$n as AbstractNumbering,En as Alignment,Vs as AlignmentAttributes,It as AlignmentType,vt as Attributes,Qs as BaseEmphasisMark,Ee as BaseXmlComponent,bu as Body,tu as Bookmark,ru as BookmarkEnd,eu as BookmarkStart,Gs as Border,yt as BorderElement,Qe as BorderStyle,wt as BuilderElement,su as Columns,Ga as Comment,Mh as CommentRangeEnd,Lh as CommentRangeStart,jh as CommentReference,Za as Comments,Be as ConcreteHyperlink,Jn as ConcreteNumbering,Ff as DeletedTextRun,$u as Document,Gn as DocumentAttributeNamespaces,Le as DocumentAttributes,xu as DocumentBackground,vu as DocumentBackgroundAttributes,Yu as DocumentDefaults,Va as Drawing,oi as EMPTY_OBJECT,$s as EmphasisMark,Ys as EmphasisMarkType,Hs as EmptyElement,Ja as ExternalHyperlink,$u as File,Hn as FileChild,Ju as FootNoteReferenceRunAttributes,ju as FootNotes,If as Footer,Lu as FooterWrapper,Rf as FootnoteReference,Su as GridSpan,Cf as Header,rr as HeaderFooterReference,ce as HeaderFooterReferenceType,Vn as HeaderFooterType,zu as HeaderWrapper,Vh as HeadingLevel,ka as HorizontalPositionRelativeFrom,Ye as HpsMeasureElement,Ot as IgnoreIfEmptyXmlComponent,Rh as ImageRun,Bs as ImportedRootElementAttributes,Fs as ImportedXmlComponent,Xs as Indent,bn as InitializableXmlComponent,Nf as InsertedTextRun,Yh as InternalHyperlink,Gh as LeaderType,Hu as Level,Uu as LevelBase,Wt as LevelFormat,Ku as LevelOverride,qp as LevelSuffix,tr as LineRuleType,Wu as Media,Dt as NextAttributeComponent,er as NumberProperties,me as NumberValueElement,Vu as Numbering,ut as OnOffElement,nu as OutlineLevel,Yf as Packer,lu as PageBorders,Hh as PageBreak,Xa as PageBreakBefore,hu as PageMargin,$t as PageNumber,fu as PageNumberType,pu as PageNumberTypeAttributes,nr as PageOrientation,mu as PageTextDirection,we as Paragraph,le as ParagraphProperties,Xu as ParagraphPropertiesDefaults,oc as PrettifyType,ae as Run,$e as RunFonts,Gt as RunProperties,ra as RunPropertiesChange,qu as RunPropertiesDefaults,yu as SectionProperties,ep as SectionType,gu as SectionTypeAttributes,Ie as Shading,xl as ShadingType,Rt as SpaceType,qa as Spacing,Qt as StringContainer,Ks as StringEnumValueElement,Yt as StringValueElement,Fe as Style,je as StyleForCharacter,Me as StyleForParagraph,ar as Styles,Cu as TDirection,zh as Tab,Qa as TabAttributes,Ya as TabStop,$a as TabStopItem,Un as TabStopType,fp as Table,Yn as TableBorders,qn as TableCell,ku as TableCellBorders,Iu as TableFloatProperties,Ru as TableLayout,Ou as TableProperties,dp as TableRow,Pu as TableRowHeight,Du as TableRowHeightAttributes,Fu as TableRowProperties,te as TableWidthElement,Je as TextRun,La as TextWrappingSide,Pe as TextWrappingType,Zs as ThematicBreak,wu as Type,ea as Underline,Sn as UnderlineType,ou as VerticalAlignAttributes,Kn as VerticalAlignElement,iu as VerticalAlignTable,Xn as VerticalMerge,Zn as VerticalMergeType,Sa as VerticalPositionRelativeFrom,or as WidthType,jn as WrapNone,Ma as WrapSquare,ja as WrapTight,za as WrapTopAndBottom,pt as XmlAttributeComponent,et as XmlComponent,xa as abstractNumUniqueNumericIdGen,Ta as bookmarkUniqueNumericIdGen,_a as concreteNumUniqueNumericIdGen,St as convertInchesToTwip,Xe as convertToXmlComponent,au as createDocumentGrid,Eu as createFrameProperties,Na as createHorizontalPosition,uu as createLineNumberType,du as createPageSize,Ca as createSimplePos,de as createStringElement,Oa as createVerticalPosition,Us as dateTimeValue,At as decimalNumber,Ea as docPropertiesUniqueNumericIdGen,zs as eighthPointMeasureValue,Mn as hashedId,ne as hexColorValue,Ms as hpsMeasureValue,_n as measurementOrPercentValue,js as percentageValue,Ws as pointMeasureValue,xn as positiveUniversalMeasureValue,Jt as sectionMarginDefaults,ir as sectionPageSizeDefaults,Lt as signedTwipsMeasureValue,Tt as twipsMeasureValue,vn as uCharHexNumber,Ln as uniqueId,Oe as uniqueNumericIdCreator,Aa as uniqueUuid,qe as universalMeasureValue,Ce as unsignedDecimalNumber};