var er=function(e,r){return er=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,a){t.__proto__=a}||function(t,a){for(var i in a)Object.prototype.hasOwnProperty.call(a,i)&&(t[i]=a[i])},er(e,r)};function ia(e,r){if(typeof r!="function"&&r!==null)throw new TypeError("Class extends value "+String(r)+" is not a constructor or null");er(e,r);function t(){this.constructor=e}e.prototype=r===null?Object.create(r):(t.prototype=r.prototype,new t)}var pe=function(){return pe=Object.assign||function(r){for(var t,a=1,i=arguments.length;a0&&n[n.length-1])&&(c[0]===6||c[0]===2)){t=0;continue}if(c[0]===3&&(!n||c[1]>n[0]&&c[1]=e.length&&(e=void 0),{value:e&&e[a++],done:!e}}};throw new TypeError(r?"Object is not iterable.":"Symbol.iterator is not defined.")}function ja(e,r){var t=typeof Symbol=="function"&&e[Symbol.iterator];if(!t)return e;var a=t.call(e),i,n=[],l;try{for(;(r===void 0||r-- >0)&&!(i=a.next()).done;)n.push(i.value)}catch(s){l={error:s}}finally{try{i&&!i.done&&(t=a.return)&&t.call(a)}finally{if(l)throw l.error}}return n}function Ua(e,r,t){if(t||arguments.length===2)for(var a=0,i=r.length,n;a=r[a];)t+=a,e-=r[a];return t}function In(e,r){switch(e){case fe.decimal:return r.toString();case fe.lowerLetter:return String.fromCharCode(96+r);case fe.upperLetter:return String.fromCharCode(64+r);case fe.lowerRoman:return Tt(r).toLowerCase();case fe.upperRoman:return Tt(r).toUpperCase();case fe.bullet:return"•";default:return r.toString()}}function jn(e,r,t){var a=r.numbering,i=t.numId;if(!i)return console.warn("renderNumbering: numId is empty"),null;if(!a)return console.warn("renderNumbering: numbering is empty"),null;var n=a.nums[i];if(!n)return console.warn("renderNumbering: num is empty"),null;var l=a.abstractNums[n.abstractNumId],s=l.lvls;n.lvlOverride&&(s=pe(pe({},s),n.lvlOverride.lvls));var o=s[t.ilvl];if(!o)return console.warn("renderNumbering: lvl is empty"),null;var c=t.ilvl,u=a.numData[i];if(!u[c])u[c]=o.start;else{u[c]+=1;for(var f in u)parseInt(f)>parseInt(c)&&(u[f]=0)}for(var v=j("span"),p=o.lvlText,h=parseInt(c),g=[],d=0;d<=h;d++){var k=u[d];if(k){var H=s[d].numFmt,q=In(H,k);o.isLgl&&(q=String(k)),g.push(q)}}for(var d=0;d article > section { background: white; } /** docDefaults **/ .`).concat(n,` p { margin: 0; padding: 0; } .`).concat(n,` table { border-spacing: 0; } .`).concat(n," .").concat(n,`-p { `).concat(a,` } .`).concat(n," .").concat(n,`-r { white-space: pre-wrap; overflow-wrap: break-word; `).concat(i,` } `)}function Xa(e,r,t){var a="",i=t.tblPr,n=t.tcPr;if(i){var l=ae(i.cssStyle),s=ae(i.tcCSSStyle);if(a+=` .`.concat(e," .").concat(r,` { border-collapse: collapse; `).concat(l,` } .`).concat(e," .").concat(r,` > tbody > tr > td { `).concat(s,` } `),i.insideBorder){var o=i.insideBorder;o.H&&(a+=` .`.concat(e," .").concat(r,` > tbody > tr > td { border-top: `).concat(o.H,`; }`)),o.V&&(a+=` .`.concat(e," .").concat(r,` > tbody > tr > td { border-left: `).concat(o.V,`; }`))}}if(n){var c=ae(n.cssStyle);a+=` .`.concat(e," .").concat(r,` > tbody > tr > td { `).concat(c,` } `)}return a}function Kn(e,r,t){var a,i,n,l,s,o,c="",u=ae((a=t.trPr)===null||a===void 0?void 0:a.cssStyle),f="";switch(r){case m.firstCol:f="enable-firstColumn";break;case m.lastCol:f="enable-lastColumn";break;case m.firstRow:f="enable-firstRow";break;case m.lastRow:f="enable-lastRow";break;case m.band1Horz:case m.band2Horz:f="enable-hBand";break;case m.band1Vert:case m.band2Vert:f="enable-vBand";break}u&&(c+=` `.concat(e,".").concat(f," > tbody > tr.").concat(r,`{ `).concat(u,` } `));var v=ae((i=t.tcPr)===null||i===void 0?void 0:i.cssStyle);if(v&&(c+=` `.concat(e,".").concat(f," > tbody > tr > td.").concat(r,` { `).concat(v,` } `),!((n=t.tcPr)===null||n===void 0)&&n.insideBorder)){var p=(l=t.tcPr)===null||l===void 0?void 0:l.insideBorder;p.H&&(c+=` `.concat(e,".").concat(f," > tbody > tr > td.").concat(r,` { border-top: `).concat(p.H,`; }`)),p.V&&(p.V==="none"?c+=` `.concat(e,".").concat(f," > tbody > tr > td.").concat(r,` { border-left: none; border-right: none; }`):c+=` `.concat(e,".").concat(f," > tbody > tr > td.").concat(r,` { border-left: `).concat(p.V,`; }`))}var h=ae((s=t.pPr)===null||s===void 0?void 0:s.cssStyle);h&&(c+=` `.concat(e,".").concat(f," > tbody > tr > td.").concat(r,` > .p { `).concat(h,` } `));var g=ae((o=t.rPr)===null||o===void 0?void 0:o.cssStyle);return g&&(c+=` `.concat(e,".").concat(f," > tbody > tr > td.").concat(r,` > .p > .r { `).concat(g,` } `)),c}var Gn=new Set([m.wholeTable,m.band1Horz,m.band2Horz,m.band1Vert,m.band2Vert,m.firstCol,m.firstRow,m.lastCol,m.lastRow,m.neCell,m.nwCell,m.seCell,m.swCell]);function Yn(e,r,t){var a,i;if(!t)return"";var n="",l=".".concat(e," .").concat(r);try{for(var s=y(Gn),o=s.next();!o.done;o=s.next()){var c=o.value;if(c in t){var u=t[c];n+=Kn(l,c,u)}}}catch(f){a={error:f}}finally{try{o&&!o.done&&(i=s.return)&&i.call(s)}finally{if(a)throw a.error}}return n}function Qn(e){var r=e.styles,t=r.styleMap,a=e.getClassPrefix(),i="";for(var n in t){var l=e.getStyleIdDisplayName(n),s=t[n],o=s.pPr,c="";if(o){var u=ae(o.cssStyle);c=` .`.concat(a," .").concat(l,` { `).concat(u,` } `)}var f="";if(s.rPr){var v=ae(s.rPr.cssStyle);f=` .`.concat(a," .").concat(l,` > .r { `).concat(v,` } `)}var p=Xa(a,l,s),h=Yn(a,l,s.tblStylePr);i+=` `.concat(c,` `).concat(f,` `).concat(p,` `).concat(h,` `)}return i}function $n(e){var r=j("style"),t=Zn(e),a=Qn(e);return r.innerHTML=` `.concat(t,` `).concat(a,` `),r}function Fn(e,r,t,a,i,n,l){e===0&&r===0&&i.classList.add(m.nwCell),e===0&&r===a-1&&i.classList.add(m.neCell),e===t-1&&r===0&&i.classList.add(m.swCell),e===t-1&&r===a-1&&i.classList.add(m.seCell),e===0&&i.classList.add(m.firstRow),e===t-1&&i.classList.add(m.lastRow),r===0&&i.classList.add(m.firstCol),r===a-1&&i.classList.add(m.lastCol),Oe(e+1)&&i.classList.add(m.band1Horz),Oe(e+1)||i.classList.add(m.band2Horz),Oe(r+1)&&i.classList.add(m.band1Vert),Oe(r+1)||i.classList.add(m.band2Vert)}function Oe(e,r){return!(e%2)}function Ha(e,r){var t,a,i,n,l,s,o=document.createElement("table"),c=r.properties;if(c.tblCaption){var u=document.createElement("caption");u.textContent=c.tblCaption,o.appendChild(u)}if(c.tblLook)for(var f in c.tblLook)f==="noHBand"?c.tblLook[f]||$e(o,"enable-hBand"):f==="noVBand"?c.tblLook[f]||$e(o,"enable-vBand"):c.tblLook[f]&&$e(o,"enable-"+f);xe(e,o,c);var v=e.genClassName();o.classList.add(v),e.appendStyle(Xa(e.getClassPrefix(),v,{tblPr:c}));var p=document.createElement("tbody");o.appendChild(p);var h=0;try{for(var g=y(r.trs),d=g.next();!d.done;d=g.next()){var k=d.value,H=document.createElement("tr");p.appendChild(H);var q=0;try{for(var X=(i=void 0,y(k.tcs)),P=X.next();!P.done;P=X.next()){var L=P.value,x=document.createElement("td");H.appendChild(x),Fn(h,q,r.trs.length,k.tcs.length,x,c.rowBandSize,c.colBandSize),k.properties.tcStyle&&xa(x,k.properties.tcStyle);var w=L.properties;xe(e,x,w),w.gridSpan&&(x.colSpan=w.gridSpan),w.rowSpan&&(x.rowSpan=w.rowSpan);var F=!1;try{for(var N=(l=void 0,y(L.children)),S=N.next();!S.done;S=N.next()){var z=S.value;if(z instanceof ye){var Z=Ra(e,z,!F);A(x,Z)}else z instanceof de?(F=!0,A(x,Ha(e,z))):console.warn("unknown child type: "+z)}}catch(D){l={error:D}}finally{try{S&&!S.done&&(s=N.return)&&s.call(N)}finally{if(l)throw l.error}}w.rowSpan?q+=w.rowSpan:q++}}catch(D){i={error:D}}finally{try{P&&!P.done&&(n=X.return)&&n.call(X)}finally{if(i)throw i.error}}h++}}catch(D){t={error:D}}finally{try{d&&!d.done&&(a=g.return)&&a.call(g)}finally{if(t)throw t.error}}return o}function Jn(e,r,t){var a,i,n,l;try{for(var s=y(t.sections),o=s.next();!o.done;o=s.next()){var c=o.value,u=Un(e,c);A(r,u);try{for(var f=(n=void 0,y(c.children)),v=f.next();!v.done;v=f.next()){var p=v.value;if(p instanceof ye){var h=Ra(e,p);A(u,h)}else p instanceof de?A(u,Ha(e,p)):p instanceof ze}}catch(g){n={error:g}}finally{try{v&&!v.done&&(l=f.return)&&l.call(f)}finally{if(n)throw n.error}}A(r,u)}}catch(g){a={error:g}}finally{try{o&&!o.done&&(i=s.return)&&i.call(s)}finally{if(a)throw a.error}}}function Bn(e,r){var t=j("article");return Jn(e,t,r.body),t}function Sn(e){return new Promise(function(r,t){var a=new FileReader;a.onload=function(i){return r(a.result)},a.onerror=function(i){return t(a.error)},a.onabort=function(i){return t(new Error("Read aborted"))},a.readAsDataURL(e)})}function Tn(e,r){r===void 0&&(r="file.txt");var t=URL.createObjectURL(e),a=document.createElement("a");a.href=t,a.download=r,document.body.appendChild(a),a.dispatchEvent(new MouseEvent("click",{bubbles:!0,cancelable:!0,view:window})),document.body.removeChild(a)}var za=function(){function e(){this.start=1,this.lvlText="%1.",this.isLgl=!1,this.lvlJc=tr.start,this.suff=ir.space}return e.fromXML=function(r,t){var a,i,n=new e;n.ilvl=t.getAttribute("w:ilvl");try{for(var l=y(t.children),s=l.next();!s.done;s=l.next()){var o=s.value,c=o.tagName;switch(c){case"w:start":n.start=qe(o);break;case"w:numFmt":n.numFmt=C(o);break;case"w:lvlText":n.lvlText=C(o);break;case"w:lvlJc":n.lvlJc=C(o);break;case"w:pPr":n.pPr=ye.parseParagraphPr(r,o);break;case"w:rPr":n.rPr=le.parseRunPr(r,o);break;case"w:isLgl":n.isLgl=re(o);break;default:console.warn("Lvl: Unknown tag ",c,o)}}}catch(u){a={error:u}}finally{try{s&&!s.done&&(i=l.return)&&i.call(l)}finally{if(a)throw a.error}}return n},e}(),_n=function(){function e(){this.lvls={}}return e.fromXML=function(r,t){var a,i,n=new e;n.abstractNumId=t.getAttribute("w:abstractNumId")||"",n.multiLevelType=t.getAttribute("w:multiLevelType");var l=t.getElementsByTagName("w:lvl");try{for(var s=y(l),o=s.next();!o.done;o=s.next()){var c=o.value,u=c.getAttribute("w:ilvl")||"";n.lvls[u]=za.fromXML(r,c)}}catch(v){a={error:v}}finally{try{o&&!o.done&&(i=s.return)&&i.call(s)}finally{if(a)throw a.error}}var f=t.querySelector("multiLevelType");return f&&(n.multiLevelType=C(f)),n},e}(),ei=function(){function e(){this.lvlOverride={lvls:{}}}return e.fromXML=function(r,t){var a,i,n=new e;n.numId=t.getAttribute("w:numId")||"";var l=t.querySelector("abstractNumId");l&&(n.abstractNumId=C(l));var s=t.querySelector("lvlOverride");if(s)try{for(var o=y(s.children),c=o.next();!c.done;c=o.next()){var u=c.value,f=u.tagName;switch(f){case"w:lvl":var v=u.getAttribute("w:lvlId")||"";n.lvlOverride.lvls[v]=za.fromXML(r,u);break;default:console.warn("Num: Unknown tag ",f,u)}}}catch(p){a={error:p}}finally{try{c&&!c.done&&(i=o.return)&&i.call(o)}finally{if(a)throw a.error}}return n},e}(),ri=function(){function e(){this.abstractNums={},this.nums={},this.numData={}}return e.fromXML=function(r,t){var a,i,n,l,s=new e;try{for(var o=y(t.getElementsByTagName("w:abstractNum")),c=o.next();!c.done;c=o.next()){var u=c.value,f=_n.fromXML(r,u);s.abstractNums[f.abstractNumId]=f}}catch(d){a={error:d}}finally{try{c&&!c.done&&(i=o.return)&&i.call(o)}finally{if(a)throw a.error}}try{for(var v=y(t.getElementsByTagName("w:num")),p=v.next();!p.done;p=v.next()){var h=p.value,g=ei.fromXML(r,h);s.nums[g.numId]=g,s.numData[g.numId]={}}}catch(d){n={error:d}}finally{try{p&&!p.done&&(l=v.return)&&l.call(v)}finally{if(n)throw n.error}}return s},e}();function ti(e,r,t){var a=r?je(e,r):{},i=t?je(e,t):{};return JSON.stringify(a)===JSON.stringify(i)}function ai(e,r){var t=e.getElementsByTagName("w:t")[0],a=r.getElementsByTagName("w:t")[0];if(t&&a){var i=a.textContent||"";t.textContent+=i||""}}function ni(e){var r,t,a=e.tagName,i=e.children,n=!1,l=!1;try{for(var s=y(i),o=s.next();!o.done;o=s.next()){var c=o.value;if(c.tagName==="w:t"){n=!0,l=c.getAttribute("xml:space")==="preserve";break}}}catch(u){r={error:u}}finally{try{o&&!o.done&&(t=s.return)&&t.call(s)}finally{if(r)throw r.error}}return a==="w:r"&&n&&!l}function ii(e,r){var t,a,i,n,l=[],s=null;try{for(var o=y(r.children),c=o.next();!c.done;c=o.next()){var u=c.value,f=u.tagName;if(ni(u))if(s){var v=s.getElementsByTagName("w:rPr")[0],p=u.getElementsByTagName("w:rPr")[0];ti(e,v,p)?ai(s,u):(s=u,l.push(u))}else s=u,l.push(u);else f!=="w:proofErr"&&(s=null,l.push(u))}}catch(k){t={error:k}}finally{try{c&&!c.done&&(a=o.return)&&a.call(o)}finally{if(t)throw t.error}}r.innerHTML="";try{for(var h=y(l),g=h.next();!g.done;g=h.next()){var d=g.value;r.appendChild(d)}}catch(k){i={error:k}}finally{try{g&&!g.done&&(n=h.return)&&n.call(h)}finally{if(i)throw i.error}}}function _t(e,r){var t,a,i=r.getElementsByTagName("w:p");try{for(var n=y(i),l=n.next();!l.done;l=n.next()){var s=l.value;ii(e,s)}}catch(o){t={error:o}}finally{try{l&&!l.done&&(a=n.return)&&a.call(n)}finally{if(t)throw t.error}}}var Je=function(){function e(){this.properties={},this.children=[]}return e.prototype.addChild=function(r){this.children.push(r)},e.parsePr=function(r){var t,a,i={};try{for(var n=y(r.children),l=n.next();!l.done;l=n.next()){var s=l.value,o=s.tagName;switch(o){case"w:pgSz":i.pageSize={width:b(s,"w:w"),height:b(s,"w:h")};break;case"w:pgMar":i.pageMargin={left:b(s,"w:left"),right:b(s,"w:right"),top:b(s,"w:top"),bottom:b(s,"w:bottom"),header:b(s,"w:header"),footer:b(s,"w:footer"),gutter:b(s,"w:gutter")};break;default:break}}}catch(c){t={error:c}}finally{try{l&&!l.done&&(a=n.return)&&a.call(n)}finally{if(t)throw t.error}}return i},e}(),oi=function(){function e(){this.sections=[],this.currentSection=new Je,this.sections.push(this.currentSection)}return e.prototype.addChild=function(r){this.currentSection.addChild(r)},e.prototype.addSection=function(r){this.currentSection.properties=r,this.currentSection=new Je,this.sections.push(this.currentSection)},e.fromXML=function(r,t){var a,i,n=new e;try{for(var l=y(t.children),s=l.next();!s.done;s=l.next()){var o=s.value,c=o.tagName;switch(c){case"w:p":var u=ye.fromXML(r,o);n.addChild(u);break;case"w:sectPr":n.addSection(Je.parsePr(o));break;case"w:tbl":var f=de.fromXML(r,o);n.addChild(f);break;case"w:bookmarkEnd":break;default:console.warn("Body.fromXML Unknown key",c,o)}}}catch(v){a={error:v}}finally{try{s&&!s.done&&(i=l.return)&&i.call(l)}finally{if(a)throw a.error}}return n},e}(),si=function(){function e(){}return e.fromXML=function(r,t){var a,i,n=new e,l=t.querySelector("body");l&&(n.body=oi.fromXML(r,l));var s=t.querySelector("background");if(s){var o={};try{for(var c=y(s.attributes),u=c.next();!u.done;u=c.next()){var f=u.value,v=f.name;switch(v){case"w:color":o.color=he(r,s,"w:color");break;case"w:themeColor":o.themeColor=he(r,s,"w:themeColor");break;case"w:themeShade":o.themeShade=he(r,s,"w:themeShade");break;case"w:themeTint":o.themeTint=he(r,s,"w:themeTint");break;default:break}}}catch(p){a={error:p}}finally{try{u&&!u.done&&(i=c.return)&&i.call(c)}finally{if(a)throw a.error}}}return n},e}(),O=Uint8Array,$=Uint16Array,Ke=Uint32Array,Ge=new O([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,0,0,0]),Ye=new O([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,0,0]),lr=new O([16,17,18,0,8,7,9,6,10,5,11,4,12,3,13,2,14,1,15]),Da=function(e,r){for(var t=new $(31),a=0;a<31;++a)t[a]=r+=1<>>1|(R&21845)<<1;ve=(ve&52428)>>>2|(ve&13107)<<2,ve=(ve&61680)>>>4|(ve&3855)<<4,fr[R]=((ve&65280)>>>8|(ve&255)<<8)>>>1}var ce=function(e,r,t){for(var a=e.length,i=0,n=new $(r);i>>o]=c}else for(s=new $(a),i=0;i>>15-e[i]);return s},ge=new O(288);for(var R=0;R<144;++R)ge[R]=8;for(var R=144;R<256;++R)ge[R]=9;for(var R=256;R<280;++R)ge[R]=7;for(var R=280;R<288;++R)ge[R]=8;var He=new O(32);for(var R=0;R<32;++R)He[R]=5;var li=ce(ge,9,0),ui=ce(ge,9,1),fi=ce(He,5,0),vi=ce(He,5,1),Be=function(e){for(var r=e[0],t=1;tr&&(r=e[t]);return r},ee=function(e,r,t){var a=r/8|0;return(e[a]|e[a+1]<<8)>>(r&7)&t},Se=function(e,r){var t=r/8|0;return(e[t]|e[t+1]<<8|e[t+2]<<16)>>(r&7)},br=function(e){return(e+7)/8|0},De=function(e,r,t){(r==null||r<0)&&(r=0),(t==null||t>e.length)&&(t=e.length);var a=new(e.BYTES_PER_ELEMENT==2?$:e.BYTES_PER_ELEMENT==4?Ke:O)(t-r);return a.set(e.subarray(r,t)),a},pi=["unexpected EOF","invalid block type","invalid length/literal","invalid distance","stream finished","no stream handler",,"no callback","invalid UTF-8 data","extra field too long","date not in range 1980-2099","filename too long","stream finishing","invalid zip data"],Q=function(e,r,t){var a=new Error(r||pi[e]);if(a.code=e,Error.captureStackTrace&&Error.captureStackTrace(a,Q),!t)throw a;return a},hi=function(e,r,t){var a=e.length;if(!a||t&&t.f&&!t.l)return r||new O(0);var i=!r||t,n=!t||t.i;t||(t={}),r||(r=new O(a*3));var l=function(Ee){var Le=r.length;if(Ee>Le){var be=new O(Math.max(Le*2,Ee));be.set(r),r=be}},s=t.f||0,o=t.p||0,c=t.b||0,u=t.l,f=t.d,v=t.m,p=t.n,h=a*8;do{if(!u){s=ee(e,o,1);var g=ee(e,o+1,3);if(o+=3,g)if(g==1)u=ui,f=vi,v=9,p=5;else if(g==2){var q=ee(e,o,31)+257,X=ee(e,o+10,15)+4,P=q+ee(e,o+5,31)+1;o+=14;for(var L=new O(P),x=new O(19),w=0;w>>4;if(d<16)L[w++]=d;else{var Z=0,D=0;for(d==16?(D=3+ee(e,o,3),o+=2,Z=L[w-1]):d==17?(D=3+ee(e,o,7),o+=3):d==18&&(D=11+ee(e,o,127),o+=7);D--;)L[w++]=Z}}var K=L.subarray(0,q),V=L.subarray(q);v=Be(K),p=Be(V),u=ce(K,v,1),f=ce(V,p,1)}else Q(1);else{var d=br(o)+4,k=e[d-4]|e[d-3]<<8,H=d+k;if(H>a){n&&Q(0);break}i&&l(c+k),r.set(e.subarray(d,H),c),t.b=c+=k,t.p=o=H*8,t.f=s;continue}if(o>h){n&&Q(0);break}}i&&l(c+131072);for(var W=(1<>>4;if(o+=Z&15,o>h){n&&Q(0);break}if(Z||Q(2),ne<256)r[c++]=ne;else if(ne==256){T=o,u=null;break}else{var B=ne-254;if(ne>264){var w=ne-257,_=Ge[w];B=ee(e,o,(1<<_)-1)+Oa[w],o+=_}var ie=f[Se(e,o)&J],G=ie>>>4;ie||Q(3),o+=ie&15;var V=ci[G];if(G>3){var _=Ye[G];V+=Se(e,o)&(1<<_)-1,o+=_}if(o>h){n&&Q(0);break}i&&l(c+131072);for(var U=c+B;c>>8},Pe=function(e,r,t){t<<=r&7;var a=r/8|0;e[a]|=t,e[a+1]|=t>>>8,e[a+2]|=t>>>16},Te=function(e,r){for(var t=[],a=0;av&&(v=n[a].s);var p=new $(v+1),h=vr(t[u-1],p,0);if(h>r){var a=0,g=0,d=h-r,k=1<r)g+=k-(1<>>=d;g>0;){var q=n[a].s;p[q]=0&&g;--a){var X=n[a].s;p[X]==r&&(--p[X],++g)}h=r}return[new O(p),h]},vr=function(e,r,t){return e.s==-1?Math.max(vr(e.l,r,t+1),vr(e.r,r,t+1)):r[e.s]=t},ra=function(e){for(var r=e.length;r&&!e[--r];);for(var t=new $(++r),a=0,i=e[0],n=1,l=function(o){t[a++]=o},s=1;s<=r;++s)if(e[s]==i&&s!=r)++n;else{if(!i&&n>2){for(;n>138;n-=138)l(32754);n>2&&(l(n>10?n-11<<5|28690:n-3<<5|12305),n=0)}else if(n>3){for(l(i),--n;n>6;n-=6)l(8304);n>2&&(l(n-3<<5|8208),n=0)}for(;n--;)l(i);n=1,i=e[s]}return[t.subarray(0,a),r]},Me=function(e,r){for(var t=0,a=0;a>>8,e[i+2]=e[i]^255,e[i+3]=e[i+1]^255;for(var n=0;n4&&!N[lr[z-1]];--z);var Z=c+5<<3,D=Me(i,ge)+Me(n,He)+l,K=Me(i,v)+Me(n,g)+l+14+3*z+Me(x,N)+(2*x[16]+3*x[17]+7*x[18]);if(Z<=D&&Z<=K)return pr(r,u,e.subarray(o,o+c));var V,W,J,T;if(ue(r,u,1+(K15&&(ue(r,u,ie[w]>>>5&127),u+=ie[w]>>>12)}}else V=li,W=ge,J=fi,T=He;for(var w=0;w255){var G=a[w]>>>18&31;Pe(r,u,V[G+257]),u+=W[G+257],G>7&&(ue(r,u,a[w]>>>23&31),u+=Ge[G]);var U=a[w]&31;Pe(r,u,J[U]),u+=T[U],U>3&&(Pe(r,u,a[w]>>>5&8191),u+=Ye[U])}else Pe(r,u,V[a[w]]),u+=W[a[w]];return Pe(r,u,V[256]),u+W[256]},gi=new Ke([65540,131080,131088,131104,262176,1048704,1048832,2114560,2117632]),mr=new O(0),wi=function(e,r,t,a,i,n){var l=e.length,s=new O(a+l+5*(1+Math.ceil(l/7e3))+i),o=s.subarray(a,s.length-i),c=0;if(!r||l<8)for(var u=0;u<=l;u+=65535){var f=u+65535;f>=l&&(o[c>>3]=n),c=pr(o,c+1,e.subarray(u,f))}else{for(var v=gi[r-1],p=v>>>13,h=v&8191,g=(1<7e3||N>24576)&&V>423){c=ta(e,o,0,P,L,x,F,N,z,u-z,c),N=w=F=0,z=u;for(var W=0;W<286;++W)L[W]=0;for(var W=0;W<30;++W)x[W]=0}var J=2,T=0,ne=h,B=D-K&32767;if(V>2&&Z==X(u-B))for(var _=Math.min(p,V)-1,ie=Math.min(32767,u),G=Math.min(258,V);B<=ie&&--ne&&D!=K;){if(e[u+J]==e[u+J-B]){for(var U=0;UJ){if(J=U,T=B,U>_)break;for(var Ee=Math.min(B,U-2),Le=0,W=0;WLe&&(Le=kr,K=be)}}}D=K,K=d[D],B+=D-K+32768&32767}if(T){P[N++]=268435456|ur[J]<<18|ea[T];var xr=ur[J]&31,Lr=ea[T]&31;F+=Ge[xr]+Ye[Lr],++L[257+xr],++x[Lr],S=u+J,++w}else P[N++]=e[u],++L[e[u]]}}c=ta(e,o,n,P,L,x,F,N,z,u-z,c),!n&&c&7&&(c=pr(o,c+1,mr))}return De(s,0,a+br(c)+i)},di=function(){for(var e=new Int32Array(256),r=0;r<256;++r){for(var t=r,a=9;--a;)t=(t&1&&-306674912)^t>>>1;e[r]=t}return e}(),yi=function(){var e=-1;return{p:function(r){for(var t=e,a=0;a>>8;e=t},d:function(){return~e}}},bi=function(e,r,t,a,i){return wi(e,r.level==null?6:r.level,r.mem==null?Math.ceil(Math.max(8,Math.min(13,Math.log(e.length)))*1.5):12+r.mem,t,a,!i)},Na=function(e,r){var t={};for(var a in e)t[a]=e[a];for(var a in r)t[a]=r[a];return t},oe=function(e,r){return e[r]|e[r+1]<<8},te=function(e,r){return(e[r]|e[r+1]<<8|e[r+2]<<16|e[r+3]<<24)>>>0},_e=function(e,r){return te(e,r)+te(e,r+4)*4294967296},I=function(e,r,t){for(;t;++r)e[r]=t,t>>>=8};function mi(e,r){return bi(e,r||{},0,0)}function ki(e,r){return hi(e,r)}var Va=function(e,r,t,a){for(var i in e){var n=e[i],l=r+i,s=a;Array.isArray(n)&&(s=Na(a,n[1]),n=n[0]),n instanceof O?t[l]=[n,s]:(t[l+="/"]=[new O(0),s],Va(n,l,t,a))}},aa=typeof TextEncoder!="undefined"&&new TextEncoder,hr=typeof TextDecoder!="undefined"&&new TextDecoder,xi=0;try{hr.decode(mr,{stream:!0}),xi=1}catch{}var Li=function(e){for(var r="",t=0;;){var a=e[t++],i=(a>127)+(a>223)+(a>239);if(t+i>e.length)return[r,De(e,t-1)];i?i==3?(a=((a&15)<<18|(e[t++]&63)<<12|(e[t++]&63)<<6|e[t++]&63)-65536,r+=String.fromCharCode(55296|a>>10,56320|a&1023)):i&1?r+=String.fromCharCode((a&31)<<6|e[t++]&63):r+=String.fromCharCode((a&15)<<12|(e[t++]&63)<<6|e[t++]&63):r+=String.fromCharCode(a)}};function gr(e,r){if(r){for(var t=new O(e.length),a=0;a>1)),l=0,s=function(u){n[l++]=u},a=0;an.length){var o=new O(l+8+(i-a<<1));o.set(n),n=o}var c=e.charCodeAt(a);c<128||r?s(c):c<2048?(s(192|c>>6),s(128|c&63)):c>55295&&c<57344?(c=65536+(c&1023<<10)|e.charCodeAt(++a)&1023,s(240|c>>18),s(128|c>>12&63),s(128|c>>6&63),s(128|c&63)):(s(224|c>>12),s(128|c>>6&63),s(128|c&63))}return De(n,0,l)}function Wa(e,r){if(r){for(var t="",a=0;a65535&&Q(9),r+=a+4}return r},na=function(e,r,t,a,i,n,l,s){var o=a.length,c=t.extra,u=s&&s.length,f=wr(c);I(e,r,l!=null?33639248:67324752),r+=4,l!=null&&(e[r++]=20,e[r++]=t.os),e[r]=20,r+=2,e[r++]=t.flag<<1|(n<0&&8),e[r++]=i&&8,e[r++]=t.compression&255,e[r++]=t.compression>>8;var v=new Date(t.mtime==null?Date.now():t.mtime),p=v.getFullYear()-1980;if((p<0||p>119)&&Q(10),I(e,r,p<<25|v.getMonth()+1<<21|v.getDate()<<16|v.getHours()<<11|v.getMinutes()<<5|v.getSeconds()>>>1),r+=4,n!=-1&&(I(e,r,t.crc),I(e,r+4,n<0?-n-2:n),I(e,r+8,t.size)),I(e,r+12,o),I(e,r+14,f),r+=16,l!=null&&(I(e,r,u),I(e,r+6,t.attrs),I(e,r+10,l),r+=14),e.set(a,r),r+=o,f)for(var h in c){var g=c[h],d=g.length;I(e,r,+h),I(e,r+2,d),e.set(g,r+4),r+=4+d}return u&&(e.set(s,r),r+=u),r},Ai=function(e,r,t,a,i){I(e,r,101010256),I(e,r+8,t),I(e,r+10,t),I(e,r+12,a),I(e,r+16,i)};function Ri(e,r){r||(r={});var t={},a=[];Va(e,"",t,r);var i=0,n=0;for(var l in t){var s=t[l],o=s[0],c=s[1],u=c.level==0?0:8,f=gr(l),v=f.length,p=c.comment,h=p&&gr(p),g=h&&h.length,d=wr(c.extra);v>65535&&Q(11);var k=u?mi(o,c):o,H=k.length,q=yi();q.p(o),a.push(Na(c,{size:o.length,crc:q.d(),c:k,f,m:h,u:v!=l.length||h&&p.length!=g,o:i,compression:u})),i+=30+v+d+H,n+=76+2*(v+d)+(g||0)+H}for(var X=new O(n+22),P=i,L=n-i,x=0;x65558)&&Q(13);var i=oe(e,a+8);if(!i)return{};var n=te(e,a+16),l=n==4294967295||i==65535;if(l){var s=te(e,a-12);l=te(e,s)==101075792,l&&(i=te(e,s+32),n=te(e,s+48))}for(var o=r&&r.filter,c=0;c'),[4,this.render((t=a.contentDocument)===null||t===void 0?void 0:t.getElementById("print"))];case 1:return i.sent(),setTimeout(function(){var n,l;a.focus(),(n=a.contentWindow)===null||n===void 0||n.print(),(l=a.parentNode)===null||l===void 0||l.removeChild(a)},100),window.focus(),[2]}})})},e.prototype.render=function(r){return Cr(this,void 0,void 0,function(){var t,a,i,n,l;return Pr(this,function(s){return this.init(),t=this.renderOptions,a=t.debug,a&&console.log("init",this),this.rootElement=r,r.innerHTML="",i=this.getXML("word/document.xml"),a&&console.log("documentData",i),t.enableVar&&t.replaceText&&_t(this,i),n=si.fromXML(this,i),a&&console.log("document",n),l=Bn(this,n),r.classList.add(this.getClassPrefix()),t.inWrap&&r.classList.add(this.wrapClassName),A(r,$n(this)),A(r,l),[2]})})},e.globalId=0,e}(),Oi={Word:Ei};export{Ei as Word,Oi as default};