张卓
2022-09-29 4ef1c909df36c48f7f040e9ec408fc15e6745e71
1
2
3
(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-09784ec9"],{"0083":function(e,t,r){"use strict";var n={};function i(){try{return new window.XMLHttpRequest}catch(e){}}function a(){try{return new window.ActiveXObject("Microsoft.XMLHTTP")}catch(e){}}n._getBinaryFromXHR=function(e){return e.response||e.responseText};var o="undefined"!==typeof window&&window.ActiveXObject?function(){return i()||a()}:i;n.getBinaryContent=function(e,t){var r,i,a,s;t||(t={}),"function"===typeof t?(s=t,t={}):"function"===typeof t.callback&&(s=t.callback),s||"undefined"===typeof Promise?(i=function(e){s(null,e)},a=function(e){s(e,null)}):r=new Promise((function(e,t){i=e,a=t}));try{var l=o();l.open("GET",e,!0),"responseType"in l&&(l.responseType="arraybuffer"),l.overrideMimeType&&l.overrideMimeType("text/plain; charset=x-user-defined"),l.onreadystatechange=function(t){if(4===l.readyState)if(200===l.status||0===l.status)try{i(n._getBinaryFromXHR(l))}catch(r){a(new Error(r))}else a(new Error("Ajax error for "+e+" : "+this.status+" "+this.statusText))},t.progress&&(l.onprogress=function(r){t.progress({path:e,originalEvent:r,percent:r.loaded/r.total*100,loaded:r.loaded,total:r.total})}),l.send()}catch(u){a(new Error(u),null)}return r},e.exports=n},"037e":function(e,t,r){"use strict";function n(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function i(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}function a(e,t,r){return t&&i(e.prototype,t),r&&i(e,r),Object.defineProperty(e,"prototype",{writable:!1}),e}var o=r("3c86"),s=r("5558"),l=s.isContent,u=r("c838"),c=u.throwRawTagShouldBeOnlyTextInParagraph,f=u.getInvalidRawXMLValueException,h="rawxml",d=r("50a1");function p(e){var t=e.part,r=e.left,n=e.right,i=e.postparsed,a=e.index,o=i.slice(r+1,n);return o.forEach((function(e,n){n!==a-r-1&&l(e)&&c({paragraphParts:o,part:t})})),t}var m=function(){function e(){n(this,e),this.name="RawXmlModule",this.prefix="@"}return a(e,[{key:"optionsTransformer",value:function(e,t){return this.fileTypeConfig=t.fileTypeConfig,e}},{key:"matchers",value:function(){return[[this.prefix,h]]}},{key:"postparse",value:function(e){return o.expandToOne(e,{moduleName:h,getInner:p,expandTo:this.fileTypeConfig.tagRawXml,error:{message:"Raw tag not in paragraph",id:"raw_tag_outerxml_invalid",explanation:function(e){return'The tag "'.concat(e.value,'" is not inside a paragraph, putting raw tags inside an inline loop is disallowed.')}}})}},{key:"render",value:function(e,t){if(e.module!==h)return null;var r,n=[];try{r=t.scopeManager.getValue(e.value,{part:e}),null==r&&(r=t.nullGetter(e))}catch(i){return n.push(i),{errors:n}}return r?"string"===typeof r?{value:r}:{errors:[f({tag:e.value,value:r,offset:e.offset})]}:{value:""}}}]),e}();e.exports=function(){return d(new m)}},"07ec":function(e,t,r){"use strict";var n=r("309c"),i=r("bedd"),a=r("0e15b"),o=r("5921");e.exports=function(e,t){var r,s;t=a.extend(t||{},{base64:!1,checkCRC32:!1,optimizedBinaryString:!1,createFolders:!1,decodeFileName:i.utf8decode}),t.base64&&(e=n.decode(e));var l=new o(e,t),u=l.files;for(r=0;r<u.length;r++)s=u[r],this.file(s.fileNameStr,s.decompressed,{binary:!0,optimizedBinaryString:!0,date:s.date,dir:s.dir,comment:s.fileCommentStr.length?s.fileCommentStr:null,unixPermissions:s.unixPermissions,dosPermissions:s.dosPermissions,createFolders:t.createFolders});return l.zipComment.length&&(this.comment=l.zipComment),this}},"0cd2":function(e,t,r){"use strict";var n=r("c838"),i=n.throwUnimplementedTagType;function a(e,t){for(var r,n=0,i=t.modules.length;n<i;n++){var a=t.modules[n];if(r=a.render(e,t),r)return r}return!1}function o(e){var t=e.baseNullGetter,r=e.compiled,n=e.scopeManager;e.nullGetter=function(e,r){return t(e,r||n)};var o=[],s=r.map((function(t,r){e.index=r;var n=a(t,e);return n?(n.errors&&Array.prototype.push.apply(o,n.errors),n):"content"===t.type||"tag"===t.type?t:void i(t,r)})).reduce((function(e,t){var r=t.value;if(r instanceof Array)for(var n=0,i=r.length;n<i;n++)e.push(r[n]);else r&&e.push(r);return e}),[]);return{errors:o,parts:s}}e.exports=o},"0dc8":function(e,t,r){"use strict";function n(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function i(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}function a(e,t,r){return t&&i(e.prototype,t),r&&i(e,r),Object.defineProperty(e,"prototype",{writable:!1}),e}var o=r("c838"),s=o.getScopeParserExecutionError,l=r("b227"),u=l.last,c=r("5558"),f=c.concatArrays;function h(e,t){for(var r,n=e.length>>>0,i=0;i<n;i++)if(r=e[i],t.call(this,r,i,e))return r}function d(e,t,r){var n,i,a=this,o=this.scopeList[r];if(this.root.finishedResolving){var l=this.resolved;return this.scopePath.slice(this.resolveOffset).forEach((function(e,t){var r=a.scopeLindex[t];l=h(l,(function(e){return e.lIndex===r})),l=l.value[a.scopePathItem[t]]})),h(l,(function(e){return t.part.lIndex===e.lIndex})).value}i=this.cachedParsers&&t.part?this.cachedParsers[t.part.lIndex]?this.cachedParsers[t.part.lIndex]:this.cachedParsers[t.part.lIndex]=this.parser(e,{scopePath:this.scopePath}):this.parser(e,{scopePath:this.scopePath});try{n=i.get(o,this.getContext(t,r))}catch(u){throw s({tag:e,scope:o,error:u,offset:t.part.offset})}return null==n&&r>0?d.call(this,e,t,r-1):n}function p(e,t,r){var n,i=this,a=this.scopeList[r];return n=this.cachedParsers&&t.part?this.cachedParsers[t.part.lIndex]?this.cachedParsers[t.part.lIndex]:this.cachedParsers[t.part.lIndex]=this.parser(e,{scopePath:this.scopePath}):this.parser(e,{scopePath:this.scopePath}),Promise.resolve().then((function(){return n.get(a,i.getContext(t,r))}))["catch"]((function(r){throw s({tag:e,scope:a,error:r,offset:t.part.offset})})).then((function(n){return null==n&&r>0?p.call(i,e,t,r-1):n}))}var m=function(){function e(t){n(this,e),this.root=t.root||this,this.resolveOffset=t.resolveOffset||0,this.scopePath=t.scopePath,this.scopePathItem=t.scopePathItem,this.scopePathLength=t.scopePathLength,this.scopeList=t.scopeList,this.scopeLindex=t.scopeLindex,this.parser=t.parser,this.resolved=t.resolved,this.cachedParsers=t.cachedParsers}return a(e,[{key:"loopOver",value:function(e,t,r,n){return this.loopOverValue(this.getValue(e,n),t,r)}},{key:"functorIfInverted",value:function(e,t,r,n,i){return e&&t(r,n,i),e}},{key:"isValueFalsy",value:function(e,t){return null==e||!e||"[object Array]"===t&&0===e.length}},{key:"loopOverValue",value:function(e,t,r){this.root.finishedResolving&&(r=!1);var n=Object.prototype.toString.call(e);if(this.isValueFalsy(e,n))return this.functorIfInverted(r,t,u(this.scopeList),0,1);if("[object Array]"===n){for(var i=0;i<e.length;i++)this.functorIfInverted(!r,t,e[i],i,e.length);return!0}return"[object Object]"===n?this.functorIfInverted(!r,t,e,0,1):this.functorIfInverted(!r,t,u(this.scopeList),0,1)}},{key:"getValue",value:function(e,t){var r=d.call(this,e,t,this.scopeList.length-1);return"function"===typeof r?r(this.scopeList[this.scopeList.length-1],this):r}},{key:"getValueAsync",value:function(e,t){var r=this;return p.call(this,e,t,this.scopeList.length-1).then((function(e){return"function"===typeof e?e(r.scopeList[r.scopeList.length-1],r):e}))}},{key:"getContext",value:function(e,t){return{num:t,meta:e,scopeList:this.scopeList,resolved:this.resolved,scopePath:this.scopePath,scopePathItem:this.scopePathItem,scopePathLength:this.scopePathLength}}},{key:"createSubScopeManager",value:function(t,r,n,i,a){return new e({root:this.root,resolveOffset:this.resolveOffset,resolved:this.resolved,parser:this.parser,cachedParsers:this.cachedParsers,scopeList:f([this.scopeList,[t]]),scopePath:f([this.scopePath,[r]]),scopePathItem:f([this.scopePathItem,[n]]),scopePathLength:f([this.scopePathLength,[a]]),scopeLindex:f([this.scopeLindex,[i.lIndex]])})}}]),e}();e.exports=function(e){return e.scopePath=[],e.scopePathItem=[],e.scopePathLength=[],e.scopeLindex=[],e.scopeList=[e.tags],new m(e)}},"0de4":function(e,t,r){"use strict";var n=r("0e15b");function i(e){this.data=new Uint8Array(e),this.index=0}i.prototype={append:function(e){0!==e.length&&(e=n.transformTo("uint8array",e),this.data.set(e,this.index),this.index+=e.length)},finalize:function(){return this.data}},e.exports=i},"0e15b":function(e,t,r){"use strict";function n(e){return n="function"===typeof Symbol&&"symbol"===typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"===typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},n(e)}var i=r("fdf0"),a=r("e6bb"),o=r("dd84");function s(e){return e}function l(e,t){for(var r=0;r<e.length;++r)t[r]=255&e.charCodeAt(r);return t}function u(e){var r=65536,n=[],i=e.length,a=t.getTypeOf(e),s=0,l=!0;try{switch(a){case"uint8array":String.fromCharCode.apply(null,new Uint8Array(0));break;case"nodebuffer":String.fromCharCode.apply(null,o(0));break}}catch(f){l=!1}if(!l){for(var u="",c=0;c<e.length;c++)u+=String.fromCharCode(e[c]);return u}while(s<i&&r>1)try{"array"===a||"nodebuffer"===a?n.push(String.fromCharCode.apply(null,e.slice(s,Math.min(s+r,i)))):n.push(String.fromCharCode.apply(null,e.subarray(s,Math.min(s+r,i)))),s+=r}catch(f){r=Math.floor(r/2)}return n.join("")}function c(e,t){for(var r=0;r<e.length;r++)t[r]=e[r];return t}t.string2binary=function(e){for(var t="",r=0;r<e.length;r++)t+=String.fromCharCode(255&e.charCodeAt(r));return t},t.arrayBuffer2Blob=function(e,r){t.checkSupport("blob"),r=r||"application/zip";try{return new Blob([e],{type:r})}catch(a){try{var n=window.BlobBuilder||window.WebKitBlobBuilder||window.MozBlobBuilder||window.MSBlobBuilder,i=new n;return i.append(e),i.getBlob(r)}catch(a){throw new Error("Bug : can't construct the Blob.")}}},t.applyFromCharCode=u;var f={};f.string={string:s,array:function(e){return l(e,new Array(e.length))},arraybuffer:function(e){return f.string.uint8array(e).buffer},uint8array:function(e){return l(e,new Uint8Array(e.length))},nodebuffer:function(e){return l(e,o(e.length))}},f.array={string:u,array:s,arraybuffer:function(e){return new Uint8Array(e).buffer},uint8array:function(e){return new Uint8Array(e)},nodebuffer:function(e){return o(e)}},f.arraybuffer={string:function(e){return u(new Uint8Array(e))},array:function(e){return c(new Uint8Array(e),new Array(e.byteLength))},arraybuffer:s,uint8array:function(e){return new Uint8Array(e)},nodebuffer:function(e){return o(new Uint8Array(e))}},f.uint8array={string:u,array:function(e){return c(e,new Array(e.length))},arraybuffer:function(e){return e.buffer},uint8array:s,nodebuffer:function(e){return o(e)}},f.nodebuffer={string:u,array:function(e){return c(e,new Array(e.length))},arraybuffer:function(e){return f.nodebuffer.uint8array(e).buffer},uint8array:function(e){return c(e,new Uint8Array(e.length))},nodebuffer:s},t.transformTo=function(e,r){if(r||(r=""),!e)return r;t.checkSupport(e);var n=t.getTypeOf(r),i=f[n][e](r);return i},t.getTypeOf=function(e){if(null!=e){if("string"===typeof e)return"string";if("[object Array]"===Object.prototype.toString.call(e))return"array";if(i.nodebuffer&&o.test(e))return"nodebuffer";if(i.uint8array&&e instanceof Uint8Array)return"uint8array";if(i.arraybuffer&&e instanceof ArrayBuffer)return"arraybuffer";if(e instanceof Promise)throw new Error("Cannot read data from a promise, you probably are running new PizZip(data) with a promise");if(e instanceof Date)throw new Error("Cannot read data from a Date, you probably are running new PizZip(data) with a date");if("object"===n(e)&&null==e.crc32)throw new Error("Unsupported data given to new PizZip(data) (object given)")}},t.checkSupport=function(e){var t=i[e.toLowerCase()];if(!t)throw new Error(e+" is not supported by this browser")},t.MAX_VALUE_16BITS=65535,t.MAX_VALUE_32BITS=-1,t.pretty=function(e){var t,r,n="";for(r=0;r<(e||"").length;r++)t=e.charCodeAt(r),n+="\\x"+(t<16?"0":"")+t.toString(16).toUpperCase();return n},t.findCompression=function(e){for(var t in a)if(a.hasOwnProperty(t)&&a[t].magic===e)return a[t];return null},t.isRegExp=function(e){return"[object RegExp]"===Object.prototype.toString.call(e)},t.extend=function(){var e,t,r={};for(e=0;e<arguments.length;e++)for(t in arguments[e])arguments[e].hasOwnProperty(t)&&"undefined"===typeof r[t]&&(r[t]=arguments[e][t]);return r}},"189c":function(e,t,r){"use strict";t.base64=!1,t.binary=!1,t.dir=!1,t.createFolders=!1,t.date=null,t.compression=null,t.compressionOptions=null,t.comment=null,t.unixPermissions=null,t.dosPermissions=null},"191a":function(e,t,r){
/*! pako 2.0.4 https://github.com/nodeca/pako @license (MIT AND Zlib) */
(function(e,r){r(t)})(0,(function(e){"use strict";var t=4,r=0,n=1,i=2;function a(e){var t=e.length;while(--t>=0)e[t]=0}var o=0,s=1,l=2,u=3,c=258,f=29,h=256,d=h+1+f,p=30,m=19,g=2*d+1,v=15,y=16,b=7,w=256,_=16,x=17,E=18,T=new Uint8Array([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]),k=new Uint8Array([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]),A=new Uint8Array([0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,2,3,7]),S=new Uint8Array([16,17,18,0,8,7,9,6,10,5,11,4,12,3,13,2,14,1,15]),O=512,C=new Array(2*(d+2));a(C);var I=new Array(2*p);a(I);var N=new Array(O);a(N);var P=new Array(c-u+1);a(P);var R=new Array(f);a(R);var D,z,M,L=new Array(p);function U(e,t,r,n,i){this.static_tree=e,this.extra_bits=t,this.extra_base=r,this.elems=n,this.max_length=i,this.has_stree=e&&e.length}function j(e,t){this.dyn_tree=e,this.max_code=0,this.stat_desc=t}a(L);var F=function(e){return e<256?N[e]:N[256+(e>>>7)]},B=function(e,t){e.pending_buf[e.pending++]=255&t,e.pending_buf[e.pending++]=t>>>8&255},Z=function(e,t,r){e.bi_valid>y-r?(e.bi_buf|=t<<e.bi_valid&65535,B(e,e.bi_buf),e.bi_buf=t>>y-e.bi_valid,e.bi_valid+=r-y):(e.bi_buf|=t<<e.bi_valid&65535,e.bi_valid+=r)},X=function(e,t,r){Z(e,r[2*t],r[2*t+1])},V=function(e,t){var r=0;do{r|=1&e,e>>>=1,r<<=1}while(--t>0);return r>>>1},H=function(e){16===e.bi_valid?(B(e,e.bi_buf),e.bi_buf=0,e.bi_valid=0):e.bi_valid>=8&&(e.pending_buf[e.pending++]=255&e.bi_buf,e.bi_buf>>=8,e.bi_valid-=8)},Y=function(e,t){var r,n,i,a,o,s,l=t.dyn_tree,u=t.max_code,c=t.stat_desc.static_tree,f=t.stat_desc.has_stree,h=t.stat_desc.extra_bits,d=t.stat_desc.extra_base,p=t.stat_desc.max_length,m=0;for(a=0;a<=v;a++)e.bl_count[a]=0;for(l[2*e.heap[e.heap_max]+1]=0,r=e.heap_max+1;r<g;r++)n=e.heap[r],a=l[2*l[2*n+1]+1]+1,a>p&&(a=p,m++),l[2*n+1]=a,n>u||(e.bl_count[a]++,o=0,n>=d&&(o=h[n-d]),s=l[2*n],e.opt_len+=s*(a+o),f&&(e.static_len+=s*(c[2*n+1]+o)));if(0!==m){do{a=p-1;while(0===e.bl_count[a])a--;e.bl_count[a]--,e.bl_count[a+1]+=2,e.bl_count[p]--,m-=2}while(m>0);for(a=p;0!==a;a--){n=e.bl_count[a];while(0!==n)i=e.heap[--r],i>u||(l[2*i+1]!==a&&(e.opt_len+=(a-l[2*i+1])*l[2*i],l[2*i+1]=a),n--)}}},q=function(e,t,r){var n,i,a=new Array(v+1),o=0;for(n=1;n<=v;n++)a[n]=o=o+r[n-1]<<1;for(i=0;i<=t;i++){var s=e[2*i+1];0!==s&&(e[2*i]=V(a[s]++,s))}},G=function(){var e,t,r,n,i,a=new Array(v+1);for(r=0,n=0;n<f-1;n++)for(R[n]=r,e=0;e<1<<T[n];e++)P[r++]=n;for(P[r-1]=n,i=0,n=0;n<16;n++)for(L[n]=i,e=0;e<1<<k[n];e++)N[i++]=n;for(i>>=7;n<p;n++)for(L[n]=i<<7,e=0;e<1<<k[n]-7;e++)N[256+i++]=n;for(t=0;t<=v;t++)a[t]=0;e=0;while(e<=143)C[2*e+1]=8,e++,a[8]++;while(e<=255)C[2*e+1]=9,e++,a[9]++;while(e<=279)C[2*e+1]=7,e++,a[7]++;while(e<=287)C[2*e+1]=8,e++,a[8]++;for(q(C,d+1,a),e=0;e<p;e++)I[2*e+1]=5,I[2*e]=V(e,5);D=new U(C,T,h+1,d,v),z=new U(I,k,0,p,v),M=new U(new Array(0),A,0,m,b)},$=function(e){var t;for(t=0;t<d;t++)e.dyn_ltree[2*t]=0;for(t=0;t<p;t++)e.dyn_dtree[2*t]=0;for(t=0;t<m;t++)e.bl_tree[2*t]=0;e.dyn_ltree[2*w]=1,e.opt_len=e.static_len=0,e.last_lit=e.matches=0},W=function(e){e.bi_valid>8?B(e,e.bi_buf):e.bi_valid>0&&(e.pending_buf[e.pending++]=e.bi_buf),e.bi_buf=0,e.bi_valid=0},K=function(e,t,r,n){W(e),n&&(B(e,r),B(e,~r)),e.pending_buf.set(e.window.subarray(t,t+r),e.pending),e.pending+=r},J=function(e,t,r,n){var i=2*t,a=2*r;return e[i]<e[a]||e[i]===e[a]&&n[t]<=n[r]},Q=function(e,t,r){var n=e.heap[r],i=r<<1;while(i<=e.heap_len){if(i<e.heap_len&&J(t,e.heap[i+1],e.heap[i],e.depth)&&i++,J(t,n,e.heap[i],e.depth))break;e.heap[r]=e.heap[i],r=i,i<<=1}e.heap[r]=n},ee=function(e,t,r){var n,i,a,o,s=0;if(0!==e.last_lit)do{n=e.pending_buf[e.d_buf+2*s]<<8|e.pending_buf[e.d_buf+2*s+1],i=e.pending_buf[e.l_buf+s],s++,0===n?X(e,i,t):(a=P[i],X(e,a+h+1,t),o=T[a],0!==o&&(i-=R[a],Z(e,i,o)),n--,a=F(n),X(e,a,r),o=k[a],0!==o&&(n-=L[a],Z(e,n,o)))}while(s<e.last_lit);X(e,w,t)},te=function(e,t){var r,n,i,a=t.dyn_tree,o=t.stat_desc.static_tree,s=t.stat_desc.has_stree,l=t.stat_desc.elems,u=-1;for(e.heap_len=0,e.heap_max=g,r=0;r<l;r++)0!==a[2*r]?(e.heap[++e.heap_len]=u=r,e.depth[r]=0):a[2*r+1]=0;while(e.heap_len<2)i=e.heap[++e.heap_len]=u<2?++u:0,a[2*i]=1,e.depth[i]=0,e.opt_len--,s&&(e.static_len-=o[2*i+1]);for(t.max_code=u,r=e.heap_len>>1;r>=1;r--)Q(e,a,r);i=l;do{r=e.heap[1],e.heap[1]=e.heap[e.heap_len--],Q(e,a,1),n=e.heap[1],e.heap[--e.heap_max]=r,e.heap[--e.heap_max]=n,a[2*i]=a[2*r]+a[2*n],e.depth[i]=(e.depth[r]>=e.depth[n]?e.depth[r]:e.depth[n])+1,a[2*r+1]=a[2*n+1]=i,e.heap[1]=i++,Q(e,a,1)}while(e.heap_len>=2);e.heap[--e.heap_max]=e.heap[1],Y(e,t),q(a,u,e.bl_count)},re=function(e,t,r){var n,i,a=-1,o=t[1],s=0,l=7,u=4;for(0===o&&(l=138,u=3),t[2*(r+1)+1]=65535,n=0;n<=r;n++)i=o,o=t[2*(n+1)+1],++s<l&&i===o||(s<u?e.bl_tree[2*i]+=s:0!==i?(i!==a&&e.bl_tree[2*i]++,e.bl_tree[2*_]++):s<=10?e.bl_tree[2*x]++:e.bl_tree[2*E]++,s=0,a=i,0===o?(l=138,u=3):i===o?(l=6,u=3):(l=7,u=4))},ne=function(e,t,r){var n,i,a=-1,o=t[1],s=0,l=7,u=4;for(0===o&&(l=138,u=3),n=0;n<=r;n++)if(i=o,o=t[2*(n+1)+1],!(++s<l&&i===o)){if(s<u)do{X(e,i,e.bl_tree)}while(0!==--s);else 0!==i?(i!==a&&(X(e,i,e.bl_tree),s--),X(e,_,e.bl_tree),Z(e,s-3,2)):s<=10?(X(e,x,e.bl_tree),Z(e,s-3,3)):(X(e,E,e.bl_tree),Z(e,s-11,7));s=0,a=i,0===o?(l=138,u=3):i===o?(l=6,u=3):(l=7,u=4)}},ie=function(e){var t;for(re(e,e.dyn_ltree,e.l_desc.max_code),re(e,e.dyn_dtree,e.d_desc.max_code),te(e,e.bl_desc),t=m-1;t>=3;t--)if(0!==e.bl_tree[2*S[t]+1])break;return e.opt_len+=3*(t+1)+5+5+4,t},ae=function(e,t,r,n){var i;for(Z(e,t-257,5),Z(e,r-1,5),Z(e,n-4,4),i=0;i<n;i++)Z(e,e.bl_tree[2*S[i]+1],3);ne(e,e.dyn_ltree,t-1),ne(e,e.dyn_dtree,r-1)},oe=function(e){var t,i=4093624447;for(t=0;t<=31;t++,i>>>=1)if(1&i&&0!==e.dyn_ltree[2*t])return r;if(0!==e.dyn_ltree[18]||0!==e.dyn_ltree[20]||0!==e.dyn_ltree[26])return n;for(t=32;t<h;t++)if(0!==e.dyn_ltree[2*t])return n;return r},se=!1,le=function(e){se||(G(),se=!0),e.l_desc=new j(e.dyn_ltree,D),e.d_desc=new j(e.dyn_dtree,z),e.bl_desc=new j(e.bl_tree,M),e.bi_buf=0,e.bi_valid=0,$(e)},ue=function(e,t,r,n){Z(e,(o<<1)+(n?1:0),3),K(e,t,r,!0)},ce=function(e){Z(e,s<<1,3),X(e,w,C),H(e)},fe=function(e,r,n,a){var o,u,c=0;e.level>0?(e.strm.data_type===i&&(e.strm.data_type=oe(e)),te(e,e.l_desc),te(e,e.d_desc),c=ie(e),o=e.opt_len+3+7>>>3,u=e.static_len+3+7>>>3,u<=o&&(o=u)):o=u=n+5,n+4<=o&&-1!==r?ue(e,r,n,a):e.strategy===t||u===o?(Z(e,(s<<1)+(a?1:0),3),ee(e,C,I)):(Z(e,(l<<1)+(a?1:0),3),ae(e,e.l_desc.max_code+1,e.d_desc.max_code+1,c+1),ee(e,e.dyn_ltree,e.dyn_dtree)),$(e),a&&W(e)},he=function(e,t,r){return e.pending_buf[e.d_buf+2*e.last_lit]=t>>>8&255,e.pending_buf[e.d_buf+2*e.last_lit+1]=255&t,e.pending_buf[e.l_buf+e.last_lit]=255&r,e.last_lit++,0===t?e.dyn_ltree[2*r]++:(e.matches++,t--,e.dyn_ltree[2*(P[r]+h+1)]++,e.dyn_dtree[2*F(t)]++),e.last_lit===e.lit_bufsize-1},de=le,pe=ue,me=fe,ge=he,ve=ce,ye={_tr_init:de,_tr_stored_block:pe,_tr_flush_block:me,_tr_tally:ge,_tr_align:ve},be=function(e,t,r,n){var i=65535&e|0,a=e>>>16&65535|0,o=0;while(0!==r){o=r>2e3?2e3:r,r-=o;do{i=i+t[n++]|0,a=a+i|0}while(--o);i%=65521,a%=65521}return i|a<<16|0},we=be,_e=function(){for(var e,t=[],r=0;r<256;r++){e=r;for(var n=0;n<8;n++)e=1&e?3988292384^e>>>1:e>>>1;t[r]=e}return t},xe=new Uint32Array(_e()),Ee=function(e,t,r,n){var i=xe,a=n+r;e^=-1;for(var o=n;o<a;o++)e=e>>>8^i[255&(e^t[o])];return-1^e},Te=Ee,ke={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"},Ae={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_MEM_ERROR:-4,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},Se=ye._tr_init,Oe=ye._tr_stored_block,Ce=ye._tr_flush_block,Ie=ye._tr_tally,Ne=ye._tr_align,Pe=Ae.Z_NO_FLUSH,Re=Ae.Z_PARTIAL_FLUSH,De=Ae.Z_FULL_FLUSH,ze=Ae.Z_FINISH,Me=Ae.Z_BLOCK,Le=Ae.Z_OK,Ue=Ae.Z_STREAM_END,je=Ae.Z_STREAM_ERROR,Fe=Ae.Z_DATA_ERROR,Be=Ae.Z_BUF_ERROR,Ze=Ae.Z_DEFAULT_COMPRESSION,Xe=Ae.Z_FILTERED,Ve=Ae.Z_HUFFMAN_ONLY,He=Ae.Z_RLE,Ye=Ae.Z_FIXED,qe=Ae.Z_DEFAULT_STRATEGY,Ge=Ae.Z_UNKNOWN,$e=Ae.Z_DEFLATED,We=9,Ke=15,Je=8,Qe=29,et=256,tt=et+1+Qe,rt=30,nt=19,it=2*tt+1,at=15,ot=3,st=258,lt=st+ot+1,ut=32,ct=42,ft=69,ht=73,dt=91,pt=103,mt=113,gt=666,vt=1,yt=2,bt=3,wt=4,_t=3,xt=function(e,t){return e.msg=ke[t],t},Et=function(e){return(e<<1)-(e>4?9:0)},Tt=function(e){var t=e.length;while(--t>=0)e[t]=0},kt=function(e,t,r){return(t<<e.hash_shift^r)&e.hash_mask},At=kt,St=function(e){var t=e.state,r=t.pending;r>e.avail_out&&(r=e.avail_out),0!==r&&(e.output.set(t.pending_buf.subarray(t.pending_out,t.pending_out+r),e.next_out),e.next_out+=r,t.pending_out+=r,e.total_out+=r,e.avail_out-=r,t.pending-=r,0===t.pending&&(t.pending_out=0))},Ot=function(e,t){Ce(e,e.block_start>=0?e.block_start:-1,e.strstart-e.block_start,t),e.block_start=e.strstart,St(e.strm)},Ct=function(e,t){e.pending_buf[e.pending++]=t},It=function(e,t){e.pending_buf[e.pending++]=t>>>8&255,e.pending_buf[e.pending++]=255&t},Nt=function(e,t,r,n){var i=e.avail_in;return i>n&&(i=n),0===i?0:(e.avail_in-=i,t.set(e.input.subarray(e.next_in,e.next_in+i),r),1===e.state.wrap?e.adler=we(e.adler,t,i,r):2===e.state.wrap&&(e.adler=Te(e.adler,t,i,r)),e.next_in+=i,e.total_in+=i,i)},Pt=function(e,t){var r,n,i=e.max_chain_length,a=e.strstart,o=e.prev_length,s=e.nice_match,l=e.strstart>e.w_size-lt?e.strstart-(e.w_size-lt):0,u=e.window,c=e.w_mask,f=e.prev,h=e.strstart+st,d=u[a+o-1],p=u[a+o];e.prev_length>=e.good_match&&(i>>=2),s>e.lookahead&&(s=e.lookahead);do{if(r=t,u[r+o]===p&&u[r+o-1]===d&&u[r]===u[a]&&u[++r]===u[a+1]){a+=2,r++;do{}while(u[++a]===u[++r]&&u[++a]===u[++r]&&u[++a]===u[++r]&&u[++a]===u[++r]&&u[++a]===u[++r]&&u[++a]===u[++r]&&u[++a]===u[++r]&&u[++a]===u[++r]&&a<h);if(n=st-(h-a),a=h-st,n>o){if(e.match_start=t,o=n,n>=s)break;d=u[a+o-1],p=u[a+o]}}}while((t=f[t&c])>l&&0!==--i);return o<=e.lookahead?o:e.lookahead},Rt=function(e){var t,r,n,i,a,o=e.w_size;do{if(i=e.window_size-e.lookahead-e.strstart,e.strstart>=o+(o-lt)){e.window.set(e.window.subarray(o,o+o),0),e.match_start-=o,e.strstart-=o,e.block_start-=o,r=e.hash_size,t=r;do{n=e.head[--t],e.head[t]=n>=o?n-o:0}while(--r);r=o,t=r;do{n=e.prev[--t],e.prev[t]=n>=o?n-o:0}while(--r);i+=o}if(0===e.strm.avail_in)break;if(r=Nt(e.strm,e.window,e.strstart+e.lookahead,i),e.lookahead+=r,e.lookahead+e.insert>=ot){a=e.strstart-e.insert,e.ins_h=e.window[a],e.ins_h=At(e,e.ins_h,e.window[a+1]);while(e.insert)if(e.ins_h=At(e,e.ins_h,e.window[a+ot-1]),e.prev[a&e.w_mask]=e.head[e.ins_h],e.head[e.ins_h]=a,a++,e.insert--,e.lookahead+e.insert<ot)break}}while(e.lookahead<lt&&0!==e.strm.avail_in)},Dt=function(e,t){var r=65535;for(r>e.pending_buf_size-5&&(r=e.pending_buf_size-5);;){if(e.lookahead<=1){if(Rt(e),0===e.lookahead&&t===Pe)return vt;if(0===e.lookahead)break}e.strstart+=e.lookahead,e.lookahead=0;var n=e.block_start+r;if((0===e.strstart||e.strstart>=n)&&(e.lookahead=e.strstart-n,e.strstart=n,Ot(e,!1),0===e.strm.avail_out))return vt;if(e.strstart-e.block_start>=e.w_size-lt&&(Ot(e,!1),0===e.strm.avail_out))return vt}return e.insert=0,t===ze?(Ot(e,!0),0===e.strm.avail_out?bt:wt):(e.strstart>e.block_start&&(Ot(e,!1),e.strm.avail_out),vt)},zt=function(e,t){for(var r,n;;){if(e.lookahead<lt){if(Rt(e),e.lookahead<lt&&t===Pe)return vt;if(0===e.lookahead)break}if(r=0,e.lookahead>=ot&&(e.ins_h=At(e,e.ins_h,e.window[e.strstart+ot-1]),r=e.prev[e.strstart&e.w_mask]=e.head[e.ins_h],e.head[e.ins_h]=e.strstart),0!==r&&e.strstart-r<=e.w_size-lt&&(e.match_length=Pt(e,r)),e.match_length>=ot)if(n=Ie(e,e.strstart-e.match_start,e.match_length-ot),e.lookahead-=e.match_length,e.match_length<=e.max_lazy_match&&e.lookahead>=ot){e.match_length--;do{e.strstart++,e.ins_h=At(e,e.ins_h,e.window[e.strstart+ot-1]),r=e.prev[e.strstart&e.w_mask]=e.head[e.ins_h],e.head[e.ins_h]=e.strstart}while(0!==--e.match_length);e.strstart++}else e.strstart+=e.match_length,e.match_length=0,e.ins_h=e.window[e.strstart],e.ins_h=At(e,e.ins_h,e.window[e.strstart+1]);else n=Ie(e,0,e.window[e.strstart]),e.lookahead--,e.strstart++;if(n&&(Ot(e,!1),0===e.strm.avail_out))return vt}return e.insert=e.strstart<ot-1?e.strstart:ot-1,t===ze?(Ot(e,!0),0===e.strm.avail_out?bt:wt):e.last_lit&&(Ot(e,!1),0===e.strm.avail_out)?vt:yt},Mt=function(e,t){for(var r,n,i;;){if(e.lookahead<lt){if(Rt(e),e.lookahead<lt&&t===Pe)return vt;if(0===e.lookahead)break}if(r=0,e.lookahead>=ot&&(e.ins_h=At(e,e.ins_h,e.window[e.strstart+ot-1]),r=e.prev[e.strstart&e.w_mask]=e.head[e.ins_h],e.head[e.ins_h]=e.strstart),e.prev_length=e.match_length,e.prev_match=e.match_start,e.match_length=ot-1,0!==r&&e.prev_length<e.max_lazy_match&&e.strstart-r<=e.w_size-lt&&(e.match_length=Pt(e,r),e.match_length<=5&&(e.strategy===Xe||e.match_length===ot&&e.strstart-e.match_start>4096)&&(e.match_length=ot-1)),e.prev_length>=ot&&e.match_length<=e.prev_length){i=e.strstart+e.lookahead-ot,n=Ie(e,e.strstart-1-e.prev_match,e.prev_length-ot),e.lookahead-=e.prev_length-1,e.prev_length-=2;do{++e.strstart<=i&&(e.ins_h=At(e,e.ins_h,e.window[e.strstart+ot-1]),r=e.prev[e.strstart&e.w_mask]=e.head[e.ins_h],e.head[e.ins_h]=e.strstart)}while(0!==--e.prev_length);if(e.match_available=0,e.match_length=ot-1,e.strstart++,n&&(Ot(e,!1),0===e.strm.avail_out))return vt}else if(e.match_available){if(n=Ie(e,0,e.window[e.strstart-1]),n&&Ot(e,!1),e.strstart++,e.lookahead--,0===e.strm.avail_out)return vt}else e.match_available=1,e.strstart++,e.lookahead--}return e.match_available&&(n=Ie(e,0,e.window[e.strstart-1]),e.match_available=0),e.insert=e.strstart<ot-1?e.strstart:ot-1,t===ze?(Ot(e,!0),0===e.strm.avail_out?bt:wt):e.last_lit&&(Ot(e,!1),0===e.strm.avail_out)?vt:yt},Lt=function(e,t){for(var r,n,i,a,o=e.window;;){if(e.lookahead<=st){if(Rt(e),e.lookahead<=st&&t===Pe)return vt;if(0===e.lookahead)break}if(e.match_length=0,e.lookahead>=ot&&e.strstart>0&&(i=e.strstart-1,n=o[i],n===o[++i]&&n===o[++i]&&n===o[++i])){a=e.strstart+st;do{}while(n===o[++i]&&n===o[++i]&&n===o[++i]&&n===o[++i]&&n===o[++i]&&n===o[++i]&&n===o[++i]&&n===o[++i]&&i<a);e.match_length=st-(a-i),e.match_length>e.lookahead&&(e.match_length=e.lookahead)}if(e.match_length>=ot?(r=Ie(e,1,e.match_length-ot),e.lookahead-=e.match_length,e.strstart+=e.match_length,e.match_length=0):(r=Ie(e,0,e.window[e.strstart]),e.lookahead--,e.strstart++),r&&(Ot(e,!1),0===e.strm.avail_out))return vt}return e.insert=0,t===ze?(Ot(e,!0),0===e.strm.avail_out?bt:wt):e.last_lit&&(Ot(e,!1),0===e.strm.avail_out)?vt:yt},Ut=function(e,t){for(var r;;){if(0===e.lookahead&&(Rt(e),0===e.lookahead)){if(t===Pe)return vt;break}if(e.match_length=0,r=Ie(e,0,e.window[e.strstart]),e.lookahead--,e.strstart++,r&&(Ot(e,!1),0===e.strm.avail_out))return vt}return e.insert=0,t===ze?(Ot(e,!0),0===e.strm.avail_out?bt:wt):e.last_lit&&(Ot(e,!1),0===e.strm.avail_out)?vt:yt};function jt(e,t,r,n,i){this.good_length=e,this.max_lazy=t,this.nice_length=r,this.max_chain=n,this.func=i}var Ft=[new jt(0,0,0,0,Dt),new jt(4,4,8,4,zt),new jt(4,5,16,8,zt),new jt(4,6,32,32,zt),new jt(4,4,16,16,Mt),new jt(8,16,32,32,Mt),new jt(8,16,128,128,Mt),new jt(8,32,128,256,Mt),new jt(32,128,258,1024,Mt),new jt(32,258,258,4096,Mt)],Bt=function(e){e.window_size=2*e.w_size,Tt(e.head),e.max_lazy_match=Ft[e.level].max_lazy,e.good_match=Ft[e.level].good_length,e.nice_match=Ft[e.level].nice_length,e.max_chain_length=Ft[e.level].max_chain,e.strstart=0,e.block_start=0,e.lookahead=0,e.insert=0,e.match_length=e.prev_length=ot-1,e.match_available=0,e.ins_h=0};function Zt(){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=$e,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 Uint16Array(2*it),this.dyn_dtree=new Uint16Array(2*(2*rt+1)),this.bl_tree=new Uint16Array(2*(2*nt+1)),Tt(this.dyn_ltree),Tt(this.dyn_dtree),Tt(this.bl_tree),this.l_desc=null,this.d_desc=null,this.bl_desc=null,this.bl_count=new Uint16Array(at+1),this.heap=new Uint16Array(2*tt+1),Tt(this.heap),this.heap_len=0,this.heap_max=0,this.depth=new Uint16Array(2*tt+1),Tt(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}var Xt=function(e){if(!e||!e.state)return xt(e,je);e.total_in=e.total_out=0,e.data_type=Ge;var t=e.state;return t.pending=0,t.pending_out=0,t.wrap<0&&(t.wrap=-t.wrap),t.status=t.wrap?ct:mt,e.adler=2===t.wrap?0:1,t.last_flush=Pe,Se(t),Le},Vt=function(e){var t=Xt(e);return t===Le&&Bt(e.state),t},Ht=function(e,t){return e&&e.state?2!==e.state.wrap?je:(e.state.gzhead=t,Le):je},Yt=function(e,t,r,n,i,a){if(!e)return je;var o=1;if(t===Ze&&(t=6),n<0?(o=0,n=-n):n>15&&(o=2,n-=16),i<1||i>We||r!==$e||n<8||n>15||t<0||t>9||a<0||a>Ye)return xt(e,je);8===n&&(n=9);var s=new Zt;return e.state=s,s.strm=e,s.wrap=o,s.gzhead=null,s.w_bits=n,s.w_size=1<<s.w_bits,s.w_mask=s.w_size-1,s.hash_bits=i+7,s.hash_size=1<<s.hash_bits,s.hash_mask=s.hash_size-1,s.hash_shift=~~((s.hash_bits+ot-1)/ot),s.window=new Uint8Array(2*s.w_size),s.head=new Uint16Array(s.hash_size),s.prev=new Uint16Array(s.w_size),s.lit_bufsize=1<<i+6,s.pending_buf_size=4*s.lit_bufsize,s.pending_buf=new Uint8Array(s.pending_buf_size),s.d_buf=1*s.lit_bufsize,s.l_buf=3*s.lit_bufsize,s.level=t,s.strategy=a,s.method=r,Vt(e)},qt=function(e,t){return Yt(e,t,$e,Ke,Je,qe)},Gt=function(e,t){var r,n;if(!e||!e.state||t>Me||t<0)return e?xt(e,je):je;var i=e.state;if(!e.output||!e.input&&0!==e.avail_in||i.status===gt&&t!==ze)return xt(e,0===e.avail_out?Be:je);i.strm=e;var a=i.last_flush;if(i.last_flush=t,i.status===ct)if(2===i.wrap)e.adler=0,Ct(i,31),Ct(i,139),Ct(i,8),i.gzhead?(Ct(i,(i.gzhead.text?1:0)+(i.gzhead.hcrc?2:0)+(i.gzhead.extra?4:0)+(i.gzhead.name?8:0)+(i.gzhead.comment?16:0)),Ct(i,255&i.gzhead.time),Ct(i,i.gzhead.time>>8&255),Ct(i,i.gzhead.time>>16&255),Ct(i,i.gzhead.time>>24&255),Ct(i,9===i.level?2:i.strategy>=Ve||i.level<2?4:0),Ct(i,255&i.gzhead.os),i.gzhead.extra&&i.gzhead.extra.length&&(Ct(i,255&i.gzhead.extra.length),Ct(i,i.gzhead.extra.length>>8&255)),i.gzhead.hcrc&&(e.adler=Te(e.adler,i.pending_buf,i.pending,0)),i.gzindex=0,i.status=ft):(Ct(i,0),Ct(i,0),Ct(i,0),Ct(i,0),Ct(i,0),Ct(i,9===i.level?2:i.strategy>=Ve||i.level<2?4:0),Ct(i,_t),i.status=mt);else{var o=$e+(i.w_bits-8<<4)<<8,s=-1;s=i.strategy>=Ve||i.level<2?0:i.level<6?1:6===i.level?2:3,o|=s<<6,0!==i.strstart&&(o|=ut),o+=31-o%31,i.status=mt,It(i,o),0!==i.strstart&&(It(i,e.adler>>>16),It(i,65535&e.adler)),e.adler=1}if(i.status===ft)if(i.gzhead.extra){r=i.pending;while(i.gzindex<(65535&i.gzhead.extra.length)){if(i.pending===i.pending_buf_size&&(i.gzhead.hcrc&&i.pending>r&&(e.adler=Te(e.adler,i.pending_buf,i.pending-r,r)),St(e),r=i.pending,i.pending===i.pending_buf_size))break;Ct(i,255&i.gzhead.extra[i.gzindex]),i.gzindex++}i.gzhead.hcrc&&i.pending>r&&(e.adler=Te(e.adler,i.pending_buf,i.pending-r,r)),i.gzindex===i.gzhead.extra.length&&(i.gzindex=0,i.status=ht)}else i.status=ht;if(i.status===ht)if(i.gzhead.name){r=i.pending;do{if(i.pending===i.pending_buf_size&&(i.gzhead.hcrc&&i.pending>r&&(e.adler=Te(e.adler,i.pending_buf,i.pending-r,r)),St(e),r=i.pending,i.pending===i.pending_buf_size)){n=1;break}n=i.gzindex<i.gzhead.name.length?255&i.gzhead.name.charCodeAt(i.gzindex++):0,Ct(i,n)}while(0!==n);i.gzhead.hcrc&&i.pending>r&&(e.adler=Te(e.adler,i.pending_buf,i.pending-r,r)),0===n&&(i.gzindex=0,i.status=dt)}else i.status=dt;if(i.status===dt)if(i.gzhead.comment){r=i.pending;do{if(i.pending===i.pending_buf_size&&(i.gzhead.hcrc&&i.pending>r&&(e.adler=Te(e.adler,i.pending_buf,i.pending-r,r)),St(e),r=i.pending,i.pending===i.pending_buf_size)){n=1;break}n=i.gzindex<i.gzhead.comment.length?255&i.gzhead.comment.charCodeAt(i.gzindex++):0,Ct(i,n)}while(0!==n);i.gzhead.hcrc&&i.pending>r&&(e.adler=Te(e.adler,i.pending_buf,i.pending-r,r)),0===n&&(i.status=pt)}else i.status=pt;if(i.status===pt&&(i.gzhead.hcrc?(i.pending+2>i.pending_buf_size&&St(e),i.pending+2<=i.pending_buf_size&&(Ct(i,255&e.adler),Ct(i,e.adler>>8&255),e.adler=0,i.status=mt)):i.status=mt),0!==i.pending){if(St(e),0===e.avail_out)return i.last_flush=-1,Le}else if(0===e.avail_in&&Et(t)<=Et(a)&&t!==ze)return xt(e,Be);if(i.status===gt&&0!==e.avail_in)return xt(e,Be);if(0!==e.avail_in||0!==i.lookahead||t!==Pe&&i.status!==gt){var l=i.strategy===Ve?Ut(i,t):i.strategy===He?Lt(i,t):Ft[i.level].func(i,t);if(l!==bt&&l!==wt||(i.status=gt),l===vt||l===bt)return 0===e.avail_out&&(i.last_flush=-1),Le;if(l===yt&&(t===Re?Ne(i):t!==Me&&(Oe(i,0,0,!1),t===De&&(Tt(i.head),0===i.lookahead&&(i.strstart=0,i.block_start=0,i.insert=0))),St(e),0===e.avail_out))return i.last_flush=-1,Le}return t!==ze?Le:i.wrap<=0?Ue:(2===i.wrap?(Ct(i,255&e.adler),Ct(i,e.adler>>8&255),Ct(i,e.adler>>16&255),Ct(i,e.adler>>24&255),Ct(i,255&e.total_in),Ct(i,e.total_in>>8&255),Ct(i,e.total_in>>16&255),Ct(i,e.total_in>>24&255)):(It(i,e.adler>>>16),It(i,65535&e.adler)),St(e),i.wrap>0&&(i.wrap=-i.wrap),0!==i.pending?Le:Ue)},$t=function(e){if(!e||!e.state)return je;var t=e.state.status;return t!==ct&&t!==ft&&t!==ht&&t!==dt&&t!==pt&&t!==mt&&t!==gt?xt(e,je):(e.state=null,t===mt?xt(e,Fe):Le)},Wt=function(e,t){var r=t.length;if(!e||!e.state)return je;var n=e.state,i=n.wrap;if(2===i||1===i&&n.status!==ct||n.lookahead)return je;if(1===i&&(e.adler=we(e.adler,t,r,0)),n.wrap=0,r>=n.w_size){0===i&&(Tt(n.head),n.strstart=0,n.block_start=0,n.insert=0);var a=new Uint8Array(n.w_size);a.set(t.subarray(r-n.w_size,r),0),t=a,r=n.w_size}var o=e.avail_in,s=e.next_in,l=e.input;e.avail_in=r,e.next_in=0,e.input=t,Rt(n);while(n.lookahead>=ot){var u=n.strstart,c=n.lookahead-(ot-1);do{n.ins_h=At(n,n.ins_h,n.window[u+ot-1]),n.prev[u&n.w_mask]=n.head[n.ins_h],n.head[n.ins_h]=u,u++}while(--c);n.strstart=u,n.lookahead=ot-1,Rt(n)}return n.strstart+=n.lookahead,n.block_start=n.strstart,n.insert=n.lookahead,n.lookahead=0,n.match_length=n.prev_length=ot-1,n.match_available=0,e.next_in=s,e.input=l,e.avail_in=o,n.wrap=i,Le},Kt=qt,Jt=Yt,Qt=Vt,er=Xt,tr=Ht,rr=Gt,nr=$t,ir=Wt,ar="pako deflate (from Nodeca project)",or={deflateInit:Kt,deflateInit2:Jt,deflateReset:Qt,deflateResetKeep:er,deflateSetHeader:tr,deflate:rr,deflateEnd:nr,deflateSetDictionary:ir,deflateInfo:ar};function sr(e){return sr="function"===typeof Symbol&&"symbol"===typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"===typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},sr(e)}var lr=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},ur=function(e){var t=Array.prototype.slice.call(arguments,1);while(t.length){var r=t.shift();if(r){if("object"!==sr(r))throw new TypeError(r+"must be non-object");for(var n in r)lr(r,n)&&(e[n]=r[n])}}return e},cr=function(e){for(var t=0,r=0,n=e.length;r<n;r++)t+=e[r].length;for(var i=new Uint8Array(t),a=0,o=0,s=e.length;a<s;a++){var l=e[a];i.set(l,o),o+=l.length}return i},fr={assign:ur,flattenChunks:cr},hr=!0;try{String.fromCharCode.apply(null,new Uint8Array(1))}catch(fa){hr=!1}for(var dr=new Uint8Array(256),pr=0;pr<256;pr++)dr[pr]=pr>=252?6:pr>=248?5:pr>=240?4:pr>=224?3:pr>=192?2:1;dr[254]=dr[254]=1;var mr=function(e){if("function"===typeof TextEncoder&&TextEncoder.prototype.encode)return(new TextEncoder).encode(e);var t,r,n,i,a,o=e.length,s=0;for(i=0;i<o;i++)r=e.charCodeAt(i),55296===(64512&r)&&i+1<o&&(n=e.charCodeAt(i+1),56320===(64512&n)&&(r=65536+(r-55296<<10)+(n-56320),i++)),s+=r<128?1:r<2048?2:r<65536?3:4;for(t=new Uint8Array(s),a=0,i=0;a<s;i++)r=e.charCodeAt(i),55296===(64512&r)&&i+1<o&&(n=e.charCodeAt(i+1),56320===(64512&n)&&(r=65536+(r-55296<<10)+(n-56320),i++)),r<128?t[a++]=r:r<2048?(t[a++]=192|r>>>6,t[a++]=128|63&r):r<65536?(t[a++]=224|r>>>12,t[a++]=128|r>>>6&63,t[a++]=128|63&r):(t[a++]=240|r>>>18,t[a++]=128|r>>>12&63,t[a++]=128|r>>>6&63,t[a++]=128|63&r);return t},gr=function(e,t){if(t<65534&&e.subarray&&hr)return String.fromCharCode.apply(null,e.length===t?e:e.subarray(0,t));for(var r="",n=0;n<t;n++)r+=String.fromCharCode(e[n]);return r},vr=function(e,t){var r,n,i=t||e.length;if("function"===typeof TextDecoder&&TextDecoder.prototype.decode)return(new TextDecoder).decode(e.subarray(0,t));var a=new Array(2*i);for(n=0,r=0;r<i;){var o=e[r++];if(o<128)a[n++]=o;else{var s=dr[o];if(s>4)a[n++]=65533,r+=s-1;else{o&=2===s?31:3===s?15:7;while(s>1&&r<i)o=o<<6|63&e[r++],s--;s>1?a[n++]=65533:o<65536?a[n++]=o:(o-=65536,a[n++]=55296|o>>10&1023,a[n++]=56320|1023&o)}}}return gr(a,n)},yr=function(e,t){t=t||e.length,t>e.length&&(t=e.length);var r=t-1;while(r>=0&&128===(192&e[r]))r--;return r<0||0===r?t:r+dr[e[r]]>t?r:t},br={string2buf:mr,buf2string:vr,utf8border:yr};function wr(){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}var _r=wr,xr=Object.prototype.toString,Er=Ae.Z_NO_FLUSH,Tr=Ae.Z_SYNC_FLUSH,kr=Ae.Z_FULL_FLUSH,Ar=Ae.Z_FINISH,Sr=Ae.Z_OK,Or=Ae.Z_STREAM_END,Cr=Ae.Z_DEFAULT_COMPRESSION,Ir=Ae.Z_DEFAULT_STRATEGY,Nr=Ae.Z_DEFLATED;function Pr(e){this.options=fr.assign({level:Cr,method:Nr,chunkSize:16384,windowBits:15,memLevel:8,strategy:Ir},e||{});var t=this.options;t.raw&&t.windowBits>0?t.windowBits=-t.windowBits:t.gzip&&t.windowBits>0&&t.windowBits<16&&(t.windowBits+=16),this.err=0,this.msg="",this.ended=!1,this.chunks=[],this.strm=new _r,this.strm.avail_out=0;var r=or.deflateInit2(this.strm,t.level,t.method,t.windowBits,t.memLevel,t.strategy);if(r!==Sr)throw new Error(ke[r]);if(t.header&&or.deflateSetHeader(this.strm,t.header),t.dictionary){var n;if(n="string"===typeof t.dictionary?br.string2buf(t.dictionary):"[object ArrayBuffer]"===xr.call(t.dictionary)?new Uint8Array(t.dictionary):t.dictionary,r=or.deflateSetDictionary(this.strm,n),r!==Sr)throw new Error(ke[r]);this._dict_set=!0}}function Rr(e,t){var r=new Pr(t);if(r.push(e,!0),r.err)throw r.msg||ke[r.err];return r.result}function Dr(e,t){return t=t||{},t.raw=!0,Rr(e,t)}function zr(e,t){return t=t||{},t.gzip=!0,Rr(e,t)}Pr.prototype.push=function(e,t){var r,n,i=this.strm,a=this.options.chunkSize;if(this.ended)return!1;for(n=t===~~t?t:!0===t?Ar:Er,"string"===typeof e?i.input=br.string2buf(e):"[object ArrayBuffer]"===xr.call(e)?i.input=new Uint8Array(e):i.input=e,i.next_in=0,i.avail_in=i.input.length;;)if(0===i.avail_out&&(i.output=new Uint8Array(a),i.next_out=0,i.avail_out=a),(n===Tr||n===kr)&&i.avail_out<=6)this.onData(i.output.subarray(0,i.next_out)),i.avail_out=0;else{if(r=or.deflate(i,n),r===Or)return i.next_out>0&&this.onData(i.output.subarray(0,i.next_out)),r=or.deflateEnd(this.strm),this.onEnd(r),this.ended=!0,r===Sr;if(0!==i.avail_out){if(n>0&&i.next_out>0)this.onData(i.output.subarray(0,i.next_out)),i.avail_out=0;else if(0===i.avail_in)break}else this.onData(i.output)}return!0},Pr.prototype.onData=function(e){this.chunks.push(e)},Pr.prototype.onEnd=function(e){e===Sr&&(this.result=fr.flattenChunks(this.chunks)),this.chunks=[],this.err=e,this.msg=this.strm.msg};var Mr=Pr,Lr=Rr,Ur=Dr,jr=zr,Fr=Ae,Br={Deflate:Mr,deflate:Lr,deflateRaw:Ur,gzip:jr,constants:Fr},Zr=30,Xr=12,Vr=function(e,t){var r,n,i,a,o,s,l,u,c,f,h,d,p,m,g,v,y,b,w,_,x,E,T,k,A=e.state;r=e.next_in,T=e.input,n=r+(e.avail_in-5),i=e.next_out,k=e.output,a=i-(t-e.avail_out),o=i+(e.avail_out-257),s=A.dmax,l=A.wsize,u=A.whave,c=A.wnext,f=A.window,h=A.hold,d=A.bits,p=A.lencode,m=A.distcode,g=(1<<A.lenbits)-1,v=(1<<A.distbits)-1;e:do{d<15&&(h+=T[r++]<<d,d+=8,h+=T[r++]<<d,d+=8),y=p[h&g];t:for(;;){if(b=y>>>24,h>>>=b,d-=b,b=y>>>16&255,0===b)k[i++]=65535&y;else{if(!(16&b)){if(0===(64&b)){y=p[(65535&y)+(h&(1<<b)-1)];continue t}if(32&b){A.mode=Xr;break e}e.msg="invalid literal/length code",A.mode=Zr;break e}w=65535&y,b&=15,b&&(d<b&&(h+=T[r++]<<d,d+=8),w+=h&(1<<b)-1,h>>>=b,d-=b),d<15&&(h+=T[r++]<<d,d+=8,h+=T[r++]<<d,d+=8),y=m[h&v];r:for(;;){if(b=y>>>24,h>>>=b,d-=b,b=y>>>16&255,!(16&b)){if(0===(64&b)){y=m[(65535&y)+(h&(1<<b)-1)];continue r}e.msg="invalid distance code",A.mode=Zr;break e}if(_=65535&y,b&=15,d<b&&(h+=T[r++]<<d,d+=8,d<b&&(h+=T[r++]<<d,d+=8)),_+=h&(1<<b)-1,_>s){e.msg="invalid distance too far back",A.mode=Zr;break e}if(h>>>=b,d-=b,b=i-a,_>b){if(b=_-b,b>u&&A.sane){e.msg="invalid distance too far back",A.mode=Zr;break e}if(x=0,E=f,0===c){if(x+=l-b,b<w){w-=b;do{k[i++]=f[x++]}while(--b);x=i-_,E=k}}else if(c<b){if(x+=l+c-b,b-=c,b<w){w-=b;do{k[i++]=f[x++]}while(--b);if(x=0,c<w){b=c,w-=b;do{k[i++]=f[x++]}while(--b);x=i-_,E=k}}}else if(x+=c-b,b<w){w-=b;do{k[i++]=f[x++]}while(--b);x=i-_,E=k}while(w>2)k[i++]=E[x++],k[i++]=E[x++],k[i++]=E[x++],w-=3;w&&(k[i++]=E[x++],w>1&&(k[i++]=E[x++]))}else{x=i-_;do{k[i++]=k[x++],k[i++]=k[x++],k[i++]=k[x++],w-=3}while(w>2);w&&(k[i++]=k[x++],w>1&&(k[i++]=k[x++]))}break}}break}}while(r<n&&i<o);w=d>>3,r-=w,d-=w<<3,h&=(1<<d)-1,e.next_in=r,e.next_out=i,e.avail_in=r<n?n-r+5:5-(r-n),e.avail_out=i<o?o-i+257:257-(i-o),A.hold=h,A.bits=d},Hr=15,Yr=852,qr=592,Gr=0,$r=1,Wr=2,Kr=new Uint16Array([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]),Jr=new Uint8Array([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]),Qr=new Uint16Array([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]),en=new Uint8Array([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]),tn=function(e,t,r,n,i,a,o,s){var l,u,c,f,h,d,p,m,g,v=s.bits,y=0,b=0,w=0,_=0,x=0,E=0,T=0,k=0,A=0,S=0,O=null,C=0,I=new Uint16Array(Hr+1),N=new Uint16Array(Hr+1),P=null,R=0;for(y=0;y<=Hr;y++)I[y]=0;for(b=0;b<n;b++)I[t[r+b]]++;for(x=v,_=Hr;_>=1;_--)if(0!==I[_])break;if(x>_&&(x=_),0===_)return i[a++]=20971520,i[a++]=20971520,s.bits=1,0;for(w=1;w<_;w++)if(0!==I[w])break;for(x<w&&(x=w),k=1,y=1;y<=Hr;y++)if(k<<=1,k-=I[y],k<0)return-1;if(k>0&&(e===Gr||1!==_))return-1;for(N[1]=0,y=1;y<Hr;y++)N[y+1]=N[y]+I[y];for(b=0;b<n;b++)0!==t[r+b]&&(o[N[t[r+b]]++]=b);if(e===Gr?(O=P=o,d=19):e===$r?(O=Kr,C-=257,P=Jr,R-=257,d=256):(O=Qr,P=en,d=-1),S=0,b=0,y=w,h=a,E=x,T=0,c=-1,A=1<<x,f=A-1,e===$r&&A>Yr||e===Wr&&A>qr)return 1;for(;;){p=y-T,o[b]<d?(m=0,g=o[b]):o[b]>d?(m=P[R+o[b]],g=O[C+o[b]]):(m=96,g=0),l=1<<y-T,u=1<<E,w=u;do{u-=l,i[h+(S>>T)+u]=p<<24|m<<16|g|0}while(0!==u);l=1<<y-1;while(S&l)l>>=1;if(0!==l?(S&=l-1,S+=l):S=0,b++,0===--I[y]){if(y===_)break;y=t[r+o[b]]}if(y>x&&(S&f)!==c){0===T&&(T=x),h+=w,E=y-T,k=1<<E;while(E+T<_){if(k-=I[E+T],k<=0)break;E++,k<<=1}if(A+=1<<E,e===$r&&A>Yr||e===Wr&&A>qr)return 1;c=S&f,i[c]=x<<24|E<<16|h-a|0}}return 0!==S&&(i[h+S]=y-T<<24|64<<16|0),s.bits=x,0},rn=tn,nn=0,an=1,on=2,sn=Ae.Z_FINISH,ln=Ae.Z_BLOCK,un=Ae.Z_TREES,cn=Ae.Z_OK,fn=Ae.Z_STREAM_END,hn=Ae.Z_NEED_DICT,dn=Ae.Z_STREAM_ERROR,pn=Ae.Z_DATA_ERROR,mn=Ae.Z_MEM_ERROR,gn=Ae.Z_BUF_ERROR,vn=Ae.Z_DEFLATED,yn=1,bn=2,wn=3,_n=4,xn=5,En=6,Tn=7,kn=8,An=9,Sn=10,On=11,Cn=12,In=13,Nn=14,Pn=15,Rn=16,Dn=17,zn=18,Mn=19,Ln=20,Un=21,jn=22,Fn=23,Bn=24,Zn=25,Xn=26,Vn=27,Hn=28,Yn=29,qn=30,Gn=31,$n=32,Wn=852,Kn=592,Jn=15,Qn=Jn,ei=function(e){return(e>>>24&255)+(e>>>8&65280)+((65280&e)<<8)+((255&e)<<24)};function ti(){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 Uint16Array(320),this.work=new Uint16Array(288),this.lendyn=null,this.distdyn=null,this.sane=0,this.back=0,this.was=0}var ri,ni,ii=function(e){if(!e||!e.state)return dn;var t=e.state;return e.total_in=e.total_out=t.total=0,e.msg="",t.wrap&&(e.adler=1&t.wrap),t.mode=yn,t.last=0,t.havedict=0,t.dmax=32768,t.head=null,t.hold=0,t.bits=0,t.lencode=t.lendyn=new Int32Array(Wn),t.distcode=t.distdyn=new Int32Array(Kn),t.sane=1,t.back=-1,cn},ai=function(e){if(!e||!e.state)return dn;var t=e.state;return t.wsize=0,t.whave=0,t.wnext=0,ii(e)},oi=function(e,t){var r;if(!e||!e.state)return dn;var n=e.state;return t<0?(r=0,t=-t):(r=1+(t>>4),t<48&&(t&=15)),t&&(t<8||t>15)?dn:(null!==n.window&&n.wbits!==t&&(n.window=null),n.wrap=r,n.wbits=t,ai(e))},si=function(e,t){if(!e)return dn;var r=new ti;e.state=r,r.window=null;var n=oi(e,t);return n!==cn&&(e.state=null),n},li=function(e){return si(e,Qn)},ui=!0,ci=function(e){if(ui){ri=new Int32Array(512),ni=new Int32Array(32);var t=0;while(t<144)e.lens[t++]=8;while(t<256)e.lens[t++]=9;while(t<280)e.lens[t++]=7;while(t<288)e.lens[t++]=8;rn(an,e.lens,0,288,ri,0,e.work,{bits:9}),t=0;while(t<32)e.lens[t++]=5;rn(on,e.lens,0,32,ni,0,e.work,{bits:5}),ui=!1}e.lencode=ri,e.lenbits=9,e.distcode=ni,e.distbits=5},fi=function(e,t,r,n){var i,a=e.state;return null===a.window&&(a.wsize=1<<a.wbits,a.wnext=0,a.whave=0,a.window=new Uint8Array(a.wsize)),n>=a.wsize?(a.window.set(t.subarray(r-a.wsize,r),0),a.wnext=0,a.whave=a.wsize):(i=a.wsize-a.wnext,i>n&&(i=n),a.window.set(t.subarray(r-n,r-n+i),a.wnext),n-=i,n?(a.window.set(t.subarray(r-n,r),0),a.wnext=n,a.whave=a.wsize):(a.wnext+=i,a.wnext===a.wsize&&(a.wnext=0),a.whave<a.wsize&&(a.whave+=i))),0},hi=function(e,t){var r,n,i,a,o,s,l,u,c,f,h,d,p,m,g,v,y,b,w,_,x,E,T,k,A=0,S=new Uint8Array(4),O=new Uint8Array([16,17,18,0,8,7,9,6,10,5,11,4,12,3,13,2,14,1,15]);if(!e||!e.state||!e.output||!e.input&&0!==e.avail_in)return dn;r=e.state,r.mode===Cn&&(r.mode=In),o=e.next_out,i=e.output,l=e.avail_out,a=e.next_in,n=e.input,s=e.avail_in,u=r.hold,c=r.bits,f=s,h=l,E=cn;e:for(;;)switch(r.mode){case yn:if(0===r.wrap){r.mode=In;break}while(c<16){if(0===s)break e;s--,u+=n[a++]<<c,c+=8}if(2&r.wrap&&35615===u){r.check=0,S[0]=255&u,S[1]=u>>>8&255,r.check=Te(r.check,S,2,0),u=0,c=0,r.mode=bn;break}if(r.flags=0,r.head&&(r.head.done=!1),!(1&r.wrap)||(((255&u)<<8)+(u>>8))%31){e.msg="incorrect header check",r.mode=qn;break}if((15&u)!==vn){e.msg="unknown compression method",r.mode=qn;break}if(u>>>=4,c-=4,x=8+(15&u),0===r.wbits)r.wbits=x;else if(x>r.wbits){e.msg="invalid window size",r.mode=qn;break}r.dmax=1<<r.wbits,e.adler=r.check=1,r.mode=512&u?Sn:Cn,u=0,c=0;break;case bn:while(c<16){if(0===s)break e;s--,u+=n[a++]<<c,c+=8}if(r.flags=u,(255&r.flags)!==vn){e.msg="unknown compression method",r.mode=qn;break}if(57344&r.flags){e.msg="unknown header flags set",r.mode=qn;break}r.head&&(r.head.text=u>>8&1),512&r.flags&&(S[0]=255&u,S[1]=u>>>8&255,r.check=Te(r.check,S,2,0)),u=0,c=0,r.mode=wn;case wn:while(c<32){if(0===s)break e;s--,u+=n[a++]<<c,c+=8}r.head&&(r.head.time=u),512&r.flags&&(S[0]=255&u,S[1]=u>>>8&255,S[2]=u>>>16&255,S[3]=u>>>24&255,r.check=Te(r.check,S,4,0)),u=0,c=0,r.mode=_n;case _n:while(c<16){if(0===s)break e;s--,u+=n[a++]<<c,c+=8}r.head&&(r.head.xflags=255&u,r.head.os=u>>8),512&r.flags&&(S[0]=255&u,S[1]=u>>>8&255,r.check=Te(r.check,S,2,0)),u=0,c=0,r.mode=xn;case xn:if(1024&r.flags){while(c<16){if(0===s)break e;s--,u+=n[a++]<<c,c+=8}r.length=u,r.head&&(r.head.extra_len=u),512&r.flags&&(S[0]=255&u,S[1]=u>>>8&255,r.check=Te(r.check,S,2,0)),u=0,c=0}else r.head&&(r.head.extra=null);r.mode=En;case En:if(1024&r.flags&&(d=r.length,d>s&&(d=s),d&&(r.head&&(x=r.head.extra_len-r.length,r.head.extra||(r.head.extra=new Uint8Array(r.head.extra_len)),r.head.extra.set(n.subarray(a,a+d),x)),512&r.flags&&(r.check=Te(r.check,n,d,a)),s-=d,a+=d,r.length-=d),r.length))break e;r.length=0,r.mode=Tn;case Tn:if(2048&r.flags){if(0===s)break e;d=0;do{x=n[a+d++],r.head&&x&&r.length<65536&&(r.head.name+=String.fromCharCode(x))}while(x&&d<s);if(512&r.flags&&(r.check=Te(r.check,n,d,a)),s-=d,a+=d,x)break e}else r.head&&(r.head.name=null);r.length=0,r.mode=kn;case kn:if(4096&r.flags){if(0===s)break e;d=0;do{x=n[a+d++],r.head&&x&&r.length<65536&&(r.head.comment+=String.fromCharCode(x))}while(x&&d<s);if(512&r.flags&&(r.check=Te(r.check,n,d,a)),s-=d,a+=d,x)break e}else r.head&&(r.head.comment=null);r.mode=An;case An:if(512&r.flags){while(c<16){if(0===s)break e;s--,u+=n[a++]<<c,c+=8}if(u!==(65535&r.check)){e.msg="header crc mismatch",r.mode=qn;break}u=0,c=0}r.head&&(r.head.hcrc=r.flags>>9&1,r.head.done=!0),e.adler=r.check=0,r.mode=Cn;break;case Sn:while(c<32){if(0===s)break e;s--,u+=n[a++]<<c,c+=8}e.adler=r.check=ei(u),u=0,c=0,r.mode=On;case On:if(0===r.havedict)return e.next_out=o,e.avail_out=l,e.next_in=a,e.avail_in=s,r.hold=u,r.bits=c,hn;e.adler=r.check=1,r.mode=Cn;case Cn:if(t===ln||t===un)break e;case In:if(r.last){u>>>=7&c,c-=7&c,r.mode=Vn;break}while(c<3){if(0===s)break e;s--,u+=n[a++]<<c,c+=8}switch(r.last=1&u,u>>>=1,c-=1,3&u){case 0:r.mode=Nn;break;case 1:if(ci(r),r.mode=Ln,t===un){u>>>=2,c-=2;break e}break;case 2:r.mode=Dn;break;case 3:e.msg="invalid block type",r.mode=qn}u>>>=2,c-=2;break;case Nn:u>>>=7&c,c-=7&c;while(c<32){if(0===s)break e;s--,u+=n[a++]<<c,c+=8}if((65535&u)!==(u>>>16^65535)){e.msg="invalid stored block lengths",r.mode=qn;break}if(r.length=65535&u,u=0,c=0,r.mode=Pn,t===un)break e;case Pn:r.mode=Rn;case Rn:if(d=r.length,d){if(d>s&&(d=s),d>l&&(d=l),0===d)break e;i.set(n.subarray(a,a+d),o),s-=d,a+=d,l-=d,o+=d,r.length-=d;break}r.mode=Cn;break;case Dn:while(c<14){if(0===s)break e;s--,u+=n[a++]<<c,c+=8}if(r.nlen=257+(31&u),u>>>=5,c-=5,r.ndist=1+(31&u),u>>>=5,c-=5,r.ncode=4+(15&u),u>>>=4,c-=4,r.nlen>286||r.ndist>30){e.msg="too many length or distance symbols",r.mode=qn;break}r.have=0,r.mode=zn;case zn:while(r.have<r.ncode){while(c<3){if(0===s)break e;s--,u+=n[a++]<<c,c+=8}r.lens[O[r.have++]]=7&u,u>>>=3,c-=3}while(r.have<19)r.lens[O[r.have++]]=0;if(r.lencode=r.lendyn,r.lenbits=7,T={bits:r.lenbits},E=rn(nn,r.lens,0,19,r.lencode,0,r.work,T),r.lenbits=T.bits,E){e.msg="invalid code lengths set",r.mode=qn;break}r.have=0,r.mode=Mn;case Mn:while(r.have<r.nlen+r.ndist){for(;;){if(A=r.lencode[u&(1<<r.lenbits)-1],g=A>>>24,v=A>>>16&255,y=65535&A,g<=c)break;if(0===s)break e;s--,u+=n[a++]<<c,c+=8}if(y<16)u>>>=g,c-=g,r.lens[r.have++]=y;else{if(16===y){k=g+2;while(c<k){if(0===s)break e;s--,u+=n[a++]<<c,c+=8}if(u>>>=g,c-=g,0===r.have){e.msg="invalid bit length repeat",r.mode=qn;break}x=r.lens[r.have-1],d=3+(3&u),u>>>=2,c-=2}else if(17===y){k=g+3;while(c<k){if(0===s)break e;s--,u+=n[a++]<<c,c+=8}u>>>=g,c-=g,x=0,d=3+(7&u),u>>>=3,c-=3}else{k=g+7;while(c<k){if(0===s)break e;s--,u+=n[a++]<<c,c+=8}u>>>=g,c-=g,x=0,d=11+(127&u),u>>>=7,c-=7}if(r.have+d>r.nlen+r.ndist){e.msg="invalid bit length repeat",r.mode=qn;break}while(d--)r.lens[r.have++]=x}}if(r.mode===qn)break;if(0===r.lens[256]){e.msg="invalid code -- missing end-of-block",r.mode=qn;break}if(r.lenbits=9,T={bits:r.lenbits},E=rn(an,r.lens,0,r.nlen,r.lencode,0,r.work,T),r.lenbits=T.bits,E){e.msg="invalid literal/lengths set",r.mode=qn;break}if(r.distbits=6,r.distcode=r.distdyn,T={bits:r.distbits},E=rn(on,r.lens,r.nlen,r.ndist,r.distcode,0,r.work,T),r.distbits=T.bits,E){e.msg="invalid distances set",r.mode=qn;break}if(r.mode=Ln,t===un)break e;case Ln:r.mode=Un;case Un:if(s>=6&&l>=258){e.next_out=o,e.avail_out=l,e.next_in=a,e.avail_in=s,r.hold=u,r.bits=c,Vr(e,h),o=e.next_out,i=e.output,l=e.avail_out,a=e.next_in,n=e.input,s=e.avail_in,u=r.hold,c=r.bits,r.mode===Cn&&(r.back=-1);break}for(r.back=0;;){if(A=r.lencode[u&(1<<r.lenbits)-1],g=A>>>24,v=A>>>16&255,y=65535&A,g<=c)break;if(0===s)break e;s--,u+=n[a++]<<c,c+=8}if(v&&0===(240&v)){for(b=g,w=v,_=y;;){if(A=r.lencode[_+((u&(1<<b+w)-1)>>b)],g=A>>>24,v=A>>>16&255,y=65535&A,b+g<=c)break;if(0===s)break e;s--,u+=n[a++]<<c,c+=8}u>>>=b,c-=b,r.back+=b}if(u>>>=g,c-=g,r.back+=g,r.length=y,0===v){r.mode=Xn;break}if(32&v){r.back=-1,r.mode=Cn;break}if(64&v){e.msg="invalid literal/length code",r.mode=qn;break}r.extra=15&v,r.mode=jn;case jn:if(r.extra){k=r.extra;while(c<k){if(0===s)break e;s--,u+=n[a++]<<c,c+=8}r.length+=u&(1<<r.extra)-1,u>>>=r.extra,c-=r.extra,r.back+=r.extra}r.was=r.length,r.mode=Fn;case Fn:for(;;){if(A=r.distcode[u&(1<<r.distbits)-1],g=A>>>24,v=A>>>16&255,y=65535&A,g<=c)break;if(0===s)break e;s--,u+=n[a++]<<c,c+=8}if(0===(240&v)){for(b=g,w=v,_=y;;){if(A=r.distcode[_+((u&(1<<b+w)-1)>>b)],g=A>>>24,v=A>>>16&255,y=65535&A,b+g<=c)break;if(0===s)break e;s--,u+=n[a++]<<c,c+=8}u>>>=b,c-=b,r.back+=b}if(u>>>=g,c-=g,r.back+=g,64&v){e.msg="invalid distance code",r.mode=qn;break}r.offset=y,r.extra=15&v,r.mode=Bn;case Bn:if(r.extra){k=r.extra;while(c<k){if(0===s)break e;s--,u+=n[a++]<<c,c+=8}r.offset+=u&(1<<r.extra)-1,u>>>=r.extra,c-=r.extra,r.back+=r.extra}if(r.offset>r.dmax){e.msg="invalid distance too far back",r.mode=qn;break}r.mode=Zn;case Zn:if(0===l)break e;if(d=h-l,r.offset>d){if(d=r.offset-d,d>r.whave&&r.sane){e.msg="invalid distance too far back",r.mode=qn;break}d>r.wnext?(d-=r.wnext,p=r.wsize-d):p=r.wnext-d,d>r.length&&(d=r.length),m=r.window}else m=i,p=o-r.offset,d=r.length;d>l&&(d=l),l-=d,r.length-=d;do{i[o++]=m[p++]}while(--d);0===r.length&&(r.mode=Un);break;case Xn:if(0===l)break e;i[o++]=r.length,l--,r.mode=Un;break;case Vn:if(r.wrap){while(c<32){if(0===s)break e;s--,u|=n[a++]<<c,c+=8}if(h-=l,e.total_out+=h,r.total+=h,h&&(e.adler=r.check=r.flags?Te(r.check,i,h,o-h):we(r.check,i,h,o-h)),h=l,(r.flags?u:ei(u))!==r.check){e.msg="incorrect data check",r.mode=qn;break}u=0,c=0}r.mode=Hn;case Hn:if(r.wrap&&r.flags){while(c<32){if(0===s)break e;s--,u+=n[a++]<<c,c+=8}if(u!==(4294967295&r.total)){e.msg="incorrect length check",r.mode=qn;break}u=0,c=0}r.mode=Yn;case Yn:E=fn;break e;case qn:E=pn;break e;case Gn:return mn;case $n:default:return dn}return e.next_out=o,e.avail_out=l,e.next_in=a,e.avail_in=s,r.hold=u,r.bits=c,(r.wsize||h!==e.avail_out&&r.mode<qn&&(r.mode<Vn||t!==sn))&&fi(e,e.output,e.next_out,h-e.avail_out),f-=e.avail_in,h-=e.avail_out,e.total_in+=f,e.total_out+=h,r.total+=h,r.wrap&&h&&(e.adler=r.check=r.flags?Te(r.check,i,h,e.next_out-h):we(r.check,i,h,e.next_out-h)),e.data_type=r.bits+(r.last?64:0)+(r.mode===Cn?128:0)+(r.mode===Ln||r.mode===Pn?256:0),(0===f&&0===h||t===sn)&&E===cn&&(E=gn),E},di=function(e){if(!e||!e.state)return dn;var t=e.state;return t.window&&(t.window=null),e.state=null,cn},pi=function(e,t){if(!e||!e.state)return dn;var r=e.state;return 0===(2&r.wrap)?dn:(r.head=t,t.done=!1,cn)},mi=function(e,t){var r,n,i,a=t.length;return e&&e.state?(r=e.state,0!==r.wrap&&r.mode!==On?dn:r.mode===On&&(n=1,n=we(n,t,a,0),n!==r.check)?pn:(i=fi(e,t,a,a),i?(r.mode=Gn,mn):(r.havedict=1,cn))):dn},gi=ai,vi=oi,yi=ii,bi=li,wi=si,_i=hi,xi=di,Ei=pi,Ti=mi,ki="pako inflate (from Nodeca project)",Ai={inflateReset:gi,inflateReset2:vi,inflateResetKeep:yi,inflateInit:bi,inflateInit2:wi,inflate:_i,inflateEnd:xi,inflateGetHeader:Ei,inflateSetDictionary:Ti,inflateInfo:ki};function Si(){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}var Oi=Si,Ci=Object.prototype.toString,Ii=Ae.Z_NO_FLUSH,Ni=Ae.Z_FINISH,Pi=Ae.Z_OK,Ri=Ae.Z_STREAM_END,Di=Ae.Z_NEED_DICT,zi=Ae.Z_STREAM_ERROR,Mi=Ae.Z_DATA_ERROR,Li=Ae.Z_MEM_ERROR;function Ui(e){this.options=fr.assign({chunkSize:65536,windowBits:15,to:""},e||{});var t=this.options;t.raw&&t.windowBits>=0&&t.windowBits<16&&(t.windowBits=-t.windowBits,0===t.windowBits&&(t.windowBits=-15)),!(t.windowBits>=0&&t.windowBits<16)||e&&e.windowBits||(t.windowBits+=32),t.windowBits>15&&t.windowBits<48&&0===(15&t.windowBits)&&(t.windowBits|=15),this.err=0,this.msg="",this.ended=!1,this.chunks=[],this.strm=new _r,this.strm.avail_out=0;var r=Ai.inflateInit2(this.strm,t.windowBits);if(r!==Pi)throw new Error(ke[r]);if(this.header=new Oi,Ai.inflateGetHeader(this.strm,this.header),t.dictionary&&("string"===typeof t.dictionary?t.dictionary=br.string2buf(t.dictionary):"[object ArrayBuffer]"===Ci.call(t.dictionary)&&(t.dictionary=new Uint8Array(t.dictionary)),t.raw&&(r=Ai.inflateSetDictionary(this.strm,t.dictionary),r!==Pi)))throw new Error(ke[r])}function ji(e,t){var r=new Ui(t);if(r.push(e),r.err)throw r.msg||ke[r.err];return r.result}function Fi(e,t){return t=t||{},t.raw=!0,ji(e,t)}Ui.prototype.push=function(e,t){var r,n,i,a=this.strm,o=this.options.chunkSize,s=this.options.dictionary;if(this.ended)return!1;for(n=t===~~t?t:!0===t?Ni:Ii,"[object ArrayBuffer]"===Ci.call(e)?a.input=new Uint8Array(e):a.input=e,a.next_in=0,a.avail_in=a.input.length;;){0===a.avail_out&&(a.output=new Uint8Array(o),a.next_out=0,a.avail_out=o),r=Ai.inflate(a,n),r===Di&&s&&(r=Ai.inflateSetDictionary(a,s),r===Pi?r=Ai.inflate(a,n):r===Mi&&(r=Di));while(a.avail_in>0&&r===Ri&&a.state.wrap>0&&0!==e[a.next_in])Ai.inflateReset(a),r=Ai.inflate(a,n);switch(r){case zi:case Mi:case Di:case Li:return this.onEnd(r),this.ended=!0,!1}if(i=a.avail_out,a.next_out&&(0===a.avail_out||r===Ri))if("string"===this.options.to){var l=br.utf8border(a.output,a.next_out),u=a.next_out-l,c=br.buf2string(a.output,l);a.next_out=u,a.avail_out=o-u,u&&a.output.set(a.output.subarray(l,l+u),0),this.onData(c)}else this.onData(a.output.length===a.next_out?a.output:a.output.subarray(0,a.next_out));if(r!==Pi||0!==i){if(r===Ri)return r=Ai.inflateEnd(this.strm),this.onEnd(r),this.ended=!0,!0;if(0===a.avail_in)break}}return!0},Ui.prototype.onData=function(e){this.chunks.push(e)},Ui.prototype.onEnd=function(e){e===Pi&&("string"===this.options.to?this.result=this.chunks.join(""):this.result=fr.flattenChunks(this.chunks)),this.chunks=[],this.err=e,this.msg=this.strm.msg};var Bi=Ui,Zi=ji,Xi=Fi,Vi=ji,Hi=Ae,Yi={Inflate:Bi,inflate:Zi,inflateRaw:Xi,ungzip:Vi,constants:Hi},qi=Br.Deflate,Gi=Br.deflate,$i=Br.deflateRaw,Wi=Br.gzip,Ki=Yi.Inflate,Ji=Yi.inflate,Qi=Yi.inflateRaw,ea=Yi.ungzip,ta=qi,ra=Gi,na=$i,ia=Wi,aa=Ki,oa=Ji,sa=Qi,la=ea,ua=Ae,ca={Deflate:ta,deflate:ra,deflateRaw:na,gzip:ia,Inflate:aa,inflate:oa,inflateRaw:sa,ungzip:la,constants:ua};e.Deflate=ta,e.Inflate=aa,e.constants=ua,e["default"]=ca,e.deflate=ra,e.deflateRaw=na,e.gzip=ia,e.inflate=oa,e.inflateRaw=sa,e.ungzip=la,Object.defineProperty(e,"__esModule",{value:!0})}))},"210b":function(e,t,r){var n=r("e1c8");t.DOMImplementation=n.DOMImplementation,t.XMLSerializer=n.XMLSerializer,t.DOMParser=r("b074").DOMParser},"21a6":function(e,t,r){(function(r){var n,i,a;(function(r,o){i=[],n=o,a="function"===typeof n?n.apply(t,i):n,void 0===a||(e.exports=a)})(0,(function(){"use strict";function t(e,t){return"undefined"==typeof t?t={autoBom:!1}:"object"!=typeof t&&(console.warn("Deprecated: Expected third argument to be a object"),t={autoBom:!t}),t.autoBom&&/^\s*(?:text\/\S*|application\/xml|\S*\/\S*\+xml)\s*;.*charset\s*=\s*utf-8/i.test(e.type)?new Blob(["\ufeff",e],{type:e.type}):e}function n(e,t,r){var n=new XMLHttpRequest;n.open("GET",e),n.responseType="blob",n.onload=function(){l(n.response,t,r)},n.onerror=function(){console.error("could not download file")},n.send()}function i(e){var t=new XMLHttpRequest;t.open("HEAD",e,!1);try{t.send()}catch(e){}return 200<=t.status&&299>=t.status}function a(e){try{e.dispatchEvent(new MouseEvent("click"))}catch(n){var t=document.createEvent("MouseEvents");t.initMouseEvent("click",!0,!0,window,0,0,0,80,20,!1,!1,!1,!1,0,null),e.dispatchEvent(t)}}var o="object"==typeof window&&window.window===window?window:"object"==typeof self&&self.self===self?self:"object"==typeof r&&r.global===r?r:void 0,s=o.navigator&&/Macintosh/.test(navigator.userAgent)&&/AppleWebKit/.test(navigator.userAgent)&&!/Safari/.test(navigator.userAgent),l=o.saveAs||("object"!=typeof window||window!==o?function(){}:"download"in HTMLAnchorElement.prototype&&!s?function(e,t,r){var s=o.URL||o.webkitURL,l=document.createElement("a");t=t||e.name||"download",l.download=t,l.rel="noopener","string"==typeof e?(l.href=e,l.origin===location.origin?a(l):i(l.href)?n(e,t,r):a(l,l.target="_blank")):(l.href=s.createObjectURL(e),setTimeout((function(){s.revokeObjectURL(l.href)}),4e4),setTimeout((function(){a(l)}),0))}:"msSaveOrOpenBlob"in navigator?function(e,r,o){if(r=r||e.name||"download","string"!=typeof e)navigator.msSaveOrOpenBlob(t(e,o),r);else if(i(e))n(e,r,o);else{var s=document.createElement("a");s.href=e,s.target="_blank",setTimeout((function(){a(s)}))}}:function(e,t,r,i){if(i=i||open("","_blank"),i&&(i.document.title=i.document.body.innerText="downloading..."),"string"==typeof e)return n(e,t,r);var a="application/octet-stream"===e.type,l=/constructor/i.test(o.HTMLElement)||o.safari,u=/CriOS\/[\d]+/.test(navigator.userAgent);if((u||a&&l||s)&&"undefined"!=typeof FileReader){var c=new FileReader;c.onloadend=function(){var e=c.result;e=u?e:e.replace(/^data:[^;]*;/,"data:attachment/file;"),i?i.location.href=e:location=e,i=null},c.readAsDataURL(e)}else{var f=o.URL||o.webkitURL,h=f.createObjectURL(e);i?i.location=h:location.href=h,i=null,setTimeout((function(){f.revokeObjectURL(h)}),4e4)}});o.saveAs=l.saveAs=l,e.exports=l}))}).call(this,r("c8ba"))},2522:function(e,t,r){"use strict";var n=r("50a1"),i=r("5558"),a=i.isTextStart,o=i.isTextEnd,s=i.endsWith,l=i.startsWith,u='<w:t xml:space="preserve">',c=u.length,f="</w:t>",h=f.length;function d(e){return a(e)&&"w:t"===e.tag}function p(e,t){var r=e[t].value;return"</w:t>"===e[t+1].value||-1!==r.indexOf('xml:space="preserve"')?r:r.substr(0,r.length-1)+' xml:space="preserve">'}function m(e,t){return e&&e.basePart&&t.length>1}var g={name:"SpacePreserveModule",postparse:function(e,t){var r=[],n=!1,i=0,a=0;function s(e,t){return"placeholder"===e.type&&(!e.module||"loop"===e.module)&&t.length>1}var l=e.reduce((function(e,l){return d(l)&&(n=!0,a=r.length),n?(r.push(l),m(t,r)&&(i=t.basePart.endLindex,r[0].value=p(r,0)),s(l,r)&&(r[a].value=p(r,a),i=l.endLindex),o(l)&&l.lIndex>i&&(0!==i&&(r[a].value=p(r,a)),Array.prototype.push.apply(e,r),r=[],n=!1,i=0,a=0),e):(e.push(l),e)}),[]);return Array.prototype.push.apply(l,r),l},postrender:function(e){for(var t="",r=0,n=0,i=e.length;n<i;n++){var a=n,o=e[n];""!==o&&(s(t,u)&&l(o,f)&&(e[r]=t.substr(0,t.length-c)+"<w:t/>",o=o.substr(h)),t=o,r=a,e[n]=o)}return e}};e.exports=function(){return n(g)}},"309c":function(e,t,r){"use strict";var n="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=";t.encode=function(e){var t,r,i,a,o,s,l,u="",c=0;while(c<e.length)t=e.charCodeAt(c++),r=e.charCodeAt(c++),i=e.charCodeAt(c++),a=t>>2,o=(3&t)<<4|r>>4,s=(15&r)<<2|i>>6,l=63&i,isNaN(r)?s=l=64:isNaN(i)&&(l=64),u=u+n.charAt(a)+n.charAt(o)+n.charAt(s)+n.charAt(l);return u},t.decode=function(e){var t,r,i,a,o,s,l,u="",c=0;e=e.replace(/[^A-Za-z0-9\+\/\=]/g,"");while(c<e.length)a=n.indexOf(e.charAt(c++)),o=n.indexOf(e.charAt(c++)),s=n.indexOf(e.charAt(c++)),l=n.indexOf(e.charAt(c++)),t=a<<2|o>>4,r=(15&o)<<4|s>>2,i=(3&s)<<6|l,u+=String.fromCharCode(t),64!==s&&(u+=String.fromCharCode(r)),64!==l&&(u+=String.fromCharCode(i));return u}},3101:function(e,t,r){"use strict";function n(e){return s(e)||o(e)||a(e)||i()}function i(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}function a(e,t){if(e){if("string"===typeof e)return l(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);return"Object"===r&&e.constructor&&(r=e.constructor.name),"Map"===r||"Set"===r?Array.from(e):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?l(e,t):void 0}}function o(e){if("undefined"!==typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}function s(e){if(Array.isArray(e))return l(e)}function l(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n}function u(e,t){for(var r,n=0,i=t.modules.length;n<i;n++){var a=t.modules[n];if(r=a.resolve(e,t),r)return r}return!1}function c(e){var t=[],r=e.baseNullGetter,i=e.compiled,a=e.scopeManager;e.nullGetter=function(e,t){return r(e,t||a)},e.resolved=t;var o=[];return Promise.all(i.filter((function(e){return-1===["content","tag"].indexOf(e.type)})).reduce((function(r,i){var s,l=u(i,e);if(l)s=l.then((function(e){t.push({tag:i.value,value:e,lIndex:i.lIndex})}));else{if("placeholder"!==i.type)return;s=a.getValueAsync(i.value,{part:i}).then((function(r){return null==r&&(r=e.nullGetter(i)),t.push({tag:i.value,value:r,lIndex:i.lIndex}),r}))}return r.push(s["catch"]((function(e){e instanceof Array?o.push.apply(o,n(e)):o.push(e)}))),r}),[])).then((function(){return{errors:o,resolved:t}}))}e.exports=c},"347e":function(e,t,r){"use strict";var n=r("ea35");function i(e){if(e){this.data=e,this.length=this.data.length,this.index=0,this.zero=0;for(var t=0;t<this.data.length;t++)e[t]&=e[t]}}i.prototype=new n,i.prototype.byteAt=function(e){return this.data[this.zero+e]},i.prototype.lastIndexOfSignature=function(e){for(var t=e.charCodeAt(0),r=e.charCodeAt(1),n=e.charCodeAt(2),i=e.charCodeAt(3),a=this.length-4;a>=0;--a)if(this.data[a]===t&&this.data[a+1]===r&&this.data[a+2]===n&&this.data[a+3]===i)return a-this.zero;return-1},i.prototype.readData=function(e){if(this.checkOffset(e),0===e)return[];var t=this.data.slice(this.zero+this.index,this.zero+this.index+e);return this.index+=e,t},e.exports=i},"3a82":function(e,t,r){"use strict";function n(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function i(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?n(Object(r),!0).forEach((function(t){a(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):n(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}function a(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function o(e,t){return u(e)||l(e,t)||h(e,t)||s()}function s(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}function l(e,t){var r=null==e?null:"undefined"!==typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=r){var n,i,a=[],o=!0,s=!1;try{for(r=r.call(e);!(o=(n=r.next()).done);o=!0)if(a.push(n.value),t&&a.length===t)break}catch(l){s=!0,i=l}finally{try{o||null==r["return"]||r["return"]()}finally{if(s)throw i}}return a}}function u(e){if(Array.isArray(e))return e}function c(e){return p(e)||d(e)||h(e)||f()}function f(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}function h(e,t){if(e){if("string"===typeof e)return m(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);return"Object"===r&&e.constructor&&(r=e.constructor.name),"Map"===r||"Set"===r?Array.from(e):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?m(e,t):void 0}}function d(e){if("undefined"!==typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}function p(e){if(Array.isArray(e))return m(e)}function m(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n}var g=r("5558"),v=g.wordToUtf8,y=r("b765"),b=y.match,w=y.getValue,_=y.getValues;function x(e,t){for(var r=[],n=0,i=e.length;n<i;n++){var a=e[n];if(a.matchers){var o=a.matchers(t);if(!(o instanceof Array))throw new Error("module matcher returns a non array");r.push.apply(r,c(o))}}return r}function E(e,t,r){for(var n=[],a=0,s=e.length;a<s;a++){var l=e[a],u=o(l,2),c=u[0],f=u[1],h=l[2]||{};if(r.match(c,t)){var d=r.getValues(c,t);if("function"===typeof h&&(h=h(d)),!h.value){var p=o(d,2);h.value=p[1]}n.push(i({type:"placeholder",prefix:c,module:f,onMatch:h.onMatch,priority:h.priority},h))}}return n}function T(e,t){var r,n=t.modules,i=t.startOffset,a=t.lIndex;t.offset=i,t.match=b,t.getValue=w,t.getValues=_;var o=x(n,t),s=E(o,e,t);if(s.length>0){var l=null;return s.forEach((function(e){e.priority=e.priority||-e.value.length,(!l||e.priority>l.priority)&&(l=e)})),l.offset=i,delete l.priority,l.endLindex=a,l.lIndex=a,l.raw=e,l.onMatch&&l.onMatch(l),delete l.onMatch,delete l.prefix,l}for(var u=0,c=n.length;u<c;u++){var f=n[u];if(r=f.parse(e,t),r)return r.offset=i,r.endLindex=a,r.lIndex=a,r.raw=e,r}return{type:"placeholder",value:e,offset:i,endLindex:a,lIndex:a}}var k={preparse:function(e,t,r){function n(e,r){return t.forEach((function(t){t.preparse(e,r)}))}return{preparsed:n(e,r)}},parse:function(e,t,r){var n,a=!1,o="",s=[];return e.reduce((function(e,l){return"delimiter"===l.type?(a="start"===l.position,"end"===l.position&&(r.parse=function(e){return T(e,i(i(i({},r),l),{},{startOffset:n,modules:t}))},e.push(r.parse(v(o))),Array.prototype.push.apply(e,s),s=[]),"start"===l.position&&(s=[],n=l.offset),o="",e):a?"content"!==l.type||"insidetag"!==l.position?(s.push(l),e):(o+=l.value,e):(e.push(l),e)}),[])},postparse:function(e,t,r){function n(e,r){return t.map((function(t){return t.getTraits(e,r)}))}var a=[];function o(e,r){return t.reduce((function(e,t){var s=t.postparse(e,i(i({},r),{},{postparse:function(e,t){return o(e,i(i({},r),t))},getTraits:n}));return null==s?e:s.errors?(Array.prototype.push.apply(a,s.errors),s.postparsed):s}),e)}return{postparsed:o(e,r),errors:a}}};e.exports=k},"3be1":function(e,t,r){"use strict";var n="expandPair",i=r("f418"),a=r("5558"),o=a.getLeft,s=a.getRight,l=r("50a1"),u=r("3c86"),c=u.getExpandToDefault,f=r("c838"),h=f.getUnmatchedLoopException,d=f.getClosingTagNotMatchOpeningTag,p=f.getUnbalancedLoopException;function m(e){switch(e.location){case"start":return 1;case"end":return-1}}function g(e,t){return null!=e&&null!=t&&("start"===e.part.location&&"end"===t.part.location&&e.part.value===t.part.value||""===t.part.value)}function v(e){var t=0,r=[];while(t<e.length){var n=e[t].part;if("end"===n.location){if(0===t)return e.splice(0,1),r.push(h(n)),{traits:e,errors:r};var i=t,a=t-1,o=1;if(g(e[a],e[i]))return e.splice(i,1),e.splice(a,1),{errors:r,traits:e};while(o<50){var s=e[a-o],l=e[i+o];if(g(s,e[i]))return e.splice(i,1),e.splice(a-o,1),{errors:r,traits:e};if(g(e[a],l))return e.splice(i+o,1),e.splice(a,1),{errors:r,traits:e};o++}return r.push(d({tags:[e[a].part,e[i].part]})),e.splice(i,1),e.splice(a,1),{traits:e,errors:r}}t++}return e.forEach((function(e){var t=e.part;r.push(h(t))})),{traits:[],errors:r}}function y(e){for(var t={},r=[],n=[],i=0,a=[],o=0;o<e.length;o++){var s=e[o],l=s.part,u=m(s.part);i+=u;var c=void 0;c=1===u?i-1:i,a.push({level:c,part:l})}while(a.length>0){var f=v(a);r=r.concat(f.errors),a=f.traits}if(r.length>0)return{pairs:n,errors:r};i=0;for(var h=0;h<e.length;h++){var d=e[h],p=d.part,g=m(p);if(i+=g,1===g)t[i]=d;else{var y=t[i+1];0===i&&(n=n.concat([[y,d]]))}i=i>=0?i:0}return{pairs:n,errors:r}}var b={name:"ExpandPairTrait",optionsTransformer:function(e,t){return this.expandTags=t.fileTypeConfig.expandTags.concat(t.options.paragraphLoop?t.fileTypeConfig.onParagraphLoop:[]),e},postparse:function(e,t){var r=this,a=t.getTraits,l=t.postparse,u=a(n,e);u=u.map((function(e){return e||[]})),u=i(u);var f=y(u),h=f.pairs,d=f.errors,m=0,g=null,v=h.map((function(t){var n,i,a=t[0].part.expandTo;if("auto"===a){var l=c(e,t,r.expandTags);l.error&&d.push(l.error),a=l.value}if(!a){var u=t[0].offset,f=t[1].offset;return u<m&&d.push(p(t,g)),g=t,m=f,[u,f]}try{n=o(e,a,t[0].offset)}catch(h){d.push(h)}try{i=s(e,a,t[1].offset)}catch(h){d.push(h)}return n<m&&d.push(p(t,g)),m=i,g=t,[n,i]}));if(d.length>0)return{postparsed:e,errors:d};var b,w=0,_=e.reduce((function(t,r,n){var i=w<h.length&&v[w][0]<=n&&n<=v[w][1],a=h[w],o=v[w];if(!i)return t.push(r),t;if(o[0]===n&&(b=[]),a[0].offset!==n&&a[1].offset!==n&&b.push(r),o[1]===n){var s=e[a[0].offset];s.subparsed=l(b,{basePart:s}),delete s.location,delete s.expandTo,t.push(s),w++}return t}),[]);return{postparsed:_,errors:d}}};e.exports=function(){return l(b)}},"3c86":function(e,t,r){"use strict";function n(e){return o(e)||a(e)||u(e)||i()}function i(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}function a(e){if("undefined"!==typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}function o(e){if(Array.isArray(e))return c(e)}function s(e,t){return h(e)||f(e,t)||u(e,t)||l()}function l(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}function u(e,t){if(e){if("string"===typeof e)return c(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);return"Object"===r&&e.constructor&&(r=e.constructor.name),"Map"===r||"Set"===r?Array.from(e):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?c(e,t):void 0}}function c(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n}function f(e,t){var r=null==e?null:"undefined"!==typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=r){var n,i,a=[],o=!0,s=!1;try{for(r=r.call(e);!(o=(n=r.next()).done);o=!0)if(a.push(n.value),t&&a.length===t)break}catch(l){s=!0,i=l}finally{try{o||null==r["return"]||r["return"]()}finally{if(s)throw i}}return a}}function h(e){if(Array.isArray(e))return e}function d(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function p(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?d(Object(r),!0).forEach((function(t){m(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):d(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}function m(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function g(e){return g="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},g(e)}var v=r("5558"),y=v.getRightOrNull,b=v.getRight,w=v.getLeft,_=v.getLeftOrNull,x=v.chunkBy,E=v.isTagStart,T=v.isTagEnd,k=v.isContent,A=v.last,S=v.first,O=r("c838"),C=O.XTTemplateError,I=O.throwExpandNotFound,N=O.getLoopPositionProducesInvalidXMLError;function P(e,t){if(0===e.length)return!1;var r=A(e).substr(1);return 0===r.indexOf(t)}function R(e){for(var t=e.filter((function(e){var t=e.type;return"tag"===t})),r=[],n=0;n<t.length;n++){var i=t[n],a=i.position,o=i.value,s=i.tag;"end"===a?P(r,s)?r.pop():r.push(o):"start"===a&&r.push(o)}return r}function D(e,t){for(var r=0;r<t.length;r++){var n=t[r];if(0===n.indexOf("<".concat(e)))return!0}return!1}function z(e,t,r){var n=e.slice(t[0].offset,t[1].offset),i=R(n),a=i.filter((function(e){return"/"===e[1]})).length,o=i.filter((function(e){return"/"!==e[1]&&"/"!==e[e.length-2]})).length;if(a!==o)return{error:N({tag:S(t).part.value,offset:[S(t).part.offset,A(t).part.offset]})};for(var s=function(n,a){var o=r[n],s=o.contains,l=o.expand,u=o.onlyTextInTag;if(D(s,i)){if(u){var c=_(e,s,t[0].offset),f=y(e,s,t[1].offset);if(null===c||null===f)return"continue";var h=x(e.slice(c,f),(function(e){return E(s,e)?"start":T(s,e)?"end":null})),d=S(h),p=A(h),m=d.filter(k),g=p.filter(k);if(1!==m.length||1!==g.length)return"continue"}return{v:{value:l}}}},l=0,u=r.length;l<u;l++){var c=s(l,u);if("continue"!==c&&"object"===g(c))return c.v}return{}}function M(e,t,r,n){var i=e.expandTo||n.expandTo;if(i){var a,o;try{o=w(r,i,t),a=b(r,i,t)}catch(s){throw s instanceof C&&I(p({part:e,rootError:s,postparsed:r,expandTo:i,index:t},n.error)),s}return[o,a]}}function L(e,t,r,n){var i=s(e,2),a=i[0],o=i[1],l=r.indexOf(t),u=r.slice(a,l),c=r.slice(l+1,o+1),f=n.getInner({postparse:n.postparse,index:l,part:t,leftParts:u,rightParts:c,left:a,right:o,postparsed:r});return f.length||(f.expanded=[u,c],f=[f]),{left:a,right:o,inner:f}}function U(e,t){var r=[];e.errors&&(r=e.errors,e=e.postparsed);for(var i=[],a=0,o=e.length;a<o;a++){var l=e[a];if("placeholder"===l.type&&l.module===t.moduleName)try{var u=M(l,a,e,t);if(!u)continue;var c=s(u,2),f=c[0],h=c[1];i.push({left:f,right:h,part:l,i:a,leftPart:e[f],rightPart:e[h]})}catch(m){if(!(m instanceof C))throw m;r.push(m)}}i.sort((function(e,t){return e.left===t.left?t.part.lIndex<e.part.lIndex?1:-1:t.left<e.left?1:-1}));var d=-1,p=0;return i.forEach((function(a,o){var s;if(d=Math.max(d,o>0?i[o-1].right:0),!(a.left<d)){var l;try{l=L([a.left+p,a.right+p],a.part,e,t)}catch(m){if(!(m instanceof C))throw m;r.push(m)}l&&(p+=l.inner.length-(l.right+1-l.left),(s=e).splice.apply(s,[l.left,l.right+1-l.left].concat(n(l.inner))))}})),{postparsed:e,errors:r}}e.exports={expandToOne:U,getExpandToDefault:z}},4072:function(e,t,r){"use strict";var n=r("5558"),i=n.pregMatchAll;e.exports=function(e,t){var r={content:e},n=t.join("|"),a=new RegExp("(?:(<(?:".concat(n,")[^>]*>)([^<>]*)</(?:").concat(n,")>)|(<(?:").concat(n,")[^>]*/>)"),"g");return r.matches=i(a,r.content),r}},"50a1":function(e,t,r){"use strict";var n=r("c838"),i=n.XTInternalError;function a(){}function o(e){return e}e.exports=function(e){var t={set:a,matchers:function(){return[]},parse:a,render:a,getTraits:a,getFileType:a,nullGetter:a,optionsTransformer:o,postrender:o,errorsTransformer:o,getRenderedMap:o,preparse:o,postparse:o,on:a,resolve:a};if(Object.keys(t).every((function(t){return!e[t]}))){var r=new i("This module cannot be wrapped, because it doesn't define any of the necessary functions");throw r.properties={id:"module_cannot_be_wrapped",explanation:"This module cannot be wrapped, because it doesn't define any of the necessary functions"},r}return Object.keys(t).forEach((function(r){e[r]=e[r]||t[r]})),e}},5114:function(e,t,r){"use strict";var n=r("c113"),i=r("2522"),a=r("037e"),o=r("3be1"),s=r("a6b4");function l(){return{getTemplatedFiles:function(){return[]},textPath:function(e){return e.targets[0]},tagsXmlTextArray:["Company","HyperlinkBase","Manager","cp:category","cp:keywords","dc:creator","dc:description","dc:subject","dc:title","w:t","m:t","vt:lpstr","vt:lpwstr"],tagsXmlLexedArray:["w:proofState","w:tc","w:tr","w:table","w:p","w:r","w:br","w:rPr","w:pPr","w:spacing","w:sdtContent","w:drawing","w:sectPr","w:type","w:headerReference","w:footerReference"],expandTags:[{contains:"w:tc",expand:"w:tr"}],onParagraphLoop:[{contains:"w:p",expand:"w:p",onlyTextInTag:!0}],tagRawXml:"w:p",baseModules:[n,i,o,a,s],tagShouldContain:[{tag:"w:tc",shouldContain:["w:p"],value:"<w:p></w:p>"},{tag:"w:sdtContent",shouldContain:["w:p","w:r"],value:"<w:p></w:p>"}]}}function u(){return{getTemplatedFiles:function(){return[]},textPath:function(e){return e.targets[0]},tagsXmlTextArray:["Company","HyperlinkBase","Manager","cp:category","cp:keywords","dc:creator","dc:description","dc:subject","dc:title","a:t","m:t","vt:lpstr","vt:lpwstr"],tagsXmlLexedArray:["p:sp","a:tc","a:tr","a:table","a:p","a:r","a:rPr","p:txBody","a:txBody","a:off","a:ext","p:graphicFrame","p:xfrm","a16:rowId"],expandTags:[{contains:"a:tc",expand:"a:tr"}],onParagraphLoop:[{contains:"a:p",expand:"a:p",onlyTextInTag:!0}],tagRawXml:"p:sp",baseModules:[n,o,a,s],tagShouldContain:[{tag:"p:txBody",shouldContain:["a:p"],value:"<a:p></a:p>"},{tag:"a:txBody",shouldContain:["a:p"],value:"<a:p></a:p>"}]}}e.exports={docx:l,pptx:u}},"547c":function(e,t,r){"use strict";var n=r("309c");function i(e,t){if(!(this instanceof i))return new i(e,t);this.files={},this.comment=null,this.root="",e&&this.load(e,t),this.clone=function(){var e=new i;for(var t in this)"function"!==typeof this[t]&&(e[t]=this[t]);return e}}i.prototype=r("73e2"),i.prototype.load=r("07ec"),i.support=r("fdf0"),i.defaults=r("189c"),i.utils=r("be27"),i.base64={encode:function(e){return n.encode(e)},decode:function(e){return n.decode(e)}},i.compressions=r("e6bb"),e.exports=i},5558:function(e,t,r){"use strict";function n(e,t){return l(e)||s(e,t)||a(e,t)||i()}function i(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}function a(e,t){if(e){if("string"===typeof e)return o(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);return"Object"===r&&e.constructor&&(r=e.constructor.name),"Map"===r||"Set"===r?Array.from(e):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?o(e,t):void 0}}function o(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n}function s(e,t){var r=null==e?null:"undefined"!==typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=r){var n,i,a=[],o=!0,s=!1;try{for(r=r.call(e);!(o=(n=r.next()).done);o=!0)if(a.push(n.value),t&&a.length===t)break}catch(l){s=!0,i=l}finally{try{o||null==r["return"]||r["return"]()}finally{if(s)throw i}}return a}}function l(e){if(Array.isArray(e))return e}var u=r("210b"),c=u.DOMParser,f=u.XMLSerializer,h=r("c838"),d=h.throwXmlTagNotFound,p=r("b227"),m=p.last,g=p.first;function v(e){return{get:function(t){return"."===e?t:t[e]}}}var y={};function b(e,t,r){var n;if(y[t]?n=y[t]:(n=new RegExp("(<.* ".concat(t,'=")([^"]*)(".*)$')),y[t]=n),n.test(e))return e.replace(n,"$1".concat(r,"$3"));var i=e.lastIndexOf("/>");return-1===i&&(i=e.lastIndexOf(">")),e.substr(0,i)+" ".concat(t,'="').concat(r,'"')+e.substr(i)}function w(e,t){var r=e.indexOf(" ".concat(t,'="'));if(-1===r)return null;var n=e.substr(r).search(/["']/)+r,i=e.substr(n+1).search(/["']/)+n;return e.substr(n+1,i-n)}function _(e,t){return-1!==e.indexOf(t,e.length-t.length)}function x(e,t){return e.substring(0,t.length)===t}function E(e){for(var t={},r=[],n=0,i=e.length;n<i;++n)t[e[n]]||(t[e[n]]=!0,r.push(e[n]));return r}function T(e,t){return e.reduce((function(e,r){var n=m(e),i=t(r);return"start"===i?e.push([r]):"end"===i?(n.push(r),e.push([])):n.push(r),e}),[[]]).filter((function(e){return e.length>0}))}var k={errorLogging:"json",paragraphLoop:!1,nullGetter:function(e){return e.module?"":"undefined"},xmlFileNames:["[Content_Types].xml"],parser:v,linebreaks:!1,fileTypeConfig:null,delimiters:{start:"{",end:"}"}};function A(){for(var e,t,r={},n=0;n<arguments.length;n+=1){e=arguments[n],t=Object.keys(e);for(var i=0;i<t.length;i+=1)r[t[i]]=e[t[i]]}return r}function S(e){var t=new f;return t.serializeToString(e).replace(/xmlns(:[a-z0-9]+)?="" ?/g,"")}function O(e){return 65279===e.charCodeAt(0)&&(e=e.substr(1)),(new c).parseFromString(e,"text/xml")}var C=[["&","&amp;"],["<","&lt;"],[">","&gt;"],['"',"&quot;"],["'","&apos;"]],I=C.map((function(e){var t=n(e,2),r=t[0],i=t[1];return{rstart:new RegExp(i,"g"),rend:new RegExp(r,"g"),start:i,end:r}}));function N(e){for(var t,r=I.length-1;r>=0;r--)t=I[r],e=e.replace(t.rstart,t.end);return e}function P(e){var t;e=e.toString();for(var r=0,n=I.length;r<n;r++)t=I[r],e=e.replace(t.rend,t.start);return e}function R(e){for(var t=[],r=0;r<e.length;r++)for(var n=e[r],i=0,a=n.length;i<a;i++)t.push(n[i]);return t}var D=new RegExp(String.fromCharCode(160),"g");function z(e){return e.replace(D," ")}function M(e,t){var r,n=[];while(null!=(r=e.exec(t)))n.push({array:r,offset:r.index});return n}function L(e,t){return e==="</"+t+">"}function U(e,t){return 0===e.indexOf("<"+t)&&-1!==[">"," ","/"].indexOf(e[t.length+1])}function j(e,t,r){var n=F(e,t,r);if(null!==n)return n;d({position:"right",element:t,parsed:e,index:r})}function F(e,t,r){"string"===typeof t&&(t=[t]);for(var n=1,i=r,a=e.length;i<a;i++)for(var o=e[i],s=0,l=t.length;s<l;s++){var u=t[s];if(L(o.value,u)&&n--,U(o.value,u)&&n++,0===n)return i}return null}function B(e,t,r){var n=Z(e,t,r);if(null!==n)return n;d({position:"left",element:t,parsed:e,index:r})}function Z(e,t,r){"string"===typeof t&&(t=[t]);for(var n=1,i=r;i>=0;i--)for(var a=e[i],o=0,s=t.length;o<s;o++){var l=t[o];if(U(a.value,l)&&n--,L(a.value,l)&&n++,0===n)return i}return null}function X(e,t){var r=t.type,n=t.tag,i=t.position;return"tag"===r&&n===e&&("start"===i||"selfclosing"===i)}function V(e,t){var r=t.type,n=t.tag,i=t.position;return"tag"===r&&n===e&&"end"===i}function H(e){return X("w:p",e)||X("a:p",e)}function Y(e){return V("w:p",e)||V("a:p",e)}function q(e){var t=e.type,r=e.position,n=e.text;return"tag"===t&&"start"===r&&n}function G(e){var t=e.type,r=e.position,n=e.text;return"tag"===t&&"end"===r&&n}function $(e){var t=e.type,r=e.position;return"placeholder"===t||"content"===t&&"insidetag"===r}function W(e,t){var r=e.module,n=e.type;return t instanceof Array||(t=[t]),"placeholder"===n&&-1!==t.indexOf(r)}var K=/[\x00-\x08\x0B\x0C\x0E-\x1F]/;function J(e){return K.test(e)}function Q(e){return Object.keys(e).reduce((function(t,r){var n=e[r];return t[n]=t[n]||[],t[n].push(r),t}),{})}e.exports={endsWith:_,startsWith:x,isContent:$,isParagraphStart:H,isParagraphEnd:Y,isTagStart:X,isTagEnd:V,isTextStart:q,isTextEnd:G,isStarting:U,isEnding:L,isModule:W,uniq:E,chunkBy:T,last:m,first:g,mergeObjects:A,xml2str:S,str2xml:O,getRightOrNull:F,getRight:j,getLeftOrNull:Z,getLeft:B,pregMatchAll:M,convertSpaces:z,charMapRegexes:I,hasCorruptCharacters:J,defaults:k,wordToUtf8:N,utf8ToWord:P,concatArrays:R,invertMap:Q,charMap:C,getSingleAttribute:w,setSingleAttribute:b}},5921:function(e,t,r){"use strict";var n=r("e85b"),i=r("eac6"),a=r("c48f"),o=r("347e"),s=r("0e15b"),l=r("7a9f"),u=r("608e"),c=r("fdf0");function f(e,t){this.files=[],this.loadOptions=t,e&&this.load(e)}f.prototype={checkSignature:function(e){var t=this.reader.readString(4);if(t!==e)throw new Error("Corrupted zip or bug : unexpected signature ("+s.pretty(t)+", expected "+s.pretty(e)+")")},isSignature:function(e,t){var r=this.reader.index;this.reader.setIndex(e);var n=this.reader.readString(4),i=n===t;return this.reader.setIndex(r),i},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 e=this.reader.readData(this.zipCommentLength),t=c.uint8array?"uint8array":"array",r=s.transformTo(t,e);this.zipComment=this.loadOptions.decodeFileName(r)},readBlockZip64EndOfCentral:function(){this.zip64EndOfCentralSize=this.reader.readInt(8),this.versionMadeBy=this.reader.readString(2),this.versionNeeded=this.reader.readInt(2),this.diskNumber=this.reader.readInt(4),this.diskWithCentralDirStart=this.reader.readInt(4),this.centralDirRecordsOnThisDisk=this.reader.readInt(8),this.centralDirRecords=this.reader.readInt(8),this.centralDirSize=this.reader.readInt(8),this.centralDirOffset=this.reader.readInt(8),this.zip64ExtensibleData={};var e,t,r,n=this.zip64EndOfCentralSize-44,i=0;while(i<n)e=this.reader.readInt(2),t=this.reader.readInt(4),r=this.reader.readString(t),this.zip64ExtensibleData[e]={id:e,length:t,value:r}},readBlockZip64EndOfCentralLocator:function(){if(this.diskWithZip64CentralDirStart=this.reader.readInt(4),this.relativeOffsetEndOfZip64CentralDir=this.reader.readInt(8),this.disksCount=this.reader.readInt(4),this.disksCount>1)throw new Error("Multi-volumes zip are not supported")},readLocalFiles:function(){var e,t;for(e=0;e<this.files.length;e++)t=this.files[e],this.reader.setIndex(t.localHeaderOffset),this.checkSignature(l.LOCAL_FILE_HEADER),t.readLocalPart(this.reader),t.handleUTF8(),t.processAttributes()},readCentralDir:function(){var e;this.reader.setIndex(this.centralDirOffset);while(this.reader.readString(4)===l.CENTRAL_FILE_HEADER)e=new u({zip64:this.zip64},this.loadOptions),e.readCentralPart(this.reader),this.files.push(e);if(this.centralDirRecords!==this.files.length&&0!==this.centralDirRecords&&0===this.files.length)throw new Error("Corrupted zip or bug: expected "+this.centralDirRecords+" records in central dir, got "+this.files.length)},readEndOfCentral:function(){var e=this.reader.lastIndexOfSignature(l.CENTRAL_DIRECTORY_END);if(e<0){var t=!this.isSignature(0,l.LOCAL_FILE_HEADER);throw t?new Error("Can't find end of central directory : is this a zip file ?"):new Error("Corrupted zip : can't find end of central directory")}this.reader.setIndex(e);var r=e;if(this.checkSignature(l.CENTRAL_DIRECTORY_END),this.readBlockEndOfCentral(),this.diskNumber===s.MAX_VALUE_16BITS||this.diskWithCentralDirStart===s.MAX_VALUE_16BITS||this.centralDirRecordsOnThisDisk===s.MAX_VALUE_16BITS||this.centralDirRecords===s.MAX_VALUE_16BITS||this.centralDirSize===s.MAX_VALUE_32BITS||this.centralDirOffset===s.MAX_VALUE_32BITS){if(this.zip64=!0,e=this.reader.lastIndexOfSignature(l.ZIP64_CENTRAL_DIRECTORY_LOCATOR),e<0)throw new Error("Corrupted zip : can't find the ZIP64 end of central directory locator");if(this.reader.setIndex(e),this.checkSignature(l.ZIP64_CENTRAL_DIRECTORY_LOCATOR),this.readBlockZip64EndOfCentralLocator(),!this.isSignature(this.relativeOffsetEndOfZip64CentralDir,l.ZIP64_CENTRAL_DIRECTORY_END)&&(this.relativeOffsetEndOfZip64CentralDir=this.reader.lastIndexOfSignature(l.ZIP64_CENTRAL_DIRECTORY_END),this.relativeOffsetEndOfZip64CentralDir<0))throw new Error("Corrupted zip : can't find the ZIP64 end of central directory");this.reader.setIndex(this.relativeOffsetEndOfZip64CentralDir),this.checkSignature(l.ZIP64_CENTRAL_DIRECTORY_END),this.readBlockZip64EndOfCentral()}var n=this.centralDirOffset+this.centralDirSize;this.zip64&&(n+=20,n+=12+this.zip64EndOfCentralSize);var i=r-n;if(i>0)this.isSignature(r,l.CENTRAL_FILE_HEADER)||(this.reader.zero=i);else if(i<0)throw new Error("Corrupted zip: missing "+Math.abs(i)+" bytes.")},prepareReader:function(e){var t=s.getTypeOf(e);if(s.checkSupport(t),"string"!==t||c.uint8array)if("nodebuffer"===t)this.reader=new i(e);else if(c.uint8array)this.reader=new a(s.transformTo("uint8array",e));else{if(!c.array)throw new Error("Unexpected error: unsupported type '"+t+"'");this.reader=new o(s.transformTo("array",e))}else this.reader=new n(e,this.loadOptions.optimizedBinaryString)},load:function(e){this.prepareReader(e),this.readEndOfCentral(),this.readCentralDir(),this.readLocalFiles()}},e.exports=f},"608e":function(e,t,r){"use strict";var n=r("e85b"),i=r("0e15b"),a=r("8bde"),o=r("73e2"),s=r("fdf0"),l=0,u=3;function c(e,t){this.options=e,this.loadOptions=t}c.prototype={isEncrypted:function(){return 1===(1&this.bitFlag)},useUTF8:function(){return 2048===(2048&this.bitFlag)},prepareCompressedContent:function(e,t,r){return function(){var n=e.index;e.setIndex(t);var i=e.readData(r);return e.setIndex(n),i}},prepareContent:function(e,t,r,n,a){return function(){var e=i.transformTo(n.uncompressInputType,this.getCompressedContent()),t=n.uncompress(e);if(t.length!==a)throw new Error("Bug : uncompressed data size mismatch");return t}},readLocalPart:function(e){e.skip(22),this.fileNameLength=e.readInt(2);var t=e.readInt(2);if(this.fileName=e.readData(this.fileNameLength),e.skip(t),-1===this.compressedSize||-1===this.uncompressedSize)throw new Error("Bug or corrupted zip : didn't get enough informations from the central directory (compressedSize == -1 || uncompressedSize == -1)");var r=i.findCompression(this.compressionMethod);if(null===r)throw new Error("Corrupted zip : compression "+i.pretty(this.compressionMethod)+" unknown (inner file : "+i.transformTo("string",this.fileName)+")");if(this.decompressed=new a,this.decompressed.compressedSize=this.compressedSize,this.decompressed.uncompressedSize=this.uncompressedSize,this.decompressed.crc32=this.crc32,this.decompressed.compressionMethod=this.compressionMethod,this.decompressed.getCompressedContent=this.prepareCompressedContent(e,e.index,this.compressedSize,r),this.decompressed.getContent=this.prepareContent(e,e.index,this.compressedSize,r,this.uncompressedSize),this.loadOptions.checkCRC32&&(this.decompressed=i.transformTo("string",this.decompressed.getContent()),o.crc32(this.decompressed)!==this.crc32))throw new Error("Corrupted zip : CRC32 mismatch")},readCentralPart:function(e){if(this.versionMadeBy=e.readInt(2),this.versionNeeded=e.readInt(2),this.bitFlag=e.readInt(2),this.compressionMethod=e.readString(2),this.date=e.readDate(),this.crc32=e.readInt(4),this.compressedSize=e.readInt(4),this.uncompressedSize=e.readInt(4),this.fileNameLength=e.readInt(2),this.extraFieldsLength=e.readInt(2),this.fileCommentLength=e.readInt(2),this.diskNumberStart=e.readInt(2),this.internalFileAttributes=e.readInt(2),this.externalFileAttributes=e.readInt(4),this.localHeaderOffset=e.readInt(4),this.isEncrypted())throw new Error("Encrypted zip are not supported");this.fileName=e.readData(this.fileNameLength),this.readExtraFields(e),this.parseZIP64ExtraField(e),this.fileComment=e.readData(this.fileCommentLength)},processAttributes:function(){this.unixPermissions=null,this.dosPermissions=null;var e=this.versionMadeBy>>8;this.dir=!!(16&this.externalFileAttributes),e===l&&(this.dosPermissions=63&this.externalFileAttributes),e===u&&(this.unixPermissions=this.externalFileAttributes>>16&65535),this.dir||"/"!==this.fileNameStr.slice(-1)||(this.dir=!0)},parseZIP64ExtraField:function(){if(this.extraFields[1]){var e=new n(this.extraFields[1].value);this.uncompressedSize===i.MAX_VALUE_32BITS&&(this.uncompressedSize=e.readInt(8)),this.compressedSize===i.MAX_VALUE_32BITS&&(this.compressedSize=e.readInt(8)),this.localHeaderOffset===i.MAX_VALUE_32BITS&&(this.localHeaderOffset=e.readInt(8)),this.diskNumberStart===i.MAX_VALUE_32BITS&&(this.diskNumberStart=e.readInt(4))}},readExtraFields:function(e){var t,r,n,i=e.index;this.extraFields=this.extraFields||{};while(e.index<i+this.extraFieldsLength)t=e.readInt(2),r=e.readInt(2),n=e.readString(r),this.extraFields[t]={id:t,length:r,value:n}},handleUTF8:function(){var e=s.uint8array?"uint8array":"array";if(this.useUTF8())this.fileNameStr=o.utf8decode(this.fileName),this.fileCommentStr=o.utf8decode(this.fileComment);else{var t=this.findExtraFieldUnicodePath();if(null!==t)this.fileNameStr=t;else{var r=i.transformTo(e,this.fileName);this.fileNameStr=this.loadOptions.decodeFileName(r)}var n=this.findExtraFieldUnicodeComment();if(null!==n)this.fileCommentStr=n;else{var a=i.transformTo(e,this.fileComment);this.fileCommentStr=this.loadOptions.decodeFileName(a)}}},findExtraFieldUnicodePath:function(){var e=this.extraFields[28789];if(e){var t=new n(e.value);return 1!==t.readInt(1)||o.crc32(this.fileName)!==t.readInt(4)?null:o.utf8decode(t.readString(e.length-5))}return null},findExtraFieldUnicodeComment:function(){var e=this.extraFields[25461];if(e){var t=new n(e.value);return 1!==t.readInt(1)||o.crc32(this.fileComment)!==t.readInt(4)?null:o.utf8decode(t.readString(e.length-5))}return null}},e.exports=c},"613e":function(e,t,r){"use strict";var n=r("0e15b");function i(){this.data=[]}i.prototype={append:function(e){e=n.transformTo("string",e),this.data.push(e)},finalize:function(){return this.data.join("")}},e.exports=i},"661b":function(e,t,r){"use strict";var n="undefined"!==typeof Uint8Array&&"undefined"!==typeof Uint16Array&&"undefined"!==typeof Uint32Array,i=r("191a");t.uncompressInputType=n?"uint8array":"array",t.compressInputType=n?"uint8array":"array",t.magic="\b\0",t.compress=function(e,t){return i.deflateRaw(e,{level:t.level||-1})},t.uncompress=function(e){return i.inflateRaw(e)}},"73e2":function(e,t,r){"use strict";var n=r("fdf0"),i=r("0e15b"),a=r("ed61"),o=r("7a9f"),s=r("189c"),l=r("309c"),u=r("e6bb"),c=r("8bde"),f=r("dd84"),h=r("bedd"),d=r("613e"),p=r("0de4");function m(e){if(e._data instanceof c&&(e._data=e._data.getContent(),e.options.binary=!0,e.options.base64=!1,"uint8array"===i.getTypeOf(e._data))){var t=e._data;e._data=new Uint8Array(t.length),0!==t.length&&e._data.set(t,0)}return e._data}function g(e){var t=m(e),r=i.getTypeOf(t);return"string"===r?!e.options.binary&&n.nodebuffer?f(t,"utf-8"):e.asBinary():t}var v={load:function(){throw new Error("Load method is not defined. Is the file pizzip-load.js included ?")},filter:function(e){var t,r,n,a,o=[];for(t in this.files)this.files.hasOwnProperty(t)&&(n=this.files[t],a=new b(n.name,n._data,i.extend(n.options)),r=t.slice(this.root.length,t.length),t.slice(0,this.root.length)===this.root&&e(r,a)&&o.push(a));return o},file:function(e,t,r){if(1===arguments.length){if(i.isRegExp(e)){var n=e;return this.filter((function(e,t){return!t.dir&&n.test(e)}))}return this.filter((function(t,r){return!r.dir&&t===e}))[0]||null}return e=this.root+e,x.call(this,e,t,r),this},folder:function(e){if(!e)return this;if(i.isRegExp(e))return this.filter((function(t,r){return r.dir&&e.test(t)}));var t=this.root+e,r=k.call(this,t),n=this.clone();return n.root=r.name,n},remove:function(e){e=this.root+e;var t=this.files[e];if(t||("/"!==e.slice(-1)&&(e+="/"),t=this.files[e]),t&&!t.dir)delete this.files[e];else for(var r=this.filter((function(t,r){return r.name.slice(0,e.length)===e})),n=0;n<r.length;n++)delete this.files[r[n].name];return this},generate:function(e){e=i.extend(e||{},{base64:!0,compression:"STORE",compressionOptions:null,type:"base64",platform:"DOS",comment:null,mimeType:"application/zip",encodeFileName:h.utf8encode}),i.checkSupport(e.type),"darwin"!==e.platform&&"freebsd"!==e.platform&&"linux"!==e.platform&&"sunos"!==e.platform||(e.platform="UNIX"),"win32"===e.platform&&(e.platform="DOS");var t,r,n=[],a=i.transformTo("string",e.encodeFileName(e.comment||this.comment||"")),s=0,c=0;for(var f in this.files)if(this.files.hasOwnProperty(f)){var m=this.files[f],g=m.options.compression||e.compression.toUpperCase(),v=u[g];if(!v)throw new Error(g+" is not a valid compression method !");var y=m.options.compressionOptions||e.compressionOptions||{},b=A.call(this,m,v,y),_=C.call(this,f,m,b,s,e.platform,e.encodeFileName);s+=_.fileRecord.length+b.compressedSize,c+=_.dirRecord.length,n.push(_)}var x="";x=o.CENTRAL_DIRECTORY_END+"\0\0\0\0"+w(n.length,2)+w(n.length,2)+w(c,4)+w(s,4)+w(a.length,2)+a;var E=e.type.toLowerCase();for(t="uint8array"===E||"arraybuffer"===E||"blob"===E||"nodebuffer"===E?new p(s+c+x.length):new d(s+c+x.length),r=0;r<n.length;r++)t.append(n[r].fileRecord),t.append(n[r].compressedObject.compressedContent);for(r=0;r<n.length;r++)t.append(n[r].dirRecord);t.append(x);var T=t.finalize();switch(e.type.toLowerCase()){case"uint8array":case"arraybuffer":case"nodebuffer":return i.transformTo(e.type.toLowerCase(),T);case"blob":return i.arrayBuffer2Blob(i.transformTo("arraybuffer",T),e.mimeType);case"base64":return e.base64?l.encode(T):T;default:return T}},crc32:function(e,t){return a(e,t)},utf8encode:function(e){return i.transformTo("string",h.utf8encode(e))},utf8decode:function(e){return h.utf8decode(e)}};function y(e){var t=m(this);return null===t||"undefined"===typeof t?"":(this.options.base64&&(t=l.decode(t)),t=e&&this.options.binary?v.utf8decode(t):i.transformTo("string",t),e||this.options.binary||(t=i.transformTo("string",v.utf8encode(t))),t)}function b(e,t,r){this.name=e,this.dir=r.dir,this.date=r.date,this.comment=r.comment,this.unixPermissions=r.unixPermissions,this.dosPermissions=r.dosPermissions,this._data=t,this.options=r,this._initialMetadata={dir:r.dir,date:r.date}}function w(e,t){var r,n="";for(r=0;r<t;r++)n+=String.fromCharCode(255&e),e>>>=8;return n}function _(e){return e=e||{},!0!==e.base64||null!==e.binary&&void 0!==e.binary||(e.binary=!0),e=i.extend(e,s),e.date=e.date||new Date,null!==e.compression&&(e.compression=e.compression.toUpperCase()),e}function x(e,t,r){var n,a=i.getTypeOf(t);if(r=_(r),"string"===typeof r.unixPermissions&&(r.unixPermissions=parseInt(r.unixPermissions,8)),r.unixPermissions&&16384&r.unixPermissions&&(r.dir=!0),r.dosPermissions&&16&r.dosPermissions&&(r.dir=!0),r.dir&&(e=T(e)),r.createFolders&&(n=E(e))&&k.call(this,n,!0),r.dir||null===t||"undefined"===typeof t)r.base64=!1,r.binary=!1,t=null,a=null;else if("string"===a)r.binary&&!r.base64&&!0!==r.optimizedBinaryString&&(t=i.string2binary(t));else{if(r.base64=!1,r.binary=!0,!a&&!(t instanceof c))throw new Error("The data of '"+e+"' is in an unsupported format !");"arraybuffer"===a&&(t=i.transformTo("uint8array",t))}var o=new b(e,t,r);return this.files[e]=o,o}function E(e){"/"===e.slice(-1)&&(e=e.substring(0,e.length-1));var t=e.lastIndexOf("/");return t>0?e.substring(0,t):""}function T(e){return"/"!==e.slice(-1)&&(e+="/"),e}function k(e,t){return t="undefined"!==typeof t&&t,e=T(e),this.files[e]||x.call(this,e,null,{dir:!0,createFolders:t}),this.files[e]}function A(e,t,r){var n,o=new c;return e._data instanceof c?(o.uncompressedSize=e._data.uncompressedSize,o.crc32=e._data.crc32,0===o.uncompressedSize||e.dir?(t=u.STORE,o.compressedContent="",o.crc32=0):e._data.compressionMethod===t.magic?o.compressedContent=e._data.getCompressedContent():(n=e._data.getContent(),o.compressedContent=t.compress(i.transformTo(t.compressInputType,n),r))):(n=g(e),n&&0!==n.length&&!e.dir||(t=u.STORE,n=""),o.uncompressedSize=n.length,o.crc32=a(n),o.compressedContent=t.compress(i.transformTo(t.compressInputType,n),r)),o.compressedSize=o.compressedContent.length,o.compressionMethod=t.magic,o}function S(e,t){var r=e;return e||(r=t?16893:33204),(65535&r)<<16}function O(e){return 63&(e||0)}function C(e,t,r,n,s,l){var u,c,f,d,p=l!==h.utf8encode,m=i.transformTo("string",l(t.name)),g=i.transformTo("string",h.utf8encode(t.name)),v=t.comment||"",y=i.transformTo("string",l(v)),b=i.transformTo("string",h.utf8encode(v)),_=g.length!==t.name.length,x=b.length!==v.length,E=t.options,T="",k="",A="";f=t._initialMetadata.dir!==t.dir?t.dir:E.dir,d=t._initialMetadata.date!==t.date?t.date:E.date;var C=0,I=0;f&&(C|=16),"UNIX"===s?(I=798,C|=S(t.unixPermissions,f)):(I=20,C|=O(t.dosPermissions,f)),u=d.getHours(),u<<=6,u|=d.getMinutes(),u<<=5,u|=d.getSeconds()/2,c=d.getFullYear()-1980,c<<=4,c|=d.getMonth()+1,c<<=5,c|=d.getDate(),_&&(k=w(1,1)+w(a(m),4)+g,T+="up"+w(k.length,2)+k),x&&(A=w(1,1)+w(this.crc32(y),4)+b,T+="uc"+w(A.length,2)+A);var N="";N+="\n\0",N+=p||!_&&!x?"\0\0":"\0\b",N+=r.compressionMethod,N+=w(u,2),N+=w(c,2),N+=w(r.crc32,4),N+=w(r.compressedSize,4),N+=w(r.uncompressedSize,4),N+=w(m.length,2),N+=w(T.length,2);var P=o.LOCAL_FILE_HEADER+N+m+T,R=o.CENTRAL_FILE_HEADER+w(I,2)+N+w(y.length,2)+"\0\0\0\0"+w(C,4)+w(n,4)+m+T+y;return{fileRecord:P,dirRecord:R,compressedObject:r}}b.prototype={asText:function(){return y.call(this,!0)},asBinary:function(){return y.call(this,!1)},asNodeBuffer:function(){var e=g(this);return i.transformTo("nodebuffer",e)},asUint8Array:function(){var e=g(this);return i.transformTo("uint8array",e)},asArrayBuffer:function(){return this.asUint8Array().buffer}},e.exports=v},"7a9f":function(e,t,r){"use strict";t.LOCAL_FILE_HEADER="PK",t.CENTRAL_FILE_HEADER="PK",t.CENTRAL_DIRECTORY_END="PK",t.ZIP64_CENTRAL_DIRECTORY_LOCATOR="PK",t.ZIP64_CENTRAL_DIRECTORY_END="PK",t.DATA_DESCRIPTOR="PK\b"},"84db":function(e,t,r){"use strict";function n(e){var t,r,n,i,a=0,o=e.length;for(n=0;n<o;n++)t=e.charCodeAt(n),55296===(64512&t)&&n+1<o&&(r=e.charCodeAt(n+1),56320===(64512&r)&&(t=65536+(t-55296<<10)+(r-56320),n++)),a+=t<128?1:t<2048?2:t<65536?3:4;var s=new Uint8Array(a);for(i=0,n=0;i<a;n++)t=e.charCodeAt(n),55296===(64512&t)&&n+1<o&&(r=e.charCodeAt(n+1),56320===(64512&r)&&(t=65536+(t-55296<<10)+(r-56320),n++)),t<128?s[i++]=t:t<2048?(s[i++]=192|t>>>6,s[i++]=128|63&t):t<65536?(s[i++]=224|t>>>12,s[i++]=128|t>>>6&63,s[i++]=128|63&t):(s[i++]=240|t>>>18,s[i++]=128|t>>>12&63,s[i++]=128|t>>>6&63,s[i++]=128|63&t);return s}function i(e,t){for(var r=0,i=t.modules.length;r<i;r++){var a=t.modules[r];e=a.postrender(e,t)}for(var o=0,s=t.joinUncorrupt(e,t),l="",u=0,c=65536,f=[],h=0,d=s.length;h<d;h++){var p=s[h];if(p.length+u>c){var m=n(l);o+=m.length,f.push(m),l=""}l+=p,u+=p.length,delete s[h]}var g=n(l);o+=g.length,f.push(g);var v=new Uint8Array(o),y=0;return f.forEach((function(e){for(var t=0;t<e.length;++t)v[t+y]=e[t];y+=e.length})),v}e.exports=i},"89a7":function(e,t,r){"use strict";function n(e,t){return void 0===t&&(t=Object),t&&"function"===typeof t.freeze?t.freeze(e):e}var i=n({HTML:"text/html",isHTML:function(e){return e===i.HTML},XML_APPLICATION:"application/xml",XML_TEXT:"text/xml",XML_XHTML_APPLICATION:"application/xhtml+xml",XML_SVG_IMAGE:"image/svg+xml"}),a=n({HTML:"http://www.w3.org/1999/xhtml",isHTML:function(e){return e===a.HTML},SVG:"http://www.w3.org/2000/svg",XML:"http://www.w3.org/XML/1998/namespace",XMLNS:"http://www.w3.org/2000/xmlns/"});t.freeze=n,t.MIME_TYPE=i,t.NAMESPACE=a},"8a20":function(e,t,r){"use strict";function n(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function i(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}function a(e,t,r){return t&&i(e.prototype,t),r&&i(e,r),Object.defineProperty(e,"prototype",{writable:!1}),e}var o=r("5558"),s=o.wordToUtf8,l=o.convertSpaces,u=r("4072"),c=r("e192"),f=r("3a82"),h=r("0cd2"),d=r("84db"),p=r("3101"),m=r("a9dc");function g(e,t){var r=u(e,t),n=r.matches.map((function(e){return e.array[2]}));return s(l(n.join("")))}e.exports=function(){function e(t,r){var i=this;n(this,e),this.cachedParsers={},this.content=t,Object.keys(r).forEach((function(e){i[e]=r[e]})),this.setModules({inspect:{filePath:r.filePath}})}return a(e,[{key:"resolveTags",value:function(e){var t=this;this.tags=e;var r=this.getOptions(),n=this.filePath;return r.scopeManager=this.scopeManager,r.resolve=p,p(r).then((function(e){var i=e.resolved,a=e.errors;if(a.forEach((function(e){e.properties=e.properties||{},e.properties.file=n})),0!==a.length)throw a;return Promise.all(i).then((function(e){return r.scopeManager.root.finishedResolving=!0,r.scopeManager.resolved=e,t.setModules({inspect:{resolved:e,filePath:n}}),e}))}))}},{key:"getFullText",value:function(){return g(this.content,this.fileTypeConfig.tagsXmlTextArray)}},{key:"setModules",value:function(e){this.modules.forEach((function(t){t.set(e)}))}},{key:"preparse",value:function(){this.allErrors=[],this.xmllexed=c.xmlparse(this.content,{text:this.fileTypeConfig.tagsXmlTextArray,other:this.fileTypeConfig.tagsXmlLexedArray}),this.setModules({inspect:{xmllexed:this.xmllexed}});var e=c.parse(this.xmllexed,this.delimiters),t=e.lexed,r=e.errors;this.allErrors=this.allErrors.concat(r),this.lexed=t,this.setModules({inspect:{lexed:this.lexed}});var n=this.getOptions();f.preparse(this.lexed,this.modules,n)}},{key:"parse",value:function(){this.setModules({inspect:{filePath:this.filePath}});var e=this.getOptions();this.parsed=f.parse(this.lexed,this.modules,e),this.setModules({inspect:{parsed:this.parsed}});var t=f.postparse(this.parsed,this.modules,e),r=t.postparsed,n=t.errors;return this.postparsed=r,this.setModules({inspect:{postparsed:this.postparsed}}),this.allErrors=this.allErrors.concat(n),this.errorChecker(this.allErrors),this}},{key:"errorChecker",value:function(e){var t=this;e.length&&(e.forEach((function(e){e.properties=e.properties||{},e.properties.file=t.filePath})),this.modules.forEach((function(t){e=t.errorsTransformer(e)})))}},{key:"baseNullGetter",value:function(e,t){var r=this,n=this.modules.reduce((function(n,i){return null!=n?n:i.nullGetter(e,t,r)}),null);return null!=n?n:this.nullGetter(e,t)}},{key:"getOptions",value:function(){return{compiled:this.postparsed,cachedParsers:this.cachedParsers,tags:this.tags,modules:this.modules,parser:this.parser,contentType:this.contentType,baseNullGetter:this.baseNullGetter.bind(this),filePath:this.filePath,fileTypeConfig:this.fileTypeConfig,linebreaks:this.linebreaks}}},{key:"render",value:function(e){this.filePath=e;var t=this.getOptions();t.resolved=this.scopeManager.resolved,t.scopeManager=this.scopeManager,t.render=h,t.joinUncorrupt=m;var r=h(t),n=r.errors,i=r.parts;return this.allErrors=n,this.errorChecker(n),n.length>0||(this.content=d(i,t),this.setModules({inspect:{content:this.content}})),this}}]),e}()},"8bde":function(e,t,r){"use strict";function n(){this.compressedSize=0,this.uncompressedSize=0,this.crc32=0,this.compressionMethod=null,this.compressedContent=null}n.prototype={getContent:function(){return null},getCompressedContent:function(){return null}},e.exports=n},a6b4:function(e,t,r){"use strict";function n(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function i(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}function a(e,t,r){return t&&i(e.prototype,t),r&&i(e,r),Object.defineProperty(e,"prototype",{writable:!1}),e}var o=r("50a1"),s=r("c838"),l=s.getScopeCompilationError,u=r("5558"),c=u.utf8ToWord,f=u.hasCorruptCharacters,h=r("c838"),d=h.getCorruptCharactersException,p={docx:"w",pptx:"a"},m=function(){function e(){n(this,e),this.name="Render",this.recordRun=!1,this.recordedRun=[]}return a(e,[{key:"optionsTransformer",value:function(e,t){return this.parser=t.parser,this.fileType=t.fileType,e}},{key:"set",value:function(e){e.compiled&&(this.compiled=e.compiled),null!=e.data&&(this.data=e.data)}},{key:"getRenderedMap",value:function(e){var t=this;return Object.keys(this.compiled).reduce((function(e,r){return e[r]={from:r,data:t.data},e}),e)}},{key:"postparse",value:function(e,t){var r=this,n=[];return e.forEach((function(e){if("placeholder"===e.type){var i=e.value;try{t.cachedParsers[e.lIndex]=r.parser(i,{tag:e})}catch(a){n.push(l({tag:i,rootError:a,offset:e.offset}))}}})),{postparsed:e,errors:n}}},{key:"render",value:function(e,t){var r=t.scopeManager,n=t.linebreaks,i=t.nullGetter;if(n&&this.recordRuns(e),"placeholder"===e.type&&!e.module){var a;try{a=r.getValue(e.value,{part:e})}catch(o){return{errors:[o]}}return null==a&&(a=i(e)),f(a)?{errors:[d({tag:e.value,value:a,offset:e.offset})]}:{value:n&&"string"===typeof a?this.renderLineBreaks(a):c(a)}}}},{key:"recordRuns",value:function(e){e.tag==="".concat(p[this.fileType],":r")?this.recordedRun=[]:e.tag==="".concat(p[this.fileType],":rPr")?("start"===e.position&&(this.recordRun=!0,this.recordedRun=[e.value]),"end"===e.position&&(this.recordedRun.push(e.value),this.recordRun=!1)):this.recordRun&&this.recordedRun.push(e.value)}},{key:"renderLineBreaks",value:function(e){var t=this,r=p[this.fileType],n="docx"===this.fileType?"<w:r><w:br/></w:r>":"<a:br/>",i=e.split("\n"),a=this.recordedRun.join("");return i.map((function(e){return c(e)})).reduce((function(e,o,s){return e.push(o),s<i.length-1&&e.push("</".concat(r,":t></").concat(r,":r>").concat(n,"<").concat(r,":r>").concat(a,"<").concat(r,":t").concat("docx"===t.fileType?' xml:space="preserve"':"",">")),e}),[])}}]),e}();e.exports=function(){return o(new m)}},a9dc:function(e,t,r){"use strict";var n=r("5558"),i=n.endsWith,a=n.isStarting,o=n.isEnding,s=r("ddee");function l(e){for(var t=!1,r=e.length-1;r>=0;r--){var n=e[r];if(a(n,"w:sectPr")&&(t=!0),t){var s=n.trim();if(o(s,"w:tbl"))return e.splice(r+1,0,"<w:p><w:r><w:t></w:t></w:r></w:p>"),e;if(i(s,"</w:p>"))return e}}return e}function u(e,t){var r=t.fileTypeConfig.tagShouldContain||[],n="",i=-1;-1!==s.docx.indexOf(t.contentType)&&(e=l(e));for(var u=0,c=e.length;u<c;u++)for(var f=e[u],h=0,d=r.length;h<d;h++){var p=r[h],m=p.tag,g=p.shouldContain,v=p.value;if(i===h){if(o(f,m)){i=-1,e[u]=n+v+f;break}n+=f;for(var y=0,b=g.length;y<b;y++){var w=g[y];if(a(f,w)){i=-1,e[u]=n;break}}i>-1&&(e[u]="");break}if(-1===i&&a(f,m)&&-1===f.substr(1).indexOf("<")){if("/"===f[f.length-2]){e[u]="";break}i=h,n=f,e[u]="";break}}return e}e.exports=u},b074:function(e,t,r){var n=r("89a7"),i=r("e1c8"),a=r("b30f"),o=r("e003"),s=i.DOMImplementation,l=n.NAMESPACE,u=o.ParseError,c=o.XMLReader;function f(e){return e.replace(/\r[\n\u0085]/g,"\n").replace(/[\r\u0085\u2028]/g,"\n")}function h(e){this.options=e||{locator:{}}}function d(e,t,r){if(!e){if(t instanceof p)return t;e=t}var n={},i=e instanceof Function;function a(t){var a=e[t];!a&&i&&(a=2==e.length?function(r){e(t,r)}:e),n[t]=a&&function(e){a("[xmldom "+t+"]\t"+e+g(r))}||function(){}}return r=r||{},a("warning"),a("error"),a("fatalError"),n}function p(){this.cdata=!1}function m(e,t){t.lineNumber=e.lineNumber,t.columnNumber=e.columnNumber}function g(e){if(e)return"\n@"+(e.systemId||"")+"#[line:"+e.lineNumber+",col:"+e.columnNumber+"]"}function v(e,t,r){return"string"==typeof e?e.substr(t,r):e.length>=t+r||t?new java.lang.String(e,t,r)+"":e}function y(e,t){e.currentElement?e.currentElement.appendChild(t):e.doc.appendChild(t)}h.prototype.parseFromString=function(e,t){var r=this.options,n=new c,i=r.domBuilder||new p,o=r.errorHandler,s=r.locator,u=r.xmlns||{},h=/\/x?html?$/.test(t),m=h?a.HTML_ENTITIES:a.XML_ENTITIES;s&&i.setDocumentLocator(s),n.errorHandler=d(o,i,s),n.domBuilder=r.domBuilder||i,h&&(u[""]=l.HTML),u.xml=u.xml||l.XML;var g=r.normalizeLineEndings||f;return e&&"string"===typeof e?n.parse(g(e),u,m):n.errorHandler.error("invalid doc source"),i.doc},p.prototype={startDocument:function(){this.doc=(new s).createDocument(null,null,null),this.locator&&(this.doc.documentURI=this.locator.systemId)},startElement:function(e,t,r,n){var i=this.doc,a=i.createElementNS(e,r||t),o=n.length;y(this,a),this.currentElement=a,this.locator&&m(this.locator,a);for(var s=0;s<o;s++){e=n.getURI(s);var l=n.getValue(s),u=(r=n.getQName(s),i.createAttributeNS(e,r));this.locator&&m(n.getLocator(s),u),u.value=u.nodeValue=l,a.setAttributeNode(u)}},endElement:function(e,t,r){var n=this.currentElement;n.tagName;this.currentElement=n.parentNode},startPrefixMapping:function(e,t){},endPrefixMapping:function(e){},processingInstruction:function(e,t){var r=this.doc.createProcessingInstruction(e,t);this.locator&&m(this.locator,r),y(this,r)},ignorableWhitespace:function(e,t,r){},characters:function(e,t,r){if(e=v.apply(this,arguments),e){if(this.cdata)var n=this.doc.createCDATASection(e);else n=this.doc.createTextNode(e);this.currentElement?this.currentElement.appendChild(n):/^\s*$/.test(e)&&this.doc.appendChild(n),this.locator&&m(this.locator,n)}},skippedEntity:function(e){},endDocument:function(){this.doc.normalize()},setDocumentLocator:function(e){(this.locator=e)&&(e.lineNumber=0)},comment:function(e,t,r){e=v.apply(this,arguments);var n=this.doc.createComment(e);this.locator&&m(this.locator,n),y(this,n)},startCDATA:function(){this.cdata=!0},endCDATA:function(){this.cdata=!1},startDTD:function(e,t,r){var n=this.doc.implementation;if(n&&n.createDocumentType){var i=n.createDocumentType(e,t,r);this.locator&&m(this.locator,i),y(this,i),this.doc.doctype=i}},warning:function(e){console.warn("[xmldom warning]\t"+e,g(this.locator))},error:function(e){console.error("[xmldom error]\t"+e,g(this.locator))},fatalError:function(e){throw new u(e,this.locator)}},"endDTD,startEntity,endEntity,attributeDecl,elementDecl,externalEntityDecl,internalEntityDecl,resolveEntity,getExternalSubset,notationDecl,unparsedEntityDecl".replace(/\w+/g,(function(e){p.prototype[e]=function(){return null}})),t.__DOMHandler=p,t.normalizeLineEndings=f,t.DOMParser=h},b227:function(e,t,r){"use strict";function n(e){return e[e.length-1]}function i(e){return e[0]}e.exports={last:n,first:i}},b30f:function(e,t,r){var n=r("89a7").freeze;t.XML_ENTITIES=n({amp:"&",apos:"'",gt:">",lt:"<",quot:'"'}),t.HTML_ENTITIES=n({lt:"<",gt:">",amp:"&",quot:'"',apos:"'",Agrave:"À",Aacute:"Á",Acirc:"Â",Atilde:"Ã",Auml:"Ä",Aring:"Å",AElig:"Æ",Ccedil:"Ç",Egrave:"È",Eacute:"É",Ecirc:"Ê",Euml:"Ë",Igrave:"Ì",Iacute:"Í",Icirc:"Î",Iuml:"Ï",ETH:"Ð",Ntilde:"Ñ",Ograve:"Ò",Oacute:"Ó",Ocirc:"Ô",Otilde:"Õ",Ouml:"Ö",Oslash:"Ø",Ugrave:"Ù",Uacute:"Ú",Ucirc:"Û",Uuml:"Ü",Yacute:"Ý",THORN:"Þ",szlig:"ß",agrave:"à",aacute:"á",acirc:"â",atilde:"ã",auml:"ä",aring:"å",aelig:"æ",ccedil:"ç",egrave:"è",eacute:"é",ecirc:"ê",euml:"ë",igrave:"ì",iacute:"í",icirc:"î",iuml:"ï",eth:"ð",ntilde:"ñ",ograve:"ò",oacute:"ó",ocirc:"ô",otilde:"õ",ouml:"ö",oslash:"ø",ugrave:"ù",uacute:"ú",ucirc:"û",uuml:"ü",yacute:"ý",thorn:"þ",yuml:"ÿ",nbsp:" ",iexcl:"¡",cent:"¢",pound:"£",curren:"¤",yen:"¥",brvbar:"¦",sect:"§",uml:"¨",copy:"©",ordf:"ª",laquo:"«",not:"¬",shy:"­­",reg:"®",macr:"¯",deg:"°",plusmn:"±",sup2:"²",sup3:"³",acute:"´",micro:"µ",para:"¶",middot:"·",cedil:"¸",sup1:"¹",ordm:"º",raquo:"»",frac14:"¼",frac12:"½",frac34:"¾",iquest:"¿",times:"×",divide:"÷",forall:"∀",part:"∂",exist:"∃",empty:"∅",nabla:"∇",isin:"∈",notin:"∉",ni:"∋",prod:"∏",sum:"∑",minus:"−",lowast:"∗",radic:"√",prop:"∝",infin:"∞",ang:"∠",and:"∧",or:"∨",cap:"∩",cup:"∪",int:"∫",there4:"∴",sim:"∼",cong:"≅",asymp:"≈",ne:"≠",equiv:"≡",le:"≤",ge:"≥",sub:"⊂",sup:"⊃",nsub:"⊄",sube:"⊆",supe:"⊇",oplus:"⊕",otimes:"⊗",perp:"⊥",sdot:"⋅",Alpha:"Α",Beta:"Β",Gamma:"Γ",Delta:"Δ",Epsilon:"Ε",Zeta:"Ζ",Eta:"Η",Theta:"Θ",Iota:"Ι",Kappa:"Κ",Lambda:"Λ",Mu:"Μ",Nu:"Ν",Xi:"Ξ",Omicron:"Ο",Pi:"Π",Rho:"Ρ",Sigma:"Σ",Tau:"Τ",Upsilon:"Υ",Phi:"Φ",Chi:"Χ",Psi:"Ψ",Omega:"Ω",alpha:"α",beta:"β",gamma:"γ",delta:"δ",epsilon:"ε",zeta:"ζ",eta:"η",theta:"θ",iota:"ι",kappa:"κ",lambda:"λ",mu:"μ",nu:"ν",xi:"ξ",omicron:"ο",pi:"π",rho:"ρ",sigmaf:"ς",sigma:"σ",tau:"τ",upsilon:"υ",phi:"φ",chi:"χ",psi:"ψ",omega:"ω",thetasym:"ϑ",upsih:"ϒ",piv:"ϖ",OElig:"Œ",oelig:"œ",Scaron:"Š",scaron:"š",Yuml:"Ÿ",fnof:"ƒ",circ:"ˆ",tilde:"˜",ensp:" ",emsp:" ",thinsp:" ",zwnj:"‌",zwj:"‍",lrm:"‎",rlm:"‏",ndash:"–",mdash:"—",lsquo:"‘",rsquo:"’",sbquo:"‚",ldquo:"“",rdquo:"”",bdquo:"„",dagger:"†",Dagger:"‡",bull:"•",hellip:"…",permil:"‰",prime:"′",Prime:"″",lsaquo:"‹",rsaquo:"›",oline:"‾",euro:"€",trade:"™",larr:"←",uarr:"↑",rarr:"→",darr:"↓",harr:"↔",crarr:"↵",lceil:"⌈",rceil:"⌉",lfloor:"⌊",rfloor:"⌋",loz:"◊",spades:"♠",clubs:"♣",hearts:"♥",diams:"♦"}),t.entityMap=t.HTML_ENTITIES},b765:function(e,t,r){"use strict";var n=new RegExp(String.fromCharCode(160),"g");function i(e){return e.replace(n," ")}function a(e,t){return"string"===typeof e?i(t.substr(0,e.length))===e:e instanceof RegExp?e.test(i(t)):void 0}function o(e,t){return"string"===typeof e?i(t).substr(e.length):e instanceof RegExp?i(t).match(e)[1]:void 0}function s(e,t){return"string"===typeof e?[t,i(t).substr(e.length)]:e instanceof RegExp?i(t).match(e):void 0}e.exports={match:a,getValue:o,getValues:s}},be27:function(e,t,r){"use strict";var n=r("0e15b");t.string2binary=function(e){return n.string2binary(e)},t.string2Uint8Array=function(e){return n.transformTo("uint8array",e)},t.uint8Array2String=function(e){return n.transformTo("string",e)},t.string2Blob=function(e){var t=n.transformTo("arraybuffer",e);return n.arrayBuffer2Blob(t)},t.arrayBuffer2Blob=function(e){return n.arrayBuffer2Blob(e)},t.transformTo=function(e,t){return n.transformTo(e,t)},t.getTypeOf=function(e){return n.getTypeOf(e)},t.checkSupport=function(e){return n.checkSupport(e)},t.MAX_VALUE_16BITS=n.MAX_VALUE_16BITS,t.MAX_VALUE_32BITS=n.MAX_VALUE_32BITS,t.pretty=function(e){return n.pretty(e)},t.findCompression=function(e){return n.findCompression(e)},t.isRegExp=function(e){return n.isRegExp(e)}},bedd:function(e,t,r){"use strict";for(var n=r("0e15b"),i=r("fdf0"),a=r("dd84"),o=new Array(256),s=0;s<256;s++)o[s]=s>=252?6:s>=248?5:s>=240?4:s>=224?3:s>=192?2:1;function l(e){var t,r,n,a,o,s=0,l=e.length;for(a=0;a<l;a++)r=e.charCodeAt(a),55296===(64512&r)&&a+1<l&&(n=e.charCodeAt(a+1),56320===(64512&n)&&(r=65536+(r-55296<<10)+(n-56320),a++)),s+=r<128?1:r<2048?2:r<65536?3:4;for(t=i.uint8array?new Uint8Array(s):new Array(s),o=0,a=0;o<s;a++)r=e.charCodeAt(a),55296===(64512&r)&&a+1<l&&(n=e.charCodeAt(a+1),56320===(64512&n)&&(r=65536+(r-55296<<10)+(n-56320),a++)),r<128?t[o++]=r:r<2048?(t[o++]=192|r>>>6,t[o++]=128|63&r):r<65536?(t[o++]=224|r>>>12,t[o++]=128|r>>>6&63,t[o++]=128|63&r):(t[o++]=240|r>>>18,t[o++]=128|r>>>12&63,t[o++]=128|r>>>6&63,t[o++]=128|63&r);return t}function u(e,t){var r;t=t||e.length,t>e.length&&(t=e.length),r=t-1;while(r>=0&&128===(192&e[r]))r--;return r<0||0===r?t:r+o[e[r]]>t?r:t}function c(e){var t,r,i,a,s=e.length,l=new Array(2*s);for(r=0,t=0;t<s;)if(i=e[t++],i<128)l[r++]=i;else if(a=o[i],a>4)l[r++]=65533,t+=a-1;else{i&=2===a?31:3===a?15:7;while(a>1&&t<s)i=i<<6|63&e[t++],a--;a>1?l[r++]=65533:i<65536?l[r++]=i:(i-=65536,l[r++]=55296|i>>10&1023,l[r++]=56320|1023&i)}return l.length!==r&&(l.subarray?l=l.subarray(0,r):l.length=r),n.applyFromCharCode(l)}o[254]=o[254]=1,t.utf8encode=function(e){return i.nodebuffer?a(e,"utf-8"):l(e)},t.utf8decode=function(e){if(i.nodebuffer)return n.transformTo("nodebuffer",e).toString("utf-8");e=n.transformTo(i.uint8array?"uint8array":"array",e);var t=[],r=e.length,a=65536,o=0;while(o<r){var s=u(e,Math.min(o+a,r));i.uint8array?t.push(c(e.subarray(o,s))):t.push(c(e.slice(o,s))),o=s}return t.join("")}},c113:function(e,t,r){"use strict";function n(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function i(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?n(Object(r),!0).forEach((function(t){a(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):n(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}function a(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function o(e){return u(e)||l(e)||h(e)||s()}function s(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}function l(e){if("undefined"!==typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}function u(e){if(Array.isArray(e))return d(e)}function c(e,t){return m(e)||p(e,t)||h(e,t)||f()}function f(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}function h(e,t){if(e){if("string"===typeof e)return d(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);return"Object"===r&&e.constructor&&(r=e.constructor.name),"Map"===r||"Set"===r?Array.from(e):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?d(e,t):void 0}}function d(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n}function p(e,t){var r=null==e?null:"undefined"!==typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=r){var n,i,a=[],o=!0,s=!1;try{for(r=r.call(e);!(o=(n=r.next()).done);o=!0)if(a.push(n.value),t&&a.length===t)break}catch(l){s=!0,i=l}finally{try{o||null==r["return"]||r["return"]()}finally{if(s)throw i}}return a}}function m(e){if(Array.isArray(e))return e}function g(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function v(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}function y(e,t,r){return t&&v(e.prototype,t),r&&v(e,r),Object.defineProperty(e,"prototype",{writable:!1}),e}var b=r("5558"),w=b.mergeObjects,_=b.chunkBy,x=b.last,E=b.isParagraphStart,T=b.isModule,k=b.isParagraphEnd,A=b.isContent,S=b.startsWith,O=b.isTagEnd,C=b.isTagStart,I=b.getSingleAttribute,N=b.setSingleAttribute,P=r("50a1"),R="loop";function D(e){return e.some((function(e){return A(e)}))}function z(e){for(var t=0,r=e.length;t<r;t++)if("content"!==e[t].type)return e[t];return null}function M(e){var t=z(e.subparsed);return null!=t&&"w:t"!==t.tag}function L(e){return e.hasPageBreak&&M(e)?'<w:p><w:r><w:br w:type="page"/></w:r></w:p>':""}function U(e){return e.length&&E(e[0])&&k(x(e))}function j(e){return D(e)?0:e.length}function F(e){for(var t=!1,r=e.parts.length-1,n=e.parts.length-1;r>=0;r--){var i=e.parts[n];if("</w:p>"===i&&!t){t=!0,e.parts.splice(n,0,'<w:r><w:br w:type="page"/></w:r>');break}}t||e.parts.push('<w:p><w:r><w:br w:type="page"/></w:r></w:p>')}function B(e){e.parts.unshift('<w:p><w:r><w:br w:type="page"/></w:r></w:p>')}function Z(e){return e.some((function(e){return C("w:type",e)&&-1!==e.value.indexOf("continuous")}))}function X(e){var t=!1,r=!1;return e.reduce((function(e,n){return!1===t&&S(n,"<w:sectPr")&&(r=!0),r&&(S(n,"<w:type")&&(t=!0),!1===t&&S(n,"</w:sectPr")&&e.push('<w:type w:val="continuous"/>')),e.push(n),e}),[])}function V(e){return e.filter((function(e){return!S(e,"<w:headerReference")&&!S(e,"<w:footerReference")}))}function H(e){return e.some((function(e){return"w:br"===e.tag&&-1!==e.value.indexOf('w:type="page"')}))}function Y(e){return e.some((function(e){var t=e.tag;return"w:drawing"===t}))}function q(e){var t=!1,r=[];return e.forEach((function(e){C("w:sectPr",e)&&(r.push([]),t=!0),t&&r[r.length-1].push(e),O("w:sectPr",e)&&(t=!1)})),r}function G(e){var t=!1,r=0;return e.forEach((function(e){C("w:sectPr",e)&&(t=!0),t&&("w:headerReference"!==e.tag&&"w:footerReference"!==e.tag||(r++,t=!1)),O("w:sectPr",e)&&(t=!1)})),r}function $(e){for(var t=[],r=!1,n=e.length-1;n>=0;n--){var i=e[n];if(O("w:sectPr",i)&&(r=!0),C("w:sectPr",i)&&(t.unshift(i.value),r=!1),r&&t.unshift(i.value),E(i)){if(t.length>0)return t.join("");break}}return""}var W=function(){function e(){g(this,e),this.name="LoopModule",this.inXfrm=!1,this.totalSectPr=0,this.prefix={start:"#",end:"/",dash:/^-([^\s]+)\s(.+)/,inverted:"^"}}return y(e,[{key:"optionsTransformer",value:function(e,t){return this.docxtemplater=t,e}},{key:"preparse",value:function(e,t){var r=t.contentType;"application/vnd.openxmlformats-officedocument.wordprocessingml.document.main+xml"===r&&(this.sects=q(e))}},{key:"matchers",value:function(){var e=R;return[[this.prefix.start,e,{expandTo:"auto",location:"start",inverted:!1}],[this.prefix.inverted,e,{expandTo:"auto",location:"start",inverted:!0}],[this.prefix.end,e,{location:"end"}],[this.prefix.dash,e,function(e){var t=c(e,3),r=t[1],n=t[2];return{location:"start",inverted:!1,expandTo:r,value:n}}]]}},{key:"getTraits",value:function(e,t){if("expandPair"===e)return t.reduce((function(e,t,r){return T(t,R)&&null==t.subparsed&&e.push({part:t,offset:r}),e}),[])}},{key:"postparse",value:function(e,t){var r=t.basePart;if(r&&"docx"===this.docxtemplater.fileType){r.sectPrCount=G(e),this.totalSectPr+=r.sectPrCount;var n=this.sects;n.some((function(e,t){if(e[0].lIndex>r.lIndex)return t+1<n.length&&Z(n[t+1])&&(r.addContinuousType=!0),!0})),r.lastParagrapSectPr=$(e)}if(!r||"auto"!==r.expandTo||r.module!==R||!U(e))return e;r.paragraphLoop=!0;var i=0,a=_(e,(function(e){return E(e)&&(i++,1===i)?"start":k(e)&&(i--,0===i)?"end":null})),o=a[0],s=x(a),l=j(o),u=j(s);return r.hasPageBreakBeginning=H(o),r.hasPageBreak=H(s),Y(o)&&(l=0),Y(s)&&(u=0),e.slice(l,e.length-u)}},{key:"resolve",value:function(e,t){if(!T(e,R))return null;var r=t.scopeManager,n=r.getValueAsync(e.value,{part:e}),i=[];function a(n,a,o){var s=r.createSubScopeManager(n,e.value,a,e,o);i.push(t.resolve({filePath:t.filePath,modules:t.modules,baseNullGetter:t.baseNullGetter,resolve:t.resolve,compiled:e.subparsed,tags:{},scopeManager:s}))}var s=[];return n.then((function(t){return r.loopOverValue(t,a,e.inverted),Promise.all(i).then((function(e){return e.map((function(e){var t=e.resolved,r=e.errors;return s.push.apply(s,o(r)),t}))})).then((function(e){if(s.length>0)throw s;return e}))}))}},{key:"render",value:function(e,t){if("p:xfrm"===e.tag&&(this.inXfrm="start"===e.position),"a:ext"===e.tag&&this.inXfrm)return this.lastExt=e,e;if(!T(e,R))return null;var r=[],n=[],a=0,o=e.subparsed[0],s=0;"a:tr"===(null===o||void 0===o?void 0:o.tag)&&(s=+I(o.value,"h")),a-=s;var l=0;function u(i,o,u){a+=s;var c=t.scopeManager.createSubScopeManager(i,e.value,o,e,u);e.subparsed.forEach((function(e){if(C("a16:rowId",e)){var t=+I(e.value,"val")+l;l=1,e.value=N(e.value,"val",t)}}));var f=t.render(w({},t,{compiled:e.subparsed,tags:{},scopeManager:c}));e.hasPageBreak&&o===u-1&&M(e)&&F(f);var h=c.scopePathItem.some((function(e){return 0!==e}));h&&(1===e.sectPrCount&&(f.parts=V(f.parts)),e.addContinuousType&&(f.parts=X(f.parts))),e.hasPageBreakBeginning&&M(e)&&B(f);for(var d=0,p=f.parts.length;d<p;d++)r.push(f.parts[d]);Array.prototype.push.apply(n,f.errors)}var c=t.scopeManager.loopOver(e.value,u,e.inverted,{part:e});if(!1===c)return e.lastParagrapSectPr?e.paragraphLoop?{value:"<w:p><w:pPr>".concat(e.lastParagrapSectPr,"</w:pPr></w:p>")}:{value:"</w:t></w:r></w:p><w:p><w:pPr>".concat(e.lastParagrapSectPr,"</w:pPr><w:r><w:t>")}:{value:L(e)||"",errors:n};if(0!==a){var f=+I(this.lastExt.value,"cy");this.lastExt.value=N(this.lastExt.value,"cy",f+a)}return{value:t.joinUncorrupt(r,i(i({},t),{},{basePart:e})),errors:n}}}]),e}();e.exports=function(){return P(new W)}},c48f:function(e,t,r){"use strict";var n=r("347e");function i(e){e&&(this.data=e,this.length=this.data.length,this.index=0,this.zero=0)}i.prototype=new n,i.prototype.readData=function(e){if(this.checkOffset(e),0===e)return new Uint8Array(0);var t=this.data.subarray(this.zero+this.index,this.zero+this.index+e);return this.index+=e,t},e.exports=i},c816:function(e,t,r){"use strict";function n(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function i(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}function a(e,t,r){return t&&i(e.prototype,t),r&&i(e,r),Object.defineProperty(e,"prototype",{writable:!1}),e}var o=r("50a1"),s=r("ddee"),l="application/vnd.openxmlformats-package.core-properties+xml",u="application/vnd.openxmlformats-officedocument.extended-properties+xml",c="application/vnd.openxmlformats-officedocument.custom-properties+xml",f="application/vnd.openxmlformats-officedocument.wordprocessingml.settings+xml",h=[f,l,u,c],d=function(){function e(){n(this,e),this.name="Common"}return a(e,[{key:"getFileType",value:function(e){var t=e.doc,r=t.invertedContentTypes;if(r){for(var n,i=Object.keys(s),a=0,o=i.length;a<o;a++)for(var l=s[i[a]],u=0,c=l.length;u<c;u++){var f=l[u];r[f]&&(n=i[a],Array.prototype.push.apply(t.targets,r[f]))}for(var d=0,p=h.length;d<p;d++){var m=h[d];r[m]&&Array.prototype.push.apply(t.targets,r[m])}return n}}}]),e}();e.exports=function(){return o(new d)}},c838:function(e,t,r){"use strict";function n(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function i(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?n(Object(r),!0).forEach((function(t){a(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):n(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}function a(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}var o=r("b227"),s=o.last,l=o.first;function u(e){this.name="GenericError",this.message=e,this.stack=new Error(e).stack}function c(e){this.name="TemplateError",this.message=e,this.stack=new Error(e).stack}function f(e){this.name="RenderingError",this.message=e,this.stack=new Error(e).stack}function h(e){this.name="ScopeParserError",this.message=e,this.stack=new Error(e).stack}function d(e){this.name="InternalError",this.properties={explanation:"InternalError"},this.message=e,this.stack=new Error(e).stack}function p(e){this.name="APIVersionError",this.properties={explanation:"APIVersionError"},this.message=e,this.stack=new Error(e).stack}function m(e,t){var r=new p(e);throw r.properties=i({id:"api_version_error"},t),r}function g(e){var t=new c("Multi error");throw t.properties={errors:e,id:"multi_error",explanation:"The template has multiple errors"},t}function v(e){var t=new c("Unopened tag");return t.properties={xtag:s(e.xtag.split(" ")),id:"unopened_tag",context:e.xtag,offset:e.offset,lIndex:e.lIndex,explanation:'The tag beginning with "'.concat(e.xtag.substr(0,10),'" is unopened')},t}function y(e){var t=new c("Duplicate open tag, expected one open tag");return t.properties={xtag:l(e.xtag.split(" ")),id:"duplicate_open_tag",context:e.xtag,offset:e.offset,lIndex:e.lIndex,explanation:'The tag beginning with "'.concat(e.xtag.substr(0,10),'" has duplicate open tags')},t}function b(e){var t=new c("Duplicate close tag, expected one close tag");return t.properties={xtag:l(e.xtag.split(" ")),id:"duplicate_close_tag",context:e.xtag,offset:e.offset,lIndex:e.lIndex,explanation:'The tag ending with "'.concat(e.xtag.substr(0,10),'" has duplicate close tags')},t}function w(e){var t=new c("Unclosed tag");return t.properties={xtag:l(e.xtag.split(" ")).substr(1),id:"unclosed_tag",context:e.xtag,offset:e.offset,lIndex:e.lIndex,explanation:'The tag beginning with "'.concat(e.xtag.substr(0,10),'" is unclosed')},t}function _(e){var t=new c('No tag "'.concat(e.element,'" was found at the ').concat(e.position)),r=e.parsed[e.index];throw t.properties={id:"no_xml_tag_found_at_".concat(e.position),explanation:'No tag "'.concat(e.element,'" was found at the ').concat(e.position),offset:r.offset,part:r,parsed:e.parsed,index:e.index,element:e.element},t}function x(e){var t=e.tag,r=e.value,n=e.offset,i=new f("There are some XML corrupt characters");return i.properties={id:"invalid_xml_characters",xtag:t,value:r,offset:n,explanation:"There are some corrupt characters for the field ".concat(t)},i}function E(e){var t=e.tag,r=e.value,n=e.offset,i=new f("Non string values are not allowed for rawXML tags");return i.properties={id:"invalid_raw_xml_value",xtag:t,value:r,offset:n,explanation:"The value of the raw tag : '".concat(t,"' is not a string")},i}function T(e){var t=e.part,r=t.value,n=t.offset,i=e.id,a=void 0===i?"raw_tag_outerxml_invalid":i,o=e.message,s=void 0===o?"Raw tag not in paragraph":o,l=e.part,u=e.explanation,f=void 0===u?'The tag "'.concat(r,'" is not inside a paragraph'):u;"function"===typeof f&&(f=f(l));var h=new c(s);throw h.properties={id:a,explanation:f,rootError:e.rootError,xtag:r,offset:n,postparsed:e.postparsed,expandTo:e.expandTo,index:e.index},h}function k(e){var t=new c("Raw tag should be the only text in paragraph"),r=e.part.value;throw t.properties={id:"raw_xml_tag_should_be_only_text_in_paragraph",explanation:'The raw tag "'.concat(r,'" should be the only text in this paragraph. This means that this tag should not be surrounded by any text or spaces.'),xtag:r,offset:e.part.offset,paragraphParts:e.paragraphParts},t}function A(e){var t=e.location,r=e.offset,n="start"===t?"unclosed":"unopened",i="start"===t?"Unclosed":"Unopened",a=new c("".concat(i," loop")),o=e.value;return a.properties={id:"".concat(n,"_loop"),explanation:'The loop with tag "'.concat(o,'" is ').concat(n),xtag:o,offset:r},a}function S(e,t){var r=new c("Unbalanced loop tag"),n=t[0].part.value,i=t[1].part.value,a=e[0].part.value,o=e[1].part.value;return r.properties={id:"unbalanced_loop_tags",explanation:"Unbalanced loop tags {#".concat(n,"}{/").concat(i,"}{#").concat(a,"}{/").concat(o,"}"),offset:[t[0].part.offset,e[1].part.offset],lastPair:{left:t[0].part.value,right:t[1].part.value},pair:{left:e[0].part.value,right:e[1].part.value}},r}function O(e){var t=e.tags,r=new c("Closing tag does not match opening tag");return r.properties={id:"closing_tag_does_not_match_opening_tag",explanation:'The tag "'.concat(t[0].value,'" is closed by the tag "').concat(t[1].value,'"'),openingtag:l(t).value,offset:[l(t).offset,s(t).offset],closingtag:s(t).value},r}function C(e){var t=e.tag,r=e.rootError,n=e.offset,i=new h("Scope parser compilation failed");return i.properties={id:"scopeparser_compilation_failed",offset:n,xtag:t,explanation:'The scope parser for the tag "'.concat(t,'" failed to compile'),rootError:r},i}function I(e){var t=e.tag,r=e.scope,n=e.error,i=e.offset,a=new h("Scope parser execution failed");return a.properties={id:"scopeparser_execution_failed",explanation:"The scope parser for the tag ".concat(t," failed to execute"),scope:r,offset:i,xtag:t,rootError:n},a}function N(e){var t=e.tag,r=e.offset,n=new c('The position of the loop tags "'.concat(t,'" would produce invalid XML'));return n.properties={xtag:t,id:"loop_position_invalid",explanation:'The tags "'.concat(t,'" are misplaced in the document, for example one of them is in a table and the other one outside the table'),offset:r},n}function P(e,t){var r='Unimplemented tag type "'.concat(e.type,'"');e.module&&(r+=' "'.concat(e.module,'"'));var n=new c(r);throw n.properties={part:e,index:t,id:"unimplemented_tag_type"},n}function R(e){var t=new d("Malformed xml");throw t.properties={part:e,id:"malformed_xml"},t}function D(){var e=new d("You must run `.compile()` before running `.resolveData()`");throw e.properties={id:"resolve_before_compile",explanation:"You must run `.compile()` before running `.resolveData()`"},e}function z(){var e=new d("You should not call .render on a document that had compilation errors");throw e.properties={id:"render_on_invalid_template",explanation:"You should not call .render on a document that had compilation errors"},e}function M(){var e=new d("The filetype for this file could not be identified, is this file corrupted ?");throw e.properties={id:"filetype_not_identified",explanation:"The filetype for this file could not be identified, is this file corrupted ?"},e}function L(e,t){var r=new c("An XML file has invalid xml");throw r.properties={id:"file_has_invalid_xml",content:e,offset:t,explanation:"The docx contains invalid XML, it is most likely corrupt"},r}function U(e){var t=new d('The filetype "'.concat(e,'" is not handled by docxtemplater'));throw t.properties={id:"filetype_not_handled",explanation:'The file you are trying to generate is of type "'.concat(e,'", but only docx and pptx formats are handled'),fileType:e},t}u.prototype=Error.prototype,c.prototype=new u,f.prototype=new u,h.prototype=new u,d.prototype=new u,p.prototype=new u,e.exports={XTError:u,XTTemplateError:c,XTInternalError:d,XTScopeParserError:h,XTAPIVersionError:p,RenderingError:f,XTRenderingError:f,getClosingTagNotMatchOpeningTag:O,getLoopPositionProducesInvalidXMLError:N,getScopeCompilationError:C,getScopeParserExecutionError:I,getUnclosedTagException:w,getUnopenedTagException:v,getUnmatchedLoopException:A,getDuplicateCloseTagException:b,getDuplicateOpenTagException:y,getCorruptCharactersException:x,getInvalidRawXMLValueException:E,getUnbalancedLoopException:S,throwApiVersionError:m,throwFileTypeNotHandled:U,throwFileTypeNotIdentified:M,throwMalformedXml:R,throwMultiError:g,throwExpandNotFound:T,throwRawTagShouldBeOnlyTextInParagraph:k,throwUnimplementedTagType:P,throwXmlTagNotFound:_,throwXmlInvalid:L,throwResolveBeforeCompile:D,throwRenderInvalidTemplate:z}},cadb:function(e,t,r){"use strict";var n="[Content_Types].xml";function i(e,t,r){for(var i={},a=0,o=e.length;a<o;a++){var s=e[a],l=s.getAttribute("ContentType"),u=s.getAttribute("PartName").substr(1);i[u]=l}for(var c=function(e,a){var o=t[e],s=o.getAttribute("ContentType"),l=o.getAttribute("Extension");r.file(/./).map((function(e){var t=e.name;t.slice(t.length-l.length)!==l||i[t]||t===n||(i[t]=s)}))},f=0,h=t.length;f<h;f++)c(f,h);return i}e.exports=i},dd84:function(e,t,r){"use strict";(function(t){e.exports=function(e,r){return"number"===typeof e?t.alloc(e):t.from(e,r)},e.exports.test=function(e){return t.isBuffer(e)}}).call(this,r("b639").Buffer)},ddee:function(e,t,r){"use strict";var n="application/vnd.openxmlformats-officedocument.wordprocessingml.document.main+xml",i="application/vnd.ms-word.document.macroEnabled.main+xml",a="application/vnd.openxmlformats-officedocument.wordprocessingml.template.main+xml",o="application/vnd.ms-word.template.macroEnabledTemplate.main+xml",s="application/vnd.openxmlformats-officedocument.wordprocessingml.header+xml",l="application/vnd.openxmlformats-officedocument.wordprocessingml.footer+xml",u="application/vnd.openxmlformats-officedocument.presentationml.slide+xml",c="application/vnd.openxmlformats-officedocument.presentationml.slideMaster+xml",f="application/vnd.openxmlformats-officedocument.presentationml.slideLayout+xml",h="application/vnd.openxmlformats-officedocument.presentationml.presentation.main+xml",d={docx:[n,i,a,o,s,l],pptx:[u,c,f,h]};e.exports=d},e003:function(e,t,r){var n=r("89a7").NAMESPACE,i=/[A-Z_a-z\xC0-\xD6\xD8-\xF6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD]/,a=new RegExp("[\\-\\.0-9"+i.source.slice(1,-1)+"\\u00B7\\u0300-\\u036F\\u203F-\\u2040]"),o=new RegExp("^"+i.source+a.source+"*(?::"+i.source+a.source+"*)?$"),s=0,l=1,u=2,c=3,f=4,h=5,d=6,p=7;function m(e,t){this.message=e,this.locator=t,Error.captureStackTrace&&Error.captureStackTrace(this,m)}function g(){}function v(e,t,r,i,a){function o(e){if(e>65535){e-=65536;var t=55296+(e>>10),r=56320+(1023&e);return String.fromCharCode(t,r)}return String.fromCharCode(e)}function s(e){var t=e.slice(1,-1);return Object.hasOwnProperty.call(r,t)?r[t]:"#"===t.charAt(0)?o(parseInt(t.substr(1).replace("x","0x"))):(a.error("entity not found:"+e),e)}function l(t){if(t>v){var r=e.substring(v,t).replace(/&#?\w+;/g,s);d&&u(v),i.characters(r,0,t-v),v=t}}function u(t,r){while(t>=f&&(r=h.exec(e)))c=r.index,f=c+r[0].length,d.lineNumber++;d.columnNumber=t-c+1}var c=0,f=0,h=/.*(?:\r\n?|\n)|.*$/g,d=i.locator,p=[{currentNSMap:t}],g={},v=0;while(1){try{var E=e.indexOf("<",v);if(E<0){if(!e.substr(v).match(/^\s*$/)){var S=i.doc,O=S.createTextNode(e.substr(v));S.appendChild(O),i.currentElement=O}return}switch(E>v&&l(E),e.charAt(E+1)){case"/":var C=e.indexOf(">",E+3),I=e.substring(E+2,C).replace(/[ \t\n\r]+$/g,""),N=p.pop();C<0?(I=e.substring(E+2).replace(/[\s<].*/,""),a.error("end tag name: "+I+" is not complete:"+N.tagName),C=E+1+I.length):I.match(/\s</)&&(I=I.replace(/[\s<].*/,""),a.error("end tag name: "+I+" maybe not complete"),C=E+1+I.length);var P=N.localNSMap,R=N.tagName==I,D=R||N.tagName&&N.tagName.toLowerCase()==I.toLowerCase();if(D){if(i.endElement(N.uri,N.localName,I),P)for(var z in P)i.endPrefixMapping(z);R||a.fatalError("end tag name: "+I+" is not match the current start tagName:"+N.tagName)}else p.push(N);C++;break;case"?":d&&u(E),C=k(e,E,i);break;case"!":d&&u(E),C=T(e,E,i,a);break;default:d&&u(E);var M=new A,L=p[p.length-1].currentNSMap,U=(C=b(e,E,M,L,s,a),M.length);if(!M.closed&&x(e,C,M.tagName,g)&&(M.closed=!0,r.nbsp||a.warning("unclosed xml attribute")),d&&U){for(var j=y(d,{}),F=0;F<U;F++){var B=M[F];u(B.offset),B.locator=y(d,{})}i.locator=j,w(M,i,L)&&p.push(M),i.locator=d}else w(M,i,L)&&p.push(M);n.isHTML(M.uri)&&!M.closed?C=_(e,C,M.tagName,s,i):C++}}catch(Z){if(Z instanceof m)throw Z;a.error("element parse error: "+Z),C=-1}C>v?v=C:l(Math.max(E,v)+1)}}function y(e,t){return t.lineNumber=e.lineNumber,t.columnNumber=e.columnNumber,t}function b(e,t,r,i,a,o){function m(e,t,n){r.attributeNames.hasOwnProperty(e)&&o.fatalError("Attribute "+e+" redefined"),r.addValue(e,t.replace(/[\t\n\r]/g," ").replace(/&#?\w+;/g,a),n)}var g,v=++t,y=s;while(1){var b=e.charAt(v);switch(b){case"=":if(y===l)g=e.slice(t,v),y=c;else{if(y!==u)throw new Error("attribute equal must after attrName");y=c}break;case"'":case'"':if(y===c||y===l){if(y===l&&(o.warning('attribute value must after "="'),g=e.slice(t,v)),t=v+1,v=e.indexOf(b,t),!(v>0))throw new Error("attribute value no end '"+b+"' match");w=e.slice(t,v),m(g,w,t-1),y=h}else{if(y!=f)throw new Error('attribute value must after "="');w=e.slice(t,v),m(g,w,t),o.warning('attribute "'+g+'" missed start quot('+b+")!!"),t=v+1,y=h}break;case"/":switch(y){case s:r.setTagName(e.slice(t,v));case h:case d:case p:y=p,r.closed=!0;case f:case l:case u:break;default:throw new Error("attribute invalid close char('/')")}break;case"":return o.error("unexpected end of input"),y==s&&r.setTagName(e.slice(t,v)),v;case">":switch(y){case s:r.setTagName(e.slice(t,v));case h:case d:case p:break;case f:case l:w=e.slice(t,v),"/"===w.slice(-1)&&(r.closed=!0,w=w.slice(0,-1));case u:y===u&&(w=g),y==f?(o.warning('attribute "'+w+'" missed quot(")!'),m(g,w,t)):(n.isHTML(i[""])&&w.match(/^(?:disabled|checked|selected)$/i)||o.warning('attribute "'+w+'" missed value!! "'+w+'" instead!!'),m(w,w,t));break;case c:throw new Error("attribute value missed!!")}return v;case"€":b=" ";default:if(b<=" ")switch(y){case s:r.setTagName(e.slice(t,v)),y=d;break;case l:g=e.slice(t,v),y=u;break;case f:var w=e.slice(t,v);o.warning('attribute "'+w+'" missed quot(")!!'),m(g,w,t);case h:y=d;break}else switch(y){case u:r.tagName;n.isHTML(i[""])&&g.match(/^(?:disabled|checked|selected)$/i)||o.warning('attribute "'+g+'" missed value!! "'+g+'" instead2!!'),m(g,g,t),t=v,y=l;break;case h:o.warning('attribute space is required"'+g+'"!!');case d:y=l,t=v;break;case c:y=f,t=v;break;case p:throw new Error("elements closed character '/' and '>' must be connected to")}}v++}}function w(e,t,r){var i=e.tagName,a=null,o=e.length;while(o--){var s=e[o],l=s.qName,u=s.value,c=l.indexOf(":");if(c>0)var f=s.prefix=l.slice(0,c),h=l.slice(c+1),d="xmlns"===f&&h;else h=l,f=null,d="xmlns"===l&&"";s.localName=h,!1!==d&&(null==a&&(a={},E(r,r={})),r[d]=a[d]=u,s.uri=n.XMLNS,t.startPrefixMapping(d,u))}o=e.length;while(o--){s=e[o];f=s.prefix;f&&("xml"===f&&(s.uri=n.XML),"xmlns"!==f&&(s.uri=r[f||""]))}c=i.indexOf(":");c>0?(f=e.prefix=i.slice(0,c),h=e.localName=i.slice(c+1)):(f=null,h=e.localName=i);var p=e.uri=r[f||""];if(t.startElement(p,h,i,e),!e.closed)return e.currentNSMap=r,e.localNSMap=a,!0;if(t.endElement(p,h,i),a)for(f in a)t.endPrefixMapping(f)}function _(e,t,r,n,i){if(/^(?:script|textarea)$/i.test(r)){var a=e.indexOf("</"+r+">",t),o=e.substring(t+1,a);if(/[&<]/.test(o))return/^script$/i.test(r)?(i.characters(o,0,o.length),a):(o=o.replace(/&#?\w+;/g,n),i.characters(o,0,o.length),a)}return t+1}function x(e,t,r,n){var i=n[r];return null==i&&(i=e.lastIndexOf("</"+r+">"),i<t&&(i=e.lastIndexOf("</"+r)),n[r]=i),i<t}function E(e,t){for(var r in e)t[r]=e[r]}function T(e,t,r,n){var i=e.charAt(t+2);switch(i){case"-":if("-"===e.charAt(t+3)){var a=e.indexOf("--\x3e",t+4);return a>t?(r.comment(e,t+4,a-t-4),a+3):(n.error("Unclosed comment"),-1)}return-1;default:if("CDATA["==e.substr(t+3,6)){a=e.indexOf("]]>",t+9);return r.startCDATA(),r.characters(e,t+9,a-t-9),r.endCDATA(),a+3}var o=S(e,t),s=o.length;if(s>1&&/!doctype/i.test(o[0][0])){var l=o[1][0],u=!1,c=!1;s>3&&(/^public$/i.test(o[2][0])?(u=o[3][0],c=s>4&&o[4][0]):/^system$/i.test(o[2][0])&&(c=o[3][0]));var f=o[s-1];return r.startDTD(l,u,c),r.endDTD(),f.index+f[0].length}}return-1}function k(e,t,r){var n=e.indexOf("?>",t);if(n){var i=e.substring(t,n).match(/^<\?(\S*)\s*([\s\S]*?)\s*$/);if(i){i[0].length;return r.processingInstruction(i[1],i[2]),n+2}return-1}return-1}function A(){this.attributeNames={}}function S(e,t){var r,n=[],i=/'[^']+'|"[^"]+"|[^\s<>\/=]+=?|(\/?\s*>|<)/g;i.lastIndex=t,i.exec(e);while(r=i.exec(e))if(n.push(r),r[1])return n}m.prototype=new Error,m.prototype.name=m.name,g.prototype={parse:function(e,t,r){var n=this.domBuilder;n.startDocument(),E(t,t={}),v(e,t,r,n,this.errorHandler),n.endDocument()}},A.prototype={setTagName:function(e){if(!o.test(e))throw new Error("invalid tagName:"+e);this.tagName=e},addValue:function(e,t,r){if(!o.test(e))throw new Error("invalid attribute:"+e);this.attributeNames[e]=this.length,this[this.length++]={qName:e,value:t,offset:r}},length:0,getLocalName:function(e){return this[e].localName},getLocator:function(e){return this[e].locator},getQName:function(e){return this[e].qName},getURI:function(e){return this[e].uri},getValue:function(e){return this[e].value}},t.XMLReader=g,t.ParseError=m},e192:function(e,t,r){"use strict";function n(e,t){return l(e)||s(e,t)||a(e,t)||i()}function i(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}function a(e,t){if(e){if("string"===typeof e)return o(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);return"Object"===r&&e.constructor&&(r=e.constructor.name),"Map"===r||"Set"===r?Array.from(e):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?o(e,t):void 0}}function o(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n}function s(e,t){var r=null==e?null:"undefined"!==typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=r){var n,i,a=[],o=!0,s=!1;try{for(r=r.call(e);!(o=(n=r.next()).done);o=!0)if(a.push(n.value),t&&a.length===t)break}catch(l){s=!0,i=l}finally{try{o||null==r["return"]||r["return"]()}finally{if(s)throw i}}return a}}function l(e){if(Array.isArray(e))return e}var u=r("c838"),c=u.getUnclosedTagException,f=u.getUnopenedTagException,h=u.getDuplicateOpenTagException,d=u.getDuplicateCloseTagException,p=u.throwMalformedXml,m=u.throwXmlInvalid,g=u.XTTemplateError,v=r("5558"),y=v.isTextStart,b=v.isTextEnd,w=v.wordToUtf8,_=-2,x=0,E=-1,T=1;function k(e,t){return e[0]<=t.offset&&t.offset<e[1]}function A(e,t){return y(e)?(t&&p(e),!0):b(e)?(t||p(e),!1):t}function S(e){var t="",r=1,n=e.indexOf(" ");return"/"===e[e.length-2]?(t="selfclosing",-1===n&&(n=e.length-2)):"/"===e[1]?(r=2,t="end",-1===n&&(n=e.length-1)):(t="start",-1===n&&(n=e.length-1)),{tag:e.slice(r,n),position:t}}function O(e,t,r){for(var n=0,i=e.length,a={},o=0,s=t.length;o<s;o++)a[t[o]]=!0;for(var l=0,u=r.length;l<u;l++)a[r[l]]=!1;var c=[];while(n<i){if(n=e.indexOf("<",n),-1===n)break;var f=n,h=e.indexOf("<",n+1);n=e.indexOf(">",n),(-1===n||-1!==h&&n>h)&&m(e,f);var d=e.slice(f,n+1),p=S(d),g=p.tag,v=p.position,y=a[g];null!=y&&c.push({type:"tag",position:v,text:y,offset:f,value:d,tag:g})}return c}function C(e,t){var r,n=[],i=!1,a={offset:0};e.forEach((function(e){r=t.substr(a.offset,e.offset-a.offset),"start"===e.position&&i||"end"===e.position&&!i?"start"===e.position?(a.offset+a.length===e.offset?(r=t.substr(a.offset,e.offset-a.offset+a.length+4),n.push(h({xtag:r,offset:a.offset}))):n.push(c({xtag:w(r),offset:a.offset})),e.error=!0):(a.offset+a.length===e.offset?(r=t.substr(a.offset-4,e.offset-a.offset+4+a.length),n.push(d({xtag:r,offset:a.offset}))):n.push(f({xtag:r,offset:e.offset})),e.error=!0):i=!i,a=e}));var o={offset:t.length};return r=t.substr(a.offset,o.offset-a.offset),i&&(n.push(c({xtag:w(r),offset:a.offset})),o.error=!0),n}function I(e,t){return-1===e&&-1===t?_:e===t?x:-1===e||-1===t?t<e?E:T:e<t?E:T}function N(e){var t=e.split(" ");if(2!==t.length){var r=new g("New Delimiters cannot be parsed");throw r.properties={id:"change_delimiters_invalid",explanation:"Cannot parser delimiters"},r}var i=n(t,2),a=i[0],o=i[1];if(0===a.length||0===o.length){var s=new g("New Delimiters cannot be parsed");throw s.properties={id:"change_delimiters_invalid",explanation:"Cannot parser delimiters"},s}return[a,o]}function P(e,t){var r=[],i=t.start,a=t.end,o=-1,s=!1;while(1){var l=e.indexOf(i,o+1),u=e.indexOf(a,o+1),c=null,f=void 0,h=I(l,u);if(h===_)return r;if(h===x&&(h=s?T:E),h===T&&(s=!1,o=u,c="end",f=a.length),h===E&&(s=!0,o=l,c="start",f=i.length),"start"!==c||"="!==e[o+i.length])r.push({offset:o,position:c,length:f});else{r.push({offset:l,position:"start",length:i.length,changedelimiter:!0});var d=e.indexOf("=",o+i.length+1),p=e.indexOf(a,d+1);r.push({offset:p,position:"end",length:a.length,changedelimiter:!0});var m=e.substr(o+i.length+1,d-o-i.length-1),g=N(m),v=n(g,2);i=v[0],a=v[1],o=p}}}function R(e,t){var r=e.map((function(e){return e.value})).join(""),n=P(r,t),i=0,a=e.map((function(e){return i+=e.value.length,{offset:i-e.value.length,lIndex:e.lIndex}})),o=C(n,r,a),s=0,l=0,u=a.map((function(t,r){var i=t.offset,a=[i,i+e[r].value.length],o=e[r].value,u=[];while(l<n.length&&k(a,n[l]))u.push(n[l]),l++;var c,f=[],h=0;s>0&&(h=s,s=0),u.forEach((function(e){var t=o.substr(h,e.offset-i-h);if(t.length>0){if(c)return void(e.changedelimiter&&(h=e.offset-i+e.length,c="start"===e.position));f.push({type:"content",value:t}),h+=t.length}var r={type:"delimiter",position:e.position,offset:h+i};if(e.changedelimiter)return c="start"===e.position,void(h=e.offset-i+e.length);f.push(r),h=e.offset-i+e.length})),s=h-o.length;var d=o.substr(h);return d.length>0&&f.push({type:"content",value:d}),f}),this);return{parsed:u,errors:o}}function D(e){return e.filter((function(e){return"content"===e.type&&"insidetag"===e.position}))}function z(e){var t=!1;e.forEach((function(e){t=A(e,t),"content"===e.type&&(e.position=t?"insidetag":"outsidetag"),t&&"content"===e.type&&(e.value=e.value.replace(/>/g,"&gt;"))}))}e.exports={parseDelimiters:R,parse:function(e,t){z(e);var r=R(D(e),t),n=r.parsed,i=r.errors,a=[],o=0,s=0;return e.forEach((function(e){"content"===e.type&&"insidetag"===e.position?(Array.prototype.push.apply(a,n[o].map((function(e){return"content"===e.type&&(e.position="insidetag"),e.lIndex=s++,e}))),o++):(e.lIndex=s++,a.push(e))})),{errors:i,lexed:a}},xmlparse:function(e,t){var r=O(e,t.text,t.other),n=0,i=r.reduce((function(t,r){var i=e.substr(n,r.offset-n);return i.length>0&&t.push({type:"content",value:i}),n=r.offset+r.value.length,delete r.offset,t.push(r),t}),[]),a=e.substr(n);return a.length>0&&i.push({type:"content",value:a}),i}}},e1c8:function(e,t,r){var n=r("89a7"),i=n.NAMESPACE;function a(e){return""!==e}function o(e){return e?e.split(/[\t\n\f\r ]+/).filter(a):[]}function s(e,t){return e.hasOwnProperty(t)||(e[t]=!0),e}function l(e){if(!e)return[];var t=o(e);return Object.keys(t.reduce(s,{}))}function u(e){return function(t){return e&&-1!==e.indexOf(t)}}function c(e,t){for(var r in e)t[r]=e[r]}function f(e,t){var r=e.prototype;if(!(r instanceof t)){function n(){}n.prototype=t.prototype,n=new n,c(r,n),e.prototype=r=n}r.constructor!=e&&("function"!=typeof e&&console.error("unknown Class:"+e),r.constructor=e)}var h={},d=h.ELEMENT_NODE=1,p=h.ATTRIBUTE_NODE=2,m=h.TEXT_NODE=3,g=h.CDATA_SECTION_NODE=4,v=h.ENTITY_REFERENCE_NODE=5,y=h.ENTITY_NODE=6,b=h.PROCESSING_INSTRUCTION_NODE=7,w=h.COMMENT_NODE=8,_=h.DOCUMENT_NODE=9,x=h.DOCUMENT_TYPE_NODE=10,E=h.DOCUMENT_FRAGMENT_NODE=11,T=h.NOTATION_NODE=12,k={},A={},S=(k.INDEX_SIZE_ERR=(A[1]="Index size error",1),k.DOMSTRING_SIZE_ERR=(A[2]="DOMString size error",2),k.HIERARCHY_REQUEST_ERR=(A[3]="Hierarchy request error",3)),O=(k.WRONG_DOCUMENT_ERR=(A[4]="Wrong document",4),k.INVALID_CHARACTER_ERR=(A[5]="Invalid character",5),k.NO_DATA_ALLOWED_ERR=(A[6]="No data allowed",6),k.NO_MODIFICATION_ALLOWED_ERR=(A[7]="No modification allowed",7),k.NOT_FOUND_ERR=(A[8]="Not found",8)),C=(k.NOT_SUPPORTED_ERR=(A[9]="Not supported",9),k.INUSE_ATTRIBUTE_ERR=(A[10]="Attribute in use",10));k.INVALID_STATE_ERR=(A[11]="Invalid state",11),k.SYNTAX_ERR=(A[12]="Syntax error",12),k.INVALID_MODIFICATION_ERR=(A[13]="Invalid modification",13),k.NAMESPACE_ERR=(A[14]="Invalid namespace",14),k.INVALID_ACCESS_ERR=(A[15]="Invalid access",15);function I(e,t){if(t instanceof Error)var r=t;else r=this,Error.call(this,A[e]),this.message=A[e],Error.captureStackTrace&&Error.captureStackTrace(this,I);return r.code=e,t&&(this.message=this.message+": "+t),r}function N(){}function P(e,t){this._node=e,this._refresh=t,R(this)}function R(e){var t=e._node._inc||e._node.ownerDocument._inc;if(e._inc!=t){var r=e._refresh(e._node);pe(e,"length",r.length),c(r,e),e._inc=t}}function D(){}function z(e,t){var r=e.length;while(r--)if(e[r]===t)return r}function M(e,t,r,n){if(n?t[z(t,n)]=r:t[t.length++]=r,e){r.ownerElement=e;var i=e.ownerDocument;i&&(n&&V(i,e,n),X(i,e,r))}}function L(e,t,r){var n=z(t,r);if(!(n>=0))throw I(O,new Error(e.tagName+"@"+r));var i=t.length-1;while(n<i)t[n]=t[++n];if(t.length=i,e){var a=e.ownerDocument;a&&(V(a,e,r),r.ownerElement=null)}}function U(){}function j(){}function F(e){return("<"==e?"&lt;":">"==e&&"&gt;")||"&"==e&&"&amp;"||'"'==e&&"&quot;"||"&#"+e.charCodeAt()+";"}function B(e,t){if(t(e))return!0;if(e=e.firstChild)do{if(B(e,t))return!0}while(e=e.nextSibling)}function Z(){}function X(e,t,r){e&&e._inc++;var n=r.namespaceURI;n===i.XMLNS&&(t._nsMap[r.prefix?r.localName:""]=r.value)}function V(e,t,r,n){e&&e._inc++;var a=r.namespaceURI;a===i.XMLNS&&delete t._nsMap[r.prefix?r.localName:""]}function H(e,t,r){if(e&&e._inc){e._inc++;var n=t.childNodes;if(r)n[n.length++]=r;else{var i=t.firstChild,a=0;while(i)n[a++]=i,i=i.nextSibling;n.length=a,delete n[n.length]}}}function Y(e,t){var r=t.previousSibling,n=t.nextSibling;return r?r.nextSibling=n:e.firstChild=n,n?n.previousSibling=r:e.lastChild=r,t.parentNode=null,t.previousSibling=null,t.nextSibling=null,H(e.ownerDocument,e),t}function q(e,t,r){var n=t.parentNode;if(n&&n.removeChild(t),t.nodeType===E){var i=t.firstChild;if(null==i)return t;var a=t.lastChild}else i=a=t;var o=r?r.previousSibling:e.lastChild;i.previousSibling=o,a.nextSibling=r,o?o.nextSibling=i:e.firstChild=i,null==r?e.lastChild=a:r.previousSibling=a;do{i.parentNode=e}while(i!==a&&(i=i.nextSibling));return H(e.ownerDocument||e,e),t.nodeType==E&&(t.firstChild=t.lastChild=null),t}function G(e,t){return t.parentNode&&t.parentNode.removeChild(t),t.parentNode=e,t.previousSibling=e.lastChild,t.nextSibling=null,t.previousSibling?t.previousSibling.nextSibling=t:e.firstChild=t,e.lastChild=t,H(e.ownerDocument,e,t),t}function $(){this._nsMap={}}function W(){}function K(){}function J(){}function Q(){}function ee(){}function te(){}function re(){}function ne(){}function ie(){}function ae(){}function oe(){}function se(){}function le(e,t){var r=[],n=9==this.nodeType&&this.documentElement||this,i=n.prefix,a=n.namespaceURI;if(a&&null==i){i=n.lookupPrefix(a);if(null==i)var o=[{namespace:a,prefix:null}]}return fe(this,r,e,t,o),r.join("")}function ue(e,t,r){var n=e.prefix||"",a=e.namespaceURI;if(!a)return!1;if("xml"===n&&a===i.XML||a===i.XMLNS)return!1;var o=r.length;while(o--){var s=r[o];if(s.prefix===n)return s.namespace!==a}return!0}function ce(e,t,r){e.push(" ",t,'="',r.replace(/[<&"\t\n\r]/g,F),'"')}function fe(e,t,r,n,a){if(a||(a=[]),n){if(e=n(e),!e)return;if("string"==typeof e)return void t.push(e)}switch(e.nodeType){case d:var o=e.attributes,s=o.length,l=e.firstChild,u=e.tagName;r=i.isHTML(e.namespaceURI)||r;var c=u;if(!r&&!e.prefix&&e.namespaceURI){for(var f,h=0;h<o.length;h++)if("xmlns"===o.item(h).name){f=o.item(h).value;break}if(!f)for(var y=a.length-1;y>=0;y--){var T=a[y];if(""===T.prefix&&T.namespace===e.namespaceURI){f=T.namespace;break}}if(f!==e.namespaceURI)for(y=a.length-1;y>=0;y--){T=a[y];if(T.namespace===e.namespaceURI){T.prefix&&(c=T.prefix+":"+u);break}}}t.push("<",c);for(var k=0;k<s;k++){var A=o.item(k);"xmlns"==A.prefix?a.push({prefix:A.localName,namespace:A.value}):"xmlns"==A.nodeName&&a.push({prefix:"",namespace:A.value})}for(k=0;k<s;k++){A=o.item(k);if(ue(A,r,a)){var S=A.prefix||"",O=A.namespaceURI;ce(t,S?"xmlns:"+S:"xmlns",O),a.push({prefix:S,namespace:O})}fe(A,t,r,n,a)}if(u===c&&ue(e,r,a)){S=e.prefix||"",O=e.namespaceURI;ce(t,S?"xmlns:"+S:"xmlns",O),a.push({prefix:S,namespace:O})}if(l||r&&!/^(?:meta|link|img|br|hr|input)$/i.test(u)){if(t.push(">"),r&&/^script$/i.test(u))while(l)l.data?t.push(l.data):fe(l,t,r,n,a.slice()),l=l.nextSibling;else while(l)fe(l,t,r,n,a.slice()),l=l.nextSibling;t.push("</",c,">")}else t.push("/>");return;case _:case E:l=e.firstChild;while(l)fe(l,t,r,n,a.slice()),l=l.nextSibling;return;case p:return ce(t,e.name,e.value);case m:return t.push(e.data.replace(/[<&]/g,F).replace(/]]>/g,"]]&gt;"));case g:return t.push("<![CDATA[",e.data,"]]>");case w:return t.push("\x3c!--",e.data,"--\x3e");case x:var C=e.publicId,I=e.systemId;if(t.push("<!DOCTYPE ",e.name),C)t.push(" PUBLIC ",C),I&&"."!=I&&t.push(" ",I),t.push(">");else if(I&&"."!=I)t.push(" SYSTEM ",I,">");else{var N=e.internalSubset;N&&t.push(" [",N,"]"),t.push(">")}return;case b:return t.push("<?",e.target," ",e.data,"?>");case v:return t.push("&",e.nodeName,";");default:t.push("??",e.nodeName)}}function he(e,t,r){var n;switch(t.nodeType){case d:n=t.cloneNode(!1),n.ownerDocument=e;case E:break;case p:r=!0;break}if(n||(n=t.cloneNode(!1)),n.ownerDocument=e,n.parentNode=null,r){var i=t.firstChild;while(i)n.appendChild(he(e,i,r)),i=i.nextSibling}return n}function de(e,t,r){var n=new t.constructor;for(var i in t){var a=t[i];"object"!=typeof a&&a!=n[i]&&(n[i]=a)}switch(t.childNodes&&(n.childNodes=new N),n.ownerDocument=e,n.nodeType){case d:var o=t.attributes,s=n.attributes=new D,l=o.length;s._ownerElement=n;for(var u=0;u<l;u++)n.setAttributeNode(de(e,o.item(u),!0));break;case p:r=!0}if(r){var c=t.firstChild;while(c)n.appendChild(de(e,c,r)),c=c.nextSibling}return n}function pe(e,t,r){e[t]=r}I.prototype=Error.prototype,c(k,I),N.prototype={length:0,item:function(e){return this[e]||null},toString:function(e,t){for(var r=[],n=0;n<this.length;n++)fe(this[n],r,e,t);return r.join("")}},P.prototype.item=function(e){return R(this),this[e]},f(P,N),D.prototype={length:0,item:N.prototype.item,getNamedItem:function(e){var t=this.length;while(t--){var r=this[t];if(r.nodeName==e)return r}},setNamedItem:function(e){var t=e.ownerElement;if(t&&t!=this._ownerElement)throw new I(C);var r=this.getNamedItem(e.nodeName);return M(this._ownerElement,this,e,r),r},setNamedItemNS:function(e){var t,r=e.ownerElement;if(r&&r!=this._ownerElement)throw new I(C);return t=this.getNamedItemNS(e.namespaceURI,e.localName),M(this._ownerElement,this,e,t),t},removeNamedItem:function(e){var t=this.getNamedItem(e);return L(this._ownerElement,this,t),t},removeNamedItemNS:function(e,t){var r=this.getNamedItemNS(e,t);return L(this._ownerElement,this,r),r},getNamedItemNS:function(e,t){var r=this.length;while(r--){var n=this[r];if(n.localName==t&&n.namespaceURI==e)return n}return null}},U.prototype={hasFeature:function(e,t){return!0},createDocument:function(e,t,r){var n=new Z;if(n.implementation=this,n.childNodes=new N,n.doctype=r||null,r&&n.appendChild(r),t){var i=n.createElementNS(e,t);n.appendChild(i)}return n},createDocumentType:function(e,t,r){var n=new te;return n.name=e,n.nodeName=e,n.publicId=t||"",n.systemId=r||"",n}},j.prototype={firstChild:null,lastChild:null,previousSibling:null,nextSibling:null,attributes:null,parentNode:null,childNodes:null,ownerDocument:null,nodeValue:null,namespaceURI:null,prefix:null,localName:null,insertBefore:function(e,t){return q(this,e,t)},replaceChild:function(e,t){this.insertBefore(e,t),t&&this.removeChild(t)},removeChild:function(e){return Y(this,e)},appendChild:function(e){return this.insertBefore(e,null)},hasChildNodes:function(){return null!=this.firstChild},cloneNode:function(e){return de(this.ownerDocument||this,this,e)},normalize:function(){var e=this.firstChild;while(e){var t=e.nextSibling;t&&t.nodeType==m&&e.nodeType==m?(this.removeChild(t),e.appendData(t.data)):(e.normalize(),e=t)}},isSupported:function(e,t){return this.ownerDocument.implementation.hasFeature(e,t)},hasAttributes:function(){return this.attributes.length>0},lookupPrefix:function(e){var t=this;while(t){var r=t._nsMap;if(r)for(var n in r)if(r[n]==e)return n;t=t.nodeType==p?t.ownerDocument:t.parentNode}return null},lookupNamespaceURI:function(e){var t=this;while(t){var r=t._nsMap;if(r&&e in r)return r[e];t=t.nodeType==p?t.ownerDocument:t.parentNode}return null},isDefaultNamespace:function(e){var t=this.lookupPrefix(e);return null==t}},c(h,j),c(h,j.prototype),Z.prototype={nodeName:"#document",nodeType:_,doctype:null,documentElement:null,_inc:1,insertBefore:function(e,t){if(e.nodeType==E){var r=e.firstChild;while(r){var n=r.nextSibling;this.insertBefore(r,t),r=n}return e}return null==this.documentElement&&e.nodeType==d&&(this.documentElement=e),q(this,e,t),e.ownerDocument=this,e},removeChild:function(e){return this.documentElement==e&&(this.documentElement=null),Y(this,e)},importNode:function(e,t){return he(this,e,t)},getElementById:function(e){var t=null;return B(this.documentElement,(function(r){if(r.nodeType==d&&r.getAttribute("id")==e)return t=r,!0})),t},getElementsByClassName:function(e){var t=l(e);return new P(this,(function(r){var n=[];return t.length>0&&B(r.documentElement,(function(i){if(i!==r&&i.nodeType===d){var a=i.getAttribute("class");if(a){var o=e===a;if(!o){var s=l(a);o=t.every(u(s))}o&&n.push(i)}}})),n}))},createElement:function(e){var t=new $;t.ownerDocument=this,t.nodeName=e,t.tagName=e,t.localName=e,t.childNodes=new N;var r=t.attributes=new D;return r._ownerElement=t,t},createDocumentFragment:function(){var e=new ae;return e.ownerDocument=this,e.childNodes=new N,e},createTextNode:function(e){var t=new J;return t.ownerDocument=this,t.appendData(e),t},createComment:function(e){var t=new Q;return t.ownerDocument=this,t.appendData(e),t},createCDATASection:function(e){var t=new ee;return t.ownerDocument=this,t.appendData(e),t},createProcessingInstruction:function(e,t){var r=new oe;return r.ownerDocument=this,r.tagName=r.target=e,r.nodeValue=r.data=t,r},createAttribute:function(e){var t=new W;return t.ownerDocument=this,t.name=e,t.nodeName=e,t.localName=e,t.specified=!0,t},createEntityReference:function(e){var t=new ie;return t.ownerDocument=this,t.nodeName=e,t},createElementNS:function(e,t){var r=new $,n=t.split(":"),i=r.attributes=new D;return r.childNodes=new N,r.ownerDocument=this,r.nodeName=t,r.tagName=t,r.namespaceURI=e,2==n.length?(r.prefix=n[0],r.localName=n[1]):r.localName=t,i._ownerElement=r,r},createAttributeNS:function(e,t){var r=new W,n=t.split(":");return r.ownerDocument=this,r.nodeName=t,r.name=t,r.namespaceURI=e,r.specified=!0,2==n.length?(r.prefix=n[0],r.localName=n[1]):r.localName=t,r}},f(Z,j),$.prototype={nodeType:d,hasAttribute:function(e){return null!=this.getAttributeNode(e)},getAttribute:function(e){var t=this.getAttributeNode(e);return t&&t.value||""},getAttributeNode:function(e){return this.attributes.getNamedItem(e)},setAttribute:function(e,t){var r=this.ownerDocument.createAttribute(e);r.value=r.nodeValue=""+t,this.setAttributeNode(r)},removeAttribute:function(e){var t=this.getAttributeNode(e);t&&this.removeAttributeNode(t)},appendChild:function(e){return e.nodeType===E?this.insertBefore(e,null):G(this,e)},setAttributeNode:function(e){return this.attributes.setNamedItem(e)},setAttributeNodeNS:function(e){return this.attributes.setNamedItemNS(e)},removeAttributeNode:function(e){return this.attributes.removeNamedItem(e.nodeName)},removeAttributeNS:function(e,t){var r=this.getAttributeNodeNS(e,t);r&&this.removeAttributeNode(r)},hasAttributeNS:function(e,t){return null!=this.getAttributeNodeNS(e,t)},getAttributeNS:function(e,t){var r=this.getAttributeNodeNS(e,t);return r&&r.value||""},setAttributeNS:function(e,t,r){var n=this.ownerDocument.createAttributeNS(e,t);n.value=n.nodeValue=""+r,this.setAttributeNode(n)},getAttributeNodeNS:function(e,t){return this.attributes.getNamedItemNS(e,t)},getElementsByTagName:function(e){return new P(this,(function(t){var r=[];return B(t,(function(n){n===t||n.nodeType!=d||"*"!==e&&n.tagName!=e||r.push(n)})),r}))},getElementsByTagNameNS:function(e,t){return new P(this,(function(r){var n=[];return B(r,(function(i){i===r||i.nodeType!==d||"*"!==e&&i.namespaceURI!==e||"*"!==t&&i.localName!=t||n.push(i)})),n}))}},Z.prototype.getElementsByTagName=$.prototype.getElementsByTagName,Z.prototype.getElementsByTagNameNS=$.prototype.getElementsByTagNameNS,f($,j),W.prototype.nodeType=p,f(W,j),K.prototype={data:"",substringData:function(e,t){return this.data.substring(e,e+t)},appendData:function(e){e=this.data+e,this.nodeValue=this.data=e,this.length=e.length},insertData:function(e,t){this.replaceData(e,0,t)},appendChild:function(e){throw new Error(A[S])},deleteData:function(e,t){this.replaceData(e,t,"")},replaceData:function(e,t,r){var n=this.data.substring(0,e),i=this.data.substring(e+t);r=n+r+i,this.nodeValue=this.data=r,this.length=r.length}},f(K,j),J.prototype={nodeName:"#text",nodeType:m,splitText:function(e){var t=this.data,r=t.substring(e);t=t.substring(0,e),this.data=this.nodeValue=t,this.length=t.length;var n=this.ownerDocument.createTextNode(r);return this.parentNode&&this.parentNode.insertBefore(n,this.nextSibling),n}},f(J,K),Q.prototype={nodeName:"#comment",nodeType:w},f(Q,K),ee.prototype={nodeName:"#cdata-section",nodeType:g},f(ee,K),te.prototype.nodeType=x,f(te,j),re.prototype.nodeType=T,f(re,j),ne.prototype.nodeType=y,f(ne,j),ie.prototype.nodeType=v,f(ie,j),ae.prototype.nodeName="#document-fragment",ae.prototype.nodeType=E,f(ae,j),oe.prototype.nodeType=b,f(oe,j),se.prototype.serializeToString=function(e,t,r){return le.call(e,t,r)},j.prototype.toString=le;try{if(Object.defineProperty){function me(e){switch(e.nodeType){case d:case E:var t=[];e=e.firstChild;while(e)7!==e.nodeType&&8!==e.nodeType&&t.push(me(e)),e=e.nextSibling;return t.join("");default:return e.nodeValue}}Object.defineProperty(P.prototype,"length",{get:function(){return R(this),this.$$length}}),Object.defineProperty(j.prototype,"textContent",{get:function(){return me(this)},set:function(e){switch(this.nodeType){case d:case E:while(this.firstChild)this.removeChild(this.firstChild);(e||String(e))&&this.appendChild(this.ownerDocument.createTextNode(e));break;default:this.data=e,this.value=e,this.nodeValue=e}}}),pe=function(e,t,r){e["$$"+t]=r}}}catch(ge){}t.DocumentType=te,t.DOMException=I,t.DOMImplementation=U,t.Element=$,t.Node=j,t.NodeList=N,t.XMLSerializer=se},e6bb:function(e,t,r){"use strict";t.STORE={magic:"\0\0",compress:function(e){return e},uncompress:function(e){return e},compressInputType:null,uncompressInputType:null},t.DEFLATE=r("661b")},e85b:function(e,t,r){"use strict";var n=r("ea35"),i=r("0e15b");function a(e,t){this.data=e,t||(this.data=i.string2binary(this.data)),this.length=this.data.length,this.index=0,this.zero=0}a.prototype=new n,a.prototype.byteAt=function(e){return this.data.charCodeAt(this.zero+e)},a.prototype.lastIndexOfSignature=function(e){return this.data.lastIndexOf(e)-this.zero},a.prototype.readData=function(e){this.checkOffset(e);var t=this.data.slice(this.zero+this.index,this.zero+this.index+e);return this.index+=e,t},e.exports=a},ea35:function(e,t,r){"use strict";var n=r("0e15b");function i(){this.data=null,this.length=0,this.index=0,this.zero=0}i.prototype={checkOffset:function(e){this.checkIndex(this.index+e)},checkIndex:function(e){if(this.length<this.zero+e||e<0)throw new Error("End of data reached (data length = "+this.length+", asked index = "+e+"). Corrupted zip ?")},setIndex:function(e){this.checkIndex(e),this.index=e},skip:function(e){this.setIndex(this.index+e)},byteAt:function(){},readInt:function(e){var t,r=0;for(this.checkOffset(e),t=this.index+e-1;t>=this.index;t--)r=(r<<8)+this.byteAt(t);return this.index+=e,r},readString:function(e){return n.transformTo("string",this.readData(e))},readData:function(){},lastIndexOfSignature:function(){},readDate:function(){var e=this.readInt(4);return new Date(1980+(e>>25&127),(e>>21&15)-1,e>>16&31,e>>11&31,e>>5&63,(31&e)<<1)}},e.exports=i},eac6:function(e,t,r){"use strict";var n=r("c48f");function i(e){this.data=e,this.length=this.data.length,this.index=0,this.zero=0}i.prototype=new n,i.prototype.readData=function(e){this.checkOffset(e);var t=this.data.slice(this.zero+this.index,this.zero+this.index+e);return this.index+=e,t},e.exports=i},ed61:function(e,t,r){"use strict";var n=r("0e15b"),i=[0,1996959894,3993919788,2567524794,124634137,1886057615,3915621685,2657392035,249268274,2044508324,3772115230,2547177864,162941995,2125561021,3887607047,2428444049,498536548,1789927666,4089016648,2227061214,450548861,1843258603,4107580753,2211677639,325883990,1684777152,4251122042,2321926636,335633487,1661365465,4195302755,2366115317,997073096,1281953886,3579855332,2724688242,1006888145,1258607687,3524101629,2768942443,901097722,1119000684,3686517206,2898065728,853044451,1172266101,3705015759,2882616665,651767980,1373503546,3369554304,3218104598,565507253,1454621731,3485111705,3099436303,671266974,1594198024,3322730930,2970347812,795835527,1483230225,3244367275,3060149565,1994146192,31158534,2563907772,4023717930,1907459465,112637215,2680153253,3904427059,2013776290,251722036,2517215374,3775830040,2137656763,141376813,2439277719,3865271297,1802195444,476864866,2238001368,4066508878,1812370925,453092731,2181625025,4111451223,1706088902,314042704,2344532202,4240017532,1658658271,366619977,2362670323,4224994405,1303535960,984961486,2747007092,3569037538,1256170817,1037604311,2765210733,3554079995,1131014506,879679996,2909243462,3663771856,1141124467,855842277,2852801631,3708648649,1342533948,654459306,3188396048,3373015174,1466479909,544179635,3110523913,3462522015,1591671054,702138776,2966460450,3352799412,1504918807,783551873,3082640443,3233442989,3988292384,2596254646,62317068,1957810842,3939845945,2647816111,81470997,1943803523,3814918930,2489596804,225274430,2053790376,3826175755,2466906013,167816743,2097651377,4027552580,2265490386,503444072,1762050814,4150417245,2154129355,426522225,1852507879,4275313526,2312317920,282753626,1742555852,4189708143,2394877945,397917763,1622183637,3604390888,2714866558,953729732,1340076626,3518719985,2797360999,1068828381,1219638859,3624741850,2936675148,906185462,1090812512,3747672003,2825379669,829329135,1181335161,3412177804,3160834842,628085408,1382605366,3423369109,3138078467,570562233,1426400815,3317316542,2998733608,733239954,1555261956,3268935591,3050360625,752459403,1541320221,2607071920,3965973030,1969922972,40735498,2617837225,3943577151,1913087877,83908371,2512341634,3803740692,2075208622,213261112,2463272603,3855990285,2094854071,198958881,2262029012,4057260610,1759359992,534414190,2176718541,4139329115,1873836001,414664567,2282248934,4279200368,1711684554,285281116,2405801727,4167216745,1634467795,376229701,2685067896,3608007406,1308918612,956543938,2808555105,3495958263,1231636301,1047427035,2932959818,3654703836,1088359270,936918e3,2847714899,3736837829,1202900863,817233897,3183342108,3401237130,1404277552,615818150,3134207493,3453421203,1423857449,601450431,3009837614,3294710456,1567103746,711928724,3020668471,3272380065,1510334235,755167117];e.exports=function(e,t){if("undefined"===typeof e||!e.length)return 0;var r="string"!==n.getTypeOf(e);"undefined"==typeof t&&(t=0);var a=0,o=0,s=0;t^=-1;for(var l=0,u=e.length;l<u;l++)s=r?e[l]:e.charCodeAt(l),o=255&(t^s),a=i[o],t=t>>>8^a;return-1^t}},f261:function(e,t,r){"use strict";function n(e,t){return t instanceof Error?Object.getOwnPropertyNames(t).concat("stack").reduce((function(e,r){return e[r]=t[r],"stack"===r&&(e[r]=t[r].toString()),e}),{}):t}function i(e,t){if(console.log(JSON.stringify({error:e},n,"json"===t?2:null)),e.properties&&e.properties.errors instanceof Array){var r=e.properties.errors.map((function(e){return e.properties.explanation})).join("\n");console.log("errorMessages",r)}}e.exports=i},f418:function(e,t,r){"use strict";function n(e,t){for(var r=-1,n=0,i=e.length;n<i;n++)t[n]>=e[n].length||(-1===r||e[n][t[n]].offset<e[r][t[r]].offset)&&(r=n);return r}e.exports=function(e){var t=e.reduce((function(e,t){return e+t.length}),0);e=e.filter((function(e){return e.length>0}));var r=new Array(t),i=e.map((function(){return 0})),a=0;while(a<=t-1){var o=n(e,i);r[a]=e[o][i[o]],i[o]++,a++}return r}},fbf9:function(e,t,r){"use strict";var n=["modules"];function i(e){return i="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},i(e)}function a(e,t){if(null==e)return{};var r,n,i=o(e,t);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(n=0;n<a.length;n++)r=a[n],t.indexOf(r)>=0||Object.prototype.propertyIsEnumerable.call(e,r)&&(i[r]=e[r])}return i}function o(e,t){if(null==e)return{};var r,n,i={},a=Object.keys(e);for(n=0;n<a.length;n++)r=a[n],t.indexOf(r)>=0||(i[r]=e[r]);return i}function s(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function l(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}function u(e,t,r){return t&&l(e.prototype,t),r&&l(e,r),Object.defineProperty(e,"prototype",{writable:!1}),e}var c=r("5558");c.traits=r("3c86"),c.moduleWrapper=r("50a1");var f=r("0dc8"),h=r("c838"),d=h.throwMultiError,p=h.throwResolveBeforeCompile,m=h.throwRenderInvalidTemplate,g=r("f261"),v=r("cadb"),y="[Content_Types].xml",b=r("c816"),w=r("e192"),_=c.defaults,x=c.str2xml,E=c.xml2str,T=c.moduleWrapper,k=c.concatArrays,A=c.uniq,S=r("c838"),O=S.XTInternalError,C=S.throwFileTypeNotIdentified,I=S.throwFileTypeNotHandled,N=S.throwApiVersionError,P=[3,31,0],R=function(){function e(t){var r=this,i=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},o=i.modules,l=void 0===o?[]:o,u=a(i,n);if(s(this,e),!Array.isArray(l))throw new Error("The modules argument of docxtemplater's constructor must be an array");if(this.scopeManagers={},this.compiled={},this.modules=[b()],this.setOptions(u),l.forEach((function(e){r.attachModule(e)})),arguments.length>0){if(!t||!t.files||"function"!==typeof t.file)throw new Error("The first argument of docxtemplater's constructor must be a valid zip file (jszip v2 or pizzip v3)");this.loadZip(t),this.modules=this.modules.filter((function(e){if(e.supportedFileTypes){if(!Array.isArray(e.supportedFileTypes))throw new Error("The supportedFileTypes field of the module must be an array");var t=-1!==e.supportedFileTypes.indexOf(r.fileType);return t||e.on("detached"),t}return!0})),this.compile(),this.v4Constructor=!0}}return u(e,[{key:"verifyApiVersion",value:function(e){return e=e.split(".").map((function(e){return parseInt(e,10)})),3!==e.length&&N("neededVersion is not a valid version",{neededVersion:e,explanation:"the neededVersion must be an array of length 3"}),e[0]!==P[0]&&N("The major api version do not match, you probably have to update docxtemplater with npm install --save docxtemplater",{neededVersion:e,currentModuleApiVersion:P,explanation:"moduleAPIVersionMismatch : needed=".concat(e.join("."),", current=").concat(P.join("."))}),e[1]>P[1]&&N("The minor api version is not uptodate, you probably have to update docxtemplater with npm install --save docxtemplater",{neededVersion:e,currentModuleApiVersion:P,explanation:"moduleAPIVersionMismatch : needed=".concat(e.join("."),", current=").concat(P.join("."))}),e[1]===P[1]&&e[2]>P[2]&&N("The patch api version is not uptodate, you probably have to update docxtemplater with npm install --save docxtemplater",{neededVersion:e,currentModuleApiVersion:P,explanation:"moduleAPIVersionMismatch : needed=".concat(e.join("."),", current=").concat(P.join("."))}),!0}},{key:"setModules",value:function(e){this.modules.forEach((function(t){t.set(e)}))}},{key:"sendEvent",value:function(e){this.modules.forEach((function(t){t.on(e)}))}},{key:"attachModule",value:function(e){if(this.v4Constructor)throw new O("attachModule() should not be called manually when using the v4 constructor");var t=i(e);if("function"===t)throw new O("Cannot attach a class/function as a module. Most probably you forgot to instantiate the module by using `new` on the module.");if(!e||"object"!==t)throw new O("Cannot attachModule with a falsy value");if(e.requiredAPIVersion&&this.verifyApiVersion(e.requiredAPIVersion),!0===e.attached){if("function"!==typeof e.clone)throw new Error('Cannot attach a module that was already attached : "'.concat(e.name,'". The most likely cause is that you are instantiating the module at the root level, and using it for multiple instances of Docxtemplater'));e=e.clone()}e.attached=!0;var r=T(e);return this.modules.push(r),r.on("attached"),this}},{key:"setOptions",value:function(e){var t=this;if(this.v4Constructor)throw new Error("setOptions() should not be called manually when using the v4 constructor");if(!e)throw new Error("setOptions should be called with an object as first parameter");return this.options={},Object.keys(_).forEach((function(r){var n=_[r];t.options[r]=null!=e[r]?e[r]:n,t[r]=t.options[r]})),this.delimiters.start=c.utf8ToWord(this.delimiters.start),this.delimiters.end=c.utf8ToWord(this.delimiters.end),this.zip&&this.updateFileTypeConfig(),this}},{key:"loadZip",value:function(e){if(this.v4Constructor)throw new Error("loadZip() should not be called manually when using the v4 constructor");if(e.loadAsync)throw new O("Docxtemplater doesn't handle JSZip version >=3, please use pizzip");return this.zip=e,this.updateFileTypeConfig(),this.modules=k([this.fileTypeConfig.baseModules.map((function(e){return e()})),this.modules]),this}},{key:"precompileFile",value:function(e){var t=this.createTemplateClass(e);t.preparse(),this.compiled[e]=t}},{key:"compileFile",value:function(e){this.compiled[e].parse()}},{key:"getScopeManager",value:function(e,t,r){return this.scopeManagers[e]||(this.scopeManagers[e]=f({tags:r||{},parser:this.parser,cachedParsers:t.cachedParsers})),this.scopeManagers[e]}},{key:"resolveData",value:function(e){var t=this,r=[];return Object.keys(this.compiled).length||p(),Promise.resolve(e).then((function(e){return t.setData(e),t.setModules({data:t.data,Lexer:w}),t.mapper=t.modules.reduce((function(e,t){return t.getRenderedMap(e)}),{}),Promise.all(Object.keys(t.mapper).map((function(e){var n=t.mapper[e],i=n.from,a=n.data;return Promise.resolve(a).then((function(n){var a=t.compiled[i];return a.filePath=e,a.scopeManager=t.getScopeManager(e,a,n),a.resolveTags(n).then((function(e){return a.scopeManager.finishedResolving=!0,e}),(function(e){Array.prototype.push.apply(r,e)}))}))}))).then((function(e){return 0!==r.length&&(t.options.errorLogging&&g(r,t.options.errorLogging),d(r)),k(e)}))}))}},{key:"compile",value:function(){var e=this;return Object.keys(this.compiled).length||(this.options=this.modules.reduce((function(t,r){return r.optionsTransformer(t,e)}),this.options),this.options.xmlFileNames=A(this.options.xmlFileNames),this.xmlDocuments=this.options.xmlFileNames.reduce((function(t,r){var n=e.zip.files[r].asText();return t[r]=x(n),t}),{}),this.setModules({zip:this.zip,xmlDocuments:this.xmlDocuments}),this.getTemplatedFiles(),this.templatedFiles.forEach((function(t){null!=e.zip.files[t]&&e.precompileFile(t)})),this.templatedFiles.forEach((function(t){null!=e.zip.files[t]&&e.compileFile(t)})),this.setModules({compiled:this.compiled}),D(this)),this}},{key:"updateFileTypeConfig",value:function(){var t,r=this;this.zip.files.mimetype&&(t="odt");var n=this.zip.files[y];this.targets=[];var i=n?x(n.asText()):null,a=i?i.getElementsByTagName("Override"):null,o=i?i.getElementsByTagName("Default"):null;return i&&(this.filesContentTypes=v(a,o,this.zip),this.invertedContentTypes=c.invertMap(this.filesContentTypes),this.setModules({contentTypes:this.contentTypes,invertedContentTypes:this.invertedContentTypes})),this.modules.forEach((function(e){t=e.getFileType({zip:r.zip,contentTypes:n,contentTypeXml:i,overrides:a,defaults:o,doc:r})||t})),"odt"===t&&I(t),t||C(),this.fileType=t,this.fileTypeConfig=this.options.fileTypeConfig||this.fileTypeConfig||e.FileTypeConfig[this.fileType](),this}},{key:"renderAsync",value:function(e){var t=this;return this.resolveData(e).then((function(){return t.render()}))}},{key:"render",value:function(e){var t=this;return this.compile(),this.errors.length>0&&m(),e&&this.setData(e),this.setModules({data:this.data,Lexer:w}),this.mapper=this.mapper||this.modules.reduce((function(e,t){return t.getRenderedMap(e)}),{}),Object.keys(this.mapper).forEach((function(e){var r=t.mapper[e],n=r.from,i=r.data,a=t.compiled[n];a.scopeManager=t.getScopeManager(e,a,i),a.render(e),t.zip.file(e,a.content,{createFolders:!0})})),D(this),this.sendEvent("syncing-zip"),this.syncZip(),this}},{key:"syncZip",value:function(){var e=this;Object.keys(this.xmlDocuments).forEach((function(t){e.zip.remove(t);var r=E(e.xmlDocuments[t]);return e.zip.file(t,r,{createFolders:!0})}))}},{key:"setData",value:function(e){return this.data=e,this}},{key:"getZip",value:function(){return this.zip}},{key:"createTemplateClass",value:function(e){var t=this.zip.files[e].asText();return this.createTemplateClassFromContent(t,e)}},{key:"createTemplateClassFromContent",value:function(t,r){var n=this,i={filePath:r,contentType:this.filesContentTypes[r]};return Object.keys(_).concat(["filesContentTypes","fileTypeConfig","modules"]).forEach((function(e){i[e]=n[e]})),new e.XmlTemplater(t,i)}},{key:"getFullText",value:function(e){return this.createTemplateClass(e||this.fileTypeConfig.textPath(this)).getFullText()}},{key:"getTemplatedFiles",value:function(){var e=this;return this.templatedFiles=this.fileTypeConfig.getTemplatedFiles(this.zip),this.targets.forEach((function(t){e.templatedFiles.push(t)})),this.templatedFiles=A(this.templatedFiles),this.templatedFiles}}]),e}();function D(e){var t=e.compiled;e.errors=k(Object.keys(t).map((function(e){return t[e].allErrors}))),0!==e.errors.length&&(e.options.errorLogging&&g(e.errors,e.options.errorLogging),d(e.errors))}R.DocUtils=c,R.Errors=r("c838"),R.XmlTemplater=r("8a20"),R.FileTypeConfig=r("5114"),R.XmlMatcher=r("4072"),e.exports=R},fdf0:function(e,t,r){"use strict";(function(e){if(t.base64=!0,t.array=!0,t.string=!0,t.arraybuffer="undefined"!==typeof ArrayBuffer&&"undefined"!==typeof Uint8Array,t.nodebuffer="undefined"!==typeof e,t.uint8array="undefined"!==typeof Uint8Array,"undefined"===typeof ArrayBuffer)t.blob=!1;else{var r=new ArrayBuffer(0);try{t.blob=0===new Blob([r],{type:"application/zip"}).size}catch(a){try{var n=window.BlobBuilder||window.WebKitBlobBuilder||window.MozBlobBuilder||window.MSBlobBuilder,i=new n;i.append(r),t.blob=0===i.getBlob("application/zip").size}catch(a){t.blob=!1}}}}).call(this,r("b639").Buffer)}}]);