sheetjs/xlsx.core.min.js

16 lines
422 KiB
JavaScript
Raw Normal View History

2016-12-31 08:11:36 +00:00
/* xlsx.js (C) 2013-present SheetJS -- http://sheetjs.com */
2017-08-05 06:58:40 +00:00
var DO_NOT_EXPORT_CODEPAGE=true;var DO_NOT_EXPORT_JSZIP=true;(function(e){if("object"==typeof exports&&"undefined"!=typeof module&&"undefined"==typeof DO_NOT_EXPORT_JSZIP)module.exports=e();else if("function"==typeof define&&define.amd){JSZip=e();define([],e)}else{var r;"undefined"!=typeof window?r=window:"undefined"!=typeof global?r=global:"undefined"!=typeof $&&$.global?r=$.global:"undefined"!=typeof self&&(r=self),r.JSZip=e()}})(function(){var e,r,t;return function a(e,r,t){function n(s,f){if(!r[s]){if(!e[s]){var o=typeof require=="function"&&require;if(!f&&o)return o(s,!0);if(i)return i(s,!0);throw new Error("Cannot find module '"+s+"'")}var l=r[s]={exports:{}};e[s][0].call(l.exports,function(r){var t=e[s][1][r];return n(t?t:r)},l,l.exports,a,e,r,t)}return r[s].exports}var i=typeof require=="function"&&require;for(var s=0;s<t.length;s++)n(t[s]);return n}({1:[function(e,r,t){"use strict";var a="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=";t.encode=function(e,r){var t="";var n,i,s,f,o,l,c;var u=0;while(u<e.length){n=e.charCodeAt(u++);i=e.charCodeAt(u++);s=e.charCodeAt(u++);f=n>>2;o=(n&3)<<4|i>>4;l=(i&15)<<2|s>>6;c=s&63;if(isNaN(i)){l=c=64}else if(isNaN(s)){c=64}t=t+a.charAt(f)+a.charAt(o)+a.charAt(l)+a.charAt(c)}return t};t.decode=function(e,r){var t="";var n,i,s;var f,o,l,c;var u=0;e=e.replace(/[^A-Za-z0-9\+\/\=]/g,"");while(u<e.length){f=a.indexOf(e.charAt(u++));o=a.indexOf(e.charAt(u++));l=a.indexOf(e.charAt(u++));c=a.indexOf(e.charAt(u++));n=f<<2|o>>4;i=(o&15)<<4|l>>2;s=(l&3)<<6|c;t=t+String.fromCharCode(n);if(l!=64){t=t+String.fromCharCode(i)}if(c!=64){t=t+String.fromCharCode(s)}}return t}},{}],2:[function(e,r,t){"use strict";function a(){this.compressedSize=0;this.uncompressedSize=0;this.crc32=0;this.compressionMethod=null;this.compressedContent=null}a.prototype={getContent:function(){return null},getCompressedContent:function(){return null}};r.exports=a},{}],3:[function(e,r,t){"use strict";t.STORE={magic:"\0\0",compress:function(e){return e},uncompress:function(e){return e},compressInputType:null,uncompressInputType:null};t.DEFLATE=e("./flate")},{"./flate":8}],4:[function(e,r,t){"use strict";var a=e("./utils");var n=[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,628
2017-08-19 23:13:21 +00:00
}return null}};r.exports=f},{"./compressedObject":2,"./object":13,"./stringReader":15,"./utils":21}],24:[function(e,r,t){"use strict";var a=e("./lib/utils/common").assign;var n=e("./lib/deflate");var i=e("./lib/inflate");var s=e("./lib/zlib/constants");var f={};a(f,n,i,s);r.exports=f},{"./lib/deflate":25,"./lib/inflate":26,"./lib/utils/common":27,"./lib/zlib/constants":30}],25:[function(e,r,t){"use strict";var a=e("./zlib/deflate.js");var n=e("./utils/common");var i=e("./utils/strings");var s=e("./zlib/messages");var f=e("./zlib/zstream");var o=0;var l=4;var c=0;var u=1;var h=-1;var d=0;var v=8;var p=function(e){this.options=n.assign({level:h,method:v,chunkSize:16384,windowBits:15,memLevel:8,strategy:d,to:""},e||{});var r=this.options;if(r.raw&&r.windowBits>0){r.windowBits=-r.windowBits}else if(r.gzip&&r.windowBits>0&&r.windowBits<16){r.windowBits+=16}this.err=0;this.msg="";this.ended=false;this.chunks=[];this.strm=new f;this.strm.avail_out=0;var t=a.deflateInit2(this.strm,r.level,r.method,r.windowBits,r.memLevel,r.strategy);if(t!==c){throw new Error(s[t])}if(r.header){a.deflateSetHeader(this.strm,r.header)}};p.prototype.push=function(e,r){var t=this.strm;var s=this.options.chunkSize;var f,h;if(this.ended){return false}h=r===~~r?r:r===true?l:o;if(typeof e==="string"){t.input=i.string2buf(e)}else{t.input=e}t.next_in=0;t.avail_in=t.input.length;do{if(t.avail_out===0){t.output=new n.Buf8(s);t.next_out=0;t.avail_out=s}f=a.deflate(t,h);if(f!==u&&f!==c){this.onEnd(f);this.ended=true;return false}if(t.avail_out===0||t.avail_in===0&&h===l){if(this.options.to==="string"){this.onData(i.buf2binstring(n.shrinkBuf(t.output,t.next_out)))}else{this.onData(n.shrinkBuf(t.output,t.next_out))}}}while((t.avail_in>0||t.avail_out===0)&&f!==u);if(h===l){f=a.deflateEnd(this.strm);this.onEnd(f);this.ended=true;return f===c}return true};p.prototype.onData=function(e){this.chunks.push(e)};p.prototype.onEnd=function(e){if(e===c){if(this.options.to==="string"){this.result=this.chunks.join("")}else{this.result=n.flattenChunks(this.chunks)}}this.chunks=[];this.err=e;this.msg=this.strm.msg};function b(e,r){var t=new p(r);t.push(e,true);if(t.err){throw t.msg}return t.result}function m(e,r){r=r||{};r.raw=true;return b(e,r)}function g(e,r){r=r||{};r.gzip=true;return b(e,r)}t.Deflate=p;t.deflate=b;t.deflateRaw=m;t.gzip=g},{"./utils/common":27,"./utils/strings":28,"./zlib/deflate.js":32,"./zlib/messages":37,"./zlib/zstream":39}],26:[function(e,r,t){"use strict";var a=e("./zlib/inflate.js");var n=e("./utils/common");var i=e("./utils/strings");var s=e("./zlib/constants");var f=e("./zlib/messages");var o=e("./zlib/zstream");var l=e("./zlib/gzheader");var c=function(e){this.options=n.assign({chunkSize:16384,windowBits:0,to:""},e||{});var r=this.options;if(r.raw&&r.windowBits>=0&&r.windowBits<16){r.windowBits=-r.windowBits;if(r.windowBits===0){r.windowBits=-15}}if(r.windowBits>=0&&r.windowBits<16&&!(e&&e.windowBits)){r.windowBits+=32}if(r.windowBits>15&&r.windowBits<48){if((r.windowBits&15)===0){r.windowBits|=15}}this.err=0;this.msg="";this.ended=false;this.chunks=[];this.strm=new o;this.strm.avail_out=0;var t=a.inflateInit2(this.strm,r.windowBits);if(t!==s.Z_OK){throw new Error(f[t])}this.header=new l;a.inflateGetHeader(this.strm,this.header)};c.prototype.push=function(e,r){var t=this.strm;var f=this.options.chunkSize;var o,l;var c,u,h;if(this.ended){return false}l=r===~~r?r:r===true?s.Z_FINISH:s.Z_NO_FLUSH;if(typeof e==="string"){t.input=i.binstring2buf(e)}else{t.input=e}t.next_in=0;t.avail_in=t.input.length;do{if(t.avail_out===0){t.output=new n.Buf8(f);t.next_out=0;t.avail_out=f}o=a.inflate(t,s.Z_NO_FLUSH);if(o!==s.Z_STREAM_END&&o!==s.Z_OK){this.onEnd(o);this.ended=true;return false}if(t.next_out){if(t.avail_out===0||o===s.Z_STREAM_END||t.avail_in===0&&l===s.Z_FINISH){if(this.options.to==="string"){c=i.utf8border(t.output,t.next_out);u=t.next_out-c;h=i.buf2string(t.output,c);t.next_out=u;t.avail_out=f-u;if(u){n.arraySet(t.output,t.output,c,u,0)}this.onData(h)}else{this.onData(n.shrinkBuf(t.output,t.next_out))}}}}while(t.avail_in>0&&o!==s.Z_STREAM_END);if(o==
fe>>>=oe&7;oe-=oe&7;while(oe<32){if(ie===0){break e}ie--;fe+=ee[te++]<<oe;oe+=8}if((fe&65535)!==(fe>>>16^65535)){e.msg="invalid stored block lengths";t.mode=Q;break}t.length=fe&65535;fe=0;oe=0;t.mode=N;if(r===d){break e};case N:t.mode=L;case L:ue=t.length;if(ue){if(ue>ie){ue=ie}if(ue>se){ue=se}if(ue===0){break e}a.arraySet(re,ee,te,ue,ae);ie-=ue;te+=ue;se-=ue;ae+=ue;t.length-=ue;break}t.mode=O;break;case M:while(oe<14){if(ie===0){break e}ie--;fe+=ee[te++]<<oe;oe+=8}t.nlen=(fe&31)+257;fe>>>=5;oe-=5;t.ndist=(fe&31)+1;fe>>>=5;oe-=5;t.ncode=(fe&15)+4;fe>>>=4;oe-=4;if(t.nlen>286||t.ndist>30){e.msg="too many length or distance symbols";t.mode=Q;break}t.have=0;t.mode=U;case U:while(t.have<t.ncode){while(oe<3){if(ie===0){break e}ie--;fe+=ee[te++]<<oe;oe+=8}t.lens[Ae[t.have++]]=fe&7;fe>>>=3;oe-=3}while(t.have<19){t.lens[Ae[t.have++]]=0}t.lencode=t.lendyn;t.lenbits=7;Te={bits:t.lenbits};Ce=f(o,t.lens,0,19,t.lencode,0,t.work,Te);t.lenbits=Te.bits;if(Ce){e.msg="invalid code lengths set";t.mode=Q;break}t.have=0;t.mode=H;case H:while(t.have<t.nlen+t.ndist){for(;;){be=t.lencode[fe&(1<<t.lenbits)-1];me=be>>>24;ge=be>>>16&255;Ee=be&65535;if(me<=oe){break}if(ie===0){break e}ie--;fe+=ee[te++]<<oe;oe+=8}if(Ee<16){fe>>>=me;oe-=me;t.lens[t.have++]=Ee}else{if(Ee===16){xe=me+2;while(oe<xe){if(ie===0){break e}ie--;fe+=ee[te++]<<oe;oe+=8}fe>>>=me;oe-=me;if(t.have===0){e.msg="invalid bit length repeat";t.mode=Q;break}Be=t.lens[t.have-1];ue=3+(fe&3);fe>>>=2;oe-=2}else if(Ee===17){xe=me+3;while(oe<xe){if(ie===0){break e}ie--;fe+=ee[te++]<<oe;oe+=8}fe>>>=me;oe-=me;Be=0;ue=3+(fe&7);fe>>>=3;oe-=3}else{xe=me+7;while(oe<xe){if(ie===0){break e}ie--;fe+=ee[te++]<<oe;oe+=8}fe>>>=me;oe-=me;Be=0;ue=11+(fe&127);fe>>>=7;oe-=7}if(t.have+ue>t.nlen+t.ndist){e.msg="invalid bit length repeat";t.mode=Q;break}while(ue--){t.lens[t.have++]=Be}}}if(t.mode===Q){break}if(t.lens[256]===0){e.msg="invalid code -- missing end-of-block";t.mode=Q;break}t.lenbits=9;Te={bits:t.lenbits};Ce=f(l,t.lens,0,t.nlen,t.lencode,0,t.work,Te);t.lenbits=Te.bits;if(Ce){e.msg="invalid literal/lengths set";t.mode=Q;break}t.distbits=6;t.distcode=t.distdyn;Te={bits:t.distbits};Ce=f(c,t.lens,t.nlen,t.ndist,t.distcode,0,t.work,Te);t.distbits=Te.bits;if(Ce){e.msg="invalid distances set";t.mode=Q;break}t.mode=W;if(r===d){break e};case W:t.mode=V;case V:if(ie>=6&&se>=258){e.next_out=ae;e.avail_out=se;e.next_in=te;e.avail_in=ie;t.hold=fe;t.bits=oe;s(e,ce);ae=e.next_out;re=e.output;se=e.avail_out;te=e.next_in;ee=e.input;ie=e.avail_in;fe=t.hold;oe=t.bits;if(t.mode===O){t.back=-1}break}t.back=0;for(;;){be=t.lencode[fe&(1<<t.lenbits)-1];me=be>>>24;ge=be>>>16&255;Ee=be&65535;if(me<=oe){break}if(ie===0){break e}ie--;fe+=ee[te++]<<oe;oe+=8}if(ge&&(ge&240)===0){ke=me;Se=ge;we=Ee;for(;;){be=t.lencode[we+((fe&(1<<ke+Se)-1)>>ke)];me=be>>>24;ge=be>>>16&255;Ee=be&65535;if(ke+me<=oe){break}if(ie===0){break e}ie--;fe+=ee[te++]<<oe;oe+=8}fe>>>=ke;oe-=ke;t.back+=ke}fe>>>=me;oe-=me;t.back+=me;t.length=Ee;if(ge===0){t.mode=K;break}if(ge&32){t.back=-1;t.mode=O;break}if(ge&64){e.msg="invalid literal/length code";t.mode=Q;break}t.extra=ge&15;t.mode=z;case z:if(t.extra){xe=t.extra;while(oe<xe){if(ie===0){break e}ie--;fe+=ee[te++]<<oe;oe+=8}t.length+=fe&(1<<t.extra)-1;fe>>>=t.extra;oe-=t.extra;t.back+=t.extra}t.was=t.length;t.mode=X;case X:for(;;){be=t.distcode[fe&(1<<t.distbits)-1];me=be>>>24;ge=be>>>16&255;Ee=be&65535;if(me<=oe){break}if(ie===0){break e}ie--;fe+=ee[te++]<<oe;oe+=8}if((ge&240)===0){ke=me;Se=ge;we=Ee;for(;;){be=t.distcode[we+((fe&(1<<ke+Se)-1)>>ke)];me=be>>>24;ge=be>>>16&255;Ee=be&65535;if(ke+me<=oe){break}if(ie===0){break e}ie--;fe+=ee[te++]<<oe;oe+=8}fe>>>=ke;oe-=ke;t.back+=ke}fe>>>=me;oe-=me;t.back+=me;if(ge&64){e.msg="invalid distance code";t.mode=Q;break}t.offset=Ee;t.extra=ge&15;t.mode=G;case G:if(t.extra){xe=t.extra;while(oe<xe){if(ie===0){break e}ie--;fe+=ee[te++]<<oe;oe+=8}t.offset+=fe&(1<<t.extra)-1;fe>>>=t.extra;oe-=t.extra;t.back+=t.extra}if(t.offset>t.dmax){e.msg="invalid distance too far back";t.mode=Q;break}t.mode=j;case j:if(se===0){break e}ue=ce-se;if(t.offset>ue){ue=t.offset-ue;if(ue>t.whave)
return m(s.substr(0,s.length-l.length))+l}if(u=s.match(/^([#0]+)\.([#0]+)$/)){l=""+f.toFixed(Math.min(u[2].length,10)).replace(/([^0])0+$/,"$1");g=l.indexOf(".");var I=s.indexOf(".")-g,y=s.length-l.length-I;return m(s.substr(0,I)+l+s.substr(s.length-y))}if(u=s.match(/^00,000\.([#0]*0)$/)){return f<0?"-"+A(e,s,-f):T(""+f).replace(/^\d,\d{3}$/,"0$&").replace(/^\d*$/,function(e){return"00,"+(e.length<3?a(0,3-e.length):"")+e})+"."+a(0,u[1].length)}switch(s){case"###,###":;case"##,###":;case"#,###":var R=T(""+k);return R!=="0"?S+R:"";default:if(s.match(/\.[0#?]*$/))return A(e,s.slice(0,s.lastIndexOf(".")),f)+m(s.slice(s.lastIndexOf(".")));}throw new Error("unsupported format |"+s+"|")}return function I(e,r,t){return(t|0)===t?A(e,r,t):w(e,r,t)}}();function A(e){var r=[];var t=false;for(var a=0,n=0;a<e.length;++a)switch(e.charCodeAt(a)){case 34:t=!t;break;case 95:;case 42:;case 92:++a;break;case 59:r[r.length]=e.substr(n,a-n);n=a+1;}r[r.length]=e.substr(n);if(t===true)throw new Error("Format |"+e+"| unterminated string ");return r}e._split=A;var I=/\[[HhMmSs]*\]/;function y(e){var r=0,t="",a="";while(r<e.length){switch(t=e.charAt(r)){case"G":if(c(e,r))r+=6;r++;break;case'"':for(;e.charCodeAt(++r)!==34&&r<e.length;)++r;++r;break;case"\\":r+=2;break;case"_":r+=2;break;case"@":++r;break;case"B":;case"b":if(e.charAt(r+1)==="1"||e.charAt(r+1)==="2")return true;case"M":;case"D":;case"Y":;case"H":;case"S":;case"E":;case"m":;case"d":;case"y":;case"h":;case"s":;case"e":;case"g":return true;case"A":;case"a":if(e.substr(r,3).toUpperCase()==="A/P")return true;if(e.substr(r,5).toUpperCase()==="AM/PM")return true;++r;break;case"[":a=t;while(e.charAt(r++)!=="]"&&r<e.length)a+=e.charAt(r);if(a.match(I))return true;break;case".":;case"0":;case"#":while(r<e.length&&("0#?.,E+-%".indexOf(t=e.charAt(++r))>-1||t=="\\"&&e.charAt(r+1)=="-"&&"0#".indexOf(e.charAt(r+2))>-1)){}break;case"?":while(e.charAt(++r)===t){}break;case"*":++r;if(e.charAt(r)==" "||e.charAt(r)=="*")++r;break;case"(":;case")":++r;break;case"1":;case"2":;case"3":;case"4":;case"5":;case"6":;case"7":;case"8":;case"9":while(r<e.length&&"0123456789".indexOf(e.charAt(++r))>-1){}break;case" ":++r;break;default:++r;break;}}return false}e.is_date=y;function R(e,r,t,a){var n=[],i="",s=0,f="",o="t",l,u,h;var d="H";while(s<e.length){switch(f=e.charAt(s)){case"G":if(!c(e,s))throw new Error("unrecognized character "+f+" in "+e);n[n.length]={t:"G",v:"General"};s+=7;break;case'"':for(i="";(h=e.charCodeAt(++s))!==34&&s<e.length;)i+=String.fromCharCode(h);n[n.length]={t:"t",v:i};++s;break;case"\\":var v=e.charAt(++s),p=v==="("||v===")"?v:"t";n[n.length]={t:p,v:v};++s;break;case"_":n[n.length]={t:"t",v:" "};s+=2;break;case"@":n[n.length]={t:"T",v:r};++s;break;case"B":;case"b":if(e.charAt(s+1)==="1"||e.charAt(s+1)==="2"){if(l==null){l=b(r,t,e.charAt(s+1)==="2");if(l==null)return""}n[n.length]={t:"X",v:e.substr(s,2)};o=f;s+=2;break};case"M":;case"D":;case"Y":;case"H":;case"S":;case"E":f=f.toLowerCase();case"m":;case"d":;case"y":;case"h":;case"s":;case"e":;case"g":if(r<0)return"";if(l==null){l=b(r,t);if(l==null)return""}i=f;while(++s<e.length&&e.charAt(s).toLowerCase()===f)i+=f;if(f==="m"&&o.toLowerCase()==="h")f="M";if(f==="h")f=d;n[n.length]={t:f,v:i};o=f;break;case"A":;case"a":var m={t:f,v:f};if(l==null)l=b(r,t);if(e.substr(s,3).toUpperCase()==="A/P"){if(l!=null)m.v=l.H>=12?"P":"A";m.t="T";d="h";s+=3}else if(e.substr(s,5).toUpperCase()==="AM/PM"){if(l!=null)m.v=l.H>=12?"PM":"AM";m.t="T";s+=5;d="h"}else{m.t="t";++s}if(l==null&&m.t==="T")return"";n[n.length]=m;o=f;break;case"[":i=f;while(e.charAt(s++)!=="]"&&s<e.length)i+=e.charAt(s);if(i.slice(-1)!=="]")throw'unterminated "[" block: |'+i+"|";if(i.match(I)){if(l==null){l=b(r,t);if(l==null)return""}n[n.length]={t:"Z",v:i.toLowerCase()};o=i.charAt(1)}else if(i.indexOf("$")>-1){i=(i.match(/\$([^-\[\]]*)/)||[])[1]||"$";if(!y(e))n[n.length]={t:"t",v:i}}break;case".":if(l!=null){i=f;while(++s<e.length&&(f=e.charAt(s))==="0")i+=f;n[n.length]={t:"s",v:i};break};case"0":;case"#":i=f;while(++s<e.length&&"0#?.,E+-%".indexOf(f=e.charAt(s))>-1||f=="\\"&&e.charAt(s+
}else if(t==="sbcs"){for(n=0;n!=r.length;++n)this[this.l+n]=r.charCodeAt(n)&255;a=r.length}else switch(e){case 1:a=1;this[this.l]=r&255;break;case 2:a=2;this[this.l]=r&255;r>>>=8;this[this.l+1]=r&255;break;case 3:a=3;this[this.l]=r&255;r>>>=8;this[this.l+1]=r&255;r>>>=8;this[this.l+2]=r&255;break;case 4:a=4;gr(this,r,this.l);break;case 8:a=8;if(t==="f"){ze(this,r,this.l);break};case 16:break;case-4:a=4;Er(this,r,this.l);break;}this.l+=a;return this}function Sr(e,r){var t=Ye(this,this.l,e.length>>1);if(t!==e)throw r+"Expected "+e+" saw "+t;this.l+=e.length>>1}function wr(e,r){e.l=r;e.read_shift=br;e.chk=Sr;e.write_shift=kr}function Br(e,r){e.l+=r}function Cr(e,r){if(typeof console!="undefined")console.log(e.slice(e.l,e.l+r));e.l+=r}function _r(e,r){e.l+=r}function Tr(e){var r=v(e);wr(r,0);return r}function xr(e,r,t){if(!e)return;var a,n,i;wr(e,e.l||0);var s=e.length,f=0,o=0;while(e.l<s){f=e.read_shift(1);if(f&128)f=(f&127)+((e.read_shift(1)&127)<<7);var l=RE[f]||RE[65535];a=e.read_shift(1);i=a&127;for(n=1;n<4&&a&128;++n)i+=((a=e.read_shift(1))&127)<<7*n;o=e.l+i;var c=l.f(e,i,t);e.l=o;if(r(c,l.n,f))return}}function Ar(){var e=[],r=2048;var t=function o(e){var r=Tr(e);wr(r,0);return r};var a=t(r);var n=function l(){if(!a)return;if(a.length>a.l)a=a.slice(0,a.l);if(a.length>0)e.push(a);a=null};var i=function c(e){if(a&&e<a.length-a.l)return a;n();return a=t(Math.max(e+1,r))};var s=function u(){n();return Xe([e])};var f=function h(e){n();a=e;i(r)};return{next:i,push:f,end:s,_bufs:e}}function Ir(e,r,t,a){var n=Number(DE[r]),i;if(isNaN(n))return;if(!a)a=RE[n].p||(t||[]).length||0;i=1+(n>=128?1:0)+1+a;if(a>=128)++i;if(a>=16384)++i;if(a>=2097152)++i;var s=e.next(i);if(n<=127)s.write_shift(1,n);else{s.write_shift(1,(n&127)+128);s.write_shift(1,n>>7)}for(var f=0;f!=4;++f){if(a>=128){s.write_shift(1,(a&127)+128);a>>=7}else{s.write_shift(1,a);break}}if(a>0&&or(t))e.push(t)}function yr(e,r,t){var a=z(e);if(r.s){if(a.cRel)a.c+=r.s.c;if(a.rRel)a.r+=r.s.r}else{a.c+=r.c;a.r+=r.r}if(!t||t.biff<12){while(a.c>=256)a.c-=256;while(a.r>=65536)a.r-=65536}return a}function Rr(e,r,t){var a=z(e);a.s=yr(a.s,r.s,t);a.e=yr(a.e,r.s,t);return a}function Dr(e){var r=jr(e);if(e.cRel===0)r=Vr(r);if(e.rRel===0)r=Mr(r);return r}function Or(e,r){if(e.s.r==0&&!e.s.rRel){if(e.e.r==(r.biff>=12?1048575:65535)&&!e.e.rRel){return(e.s.cRel?"":"$")+Wr(e.s.c)+":"+(e.e.cRel?"":"$")+Wr(e.e.c)}}if(e.s.c==0&&!e.s.cRel){if(e.e.c==(r.biff>=12?65535:255)&&!e.e.cRel){return(e.s.rRel?"":"$")+Lr(e.s.r)+":"+(e.e.rRel?"":"$")+Lr(e.e.r)}}return Dr(e.s)+":"+Dr(e.e)}var Fr={};var Pr=function(e,r){var t;if(typeof r!=="undefined")t=r;else if(typeof require!=="undefined"){try{t=undefined}catch(a){t=null}}e.rc4=function(e,r){var t=new Array(256);var a=0,n=0,i=0,s=0;for(n=0;n!=256;++n)t[n]=n;for(n=0;n!=256;++n){i=i+t[n]+e[n%e.length].charCodeAt(0)&255;s=t[n];t[n]=t[i];t[i]=s}n=i=0;var f=Buffer(r.length);for(a=0;a!=r.length;++a){n=n+1&255;i=(i+t[n])%256;s=t[n];t[n]=t[i];t[i]=s;f[a]=r[a]^t[t[n]+t[i]&255]}return f};e.md5=function(e){if(!t)throw new Error("Unsupported crypto");return t.createHash("md5").update(e).digest("hex")}};Pr(Fr,typeof crypto!=="undefined"?crypto:undefined);function Nr(e){return parseInt(Ur(e),10)-1}function Lr(e){return""+(e+1)}function Mr(e){return e.replace(/([A-Z]|^)(\d+)$/,"$1$$$2")}function Ur(e){return e.replace(/\$(\d+)$/,"$1")}function Hr(e){var r=zr(e),t=0,a=0;for(;a!==r.length;++a)t=26*t+r.charCodeAt(a)-64;return t-1}function Wr(e){var r="";for(++e;e;e=Math.floor((e-1)/26))r=String.fromCharCode((e-1)%26+65)+r;return r}function Vr(e){return e.replace(/^([A-Z])/,"$$$1")}function zr(e){return e.replace(/^\$([A-Z])/,"$1")}function Xr(e){return e.replace(/(\$?[A-Z]*)(\$?\d*)/,"$1,$2").split(",")}function Gr(e){var r=Xr(e);return{c:Hr(r[0]),r:Nr(r[1])}}function jr(e){return Wr(e.c)+Lr(e.r)}function Kr(e){return Vr(Mr(e))}function Yr(e){return zr(Ur(e))}function $r(e){var r=e.split(":").map(Gr);return{s:r[0],e:r[r.length-1]}}function Zr(e,r){if(typeof r==="undefined"||typeof r==="number"){return Zr(e.s,e.e)}if(typeof e!=="string")e=jr(e);if(typeof r!=="string")r=jr
return Xa(e,r,0)}function Ka(e){var r=e.read_shift(4);var t=[];for(var a=0;a!=r;++a)t[a]=e.read_shift(0,"lpstr");return t}function Ya(e){return Ka(e)}function $a(e){var r=tn(e,jt);var t=tn(e,Nt);return[r,t]}function Za(e){var r=e.read_shift(4);var t=[];for(var a=0;a!=r/2;++a)t.push($a(e));return t}function Qa(e){return Za(e)}function Ja(e,r){var t=e.read_shift(4);var a={};for(var n=0;n!=t;++n){var i=e.read_shift(4);var s=e.read_shift(4);a[i]=e.read_shift(s,r===1200?"utf16le":"utf8").replace(m,"").replace(g,"!")}if(e.l&3)e.l=e.l>>2+1<<2;return a}function qa(e){var r=e.read_shift(4);var t=e.slice(e.l,e.l+r);if((r&3)>0)e.l+=4-(r&3)&3;return t}function en(e){var r={};r.Size=e.read_shift(4);e.l+=r.Size;return r}function rn(e,r){}function tn(e,r,t){var a=e.read_shift(2),n,i=t||{};e.l+=2;if(r!==Mt)if(a!==r&&Kt.indexOf(r)===-1)throw new Error("Expected type "+r+" saw "+a);switch(r===Mt?a:r){case 2:n=e.read_shift(2,"i");if(!i.raw)e.l+=2;return n;case 3:n=e.read_shift(4,"i");return n;case 11:return e.read_shift(4)!==0;case 19:n=e.read_shift(4);return n;case 30:return Va(e,a,4).replace(m,"");case 31:return za(e);case 64:return Wa(e);case 65:return qa(e);case 71:return en(e);case 80:return Ga(e,a,!i.raw).replace(m,"");case 81:return ja(e,a).replace(m,"");case 4108:return Qa(e);case 4126:return Ya(e);default:throw new Error("TypedPropertyValue unrecognized type "+r+" "+a);}}function an(e,r){var t=e.l;var a=e.read_shift(4);var i=e.read_shift(4);var s=[],f=0;var o=0;var l=-1,c={};for(f=0;f!=i;++f){var u=e.read_shift(4);var h=e.read_shift(4);s[f]=[u,h+t]}var d={};for(f=0;f!=i;++f){if(e.l!==s[f][1]){var v=true;if(f>0&&r)switch(r[s[f-1][0]].t){case 2:if(e.l+2===s[f][1]){e.l+=2;v=false}break;case 80:if(e.l<=s[f][1]){e.l=s[f][1];v=false}break;case 4108:if(e.l<=s[f][1]){e.l=s[f][1];v=false}break;}if(!r&&e.l<=s[f][1]){v=false;e.l=s[f][1]}if(v)throw new Error("Read Error: Expected address "+s[f][1]+" at "+e.l+" :"+f)}if(r){var p=r[s[f][0]];d[p.n]=tn(e,p.t,{raw:true});if(p.p==="version")d[p.n]=String(d[p.n]>>16)+"."+String(d[p.n]&65535);if(p.n=="CodePage")switch(d[p.n]){case 0:d[p.n]=1252;case 874:;case 932:;case 936:;case 949:;case 950:;case 1250:;case 1251:;case 1253:;case 1254:;case 1255:;case 1256:;case 1257:;case 1258:;case 1e4:;case 1200:;case 1201:;case 1252:;case 65e3:;case-536:;case 65001:;case-535:n(o=d[p.n]);break;default:throw new Error("Unsupported CodePage: "+d[p.n]);}}else{if(s[f][0]===1){o=d.CodePage=tn(e,Pt);n(o);if(l!==-1){var b=e.l;e.l=s[l][1];c=Ja(e,o);e.l=b}}else if(s[f][0]===0){if(o===0){l=f;e.l=s[f+1][1];continue}c=Ja(e,o)}else{var m=c[s[f][0]];var g;switch(e[e.l]){case 65:e.l+=4;g=qa(e);break;case 30:e.l+=4;g=Ga(e,e[e.l-4]);break;case 31:e.l+=4;g=Ga(e,e[e.l-4]);break;case 3:e.l+=4;g=e.read_shift(4,"i");break;case 19:e.l+=4;g=e.read_shift(4);break;case 5:e.l+=4;g=e.read_shift(8,"f");break;case 11:e.l+=4;g=on(e,4);break;case 64:e.l+=4;g=H(Wa(e));break;default:throw new Error("unparsed value: "+e[e.l]);}d[m]=g}}}e.l=t+a;return d}function nn(e,r){var t=e.content;wr(t,0);var a,n,i,s,f=0;t.chk("feff","Byte Order: ");var o=t.read_shift(2);var l=t.read_shift(4);t.chk(T.utils.consts.HEADER_CLSID,"CLSID: ");a=t.read_shift(4);if(a!==1&&a!==2)throw new Error("Unrecognized #Sets: "+a);n=t.read_shift(16);s=t.read_shift(4);if(a===1&&s!==t.l)throw new Error("Length mismatch: "+s+" !== "+t.l);else if(a===2){i=t.read_shift(16);f=t.read_shift(4)}var c=an(t,r);var u={SystemIdentifier:l};for(var h in c)u[h]=c[h];u.FMTID=n;if(a===1)return u;if(t.l!==f)throw new Error("Length mismatch 2: "+t.l+" !== "+f);var d;try{d=an(t,null)}catch(v){}for(h in d)u[h]=d[h];u.FMTID=[n,i];return u}function sn(e,r){e.read_shift(r);return null}function fn(e,r,t){var a=[],n=e.l+r;while(e.l<n)a.push(t(e,n-e.l));if(n!==e.l)throw new Error("Slurp error");return a}function on(e,r){return e.read_shift(r)===1}function ln(e){return e.read_shift(2,"u")}function cn(e,r){return fn(e,r,ln)}var un=on;function hn(e){var r=e.read_shift(1),t=e.read_shift(1);return t===1?r:r===1}function dn(e,r,a){var n=e.read_shift(a&&a.biff>=12?2:1);var i=1,s="sbcs-cont";var f=t;if(a&&a.biff>=
t=e.toString("binary");break;case"array":t=W(e);break;default:throw new Error("Unrecognized type "+r.type);}if(a[0]==239&&a[1]==187&&a[2]==191)t=Ce(t.slice(3));return n(t,r)}function s(e,r){return et(i(e,r),r)}function f(e,r){var t=[];var a=$r(e["!ref"]),n;var i=Array.isArray(e);for(var s=a.s.r;s<=a.e.r;++s){var f=[];for(var o=a.s.c;o<=a.e.c;++o){var l=jr({r:s,c:o});n=i?(e[s]||[])[o]:e[l];if(!n||n.v==null){f.push(" ");continue}var c=(n.w||(qr(n),n.w)||"").substr(0,10);while(c.length<10)c+=" ";f.push(c+(o==0?" ":""))}t.push(f.join(""))}return t.join("\n")}return{to_workbook:s,to_sheet:i,from_sheet:f}}();function Uu(e,r){var t=r||{},a=!!t.WTF;t.WTF=true;try{var n=Nu.to_workbook(e,t);t.WTF=a;return n}catch(i){t.WTF=a;if(!i.message.match(/SYLK bad record ID/)&&a)throw i;return Mu.to_workbook(e,r)}}var Hu=function(){function e(e,r,t){if(!e)return;wr(e,e.l||0);var a=t.Enum||S;while(e.l<e.length){var n=e.read_shift(2);var i=a[n]||a[255];var s=e.read_shift(2);var f=e.l+s;var o=i.f(e,s,t);e.l=f;if(r(o,i.n,n))return}}function r(e,r){switch(r.type){case"base64":return t(p(h.decode(e)),r);case"binary":return t(p(e),r);case"buffer":;case"array":return t(e,r);}throw"Unsupported type "+r.type}function t(r,t){if(!r)return r;var a=t||{};if(c!=null&&a.dense==null)a.dense=c;var n=a.dense?[]:{},i="Sheet1",s=0;var f={},o=[i];var l={s:{r:0,c:0},e:{r:0,c:0}};if(r[2]==2)a.Enum=S;else if(r[2]==26)a.Enum=w;else if(r[2]==14){a.Enum=w;a.qpro=true;r.l=0}else throw new Error("Unrecognized LOTUS BOF "+r[2]);e(r,function(e,t,c){if(r[2]==2)switch(c){case 0:a.vers=e;if(e>=4096)a.qpro=true;break;case 6:l=e;break;case 15:if(!a.qpro)e[1].v=e[1].v.substr(1);case 13:;case 14:;case 16:;case 51:if(c==14&&(e[2]&112)==112&&(e[2]&15)>1&&(e[2]&15)<15){e[1].z=a.dateNF||E._table[14];if(a.cellDates){e[1].t="d";e[1].v=N(e[1].v)}}if(a.dense){if(!n[e[0].r])n[e[0].r]=[];n[e[0].r][e[0].c]=e[1]}else n[jr(e[0])]=e[1];break;}else switch(c){case 22:e[1].v=e[1].v.substr(1);case 23:;case 24:;case 25:;case 37:;case 39:;case 40:if(e[3]>s){n["!ref"]=Zr(l);f[i]=n;n=a.dense?[]:{};l={s:{r:0,c:0},e:{r:0,c:0}};s=e[3];i="Sheet"+(s+1);o.push(i)}n[jr(e[0])]=e[1];if(l.e.c<e[0].c)l.e.c=e[0].c;if(l.e.r<e[0].r)l.e.r=e[0].r;break;default:break;}},a);n["!ref"]=Zr(l);f[i]=n;return{SheetNames:o,Sheets:f}}function a(e,r){var t={s:{c:0,r:0},e:{c:0,r:0}};t.s.c=e.read_shift(2);t.s.r=e.read_shift(2);t.e.c=e.read_shift(2);t.e.r=e.read_shift(2);if(t.s.c==65535)t.s.c=t.e.c=t.s.r=t.e.r=0;return t}function n(e,r,t){var a=[{c:0,r:0},{t:"n",v:0},0];if(t.qpro&&t.vers!=20768){a[0].c=e.read_shift(1);e.l++;a[0].r=e.read_shift(2);e.l+=2}else{a[2]=e.read_shift(1);a[0].c=e.read_shift(2);a[0].r=e.read_shift(2)}return a}function i(e,r,t){var a=e.l+r;var i=n(e,r,t);i[1].t="s";if(t.vers==20768){e.l++;var s=e.read_shift(1);i[1].v=e.read_shift(s,"utf8");return i}if(t.qpro)e.l++;i[1].v=e.read_shift(a-e.l,"cstr");return i}function s(e,r,t){var a=n(e,r,t);a[1].v=e.read_shift(2,"i");return a}function f(e,r,t){var a=n(e,r,t);a[1].v=e.read_shift(8,"f");return a}function o(e,r,t){var a=e.l+r;var i=n(e,r,t);i[1].v=e.read_shift(8,"f");if(t.qpro)e.l=a;else{var s=e.read_shift(2);e.l+=s}return i}function l(e,r){var t=[{c:0,r:0},{t:"n",v:0},0];t[0].r=e.read_shift(2);t[3]=e[e.l++];t[0].c=e[e.l++];return t}function u(e,r){var t=l(e,r);t[1].t="s";t[1].v=e.read_shift(r-4,"cstr");return t}function d(e,r){var t=l(e,r);t[1].v=e.read_shift(2);var a=t[1].v>>1;if(t[1].v&1){switch(a&7){case 1:a=(a>>3)*500;break;case 2:a=(a>>3)/20;break;case 4:a=(a>>3)/2e3;break;case 6:a=(a>>3)/16;break;case 7:a=(a>>3)/64;break;default:throw"unknown NUMBER_18 encoding "+(a&7);}}t[1].v=a;return t}function v(e,r){var t=l(e,r);var a=e.read_shift(4);var n=e.read_shift(4);var i=e.read_shift(2);if(i==65535){t[1].v=0;return t}var s=i&32768;i=(i&32767)-16446;t[1].v=(i>0?n<<i:n>>>-i)+(i>-32?a<<i+32:a>>>-(i+32));return t}function b(e,r){var t=v(e,14);e.l+=r-14;return t}function m(e,r){var t=l(e,r);var a=e.read_shift(4);t[1].v=a>>6;return t}function g(e,r){var t=l(e,r);var a=e.read_shift(8,"f");t[1].v=a;return t}function k(e,r){var t=g(e,14);e.l+=r-10;return t}var
break;case"<a:srgbClr":a.rgb=n.val;break;case"<a:sysClr":a.rgb=n.lastClr;break;case"<a:dk1>":;case"</a:dk1>":;case"<a:lt1>":;case"</a:lt1>":;case"<a:dk2>":;case"</a:dk2>":;case"<a:lt2>":;case"</a:lt2>":;case"<a:accent1>":;case"</a:accent1>":;case"<a:accent2>":;case"</a:accent2>":;case"<a:accent3>":;case"</a:accent3>":;case"<a:accent4>":;case"</a:accent4>":;case"<a:accent5>":;case"</a:accent5>":;case"<a:accent6>":;case"</a:accent6>":;case"<a:hlink>":;case"</a:hlink>":;case"<a:folHlink>":;case"</a:folHlink>":if(n[0].charAt(1)==="/"){r.themeElements.clrScheme.push(a);a={}}else{a.name=n[0].substring(3,n[0].length-1)}break;default:if(t&&t.WTF)throw new Error("Unrecognized "+n[0]+" in clrScheme");}})}function Ld(e,r,t){}function Md(e,r,t){}var Ud=/<a:clrScheme([^>]*)>[\s\S]*<\/a:clrScheme>/;var Hd=/<a:fontScheme([^>]*)>[\s\S]*<\/a:fontScheme>/;var Wd=/<a:fmtScheme([^>]*)>[\s\S]*<\/a:fmtScheme>/;function Vd(e,r,t){r.themeElements={};var a;[["clrScheme",Ud,Nd],["fontScheme",Hd,Ld],["fmtScheme",Wd,Md]].forEach(function(n){if(!(a=e.match(n[1])))throw new Error(n[0]+" not found in themeElements");n[2](a,r,t)})}var zd=/<a:themeElements([^>]*)>[\s\S]*<\/a:themeElements>/;function Xd(e,r){if(!e||e.length===0)return Xd(Gd());var t;var a={};if(!(t=e.match(zd)))throw new Error("themeElements not found in theme");Vd(t[0],a,r);return a}function Gd(e,r){if(r&&r.themeXLSX)return r.themeXLSX;var t=[Ue];t[t.length]='<a:theme xmlns:a="http://schemas.openxmlformats.org/drawingml/2006/main" name="Office Theme">';t[t.length]="<a:themeElements>";t[t.length]='<a:clrScheme name="Office">';t[t.length]='<a:dk1><a:sysClr val="windowText" lastClr="000000"/></a:dk1>';t[t.length]='<a:lt1><a:sysClr val="window" lastClr="FFFFFF"/></a:lt1>';t[t.length]='<a:dk2><a:srgbClr val="1F497D"/></a:dk2>';t[t.length]='<a:lt2><a:srgbClr val="EEECE1"/></a:lt2>';t[t.length]='<a:accent1><a:srgbClr val="4F81BD"/></a:accent1>';t[t.length]='<a:accent2><a:srgbClr val="C0504D"/></a:accent2>';t[t.length]='<a:accent3><a:srgbClr val="9BBB59"/></a:accent3>';t[t.length]='<a:accent4><a:srgbClr val="8064A2"/></a:accent4>';t[t.length]='<a:accent5><a:srgbClr val="4BACC6"/></a:accent5>';t[t.length]='<a:accent6><a:srgbClr val="F79646"/></a:accent6>';t[t.length]='<a:hlink><a:srgbClr val="0000FF"/></a:hlink>';t[t.length]='<a:folHlink><a:srgbClr val="800080"/></a:folHlink>';t[t.length]="</a:clrScheme>";t[t.length]='<a:fontScheme name="Office">';t[t.length]="<a:majorFont>";t[t.length]='<a:latin typeface="Cambria"/>';t[t.length]='<a:ea typeface=""/>';t[t.length]='<a:cs typeface=""/>';t[t.length]='<a:font script="Jpan" typeface=" Pゴシック"/>';t[t.length]='<a:font script="Hang" typeface="맑은 고딕"/>';t[t.length]='<a:font script="Hans" typeface="宋体"/>';t[t.length]='<a:font script="Hant" typeface="新細明體"/>';t[t.length]='<a:font script="Arab" typeface="Times New Roman"/>';t[t.length]='<a:font script="Hebr" typeface="Times New Roman"/>';t[t.length]='<a:font script="Thai" typeface="Tahoma"/>';t[t.length]='<a:font script="Ethi" typeface="Nyala"/>';t[t.length]='<a:font script="Beng" typeface="Vrinda"/>';t[t.length]='<a:font script="Gujr" typeface="Shruti"/>';t[t.length]='<a:font script="Khmr" typeface="MoolBoran"/>';t[t.length]='<a:font script="Knda" typeface="Tunga"/>';t[t.length]='<a:font script="Guru" typeface="Raavi"/>';t[t.length]='<a:font script="Cans" typeface="Euphemia"/>';t[t.length]='<a:font script="Cher" typeface="Plantagenet Cherokee"/>';t[t.length]='<a:font script="Yiii" typeface="Microsoft Yi Baiti"/>';t[t.length]='<a:font script="Tibt" typeface="Microsoft Himalaya"/>';t[t.length]='<a:font script="Thaa" typeface="MV Boli"/>';t[t.length]='<a:font script="Deva" typeface="Mangal"/>';t[t.length]='<a:font script="Telu" typeface="Gautami"/>';t[t.length]='<a:font script="Taml" typeface="Latha"/>';t[t.length]='<a:font script="Syrc" typeface="Estrangelo Edessa"/>';t[t.length]='<a:font script="Orya" typeface="Kalinga"/>';t[t.length]='<a:font script="Mlym" typeface="Kartika"/>';t[t.length]='<a:font script="Laoo" typeface="DokChampa"/>';t[t.length]='<a:font script="Sinh"
s.push(_);break;case"PtgNameX":var T=E[1][1];h=E[1][2];var x;if(n.biff<=5){if(T<0)T=-T;if(a[T])x=a[T][h]}else{var A=a.SheetNames[T];var I="";if(((a[T]||[])[0]||[])[0]==14849){}else if(((a[T]||[])[0]||[])[0]==1025){if(a[T][h]&&a[T][h].itab>0){I=a.SheetNames[a[T][h].itab-1]+"!"}}else I=a.SheetNames[h-1]+"!";if(a[T]&&a[T][h])I+=a[T][h].Name;else if(a[0]&&a[0][h])I+=a[0][h].Name;else I+="SH33TJSERRX";s.push(I);break}if(!x)x={Name:"SH33TJSERRY"};s.push(x.Name);break;case"PtgParen":var y="(",R=")";if(p>=0){b="";switch(e[0][p][1][0]){case 2:y=X(" ",e[0][p][1][1])+y;break;case 3:y=X("\r",e[0][p][1][1])+y;break;case 4:R=X(" ",e[0][p][1][1])+R;break;case 5:R=X("\r",e[0][p][1][1])+R;break;default:if(n.WTF)throw new Error("Unexpected PtgAttrSpaceType "+e[0][p][1][0]);}p=-1}s.push(y+s.pop()+R);break;case"PtgRefErr":s.push("#REF!");break;case"PtgRefErr3d":s.push("#REF!");break;case"PtgExp":c={c:E[1][1],r:E[1][0]};var D={c:t.c,r:t.r};if(a.sharedf[jr(c)]){var O=a.sharedf[jr(c)];s.push(ub(O,i,D,a,n))}else{var F=false;for(f=0;f!=a.arrayf.length;++f){o=a.arrayf[f];if(c.c<o[0].s.c||c.c>o[0].e.c)continue;if(c.r<o[0].s.r||c.r>o[0].e.r)continue;s.push(ub(o[1],i,D,a,n));F=true;break}if(!F)s.push(E[1])}break;case"PtgArray":s.push("{"+sb(E[1])+"}");break;case"PtgMemArea":break;case"PtgAttrSpace":;case"PtgAttrSpaceSemi":p=m;break;case"PtgTbl":break;case"PtgMemErr":break;case"PtgMissArg":s.push("");break;case"PtgAreaErr":s.push("#REF!");break;case"PtgAreaErr3d":s.push("#REF!");break;case"PtgMemFunc":break;default:throw new Error("Unrecognized Formula Token: "+String(E));}var P=["PtgAttrSpace","PtgAttrSpaceSemi","PtgAttrGoto"];if(p>=0&&P.indexOf(e[0][m][0])==-1){E=e[0][p];var N=true;switch(E[1][0]){case 4:N=false;case 0:b=X(" ",E[1][1]);break;case 5:N=false;case 1:b=X("\r",E[1][1]);break;default:b="";if(n.WTF)throw new Error("Unexpected PtgAttrSpaceType "+E[1][0]);}s.push((N?b:"")+s.pop()+(N?"":b));p=-1}}if(s.length>1&&n.WTF)throw new Error("bad formula stack");return s[0]}function hb(e,r,t){var a=e.l+r;var n=e.read_shift(4);var i=ib(e,n,t);var s=e.read_shift(4);var f=s>0?eb(e,s,i,t):null;return[i,f]}var db=hb;var vb=hb;var pb=hb;var bb=hb;var mb={1:"REFERENCE",2:"VALUE",3:"ARRAY"};var gb={0:"BEEP",1:"OPEN",2:"OPEN.LINKS",3:"CLOSE.ALL",4:"SAVE",5:"SAVE.AS",6:"FILE.DELETE",7:"PAGE.SETUP",8:"PRINT",9:"PRINTER.SETUP",10:"QUIT",11:"NEW.WINDOW",12:"ARRANGE.ALL",13:"WINDOW.SIZE",14:"WINDOW.MOVE",15:"FULL",16:"CLOSE",17:"RUN",22:"SET.PRINT.AREA",23:"SET.PRINT.TITLES",24:"SET.PAGE.BREAK",25:"REMOVE.PAGE.BREAK",26:"FONT",27:"DISPLAY",28:"PROTECT.DOCUMENT",29:"PRECISION",30:"A1.R1C1",31:"CALCULATE.NOW",32:"CALCULATION",34:"DATA.FIND",35:"EXTRACT",36:"DATA.DELETE",37:"SET.DATABASE",38:"SET.CRITERIA",39:"SORT",40:"DATA.SERIES",41:"TABLE",42:"FORMAT.NUMBER",43:"ALIGNMENT",44:"STYLE",45:"BORDER",46:"CELL.PROTECTION",47:"COLUMN.WIDTH",48:"UNDO",49:"CUT",50:"COPY",51:"PASTE",52:"CLEAR",53:"PASTE.SPECIAL",54:"EDIT.DELETE",55:"INSERT",56:"FILL.RIGHT",57:"FILL.DOWN",61:"DEFINE.NAME",62:"CREATE.NAMES",63:"FORMULA.GOTO",64:"FORMULA.FIND",65:"SELECT.LAST.CELL",66:"SHOW.ACTIVE.CELL",67:"GALLERY.AREA",68:"GALLERY.BAR",69:"GALLERY.COLUMN",70:"GALLERY.LINE",71:"GALLERY.PIE",72:"GALLERY.SCATTER",73:"COMBINATION",74:"PREFERRED",75:"ADD.OVERLAY",76:"GRIDLINES",77:"SET.PREFERRED",78:"AXES",79:"LEGEND",80:"ATTACH.TEXT",81:"ADD.ARROW",82:"SELECT.CHART",83:"SELECT.PLOT.AREA",84:"PATTERNS",85:"MAIN.CHART",86:"OVERLAY",87:"SCALE",88:"FORMAT.LEGEND",89:"FORMAT.TEXT",90:"EDIT.REPEAT",91:"PARSE",92:"JUSTIFY",93:"HIDE",94:"UNHIDE",95:"WORKSPACE",96:"FORMULA",97:"FORMULA.FILL",98:"FORMULA.ARRAY",99:"DATA.FIND.NEXT",100:"DATA.FIND.PREV",101:"FORMULA.FIND.NEXT",102:"FORMULA.FIND.PREV",103:"ACTIVATE",104:"ACTIVATE.NEXT",105:"ACTIVATE.PREV",106:"UNLOCKED.NEXT",107:"UNLOCKED.PREV",108:"COPY.PICTURE",109:"SELECT",110:"DELETE.NAME",111:"DELETE.FORMAT",112:"VLINE",113:"HLINE",114:"VPAGE",115:"HPAGE",116:"VSCROLL",117:"HSCROLL",118:"ALERT",119:"NEW",120:"CANCEL.COPY",121:"SHOW.CLIPBOARD",122:"MESSAGE",124:"PASTE.LINK",125:"APP.ACTIVATE",126:"DELETE.ARROW",127:"ROW.HEIGHT",128:"FORMAT.MOVE",129:"F
n[n.length]=Ne("dimension",null,{ref:l});n[n.length]=Zb(o,r,e,t);if(r.sheetFormat)n[n.length]=Ne("sheetFormatPr",null,{defaultRowHeight:r.sheetFormat.defaultRowHeight||"16",baseColWidth:r.sheetFormat.baseColWidth||"10",outlineLevelRow:r.sheetFormat.outlineLevelRow||"7"});if(o["!cols"]!=null&&o["!cols"].length>0)n[n.length]=Kb(o,o["!cols"]);n[s=n.length]="<sheetData/>";o["!links"]=[];if(o["!ref"]!=null){f=qb(o,r,e,t,a);if(f.length>0)n[n.length]=f}if(n.length>s+1){n[n.length]="</sheetData>";n[s]=n[s].replace("/>",">")}if(o["!protect"]!=null)n[n.length]=Vb(o["!protect"]);if(o["!autofilter"]!=null)n[n.length]=$b(o["!autofilter"]);if(o["!merges"]!=null&&o["!merges"].length>0)n[n.length]=Wb(o["!merges"]);var c=-1,u,h=-1;if(o["!links"].length>0){n[n.length]="<hyperlinks>";o["!links"].forEach(function(e){if(!e[1].Target)return;h=va(a,-1,me(e[1].Target).replace(/#.*$/,""),la.HLINK);u={ref:e[0],"r:id":"rId"+h};if((c=e[1].Target.indexOf("#"))>-1)u.location=me(e[1].Target.substr(c+1));if(e[1].Tooltip)u.tooltip=me(e[1].Tooltip);n[n.length]=Ne("hyperlink",null,u)});n[n.length]="</hyperlinks>"}delete o["!links"];if(o["!margins"]!=null)n[n.length]=Gb(o["!margins"]);var d=n.length;n[n.length]="";if(o["!drawing"].length>0){h=va(a,-1,"../drawings/drawing"+(e+1)+".xml",la.DRAW);n[n.length]=Ne("drawing",null,{"r:id":"rId"+h})}else delete o["!drawing"];if(o["!comments"].length>0){h=va(a,-1,"../drawings/vmlDrawing"+(e+1)+".vml",la.VML);n[n.length]=Ne("legacyDrawing",null,{"r:id":"rId"+h});o["!legacy"]=h}if(n.length>2){n[n.length]="</worksheet>";n[1]=n[1].replace("/>",">")}return n.join("")}function tm(e,r){var t={};var a=e.l+r;t.r=e.read_shift(4);e.l+=4;var n=e.read_shift(2);e.l+=1;var i=e.read_shift(1);e.l=a;if(i&7)t.level=i&7;if(i&16)t.hidden=true;if(i&32)t.hpt=n/20;return t}function am(e,r,t){var a=Tr(17+8*16);var n=(t["!rows"]||[])[e]||{};a.write_shift(4,e);a.write_shift(4,0);var i=320;if(n.hpx)i=Yh(n.hpx)*20;else if(n.hpt)i=n.hpt*20;a.write_shift(2,i);a.write_shift(1,0);var s=0;if(n.level)s|=n.level;if(n.hidden)s|=16;if(n.hpx||n.hpt)s|=32;a.write_shift(1,s);a.write_shift(1,0);var f=0,o=a.l;a.l+=4;var l={r:e,c:0};for(var c=0;c<16;++c){if(r.s.c>c+1<<10||r.e.c<c<<10)continue;var u=-1,h=-1;for(var d=c<<10;d<c+1<<10;++d){l.c=d;var v=Array.isArray(t)?(t[l.r]||[])[l.c]:t[jr(l)];if(v){if(u<0)u=d;h=d}}if(u<0)continue;++f;a.write_shift(4,u);a.write_shift(4,h)}var p=a.l;a.l=o;a.write_shift(4,f);a.l=p;return a.length>a.l?a.slice(0,a.l):a}function nm(e,r,t,a){var n=am(a,t,r);if(n.length>17||(r["!rows"]||[])[a])Ir(e,"BrtRowHdr",n)}var im=_t;var sm=Tt;function fm(e,r){}function om(e,r){var t={};e.l+=19;t.name=dt(e,r-19);return t}function lm(e,r){if(r==null)r=Tr(84+4*e.length);for(var t=0;t<3;++t)r.write_shift(1,0);Dt({auto:1},r);r.write_shift(-4,-1);r.write_shift(-4,-1);vt(e,r);return r.slice(0,r.l)}function cm(e,r){var t=ut(e);return[t]}function um(e,r,t){if(t==null)t=Tr(8);return ht(r,t)}function hm(e,r){var t=ut(e);var a=e.read_shift(1);return[t,a,"b"]}function dm(e,r,t){if(t==null)t=Tr(9);ht(r,t);t.write_shift(1,e.v?1:0);return t}function vm(e,r){var t=ut(e);var a=e.read_shift(1);return[t,a,"e"]}function pm(e,r){var t=ut(e);var a=e.read_shift(4);return[t,a,"s"]}function bm(e,r,t){if(t==null)t=Tr(12);ht(r,t);t.write_shift(4,r.v);return t}function mm(e,r){var t=ut(e);var a=xt(e);return[t,a,"n"]}function gm(e,r,t){if(t==null)t=Tr(16);ht(r,t);At(e.v,t);return t}function Em(e,r){var t=ut(e);var a=St(e);return[t,a,"n"]}function km(e,r,t){if(t==null)t=Tr(12);ht(r,t);wt(e.v,t);return t}function Sm(e,r){var t=ut(e);var a=at(e);return[t,a,"str"]}function wm(e,r,t){if(t==null)t=Tr(12+4*e.v.length);ht(r,t);nt(e.v,t);return t.length>t.l?t.slice(0,t.l):t}function Bm(e,r,t){var a=e.l+r;var n=ut(e);n.r=t["!row"];var i=e.read_shift(1);var s=[n,i,"b"];if(t.cellFormula){e.l+=2;var f=vb(e,a-e.l,t);s[3]=ub(f,null,n,t.supbooks,t)}else e.l=a;return s}function Cm(e,r,t){var a=e.l+r;var n=ut(e);n.r=t["!row"];var i=e.read_shift(1);var s=[n,i,"e"];if(t.cellFormula){e.l+=2;var f=vb(e,a-e.l,t);s[3]=ub(f,null,n,t.supbooks,t)}else e.l=a;return s}function _m(e,r,t){var a=e.l+r;va
if(_<T.s.r)T.s.r=_;if(_>T.e.r)T.e.r=_;if(f[0].slice(-2)==="/>"){g=rE(f[0]);if(g.Index)_=+g.Index-1}C=0;++_}else{g=rE(f[0]);if(g.Index)_=+g.Index-1;X={};if(g.AutoFitHeight=="0"||g.Height){X.hpx=parseInt(g.Height,10);X.hpt=Yh(X.hpx);V[_]=X}if(g.Hidden=="1"){X.hidden=true;V[_]=X}}break;case"Worksheet":if(f[1]==="/"){if((u=l.pop())[0]!==f[3])throw new Error("Bad state: "+u.join("|"));d.push(p);if(T.s.r<=T.e.r&&T.s.c<=T.e.c)v["!ref"]=Zr(T);if(R.length)v["!merges"]=R;if(M.length>0)v["!cols"]=M;if(V.length>0)v["!rows"]=V;h[p]=v}else{T={s:{r:2e6,c:2e6},e:{r:0,c:0}};_=C=0;l.push([f[3],false]);u=rE(f[0]);p=ve(u.Name);v=t.dense?[]:{};R=[];W=[];V=[];j={name:p,Hidden:0};G.Sheets.push(j)}break;case"Table":if(f[1]==="/"){if((u=l.pop())[0]!==f[3])throw new Error("Bad state: "+u.join("|"))}else if(f[0].slice(-2)=="/>")break;else{b=rE(f[0]);l.push([f[3],false]);M=[];H=false}break;case"Style":if(f[1]==="/")sE(x,A,t);else A=rE(f[0]);break;case"NumberFormat":A.nf=ve(rE(f[0]).Format||"General");if(S[A.nf])A.nf=S[A.nf];for(var Q=0;Q!=392;++Q)if(E._table[Q]==A.nf)break;if(Q==392)for(Q=57;Q!=392;++Q)if(E._table[Q]==null){E.load(A.nf,Q);break}break;case"Column":if(l[l.length-1][0]!=="Table")break;U=rE(f[0]);if(U.Hidden){U.hidden=true;delete U.Hidden}if(U.Width)U.wpx=parseInt(U.Width,10);if(!H&&U.wpx>10){H=true;Nh=Oh;for(var J=0;J<M.length;++J)if(M[J])Gh(M[J])}if(H)Gh(U);M[U.Index-1||M.length]=U;for(var q=0;q<+U.Span;++q)M[M.length]=z(U);break;case"NamedRange":if(!G.Names)G.Names=[];var ee=ce(f[0]);var re={Name:ee.Name,Ref:_v(ee.RefersTo.substr(1))};if(G.Sheets.length>0)re.Sheet=G.Sheets.length-1;G.Names.push(re);break;case"NamedCell":break;case"B":break;case"I":break;case"U":break;case"S":break;case"Sub":break;case"Sup":break;case"Span":break;case"Border":break;case"Alignment":break;case"Borders":break;case"Font":if(f[0].slice(-2)==="/>")break;else if(f[1]==="/")I+=a.slice(y,f.index);else y=f.index+f[0].length;break;case"Interior":if(!t.cellStyles)break;A.Interior=rE(f[0]);break;case"Protection":break;case"Author":;case"Title":;case"Description":;case"Created":;case"Keywords":;case"Subject":;case"Category":;case"Company":;case"LastAuthor":;case"LastSaved":;case"LastPrinted":;case"Version":;case"Revision":;case"TotalTime":;case"HyperlinkBase":;case"Manager":;case"ContentStatus":;case"Identifier":;case"Language":;case"AppName":if(f[0].slice(-2)==="/>")break;else if(f[1]==="/")Ma(D,f[3],a.slice(F,f.index));else F=f.index+f[0].length;break;case"Paragraphs":break;case"Styles":;case"Workbook":if(f[1]==="/"){if((u=l.pop())[0]!==f[3])throw new Error("Bad state: "+u.join("|"))}else l.push([f[3],false]);break;case"Comment":if(f[1]==="/"){if((u=l.pop())[0]!==f[3])throw new Error("Bad state: "+u.join("|"));oE(L);N.push(L)}else{l.push([f[3],false]);u=rE(f[0]);L={a:u.Author}}break;case"AutoFilter":if(f[1]==="/"){if((u=l.pop())[0]!==f[3])throw new Error("Bad state: "+u.join("|"))}else if(f[0].charAt(f[0].length-2)!=="/"){var te=rE(f[0]);v["!autofilter"]={ref:_v(te.Range).replace(/\$/g,"")};l.push([f[3],true])}break;case"Name":break;case"ComponentOptions":;case"DocumentProperties":;case"CustomDocumentProperties":;case"OfficeDocumentSettings":;case"PivotTable":;case"PivotCache":;case"Names":;case"MapInfo":;case"PageBreaks":;case"QueryTable":;case"DataValidation":;case"Sorting":;case"Schema":;case"data":;case"ConditionalFormatting":;case"SmartTagType":;case"SmartTags":;case"ExcelWorkbook":;case"WorkbookOptions":;case"WorksheetOptions":if(f[1]==="/"){if((u=l.pop())[0]!==f[3])throw new Error("Bad state: "+u.join("|"))}else if(f[0].charAt(f[0].length-2)!=="/")l.push([f[3],true]);break;default:if(l.length==0&&f[3]=="document")return $E(a,t);if(l.length==0&&f[3]=="UOF")return $E(a,t);var ae=true;switch(l[l.length-1][0]){case"OfficeDocumentSettings":switch(f[3]){case"AllowPNG":break;case"RemovePersonalInformation":break;case"DownloadComponents":break;case"LocationOfComponents":break;case"Colors":break;case"Color":break;case"Index":break;case"RGB":break;case"PixelsPerInch":break;case"TargetScreenSize":break;case"ReadOnlyRecommended":break;default:ae=false;}break;case"Co
break;case"LHNGraph":;case"FnGroupName":;case"AddMenu":;case"LPr":break;case"ListObj":;case"ListField":break;case"RRSort":break;case"BigName":break;default:if(r.WTF)throw"Unrecognized Record "+q.n;};};};}}else e.l+=Q}var be=Object.keys(s).sort(function(e,r){return Number(e)-Number(r)}).map(function(e){return s[e].name});var me=be.slice();t.Directory=be;t.SheetNames=be;if(!r.bookSheets)t.Sheets=a;if(t.Sheets)K.forEach(function(e,r){t.Sheets[t.SheetNames[r]]["!autofilter"]=e});t.Preamble=d;t.Strings=u;t.SSF=E.get_table();if(F.enc)t.Encryption=F.enc;t.Metadata={};if(_!==undefined)t.Metadata.Country=_;if(V.names.length>0)I.Names=V.names;t.Workbook=I;return t}function IE(e){var r=T.find(e,"!DocumentSummaryInformation");if(r)try{e.DocSummary=nn(r,Yt)}catch(t){}var a=T.find(e,"!SummaryInformation");if(a)try{e.Summary=nn(a,$t)}catch(t){}}function yE(e,r){if(!r)r={};ok(r);a();var t,n,i;if(e.FullPaths){t=T.find(e,"!CompObj");n=T.find(e,"!SummaryInformation");i=T.find(e,"/Workbook")}else{switch(r.type){case"base64":e=p(h.decode(e));break;case"binary":e=p(e);break;case"buffer":break;case"array":if(!Array.isArray(e))e=Array.prototype.slice.call(e);break;}wr(e,0);i={content:e}}if(!i)i=T.find(e,"/Book");var s,f,o;var l;if(t)s=CE(t);if(r.bookProps&&!r.bookSheets)o={};else{if(i&&i.content)o=AE(i.content,r);else if((l=T.find(e,"PerfectOffice_MAIN"))&&l.content)o=Hu.to_workbook(l.content,r);else if((l=T.find(e,"NativeContent_MAIN"))&&l.content)o=Hu.to_workbook(l.content,r);else throw new Error("Cannot find Workbook stream")}if(e.FullPaths)IE(e);var c={};for(var u in e.Summary)c[u]=e.Summary[u];for(u in e.DocSummary)c[u]=e.DocSummary[u];o.Props=o.Custprops=c;if(r.bookFiles)o.cfb=e;return o}var RE={0:{n:"BrtRowHdr",f:tm},1:{n:"BrtCellBlank",f:cm},2:{n:"BrtCellRk",f:Em},3:{n:"BrtCellError",f:vm},4:{n:"BrtCellBool",f:hm},5:{n:"BrtCellReal",f:mm},6:{n:"BrtCellSt",f:Sm},7:{n:"BrtCellIsst",f:pm},8:{n:"BrtFmlaString",f:Tm},9:{n:"BrtFmlaNum",f:_m},10:{n:"BrtFmlaBool",f:Bm},11:{n:"BrtFmlaError",f:Cm},16:{n:"BrtFRTArchID$",f:_g},19:{n:"BrtSSTItem",f:ft},20:{n:"BrtPCDIMissing",f:Br},21:{n:"BrtPCDINumber",f:Br},22:{n:"BrtPCDIBoolean",f:Br},23:{n:"BrtPCDIError",f:Br},24:{n:"BrtPCDIString",f:Br},25:{n:"BrtPCDIDatetime",f:Br},26:{n:"BrtPCDIIndex",f:Br},27:{n:"BrtPCDIAMissing",f:Br},28:{n:"BrtPCDIANumber",f:Br},29:{n:"BrtPCDIABoolean",f:Br},30:{n:"BrtPCDIAError",f:Br},31:{n:"BrtPCDIAString",f:Br},32:{n:"BrtPCDIADatetime",f:Br},33:{n:"BrtPCRRecord",f:Br},34:{n:"BrtPCRRecordDt",f:Br},35:{n:"BrtFRTBegin",f:Br},36:{n:"BrtFRTEnd",f:Br},37:{n:"BrtACBegin",f:Br},38:{n:"BrtACEnd",f:Br},39:{n:"BrtName",f:Tg},40:{n:"BrtIndexRowBlock",f:Br},42:{n:"BrtIndexBlock",f:Br},43:{n:"BrtFont",f:ud},44:{n:"BrtFmt",f:ld},45:{n:"BrtFill",f:pd},46:{n:"BrtBorder",f:kd},47:{n:"BrtXF",f:md},48:{n:"BrtStyle",f:Br},49:{n:"BrtCellMeta",f:Br},50:{n:"BrtValueMeta",f:Br},51:{n:"BrtMdb",f:Br},52:{n:"BrtBeginFmd",f:Br},53:{n:"BrtEndFmd",f:Br},54:{n:"BrtBeginMdx",f:Br},55:{n:"BrtEndMdx",f:Br},56:{n:"BrtBeginMdxTuple",f:Br},57:{n:"BrtEndMdxTuple",f:Br},58:{n:"BrtMdxMbrIstr",f:Br},59:{n:"BrtStr",f:Br},60:{n:"BrtColInfo",f:Vi},62:{n:"BrtCellRString",f:Br},63:{n:"BrtCalcChainItem$",f:tv},64:{n:"BrtDVal",f:Br},65:{n:"BrtSxvcellNum",f:Br},66:{n:"BrtSxvcellStr",f:Br},67:{n:"BrtSxvcellBool",f:Br},68:{n:"BrtSxvcellErr",f:Br},69:{n:"BrtSxvcellDate",f:Br},70:{n:"BrtSxvcellNil",f:Br},128:{n:"BrtFileVersion",f:Br},129:{n:"BrtBeginSheet",f:Br},130:{n:"BrtEndSheet",f:Br},131:{n:"BrtBeginBook",f:Br,p:0},132:{n:"BrtEndBook",f:Br},133:{n:"BrtBeginWsViews",f:Br},134:{n:"BrtEndWsViews",f:Br},135:{n:"BrtBeginBookViews",f:Br},136:{n:"BrtEndBookViews",f:Br},137:{n:"BrtBeginWsView",f:Br},138:{n:"BrtEndWsView",f:Br},139:{n:"BrtBeginCsViews",f:Br},140:{n:"BrtEndCsViews",f:Br},141:{n:"BrtBeginCsView",f:Br},142:{n:"BrtEndCsView",f:Br},143:{n:"BrtBeginBundleShs",f:Br},144:{n:"BrtEndBundleShs",f:Br},145:{n:"BrtBeginSheetData",f:Br},146:{n:"BrtEndSheetData",f:Br},147:{n:"BrtWsProp",f:om},148:{n:"BrtWsDim",f:im,p:16},151:{n:"BrtPane",f:Br},152:{n:"BrtSel",f:Br},153:{n:"BrtWbProp",f:Bg},154:{n:"BrtWbFactoid",f:Br},155:{n:"
n:"DVal",f:zo},437:{n:"DConBin",f:Xo},438:{n:"TxO",f:Pi},439:{n:"RefreshAll",f:Rs},440:{n:"HLink",f:Ni},441:{n:"Lel",f:Go},442:{n:"CodeName",f:jo},443:{n:"SXFDBType",f:Ko},444:{n:"Prot4RevPass",f:Is},445:{n:"ObNoMacros",f:Yo},446:{n:"Dv",f:$o},448:{n:"Excel9File",f:hs},449:{n:"RecalcId",f:Jn,r:2},450:{n:"EntExU2",f:cs},512:{n:"Dimensions",f:si},513:{n:"Blank",f:$i},515:{n:"Number",f:bi},516:{n:"Label",f:ai},517:{n:"BoolErr",f:pi},518:{n:"Formula",f:Jp},519:{n:"String",f:Ns},520:{n:"Row",f:$n},523:{n:"Index",f:Zo},545:{n:"Array",f:xi},549:{n:"DefaultRowHeight",f:qn},566:{n:"Table",f:Qo},574:{n:"Window2",f:Ki},638:{n:"RK",f:fi},659:{n:"Style",f:Gi},1030:{n:"Formula",f:Jp},1048:{n:"BigName",f:Jo},1054:{n:"Format",f:ni},1084:{n:"ContinueBigName",f:qo},1212:{n:"ShrFmla",f:Ti},2048:{n:"HLinkTooltip",f:Li},2049:{n:"WebPub",f:el},2050:{n:"QsiSXTag",f:rl},2051:{n:"DBQueryExt",f:tl},2052:{n:"ExtString",f:al},2053:{n:"TxtQry",f:nl},2054:{n:"Qsir",f:il},2055:{n:"Qsif",f:sl},2056:{n:"RRDTQSIF",f:fl},2057:{n:"BOF",f:zn},2058:{n:"OleDbConn",f:ol},2059:{n:"WOpt",f:ll},2060:{n:"SXViewEx",f:cl},2061:{n:"SXTH",f:ul},2062:{n:"SXPIEx",f:hl},2063:{n:"SXVDTEx",f:dl},2064:{n:"SXViewEx9",f:vl},2066:{n:"ContinueFrt",f:pl},2067:{n:"RealTimeData",f:bl},2128:{n:"ChartFrtInfo",f:ml},2129:{n:"FrtWrapper",f:gl},2130:{n:"StartBlock",f:El},2131:{n:"EndBlock",f:kl},2132:{n:"StartObject",f:Sl},2133:{n:"EndObject",f:wl},2134:{n:"CatLab",f:Bl},2135:{n:"YMult",f:Cl},2136:{n:"SXViewLink",f:_l},2137:{n:"PivotChartBits",f:Tl},2138:{n:"FrtFontList",f:xl},2146:{n:"SheetExt",f:Al},2147:{n:"BookExt",f:Il,r:12},2148:{n:"SXAddl",f:yl},2149:{n:"CrErr",f:Rl},2150:{n:"HFPicture",f:Dl},2151:{n:"FeatHdr",f:ds},2152:{n:"Feat",f:Ol},2154:{n:"DataLabExt",f:Fl},2155:{n:"DataLabExtContents",f:Pl},2156:{n:"CellWatch",f:Nl},2161:{n:"FeatHdr11",f:Ll},2162:{n:"Feature11",f:Ml},2164:{n:"DropDownObjIds",f:Ul},2165:{n:"ContinueFrt11",f:Hl},2166:{n:"DConn",f:Wl},2167:{n:"List12",f:Vl},2168:{n:"Feature12",f:zl},2169:{n:"CondFmt12",f:Xl},2170:{n:"CF12",f:Gl},2171:{n:"CFEx",f:jl},2172:{n:"XFCRC",f:Wi,r:12},2173:{n:"XFExt",f:Jd,r:12},2174:{n:"AutoFilter12",f:Kl},2175:{n:"ContinueFrt12",f:Yl},2180:{n:"MDTInfo",f:$l},2181:{n:"MDXStr",f:Zl},2182:{n:"MDXTuple",f:Ql},2183:{n:"MDXSet",f:Jl},2184:{n:"MDXProp",f:ql},2185:{n:"MDXKPI",f:ec},2186:{n:"MDB",f:rc},2187:{n:"PLV",f:tc},2188:{n:"Compat12",f:ss,r:12},2189:{n:"DXF",f:ac},2190:{n:"TableStyles",f:nc,r:12},2191:{n:"TableStyle",f:ic},2192:{n:"TableStyleElement",f:sc},2194:{n:"StyleExt",f:ji},2195:{n:"NamePublish",f:fc},2196:{n:"NameCmt",f:_i,r:12},2197:{n:"SortData",f:oc},2198:{n:"Theme",f:jd,r:12},2199:{n:"GUIDTypeLib",f:lc},2200:{n:"FnGrp12",f:cc},2201:{n:"NameFnGrp12",f:uc},2202:{n:"MTRSettings",f:Ai,r:12},2203:{n:"CompressPictures",f:Qn},2204:{n:"HeaderFooter",f:hc},2205:{n:"CrtLayout12",f:dc},2206:{n:"CrtMlFrt",f:vc},2207:{n:"CrtMlFrtContinue",f:pc},2211:{n:"ForceFullCalculation",f:Zn},2212:{n:"ShapePropsStream",f:bc},2213:{n:"TextPropsStream",f:mc},2214:{n:"RichTextStream",f:gc},2215:{n:"CrtLayout12A",f:Ec},4097:{n:"Units",f:kc},4098:{n:"Chart",f:Sc},4099:{n:"Series",f:wc},4102:{n:"DataFormat",f:Bc},4103:{n:"LineFormat",f:Cc},4105:{n:"MarkerFormat",f:_c},4106:{n:"AreaFormat",f:Tc},4107:{n:"PieFormat",f:xc},4108:{n:"AttachedLabel",f:Ac},4109:{n:"SeriesText",f:Ic},4116:{n:"ChartFormat",f:yc},4117:{n:"Legend",f:Rc},4118:{n:"SeriesList",f:Dc},4119:{n:"Bar",f:Oc},4120:{n:"Line",f:Fc},4121:{n:"Pie",f:Pc},4122:{n:"Area",f:Nc},4123:{n:"Scatter",f:Lc},4124:{n:"CrtLine",f:Mc},4125:{n:"Axis",f:Uc},4126:{n:"Tick",f:Hc},4127:{n:"ValueRange",f:Wc},4128:{n:"CatSerRange",f:Vc},4129:{n:"AxisLine",f:zc},4130:{n:"CrtLink",f:Xc},4132:{n:"DefaultText",f:Gc},4133:{n:"Text",f:jc},4134:{n:"FontX",f:vs},4135:{n:"ObjectLink",f:Kc},4146:{n:"Frame",f:Yc},4147:{n:"Begin",f:$c},4148:{n:"End",f:Zc},4149:{n:"PlotArea",f:Qc},4154:{n:"Chart3d",f:Jc},4156:{n:"PicF",f:qc},4157:{n:"DropBar",f:eu},4158:{n:"Radar",f:ru},4159:{n:"Surf",f:tu},4160:{n:"RadarArea",f:au},4161:{n:"AxisParent",f:nu},4163:{n:"LegendException",f:iu},4164:{n:"ShtProps",f:Xi},4165:{n:"SerToCrt",f:su},416
var o=vh(a.content);throw new Error("File is password-protected")}function mk(e,r){ov=1024;if(r.bookType=="ods")return JE(e,r);if(e&&!e.SSF){e.SSF=E.get_table()}if(e&&e.SSF){k(E);E.load_table(e.SSF);r.revssf=R(e.SSF);r.revssf[e.SSF[65535]]=0;r.ssf=e.SSF}r.rels={};r.wbrels={};r.Strings=[];r.Strings.Count=0;r.Strings.Unique=0;var t=r.bookType=="xlsb"?"bin":"xml";var a=r.bookType=="xlsb"||r.bookType=="xlsm";var n=na();lk(r=r||{});var i=new ae;var s="",f=0;r.cellXfs=[];yb(r.cellXfs,{},{revssf:{General:0}});if(!e.Props)e.Props={};s="docProps/core.xml";i.file(s,xa(e.Props,r));n.coreprops.push(s);va(r.rels,2,s,la.CORE_PROPS);s="docProps/app.xml";if(e.Props&&e.Props.SheetNames){}else if(!e.Workbook||!e.Workbook.Sheets)e.Props.SheetNames=e.SheetNames;else e.Props.SheetNames=e.SheetNames.map(function(r,t){return[(e.Workbook.Sheets[t]||{}).Hidden!=2,r]}).filter(function(e){return e[0]}).map(function(e){return e[1]});e.Props.Worksheets=e.Props.SheetNames.length;i.file(s,Ra(e.Props,r));n.extprops.push(s);va(r.rels,3,s,la.EXT_PROPS);if(e.Custprops!==e.Props&&A(e.Custprops||{}).length>0){s="docProps/custom.xml";i.file(s,Pa(e.Custprops,r));n.custprops.push(s);va(r.rels,4,s,la.CUST_PROPS)}s="xl/workbook."+t;i.file(s,jg(e,s,r));n.workbooks.push(s);va(r.rels,1,s,la.WB);for(f=1;f<=e.SheetNames.length;++f){var o={"!id":{}};var l=e.Sheets[e.SheetNames[f-1]];var c=(l||{})["!type"]||"sheet";switch(c){case"chart":;default:s="xl/worksheets/sheet"+f+"."+t;i.file(s,Kg(f-1,s,r,e,o));n.sheets.push(s);va(r.wbrels,-1,"worksheets/sheet"+f+"."+t,la.WS[0]);}if(l){var u=l["!comments"];if(u&&u.length>0){var h="xl/comments"+f+"."+t;i.file(h,Qg(u,h,r));n.comments.push(h);va(o,-1,"../comments"+f+"."+t,la.CMNT)}if(l["!legacy"]){i.file("xl/drawings/vmlDrawing"+f+".vml",lv(f,l["!comments"]))}delete l["!comments"];delete l["!legacy"]}if(o["!id"].rId1)i.file(ca(s),da(o))}if(r.Strings!=null&&r.Strings.length>0){s="xl/sharedStrings."+t;i.file(s,Zg(r.Strings,s,r));n.strs.push(s);va(r.wbrels,-1,"sharedStrings."+t,la.SST)}s="xl/theme/theme1.xml";i.file(s,Gd(e.Themes,r));n.themes.push(s);va(r.wbrels,-1,"theme/theme1.xml",la.THEME);s="xl/styles."+t;i.file(s,$g(e,s,r));n.styles.push(s);va(r.wbrels,-1,"styles."+t,la.STY);if(e.vbaraw&&a){s="xl/vbaProject.bin";i.file(s,e.vbaraw);n.vba.push(s);va(r.wbrels,-1,"vbaProject.bin",la.VBA)}i.file("[Content_Types].xml",oa(n,r));i.file("_rels/.rels",da(r.rels));i.file("xl/_rels/workbook."+t+".rels",da(r.wbrels));delete r.revssf;delete r.ssf;return i}function gk(e,r){var t="";switch((r||{}).type||"base64"){case"buffer":return[e[0],e[1],e[2],e[3]];case"base64":t=h.decode(e.substr(0,24));break;case"binary":t=e;break;case"array":return[e[0],e[1],e[2],e[3]];default:throw new Error("Unrecognized type "+(r&&r.type||"undefined"));}return[t.charCodeAt(0),t.charCodeAt(1),t.charCodeAt(2),t.charCodeAt(3)]}function Ek(e,r){if(T.find(e,"EncryptedPackage"))return bk(e,r);return yE(e,r)}function kk(e,r){var t,a=e;var n=r||{};if(!n.type)n.type=d&&Buffer.isBuffer(e)?"buffer":"base64";switch(n.type){case"base64":t=new ae(a,{base64:true});break;case"binary":;case"array":t=new ae(a,{base64:false});break;case"buffer":t=new ae(a);break;default:throw new Error("Unrecognized type "+n.type);}return pk(t,n)}function Sk(e,r){var t=0;e:while(t<e.length)switch(e.charCodeAt(t)){case 10:;case 13:;case 32:++t;break;case 60:return dE(e.slice(t),r);default:break e;}return Mu.to_workbook(e,r)}function wk(e,r){var t="",a=gk(e,r);switch(r.type){case"base64":t=h.decode(e);break;case"binary":t=e;break;case"buffer":t=e.toString("binary");break;case"array":t=W(e);break;default:throw new Error("Unrecognized type "+r.type);}if(a[0]==239&&a[1]==187&&a[2]==191)t=Ce(t);return Sk(t,r)}function Bk(e,r){var t=e;if(r.type=="base64")t=h.decode(t);t=cptable.utils.decode(1200,t.slice(2),"str");r.type="binary";return Sk(t,r)}function Ck(e,r){var t,a=e,n=[0];var i=r||{};Tb={};if(i.dateNF)Tb.dateNF=i.dateNF;if(!i.type)i.type=d&&Buffer.isBuffer(e)?"buffer":"base64";if(i.type=="file"){i.type="buffer";a=te.readFileSync(e)}switch((n=gk(a,i))[0]){case 208:return Ek(T.read(a,i),i);case 9:return y