sheetjs/dist/xlsx.min.js

14 lines
363 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.12.0";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 ib(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 sb(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 lb(){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(rv).join("");var r=[];for(var t=0;t<e.length;++t)r[t]=rv(e[t]);return r.join("")}function C(e){if(typeof Uint8Array==="undefined")throw new Error("Unsupported");return new Uint8Array(e)}function T(e){if(typeof ArrayBuffer=="undefined")throw new Error("Unsupported");if(e instanceof ArrayBuffer)return T(new Uint8Array(e));var r=new Array(e.length);for(var t=0;t<e.length;++t)r[t]=e[t];return r}var I=function(e){return[].concat.apply([],e)};var x=/\u0000/g,A=/[\u0001-\u0006]/g;var R={};var F=function cb(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)
if(E!==0)g.ct=b(m,m.l-8);var S=m._R(2)+m._R(2)+m._R(2)+m._R(2);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);Lr(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);Lr(g.content,0)}}i[p]=g;s.push(g)}}function b(e,r){return new Date((Ar(e,r+4)/1e7*Math.pow(2,32)+Ar(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(N.find(e,"/"+r))return;var t=Ur(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:y,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||y;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=Ur(a[7]<<9);var i=0,s=0;{for(i=0;i<8;++i)n._W(1,D[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,O.DIFSECT);for(s+=a[2];i<s;++i)n._W(-4,O.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,O.ENDOFCHAIN);s=i=0;for(c=0;c<e.FileIndex.length;++c){o=
t=10*t+n}r.e.r=--t;return r}function ft(e,r){var t=e.t=="d"&&r instanceof Date;if(e.z!=null)try{return e.w=R.format(e.z,t?Q(r):r)}catch(a){}try{return e.w=R.format((e.XF||{}).numFmtId||(t?14:0),t?Q(r):r)}catch(a){return""+r}}function ot(e,r,t){if(e==null||e.t==null||e.t=="z")return"";if(e.w!==undefined)return e.w;if(e.t=="d"&&!e.z&&t&&t.dateNF)e.z=t.dateNF;if(r==undefined)return ft(e,e.v);return ft(e,r)}function ut(e,r){var t=r&&r.sheet?r.sheet:"Sheet1";var a={};a[t]=e;return{SheetNames:[t],Sheets:a}}function ht(e,r,t){var a=t||{};var n=e?Array.isArray(e):a.dense;if(b!=null&&n==null)n=b;var i=e||(n?[]:{});var s=0,l=0;if(i&&a.origin!=null){if(typeof a.origin=="number")s=a.origin;else{var c=typeof a.origin=="string"?nt(a.origin):a.origin;s=c.r;l=c.c}}var f={s:{c:1e7,r:1e7},e:{c:0,r:0}};if(i["!ref"]){var o=ct(i["!ref"]);f.s.c=o.s.c;f.s.r=o.s.r;f.e.c=Math.max(f.e.c,o.e.c);f.e.r=Math.max(f.e.r,o.e.r);if(s==-1)f.e.r=s=o.e.r+1}for(var u=0;u!=r.length;++u){for(var h=0;h!=r[u].length;++h){if(typeof r[u][h]==="undefined")continue;var d={v:r[u][h]};if(Array.isArray(d.v)){d.f=r[u][h][1];d.v=d.v[0]}var v=s+u,p=l+h;if(f.s.r>v)f.s.r=v;if(f.s.c>p)f.s.c=p;if(f.e.r<v)f.e.r=v;if(f.e.c<p)f.e.c=p;if(d.v===null){if(d.f)d.t="n";else if(!a.cellStubs)continue;else d.t="z"}else if(typeof d.v==="number")d.t="n";else if(typeof d.v==="boolean")d.t="b";else if(d.v instanceof Date){d.z=a.dateNF||R._table[14];if(a.cellDates){d.t="d";d.w=R.format(d.z,Q(d.v))}else{d.t="n";d.v=Q(d.v);d.w=R.format(d.z,d.v)}}else d.t="s";if(n){if(!i[v])i[v]=[];i[v][p]=d}else{var m=it({c:p,r:v});i[m]=d}}}if(f.s.c<1e7)i["!ref"]=lt(f);return i}function dt(e,r){return ht(null,e,r)}function vt(e,r){if(!r)r=Ur(4);r._W(4,e);return r}function pt(e){var r=e._R(4);return r===0?"":e._R(r,"dbcs")}function bt(e,r){var t=false;if(r==null){t=true;r=Ur(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 mt(e){return{ich:e._R(2),ifnt:e._R(2)}}function gt(e,r){if(!r)r=Ur(4);r._W(2,e.ich||0);r._W(2,e.ifnt||0);return r}function Et(e,r){var t=e.l;var a=e._R(1);var n=pt(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(mt(e));s.r=i}else s.r=[{ich:0,ifnt:0}];e.l=t+r;return s}function St(e,r){var t=false;if(r==null){t=true;r=Ur(15+4*e.t.length)}r._W(1,0);bt(e.t,r);return t?r.slice(0,r.l):r}var kt=Et;function wt(e,r){var t=false;if(r==null){t=true;r=Ur(23+4*e.t.length)}r._W(1,1);bt(e.t,r);r._W(4,1);gt({ich:0,ifnt:0},r);return t?r.slice(0,r.l):r}function Bt(e){var r=e._R(4);var t=e._R(2);t+=e._R(1)<<16;e.l++;return{c:r,iStyleRef:t}}function Ct(e,r){if(r==null)r=Ur(8);r._W(-4,e.c);r._W(3,e.iStyleRef||e.s);r._W(1,0);return r}var Tt=pt;var It=bt;function xt(e){var r=e._R(4);return r===0||r===4294967295?"":e._R(r,"dbcs")}function At(e,r){var t=false;if(r==null){t=true;r=Ur(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 Rt=pt;var Ft=xt;var _t=At;function Dt(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?wr([0,0,0,0,r[0],r[1],r[2],r[3]],0):Rr(r,0)>>2;return t?n/100:n}function yt(e,r){if(r==null)r=Ur(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 Ot(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 Pt(e,r){if(!r)r=Ur(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 Nt=Ot;var Lt=Pt;function Mt(e){return e._R(8,"f")}function Ut(e,r){return(r||Ur(8))._W(8,e,"f")}var Wt={0:"#NULL!",7:"#DIV/0!",15:"#VALUE!",23:"#REF!",29:"#NAME?",36:"#NUM!",42:"#N/A",43:"#GETTING_DATA",255:"#WTF?"};var Vt=z(Wt);function Ht(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=da[n];if(f)r.rgb=Rl(f);break;case 2:r.rgb=Rl([s,l,c]);break;case 3:r.theme=n;break;}if(i!=0)r.tint=i>0?i/32767:i/32768;return r}function Xt(e,r){if(!r)r=
for(var t=0;t<e;++t)r._W(1,0);return r}function Sn(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 kn(e,r){return e._R(r)===1}function wn(e,r){if(!r)r=Ur(2);r._W(2,+!!e);return r}function Bn(e){return e._R(2,"u")}function Cn(e,r){if(!r)r=Ur(2);r._W(2,e);return r}function Tn(e,r){return Sn(e,r,Bn)}function In(e){var r=e._R(1),t=e._R(1);return t===1?r:r===1}function xn(e,r,t){if(!t)t=Ur(2);t._W(1,+e);t._W(1,r=="e"?1:0);return t}function An(e,r,a){var n=e._R(a&&a.biff>=12?2:1);var i="sbcs-cont";var s=t;if(a&&a.biff>=8)t=1200;if(!a||a.biff==8){var l=e._R(1);if(l){i="dbcs-cont"}}else if(a.biff==12){i="wstr"}if(a.biff>=2&&a.biff<=5)i="cpstr";var c=n?e._R(n,i):"";t=s;return c}function Rn(e){var r=t;t=1200;var a=e._R(2),n=e._R(1);var i=n&4,s=n&8;var l=1+(n&1);var c=0,f;var o={};if(s)c=e._R(2);if(i)f=e._R(4);var u=l==2?"dbcs-cont":"sbcs-cont";var h=a===0?"":e._R(a,u);if(s)e.l+=4*c;if(i)e.l+=f;o.t=h;if(!s){o.raw="<t>"+o.t+"</t>";o.r=o.t}t=r;return o}function Fn(e,r,t){var a;if(t){if(t.biff>=2&&t.biff<=5)return e._R(r,"cpstr");if(t.biff>=12)return e._R(r,"dbcs-cont")}var n=e._R(1);if(n===0){a=e._R(r,"sbcs-cont")}else{a=e._R(r,"dbcs-cont")}return a}function _n(e,r,t){var a=e._R(t&&t.biff==2?1:2);if(a===0){e.l++;return""}return Fn(e,a,t)}function Dn(e,r,t){if(t.biff>5)return _n(e,r,t);var a=e._R(1);if(a===0){e.l++;return""}return e._R(a,t.biff<=4||!e.lens?"cpstr":"sbcs-cont")}function yn(e,r,t){if(!t)t=Ur(3+2*e.length);t._W(2,e.length);t._W(1,1);t._W(31,e,"utf16le");return t}function On(e){var r=e._R(1);e.l++;var t=e._R(2);e.l+=2;return[r,t]}function Pn(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(x,"");if(a)e.l+=24;return n}function Nn(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(x,"");return n}function Ln(e,r){var t=e._R(16);r-=16;switch(t){case"e0c9ea79f9bace118c8200aa004ba90b":return Pn(e,r);case"0303000000000000c000000000000046":return Nn(e,r);default:throw new Error("Unsupported Moniker "+t);}}function Mn(e){var r=e._R(4);var t=r>0?e._R(r,"utf16le").replace(x,""):"";return t}function Un(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=Mn(e,t-e.l);if(n&128)s=Mn(e,t-e.l);if((n&257)===257)l=Mn(e,t-e.l);if((n&257)===1)c=Ln(e,t-e.l);if(n&8)f=Mn(e,t-e.l);if(n&32)o=e._R(16);if(n&64)u=en(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 Wn(e){var r=Ur(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 Vn(e){var r=e._R(1),t=e._R(1),a=e._R(1),n=e._R(1);return[r,t,a,n]}function Hn(e,r){var t=Vn(e,r);t[3]=0;return t}function Xn(e){var r=e._R(2);var t=e._R(2);var a=e._R(2);return{r:r,c:t,ixfe:a}}function Gn(e,r,t,a){if(!a)a=Ur(6);a._W(2,e);a._W(2,r);a._W(2,t||0);return a}function zn(e){var r=e._R(2);var t=e._R(2);e.l+=8;return{type:r,flags:t}}function jn(e,r,t){return r===0?"":D
}return{to_workbook:n,to_sheet:a,from_sheet:o}}();var Us=function(){function e(e,r,t,a,n){if(n.raw)r[t][a]=e;else if(e==="TRUE")r[t][a]=true;else if(e==="FALSE")r[t][a]=false;else if(e===""){}else if(!isNaN(ie(e)))r[t][a]=ie(e);else if(!isNaN(se(e).getDate()))r[t][a]=re(e);else r[t][a]=e}function r(r,t){var a=t||{};var n=[];if(!r||r.length===0)return n;var i=r.split(/[\r\n]/);var s=i.length-1;while(s>=0&&i[s].length===0)--s;var l=10,c=0;var f=0;for(;f<=s;++f){c=i[f].indexOf(" ");if(c==-1)c=i[f].length;else c++;l=Math.max(l,c)}for(f=0;f<=s;++f){n[f]=[];var o=0;e(i[f].slice(0,l).trim(),n,f,o,a);for(o=1;o<=(i[f].length-l)/10+1;++o)e(i[f].slice(l+(o-1)*10,l+o*10).trim(),n,f,o,a)}return n}var t={44:",",9:"\t",59:";"};var a={44:3,9:2,59:1};function n(e){var r={},n=false,i=0,s=0;for(;i<e.length;++i){if((s=e.charCodeAt(i))==34)n=!n;else if(!n&&s in t)r[s]=(r[s]||0)+1}s=[];for(i in r)if(r.hasOwnProperty(i)){s.push([r[i],i])}if(!s.length){r=a;for(i in r)if(r.hasOwnProperty(i)){s.push([r[i],i])}}s.sort(function(e,r){return e[0]-r[0]||a[e[1]]-a[r[1]]});return t[s.pop()[1]]}function i(e,r){var t=r||{};var a="";if(b!=null&&t.dense==null)t.dense=b;var i=t.dense?[]:{};var s={s:{c:0,r:0},e:{c:0,r:0}};if(e.slice(0,4)=="sep="&&e.charCodeAt(5)==10){a=e.charAt(4);e=e.slice(6)}else a=n(e.slice(0,1024));var l=0,c=0,f=0;var o=0,u=0,h=a.charCodeAt(0),d=false,v=0;e=e.replace(/\r\n/gm,"\n");var p=t.dateNF!=null?y(t.dateNF):null;function m(){var r=e.slice(o,u);var a={};if(r.charAt(0)=='"'&&r.charAt(r.length-1)=='"')r=r.slice(1,-1).replace(/""/g,'"');if(r.length===0)a.t="z";else if(t.raw){a.t="s";a.v=r}else if(r.trim().length===0){a.t="s";a.v=r}else if(r.charCodeAt(0)==61){if(r.charCodeAt(1)==34&&r.charCodeAt(r.length-1)==34){a.t="s";a.v=r.slice(2,-1).replace(/""/g,'"')}else if(Ff(r)){a.t="n";a.f=r.slice(1)}else{a.t="s";a.v=r}}else if(r=="TRUE"){a.t="b";a.v=true}else if(r=="FALSE"){a.t="b";a.v=false}else if(!isNaN(f=ie(r))){a.t="n";if(t.cellText!==false)a.w=r;a.v=f}else if(!isNaN(se(r).getDate())||p&&r.match(p)){a.z=t.dateNF||R._table[14];var n=0;if(p&&r.match(p)){r=O(r,t.dateNF,r.match(p)||[]);n=1}if(t.cellDates){a.t="d";a.v=re(r,n)}else{a.t="n";a.v=Q(re(r,n))}if(t.cellText!==false)a.w=R.format(a.z,a.v instanceof Date?Q(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[it({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"]=lt(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 dt(r(e,t),t)}function l(e,r){var t="",a=r.type=="string"?[0,0,0,0]:_p(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=te(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=Me(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 Ms.to_sheet(r.type=="string"?t:Me(t),r);return s(t,r)}function c(e,r){return ut(l(e,r),r)}function f(e){var r=[];var t=ct(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=it({r:i,c:l});a=n?(e[i]||[])[l]:e[c];if(!a||a.v==null){s.push(" ");continue}var f=(a.w||(ot(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 Ws(e,r){var t=r||{},a=!!t.WTF;t.WTF=true;try{var n=Ns.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 Us.to_workbook(e,r)}}var Vs=function(){function e(e,r,t){if(!e)return;Lr(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];
e.l=t;return{ixfe:a,numFmtId:n}}function pc(e,r,t){if(!t)t=Ur(16);t._W(2,r||0);t._W(2,e.numFmtId||0);t._W(2,0);t._W(2,0);t._W(2,0);t._W(1,0);t._W(1,0);t._W(1,0);t._W(1,0);t._W(1,0);t._W(1,0);return t}function bc(e,r){if(!r)r=Ur(10);r._W(1,0);r._W(1,0);r._W(4,0);r._W(4,0);return r}var mc=Mr;function gc(e,r){if(!r)r=Ur(51);r._W(1,0);bc(null,r);bc(null,r);bc(null,r);bc(null,r);bc(null,r);return r.length>r.l?r.slice(0,r.l):r}function Ec(e,r){if(!r)r=Ur(12+4*10);r._W(4,e.xfId);r._W(2,1);r._W(1,+e.builtinId);r._W(1,0);At(e.name||"",r);return r.length>r.l?r.slice(0,r.l):r}function Sc(e,r,t){var a=Ur(4+256*2*4);a._W(4,e);At(r,a);At(t,a);return a.length>a.l?a.slice(0,a.l):a}function kc(e,r,t){var a={};a.NumberFmt=[];for(var n in R._table)a.NumberFmt[n]=R._table[n];a.CellXf=[];a.Fonts=[];var i=[];var s=false;Wr(e,function l(e,n,c){switch(c){case 44:a.NumberFmt[e[0]]=e[1];R.load(e[1],e[0]);break;case 43:a.Fonts.push(e);if(e.color.theme!=null&&r&&r.themeElements&&r.themeElements.clrScheme){e.color.rgb=Dl(r.themeElements.clrScheme[e.color.theme].rgb,e.color.tint||0)}break;case 1025:break;case 45:break;case 46:break;case 47:if(i[i.length-1]=="BrtBeginCellXFs"){a.CellXf.push(e)}break;case 48:;case 507:;case 572:;case 475:break;case 1171:;case 2102:;case 1130:;case 512:;case 2095:break;case 35:s=true;break;case 36:s=false;break;case 37:i.push(n);break;case 38:i.pop();break;default:if((n||"").indexOf("Begin")>0)i.push(n);else if((n||"").indexOf("End")>0)i.pop();else if(!s||t.WTF)throw new Error("Unexpected record "+c+" "+n);}});return a}function wc(e,r){if(!r)return;var t=0;[[5,8],[23,26],[41,44],[50,392]].forEach(function(e){for(var a=e[0];a<=e[1];++a)if(r[a]!=null)++t});if(t==0)return;Hr(e,"BrtBeginFmts",vt(t));[[5,8],[23,26],[41,44],[50,392]].forEach(function(t){for(var a=t[0];a<=t[1];++a)if(r[a]!=null)Hr(e,"BrtFmt",lc(a,r[a]))});Hr(e,"BrtEndFmts")}function Bc(e){var r=1;if(r==0)return;Hr(e,"BrtBeginFonts",vt(r));Hr(e,"BrtFont",fc({sz:12,color:{theme:1},name:"Calibri",family:2,scheme:"minor"}));Hr(e,"BrtEndFonts")}function Cc(e){var r=2;if(r==0)return;Hr(e,"BrtBeginFills",vt(r));Hr(e,"BrtFill",dc({patternType:"none"}));Hr(e,"BrtFill",dc({patternType:"gray125"}));Hr(e,"BrtEndFills")}function Tc(e){var r=1;if(r==0)return;Hr(e,"BrtBeginBorders",vt(r));Hr(e,"BrtBorder",gc({}));Hr(e,"BrtEndBorders")}function Ic(e){var r=1;Hr(e,"BrtBeginCellStyleXFs",vt(r));Hr(e,"BrtXF",pc({numFmtId:0,fontId:0,fillId:0,borderId:0},65535));Hr(e,"BrtEndCellStyleXFs")}function xc(e,r){Hr(e,"BrtBeginCellXFs",vt(r.length));r.forEach(function(r){Hr(e,"BrtXF",pc(r,0))});Hr(e,"BrtEndCellXFs")}function Ac(e){var r=1;Hr(e,"BrtBeginStyles",vt(r));Hr(e,"BrtStyle",Ec({xfId:0,builtinId:0,name:"Normal"}));Hr(e,"BrtEndStyles")}function Rc(e){var r=0;Hr(e,"BrtBeginDXFs",vt(r));Hr(e,"BrtEndDXFs")}function Fc(e){var r=0;Hr(e,"BrtBeginTableStyles",Sc(r,"TableStyleMedium9","PivotStyleMedium4"));Hr(e,"BrtEndTableStyles")}function _c(){return}function Dc(e,r){var t=Vr();Hr(t,"BrtBeginStyleSheet");wc(t,e.SSF);Bc(t,e);Cc(t,e);Tc(t,e);Ic(t,e);xc(t,r.cellXfs);Ac(t,e);Rc(t,e);Fc(t,e);_c(t,e);Hr(t,"BrtEndStyleSheet");return t.end()}wa.THEME="http://schemas.openxmlformats.org/officeDocument/2006/relationships/theme";function yc(e,r,t){r.themeElements.clrScheme=[];var a={};(e[0].match(Se)||[]).forEach(function(e){var n=Be(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 Oc(){}functio
},7:{n:"PtgElfColV",f:Po},10:{n:"PtgElfRadical",f:Lo},11:{n:"PtgElfRadicalS",f:Uo},13:{n:"PtgElfColS",f:yo},15:{n:"PtgElfColSV",f:Oo},16:{n:"PtgElfRadicalLel",f:Mo},25:{n:"PtgList",f:Ho},29:{n:"PtgSxName",f:Xo},255:{}};var Ko={1:{n:"PtgAttrSemi",f:qf},2:{n:"PtgAttrIf",f:Jf},4:{n:"PtgAttrChoose",f:$f},8:{n:"PtgAttrGoto",f:Qf},16:{n:"PtgAttrSum",f:fo},32:{n:"PtgAttrBaxcel",f:Yf},64:{n:"PtgAttrSpace",f:ro},65:{n:"PtgAttrSpaceSemi",f:to},128:{n:"PtgAttrIfError",f:Zf},255:{}};Ko[33]=Ko[32];function Yo(e,r,t,a){if(a.biff<8)return Mr(e,r);var n=e.l+r;var i=[];for(var s=0;s!==t.length;++s){switch(t[s][0]){case"PtgArray":t[s][1]=Eo(e,0,a);i.push(t[s][1]);break;case"PtgMemArea":t[s][2]=go(e,t[s][1]);i.push(t[s][2]);break;case"PtgExp":if(a&&a.biff==12){t[s][1][1]=e._R(4);i.push(t[s][1])}break;case"PtgList":;case"PtgElfRadicalS":;case"PtgElfColS":;case"PtgElfColSV":throw"Unsupported "+t[s][0];default:break;}}r=n-e.l;if(r!==0)i.push(Mr(e,r));return i}function $o(e,r,t){var a=e.l+r;var n,i,s=[];while(a!=e.l){r=a-e.l;i=e[e.l];n=Go[i];if(i===24||i===25){i=e[e.l+1];n=(i===24?jo:Ko)[i]}if(!n||!n.f){Mr(e,r)}else{s.push([n.n,n.f(e,r,t)])}}return s}function Qo(e){var r=[];for(var t=0;t<e.length;++t){var a=e[t],n=[];for(var i=0;i<a.length;++i){var s=a[i];if(s)switch(s[0]){case 2:n.push('"'+s[1].replace(/"/g,'""')+'"');break;default:n.push(s[1]);}else n.push("")}r.push(n.join(","))}return r.join(";")}var Jo={PtgAdd:"+",PtgConcat:"&",PtgDiv:"/",PtgEq:"=",PtgGe:">=",PtgGt:">",PtgLe:"<=",PtgLt:"<",PtgMul:"*",PtgNe:"<>",PtgPower:"^",PtgSub:"-"};function Zo(e,r){if(!e&&!(r&&r.biff<=5&&r.biff>=2))throw new Error("empty sheet name");if(e.indexOf(" ")>-1)return"'"+e+"'";return e}function qo(e,r,t){if(!e)return"SH33TJSERR0";if(!e.XTI)return"SH33TJSERR6";var a=e.XTI[r];if(t.biff>8&&!e.XTI[r])return e.SheetNames[r];if(t.biff<8){if(r>1e4)r-=65536;if(r<0)r=-r;return r==0?"":e.XTI[r-1]}if(!a)return"SH33TJSERR1";var n="";if(t.biff>8)switch(e[a[0]][0]){case 357:n=a[1]==-1?"#REF":e.SheetNames[a[1]];return a[1]==a[2]?n:n+":"+e.SheetNames[a[2]];case 358:if(t.SID!=null)return e.SheetNames[t.SID];return"SH33TJSSAME"+e[a[0]][0];case 355:;default: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 eu(e,r,t){return Zo(qo(e,r,t),t)}function ru(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=ne(" ",e[0][v][1][1]);break;case 1:p=ne("\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+Jo[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=Xr(g[1][1],i,n);s.push(zr(f));break;case"PtgRefN":f=t?Xr(g[1][1],t,n):g[1][1];s.push(zr(f));break;case"PtgRef3d":o=g[1][1];f=Xr(g[1][2],i,n);d=eu(a,o,n);var E=d;s.push(d+"!"+zr(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
var n=Be(e);if(!t.Sheets[a])t.Sheets[a]={};if(n.codeName)t.Sheets[a].CodeName=n.codeName}function Vu(e){var r={sheet:1};var t=["objects","scenarios","selectLockedCells","selectUnlockedCells"];var a=["formatColumns","formatRows","formatCells","insertColumns","insertRows","insertHyperlinks","deleteColumns","deleteRows","sort","autoFilter","pivotTables"];t.forEach(function(t){if(e[t]!=null&&e[t])r[t]="1"});a.forEach(function(t){if(e[t]!=null&&!e[t])r[t]="0"});if(e.password)r.password=Sl(e.password).toString(16).toUpperCase();return Ze("sheetProtection",null,r)}function Hu(e,r,t){var a=Array.isArray(e);for(var n=0;n!=r.length;++n){var i=Be(Me(r[n]),true);if(!i.ref)return;var s=((t||{})["!id"]||[])[i.id];if(s){i.Target=s.Target;if(i.location)i.Target+="#"+i.location}else{i.Target="#"+i.location;s={Target:i.Target,TargetMode:"Internal"}}i.Rel=s;if(i.tooltip){i.Tooltip=i.tooltip;delete i.tooltip}var l=ct(i.ref);for(var c=l.s.r;c<=l.e.r;++c)for(var f=l.s.c;f<=l.e.c;++f){var o=it({c:f,r:c});if(a){if(!e[c])e[c]=[];if(!e[c][f])e[c][f]={t:"z",v:undefined};e[c][f].l=i}else{if(!e[o])e[o]={t:"z",v:undefined};e[o].l=i}}}}function Xu(e){var r={};["left","right","top","bottom","header","footer"].forEach(function(t){if(e[t])r[t]=parseFloat(e[t])});return r}function Gu(e){Tu(e);return Ze("pageMargins",null,e)}function zu(e,r){var t=false;for(var a=0;a!=r.length;++a){var n=Be(r[a],true);if(n.hidden)n.hidden=Le(n.hidden);var i=parseInt(n.min,10)-1,s=parseInt(n.max,10)-1;delete n.min;delete n.max;n.width=+n.width;if(!t&&n.width){t=true;Vl(n.width)}Hl(n);while(i<=s)e[i++]=ae(n)}}function ju(e,r){var t=["<cols>"],a;for(var n=0;n!=r.length;++n){if(!(a=r[n]))continue;t[t.length]=Ze("col",null,Cu(n,a))}t[t.length]="</cols>";return t.join("")}function Ku(e){var r={ref:(e.match(/ref="([^"]*)"/)||[])[1]};return r}function Yu(e){return Ze("autoFilter",null,{ref:e.ref})}var $u=/<(?:\w:)?sheetView(?:[^>a-z][^>]*)?\/>/;function Qu(e,r){(e.match($u)||[]).forEach(function(e){var t=Be(e);if(Le(t.rightToLeft)){if(!r.Views)r.Views=[{}];if(!r.Views[0])r.Views[0]={};r.Views[0].RTL=true}})}function Ju(e,r,t,a){var n={workbookViewId:"0"};if((((a||{}).Workbook||{}).Views||[])[0])n.rightToLeft=a.Workbook.Views[0].RTL?"1":"0";return Ze("sheetViews",Ze("sheetView",null,n),{})}function Zu(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=Wt[e.v];break;case"d":if(a.cellDates)n=re(e.v,-1).toISOString();else{e=ae(e);e.t="n";n=""+(e.v=Q(re(e.v)))}if(typeof e.z==="undefined")e.z=R._table[14];break;default:n=e.v;break;}var l=Qe("v",Fe(n)),c={r:r};var f=Iu(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=Qe("v",""+Bu(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=Ze("f",Fe(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 Ze("c",l,c)}var qu=function(){var e=/<(?:\w+:)?c[ >]/,r=/<\/(?:\w+:)?row>/;var t=/r=["']([^"']*)["']/,a=/<(?:\w+:)?is>([\S\s]*?)<\/(?:\w+:)?is>/;var n=/ref=["']([^"']*)["']/;var i=Xe("v"),s=Xe("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 A=0,F=0;var _=Array.isArray(d.CellXf),D;var y=[];var O=[];var P=Array.isArray(f);var N=[],L={},M=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=Be(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){L={};M=false;if(B.ht){M=true;L.hpt=parseFloat(B.ht);L.hpx=jl(L.hpt)}if(B.hidden=="1"){M=true;L.hidden=true}if(B.outlineLevel!=null){M=true;L.level=+B.outlineLevel}if(M)N[C-1]=L}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
for(var a=0;a!=4;++a)t._W(4,0);bt("SheetJS",t);bt(r.version,t);bt(r.version,t);bt("7262",t);t.length=t.l;return t.length>t.l?t.slice(0,t.l):t}function yd(e,r){if(!r)r=Ur(29);r._W(-4,0);r._W(-4,460);r._W(4,28800);r._W(4,17600);r._W(4,500);r._W(4,e);r._W(4,e);var t=120;r._W(1,t);return r.length>r.l?r.slice(0,r.l):r}function Od(e,r){if(!r.Workbook||!r.Workbook.Sheets)return;var t=r.Workbook.Sheets;var a=0,n=-1,i=-1;for(;a<t.length;++a){if(!t[a]||!t[a].Hidden&&n==-1)n=a;else if(t[a].Hidden==1&&i==-1)i=a}if(i>n)return;Hr(e,"BrtBeginBookViews");Hr(e,"BrtBookView",yd(n));Hr(e,"BrtEndBookViews")}function Pd(e,r){var t=Vr();Hr(t,"BrtBeginBook");Hr(t,"BrtFileVersion",Dd());Hr(t,"BrtWbProp",xd(e.Workbook&&e.Workbook.WBProps||null));Od(t,e,r);_d(t,e,r);Hr(t,"BrtEndBook");return t.end()}function Nd(e,r,t){if(r.slice(-4)===".bin")return Fd(e,t);return kd(e,t)}function Ld(e,r,t,a,n,i,s,l){if(r.slice(-4)===".bin")return Hh(e,a,t,n,i,s,l);return Mu(e,a,t,n,i,s,l)}function Md(e,r,t,a,n,i,s,l){if(r.slice(-4)===".bin")return sd(e,a,t,n,i,s,l);return ad(e,a,t,n,i,s,l)}function Ud(e,r,t,a,n,i,s,l){if(r.slice(-4)===".bin")return Bf(e,a,t,n,i,s,l);return Cf(e,a,t,n,i,s,l)}function Wd(e,r,t,a,n,i,s,l){if(r.slice(-4)===".bin")return kf(e,a,t,n,i,s,l);return wf(e,a,t,n,i,s,l)}function Vd(e,r,t,a){if(r.slice(-4)===".bin")return kc(e,t,a);return ac(e,t,a)}function Hd(e,r,t){return Vc(e,t)}function Xd(e,r,t){if(r.slice(-4)===".bin")return el(e,t);return Qs(e,t)}function Gd(e,r,t){if(r.slice(-4)===".bin")return pf(e,t);return cf(e,t)}function zd(e,r,t){if(r.slice(-4)===".bin")return qc(e,r,t);return Jc(e,r,t)}function jd(e,r,t){if(r.slice(-4)===".bin")return rf(e,r,t);return ef(e,r,t)}function Kd(e,r,t){return(r.slice(-4)===".bin"?Pd:Bd)(e,t)}function Yd(e,r,t,a,n){return(r.slice(-4)===".bin"?qh:th)(e,t,a,n)}function $d(e,r,t,a,n){return(r.slice(-4)===".bin"?ld:nd)(e,t,a,n)}function Qd(e,r,t){return(r.slice(-4)===".bin"?Dc:ic)(e,t)}function Jd(e,r,t){return(r.slice(-4)===".bin"?al:Zs)(e,t)}function Zd(e,r,t){return(r.slice(-4)===".bin"?bf:of)(e,t)}var qd=/([\w:]+)=((?:")([^"]*)(?:")|(?:')([^']*)(?:'))/g;var ev=/([\w:]+)=((?:")(?:[^"]*)(?:")|(?:')(?:[^']*)(?:'))/;var rv=function(e){return String.fromCharCode(e)};function tv(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(qd),i,s,l,c;if(n)for(c=0;c!=n.length;++c){i=n[c].match(ev);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 av(e){var r=e.split(/\s+/);var t={};if(r.length===1)return t;var a=e.match(qd),n,i,s,l;if(a)for(l=0;l!=a.length;++l){n=a[l].match(ev);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 nv(e,r){var t=_[e]||xe(e);if(t==="General")return R._general(r);return R.format(t,r)}function iv(e,r,t,a){var n=a;switch((t[0].match(/dt:dt="([\w.]+)"/)||["",""])[1]){case"boolean":n=Le(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=re(a);break;case"i8":;case"string":;case"fixed":;case"uuid":;case"bin.base64":break;default:throw new Error("bad custprop:"+t[0]);}e[xe(r)]=n}function sv(e,r,t){if(e.t==="z")return;if(!t||t.cellText!==false)try{if(e.t==="e"){e.w=e.w||Wt[e.v]}else if(r==="General"){if(e.t==="n"){if((e.v|0)===e.v)e.w=R._general_int(e.v);else e.w=R._general_num(e.v)}else e.w=R._general(e.v)}else e.w=nv(r||"General",e.v)}catch(a){if(t.WTF)throw a}try{var n=_[r]||r||"General";if(t.cellNF)e.z=n;if(t.cellDates&&e.t=="n"&&R.is_date(n)){var i=R.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 lv(e,r,t){if(t.cellStyles){if(r.Interior){var a=r.Interior;if(a.Pattern)a.patternType=Kl[a.Pattern]||a.Pattern}}e[r.ID]=r}function cv(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===unde
c:re.c,r:re.r})])++re.c;k={ixfe:re.ixfe,XF:C[re.ixfe]||{},v:re.val,t:"n"};if(z>0)k.z=j[k.ixfe>>8&31];Rv(k,r,t.opts.Date1904);_({c:re.c,r:re.r},k,r)}break;case"BoolErr":{k={ixfe:re.ixfe,XF:C[re.ixfe],v:re.val,t:re.t};if(z>0)k.z=j[k.ixfe>>8&31];Rv(k,r,t.opts.Date1904);_({c:re.c,r:re.r},k,r)}break;case"RK":{k={ixfe:re.ixfe,XF:C[re.ixfe],v:re.rknum,t:"n"};if(z>0)k.z=j[k.ixfe>>8&31];Rv(k,r,t.opts.Date1904);_({c:re.c,r:re.r},k,r)}break;case"MulRk":{for(var ne=re.c;ne<=re.C;++ne){var ie=re.rkrec[ne-re.c][0];k={ixfe:ie,XF:C[ie],v:re.rkrec[ne-re.c][1],t:"n"};if(z>0)k.z=j[k.ixfe>>8&31];Rv(k,r,t.opts.Date1904);_({c:ne,r:re.r},k,r)}}break;case"Formula":{if(re.val=="String"){l=re;break}k=Fv(re.val,re.cell.ixfe,re.tt);k.XF=C[k.ixfe];if(r.cellFormula){var se=re.formula;if(se&&se[0]&&se[0][0]&&se[0][0][0]=="PtgExp"){var le=se[0][0][1][0],ce=se[0][0][1][1];var fe=it({r:le,c:ce});if(E[fe])k.f=""+ru(re.formula,s,re.cell,V,D);else k.F=((r.dense?(n[le]||[])[ce]:n[fe])||{}).F}else k.f=""+ru(re.formula,s,re.cell,V,D)}if(z>0)k.z=j[k.ixfe>>8&31];Rv(k,r,t.opts.Date1904);_(re.cell,k,r);l=re}break;case"String":{if(l){l.val=re;k=Fv(re,l.cell.ixfe,"s");k.XF=C[k.ixfe];if(r.cellFormula){k.f=""+ru(l.formula,s,l.cell,V,D)}if(z>0)k.z=j[k.ixfe>>8&31];Rv(k,r,t.opts.Date1904);_(l.cell,k,r);l=null}else throw new Error("String record expects Formula")}break;case"Array":{S.push(re);var oe=it(re[0].s);v=r.dense?(n[re[0].s.r]||[])[re[0].s.c]:n[oe];if(r.cellFormula&&v){if(!l)break;if(!oe||!v)break;v.f=""+ru(re[1],s,re[0],V,D);v.F=lt(re[0])}}break;case"ShrFmla":{if(!B)break;if(!r.cellFormula)break;if(d){if(!l)break;E[it(l.cell)]=re[0];v=r.dense?(n[l.cell.r]||[])[l.cell.c]:n[it(l.cell)];(v||{}).f=""+ru(re[0],s,h,V,D)}}break;case"LabelSst":k=Fv(c[re.isst].t,re.ixfe,"s");k.XF=C[k.ixfe];if(z>0)k.z=j[k.ixfe>>8&31];Rv(k,r,t.opts.Date1904);_({c:re.c,r:re.r},k,r);break;case"Blank":if(r.sheetStubs){k={ixfe:re.ixfe,XF:C[re.ixfe],t:"z"};if(z>0)k.z=j[k.ixfe>>8&31];Rv(k,r,t.opts.Date1904);_({c:re.c,r:re.r},k,r)}break;case"MulBlank":if(r.sheetStubs){for(var ue=re.c;ue<=re.C;++ue){var he=re.ixfe[ue-re.c];k={ixfe:he,XF:C[he],t:"z"};if(z>0)k.z=j[k.ixfe>>8&31];Rv(k,r,t.opts.Date1904);_({c:ue,r:re.r},k,r)}}break;case"RString":;case"Label":;case"BIFF2STR":k=Fv(re.val,re.ixfe,"s");k.XF=C[k.ixfe];if(z>0)k.z=j[k.ixfe>>8&31];Rv(k,r,t.opts.Date1904);_({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(D.biff==4){j[z++]=re[1];for(var de=0;de<z+163;++de)if(R._table[de]==re[1])break;if(de>=163)R.load(re[1],z+163)}else R.load(re[1],re[0])}break;case"BIFF2FORMAT":{j[z++]=re;for(var ve=0;ve<z+163;++ve)if(R._table[ve]==re)break;if(ve>=163)R.load(re,z+163)}break;case"MergeCells":O=O.concat(re);break;case"Obj":P[re.cmo[0]]=D.lastobj=re;break;case"TxO":D.lastobj.TxO=re;break;case"ImData":D.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[it({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[it({c:m,r:g})];if(v)v.l.Tooltip=re[1]}}break;case"Note":{if(D.biff<=5&&D.biff>=2)break;v=r.dense?(n[re[0].r]||[])[re[0].c]:n[it(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":Qc(C[re.ixfe],re.ext);break;case"DefColWidth":M=re;break;case"DefaultRowHeight":U=re[1];break;case"ColInfo":{if(!D.cellStyles)break;while(re.e>=re.s){N[re.e--]={width:re.w/256};if(!W){W=true;Vl(re.w/256)}Hl(N[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=jl(re.hpt)}}break;case"LeftMargin":;case"RightMargin":;case"TopMargin":;case"BottomMargin":if(!n["!margins"])Tu(n["!margins"]={});n["!margins"][te.slice(0,-6).toLowerCase()]=re;break;case"Setup":if(!n["!margins"])Tu(n["!margins"]={});n["!margins"].header=re.header;n["!margins"].footer=re.footer;break;case"Window2":if(re.RTL)I.Views[0].RTL=true;bre
},2093:{n:"BrtBeginTimelineStyle"},2094:{n:"BrtEndTimelineStyle"},2095:{n:"BrtTimelineStyleElement"},2096:{n:"BrtBeginTimelineStylesheetExt15"},2097:{n:"BrtEndTimelineStylesheetExt15"},2098:{n:"BrtBeginTimelineStyles"},2099:{n:"BrtEndTimelineStyles"},2100:{n:"BrtBeginTimelineStyleElements"},2101:{n:"BrtEndTimelineStyleElements"},2102:{n:"BrtDxf15"},2103:{n:"BrtBeginDxfs15"},2104:{n:"brtEndDxfs15"},2105:{n:"BrtSlicerCacheHideItemsWithNoData"},2106:{n:"BrtBeginItemUniqueNames"},2107:{n:"BrtEndItemUniqueNames"},2108:{n:"BrtItemUniqueName"},2109:{n:"BrtBeginExtConn15"},2110:{n:"BrtEndExtConn15"},2111:{n:"BrtBeginOledbPr15"},2112:{n:"BrtEndOledbPr15"},2113:{n:"BrtBeginDataFeedPr15"},2114:{n:"BrtEndDataFeedPr15"},2115:{n:"BrtTextPr15"},2116:{n:"BrtRangePr15"},2117:{n:"BrtDbCommand15"},2118:{n:"BrtBeginDbTables15"},2119:{n:"BrtEndDbTables15"},2120:{n:"BrtDbTable15"},2121:{n:"BrtBeginDataModel"},2122:{n:"BrtEndDataModel"},2123:{n:"BrtBeginModelTables"},2124:{n:"BrtEndModelTables"},2125:{n:"BrtModelTable"},2126:{n:"BrtBeginModelRelationships"},2127:{n:"BrtEndModelRelationships"},2128:{n:"BrtModelRelationship"},2129:{n:"BrtBeginECTxtWiz15"},2130:{n:"BrtEndECTxtWiz15"},2131:{n:"BrtBeginECTWFldInfoLst15"},2132:{n:"BrtEndECTWFldInfoLst15"},2133:{n:"BrtBeginECTWFldInfo15"},2134:{n:"BrtFieldListActiveItem"},2135:{n:"BrtPivotCacheIdVersion"},2136:{n:"BrtSXDI15"},65535:{n:""}};var Nv=X(Pv,"n");var Lv={3:{n:"BIFF2NUM",f:As},4:{n:"BIFF2STR",f:xs},6:{n:"Formula",f:lu},9:{n:"BOF",f:si},10:{n:"EOF",f:gn},12:{n:"CalcCount",f:Bn},13:{n:"CalcMode",f:Bn},14:{n:"CalcPrecision",f:kn},15:{n:"CalcRefMode",f:kn},16:{n:"CalcDelta",f:Mt},17:{n:"CalcIter",f:kn},18:{n:"Protect",f:kn},19:{n:"Password",f:Bn},20:{n:"Header",f:zi},21:{n:"Footer",f:zi},23:{n:"ExternSheet",f:Qi},24:{n:"Lbl",f:$i},25:{n:"WinProtect",f:kn},26:{n:"VerticalPageBreaks"},27:{n:"HorizontalPageBreaks"},28:{n:"Note",f:as},29:{n:"Selection"},34:{n:"Date1904",f:kn},35:{n:"ExternName",f:Ki},38:{n:"LeftMargin",f:Mt},39:{n:"RightMargin",f:Mt},40:{n:"TopMargin",f:Mt},41:{n:"BottomMargin",f:Mt},42:{n:"PrintRowCol",f:kn},43:{n:"PrintGrid",f:kn},47:{n:"FilePass",f:Il},49:{n:"Font",f:Ci},51:{n:"PrintSize",f:Bn},60:{n:"Continue"},61:{n:"Window1",f:Si},64:{n:"Backup",f:kn},65:{n:"Pane"},66:{n:"CodePage",f:Bn},77:{n:"Pls"},80:{n:"DCon"},81:{n:"DConRef"},82:{n:"DConName"},85:{n:"DefColWidth",f:Bn},89:{n:"XCT"},90:{n:"CRN"},91:{n:"FileSharing"},92:{n:"WriteAccess",f:fi},93:{n:"Obj",f:ss},94:{n:"Uncalced"},95:{n:"CalcSaveRecalc",f:kn},96:{n:"Template"},97:{n:"Intl"},99:{n:"ObjProtect",f:kn},125:{n:"ColInfo",f:Es},128:{n:"Guts",f:Ui},129:{n:"WsBool",f:ui},130:{n:"GridSet",f:Bn},131:{n:"HCenter",f:kn},132:{n:"VCenter",f:kn},133:{n:"BoundSheet8",f:hi},134:{n:"WriteProtect"},140:{n:"Country",f:vs},141:{n:"HideObj",f:Bn},144:{n:"Sort"},146:{n:"Palette",f:ms},151:{n:"Sync"},152:{n:"LPr"},153:{n:"DxGCol"},154:{n:"FnGroupName"},155:{n:"FilterMode"},156:{n:"BuiltInFnGroupCount",f:Bn},157:{n:"AutoFilterInfo"},158:{n:"AutoFilter"},160:{n:"Scl",f:Cs},161:{n:"Setup",f:Ss},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:Oi},190:{n:"MulBlank",f:Pi},193:{n:"Mms",f:gn},197:{n:"SXDI"},198:{n:"SXDB"},199:{n:"SXFDB"},200:{n:"SXDBB"},201:{n:"SXNum"},202:{n:"SxBool",f:kn},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:Bn},220:{n:"DbOrParamQry"},221:{n:"ScenarioProtect",f:kn},222:{n:"OleObjectSize"},224:{n:"XF",f:Li},225:{n:"InterfaceHdr",f:ci},226:{n:"InterfaceEnd",f:gn},227:{n:"SXVS"},229:{n:"MergeCells",f:ns},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"
};var n=function(e){e.push(" <office:automatic-styles>\n");e.push(' <number:date-style style:name="N37" number:automatic-order="true">\n');e.push(' <number:month number:style="long"/>\n');e.push(" <number:text>/</number:text>\n");e.push(' <number:day number:style="long"/>\n');e.push(" <number:text>/</number:text>\n");e.push(" <number:year/>\n");e.push(" </number:date-style>\n");e.push(' <style:style style:name="ce1" style:family="table-cell" style:parent-style-name="Default" style:data-style-name="N37"/>\n');e.push(" </office:automatic-styles>\n")};return function i(e,r){var t=[ge];var i=Je({"xmlns:office":"urn:oasis:names:tc:opendocument:xmlns:office:1.0","xmlns:table":"urn:oasis:names:tc:opendocument:xmlns:table:1.0","xmlns:style":"urn:oasis:names:tc:opendocument:xmlns:style:1.0","xmlns:text":"urn:oasis:names:tc:opendocument:xmlns:text:1.0","xmlns:draw":"urn:oasis:names:tc:opendocument:xmlns:drawing:1.0","xmlns:fo":"urn:oasis:names:tc:opendocument:xmlns:xsl-fo-compatible:1.0","xmlns:xlink":"http://www.w3.org/1999/xlink","xmlns:dc":"http://purl.org/dc/elements/1.1/","xmlns:meta":"urn:oasis:names:tc:opendocument:xmlns:meta:1.0","xmlns:number":"urn:oasis:names:tc:opendocument:xmlns:datastyle:1.0","xmlns:presentation":"urn:oasis:names:tc:opendocument:xmlns:presentation:1.0","xmlns:svg":"urn:oasis:names:tc:opendocument:xmlns:svg-compatible:1.0","xmlns:chart":"urn:oasis:names:tc:opendocument:xmlns:chart:1.0","xmlns:dr3d":"urn:oasis:names:tc:opendocument:xmlns:dr3d:1.0","xmlns:math":"http://www.w3.org/1998/Math/MathML","xmlns:form":"urn:oasis:names:tc:opendocument:xmlns:form:1.0","xmlns:script":"urn:oasis:names:tc:opendocument:xmlns:script:1.0","xmlns:ooo":"http://openoffice.org/2004/office","xmlns:ooow":"http://openoffice.org/2004/writer","xmlns:oooc":"http://openoffice.org/2004/calc","xmlns:dom":"http://www.w3.org/2001/xml-events","xmlns:xforms":"http://www.w3.org/2002/xforms","xmlns:xsd":"http://www.w3.org/2001/XMLSchema","xmlns:xsi":"http://www.w3.org/2001/XMLSchema-instance","xmlns:sheet":"urn:oasis:names:tc:opendocument:sh33tjs:1.0","xmlns:rpt":"http://openoffice.org/2005/report","xmlns:of":"urn:oasis:names:tc:opendocument:xmlns:of:1.2","xmlns:xhtml":"http://www.w3.org/1999/xhtml","xmlns:grddl":"http://www.w3.org/2003/g/data-view#","xmlns:tableooo":"http://openoffice.org/2009/table","xmlns:drawooo":"http://openoffice.org/2010/draw","xmlns:calcext":"urn:org:documentfoundation:names:experimental:calc:xmlns:calcext:1.0","xmlns:loext":"urn:org:documentfoundation:names:experimental:office:xmlns:loext:1.0","xmlns:field":"urn:openoffice:names:experimental:ooo-ms-interop:xmlns:field:1.0","xmlns:formx":"urn:openoffice:names:experimental:ooxml-odf-interop:xmlns:form:1.0","xmlns:css3t":"http://www.w3.org/TR/css3-text/","office:version":"1.2"});var s=Je({"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 cp(e,r){if(r.bookType=="fods")return lp(e,r);var t=new be;var a="";var n=[];var i=[];a="mimetype";t.file(a,"application/vnd.oasis.opendocument.spreadsheet");a="content.xml";t.file(a,lp(e,r));n.push([a,"text/xml"]);i.push([a,"ContentFile"]);a="styles.xml";t.file(a,sp(e,r));n.push([a,"text/xml"]);i.push([a,"StylesFile"]);a="meta.xml";t.file(a,Oa());n.push([a,"text/xml"]);i.push([a,"MetadataFile"]);a="manifest.rdf";t.file(a,ya(i));n.push([a,"application/rdf+xml"]);a="META-INF/manifest.xml";t.file(a,Fa(n));return t}function fp(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 op(e){return function r(t,a){var n=fp(t,a.sheet);return e.