r=s;returno}functionss(e){vart=r;r=1200;vara=e._R(2),n=e._R(1);vari=n&4,s=n&8;varf=1+(n&1);varo=0,c;varl={};if(s)o=e._R(2);if(i)c=e._R(4);varu=f==2?"dbcs-cont":"sbcs-cont";varh=a===0?"":e._R(a,u);if(s)e.l+=4*o;if(i)e.l+=c;l.t=h;if(!s){l.raw="<t>"+l.t+"</t>";l.r=l.t}r=t;returnl}functionfs(e){varr=e.t||"",t=1;vara=va(3+(t>1?2:0));a._W(2,r.length);a._W(1,(t>1?8:0)|1);if(t>1)a._W(2,t);varn=va(2*r.length);n._W(2*r.length,r,"utf16le");vari=[a,n];returnO(i)}functionos(e,r,t){vara;if(t){if(t.biff>=2&&t.biff<=5)returne._R(r,"cpstr");if(t.biff>=12)returne._R(r,"dbcs-cont")}varn=e._R(1);if(n===0){a=e._R(r,"sbcs-cont")}else{a=e._R(r,"dbcs-cont")}returna}functioncs(e,r,t){vara=e._R(t&&t.biff==2?1:2);if(a===0){e.l++;return""}returnos(e,a,t)}functionls(e,r,t){if(t.biff>5)returncs(e,r,t);vara=e._R(1);if(a===0){e.l++;return""}returne._R(a,t.biff<=4||!e.lens?"cpstr":"sbcs-cont")}functionus(e,r,t){if(!t)t=va(3+2*e.length);t._W(2,e.length);t._W(1,1);t._W(31,e,"utf16le");returnt}functionhs(e){varr=e._R(1);e.l++;vart=e._R(2);e.l+=2;return[r,t]}functionds(e){varr=e._R(4),t=e.l;vara=false;if(r>24){e.l+=r-24;if(e._R(16)==="795881f43b1d7f48af2c825dc4852763")a=true;e.l=t}varn=e._R((a?r-24:r)>>1,"utf16le").replace(N,"");if(a)e.l+=24;returnn}functionvs(e){varr=e._R(2);vart="";while(r-->0)t+="../";vara=e._R(0,"lpstr-ansi");e.l+=2;if(e._R(2)!=57005)thrownewError("Bad FileMoniker");varn=e._R(4);if(n===0)returnt+a.replace(/\\/g,"/");vari=e._R(4);if(e._R(2)!=3)thrownewError("Bad FileMoniker");vars=e._R(i>>1,"utf16le").replace(N,"");returnt+s}functionps(e,r){vart=e._R(16);r-=16;switch(t){case"e0c9ea79f9bace118c8200aa004ba90b":returnds(e,r);case"0303000000000000c000000000000046":returnvs(e,r);default:thrownewError("Unsupported Moniker "+t);}}functionms(e){varr=e._R(4);vart=r>0?e._R(r,"utf16le").replace(N,""):"";returnt}functionbs(e,r){if(!r)r=va(6+e.length*2);r._W(4,1+e.length);for(vart=0;t<e.length;++t)r._W(2,e.charCodeAt(t));r._W(2,0);returnr}functiongs(e,r){vart=e.l+r;vara=e._R(4);if(a!==2)thrownewError("Unrecognized streamVersion: "+a);varn=e._R(2);e.l+=2;vari,s,f,o,c="",l,u;if(n&16)i=ms(e,t-e.l);if(n&128)s=ms(e,t-e.l);if((n&257)===257)f=ms(e,t-e.l);if((n&257)===1)o=ps(e,t-e.l);if(n&8)c=ms(e,t-e.l);if(n&32)l=e._R(16);if(n&64)u=xi(e);e.l=t;varh=s||f||o||"";if(h&&c)h+="#"+c;if(!h)h="#"+c;if(n&2&&h.charAt(0)=="/"&&h.charAt(1)!="/")h="file://"+h;vard={Target:h};if(l)d.guid=l;if(u)d.time=u;if(i)d.Tooltip=i;returnd}functionws(e){varr=va(512),t=0;vara=e.Target;if(a.slice(0,7)=="file://")a=a.slice(7);varn=a.indexOf("#");vari=n>-1?31:23;switch(a.charAt(0)){case"#":i=28;break;case".":i&=~2;break;}r._W(4,2);r._W(4,i);vars=[8,6815827,6619237,4849780,83];for(t=0;t<s.length;++t)r._W(4,s[t]);if(i==28){a=a.slice(1);bs(a,r)}elseif(i&2){s="e0 c9 ea 79 f9 ba ce 11 8c 82 00 aa 00 4b a9 0b".split(" ");for(t=0;t<s.length;++t)r._W(1,parseInt(s[t],16));varf=n>-1?a.slice(0,n):a;r._W(4,2*(f.length+1));for(t=0;t<f.length;++t)r._W(2,f.charCodeAt(t));r._W(2,0);if(i&8)bs(n>-1?a.slice(n+1):"",r)}else{s="03 03 00 00 00 00 00 00 c0 00 00 00 00 00 00 46".split(" ");for(t=0;t<s.length;++t)r._W(1,parseInt(s[t],16));varo=0;while(a.slice(o*3,o*3+3)=="../"||a.slice(o*3,o*3+3)=="..\\")++o;r._W(2,o);r._W(4,a.length-3*o+1);for(t=0;t<a.length-3*o;++t)r._W(1,a.charCodeAt(t+3*o)&255);r._W(1,0);r._W(2,65535);r._W(2,57005);for(t=0;t<6;++t)r._W(4,0)}returnr.slice(0,r.l)}functionks(e){varr=e._R(1),t=e._R(1),a=e._R(1),n=e._R(1);return[r,t,a,n]}functionTs(e,r){vart=ks(e,r);t[3]=0;returnt}functionEs(e){varr=e._R(2);vart=e._R(2);vara=e._R(2);return{r:r,c:t,ixfe:a}}functionys(e,r,t,a){if(!a)a=va(6);a._W(2,e);a._W(2,r);a._W(2,t||0);returna}functionSs(e){varr=e._R(2);vart=e._R(2);e.l+=8;return{type:r,flags:t}}function_s(e,r,t){returnr===0?"":ls(e,r,t)}functionAs(e,r,t){vara=t.biff>8?4:2;varn=e._R(a),i=e._R(a,"i"),s=e._R(a,"i");return[n,i,s]}functionxs(e){varr=e._R(2);vart=cn(e);return[r,t]}functionCs(e,r,t){e.l+=4;r-=4;vara=e.l+r;varn=is(e,r,t);vari=e._R(2);a-=e.l;if(i!==a)thrownewError("Malfo
}return{to_workbook:c,to_sheet:f,from_sheet:d}}();varSo=function(){functione(e,t){switch(t.type){case"base64":returnr(k(e),t);case"binary":returnr(e,t);case"buffer":returnr(T&&Buffer.isBuffer(e)?e.toString("binary"):x(e),t);case"array":returnr(wr(e),t);}thrownewError("Unrecognized type "+t.type)}functionr(e,r){vart=e.split("\n"),a=-1,n=-1,i=0,s=[];for(;i!==t.length;++i){if(t[i].trim()==="BOT"){s[++a]=[];n=0;continue}if(a<0)continue;varf=t[i].trim().split(",");varo=f[0],c=f[1];++i;varl=t[i]||"";while((l.match(/["]/g)||[]).length&1&&i<t.length-1)l+="\n"+t[++i];l=l.trim();switch(+o){case-1:if(l==="BOT"){s[++a]=[];n=0;continue}elseif(l!=="EOD")thrownewError("Unrecognized DIF special command "+l);break;case0:if(l==="TRUE")s[a][n]=true;elseif(l==="FALSE")s[a][n]=false;elseif(!isNaN(Er(c)))s[a][n]=Er(c);elseif(!isNaN(Sr(c).getDate()))s[a][n]=gr(c);elses[a][n]=c;++n;break;case1:l=l.slice(1,l.length-1);l=l.replace(/""/g,'"');if(b&&l&&l.match(/^=".*"$/))l=l.slice(2,-1);s[a][n++]=l!==""?l:null;break;}if(l==="EOD")break}if(r&&r.sheetRows)s=s.slice(0,r.sheetRows);returns}functiont(r,t){returnWa(e(r,t),t)}functiona(e,r){returnUa(t(e,r),r)}varn=function(){vare=functiont(e,r,a,n,i){e.push(r);e.push(a+","+n);e.push('"'+i.replace(/"/g,'""')+'"')};varr=functiona(e,r,t,n){e.push(r+","+t);e.push(r==1?'"'+n.replace(/"/g,'""')+'"':n)};returnfunctionn(t){vara=[];varn=Pa(t["!ref"]),i;vars=Array.isArray(t);e(a,"TABLE",0,1,"sheetjs");e(a,"VECTORS",0,n.e.r-n.s.r+1,"");e(a,"TUPLES",0,n.e.c-n.s.c+1,"");e(a,"DATA",0,0,"");for(varf=n.s.r;f<=n.e.r;++f){r(a,-1,0,"BOT");for(varo=n.s.c;o<=n.e.c;++o){varc=Na({r:f,c:o});i=s?(t[f]||[])[o]:t[c];if(!i){r(a,1,0,"");continue}switch(i.t){case"n":varl=b?i.w:i.v;if(!l&&i.v!=null)l=i.v;if(l==null){if(b&&i.f&&!i.F)r(a,1,0,"="+i.f);elser(a,1,0,"")}elser(a,0,l,"V");break;case"b":r(a,0,i.v?1:0,i.v?"TRUE":"FALSE");break;case"s":r(a,1,0,!b||isNaN(i.v)?i.v:'="'+i.v+'"');break;case"d":if(!i.w)i.w=Be(i.z||X[14],cr(gr(i.v)));if(b)r(a,0,i.w,"V");elser(a,1,0,i.w);break;default:r(a,1,0,"");}}}r(a,-1,0,"EOD");varu="\r\n";varh=a.join(u);returnh}}();return{to_workbook:a,to_sheet:t,from_sheet:n}}();var_o=function(){functione(e){returne.replace(/\\b/g,"\\").replace(/\\c/g,":").replace(/\\n/g,"\n")}functionr(e){returne.replace(/\\/g,"\\b").replace(/:/g,"\\c").replace(/\n/g,"\\n")}functiont(r,t){vara=r.split("\n"),n=-1,i=-1,s=0,f=[];for(;s!==a.length;++s){varo=a[s].trim().split(":");if(o[0]!=="cell")continue;varc=Ia(o[1]);if(f.length<=c.r)for(n=f.length;n<=c.r;++n)if(!f[n])f[n]=[];n=c.r;i=c.c;switch(o[2]){case"t":f[n][i]=e(o[3]);break;case"v":f[n][i]=+o[3];break;case"vtf":varl=o[o.length-1];case"vtc":switch(o[3]){case"nl":f[n][i]=+o[4]?true:false;break;default:f[n][i]=+o[4];break;}if(o[2]=="vtf")f[n][i]=[f[n][i],l];}}if(t&&t.sheetRows)f=f.slice(0,t.sheetRows);returnf}functiona(e,r){returnWa(t(e,r),r)}functionn(e,r){returnUa(a(e,r),r)}vari=["socialcalc:version:1.5","MIME-Version: 1.0","Content-Type: multipart/mixed; boundary=SocialCalcSpreadsheetControlSave"].join("\n");vars=["--SocialCalcSpreadsheetControlSave","Content-type: text/plain; charset=UTF-8"].join("\n")+"\n";varf=["# SocialCalc Spreadsheet Control Save","part:sheet"].join("\n");varo="--SocialCalcSpreadsheetControlSave--";functionc(e){if(!e||!e["!ref"])return"";vart=[],a=[],n,i="";vars=Fa(e["!ref"]);varf=Array.isArray(e);for(varo=s.s.r;o<=s.e.r;++o){for(varc=s.s.c;c<=s.e.c;++c){i=Na({r:o,c:c});n=f?(e[o]||[])[c]:e[i];if(!n||n.v==null||n.t==="z")continue;a=["cell",i,"t"];switch(n.t){case"s":;case"str":a.push(r(n.v));break;case"n":if(!n.f){a[2]="v";a[3]=n.v}else{a[2]="vtf";a[3]="n";a[4]=n.v;a[5]=r(n.f)}break;case"b":a[2]="vt"+(n.f?"f":"c");a[3]="nl";a[4]=n.v?"1":"0";a[5]=r(n.f||(n.v?"TRUE":"FALSE"));break;case"d":varl=cr(gr(n.v));a[2]="vtc";a[3]="nd";a[4]=""+l;a[5]=n.w||Be(n.z||X[14],l);break;case"e":continue;}t.push(a.join(":"))}}t.push("sheet:c:"+(s.e.c-s.s.c+1)+":r:"+(s.e.r-s.s.r+1)+":tvf:1");t.push("valueformat:1:text-wiki");returnt.join("\n")}functionl(e){return[i,s,f,s,c(e),o].join("\n")}return{to_w
vart=e._R(e.length-e.l,"utf8");vara={};t.replace(Vr,functionn(e){vart=Xr(e);switch($r(t[0])){case"<?xml":break;case"<encryption":;case"</encryption>":break;case"<keyData":r.forEach(function(e){a[e]=t[e]});break;case"<dataIntegrity":a.encryptedHmacKey=t.encryptedHmacKey;a.encryptedHmacValue=t.encryptedHmacValue;break;case"<keyEncryptors>":;case"<keyEncryptors":a.encs=[];break;case"</keyEncryptors>":break;case"<keyEncryptor":a.uri=t.uri;break;case"</keyEncryptor>":break;case"<encryptedKey":a.encs.push(t);break;default:throwt[0];}});returna}functionfc(e,r){vart={};vara=t.EncryptionVersionInfo=Yo(e,4);r-=4;if(a.Minor!=2)thrownewError("unrecognized minor version code: "+a.Minor);if(a.Major>4||a.Major<2)thrownewError("unrecognized major version code: "+a.Major);t.Flags=e._R(4);r-=4;varn=e._R(4);r-=4;t.EncryptionHeader=rc(e,n);r-=n;t.EncryptionVerifier=tc(e,r);returnt}functionoc(e){varr={};vart=r.EncryptionVersionInfo=Yo(e,4);if(t.Major!=1||t.Minor!=1)throw"unrecognized version code "+t.Major+" : "+t.Minor;r.Salt=e._R(16);r.EncryptedVerifier=e._R(16);r.EncryptedVerifierHash=e._R(16);returnr}functioncc(e){varr=0,t;vara=$o(e);varn=a.length+1,i,s;varf,o,c;t=y(n);t[0]=a.length;for(i=1;i!=n;++i)t[i]=a[i-1];for(i=n-1;i>=0;--i){s=t[i];f=(r&16384)===0?0:1;o=r<<1&32767;c=f|o;r=c^s}returnr^52811}varlc=function(){vare=[187,255,255,186,255,255,185,128,0,190,15,0,191,15,0];varr=[57840,7439,52380,33984,4364,3600,61902,12606,6258,57657,54287,34041,10252,43370,20163];vart=[44796,19929,39858,10053,20106,40212,10761,31585,63170,64933,60267,50935,40399,11199,17763,35526,1453,2906,5812,11624,23248,885,1770,3540,7080,14160,28320,56640,55369,41139,20807,41614,21821,43642,17621,28485,56970,44341,19019,38038,14605,29210,60195,50791,40175,10751,21502,43004,24537,18387,36774,3949,7898,15796,31592,63184,47201,24803,49606,37805,14203,28406,56812,17824,35648,1697,3394,6788,13576,27152,43601,17539,35078,557,1114,2228,4456,30388,60776,51953,34243,7079,14158,28316,14128,28256,56512,43425,17251,34502,7597,13105,26210,52420,35241,883,1766,3532,4129,8258,16516,33032,4657,9314,18628];vara=function(e){return(e/2|e*128)&255};varn=function(e,r){returna(e^r)};vari=function(e){vara=r[e.length-1];varn=104;for(vari=e.length-1;i>=0;--i){vars=e[i];for(varf=0;f!=7;++f){if(s&64)a^=t[n];s*=2;--n}}returna};returnfunction(r){vart=$o(r);vara=i(t);vars=t.length;varf=y(16);for(varo=0;o!=16;++o)f[o]=0;varc,l,u;if((s&1)===1){c=a>>8;f[s]=n(e[0],c);--s;c=a&255;l=t[t.length-1];f[s]=n(l,c)}while(s>0){--s;c=a>>8;f[s]=n(t[s],c);--s;c=a&255;f[s]=n(t[s],c)}s=15;u=15-t.length;while(u>0){c=a>>8;f[s]=n(e[u],c);--s;--u;c=a&255;f[s]=n(t[s],c);--s;--u}returnf}}();varuc=function(e,r,t,a,n){if(!n)n=r;if(!a)a=lc(e);vari,s;for(i=0;i!=r.length;++i){s=r[i];s^=a[t];s=(s>>5|s<<3)&255;n[i]=s;++t}return[n,t,a]};varhc=function(e){varr=0,t=lc(e);returnfunction(e){vara=uc("",e,r,t);r=a[1];returna[0]}};functiondc(e,r,t,a){varn={key:es(e),verificationBytes:es(e)};if(t.password)n.verifier=cc(t.password);a.valid=n.verificationBytes===n.verifier;if(a.valid)a.insitu=hc(t.password);returnn}functionvc(e,r,t){vara=t||{};a.Info=e._R(2);e.l-=2;if(a.Info===1)a.Data=oc(e,r);elsea.Data=fc(e,r);returna}functionpc(e,r,t){vara={Type:t.biff>=8?e._R(2):0};if(a.Type)vc(e,r-2,a);elsedc(e,t.biff>=8?r:r-2,t,a);returna}varmc=function(){functione(e,t){switch(t.type){case"base64":returnr(k(e),t);case"binary":returnr(e,t);case"buffer":returnr(T&&Buffer.isBuffer(e)?e.toString("binary"):x(e),t);case"array":returnr(wr(e),t);}thrownewError("Unrecognized type "+t.type)}functionr(e,r){vart=r||{};vara=t.dense?[]:{};varn=e.match(/\\trowd[\s\S]*?\\row\b/g);if(!n.length)thrownewError("RTF missing table");vari={s:{c:0,r:0},e:{c:0,r:n.length-1}};n.forEach(function(e,r){if(Array.isArray(a))a[r]=[];vart=/\\[\w\-]+\b/g;varn=0;vars;varf=-1;varo=[];while(s=t.exec(e)){varc=e.slice(n,t.lastIndex-s[0].length);if(c.charCodeAt(0)==32)c=c.slice(1);if(c.length)o.push(c);switch(s[0]){case"\\cell":++f;if(o.length){varl={v:o.join(""),t:"s"};if(Array.isArray(a))a[r][f]=l;else
if(M.names.length>0)_.Names=M.names;t.Workbook=_;returnt}varrb={SI:"e0859ff2f94f6810ab9108002b27b3d9",DSI:"02d5cdd59c2e1b10939708002b2cf9ae",UDI:"05d5cdd59c2e1b10939708002b2cf9ae"};functiontb(e,r,t){vara=qe.find(e,"/!DocumentSummaryInformation");if(a&&a.size>0)try{varn=$i(a,Mn,rb.DSI);for(variinn)r[i]=n[i]}catch(s){if(t.WTF)throws}varf=qe.find(e,"/!SummaryInformation");if(f&&f.size>0)try{varo=$i(f,Un,rb.SI);for(varcino)if(r[c]==null)r[c]=o[c]}catch(s){if(t.WTF)throws}if(r.HeadingPairs&&r.TitlesOfParts){mi(r.HeadingPairs,r.TitlesOfParts,r,t);deleter.HeadingPairs;deleter.TitlesOfParts}}functionab(e,r){vart=[],a=[],n=[];vari=0,s;varf=nr(Mn,"n");varo=nr(Un,"n");if(e.Props){s=ar(e.Props);for(i=0;i<s.length;++i)(Object.prototype.hasOwnProperty.call(f,s[i])?t:Object.prototype.hasOwnProperty.call(o,s[i])?a:n).push([s[i],e.Props[s[i]]])}if(e.Custprops){s=ar(e.Custprops);for(i=0;i<s.length;++i)if(!Object.prototype.hasOwnProperty.call(e.Props||{},s[i]))(Object.prototype.hasOwnProperty.call(f,s[i])?t:Object.prototype.hasOwnProperty.call(o,s[i])?a:n).push([s[i],e.Custprops[s[i]]])}varc=[];for(i=0;i<n.length;++i){if(Gi.indexOf(n[i][0])>-1||pi.indexOf(n[i][0])>-1)continue;if(n[i][1]==null)continue;c.push(n[i])}if(a.length)qe.utils.cfb_add(r,"/SummaryInformation",Yi(a,rb.SI,o,Un));if(t.length||c.length)qe.utils.cfb_add(r,"/DocumentSummaryInformation",Yi(t,rb.DSI,f,Mn,c.length?c:null,rb.UDI))}functionnb(e,r){if(!r)r={};Ng(r);c();if(r.codepage)s(r.codepage);vart,a;if(e.FullPaths){if(qe.find(e,"/encryption"))thrownewError("File is password-protected");t=qe.find(e,"!CompObj");a=qe.find(e,"/Workbook")||qe.find(e,"/Book")}else{switch(r.type){case"base64":e=_(k(e));break;case"binary":e=_(e);break;case"buffer":break;case"array":if(!Array.isArray(e))e=Array.prototype.slice.call(e);break;}ha(e,0);a={content:e}}varn;vari;if(t)Km(t);if(r.bookProps&&!r.bookSheets)n={};else{varf=T?"buffer":"array";if(a&&a.content)n=eb(a.content,r);elseif((i=qe.find(e,"PerfectOffice_MAIN"))&&i.content)n=Co.to_workbook(i.content,(r.type=f,r));elseif((i=qe.find(e,"NativeContent_MAIN"))&&i.content)n=Co.to_workbook(i.content,(r.type=f,r));elseif((i=qe.find(e,"MN0"))&&i.content)thrownewError("Unsupported Works 4 for Mac file");elsethrownewError("Cannot find Workbook stream");if(r.bookVBA&&e.FullPaths&&qe.find(e,"/_VBA_PROJECT_CUR/VBA/dir"))n.vbaraw=wu(e)}varo={};if(e.FullPaths)tb(e,o,r);n.Props=n.Custprops=o;if(r.bookFiles)n.cfb=e;returnn}functionib(e,r){vart=r||{};vara=qe.utils.cfb_new({root:"R"});varn="/Workbook";switch(t.bookType||"xls"){case"xls":t.bookType="biff8";case"xla":if(!t.bookType)t.bookType="xla";case"biff8":n="/Workbook";t.biff=8;break;case"biff5":n="/Book";t.biff=5;break;default:thrownewError("invalid type "+t.bookType+" for XLS CFB");}qe.utils.cfb_add(a,n,Ab(e,t));if(t.biff==8&&(e.Props||e.Custprops))ab(e,a);if(t.biff==8&&e.vbaraw)ku(a,qe.read(e.vbaraw,{type:typeofe.vbaraw=="string"?"binary":"buffer"}));returna}varsb={0:{f:mv},1:{f:Sv},2:{f:Gv},3:{f:Nv},4:{f:Cv},5:{f:Wv},6:{f:Kv},7:{f:Lv},8:{f:tp},9:{f:rp},10:{f:Qv},11:{f:ep},12:{f:Av},13:{f:Xv},14:{f:Dv},15:{f:Ov},16:{f:zv},17:{f:qv},18:{f:Uv},19:{f:$a},20:{},21:{},22:{},23:{},24:{},25:{},26:{},27:{},28:{},29:{},30:{},31:{},32:{},33:{},34:{},35:{T:1},36:{T:-1},37:{T:1},38:{T:-1},39:{f:im},40:{},42:{},43:{f:Jc},44:{f:Yc},45:{f:el},46:{f:il},47:{f:tl},48:{},49:{f:Ha},50:{},51:{f:zl},52:{T:1},53:{T:-1},54:{T:1},55:{T:-1},56:{T:1},57:{T:-1},58:{},59:{},60:{f:ao},62:{f:Yv},63:{f:Zl},64:{f:wp},65:{},66:{},67:{},68:{},69:{},70:{},128:{},129:{T:1},130:{T:-1},131:{T:1,f:da,p:0},132:{T:-1},133:{T:1},134:{T:-1},135:{T:1},136:{T:-1},137:{T:1,f:pp},138:{T:-1},139:{T:1},140:{T:-1},141:{T:1},142:{T:-1},143:{T:1},144:{T:-1},145:{T:1},146:{T:-1},147:{f:Ev},148:{f:wv,p:16},151:{f:op},152:{},153:{f:tm},154:{},155:{},156:{f:em},157:{},158:{},159:{T:1,f:zo},160:{T:-1},161:{T:1,f:dn},162:{T:-1},163:{T:1},164:{T:-1},165:{T:1},166:{T:-1},167:{},168:{},169:{},170:{},171:{},172:{T:1},173:{T:-1},174:{},175:{},176:{f:ap},177:{T:1},178:{T:-1},179:{T:1},180:{T:-1},181:{T:1},182:{T:-1
varI=ng(y[0].messages[0].data);if((t=I==null?void0:I[2])==null?void0:t[0])for(x=0;x<s.length;++x){varN=ng(I[2][0].data);N[1][0].data=tg(x);N[4][0].data=tg(s[x].length);I[2][x]={type:I[2][0].type,data:ig(N)}}y[0].messages[0].data=ig(I)}E.content=ug(og(y));E.size=E.content.length;varF=bg(C[2][0].data);E=qe.find(l,o[F].location);y=fg(lg(E.content));{if(y[0].id!=F)throw"Bad HeaderStorageBucket";I=ng(y[0].messages[0].data);for(A=0;A<=n.e.c;++A){N=ng(I[2][0].data);N[1][0].data=tg(A);N[4][0].data=tg(n.e.r+1);I[2][A]={type:I[2][0].type,data:ig(N)}}y[0].messages[0].data=ig(I)}E.content=ug(og(y));E.size=E.content.length;if(a["!merges"]){varD=h({type:6144,deps:[g],location:o[g].location});varP=[[],[]];a["!merges"].forEach(function(e){P[1].push({type:2,data:ig([[],[{type:2,data:ig([[],[{type:5,data:newUint8Array(newUint16Array([e.s.r,e.s.c]).buffer)}]])}],[{type:2,data:ig([[],[{type:5,data:newUint8Array(newUint16Array([e.e.r-e.s.r+1,e.e.c-e.s.c+1]).buffer)}]])}]])})});C[13]=[{type:2,data:gg(D)}];v.push({id:D,messages:[Cg(6144,ig(P))]})}varL=bg(C[4][0].data);(function(){vare=qe.find(l,o[L].location);varr=fg(lg(e.content));vart;for(vara=0;a<r.length;++a){varn=r[a];if(n.id==L)t=n}vari=ng(t.messages[0].data);{i[3]=[];f.forEach(function(e,r){i[3].push({type:2,data:ig([[],[{type:0,data:tg(r)}],[{type:0,data:tg(1)}],[{type:2,data:Kb(e)}]])})})}t.messages[0].data=ig(i);e.content=ug(og(r));e.size=e.content.length})();varM=ng(C[3][0].data);{varU=M[1][0];M[3]=[{type:0,data:tg(Rg?1:0)}];varB=ng(U.data);{varW=bg(B[2][0].data);(function(){vare=qe.find(l,o[W].location);varr=fg(lg(e.content));vart;for(vara=0;a<r.length;++a){vari=r[a];if(i.id==W)t=i}varc=ng(t.messages[0].data);{deletec[6];deleteM[7];varu=newUint8Array(c[5][0].data);c[5]=[];for(varh=0;h<=n.e.r;++h){vard=ng(u);xg(d,s[h],f,Rg);d[1][0].data=tg(h);c[5].push({data:ig(d),type:2})}c[1]=[{type:0,data:tg(0)}];c[2]=[{type:0,data:tg(0)}];c[3]=[{type:0,data:tg(0)}];c[4]=[{type:0,data:tg(n.e.r+1)}];c[6]=[{type:0,data:tg(5)}];c[7]=[{type:0,data:tg(1)}];c[8]=[{type:0,data:tg(Rg?1:0)}]}t.messages[0].data=ig(c);e.content=ug(og(r));e.size=e.content.length})()}U.data=ig(B)}C[3][0].data=ig(M)}k[4][0].data=ig(C)}p.messages[0].data=ig(k);d.content=ug(og(v));d.size=d.content.length;returnl}functionIg(e){returnfunctionr(t){for(vara=0;a!=e.length;++a){varn=e[a];if(t[n[0]]===undefined)t[n[0]]=n[1];if(n[2]==="n")t[n[0]]=Number(t[n[0]])}}}functionNg(e){Ig([["cellNF",false],["cellHTML",true],["cellFormula",true],["cellStyles",false],["cellText",true],["cellDates",false],["sheetStubs",false],["sheetRows",0,"n"],["bookDeps",false],["bookSheets",false],["bookProps",false],["bookFiles",false],["bookVBA",false],["password",""],["WTF",false]])(e)}functionFg(e){Ig([["cellDates",false],["bookSST",false],["bookType","xlsx"],["compression",false],["WTF",false]])(e)}functionDg(e){if(qn.WS.indexOf(e)>-1)return"sheet";if(qn.CS&&e==qn.CS)return"chart";if(qn.DS&&e==qn.DS)return"dialog";if(qn.MS&&e==qn.MS)return"macro";returne&&e.length?e:"sheet"}functionPg(e,r){if(!e)return0;try{e=r.map(functiona(r){if(!r.id)r.id=r.strRelID;return[r.name,e["!id"][r.id].Target,Dg(e["!id"][r.id].Type)]})}catch(t){returnnull}return!e||e.length===0?null:e}functionLg(e,r,t,a,n,i,s,f,o,c,l,u){try{i[a]=Qn(Nr(e,t,true),r);varh=Ir(e,r);vard;switch(f){case"sheet":d=dm(h,r,n,o,i[a],c,l,u);break;case"chart":d=vm(h,r,n,o,i[a],c,l,u);if(!d||!d["!drawel"])break;varv=Ur(d["!drawel"].Target,r);varp=Zn(v);varm=tu(Nr(e,v,true),Qn(Nr(e,p,true),v));varb=Ur(m,v);varg=Zn(b);d=Pp(Nr(e,b,true),b,o,Qn(Nr(e,g,true),b),c,d);break;case"macro":d=pm(h,r,n,o,i[a],c,l,u);break;case"dialog":d=mm(h,r,n,o,i[a],c,l,u);break;default:thrownewError("Unrecognized sheet type "+f);}s[a]=d;varw=[];if(i&&i[a])ar(i[a]).forEach(function(t){varn="";if(i[a][t].Type==qn.CMNT){n=Ur(i[a][t].Target,r);vars=wm(Ir(e,n,true),n,o);if(!s||!s.length)return;iu(d,s,false)}if(i[a][t].Type==qn.TCMNT){n=Ur(i[a][t].Target,r);w=w.concat(ou(Ir(e,n,true),o))}});if(w&&w.length)iu(d,w,true,o.people||[])}catch(k){if(o.WTF)throwk}}functionMg(e){return