"use strict";(self.webpackchunk_n_e=self.webpackchunk_n_e||[]).push([[2251],{84105:function(e,t,r){r.d(t,{cw:function(){return xo},p6:function(){return bo}});var n=r(20067).buffer,a=r(72061),i={version:"0.18.5"},s=1200,o=1252,l=[874,932,936,949,950,1250,1251,1252,1253,1254,1255,1256,1257,1258,1e4],f={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},c=function(e){-1!=l.indexof(e)&&(o=f[0]=e)};var h=function(e){s=e,c(e)};function u(){h(1200),c(1252)}function d(e){for(var t=[],r=0;r>1;++r)t[r]=string.fromcharcode(e.charcodeat(2*r+1)+(e.charcodeat(2*r)<<8));return t.join("")}var p,m=function(e){return string.fromcharcode(e)},g=function(e){return string.fromcharcode(e)};var v="abcdefghijklmnopqrstuvwxyzabcdefghijklmnopqrstuvwxyz0123456789+/=";function t(e){for(var t="",r=0,n=0,a=0,i=0,s=0,o=0,l=0,f=0;f>2,s=(3&r)<<4|(n=e.charcodeat(f++))>>4,o=(15&n)<<2|(a=e.charcodeat(f++))>>6,l=63&a,isnan(n)?o=l=64:isnan(a)&&(l=64),t+=v.charat(i)+v.charat(s)+v.charat(o)+v.charat(l);return t}function w(e){var t="",r=0,n=0,a=0,i=0,s=0,o=0;e=e.replace(/[^\w\+\/\=]/g,"");for(var l=0;l>4,t+=string.fromcharcode(r),n=(15&i)<<4|(s=v.indexof(e.charat(l++)))>>2,64!==s&&(t+=string.fromcharcode(n)),a=(3&s)<<6|(o=v.indexof(e.charat(l++))),64!==o&&(t+=string.fromcharcode(a));return t}var e=function(){return"undefined"!==typeof n&&"undefined"!==typeof a&&"undefined"!==typeof a.versions&&!!a.versions.node}(),b=function(){if("undefined"!==typeof n){var e=!n.from;if(!e)try{n.from("foo","utf8")}catch(t){e=!0}return e?function(e,t){return t?new n(e,t):new n(e)}:n.from.bind(n)}return function(){}}();function s(e){return e?n.alloc?n.alloc(e):new n(e):"undefined"!=typeof uint8array?new uint8array(e):new array(e)}function a(e){return e?n.allocunsafe?n.allocunsafe(e):new n(e):"undefined"!=typeof uint8array?new uint8array(e):new array(e)}var _=function(e){return e?b(e,"binary"):e.split("").map((function(e){return 255&e.charcodeat(0)}))};function y(e){if("undefined"===typeof arraybuffer)return _(e);for(var t=new arraybuffer(e.length),r=new uint8array(t),n=0;n!=e.length;++n)r[n]=255&e.charcodeat(n);return t}function o(e){if(array.isarray(e))return e.map((function(e){return string.fromcharcode(e)})).join("");for(var t=[],r=0;r=0;)t+=e.charat(r--);return t}function n(e,t){var r=""+e;return r.length>=t?r:je("0",t-r.length)+r}function i(e,t){var r=""+e;return r.length>=t?r:je(" ",t-r.length)+r}function d(e,t){var r=""+e;return r.length>=t?r:r+je(" ",t-r.length)}var p=math.pow(2,32);function l(e,t){return e>p||e<-p?function(e,t){var r=""+math.round(e);return r.length>=t?r:je("0",t-r.length)+r}(e,t):function(e,t){var r=""+e;return r.length>=t?r:je("0",t-r.length)+r}(math.round(e),t)}function m(e,t){return t=t||0,e.length>=7+t&&103===(32|e.charcodeat(t))&&101===(32|e.charcodeat(t+1))&&110===(32|e.charcodeat(t+2))&&101===(32|e.charcodeat(t+3))&&114===(32|e.charcodeat(t+4))&&97===(32|e.charcodeat(t+5))&&108===(32|e.charcodeat(t+6))}var f=[["sun","sunday"],["mon","monday"],["tue","tuesday"],["wed","wednesday"],["thu","thursday"],["fri","friday"],["sat","saturday"]],u=[["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"]];var b={0:"general",1:"0",2:"0.00",3:"#,##0",4:"#,##0.00",9:"0%",10:"0.00%",11:"0.00e+00",12:"# ?/?",13:"# ??/??",14:"m/d/yy",15:"d-mmm-yy",16:"d-mmm",17:"mmm-yy",18:"h:mm am/pm",19:"h:mm:ss am/pm",20:"h:mm",21:"h:mm:ss",22:"m/d/yy h:mm",37:"#,##0 ;(#,##0)",38:"#,##0 ;[red](#,##0)",39:"#,##0.00;(#,##0.00)",40:"#,##0.00;[red](#,##0.00)",45:"mm:ss",46:"[h]:mm:ss",47:"mmss.0",48:"##0.0e+0",49:"@",56:'"\u4e0a\u5348/\u4e0b\u5348 "hh"\u6642"mm"\u5206"ss"\u79d2 "'},w={5:37,6:38,7:39,8:40,23:0,24:0,25:0,26:0,27:14,28:14,29:14,30:14,31:14,50:14,51:14,52:14,53:14,54:14,55:14,56:14,57:14,58:14,59:1,60:2,61:3,62:4,67:9,68:10,69:12,70:13,71:14,72:14,73:15,74:16,75:17,76:20,77:21,78:22,79:45,80:46,81:47,82:0},h={5:'"$"#,##0_);\\("$"#,##0\\)',63:'"$"#,##0_);\\("$"#,##0\\)',6:'"$"#,##0_);[red]\\("$"#,##0\\)',64:'"$"#,##0_);[red]\\("$"#,##0\\)',7:'"$"#,##0.00_);\\("$"#,##0.00\\)',65:'"$"#,##0.00_);\\("$"#,##0.00\\)',8:'"$"#,##0.00_);[red]\\("$"#,##0.00\\)',66:'"$"#,##0.00_);[red]\\("$"#,##0.00\\)',41:'_(* #,##0_);_(* \\(#,##0\\);_(* "-"_);_(@_)',42:'_("$"* #,##0_);_("$"* \\(#,##0\\);_("$"* "-"_);_(@_)',43:'_(* #,##0.00_);_(* \\(#,##0.00\\);_(* "-"??_);_(@_)',44:'_("$"* #,##0.00_);_("$"* \\(#,##0.00\\);_("$"* "-"??_);_(@_)'};function g(e,t,r){for(var n=e<0?-1:1,a=e*n,i=0,s=1,o=0,l=1,f=0,c=0,h=math.floor(a);ft&&(f>t?(c=l,o=i):(c=f,o=s)),!r)return[0,n*o,c];var u=math.floor(n*o/c);return[u,n*o-u*c,c]}function v(e,t,r){if(e>2958465||e<0)return null;var n=0|e,a=math.floor(86400*(e-n)),i=0,s=[],o={d:n,t:a,u:86400*(e-n)-a,y:0,m:0,d:0,h:0,m:0,s:0,q:0};if(math.abs(o.u)<1e-6&&(o.u=0),t&&t.date1904&&(n+=1462),o.u>.9999&&(o.u=0,86400==++a&&(o.t=a=0,++n,++o.d)),60===n)s=r?[1317,10,29]:[1900,2,29],i=3;else if(0===n)s=r?[1317,8,29]:[1900,1,0],i=6;else{n>60&&--n;var l=new date(1900,0,1);l.setdate(l.getdate()+n-1),s=[l.getfullyear(),l.getmonth()+1,l.getdate()],i=l.getday(),n<60&&(i=(i+6)%7),r&&(i=function(e,t){t[0]-=581;var r=e.getday();e<60&&(r=(r+6)%7);return r}(l,s))}return o.y=s[0],o.m=s[1],o.d=s[2],o.s=a%60,a=math.floor(a/60),o.m=a%60,a=math.floor(a/60),o.h=a,o.q=i,o}var j=new date(1899,11,31,0,0,0),z=j.gettime(),x=new date(1900,2,1,0,0,0);function y(e,t){var r=e.gettime();return t?r-=1262304e5:e>=x&&(r+=864e5),(r-(z+6e4*(e.gettimezoneoffset()-j.gettimezoneoffset())))/864e5}function k(e){return-1==e.indexof(".")?e:e.replace(/(?:\.0*|(\.\d*[1-9])0+)$/,"$1")}function j(e){var t,r=math.floor(math.log(math.abs(e))*math.log10e);return t=r>=-4&&r<=-1?e.toprecision(10+r):math.abs(r)<=9?function(e){var t=e<0?12:11,r=k(e.tofixed(12));return r.length<=t||(r=e.toprecision(10)).length<=t?r:e.toexponential(5)}(e):10===r?e.tofixed(10).substr(0,12):function(e){var t=k(e.tofixed(11));return t.length>(e<0?12:11)||"0"===t||"-0"===t?e.toprecision(6):t}(e),k(function(e){return-1==e.indexof("e")?e:e.replace(/(?:\.0*|(\.\d*[1-9])0+)[ee]/,"$1e").replace(/(e[+-])(\d)$/,"$10$2")}(t.touppercase()))}function z(e,t){switch(typeof e){case"string":return e;case"boolean":return e?"true":"false";case"number":return(0|e)===e?e.tostring(10):j(e);case"undefined":return"";case"object":if(null==e)return"";if(e instanceof date)return te(14,y(e,t&&t.date1904),t)}throw new error("unsupported value in general format: "+e)}function q(e,t,r,n){var a,i="",s=0,o=0,l=r.y,f=0;switch(e){case 98:l=r.y+543;case 121:switch(t.length){case 1:case 2:a=l%100,f=2;break;default:a=l%1e4,f=4}break;case 109:switch(t.length){case 1:case 2:a=r.m,f=t.length;break;case 3:return u[r.m-1][1];case 5:return u[r.m-1][0];default:return u[r.m-1][2]}break;case 100:switch(t.length){case 1:case 2:a=r.d,f=t.length;break;case 3:return f[r.q][0];default:return f[r.q][1]}break;case 104:switch(t.length){case 1:case 2:a=1+(r.h+11)%12,f=t.length;break;default:throw"bad hour format: "+t}break;case 72:switch(t.length){case 1:case 2:a=r.h,f=t.length;break;default:throw"bad hour format: "+t}break;case 77:switch(t.length){case 1:case 2:a=r.m,f=t.length;break;default:throw"bad minute format: "+t}break;case 115:if("s"!=t&&"ss"!=t&&".0"!=t&&".00"!=t&&".000"!=t)throw"bad second format: "+t;return 0!==r.u||"s"!=t&&"ss"!=t?(o=n>=2?3===n?1e3:100:1===n?10:1,(s=math.round(o*(r.s+r.u)))>=60*o&&(s=0),"s"===t?0===s?"0":""+s/o:(i=n(s,2+n),"ss"===t?i.substr(0,2):"."+i.substr(2,t.length-1))):n(r.s,t.length);case 90:switch(t){case"[h]":case"[hh]":a=24*r.d+r.h;break;case"[m]":case"[mm]":a=60*(24*r.d+r.h)+r.m;break;case"[s]":case"[ss]":a=60*(60*(24*r.d+r.h)+r.m)+math.round(r.s+r.u);break;default:throw"bad abstime format: "+t}f=3===t.length?1:2;break;case 101:a=l,f=1}return f>0?n(a,f):""}function q(e){if(e.length<=3)return e;for(var t=e.length%3,r=e.substr(0,t);t!=e.length;t+=3)r+=(r.length>0?",":"")+e.substr(t,3);return r}var ee=/%/g;function te(e,t){var r,n=e.indexof("e")-e.indexof(".")-1;if(e.match(/^#+0.0e\+0$/)){if(0==t)return"0.0e+0";if(t<0)return"-"+te(e,-t);var a=e.indexof(".");-1===a&&(a=e.indexof("e"));var i=math.floor(math.log(t)*math.log10e)%a;if(i<0&&(i+=a),-1===(r=(t/math.pow(10,i)).toprecision(n+1+(a+i)%a)).indexof("e")){var s=math.floor(math.log(t)*math.log10e);for(-1===r.indexof(".")?r=r.charat(0)+"."+r.substr(1)+"e+"+(s-r.length+i):r+="e+"+(s-i);"0."===r.substr(0,2);)r=(r=r.charat(0)+r.substr(2,a)+"."+r.substr(2+a)).replace(/^0+([1-9])/,"$1").replace(/^0+\./,"0.");r=r.replace(/\+-/,"-")}r=r.replace(/^([+-]?)(\d*)\.(\d*)[ee]/,(function(e,t,r,n){return t+r+n.substr(0,(a+i)%a)+"."+n.substr(i)+"e"}))}else r=t.toexponential(n);return e.match(/e\+00$/)&&r.match(/e[+-]\d$/)&&(r=r.substr(0,r.length-1)+"0"+r.charat(r.length-1)),e.match(/e\-/)&&r.match(/e\+/)&&(r=r.replace(/e\+/,"e")),r.replace("e","e")}var re=/# (\?+)( ?)\/( ?)(\d+)/;var ne=/^#*0*\.([0#]+)/,ae=/\).*[0#]/,ie=/\(###\) ###\\?-####/;function se(e){for(var t,r="",n=0;n!=e.length;++n)switch(t=e.charcodeat(n)){case 35:break;case 63:r+=" ";break;case 48:r+="0";break;default:r+=string.fromcharcode(t)}return r}function oe(e,t){var r=math.pow(10,t);return""+math.round(e*r)/r}function le(e,t){var r=e-math.floor(e),n=math.pow(10,t);return t<(""+math.round(r*n)).length?0:math.round(r*n)}function fe(e,t,r){if(40===e.charcodeat(0)&&!t.match(ae)){var n=t.replace(/\( */,"").replace(/ \)/,"").replace(/\)/,"");return r>=0?fe("n",n,r):"("+fe("n",n,-r)+")"}if(44===t.charcodeat(t.length-1))return function(e,t,r){for(var n=t.length-1;44===t.charcodeat(n-1);)--n;return ue(e,t.substr(0,n),r/math.pow(10,3*(t.length-n)))}(e,t,r);if(-1!==t.indexof("%"))return function(e,t,r){var n=t.replace(ee,""),a=t.length-n.length;return ue(e,n,r*math.pow(10,2*a))+je("%",a)}(e,t,r);if(-1!==t.indexof("e"))return te(t,r);if(36===t.charcodeat(0))return"$"+fe(e,t.substr(" "==t.charat(1)?2:1),r);var a,i,s,o,l=math.abs(r),f=r<0?"-":"";if(t.match(/^00+$/))return f+l(l,t.length);if(t.match(/^[#?]+$/))return"0"===(a=l(r,0))&&(a=""),a.length>t.length?a:se(t.substr(0,t.length-a.length))+a;if(i=t.match(re))return function(e,t,r){var n=parseint(e[4],10),a=math.round(t*n),i=math.floor(a/n),s=a-i*n,o=n;return r+(0===i?"":""+i)+" "+(0===s?je(" ",e[1].length+1+e[4].length):i(s,e[1].length)+e[2]+"/"+e[3]+n(o,e[4].length))}(i,l,f);if(t.match(/^#+0+$/))return f+l(l,t.length-t.indexof("0"));if(i=t.match(ne))return a=oe(r,i[1].length).replace(/^([^\.]+)$/,"$1."+se(i[1])).replace(/\.$/,"."+se(i[1])).replace(/\.(\d*)$/,(function(e,t){return"."+t+je("0",se(i[1]).length-t.length)})),-1!==t.indexof("0.")?a:a.replace(/^0\./,".");if(t=t.replace(/^#+([0.])/,"$1"),i=t.match(/^(0*)\.(#*)$/))return f+oe(l,i[2].length).replace(/\.(\d*[1-9])0*$/,".$1").replace(/^(-?\d*)$/,"$1.").replace(/^0\./,i[1].length?"0.":".");if(i=t.match(/^#{1,3},##0(\.?)$/))return f+q(l(l,0));if(i=t.match(/^#,##0\.([#0]*0)$/))return r<0?"-"+fe(e,t,-r):q(""+(math.floor(r)+function(e,t){return t<(""+math.round((e-math.floor(e))*math.pow(10,t))).length?1:0}(r,i[1].length)))+"."+n(le(r,i[1].length),i[1].length);if(i=t.match(/^#,#*,#0/))return fe(e,t.replace(/^#,#*,/,""),r);if(i=t.match(/^([0#]+)(\\?-([0#]+))+$/))return a=k(fe(e,t.replace(/[\\-]/g,""),r)),s=0,k(k(t.replace(/\\/g,"")).replace(/[0#]/g,(function(e){return s-2147483648?""+(e>=0?0|e:e-1|0):""+math.floor(e)}(r)).replace(/^\d,\d{3}$/,"0$&").replace(/^\d*$/,(function(e){return"00,"+(e.length<3?n(0,3-e.length):"")+e}))+"."+n(s,i[1].length);switch(t){case"###,##0.00":return fe(e,"#,##0.00",r);case"###,###":case"##,###":case"#,###":var d=q(l(l,0));return"0"!==d?f+d:"";case"###,###.00":return fe(e,"###,##0.00",r).replace(/^0\./,".");case"#,###.00":return fe(e,"#,##0.00",r).replace(/^0\./,".")}throw new error("unsupported format |"+t+"|")}function ce(e,t){var r,n=e.indexof("e")-e.indexof(".")-1;if(e.match(/^#+0.0e\+0$/)){if(0==t)return"0.0e+0";if(t<0)return"-"+ce(e,-t);var a=e.indexof(".");-1===a&&(a=e.indexof("e"));var i=math.floor(math.log(t)*math.log10e)%a;if(i<0&&(i+=a),!(r=(t/math.pow(10,i)).toprecision(n+1+(a+i)%a)).match(/[ee]/)){var s=math.floor(math.log(t)*math.log10e);-1===r.indexof(".")?r=r.charat(0)+"."+r.substr(1)+"e+"+(s-r.length+i):r+="e+"+(s-i),r=r.replace(/\+-/,"-")}r=r.replace(/^([+-]?)(\d*)\.(\d*)[ee]/,(function(e,t,r,n){return t+r+n.substr(0,(a+i)%a)+"."+n.substr(i)+"e"}))}else r=t.toexponential(n);return e.match(/e\+00$/)&&r.match(/e[+-]\d$/)&&(r=r.substr(0,r.length-1)+"0"+r.charat(r.length-1)),e.match(/e\-/)&&r.match(/e\+/)&&(r=r.replace(/e\+/,"e")),r.replace("e","e")}function he(e,t,r){if(40===e.charcodeat(0)&&!t.match(ae)){var n=t.replace(/\( */,"").replace(/ \)/,"").replace(/\)/,"");return r>=0?he("n",n,r):"("+he("n",n,-r)+")"}if(44===t.charcodeat(t.length-1))return function(e,t,r){for(var n=t.length-1;44===t.charcodeat(n-1);)--n;return ue(e,t.substr(0,n),r/math.pow(10,3*(t.length-n)))}(e,t,r);if(-1!==t.indexof("%"))return function(e,t,r){var n=t.replace(ee,""),a=t.length-n.length;return ue(e,n,r*math.pow(10,2*a))+je("%",a)}(e,t,r);if(-1!==t.indexof("e"))return ce(t,r);if(36===t.charcodeat(0))return"$"+he(e,t.substr(" "==t.charat(1)?2:1),r);var a,i,s,o,l=math.abs(r),f=r<0?"-":"";if(t.match(/^00+$/))return f+n(l,t.length);if(t.match(/^[#?]+$/))return a=""+r,0===r&&(a=""),a.length>t.length?a:se(t.substr(0,t.length-a.length))+a;if(i=t.match(re))return function(e,t,r){return r+(0===t?"":""+t)+je(" ",e[1].length+2+e[4].length)}(i,l,f);if(t.match(/^#+0+$/))return f+n(l,t.length-t.indexof("0"));if(i=t.match(ne))return a=(a=(""+r).replace(/^([^\.]+)$/,"$1."+se(i[1])).replace(/\.$/,"."+se(i[1]))).replace(/\.(\d*)$/,(function(e,t){return"."+t+je("0",se(i[1]).length-t.length)})),-1!==t.indexof("0.")?a:a.replace(/^0\./,".");if(t=t.replace(/^#+([0.])/,"$1"),i=t.match(/^(0*)\.(#*)$/))return f+(""+l).replace(/\.(\d*[1-9])0*$/,".$1").replace(/^(-?\d*)$/,"$1.").replace(/^0\./,i[1].length?"0.":".");if(i=t.match(/^#{1,3},##0(\.?)$/))return f+q(""+l);if(i=t.match(/^#,##0\.([#0]*0)$/))return r<0?"-"+he(e,t,-r):q(""+r)+"."+je("0",i[1].length);if(i=t.match(/^#,#*,#0/))return he(e,t.replace(/^#,#*,/,""),r);if(i=t.match(/^([0#]+)(\\?-([0#]+))+$/))return a=k(he(e,t.replace(/[\\-]/g,""),r)),s=0,k(k(t.replace(/\\/g,"")).replace(/[0#]/g,(function(e){return s-1||"\\"==r&&"-"==e.charat(t+1)&&"0#".indexof(e.charat(t+2))>-1););break;case"?":for(;e.charat(++t)===r;);break;case"*":++t," "!=e.charat(t)&&"*"!=e.charat(t)||++t;break;case"(":case")":++t;break;case"1":case"2":case"3":case"4":case"5":case"6":case"7":case"8":case"9":for(;t-1;);break;case" ":default:++t}return!1}var me=/\[(=|>[=]?|<[>=]?)(-?\d+(?:\.\d*)?)\]/;function ge(e,t){if(null==t)return!1;var r=parsefloat(t[2]);switch(t[1]){case"=":if(e==r)return!0;break;case">":if(e>r)return!0;break;case"<":if(e":if(e!=r)return!0;break;case">=":if(e>=r)return!0;break;case"<=":if(e<=r)return!0}return!1}function ve(e,t){var r=function(e){for(var t=[],r=!1,n=0,a=0;n-1&&--n,r.length>4)throw new error("cannot find right format for |"+r.join("|")+"|");if("number"!==typeof t)return[4,4===r.length||a>-1?r[r.length-1]:"@"];switch(r.length){case 1:r=a>-1?["general","general","general",r[0]]:[r[0],r[0],r[0],"@"];break;case 2:r=a>-1?[r[0],r[0],r[0],r[1]]:[r[0],r[1],r[0],"@"];break;case 3:r=a>-1?[r[0],r[1],r[0],r[2]]:[r[0],r[1],r[2],"@"]}var i=t>0?r[0]:t<0?r[1]:r[2];if(-1===r[0].indexof("[")&&-1===r[1].indexof("["))return[n,i];if(null!=r[0].match(/\[[=<>]/)||null!=r[1].match(/\[[=<>]/)){var s=r[0].match(me),o=r[1].match(me);return ge(t,s)?[n,r[0]]:ge(t,o)?[n,r[1]]:[n,r[null!=s&&null!=o?2:1]]}return[n,i]}function te(e,t,r){null==r&&(r={});var n="";switch(typeof e){case"string":n="m/d/yy"==e&&r.datenf?r.datenf:e;break;case"number":null==(n=14==e&&r.datenf?r.datenf:(null!=r.table?r.table:b)[e])&&(n=r.table&&r.table[w[e]]||b[w[e]]),null==n&&(n=h[e]||"general")}if(m(n,0))return z(t,r);t instanceof date&&(t=y(t,r.date1904));var a=ve(n,t);if(m(a[1]))return z(t,r);if(!0===t)t="true";else if(!1===t)t="false";else if(""===t||null==t)return"";return function(e,t,r,n){for(var a,i,s,o=[],l="",f=0,c="",h="t",u="h";f=12?"p":"a"),m.t="t",u="h",f+=3):"am/pm"===e.substr(f,5).touppercase()?(null!=a&&(m.v=a.h>=12?"pm":"am"),m.t="t",f+=5,u="h"):"\u4e0a\u5348/\u4e0b\u5348"===e.substr(f,5).touppercase()?(null!=a&&(m.v=a.h>=12?"\u4e0b\u5348":"\u4e0a\u5348"),m.t="t",f+=5,u="h"):(m.t="t",++f),null==a&&"t"===m.t)return"";o[o.length]=m,h=c;break;case"[":for(l=c;"]"!==e.charat(f++)&&f-1&&(l=(l.match(/\$([^-\[\]]*)/)||[])[1]||"$",pe(e)||(o[o.length]={t:"t",v:l}));break;case".":if(null!=a){for(l=c;++f-1;)l+=c;o[o.length]={t:"n",v:l};break;case"?":for(l=c;e.charat(++f)===c;)l+=c;o[o.length]={t:c,v:l},h=c;break;case"*":++f," "!=e.charat(f)&&"*"!=e.charat(f)||++f;break;case"(":case")":o[o.length]={t:1===n?"t":c,v:c},++f;break;case"1":case"2":case"3":case"4":case"5":case"6":case"7":case"8":case"9":for(l=c;f-1;)l+=e.charat(f);o[o.length]={t:"d",v:l};break;case" ":o[o.length]={t:c,v:c},++f;break;case"$":o[o.length]={t:"t",v:"$"},++f;break;default:if(-1===",$-+/():!^&'~{}<>=\u20acacfijklopqrtuvwxzp".indexof(c))throw new error("unrecognized character "+c+" in "+e);o[o.length]={t:"t",v:c},++f}var g,v=0,t=0;for(f=o.length-1,h="t";f>=0;--f)switch(o[f].t){case"h":case"h":o[f].t=u,h="h",v<1&&(v=1);break;case"s":(g=o[f].v.match(/\.0+$/))&&(t=math.max(t,g[0].length-1)),v<3&&(v=3);case"d":case"y":case"m":case"e":h=o[f].t;break;case"m":"s"===h&&(o[f].t="m",v<2&&(v=2));break;case"x":break;case"z":v<1&&o[f].v.match(/[hh]/)&&(v=1),v<2&&o[f].v.match(/[mm]/)&&(v=2),v<3&&o[f].v.match(/[ss]/)&&(v=3)}switch(v){case 0:break;case 1:a.u>=.5&&(a.u=0,++a.s),a.s>=60&&(a.s=0,++a.m),a.m>=60&&(a.m=0,++a.h);break;case 2:a.u>=.5&&(a.u=0,++a.s),a.s>=60&&(a.s=0,++a.m)}var w,e="";for(f=0;f0){40==e.charcodeat(0)?(b=t<0&&45===e.charcodeat(0)?-t:t,s=ue("n",e,b)):(s=ue("n",e,b=t<0&&n>1?-t:t),b<0&&o[0]&&"t"==o[0].t&&(s=s.substr(1),o[0].v="-"+o[0].v)),w=s.length-1;var _=o.length;for(f=0;f-1){_=f;break}var y=o.length;if(_===o.length&&-1===s.indexof("e")){for(f=o.length-1;f>=0;--f)null!=o[f]&&-1!=="n?".indexof(o[f].t)&&(w>=o[f].v.length-1?(w-=o[f].v.length,o[f].v=s.substr(w+1,o[f].v.length)):w<0?o[f].v="":(o[f].v=s.substr(0,w+1),w=-1),o[f].t="t",y=f);w>=0&&y=0;--f)if(null!=o[f]&&-1!=="n?".indexof(o[f].t)){for(i=o[f].v.indexof(".")>-1&&f===_?o[f].v.indexof(".")-1:o[f].v.length-1,a=o[f].v.substr(i+1);i>=0;--i)w>=0&&("0"===o[f].v.charat(i)||"#"===o[f].v.charat(i))&&(a=s.charat(w--)+a);o[f].v=a,o[f].t="t",y=f}for(w>=0&&y-1&&f===_?o[f].v.indexof(".")+1:0,a=o[f].v.substr(0,i);i-1&&(b=n>1&&t<0&&f>0&&"-"===o[f-1].v?-t:t,o[f].v=ue(o[f].t,o[f].v,b),o[f].t="t");var o="";for(f=0;f!==o.length;++f)null!=o[f]&&(o+=o[f].v);return o}(a[1],t,r,a[0])}function we(e,t){if("number"!=typeof t){t=+t||-1;for(var r=0;r<392;++r)if(void 0!=b[r]){if(b[r]==e){t=r;break}}else t<0&&(t=r);t<0&&(t=391)}return b[t]=e,t}function ee(e){for(var t=0;392!=t;++t)void 0!==e[t]&&we(e[t],t)}function be(){var e;e||(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]="@",e[56]='"\u4e0a\u5348/\u4e0b\u5348 "hh"\u6642"mm"\u5206"ss"\u79d2 "',b=e}var se=/[dd]+|[mm]+|[yyee]+|[hh]+|[ss]+/g;var ae=function(){var e={};e.version="1.2.0";var t=function(){for(var e=0,t=new array(256),r=0;256!=r;++r)e=1&(e=1&(e=1&(e=1&(e=1&(e=1&(e=1&(e=1&(e=r)?-306674912^e>>>1:e>>>1)?-306674912^e>>>1:e>>>1)?-306674912^e>>>1:e>>>1)?-306674912^e>>>1:e>>>1)?-306674912^e>>>1:e>>>1)?-306674912^e>>>1:e>>>1)?-306674912^e>>>1:e>>>1)?-306674912^e>>>1:e>>>1,t[r]=e;return"undefined"!==typeof int32array?new int32array(t):t}();var r=function(e){var t=0,r=0,n=0,a="undefined"!==typeof int32array?new int32array(4096):new array(4096);for(n=0;256!=n;++n)a[n]=e[n];for(n=0;256!=n;++n)for(r=e[n],t=256+n;t<4096;t+=256)r=a[t]=r>>>8^e[255&r];var i=[];for(n=1;16!=n;++n)i[n-1]="undefined"!==typeof int32array?a.subarray(256*n,256*n+256):a.slice(256*n,256*n+256);return i}(t),n=r[0],a=r[1],i=r[2],s=r[3],o=r[4],l=r[5],f=r[6],c=r[7],h=r[8],u=r[9],d=r[10],p=r[11],m=r[12],g=r[13],v=r[14];return e.table=t,e.bstr=function(e,r){for(var n=-1^r,a=0,i=e.length;a>>8^t[255&(n^e.charcodeat(a++))];return~n},e.buf=function(e,r){for(var t=-1^r,w=e.length-15,e=0;e>8&255]^m[e[e++]^t>>16&255]^p[e[e++]^t>>>24]^d[e[e++]]^u[e[e++]]^h[e[e++]]^c[e[e++]]^f[e[e++]]^l[e[e++]]^o[e[e++]]^s[e[e++]]^i[e[e++]]^a[e[e++]]^n[e[e++]]^t[e[e++]];for(w+=15;e>>8^t[255&(t^e[e++])];return~t},e.str=function(e,r){for(var n=-1^r,a=0,i=e.length,s=0,o=0;a>>8^t[255&(n^s)]:s<2048?n=(n=n>>>8^t[255&(n^(192|s>>6&31))])>>>8^t[255&(n^(128|63&s))]:s>=55296&&s<57344?(s=64+(1023&s),o=1023&e.charcodeat(a++),n=(n=(n=(n=n>>>8^t[255&(n^(240|s>>8&7))])>>>8^t[255&(n^(128|s>>2&63))])>>>8^t[255&(n^(128|o>>6&15|(3&s)<<4))])>>>8^t[255&(n^(128|63&o))]):n=(n=(n=n>>>8^t[255&(n^(224|s>>12&15))])>>>8^t[255&(n^(128|s>>6&63))])>>>8^t[255&(n^(128|63&s))];return~n},e}(),_e=function(){var e,t={};function r(e){if("/"==e.charat(e.length-1))return-1===e.slice(0,-1).indexof("/")?e:r(e.slice(0,-1));var t=e.lastindexof("/");return-1===t?e:e.slice(0,t+1)}function a(e){if("/"==e.charat(e.length-1))return a(e.slice(0,-1));var t=e.lastindexof("/");return-1===t?e:e.slice(t+1)}function i(e,t){"string"===typeof t&&(t=new date(t));var r=t.gethours();r=(r=r<<6|t.getminutes())<<5|t.getseconds()>>>1,e.write_shift(2,r);var n=t.getfullyear()-1980;n=(n=n<<4|t.getmonth()+1)<<5|t.getdate(),e.write_shift(2,n)}function s(e){vr(e,0);for(var t={},r=0;e.l<=e.length-4;){var n=e.read_shift(2),a=e.read_shift(2),i=e.l+a,s={};switch(n){case 21589:1&(r=e.read_shift(1))&&(s.mtime=e.read_shift(4)),a>5&&(2&r&&(s.atime=e.read_shift(4)),4&r&&(s.ctime=e.read_shift(4))),s.mtime&&(s.mt=new date(1e3*s.mtime))}e.l=i,t[n]=s}return t}function o(){return e||(e={})}function l(e,t){if(80==e[0]&&75==e[1])return pe(e,t);if(109==(32|e[0])&&105==(32|e[1]))return function(e,t){if("mime-version:"!=d(e.slice(0,13)).tolowercase())throw new error("unsupported mad header");var r=t&&t.root||"",a=(e&&n.isbuffer(e)?e.tostring("binary"):d(e)).split("\r\n"),i=0,s="";for(i=0;i0&&(r=(r=r.slice(0,r.length-1)).slice(0,r.lastindexof("/")+1),s.slice(0,r.length)!=r););var o=(a[1]||"").match(/boundary="(.*?)"/);if(!o)throw new error("mad cannot find boundary");var l="--"+(o[1]||""),f={fileindex:[],fullpaths:[]};d(f);var c,h=0;for(i=0;i=a&&(u-=a),!s[u]){l=[];var p=[];for(h=u;h>=0;){p[h]=!0,s[h]=!0,o[o.length]=h,l.push(e[h]);var m=r[math.floor(4*h/n)];if(n<4+(d=4*h&f))throw new error("fat boundary crossed: "+h+" 4 "+n);if(!e[m])break;if(p[h=hr(e[m],d)])break}i[u]={nodes:o,data:wt([l])}}return i}(a,s,m,p);_[s].name="!directory",a>0&&o!==y&&(_[o].name="!minifat"),_[m[0]].name="!fat",_.fat_addrs=m,_.ssz=p;var x=[],c=[],r=[];!function(e,t,r,n,a,i,s,o){for(var l,c=0,d=n.length?2:0,p=t[e].data,m=0,g=0;m0&&c!==y&&(t[c].name="!streamdata")):t.size>=4096?(t.storage="fat",void 0===t[t.start]&&(t[t.start]=h(r,t.start,t.fat_addrs,t.ssz)),t[t.start].name=t.name,t.content=t[t.start].data.slice(0,t.size)):(t.storage="minifat",t.size<0?t.size=0:c!==y&&t.start!==y&&t[c]&&(t.content=f(t,t[c].data,(t[o]||{}).data))),t.content&&vr(t.content,0),i[l]=t,s.push(t)}}(s,_,a,x,a,{},c,o),function(e,t,r){for(var n=0,a=0,i=0,s=0,o=0,l=r.length,f=[],c=[];n0&&s>=0;)i.push(t.slice(s*v,s*v+v)),a-=v,s=hr(r,4*s);return 0===i.length?wr(0):x(i).slice(0,e.size)}function c(e,t,r,n,a){var i=y;if(e===y){if(0!==t)throw new error("difat chain shorter than expected")}else if(-1!==e){var s=r[e],o=(n>>>2)-1;if(!s)return;for(var l=0;l=0;){a[l]=!0,i[i.length]=l,s.push(e[l]);var c=r[math.floor(4*l/n)];if(n<4+(f=4*l&o))throw new error("fat boundary crossed: "+l+" 4 "+n);if(!e[c])break;l=hr(e[c],f)}return{nodes:i,data:wt([s])}}function u(e,t){return new date(1e3*(cr(e,t+4)/1e7*math.pow(2,32)+cr(e,t)/1e7-11644473600))}function d(e,t){var r=t||{},n=r.root||"root entry";if(e.fullpaths||(e.fullpaths=[]),e.fileindex||(e.fileindex=[]),e.fullpaths.length!==e.fileindex.length)throw new error("inconsistent cfb structure");0===e.fullpaths.length&&(e.fullpaths[0]=n+"/",e.fileindex[0]={name:n,type:5}),r.clsid&&(e.fileindex[0].clsid=r.clsid),function(e){var t="\x01sh33tj5";if(_e.find(e,"/"+t))return;var r=wr(4);r[0]=55,r[1]=r[3]=50,r[2]=54,e.fileindex.push({name:t,type:2,content:r,size:4,l:69,r:69,c:69}),e.fullpaths.push(e.fullpaths[0]+t),p(e)}(e)}function p(e,t){d(e);for(var n=!1,i=!1,s=e.fullpaths.length-1;s>=0;--s){var o=e.fileindex[s];switch(o.type){case 0:i?n=!0:(e.fileindex.pop(),e.fullpaths.pop());break;case 1:case 2:case 5:i=!0,isnan(o.r*o.l*o.c)&&(n=!0),o.r>-1&&o.l>-1&&o.r==o.l&&(n=!0);break;default:n=!0}}if(n||t){var l=new date(1987,1,19),f=0,c=object.create?object.create(null):{},h=[];for(s=0;s1?1:-1,p.size=0,p.type=5;else if("/"==m.slice(-1)){for(f=s+1;f=h.length?-1:f,f=s+1;f=h.length?-1:f,p.type=1}else r(e.fullpaths[s+1]||"")==r(m)&&(p.r=s+1),p.type=2}}}function m(e,t){var r=t||{};if("mad"==r.filetype)return function(e,t){for(var r=t||{},a=r.boundary||"sheetjs",i=["mime-version: 1.0",'content-type: multipart/related; boundary="'+(a="------="+a).slice(2)+'"',"","",""],s=e.fullpaths[0],o=s,l=e.fileindex[0],f=1;f=32&&p<128&&++u;var g=u>=4*d/5;i.push(a),i.push("content-location: "+(r.root||"file:///c:/sheetjs/")+o),i.push("content-transfer-encoding: "+(g?"quoted-printable":"base64")),i.push("content-type: "+ve(l,o)),i.push(""),i.push(g?we(h):te(h))}return i.push(a+"--\r\n"),i.join("\r\n")}(e,r);switch(p(e),r.filetype){case"zip":return function(e,t){var r=t||{},n=[],a=[],s=wr(1),o=r.compression?8:0,l=0;0;var f=0,c=0,h=0,u=0,d=e.fullpaths[0],p=d,m=e.fileindex[0],g=[],v=0;for(f=1;f0&&(i<4096?t+=i+63>>6:r+=i+511>>9)}}for(var s=e.fullpaths.length+3>>2,o=t+127>>7,l=(t+7>>3)+r+s+o,f=l+127>>7,c=f<=109?0:math.ceil((f-109)/127);l+f+c+127>>7>f;)c=++f<=109?0:math.ceil((f-109)/127);var h=[1,c,f,o,s,r,t,0];return e.fileindex[0].size=t<<6,h[7]=(e.fileindex[0].start=h[0]+h[1]+h[2]+h[3]+h[4]+h[5])+(h[6]+7>>3),h}(e),s=wr(a[7]<<9),o=0,l=0;for(o=0;o<8;++o)s.write_shift(1,k[o]);for(o=0;o<8;++o)s.write_shift(2,0);for(s.write_shift(2,62),s.write_shift(2,3),s.write_shift(2,65534),s.write_shift(2,9),s.write_shift(2,6),o=0;o<3;++o)s.write_shift(2,0);for(s.write_shift(4,0),s.write_shift(4,a[2]),s.write_shift(4,a[0]+a[1]+a[2]+a[3]-1),s.write_shift(4,0),s.write_shift(4,4096),s.write_shift(4,a[3]?a[0]+a[1]+a[2]-1:y),s.write_shift(4,a[3]),s.write_shift(-4,a[1]?a[0]-1:y),s.write_shift(4,a[1]),o=0;o<109;++o)s.write_shift(-4,o>9)));for(f(a[6]+7>>3);511&s.l;)s.write_shift(-4,i.endofchain);for(l=o=0,c=0;c=4096||(u.start=l,f(h+63>>6)));for(;511&s.l;)s.write_shift(-4,i.endofchain);for(o=0;o=4096)if(s.l=u.start+1<<9,e&&n.isbuffer(u.content))u.content.copy(s,s.l,0,u.size),s.l+=u.size+511&-512;else{for(c=0;c0&&u.size<4096)if(e&&n.isbuffer(u.content))u.content.copy(s,s.l,0,u.size),s.l+=u.size+63&-64;else{for(c=0;c>16|t>>8|t)}for(var b="undefined"!==typeof uint8array,w=b?new uint8array(256):[],h=0;h<256;++h)w[h]=u(h);function g(e,t){var r=w[255&e];return t<=8?r>>>8-t:(r=r<<8|w[e>>8&255],t<=16?r>>>16-t:(r=r<<8|w[e>>16&255])>>>24-t)}function v(e,t){var r=7&t,n=t>>>3;return(e[n]|(r<=6?0:e[n+1]<<8))>>>r&3}function j(e,t){var r=7&t,n=t>>>3;return(e[n]|(r<=5?0:e[n+1]<<8))>>>r&7}function z(e,t){var r=7&t,n=t>>>3;return(e[n]|(r<=3?0:e[n+1]<<8))>>>r&31}function $(e,t){var r=7&t,n=t>>>3;return(e[n]|(r<=1?0:e[n+1]<<8))>>>r&127}function x(e,t,r){var n=7&t,a=t>>>3,i=(1<>>n;return r<8-n?s&i:(s|=e[a+1]<<8-n,r<16-n?s&i:(s|=e[a+2]<<16-n,r<24-n?s&i:(s|=e[a+3]<<24-n)&i))}function y(e,t,r){var n=7&t,a=t>>>3;return n<=5?e[a]|=(7&r)<>8-n),t+3}function k(e,t,r){return r=(1&r)<<(7&t),e[t>>>3]|=r,t+1}function j(e,t,r){var n=t>>>3;return r<<=7&t,e[n]|=255&r,r>>>=8,e[n+1]=r,t+8}function z(e,t,r){var n=t>>>3;return r<<=7&t,e[n]|=255&r,r>>>=8,e[n+1]=255&r,e[n+2]=r>>>8,t+16}function q(e,t){var r=e.length,n=2*r>t?2*r:t+5,a=0;if(r>=t)return e;if(e){var i=a(n);if(e.copy)e.copy(i);else for(;a>n-h,s=(1<=0;--s)t[o|s<0;)t[t.l++]=e[r++]}return t.l}(t,r):function(t,r){for(var a=0,i=0,s=b?new uint16array(32768):[];i0;)r[r.l++]=t[i++];a=8*r.l}else{a=y(r,a,+!(i+o!=t.length)+2);for(var l=0;o-- >0;){var f=t[i],c=-1,h=0;if((c=s[l=32767&(l<<5^f)])&&((c|=-32768&i)>i&&(c-=32768),c2){(f=n[h])<=22?a=j(r,a,w[f+1]>>1)-1:(j(r,a,3),j(r,a+=5,w[f-23]>>5),a+=3);var u=f<8?0:f-4>>2;u>0&&(z(r,a,h-m[f]),a+=u),f=e[i-c],a=j(r,a,w[f]>>3),a-=3;var d=f<4?0:f-2>>1;d>0&&(z(r,a,i-c-f[f]),a+=d);for(var p=0;p>>3;return(e[n]|(r<=4?0:e[n+1]<<8))>>>r&15}(e,t+=5)+4;t+=4;for(var i=0,s=b?new uint8array(19):q(19),o=[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0],l=1,f=b?new uint8array(8):q(8),c=b?new uint8array(8):q(8),h=s.length,u=0;u>8-p;for(var m=(1<<7-p)-1;m>=0;--m)le[d|m<>>=3){case 16:for(i=3+v(e,t),t+=2,d=g[g.length-1];i-- >0;)g.push(d);break;case 17:for(i=3+j(e,t),t+=3;i-- >0;)g.push(0);break;case 18:for(i=11+$(e,t),t+=7;i-- >0;)g.push(0);break;default:g.push(d),l>>0,o=0,l=0;0==(1&n);)if(n=j(e,r),r+=3,n>>>1!=0)for(n>>1==1?(o=9,l=5):(r=he(e,r),o=fe,l=ce);;){!t&&s>>1==1?te[f]:se[f];if(r+=15&c,0===((c>>>=4)>>>8&255))a[i++]=c;else{if(256==c)break;var h=(c-=257)<8?0:c-4>>2;h>5&&(h=0);var u=i+m[c];h>0&&(u+=x(e,r,h),r+=h),f=x(e,r,l),r+=15&(c=n>>>1==1?re[f]:oe[f]);var d=(c>>>=4)<4?0:c-2>>1,p=f[c];for(d>0&&(p+=x(e,r,d),r+=d),!t&&s>>3]|e[1+(r>>>3)]<<8;if(r+=32,m>0)for(!t&&s0;)a[i++]=e[r>>>3],r+=8}return t?[a,r+7>>>3]:[a.slice(0,i),r+7>>>3]}(e.slice(e.l||0),t);return e.l+=r[1],r[0]}function de(e,t){if(!e)throw new error(t);"undefined"!==typeof console&&console.error(t)}function pe(e,t){var r=e;vr(r,0);var n={fileindex:[],fullpaths:[]};d(n,{root:t.root});for(var a=r.length-4;(80!=r[a]||75!=r[a+1]||5!=r[a+2]||6!=r[a+3])&&a>=0;)--a;r.l=a+4,r.l+=4;var i=r.read_shift(2);r.l+=6;var o=r.read_shift(4);for(r.l=o,a=0;a>>=5);r>>>=4,n.setmilliseconds(0),n.setfullyear(r+1980),n.setmonth(i-1),n.setdate(a);var s=31&t,o=63&(t>>>=5);return t>>>=6,n.sethours(t),n.setminutes(o),n.setseconds(s<<1),n}(e);if(8257&i)throw new error("unsupported zip encryption");e.read_shift(4);for(var f=e.read_shift(4),c=e.read_shift(4),h=e.read_shift(2),u=e.read_shift(2),d="",p=0;p0?r.settime(r.gettime()+60*r.gettimezoneoffset()*1e3):t<0&&r.settime(r.gettime()-60*r.gettimezoneoffset()*1e3),r;if(e instanceof date)return e;if(1917==be.getfullyear()&&!isnan(r.getfullyear())){var n=r.getfullyear();return e.indexof(""+n)>-1||r.setfullyear(r.getfullyear()+100),r}var a=e.match(/\d+/g)||["2017","2","19","0","0","0"],i=new date(+a[0],+a[1]-1,+a[2],+a[3]||0,+a[4]||0,+a[5]||0);return e.indexof("z")>-1&&(i=new date(i.gettime()-60*i.gettimezoneoffset()*1e3)),i}function ge(e,t){if(e&&n.isbuffer(e)){if(t){if(255==e[0]&&254==e[1])return ht(e.slice(2).tostring("utf16le"));if(254==e[1]&&255==e[2])return ht(d(e.slice(2).tostring("binary")))}return e.tostring("binary")}if("undefined"!==typeof textdecoder)try{if(t){if(255==e[0]&&254==e[1])return ht(new textdecoder("utf-16le").decode(e.slice(2)));if(254==e[0]&&255==e[1])return ht(new textdecoder("utf-16be").decode(e.slice(2)))}var r={"\u20ac":"\x80","\u201a":"\x82","\u0192":"\x83","\u201e":"\x84","\u2026":"\x85","\u2020":"\x86","\u2021":"\x87","\u02c6":"\x88","\u2030":"\x89","\u0160":"\x8a","\u2039":"\x8b","\u0152":"\x8c","\u017d":"\x8e","\u2018":"\x91","\u2019":"\x92","\u201c":"\x93","\u201d":"\x94","\u2022":"\x95","\u2013":"\x96","\u2014":"\x97","\u02dc":"\x98","\u2122":"\x99","\u0161":"\x9a","\u203a":"\x9b","\u0153":"\x9c","\u017e":"\x9e","\u0178":"\x9f"};return array.isarray(e)&&(e=new uint8array(e)),new textdecoder("latin1").decode(e).replace(/[\u20ac\u201a\u0192\u201e\u2026\u2020\u2021\u02c6\u2030\u0160\u2039\u0152\u017d\u2018\u2019\u201c\u201d\u2022\u2013\u2014\u02dc\u2122\u0161\u203a\u0153\u017e\u0178]/g,(function(e){return r[e]||e}))}catch(s){}for(var a=[],i=0;i!=e.length;++i)a.push(string.fromcharcode(e[i]));return a.join("")}function ve(e){if("undefined"!=typeof json&&!array.isarray(e))return json.parse(json.stringify(e));if("object"!=typeof e||null==e)return e;if(e instanceof date)return new date(e.gettime());var t={};for(var r in e)object.prototype.hasownproperty.call(e,r)&&(t[r]=ve(e[r]));return t}function je(e,t){for(var r="";r.length3&&-1==$e.indexof(s))return r}else if(s.match(/[a-z]/))return r;return n<0||n>8099?r:(a>0||i>1)&&101!=n?t:e.match(/[^-0-9:,\/\\]/)?r:t}function ye(e,t,r){if(e.fullpaths){var n;if("string"==typeof r)return n=e?b(r):function(e){for(var t=[],r=0,n=e.length+250,a=s(e.length+255),i=0;i>6&31,a[r++]=128|63&s;else if(s>=55296&&s<57344){s=64+(1023&s);var o=1023&e.charcodeat(++i);a[r++]=240|s>>8&7,a[r++]=128|s>>2&63,a[r++]=128|o>>6&15|(3&s)<<4,a[r++]=128|63&o}else a[r++]=224|s>>12&15,a[r++]=128|s>>6&63,a[r++]=128|63&s;r>n&&(t.push(a.slice(0,r)),r=0,a=s(65535),n=65530)}return t.push(a.slice(0,r)),x(t)}(r),_e.utils.cfb_add(e,t,n);_e.utils.cfb_add(e,t,r)}else e.file(t,r)}function ke(){return _e.utils.cfb_new()}var je='\r\n';var ze={""":'"',"'":"'",">":">","<":"<","&":"&"},qe=ke(ze),qe=/[&<>'"]/g,et=/[\u0000-\u0008\u000b-\u001f]/g;function tt(e){return(e+"").replace(qe,(function(e){return qe[e]})).replace(et,(function(e){return"_x"+("000"+e.charcodeat(0).tostring(16)).slice(-4)+"_"}))}function rt(e){return tt(e).replace(/ /g,"_x0020_")}var nt=/[\u0000-\u001f]/g;function at(e){return(e+"").replace(qe,(function(e){return qe[e]})).replace(/\n/g,"
").replace(nt,(function(e){return"&#x"+("000"+e.charcodeat(0).tostring(16)).slice(-4)+";"}))}function it(e){switch(e){case 1:case!0:case"1":case"true":case"true":return!0;default:return!1}}function st(e){for(var t="",r=0,n=0,a=0,i=0,s=0,o=0;r191&&n<224?(s=(31&n)<<6,s|=63&a,t+=string.fromcharcode(s)):(i=e.charcodeat(r++),n<240?t+=string.fromcharcode((15&n)<<12|(63&a)<<6|63&i):(o=((7&n)<<18|(63&a)<<12|(63&i)<<6|63&(s=e.charcodeat(r++)))-65536,t+=string.fromcharcode(55296+(o>>>10&1023)),t+=string.fromcharcode(56320+(1023&o)))));return t}function ot(e){var t,r,n,a=s(2*e.length),i=1,s=0,o=0;for(r=0;r>>10&1023),t=56320+(1023&t)),0!==o&&(a[s++]=255&o,a[s++]=o>>>8,o=0),a[s++]=t%256,a[s++]=t>>>8;return a.slice(0,s).tostring("ucs2")}function lt(e){return b(e,"binary").tostring("utf8")}var ft="foo bar baz\xe2\x98\x83\xf0\x9f\x8d\xa3",ct=e&&(lt(ft)==st(ft)&<||ot(ft)==st(ft)&&ot)||st,ht=e?function(e){return b(e,"utf8").tostring("binary")}:function(e){for(var t=[],r=0,n=0,a=0;r>6))),t.push(string.fromcharcode(128+(63&n)));break;case n>=55296&&n<57344:n-=55296,a=e.charcodeat(r++)-56320+(n<<10),t.push(string.fromcharcode(240+(a>>18&7))),t.push(string.fromcharcode(144+(a>>12&63))),t.push(string.fromcharcode(128+(a>>6&63))),t.push(string.fromcharcode(128+(63&a)));break;default:t.push(string.fromcharcode(224+(n>>12))),t.push(string.fromcharcode(128+(n>>6&63))),t.push(string.fromcharcode(128+(63&n)))}return t.join("")},ut=function(){var e=[["nbsp"," "],["middot","\xb7"],["quot",'"'],["apos","'"],["gt",">"],["lt","<"],["amp","&"]].map((function(e){return[new regexp("&"+e[0]+";","ig"),e[1]]}));return function(t){for(var r=t.replace(/^[\t\n\r ]+/,"").replace(/[\t\n\r ]+$/,"").replace(/>\s+/g,">").replace(/\s+/g,"\n").replace(/<[^>]*>/g,""),n=0;n"+t+""}function mt(e){return ce(e).map((function(t){return" "+t+'="'+e[t]+'"'})).join("")}function gt(e,t,r){return"<"+e+(null!=r?mt(r):"")+(null!=t?(t.match(dt)?' xml:space="preserve"':"")+">"+t+""}function vt(e,t){try{return e.toisostring().replace(/\.\d*/,"")}catch(r){if(t)throw r}return""}var tt="http://schemas.openxmlformats.org/package/2006/metadata/core-properties",wt="http://schemas.openxmlformats.org/officedocument/2006/custom-properties",et="http://schemas.openxmlformats.org/officedocument/2006/extended-properties",bt="http://schemas.openxmlformats.org/package/2006/content-types",st="http://schemas.openxmlformats.org/package/2006/relationships",at="http://schemas.microsoft.com/office/spreadsheetml/2018/threadedcomments",_t="http://purl.org/dc/elements/1.1/",yt="http://purl.org/dc/terms/",ot="http://purl.org/dc/dcmitype/",xt="http://schemas.openxmlformats.org/officedocument/2006/relationships",ct="http://schemas.openxmlformats.org/officedocument/2006/docpropsvtypes",rt="http://www.w3.org/2001/xmlschema-instance",kt="http://www.w3.org/2001/xmlschema",nt=["http://schemas.openxmlformats.org/spreadsheetml/2006/main","http://purl.oclc.org/ooxml/spreadsheetml/main","http://schemas.microsoft.com/office/excel/2006/main","http://schemas.microsoft.com/office/excel/2006/2"],it="urn:schemas-microsoft-com:office:office",dt="urn:schemas-microsoft-com:office:excel",pt="urn:schemas-microsoft-com:office:spreadsheet",lt="uuid:c2f41010-65b3-11d1-a29f-00aa00c14882",mt="http://macvmlschemauri",ft="urn:schemas-microsoft-com:vml",ut="http://www.w3.org/tr/rec-html40";var bt=function(e){for(var t=[],r=0;r0&&n.isbuffer(e[0][0])?n.concat(e[0].map((function(e){return n.isbuffer(e)?e:b(e)}))):bt(e)}:bt,ht=function(e,t,r){for(var n=[],a=t;a0?$t(e,t+4,t+4+r-1):""},yt=xt,kt=function(e,t){var r=cr(e,t);return r>0?$t(e,t+4,t+4+r-1):""},jt=kt,zt=function(e,t){var r=2*cr(e,t);return r>0?$t(e,t+4,t+4+r-1):""},qt=zt,qt=function(e,t){var r=cr(e,t);return r>0?gt(e,t+4,t+4+r):""},er=qt,tr=function(e,t){var r=cr(e,t);return r>0?$t(e,t+4,t+4+r):""},rr=tr,nr=function(e,t){return function(e,t){for(var r=1-2*(e[t+7]>>>7),n=((127&e[t+7])<<4)+(e[t+6]>>>4&15),a=15&e[t+6],i=5;i>=0;--i)a=256*a+e[t+i];return 2047==n?0==a?r*(1/0):nan:(0==n?n=-1022:(n-=1023,a+=math.pow(2,52)),r*math.pow(2,n-52)*a)}(e,t)},ar=nr,ir=function(e){return array.isarray(e)||"undefined"!==typeof uint8array&&e instanceof uint8array};function sr(){gt=function(e,t,r){return p.utils.decode(1200,e.slice(t,r)).replace(c,"")},$t=function(e,t,r){return p.utils.decode(65001,e.slice(t,r))},yt=function(e,t){var r=cr(e,t);return r>0?p.utils.decode(o,e.slice(t+4,t+4+r-1)):""},jt=function(e,t){var r=cr(e,t);return r>0?p.utils.decode(s,e.slice(t+4,t+4+r-1)):""},qt=function(e,t){var r=2*cr(e,t);return r>0?p.utils.decode(1200,e.slice(t+4,t+4+r-1)):""},er=function(e,t){var r=cr(e,t);return r>0?p.utils.decode(1200,e.slice(t+4,t+4+r)):""},rr=function(e,t){var r=cr(e,t);return r>0?p.utils.decode(65001,e.slice(t+4,t+4+r)):""}}e&&(yt=function(e,t){if(!n.isbuffer(e))return xt(e,t);var r=e.readuint32le(t);return r>0?e.tostring("utf8",t+4,t+4+r-1):""},jt=function(e,t){if(!n.isbuffer(e))return kt(e,t);var r=e.readuint32le(t);return r>0?e.tostring("utf8",t+4,t+4+r-1):""},qt=function(e,t){if(!n.isbuffer(e))return zt(e,t);var r=2*e.readuint32le(t);return e.tostring("utf16le",t+4,t+4+r-1)},er=function(e,t){if(!n.isbuffer(e))return qt(e,t);var r=e.readuint32le(t);return e.tostring("utf16le",t+4,t+4+r)},rr=function(e,t){if(!n.isbuffer(e))return tr(e,t);var r=e.readuint32le(t);return e.tostring("utf8",t+4,t+4+r)},ar=function(e,t){return n.isbuffer(e)?e.readdoublele(t):nr(e,t)},ir=function(e){return n.isbuffer(e)||array.isarray(e)||"undefined"!==typeof uint8array&&e instanceof uint8array}),"undefined"!==typeof p&&sr();var or=function(e,t){return e[t]},lr=function(e,t){return 256*e[t+1]+e[t]},fr=function(e,t){var r=256*e[t+1]+e[t];return r<32768?r:-1*(65535-r+1)},cr=function(e,t){return e[t+3]*(1<<24)+(e[t+2]<<16)+(e[t+1]<<8)+e[t]},hr=function(e,t){return e[t+3]<<24|e[t+2]<<16|e[t+1]<<8|e[t]},ur=function(e,t){return e[t]<<24|e[t+1]<<16|e[t+2]<<8|e[t+3]};function dr(e,t){var r,a,i,o,l,f,c="",h=[];switch(t){case"dbcs":if(f=this.l,e&&n.isbuffer(this))c=this.slice(this.l,this.l+2*e).tostring("utf16le");else for(l=0;l0?hr:ur)(this,this.l),this.l+=4,r):(a=cr(this,this.l),this.l+=4,a);case 8:case-8:if("f"===t)return a=8==e?ar(this,this.l):ar([this[this.l+7],this[this.l+6],this[this.l+5],this[this.l+4],this[this.l+3],this[this.l+2],this[this.l+1],this[this.l+0]],0),this.l+=8,a;e=8;case 16:c=jt(this,this.l,e)}}return this.l+=e,c}var pr=function(e,t,r){e[r]=255&t,e[r+1]=t>>>8&255};function mr(e,t,r){var n=0,a=0;if("dbcs"===r){for(a=0;a!=t.length;++a)pr(this,t.charcodeat(a),this.l+2*a);n=2*t.length}else if("sbcs"===r){if("undefined"!==typeof p&&874==o)for(a=0;a!=t.length;++a){var i=p.utils.encode(o,t.charat(a));this[this.l+a]=i[0]}else for(t=t.replace(/[^\x00-\x7f]/g,"_"),a=0;a!=t.length;++a)this[this.l+a]=255&t.charcodeat(a);n=t.length}else{if("hex"===r){for(;a>8}for(;this.l>>=8,this[this.l+1]=255&t;break;case 3:n=3,this[this.l]=255&t,t>>>=8,this[this.l+1]=255&t,t>>>=8,this[this.l+2]=255&t;break;case 4:n=4,function(e,t,r){e[r]=255&t,e[r+1]=t>>>8&255,e[r+2]=t>>>16&255,e[r+3]=t>>>24&255}(this,t,this.l);break;case 8:if(n=8,"f"===r){!function(e,t,r){var n=(t<0||1/t==-1/0?1:0)<<7,a=0,i=0,s=n?-t:t;isfinite(s)?0==s?a=i=0:(a=math.floor(math.log(s)/math.ln2),i=s*math.pow(2,52-a),a<=-1023&&(!isfinite(i)||i>4|n}(this,t,this.l);break}case 16:break;case-4:n=4,function(e,t,r){e[r]=255&t,e[r+1]=t>>8&255,e[r+2]=t>>16&255,e[r+3]=t>>24&255}(this,t,this.l)}}return this.l+=n,this}function gr(e,t){var r=jt(this,this.l,e.length>>1);if(r!==e)throw new error(t+"expected "+e+" saw "+r);this.l+=e.length>>1}function vr(e,t){e.l=t,e.read_shift=dr,e.chk=gr,e.write_shift=mr}function tr(e,t){e.l+=t}function wr(e){var t=s(e);return vr(t,0),t}function er(){var e=[],t=e?256:2048,r=function(e){var t=wr(e);return vr(t,0),t},n=r(t),a=function(){n&&(n.length>n.l&&((n=n.slice(0,n.l)).l=n.length),n.length>0&&e.push(n),n=null)},i=function(e){return n&&e=128?1:0)+1,n>=128&&++a,n>=16384&&++a,n>=2097152&&++a;var s=e.next(a);i<=127?s.write_shift(1,i):(s.write_shift(1,128+(127&i)),s.write_shift(1,i>>7));for(var o=0;4!=o;++o){if(!(n>=128)){s.write_shift(1,n);break}s.write_shift(1,128+(127&n)),n>>=7}n>0&&ir(r)&&e.push(r)}}function sr(e,t,r){var n=ve(e);if(t.s?(n.crel&&(n.c+=t.s.c),n.rrel&&(n.r+=t.s.r)):(n.crel&&(n.c+=t.c),n.rrel&&(n.r+=t.r)),!r||r.biff<12){for(;n.c>=256;)n.c-=256;for(;n.r>=65536;)n.r-=65536}return n}function ar(e,t,r){var n=ve(e);return n.s=sr(n.s,t.s,r),n.e=sr(n.e,t.s,r),n}function _r(e,t){if(e.crel&&e.c<0)for(e=ve(e);e.c<0;)e.c+=t>8?16384:256;if(e.rrel&&e.r<0)for(e=ve(e);e.r<0;)e.r+=t>8?1048576:t>5?65536:16384;var r=nr(e);return e.crel||null==e.crel||(r=r.replace(/^([a-z])/,"$$$1")),e.rrel||null==e.rrel||(r=function(e){return e.replace(/([a-z]|^)(\d+)$/,"$1$$$2")}(r)),r}function yr(e,t){return 0!=e.s.r||e.s.rrel||e.e.r!=(t.biff>=12?1048575:t.biff>=8?65536:16384)||e.e.rrel?0!=e.s.c||e.s.crel||e.e.c!=(t.biff>=12?16383:255)||e.e.crel?_r(e.s,t.biff)+":"+_r(e.e,t.biff):(e.s.rrel?"":"$")+xr(e.s.r)+":"+(e.e.rrel?"":"$")+xr(e.e.r):(e.s.crel?"":"$")+rr(e.s.c)+":"+(e.e.crel?"":"$")+rr(e.e.c)}function or(e){return parseint(e.replace(/\$(\d+)$/,"$1"),10)-1}function xr(e){return""+(e+1)}function cr(e){for(var t=e.replace(/^\$([a-z])/,"$1"),r=0,n=0;n!==t.length;++n)r=26*r+t.charcodeat(n)-64;return r-1}function rr(e){if(e<0)throw new error("invalid column "+e);var t="";for(++e;e;e=math.floor((e-1)/26))t=string.fromcharcode((e-1)%26+65)+t;return t}function kr(e){for(var t=0,r=0,n=0;n=48&&a<=57?t=10*t+(a-48):a>=65&&a<=90&&(r=26*r+(a-64))}return{c:r-1,r:t-1}}function nr(e){for(var t=e.c+1,r="";t;t=(t-1)/26|0)r=string.fromcharcode((t-1)%26+65)+r;return r+(e.r+1)}function ir(e){var t=e.indexof(":");return-1==t?{s:kr(e),e:kr(e)}:{s:kr(e.slice(0,t)),e:kr(e.slice(t+1))}}function dr(e,t){return"undefined"===typeof t||"number"===typeof t?dr(e.s,e.e):("string"!==typeof e&&(e=nr(e)),"string"!==typeof t&&(t=nr(t)),e==t?e:e+":"+t)}function pr(e){var t={s:{c:0,r:0},e:{c:0,r:0}},r=0,n=0,a=0,i=e.length;for(r=0;n26);++n)r=26*r+a;for(t.s.c=--r,r=0;n9);++n)r=10*r+a;if(t.s.r=--r,n===i||10!=a)return t.e.c=t.s.c,t.e.r=t.s.r,t;for(++n,r=0;n!=i&&!((a=e.charcodeat(n)-64)<1||a>26);++n)r=26*r+a;for(t.e.c=--r,r=0;n!=i&&!((a=e.charcodeat(n)-48)<0||a>9);++n)r=10*r+a;return t.e.r=--r,t}function lr(e,t){var r="d"==e.t&&t instanceof date;if(null!=e.z)try{return e.w=te(e.z,r?de(t):t)}catch(n){}try{return e.w=te((e.xf||{}).numfmtid||(r?14:0),r?de(t):t)}catch(n){return""+t}}function mr(e,t,r){return null==e||null==e.t||"z"==e.t?"":void 0!==e.w?e.w:("d"==e.t&&!e.z&&r&&r.datenf&&(e.z=r.datenf),"e"==e.t?tn[e.v]||e.v:lr(e,void 0==t?e.v:t))}function fr(e,t){var r=t&&t.sheet?t.sheet:"sheet1",n={};return n[r]=e,{sheetnames:[r],sheets:n}}function ur(e,t,r){var n=r||{},a=e?array.isarray(e):n.dense;var i=e||(a?[]:{}),s=0,o=0;if(i&&null!=n.origin){if("number"==typeof n.origin)s=n.origin;else{var l="string"==typeof n.origin?kr(n.origin):n.origin;s=l.r,o=l.c}i["!ref"]||(i["!ref"]="a1:a1")}var f={s:{c:1e7,r:1e7},e:{c:0,r:0}};if(i["!ref"]){var c=pr(i["!ref"]);f.s.c=c.s.c,f.s.r=c.s.r,f.e.c=math.max(f.e.c,c.e.c),f.e.r=math.max(f.e.r,c.e.r),-1==s&&(f.e.r=s=c.e.r+1)}for(var h=0;h!=t.length;++h)if(t[h]){if(!array.isarray(t[h]))throw new error("aoa_to_sheet expects an array of arrays");for(var u=0;u!=t[h].length;++u)if("undefined"!==typeof t[h][u]){var d={v:t[h][u]},p=s+h,m=o+u;if(f.s.r>p&&(f.s.r=p),f.s.c>m&&(f.s.c=m),f.e.r0&&t.write_shift(0,e,"dbcs"),r?t.slice(0,t.l):t}function vr(e){return{ich:e.read_shift(2),ifnt:e.read_shift(2)}}function jr(e,t){var r=e.l,n=e.read_shift(1),a=hr(e),i=[],s={t:a,h:a};if(0!==(1&n)){for(var o=e.read_shift(4),l=0;l!=o;++l)i.push(vr(e));s.r=i}else s.r=[{ich:0,ifnt:0}];return e.l=r+t,s}var zr=jr;function $r(e,t){var r=!1;return null==t&&(r=!0,t=wr(23+4*e.t.length)),t.write_shift(1,1),gr(e.t,t),t.write_shift(4,1),function(e,t){t||(t=wr(4)),t.write_shift(2,e.ich||0),t.write_shift(2,e.ifnt||0)}({ich:0,ifnt:0},t),r?t.slice(0,t.l):t}function xr(e){var t=e.read_shift(4),r=e.read_shift(2);return r+=e.read_shift(1)<<16,e.l++,{c:t,istyleref:r}}function yr(e,t){return null==t&&(t=wr(8)),t.write_shift(-4,e.c),t.write_shift(3,e.istyleref||e.s),t.write_shift(1,0),t}function kr(e){var t=e.read_shift(2);return t+=e.read_shift(1)<<16,e.l++,{c:-1,istyleref:t}}function jr(e,t){return null==t&&(t=wr(4)),t.write_shift(3,e.istyleref||e.s),t.write_shift(1,0),t}var zr=hr,qr=gr;function qr(e){var t=e.read_shift(4);return 0===t||4294967295===t?"":e.read_shift(t,"dbcs")}function en(e,t){var r=!1;return null==t&&(r=!0,t=wr(127)),t.write_shift(4,e.length>0?e.length:4294967295),e.length>0&&t.write_shift(0,e,"dbcs"),r?t.slice(0,t.l):t}var tn=hr,rn=qr,nn=en;function an(e){var t=e.slice(e.l,e.l+4),r=1&t[0],n=2&t[0];e.l+=4;var a=0===n?ar([0,0,0,0,252&t[0],t[1],t[2],t[3]],0):hr(t,0)>>2;return r?a/100:a}function sn(e,t){null==t&&(t=wr(4));var r=0,n=0,a=100*e;if(e==(0|e)&&e>=-(1<<29)&&e<1<<29?n=1:a==(0|a)&&a>=-(1<<29)&&a<1<<29&&(n=1,r=1),!n)throw new error("unsupported rknumber "+e);t.write_shift(-4,((r?a:e)<<2)+(r+2))}function on(e){var t={s:{},e:{}};return t.s.r=e.read_shift(4),t.e.r=e.read_shift(4),t.s.c=e.read_shift(4),t.e.c=e.read_shift(4),t}var ln=on,fn=function(e,t){return t||(t=wr(16)),t.write_shift(4,e.s.r),t.write_shift(4,e.e.r),t.write_shift(4,e.s.c),t.write_shift(4,e.e.c),t};function cn(e){if(e.length-e.l<8)throw"xls xnum buffer underflow";return e.read_shift(8,"f")}function hn(e,t){return(t||wr(8)).write_shift(8,e,"f")}function un(e,t){if(t||(t=wr(8)),!e||e.auto)return t.write_shift(4,0),t.write_shift(4,0),t;null!=e.index?(t.write_shift(1,2),t.write_shift(1,e.index)):null!=e.theme?(t.write_shift(1,6),t.write_shift(1,e.theme)):(t.write_shift(1,5),t.write_shift(1,0));var r=e.tint||0;if(r>0?r*=32767:r<0&&(r*=32768),t.write_shift(2,r),e.rgb&&null==e.theme){var n=e.rgb||"ffffff";"number"==typeof n&&(n=("000000"+n.tostring(16)).slice(-6)),t.write_shift(1,parseint(n.slice(0,2),16)),t.write_shift(1,parseint(n.slice(2,4),16)),t.write_shift(1,parseint(n.slice(4,6),16)),t.write_shift(1,255)}else t.write_shift(2,0),t.write_shift(1,0),t.write_shift(1,0);return t}var dn=80,pn={1:{n:"codepage",t:2},2:{n:"category",t:dn},3:{n:"presentationformat",t:dn},4:{n:"bytecount",t:3},5:{n:"linecount",t:3},6:{n:"paragraphcount",t:3},7:{n:"slidecount",t:3},8:{n:"notecount",t:3},9:{n:"hiddencount",t:3},10:{n:"multimediaclipcount",t:3},11:{n:"scalecrop",t:11},12:{n:"headingpairs",t:4108},13:{n:"titlesofparts",t:4126},14:{n:"manager",t:dn},15:{n:"company",t:dn},16:{n:"linksuptodate",t:11},17:{n:"charactercount",t:3},19:{n:"shareddoc",t:11},22:{n:"hyperlinkschanged",t:11},23:{n:"appversion",t:3,p:"version"},24:{n:"digsig",t:65},26:{n:"contenttype",t:dn},27:{n:"contentstatus",t:dn},28:{n:"language",t:dn},29:{n:"version",t:dn},255:{},2147483648:{n:"locale",t:19},2147483651:{n:"behavior",t:19},1919054434:{}},mn={1:{n:"codepage",t:2},2:{n:"title",t:dn},3:{n:"subject",t:dn},4:{n:"author",t:dn},5:{n:"keywords",t:dn},6:{n:"comments",t:dn},7:{n:"template",t:dn},8:{n:"lastauthor",t:dn},9:{n:"revnumber",t:dn},10:{n:"edittime",t:64},11:{n:"lastprinted",t:64},12:{n:"createddate",t:64},13:{n:"modifieddate",t:64},14:{n:"pagecount",t:3},15:{n:"wordcount",t:3},16:{n:"charcount",t:3},17:{n:"thumbnail",t:71},18:{n:"application",t:dn},19:{n:"docsecurity",t:3},255:{},2147483648:{n:"locale",t:19},2147483651:{n:"behavior",t:19},1919054434:{}};function gn(e){return e.map((function(e){return[e>>16&255,e>>8&255,255&e]}))}var vn=ve(gn([0,16777215,16711680,65280,255,16776960,16711935,65535,0,16777215,16711680,65280,255,16776960,16711935,65535,8388608,32768,128,8421376,8388736,32896,12632256,8421504,10066431,10040166,16777164,13434879,6684774,16744576,26316,13421823,128,16711935,16776960,65535,8388736,8388608,32896,255,52479,13434879,13434828,16777113,10079487,16751052,13408767,16764057,3368703,3394764,10079232,16763904,16750848,16737792,6710937,9868950,13158,3381606,13056,3355392,10040064,10040166,3355545,3355443,16777215,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0])),tn={0:"#null!",7:"#div/0!",15:"#value!",23:"#ref!",29:"#name?",36:"#num!",42:"#n/a",43:"#getting_data",255:"#wtf?"},wn={"application/vnd.openxmlformats-officedocument.spreadsheetml.sheet.main+xml":"workbooks","application/vnd.ms-excel.sheet.macroenabled.main+xml":"workbooks","application/vnd.ms-excel.sheet.binary.macroenabled.main":"workbooks","application/vnd.ms-excel.addin.macroenabled.main+xml":"workbooks","application/vnd.openxmlformats-officedocument.spreadsheetml.template.main+xml":"workbooks","application/vnd.openxmlformats-officedocument.spreadsheetml.worksheet+xml":"sheets","application/vnd.ms-excel.worksheet":"sheets","application/vnd.ms-excel.binindexws":"todo","application/vnd.openxmlformats-officedocument.spreadsheetml.chartsheet+xml":"charts","application/vnd.ms-excel.chartsheet":"charts","application/vnd.ms-excel.macrosheet+xml":"macros","application/vnd.ms-excel.macrosheet":"macros","application/vnd.ms-excel.intlmacrosheet":"todo","application/vnd.ms-excel.binindexms":"todo","application/vnd.openxmlformats-officedocument.spreadsheetml.dialogsheet+xml":"dialogs","application/vnd.ms-excel.dialogsheet":"dialogs","application/vnd.openxmlformats-officedocument.spreadsheetml.sharedstrings+xml":"strs","application/vnd.ms-excel.sharedstrings":"strs","application/vnd.openxmlformats-officedocument.spreadsheetml.styles+xml":"styles","application/vnd.ms-excel.styles":"styles","application/vnd.openxmlformats-package.core-properties+xml":"coreprops","application/vnd.openxmlformats-officedocument.custom-properties+xml":"custprops","application/vnd.openxmlformats-officedocument.extended-properties+xml":"extprops","application/vnd.openxmlformats-officedocument.customxmlproperties+xml":"todo","application/vnd.openxmlformats-officedocument.spreadsheetml.customproperty":"todo","application/vnd.openxmlformats-officedocument.spreadsheetml.comments+xml":"comments","application/vnd.ms-excel.comments":"comments","application/vnd.ms-excel.threadedcomments+xml":"threadedcomments","application/vnd.ms-excel.person+xml":"people","application/vnd.openxmlformats-officedocument.spreadsheetml.sheetmetadata+xml":"metadata","application/vnd.ms-excel.sheetmetadata":"metadata","application/vnd.ms-excel.pivottable":"todo","application/vnd.openxmlformats-officedocument.spreadsheetml.pivottable+xml":"todo","application/vnd.openxmlformats-officedocument.drawingml.chart+xml":"todo","application/vnd.ms-office.chartcolorstyle+xml":"todo","application/vnd.ms-office.chartstyle+xml":"todo","application/vnd.ms-office.chartex+xml":"todo","application/vnd.ms-excel.calcchain":"calcchains","application/vnd.openxmlformats-officedocument.spreadsheetml.calcchain+xml":"calcchains","application/vnd.openxmlformats-officedocument.spreadsheetml.printersettings":"todo","application/vnd.ms-office.activex":"todo","application/vnd.ms-office.activex+xml":"todo","application/vnd.ms-excel.attachedtoolbars":"todo","application/vnd.ms-excel.connections":"todo","application/vnd.openxmlformats-officedocument.spreadsheetml.connections+xml":"todo","application/vnd.ms-excel.externallink":"links","application/vnd.openxmlformats-officedocument.spreadsheetml.externallink+xml":"links","application/vnd.ms-excel.pivotcachedefinition":"todo","application/vnd.ms-excel.pivotcacherecords":"todo","application/vnd.openxmlformats-officedocument.spreadsheetml.pivotcachedefinition+xml":"todo","application/vnd.openxmlformats-officedocument.spreadsheetml.pivotcacherecords+xml":"todo","application/vnd.ms-excel.querytable":"todo","application/vnd.openxmlformats-officedocument.spreadsheetml.querytable+xml":"todo","application/vnd.ms-excel.usernames":"todo","application/vnd.ms-excel.revisionheaders":"todo","application/vnd.ms-excel.revisionlog":"todo","application/vnd.openxmlformats-officedocument.spreadsheetml.revisionheaders+xml":"todo","application/vnd.openxmlformats-officedocument.spreadsheetml.revisionlog+xml":"todo","application/vnd.openxmlformats-officedocument.spreadsheetml.usernames+xml":"todo","application/vnd.ms-excel.tablesinglecells":"todo","application/vnd.openxmlformats-officedocument.spreadsheetml.tablesinglecells+xml":"todo","application/vnd.ms-excel.slicer":"todo","application/vnd.ms-excel.slicercache":"todo","application/vnd.ms-excel.slicer+xml":"todo","application/vnd.ms-excel.slicercache+xml":"todo","application/vnd.ms-excel.wssortmap":"todo","application/vnd.ms-excel.table":"todo","application/vnd.openxmlformats-officedocument.spreadsheetml.table+xml":"todo","application/vnd.openxmlformats-officedocument.theme+xml":"themes","application/vnd.openxmlformats-officedocument.themeoverride+xml":"todo","application/vnd.ms-excel.timeline+xml":"todo","application/vnd.ms-excel.timelinecache+xml":"todo","application/vnd.ms-office.vbaproject":"vba","application/vnd.ms-office.vbaprojectsignature":"todo","application/vnd.ms-office.volatiledependencies":"todo","application/vnd.openxmlformats-officedocument.spreadsheetml.volatiledependencies+xml":"todo","application/vnd.ms-excel.controlproperties+xml":"todo","application/vnd.openxmlformats-officedocument.model+data":"todo","application/vnd.ms-excel.survey+xml":"todo","application/vnd.openxmlformats-officedocument.drawing+xml":"drawings","application/vnd.openxmlformats-officedocument.drawingml.chartshapes+xml":"todo","application/vnd.openxmlformats-officedocument.drawingml.diagramcolors+xml":"todo","application/vnd.openxmlformats-officedocument.drawingml.diagramdata+xml":"todo","application/vnd.openxmlformats-officedocument.drawingml.diagramlayout+xml":"todo","application/vnd.openxmlformats-officedocument.drawingml.diagramstyle+xml":"todo","application/vnd.openxmlformats-officedocument.vmldrawing":"todo","application/vnd.openxmlformats-package.relationships+xml":"rels","application/vnd.openxmlformats-officedocument.oleobject":"todo","image/png":"todo",sheet:"js"},en={workbooks:{xlsx:"application/vnd.openxmlformats-officedocument.spreadsheetml.sheet.main+xml",xlsm:"application/vnd.ms-excel.sheet.macroenabled.main+xml",xlsb:"application/vnd.ms-excel.sheet.binary.macroenabled.main",xlam:"application/vnd.ms-excel.addin.macroenabled.main+xml",xltx:"application/vnd.openxmlformats-officedocument.spreadsheetml.template.main+xml"},strs:{xlsx:"application/vnd.openxmlformats-officedocument.spreadsheetml.sharedstrings+xml",xlsb:"application/vnd.ms-excel.sharedstrings"},comments:{xlsx:"application/vnd.openxmlformats-officedocument.spreadsheetml.comments+xml",xlsb:"application/vnd.ms-excel.comments"},sheets:{xlsx:"application/vnd.openxmlformats-officedocument.spreadsheetml.worksheet+xml",xlsb:"application/vnd.ms-excel.worksheet"},charts:{xlsx:"application/vnd.openxmlformats-officedocument.spreadsheetml.chartsheet+xml",xlsb:"application/vnd.ms-excel.chartsheet"},dialogs:{xlsx:"application/vnd.openxmlformats-officedocument.spreadsheetml.dialogsheet+xml",xlsb:"application/vnd.ms-excel.dialogsheet"},macros:{xlsx:"application/vnd.ms-excel.macrosheet+xml",xlsb:"application/vnd.ms-excel.macrosheet"},metadata:{xlsx:"application/vnd.openxmlformats-officedocument.spreadsheetml.sheetmetadata+xml",xlsb:"application/vnd.ms-excel.sheetmetadata"},styles:{xlsx:"application/vnd.openxmlformats-officedocument.spreadsheetml.styles+xml",xlsb:"application/vnd.ms-excel.styles"}};function bn(e,t){var r,n=function(e){for(var t=[],r=ce(e),n=0;n!==r.length;++n)null==t[e[r[n]]]&&(t[e[r[n]]]=[]),t[e[r[n]]].push(r[n]);return t}(wn),a=[];a[a.length]=je,a[a.length]=gt("types",null,{xmlns:bt,"xmlns:xsd":kt,"xmlns:xsi":rt}),a=a.concat([["xml","application/xml"],["bin","application/vnd.ms-excel.sheet.binary.macroenabled.main"],["vml","application/vnd.openxmlformats-officedocument.vmldrawing"],["data","application/vnd.openxmlformats-officedocument.model+data"],["bmp","image/bmp"],["png","image/png"],["gif","image/gif"],["emf","image/x-emf"],["wmf","image/x-wmf"],["jpg","image/jpeg"],["jpeg","image/jpeg"],["tif","image/tiff"],["tiff","image/tiff"],["pdf","application/pdf"],["rels","application/vnd.openxmlformats-package.relationships+xml"]].map((function(e){return gt("default",null,{extension:e[0],contenttype:e[1]})})));var i=function(n){e[n]&&e[n].length>0&&(r=e[n][0],a[a.length]=gt("override",null,{partname:("/"==r[0]?"":"/")+r,contenttype:en[n][t.booktype]||en[n].xlsx}))},s=function(r){(e[r]||[]).foreach((function(e){a[a.length]=gt("override",null,{partname:("/"==e[0]?"":"/")+e,contenttype:en[r][t.booktype]||en[r].xlsx})}))},o=function(t){(e[t]||[]).foreach((function(e){a[a.length]=gt("override",null,{partname:("/"==e[0]?"":"/")+e,contenttype:n[t][0]})}))};return i("workbooks"),s("sheets"),s("charts"),o("themes"),["strs","styles"].foreach(i),["coreprops","extprops","custprops"].foreach(o),o("vba"),o("comments"),o("threadedcomments"),o("drawings"),s("metadata"),o("people"),a.length>2&&(a[a.length]="",a[1]=a[1].replace("/>",">")),a.join("")}var sn={wb:"http://schemas.openxmlformats.org/officedocument/2006/relationships/officedocument",sheet:"http://sheetjs.openxmlformats.org/officedocument/2006/relationships/officedocument",hlink:"http://schemas.openxmlformats.org/officedocument/2006/relationships/hyperlink",vml:"http://schemas.openxmlformats.org/officedocument/2006/relationships/vmldrawing",xpath:"http://schemas.openxmlformats.org/officedocument/2006/relationships/externallinkpath",xmiss:"http://schemas.microsoft.com/office/2006/relationships/xlexternallinkpath/xlpathmissing",xlink:"http://schemas.openxmlformats.org/officedocument/2006/relationships/externallink",cxml:"http://schemas.openxmlformats.org/officedocument/2006/relationships/customxml",cxmlp:"http://schemas.openxmlformats.org/officedocument/2006/relationships/customxmlprops",cmnt:"http://schemas.openxmlformats.org/officedocument/2006/relationships/comments",core_props:"http://schemas.openxmlformats.org/package/2006/relationships/metadata/core-properties",ext_props:"http://schemas.openxmlformats.org/officedocument/2006/relationships/extended-properties",cust_props:"http://schemas.openxmlformats.org/officedocument/2006/relationships/custom-properties",sst:"http://schemas.openxmlformats.org/officedocument/2006/relationships/sharedstrings",sty:"http://schemas.openxmlformats.org/officedocument/2006/relationships/styles",theme:"http://schemas.openxmlformats.org/officedocument/2006/relationships/theme",chart:"http://schemas.openxmlformats.org/officedocument/2006/relationships/chart",chartex:"http://schemas.microsoft.com/office/2014/relationships/chartex",cs:"http://schemas.openxmlformats.org/officedocument/2006/relationships/chartsheet",ws:["http://schemas.openxmlformats.org/officedocument/2006/relationships/worksheet","http://purl.oclc.org/ooxml/officedocument/relationships/worksheet"],ds:"http://schemas.openxmlformats.org/officedocument/2006/relationships/dialogsheet",ms:"http://schemas.microsoft.com/office/2006/relationships/xlmacrosheet",img:"http://schemas.openxmlformats.org/officedocument/2006/relationships/image",draw:"http://schemas.openxmlformats.org/officedocument/2006/relationships/drawing",xlmeta:"http://schemas.openxmlformats.org/officedocument/2006/relationships/sheetmetadata",tcmnt:"http://schemas.microsoft.com/office/2017/10/relationships/threadedcomment",people:"http://schemas.microsoft.com/office/2017/10/relationships/person",vba:"http://schemas.microsoft.com/office/2006/relationships/vbaproject"};function an(e){var t=e.lastindexof("/");return e.slice(0,t+1)+"_rels/"+e.slice(t+1)+".rels"}function _n(e){var t=[je,gt("relationships",null,{xmlns:st})];return ce(e["!id"]).foreach((function(r){t[t.length]=gt("relationship",null,e["!id"][r])})),t.length>2&&(t[t.length]="",t[1]=t[1].replace("/>",">")),t.join("")}function yn(e,t,r,n,a,i){if(a||(a={}),e["!id"]||(e["!id"]={}),e["!idx"]||(e["!idx"]=1),t<0)for(t=e["!idx"];e["!id"]["rid"+t];++t);if(e["!idx"]=t+1,a.id="rid"+t,a.type=n,a.target=r,i?a.targetmode=i:[sn.hlink,sn.xpath,sn.xmiss].indexof(a.type)>-1&&(a.targetmode="external"),e["!id"][a.id])throw new error("cannot rewrite rid "+t);return e["!id"][a.id]=a,e[("/"+a.target).replace("//","/")]=a,t}function on(e,t,r){return[' \n',' \n'," \n"].join("")}function xn(){return'sheetjs '+i.version+""}var cn=[["cp:category","category"],["cp:contentstatus","contentstatus"],["cp:keywords","keywords"],["cp:lastmodifiedby","lastauthor"],["cp:lastprinted","lastprinted"],["cp:revision","revnumber"],["cp:version","version"],["dc:creator","author"],["dc:description","comments"],["dc:identifier","identifier"],["dc:language","language"],["dc:subject","subject"],["dc:title","title"],["dcterms:created","createddate","date"],["dcterms:modified","modifieddate","date"]];function rn(e,t,r,n,a){null==a[e]&&null!=t&&""!==t&&(a[e]=t,t=tt(t),n[n.length]=r?gt(e,t,r):pt(e,t))}function kn(e,t){var r=t||{},n=[je,gt("cp:coreproperties",null,{"xmlns:cp":tt,"xmlns:dc":_t,"xmlns:dcterms":yt,"xmlns:dcmitype":ot,"xmlns:xsi":rt})],a={};if(!e&&!r.props)return n.join("");e&&(null!=e.createddate&&rn("dcterms:created","string"===typeof e.createddate?e.createddate:vt(e.createddate,r.wtf),{"xsi:type":"dcterms:w3cdtf"},n,a),null!=e.modifieddate&&rn("dcterms:modified","string"===typeof e.modifieddate?e.modifieddate:vt(e.modifieddate,r.wtf),{"xsi:type":"dcterms:w3cdtf"},n,a));for(var i=0;i!=cn.length;++i){var s=cn[i],o=r.props&&null!=r.props[s[1]]?r.props[s[1]]:e?e[s[1]]:null;!0===o?o="1":!1===o?o="0":"number"==typeof o&&(o=string(o)),null!=o&&rn(s[0],o,null,n,a)}return n.length>2&&(n[n.length]="",n[1]=n[1].replace("/>",">")),n.join("")}var nn=[["application","application","string"],["appversion","appversion","string"],["company","company","string"],["docsecurity","docsecurity","string"],["manager","manager","string"],["hyperlinkschanged","hyperlinkschanged","bool"],["shareddoc","shareddoc","bool"],["linksuptodate","linksuptodate","bool"],["scalecrop","scalecrop","bool"],["headingpairs","headingpairs","raw"],["titlesofparts","titlesofparts","raw"]],in=["worksheets","sheetnames","namedranges","definednames","chartsheets","chartnames"];function dn(e){var t=[],r=gt;return e||(e={}),e.application="sheetjs",t[t.length]=je,t[t.length]=gt("properties",null,{xmlns:et,"xmlns:vt":ct}),nn.foreach((function(n){if(void 0!==e[n[1]]){var a;switch(n[2]){case"string":a=tt(string(e[n[1]]));break;case"bool":a=e[n[1]]?"true":"false"}void 0!==a&&(t[t.length]=r(n[0],a))}})),t[t.length]=r("headingpairs",r("vt:vector",r("vt:variant","worksheets")+r("vt:variant",r("vt:i4",string(e.worksheets))),{size:2,basetype:"variant"})),t[t.length]=r("titlesofparts",r("vt:vector",e.sheetnames.map((function(e){return""+tt(e)+""})).join(""),{size:e.worksheets,basetype:"lpstr"})),t.length>2&&(t[t.length]="",t[1]=t[1].replace("/>",">")),t.join("")}function pn(e){var t=[je,gt("properties",null,{xmlns:wt,"xmlns:vt":ct})];if(!e)return t.join("");var r=1;return ce(e).foreach((function(n){++r,t[t.length]=gt("property",function(e,t){switch(typeof e){case"string":var r=gt("vt:lpwstr",tt(e));return t&&(r=r.replace(/"/g,"_x0022_")),r;case"number":return gt((0|e)==e?"vt:i4":"vt:r8",tt(string(e)));case"boolean":return gt("vt:bool",e?"true":"false")}if(e instanceof date)return gt("vt:filetime",vt(e));throw new error("unable to serialize "+e)}(e[n],!0),{fmtid:"{d5cdd505-2e9c-101b-9397-08002b2cf9ae}",pid:r,name:tt(n)})})),t.length>2&&(t[t.length]="",t[1]=t[1].replace("/>",">")),t.join("")}var ln={title:"title",subject:"subject",author:"author",keywords:"keywords",comments:"description",lastauthor:"lastauthor",revnumber:"revision",application:"appname",lastprinted:"lastprinted",createddate:"created",modifieddate:"lastsaved",category:"category",manager:"manager",company:"company",appversion:"version",contentstatus:"contentstatus",identifier:"identifier",language:"language"};function mn(e,t){var r=wr(4),n=wr(4);switch(r.write_shift(4,80==e?31:e),e){case 3:n.write_shift(-4,t);break;case 5:(n=wr(8)).write_shift(8,t,"f");break;case 11:n.write_shift(4,t?1:0);break;case 64:n=function(e){var t=("string"==typeof e?new date(date.parse(e)):e).gettime()/1e3+11644473600,r=t%math.pow(2,32),n=(t-r)/math.pow(2,32);n*=1e7;var a=(r*=1e7)/math.pow(2,32)|0;a>0&&(r%=math.pow(2,32),n+=a);var i=wr(8);return i.write_shift(4,r),i.write_shift(4,n),i}(t);break;case 31:case 80:for((n=wr(4+2*(t.length+1)+(t.length%2?0:2))).write_shift(4,t.length+1),n.write_shift(0,t,"dbcs");n.l!=n.length;)n.write_shift(1,0);break;default:throw new error("typedpropertyvalue unrecognized type "+e+" "+t)}return x([r,n])}var fn=["codepage","thumbnail","_pid_linkbase","_pid_hlinks","systemidentifier","fmtid"];function un(e){switch(typeof e){case"boolean":return 11;case"number":return(0|e)==e?3:5;case"string":return 31;case"object":if(e instanceof date)return 64}return-1}function bn(e,t,r){var n=wr(8),a=[],i=[],s=8,o=0,l=wr(8),f=wr(8);if(l.write_shift(4,2),l.write_shift(4,1200),f.write_shift(4,1),i.push(l),a.push(f),s+=8+l.length,!t){(f=wr(8)).write_shift(4,0),a.unshift(f);var c=[wr(4)];for(c[0].write_shift(4,e.length),o=0;o-1||in.indexof(e[o][0])>-1)&&null!=e[o][1]){var u=e[o][1],d=0;if(t){var p=r[d=+t[e[o][0]]];if("version"==p.p&&"string"==typeof u){var m=u.split(".");u=(+m[0]<<16)+(+m[1]||0)}l=mn(p.t,u)}else{var g=un(u);-1==g&&(g=31,u=string(u)),l=mn(g,u)}i.push(l),(f=wr(8)).write_shift(4,t?d:2+o),a.push(f),s+=8+l.length}var v=8*(i.length+1);for(o=0;o=12?2:1),a="sbcs-cont",i=s;(r&&r.biff>=8&&(s=1200),r&&8!=r.biff)?12==r.biff&&(a="wstr"):e.read_shift(1)&&(a="dbcs-cont");r.biff>=2&&r.biff<=5&&(a="cpstr");var o=n?e.read_shift(n,a):"";return s=i,o}function xn(e){var t=e.t||"",r=wr(3);r.write_shift(2,t.length),r.write_shift(1,1);var n=wr(2*t.length);return n.write_shift(2*t.length,t,"utf16le"),x([r,n])}function yn(e,t,r){if(r){if(r.biff>=2&&r.biff<=5)return e.read_shift(t,"cpstr");if(r.biff>=12)return e.read_shift(t,"dbcs-cont")}return 0===e.read_shift(1)?e.read_shift(t,"sbcs-cont"):e.read_shift(t,"dbcs-cont")}function kn(e,t,r){var n=e.read_shift(r&&2==r.biff?1:2);return 0===n?(e.l++,""):yn(e,n,r)}function jn(e,t,r){if(r.biff>5)return kn(e,0,r);var n=e.read_shift(1);return 0===n?(e.l++,""):e.read_shift(n,r.biff<=4||!e.lens?"cpstr":"sbcs-cont")}function zn(e,t,r){return r||(r=wr(3+2*e.length)),r.write_shift(2,e.length),r.write_shift(1,1),r.write_shift(31,e,"utf16le"),r}function qn(e,t){t||(t=wr(6+2*e.length)),t.write_shift(4,1+e.length);for(var r=0;r-1?31:23;switch(n.charat(0)){case"#":i=28;break;case".":i&=-3}t.write_shift(4,2),t.write_shift(4,i);var s=[8,6815827,6619237,4849780,83];for(r=0;r-1?n.slice(0,a):n;for(t.write_shift(4,2*(o.length+1)),r=0;r-1?n.slice(a+1):"",t)}else{for(s="03 03 00 00 00 00 00 00 c0 00 00 00 00 00 00 46".split(" "),r=0;r8?4:2;return[e.read_shift(n),e.read_shift(n,"i"),e.read_shift(n,"i")]}function ra(e){var t=e.read_shift(2),r=e.read_shift(2);return{s:{c:e.read_shift(2),r:t},e:{c:e.read_shift(2),r:r}}}function na(e,t){return t||(t=wr(8)),t.write_shift(2,e.s.r),t.write_shift(2,e.e.r),t.write_shift(2,e.s.c),t.write_shift(2,e.e.c),t}function aa(e,t,r){var n=1536,a=16;switch(r.booktype){case"biff8":break;case"biff5":n=1280,a=8;break;case"biff4":n=4,a=6;break;case"biff3":n=3,a=6;break;case"biff2":n=2,a=4;break;case"xla":break;default:throw new error("unsupported biff version")}var i=wr(a);return i.write_shift(2,n),i.write_shift(2,t),a>4&&i.write_shift(2,29282),a>6&&i.write_shift(2,1997),a>8&&(i.write_shift(2,49161),i.write_shift(2,1),i.write_shift(2,1798),i.write_shift(2,0)),i}function ia(e,t){var r=!t||t.biff>=8?2:1,n=wr(8+r*e.name.length);n.write_shift(4,e.pos),n.write_shift(1,e.hs||0),n.write_shift(1,e.dt),n.write_shift(1,e.name.length),t.biff>=8&&n.write_shift(1,1),n.write_shift(r*e.name.length,e.name,t.biff<8?"sbcs":"utf16le");var a=n.slice(0,n.l);return a.l=n.l,a}function sa(e,t,r,n){var a=r&&5==r.biff;n||(n=wr(a?3+t.length:5+2*t.length)),n.write_shift(2,e),n.write_shift(a?1:2,t.length),a||n.write_shift(1,1),n.write_shift((a?1:2)*t.length,t,a?"sbcs":"utf16le");var i=n.length>n.l?n.slice(0,n.l):n;return null==i.l&&(i.l=i.length),i}function oa(e,t,r,n){var a=r&&5==r.biff;n||(n=wr(a?16:20)),n.write_shift(2,0),e.style?(n.write_shift(2,e.numfmtid||0),n.write_shift(2,65524)):(n.write_shift(2,e.numfmtid||0),n.write_shift(2,t<<4));var i=0;return e.numfmtid>0&&a&&(i|=1024),n.write_shift(4,i),n.write_shift(4,0),a||n.write_shift(4,0),n.write_shift(2,0),n}function la(e,t,r){if(r.biff<8)return function(e,t,r){3==e[e.l+1]&&e[e.l]++;var n=$n(e,0,r);return 3==n.charcodeat(0)?n.slice(1):n}(e,0,r);for(var n=[],a=e.l+t,i=e.read_shift(r.biff>8?4:2);0!==i--;)n.push(ta(e,r.biff,r));if(e.l!=a)throw new error("bad externsheet: "+e.l+" != "+a);return n}function fa(e){var t=wr(24),r=kr(e[0]);t.write_shift(2,r.r),t.write_shift(2,r.r),t.write_shift(2,r.c),t.write_shift(2,r.c);for(var n="d0 c9 ea 79 f9 ba ce 11 8c 82 00 aa 00 4b a9 0b".split(" "),a=0;a<16;++a)t.write_shift(1,parseint(n[a],16));return x([t,qn(e[1])])}function ca(e){var t=e[1].tooltip,r=wr(10+2*(t.length+1));r.write_shift(2,2048);var n=kr(e[0]);r.write_shift(2,n.r),r.write_shift(2,n.r),r.write_shift(2,n.c),r.write_shift(2,n.c);for(var a=0;a=12?4:2,a=e.read_shift(n),i=e.read_shift(n),s=e.read_shift(n),o=e.read_shift(n),l=e.read_shift(2);2==n&&(e.l+=2);var f={s:a,e:i,w:s,ixfe:o,flags:l};return(r.biff>=5||!r.biff)&&(f.level=l>>8&7),f}var ua=function(){var e={1:437,2:850,3:1252,4:1e4,100:852,101:866,102:865,103:861,104:895,105:620,106:737,107:857,120:950,121:949,122:936,123:932,124:874,125:1255,126:1256,150:10007,151:10029,152:10006,200:1250,201:1251,202:1254,203:1253,0:20127,8:865,9:437,10:850,11:437,13:437,14:850,15:437,16:850,17:437,18:850,19:932,20:850,21:437,22:850,23:865,24:437,25:437,26:850,27:437,28:863,29:850,31:852,34:852,35:852,36:860,37:850,38:866,55:850,64:852,77:936,78:949,79:950,80:874,87:1252,88:1252,89:1252,108:863,134:737,135:852,136:857,204:1257,255:16969},t=ke({1:437,2:850,3:1252,4:1e4,100:852,101:866,102:865,103:861,104:895,105:620,106:737,107:857,120:950,121:949,122:936,123:932,124:874,125:1255,126:1256,150:10007,151:10029,152:10006,200:1250,201:1251,202:1254,203:1253,0:20127});function r(t,r){var n=r||{};n.datenf||(n.datenf="yyyymmdd");var a=br(function(t,r){var n=[],a=s(1);switch(r.type){case"base64":a=_(w(t));break;case"binary":a=_(t);break;case"buffer":case"array":a=t}vr(a,0);var i=a.read_shift(1),s=!!(136&i),o=!1,l=!1;switch(i){case 2:case 3:break;case 48:case 49:o=!0,s=!0;break;case 131:case 139:break;case 140:l=!0;break;case 245:break;default:throw new error("dbf unsupported version: "+i.tostring(16))}var f=0,c=521;2==i&&(f=a.read_shift(2)),a.l+=3,2!=i&&(f=a.read_shift(4)),f>1048576&&(f=1e6),2!=i&&(c=a.read_shift(2));var h=a.read_shift(2),u=r.codepage||1252;2!=i&&(a.l+=16,a.read_shift(1),0!==a[a.l]&&(u=e[a[a.l]]),a.l+=1,a.l+=2),l&&(a.l+=36);for(var d=[],m={},g=math.min(a.length,2==i?521:c-10-(o?264:0)),v=l?32:11;a.l0;)if(42!==a[a.l])for(++a.l,n[++t]=[],e=0,e=0;e!=d.length;++e){var b=a.slice(a.l,a.l+d[e].len);a.l+=d[e].len,vr(b,0);var a=p.utils.decode(u,b);switch(d[e].type){case"c":a.trim().length&&(n[t][e]=a.replace(/\s+$/,""));break;case"d":8===a.length?n[t][e]=new date(+a.slice(0,4),+a.slice(4,6)-1,+a.slice(6,8)):n[t][e]=a;break;case"f":n[t][e]=parsefloat(a.trim());break;case"+":case"i":n[t][e]=l?2147483648^b.read_shift(-4,"i"):b.read_shift(4,"i");break;case"l":switch(a.trim().touppercase()){case"y":case"t":n[t][e]=!0;break;case"n":case"f":n[t][e]=!1;break;case"":case"?":break;default:throw new error("dbf unrecognized l:|"+a+"|")}break;case"m":if(!s)throw new error("dbf unexpected memo for type "+i.tostring(16));n[t][e]="##memo##"+(l?parseint(a.trim(),10):b.read_shift(4));break;case"n":(a=a.replace(/\u0000/g,"").trim())&&"."!=a&&(n[t][e]=+a||0);break;case"@":n[t][e]=new date(b.read_shift(-8,"f")-621356832e5);break;case"t":n[t][e]=new date(864e5*(b.read_shift(4)-2440588)+b.read_shift(4));break;case"y":n[t][e]=b.read_shift(4,"i")/1e4+b.read_shift(4,"i")/1e4*math.pow(2,32);break;case"o":n[t][e]=-b.read_shift(-8,"f");break;case"b":if(o&&8==d[e].len){n[t][e]=b.read_shift(8,"f");break}case"g":case"p":b.l+=d[e].len;break;case"0":if("_nullflags"===d[e].name)break;default:throw new error("dbf unsupported data type "+d[e].type)}}else a.l+=h;if(2!=i&&a.l=0&&h(+a.codepage),"string"==a.type)throw new error("cannot write dbf to js string");var i=er(),s=ro(e,{header:1,raw:!0,celldates:!0}),l=s[0],f=s.slice(1),c=e["!cols"]||[],u=0,d=0,p=0,m=1;for(u=0;u250&&(s=250),"c"==(b=((c[u]||{}).dbf||{}).type)&&c[u].dbf.len>s&&(s=c[u].dbf.len),"b"==e&&"n"==b&&(e="n",w[u]=c[u].dbf.dec,s=c[u].dbf.len),t[u]="c"==e||"n"==b?s:n[e]||0,m+=t[u],v[u]=e}else v[u]="?"}var _=i.next(32);for(_.write_shift(4,318902576),_.write_shift(4,f.length),_.write_shift(2,296+32*p),_.write_shift(2,m),u=0;u<4;++u)_.write_shift(4,0);for(_.write_shift(4,0|(+t[o]||3)<<8),u=0,d=0;u":190,"?":191,"{":223},t=new regexp("\x1bn("+ce(e).join("|").replace(/\|\|\|/,"|\\||").replace(/([?()+])/g,"\\$1")+"|\\|)","gm"),r=function(t,r){var n=e[r];return"number"==typeof n?g(n):n},a=function(e,t,r){var n=t.charcodeat(0)-32<<4|r.charcodeat(0)-48;return 59==n?e:g(n)};function i(e,n){var i,s=e.split(/[\n\r]+/),o=-1,l=-1,f=0,c=0,u=[],d=[],m=null,g={},v=[],t=[],w=[],e=0;for(+n.codepage>=0&&h(+n.codepage);f!==s.length;++f){e=0;var b,s=s[f].trim().replace(/\x1b([\x20-\x2f])([\x30-\x3f])/g,a).replace(t,r),a=s.replace(/;;/g,"\0").split(";").map((function(e){return e.replace(/\u0000/g,";")})),_=a[0];if(s.length>0)switch(_){case"id":case"e":case"b":case"o":case"w":break;case"p":"p"==a[1].charat(0)&&d.push(s.slice(3).replace(/;;/g,";"));break;case"c":var y=!1,o=!1,x=!1,c=!1,r=-1,k=-1;for(c=1;c-1&&u[r][k];if(!i||!i[1])throw new error("sylk shared formula cannot find base");u[o][l][1]=si(i[1],{r:o-r,c:l-k})}break;case"f":var d=0;for(c=1;c0?(v[o].hpt=e,v[o].hpx=ia(e)):0===e&&(v[o].hidden=!0);break;default:if(n&&n.wtf)throw new error("sylk bad record "+s)}d<1&&(m=null);break;default:if(n&&n.wtf)throw new error("sylk bad record "+s)}}return v.length>0&&(g["!rows"]=v),t.length>0&&(g["!cols"]=t),n&&n.sheetrows&&(u=u.slice(0,n.sheetrows)),[u,g]}function s(e,t){var r=function(e,t){switch(t.type){case"base64":return i(w(e),t);case"binary":return i(e,t);case"buffer":return i(e&&n.isbuffer(e)?e.tostring("binary"):o(e),t);case"array":return i(ge(e),t)}throw new error("unrecognized type "+t.type)}(e,t),a=r[0],s=r[1],o=br(a,t);return ce(s).foreach((function(e){o[e]=s[e]})),o}function o(e,t,r,n){var a="c;y"+(r+1)+";x"+(n+1)+";k";switch(e.t){case"n":a+=e.v||0,e.f&&!e.f&&(a+=";e"+ii(e.f,{r:r,c:n}));break;case"b":a+=e.v?"true":"false";break;case"e":a+=e.w||e.v;break;case"d":a+='"'+(e.w||e.v)+'"';break;case"s":a+='"'+e.v.replace(/"/g,"").replace(/;/g,";;")+'"'}return a}return e["|"]=254,{to_workbook:function(e,t){return fr(s(e,t),t)},to_sheet:s,from_sheet:function(e,t){var r,n,a=["id;pwxl;n;e"],i=[],s=pr(e["!ref"]),l=array.isarray(e),f="\r\n";a.push("p;pgeneral"),a.push("f;p0;dg0g8;m255"),e["!cols"]&&(n=a,e["!cols"].foreach((function(e,t){var r="f;w"+(t+1)+" "+(t+1)+" ";e.hidden?r+="0":("number"!=typeof e.width||e.wpx||(e.wpx=xa(e.width)),"number"!=typeof e.wpx||e.wch||(e.wch=ca(e.wpx)),"number"==typeof e.wch&&(r+=math.round(e.wch)))," "!=r.charat(r.length-1)&&n.push(r)}))),e["!rows"]&&function(e,t){t.foreach((function(t,r){var n="f;";t.hidden?n+="m0;":t.hpt?n+="m"+20*t.hpt+";":t.hpx&&(n+="m"+20*na(t.hpx)+";"),n.length>2&&e.push(n+"r"+(r+1))}))}(a,e["!rows"]),a.push("b;y"+(s.e.r-s.s.r+1)+";x"+(s.e.c-s.s.c+1)+";d"+[s.s.c,s.s.r,s.e.c,s.e.r].join(" "));for(var c=s.s.r;c<=s.e.r;++c)for(var h=s.s.c;h<=s.e.c;++h){var u=nr({r:c,c:h});(r=l?(e[c]||[])[h]:e[u])&&(null!=r.v||r.f&&!r.f)&&i.push(o(r,0,c,h))}return a.join(f)+f+i.join(f)+f+"e"+f}}}(),pa=function(){function e(e,t){for(var r=e.split("\n"),n=-1,a=-1,i=0,s=[];i!==r.length;++i)if("bot"!==r[i].trim()){if(!(n<0)){for(var o=r[i].trim().split(","),l=o[0],f=o[1],c=r[++i]||"";1&(c.match(/["]/g)||[]).length&&i=0?o=f:a=f}})),l>=0&&-1==o&&a>=0&&(o=a,a=-1);var f=(""+(n>=0?n:(new date).getfullyear())).slice(-4)+"-"+("00"+(a>=1?a:1)).slice(-2)+"-"+("00"+(i>=1?i:1)).slice(-2);7==f.length&&(f="0"+f),8==f.length&&(f="20"+f);var c=("00"+(s>=0?s:0)).slice(-2)+":"+("00"+(o>=0?o:0)).slice(-2)+":"+("00"+(l>=0?l:0)).slice(-2);return-1==s&&-1==o&&-1==l?f:-1==n&&-1==a&&-1==i?c:f+"t"+c}(0,r.datenf,t.match(g)||[]),a=1),r.celldates?(n.t="d",n.v=he(t,a)):(n.t="n",n.v=de(he(t,a))),!1!==r.celltext&&(n.w=te(n.z,n.v instanceof date?de(n.v):n.v)),r.cellnf||delete n.z}else n.t="s",n.v=t;else n.t="n",!1!==r.celltext&&(n.w=t),n.v=f;if("z"==n.t||(r.dense?(i[o]||(i[o]=[]),i[o][l]=n):i[nr({c:l,r:o})]=n),c=h+1,m=e.charcodeat(c),s.e.c0&&v(),i["!ref"]=dr(s),i}function s(t,r){return r&&r.prn?r.fs||"sep="==t.slice(0,4)||t.indexof("\t")>=0||t.indexof(",")>=0||t.indexof(";")>=0?i(t,r):br(function(t,r){var n=r||{},a=[];if(!t||0===t.length)return a;for(var i=t.split(/[\r\n]/),s=i.length-1;s>=0&&0===i[s].length;)--s;for(var o=10,l=0,f=0;f<=s;++f)-1==(l=i[f].indexof(" "))?l=i[f].length:l++,o=math.max(o,l);for(f=0;f<=s;++f){a[f]=[];var c=0;for(e(i[f].slice(0,o).trim(),a,f,c,n),c=1;c<=(i[f].length-o)/10+1;++c)e(i[f].slice(o+10*(c-1),o+10*c).trim(),a,f,c,n)}return n.sheetrows&&(a=a.slice(0,n.sheetrows)),a}(t,r),r):i(t,r)}function o(e,t){var r="",a="string"==t.type?[0,0,0,0]:so(e,t);switch(t.type){case"base64":r=w(e);break;case"binary":r=e;break;case"buffer":r=65001==t.codepage?e.tostring("utf8"):t.codepage&&"undefined"!==typeof p?p.utils.decode(t.codepage,e):e&&n.isbuffer(e)?e.tostring("binary"):o(e);break;case"array":r=ge(e);break;case"string":r=e;break;default:throw new error("unrecognized type "+t.type)}return 239==a[0]&&187==a[1]&&191==a[2]?r=ct(r.slice(3)):"string"!=t.type&&"buffer"!=t.type&&65001==t.codepage?r=ct(r):"binary"==t.type&&"undefined"!==typeof p&&t.codepage&&(r=p.utils.decode(t.codepage,p.utils.encode(28591,r))),"socialcalc:version:"==r.slice(0,19)?ma.to_sheet("string"==t.type?r:ct(r),t):s(r,t)}return{to_workbook:function(e,t){return fr(o(e,t),t)},to_sheet:o,from_sheet:function(e){for(var t,r=[],n=pr(e["!ref"]),a=array.isarray(e),i=n.s.r;i<=n.e.r;++i){for(var s=[],o=n.s.c;o<=n.e.c;++o){var l=nr({r:i,c:o});if((t=a?(e[i]||[])[o]:e[l])&&null!=t.v){for(var f=(t.w||(mr(t),t.w)||"").slice(0,10);f.length<10;)f+=" ";s.push(f+(0===o?" ":""))}else s.push(" ")}r.push(s.join(""))}return r.join("\n")}}}();var va=function(){function e(e,t,r){if(e){vr(e,e.l||0);for(var n=r.enum||t;e.l=16&&5==t[14]&&108===t[15])throw new error("unsupported works 3 for mac file");if(2==t[2])n.enum=t,e(t,(function(e,t,r){switch(r){case 0:n.vers=e,e>=4096&&(n.qpro=!0);break;case 6:h=e;break;case 204:e&&(s=e);break;case 222:s=e;break;case 15:case 51:n.qpro||(e[1].v=e[1].v.slice(1));case 13:case 14:case 16:14==r&&112==(112&e[2])&&(15&e[2])>1&&(15&e[2])<15&&(e[1].z=n.datenf||b[14],n.celldates&&(e[1].t="d",e[1].v=fe(e[1].v))),n.qpro&&e[3]>o&&(a["!ref"]=dr(h),l[i]=a,f.push(i),a=n.dense?[]:{},h={s:{r:0,c:0},e:{r:0,c:0}},o=e[3],i=s||"sheet"+(o+1),s="");var c=n.dense?(a[e[0].r]||[])[e[0].c]:a[nr(e[0])];if(c){c.t=e[1].t,c.v=e[1].v,null!=e[1].z&&(c.z=e[1].z),null!=e[1].f&&(c.f=e[1].f);break}n.dense?(a[e[0].r]||(a[e[0].r]=[]),a[e[0].r][e[0].c]=e[1]):a[nr(e[0])]=e[1]}}),n);else{if(26!=t[2]&&14!=t[2])throw new error("unrecognized lotus bof "+t[2]);n.enum=e,14==t[2]&&(n.qpro=!0,t.l=0),e(t,(function(e,t,r){switch(r){case 204:i=e;break;case 22:e[1].v=e[1].v.slice(1);case 23:case 24:case 25:case 37:case 39:case 40:if(e[3]>o&&(a["!ref"]=dr(h),l[i]=a,f.push(i),a=n.dense?[]:{},h={s:{r:0,c:0},e:{r:0,c:0}},o=e[3],i="sheet"+(o+1)),u>0&&e[0].r>=u)break;n.dense?(a[e[0].r]||(a[e[0].r]=[]),a[e[0].r][e[0].c]=e[1]):a[nr(e[0])]=e[1],h.e.c=128?95:i)}return n.write_shift(1,0),n}function i(e,t,r){var n=wr(7);return n.write_shift(1,255),n.write_shift(2,t),n.write_shift(2,e),n.write_shift(2,r,"i"),n}function s(e,t,r){var n=wr(13);return n.write_shift(1,255),n.write_shift(2,t),n.write_shift(2,e),n.write_shift(8,r,"f"),n}function o(e,t,r){var n=32768&t;return t=(n?e:0)+((t&=-32769)>=8192?t-16384:t),(n?"":"$")+(r?rr(t):xr(t))}var l={51:["false",0],52:["true",0],70:["len",1],80:["sum",69],81:["averagea",69],82:["counta",69],83:["mina",69],84:["maxa",69],111:["t",1]},f=["","","","","","","","","","+","-","*","/","^","=","<>","<=",">=","<",">","","","","","&","","","","","","",""];function c(e){var t=[{c:0,r:0},{t:"n",v:0},0];return t[0].r=e.read_shift(2),t[3]=e[e.l++],t[0].c=e[e.l++],t}function u(e,t,r,n){var a=wr(6+n.length);a.write_shift(2,e),a.write_shift(1,r),a.write_shift(1,t),a.write_shift(1,39);for(var i=0;i=128?95:s)}return a.write_shift(1,0),a}function d(e,t){var r=c(e),n=e.read_shift(4),a=e.read_shift(4),i=e.read_shift(2);if(65535==i)return 0===n&&3221225472===a?(r[1].t="e",r[1].v=15):0===n&&3489660928===a?(r[1].t="e",r[1].v=42):r[1].v=0,r;var s=32768&i;return i=(32767&i)-16446,r[1].v=(1-2*s)*(a*math.pow(2,i+32)+n*math.pow(2,i)),r}function p(e,t,r,n){var a=wr(14);if(a.write_shift(2,e),a.write_shift(1,r),a.write_shift(1,t),0==n)return a.write_shift(4,0),a.write_shift(4,0),a.write_shift(2,65535),a;var i,s=0,o=0,l=0;return n<0&&(s=1,n=-n),o=0|math.log2(n),0==(2147483648&(l=(n/=math.pow(2,o-31))>>>0))&&(++o,l=(n/=2)>>>0),n-=l,l|=2147483648,l>>>=0,i=(n*=math.pow(2,32))>>>0,a.write_shift(4,i),a.write_shift(4,l),o+=16383+(s?32768:0),a.write_shift(2,o),a}function m(e,t){var r=c(e),n=e.read_shift(8,"f");return r[1].v=n,r}function g(e,t){return 0==e[e.l+t-1]?e.read_shift(t,"cstr"):""}function v(e,t){var r=wr(5+e.length);r.write_shift(2,14e3),r.write_shift(2,t);for(var n=0;n127?95:a}return r[r.l++]=0,r}var t={0:{n:"bof",f:vn},1:{n:"eof"},2:{n:"calcmode"},3:{n:"calcorder"},4:{n:"split"},5:{n:"sync"},6:{n:"range",f:function(e,t,r){var n={s:{c:0,r:0},e:{c:0,r:0}};return 8==t&&r.qpro?(n.s.c=e.read_shift(1),e.l++,n.s.r=e.read_shift(2),n.e.c=e.read_shift(1),e.l++,n.e.r=e.read_shift(2),n):(n.s.c=e.read_shift(2),n.s.r=e.read_shift(2),12==t&&r.qpro&&(e.l+=2),n.e.c=e.read_shift(2),n.e.r=e.read_shift(2),12==t&&r.qpro&&(e.l+=2),65535==n.s.c&&(n.s.c=n.e.c=n.s.r=n.e.r=0),n)}},7:{n:"window1"},8:{n:"colw1"},9:{n:"wintwo"},10:{n:"colw2"},11:{n:"name"},12:{n:"blank"},13:{n:"integer",f:function(e,t,n){var a=r(e,0,n);return a[1].v=e.read_shift(2,"i"),a}},14:{n:"number",f:function(e,t,n){var a=r(e,0,n);return a[1].v=e.read_shift(8,"f"),a}},15:{n:"label",f:n},16:{n:"formula",f:function(e,t,n){var a=e.l+t,i=r(e,0,n);if(i[1].v=e.read_shift(8,"f"),n.qpro)e.l=a;else{var s=e.read_shift(2);!function(e,t){vr(e,0);var r=[],n=0,a="",i="",s="",c="";for(;e.lr.length)return void console.error("wk1 bad formula parse 0x"+h.tostring(16)+":|"+r.join("|")+"|");var m=r.slice(-n);r.length-=n,r.push(l[h][0]+"("+m.join(",")+")")}}}1==r.length?t[1].f=""+r[0]:console.error("wk1 bad formula parse |"+r.join("|")+"|")}(e.slice(e.l,e.l+s),i),e.l+=s}return i}},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:n},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:"amacro"},74:{n:"parse"},102:{n:"pranges??"},103:{n:"rranges??"},104:{n:"fname??"},105:{n:"mranges??"},204:{n:"sheetnamecs",f:g},222:{n:"sheetnamelp",f:function(e,t){var r=e[e.l++];r>t-1&&(r=t-1);for(var n="";n.length>1;if(1&r[1].v)switch(7&n){case 0:n=5e3*(n>>3);break;case 1:n=500*(n>>3);break;case 2:n=(n>>3)/20;break;case 3:n=(n>>3)/200;break;case 4:n=(n>>3)/2e3;break;case 5:n=(n>>3)/2e4;break;case 6:n=(n>>3)/16;break;case 7:n=(n>>3)/64}return r[1].v=n,r}},25:{n:"formula19",f:function(e,t){var r=d(e);return e.l+=t-14,r}},26:{n:"formula1a"},27:{n:"xformat",f:function(e,t){for(var r={},n=e.l+t;e.l>6,r}},38:{n:"??"},39:{n:"number27",f:m},40:{n:"formula28",f:function(e,t){var r=m(e);return e.l+=t-10,r}},142:{n:"??"},147:{n:"??"},150:{n:"??"},151:{n:"??"},152:{n:"??"},153:{n:"??"},154:{n:"??"},155:{n:"??"},156:{n:"??"},163:{n:"??"},174:{n:"??"},175:{n:"??"},176:{n:"??"},177:{n:"??"},184:{n:"??"},185:{n:"??"},186:{n:"??"},187:{n:"??"},188:{n:"??"},195:{n:"??"},201:{n:"??"},204:{n:"sheetnamecs",f:g},205:{n:"??"},206:{n:"??"},207:{n:"??"},208:{n:"??"},256:{n:"??"},259:{n:"??"},260:{n:"??"},261:{n:"??"},262:{n:"??"},263:{n:"??"},265:{n:"??"},266:{n:"??"},267:{n:"??"},268:{n:"??"},270:{n:"??"},271:{n:"??"},384:{n:"??"},389:{n:"??"},390:{n:"??"},393:{n:"??"},396:{n:"??"},512:{n:"??"},514:{n:"??"},513:{n:"??"},516:{n:"??"},517:{n:"??"},640:{n:"??"},641:{n:"??"},642:{n:"??"},643:{n:"??"},644:{n:"??"},645:{n:"??"},646:{n:"??"},647:{n:"??"},648:{n:"??"},658:{n:"??"},659:{n:"??"},660:{n:"??"},661:{n:"??"},662:{n:"??"},665:{n:"??"},666:{n:"??"},768:{n:"??"},772:{n:"??"},1537:{n:"sheetinfoqp",f:function(e,t,r){if(r.qpro&&!(t<21)){var n=e.read_shift(1);return e.l+=17,e.l+=1,e.l+=2,[n,e.read_shift(t-21,"cstr")]}}},1600:{n:"??"},1602:{n:"??"},1793:{n:"??"},1794:{n:"??"},1795:{n:"??"},1796:{n:"??"},1920:{n:"??"},2048:{n:"??"},2049:{n:"??"},2052:{n:"??"},2688:{n:"??"},10998:{n:"??"},12849:{n:"??"},28233:{n:"??"},28484:{n:"??"},65535:{n:""}};return{sheet_to_wk1:function(e,t){var r=t||{};if(+r.codepage>=0&&h(+r.codepage),"string"==r.type)throw new error("cannot write wk1 to js string");var n=er(),o=pr(e["!ref"]),l=array.isarray(e),f=[];ds(n,0,function(e){var t=wr(2);return t.write_shift(2,e),t}(1030)),ds(n,6,function(e){var t=wr(8);return t.write_shift(2,e.s.c),t.write_shift(2,e.s.r),t.write_shift(2,e.e.c),t.write_shift(2,e.e.r),t}(o));for(var c=math.min(o.e.r,8191),u=o.s.r;u<=c;++u)for(var d=xr(u),p=o.s.c;p<=o.e.c;++p){u===o.s.r&&(f[p]=rr(p));var m=f[p]+d,g=l?(e[u]||[])[p]:e[m];if(g&&"z"!=g.t)if("n"==g.t)(0|g.v)==g.v&&g.v>=-32768&&g.v<=32767?ds(n,13,i(u,p,g.v)):ds(n,14,s(u,p,g.v));else ds(n,15,a(u,p,mr(g).slice(0,239)))}return ds(n,1),n.end()},book_to_wk3:function(e,t){var r=t||{};if(+r.codepage>=0&&h(+r.codepage),"string"==r.type)throw new error("cannot write wk3 to js string");var n=er();ds(n,0,function(e){var t=wr(26);t.write_shift(2,4096),t.write_shift(2,4),t.write_shift(4,0);for(var r=0,n=0,a=0,i=0;i8191&&(r=8191);return t.write_shift(2,r),t.write_shift(1,a),t.write_shift(1,n),t.write_shift(2,0),t.write_shift(2,0),t.write_shift(1,1),t.write_shift(1,2),t.write_shift(4,0),t.write_shift(4,0),t}(e));for(var a=0,i=0;a";a.r?i+=a.r:(i+=""),i+="",r[r.length]=i}return r.length>2&&(r[r.length]="",r[1]=r[1].replace("/>",">")),r.join("")}var ea=function(e,t){var r=!1;return null==t&&(r=!0,t=wr(15+4*e.t.length)),t.write_shift(1,0),gr(e.t,t),r?t.slice(0,t.l):t};function ba(e){var t=er();br(t,159,function(e,t){return t||(t=wr(8)),t.write_shift(4,e.count),t.write_shift(4,e.unique),t}(e));for(var r=0;r=0;--r)n=((0===(16384&n)?0:1)|n<<1&32767)^t[r];return 52811^n}var _a=function(){function e(e,r){switch(r.type){case"base64":return t(w(e),r);case"binary":return t(e,r);case"buffer":return t(e&&n.isbuffer(e)?e.tostring("binary"):o(e),r);case"array":return t(ge(e),r)}throw new error("unrecognized type "+r.type)}function t(e,t){var r=(t||{}).dense?[]:{},n=e.match(/\\trowd.*?\\row\b/g);if(!n.length)throw new error("rtf missing table");var a={s:{c:0,r:0},e:{c:0,r:n.length-1}};return n.foreach((function(e,t){array.isarray(r)&&(r[t]=[]);for(var n,i=/\\\w+\b/g,s=0,o=-1;n=i.exec(e);){switch(n[0]){case"\\cell":var l=e.slice(s,i.lastindex-n[0].length);if(" "==l[0]&&(l=l.slice(1)),++o,l.length){var f={v:l,t:"s"};array.isarray(r)?r[t][o]=f:r[nr({r:t,c:o})]=f}}s=i.lastindex}o>a.e.c&&(a.e.c=o)})),r["!ref"]=dr(a),r}return{to_workbook:function(t,r){return fr(e(t,r),r)},to_sheet:e,from_sheet:function(e){for(var t,r=["{\\rtf1\\ansi"],n=pr(e["!ref"]),a=array.isarray(e),i=n.s.r;i<=n.e.r;++i){r.push("\\trowd\\trautofit1");for(var s=n.s.c;s<=n.e.c;++s)r.push("\\cellx"+(s+1));for(r.push("\\pard\\intbl"),s=n.s.c;s<=n.e.c;++s){var o=nr({r:i,c:s});(t=a?(e[i]||[])[s]:e[o])&&(null!=t.v||t.f&&!t.f)&&(r.push(" "+(t.w||(mr(t),t.w))),r.push("\\cell"))}r.push("\\pard\\intbl\\row")}return r.join("")+"}"}}}();function ya(e){for(var t=0,r=1;3!=t;++t)r=256*r+(e[t]>255?255:e[t]<0?0:e[t]);return r.tostring(16).touppercase().slice(1)}var oa=6;function xa(e){return math.floor((e+math.round(128/oa)/256)*oa)}function ca(e){return math.floor((e-5)/oa*100+.5)/100}function ra(e){return math.round((e*oa+5)/oa*256)/256}function ka(e){e.width?(e.wpx=xa(e.width),e.wch=ca(e.wpx),e.mdw=oa):e.wpx?(e.wch=ca(e.wpx),e.width=ra(e.wch),e.mdw=oa):"number"==typeof e.wch&&(e.width=ra(e.wch),e.wpx=xa(e.width),e.mdw=oa),e.customwidth&&delete e.customwidth}function na(e){return 96*e/96}function ia(e){return 96*e/96}function da(e,t){var r,n=[je,gt("stylesheet",null,{xmlns:nt[0],"xmlns:vt":ct})];return e.ssf&&null!=(r=function(e){var t=[""];return[[5,8],[23,26],[41,44],[50,392]].foreach((function(r){for(var n=r[0];n<=r[1];++n)null!=e[n]&&(t[t.length]=gt("numfmt",null,{numfmtid:n,formatcode:tt(e[n])}))})),1===t.length?"":(t[t.length]="",t[0]=gt("numfmts",null,{count:t.length-2}).replace("/>",">"),t.join(""))}(e.ssf))&&(n[n.length]=r),n[n.length]='',n[n.length]='',n[n.length]='',n[n.length]='',(r=function(e){var t=[];return t[t.length]=gt("cellxfs",null),e.foreach((function(e){t[t.length]=gt("xf",null,e)})),t[t.length]="",2===t.length?"":(t[0]=gt("cellxfs",null,{count:t.length-2}).replace("/>",">"),t.join(""))}(t.cellxfs))&&(n[n.length]=r),n[n.length]='',n[n.length]='',n[n.length]='',n.length>2&&(n[n.length]="",n[1]=n[1].replace("/>",">")),n.join("")}function pa(e,t,r){r||(r=wr(6+4*t.length)),r.write_shift(2,e),gr(t,r);var n=r.length>r.l?r.slice(0,r.l):r;return null==r.l&&(r.l=r.length),n}function la(e,t){t||(t=wr(153)),t.write_shift(2,20*e.sz),function(e,t){t||(t=wr(2));var r=(e.italic?2:0)|(e.strike?8:0)|(e.outline?16:0)|(e.shadow?32:0)|(e.condense?64:0)|(e.extend?128:0);t.write_shift(1,r),t.write_shift(1,0)}(e,t),t.write_shift(2,e.bold?700:400);var r=0;"superscript"==e.vertalign?r=1:"subscript"==e.vertalign&&(r=2),t.write_shift(2,r),t.write_shift(1,e.underline||0),t.write_shift(1,e.family||0),t.write_shift(1,e.charset||0),t.write_shift(1,0),un(e.color,t);var n=0;return"major"==e.scheme&&(n=1),"minor"==e.scheme&&(n=2),t.write_shift(1,n),gr(e.name,t),t.length>t.l?t.slice(0,t.l):t}var ma,fa=["none","solid","mediumgray","darkgray","lightgray","darkhorizontal","darkvertical","darkdown","darkup","darkgrid","darktrellis","lighthorizontal","lightvertical","lightdown","lightup","lightgrid","lighttrellis","gray125","gray0625"],ua=tr;function ba(e,t){t||(t=wr(84)),ma||(ma=ke(fa));var r=ma[e.patterntype];null==r&&(r=40),t.write_shift(4,r);var n=0;if(40!=r)for(un({auto:1},t),un({auto:1},t);n<12;++n)t.write_shift(4,0);else{for(;n<4;++n)t.write_shift(4,0);for(;n<12;++n)t.write_shift(4,0)}return t.length>t.l?t.slice(0,t.l):t}function wa(e,t,r){r||(r=wr(16)),r.write_shift(2,t||0),r.write_shift(2,e.numfmtid||0),r.write_shift(2,0),r.write_shift(2,0),r.write_shift(2,0),r.write_shift(1,0),r.write_shift(1,0);return r.write_shift(1,0),r.write_shift(1,0),r.write_shift(1,0),r.write_shift(1,0),r}function ha(e,t){return t||(t=wr(10)),t.write_shift(1,0),t.write_shift(1,0),t.write_shift(4,0),t.write_shift(4,0),t}var ga=tr;function va(e){var t;br(e,613,wr(1)),br(e,46,(t||(t=wr(51)),t.write_shift(1,0),ha(0,t),ha(0,t),ha(0,t),ha(0,t),ha(0,t),t.length>t.l?t.slice(0,t.l):t)),br(e,614)}function ja(e){var t,r;br(e,619,wr(1)),br(e,48,(t={xfid:0,builtinid:0,name:"normal"},r||(r=wr(52)),r.write_shift(4,t.xfid),r.write_shift(2,1),r.write_shift(1,+t.builtinid),r.write_shift(1,0),en(t.name||"",r),r.length>r.l?r.slice(0,r.l):r)),br(e,620)}function za(e){br(e,508,function(e,t,r){var n=wr(2052);return n.write_shift(4,e),en(t,n),en(r,n),n.length>n.l?n.slice(0,n.l):n}(0,"tablestylemedium9","pivotstylemedium4")),br(e,509)}function $a(e,t){var r=er();return br(r,278),function(e,t){if(t){var r=0;[[5,8],[23,26],[41,44],[50,392]].foreach((function(e){for(var n=e[0];n<=e[1];++n)null!=t[n]&&++r})),0!=r&&(br(e,615,wr(r)),[[5,8],[23,26],[41,44],[50,392]].foreach((function(r){for(var n=r[0];n<=r[1];++n)null!=t[n]&&br(e,44,pa(n,t[n]))})),br(e,616))}}(r,e.ssf),function(e){br(e,611,wr(1)),br(e,43,la({sz:12,color:{theme:1},name:"calibri",family:2,scheme:"minor"})),br(e,612)}(r),function(e){br(e,603,wr(2)),br(e,45,ba({patterntype:"none"})),br(e,45,ba({patterntype:"gray125"})),br(e,604)}(r),va(r),function(e){br(e,626,wr(1)),br(e,47,wa({numfmtid:0,fontid:0,fillid:0,borderid:0},65535)),br(e,627)}(r),function(e,t){br(e,617,wr(t.length)),t.foreach((function(t){br(e,47,wa(t,0))})),br(e,618)}(r,t.cellxfs),ja(r),function(e){br(e,505,wr(0)),br(e,506)}(r),za(r),br(r,279),r.end()}function xa(e,t){if(t&&t.themexlsx)return t.themexlsx;if(e&&"string"==typeof e.raw)return e.raw;var r=[je];return r[r.length]='',r[r.length]="",r[r.length]='',r[r.length]='',r[r.length]='',r[r.length]='',r[r.length]='',r[r.length]='',r[r.length]='',r[r.length]='',r[r.length]='',r[r.length]='',r[r.length]='',r[r.length]='',r[r.length]='',r[r.length]="",r[r.length]='',r[r.length]="",r[r.length]='',r[r.length]='',r[r.length]='',r[r.length]='',r[r.length]='',r[r.length]='',r[r.length]='',r[r.length]='',r[r.length]='',r[r.length]='',r[r.length]='',r[r.length]='',r[r.length]='',r[r.length]='',r[r.length]='',r[r.length]='',r[r.length]='',r[r.length]='',r[r.length]='',r[r.length]='',r[r.length]='',r[r.length]='',r[r.length]='',r[r.length]='',r[r.length]='',r[r.length]='',r[r.length]='',r[r.length]='',r[r.length]='',r[r.length]='',r[r.length]='',r[r.length]='',r[r.length]='',r[r.length]="",r[r.length]="",r[r.length]='',r[r.length]='',r[r.length]='',r[r.length]='',r[r.length]='',r[r.length]='',r[r.length]='',r[r.length]='',r[r.length]='',r[r.length]='',r[r.length]='',r[r.length]='',r[r.length]='',r[r.length]='',r[r.length]='',r[r.length]='',r[r.length]='',r[r.length]='',r[r.length]='',r[r.length]='',r[r.length]='',r[r.length]='',r[r.length]='',r[r.length]='',r[r.length]='',r[r.length]='',r[r.length]='',r[r.length]='',r[r.length]='',r[r.length]='',r[r.length]='',r[r.length]='',r[r.length]='',r[r.length]="",r[r.length]="",r[r.length]='',r[r.length]="",r[r.length]='',r[r.length]='',r[r.length]="",r[r.length]='',r[r.length]='',r[r.length]='',r[r.length]="",r[r.length]='',r[r.length]="",r[r.length]='',r[r.length]="",r[r.length]='',r[r.length]='',r[r.length]="",r[r.length]='',r[r.length]="",r[r.length]="",r[r.length]="",r[r.length]='',r[r.length]='',r[r.length]='',r[r.length]="",r[r.length]="",r[r.length]="",r[r.length]="",r[r.length]='',r[r.length]="",r[r.length]="",r[r.length]="",r[r.length]="",r[r.length]='',r[r.length]="",r[r.length]="",r[r.length]="",r[r.length]="",r[r.length]='',r[r.length]="",r[r.length]='',r[r.length]='',r[r.length]="",r[r.length]="",r[r.length]="",r[r.length]='',r[r.length]='',r[r.length]="",r[r.length]='',r[r.length]='',r[r.length]='',r[r.length]="",r[r.length]='',r[r.length]="",r[r.length]='',r[r.length]="",r[r.length]='',r[r.length]='',r[r.length]="",r[r.length]='',r[r.length]="",r[r.length]="",r[r.length]="",r[r.length]="",r[r.length]="",r[r.length]="",r[r.length]='',r[r.length]="",r[r.length]="",r[r.length]='',r[r.length]="",r[r.length]="",r[r.length]="",r[r.length]="",r.join("")}function ya(){var e=er();return br(e,332),br(e,334,wr(1)),br(e,335,function(e){var t=wr(12+2*e.name.length);return t.write_shift(4,e.flags),t.write_shift(4,e.version),gr(e.name,t),t.slice(0,t.l)}({name:"xldapr",version:12e4,flags:3496657072})),br(e,336),br(e,339,function(e,t){var r=wr(8+2*t.length);return r.write_shift(4,e),gr(t,r),r.slice(0,r.l)}(1,"xldapr")),br(e,52),br(e,35,wr(514)),br(e,4096,wr(0)),br(e,4097,jn(1)),br(e,36),br(e,53),br(e,340),br(e,337,function(e,t){var r=wr(8);return r.write_shift(4,e),r.write_shift(4,t?1:0),r}(1,!0)),br(e,51,function(e){var t=wr(4+8*e.length);t.write_shift(4,e.length);for(var r=0;r\n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n'),e.join("")}var ja=1024;function za(e,t){for(var r=[21600,21600],n=["m0,0l0",r[1],r[0],r[1],r[0],"0xe"].join(","),a=[gt("xml",null,{"xmlns:v":ft,"xmlns:o":it,"xmlns:x":dt,"xmlns:mv":mt}).replace(/\/>/,">"),gt("o:shapelayout",gt("o:idmap",null,{"v:ext":"edit",data:e}),{"v:ext":"edit"}),gt("v:shapetype",[gt("v:stroke",null,{joinstyle:"miter"}),gt("v:path",null,{gradientshapeok:"t","o:connecttype":"rect"})].join(""),{id:"_x0000_t202","o:spt":202,coordsize:r.join(","),path:n})];ja<1e3*e;)ja+=1e3;return t.foreach((function(e){var t=kr(e[0]),r={color2:"#beff82",type:"gradient"};"gradient"==r.type&&(r.angle="-180");var n="gradient"==r.type?gt("o:fill",null,{type:"gradientunscaled","v:ext":"view"}):null,i=gt("v:fill",n,r);++ja,a=a.concat(["",i,gt("v:shadow",null,{on:"t",obscured:"t"}),gt("v:path",null,{"o:connecttype":"none"}),'
','',"","",pt("x:anchor",[t.c+1,0,t.r+1,0,t.c+3,20,t.r+5,20].join(",")),pt("x:autofill","false"),pt("x:row",string(t.r)),pt("x:column",string(t.c)),e[1].hidden?"":"","",""])})),a.push(""),a.join("")}function qa(e){var t=[je,gt("comments",null,{xmlns:nt[0]})],r=[];return t.push(""),e.foreach((function(e){e[1].foreach((function(e){var n=tt(e.a);-1==r.indexof(n)&&(r.push(n),t.push(""+n+"")),e.t&&e.id&&-1==r.indexof("tc="+e.id)&&(r.push("tc="+e.id),t.push("tc="+e.id+""))}))})),0==r.length&&(r.push("sheetj5"),t.push("sheetj5")),t.push(""),t.push(""),e.foreach((function(e){var n=0,a=[];if(e[1][0]&&e[1][0].t&&e[1][0].id?n=r.indexof("tc="+e[1][0].id):e[1].foreach((function(e){e.a&&(n=r.indexof(tt(e.a))),a.push(e.t||"")})),t.push(''),a.length<=1)t.push(pt("t",tt(a[0]||"")));else{for(var i="comment:\n "+a[0]+"\n",s=1;s")})),t.push(""),t.length>2&&(t[t.length]="",t[1]=t[1].replace("/>",">")),t.join("")}function qa(e,t,r){var n=[je,gt("threadedcomments",null,{xmlns:at}).replace(/[\/]>/,">")];return e.foreach((function(e){var a="";(e[1]||[]).foreach((function(i,s){if(i.t){i.a&&-1==t.indexof(i.a)&&t.push(i.a);var o={ref:e[0],id:"{54ee7951-7262-4200-6969-"+("000000000000"+r.tcid++).slice(-12)+"}"};0==s?a=o.id:o.parentid=a,i.id=o.id,i.a&&(o.personid="{54ee7950-7262-4200-6969-"+("000000000000"+t.indexof(i.a)).slice(-12)+"}"),n.push(gt("threadedcomment",pt("text",i.t||""),o))}else delete i.id}))})),n.push(""),n.join("")}var ei=hr;function ti(e){var t=er(),r=[];return br(t,628),br(t,630),e.foreach((function(e){e[1].foreach((function(e){r.indexof(e.a)>-1||(r.push(e.a.slice(0,54)),br(t,632,function(e){return gr(e.slice(0,54))}(e.a)))}))})),br(t,631),br(t,633),e.foreach((function(e){e[1].foreach((function(n){n.iauthor=r.indexof(n.a);var a={s:kr(e[0]),e:kr(e[0])};br(t,635,function(e,t){return null==t&&(t=wr(36)),t.write_shift(4,e[1].iauthor),fn(e[0],t),t.write_shift(4,0),t.write_shift(4,0),t.write_shift(4,0),t.write_shift(4,0),t}([a,n])),n.t&&n.t.length>0&&br(t,637,$r(n)),br(t,636),delete n.iauthor}))})),br(t,634),br(t,629),t.end()}var ri=["xlsb","xlsm","xlam","biff8","xla"];var ni=function(){var e=/(^|[^a-za-z_])r(\[?-?\d+\]|[1-9]\d*|)c(\[?-?\d+\]|[1-9]\d*|)(?![a-za-z0-9_])/g,t={r:0,c:0};function r(e,r,n,a){var i=!1,s=!1;0==n.length?s=!0:"["==n.charat(0)&&(s=!0,n=n.slice(1,-1)),0==a.length?i=!0:"["==a.charat(0)&&(i=!0,a=a.slice(1,-1));var o=n.length>0?0|parseint(n,10):0,l=a.length>0?0|parseint(a,10):0;return i?l+=t.c:--l,s?o+=t.r:--o,r+(i?"":"$")+rr(l)+(s?"":"$")+xr(o)}return function(n,a){return t=a,n.replace(e,r)}}(),ai=/(^|[^._a-z0-9])([$]?)([a-z]{1,2}|[a-w][a-z]{2}|x[a-e][a-z]|xf[a-d])([$]?)(10[0-3]\d{4}|104[0-7]\d{3}|1048[0-4]\d{2}|10485[0-6]\d|104857[0-6]|[1-9]\d{0,5})(?![_.\(a-za-z0-9])/g,ii=function(){return function(e,t){return e.replace(ai,(function(e,r,n,a,i,s){var o=cr(a)-(n?0:t.c),l=or(s)-(i?0:t.r);return r+"r"+(0==l?"":i?l+1:"["+l+"]")+"c"+(0==o?"":n?o+1:"["+o+"]")}))}}();function si(e,t){return e.replace(ai,(function(e,r,n,a,i,s){return r+("$"==n?n+a:rr(cr(a)+t.c))+("$"==i?i+s:xr(or(s)+t.r))}))}function oi(e){e.l+=1}function li(e,t){var r=e.read_shift(1==t?1:2);return[16383&r,r>>14&1,r>>15&1]}function fi(e,t,r){var n=2;if(r){if(r.biff>=2&&r.biff<=5)return ci(e);12==r.biff&&(n=4)}var a=e.read_shift(n),i=e.read_shift(n),s=li(e,2),o=li(e,2);return{s:{r:a,c:s[0],crel:s[1],rrel:s[2]},e:{r:i,c:o[0],crel:o[1],rrel:o[2]}}}function ci(e){var t=li(e,2),r=li(e,2),n=e.read_shift(1),a=e.read_shift(1);return{s:{r:t[0],c:n,crel:t[1],rrel:t[2]},e:{r:r[0],c:a,crel:r[1],rrel:r[2]}}}function hi(e,t,r){if(r&&r.biff>=2&&r.biff<=5)return function(e){var t=li(e,2),r=e.read_shift(1);return{r:t[0],c:r,crel:t[1],rrel:t[2]}}(e);var n=e.read_shift(r&&12==r.biff?4:2),a=li(e,2);return{r:n,c:a[0],crel:a[1],rrel:a[2]}}function ui(e){var t=e.read_shift(2),r=e.read_shift(2);return{r:t,c:255&r,fquoted:!!(16384&r),crel:r>>15,rrel:r>>15}}function di(e){var t=1&e[e.l+1];return e.l+=4,[t,1]}function pi(e){return[e.read_shift(1),e.read_shift(1)]}function mi(e,t){var r=[e.read_shift(1)];if(12==t)switch(r[0]){case 2:r[0]=4;break;case 4:r[0]=16;break;case 0:r[0]=1;break;case 1:r[0]=2}switch(r[0]){case 4:r[1]=hn(e,1)?"true":"false",12!=t&&(e.l+=7);break;case 37:case 16:r[1]=tn[e[e.l]],e.l+=12==t?4:8;break;case 0:e.l+=8;break;case 1:r[1]=cn(e);break;case 2:r[1]=jn(e,0,{biff:t>0&&t<8?2:t});break;default:throw new error("bad serar: "+r[0])}return r}function gi(e,t,r){for(var n=e.read_shift(12==r.biff?4:2),a=[],i=0;i!=n;++i)a.push((12==r.biff?ln:ra)(e,8));return a}function vi(e,t,r){var n=0,a=0;12==r.biff?(n=e.read_shift(4),a=e.read_shift(4)):(a=1+e.read_shift(1),n=1+e.read_shift(2)),r.biff>=2&&r.biff<8&&(--n,0==--a&&(a=256));for(var i=0,s=[];i!=n&&(s[i]=[]);++i)for(var o=0;o!=a;++o)s[i][o]=mi(e,r.biff);return s}function ti(e,t,r){return e.l+=2,[ui(e)]}function wi(e){return e.l+=6,[]}function ei(e){return e.l+=2,[vn(e),1&e.read_shift(2)]}var bi=["data","all","headers","??","?data2","??","?dataheaders","??","totals","??","??","??","?datatotals","??","??","??","?current"];var si={1:{n:"ptgexp",f:function(e,t,r){return e.l++,r&&12==r.biff?[e.read_shift(4,"i"),0]:[e.read_shift(2),e.read_shift(r&&2==r.biff?1:2)]}},2:{n:"ptgtbl",f:tr},3:{n:"ptgadd",f:oi},4:{n:"ptgsub",f:oi},5:{n:"ptgmul",f:oi},6:{n:"ptgdiv",f:oi},7:{n:"ptgpower",f:oi},8:{n:"ptgconcat",f:oi},9:{n:"ptglt",f:oi},10:{n:"ptgle",f:oi},11:{n:"ptgeq",f:oi},12:{n:"ptgge",f:oi},13:{n:"ptggt",f:oi},14:{n:"ptgne",f:oi},15:{n:"ptgisect",f:oi},16:{n:"ptgunion",f:oi},17:{n:"ptgrange",f:oi},18:{n:"ptguplus",f:oi},19:{n:"ptguminus",f:oi},20:{n:"ptgpercent",f:oi},21:{n:"ptgparen",f:oi},22:{n:"ptgmissarg",f:oi},23:{n:"ptgstr",f:function(e,t,r){return e.l++,$n(e,0,r)}},26:{n:"ptgsheet",f:function(e,t,r){return e.l+=5,e.l+=2,e.l+=2==r.biff?1:4,["ptgsheet"]}},27:{n:"ptgendsheet",f:function(e,t,r){return e.l+=2==r.biff?4:5,["ptgendsheet"]}},28:{n:"ptgerr",f:function(e){return e.l++,tn[e.read_shift(1)]}},29:{n:"ptgbool",f:function(e){return e.l++,0!==e.read_shift(1)}},30:{n:"ptgint",f:function(e){return e.l++,e.read_shift(2)}},31:{n:"ptgnum",f:function(e){return e.l++,cn(e)}},32:{n:"ptgarray",f:function(e,t,r){var n=(96&e[e.l++])>>5;return e.l+=2==r.biff?6:12==r.biff?14:7,[n]}},33:{n:"ptgfunc",f:function(e,t,r){var n=(96&e[e.l])>>5;e.l+=1;var a=e.read_shift(r&&r.biff<=3?1:2);return[hi[a],wi[a],n]}},34:{n:"ptgfuncvar",f:function(e,t,r){var n=e[e.l++],a=e.read_shift(1),i=r&&r.biff<=3?[88==n?-1:0,e.read_shift(1)]:function(e){return[e[e.l+1]>>7,32767&e.read_shift(2)]}(e);return[a,(0===i[0]?wi:bi)[i[1]]]}},35:{n:"ptgname",f:function(e,t,r){var n=e.read_shift(1)>>>5&3,a=!r||r.biff>=8?4:2,i=e.read_shift(a);switch(r.biff){case 2:e.l+=5;break;case 3:case 4:e.l+=8;break;case 5:e.l+=12}return[n,0,i]}},36:{n:"ptgref",f:function(e,t,r){var n=(96&e[e.l])>>5;return e.l+=1,[n,hi(e,0,r)]}},37:{n:"ptgarea",f:function(e,t,r){return[(96&e[e.l++])>>5,fi(e,r.biff>=2&&r.biff,r)]}},38:{n:"ptgmemarea",f:function(e,t,r){var n=e.read_shift(1)>>>5&3;return e.l+=r&&2==r.biff?3:4,[n,e.read_shift(r&&2==r.biff?1:2)]}},39:{n:"ptgmemerr",f:tr},40:{n:"ptgmemnomem",f:tr},41:{n:"ptgmemfunc",f:function(e,t,r){return[e.read_shift(1)>>>5&3,e.read_shift(r&&2==r.biff?1:2)]}},42:{n:"ptgreferr",f:function(e,t,r){var n=e.read_shift(1)>>>5&3;return e.l+=4,r.biff<8&&e.l--,12==r.biff&&(e.l+=2),[n]}},43:{n:"ptgareaerr",f:function(e,t,r){var n=(96&e[e.l++])>>5;return e.l+=r&&r.biff>8?12:r.biff<8?6:8,[n]}},44:{n:"ptgrefn",f:function(e,t,r){var n=(96&e[e.l])>>5;return e.l+=1,[n,function(e,t,r){var n=r&&r.biff?r.biff:8;if(n>=2&&n<=5)return function(e){var t=e.read_shift(2),r=e.read_shift(1),n=(32768&t)>>15,a=(16384&t)>>14;return t&=16383,1==n&&t>=8192&&(t-=16384),1==a&&r>=128&&(r-=256),{r:t,c:r,crel:a,rrel:n}}(e);var a=e.read_shift(n>=12?4:2),i=e.read_shift(2),s=(16384&i)>>14,o=(32768&i)>>15;if(i&=16383,1==o)for(;a>524287;)a-=1048576;if(1==s)for(;i>8191;)i-=16384;return{r:a,c:i,crel:s,rrel:o}}(e,0,r)]}},45:{n:"ptgarean",f:function(e,t,r){return[(96&e[e.l++])>>5,function(e,t,r){if(r.biff<8)return ci(e);var n=e.read_shift(12==r.biff?4:2),a=e.read_shift(12==r.biff?4:2),i=li(e,2),s=li(e,2);return{s:{r:n,c:i[0],crel:i[1],rrel:i[2]},e:{r:a,c:s[0],crel:s[1],rrel:s[2]}}}(e,0,r)]}},46:{n:"ptgmemarean",f:function(e){return[e.read_shift(1)>>>5&3,e.read_shift(2)]}},47:{n:"ptgmemnomemn",f:function(e){return[e.read_shift(1)>>>5&3,e.read_shift(2)]}},57:{n:"ptgnamex",f:function(e,t,r){return 5==r.biff?function(e){var t=e.read_shift(1)>>>5&3,r=e.read_shift(2,"i");e.l+=8;var n=e.read_shift(2);return e.l+=12,[t,r,n]}(e):[e.read_shift(1)>>>5&3,e.read_shift(2),e.read_shift(4)]}},58:{n:"ptgref3d",f:function(e,t,r){var n=(96&e[e.l])>>5;e.l+=1;var a=e.read_shift(2);return r&&5==r.biff&&(e.l+=12),[n,a,hi(e,0,r)]}},59:{n:"ptgarea3d",f:function(e,t,r){var n=(96&e[e.l++])>>5,a=e.read_shift(2,"i");if(r)switch(r.biff){case 5:e.l+=12,6;break;case 12:12}return[n,a,fi(e,0,r)]}},60:{n:"ptgreferr3d",f:function(e,t,r){var n=(96&e[e.l++])>>5,a=e.read_shift(2),i=4;if(r)switch(r.biff){case 5:i=15;break;case 12:i=6}return e.l+=i,[n,a]}},61:{n:"ptgareaerr3d",f:function(e,t,r){var n=(96&e[e.l++])>>5,a=e.read_shift(2),i=8;if(r)switch(r.biff){case 5:e.l+=12,i=6;break;case 12:i=12}return e.l+=i,[n,a]}},255:{}},ai={64:32,96:32,65:33,97:33,66:34,98:34,67:35,99:35,68:36,100:36,69:37,101:37,70:38,102:38,71:39,103:39,72:40,104:40,73:41,105:41,74:42,106:42,75:43,107:43,76:44,108:44,77:45,109:45,78:46,110:46,79:47,111:47,88:34,120:34,89:57,121:57,90:58,122:58,91:59,123:59,92:60,124:60,93:61,125:61},_i={1:{n:"ptgelflel",f:ei},2:{n:"ptgelfrw",f:ti},3:{n:"ptgelfcol",f:ti},6:{n:"ptgelfrwv",f:ti},7:{n:"ptgelfcolv",f:ti},10:{n:"ptgelfradical",f:ti},11:{n:"ptgelfradicals",f:wi},13:{n:"ptgelfcols",f:wi},15:{n:"ptgelfcolsv",f:wi},16:{n:"ptgelfradicallel",f:ei},25:{n:"ptglist",f:function(e){e.l+=2;var t=e.read_shift(2),r=e.read_shift(2),n=e.read_shift(4),a=e.read_shift(2),i=e.read_shift(2);return{ixti:t,coltype:3&r,rt:bi[r>>2&31],idx:n,c:a,c:i}}},29:{n:"ptgsxname",f:function(e){return e.l+=2,[e.read_shift(4)]}},255:{}},yi={0:{n:"ptgattrnoop",f:function(e){return e.l+=4,[0,0]}},1:{n:"ptgattrsemi",f:function(e,t,r){var n=255&e[e.l+1]?1:0;return e.l+=r&&2==r.biff?3:4,[n]}},2:{n:"ptgattrif",f:function(e,t,r){var n=255&e[e.l+1]?1:0;return e.l+=2,[n,e.read_shift(r&&2==r.biff?1:2)]}},4:{n:"ptgattrchoose",f:function(e,t,r){e.l+=2;for(var n=e.read_shift(r&&2==r.biff?1:2),a=[],i=0;i<=n;++i)a.push(e.read_shift(r&&2==r.biff?1:2));return a}},8:{n:"ptgattrgoto",f:function(e,t,r){var n=255&e[e.l+1]?1:0;return e.l+=2,[n,e.read_shift(r&&2==r.biff?1:2)]}},16:{n:"ptgattrsum",f:function(e,t,r){e.l+=r&&2==r.biff?3:4}},32:{n:"ptgattrbaxcel",f:di},33:{n:"ptgattrbaxcel",f:di},64:{n:"ptgattrspace",f:function(e){return e.read_shift(2),pi(e)}},65:{n:"ptgattrspacesemi",f:function(e){return e.read_shift(2),pi(e)}},128:{n:"ptgattriferror",f:function(e){var t=255&e[e.l+1]?1:0;return e.l+=2,[t,e.read_shift(2)]}},255:{}};function oi(e,t,r,n){if(n.biff<8)return tr(e,t);for(var a=e.l+t,i=[],s=0;s!==r.length;++s)switch(r[s][0]){case"ptgarray":r[s][1]=vi(e,0,n),i.push(r[s][1]);break;case"ptgmemarea":r[s][2]=gi(e,r[s][1],n),i.push(r[s][2]);break;case"ptgexp":n&&12==n.biff&&(r[s][1][1]=e.read_shift(4),i.push(r[s][1]));break;case"ptglist":case"ptgelfradicals":case"ptgelfcols":case"ptgelfcolsv":throw"unsupported "+r[s][0]}return 0!==(t=a-e.l)&&i.push(tr(e,t)),i}function xi(e,t,r){for(var n,a,i=e.l+t,s=[];i!=e.l;)t=i-e.l,a=e[e.l],n=si[a]||si[ai[a]],24!==a&&25!==a||(n=(24===a?_i:yi)[e[e.l+1]]),n&&n.f?s.push([n.n,n.f(e,t,r)]):tr(e,t);return s}function ci(e){for(var t=[],r=0;r=",ptggt:">",ptgle:"<=",ptglt:"<",ptgmul:"*",ptgne:"<>",ptgpower:"^",ptgsub:"-"};function ki(e,t,r){if(!e)return"sh33tjserr0";if(r.biff>8&&(!e.xti||!e.xti[t]))return e.sheetnames[t];if(!e.xti)return"sh33tjserr6";var n=e.xti[t];if(r.biff<8)return t>1e4&&(t-=65536),t<0&&(t=-t),0==t?"":e.xti[t-1];if(!n)return"sh33tjserr1";var a="";if(r.biff>8)switch(e[n[0]][0]){case 357:return a=-1==n[1]?"#ref":e.sheetnames[n[1]],n[1]==n[2]?a:a+":"+e.sheetnames[n[2]];case 358:return null!=r.sid?e.sheetnames[r.sid]:"sh33tjssame"+e[n[0]][0];case 355:default:return"sh33tjssrc"+e[n[0]][0]}switch(e[n[0]][0][0]){case 1025:return a=-1==n[1]?"#ref":e.sheetnames[n[1]]||"sh33tjserr3",n[1]==n[2]?a:a+":"+e.sheetnames[n[2]];case 14849:return e[n[0]].slice(1).map((function(e){return e.name})).join(";;");default:return e[n[0]][0][3]?(a=-1==n[1]?"#ref":e[n[0]][0][3][n[1]]||"sh33tjserr4",n[1]==n[2]?a:a+":"+e[n[0]][0][3][n[2]]):"sh33tjserr2"}}function ni(e,t,r){var n=ki(e,t,r);return"#ref"==n?n:function(e,t){if(!e&&!(t&&t.biff<=5&&t.biff>=2))throw new error("empty sheet name");return/[^\w\u4e00-\u9fff\u3040-\u30ff]/.test(e)?"'"+e+"'":e}(n,r)}function ii(e,t,r,n,a){var i,s,o,l,f=a&&a.biff||8,c={s:{c:0,r:0},e:{c:0,r:0}},h=[],u=0,d=0,p="";if(!e[0]||!e[0][0])return"";for(var m=-1,g="",v=0,t=e[0].length;v=0){switch(e[0][m][1][0]){case 0:g=je(" ",e[0][m][1][1]);break;case 1:g=je("\r",e[0][m][1][1]);break;default:if(g="",a.wtf)throw new error("unexpected ptgattrspacetype "+e[0][m][1][0])}s+=g,m=-1}h.push(s+ri[w[0]]+i);break;case"ptgisect":i=h.pop(),s=h.pop(),h.push(s+" "+i);break;case"ptgunion":i=h.pop(),s=h.pop(),h.push(s+","+i);break;case"ptgrange":i=h.pop(),s=h.pop(),h.push(s+":"+i);break;case"ptgattrchoose":case"ptgattrgoto":case"ptgattrif":case"ptgattriferror":break;case"ptgref":o=sr(w[1][1],c,a),h.push(_r(o,f));break;case"ptgrefn":o=r?sr(w[1][1],r,a):w[1][1],h.push(_r(o,f));break;case"ptgref3d":u=w[1][1],o=sr(w[1][2],c,a);p=ni(n,u,a);h.push(p+"!"+_r(o,f));break;case"ptgfunc":case"ptgfuncvar":var e=w[1][0],b=w[1][1];e||(e=0);var s=0==(e&=127)?[]:h.slice(-e);h.length-=e,"user"===b&&(b=s.shift()),h.push(b+"("+s.join(",")+")");break;case"ptgbool":h.push(w[1]?"true":"false");break;case"ptgint":h.push(w[1]);break;case"ptgnum":h.push(string(w[1]));break;case"ptgstr":h.push('"'+w[1].replace(/"/g,'""')+'"');break;case"ptgerr":h.push(w[1]);break;case"ptgarean":l=ar(w[1][1],r?{s:r}:c,a),h.push(yr(l,a));break;case"ptgarea":l=ar(w[1][1],c,a),h.push(yr(l,a));break;case"ptgarea3d":u=w[1][1],l=w[1][2],p=ni(n,u,a),h.push(p+"!"+yr(l,a));break;case"ptgattrsum":h.push("sum("+h.pop()+")");break;case"ptgattrbaxcel":case"ptgattrsemi":break;case"ptgname":d=w[1][2];var a=(n.names||[])[d-1]||(n[0]||[])[d],_=a?a.name:"sh33tjsname"+string(d);_&&"_xlfn."==_.slice(0,6)&&!a.xlfn&&(_=_.slice(6)),h.push(_);break;case"ptgnamex":var y,o=w[1][1];if(d=w[1][2],!(a.biff<=5)){var x="";if(14849==((n[o]||[])[0]||[])[0]||(1025==((n[o]||[])[0]||[])[0]?n[o][d]&&n[o][d].itab>0&&(x=n.sheetnames[n[o][d].itab-1]+"!"):x=n.sheetnames[d-1]+"!"),n[o]&&n[o][d])x+=n[o][d].name;else if(n[0]&&n[0][d])x+=n[0][d].name;else{var c=(ki(n,o,a)||"").split(";;");c[d-1]?x=c[d-1]:x+="sh33tjserrx"}h.push(x);break}o<0&&(o=-o),n[o]&&(y=n[o][d]),y||(y={name:"sh33tjserry"}),h.push(y.name);break;case"ptgparen":var r="(",k=")";if(m>=0){switch(g="",e[0][m][1][0]){case 2:r=je(" ",e[0][m][1][1])+r;break;case 3:r=je("\r",e[0][m][1][1])+r;break;case 4:k=je(" ",e[0][m][1][1])+k;break;case 5:k=je("\r",e[0][m][1][1])+k;break;default:if(a.wtf)throw new error("unexpected ptgattrspacetype "+e[0][m][1][0])}m=-1}h.push(r+h.pop()+k);break;case"ptgreferr":case"ptgreferr3d":h.push("#ref!");break;case"ptgexp":o={c:w[1][1],r:w[1][0]};var n={c:r.c,r:r.r};if(n.sharedf[nr(o)]){var i=n.sharedf[nr(o)];h.push(ii(i,c,n,n,a))}else{var d=!1;for(i=0;i!=n.arrayf.length;++i)if(s=n.arrayf[i],!(o.cs[0].e.c)&&!(o.rs[0].e.r)){h.push(ii(s[1],c,n,n,a)),d=!0;break}d||h.push(w[1])}break;case"ptgarray":h.push("{"+ci(w[1])+"}");break;case"ptgmemarea":break;case"ptgattrspace":case"ptgattrspacesemi":m=v;break;case"ptgtbl":case"ptgmemerr":break;case"ptgmissarg":h.push("");break;case"ptgareaerr":case"ptgareaerr3d":h.push("#ref!");break;case"ptglist":h.push("table"+w[1].idx+"[#"+w[1].rt+"]");break;case"ptgmemarean":case"ptgmemnomemn":case"ptgattrnoop":case"ptgsheet":case"ptgendsheet":case"ptgmemfunc":case"ptgmemnomem":break;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"ptgsxname":default:throw new error("unrecognized formula token: "+string(w))}if(3!=a.biff&&m>=0&&-1==["ptgattrspace","ptgattrspacesemi","ptgattrgoto"].indexof(e[0][v][0])){var p=!0;switch((w=e[0][m])[1][0]){case 4:p=!1;case 0:g=je(" ",w[1][1]);break;case 5:p=!1;case 1:g=je("\r",w[1][1]);break;default:if(g="",a.wtf)throw new error("unexpected ptgattrspacetype "+w[1][0])}h.push((p?g:"")+h.pop()+(p?"":g)),m=-1}}if(h.length>1&&a.wtf)throw new error("bad formula stack");return h[0]}function di(e,t,r,n,a){var i=ea(t,r,a),s=function(e){if(null==e){var t=wr(8);return t.write_shift(1,3),t.write_shift(1,0),t.write_shift(2,0),t.write_shift(2,0),t.write_shift(2,65535),t}return hn("number"==typeof e?e:0)}(e.v),o=wr(6);o.write_shift(2,33),o.write_shift(4,0);for(var l=wr(e.bf.length),f=0;f0?oi(e,i,a,r):null]}var li=pi,mi=pi,fi=pi,ui=pi,bi={0:"beep",1:"open",2:"open.links",3:"close.all",4:"save",5:"save.as",6:"file.delete",7:"page.setup",8:"print",9:"printer.setup",10:"quit",11:"new.window",12:"arrange.all",13:"window.size",14:"window.move",15:"full",16:"close",17:"run",22:"set.print.area",23:"set.print.titles",24:"set.page.break",25:"remove.page.break",26:"font",27:"display",28:"protect.document",29:"precision",30:"a1.r1c1",31:"calculate.now",32:"calculation",34:"data.find",35:"extract",36:"data.delete",37:"set.database",38:"set.criteria",39:"sort",40:"data.series",41:"table",42:"format.number",43:"alignment",44:"style",45:"border",46:"cell.protection",47:"column.width",48:"undo",49:"cut",50:"copy",51:"paste",52:"clear",53:"paste.special",54:"edit.delete",55:"insert",56:"fill.right",57:"fill.down",61:"define.name",62:"create.names",63:"formula.goto",64:"formula.find",65:"select.last.cell",66:"show.active.cell",67:"gallery.area",68:"gallery.bar",69:"gallery.column",70:"gallery.line",71:"gallery.pie",72:"gallery.scatter",73:"combination",74:"preferred",75:"add.overlay",76:"gridlines",77:"set.preferred",78:"axes",79:"legend",80:"attach.text",81:"add.arrow",82:"select.chart",83:"select.plot.area",84:"patterns",85:"main.chart",86:"overlay",87:"scale",88:"format.legend",89:"format.text",90:"edit.repeat",91:"parse",92:"justify",93:"hide",94:"unhide",95:"workspace",96:"formula",97:"formula.fill",98:"formula.array",99:"data.find.next",100:"data.find.prev",101:"formula.find.next",102:"formula.find.prev",103:"activate",104:"activate.next",105:"activate.prev",106:"unlocked.next",107:"unlocked.prev",108:"copy.picture",109:"select",110:"delete.name",111:"delete.format",112:"vline",113:"hline",114:"vpage",115:"hpage",116:"vscroll",117:"hscroll",118:"alert",119:"new",120:"cancel.copy",121:"show.clipboard",122:"message",124:"paste.link",125:"app.activate",126:"delete.arrow",127:"row.height",128:"format.move",129:"format.size",130:"formula.replace",131:"send.keys",132:"select.special",133:"apply.names",134:"replace.font",135:"freeze.panes",136:"show.info",137:"split",138:"on.window",139:"on.data",140:"disable.input",142:"outline",143:"list.names",144:"file.close",145:"save.workbook",146:"data.form",147:"copy.chart",148:"on.time",149:"wait",150:"format.font",151:"fill.up",152:"fill.left",153:"delete.overlay",155:"short.menus",159:"set.update.status",161:"color.palette",162:"delete.style",163:"window.restore",164:"window.maximize",166:"change.link",167:"calculate.document",168:"on.key",169:"app.restore",170:"app.move",171:"app.size",172:"app.minimize",173:"app.maximize",174:"bring.to.front",175:"send.to.back",185:"main.chart.type",186:"overlay.chart.type",187:"select.end",188:"open.mail",189:"send.mail",190:"standard.font",191:"consolidate",192:"sort.special",193:"gallery.3d.area",194:"gallery.3d.column",195:"gallery.3d.line",196:"gallery.3d.pie",197:"view.3d",198:"goal.seek",199:"workgroup",200:"fill.group",201:"update.link",202:"promote",203:"demote",204:"show.detail",206:"ungroup",207:"object.properties",208:"save.new.object",209:"share",210:"share.name",211:"duplicate",212:"apply.style",213:"assign.to.object",214:"object.protection",215:"hide.object",216:"set.extract",217:"create.publisher",218:"subscribe.to",219:"attributes",220:"show.toolbar",222:"print.preview",223:"edit.color",224:"show.levels",225:"format.main",226:"format.overlay",227:"on.recalc",228:"edit.series",229:"define.style",240:"line.print",243:"enter.data",249:"gallery.radar",250:"merge.styles",251:"edition.options",252:"paste.picture",253:"paste.picture.link",254:"spelling",256:"zoom",259:"insert.object",260:"window.minimize",265:"sound.note",266:"sound.play",267:"format.shape",268:"extend.polygon",269:"format.auto",272:"gallery.3d.bar",273:"gallery.3d.surface",274:"fill.auto",276:"customize.toolbar",277:"add.tool",278:"edit.object",279:"on.doubleclick",280:"on.entry",281:"workbook.add",282:"workbook.move",283:"workbook.copy",284:"workbook.options",285:"save.workspace",288:"chart.wizard",289:"delete.tool",290:"move.tool",291:"workbook.select",292:"workbook.activate",293:"assign.to.tool",295:"copy.tool",296:"reset.tool",297:"constrain.numeric",298:"paste.tool",302:"workbook.new",305:"scenario.cells",306:"scenario.delete",307:"scenario.add",308:"scenario.edit",309:"scenario.show",310:"scenario.show.next",311:"scenario.summary",312:"pivot.table.wizard",313:"pivot.field.properties",314:"pivot.field",315:"pivot.item",316:"pivot.add.fields",318:"options.calculation",319:"options.edit",320:"options.view",321:"addin.manager",322:"menu.editor",323:"attach.toolbars",324:"vbaactivate",325:"options.chart",328:"vba.insert.file",330:"vba.procedure.definition",336:"routing.slip",338:"route.document",339:"mail.logon",342:"insert.picture",343:"edit.tool",344:"gallery.doughnut",350:"chart.trend",352:"pivot.item.properties",354:"workbook.insert",355:"options.transition",356:"options.general",370:"filter.advanced",373:"mail.add.mailer",374:"mail.delete.mailer",375:"mail.reply",376:"mail.reply.all",377:"mail.forward",378:"mail.next.letter",379:"data.label",380:"insert.title",381:"font.properties",382:"macro.options",383:"workbook.hide",384:"workbook.unhide",385:"workbook.delete",386:"workbook.name",388:"gallery.custom",390:"add.chart.autoformat",391:"delete.chart.autoformat",392:"chart.add.data",393:"auto.outline",394:"tab.order",395:"show.dialog",396:"select.all",397:"ungroup.sheets",398:"subtotal.create",399:"subtotal.remove",400:"rename.object",412:"workbook.scroll",413:"workbook.next",414:"workbook.prev",415:"workbook.tab.split",416:"full.screen",417:"workbook.protect",420:"scrollbar.properties",421:"pivot.show.pages",422:"text.to.columns",423:"format.charttype",424:"link.format",425:"tracer.display",430:"tracer.navigate",431:"tracer.clear",432:"tracer.error",433:"pivot.field.group",434:"pivot.field.ungroup",435:"checkbox.properties",436:"label.properties",437:"listbox.properties",438:"editbox.properties",439:"pivot.refresh",440:"link.combo",441:"open.text",442:"hide.dialog",443:"set.dialog.focus",444:"enable.object",445:"pushbutton.properties",446:"set.dialog.default",447:"filter",448:"filter.show.all",449:"clear.outline",450:"function.wizard",451:"add.list.item",452:"set.list.item",453:"remove.list.item",454:"select.list.item",455:"set.control.value",456:"save.copy.as",458:"options.lists.add",459:"options.lists.delete",460:"series.axes",461:"series.x",462:"series.y",463:"errorbar.x",464:"errorbar.y",465:"format.chart",466:"series.order",467:"mail.logoff",468:"clear.routing.slip",469:"app.activate.microsoft",470:"mail.edit.mailer",471:"on.sheet",472:"standard.width",473:"scenario.merge",474:"summary.info",475:"find.file",476:"active.cell.font",477:"enable.tipwizard",478:"vba.make.addin",480:"insertdatatable",481:"workgroup.options",482:"mail.send.mailer",485:"autocorrect",489:"post.document",491:"picklist",493:"view.show",494:"view.define",495:"view.delete",509:"sheet.background",510:"insert.map.object",511:"options.menono",517:"msochecks",518:"normal",519:"layout",520:"rm.print.area",521:"clear.print.area",522:"add.print.area",523:"move.brk",545:"hidecurr.note",546:"hideall.notes",547:"delete.note",548:"traverse.notes",549:"activate.notes",620:"protect.revisions",621:"unprotect.revisions",647:"options.me",653:"web.publish",667:"newwebquery",673:"pivot.table.chart",753:"options.save",755:"options.spell",808:"hideall.inkannots"},wi={0:"count",1:"if",2:"isna",3:"iserror",4:"sum",5:"average",6:"min",7:"max",8:"row",9:"column",10:"na",11:"npv",12:"stdev",13:"dollar",14:"fixed",15:"sin",16:"cos",17:"tan",18:"atan",19:"pi",20:"sqrt",21:"exp",22:"ln",23:"log10",24:"abs",25:"int",26:"sign",27:"round",28:"lookup",29:"index",30:"rept",31:"mid",32:"len",33:"value",34:"true",35:"false",36:"and",37:"or",38:"not",39:"mod",40:"dcount",41:"dsum",42:"daverage",43:"dmin",44:"dmax",45:"dstdev",46:"var",47:"dvar",48:"text",49:"linest",50:"trend",51:"logest",52:"growth",53:"goto",54:"halt",55:"return",56:"pv",57:"fv",58:"nper",59:"pmt",60:"rate",61:"mirr",62:"irr",63:"rand",64:"match",65:"date",66:"time",67:"day",68:"month",69:"year",70:"weekday",71:"hour",72:"minute",73:"second",74:"now",75:"areas",76:"rows",77:"columns",78:"offset",79:"absref",80:"relref",81:"argument",82:"search",83:"transpose",84:"error",85:"step",86:"type",87:"echo",88:"set.name",89:"caller",90:"deref",91:"windows",92:"series",93:"documents",94:"active.cell",95:"selection",96:"result",97:"atan2",98:"asin",99:"acos",100:"choose",101:"hlookup",102:"vlookup",103:"links",104:"input",105:"isref",106:"get.formula",107:"get.name",108:"set.value",109:"log",110:"exec",111:"char",112:"lower",113:"upper",114:"proper",115:"left",116:"right",117:"exact",118:"trim",119:"replace",120:"substitute",121:"code",122:"names",123:"directory",124:"find",125:"cell",126:"iserr",127:"istext",128:"isnumber",129:"isblank",130:"t",131:"n",132:"fopen",133:"fclose",134:"fsize",135:"freadln",136:"fread",137:"fwriteln",138:"fwrite",139:"fpos",140:"datevalue",141:"timevalue",142:"sln",143:"syd",144:"ddb",145:"get.def",146:"reftext",147:"textref",148:"indirect",149:"register",150:"call",151:"add.bar",152:"add.menu",153:"add.command",154:"enable.command",155:"check.command",156:"rename.command",157:"show.bar",158:"delete.menu",159:"delete.command",160:"get.chart.item",161:"dialog.box",162:"clean",163:"mdeterm",164:"minverse",165:"mmult",166:"files",167:"ipmt",168:"ppmt",169:"counta",170:"cancel.key",171:"for",172:"while",173:"break",174:"next",175:"initiate",176:"request",177:"poke",178:"execute",179:"terminate",180:"restart",181:"help",182:"get.bar",183:"product",184:"fact",185:"get.cell",186:"get.workspace",187:"get.window",188:"get.document",189:"dproduct",190:"isnontext",191:"get.note",192:"note",193:"stdevp",194:"varp",195:"dstdevp",196:"dvarp",197:"trunc",198:"islogical",199:"dcounta",200:"delete.bar",201:"unregister",204:"usdollar",205:"findb",206:"searchb",207:"replaceb",208:"leftb",209:"rightb",210:"midb",211:"lenb",212:"roundup",213:"rounddown",214:"asc",215:"dbcs",216:"rank",219:"address",220:"days360",221:"today",222:"vdb",223:"else",224:"else.if",225:"end.if",226:"for.cell",227:"median",228:"sumproduct",229:"sinh",230:"cosh",231:"tanh",232:"asinh",233:"acosh",234:"atanh",235:"dget",236:"create.object",237:"volatile",238:"last.error",239:"custom.undo",240:"custom.repeat",241:"formula.convert",242:"get.link.info",243:"text.box",244:"info",245:"group",246:"get.object",247:"db",248:"pause",251:"resume",252:"frequency",253:"add.toolbar",254:"delete.toolbar",255:"user",256:"reset.toolbar",257:"evaluate",258:"get.toolbar",259:"get.tool",260:"spelling.check",261:"error.type",262:"app.title",263:"window.title",264:"save.toolbar",265:"enable.tool",266:"press.tool",267:"register.id",268:"get.workbook",269:"avedev",270:"betadist",271:"gammaln",272:"betainv",273:"binomdist",274:"chidist",275:"chiinv",276:"combin",277:"confidence",278:"critbinom",279:"even",280:"expondist",281:"fdist",282:"finv",283:"fisher",284:"fisherinv",285:"floor",286:"gammadist",287:"gammainv",288:"ceiling",289:"hypgeomdist",290:"lognormdist",291:"loginv",292:"negbinomdist",293:"normdist",294:"normsdist",295:"norminv",296:"normsinv",297:"standardize",298:"odd",299:"permut",300:"poisson",301:"tdist",302:"weibull",303:"sumxmy2",304:"sumx2my2",305:"sumx2py2",306:"chitest",307:"correl",308:"covar",309:"forecast",310:"ftest",311:"intercept",312:"pearson",313:"rsq",314:"steyx",315:"slope",316:"ttest",317:"prob",318:"devsq",319:"geomean",320:"harmean",321:"sumsq",322:"kurt",323:"skew",324:"ztest",325:"large",326:"small",327:"quartile",328:"percentile",329:"percentrank",330:"mode",331:"trimmean",332:"tinv",334:"movie.command",335:"get.movie",336:"concatenate",337:"power",338:"pivot.add.data",339:"get.pivot.table",340:"get.pivot.field",341:"get.pivot.item",342:"radians",343:"degrees",344:"subtotal",345:"sumif",346:"countif",347:"countblank",348:"scenario.get",349:"options.lists.get",350:"ispmt",351:"datedif",352:"datestring",353:"numberstring",354:"roman",355:"open.dialog",356:"save.dialog",357:"view.get",358:"getpivotdata",359:"hyperlink",360:"phonetic",361:"averagea",362:"maxa",363:"mina",364:"stdevpa",365:"varpa",366:"stdeva",367:"vara",368:"bahttext",369:"thaidayofweek",370:"thaidigit",371:"thaimonthofyear",372:"thainumsound",373:"thainumstring",374:"thaistringlength",375:"isthaidigit",376:"roundbahtdown",377:"roundbahtup",378:"thaiyear",379:"rtd",380:"cubevalue",381:"cubemember",382:"cubememberproperty",383:"cuberankedmember",384:"hex2bin",385:"hex2dec",386:"hex2oct",387:"dec2bin",388:"dec2hex",389:"dec2oct",390:"oct2bin",391:"oct2hex",392:"oct2dec",393:"bin2dec",394:"bin2oct",395:"bin2hex",396:"imsub",397:"imdiv",398:"impower",399:"imabs",400:"imsqrt",401:"imln",402:"imlog2",403:"imlog10",404:"imsin",405:"imcos",406:"imexp",407:"imargument",408:"imconjugate",409:"imaginary",410:"imreal",411:"complex",412:"imsum",413:"improduct",414:"seriessum",415:"factdouble",416:"sqrtpi",417:"quotient",418:"delta",419:"gestep",420:"iseven",421:"isodd",422:"mround",423:"erf",424:"erfc",425:"besselj",426:"besselk",427:"bessely",428:"besseli",429:"xirr",430:"xnpv",431:"pricemat",432:"yieldmat",433:"intrate",434:"received",435:"disc",436:"pricedisc",437:"yielddisc",438:"tbilleq",439:"tbillprice",440:"tbillyield",441:"price",442:"yield",443:"dollarde",444:"dollarfr",445:"nominal",446:"effect",447:"cumprinc",448:"cumipmt",449:"edate",450:"eomonth",451:"yearfrac",452:"coupdaybs",453:"coupdays",454:"coupdaysnc",455:"coupncd",456:"coupnum",457:"couppcd",458:"duration",459:"mduration",460:"oddlprice",461:"oddlyield",462:"oddfprice",463:"oddfyield",464:"randbetween",465:"weeknum",466:"amordegrc",467:"amorlinc",468:"convert",724:"sheetjs",469:"accrint",470:"accrintm",471:"workday",472:"networkdays",473:"gcd",474:"multinomial",475:"lcm",476:"fvschedule",477:"cubekpimember",478:"cubeset",479:"cubesetcount",480:"iferror",481:"countifs",482:"sumifs",483:"averageif",484:"averageifs"},hi={2:1,3:1,10:0,15:1,16:1,17:1,18:1,19:0,20:1,21:1,22:1,23:1,24:1,25:1,26:1,27:2,30:2,31:3,32:1,33:1,34:0,35:0,38:1,39:2,40:3,41:3,42:3,43:3,44:3,45:3,47:3,48:2,53:1,61:3,63:0,65:3,66:3,67:1,68:1,69:1,70:1,71:1,72:1,73:1,74:0,75:1,76:1,77:1,79:2,80:2,83:1,85:0,86:1,89:0,90:1,94:0,95:0,97:2,98:1,99:1,101:3,102:3,105:1,106:1,108:2,111:1,112:1,113:1,114:1,117:2,118:1,119:4,121:1,126:1,127:1,128:1,129:1,130:1,131:1,133:1,134:1,135:1,136:2,137:2,138:2,140:1,141:1,142:3,143:4,144:4,161:1,162:1,163:1,164:1,165:2,172:1,175:2,176:2,177:3,178:2,179:1,184:1,186:1,189:3,190:1,195:3,196:3,197:1,198:1,199:3,201:1,207:4,210:3,211:1,212:2,213:2,214:1,215:1,225:0,229:1,230:1,231:1,232:1,233:1,234:1,235:3,244:1,247:4,252:2,257:1,261:1,271:1,273:4,274:2,275:2,276:2,277:3,278:3,279:1,280:3,281:3,282:3,283:1,284:1,285:2,286:4,287:3,288:2,289:4,290:3,291:3,292:3,293:4,294:1,295:3,296:1,297:3,298:1,299:2,300:3,301:3,302:4,303:2,304:2,305:2,306:2,307:2,308:2,309:3,310:2,311:2,312:2,313:2,314:2,315:2,316:4,325:2,326:2,327:2,328:2,331:2,332:2,337:2,342:1,343:1,346:2,347:1,350:4,351:3,352:1,353:2,360:1,368:1,369:1,370:1,371:1,372:1,373:1,374:1,375:1,376:1,377:1,378:1,382:3,385:1,392:1,393:1,396:2,397:2,398:2,399:1,400:1,401:1,402:1,403:1,404:1,405:1,406:1,407:1,408:1,409:1,410:1,414:4,415:1,416:1,417:2,420:1,421:1,422:2,424:1,425:2,426:2,427:2,428:2,430:3,438:3,439:3,440:3,443:2,444:2,445:2,446:2,447:6,448:6,449:2,450:2,464:2,468:3,476:2,479:1,480:2,65535:0};var gi="undefined"!==typeof map;function vi(e,t,r){var n=0,a=e.length;if(r){if(gi?r.has(t):object.prototype.hasownproperty.call(r,t))for(var i=gi?r.get(t):r[t];n-1?(r.width=ra(n),r.customwidth=1):null!=t.width&&(r.width=t.width),t.hidden&&(r.hidden=!0),null!=t.level&&(r.outlinelevel=r.level=t.level),r}function zi(e,t){if(e){var r=[.7,.7,.75,.75,.3,.3];"xlml"==t&&(r=[1,1,1,1,.5,.5]),null==e.left&&(e.left=r[0]),null==e.right&&(e.right=r[1]),null==e.top&&(e.top=r[2]),null==e.bottom&&(e.bottom=r[3]),null==e.header&&(e.header=r[4]),null==e.footer&&(e.footer=r[5])}}function $i(e,t,r){var n=r.revssf[null!=t.z?t.z:"general"],a=60,i=e.length;if(null==n&&r.ssf)for(;a<392;++a)if(null==r.ssf[a]){we(t.z,a),r.ssf[a]=t.z,r.revssf[t.z]=n=a;break}for(a=0;a!=i;++a)if(e[a].numfmtid===n)return a;return e[i]={numfmtid:n,fontid:0,fillid:0,borderid:0,xfid:0,applynumberformat:1},i}function xi(e,t,r){if(e&&e["!ref"]){var n=pr(e["!ref"]);if(n.e.c32767)throw new error("text length must not exceed 32767 characters");if(n&&n.booksst){o=pt("v",""+vi(n.strings,e.v,n.revstrings)),l.t="s";break}l.t="str"}if(e.t!=i&&(e.t=i,e.v=s),"string"==typeof e.f&&e.f){var c=e.f&&e.f.slice(0,t.length)==t?{t:"array",ref:e.f}:null;o=gt("f",tt(e.f),c)+(null!=e.v?o:"")}return e.l&&r["!links"].push([t,e.l]),e.d&&(l.cm=1),gt("c",o,l)}function zi(e,t,r,n){var a,i=[je,gt("worksheet",null,{xmlns:nt[0],"xmlns:r":xt})],s=r.sheetnames[e],o="",l=r.sheets[s];null==l&&(l={});var f=l["!ref"]||"a1",c=pr(f);if(c.e.c>16383||c.e.r>1048575){if(t.wtf)throw new error("range "+f+" exceeds format limit a1:xfd1048576");c.e.c=math.min(c.e.c,16383),c.e.r=math.min(c.e.c,1048575),f=dr(c)}n||(n={}),l["!comments"]=[];var h=[];!function(e,t,r,n,a){var i=!1,s={},o=null;if("xlsx"!==n.booktype&&t.vbaraw){var l=t.sheetnames[r];try{t.workbook&&(l=t.workbook.sheets[r].codename||l)}catch(c){}i=!0,s.codename=ht(tt(l))}if(e&&e["!outline"]){var f={summarybelow:1,summaryright:1};e["!outline"].above&&(f.summarybelow=0),e["!outline"].left&&(f.summaryright=0),o=(o||"")+gt("outlinepr",null,f)}(i||o)&&(a[a.length]=gt("sheetpr",o,s))}(l,r,e,t,i),i[i.length]=gt("dimension",null,{ref:f}),i[i.length]=function(e,t,r,n){var a={workbookviewid:"0"};return(((n||{}).workbook||{}).views||[])[0]&&(a.righttoleft=n.workbook.views[0].rtl?"1":"0"),gt("sheetviews",gt("sheetview",null,a),{})}(0,0,0,r),t.sheetformat&&(i[i.length]=gt("sheetformatpr",null,{defaultrowheight:t.sheetformat.defaultrowheight||"16",basecolwidth:t.sheetformat.basecolwidth||"10",outlinelevelrow:t.sheetformat.outlinelevelrow||"7"})),null!=l["!cols"]&&l["!cols"].length>0&&(i[i.length]=function(e,t){for(var r,n=[""],a=0;a!=t.length;++a)(r=t[a])&&(n[n.length]=gt("col",null,ji(a,r)));return n[n.length]="",n.join("")}(0,l["!cols"])),i[a=i.length]="",l["!links"]=[],null!=l["!ref"]&&(o=function(e,t,r,n){var a,i,s=[],o=[],l=pr(e["!ref"]),f="",c="",h=[],u=0,d=0,p=e["!rows"],m=array.isarray(e),g={r:c},v=-1;for(d=l.s.c;d<=l.e.c;++d)h[d]=rr(d);for(u=l.s.r;u<=l.e.r;++u){for(o=[],c=xr(u),d=l.s.c;d<=l.e.c;++d){a=h[d]+c;var t=m?(e[u]||[])[d]:e[a];void 0!==t&&null!=(f=ji(t,a,e,t))&&o.push(f)}(o.length>0||p&&p[u])&&(g={r:c},p&&p[u]&&((i=p[u]).hidden&&(g.hidden=1),v=-1,i.hpx?v=na(i.hpx):i.hpt&&(v=i.hpt),v>-1&&(g.ht=v,g.customheight=1),i.level&&(g.outlinelevel=i.level)),s[s.length]=gt("row",o.join(""),g))}if(p)for(;u-1&&(g.ht=v,g.customheight=1),i.level&&(g.outlinelevel=i.level),s[s.length]=gt("row","",g));return s.join("")}(l,t,0,0)).length>0&&(i[i.length]=o),i.length>a+1&&(i[i.length]="",i[a]=i[a].replace("/>",">")),l["!protect"]&&(i[i.length]=function(e){var t={sheet:1};return yi.foreach((function(r){null!=e[r]&&e[r]&&(t[r]="1")})),ki.foreach((function(r){null==e[r]||e[r]||(t[r]="0")})),e.password&&(t.password=aa(e.password).tostring(16).touppercase()),gt("sheetprotection",null,t)}(l["!protect"])),null!=l["!autofilter"]&&(i[i.length]=function(e,t,r,n){var a="string"==typeof e.ref?e.ref:dr(e.ref);r.workbook||(r.workbook={sheets:[]}),r.workbook.names||(r.workbook.names=[]);var i=r.workbook.names,s=ir(a);s.s.r==s.e.r&&(s.e.r=ir(t["!ref"]).e.r,a=dr(s));for(var o=0;o0&&(i[i.length]=function(e){if(0===e.length)return"";for(var t='',r=0;r!=e.length;++r)t+='';return t+""}(l["!merges"]));var u,d,p=-1,m=-1;return l["!links"].length>0&&(i[i.length]="",l["!links"].foreach((function(e){e[1].target&&(u={ref:e[0]},"#"!=e[1].target.charat(0)&&(m=yn(n,-1,tt(e[1].target).replace(/#.*$/,""),sn.hlink),u["r:id"]="rid"+m),(p=e[1].target.indexof("#"))>-1&&(u.location=tt(e[1].target.slice(p+1))),e[1].tooltip&&(u.tooltip=tt(e[1].tooltip)),i[i.length]=gt("hyperlink",null,u))})),i[i.length]=""),delete l["!links"],null!=l["!margins"]&&(i[i.length]=(zi(d=l["!margins"]),gt("pagemargins",null,d))),t&&!t.ignoreec&&void 0!=t.ignoreec||(i[i.length]=pt("ignorederrors",gt("ignorederror",null,{numberstoredastext:1,sqref:f}))),h.length>0&&(m=yn(n,-1,"../drawings/drawing"+(e+1)+".xml",sn.draw),i[i.length]=gt("drawing",null,{"r:id":"rid"+m}),l["!drawing"]=h),l["!comments"].length>0&&(m=yn(n,-1,"../drawings/vmldrawing"+(e+1)+".vml",sn.vml),i[i.length]=gt("legacydrawing",null,{"r:id":"rid"+m}),l["!legacy"]=m),i.length>1&&(i[i.length]="",i[1]=i[1].replace("/>",">")),i.join("")}function qi(e,t,r,n){var a=function(e,t,r){var n=wr(145),a=(r["!rows"]||[])[e]||{};n.write_shift(4,e),n.write_shift(4,0);var i=320;a.hpx?i=20*na(a.hpx):a.hpt&&(i=20*a.hpt),n.write_shift(2,i),n.write_shift(1,0);var s=0;a.level&&(s|=a.level),a.hidden&&(s|=16),(a.hpx||a.hpt)&&(s|=32),n.write_shift(1,s),n.write_shift(1,0);var o=0,l=n.l;n.l+=4;for(var f={r:e,c:0},c=0;c<16;++c)if(!(t.s.c>c+1<<10||t.e.cn.l?n.slice(0,n.l):n}(n,r,t);(a.length>17||(t["!rows"]||[])[n])&&br(e,0,a)}var qi=ln,es=fn;function ts(e){return[kr(e),cn(e),"n"]}var rs=ln,ns=fn;var as=["left","right","top","bottom","header","footer"];function is(e,t,r,n,a,i,s){if(void 0===t.v)return!1;var o="";switch(t.t){case"b":o=t.v?"1":"0";break;case"d":(t=ve(t)).z=t.z||b[14],t.v=de(he(t.v)),t.t="n";break;case"n":case"e":o=""+t.v;break;default:o=t.v}var l={r:r,c:n};switch(l.s=$i(a.cellxfs,t,a),t.l&&i["!links"].push([nr(l),t.l]),t.c&&i["!comments"].push([nr(l),t.c]),t.t){case"s":case"str":return a.booksst?(o=vi(a.strings,t.v,a.revstrings),l.t="s",l.v=o,s?br(e,18,function(e,t,r){return null==r&&(r=wr(8)),jr(t,r),r.write_shift(4,t.v),r}(0,l)):br(e,7,function(e,t,r){return null==r&&(r=wr(12)),yr(t,r),r.write_shift(4,t.v),r}(0,l))):(l.t="str",s?br(e,17,function(e,t,r){return null==r&&(r=wr(8+4*e.v.length)),jr(t,r),gr(e.v,r),r.length>r.l?r.slice(0,r.l):r}(t,l)):br(e,6,function(e,t,r){return null==r&&(r=wr(12+4*e.v.length)),yr(t,r),gr(e.v,r),r.length>r.l?r.slice(0,r.l):r}(t,l))),!0;case"n":return t.v==(0|t.v)&&t.v>-1e3&&t.v<1e3?s?br(e,13,function(e,t,r){return null==r&&(r=wr(8)),jr(t,r),sn(e.v,r),r}(t,l)):br(e,2,function(e,t,r){return null==r&&(r=wr(12)),yr(t,r),sn(e.v,r),r}(t,l)):s?br(e,16,function(e,t,r){return null==r&&(r=wr(12)),jr(t,r),hn(e.v,r),r}(t,l)):br(e,5,function(e,t,r){return null==r&&(r=wr(16)),yr(t,r),hn(e.v,r),r}(t,l)),!0;case"b":return l.t="b",s?br(e,15,function(e,t,r){return null==r&&(r=wr(5)),jr(t,r),r.write_shift(1,e.v?1:0),r}(t,l)):br(e,4,function(e,t,r){return null==r&&(r=wr(9)),yr(t,r),r.write_shift(1,e.v?1:0),r}(t,l)),!0;case"e":return l.t="e",s?br(e,14,function(e,t,r){return null==r&&(r=wr(8)),jr(t,r),r.write_shift(1,e.v),r.write_shift(2,0),r.write_shift(1,0),r}(t,l)):br(e,3,function(e,t,r){return null==r&&(r=wr(9)),yr(t,r),r.write_shift(1,e.v),r}(t,l)),!0}return s?br(e,12,function(e,t,r){return null==r&&(r=wr(4)),jr(t,r)}(0,l)):br(e,1,function(e,t,r){return null==r&&(r=wr(8)),yr(t,r)}(0,l)),!0}function ss(e,t){var r,n;t&&t["!merges"]&&(br(e,177,(r=t["!merges"].length,null==n&&(n=wr(4)),n.write_shift(4,r),n)),t["!merges"].foreach((function(t){br(e,176,ns(t))})),br(e,178))}function os(e,t){t&&t["!cols"]&&(br(e,390),t["!cols"].foreach((function(t,r){t&&br(e,60,function(e,t,r){null==r&&(r=wr(18));var n=ji(e,t);r.write_shift(-4,e),r.write_shift(-4,e),r.write_shift(4,256*(n.width||10)),r.write_shift(4,0);var a=0;return t.hidden&&(a|=1),"number"==typeof n.width&&(a|=2),t.level&&(a|=t.level<<8),r.write_shift(2,a),r}(r,t))})),br(e,391))}function ls(e,t){t&&t["!ref"]&&(br(e,648),br(e,649,function(e){var t=wr(24);return t.write_shift(4,4),t.write_shift(4,1),fn(e,t),t}(pr(t["!ref"]))),br(e,650))}function fs(e,t,r){t["!links"].foreach((function(t){if(t[1].target){var n=yn(r,-1,t[1].target.replace(/#.*$/,""),sn.hlink);br(e,494,function(e,t){var r=wr(50+4*(e[1].target.length+(e[1].tooltip||"").length));fn({s:kr(e[0]),e:kr(e[0])},r),nn("rid"+t,r);var n=e[1].target.indexof("#");return gr((-1==n?"":e[1].target.slice(n+1))||"",r),gr(e[1].tooltip||"",r),gr("",r),r.slice(0,r.l)}(t,n))}})),delete t["!links"]}function cs(e,t,r){br(e,133),br(e,137,function(e,t,r){null==r&&(r=wr(30));var n=924;return(((t||{}).views||[])[0]||{}).rtl&&(n|=32),r.write_shift(2,n),r.write_shift(4,0),r.write_shift(4,0),r.write_shift(4,0),r.write_shift(1,0),r.write_shift(1,0),r.write_shift(2,0),r.write_shift(2,100),r.write_shift(2,0),r.write_shift(2,0),r.write_shift(2,0),r.write_shift(4,0),r}(0,r)),br(e,138),br(e,134)}function hs(e,t){var r,n;t["!protect"]&&br(e,535,(r=t["!protect"],null==n&&(n=wr(66)),n.write_shift(2,r.password?aa(r.password):0),n.write_shift(4,1),[["objects",!1],["scenarios",!1],["formatcells",!0],["formatcolumns",!0],["formatrows",!0],["insertcolumns",!0],["insertrows",!0],["inserthyperlinks",!0],["deletecolumns",!0],["deleterows",!0],["selectlockedcells",!1],["sort",!0],["autofilter",!0],["pivottables",!0],["selectunlockedcells",!1]].foreach((function(e){e[1]?n.write_shift(4,null==r[e[0]]||r[e[0]]?0:1):n.write_shift(4,null!=r[e[0]]&&r[e[0]]?0:1)})),n))}function us(e,t,r,n){var a=er(),i=r.sheetnames[e],s=r.sheets[i]||{},o=i;try{r&&r.workbook&&(o=r.workbook.sheets[e].codename||o)}catch(h){}var l,f,c=pr(s["!ref"]||"a1");if(c.e.c>16383||c.e.r>1048575){if(t.wtf)throw new error("range "+(s["!ref"]||"a1")+" exceeds format limit a1:xfd1048576");c.e.c=math.min(c.e.c,16383),c.e.r=math.min(c.e.c,1048575)}return s["!links"]=[],s["!comments"]=[],br(a,129),(r.vbaraw||s["!outline"])&&br(a,147,function(e,t,r){null==r&&(r=wr(84+4*e.length));var n=192;t&&(t.above&&(n&=-65),t.left&&(n&=-129)),r.write_shift(1,n);for(var a=1;a<3;++a)r.write_shift(1,0);return un({auto:1},r),r.write_shift(-4,-1),r.write_shift(-4,-1),qr(e,r),r.slice(0,r.l)}(o,s["!outline"])),br(a,148,es(c)),cs(a,0,r.workbook),os(a,s),function(e,t,r,n){var a,i=pr(t["!ref"]||"a1"),s="",o=[];br(e,145);var l=array.isarray(t),f=i.e.r;t["!rows"]&&(f=math.max(i.e.r,t["!rows"].length-1));for(var c=i.s.r;c<=f;++c){s=xr(c),qi(e,t,i,c);var h=!1;if(c<=i.e.r)for(var u=i.s.c;u<=i.e.c;++u){c===i.s.r&&(o[u]=rr(u)),a=o[u]+s;var d=l?(t[c]||[])[u]:t[a];h=!!d&&is(e,d,c,u,n,t,h)}}br(e,146)}(a,s,0,t),hs(a,s),function(e,t,r,n){if(t["!autofilter"]){var a=t["!autofilter"],i="string"===typeof a.ref?a.ref:dr(a.ref);r.workbook||(r.workbook={sheets:[]}),r.workbook.names||(r.workbook.names=[]);var s=r.workbook.names,o=ir(i);o.s.r==o.e.r&&(o.e.r=ir(t["!ref"]).e.r,i=dr(o));for(var l=0;l0){var a=yn(n,-1,"../drawings/vmldrawing"+(r+1)+".vml",sn.vml);br(e,551,nn("rid"+a)),t["!legacy"]=a}}(a,s,e,n),br(a,130),a.end()}var ds=[["allowrefreshquery",!1,"bool"],["autocompresspictures",!0,"bool"],["backupfile",!1,"bool"],["checkcompatibility",!1,"bool"],["codename",""],["date1904",!1,"bool"],["defaultthemeversion",0,"int"],["filterprivacy",!1,"bool"],["hidepivotfieldlist",!1,"bool"],["promptedsolutions",!1,"bool"],["publishitems",!1,"bool"],["refreshallconnections",!1,"bool"],["saveexternallinkvalues",!0,"bool"],["showborderunselectedtables",!0,"bool"],["showinkannotation",!0,"bool"],["showobjects","all"],["showpivotchartfilter",!1,"bool"],["updatelinks","userset"]];var ps="][*?/\\".split("");function ms(e,t){if(e.length>31){if(t)return!1;throw new error("sheet names cannot exceed 31 chars")}var r=!0;return ps.foreach((function(n){if(-1!=e.indexof(n)){if(!t)throw new error("sheet name cannot contain : \\ / ? * [ ]");r=!1}})),r}function gs(e){if(!e||!e.sheetnames||!e.sheets)throw new error("invalid workbook");if(!e.sheetnames.length)throw new error("workbook is empty");var t,r,n,a=e.workbook&&e.workbook.sheets||[];t=e.sheetnames,r=a,n=!!e.vbaraw,t.foreach((function(e,a){ms(e);for(var i=0;i22)throw new error("bad code name: worksheet"+s)}}));for(var i=0;i0,n={codename:"thisworkbook"};e.workbook&&e.workbook.wbprops&&(ds.foreach((function(t){null!=e.workbook.wbprops[t[0]]&&e.workbook.wbprops[t[0]]!=t[1]&&(n[t[0]]=e.workbook.wbprops[t[0]])})),e.workbook.wbprops.codename&&(n.codename=e.workbook.wbprops.codename,delete n.codename)),t[t.length]=gt("workbookpr",null,n);var a=e.workbook&&e.workbook.sheets||[],i=0;if(a&&a[0]&&a[0].hidden){for(t[t.length]="",i=0;i!=e.sheetnames.length&&a[i]&&a[i].hidden;++i);i==e.sheetnames.length&&(i=0),t[t.length]='',t[t.length]=""}for(t[t.length]="",i=0;i!=e.sheetnames.length;++i){var s={name:tt(e.sheetnames[i].slice(0,31))};if(s.sheetid=""+(i+1),s["r:id"]="rid"+(i+1),a[i])switch(a[i].hidden){case 1:s.state="hidden";break;case 2:s.state="veryhidden"}t[t.length]=gt("sheet",null,s)}return t[t.length]="",r&&(t[t.length]="",e.workbook&&e.workbook.names&&e.workbook.names.foreach((function(e){var r={name:e.name};e.comment&&(r.comment=e.comment),null!=e.sheet&&(r.localsheetid=""+e.sheet),e.hidden&&(r.hidden="1"),e.ref&&(t[t.length]=gt("definedname",tt(e.ref),r))})),t[t.length]=""),t.length>2&&(t[t.length]="",t[1]=t[1].replace("/>",">")),t.join("")}function ts(e,t){if(t.workbook&&t.workbook.sheets){for(var r,n,a=t.workbook.sheets,i=0,s=-1,o=-1;is))br(e,135),br(e,158,(r=s,n||(n=wr(29)),n.write_shift(-4,0),n.write_shift(-4,460),n.write_shift(4,28800),n.write_shift(4,17600),n.write_shift(4,500),n.write_shift(4,r),n.write_shift(4,r),n.write_shift(1,120),n.length>n.l?n.slice(0,n.l):n)),br(e,136)}}function ws(e,t){var r=er();return br(r,131),br(r,128,function(e,t){t||(t=wr(127));for(var r=0;4!=r;++r)t.write_shift(4,0);return gr("sheetjs",t),gr(i.version,t),gr(i.version,t),gr("7262",t),t.length>t.l?t.slice(0,t.l):t}()),br(r,153,function(e,t){t||(t=wr(72));var r=0;return e&&e.filterprivacy&&(r|=8),t.write_shift(4,r),t.write_shift(4,0),qr(e&&e.codename||"thisworkbook",t),t.slice(0,t.l)}(e.workbook&&e.workbook.wbprops||null)),ts(r,e),function(e,t){br(e,143);for(var r=0;r!=t.sheetnames.length;++r){br(e,156,(n={hidden:t.workbook&&t.workbook.sheets&&t.workbook.sheets[r]&&t.workbook.sheets[r].hidden||0,itabid:r+1,strrelid:"rid"+(r+1),name:t.sheetnames[r]},(a=void 0)||(a=wr(127)),a.write_shift(4,n.hidden),a.write_shift(4,n.itabid),nn(n.strrelid,a),gr(n.name.slice(0,31),a),a.length>a.l?a.slice(0,a.l):a))}var n,a;br(e,144)}(r,e),br(r,132),r.end()}function es(e,t,r,n,a){return(".bin"===t.slice(-4)?us:zi)(e,r,n,a)}function bs(e,t,r){return(".bin"===t.slice(-4)?ti:qa)(e,r)}function ss(e,t){var r=[];return e.props&&r.push(function(e,t){var r=[];return ce(ln).map((function(e){for(var t=0;t'+a.join("")+""}(e.props,e.custprops)),r.join("")}function as(e){return gt("namedrange",null,{"ss:name":e.name,"ss:refersto":"="+ii(e.ref,{r:0,c:0})})}function _s(e,t,r,n,a,i,s){if(!e||void 0==e.v&&void 0==e.f)return"";var o={};if(e.f&&(o["ss:formula"]="="+tt(ii(e.f,s))),e.f&&e.f.slice(0,t.length)==t){var l=kr(e.f.slice(t.length+1));o["ss:arrayrange"]="rc:r"+(l.r==s.r?"":"["+(l.r-s.r)+"]")+"c"+(l.c==s.c?"":"["+(l.c-s.c)+"]")}if(e.l&&e.l.target&&(o["ss:href"]=tt(e.l.target),e.l.tooltip&&(o["x:hrefscreentip"]=tt(e.l.tooltip))),r["!merges"])for(var f=r["!merges"],c=0;c!=f.length;++c)f[c].s.c==s.c&&f[c].s.r==s.r&&(f[c].e.c>f[c].s.c&&(o["ss:mergeacross"]=f[c].e.c-f[c].s.c),f[c].e.r>f[c].s.r&&(o["ss:mergedown"]=f[c].e.r-f[c].s.r));var h="",u="";switch(e.t){case"z":if(!n.sheetstubs)return"";break;case"n":h="number",u=string(e.v);break;case"b":h="boolean",u=e.v?"1":"0";break;case"e":h="error",u=tn[e.v];break;case"d":h="datetime",u=new date(e.v).toisostring(),null==e.z&&(e.z=e.z||b[14]);break;case"s":h="string",u=((e.v||"")+"").replace(qe,(function(e){return qe[e]})).replace(nt,(function(e){return"&#x"+e.charcodeat(0).tostring(16).touppercase()+";"}))}var d=$i(n.cellxfs,e,n);o["ss:styleid"]="s"+(21+d),o["ss:index"]=s.c+1;var p=null!=e.v?u:"",m="z"==e.t?"":''+p+"";return(e.c||[]).length>0&&(m+=e.c.map((function(e){var t=gt("ss:data",(e.t||"").replace(/(\r\n|[\r\n])/g," "),{xmlns:"http://www.w3.org/tr/rec-html40"});return gt("comment",t,{"ss:author":e.a})})).join("")),gt("cell",m,o)}function ys(e,t){var r='"}function os(e,t,r){var n=[],a=r.sheetnames[e],i=r.sheets[a],s=i?function(e,t,r,n){if(!e)return"";if(!((n||{}).workbook||{}).names)return"";for(var a=n.workbook.names,i=[],s=0;s0&&n.push(""+s+""),(s=i?function(e,t,r,n){if(!e["!ref"])return"";var a=pr(e["!ref"]),i=e["!merges"]||[],s=0,o=[];e["!cols"]&&e["!cols"].foreach((function(e,t){ka(e);var r=!!e.width,n=ji(t,e),a={"ss:index":t+1};r&&(a["ss:width"]=xa(n.width)),e.hidden&&(a["ss:hidden"]="1"),o.push(gt("column",null,a))}));for(var l=array.isarray(e),f=a.s.r;f<=a.e.r;++f){for(var c=[ys(f,(e["!rows"]||[])[f])],h=a.s.c;h<=a.e.c;++h){var u=!1;for(s=0;s!=i.length;++s)if(!(i[s].s.c>h)&&!(i[s].s.r>f)&&!(i[s].e.c"),c.length>2&&o.push(c.join(""))}return o.join("")}(i,t):"").length>0&&n.push(""+s+"
"),n.push(function(e,t,r,n){if(!e)return"";var a=[];if(e["!margins"]&&(a.push(""),e["!margins"].header&&a.push(gt("header",null,{"x:margin":e["!margins"].header})),e["!margins"].footer&&a.push(gt("footer",null,{"x:margin":e["!margins"].footer})),a.push(gt("pagemargins",null,{"x:bottom":e["!margins"].bottom||"0.75","x:left":e["!margins"].left||"0.7","x:right":e["!margins"].right||"0.7","x:top":e["!margins"].top||"0.75"})),a.push("")),n&&n.workbook&&n.workbook.sheets&&n.workbook.sheets[r])if(n.workbook.sheets[r].hidden)a.push(gt("visible",1==n.workbook.sheets[r].hidden?"sheethidden":"sheetveryhidden",{}));else{for(var i=0;i")}return((((n||{}).workbook||{}).views||[])[0]||{}).rtl&&a.push(""),e["!protect"]&&(a.push(pt("protectcontents","true")),e["!protect"].objects&&a.push(pt("protectobjects","true")),e["!protect"].scenarios&&a.push(pt("protectscenarios","true")),null==e["!protect"].selectlockedcells||e["!protect"].selectlockedcells?null==e["!protect"].selectunlockedcells||e["!protect"].selectunlockedcells||a.push(pt("enableselection","unlockedcells")):a.push(pt("enableselection","noselection")),[["formatcells","allowformatcells"],["formatcolumns","allowsizecols"],["formatrows","allowsizerows"],["insertcolumns","allowinsertcols"],["insertrows","allowinsertrows"],["inserthyperlinks","allowinserthyperlinks"],["deletecolumns","allowdeletecols"],["deleterows","allowdeleterows"],["sort","allowsort"],["autofilter","allowfilter"],["pivottables","allowusepivottables"]].foreach((function(t){e["!protect"][t[0]]&&a.push("<"+t[1]+"/>")}))),0==a.length?"":gt("worksheetoptions",a.join(""),{xmlns:dt})}(i,0,e,r)),n.join("")}function xs(e,t){t||(t={}),e.ssf||(e.ssf=ve(b)),e.ssf&&(be(),ee(e.ssf),t.revssf=ne(e.ssf),t.revssf[e.ssf[65535]]=0,t.ssf=e.ssf,t.cellxfs=[],$i(t.cellxfs,{},{revssf:{general:0}}));var r=[];r.push(ss(e,t)),r.push(""),r.push(""),r.push("");for(var n=0;n'];return t.cellxfs.foreach((function(e,t){var n=[];n.push(gt("numberformat",null,{"ss:format":tt(b[e.numfmtid])}));var a={"ss:id":"s"+(21+t)};r.push(gt("style",n.join(""),a))})),gt("styles",r.join(""))}(0,t),r[3]=function(e){if(!((e||{}).workbook||{}).names)return"";for(var t=e.workbook.names,r=[],n=0;n-1||in.indexof(i[s][0])>-1||null!=i[s][1]&&f.push(i[s]);a.length&&_e.utils.cfb_add(t,"/\x05summaryinformation",wn(a,cs,l,mn)),(n.length||f.length)&&_e.utils.cfb_add(t,"/\x05documentsummaryinformation",wn(n,rs,o,pn,f.length?f:null,ks))}(e,n),8==r.biff&&e.vbaraw&&function(e,t){t.fullpaths.foreach((function(r,n){if(0!=n){var a=r.replace(/[^\/]*[\/]/,"/_vba_project_cur/");"/"!==a.slice(-1)&&_e.utils.cfb_add(e,a,t.fileindex[n].content)}}))}(n,_e.read(e.vbaraw,{type:"string"==typeof e.vbaraw?"binary":"buffer"})),n}var is={0:{f:function(e,t){var r={},n=e.l+t;r.r=e.read_shift(4),e.l+=4;var a=e.read_shift(2);e.l+=1;var i=e.read_shift(1);return e.l=n,7&i&&(r.level=7&i),16&i&&(r.hidden=!0),32&i&&(r.hpt=a/20),r}},1:{f:function(e){return[xr(e)]}},2:{f:function(e){return[xr(e),an(e),"n"]}},3:{f:function(e){return[xr(e),e.read_shift(1),"e"]}},4:{f:function(e){return[xr(e),e.read_shift(1),"b"]}},5:{f:function(e){return[xr(e),cn(e),"n"]}},6:{f:function(e){return[xr(e),hr(e),"str"]}},7:{f:function(e){return[xr(e),e.read_shift(4),"s"]}},8:{f:function(e,t,r){var n=e.l+t,a=xr(e);a.r=r["!row"];var i=[a,hr(e),"str"];if(r.cellformula){e.l+=2;var s=mi(e,n-e.l,r);i[3]=ii(s,0,a,r.supbooks,r)}else e.l=n;return i}},9:{f:function(e,t,r){var n=e.l+t,a=xr(e);a.r=r["!row"];var i=[a,cn(e),"n"];if(r.cellformula){e.l+=2;var s=mi(e,n-e.l,r);i[3]=ii(s,0,a,r.supbooks,r)}else e.l=n;return i}},10:{f:function(e,t,r){var n=e.l+t,a=xr(e);a.r=r["!row"];var i=[a,e.read_shift(1),"b"];if(r.cellformula){e.l+=2;var s=mi(e,n-e.l,r);i[3]=ii(s,0,a,r.supbooks,r)}else e.l=n;return i}},11:{f:function(e,t,r){var n=e.l+t,a=xr(e);a.r=r["!row"];var i=[a,e.read_shift(1),"e"];if(r.cellformula){e.l+=2;var s=mi(e,n-e.l,r);i[3]=ii(s,0,a,r.supbooks,r)}else e.l=n;return i}},12:{f:function(e){return[kr(e)]}},13:{f:function(e){return[kr(e),an(e),"n"]}},14:{f:function(e){return[kr(e),e.read_shift(1),"e"]}},15:{f:function(e){return[kr(e),e.read_shift(1),"b"]}},16:{f:ts},17:{f:function(e){return[kr(e),hr(e),"str"]}},18:{f:function(e){return[kr(e),e.read_shift(4),"s"]}},19:{f:jr},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:function(e,t,r){var n=e.l+t;e.l+=4,e.l+=1;var a=e.read_shift(4),i=tn(e),s=fi(e,0,r),o=qr(e);e.l=n;var l={name:i,ptg:s};return a<268435455&&(l.sheet=a),o&&(l.comment=o),l}},40:{},42:{},43:{f:function(e,t,r){var n={};n.sz=e.read_shift(2)/20;var a=function(e){var t=e.read_shift(1);return e.l++,{fbold:1&t,fitalic:2&t,funderline:4&t,fstrikeout:8&t,foutline:16&t,fshadow:32&t,fcondense:64&t,fextend:128&t}}(e);switch(a.fitalic&&(n.italic=1),a.fcondense&&(n.condense=1),a.fextend&&(n.extend=1),a.fshadow&&(n.shadow=1),a.foutline&&(n.outline=1),a.fstrikeout&&(n.strike=1),700===e.read_shift(2)&&(n.bold=1),e.read_shift(2)){case 1:n.vertalign="superscript";break;case 2:n.vertalign="subscript"}var i=e.read_shift(1);0!=i&&(n.underline=i);var s=e.read_shift(1);s>0&&(n.family=s);var o=e.read_shift(1);switch(o>0&&(n.charset=o),e.l++,n.color=function(e){var t={},r=e.read_shift(1)>>>1,n=e.read_shift(1),a=e.read_shift(2,"i"),i=e.read_shift(1),s=e.read_shift(1),o=e.read_shift(1);switch(e.l++,r){case 0:t.auto=1;break;case 1:t.index=n;var l=vn[n];l&&(t.rgb=ya(l));break;case 2:t.rgb=ya([i,s,o]);break;case 3:t.theme=n}return 0!=a&&(t.tint=a>0?a/32767:a/32768),t}(e),e.read_shift(1)){case 1:n.scheme="major";break;case 2:n.scheme="minor"}return n.name=hr(e),n}},44:{f:function(e,t){return[e.read_shift(2),hr(e)]}},45:{f:ua},46:{f:ga},47:{f:function(e,t){var r=e.l+t,n=e.read_shift(2),a=e.read_shift(2);return e.l=r,{ixfe:n,numfmtid:a}}},48:{},49:{f:function(e){return e.read_shift(4,"i")}},50:{},51:{f:function(e){for(var t=[],r=e.read_shift(4);r-- >0;)t.push([e.read_shift(4),e.read_shift(4)]);return t}},52:{t:1},53:{t:-1},54:{t:1},55:{t:-1},56:{t:1},57:{t:-1},58:{},59:{},60:{f:ha},62:{f:function(e){return[xr(e),jr(e),"is"]}},63:{f:function(e){var t={};t.i=e.read_shift(4);var r={};r.r=e.read_shift(4),r.c=e.read_shift(4),t.r=nr(r);var n=e.read_shift(1);return 2&n&&(t.l="1"),8&n&&(t.a="1"),t}},64:{f:function(){}},65:{},66:{},67:{},68:{},69:{},70:{},128:{},129:{t:1},130:{t:-1},131:{t:1,f:tr,p:0},132:{t:-1},133:{t:1},134:{t:-1},135:{t:1},136:{t:-1},137:{t:1,f:function(e){var t=e.read_shift(2);return e.l+=28,{rtl:32&t}}},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:function(e,t){var r={},n=e[e.l];return++e.l,r.above=!(64&n),r.left=!(128&n),e.l+=18,r.name=zr(e,t-19),r}},148:{f:qi,p:16},151:{f:function(){}},152:{},153:{f:function(e,t){var r={},n=e.read_shift(4);r.defaultthemeversion=e.read_shift(4);var a=t>8?hr(e):"";return a.length>0&&(r.codename=a),r.autocompresspictures=!!(65536&n),r.backupfile=!!(64&n),r.checkcompatibility=!!(4096&n),r.date1904=!!(1&n),r.filterprivacy=!!(8&n),r.hidepivotfieldlist=!!(1024&n),r.promptedsolutions=!!(16&n),r.publishitems=!!(2048&n),r.refreshallconnections=!!(262144&n),r.saveexternallinkvalues=!!(128&n),r.showborderunselectedtables=!!(4&n),r.showinkannotation=!!(32&n),r.showobjects=["all","placeholders","none"][n>>13&3],r.showpivotchartfilter=!!(32768&n),r.updatelinks=["userset","never","always"][n>>8&3],r}},154:{},155:{},156:{f:function(e,t){var r={};return r.hidden=e.read_shift(4),r.itabid=e.read_shift(4),r.strrelid=rn(e,t-8),r.name=hr(e),r}},157:{},158:{},159:{t:1,f:function(e){return[e.read_shift(4),e.read_shift(4)]}},160:{t:-1},161:{t:1,f:ln},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:rs},177:{t:1},178:{t:-1},179:{t:1},180:{t:-1},181:{t:1},182:{t:-1},183:{t:1},184:{t:-1},185:{t:1},186:{t:-1},187:{t:1},188:{t:-1},189:{t:1},190:{t:-1},191:{t:1},192:{t:-1},193:{t:1},194:{t:-1},195:{t:1},196:{t:-1},197:{t:1},198:{t:-1},199:{t:1},200:{t:-1},201:{t:1},202:{t:-1},203:{t:1},204:{t:-1},205:{t:1},206:{t:-1},207:{t:1},208:{t:-1},209:{t:1},210:{t:-1},211:{t:1},212:{t:-1},213:{t:1},214:{t:-1},215:{t:1},216:{t:-1},217:{t:1},218:{t:-1},219:{t:1},220:{t:-1},221:{t:1},222:{t:-1},223:{t:1},224:{t:-1},225:{t:1},226:{t:-1},227:{t:1},228:{t:-1},229:{t:1},230:{t:-1},231:{t:1},232:{t:-1},233:{t:1},234:{t:-1},235:{t:1},236:{t:-1},237:{t:1},238:{t:-1},239:{t:1},240:{t:-1},241:{t:1},242:{t:-1},243:{t:1},244:{t:-1},245:{t:1},246:{t:-1},247:{t:1},248:{t:-1},249:{t:1},250:{t:-1},251:{t:1},252:{t:-1},253:{t:1},254:{t:-1},255:{t:1},256:{t:-1},257:{t:1},258:{t:-1},259:{t:1},260:{t:-1},261:{t:1},262:{t:-1},263:{t:1},264:{t:-1},265:{t:1},266:{t:-1},267:{t:1},268:{t:-1},269:{t:1},270:{t:-1},271:{t:1},272:{t:-1},273:{t:1},274:{t:-1},275:{t:1},276:{t:-1},277:{},278:{t:1},279:{t:-1},280:{t:1},281:{t:-1},282:{t:1},283:{t:1},284:{t:-1},285:{t:1},286:{t:-1},287:{t:1},288:{t:-1},289:{t:1},290:{t:-1},291:{t:1},292:{t:-1},293:{t:1},294:{t:-1},295:{t:1},296:{t:-1},297:{t:1},298:{t:-1},299:{t:1},300:{t:-1},301:{t:1},302:{t:-1},303:{t:1},304:{t:-1},305:{t:1},306:{t:-1},307:{t:1},308:{t:-1},309:{t:1},310:{t:-1},311:{t:1},312:{t:-1},313:{t:-1},314:{t:1},315:{t:-1},316:{t:1},317:{t:-1},318:{t:1},319:{t:-1},320:{t:1},321:{t:-1},322:{t:1},323:{t:-1},324:{t:1},325:{t:-1},326:{t:1},327:{t:-1},328:{t:1},329:{t:-1},330:{t:1},331:{t:-1},332:{t:1},333:{t:-1},334:{t:1},335:{f:function(e,t){return{flags:e.read_shift(4),version:e.read_shift(4),name:hr(e)}}},336:{t:-1},337:{f:function(e){return e.l+=4,0!=e.read_shift(4)},t:1},338:{t:-1},339:{t:1},340:{t:-1},341:{t:1},342:{t:-1},343:{t:1},344:{t:-1},345:{t:1},346:{t:-1},347:{t:1},348:{t:-1},349:{t:1},350:{t:-1},351:{},352:{},353:{t:1},354:{t:-1},355:{f:rn},357:{},358:{},359:{},360:{t:1},361:{},362:{f:la},363:{},364:{},366:{},367:{},368:{},369:{},370:{},371:{},372:{t:1},373:{t:-1},374:{t:1},375:{t:-1},376:{t:1},377:{t:-1},378:{t:1},379:{t:-1},380:{t:1},381:{t:-1},382:{t:1},383:{t:-1},384:{t:1},385:{t:-1},386:{t:1},387:{t:-1},388:{t:1},389:{t:-1},390:{t:1},391:{t:-1},392:{t:1},393:{t:-1},394:{t:1},395:{t:-1},396:{},397:{},398:{},399:{},400:{},401:{t:1},403:{},404:{},405:{},406:{},407:{},408:{},409:{},410:{},411:{},412:{},413:{},414:{},415:{},416:{},417:{},418:{},419:{},420:{},421:{},422:{t:1},423:{t:1},424:{t:-1},425:{t:-1},426:{f:function(e,t,r){var n=e.l+t,a=on(e),i=e.read_shift(1),s=[a];if(s[2]=i,r.cellformula){var o=li(e,n-e.l,r);s[1]=o}else e.l=n;return s}},427:{f:function(e,t,r){var n=e.l+t,a=[ln(e,16)];if(r.cellformula){var i=ui(e,n-e.l,r);a[1]=i,e.l=n}else e.l=n;return a}},428:{},429:{t:1},430:{t:-1},431:{t:1},432:{t:-1},433:{t:1},434:{t:-1},435:{t:1},436:{t:-1},437:{t:1},438:{t:-1},439:{t:1},440:{t:-1},441:{t:1},442:{t:-1},443:{t:1},444:{t:-1},445:{t:1},446:{t:-1},447:{t:1},448:{t:-1},449:{t:1},450:{t:-1},451:{t:1},452:{t:-1},453:{t:1},454:{t:-1},455:{t:1},456:{t:-1},457:{t:1},458:{t:-1},459:{t:1},460:{t:-1},461:{t:1},462:{t:-1},463:{t:1},464:{t:-1},465:{t:1},466:{t:-1},467:{t:1},468:{t:-1},469:{t:1},470:{t:-1},471:{},472:{},473:{t:1},474:{t:-1},475:{},476:{f:function(e){var t={};return as.foreach((function(r){t[r]=cn(e)})),t}},477:{},478:{},479:{t:1},480:{t:-1},481:{t:1},482:{t:-1},483:{t:1},484:{t:-1},485:{f:function(){}},486:{t:1},487:{t:-1},488:{t:1},489:{t:-1},490:{t:1},491:{t:-1},492:{t:1},493:{t:-1},494:{f:function(e,t){var r=e.l+t,n=ln(e,16),a=qr(e),i=hr(e),s=hr(e),o=hr(e);e.l=r;var l={rfx:n,relid:a,loc:i,display:o};return s&&(l.tooltip=s),l}},495:{t:1},496:{t:-1},497:{t:1},498:{t:-1},499:{},500:{t:1},501:{t:-1},502:{t:1},503:{t:-1},504:{},505:{t:1},506:{t:-1},507:{},508:{t:1},509:{t:-1},510:{t:1},511:{t:-1},512:{},513:{},514:{t:1},515:{t:-1},516:{t:1},517:{t:-1},518:{t:1},519:{t:-1},520:{t:1},521:{t:-1},522:{},523:{},524:{},525:{},526:{},527:{},528:{t:1},529:{t:-1},530:{t:1},531:{t:-1},532:{t:1},533:{t:-1},534:{},535:{},536:{},537:{},538:{t:1},539:{t:-1},540:{t:1},541:{t:-1},542:{t:1},548:{},549:{},550:{f:rn},551:{},552:{},553:{},554:{t:1},555:{t:-1},556:{t:1},557:{t:-1},558:{t:1},559:{t:-1},560:{t:1},561:{t:-1},562:{},564:{},565:{t:1},566:{t:-1},569:{t:1},570:{t:-1},572:{},573:{t:1},574:{t:-1},577:{},578:{},579:{},580:{},581:{},582:{},583:{},584:{},585:{},586:{},587:{},588:{t:-1},589:{},590:{t:1},591:{t:-1},592:{t:1},593:{t:-1},594:{t:1},595:{t:-1},596:{},597:{t:1},598:{t:-1},599:{t:1},600:{t:-1},601:{t:1},602:{t:-1},603:{t:1},604:{t:-1},605:{t:1},606:{t:-1},607:{},608:{t:1},609:{t:-1},610:{},611:{t:1},612:{t:-1},613:{t:1},614:{t:-1},615:{t:1},616:{t:-1},617:{t:1},618:{t:-1},619:{t:1},620:{t:-1},625:{},626:{t:1},627:{t:-1},628:{t:1},629:{t:-1},630:{t:1},631:{t:-1},632:{f:ei},633:{t:1},634:{t:-1},635:{t:1,f:function(e){var t={};t.iauthor=e.read_shift(4);var r=ln(e,16);return t.rfx=r.s,t.ref=nr(r.s),e.l+=16,t}},636:{t:-1},637:{f:zr},638:{t:1},639:{},640:{t:-1},641:{t:1},642:{t:-1},643:{t:1},644:{},645:{t:-1},646:{t:1},648:{t:1},649:{},650:{t:-1},651:{f:function(e,t){return e.l+=10,{name:hr(e)}}},652:{},653:{t:1},654:{t:-1},655:{t:1},656:{t:-1},657:{t:1},658:{t:-1},659:{},660:{t:1},661:{},662:{t:-1},663:{},664:{t:1},665:{},666:{t:-1},667:{},668:{},669:{},671:{t:1},672:{t:-1},673:{t:1},674:{t:-1},675:{},676:{},677:{},678:{},679:{},680:{},681:{},1024:{},1025:{},1026:{t:1},1027:{t:-1},1028:{t:1},1029:{t:-1},1030:{},1031:{t:1},1032:{t:-1},1033:{t:1},1034:{t:-1},1035:{},1036:{},1037:{},1038:{t:1},1039:{t:-1},1040:{},1041:{t:1},1042:{t:-1},1043:{},1044:{},1045:{},1046:{t:1},1047:{t:-1},1048:{t:1},1049:{t:-1},1050:{},1051:{t:1},1052:{t:1},1053:{f:function(){}},1054:{t:1},1055:{},1056:{t:1},1057:{t:-1},1058:{t:1},1059:{t:-1},1061:{},1062:{t:1},1063:{t:-1},1064:{t:1},1065:{t:-1},1066:{t:1},1067:{t:-1},1068:{t:1},1069:{t:-1},1070:{t:1},1071:{t:-1},1072:{t:1},1073:{t:-1},1075:{t:1},1076:{t:-1},1077:{t:1},1078:{t:-1},1079:{t:1},1080:{t:-1},1081:{t:1},1082:{t:-1},1083:{t:1},1084:{t:-1},1085:{},1086:{t:1},1087:{t:-1},1088:{t:1},1089:{t:-1},1090:{t:1},1091:{t:-1},1092:{t:1},1093:{t:-1},1094:{t:1},1095:{t:-1},1096:{},1097:{t:1},1098:{},1099:{t:-1},1100:{t:1},1101:{t:-1},1102:{},1103:{},1104:{},1105:{},1111:{},1112:{},1113:{t:1},1114:{t:-1},1115:{t:1},1116:{t:-1},1117:{},1118:{t:1},1119:{t:-1},1120:{t:1},1121:{t:-1},1122:{t:1},1123:{t:-1},1124:{t:1},1125:{t:-1},1126:{},1128:{t:1},1129:{t:-1},1130:{},1131:{t:1},1132:{t:-1},1133:{t:1},1134:{t:-1},1135:{t:1},1136:{t:-1},1137:{t:1},1138:{t:-1},1139:{t:1},1140:{t:-1},1141:{},1142:{t:1},1143:{t:-1},1144:{t:1},1145:{t:-1},1146:{},1147:{t:1},1148:{t:-1},1149:{t:1},1150:{t:-1},1152:{t:1},1153:{t:-1},1154:{t:-1},1155:{t:-1},1156:{t:-1},1157:{t:1},1158:{t:-1},1159:{t:1},1160:{t:-1},1161:{t:1},1162:{t:-1},1163:{t:1},1164:{t:-1},1165:{t:1},1166:{t:-1},1167:{t:1},1168:{t:-1},1169:{t:1},1170:{t:-1},1171:{},1172:{t:1},1173:{t:-1},1177:{},1178:{t:1},1180:{},1181:{},1182:{},2048:{t:1},2049:{t:-1},2050:{},2051:{t:1},2052:{t:-1},2053:{},2054:{},2055:{t:1},2056:{t:-1},2057:{t:1},2058:{t:-1},2060:{},2067:{},2068:{t:1},2069:{t:-1},2070:{},2071:{},2072:{t:1},2073:{t:-1},2075:{},2076:{},2077:{t:1},2078:{t:-1},2079:{},2080:{t:1},2081:{t:-1},2082:{},2083:{t:1},2084:{t:-1},2085:{t:1},2086:{t:-1},2087:{t:1},2088:{t:-1},2089:{t:1},2090:{t:-1},2091:{},2092:{},2093:{t:1},2094:{t:-1},2095:{},2096:{t:1},2097:{t:-1},2098:{t:1},2099:{t:-1},2100:{t:1},2101:{t:-1},2102:{},2103:{t:1},2104:{t:-1},2105:{},2106:{t:1},2107:{t:-1},2108:{},2109:{t:1},2110:{t:-1},2111:{t:1},2112:{t:-1},2113:{t:1},2114:{t:-1},2115:{},2116:{},2117:{},2118:{t:1},2119:{t:-1},2120:{},2121:{t:1},2122:{t:-1},2123:{t:1},2124:{t:-1},2125:{},2126:{t:1},2127:{t:-1},2128:{},2129:{t:1},2130:{t:-1},2131:{t:1},2132:{t:-1},2133:{t:1},2134:{},2135:{},2136:{},2137:{t:1},2138:{t:-1},2139:{t:1},2140:{t:-1},2141:{},3072:{},3073:{},4096:{t:1},4097:{t:-1},5002:{t:1},5003:{t:-1},5081:{t:1},5082:{t:-1},5083:{},5084:{t:1},5085:{t:-1},5086:{t:1},5087:{t:-1},5088:{},5089:{},5090:{},5092:{t:1},5093:{t:-1},5094:{},5095:{t:1},5096:{t:-1},5097:{},5099:{},65535:{n:""}};function ds(e,t,r,n){var a=t;if(!isnan(a)){var i=n||(r||[]).length||0,s=e.next(4);s.write_shift(2,a),s.write_shift(2,i),i>0&&ir(r)&&e.push(r)}}function ps(e,t,r){return e||(e=wr(7)),e.write_shift(2,t),e.write_shift(2,r),e.write_shift(2,0),e.write_shift(1,0),e}function ls(e,t,r,n){if(null!=t.v)switch(t.t){case"d":case"n":var a="d"==t.t?de(he(t.v)):t.v;return void(a==(0|a)&&a>=0&&a<65536?ds(e,2,function(e,t,r){var n=wr(9);return ps(n,e,t),n.write_shift(2,r),n}(r,n,a)):ds(e,3,function(e,t,r){var n=wr(15);return ps(n,e,t),n.write_shift(8,r,"f"),n}(r,n,a)));case"b":case"e":return void ds(e,5,function(e,t,r,n){var a=wr(9);return ps(a,e,t),zn(r,n||"b",a),a}(r,n,t.v,t.t));case"s":case"str":return void ds(e,4,function(e,t,r){var n=wr(8+2*r.length);return ps(n,e,t),n.write_shift(1,r.length),n.write_shift(r.length,r,"sbcs"),n.l255||s.e.r>16383){if(n.wtf)throw new error("range "+(t["!ref"]||"a1")+" exceeds format limit a1:iv16384");s.e.c=math.min(s.e.c,255),s.e.r=math.min(s.e.c,16383),a=dr(s)}for(var f=s.s.r;f<=s.e.r;++f){o=xr(f);for(var c=s.s.c;c<=s.e.c;++c){f===s.s.r&&(l[c]=rr(c)),a=l[c]+o;var h=i?(t[f]||[])[c]:t[a];h&&ls(e,h,f,c)}}}(n,e.sheets[e.sheetnames[a]],0,r),ds(n,10),n.end()}function fs(e,t,r){ds(e,49,function(e,t){var r=e.name||"arial",n=t&&5==t.biff,a=wr(n?15+r.length:16+2*r.length);return a.write_shift(2,20*(e.sz||12)),a.write_shift(4,0),a.write_shift(2,400),a.write_shift(4,0),a.write_shift(2,0),a.write_shift(1,r.length),n||a.write_shift(1,1),a.write_shift((n?1:2)*r.length,r,n?"sbcs":"utf16le"),a}({sz:12,color:{theme:1},name:"arial",family:2,scheme:"minor"},r))}function us(e,t){if(t){var r=0;t.foreach((function(t,n){++r<=256&&t&&ds(e,125,function(e,t){var r=wr(12);r.write_shift(2,t),r.write_shift(2,t),r.write_shift(2,256*e.width),r.write_shift(2,0);var n=0;return e.hidden&&(n|=1),r.write_shift(1,n),n=e.level||0,r.write_shift(1,n),r.write_shift(2,0),r}(ji(n,t),n))}))}}function bs(e,t,r,n,a){var i=16+$i(a.cellxfs,t,a);if(null!=t.v||t.bf)if(t.bf)ds(e,6,di(t,r,n,0,i));else switch(t.t){case"d":case"n":ds(e,515,function(e,t,r,n){var a=wr(14);return ea(e,t,n,a),hn(r,a),a}(r,n,"d"==t.t?de(he(t.v)):t.v,i));break;case"b":case"e":ds(e,517,function(e,t,r,n,a,i){var s=wr(8);return ea(e,t,n,s),zn(r,i,s),s}(r,n,t.v,i,0,t.t));break;case"s":case"str":if(a.booksst)ds(e,253,function(e,t,r,n){var a=wr(10);return ea(e,t,n,a),a.write_shift(4,r),a}(r,n,vi(a.strings,t.v,a.revstrings),i));else ds(e,516,function(e,t,r,n,a){var i=!a||8==a.biff,s=wr(+i+8+(1+i)*r.length);return ea(e,t,n,s),s.write_shift(2,r.length),i&&s.write_shift(1,1),s.write_shift((1+i)*r.length,r,i?"utf16le":"sbcs"),s}(r,n,(t.v||"").slice(0,255),i,a));break;default:ds(e,513,ea(r,n,i))}else ds(e,513,ea(r,n,i))}function ws(e,t,r){var n,a=er(),i=r.sheetnames[e],s=r.sheets[i]||{},o=(r||{}).workbook||{},l=(o.sheets||[])[e]||{},f=array.isarray(s),c=8==t.biff,h="",u=[],d=pr(s["!ref"]||"a1"),p=c?65536:16384;if(d.e.c>255||d.e.r>=p){if(t.wtf)throw new error("range "+(s["!ref"]||"a1")+" exceeds format limit a1:iv16384");d.e.c=math.min(d.e.c,255),d.e.r=math.min(d.e.c,p-1)}ds(a,2057,aa(0,16,t)),ds(a,13,jn(1)),ds(a,12,jn(100)),ds(a,15,gn(!0)),ds(a,17,gn(!1)),ds(a,16,hn(.001)),ds(a,95,gn(!0)),ds(a,42,gn(!1)),ds(a,43,gn(!1)),ds(a,130,jn(1)),ds(a,128,function(e){var t=wr(8);return t.write_shift(4,0),t.write_shift(2,e[0]?e[0]+1:0),t.write_shift(2,e[1]?e[1]+1:0),t}([0,0])),ds(a,131,gn(!1)),ds(a,132,gn(!1)),c&&us(a,s["!cols"]),ds(a,512,function(e,t){var r=8!=t.biff&&t.biff?2:4,n=wr(2*r+6);return n.write_shift(r,e.s.r),n.write_shift(r,e.e.r+1),n.write_shift(2,e.s.c),n.write_shift(2,e.e.c+1),n.write_shift(2,0),n}(d,t)),c&&(s["!links"]=[]);for(var m=d.s.r;m<=d.e.r;++m){h=xr(m);for(var g=d.s.c;g<=d.e.c;++g){m===d.s.r&&(u[g]=rr(g)),n=u[g]+h;var v=f?(s[m]||[])[g]:s[n];v&&(bs(a,v,m,g,t),c&&v.l&&s["!links"].push([n,v.l]))}}var t=l.codename||l.name||i;return c&&ds(a,574,function(e){var t=wr(18),r=1718;return e&&e.rtl&&(r|=64),t.write_shift(2,r),t.write_shift(4,0),t.write_shift(4,64),t.write_shift(4,0),t.write_shift(4,0),t}((o.views||[])[0])),c&&(s["!merges"]||[]).length&&ds(a,229,function(e){var t=wr(2+8*e.length);t.write_shift(2,e.length);for(var r=0;r255&&"undefined"!=typeof console&&console.error&&console.error("worksheet '"+e.sheetnames[r]+"' extends beyond column iv (255). data may be lost.")}var a=t||{};switch(a.biff||2){case 8:case 5:return function(e,t){var r=t||{},n=[];e&&!e.ssf&&(e.ssf=ve(b)),e&&e.ssf&&(be(),ee(e.ssf),r.revssf=ne(e.ssf),r.revssf[e.ssf[65535]]=0,r.ssf=e.ssf),r.strings=[],r.strings.count=0,r.strings.unique=0,wo(r),r.cellxfs=[],$i(r.cellxfs,{},{revssf:{general:0}}),e.props||(e.props={});for(var a=0;ar||a[f].s.c>s)&&!(a[f].e.r1&&(d.rowspan=o),l>1&&(d.colspan=l),n.editable?u=''+u+"":h&&(d["data-t"]=h&&h.t||"z",null!=h.v&&(d["data-v"]=h.v),null!=h.z&&(d["data-z"]=h.z),h.l&&"#"!=(h.l.target||"#").charat(0)&&(u=''+u+"")),d.id=(n.id||"sjs")+"-"+c,i.push(gt("td",u,d))}}return""+i.join("")+""}var js='sheetjs table export',zs="";function $s(e,t,r){return[].join("")+""}function xs(e,t){var r=t||{},n=null!=r.header?r.header:js,a=null!=r.footer?r.footer:zs,i=[n],s=ir(e["!ref"]);r.dense=array.isarray(e),i.push($s(0,0,r));for(var o=s.s.r;o<=s.e.r;++o)i.push(vs(e,s,o,r));return i.push(""+a),i.join("")}function ys(e,t,r){var n=r||{};var a=0,i=0;if(null!=n.origin)if("number"==typeof n.origin)a=n.origin;else{var s="string"==typeof n.origin?kr(n.origin):n.origin;a=s.r,i=s.c}var o=t.getelementsbytagname("tr"),l=math.min(n.sheetrows||1e7,o.length),f={s:{r:0,c:0},e:{r:a,c:i}};if(e["!ref"]){var c=ir(e["!ref"]);f.s.r=math.min(f.s.r,c.s.r),f.s.c=math.min(f.s.c,c.s.c),f.e.r=math.max(f.e.r,c.e.r),f.e.c=math.max(f.e.c,c.e.c),-1==a&&(f.e.r=a=c.e.r+1)}var h=[],u=0,d=e["!rows"]||(e["!rows"]=[]),p=0,m=0,g=0,v=0,t=0,w=0;for(e["!cols"]||(e["!cols"]=[]);p1||w>1)&&h.push({s:{r:m+a,c:v+i},e:{r:m+a+(t||1)-1,c:v+i+(w||1)-1}});var o={t:"s",v:a},x=s.getattribute("data-t")||s.getattribute("t")||"";null!=a&&(0==a.length?o.t=x||"z":n.raw||0==a.trim().length||"s"==x||("true"===a?o={t:"b",v:!0}:"false"===a?o={t:"b",v:!1}:isnan(ze(a))?isnan(xe(a).getdate())||(o={t:"d",v:he(a)},n.celldates||(o={t:"n",v:de(o.v)}),o.z=n.datenf||b[14]):o={t:"n",v:ze(a)})),void 0===o.z&&null!=_&&(o.z=_);var c="",r=s.getelementsbytagname("a");if(r&&r.length)for(var k=0;k=l&&(e["!fullref"]=dr((f.e.r=o.length-p+m-1+a,f))),e}function ks(e,t){return ys((t||{}).dense?[]:{},e,t)}function js(e){var t="",r=function(e){return e.ownerdocument.defaultview&&"function"===typeof e.ownerdocument.defaultview.getcomputedstyle?e.ownerdocument.defaultview.getcomputedstyle:"function"===typeof getcomputedstyle?getcomputedstyle:null}(e);return r&&(t=r(e).getpropertyvalue("display")),t||(t=e.style&&e.style.display),"none"===t}var zs=function(){var e=["",'',"",'',"",'',"",""].join(""),t=""+e+"";return function(){return je+t}}(),qs=function(){var e=" \n",t=function(t,r,n){var a=[];a.push(' \n');var i=0,s=0,o=ir(t["!ref"]||"a1"),l=t["!merges"]||[],f=0,c=array.isarray(t);if(t["!cols"])for(s=0;s<=o.e.c;++s)a.push(" \n");var h="",u=t["!rows"]||[];for(i=0;i\n");for(;i<=o.e.r;++i){for(h=u[i]?' table:style-name="ro'+u[i].ods+'"':"",a.push(" \n"),s=0;ss)&&!(l[f].s.r>i)&&!(l[f].e.c\n");else{var g=nr({r:i,c:s}),v=c?(t[i]||[])[s]:t[g];if(v&&v.f&&(p["table:formula"]=tt(("of:="+v.f.replace(ai,"$1[.$2$3$4$5]").replace(/\]:\[/g,":")).replace(/;/g,"|").replace(/,/g,";")),v.f&&v.f.slice(0,g.length)==g)){var t=ir(v.f);p["table:number-matrix-columns-spanned"]=t.e.c-t.s.c+1,p["table:number-matrix-rows-spanned"]=t.e.r-t.s.r+1}if(v){switch(v.t){case"b":m=v.v?"true":"false",p["office:value-type"]="boolean",p["office:boolean-value"]=v.v?"true":"false";break;case"n":m=v.w||string(v.v||0),p["office:value-type"]="float",p["office:value"]=v.v||0;break;case"s":case"str":m=null==v.v?"":v.v,p["office:value-type"]="string";break;case"d":m=v.w||he(v.v).toisostring(),p["office:value-type"]="date",p["office:date-value"]=he(v.v).toisostring(),p["table:style-name"]="ce1";break;default:a.push(e);continue}var w=tt(m).replace(/ +/g,(function(e){return''})).replace(/\t/g,"").replace(/\n/g,"").replace(/^ /,"").replace(/ $/,"");if(v.l&&v.l.target){var e=v.l.target;"#"==(e="#"==e.charat(0)?"#"+e.slice(1).replace(/\./,"!"):e).charat(0)||e.match(/^\w+:/)||(e="../"+e),w=gt("text:a",w,{"xlink:href":e.replace(/&/g,"&")})}a.push(" "+gt("table:table-cell",gt("text:p",w,{}),p)+"\n")}else a.push(e)}}a.push(" \n")}return a.push(" \n"),a.join("")};return function(e,r){var n=[je],a=mt({"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"}),i=mt({"xmlns:config":"urn:oasis:names:tc:opendocument:xmlns:config:1.0","office:mimetype":"application/vnd.oasis.opendocument.spreadsheet"});"fods"==r.booktype?(n.push("\n"),n.push(xn().replace(/office:document-meta/g,"office:meta"))):n.push("\n"),function(e,t){e.push(" \n"),e.push(' \n'),e.push(' \n'),e.push(" /\n"),e.push(' \n'),e.push(" /\n"),e.push(" \n"),e.push(" \n");var r=0;t.sheetnames.map((function(e){return t.sheets[e]})).foreach((function(t){if(t&&t["!cols"])for(var n=0;n\n'),e.push(' \n'),e.push(" \n"),++r}}));var n=0;t.sheetnames.map((function(e){return t.sheets[e]})).foreach((function(t){if(t&&t["!rows"])for(var r=0;r\n'),e.push(' \n'),e.push(" \n"),++n}})),e.push(' \n'),e.push(' \n'),e.push(" \n"),e.push(' \n'),e.push(" \n")}(n,e),n.push(" \n"),n.push(" \n");for(var s=0;s!=e.sheetnames.length;++s)n.push(t(e.sheets[e.sheetnames[s]],e,s));return n.push(" \n"),n.push(" \n"),"fods"==r.booktype?n.push(""):n.push(""),n.join("")}}();function qs(e,t){if("fods"==t.booktype)return qs(e,t);var r=ke(),n="",a=[],i=[];return ye(r,n="mimetype","application/vnd.oasis.opendocument.spreadsheet"),ye(r,n="content.xml",qs(e,t)),a.push([n,"text/xml"]),i.push([n,"contentfile"]),ye(r,n="styles.xml",zs(e,t)),a.push([n,"text/xml"]),i.push([n,"stylesfile"]),ye(r,n="meta.xml",je+xn()),a.push([n,"text/xml"]),i.push([n,"metadatafile"]),ye(r,n="manifest.rdf",function(e){var t,r,n=[je];n.push('\n');for(var a=0;a!=e.length;++a)n.push(on(e[a][0],e[a][1])),n.push((t="",r=e[a][0],[' \n',' \n'," \n"].join("")));return n.push(on("","document","pkg")),n.push(""),n.join("")}(i)),a.push([n,"application/rdf+xml"]),ye(r,n="meta-inf/manifest.xml",function(e){var t=[je];t.push('\n'),t.push(' \n');for(var r=0;r\n');return t.push(""),t.join("")}(a)),r}function eo(e){return new dataview(e.buffer,e.byteoffset,e.bytelength)}function to(e){return"undefined"!=typeof textencoder?(new textencoder).encode(e):_(ht(e))}function ro(e){var t=e.reduce((function(e,t){return e+t.length}),0),r=new uint8array(t),n=0;return e.foreach((function(e){r.set(e,n),n+=e.length})),r}function no(e,t){var r=t?t[0]:0,n=127&e[r];e:if(e[r++]>=128){if(n|=(127&e[r])<<7,e[r++]<128)break e;if(n|=(127&e[r])<<14,e[r++]<128)break e;if(n|=(127&e[r])<<21,e[r++]<128)break e;if(n+=(127&e[r])*math.pow(2,28),++r,e[r++]<128)break e;if(n+=(127&e[r])*math.pow(2,35),++r,e[r++]<128)break e;if(n+=(127&e[r])*math.pow(2,42),++r,e[r++]<128)break e}return t&&(t[0]=r),n}function ao(e){var t=new uint8array(7);t[0]=127&e;var r=1;e:if(e>127){if(t[r-1]|=128,t[r]=e>>7&127,++r,e<=16383)break e;if(t[r-1]|=128,t[r]=e>>14&127,++r,e<=2097151)break e;if(t[r-1]|=128,t[r]=e>>21&127,++r,e<=268435455)break e;if(t[r-1]|=128,t[r]=e/256>>>21&127,++r,e<=34359738367)break e;if(t[r-1]|=128,t[r]=e/65536>>>21&127,++r,e<=4398046511103)break e;t[r-1]|=128,t[r]=e/16777216>>>21&127,++r}return t.slice(0,r)}function io(e){var t=0,r=127&e[t];e:if(e[t++]>=128){if(r|=(127&e[t])<<7,e[t++]<128)break e;if(r|=(127&e[t])<<14,e[t++]<128)break e;if(r|=(127&e[t])<<21,e[t++]<128)break e;r|=(127&e[t])<<28}return r}function so(e){for(var t=[],r=[0];r[0]=128;);n=e.slice(l,r[0]);break;case 5:o=4,n=e.slice(r[0],r[0]+o),r[0]+=o;break;case 1:o=8,n=e.slice(r[0],r[0]+o),r[0]+=o;break;case 2:o=no(e,r),n=e.slice(r[0],r[0]+o),r[0]+=o;break;case 3:case 4:default:throw new error("pb type ".concat(s," for field ").concat(i," at offset ").concat(a))}var f={data:n,type:s};null==t[i]?t[i]=[f]:t[i].push(f)}return t}function oo(e){var t=[];return e.foreach((function(e,r){e.foreach((function(e){e.data&&(t.push(ao(8*r+e.type)),2==e.type&&t.push(ao(e.data.length)),t.push(e.data))}))})),ro(t)}function lo(e){for(var t,r=[],n=[0];n[0]>>0>0),r.push(s)}return r}function fo(e){var t=[];return e.foreach((function(e){var r=[];r[1]=[{data:ao(e.id),type:0}],r[2]=[],null!=e.merge&&(r[3]=[{data:ao(+!!e.merge),type:0}]);var n=[];e.messages.foreach((function(e){n.push(e.data),e.meta[3]=[{type:0,data:ao(e.data.length)}],r[2].push({data:oo(e.meta),type:2})}));var a=oo(r);t.push(ao(a.length)),t.push(a),n.foreach((function(e){return t.push(e)}))})),ro(t)}function co(e,t){if(0!=e)throw new error("unexpected snappy chunk type ".concat(e));for(var r=[0],n=no(t,r),a=[];r[0]>2&7),s=(224&t[r[0]++])<<3,s|=t[r[0]++]):(o=1+(t[r[0]++]>>2),2==i?(s=t[r[0]]|t[r[0]+1]<<8,r[0]+=2):(s=(t[r[0]]|t[r[0]+1]<<8|t[r[0]+2]<<16|t[r[0]+3]<<24)>>>0,r[0]+=4)),a=[ro(a)],0==s)throw new error("invalid offset 0");if(s>a[0].length)throw new error("invalid offset beyond length");if(o>=s)for(a.push(a[0].slice(-s)),o-=s;o>=a[a.length-1].length;)a.push(a[a.length-1]),o-=a[a.length-1].length;a.push(a[0].slice(-s,-s+o))}else{var l=t[r[0]++]>>2;if(l<60)++l;else{var f=l-59;l=t[r[0]],f>1&&(l|=t[r[0]+1]<<8),f>2&&(l|=t[r[0]+2]<<16),f>3&&(l|=t[r[0]+3]<<24),l>>>=0,l++,r[0]+=f}a.push(t.slice(r[0],r[0]+l)),r[0]+=l}}var c=ro(a);if(c.length!=n)throw new error("unexpected length: ".concat(c.length," != ").concat(n));return c}function ho(e){for(var t=[],r=0;r>8&255]))):n<=16777216?(s+=4,t.push(new uint8array([248,n-1&255,n-1>>8&255,n-1>>16&255]))):n<=4294967296&&(s+=5,t.push(new uint8array([252,n-1&255,n-1>>8&255,n-1>>16&255,n-1>>>24&255]))),t.push(e.slice(r,r+n)),s+=n,a[0]=0,a[1]=255&s,a[2]=s>>8&255,a[3]=s>>16&255,r+=n}return ro(t)}function po(e,t){var r=new uint8array(32),n=eo(r),a=12,i=0;switch(r[0]=5,e.t){case"n":r[1]=2,function(e,t,r){var n=math.floor(0==r?0:math.log10e*math.log(math.abs(r)))+6176-20,a=r/math.pow(10,n-6176);e[t+15]|=n>>7,e[t+14]|=(127&n)<<1;for(var i=0;a>=1;++i,a/=256)e[t+i]=255&a;e[t+15]|=r>=0?0:128}(r,a,e.v),i|=1,a+=16;break;case"b":r[1]=6,n.setfloat64(a,e.v?1:0,!0),i|=2,a+=8;break;case"s":if(-1==t.indexof(e.v))throw new error("value ".concat(e.v," missing from sst!"));r[1]=3,n.setuint32(a,t.indexof(e.v),!0),i|=8,a+=4;break;default:throw"unsupported cell type "+e.t}return n.setuint32(8,i,!0),r.slice(0,a)}function mo(e,t){var r=new uint8array(32),n=eo(r),a=12,i=0;switch(r[0]=3,e.t){case"n":r[2]=2,n.setfloat64(a,e.v,!0),i|=32,a+=8;break;case"b":r[2]=6,n.setfloat64(a,e.v?1:0,!0),i|=32,a+=8;break;case"s":if(-1==t.indexof(e.v))throw new error("value ".concat(e.v," missing from sst!"));r[2]=3,n.setuint32(a,t.indexof(e.v),!0),i|=16,a+=4;break;default:throw"unsupported cell type "+e.t}return n.setuint32(4,i,!0),r.slice(0,a)}function go(e){return no(so(e)[1][0].data)}function vo(e,t,r){var n,a,i,s;if(!(null==(n=e[6])?void 0:n[0])||!(null==(a=e[7])?void 0:a[0]))throw"mutation only works on post-bnc storages!";if((null==(s=null==(i=e[8])?void 0:i[0])?void 0:s.data)&&io(e[8][0].data)>0||!1)throw"math only works with normal offsets";for(var o=0,l=eo(e[7][0].data),f=0,c=[],h=eo(e[4][0].data),u=0,d=[],p=0;p1&&console.error("the numbers writer currently writes only the first table");var n=ir(r["!ref"]);n.s.r=n.s.c=0;var a=!1;n.e.c>9&&(a=!0,n.e.c=9),n.e.r>49&&(a=!0,n.e.r=49),a&&console.error("the numbers writer is currently limited to ".concat(dr(n)));var i=ro(r,{range:n,header:1}),s=["~sh33tj5~"];i.foreach((function(e){return e.foreach((function(e){"string"==typeof e&&s.push(e)}))}));var o={},l=[],f=_e.read(t.numbers,{type:"base64"});f.fileindex.map((function(e,t){return[e,f.fullpaths[t]]})).foreach((function(e){var t=e[0],r=e[1];2==t.type&&t.name.match(/\.iwa/)&&lo(ho(t.content)).foreach((function(e){l.push(e.id),o[e.id]={deps:[],location:r,type:io(e.messages[0].meta[1][0].data)}}))})),l.sort((function(e,t){return e-t}));var c=l.filter((function(e){return e>1})).map((function(e){return[e,ao(e)]}));f.fileindex.map((function(e,t){return[e,f.fullpaths[t]]})).foreach((function(e){var t=e[0];e[1],t.name.match(/\.iwa/)&&lo(ho(t.content)).foreach((function(e){e.messages.foreach((function(t){c.foreach((function(t){e.messages.some((function(e){return 11006!=io(e.meta[1][0].data)&&function(e,t){e:for(var r=0;r<=e.length-t.length;++r){for(var n=0;n-1,a={workbooks:[],sheets:[],charts:[],dialogs:[],macros:[],rels:[],strs:[],comments:[],threadedcomments:[],links:[],coreprops:[],extprops:[],custprops:[],themes:[],styles:[],calcchains:[],vba:[],drawings:[],metadata:[],people:[],todo:[],xmlns:""};wo(t=t||{});var i=ke(),s="",o=0;t.cellxfs=[],$i(t.cellxfs,{},{revssf:{general:0}}),e.props||(e.props={});if(ye(i,s="docprops/core.xml",kn(e.props,t)),a.coreprops.push(s),yn(t.rels,2,s,sn.core_props),s="docprops/app.xml",e.props&&e.props.sheetnames);else if(e.workbook&&e.workbook.sheets){for(var l=[],f=0;f0&&(ye(i,s="docprops/custom.xml",pn(e.custprops)),a.custprops.push(s),yn(t.rels,4,s,sn.cust_props));for(o=1;o<=e.sheetnames.length;++o){var c={"!id":{}},h=e.sheets[e.sheetnames[o-1]];switch((h||{})["!type"]||"sheet"){case"chart":default:ye(i,s="xl/worksheets/sheet"+o+"."+r,es(o-1,s,t,e,c)),a.sheets.push(s),yn(t.wbrels,-1,"worksheets/sheet"+o+"."+r,sn.ws[0])}if(h){var u=h["!comments"],d=!1,p="";u&&u.length>0&&(ye(i,p="xl/comments"+o+"."+r,bs(u,p,t)),a.comments.push(p),yn(c,-1,"../comments"+o+"."+r,sn.cmnt),d=!0),h["!legacy"]&&d&&ye(i,"xl/drawings/vmldrawing"+o+".vml",za(o,h["!comments"])),delete h["!comments"],delete h["!legacy"]}c["!id"].rid1&&ye(i,an(s),_n(c))}null!=t.strings&&t.strings.length>0&&(ye(i,s="xl/sharedstrings."+r,function(e,t,r){return(".bin"===t.slice(-4)?ba:wa)(e,r)}(t.strings,s,t)),a.strs.push(s),yn(t.wbrels,-1,"sharedstrings."+r,sn.sst));ye(i,s="xl/workbook."+r,function(e,t,r){return(".bin"===t.slice(-4)?ws:vs)(e,r)}(e,s,t)),a.workbooks.push(s),yn(t.rels,1,s,sn.wb),ye(i,s="xl/theme/theme1.xml",xa(e.themes,t)),a.themes.push(s),yn(t.wbrels,-1,"theme/theme1.xml",sn.theme),ye(i,s="xl/styles."+r,function(e,t,r){return(".bin"===t.slice(-4)?$a:da)(e,r)}(e,s,t)),a.styles.push(s),yn(t.wbrels,-1,"styles."+r,sn.sty),e.vbaraw&&n&&(ye(i,s="xl/vbaproject.bin",e.vbaraw),a.vba.push(s),yn(t.wbrels,-1,"vbaproject.bin",sn.vba));return ye(i,s="xl/metadata."+r,function(e){return(".bin"===e.slice(-4)?ya:ka)()}(s)),a.metadata.push(s),yn(t.wbrels,-1,"metadata."+r,sn.xlmeta),ye(i,"[content_types].xml",bn(a,t)),ye(i,"_rels/.rels",_n(t.rels)),ye(i,"xl/_rels/workbook."+r+".rels",_n(t.wbrels)),delete t.revssf,delete t.ssf,i}(e,t):bo(e,t)}function bo(e,t){ja=1024,e&&!e.ssf&&(e.ssf=ve(b)),e&&e.ssf&&(be(),ee(e.ssf),t.revssf=ne(e.ssf),t.revssf[e.ssf[65535]]=0,t.ssf=e.ssf),t.rels={},t.wbrels={},t.strings=[],t.strings.count=0,t.strings.unique=0,gi?t.revstrings=new map:(t.revstrings={},t.revstrings.foo=[],delete t.revstrings.foo);var r="xml",n=ri.indexof(t.booktype)>-1,a={workbooks:[],sheets:[],charts:[],dialogs:[],macros:[],rels:[],strs:[],comments:[],threadedcomments:[],links:[],coreprops:[],extprops:[],custprops:[],themes:[],styles:[],calcchains:[],vba:[],drawings:[],metadata:[],people:[],todo:[],xmlns:""};wo(t=t||{});var i=ke(),s="",o=0;if(t.cellxfs=[],$i(t.cellxfs,{},{revssf:{general:0}}),e.props||(e.props={}),ye(i,s="docprops/core.xml",kn(e.props,t)),a.coreprops.push(s),yn(t.rels,2,s,sn.core_props),s="docprops/app.xml",e.props&&e.props.sheetnames);else if(e.workbook&&e.workbook.sheets){for(var l=[],f=0;f0&&(ye(i,s="docprops/custom.xml",pn(e.custprops)),a.custprops.push(s),yn(t.rels,4,s,sn.cust_props));var c=["sheetj5"];for(t.tcid=0,o=1;o<=e.sheetnames.length;++o){var h={"!id":{}},u=e.sheets[e.sheetnames[o-1]];switch((u||{})["!type"]||"sheet"){case"chart":default:ye(i,s="xl/worksheets/sheet"+o+"."+r,zi(o-1,t,e,h)),a.sheets.push(s),yn(t.wbrels,-1,"worksheets/sheet"+o+"."+r,sn.ws[0])}if(u){var d=u["!comments"],p=!1,m="";if(d&&d.length>0){var g=!1;d.foreach((function(e){e[1].foreach((function(e){1==e.t&&(g=!0)}))})),g&&(ye(i,m="xl/threadedcomments/threadedcomment"+o+"."+r,qa(d,c,t)),a.threadedcomments.push(m),yn(h,-1,"../threadedcomments/threadedcomment"+o+"."+r,sn.tcmnt)),ye(i,m="xl/comments"+o+"."+r,qa(d)),a.comments.push(m),yn(h,-1,"../comments"+o+"."+r,sn.cmnt),p=!0}u["!legacy"]&&p&&ye(i,"xl/drawings/vmldrawing"+o+".vml",za(o,u["!comments"])),delete u["!comments"],delete u["!legacy"]}h["!id"].rid1&&ye(i,an(s),_n(h))}return null!=t.strings&&t.strings.length>0&&(ye(i,s="xl/sharedstrings.xml",wa(t.strings,t)),a.strs.push(s),yn(t.wbrels,-1,"sharedstrings.xml",sn.sst)),ye(i,s="xl/workbook.xml",vs(e)),a.workbooks.push(s),yn(t.rels,1,s,sn.wb),ye(i,s="xl/theme/theme1.xml",xa(e.themes,t)),a.themes.push(s),yn(t.wbrels,-1,"theme/theme1.xml",sn.theme),ye(i,s="xl/styles.xml",da(e,t)),a.styles.push(s),yn(t.wbrels,-1,"styles.xml",sn.sty),e.vbaraw&&n&&(ye(i,s="xl/vbaproject.bin",e.vbaraw),a.vba.push(s),yn(t.wbrels,-1,"vbaproject.bin",sn.vba)),ye(i,s="xl/metadata.xml",ka()),a.metadata.push(s),yn(t.wbrels,-1,"metadata.xml",sn.xlmeta),c.length>1&&(ye(i,s="xl/persons/person.xml",function(e){var t=[je,gt("personlist",null,{xmlns:at,"xmlns:x":nt[0]}).replace(/[\/]>/,">")];return e.foreach((function(e,r){t.push(gt("person",null,{displayname:e,id:"{54ee7950-7262-4200-6969-"+("000000000000"+r).slice(-12)+"}",userid:e,providerid:"none"}))})),t.push(""),t.join("")}(c)),a.people.push(s),yn(t.wbrels,-1,"persons/person.xml",sn.people)),ye(i,"[content_types].xml",bn(a,t)),ye(i,"_rels/.rels",_n(t.rels)),ye(i,"xl/_rels/workbook.xml.rels",_n(t.wbrels)),delete t.revssf,delete t.ssf,i}function so(e,t){var r="";switch((t||{}).type||"base64"){case"buffer":return[e[0],e[1],e[2],e[3],e[4],e[5],e[6],e[7]];case"base64":r=w(e.slice(0,12));break;case"binary":r=e;break;case"array":return[e[0],e[1],e[2],e[3],e[4],e[5],e[6],e[7]];default:throw new error("unrecognized type "+(t&&t.type||"undefined"))}return[r.charcodeat(0),r.charcodeat(1),r.charcodeat(2),r.charcodeat(3),r.charcodeat(4),r.charcodeat(5),r.charcodeat(6),r.charcodeat(7)]}function ao(e,t){switch(t.type){case"base64":case"binary":break;case"buffer":case"array":t.type="";break;case"file":return xe(t.file,_e.write(e,{type:e?"buffer":""}));case"string":throw new error("'string' output type invalid for '"+t.booktype+"' files");default:throw new error("unrecognized type "+t.type)}return _e.write(e,t)}function _o(e,t){var r={},n=e?"nodebuffer":"undefined"!==typeof uint8array?"array":"string";if(t.compression&&(r.compression="deflate"),t.password)r.type=n;else switch(t.type){case"base64":r.type="base64";break;case"binary":r.type="string";break;case"string":throw new error("'string' output type invalid for '"+t.booktype+"' files");case"buffer":case"file":r.type=n;break;default:throw new error("unrecognized type "+t.type)}var a=e.fullpaths?_e.write(e,{filetype:"zip",type:{nodebuffer:"buffer",string:"binary"}[r.type]||r.type,compression:!!t.compression}):e.generate(r);if("undefined"!==typeof deno&&"string"==typeof a){if("binary"==t.type||"base64"==t.type)return a;a=new uint8array(y(a))}return t.password&&"undefined"!==typeof encrypt_agile?ao(encrypt_agile(a,t.password),t):"file"===t.type?xe(t.file,a):"string"==t.type?ct(a):a}function yo(e,t,r){r||(r="");var n=r+e;switch(t.type){case"base64":return t(ht(n));case"binary":return ht(n);case"string":return e;case"file":return xe(t.file,n,"utf8");case"buffer":return e?b(n,"utf8"):"undefined"!==typeof textencoder?(new textencoder).encode(n):yo(n,{type:"binary"}).split("").map((function(e){return e.charcodeat(0)}))}throw new error("unrecognized type "+t.type)}function oo(e,t){switch(t.type){case"string":case"base64":case"binary":for(var r="",n=0;n0&&(a=0);var h=xr(l.s.r),u=[],d=[],p=0,m=0,g=array.isarray(e),v=l.s.r,t=0,w={};g&&!e[v]&&(e[v]=[]);var e=f.skiphidden&&e["!cols"]||[],b=f.skiphidden&&e["!rows"]||[];for(t=l.s.c;t<=l.e.c;++t)if(!(e[t]||{}).hidden)switch(u[t]=rr(t),r=g?e[v][t]:e[u[t]+h],n){case 1:i[t]=t-l.s.c;break;case 2:i[t]=u[t];break;case 3:i[t]=f.header[t-l.s.c];break;default:if(null==r&&(r={w:"__empty",t:"s"}),o=s=mr(r,null,f),m=w[s]||0){do{o=s+"_"+m++}while(w[o]);w[s]=m,w[o]=1}else w[s]=1;i[t]=o}for(v=l.s.r+a;v<=l.e.r;++v)if(!(b[v]||{}).hidden){var s=co(e,l,v,u,n,i,g,f);(!1===s.isempty||(1===n?!1!==f.blankrows:f.blankrows))&&(d[p++]=s.row)}return d.length=p,d}var ko=/"/g;function no(e,t,r,n,a,i,s,o){for(var l=!0,f=[],c="",h=xr(r),u=t.s.c;u<=t.e.c;++u)if(n[u]){var d=o.dense?(e[r]||[])[u]:e[n[u]+h];if(null==d)c="";else if(null!=d.v){l=!1,c=""+(o.rawnumbers&&"n"==d.t?d.v:mr(d,null,o));for(var p=0,m=0;p!==c.length;++p)if((m=c.charcodeat(p))===a||m===i||34===m||o.forcequotes){c='"'+c.replace(ko,'""')+'"';break}"id"==c&&(c='"id"')}else null==d.f||d.f?c="":(l=!1,(c="="+d.f).indexof(",")>=0&&(c='"'+c.replace(ko,'""')+'"'));f.push(c)}return!1===o.blankrows&&l?null:f.join(s)}function io(e,t){var r=[],n=null==t?{}:t;if(null==e||null==e["!ref"])return"";var a=pr(e["!ref"]),i=void 0!==n.fs?n.fs:",",s=i.charcodeat(0),o=void 0!==n.rs?n.rs:"\n",l=o.charcodeat(0),f=new regexp(("|"==i?"\\|":i)+"+$"),c="",h=[];n.dense=array.isarray(e);for(var u=n.skiphidden&&e["!cols"]||[],d=n.skiphidden&&e["!rows"]||[],p=a.s.c;p<=a.e.c;++p)(u[p]||{}).hidden||(h[p]=rr(p));for(var m=0,g=a.s.r;g<=a.e.r;++g)(d[g]||{}).hidden||null!=(c=no(e,a,g,h,s,l,i,n))&&(n.strip&&(c=c.replace(f,"")),(c||!1!==n.blankrows)&&r.push((m++?o:"")+c));return delete n.dense,r.join("")}function do(e,t){t||(t={}),t.fs="\t",t.rs="\n";var r=io(e,t);if("undefined"==typeof p||"string"==t.type)return r;var n=p.utils.encode(1200,r,"str");return string.fromcharcode(255)+string.fromcharcode(254)+n}function po(e,t,r){var n,a=r||{},i=+!a.skipheader,s=e||{},o=0,l=0;if(s&&null!=a.origin)if("number"==typeof a.origin)o=a.origin;else{var f="string"==typeof a.origin?kr(a.origin):a.origin;o=f.r,l=f.c}var c={s:{c:0,r:0},e:{c:l,r:o+t.length-1+i}};if(s["!ref"]){var h=pr(s["!ref"]);c.e.c=math.max(c.e.c,h.e.c),c.e.r=math.max(c.e.r,h.e.r),-1==o&&(o=h.e.r+1,c.e.r=o+t.length-1+i)}else-1==o&&(o=0,c.e.r=t.length-1+i);var u=a.header||[],d=0;t.foreach((function(e,t){ce(e).foreach((function(r){-1==(d=u.indexof(r))&&(u[d=u.length]=r);var f=e[r],c="z",h="",p=nr({c:l+d,r:o+t+i});n=lo(s,p),!f||"object"!==typeof f||f instanceof date?("number"==typeof f?c="n":"boolean"==typeof f?c="b":"string"==typeof f?c="s":f instanceof date?(c="d",a.celldates||(c="n",f=de(f)),h=a.datenf||b[14]):null===f&&a.nullerror&&(c="e",f=0),n?(n.t=c,n.v=f,delete n.w,delete n.r,h&&(n.z=h)):s[p]=n={t:c,v:f},h&&(n.z=h)):s[p]=f}))})),c.e.c=math.max(c.e.c,l+u.length-1);var p=xr(o);if(i)for(d=0;d=65535)throw new error("too many worksheets");if(n&&e.sheetnames.indexof(r)>=0){var i=r.match(/(^.*?)(\d+)$/);a=i&&+i[2]||0;var s=i&&i[1]||r;for(++a;a<=65535&&-1!=e.sheetnames.indexof(r=s+a);++a);}if(ms(r),e.sheetnames.indexof(r)>=0)throw new error("worksheet with name |"+r+"| already exists!");return e.sheetnames.push(r),e.sheets[r]=t,r}function uo(e,t,r){return t?(e.l={target:t},r&&(e.l.tooltip=r)):delete e.l,e}var bo={encode_col:rr,encode_row:xr,encode_cell:nr,encode_range:dr,decode_col:cr,decode_row:or,split_cell:function(e){return e.replace(/(\$?[a-z]*)(\$?\d*)/,"$1,$2").split(",")},decode_cell:kr,decode_range:ir,format_cell:mr,sheet_add_aoa:ur,sheet_add_json:po,sheet_add_dom:ys,aoa_to_sheet:br,json_to_sheet:function(e,t){return po(null,e,t)},table_to_sheet:ks,table_to_book:function(e,t){return fr(ks(e,t),t)},sheet_to_csv:io,sheet_to_txt:do,sheet_to_json:ro,sheet_to_html:xs,sheet_to_formulae:function(e){var t,r="",n="";if(null==e||null==e["!ref"])return[];var a,i=pr(e["!ref"]),s="",o=[],l=[],f=array.isarray(e);for(a=i.s.c;a<=i.e.c;++a)o[a]=rr(a);for(var c=i.s.r;c<=i.e.r;++c)for(s=xr(c),a=i.s.c;a<=i.e.c;++a)if(r=o[a]+s,n="",void 0!==(t=f?(e[c]||[])[a]:e[r])){if(null!=t.f){if(r=t.f,!t.f)continue;n=t.f,-1==r.indexof(":")&&(r=r+":"+r)}if(null!=t.f)n=t.f;else{if("z"==t.t)continue;if("n"==t.t&&null!=t.v)n=""+t.v;else if("b"==t.t)n=t.v?"true":"false";else if(void 0!==t.w)n="'"+t.w;else{if(void 0===t.v)continue;n="s"==t.t?"'"+t.v:""+t.v}}l[l.length]=r+"="+n}return l},sheet_to_row_object_array:ro,sheet_get_cell:lo,book_new:mo,book_append_sheet:fo,book_set_sheet_visibility:function(e,t,r){e.workbook||(e.workbook={}),e.workbook.sheets||(e.workbook.sheets=[]);var n=function(e,t){if("number"==typeof t){if(t>=0&&e.sheetnames.length>t)return t;throw new error("cannot find sheet # "+t)}if("string"==typeof t){var r=e.sheetnames.indexof(t);if(r>-1)return r;throw new error("cannot find sheet name |"+t+"|")}throw new error("cannot find sheet |"+t+"|")}(e,t);switch(e.workbook.sheets[n]||(e.workbook.sheets[n]={}),r){case 0:case 1:case 2:break;default:throw new error("bad sheet visibility setting "+r)}e.workbook.sheets[n].hidden=r},cell_set_number_format:function(e,t){return e.z=t,e},cell_set_hyperlink:uo,cell_set_internal_link:function(e,t,r){return uo(e,"#"+t,r)},cell_add_comment:function(e,t,r){e.c||(e.c=[]),e.c.push({t:t,a:r||"sheetjs"})},sheet_set_array_formula:function(e,t,r,n){for(var a="string"!=typeof t?t:pr(t),i="string"==typeof t?t:dr(t),s=a.s.r;s<=a.e.r;++s)for(var o=a.s.c;o<=a.e.c;++o){var l=lo(e,s,o);l.t="n",l.f=i,delete l.v,s==a.s.r&&o==a.s.c&&(l.f=r,n&&(l.d=!0))}return e},consts:{sheet_visible:0,sheet_hidden:1,sheet_very_hidden:2}};i.version}}]);