sheetjs/dist/xlsx.min.js

14 lines
361 KiB
JavaScript
Raw Normal View History

/* xlsx.js (C) 2013-present SheetJS -- http://sheetjs.com */
var DO_NOT_EXPORT_CODEPAGE=true;var DO_NOT_EXPORT_JSZIP=true;var XLSX={};(function e(r){r.version="0.11.18";var t=1200,a=1252;if(typeof module!=="undefined"&&typeof require!=="undefined"){if(typeof cptable==="undefined")global.cptable=undefined}var n=[874,932,936,949,950];for(var i=0;i<=8;++i)n.push(1250+i);var s={0:1252,1:65001,2:65001,77:1e4,128:932,129:949,130:1361,134:936,136:950,161:1253,162:1254,163:1258,177:1255,178:1256,186:1257,204:1251,222:874,238:1250,255:1252,69:6969};var l=function(e){if(n.indexOf(e)==-1)return;a=s[0]=e};function c(){l(1252)}var f=function(e){t=e;l(e)};function o(){f(1200);c()}function u(e){var r=[];for(var t=0,a=e.length;t<a;++t)r[t]=e.charCodeAt(t);return r}function h(e){var r=[];for(var t=0;t<e.length>>1;++t)r[t]=String.fromCharCode(e.charCodeAt(2*t)+(e.charCodeAt(2*t+1)<<8));return r.join("")}function d(e){var r=[];for(var t=0;t<e.length>>1;++t)r[t]=String.fromCharCode(e.charCodeAt(2*t+1)+(e.charCodeAt(2*t)<<8));return r.join("")}var v=function(e){var r=e.charCodeAt(0),t=e.charCodeAt(1);if(r==255&&t==254)return h(e.slice(2));if(r==254&&t==255)return d(e.slice(2));if(r==65279)return e.slice(1);return e};var p=function $p(e){return String.fromCharCode(e)};if(typeof cptable!=="undefined"){f=function(e){t=e};v=function(e){if(e.charCodeAt(0)===255&&e.charCodeAt(1)===254){return cptable.utils.decode(1200,u(e.slice(2)))}return e};p=function Qp(e){if(t===1200)return String.fromCharCode(e);return cptable.utils.decode(t,[e&255,e>>8])[0]}}var b=null;var m=true;var g=function Jp(){var e="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=";return{encode:function(r){var t="";var a=0,n=0,i=0,s=0,l=0,c=0,f=0;for(var o=0;o<r.length;){a=r.charCodeAt(o++);n=r.charCodeAt(o++);i=r.charCodeAt(o++);s=a>>2;l=(a&3)<<4|n>>4;c=(n&15)<<2|i>>6;f=i&63;if(isNaN(n)){c=f=64}else if(isNaN(i)){f=64}t+=e.charAt(s)+e.charAt(l)+e.charAt(c)+e.charAt(f)}return t},decode:function r(t){var a="";var n=0,i=0,s=0;var l=0,c=0,f=0,o=0;t=t.replace(/[^A-Za-z0-9\+\/\=]/g,"");for(var u=0;u<t.length;){l=e.indexOf(t.charAt(u++));c=e.indexOf(t.charAt(u++));f=e.indexOf(t.charAt(u++));o=e.indexOf(t.charAt(u++));n=l<<2|c>>4;i=(c&15)<<4|f>>2;s=(f&3)<<6|o;a+=String.fromCharCode(n);if(f!==64){a+=String.fromCharCode(i)}if(o!==64){a+=String.fromCharCode(s)}}return a}}}();var E=typeof Buffer!=="undefined"&&typeof process!=="undefined"&&typeof process.versions!=="undefined"&&process.versions.node;function S(e){return new(E?Buffer:Array)(e)}function k(e){if(E)return new Buffer(e,"binary");return e.split("").map(function(e){return e.charCodeAt(0)&255})}function w(e){if(typeof ArrayBuffer==="undefined")return k(e);var r=new ArrayBuffer(e.length),t=new Uint8Array(r);for(var a=0;a!=e.length;++a)t[a]=e.charCodeAt(a)&255;return r}function B(e){if(Array.isArray(e))return e.map(Kd).join("");var r=[];for(var t=0;t<e.length;++t)r[t]=Kd(e[t]);return r.join("")}function C(e){if(typeof ArrayBuffer=="undefined")throw new Error("Unsupported");if(e instanceof ArrayBuffer)return C(new Uint8Array(e));var r=new Array(e.length);for(var t=0;t<e.length;++t)r[t]=e[t];return r}var T=function(e){return[].concat.apply([],e)};var I=/\u0000/g,x=/[\u0001-\u0006]/g;var A={};var R=function Zp(e){e.version="0.10.0";function r(e){var r="",t=e.length-1;while(t>=0)r+=e.charAt(t--);return r}function t(e,r){var t="";while(t.length<r)t+=e;return t}function a(e,r){var a=""+e;return a.length>=r?a:t("0",r-a.length)+a}function n(e,r){var a=""+e;return a.length>=r?a:t(" ",r-a.length)+a}function i(e,r){var a=""+e;return a.length>=r?a:a+t(" ",r-a.length)}function s(e,r){var a=""+Math.round(e);return a.length>=r?a:t("0",r-a.length)+a}function l(e,r){var a=""+e;return a.length>=r?a:t("0",r-a.length)+a}var c=Math.pow(2,32);function f(e,r){if(e>c||e<-c)return s(e,r);var t=Math.round(e);return l(t,r)}function o(e,r){r=r||0;return e.length>=7+r&&(e.charCodeAt(r)|32)===103&&(e.charCodeAt(r+1)|32)===101&&(e.charCodeAt(r+2)|32)===110&&(e.charCodeAt(r+3)|32)===101&&(e.charCodeAt(r+4)|32)===114&&(e.charCodeAt(r+5)|32)===97&&(e.charCodeAt(r+6)|32)===108}var u=[["Sun","Sunday"],["Mon","Monday
if(S!==0)g.mt=b(m,m.l-8);g.start=m._R(4,"i");g.size=m._R(4,"i");if(g.size<0&&g.start<0){g.size=g.type=0;g.start=F;g.name=""}if(g.type===5){c=g.start;if(n>0&&c!==F)r[c].name="!StreamData"}else if(g.size>=4096){g.storage="fat";if(r[g.start]===undefined)r[g.start]=d(t,g.start,r.fat_addrs,r.ssz);r[g.start].name=g.name;g.content=r[g.start].data.slice(0,g.size);_r(g.content,0)}else{g.storage="minifat";if(c!==F&&g.start!==F&&r[c]){g.content=u(g,r[c].data,(r[l]||{}).data);_r(g.content,0)}}i[p]=g;s.push(g)}}function b(e,r){return new Date((Br(e,r+4)/1e7*Math.pow(2,32)+Br(e,r)/1e7-11644473600)*1e3)}function m(e,r){i();return s(n.readFileSync(e),r)}function E(e,r){switch(r&&r.type||"base64"){case"file":return m(e,r);case"base64":return s(k(g.decode(e)),r);case"binary":return s(k(e),r);}return s(e,r)}function S(e,r){var t=r||{},a=t.root||"Root Entry";if(!e.FullPaths)e.FullPaths=[];if(!e.FileIndex)e.FileIndex=[];if(e.FullPaths.length!==e.FileIndex.length)throw new Error("inconsistent CFB structure");if(e.FullPaths.length===0){e.FullPaths[0]=a+"/";e.FileIndex[0]={name:a,type:5}}if(t.CLSID)e.FileIndex[0].clsid=t.CLSID;w(e)}function w(e){var r="Sh33tJ5";if(P.find(e,"/"+r))return;var t=yr(4);t[0]=55;t[1]=t[3]=50;t[2]=54;e.FileIndex.push({name:r,type:2,content:t,size:4,L:69,R:69,C:69});e.FullPaths.push(e.FullPaths[0]+r);B(e)}function B(e,n){S(e);var i=false,s=false;for(var l=e.FullPaths.length-1;l>=0;--l){var c=e.FileIndex[l];switch(c.type){case 0:if(s)i=true;else{e.FileIndex.pop();e.FullPaths.pop()}break;case 1:;case 2:;case 5:s=true;if(isNaN(c.R*c.L*c.C))i=true;if(c.R>-1&&c.L>-1&&c.R==c.L)i=true;break;default:i=true;break;}}if(!i&&!n)return;var f=new Date(1987,1,19),o=0;var u=[];for(l=0;l<e.FullPaths.length;++l){if(e.FileIndex[l].type===0)continue;u.push([e.FullPaths[l],e.FileIndex[l]])}for(l=0;l<u.length;++l){var h=t(u[l][0]);s=false;for(o=0;o<u.length;++o)if(u[o][0]===h)s=true;if(!s)u.push([h,{name:a(h).replace("/",""),type:1,clsid:O,ct:f,mt:f,content:null}])}u.sort(function(e,t){return r(e[0],t[0])});e.FullPaths=[];e.FileIndex=[];for(l=0;l<u.length;++l){e.FullPaths[l]=u[l][0];e.FileIndex[l]=u[l][1]}for(l=0;l<u.length;++l){var d=e.FileIndex[l];var v=e.FullPaths[l];d.name=a(v).replace("/","");d.L=d.R=d.C=-(d.color=1);d.size=d.content?d.content.length:0;d.start=0;d.clsid=d.clsid||O;if(l===0){d.C=u.length>1?1:-1;d.size=0;d.type=5}else if(v.slice(-1)=="/"){for(o=l+1;o<u.length;++o)if(t(e.FullPaths[o])==v)break;d.C=o>=u.length?-1:o;for(o=l+1;o<u.length;++o)if(t(e.FullPaths[o])==t(v))break;d.R=o>=u.length?-1:o;d.type=1}else{if(t(e.FullPaths[l+1]||"")==t(v))d.R=l+1;d.type=2}}}function C(e,r){var t=r||{};B(e);var a=function(e){var r=0,t=0;for(var a=0;a<e.FileIndex.length;++a){var n=e.FileIndex[a];if(!n.content)continue;var i=n.content.length;if(i>0){if(i<4096)r+=i+63>>6;else t+=i+511>>9}}var s=e.FullPaths.length+3>>2;var l=r+7>>3;var c=r+127>>7;var f=l+t+s+c;var o=f+127>>7;var u=o<=109?0:Math.ceil((o-109)/127);while(f+o+u+127>>7>o)u=++o<=109?0:Math.ceil((o-109)/127);var h=[1,u,o,c,s,t,r,0];e.FileIndex[0].size=r<<6;h[7]=(e.FileIndex[0].start=h[0]+h[1]+h[2]+h[3]+h[4]+h[5])+(h[6]+7>>3);return h}(e);var n=yr(a[7]<<9);var i=0,s=0;{for(i=0;i<8;++i)n._W(1,_[i]);for(i=0;i<8;++i)n._W(2,0);n._W(2,62);n._W(2,3);n._W(2,65534);n._W(2,9);n._W(2,6);for(i=0;i<3;++i)n._W(2,0);n._W(4,0);n._W(4,a[2]);n._W(4,a[0]+a[1]+a[2]+a[3]-1);n._W(4,0);n._W(4,1<<12);n._W(4,a[3]?a[0]+a[1]+a[2]-1:F);n._W(4,a[3]);n._W(-4,a[1]?a[0]-1:F);n._W(4,a[1]);for(i=0;i<109;++i)n._W(-4,i<a[2]?a[1]+i:-1)}if(a[1]){for(s=0;s<a[1];++s){for(;i<236+s*127;++i)n._W(-4,i<a[2]?a[1]+i:-1);n._W(-4,s===a[1]-1?F:s+1)}}var l=function(e){for(s+=e;i<s-1;++i)n._W(-4,i+1);if(e){++i;n._W(-4,F)}};s=i=0;for(s+=a[1];i<s;++i)n._W(-4,y.DIFSECT);for(s+=a[2];i<s;++i)n._W(-4,y.FATSECT);l(a[3]);l(a[4]);var c=0,f=0;var o=e.FileIndex[0];for(;c<e.FileIndex.length;++c){o=e.FileIndex[c];if(!o.content)continue;f=o.content.length;if(f<4096)continue;o.start=s;l(f+511>>9)}l(a[6]+7>>3);while(n.l&511)n._W(-4,y.ENDOFCHAIN);s=i=0;for(c=0;c<e.FileIndex.length;++c){o=e.FileIndex[c];if(!o.content)continue;f=o.content.length;if(!f|
return r}function ot(e){var r=e._R(4);return r===0?"":e._R(r,"dbcs")}function ut(e,r){var t=false;if(r==null){t=true;r=yr(4+2*e.length)}r._W(4,e.length);if(e.length>0)r._W(0,e,"dbcs");return t?r.slice(0,r.l):r}function ht(e){return{ich:e._R(2),ifnt:e._R(2)}}function dt(e,r){if(!r)r=yr(4);r._W(2,e.ich||0);r._W(2,e.ifnt||0);return r}function vt(e,r){var t=e.l;var a=e._R(1);var n=ot(e);var i=[];var s={t:n,h:n};if((a&1)!==0){var l=e._R(4);for(var c=0;c!=l;++c)i.push(ht(e));s.r=i}else s.r=[{ich:0,ifnt:0}];e.l=t+r;return s}function pt(e,r){var t=false;if(r==null){t=true;r=yr(15+4*e.t.length)}r._W(1,0);ut(e.t,r);return t?r.slice(0,r.l):r}var bt=vt;function mt(e,r){var t=false;if(r==null){t=true;r=yr(23+4*e.t.length)}r._W(1,1);ut(e.t,r);r._W(4,1);dt({ich:0,ifnt:0},r);return t?r.slice(0,r.l):r}function gt(e){var r=e._R(4);var t=e._R(2);t+=e._R(1)<<16;e.l++;return{c:r,iStyleRef:t}}function Et(e,r){if(r==null)r=yr(8);r._W(-4,e.c);r._W(3,e.iStyleRef||e.s);r._W(1,0);return r}var St=ot;var kt=ut;function wt(e){var r=e._R(4);return r===0||r===4294967295?"":e._R(r,"dbcs")}function Bt(e,r){var t=false;if(r==null){t=true;r=yr(127)}r._W(4,e.length>0?e.length:4294967295);if(e.length>0)r._W(0,e,"dbcs");return t?r.slice(0,r.l):r}var Ct=ot;var Tt=wt;var It=Bt;function xt(e){var r=e.slice(e.l,e.l+4);var t=r[0]&1,a=r[0]&2;e.l+=4;r[0]&=252;var n=a===0?mr([0,0,0,0,r[0],r[1],r[2],r[3]],0):Cr(r,0)>>2;return t?n/100:n}function At(e,r){if(r==null)r=yr(4);var t=0,a=0,n=e*100;if(e==(e|0)&&e>=-(1<<29)&&e<1<<29){a=1}else if(n==(n|0)&&n>=-(1<<29)&&n<1<<29){a=1;t=1}if(a)r._W(-4,((t?n:e)<<2)+(t+2));else throw new Error("unsupported RkNumber "+e)}function Rt(e){var r={s:{},e:{}};r.s.r=e._R(4);r.e.r=e._R(4);r.s.c=e._R(4);r.e.c=e._R(4);return r}function Ft(e,r){if(!r)r=yr(16);r._W(4,e.s.r);r._W(4,e.e.r);r._W(4,e.s.c);r._W(4,e.e.c);return r}var Dt=Rt;var _t=Ft;function Ot(e){return e._R(8,"f")}function yt(e,r){return(r||yr(8))._W(8,e,"f")}var Pt={0:"#NULL!",7:"#DIV/0!",15:"#VALUE!",23:"#REF!",29:"#NAME?",36:"#NUM!",42:"#N/A",43:"#GETTING_DATA",255:"#WTF?"};var Nt=U(Pt);function Mt(e){var r={};var t=e._R(1);var a=t>>>1;var n=e._R(1);var i=e._R(2,"i");var s=e._R(1);var l=e._R(1);var c=e._R(1);e.l++;switch(a){case 0:r.auto=1;break;case 1:r.index=n;var f=ca[n];if(f)r.rgb=wl(f);break;case 2:r.rgb=wl([s,l,c]);break;case 3:r.theme=n;break;}if(i!=0)r.tint=i>0?i/32767:i/32768;return r}function Lt(e,r){if(!r)r=yr(8);if(!e||e.auto){r._W(4,0);r._W(4,0);return r}if(e.index){r._W(1,2);r._W(1,e.index)}else if(e.theme){r._W(1,6);r._W(1,e.theme)}else{r._W(1,5);r._W(1,0)}var t=e.tint||0;if(t>0)t*=32767;else if(t<0)t*=32768;r._W(2,t);if(!e.rgb){r._W(2,0);r._W(1,0);r._W(1,0)}else{var a=e.rgb||"FFFFFF";r._W(1,parseInt(a.slice(0,2),16));r._W(1,parseInt(a.slice(2,4),16));r._W(1,parseInt(a.slice(4,6),16));r._W(1,255)}return r}function Ut(e){var r=e._R(1);e.l++;var t={fItalic:r&2,fStrikeout:r&8,fOutline:r&16,fShadow:r&32,fCondense:r&64,fExtend:r&128};return t}function Wt(e,r){if(!r)r=yr(2);var t=(e.italic?2:0)|(e.strike?8:0)|(e.outline?16:0)|(e.shadow?32:0)|(e.condense?64:0)|(e.extend?128:0);r._W(1,t);r._W(1,0);return r}function Vt(e,r){var t={2:"BITMAP",3:"METAFILEPICT",8:"DIB",14:"ENHMETAFILE"};var a=e._R(4);switch(a){case 0:return"";case 4294967295:;case 4294967294:return t[e._R(4)]||"";}if(a>400)throw new Error("Unsupported Clipboard: "+a.toString(16));e.l-=4;return e._R(0,r==1?"lpstr":"lpwstr")}function Ht(e){return Vt(e,1)}function Xt(e){return Vt(e,2)}var Gt=2;var zt=3;var jt=11;var Kt=12;var Yt=19;var $t=30;var Qt=64;var Jt=71;var Zt=4096;var qt=80;var ea=81;var ra=[qt,ea];var ta={1:{n:"CodePage",t:Gt},2:{n:"Category",t:qt},3:{n:"PresentationFormat",t:qt},4:{n:"ByteCount",t:zt},5:{n:"LineCount",t:zt},6:{n:"ParagraphCount",t:zt},7:{n:"SlideCount",t:zt},8:{n:"NoteCount",t:zt},9:{n:"HiddenCount",t:zt},10:{n:"MultimediaClipCount",t:zt},11:{n:"Scale",t:jt},12:{n:"HeadingPair",t:Zt|Kt},13:{n:"DocParts",t:Zt|$t},14:{n:"Manager",t:qt},15:{n:"Company",t:qt},16:{n:"LinksDirty",t:jt},17:{n:"CharacterCount",t:zt},19:{n:"SharedDoc",t:jt},22:{n:"HLinksChanged",t:jt},23:{n:"AppVersion",t:zt,p
t._W(2,e.length);t._W(1,1);t._W(31,e,"utf16le");return t}function Rn(e){var r=e._R(1);e.l++;var t=e._R(2);e.l+=2;return[r,t]}function Fn(e){var r=e._R(4),t=e.l;var a=false;if(r>24){e.l+=r-24;if(e._R(16)==="795881f43b1d7f48af2c825dc4852763")a=true;e.l=t}var n=e._R((a?r-24:r)>>1,"utf16le").replace(I,"");if(a)e.l+=24;return n}function Dn(e){e.l+=2;var r=e._R(0,"lpstr-ansi");e.l+=2;if(e._R(2)!=57005)throw new Error("Bad FileMoniker");var t=e._R(4);if(t===0)return r.replace(/\\/g,"/");var a=e._R(4);if(e._R(2)!=3)throw new Error("Bad FileMoniker");var n=e._R(a>>1,"utf16le").replace(I,"");return n}function _n(e,r){var t=e._R(16);r-=16;switch(t){case"e0c9ea79f9bace118c8200aa004ba90b":return Fn(e,r);case"0303000000000000c000000000000046":return Dn(e,r);default:throw new Error("Unsupported Moniker "+t);}}function On(e){var r=e._R(4);var t=r>0?e._R(r,"utf16le").replace(I,""):"";return t}function yn(e,r){var t=e.l+r;var a=e._R(4);if(a!==2)throw new Error("Unrecognized streamVersion: "+a);var n=e._R(2);e.l+=2;var i,s,l,c,f="",o,u;if(n&16)i=On(e,t-e.l);if(n&128)s=On(e,t-e.l);if((n&257)===257)l=On(e,t-e.l);if((n&257)===1)c=_n(e,t-e.l);if(n&8)f=On(e,t-e.l);if(n&32)o=e._R(16);if(n&64)u=$a(e);e.l=t;var h=s||l||c||"";if(h&&f)h+="#"+f;if(!h)h="#"+f;var d={Target:h};if(o)d.guid=o;if(u)d.time=u;if(i)d.Tooltip=i;return d}function Pn(e){var r=yr(512),t=0;var a=e.Target;var n=a.indexOf("#")>-1?31:23;switch(a.charAt(0)){case"#":n=28;break;case".":n&=~2;break;}r._W(4,2);r._W(4,n);var i=[8,6815827,6619237,4849780,83];for(t=0;t<i.length;++t)r._W(4,i[t]);if(n==28){a=a.slice(1);r._W(4,a.length+1);for(t=0;t<a.length;++t)r._W(2,a.charCodeAt(t));r._W(2,0)}else if(n&2){i="e0 c9 ea 79 f9 ba ce 11 8c 82 00 aa 00 4b a9 0b".split(" ");for(t=0;t<i.length;++t)r._W(1,parseInt(i[t],16));r._W(4,2*(a.length+1));for(t=0;t<a.length;++t)r._W(2,a.charCodeAt(t));r._W(2,0)}else{i="03 03 00 00 00 00 00 00 c0 00 00 00 00 00 00 46".split(" ");for(t=0;t<i.length;++t)r._W(1,parseInt(i[t],16));var s=0;while(a.slice(s*3,s*3+3)=="../"||a.slice(s*3,s*3+3)=="..\\")++s;r._W(2,s);r._W(4,a.length+1);for(t=0;t<a.length;++t)r._W(1,a.charCodeAt(t)&255);r._W(1,0);r._W(2,65535);r._W(2,57005);for(t=0;t<6;++t)r._W(4,0)}return r.slice(0,r.l)}function Nn(e){var r=e._R(1),t=e._R(1),a=e._R(1),n=e._R(1);return[r,t,a,n]}function Mn(e,r){var t=Nn(e,r);t[3]=0;return t}function Ln(e){var r=e._R(2);var t=e._R(2);var a=e._R(2);return{r:r,c:t,ixfe:a}}function Un(e,r,t,a){if(!a)a=yr(6);a._W(2,e);a._W(2,r);a._W(2,t||0);return a}function Wn(e){var r=e._R(2);var t=e._R(2);e.l+=8;return{type:r,flags:t}}function Vn(e,r,t){return r===0?"":xn(e,r,t)}function Hn(e,r,t){var a=t.biff>8?4:2;var n=e._R(a),i=e._R(a,"i"),s=e._R(a,"i");return[n,i,s]}function Xn(e){var r=e._R(2);var t=xt(e);return[r,t]}function Gn(e,r,t){e.l+=4;r-=4;var a=e.l+r;var n=Bn(e,r,t);var i=e._R(2);a-=e.l;if(i!==a)throw new Error("Malformed AddinUdf: padding = "+a+" != "+i);e.l+=i;return n}function zn(e){var r=e._R(2);var t=e._R(2);var a=e._R(2);var n=e._R(2);return{s:{c:a,r:r},e:{c:n,r:t}}}function jn(e,r){if(!r)r=yr(8);r._W(2,e.s.r);r._W(2,e.e.r);r._W(2,e.s.c);r._W(2,e.e.c);return r}function Kn(e){var r=e._R(2);var t=e._R(2);var a=e._R(1);var n=e._R(1);return{s:{c:a,r:r},e:{c:n,r:t}}}var Yn=Kn;function $n(e){e.l+=4;var r=e._R(2);var t=e._R(2);var a=e._R(2);e.l+=12;return[t,r,a]}function Qn(e){var r={};e.l+=4;e.l+=16;r.fSharedNote=e._R(2);e.l+=4;return r}function Jn(e){var r={};e.l+=4;e.cf=e._R(2);return r}function Zn(e){e.l+=2;e.l+=e._R(2)}var qn={0:Zn,4:Zn,5:Zn,6:Zn,7:Jn,8:Zn,9:Zn,10:Zn,11:Zn,12:Zn,13:Qn,14:Zn,15:Zn,16:Zn,17:Zn,18:Zn,19:Zn,20:Zn,21:$n};function ei(e,r){var t=e.l+r;var a=[];while(e.l<t){var n=e._R(2);e.l-=2;try{a.push(qn[n](e,t-e.l))}catch(i){e.l=t;return a}}if(e.l!=t)e.l=t;return a}function ri(e,r){var t={BIFFVer:0,dt:0};t.BIFFVer=e._R(2);r-=2;if(r>=2){t.dt=e._R(2);e.l-=2}switch(t.BIFFVer){case 1536:;case 1280:;case 2:;case 7:break;default:if(r>6)throw new Error("Unexpected BIFF Ver "+t.BIFFVer);}e._R(r);return t}function ti(e,r,t){var a=1536,n=16;switch(t.bookType){case"biff8":break;case"biff5":a=1280;n=8;break;case"biff4
r=O(r,t.dateNF,r.match(p)||[]);n=1}if(t.cellDates){a.t="d";a.v=Y(r,n)}else{a.t="n";a.v=X(Y(r,n))}if(t.cellText!==false)a.w=A.format(a.z,a.v instanceof Date?X(a.v):a.v);if(!t.cellNF)delete a.z}else{a.t="s";a.v=r}if(a.t=="z"){}else if(t.dense){if(!i[l])i[l]=[];i[l][c]=a}else i[et({c:c,r:l})]=a;o=u+1;if(s.e.c<c)s.e.c=c;if(s.e.r<l)s.e.r=l;if(v==h)++c;else{c=0;++l}}for(;u<e.length;++u)switch(v=e.charCodeAt(u)){case 34:d=!d;break;case h:;case 10:;case 13:if(!d)m();break;default:break;}if(u-o>0)m();i["!ref"]=tt(s);return i}function s(e,t){if(e.slice(0,4)=="sep=")return i(e,t);if(e.indexOf("\t")>=0||e.indexOf(",")>=0||e.indexOf(";")>=0)return i(e,t);return ct(r(e,t),t)}function l(e,r){var t="",a=r.type=="string"?[0,0,0,0]:kp(e,r);switch(r.type){case"base64":t=g.decode(e);break;case"binary":t=e;break;case"buffer":t=e.toString("binary");break;case"array":t=$(e);break;case"string":t=e;break;default:throw new Error("Unrecognized type "+r.type);}if(a[0]==239&&a[1]==187&&a[2]==191)t=Oe(t.slice(3));else if((r.type=="binary"||r.type=="buffer")&&typeof cptable!=="undefined"&&r.codepage)t=cptable.utils.decode(r.codepage,cptable.utils.encode(1252,t));if(t.slice(0,19)=="socialcalc:version:")return Ds.to_sheet(r.type=="string"?t:Oe(t),r);return s(t,r)}function c(e,r){return st(l(e,r),r)}function f(e){var r=[];var t=at(e["!ref"]),a;var n=Array.isArray(e);for(var i=t.s.r;i<=t.e.r;++i){var s=[];for(var l=t.s.c;l<=t.e.c;++l){var c=et({r:i,c:l});a=n?(e[i]||[])[l]:e[c];if(!a||a.v==null){s.push(" ");continue}var f=(a.w||(it(a),a.w)||"").slice(0,10);while(f.length<10)f+=" ";s.push(f+(l===0?" ":""))}r.push(s.join(""))}return r.join("\n")}return{to_workbook:c,to_sheet:l,from_sheet:f}}();function Os(e,r){var t=r||{},a=!!t.WTF;t.WTF=true;try{var n=Rs.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 _s.to_workbook(e,r)}}var ys=function(){function e(e,r,t){if(!e)return;_r(e,e.l||0);var a=t.Enum||E;while(e.l<e.length){var n=e._R(2);var i=a[n]||a[255];var s=e._R(2);var l=e.l+s;var c=(i.f||Or)(e,s,t);e.l=l;if(r(c,i.n,n))return}}function r(e,r){switch(r.type){case"base64":return t(k(g.decode(e)),r);case"binary":return t(k(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(b!=null&&a.dense==null)a.dense=b;var n=a.dense?[]:{},i="Sheet1",s=0;var l={},c=[i];var f={s:{r:0,c:0},e:{r:0,c:0}};if(r[2]==2)a.Enum=E;else if(r[2]==26)a.Enum=S;else if(r[2]==14){a.Enum=S;a.qpro=true;r.l=0}else throw new Error("Unrecognized LOTUS BOF "+r[2]);e(r,function(e,t,o){if(r[2]==2)switch(o){case 0:a.vers=e;if(e>=4096)a.qpro=true;break;case 6:f=e;break;case 15:if(!a.qpro)e[1].v=e[1].v.slice(1);case 13:;case 14:;case 16:;case 51:if(o==14&&(e[2]&112)==112&&(e[2]&15)>1&&(e[2]&15)<15){e[1].z=a.dateNF||A._table[14];if(a.cellDates){e[1].t="d";e[1].v=G(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[et(e[0])]=e[1];break;}else switch(o){case 22:e[1].v=e[1].v.slice(1);case 23:;case 24:;case 25:;case 37:;case 39:;case 40:if(e[3]>s){n["!ref"]=tt(f);l[i]=n;n=a.dense?[]:{};f={s:{r:0,c:0},e:{r:0,c:0}};s=e[3];i="Sheet"+(s+1);c.push(i)}if(a.dense){if(!n[e[0].r])n[e[0].r]=[];n[e[0].r][e[0].c]=e[1]}else n[et(e[0])]=e[1];if(f.e.c<e[0].c)f.e.c=e[0].c;if(f.e.r<e[0].r)f.e.r=e[0].r;break;default:break;}},a);n["!ref"]=tt(f);l[i]=n;return{SheetNames:c,Sheets:l}}function a(e){var r={s:{c:0,r:0},e:{c:0,r:0}};r.s.c=e._R(2);r.s.r=e._R(2);r.e.c=e._R(2);r.e.r=e._R(2);if(r.s.c==65535)r.s.c=r.e.c=r.s.r=r.e.r=0;return r}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._R(1);e.l++;a[0].r=e._R(2);e.l+=2}else{a[2]=e._R(1);a[0].c=e._R(2);a[0].r=e._R(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._R(1);i[1].v=e._R(s,"utf8");return i}if(t.qpro)e.l++;i[1].v=e._R(a-e.l,"cstr");return i}function s(e,r,t){var a=n(e,r,t);a[1].v=e._R(2,"i");return a}function l(e,r,t){var a=n(e,r,t);a[1].v=e._R(8,"f");return a}function c(e,r,t){var a=e.l+r;var i=n(e,r,t);i[1].v=e._R(8,"f
Mr(e,"BrtBeginFonts",ft(r));Mr(e,"BrtFont",tc({sz:12,color:{theme:1},name:"Calibri",family:2,scheme:"minor"}));Mr(e,"BrtEndFonts")}function mc(e){var r=2;if(r==0)return;Mr(e,"BrtBeginFills",ft(r));Mr(e,"BrtFill",sc({patternType:"none"}));Mr(e,"BrtFill",sc({patternType:"gray125"}));Mr(e,"BrtEndFills")}function gc(e){var r=1;if(r==0)return;Mr(e,"BrtBeginBorders",ft(r));Mr(e,"BrtBorder",uc({}));Mr(e,"BrtEndBorders")}function Ec(e){var r=1;Mr(e,"BrtBeginCellStyleXFs",ft(r));Mr(e,"BrtXF",cc({numFmtId:0,fontId:0,fillId:0,borderId:0},65535));Mr(e,"BrtEndCellStyleXFs")}function Sc(e,r){Mr(e,"BrtBeginCellXFs",ft(r.length));r.forEach(function(r){Mr(e,"BrtXF",cc(r,0))});Mr(e,"BrtEndCellXFs")}function kc(e){var r=1;Mr(e,"BrtBeginStyles",ft(r));Mr(e,"BrtStyle",hc({xfId:0,builtinId:0,name:"Normal"}));Mr(e,"BrtEndStyles")}function wc(e){var r=0;Mr(e,"BrtBeginDXFs",ft(r));Mr(e,"BrtEndDXFs")}function Bc(e){var r=0;Mr(e,"BrtBeginTableStyles",dc(r,"TableStyleMedium9","PivotStyleMedium4"));Mr(e,"BrtEndTableStyles")}function Cc(){return}function Tc(e,r){var t=Nr();Mr(t,"BrtBeginStyleSheet");pc(t,e.SSF);bc(t,e);mc(t,e);gc(t,e);Ec(t,e);Sc(t,r.cellXfs);kc(t,e);wc(t,e);Bc(t,e);Cc(t,e);Mr(t,"BrtEndStyleSheet");return t.end()}ma.THEME="http://schemas.openxmlformats.org/officeDocument/2006/relationships/theme";function Ic(e,r,t){r.themeElements.clrScheme=[];var a={};(e[0].match(pe)||[]).forEach(function(e){var n=ge(e);switch(n[0]){case"<a:clrScheme":;case"</a:clrScheme>":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].slice(3,n[0].length-1)}break;default:if(t&&t.WTF)throw new Error("Unrecognized "+n[0]+" in clrScheme");}})}function xc(){}function Ac(){}var Rc=/<a:clrScheme([^>]*)>[\s\S]*<\/a:clrScheme>/;var Fc=/<a:fontScheme([^>]*)>[\s\S]*<\/a:fontScheme>/;var Dc=/<a:fmtScheme([^>]*)>[\s\S]*<\/a:fmtScheme>/;function _c(e,r,t){r.themeElements={};var a;[["clrScheme",Rc,Ic],["fontScheme",Fc,xc],["fmtScheme",Dc,Ac]].forEach(function(n){if(!(a=e.match(n[1])))throw new Error(n[0]+" not found in themeElements");n[2](a,r,t)})}var Oc=/<a:themeElements([^>]*)>[\s\S]*<\/a:themeElements>/;function yc(e,r){if(!e||e.length===0)return yc(Pc());var t;var a={};if(!(t=e.match(Oc)))throw new Error("themeElements not found in theme");_c(t[0],a,r);return a}function Pc(e,r){if(r&&r.themeXLSX)return r.themeXLSX;var t=[de];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]='
return"SH33TJSSRC"+e[a[0]][0];}switch(e[a[0]][0][0]){case 1025:n=a[1]==-1?"#REF":e.SheetNames[a[1]]||"SH33TJSERR3";return a[1]==a[2]?n:n+":"+e.SheetNames[a[2]];case 14849:return"SH33TJSERR8";default:if(!e[a[0]][0][3])return"SH33TJSERR2";n=a[1]==-1?"#REF":e[a[0]][0][3][a[1]]||"SH33TJSERR4";return a[1]==a[2]?n:n+":"+e[a[0]][0][3][a[2]];}}function jo(e,r,t){return Go(zo(e,r,t),t)}function Ko(e,r,t,a,n){var i={s:{c:0,r:0},e:{c:0,r:0}};var s=[],l,c,f,o=0,u=0,h,d="";if(!e[0]||!e[0][0])return"";var v=-1,p="";for(var b=0,m=e[0].length;b<m;++b){var g=e[0][b];switch(g[0]){case"PtgUminus":s.push("-"+s.pop());break;case"PtgUplus":s.push("+"+s.pop());break;case"PtgPercent":s.push(s.pop()+"%");break;case"PtgAdd":;case"PtgConcat":;case"PtgDiv":;case"PtgEq":;case"PtgGe":;case"PtgGt":;case"PtgLe":;case"PtgLt":;case"PtgMul":;case"PtgNe":;case"PtgPower":;case"PtgSub":l=s.pop();c=s.pop();if(v>=0){switch(e[0][v][1][0]){case 0:p=J(" ",e[0][v][1][1]);break;case 1:p=J("\r",e[0][v][1][1]);break;default:p="";if(n.WTF)throw new Error("Unexpected PtgAttrSpaceType "+e[0][v][1][0]);}c=c+p;v=-1}s.push(c+Xo[g[0]]+l);break;case"PtgIsect":l=s.pop();c=s.pop();s.push(c+" "+l);break;case"PtgUnion":l=s.pop();c=s.pop();s.push(c+","+l);break;case"PtgRange":l=s.pop();c=s.pop();s.push(c+":"+l);break;case"PtgAttrChoose":break;case"PtgAttrGoto":break;case"PtgAttrIf":break;case"PtgAttrIfError":break;case"PtgRef":f=Lr(g[1][1],i,n);s.push(Wr(f));break;case"PtgRefN":f=t?Lr(g[1][1],t,n):g[1][1];s.push(Wr(f));break;case"PtgRef3d":o=g[1][1];f=Lr(g[1][2],i,n);d=jo(a,o,n);var E=d;s.push(d+"!"+Wr(f));break;case"PtgFunc":;case"PtgFuncVar":var S=g[1][0],k=g[1][1];if(!S)S=0;var w=S==0?[]:s.slice(-S);s.length-=S;if(k==="User")k=w.shift();s.push(k+"("+w.join(",")+")");break;case"PtgBool":s.push(g[1]?"TRUE":"FALSE");break;case"PtgInt":s.push(g[1]);break;case"PtgNum":s.push(String(g[1]));break;case"PtgStr":s.push('"'+g[1]+'"');break;case"PtgErr":s.push(g[1]);break;case"PtgAreaN":h=Ur(g[1][1],t?{s:t}:i,n);s.push(Vr(h,n));break;case"PtgArea":h=Ur(g[1][1],i,n);s.push(Vr(h,n));break;case"PtgArea3d":o=g[1][1];h=g[1][2];d=jo(a,o,n);s.push(d+"!"+Vr(h,n));break;case"PtgAttrSum":s.push("SUM("+s.pop()+")");break;case"PtgAttrSemi":break;case"PtgName":u=g[1][2];var B=(a.names||[])[u-1]||(a[0]||[])[u];var C=B?B.Name:"SH33TJSNAME"+String(u);if(C in cu)C=cu[C];s.push(C);break;case"PtgNameX":var T=g[1][1];u=g[1][2];var I;if(n.biff<=5){if(T<0)T=-T;if(a[T])I=a[T][u]}else{var x="";if(((a[T]||[])[0]||[])[0]==14849){}else if(((a[T]||[])[0]||[])[0]==1025){if(a[T][u]&&a[T][u].itab>0){x=a.SheetNames[a[T][u].itab-1]+"!"}}else x=a.SheetNames[u-1]+"!";if(a[T]&&a[T][u])x+=a[T][u].Name;else if(a[0]&&a[0][u])x+=a[0][u].Name;else x+="SH33TJSERRX";s.push(x);break}if(!I)I={Name:"SH33TJSERRY"};s.push(I.Name);break;case"PtgParen":var A="(",R=")";if(v>=0){p="";switch(e[0][v][1][0]){case 2:A=J(" ",e[0][v][1][1])+A;break;case 3:A=J("\r",e[0][v][1][1])+A;break;case 4:R=J(" ",e[0][v][1][1])+R;break;case 5:R=J("\r",e[0][v][1][1])+R;break;default:if(n.WTF)throw new Error("Unexpected PtgAttrSpaceType "+e[0][v][1][0]);}v=-1}s.push(A+s.pop()+R);break;case"PtgRefErr":s.push("#REF!");break;case"PtgRefErr3d":s.push("#REF!");break;case"PtgExp":f={c:g[1][1],r:g[1][0]};var F={c:t.c,r:t.r};if(a.sharedf[et(f)]){var D=a.sharedf[et(f)];s.push(Ko(D,i,F,a,n))}else{var _=false;for(l=0;l!=a.arrayf.length;++l){c=a.arrayf[l];if(f.c<c[0].s.c||f.c>c[0].e.c)continue;if(f.r<c[0].s.r||f.r>c[0].e.r)continue;s.push(Ko(c[1],i,F,a,n));_=true;break}if(!_)s.push(g[1])}break;case"PtgArray":s.push("{"+Ho(g[1])+"}");break;case"PtgMemArea":break;case"PtgAttrSpace":;case"PtgAttrSpaceSemi":v=b;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;case"PtgMemNoMem":throw new Error("Unrecognized Formula Token: "+String(g));case"PtgElfCol":;case"PtgElfColS":;case"PtgElfColSV":;case"PtgElfColV":;case"PtgElfLel":;case"PtgElfRadical":;case"PtgElfRadicalLel":;case"PtgElfRadicalS":;case"PtgElfRw":;case"PtgElfRwV":throw new Error("Unsupp
return Ke("sheetViews",Ke("sheetView",null,n),{})}function Gu(e,r,t,a){if(e.v===undefined&&e.f===undefined||e.t==="z")return"";var n="";var i=e.t,s=e.v;switch(e.t){case"b":n=e.v?"1":"0";break;case"n":n=""+e.v;break;case"e":n=Pt[e.v];break;case"d":if(a.cellDates)n=Y(e.v,-1).toISOString();else{e=Q(e);e.t="n";n=""+(e.v=X(Y(e.v)))}if(typeof e.z==="undefined")e.z=A._table[14];break;default:n=e.v;break;}var l=ze("v",Te(n)),c={r:r};var f=gu(a.cellXfs,e,a);if(f!==0)c.s=f;switch(e.t){case"n":break;case"d":c.t="d";break;case"b":c.t="b";break;case"e":c.t="e";break;default:if(e.v==null){delete e.t;break}if(a.bookSST){l=ze("v",""+pu(a.Strings,e.v));c.t="s";break}c.t="str";break;}if(e.t!=i){e.t=i;e.v=s}if(e.f){var o=e.F&&e.F.slice(0,r.length)==r?{t:"array",ref:e.F}:null;l=Ke("f",Te(e.f),o)+(e.v!=null?l:"")}if(e.l)t["!links"].push([r,e.l]);if(e.c)t["!comments"].push([r,e.c]);return Ke("c",l,c)}var zu=function(){var e=/<(?:\w+:)?c[ >]/,r=/<\/(?:\w+:)?row>/;var t=/r=["']([^"']*)["']/,a=/<(?:\w+:)?is>([\S\s]*?)<\/(?:\w+:)?is>/;var n=/ref=["']([^"']*)["']/;var i=Le("v"),s=Le("f");return function l(c,f,o,u,h,d){var v=0,p="",b=[],m=[],g=0,E=0,S=0,k="",w;var B,C=0,T=0;var I,x;var R=0,F=0;var D=Array.isArray(d.CellXf),_;var O=[];var y=[];var P=Array.isArray(f);var N=[],M={},L=false;for(var U=c.split(r),W=0,V=U.length;W!=V;++W){p=U[W].trim();var H=p.length;if(H===0)continue;for(v=0;v<H;++v)if(p.charCodeAt(v)===62)break;++v;B=ge(p.slice(0,v),true);C=B.r!=null?parseInt(B.r,10):C+1;T=-1;if(o.sheetRows&&o.sheetRows<C)continue;if(u.s.r>C-1)u.s.r=C-1;if(u.e.r<C-1)u.e.r=C-1;if(o&&o.cellStyles){M={};L=false;if(B.ht){L=true;M.hpt=parseFloat(B.ht);M.hpx=Ul(M.hpt)}if(B.hidden=="1"){L=true;M.hidden=true}if(B.outlineLevel!=null){L=true;M.level=+B.outlineLevel}if(L)N[C-1]=M}b=p.slice(v).split(e);for(v=0;v!=b.length;++v){p=b[v].trim();if(p.length===0)continue;m=p.match(t);g=v;E=0;S=0;p="<c "+(p.slice(0,1)=="<"?">":"")+p;if(m!=null&&m.length===2){g=0;k=m[1];for(E=0;E!=k.length;++E){if((S=k.charCodeAt(E)-64)<1||S>26)break;g=26*g+S}--g;T=g}else++T;for(E=0;E!=p.length;++E)if(p.charCodeAt(E)===62)break;++E;B=ge(p.slice(0,E),true);if(!B.r)B.r=et({r:C-1,c:T});k=p.slice(E);w={t:""};if((m=k.match(i))!=null&&m[1]!=="")w.v=we(m[1]);if(o.cellFormula){if((m=k.match(s))!=null&&m[1]!==""){w.f=Bf(we(Oe(m[1])));if(m[0].indexOf('t="array"')>-1){w.F=(k.match(n)||[])[1];if(w.F.indexOf(":")>-1)O.push([at(w.F),w.F])}else if(m[0].indexOf('t="shared"')>-1){x=ge(m[0]);y[parseInt(x.si,10)]=[x,Bf(we(Oe(m[1])))]}}else if(m=k.match(/<f[^>]*\/>/)){x=ge(m[0]);if(y[x.si])w.f=kf(y[x.si][1],y[x.si][0].ref,B.r)}var z=qr(B.r);for(E=0;E<O.length;++E)if(z.r>=O[E][0].s.r&&z.r<=O[E][0].e.r)if(z.c>=O[E][0].s.c&&z.c<=O[E][0].e.c)w.F=O[E][1]}if(B.t==null&&w.v===undefined){if(w.f||w.F){w.v=0;w.t="n"}else if(!o.sheetStubs)continue;else w.t="z"}else w.t=B.t||"n";if(u.s.c>g)u.s.c=g;if(u.e.c<g)u.e.c=g;switch(w.t){case"n":if(w.v==""||w.v==null){if(!o.sheetStubs)continue;w.t="z"}else w.v=parseFloat(w.v);break;case"s":if(typeof w.v=="undefined"){if(!o.sheetStubs)continue;w.t="z"}else{I=du[parseInt(w.v,10)];w.v=I.t;w.r=I.r;if(o.cellHTML)w.h=I.h}break;case"str":w.t="s";w.v=w.v!=null?Oe(w.v):"";if(o.cellHTML)w.h=Ae(w.v);break;case"inlineStr":m=k.match(a);w.t="s";if(m!=null&&(I=Us(m[1])))w.v=I.t;else w.v="";break;case"b":w.v=_e(w.v);break;case"d":if(o.cellDates)w.v=Y(w.v,1);else{w.v=X(Y(w.v,1));w.t="n"}break;case"e":if(!o||o.cellText!==false)w.w=w.v;w.v=Nt[w.v];break;}R=F=0;if(D&&B.s!==undefined){_=d.CellXf[B.s];if(_!=null){if(_.numFmtId!=null)R=_.numFmtId;if(o.cellStyles){if(_.fillId!=null)F=_.fillId}}}Eu(w,R,F,o,h,d);if(o.cellDates&&D&&w.t=="n"&&A.is_date(A._table[R])){w.t="d";w.v=G(w.v)}if(P){var j=qr(B.r);if(!f[j.r])f[j.r]=[];f[j.r][j.c]=w}else f[B.r]=w}}if(N.length>0)f["!rows"]=N}}();function ju(e,r,t,a){var n=[],i=[],s=at(e["!ref"]),l="",c,f="",o=[],u=0,h=0,d=e["!rows"];var v=Array.isArray(e);var p={r:f},b,m=-1;for(h=s.s.c;h<=s.e.c;++h)o[h]=$r(h);for(u=s.s.r;u<=s.e.r;++u){i=[];f=zr(u);for(h=s.s.c;h<=s.e.c;++h){c=o[h]+f;var g=v?(e[u]||[])[h]:e[c];if(g===undefined)continue;if((l=Gu(g,c,e,r,t,a))!=null)i.push
};function Yd(e,r){var t=e.split(/\s+/);var a=[];if(!r)a[0]=t[0];if(t.length===1)return a;var n=e.match(zd),i,s,l,c;if(n)for(c=0;c!=n.length;++c){i=n[c].match(jd);if((s=i[1].indexOf(":"))===-1)a[i[1]]=i[2].slice(1,i[2].length-1);else{if(i[1].slice(0,6)==="xmlns:")l="xmlns"+i[1].slice(6);else l=i[1].slice(s+1);a[l]=i[2].slice(1,i[2].length-1)}}return a}function $d(e){var r=e.split(/\s+/);var t={};if(r.length===1)return t;var a=e.match(zd),n,i,s,l;if(a)for(l=0;l!=a.length;++l){n=a[l].match(jd);if((i=n[1].indexOf(":"))===-1)t[n[1]]=n[2].slice(1,n[2].length-1);else{if(n[1].slice(0,6)==="xmlns:")s="xmlns"+n[1].slice(6);else s=n[1].slice(i+1);t[s]=n[2].slice(1,n[2].length-1)}}return t}function Qd(e,r){var t=F[e]||we(e);if(t==="General")return A._general(r);return A.format(t,r)}function Jd(e,r,t,a){var n=a;switch((t[0].match(/dt:dt="([\w.]+)"/)||["",""])[1]){case"boolean":n=_e(a);break;case"i2":;case"int":n=parseInt(a,10);break;case"r4":;case"float":n=parseFloat(a);break;case"date":;case"dateTime.tz":n=Y(a);break;case"i8":;case"string":;case"fixed":;case"uuid":;case"bin.base64":break;default:throw new Error("bad custprop:"+t[0]);}e[we(r)]=n}function Zd(e,r,t){if(e.t==="z")return;if(!t||t.cellText!==false)try{if(e.t==="e"){e.w=e.w||Pt[e.v]}else if(r==="General"){if(e.t==="n"){if((e.v|0)===e.v)e.w=A._general_int(e.v);else e.w=A._general_num(e.v)}else e.w=A._general(e.v)}else e.w=Qd(r||"General",e.v)}catch(a){if(t.WTF)throw a}try{var n=F[r]||r||"General";if(t.cellNF)e.z=n;if(t.cellDates&&e.t=="n"&&A.is_date(n)){var i=A.parse_date_code(e.v);if(i){e.t="d";e.v=new Date(i.y,i.m-1,i.d,i.H,i.M,i.S,i.u)}}}catch(a){if(t.WTF)throw a}}function qd(e,r,t){if(t.cellStyles){if(r.Interior){var a=r.Interior;if(a.Pattern)a.patternType=Wl[a.Pattern]||a.Pattern}}e[r.ID]=r}function ev(e,r,t,a,n,i,s,l,c,f){var o="General",u=a.StyleID,h={};f=f||{};var d=[];var v=0;if(u===undefined&&l)u=l.StyleID;if(u===undefined&&s)u=s.StyleID;while(i[u]!==undefined){if(i[u].nf)o=i[u].nf;if(i[u].Interior)d.push(i[u].Interior);if(!i[u].Parent)break;u=i[u].Parent}switch(t.Type){case"Boolean":a.t="b";a.v=_e(e);break;case"String":a.t="s";a.r=Fe(we(e));a.v=e.indexOf("<")>-1?we(r):a.r;break;case"DateTime":if(e.slice(-1)!="Z")e+="Z";a.v=(Y(e)-new Date(Date.UTC(1899,11,30)))/(24*60*60*1e3);if(a.v!==a.v)a.v=we(e);else if(a.v<60)a.v=a.v-1;if(!o||o=="General")o="yyyy-mm-dd";case"Number":if(a.v===undefined)a.v=+e;if(!a.t)a.t="n";break;case"Error":a.t="e";a.v=Nt[e];if(f.cellText!==false)a.w=e;break;default:a.t="s";a.v=Fe(r||e);break;}Zd(a,o,f);if(f.cellFormula!==false){if(a.Formula){var p=we(a.Formula);if(p.charCodeAt(0)==61)p=p.slice(1);a.f=mf(p,n);delete a.Formula;if(a.ArrayRange=="RC")a.F=mf("RC:RC",n);else if(a.ArrayRange){a.F=mf(a.ArrayRange,n);c.push([at(a.F),a.F])}}else{for(v=0;v<c.length;++v)if(n.r>=c[v][0].s.r&&n.r<=c[v][0].e.r)if(n.c>=c[v][0].s.c&&n.c<=c[v][0].e.c)a.F=c[v][1]}}if(f.cellStyles){d.forEach(function(e){if(!h.patternType&&e.patternType)h.patternType=e.patternType});a.s=h}if(a.StyleID!==undefined)a.ixfe=a.StyleID}function rv(e){e.t=e.v||"";e.t=e.t.replace(/\r\n/g,"\n").replace(/\r/g,"\n");e.v=e.w=e.ixfe=undefined}function tv(e){if(E&&Buffer.isBuffer(e))return e.toString("utf8");if(typeof e==="string")return e;throw new Error("Bad input format: expected Buffer or string")}var av=/<(\/?)([^\s?>!\/:]*:|)([^\s?>]*[^\s?>\/])[^>]*>/gm;function nv(e,r){var t=r||{};R(A);var a=v(tv(e));if(t.type=="binary"||t.type=="array"||t.type=="base64"){if(typeof cptable!=="undefined")a=cptable.utils.decode(65001,u(a));else a=Oe(a)}var n=a.slice(0,1024).toLowerCase(),i=false;if(n.indexOf("<?xml")==-1)["html","table","head","meta","script","style","div"].forEach(function(e){if(n.indexOf("<"+e)>=0)i=true});if(i)return Gv.to_workbook(a,t);var s;var l=[],c;if(b!=null&&t.dense==null)t.dense=b;var f={},o=[],h=t.dense?[]:{},d="";var p={},m={},g={};var E=Yd('<Data ss:Type="String">'),S=0;var k=0,w=0;var B={s:{r:2e6,c:2e6},e:{r:0,c:0}};var C={},T={};var I="",x=0;var D=[];var _={},O={},y=0,P=[];var N=[],M={};var L=[],U,W=false;var V=[];var H=[],X={},G=0,z=0;var j={Sheets:[],WBProps:{date1904
k.XF=C[k.ixfe];if(z>0)k.z=j[k.ixfe>>8&31];kv(k,r,t.opts.Date1904);D({c:re.c,r:re.r},k,r);break;case"Dimensions":{if(G===1)s=re}break;case"SST":{c=re}break;case"Format":{if(_.biff==4){j[z++]=re[1];for(var de=0;de<z+163;++de)if(A._table[de]==re[1])break;if(de>=163)A.load(re[1],z+163)}else A.load(re[1],re[0])}break;case"BIFF2FORMAT":{j[z++]=re;for(var ve=0;ve<z+163;++ve)if(A._table[ve]==re)break;if(ve>=163)A.load(re,z+163)}break;case"MergeCells":y=y.concat(re);break;case"Obj":P[re.cmo[0]]=_.lastobj=re;break;case"TxO":_.lastobj.TxO=re;break;case"ImData":_.lastobj.ImData=re;break;case"HLink":{for(g=re[0].s.r;g<=re[0].e.r;++g)for(m=re[0].s.c;m<=re[0].e.c;++m){v=r.dense?(n[g]||[])[m]:n[et({c:m,r:g})];if(v)v.l=re[1]}}break;case"HLinkTooltip":{for(g=re[0].s.r;g<=re[0].e.r;++g)for(m=re[0].s.c;m<=re[0].e.c;++m){v=r.dense?(n[g]||[])[m]:n[et({c:m,r:g})];if(v)v.l.Tooltip=re[1]}}break;case"Note":{if(_.biff<=5&&_.biff>=2)break;v=r.dense?(n[re[0].r]||[])[re[0].c]:n[et(re[0])];var pe=P[re[2]];if(!v)break;if(!v.c)v.c=[];p={a:re[1],t:pe.TxO.t};v.c.push(p)}break;default:switch(q.n){case"ClrtClient":break;case"XFExt":Xc(C[re.ixfe],re.ext);break;case"DefColWidth":U=re;break;case"DefaultRowHeight":W=re[1];break;case"ColInfo":{if(!_.cellStyles)break;while(re.e>=re.s){M[re.e--]={width:re.w/256};if(!V){V=true;yl(re.w/256)}Pl(M[re.e+1])}}break;case"Row":{var be={};if(re.level!=null){L[re.r]=be;be.level=re.level}if(re.hidden){L[re.r]=be;be.hidden=true}if(re.hpt){L[re.r]=be;be.hpt=re.hpt;be.hpx=Ul(re.hpt)}}break;case"LeftMargin":;case"RightMargin":;case"TopMargin":;case"BottomMargin":if(!n["!margins"])mu(n["!margins"]={});n["!margins"][te.slice(0,-6).toLowerCase()]=re;break;case"Setup":if(!n["!margins"])mu(n["!margins"]={});n["!margins"].header=re.header;n["!margins"].footer=re.footer;break;case"Window2":if(re.RTL)I.Views[0].RTL=true;break;case"Header":break;case"Footer":break;case"HCenter":break;case"VCenter":break;case"Pls":break;case"GCW":break;case"LHRecord":break;case"DBCell":break;case"EntExU2":break;case"SxView":break;case"Sxvd":break;case"SXVI":break;case"SXVDEx":break;case"SxIvd":break;case"SXString":break;case"Sync":break;case"Addin":break;case"SXDI":break;case"SXLI":break;case"SXEx":break;case"QsiSXTag":break;case"Selection":break;case"Feat":break;case"FeatHdr":;case"FeatHdr11":break;case"Feature11":;case"Feature12":;case"List12":break;case"Country":w=re;break;case"RecalcId":break;case"DxGCol":break;case"Fbi":;case"Fbi2":;case"GelFrame":break;case"Font":break;case"XFCRC":break;case"Style":break;case"StyleExt":break;case"Palette":T=re;break;case"Theme":O=re;break;case"ScenarioProtect":break;case"ObjProtect":break;case"CondFmt12":break;case"Table":break;case"TableStyles":break;case"TableStyle":break;case"TableStyleElement":break;case"SXStreamID":break;case"SXVS":break;case"DConRef":break;case"SXAddl":break;case"DConBin":break;case"DConName":break;case"SXPI":break;case"SxFormat":break;case"SxSelect":break;case"SxRule":break;case"SxFilt":break;case"SxItm":break;case"SxDXF":break;case"ScenMan":break;case"DCon":break;case"CellWatch":break;case"PrintRowCol":break;case"PrintGrid":break;case"PrintSize":break;case"XCT":break;case"CRN":break;case"Scl":{}break;case"SheetExt":{}break;case"SheetExtOptional":{}break;case"ObNoMacros":{}break;case"ObProj":{}break;case"CodeName":{if(!o)I.WBProps.CodeName=re||"ThisWorkbook";else x.CodeName=re||x.name}break;case"GUIDTypeLib":{}break;case"WOpt":break;case"PhoneticInfo":break;case"OleObjectSize":break;case"DXF":;case"DXFN":;case"DXFN12":;case"DXFN12List":;case"DXFN12NoCB":break;case"Dv":;case"DVal":break;case"BRAI":;case"Series":;case"SeriesText":break;case"DConn":break;case"DbOrParamQry":break;case"DBQueryExt":break;case"OleDbConn":break;case"ExtString":break;case"IFmtRecord":break;case"CondFmt":;case"CF":;case"CF12":;case"CFEx":break;case"Excel9File":break;case"Units":break;case"InterfaceHdr":;case"Mms":;case"InterfaceEnd":;case"DSF":break;case"BuiltInFnGroupCount":break;case"Window1":;case"HideObj":;case"GridSet":;case"Guts":;case"UserBView":;case"UserSViewBegin":;case"UserSViewEnd":;case"Pane":break;defaul
},66:{n:"CodePage",f:gn},77:{n:"Pls"},80:{n:"DCon"},81:{n:"DConRef"},82:{n:"DConName"},85:{n:"DefColWidth",f:gn},89:{n:"XCT"},90:{n:"CRN"},91:{n:"FileSharing"},92:{n:"WriteAccess",f:ni},93:{n:"Obj",f:qi},94:{n:"Uncalced"},95:{n:"CalcSaveRecalc",f:bn},96:{n:"Template"},97:{n:"Intl"},99:{n:"ObjProtect",f:bn},125:{n:"ColInfo",f:hs},128:{n:"Guts",f:_i},129:{n:"WsBool",f:si},130:{n:"GridSet",f:gn},131:{n:"HCenter",f:bn},132:{n:"VCenter",f:bn},133:{n:"BoundSheet8",f:li},134:{n:"WriteProtect"},140:{n:"Country",f:ls},141:{n:"HideObj",f:gn},144:{n:"Sort"},146:{n:"Palette",f:os},151:{n:"Sync"},152:{n:"LPr"},153:{n:"DxGCol"},154:{n:"FnGroupName"},155:{n:"FilterMode"},156:{n:"BuiltInFnGroupCount",f:gn},157:{n:"AutoFilterInfo"},158:{n:"AutoFilter"},160:{n:"Scl",f:ms},161:{n:"Setup",f:ds},174:{n:"ScenMan"},175:{n:"SCENARIO"},176:{n:"SxView"},177:{n:"Sxvd"},178:{n:"SXVI"},180:{n:"SxIvd"},181:{n:"SXLI"},182:{n:"SXPI"},184:{n:"DocRoute"},185:{n:"RecipName"},189:{n:"MulRk",f:Ai},190:{n:"MulBlank",f:Ri},193:{n:"Mms",f:dn},197:{n:"SXDI"},198:{n:"SXDB"},199:{n:"SXFDB"},200:{n:"SXDBB"},201:{n:"SXNum"},202:{n:"SxBool",f:bn},203:{n:"SxErr"},204:{n:"SXInt"},205:{n:"SXString"},206:{n:"SXDtr"},207:{n:"SxNil"},208:{n:"SXTbl"},209:{n:"SXTBRGIITM"},210:{n:"SxTbpg"},211:{n:"ObProj"},213:{n:"SXStreamID"},215:{n:"DBCell"},216:{n:"SXRng"},217:{n:"SxIsxoper"},218:{n:"BookBool",f:gn},220:{n:"DbOrParamQry"},221:{n:"ScenarioProtect",f:bn},222:{n:"OleObjectSize"},224:{n:"XF",f:Di},225:{n:"InterfaceHdr",f:ai},226:{n:"InterfaceEnd",f:dn},227:{n:"SXVS"},229:{n:"MergeCells",f:Ji},233:{n:"BkHim"},235:{n:"MsoDrawingGroup"},236:{n:"MsoDrawing"},237:{n:"MsoDrawingSelection"},239:{n:"PhoneticInfo"},240:{n:"SxRule"},241:{n:"SXEx"},242:{n:"SxFilt"},244:{n:"SxDXF"},245:{n:"SxItm"},246:{n:"SxName"},247:{n:"SxSelect"},248:{n:"SXPair"},249:{n:"SxFmla"},251:{n:"SxFormat"},252:{n:"SST",f:fi},253:{n:"LabelSst",f:Si},255:{n:"ExtSST",f:oi},256:{n:"SXVDEx"},259:{n:"SXFormula"},290:{n:"SXDBEx"},311:{n:"RRDInsDel"},312:{n:"RRDHead"},315:{n:"RRDChgCell"},317:{n:"RRTabId",f:Sn},318:{n:"RRDRenSheet"},319:{n:"RRSort"},320:{n:"RRDMove"},330:{n:"RRFormat"},331:{n:"RRAutoFmt"},333:{n:"RRInsertSh"},334:{n:"RRDMoveBegin"},335:{n:"RRDMoveEnd"},336:{n:"RRDInsDelBegin"},337:{n:"RRDInsDelEnd"},338:{n:"RRDConflict"},339:{n:"RRDDefName"},340:{n:"RRDRstEtxp"},351:{n:"LRng"},352:{n:"UsesELFs",f:bn},353:{n:"DSF",f:dn},401:{n:"CUsr"},402:{n:"CbUsr"},403:{n:"UsrInfo"},404:{n:"UsrExcl"},405:{n:"FileLock"},406:{n:"RRDInfo"},407:{n:"BCUsrs"},408:{n:"UsrChk"},425:{n:"UserBView"},426:{n:"UserSViewBegin"},427:{n:"UserSViewEnd"},428:{n:"RRDUserView"},429:{n:"Qsi"},430:{n:"SupBook",f:Ui},431:{n:"Prot4Rev",f:bn},432:{n:"CondFmt"},433:{n:"CF"},434:{n:"DVal"},437:{n:"DConBin"},438:{n:"TxO",f:ts},439:{n:"RefreshAll",f:bn},440:{n:"HLink",f:as},441:{n:"Lel"},442:{n:"CodeName",f:In},443:{n:"SXFDBType"},444:{n:"Prot4RevPass",f:gn},445:{n:"ObNoMacros"},446:{n:"Dv"},448:{n:"Excel9File",f:dn},449:{n:"RecalcId",f:di,r:2},450:{n:"EntExU2",f:dn},512:{n:"Dimensions",f:Ti},513:{n:"Blank",f:bs},515:{n:"Number",f:Ni},516:{n:"Label",f:ki},517:{n:"BoolErr",f:yi},518:{n:"Formula",f:qo},519:{n:"String",f:gs},520:{n:"Row",f:ui},523:{n:"Index"},545:{n:"Array",f:Ki},549:{n:"DefaultRowHeight",f:vi},566:{n:"Table"},574:{n:"Window2",f:mi},638:{n:"RK",f:xi},659:{n:"Style"},1030:{n:"Formula",f:qo},1048:{n:"BigName"},1054:{n:"Format",f:Bi},1084:{n:"ContinueBigName"},1212:{n:"ShrFmla",f:ji},2048:{n:"HLinkTooltip",f:is},2049:{n:"WebPub"},2050:{n:"QsiSXTag"},2051:{n:"DBQueryExt"},2052:{n:"ExtString"},2053:{n:"TxtQry"},2054:{n:"Qsir"},2055:{n:"Qsif"},2056:{n:"RRDTQSIF"},2057:{n:"BOF",f:ri},2058:{n:"OleDbConn"},2059:{n:"WOpt"},2060:{n:"SXViewEx"},2061:{n:"SXTH"},2062:{n:"SXPIEx"},2063:{n:"SXVDTEx"},2064:{n:"SXViewEx9"},2066:{n:"ContinueFrt"},2067:{n:"RealTimeData"},2128:{n:"ChartFrtInfo"},2129:{n:"FrtWrapper"},2130:{n:"StartBlock"},2131:{n:"EndBlock"},2132:{n:"StartObject"},2133:{n:"EndObject"},2134:{n:"CatLab"},2135:{n:"YMult"},2136:{n:"SXViewLink"},2137:{n:"PivotChartBits"},2138:{n:"FrtFontList"},2146:{n:"SheetExt"},2147:{n:"BookExt",r:12},2
"xmlns:config":"urn:oasis:names:tc:opendocument:xmlns:config:1.0","office:mimetype":"application/vnd.oasis.opendocument.spreadsheet"});if(r.bookType=="fods")t.push("<office:document"+i+s+">\n");else t.push("<office:document-content"+i+">\n");n(t);t.push(" <office:body>\n");t.push(" <office:spreadsheet>\n");for(var l=0;l!=e.SheetNames.length;++l)t.push(a(e.Sheets[e.SheetNames[l]],e,l,r));t.push(" </office:spreadsheet>\n");t.push(" </office:body>\n");if(r.bookType=="fods")t.push("</office:document>");else t.push("</office:document-content>");return t.join("")}}();function Zv(e,r){if(r.bookType=="fods")return Jv(e,r);var t=new oe;var a="";var n=[];var i=[];a="mimetype";t.file(a,"application/vnd.oasis.opendocument.spreadsheet");a="content.xml";t.file(a,Jv(e,r));n.push([a,"text/xml"]);i.push([a,"ContentFile"]);a="styles.xml";t.file(a,Qv(e,r));n.push([a,"text/xml"]);i.push([a,"StylesFile"]);a="meta.xml";t.file(a,Ra());n.push([a,"text/xml"]);i.push([a,"MetadataFile"]);a="manifest.rdf";t.file(a,Aa(i));n.push([a,"application/rdf+xml"]);a="META-INF/manifest.xml";t.file(a,Ta(n));return t}function qv(e,r){if(!r)return 0;var t=e.SheetNames.indexOf(r);if(t==-1)throw new Error("Sheet not found: "+r);return t}function ep(e){return function r(t,a){var n=qv(t,a.sheet);return e.from_sheet(t.Sheets[t.SheetNames[n]],a,t)}}var rp=ep(Gv);var tp=ep({from_sheet:Xp});var ap=ep(Rs);var np=ep(Fs);var ip=ep(_s);var sp=ep(Sl);var lp=ep({from_sheet:Gp});var cp=ep(As);var fp=ep(Ds);function op(e){return function r(t){for(var a=0;a!=e.length;++a){var n=e[a];if(t[n[0]]===undefined)t[n[0]]=n[1];if(n[2]==="n")t[n[0]]=Number(t[n[0]])}}}var up=op([["cellNF",false],["cellHTML",true],["cellFormula",true],["cellStyles",false],["cellText",true],["cellDates",false],["sheetStubs",false],["sheetRows",0,"n"],["bookDeps",false],["bookSheets",false],["bookProps",false],["bookFiles",false],["bookVBA",false],["password",""],["WTF",false]]);var hp=op([["cellDates",false],["bookSST",false],["bookType","xlsx"],["compression",false],["WTF",false]]);function dp(e){if(ma.WS.indexOf(e)>-1)return"sheet";if(ma.CS&&e==ma.CS)return"chart";if(ma.DS&&e==ma.DS)return"dialog";if(ma.MS&&e==ma.MS)return"macro";return e&&e.length?e:"sheet"}function vp(e,r){if(!e)return 0;try{e=r.map(function a(r){if(!r.id)r.id=r.strRelID;return[r.name,e["!id"][r.id].Target,dp(e["!id"][r.id].Type)]})}catch(t){return null}return!e||e.length===0?null:e}function pp(e,r,t,a,n,i,s,l,c,f,o,u){try{i[a]=Ea(ce(e,t,true),r);var h=le(e,r);switch(l){case"sheet":s[a]=Rd(h,r,n,c,i[a],f,o,u);break;case"chart":var d=Fd(h,r,n,c,i[a],f,o,u);s[a]=d;if(!d||!d["!chart"])break;var v=he(d["!chart"].Target,r);var p=ga(v);var b=$c(ce(e,v,true),Ea(ce(e,p,true),v));var m=he(b,v);var g=ga(m);d=Kh(ce(e,m,true),m,c,Ea(ce(e,g,true),m),f,d);break;case"macro":s[a]=Dd(h,r,n,c,i[a],f,o,u);break;case"dialog":s[a]=_d(h,r,n,c,i[a],f,o,u);break;}}catch(E){if(c.WTF)throw E}}var bp=function pb(e){return e.slice(-1)!="/"};function mp(e){return e.charAt(0)=="/"?e.slice(1):e}function gp(e,r){R(A);r=r||{};up(r);if(ie(e,"META-INF/manifest.xml"))return Yv(e,r);if(ie(e,"objectdata.xml"))return Yv(e,r);if(ie(e,"Index/Document.iwa"))throw new Error("Unsupported NUMBERS file");var t=N(e.files).filter(bp).sort();var a=da(ce(e,"[Content_Types].xml"));var n=false;var i,s;if(a.workbooks.length===0){s="xl/workbook.xml";if(le(e,s,true))a.workbooks.push(s)}if(a.workbooks.length===0){s="xl/workbook.bin";if(!le(e,s,true))throw new Error("Could not find workbook");a.workbooks.push(s);n=true}if(a.workbooks[0].slice(-3)=="bin")n=true;var l={};var c={};if(!r.bookSheets&&!r.bookProps){du=[];if(a.sst)du=Pd(le(e,mp(a.sst)),a.sst,r);if(r.cellStyles&&a.themes.length)l=yd(ce(e,a.themes[0].replace(/^\//,""),true)||"",a.themes[0],r);if(a.style)c=Od(le(e,mp(a.style)),a.style,l,r)}a.links.map(function(t){return Ld(le(e,mp(t)),t,r)});var f=Ad(le(e,mp(a.workbooks[0])),a.workbooks[0],r);var o={},u="";if(a.coreprops.length){u=le(e,mp(a.coreprops[0]),true);if(u)o=_a(u);if(a.extprops.length!==0){u=le(e,mp(a.extprops[0]),true);if(u)Ma(u,o,r)}}var h={};if(!r.bookSheets||r.book