sheetjs/dist/xlsx.min.js

14 lines
358 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.15";var t=1200;if(typeof module!=="undefined"&&typeof require!=="undefined"){if(typeof cptable==="undefined")global.cptable=undefined}function a(){n(1200)}var n=function(e){t=e};function i(e){var r=[];for(var t=0,a=e.length;t<a;++t)r[t]=e.charCodeAt(t);return r}function s(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 l(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 c=function(e){var r=e.charCodeAt(0),t=e.charCodeAt(1);if(r==255&&t==254)return s(e.substr(2));if(r==254&&t==255)return l(e.substr(2));if(r==65279)return e.substr(1);return e};var f=function hp(e){return String.fromCharCode(e)};if(typeof cptable!=="undefined"){n=function(e){t=e};c=function(e){if(e.charCodeAt(0)===255&&e.charCodeAt(1)===254){return cptable.utils.decode(1200,i(e.substr(2)))}return e};f=function dp(e){if(t===1200)return String.fromCharCode(e);return cptable.utils.decode(t,[e&255,e>>8])[0]}}var o=null;var u=true;var h=function vp(){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 d=typeof Buffer!=="undefined"&&typeof process!=="undefined"&&typeof process.versions!=="undefined"&&process.versions.node;function v(e){return new(d?Buffer:Array)(e)}function b(e){if(d)return new Buffer(e,"binary");return e.split("").map(function(e){return e.charCodeAt(0)&255})}var p=function(e){return[].concat.apply([],e)};var m=/\u0000/g,g=/[\u0001-\u0006]/g;var E={};var S=function bp(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"],["Tue","Tuesday"],["Wed","Wednesday"],["Thu","Thursday"],["Fri","Friday"],["Sat","Saturday"]];var h=[["J","Jan","January"],["F","Feb","February"],["M","Mar","March"],["A","Apr","April"],["M","May","May"],["J","Jun","June"],["J","Jul","July"],["A","Aug","August"],["S","Sep","September"],["O","Oct","October"],["N","Nov","November"],["D","Dec","December"]];function d(e){e[0]="General";e[1]="0";e[2]="0.00";e[3]="#,##0";e[4]="#,##0.00";e[9]="0%";e[10]="0.00%";e[11]="0.00E+00";e[12]="# ?/?";e[13]="# ??/??";e[14]="m/d/yy";e[15]="d-mmm-yy";e[16]="d-mmm";e[17]="mmm-yy";e[18]="h:mm AM/PM";e[19]="h:mm:ss AM/PM";e[20]="h:mm";e[21]="h:mm:ss";e[22]="m/d/yy h:mm";e[37]="#,##0 ;(#,##0)";e[38]="#,##0 ;[Red](#,##0)";e[39]="#,##0.00;(#,##0.00)";e[40]="#,##0.00;[Red](#,##0.00)";e[45]="mm:ss";e[46]="[h]:mm:ss";e[47]="mmss.0";e[48]="##0.0E+0";e[49
}function C(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;T(e)}function T(e){var r="Sh33tJ5";if(I.find(e,"/"+r))return;var t=Ar(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);x(e)}function x(e,n){C(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:P,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||P;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 R(e,r){x(e);var t=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){}else 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 a=Ar(t[7]<<9);var n=0,i=0;{for(n=0;n<8;++n)a._W(1,O[n]);for(n=0;n<8;++n)a._W(2,0);a._W(2,62);a._W(2,3);a._W(2,65534);a._W(2,9);a._W(2,6);for(n=0;n<3;++n)a._W(2,0);a._W(4,0);a._W(4,t[2]);a._W(4,t[0]+t[1]+t[2]+t[3]-1);a._W(4,0);a._W(4,1<<12);a._W(4,t[3]?t[0]+t[1]+t[2]-1:_);a._W(4,t[3]);a._W(-4,t[1]?t[0]-1:_);a._W(4,t[1]);for(n=0;n<109;++n)a._W(-4,n<t[2]?t[1]+n:-1)}if(t[1]){for(i=0;i<t[1];++i){for(;n<236+i*127;++n)a._W(-4,n<t[2]?t[1]+n:-1);a._W(-4,i===t[1]-1?_:i+1)}}var s=function(e){for(i+=e;n<i-1;++n)a._W(-4,n+1);if(e){++n;a._W(-4,_)}};i=n=0;for(i+=t[1];n<i;++n)a._W(-4,y.DIFSECT);for(i+=t[2];n<i;++n)a._W(-4,y.FATSECT);s(t[3]);s(t[4]);var l=0,c=0;var f=e.FileIndex[0];for(;l<e.FileIndex.length;++l){f=e.FileIndex[l];if(!f.content)continue;c=f.content.length;if(c<4096)continue;f.start=i;s(c+511>>9)}s(t[6]+7>>3);while(a.l&511)a._W(-4,y.ENDOFCHAIN);i=n=0;for(l=0;l<e.FileIndex.length;++l){f=e.FileIndex[l];if(!f.content)continue;c=f.content.length;if(!c||c>=4096)continue;f.start=i;s(c+63>>6)}while(a.l&511)a._W(-4,y.ENDOFCHAIN);for(n=0;n<t[4]<<2;++n){var o=e.FullPaths[n];if(!o||o.length===0){for(l=0;l<17;++l)a._W(4,0);for(l=0;l<3;++l)a._W(4,-1);for(l=0;l<12;++l)a._W(4,0);continue}f=e.FileIndex[n];if(n===0)f.start=f.size?f.start-1:_;c=2*(f.name.length+1);a._W(64,f.name,"utf16le");a._W(2,c);a._W(1,f.type);a._W(1,f.color);a._W(-4,f.L);a._W(-4,f.R);a._W(-4,f.C);if(!f.clsid)for(l=0;l<4;++l)a._W(4,0);else a._W(16,f.clsid,"hex");a._W(4,f.state||0);a._W(4,0);a._W(4,0);a._W(4,0);a._W(4,0);a._W(4,f.start);a._W(4,f.size);a._W(4,0)}for(n=1;n<e.FileIndex.length;++n){f=e.FileIndex[n];if(f.size>=4096){a.l=f.start+1<<9;for(l=0;l<f.size;++l)a._W(1,f.content[l]);for(;l&511;++l)a._W(1,0)}}for(n=1;n<e.FileIndex.length;++n){f=e.FileIndex[n];if(f.size>0&&f.size<409
if(e.length>0)r._W(0,e,"dbcs");return t?r.slice(0,r.l):r}var St=st;var kt=lt;var wt=gt;var Bt=Et;function Ct(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?cr([0,0,0,0,r[0],r[1],r[2],r[3]],0):br(r,0)>>2;return t?n/100:n}function Tt(e,r){if(r==null)r=Ar(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 It(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 xt(e,r){if(!r)r=Ar(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 Rt=It;var At=xt;function Dt(e,r){return e._R(8,"f")}function _t(e,r){return(r||Ar(8))._W(8,e,"f")}var Ft={0:"#NULL!",7:"#DIV/0!",15:"#VALUE!",23:"#REF!",29:"#NAME?",36:"#NUM!",42:"#N/A",43:"#GETTING_DATA",255:"#WTF?"};var Ot=_(Ft);function Pt(e,r){var t={};var a=e._R(1);var n=a&1;var i=a>>>1;var s=e._R(1);var l=e._R(2,"i");var c=e._R(1);var f=e._R(1);var o=e._R(1);var u=e._R(1);switch(i){case 0:t.auto=1;break;case 1:t.index=s;var h=aa[s];if(h)t.rgb=gl(h);break;case 2:t.rgb=gl([c,f,o]);break;case 3:t.theme=s;break;}if(l!=0)t.tint=l>0?l/32767:l/32768;return t}function yt(e,r){if(!r)r=Ar(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.substr(0,2),16));r._W(1,parseInt(a.substr(2,2),16));r._W(1,parseInt(a.substr(4,2),16));r._W(1,255)}return r}function Nt(e,r,t){var a=e._R(1);e.l++;var n={fItalic:a&2,fStrikeout:a&8,fOutline:a&16,fShadow:a&32,fCondense:a&64,fExtend:a&128};return n}function Mt(e,r){if(!r)r=Ar(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}var Lt=2;var Ut=3;var Wt=11;var Ht=12;var Vt=19;var Xt=21;var Gt=30;var zt=64;var jt=71;var Kt=4096;var Yt=80;var $t=81;var Qt=[Yt,$t];var Jt={1:{n:"CodePage",t:Lt},2:{n:"Category",t:Yt},3:{n:"PresentationFormat",t:Yt},4:{n:"ByteCount",t:Ut},5:{n:"LineCount",t:Ut},6:{n:"ParagraphCount",t:Ut},7:{n:"SlideCount",t:Ut},8:{n:"NoteCount",t:Ut},9:{n:"HiddenCount",t:Ut},10:{n:"MultimediaClipCount",t:Ut},11:{n:"Scale",t:Wt},12:{n:"HeadingPair",t:Kt|Ht},13:{n:"DocParts",t:Kt|Gt},14:{n:"Manager",t:Yt},15:{n:"Company",t:Yt},16:{n:"LinksDirty",t:Wt},17:{n:"CharacterCount",t:Ut},19:{n:"SharedDoc",t:Wt},22:{n:"HLinksChanged",t:Wt},23:{n:"AppVersion",t:Ut,p:"version"},26:{n:"ContentType",t:Yt},27:{n:"ContentStatus",t:Yt},28:{n:"Language",t:Yt},29:{n:"Version",t:Yt},255:{}};var Zt={1:{n:"CodePage",t:Lt},2:{n:"Title",t:Yt},3:{n:"Subject",t:Yt},4:{n:"Author",t:Yt},5:{n:"Keywords",t:Yt},6:{n:"Comments",t:Yt},7:{n:"Template",t:Yt},8:{n:"LastAuthor",t:Yt},9:{n:"RevNumber",t:Yt},10:{n:"EditTime",t:zt},11:{n:"LastPrinted",t:zt},12:{n:"CreatedDate",t:zt},13:{n:"ModifiedDate",t:zt},14:{n:"PageCount",t:Ut},15:{n:"WordCount",t:Ut},16:{n:"CharCount",t:Ut},17:{n:"Thumbnail",t:jt},18:{n:"ApplicationName",t:Gt},19:{n:"DocumentSecurity",t:Ut},255:{}};var qt={2147483648:{n:"Locale",t:Vt},2147483651:{n:"Behavior",t:Vt},1919054434:{}};(function(){for(var e in qt)if(qt.hasOwnProperty(e))Jt[e]=Zt[e]=qt[e]})();var ea={1:"US",2:"CA",3:"",7:"RU",20:"EG",30:"GR",31:"NL",32:"BE",33:"FR",34:"ES",36:"HU",39:"IT",41:"CH",43:"AT",44:"GB",45:"DK",46:"SE",47:"NO",48:"PL",49:"DE",52:"MX",55:"BR",61:"AU",64:"NZ",66:"TH",81:"JP",82:"KR",84:"VN",86:"CN",90:"TR",105:"JS",213:"DZ",216:"MA",218:"LY",351:"PT",354:"IS",358:"FI",420:"CZ",886:"TW",961:"LB",962:"JO",963:"SY",964:"IQ",965:"KW",966:"SA",971:"AE",972:"IL",974:"QA",981:"IR",65535:"US"};var ra=[null,"solid","mediumGray","darkGray","lightGray","darkHorizontal","darkVertical","darkDown","darkUp","darkGrid","darkTrellis","lightHorizontal","lightVertical","lightDown","lightUp","lightGrid","lightTrellis","gray125","gray0625"];function ta(e){return e.map(function(e){return[e>>16&255
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 Fn(e,r){var t=e._R(1),a=e._R(1),n=e._R(1),i=e._R(1);return[t,a,n,i]}function On(e,r){var t=Fn(e,r);t[3]=0;return t}function Pn(e,r){var t=e._R(2);var a=e._R(2);var n=e._R(2);return{r:t,c:a,ixfe:n}}function yn(e,r,t,a){if(!a)a=Ar(6);a._W(2,e);a._W(2,r);a._W(2,t||0);return a}function Nn(e){var r=e._R(2);var t=e._R(2);e.l+=8;return{type:r,flags:t}}function Mn(e,r,t){return r===0?"":Bn(e,r,t)}function Ln(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 Un(e,r){var t=e._R(2);var a=Ct(e);return[t,a]}function Wn(e,r,t){e.l+=4;r-=4;var a=e.l+r;var n=En(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 Hn(e,r){var t=e._R(2);var a=e._R(2);var n=e._R(2);var i=e._R(2);return{s:{c:n,r:t},e:{c:i,r:a}}}function Vn(e,r){var t=e._R(2);var a=e._R(2);var n=e._R(1);var i=e._R(1);return{s:{c:n,r:t},e:{c:i,r:a}}}var Xn=Vn;function Gn(e,r){e.l+=4;var t=e._R(2);var a=e._R(2);var n=e._R(2);e.l+=12;return[a,t,n]}function zn(e,r){var t={};e.l+=4;e.l+=16;t.fSharedNote=e._R(2);e.l+=4;return t}function jn(e,r){var t={};e.l+=4;e.cf=e._R(2);return t}function Kn(e,r){e.l+=2;e.l+=e._R(2)}var Yn={0:Kn,4:Kn,5:Kn,6:Kn,7:jn,8:Kn,9:Kn,10:Kn,11:Kn,12:Kn,13:zn,14:Kn,15:Kn,16:Kn,17:Kn,18:Kn,19:Kn,20:Kn,21:Gn};function $n(e,r,t){var a=e.l+r;var n=[];while(e.l<a){var i=e._R(2);e.l-=2;try{n.push(Yn[i](e,a-e.l))}catch(s){e.l=a;return n}}if(e.l!=a)e.l=a;return n}function Qn(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 Jn(e,r,t){var a=1536,n=16;switch(t.bookType){case"biff8":break;case"biff5":a=1280;n=8;break;case"biff4":a=4;n=6;break;case"biff3":a=3;n=6;break;case"biff2":a=2;n=4;break;default:throw new Error("unsupported BIFF version");}var i=Ar(n);i._W(2,a);i._W(2,r);if(n>4)i._W(2,29282);if(n>6)i._W(2,1997);if(n>8){i._W(2,49161);i._W(2,1);i._W(2,1798);i._W(2,0)}return i}function Zn(e,r){if(r===0)return 1200;var t;if((t=e._R(2))!==1200){}return 1200}function qn(e,r,t){if(t.enc){e.l+=r;return""}var a=e.l;var n=wn(e,0,t);e._R(r+a-e.l);return n}function ei(e,r){var t=!r||r.biff==8;var a=Ar(t?112:54);a._W(r.biff==8?2:1,7);a._W(1,0);a._W(4,859007059);a._W(4,5458548);while(a.l<a.length)a._W(1,0);return a}function ri(e,r,t){var a=t&&t.biff==8||r==2?e._R(2):(e.l+=r,0);return{fDialog:a&16}}function ti(e,r,t){var a=e._R(4);var n=e._R(1)&3;var i=e._R(1);switch(i){case 0:i="Worksheet";break;case 1:i="Macrosheet";break;case 2:i="Chartsheet";break;case 6:i="VBAModule";break;}var s=En(e,0,t);if(s.length===0)s="Sheet1";return{pos:a,hs:n,dt:i,name:s}}function ai(e,r){var t=!r||r.biff>=8?2:1;var a=Ar(8+t*e.name.length);a._W(4,e.pos);a._W(1,e.hs||0);a._W(1,e.dt);a._W(1,e.name.length);if(r.biff>=8)a._W(1,1);a._W(t*e.name.length,e.name,r.biff<8?"sbcs":"utf16le");return a.slice(0,a.l)}function ni(e,r){var t=e.l+r;var a=e._R(4);var n=e._R(4);var i=[];for(var s=0;s!=n&&e.l<t;++s){i.push(Sn(e))}i.Count=a;i.Unique=n;return i}function ii(e,r){var t={};t.dsst=e._R(2);e.l+=r-2;return t}function si(e,r){var t={};t.r=e._R(2);t.c=e._R(2);t.cnt=e._R(2)-t.c;var a=e._R(2);e.l+=4;var n=e._R(1);e.l+=3;if(n&7)t.level=n&7;if(n&32)t.hidden=true;if(n&64)t.hpt=a/20;return t}function li(e,r){var t=Nn(e);if(t.type!=2211)throw new Error("Invalid Future Record "+t.type);var a=e._R(4);return a!==0}function ci(e,r){e._R(2);return e._R(4)}function f
return xs.to_workbook(e,r)}}var As=function(){function e(e,r,t){if(!e)return;Tr(e,e.l||0);var a=t.Enum||k;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||Ir)(e,s,t);e.l=l;if(r(c,i.n,n))return}}function r(e,r){switch(r.type){case"base64":return t(b(h.decode(e)),r);case"binary":return t(b(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(o!=null&&a.dense==null)a.dense=o;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=k;else if(r[2]==26)a.Enum=w;else if(r[2]==14){a.Enum=w;a.qpro=true;r.l=0}else throw new Error("Unrecognized LOTUS BOF "+r[2]);e(r,function(e,t,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.substr(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||E._table[14];if(a.cellDates){e[1].t="d";e[1].v=N(e[1].v)}}if(a.dense){if(!n[e[0].r])n[e[0].r]=[];n[e[0].r][e[0].c]=e[1]}else n[$r(e[0])]=e[1];break;}else switch(o){case 22:e[1].v=e[1].v.substr(1);case 23:;case 24:;case 25:;case 37:;case 39:;case 40:if(e[3]>s){n["!ref"]=qr(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[$r(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"]=qr(f);l[i]=n;return{SheetNames:c,Sheets:l}}function a(e,r){var t={s:{c:0,r:0},e:{c:0,r:0}};t.s.c=e._R(2);t.s.r=e._R(2);t.e.c=e._R(2);t.e.r=e._R(2);if(t.s.c==65535)t.s.c=t.e.c=t.s.r=t.e.r=0;return t}function n(e,r,t){var a=[{c:0,r:0},{t:"n",v:0},0];if(t.qpro&&t.vers!=20768){a[0].c=e._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");if(t.qpro)e.l=a;else{var s=e._R(2);e.l+=s}return i}function f(e,r){var t=[{c:0,r:0},{t:"n",v:0},0];t[0].r=e._R(2);t[3]=e[e.l++];t[0].c=e[e.l++];return t}function u(e,r){var t=f(e,r);t[1].t="s";t[1].v=e._R(r-4,"cstr");return t}function d(e,r){var t=f(e,r);t[1].v=e._R(2);var a=t[1].v>>1;if(t[1].v&1){switch(a&7){case 1:a=(a>>3)*500;break;case 2:a=(a>>3)/20;break;case 4:a=(a>>3)/2e3;break;case 6:a=(a>>3)/16;break;case 7:a=(a>>3)/64;break;default:throw"unknown NUMBER_18 encoding "+(a&7);}}t[1].v=a;return t}function v(e,r){var t=f(e,r);var a=e._R(4);var n=e._R(4);var i=e._R(2);if(i==65535){t[1].v=0;return t}var s=i&32768;i=(i&32767)-16446;t[1].v=(i>0?n<<i:n>>>-i)+(i>-32?a<<i+32:a>>>-(i+32));return t}function p(e,r){var t=v(e,14);e.l+=r-14;return t}function m(e,r){var t=f(e,r);var a=e._R(4);t[1].v=a>>6;return t}function g(e,r){var t=f(e,r);var a=e._R(8,"f");t[1].v=a;return t}function S(e,r){var t=g(e,14);e.l+=r-10;return t}var k={0:{n:"BOF",f:vn},1:{n:"EOF"},2:{n:"CALCMODE"},3:{n:"CALCORDER"},4:{n:"SPLIT"},5:{n:"SYNC"},6:{n:"RANGE",f:a},7:{n:"WINDOW1"},8:{n:"COLW1"},9:{n:"WINTWO"},10:{n:"COLW2"},11:{n:"NAME"},12:{n:"BLANK"},13:{n:"INTEGER",f:s},14:{n:"NUMBER",f:l},15:{n:"LABEL",f:i},16:{n:"FORMULA",f:c},24:{n:"TABLE"},25:{n:"ORANGE"},26:{n:"PRANGE"},27:{n:"SRANGE"},28:{n:"FRANGE"},29:{n:"KRANGE1"},32:{n:"HRANGE"},35:{n:"KRANGE2"},36:{n:"PROTEC"},37:{n:"FOOTER"},38:{n:"HEADER"},39:{n:"SETUP"},40:{n:"MARGINS"},41:{n:"LABELFMT"},42:{n:"TITLES"},43:{n:"SHEETJS"},45:{n:"GRAPH"},46:{n:"NGRAPH"},47:{n:"CALCCOUNT"},48:{n:"UNFORMATTED"},49:{n:"CURSORW12"},50:{n:"WINDOW"},51:{n:"STRING",f:i},55:{n:"PASSWORD"},56:{n:"LOCKED"},60:{n:"QUERY"},61:{n:"QUERYNAME"},62:{n:"PRINT"},63:{n:"PRINTNAME"},64:{n:"GRAPH2"},65:{n:"GRAPHNAME"},66:{n:"ZOOM"},67:{n:"SYMSPLIT"},68:{n:"NSROWS"},69:{n:"NSCOLS"},70:{n:"RULER"},71:{n:"NNAME"},72:{n:"ACOMM"},73:{n:
function Tc(e,r,t){r.themeElements.clrScheme=[];var a={};(e[0].match(ce)||[]).forEach(function(e){var n=ue(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].substring(3,n[0].length-1)}break;default:if(t&&t.WTF)throw new Error("Unrecognized "+n[0]+" in clrScheme");}})}function Ic(e,r,t){}function xc(e,r,t){}var Rc=/<a:clrScheme([^>]*)>[\s\S]*<\/a:clrScheme>/;var Ac=/<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,Tc],["fontScheme",Ac,Ic],["fmtScheme",Dc,xc]].forEach(function(n){if(!(a=e.match(n[1])))throw new Error(n[0]+" not found in themeElements");n[2](a,r,t)})}var Fc=/<a:themeElements([^>]*)>[\s\S]*<\/a:themeElements>/;function Oc(e,r){if(!e||e.length===0)return Oc(Pc());var t;var a={};if(!(t=e.match(Fc)))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=[se];t[t.length]='<a:theme xmlns:a="http://schemas.openxmlformats.org/drawingml/2006/main" name="Office Theme">';t[t.length]="<a:themeElements>";t[t.length]='<a:clrScheme name="Office">';t[t.length]='<a:dk1><a:sysClr val="windowText" lastClr="000000"/></a:dk1>';t[t.length]='<a:lt1><a:sysClr val="window" lastClr="FFFFFF"/></a:lt1>';t[t.length]='<a:dk2><a:srgbClr val="1F497D"/></a:dk2>';t[t.length]='<a:lt2><a:srgbClr val="EEECE1"/></a:lt2>';t[t.length]='<a:accent1><a:srgbClr val="4F81BD"/></a:accent1>';t[t.length]='<a:accent2><a:srgbClr val="C0504D"/></a:accent2>';t[t.length]='<a:accent3><a:srgbClr val="9BBB59"/></a:accent3>';t[t.length]='<a:accent4><a:srgbClr val="8064A2"/></a:accent4>';t[t.length]='<a:accent5><a:srgbClr val="4BACC6"/></a:accent5>';t[t.length]='<a:accent6><a:srgbClr val="F79646"/></a:accent6>';t[t.length]='<a:hlink><a:srgbClr val="0000FF"/></a:hlink>';t[t.length]='<a:folHlink><a:srgbClr val="800080"/></a:folHlink>';t[t.length]="</a:clrScheme>";t[t.length]='<a:fontScheme name="Office">';t[t.length]="<a:majorFont>";t[t.length]='<a:latin typeface="Cambria"/>';t[t.length]='<a:ea typeface=""/>';t[t.length]='<a:cs typeface=""/>';t[t.length]='<a:font script="Jpan" typeface=" Pゴシック"/>';t[t.length]='<a:font script="Hang" typeface="맑은 고딕"/>';t[t.length]='<a:font script="Hans" typeface="宋体"/>';t[t.length]='<a:font script="Hant" typeface="新細明體"/>';t[t.length]='<a:font script="Arab" typeface="Times New Roman"/>';t[t.length]='<a:font script="Hebr" typeface="Times New Roman"/>';t[t.length]='<a:font script="Thai" typeface="Tahoma"/>';t[t.length]='<a:font script="Ethi" typeface="Nyala"/>';t[t.length]='<a:font script="Beng" typeface="Vrinda"/>';t[t.length]='<a:font script="Gujr" typeface="Shruti"/>';t[t.length]='<a:font script="Khmr" typeface="MoolBoran"/>';t[t.length]='<a:font script="Knda" typeface="Tunga"/>';t[t.length]='<a:font script="Guru" typeface="Raavi"/>';t[t.length]='<a:font script="Cans" typeface="Euphemia"/>';t[t.length]='<a:font script="Cher" typeface="Plantagenet Cherokee"/>';t[t.length]='<a:font script="Yiii" typeface="Microsoft Yi Baiti"/>';t[t.length]='<a:font script="Tibt" typeface="Microsoft Himalaya"/>';t[t.length]='<a:font script="Thaa" typeface="MV Boli"/>';t[t.length]='<a:font script="Deva" typeface="Mangal"/>';t[t.length]='<a:font script="Telu" typeface="Gautami"/>';t[t.length]='<a:font script="Taml" typeface="Latha"/>';t[t.length]='<a:font script="Syrc" typeface="Estrangelo Edessa"/>';t[t.length]='<a:font script="Orya" typeface=
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=E[1][0];o=Or(E[1][1],i,n);s.push(yr(o));break;case"PtgRefN":f=E[1][0];o=t?Or(E[1][1],t,n):E[1][1];s.push(yr(o));break;case"PtgRef3d":f=E[1][0];u=E[1][1];o=Or(E[1][2],i,n);v=hu(a,u,n);var S=v;s.push(v+"!"+yr(o));break;case"PtgFunc":;case"PtgFuncVar":var k=E[1][0],w=E[1][1];if(!k)k=0;var B=k==0?[]:s.slice(-k);s.length-=k;if(w==="User")w=B.shift();s.push(w+"("+B.join(",")+")");break;case"PtgBool":s.push(E[1]?"TRUE":"FALSE");break;case"PtgInt":s.push(E[1]);break;case"PtgNum":s.push(String(E[1]));break;case"PtgStr":s.push('"'+E[1]+'"');break;case"PtgErr":s.push(E[1]);break;case"PtgAreaN":f=E[1][0];d=Pr(E[1][1],i,n);s.push(Nr(d,n));break;case"PtgArea":f=E[1][0];d=Pr(E[1][1],i,n);s.push(Nr(d,n));break;case"PtgArea3d":f=E[1][0];u=E[1][1];d=E[1][2];v=hu(a,u,n);s.push(v+"!"+Nr(d,n));break;case"PtgAttrSum":s.push("SUM("+s.pop()+")");break;case"PtgAttrSemi":break;case"PtgName":h=E[1][2];var C=(a.names||[])[h-1]||(a[0]||[])[h];var T=C?C.Name:"SH33TJSERR7"+String(h);if(T in Au)T=Au[T];s.push(T);break;case"PtgNameX":var I=E[1][1];h=E[1][2];var x;if(n.biff<=5){if(I<0)I=-I;if(a[I])x=a[I][h]}else{var R="";if(((a[I]||[])[0]||[])[0]==14849){}else if(((a[I]||[])[0]||[])[0]==1025){if(a[I][h]&&a[I][h].itab>0){R=a.SheetNames[a[I][h].itab-1]+"!"}}else R=a.SheetNames[h-1]+"!";if(a[I]&&a[I][h])R+=a[I][h].Name;else if(a[0]&&a[0][h])R+=a[0][h].Name;else R+="SH33TJSERRX";s.push(R);break}if(!x)x={Name:"SH33TJSERRY"};s.push(x.Name);break;case"PtgParen":var A="(",D=")";if(b>=0){p="";switch(e[0][b][1][0]){case 2:A=G(" ",e[0][b][1][1])+A;break;case 3:A=G("\r",e[0][b][1][1])+A;break;case 4:D=G(" ",e[0][b][1][1])+D;break;case 5:D=G("\r",e[0][b][1][1])+D;break;default:if(n.WTF)throw new Error("Unexpected PtgAttrSpaceType "+e[0][b][1][0]);}b=-1}s.push(A+s.pop()+D);break;case"PtgRefErr":s.push("#REF!");break;case"PtgRefErr3d":s.push("#REF!");break;case"PtgExp":o={c:E[1][1],r:E[1][0]};var _={c:t.c,r:t.r};if(a.sharedf[$r(o)]){var F=a.sharedf[$r(o)];s.push(du(F,i,_,a,n))}else{var O=false;for(l=0;l!=a.arrayf.length;++l){c=a.arrayf[l];if(o.c<c[0].s.c||o.c>c[0].e.c)continue;if(o.r<c[0].s.r||o.r>c[0].e.r)continue;s.push(du(c[1],i,_,a,n));O=true;break}if(!O)s.push(E[1])}break;case"PtgArray":s.push("{"+cu(E[1])+"}");break;case"PtgMemArea":break;case"PtgAttrSpace":;case"PtgAttrSpaceSemi":b=m;break;case"PtgTbl":break;case"PtgMemErr":break;case"PtgMissArg":s.push("");break;case"PtgAreaErr":s.push("#REF!");break;case"PtgAreaErr3d":s.push("#REF!");break;case"PtgMemFunc":break;case"PtgMemNoMem":throw new Error("Unrecognized Formula Token: "+String(E));case"PtgElfCol":;case"PtgElfColS":;case"PtgElfColSV":;case"PtgElfColV":;case"PtgElfLel":;case"PtgElfRadical":;case"PtgElfRadicalLel":;case"PtgElfRadicalS":;case"PtgElfRw":;case"PtgElfRwV":throw new Error("Unsupported ELFs");case"PtgAttrBaxcel":throw new Error("Unrecognized Formula Token: "+String(E));case"PtgSxName":throw new Error("Unrecognized Formula Token: "+String(E));case"PtgList":throw new Error("Unrecognized Formula Token: "+String(E));default:throw new Error("Unrecognized Formula Token: "+String(E));}var P=["PtgAttrSpace","PtgAttrSpaceSemi","PtgAttrGoto"];if(b>=0&&P.indexOf(e[0][m][0])==-1){E=e[0][b];var y=true;switch(E[1][0]){case 4:y=false;case 0:p=G(" ",E[1][1]);break;case 5:y=false;case 1:p=G("\r",E[1][1]);break;default:p="";if(n.WTF)throw new Error("Unexpected PtgAttrSpaceType "+E[1][0]);}s.push((y?p:"")+s.pop()+(y?"":p));b=-1}}if(s.length>1&&n.WTF)throw new Error("bad formula stack");return s[0]}function vu(e,r,t,a){var n=e.l+r,i=t.biff==2?1:2;var s,l=e._R(i);if(l==65535)return[[],Ir(e,r-2)];var c=lu(e,l,t);if(r!==l+i)s=su(e,r-l-i,c,t);return[c,s]}function bu(e,r,t){var a=e.l+r,n=t.biff==2?1:2;var i,s=e._R(n);if(s==65535)return[[],Ir(e,r-2)];var l=lu(e,s,t);if(r!==s+n)i=su(e,r-s-n,l,t);return[l,i]}function pu(e,r,t,a){var n=e.l+r;var i=lu(e,a,t);var s;if(n!==e.l)s=su(e,n-e.l,i,t);re
H=true;U.hidden=true}if(C.outlineLevel!=null){H=true;U.level=+C.outlineLevel}if(H)L[T-1]=U}p=b.substr(v).split(e);for(v=0;v!=p.length;++v){b=p[v].trim();if(b.length===0)continue;m=b.match(t);g=v;S=0;k=0;b="<c "+(b.substr(0,1)=="<"?">":"")+b;if(m!=null&&m.length===2){g=0;w=m[1];for(S=0;S!=w.length;++S){if((k=w.charCodeAt(S)-64)<1||k>26)break;g=26*g+k}--g;I=g}else++I;for(S=0;S!=b.length;++S)if(b.charCodeAt(S)===62)break;++S;C=ue(b.substr(0,S),true);if(!C.r)C.r=$r({r:T-1,c:I});w=b.substr(S);B={t:""};if((m=w.match(i))!=null&&m[1]!=="")B.v=be(m[1]);if(o.cellFormula){if((m=w.match(s))!=null&&m[1]!==""){B.f=be(Te(m[1])).replace(/_xlfn\./,"");if(m[0].indexOf('t="array"')>-1){B.F=(w.match(n)||[])[1];if(B.F.indexOf(":")>-1)O.push([et(B.F),B.F])}else if(m[0].indexOf('t="shared"')>-1){R=ue(m[0]);P[parseInt(R.si,10)]=[R,be(Te(m[1]))]}}else if(m=w.match(/<f[^>]*\/>/)){R=ue(m[0]);if(P[R.si])B.f=kf(P[R.si][1],P[R.si][0].ref,C.r)}var j=Yr(C.r);for(S=0;S<O.length;++S)if(j.r>=O[S][0].s.r&&j.r<=O[S][0].e.r)if(j.c>=O[S][0].s.c&&j.c<=O[S][0].e.c)B.F=O[S][1]}if(C.t==null&&B.v===undefined){if(B.f||B.F){B.v=0;B.t="n"}else if(!o.sheetStubs)continue;else B.t="z"}else B.t=C.t||"n";if(u.s.c>g)u.s.c=g;if(u.e.c<g)u.e.c=g;switch(B.t){case"n":if(B.v==""||B.v==null){if(!o.sheetStubs)continue;B.t="z"}else B.v=parseFloat(B.v);break;case"s":if(typeof B.v=="undefined"){if(!o.sheetStubs)continue;B.t="z"}else{x=Pu[parseInt(B.v,10)];B.v=x.t;B.r=x.r;if(o.cellHTML)B.h=x.h}break;case"str":B.t="s";B.v=B.v!=null?Te(B.v):"";if(o.cellHTML)B.h=ke(B.v);break;case"inlineStr":m=w.match(a);B.t="s";if(m!=null&&(x=ys(m[1])))B.v=x.t;else B.v="";break;case"b":B.v=Ce(B.v);break;case"d":if(o.cellDates)B.v=W(B.v,1);else{B.v=y(W(B.v,1));B.t="n"}break;case"e":if(!o||o.cellText!==false)B.w=B.v;B.v=Ot[B.v];break;}A=D=0;if(_&&C.s!==undefined){F=d.CellXf[C.s];if(F!=null){if(F.numFmtId!=null)A=F.numFmtId;if(o.cellStyles){if(F.fillId!=null)D=F.fillId}}}Wu(B,A,D,o,h,d);if(o.cellDates&&_&&B.t=="n"&&E.is_date(E._table[A])){B.t="d";B.v=N(B.v)}if(M){var K=Yr(C.r);if(!f[K.r])f[K.r]=[];f[K.r][K.c]=B}else f[C.r]=B}}if(L.length>0)f["!rows"]=L}}();function oh(e,r,t,a,n){var i=[],s=[],l=et(e["!ref"]),c,f,o="",u=[],h=0,d=0,v=e["!rows"];var b=Array.isArray(e);var p={r:o},m,g=-1;for(d=l.s.c;d<=l.e.c;++d)u[d]=Gr(d);for(h=l.s.r;h<=l.e.r;++h){s=[];o=Wr(h);for(d=l.s.c;d<=l.e.c;++d){f=u[d]+o;var E=b?(e[h]||[])[d]:e[f];if(E===undefined)continue;if((c=ch(E,f,e,r,t,a))!=null)s.push(c)}if(s.length>0||v&&v[h]){p={r:o};if(v&&v[h]){m=v[h];if(m.hidden)p.hidden=1;g=-1;if(m.hpx)g=Ml(m.hpx);else if(m.hpt)g=m.hpt;if(g>-1){p.ht=g;p.customHeight=1}if(m.level){p.outlineLevel=m.level}}i[i.length]=Ue("row",s.join(""),p)}}if(v)for(;h<v.length;++h){if(v&&v[h]){p={r:h+1};m=v[h];if(m.hidden)p.hidden=1;g=-1;if(m.hpx)g=Ml(m.hpx);else if(m.hpt)g=m.hpt;if(g>-1){p.ht=g;p.customHeight=1}if(m.level){p.outlineLevel=m.level}i[i.length]=Ue("row","",p)}}return i.join("")}var uh=Ue("worksheet",null,{xmlns:Ve.main[0],"xmlns:r":Ve.r});function hh(e,r,t,a){var n=[se,uh];var i=t.SheetNames[e],s=0,l="";var c=t.Sheets[i];if(c==null)c={};var f=c["!ref"];if(f==null)f="A1";if(!a)a={};c["!comments"]=[];c["!drawing"]=[];var o=t.SheetNames[e];try{if(t.Workbook)o=t.Workbook.Sheets[e].CodeName||o}catch(u){}n[n.length]=Ue("sheetPr",null,{codeName:ge(o)});n[n.length]=Ue("dimension",null,{ref:f});n[n.length]=lh(c,r,e,t);if(r.sheetFormat)n[n.length]=Ue("sheetFormatPr",null,{defaultRowHeight:r.sheetFormat.defaultRowHeight||"16",baseColWidth:r.sheetFormat.baseColWidth||"10",outlineLevelRow:r.sheetFormat.outlineLevelRow||"7"});if(c["!cols"]!=null&&c["!cols"].length>0)n[n.length]=nh(c,c["!cols"]);n[s=n.length]="<sheetData/>";c["!links"]=[];if(c["!ref"]!=null){l=oh(c,r,e,t,a);if(l.length>0)n[n.length]=l}if(n.length>s+1){n[n.length]="</sheetData>";n[s]=n[s].replace("/>",">")}if(c["!protect"]!=null)n[n.length]=qu(c["!protect"]);if(c["!autofilter"]!=null)n[n.length]=sh(c["!autofilter"]);if(c["!merges"]!=null&&c["!merges"].length>0)n[n.length]=Ju(c["!merges"]);var h=-1,d,v=-1;if(c["!links"].length>0){n[n.length]="<hyperlinks>";c["!links"].forEach(function(e){if(!e
n=W(a);break;case"i8":;case"string":;case"fixed":;case"uuid":;case"bin.base64":break;default:throw new Error("bad custprop:"+t[0]);}e[be(r[3])]=n}function gv(e,r,t){if(e.t==="z")return;if(!t||t.cellText!==false)try{if(e.t==="e"){e.w=e.w||Ft[e.v]}else if(r==="General"){if(e.t==="n"){if((e.v|0)===e.v)e.w=E._general_int(e.v);else e.w=E._general_num(e.v)}else e.w=E._general(e.v)}else e.w=pv(r||"General",e.v)}catch(a){if(t.WTF)throw a}try{var n=k[r]||r||"General";if(t.cellNF)e.z=n;if(t.cellDates&&e.t=="n"&&E.is_date(n)){var i=E.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 Ev(e,r,t){if(t.cellStyles){if(r.Interior){var a=r.Interior;if(a.Pattern)a.patternType=Ul[a.Pattern]||a.Pattern}}e[r.ID]=r}function Sv(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=Ce(e);break;case"String":a.t="s";a.r=we(be(e));a.v=e.indexOf("<")>-1?be(r):a.r;break;case"DateTime":if(e.slice(-1)!="Z")e+="Z";a.v=(W(e)-new Date(Date.UTC(1899,11,30)))/(24*60*60*1e3);if(a.v!==a.v)a.v=be(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=Ot[e];if(f.cellText!==false)a.w=e;break;default:a.t="s";a.v=we(r||e);break;}gv(a,o,f);if(f.cellFormula!==false){if(a.Formula){var b=be(a.Formula);if(b.charCodeAt(0)==61)b=b.substr(1);a.f=mf(b,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([et(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 kv(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 wv(e){if(d&&Buffer.isBuffer(e))return e.toString("utf8");if(typeof e==="string")return e;throw new Error("Bad input format: expected Buffer or string")}var Bv=/<(\/?)([^\s?>!\/:]*:|)([^\s?>]*[^\s?>\/])[^>]*>/gm;function Cv(e,r){var t=r||{};S(E);var a=c(wv(e));if(t.type=="binary"||t.type=="base64"){if(typeof cptable!=="undefined")a=cptable.utils.decode(65001,i(a));else a=Te(a)}var n=a.slice(0,1024).toLowerCase(),s=false;if(n.indexOf("<?xml")==-1)["html","table","head","meta","script","style","div"].forEach(function(e){if(n.indexOf("<"+e)>=0)s=true});if(s)return cb.to_workbook(a,t);var l;var f=[],u;if(o!=null&&t.dense==null)t.dense=o;var h={},d=[],v=t.dense?[]:{},b="";var p={},m={},g={};var w=vv('<Data ss:Type="String">'),B=0;var C=0,T=0;var I={s:{r:2e6,c:2e6},e:{r:0,c:0}};var x={},R={};var A="",D=0;var _=[];var F={},O={},P=0,y={};var N=[],M={};var L=[],U,W=false;var H=[];var V=[],G={},z=0,j=0;var K={Sheets:[],WBProps:{date1904:false}},Y={};Bv.lastIndex=0;a=a.replace(/<!--([\s\S]*?)-->/gm,"");while(l=Bv.exec(a))switch(l[3]){case"Data":if(f[f.length-1][1])break;if(l[1]==="/")Sv(a.slice(B,l.index),A,w,f[f.length-1][0]=="Comment"?M:m,{c:C,r:T},x,L[C],g,H,t);else{A="";w=vv(l[0]);B=l.index+l[0].length}break;case"Cell":if(l[1]==="/"){if(N.length>0)m.c=N;if((!t.sheetRows||t.sheetRows>T)&&m.v!==undefined){if(t.dense){if(!v[T])v[T]=[];v[T][C]=m}else v[Gr(C)+Wr(T)]=m}if(m.HRef){m.l={Target:m.HRef};if(m.HRefScreenTip)m.l.Tooltip=m.HRefScreenTip;delete m.HRef;delete m.HRefScreenTip}if(m.MergeAcross||m.MergeDown){z=C+(parseInt(m.MergeAcross,10)|0);j=T+(parseInt(m.MergeDown,10)|0);_.push({s:{c:C,r:T},e:{c:z,r:j}})}if(!t.sheetStubs){if(m.MergeAcross)C=z+1;else++C}else if(m.MergeAcross||m.MergeDown){for(var $=C;$<=z;++$){for(var Q=T;Q<=j;++Q){if($>C||Q>T){if(t.dense){if(!v[Q])v[Q]=[];v[Q][$]={t:"z"}}else v[Gr($)+Wr(Q)]={t:"z"}}}}C=z+1}else++C}else{m=bv(l[0]);if(m.Index)C=+m.Index-1;if(C<I.s.c)I.s.c=C;if(C>I.e.c)I.e.c=C;if(l[0].slice(-2)==="/>")+
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":T=te;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":R=te;break;case"Theme":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(!h)A.WBProps.CodeName=te||"ThisWorkbook";else D.CodeName=te||D.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"Window2":;case"HideObj":;case"GridSet":;case"Guts":;case"UserBView":;case"UserSViewBegin":;case"UserSViewEnd":;case"Pane":break;default:switch(ee.n){case"Dat":;case"Begin":;case"End":;case"StartBlock":;case"EndBlock":;case"Frame":;case"Area":;case"Axis":;case"AxisLine":;case"Tick":break;case"AxesUsed":;case"CrtLayout12":;case"CrtLayout12A":;case"CrtLink":;case"CrtLine":;case"CrtMlFrt":;case"CrtMlFrtContinue":break;case"LineFormat":;case"AreaFormat":;case"Chart":;case"Chart3d":;case"Chart3DBarShape":;case"ChartFormat":;case"ChartFrtInfo":break;case"PlotArea":;case"PlotGrowth":break;case"SeriesList":;case"SerParent":;case"SerAuxTrend":break;case"DataFormat":;case"SerToCrt":;case"FontX":break;case"CatSerRange":;case"AxcExt":;case"SerFmt":break;case"ShtProps":break;case"DefaultText":;case"Text":;case"CatLab":break;case"DataLabExtContents":break;case"Legend":;case"LegendException":break;case"Pie":;case"Scatter":break;case"PieFormat":;case"MarkerFormat":break;case"StartObject":;case"EndObject":break;case"AlRuns":;case"ObjectLink":break;case"SIIndex":break;case"AttachedLabel":;case"YMult":break;case"Line":;case"Bar":break;case"Surf":break;case"AxisParent":break;case"Pos":break;case"ValueRange":break;case"SXViewEx9":break;case"SXViewLink":break;case"PivotChartBits":break;case"SBaseRef":break;case"TextPropsStream":break;case"LnExt":break;case"MkrExt":break;case"CrtCoopt":break;case"Qsi":;case"Qsif":;case"Qsir":;case"QsiSXTag":break;case"TxtQry":break;case"FilterMode":break;case"AutoFilter":;case"AutoFilterInfo":break;case"AutoFilter12":break;case"DropDownObjIds":break;case"Sort":break;case"SortData":break;case"ShapePropsStream":break;case"MsoDrawing":;case"MsoDrawingGroup":;case"MsoDrawingSelection":break;case"WebPub":;case"AutoWebPub":break;case"HeaderFooter":;case"HFPicture":;case"PLV":;case"HorizontalPageBreaks":;case"VerticalPageBreaks":break;case"Backup":;case"CompressPictures":;case"Compat12":break;case"Continue":;case"ContinueFrt12":break;case"FrtFontList":;case"FrtWrapper":break;default:switch(ee.n){case"TabIdConf":;case"Radar":;case"RadarArea":;case"DropBar":;case"Intl":;case"CoordList":;case"SerAuxErrBar":break;case"BIFF2FONTCLR":;case"BIFF2FMTCNT":;case"BIFF2FON
},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:hn},353:{n:"DSF",f:fn},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:Pi},431:{n:"Prot4Rev",f:hn},432:{n:"CondFmt"},433:{n:"CF"},434:{n:"DVal"},437:{n:"DConBin"},438:{n:"TxO",f:Qi},439:{n:"RefreshAll",f:hn},440:{n:"HLink",f:Ji},441:{n:"Lel"},442:{n:"CodeName",f:wn},443:{n:"SXFDBType"},444:{n:"Prot4RevPass",f:vn},445:{n:"ObNoMacros"},446:{n:"Dv"},448:{n:"Excel9File",f:fn},449:{n:"RecalcId",f:ci,r:2},450:{n:"EntExU2",f:fn},512:{n:"Dimensions",f:gi},513:{n:"Blank",f:os},515:{n:"Number",f:_i},516:{n:"Label",f:vi},517:{n:"BoolErr",f:Ai},518:{n:"Formula",f:Eu},519:{n:"String",f:hs},520:{n:"Row",f:si},523:{n:"Index"},545:{n:"Array",f:Vi},549:{n:"DefaultRowHeight",f:fi},566:{n:"Table"},574:{n:"Window2"},638:{n:"RK",f:Si},659:{n:"Style"},1030:{n:"Formula",f:Eu},1048:{n:"BigName"},1054:{n:"Format",f:pi},1084:{n:"ContinueBigName"},1212:{n:"ShrFmla",f:Hi},2048:{n:"HLinkTooltip",f:qi},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:Qn},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},2148:{n:"SXAddl"},2149:{n:"CrErr"},2150:{n:"HFPicture"},2151:{n:"FeatHdr",f:fn},2152:{n:"Feat"},2154:{n:"DataLabExt"},2155:{n:"DataLabExtContents"},2156:{n:"CellWatch"},2161:{n:"FeatHdr11"},2162:{n:"Feature11"},2164:{n:"DropDownObjIds"},2165:{n:"ContinueFrt11"},2166:{n:"DConn"},2167:{n:"List12"},2168:{n:"Feature12"},2169:{n:"CondFmt12"},2170:{n:"CF12"},2171:{n:"CFEx"},2172:{n:"XFCRC",f:is,r:12},2173:{n:"XFExt",f:Hc,r:12},2174:{n:"AutoFilter12"},2175:{n:"ContinueFrt12"},2180:{n:"MDTInfo"},2181:{n:"MDXStr"},2182:{n:"MDXTuple"},2183:{n:"MDXSet"},2184:{n:"MDXProp"},2185:{n:"MDXKPI"},2186:{n:"MDB"},2187:{n:"PLV"},2188:{n:"Compat12",f:hn,r:12},2189:{n:"DXF"},2190:{n:"TableStyles",r:12},2191:{n:"TableStyle"},2192:{n:"TableStyleElement"},2194:{n:"StyleExt"},2195:{n:"NamePublish"},2196:{n:"NameCmt",f:Wi,r:12},2197:{n:"SortData"},2198:{n:"Theme",f:yc,r:12},2199:{n:"GUIDTypeLib"},2200:{n:"FnGrp12"},2201:{n:"NameFnGrp12"},2202:{n:"MTRSettings",f:Xi,r:12},2203:{n:"CompressPictures",f:fn},2204:{n:"HeaderFooter"},2205:{n:"CrtLayout12"},2206:{n:"CrtMlFrt"},2207:{n:"CrtMlFrtContinue"},2211:{n:"ForceFullCalculation",f:li},2212:{n:"ShapePropsStream"},2213:{n:"TextPropsStream"},2214:{n:"RichTextStream"},2215:{n:"CrtLayout12A"},4097:{n:"Units"},4098:{n:"Chart"},4099:{n:"Series"},4102:{n:"DataFormat"},4103:{n:"LineFormat"},4105:{n:"MarkerFormat"},4106:{n:"AreaFormat"},4107:{n:"PieFormat"},4108:{n:"AttachedLabel"},4109:{n:"SeriesText"},4116:{n:"ChartFormat"},4117:{n:"Legend"},4118:{n:"SeriesList"},4119:{n:"Bar"},4120:{n:"Line"},4121:{n:"Pie"},4122:{n:"Area"},4123:{n:"Scatter"},4124:{n:"CrtLine"},4125:{n:"Axis"},4126:{n:"Tick"},4127:{n:"ValueRange"},4128:{n:"CatSerRange"},4129:{n:"AxisLine"},4130:{n:"CrtLink"},4132:{n:"DefaultText"},4133:{n:"Text"},4134:{n:"FontX",f:vn},4135:{n:"ObjectLink"},4146:{n:"Frame"},4147:{n:"Begin"},4148:{n:"End"},4149:{n:"PlotArea"},4154:{n:"Chart3d"},4156:{n:"PicF"},4157:{n:"DropBar"},4158:{n:"Radar"},4159:{n:"Surf"},4160:{n:"RadarArea"},4161:{n:"AxisParent"},4163:{n:"LegendException"},4164:{n:"ShtProps",f:cs},4165:{n:"SerToCrt"},4166:{n:"AxesUsed"},4168:{n:"SBaseRef"},4170:{n:"SerParent"},
}function Fb(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,_b(e["!id"][r.id].Type)]})}catch(t){return null}return!e||e.length===0?null:e}function Ob(e,r,t,a,n,i,s,l,c,f,o,u){try{i[a]=va(re(e,t,true),r);var h=ee(e,r);switch(l){case"sheet":s[a]=$d(h,r,n,c,i[a],f,o,u);break;case"chart":var d=Qd(h,r,n,c,i[a],f,o,u);s[a]=d;if(!d||!d["!chart"])break;var v=ie(d["!chart"].Target,r);var b=da(v);var p=Qc(re(e,v,true),va(re(e,b,true),v));var m=ie(p,v);var g=da(m);d=od(re(e,m,true),m,c,va(re(e,g,true),m),f,d);break;case"macro":s[a]=Jd(h,r,n,c,i[a],f,o,u);break;case"dialog":s[a]=Zd(h,r,n,c,i[a],f,o,u);break;}}catch(E){if(c.WTF)throw E}}var Pb=function Fp(e){return e.slice(-1)!="/"};function yb(e){return e.charAt(0)=="/"?e.slice(1):e}function Nb(e,r){S(E);r=r||{};Ab(r);a();if(Z(e,"META-INF/manifest.xml"))return hb(e,r);if(Z(e,"objectdata.xml"))return hb(e,r);if(Z(e,"Index/Document.iwa"))throw new Error("Unsupported NUMBERS file");var t=R(e.files).filter(Pb).sort();var i=ca(re(e,"[Content_Types].xml"),r);var s=false;var l,c;if(i.workbooks.length===0){c="xl/workbook.xml";if(ee(e,c,true))i.workbooks.push(c)}if(i.workbooks.length===0){c="xl/workbook.bin";if(!ee(e,c,true))throw new Error("Could not find workbook");i.workbooks.push(c);s=true}if(i.workbooks[0].slice(-3)=="bin")s=true;if(s)n(1200);var f={};var o={};if(!r.bookSheets&&!r.bookProps){Pu=[];if(i.sst)Pu=rv(ee(e,yb(i.sst)),i.sst,r);if(r.cellStyles&&i.themes.length)f=ev(re(e,i.themes[0].replace(/^\//,""),true)||"",i.themes[0],r);if(i.style)o=qd(ee(e,yb(i.style)),i.style,f,r)}var u=i.links.map(function(t){return nv(ee(e,yb(t)),t,r)});var h=Yd(ee(e,yb(i.workbooks[0])),i.workbooks[0],r);var d={},v="";if(i.coreprops.length){v=ee(e,yb(i.coreprops[0]),true);if(v)d=xa(v);if(i.extprops.length!==0){v=ee(e,yb(i.extprops[0]),true);if(v)Fa(v,d,r)}}var b={};if(!r.bookSheets||r.bookProps){if(i.custprops.length!==0){v=re(e,yb(i.custprops[0]),true);if(v)b=Na(v,r)}}var p={};if(r.bookSheets||r.bookProps){if(h.Sheets)l=h.Sheets.map(function F(e){return e.name});else if(d.Worksheets&&d.SheetNames.length>0)l=d.SheetNames;if(r.bookProps){p.Props=d;p.Custprops=b}if(r.bookSheets&&typeof l!=="undefined")p.SheetNames=l;if(r.bookSheets?p.SheetNames:r.bookProps)return p}l={};var m={};if(r.bookDeps&&i.calcchain)m=av(ee(e,yb(i.calcchain)),i.calcchain,r);var g=0;var k={};var w,B;{var C=h.Sheets;d.Worksheets=C.length;d.SheetNames=[];for(var T=0;T!=C.length;++T){d.SheetNames[T]=C[T].name}}var I=s?"bin":"xml";var x="xl/_rels/workbook."+I+".rels";var A=va(re(e,x,true),x);if(A)A=Fb(A,h.Sheets);var D=ee(e,"xl/worksheets/sheet.xml",true)?1:0;for(g=0;g!=d.Worksheets;++g){var _="sheet";if(A&&A[g]){w="xl/"+A[g][1].replace(/[\/]?xl\//,"");_=A[g][2]}else{w="xl/worksheets/sheet"+(g+1-D)+"."+I;w=w.replace(/sheet0\./,"sheet.")}B=w.replace(/^(.*)(\/)([^\/]*)$/,"$1/_rels/$3.rels");Ob(e,w,B,d.SheetNames[g],g,k,l,_,r,h,f,o)}if(i.comments)qc(e,i.comments,l,k,r);p={Directory:i,Workbook:h,Props:d,Custprops:b,Deps:m,Sheets:l,SheetNames:d.SheetNames,Strings:Pu,Styles:o,Themes:f,SSF:E.get_table()};if(r.bookFiles){p.keys=t;p.files=e.files}if(r.bookVBA){if(i.vba.length>0)p.vbaraw=ee(e,yb(i.vba[0]),true);else if(i.defaults&&i.defaults.bin==="application/vnd.ms-office.vbaProject")p.vbaraw=ee(e,"xl/vbaProject.bin",true)}return p}function Mb(e,r){var t=r||{};var a="/!DataSpaces/Version";var n=I.find(e,a);if(!n||!n.content)throw new Error("ECMA-376 Encrypted file missing "+a);var i=$s(n.content);a="/!DataSpaces/DataSpaceMap";n=I.find(e,a);if(!n||!n.content)throw new Error("ECMA-376 Encrypted file missing "+a);var s=Js(n.content);if(s.length!==1||s[0].comps.length!==1||s[0].comps[0].t!==0||s[0].name!=="StrongEncryptionDataSpace"||s[0].comps[0].v!=="EncryptedPackage")throw new Error("ECMA-376 Encrypted file bad "+a);a="/!DataSpaces/DataSpaceInfo/StrongEncryptionDataSpace";n=I.find(e,a);if(!n||!n.content)throw new Error("ECMA-376 Encrypted file missing "+a);var l=Zs(n.content);if(l.length!=1||l[0]!="StrongEncryptionTransform")throw new Error("ECMA-376 Encrypted file bad "+a);a="/!DataSpa