From d50a7812c4a14006066050589f18915e98d2bb25 Mon Sep 17 00:00:00 2001 From: SheetJS Date: Fri, 25 Feb 2022 23:32:40 -0500 Subject: [PATCH] workarounds for webpack 5 --- Makefile | 22 +- bits/26_crypto.js | 38 - bits/87_read.js | 1 + dist/xlsx.full.min.js.zip | Bin 319459 -> 0 bytes dist/xlsx.js | 23847 ------------------------------------ dist/xlsx.min.js | 16 - dist/xlsx.min.map | 1 - dist/xlsx.mini.min.js | 16 +- dist/xlsx.mini.min.map | 2 +- docbits/10_install.md | 4 +- mini.lst | 7 +- misc/02_cpmini.js | 57 + misc/70_csheet.js | 32 + 13 files changed, 121 insertions(+), 23922 deletions(-) delete mode 100644 bits/26_crypto.js delete mode 100644 dist/xlsx.full.min.js.zip delete mode 100644 dist/xlsx.js delete mode 100644 dist/xlsx.min.js delete mode 100644 dist/xlsx.min.map create mode 100644 misc/02_cpmini.js create mode 100644 misc/70_csheet.js diff --git a/Makefile b/Makefile index babd44f..9c0e702 100644 --- a/Makefile +++ b/Makefile @@ -73,18 +73,24 @@ DISTHDR=misc/suppress_export.js .PHONY: dist dist: dist-deps $(TARGET) bower.json ## Prepare JS files for distribution mkdir -p dist - <$(TARGET) sed "s/require('....*')/undefined/g" > dist/$(TARGET) cp LICENSE dist/ uglifyjs shim.js $(UGLIFYOPTS) -o dist/shim.min.js --preamble "$$(head -n 1 bits/00_header.js)" - uglifyjs $(DISTHDR) dist/$(TARGET) $(UGLIFYOPTS) -o dist/$(LIB).min.js --source-map dist/$(LIB).min.map --preamble "$$(head -n 1 bits/00_header.js)" - misc/strip_sourcemap.sh dist/$(LIB).min.js - uglifyjs $(DISTHDR) $(REQS) dist/$(TARGET) $(UGLIFYOPTS) -o dist/$(LIB).core.min.js --source-map dist/$(LIB).core.min.map --preamble "$$(head -n 1 bits/00_header.js)" + @# + <$(TARGET) sed "s/require('.*')/undefined/g;s/ process / undefined /g;s/process.versions/({})/g" > dist/$(TARGET) + <$(MINITGT) sed "s/require('.*')/undefined/g;s/ process / undefined /g;s/process.versions/({})/g" > dist/$(MINITGT) + @# core + uglifyjs $(REQS) dist/$(TARGET) $(UGLIFYOPTS) -o dist/$(LIB).core.min.js --source-map dist/$(LIB).core.min.map --preamble "$$(head -n 1 bits/00_header.js)" misc/strip_sourcemap.sh dist/$(LIB).core.min.js + @# full uglifyjs $(DISTHDR) $(REQS) $(ADDONS) dist/$(TARGET) $(AUXTARGETS) $(UGLIFYOPTS) -o dist/$(LIB).full.min.js --source-map dist/$(LIB).full.min.map --preamble "$$(head -n 1 bits/00_header.js)" - uglifyjs $(DISTHDR) $(MINITGT) $(UGLIFYOPTS) -o dist/$(LIB).mini.min.js --source-map dist/$(LIB).mini.min.map --preamble "$$(head -n 1 bits/00_header.js)" misc/strip_sourcemap.sh dist/$(LIB).full.min.js + @# mini + uglifyjs dist/$(MINITGT) $(UGLIFYOPTS) -o dist/$(LIB).mini.min.js --source-map dist/$(LIB).mini.min.map --preamble "$$(head -n 1 bits/00_header.js)" misc/strip_sourcemap.sh dist/$(LIB).mini.min.js + @# extendscript cat <(head -n 1 bits/00_header.js) shim.js $(DISTHDR) $(REQS) dist/$(TARGET) > dist/$(LIB).extendscript.js + @# + rm dist/$(TARGET) dist/$(MINITGT) .PHONY: dist-deps dist-deps: ## Copy dependencies for distribution @@ -94,10 +100,12 @@ dist-deps: ## Copy dependencies for distribution .PHONY: aux aux: $(AUXTARGETS) -BYTEFILE=dist/xlsx.min.js dist/xlsx.{core,full,mini}.min.js dist/xlsx.extendscript.js +BYTEFILEC=dist/xlsx.{full,core,mini}.min.js +BYTEFILER=dist/xlsx.extendscript.js .PHONY: bytes bytes: ## Display minified and gzipped file sizes - for i in $(BYTEFILE); do printj "%-30s %7d %10d" $$i $$(wc -c < $$i) $$(gzip --best --stdout $$i | wc -c); done + @for i in $(BYTEFILEC); do printj "%-30s %7d %10d" $$i $$(wc -c < $$i) $$(gzip --best --stdout $$i | wc -c); done + @for i in $(BYTEFILER); do printj "%-30s %7d" $$i $$(wc -c < $$i); done .PHONY: graph graph: formats.png legend.png ## Rebuild format conversion graph diff --git a/bits/26_crypto.js b/bits/26_crypto.js deleted file mode 100644 index d989434..0000000 --- a/bits/26_crypto.js +++ /dev/null @@ -1,38 +0,0 @@ -var OFFCRYPTO = {}; - -var make_offcrypto = function(O, _crypto) { - var crypto; - if(typeof _crypto !== 'undefined') crypto = _crypto; - else if(typeof require !== 'undefined') { - try { crypto = require('crypto'); } - catch(e) { crypto = null; } - } - - O.rc4 = function(key, data) { - var S = new Array(256); - var c = 0, i = 0, j = 0, t = 0; - for(i = 0; i != 256; ++i) S[i] = i; - for(i = 0; i != 256; ++i) { - j = (j + S[i] + (key[i%key.length]).charCodeAt(0))&255; - t = S[i]; S[i] = S[j]; S[j] = t; - } - // $FlowIgnore - i = j = 0; var out = new_raw_buf(data.length); - for(c = 0; c != data.length; ++c) { - i = (i + 1)&255; - j = (j + S[i])%256; - t = S[i]; S[i] = S[j]; S[j] = t; - out[c] = (data[c] ^ S[(S[i]+S[j])&255]); - } - return out; - }; - - O.md5 = function(hex) { - if(!crypto) throw new Error("Unsupported crypto"); - return crypto.createHash('md5').update(hex).digest('hex'); - }; -}; -/*:: declare var crypto:any; */ -/*global crypto:true */ -make_offcrypto(OFFCRYPTO, typeof crypto !== "undefined" ? crypto : undefined); - diff --git a/bits/87_read.js b/bits/87_read.js index 6846996..5bd2d4c 100644 --- a/bits/87_read.js +++ b/bits/87_read.js @@ -43,6 +43,7 @@ function read_plaintext_raw(data/*:RawData*/, o/*:ParseOpts*/)/*:Workbook*/ { default: throw new Error("Unrecognized type " + o.type); } if(bytes[0] == 0xEF && bytes[1] == 0xBB && bytes[2] == 0xBF) str = utf8read(str); + o.type = "binary"; return read_plaintext(str, o); } diff --git a/dist/xlsx.full.min.js.zip b/dist/xlsx.full.min.js.zip deleted file mode 100644 index 8a5278499a540820f686e1ce35ba1de81992a3b2..0000000000000000000000000000000000000000 GIT binary patch literal 0 HcmV?d00001 literal 319459 zcmZ6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g>?-e0==LCjFkqk@24f|yaZ~T6>BIB z;234ewJKpw1DM(xz|__NqHN^RiAj8)2C#?ocfSU3T2iD$1Gw--2(jo8hag5P9b!m2L>a}fn&`mdc+T{U z$B-W?HMcU@BuM!Ml+}t3*my+n7UopFBA%m_HdFZ9Ews>XYG-zgIZ^ofnRO zL!^fD(&OK-Kqx~x{+$=jH$zAvV*`q;Q5VvLnp|`IJ5_q)FP`{@UwPsisuSPPocK=7 ziEo@c@x_d4PoMaX^oehuPkh7m6JN@iuATT&^3a_4h8s?NW5KVu^u!mo2R!kO`IK;2 zJn`)pPJH`x;yZSsnmO^Mk&IibmB6f;Zdk0{XW=GN*5ZZOWhl=Q{rLiDe=%gC02`VhR4L3+S)5SLNX1c36`FyBu1XnMZ}({F@hCv zCiaQUFN=aTeI&8BuE%NE@A|(iS}Nr;@Sv{-t%$B4`$1Qp&}_?(?YHxrIOG(v>++BF zBbB|#y;9+P((@G4t}%^{eEbhO`{SGQkN)#qX-c}pByz)NecQ*iPkV8C?0>Y>1kp7{ z+A0R2nFLq#{nx-!!*p_)wF?Q8q&F|#8QI?E)S9Z4Z>o@4Y>```OC*AY&>$z)f=SQi z#|m3kVs&^6009K` h0RR956aWAKP)h{{000000RRC2UH||9Z{Gv}007mPy-NT9 diff --git a/dist/xlsx.js b/dist/xlsx.js deleted file mode 100644 index b2593b0..0000000 --- a/dist/xlsx.js +++ /dev/null @@ -1,23847 +0,0 @@ -/*! xlsx.js (C) 2013-present SheetJS -- http://sheetjs.com */ -/* vim: set ts=2: */ -/*exported XLSX */ -/*global global, exports, module, require:false, process:false, Buffer:false, ArrayBuffer:false */ -var XLSX = {}; -function make_xlsx_lib(XLSX){ -XLSX.version = '0.18.2'; -var current_codepage = 1200, current_ansi = 1252; -/*global cptable:true, window */ -if(typeof module !== "undefined" && typeof require !== 'undefined') { - if(typeof cptable === 'undefined') { - if(typeof global !== 'undefined') global.cptable = undefined; - else if(typeof window !== 'undefined') window.cptable = undefined; - } -} - -var VALID_ANSI = [ 874, 932, 936, 949, 950, 10000 ]; -for(var i = 0; i <= 8; ++i) VALID_ANSI.push(1250 + i); -/* ECMA-376 Part I 18.4.1 charset to codepage mapping */ -var CS2CP = ({ -0: 1252, /* ANSI */ -1: 65001, /* DEFAULT */ -2: 65001, /* SYMBOL */ -77: 10000, /* MAC */ -128: 932, /* SHIFTJIS */ -129: 949, /* HANGUL */ -130: 1361, /* JOHAB */ -134: 936, /* GB2312 */ -136: 950, /* CHINESEBIG5 */ -161: 1253, /* GREEK */ -162: 1254, /* TURKISH */ -163: 1258, /* VIETNAMESE */ -177: 1255, /* HEBREW */ -178: 1256, /* ARABIC */ -186: 1257, /* BALTIC */ -204: 1251, /* RUSSIAN */ -222: 874, /* THAI */ -238: 1250, /* EASTEUROPE */ -255: 1252, /* OEM */ -69: 6969 /* MISC */ -}); - -var set_ansi = function(cp) { if(VALID_ANSI.indexOf(cp) == -1) return; current_ansi = CS2CP[0] = cp; }; -function reset_ansi() { set_ansi(1252); } - -var set_cp = function(cp) { current_codepage = cp; set_ansi(cp); }; -function reset_cp() { set_cp(1200); reset_ansi(); } - -function char_codes(data) { var o = []; for(var i = 0, len = data.length; i < len; ++i) o[i] = data.charCodeAt(i); return o; } - -function utf16leread(data) { - var o = []; - for(var i = 0; i < (data.length>>1); ++i) o[i] = String.fromCharCode(data.charCodeAt(2*i) + (data.charCodeAt(2*i+1)<<8)); - return o.join(""); -} -function utf16beread(data) { - var o = []; - for(var i = 0; i < (data.length>>1); ++i) o[i] = String.fromCharCode(data.charCodeAt(2*i+1) + (data.charCodeAt(2*i)<<8)); - return o.join(""); -} - -var debom = function(data) { - var c1 = data.charCodeAt(0), c2 = data.charCodeAt(1); - if(c1 == 0xFF && c2 == 0xFE) return utf16leread(data.slice(2)); - if(c1 == 0xFE && c2 == 0xFF) return utf16beread(data.slice(2)); - if(c1 == 0xFEFF) return data.slice(1); - return data; -}; - -var _getchar = function _gc1(x) { return String.fromCharCode(x); }; -var _getansi = function _ga1(x) { return String.fromCharCode(x); }; -if(typeof cptable !== 'undefined') { - set_cp = function(cp) { current_codepage = cp; set_ansi(cp); }; - debom = function(data) { - if(data.charCodeAt(0) === 0xFF && data.charCodeAt(1) === 0xFE) { return cptable.utils.decode(1200, char_codes(data.slice(2))); } - return data; - }; - _getchar = function _gc2(x) { - if(current_codepage === 1200) return String.fromCharCode(x); - return cptable.utils.decode(current_codepage, [x&255,x>>8])[0]; - }; - _getansi = function _ga2(x) { - return cptable.utils.decode(current_ansi, [x])[0]; - }; -} -var DENSE = null; -var DIF_XL = true; -var Base64 = function() { - var map = "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/="; - return { - encode: function(input) { - var o = ""; - var c1 = 0, c2 = 0, c3 = 0, e1 = 0, e2 = 0, e3 = 0, e4 = 0; - for (var i = 0; i < input.length; ) { - c1 = input.charCodeAt(i++); - e1 = c1 >> 2; - c2 = input.charCodeAt(i++); - e2 = (c1 & 3) << 4 | c2 >> 4; - c3 = input.charCodeAt(i++); - e3 = (c2 & 15) << 2 | c3 >> 6; - e4 = c3 & 63; - if (isNaN(c2)) { - e3 = e4 = 64; - } else if (isNaN(c3)) { - e4 = 64; - } - o += map.charAt(e1) + map.charAt(e2) + map.charAt(e3) + map.charAt(e4); - } - return o; - }, - decode: function(input) { - var o = ""; - var c1 = 0, c2 = 0, c3 = 0, e1 = 0, e2 = 0, e3 = 0, e4 = 0; - input = input.replace(/[^\w\+\/\=]/g, ""); - for (var i = 0; i < input.length; ) { - e1 = map.indexOf(input.charAt(i++)); - e2 = map.indexOf(input.charAt(i++)); - c1 = e1 << 2 | e2 >> 4; - o += String.fromCharCode(c1); - e3 = map.indexOf(input.charAt(i++)); - c2 = (e2 & 15) << 4 | e3 >> 2; - if (e3 !== 64) { - o += String.fromCharCode(c2); - } - e4 = map.indexOf(input.charAt(i++)); - c3 = (e3 & 3) << 6 | e4; - if (e4 !== 64) { - o += String.fromCharCode(c3); - } - } - return o; - } - }; -}(); -var has_buf = (typeof Buffer !== 'undefined' && typeof process !== 'undefined' && typeof process.versions !== 'undefined' && !!process.versions.node); - -var Buffer_from = function(){}; - -if(typeof Buffer !== 'undefined') { - var nbfs = !Buffer.from; - if(!nbfs) try { Buffer.from("foo", "utf8"); } catch(e) { nbfs = true; } - Buffer_from = nbfs ? function(buf, enc) { return (enc) ? new Buffer(buf, enc) : new Buffer(buf); } : Buffer.from.bind(Buffer); - // $FlowIgnore - if(!Buffer.alloc) Buffer.alloc = function(n) { return new Buffer(n); }; - // $FlowIgnore - if(!Buffer.allocUnsafe) Buffer.allocUnsafe = function(n) { return new Buffer(n); }; -} - -function new_raw_buf(len) { - /* jshint -W056 */ - return has_buf ? Buffer.alloc(len) : typeof Uint8Array != "undefined" ? new Uint8Array(len) : new Array(len); - /* jshint +W056 */ -} - -function new_unsafe_buf(len) { - /* jshint -W056 */ - return has_buf ? Buffer.allocUnsafe(len) : typeof Uint8Array != "undefined" ? new Uint8Array(len) : new Array(len); - /* jshint +W056 */ -} - -var s2a = function s2a(s) { - if(has_buf) return Buffer_from(s, "binary"); - return s.split("").map(function(x){ return x.charCodeAt(0) & 0xff; }); -}; - -function s2ab(s) { - if(typeof ArrayBuffer === 'undefined') return s2a(s); - var buf = new ArrayBuffer(s.length), view = new Uint8Array(buf); - for (var i=0; i!=s.length; ++i) view[i] = s.charCodeAt(i) & 0xFF; - return buf; -} - -function a2s(data) { - if(Array.isArray(data)) return data.map(function(c) { return String.fromCharCode(c); }).join(""); - var o = []; for(var i = 0; i < data.length; ++i) o[i] = String.fromCharCode(data[i]); return o.join(""); -} - -function a2u(data) { - if(typeof Uint8Array === 'undefined') throw new Error("Unsupported"); - return new Uint8Array(data); -} - -function ab2a(data) { - if(typeof ArrayBuffer == 'undefined') throw new Error("Unsupported"); - if(data instanceof ArrayBuffer) return ab2a(new Uint8Array(data)); -var o = new Array(data.length); - for(var i = 0; i < data.length; ++i) o[i] = data[i]; - return o; -} - -function utf8decode(content) { - var out = [], widx = 0, L = content.length + 250; - var o = new_raw_buf(content.length + 255); - for(var ridx = 0; ridx < content.length; ++ridx) { - var c = content.charCodeAt(ridx); - if(c < 0x80) o[widx++] = c; - else if(c < 0x800) { - o[widx++] = (192|((c>>6)&31)); - o[widx++] = (128|(c&63)); - } else if(c >= 0xD800 && c < 0xE000) { - c = (c&1023)+64; - var d = content.charCodeAt(++ridx)&1023; - o[widx++] = (240|((c>>8)&7)); - o[widx++] = (128|((c>>2)&63)); - o[widx++] = (128|((d>>6)&15)|((c&3)<<4)); - o[widx++] = (128|(d&63)); - } else { - o[widx++] = (224|((c>>12)&15)); - o[widx++] = (128|((c>>6)&63)); - o[widx++] = (128|(c&63)); - } - if(widx > L) { - out.push(o.slice(0, widx)); - widx = 0; - o = new_raw_buf(65535); - L = 65530; - } - } - out.push(o.slice(0, widx)); - return bconcat(out); -} - -var bconcat = function(bufs) { - if(typeof Uint8Array !== "undefined") { - var i = 0, maxlen = 0; - for(i = 0; i < bufs.length; ++i) maxlen += bufs[i].length; - var o = new Uint8Array(maxlen); - var len = 0; - for(i = 0, maxlen = 0; i < bufs.length; maxlen += len, ++i) { - len = bufs[i].length; - if(bufs[i] instanceof Uint8Array) o.set(bufs[i], maxlen); - else if(typeof bufs[i] == "string") { throw "wtf"; } - else o.set(new Uint8Array(bufs[i]), maxlen); - } - return o; - } - return [].concat.apply([], bufs.map(function(buf) { return Array.isArray(buf) ? buf : [].slice.call(buf); })); -}; - -var chr0 = /\u0000/g, chr1 = /[\u0001-\u0006]/g; -/* ssf.js (C) 2013-present SheetJS -- http://sheetjs.com */ -/*jshint -W041 */ -var SSF = ({}); -var make_ssf = function make_ssf(SSF){ -SSF.version = '0.11.2'; -function _strrev(x) { var o = "", i = x.length-1; while(i>=0) o += x.charAt(i--); return o; } -function fill(c,l) { var o = ""; while(o.length < l) o+=c; return o; } -function pad0(v,d){var t=""+v; return t.length>=d?t:fill('0',d-t.length)+t;} -function pad_(v,d){var t=""+v;return t.length>=d?t:fill(' ',d-t.length)+t;} -function rpad_(v,d){var t=""+v; return t.length>=d?t:t+fill(' ',d-t.length);} -function pad0r1(v,d){var t=""+Math.round(v); return t.length>=d?t:fill('0',d-t.length)+t;} -function pad0r2(v,d){var t=""+v; return t.length>=d?t:fill('0',d-t.length)+t;} -var p2_32 = Math.pow(2,32); -function pad0r(v,d){if(v>p2_32||v<-p2_32) return pad0r1(v,d); var i = Math.round(v); return pad0r2(i,d); } -function isgeneral(s, i) { i = i || 0; return s.length >= 7 + i && (s.charCodeAt(i)|32) === 103 && (s.charCodeAt(i+1)|32) === 101 && (s.charCodeAt(i+2)|32) === 110 && (s.charCodeAt(i+3)|32) === 101 && (s.charCodeAt(i+4)|32) === 114 && (s.charCodeAt(i+5)|32) === 97 && (s.charCodeAt(i+6)|32) === 108; } -var days = [ - ['Sun', 'Sunday'], - ['Mon', 'Monday'], - ['Tue', 'Tuesday'], - ['Wed', 'Wednesday'], - ['Thu', 'Thursday'], - ['Fri', 'Friday'], - ['Sat', 'Saturday'] -]; -var months = [ - ['J', 'Jan', 'January'], - ['F', 'Feb', 'February'], - ['M', 'Mar', 'March'], - ['A', 'Apr', 'April'], - ['M', 'May', 'May'], - ['J', 'Jun', 'June'], - ['J', 'Jul', 'July'], - ['A', 'Aug', 'August'], - ['S', 'Sep', 'September'], - ['O', 'Oct', 'October'], - ['N', 'Nov', 'November'], - ['D', 'Dec', 'December'] -]; -function init_table(t) { - t[0]= 'General'; - t[1]= '0'; - t[2]= '0.00'; - t[3]= '#,##0'; - t[4]= '#,##0.00'; - t[9]= '0%'; - t[10]= '0.00%'; - t[11]= '0.00E+00'; - t[12]= '# ?/?'; - t[13]= '# ??/??'; - t[14]= 'm/d/yy'; - t[15]= 'd-mmm-yy'; - t[16]= 'd-mmm'; - t[17]= 'mmm-yy'; - t[18]= 'h:mm AM/PM'; - t[19]= 'h:mm:ss AM/PM'; - t[20]= 'h:mm'; - t[21]= 'h:mm:ss'; - t[22]= 'm/d/yy h:mm'; - t[37]= '#,##0 ;(#,##0)'; - t[38]= '#,##0 ;[Red](#,##0)'; - t[39]= '#,##0.00;(#,##0.00)'; - t[40]= '#,##0.00;[Red](#,##0.00)'; - t[45]= 'mm:ss'; - t[46]= '[h]:mm:ss'; - t[47]= 'mmss.0'; - t[48]= '##0.0E+0'; - t[49]= '@'; - t[56]= '"上午/下午 "hh"時"mm"分"ss"秒 "'; -} - -var table_fmt = {}; -init_table(table_fmt); -/* Defaults determined by systematically testing in Excel 2019 */ - -/* These formats appear to default to other formats in the table */ -var default_map = []; -var defi = 0; - -// 5 -> 37 ... 8 -> 40 -for(defi = 5; defi <= 8; ++defi) default_map[defi] = 32 + defi; - -// 23 -> 0 ... 26 -> 0 -for(defi = 23; defi <= 26; ++defi) default_map[defi] = 0; - -// 27 -> 14 ... 31 -> 14 -for(defi = 27; defi <= 31; ++defi) default_map[defi] = 14; -// 50 -> 14 ... 58 -> 14 -for(defi = 50; defi <= 58; ++defi) default_map[defi] = 14; - -// 59 -> 1 ... 62 -> 4 -for(defi = 59; defi <= 62; ++defi) default_map[defi] = defi - 58; -// 67 -> 9 ... 68 -> 10 -for(defi = 67; defi <= 68; ++defi) default_map[defi] = defi - 58; -// 72 -> 14 ... 75 -> 17 -for(defi = 72; defi <= 75; ++defi) default_map[defi] = defi - 58; - -// 69 -> 12 ... 71 -> 14 -for(defi = 67; defi <= 68; ++defi) default_map[defi] = defi - 57; - -// 76 -> 20 ... 78 -> 22 -for(defi = 76; defi <= 78; ++defi) default_map[defi] = defi - 56; - -// 79 -> 45 ... 81 -> 47 -for(defi = 79; defi <= 81; ++defi) default_map[defi] = defi - 34; - -// 82 -> 0 ... 65536 -> 0 (omitted) - -/* These formats technically refer to Accounting formats with no equivalent */ -var default_str = []; - -// 5 -- Currency, 0 decimal, black negative -default_str[5] = default_str[63] = '"$"#,##0_);\\("$"#,##0\\)'; -// 6 -- Currency, 0 decimal, red negative -default_str[6] = default_str[64] = '"$"#,##0_);[Red]\\("$"#,##0\\)'; -// 7 -- Currency, 2 decimal, black negative -default_str[7] = default_str[65] = '"$"#,##0.00_);\\("$"#,##0.00\\)'; -// 8 -- Currency, 2 decimal, red negative -default_str[8] = default_str[66] = '"$"#,##0.00_);[Red]\\("$"#,##0.00\\)'; - -// 41 -- Accounting, 0 decimal, No Symbol -default_str[41] = '_(* #,##0_);_(* \\(#,##0\\);_(* "-"_);_(@_)'; -// 42 -- Accounting, 0 decimal, $ Symbol -default_str[42] = '_("$"* #,##0_);_("$"* \\(#,##0\\);_("$"* "-"_);_(@_)'; -// 43 -- Accounting, 2 decimal, No Symbol -default_str[43] = '_(* #,##0.00_);_(* \\(#,##0.00\\);_(* "-"??_);_(@_)'; -// 44 -- Accounting, 2 decimal, $ Symbol -default_str[44] = '_("$"* #,##0.00_);_("$"* \\(#,##0.00\\);_("$"* "-"??_);_(@_)'; -function frac(x, D, mixed) { - var sgn = x < 0 ? -1 : 1; - var B = x * sgn; - var P_2 = 0, P_1 = 1, P = 0; - var Q_2 = 1, Q_1 = 0, Q = 0; - var A = Math.floor(B); - while(Q_1 < D) { - A = Math.floor(B); - P = A * P_1 + P_2; - Q = A * Q_1 + Q_2; - if((B - A) < 0.00000005) break; - B = 1 / (B - A); - P_2 = P_1; P_1 = P; - Q_2 = Q_1; Q_1 = Q; - } - if(Q > D) { if(Q_1 > D) { Q = Q_2; P = P_2; } else { Q = Q_1; P = P_1; } } - if(!mixed) return [0, sgn * P, Q]; - var q = Math.floor(sgn * P/Q); - return [q, sgn*P - q*Q, Q]; -} -function parse_date_code(v,opts,b2) { - if(v > 2958465 || v < 0) return null; - var date = (v|0), time = Math.floor(86400 * (v - date)), dow=0; - var dout=[]; - var out={D:date, T:time, u:86400*(v-date)-time,y:0,m:0,d:0,H:0,M:0,S:0,q:0}; - if(Math.abs(out.u) < 1e-6) out.u = 0; - if(opts && opts.date1904) date += 1462; - if(out.u > 0.9999) { - out.u = 0; - if(++time == 86400) { out.T = time = 0; ++date; ++out.D; } - } - if(date === 60) {dout = b2 ? [1317,10,29] : [1900,2,29]; dow=3;} - else if(date === 0) {dout = b2 ? [1317,8,29] : [1900,1,0]; dow=6;} - else { - if(date > 60) --date; - /* 1 = Jan 1 1900 in Gregorian */ - var d = new Date(1900, 0, 1); - d.setDate(d.getDate() + date - 1); - dout = [d.getFullYear(), d.getMonth()+1,d.getDate()]; - dow = d.getDay(); - if(date < 60) dow = (dow + 6) % 7; - if(b2) dow = fix_hijri(d, dout); - } - out.y = dout[0]; out.m = dout[1]; out.d = dout[2]; - out.S = time % 60; time = Math.floor(time / 60); - out.M = time % 60; time = Math.floor(time / 60); - out.H = time; - out.q = dow; - return out; -} -SSF.parse_date_code = parse_date_code; -var basedate = new Date(1899, 11, 31, 0, 0, 0); -var dnthresh = basedate.getTime(); -var base1904 = new Date(1900, 2, 1, 0, 0, 0); -function datenum_local(v, date1904) { - var epoch = v.getTime(); - if(date1904) epoch -= 1461*24*60*60*1000; - else if(v >= base1904) epoch += 24*60*60*1000; - return (epoch - (dnthresh + (v.getTimezoneOffset() - basedate.getTimezoneOffset()) * 60000)) / (24 * 60 * 60 * 1000); -} -/* The longest 32-bit integer text is "-4294967296", exactly 11 chars */ -function general_fmt_int(v) { return v.toString(10); } -SSF._general_int = general_fmt_int; - -/* ECMA-376 18.8.30 numFmt*/ -/* Note: `toPrecision` uses standard form when prec > E and E >= -6 */ -var general_fmt_num = (function make_general_fmt_num() { - var trailing_zeroes_and_decimal = /(?:\.0*|(\.\d*[1-9])0+)$/; - function strip_decimal(o) { - return (o.indexOf(".") == -1) ? o : o.replace(trailing_zeroes_and_decimal, "$1"); - } - - /* General Exponential always shows 2 digits exp and trims the mantissa */ - var mantissa_zeroes_and_decimal = /(?:\.0*|(\.\d*[1-9])0+)[Ee]/; - var exp_with_single_digit = /(E[+-])(\d)$/; - function normalize_exp(o) { - if(o.indexOf("E") == -1) return o; - return o.replace(mantissa_zeroes_and_decimal,"$1E").replace(exp_with_single_digit,"$10$2"); - } - - /* exponent >= -9 and <= 9 */ - function small_exp(v) { - var w = (v<0?12:11); - var o = strip_decimal(v.toFixed(12)); if(o.length <= w) return o; - o = v.toPrecision(10); if(o.length <= w) return o; - return v.toExponential(5); - } - - /* exponent >= 11 or <= -10 likely exponential */ - function large_exp(v) { - var o = strip_decimal(v.toFixed(11)); - return (o.length > (v<0?12:11) || o === "0" || o === "-0") ? v.toPrecision(6) : o; - } - - function general_fmt_num_base(v) { - var V = Math.floor(Math.log(Math.abs(v))*Math.LOG10E), o; - - if(V >= -4 && V <= -1) o = v.toPrecision(10+V); - else if(Math.abs(V) <= 9) o = small_exp(v); - else if(V === 10) o = v.toFixed(10).substr(0,12); - else o = large_exp(v); - - return strip_decimal(normalize_exp(o.toUpperCase())); - } - - return general_fmt_num_base; -})(); -SSF._general_num = general_fmt_num; - -/* - "General" rules: - - text is passed through ("@") - - booleans are rendered as TRUE/FALSE - - "up to 11 characters" displayed for numbers - - Default date format (code 14) used for Dates - - TODO: technically the display depends on the width of the cell -*/ -function general_fmt(v, opts) { - switch(typeof v) { - case 'string': return v; - case 'boolean': return v ? "TRUE" : "FALSE"; - case 'number': return (v|0) === v ? v.toString(10) : general_fmt_num(v); - case 'undefined': return ""; - case 'object': - if(v == null) return ""; - if(v instanceof Date) return format(14, datenum_local(v, opts && opts.date1904), opts); - } - throw new Error("unsupported value in General format: " + v); -} -SSF._general = general_fmt; -function fix_hijri(date, o) { - /* TODO: properly adjust y/m/d and */ - o[0] -= 581; - var dow = date.getDay(); - if(date < 60) dow = (dow + 6) % 7; - return dow; -} -//var THAI_DIGITS = "\u0E50\u0E51\u0E52\u0E53\u0E54\u0E55\u0E56\u0E57\u0E58\u0E59".split(""); -/*jshint -W086 */ -function write_date(type, fmt, val, ss0) { - var o="", ss=0, tt=0, y = val.y, out, outl = 0; - switch(type) { - case 98: /* 'b' buddhist year */ - y = val.y + 543; - /* falls through */ - case 121: /* 'y' year */ - switch(fmt.length) { - case 1: case 2: out = y % 100; outl = 2; break; - default: out = y % 10000; outl = 4; break; - } break; - case 109: /* 'm' month */ - switch(fmt.length) { - case 1: case 2: out = val.m; outl = fmt.length; break; - case 3: return months[val.m-1][1]; - case 5: return months[val.m-1][0]; - default: return months[val.m-1][2]; - } break; - case 100: /* 'd' day */ - switch(fmt.length) { - case 1: case 2: out = val.d; outl = fmt.length; break; - case 3: return days[val.q][0]; - default: return days[val.q][1]; - } break; - case 104: /* 'h' 12-hour */ - switch(fmt.length) { - case 1: case 2: out = 1+(val.H+11)%12; outl = fmt.length; break; - default: throw 'bad hour format: ' + fmt; - } break; - case 72: /* 'H' 24-hour */ - switch(fmt.length) { - case 1: case 2: out = val.H; outl = fmt.length; break; - default: throw 'bad hour format: ' + fmt; - } break; - case 77: /* 'M' minutes */ - switch(fmt.length) { - case 1: case 2: out = val.M; outl = fmt.length; break; - default: throw 'bad minute format: ' + fmt; - } break; - case 115: /* 's' seconds */ - if(fmt != 's' && fmt != 'ss' && fmt != '.0' && fmt != '.00' && fmt != '.000') throw 'bad second format: ' + fmt; - if(val.u === 0 && (fmt == "s" || fmt == "ss")) return pad0(val.S, fmt.length); -if(ss0 >= 2) tt = ss0 === 3 ? 1000 : 100; - else tt = ss0 === 1 ? 10 : 1; - ss = Math.round((tt)*(val.S + val.u)); - if(ss >= 60*tt) ss = 0; - if(fmt === 's') return ss === 0 ? "0" : ""+ss/tt; - o = pad0(ss,2 + ss0); - if(fmt === 'ss') return o.substr(0,2); - return "." + o.substr(2,fmt.length-1); - case 90: /* 'Z' absolute time */ - switch(fmt) { - case '[h]': case '[hh]': out = val.D*24+val.H; break; - case '[m]': case '[mm]': out = (val.D*24+val.H)*60+val.M; break; - case '[s]': case '[ss]': out = ((val.D*24+val.H)*60+val.M)*60+Math.round(val.S+val.u); break; - default: throw 'bad abstime format: ' + fmt; - } outl = fmt.length === 3 ? 1 : 2; break; - case 101: /* 'e' era */ - out = y; outl = 1; break; - } - var outstr = outl > 0 ? pad0(out, outl) : ""; - return outstr; -} -/*jshint +W086 */ -function commaify(s) { - var w = 3; - if(s.length <= w) return s; - var j = (s.length % w), o = s.substr(0,j); - for(; j!=s.length; j+=w) o+=(o.length > 0 ? "," : "") + s.substr(j,w); - return o; -} -var write_num = (function make_write_num(){ -var pct1 = /%/g; -function write_num_pct(type, fmt, val){ - var sfmt = fmt.replace(pct1,""), mul = fmt.length - sfmt.length; - return write_num(type, sfmt, val * Math.pow(10,2*mul)) + fill("%",mul); -} -function write_num_cm(type, fmt, val){ - var idx = fmt.length - 1; - while(fmt.charCodeAt(idx-1) === 44) --idx; - return write_num(type, fmt.substr(0,idx), val / Math.pow(10,3*(fmt.length-idx))); -} -function write_num_exp(fmt, val){ - var o; - var idx = fmt.indexOf("E") - fmt.indexOf(".") - 1; - if(fmt.match(/^#+0.0E\+0$/)) { - if(val == 0) return "0.0E+0"; - else if(val < 0) return "-" + write_num_exp(fmt, -val); - var period = fmt.indexOf("."); if(period === -1) period=fmt.indexOf('E'); - var ee = Math.floor(Math.log(val)*Math.LOG10E)%period; - if(ee < 0) ee += period; - o = (val/Math.pow(10,ee)).toPrecision(idx+1+(period+ee)%period); - if(o.indexOf("e") === -1) { - var fakee = Math.floor(Math.log(val)*Math.LOG10E); - if(o.indexOf(".") === -1) o = o.charAt(0) + "." + o.substr(1) + "E+" + (fakee - o.length+ee); - else o += "E+" + (fakee - ee); - while(o.substr(0,2) === "0.") { - o = o.charAt(0) + o.substr(2,period) + "." + o.substr(2+period); - o = o.replace(/^0+([1-9])/,"$1").replace(/^0+\./,"0."); - } - o = o.replace(/\+-/,"-"); - } - o = o.replace(/^([+-]?)(\d*)\.(\d*)[Ee]/,function($$,$1,$2,$3) { return $1 + $2 + $3.substr(0,(period+ee)%period) + "." + $3.substr(ee) + "E"; }); - } else o = val.toExponential(idx); - if(fmt.match(/E\+00$/) && o.match(/e[+-]\d$/)) o = o.substr(0,o.length-1) + "0" + o.charAt(o.length-1); - if(fmt.match(/E\-/) && o.match(/e\+/)) o = o.replace(/e\+/,"e"); - return o.replace("e","E"); -} -var frac1 = /# (\?+)( ?)\/( ?)(\d+)/; -function write_num_f1(r, aval, sign) { - var den = parseInt(r[4],10), rr = Math.round(aval * den), base = Math.floor(rr/den); - var myn = (rr - base*den), myd = den; - return sign + (base === 0 ? "" : ""+base) + " " + (myn === 0 ? fill(" ", r[1].length + 1 + r[4].length) : pad_(myn,r[1].length) + r[2] + "/" + r[3] + pad0(myd,r[4].length)); -} -function write_num_f2(r, aval, sign) { - return sign + (aval === 0 ? "" : ""+aval) + fill(" ", r[1].length + 2 + r[4].length); -} -var dec1 = /^#*0*\.([0#]+)/; -var closeparen = /\).*[0#]/; -var phone = /\(###\) ###\\?-####/; -function hashq(str) { - var o = "", cc; - for(var i = 0; i != str.length; ++i) switch((cc=str.charCodeAt(i))) { - case 35: break; - case 63: o+= " "; break; - case 48: o+= "0"; break; - default: o+= String.fromCharCode(cc); - } - return o; -} -function rnd(val, d) { var dd = Math.pow(10,d); return ""+(Math.round(val * dd)/dd); } -function dec(val, d) { - var _frac = val - Math.floor(val), dd = Math.pow(10,d); - if (d < ('' + Math.round(_frac * dd)).length) return 0; - return Math.round(_frac * dd); -} -function carry(val, d) { - if (d < ('' + Math.round((val-Math.floor(val))*Math.pow(10,d))).length) { - return 1; - } - return 0; -} -function flr(val) { - if(val < 2147483647 && val > -2147483648) return ""+(val >= 0 ? (val|0) : (val-1|0)); - return ""+Math.floor(val); -} -function write_num_flt(type, fmt, val) { - if(type.charCodeAt(0) === 40 && !fmt.match(closeparen)) { - var ffmt = fmt.replace(/\( */,"").replace(/ \)/,"").replace(/\)/,""); - if(val >= 0) return write_num_flt('n', ffmt, val); - return '(' + write_num_flt('n', ffmt, -val) + ')'; - } - if(fmt.charCodeAt(fmt.length - 1) === 44) return write_num_cm(type, fmt, val); - if(fmt.indexOf('%') !== -1) return write_num_pct(type, fmt, val); - if(fmt.indexOf('E') !== -1) return write_num_exp(fmt, val); - if(fmt.charCodeAt(0) === 36) return "$"+write_num_flt(type,fmt.substr(fmt.charAt(1)==' '?2:1),val); - var o; - var r, ri, ff, aval = Math.abs(val), sign = val < 0 ? "-" : ""; - if(fmt.match(/^00+$/)) return sign + pad0r(aval,fmt.length); - if(fmt.match(/^[#?]+$/)) { - o = pad0r(val,0); if(o === "0") o = ""; - return o.length > fmt.length ? o : hashq(fmt.substr(0,fmt.length-o.length)) + o; - } - if((r = fmt.match(frac1))) return write_num_f1(r, aval, sign); - if(fmt.match(/^#+0+$/)) return sign + pad0r(aval,fmt.length - fmt.indexOf("0")); - if((r = fmt.match(dec1))) { - o = rnd(val, r[1].length).replace(/^([^\.]+)$/,"$1."+hashq(r[1])).replace(/\.$/,"."+hashq(r[1])).replace(/\.(\d*)$/,function($$, $1) { return "." + $1 + fill("0", hashq(r[1]).length-$1.length); }); - return fmt.indexOf("0.") !== -1 ? o : o.replace(/^0\./,"."); - } - fmt = fmt.replace(/^#+([0.])/, "$1"); - if((r = fmt.match(/^(0*)\.(#*)$/))) { - return sign + rnd(aval, r[2].length).replace(/\.(\d*[1-9])0*$/,".$1").replace(/^(-?\d*)$/,"$1.").replace(/^0\./,r[1].length?"0.":"."); - } - if((r = fmt.match(/^#{1,3},##0(\.?)$/))) return sign + commaify(pad0r(aval,0)); - if((r = fmt.match(/^#,##0\.([#0]*0)$/))) { - return val < 0 ? "-" + write_num_flt(type, fmt, -val) : commaify(""+(Math.floor(val) + carry(val, r[1].length))) + "." + pad0(dec(val, r[1].length),r[1].length); - } - if((r = fmt.match(/^#,#*,#0/))) return write_num_flt(type,fmt.replace(/^#,#*,/,""),val); - if((r = fmt.match(/^([0#]+)(\\?-([0#]+))+$/))) { - o = _strrev(write_num_flt(type, fmt.replace(/[\\-]/g,""), val)); - ri = 0; - return _strrev(_strrev(fmt.replace(/\\/g,"")).replace(/[0#]/g,function(x){return ri= 0) return write_num_int('n', ffmt, val); - return '(' + write_num_int('n', ffmt, -val) + ')'; - } - if(fmt.charCodeAt(fmt.length - 1) === 44) return write_num_cm2(type, fmt, val); - if(fmt.indexOf('%') !== -1) return write_num_pct2(type, fmt, val); - if(fmt.indexOf('E') !== -1) return write_num_exp2(fmt, val); - if(fmt.charCodeAt(0) === 36) return "$"+write_num_int(type,fmt.substr(fmt.charAt(1)==' '?2:1),val); - var o; - var r, ri, ff, aval = Math.abs(val), sign = val < 0 ? "-" : ""; - if(fmt.match(/^00+$/)) return sign + pad0(aval,fmt.length); - if(fmt.match(/^[#?]+$/)) { - o = (""+val); if(val === 0) o = ""; - return o.length > fmt.length ? o : hashq(fmt.substr(0,fmt.length-o.length)) + o; - } - if((r = fmt.match(frac1))) return write_num_f2(r, aval, sign); - if(fmt.match(/^#+0+$/)) return sign + pad0(aval,fmt.length - fmt.indexOf("0")); - if((r = fmt.match(dec1))) { -o = (""+val).replace(/^([^\.]+)$/,"$1."+hashq(r[1])).replace(/\.$/,"."+hashq(r[1])); - o = o.replace(/\.(\d*)$/,function($$, $1) { -return "." + $1 + fill("0", hashq(r[1]).length-$1.length); }); - return fmt.indexOf("0.") !== -1 ? o : o.replace(/^0\./,"."); - } - fmt = fmt.replace(/^#+([0.])/, "$1"); - if((r = fmt.match(/^(0*)\.(#*)$/))) { - return sign + (""+aval).replace(/\.(\d*[1-9])0*$/,".$1").replace(/^(-?\d*)$/,"$1.").replace(/^0\./,r[1].length?"0.":"."); - } - if((r = fmt.match(/^#{1,3},##0(\.?)$/))) return sign + commaify((""+aval)); - if((r = fmt.match(/^#,##0\.([#0]*0)$/))) { - return val < 0 ? "-" + write_num_int(type, fmt, -val) : commaify((""+val)) + "." + fill('0',r[1].length); - } - if((r = fmt.match(/^#,#*,#0/))) return write_num_int(type,fmt.replace(/^#,#*,/,""),val); - if((r = fmt.match(/^([0#]+)(\\?-([0#]+))+$/))) { - o = _strrev(write_num_int(type, fmt.replace(/[\\-]/g,""), val)); - ri = 0; - return _strrev(_strrev(fmt.replace(/\\/g,"")).replace(/[0#]/g,function(x){return ri -1 || (c=='\\' && fmt.charAt(i+1) == "-" && "0#".indexOf(fmt.charAt(i+2))>-1))){/* empty */} - break; - case '?': while(fmt.charAt(++i) === c){/* empty */} break; - case '*': ++i; if(fmt.charAt(i) == ' ' || fmt.charAt(i) == '*') ++i; break; - case '(': case ')': ++i; break; - case '1': case '2': case '3': case '4': case '5': case '6': case '7': case '8': case '9': - while(i < fmt.length && "0123456789".indexOf(fmt.charAt(++i)) > -1){/* empty */} break; - case ' ': ++i; break; - default: ++i; break; - } - } - return false; -} -SSF.is_date = fmt_is_date; -function eval_fmt(fmt, v, opts, flen) { - var out = [], o = "", i = 0, c = "", lst='t', dt, j, cc; - var hr='H'; - /* Tokenize */ - while(i < fmt.length) { - switch((c = fmt.charAt(i))) { - case 'G': /* General */ - if(!isgeneral(fmt, i)) throw new Error('unrecognized character ' + c + ' in ' +fmt); - out[out.length] = {t:'G', v:'General'}; i+=7; break; - case '"': /* Literal text */ - for(o="";(cc=fmt.charCodeAt(++i)) !== 34 && i < fmt.length;) o += String.fromCharCode(cc); - out[out.length] = {t:'t', v:o}; ++i; break; - case '\\': var w = fmt.charAt(++i), t = (w === "(" || w === ")") ? w : 't'; - out[out.length] = {t:t, v:w}; ++i; break; - case '_': out[out.length] = {t:'t', v:" "}; i+=2; break; - case '@': /* Text Placeholder */ - out[out.length] = {t:'T', v:v}; ++i; break; - case 'B': case 'b': - if(fmt.charAt(i+1) === "1" || fmt.charAt(i+1) === "2") { - if(dt==null) { dt=parse_date_code(v, opts, fmt.charAt(i+1) === "2"); if(dt==null) return ""; } - out[out.length] = {t:'X', v:fmt.substr(i,2)}; lst = c; i+=2; break; - } - /* falls through */ - case 'M': case 'D': case 'Y': case 'H': case 'S': case 'E': - c = c.toLowerCase(); - /* falls through */ - case 'm': case 'd': case 'y': case 'h': case 's': case 'e': case 'g': - if(v < 0) return ""; - if(dt==null) { dt=parse_date_code(v, opts); if(dt==null) return ""; } - o = c; while(++i < fmt.length && fmt.charAt(i).toLowerCase() === c) o+=c; - if(c === 'm' && lst.toLowerCase() === 'h') c = 'M'; - if(c === 'h') c = hr; - out[out.length] = {t:c, v:o}; lst = c; break; - case 'A': case 'a': case '上': - var q={t:c, v:c}; - if(dt==null) dt=parse_date_code(v, opts); - if(fmt.substr(i, 3).toUpperCase() === "A/P") { if(dt!=null) q.v = dt.H >= 12 ? "P" : "A"; q.t = 'T'; hr='h';i+=3;} - else if(fmt.substr(i,5).toUpperCase() === "AM/PM") { if(dt!=null) q.v = dt.H >= 12 ? "PM" : "AM"; q.t = 'T'; i+=5; hr='h'; } - else if(fmt.substr(i,5).toUpperCase() === "上午/下午") { if(dt!=null) q.v = dt.H >= 12 ? "下午" : "上午"; q.t = 'T'; i+=5; hr='h'; } - else { q.t = "t"; ++i; } - if(dt==null && q.t === 'T') return ""; - out[out.length] = q; lst = c; break; - case '[': - o = c; - while(fmt.charAt(i++) !== ']' && i < fmt.length) o += fmt.charAt(i); - if(o.slice(-1) !== ']') throw 'unterminated "[" block: |' + o + '|'; - if(o.match(abstime)) { - if(dt==null) { dt=parse_date_code(v, opts); if(dt==null) return ""; } - out[out.length] = {t:'Z', v:o.toLowerCase()}; - lst = o.charAt(1); - } else if(o.indexOf("$") > -1) { - o = (o.match(/\$([^-\[\]]*)/)||[])[1]||"$"; - if(!fmt_is_date(fmt)) out[out.length] = {t:'t',v:o}; - } - break; - /* Numbers */ - case '.': - if(dt != null) { - o = c; while(++i < fmt.length && (c=fmt.charAt(i)) === "0") o += c; - out[out.length] = {t:'s', v:o}; break; - } - /* falls through */ - case '0': case '#': - o = c; while(++i < fmt.length && "0#?.,E+-%".indexOf(c=fmt.charAt(i)) > -1) o += c; - out[out.length] = {t:'n', v:o}; break; - case '?': - o = c; while(fmt.charAt(++i) === c) o+=c; - out[out.length] = {t:c, v:o}; lst = c; break; - case '*': ++i; if(fmt.charAt(i) == ' ' || fmt.charAt(i) == '*') ++i; break; // ** - case '(': case ')': out[out.length] = {t:(flen===1?'t':c), v:c}; ++i; break; - case '1': case '2': case '3': case '4': case '5': case '6': case '7': case '8': case '9': - o = c; while(i < fmt.length && "0123456789".indexOf(fmt.charAt(++i)) > -1) o+=fmt.charAt(i); - out[out.length] = {t:'D', v:o}; break; - case ' ': out[out.length] = {t:c, v:c}; ++i; break; - case '$': out[out.length] = {t:'t', v:'$'}; ++i; break; - default: - if(",$-+/():!^&'~{}<>=€acfijklopqrtuvwxzP".indexOf(c) === -1) throw new Error('unrecognized character ' + c + ' in ' + fmt); - out[out.length] = {t:'t', v:c}; ++i; break; - } - } - - /* Scan for date/time parts */ - var bt = 0, ss0 = 0, ssm; - for(i=out.length-1, lst='t'; i >= 0; --i) { - switch(out[i].t) { - case 'h': case 'H': out[i].t = hr; lst='h'; if(bt < 1) bt = 1; break; - case 's': - if((ssm=out[i].v.match(/\.0+$/))) ss0=Math.max(ss0,ssm[0].length-1); - if(bt < 3) bt = 3; - /* falls through */ - case 'd': case 'y': case 'M': case 'e': lst=out[i].t; break; - case 'm': if(lst === 's') { out[i].t = 'M'; if(bt < 2) bt = 2; } break; - case 'X': /*if(out[i].v === "B2");*/ - break; - case 'Z': - if(bt < 1 && out[i].v.match(/[Hh]/)) bt = 1; - if(bt < 2 && out[i].v.match(/[Mm]/)) bt = 2; - if(bt < 3 && out[i].v.match(/[Ss]/)) bt = 3; - } - } - /* time rounding depends on presence of minute / second / usec fields */ - switch(bt) { - case 0: break; - case 1: -if(dt.u >= 0.5) { dt.u = 0; ++dt.S; } - if(dt.S >= 60) { dt.S = 0; ++dt.M; } - if(dt.M >= 60) { dt.M = 0; ++dt.H; } - break; - case 2: -if(dt.u >= 0.5) { dt.u = 0; ++dt.S; } - if(dt.S >= 60) { dt.S = 0; ++dt.M; } - break; - } - - /* replace fields */ - var nstr = "", jj; - for(i=0; i < out.length; ++i) { - switch(out[i].t) { - case 't': case 'T': case ' ': case 'D': break; - case 'X': out[i].v = ""; out[i].t = ";"; break; - case 'd': case 'm': case 'y': case 'h': case 'H': case 'M': case 's': case 'e': case 'b': case 'Z': -out[i].v = write_date(out[i].t.charCodeAt(0), out[i].v, dt, ss0); - out[i].t = 't'; break; - case 'n': case '?': - jj = i+1; - while(out[jj] != null && ( - (c=out[jj].t) === "?" || c === "D" || - ((c === " " || c === "t") && out[jj+1] != null && (out[jj+1].t === '?' || out[jj+1].t === "t" && out[jj+1].v === '/')) || - (out[i].t === '(' && (c === ' ' || c === 'n' || c === ')')) || - (c === 't' && (out[jj].v === '/' || out[jj].v === ' ' && out[jj+1] != null && out[jj+1].t == '?')) - )) { - out[i].v += out[jj].v; - out[jj] = {v:"", t:";"}; ++jj; - } - nstr += out[i].v; - i = jj-1; break; - case 'G': out[i].t = 't'; out[i].v = general_fmt(v,opts); break; - } - } - var vv = "", myv, ostr; - if(nstr.length > 0) { - if(nstr.charCodeAt(0) == 40) /* '(' */ { - myv = (v<0&&nstr.charCodeAt(0) === 45 ? -v : v); - ostr = write_num('n', nstr, myv); - } else { - myv = (v<0 && flen > 1 ? -v : v); - ostr = write_num('n', nstr, myv); - if(myv < 0 && out[0] && out[0].t == 't') { - ostr = ostr.substr(1); - out[0].v = "-" + out[0].v; - } - } - jj=ostr.length-1; - var decpt = out.length; - for(i=0; i < out.length; ++i) if(out[i] != null && out[i].t != 't' && out[i].v.indexOf(".") > -1) { decpt = i; break; } - var lasti=out.length; - if(decpt === out.length && ostr.indexOf("E") === -1) { - for(i=out.length-1; i>= 0;--i) { - if(out[i] == null || 'n?'.indexOf(out[i].t) === -1) continue; - if(jj>=out[i].v.length-1) { jj -= out[i].v.length; out[i].v = ostr.substr(jj+1, out[i].v.length); } - else if(jj < 0) out[i].v = ""; - else { out[i].v = ostr.substr(0, jj+1); jj = -1; } - out[i].t = 't'; - lasti = i; - } - if(jj>=0 && lasti= 0; --i) { - if(out[i] == null || 'n?'.indexOf(out[i].t) === -1) continue; - j=out[i].v.indexOf(".")>-1&&i===decpt?out[i].v.indexOf(".")-1:out[i].v.length-1; - vv = out[i].v.substr(j+1); - for(; j>=0; --j) { - if(jj>=0 && (out[i].v.charAt(j) === "0" || out[i].v.charAt(j) === "#")) vv = ostr.charAt(jj--) + vv; - } - out[i].v = vv; - out[i].t = 't'; - lasti = i; - } - if(jj>=0 && lasti-1&&i===decpt?out[i].v.indexOf(".")+1:0; - vv = out[i].v.substr(0,j); - for(; j-1) { - myv = (flen >1 && v < 0 && i>0 && out[i-1].v === "-" ? -v:v); - out[i].v = write_num(out[i].t, out[i].v, myv); - out[i].t = 't'; - } - var retval = ""; - for(i=0; i !== out.length; ++i) if(out[i] != null) retval += out[i].v; - return retval; -} -SSF._eval = eval_fmt; -var cfregex = /\[[=<>]/; -var cfregex2 = /\[(=|>[=]?|<[>=]?)(-?\d+(?:\.\d*)?)\]/; -function chkcond(v, rr) { - if(rr == null) return false; - var thresh = parseFloat(rr[2]); - switch(rr[1]) { - case "=": if(v == thresh) return true; break; - case ">": if(v > thresh) return true; break; - case "<": if(v < thresh) return true; break; - case "<>": if(v != thresh) return true; break; - case ">=": if(v >= thresh) return true; break; - case "<=": if(v <= thresh) return true; break; - } - return false; -} -function choose_fmt(f, v) { - var fmt = split_fmt(f); - var l = fmt.length, lat = fmt[l-1].indexOf("@"); - if(l<4 && lat>-1) --l; - if(fmt.length > 4) throw new Error("cannot find right format for |" + fmt.join("|") + "|"); - if(typeof v !== "number") return [4, fmt.length === 4 || lat>-1?fmt[fmt.length-1]:"@"]; - switch(fmt.length) { - case 1: fmt = lat>-1 ? ["General", "General", "General", fmt[0]] : [fmt[0], fmt[0], fmt[0], "@"]; break; - case 2: fmt = lat>-1 ? [fmt[0], fmt[0], fmt[0], fmt[1]] : [fmt[0], fmt[1], fmt[0], "@"]; break; - case 3: fmt = lat>-1 ? [fmt[0], fmt[1], fmt[0], fmt[2]] : [fmt[0], fmt[1], fmt[2], "@"]; break; - case 4: break; - } - var ff = v > 0 ? fmt[0] : v < 0 ? fmt[1] : fmt[2]; - if(fmt[0].indexOf("[") === -1 && fmt[1].indexOf("[") === -1) return [l, ff]; - if(fmt[0].match(cfregex) != null || fmt[1].match(cfregex) != null) { - var m1 = fmt[0].match(cfregex2); - var m2 = fmt[1].match(cfregex2); - return chkcond(v, m1) ? [l, fmt[0]] : chkcond(v, m2) ? [l, fmt[1]] : [l, fmt[m1 != null && m2 != null ? 2 : 1]]; - } - return [l, ff]; -} -function format(fmt,v,o) { - if(o == null) o = {}; - var sfmt = ""; - switch(typeof fmt) { - case "string": - if(fmt == "m/d/yy" && o.dateNF) sfmt = o.dateNF; - else sfmt = fmt; - break; - case "number": - if(fmt == 14 && o.dateNF) sfmt = o.dateNF; - else sfmt = (o.table != null ? (o.table) : table_fmt)[fmt]; - if(sfmt == null) sfmt = (o.table && o.table[default_map[fmt]]) || table_fmt[default_map[fmt]]; - if(sfmt == null) sfmt = default_str[fmt] || "General"; - break; - } - if(isgeneral(sfmt,0)) return general_fmt(v, o); - if(v instanceof Date) v = datenum_local(v, o.date1904); - var f = choose_fmt(sfmt, v); - if(isgeneral(f[1])) return general_fmt(v, o); - if(v === true) v = "TRUE"; else if(v === false) v = "FALSE"; - else if(v === "" || v == null) return ""; - return eval_fmt(f[1], v, o, f[0]); -} -function load_entry(fmt, idx) { - if(typeof idx != 'number') { - idx = +idx || -1; -for(var i = 0; i < 0x0188; ++i) { -if(table_fmt[i] == undefined) { if(idx < 0) idx = i; continue; } - if(table_fmt[i] == fmt) { idx = i; break; } - } -if(idx < 0) idx = 0x187; - } -table_fmt[idx] = fmt; - return idx; -} -SSF.load = load_entry; -SSF._table = table_fmt; -SSF.get_table = function get_table() { return table_fmt; }; -SSF.load_table = function load_table(tbl) { - for(var i=0; i!=0x0188; ++i) - if(tbl[i] !== undefined) load_entry(tbl[i], i); -}; -SSF.init_table = init_table; -SSF.format = format; -}; -make_ssf(SSF); -/* map from xlml named formats to SSF TODO: localize */ -var XLMLFormatMap/*{[string]:string}*/ = ({ - "General Number": "General", - "General Date": SSF._table[22], - "Long Date": "dddd, mmmm dd, yyyy", - "Medium Date": SSF._table[15], - "Short Date": SSF._table[14], - "Long Time": SSF._table[19], - "Medium Time": SSF._table[18], - "Short Time": SSF._table[20], - "Currency": '"$"#,##0.00_);[Red]\\("$"#,##0.00\\)', - "Fixed": SSF._table[2], - "Standard": SSF._table[4], - "Percent": SSF._table[10], - "Scientific": SSF._table[11], - "Yes/No": '"Yes";"Yes";"No";@', - "True/False": '"True";"True";"False";@', - "On/Off": '"Yes";"Yes";"No";@' -}); - -var SSFImplicit/*{[number]:string}*/ = ({ - "5": '"$"#,##0_);\\("$"#,##0\\)', - "6": '"$"#,##0_);[Red]\\("$"#,##0\\)', - "7": '"$"#,##0.00_);\\("$"#,##0.00\\)', - "8": '"$"#,##0.00_);[Red]\\("$"#,##0.00\\)', - "23": 'General', "24": 'General', "25": 'General', "26": 'General', - "27": 'm/d/yy', "28": 'm/d/yy', "29": 'm/d/yy', "30": 'm/d/yy', "31": 'm/d/yy', - "32": 'h:mm:ss', "33": 'h:mm:ss', "34": 'h:mm:ss', "35": 'h:mm:ss', - "36": 'm/d/yy', - "41": '_(* #,##0_);_(* \(#,##0\);_(* "-"_);_(@_)', - "42": '_("$"* #,##0_);_("$"* \(#,##0\);_("$"* "-"_);_(@_)', - "43": '_(* #,##0.00_);_(* \(#,##0.00\);_(* "-"??_);_(@_)', - "44": '_("$"* #,##0.00_);_("$"* \(#,##0.00\);_("$"* "-"??_);_(@_)', - "50": 'm/d/yy', "51": 'm/d/yy', "52": 'm/d/yy', "53": 'm/d/yy', "54": 'm/d/yy', - "55": 'm/d/yy', "56": 'm/d/yy', "57": 'm/d/yy', "58": 'm/d/yy', - "59": '0', - "60": '0.00', - "61": '#,##0', - "62": '#,##0.00', - "63": '"$"#,##0_);\\("$"#,##0\\)', - "64": '"$"#,##0_);[Red]\\("$"#,##0\\)', - "65": '"$"#,##0.00_);\\("$"#,##0.00\\)', - "66": '"$"#,##0.00_);[Red]\\("$"#,##0.00\\)', - "67": '0%', - "68": '0.00%', - "69": '# ?/?', - "70": '# ??/??', - "71": 'm/d/yy', - "72": 'm/d/yy', - "73": 'd-mmm-yy', - "74": 'd-mmm', - "75": 'mmm-yy', - "76": 'h:mm', - "77": 'h:mm:ss', - "78": 'm/d/yy h:mm', - "79": 'mm:ss', - "80": '[h]:mm:ss', - "81": 'mmss.0' -}); - -/* dateNF parse TODO: move to SSF */ -var dateNFregex = /[dD]+|[mM]+|[yYeE]+|[Hh]+|[Ss]+/g; -function dateNF_regex(dateNF) { - var fmt = typeof dateNF == "number" ? SSF._table[dateNF] : dateNF; - fmt = fmt.replace(dateNFregex, "(\\d+)"); - return new RegExp("^" + fmt + "$"); -} -function dateNF_fix(str, dateNF, match) { - var Y = -1, m = -1, d = -1, H = -1, M = -1, S = -1; - (dateNF.match(dateNFregex)||[]).forEach(function(n, i) { - var v = parseInt(match[i+1], 10); - switch(n.toLowerCase().charAt(0)) { - case 'y': Y = v; break; case 'd': d = v; break; - case 'h': H = v; break; case 's': S = v; break; - case 'm': if(H >= 0) M = v; else m = v; break; - } - }); - if(S >= 0 && M == -1 && m >= 0) { M = m; m = -1; } - var datestr = (("" + (Y>=0?Y: new Date().getFullYear())).slice(-4) + "-" + ("00" + (m>=1?m:1)).slice(-2) + "-" + ("00" + (d>=1?d:1)).slice(-2)); - if(datestr.length == 7) datestr = "0" + datestr; - if(datestr.length == 8) datestr = "20" + datestr; - var timestr = (("00" + (H>=0?H:0)).slice(-2) + ":" + ("00" + (M>=0?M:0)).slice(-2) + ":" + ("00" + (S>=0?S:0)).slice(-2)); - if(H == -1 && M == -1 && S == -1) return datestr; - if(Y == -1 && m == -1 && d == -1) return timestr; - return datestr + "T" + timestr; -} - -var DO_NOT_EXPORT_CFB = true; -/* cfb.js (C) 2013-present SheetJS -- http://sheetjs.com */ -/* vim: set ts=2: */ -/*jshint eqnull:true */ -/*exported CFB */ -/*global module, require:false, process:false, Buffer:false, Uint8Array:false, Uint16Array:false */ - -/* crc32.js (C) 2014-present SheetJS -- http://sheetjs.com */ -/* vim: set ts=2: */ -/*exported CRC32 */ -var CRC32; -(function (factory) { - /*jshint ignore:start */ - /*eslint-disable */ - factory(CRC32 = {}); - /*eslint-enable */ - /*jshint ignore:end */ -}(function(CRC32) { -CRC32.version = '1.2.0'; -/* see perf/crc32table.js */ -/*global Int32Array */ -function signed_crc_table() { - var c = 0, table = new Array(256); - - for(var n =0; n != 256; ++n){ - c = n; - c = ((c&1) ? (-306674912 ^ (c >>> 1)) : (c >>> 1)); - c = ((c&1) ? (-306674912 ^ (c >>> 1)) : (c >>> 1)); - c = ((c&1) ? (-306674912 ^ (c >>> 1)) : (c >>> 1)); - c = ((c&1) ? (-306674912 ^ (c >>> 1)) : (c >>> 1)); - c = ((c&1) ? (-306674912 ^ (c >>> 1)) : (c >>> 1)); - c = ((c&1) ? (-306674912 ^ (c >>> 1)) : (c >>> 1)); - c = ((c&1) ? (-306674912 ^ (c >>> 1)) : (c >>> 1)); - c = ((c&1) ? (-306674912 ^ (c >>> 1)) : (c >>> 1)); - table[n] = c; - } - - return typeof Int32Array !== 'undefined' ? new Int32Array(table) : table; -} - -var T0 = signed_crc_table(); -function slice_by_16_tables(T) { - var c = 0, v = 0, n = 0, table = typeof Int32Array !== 'undefined' ? new Int32Array(4096) : new Array(4096) ; - - for(n = 0; n != 256; ++n) table[n] = T[n]; - for(n = 0; n != 256; ++n) { - v = T[n]; - for(c = 256 + n; c < 4096; c += 256) v = table[c] = (v >>> 8) ^ T[v & 0xFF]; - } - var out = []; - for(n = 1; n != 16; ++n) out[n - 1] = typeof Int32Array !== 'undefined' ? table.subarray(n * 256, n * 256 + 256) : table.slice(n * 256, n * 256 + 256); - return out; -} -var TT = slice_by_16_tables(T0); -var T1 = TT[0], T2 = TT[1], T3 = TT[2], T4 = TT[3], T5 = TT[4]; -var T6 = TT[5], T7 = TT[6], T8 = TT[7], T9 = TT[8], Ta = TT[9]; -var Tb = TT[10], Tc = TT[11], Td = TT[12], Te = TT[13], Tf = TT[14]; -function crc32_bstr(bstr, seed) { - var C = seed ^ -1; - for(var i = 0, L = bstr.length; i < L;) C = (C>>>8) ^ T0[(C^bstr.charCodeAt(i++))&0xFF]; - return ~C; -} - -function crc32_buf(B, seed) { - var C = seed ^ -1, L = B.length - 15, i = 0; - for(; i < L;) C = - Tf[B[i++] ^ (C & 255)] ^ - Te[B[i++] ^ ((C >> 8) & 255)] ^ - Td[B[i++] ^ ((C >> 16) & 255)] ^ - Tc[B[i++] ^ (C >>> 24)] ^ - Tb[B[i++]] ^ Ta[B[i++]] ^ T9[B[i++]] ^ T8[B[i++]] ^ - T7[B[i++]] ^ T6[B[i++]] ^ T5[B[i++]] ^ T4[B[i++]] ^ - T3[B[i++]] ^ T2[B[i++]] ^ T1[B[i++]] ^ T0[B[i++]]; - L += 15; - while(i < L) C = (C>>>8) ^ T0[(C^B[i++])&0xFF]; - return ~C; -} - -function crc32_str(str, seed) { - var C = seed ^ -1; - for(var i = 0, L = str.length, c = 0, d = 0; i < L;) { - c = str.charCodeAt(i++); - if(c < 0x80) { - C = (C>>>8) ^ T0[(C^c)&0xFF]; - } else if(c < 0x800) { - C = (C>>>8) ^ T0[(C ^ (192|((c>>6)&31)))&0xFF]; - C = (C>>>8) ^ T0[(C ^ (128|(c&63)))&0xFF]; - } else if(c >= 0xD800 && c < 0xE000) { - c = (c&1023)+64; d = str.charCodeAt(i++)&1023; - C = (C>>>8) ^ T0[(C ^ (240|((c>>8)&7)))&0xFF]; - C = (C>>>8) ^ T0[(C ^ (128|((c>>2)&63)))&0xFF]; - C = (C>>>8) ^ T0[(C ^ (128|((d>>6)&15)|((c&3)<<4)))&0xFF]; - C = (C>>>8) ^ T0[(C ^ (128|(d&63)))&0xFF]; - } else { - C = (C>>>8) ^ T0[(C ^ (224|((c>>12)&15)))&0xFF]; - C = (C>>>8) ^ T0[(C ^ (128|((c>>6)&63)))&0xFF]; - C = (C>>>8) ^ T0[(C ^ (128|(c&63)))&0xFF]; - } - } - return ~C; -} -CRC32.table = T0; -CRC32.bstr = crc32_bstr; -CRC32.buf = crc32_buf; -CRC32.str = crc32_str; -})); -/* [MS-CFB] v20171201 */ -var CFB = (function _CFB(){ -var exports = {}; -exports.version = '1.2.1'; -/* [MS-CFB] 2.6.4 */ -function namecmp(l, r) { - var L = l.split("/"), R = r.split("/"); - for(var i = 0, c = 0, Z = Math.min(L.length, R.length); i < Z; ++i) { - if((c = L[i].length - R[i].length)) return c; - if(L[i] != R[i]) return L[i] < R[i] ? -1 : 1; - } - return L.length - R.length; -} -function dirname(p) { - if(p.charAt(p.length - 1) == "/") return (p.slice(0,-1).indexOf("/") === -1) ? p : dirname(p.slice(0, -1)); - var c = p.lastIndexOf("/"); - return (c === -1) ? p : p.slice(0, c+1); -} - -function filename(p) { - if(p.charAt(p.length - 1) == "/") return filename(p.slice(0, -1)); - var c = p.lastIndexOf("/"); - return (c === -1) ? p : p.slice(c+1); -} -/* -------------------------------------------------------------------------- */ -/* DOS Date format: - high|YYYYYYYm.mmmddddd.HHHHHMMM.MMMSSSSS|low - add 1980 to stored year - stored second should be doubled -*/ - -/* write JS date to buf as a DOS date */ -function write_dos_date(buf, date) { - if(typeof date === "string") date = new Date(date); - var hms = date.getHours(); - hms = hms << 6 | date.getMinutes(); - hms = hms << 5 | (date.getSeconds()>>>1); - buf.write_shift(2, hms); - var ymd = (date.getFullYear() - 1980); - ymd = ymd << 4 | (date.getMonth()+1); - ymd = ymd << 5 | date.getDate(); - buf.write_shift(2, ymd); -} - -/* read four bytes from buf and interpret as a DOS date */ -function parse_dos_date(buf) { - var hms = buf.read_shift(2) & 0xFFFF; - var ymd = buf.read_shift(2) & 0xFFFF; - var val = new Date(); - var d = ymd & 0x1F; ymd >>>= 5; - var m = ymd & 0x0F; ymd >>>= 4; - val.setMilliseconds(0); - val.setFullYear(ymd + 1980); - val.setMonth(m-1); - val.setDate(d); - var S = hms & 0x1F; hms >>>= 5; - var M = hms & 0x3F; hms >>>= 6; - val.setHours(hms); - val.setMinutes(M); - val.setSeconds(S<<1); - return val; -} -function parse_extra_field(blob) { - prep_blob(blob, 0); - var o = {}; - var flags = 0; - while(blob.l <= blob.length - 4) { - var type = blob.read_shift(2); - var sz = blob.read_shift(2), tgt = blob.l + sz; - var p = {}; - switch(type) { - /* UNIX-style Timestamps */ - case 0x5455: { - flags = blob.read_shift(1); - if(flags & 1) p.mtime = blob.read_shift(4); - /* for some reason, CD flag corresponds to LFH */ - if(sz > 5) { - if(flags & 2) p.atime = blob.read_shift(4); - if(flags & 4) p.ctime = blob.read_shift(4); - } - if(p.mtime) p.mt = new Date(p.mtime*1000); - } - break; - } - blob.l = tgt; - o[type] = p; - } - return o; -} -var fs; -function get_fs() { return fs || (fs = require('fs')); } -function parse(file, options) { -if(file[0] == 0x50 && file[1] == 0x4b) return parse_zip(file, options); -if((file[0] | 0x20) == 0x6d && (file[1]|0x20) == 0x69) return parse_mad(file, options); -if(file.length < 512) throw new Error("CFB file size " + file.length + " < 512"); -var mver = 3; -var ssz = 512; -var nmfs = 0; // number of mini FAT sectors -var difat_sec_cnt = 0; -var dir_start = 0; -var minifat_start = 0; -var difat_start = 0; - -var fat_addrs = []; // locations of FAT sectors - -/* [MS-CFB] 2.2 Compound File Header */ -var blob = file.slice(0,512); -prep_blob(blob, 0); - -/* major version */ -var mv = check_get_mver(blob); -mver = mv[0]; -switch(mver) { - case 3: ssz = 512; break; case 4: ssz = 4096; break; - case 0: if(mv[1] == 0) return parse_zip(file, options); - /* falls through */ - default: throw new Error("Major Version: Expected 3 or 4 saw " + mver); -} - -/* reprocess header */ -if(ssz !== 512) { blob = file.slice(0,ssz); prep_blob(blob, 28 /* blob.l */); } -/* Save header for final object */ -var header = file.slice(0,ssz); - -check_shifts(blob, mver); - -// Number of Directory Sectors -var dir_cnt = blob.read_shift(4, 'i'); -if(mver === 3 && dir_cnt !== 0) throw new Error('# Directory Sectors: Expected 0 saw ' + dir_cnt); - -// Number of FAT Sectors -blob.l += 4; - -// First Directory Sector Location -dir_start = blob.read_shift(4, 'i'); - -// Transaction Signature -blob.l += 4; - -// Mini Stream Cutoff Size -blob.chk('00100000', 'Mini Stream Cutoff Size: '); - -// First Mini FAT Sector Location -minifat_start = blob.read_shift(4, 'i'); - -// Number of Mini FAT Sectors -nmfs = blob.read_shift(4, 'i'); - -// First DIFAT sector location -difat_start = blob.read_shift(4, 'i'); - -// Number of DIFAT Sectors -difat_sec_cnt = blob.read_shift(4, 'i'); - -// Grab FAT Sector Locations -for(var q = -1, j = 0; j < 109; ++j) { /* 109 = (512 - blob.l)>>>2; */ - q = blob.read_shift(4, 'i'); - if(q<0) break; - fat_addrs[j] = q; -} - -/** Break the file up into sectors */ -var sectors = sectorify(file, ssz); - -sleuth_fat(difat_start, difat_sec_cnt, sectors, ssz, fat_addrs); - -/** Chains */ -var sector_list = make_sector_list(sectors, dir_start, fat_addrs, ssz); - -sector_list[dir_start].name = "!Directory"; -if(nmfs > 0 && minifat_start !== ENDOFCHAIN) sector_list[minifat_start].name = "!MiniFAT"; -sector_list[fat_addrs[0]].name = "!FAT"; -sector_list.fat_addrs = fat_addrs; -sector_list.ssz = ssz; - -/* [MS-CFB] 2.6.1 Compound File Directory Entry */ -var files = {}, Paths = [], FileIndex = [], FullPaths = []; -read_directory(dir_start, sector_list, sectors, Paths, nmfs, files, FileIndex, minifat_start); - -build_full_paths(FileIndex, FullPaths, Paths); -Paths.shift(); - -var o = { - FileIndex: FileIndex, - FullPaths: FullPaths -}; - -// $FlowIgnore -if(options && options.raw) o.raw = {header: header, sectors: sectors}; -return o; -} // parse - -/* [MS-CFB] 2.2 Compound File Header -- read up to major version */ -function check_get_mver(blob) { - if(blob[blob.l] == 0x50 && blob[blob.l + 1] == 0x4b) return [0, 0]; - // header signature 8 - blob.chk(HEADER_SIGNATURE, 'Header Signature: '); - - // clsid 16 - //blob.chk(HEADER_CLSID, 'CLSID: '); - blob.l += 16; - - // minor version 2 - var mver = blob.read_shift(2, 'u'); - - return [blob.read_shift(2,'u'), mver]; -} -function check_shifts(blob, mver) { - var shift = 0x09; - - // Byte Order - //blob.chk('feff', 'Byte Order: '); // note: some writers put 0xffff - blob.l += 2; - - // Sector Shift - switch((shift = blob.read_shift(2))) { - case 0x09: if(mver != 3) throw new Error('Sector Shift: Expected 9 saw ' + shift); break; - case 0x0c: if(mver != 4) throw new Error('Sector Shift: Expected 12 saw ' + shift); break; - default: throw new Error('Sector Shift: Expected 9 or 12 saw ' + shift); - } - - // Mini Sector Shift - blob.chk('0600', 'Mini Sector Shift: '); - - // Reserved - blob.chk('000000000000', 'Reserved: '); -} - -/** Break the file up into sectors */ -function sectorify(file, ssz) { - var nsectors = Math.ceil(file.length/ssz)-1; - var sectors = []; - for(var i=1; i < nsectors; ++i) sectors[i-1] = file.slice(i*ssz,(i+1)*ssz); - sectors[nsectors-1] = file.slice(nsectors*ssz); - return sectors; -} - -/* [MS-CFB] 2.6.4 Red-Black Tree */ -function build_full_paths(FI, FP, Paths) { - var i = 0, L = 0, R = 0, C = 0, j = 0, pl = Paths.length; - var dad = [], q = []; - - for(; i < pl; ++i) { dad[i]=q[i]=i; FP[i]=Paths[i]; } - - for(; j < q.length; ++j) { - i = q[j]; - L = FI[i].L; R = FI[i].R; C = FI[i].C; - if(dad[i] === i) { - if(L !== -1 /*NOSTREAM*/ && dad[L] !== L) dad[i] = dad[L]; - if(R !== -1 && dad[R] !== R) dad[i] = dad[R]; - } - if(C !== -1 /*NOSTREAM*/) dad[C] = i; - if(L !== -1 && i != dad[i]) { dad[L] = dad[i]; if(q.lastIndexOf(L) < j) q.push(L); } - if(R !== -1 && i != dad[i]) { dad[R] = dad[i]; if(q.lastIndexOf(R) < j) q.push(R); } - } - for(i=1; i < pl; ++i) if(dad[i] === i) { - if(R !== -1 /*NOSTREAM*/ && dad[R] !== R) dad[i] = dad[R]; - else if(L !== -1 && dad[L] !== L) dad[i] = dad[L]; - } - - for(i=1; i < pl; ++i) { - if(FI[i].type === 0 /* unknown */) continue; - j = i; - if(j != dad[j]) do { - j = dad[j]; - FP[i] = FP[j] + "/" + FP[i]; - } while (j !== 0 && -1 !== dad[j] && j != dad[j]); - dad[i] = -1; - } - - FP[0] += "/"; - for(i=1; i < pl; ++i) { - if(FI[i].type !== 2 /* stream */) FP[i] += "/"; - } -} - -function get_mfat_entry(entry, payload, mini) { - var start = entry.start, size = entry.size; - //return (payload.slice(start*MSSZ, start*MSSZ + size)); - var o = []; - var idx = start; - while(mini && size > 0 && idx >= 0) { - o.push(payload.slice(idx * MSSZ, idx * MSSZ + MSSZ)); - size -= MSSZ; - idx = __readInt32LE(mini, idx * 4); - } - if(o.length === 0) return (new_buf(0)); - return (bconcat(o).slice(0, entry.size)); -} - -/** Chase down the rest of the DIFAT chain to build a comprehensive list - DIFAT chains by storing the next sector number as the last 32 bits */ -function sleuth_fat(idx, cnt, sectors, ssz, fat_addrs) { - var q = ENDOFCHAIN; - if(idx === ENDOFCHAIN) { - if(cnt !== 0) throw new Error("DIFAT chain shorter than expected"); - } else if(idx !== -1 /*FREESECT*/) { - var sector = sectors[idx], m = (ssz>>>2)-1; - if(!sector) return; - for(var i = 0; i < m; ++i) { - if((q = __readInt32LE(sector,i*4)) === ENDOFCHAIN) break; - fat_addrs.push(q); - } - sleuth_fat(__readInt32LE(sector,ssz-4),cnt - 1, sectors, ssz, fat_addrs); - } -} - -/** Follow the linked list of sectors for a given starting point */ -function get_sector_list(sectors, start, fat_addrs, ssz, chkd) { - var buf = [], buf_chain = []; - if(!chkd) chkd = []; - var modulus = ssz - 1, j = 0, jj = 0; - for(j=start; j>=0;) { - chkd[j] = true; - buf[buf.length] = j; - buf_chain.push(sectors[j]); - var addr = fat_addrs[Math.floor(j*4/ssz)]; - jj = ((j*4) & modulus); - if(ssz < 4 + jj) throw new Error("FAT boundary crossed: " + j + " 4 "+ssz); - if(!sectors[addr]) break; - j = __readInt32LE(sectors[addr], jj); - } - return {nodes: buf, data:__toBuffer([buf_chain])}; -} - -/** Chase down the sector linked lists */ -function make_sector_list(sectors, dir_start, fat_addrs, ssz) { - var sl = sectors.length, sector_list = ([]); - var chkd = [], buf = [], buf_chain = []; - var modulus = ssz - 1, i=0, j=0, k=0, jj=0; - for(i=0; i < sl; ++i) { - buf = ([]); - k = (i + dir_start); if(k >= sl) k-=sl; - if(chkd[k]) continue; - buf_chain = []; - var seen = []; - for(j=k; j>=0;) { - seen[j] = true; - chkd[j] = true; - buf[buf.length] = j; - buf_chain.push(sectors[j]); - var addr = fat_addrs[Math.floor(j*4/ssz)]; - jj = ((j*4) & modulus); - if(ssz < 4 + jj) throw new Error("FAT boundary crossed: " + j + " 4 "+ssz); - if(!sectors[addr]) break; - j = __readInt32LE(sectors[addr], jj); - if(seen[j]) break; - } - sector_list[k] = ({nodes: buf, data:__toBuffer([buf_chain])}); - } - return sector_list; -} - -/* [MS-CFB] 2.6.1 Compound File Directory Entry */ -function read_directory(dir_start, sector_list, sectors, Paths, nmfs, files, FileIndex, mini) { - var minifat_store = 0, pl = (Paths.length?2:0); - var sector = sector_list[dir_start].data; - var i = 0, namelen = 0, name; - for(; i < sector.length; i+= 128) { - var blob = sector.slice(i, i+128); - prep_blob(blob, 64); - namelen = blob.read_shift(2); - name = __utf16le(blob,0,namelen-pl); - Paths.push(name); - var o = ({ - name: name, - type: blob.read_shift(1), - color: blob.read_shift(1), - L: blob.read_shift(4, 'i'), - R: blob.read_shift(4, 'i'), - C: blob.read_shift(4, 'i'), - clsid: blob.read_shift(16), - state: blob.read_shift(4, 'i'), - start: 0, - size: 0 - }); - var ctime = blob.read_shift(2) + blob.read_shift(2) + blob.read_shift(2) + blob.read_shift(2); - if(ctime !== 0) o.ct = read_date(blob, blob.l-8); - var mtime = blob.read_shift(2) + blob.read_shift(2) + blob.read_shift(2) + blob.read_shift(2); - if(mtime !== 0) o.mt = read_date(blob, blob.l-8); - o.start = blob.read_shift(4, 'i'); - o.size = blob.read_shift(4, 'i'); - if(o.size < 0 && o.start < 0) { o.size = o.type = 0; o.start = ENDOFCHAIN; o.name = ""; } - if(o.type === 5) { /* root */ - minifat_store = o.start; - if(nmfs > 0 && minifat_store !== ENDOFCHAIN) sector_list[minifat_store].name = "!StreamData"; - /*minifat_size = o.size;*/ - } else if(o.size >= 4096 /* MSCSZ */) { - o.storage = 'fat'; - if(sector_list[o.start] === undefined) sector_list[o.start] = get_sector_list(sectors, o.start, sector_list.fat_addrs, sector_list.ssz); - sector_list[o.start].name = o.name; - o.content = (sector_list[o.start].data.slice(0,o.size)); - } else { - o.storage = 'minifat'; - if(o.size < 0) o.size = 0; - else if(minifat_store !== ENDOFCHAIN && o.start !== ENDOFCHAIN && sector_list[minifat_store]) { - o.content = get_mfat_entry(o, sector_list[minifat_store].data, (sector_list[mini]||{}).data); - } - } - if(o.content) prep_blob(o.content, 0); - files[name] = o; - FileIndex.push(o); - } -} - -function read_date(blob, offset) { - return new Date(( ( (__readUInt32LE(blob,offset+4)/1e7)*Math.pow(2,32)+__readUInt32LE(blob,offset)/1e7 ) - 11644473600)*1000); -} - -function read_file(filename, options) { - get_fs(); - return parse(fs.readFileSync(filename), options); -} - -function read(blob, options) { - var type = options && options.type; - if(!type) { - if(has_buf && Buffer.isBuffer(blob)) type = "buffer"; - } - switch(type || "base64") { - case "file": return read_file(blob, options); - case "base64": return parse(s2a(Base64.decode(blob)), options); - case "binary": return parse(s2a(blob), options); - } - return parse(blob, options); -} - -function init_cfb(cfb, opts) { - var o = opts || {}, root = o.root || "Root Entry"; - if(!cfb.FullPaths) cfb.FullPaths = []; - if(!cfb.FileIndex) cfb.FileIndex = []; - if(cfb.FullPaths.length !== cfb.FileIndex.length) throw new Error("inconsistent CFB structure"); - if(cfb.FullPaths.length === 0) { - cfb.FullPaths[0] = root + "/"; - cfb.FileIndex[0] = ({ name: root, type: 5 }); - } - if(o.CLSID) cfb.FileIndex[0].clsid = o.CLSID; - seed_cfb(cfb); -} -function seed_cfb(cfb) { - var nm = "\u0001Sh33tJ5"; - if(CFB.find(cfb, "/" + nm)) return; - var p = new_buf(4); p[0] = 55; p[1] = p[3] = 50; p[2] = 54; - cfb.FileIndex.push(({ name: nm, type: 2, content:p, size:4, L:69, R:69, C:69 })); - cfb.FullPaths.push(cfb.FullPaths[0] + nm); - rebuild_cfb(cfb); -} -function rebuild_cfb(cfb, f) { - init_cfb(cfb); - var gc = false, s = false; - for(var i = cfb.FullPaths.length - 1; i >= 0; --i) { - var _file = cfb.FileIndex[i]; - switch(_file.type) { - case 0: - if(s) gc = true; - else { cfb.FileIndex.pop(); cfb.FullPaths.pop(); } - break; - case 1: case 2: case 5: - s = true; - if(isNaN(_file.R * _file.L * _file.C)) gc = true; - if(_file.R > -1 && _file.L > -1 && _file.R == _file.L) gc = true; - break; - default: gc = true; break; - } - } - if(!gc && !f) return; - - var now = new Date(1987, 1, 19), j = 0; - // Track which names exist - var fullPaths = Object.create ? Object.create(null) : {}; - var data = []; - for(i = 0; i < cfb.FullPaths.length; ++i) { - fullPaths[cfb.FullPaths[i]] = true; - if(cfb.FileIndex[i].type === 0) continue; - data.push([cfb.FullPaths[i], cfb.FileIndex[i]]); - } - for(i = 0; i < data.length; ++i) { - var dad = dirname(data[i][0]); - s = fullPaths[dad]; - if(!s) { - data.push([dad, ({ - name: filename(dad).replace("/",""), - type: 1, - clsid: HEADER_CLSID, - ct: now, mt: now, - content: null - })]); - // Add name to set - fullPaths[dad] = true; - } - } - - data.sort(function(x,y) { return namecmp(x[0], y[0]); }); - cfb.FullPaths = []; cfb.FileIndex = []; - for(i = 0; i < data.length; ++i) { cfb.FullPaths[i] = data[i][0]; cfb.FileIndex[i] = data[i][1]; } - for(i = 0; i < data.length; ++i) { - var elt = cfb.FileIndex[i]; - var nm = cfb.FullPaths[i]; - - elt.name = filename(nm).replace("/",""); - elt.L = elt.R = elt.C = -(elt.color = 1); - elt.size = elt.content ? elt.content.length : 0; - elt.start = 0; - elt.clsid = (elt.clsid || HEADER_CLSID); - if(i === 0) { - elt.C = data.length > 1 ? 1 : -1; - elt.size = 0; - elt.type = 5; - } else if(nm.slice(-1) == "/") { - for(j=i+1;j < data.length; ++j) if(dirname(cfb.FullPaths[j])==nm) break; - elt.C = j >= data.length ? -1 : j; - for(j=i+1;j < data.length; ++j) if(dirname(cfb.FullPaths[j])==dirname(nm)) break; - elt.R = j >= data.length ? -1 : j; - elt.type = 1; - } else { - if(dirname(cfb.FullPaths[i+1]||"") == dirname(nm)) elt.R = i + 1; - elt.type = 2; - } - } - -} - -function _write(cfb, options) { - var _opts = options || {}; - /* MAD is order-sensitive, skip rebuild and sort */ - if(_opts.fileType == 'mad') return write_mad(cfb, _opts); - rebuild_cfb(cfb); - switch(_opts.fileType) { - case 'zip': return write_zip(cfb, _opts); - //case 'mad': return write_mad(cfb, _opts); - } - var L = (function(cfb){ - var mini_size = 0, fat_size = 0; - for(var i = 0; i < cfb.FileIndex.length; ++i) { - var file = cfb.FileIndex[i]; - if(!file.content) continue; -var flen = file.content.length; - if(flen > 0){ - if(flen < 0x1000) mini_size += (flen + 0x3F) >> 6; - else fat_size += (flen + 0x01FF) >> 9; - } - } - var dir_cnt = (cfb.FullPaths.length +3) >> 2; - var mini_cnt = (mini_size + 7) >> 3; - var mfat_cnt = (mini_size + 0x7F) >> 7; - var fat_base = mini_cnt + fat_size + dir_cnt + mfat_cnt; - var fat_cnt = (fat_base + 0x7F) >> 7; - var difat_cnt = fat_cnt <= 109 ? 0 : Math.ceil((fat_cnt-109)/0x7F); - while(((fat_base + fat_cnt + difat_cnt + 0x7F) >> 7) > fat_cnt) difat_cnt = ++fat_cnt <= 109 ? 0 : Math.ceil((fat_cnt-109)/0x7F); - var L = [1, difat_cnt, fat_cnt, mfat_cnt, dir_cnt, fat_size, mini_size, 0]; - cfb.FileIndex[0].size = mini_size << 6; - L[7] = (cfb.FileIndex[0].start=L[0]+L[1]+L[2]+L[3]+L[4]+L[5])+((L[6]+7) >> 3); - return L; - })(cfb); - var o = new_buf(L[7] << 9); - var i = 0, T = 0; - { - for(i = 0; i < 8; ++i) o.write_shift(1, HEADER_SIG[i]); - for(i = 0; i < 8; ++i) o.write_shift(2, 0); - o.write_shift(2, 0x003E); - o.write_shift(2, 0x0003); - o.write_shift(2, 0xFFFE); - o.write_shift(2, 0x0009); - o.write_shift(2, 0x0006); - for(i = 0; i < 3; ++i) o.write_shift(2, 0); - o.write_shift(4, 0); - o.write_shift(4, L[2]); - o.write_shift(4, L[0] + L[1] + L[2] + L[3] - 1); - o.write_shift(4, 0); - o.write_shift(4, 1<<12); - o.write_shift(4, L[3] ? L[0] + L[1] + L[2] - 1: ENDOFCHAIN); - o.write_shift(4, L[3]); - o.write_shift(-4, L[1] ? L[0] - 1: ENDOFCHAIN); - o.write_shift(4, L[1]); - for(i = 0; i < 109; ++i) o.write_shift(-4, i < L[2] ? L[1] + i : -1); - } - if(L[1]) { - for(T = 0; T < L[1]; ++T) { - for(; i < 236 + T * 127; ++i) o.write_shift(-4, i < L[2] ? L[1] + i : -1); - o.write_shift(-4, T === L[1] - 1 ? ENDOFCHAIN : T + 1); - } - } - var chainit = function(w) { - for(T += w; i> 9); - } - chainit((L[6] + 7) >> 3); - while(o.l & 0x1FF) o.write_shift(-4, consts.ENDOFCHAIN); - T = i = 0; - for(j = 0; j < cfb.FileIndex.length; ++j) { - file = cfb.FileIndex[j]; - if(!file.content) continue; -flen = file.content.length; - if(!flen || flen >= 0x1000) continue; - file.start = T; - chainit((flen + 0x3F) >> 6); - } - while(o.l & 0x1FF) o.write_shift(-4, consts.ENDOFCHAIN); - for(i = 0; i < L[4]<<2; ++i) { - var nm = cfb.FullPaths[i]; - if(!nm || nm.length === 0) { - for(j = 0; j < 17; ++j) o.write_shift(4, 0); - for(j = 0; j < 3; ++j) o.write_shift(4, -1); - for(j = 0; j < 12; ++j) o.write_shift(4, 0); - continue; - } - file = cfb.FileIndex[i]; - if(i === 0) file.start = file.size ? file.start - 1 : ENDOFCHAIN; - var _nm = (i === 0 && _opts.root) || file.name; - flen = 2*(_nm.length+1); - o.write_shift(64, _nm, "utf16le"); - o.write_shift(2, flen); - o.write_shift(1, file.type); - o.write_shift(1, file.color); - o.write_shift(-4, file.L); - o.write_shift(-4, file.R); - o.write_shift(-4, file.C); - if(!file.clsid) for(j = 0; j < 4; ++j) o.write_shift(4, 0); - else o.write_shift(16, file.clsid, "hex"); - o.write_shift(4, file.state || 0); - o.write_shift(4, 0); o.write_shift(4, 0); - o.write_shift(4, 0); o.write_shift(4, 0); - o.write_shift(4, file.start); - o.write_shift(4, file.size); o.write_shift(4, 0); - } - for(i = 1; i < cfb.FileIndex.length; ++i) { - file = cfb.FileIndex[i]; -if(file.size >= 0x1000) { - o.l = (file.start+1) << 9; - if (has_buf && Buffer.isBuffer(file.content)) { - file.content.copy(o, o.l, 0, file.size); - // o is a 0-filled Buffer so just set next offset - o.l += (file.size + 511) & -512; - } else { - for(j = 0; j < file.size; ++j) o.write_shift(1, file.content[j]); - for(; j & 0x1FF; ++j) o.write_shift(1, 0); - } - } - } - for(i = 1; i < cfb.FileIndex.length; ++i) { - file = cfb.FileIndex[i]; -if(file.size > 0 && file.size < 0x1000) { - if (has_buf && Buffer.isBuffer(file.content)) { - file.content.copy(o, o.l, 0, file.size); - // o is a 0-filled Buffer so just set next offset - o.l += (file.size + 63) & -64; - } else { - for(j = 0; j < file.size; ++j) o.write_shift(1, file.content[j]); - for(; j & 0x3F; ++j) o.write_shift(1, 0); - } - } - } - if (has_buf) { - o.l = o.length; - } else { - // When using Buffer, already 0-filled - while(o.l < o.length) o.write_shift(1, 0); - } - return o; -} -/* [MS-CFB] 2.6.4 (Unicode 3.0.1 case conversion) */ -function find(cfb, path) { - var UCFullPaths = cfb.FullPaths.map(function(x) { return x.toUpperCase(); }); - var UCPaths = UCFullPaths.map(function(x) { var y = x.split("/"); return y[y.length - (x.slice(-1) == "/" ? 2 : 1)]; }); - var k = false; - if(path.charCodeAt(0) === 47 /* "/" */) { k = true; path = UCFullPaths[0].slice(0, -1) + path; } - else k = path.indexOf("/") !== -1; - var UCPath = path.toUpperCase(); - var w = k === true ? UCFullPaths.indexOf(UCPath) : UCPaths.indexOf(UCPath); - if(w !== -1) return cfb.FileIndex[w]; - - var m = !UCPath.match(chr1); - UCPath = UCPath.replace(chr0,''); - if(m) UCPath = UCPath.replace(chr1,'!'); - for(w = 0; w < UCFullPaths.length; ++w) { - if((m ? UCFullPaths[w].replace(chr1,'!') : UCFullPaths[w]).replace(chr0,'') == UCPath) return cfb.FileIndex[w]; - if((m ? UCPaths[w].replace(chr1,'!') : UCPaths[w]).replace(chr0,'') == UCPath) return cfb.FileIndex[w]; - } - return null; -} -/** CFB Constants */ -var MSSZ = 64; /* Mini Sector Size = 1<<6 */ -//var MSCSZ = 4096; /* Mini Stream Cutoff Size */ -/* 2.1 Compound File Sector Numbers and Types */ -var ENDOFCHAIN = -2; -/* 2.2 Compound File Header */ -var HEADER_SIGNATURE = 'd0cf11e0a1b11ae1'; -var HEADER_SIG = [0xD0, 0xCF, 0x11, 0xE0, 0xA1, 0xB1, 0x1A, 0xE1]; -var HEADER_CLSID = '00000000000000000000000000000000'; -var consts = { - /* 2.1 Compund File Sector Numbers and Types */ - MAXREGSECT: -6, - DIFSECT: -4, - FATSECT: -3, - ENDOFCHAIN: ENDOFCHAIN, - FREESECT: -1, - /* 2.2 Compound File Header */ - HEADER_SIGNATURE: HEADER_SIGNATURE, - HEADER_MINOR_VERSION: '3e00', - MAXREGSID: -6, - NOSTREAM: -1, - HEADER_CLSID: HEADER_CLSID, - /* 2.6.1 Compound File Directory Entry */ - EntryTypes: ['unknown','storage','stream','lockbytes','property','root'] -}; - -function write_file(cfb, filename, options) { - get_fs(); - var o = _write(cfb, options); -fs.writeFileSync(filename, o); -} - -function a2s(o) { - var out = new Array(o.length); - for(var i = 0; i < o.length; ++i) out[i] = String.fromCharCode(o[i]); - return out.join(""); -} - -function write(cfb, options) { - var o = _write(cfb, options); - switch(options && options.type || "buffer") { - case "file": get_fs(); fs.writeFileSync(options.filename, (o)); return o; - case "binary": return typeof o == "string" ? o : a2s(o); - case "base64": return Base64.encode(typeof o == "string" ? o : a2s(o)); - case "buffer": if(has_buf) return Buffer.isBuffer(o) ? o : Buffer_from(o); - /* falls through */ - case "array": return typeof o == "string" ? s2a(o) : o; - } - return o; -} -/* node < 8.1 zlib does not expose bytesRead, so default to pure JS */ -var _zlib; -function use_zlib(zlib) { try { - var InflateRaw = zlib.InflateRaw; - var InflRaw = new InflateRaw(); - InflRaw._processChunk(new Uint8Array([3, 0]), InflRaw._finishFlushFlag); - if(InflRaw.bytesRead) _zlib = zlib; - else throw new Error("zlib does not expose bytesRead"); -} catch(e) {console.error("cannot use native zlib: " + (e.message || e)); } } - -function _inflateRawSync(payload, usz) { - if(!_zlib) return _inflate(payload, usz); - var InflateRaw = _zlib.InflateRaw; - var InflRaw = new InflateRaw(); - var out = InflRaw._processChunk(payload.slice(payload.l), InflRaw._finishFlushFlag); - payload.l += InflRaw.bytesRead; - return out; -} - -function _deflateRawSync(payload) { - return _zlib ? _zlib.deflateRawSync(payload) : _deflate(payload); -} -var CLEN_ORDER = [ 16, 17, 18, 0, 8, 7, 9, 6, 10, 5, 11, 4, 12, 3, 13, 2, 14, 1, 15 ]; - -/* LEN_ID = [ 257, 258, 259, 260, 261, 262, 263, 264, 265, 266, 267, 268, 269, 270, 271, 272, 273, 274, 275, 276, 277, 278, 279, 280, 281, 282, 283, 284, 285 ]; */ -var LEN_LN = [ 3, 4, 5, 6, 7, 8, 9, 10, 11, 13 , 15, 17, 19, 23, 27, 31, 35, 43, 51, 59, 67, 83, 99, 115, 131, 163, 195, 227, 258 ]; - -/* DST_ID = [ 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20, 21, 22, 23, 24, 25, 26, 27, 28, 29 ]; */ -var DST_LN = [ 1, 2, 3, 4, 5, 7, 9, 13, 17, 25, 33, 49, 65, 97, 129, 193, 257, 385, 513, 769, 1025, 1537, 2049, 3073, 4097, 6145, 8193, 12289, 16385, 24577 ]; - -function bit_swap_8(n) { var t = (((((n<<1)|(n<<11)) & 0x22110) | (((n<<5)|(n<<15)) & 0x88440))); return ((t>>16) | (t>>8) |t)&0xFF; } - -var use_typed_arrays = typeof Uint8Array !== 'undefined'; - -var bitswap8 = use_typed_arrays ? new Uint8Array(1<<8) : []; -for(var q = 0; q < (1<<8); ++q) bitswap8[q] = bit_swap_8(q); - -function bit_swap_n(n, b) { - var rev = bitswap8[n & 0xFF]; - if(b <= 8) return rev >>> (8-b); - rev = (rev << 8) | bitswap8[(n>>8)&0xFF]; - if(b <= 16) return rev >>> (16-b); - rev = (rev << 8) | bitswap8[(n>>16)&0xFF]; - return rev >>> (24-b); -} - -/* helpers for unaligned bit reads */ -function read_bits_2(buf, bl) { var w = (bl&7), h = (bl>>>3); return ((buf[h]|(w <= 6 ? 0 : buf[h+1]<<8))>>>w)& 0x03; } -function read_bits_3(buf, bl) { var w = (bl&7), h = (bl>>>3); return ((buf[h]|(w <= 5 ? 0 : buf[h+1]<<8))>>>w)& 0x07; } -function read_bits_4(buf, bl) { var w = (bl&7), h = (bl>>>3); return ((buf[h]|(w <= 4 ? 0 : buf[h+1]<<8))>>>w)& 0x0F; } -function read_bits_5(buf, bl) { var w = (bl&7), h = (bl>>>3); return ((buf[h]|(w <= 3 ? 0 : buf[h+1]<<8))>>>w)& 0x1F; } -function read_bits_7(buf, bl) { var w = (bl&7), h = (bl>>>3); return ((buf[h]|(w <= 1 ? 0 : buf[h+1]<<8))>>>w)& 0x7F; } - -/* works up to n = 3 * 8 + 1 = 25 */ -function read_bits_n(buf, bl, n) { - var w = (bl&7), h = (bl>>>3), f = ((1<>> w; - if(n < 8 - w) return v & f; - v |= buf[h+1]<<(8-w); - if(n < 16 - w) return v & f; - v |= buf[h+2]<<(16-w); - if(n < 24 - w) return v & f; - v |= buf[h+3]<<(24-w); - return v & f; -} - -/* helpers for unaligned bit writes */ -function write_bits_3(buf, bl, v) { var w = bl & 7, h = bl >>> 3; - if(w <= 5) buf[h] |= (v & 7) << w; - else { - buf[h] |= (v << w) & 0xFF; - buf[h+1] = (v&7) >> (8-w); - } - return bl + 3; -} - -function write_bits_1(buf, bl, v) { - var w = bl & 7, h = bl >>> 3; - v = (v&1) << w; - buf[h] |= v; - return bl + 1; -} -function write_bits_8(buf, bl, v) { - var w = bl & 7, h = bl >>> 3; - v <<= w; - buf[h] |= v & 0xFF; v >>>= 8; - buf[h+1] = v; - return bl + 8; -} -function write_bits_16(buf, bl, v) { - var w = bl & 7, h = bl >>> 3; - v <<= w; - buf[h] |= v & 0xFF; v >>>= 8; - buf[h+1] = v & 0xFF; - buf[h+2] = v >>> 8; - return bl + 16; -} - -/* until ArrayBuffer#realloc is a thing, fake a realloc */ -function realloc(b, sz) { - var L = b.length, M = 2*L > sz ? 2*L : sz + 5, i = 0; - if(L >= sz) return b; - if(has_buf) { - var o = new_unsafe_buf(M); - // $FlowIgnore - if(b.copy) b.copy(o); - else for(; i < b.length; ++i) o[i] = b[i]; - return o; - } else if(use_typed_arrays) { - var a = new Uint8Array(M); - if(a.set) a.set(b); - else for(; i < L; ++i) a[i] = b[i]; - return a; - } - b.length = M; - return b; -} - -/* zero-filled arrays for older browsers */ -function zero_fill_array(n) { - var o = new Array(n); - for(var i = 0; i < n; ++i) o[i] = 0; - return o; -} - -/* build tree (used for literals and lengths) */ -function build_tree(clens, cmap, MAX) { - var maxlen = 1, w = 0, i = 0, j = 0, ccode = 0, L = clens.length; - - var bl_count = use_typed_arrays ? new Uint16Array(32) : zero_fill_array(32); - for(i = 0; i < 32; ++i) bl_count[i] = 0; - - for(i = L; i < MAX; ++i) clens[i] = 0; - L = clens.length; - - var ctree = use_typed_arrays ? new Uint16Array(L) : zero_fill_array(L); // [] - - /* build code tree */ - for(i = 0; i < L; ++i) { - bl_count[(w = clens[i])]++; - if(maxlen < w) maxlen = w; - ctree[i] = 0; - } - bl_count[0] = 0; - for(i = 1; i <= maxlen; ++i) bl_count[i+16] = (ccode = (ccode + bl_count[i-1])<<1); - for(i = 0; i < L; ++i) { - ccode = clens[i]; - if(ccode != 0) ctree[i] = bl_count[ccode+16]++; - } - - /* cmap[maxlen + 4 bits] = (off&15) + (lit<<4) reverse mapping */ - var cleni = 0; - for(i = 0; i < L; ++i) { - cleni = clens[i]; - if(cleni != 0) { - ccode = bit_swap_n(ctree[i], maxlen)>>(maxlen-cleni); - for(j = (1<<(maxlen + 4 - cleni)) - 1; j>=0; --j) - cmap[ccode|(j< 0) out[out.l++] = data[boff++]; - } - return out.l; - } - - /* Fixed Huffman */ - function write_huff_fixed(data, out) { - var bl = 0; - var boff = 0; - var addrs = use_typed_arrays ? new Uint16Array(0x8000) : []; - while(boff < data.length) { - var L = /* data.length - boff; */ Math.min(0xFFFF, data.length - boff); - - /* write a stored block for short data */ - if(L < 10) { - bl = write_bits_3(out, bl, +!!(boff + L == data.length)); // jshint ignore:line - if(bl & 7) bl += 8 - (bl & 7); - out.l = (bl / 8) | 0; - out.write_shift(2, L); - out.write_shift(2, (~L) & 0xFFFF); - while(L-- > 0) out[out.l++] = data[boff++]; - bl = out.l * 8; - continue; - } - - bl = write_bits_3(out, bl, +!!(boff + L == data.length) + 2); // jshint ignore:line - var hash = 0; - while(L-- > 0) { - var d = data[boff]; - hash = ((hash << 5) ^ d) & 0x7FFF; - - var match = -1, mlen = 0; - - if((match = addrs[hash])) { - match |= boff & ~0x7FFF; - if(match > boff) match -= 0x8000; - if(match < boff) while(data[match + mlen] == data[boff + mlen] && mlen < 250) ++mlen; - } - - if(mlen > 2) { - /* Copy Token */ - d = LEN_LN_RE[mlen]; - if(d <= 22) bl = write_bits_8(out, bl, bitswap8[d+1]>>1) - 1; - else { - write_bits_8(out, bl, 3); - bl += 5; - write_bits_8(out, bl, bitswap8[d-23]>>5); - bl += 3; - } - var len_eb = (d < 8) ? 0 : ((d - 4)>>2); - if(len_eb > 0) { - write_bits_16(out, bl, mlen - LEN_LN[d]); - bl += len_eb; - } - - d = DST_LN_RE[boff - match]; - bl = write_bits_8(out, bl, bitswap8[d]>>3); - bl -= 3; - - var dst_eb = d < 4 ? 0 : (d-2)>>1; - if(dst_eb > 0) { - write_bits_16(out, bl, boff - match - DST_LN[d]); - bl += dst_eb; - } - for(var q = 0; q < mlen; ++q) { - addrs[hash] = boff & 0x7FFF; - hash = ((hash << 5) ^ data[boff]) & 0x7FFF; - ++boff; - } - L-= mlen - 1; - } else { - /* Literal Token */ - if(d <= 143) d = d + 48; - else bl = write_bits_1(out, bl, 1); - bl = write_bits_8(out, bl, bitswap8[d]); - addrs[hash] = boff & 0x7FFF; - ++boff; - } - } - - bl = write_bits_8(out, bl, 0) - 1; - } - out.l = ((bl + 7)/8)|0; - return out.l; - } - return function _deflateRaw(data, out) { - if(data.length < 8) return write_stored(data, out); - return write_huff_fixed(data, out); - }; -})(); - -function _deflate(data) { - var buf = new_buf(50+Math.floor(data.length*1.1)); - var off = _deflateRaw(data, buf); - return buf.slice(0, off); -} -/* modified inflate function also moves original read head */ - -var dyn_lmap = use_typed_arrays ? new Uint16Array(32768) : zero_fill_array(32768); -var dyn_dmap = use_typed_arrays ? new Uint16Array(32768) : zero_fill_array(32768); -var dyn_cmap = use_typed_arrays ? new Uint16Array(128) : zero_fill_array(128); -var dyn_len_1 = 1, dyn_len_2 = 1; - -/* 5.5.3 Expanding Huffman Codes */ -function dyn(data, boff) { - /* nomenclature from RFC1951 refers to bit values; these are offset by the implicit constant */ - var _HLIT = read_bits_5(data, boff) + 257; boff += 5; - var _HDIST = read_bits_5(data, boff) + 1; boff += 5; - var _HCLEN = read_bits_4(data, boff) + 4; boff += 4; - var w = 0; - - /* grab and store code lengths */ - var clens = use_typed_arrays ? new Uint8Array(19) : zero_fill_array(19); - var ctree = [ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]; - var maxlen = 1; - var bl_count = use_typed_arrays ? new Uint8Array(8) : zero_fill_array(8); - var next_code = use_typed_arrays ? new Uint8Array(8) : zero_fill_array(8); - var L = clens.length; /* 19 */ - for(var i = 0; i < _HCLEN; ++i) { - clens[CLEN_ORDER[i]] = w = read_bits_3(data, boff); - if(maxlen < w) maxlen = w; - bl_count[w]++; - boff += 3; - } - - /* build code tree */ - var ccode = 0; - bl_count[0] = 0; - for(i = 1; i <= maxlen; ++i) next_code[i] = ccode = (ccode + bl_count[i-1])<<1; - for(i = 0; i < L; ++i) if((ccode = clens[i]) != 0) ctree[i] = next_code[ccode]++; - /* cmap[7 bits from stream] = (off&7) + (lit<<3) */ - var cleni = 0; - for(i = 0; i < L; ++i) { - cleni = clens[i]; - if(cleni != 0) { - ccode = bitswap8[ctree[i]]>>(8-cleni); - for(var j = (1<<(7-cleni))-1; j>=0; --j) dyn_cmap[ccode|(j<>>= 3)) { - case 16: - w = 3 + read_bits_2(data, boff); boff += 2; - ccode = hcodes[hcodes.length - 1]; - while(w-- > 0) hcodes.push(ccode); - break; - case 17: - w = 3 + read_bits_3(data, boff); boff += 3; - while(w-- > 0) hcodes.push(0); - break; - case 18: - w = 11 + read_bits_7(data, boff); boff += 7; - while(w -- > 0) hcodes.push(0); - break; - default: - hcodes.push(ccode); - if(maxlen < ccode) maxlen = ccode; - break; - } - } - - /* build literal / length trees */ - var h1 = hcodes.slice(0, _HLIT), h2 = hcodes.slice(_HLIT); - for(i = _HLIT; i < 286; ++i) h1[i] = 0; - for(i = _HDIST; i < 30; ++i) h2[i] = 0; - dyn_len_1 = build_tree(h1, dyn_lmap, 286); - dyn_len_2 = build_tree(h2, dyn_dmap, 30); - return boff; -} - -/* return [ data, bytesRead ] */ -function inflate(data, usz) { - /* shortcircuit for empty buffer [0x03, 0x00] */ - if(data[0] == 3 && !(data[1] & 0x3)) { return [new_raw_buf(usz), 2]; } - - /* bit offset */ - var boff = 0; - - /* header includes final bit and type bits */ - var header = 0; - - var outbuf = new_unsafe_buf(usz ? usz : (1<<18)); - var woff = 0; - var OL = outbuf.length>>>0; - var max_len_1 = 0, max_len_2 = 0; - - while((header&1) == 0) { - header = read_bits_3(data, boff); boff += 3; - if((header >>> 1) == 0) { - /* Stored block */ - if(boff & 7) boff += 8 - (boff&7); - /* 2 bytes sz, 2 bytes bit inverse */ - var sz = data[boff>>>3] | data[(boff>>>3)+1]<<8; - boff += 32; - /* push sz bytes */ - if(sz > 0) { - if(!usz && OL < woff + sz) { outbuf = realloc(outbuf, woff + sz); OL = outbuf.length; } - while(sz-- > 0) { outbuf[woff++] = data[boff>>>3]; boff += 8; } - } - continue; - } else if((header >> 1) == 1) { - /* Fixed Huffman */ - max_len_1 = 9; max_len_2 = 5; - } else { - /* Dynamic Huffman */ - boff = dyn(data, boff); - max_len_1 = dyn_len_1; max_len_2 = dyn_len_2; - } - for(;;) { // while(true) is apparently out of vogue in modern JS circles - if(!usz && (OL < woff + 32767)) { outbuf = realloc(outbuf, woff + 32767); OL = outbuf.length; } - /* ingest code and move read head */ - var bits = read_bits_n(data, boff, max_len_1); - var code = (header>>>1) == 1 ? fix_lmap[bits] : dyn_lmap[bits]; - boff += code & 15; code >>>= 4; - /* 0-255 are literals, 256 is end of block token, 257+ are copy tokens */ - if(((code>>>8)&0xFF) === 0) outbuf[woff++] = code; - else if(code == 256) break; - else { - code -= 257; - var len_eb = (code < 8) ? 0 : ((code-4)>>2); if(len_eb > 5) len_eb = 0; - var tgt = woff + LEN_LN[code]; - /* length extra bits */ - if(len_eb > 0) { - tgt += read_bits_n(data, boff, len_eb); - boff += len_eb; - } - - /* dist code */ - bits = read_bits_n(data, boff, max_len_2); - code = (header>>>1) == 1 ? fix_dmap[bits] : dyn_dmap[bits]; - boff += code & 15; code >>>= 4; - var dst_eb = (code < 4 ? 0 : (code-2)>>1); - var dst = DST_LN[code]; - /* dist extra bits */ - if(dst_eb > 0) { - dst += read_bits_n(data, boff, dst_eb); - boff += dst_eb; - } - - /* in the common case, manual byte copy is faster than TA set / Buffer copy */ - if(!usz && OL < tgt) { outbuf = realloc(outbuf, tgt + 100); OL = outbuf.length; } - while(woff < tgt) { outbuf[woff] = outbuf[woff - dst]; ++woff; } - } - } - } - if(usz) return [outbuf, (boff+7)>>>3]; - return [outbuf.slice(0, woff), (boff+7)>>>3]; -} - -function _inflate(payload, usz) { - var data = payload.slice(payload.l||0); - var out = inflate(data, usz); - payload.l += out[1]; - return out[0]; -} - -function warn_or_throw(wrn, msg) { - if(wrn) { if(typeof console !== 'undefined') console.error(msg); } - else throw new Error(msg); -} - -function parse_zip(file, options) { - var blob = file; - prep_blob(blob, 0); - - var FileIndex = [], FullPaths = []; - var o = { - FileIndex: FileIndex, - FullPaths: FullPaths - }; - init_cfb(o, { root: options.root }); - - /* find end of central directory, start just after signature */ - var i = blob.length - 4; - while((blob[i] != 0x50 || blob[i+1] != 0x4b || blob[i+2] != 0x05 || blob[i+3] != 0x06) && i >= 0) --i; - blob.l = i + 4; - - /* parse end of central directory */ - blob.l += 4; - var fcnt = blob.read_shift(2); - blob.l += 6; - var start_cd = blob.read_shift(4); - - /* parse central directory */ - blob.l = start_cd; - - for(i = 0; i < fcnt; ++i) { - /* trust local file header instead of CD entry */ - blob.l += 20; - var csz = blob.read_shift(4); - var usz = blob.read_shift(4); - var namelen = blob.read_shift(2); - var efsz = blob.read_shift(2); - var fcsz = blob.read_shift(2); - blob.l += 8; - var offset = blob.read_shift(4); - var EF = parse_extra_field(blob.slice(blob.l+namelen, blob.l+namelen+efsz)); - blob.l += namelen + efsz + fcsz; - - var L = blob.l; - blob.l = offset + 4; - parse_local_file(blob, csz, usz, o, EF); - blob.l = L; - } - return o; -} - - -/* head starts just after local file header signature */ -function parse_local_file(blob, csz, usz, o, EF) { - /* [local file header] */ - blob.l += 2; - var flags = blob.read_shift(2); - var meth = blob.read_shift(2); - var date = parse_dos_date(blob); - - if(flags & 0x2041) throw new Error("Unsupported ZIP encryption"); - var crc32 = blob.read_shift(4); - var _csz = blob.read_shift(4); - var _usz = blob.read_shift(4); - - var namelen = blob.read_shift(2); - var efsz = blob.read_shift(2); - - // TODO: flags & (1<<11) // UTF8 - var name = ""; for(var i = 0; i < namelen; ++i) name += String.fromCharCode(blob[blob.l++]); - if(efsz) { - var ef = parse_extra_field(blob.slice(blob.l, blob.l + efsz)); - if((ef[0x5455]||{}).mt) date = ef[0x5455].mt; - if(((EF||{})[0x5455]||{}).mt) date = EF[0x5455].mt; - } - blob.l += efsz; - - /* [encryption header] */ - - /* [file data] */ - var data = blob.slice(blob.l, blob.l + _csz); - switch(meth) { - case 8: data = _inflateRawSync(blob, _usz); break; - case 0: break; // TODO: scan for magic number - default: throw new Error("Unsupported ZIP Compression method " + meth); - } - - /* [data descriptor] */ - var wrn = false; - if(flags & 8) { - crc32 = blob.read_shift(4); - if(crc32 == 0x08074b50) { crc32 = blob.read_shift(4); wrn = true; } - _csz = blob.read_shift(4); - _usz = blob.read_shift(4); - } - - if(_csz != csz) warn_or_throw(wrn, "Bad compressed size: " + csz + " != " + _csz); - if(_usz != usz) warn_or_throw(wrn, "Bad uncompressed size: " + usz + " != " + _usz); - //var _crc32 = CRC32.buf(data, 0); - //if((crc32>>0) != (_crc32>>0)) warn_or_throw(wrn, "Bad CRC32 checksum: " + crc32 + " != " + _crc32); - cfb_add(o, name, data, {unsafe: true, mt: date}); -} -function write_zip(cfb, options) { - var _opts = options || {}; - var out = [], cdirs = []; - var o = new_buf(1); - var method = (_opts.compression ? 8 : 0), flags = 0; - var desc = false; - if(desc) flags |= 8; - var i = 0, j = 0; - - var start_cd = 0, fcnt = 0; - var root = cfb.FullPaths[0], fp = root, fi = cfb.FileIndex[0]; - var crcs = []; - var sz_cd = 0; - - for(i = 1; i < cfb.FullPaths.length; ++i) { - fp = cfb.FullPaths[i].slice(root.length); fi = cfb.FileIndex[i]; - if(!fi.size || !fi.content || fp == "\u0001Sh33tJ5") continue; - var start = start_cd; - - /* TODO: CP437 filename */ - var namebuf = new_buf(fp.length); - for(j = 0; j < fp.length; ++j) namebuf.write_shift(1, fp.charCodeAt(j) & 0x7F); - namebuf = namebuf.slice(0, namebuf.l); - crcs[fcnt] = CRC32.buf(fi.content, 0); - - var outbuf = fi.content; - if(method == 8) outbuf = _deflateRawSync(outbuf); - - /* local file header */ - o = new_buf(30); - o.write_shift(4, 0x04034b50); - o.write_shift(2, 20); - o.write_shift(2, flags); - o.write_shift(2, method); - /* TODO: last mod file time/date */ - if(fi.mt) write_dos_date(o, fi.mt); - else o.write_shift(4, 0); - o.write_shift(-4, (flags & 8) ? 0 : crcs[fcnt]); - o.write_shift(4, (flags & 8) ? 0 : outbuf.length); - o.write_shift(4, (flags & 8) ? 0 : fi.content.length); - o.write_shift(2, namebuf.length); - o.write_shift(2, 0); - - start_cd += o.length; - out.push(o); - start_cd += namebuf.length; - out.push(namebuf); - - /* TODO: extra fields? */ - - /* TODO: encryption header ? */ - - start_cd += outbuf.length; - out.push(outbuf); - - /* data descriptor */ - if(flags & 8) { - o = new_buf(12); - o.write_shift(-4, crcs[fcnt]); - o.write_shift(4, outbuf.length); - o.write_shift(4, fi.content.length); - start_cd += o.l; - out.push(o); - } - - /* central directory */ - o = new_buf(46); - o.write_shift(4, 0x02014b50); - o.write_shift(2, 0); - o.write_shift(2, 20); - o.write_shift(2, flags); - o.write_shift(2, method); - o.write_shift(4, 0); /* TODO: last mod file time/date */ - o.write_shift(-4, crcs[fcnt]); - - o.write_shift(4, outbuf.length); - o.write_shift(4, fi.content.length); - o.write_shift(2, namebuf.length); - o.write_shift(2, 0); - o.write_shift(2, 0); - o.write_shift(2, 0); - o.write_shift(2, 0); - o.write_shift(4, 0); - o.write_shift(4, start); - - sz_cd += o.l; - cdirs.push(o); - sz_cd += namebuf.length; - cdirs.push(namebuf); - ++fcnt; - } - - /* end of central directory */ - o = new_buf(22); - o.write_shift(4, 0x06054b50); - o.write_shift(2, 0); - o.write_shift(2, 0); - o.write_shift(2, fcnt); - o.write_shift(2, fcnt); - o.write_shift(4, sz_cd); - o.write_shift(4, start_cd); - o.write_shift(2, 0); - - return bconcat(([bconcat((out)), bconcat(cdirs), o])); -} -var ContentTypeMap = ({ - "htm": "text/html", - "xml": "text/xml", - - "gif": "image/gif", - "jpg": "image/jpeg", - "png": "image/png", - - "mso": "application/x-mso", - "thmx": "application/vnd.ms-officetheme", - "sh33tj5": "application/octet-stream" -}); - -function get_content_type(fi, fp) { - if(fi.ctype) return fi.ctype; - - var ext = fi.name || "", m = ext.match(/\.([^\.]+)$/); - if(m && ContentTypeMap[m[1]]) return ContentTypeMap[m[1]]; - - if(fp) { - m = (ext = fp).match(/[\.\\]([^\.\\])+$/); - if(m && ContentTypeMap[m[1]]) return ContentTypeMap[m[1]]; - } - - return "application/octet-stream"; -} - -/* 76 character chunks TODO: intertwine encoding */ -function write_base64_76(bstr) { - var data = Base64.encode(bstr); - var o = []; - for(var i = 0; i < data.length; i+= 76) o.push(data.slice(i, i+76)); - return o.join("\r\n") + "\r\n"; -} - -/* -Rules for QP: - - escape =## applies for all non-display characters and literal "=" - - space or tab at end of line must be encoded - - \r\n newlines can be preserved, but bare \r and \n must be escaped - - lines must not exceed 76 characters, use soft breaks =\r\n - -TODO: Some files from word appear to write line extensions with bare equals: - -``` - 0) { - root = root.slice(0, root.length - 1); - root = root.slice(0, root.lastIndexOf("/") + 1); - if(row.slice(0,root.length) == root) break; - } - } - - var mboundary = (data[1] || "").match(/boundary="(.*?)"/); - if(!mboundary) throw new Error("MAD cannot find boundary"); - var boundary = "--" + (mboundary[1] || ""); - - var FileIndex = [], FullPaths = []; - var o = { - FileIndex: FileIndex, - FullPaths: FullPaths - }; - init_cfb(o); - var start_di, fcnt = 0; - for(di = 0; di < data.length; ++di) { - var line = data[di]; - if(line !== boundary && line !== boundary + "--") continue; - if(fcnt++) parse_mime(o, data.slice(start_di, di), root); - start_di = di; - } - return o; -} - -function write_mad(cfb, options) { - var opts = options || {}; - var boundary = opts.boundary || "SheetJS"; - boundary = '------=' + boundary; - - var out = [ - 'MIME-Version: 1.0', - 'Content-Type: multipart/related; boundary="' + boundary.slice(2) + '"', - '', - '', - '' - ]; - - var root = cfb.FullPaths[0], fp = root, fi = cfb.FileIndex[0]; - for(var i = 1; i < cfb.FullPaths.length; ++i) { - fp = cfb.FullPaths[i].slice(root.length); - fi = cfb.FileIndex[i]; - if(!fi.size || !fi.content || fp == "\u0001Sh33tJ5") continue; - - /* Normalize filename */ - fp = fp.replace(/[\x00-\x08\x0B\x0C\x0E-\x1F\x7E-\xFF]/g, function(c) { - return "_x" + c.charCodeAt(0).toString(16) + "_"; - }).replace(/[\u0080-\uFFFF]/g, function(u) { - return "_u" + u.charCodeAt(0).toString(16) + "_"; - }); - - /* Extract content as binary string */ - var ca = fi.content; - // $FlowIgnore - var cstr = has_buf && Buffer.isBuffer(ca) ? ca.toString("binary") : a2s(ca); - - /* 4/5 of first 1024 chars ascii -> quoted printable, else base64 */ - var dispcnt = 0, L = Math.min(1024, cstr.length), cc = 0; - for(var csl = 0; csl <= L; ++csl) if((cc=cstr.charCodeAt(csl)) >= 0x20 && cc < 0x80) ++dispcnt; - var qp = dispcnt >= L * 4 / 5; - - out.push(boundary); - out.push('Content-Location: ' + (opts.root || 'file:///C:/SheetJS/') + fp); - out.push('Content-Transfer-Encoding: ' + (qp ? 'quoted-printable' : 'base64')); - out.push('Content-Type: ' + get_content_type(fi, fp)); - out.push(''); - - out.push(qp ? write_quoted_printable(cstr) : write_base64_76(cstr)); - } - out.push(boundary + '--\r\n'); - return out.join("\r\n"); -} -function cfb_new(opts) { - var o = ({}); - init_cfb(o, opts); - return o; -} - -function cfb_add(cfb, name, content, opts) { - var unsafe = opts && opts.unsafe; - if(!unsafe) init_cfb(cfb); - var file = !unsafe && CFB.find(cfb, name); - if(!file) { - var fpath = cfb.FullPaths[0]; - if(name.slice(0, fpath.length) == fpath) fpath = name; - else { - if(fpath.slice(-1) != "/") fpath += "/"; - fpath = (fpath + name).replace("//","/"); - } - file = ({name: filename(name), type: 2}); - cfb.FileIndex.push(file); - cfb.FullPaths.push(fpath); - if(!unsafe) CFB.utils.cfb_gc(cfb); - } -file.content = (content); - file.size = content ? content.length : 0; - if(opts) { - if(opts.CLSID) file.clsid = opts.CLSID; - if(opts.mt) file.mt = opts.mt; - if(opts.ct) file.ct = opts.ct; - } - return file; -} - -function cfb_del(cfb, name) { - init_cfb(cfb); - var file = CFB.find(cfb, name); - if(file) for(var j = 0; j < cfb.FileIndex.length; ++j) if(cfb.FileIndex[j] == file) { - cfb.FileIndex.splice(j, 1); - cfb.FullPaths.splice(j, 1); - return true; - } - return false; -} - -function cfb_mov(cfb, old_name, new_name) { - init_cfb(cfb); - var file = CFB.find(cfb, old_name); - if(file) for(var j = 0; j < cfb.FileIndex.length; ++j) if(cfb.FileIndex[j] == file) { - cfb.FileIndex[j].name = filename(new_name); - cfb.FullPaths[j] = new_name; - return true; - } - return false; -} - -function cfb_gc(cfb) { rebuild_cfb(cfb, true); } - -exports.find = find; -exports.read = read; -exports.parse = parse; -exports.write = write; -exports.writeFile = write_file; -exports.utils = { - cfb_new: cfb_new, - cfb_add: cfb_add, - cfb_del: cfb_del, - cfb_mov: cfb_mov, - cfb_gc: cfb_gc, - ReadShift: ReadShift, - CheckField: CheckField, - prep_blob: prep_blob, - bconcat: bconcat, - use_zlib: use_zlib, - _deflateRaw: _deflate, - _inflateRaw: _inflate, - consts: consts -}; - -return exports; -})(); - -if(typeof require !== 'undefined' && typeof module !== 'undefined' && typeof DO_NOT_EXPORT_CFB === 'undefined') { module.exports = CFB; } -var _fs; -if(typeof require !== 'undefined') try { _fs = require('fs'); } catch(e) {} - -/* normalize data for blob ctor */ -function blobify(data) { - if(typeof data === "string") return s2ab(data); - if(Array.isArray(data)) return a2u(data); - return data; -} -/* write or download file */ -function write_dl(fname, payload, enc) { - /*global IE_SaveFile, Blob, navigator, saveAs, document, File, chrome */ - if(typeof _fs !== 'undefined' && _fs.writeFileSync) return enc ? _fs.writeFileSync(fname, payload, enc) : _fs.writeFileSync(fname, payload); - if(typeof Deno !== 'undefined') { - /* in this spot, it's safe to assume typed arrays and TextEncoder/TextDecoder exist */ - if(enc) switch(enc) { - case "utf8": payload = new TextEncoder(enc).encode(payload); break; - case "binary": payload = s2ab(payload); break; - /* TODO: binary equivalent */ - default: throw new Error("Unsupported encoding " + enc); - } - return Deno.writeFileSync(fname, payload); - } - var data = (enc == "utf8") ? utf8write(payload) : payload; -if(typeof IE_SaveFile !== 'undefined') return IE_SaveFile(data, fname); - if(typeof Blob !== 'undefined') { - var blob = new Blob([blobify(data)], {type:"application/octet-stream"}); -if(typeof navigator !== 'undefined' && navigator.msSaveBlob) return navigator.msSaveBlob(blob, fname); -if(typeof saveAs !== 'undefined') return saveAs(blob, fname); - if(typeof URL !== 'undefined' && typeof document !== 'undefined' && document.createElement && URL.createObjectURL) { - var url = URL.createObjectURL(blob); -if(typeof chrome === 'object' && typeof (chrome.downloads||{}).download == "function") { - if(URL.revokeObjectURL && typeof setTimeout !== 'undefined') setTimeout(function() { URL.revokeObjectURL(url); }, 60000); - return chrome.downloads.download({ url: url, filename: fname, saveAs: true}); - } - var a = document.createElement("a"); - if(a.download != null) { -a.download = fname; a.href = url; document.body.appendChild(a); a.click(); -document.body.removeChild(a); - if(URL.revokeObjectURL && typeof setTimeout !== 'undefined') setTimeout(function() { URL.revokeObjectURL(url); }, 60000); - return url; - } - } - } - // $FlowIgnore - if(typeof $ !== 'undefined' && typeof File !== 'undefined' && typeof Folder !== 'undefined') try { // extendscript - // $FlowIgnore - var out = File(fname); out.open("w"); out.encoding = "binary"; - if(Array.isArray(payload)) payload = a2s(payload); - out.write(payload); out.close(); return payload; - } catch(e) { if(!e.message || !e.message.match(/onstruct/)) throw e; } - throw new Error("cannot save file " + fname); -} - -/* read binary data from file */ -function read_binary(path) { - if(typeof _fs !== 'undefined') return _fs.readFileSync(path); - if(typeof Deno !== 'undefined') return Deno.readFileSync(path); - // $FlowIgnore - if(typeof $ !== 'undefined' && typeof File !== 'undefined' && typeof Folder !== 'undefined') try { // extendscript - // $FlowIgnore - var infile = File(path); infile.open("r"); infile.encoding = "binary"; - var data = infile.read(); infile.close(); - return data; - } catch(e) { if(!e.message || !e.message.match(/onstruct/)) throw e; } - throw new Error("Cannot access file " + path); -} -function keys(o) { - var ks = Object.keys(o), o2 = []; - for(var i = 0; i < ks.length; ++i) if(Object.prototype.hasOwnProperty.call(o, ks[i])) o2.push(ks[i]); - return o2; -} - -function evert_key(obj, key) { - var o = ([]), K = keys(obj); - for(var i = 0; i !== K.length; ++i) if(o[obj[K[i]][key]] == null) o[obj[K[i]][key]] = K[i]; - return o; -} - -function evert(obj) { - var o = ([]), K = keys(obj); - for(var i = 0; i !== K.length; ++i) o[obj[K[i]]] = K[i]; - return o; -} - -function evert_num(obj) { - var o = ([]), K = keys(obj); - for(var i = 0; i !== K.length; ++i) o[obj[K[i]]] = parseInt(K[i],10); - return o; -} - -function evert_arr(obj) { - var o = ([]), K = keys(obj); - for(var i = 0; i !== K.length; ++i) { - if(o[obj[K[i]]] == null) o[obj[K[i]]] = []; - o[obj[K[i]]].push(K[i]); - } - return o; -} - -var basedate = new Date(1899, 11, 30, 0, 0, 0); // 2209161600000 -function datenum(v, date1904) { - var epoch = v.getTime(); - if(date1904) epoch -= 1462*24*60*60*1000; - var dnthresh = basedate.getTime() + (v.getTimezoneOffset() - basedate.getTimezoneOffset()) * 60000; - return (epoch - dnthresh) / (24 * 60 * 60 * 1000); -} -var refdate = new Date(); -var dnthresh = basedate.getTime() + (refdate.getTimezoneOffset() - basedate.getTimezoneOffset()) * 60000; -var refoffset = refdate.getTimezoneOffset(); -function numdate(v) { - var out = new Date(); - out.setTime(v * 24 * 60 * 60 * 1000 + dnthresh); - if (out.getTimezoneOffset() !== refoffset) { - out.setTime(out.getTime() + (out.getTimezoneOffset() - refoffset) * 60000); - } - return out; -} - -/* ISO 8601 Duration */ -function parse_isodur(s) { - var sec = 0, mt = 0, time = false; - var m = s.match(/P([0-9\.]+Y)?([0-9\.]+M)?([0-9\.]+D)?T([0-9\.]+H)?([0-9\.]+M)?([0-9\.]+S)?/); - if(!m) throw new Error("|" + s + "| is not an ISO8601 Duration"); - for(var i = 1; i != m.length; ++i) { - if(!m[i]) continue; - mt = 1; - if(i > 3) time = true; - switch(m[i].slice(m[i].length-1)) { - case 'Y': - throw new Error("Unsupported ISO Duration Field: " + m[i].slice(m[i].length-1)); - case 'D': mt *= 24; - /* falls through */ - case 'H': mt *= 60; - /* falls through */ - case 'M': - if(!time) throw new Error("Unsupported ISO Duration Field: M"); - else mt *= 60; - /* falls through */ - case 'S': break; - } - sec += mt * parseInt(m[i], 10); - } - return sec; -} - -var good_pd_date = new Date('2017-02-19T19:06:09.000Z'); -if(isNaN(good_pd_date.getFullYear())) good_pd_date = new Date('2/19/17'); -var good_pd = good_pd_date.getFullYear() == 2017; -/* parses a date as a local date */ -function parseDate(str, fixdate) { - var d = new Date(str); - if(good_pd) { -if(fixdate > 0) d.setTime(d.getTime() + d.getTimezoneOffset() * 60 * 1000); - else if(fixdate < 0) d.setTime(d.getTime() - d.getTimezoneOffset() * 60 * 1000); - return d; - } - if(str instanceof Date) return str; - if(good_pd_date.getFullYear() == 1917 && !isNaN(d.getFullYear())) { - var s = d.getFullYear(); - if(str.indexOf("" + s) > -1) return d; - d.setFullYear(d.getFullYear() + 100); return d; - } - var n = str.match(/\d+/g)||["2017","2","19","0","0","0"]; - var out = new Date(+n[0], +n[1] - 1, +n[2], (+n[3]||0), (+n[4]||0), (+n[5]||0)); - if(str.indexOf("Z") > -1) out = new Date(out.getTime() - out.getTimezoneOffset() * 60 * 1000); - return out; -} - -function cc2str(arr, debomit) { - if(has_buf && Buffer.isBuffer(arr)) { - if(debomit) { - if(arr[0] == 0xFF && arr[1] == 0xFE) return arr.slice(2).toString("utf16le"); - if(arr[1] == 0xFE && arr[2] == 0xFF) return utf16beread(arr.slice(2).toString("binary")); - } - return arr.toString("binary"); - } - /* TODO: investigate performance degradation of TextEncoder in Edge 13 */ - var o = []; - for(var i = 0; i != arr.length; ++i) o.push(String.fromCharCode(arr[i])); - return o.join(""); -} - -function dup(o) { - if(typeof JSON != 'undefined' && !Array.isArray(o)) return JSON.parse(JSON.stringify(o)); - if(typeof o != 'object' || o == null) return o; - if(o instanceof Date) return new Date(o.getTime()); - var out = {}; - for(var k in o) if(Object.prototype.hasOwnProperty.call(o, k)) out[k] = dup(o[k]); - return out; -} - -function fill(c,l) { var o = ""; while(o.length < l) o+=c; return o; } - -/* TODO: stress test */ -function fuzzynum(s) { - var v = Number(s); - if(isFinite(v)) return v; - if(!isNaN(v)) return NaN; - if(!/\d/.test(s)) return v; - var wt = 1; - var ss = s.replace(/([\d]),([\d])/g,"$1$2").replace(/[$]/g,"").replace(/[%]/g, function() { wt *= 100; return "";}); - if(!isNaN(v = Number(ss))) return v / wt; - ss = ss.replace(/[(](.*)[)]/,function($$, $1) { wt = -wt; return $1;}); - if(!isNaN(v = Number(ss))) return v / wt; - return v; -} -var lower_months = ['january', 'february', 'march', 'april', 'may', 'june', 'july', 'august', 'september', 'october', 'november', 'december']; -function fuzzydate(s) { - var o = new Date(s), n = new Date(NaN); - var y = o.getYear(), m = o.getMonth(), d = o.getDate(); - if(isNaN(d)) return n; - var lower = s.toLowerCase(); - if(lower.match(/jan|feb|mar|apr|may|jun|jul|aug|sep|oct|nov|dec/)) { - lower = lower.replace(/[^a-z]/g,"").replace(/([^a-z]|^)[ap]m?([^a-z]|$)/,""); - if(lower.length > 3 && lower_months.indexOf(lower) == -1) return n; - } else if(lower.match(/[a-z]/)) return n; - if(y < 0 || y > 8099) return n; - if((m > 0 || d > 1) && y != 101) return o; - if(s.match(/[^-0-9:,\/\\]/)) return n; - return o; -} - -var safe_split_regex = "abacaba".split(/(:?b)/i).length == 5; -function split_regex(str, re, def) { - if(safe_split_regex || typeof re == "string") return str.split(re); - var p = str.split(re), o = [p[0]]; - for(var i = 1; i < p.length; ++i) { o.push(def); o.push(p[i]); } - return o; -} -function getdatastr(data) { - if(!data) return null; - if(data.content && data.type) return cc2str(data.content, true); - if(data.data) return debom(data.data); - if(data.asNodeBuffer && has_buf) return debom(data.asNodeBuffer().toString('binary')); - if(data.asBinary) return debom(data.asBinary()); - if(data._data && data._data.getContent) return debom(cc2str(Array.prototype.slice.call(data._data.getContent(),0))); - return null; -} - -function getdatabin(data) { - if(!data) return null; - if(data.data) return char_codes(data.data); - if(data.asNodeBuffer && has_buf) return data.asNodeBuffer(); - if(data._data && data._data.getContent) { - var o = data._data.getContent(); - if(typeof o == "string") return char_codes(o); - return Array.prototype.slice.call(o); - } - if(data.content && data.type) return data.content; - return null; -} - -function getdata(data) { return (data && data.name.slice(-4) === ".bin") ? getdatabin(data) : getdatastr(data); } - -/* Part 2 Section 10.1.2 "Mapping Content Types" Names are case-insensitive */ -/* OASIS does not comment on filename case sensitivity */ -function safegetzipfile(zip, file) { - var k = zip.FullPaths || keys(zip.files); - var f = file.toLowerCase().replace(/[\/]/g, '\\'), g = f.replace(/\\/g,'\/'); - for(var i=0; i\/]+)\s*=\s*((?:")([^"]*)(?:")|(?:')([^']*)(?:')|([^'">\s]+))/g; -var tagregex=/<[\/\?]?[a-zA-Z0-9:_-]+(?:\s+[^"\s?>\/]+\s*=\s*(?:"[^"]*"|'[^']*'|[^'">\s=]+))*\s*[\/\?]?>/mg; - -if(!(XML_HEADER.match(tagregex))) tagregex = /<[^>]*>/g; -var nsregex=/<\w*:/, nsregex2 = /<(\/?)\w+:/; -function parsexmltag(tag, skip_root, skip_LC) { - var z = ({}); - var eq = 0, c = 0; - for(; eq !== tag.length; ++eq) if((c = tag.charCodeAt(eq)) === 32 || c === 10 || c === 13) break; - if(!skip_root) z[0] = tag.slice(0, eq); - if(eq === tag.length) return z; - var m = tag.match(attregexg), j=0, v="", i=0, q="", cc="", quot = 1; - if(m) for(i = 0; i != m.length; ++i) { - cc = m[i]; - for(c=0; c != cc.length; ++c) if(cc.charCodeAt(c) === 61) break; - q = cc.slice(0,c).trim(); - while(cc.charCodeAt(c+1) == 32) ++c; - quot = ((eq=cc.charCodeAt(c+1)) == 34 || eq == 39) ? 1 : 0; - v = cc.slice(c+1+quot, cc.length-quot); - for(j=0;j!=q.length;++j) if(q.charCodeAt(j) === 58) break; - if(j===q.length) { - if(q.indexOf("_") > 0) q = q.slice(0, q.indexOf("_")); // from ods - z[q] = v; - if(!skip_LC) z[q.toLowerCase()] = v; - } - else { - var k = (j===5 && q.slice(0,5)==="xmlns"?"xmlns":"")+q.slice(j+1); - if(z[k] && q.slice(j-3,j) == "ext") continue; // from ods - z[k] = v; - if(!skip_LC) z[k.toLowerCase()] = v; - } - } - return z; -} -function strip_ns(x) { return x.replace(nsregex2, "<$1"); } - -var encodings = { - '"': '"', - ''': "'", - '>': '>', - '<': '<', - '&': '&' -}; -var rencoding = evert(encodings); -//var rencstr = "&<>'\"".split(""); - -// TODO: CP remap (need to read file version to determine OS) -var unescapexml = (function() { - /* 22.4.2.4 bstr (Basic String) */ - var encregex = /&(?:quot|apos|gt|lt|amp|#x?([\da-fA-F]+));/ig, coderegex = /_x([\da-fA-F]{4})_/ig; - return function unescapexml(text) { - var s = text + '', i = s.indexOf("-1?16:10))||$$; }).replace(coderegex,function(m,c) {return String.fromCharCode(parseInt(c,16));}); - var j = s.indexOf("]]>"); - return unescapexml(s.slice(0, i)) + s.slice(i+9,j) + unescapexml(s.slice(j+3)); - }; -})(); - -var decregex=/[&<>'"]/g, charegex = /[\u0000-\u0008\u000b-\u001f]/g; -function escapexml(text){ - var s = text + ''; - return s.replace(decregex, function(y) { return rencoding[y]; }).replace(charegex,function(s) { return "_x" + ("000"+s.charCodeAt(0).toString(16)).slice(-4) + "_";}); -} -function escapexmltag(text){ return escapexml(text).replace(/ /g,"_x0020_"); } - -var htmlcharegex = /[\u0000-\u001f]/g; -function escapehtml(text){ - var s = text + ''; - return s.replace(decregex, function(y) { return rencoding[y]; }).replace(/\n/g, "
").replace(htmlcharegex,function(s) { return "&#x" + ("000"+s.charCodeAt(0).toString(16)).slice(-4) + ";"; }); -} - -function escapexlml(text){ - var s = text + ''; - return s.replace(decregex, function(y) { return rencoding[y]; }).replace(htmlcharegex,function(s) { return "&#x" + (s.charCodeAt(0).toString(16)).toUpperCase() + ";"; }); -} - -/* TODO: handle codepages */ -var xlml_fixstr = (function() { - var entregex = /&#(\d+);/g; - function entrepl($$,$1) { return String.fromCharCode(parseInt($1,10)); } - return function xlml_fixstr(str) { return str.replace(entregex,entrepl); }; -})(); -var xlml_unfixstr = (function() { - return function xlml_unfixstr(str) { return str.replace(/(\r\n|[\r\n])/g,"\ "); }; -})(); - -function parsexmlbool(value) { - switch(value) { - case 1: case true: case '1': case 'true': case 'TRUE': return true; - /* case '0': case 'false': case 'FALSE':*/ - default: return false; - } -} - -var utf8read = function utf8reada(orig) { - var out = "", i = 0, c = 0, d = 0, e = 0, f = 0, w = 0; - while (i < orig.length) { - c = orig.charCodeAt(i++); - if (c < 128) { out += String.fromCharCode(c); continue; } - d = orig.charCodeAt(i++); - if (c>191 && c<224) { f = ((c & 31) << 6); f |= (d & 63); out += String.fromCharCode(f); continue; } - e = orig.charCodeAt(i++); - if (c < 240) { out += String.fromCharCode(((c & 15) << 12) | ((d & 63) << 6) | (e & 63)); continue; } - f = orig.charCodeAt(i++); - w = (((c & 7) << 18) | ((d & 63) << 12) | ((e & 63) << 6) | (f & 63))-65536; - out += String.fromCharCode(0xD800 + ((w>>>10)&1023)); - out += String.fromCharCode(0xDC00 + (w&1023)); - } - return out; -}; - -var utf8write = function(orig) { - var out = [], i = 0, c = 0, d = 0; - while(i < orig.length) { - c = orig.charCodeAt(i++); - switch(true) { - case c < 128: out.push(String.fromCharCode(c)); break; - case c < 2048: - out.push(String.fromCharCode(192 + (c >> 6))); - out.push(String.fromCharCode(128 + (c & 63))); - break; - case c >= 55296 && c < 57344: - c -= 55296; d = orig.charCodeAt(i++) - 56320 + (c<<10); - out.push(String.fromCharCode(240 + ((d >>18) & 7))); - out.push(String.fromCharCode(144 + ((d >>12) & 63))); - out.push(String.fromCharCode(128 + ((d >> 6) & 63))); - out.push(String.fromCharCode(128 + (d & 63))); - break; - default: - out.push(String.fromCharCode(224 + (c >> 12))); - out.push(String.fromCharCode(128 + ((c >> 6) & 63))); - out.push(String.fromCharCode(128 + (c & 63))); - } - } - return out.join(""); -}; - -if(has_buf) { - var utf8readb = function utf8readb(data) { - var out = Buffer.alloc(2*data.length), w, i, j = 1, k = 0, ww=0, c; - for(i = 0; i < data.length; i+=j) { - j = 1; - if((c=data.charCodeAt(i)) < 128) w = c; - else if(c < 224) { w = (c&31)*64+(data.charCodeAt(i+1)&63); j=2; } - else if(c < 240) { w=(c&15)*4096+(data.charCodeAt(i+1)&63)*64+(data.charCodeAt(i+2)&63); j=3; } - else { j = 4; - w = (c & 7)*262144+(data.charCodeAt(i+1)&63)*4096+(data.charCodeAt(i+2)&63)*64+(data.charCodeAt(i+3)&63); - w -= 65536; ww = 0xD800 + ((w>>>10)&1023); w = 0xDC00 + (w&1023); - } - if(ww !== 0) { out[k++] = ww&255; out[k++] = ww>>>8; ww = 0; } - out[k++] = w%256; out[k++] = w>>>8; - } - return out.slice(0,k).toString('ucs2'); - }; - var corpus = "foo bar baz\u00e2\u0098\u0083\u00f0\u009f\u008d\u00a3"; - if(utf8read(corpus) == utf8readb(corpus)) utf8read = utf8readb; - var utf8readc = function utf8readc(data) { return Buffer_from(data, 'binary').toString('utf8'); }; - if(utf8read(corpus) == utf8readc(corpus)) utf8read = utf8readc; - - utf8write = function(data) { return Buffer_from(data, 'utf8').toString("binary"); }; -} - -// matches ... extracts content -var matchtag = (function() { - var mtcache = ({}); - return function matchtag(f,g) { - var t = f+"|"+(g||""); - if(mtcache[t]) return mtcache[t]; - return (mtcache[t] = new RegExp('<(?:\\w+:)?'+f+'(?: xml:space="preserve")?(?:[^>]*)>([\\s\\S]*?)',((g||"")))); - }; -})(); - -var htmldecode = (function() { - var entities = [ - ['nbsp', ' '], ['middot', '·'], - ['quot', '"'], ['apos', "'"], ['gt', '>'], ['lt', '<'], ['amp', '&'] - ].map(function(x) { return [new RegExp('&' + x[0] + ';', "ig"), x[1]]; }); - return function htmldecode(str) { - var o = str - // Remove new lines and spaces from start of content - .replace(/^[\t\n\r ]+/, "") - // Remove new lines and spaces from end of content - .replace(/[\t\n\r ]+$/,"") - // Added line which removes any white space characters after and before html tags - .replace(/>\s+/g,">").replace(/\s+ tags with new lines - .replace(/<\s*[bB][rR]\s*\/?>/g,"\n") - // Strip HTML elements - .replace(/<[^>]*>/g,""); - for(var i = 0; i < entities.length; ++i) o = o.replace(entities[i][0], entities[i][1]); - return o; - }; -})(); - -var vtregex = (function(){ var vt_cache = {}; - return function vt_regex(bt) { - if(vt_cache[bt] !== undefined) return vt_cache[bt]; - return (vt_cache[bt] = new RegExp("<(?:vt:)?" + bt + ">([\\s\\S]*?)", 'g') ); -};})(); -var vtvregex = /<\/?(?:vt:)?variant>/g, vtmregex = /<(?:vt:)([^>]*)>([\s\S]*)' + g + ''; } - -function wxt_helper(h) { return keys(h).map(function(k) { return " " + k + '="' + h[k] + '"';}).join(""); } -function writextag(f,g,h) { return '<' + f + ((h != null) ? wxt_helper(h) : "") + ((g != null) ? (g.match(wtregex)?' xml:space="preserve"' : "") + '>' + g + '';} - -function write_w3cdtf(d, t) { try { return d.toISOString().replace(/\.\d*/,""); } catch(e) { if(t) throw e; } return ""; } - -function write_vt(s, xlsx) { - switch(typeof s) { - case 'string': - var o = writextag('vt:lpwstr', escapexml(s)); - if(xlsx) o = o.replace(/"/g, "_x0022_"); - return o; - case 'number': return writextag((s|0)==s?'vt:i4':'vt:r8', escapexml(String(s))); - case 'boolean': return writextag('vt:bool',s?'true':'false'); - } - if(s instanceof Date) return writextag('vt:filetime', write_w3cdtf(s)); - throw new Error("Unable to serialize " + s); -} - -var XMLNS = ({ - 'dc': 'http://purl.org/dc/elements/1.1/', - 'dcterms': 'http://purl.org/dc/terms/', - 'dcmitype': 'http://purl.org/dc/dcmitype/', - 'mx': 'http://schemas.microsoft.com/office/mac/excel/2008/main', - 'r': 'http://schemas.openxmlformats.org/officeDocument/2006/relationships', - 'sjs': 'http://schemas.openxmlformats.org/package/2006/sheetjs/core-properties', - 'vt': 'http://schemas.openxmlformats.org/officeDocument/2006/docPropsVTypes', - 'xsi': 'http://www.w3.org/2001/XMLSchema-instance', - 'xsd': 'http://www.w3.org/2001/XMLSchema' -}); - -XMLNS.main = [ - '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' -]; - -var XLMLNS = ({ - 'o': 'urn:schemas-microsoft-com:office:office', - 'x': 'urn:schemas-microsoft-com:office:excel', - 'ss': 'urn:schemas-microsoft-com:office:spreadsheet', - 'dt': 'uuid:C2F41010-65B3-11d1-A29F-00AA00C14882', - 'mv': 'http://macVmlSchemaUri', - 'v': 'urn:schemas-microsoft-com:vml', - 'html': 'http://www.w3.org/TR/REC-html40' -}); -function read_double_le(b, idx) { - var s = 1 - 2 * (b[idx + 7] >>> 7); - var e = ((b[idx + 7] & 0x7f) << 4) + ((b[idx + 6] >>> 4) & 0x0f); - var m = (b[idx+6]&0x0f); - for(var i = 5; i >= 0; --i) m = m * 256 + b[idx + i]; - if(e == 0x7ff) return m == 0 ? (s * Infinity) : NaN; - if(e == 0) e = -1022; - else { e -= 1023; m += Math.pow(2,52); } - return s * Math.pow(2, e - 52) * m; -} - -function write_double_le(b, v, idx) { - var bs = ((((v < 0) || (1/v == -Infinity)) ? 1 : 0) << 7), e = 0, m = 0; - var av = bs ? (-v) : v; - if(!isFinite(av)) { e = 0x7ff; m = isNaN(v) ? 0x6969 : 0; } - else if(av == 0) e = m = 0; - else { - e = Math.floor(Math.log(av) / Math.LN2); - m = av * Math.pow(2, 52 - e); - if((e <= -1023) && (!isFinite(m) || (m < Math.pow(2,52)))) { e = -1022; } - else { m -= Math.pow(2,52); e+=1023; } - } - for(var i = 0; i <= 5; ++i, m/=256) b[idx + i] = m & 0xff; - b[idx + 6] = ((e & 0x0f) << 4) | (m & 0xf); - b[idx + 7] = (e >> 4) | bs; -} - -var __toBuffer = function(bufs) { var x=[],w=10240; for(var i=0;i 0 ? __utf8(b, i+4,i+4+len-1) : "";}; -var ___lpstr = __lpstr; -var __cpstr = function(b,i) { var len = __readUInt32LE(b,i); return len > 0 ? __utf8(b, i+4,i+4+len-1) : "";}; -var ___cpstr = __cpstr; -var __lpwstr = function(b,i) { var len = 2*__readUInt32LE(b,i); return len > 0 ? __utf8(b, i+4,i+4+len-1) : "";}; -var ___lpwstr = __lpwstr; -var __lpp4, ___lpp4; -__lpp4 = ___lpp4 = function lpp4_(b,i) { var len = __readUInt32LE(b,i); return len > 0 ? __utf16le(b, i+4,i+4+len) : "";}; -var __8lpp4 = function(b,i) { var len = __readUInt32LE(b,i); return len > 0 ? __utf8(b, i+4,i+4+len) : "";}; -var ___8lpp4 = __8lpp4; -var __double, ___double; -__double = ___double = function(b, idx) { return read_double_le(b, idx);}; -var is_buf = function is_buf_a(a) { return Array.isArray(a) || (typeof Uint8Array !== "undefined" && a instanceof Uint8Array); }; - -if(has_buf) { - __utf16le = function(b,s,e) { if(!Buffer.isBuffer(b)) return ___utf16le(b,s,e); return b.toString('utf16le',s,e).replace(chr0,'')/*.replace(chr1,'!')*/; }; - __hexlify = function(b,s,l) { return Buffer.isBuffer(b) ? b.toString('hex',s,s+l) : ___hexlify(b,s,l); }; - __lpstr = function lpstr_b(b, i) { if(!Buffer.isBuffer(b)) return ___lpstr(b, i); var len = b.readUInt32LE(i); return len > 0 ? b.toString('utf8',i+4,i+4+len-1) : "";}; - __cpstr = function cpstr_b(b, i) { if(!Buffer.isBuffer(b)) return ___cpstr(b, i); var len = b.readUInt32LE(i); return len > 0 ? b.toString('utf8',i+4,i+4+len-1) : "";}; - __lpwstr = function lpwstr_b(b, i) { if(!Buffer.isBuffer(b)) return ___lpwstr(b, i); var len = 2*b.readUInt32LE(i); return b.toString('utf16le',i+4,i+4+len-1);}; - __lpp4 = function lpp4_b(b, i) { if(!Buffer.isBuffer(b)) return ___lpp4(b, i); var len = b.readUInt32LE(i); return b.toString('utf16le',i+4,i+4+len);}; - __8lpp4 = function lpp4_8b(b, i) { if(!Buffer.isBuffer(b)) return ___8lpp4(b, i); var len = b.readUInt32LE(i); return b.toString('utf8',i+4,i+4+len);}; - __utf8 = function utf8_b(b, s, e) { return (Buffer.isBuffer(b)) ? b.toString('utf8',s,e) : ___utf8(b,s,e); }; - __toBuffer = function(bufs) { return (bufs[0].length > 0 && Buffer.isBuffer(bufs[0][0])) ? Buffer.concat(bufs[0].map(function(x) { return Buffer.isBuffer(x) ? x : Buffer_from(x); })) : ___toBuffer(bufs);}; - bconcat = function(bufs) { return Buffer.concat(bufs.map(function(buf) { return Buffer.isBuffer(buf) ? buf : Buffer_from(buf); })); }; - __double = function double_(b, i) { if(Buffer.isBuffer(b)) return b.readDoubleLE(i); return ___double(b,i); }; - is_buf = function is_buf_b(a) { return Buffer.isBuffer(a) || Array.isArray(a) || (typeof Uint8Array !== "undefined" && a instanceof Uint8Array); }; -} - -/* from js-xls */ -function cpdoit() { - __utf16le = function(b,s,e) { return cptable.utils.decode(1200, b.slice(s,e)).replace(chr0, ''); }; - __utf8 = function(b,s,e) { return cptable.utils.decode(65001, b.slice(s,e)); }; - __lpstr = function(b,i) { var len = __readUInt32LE(b,i); return len > 0 ? cptable.utils.decode(current_ansi, b.slice(i+4, i+4+len-1)) : "";}; - __cpstr = function(b,i) { var len = __readUInt32LE(b,i); return len > 0 ? cptable.utils.decode(current_codepage, b.slice(i+4, i+4+len-1)) : "";}; - __lpwstr = function(b,i) { var len = 2*__readUInt32LE(b,i); return len > 0 ? cptable.utils.decode(1200, b.slice(i+4,i+4+len-1)) : "";}; - __lpp4 = function(b,i) { var len = __readUInt32LE(b,i); return len > 0 ? cptable.utils.decode(1200, b.slice(i+4,i+4+len)) : "";}; - __8lpp4 = function(b,i) { var len = __readUInt32LE(b,i); return len > 0 ? cptable.utils.decode(65001, b.slice(i+4,i+4+len)) : "";}; -} -if(typeof cptable !== 'undefined') cpdoit(); - -var __readUInt8 = function(b, idx) { return b[idx]; }; -var __readUInt16LE = function(b, idx) { return (b[idx+1]*(1<<8))+b[idx]; }; -var __readInt16LE = function(b, idx) { var u = (b[idx+1]*(1<<8))+b[idx]; return (u < 0x8000) ? u : ((0xffff - u + 1) * -1); }; -var __readUInt32LE = function(b, idx) { return b[idx+3]*(1<<24)+(b[idx+2]<<16)+(b[idx+1]<<8)+b[idx]; }; -var __readInt32LE = function(b, idx) { return (b[idx+3]<<24)|(b[idx+2]<<16)|(b[idx+1]<<8)|b[idx]; }; -var __readInt32BE = function(b, idx) { return (b[idx]<<24)|(b[idx+1]<<16)|(b[idx+2]<<8)|b[idx+3]; }; - -function ReadShift(size, t) { - var o="", oI, oR, oo=[], w, vv, i, loc; - switch(t) { - case 'dbcs': - loc = this.l; - if(has_buf && Buffer.isBuffer(this)) o = this.slice(this.l, this.l+2*size).toString("utf16le"); - else for(i = 0; i < size; ++i) { o+=String.fromCharCode(__readUInt16LE(this, loc)); loc+=2; } - size *= 2; - break; - - case 'utf8': o = __utf8(this, this.l, this.l + size); break; - case 'utf16le': size *= 2; o = __utf16le(this, this.l, this.l + size); break; - - case 'wstr': - if(typeof cptable !== 'undefined') o = cptable.utils.decode(current_codepage, this.slice(this.l, this.l+2*size)); - else return ReadShift.call(this, size, 'dbcs'); - size = 2 * size; break; - - /* [MS-OLEDS] 2.1.4 LengthPrefixedAnsiString */ - case 'lpstr-ansi': o = __lpstr(this, this.l); size = 4 + __readUInt32LE(this, this.l); break; - case 'lpstr-cp': o = __cpstr(this, this.l); size = 4 + __readUInt32LE(this, this.l); break; - /* [MS-OLEDS] 2.1.5 LengthPrefixedUnicodeString */ - case 'lpwstr': o = __lpwstr(this, this.l); size = 4 + 2 * __readUInt32LE(this, this.l); break; - /* [MS-OFFCRYPTO] 2.1.2 Length-Prefixed Padded Unicode String (UNICODE-LP-P4) */ - case 'lpp4': size = 4 + __readUInt32LE(this, this.l); o = __lpp4(this, this.l); if(size & 0x02) size += 2; break; - /* [MS-OFFCRYPTO] 2.1.3 Length-Prefixed UTF-8 String (UTF-8-LP-P4) */ - case '8lpp4': size = 4 + __readUInt32LE(this, this.l); o = __8lpp4(this, this.l); if(size & 0x03) size += 4 - (size & 0x03); break; - - case 'cstr': size = 0; o = ""; - while((w=__readUInt8(this, this.l + size++))!==0) oo.push(_getchar(w)); - o = oo.join(""); break; - case '_wstr': size = 0; o = ""; - while((w=__readUInt16LE(this,this.l +size))!==0){oo.push(_getchar(w));size+=2;} - size+=2; o = oo.join(""); break; - - /* sbcs and dbcs support continue records in the SST way TODO codepages */ - case 'dbcs-cont': o = ""; loc = this.l; - for(i = 0; i < size; ++i) { - if(this.lens && this.lens.indexOf(loc) !== -1) { - w = __readUInt8(this, loc); - this.l = loc + 1; - vv = ReadShift.call(this, size-i, w ? 'dbcs-cont' : 'sbcs-cont'); - return oo.join("") + vv; - } - oo.push(_getchar(__readUInt16LE(this, loc))); - loc+=2; - } o = oo.join(""); size *= 2; break; - - case 'cpstr': - if(typeof cptable !== 'undefined') { - o = cptable.utils.decode(current_codepage, this.slice(this.l, this.l + size)); - break; - } - /* falls through */ - case 'sbcs-cont': o = ""; loc = this.l; - for(i = 0; i != size; ++i) { - if(this.lens && this.lens.indexOf(loc) !== -1) { - w = __readUInt8(this, loc); - this.l = loc + 1; - vv = ReadShift.call(this, size-i, w ? 'dbcs-cont' : 'sbcs-cont'); - return oo.join("") + vv; - } - oo.push(_getchar(__readUInt8(this, loc))); - loc+=1; - } o = oo.join(""); break; - - default: - switch(size) { - case 1: oI = __readUInt8(this, this.l); this.l++; return oI; - case 2: oI = (t === 'i' ? __readInt16LE : __readUInt16LE)(this, this.l); this.l += 2; return oI; - case 4: case -4: - if(t === 'i' || ((this[this.l+3] & 0x80)===0)) { oI = ((size > 0) ? __readInt32LE : __readInt32BE)(this, this.l); this.l += 4; return oI; } - else { oR = __readUInt32LE(this, this.l); this.l += 4; } return oR; - case 8: case -8: - if(t === 'f') { - if(size == 8) oR = __double(this, this.l); - else oR = __double([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; return oR; - } else size = 8; - /* falls through */ - case 16: o = __hexlify(this, this.l, size); break; - }} - this.l+=size; return o; -} - -var __writeUInt32LE = function(b, val, idx) { b[idx] = (val & 0xFF); b[idx+1] = ((val >>> 8) & 0xFF); b[idx+2] = ((val >>> 16) & 0xFF); b[idx+3] = ((val >>> 24) & 0xFF); }; -var __writeInt32LE = function(b, val, idx) { b[idx] = (val & 0xFF); b[idx+1] = ((val >> 8) & 0xFF); b[idx+2] = ((val >> 16) & 0xFF); b[idx+3] = ((val >> 24) & 0xFF); }; -var __writeUInt16LE = function(b, val, idx) { b[idx] = (val & 0xFF); b[idx+1] = ((val >>> 8) & 0xFF); }; - -function WriteShift(t, val, f) { - var size = 0, i = 0; - if(f === 'dbcs') { -for(i = 0; i != val.length; ++i) __writeUInt16LE(this, val.charCodeAt(i), this.l + 2 * i); - size = 2 * val.length; - } else if(f === 'sbcs') { - if(typeof cptable !== 'undefined' && current_ansi == 874) { - /* TODO: use tables directly, don't encode */ -for(i = 0; i != val.length; ++i) { - var cppayload = cptable.utils.encode(current_ansi, val.charAt(i)); - this[this.l + i] = cppayload[0]; - } - } else { -val = val.replace(/[^\x00-\x7F]/g, "_"); -for(i = 0; i != val.length; ++i) this[this.l + i] = (val.charCodeAt(i) & 0xFF); - } - size = val.length; - } else if(f === 'hex') { - for(; i < t; ++i) { -this[this.l++] = (parseInt(val.slice(2*i, 2*i+2), 16)||0); - } return this; - } else if(f === 'utf16le') { -var end = Math.min(this.l + t, this.length); - for(i = 0; i < Math.min(val.length, t); ++i) { - var cc = val.charCodeAt(i); - this[this.l++] = (cc & 0xff); - this[this.l++] = (cc >> 8); - } - while(this.l < end) this[this.l++] = 0; - return this; - } else switch(t) { - case 1: size = 1; this[this.l] = val&0xFF; break; - case 2: size = 2; this[this.l] = val&0xFF; val >>>= 8; this[this.l+1] = val&0xFF; break; - case 3: size = 3; this[this.l] = val&0xFF; val >>>= 8; this[this.l+1] = val&0xFF; val >>>= 8; this[this.l+2] = val&0xFF; break; - case 4: size = 4; __writeUInt32LE(this, val, this.l); break; - case 8: size = 8; if(f === 'f') { write_double_le(this, val, this.l); break; } - /* falls through */ - case 16: break; - case -4: size = 4; __writeInt32LE(this, val, this.l); break; - } - this.l += size; return this; -} - -function CheckField(hexstr, fld) { - var m = __hexlify(this,this.l,hexstr.length>>1); - if(m !== hexstr) throw new Error(fld + 'Expected ' + hexstr + ' saw ' + m); - this.l += hexstr.length>>1; -} - -function prep_blob(blob, pos) { - blob.l = pos; - blob.read_shift = ReadShift; - blob.chk = CheckField; - blob.write_shift = WriteShift; -} - -function parsenoop(blob, length) { blob.l += length; } - -function new_buf(sz) { - var o = new_raw_buf(sz); - prep_blob(o, 0); - return o; -} - -/* [MS-XLSB] 2.1.4 Record */ -function recordhopper(data, cb, opts) { - if(!data) return; - var tmpbyte, cntbyte, length; - prep_blob(data, data.l || 0); - var L = data.length, RT = 0, tgt = 0; - while(data.l < L) { - RT = data.read_shift(1); - if(RT & 0x80) RT = (RT & 0x7F) + ((data.read_shift(1) & 0x7F)<<7); - var R = XLSBRecordEnum[RT] || XLSBRecordEnum[0xFFFF]; - tmpbyte = data.read_shift(1); - length = tmpbyte & 0x7F; - for(cntbyte = 1; cntbyte <4 && (tmpbyte & 0x80); ++cntbyte) length += ((tmpbyte = data.read_shift(1)) & 0x7F)<<(7*cntbyte); - tgt = data.l + length; - var d = R.f && R.f(data, length, opts); - data.l = tgt; - if(cb(d, R.n, RT)) return; - } -} - -/* control buffer usage for fixed-length buffers */ -function buf_array() { - var bufs = [], blksz = has_buf ? 256 : 2048; - var newblk = function ba_newblk(sz) { - var o = (new_buf(sz)); - prep_blob(o, 0); - return o; - }; - - var curbuf = newblk(blksz); - - var endbuf = function ba_endbuf() { - if(!curbuf) return; - if(curbuf.length > curbuf.l) { curbuf = curbuf.slice(0, curbuf.l); curbuf.l = curbuf.length; } - if(curbuf.length > 0) bufs.push(curbuf); - curbuf = null; - }; - - var next = function ba_next(sz) { - if(curbuf && (sz < (curbuf.length - curbuf.l))) return curbuf; - endbuf(); - return (curbuf = newblk(Math.max(sz+1, blksz))); - }; - - var end = function ba_end() { - endbuf(); - return bconcat(bufs); - }; - - var push = function ba_push(buf) { endbuf(); curbuf = buf; if(curbuf.l == null) curbuf.l = curbuf.length; next(blksz); }; - - return ({ next:next, push:push, end:end, _bufs:bufs }); -} - -function write_record(ba, type, payload, length) { - if(!XLSBRE) make_XLSBRE(); - var t = +XLSBRE[type], l; - if(isNaN(t)) return; // TODO: throw something here? - if(!length) length = XLSBRecordEnum[t].p || (payload||[]).length || 0; - l = 1 + (t >= 0x80 ? 1 : 0) + 1/* + length*/; - if(length >= 0x80) ++l; if(length >= 0x4000) ++l; if(length >= 0x200000) ++l; - var o = ba.next(l); - if(t <= 0x7F) o.write_shift(1, t); - else { - o.write_shift(1, (t & 0x7F) + 0x80); - o.write_shift(1, (t >> 7)); - } - for(var i = 0; i != 4; ++i) { - if(length >= 0x80) { o.write_shift(1, (length & 0x7F)+0x80); length >>= 7; } - else { o.write_shift(1, length); break; } - } - if(length > 0 && is_buf(payload)) ba.push(payload); -} -/* XLS ranges enforced */ -function shift_cell_xls(cell, tgt, opts) { - var out = dup(cell); - if(tgt.s) { - if(out.cRel) out.c += tgt.s.c; - if(out.rRel) out.r += tgt.s.r; - } else { - if(out.cRel) out.c += tgt.c; - if(out.rRel) out.r += tgt.r; - } - if(!opts || opts.biff < 12) { - while(out.c >= 0x100) out.c -= 0x100; - while(out.r >= 0x10000) out.r -= 0x10000; - } - return out; -} - -function shift_range_xls(cell, range, opts) { - var out = dup(cell); - out.s = shift_cell_xls(out.s, range.s, opts); - out.e = shift_cell_xls(out.e, range.s, opts); - return out; -} - -function encode_cell_xls(c, biff) { - if(c.cRel && c.c < 0) { c = dup(c); while(c.c < 0) c.c += (biff > 8) ? 0x4000 : 0x100; } - if(c.rRel && c.r < 0) { c = dup(c); while(c.r < 0) c.r += (biff > 8) ? 0x100000 : ((biff > 5) ? 0x10000 : 0x4000); } - var s = encode_cell(c); - if(!c.cRel && c.cRel != null) s = fix_col(s); - if(!c.rRel && c.rRel != null) s = fix_row(s); - return s; -} - -function encode_range_xls(r, opts) { - if(r.s.r == 0 && !r.s.rRel) { - if(r.e.r == (opts.biff >= 12 ? 0xFFFFF : (opts.biff >= 8 ? 0x10000 : 0x4000)) && !r.e.rRel) { - return (r.s.cRel ? "" : "$") + encode_col(r.s.c) + ":" + (r.e.cRel ? "" : "$") + encode_col(r.e.c); - } - } - if(r.s.c == 0 && !r.s.cRel) { - if(r.e.c == (opts.biff >= 12 ? 0x3FFF : 0xFF) && !r.e.cRel) { - return (r.s.rRel ? "" : "$") + encode_row(r.s.r) + ":" + (r.e.rRel ? "" : "$") + encode_row(r.e.r); - } - } - return encode_cell_xls(r.s, opts.biff) + ":" + encode_cell_xls(r.e, opts.biff); -} -var OFFCRYPTO = {}; - -var make_offcrypto = function(O, _crypto) { - var crypto; - if(typeof _crypto !== 'undefined') crypto = _crypto; - else if(typeof require !== 'undefined') { - try { crypto = undefined; } - catch(e) { crypto = null; } - } - - O.rc4 = function(key, data) { - var S = new Array(256); - var c = 0, i = 0, j = 0, t = 0; - for(i = 0; i != 256; ++i) S[i] = i; - for(i = 0; i != 256; ++i) { - j = (j + S[i] + (key[i%key.length]).charCodeAt(0))&255; - t = S[i]; S[i] = S[j]; S[j] = t; - } - // $FlowIgnore - i = j = 0; var out = new_raw_buf(data.length); - for(c = 0; c != data.length; ++c) { - i = (i + 1)&255; - j = (j + S[i])%256; - t = S[i]; S[i] = S[j]; S[j] = t; - out[c] = (data[c] ^ S[(S[i]+S[j])&255]); - } - return out; - }; - - O.md5 = function(hex) { - if(!crypto) throw new Error("Unsupported crypto"); - return crypto.createHash('md5').update(hex).digest('hex'); - }; -}; -/*global crypto:true */ -make_offcrypto(OFFCRYPTO, typeof crypto !== "undefined" ? crypto : undefined); - -function decode_row(rowstr) { return parseInt(unfix_row(rowstr),10) - 1; } -function encode_row(row) { return "" + (row + 1); } -function fix_row(cstr) { return cstr.replace(/([A-Z]|^)(\d+)$/,"$1$$$2"); } -function unfix_row(cstr) { return cstr.replace(/\$(\d+)$/,"$1"); } - -function decode_col(colstr) { var c = unfix_col(colstr), d = 0, i = 0; for(; i !== c.length; ++i) d = 26*d + c.charCodeAt(i) - 64; return d - 1; } -function encode_col(col) { if(col < 0) throw new Error("invalid column " + col); var s=""; for(++col; col; col=Math.floor((col-1)/26)) s = String.fromCharCode(((col-1)%26) + 65) + s; return s; } -function fix_col(cstr) { return cstr.replace(/^([A-Z])/,"$$$1"); } -function unfix_col(cstr) { return cstr.replace(/^\$([A-Z])/,"$1"); } - -function split_cell(cstr) { return cstr.replace(/(\$?[A-Z]*)(\$?\d*)/,"$1,$2").split(","); } -//function decode_cell(cstr) { var splt = split_cell(cstr); return { c:decode_col(splt[0]), r:decode_row(splt[1]) }; } -function decode_cell(cstr) { - var R = 0, C = 0; - for(var i = 0; i < cstr.length; ++i) { - var cc = cstr.charCodeAt(i); - if(cc >= 48 && cc <= 57) R = 10 * R + (cc - 48); - else if(cc >= 65 && cc <= 90) C = 26 * C + (cc - 64); - } - return { c: C - 1, r:R - 1 }; -} -//function encode_cell(cell) { return encode_col(cell.c) + encode_row(cell.r); } -function encode_cell(cell) { - var col = cell.c + 1; - var s=""; - for(; col; col=((col-1)/26)|0) s = String.fromCharCode(((col-1)%26) + 65) + s; - return s + (cell.r + 1); -} -function decode_range(range) { - var idx = range.indexOf(":"); - if(idx == -1) return { s: decode_cell(range), e: decode_cell(range) }; - return { s: decode_cell(range.slice(0, idx)), e: decode_cell(range.slice(idx + 1)) }; -} -function encode_range(cs,ce) { - if(typeof ce === 'undefined' || typeof ce === 'number') { -return encode_range(cs.s, cs.e); - } -if(typeof cs !== 'string') cs = encode_cell((cs)); - if(typeof ce !== 'string') ce = encode_cell((ce)); -return cs == ce ? cs : cs + ":" + ce; -} - -function safe_decode_range(range) { - var o = {s:{c:0,r:0},e:{c:0,r:0}}; - var idx = 0, i = 0, cc = 0; - var len = range.length; - for(idx = 0; i < len; ++i) { - if((cc=range.charCodeAt(i)-64) < 1 || cc > 26) break; - idx = 26*idx + cc; - } - o.s.c = --idx; - - for(idx = 0; i < len; ++i) { - if((cc=range.charCodeAt(i)-48) < 0 || cc > 9) break; - idx = 10*idx + cc; - } - o.s.r = --idx; - - if(i === len || cc != 10) { o.e.c=o.s.c; o.e.r=o.s.r; return o; } - ++i; - - for(idx = 0; i != len; ++i) { - if((cc=range.charCodeAt(i)-64) < 1 || cc > 26) break; - idx = 26*idx + cc; - } - o.e.c = --idx; - - for(idx = 0; i != len; ++i) { - if((cc=range.charCodeAt(i)-48) < 0 || cc > 9) break; - idx = 10*idx + cc; - } - o.e.r = --idx; - return o; -} - -function safe_format_cell(cell, v) { - var q = (cell.t == 'd' && v instanceof Date); - if(cell.z != null) try { return (cell.w = SSF.format(cell.z, q ? datenum(v) : v)); } catch(e) { } - try { return (cell.w = SSF.format((cell.XF||{}).numFmtId||(q ? 14 : 0), q ? datenum(v) : v)); } catch(e) { return ''+v; } -} - -function format_cell(cell, v, o) { - if(cell == null || cell.t == null || cell.t == 'z') return ""; - if(cell.w !== undefined) return cell.w; - if(cell.t == 'd' && !cell.z && o && o.dateNF) cell.z = o.dateNF; - if(cell.t == "e") return BErr[cell.v] || cell.v; - if(v == undefined) return safe_format_cell(cell, cell.v); - return safe_format_cell(cell, v); -} - -function sheet_to_workbook(sheet, opts) { - var n = opts && opts.sheet ? opts.sheet : "Sheet1"; - var sheets = {}; sheets[n] = sheet; - return { SheetNames: [n], Sheets: sheets }; -} - -function sheet_add_aoa(_ws, data, opts) { - var o = opts || {}; - var dense = _ws ? Array.isArray(_ws) : o.dense; - if(DENSE != null && dense == null) dense = DENSE; - var ws = _ws || (dense ? ([]) : ({})); - var _R = 0, _C = 0; - if(ws && o.origin != null) { - if(typeof o.origin == 'number') _R = o.origin; - else { - var _origin = typeof o.origin == "string" ? decode_cell(o.origin) : o.origin; - _R = _origin.r; _C = _origin.c; - } - if(!ws["!ref"]) ws["!ref"] = "A1:A1"; - } - var range = ({s: {c:10000000, r:10000000}, e: {c:0, r:0}}); - if(ws['!ref']) { - var _range = safe_decode_range(ws['!ref']); - range.s.c = _range.s.c; - range.s.r = _range.s.r; - range.e.c = Math.max(range.e.c, _range.e.c); - range.e.r = Math.max(range.e.r, _range.e.r); - if(_R == -1) range.e.r = _R = _range.e.r + 1; - } - for(var R = 0; R != data.length; ++R) { - if(!data[R]) continue; - if(!Array.isArray(data[R])) throw new Error("aoa_to_sheet expects an array of arrays"); - for(var C = 0; C != data[R].length; ++C) { - if(typeof data[R][C] === 'undefined') continue; - var cell = ({v: data[R][C] }); - var __R = _R + R, __C = _C + C; - if(range.s.r > __R) range.s.r = __R; - if(range.s.c > __C) range.s.c = __C; - if(range.e.r < __R) range.e.r = __R; - if(range.e.c < __C) range.e.c = __C; - if(data[R][C] && typeof data[R][C] === 'object' && !Array.isArray(data[R][C]) && !(data[R][C] instanceof Date)) cell = data[R][C]; - else { - if(Array.isArray(cell.v)) { cell.f = data[R][C][1]; cell.v = cell.v[0]; } - if(cell.v === null) { - if(cell.f) cell.t = 'n'; - else if(o.nullError) { cell.t = 'e'; cell.v = 0; } - else if(!o.sheetStubs) continue; - else cell.t = 'z'; - } - else if(typeof cell.v === 'number') cell.t = 'n'; - else if(typeof cell.v === 'boolean') cell.t = 'b'; - else if(cell.v instanceof Date) { - cell.z = o.dateNF || SSF._table[14]; - if(o.cellDates) { cell.t = 'd'; cell.w = SSF.format(cell.z, datenum(cell.v)); } - else { cell.t = 'n'; cell.v = datenum(cell.v); cell.w = SSF.format(cell.z, cell.v); } - } - else cell.t = 's'; - } - if(dense) { - if(!ws[__R]) ws[__R] = []; - if(ws[__R][__C] && ws[__R][__C].z) cell.z = ws[__R][__C].z; - ws[__R][__C] = cell; - } else { - var cell_ref = encode_cell(({c:__C,r:__R})); - if(ws[cell_ref] && ws[cell_ref].z) cell.z = ws[cell_ref].z; - ws[cell_ref] = cell; - } - } - } - if(range.s.c < 10000000) ws['!ref'] = encode_range(range); - return ws; -} -function aoa_to_sheet(data, opts) { return sheet_add_aoa(null, data, opts); } - -function write_UInt32LE(x, o) { - if (!o) o = new_buf(4); - o.write_shift(4, x); - return o; -} - -/* [MS-XLSB] 2.5.168 */ -function parse_XLWideString(data) { - var cchCharacters = data.read_shift(4); - return cchCharacters === 0 ? "" : data.read_shift(cchCharacters, 'dbcs'); -} -function write_XLWideString(data, o) { - var _null = false; if (o == null) { _null = true; o = new_buf(4 + 2 * data.length); } - o.write_shift(4, data.length); - if (data.length > 0) o.write_shift(0, data, 'dbcs'); - return _null ? o.slice(0, o.l) : o; -} - -/* [MS-XLSB] 2.5.91 */ -//function parse_LPWideString(data) { -// var cchCharacters = data.read_shift(2); -// return cchCharacters === 0 ? "" : data.read_shift(cchCharacters, "utf16le"); -//} - -/* [MS-XLSB] 2.5.143 */ -function parse_StrRun(data) { - return { ich: data.read_shift(2), ifnt: data.read_shift(2) }; -} -function write_StrRun(run, o) { - if (!o) o = new_buf(4); - o.write_shift(2, run.ich || 0); - o.write_shift(2, run.ifnt || 0); - return o; -} - -/* [MS-XLSB] 2.5.121 */ -function parse_RichStr(data, length) { - var start = data.l; - var flags = data.read_shift(1); - var str = parse_XLWideString(data); - var rgsStrRun = []; - var z = ({ t: str, h: str }); - if ((flags & 1) !== 0) { /* fRichStr */ - /* TODO: formatted string */ - var dwSizeStrRun = data.read_shift(4); - for (var i = 0; i != dwSizeStrRun; ++i) rgsStrRun.push(parse_StrRun(data)); - z.r = rgsStrRun; - } - else z.r = [{ ich: 0, ifnt: 0 }]; - //if((flags & 2) !== 0) { /* fExtStr */ - // /* TODO: phonetic string */ - //} - data.l = start + length; - return z; -} -function write_RichStr(str, o) { - /* TODO: formatted string */ - var _null = false; if (o == null) { _null = true; o = new_buf(15 + 4 * str.t.length); } - o.write_shift(1, 0); - write_XLWideString(str.t, o); - return _null ? o.slice(0, o.l) : o; -} -/* [MS-XLSB] 2.4.328 BrtCommentText (RichStr w/1 run) */ -var parse_BrtCommentText = parse_RichStr; -function write_BrtCommentText(str, o) { - /* TODO: formatted string */ - var _null = false; if (o == null) { _null = true; o = new_buf(23 + 4 * str.t.length); } - o.write_shift(1, 1); - write_XLWideString(str.t, o); - o.write_shift(4, 1); - write_StrRun({ ich: 0, ifnt: 0 }, o); - return _null ? o.slice(0, o.l) : o; -} - -/* [MS-XLSB] 2.5.9 */ -function parse_XLSBCell(data) { - var col = data.read_shift(4); - var iStyleRef = data.read_shift(2); - iStyleRef += data.read_shift(1) << 16; - data.l++; //var fPhShow = data.read_shift(1); - return { c: col, iStyleRef: iStyleRef }; -} -function write_XLSBCell(cell, o) { - if (o == null) o = new_buf(8); - o.write_shift(-4, cell.c); - o.write_shift(3, cell.iStyleRef || cell.s); - o.write_shift(1, 0); /* fPhShow */ - return o; -} - -/* Short XLSB Cell does not include column */ -function parse_XLSBShortCell(data) { - var iStyleRef = data.read_shift(2); - iStyleRef += data.read_shift(1) <<16; - data.l++; //var fPhShow = data.read_shift(1); - return { c:-1, iStyleRef: iStyleRef }; -} -function write_XLSBShortCell(cell, o) { - if(o == null) o = new_buf(4); - o.write_shift(3, cell.iStyleRef || cell.s); - o.write_shift(1, 0); /* fPhShow */ - return o; -} - -/* [MS-XLSB] 2.5.21 */ -var parse_XLSBCodeName = parse_XLWideString; -var write_XLSBCodeName = write_XLWideString; - -/* [MS-XLSB] 2.5.166 */ -function parse_XLNullableWideString(data) { - var cchCharacters = data.read_shift(4); - return cchCharacters === 0 || cchCharacters === 0xFFFFFFFF ? "" : data.read_shift(cchCharacters, 'dbcs'); -} -function write_XLNullableWideString(data, o) { - var _null = false; if (o == null) { _null = true; o = new_buf(127); } - o.write_shift(4, data.length > 0 ? data.length : 0xFFFFFFFF); - if (data.length > 0) o.write_shift(0, data, 'dbcs'); - return _null ? o.slice(0, o.l) : o; -} - -/* [MS-XLSB] 2.5.165 */ -var parse_XLNameWideString = parse_XLWideString; -//var write_XLNameWideString = write_XLWideString; - -/* [MS-XLSB] 2.5.114 */ -var parse_RelID = parse_XLNullableWideString; -var write_RelID = write_XLNullableWideString; - - -/* [MS-XLS] 2.5.217 ; [MS-XLSB] 2.5.122 */ -function parse_RkNumber(data) { - var b = data.slice(data.l, data.l + 4); - var fX100 = (b[0] & 1), fInt = (b[0] & 2); - data.l += 4; - var RK = fInt === 0 ? __double([0, 0, 0, 0, (b[0] & 0xFC), b[1], b[2], b[3]], 0) : __readInt32LE(b, 0) >> 2; - return fX100 ? (RK / 100) : RK; -} -function write_RkNumber(data, o) { - if (o == null) o = new_buf(4); - var fX100 = 0, fInt = 0, d100 = data * 100; - if ((data == (data | 0)) && (data >= -(1 << 29)) && (data < (1 << 29))) { fInt = 1; } - else if ((d100 == (d100 | 0)) && (d100 >= -(1 << 29)) && (d100 < (1 << 29))) { fInt = 1; fX100 = 1; } - if (fInt) o.write_shift(-4, ((fX100 ? d100 : data) << 2) + (fX100 + 2)); - else throw new Error("unsupported RkNumber " + data); // TODO -} - - -/* [MS-XLSB] 2.5.117 RfX */ -function parse_RfX(data ) { - var cell = ({ s: {}, e: {} }); - cell.s.r = data.read_shift(4); - cell.e.r = data.read_shift(4); - cell.s.c = data.read_shift(4); - cell.e.c = data.read_shift(4); - return cell; -} -function write_RfX(r, o) { - if (!o) o = new_buf(16); - o.write_shift(4, r.s.r); - o.write_shift(4, r.e.r); - o.write_shift(4, r.s.c); - o.write_shift(4, r.e.c); - return o; -} - -/* [MS-XLSB] 2.5.153 UncheckedRfX */ -var parse_UncheckedRfX = parse_RfX; -var write_UncheckedRfX = write_RfX; - -/* [MS-XLSB] 2.5.155 UncheckedSqRfX */ -//function parse_UncheckedSqRfX(data) { -// var cnt = data.read_shift(4); -// var out = []; -// for(var i = 0; i < cnt; ++i) { -// var rng = parse_UncheckedRfX(data); -// out.push(encode_range(rng)); -// } -// return out.join(","); -//} -//function write_UncheckedSqRfX(sqrfx) { -// var parts = sqrfx.split(/\s*,\s*/); -// var o = new_buf(4); o.write_shift(4, parts.length); -// var out = [o]; -// parts.forEach(function(rng) { -// out.push(write_UncheckedRfX(safe_decode_range(rng))); -// }); -// return bconcat(out); -//} - -/* [MS-XLS] 2.5.342 ; [MS-XLSB] 2.5.171 */ -/* TODO: error checking, NaN and Infinity values are not valid Xnum */ -function parse_Xnum(data) { - if(data.length - data.l < 8) throw "XLS Xnum Buffer underflow"; - return data.read_shift(8, 'f'); -} -function write_Xnum(data, o) { return (o || new_buf(8)).write_shift(8, data, 'f'); } - -/* [MS-XLSB] 2.4.324 BrtColor */ -function parse_BrtColor(data) { - var out = {}; - var d = data.read_shift(1); - - //var fValidRGB = d & 1; - var xColorType = d >>> 1; - - var index = data.read_shift(1); - var nTS = data.read_shift(2, 'i'); - var bR = data.read_shift(1); - var bG = data.read_shift(1); - var bB = data.read_shift(1); - data.l++; //var bAlpha = data.read_shift(1); - - switch (xColorType) { - case 0: out.auto = 1; break; - case 1: - out.index = index; - var icv = XLSIcv[index]; - /* automatic pseudo index 81 */ - if (icv) out.rgb = rgb2Hex(icv); - break; - case 2: - /* if(!fValidRGB) throw new Error("invalid"); */ - out.rgb = rgb2Hex([bR, bG, bB]); - break; - case 3: out.theme = index; break; - } - if (nTS != 0) out.tint = nTS > 0 ? nTS / 32767 : nTS / 32768; - - return out; -} -function write_BrtColor(color, o) { - if (!o) o = new_buf(8); - if (!color || color.auto) { o.write_shift(4, 0); o.write_shift(4, 0); return o; } - if (color.index != null) { - o.write_shift(1, 0x02); - o.write_shift(1, color.index); - } else if (color.theme != null) { - o.write_shift(1, 0x06); - o.write_shift(1, color.theme); - } else { - o.write_shift(1, 0x05); - o.write_shift(1, 0); - } - var nTS = color.tint || 0; - if (nTS > 0) nTS *= 32767; - else if (nTS < 0) nTS *= 32768; - o.write_shift(2, nTS); - if (!color.rgb || color.theme != null) { - o.write_shift(2, 0); - o.write_shift(1, 0); - o.write_shift(1, 0); - } else { - var rgb = (color.rgb || 'FFFFFF'); - if (typeof rgb == 'number') rgb = ("000000" + rgb.toString(16)).slice(-6); - o.write_shift(1, parseInt(rgb.slice(0, 2), 16)); - o.write_shift(1, parseInt(rgb.slice(2, 4), 16)); - o.write_shift(1, parseInt(rgb.slice(4, 6), 16)); - o.write_shift(1, 0xFF); - } - return o; -} - -/* [MS-XLSB] 2.5.52 */ -function parse_FontFlags(data) { - var d = data.read_shift(1); - data.l++; - var out = { - fBold: d & 0x01, - fItalic: d & 0x02, - fUnderline: d & 0x04, - fStrikeout: d & 0x08, - fOutline: d & 0x10, - fShadow: d & 0x20, - fCondense: d & 0x40, - fExtend: d & 0x80 - }; - return out; -} -function write_FontFlags(font, o) { - if (!o) o = new_buf(2); - var grbit = - (font.italic ? 0x02 : 0) | - (font.strike ? 0x08 : 0) | - (font.outline ? 0x10 : 0) | - (font.shadow ? 0x20 : 0) | - (font.condense ? 0x40 : 0) | - (font.extend ? 0x80 : 0); - o.write_shift(1, grbit); - o.write_shift(1, 0); - return o; -} - -/* [MS-OLEDS] 2.3.1 and 2.3.2 */ -function parse_ClipboardFormatOrString(o, w) { - // $FlowIgnore - var ClipFmt = { 2: "BITMAP", 3: "METAFILEPICT", 8: "DIB", 14: "ENHMETAFILE" }; - var m = o.read_shift(4); - switch (m) { - case 0x00000000: return ""; - case 0xffffffff: case 0xfffffffe: return ClipFmt[o.read_shift(4)] || ""; - } - if (m > 0x190) throw new Error("Unsupported Clipboard: " + m.toString(16)); - o.l -= 4; - return o.read_shift(0, w == 1 ? "lpstr" : "lpwstr"); -} -function parse_ClipboardFormatOrAnsiString(o) { return parse_ClipboardFormatOrString(o, 1); } -function parse_ClipboardFormatOrUnicodeString(o) { return parse_ClipboardFormatOrString(o, 2); } - -/* [MS-OLEPS] 2.2 PropertyType */ -//var VT_EMPTY = 0x0000; -//var VT_NULL = 0x0001; -var VT_I2 = 0x0002; -var VT_I4 = 0x0003; -//var VT_R4 = 0x0004; -//var VT_R8 = 0x0005; -//var VT_CY = 0x0006; -//var VT_DATE = 0x0007; -//var VT_BSTR = 0x0008; -//var VT_ERROR = 0x000A; -var VT_BOOL = 0x000B; -var VT_VARIANT = 0x000C; -//var VT_DECIMAL = 0x000E; -//var VT_I1 = 0x0010; -//var VT_UI1 = 0x0011; -//var VT_UI2 = 0x0012; -var VT_UI4 = 0x0013; -//var VT_I8 = 0x0014; -//var VT_UI8 = 0x0015; -//var VT_INT = 0x0016; -//var VT_UINT = 0x0017; -var VT_LPSTR = 0x001E; -//var VT_LPWSTR = 0x001F; -var VT_FILETIME = 0x0040; -var VT_BLOB = 0x0041; -//var VT_STREAM = 0x0042; -//var VT_STORAGE = 0x0043; -//var VT_STREAMED_Object = 0x0044; -//var VT_STORED_Object = 0x0045; -//var VT_BLOB_Object = 0x0046; -var VT_CF = 0x0047; -//var VT_CLSID = 0x0048; -//var VT_VERSIONED_STREAM = 0x0049; -var VT_VECTOR = 0x1000; -//var VT_ARRAY = 0x2000; - -var VT_STRING = 0x0050; // 2.3.3.1.11 VtString -var VT_USTR = 0x0051; // 2.3.3.1.12 VtUnalignedString -var VT_CUSTOM = [VT_STRING, VT_USTR]; - -/* [MS-OSHARED] 2.3.3.2.2.1 Document Summary Information PIDDSI */ -var DocSummaryPIDDSI = { -0x01: { n: 'CodePage', t: VT_I2 }, -0x02: { n: 'Category', t: VT_STRING }, -0x03: { n: 'PresentationFormat', t: VT_STRING }, -0x04: { n: 'ByteCount', t: VT_I4 }, -0x05: { n: 'LineCount', t: VT_I4 }, -0x06: { n: 'ParagraphCount', t: VT_I4 }, -0x07: { n: 'SlideCount', t: VT_I4 }, -0x08: { n: 'NoteCount', t: VT_I4 }, -0x09: { n: 'HiddenCount', t: VT_I4 }, -0x0a: { n: 'MultimediaClipCount', t: VT_I4 }, -0x0b: { n: 'ScaleCrop', t: VT_BOOL }, -0x0c: { n: 'HeadingPairs', t: VT_VECTOR | VT_VARIANT }, -0x0d: { n: 'TitlesOfParts', t: VT_VECTOR | VT_LPSTR }, -0x0e: { n: 'Manager', t: VT_STRING }, -0x0f: { n: 'Company', t: VT_STRING }, -0x10: { n: 'LinksUpToDate', t: VT_BOOL }, -0x11: { n: 'CharacterCount', t: VT_I4 }, -0x13: { n: 'SharedDoc', t: VT_BOOL }, -0x16: { n: 'HyperlinksChanged', t: VT_BOOL }, -0x17: { n: 'AppVersion', t: VT_I4, p: 'version' }, -0x18: { n: 'DigSig', t: VT_BLOB }, -0x1A: { n: 'ContentType', t: VT_STRING }, -0x1B: { n: 'ContentStatus', t: VT_STRING }, -0x1C: { n: 'Language', t: VT_STRING }, -0x1D: { n: 'Version', t: VT_STRING }, -0xFF: {}, - /* [MS-OLEPS] 2.18 */ -0x80000000: { n: 'Locale', t: VT_UI4 }, -0x80000003: { n: 'Behavior', t: VT_UI4 }, -0x72627262: {} -}; - -/* [MS-OSHARED] 2.3.3.2.1.1 Summary Information Property Set PIDSI */ -var SummaryPIDSI = { -0x01: { n: 'CodePage', t: VT_I2 }, -0x02: { n: 'Title', t: VT_STRING }, -0x03: { n: 'Subject', t: VT_STRING }, -0x04: { n: 'Author', t: VT_STRING }, -0x05: { n: 'Keywords', t: VT_STRING }, -0x06: { n: 'Comments', t: VT_STRING }, -0x07: { n: 'Template', t: VT_STRING }, -0x08: { n: 'LastAuthor', t: VT_STRING }, -0x09: { n: 'RevNumber', t: VT_STRING }, -0x0A: { n: 'EditTime', t: VT_FILETIME }, -0x0B: { n: 'LastPrinted', t: VT_FILETIME }, -0x0C: { n: 'CreatedDate', t: VT_FILETIME }, -0x0D: { n: 'ModifiedDate', t: VT_FILETIME }, -0x0E: { n: 'PageCount', t: VT_I4 }, -0x0F: { n: 'WordCount', t: VT_I4 }, -0x10: { n: 'CharCount', t: VT_I4 }, -0x11: { n: 'Thumbnail', t: VT_CF }, -0x12: { n: 'Application', t: VT_STRING }, -0x13: { n: 'DocSecurity', t: VT_I4 }, -0xFF: {}, - /* [MS-OLEPS] 2.18 */ -0x80000000: { n: 'Locale', t: VT_UI4 }, -0x80000003: { n: 'Behavior', t: VT_UI4 }, -0x72627262: {} -}; - -var DocSummaryRE = evert_key(DocSummaryPIDDSI, "n"); -var SummaryRE = evert_key(SummaryPIDSI, "n"); - -/* [MS-XLS] 2.4.63 Country/Region codes */ -var CountryEnum = { -0x0001: "US", // United States -0x0002: "CA", // Canada -0x0003: "", // Latin America (except Brazil) -0x0007: "RU", // Russia -0x0014: "EG", // Egypt -0x001E: "GR", // Greece -0x001F: "NL", // Netherlands -0x0020: "BE", // Belgium -0x0021: "FR", // France -0x0022: "ES", // Spain -0x0024: "HU", // Hungary -0x0027: "IT", // Italy -0x0029: "CH", // Switzerland -0x002B: "AT", // Austria -0x002C: "GB", // United Kingdom -0x002D: "DK", // Denmark -0x002E: "SE", // Sweden -0x002F: "NO", // Norway -0x0030: "PL", // Poland -0x0031: "DE", // Germany -0x0034: "MX", // Mexico -0x0037: "BR", // Brazil -0x003d: "AU", // Australia -0x0040: "NZ", // New Zealand -0x0042: "TH", // Thailand -0x0051: "JP", // Japan -0x0052: "KR", // Korea -0x0054: "VN", // Viet Nam -0x0056: "CN", // China -0x005A: "TR", // Turkey -0x0069: "JS", // Ramastan -0x00D5: "DZ", // Algeria -0x00D8: "MA", // Morocco -0x00DA: "LY", // Libya -0x015F: "PT", // Portugal -0x0162: "IS", // Iceland -0x0166: "FI", // Finland -0x01A4: "CZ", // Czech Republic -0x0376: "TW", // Taiwan -0x03C1: "LB", // Lebanon -0x03C2: "JO", // Jordan -0x03C3: "SY", // Syria -0x03C4: "IQ", // Iraq -0x03C5: "KW", // Kuwait -0x03C6: "SA", // Saudi Arabia -0x03CB: "AE", // United Arab Emirates -0x03CC: "IL", // Israel -0x03CE: "QA", // Qatar -0x03D5: "IR", // Iran -0xFFFF: "US" // United States -}; - -/* [MS-XLS] 2.5.127 */ -var XLSFillPattern = [ - null, - 'solid', - 'mediumGray', - 'darkGray', - 'lightGray', - 'darkHorizontal', - 'darkVertical', - 'darkDown', - 'darkUp', - 'darkGrid', - 'darkTrellis', - 'lightHorizontal', - 'lightVertical', - 'lightDown', - 'lightUp', - 'lightGrid', - 'lightTrellis', - 'gray125', - 'gray0625' -]; - -function rgbify(arr) { return arr.map(function(x) { return [(x>>16)&255,(x>>8)&255,x&255]; }); } - -/* [MS-XLS] 2.5.161 */ -/* [MS-XLSB] 2.5.75 Icv */ -var _XLSIcv = rgbify([ - /* Color Constants */ - 0x000000, - 0xFFFFFF, - 0xFF0000, - 0x00FF00, - 0x0000FF, - 0xFFFF00, - 0xFF00FF, - 0x00FFFF, - - /* Overridable Defaults */ - 0x000000, - 0xFFFFFF, - 0xFF0000, - 0x00FF00, - 0x0000FF, - 0xFFFF00, - 0xFF00FF, - 0x00FFFF, - - 0x800000, - 0x008000, - 0x000080, - 0x808000, - 0x800080, - 0x008080, - 0xC0C0C0, - 0x808080, - 0x9999FF, - 0x993366, - 0xFFFFCC, - 0xCCFFFF, - 0x660066, - 0xFF8080, - 0x0066CC, - 0xCCCCFF, - - 0x000080, - 0xFF00FF, - 0xFFFF00, - 0x00FFFF, - 0x800080, - 0x800000, - 0x008080, - 0x0000FF, - 0x00CCFF, - 0xCCFFFF, - 0xCCFFCC, - 0xFFFF99, - 0x99CCFF, - 0xFF99CC, - 0xCC99FF, - 0xFFCC99, - - 0x3366FF, - 0x33CCCC, - 0x99CC00, - 0xFFCC00, - 0xFF9900, - 0xFF6600, - 0x666699, - 0x969696, - 0x003366, - 0x339966, - 0x003300, - 0x333300, - 0x993300, - 0x993366, - 0x333399, - 0x333333, - - /* Other entries to appease BIFF8/12 */ - 0xFFFFFF, /* 0x40 icvForeground ?? */ - 0x000000, /* 0x41 icvBackground ?? */ - 0x000000, /* 0x42 icvFrame ?? */ - 0x000000, /* 0x43 icv3D ?? */ - 0x000000, /* 0x44 icv3DText ?? */ - 0x000000, /* 0x45 icv3DHilite ?? */ - 0x000000, /* 0x46 icv3DShadow ?? */ - 0x000000, /* 0x47 icvHilite ?? */ - 0x000000, /* 0x48 icvCtlText ?? */ - 0x000000, /* 0x49 icvCtlScrl ?? */ - 0x000000, /* 0x4A icvCtlInv ?? */ - 0x000000, /* 0x4B icvCtlBody ?? */ - 0x000000, /* 0x4C icvCtlFrame ?? */ - 0x000000, /* 0x4D icvCtlFore ?? */ - 0x000000, /* 0x4E icvCtlBack ?? */ - 0x000000, /* 0x4F icvCtlNeutral */ - 0x000000, /* 0x50 icvInfoBk ?? */ - 0x000000 /* 0x51 icvInfoText ?? */ -]); -var XLSIcv = dup(_XLSIcv); - -/* [MS-XLSB] 2.5.97.2 */ -var BErr = { -0x00: "#NULL!", -0x07: "#DIV/0!", -0x0F: "#VALUE!", -0x17: "#REF!", -0x1D: "#NAME?", -0x24: "#NUM!", -0x2A: "#N/A", -0x2B: "#GETTING_DATA", -0xFF: "#WTF?" -}; -var RBErr = evert_num(BErr); -/* Parts enumerated in OPC spec, MS-XLSB and MS-XLSX */ -/* 12.3 Part Summary */ -/* 14.2 Part Summary */ -/* [MS-XLSX] 2.1 Part Enumerations ; [MS-XLSB] 2.1.7 Part Enumeration */ -var ct2type/*{[string]:string}*/ = ({ - /* Workbook */ - "application/vnd.openxmlformats-officedocument.spreadsheetml.sheet.main+xml": "workbooks", - - /* Worksheet */ - "application/vnd.ms-excel.binIndexWs": "TODO", /* Binary Index */ - - /* Macrosheet */ - "application/vnd.ms-excel.intlmacrosheet": "TODO", - "application/vnd.ms-excel.binIndexMs": "TODO", /* Binary Index */ - - /* File Properties */ - "application/vnd.openxmlformats-package.core-properties+xml": "coreprops", - "application/vnd.openxmlformats-officedocument.custom-properties+xml": "custprops", - "application/vnd.openxmlformats-officedocument.extended-properties+xml": "extprops", - - /* Custom Data Properties */ - "application/vnd.openxmlformats-officedocument.customXmlProperties+xml": "TODO", - "application/vnd.openxmlformats-officedocument.spreadsheetml.customProperty": "TODO", - - /* PivotTable */ - "application/vnd.ms-excel.pivotTable": "TODO", - "application/vnd.openxmlformats-officedocument.spreadsheetml.pivotTable+xml": "TODO", - - /* Chart Objects */ - "application/vnd.openxmlformats-officedocument.drawingml.chart+xml": "TODO", - - /* Chart Colors */ - "application/vnd.ms-office.chartcolorstyle+xml": "TODO", - - /* Chart Style */ - "application/vnd.ms-office.chartstyle+xml": "TODO", - - /* Chart Advanced */ - "application/vnd.ms-office.chartex+xml": "TODO", - - /* Calculation Chain */ - "application/vnd.ms-excel.calcChain": "calcchains", - "application/vnd.openxmlformats-officedocument.spreadsheetml.calcChain+xml": "calcchains", - - /* Printer Settings */ - "application/vnd.openxmlformats-officedocument.spreadsheetml.printerSettings": "TODO", - - /* ActiveX */ - "application/vnd.ms-office.activeX": "TODO", - "application/vnd.ms-office.activeX+xml": "TODO", - - /* Custom Toolbars */ - "application/vnd.ms-excel.attachedToolbars": "TODO", - - /* External Data Connections */ - "application/vnd.ms-excel.connections": "TODO", - "application/vnd.openxmlformats-officedocument.spreadsheetml.connections+xml": "TODO", - - /* External Links */ - "application/vnd.ms-excel.externalLink": "links", - "application/vnd.openxmlformats-officedocument.spreadsheetml.externalLink+xml": "links", - - /* Metadata */ - "application/vnd.ms-excel.sheetMetadata": "TODO", - "application/vnd.openxmlformats-officedocument.spreadsheetml.sheetMetadata+xml": "TODO", - - /* PivotCache */ - "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", - - /* Query Table */ - "application/vnd.ms-excel.queryTable": "TODO", - "application/vnd.openxmlformats-officedocument.spreadsheetml.queryTable+xml": "TODO", - - /* Shared Workbook */ - "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", - - /* Single Cell Table */ - "application/vnd.ms-excel.tableSingleCells": "TODO", - "application/vnd.openxmlformats-officedocument.spreadsheetml.tableSingleCells+xml": "TODO", - - /* Slicer */ - "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", - - /* Sort Map */ - "application/vnd.ms-excel.wsSortMap": "TODO", - - /* Table */ - "application/vnd.ms-excel.table": "TODO", - "application/vnd.openxmlformats-officedocument.spreadsheetml.table+xml": "TODO", - - /* Themes */ - "application/vnd.openxmlformats-officedocument.theme+xml": "themes", - - /* Theme Override */ - "application/vnd.openxmlformats-officedocument.themeOverride+xml": "TODO", - - /* Timeline */ - "application/vnd.ms-excel.Timeline+xml": "TODO", /* verify */ - "application/vnd.ms-excel.TimelineCache+xml": "TODO", /* verify */ - - /* VBA */ - "application/vnd.ms-office.vbaProject": "vba", - "application/vnd.ms-office.vbaProjectSignature": "TODO", - - /* Volatile Dependencies */ - "application/vnd.ms-office.volatileDependencies": "TODO", - "application/vnd.openxmlformats-officedocument.spreadsheetml.volatileDependencies+xml": "TODO", - - /* Control Properties */ - "application/vnd.ms-excel.controlproperties+xml": "TODO", - - /* Data Model */ - "application/vnd.openxmlformats-officedocument.model+data": "TODO", - - /* Survey */ - "application/vnd.ms-excel.Survey+xml": "TODO", - - /* Drawing */ - "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", - - /* VML */ - "application/vnd.openxmlformats-officedocument.vmlDrawing": "TODO", - - "application/vnd.openxmlformats-package.relationships+xml": "rels", - "application/vnd.openxmlformats-officedocument.oleObject": "TODO", - - /* Image */ - "image/png": "TODO", - - "sheet": "js" -}); - -var CT_LIST = (function(){ - var o = { - 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: { /* Shared Strings */ - xlsx: "application/vnd.openxmlformats-officedocument.spreadsheetml.sharedStrings+xml", - xlsb: "application/vnd.ms-excel.sharedStrings" - }, - comments: { /* Comments */ - xlsx: "application/vnd.openxmlformats-officedocument.spreadsheetml.comments+xml", - xlsb: "application/vnd.ms-excel.comments" - }, - sheets: { /* Worksheet */ - xlsx: "application/vnd.openxmlformats-officedocument.spreadsheetml.worksheet+xml", - xlsb: "application/vnd.ms-excel.worksheet" - }, - charts: { /* Chartsheet */ - xlsx: "application/vnd.openxmlformats-officedocument.spreadsheetml.chartsheet+xml", - xlsb: "application/vnd.ms-excel.chartsheet" - }, - dialogs: { /* Dialogsheet */ - xlsx: "application/vnd.openxmlformats-officedocument.spreadsheetml.dialogsheet+xml", - xlsb: "application/vnd.ms-excel.dialogsheet" - }, - macros: { /* Macrosheet (Excel 4.0 Macros) */ - xlsx: "application/vnd.ms-excel.macrosheet+xml", - xlsb: "application/vnd.ms-excel.macrosheet" - }, - styles: { /* Styles */ - xlsx: "application/vnd.openxmlformats-officedocument.spreadsheetml.styles+xml", - xlsb: "application/vnd.ms-excel.styles" - } - }; - keys(o).forEach(function(k) { ["xlsm", "xlam"].forEach(function(v) { if(!o[k][v]) o[k][v] = o[k].xlsx; }); }); - keys(o).forEach(function(k){ keys(o[k]).forEach(function(v) { ct2type[o[k][v]] = k; }); }); - return o; -})(); - -var type2ct/*{[string]:Array}*/ = evert_arr(ct2type); - -XMLNS.CT = 'http://schemas.openxmlformats.org/package/2006/content-types'; - -function new_ct() { - return ({ - workbooks:[], sheets:[], charts:[], dialogs:[], macros:[], - rels:[], strs:[], comments:[], links:[], - coreprops:[], extprops:[], custprops:[], themes:[], styles:[], - calcchains:[], vba: [], drawings: [], - TODO:[], xmlns: "" }); -} - -function parse_ct(data) { - var ct = new_ct(); - if(!data || !data.match) return ct; - var ctext = {}; - (data.match(tagregex)||[]).forEach(function(x) { - var y = parsexmltag(x); - switch(y[0].replace(nsregex,"<")) { - case ' 0 ? ct.calcchains[0] : ""; - ct.sst = ct.strs.length > 0 ? ct.strs[0] : ""; - ct.style = ct.styles.length > 0 ? ct.styles[0] : ""; - ct.defaults = ctext; - delete ct.calcchains; - return ct; -} - -var CTYPE_XML_ROOT = writextag('Types', null, { - 'xmlns': XMLNS.CT, - 'xmlns:xsd': XMLNS.xsd, - 'xmlns:xsi': XMLNS.xsi -}); - -var CTYPE_DEFAULTS = [ - ['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'], - /* from test files */ - ['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', type2ct.rels[0]] -].map(function(x) { - return writextag('Default', null, {'Extension':x[0], 'ContentType': x[1]}); -}); - -function write_ct(ct, opts) { - var o = [], v; - o[o.length] = (XML_HEADER); - o[o.length] = (CTYPE_XML_ROOT); - o = o.concat(CTYPE_DEFAULTS); - - /* only write first instance */ - var f1 = function(w) { - if(ct[w] && ct[w].length > 0) { - v = ct[w][0]; - o[o.length] = (writextag('Override', null, { - 'PartName': (v[0] == '/' ? "":"/") + v, - 'ContentType': CT_LIST[w][opts.bookType || 'xlsx'] - })); - } - }; - - /* book type-specific */ - var f2 = function(w) { - (ct[w]||[]).forEach(function(v) { - o[o.length] = (writextag('Override', null, { - 'PartName': (v[0] == '/' ? "":"/") + v, - 'ContentType': CT_LIST[w][opts.bookType || 'xlsx'] - })); - }); - }; - - /* standard type */ - var f3 = function(t) { - (ct[t]||[]).forEach(function(v) { - o[o.length] = (writextag('Override', null, { - 'PartName': (v[0] == '/' ? "":"/") + v, - 'ContentType': type2ct[t][0] - })); - }); - }; - - f1('workbooks'); - f2('sheets'); - f2('charts'); - f3('themes'); - ['strs', 'styles'].forEach(f1); - ['coreprops', 'extprops', 'custprops'].forEach(f3); - f3('vba'); - f3('comments'); - f3('drawings'); - if(o.length>2){ o[o.length] = (''); o[1]=o[1].replace("/>",">"); } - return o.join(""); -} -/* 9.3 Relationships */ -var RELS = ({ - 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", - VBA: "http://schemas.microsoft.com/office/2006/relationships/vbaProject" -}); - -/* 9.3.3 Representing Relationships */ -function get_rels_path(file) { - var n = file.lastIndexOf("/"); - return file.slice(0,n+1) + '_rels/' + file.slice(n+1) + ".rels"; -} - -function parse_rels(data, currentFilePath) { - var rels = {"!id":{}}; - if (!data) return rels; - if (currentFilePath.charAt(0) !== '/') { - currentFilePath = '/'+currentFilePath; - } - var hash = {}; - - (data.match(tagregex)||[]).forEach(function(x) { - var y = parsexmltag(x); - /* 9.3.2.2 OPC_Relationships */ - if (y[0] === '2){ o[o.length] = (''); o[1]=o[1].replace("/>",">"); } - return o.join(""); -} - -var RELS_EXTERN = [RELS.HLINK, RELS.XPATH, RELS.XMISS]; -function add_rels(rels, rId, f, type, relobj, targetmode) { - if(!relobj) relobj = {}; - if(!rels['!id']) rels['!id'] = {}; - if(rId < 0) for(rId = 1; rels['!id']['rId' + rId]; ++rId){/* empty */} - relobj.Id = 'rId' + rId; - relobj.Type = type; - relobj.Target = f; - if(targetmode) relobj.TargetMode = targetmode; - else if(RELS_EXTERN.indexOf(relobj.Type) > -1) relobj.TargetMode = "External"; - if(rels['!id'][relobj.Id]) throw new Error("Cannot rewrite rId " + rId); - rels['!id'][relobj.Id] = relobj; - rels[('/' + relobj.Target).replace("//","/")] = relobj; - return rId; -} -/* Open Document Format for Office Applications (OpenDocument) Version 1.2 */ -/* Part 3 Section 4 Manifest File */ -var CT_ODS = "application/vnd.oasis.opendocument.spreadsheet"; -function parse_manifest(d, opts) { - var str = xlml_normalize(d); - var Rn; - var FEtag; - while((Rn = xlmlregex.exec(str))) switch(Rn[3]) { - case 'manifest': break; // 4.2 - case 'file-entry': // 4.3 - FEtag = parsexmltag(Rn[0], false); - if(FEtag.path == '/' && FEtag.type !== CT_ODS) throw new Error("This OpenDocument is not a spreadsheet"); - break; - case 'encryption-data': // 4.4 - case 'algorithm': // 4.5 - case 'start-key-generation': // 4.6 - case 'key-derivation': // 4.7 - throw new Error("Unsupported ODS Encryption"); - default: if(opts && opts.WTF) throw Rn; - } -} - -function write_manifest(manifest) { - var o = [XML_HEADER]; - o.push('\n'); - o.push(' \n'); - for(var i = 0; i < manifest.length; ++i) o.push(' \n'); - o.push(''); - return o.join(""); -} - -/* Part 3 Section 6 Metadata Manifest File */ -function write_rdf_type(file, res, tag) { - return [ - ' \n', - ' \n', - ' \n' - ].join(""); -} -function write_rdf_has(base, file) { - return [ - ' \n', - ' \n', - ' \n' - ].join(""); -} -function write_rdf(rdf) { - var o = [XML_HEADER]; - o.push('\n'); - for(var i = 0; i != rdf.length; ++i) { - o.push(write_rdf_type(rdf[i][0], rdf[i][1])); - o.push(write_rdf_has("",rdf[i][0])); - } - o.push(write_rdf_type("","Document", "pkg")); - o.push(''); - return o.join(""); -} -/* TODO: pull properties */ -var write_meta_ods = (function() { - var payload = 'Sheet' + 'JS ' + XLSX.version + ''; - return function wmo() { - return payload; - }; -})(); - -/* ECMA-376 Part II 11.1 Core Properties Part */ -/* [MS-OSHARED] 2.3.3.2.[1-2].1 (PIDSI/PIDDSI) */ -var CORE_PROPS = [ - ["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'] -]; - -XMLNS.CORE_PROPS = "http://schemas.openxmlformats.org/package/2006/metadata/core-properties"; -RELS.CORE_PROPS = 'http://schemas.openxmlformats.org/package/2006/relationships/metadata/core-properties'; - -var CORE_PROPS_REGEX = (function() { - var r = new Array(CORE_PROPS.length); - for(var i = 0; i < CORE_PROPS.length; ++i) { - var f = CORE_PROPS[i]; - var g = "(?:"+ f[0].slice(0,f[0].indexOf(":")) +":)"+ f[0].slice(f[0].indexOf(":")+1); - r[i] = new RegExp("<" + g + "[^>]*>([\\s\\S]*?)<\/" + g + ">"); - } - return r; -})(); - -function parse_core_props(data) { - var p = {}; - data = utf8read(data); - - for(var i = 0; i < CORE_PROPS.length; ++i) { - var f = CORE_PROPS[i], cur = data.match(CORE_PROPS_REGEX[i]); - if(cur != null && cur.length > 0) p[f[1]] = unescapexml(cur[1]); - if(f[2] === 'date' && p[f[1]]) p[f[1]] = parseDate(p[f[1]]); - } - - return p; -} - -var CORE_PROPS_XML_ROOT = writextag('cp:coreProperties', null, { - //'xmlns': XMLNS.CORE_PROPS, - 'xmlns:cp': XMLNS.CORE_PROPS, - 'xmlns:dc': XMLNS.dc, - 'xmlns:dcterms': XMLNS.dcterms, - 'xmlns:dcmitype': XMLNS.dcmitype, - 'xmlns:xsi': XMLNS.xsi -}); - -function cp_doit(f, g, h, o, p) { - if(p[f] != null || g == null || g === "") return; - p[f] = g; - g = escapexml(g); - o[o.length] = (h ? writextag(f,g,h) : writetag(f,g)); -} - -function write_core_props(cp, _opts) { - var opts = _opts || {}; - var o = [XML_HEADER, CORE_PROPS_XML_ROOT], p = {}; - if(!cp && !opts.Props) return o.join(""); - - if(cp) { - if(cp.CreatedDate != null) cp_doit("dcterms:created", typeof cp.CreatedDate === "string" ? cp.CreatedDate : write_w3cdtf(cp.CreatedDate, opts.WTF), {"xsi:type":"dcterms:W3CDTF"}, o, p); - if(cp.ModifiedDate != null) cp_doit("dcterms:modified", typeof cp.ModifiedDate === "string" ? cp.ModifiedDate : write_w3cdtf(cp.ModifiedDate, opts.WTF), {"xsi:type":"dcterms:W3CDTF"}, o, p); - } - - for(var i = 0; i != CORE_PROPS.length; ++i) { - var f = CORE_PROPS[i]; - var v = opts.Props && opts.Props[f[1]] != null ? opts.Props[f[1]] : cp ? cp[f[1]] : null; - if(v === true) v = "1"; - else if(v === false) v = "0"; - else if(typeof v == "number") v = String(v); - if(v != null) cp_doit(f[0], v, null, o, p); - } - if(o.length>2){ o[o.length] = (''); o[1]=o[1].replace("/>",">"); } - return o.join(""); -} -/* 15.2.12.3 Extended File Properties Part */ -/* [MS-OSHARED] 2.3.3.2.[1-2].1 (PIDSI/PIDDSI) */ -var EXT_PROPS = [ - ["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"] -]; - -XMLNS.EXT_PROPS = "http://schemas.openxmlformats.org/officeDocument/2006/extended-properties"; -RELS.EXT_PROPS = 'http://schemas.openxmlformats.org/officeDocument/2006/relationships/extended-properties'; - -var PseudoPropsPairs = [ - "Worksheets", "SheetNames", - "NamedRanges", "DefinedNames", - "Chartsheets", "ChartNames" -]; -function load_props_pairs(HP, TOP, props, opts) { - var v = []; - if(typeof HP == "string") v = parseVector(HP, opts); - else for(var j = 0; j < HP.length; ++j) v = v.concat(HP[j].map(function(hp) { return {v:hp}; })); - var parts = (typeof TOP == "string") ? parseVector(TOP, opts).map(function (x) { return x.v; }) : TOP; - var idx = 0, len = 0; - if(parts.length > 0) for(var i = 0; i !== v.length; i += 2) { - len = +(v[i+1].v); - switch(v[i].v) { - case "Worksheets": - case "工作表": - case "Листы": - case "أوراق العمل": - case "ワークシート": - case "גליונות עבודה": - case "Arbeitsblätter": - case "Çalışma Sayfaları": - case "Feuilles de calcul": - case "Fogli di lavoro": - case "Folhas de cálculo": - case "Planilhas": - case "Regneark": - case "Hojas de cálculo": - case "Werkbladen": - props.Worksheets = len; - props.SheetNames = parts.slice(idx, idx + len); - break; - - case "Named Ranges": - case "Rangos con nombre": - case "名前付き一覧": - case "Benannte Bereiche": - case "Navngivne områder": - props.NamedRanges = len; - props.DefinedNames = parts.slice(idx, idx + len); - break; - - case "Charts": - case "Diagramme": - props.Chartsheets = len; - props.ChartNames = parts.slice(idx, idx + len); - break; - } - idx += len; - } -} - -function parse_ext_props(data, p, opts) { - var q = {}; if(!p) p = {}; - data = utf8read(data); - - EXT_PROPS.forEach(function(f) { - var xml = (data.match(matchtag(f[0]))||[])[1]; - switch(f[2]) { - case "string": if(xml) p[f[1]] = unescapexml(xml); break; - case "bool": p[f[1]] = xml === "true"; break; - case "raw": - var cur = data.match(new RegExp("<" + f[0] + "[^>]*>([\\s\\S]*?)<\/" + f[0] + ">")); - if(cur && cur.length > 0) q[f[1]] = cur[1]; - break; - } - }); - - if(q.HeadingPairs && q.TitlesOfParts) load_props_pairs(q.HeadingPairs, q.TitlesOfParts, p, opts); - - return p; -} - -var EXT_PROPS_XML_ROOT = writextag('Properties', null, { - 'xmlns': XMLNS.EXT_PROPS, - 'xmlns:vt': XMLNS.vt -}); - -function write_ext_props(cp) { - var o = [], W = writextag; - if(!cp) cp = {}; - cp.Application = "SheetJS"; - o[o.length] = (XML_HEADER); - o[o.length] = (EXT_PROPS_XML_ROOT); - - EXT_PROPS.forEach(function(f) { - if(cp[f[1]] === undefined) return; - var v; - switch(f[2]) { - case 'string': v = escapexml(String(cp[f[1]])); break; - case 'bool': v = cp[f[1]] ? 'true' : 'false'; break; - } - if(v !== undefined) o[o.length] = (W(f[0], v)); - }); - - /* TODO: HeadingPairs, TitlesOfParts */ - o[o.length] = (W('HeadingPairs', W('vt:vector', W('vt:variant', 'Worksheets')+W('vt:variant', W('vt:i4', String(cp.Worksheets))), {size:2, baseType:"variant"}))); - o[o.length] = (W('TitlesOfParts', W('vt:vector', cp.SheetNames.map(function(s) { return "" + escapexml(s) + ""; }).join(""), {size: cp.Worksheets, baseType:"lpstr"}))); - if(o.length>2){ o[o.length] = (''); o[1]=o[1].replace("/>",">"); } - return o.join(""); -} -/* 15.2.12.2 Custom File Properties Part */ -XMLNS.CUST_PROPS = "http://schemas.openxmlformats.org/officeDocument/2006/custom-properties"; -RELS.CUST_PROPS = 'http://schemas.openxmlformats.org/officeDocument/2006/relationships/custom-properties'; - -var custregex = /<[^>]+>[^<]*/g; -function parse_cust_props(data, opts) { - var p = {}, name = ""; - var m = data.match(custregex); - if(m) for(var i = 0; i != m.length; ++i) { - var x = m[i], y = parsexmltag(x); - switch(y[0]) { - case '': name = null; break; - default: if (x.indexOf(''); - var type = toks[0].slice(4), text = toks[1]; - /* 22.4.2.32 (CT_Variant). Omit the binary types from 22.4 (Variant Types) */ - switch(type) { - case 'lpstr': case 'bstr': case 'lpwstr': - p[name] = unescapexml(text); - break; - case 'bool': - p[name] = parsexmlbool(text); - break; - case 'i1': case 'i2': case 'i4': case 'i8': case 'int': case 'uint': - p[name] = parseInt(text, 10); - break; - case 'r4': case 'r8': case 'decimal': - p[name] = parseFloat(text); - break; - case 'filetime': case 'date': - p[name] = parseDate(text); - break; - case 'cy': case 'error': - p[name] = unescapexml(text); - break; - default: - if(type.slice(-1) == '/') break; - if(opts.WTF && typeof console !== 'undefined') console.warn('Unexpected', x, type, toks); - } - } else if(x.slice(0,2) === "2){ o[o.length] = ''; o[1]=o[1].replace("/>",">"); } - return o.join(""); -} -/* Common Name -> XLML Name */ -var XLMLDocPropsMap = { - Title: 'Title', - Subject: 'Subject', - Author: 'Author', - Keywords: 'Keywords', - Comments: 'Description', - LastAuthor: 'LastAuthor', - RevNumber: 'Revision', - Application: 'AppName', - /* TotalTime: 'TotalTime', */ - LastPrinted: 'LastPrinted', - CreatedDate: 'Created', - ModifiedDate: 'LastSaved', - /* Pages */ - /* Words */ - /* Characters */ - Category: 'Category', - /* PresentationFormat */ - Manager: 'Manager', - Company: 'Company', - /* Guid */ - /* HyperlinkBase */ - /* Bytes */ - /* Lines */ - /* Paragraphs */ - /* CharactersWithSpaces */ - AppVersion: 'Version', - - ContentStatus: 'ContentStatus', /* NOTE: missing from schema */ - Identifier: 'Identifier', /* NOTE: missing from schema */ - Language: 'Language' /* NOTE: missing from schema */ -}; -var evert_XLMLDPM = evert(XLMLDocPropsMap); - -function xlml_set_prop(Props, tag, val) { - tag = evert_XLMLDPM[tag] || tag; - Props[tag] = val; -} - -function xlml_write_docprops(Props, opts) { - var o = []; - keys(XLMLDocPropsMap).map(function(m) { - for(var i = 0; i < CORE_PROPS.length; ++i) if(CORE_PROPS[i][1] == m) return CORE_PROPS[i]; - for(i = 0; i < EXT_PROPS.length; ++i) if(EXT_PROPS[i][1] == m) return EXT_PROPS[i]; - throw m; - }).forEach(function(p) { - if(Props[p[1]] == null) return; - var m = opts && opts.Props && opts.Props[p[1]] != null ? opts.Props[p[1]] : Props[p[1]]; - switch(p[2]) { - case 'date': m = new Date(m).toISOString().replace(/\.\d*Z/,"Z"); break; - } - if(typeof m == 'number') m = String(m); - else if(m === true || m === false) { m = m ? "1" : "0"; } - else if(m instanceof Date) m = new Date(m).toISOString().replace(/\.\d*Z/,""); - o.push(writetag(XLMLDocPropsMap[p[1]] || p[1], m)); - }); - return writextag('DocumentProperties', o.join(""), {xmlns:XLMLNS.o }); -} -function xlml_write_custprops(Props, Custprops) { - var BLACKLIST = ["Worksheets","SheetNames"]; - var T = 'CustomDocumentProperties'; - var o = []; - if(Props) keys(Props).forEach(function(k) { -if(!Object.prototype.hasOwnProperty.call(Props, k)) return; - for(var i = 0; i < CORE_PROPS.length; ++i) if(k == CORE_PROPS[i][1]) return; - for(i = 0; i < EXT_PROPS.length; ++i) if(k == EXT_PROPS[i][1]) return; - for(i = 0; i < BLACKLIST.length; ++i) if(k == BLACKLIST[i]) return; - - var m = Props[k]; - var t = "string"; - if(typeof m == 'number') { t = "float"; m = String(m); } - else if(m === true || m === false) { t = "boolean"; m = m ? "1" : "0"; } - else m = String(m); - o.push(writextag(escapexmltag(k), m, {"dt:dt":t})); - }); - if(Custprops) keys(Custprops).forEach(function(k) { -if(!Object.prototype.hasOwnProperty.call(Custprops, k)) return; - if(Props && Object.prototype.hasOwnProperty.call(Props, k)) return; - var m = Custprops[k]; - var t = "string"; - if(typeof m == 'number') { t = "float"; m = String(m); } - else if(m === true || m === false) { t = "boolean"; m = m ? "1" : "0"; } - else if(m instanceof Date) { t = "dateTime.tz"; m = m.toISOString(); } - else m = String(m); - o.push(writextag(escapexmltag(k), m, {"dt:dt":t})); - }); - return '<' + T + ' xmlns="' + XLMLNS.o + '">' + o.join("") + ''; -} -/* [MS-DTYP] 2.3.3 FILETIME */ -/* [MS-OLEDS] 2.1.3 FILETIME (Packet Version) */ -/* [MS-OLEPS] 2.8 FILETIME (Packet Version) */ -function parse_FILETIME(blob) { - var dwLowDateTime = blob.read_shift(4), dwHighDateTime = blob.read_shift(4); - return new Date(((dwHighDateTime/1e7*Math.pow(2,32) + dwLowDateTime/1e7) - 11644473600)*1000).toISOString().replace(/\.000/,""); -} -function write_FILETIME(time) { - var date = (typeof time == "string") ? new Date(Date.parse(time)) : time; - var t = date.getTime() / 1000 + 11644473600; - var l = t % Math.pow(2,32), h = (t - l) / Math.pow(2,32); - l *= 1e7; h *= 1e7; - var w = (l / Math.pow(2,32)) | 0; - if(w > 0) { l = l % Math.pow(2,32); h += w; } - var o = new_buf(8); o.write_shift(4, l); o.write_shift(4, h); return o; -} - -/* [MS-OSHARED] 2.3.3.1.4 Lpstr */ -function parse_lpstr(blob, type, pad) { - var start = blob.l; - var str = blob.read_shift(0, 'lpstr-cp'); - if(pad) while((blob.l - start) & 3) ++blob.l; - return str; -} - -/* [MS-OSHARED] 2.3.3.1.6 Lpwstr */ -function parse_lpwstr(blob, type, pad) { - var str = blob.read_shift(0, 'lpwstr'); - if(pad) blob.l += (4 - ((str.length+1) & 3)) & 3; - return str; -} - - -/* [MS-OSHARED] 2.3.3.1.11 VtString */ -/* [MS-OSHARED] 2.3.3.1.12 VtUnalignedString */ -function parse_VtStringBase(blob, stringType, pad) { - if(stringType === 0x1F /*VT_LPWSTR*/) return parse_lpwstr(blob); - return parse_lpstr(blob, stringType, pad); -} - -function parse_VtString(blob, t, pad) { return parse_VtStringBase(blob, t, pad === false ? 0: 4); } -function parse_VtUnalignedString(blob, t) { if(!t) throw new Error("VtUnalignedString must have positive length"); return parse_VtStringBase(blob, t, 0); } - -/* [MS-OSHARED] 2.3.3.1.7 VtVecLpwstrValue */ -function parse_VtVecLpwstrValue(blob) { - var length = blob.read_shift(4); - var ret = []; - for(var i = 0; i != length; ++i) { - var start = blob.l; - ret[i] = blob.read_shift(0, 'lpwstr').replace(chr0,''); - if((blob.l - start) & 0x02) blob.l += 2; - } - return ret; -} - -/* [MS-OSHARED] 2.3.3.1.9 VtVecUnalignedLpstrValue */ -function parse_VtVecUnalignedLpstrValue(blob) { - var length = blob.read_shift(4); - var ret = []; - for(var i = 0; i != length; ++i) ret[i] = blob.read_shift(0, 'lpstr-cp').replace(chr0,''); - return ret; -} - - -/* [MS-OSHARED] 2.3.3.1.13 VtHeadingPair */ -function parse_VtHeadingPair(blob) { - var start = blob.l; - var headingString = parse_TypedPropertyValue(blob, VT_USTR); - if(blob[blob.l] == 0x00 && blob[blob.l+1] == 0x00 && ((blob.l - start) & 0x02)) blob.l += 2; - var headerParts = parse_TypedPropertyValue(blob, VT_I4); - return [headingString, headerParts]; -} - -/* [MS-OSHARED] 2.3.3.1.14 VtVecHeadingPairValue */ -function parse_VtVecHeadingPairValue(blob) { - var cElements = blob.read_shift(4); - var out = []; - for(var i = 0; i < cElements / 2; ++i) out.push(parse_VtHeadingPair(blob)); - return out; -} - -/* [MS-OLEPS] 2.18.1 Dictionary (uses 2.17, 2.16) */ -function parse_dictionary(blob,CodePage) { - var cnt = blob.read_shift(4); - var dict = ({}); - for(var j = 0; j != cnt; ++j) { - var pid = blob.read_shift(4); - var len = blob.read_shift(4); - dict[pid] = blob.read_shift(len, (CodePage === 0x4B0 ?'utf16le':'utf8')).replace(chr0,'').replace(chr1,'!'); - if(CodePage === 0x4B0 && (len % 2)) blob.l += 2; - } - if(blob.l & 3) blob.l = (blob.l>>2+1)<<2; - return dict; -} - -/* [MS-OLEPS] 2.9 BLOB */ -function parse_BLOB(blob) { - var size = blob.read_shift(4); - var bytes = blob.slice(blob.l,blob.l+size); - blob.l += size; - if((size & 3) > 0) blob.l += (4 - (size & 3)) & 3; - return bytes; -} - -/* [MS-OLEPS] 2.11 ClipboardData */ -function parse_ClipboardData(blob) { - // TODO - var o = {}; - o.Size = blob.read_shift(4); - //o.Format = blob.read_shift(4); - blob.l += o.Size + 3 - (o.Size - 1) % 4; - return o; -} - -/* [MS-OLEPS] 2.15 TypedPropertyValue */ -function parse_TypedPropertyValue(blob, type, _opts) { - var t = blob.read_shift(2), ret, opts = _opts||{}; - blob.l += 2; - if(type !== VT_VARIANT) - if(t !== type && VT_CUSTOM.indexOf(type)===-1 && !((type & 0xFFFE) == 0x101E && (t & 0xFFFE) == 0x101E)) throw new Error('Expected type ' + type + ' saw ' + t); - switch(type === VT_VARIANT ? t : type) { - case 0x02 /*VT_I2*/: ret = blob.read_shift(2, 'i'); if(!opts.raw) blob.l += 2; return ret; - case 0x03 /*VT_I4*/: ret = blob.read_shift(4, 'i'); return ret; - case 0x0B /*VT_BOOL*/: return blob.read_shift(4) !== 0x0; - case 0x13 /*VT_UI4*/: ret = blob.read_shift(4); return ret; - case 0x1E /*VT_LPSTR*/: return parse_lpstr(blob, t, 4).replace(chr0,''); - case 0x1F /*VT_LPWSTR*/: return parse_lpwstr(blob); - case 0x40 /*VT_FILETIME*/: return parse_FILETIME(blob); - case 0x41 /*VT_BLOB*/: return parse_BLOB(blob); - case 0x47 /*VT_CF*/: return parse_ClipboardData(blob); - case 0x50 /*VT_STRING*/: return parse_VtString(blob, t, !opts.raw).replace(chr0,''); - case 0x51 /*VT_USTR*/: return parse_VtUnalignedString(blob, t/*, 4*/).replace(chr0,''); - case 0x100C /*VT_VECTOR|VT_VARIANT*/: return parse_VtVecHeadingPairValue(blob); - case 0x101E /*VT_VECTOR|VT_LPSTR*/: - case 0x101F /*VT_VECTOR|VT_LPWSTR*/: - return t == 0x101F ? parse_VtVecLpwstrValue(blob) : parse_VtVecUnalignedLpstrValue(blob); - default: throw new Error("TypedPropertyValue unrecognized type " + type + " " + t); - } -} -function write_TypedPropertyValue(type, value) { - var o = new_buf(4), p = new_buf(4); - o.write_shift(4, type == 0x50 ? 0x1F : type); - switch(type) { - case 0x03 /*VT_I4*/: p.write_shift(-4, value); break; - case 0x05 /*VT_I4*/: p = new_buf(8); p.write_shift(8, value, 'f'); break; - case 0x0B /*VT_BOOL*/: p.write_shift(4, value ? 0x01 : 0x00); break; - case 0x40 /*VT_FILETIME*/: p = write_FILETIME(value); break; - case 0x1F /*VT_LPWSTR*/: - case 0x50 /*VT_STRING*/: -p = new_buf(4 + 2 * (value.length + 1) + (value.length % 2 ? 0 : 2)); - p.write_shift(4, value.length + 1); - p.write_shift(0, value, "dbcs"); - while(p.l != p.length) p.write_shift(1, 0); - break; - default: throw new Error("TypedPropertyValue unrecognized type " + type + " " + value); - } - return bconcat([o, p]); -} - -/* [MS-OLEPS] 2.20 PropertySet */ -function parse_PropertySet(blob, PIDSI) { - var start_addr = blob.l; - var size = blob.read_shift(4); - var NumProps = blob.read_shift(4); - var Props = [], i = 0; - var CodePage = 0; - var Dictionary = -1, DictObj = ({}); - for(i = 0; i != NumProps; ++i) { - var PropID = blob.read_shift(4); - var Offset = blob.read_shift(4); - Props[i] = [PropID, Offset + start_addr]; - } - Props.sort(function(x,y) { return x[1] - y[1]; }); - var PropH = {}; - for(i = 0; i != NumProps; ++i) { - if(blob.l !== Props[i][1]) { - var fail = true; - if(i>0 && PIDSI) switch(PIDSI[Props[i-1][0]].t) { - case 0x02 /*VT_I2*/: if(blob.l+2 === Props[i][1]) { blob.l+=2; fail = false; } break; - case 0x50 /*VT_STRING*/: if(blob.l <= Props[i][1]) { blob.l=Props[i][1]; fail = false; } break; - case 0x100C /*VT_VECTOR|VT_VARIANT*/: if(blob.l <= Props[i][1]) { blob.l=Props[i][1]; fail = false; } break; - } - if((!PIDSI||i==0) && blob.l <= Props[i][1]) { fail=false; blob.l = Props[i][1]; } - if(fail) throw new Error("Read Error: Expected address " + Props[i][1] + ' at ' + blob.l + ' :' + i); - } - if(PIDSI) { - var piddsi = PIDSI[Props[i][0]]; - PropH[piddsi.n] = parse_TypedPropertyValue(blob, piddsi.t, {raw:true}); - if(piddsi.p === 'version') PropH[piddsi.n] = String(PropH[piddsi.n] >> 16) + "." + ("0000" + String(PropH[piddsi.n] & 0xFFFF)).slice(-4); - if(piddsi.n == "CodePage") switch(PropH[piddsi.n]) { - case 0: PropH[piddsi.n] = 1252; - /* falls through */ - case 874: - case 932: - case 936: - case 949: - case 950: - case 1250: - case 1251: - case 1253: - case 1254: - case 1255: - case 1256: - case 1257: - case 1258: - case 10000: - case 1200: - case 1201: - case 1252: - case 65000: case -536: - case 65001: case -535: - set_cp(CodePage = (PropH[piddsi.n]>>>0) & 0xFFFF); break; - default: throw new Error("Unsupported CodePage: " + PropH[piddsi.n]); - } - } else { - if(Props[i][0] === 0x1) { - CodePage = PropH.CodePage = (parse_TypedPropertyValue(blob, VT_I2)); - set_cp(CodePage); - if(Dictionary !== -1) { - var oldpos = blob.l; - blob.l = Props[Dictionary][1]; - DictObj = parse_dictionary(blob,CodePage); - blob.l = oldpos; - } - } else if(Props[i][0] === 0) { - if(CodePage === 0) { Dictionary = i; blob.l = Props[i+1][1]; continue; } - DictObj = parse_dictionary(blob,CodePage); - } else { - var name = DictObj[Props[i][0]]; - var val; - /* [MS-OSHARED] 2.3.3.2.3.1.2 + PROPVARIANT */ - switch(blob[blob.l]) { - case 0x41 /*VT_BLOB*/: blob.l += 4; val = parse_BLOB(blob); break; - case 0x1E /*VT_LPSTR*/: blob.l += 4; val = parse_VtString(blob, blob[blob.l-4]).replace(/\u0000+$/,""); break; - case 0x1F /*VT_LPWSTR*/: blob.l += 4; val = parse_VtString(blob, blob[blob.l-4]).replace(/\u0000+$/,""); break; - case 0x03 /*VT_I4*/: blob.l += 4; val = blob.read_shift(4, 'i'); break; - case 0x13 /*VT_UI4*/: blob.l += 4; val = blob.read_shift(4); break; - case 0x05 /*VT_R8*/: blob.l += 4; val = blob.read_shift(8, 'f'); break; - case 0x0B /*VT_BOOL*/: blob.l += 4; val = parsebool(blob, 4); break; - case 0x40 /*VT_FILETIME*/: blob.l += 4; val = parseDate(parse_FILETIME(blob)); break; - default: throw new Error("unparsed value: " + blob[blob.l]); - } - PropH[name] = val; - } - } - } - blob.l = start_addr + size; /* step ahead to skip padding */ - return PropH; -} -var XLSPSSkip = [ "CodePage", "Thumbnail", "_PID_LINKBASE", "_PID_HLINKS", "SystemIdentifier", "FMTID" ].concat(PseudoPropsPairs); -function guess_property_type(val) { - switch(typeof val) { - case "boolean": return 0x0B; - case "number": return ((val|0)==val) ? 0x03 : 0x05; - case "string": return 0x1F; - case "object": if(val instanceof Date) return 0x40; break; - } - return -1; -} -function write_PropertySet(entries, RE, PIDSI) { - var hdr = new_buf(8), piao = [], prop = []; - var sz = 8, i = 0; - - var pr = new_buf(8), pio = new_buf(8); - pr.write_shift(4, 0x0002); - pr.write_shift(4, 0x04B0); - pio.write_shift(4, 0x0001); - prop.push(pr); piao.push(pio); - sz += 8 + pr.length; - - if(!RE) { - pio = new_buf(8); - pio.write_shift(4, 0); - piao.unshift(pio); - - var bufs = [new_buf(4)]; - bufs[0].write_shift(4, entries.length); - for(i = 0; i < entries.length; ++i) { - var value = entries[i][0]; - pr = new_buf(4 + 4 + 2 * (value.length + 1) + (value.length % 2 ? 0 : 2)); - pr.write_shift(4, i+2); - pr.write_shift(4, value.length + 1); - pr.write_shift(0, value, "dbcs"); - while(pr.l != pr.length) pr.write_shift(1, 0); - bufs.push(pr); - } - pr = bconcat(bufs); - prop.unshift(pr); - sz += 8 + pr.length; - } - - for(i = 0; i < entries.length; ++i) { - if(RE && !RE[entries[i][0]]) continue; - if(XLSPSSkip.indexOf(entries[i][0]) > -1) continue; - if(entries[i][1] == null) continue; - - var val = entries[i][1], idx = 0; - if(RE) { - idx = +RE[entries[i][0]]; - var pinfo = (PIDSI)[idx]; - if(pinfo.p == "version" && typeof val == "string") { -var arr = val.split("."); - val = ((+arr[0])<<16) + ((+arr[1])||0); - } - pr = write_TypedPropertyValue(pinfo.t, val); - } else { - var T = guess_property_type(val); - if(T == -1) { T = 0x1F; val = String(val); } - pr = write_TypedPropertyValue(T, val); - } - prop.push(pr); - - pio = new_buf(8); - pio.write_shift(4, !RE ? 2+i : idx); - piao.push(pio); - - sz += 8 + pr.length; - } - - var w = 8 * (prop.length + 1); - for(i = 0; i < prop.length; ++i) { piao[i].write_shift(4, w); w += prop[i].length; } - hdr.write_shift(4, sz); - hdr.write_shift(4, prop.length); - return bconcat([hdr].concat(piao).concat(prop)); -} - -/* [MS-OLEPS] 2.21 PropertySetStream */ -function parse_PropertySetStream(file, PIDSI, clsid) { - var blob = file.content; - if(!blob) return ({}); - prep_blob(blob, 0); - - var NumSets, FMTID0, FMTID1, Offset0, Offset1 = 0; - blob.chk('feff', 'Byte Order: '); - - /*var vers = */blob.read_shift(2); // TODO: check version - var SystemIdentifier = blob.read_shift(4); - var CLSID = blob.read_shift(16); - if(CLSID !== CFB.utils.consts.HEADER_CLSID && CLSID !== clsid) throw new Error("Bad PropertySet CLSID " + CLSID); - NumSets = blob.read_shift(4); - if(NumSets !== 1 && NumSets !== 2) throw new Error("Unrecognized #Sets: " + NumSets); - FMTID0 = blob.read_shift(16); Offset0 = blob.read_shift(4); - - if(NumSets === 1 && Offset0 !== blob.l) throw new Error("Length mismatch: " + Offset0 + " !== " + blob.l); - else if(NumSets === 2) { FMTID1 = blob.read_shift(16); Offset1 = blob.read_shift(4); } - var PSet0 = parse_PropertySet(blob, PIDSI); - - var rval = ({ SystemIdentifier: SystemIdentifier }); - for(var y in PSet0) rval[y] = PSet0[y]; - //rval.blob = blob; - rval.FMTID = FMTID0; - //rval.PSet0 = PSet0; - if(NumSets === 1) return rval; - if(Offset1 - blob.l == 2) blob.l += 2; - if(blob.l !== Offset1) throw new Error("Length mismatch 2: " + blob.l + " !== " + Offset1); - var PSet1; - try { PSet1 = parse_PropertySet(blob, null); } catch(e) {/* empty */} - for(y in PSet1) rval[y] = PSet1[y]; - rval.FMTID = [FMTID0, FMTID1]; // TODO: verify FMTID0/1 - return rval; -} -function write_PropertySetStream(entries, clsid, RE, PIDSI, entries2, clsid2) { - var hdr = new_buf(entries2 ? 68 : 48); - var bufs = [hdr]; - hdr.write_shift(2, 0xFFFE); - hdr.write_shift(2, 0x0000); /* TODO: type 1 props */ - hdr.write_shift(4, 0x32363237); - hdr.write_shift(16, CFB.utils.consts.HEADER_CLSID, "hex"); - hdr.write_shift(4, (entries2 ? 2 : 1)); - hdr.write_shift(16, clsid, "hex"); - hdr.write_shift(4, (entries2 ? 68 : 48)); - var ps0 = write_PropertySet(entries, RE, PIDSI); - bufs.push(ps0); - - if(entries2) { - var ps1 = write_PropertySet(entries2, null, null); - hdr.write_shift(16, clsid2, "hex"); - hdr.write_shift(4, 68 + ps0.length); - bufs.push(ps1); - } - return bconcat(bufs); -} - -function parsenoop2(blob, length) { blob.read_shift(length); return null; } -function writezeroes(n, o) { if(!o) o=new_buf(n); for(var j=0; j= 12 ? 2 : 1); - var encoding = 'sbcs-cont'; - var cp = current_codepage; - if(opts && opts.biff >= 8) current_codepage = 1200; - if(!opts || opts.biff == 8 ) { - var fHighByte = blob.read_shift(1); - if(fHighByte) { encoding = 'dbcs-cont'; } - } else if(opts.biff == 12) { - encoding = 'wstr'; - } - if(opts.biff >= 2 && opts.biff <= 5) encoding = 'cpstr'; - var o = cch ? blob.read_shift(cch, encoding) : ""; - current_codepage = cp; - return o; -} - -/* 2.5.293 XLUnicodeRichExtendedString */ -function parse_XLUnicodeRichExtendedString(blob) { - var cp = current_codepage; - current_codepage = 1200; - var cch = blob.read_shift(2), flags = blob.read_shift(1); - var /*fHighByte = flags & 0x1,*/ fExtSt = flags & 0x4, fRichSt = flags & 0x8; - var width = 1 + (flags & 0x1); // 0x0 -> utf8, 0x1 -> dbcs - var cRun = 0, cbExtRst; - var z = {}; - if(fRichSt) cRun = blob.read_shift(2); - if(fExtSt) cbExtRst = blob.read_shift(4); - var encoding = width == 2 ? 'dbcs-cont' : 'sbcs-cont'; - var msg = cch === 0 ? "" : blob.read_shift(cch, encoding); - if(fRichSt) blob.l += 4 * cRun; //TODO: parse this - if(fExtSt) blob.l += cbExtRst; //TODO: parse this - z.t = msg; - if(!fRichSt) { z.raw = "" + z.t + ""; z.r = z.t; } - current_codepage = cp; - return z; -} -function write_XLUnicodeRichExtendedString(xlstr) { - var str = (xlstr.t||""), nfmts = 1; - - var hdr = new_buf(3 + (nfmts > 1 ? 2 : 0)); - hdr.write_shift(2, str.length); - hdr.write_shift(1, (nfmts > 1 ? 0x08 : 0x00) | 0x01); - if(nfmts > 1) hdr.write_shift(2, nfmts); - - var otext = new_buf(2 * str.length); - otext.write_shift(2 * str.length, str, 'utf16le'); - - var out = [hdr, otext]; - - return bconcat(out); -} - -/* 2.5.296 XLUnicodeStringNoCch */ -function parse_XLUnicodeStringNoCch(blob, cch, opts) { - var retval; - if(opts) { - if(opts.biff >= 2 && opts.biff <= 5) return blob.read_shift(cch, 'cpstr'); - if(opts.biff >= 12) return blob.read_shift(cch, 'dbcs-cont'); - } - var fHighByte = blob.read_shift(1); - if(fHighByte===0) { retval = blob.read_shift(cch, 'sbcs-cont'); } - else { retval = blob.read_shift(cch, 'dbcs-cont'); } - return retval; -} - -/* 2.5.294 XLUnicodeString */ -function parse_XLUnicodeString(blob, length, opts) { - var cch = blob.read_shift(opts && opts.biff == 2 ? 1 : 2); - if(cch === 0) { blob.l++; return ""; } - return parse_XLUnicodeStringNoCch(blob, cch, opts); -} -/* BIFF5 override */ -function parse_XLUnicodeString2(blob, length, opts) { - if(opts.biff > 5) return parse_XLUnicodeString(blob, length, opts); - var cch = blob.read_shift(1); - if(cch === 0) { blob.l++; return ""; } - return blob.read_shift(cch, (opts.biff <= 4 || !blob.lens ) ? 'cpstr' : 'sbcs-cont'); -} -/* TODO: BIFF5 and lower, codepage awareness */ -function write_XLUnicodeString(str, opts, o) { - if(!o) o = new_buf(3 + 2 * str.length); - o.write_shift(2, str.length); - o.write_shift(1, 1); - o.write_shift(31, str, 'utf16le'); - return o; -} - -/* [MS-XLS] 2.5.61 ControlInfo */ -function parse_ControlInfo(blob) { - var flags = blob.read_shift(1); - blob.l++; - var accel = blob.read_shift(2); - blob.l += 2; - return [flags, accel]; -} - -/* [MS-OSHARED] 2.3.7.6 URLMoniker TODO: flags */ -function parse_URLMoniker(blob) { - var len = blob.read_shift(4), start = blob.l; - var extra = false; - if(len > 24) { - /* look ahead */ - blob.l += len - 24; - if(blob.read_shift(16) === "795881f43b1d7f48af2c825dc4852763") extra = true; - blob.l = start; - } - var url = blob.read_shift((extra?len-24:len)>>1, 'utf16le').replace(chr0,""); - if(extra) blob.l += 24; - return url; -} - -/* [MS-OSHARED] 2.3.7.8 FileMoniker TODO: all fields */ -function parse_FileMoniker(blob) { - var cAnti = blob.read_shift(2); - var preamble = ""; while(cAnti-- > 0) preamble += "../"; - var ansiPath = blob.read_shift(0, 'lpstr-ansi'); - blob.l += 2; //var endServer = blob.read_shift(2); - if(blob.read_shift(2) != 0xDEAD) throw new Error("Bad FileMoniker"); - var sz = blob.read_shift(4); - if(sz === 0) return preamble + ansiPath.replace(/\\/g,"/"); - var bytes = blob.read_shift(4); - if(blob.read_shift(2) != 3) throw new Error("Bad FileMoniker"); - var unicodePath = blob.read_shift(bytes>>1, 'utf16le').replace(chr0,""); - return preamble + unicodePath; -} - -/* [MS-OSHARED] 2.3.7.2 HyperlinkMoniker TODO: all the monikers */ -function parse_HyperlinkMoniker(blob, length) { - var clsid = blob.read_shift(16); length -= 16; - switch(clsid) { - case "e0c9ea79f9bace118c8200aa004ba90b": return parse_URLMoniker(blob, length); - case "0303000000000000c000000000000046": return parse_FileMoniker(blob, length); - default: throw new Error("Unsupported Moniker " + clsid); - } -} - -/* [MS-OSHARED] 2.3.7.9 HyperlinkString */ -function parse_HyperlinkString(blob) { - var len = blob.read_shift(4); - var o = len > 0 ? blob.read_shift(len, 'utf16le').replace(chr0, "") : ""; - return o; -} -function write_HyperlinkString(str, o) { - if(!o) o = new_buf(6 + str.length * 2); - o.write_shift(4, 1 + str.length); - for(var i = 0; i < str.length; ++i) o.write_shift(2, str.charCodeAt(i)); - o.write_shift(2, 0); - return o; -} - -/* [MS-OSHARED] 2.3.7.1 Hyperlink Object */ -function parse_Hyperlink(blob, length) { - var end = blob.l + length; - var sVer = blob.read_shift(4); - if(sVer !== 2) throw new Error("Unrecognized streamVersion: " + sVer); - var flags = blob.read_shift(2); - blob.l += 2; - var displayName, targetFrameName, moniker, oleMoniker, Loc="", guid, fileTime; - if(flags & 0x0010) displayName = parse_HyperlinkString(blob, end - blob.l); - if(flags & 0x0080) targetFrameName = parse_HyperlinkString(blob, end - blob.l); - if((flags & 0x0101) === 0x0101) moniker = parse_HyperlinkString(blob, end - blob.l); - if((flags & 0x0101) === 0x0001) oleMoniker = parse_HyperlinkMoniker(blob, end - blob.l); - if(flags & 0x0008) Loc = parse_HyperlinkString(blob, end - blob.l); - if(flags & 0x0020) guid = blob.read_shift(16); - if(flags & 0x0040) fileTime = parse_FILETIME(blob/*, 8*/); - blob.l = end; - var target = targetFrameName||moniker||oleMoniker||""; - if(target && Loc) target+="#"+Loc; - if(!target) target = "#" + Loc; - if((flags & 0x0002) && target.charAt(0) == "/" && target.charAt(1) != "/") target = "file://" + target; - var out = ({Target:target}); - if(guid) out.guid = guid; - if(fileTime) out.time = fileTime; - if(displayName) out.Tooltip = displayName; - return out; -} -function write_Hyperlink(hl) { - var out = new_buf(512), i = 0; - var Target = hl.Target; - if(Target.slice(0,7) == "file://") Target = Target.slice(7); - var hashidx = Target.indexOf("#"); - var F = hashidx > -1 ? 0x1f : 0x17; - switch(Target.charAt(0)) { case "#": F=0x1c; break; case ".": F&=~2; break; } - out.write_shift(4,2); out.write_shift(4, F); - var data = [8,6815827,6619237,4849780,83]; for(i = 0; i < data.length; ++i) out.write_shift(4, data[i]); - if(F == 0x1C) { - Target = Target.slice(1); - write_HyperlinkString(Target, out); - } else if(F & 0x02) { - data = "e0 c9 ea 79 f9 ba ce 11 8c 82 00 aa 00 4b a9 0b".split(" "); - for(i = 0; i < data.length; ++i) out.write_shift(1, parseInt(data[i], 16)); - var Pretarget = hashidx > -1 ? Target.slice(0, hashidx) : Target; - out.write_shift(4, 2*(Pretarget.length + 1)); - for(i = 0; i < Pretarget.length; ++i) out.write_shift(2, Pretarget.charCodeAt(i)); - out.write_shift(2, 0); - if(F & 0x08) write_HyperlinkString(hashidx > -1 ? Target.slice(hashidx+1): "", out); - } else { - data = "03 03 00 00 00 00 00 00 c0 00 00 00 00 00 00 46".split(" "); - for(i = 0; i < data.length; ++i) out.write_shift(1, parseInt(data[i], 16)); - var P = 0; - while(Target.slice(P*3,P*3+3)=="../"||Target.slice(P*3,P*3+3)=="..\\") ++P; - out.write_shift(2, P); - out.write_shift(4, Target.length - 3 * P + 1); - for(i = 0; i < Target.length - 3 * P; ++i) out.write_shift(1, Target.charCodeAt(i + 3 * P) & 0xFF); - out.write_shift(1, 0); - out.write_shift(2, 0xFFFF); - out.write_shift(2, 0xDEAD); - for(i = 0; i < 6; ++i) out.write_shift(4, 0); - } - return out.slice(0, out.l); -} - -/* 2.5.178 LongRGBA */ -function parse_LongRGBA(blob) { var r = blob.read_shift(1), g = blob.read_shift(1), b = blob.read_shift(1), a = blob.read_shift(1); return [r,g,b,a]; } - -/* 2.5.177 LongRGB */ -function parse_LongRGB(blob, length) { var x = parse_LongRGBA(blob, length); x[3] = 0; return x; } - - -/* [MS-XLS] 2.5.19 */ -function parse_XLSCell(blob) { - var rw = blob.read_shift(2); // 0-indexed - var col = blob.read_shift(2); - var ixfe = blob.read_shift(2); - return ({r:rw, c:col, ixfe:ixfe}); -} -function write_XLSCell(R, C, ixfe, o) { - if(!o) o = new_buf(6); - o.write_shift(2, R); - o.write_shift(2, C); - o.write_shift(2, ixfe||0); - return o; -} - -/* [MS-XLS] 2.5.134 */ -function parse_frtHeader(blob) { - var rt = blob.read_shift(2); - var flags = blob.read_shift(2); // TODO: parse these flags - blob.l += 8; - return {type: rt, flags: flags}; -} - - - -function parse_OptXLUnicodeString(blob, length, opts) { return length === 0 ? "" : parse_XLUnicodeString2(blob, length, opts); } - -/* [MS-XLS] 2.5.344 */ -function parse_XTI(blob, length, opts) { - var w = opts.biff > 8 ? 4 : 2; - var iSupBook = blob.read_shift(w), itabFirst = blob.read_shift(w,'i'), itabLast = blob.read_shift(w,'i'); - return [iSupBook, itabFirst, itabLast]; -} - -/* [MS-XLS] 2.5.218 */ -function parse_RkRec(blob) { - var ixfe = blob.read_shift(2); - var RK = parse_RkNumber(blob); - return [ixfe, RK]; -} - -/* [MS-XLS] 2.5.1 */ -function parse_AddinUdf(blob, length, opts) { - blob.l += 4; length -= 4; - var l = blob.l + length; - var udfName = parse_ShortXLUnicodeString(blob, length, opts); - var cb = blob.read_shift(2); - l -= blob.l; - if(cb !== l) throw new Error("Malformed AddinUdf: padding = " + l + " != " + cb); - blob.l += cb; - return udfName; -} - -/* [MS-XLS] 2.5.209 TODO: Check sizes */ -function parse_Ref8U(blob) { - var rwFirst = blob.read_shift(2); - var rwLast = blob.read_shift(2); - var colFirst = blob.read_shift(2); - var colLast = blob.read_shift(2); - return {s:{c:colFirst, r:rwFirst}, e:{c:colLast,r:rwLast}}; -} -function write_Ref8U(r, o) { - if(!o) o = new_buf(8); - o.write_shift(2, r.s.r); - o.write_shift(2, r.e.r); - o.write_shift(2, r.s.c); - o.write_shift(2, r.e.c); - return o; -} - -/* [MS-XLS] 2.5.211 */ -function parse_RefU(blob) { - var rwFirst = blob.read_shift(2); - var rwLast = blob.read_shift(2); - var colFirst = blob.read_shift(1); - var colLast = blob.read_shift(1); - return {s:{c:colFirst, r:rwFirst}, e:{c:colLast,r:rwLast}}; -} - -/* [MS-XLS] 2.5.207 */ -var parse_Ref = parse_RefU; - -/* [MS-XLS] 2.5.143 */ -function parse_FtCmo(blob) { - blob.l += 4; - var ot = blob.read_shift(2); - var id = blob.read_shift(2); - var flags = blob.read_shift(2); - blob.l+=12; - return [id, ot, flags]; -} - -/* [MS-XLS] 2.5.149 */ -function parse_FtNts(blob) { - var out = {}; - blob.l += 4; - blob.l += 16; // GUID TODO - out.fSharedNote = blob.read_shift(2); - blob.l += 4; - return out; -} - -/* [MS-XLS] 2.5.142 */ -function parse_FtCf(blob) { - var out = {}; - blob.l += 4; - blob.cf = blob.read_shift(2); - return out; -} - -/* [MS-XLS] 2.5.140 - 2.5.154 and friends */ -function parse_FtSkip(blob) { blob.l += 2; blob.l += blob.read_shift(2); } -var FtTab = { -0x00: parse_FtSkip, /* FtEnd */ -0x04: parse_FtSkip, /* FtMacro */ -0x05: parse_FtSkip, /* FtButton */ -0x06: parse_FtSkip, /* FtGmo */ -0x07: parse_FtCf, /* FtCf */ -0x08: parse_FtSkip, /* FtPioGrbit */ -0x09: parse_FtSkip, /* FtPictFmla */ -0x0A: parse_FtSkip, /* FtCbls */ -0x0B: parse_FtSkip, /* FtRbo */ -0x0C: parse_FtSkip, /* FtSbs */ -0x0D: parse_FtNts, /* FtNts */ -0x0E: parse_FtSkip, /* FtSbsFmla */ -0x0F: parse_FtSkip, /* FtGboData */ -0x10: parse_FtSkip, /* FtEdoData */ -0x11: parse_FtSkip, /* FtRboData */ -0x12: parse_FtSkip, /* FtCblsData */ -0x13: parse_FtSkip, /* FtLbsData */ -0x14: parse_FtSkip, /* FtCblsFmla */ -0x15: parse_FtCmo -}; -function parse_FtArray(blob, length) { - var tgt = blob.l + length; - var fts = []; - while(blob.l < tgt) { - var ft = blob.read_shift(2); - blob.l-=2; - try { - fts.push(FtTab[ft](blob, tgt - blob.l)); - } catch(e) { blob.l = tgt; return fts; } - } - if(blob.l != tgt) blob.l = tgt; //throw new Error("bad Object Ft-sequence"); - return fts; -} - -/* --- 2.4 Records --- */ - -/* [MS-XLS] 2.4.21 */ -function parse_BOF(blob, length) { - var o = {BIFFVer:0, dt:0}; - o.BIFFVer = blob.read_shift(2); length -= 2; - if(length >= 2) { o.dt = blob.read_shift(2); blob.l -= 2; } - switch(o.BIFFVer) { - case 0x0600: /* BIFF8 */ - case 0x0500: /* BIFF5 */ - case 0x0400: /* BIFF4 */ - case 0x0300: /* BIFF3 */ - case 0x0200: /* BIFF2 */ - case 0x0002: case 0x0007: /* BIFF2 */ - break; - default: if(length > 6) throw new Error("Unexpected BIFF Ver " + o.BIFFVer); - } - - blob.read_shift(length); - return o; -} -function write_BOF(wb, t, o) { - var h = 0x0600, w = 16; - switch(o.bookType) { - case 'biff8': break; - case 'biff5': h = 0x0500; w = 8; break; - case 'biff4': h = 0x0004; w = 6; break; - case 'biff3': h = 0x0003; w = 6; break; - case 'biff2': h = 0x0002; w = 4; break; - case 'xla': break; - default: throw new Error("unsupported BIFF version"); - } - var out = new_buf(w); - out.write_shift(2, h); - out.write_shift(2, t); - if(w > 4) out.write_shift(2, 0x7262); - if(w > 6) out.write_shift(2, 0x07CD); - if(w > 8) { - out.write_shift(2, 0xC009); - out.write_shift(2, 0x0001); - out.write_shift(2, 0x0706); - out.write_shift(2, 0x0000); - } - return out; -} - - -/* [MS-XLS] 2.4.146 */ -function parse_InterfaceHdr(blob, length) { - if(length === 0) return 0x04b0; - if((blob.read_shift(2))!==0x04b0){/* empty */} - return 0x04b0; -} - - -/* [MS-XLS] 2.4.349 */ -function parse_WriteAccess(blob, length, opts) { - if(opts.enc) { blob.l += length; return ""; } - var l = blob.l; - // TODO: make sure XLUnicodeString doesnt overrun - var UserName = parse_XLUnicodeString2(blob, 0, opts); - blob.read_shift(length + l - blob.l); - return UserName; -} -function write_WriteAccess(s, opts) { - var b8 = !opts || opts.biff == 8; - var o = new_buf(b8 ? 112 : 54); - o.write_shift(opts.biff == 8 ? 2 : 1, 7); - if(b8) o.write_shift(1, 0); - o.write_shift(4, 0x33336853); - o.write_shift(4, (0x00534A74 | (b8 ? 0 : 0x20000000))); - while(o.l < o.length) o.write_shift(1, (b8 ? 0 : 32)); - return o; -} - -/* [MS-XLS] 2.4.351 */ -function parse_WsBool(blob, length, opts) { - var flags = opts && opts.biff == 8 || length == 2 ? blob.read_shift(2) : (blob.l += length, 0); - return { fDialog: flags & 0x10, fBelow: flags & 0x40, fRight: flags & 0x80 }; -} - -/* [MS-XLS] 2.4.28 */ -function parse_BoundSheet8(blob, length, opts) { - var pos = blob.read_shift(4); - var hidden = blob.read_shift(1) & 0x03; - var dt = blob.read_shift(1); - switch(dt) { - case 0: dt = 'Worksheet'; break; - case 1: dt = 'Macrosheet'; break; - case 2: dt = 'Chartsheet'; break; - case 6: dt = 'VBAModule'; break; - } - var name = parse_ShortXLUnicodeString(blob, 0, opts); - if(name.length === 0) name = "Sheet1"; - return { pos:pos, hs:hidden, dt:dt, name:name }; -} -function write_BoundSheet8(data, opts) { - var w = (!opts || opts.biff >= 8 ? 2 : 1); - var o = new_buf(8 + w * data.name.length); - o.write_shift(4, data.pos); - o.write_shift(1, data.hs || 0); - o.write_shift(1, data.dt); - o.write_shift(1, data.name.length); - if(opts.biff >= 8) o.write_shift(1, 1); - o.write_shift(w * data.name.length, data.name, opts.biff < 8 ? 'sbcs' : 'utf16le'); - var out = o.slice(0, o.l); - out.l = o.l; return out; -} - -/* [MS-XLS] 2.4.265 TODO */ -function parse_SST(blob, length) { - var end = blob.l + length; - var cnt = blob.read_shift(4); - var ucnt = blob.read_shift(4); - var strs = ([]); - for(var i = 0; i != ucnt && blob.l < end; ++i) { - strs.push(parse_XLUnicodeRichExtendedString(blob)); - } - strs.Count = cnt; strs.Unique = ucnt; - return strs; -} -function write_SST(sst, opts) { - var header = new_buf(8); - header.write_shift(4, sst.Count); - header.write_shift(4, sst.Unique); - var strs = []; - for(var j = 0; j < sst.length; ++j) strs[j] = write_XLUnicodeRichExtendedString(sst[j], opts); - var o = bconcat([header].concat(strs)); -o.parts = [header.length].concat(strs.map(function(str) { return str.length; })); - return o; -} - -/* [MS-XLS] 2.4.107 */ -function parse_ExtSST(blob, length) { - var extsst = {}; - extsst.dsst = blob.read_shift(2); - blob.l += length-2; - return extsst; -} - - -/* [MS-XLS] 2.4.221 TODO: check BIFF2-4 */ -function parse_Row(blob) { - var z = ({}); - z.r = blob.read_shift(2); - z.c = blob.read_shift(2); - z.cnt = blob.read_shift(2) - z.c; - var miyRw = blob.read_shift(2); - blob.l += 4; // reserved(2), unused(2) - var flags = blob.read_shift(1); // various flags - blob.l += 3; // reserved(8), ixfe(12), flags(4) - if(flags & 0x07) z.level = flags & 0x07; - // collapsed: flags & 0x10 - if(flags & 0x20) z.hidden = true; - if(flags & 0x40) z.hpt = miyRw / 20; - return z; -} - - -/* [MS-XLS] 2.4.125 */ -function parse_ForceFullCalculation(blob) { - var header = parse_frtHeader(blob); - if(header.type != 0x08A3) throw new Error("Invalid Future Record " + header.type); - var fullcalc = blob.read_shift(4); - return fullcalc !== 0x0; -} - - - - - -/* [MS-XLS] 2.4.215 rt */ -function parse_RecalcId(blob) { - blob.read_shift(2); - return blob.read_shift(4); -} - -/* [MS-XLS] 2.4.87 */ -function parse_DefaultRowHeight(blob, length, opts) { - var f = 0; - if(!(opts && opts.biff == 2)) { - f = blob.read_shift(2); - } - var miyRw = blob.read_shift(2); - if((opts && opts.biff == 2)) { - f = 1 - (miyRw >> 15); miyRw &= 0x7fff; - } - var fl = {Unsynced:f&1,DyZero:(f&2)>>1,ExAsc:(f&4)>>2,ExDsc:(f&8)>>3}; - return [fl, miyRw]; -} - -/* [MS-XLS] 2.4.345 TODO */ -function parse_Window1(blob) { - var xWn = blob.read_shift(2), yWn = blob.read_shift(2), dxWn = blob.read_shift(2), dyWn = blob.read_shift(2); - var flags = blob.read_shift(2), iTabCur = blob.read_shift(2), iTabFirst = blob.read_shift(2); - var ctabSel = blob.read_shift(2), wTabRatio = blob.read_shift(2); - return { Pos: [xWn, yWn], Dim: [dxWn, dyWn], Flags: flags, CurTab: iTabCur, - FirstTab: iTabFirst, Selected: ctabSel, TabRatio: wTabRatio }; -} -function write_Window1() { - var o = new_buf(18); - o.write_shift(2, 0); - o.write_shift(2, 0); - o.write_shift(2, 0x7260); - o.write_shift(2, 0x44c0); - o.write_shift(2, 0x38); - o.write_shift(2, 0); - o.write_shift(2, 0); - o.write_shift(2, 1); - o.write_shift(2, 0x01f4); - return o; -} -/* [MS-XLS] 2.4.346 TODO */ -function parse_Window2(blob, length, opts) { - if(opts && opts.biff >= 2 && opts.biff < 5) return {}; - var f = blob.read_shift(2); - return { RTL: f & 0x40 }; -} -function write_Window2(view) { - var o = new_buf(18), f = 0x6b6; - if(view && view.RTL) f |= 0x40; - o.write_shift(2, f); - o.write_shift(4, 0); - o.write_shift(4, 64); - o.write_shift(4, 0); - o.write_shift(4, 0); - return o; -} - -/* [MS-XLS] 2.4.189 TODO */ -function parse_Pane(/*blob, length, opts*/) { -} - -/* [MS-XLS] 2.4.122 TODO */ -function parse_Font(blob, length, opts) { - var o = { - dyHeight: blob.read_shift(2), - fl: blob.read_shift(2) - }; - switch((opts && opts.biff) || 8) { - case 2: break; - case 3: case 4: blob.l += 2; break; - default: blob.l += 10; break; - } - o.name = parse_ShortXLUnicodeString(blob, 0, opts); - return o; -} -function write_Font(data, opts) { - var name = data.name || "Arial"; - var b5 = (opts && (opts.biff == 5)), w = (b5 ? (15 + name.length) : (16 + 2 * name.length)); - var o = new_buf(w); - o.write_shift(2, (data.sz || 12) * 20); - o.write_shift(4, 0); - o.write_shift(2, 400); - o.write_shift(4, 0); - o.write_shift(2, 0); - o.write_shift(1, name.length); - if(!b5) o.write_shift(1, 1); - o.write_shift((b5 ? 1 : 2) * name.length, name, (b5 ? "sbcs" : "utf16le")); - return o; -} - -/* [MS-XLS] 2.4.149 */ -function parse_LabelSst(blob) { - var cell = parse_XLSCell(blob); - cell.isst = blob.read_shift(4); - return cell; -} -function write_LabelSst(R, C, v, os ) { - var o = new_buf(10); - write_XLSCell(R, C, os, o); - o.write_shift(4, v); - return o; -} - -/* [MS-XLS] 2.4.148 */ -function parse_Label(blob, length, opts) { - if(opts.biffguess && opts.biff == 2) opts.biff = 5; - var target = blob.l + length; - var cell = parse_XLSCell(blob, 6); - if(opts.biff == 2) blob.l++; - var str = parse_XLUnicodeString(blob, target - blob.l, opts); - cell.val = str; - return cell; -} -function write_Label(R, C, v, os, opts) { - var b8 = !opts || opts.biff == 8; - var o = new_buf(6 + 2 + (+b8) + (1 + b8) * v.length); - write_XLSCell(R, C, os, o); - o.write_shift(2, v.length); - if(b8) o.write_shift(1, 1); - o.write_shift((1 + b8) * v.length, v, b8 ? 'utf16le' : 'sbcs'); - return o; -} - - -/* [MS-XLS] 2.4.126 Number Formats */ -function parse_Format(blob, length, opts) { - var numFmtId = blob.read_shift(2); - var fmtstr = parse_XLUnicodeString2(blob, 0, opts); - return [numFmtId, fmtstr]; -} -function write_Format(i, f, opts, o) { - var b5 = (opts && (opts.biff == 5)); - if(!o) o = new_buf(b5 ? (3 + f.length) : (5 + 2 * f.length)); - o.write_shift(2, i); - o.write_shift((b5 ? 1 : 2), f.length); - if(!b5) o.write_shift(1, 1); - o.write_shift((b5 ? 1 : 2) * f.length, f, (b5 ? 'sbcs' : 'utf16le')); - var out = (o.length > o.l) ? o.slice(0, o.l) : o; - if(out.l == null) out.l = out.length; - return out; -} -var parse_BIFF2Format = parse_XLUnicodeString2; - -/* [MS-XLS] 2.4.90 */ -function parse_Dimensions(blob, length, opts) { - var end = blob.l + length; - var w = opts.biff == 8 || !opts.biff ? 4 : 2; - var r = blob.read_shift(w), R = blob.read_shift(w); - var c = blob.read_shift(2), C = blob.read_shift(2); - blob.l = end; - return {s: {r:r, c:c}, e: {r:R, c:C}}; -} -function write_Dimensions(range, opts) { - var w = opts.biff == 8 || !opts.biff ? 4 : 2; - var o = new_buf(2*w + 6); - o.write_shift(w, range.s.r); - o.write_shift(w, range.e.r + 1); - o.write_shift(2, range.s.c); - o.write_shift(2, range.e.c + 1); - o.write_shift(2, 0); - return o; -} - -/* [MS-XLS] 2.4.220 */ -function parse_RK(blob) { - var rw = blob.read_shift(2), col = blob.read_shift(2); - var rkrec = parse_RkRec(blob); - return {r:rw, c:col, ixfe:rkrec[0], rknum:rkrec[1]}; -} - -/* [MS-XLS] 2.4.175 */ -function parse_MulRk(blob, length) { - var target = blob.l + length - 2; - var rw = blob.read_shift(2), col = blob.read_shift(2); - var rkrecs = []; - while(blob.l < target) rkrecs.push(parse_RkRec(blob)); - if(blob.l !== target) throw new Error("MulRK read error"); - var lastcol = blob.read_shift(2); - if(rkrecs.length != lastcol - col + 1) throw new Error("MulRK length mismatch"); - return {r:rw, c:col, C:lastcol, rkrec:rkrecs}; -} -/* [MS-XLS] 2.4.174 */ -function parse_MulBlank(blob, length) { - var target = blob.l + length - 2; - var rw = blob.read_shift(2), col = blob.read_shift(2); - var ixfes = []; - while(blob.l < target) ixfes.push(blob.read_shift(2)); - if(blob.l !== target) throw new Error("MulBlank read error"); - var lastcol = blob.read_shift(2); - if(ixfes.length != lastcol - col + 1) throw new Error("MulBlank length mismatch"); - return {r:rw, c:col, C:lastcol, ixfe:ixfes}; -} - -/* [MS-XLS] 2.5.20 2.5.249 TODO: interpret values here */ -function parse_CellStyleXF(blob, length, style, opts) { - var o = {}; - var a = blob.read_shift(4), b = blob.read_shift(4); - var c = blob.read_shift(4), d = blob.read_shift(2); - o.patternType = XLSFillPattern[c >> 26]; - - if(!opts.cellStyles) return o; - o.alc = a & 0x07; - o.fWrap = (a >> 3) & 0x01; - o.alcV = (a >> 4) & 0x07; - o.fJustLast = (a >> 7) & 0x01; - o.trot = (a >> 8) & 0xFF; - o.cIndent = (a >> 16) & 0x0F; - o.fShrinkToFit = (a >> 20) & 0x01; - o.iReadOrder = (a >> 22) & 0x02; - o.fAtrNum = (a >> 26) & 0x01; - o.fAtrFnt = (a >> 27) & 0x01; - o.fAtrAlc = (a >> 28) & 0x01; - o.fAtrBdr = (a >> 29) & 0x01; - o.fAtrPat = (a >> 30) & 0x01; - o.fAtrProt = (a >> 31) & 0x01; - - o.dgLeft = b & 0x0F; - o.dgRight = (b >> 4) & 0x0F; - o.dgTop = (b >> 8) & 0x0F; - o.dgBottom = (b >> 12) & 0x0F; - o.icvLeft = (b >> 16) & 0x7F; - o.icvRight = (b >> 23) & 0x7F; - o.grbitDiag = (b >> 30) & 0x03; - - o.icvTop = c & 0x7F; - o.icvBottom = (c >> 7) & 0x7F; - o.icvDiag = (c >> 14) & 0x7F; - o.dgDiag = (c >> 21) & 0x0F; - - o.icvFore = d & 0x7F; - o.icvBack = (d >> 7) & 0x7F; - o.fsxButton = (d >> 14) & 0x01; - return o; -} -//function parse_CellXF(blob, length, opts) {return parse_CellStyleXF(blob,length,0, opts);} -//function parse_StyleXF(blob, length, opts) {return parse_CellStyleXF(blob,length,1, opts);} - -/* [MS-XLS] 2.4.353 TODO: actually do this right */ -function parse_XF(blob, length, opts) { - var o = {}; - o.ifnt = blob.read_shift(2); o.numFmtId = blob.read_shift(2); o.flags = blob.read_shift(2); - o.fStyle = (o.flags >> 2) & 0x01; - length -= 6; - o.data = parse_CellStyleXF(blob, length, o.fStyle, opts); - return o; -} -function write_XF(data, ixfeP, opts, o) { - var b5 = (opts && (opts.biff == 5)); - if(!o) o = new_buf(b5 ? 16 : 20); - o.write_shift(2, 0); - if(data.style) { - o.write_shift(2, (data.numFmtId||0)); - o.write_shift(2, 0xFFF4); - } else { - o.write_shift(2, (data.numFmtId||0)); - o.write_shift(2, (ixfeP<<4)); - } - var f = 0; - if(data.numFmtId > 0 && b5) f |= 0x0400; - o.write_shift(4, f); - o.write_shift(4, 0); - if(!b5) o.write_shift(4, 0); - o.write_shift(2, 0); - return o; -} - -/* [MS-XLS] 2.4.134 */ -function parse_Guts(blob) { - blob.l += 4; - var out = [blob.read_shift(2), blob.read_shift(2)]; - if(out[0] !== 0) out[0]--; - if(out[1] !== 0) out[1]--; - if(out[0] > 7 || out[1] > 7) throw new Error("Bad Gutters: " + out.join("|")); - return out; -} -function write_Guts(guts) { - var o = new_buf(8); - o.write_shift(4, 0); - o.write_shift(2, guts[0] ? guts[0] + 1 : 0); - o.write_shift(2, guts[1] ? guts[1] + 1 : 0); - return o; -} - -/* [MS-XLS] 2.4.24 */ -function parse_BoolErr(blob, length, opts) { - var cell = parse_XLSCell(blob, 6); - if(opts.biff == 2 || length == 9) ++blob.l; - var val = parse_Bes(blob, 2); - cell.val = val; - cell.t = (val === true || val === false) ? 'b' : 'e'; - return cell; -} -function write_BoolErr(R, C, v, os, opts, t) { - var o = new_buf(8); - write_XLSCell(R, C, os, o); - write_Bes(v, t, o); - return o; -} - -/* [MS-XLS] 2.4.180 Number */ -function parse_Number(blob, length, opts) { - if(opts.biffguess && opts.biff == 2) opts.biff = 5; - var cell = parse_XLSCell(blob, 6); - var xnum = parse_Xnum(blob, 8); - cell.val = xnum; - return cell; -} -function write_Number(R, C, v, os) { - var o = new_buf(14); - write_XLSCell(R, C, os, o); - write_Xnum(v, o); - return o; -} - -var parse_XLHeaderFooter = parse_OptXLUnicodeString; // TODO: parse 2.4.136 - -/* [MS-XLS] 2.4.271 */ -function parse_SupBook(blob, length, opts) { - var end = blob.l + length; - var ctab = blob.read_shift(2); - var cch = blob.read_shift(2); - opts.sbcch = cch; - if(cch == 0x0401 || cch == 0x3A01) return [cch, ctab]; - if(cch < 0x01 || cch >0xff) throw new Error("Unexpected SupBook type: "+cch); - var virtPath = parse_XLUnicodeStringNoCch(blob, cch); - /* TODO: 2.5.277 Virtual Path */ - var rgst = []; - while(end > blob.l) rgst.push(parse_XLUnicodeString(blob)); - return [cch, ctab, virtPath, rgst]; -} - -/* [MS-XLS] 2.4.105 TODO */ -function parse_ExternName(blob, length, opts) { - var flags = blob.read_shift(2); - var body; - var o = ({ - fBuiltIn: flags & 0x01, - fWantAdvise: (flags >>> 1) & 0x01, - fWantPict: (flags >>> 2) & 0x01, - fOle: (flags >>> 3) & 0x01, - fOleLink: (flags >>> 4) & 0x01, - cf: (flags >>> 5) & 0x3FF, - fIcon: flags >>> 15 & 0x01 - }); - if(opts.sbcch === 0x3A01) body = parse_AddinUdf(blob, length-2, opts); - //else throw new Error("unsupported SupBook cch: " + opts.sbcch); - o.body = body || blob.read_shift(length-2); - if(typeof body === "string") o.Name = body; - return o; -} - -/* [MS-XLS] 2.4.150 TODO */ -var XLSLblBuiltIn = [ - "_xlnm.Consolidate_Area", - "_xlnm.Auto_Open", - "_xlnm.Auto_Close", - "_xlnm.Extract", - "_xlnm.Database", - "_xlnm.Criteria", - "_xlnm.Print_Area", - "_xlnm.Print_Titles", - "_xlnm.Recorder", - "_xlnm.Data_Form", - "_xlnm.Auto_Activate", - "_xlnm.Auto_Deactivate", - "_xlnm.Sheet_Title", - "_xlnm._FilterDatabase" -]; -function parse_Lbl(blob, length, opts) { - var target = blob.l + length; - var flags = blob.read_shift(2); - var chKey = blob.read_shift(1); - var cch = blob.read_shift(1); - var cce = blob.read_shift(opts && opts.biff == 2 ? 1 : 2); - var itab = 0; - if(!opts || opts.biff >= 5) { - if(opts.biff != 5) blob.l += 2; - itab = blob.read_shift(2); - if(opts.biff == 5) blob.l += 2; - blob.l += 4; - } - var name = parse_XLUnicodeStringNoCch(blob, cch, opts); - if(flags & 0x20) name = XLSLblBuiltIn[name.charCodeAt(0)]; - var npflen = target - blob.l; if(opts && opts.biff == 2) --npflen; - /*jshint -W018 */ - var rgce = (target == blob.l || cce === 0 || !(npflen > 0)) ? [] : parse_NameParsedFormula(blob, npflen, opts, cce); - /*jshint +W018 */ - return { - chKey: chKey, - Name: name, - itab: itab, - rgce: rgce - }; -} - -/* [MS-XLS] 2.4.106 TODO: verify filename encoding */ -function parse_ExternSheet(blob, length, opts) { - if(opts.biff < 8) return parse_BIFF5ExternSheet(blob, length, opts); - var o = [], target = blob.l + length, len = blob.read_shift(opts.biff > 8 ? 4 : 2); - while(len-- !== 0) o.push(parse_XTI(blob, opts.biff > 8 ? 12 : 6, opts)); - // [iSupBook, itabFirst, itabLast]; - if(blob.l != target) throw new Error("Bad ExternSheet: " + blob.l + " != " + target); - return o; -} -function parse_BIFF5ExternSheet(blob, length, opts) { - if(blob[blob.l + 1] == 0x03) blob[blob.l]++; - var o = parse_ShortXLUnicodeString(blob, length, opts); - return o.charCodeAt(0) == 0x03 ? o.slice(1) : o; -} - -/* [MS-XLS] 2.4.176 TODO: check older biff */ -function parse_NameCmt(blob, length, opts) { - if(opts.biff < 8) { blob.l += length; return; } - var cchName = blob.read_shift(2); - var cchComment = blob.read_shift(2); - var name = parse_XLUnicodeStringNoCch(blob, cchName, opts); - var comment = parse_XLUnicodeStringNoCch(blob, cchComment, opts); - return [name, comment]; -} - -/* [MS-XLS] 2.4.260 */ -function parse_ShrFmla(blob, length, opts) { - var ref = parse_RefU(blob, 6); - blob.l++; - var cUse = blob.read_shift(1); - length -= 8; - return [parse_SharedParsedFormula(blob, length, opts), cUse, ref]; -} - -/* [MS-XLS] 2.4.4 TODO */ -function parse_Array(blob, length, opts) { - var ref = parse_Ref(blob, 6); - /* TODO: fAlwaysCalc */ - switch(opts.biff) { - case 2: blob.l ++; length -= 7; break; - case 3: case 4: blob.l += 2; length -= 8; break; - default: blob.l += 6; length -= 12; - } - return [ref, parse_ArrayParsedFormula(blob, length, opts, ref)]; -} - -/* [MS-XLS] 2.4.173 */ -function parse_MTRSettings(blob) { - var fMTREnabled = blob.read_shift(4) !== 0x00; - var fUserSetThreadCount = blob.read_shift(4) !== 0x00; - var cUserThreadCount = blob.read_shift(4); - return [fMTREnabled, fUserSetThreadCount, cUserThreadCount]; -} - -/* [MS-XLS] 2.5.186 TODO: BIFF5 */ -function parse_NoteSh(blob, length, opts) { - if(opts.biff < 8) return; - var row = blob.read_shift(2), col = blob.read_shift(2); - var flags = blob.read_shift(2), idObj = blob.read_shift(2); - var stAuthor = parse_XLUnicodeString2(blob, 0, opts); - if(opts.biff < 8) blob.read_shift(1); - return [{r:row,c:col}, stAuthor, idObj, flags]; -} - -/* [MS-XLS] 2.4.179 */ -function parse_Note(blob, length, opts) { - /* TODO: Support revisions */ - return parse_NoteSh(blob, length, opts); -} - -/* [MS-XLS] 2.4.168 */ -function parse_MergeCells(blob, length) { - var merges = []; - var cmcs = blob.read_shift(2); - while (cmcs--) merges.push(parse_Ref8U(blob,length)); - return merges; -} -function write_MergeCells(merges) { - var o = new_buf(2 + merges.length * 8); - o.write_shift(2, merges.length); - for(var i = 0; i < merges.length; ++i) write_Ref8U(merges[i], o); - return o; -} - -/* [MS-XLS] 2.4.181 TODO: parse all the things! */ -function parse_Obj(blob, length, opts) { - if(opts && opts.biff < 8) return parse_BIFF5Obj(blob, length, opts); - var cmo = parse_FtCmo(blob, 22); // id, ot, flags - var fts = parse_FtArray(blob, length-22, cmo[1]); - return { cmo: cmo, ft:fts }; -} -/* from older spec */ -var parse_BIFF5OT = []; -parse_BIFF5OT[0x08] = function(blob, length) { - var tgt = blob.l + length; - blob.l += 10; // todo - var cf = blob.read_shift(2); - blob.l += 4; - blob.l += 2; //var cbPictFmla = blob.read_shift(2); - blob.l += 2; - blob.l += 2; //var grbit = blob.read_shift(2); - blob.l += 4; - var cchName = blob.read_shift(1); - blob.l += cchName; // TODO: stName - blob.l = tgt; // TODO: fmla - return { fmt:cf }; -}; - -function parse_BIFF5Obj(blob, length, opts) { - blob.l += 4; //var cnt = blob.read_shift(4); - var ot = blob.read_shift(2); - var id = blob.read_shift(2); - var grbit = blob.read_shift(2); - blob.l += 2; //var colL = blob.read_shift(2); - blob.l += 2; //var dxL = blob.read_shift(2); - blob.l += 2; //var rwT = blob.read_shift(2); - blob.l += 2; //var dyT = blob.read_shift(2); - blob.l += 2; //var colR = blob.read_shift(2); - blob.l += 2; //var dxR = blob.read_shift(2); - blob.l += 2; //var rwB = blob.read_shift(2); - blob.l += 2; //var dyB = blob.read_shift(2); - blob.l += 2; //var cbMacro = blob.read_shift(2); - blob.l += 6; - length -= 36; - var fts = []; - fts.push((parse_BIFF5OT[ot]||parsenoop)(blob, length, opts)); - return { cmo: [id, ot, grbit], ft:fts }; -} - -/* [MS-XLS] 2.4.329 TODO: parse properly */ -function parse_TxO(blob, length, opts) { - var s = blob.l; - var texts = ""; -try { - blob.l += 4; - var ot = (opts.lastobj||{cmo:[0,0]}).cmo[1]; - var controlInfo; // eslint-disable-line no-unused-vars - if([0,5,7,11,12,14].indexOf(ot) == -1) blob.l += 6; - else controlInfo = parse_ControlInfo(blob, 6, opts); - var cchText = blob.read_shift(2); - /*var cbRuns = */blob.read_shift(2); - /*var ifntEmpty = */parseuint16(blob, 2); - var len = blob.read_shift(2); - blob.l += len; - //var fmla = parse_ObjFmla(blob, s + length - blob.l); - - for(var i = 1; i < blob.lens.length-1; ++i) { - if(blob.l-s != blob.lens[i]) throw new Error("TxO: bad continue record"); - var hdr = blob[blob.l]; - var t = parse_XLUnicodeStringNoCch(blob, blob.lens[i+1]-blob.lens[i]-1); - texts += t; - if(texts.length >= (hdr ? cchText : 2*cchText)) break; - } - if(texts.length !== cchText && texts.length !== cchText*2) { - throw new Error("cchText: " + cchText + " != " + texts.length); - } - - blob.l = s + length; - /* [MS-XLS] 2.5.272 TxORuns */ -// var rgTxoRuns = []; -// for(var j = 0; j != cbRuns/8-1; ++j) blob.l += 8; -// var cchText2 = blob.read_shift(2); -// if(cchText2 !== cchText) throw new Error("TxOLastRun mismatch: " + cchText2 + " " + cchText); -// blob.l += 6; -// if(s + length != blob.l) throw new Error("TxO " + (s + length) + ", at " + blob.l); - return { t: texts }; -} catch(e) { blob.l = s + length; return { t: texts }; } -} - -/* [MS-XLS] 2.4.140 */ -function parse_HLink(blob, length) { - var ref = parse_Ref8U(blob, 8); - blob.l += 16; /* CLSID */ - var hlink = parse_Hyperlink(blob, length-24); - return [ref, hlink]; -} -function write_HLink(hl) { - var O = new_buf(24); - var ref = decode_cell(hl[0]); - O.write_shift(2, ref.r); O.write_shift(2, ref.r); - O.write_shift(2, ref.c); O.write_shift(2, ref.c); - var clsid = "d0 c9 ea 79 f9 ba ce 11 8c 82 00 aa 00 4b a9 0b".split(" "); - for(var i = 0; i < 16; ++i) O.write_shift(1, parseInt(clsid[i], 16)); - return bconcat([O, write_Hyperlink(hl[1])]); -} - - -/* [MS-XLS] 2.4.141 */ -function parse_HLinkTooltip(blob, length) { - blob.read_shift(2); - var ref = parse_Ref8U(blob, 8); - var wzTooltip = blob.read_shift((length-10)/2, 'dbcs-cont'); - wzTooltip = wzTooltip.replace(chr0,""); - return [ref, wzTooltip]; -} -function write_HLinkTooltip(hl) { - var TT = hl[1].Tooltip; - var O = new_buf(10 + 2 * (TT.length + 1)); - O.write_shift(2, 0x0800); - var ref = decode_cell(hl[0]); - O.write_shift(2, ref.r); O.write_shift(2, ref.r); - O.write_shift(2, ref.c); O.write_shift(2, ref.c); - for(var i = 0; i < TT.length; ++i) O.write_shift(2, TT.charCodeAt(i)); - O.write_shift(2, 0); - return O; -} - -/* [MS-XLS] 2.4.63 */ -function parse_Country(blob) { - var o = [0,0], d; - d = blob.read_shift(2); o[0] = CountryEnum[d] || d; - d = blob.read_shift(2); o[1] = CountryEnum[d] || d; - return o; -} -function write_Country(o) { - if(!o) o = new_buf(4); - o.write_shift(2, 0x01); - o.write_shift(2, 0x01); - return o; -} - -/* [MS-XLS] 2.4.50 ClrtClient */ -function parse_ClrtClient(blob) { - var ccv = blob.read_shift(2); - var o = []; - while(ccv-->0) o.push(parse_LongRGB(blob, 8)); - return o; -} - -/* [MS-XLS] 2.4.188 */ -function parse_Palette(blob) { - var ccv = blob.read_shift(2); - var o = []; - while(ccv-->0) o.push(parse_LongRGB(blob, 8)); - return o; -} - -/* [MS-XLS] 2.4.354 */ -function parse_XFCRC(blob) { - blob.l += 2; - var o = {cxfs:0, crc:0}; - o.cxfs = blob.read_shift(2); - o.crc = blob.read_shift(4); - return o; -} - -/* [MS-XLS] 2.4.53 TODO: parse flags */ -/* [MS-XLSB] 2.4.323 TODO: parse flags */ -function parse_ColInfo(blob, length, opts) { - if(!opts.cellStyles) return parsenoop(blob, length); - var w = opts && opts.biff >= 12 ? 4 : 2; - var colFirst = blob.read_shift(w); - var colLast = blob.read_shift(w); - var coldx = blob.read_shift(w); - var ixfe = blob.read_shift(w); - var flags = blob.read_shift(2); - if(w == 2) blob.l += 2; - var o = ({s:colFirst, e:colLast, w:coldx, ixfe:ixfe, flags:flags}); - if(opts.biff >= 5 || !opts.biff) o.level = (flags >> 8) & 0x7; - return o; -} -function write_ColInfo(col, idx) { - var o = new_buf(12); - o.write_shift(2, idx); - o.write_shift(2, idx); - o.write_shift(2, col.width * 256); - o.write_shift(2, 0); - var f = 0; - if(col.hidden) f |= 1; - o.write_shift(1, f); - f = col.level || 0; - o.write_shift(1, f); - o.write_shift(2, 0); - return o; -} - -/* [MS-XLS] 2.4.257 */ -function parse_Setup(blob, length) { - var o = {}; - if(length < 32) return o; - blob.l += 16; - o.header = parse_Xnum(blob, 8); - o.footer = parse_Xnum(blob, 8); - blob.l += 2; - return o; -} - -/* [MS-XLS] 2.4.261 */ -function parse_ShtProps(blob, length, opts) { - var def = {area:false}; - if(opts.biff != 5) { blob.l += length; return def; } - var d = blob.read_shift(1); blob.l += 3; - if((d & 0x10)) def.area = true; - return def; -} - -/* [MS-XLS] 2.4.241 */ -function write_RRTabId(n) { - var out = new_buf(2 * n); - for(var i = 0; i < n; ++i) out.write_shift(2, i+1); - return out; -} - -var parse_Blank = parse_XLSCell; /* [MS-XLS] 2.4.20 Just the cell */ -var parse_Scl = parseuint16a; /* [MS-XLS] 2.4.247 num, den */ -var parse_String = parse_XLUnicodeString; /* [MS-XLS] 2.4.268 */ - -/* --- Specific to versions before BIFF8 --- */ -function parse_ImData(blob) { - var cf = blob.read_shift(2); - var env = blob.read_shift(2); - var lcb = blob.read_shift(4); - var o = {fmt:cf, env:env, len:lcb, data:blob.slice(blob.l,blob.l+lcb)}; - blob.l += lcb; - return o; -} - -/* BIFF2_??? where ??? is the name from [XLS] */ -function parse_BIFF2STR(blob, length, opts) { - if(opts.biffguess && opts.biff == 5) opts.biff = 2; - var cell = parse_XLSCell(blob, 6); - ++blob.l; - var str = parse_XLUnicodeString2(blob, length-7, opts); - cell.t = 'str'; - cell.val = str; - return cell; -} - -function parse_BIFF2NUM(blob) { - var cell = parse_XLSCell(blob, 6); - ++blob.l; - var num = parse_Xnum(blob, 8); - cell.t = 'n'; - cell.val = num; - return cell; -} -function write_BIFF2NUM(r, c, val) { - var out = new_buf(15); - write_BIFF2Cell(out, r, c); - out.write_shift(8, val, 'f'); - return out; -} - -function parse_BIFF2INT(blob) { - var cell = parse_XLSCell(blob, 6); - ++blob.l; - var num = blob.read_shift(2); - cell.t = 'n'; - cell.val = num; - return cell; -} -function write_BIFF2INT(r, c, val) { - var out = new_buf(9); - write_BIFF2Cell(out, r, c); - out.write_shift(2, val); - return out; -} - -function parse_BIFF2STRING(blob) { - var cch = blob.read_shift(1); - if(cch === 0) { blob.l++; return ""; } - return blob.read_shift(cch, 'sbcs-cont'); -} - -/* TODO: convert to BIFF8 font struct */ -function parse_BIFF2FONTXTRA(blob, length) { - blob.l += 6; // unknown - blob.l += 2; // font weight "bls" - blob.l += 1; // charset - blob.l += 3; // unknown - blob.l += 1; // font family - blob.l += length - 13; -} - -/* TODO: parse rich text runs */ -function parse_RString(blob, length, opts) { - var end = blob.l + length; - var cell = parse_XLSCell(blob, 6); - var cch = blob.read_shift(2); - var str = parse_XLUnicodeStringNoCch(blob, cch, opts); - blob.l = end; - cell.t = 'str'; - cell.val = str; - return cell; -} -/* from js-harb (C) 2014-present SheetJS */ -var DBF = (function() { -var dbf_codepage_map = { - /* Code Pages Supported by Visual FoxPro */ -0x01: 437, 0x02: 850, -0x03: 1252, 0x04: 10000, -0x64: 852, 0x65: 866, -0x66: 865, 0x67: 861, -0x68: 895, 0x69: 620, -0x6A: 737, 0x6B: 857, -0x78: 950, 0x79: 949, -0x7A: 936, 0x7B: 932, -0x7C: 874, 0x7D: 1255, -0x7E: 1256, 0x96: 10007, -0x97: 10029, 0x98: 10006, -0xC8: 1250, 0xC9: 1251, -0xCA: 1254, 0xCB: 1253, - - /* shapefile DBF extension */ -0x00: 20127, 0x08: 865, -0x09: 437, 0x0A: 850, -0x0B: 437, 0x0D: 437, -0x0E: 850, 0x0F: 437, -0x10: 850, 0x11: 437, -0x12: 850, 0x13: 932, -0x14: 850, 0x15: 437, -0x16: 850, 0x17: 865, -0x18: 437, 0x19: 437, -0x1A: 850, 0x1B: 437, -0x1C: 863, 0x1D: 850, -0x1F: 852, 0x22: 852, -0x23: 852, 0x24: 860, -0x25: 850, 0x26: 866, -0x37: 850, 0x40: 852, -0x4D: 936, 0x4E: 949, -0x4F: 950, 0x50: 874, -0x57: 1252, 0x58: 1252, -0x59: 1252, 0x6C: 863, -0x86: 737, 0x87: 852, -0x88: 857, 0xCC: 1257, - -0xFF: 16969 -}; -var dbf_reverse_map = evert({ -0x01: 437, 0x02: 850, -0x03: 1252, 0x04: 10000, -0x64: 852, 0x65: 866, -0x66: 865, 0x67: 861, -0x68: 895, 0x69: 620, -0x6A: 737, 0x6B: 857, -0x78: 950, 0x79: 949, -0x7A: 936, 0x7B: 932, -0x7C: 874, 0x7D: 1255, -0x7E: 1256, 0x96: 10007, -0x97: 10029, 0x98: 10006, -0xC8: 1250, 0xC9: 1251, -0xCA: 1254, 0xCB: 1253, -0x00: 20127 -}); -var DBF_SUPPORTED_VERSIONS = [0x02, 0x03, 0x30, 0x31, 0x83, 0x8B, 0x8C, 0xF5]; -/* TODO: find an actual specification */ -function dbf_to_aoa(buf, opts) { - var out = []; - var d = (new_raw_buf(1)); - switch(opts.type) { - case 'base64': d = s2a(Base64.decode(buf)); break; - case 'binary': d = s2a(buf); break; - case 'buffer': - case 'array': d = buf; break; - } - prep_blob(d, 0); - - /* header */ - var ft = d.read_shift(1); - var memo = !!(ft & 0x88); - var vfp = false, l7 = false; - switch(ft) { - case 0x02: break; // dBASE II - case 0x03: break; // dBASE III - case 0x30: vfp = true; memo = true; break; // VFP - case 0x31: vfp = true; memo = true; break; // VFP with autoincrement - // 0x43 dBASE IV SQL table files - // 0x63 dBASE IV SQL system files - case 0x83: break; // dBASE III with memo - case 0x8B: break; // dBASE IV with memo - case 0x8C: l7 = true; break; // dBASE Level 7 with memo - // case 0xCB dBASE IV SQL table files with memo - case 0xF5: break; // FoxPro 2.x with memo - // case 0xFB FoxBASE - default: throw new Error("DBF Unsupported Version: " + ft.toString(16)); - } - - var nrow = 0, fpos = 0x0209; - if(ft == 0x02) nrow = d.read_shift(2); - d.l += 3; // dBASE II stores DDMMYY date, others use YYMMDD - if(ft != 0x02) nrow = d.read_shift(4); - if(nrow > 1048576) nrow = 1e6; - - if(ft != 0x02) fpos = d.read_shift(2); // header length - var rlen = d.read_shift(2); // record length - - var /*flags = 0,*/ current_cp = opts.codepage || 1252; - if(ft != 0x02) { // 20 reserved bytes - d.l+=16; - /*flags = */d.read_shift(1); - //if(memo && ((flags & 0x02) === 0)) throw new Error("DBF Flags " + flags.toString(16) + " ft " + ft.toString(16)); - - /* codepage present in FoxPro and dBASE Level 7 */ - if(d[d.l] !== 0) current_cp = dbf_codepage_map[d[d.l]]; - d.l+=1; - - d.l+=2; - } - if(l7) d.l += 36; // Level 7: 32 byte "Language driver name", 4 byte reserved - -var fields = [], field = ({}); - var hend = Math.min(d.length, (ft == 0x02 ? 0x209 : (fpos - 10 - (vfp ? 264 : 0)))); - var ww = l7 ? 32 : 11; - while(d.l < hend && d[d.l] != 0x0d) { - field = ({}); - field.name = cptable.utils.decode(current_cp, d.slice(d.l, d.l+ww)).replace(/[\u0000\r\n].*$/g,""); - d.l += ww; - field.type = String.fromCharCode(d.read_shift(1)); - if(ft != 0x02 && !l7) field.offset = d.read_shift(4); - field.len = d.read_shift(1); - if(ft == 0x02) field.offset = d.read_shift(2); - field.dec = d.read_shift(1); - if(field.name.length) fields.push(field); - if(ft != 0x02) d.l += l7 ? 13 : 14; - switch(field.type) { - case 'B': // Double (VFP) / Binary (dBASE L7) - if((!vfp || field.len != 8) && opts.WTF) console.log('Skipping ' + field.name + ':' + field.type); - break; - case 'G': // General (FoxPro and dBASE L7) - case 'P': // Picture (FoxPro and dBASE L7) - if(opts.WTF) console.log('Skipping ' + field.name + ':' + field.type); - break; - case '+': // Autoincrement (dBASE L7 only) - case '0': // _NullFlags (VFP only) - case '@': // Timestamp (dBASE L7 only) - case 'C': // Character (dBASE II) - case 'D': // Date (dBASE III) - case 'F': // Float (dBASE IV) - case 'I': // Long (VFP and dBASE L7) - case 'L': // Logical (dBASE II) - case 'M': // Memo (dBASE III) - case 'N': // Number (dBASE II) - case 'O': // Double (dBASE L7 only) - case 'T': // Datetime (VFP only) - case 'Y': // Currency (VFP only) - break; - default: throw new Error('Unknown Field Type: ' + field.type); - } - } - - if(d[d.l] !== 0x0D) d.l = fpos-1; - if(d.read_shift(1) !== 0x0D) throw new Error("DBF Terminator not found " + d.l + " " + d[d.l]); - d.l = fpos; - - /* data */ - var R = 0, C = 0; - out[0] = []; - for(C = 0; C != fields.length; ++C) out[0][C] = fields[C].name; - while(nrow-- > 0) { - if(d[d.l] === 0x2A) { - // TODO: record marked as deleted -- create a hidden row? - d.l+=rlen; - continue; - } - ++d.l; - out[++R] = []; C = 0; - for(C = 0; C != fields.length; ++C) { - var dd = d.slice(d.l, d.l+fields[C].len); d.l+=fields[C].len; - prep_blob(dd, 0); - var s = cptable.utils.decode(current_cp, dd); - switch(fields[C].type) { - case 'C': - // NOTE: it is conventional to write ' / / ' for empty dates - if(s.trim().length) out[R][C] = s.replace(/\s+$/,""); - break; - case 'D': - if(s.length === 8) out[R][C] = new Date(+s.slice(0,4), +s.slice(4,6)-1, +s.slice(6,8)); - else out[R][C] = s; - break; - case 'F': out[R][C] = parseFloat(s.trim()); break; - case '+': case 'I': out[R][C] = l7 ? dd.read_shift(-4, 'i') ^ 0x80000000 : dd.read_shift(4, 'i'); break; - case 'L': switch(s.trim().toUpperCase()) { - case 'Y': case 'T': out[R][C] = true; break; - case 'N': case 'F': out[R][C] = false; break; - case '': case '?': break; - default: throw new Error("DBF Unrecognized L:|" + s + "|"); - } break; - case 'M': /* TODO: handle memo files */ - if(!memo) throw new Error("DBF Unexpected MEMO for type " + ft.toString(16)); - out[R][C] = "##MEMO##" + (l7 ? parseInt(s.trim(), 10): dd.read_shift(4)); - break; - case 'N': - s = s.replace(/\u0000/g,"").trim(); - // NOTE: dBASE II interprets " . " as 0 - if(s && s != ".") out[R][C] = +s || 0; break; - case '@': - // NOTE: dBASE specs appear to be incorrect - out[R][C] = new Date(dd.read_shift(-8, 'f') - 0x388317533400); - break; - case 'T': out[R][C] = new Date((dd.read_shift(4) - 0x253D8C) * 0x5265C00 + dd.read_shift(4)); break; - case 'Y': out[R][C] = dd.read_shift(4,'i')/1e4; break; - case 'O': out[R][C] = -dd.read_shift(-8, 'f'); break; - case 'B': if(vfp && fields[C].len == 8) { out[R][C] = dd.read_shift(8,'f'); break; } - /* falls through */ - case 'G': case 'P': dd.l += fields[C].len; break; - case '0': - if(fields[C].name === '_NullFlags') break; - /* falls through */ - default: throw new Error("DBF Unsupported data type " + fields[C].type); - } - } - } - if(ft != 0x02) if(d.l < d.length && d[d.l++] != 0x1A) throw new Error("DBF EOF Marker missing " + (d.l-1) + " of " + d.length + " " + d[d.l-1].toString(16)); - if(opts && opts.sheetRows) out = out.slice(0, opts.sheetRows); - return out; -} - -function dbf_to_sheet(buf, opts) { - var o = opts || {}; - if(!o.dateNF) o.dateNF = "yyyymmdd"; - return aoa_to_sheet(dbf_to_aoa(buf, o), o); -} - -function dbf_to_workbook(buf, opts) { - try { return sheet_to_workbook(dbf_to_sheet(buf, opts), opts); } - catch(e) { if(opts && opts.WTF) throw e; } - return ({SheetNames:[],Sheets:{}}); -} - -var _RLEN = { 'B': 8, 'C': 250, 'L': 1, 'D': 8, '?': 0, '': 0 }; -function sheet_to_dbf(ws, opts) { - var o = opts || {}; - if(+o.codepage >= 0) set_cp(+o.codepage); - if(o.type == "string") throw new Error("Cannot write DBF to JS string"); - var ba = buf_array(); - var aoa = sheet_to_json(ws, {header:1, raw:true, cellDates:true}); - var headers = aoa[0], data = aoa.slice(1); - var i = 0, j = 0, hcnt = 0, rlen = 1; - for(i = 0; i < headers.length; ++i) { - if(i == null) continue; - ++hcnt; - if(typeof headers[i] === 'number') headers[i] = headers[i].toString(10); - if(typeof headers[i] !== 'string') throw new Error("DBF Invalid column name " + headers[i] + " |" + (typeof headers[i]) + "|"); - if(headers.indexOf(headers[i]) !== i) for(j=0; j<1024;++j) - if(headers.indexOf(headers[i] + "_" + j) == -1) { headers[i] += "_" + j; break; } - } - var range = safe_decode_range(ws['!ref']); - var coltypes = []; - for(i = 0; i <= range.e.c - range.s.c; ++i) { - var col = []; - for(j=0; j < data.length; ++j) { - if(data[j][i] != null) col.push(data[j][i]); - } - if(col.length == 0 || headers[i] == null) { coltypes[i] = '?'; continue; } - var guess = '', _guess = ''; - for(j = 0; j < col.length; ++j) { - switch(typeof col[j]) { - /* TODO: check if L2 compat is desired */ - case 'number': _guess = 'B'; break; - case 'string': _guess = 'C'; break; - case 'boolean': _guess = 'L'; break; - case 'object': _guess = col[j] instanceof Date ? 'D' : 'C'; break; - default: _guess = 'C'; - } - guess = guess && guess != _guess ? 'C' : _guess; - if(guess == 'C') break; - } - rlen += _RLEN[guess] || 0; - coltypes[i] = guess; - } - - var h = ba.next(32); - h.write_shift(4, 0x13021130); - h.write_shift(4, data.length); - h.write_shift(2, 296 + 32 * hcnt); - h.write_shift(2, rlen); - for(i=0; i < 4; ++i) h.write_shift(4, 0); - h.write_shift(4, 0x00000000 | ((+dbf_reverse_map[current_ansi] || 0x03)<<8)); - - for(i = 0, j = 0; i < headers.length; ++i) { - if(headers[i] == null) continue; - var hf = ba.next(32); - var _f = (headers[i].slice(-10) + "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00").slice(0, 11); - hf.write_shift(1, _f, "sbcs"); - hf.write_shift(1, coltypes[i] == '?' ? 'C' : coltypes[i], "sbcs"); - hf.write_shift(4, j); - hf.write_shift(1, _RLEN[coltypes[i]] || 0); - hf.write_shift(1, 0); - hf.write_shift(1, 0x02); - hf.write_shift(4, 0); - hf.write_shift(1, 0); - hf.write_shift(4, 0); - hf.write_shift(4, 0); - j += _RLEN[coltypes[i]] || 0; - } - - var hb = ba.next(264); - hb.write_shift(4, 0x0000000D); - for(i=0; i < 65;++i) hb.write_shift(4, 0x00000000); - for(i=0; i < data.length; ++i) { - var rout = ba.next(rlen); - rout.write_shift(1, 0); - for(j=0; j":190, "?":191, "{":223 - }); - var sylk_char_regex = new RegExp("\u001BN(" + keys(sylk_escapes).join("|").replace(/\|\|\|/, "|\\||").replace(/([?()+])/g,"\\$1") + "|\\|)", "gm"); - var sylk_char_fn = function(_, $1){ var o = sylk_escapes[$1]; return typeof o == "number" ? _getansi(o) : o; }; - var decode_sylk_char = function($$, $1, $2) { var newcc = (($1.charCodeAt(0) - 0x20)<<4) | ($2.charCodeAt(0) - 0x30); return newcc == 59 ? $$ : _getansi(newcc); }; - sylk_escapes["|"] = 254; - /* TODO: find an actual specification */ - function sylk_to_aoa(d, opts) { - switch(opts.type) { - case 'base64': return sylk_to_aoa_str(Base64.decode(d), opts); - case 'binary': return sylk_to_aoa_str(d, opts); - case 'buffer': return sylk_to_aoa_str(has_buf && Buffer.isBuffer(d) ? d.toString('binary') : a2s(d), opts); - case 'array': return sylk_to_aoa_str(cc2str(d), opts); - } - throw new Error("Unrecognized type " + opts.type); - } - function sylk_to_aoa_str(str, opts) { - var records = str.split(/[\n\r]+/), R = -1, C = -1, ri = 0, rj = 0, arr = []; - var formats = []; - var next_cell_format = null; - var sht = {}, rowinfo = [], colinfo = [], cw = []; - var Mval = 0, j; - if(+opts.codepage >= 0) set_cp(+opts.codepage); - for (; ri !== records.length; ++ri) { - Mval = 0; - var rstr=records[ri].trim().replace(/\x1B([\x20-\x2F])([\x30-\x3F])/g, decode_sylk_char).replace(sylk_char_regex, sylk_char_fn); - var record=rstr.replace(/;;/g, "\u0000").split(";").map(function(x) { return x.replace(/\u0000/g, ";"); }); - var RT=record[0], val; - if(rstr.length > 0) switch(RT) { - case 'ID': break; /* header */ - case 'E': break; /* EOF */ - case 'B': break; /* dimensions */ - case 'O': break; /* options? */ - case 'W': break; /* window? */ - case 'P': - if(record[1].charAt(0) == 'P') - formats.push(rstr.slice(3).replace(/;;/g, ";")); - break; - case 'C': - var C_seen_K = false, C_seen_X = false, C_seen_S = false, C_seen_E = false, _R = -1, _C = -1; - for(rj=1; rj -1 && arr[_R][_C]; - if(!shrbase || !shrbase[1]) throw new Error("SYLK shared formula cannot find base"); - arr[R][C][1] = shift_formula_str(shrbase[1], {r: R - _R, c: C - _C}); - } - break; - case 'F': - var F_seen = 0; - for(rj=1; rj 0) { rowinfo[R].hpt = Mval; rowinfo[R].hpx = pt2px(Mval); } - else if(Mval === 0) rowinfo[R].hidden = true; - break; - default: if(opts && opts.WTF) throw new Error("SYLK bad record " + rstr); - } - if(F_seen < 1) next_cell_format = null; break; - default: if(opts && opts.WTF) throw new Error("SYLK bad record " + rstr); - } - } - if(rowinfo.length > 0) sht['!rows'] = rowinfo; - if(colinfo.length > 0) sht['!cols'] = colinfo; - if(opts && opts.sheetRows) arr = arr.slice(0, opts.sheetRows); - return [arr, sht]; - } - - function sylk_to_sheet(d, opts) { - var aoasht = sylk_to_aoa(d, opts); - var aoa = aoasht[0], ws = aoasht[1]; - var o = aoa_to_sheet(aoa, opts); - keys(ws).forEach(function(k) { o[k] = ws[k]; }); - return o; - } - - function sylk_to_workbook(d, opts) { return sheet_to_workbook(sylk_to_sheet(d, opts), opts); } - - function write_ws_cell_sylk(cell, ws, R, C) { - var o = "C;Y" + (R+1) + ";X" + (C+1) + ";K"; - switch(cell.t) { - case 'n': - o += (cell.v||0); - if(cell.f && !cell.F) o += ";E" + a1_to_rc(cell.f, {r:R, c:C}); break; - case 'b': o += cell.v ? "TRUE" : "FALSE"; break; - case 'e': o += cell.w || cell.v; break; - case 'd': o += '"' + (cell.w || cell.v) + '"'; break; - case 's': o += '"' + cell.v.replace(/"/g,"").replace(/;/g, ";;") + '"'; break; - } - return o; - } - - function write_ws_cols_sylk(out, cols) { - cols.forEach(function(col, i) { - var rec = "F;W" + (i+1) + " " + (i+1) + " "; - if(col.hidden) rec += "0"; - else { - if(typeof col.width == 'number' && !col.wpx) col.wpx = width2px(col.width); - if(typeof col.wpx == 'number' && !col.wch) col.wch = px2char(col.wpx); - if(typeof col.wch == 'number') rec += Math.round(col.wch); - } - if(rec.charAt(rec.length - 1) != " ") out.push(rec); - }); - } - - function write_ws_rows_sylk(out, rows) { - rows.forEach(function(row, i) { - var rec = "F;"; - if(row.hidden) rec += "M0;"; - else if(row.hpt) rec += "M" + 20 * row.hpt + ";"; - else if(row.hpx) rec += "M" + 20 * px2pt(row.hpx) + ";"; - if(rec.length > 2) out.push(rec + "R" + (i+1)); - }); - } - - function sheet_to_sylk(ws, opts) { - var preamble = ["ID;PWXL;N;E"], o = []; - var r = safe_decode_range(ws['!ref']), cell; - var dense = Array.isArray(ws); - var RS = "\r\n"; - - preamble.push("P;PGeneral"); - preamble.push("F;P0;DG0G8;M255"); - if(ws['!cols']) write_ws_cols_sylk(preamble, ws['!cols']); - if(ws['!rows']) write_ws_rows_sylk(preamble, ws['!rows']); - - preamble.push("B;Y" + (r.e.r - r.s.r + 1) + ";X" + (r.e.c - r.s.c + 1) + ";D" + [r.s.c,r.s.r,r.e.c,r.e.r].join(" ")); - for(var R = r.s.r; R <= r.e.r; ++R) { - for(var C = r.s.c; C <= r.e.c; ++C) { - var coord = encode_cell({r:R,c:C}); - cell = dense ? (ws[R]||[])[C]: ws[coord]; - if(!cell || (cell.v == null && (!cell.f || cell.F))) continue; - o.push(write_ws_cell_sylk(cell, ws, R, C, opts)); - } - } - return preamble.join(RS) + RS + o.join(RS) + RS + "E" + RS; - } - - return { - to_workbook: sylk_to_workbook, - to_sheet: sylk_to_sheet, - from_sheet: sheet_to_sylk - }; -})(); - -var DIF = (function() { - function dif_to_aoa(d, opts) { - switch(opts.type) { - case 'base64': return dif_to_aoa_str(Base64.decode(d), opts); - case 'binary': return dif_to_aoa_str(d, opts); - case 'buffer': return dif_to_aoa_str(has_buf && Buffer.isBuffer(d) ? d.toString('binary') : a2s(d), opts); - case 'array': return dif_to_aoa_str(cc2str(d), opts); - } - throw new Error("Unrecognized type " + opts.type); - } - function dif_to_aoa_str(str, opts) { - var records = str.split('\n'), R = -1, C = -1, ri = 0, arr = []; - for (; ri !== records.length; ++ri) { - if (records[ri].trim() === 'BOT') { arr[++R] = []; C = 0; continue; } - if (R < 0) continue; - var metadata = records[ri].trim().split(","); - var type = metadata[0], value = metadata[1]; - ++ri; - var data = records[ri] || ""; - while(((data.match(/["]/g)||[]).length & 1) && ri < records.length - 1) data += "\n" + records[++ri]; - data = data.trim(); - switch (+type) { - case -1: - if (data === 'BOT') { arr[++R] = []; C = 0; continue; } - else if (data !== 'EOD') throw new Error("Unrecognized DIF special command " + data); - break; - case 0: - if(data === 'TRUE') arr[R][C] = true; - else if(data === 'FALSE') arr[R][C] = false; - else if(!isNaN(fuzzynum(value))) arr[R][C] = fuzzynum(value); - else if(!isNaN(fuzzydate(value).getDate())) arr[R][C] = parseDate(value); - else arr[R][C] = value; - ++C; break; - case 1: - data = data.slice(1,data.length-1); - data = data.replace(/""/g, '"'); - if(DIF_XL && data && data.match(/^=".*"$/)) data = data.slice(2, -1); - arr[R][C++] = data !== '' ? data : null; - break; - } - if (data === 'EOD') break; - } - if(opts && opts.sheetRows) arr = arr.slice(0, opts.sheetRows); - return arr; - } - - function dif_to_sheet(str, opts) { return aoa_to_sheet(dif_to_aoa(str, opts), opts); } - function dif_to_workbook(str, opts) { return sheet_to_workbook(dif_to_sheet(str, opts), opts); } - - var sheet_to_dif = (function() { - var push_field = function pf(o, topic, v, n, s) { - o.push(topic); - o.push(v + "," + n); - o.push('"' + s.replace(/"/g,'""') + '"'); - }; - var push_value = function po(o, type, v, s) { - o.push(type + "," + v); - o.push(type == 1 ? '"' + s.replace(/"/g,'""') + '"' : s); - }; - return function sheet_to_dif(ws) { - var o = []; - var r = safe_decode_range(ws['!ref']), cell; - var dense = Array.isArray(ws); - push_field(o, "TABLE", 0, 1, "sheetjs"); - push_field(o, "VECTORS", 0, r.e.r - r.s.r + 1,""); - push_field(o, "TUPLES", 0, r.e.c - r.s.c + 1,""); - push_field(o, "DATA", 0, 0,""); - for(var R = r.s.r; R <= r.e.r; ++R) { - push_value(o, -1, 0, "BOT"); - for(var C = r.s.c; C <= r.e.c; ++C) { - var coord = encode_cell({r:R,c:C}); - cell = dense ? (ws[R]||[])[C] : ws[coord]; - if(!cell) { push_value(o, 1, 0, ""); continue;} - switch(cell.t) { - case 'n': - var val = DIF_XL ? cell.w : cell.v; - if(!val && cell.v != null) val = cell.v; - if(val == null) { - if(DIF_XL && cell.f && !cell.F) push_value(o, 1, 0, "=" + cell.f); - else push_value(o, 1, 0, ""); - } - else push_value(o, 0, val, "V"); - break; - case 'b': - push_value(o, 0, cell.v ? 1 : 0, cell.v ? "TRUE" : "FALSE"); - break; - case 's': - push_value(o, 1, 0, (!DIF_XL || isNaN(cell.v)) ? cell.v : '="' + cell.v + '"'); - break; - case 'd': - if(!cell.w) cell.w = SSF.format(cell.z || SSF._table[14], datenum(parseDate(cell.v))); - if(DIF_XL) push_value(o, 0, cell.w, "V"); - else push_value(o, 1, 0, cell.w); - break; - default: push_value(o, 1, 0, ""); - } - } - } - push_value(o, -1, 0, "EOD"); - var RS = "\r\n"; - var oo = o.join(RS); - //while((oo.length & 0x7F) != 0) oo += "\0"; - return oo; - }; - })(); - return { - to_workbook: dif_to_workbook, - to_sheet: dif_to_sheet, - from_sheet: sheet_to_dif - }; -})(); - -var ETH = (function() { - function decode(s) { return s.replace(/\\b/g,"\\").replace(/\\c/g,":").replace(/\\n/g,"\n"); } - function encode(s) { return s.replace(/\\/g, "\\b").replace(/:/g, "\\c").replace(/\n/g,"\\n"); } - - function eth_to_aoa(str, opts) { - var records = str.split('\n'), R = -1, C = -1, ri = 0, arr = []; - for (; ri !== records.length; ++ri) { - var record = records[ri].trim().split(":"); - if(record[0] !== 'cell') continue; - var addr = decode_cell(record[1]); - if(arr.length <= addr.r) for(R = arr.length; R <= addr.r; ++R) if(!arr[R]) arr[R] = []; - R = addr.r; C = addr.c; - switch(record[2]) { - case 't': arr[R][C] = decode(record[3]); break; - case 'v': arr[R][C] = +record[3]; break; - case 'vtf': var _f = record[record.length - 1]; - /* falls through */ - case 'vtc': - switch(record[3]) { - case 'nl': arr[R][C] = +record[4] ? true : false; break; - default: arr[R][C] = +record[4]; break; - } - if(record[2] == 'vtf') arr[R][C] = [arr[R][C], _f]; - } - } - if(opts && opts.sheetRows) arr = arr.slice(0, opts.sheetRows); - return arr; - } - - function eth_to_sheet(d, opts) { return aoa_to_sheet(eth_to_aoa(d, opts), opts); } - function eth_to_workbook(d, opts) { return sheet_to_workbook(eth_to_sheet(d, opts), opts); } - - var header = [ - "socialcalc:version:1.5", - "MIME-Version: 1.0", - "Content-Type: multipart/mixed; boundary=SocialCalcSpreadsheetControlSave" - ].join("\n"); - - var sep = [ - "--SocialCalcSpreadsheetControlSave", - "Content-type: text/plain; charset=UTF-8" - ].join("\n") + "\n"; - - /* TODO: the other parts */ - var meta = [ - "# SocialCalc Spreadsheet Control Save", - "part:sheet" - ].join("\n"); - - var end = "--SocialCalcSpreadsheetControlSave--"; - - function sheet_to_eth_data(ws) { - if(!ws || !ws['!ref']) return ""; - var o = [], oo = [], cell, coord = ""; - var r = decode_range(ws['!ref']); - var dense = Array.isArray(ws); - for(var R = r.s.r; R <= r.e.r; ++R) { - for(var C = r.s.c; C <= r.e.c; ++C) { - coord = encode_cell({r:R,c:C}); - cell = dense ? (ws[R]||[])[C] : ws[coord]; - if(!cell || cell.v == null || cell.t === 'z') continue; - oo = ["cell", coord, 't']; - switch(cell.t) { - case 's': case 'str': oo.push(encode(cell.v)); break; - case 'n': - if(!cell.f) { oo[2]='v'; oo[3]=cell.v; } - else { oo[2]='vtf'; oo[3]='n'; oo[4]=cell.v; oo[5]=encode(cell.f); } - break; - case 'b': - oo[2] = 'vt'+(cell.f?'f':'c'); oo[3]='nl'; oo[4]=cell.v?"1":"0"; - oo[5] = encode(cell.f||(cell.v?'TRUE':'FALSE')); - break; - case 'd': - var t = datenum(parseDate(cell.v)); - oo[2] = 'vtc'; oo[3] = 'nd'; oo[4] = ""+t; - oo[5] = cell.w || SSF.format(cell.z || SSF._table[14], t); - break; - case 'e': continue; - } - o.push(oo.join(":")); - } - } - o.push("sheet:c:" + (r.e.c-r.s.c+1) + ":r:" + (r.e.r-r.s.r+1) + ":tvf:1"); - o.push("valueformat:1:text-wiki"); - //o.push("copiedfrom:" + ws['!ref']); // clipboard only - return o.join("\n"); - } - - function sheet_to_eth(ws) { - return [header, sep, meta, sep, sheet_to_eth_data(ws), end].join("\n"); - // return ["version:1.5", sheet_to_eth_data(ws)].join("\n"); // clipboard form - } - - return { - to_workbook: eth_to_workbook, - to_sheet: eth_to_sheet, - from_sheet: sheet_to_eth - }; -})(); - -var PRN = (function() { - function set_text_arr(data, arr, R, C, o) { - if(o.raw) arr[R][C] = data; - else if(data === ""){/* empty */} - else if(data === 'TRUE') arr[R][C] = true; - else if(data === 'FALSE') arr[R][C] = false; - else if(!isNaN(fuzzynum(data))) arr[R][C] = fuzzynum(data); - else if(!isNaN(fuzzydate(data).getDate())) arr[R][C] = parseDate(data); - else arr[R][C] = data; - } - - function prn_to_aoa_str(f, opts) { - var o = opts || {}; - var arr = ([]); - if(!f || f.length === 0) return arr; - var lines = f.split(/[\r\n]/); - var L = lines.length - 1; - while(L >= 0 && lines[L].length === 0) --L; - var start = 10, idx = 0; - var R = 0; - for(; R <= L; ++R) { - idx = lines[R].indexOf(" "); - if(idx == -1) idx = lines[R].length; else idx++; - start = Math.max(start, idx); - } - for(R = 0; R <= L; ++R) { - arr[R] = []; - /* TODO: confirm that widths are always 10 */ - var C = 0; - set_text_arr(lines[R].slice(0, start).trim(), arr, R, C, o); - for(C = 1; C <= (lines[R].length - start)/10 + 1; ++C) - set_text_arr(lines[R].slice(start+(C-1)*10,start+C*10).trim(),arr,R,C,o); - } - if(o.sheetRows) arr = arr.slice(0, o.sheetRows); - return arr; - } - - // List of accepted CSV separators - var guess_seps = { -0x2C: ',', -0x09: "\t", -0x3B: ';', -0x7C: '|' - }; - - // CSV separator weights to be used in case of equal numbers - var guess_sep_weights = { -0x2C: 3, -0x09: 2, -0x3B: 1, -0x7C: 0 - }; - - function guess_sep(str) { - var cnt = {}, instr = false, end = 0, cc = 0; - for(;end < str.length;++end) { - if((cc=str.charCodeAt(end)) == 0x22) instr = !instr; - else if(!instr && cc in guess_seps) cnt[cc] = (cnt[cc]||0)+1; - } - - cc = []; - for(end in cnt) if ( Object.prototype.hasOwnProperty.call(cnt, end) ) { - cc.push([ cnt[end], end ]); - } - - if ( !cc.length ) { - cnt = guess_sep_weights; - for(end in cnt) if ( Object.prototype.hasOwnProperty.call(cnt, end) ) { - cc.push([ cnt[end], end ]); - } - } - - cc.sort(function(a, b) { return a[0] - b[0] || guess_sep_weights[a[1]] - guess_sep_weights[b[1]]; }); - - return guess_seps[cc.pop()[1]] || 0x2C; - } - - function dsv_to_sheet_str(str, opts) { - var o = opts || {}; - var sep = ""; - if(DENSE != null && o.dense == null) o.dense = DENSE; - var ws = o.dense ? ([]) : ({}); - var range = ({s: {c:0, r:0}, e: {c:0, r:0}}); - - if(str.slice(0,4) == "sep=") { - // If the line ends in \r\n - if(str.charCodeAt(5) == 13 && str.charCodeAt(6) == 10 ) { - sep = str.charAt(4); str = str.slice(7); - } - // If line ends in \r OR \n - else if(str.charCodeAt(5) == 13 || str.charCodeAt(5) == 10 ) { - sep = str.charAt(4); str = str.slice(6); - } - else sep = guess_sep(str.slice(0,1024)); - } - else if(o && o.FS) sep = o.FS; - else sep = guess_sep(str.slice(0,1024)); - var R = 0, C = 0, v = 0; - var start = 0, end = 0, sepcc = sep.charCodeAt(0), instr = false, cc=0, startcc=str.charCodeAt(0); - str = str.replace(/\r\n/mg, "\n"); - var _re = o.dateNF != null ? dateNF_regex(o.dateNF) : null; - function finish_cell() { - var s = str.slice(start, end); - var cell = ({}); - if(s.charAt(0) == '"' && s.charAt(s.length - 1) == '"') s = s.slice(1,-1).replace(/""/g,'"'); - if(s.length === 0) cell.t = 'z'; - else if(o.raw) { cell.t = 's'; cell.v = s; } - else if(s.trim().length === 0) { cell.t = 's'; cell.v = s; } - else if(s.charCodeAt(0) == 0x3D) { - if(s.charCodeAt(1) == 0x22 && s.charCodeAt(s.length - 1) == 0x22) { cell.t = 's'; cell.v = s.slice(2,-1).replace(/""/g,'"'); } - else if(fuzzyfmla(s)) { cell.t = 'n'; cell.f = s.slice(1); } - else { cell.t = 's'; cell.v = s; } } - else if(s == "TRUE") { cell.t = 'b'; cell.v = true; } - else if(s == "FALSE") { cell.t = 'b'; cell.v = false; } - else if(!isNaN(v = fuzzynum(s))) { cell.t = 'n'; if(o.cellText !== false) cell.w = s; cell.v = v; } - else if(!isNaN(fuzzydate(s).getDate()) || _re && s.match(_re)) { - cell.z = o.dateNF || SSF._table[14]; - var k = 0; - if(_re && s.match(_re)){ s=dateNF_fix(s, o.dateNF, (s.match(_re)||[])); k=1; } - if(o.cellDates) { cell.t = 'd'; cell.v = parseDate(s, k); } - else { cell.t = 'n'; cell.v = datenum(parseDate(s, k)); } - if(o.cellText !== false) cell.w = SSF.format(cell.z, cell.v instanceof Date ? datenum(cell.v):cell.v); - if(!o.cellNF) delete cell.z; - } else { - cell.t = 's'; - cell.v = s; - } - if(cell.t == 'z'){} - else if(o.dense) { if(!ws[R]) ws[R] = []; ws[R][C] = cell; } - else ws[encode_cell({c:C,r:R})] = cell; - start = end+1; startcc = str.charCodeAt(start); - if(range.e.c < C) range.e.c = C; - if(range.e.r < R) range.e.r = R; - if(cc == sepcc) ++C; else { C = 0; ++R; if(o.sheetRows && o.sheetRows <= R) return true; } - } - outer: for(;end < str.length;++end) switch((cc=str.charCodeAt(end))) { - case 0x22: if(startcc === 0x22) instr = !instr; break; - case sepcc: case 0x0a: case 0x0d: if(!instr && finish_cell()) break outer; break; - default: break; - } - if(end - start > 0) finish_cell(); - - ws['!ref'] = encode_range(range); - return ws; - } - - function prn_to_sheet_str(str, opts) { - if(!(opts && opts.PRN)) return dsv_to_sheet_str(str, opts); - if(opts.FS) return dsv_to_sheet_str(str, opts); - if(str.slice(0,4) == "sep=") return dsv_to_sheet_str(str, opts); - if(str.indexOf("\t") >= 0 || str.indexOf(",") >= 0 || str.indexOf(";") >= 0) return dsv_to_sheet_str(str, opts); - return aoa_to_sheet(prn_to_aoa_str(str, opts), opts); - } - - function prn_to_sheet(d, opts) { - var str = "", bytes = opts.type == 'string' ? [0,0,0,0] : firstbyte(d, opts); - switch(opts.type) { - case 'base64': str = Base64.decode(d); break; - case 'binary': str = d; break; - case 'buffer': - if(opts.codepage == 65001) str = d.toString('utf8'); // TODO: test if buf - else if(opts.codepage && typeof cptable !== 'undefined') str = cptable.utils.decode(opts.codepage, d); - else str = has_buf && Buffer.isBuffer(d) ? d.toString('binary') : a2s(d); - break; - case 'array': str = cc2str(d); break; - case 'string': str = d; break; - default: throw new Error("Unrecognized type " + opts.type); - } - if(bytes[0] == 0xEF && bytes[1] == 0xBB && bytes[2] == 0xBF) str = utf8read(str.slice(3)); - else if(opts.type != 'string' && opts.type != 'buffer' && opts.codepage == 65001) str = utf8read(str); - else if((opts.type == 'binary') && typeof cptable !== 'undefined' && opts.codepage) str = cptable.utils.decode(opts.codepage, cptable.utils.encode(28591,str)); - if(str.slice(0,19) == "socialcalc:version:") return ETH.to_sheet(opts.type == 'string' ? str : utf8read(str), opts); - return prn_to_sheet_str(str, opts); - } - - function prn_to_workbook(d, opts) { return sheet_to_workbook(prn_to_sheet(d, opts), opts); } - - function sheet_to_prn(ws) { - var o = []; - var r = safe_decode_range(ws['!ref']), cell; - var dense = Array.isArray(ws); - for(var R = r.s.r; R <= r.e.r; ++R) { - var oo = []; - for(var C = r.s.c; C <= r.e.c; ++C) { - var coord = encode_cell({r:R,c:C}); - cell = dense ? (ws[R]||[])[C] : ws[coord]; - if(!cell || cell.v == null) { oo.push(" "); continue; } - var w = (cell.w || (format_cell(cell), cell.w) || "").slice(0,10); - while(w.length < 10) w += " "; - oo.push(w + (C === 0 ? " " : "")); - } - o.push(oo.join("")); - } - return o.join("\n"); - } - - return { - to_workbook: prn_to_workbook, - to_sheet: prn_to_sheet, - from_sheet: sheet_to_prn - }; -})(); - -/* Excel defaults to SYLK but warns if data is not valid */ -function read_wb_ID(d, opts) { - var o = opts || {}, OLD_WTF = !!o.WTF; o.WTF = true; - try { - var out = SYLK.to_workbook(d, o); - o.WTF = OLD_WTF; - return out; - } catch(e) { - o.WTF = OLD_WTF; - if(!e.message.match(/SYLK bad record ID/) && OLD_WTF) throw e; - return PRN.to_workbook(d, opts); - } -} - -var WK_ = (function() { - function lotushopper(data, cb, opts) { - if(!data) return; - prep_blob(data, data.l || 0); - var Enum = opts.Enum || WK1Enum; - while(data.l < data.length) { - var RT = data.read_shift(2); - var R = Enum[RT] || Enum[0xFFFF]; - var length = data.read_shift(2); - var tgt = data.l + length; - var d = R.f && R.f(data, length, opts); - data.l = tgt; - if(cb(d, R, RT)) return; - } - } - - function lotus_to_workbook(d, opts) { - switch(opts.type) { - case 'base64': return lotus_to_workbook_buf(s2a(Base64.decode(d)), opts); - case 'binary': return lotus_to_workbook_buf(s2a(d), opts); - case 'buffer': - case 'array': return lotus_to_workbook_buf(d, opts); - } - throw "Unsupported type " + opts.type; - } - - function lotus_to_workbook_buf(d, opts) { - if(!d) return d; - var o = opts || {}; - if(DENSE != null && o.dense == null) o.dense = DENSE; - var s = ((o.dense ? [] : {})), n = "Sheet1", next_n = "", sidx = 0; - var sheets = {}, snames = [], realnames = []; - - var refguess = {s: {r:0, c:0}, e: {r:0, c:0} }; - var sheetRows = o.sheetRows || 0; - - if(d[2] == 0x00) { - if(d[3] == 0x08 || d[3] == 0x09) { - if(d.length >= 16 && d[14] == 0x05 && d[15] === 0x6c) throw new Error("Unsupported Works 3 for Mac file"); - } - } - - if(d[2] == 0x02) { - o.Enum = WK1Enum; - lotushopper(d, function(val, R, RT) { switch(RT) { - case 0x00: /* BOF */ - o.vers = val; - if(val >= 0x1000) o.qpro = true; - break; - case 0x06: refguess = val; break; /* RANGE */ - case 0xCC: if(val) next_n = val; break; /* SHEETNAMECS */ - case 0xDE: next_n = val; break; /* SHEETNAMELP */ - case 0x0F: /* LABEL */ - case 0x33: /* STRING */ - if(!o.qpro) val[1].v = val[1].v.slice(1); - /* falls through */ - case 0x0D: /* INTEGER */ - case 0x0E: /* NUMBER */ - case 0x10: /* FORMULA */ - /* TODO: actual translation of the format code */ - if(RT == 0x0E && (val[2] & 0x70) == 0x70 && (val[2] & 0x0F) > 1 && (val[2] & 0x0F) < 15) { - val[1].z = o.dateNF || SSF._table[14]; - if(o.cellDates) { val[1].t = 'd'; val[1].v = numdate(val[1].v); } - } - - if(o.qpro) { - if(val[3] > sidx) { - s["!ref"] = encode_range(refguess); - sheets[n] = s; - snames.push(n); - s = (o.dense ? [] : {}); - refguess = {s: {r:0, c:0}, e: {r:0, c:0} }; - sidx = val[3]; n = next_n || "Sheet" + (sidx + 1); next_n = ""; - } - } - - var tmpcell = o.dense ? (s[val[0].r]||[])[val[0].c] : s[encode_cell(val[0])]; - if(tmpcell) { - tmpcell.t = val[1].t; tmpcell.v = val[1].v; - if(val[1].z != null) tmpcell.z = val[1].z; - if(val[1].f != null) tmpcell.f = val[1].f; - break; - } - if(o.dense) { - if(!s[val[0].r]) s[val[0].r] = []; - s[val[0].r][val[0].c] = val[1]; - } else s[encode_cell(val[0])] = val[1]; - break; - default: - }}, o); - } else if(d[2] == 0x1A || d[2] == 0x0E) { - o.Enum = WK3Enum; - if(d[2] == 0x0E) { o.qpro = true; d.l = 0; } - lotushopper(d, function(val, R, RT) { switch(RT) { - case 0xCC: n = val; break; /* SHEETNAMECS */ - case 0x16: /* LABEL16 */ - val[1].v = val[1].v.slice(1); - /* falls through */ - case 0x17: /* NUMBER17 */ - case 0x18: /* NUMBER18 */ - case 0x19: /* FORMULA19 */ - case 0x25: /* NUMBER25 */ - case 0x27: /* NUMBER27 */ - case 0x28: /* FORMULA28 */ - if(val[3] > sidx) { - s["!ref"] = encode_range(refguess); - sheets[n] = s; - snames.push(n); - s = (o.dense ? [] : {}); - refguess = {s: {r:0, c:0}, e: {r:0, c:0} }; - sidx = val[3]; n = "Sheet" + (sidx + 1); - } - if(sheetRows > 0 && val[0].r >= sheetRows) break; - if(o.dense) { - if(!s[val[0].r]) s[val[0].r] = []; - s[val[0].r][val[0].c] = val[1]; - } else s[encode_cell(val[0])] = val[1]; - if(refguess.e.c < val[0].c) refguess.e.c = val[0].c; - if(refguess.e.r < val[0].r) refguess.e.r = val[0].r; - break; - case 0x1B: /* XFORMAT */ - if(val[0x36b0]) realnames[val[0x36b0][0]] = val[0x36b0][1]; - break; - case 0x0601: /* SHEETINFOQP */ - realnames[val[0]] = val[1]; if(val[0] == sidx) n = val[1]; break; - default: break; - }}, o); - } else throw new Error("Unrecognized LOTUS BOF " + d[2]); - s["!ref"] = encode_range(refguess); - sheets[next_n || n] = s; - snames.push(next_n || n); - if(!realnames.length) return { SheetNames: snames, Sheets: sheets }; - var osheets = {}, rnames = []; - /* TODO: verify no collisions */ - for(var i = 0; i < realnames.length; ++i) if(sheets[snames[i]]) { - rnames.push(realnames[i] || snames[i]); - osheets[realnames[i]] = sheets[realnames[i]] || sheets[snames[i]]; - } else { - rnames.push(realnames[i]); - osheets[realnames[i]] = ({ "!ref": "A1" }); - } - return { SheetNames: rnames, Sheets: osheets }; - } - - function sheet_to_wk1(ws, opts) { - var o = opts || {}; - if(+o.codepage >= 0) set_cp(+o.codepage); - if(o.type == "string") throw new Error("Cannot write WK1 to JS string"); - var ba = buf_array(); - var range = safe_decode_range(ws["!ref"]); - var dense = Array.isArray(ws); - var cols = []; - - write_biff_rec(ba, 0x00, write_BOF_WK1(0x0406)); - write_biff_rec(ba, 0x06, write_RANGE(range)); - var max_R = Math.min(range.e.r, 8191); - for(var R = range.s.r; R <= max_R; ++R) { - var rr = encode_row(R); - for(var C = range.s.c; C <= range.e.c; ++C) { - if(R === range.s.r) cols[C] = encode_col(C); - var ref = cols[C] + rr; - var cell = dense ? (ws[R]||[])[C] : ws[ref]; - if(!cell || cell.t == "z") continue; - /* TODO: formula records */ - if(cell.t == "n") { - if((cell.v|0)==cell.v && cell.v >= -32768 && cell.v <= 32767) write_biff_rec(ba, 0x0d, write_INTEGER(R, C, cell.v)); - else write_biff_rec(ba, 0x0e, write_NUMBER(R, C, cell.v)); - } else { - var str = format_cell(cell); - write_biff_rec(ba, 0x0F, write_LABEL(R, C, str.slice(0, 239))); - } - } - } - - write_biff_rec(ba, 0x01); - return ba.end(); - } - - function book_to_wk3(wb, opts) { - var o = opts || {}; - if(+o.codepage >= 0) set_cp(+o.codepage); - if(o.type == "string") throw new Error("Cannot write WK3 to JS string"); - var ba = buf_array(); - - write_biff_rec(ba, 0x00, write_BOF_WK3(wb)); - - for(var i = 0, cnt = 0; i < wb.SheetNames.length; ++i) if((wb.Sheets[wb.SheetNames[i]] || {})["!ref"]) write_biff_rec(ba, 0x1b, write_XFORMAT_SHEETNAME(wb.SheetNames[i], cnt++)); - - var wsidx = 0; - for(i = 0; i < wb.SheetNames.length; ++i) { - var ws = wb.Sheets[wb.SheetNames[i]]; - if(!ws || !ws["!ref"]) continue; - var range = safe_decode_range(ws["!ref"]); - var dense = Array.isArray(ws); - var cols = []; - var max_R = Math.min(range.e.r, 8191); - for(var R = range.s.r; R <= max_R; ++R) { - var rr = encode_row(R); - for(var C = range.s.c; C <= range.e.c; ++C) { - if(R === range.s.r) cols[C] = encode_col(C); - var ref = cols[C] + rr; - var cell = dense ? (ws[R]||[])[C] : ws[ref]; - if(!cell || cell.t == "z") continue; - /* TODO: FORMULA19 NUMBER18 records */ - if(cell.t == "n") { - write_biff_rec(ba, 0x17, write_NUMBER_17(R, C, wsidx, cell.v)); - } else { - var str = format_cell(cell); - /* TODO: max len? */ - write_biff_rec(ba, 0x16, write_LABEL_16(R, C, wsidx, str.slice(0, 239))); - } - } - } - ++wsidx; - } - - write_biff_rec(ba, 0x01); - return ba.end(); - } - - - function write_BOF_WK1(v) { - var out = new_buf(2); - out.write_shift(2, v); - return out; - } - - function write_BOF_WK3(wb) { - var out = new_buf(26); - out.write_shift(2, 0x1000); - out.write_shift(2, 0x0004); - out.write_shift(4, 0x0000); - var rows = 0, cols = 0, wscnt = 0; - for(var i = 0; i < wb.SheetNames.length; ++i) { - var name = wb.SheetNames[i]; - var ws = wb.Sheets[name]; - if(!ws || !ws["!ref"]) continue; - ++wscnt; - var range = decode_range(ws["!ref"]); - if(rows < range.e.r) rows = range.e.r; - if(cols < range.e.c) cols = range.e.c; - } - if(rows > 8191) rows = 8191; - out.write_shift(2, rows); - out.write_shift(1, wscnt); - out.write_shift(1, cols); - out.write_shift(2, 0x00); - out.write_shift(2, 0x00); - out.write_shift(1, 0x01); - out.write_shift(1, 0x02); - out.write_shift(4, 0); - out.write_shift(4, 0); - return out; - } - - function parse_RANGE(blob, length, opts) { - var o = {s:{c:0,r:0},e:{c:0,r:0}}; - if(length == 8 && opts.qpro) { - o.s.c = blob.read_shift(1); - blob.l++; - o.s.r = blob.read_shift(2); - o.e.c = blob.read_shift(1); - blob.l++; - o.e.r = blob.read_shift(2); - return o; - } - o.s.c = blob.read_shift(2); - o.s.r = blob.read_shift(2); - if(length == 12 && opts.qpro) blob.l += 2; - o.e.c = blob.read_shift(2); - o.e.r = blob.read_shift(2); - if(length == 12 && opts.qpro) blob.l += 2; - if(o.s.c == 0xFFFF) o.s.c = o.e.c = o.s.r = o.e.r = 0; - return o; - } - function write_RANGE(range) { - var out = new_buf(8); - out.write_shift(2, range.s.c); - out.write_shift(2, range.s.r); - out.write_shift(2, range.e.c); - out.write_shift(2, range.e.r); - return out; - } - - function parse_cell(blob, length, opts) { - var o = [{c:0,r:0}, {t:'n',v:0}, 0, 0]; - if(opts.qpro && opts.vers != 0x5120) { - o[0].c = blob.read_shift(1); - o[3] = blob.read_shift(1); - o[0].r = blob.read_shift(2); - blob.l+=2; - } else { - o[2] = blob.read_shift(1); - o[0].c = blob.read_shift(2); o[0].r = blob.read_shift(2); - } - return o; - } - - function parse_LABEL(blob, length, opts) { - var tgt = blob.l + length; - var o = parse_cell(blob, length, opts); - o[1].t = 's'; - if(opts.vers == 0x5120) { - blob.l++; - var len = blob.read_shift(1); - o[1].v = blob.read_shift(len, 'utf8'); - return o; - } - if(opts.qpro) blob.l++; - o[1].v = blob.read_shift(tgt - blob.l, 'cstr'); - return o; - } - function write_LABEL(R, C, s) { - /* TODO: encoding */ - var o = new_buf(7 + s.length); - o.write_shift(1, 0xFF); - o.write_shift(2, C); - o.write_shift(2, R); - o.write_shift(1, 0x27); // ?? - for(var i = 0; i < o.length; ++i) { - var cc = s.charCodeAt(i); - o.write_shift(1, cc >= 0x80 ? 0x5F : cc); - } - o.write_shift(1, 0); - return o; - } - - function parse_INTEGER(blob, length, opts) { - var o = parse_cell(blob, length, opts); - o[1].v = blob.read_shift(2, 'i'); - return o; - } - function write_INTEGER(R, C, v) { - var o = new_buf(7); - o.write_shift(1, 0xFF); - o.write_shift(2, C); - o.write_shift(2, R); - o.write_shift(2, v, 'i'); - return o; - } - - function parse_NUMBER(blob, length, opts) { - var o = parse_cell(blob, length, opts); - o[1].v = blob.read_shift(8, 'f'); - return o; - } - function write_NUMBER(R, C, v) { - var o = new_buf(13); - o.write_shift(1, 0xFF); - o.write_shift(2, C); - o.write_shift(2, R); - o.write_shift(8, v, 'f'); - return o; - } - - function parse_FORMULA(blob, length, opts) { - var tgt = blob.l + length; - var o = parse_cell(blob, length, opts); - /* TODO: formula */ - o[1].v = blob.read_shift(8, 'f'); - if(opts.qpro) blob.l = tgt; - else { - var flen = blob.read_shift(2); - wk1_fmla_to_csf(blob.slice(blob.l, blob.l + flen), o); - blob.l += flen; - } - return o; - } - - function wk1_parse_rc(B, V, col) { - var rel = V & 0x8000; - V &= ~0x8000; - V = (rel ? B : 0) + ((V >= 0x2000) ? V - 0x4000 : V); - return (rel ? "" : "$") + (col ? encode_col(V) : encode_row(V)); - } - var oprec = [ - 8, 8, 8, 8, 8, 8, 8, 8, 6, 4, 4, 5, 5, 7, 3, 3, - 3, 3, 3, 3, 1, 1, 2, 6, 8, 8, 8, 8, 8, 8, 8, 8 - ]; - /* TODO: flesh out */ - var FuncTab = { - 0x33: ["FALSE", 0], - 0x34: ["TRUE", 0], - 0x46: ["LEN", 1], - 0x50: ["SUM", 69], - 0x51: ["AVERAGEA", 69], - 0x52: ["COUNTA", 69], - 0x53: ["MINA", 69], - 0x54: ["MAXA", 69], - 0x6F: ["T", 1] - }; - var BinOpTab = [ - "", "", "", "", "", "", "", "", - "", "+", "-", "*", "/", "^", "=", "<>", - "<=", ">=", "<", ">", "", "", "", "", - "&", "", "", "", "", "", "", "" - ]; - - function wk1_fmla_to_csf(blob, o) { - prep_blob(blob, 0); - var out = [], argc = 0, R = "", C = "", argL = "", argR = ""; - while(blob.l < blob.length) { - var cc = blob[blob.l++]; - switch(cc) { - case 0x00: out.push(blob.read_shift(8, 'f')); break; - case 0x01: { - C = wk1_parse_rc(o[0].c, blob.read_shift(2), true); - R = wk1_parse_rc(o[0].r, blob.read_shift(2), false); - out.push(C + R); - } break; - case 0x02: { - var c = wk1_parse_rc(o[0].c, blob.read_shift(2), true); - var r = wk1_parse_rc(o[0].r, blob.read_shift(2), false); - C = wk1_parse_rc(o[0].c, blob.read_shift(2), true); - R = wk1_parse_rc(o[0].r, blob.read_shift(2), false); - out.push(c + r + ":" + C + R); - } break; - case 0x03: - if(blob.l < blob.length) { console.error("WK1 premature formula end"); return; } - break; - case 0x04: out.push("(" + out.pop() + ")"); break; - case 0x05: out.push(blob.read_shift(2)); break; - case 0x06: { - /* TODO: text encoding */ - var Z = ""; while((cc = blob[blob.l++])) Z += String.fromCharCode(cc); - out.push('"' + Z.replace(/"/g, '""') + '"'); break; - } break; - - case 0x08: out.push("-" + out.pop()); break; - case 0x17: out.push("+" + out.pop()); break; - case 0x16: out.push("NOT(" + out.pop() + ")"); break; - - case 0x14: case 0x15: { - argR = out.pop(); argL = out.pop(); - out.push(["AND", "OR"][cc - 0x14] + "(" + argL + "," + argR + ")"); - } break; - - default: - if(cc < 0x20 && BinOpTab[cc]) { - argR = out.pop(); argL = out.pop(); - out.push(argL + BinOpTab[cc] + argR); - } else if(FuncTab[cc]) { - argc = FuncTab[cc][1]; - if(argc == 69) argc = blob[blob.l++]; - if(argc > out.length) { console.error("WK1 bad formula parse 0x" + cc.toString(16) + ":|" + out.join("|") + "|"); return; } - var args = out.slice(-argc); - out.length -= argc; - out.push(FuncTab[cc][0] + "(" + args.join(",") + ")"); - } - else if(cc <= 0x07) return console.error("WK1 invalid opcode " + cc.toString(16)); - else if(cc <= 0x18) return console.error("WK1 unsupported op " + cc.toString(16)); - else if(cc <= 0x1E) return console.error("WK1 invalid opcode " + cc.toString(16)); - else if(cc <= 0x73) return console.error("WK1 unsupported function opcode " + cc.toString(16)); - // possible future functions ?? - else return console.error("WK1 unrecognized opcode " + cc.toString(16)); - } - } - if(out.length == 1) o[1].f = "" + out[0]; - else console.error("WK1 bad formula parse |" + out.join("|") + "|"); - } - - - function parse_cell_3(blob) { - var o = [{c:0,r:0}, {t:'n',v:0}, 0]; - o[0].r = blob.read_shift(2); o[3] = blob[blob.l++]; o[0].c = blob[blob.l++]; - return o; - } - - function parse_LABEL_16(blob, length) { - var o = parse_cell_3(blob, length); - o[1].t = 's'; - o[1].v = blob.read_shift(length - 4, 'cstr'); - return o; - } - function write_LABEL_16(R, C, wsidx, s) { - /* TODO: encoding */ - var o = new_buf(6 + s.length); - o.write_shift(2, R); - o.write_shift(1, wsidx); - o.write_shift(1, C); - o.write_shift(1, 0x27); - for(var i = 0; i < s.length; ++i) { - var cc = s.charCodeAt(i); - o.write_shift(1, cc >= 0x80 ? 0x5F : cc); - } - o.write_shift(1, 0); - return o; - } - - function parse_NUMBER_18(blob, length) { - var o = parse_cell_3(blob, length); - o[1].v = blob.read_shift(2); - var v = o[1].v >> 1; - if(o[1].v & 0x1) { - switch(v & 0x07) { - case 0: v = (v >> 3) * 5000; break; - case 1: v = (v >> 3) * 500; break; - case 2: v = (v >> 3) / 20; break; - case 3: v = (v >> 3) / 200; break; - case 4: v = (v >> 3) / 2000; break; - case 5: v = (v >> 3) / 20000; break; - case 6: v = (v >> 3) / 16; break; - case 7: v = (v >> 3) / 64; break; - } - } - o[1].v = v; - return o; - } - - function parse_NUMBER_17(blob, length) { - var o = parse_cell_3(blob, length); - var v1 = blob.read_shift(4); - var v2 = blob.read_shift(4); - var e = blob.read_shift(2); - if(e == 0xFFFF) { - if(v1 === 0 && v2 === 0xC0000000) { o[1].t = "e"; o[1].v = 0x0F; } // ERR -> #VALUE! - else if(v1 === 0 && v2 === 0xD0000000) { o[1].t = "e"; o[1].v = 0x2A; } // NA -> #N/A - else o[1].v = 0; - return o; - } - var s = e & 0x8000; e = (e&0x7FFF) - 16446; - o[1].v = (1 - s*2) * (v2 * Math.pow(2, e+32) + v1 * Math.pow(2, e)); - return o; - } - function write_NUMBER_17(R, C, wsidx, v) { - var o = new_buf(14); - o.write_shift(2, R); - o.write_shift(1, wsidx); - o.write_shift(1, C); - if(v == 0) { - o.write_shift(4, 0); - o.write_shift(4, 0); - o.write_shift(2, 0xFFFF); - return o; - } - var s = 0, e = 0, v1 = 0, v2 = 0; - if(v < 0) { s = 1; v = -v; } - e = Math.log2(v) | 0; - v /= Math.pow(2, e-31); - v2 = (v)>>>0; - if((v2&0x80000000) == 0) { v/=2; ++e; v2 = v >>> 0; } - v -= v2; - v2 |= 0x80000000; - v2 >>>= 0; - v *= Math.pow(2, 32); - v1 = v>>>0; - o.write_shift(4, v1); - o.write_shift(4, v2); - e += 0x3FFF + (s ? 0x8000 : 0); - o.write_shift(2, e); - return o; - } - - function parse_FORMULA_19(blob, length) { - var o = parse_NUMBER_17(blob, 14); - blob.l += length - 14; /* TODO: WK3 formula */ - return o; - } - - function parse_NUMBER_25(blob, length) { - var o = parse_cell_3(blob, length); - var v1 = blob.read_shift(4); - o[1].v = v1 >> 6; - return o; - } - - function parse_NUMBER_27(blob, length) { - var o = parse_cell_3(blob, length); - var v1 = blob.read_shift(8,'f'); - o[1].v = v1; - return o; - } - - function parse_FORMULA_28(blob, length) { - var o = parse_NUMBER_27(blob, 14); - blob.l += length - 10; /* TODO: formula */ - return o; - } - - function parse_SHEETNAMECS(blob, length) { - return blob[blob.l + length - 1] == 0 ? blob.read_shift(length, 'cstr') : ""; - } - - function parse_SHEETNAMELP(blob, length) { - var len = blob[blob.l++]; - if(len > length - 1) len = length - 1; - var o = ""; while(o.length < len) o += String.fromCharCode(blob[blob.l++]); - return o; - } - - function parse_SHEETINFOQP(blob, length, opts) { - if(!opts.qpro || length < 21) return; - var id = blob.read_shift(1); - blob.l += 17; - var len = blob.read_shift(1); - blob.l += 2; - var nm = blob.read_shift(length - 21, 'cstr'); - return [id, nm]; - } - - function parse_XFORMAT(blob, length) { - var o = {}, tgt = blob.l + length; - while(blob.l < tgt) { - var dt = blob.read_shift(2); - if(dt == 0x36b0) { - o[dt] = [0, ""]; - o[dt][0] = blob.read_shift(2); - while(blob[blob.l]) { o[dt][1] += String.fromCharCode(blob[blob.l]); blob.l++; } blob.l++; - } - // TODO: 0x3a99 ?? - } - return o; - } - function write_XFORMAT_SHEETNAME(name, wsidx) { - var out = new_buf(5 + name.length); - out.write_shift(2, 0x36b0); - out.write_shift(2, wsidx); - for(var i = 0; i < name.length; ++i) { - var cc = name.charCodeAt(i); - out[out.l++] = cc > 0x7F ? 0x5F : cc; - } - out[out.l++] = 0; - return out; - } - - var WK1Enum = { -0x0000: { n:"BOF", f:parseuint16 }, -0x0001: { n:"EOF" }, -0x0002: { n:"CALCMODE" }, -0x0003: { n:"CALCORDER" }, -0x0004: { n:"SPLIT" }, -0x0005: { n:"SYNC" }, -0x0006: { n:"RANGE", f:parse_RANGE }, -0x0007: { n:"WINDOW1" }, -0x0008: { n:"COLW1" }, -0x0009: { n:"WINTWO" }, -0x000A: { n:"COLW2" }, -0x000B: { n:"NAME" }, -0x000C: { n:"BLANK" }, -0x000D: { n:"INTEGER", f:parse_INTEGER }, -0x000E: { n:"NUMBER", f:parse_NUMBER }, -0x000F: { n:"LABEL", f:parse_LABEL }, -0x0010: { n:"FORMULA", f:parse_FORMULA }, -0x0018: { n:"TABLE" }, -0x0019: { n:"ORANGE" }, -0x001A: { n:"PRANGE" }, -0x001B: { n:"SRANGE" }, -0x001C: { n:"FRANGE" }, -0x001D: { n:"KRANGE1" }, -0x0020: { n:"HRANGE" }, -0x0023: { n:"KRANGE2" }, -0x0024: { n:"PROTEC" }, -0x0025: { n:"FOOTER" }, -0x0026: { n:"HEADER" }, -0x0027: { n:"SETUP" }, -0x0028: { n:"MARGINS" }, -0x0029: { n:"LABELFMT" }, -0x002A: { n:"TITLES" }, -0x002B: { n:"SHEETJS" }, -0x002D: { n:"GRAPH" }, -0x002E: { n:"NGRAPH" }, -0x002F: { n:"CALCCOUNT" }, -0x0030: { n:"UNFORMATTED" }, -0x0031: { n:"CURSORW12" }, -0x0032: { n:"WINDOW" }, -0x0033: { n:"STRING", f:parse_LABEL }, -0x0037: { n:"PASSWORD" }, -0x0038: { n:"LOCKED" }, -0x003C: { n:"QUERY" }, -0x003D: { n:"QUERYNAME" }, -0x003E: { n:"PRINT" }, -0x003F: { n:"PRINTNAME" }, -0x0040: { n:"GRAPH2" }, -0x0041: { n:"GRAPHNAME" }, -0x0042: { n:"ZOOM" }, -0x0043: { n:"SYMSPLIT" }, -0x0044: { n:"NSROWS" }, -0x0045: { n:"NSCOLS" }, -0x0046: { n:"RULER" }, -0x0047: { n:"NNAME" }, -0x0048: { n:"ACOMM" }, -0x0049: { n:"AMACRO" }, -0x004A: { n:"PARSE" }, -0x0066: { n:"PRANGES??" }, -0x0067: { n:"RRANGES??" }, -0x0068: { n:"FNAME??" }, -0x0069: { n:"MRANGES??" }, -0x00CC: { n:"SHEETNAMECS", f:parse_SHEETNAMECS }, -0x00DE: { n:"SHEETNAMELP", f:parse_SHEETNAMELP }, -0xFFFF: { n:"" } - }; - - var WK3Enum = { -0x0000: { n:"BOF" }, -0x0001: { n:"EOF" }, -0x0002: { n:"PASSWORD" }, -0x0003: { n:"CALCSET" }, -0x0004: { n:"WINDOWSET" }, -0x0005: { n:"SHEETCELLPTR" }, -0x0006: { n:"SHEETLAYOUT" }, -0x0007: { n:"COLUMNWIDTH" }, -0x0008: { n:"HIDDENCOLUMN" }, -0x0009: { n:"USERRANGE" }, -0x000A: { n:"SYSTEMRANGE" }, -0x000B: { n:"ZEROFORCE" }, -0x000C: { n:"SORTKEYDIR" }, -0x000D: { n:"FILESEAL" }, -0x000E: { n:"DATAFILLNUMS" }, -0x000F: { n:"PRINTMAIN" }, -0x0010: { n:"PRINTSTRING" }, -0x0011: { n:"GRAPHMAIN" }, -0x0012: { n:"GRAPHSTRING" }, -0x0013: { n:"??" }, -0x0014: { n:"ERRCELL" }, -0x0015: { n:"NACELL" }, -0x0016: { n:"LABEL16", f:parse_LABEL_16}, -0x0017: { n:"NUMBER17", f:parse_NUMBER_17 }, -0x0018: { n:"NUMBER18", f:parse_NUMBER_18 }, -0x0019: { n:"FORMULA19", f:parse_FORMULA_19}, -0x001A: { n:"FORMULA1A" }, -0x001B: { n:"XFORMAT", f:parse_XFORMAT }, -0x001C: { n:"DTLABELMISC" }, -0x001D: { n:"DTLABELCELL" }, -0x001E: { n:"GRAPHWINDOW" }, -0x001F: { n:"CPA" }, -0x0020: { n:"LPLAUTO" }, -0x0021: { n:"QUERY" }, -0x0022: { n:"HIDDENSHEET" }, -0x0023: { n:"??" }, -0x0025: { n:"NUMBER25", f:parse_NUMBER_25 }, -0x0026: { n:"??" }, -0x0027: { n:"NUMBER27", f:parse_NUMBER_27 }, -0x0028: { n:"FORMULA28", f:parse_FORMULA_28 }, -0x008E: { n:"??" }, -0x0093: { n:"??" }, -0x0096: { n:"??" }, -0x0097: { n:"??" }, -0x0098: { n:"??" }, -0x0099: { n:"??" }, -0x009A: { n:"??" }, -0x009B: { n:"??" }, -0x009C: { n:"??" }, -0x00A3: { n:"??" }, -0x00AE: { n:"??" }, -0x00AF: { n:"??" }, -0x00B0: { n:"??" }, -0x00B1: { n:"??" }, -0x00B8: { n:"??" }, -0x00B9: { n:"??" }, -0x00BA: { n:"??" }, -0x00BB: { n:"??" }, -0x00BC: { n:"??" }, -0x00C3: { n:"??" }, -0x00C9: { n:"??" }, -0x00CC: { n:"SHEETNAMECS", f:parse_SHEETNAMECS }, -0x00CD: { n:"??" }, -0x00CE: { n:"??" }, -0x00CF: { n:"??" }, -0x00D0: { n:"??" }, -0x0100: { n:"??" }, -0x0103: { n:"??" }, -0x0104: { n:"??" }, -0x0105: { n:"??" }, -0x0106: { n:"??" }, -0x0107: { n:"??" }, -0x0109: { n:"??" }, -0x010A: { n:"??" }, -0x010B: { n:"??" }, -0x010C: { n:"??" }, -0x010E: { n:"??" }, -0x010F: { n:"??" }, -0x0180: { n:"??" }, -0x0185: { n:"??" }, -0x0186: { n:"??" }, -0x0189: { n:"??" }, -0x018C: { n:"??" }, -0x0200: { n:"??" }, -0x0202: { n:"??" }, -0x0201: { n:"??" }, -0x0204: { n:"??" }, -0x0205: { n:"??" }, -0x0280: { n:"??" }, -0x0281: { n:"??" }, -0x0282: { n:"??" }, -0x0283: { n:"??" }, -0x0284: { n:"??" }, -0x0285: { n:"??" }, -0x0286: { n:"??" }, -0x0287: { n:"??" }, -0x0288: { n:"??" }, -0x0292: { n:"??" }, -0x0293: { n:"??" }, -0x0294: { n:"??" }, -0x0295: { n:"??" }, -0x0296: { n:"??" }, -0x0299: { n:"??" }, -0x029A: { n:"??" }, -0x0300: { n:"??" }, -0x0304: { n:"??" }, -0x0601: { n:"SHEETINFOQP", f:parse_SHEETINFOQP }, -0x0640: { n:"??" }, -0x0642: { n:"??" }, -0x0701: { n:"??" }, -0x0702: { n:"??" }, -0x0703: { n:"??" }, -0x0704: { n:"??" }, -0x0780: { n:"??" }, -0x0800: { n:"??" }, -0x0801: { n:"??" }, -0x0804: { n:"??" }, -0x0A80: { n:"??" }, -0x2AF6: { n:"??" }, -0x3231: { n:"??" }, -0x6E49: { n:"??" }, -0x6F44: { n:"??" }, -0xFFFF: { n:"" } - }; - return { - sheet_to_wk1: sheet_to_wk1, - book_to_wk3: book_to_wk3, - to_workbook: lotus_to_workbook - }; -})(); -/* 18.4.7 rPr CT_RPrElt */ -function parse_rpr(rpr) { - var font = {}, m = rpr.match(tagregex), i = 0; - var pass = false; - if(m) for(;i!=m.length; ++i) { - var y = parsexmltag(m[i]); - switch(y[0].replace(/\w*:/g,"")) { - /* 18.8.12 condense CT_BooleanProperty */ - /* ** not required . */ - case '': - case '': font.shadow = 1; break; - case '': break; - - /* 18.4.1 charset CT_IntProperty TODO */ - case '': - case '': font.outline = 1; break; - case '': break; - - /* 18.4.5 rFont CT_FontName */ - case '': - case '': font.strike = 1; break; - case '': break; - - /* 18.4.13 u CT_UnderlineProperty */ - case '': - case '': font.u = 1; break; - case '': break; - - /* 18.8.2 b */ - case '': - case '': font.b = 1; break; - case '': break; - - /* 18.8.26 i */ - case '': - case '': font.i = 1; break; - case '': break; - - /* 18.3.1.15 color CT_Color TODO: tint, theme, auto, indexed */ - case '': case '': case '': break; - - /* 18.8.18 family ST_FontFamily */ - case '': case '': case '': break; - - /* 18.4.14 vertAlign CT_VerticalAlignFontProperty TODO */ - case '': case '': case '': break; - - /* 18.8.35 scheme CT_FontScheme TODO */ - case '': case '': case '': break; - - /* 18.2.10 extLst CT_ExtensionList ? */ - case '': case '': break; - case '': pass = false; break; - default: - if(y[0].charCodeAt(1) !== 47 && !pass) throw new Error('Unrecognized rich format ' + y[0]); - } - } - return font; -} - -var parse_rs = (function() { - var tregex = matchtag("t"), rpregex = matchtag("rPr"); - /* 18.4.4 r CT_RElt */ - function parse_r(r) { - /* 18.4.12 t ST_Xstring */ - var t = r.match(tregex)/*, cp = 65001*/; - if(!t) return {t:"s", v:""}; - - var o = ({t:'s', v:unescapexml(t[1])}); - var rpr = r.match(rpregex); - if(rpr) o.s = parse_rpr(rpr[1]); - return o; - } - var rregex = /<(?:\w+:)?r>/g, rend = /<\/(?:\w+:)?r>/; - return function parse_rs(rs) { - return rs.replace(rregex,"").split(rend).map(parse_r).filter(function(r) { return r.v; }); - }; -})(); - - -/* Parse a list of tags */ -var rs_to_html = (function parse_rs_factory() { - var nlregex = /(\r\n|\n)/g; - function parse_rpr2(font, intro, outro) { - var style = []; - - if(font.u) style.push("text-decoration: underline;"); - if(font.uval) style.push("text-underline-style:" + font.uval + ";"); - if(font.sz) style.push("font-size:" + font.sz + "pt;"); - if(font.outline) style.push("text-effect: outline;"); - if(font.shadow) style.push("text-shadow: auto;"); - intro.push(''); - - if(font.b) { intro.push(""); outro.push(""); } - if(font.i) { intro.push(""); outro.push(""); } - if(font.strike) { intro.push(""); outro.push(""); } - - var align = font.valign || ""; - if(align == "superscript" || align == "super") align = "sup"; - else if(align == "subscript") align = "sub"; - if(align != "") { intro.push("<" + align + ">"); outro.push(""); } - - outro.push(""); - return font; - } - - /* 18.4.4 r CT_RElt */ - function r_to_html(r) { - var terms = [[],r.v,[]]; - if(!r.v) return ""; - - if(r.s) parse_rpr2(r.s, terms[0], terms[2]); - - return terms[0].join("") + terms[1].replace(nlregex,'
') + terms[2].join(""); - } - - return function parse_rs(rs) { - return rs.map(r_to_html).join(""); - }; -})(); - -/* 18.4.8 si CT_Rst */ -var sitregex = /<(?:\w+:)?t[^>]*>([^<]*)<\/(?:\w+:)?t>/g, sirregex = /<(?:\w+:)?r>/; -var sirphregex = /<(?:\w+:)?rPh.*?>([\s\S]*?)<\/(?:\w+:)?rPh>/g; -function parse_si(x, opts) { - var html = opts ? opts.cellHTML : true; - var z = {}; - if(!x) return { t: "" }; - //var y; - /* 18.4.12 t ST_Xstring (Plaintext String) */ - // TODO: is whitespace actually valid here? - if(x.match(/^\s*<(?:\w+:)?t[^>]*>/)) { - z.t = unescapexml(utf8read(x.slice(x.indexOf(">")+1).split(/<\/(?:\w+:)?t>/)[0]||"")); - z.r = utf8read(x); - if(html) z.h = escapehtml(z.t); - } - /* 18.4.4 r CT_RElt (Rich Text Run) */ - else if((/*y = */x.match(sirregex))) { - z.r = utf8read(x); - z.t = unescapexml(utf8read((x.replace(sirphregex, '').match(sitregex)||[]).join("").replace(tagregex,""))); - if(html) z.h = rs_to_html(parse_rs(z.r)); - } - /* 18.4.3 phoneticPr CT_PhoneticPr (TODO: needed for Asian support) */ - /* 18.4.6 rPh CT_PhoneticRun (TODO: needed for Asian support) */ - return z; -} - -/* 18.4 Shared String Table */ -var sstr0 = /<(?:\w+:)?sst([^>]*)>([\s\S]*)<\/(?:\w+:)?sst>/; -var sstr1 = /<(?:\w+:)?(?:si|sstItem)>/g; -var sstr2 = /<\/(?:\w+:)?(?:si|sstItem)>/; -function parse_sst_xml(data, opts) { - var s = ([]), ss = ""; - if(!data) return s; - /* 18.4.9 sst CT_Sst */ - var sst = data.match(sstr0); - if(sst) { - ss = sst[2].replace(sstr1,"").split(sstr2); - for(var i = 0; i != ss.length; ++i) { - var o = parse_si(ss[i].trim(), opts); - if(o != null) s[s.length] = o; - } - sst = parsexmltag(sst[1]); s.Count = sst.count; s.Unique = sst.uniqueCount; - } - return s; -} - -RELS.SST = "http://schemas.openxmlformats.org/officeDocument/2006/relationships/sharedStrings"; -var straywsregex = /^\s|\s$|[\t\n\r]/; -function write_sst_xml(sst, opts) { - if(!opts.bookSST) return ""; - var o = [XML_HEADER]; - o[o.length] = (writextag('sst', null, { - xmlns: XMLNS.main[0], - count: sst.Count, - uniqueCount: sst.Unique - })); - for(var i = 0; i != sst.length; ++i) { if(sst[i] == null) continue; - var s = sst[i]; - var sitag = ""; - if(s.r) sitag += s.r; - else { - sitag += ""; - } - sitag += ""; - o[o.length] = (sitag); - } - if(o.length>2){ o[o.length] = (''); o[1]=o[1].replace("/>",">"); } - return o.join(""); -} -/* [MS-XLSB] 2.4.221 BrtBeginSst */ -function parse_BrtBeginSst(data) { - return [data.read_shift(4), data.read_shift(4)]; -} - -/* [MS-XLSB] 2.1.7.45 Shared Strings */ -function parse_sst_bin(data, opts) { - var s = ([]); - var pass = false; - recordhopper(data, function hopper_sst(val, R_n, RT) { - switch(RT) { - case 0x009F: /* 'BrtBeginSst' */ - s.Count = val[0]; s.Unique = val[1]; break; - case 0x0013: /* 'BrtSSTItem' */ - s.push(val); break; - case 0x00A0: /* 'BrtEndSst' */ - return true; - - case 0x0023: /* 'BrtFRTBegin' */ - pass = true; break; - case 0x0024: /* 'BrtFRTEnd' */ - pass = false; break; - - default: - if(R_n.indexOf("Begin") > 0){/* empty */} - else if(R_n.indexOf("End") > 0){/* empty */} - if(!pass || opts.WTF) throw new Error("Unexpected record " + RT + " " + R_n); - } - }); - return s; -} - -function write_BrtBeginSst(sst, o) { - if(!o) o = new_buf(8); - o.write_shift(4, sst.Count); - o.write_shift(4, sst.Unique); - return o; -} - -var write_BrtSSTItem = write_RichStr; - -function write_sst_bin(sst) { - var ba = buf_array(); - write_record(ba, "BrtBeginSst", write_BrtBeginSst(sst)); - for(var i = 0; i < sst.length; ++i) write_record(ba, "BrtSSTItem", write_BrtSSTItem(sst[i])); - /* FRTSST */ - write_record(ba, "BrtEndSst"); - return ba.end(); -} -function _JS2ANSI(str) { - if(typeof cptable !== 'undefined') return cptable.utils.encode(current_ansi, str); - var o = [], oo = str.split(""); - for(var i = 0; i < oo.length; ++i) o[i] = oo[i].charCodeAt(0); - return o; -} - -/* [MS-OFFCRYPTO] 2.1.4 Version */ -function parse_CRYPTOVersion(blob, length) { - var o = {}; - o.Major = blob.read_shift(2); - o.Minor = blob.read_shift(2); -if(length >= 4) blob.l += length - 4; - return o; -} - -/* [MS-OFFCRYPTO] 2.1.5 DataSpaceVersionInfo */ -function parse_DataSpaceVersionInfo(blob) { - var o = {}; - o.id = blob.read_shift(0, 'lpp4'); - o.R = parse_CRYPTOVersion(blob, 4); - o.U = parse_CRYPTOVersion(blob, 4); - o.W = parse_CRYPTOVersion(blob, 4); - return o; -} - -/* [MS-OFFCRYPTO] 2.1.6.1 DataSpaceMapEntry Structure */ -function parse_DataSpaceMapEntry(blob) { - var len = blob.read_shift(4); - var end = blob.l + len - 4; - var o = {}; - var cnt = blob.read_shift(4); - var comps = []; - /* [MS-OFFCRYPTO] 2.1.6.2 DataSpaceReferenceComponent Structure */ - while(cnt-- > 0) comps.push({ t: blob.read_shift(4), v: blob.read_shift(0, 'lpp4') }); - o.name = blob.read_shift(0, 'lpp4'); - o.comps = comps; - if(blob.l != end) throw new Error("Bad DataSpaceMapEntry: " + blob.l + " != " + end); - return o; -} - -/* [MS-OFFCRYPTO] 2.1.6 DataSpaceMap */ -function parse_DataSpaceMap(blob) { - var o = []; - blob.l += 4; // must be 0x8 - var cnt = blob.read_shift(4); - while(cnt-- > 0) o.push(parse_DataSpaceMapEntry(blob)); - return o; -} - -/* [MS-OFFCRYPTO] 2.1.7 DataSpaceDefinition */ -function parse_DataSpaceDefinition(blob) { - var o = []; - blob.l += 4; // must be 0x8 - var cnt = blob.read_shift(4); - while(cnt-- > 0) o.push(blob.read_shift(0, 'lpp4')); - return o; -} - -/* [MS-OFFCRYPTO] 2.1.8 DataSpaceDefinition */ -function parse_TransformInfoHeader(blob) { - var o = {}; - /*var len = */blob.read_shift(4); - blob.l += 4; // must be 0x1 - o.id = blob.read_shift(0, 'lpp4'); - o.name = blob.read_shift(0, 'lpp4'); - o.R = parse_CRYPTOVersion(blob, 4); - o.U = parse_CRYPTOVersion(blob, 4); - o.W = parse_CRYPTOVersion(blob, 4); - return o; -} - -function parse_Primary(blob) { - /* [MS-OFFCRYPTO] 2.2.6 IRMDSTransformInfo */ - var hdr = parse_TransformInfoHeader(blob); - /* [MS-OFFCRYPTO] 2.1.9 EncryptionTransformInfo */ - hdr.ename = blob.read_shift(0, '8lpp4'); - hdr.blksz = blob.read_shift(4); - hdr.cmode = blob.read_shift(4); - if(blob.read_shift(4) != 0x04) throw new Error("Bad !Primary record"); - return hdr; -} - -/* [MS-OFFCRYPTO] 2.3.2 Encryption Header */ -function parse_EncryptionHeader(blob, length) { - var tgt = blob.l + length; - var o = {}; - o.Flags = (blob.read_shift(4) & 0x3F); - blob.l += 4; - o.AlgID = blob.read_shift(4); - var valid = false; - switch(o.AlgID) { - case 0x660E: case 0x660F: case 0x6610: valid = (o.Flags == 0x24); break; - case 0x6801: valid = (o.Flags == 0x04); break; - case 0: valid = (o.Flags == 0x10 || o.Flags == 0x04 || o.Flags == 0x24); break; - default: throw 'Unrecognized encryption algorithm: ' + o.AlgID; - } - if(!valid) throw new Error("Encryption Flags/AlgID mismatch"); - o.AlgIDHash = blob.read_shift(4); - o.KeySize = blob.read_shift(4); - o.ProviderType = blob.read_shift(4); - blob.l += 8; - o.CSPName = blob.read_shift((tgt-blob.l)>>1, 'utf16le'); - blob.l = tgt; - return o; -} - -/* [MS-OFFCRYPTO] 2.3.3 Encryption Verifier */ -function parse_EncryptionVerifier(blob, length) { - var o = {}, tgt = blob.l + length; - blob.l += 4; // SaltSize must be 0x10 - o.Salt = blob.slice(blob.l, blob.l+16); blob.l += 16; - o.Verifier = blob.slice(blob.l, blob.l+16); blob.l += 16; - /*var sz = */blob.read_shift(4); - o.VerifierHash = blob.slice(blob.l, tgt); blob.l = tgt; - return o; -} - -/* [MS-OFFCRYPTO] 2.3.4.* EncryptionInfo Stream */ -function parse_EncryptionInfo(blob) { - var vers = parse_CRYPTOVersion(blob); - switch(vers.Minor) { - case 0x02: return [vers.Minor, parse_EncInfoStd(blob, vers)]; - case 0x03: return [vers.Minor, parse_EncInfoExt(blob, vers)]; - case 0x04: return [vers.Minor, parse_EncInfoAgl(blob, vers)]; - } - throw new Error("ECMA-376 Encrypted file unrecognized Version: " + vers.Minor); -} - -/* [MS-OFFCRYPTO] 2.3.4.5 EncryptionInfo Stream (Standard Encryption) */ -function parse_EncInfoStd(blob) { - var flags = blob.read_shift(4); - if((flags & 0x3F) != 0x24) throw new Error("EncryptionInfo mismatch"); - var sz = blob.read_shift(4); - //var tgt = blob.l + sz; - var hdr = parse_EncryptionHeader(blob, sz); - var verifier = parse_EncryptionVerifier(blob, blob.length - blob.l); - return { t:"Std", h:hdr, v:verifier }; -} -/* [MS-OFFCRYPTO] 2.3.4.6 EncryptionInfo Stream (Extensible Encryption) */ -function parse_EncInfoExt() { throw new Error("File is password-protected: ECMA-376 Extensible"); } -/* [MS-OFFCRYPTO] 2.3.4.10 EncryptionInfo Stream (Agile Encryption) */ -function parse_EncInfoAgl(blob) { - var KeyData = ["saltSize","blockSize","keyBits","hashSize","cipherAlgorithm","cipherChaining","hashAlgorithm","saltValue"]; - blob.l+=4; - var xml = blob.read_shift(blob.length - blob.l, 'utf8'); - var o = {}; - xml.replace(tagregex, function xml_agile(x) { - var y = parsexmltag(x); - switch(strip_ns(y[0])) { - case '': break; - case '': case '': break; - - case '': break; - case ' 4 || vers.Major < 2) throw new Error('unrecognized major version code: ' + vers.Major); - o.Flags = blob.read_shift(4); length -= 4; - var sz = blob.read_shift(4); length -= 4; - o.EncryptionHeader = parse_EncryptionHeader(blob, sz); length -= sz; - o.EncryptionVerifier = parse_EncryptionVerifier(blob, length); - return o; -} -/* [MS-OFFCRYPTO] 2.3.6.1 RC4 Encryption Header */ -function parse_RC4Header(blob) { - var o = {}; - var vers = o.EncryptionVersionInfo = parse_CRYPTOVersion(blob, 4); - if(vers.Major != 1 || vers.Minor != 1) throw 'unrecognized version code ' + vers.Major + ' : ' + vers.Minor; - o.Salt = blob.read_shift(16); - o.EncryptedVerifier = blob.read_shift(16); - o.EncryptedVerifierHash = blob.read_shift(16); - return o; -} - -/* [MS-OFFCRYPTO] 2.3.7.1 Binary Document Password Verifier Derivation */ -function crypto_CreatePasswordVerifier_Method1(Password) { - var Verifier = 0x0000, PasswordArray; - var PasswordDecoded = _JS2ANSI(Password); - var len = PasswordDecoded.length + 1, i, PasswordByte; - var Intermediate1, Intermediate2, Intermediate3; - PasswordArray = new_raw_buf(len); - PasswordArray[0] = PasswordDecoded.length; - for(i = 1; i != len; ++i) PasswordArray[i] = PasswordDecoded[i-1]; - for(i = len-1; i >= 0; --i) { - PasswordByte = PasswordArray[i]; - Intermediate1 = ((Verifier & 0x4000) === 0x0000) ? 0 : 1; - Intermediate2 = (Verifier << 1) & 0x7FFF; - Intermediate3 = Intermediate1 | Intermediate2; - Verifier = Intermediate3 ^ PasswordByte; - } - return Verifier ^ 0xCE4B; -} - -/* [MS-OFFCRYPTO] 2.3.7.2 Binary Document XOR Array Initialization */ -var crypto_CreateXorArray_Method1 = (function() { - var PadArray = [0xBB, 0xFF, 0xFF, 0xBA, 0xFF, 0xFF, 0xB9, 0x80, 0x00, 0xBE, 0x0F, 0x00, 0xBF, 0x0F, 0x00]; - var InitialCode = [0xE1F0, 0x1D0F, 0xCC9C, 0x84C0, 0x110C, 0x0E10, 0xF1CE, 0x313E, 0x1872, 0xE139, 0xD40F, 0x84F9, 0x280C, 0xA96A, 0x4EC3]; - var XorMatrix = [0xAEFC, 0x4DD9, 0x9BB2, 0x2745, 0x4E8A, 0x9D14, 0x2A09, 0x7B61, 0xF6C2, 0xFDA5, 0xEB6B, 0xC6F7, 0x9DCF, 0x2BBF, 0x4563, 0x8AC6, 0x05AD, 0x0B5A, 0x16B4, 0x2D68, 0x5AD0, 0x0375, 0x06EA, 0x0DD4, 0x1BA8, 0x3750, 0x6EA0, 0xDD40, 0xD849, 0xA0B3, 0x5147, 0xA28E, 0x553D, 0xAA7A, 0x44D5, 0x6F45, 0xDE8A, 0xAD35, 0x4A4B, 0x9496, 0x390D, 0x721A, 0xEB23, 0xC667, 0x9CEF, 0x29FF, 0x53FE, 0xA7FC, 0x5FD9, 0x47D3, 0x8FA6, 0x0F6D, 0x1EDA, 0x3DB4, 0x7B68, 0xF6D0, 0xB861, 0x60E3, 0xC1C6, 0x93AD, 0x377B, 0x6EF6, 0xDDEC, 0x45A0, 0x8B40, 0x06A1, 0x0D42, 0x1A84, 0x3508, 0x6A10, 0xAA51, 0x4483, 0x8906, 0x022D, 0x045A, 0x08B4, 0x1168, 0x76B4, 0xED68, 0xCAF1, 0x85C3, 0x1BA7, 0x374E, 0x6E9C, 0x3730, 0x6E60, 0xDCC0, 0xA9A1, 0x4363, 0x86C6, 0x1DAD, 0x3331, 0x6662, 0xCCC4, 0x89A9, 0x0373, 0x06E6, 0x0DCC, 0x1021, 0x2042, 0x4084, 0x8108, 0x1231, 0x2462, 0x48C4]; - var Ror = function(Byte) { return ((Byte/2) | (Byte*128)) & 0xFF; }; - var XorRor = function(byte1, byte2) { return Ror(byte1 ^ byte2); }; - var CreateXorKey_Method1 = function(Password) { - var XorKey = InitialCode[Password.length - 1]; - var CurrentElement = 0x68; - for(var i = Password.length-1; i >= 0; --i) { - var Char = Password[i]; - for(var j = 0; j != 7; ++j) { - if(Char & 0x40) XorKey ^= XorMatrix[CurrentElement]; - Char *= 2; --CurrentElement; - } - } - return XorKey; - }; - return function(password) { - var Password = _JS2ANSI(password); - var XorKey = CreateXorKey_Method1(Password); - var Index = Password.length; - var ObfuscationArray = new_raw_buf(16); - for(var i = 0; i != 16; ++i) ObfuscationArray[i] = 0x00; - var Temp, PasswordLastChar, PadIndex; - if((Index & 1) === 1) { - Temp = XorKey >> 8; - ObfuscationArray[Index] = XorRor(PadArray[0], Temp); - --Index; - Temp = XorKey & 0xFF; - PasswordLastChar = Password[Password.length - 1]; - ObfuscationArray[Index] = XorRor(PasswordLastChar, Temp); - } - while(Index > 0) { - --Index; - Temp = XorKey >> 8; - ObfuscationArray[Index] = XorRor(Password[Index], Temp); - --Index; - Temp = XorKey & 0xFF; - ObfuscationArray[Index] = XorRor(Password[Index], Temp); - } - Index = 15; - PadIndex = 15 - Password.length; - while(PadIndex > 0) { - Temp = XorKey >> 8; - ObfuscationArray[Index] = XorRor(PadArray[PadIndex], Temp); - --Index; - --PadIndex; - Temp = XorKey & 0xFF; - ObfuscationArray[Index] = XorRor(Password[Index], Temp); - --Index; - --PadIndex; - } - return ObfuscationArray; - }; -})(); - -/* [MS-OFFCRYPTO] 2.3.7.3 Binary Document XOR Data Transformation Method 1 */ -var crypto_DecryptData_Method1 = function(password, Data, XorArrayIndex, XorArray, O) { - /* If XorArray is set, use it; if O is not set, make changes in-place */ - if(!O) O = Data; - if(!XorArray) XorArray = crypto_CreateXorArray_Method1(password); - var Index, Value; - for(Index = 0; Index != Data.length; ++Index) { - Value = Data[Index]; - Value ^= XorArray[XorArrayIndex]; - Value = ((Value>>5) | (Value<<3)) & 0xFF; - O[Index] = Value; - ++XorArrayIndex; - } - return [O, XorArrayIndex, XorArray]; -}; - -var crypto_MakeXorDecryptor = function(password) { - var XorArrayIndex = 0, XorArray = crypto_CreateXorArray_Method1(password); - return function(Data) { - var O = crypto_DecryptData_Method1("", Data, XorArrayIndex, XorArray); - XorArrayIndex = O[1]; - return O[0]; - }; -}; - -/* 2.5.343 */ -function parse_XORObfuscation(blob, length, opts, out) { - var o = ({ key: parseuint16(blob), verificationBytes: parseuint16(blob) }); - if(opts.password) o.verifier = crypto_CreatePasswordVerifier_Method1(opts.password); - out.valid = o.verificationBytes === o.verifier; - if(out.valid) out.insitu = crypto_MakeXorDecryptor(opts.password); - return o; -} - -/* 2.4.117 */ -function parse_FilePassHeader(blob, length, oo) { - var o = oo || {}; o.Info = blob.read_shift(2); blob.l -= 2; - if(o.Info === 1) o.Data = parse_RC4Header(blob, length); - else o.Data = parse_RC4CryptoHeader(blob, length); - return o; -} -function parse_FilePass(blob, length, opts) { - var o = ({ Type: opts.biff >= 8 ? blob.read_shift(2) : 0 }); /* wEncryptionType */ - if(o.Type) parse_FilePassHeader(blob, length-2, o); - else parse_XORObfuscation(blob, opts.biff >= 8 ? length : length - 2, opts, o); - return o; -} - - -var RTF = (function() { - function rtf_to_sheet(d, opts) { - switch(opts.type) { - case 'base64': return rtf_to_sheet_str(Base64.decode(d), opts); - case 'binary': return rtf_to_sheet_str(d, opts); - case 'buffer': return rtf_to_sheet_str(has_buf && Buffer.isBuffer(d) ? d.toString('binary') : a2s(d), opts); - case 'array': return rtf_to_sheet_str(cc2str(d), opts); - } - throw new Error("Unrecognized type " + opts.type); - } - - /* TODO: this is a stub */ - function rtf_to_sheet_str(str, opts) { - var o = opts || {}; - var ws = o.dense ? ([]) : ({}); - - var rows = str.match(/\\trowd.*?\\row\b/g); - if(!rows.length) throw new Error("RTF missing table"); - var range = ({s: {c:0, r:0}, e: {c:0, r:rows.length - 1}}); - rows.forEach(function(rowtf, R) { - if(Array.isArray(ws)) ws[R] = []; - var rtfre = /\\\w+\b/g; - var last_index = 0; - var res; - var C = -1; - while((res = rtfre.exec(rowtf))) { - switch(res[0]) { - case "\\cell": - var data = rowtf.slice(last_index, rtfre.lastIndex - res[0].length); - if(data[0] == " ") data = data.slice(1); - ++C; - if(data.length) { - // TODO: value parsing, including codepage adjustments - var cell = {v: data, t:"s"}; - if(Array.isArray(ws)) ws[R][C] = cell; - else ws[encode_cell({r:R, c:C})] = cell; - } - break; - } - last_index = rtfre.lastIndex; - } - if(C > range.e.c) range.e.c = C; - }); - ws['!ref'] = encode_range(range); - return ws; - } - - function rtf_to_workbook(d, opts) { return sheet_to_workbook(rtf_to_sheet(d, opts), opts); } - - /* TODO: this is a stub */ - function sheet_to_rtf(ws) { - var o = ["{\\rtf1\\ansi"]; - var r = safe_decode_range(ws['!ref']), cell; - var dense = Array.isArray(ws); - for(var R = r.s.r; R <= r.e.r; ++R) { - o.push("\\trowd\\trautofit1"); - for(var C = r.s.c; C <= r.e.c; ++C) o.push("\\cellx" + (C+1)); - o.push("\\pard\\intbl"); - for(C = r.s.c; C <= r.e.c; ++C) { - var coord = encode_cell({r:R,c:C}); - cell = dense ? (ws[R]||[])[C]: ws[coord]; - if(!cell || cell.v == null && (!cell.f || cell.F)) continue; - o.push(" " + (cell.w || (format_cell(cell), cell.w))); - o.push("\\cell"); - } - o.push("\\pard\\intbl\\row"); - } - return o.join("") + "}"; - } - - return { - to_workbook: rtf_to_workbook, - to_sheet: rtf_to_sheet, - from_sheet: sheet_to_rtf - }; -})(); -function hex2RGB(h) { - var o = h.slice(h[0]==="#"?1:0).slice(0,6); - return [parseInt(o.slice(0,2),16),parseInt(o.slice(2,4),16),parseInt(o.slice(4,6),16)]; -} -function rgb2Hex(rgb) { - for(var i=0,o=1; i!=3; ++i) o = o*256 + (rgb[i]>255?255:rgb[i]<0?0:rgb[i]); - return o.toString(16).toUpperCase().slice(1); -} - -function rgb2HSL(rgb) { - var R = rgb[0]/255, G = rgb[1]/255, B=rgb[2]/255; - var M = Math.max(R, G, B), m = Math.min(R, G, B), C = M - m; - if(C === 0) return [0, 0, R]; - - var H6 = 0, S = 0, L2 = (M + m); - S = C / (L2 > 1 ? 2 - L2 : L2); - switch(M){ - case R: H6 = ((G - B) / C + 6)%6; break; - case G: H6 = ((B - R) / C + 2); break; - case B: H6 = ((R - G) / C + 4); break; - } - return [H6 / 6, S, L2 / 2]; -} - -function hsl2RGB(hsl){ - var H = hsl[0], S = hsl[1], L = hsl[2]; - var C = S * 2 * (L < 0.5 ? L : 1 - L), m = L - C/2; - var rgb = [m,m,m], h6 = 6*H; - - var X; - if(S !== 0) switch(h6|0) { - case 0: case 6: X = C * h6; rgb[0] += C; rgb[1] += X; break; - case 1: X = C * (2 - h6); rgb[0] += X; rgb[1] += C; break; - case 2: X = C * (h6 - 2); rgb[1] += C; rgb[2] += X; break; - case 3: X = C * (4 - h6); rgb[1] += X; rgb[2] += C; break; - case 4: X = C * (h6 - 4); rgb[2] += C; rgb[0] += X; break; - case 5: X = C * (6 - h6); rgb[2] += X; rgb[0] += C; break; - } - for(var i = 0; i != 3; ++i) rgb[i] = Math.round(rgb[i]*255); - return rgb; -} - -/* 18.8.3 bgColor tint algorithm */ -function rgb_tint(hex, tint) { - if(tint === 0) return hex; - var hsl = rgb2HSL(hex2RGB(hex)); - if (tint < 0) hsl[2] = hsl[2] * (1 + tint); - else hsl[2] = 1 - (1 - hsl[2]) * (1 - tint); - return rgb2Hex(hsl2RGB(hsl)); -} - -/* 18.3.1.13 width calculations */ -/* [MS-OI29500] 2.1.595 Column Width & Formatting */ -var DEF_MDW = 6, MAX_MDW = 15, MIN_MDW = 1, MDW = DEF_MDW; -function width2px(width) { return Math.floor(( width + (Math.round(128/MDW))/256 )* MDW ); } -function px2char(px) { return (Math.floor((px - 5)/MDW * 100 + 0.5))/100; } -function char2width(chr) { return (Math.round((chr * MDW + 5)/MDW*256))/256; } -//function px2char_(px) { return (((px - 5)/MDW * 100 + 0.5))/100; } -//function char2width_(chr) { return (((chr * MDW + 5)/MDW*256))/256; } -function cycle_width(collw) { return char2width(px2char(width2px(collw))); } -/* XLSX/XLSB/XLS specify width in units of MDW */ -function find_mdw_colw(collw) { - var delta = Math.abs(collw - cycle_width(collw)), _MDW = MDW; - if(delta > 0.005) for(MDW=MIN_MDW; MDW 0.5) guess--; - if(Math.abs(guess) < delta) { delta = Math.abs(guess); _MDW = MDW; } - } - MDW = _MDW; -}*/ - -function process_col(coll) { - if(coll.width) { - coll.wpx = width2px(coll.width); - coll.wch = px2char(coll.wpx); - coll.MDW = MDW; - } else if(coll.wpx) { - coll.wch = px2char(coll.wpx); - coll.width = char2width(coll.wch); - coll.MDW = MDW; - } else if(typeof coll.wch == 'number') { - coll.width = char2width(coll.wch); - coll.wpx = width2px(coll.width); - coll.MDW = MDW; - } - if(coll.customWidth) delete coll.customWidth; -} - -var DEF_PPI = 96, PPI = DEF_PPI; -function px2pt(px) { return px * 96 / PPI; } -function pt2px(pt) { return pt * PPI / 96; } - -/* [MS-EXSPXML3] 2.4.54 ST_enmPattern */ -var XLMLPatternTypeMap = { - "None": "none", - "Solid": "solid", - "Gray50": "mediumGray", - "Gray75": "darkGray", - "Gray25": "lightGray", - "HorzStripe": "darkHorizontal", - "VertStripe": "darkVertical", - "ReverseDiagStripe": "darkDown", - "DiagStripe": "darkUp", - "DiagCross": "darkGrid", - "ThickDiagCross": "darkTrellis", - "ThinHorzStripe": "lightHorizontal", - "ThinVertStripe": "lightVertical", - "ThinReverseDiagStripe": "lightDown", - "ThinHorzCross": "lightGrid" -}; - -/* 18.8.5 borders CT_Borders */ -function parse_borders(t, styles, themes, opts) { - styles.Borders = []; - var border = {}; - var pass = false; - (t[0].match(tagregex)||[]).forEach(function(x) { - var y = parsexmltag(x); - switch(strip_ns(y[0])) { - case '': case '': break; - - /* 18.8.4 border CT_Border */ - case '': case '': - border = {}; - if(y.diagonalUp) border.diagonalUp = parsexmlbool(y.diagonalUp); - if(y.diagonalDown) border.diagonalDown = parsexmlbool(y.diagonalDown); - styles.Borders.push(border); - break; - case '': break; - - /* note: not in spec, appears to be CT_BorderPr */ - case '': break; - case '': break; - case '': break; - - /* note: not in spec, appears to be CT_BorderPr */ - case '': break; - case '': break; - case '': break; - - /* 18.8.43 top CT_BorderPr */ - case '': break; - case '': break; - case '': break; - - /* 18.8.6 bottom CT_BorderPr */ - case '': break; - case '': break; - case '': break; - - /* 18.8.13 diagonal CT_BorderPr */ - case '': case '': break; - case '': break; - - /* 18.8.25 horizontal CT_BorderPr */ - case '': case '': break; - case '': break; - - /* 18.8.44 vertical CT_BorderPr */ - case '': case '': break; - case '': break; - - /* 18.8.37 start CT_BorderPr */ - case '': case '': break; - case '': break; - - /* 18.8.16 end CT_BorderPr */ - case '': case '': break; - case '': break; - - /* 18.8.? color CT_Color */ - case '': - break; - case '': case '': break; - - /* 18.2.10 extLst CT_ExtensionList ? */ - case '': case '': break; - case '': pass = false; break; - default: if(opts && opts.WTF) { - if(!pass) throw new Error('unrecognized ' + y[0] + ' in borders'); - } - } - }); -} - -/* 18.8.21 fills CT_Fills */ -function parse_fills(t, styles, themes, opts) { - styles.Fills = []; - var fill = {}; - var pass = false; - (t[0].match(tagregex)||[]).forEach(function(x) { - var y = parsexmltag(x); - switch(strip_ns(y[0])) { - case '': case '': break; - - /* 18.8.20 fill CT_Fill */ - case '': case '': - fill = {}; styles.Fills.push(fill); break; - case '': break; - - /* 18.8.24 gradientFill CT_GradientFill */ - case '': break; - case '': styles.Fills.push(fill); fill = {}; break; - - /* 18.8.32 patternFill CT_PatternFill */ - case '': - if(y.patternType) fill.patternType = y.patternType; - break; - case '': case '': break; - - /* 18.8.3 bgColor CT_Color */ - case '': case '': break; - - /* 18.8.19 fgColor CT_Color */ - case '': case '': break; - - /* 18.8.38 stop CT_GradientStop */ - case '': break; - case '': break; - - /* 18.8.? color CT_Color */ - case '': break; - case '': break; - - /* 18.2.10 extLst CT_ExtensionList ? */ - case '': case '': break; - case '': pass = false; break; - default: if(opts && opts.WTF) { - if(!pass) throw new Error('unrecognized ' + y[0] + ' in fills'); - } - } - }); -} - -/* 18.8.23 fonts CT_Fonts */ -function parse_fonts(t, styles, themes, opts) { - styles.Fonts = []; - var font = {}; - var pass = false; - (t[0].match(tagregex)||[]).forEach(function(x) { - var y = parsexmltag(x); - switch(strip_ns(y[0])) { - case '': case '': break; - - /* 18.8.22 font CT_Font */ - case '': break; - case '': case '': - styles.Fonts.push(font); - font = {}; - break; - - /* 18.8.29 name CT_FontName */ - case '': case '': break; - - /* 18.8.2 b CT_BooleanProperty */ - case '': font.bold = 1; break; - - /* 18.8.26 i CT_BooleanProperty */ - case '': font.italic = 1; break; - - /* 18.4.13 u CT_UnderlineProperty */ - case '': font.underline = 1; break; - - /* 18.4.10 strike CT_BooleanProperty */ - case '': font.strike = 1; break; - - /* 18.4.2 outline CT_BooleanProperty */ - case '': font.outline = 1; break; - - /* 18.8.36 shadow CT_BooleanProperty */ - case '': font.shadow = 1; break; - - /* 18.8.12 condense CT_BooleanProperty */ - case '': font.condense = 1; break; - - /* 18.8.17 extend CT_BooleanProperty */ - case '': font.extend = 1; break; - - /* 18.4.11 sz CT_FontSize */ - case '': case '': break; - - /* 18.4.14 vertAlign CT_VerticalAlignFontProperty */ - case '': case '': break; - - /* 18.8.18 family CT_FontFamily */ - case '': case '': break; - - /* 18.8.35 scheme CT_FontScheme */ - case '': case '': break; - - /* 18.4.1 charset CT_IntProperty */ - case '': case '': break; - - /* note: sometimes mc:AlternateContent appears bare */ - case '': pass = false; break; - - /* 18.2.10 extLst CT_ExtensionList ? */ - case '': case '': break; - case '': pass = false; break; - default: if(opts && opts.WTF) { - if(!pass) throw new Error('unrecognized ' + y[0] + ' in fonts'); - } - } - }); -} - -/* 18.8.31 numFmts CT_NumFmts */ -function parse_numFmts(t, styles, opts) { - styles.NumberFmt = []; - var k/*Array*/ = (keys(SSF._table)); - for(var i=0; i < k.length; ++i) styles.NumberFmt[k[i]] = SSF._table[k[i]]; - var m = t[0].match(tagregex); - if(!m) return; - for(i=0; i < m.length; ++i) { - var y = parsexmltag(m[i]); - switch(strip_ns(y[0])) { - case '': case '': case '': break; - case '0) { - if(j > 0x188) { - for(j = 0x188; j > 0x3c; --j) if(styles.NumberFmt[j] == null) break; - styles.NumberFmt[j] = f; - } - SSF.load(f,j); - } - } break; - case '': break; - default: if(opts.WTF) throw new Error('unrecognized ' + y[0] + ' in numFmts'); - } - } -} - -function write_numFmts(NF) { - var o = [""]; - [[5,8],[23,26],[41,44],[/*63*/50,/*66],[164,*/392]].forEach(function(r) { - for(var i = r[0]; i <= r[1]; ++i) if(NF[i] != null) o[o.length] = (writextag('numFmt',null,{numFmtId:i,formatCode:escapexml(NF[i])})); - }); - if(o.length === 1) return ""; - o[o.length] = (""); - o[0] = writextag('numFmts', null, { count:o.length-2 }).replace("/>", ">"); - return o.join(""); -} - -/* 18.8.10 cellXfs CT_CellXfs */ -var cellXF_uint = [ "numFmtId", "fillId", "fontId", "borderId", "xfId" ]; -var cellXF_bool = [ "applyAlignment", "applyBorder", "applyFill", "applyFont", "applyNumberFormat", "applyProtection", "pivotButton", "quotePrefix" ]; -function parse_cellXfs(t, styles, opts) { - styles.CellXf = []; - var xf; - var pass = false; - (t[0].match(tagregex)||[]).forEach(function(x) { - var y = parsexmltag(x), i = 0; - switch(strip_ns(y[0])) { - case '': case '': case '': break; - - /* 18.8.45 xf CT_Xf */ - case '': - xf = y; - delete xf[0]; - for(i = 0; i < cellXF_uint.length; ++i) if(xf[cellXF_uint[i]]) - xf[cellXF_uint[i]] = parseInt(xf[cellXF_uint[i]], 10); - for(i = 0; i < cellXF_bool.length; ++i) if(xf[cellXF_bool[i]]) - xf[cellXF_bool[i]] = parsexmlbool(xf[cellXF_bool[i]]); - if(styles.NumberFmt && xf.numFmtId > 0x188) { - for(i = 0x188; i > 0x3c; --i) if(styles.NumberFmt[xf.numFmtId] == styles.NumberFmt[i]) { xf.numFmtId = i; break; } - } - styles.CellXf.push(xf); break; - case '': break; - - /* 18.8.1 alignment CT_CellAlignment */ - case '': - var alignment = {}; - if(y.vertical) alignment.vertical = y.vertical; - if(y.horizontal) alignment.horizontal = y.horizontal; - if(y.textRotation != null) alignment.textRotation = y.textRotation; - if(y.indent) alignment.indent = y.indent; - if(y.wrapText) alignment.wrapText = parsexmlbool(y.wrapText); - xf.alignment = alignment; - break; - case '': break; - - /* 18.8.33 protection CT_CellProtection */ - case '': case '': break; - - /* note: sometimes mc:AlternateContent appears bare */ - case '': pass = false; break; - - /* 18.2.10 extLst CT_ExtensionList ? */ - case '': case '': break; - case '': pass = false; break; - default: if(opts && opts.WTF) { - if(!pass) throw new Error('unrecognized ' + y[0] + ' in cellXfs'); - } - } - }); -} - -function write_cellXfs(cellXfs) { - var o = []; - o[o.length] = (writextag('cellXfs',null)); - cellXfs.forEach(function(c) { - o[o.length] = (writextag('xf', null, c)); - }); - o[o.length] = (""); - if(o.length === 2) return ""; - o[0] = writextag('cellXfs',null, {count:o.length-2}).replace("/>",">"); - return o.join(""); -} - -/* 18.8 Styles CT_Stylesheet*/ -var parse_sty_xml= (function make_pstyx() { -var numFmtRegex = /<(?:\w+:)?numFmts([^>]*)>[\S\s]*?<\/(?:\w+:)?numFmts>/; -var cellXfRegex = /<(?:\w+:)?cellXfs([^>]*)>[\S\s]*?<\/(?:\w+:)?cellXfs>/; -var fillsRegex = /<(?:\w+:)?fills([^>]*)>[\S\s]*?<\/(?:\w+:)?fills>/; -var fontsRegex = /<(?:\w+:)?fonts([^>]*)>[\S\s]*?<\/(?:\w+:)?fonts>/; -var bordersRegex = /<(?:\w+:)?borders([^>]*)>[\S\s]*?<\/(?:\w+:)?borders>/; - -return function parse_sty_xml(data, themes, opts) { - var styles = {}; - if(!data) return styles; - data = data.replace(//mg,"").replace(//gm,""); - /* 18.8.39 styleSheet CT_Stylesheet */ - var t; - - /* 18.8.31 numFmts CT_NumFmts ? */ - if((t=data.match(numFmtRegex))) parse_numFmts(t, styles, opts); - - /* 18.8.23 fonts CT_Fonts ? */ - if((t=data.match(fontsRegex))) parse_fonts(t, styles, themes, opts); - - /* 18.8.21 fills CT_Fills ? */ - if((t=data.match(fillsRegex))) parse_fills(t, styles, themes, opts); - - /* 18.8.5 borders CT_Borders ? */ - if((t=data.match(bordersRegex))) parse_borders(t, styles, themes, opts); - - /* 18.8.9 cellStyleXfs CT_CellStyleXfs ? */ - /* 18.8.8 cellStyles CT_CellStyles ? */ - - /* 18.8.10 cellXfs CT_CellXfs ? */ - if((t=data.match(cellXfRegex))) parse_cellXfs(t, styles, opts); - - /* 18.8.15 dxfs CT_Dxfs ? */ - /* 18.8.42 tableStyles CT_TableStyles ? */ - /* 18.8.11 colors CT_Colors ? */ - /* 18.2.10 extLst CT_ExtensionList ? */ - - return styles; -}; -})(); - -var STYLES_XML_ROOT = writextag('styleSheet', null, { - 'xmlns': XMLNS.main[0], - 'xmlns:vt': XMLNS.vt -}); - -RELS.STY = "http://schemas.openxmlformats.org/officeDocument/2006/relationships/styles"; - -function write_sty_xml(wb, opts) { - var o = [XML_HEADER, STYLES_XML_ROOT], w; - if(wb.SSF && (w = write_numFmts(wb.SSF)) != null) o[o.length] = w; - o[o.length] = (''); - o[o.length] = (''); - o[o.length] = (''); - o[o.length] = (''); - if((w = write_cellXfs(opts.cellXfs))) o[o.length] = (w); - o[o.length] = (''); - o[o.length] = (''); - o[o.length] = (''); - - if(o.length>2){ o[o.length] = (''); o[1]=o[1].replace("/>",">"); } - return o.join(""); -} -/* [MS-XLSB] 2.4.657 BrtFmt */ -function parse_BrtFmt(data, length) { - var numFmtId = data.read_shift(2); - var stFmtCode = parse_XLWideString(data,length-2); - return [numFmtId, stFmtCode]; -} -function write_BrtFmt(i, f, o) { - if(!o) o = new_buf(6 + 4 * f.length); - o.write_shift(2, i); - write_XLWideString(f, o); - var out = (o.length > o.l) ? o.slice(0, o.l) : o; - if(o.l == null) o.l = o.length; - return out; -} - -/* [MS-XLSB] 2.4.659 BrtFont TODO */ -function parse_BrtFont(data, length, opts) { - var out = ({}); - - out.sz = data.read_shift(2) / 20; - - var grbit = parse_FontFlags(data, 2, opts); - if(grbit.fItalic) out.italic = 1; - if(grbit.fCondense) out.condense = 1; - if(grbit.fExtend) out.extend = 1; - if(grbit.fShadow) out.shadow = 1; - if(grbit.fOutline) out.outline = 1; - if(grbit.fStrikeout) out.strike = 1; - - var bls = data.read_shift(2); - if(bls === 0x02BC) out.bold = 1; - - switch(data.read_shift(2)) { - /* case 0: out.vertAlign = "baseline"; break; */ - case 1: out.vertAlign = "superscript"; break; - case 2: out.vertAlign = "subscript"; break; - } - - var underline = data.read_shift(1); - if(underline != 0) out.underline = underline; - - var family = data.read_shift(1); - if(family > 0) out.family = family; - - var bCharSet = data.read_shift(1); - if(bCharSet > 0) out.charset = bCharSet; - - data.l++; - out.color = parse_BrtColor(data, 8); - - switch(data.read_shift(1)) { - /* case 0: out.scheme = "none": break; */ - case 1: out.scheme = "major"; break; - case 2: out.scheme = "minor"; break; - } - - out.name = parse_XLWideString(data, length - 21); - - return out; -} -function write_BrtFont(font, o) { - if(!o) o = new_buf(25+4*32); - o.write_shift(2, font.sz * 20); - write_FontFlags(font, o); - o.write_shift(2, font.bold ? 0x02BC : 0x0190); - var sss = 0; - if(font.vertAlign == "superscript") sss = 1; - else if(font.vertAlign == "subscript") sss = 2; - o.write_shift(2, sss); - o.write_shift(1, font.underline || 0); - o.write_shift(1, font.family || 0); - o.write_shift(1, font.charset || 0); - o.write_shift(1, 0); - write_BrtColor(font.color, o); - var scheme = 0; - if(font.scheme == "major") scheme = 1; - if(font.scheme == "minor") scheme = 2; - o.write_shift(1, scheme); - write_XLWideString(font.name, o); - return o.length > o.l ? o.slice(0, o.l) : o; -} - -/* [MS-XLSB] 2.4.650 BrtFill */ -var XLSBFillPTNames = [ - "none", - "solid", - "mediumGray", - "darkGray", - "lightGray", - "darkHorizontal", - "darkVertical", - "darkDown", - "darkUp", - "darkGrid", - "darkTrellis", - "lightHorizontal", - "lightVertical", - "lightDown", - "lightUp", - "lightGrid", - "lightTrellis", - "gray125", - "gray0625" -]; -var rev_XLSBFillPTNames = (evert(XLSBFillPTNames)); -/* TODO: gradient fill representation */ -var parse_BrtFill = parsenoop; -function write_BrtFill(fill, o) { - if(!o) o = new_buf(4*3 + 8*7 + 16*1); - var fls = rev_XLSBFillPTNames[fill.patternType]; - if(fls == null) fls = 0x28; - o.write_shift(4, fls); - var j = 0; - if(fls != 0x28) { - /* TODO: custom FG Color */ - write_BrtColor({auto:1}, o); - /* TODO: custom BG Color */ - write_BrtColor({auto:1}, o); - - for(; j < 12; ++j) o.write_shift(4, 0); - } else { - for(; j < 4; ++j) o.write_shift(4, 0); - - for(; j < 12; ++j) o.write_shift(4, 0); /* TODO */ - /* iGradientType */ - /* xnumDegree */ - /* xnumFillToLeft */ - /* xnumFillToRight */ - /* xnumFillToTop */ - /* xnumFillToBottom */ - /* cNumStop */ - /* xfillGradientStop */ - } - return o.length > o.l ? o.slice(0, o.l) : o; -} - -/* [MS-XLSB] 2.4.824 BrtXF */ -function parse_BrtXF(data, length) { - var tgt = data.l + length; - var ixfeParent = data.read_shift(2); - var ifmt = data.read_shift(2); - data.l = tgt; - return {ixfe:ixfeParent, numFmtId:ifmt }; -} -function write_BrtXF(data, ixfeP, o) { - if(!o) o = new_buf(16); - o.write_shift(2, ixfeP||0); - o.write_shift(2, data.numFmtId||0); - o.write_shift(2, 0); /* iFont */ - o.write_shift(2, 0); /* iFill */ - o.write_shift(2, 0); /* ixBorder */ - o.write_shift(1, 0); /* trot */ - o.write_shift(1, 0); /* indent */ - var flow = 0; - o.write_shift(1, flow); /* flags */ - o.write_shift(1, 0); /* flags */ - o.write_shift(1, 0); /* xfGrbitAtr */ - o.write_shift(1, 0); - return o; -} - -/* [MS-XLSB] 2.5.4 Blxf TODO */ -function write_Blxf(data, o) { - if(!o) o = new_buf(10); - o.write_shift(1, 0); /* dg */ - o.write_shift(1, 0); - o.write_shift(4, 0); /* color */ - o.write_shift(4, 0); /* color */ - return o; -} -/* [MS-XLSB] 2.4.302 BrtBorder TODO */ -var parse_BrtBorder = parsenoop; -function write_BrtBorder(border, o) { - if(!o) o = new_buf(51); - o.write_shift(1, 0); /* diagonal */ - write_Blxf(null, o); /* top */ - write_Blxf(null, o); /* bottom */ - write_Blxf(null, o); /* left */ - write_Blxf(null, o); /* right */ - write_Blxf(null, o); /* diag */ - return o.length > o.l ? o.slice(0, o.l) : o; -} - -/* [MS-XLSB] 2.4.763 BrtStyle TODO */ -function write_BrtStyle(style, o) { - if(!o) o = new_buf(12+4*10); - o.write_shift(4, style.xfId); - o.write_shift(2, 1); - o.write_shift(1, +style.builtinId); - o.write_shift(1, 0); /* iLevel */ - write_XLNullableWideString(style.name || "", o); - return o.length > o.l ? o.slice(0, o.l) : o; -} - -/* [MS-XLSB] 2.4.272 BrtBeginTableStyles */ -function write_BrtBeginTableStyles(cnt, defTableStyle, defPivotStyle) { - var o = new_buf(4+256*2*4); - o.write_shift(4, cnt); - write_XLNullableWideString(defTableStyle, o); - write_XLNullableWideString(defPivotStyle, o); - return o.length > o.l ? o.slice(0, o.l) : o; -} - -/* [MS-XLSB] 2.1.7.50 Styles */ -function parse_sty_bin(data, themes, opts) { - var styles = {}; - styles.NumberFmt = ([]); - for(var y in SSF._table) styles.NumberFmt[y] = SSF._table[y]; - - styles.CellXf = []; - styles.Fonts = []; - var state = []; - var pass = false; - recordhopper(data, function hopper_sty(val, R_n, RT) { - switch(RT) { - case 0x002C: /* 'BrtFmt' */ - styles.NumberFmt[val[0]] = val[1]; SSF.load(val[1], val[0]); - break; - case 0x002B: /* 'BrtFont' */ - styles.Fonts.push(val); - if(val.color.theme != null && themes && themes.themeElements && themes.themeElements.clrScheme) { - val.color.rgb = rgb_tint(themes.themeElements.clrScheme[val.color.theme].rgb, val.color.tint || 0); - } - break; - case 0x0401: /* 'BrtKnownFonts' */ break; - case 0x002D: /* 'BrtFill' */ - break; - case 0x002E: /* 'BrtBorder' */ - break; - case 0x002F: /* 'BrtXF' */ - if(state[state.length - 1] == "BrtBeginCellXFs") { - styles.CellXf.push(val); - } - break; - case 0x0030: /* 'BrtStyle' */ - case 0x01FB: /* 'BrtDXF' */ - case 0x023C: /* 'BrtMRUColor' */ - case 0x01DB: /* 'BrtIndexedColor': */ - break; - - case 0x0493: /* 'BrtDXF14' */ - case 0x0836: /* 'BrtDXF15' */ - case 0x046A: /* 'BrtSlicerStyleElement' */ - case 0x0200: /* 'BrtTableStyleElement' */ - case 0x082F: /* 'BrtTimelineStyleElement' */ - case 0x0C00: /* 'BrtUid' */ - break; - - case 0x0023: /* 'BrtFRTBegin' */ - pass = true; break; - case 0x0024: /* 'BrtFRTEnd' */ - pass = false; break; - case 0x0025: /* 'BrtACBegin' */ - state.push(R_n); pass = true; break; - case 0x0026: /* 'BrtACEnd' */ - state.pop(); pass = false; break; - - default: - if((R_n||"").indexOf("Begin") > 0) state.push(R_n); - else if((R_n||"").indexOf("End") > 0) state.pop(); - else if(!pass || (opts.WTF && state[state.length-1] != "BrtACBegin")) throw new Error("Unexpected record " + RT + " " + R_n); - } - }); - return styles; -} - -function write_FMTS_bin(ba, NF) { - if(!NF) return; - var cnt = 0; - [[5,8],[23,26],[41,44],[/*63*/50,/*66],[164,*/392]].forEach(function(r) { -for(var i = r[0]; i <= r[1]; ++i) if(NF[i] != null) ++cnt; - }); - - if(cnt == 0) return; - write_record(ba, "BrtBeginFmts", write_UInt32LE(cnt)); - [[5,8],[23,26],[41,44],[/*63*/50,/*66],[164,*/392]].forEach(function(r) { -for(var i = r[0]; i <= r[1]; ++i) if(NF[i] != null) write_record(ba, "BrtFmt", write_BrtFmt(i, NF[i])); - }); - write_record(ba, "BrtEndFmts"); -} - -function write_FONTS_bin(ba) { - var cnt = 1; - - if(cnt == 0) return; - write_record(ba, "BrtBeginFonts", write_UInt32LE(cnt)); - write_record(ba, "BrtFont", write_BrtFont({ - sz:12, - color: {theme:1}, - name: "Calibri", - family: 2, - scheme: "minor" - })); - /* 1*65491BrtFont [ACFONTS] */ - write_record(ba, "BrtEndFonts"); -} - -function write_FILLS_bin(ba) { - var cnt = 2; - - if(cnt == 0) return; - write_record(ba, "BrtBeginFills", write_UInt32LE(cnt)); - write_record(ba, "BrtFill", write_BrtFill({patternType:"none"})); - write_record(ba, "BrtFill", write_BrtFill({patternType:"gray125"})); - /* 1*65431BrtFill */ - write_record(ba, "BrtEndFills"); -} - -function write_BORDERS_bin(ba) { - var cnt = 1; - - if(cnt == 0) return; - write_record(ba, "BrtBeginBorders", write_UInt32LE(cnt)); - write_record(ba, "BrtBorder", write_BrtBorder({})); - /* 1*65430BrtBorder */ - write_record(ba, "BrtEndBorders"); -} - -function write_CELLSTYLEXFS_bin(ba) { - var cnt = 1; - write_record(ba, "BrtBeginCellStyleXFs", write_UInt32LE(cnt)); - write_record(ba, "BrtXF", write_BrtXF({ - numFmtId: 0, - fontId: 0, - fillId: 0, - borderId: 0 - }, 0xFFFF)); - /* 1*65430(BrtXF *FRT) */ - write_record(ba, "BrtEndCellStyleXFs"); -} - -function write_CELLXFS_bin(ba, data) { - write_record(ba, "BrtBeginCellXFs", write_UInt32LE(data.length)); - data.forEach(function(c) { write_record(ba, "BrtXF", write_BrtXF(c,0)); }); - /* 1*65430(BrtXF *FRT) */ - write_record(ba, "BrtEndCellXFs"); -} - -function write_STYLES_bin(ba) { - var cnt = 1; - - write_record(ba, "BrtBeginStyles", write_UInt32LE(cnt)); - write_record(ba, "BrtStyle", write_BrtStyle({ - xfId:0, - builtinId:0, - name:"Normal" - })); - /* 1*65430(BrtStyle *FRT) */ - write_record(ba, "BrtEndStyles"); -} - -function write_DXFS_bin(ba) { - var cnt = 0; - - write_record(ba, "BrtBeginDXFs", write_UInt32LE(cnt)); - /* *2147483647(BrtDXF *FRT) */ - write_record(ba, "BrtEndDXFs"); -} - -function write_TABLESTYLES_bin(ba) { - var cnt = 0; - - write_record(ba, "BrtBeginTableStyles", write_BrtBeginTableStyles(cnt, "TableStyleMedium9", "PivotStyleMedium4")); - /* *TABLESTYLE */ - write_record(ba, "BrtEndTableStyles"); -} - -function write_COLORPALETTE_bin() { - return; - /* BrtBeginColorPalette [INDEXEDCOLORS] [MRUCOLORS] BrtEndColorPalette */ -} - -/* [MS-XLSB] 2.1.7.50 Styles */ -function write_sty_bin(wb, opts) { - var ba = buf_array(); - write_record(ba, "BrtBeginStyleSheet"); - write_FMTS_bin(ba, wb.SSF); - write_FONTS_bin(ba, wb); - write_FILLS_bin(ba, wb); - write_BORDERS_bin(ba, wb); - write_CELLSTYLEXFS_bin(ba, wb); - write_CELLXFS_bin(ba, opts.cellXfs); - write_STYLES_bin(ba, wb); - write_DXFS_bin(ba, wb); - write_TABLESTYLES_bin(ba, wb); - write_COLORPALETTE_bin(ba, wb); - /* FRTSTYLESHEET*/ - write_record(ba, "BrtEndStyleSheet"); - return ba.end(); -} -RELS.THEME = "http://schemas.openxmlformats.org/officeDocument/2006/relationships/theme"; - -/* Even though theme layout is dk1 lt1 dk2 lt2, true order is lt1 dk1 lt2 dk2 */ -var XLSXThemeClrScheme = [ - '', '', '', '', - '', '', '', - '', '', '', - '', '' -]; -/* 20.1.6.2 clrScheme CT_ColorScheme */ -function parse_clrScheme(t, themes, opts) { - themes.themeElements.clrScheme = []; - var color = {}; - (t[0].match(tagregex)||[]).forEach(function(x) { - var y = parsexmltag(x); - switch(y[0]) { - /* 20.1.6.2 clrScheme (Color Scheme) CT_ColorScheme */ - case '': break; - - /* 20.1.2.3.32 srgbClr CT_SRgbColor */ - case '': case '': - case '': case '': - case '': case '': - case '': case '': - case '': case '': - case '': case '': - case '': case '': - case '': case '': - case '': case '': - case '': case '': - case '': case '': - case '': case '': - if (y[0].charAt(1) === '/') { - themes.themeElements.clrScheme[XLSXThemeClrScheme.indexOf(y[0])] = color; - color = {}; - } else { - color.name = y[0].slice(3, y[0].length - 1); - } - break; - - default: if(opts && opts.WTF) throw new Error('Unrecognized ' + y[0] + ' in clrScheme'); - } - }); -} - -/* 20.1.4.1.18 fontScheme CT_FontScheme */ -function parse_fontScheme() { } - -/* 20.1.4.1.15 fmtScheme CT_StyleMatrix */ -function parse_fmtScheme() { } - -var clrsregex = /]*)>[\s\S]*<\/a:clrScheme>/; -var fntsregex = /]*)>[\s\S]*<\/a:fontScheme>/; -var fmtsregex = /]*)>[\s\S]*<\/a:fmtScheme>/; - -/* 20.1.6.10 themeElements CT_BaseStyles */ -function parse_themeElements(data, themes, opts) { - themes.themeElements = {}; - - var t; - - [ - /* clrScheme CT_ColorScheme */ - ['clrScheme', clrsregex, parse_clrScheme], - /* fontScheme CT_FontScheme */ - ['fontScheme', fntsregex, parse_fontScheme], - /* fmtScheme CT_StyleMatrix */ - ['fmtScheme', fmtsregex, parse_fmtScheme] - ].forEach(function(m) { - if(!(t=data.match(m[1]))) throw new Error(m[0] + ' not found in themeElements'); - m[2](t, themes, opts); - }); -} - -var themeltregex = /]*)>[\s\S]*<\/a:themeElements>/; - -/* 14.2.7 Theme Part */ -function parse_theme_xml(data, opts) { - /* 20.1.6.9 theme CT_OfficeStyleSheet */ - if(!data || data.length === 0) return parse_theme_xml(write_theme()); - - var t; - var themes = {}; - - /* themeElements CT_BaseStyles */ - if(!(t=data.match(themeltregex))) throw new Error('themeElements not found in theme'); - parse_themeElements(t[0], themes, opts); - themes.raw = data; - return themes; -} - -function write_theme(Themes, opts) { - if(opts && opts.themeXLSX) return opts.themeXLSX; - if(Themes && typeof Themes.raw == "string") return Themes.raw; - var o = [XML_HEADER]; - o[o.length] = ''; - o[o.length] = ''; - - o[o.length] = ''; - o[o.length] = ''; - o[o.length] = ''; - o[o.length] = ''; - o[o.length] = ''; - o[o.length] = ''; - o[o.length] = ''; - o[o.length] = ''; - o[o.length] = ''; - o[o.length] = ''; - o[o.length] = ''; - o[o.length] = ''; - o[o.length] = ''; - o[o.length] = ''; - - o[o.length] = ''; - o[o.length] = ''; - o[o.length] = ''; - o[o.length] = ''; - o[o.length] = ''; - o[o.length] = ''; - o[o.length] = ''; - o[o.length] = ''; - o[o.length] = ''; - o[o.length] = ''; - o[o.length] = ''; - o[o.length] = ''; - o[o.length] = ''; - o[o.length] = ''; - o[o.length] = ''; - o[o.length] = ''; - o[o.length] = ''; - o[o.length] = ''; - o[o.length] = ''; - o[o.length] = ''; - o[o.length] = ''; - o[o.length] = ''; - o[o.length] = ''; - o[o.length] = ''; - o[o.length] = ''; - o[o.length] = ''; - o[o.length] = ''; - o[o.length] = ''; - o[o.length] = ''; - o[o.length] = ''; - o[o.length] = ''; - o[o.length] = ''; - o[o.length] = ''; - o[o.length] = ''; - o[o.length] = ''; - o[o.length] = ''; - o[o.length] = ''; - o[o.length] = ''; - o[o.length] = ''; - o[o.length] = ''; - o[o.length] = ''; - o[o.length] = ''; - o[o.length] = ''; - o[o.length] = ''; - o[o.length] = ''; - o[o.length] = ''; - o[o.length] = ''; - o[o.length] = ''; - o[o.length] = ''; - o[o.length] = ''; - o[o.length] = ''; - o[o.length] = ''; - o[o.length] = ''; - o[o.length] = ''; - o[o.length] = ''; - o[o.length] = ''; - o[o.length] = ''; - o[o.length] = ''; - o[o.length] = ''; - o[o.length] = ''; - o[o.length] = ''; - o[o.length] = ''; - o[o.length] = ''; - o[o.length] = ''; - o[o.length] = ''; - o[o.length] = ''; - o[o.length] = ''; - o[o.length] = ''; - o[o.length] = ''; - o[o.length] = ''; - o[o.length] = ''; - o[o.length] = ''; - - o[o.length] = ''; - o[o.length] = ''; - o[o.length] = ''; - o[o.length] = ''; - o[o.length] = ''; - o[o.length] = ''; - o[o.length] = ''; - o[o.length] = ''; - o[o.length] = ''; - o[o.length] = ''; - o[o.length] = ''; - o[o.length] = ''; - o[o.length] = ''; - o[o.length] = ''; - o[o.length] = ''; - o[o.length] = ''; - o[o.length] = ''; - o[o.length] = ''; - o[o.length] = ''; - o[o.length] = ''; - o[o.length] = ''; - o[o.length] = ''; - o[o.length] = ''; - o[o.length] = ''; - o[o.length] = ''; - o[o.length] = ''; - o[o.length] = ''; - o[o.length] = ''; - o[o.length] = ''; - o[o.length] = ''; - o[o.length] = ''; - o[o.length] = ''; - o[o.length] = ''; - o[o.length] = ''; - o[o.length] = ''; - o[o.length] = ''; - o[o.length] = ''; - o[o.length] = ''; - o[o.length] = ''; - o[o.length] = ''; - o[o.length] = ''; - o[o.length] = ''; - o[o.length] = ''; - o[o.length] = ''; - o[o.length] = ''; - o[o.length] = ''; - o[o.length] = ''; - o[o.length] = ''; - o[o.length] = ''; - o[o.length] = ''; - o[o.length] = ''; - o[o.length] = ''; - o[o.length] = ''; - o[o.length] = ''; - o[o.length] = ''; - o[o.length] = ''; - o[o.length] = ''; - o[o.length] = ''; - o[o.length] = ''; - o[o.length] = ''; - o[o.length] = ''; - o[o.length] = ''; - o[o.length] = ''; - - o[o.length] = ''; - o[o.length] = ''; - o[o.length] = ''; - o[o.length] = ''; - o[o.length] = ''; - o[o.length] = ''; - o[o.length] = ''; - o[o.length] = ''; - o[o.length] = ''; - o[o.length] = ''; - return o.join(""); -} -/* [MS-XLS] 2.4.326 TODO: payload is a zip file */ -function parse_Theme(blob, length, opts) { - var end = blob.l + length; - var dwThemeVersion = blob.read_shift(4); - if(dwThemeVersion === 124226) return; - if(!opts.cellStyles) { blob.l = end; return; } - var data = blob.slice(blob.l); - blob.l = end; - var zip; try { zip = zip_read(data, {type: "array"}); } catch(e) { return; } - var themeXML = getzipstr(zip, "theme/theme/theme1.xml", true); - if(!themeXML) return; - return parse_theme_xml(themeXML, opts); -} - -/* 2.5.49 */ -function parse_ColorTheme(blob) { return blob.read_shift(4); } - -/* 2.5.155 */ -function parse_FullColorExt(blob) { - var o = {}; - o.xclrType = blob.read_shift(2); - o.nTintShade = blob.read_shift(2); - switch(o.xclrType) { - case 0: blob.l += 4; break; - case 1: o.xclrValue = parse_IcvXF(blob, 4); break; - case 2: o.xclrValue = parse_LongRGBA(blob, 4); break; - case 3: o.xclrValue = parse_ColorTheme(blob, 4); break; - case 4: blob.l += 4; break; - } - blob.l += 8; - return o; -} - -/* 2.5.164 TODO: read 7 bits*/ -function parse_IcvXF(blob, length) { - return parsenoop(blob, length); -} - -/* 2.5.280 */ -function parse_XFExtGradient(blob, length) { - return parsenoop(blob, length); -} - -/* [MS-XLS] 2.5.108 */ -function parse_ExtProp(blob) { - var extType = blob.read_shift(2); - var cb = blob.read_shift(2) - 4; - var o = [extType]; - switch(extType) { - case 0x04: case 0x05: case 0x07: case 0x08: - case 0x09: case 0x0A: case 0x0B: case 0x0D: - o[1] = parse_FullColorExt(blob, cb); break; - case 0x06: o[1] = parse_XFExtGradient(blob, cb); break; - case 0x0E: case 0x0F: o[1] = blob.read_shift(cb === 1 ? 1 : 2); break; - default: throw new Error("Unrecognized ExtProp type: " + extType + " " + cb); - } - return o; -} - -/* 2.4.355 */ -function parse_XFExt(blob, length) { - var end = blob.l + length; - blob.l += 2; - var ixfe = blob.read_shift(2); - blob.l += 2; - var cexts = blob.read_shift(2); - var ext = []; - while(cexts-- > 0) ext.push(parse_ExtProp(blob, end-blob.l)); - return {ixfe:ixfe, ext:ext}; -} - -/* xf is an XF, see parse_XFExt for xfext */ -function update_xfext(xf, xfext) { - xfext.forEach(function(xfe) { - switch(xfe[0]) { /* 2.5.108 extPropData */ - case 0x04: break; /* foreground color */ - case 0x05: break; /* background color */ - case 0x06: break; /* gradient fill */ - case 0x07: break; /* top cell border color */ - case 0x08: break; /* bottom cell border color */ - case 0x09: break; /* left cell border color */ - case 0x0a: break; /* right cell border color */ - case 0x0b: break; /* diagonal cell border color */ - case 0x0d: /* text color */ - break; - case 0x0e: break; /* font scheme */ - case 0x0f: break; /* indentation level */ - } - }); -} - -/* 18.6 Calculation Chain */ -function parse_cc_xml(data) { - var d = []; - if(!data) return d; - var i = 1; - (data.match(tagregex)||[]).forEach(function(x) { - var y = parsexmltag(x); - switch(y[0]) { - case '': case '': break; - /* 18.6.1 c CT_CalcCell 1 */ - case ' 0){/* empty */} - else if((R_n||"").indexOf("End") > 0){/* empty */} - else if(!pass || opts.WTF) throw new Error("Unexpected record " + RT + " " + R_n); - } - }); - return out; -} - -//function write_cc_bin(data, opts) { } -/* 18.14 Supplementary Workbook Data */ -function parse_xlink_xml() { - //var opts = _opts || {}; - //if(opts.WTF) throw "XLSX External Link"; -} - -/* [MS-XLSB] 2.1.7.25 External Link */ -function parse_xlink_bin(data, rel, name, _opts) { - if(!data) return data; - var opts = _opts || {}; - - var pass = false, end = false; - - recordhopper(data, function xlink_parse(val, R_n, RT) { - if(end) return; - switch(RT) { - case 0x0167: /* 'BrtSupTabs' */ - case 0x016B: /* 'BrtExternTableStart' */ - case 0x016C: /* 'BrtExternTableEnd' */ - case 0x016E: /* 'BrtExternRowHdr' */ - case 0x016F: /* 'BrtExternCellBlank' */ - case 0x0170: /* 'BrtExternCellReal' */ - case 0x0171: /* 'BrtExternCellBool' */ - case 0x0172: /* 'BrtExternCellError' */ - case 0x0173: /* 'BrtExternCellString' */ - case 0x01D8: /* 'BrtExternValueMeta' */ - case 0x0241: /* 'BrtSupNameStart' */ - case 0x0242: /* 'BrtSupNameValueStart' */ - case 0x0243: /* 'BrtSupNameValueEnd' */ - case 0x0244: /* 'BrtSupNameNum' */ - case 0x0245: /* 'BrtSupNameErr' */ - case 0x0246: /* 'BrtSupNameSt' */ - case 0x0247: /* 'BrtSupNameNil' */ - case 0x0248: /* 'BrtSupNameBool' */ - case 0x0249: /* 'BrtSupNameFmla' */ - case 0x024A: /* 'BrtSupNameBits' */ - case 0x024B: /* 'BrtSupNameEnd' */ - break; - - case 0x0023: /* 'BrtFRTBegin' */ - pass = true; break; - case 0x0024: /* 'BrtFRTEnd' */ - pass = false; break; - - default: - if((R_n||"").indexOf("Begin") > 0){/* empty */} - else if((R_n||"").indexOf("End") > 0){/* empty */} - else if(!pass || opts.WTF) throw new Error("Unexpected record " + RT.toString(16) + " " + R_n); - } - }, opts); -} -/* 20.5 DrawingML - SpreadsheetML Drawing */ -RELS.IMG = "http://schemas.openxmlformats.org/officeDocument/2006/relationships/image"; -RELS.DRAW = "http://schemas.openxmlformats.org/officeDocument/2006/relationships/drawing"; - -/* 20.5.2.35 wsDr CT_Drawing */ -function parse_drawing(data, rels) { - if(!data) return "??"; - /* - Chartsheet Drawing: - - 20.5.2.35 wsDr CT_Drawing - - 20.5.2.1 absoluteAnchor CT_AbsoluteAnchor - - 20.5.2.16 graphicFrame CT_GraphicalObjectFrame - - 20.1.2.2.16 graphic CT_GraphicalObject - - 20.1.2.2.17 graphicData CT_GraphicalObjectData - - chart reference - the actual type is based on the URI of the graphicData - TODO: handle embedded charts and other types of graphics - */ - var id = (data.match(/]*r:id="([^"]*)"/)||["",""])[1]; - - return rels['!id'][id].Target; -} - -/* L.5.5.2 SpreadsheetML Comments + VML Schema */ -var _shapeid = 1024; -function write_comments_vml(rId, comments) { - var csize = [21600, 21600]; - /* L.5.2.1.2 Path Attribute */ - var bbox = ["m0,0l0",csize[1],csize[0],csize[1],csize[0],"0xe"].join(","); - var o = [ - writextag("xml", null, { 'xmlns:v': XLMLNS.v, 'xmlns:o': XLMLNS.o, 'xmlns:x': XLMLNS.x, 'xmlns:mv': XLMLNS.mv }).replace(/\/>/,">"), - writextag("o:shapelayout", writextag("o:idmap", null, {'v:ext':"edit", 'data':rId}), {'v:ext':"edit"}), - writextag("v:shapetype", [ - writextag("v:stroke", null, {joinstyle:"miter"}), - writextag("v:path", null, {gradientshapeok:"t", 'o:connecttype':"rect"}) - ].join(""), {id:"_x0000_t202", 'o:spt':202, coordsize:csize.join(","),path:bbox}) - ]; - while(_shapeid < rId * 1000) _shapeid += 1000; - - comments.forEach(function(x) { - var c = decode_cell(x[0]); - var fillopts = {'color2':"#BEFF82", 'type':"gradient"}; - if(fillopts.type == "gradient") fillopts.angle = "-180"; - var fillparm = fillopts.type == "gradient" ? writextag("o:fill", null, {type:"gradientUnscaled", 'v:ext':"view"}) : null; - var fillxml = writextag('v:fill', fillparm, fillopts); - - var shadata = ({on:"t", 'obscured':"t"}); - ++_shapeid; - - o = o.concat([ - '', - fillxml, - writextag("v:shadow", null, shadata), - writextag("v:path", null, {'o:connecttype':"none"}), - '
', - '', - '', - '', - /* Part 4 19.4.2.3 Anchor (Anchor) */ - writetag('x:Anchor', [c.c+1, 0, c.r+1, 0, c.c+3, 20, c.r+5, 20].join(",")), - writetag('x:AutoFill', "False"), - writetag('x:Row', String(c.r)), - writetag('x:Column', String(c.c)), - x[1].hidden ? '' : '', - '', - '' - ]); }); - o.push(''); - return o.join(""); -} -RELS.CMNT = "http://schemas.openxmlformats.org/officeDocument/2006/relationships/comments"; - -function sheet_insert_comments(sheet, comments) { - var dense = Array.isArray(sheet); - var cell; - comments.forEach(function(comment) { - var r = decode_cell(comment.ref); - if(dense) { - if(!sheet[r.r]) sheet[r.r] = []; - cell = sheet[r.r][r.c]; - } else cell = sheet[comment.ref]; - if (!cell) { - cell = ({t:"z"}); - if(dense) sheet[r.r][r.c] = cell; - else sheet[comment.ref] = cell; - var range = safe_decode_range(sheet["!ref"]||"BDWGO1000001:A1"); - if(range.s.r > r.r) range.s.r = r.r; - if(range.e.r < r.r) range.e.r = r.r; - if(range.s.c > r.c) range.s.c = r.c; - if(range.e.c < r.c) range.e.c = r.c; - var encoded = encode_range(range); - if (encoded !== sheet["!ref"]) sheet["!ref"] = encoded; - } - - if (!cell.c) cell.c = []; - var o = ({a: comment.author, t: comment.t, r: comment.r}); - if(comment.h) o.h = comment.h; - cell.c.push(o); - }); -} - -/* 18.7 Comments */ -function parse_comments_xml(data, opts) { - /* 18.7.6 CT_Comments */ - if(data.match(/<(?:\w+:)?comments *\/>/)) return []; - var authors = []; - var commentList = []; - var authtag = data.match(/<(?:\w+:)?authors>([\s\S]*)<\/(?:\w+:)?authors>/); - if(authtag && authtag[1]) authtag[1].split(/<\/\w*:?author>/).forEach(function(x) { - if(x === "" || x.trim() === "") return; - var a = x.match(/<(?:\w+:)?author[^>]*>(.*)/); - if(a) authors.push(a[1]); - }); - var cmnttag = data.match(/<(?:\w+:)?commentList>([\s\S]*)<\/(?:\w+:)?commentList>/); - if(cmnttag && cmnttag[1]) cmnttag[1].split(/<\/\w*:?comment>/).forEach(function(x) { - if(x === "" || x.trim() === "") return; - var cm = x.match(/<(?:\w+:)?comment[^>]*>/); - if(!cm) return; - var y = parsexmltag(cm[0]); - var comment = ({ author: y.authorId && authors[y.authorId] || "sheetjsghost", ref: y.ref, guid: y.guid }); - var cell = decode_cell(y.ref); - if(opts.sheetRows && opts.sheetRows <= cell.r) return; - var textMatch = x.match(/<(?:\w+:)?text>([\s\S]*)<\/(?:\w+:)?text>/); - var rt = !!textMatch && !!textMatch[1] && parse_si(textMatch[1]) || {r:"",t:"",h:""}; - comment.r = rt.r; - if(rt.r == "") rt.t = rt.h = ""; - comment.t = (rt.t||"").replace(/\r\n/g,"\n").replace(/\r/g,"\n"); - if(opts.cellHTML) comment.h = rt.h; - commentList.push(comment); - }); - return commentList; -} - -var CMNT_XML_ROOT = writextag('comments', null, { 'xmlns': XMLNS.main[0] }); -function write_comments_xml(data) { - var o = [XML_HEADER, CMNT_XML_ROOT]; - - var iauthor = []; - o.push(""); - data.forEach(function(x) { x[1].forEach(function(w) { var a = escapexml(w.a); - if(iauthor.indexOf(a) > -1) return; - iauthor.push(a); - o.push("" + a + ""); - }); }); - o.push(""); - o.push(""); - data.forEach(function(d) { - d[1].forEach(function(c) { - /* 18.7.3 CT_Comment */ - o.push(''); - o.push(writetag("t", c.t == null ? "" : escapexml(c.t))); - o.push(''); - }); - }); - o.push(""); - if(o.length>2) { o[o.length] = (''); o[1]=o[1].replace("/>",">"); } - return o.join(""); -} -/* [MS-XLSB] 2.4.28 BrtBeginComment */ -function parse_BrtBeginComment(data) { - var out = {}; - out.iauthor = data.read_shift(4); - var rfx = parse_UncheckedRfX(data, 16); - out.rfx = rfx.s; - out.ref = encode_cell(rfx.s); - data.l += 16; /*var guid = parse_GUID(data); */ - return out; -} -function write_BrtBeginComment(data, o) { - if(o == null) o = new_buf(36); - o.write_shift(4, data[1].iauthor); - write_UncheckedRfX((data[0]), o); - o.write_shift(4, 0); - o.write_shift(4, 0); - o.write_shift(4, 0); - o.write_shift(4, 0); - return o; -} - -/* [MS-XLSB] 2.4.327 BrtCommentAuthor */ -var parse_BrtCommentAuthor = parse_XLWideString; -function write_BrtCommentAuthor(data) { return write_XLWideString(data.slice(0, 54)); } - -/* [MS-XLSB] 2.1.7.8 Comments */ -function parse_comments_bin(data, opts) { - var out = []; - var authors = []; - var c = {}; - var pass = false; - recordhopper(data, function hopper_cmnt(val, R_n, RT) { - switch(RT) { - case 0x0278: /* 'BrtCommentAuthor' */ - authors.push(val); break; - case 0x027B: /* 'BrtBeginComment' */ - c = val; break; - case 0x027D: /* 'BrtCommentText' */ - c.t = val.t; c.h = val.h; c.r = val.r; break; - case 0x027C: /* 'BrtEndComment' */ - c.author = authors[c.iauthor]; - delete (c).iauthor; - if(opts.sheetRows && c.rfx && opts.sheetRows <= c.rfx.r) break; - if(!c.t) c.t = ""; - delete c.rfx; out.push(c); break; - - case 0x0C00: /* 'BrtUid' */ - break; - - case 0x0023: /* 'BrtFRTBegin' */ - pass = true; break; - case 0x0024: /* 'BrtFRTEnd' */ - pass = false; break; - case 0x0025: /* 'BrtACBegin' */ break; - case 0x0026: /* 'BrtACEnd' */ break; - - - default: - if((R_n||"").indexOf("Begin") > 0){/* empty */} - else if((R_n||"").indexOf("End") > 0){/* empty */} - else if(!pass || opts.WTF) throw new Error("Unexpected record " + RT + " " + R_n); - } - }); - return out; -} - -function write_comments_bin(data) { - var ba = buf_array(); - var iauthor = []; - write_record(ba, "BrtBeginComments"); - - write_record(ba, "BrtBeginCommentAuthors"); - data.forEach(function(comment) { - comment[1].forEach(function(c) { - if(iauthor.indexOf(c.a) > -1) return; - iauthor.push(c.a.slice(0,54)); - write_record(ba, "BrtCommentAuthor", write_BrtCommentAuthor(c.a)); - }); - }); - write_record(ba, "BrtEndCommentAuthors"); - - write_record(ba, "BrtBeginCommentList"); - data.forEach(function(comment) { - comment[1].forEach(function(c) { - c.iauthor = iauthor.indexOf(c.a); - var range = {s:decode_cell(comment[0]),e:decode_cell(comment[0])}; - write_record(ba, "BrtBeginComment", write_BrtBeginComment([range, c])); - if(c.t && c.t.length > 0) write_record(ba, "BrtCommentText", write_BrtCommentText(c)); - write_record(ba, "BrtEndComment"); - delete c.iauthor; - }); - }); - write_record(ba, "BrtEndCommentList"); - - write_record(ba, "BrtEndComments"); - return ba.end(); -} -var CT_VBA = "application/vnd.ms-office.vbaProject"; -function make_vba_xls(cfb) { - var newcfb = CFB.utils.cfb_new({ root: "R" }); - cfb.FullPaths.forEach(function(p, i) { - if (p.slice(-1) === "/" || !p.match(/_VBA_PROJECT_CUR/)) - return; - var newpath = p.replace(/^[^\/]*/, "R").replace(/\/_VBA_PROJECT_CUR\u0000*/, ""); - CFB.utils.cfb_add(newcfb, newpath, cfb.FileIndex[i].content); - }); - return CFB.write(newcfb); -} -function fill_vba_xls(cfb, vba) { - vba.FullPaths.forEach(function(p, i) { - if (i == 0) - return; - var newpath = p.replace(/[^\/]*[\/]/, "/_VBA_PROJECT_CUR/"); - if (newpath.slice(-1) !== "/") - CFB.utils.cfb_add(cfb, newpath, vba.FileIndex[i].content); - }); -} -var VBAFMTS = ["xlsb", "xlsm", "xlam", "biff8", "xla"]; -RELS.DS = "http://schemas.openxmlformats.org/officeDocument/2006/relationships/dialogsheet"; -RELS.MS = "http://schemas.microsoft.com/office/2006/relationships/xlMacrosheet"; - -/* macro and dialog sheet stubs */ -function parse_ds_bin() { return {'!type':'dialog'}; } -function parse_ds_xml() { return {'!type':'dialog'}; } -function parse_ms_bin() { return {'!type':'macro'}; } -function parse_ms_xml() { return {'!type':'macro'}; } -/* TODO: it will be useful to parse the function str */ -var rc_to_a1 = (function(){ - var rcregex = /(^|[^A-Za-z_])R(\[?-?\d+\]|[1-9]\d*|)C(\[?-?\d+\]|[1-9]\d*|)(?![A-Za-z0-9_])/g; - var rcbase = ({r:0,c:0}); - function rcfunc($$,$1,$2,$3) { - var cRel = false, rRel = false; - - if($2.length == 0) rRel = true; - else if($2.charAt(0) == "[") { rRel = true; $2 = $2.slice(1, -1); } - - if($3.length == 0) cRel = true; - else if($3.charAt(0) == "[") { cRel = true; $3 = $3.slice(1, -1); } - - var R = $2.length>0?parseInt($2,10)|0:0, C = $3.length>0?parseInt($3,10)|0:0; - - if(cRel) C += rcbase.c; else --C; - if(rRel) R += rcbase.r; else --R; - return $1 + (cRel ? "" : "$") + encode_col(C) + (rRel ? "" : "$") + encode_row(R); - } - return function rc_to_a1(fstr, base) { - rcbase = base; - return fstr.replace(rcregex, rcfunc); - }; -})(); - -var crefregex = /(^|[^._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; -var a1_to_rc =(function(){ - return function a1_to_rc(fstr, base) { - return fstr.replace(crefregex, function($0, $1, $2, $3, $4, $5) { - var c = decode_col($3) - ($2 ? 0 : base.c); - var r = decode_row($5) - ($4 ? 0 : base.r); - var R = (r == 0 ? "" : !$4 ? "[" + r + "]" : (r+1)); - var C = (c == 0 ? "" : !$2 ? "[" + c + "]" : (c+1)); - return $1 + "R" + R + "C" + C; - }); - }; -})(); - -/* no defined name can collide with a valid cell address A1:XFD1048576 ... except LOG10! */ -function shift_formula_str(f, delta) { - return f.replace(crefregex, function($0, $1, $2, $3, $4, $5) { - return $1+($2=="$" ? $2+$3 : encode_col(decode_col($3)+delta.c))+($4=="$" ? $4+$5 : encode_row(decode_row($5) + delta.r)); - }); -} - -function shift_formula_xlsx(f, range, cell) { - var r = decode_range(range), s = r.s, c = decode_cell(cell); - var delta = {r:c.r - s.r, c:c.c - s.c}; - return shift_formula_str(f, delta); -} - -/* TODO: parse formula */ -function fuzzyfmla(f) { - if(f.length == 1) return false; - return true; -} - -function _xlfn(f) { - return f.replace(/_xlfn\./g,""); -} -function parseread1(blob) { blob.l+=1; return; } - -/* [MS-XLS] 2.5.51 */ -function parse_ColRelU(blob, length) { - var c = blob.read_shift(length == 1 ? 1 : 2); - return [c & 0x3FFF, (c >> 14) & 1, (c >> 15) & 1]; -} - -/* [MS-XLS] 2.5.198.105 ; [MS-XLSB] 2.5.97.89 */ -function parse_RgceArea(blob, length, opts) { - var w = 2; - if(opts) { - if(opts.biff >= 2 && opts.biff <= 5) return parse_RgceArea_BIFF2(blob, length, opts); - else if(opts.biff == 12) w = 4; - } - var r=blob.read_shift(w), R=blob.read_shift(w); - var c=parse_ColRelU(blob, 2); - var C=parse_ColRelU(blob, 2); - return { s:{r:r, c:c[0], cRel:c[1], rRel:c[2]}, e:{r:R, c:C[0], cRel:C[1], rRel:C[2]} }; -} -/* BIFF 2-5 encodes flags in the row field */ -function parse_RgceArea_BIFF2(blob) { - var r=parse_ColRelU(blob, 2), R=parse_ColRelU(blob, 2); - var c=blob.read_shift(1); - var C=blob.read_shift(1); - return { s:{r:r[0], c:c, cRel:r[1], rRel:r[2]}, e:{r:R[0], c:C, cRel:R[1], rRel:R[2]} }; -} - -/* [MS-XLS] 2.5.198.105 ; [MS-XLSB] 2.5.97.90 */ -function parse_RgceAreaRel(blob, length, opts) { - if(opts.biff < 8) return parse_RgceArea_BIFF2(blob, length, opts); - var r=blob.read_shift(opts.biff == 12 ? 4 : 2), R=blob.read_shift(opts.biff == 12 ? 4 : 2); - var c=parse_ColRelU(blob, 2); - var C=parse_ColRelU(blob, 2); - return { s:{r:r, c:c[0], cRel:c[1], rRel:c[2]}, e:{r:R, c:C[0], cRel:C[1], rRel:C[2]} }; -} - -/* [MS-XLS] 2.5.198.109 ; [MS-XLSB] 2.5.97.91 */ -function parse_RgceLoc(blob, length, opts) { - if(opts && opts.biff >= 2 && opts.biff <= 5) return parse_RgceLoc_BIFF2(blob, length, opts); - var r = blob.read_shift(opts && opts.biff == 12 ? 4 : 2); - var c = parse_ColRelU(blob, 2); - return {r:r, c:c[0], cRel:c[1], rRel:c[2]}; -} -function parse_RgceLoc_BIFF2(blob) { - var r = parse_ColRelU(blob, 2); - var c = blob.read_shift(1); - return {r:r[0], c:c, cRel:r[1], rRel:r[2]}; -} - -/* [MS-XLS] 2.5.198.107, 2.5.47 */ -function parse_RgceElfLoc(blob) { - var r = blob.read_shift(2); - var c = blob.read_shift(2); - return {r:r, c:c & 0xFF, fQuoted:!!(c & 0x4000), cRel:c>>15, rRel:c>>15 }; -} - -/* [MS-XLS] 2.5.198.111 ; [MS-XLSB] 2.5.97.92 TODO */ -function parse_RgceLocRel(blob, length, opts) { - var biff = opts && opts.biff ? opts.biff : 8; - if(biff >= 2 && biff <= 5) return parse_RgceLocRel_BIFF2(blob, length, opts); - var r = blob.read_shift(biff >= 12 ? 4 : 2); - var cl = blob.read_shift(2); - var cRel = (cl & 0x4000) >> 14, rRel = (cl & 0x8000) >> 15; - cl &= 0x3FFF; - if(rRel == 1) while(r > 0x7FFFF) r -= 0x100000; - if(cRel == 1) while(cl > 0x1FFF) cl = cl - 0x4000; - return {r:r,c:cl,cRel:cRel,rRel:rRel}; -} -function parse_RgceLocRel_BIFF2(blob) { - var rl = blob.read_shift(2); - var c = blob.read_shift(1); - var rRel = (rl & 0x8000) >> 15, cRel = (rl & 0x4000) >> 14; - rl &= 0x3FFF; - if(rRel == 1 && rl >= 0x2000) rl = rl - 0x4000; - if(cRel == 1 && c >= 0x80) c = c - 0x100; - return {r:rl,c:c,cRel:cRel,rRel:rRel}; -} - -/* [MS-XLS] 2.5.198.27 ; [MS-XLSB] 2.5.97.18 */ -function parse_PtgArea(blob, length, opts) { - var type = (blob[blob.l++] & 0x60) >> 5; - var area = parse_RgceArea(blob, opts.biff >= 2 && opts.biff <= 5 ? 6 : 8, opts); - return [type, area]; -} - -/* [MS-XLS] 2.5.198.28 ; [MS-XLSB] 2.5.97.19 */ -function parse_PtgArea3d(blob, length, opts) { - var type = (blob[blob.l++] & 0x60) >> 5; - var ixti = blob.read_shift(2, 'i'); - var w = 8; - if(opts) switch(opts.biff) { - case 5: blob.l += 12; w = 6; break; - case 12: w = 12; break; - } - var area = parse_RgceArea(blob, w, opts); - return [type, ixti, area]; -} - -/* [MS-XLS] 2.5.198.29 ; [MS-XLSB] 2.5.97.20 */ -function parse_PtgAreaErr(blob, length, opts) { - var type = (blob[blob.l++] & 0x60) >> 5; - blob.l += opts && (opts.biff > 8) ? 12 : (opts.biff < 8 ? 6 : 8); - return [type]; -} -/* [MS-XLS] 2.5.198.30 ; [MS-XLSB] 2.5.97.21 */ -function parse_PtgAreaErr3d(blob, length, opts) { - var type = (blob[blob.l++] & 0x60) >> 5; - var ixti = blob.read_shift(2); - var w = 8; - if(opts) switch(opts.biff) { - case 5: blob.l += 12; w = 6; break; - case 12: w = 12; break; - } - blob.l += w; - return [type, ixti]; -} - -/* [MS-XLS] 2.5.198.31 ; [MS-XLSB] 2.5.97.22 */ -function parse_PtgAreaN(blob, length, opts) { - var type = (blob[blob.l++] & 0x60) >> 5; - var area = parse_RgceAreaRel(blob, length - 1, opts); - return [type, area]; -} - -/* [MS-XLS] 2.5.198.32 ; [MS-XLSB] 2.5.97.23 */ -function parse_PtgArray(blob, length, opts) { - var type = (blob[blob.l++] & 0x60) >> 5; - blob.l += opts.biff == 2 ? 6 : opts.biff == 12 ? 14 : 7; - return [type]; -} - -/* [MS-XLS] 2.5.198.33 ; [MS-XLSB] 2.5.97.24 */ -function parse_PtgAttrBaxcel(blob) { - var bitSemi = blob[blob.l+1] & 0x01; /* 1 = volatile */ - var bitBaxcel = 1; - blob.l += 4; - return [bitSemi, bitBaxcel]; -} - -/* [MS-XLS] 2.5.198.34 ; [MS-XLSB] 2.5.97.25 */ -function parse_PtgAttrChoose(blob, length, opts) { - blob.l +=2; - var offset = blob.read_shift(opts && opts.biff == 2 ? 1 : 2); - var o = []; - /* offset is 1 less than the number of elements */ - for(var i = 0; i <= offset; ++i) o.push(blob.read_shift(opts && opts.biff == 2 ? 1 : 2)); - return o; -} - -/* [MS-XLS] 2.5.198.35 ; [MS-XLSB] 2.5.97.26 */ -function parse_PtgAttrGoto(blob, length, opts) { - var bitGoto = (blob[blob.l+1] & 0xFF) ? 1 : 0; - blob.l += 2; - return [bitGoto, blob.read_shift(opts && opts.biff == 2 ? 1 : 2)]; -} - -/* [MS-XLS] 2.5.198.36 ; [MS-XLSB] 2.5.97.27 */ -function parse_PtgAttrIf(blob, length, opts) { - var bitIf = (blob[blob.l+1] & 0xFF) ? 1 : 0; - blob.l += 2; - return [bitIf, blob.read_shift(opts && opts.biff == 2 ? 1 : 2)]; -} - -/* [MS-XLSB] 2.5.97.28 */ -function parse_PtgAttrIfError(blob) { - var bitIf = (blob[blob.l+1] & 0xFF) ? 1 : 0; - blob.l += 2; - return [bitIf, blob.read_shift(2)]; -} - -/* [MS-XLS] 2.5.198.37 ; [MS-XLSB] 2.5.97.29 */ -function parse_PtgAttrSemi(blob, length, opts) { - var bitSemi = (blob[blob.l+1] & 0xFF) ? 1 : 0; - blob.l += opts && opts.biff == 2 ? 3 : 4; - return [bitSemi]; -} - -/* [MS-XLS] 2.5.198.40 ; [MS-XLSB] 2.5.97.32 */ -function parse_PtgAttrSpaceType(blob) { - var type = blob.read_shift(1), cch = blob.read_shift(1); - return [type, cch]; -} - -/* [MS-XLS] 2.5.198.38 ; [MS-XLSB] 2.5.97.30 */ -function parse_PtgAttrSpace(blob) { - blob.read_shift(2); - return parse_PtgAttrSpaceType(blob, 2); -} - -/* [MS-XLS] 2.5.198.39 ; [MS-XLSB] 2.5.97.31 */ -function parse_PtgAttrSpaceSemi(blob) { - blob.read_shift(2); - return parse_PtgAttrSpaceType(blob, 2); -} - -/* [MS-XLS] 2.5.198.84 ; [MS-XLSB] 2.5.97.68 TODO */ -function parse_PtgRef(blob, length, opts) { - //var ptg = blob[blob.l] & 0x1F; - var type = (blob[blob.l] & 0x60)>>5; - blob.l += 1; - var loc = parse_RgceLoc(blob, 0, opts); - return [type, loc]; -} - -/* [MS-XLS] 2.5.198.88 ; [MS-XLSB] 2.5.97.72 TODO */ -function parse_PtgRefN(blob, length, opts) { - var type = (blob[blob.l] & 0x60)>>5; - blob.l += 1; - var loc = parse_RgceLocRel(blob, 0, opts); - return [type, loc]; -} - -/* [MS-XLS] 2.5.198.85 ; [MS-XLSB] 2.5.97.69 TODO */ -function parse_PtgRef3d(blob, length, opts) { - var type = (blob[blob.l] & 0x60)>>5; - blob.l += 1; - var ixti = blob.read_shift(2); // XtiIndex - if(opts && opts.biff == 5) blob.l += 12; - var loc = parse_RgceLoc(blob, 0, opts); // TODO: or RgceLocRel - return [type, ixti, loc]; -} - - -/* [MS-XLS] 2.5.198.62 ; [MS-XLSB] 2.5.97.45 TODO */ -function parse_PtgFunc(blob, length, opts) { - //var ptg = blob[blob.l] & 0x1F; - var type = (blob[blob.l] & 0x60)>>5; - blob.l += 1; - var iftab = blob.read_shift(opts && opts.biff <= 3 ? 1 : 2); - return [FtabArgc[iftab], Ftab[iftab], type]; -} -/* [MS-XLS] 2.5.198.63 ; [MS-XLSB] 2.5.97.46 TODO */ -function parse_PtgFuncVar(blob, length, opts) { - var type = blob[blob.l++]; - var cparams = blob.read_shift(1), tab = opts && opts.biff <= 3 ? [(type == 0x58 ? -1 : 0), blob.read_shift(1)]: parsetab(blob); - return [cparams, (tab[0] === 0 ? Ftab : Cetab)[tab[1]]]; -} - -function parsetab(blob) { - return [blob[blob.l+1]>>7, blob.read_shift(2) & 0x7FFF]; -} - -/* [MS-XLS] 2.5.198.41 ; [MS-XLSB] 2.5.97.33 */ -function parse_PtgAttrSum(blob, length, opts) { - blob.l += opts && opts.biff == 2 ? 3 : 4; return; -} - -/* [MS-XLS] 2.5.198.58 ; [MS-XLSB] 2.5.97.40 */ -function parse_PtgExp(blob, length, opts) { - blob.l++; - if(opts && opts.biff == 12) return [blob.read_shift(4, 'i'), 0]; - var row = blob.read_shift(2); - var col = blob.read_shift(opts && opts.biff == 2 ? 1 : 2); - return [row, col]; -} - -/* [MS-XLS] 2.5.198.57 ; [MS-XLSB] 2.5.97.39 */ -function parse_PtgErr(blob) { blob.l++; return BErr[blob.read_shift(1)]; } - -/* [MS-XLS] 2.5.198.66 ; [MS-XLSB] 2.5.97.49 */ -function parse_PtgInt(blob) { blob.l++; return blob.read_shift(2); } - -/* [MS-XLS] 2.5.198.42 ; [MS-XLSB] 2.5.97.34 */ -function parse_PtgBool(blob) { blob.l++; return blob.read_shift(1)!==0;} - -/* [MS-XLS] 2.5.198.79 ; [MS-XLSB] 2.5.97.63 */ -function parse_PtgNum(blob) { blob.l++; return parse_Xnum(blob, 8); } - -/* [MS-XLS] 2.5.198.89 ; [MS-XLSB] 2.5.97.74 */ -function parse_PtgStr(blob, length, opts) { blob.l++; return parse_ShortXLUnicodeString(blob, length-1, opts); } - -/* [MS-XLS] 2.5.192.112 + 2.5.192.11{3,4,5,6,7} */ -/* [MS-XLSB] 2.5.97.93 + 2.5.97.9{4,5,6,7} */ -function parse_SerAr(blob, biff) { - var val = [blob.read_shift(1)]; - if(biff == 12) switch(val[0]) { - case 0x02: val[0] = 0x04; break; /* SerBool */ - case 0x04: val[0] = 0x10; break; /* SerErr */ - case 0x00: val[0] = 0x01; break; /* SerNum */ - case 0x01: val[0] = 0x02; break; /* SerStr */ - } - switch(val[0]) { - case 0x04: /* SerBool -- boolean */ - val[1] = parsebool(blob, 1) ? 'TRUE' : 'FALSE'; - if(biff != 12) blob.l += 7; break; - case 0x25: /* appears to be an alias */ - case 0x10: /* SerErr -- error */ - val[1] = BErr[blob[blob.l]]; - blob.l += ((biff == 12) ? 4 : 8); break; - case 0x00: /* SerNil -- honestly, I'm not sure how to reproduce this */ - blob.l += 8; break; - case 0x01: /* SerNum -- Xnum */ - val[1] = parse_Xnum(blob, 8); break; - case 0x02: /* SerStr -- XLUnicodeString (<256 chars) */ - val[1] = parse_XLUnicodeString2(blob, 0, {biff:biff > 0 && biff < 8 ? 2 : biff}); break; - default: throw new Error("Bad SerAr: " + val[0]); /* Unreachable */ - } - return val; -} - -/* [MS-XLS] 2.5.198.61 ; [MS-XLSB] 2.5.97.44 */ -function parse_PtgExtraMem(blob, cce, opts) { - var count = blob.read_shift((opts.biff == 12) ? 4 : 2); - var out = []; - for(var i = 0; i != count; ++i) out.push(((opts.biff == 12) ? parse_UncheckedRfX : parse_Ref8U)(blob, 8)); - return out; -} - -/* [MS-XLS] 2.5.198.59 ; [MS-XLSB] 2.5.97.41 */ -function parse_PtgExtraArray(blob, length, opts) { - var rows = 0, cols = 0; - if(opts.biff == 12) { - rows = blob.read_shift(4); // DRw - cols = blob.read_shift(4); // DCol - } else { - cols = 1 + blob.read_shift(1); //DColByteU - rows = 1 + blob.read_shift(2); //DRw - } - if(opts.biff >= 2 && opts.biff < 8) { --rows; if(--cols == 0) cols = 0x100; } - // $FlowIgnore - for(var i = 0, o = []; i != rows && (o[i] = []); ++i) - for(var j = 0; j != cols; ++j) o[i][j] = parse_SerAr(blob, opts.biff); - return o; -} - -/* [MS-XLS] 2.5.198.76 ; [MS-XLSB] 2.5.97.60 */ -function parse_PtgName(blob, length, opts) { - var type = (blob.read_shift(1) >>> 5) & 0x03; - var w = (!opts || (opts.biff >= 8)) ? 4 : 2; - var nameindex = blob.read_shift(w); - switch(opts.biff) { - case 2: blob.l += 5; break; - case 3: case 4: blob.l += 8; break; - case 5: blob.l += 12; break; - } - return [type, 0, nameindex]; -} - -/* [MS-XLS] 2.5.198.77 ; [MS-XLSB] 2.5.97.61 */ -function parse_PtgNameX(blob, length, opts) { - if(opts.biff == 5) return parse_PtgNameX_BIFF5(blob, length, opts); - var type = (blob.read_shift(1) >>> 5) & 0x03; - var ixti = blob.read_shift(2); // XtiIndex - var nameindex = blob.read_shift(4); - return [type, ixti, nameindex]; -} -function parse_PtgNameX_BIFF5(blob) { - var type = (blob.read_shift(1) >>> 5) & 0x03; - var ixti = blob.read_shift(2, 'i'); // XtiIndex - blob.l += 8; - var nameindex = blob.read_shift(2); - blob.l += 12; - return [type, ixti, nameindex]; -} - -/* [MS-XLS] 2.5.198.70 ; [MS-XLSB] 2.5.97.54 */ -function parse_PtgMemArea(blob, length, opts) { - var type = (blob.read_shift(1) >>> 5) & 0x03; - blob.l += (opts && opts.biff == 2 ? 3 : 4); - var cce = blob.read_shift(opts && opts.biff == 2 ? 1 : 2); - return [type, cce]; -} - -/* [MS-XLS] 2.5.198.72 ; [MS-XLSB] 2.5.97.56 */ -function parse_PtgMemFunc(blob, length, opts) { - var type = (blob.read_shift(1) >>> 5) & 0x03; - var cce = blob.read_shift(opts && opts.biff == 2 ? 1 : 2); - return [type, cce]; -} - - -/* [MS-XLS] 2.5.198.86 ; [MS-XLSB] 2.5.97.69 */ -function parse_PtgRefErr(blob, length, opts) { - var type = (blob.read_shift(1) >>> 5) & 0x03; - blob.l += 4; - if(opts.biff < 8) blob.l--; - if(opts.biff == 12) blob.l += 2; - return [type]; -} - -/* [MS-XLS] 2.5.198.87 ; [MS-XLSB] 2.5.97.71 */ -function parse_PtgRefErr3d(blob, length, opts) { - var type = (blob[blob.l++] & 0x60) >> 5; - var ixti = blob.read_shift(2); - var w = 4; - if(opts) switch(opts.biff) { - case 5: w = 15; break; - case 12: w = 6; break; - } - blob.l += w; - return [type, ixti]; -} - -/* [MS-XLS] 2.5.198.71 ; [MS-XLSB] 2.5.97.55 */ -var parse_PtgMemErr = parsenoop; -/* [MS-XLS] 2.5.198.73 ; [MS-XLSB] 2.5.97.57 */ -var parse_PtgMemNoMem = parsenoop; -/* [MS-XLS] 2.5.198.92 */ -var parse_PtgTbl = parsenoop; - -function parse_PtgElfLoc(blob, length, opts) { - blob.l += 2; - return [parse_RgceElfLoc(blob, 4, opts)]; -} -function parse_PtgElfNoop(blob) { - blob.l += 6; - return []; -} -/* [MS-XLS] 2.5.198.46 */ -var parse_PtgElfCol = parse_PtgElfLoc; -/* [MS-XLS] 2.5.198.47 */ -var parse_PtgElfColS = parse_PtgElfNoop; -/* [MS-XLS] 2.5.198.48 */ -var parse_PtgElfColSV = parse_PtgElfNoop; -/* [MS-XLS] 2.5.198.49 */ -var parse_PtgElfColV = parse_PtgElfLoc; -/* [MS-XLS] 2.5.198.50 */ -function parse_PtgElfLel(blob) { - blob.l += 2; - return [parseuint16(blob), blob.read_shift(2) & 0x01]; -} -/* [MS-XLS] 2.5.198.51 */ -var parse_PtgElfRadical = parse_PtgElfLoc; -/* [MS-XLS] 2.5.198.52 */ -var parse_PtgElfRadicalLel = parse_PtgElfLel; -/* [MS-XLS] 2.5.198.53 */ -var parse_PtgElfRadicalS = parse_PtgElfNoop; -/* [MS-XLS] 2.5.198.54 */ -var parse_PtgElfRw = parse_PtgElfLoc; -/* [MS-XLS] 2.5.198.55 */ -var parse_PtgElfRwV = parse_PtgElfLoc; - -/* [MS-XLSB] 2.5.97.52 TODO */ -var PtgListRT = [ - "Data", - "All", - "Headers", - "??", - "?Data2", - "??", - "?DataHeaders", - "??", - "Totals", - "??", - "??", - "??", - "?DataTotals", - "??", - "??", - "??", - "?Current" -]; -function parse_PtgList(blob) { - blob.l += 2; - var ixti = blob.read_shift(2); - var flags = blob.read_shift(2); - var idx = blob.read_shift(4); - var c = blob.read_shift(2); - var C = blob.read_shift(2); - var rt = PtgListRT[(flags >> 2) & 0x1F]; - return {ixti: ixti, coltype:(flags&0x3), rt:rt, idx:idx, c:c, C:C}; -} -/* [MS-XLS] 2.5.198.91 ; [MS-XLSB] 2.5.97.76 */ -function parse_PtgSxName(blob) { - blob.l += 2; - return [blob.read_shift(4)]; -} - -/* [XLS] old spec */ -function parse_PtgSheet(blob, length, opts) { - blob.l += 5; - blob.l += 2; - blob.l += (opts.biff == 2 ? 1 : 4); - return ["PTGSHEET"]; -} -function parse_PtgEndSheet(blob, length, opts) { - blob.l += (opts.biff == 2 ? 4 : 5); - return ["PTGENDSHEET"]; -} -function parse_PtgMemAreaN(blob) { - var type = (blob.read_shift(1) >>> 5) & 0x03; - var cce = blob.read_shift(2); - return [type, cce]; -} -function parse_PtgMemNoMemN(blob) { - var type = (blob.read_shift(1) >>> 5) & 0x03; - var cce = blob.read_shift(2); - return [type, cce]; -} -function parse_PtgAttrNoop(blob) { - blob.l += 4; - return [0, 0]; -} - -/* [MS-XLS] 2.5.198.25 ; [MS-XLSB] 2.5.97.16 */ -var PtgTypes = { -0x01: { n:'PtgExp', f:parse_PtgExp }, -0x02: { n:'PtgTbl', f:parse_PtgTbl }, -0x03: { n:'PtgAdd', f:parseread1 }, -0x04: { n:'PtgSub', f:parseread1 }, -0x05: { n:'PtgMul', f:parseread1 }, -0x06: { n:'PtgDiv', f:parseread1 }, -0x07: { n:'PtgPower', f:parseread1 }, -0x08: { n:'PtgConcat', f:parseread1 }, -0x09: { n:'PtgLt', f:parseread1 }, -0x0A: { n:'PtgLe', f:parseread1 }, -0x0B: { n:'PtgEq', f:parseread1 }, -0x0C: { n:'PtgGe', f:parseread1 }, -0x0D: { n:'PtgGt', f:parseread1 }, -0x0E: { n:'PtgNe', f:parseread1 }, -0x0F: { n:'PtgIsect', f:parseread1 }, -0x10: { n:'PtgUnion', f:parseread1 }, -0x11: { n:'PtgRange', f:parseread1 }, -0x12: { n:'PtgUplus', f:parseread1 }, -0x13: { n:'PtgUminus', f:parseread1 }, -0x14: { n:'PtgPercent', f:parseread1 }, -0x15: { n:'PtgParen', f:parseread1 }, -0x16: { n:'PtgMissArg', f:parseread1 }, -0x17: { n:'PtgStr', f:parse_PtgStr }, -0x1A: { n:'PtgSheet', f:parse_PtgSheet }, -0x1B: { n:'PtgEndSheet', f:parse_PtgEndSheet }, -0x1C: { n:'PtgErr', f:parse_PtgErr }, -0x1D: { n:'PtgBool', f:parse_PtgBool }, -0x1E: { n:'PtgInt', f:parse_PtgInt }, -0x1F: { n:'PtgNum', f:parse_PtgNum }, -0x20: { n:'PtgArray', f:parse_PtgArray }, -0x21: { n:'PtgFunc', f:parse_PtgFunc }, -0x22: { n:'PtgFuncVar', f:parse_PtgFuncVar }, -0x23: { n:'PtgName', f:parse_PtgName }, -0x24: { n:'PtgRef', f:parse_PtgRef }, -0x25: { n:'PtgArea', f:parse_PtgArea }, -0x26: { n:'PtgMemArea', f:parse_PtgMemArea }, -0x27: { n:'PtgMemErr', f:parse_PtgMemErr }, -0x28: { n:'PtgMemNoMem', f:parse_PtgMemNoMem }, -0x29: { n:'PtgMemFunc', f:parse_PtgMemFunc }, -0x2A: { n:'PtgRefErr', f:parse_PtgRefErr }, -0x2B: { n:'PtgAreaErr', f:parse_PtgAreaErr }, -0x2C: { n:'PtgRefN', f:parse_PtgRefN }, -0x2D: { n:'PtgAreaN', f:parse_PtgAreaN }, -0x2E: { n:'PtgMemAreaN', f:parse_PtgMemAreaN }, -0x2F: { n:'PtgMemNoMemN', f:parse_PtgMemNoMemN }, -0x39: { n:'PtgNameX', f:parse_PtgNameX }, -0x3A: { n:'PtgRef3d', f:parse_PtgRef3d }, -0x3B: { n:'PtgArea3d', f:parse_PtgArea3d }, -0x3C: { n:'PtgRefErr3d', f:parse_PtgRefErr3d }, -0x3D: { n:'PtgAreaErr3d', f:parse_PtgAreaErr3d }, -0xFF: {} -}; -/* These are duplicated in the PtgTypes table */ -var PtgDupes = { -0x40: 0x20, 0x60: 0x20, -0x41: 0x21, 0x61: 0x21, -0x42: 0x22, 0x62: 0x22, -0x43: 0x23, 0x63: 0x23, -0x44: 0x24, 0x64: 0x24, -0x45: 0x25, 0x65: 0x25, -0x46: 0x26, 0x66: 0x26, -0x47: 0x27, 0x67: 0x27, -0x48: 0x28, 0x68: 0x28, -0x49: 0x29, 0x69: 0x29, -0x4A: 0x2A, 0x6A: 0x2A, -0x4B: 0x2B, 0x6B: 0x2B, -0x4C: 0x2C, 0x6C: 0x2C, -0x4D: 0x2D, 0x6D: 0x2D, -0x4E: 0x2E, 0x6E: 0x2E, -0x4F: 0x2F, 0x6F: 0x2F, -0x58: 0x22, 0x78: 0x22, -0x59: 0x39, 0x79: 0x39, -0x5A: 0x3A, 0x7A: 0x3A, -0x5B: 0x3B, 0x7B: 0x3B, -0x5C: 0x3C, 0x7C: 0x3C, -0x5D: 0x3D, 0x7D: 0x3D -}; -(function(){for(var y in PtgDupes) PtgTypes[y] = PtgTypes[PtgDupes[y]];})(); - -var Ptg18 = { -0x01: { n:'PtgElfLel', f:parse_PtgElfLel }, -0x02: { n:'PtgElfRw', f:parse_PtgElfRw }, -0x03: { n:'PtgElfCol', f:parse_PtgElfCol }, -0x06: { n:'PtgElfRwV', f:parse_PtgElfRwV }, -0x07: { n:'PtgElfColV', f:parse_PtgElfColV }, -0x0A: { n:'PtgElfRadical', f:parse_PtgElfRadical }, -0x0B: { n:'PtgElfRadicalS', f:parse_PtgElfRadicalS }, -0x0D: { n:'PtgElfColS', f:parse_PtgElfColS }, -0x0F: { n:'PtgElfColSV', f:parse_PtgElfColSV }, -0x10: { n:'PtgElfRadicalLel', f:parse_PtgElfRadicalLel }, -0x19: { n:'PtgList', f:parse_PtgList }, -0x1D: { n:'PtgSxName', f:parse_PtgSxName }, -0xFF: {} -}; -var Ptg19 = { -0x00: { n:'PtgAttrNoop', f:parse_PtgAttrNoop }, -0x01: { n:'PtgAttrSemi', f:parse_PtgAttrSemi }, -0x02: { n:'PtgAttrIf', f:parse_PtgAttrIf }, -0x04: { n:'PtgAttrChoose', f:parse_PtgAttrChoose }, -0x08: { n:'PtgAttrGoto', f:parse_PtgAttrGoto }, -0x10: { n:'PtgAttrSum', f:parse_PtgAttrSum }, -0x20: { n:'PtgAttrBaxcel', f:parse_PtgAttrBaxcel }, -0x40: { n:'PtgAttrSpace', f:parse_PtgAttrSpace }, -0x41: { n:'PtgAttrSpaceSemi', f:parse_PtgAttrSpaceSemi }, -0x80: { n:'PtgAttrIfError', f:parse_PtgAttrIfError }, -0xFF: {} -}; -Ptg19[0x21] = Ptg19[0x20]; - -/* [MS-XLS] 2.5.198.103 ; [MS-XLSB] 2.5.97.87 */ -function parse_RgbExtra(blob, length, rgce, opts) { - if(opts.biff < 8) return parsenoop(blob, length); - var target = blob.l + length; - var o = []; - for(var i = 0; i !== rgce.length; ++i) { - switch(rgce[i][0]) { - case 'PtgArray': /* PtgArray -> PtgExtraArray */ - rgce[i][1] = parse_PtgExtraArray(blob, 0, opts); - o.push(rgce[i][1]); - break; - case 'PtgMemArea': /* PtgMemArea -> PtgExtraMem */ - rgce[i][2] = parse_PtgExtraMem(blob, rgce[i][1], opts); - o.push(rgce[i][2]); - break; - case 'PtgExp': /* PtgExp -> PtgExtraCol */ - if(opts && opts.biff == 12) { - rgce[i][1][1] = blob.read_shift(4); - o.push(rgce[i][1]); - } break; - case 'PtgList': /* TODO: PtgList -> PtgExtraList */ - case 'PtgElfRadicalS': /* TODO: PtgElfRadicalS -> PtgExtraElf */ - case 'PtgElfColS': /* TODO: PtgElfColS -> PtgExtraElf */ - case 'PtgElfColSV': /* TODO: PtgElfColSV -> PtgExtraElf */ - throw "Unsupported " + rgce[i][0]; - default: break; - } - } - length = target - blob.l; - /* note: this is technically an error but Excel disregards */ - //if(target !== blob.l && blob.l !== target - length) throw new Error(target + " != " + blob.l); - if(length !== 0) o.push(parsenoop(blob, length)); - return o; -} - -/* [MS-XLS] 2.5.198.104 ; [MS-XLSB] 2.5.97.88 */ -function parse_Rgce(blob, length, opts) { - var target = blob.l + length; - var R, id, ptgs = []; - while(target != blob.l) { - length = target - blob.l; - id = blob[blob.l]; - R = PtgTypes[id]; - if(id === 0x18 || id === 0x19) R = (id === 0x18 ? Ptg18 : Ptg19)[blob[blob.l + 1]]; - if(!R || !R.f) { /*ptgs.push*/(parsenoop(blob, length)); } - else { ptgs.push([R.n, R.f(blob, length, opts)]); } - } - return ptgs; -} - -function stringify_array(f) { - var o = []; - for(var i = 0; i < f.length; ++i) { - var x = f[i], r = []; - for(var j = 0; j < x.length; ++j) { - var y = x[j]; - if(y) switch(y[0]) { - // TODO: handle embedded quotes - case 0x02: -r.push('"' + y[1].replace(/"/g,'""') + '"'); break; - default: r.push(y[1]); - } else r.push(""); - } - o.push(r.join(",")); - } - return o.join(";"); -} - -/* [MS-XLS] 2.2.2 ; [MS-XLSB] 2.2.2 TODO */ -var PtgBinOp = { - PtgAdd: "+", - PtgConcat: "&", - PtgDiv: "/", - PtgEq: "=", - PtgGe: ">=", - PtgGt: ">", - PtgLe: "<=", - PtgLt: "<", - PtgMul: "*", - PtgNe: "<>", - PtgPower: "^", - PtgSub: "-" -}; - -// List of invalid characters needs to be tested further -var quoteCharacters = new RegExp(/[^\w\u4E00-\u9FFF\u3040-\u30FF]/); -function formula_quote_sheet_name(sname, opts) { - if(!sname && !(opts && opts.biff <= 5 && opts.biff >= 2)) throw new Error("empty sheet name"); - if (quoteCharacters.test(sname)) return "'" + sname + "'"; - return sname; -} -function get_ixti_raw(supbooks, ixti, opts) { - if(!supbooks) return "SH33TJSERR0"; - if(opts.biff > 8 && (!supbooks.XTI || !supbooks.XTI[ixti])) return supbooks.SheetNames[ixti]; - if(!supbooks.XTI) return "SH33TJSERR6"; - var XTI = supbooks.XTI[ixti]; - if(opts.biff < 8) { - if(ixti > 10000) ixti-= 65536; - if(ixti < 0) ixti = -ixti; - return ixti == 0 ? "" : supbooks.XTI[ixti - 1]; - } - if(!XTI) return "SH33TJSERR1"; - var o = ""; - if(opts.biff > 8) switch(supbooks[XTI[0]][0]) { - case 0x0165: /* 'BrtSupSelf' */ - o = XTI[1] == -1 ? "#REF" : supbooks.SheetNames[XTI[1]]; - return XTI[1] == XTI[2] ? o : o + ":" + supbooks.SheetNames[XTI[2]]; - case 0x0166: /* 'BrtSupSame' */ - if(opts.SID != null) return supbooks.SheetNames[opts.SID]; - return "SH33TJSSAME" + supbooks[XTI[0]][0]; - case 0x0163: /* 'BrtSupBookSrc' */ - /* falls through */ - default: return "SH33TJSSRC" + supbooks[XTI[0]][0]; - } - switch(supbooks[XTI[0]][0][0]) { - case 0x0401: - o = XTI[1] == -1 ? "#REF" : (supbooks.SheetNames[XTI[1]] || "SH33TJSERR3"); - return XTI[1] == XTI[2] ? o : o + ":" + supbooks.SheetNames[XTI[2]]; - case 0x3A01: return supbooks[XTI[0]].slice(1).map(function(name) { return name.Name; }).join(";;"); //return "SH33TJSERR8"; - default: - if(!supbooks[XTI[0]][0][3]) return "SH33TJSERR2"; - o = XTI[1] == -1 ? "#REF" : (supbooks[XTI[0]][0][3][XTI[1]] || "SH33TJSERR4"); - return XTI[1] == XTI[2] ? o : o + ":" + supbooks[XTI[0]][0][3][XTI[2]]; - } -} -function get_ixti(supbooks, ixti, opts) { - var ixtiraw = get_ixti_raw(supbooks, ixti, opts); - return ixtiraw == "#REF" ? ixtiraw : formula_quote_sheet_name(ixtiraw, opts); -} -function stringify_formula(formula/*Array*/, range, cell, supbooks, opts) { - var biff = (opts && opts.biff) || 8; - var _range = /*range != null ? range :*/ {s:{c:0, r:0},e:{c:0, r:0}}; - var stack = [], e1, e2, c, ixti=0, nameidx=0, r, sname=""; - if(!formula[0] || !formula[0][0]) return ""; - var last_sp = -1, sp = ""; - for(var ff = 0, fflen = formula[0].length; ff < fflen; ++ff) { - var f = formula[0][ff]; - switch(f[0]) { - case 'PtgUminus': /* [MS-XLS] 2.5.198.93 */ - stack.push("-" + stack.pop()); break; - case 'PtgUplus': /* [MS-XLS] 2.5.198.95 */ - stack.push("+" + stack.pop()); break; - case 'PtgPercent': /* [MS-XLS] 2.5.198.81 */ - stack.push(stack.pop() + "%"); break; - - case 'PtgAdd': /* [MS-XLS] 2.5.198.26 */ - case 'PtgConcat': /* [MS-XLS] 2.5.198.43 */ - case 'PtgDiv': /* [MS-XLS] 2.5.198.45 */ - case 'PtgEq': /* [MS-XLS] 2.5.198.56 */ - case 'PtgGe': /* [MS-XLS] 2.5.198.64 */ - case 'PtgGt': /* [MS-XLS] 2.5.198.65 */ - case 'PtgLe': /* [MS-XLS] 2.5.198.68 */ - case 'PtgLt': /* [MS-XLS] 2.5.198.69 */ - case 'PtgMul': /* [MS-XLS] 2.5.198.75 */ - case 'PtgNe': /* [MS-XLS] 2.5.198.78 */ - case 'PtgPower': /* [MS-XLS] 2.5.198.82 */ - case 'PtgSub': /* [MS-XLS] 2.5.198.90 */ - e1 = stack.pop(); e2 = stack.pop(); - if(last_sp >= 0) { - switch(formula[0][last_sp][1][0]) { - case 0: - // $FlowIgnore - sp = fill(" ", formula[0][last_sp][1][1]); break; - case 1: - // $FlowIgnore - sp = fill("\r", formula[0][last_sp][1][1]); break; - default: - sp = ""; - // $FlowIgnore - if(opts.WTF) throw new Error("Unexpected PtgAttrSpaceType " + formula[0][last_sp][1][0]); - } - e2 = e2 + sp; - last_sp = -1; - } - stack.push(e2+PtgBinOp[f[0]]+e1); - break; - - case 'PtgIsect': /* [MS-XLS] 2.5.198.67 */ - e1 = stack.pop(); e2 = stack.pop(); - stack.push(e2+" "+e1); - break; - case 'PtgUnion': /* [MS-XLS] 2.5.198.94 */ - e1 = stack.pop(); e2 = stack.pop(); - stack.push(e2+","+e1); - break; - case 'PtgRange': /* [MS-XLS] 2.5.198.83 */ - e1 = stack.pop(); e2 = stack.pop(); - stack.push(e2+":"+e1); - break; - - case 'PtgAttrChoose': /* [MS-XLS] 2.5.198.34 */ - break; - case 'PtgAttrGoto': /* [MS-XLS] 2.5.198.35 */ - break; - case 'PtgAttrIf': /* [MS-XLS] 2.5.198.36 */ - break; - case 'PtgAttrIfError': /* [MS-XLSB] 2.5.97.28 */ - break; - - - case 'PtgRef': /* [MS-XLS] 2.5.198.84 */ -c = shift_cell_xls((f[1][1]), _range, opts); - stack.push(encode_cell_xls(c, biff)); - break; - case 'PtgRefN': /* [MS-XLS] 2.5.198.88 */ -c = cell ? shift_cell_xls((f[1][1]), cell, opts) : (f[1][1]); - stack.push(encode_cell_xls(c, biff)); - break; - case 'PtgRef3d': /* [MS-XLS] 2.5.198.85 */ -ixti = f[1][1]; c = shift_cell_xls((f[1][2]), _range, opts); - sname = get_ixti(supbooks, ixti, opts); - var w = sname; /* IE9 fails on defined names */ // eslint-disable-line no-unused-vars - stack.push(sname + "!" + encode_cell_xls(c, biff)); - break; - - case 'PtgFunc': /* [MS-XLS] 2.5.198.62 */ - case 'PtgFuncVar': /* [MS-XLS] 2.5.198.63 */ - /* f[1] = [argc, func, type] */ - var argc = (f[1][0]), func = (f[1][1]); - if(!argc) argc = 0; - argc &= 0x7F; - var args = argc == 0 ? [] : stack.slice(-argc); - stack.length -= argc; - if(func === 'User') func = args.shift(); - stack.push(func + "(" + args.join(",") + ")"); - break; - - case 'PtgBool': /* [MS-XLS] 2.5.198.42 */ - stack.push(f[1] ? "TRUE" : "FALSE"); break; - case 'PtgInt': /* [MS-XLS] 2.5.198.66 */ - stack.push(f[1]); break; - case 'PtgNum': /* [MS-XLS] 2.5.198.79 TODO: precision? */ - stack.push(String(f[1])); break; - case 'PtgStr': /* [MS-XLS] 2.5.198.89 */ - // $FlowIgnore - stack.push('"' + f[1].replace(/"/g, '""') + '"'); break; - case 'PtgErr': /* [MS-XLS] 2.5.198.57 */ - stack.push(f[1]); break; - case 'PtgAreaN': /* [MS-XLS] 2.5.198.31 TODO */ -r = shift_range_xls(f[1][1], cell ? {s:cell} : _range, opts); - stack.push(encode_range_xls((r), opts)); - break; - case 'PtgArea': /* [MS-XLS] 2.5.198.27 TODO: fixed points */ -r = shift_range_xls(f[1][1], _range, opts); - stack.push(encode_range_xls((r), opts)); - break; - case 'PtgArea3d': /* [MS-XLS] 2.5.198.28 TODO */ -ixti = f[1][1]; r = f[1][2]; - sname = get_ixti(supbooks, ixti, opts); - stack.push(sname + "!" + encode_range_xls((r), opts)); - break; - case 'PtgAttrSum': /* [MS-XLS] 2.5.198.41 */ - stack.push("SUM(" + stack.pop() + ")"); - break; - - case 'PtgAttrBaxcel': /* [MS-XLS] 2.5.198.33 */ - case 'PtgAttrSemi': /* [MS-XLS] 2.5.198.37 */ - break; - - case 'PtgName': /* [MS-XLS] 2.5.198.76 ; [MS-XLSB] 2.5.97.60 TODO: revisions */ - /* f[1] = type, 0, nameindex */ - nameidx = (f[1][2]); - var lbl = (supbooks.names||[])[nameidx-1] || (supbooks[0]||[])[nameidx]; - var name = lbl ? lbl.Name : "SH33TJSNAME" + String(nameidx); - /* [MS-XLSB] 2.5.97.10 Ftab -- last verified 20220204 */ - if(name && name.slice(0,6) == "_xlfn.") name = name.slice(6); - stack.push(name); - break; - - case 'PtgNameX': /* [MS-XLS] 2.5.198.77 ; [MS-XLSB] 2.5.97.61 TODO: revisions */ - /* f[1] = type, ixti, nameindex */ - var bookidx = (f[1][1]); nameidx = (f[1][2]); var externbook; - /* TODO: Properly handle missing values -- this should be using get_ixti_raw primarily */ - if(opts.biff <= 5) { - if(bookidx < 0) bookidx = -bookidx; - if(supbooks[bookidx]) externbook = supbooks[bookidx][nameidx]; - } else { - var o = ""; - if(((supbooks[bookidx]||[])[0]||[])[0] == 0x3A01){/* empty */} - else if(((supbooks[bookidx]||[])[0]||[])[0] == 0x0401){ - if(supbooks[bookidx][nameidx] && supbooks[bookidx][nameidx].itab > 0) { - o = supbooks.SheetNames[supbooks[bookidx][nameidx].itab-1] + "!"; - } - } - else o = supbooks.SheetNames[nameidx-1]+ "!"; - if(supbooks[bookidx] && supbooks[bookidx][nameidx]) o += supbooks[bookidx][nameidx].Name; - else if(supbooks[0] && supbooks[0][nameidx]) o += supbooks[0][nameidx].Name; - else { - var ixtidata = (get_ixti_raw(supbooks, bookidx, opts)||"").split(";;"); - if(ixtidata[nameidx - 1]) o = ixtidata[nameidx - 1]; // TODO: confirm this is correct - else o += "SH33TJSERRX"; - } - stack.push(o); - break; - } - if(!externbook) externbook = {Name: "SH33TJSERRY"}; - stack.push(externbook.Name); - break; - - case 'PtgParen': /* [MS-XLS] 2.5.198.80 */ - var lp = '(', rp = ')'; - if(last_sp >= 0) { - sp = ""; - switch(formula[0][last_sp][1][0]) { - // $FlowIgnore - case 2: lp = fill(" ", formula[0][last_sp][1][1]) + lp; break; - // $FlowIgnore - case 3: lp = fill("\r", formula[0][last_sp][1][1]) + lp; break; - // $FlowIgnore - case 4: rp = fill(" ", formula[0][last_sp][1][1]) + rp; break; - // $FlowIgnore - case 5: rp = fill("\r", formula[0][last_sp][1][1]) + rp; break; - default: - // $FlowIgnore - if(opts.WTF) throw new Error("Unexpected PtgAttrSpaceType " + formula[0][last_sp][1][0]); - } - last_sp = -1; - } - stack.push(lp + stack.pop() + rp); break; - - case 'PtgRefErr': /* [MS-XLS] 2.5.198.86 */ - stack.push('#REF!'); break; - - case 'PtgRefErr3d': /* [MS-XLS] 2.5.198.87 */ - stack.push('#REF!'); break; - - case 'PtgExp': /* [MS-XLS] 2.5.198.58 TODO */ - c = {c:(f[1][1]),r:(f[1][0])}; - var q = ({c: cell.c, r:cell.r}); - if(supbooks.sharedf[encode_cell(c)]) { - var parsedf = (supbooks.sharedf[encode_cell(c)]); - stack.push(stringify_formula(parsedf, _range, q, supbooks, opts)); - } else { - var fnd = false; - for(e1=0;e1!=supbooks.arrayf.length; ++e1) { - /* TODO: should be something like range_has */ - e2 = supbooks.arrayf[e1]; - if(c.c < e2[0].s.c || c.c > e2[0].e.c) continue; - if(c.r < e2[0].s.r || c.r > e2[0].e.r) continue; - stack.push(stringify_formula(e2[1], _range, q, supbooks, opts)); - fnd = true; - break; - } - if(!fnd) stack.push(f[1]); - } - break; - - case 'PtgArray': /* [MS-XLS] 2.5.198.32 TODO */ - stack.push("{" + stringify_array(f[1]) + "}"); - break; - - case 'PtgMemArea': /* [MS-XLS] 2.5.198.70 TODO: confirm this is a non-display */ - //stack.push("(" + f[2].map(encode_range).join(",") + ")"); - break; - - case 'PtgAttrSpace': /* [MS-XLS] 2.5.198.38 */ - case 'PtgAttrSpaceSemi': /* [MS-XLS] 2.5.198.39 */ - last_sp = ff; - break; - - case 'PtgTbl': /* [MS-XLS] 2.5.198.92 TODO */ - break; - - case 'PtgMemErr': /* [MS-XLS] 2.5.198.71 */ - break; - - case 'PtgMissArg': /* [MS-XLS] 2.5.198.74 */ - stack.push(""); - break; - - case 'PtgAreaErr': /* [MS-XLS] 2.5.198.29 */ - stack.push("#REF!"); break; - - case 'PtgAreaErr3d': /* [MS-XLS] 2.5.198.30 */ - stack.push("#REF!"); break; - - case 'PtgList': /* [MS-XLSB] 2.5.97.52 */ - // $FlowIgnore - stack.push("Table" + f[1].idx + "[#" + f[1].rt + "]"); - break; - - case 'PtgMemAreaN': - case 'PtgMemNoMemN': - case 'PtgAttrNoop': - case 'PtgSheet': - case 'PtgEndSheet': - break; - - case 'PtgMemFunc': /* [MS-XLS] 2.5.198.72 TODO */ - break; - case 'PtgMemNoMem': /* [MS-XLS] 2.5.198.73 TODO */ - break; - - case 'PtgElfCol': /* [MS-XLS] 2.5.198.46 */ - case 'PtgElfColS': /* [MS-XLS] 2.5.198.47 */ - case 'PtgElfColSV': /* [MS-XLS] 2.5.198.48 */ - case 'PtgElfColV': /* [MS-XLS] 2.5.198.49 */ - case 'PtgElfLel': /* [MS-XLS] 2.5.198.50 */ - case 'PtgElfRadical': /* [MS-XLS] 2.5.198.51 */ - case 'PtgElfRadicalLel': /* [MS-XLS] 2.5.198.52 */ - case 'PtgElfRadicalS': /* [MS-XLS] 2.5.198.53 */ - case 'PtgElfRw': /* [MS-XLS] 2.5.198.54 */ - case 'PtgElfRwV': /* [MS-XLS] 2.5.198.55 */ - throw new Error("Unsupported ELFs"); - - case 'PtgSxName': /* [MS-XLS] 2.5.198.91 TODO -- find a test case */ - throw new Error('Unrecognized Formula Token: ' + String(f)); - default: throw new Error('Unrecognized Formula Token: ' + String(f)); - } - var PtgNonDisp = ['PtgAttrSpace', 'PtgAttrSpaceSemi', 'PtgAttrGoto']; - if(opts.biff != 3) if(last_sp >= 0 && PtgNonDisp.indexOf(formula[0][ff][0]) == -1) { - f = formula[0][last_sp]; - var _left = true; - switch(f[1][0]) { - /* note: some bad XLSB files omit the PtgParen */ - case 4: _left = false; - /* falls through */ - case 0: - // $FlowIgnore - sp = fill(" ", f[1][1]); break; - case 5: _left = false; - /* falls through */ - case 1: - // $FlowIgnore - sp = fill("\r", f[1][1]); break; - default: - sp = ""; - // $FlowIgnore - if(opts.WTF) throw new Error("Unexpected PtgAttrSpaceType " + f[1][0]); - } - stack.push((_left ? sp : "") + stack.pop() + (_left ? "" : sp)); - last_sp = -1; - } - } - if(stack.length > 1 && opts.WTF) throw new Error("bad formula stack"); - return stack[0]; -} - -/* [MS-XLS] 2.5.198.1 TODO */ -function parse_ArrayParsedFormula(blob, length, opts) { - var target = blob.l + length, len = opts.biff == 2 ? 1 : 2; - var rgcb, cce = blob.read_shift(len); // length of rgce - if(cce == 0xFFFF) return [[],parsenoop(blob, length-2)]; - var rgce = parse_Rgce(blob, cce, opts); - if(length !== cce + len) rgcb = parse_RgbExtra(blob, length - cce - len, rgce, opts); - blob.l = target; - return [rgce, rgcb]; -} - -/* [MS-XLS] 2.5.198.3 TODO */ -function parse_XLSCellParsedFormula(blob, length, opts) { - var target = blob.l + length, len = opts.biff == 2 ? 1 : 2; - var rgcb, cce = blob.read_shift(len); // length of rgce - if(cce == 0xFFFF) return [[],parsenoop(blob, length-2)]; - var rgce = parse_Rgce(blob, cce, opts); - if(length !== cce + len) rgcb = parse_RgbExtra(blob, length - cce - len, rgce, opts); - blob.l = target; - return [rgce, rgcb]; -} - -/* [MS-XLS] 2.5.198.21 */ -function parse_NameParsedFormula(blob, length, opts, cce) { - var target = blob.l + length; - var rgce = parse_Rgce(blob, cce, opts); - var rgcb; - if(target !== blob.l) rgcb = parse_RgbExtra(blob, target - blob.l, rgce, opts); - return [rgce, rgcb]; -} - -/* [MS-XLS] 2.5.198.118 TODO */ -function parse_SharedParsedFormula(blob, length, opts) { - var target = blob.l + length; - var rgcb, cce = blob.read_shift(2); // length of rgce - var rgce = parse_Rgce(blob, cce, opts); - if(cce == 0xFFFF) return [[],parsenoop(blob, length-2)]; - if(length !== cce + 2) rgcb = parse_RgbExtra(blob, target - cce - 2, rgce, opts); - return [rgce, rgcb]; -} - -/* [MS-XLS] 2.5.133 TODO: how to emit empty strings? */ -function parse_FormulaValue(blob) { - var b; - if(__readUInt16LE(blob,blob.l + 6) !== 0xFFFF) return [parse_Xnum(blob),'n']; - switch(blob[blob.l]) { - case 0x00: blob.l += 8; return ["String", 's']; - case 0x01: b = blob[blob.l+2] === 0x1; blob.l += 8; return [b,'b']; - case 0x02: b = blob[blob.l+2]; blob.l += 8; return [b,'e']; - case 0x03: blob.l += 8; return ["",'s']; - } - return []; -} -function write_FormulaValue(value) { - if(value == null) { - // Blank String Value - var o = new_buf(8); - o.write_shift(1, 0x03); - o.write_shift(1, 0); - o.write_shift(2, 0); - o.write_shift(2, 0); - o.write_shift(2, 0xFFFF); - return o; - } else if(typeof value == "number") return write_Xnum(value); - return write_Xnum(0); -} - -/* [MS-XLS] 2.4.127 TODO */ -function parse_Formula(blob, length, opts) { - var end = blob.l + length; - var cell = parse_XLSCell(blob, 6); - if(opts.biff == 2) ++blob.l; - var val = parse_FormulaValue(blob,8); - var flags = blob.read_shift(1); - if(opts.biff != 2) { - blob.read_shift(1); - if(opts.biff >= 5) { - /*var chn = */blob.read_shift(4); - } - } - var cbf = parse_XLSCellParsedFormula(blob, end - blob.l, opts); - return {cell:cell, val:val[0], formula:cbf, shared: (flags >> 3) & 1, tt:val[1]}; -} -function write_Formula(cell, R, C, opts, os) { - // Cell - var o1 = write_XLSCell(R, C, os); - - // FormulaValue - var o2 = write_FormulaValue(cell.v); - - // flags + cache - var o3 = new_buf(6); - var flags = 0x01 | 0x20; - o3.write_shift(2, flags); - o3.write_shift(4, 0); - - // CellParsedFormula - var bf = new_buf(cell.bf.length); - for(var i = 0; i < cell.bf.length; ++i) bf[i] = cell.bf[i]; - - var out = bconcat([o1, o2, o3, bf]); - return out; -} - - -/* XLSB Parsed Formula records have the same shape */ -function parse_XLSBParsedFormula(data, length, opts) { - var cce = data.read_shift(4); - var rgce = parse_Rgce(data, cce, opts); - var cb = data.read_shift(4); - var rgcb = cb > 0 ? parse_RgbExtra(data, cb, rgce, opts) : null; - return [rgce, rgcb]; -} - -/* [MS-XLSB] 2.5.97.1 ArrayParsedFormula */ -var parse_XLSBArrayParsedFormula = parse_XLSBParsedFormula; -/* [MS-XLSB] 2.5.97.4 CellParsedFormula */ -var parse_XLSBCellParsedFormula = parse_XLSBParsedFormula; -/* [MS-XLSB] 2.5.97.8 DVParsedFormula */ -//var parse_XLSBDVParsedFormula = parse_XLSBParsedFormula; -/* [MS-XLSB] 2.5.97.9 FRTParsedFormula */ -//var parse_XLSBFRTParsedFormula = parse_XLSBParsedFormula2; -/* [MS-XLSB] 2.5.97.12 NameParsedFormula */ -var parse_XLSBNameParsedFormula = parse_XLSBParsedFormula; -/* [MS-XLSB] 2.5.97.98 SharedParsedFormula */ -var parse_XLSBSharedParsedFormula = parse_XLSBParsedFormula; -var Cetab = { - 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" -}; -var Ftab = { - 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" -}; -var FtabArgc = { - 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 -}; -/* Part 3 TODO: actually parse formulae */ -function ods_to_csf_formula(f) { - if(f.slice(0,3) == "of:") f = f.slice(3); - /* 5.2 Basic Expressions */ - if(f.charCodeAt(0) == 61) { - f = f.slice(1); - if(f.charCodeAt(0) == 61) f = f.slice(1); - } - f = f.replace(/COM\.MICROSOFT\./g, ""); - /* Part 3 Section 5.8 References */ - f = f.replace(/\[((?:\.[A-Z]+[0-9]+)(?::\.[A-Z]+[0-9]+)?)\]/g, function($$, $1) { return $1.replace(/\./g,""); }); - /* TODO: something other than this */ - f = f.replace(/\[.(#[A-Z]*[?!])\]/g, "$1"); - return f.replace(/[;~]/g,",").replace(/\|/g,";"); -} - -function csf_to_ods_formula(f) { - var o = "of:=" + f.replace(crefregex, "$1[.$2$3$4$5]").replace(/\]:\[/g,":"); - /* TODO: something other than this */ - return o.replace(/;/g, "|").replace(/,/g,";"); -} - -function ods_to_csf_3D(r) { - var a = r.split(":"); - var s = a[0].split(".")[0]; - return [s, a[0].split(".")[1] + (a.length > 1 ? (":" + (a[1].split(".")[1] || a[1].split(".")[0])) : "")]; -} - -function csf_to_ods_3D(r) { - return r.replace(/\./,"!"); -} - -var strs = {}; // shared strings -var _ssfopts = {}; // spreadsheet formatting options - -RELS.WS = [ - "http://schemas.openxmlformats.org/officeDocument/2006/relationships/worksheet", - "http://purl.oclc.org/ooxml/officeDocument/relationships/worksheet" -]; - -/*global Map */ -var browser_has_Map = typeof Map !== 'undefined'; - -function get_sst_id(sst, str, rev) { - var i = 0, len = sst.length; - if(rev) { - if(browser_has_Map ? rev.has(str) : Object.prototype.hasOwnProperty.call(rev, str)) { - var revarr = browser_has_Map ? rev.get(str) : rev[str]; - for(; i < revarr.length; ++i) { - if(sst[revarr[i]].t === str) { sst.Count ++; return revarr[i]; } - } - } - } else for(; i < len; ++i) { - if(sst[i].t === str) { sst.Count ++; return i; } - } - sst[len] = ({t:str}); sst.Count ++; sst.Unique ++; - if(rev) { - if(browser_has_Map) { - if(!rev.has(str)) rev.set(str, []); - rev.get(str).push(len); - } else { - if(!Object.prototype.hasOwnProperty.call(rev, str)) rev[str] = []; - rev[str].push(len); - } - } - return len; -} - -function col_obj_w(C, col) { - var p = ({min:C+1,max:C+1}); - /* wch (chars), wpx (pixels) */ - var wch = -1; - if(col.MDW) MDW = col.MDW; - if(col.width != null) p.customWidth = 1; - else if(col.wpx != null) wch = px2char(col.wpx); - else if(col.wch != null) wch = col.wch; - if(wch > -1) { p.width = char2width(wch); p.customWidth = 1; } - else if(col.width != null) p.width = col.width; - if(col.hidden) p.hidden = true; - if(col.level != null) { p.outlineLevel = p.level = col.level; } - return p; -} - -function default_margins(margins, mode) { - if(!margins) return; - var defs = [0.7, 0.7, 0.75, 0.75, 0.3, 0.3]; - if(mode == 'xlml') defs = [1, 1, 1, 1, 0.5, 0.5]; - if(margins.left == null) margins.left = defs[0]; - if(margins.right == null) margins.right = defs[1]; - if(margins.top == null) margins.top = defs[2]; - if(margins.bottom == null) margins.bottom = defs[3]; - if(margins.header == null) margins.header = defs[4]; - if(margins.footer == null) margins.footer = defs[5]; -} - -function get_cell_style(styles, cell, opts) { - var z = opts.revssf[cell.z != null ? cell.z : "General"]; - var i = 0x3c, len = styles.length; - if(z == null && opts.ssf) { - for(; i < 0x188; ++i) if(opts.ssf[i] == null) { - SSF.load(cell.z, i); - // $FlowIgnore - opts.ssf[i] = cell.z; - opts.revssf[cell.z] = z = i; - break; - } - } - for(i = 0; i != len; ++i) if(styles[i].numFmtId === z) return i; - styles[len] = { - numFmtId:z, - fontId:0, - fillId:0, - borderId:0, - xfId:0, - applyNumberFormat:1 - }; - return len; -} - -function safe_format(p, fmtid, fillid, opts, themes, styles) { - try { - if(opts.cellNF) p.z = SSF._table[fmtid]; - } catch(e) { if(opts.WTF) throw e; } - if(p.t === 'z' && !opts.cellStyles) return; - if(p.t === 'd' && typeof p.v === 'string') p.v = parseDate(p.v); - if((!opts || opts.cellText !== false) && p.t !== 'z') try { - if(SSF._table[fmtid] == null) SSF.load(SSFImplicit[fmtid] || "General", fmtid); - if(p.t === 'e') p.w = p.w || BErr[p.v]; - else if(fmtid === 0) { - if(p.t === 'n') { - if((p.v|0) === p.v) p.w = SSF._general_int(p.v); - else p.w = SSF._general_num(p.v); - } - else if(p.t === 'd') { - var dd = datenum(p.v); - if((dd|0) === dd) p.w = SSF._general_int(dd); - else p.w = SSF._general_num(dd); - } - else if(p.v === undefined) return ""; - else p.w = SSF._general(p.v,_ssfopts); - } - else if(p.t === 'd') p.w = SSF.format(fmtid,datenum(p.v),_ssfopts); - else p.w = SSF.format(fmtid,p.v,_ssfopts); - } catch(e) { if(opts.WTF) throw e; } - if(!opts.cellStyles) return; - if(fillid != null) try { - p.s = styles.Fills[fillid]; - if (p.s.fgColor && p.s.fgColor.theme && !p.s.fgColor.rgb) { - p.s.fgColor.rgb = rgb_tint(themes.themeElements.clrScheme[p.s.fgColor.theme].rgb, p.s.fgColor.tint || 0); - if(opts.WTF) p.s.fgColor.raw_rgb = themes.themeElements.clrScheme[p.s.fgColor.theme].rgb; - } - if (p.s.bgColor && p.s.bgColor.theme) { - p.s.bgColor.rgb = rgb_tint(themes.themeElements.clrScheme[p.s.bgColor.theme].rgb, p.s.bgColor.tint || 0); - if(opts.WTF) p.s.bgColor.raw_rgb = themes.themeElements.clrScheme[p.s.bgColor.theme].rgb; - } - } catch(e) { if(opts.WTF && styles.Fills) throw e; } -} - -function check_ws(ws, sname, i) { - if(ws && ws['!ref']) { - var range = safe_decode_range(ws['!ref']); - if(range.e.c < range.s.c || range.e.r < range.s.r) throw new Error("Bad range (" + i + "): " + ws['!ref']); - } -} -function parse_ws_xml_dim(ws, s) { - var d = safe_decode_range(s); - if(d.s.r<=d.e.r && d.s.c<=d.e.c && d.s.r>=0 && d.s.c>=0) ws["!ref"] = encode_range(d); -} -var mergecregex = /<(?:\w:)?mergeCell ref="[A-Z0-9:]+"\s*[\/]?>/g; -var sheetdataregex = /<(?:\w+:)?sheetData[^>]*>([\s\S]*)<\/(?:\w+:)?sheetData>/; -var hlinkregex = /<(?:\w:)?hyperlink [^>]*>/mg; -var dimregex = /"(\w*:\w*)"/; -var colregex = /<(?:\w:)?col\b[^>]*[\/]?>/g; -var afregex = /<(?:\w:)?autoFilter[^>]*([\/]|>([\s\S]*)<\/(?:\w:)?autoFilter)>/g; -var marginregex= /<(?:\w:)?pageMargins[^>]*\/>/g; -var sheetprregex = /<(?:\w:)?sheetPr\b(?:[^>a-z][^>]*)?\/>/; -var sheetprregex2= /<(?:\w:)?sheetPr[^>]*(?:[\/]|>([\s\S]*)<\/(?:\w:)?sheetPr)>/; -var svsregex = /<(?:\w:)?sheetViews[^>]*(?:[\/]|>([\s\S]*)<\/(?:\w:)?sheetViews)>/; - -/* 18.3 Worksheets */ -function parse_ws_xml(data, opts, idx, rels, wb, themes, styles) { - if(!data) return data; - if(!rels) rels = {'!id':{}}; - if(DENSE != null && opts.dense == null) opts.dense = DENSE; - - /* 18.3.1.99 worksheet CT_Worksheet */ - var s = opts.dense ? ([]) : ({}); - var refguess = ({s: {r:2000000, c:2000000}, e: {r:0, c:0} }); - - var data1 = "", data2 = ""; - var mtch = data.match(sheetdataregex); - if(mtch) { - data1 = data.slice(0, mtch.index); - data2 = data.slice(mtch.index + mtch[0].length); - } else data1 = data2 = data; - - /* 18.3.1.82 sheetPr CT_SheetPr */ - var sheetPr = data1.match(sheetprregex); - if(sheetPr) parse_ws_xml_sheetpr(sheetPr[0], s, wb, idx); - else if((sheetPr = data1.match(sheetprregex2))) parse_ws_xml_sheetpr2(sheetPr[0], sheetPr[1]||"", s, wb, idx, styles, themes); - - /* 18.3.1.35 dimension CT_SheetDimension */ - var ridx = (data1.match(/<(?:\w*:)?dimension/)||{index:-1}).index; - if(ridx > 0) { - var ref = data1.slice(ridx,ridx+50).match(dimregex); - if(ref) parse_ws_xml_dim(s, ref[1]); - } - - /* 18.3.1.88 sheetViews CT_SheetViews */ - var svs = data1.match(svsregex); - if(svs && svs[1]) parse_ws_xml_sheetviews(svs[1], wb); - - /* 18.3.1.17 cols CT_Cols */ - var columns = []; - if(opts.cellStyles) { - /* 18.3.1.13 col CT_Col */ - var cols = data1.match(colregex); - if(cols) parse_ws_xml_cols(columns, cols); - } - - /* 18.3.1.80 sheetData CT_SheetData ? */ - if(mtch) parse_ws_xml_data(mtch[1], s, opts, refguess, themes, styles); - - /* 18.3.1.2 autoFilter CT_AutoFilter */ - var afilter = data2.match(afregex); - if(afilter) s['!autofilter'] = parse_ws_xml_autofilter(afilter[0]); - - /* 18.3.1.55 mergeCells CT_MergeCells */ - var merges = []; - var _merge = data2.match(mergecregex); - if(_merge) for(ridx = 0; ridx != _merge.length; ++ridx) - merges[ridx] = safe_decode_range(_merge[ridx].slice(_merge[ridx].indexOf("\"")+1)); - - /* 18.3.1.48 hyperlinks CT_Hyperlinks */ - var hlink = data2.match(hlinkregex); - if(hlink) parse_ws_xml_hlinks(s, hlink, rels); - - /* 18.3.1.62 pageMargins CT_PageMargins */ - var margins = data2.match(marginregex); - if(margins) s['!margins'] = parse_ws_xml_margins(parsexmltag(margins[0])); - - if(!s["!ref"] && refguess.e.c >= refguess.s.c && refguess.e.r >= refguess.s.r) s["!ref"] = encode_range(refguess); - if(opts.sheetRows > 0 && s["!ref"]) { - var tmpref = safe_decode_range(s["!ref"]); - if(opts.sheetRows <= +tmpref.e.r) { - tmpref.e.r = opts.sheetRows - 1; - if(tmpref.e.r > refguess.e.r) tmpref.e.r = refguess.e.r; - if(tmpref.e.r < tmpref.s.r) tmpref.s.r = tmpref.e.r; - if(tmpref.e.c > refguess.e.c) tmpref.e.c = refguess.e.c; - if(tmpref.e.c < tmpref.s.c) tmpref.s.c = tmpref.e.c; - s["!fullref"] = s["!ref"]; - s["!ref"] = encode_range(tmpref); - } - } - if(columns.length > 0) s["!cols"] = columns; - if(merges.length > 0) s["!merges"] = merges; - return s; -} - -function write_ws_xml_merges(merges) { - if(merges.length === 0) return ""; - var o = ''; - for(var i = 0; i != merges.length; ++i) o += ''; - return o + ''; -} - -/* 18.3.1.82-3 sheetPr CT_ChartsheetPr / CT_SheetPr */ -function parse_ws_xml_sheetpr(sheetPr, s, wb, idx) { - var data = parsexmltag(sheetPr); - if(!wb.Sheets[idx]) wb.Sheets[idx] = {}; - if(data.codeName) wb.Sheets[idx].CodeName = unescapexml(utf8read(data.codeName)); -} -function parse_ws_xml_sheetpr2(sheetPr, body, s, wb, idx, styles, themes) { - parse_ws_xml_sheetpr(sheetPr.slice(0, sheetPr.indexOf(">")), s, wb, idx); -} -function write_ws_xml_sheetpr(ws, wb, idx, opts, o) { - var needed = false; - var props = {}, payload = null; - if(opts.bookType !== 'xlsx' && wb.vbaraw) { - var cname = wb.SheetNames[idx]; - try { if(wb.Workbook) cname = wb.Workbook.Sheets[idx].CodeName || cname; } catch(e) {} - needed = true; - props.codeName = utf8write(escapexml(cname)); - } - - if(ws && ws["!outline"]) { - var outlineprops = {summaryBelow:1, summaryRight:1}; - if(ws["!outline"].above) outlineprops.summaryBelow = 0; - if(ws["!outline"].left) outlineprops.summaryRight = 0; - payload = (payload||"") + writextag('outlinePr', null, outlineprops); - } - - if(!needed && !payload) return; - o[o.length] = (writextag('sheetPr', payload, props)); -} - -/* 18.3.1.85 sheetProtection CT_SheetProtection */ -var sheetprot_deffalse = ["objects", "scenarios", "selectLockedCells", "selectUnlockedCells"]; -var sheetprot_deftrue = [ - "formatColumns", "formatRows", "formatCells", - "insertColumns", "insertRows", "insertHyperlinks", - "deleteColumns", "deleteRows", - "sort", "autoFilter", "pivotTables" -]; -function write_ws_xml_protection(sp) { - // algorithmName, hashValue, saltValue, spinCount - var o = ({sheet:1}); - sheetprot_deffalse.forEach(function(n) { if(sp[n] != null && sp[n]) o[n] = "1"; }); - sheetprot_deftrue.forEach(function(n) { if(sp[n] != null && !sp[n]) o[n] = "0"; }); - /* TODO: algorithm */ - if(sp.password) o.password = crypto_CreatePasswordVerifier_Method1(sp.password).toString(16).toUpperCase(); - return writextag('sheetProtection', null, o); -} - -function parse_ws_xml_hlinks(s, data, rels) { - var dense = Array.isArray(s); - for(var i = 0; i != data.length; ++i) { - var val = parsexmltag(utf8read(data[i]), true); - if(!val.ref) return; - var rel = ((rels || {})['!id']||[])[val.id]; - if(rel) { - val.Target = rel.Target; - if(val.location) val.Target += "#"+unescapexml(val.location); - } else { - val.Target = "#" + unescapexml(val.location); - rel = {Target: val.Target, TargetMode: 'Internal'}; - } - val.Rel = rel; - if(val.tooltip) { val.Tooltip = val.tooltip; delete val.tooltip; } - var rng = safe_decode_range(val.ref); - for(var R=rng.s.r;R<=rng.e.r;++R) for(var C=rng.s.c;C<=rng.e.c;++C) { - var addr = encode_cell({c:C,r:R}); - if(dense) { - if(!s[R]) s[R] = []; - if(!s[R][C]) s[R][C] = {t:"z",v:undefined}; - s[R][C].l = val; - } else { - if(!s[addr]) s[addr] = {t:"z",v:undefined}; - s[addr].l = val; - } - } - } -} - -function parse_ws_xml_margins(margin) { - var o = {}; - ["left", "right", "top", "bottom", "header", "footer"].forEach(function(k) { - if(margin[k]) o[k] = parseFloat(margin[k]); - }); - return o; -} -function write_ws_xml_margins(margin) { - default_margins(margin); - return writextag('pageMargins', null, margin); -} - -function parse_ws_xml_cols(columns, cols) { - var seencol = false; - for(var coli = 0; coli != cols.length; ++coli) { - var coll = parsexmltag(cols[coli], true); - if(coll.hidden) coll.hidden = parsexmlbool(coll.hidden); - var colm=parseInt(coll.min, 10)-1, colM=parseInt(coll.max,10)-1; - if(coll.outlineLevel) coll.level = (+coll.outlineLevel || 0); - delete coll.min; delete coll.max; coll.width = +coll.width; - if(!seencol && coll.width) { seencol = true; find_mdw_colw(coll.width); } - process_col(coll); - while(colm <= colM) columns[colm++] = dup(coll); - } -} -function write_ws_xml_cols(ws, cols) { - var o = [""], col; - for(var i = 0; i != cols.length; ++i) { - if(!(col = cols[i])) continue; - o[o.length] = (writextag('col', null, col_obj_w(i, col))); - } - o[o.length] = ""; - return o.join(""); -} - -function parse_ws_xml_autofilter(data) { - var o = { ref: (data.match(/ref="([^"]*)"/)||[])[1]}; - return o; -} -function write_ws_xml_autofilter(data, ws, wb, idx) { - var ref = typeof data.ref == "string" ? data.ref : encode_range(data.ref); - if(!wb.Workbook) wb.Workbook = ({Sheets:[]}); - if(!wb.Workbook.Names) wb.Workbook.Names = []; - var names = wb.Workbook.Names; - var range = decode_range(ref); - if(range.s.r == range.e.r) { range.e.r = decode_range(ws["!ref"]).e.r; ref = encode_range(range); } - for(var i = 0; i < names.length; ++i) { - var name = names[i]; - if(name.Name != '_xlnm._FilterDatabase') continue; - if(name.Sheet != idx) continue; - name.Ref = "'" + wb.SheetNames[idx] + "'!" + ref; break; - } - if(i == names.length) names.push({ Name: '_xlnm._FilterDatabase', Sheet: idx, Ref: "'" + wb.SheetNames[idx] + "'!" + ref }); - return writextag("autoFilter", null, {ref:ref}); -} - -/* 18.3.1.88 sheetViews CT_SheetViews */ -/* 18.3.1.87 sheetView CT_SheetView */ -var sviewregex = /<(?:\w:)?sheetView(?:[^>a-z][^>]*)?\/?>/; -function parse_ws_xml_sheetviews(data, wb) { - if(!wb.Views) wb.Views = [{}]; - (data.match(sviewregex)||[]).forEach(function(r, i) { - var tag = parsexmltag(r); - // $FlowIgnore - if(!wb.Views[i]) wb.Views[i] = {}; - // $FlowIgnore - if(+tag.zoomScale) wb.Views[i].zoom = +tag.zoomScale; - // $FlowIgnore - if(parsexmlbool(tag.rightToLeft)) wb.Views[i].RTL = true; - }); -} -function write_ws_xml_sheetviews(ws, opts, idx, wb) { - var sview = ({workbookViewId:"0"}); - // $FlowIgnore - if((((wb||{}).Workbook||{}).Views||[])[0]) sview.rightToLeft = wb.Workbook.Views[0].RTL ? "1" : "0"; - return writextag("sheetViews", writextag("sheetView", null, sview), {}); -} - -function write_ws_xml_cell(cell, ref, ws, opts) { - if(cell.v === undefined && typeof cell.f !== "string" || cell.t === 'z') return ""; - var vv = ""; - var oldt = cell.t, oldv = cell.v; - if(cell.t !== "z") switch(cell.t) { - case 'b': vv = cell.v ? "1" : "0"; break; - case 'n': vv = ''+cell.v; break; - case 'e': vv = BErr[cell.v]; break; - case 'd': - if(opts && opts.cellDates) vv = parseDate(cell.v, -1).toISOString(); - else { - cell = dup(cell); - cell.t = 'n'; - vv = ''+(cell.v = datenum(parseDate(cell.v))); - } - if(typeof cell.z === 'undefined') cell.z = SSF._table[14]; - break; - default: vv = cell.v; break; - } - var v = writetag('v', escapexml(vv)), o = ({r:ref}); - /* TODO: cell style */ - var os = get_cell_style(opts.cellXfs, cell, opts); - if(os !== 0) o.s = os; - switch(cell.t) { - case 'n': break; - case 'd': o.t = "d"; break; - case 'b': o.t = "b"; break; - case 'e': o.t = "e"; break; - case 'z': break; - default: if(cell.v == null) { delete cell.t; break; } - if(cell.v.length > 32767) throw new Error("Text length must not exceed 32767 characters"); - if(opts && opts.bookSST) { - v = writetag('v', ''+get_sst_id(opts.Strings, cell.v, opts.revStrings)); - o.t = "s"; break; - } - o.t = "str"; break; - } - if(cell.t != oldt) { cell.t = oldt; cell.v = oldv; } - if(typeof cell.f == "string" && cell.f) { - var ff = cell.F && cell.F.slice(0, ref.length) == ref ? {t:"array", ref:cell.F} : null; - v = writextag('f', escapexml(cell.f), ff) + (cell.v != null ? v : ""); - } - if(cell.l) ws['!links'].push([ref, cell.l]); - if(cell.c) ws['!comments'].push([ref, cell.c]); - return writextag('c', v, o); -} - -var parse_ws_xml_data = (function() { - var cellregex = /<(?:\w+:)?c[ \/>]/, rowregex = /<\/(?:\w+:)?row>/; - var rregex = /r=["']([^"']*)["']/, isregex = /<(?:\w+:)?is>([\S\s]*?)<\/(?:\w+:)?is>/; - var refregex = /ref=["']([^"']*)["']/; - var match_v = matchtag("v"), match_f = matchtag("f"); - -return function parse_ws_xml_data(sdata, s, opts, guess, themes, styles) { - var ri = 0, x = "", cells = [], cref = [], idx=0, i=0, cc=0, d="", p; - var tag, tagr = 0, tagc = 0; - var sstr, ftag; - var fmtid = 0, fillid = 0; - var do_format = Array.isArray(styles.CellXf), cf; - var arrayf = []; - var sharedf = []; - var dense = Array.isArray(s); - var rows = [], rowobj = {}, rowrite = false; - var sheetStubs = !!opts.sheetStubs; - for(var marr = sdata.split(rowregex), mt = 0, marrlen = marr.length; mt != marrlen; ++mt) { - x = marr[mt].trim(); - var xlen = x.length; - if(xlen === 0) continue; - - /* 18.3.1.73 row CT_Row */ - var rstarti = 0; - outa: for(ri = 0; ri < xlen; ++ri) switch(/*x.charCodeAt(ri)*/x[ri]) { - case ">" /*62*/: - if(/*x.charCodeAt(ri-1) != 47*/x[ri-1] != "/") { ++ri; break outa; } - if(opts && opts.cellStyles) { - // TODO: avoid duplication - tag = parsexmltag(x.slice(rstarti,ri), true); - tagr = tag.r != null ? parseInt(tag.r, 10) : tagr+1; tagc = -1; - if(opts.sheetRows && opts.sheetRows < tagr) continue; - rowobj = {}; rowrite = false; - if(tag.ht) { rowrite = true; rowobj.hpt = parseFloat(tag.ht); rowobj.hpx = pt2px(rowobj.hpt); } - if(tag.hidden == "1") { rowrite = true; rowobj.hidden = true; } - if(tag.outlineLevel != null) { rowrite = true; rowobj.level = +tag.outlineLevel; } - if(rowrite) rows[tagr-1] = rowobj; - } - break; - case "<" /*60*/: rstarti = ri; break; - } - if(rstarti >= ri) break; - tag = parsexmltag(x.slice(rstarti,ri), true); - tagr = tag.r != null ? parseInt(tag.r, 10) : tagr+1; tagc = -1; - if(opts.sheetRows && opts.sheetRows < tagr) continue; - if(guess.s.r > tagr - 1) guess.s.r = tagr - 1; - if(guess.e.r < tagr - 1) guess.e.r = tagr - 1; - - if(opts && opts.cellStyles) { - rowobj = {}; rowrite = false; - if(tag.ht) { rowrite = true; rowobj.hpt = parseFloat(tag.ht); rowobj.hpx = pt2px(rowobj.hpt); } - if(tag.hidden == "1") { rowrite = true; rowobj.hidden = true; } - if(tag.outlineLevel != null) { rowrite = true; rowobj.level = +tag.outlineLevel; } - if(rowrite) rows[tagr-1] = rowobj; - } - - /* 18.3.1.4 c CT_Cell */ - cells = x.slice(ri).split(cellregex); - for(var rslice = 0; rslice != cells.length; ++rslice) if(cells[rslice].trim().charAt(0) != "<") break; - cells = cells.slice(rslice); - for(ri = 0; ri != cells.length; ++ri) { - x = cells[ri].trim(); - if(x.length === 0) continue; - cref = x.match(rregex); idx = ri; i=0; cc=0; - x = "":"") + x; - if(cref != null && cref.length === 2) { - idx = 0; d=cref[1]; - for(i=0; i != d.length; ++i) { - if((cc=d.charCodeAt(i)-64) < 1 || cc > 26) break; - idx = 26*idx + cc; - } - --idx; - tagc = idx; - } else ++tagc; - for(i = 0; i != x.length; ++i) if(x.charCodeAt(i) === 62) break; ++i; - tag = parsexmltag(x.slice(0,i), true); - if(!tag.r) tag.r = encode_cell({r:tagr-1, c:tagc}); - d = x.slice(i); - p = ({t:""}); - - if((cref=d.match(match_v))!= null && cref[1] !== '') p.v=unescapexml(cref[1]); - if(opts.cellFormula) { - if((cref=d.match(match_f))!= null && cref[1] !== '') { - /* TODO: match against XLSXFutureFunctions */ - p.f=unescapexml(utf8read(cref[1])).replace(/\r\n/g, "\n"); - if(!opts.xlfn) p.f = _xlfn(p.f); - if(cref[0].indexOf('t="array"') > -1) { - p.F = (d.match(refregex)||[])[1]; - if(p.F.indexOf(":") > -1) arrayf.push([safe_decode_range(p.F), p.F]); - } else if(cref[0].indexOf('t="shared"') > -1) { - // TODO: parse formula - ftag = parsexmltag(cref[0]); - var ___f = unescapexml(utf8read(cref[1])); - if(!opts.xlfn) ___f = _xlfn(___f); - sharedf[parseInt(ftag.si, 10)] = [ftag, ___f, tag.r]; - } - } else if((cref=d.match(/]*\/>/))) { - ftag = parsexmltag(cref[0]); - if(sharedf[ftag.si]) p.f = shift_formula_xlsx(sharedf[ftag.si][1], sharedf[ftag.si][2]/*[0].ref*/, tag.r); - } - /* TODO: factor out contains logic */ - var _tag = decode_cell(tag.r); - for(i = 0; i < arrayf.length; ++i) - if(_tag.r >= arrayf[i][0].s.r && _tag.r <= arrayf[i][0].e.r) - if(_tag.c >= arrayf[i][0].s.c && _tag.c <= arrayf[i][0].e.c) - p.F = arrayf[i][1]; - } - - if(tag.t == null && p.v === undefined) { - if(p.f || p.F) { - p.v = 0; p.t = "n"; - } else if(!sheetStubs) continue; - else p.t = "z"; - } - else p.t = tag.t || "n"; - if(guess.s.c > tagc) guess.s.c = tagc; - if(guess.e.c < tagc) guess.e.c = tagc; - /* 18.18.11 t ST_CellType */ - switch(p.t) { - case 'n': - if(p.v == "" || p.v == null) { - if(!sheetStubs) continue; - p.t = 'z'; - } else p.v = parseFloat(p.v); - break; - case 's': - if(typeof p.v == 'undefined') { - if(!sheetStubs) continue; - p.t = 'z'; - } else { - sstr = strs[parseInt(p.v, 10)]; - p.v = sstr.t; - p.r = sstr.r; - if(opts.cellHTML) p.h = sstr.h; - } - break; - case 'str': - p.t = "s"; - p.v = (p.v!=null) ? utf8read(p.v) : ''; - if(opts.cellHTML) p.h = escapehtml(p.v); - break; - case 'inlineStr': - cref = d.match(isregex); - p.t = 's'; - if(cref != null && (sstr = parse_si(cref[1]))) { - p.v = sstr.t; - if(opts.cellHTML) p.h = sstr.h; - } else p.v = ""; - break; - case 'b': p.v = parsexmlbool(p.v); break; - case 'd': - if(opts.cellDates) p.v = parseDate(p.v, 1); - else { p.v = datenum(parseDate(p.v, 1)); p.t = 'n'; } - break; - /* error string in .w, number in .v */ - case 'e': - if(!opts || opts.cellText !== false) p.w = p.v; - p.v = RBErr[p.v]; break; - } - /* formatting */ - fmtid = fillid = 0; - cf = null; - if(do_format && tag.s !== undefined) { - cf = styles.CellXf[tag.s]; - if(cf != null) { - if(cf.numFmtId != null) fmtid = cf.numFmtId; - if(opts.cellStyles) { - if(cf.fillId != null) fillid = cf.fillId; - } - } - } - safe_format(p, fmtid, fillid, opts, themes, styles); - if(opts.cellDates && do_format && p.t == 'n' && SSF.is_date(SSF._table[fmtid])) { p.t = 'd'; p.v = numdate(p.v); } - if(dense) { - var _r = decode_cell(tag.r); - if(!s[_r.r]) s[_r.r] = []; - s[_r.r][_r.c] = p; - } else s[tag.r] = p; - } - } - if(rows.length > 0) s['!rows'] = rows; -}; })(); - -function write_ws_xml_data(ws, opts, idx, wb) { - var o = [], r = [], range = safe_decode_range(ws['!ref']), cell="", ref, rr = "", cols = [], R=0, C=0, rows = ws['!rows']; - var dense = Array.isArray(ws); - var params = ({r:rr}), row, height = -1; - for(C = range.s.c; C <= range.e.c; ++C) cols[C] = encode_col(C); - for(R = range.s.r; R <= range.e.r; ++R) { - r = []; - rr = encode_row(R); - for(C = range.s.c; C <= range.e.c; ++C) { - ref = cols[C] + rr; - var _cell = dense ? (ws[R]||[])[C]: ws[ref]; - if(_cell === undefined) continue; - if((cell = write_ws_xml_cell(_cell, ref, ws, opts, idx, wb)) != null) r.push(cell); - } - if(r.length > 0 || (rows && rows[R])) { - params = ({r:rr}); - if(rows && rows[R]) { - row = rows[R]; - if(row.hidden) params.hidden = 1; - height = -1; - if(row.hpx) height = px2pt(row.hpx); - else if(row.hpt) height = row.hpt; - if(height > -1) { params.ht = height; params.customHeight = 1; } - if(row.level) { params.outlineLevel = row.level; } - } - o[o.length] = (writextag('row', r.join(""), params)); - } - } - if(rows) for(; R < rows.length; ++R) { - if(rows && rows[R]) { - params = ({r:R+1}); - row = rows[R]; - if(row.hidden) params.hidden = 1; - height = -1; - if (row.hpx) height = px2pt(row.hpx); - else if (row.hpt) height = row.hpt; - if (height > -1) { params.ht = height; params.customHeight = 1; } - if (row.level) { params.outlineLevel = row.level; } - o[o.length] = (writextag('row', "", params)); - } - } - return o.join(""); -} - -var WS_XML_ROOT = writextag('worksheet', null, { - 'xmlns': XMLNS.main[0], - 'xmlns:r': XMLNS.r -}); - -function write_ws_xml(idx, opts, wb, rels) { - var o = [XML_HEADER, WS_XML_ROOT]; - var s = wb.SheetNames[idx], sidx = 0, rdata = ""; - var ws = wb.Sheets[s]; - if(ws == null) ws = {}; - var ref = ws['!ref'] || 'A1'; - var range = safe_decode_range(ref); - if(range.e.c > 0x3FFF || range.e.r > 0xFFFFF) { - if(opts.WTF) throw new Error("Range " + ref + " exceeds format limit A1:XFD1048576"); - range.e.c = Math.min(range.e.c, 0x3FFF); - range.e.r = Math.min(range.e.c, 0xFFFFF); - ref = encode_range(range); - } - if(!rels) rels = {}; - ws['!comments'] = []; - var _drawing = []; - - write_ws_xml_sheetpr(ws, wb, idx, opts, o); - - o[o.length] = (writextag('dimension', null, {'ref': ref})); - - o[o.length] = write_ws_xml_sheetviews(ws, opts, idx, wb); - - /* TODO: store in WB, process styles */ - if(opts.sheetFormat) o[o.length] = (writextag('sheetFormatPr', null, { - defaultRowHeight:opts.sheetFormat.defaultRowHeight||'16', - baseColWidth:opts.sheetFormat.baseColWidth||'10', - outlineLevelRow:opts.sheetFormat.outlineLevelRow||'7' - })); - - if(ws['!cols'] != null && ws['!cols'].length > 0) o[o.length] = (write_ws_xml_cols(ws, ws['!cols'])); - - o[sidx = o.length] = ''; - ws['!links'] = []; - if(ws['!ref'] != null) { - rdata = write_ws_xml_data(ws, opts, idx, wb, rels); - if(rdata.length > 0) o[o.length] = (rdata); - } - if(o.length>sidx+1) { o[o.length] = (''); o[sidx]=o[sidx].replace("/>",">"); } - - /* sheetCalcPr */ - - if(ws['!protect']) o[o.length] = write_ws_xml_protection(ws['!protect']); - - /* protectedRanges */ - /* scenarios */ - - if(ws['!autofilter'] != null) o[o.length] = write_ws_xml_autofilter(ws['!autofilter'], ws, wb, idx); - - /* sortState */ - /* dataConsolidate */ - /* customSheetViews */ - - if(ws['!merges'] != null && ws['!merges'].length > 0) o[o.length] = (write_ws_xml_merges(ws['!merges'])); - - /* phoneticPr */ - /* conditionalFormatting */ - /* dataValidations */ - - var relc = -1, rel, rId = -1; - if(ws['!links'].length > 0) { - o[o.length] = ""; -ws['!links'].forEach(function(l) { - if(!l[1].Target) return; - rel = ({"ref":l[0]}); - if(l[1].Target.charAt(0) != "#") { - rId = add_rels(rels, -1, escapexml(l[1].Target).replace(/#.*$/, ""), RELS.HLINK); - rel["r:id"] = "rId"+rId; - } - if((relc = l[1].Target.indexOf("#")) > -1) rel.location = escapexml(l[1].Target.slice(relc+1)); - if(l[1].Tooltip) rel.tooltip = escapexml(l[1].Tooltip); - o[o.length] = writextag("hyperlink",null,rel); - }); - o[o.length] = ""; - } - delete ws['!links']; - - /* printOptions */ - - if(ws['!margins'] != null) o[o.length] = write_ws_xml_margins(ws['!margins']); - - /* pageSetup */ - /* headerFooter */ - /* rowBreaks */ - /* colBreaks */ - /* customProperties */ - /* cellWatches */ - - if(!opts || opts.ignoreEC || (opts.ignoreEC == (void 0))) o[o.length] = writetag("ignoredErrors", writextag("ignoredError", null, {numberStoredAsText:1, sqref:ref})); - - /* smartTags */ - - if(_drawing.length > 0) { - rId = add_rels(rels, -1, "../drawings/drawing" + (idx+1) + ".xml", RELS.DRAW); - o[o.length] = writextag("drawing", null, {"r:id":"rId" + rId}); - ws['!drawing'] = _drawing; - } - - if(ws['!comments'].length > 0) { - rId = add_rels(rels, -1, "../drawings/vmlDrawing" + (idx+1) + ".vml", RELS.VML); - o[o.length] = writextag("legacyDrawing", null, {"r:id":"rId" + rId}); - ws['!legacy'] = rId; - } - - /* legacyDrawingHF */ - /* picture */ - /* oleObjects */ - /* controls */ - /* webPublishItems */ - /* tableParts */ - /* extLst */ - - if(o.length>1) { o[o.length] = (''); o[1]=o[1].replace("/>",">"); } - return o.join(""); -} - -/* [MS-XLSB] 2.4.726 BrtRowHdr */ -function parse_BrtRowHdr(data, length) { - var z = ({}); - var tgt = data.l + length; - z.r = data.read_shift(4); - data.l += 4; // TODO: ixfe - var miyRw = data.read_shift(2); - data.l += 1; // TODO: top/bot padding - var flags = data.read_shift(1); - data.l = tgt; - if(flags & 0x07) z.level = flags & 0x07; - if(flags & 0x10) z.hidden = true; - if(flags & 0x20) z.hpt = miyRw / 20; - return z; -} -function write_BrtRowHdr(R, range, ws) { - var o = new_buf(17+8*16); - var row = (ws['!rows']||[])[R]||{}; - o.write_shift(4, R); - - o.write_shift(4, 0); /* TODO: ixfe */ - - var miyRw = 0x0140; - if(row.hpx) miyRw = px2pt(row.hpx) * 20; - else if(row.hpt) miyRw = row.hpt * 20; - o.write_shift(2, miyRw); - - o.write_shift(1, 0); /* top/bot padding */ - - var flags = 0x0; - if(row.level) flags |= row.level; - if(row.hidden) flags |= 0x10; - if(row.hpx || row.hpt) flags |= 0x20; - o.write_shift(1, flags); - - o.write_shift(1, 0); /* phonetic guide */ - - /* [MS-XLSB] 2.5.8 BrtColSpan explains the mechanism */ - var ncolspan = 0, lcs = o.l; - o.l += 4; - - var caddr = {r:R, c:0}; - for(var i = 0; i < 16; ++i) { - if((range.s.c > ((i+1) << 10)) || (range.e.c < (i << 10))) continue; - var first = -1, last = -1; - for(var j = (i<<10); j < ((i+1)<<10); ++j) { - caddr.c = j; - var cell = Array.isArray(ws) ? (ws[caddr.r]||[])[caddr.c] : ws[encode_cell(caddr)]; - if(cell) { if(first < 0) first = j; last = j; } - } - if(first < 0) continue; - ++ncolspan; - o.write_shift(4, first); - o.write_shift(4, last); - } - - var l = o.l; - o.l = lcs; - o.write_shift(4, ncolspan); - o.l = l; - - return o.length > o.l ? o.slice(0, o.l) : o; -} -function write_row_header(ba, ws, range, R) { - var o = write_BrtRowHdr(R, range, ws); - if((o.length > 17) || (ws['!rows']||[])[R]) write_record(ba, 'BrtRowHdr', o); -} - -/* [MS-XLSB] 2.4.820 BrtWsDim */ -var parse_BrtWsDim = parse_UncheckedRfX; -var write_BrtWsDim = write_UncheckedRfX; - -/* [MS-XLSB] 2.4.821 BrtWsFmtInfo */ -function parse_BrtWsFmtInfo() { -} -//function write_BrtWsFmtInfo(ws, o) { } - -/* [MS-XLSB] 2.4.823 BrtWsProp */ -function parse_BrtWsProp(data, length) { - var z = {}; - var f = data[data.l]; ++data.l; - z.above = !(f & 0x40); - z.left = !(f & 0x80); - /* TODO: pull flags */ - data.l += 18; - z.name = parse_XLSBCodeName(data, length - 19); - return z; -} -function write_BrtWsProp(str, outl, o) { - if(o == null) o = new_buf(84+4*str.length); - var f = 0xC0; - if(outl) { - if(outl.above) f &= ~0x40; - if(outl.left) f &= ~0x80; - } - o.write_shift(1, f); - for(var i = 1; i < 3; ++i) o.write_shift(1,0); - write_BrtColor({auto:1}, o); - o.write_shift(-4,-1); - o.write_shift(-4,-1); - write_XLSBCodeName(str, o); - return o.slice(0, o.l); -} - -/* [MS-XLSB] 2.4.306 BrtCellBlank */ -function parse_BrtCellBlank(data) { - var cell = parse_XLSBCell(data); - return [cell]; -} -function write_BrtCellBlank(cell, ncell, o) { - if(o == null) o = new_buf(8); - return write_XLSBCell(ncell, o); -} -function parse_BrtShortBlank(data) { - var cell = parse_XLSBShortCell(data); - return [cell]; -} -function write_BrtShortBlank(cell, ncell, o) { - if(o == null) o = new_buf(4); - return write_XLSBShortCell(ncell, o); -} - -/* [MS-XLSB] 2.4.307 BrtCellBool */ -function parse_BrtCellBool(data) { - var cell = parse_XLSBCell(data); - var fBool = data.read_shift(1); - return [cell, fBool, 'b']; -} -function write_BrtCellBool(cell, ncell, o) { - if(o == null) o = new_buf(9); - write_XLSBCell(ncell, o); - o.write_shift(1, cell.v ? 1 : 0); - return o; -} -function parse_BrtShortBool(data) { - var cell = parse_XLSBShortCell(data); - var fBool = data.read_shift(1); - return [cell, fBool, 'b']; -} -function write_BrtShortBool(cell, ncell, o) { - if(o == null) o = new_buf(5); - write_XLSBShortCell(ncell, o); - o.write_shift(1, cell.v ? 1 : 0); - return o; -} - -/* [MS-XLSB] 2.4.308 BrtCellError */ -function parse_BrtCellError(data) { - var cell = parse_XLSBCell(data); - var bError = data.read_shift(1); - return [cell, bError, 'e']; -} -function write_BrtCellError(cell, ncell, o) { - if(o == null) o = new_buf(9); - write_XLSBCell(ncell, o); - o.write_shift(1, cell.v); - return o; -} -function parse_BrtShortError(data) { - var cell = parse_XLSBShortCell(data); - var bError = data.read_shift(1); - return [cell, bError, 'e']; -} -function write_BrtShortError(cell, ncell, o) { - if(o == null) o = new_buf(8); - write_XLSBShortCell(ncell, o); - o.write_shift(1, cell.v); - o.write_shift(2, 0); - o.write_shift(1, 0); - return o; -} - - -/* [MS-XLSB] 2.4.311 BrtCellIsst */ -function parse_BrtCellIsst(data) { - var cell = parse_XLSBCell(data); - var isst = data.read_shift(4); - return [cell, isst, 's']; -} -function write_BrtCellIsst(cell, ncell, o) { - if(o == null) o = new_buf(12); - write_XLSBCell(ncell, o); - o.write_shift(4, ncell.v); - return o; -} -function parse_BrtShortIsst(data) { - var cell = parse_XLSBShortCell(data); - var isst = data.read_shift(4); - return [cell, isst, 's']; -} -function write_BrtShortIsst(cell, ncell, o) { - if(o == null) o = new_buf(8); - write_XLSBShortCell(ncell, o); - o.write_shift(4, ncell.v); - return o; -} - -/* [MS-XLSB] 2.4.313 BrtCellReal */ -function parse_BrtCellReal(data) { - var cell = parse_XLSBCell(data); - var value = parse_Xnum(data); - return [cell, value, 'n']; -} -function write_BrtCellReal(cell, ncell, o) { - if(o == null) o = new_buf(16); - write_XLSBCell(ncell, o); - write_Xnum(cell.v, o); - return o; -} -function parse_BrtShortReal(data) { - var cell = parse_XLSBShortCell(data); - var value = parse_Xnum(data); - return [cell, value, 'n']; -} -function write_BrtShortReal(cell, ncell, o) { - if(o == null) o = new_buf(12); - write_XLSBShortCell(ncell, o); - write_Xnum(cell.v, o); - return o; -} - -/* [MS-XLSB] 2.4.314 BrtCellRk */ -function parse_BrtCellRk(data) { - var cell = parse_XLSBCell(data); - var value = parse_RkNumber(data); - return [cell, value, 'n']; -} -function write_BrtCellRk(cell, ncell, o) { - if(o == null) o = new_buf(12); - write_XLSBCell(ncell, o); - write_RkNumber(cell.v, o); - return o; -} -function parse_BrtShortRk(data) { - var cell = parse_XLSBShortCell(data); - var value = parse_RkNumber(data); - return [cell, value, 'n']; -} -function write_BrtShortRk(cell, ncell, o) { - if(o == null) o = new_buf(8); - write_XLSBShortCell(ncell, o); - write_RkNumber(cell.v, o); - return o; -} - -/* [MS-XLSB] 2.4.323 BrtCellRString */ -function parse_BrtCellRString(data) { - var cell = parse_XLSBCell(data); - var value = parse_RichStr(data); - return [cell, value, 'is']; -} - -/* [MS-XLSB] 2.4.317 BrtCellSt */ -function parse_BrtCellSt(data) { - var cell = parse_XLSBCell(data); - var value = parse_XLWideString(data); - return [cell, value, 'str']; -} -function write_BrtCellSt(cell, ncell, o) { - if(o == null) o = new_buf(12 + 4 * cell.v.length); - write_XLSBCell(ncell, o); - write_XLWideString(cell.v, o); - return o.length > o.l ? o.slice(0, o.l) : o; -} -function parse_BrtShortSt(data) { - var cell = parse_XLSBShortCell(data); - var value = parse_XLWideString(data); - return [cell, value, 'str']; -} -function write_BrtShortSt(cell, ncell, o) { - if(o == null) o = new_buf(8 + 4 * cell.v.length); - write_XLSBShortCell(ncell, o); - write_XLWideString(cell.v, o); - return o.length > o.l ? o.slice(0, o.l) : o; -} - -/* [MS-XLSB] 2.4.653 BrtFmlaBool */ -function parse_BrtFmlaBool(data, length, opts) { - var end = data.l + length; - var cell = parse_XLSBCell(data); - cell.r = opts['!row']; - var value = data.read_shift(1); - var o = [cell, value, 'b']; - if(opts.cellFormula) { - data.l += 2; - var formula = parse_XLSBCellParsedFormula(data, end - data.l, opts); - o[3] = stringify_formula(formula, null/*range*/, cell, opts.supbooks, opts);/* TODO */ - } - else data.l = end; - return o; -} - -/* [MS-XLSB] 2.4.654 BrtFmlaError */ -function parse_BrtFmlaError(data, length, opts) { - var end = data.l + length; - var cell = parse_XLSBCell(data); - cell.r = opts['!row']; - var value = data.read_shift(1); - var o = [cell, value, 'e']; - if(opts.cellFormula) { - data.l += 2; - var formula = parse_XLSBCellParsedFormula(data, end - data.l, opts); - o[3] = stringify_formula(formula, null/*range*/, cell, opts.supbooks, opts);/* TODO */ - } - else data.l = end; - return o; -} - -/* [MS-XLSB] 2.4.655 BrtFmlaNum */ -function parse_BrtFmlaNum(data, length, opts) { - var end = data.l + length; - var cell = parse_XLSBCell(data); - cell.r = opts['!row']; - var value = parse_Xnum(data); - var o = [cell, value, 'n']; - if(opts.cellFormula) { - data.l += 2; - var formula = parse_XLSBCellParsedFormula(data, end - data.l, opts); - o[3] = stringify_formula(formula, null/*range*/, cell, opts.supbooks, opts);/* TODO */ - } - else data.l = end; - return o; -} - -/* [MS-XLSB] 2.4.656 BrtFmlaString */ -function parse_BrtFmlaString(data, length, opts) { - var end = data.l + length; - var cell = parse_XLSBCell(data); - cell.r = opts['!row']; - var value = parse_XLWideString(data); - var o = [cell, value, 'str']; - if(opts.cellFormula) { - data.l += 2; - var formula = parse_XLSBCellParsedFormula(data, end - data.l, opts); - o[3] = stringify_formula(formula, null/*range*/, cell, opts.supbooks, opts);/* TODO */ - } - else data.l = end; - return o; -} - -/* [MS-XLSB] 2.4.682 BrtMergeCell */ -var parse_BrtMergeCell = parse_UncheckedRfX; -var write_BrtMergeCell = write_UncheckedRfX; -/* [MS-XLSB] 2.4.107 BrtBeginMergeCells */ -function write_BrtBeginMergeCells(cnt, o) { - if(o == null) o = new_buf(4); - o.write_shift(4, cnt); - return o; -} - -/* [MS-XLSB] 2.4.662 BrtHLink */ -function parse_BrtHLink(data, length) { - var end = data.l + length; - var rfx = parse_UncheckedRfX(data, 16); - var relId = parse_XLNullableWideString(data); - var loc = parse_XLWideString(data); - var tooltip = parse_XLWideString(data); - var display = parse_XLWideString(data); - data.l = end; - var o = ({rfx:rfx, relId:relId, loc:loc, display:display}); - if(tooltip) o.Tooltip = tooltip; - return o; -} -function write_BrtHLink(l, rId) { - var o = new_buf(50+4*(l[1].Target.length + (l[1].Tooltip || "").length)); - write_UncheckedRfX({s:decode_cell(l[0]), e:decode_cell(l[0])}, o); - write_RelID("rId" + rId, o); - var locidx = l[1].Target.indexOf("#"); - var loc = locidx == -1 ? "" : l[1].Target.slice(locidx+1); - write_XLWideString(loc || "", o); - write_XLWideString(l[1].Tooltip || "", o); - write_XLWideString("", o); - return o.slice(0, o.l); -} - -/* [MS-XLSB] 2.4.692 BrtPane */ -function parse_BrtPane(/*data, length, opts*/) { -} - -/* [MS-XLSB] 2.4.6 BrtArrFmla */ -function parse_BrtArrFmla(data, length, opts) { - var end = data.l + length; - var rfx = parse_RfX(data, 16); - var fAlwaysCalc = data.read_shift(1); - var o = [rfx]; o[2] = fAlwaysCalc; - if(opts.cellFormula) { - var formula = parse_XLSBArrayParsedFormula(data, end - data.l, opts); - o[1] = formula; - } else data.l = end; - return o; -} - -/* [MS-XLSB] 2.4.750 BrtShrFmla */ -function parse_BrtShrFmla(data, length, opts) { - var end = data.l + length; - var rfx = parse_UncheckedRfX(data, 16); - var o = [rfx]; - if(opts.cellFormula) { - var formula = parse_XLSBSharedParsedFormula(data, end - data.l, opts); - o[1] = formula; - data.l = end; - } else data.l = end; - return o; -} - -/* [MS-XLSB] 2.4.323 BrtColInfo */ -/* TODO: once XLS ColInfo is set, combine the functions */ -function write_BrtColInfo(C, col, o) { - if(o == null) o = new_buf(18); - var p = col_obj_w(C, col); - o.write_shift(-4, C); - o.write_shift(-4, C); - o.write_shift(4, (p.width || 10) * 256); - o.write_shift(4, 0/*ixfe*/); // style - var flags = 0; - if(col.hidden) flags |= 0x01; - if(typeof p.width == 'number') flags |= 0x02; - if(col.level) flags |= (col.level << 8); - o.write_shift(2, flags); // bit flag - return o; -} - -/* [MS-XLSB] 2.4.678 BrtMargins */ -var BrtMarginKeys = ["left","right","top","bottom","header","footer"]; -function parse_BrtMargins(data) { - var margins = ({}); - BrtMarginKeys.forEach(function(k) { margins[k] = parse_Xnum(data, 8); }); - return margins; -} -function write_BrtMargins(margins, o) { - if(o == null) o = new_buf(6*8); - default_margins(margins); - BrtMarginKeys.forEach(function(k) { write_Xnum((margins)[k], o); }); - return o; -} - -/* [MS-XLSB] 2.4.299 BrtBeginWsView */ -function parse_BrtBeginWsView(data) { - var f = data.read_shift(2); - data.l += 28; - return { RTL: f & 0x20 }; -} -function write_BrtBeginWsView(ws, Workbook, o) { - if(o == null) o = new_buf(30); - var f = 0x39c; - if((((Workbook||{}).Views||[])[0]||{}).RTL) f |= 0x20; - o.write_shift(2, f); // bit flag - o.write_shift(4, 0); - o.write_shift(4, 0); // view first row - o.write_shift(4, 0); // view first col - o.write_shift(1, 0); // gridline color ICV - o.write_shift(1, 0); - o.write_shift(2, 0); - o.write_shift(2, 100); // zoom scale - o.write_shift(2, 0); - o.write_shift(2, 0); - o.write_shift(2, 0); - o.write_shift(4, 0); // workbook view id - return o; -} - -/* [MS-XLSB] 2.4.309 BrtCellIgnoreEC */ -function write_BrtCellIgnoreEC(ref) { - var o = new_buf(24); - o.write_shift(4, 4); - o.write_shift(4, 1); - write_UncheckedRfX(ref, o); - return o; -} - -/* [MS-XLSB] 2.4.748 BrtSheetProtection */ -function write_BrtSheetProtection(sp, o) { - if(o == null) o = new_buf(16*4+2); - o.write_shift(2, sp.password ? crypto_CreatePasswordVerifier_Method1(sp.password) : 0); - o.write_shift(4, 1); // this record should not be written if no protection - [ - ["objects", false], // fObjects - ["scenarios", false], // fScenarios - ["formatCells", true], // fFormatCells - ["formatColumns", true], // fFormatColumns - ["formatRows", true], // fFormatRows - ["insertColumns", true], // fInsertColumns - ["insertRows", true], // fInsertRows - ["insertHyperlinks", true], // fInsertHyperlinks - ["deleteColumns", true], // fDeleteColumns - ["deleteRows", true], // fDeleteRows - ["selectLockedCells", false], // fSelLockedCells - ["sort", true], // fSort - ["autoFilter", true], // fAutoFilter - ["pivotTables", true], // fPivotTables - ["selectUnlockedCells", false] // fSelUnlockedCells - ].forEach(function(n) { -if(n[1]) o.write_shift(4, sp[n[0]] != null && !sp[n[0]] ? 1 : 0); - else o.write_shift(4, sp[n[0]] != null && sp[n[0]] ? 0 : 1); - }); - return o; -} - -function parse_BrtDVal(/*data, length, opts*/) { -} -function parse_BrtDVal14(/*data, length, opts*/) { -} -/* [MS-XLSB] 2.1.7.61 Worksheet */ -function parse_ws_bin(data, _opts, idx, rels, wb, themes, styles) { - if(!data) return data; - var opts = _opts || {}; - if(!rels) rels = {'!id':{}}; - if(DENSE != null && opts.dense == null) opts.dense = DENSE; - var s = (opts.dense ? [] : {}); - - var ref; - var refguess = {s: {r:2000000, c:2000000}, e: {r:0, c:0} }; - - var state = []; - var pass = false, end = false; - var row, p, cf, R, C, addr, sstr, rr, cell; - var merges = []; - opts.biff = 12; - opts['!row'] = 0; - - var ai = 0, af = false; - - var arrayf = []; - var sharedf = {}; - var supbooks = opts.supbooks || wb.supbooks || ([[]]); - supbooks.sharedf = sharedf; - supbooks.arrayf = arrayf; - supbooks.SheetNames = wb.SheetNames || wb.Sheets.map(function(x) { return x.name; }); - if(!opts.supbooks) { - opts.supbooks = supbooks; - if(wb.Names) for(var i = 0; i < wb.Names.length; ++i) supbooks[0][i+1] = wb.Names[i]; - } - - var colinfo = [], rowinfo = []; - var seencol = false; - - XLSBRecordEnum[0x0010] = { n:"BrtShortReal", f:parse_BrtShortReal }; - - recordhopper(data, function ws_parse(val, R_n, RT) { - if(end) return; - switch(RT) { - case 0x0094: /* 'BrtWsDim' */ - ref = val; break; - case 0x0000: /* 'BrtRowHdr' */ - row = val; - if(opts.sheetRows && opts.sheetRows <= row.r) end=true; - rr = encode_row(R = row.r); - opts['!row'] = row.r; - if(val.hidden || val.hpt || val.level != null) { - if(val.hpt) val.hpx = pt2px(val.hpt); - rowinfo[val.r] = val; - } - break; - - case 0x0002: /* 'BrtCellRk' */ - case 0x0003: /* 'BrtCellError' */ - case 0x0004: /* 'BrtCellBool' */ - case 0x0005: /* 'BrtCellReal' */ - case 0x0006: /* 'BrtCellSt' */ - case 0x0007: /* 'BrtCellIsst' */ - case 0x0008: /* 'BrtFmlaString' */ - case 0x0009: /* 'BrtFmlaNum' */ - case 0x000A: /* 'BrtFmlaBool' */ - case 0x000B: /* 'BrtFmlaError' */ - case 0x000D: /* 'BrtShortRk' */ - case 0x000E: /* 'BrtShortError' */ - case 0x000F: /* 'BrtShortBool' */ - case 0x0010: /* 'BrtShortReal' */ - case 0x0011: /* 'BrtShortSt' */ - case 0x0012: /* 'BrtShortIsst' */ - case 0x003E: /* 'BrtCellRString' */ - p = ({t:val[2]}); - switch(val[2]) { - case 'n': p.v = val[1]; break; - case 's': sstr = strs[val[1]]; p.v = sstr.t; p.r = sstr.r; break; - case 'b': p.v = val[1] ? true : false; break; - case 'e': p.v = val[1]; if(opts.cellText !== false) p.w = BErr[p.v]; break; - case 'str': p.t = 's'; p.v = val[1]; break; - case 'is': p.t = 's'; p.v = val[1].t; break; - } - if((cf = styles.CellXf[val[0].iStyleRef])) safe_format(p,cf.numFmtId,null,opts, themes, styles); - C = val[0].c == -1 ? C + 1 : val[0].c; - if(opts.dense) { if(!s[R]) s[R] = []; s[R][C] = p; } - else s[encode_col(C) + rr] = p; - if(opts.cellFormula) { - af = false; - for(ai = 0; ai < arrayf.length; ++ai) { - var aii = arrayf[ai]; - if(row.r >= aii[0].s.r && row.r <= aii[0].e.r) - if(C >= aii[0].s.c && C <= aii[0].e.c) { - p.F = encode_range(aii[0]); af = true; - } - } - if(!af && val.length > 3) p.f = val[3]; - } - if(refguess.s.r > row.r) refguess.s.r = row.r; - if(refguess.s.c > C) refguess.s.c = C; - if(refguess.e.r < row.r) refguess.e.r = row.r; - if(refguess.e.c < C) refguess.e.c = C; - if(opts.cellDates && cf && p.t == 'n' && SSF.is_date(SSF._table[cf.numFmtId])) { - var _d = SSF.parse_date_code(p.v); if(_d) { p.t = 'd'; p.v = new Date(_d.y, _d.m-1,_d.d,_d.H,_d.M,_d.S,_d.u); } - } - break; - - case 0x0001: /* 'BrtCellBlank' */ - case 0x000C: /* 'BrtShortBlank' */ - if(!opts.sheetStubs || pass) break; - p = ({t:'z',v:undefined}); - C = val[0].c == -1 ? C + 1 : val[0].c; - if(opts.dense) { if(!s[R]) s[R] = []; s[R][C] = p; } - else s[encode_col(C) + rr] = p; - if(refguess.s.r > row.r) refguess.s.r = row.r; - if(refguess.s.c > C) refguess.s.c = C; - if(refguess.e.r < row.r) refguess.e.r = row.r; - if(refguess.e.c < C) refguess.e.c = C; - break; - - case 0x00B0: /* 'BrtMergeCell' */ - merges.push(val); break; - - case 0x01EE: /* 'BrtHLink' */ - var rel = rels['!id'][val.relId]; - if(rel) { - val.Target = rel.Target; - if(val.loc) val.Target += "#"+val.loc; - val.Rel = rel; - } else if(val.relId == '') { - val.Target = "#" + val.loc; - } - for(R=val.rfx.s.r;R<=val.rfx.e.r;++R) for(C=val.rfx.s.c;C<=val.rfx.e.c;++C) { - if(opts.dense) { - if(!s[R]) s[R] = []; - if(!s[R][C]) s[R][C] = {t:'z',v:undefined}; - s[R][C].l = val; - } else { - addr = encode_cell({c:C,r:R}); - if(!s[addr]) s[addr] = {t:'z',v:undefined}; - s[addr].l = val; - } - } - break; - - case 0x01AA: /* 'BrtArrFmla' */ - if(!opts.cellFormula) break; - arrayf.push(val); - cell = ((opts.dense ? s[R][C] : s[encode_col(C) + rr])); - cell.f = stringify_formula(val[1], refguess, {r:row.r, c:C}, supbooks, opts); - cell.F = encode_range(val[0]); - break; - case 0x01AB: /* 'BrtShrFmla' */ - if(!opts.cellFormula) break; - sharedf[encode_cell(val[0].s)] = val[1]; - cell = (opts.dense ? s[R][C] : s[encode_col(C) + rr]); - cell.f = stringify_formula(val[1], refguess, {r:row.r, c:C}, supbooks, opts); - break; - - /* identical to 'ColInfo' in XLS */ - case 0x003C: /* 'BrtColInfo' */ - if(!opts.cellStyles) break; - while(val.e >= val.s) { - colinfo[val.e--] = { width: val.w/256, hidden: !!(val.flags & 0x01), level: val.level }; - if(!seencol) { seencol = true; find_mdw_colw(val.w/256); } - process_col(colinfo[val.e+1]); - } - break; - - case 0x00A1: /* 'BrtBeginAFilter' */ - s['!autofilter'] = { ref:encode_range(val) }; - break; - - case 0x01DC: /* 'BrtMargins' */ - s['!margins'] = val; - break; - - case 0x0093: /* 'BrtWsProp' */ - if(!wb.Sheets[idx]) wb.Sheets[idx] = {}; - if(val.name) wb.Sheets[idx].CodeName = val.name; - if(val.above || val.left) s['!outline'] = { above: val.above, left: val.left }; - break; - - case 0x0089: /* 'BrtBeginWsView' */ - if(!wb.Views) wb.Views = [{}]; - if(!wb.Views[0]) wb.Views[0] = {}; - if(val.RTL) wb.Views[0].RTL = true; - break; - - case 0x01E5: /* 'BrtWsFmtInfo' */ - break; - - case 0x0040: /* 'BrtDVal' */ - case 0x041D: /* 'BrtDVal14' */ - break; - - case 0x0097: /* 'BrtPane' */ - break; - case 0x0098: /* 'BrtSel' */ - case 0x00AF: /* 'BrtAFilterDateGroupItem' */ - case 0x0284: /* 'BrtActiveX' */ - case 0x0271: /* 'BrtBigName' */ - case 0x0232: /* 'BrtBkHim' */ - case 0x018C: /* 'BrtBrk' */ - case 0x0458: /* 'BrtCFIcon' */ - case 0x047A: /* 'BrtCFRuleExt' */ - case 0x01D7: /* 'BrtCFVO' */ - case 0x041A: /* 'BrtCFVO14' */ - case 0x0289: /* 'BrtCellIgnoreEC' */ - case 0x0451: /* 'BrtCellIgnoreEC14' */ - case 0x0031: /* 'BrtCellMeta' */ - case 0x024D: /* 'BrtCellSmartTagProperty' */ - case 0x025F: /* 'BrtCellWatch' */ - case 0x0234: /* 'BrtColor' */ - case 0x041F: /* 'BrtColor14' */ - case 0x00A8: /* 'BrtColorFilter' */ - case 0x00AE: /* 'BrtCustomFilter' */ - case 0x049C: /* 'BrtCustomFilter14' */ - case 0x01F3: /* 'BrtDRef' */ - case 0x01FB: /* 'BrtDXF' */ - case 0x0226: /* 'BrtDrawing' */ - case 0x00AB: /* 'BrtDynamicFilter' */ - case 0x00A7: /* 'BrtFilter' */ - case 0x0499: /* 'BrtFilter14' */ - case 0x00A9: /* 'BrtIconFilter' */ - case 0x049D: /* 'BrtIconFilter14' */ - case 0x0227: /* 'BrtLegacyDrawing' */ - case 0x0228: /* 'BrtLegacyDrawingHF' */ - case 0x0295: /* 'BrtListPart' */ - case 0x027F: /* 'BrtOleObject' */ - case 0x01DE: /* 'BrtPageSetup' */ - case 0x0219: /* 'BrtPhoneticInfo' */ - case 0x01DD: /* 'BrtPrintOptions' */ - case 0x0218: /* 'BrtRangeProtection' */ - case 0x044F: /* 'BrtRangeProtection14' */ - case 0x02A8: /* 'BrtRangeProtectionIso' */ - case 0x0450: /* 'BrtRangeProtectionIso14' */ - case 0x0400: /* 'BrtRwDescent' */ - case 0x0297: /* 'BrtSheetCalcProp' */ - case 0x0217: /* 'BrtSheetProtection' */ - case 0x02A6: /* 'BrtSheetProtectionIso' */ - case 0x01F8: /* 'BrtSlc' */ - case 0x0413: /* 'BrtSparkline' */ - case 0x01AC: /* 'BrtTable' */ - case 0x00AA: /* 'BrtTop10Filter' */ - case 0x0C00: /* 'BrtUid' */ - case 0x0032: /* 'BrtValueMeta' */ - case 0x0816: /* 'BrtWebExtension' */ - case 0x0415: /* 'BrtWsFmtInfoEx14' */ - break; - - case 0x0023: /* 'BrtFRTBegin' */ - pass = true; break; - case 0x0024: /* 'BrtFRTEnd' */ - pass = false; break; - case 0x0025: /* 'BrtACBegin' */ - state.push(R_n); pass = true; break; - case 0x0026: /* 'BrtACEnd' */ - state.pop(); pass = false; break; - - default: - if((R_n||"").indexOf("Begin") > 0){/* empty */} - else if((R_n||"").indexOf("End") > 0){/* empty */} - else if(!pass || opts.WTF) throw new Error("Unexpected record " + RT + " " + R_n); - } - }, opts); - - delete opts.supbooks; - delete opts['!row']; - - if(!s["!ref"] && (refguess.s.r < 2000000 || ref && (ref.e.r > 0 || ref.e.c > 0 || ref.s.r > 0 || ref.s.c > 0))) s["!ref"] = encode_range(ref || refguess); - if(opts.sheetRows && s["!ref"]) { - var tmpref = safe_decode_range(s["!ref"]); - if(opts.sheetRows <= +tmpref.e.r) { - tmpref.e.r = opts.sheetRows - 1; - if(tmpref.e.r > refguess.e.r) tmpref.e.r = refguess.e.r; - if(tmpref.e.r < tmpref.s.r) tmpref.s.r = tmpref.e.r; - if(tmpref.e.c > refguess.e.c) tmpref.e.c = refguess.e.c; - if(tmpref.e.c < tmpref.s.c) tmpref.s.c = tmpref.e.c; - s["!fullref"] = s["!ref"]; - s["!ref"] = encode_range(tmpref); - } - } - if(merges.length > 0) s["!merges"] = merges; - if(colinfo.length > 0) s["!cols"] = colinfo; - if(rowinfo.length > 0) s["!rows"] = rowinfo; - return s; -} - -/* TODO: something useful -- this is a stub */ -function write_ws_bin_cell(ba, cell, R, C, opts, ws, last_seen) { - if(cell.v === undefined) return false; - var vv = ""; - switch(cell.t) { - case 'b': vv = cell.v ? "1" : "0"; break; - case 'd': // no BrtCellDate :( - cell = dup(cell); - cell.z = cell.z || SSF._table[14]; - cell.v = datenum(parseDate(cell.v)); cell.t = 'n'; - break; - /* falls through */ - case 'n': case 'e': vv = ''+cell.v; break; - default: vv = cell.v; break; - } - var o = ({r:R, c:C}); - /* TODO: cell style */ - o.s = get_cell_style(opts.cellXfs, cell, opts); - if(cell.l) ws['!links'].push([encode_cell(o), cell.l]); - if(cell.c) ws['!comments'].push([encode_cell(o), cell.c]); - switch(cell.t) { - case 's': case 'str': - if(opts.bookSST) { - vv = get_sst_id(opts.Strings, (cell.v), opts.revStrings); - o.t = "s"; o.v = vv; - if(last_seen) write_record(ba, "BrtShortIsst", write_BrtShortIsst(cell, o)); - else write_record(ba, "BrtCellIsst", write_BrtCellIsst(cell, o)); - } else { - o.t = "str"; - if(last_seen) write_record(ba, "BrtShortSt", write_BrtShortSt(cell, o)); - else write_record(ba, "BrtCellSt", write_BrtCellSt(cell, o)); - } - return true; - case 'n': - /* TODO: determine threshold for Real vs RK */ - if(cell.v == (cell.v | 0) && cell.v > -1000 && cell.v < 1000) { - if(last_seen) write_record(ba, "BrtShortRk", write_BrtShortRk(cell, o)); - else write_record(ba, "BrtCellRk", write_BrtCellRk(cell, o)); - } else { - if(last_seen) write_record(ba, "BrtShortReal", write_BrtShortReal(cell, o)); - else write_record(ba, "BrtCellReal", write_BrtCellReal(cell, o)); - } return true; - case 'b': - o.t = "b"; - if(last_seen) write_record(ba, "BrtShortBool", write_BrtShortBool(cell, o)); - else write_record(ba, "BrtCellBool", write_BrtCellBool(cell, o)); - return true; - case 'e': - o.t = "e"; - if(last_seen) write_record(ba, "BrtShortError", write_BrtShortError(cell, o)); - else write_record(ba, "BrtCellError", write_BrtCellError(cell, o)); - return true; - } - if(last_seen) write_record(ba, "BrtShortBlank", write_BrtShortBlank(cell, o)); - else write_record(ba, "BrtCellBlank", write_BrtCellBlank(cell, o)); - return true; -} - -function write_CELLTABLE(ba, ws, idx, opts) { - var range = safe_decode_range(ws['!ref'] || "A1"), ref, rr = "", cols = []; - write_record(ba, 'BrtBeginSheetData'); - var dense = Array.isArray(ws); - var cap = range.e.r; - if(ws['!rows']) cap = Math.max(range.e.r, ws['!rows'].length - 1); - for(var R = range.s.r; R <= cap; ++R) { - rr = encode_row(R); - /* [ACCELLTABLE] */ - /* BrtRowHdr */ - write_row_header(ba, ws, range, R); - var last_seen = false; - if(R <= range.e.r) for(var C = range.s.c; C <= range.e.c; ++C) { - /* *16384CELL */ - if(R === range.s.r) cols[C] = encode_col(C); - ref = cols[C] + rr; - var cell = dense ? (ws[R]||[])[C] : ws[ref]; - if(!cell) { last_seen = false; continue; } - /* write cell */ - last_seen = write_ws_bin_cell(ba, cell, R, C, opts, ws, last_seen); - } - } - write_record(ba, 'BrtEndSheetData'); -} - -function write_MERGECELLS(ba, ws) { - if(!ws || !ws['!merges']) return; - write_record(ba, 'BrtBeginMergeCells', write_BrtBeginMergeCells(ws['!merges'].length)); - ws['!merges'].forEach(function(m) { write_record(ba, 'BrtMergeCell', write_BrtMergeCell(m)); }); - write_record(ba, 'BrtEndMergeCells'); -} - -function write_COLINFOS(ba, ws) { - if(!ws || !ws['!cols']) return; - write_record(ba, 'BrtBeginColInfos'); - ws['!cols'].forEach(function(m, i) { if(m) write_record(ba, 'BrtColInfo', write_BrtColInfo(i, m)); }); - write_record(ba, 'BrtEndColInfos'); -} - -function write_IGNOREECS(ba, ws) { - if(!ws || !ws['!ref']) return; - write_record(ba, 'BrtBeginCellIgnoreECs'); - write_record(ba, 'BrtCellIgnoreEC', write_BrtCellIgnoreEC(safe_decode_range(ws['!ref']))); - write_record(ba, 'BrtEndCellIgnoreECs'); -} - -function write_HLINKS(ba, ws, rels) { - /* *BrtHLink */ - ws['!links'].forEach(function(l) { - if(!l[1].Target) return; - var rId = add_rels(rels, -1, l[1].Target.replace(/#.*$/, ""), RELS.HLINK); - write_record(ba, "BrtHLink", write_BrtHLink(l, rId)); - }); - delete ws['!links']; -} -function write_LEGACYDRAWING(ba, ws, idx, rels) { - /* [BrtLegacyDrawing] */ - if(ws['!comments'].length > 0) { - var rId = add_rels(rels, -1, "../drawings/vmlDrawing" + (idx+1) + ".vml", RELS.VML); - write_record(ba, "BrtLegacyDrawing", write_RelID("rId" + rId)); - ws['!legacy'] = rId; - } -} - -function write_AUTOFILTER(ba, ws, wb, idx) { - if(!ws['!autofilter']) return; - var data = ws['!autofilter']; - var ref = typeof data.ref === "string" ? data.ref : encode_range(data.ref); - - /* Update FilterDatabase defined name for the worksheet */ - if(!wb.Workbook) wb.Workbook = ({Sheets:[]}); - if(!wb.Workbook.Names) wb.Workbook.Names = []; - var names = wb.Workbook.Names; - var range = decode_range(ref); - if(range.s.r == range.e.r) { range.e.r = decode_range(ws["!ref"]).e.r; ref = encode_range(range); } - for(var i = 0; i < names.length; ++i) { - var name = names[i]; - if(name.Name != '_xlnm._FilterDatabase') continue; - if(name.Sheet != idx) continue; - name.Ref = "'" + wb.SheetNames[idx] + "'!" + ref; break; - } - if(i == names.length) names.push({ Name: '_xlnm._FilterDatabase', Sheet: idx, Ref: "'" + wb.SheetNames[idx] + "'!" + ref }); - - write_record(ba, "BrtBeginAFilter", write_UncheckedRfX(safe_decode_range(ref))); - /* *FILTERCOLUMN */ - /* [SORTSTATE] */ - /* BrtEndAFilter */ - write_record(ba, "BrtEndAFilter"); -} - -function write_WSVIEWS2(ba, ws, Workbook) { - write_record(ba, "BrtBeginWsViews"); - { /* 1*WSVIEW2 */ - /* [ACUID] */ - write_record(ba, "BrtBeginWsView", write_BrtBeginWsView(ws, Workbook)); - /* [BrtPane] */ - /* *4BrtSel */ - /* *4SXSELECT */ - /* *FRT */ - write_record(ba, "BrtEndWsView"); - } - /* *FRT */ - write_record(ba, "BrtEndWsViews"); -} - -function write_WSFMTINFO() { - /* [ACWSFMTINFO] */ - //write_record(ba, "BrtWsFmtInfo", write_BrtWsFmtInfo(ws)); -} - -function write_SHEETPROTECT(ba, ws) { - if(!ws['!protect']) return; - /* [BrtSheetProtectionIso] */ - write_record(ba, "BrtSheetProtection", write_BrtSheetProtection(ws['!protect'])); -} - -function write_ws_bin(idx, opts, wb, rels) { - var ba = buf_array(); - var s = wb.SheetNames[idx], ws = wb.Sheets[s] || {}; - var c = s; try { if(wb && wb.Workbook) c = wb.Workbook.Sheets[idx].CodeName || c; } catch(e) {} - var r = safe_decode_range(ws['!ref'] || "A1"); - if(r.e.c > 0x3FFF || r.e.r > 0xFFFFF) { - if(opts.WTF) throw new Error("Range " + (ws['!ref'] || "A1") + " exceeds format limit A1:XFD1048576"); - r.e.c = Math.min(r.e.c, 0x3FFF); - r.e.r = Math.min(r.e.c, 0xFFFFF); - } - ws['!links'] = []; - /* passed back to write_zip and removed there */ - ws['!comments'] = []; - write_record(ba, "BrtBeginSheet"); - if(wb.vbaraw || ws['!outline']) write_record(ba, "BrtWsProp", write_BrtWsProp(c, ws['!outline'])); - write_record(ba, "BrtWsDim", write_BrtWsDim(r)); - write_WSVIEWS2(ba, ws, wb.Workbook); - write_WSFMTINFO(ba, ws); - write_COLINFOS(ba, ws, idx, opts, wb); - write_CELLTABLE(ba, ws, idx, opts, wb); - /* [BrtSheetCalcProp] */ - write_SHEETPROTECT(ba, ws); - /* *([BrtRangeProtectionIso] BrtRangeProtection) */ - /* [SCENMAN] */ - write_AUTOFILTER(ba, ws, wb, idx); - /* [SORTSTATE] */ - /* [DCON] */ - /* [USERSHVIEWS] */ - write_MERGECELLS(ba, ws); - /* [BrtPhoneticInfo] */ - /* *CONDITIONALFORMATTING */ - /* [DVALS] */ - write_HLINKS(ba, ws, rels); - /* [BrtPrintOptions] */ - if(ws['!margins']) write_record(ba, "BrtMargins", write_BrtMargins(ws['!margins'])); - /* [BrtPageSetup] */ - /* [HEADERFOOTER] */ - /* [RWBRK] */ - /* [COLBRK] */ - /* *BrtBigName */ - /* [CELLWATCHES] */ - if(!opts || opts.ignoreEC || (opts.ignoreEC == (void 0))) write_IGNOREECS(ba, ws); - /* [SMARTTAGS] */ - /* [BrtDrawing] */ - write_LEGACYDRAWING(ba, ws, idx, rels); - /* [BrtLegacyDrawingHF] */ - /* [BrtBkHim] */ - /* [OLEOBJECTS] */ - /* [ACTIVEXCONTROLS] */ - /* [WEBPUBITEMS] */ - /* [LISTPARTS] */ - /* FRTWORKSHEET */ - write_record(ba, "BrtEndSheet"); - return ba.end(); -} -RELS.CHART = "http://schemas.openxmlformats.org/officeDocument/2006/relationships/chart"; -RELS.CHARTEX = "http://schemas.microsoft.com/office/2014/relationships/chartEx"; - -function parse_Cache(data) { - var col = []; - var num = data.match(/^/); - var f; - - /* 21.2.2.150 pt CT_NumVal */ - (data.match(/(.*?)<\/c:pt>/mg)||[]).forEach(function(pt) { - var q = pt.match(/(.*)<\/c:v><\/c:pt>/); - if(!q) return; - col[+q[1]] = num ? +q[2] : q[2]; - }); - - /* 21.2.2.71 formatCode CT_Xstring */ - var nf = unescapexml((data.match(/([\s\S]*?)<\/c:formatCode>/) || ["","General"])[1]); - - (data.match(/(.*?)<\/c:f>/mg)||[]).forEach(function(F) { f = F.replace(/<.*?>/g,""); }); - - return [col, nf, f]; -} - -/* 21.2 DrawingML - Charts */ -function parse_chart(data, name, opts, rels, wb, csheet) { - var cs = ((csheet || {"!type":"chart"})); - if(!data) return csheet; - /* 21.2.2.27 chart CT_Chart */ - - var C = 0, R = 0, col = "A"; - var refguess = {s: {r:2000000, c:2000000}, e: {r:0, c:0} }; - - /* 21.2.2.120 numCache CT_NumData */ - (data.match(/[\s\S]*?<\/c:numCache>/gm)||[]).forEach(function(nc) { - var cache = parse_Cache(nc); - refguess.s.r = refguess.s.c = 0; - refguess.e.c = C; - col = encode_col(C); - cache[0].forEach(function(n,i) { - cs[col + encode_row(i)] = {t:'n', v:n, z:cache[1] }; - R = i; - }); - if(refguess.e.r < R) refguess.e.r = R; - ++C; - }); - if(C > 0) cs["!ref"] = encode_range(refguess); - return cs; -} -RELS.CS = "http://schemas.openxmlformats.org/officeDocument/2006/relationships/chartsheet"; - -var CS_XML_ROOT = writextag('chartsheet', null, { - 'xmlns': XMLNS.main[0], - 'xmlns:r': XMLNS.r -}); - -/* 18.3 Worksheets also covers Chartsheets */ -function parse_cs_xml(data, opts, idx, rels, wb) { - if(!data) return data; - /* 18.3.1.12 chartsheet CT_ChartSheet */ - if(!rels) rels = {'!id':{}}; - var s = ({'!type':"chart", '!drawel':null, '!rel':""}); - var m; - - /* 18.3.1.83 sheetPr CT_ChartsheetPr */ - var sheetPr = data.match(sheetprregex); - if(sheetPr) parse_ws_xml_sheetpr(sheetPr[0], s, wb, idx); - - /* 18.3.1.36 drawing CT_Drawing */ - if((m = data.match(/drawing r:id="(.*?)"/))) s['!rel'] = m[1]; - - if(rels['!id'][s['!rel']]) s['!drawel'] = rels['!id'][s['!rel']]; - return s; -} -function write_cs_xml(idx, opts, wb, rels) { - var o = [XML_HEADER, CS_XML_ROOT]; - o[o.length] = writextag("drawing", null, {"r:id": "rId1"}); - add_rels(rels, -1, "../drawings/drawing" + (idx+1) + ".xml", RELS.DRAW); - if(o.length>2) { o[o.length] = (''); o[1]=o[1].replace("/>",">"); } - return o.join(""); -} - -/* [MS-XLSB] 2.4.331 BrtCsProp */ -function parse_BrtCsProp(data, length) { - data.l += 10; - var name = parse_XLWideString(data, length - 10); - return { name: name }; -} - -/* [MS-XLSB] 2.1.7.7 Chart Sheet */ -function parse_cs_bin(data, opts, idx, rels, wb) { - if(!data) return data; - if(!rels) rels = {'!id':{}}; - var s = {'!type':"chart", '!drawel':null, '!rel':""}; - var state = []; - var pass = false; - recordhopper(data, function cs_parse(val, R_n, RT) { - switch(RT) { - - case 0x0226: /* 'BrtDrawing' */ - s['!rel'] = val; break; - - case 0x028B: /* 'BrtCsProp' */ - if(!wb.Sheets[idx]) wb.Sheets[idx] = {}; - if(val.name) wb.Sheets[idx].CodeName = val.name; - break; - - case 0x0232: /* 'BrtBkHim' */ - case 0x028C: /* 'BrtCsPageSetup' */ - case 0x029D: /* 'BrtCsProtection' */ - case 0x02A7: /* 'BrtCsProtectionIso' */ - case 0x0227: /* 'BrtLegacyDrawing' */ - case 0x0228: /* 'BrtLegacyDrawingHF' */ - case 0x01DC: /* 'BrtMargins' */ - case 0x0C00: /* 'BrtUid' */ - break; - - case 0x0023: /* 'BrtFRTBegin' */ - pass = true; break; - case 0x0024: /* 'BrtFRTEnd' */ - pass = false; break; - case 0x0025: /* 'BrtACBegin' */ - state.push(R_n); break; - case 0x0026: /* 'BrtACEnd' */ - state.pop(); break; - - default: - if((R_n||"").indexOf("Begin") > 0) state.push(R_n); - else if((R_n||"").indexOf("End") > 0) state.pop(); - else if(!pass || opts.WTF) throw new Error("Unexpected record " + RT + " " + R_n); - } - }, opts); - - if(rels['!id'][s['!rel']]) s['!drawel'] = rels['!id'][s['!rel']]; - return s; -} -function write_cs_bin() { - var ba = buf_array(); - write_record(ba, "BrtBeginSheet"); - /* [BrtCsProp] */ - /* CSVIEWS */ - /* [[BrtCsProtectionIso] BrtCsProtection] */ - /* [USERCSVIEWS] */ - /* [BrtMargins] */ - /* [BrtCsPageSetup] */ - /* [HEADERFOOTER] */ - /* BrtDrawing */ - /* [BrtLegacyDrawing] */ - /* [BrtLegacyDrawingHF] */ - /* [BrtBkHim] */ - /* [WEBPUBITEMS] */ - /* FRTCHARTSHEET */ - write_record(ba, "BrtEndSheet"); - return ba.end(); -} -/* 18.2.28 (CT_WorkbookProtection) Defaults */ -var WBPropsDef = [ - ['allowRefreshQuery', false, "bool"], - ['autoCompressPictures', true, "bool"], - ['backupFile', false, "bool"], - ['checkCompatibility', false, "bool"], - ['CodeName', ''], - ['date1904', false, "bool"], - ['defaultThemeVersion', 0, "int"], - ['filterPrivacy', false, "bool"], - ['hidePivotFieldList', false, "bool"], - ['promptedSolutions', false, "bool"], - ['publishItems', false, "bool"], - ['refreshAllConnections', false, "bool"], - ['saveExternalLinkValues', true, "bool"], - ['showBorderUnselectedTables', true, "bool"], - ['showInkAnnotation', true, "bool"], - ['showObjects', 'all'], - ['showPivotChartFilter', false, "bool"], - ['updateLinks', 'userSet'] -]; - -/* 18.2.30 (CT_BookView) Defaults */ -var WBViewDef = [ - ['activeTab', 0, "int"], - ['autoFilterDateGrouping', true, "bool"], - ['firstSheet', 0, "int"], - ['minimized', false, "bool"], - ['showHorizontalScroll', true, "bool"], - ['showSheetTabs', true, "bool"], - ['showVerticalScroll', true, "bool"], - ['tabRatio', 600, "int"], - ['visibility', 'visible'] - //window{Height,Width}, {x,y}Window -]; - -/* 18.2.19 (CT_Sheet) Defaults */ -var SheetDef = [ - //['state', 'visible'] -]; - -/* 18.2.2 (CT_CalcPr) Defaults */ -var CalcPrDef = [ - ['calcCompleted', 'true'], - ['calcMode', 'auto'], - ['calcOnSave', 'true'], - ['concurrentCalc', 'true'], - ['fullCalcOnLoad', 'false'], - ['fullPrecision', 'true'], - ['iterate', 'false'], - ['iterateCount', '100'], - ['iterateDelta', '0.001'], - ['refMode', 'A1'] -]; - -/* 18.2.3 (CT_CustomWorkbookView) Defaults */ -/*var CustomWBViewDef = [ - ['autoUpdate', 'false'], - ['changesSavedWin', 'false'], - ['includeHiddenRowCol', 'true'], - ['includePrintSettings', 'true'], - ['maximized', 'false'], - ['minimized', 'false'], - ['onlySync', 'false'], - ['personalView', 'false'], - ['showComments', 'commIndicator'], - ['showFormulaBar', 'true'], - ['showHorizontalScroll', 'true'], - ['showObjects', 'all'], - ['showSheetTabs', 'true'], - ['showStatusbar', 'true'], - ['showVerticalScroll', 'true'], - ['tabRatio', '600'], - ['xWindow', '0'], - ['yWindow', '0'] -];*/ - -function push_defaults_array(target, defaults) { - for(var j = 0; j != target.length; ++j) { var w = target[j]; - for(var i=0; i != defaults.length; ++i) { var z = defaults[i]; - if(w[z[0]] == null) w[z[0]] = z[1]; - else switch(z[2]) { - case "bool": if(typeof w[z[0]] == "string") w[z[0]] = parsexmlbool(w[z[0]]); break; - case "int": if(typeof w[z[0]] == "string") w[z[0]] = parseInt(w[z[0]], 10); break; - } - } - } -} -function push_defaults(target, defaults) { - for(var i = 0; i != defaults.length; ++i) { var z = defaults[i]; - if(target[z[0]] == null) target[z[0]] = z[1]; - else switch(z[2]) { - case "bool": if(typeof target[z[0]] == "string") target[z[0]] = parsexmlbool(target[z[0]]); break; - case "int": if(typeof target[z[0]] == "string") target[z[0]] = parseInt(target[z[0]], 10); break; - } - } -} - -function parse_wb_defaults(wb) { - push_defaults(wb.WBProps, WBPropsDef); - push_defaults(wb.CalcPr, CalcPrDef); - - push_defaults_array(wb.WBView, WBViewDef); - push_defaults_array(wb.Sheets, SheetDef); - - _ssfopts.date1904 = parsexmlbool(wb.WBProps.date1904); -} - -function safe1904(wb) { - /* TODO: store date1904 somewhere else */ - if(!wb.Workbook) return "false"; - if(!wb.Workbook.WBProps) return "false"; - return parsexmlbool(wb.Workbook.WBProps.date1904) ? "true" : "false"; -} - -var badchars = "][*?\/\\".split(""); -function check_ws_name(n, safe) { - if(n.length > 31) { if(safe) return false; throw new Error("Sheet names cannot exceed 31 chars"); } - var _good = true; - badchars.forEach(function(c) { - if(n.indexOf(c) == -1) return; - if(!safe) throw new Error("Sheet name cannot contain : \\ / ? * [ ]"); - _good = false; - }); - return _good; -} -function check_wb_names(N, S, codes) { - N.forEach(function(n,i) { - check_ws_name(n); - for(var j = 0; j < i; ++j) if(n == N[j]) throw new Error("Duplicate Sheet Name: " + n); - if(codes) { - var cn = (S && S[i] && S[i].CodeName) || n; - if(cn.charCodeAt(0) == 95 && cn.length > 22) throw new Error("Bad Code Name: Worksheet" + cn); - } - }); -} -function check_wb(wb) { - if(!wb || !wb.SheetNames || !wb.Sheets) throw new Error("Invalid Workbook"); - if(!wb.SheetNames.length) throw new Error("Workbook is empty"); - var Sheets = (wb.Workbook && wb.Workbook.Sheets) || []; - check_wb_names(wb.SheetNames, Sheets, !!wb.vbaraw); - for(var i = 0; i < wb.SheetNames.length; ++i) check_ws(wb.Sheets[wb.SheetNames[i]], wb.SheetNames[i], i); - /* TODO: validate workbook */ -} -/* 18.2 Workbook */ -var wbnsregex = /<\w+:workbook/; -function parse_wb_xml(data, opts) { - if(!data) throw new Error("Could not find file"); - var wb = { AppVersion:{}, WBProps:{}, WBView:[], Sheets:[], CalcPr:{}, Names:[], xmlns: "" }; - var pass = false, xmlns = "xmlns"; - var dname = {}, dnstart = 0; - data.replace(tagregex, function xml_wb(x, idx) { - var y = parsexmltag(x); - switch(strip_ns(y[0])) { - case '': break; - - /* 18.2.13 fileVersion CT_FileVersion ? */ - case '': case '': break; - - /* 18.2.12 fileSharing CT_FileSharing ? */ - case '': break; - - /* 18.2.28 workbookPr CT_WorkbookPr ? */ - case '': - WBPropsDef.forEach(function(w) { - if(y[w[0]] == null) return; - switch(w[2]) { - case "bool": wb.WBProps[w[0]] = parsexmlbool(y[w[0]]); break; - case "int": wb.WBProps[w[0]] = parseInt(y[w[0]], 10); break; - default: wb.WBProps[w[0]] = y[w[0]]; - } - }); - if(y.codeName) wb.WBProps.CodeName = utf8read(y.codeName); - break; - case '': break; - - /* 18.2.29 workbookProtection CT_WorkbookProtection ? */ - case '': break; - - /* 18.2.1 bookViews CT_BookViews ? */ - case '': case '': break; - /* 18.2.30 workbookView CT_BookView + */ - case '': delete y[0]; wb.WBView.push(y); break; - case '': break; - - /* 18.2.20 sheets CT_Sheets 1 */ - case '': case '': break; // aggregate sheet - /* 18.2.19 sheet CT_Sheet + */ - case '': break; - - /* 18.2.15 functionGroups CT_FunctionGroups ? */ - case '': break; - /* 18.2.14 functionGroup CT_FunctionGroup + */ - case '': case '': break; - /* 18.2.8 externalReference CT_ExternalReference + */ - case '': break; - case '': case '': pass=false; break; - /* 18.2.5 definedName CT_DefinedName + */ - case '': { - dname.Ref = unescapexml(utf8read(data.slice(dnstart, idx))); - wb.Names.push(dname); - } break; - case '': break; - - /* 18.2.2 calcPr CT_CalcPr ? */ - case '': delete y[0]; wb.CalcPr = y; break; - case '': break; - - /* 18.2.16 oleSize CT_OleSize ? (ref required) */ - case '': case '': case '': break; - - /* 18.2.18 pivotCaches CT_PivotCaches ? */ - case '': case '': case '': break; - - /* 18.2.23 smartTagTypes CT_SmartTagTypes ? */ - case '': case '': break; - /* 18.2.22 smartTagType CT_SmartTagType ? */ - case '': break; - - /* 18.2.11 fileRecoveryPr CT_FileRecoveryPr ? */ - case '': break; - - /* 18.2.26 webPublishObjects CT_WebPublishObjects ? */ - case '': case '': break; - /* 18.2.25 webPublishObject CT_WebPublishObject ? */ - case '': case '': case '': break; - /* 18.2.7 ext CT_Extension + */ - case '': pass=false; break; - - /* Others */ - case '': pass=true; break; - case '': pass=false; break; - - /* TODO */ - case ' 0); - - /* fileVersion */ - /* fileSharing */ - - var workbookPr = ({codeName:"ThisWorkbook"}); - if(wb.Workbook && wb.Workbook.WBProps) { - WBPropsDef.forEach(function(x) { -if((wb.Workbook.WBProps[x[0]]) == null) return; - if((wb.Workbook.WBProps[x[0]]) == x[1]) return; - workbookPr[x[0]] = (wb.Workbook.WBProps[x[0]]); - }); -if(wb.Workbook.WBProps.CodeName) { workbookPr.codeName = wb.Workbook.WBProps.CodeName; delete workbookPr.CodeName; } - } - o[o.length] = (writextag('workbookPr', null, workbookPr)); - - /* workbookProtection */ - - var sheets = wb.Workbook && wb.Workbook.Sheets || []; - var i = 0; - - /* bookViews only written if first worksheet is hidden */ - if(sheets && sheets[0] && !!sheets[0].Hidden) { - o[o.length] = ""; - for(i = 0; i != wb.SheetNames.length; ++i) { - if(!sheets[i]) break; - if(!sheets[i].Hidden) break; - } - if(i == wb.SheetNames.length) i = 0; - o[o.length] = ''; - o[o.length] = ""; - } - - o[o.length] = ""; - for(i = 0; i != wb.SheetNames.length; ++i) { - var sht = ({name:escapexml(wb.SheetNames[i].slice(0,31))}); - sht.sheetId = ""+(i+1); - sht["r:id"] = "rId"+(i+1); - if(sheets[i]) switch(sheets[i].Hidden) { - case 1: sht.state = "hidden"; break; - case 2: sht.state = "veryHidden"; break; - } - o[o.length] = (writextag('sheet',null,sht)); - } - o[o.length] = ""; - - /* functionGroups */ - /* externalReferences */ - - if(write_names) { - o[o.length] = ""; - if(wb.Workbook && wb.Workbook.Names) wb.Workbook.Names.forEach(function(n) { - var d = {name:n.Name}; - if(n.Comment) d.comment = n.Comment; - if(n.Sheet != null) d.localSheetId = ""+n.Sheet; - if(n.Hidden) d.hidden = "1"; - if(!n.Ref) return; - o[o.length] = writextag('definedName', escapexml(n.Ref), d); - }); - o[o.length] = ""; - } - - /* calcPr */ - /* oleSize */ - /* customWorkbookViews */ - /* pivotCaches */ - /* smartTagPr */ - /* smartTagTypes */ - /* webPublishing */ - /* fileRecoveryPr */ - /* webPublishObjects */ - /* extLst */ - - if(o.length>2){ o[o.length] = ''; o[1]=o[1].replace("/>",">"); } - return o.join(""); -} -/* [MS-XLSB] 2.4.304 BrtBundleSh */ -function parse_BrtBundleSh(data, length) { - var z = {}; - z.Hidden = data.read_shift(4); //hsState ST_SheetState - z.iTabID = data.read_shift(4); - z.strRelID = parse_RelID(data,length-8); - z.name = parse_XLWideString(data); - return z; -} -function write_BrtBundleSh(data, o) { - if(!o) o = new_buf(127); - o.write_shift(4, data.Hidden); - o.write_shift(4, data.iTabID); - write_RelID(data.strRelID, o); - write_XLWideString(data.name.slice(0,31), o); - return o.length > o.l ? o.slice(0, o.l) : o; -} - -/* [MS-XLSB] 2.4.815 BrtWbProp */ -function parse_BrtWbProp(data, length) { - var o = ({}); - var flags = data.read_shift(4); - o.defaultThemeVersion = data.read_shift(4); - var strName = (length > 8) ? parse_XLWideString(data) : ""; - if(strName.length > 0) o.CodeName = strName; - o.autoCompressPictures = !!(flags & 0x10000); - o.backupFile = !!(flags & 0x40); - o.checkCompatibility = !!(flags & 0x1000); - o.date1904 = !!(flags & 0x01); - o.filterPrivacy = !!(flags & 0x08); - o.hidePivotFieldList = !!(flags & 0x400); - o.promptedSolutions = !!(flags & 0x10); - o.publishItems = !!(flags & 0x800); - o.refreshAllConnections = !!(flags & 0x40000); - o.saveExternalLinkValues = !!(flags & 0x80); - o.showBorderUnselectedTables = !!(flags & 0x04); - o.showInkAnnotation = !!(flags & 0x20); - o.showObjects = ["all", "placeholders", "none"][(flags >> 13) & 0x03]; - o.showPivotChartFilter = !!(flags & 0x8000); - o.updateLinks = ["userSet", "never", "always"][(flags >> 8) & 0x03]; - return o; -} -function write_BrtWbProp(data, o) { - if(!o) o = new_buf(72); - var flags = 0; - if(data) { - /* TODO: mirror parse_BrtWbProp fields */ - if(data.filterPrivacy) flags |= 0x08; - } - o.write_shift(4, flags); - o.write_shift(4, 0); - write_XLSBCodeName(data && data.CodeName || "ThisWorkbook", o); - return o.slice(0, o.l); -} - -function parse_BrtFRTArchID$(data, length) { - var o = {}; - data.read_shift(4); - o.ArchID = data.read_shift(4); - data.l += length - 8; - return o; -} - -/* [MS-XLSB] 2.4.687 BrtName */ -function parse_BrtName(data, length, opts) { - var end = data.l + length; - data.l += 4; //var flags = data.read_shift(4); - data.l += 1; //var chKey = data.read_shift(1); - var itab = data.read_shift(4); - var name = parse_XLNameWideString(data); - var formula = parse_XLSBNameParsedFormula(data, 0, opts); - var comment = parse_XLNullableWideString(data); - //if(0 /* fProc */) { - // unusedstring1: XLNullableWideString - // description: XLNullableWideString - // helpTopic: XLNullableWideString - // unusedstring2: XLNullableWideString - //} - data.l = end; - var out = ({Name:name, Ptg:formula}); - if(itab < 0xFFFFFFF) out.Sheet = itab; - if(comment) out.Comment = comment; - return out; -} - -/* [MS-XLSB] 2.1.7.61 Workbook */ -function parse_wb_bin(data, opts) { - var wb = { AppVersion:{}, WBProps:{}, WBView:[], Sheets:[], CalcPr:{}, xmlns: "" }; - var state = []; - var pass = false; - - if(!opts) opts = {}; - opts.biff = 12; - - var Names = []; - var supbooks = ([[]]); - supbooks.SheetNames = []; - supbooks.XTI = []; - - XLSBRecordEnum[0x0010] = { n:"BrtFRTArchID$", f:parse_BrtFRTArchID$ }; - - recordhopper(data, function hopper_wb(val, R_n, RT) { - switch(RT) { - case 0x009C: /* 'BrtBundleSh' */ - supbooks.SheetNames.push(val.name); - wb.Sheets.push(val); break; - - case 0x0099: /* 'BrtWbProp' */ - wb.WBProps = val; break; - - case 0x0027: /* 'BrtName' */ - if(val.Sheet != null) opts.SID = val.Sheet; - val.Ref = stringify_formula(val.Ptg, null, null, supbooks, opts); - delete opts.SID; - delete val.Ptg; - Names.push(val); - break; - case 0x040C: /* 'BrtNameExt' */ break; - - case 0x0165: /* 'BrtSupSelf' */ - case 0x0166: /* 'BrtSupSame' */ - case 0x0163: /* 'BrtSupBookSrc' */ - case 0x029B: /* 'BrtSupAddin' */ - if(!supbooks[0].length) supbooks[0] = [RT, val]; - else supbooks.push([RT, val]); - supbooks[supbooks.length - 1].XTI = []; - break; - case 0x016A: /* 'BrtExternSheet' */ - if(supbooks.length === 0) { supbooks[0] = []; supbooks[0].XTI = []; } - supbooks[supbooks.length - 1].XTI = supbooks[supbooks.length - 1].XTI.concat(val); - supbooks.XTI = supbooks.XTI.concat(val); - break; - case 0x0169: /* 'BrtPlaceholderName' */ - break; - - case 0x0817: /* 'BrtAbsPath15' */ - case 0x009E: /* 'BrtBookView' */ - case 0x008F: /* 'BrtBeginBundleShs' */ - case 0x0298: /* 'BrtBeginFnGroup' */ - case 0x0161: /* 'BrtBeginExternals' */ - break; - - /* case 'BrtModelTimeGroupingCalcCol' */ - case 0x0C00: /* 'BrtUid' */ - case 0x0C01: /* 'BrtRevisionPtr' */ - case 0x0216: /* 'BrtBookProtection' */ - case 0x02A5: /* 'BrtBookProtectionIso' */ - case 0x009D: /* 'BrtCalcProp' */ - case 0x0262: /* 'BrtCrashRecErr' */ - case 0x0802: /* 'BrtDecoupledPivotCacheID' */ - case 0x009B: /* 'BrtFileRecover' */ - case 0x0224: /* 'BrtFileSharing' */ - case 0x02A4: /* 'BrtFileSharingIso' */ - case 0x0080: /* 'BrtFileVersion' */ - case 0x0299: /* 'BrtFnGroup' */ - case 0x0850: /* 'BrtModelRelationship' */ - case 0x084D: /* 'BrtModelTable' */ - case 0x0225: /* 'BrtOleSize' */ - case 0x0805: /* 'BrtPivotTableRef' */ - case 0x0254: /* 'BrtSmartTagType' */ - case 0x081C: /* 'BrtTableSlicerCacheID' */ - case 0x081B: /* 'BrtTableSlicerCacheIDs' */ - case 0x0822: /* 'BrtTimelineCachePivotCacheID' */ - case 0x018D: /* 'BrtUserBookView' */ - case 0x009A: /* 'BrtWbFactoid' */ - case 0x045D: /* 'BrtWbProp14' */ - case 0x0229: /* 'BrtWebOpt' */ - case 0x082B: /* 'BrtWorkBookPr15' */ - break; - - case 0x0023: /* 'BrtFRTBegin' */ - state.push(R_n); pass = true; break; - case 0x0024: /* 'BrtFRTEnd' */ - state.pop(); pass = false; break; - case 0x0025: /* 'BrtACBegin' */ - state.push(R_n); pass = true; break; - case 0x0026: /* 'BrtACEnd' */ - state.pop(); pass = false; break; - - case 0x0010: /* 'BrtFRTArchID$' */ break; - - default: - if((R_n||"").indexOf("Begin") > 0){/* empty */} - else if((R_n||"").indexOf("End") > 0){/* empty */} - else if(!pass || (opts.WTF && state[state.length-1] != "BrtACBegin" && state[state.length-1] != "BrtFRTBegin")) throw new Error("Unexpected record " + RT + " " + R_n); - } - }, opts); - - parse_wb_defaults(wb); - - // $FlowIgnore - wb.Names = Names; - - (wb).supbooks = supbooks; - return wb; -} - -function write_BUNDLESHS(ba, wb) { - write_record(ba, "BrtBeginBundleShs"); - for(var idx = 0; idx != wb.SheetNames.length; ++idx) { - var viz = wb.Workbook && wb.Workbook.Sheets && wb.Workbook.Sheets[idx] && wb.Workbook.Sheets[idx].Hidden || 0; - var d = { Hidden: viz, iTabID: idx+1, strRelID: 'rId' + (idx+1), name: wb.SheetNames[idx] }; - write_record(ba, "BrtBundleSh", write_BrtBundleSh(d)); - } - write_record(ba, "BrtEndBundleShs"); -} - -/* [MS-XLSB] 2.4.649 BrtFileVersion */ -function write_BrtFileVersion(data, o) { - if(!o) o = new_buf(127); - for(var i = 0; i != 4; ++i) o.write_shift(4, 0); - write_XLWideString("SheetJS", o); - write_XLWideString(XLSX.version, o); - write_XLWideString(XLSX.version, o); - write_XLWideString("7262", o); - return o.length > o.l ? o.slice(0, o.l) : o; -} - -/* [MS-XLSB] 2.4.301 BrtBookView */ -function write_BrtBookView(idx, o) { - if(!o) o = new_buf(29); - o.write_shift(-4, 0); - o.write_shift(-4, 460); - o.write_shift(4, 28800); - o.write_shift(4, 17600); - o.write_shift(4, 500); - o.write_shift(4, idx); - o.write_shift(4, idx); - var flags = 0x78; - o.write_shift(1, flags); - return o.length > o.l ? o.slice(0, o.l) : o; -} - -function write_BOOKVIEWS(ba, wb) { - /* required if hidden tab appears before visible tab */ - if(!wb.Workbook || !wb.Workbook.Sheets) return; - var sheets = wb.Workbook.Sheets; - var i = 0, vistab = -1, hidden = -1; - for(; i < sheets.length; ++i) { - if(!sheets[i] || !sheets[i].Hidden && vistab == -1) vistab = i; - else if(sheets[i].Hidden == 1 && hidden == -1) hidden = i; - } - if(hidden > vistab) return; - write_record(ba, "BrtBeginBookViews"); - write_record(ba, "BrtBookView", write_BrtBookView(vistab)); - /* 1*(BrtBookView *FRT) */ - write_record(ba, "BrtEndBookViews"); -} - -/* [MS-XLSB] 2.4.305 BrtCalcProp */ -/*function write_BrtCalcProp(data, o) { - if(!o) o = new_buf(26); - o.write_shift(4,0); // force recalc - o.write_shift(4,1); - o.write_shift(4,0); - write_Xnum(0, o); - o.write_shift(-4, 1023); - o.write_shift(1, 0x33); - o.write_shift(1, 0x00); - return o; -}*/ - -/* [MS-XLSB] 2.4.646 BrtFileRecover */ -/*function write_BrtFileRecover(data, o) { - if(!o) o = new_buf(1); - o.write_shift(1,0); - return o; -}*/ - -/* [MS-XLSB] 2.1.7.61 Workbook */ -function write_wb_bin(wb, opts) { - var ba = buf_array(); - write_record(ba, "BrtBeginBook"); - write_record(ba, "BrtFileVersion", write_BrtFileVersion()); - /* [[BrtFileSharingIso] BrtFileSharing] */ - write_record(ba, "BrtWbProp", write_BrtWbProp(wb.Workbook && wb.Workbook.WBProps || null)); - /* [ACABSPATH] */ - /* [[BrtBookProtectionIso] BrtBookProtection] */ - write_BOOKVIEWS(ba, wb, opts); - write_BUNDLESHS(ba, wb, opts); - /* [FNGROUP] */ - /* [EXTERNALS] */ - /* *BrtName */ - /* write_record(ba, "BrtCalcProp", write_BrtCalcProp()); */ - /* [BrtOleSize] */ - /* *(BrtUserBookView *FRT) */ - /* [PIVOTCACHEIDS] */ - /* [BrtWbFactoid] */ - /* [SMARTTAGTYPES] */ - /* [BrtWebOpt] */ - /* write_record(ba, "BrtFileRecover", write_BrtFileRecover()); */ - /* [WEBPUBITEMS] */ - /* [CRERRS] */ - /* FRTWORKBOOK */ - write_record(ba, "BrtEndBook"); - - return ba.end(); -} -function parse_wb(data, name, opts) { - if(name.slice(-4)===".bin") return parse_wb_bin((data), opts); - return parse_wb_xml((data), opts); -} - -function parse_ws(data, name, idx, opts, rels, wb, themes, styles) { - if(name.slice(-4)===".bin") return parse_ws_bin((data), opts, idx, rels, wb, themes, styles); - return parse_ws_xml((data), opts, idx, rels, wb, themes, styles); -} - -function parse_cs(data, name, idx, opts, rels, wb, themes, styles) { - if(name.slice(-4)===".bin") return parse_cs_bin((data), opts, idx, rels, wb, themes, styles); - return parse_cs_xml((data), opts, idx, rels, wb, themes, styles); -} - -function parse_ms(data, name, idx, opts, rels, wb, themes, styles) { - if(name.slice(-4)===".bin") return parse_ms_bin((data), opts, idx, rels, wb, themes, styles); - return parse_ms_xml((data), opts, idx, rels, wb, themes, styles); -} - -function parse_ds(data, name, idx, opts, rels, wb, themes, styles) { - if(name.slice(-4)===".bin") return parse_ds_bin((data), opts, idx, rels, wb, themes, styles); - return parse_ds_xml((data), opts, idx, rels, wb, themes, styles); -} - -function parse_sty(data, name, themes, opts) { - if(name.slice(-4)===".bin") return parse_sty_bin((data), themes, opts); - return parse_sty_xml((data), themes, opts); -} - -function parse_theme(data, name, opts) { - return parse_theme_xml(data, opts); -} - -function parse_sst(data, name, opts) { - if(name.slice(-4)===".bin") return parse_sst_bin((data), opts); - return parse_sst_xml((data), opts); -} - -function parse_cmnt(data, name, opts) { - if(name.slice(-4)===".bin") return parse_comments_bin((data), opts); - return parse_comments_xml((data), opts); -} - -function parse_cc(data, name, opts) { - if(name.slice(-4)===".bin") return parse_cc_bin((data), name, opts); - return parse_cc_xml((data), name, opts); -} - -function parse_xlink(data, rel, name, opts) { - if(name.slice(-4)===".bin") return parse_xlink_bin((data), rel, name, opts); - return parse_xlink_xml((data), rel, name, opts); -} - -function write_wb(wb, name, opts) { - return (name.slice(-4)===".bin" ? write_wb_bin : write_wb_xml)(wb, opts); -} - -function write_ws(data, name, opts, wb, rels) { - return (name.slice(-4)===".bin" ? write_ws_bin : write_ws_xml)(data, opts, wb, rels); -} - -// eslint-disable-next-line no-unused-vars -function write_cs(data, name, opts, wb, rels) { - return (name.slice(-4)===".bin" ? write_cs_bin : write_cs_xml)(data, opts, wb, rels); -} - -function write_sty(data, name, opts) { - return (name.slice(-4)===".bin" ? write_sty_bin : write_sty_xml)(data, opts); -} - -function write_sst(data, name, opts) { - return (name.slice(-4)===".bin" ? write_sst_bin : write_sst_xml)(data, opts); -} - -function write_cmnt(data, name, opts) { - return (name.slice(-4)===".bin" ? write_comments_bin : write_comments_xml)(data, opts); -} -/* -function write_cc(data, name:string, opts) { - return (name.slice(-4)===".bin" ? write_cc_bin : write_cc_xml)(data, opts); -} -*/ -var attregexg2=/([\w:]+)=((?:")([^"]*)(?:")|(?:')([^']*)(?:'))/g; -var attregex2=/([\w:]+)=((?:")(?:[^"]*)(?:")|(?:')(?:[^']*)(?:'))/; -function xlml_parsexmltag(tag, skip_root) { - var words = tag.split(/\s+/); - var z = ([]); if(!skip_root) z[0] = words[0]; - if(words.length === 1) return z; - var m = tag.match(attregexg2), y, j, w, i; - if(m) for(i = 0; i != m.length; ++i) { - y = m[i].match(attregex2); -if((j=y[1].indexOf(":")) === -1) z[y[1]] = y[2].slice(1,y[2].length-1); - else { - if(y[1].slice(0,6) === "xmlns:") w = "xmlns"+y[1].slice(6); - else w = y[1].slice(j+1); - z[w] = y[2].slice(1,y[2].length-1); - } - } - return z; -} -function xlml_parsexmltagobj(tag) { - var words = tag.split(/\s+/); - var z = {}; - if(words.length === 1) return z; - var m = tag.match(attregexg2), y, j, w, i; - if(m) for(i = 0; i != m.length; ++i) { - y = m[i].match(attregex2); -if((j=y[1].indexOf(":")) === -1) z[y[1]] = y[2].slice(1,y[2].length-1); - else { - if(y[1].slice(0,6) === "xmlns:") w = "xmlns"+y[1].slice(6); - else w = y[1].slice(j+1); - z[w] = y[2].slice(1,y[2].length-1); - } - } - return z; -} - -// ---- - -function xlml_format(format, value) { - var fmt = XLMLFormatMap[format] || unescapexml(format); - if(fmt === "General") return SSF._general(value); - return SSF.format(fmt, value); -} - -function xlml_set_custprop(Custprops, key, cp, val) { - var oval = val; - switch((cp[0].match(/dt:dt="([\w.]+)"/)||["",""])[1]) { - case "boolean": oval = parsexmlbool(val); break; - case "i2": case "int": oval = parseInt(val, 10); break; - case "r4": case "float": oval = parseFloat(val); break; - case "date": case "dateTime.tz": oval = parseDate(val); break; - case "i8": case "string": case "fixed": case "uuid": case "bin.base64": break; - default: throw new Error("bad custprop:" + cp[0]); - } - Custprops[unescapexml(key)] = oval; -} - -function safe_format_xlml(cell, nf, o) { - if(cell.t === 'z') return; - if(!o || o.cellText !== false) try { - if(cell.t === 'e') { cell.w = cell.w || BErr[cell.v]; } - else if(nf === "General") { - if(cell.t === 'n') { - if((cell.v|0) === cell.v) cell.w = SSF._general_int(cell.v); - else cell.w = SSF._general_num(cell.v); - } - else cell.w = SSF._general(cell.v); - } - else cell.w = xlml_format(nf||"General", cell.v); - } catch(e) { if(o.WTF) throw e; } - try { - var z = XLMLFormatMap[nf]||nf||"General"; - if(o.cellNF) cell.z = z; - if(o.cellDates && cell.t == 'n' && SSF.is_date(z)) { - var _d = SSF.parse_date_code(cell.v); if(_d) { cell.t = 'd'; cell.v = new Date(_d.y, _d.m-1,_d.d,_d.H,_d.M,_d.S,_d.u); } - } - } catch(e) { if(o.WTF) throw e; } -} - -function process_style_xlml(styles, stag, opts) { - if(opts.cellStyles) { - if(stag.Interior) { - var I = stag.Interior; - if(I.Pattern) I.patternType = XLMLPatternTypeMap[I.Pattern] || I.Pattern; - } - } - styles[stag.ID] = stag; -} - -/* TODO: there must exist some form of OSP-blessed spec */ -function parse_xlml_data(xml, ss, data, cell, base, styles, csty, row, arrayf, o) { - var nf = "General", sid = cell.StyleID, S = {}; o = o || {}; - var interiors = []; - var i = 0; - if(sid === undefined && row) sid = row.StyleID; - if(sid === undefined && csty) sid = csty.StyleID; - while(styles[sid] !== undefined) { - if(styles[sid].nf) nf = styles[sid].nf; - if(styles[sid].Interior) interiors.push(styles[sid].Interior); - if(!styles[sid].Parent) break; - sid = styles[sid].Parent; - } - switch(data.Type) { - case 'Boolean': - cell.t = 'b'; - cell.v = parsexmlbool(xml); - break; - case 'String': - cell.t = 's'; cell.r = xlml_fixstr(unescapexml(xml)); - cell.v = (xml.indexOf("<") > -1 ? unescapexml(ss||xml).replace(/<.*?>/g, "") : cell.r); // todo: BR etc - break; - case 'DateTime': - if(xml.slice(-1) != "Z") xml += "Z"; - cell.v = (parseDate(xml) - new Date(Date.UTC(1899, 11, 30))) / (24 * 60 * 60 * 1000); - if(cell.v !== cell.v) cell.v = unescapexml(xml); - else if(cell.v<60) cell.v = cell.v -1; - if(!nf || nf == "General") nf = "yyyy-mm-dd"; - /* falls through */ - case 'Number': - if(cell.v === undefined) cell.v=+xml; - if(!cell.t) cell.t = 'n'; - break; - case 'Error': cell.t = 'e'; cell.v = RBErr[xml]; if(o.cellText !== false) cell.w = xml; break; - default: - if(xml == "" && ss == "") { cell.t = 'z'; } - else { cell.t = 's'; cell.v = xlml_fixstr(ss||xml); } - break; - } - safe_format_xlml(cell, nf, o); - if(o.cellFormula !== false) { - if(cell.Formula) { - var fstr = unescapexml(cell.Formula); - /* strictly speaking, the leading = is required but some writers omit */ - if(fstr.charCodeAt(0) == 61 /* = */) fstr = fstr.slice(1); - cell.f = rc_to_a1(fstr, base); - delete cell.Formula; - if(cell.ArrayRange == "RC") cell.F = rc_to_a1("RC:RC", base); - else if(cell.ArrayRange) { - cell.F = rc_to_a1(cell.ArrayRange, base); - arrayf.push([safe_decode_range(cell.F), cell.F]); - } - } else { - for(i = 0; i < arrayf.length; ++i) - if(base.r >= arrayf[i][0].s.r && base.r <= arrayf[i][0].e.r) - if(base.c >= arrayf[i][0].s.c && base.c <= arrayf[i][0].e.c) - cell.F = arrayf[i][1]; - } - } - if(o.cellStyles) { - interiors.forEach(function(x) { - if(!S.patternType && x.patternType) S.patternType = x.patternType; - }); - cell.s = S; - } - if(cell.StyleID !== undefined) cell.ixfe = cell.StyleID; -} - -function xlml_clean_comment(comment) { - comment.t = comment.v || ""; - comment.t = comment.t.replace(/\r\n/g,"\n").replace(/\r/g,"\n"); - comment.v = comment.w = comment.ixfe = undefined; -} - -function xlml_normalize(d) { - if(has_buf && Buffer.isBuffer(d)) return d.toString('utf8'); - if(typeof d === 'string') return d; - /* duktape */ - if(typeof Uint8Array !== 'undefined' && d instanceof Uint8Array) return utf8read(a2s(ab2a(d))); - throw new Error("Bad input format: expected Buffer or string"); -} - -/* TODO: Everything */ -/* UOS uses CJK in tags */ -var xlmlregex = /<(\/?)([^\s?>:\/]+)(?:[\s?:\/][^>]*)?>/mg; -//var xlmlregex = /<(\/?)([a-z0-9]*:|)(\w+)[^>]*>/mg; -function parse_xlml_xml(d, _opts) { - var opts = _opts || {}; - make_ssf(SSF); - var str = debom(xlml_normalize(d)); - if(opts.type == 'binary' || opts.type == 'array' || opts.type == 'base64') { - if(typeof cptable !== 'undefined') str = cptable.utils.decode(65001, char_codes(str)); - else str = utf8read(str); - } - var opening = str.slice(0, 1024).toLowerCase(), ishtml = false; - opening = opening.replace(/".*?"/g, ""); - if((opening.indexOf(">") & 1023) > Math.min((opening.indexOf(",") & 1023), (opening.indexOf(";")&1023))) { var _o = dup(opts); _o.type = "string"; return PRN.to_workbook(str, _o); } - if(opening.indexOf("= 0) ishtml = true; }); - if(ishtml) return HTML_.to_workbook(str, opts); - var Rn; - var state = [], tmp; - if(DENSE != null && opts.dense == null) opts.dense = DENSE; - var sheets = {}, sheetnames = [], cursheet = (opts.dense ? [] : {}), sheetname = ""; - var table = {}, cell = ({}), row = {};// eslint-disable-line no-unused-vars - var dtag = xlml_parsexmltag(''), didx = 0; - var c = 0, r = 0; - var refguess = {s: {r:2000000, c:2000000}, e: {r:0, c:0} }; - var styles = {}, stag = {}; - var ss = "", fidx = 0; - var merges = []; - var Props = {}, Custprops = {}, pidx = 0, cp = []; - var comments = [], comment = ({}); - var cstys = [], csty, seencol = false; - var arrayf = []; - var rowinfo = [], rowobj = {}, cc = 0, rr = 0; - var Workbook = ({ Sheets:[], WBProps:{date1904:false} }), wsprops = {}; - xlmlregex.lastIndex = 0; - str = str.replace(//mg,""); - var raw_Rn3 = ""; - while((Rn = xlmlregex.exec(str))) switch((Rn[3] = (raw_Rn3 = Rn[3]).toLowerCase())) { - case 'data' /*case 'Data'*/: - if(raw_Rn3 == "data") { - if(Rn[1]==='/'){if((tmp=state.pop())[0]!==Rn[3]) throw new Error("Bad state: "+tmp.join("|"));} - else if(Rn[0].charAt(Rn[0].length-2) !== '/') state.push([Rn[3], true]); - break; - } - if(state[state.length-1][1]) break; - if(Rn[1]==='/') parse_xlml_data(str.slice(didx, Rn.index), ss, dtag, state[state.length-1][0]==/*"Comment"*/"comment"?comment:cell, {c:c,r:r}, styles, cstys[c], row, arrayf, opts); - else { ss = ""; dtag = xlml_parsexmltag(Rn[0]); didx = Rn.index + Rn[0].length; } - break; - case 'cell' /*case 'Cell'*/: - if(Rn[1]==='/'){ - if(comments.length > 0) cell.c = comments; - if((!opts.sheetRows || opts.sheetRows > r) && cell.v !== undefined) { - if(opts.dense) { - if(!cursheet[r]) cursheet[r] = []; - cursheet[r][c] = cell; - } else cursheet[encode_col(c) + encode_row(r)] = cell; - } - if(cell.HRef) { - cell.l = ({Target:unescapexml(cell.HRef)}); - if(cell.HRefScreenTip) cell.l.Tooltip = cell.HRefScreenTip; - delete cell.HRef; delete cell.HRefScreenTip; - } - if(cell.MergeAcross || cell.MergeDown) { - cc = c + (parseInt(cell.MergeAcross,10)|0); - rr = r + (parseInt(cell.MergeDown,10)|0); - merges.push({s:{c:c,r:r},e:{c:cc,r:rr}}); - } - if(!opts.sheetStubs) { if(cell.MergeAcross) c = cc + 1; else ++c; } - else if(cell.MergeAcross || cell.MergeDown) { -for(var cma = c; cma <= cc; ++cma) { - for(var cmd = r; cmd <= rr; ++cmd) { - if(cma > c || cmd > r) { - if(opts.dense) { - if(!cursheet[cmd]) cursheet[cmd] = []; - cursheet[cmd][cma] = {t:'z'}; - } else cursheet[encode_col(cma) + encode_row(cmd)] = {t:'z'}; - } - } - } - c = cc + 1; - } - else ++c; - } else { - cell = xlml_parsexmltagobj(Rn[0]); - if(cell.Index) c = +cell.Index - 1; - if(c < refguess.s.c) refguess.s.c = c; - if(c > refguess.e.c) refguess.e.c = c; - if(Rn[0].slice(-2) === "/>") ++c; - comments = []; - } - break; - case 'row' /*case 'Row'*/: - if(Rn[1]==='/' || Rn[0].slice(-2) === "/>") { - if(r < refguess.s.r) refguess.s.r = r; - if(r > refguess.e.r) refguess.e.r = r; - if(Rn[0].slice(-2) === "/>") { - row = xlml_parsexmltag(Rn[0]); - if(row.Index) r = +row.Index - 1; - } - c = 0; ++r; - } else { - row = xlml_parsexmltag(Rn[0]); - if(row.Index) r = +row.Index - 1; - rowobj = {}; - if(row.AutoFitHeight == "0" || row.Height) { - rowobj.hpx = parseInt(row.Height, 10); rowobj.hpt = px2pt(rowobj.hpx); - rowinfo[r] = rowobj; - } - if(row.Hidden == "1") { rowobj.hidden = true; rowinfo[r] = rowobj; } - } - break; - case 'worksheet' /*case 'Worksheet'*/: /* TODO: read range from FullRows/FullColumns */ - if(Rn[1]==='/'){ - if((tmp=state.pop())[0]!==Rn[3]) throw new Error("Bad state: "+tmp.join("|")); - sheetnames.push(sheetname); - if(refguess.s.r <= refguess.e.r && refguess.s.c <= refguess.e.c) { - cursheet["!ref"] = encode_range(refguess); - if(opts.sheetRows && opts.sheetRows <= refguess.e.r) { - cursheet["!fullref"] = cursheet["!ref"]; - refguess.e.r = opts.sheetRows - 1; - cursheet["!ref"] = encode_range(refguess); - } - } - if(merges.length) cursheet["!merges"] = merges; - if(cstys.length > 0) cursheet["!cols"] = cstys; - if(rowinfo.length > 0) cursheet["!rows"] = rowinfo; - sheets[sheetname] = cursheet; - } else { - refguess = {s: {r:2000000, c:2000000}, e: {r:0, c:0} }; - r = c = 0; - state.push([Rn[3], false]); - tmp = xlml_parsexmltag(Rn[0]); - sheetname = unescapexml(tmp.Name); - cursheet = (opts.dense ? [] : {}); - merges = []; - arrayf = []; - rowinfo = []; - wsprops = {name:sheetname, Hidden:0}; - Workbook.Sheets.push(wsprops); - } - break; - case 'table' /*case 'Table'*/: - if(Rn[1]==='/'){if((tmp=state.pop())[0]!==Rn[3]) throw new Error("Bad state: "+tmp.join("|"));} - else if(Rn[0].slice(-2) == "/>") break; - else { - table = xlml_parsexmltag(Rn[0]); - state.push([Rn[3], false]); - cstys = []; seencol = false; - } - break; - - case 'style' /*case 'Style'*/: - if(Rn[1]==='/') process_style_xlml(styles, stag, opts); - else stag = xlml_parsexmltag(Rn[0]); - break; - - case 'numberformat' /*case 'NumberFormat'*/: - stag.nf = unescapexml(xlml_parsexmltag(Rn[0]).Format || "General"); - if(XLMLFormatMap[stag.nf]) stag.nf = XLMLFormatMap[stag.nf]; - for(var ssfidx = 0; ssfidx != 0x188; ++ssfidx) if(SSF._table[ssfidx] == stag.nf) break; - if(ssfidx == 0x188) for(ssfidx = 0x39; ssfidx != 0x188; ++ssfidx) if(SSF._table[ssfidx] == null) { SSF.load(stag.nf, ssfidx); break; } - break; - - case 'column' /*case 'Column'*/: - if(state[state.length-1][0] !== /*'Table'*/'table') break; - csty = xlml_parsexmltag(Rn[0]); - if(csty.Hidden) { csty.hidden = true; delete csty.Hidden; } - if(csty.Width) csty.wpx = parseInt(csty.Width, 10); - if(!seencol && csty.wpx > 10) { - seencol = true; MDW = DEF_MDW; //find_mdw_wpx(csty.wpx); - for(var _col = 0; _col < cstys.length; ++_col) if(cstys[_col]) process_col(cstys[_col]); - } - if(seencol) process_col(csty); - cstys[(csty.Index-1||cstys.length)] = csty; - for(var i = 0; i < +csty.Span; ++i) cstys[cstys.length] = dup(csty); - break; - - case 'namedrange' /*case 'NamedRange'*/: - if(Rn[1]==='/') break; - if(!Workbook.Names) Workbook.Names = []; - var _NamedRange = parsexmltag(Rn[0]); - var _DefinedName = ({ - Name: _NamedRange.Name, - Ref: rc_to_a1(_NamedRange.RefersTo.slice(1), {r:0, c:0}) - }); - if(Workbook.Sheets.length>0) _DefinedName.Sheet=Workbook.Sheets.length-1; -Workbook.Names.push(_DefinedName); - break; - - case 'namedcell' /*case 'NamedCell'*/: break; - case 'b' /*case 'B'*/: break; - case 'i' /*case 'I'*/: break; - case 'u' /*case 'U'*/: break; - case 's' /*case 'S'*/: break; - case 'em' /*case 'EM'*/: break; - case 'h2' /*case 'H2'*/: break; - case 'h3' /*case 'H3'*/: break; - case 'sub' /*case 'Sub'*/: break; - case 'sup' /*case 'Sup'*/: break; - case 'span' /*case 'Span'*/: break; - case 'alignment' /*case 'Alignment'*/: - break; - case 'borders' /*case 'Borders'*/: break; - case 'border' /*case 'Border'*/: break; - case 'font' /*case 'Font'*/: - if(Rn[0].slice(-2) === "/>") break; - else if(Rn[1]==="/") ss += str.slice(fidx, Rn.index); - else fidx = Rn.index + Rn[0].length; - break; - case 'interior' /*case 'Interior'*/: - if(!opts.cellStyles) break; - stag.Interior = xlml_parsexmltag(Rn[0]); - break; - case 'protection' /*case 'Protection'*/: break; - - case 'author' /*case 'Author'*/: - case 'title' /*case 'Title'*/: - case 'description' /*case 'Description'*/: - case 'created' /*case 'Created'*/: - case 'keywords' /*case 'Keywords'*/: - case 'subject' /*case 'Subject'*/: - case 'category' /*case 'Category'*/: - case 'company' /*case 'Company'*/: - case 'lastauthor' /*case 'LastAuthor'*/: - case 'lastsaved' /*case 'LastSaved'*/: - case 'lastprinted' /*case 'LastPrinted'*/: - case 'version' /*case 'Version'*/: - case 'revision' /*case 'Revision'*/: - case 'totaltime' /*case 'TotalTime'*/: - case 'hyperlinkbase' /*case 'HyperlinkBase'*/: - case 'manager' /*case 'Manager'*/: - case 'contentstatus' /*case 'ContentStatus'*/: - case 'identifier' /*case 'Identifier'*/: - case 'language' /*case 'Language'*/: - case 'appname' /*case 'AppName'*/: - if(Rn[0].slice(-2) === "/>") break; - else if(Rn[1]==="/") xlml_set_prop(Props, raw_Rn3, str.slice(pidx, Rn.index)); - else pidx = Rn.index + Rn[0].length; - break; - case 'paragraphs' /*case 'Paragraphs'*/: break; - - case 'styles' /*case 'Styles'*/: - case 'workbook' /*case 'Workbook'*/: - if(Rn[1]==='/'){if((tmp=state.pop())[0]!==Rn[3]) throw new Error("Bad state: "+tmp.join("|"));} - else state.push([Rn[3], false]); - break; - - case 'comment' /*case 'Comment'*/: - if(Rn[1]==='/'){ - if((tmp=state.pop())[0]!==Rn[3]) throw new Error("Bad state: "+tmp.join("|")); - xlml_clean_comment(comment); - comments.push(comment); - } else { - state.push([Rn[3], false]); - tmp = xlml_parsexmltag(Rn[0]); - comment = ({a:tmp.Author}); - } - break; - - case 'autofilter' /*case 'AutoFilter'*/: - if(Rn[1]==='/'){if((tmp=state.pop())[0]!==Rn[3]) throw new Error("Bad state: "+tmp.join("|"));} - else if(Rn[0].charAt(Rn[0].length-2) !== '/') { - var AutoFilter = xlml_parsexmltag(Rn[0]); - cursheet['!autofilter'] = { ref:rc_to_a1(AutoFilter.Range).replace(/\$/g,"") }; - state.push([Rn[3], true]); - } - break; - - case 'name' /*case 'Name'*/: break; - - case 'datavalidation' /*case 'DataValidation'*/: - if(Rn[1]==='/'){ - if((tmp=state.pop())[0]!==Rn[3]) throw new Error("Bad state: "+tmp.join("|")); - } else { - if(Rn[0].charAt(Rn[0].length-2) !== '/') state.push([Rn[3], true]); - } - break; - - case 'pixelsperinch' /*case 'PixelsPerInch'*/: - break; - case 'componentoptions' /*case 'ComponentOptions'*/: - case 'documentproperties' /*case 'DocumentProperties'*/: - case 'customdocumentproperties' /*case 'CustomDocumentProperties'*/: - case 'officedocumentsettings' /*case 'OfficeDocumentSettings'*/: - case 'pivottable' /*case 'PivotTable'*/: - case 'pivotcache' /*case 'PivotCache'*/: - case 'names' /*case 'Names'*/: - case 'mapinfo' /*case 'MapInfo'*/: - case 'pagebreaks' /*case 'PageBreaks'*/: - case 'querytable' /*case 'QueryTable'*/: - case 'sorting' /*case 'Sorting'*/: - case 'schema' /*case 'Schema'*/: //case 'data' /*case 'data'*/: - case 'conditionalformatting' /*case 'ConditionalFormatting'*/: - case 'smarttagtype' /*case 'SmartTagType'*/: - case 'smarttags' /*case 'SmartTags'*/: - case 'excelworkbook' /*case 'ExcelWorkbook'*/: - case 'workbookoptions' /*case 'WorkbookOptions'*/: - case 'worksheetoptions' /*case 'WorksheetOptions'*/: - if(Rn[1]==='/'){if((tmp=state.pop())[0]!==Rn[3]) throw new Error("Bad state: "+tmp.join("|"));} - else if(Rn[0].charAt(Rn[0].length-2) !== '/') state.push([Rn[3], true]); - break; - - case 'null' /*case 'Null'*/: break; - - default: - /* FODS file root is */ - if(state.length == 0 && Rn[3] == "document") return parse_fods(str, opts); - /* UOS file root is */ - if(state.length == 0 && Rn[3] == "uof"/*"UOF"*/) return parse_fods(str, opts); - - var seen = true; - switch(state[state.length-1][0]) { - /* OfficeDocumentSettings */ - case 'officedocumentsettings' /*case 'OfficeDocumentSettings'*/: switch(Rn[3]) { - case 'allowpng' /*case 'AllowPNG'*/: break; - case 'removepersonalinformation' /*case 'RemovePersonalInformation'*/: break; - case 'downloadcomponents' /*case 'DownloadComponents'*/: break; - case 'locationofcomponents' /*case 'LocationOfComponents'*/: break; - case 'colors' /*case 'Colors'*/: break; - case 'color' /*case 'Color'*/: break; - case 'index' /*case 'Index'*/: break; - case 'rgb' /*case 'RGB'*/: break; - case 'targetscreensize' /*case 'TargetScreenSize'*/: break; - case 'readonlyrecommended' /*case 'ReadOnlyRecommended'*/: break; - default: seen = false; - } break; - - /* ComponentOptions */ - case 'componentoptions' /*case 'ComponentOptions'*/: switch(Rn[3]) { - case 'toolbar' /*case 'Toolbar'*/: break; - case 'hideofficelogo' /*case 'HideOfficeLogo'*/: break; - case 'spreadsheetautofit' /*case 'SpreadsheetAutoFit'*/: break; - case 'label' /*case 'Label'*/: break; - case 'caption' /*case 'Caption'*/: break; - case 'maxheight' /*case 'MaxHeight'*/: break; - case 'maxwidth' /*case 'MaxWidth'*/: break; - case 'nextsheetnumber' /*case 'NextSheetNumber'*/: break; - default: seen = false; - } break; - - /* ExcelWorkbook */ - case 'excelworkbook' /*case 'ExcelWorkbook'*/: switch(Rn[3]) { - case 'date1904' /*case 'Date1904'*/: -Workbook.WBProps.date1904 = true; - break; - case 'windowheight' /*case 'WindowHeight'*/: break; - case 'windowwidth' /*case 'WindowWidth'*/: break; - case 'windowtopx' /*case 'WindowTopX'*/: break; - case 'windowtopy' /*case 'WindowTopY'*/: break; - case 'tabratio' /*case 'TabRatio'*/: break; - case 'protectstructure' /*case 'ProtectStructure'*/: break; - case 'protectwindow' /*case 'ProtectWindow'*/: break; - case 'protectwindows' /*case 'ProtectWindows'*/: break; - case 'activesheet' /*case 'ActiveSheet'*/: break; - case 'displayinknotes' /*case 'DisplayInkNotes'*/: break; - case 'firstvisiblesheet' /*case 'FirstVisibleSheet'*/: break; - case 'supbook' /*case 'SupBook'*/: break; - case 'sheetname' /*case 'SheetName'*/: break; - case 'sheetindex' /*case 'SheetIndex'*/: break; - case 'sheetindexfirst' /*case 'SheetIndexFirst'*/: break; - case 'sheetindexlast' /*case 'SheetIndexLast'*/: break; - case 'dll' /*case 'Dll'*/: break; - case 'acceptlabelsinformulas' /*case 'AcceptLabelsInFormulas'*/: break; - case 'donotsavelinkvalues' /*case 'DoNotSaveLinkValues'*/: break; - case 'iteration' /*case 'Iteration'*/: break; - case 'maxiterations' /*case 'MaxIterations'*/: break; - case 'maxchange' /*case 'MaxChange'*/: break; - case 'path' /*case 'Path'*/: break; - case 'xct' /*case 'Xct'*/: break; - case 'count' /*case 'Count'*/: break; - case 'selectedsheets' /*case 'SelectedSheets'*/: break; - case 'calculation' /*case 'Calculation'*/: break; - case 'uncalced' /*case 'Uncalced'*/: break; - case 'startupprompt' /*case 'StartupPrompt'*/: break; - case 'crn' /*case 'Crn'*/: break; - case 'externname' /*case 'ExternName'*/: break; - case 'formula' /*case 'Formula'*/: break; - case 'colfirst' /*case 'ColFirst'*/: break; - case 'collast' /*case 'ColLast'*/: break; - case 'wantadvise' /*case 'WantAdvise'*/: break; - case 'boolean' /*case 'Boolean'*/: break; - case 'error' /*case 'Error'*/: break; - case 'text' /*case 'Text'*/: break; - case 'ole' /*case 'OLE'*/: break; - case 'noautorecover' /*case 'NoAutoRecover'*/: break; - case 'publishobjects' /*case 'PublishObjects'*/: break; - case 'donotcalculatebeforesave' /*case 'DoNotCalculateBeforeSave'*/: break; - case 'number' /*case 'Number'*/: break; - case 'refmoder1c1' /*case 'RefModeR1C1'*/: break; - case 'embedsavesmarttags' /*case 'EmbedSaveSmartTags'*/: break; - default: seen = false; - } break; - - /* WorkbookOptions */ - case 'workbookoptions' /*case 'WorkbookOptions'*/: switch(Rn[3]) { - case 'owcversion' /*case 'OWCVersion'*/: break; - case 'height' /*case 'Height'*/: break; - case 'width' /*case 'Width'*/: break; - default: seen = false; - } break; - - /* WorksheetOptions */ - case 'worksheetoptions' /*case 'WorksheetOptions'*/: switch(Rn[3]) { - case 'visible' /*case 'Visible'*/: - if(Rn[0].slice(-2) === "/>"){/* empty */} - else if(Rn[1]==="/") switch(str.slice(pidx, Rn.index)) { - case "SheetHidden": wsprops.Hidden = 1; break; - case "SheetVeryHidden": wsprops.Hidden = 2; break; - } - else pidx = Rn.index + Rn[0].length; - break; - case 'header' /*case 'Header'*/: - if(!cursheet['!margins']) default_margins(cursheet['!margins']={}, 'xlml'); - if(!isNaN(+parsexmltag(Rn[0]).Margin)) cursheet['!margins'].header = +parsexmltag(Rn[0]).Margin; - break; - case 'footer' /*case 'Footer'*/: - if(!cursheet['!margins']) default_margins(cursheet['!margins']={}, 'xlml'); - if(!isNaN(+parsexmltag(Rn[0]).Margin)) cursheet['!margins'].footer = +parsexmltag(Rn[0]).Margin; - break; - case 'pagemargins' /*case 'PageMargins'*/: - var pagemargins = parsexmltag(Rn[0]); - if(!cursheet['!margins']) default_margins(cursheet['!margins']={},'xlml'); - if(!isNaN(+pagemargins.Top)) cursheet['!margins'].top = +pagemargins.Top; - if(!isNaN(+pagemargins.Left)) cursheet['!margins'].left = +pagemargins.Left; - if(!isNaN(+pagemargins.Right)) cursheet['!margins'].right = +pagemargins.Right; - if(!isNaN(+pagemargins.Bottom)) cursheet['!margins'].bottom = +pagemargins.Bottom; - break; - case 'displayrighttoleft' /*case 'DisplayRightToLeft'*/: - if(!Workbook.Views) Workbook.Views = []; - if(!Workbook.Views[0]) Workbook.Views[0] = {}; - Workbook.Views[0].RTL = true; - break; - - case 'freezepanes' /*case 'FreezePanes'*/: break; - case 'frozennosplit' /*case 'FrozenNoSplit'*/: break; - - case 'splithorizontal' /*case 'SplitHorizontal'*/: - case 'splitvertical' /*case 'SplitVertical'*/: - break; - - case 'donotdisplaygridlines' /*case 'DoNotDisplayGridlines'*/: - break; - - case 'activerow' /*case 'ActiveRow'*/: break; - case 'activecol' /*case 'ActiveCol'*/: break; - case 'toprowbottompane' /*case 'TopRowBottomPane'*/: break; - case 'leftcolumnrightpane' /*case 'LeftColumnRightPane'*/: break; - - case 'unsynced' /*case 'Unsynced'*/: break; - case 'print' /*case 'Print'*/: break; - case 'printerrors' /*case 'PrintErrors'*/: break; - case 'panes' /*case 'Panes'*/: break; - case 'scale' /*case 'Scale'*/: break; - case 'pane' /*case 'Pane'*/: break; - case 'number' /*case 'Number'*/: break; - case 'layout' /*case 'Layout'*/: break; - case 'pagesetup' /*case 'PageSetup'*/: break; - case 'selected' /*case 'Selected'*/: break; - case 'protectobjects' /*case 'ProtectObjects'*/: break; - case 'enableselection' /*case 'EnableSelection'*/: break; - case 'protectscenarios' /*case 'ProtectScenarios'*/: break; - case 'validprinterinfo' /*case 'ValidPrinterInfo'*/: break; - case 'horizontalresolution' /*case 'HorizontalResolution'*/: break; - case 'verticalresolution' /*case 'VerticalResolution'*/: break; - case 'numberofcopies' /*case 'NumberofCopies'*/: break; - case 'activepane' /*case 'ActivePane'*/: break; - case 'toprowvisible' /*case 'TopRowVisible'*/: break; - case 'leftcolumnvisible' /*case 'LeftColumnVisible'*/: break; - case 'fittopage' /*case 'FitToPage'*/: break; - case 'rangeselection' /*case 'RangeSelection'*/: break; - case 'papersizeindex' /*case 'PaperSizeIndex'*/: break; - case 'pagelayoutzoom' /*case 'PageLayoutZoom'*/: break; - case 'pagebreakzoom' /*case 'PageBreakZoom'*/: break; - case 'filteron' /*case 'FilterOn'*/: break; - case 'fitwidth' /*case 'FitWidth'*/: break; - case 'fitheight' /*case 'FitHeight'*/: break; - case 'commentslayout' /*case 'CommentsLayout'*/: break; - case 'zoom' /*case 'Zoom'*/: break; - case 'lefttoright' /*case 'LeftToRight'*/: break; - case 'gridlines' /*case 'Gridlines'*/: break; - case 'allowsort' /*case 'AllowSort'*/: break; - case 'allowfilter' /*case 'AllowFilter'*/: break; - case 'allowinsertrows' /*case 'AllowInsertRows'*/: break; - case 'allowdeleterows' /*case 'AllowDeleteRows'*/: break; - case 'allowinsertcols' /*case 'AllowInsertCols'*/: break; - case 'allowdeletecols' /*case 'AllowDeleteCols'*/: break; - case 'allowinserthyperlinks' /*case 'AllowInsertHyperlinks'*/: break; - case 'allowformatcells' /*case 'AllowFormatCells'*/: break; - case 'allowsizecols' /*case 'AllowSizeCols'*/: break; - case 'allowsizerows' /*case 'AllowSizeRows'*/: break; - case 'nosummaryrowsbelowdetail' /*case 'NoSummaryRowsBelowDetail'*/: - if(!cursheet["!outline"]) cursheet["!outline"] = {}; - cursheet["!outline"].above = true; - break; - case 'tabcolorindex' /*case 'TabColorIndex'*/: break; - case 'donotdisplayheadings' /*case 'DoNotDisplayHeadings'*/: break; - case 'showpagelayoutzoom' /*case 'ShowPageLayoutZoom'*/: break; - case 'nosummarycolumnsrightdetail' /*case 'NoSummaryColumnsRightDetail'*/: - if(!cursheet["!outline"]) cursheet["!outline"] = {}; - cursheet["!outline"].left = true; - break; - case 'blackandwhite' /*case 'BlackAndWhite'*/: break; - case 'donotdisplayzeros' /*case 'DoNotDisplayZeros'*/: break; - case 'displaypagebreak' /*case 'DisplayPageBreak'*/: break; - case 'rowcolheadings' /*case 'RowColHeadings'*/: break; - case 'donotdisplayoutline' /*case 'DoNotDisplayOutline'*/: break; - case 'noorientation' /*case 'NoOrientation'*/: break; - case 'allowusepivottables' /*case 'AllowUsePivotTables'*/: break; - case 'zeroheight' /*case 'ZeroHeight'*/: break; - case 'viewablerange' /*case 'ViewableRange'*/: break; - case 'selection' /*case 'Selection'*/: break; - case 'protectcontents' /*case 'ProtectContents'*/: break; - default: seen = false; - } break; - - /* PivotTable */ - case 'pivottable' /*case 'PivotTable'*/: case 'pivotcache' /*case 'PivotCache'*/: switch(Rn[3]) { - case 'immediateitemsondrop' /*case 'ImmediateItemsOnDrop'*/: break; - case 'showpagemultipleitemlabel' /*case 'ShowPageMultipleItemLabel'*/: break; - case 'compactrowindent' /*case 'CompactRowIndent'*/: break; - case 'location' /*case 'Location'*/: break; - case 'pivotfield' /*case 'PivotField'*/: break; - case 'orientation' /*case 'Orientation'*/: break; - case 'layoutform' /*case 'LayoutForm'*/: break; - case 'layoutsubtotallocation' /*case 'LayoutSubtotalLocation'*/: break; - case 'layoutcompactrow' /*case 'LayoutCompactRow'*/: break; - case 'position' /*case 'Position'*/: break; - case 'pivotitem' /*case 'PivotItem'*/: break; - case 'datatype' /*case 'DataType'*/: break; - case 'datafield' /*case 'DataField'*/: break; - case 'sourcename' /*case 'SourceName'*/: break; - case 'parentfield' /*case 'ParentField'*/: break; - case 'ptlineitems' /*case 'PTLineItems'*/: break; - case 'ptlineitem' /*case 'PTLineItem'*/: break; - case 'countofsameitems' /*case 'CountOfSameItems'*/: break; - case 'item' /*case 'Item'*/: break; - case 'itemtype' /*case 'ItemType'*/: break; - case 'ptsource' /*case 'PTSource'*/: break; - case 'cacheindex' /*case 'CacheIndex'*/: break; - case 'consolidationreference' /*case 'ConsolidationReference'*/: break; - case 'filename' /*case 'FileName'*/: break; - case 'reference' /*case 'Reference'*/: break; - case 'nocolumngrand' /*case 'NoColumnGrand'*/: break; - case 'norowgrand' /*case 'NoRowGrand'*/: break; - case 'blanklineafteritems' /*case 'BlankLineAfterItems'*/: break; - case 'hidden' /*case 'Hidden'*/: break; - case 'subtotal' /*case 'Subtotal'*/: break; - case 'basefield' /*case 'BaseField'*/: break; - case 'mapchilditems' /*case 'MapChildItems'*/: break; - case 'function' /*case 'Function'*/: break; - case 'refreshonfileopen' /*case 'RefreshOnFileOpen'*/: break; - case 'printsettitles' /*case 'PrintSetTitles'*/: break; - case 'mergelabels' /*case 'MergeLabels'*/: break; - case 'defaultversion' /*case 'DefaultVersion'*/: break; - case 'refreshname' /*case 'RefreshName'*/: break; - case 'refreshdate' /*case 'RefreshDate'*/: break; - case 'refreshdatecopy' /*case 'RefreshDateCopy'*/: break; - case 'versionlastrefresh' /*case 'VersionLastRefresh'*/: break; - case 'versionlastupdate' /*case 'VersionLastUpdate'*/: break; - case 'versionupdateablemin' /*case 'VersionUpdateableMin'*/: break; - case 'versionrefreshablemin' /*case 'VersionRefreshableMin'*/: break; - case 'calculation' /*case 'Calculation'*/: break; - default: seen = false; - } break; - - /* PageBreaks */ - case 'pagebreaks' /*case 'PageBreaks'*/: switch(Rn[3]) { - case 'colbreaks' /*case 'ColBreaks'*/: break; - case 'colbreak' /*case 'ColBreak'*/: break; - case 'rowbreaks' /*case 'RowBreaks'*/: break; - case 'rowbreak' /*case 'RowBreak'*/: break; - case 'colstart' /*case 'ColStart'*/: break; - case 'colend' /*case 'ColEnd'*/: break; - case 'rowend' /*case 'RowEnd'*/: break; - default: seen = false; - } break; - - /* AutoFilter */ - case 'autofilter' /*case 'AutoFilter'*/: switch(Rn[3]) { - case 'autofiltercolumn' /*case 'AutoFilterColumn'*/: break; - case 'autofiltercondition' /*case 'AutoFilterCondition'*/: break; - case 'autofilterand' /*case 'AutoFilterAnd'*/: break; - case 'autofilteror' /*case 'AutoFilterOr'*/: break; - default: seen = false; - } break; - - /* QueryTable */ - case 'querytable' /*case 'QueryTable'*/: switch(Rn[3]) { - case 'id' /*case 'Id'*/: break; - case 'autoformatfont' /*case 'AutoFormatFont'*/: break; - case 'autoformatpattern' /*case 'AutoFormatPattern'*/: break; - case 'querysource' /*case 'QuerySource'*/: break; - case 'querytype' /*case 'QueryType'*/: break; - case 'enableredirections' /*case 'EnableRedirections'*/: break; - case 'refreshedinxl9' /*case 'RefreshedInXl9'*/: break; - case 'urlstring' /*case 'URLString'*/: break; - case 'htmltables' /*case 'HTMLTables'*/: break; - case 'connection' /*case 'Connection'*/: break; - case 'commandtext' /*case 'CommandText'*/: break; - case 'refreshinfo' /*case 'RefreshInfo'*/: break; - case 'notitles' /*case 'NoTitles'*/: break; - case 'nextid' /*case 'NextId'*/: break; - case 'columninfo' /*case 'ColumnInfo'*/: break; - case 'overwritecells' /*case 'OverwriteCells'*/: break; - case 'donotpromptforfile' /*case 'DoNotPromptForFile'*/: break; - case 'textwizardsettings' /*case 'TextWizardSettings'*/: break; - case 'source' /*case 'Source'*/: break; - case 'number' /*case 'Number'*/: break; - case 'decimal' /*case 'Decimal'*/: break; - case 'thousandseparator' /*case 'ThousandSeparator'*/: break; - case 'trailingminusnumbers' /*case 'TrailingMinusNumbers'*/: break; - case 'formatsettings' /*case 'FormatSettings'*/: break; - case 'fieldtype' /*case 'FieldType'*/: break; - case 'delimiters' /*case 'Delimiters'*/: break; - case 'tab' /*case 'Tab'*/: break; - case 'comma' /*case 'Comma'*/: break; - case 'autoformatname' /*case 'AutoFormatName'*/: break; - case 'versionlastedit' /*case 'VersionLastEdit'*/: break; - case 'versionlastrefresh' /*case 'VersionLastRefresh'*/: break; - default: seen = false; - } break; - - case 'datavalidation' /*case 'DataValidation'*/: - switch(Rn[3]) { - case 'range' /*case 'Range'*/: break; - - case 'type' /*case 'Type'*/: break; - case 'min' /*case 'Min'*/: break; - case 'max' /*case 'Max'*/: break; - case 'sort' /*case 'Sort'*/: break; - case 'descending' /*case 'Descending'*/: break; - case 'order' /*case 'Order'*/: break; - case 'casesensitive' /*case 'CaseSensitive'*/: break; - case 'value' /*case 'Value'*/: break; - case 'errorstyle' /*case 'ErrorStyle'*/: break; - case 'errormessage' /*case 'ErrorMessage'*/: break; - case 'errortitle' /*case 'ErrorTitle'*/: break; - case 'inputmessage' /*case 'InputMessage'*/: break; - case 'inputtitle' /*case 'InputTitle'*/: break; - case 'combohide' /*case 'ComboHide'*/: break; - case 'inputhide' /*case 'InputHide'*/: break; - case 'condition' /*case 'Condition'*/: break; - case 'qualifier' /*case 'Qualifier'*/: break; - case 'useblank' /*case 'UseBlank'*/: break; - case 'value1' /*case 'Value1'*/: break; - case 'value2' /*case 'Value2'*/: break; - case 'format' /*case 'Format'*/: break; - - case 'cellrangelist' /*case 'CellRangeList'*/: break; - default: seen = false; - } break; - - case 'sorting' /*case 'Sorting'*/: - case 'conditionalformatting' /*case 'ConditionalFormatting'*/: - switch(Rn[3]) { - case 'range' /*case 'Range'*/: break; - case 'type' /*case 'Type'*/: break; - case 'min' /*case 'Min'*/: break; - case 'max' /*case 'Max'*/: break; - case 'sort' /*case 'Sort'*/: break; - case 'descending' /*case 'Descending'*/: break; - case 'order' /*case 'Order'*/: break; - case 'casesensitive' /*case 'CaseSensitive'*/: break; - case 'value' /*case 'Value'*/: break; - case 'errorstyle' /*case 'ErrorStyle'*/: break; - case 'errormessage' /*case 'ErrorMessage'*/: break; - case 'errortitle' /*case 'ErrorTitle'*/: break; - case 'cellrangelist' /*case 'CellRangeList'*/: break; - case 'inputmessage' /*case 'InputMessage'*/: break; - case 'inputtitle' /*case 'InputTitle'*/: break; - case 'combohide' /*case 'ComboHide'*/: break; - case 'inputhide' /*case 'InputHide'*/: break; - case 'condition' /*case 'Condition'*/: break; - case 'qualifier' /*case 'Qualifier'*/: break; - case 'useblank' /*case 'UseBlank'*/: break; - case 'value1' /*case 'Value1'*/: break; - case 'value2' /*case 'Value2'*/: break; - case 'format' /*case 'Format'*/: break; - default: seen = false; - } break; - - /* MapInfo (schema) */ - case 'mapinfo' /*case 'MapInfo'*/: case 'schema' /*case 'Schema'*/: case 'data' /*case 'data'*/: switch(Rn[3]) { - case 'map' /*case 'Map'*/: break; - case 'entry' /*case 'Entry'*/: break; - case 'range' /*case 'Range'*/: break; - case 'xpath' /*case 'XPath'*/: break; - case 'field' /*case 'Field'*/: break; - case 'xsdtype' /*case 'XSDType'*/: break; - case 'filteron' /*case 'FilterOn'*/: break; - case 'aggregate' /*case 'Aggregate'*/: break; - case 'elementtype' /*case 'ElementType'*/: break; - case 'attributetype' /*case 'AttributeType'*/: break; - /* These are from xsd (XML Schema Definition) */ - case 'schema' /*case 'schema'*/: - case 'element' /*case 'element'*/: - case 'complextype' /*case 'complexType'*/: - case 'datatype' /*case 'datatype'*/: - case 'all' /*case 'all'*/: - case 'attribute' /*case 'attribute'*/: - case 'extends' /*case 'extends'*/: break; - - case 'row' /*case 'row'*/: break; - default: seen = false; - } break; - - /* SmartTags (can be anything) */ - case 'smarttags' /*case 'SmartTags'*/: break; - - default: seen = false; break; - } - if(seen) break; - /* CustomDocumentProperties */ - if(Rn[3].match(/!\[CDATA/)) break; - if(!state[state.length-1][1]) throw 'Unrecognized tag: ' + Rn[3] + "|" + state.join("|"); - if(state[state.length-1][0]===/*'CustomDocumentProperties'*/'customdocumentproperties') { - if(Rn[0].slice(-2) === "/>") break; - else if(Rn[1]==="/") xlml_set_custprop(Custprops, raw_Rn3, cp, str.slice(pidx, Rn.index)); - else { cp = Rn; pidx = Rn.index + Rn[0].length; } - break; - } - if(opts.WTF) throw 'Unrecognized tag: ' + Rn[3] + "|" + state.join("|"); - } - var out = ({}); - if(!opts.bookSheets && !opts.bookProps) out.Sheets = sheets; - out.SheetNames = sheetnames; - out.Workbook = Workbook; - out.SSF = SSF.get_table(); - out.Props = Props; - out.Custprops = Custprops; - return out; -} - -function parse_xlml(data, opts) { - fix_read_opts(opts=opts||{}); - switch(opts.type||"base64") { - case "base64": return parse_xlml_xml(Base64.decode(data), opts); - case "binary": case "buffer": case "file": return parse_xlml_xml(data, opts); - case "array": return parse_xlml_xml(a2s(data), opts); - } -} - -/* TODO */ -function write_props_xlml(wb, opts) { - var o = []; - /* DocumentProperties */ - if(wb.Props) o.push(xlml_write_docprops(wb.Props, opts)); - /* CustomDocumentProperties */ - if(wb.Custprops) o.push(xlml_write_custprops(wb.Props, wb.Custprops, opts)); - return o.join(""); -} -/* TODO */ -function write_wb_xlml() { - /* OfficeDocumentSettings */ - /* ExcelWorkbook */ - return ""; -} -/* TODO */ -function write_sty_xlml(wb, opts) { - /* Styles */ - var styles = ['']; - opts.cellXfs.forEach(function(xf, id) { - var payload = []; - payload.push(writextag('NumberFormat', null, {"ss:Format": escapexml(SSF._table[xf.numFmtId])})); - - var o = {"ss:ID": "s" + (21+id)}; - styles.push(writextag('Style', payload.join(""), o)); - }); - return writextag("Styles", styles.join("")); -} -function write_name_xlml(n) { return writextag("NamedRange", null, {"ss:Name": n.Name, "ss:RefersTo":"=" + a1_to_rc(n.Ref, {r:0,c:0})}); } -function write_names_xlml(wb) { - if(!((wb||{}).Workbook||{}).Names) return ""; -var names = wb.Workbook.Names; - var out = []; - for(var i = 0; i < names.length; ++i) { - var n = names[i]; - if(n.Sheet != null) continue; - if(n.Name.match(/^_xlfn\./)) continue; - out.push(write_name_xlml(n)); - } - return writextag("Names", out.join("")); -} -function write_ws_xlml_names(ws, opts, idx, wb) { - if(!ws) return ""; - if(!((wb||{}).Workbook||{}).Names) return ""; -var names = wb.Workbook.Names; - var out = []; - for(var i = 0; i < names.length; ++i) { - var n = names[i]; - if(n.Sheet != idx) continue; - /*switch(n.Name) { - case "_": continue; - }*/ - if(n.Name.match(/^_xlfn\./)) continue; - out.push(write_name_xlml(n)); - } - return out.join(""); -} -/* WorksheetOptions */ -function write_ws_xlml_wsopts(ws, opts, idx, wb) { - if(!ws) return ""; - var o = []; - /* NOTE: spec technically allows any order, but stick with implied order */ - - /* FitToPage */ - /* DoNotDisplayColHeaders */ - /* DoNotDisplayRowHeaders */ - /* ViewableRange */ - /* Selection */ - /* GridlineColor */ - /* Name */ - /* ExcelWorksheetType */ - /* IntlMacro */ - /* Unsynced */ - /* Selected */ - /* CodeName */ - - if(ws['!margins']) { - o.push(""); - if(ws['!margins'].header) o.push(writextag("Header", null, {'x:Margin':ws['!margins'].header})); - if(ws['!margins'].footer) o.push(writextag("Footer", null, {'x:Margin':ws['!margins'].footer})); - o.push(writextag("PageMargins", null, { - 'x:Bottom': ws['!margins'].bottom || "0.75", - 'x:Left': ws['!margins'].left || "0.7", - 'x:Right': ws['!margins'].right || "0.7", - 'x:Top': ws['!margins'].top || "0.75" - })); - o.push(""); - } - - /* PageSetup */ - /* DisplayPageBreak */ - /* TransitionExpressionEvaluation */ - /* TransitionFormulaEntry */ - /* Print */ - /* Zoom */ - /* PageLayoutZoom */ - /* PageBreakZoom */ - /* ShowPageBreakZoom */ - /* DefaultRowHeight */ - /* DefaultColumnWidth */ - /* StandardWidth */ - - if(wb && wb.Workbook && wb.Workbook.Sheets && wb.Workbook.Sheets[idx]) { - /* Visible */ - if(wb.Workbook.Sheets[idx].Hidden) o.push(writextag("Visible", (wb.Workbook.Sheets[idx].Hidden == 1 ? "SheetHidden" : "SheetVeryHidden"), {})); - else { - /* Selected */ - for(var i = 0; i < idx; ++i) if(wb.Workbook.Sheets[i] && !wb.Workbook.Sheets[i].Hidden) break; - if(i == idx) o.push(""); - } - } - - /* LeftColumnVisible */ - - if(((((wb||{}).Workbook||{}).Views||[])[0]||{}).RTL) o.push(""); - - /* GridlineColorIndex */ - /* DisplayFormulas */ - /* DoNotDisplayGridlines */ - /* DoNotDisplayHeadings */ - /* DoNotDisplayOutline */ - /* ApplyAutomaticOutlineStyles */ - /* NoSummaryRowsBelowDetail */ - /* NoSummaryColumnsRightDetail */ - /* DoNotDisplayZeros */ - /* ActiveRow */ - /* ActiveColumn */ - /* FilterOn */ - /* RangeSelection */ - /* TopRowVisible */ - /* TopRowBottomPane */ - /* LeftColumnRightPane */ - /* ActivePane */ - /* SplitHorizontal */ - /* SplitVertical */ - /* FreezePanes */ - /* FrozenNoSplit */ - /* TabColorIndex */ - /* Panes */ - - /* NOTE: Password not supported in XLML Format */ - if(ws['!protect']) { - o.push(writetag("ProtectContents", "True")); - if(ws['!protect'].objects) o.push(writetag("ProtectObjects", "True")); - if(ws['!protect'].scenarios) o.push(writetag("ProtectScenarios", "True")); - if(ws['!protect'].selectLockedCells != null && !ws['!protect'].selectLockedCells) o.push(writetag("EnableSelection", "NoSelection")); - else if(ws['!protect'].selectUnlockedCells != null && !ws['!protect'].selectUnlockedCells) o.push(writetag("EnableSelection", "UnlockedCells")); - [ - [ "formatCells", "AllowFormatCells" ], - [ "formatColumns", "AllowSizeCols" ], - [ "formatRows", "AllowSizeRows" ], - [ "insertColumns", "AllowInsertCols" ], - [ "insertRows", "AllowInsertRows" ], - [ "insertHyperlinks", "AllowInsertHyperlinks" ], - [ "deleteColumns", "AllowDeleteCols" ], - [ "deleteRows", "AllowDeleteRows" ], - [ "sort", "AllowSort" ], - [ "autoFilter", "AllowFilter" ], - [ "pivotTables", "AllowUsePivotTables" ] - ].forEach(function(x) { if(ws['!protect'][x[0]]) o.push("<"+x[1]+"/>"); }); - } - - if(o.length == 0) return ""; - return writextag("WorksheetOptions", o.join(""), {xmlns:XLMLNS.x}); -} -function write_ws_xlml_comment(comments) { - return comments.map(function(c) { - // TODO: formatted text - var t = xlml_unfixstr(c.t||""); - var d =writextag("ss:Data", t, {"xmlns":"http://www.w3.org/TR/REC-html40"}); - return writextag("Comment", d, {"ss:Author":c.a}); - }).join(""); -} -function write_ws_xlml_cell(cell, ref, ws, opts, idx, wb, addr){ - if(!cell || (cell.v == undefined && cell.f == undefined)) return ""; - - var attr = {}; - if(cell.f) attr["ss:Formula"] = "=" + escapexml(a1_to_rc(cell.f, addr)); - if(cell.F && cell.F.slice(0, ref.length) == ref) { - var end = decode_cell(cell.F.slice(ref.length + 1)); - attr["ss:ArrayRange"] = "RC:R" + (end.r == addr.r ? "" : "[" + (end.r - addr.r) + "]") + "C" + (end.c == addr.c ? "" : "[" + (end.c - addr.c) + "]"); - } - - if(cell.l && cell.l.Target) { - attr["ss:HRef"] = escapexml(cell.l.Target); - if(cell.l.Tooltip) attr["x:HRefScreenTip"] = escapexml(cell.l.Tooltip); - } - - if(ws['!merges']) { - var marr = ws['!merges']; - for(var mi = 0; mi != marr.length; ++mi) { - if(marr[mi].s.c != addr.c || marr[mi].s.r != addr.r) continue; - if(marr[mi].e.c > marr[mi].s.c) attr['ss:MergeAcross'] = marr[mi].e.c - marr[mi].s.c; - if(marr[mi].e.r > marr[mi].s.r) attr['ss:MergeDown'] = marr[mi].e.r - marr[mi].s.r; - } - } - - var t = "", p = ""; - switch(cell.t) { - case 'z': if(!opts.sheetStubs) return ""; break; - case 'n': t = 'Number'; p = String(cell.v); break; - case 'b': t = 'Boolean'; p = (cell.v ? "1" : "0"); break; - case 'e': t = 'Error'; p = BErr[cell.v]; break; - case 'd': t = 'DateTime'; p = new Date(cell.v).toISOString(); if(cell.z == null) cell.z = cell.z || SSF._table[14]; break; - case 's': t = 'String'; p = escapexlml(cell.v||""); break; - } - /* TODO: cell style */ - var os = get_cell_style(opts.cellXfs, cell, opts); - attr["ss:StyleID"] = "s" + (21+os); - attr["ss:Index"] = addr.c + 1; - var _v = (cell.v != null ? p : ""); - var m = cell.t == 'z' ? "" : ('' + _v + ''); - - if((cell.c||[]).length > 0) m += write_ws_xlml_comment(cell.c); - - return writextag("Cell", m, attr); -} -function write_ws_xlml_row(R, row) { - var o = ''; -} -/* TODO */ -function write_ws_xlml_table(ws, opts, idx, wb) { - if(!ws['!ref']) return ""; - var range = safe_decode_range(ws['!ref']); - var marr = ws['!merges'] || [], mi = 0; - var o = []; - if(ws['!cols']) ws['!cols'].forEach(function(n, i) { - process_col(n); - var w = !!n.width; - var p = col_obj_w(i, n); - var k = {"ss:Index":i+1}; - if(w) k['ss:Width'] = width2px(p.width); - if(n.hidden) k['ss:Hidden']="1"; - o.push(writextag("Column",null,k)); - }); - var dense = Array.isArray(ws); - for(var R = range.s.r; R <= range.e.r; ++R) { - var row = [write_ws_xlml_row(R, (ws['!rows']||[])[R])]; - for(var C = range.s.c; C <= range.e.c; ++C) { - var skip = false; - for(mi = 0; mi != marr.length; ++mi) { - if(marr[mi].s.c > C) continue; - if(marr[mi].s.r > R) continue; - if(marr[mi].e.c < C) continue; - if(marr[mi].e.r < R) continue; - if(marr[mi].s.c != C || marr[mi].s.r != R) skip = true; - break; - } - if(skip) continue; - var addr = {r:R,c:C}; - var ref = encode_cell(addr), cell = dense ? (ws[R]||[])[C] : ws[ref]; - row.push(write_ws_xlml_cell(cell, ref, ws, opts, idx, wb, addr)); - } - row.push(""); - if(row.length > 2) o.push(row.join("")); - } - return o.join(""); -} -function write_ws_xlml(idx, opts, wb) { - var o = []; - var s = wb.SheetNames[idx]; - var ws = wb.Sheets[s]; - - var t = ws ? write_ws_xlml_names(ws, opts, idx, wb) : ""; - if(t.length > 0) o.push("" + t + ""); - - /* Table */ - t = ws ? write_ws_xlml_table(ws, opts, idx, wb) : ""; - if(t.length > 0) o.push("
" + t + "
"); - - /* WorksheetOptions */ - o.push(write_ws_xlml_wsopts(ws, opts, idx, wb)); - - return o.join(""); -} -function write_xlml(wb, opts) { - if(!opts) opts = {}; - if(!wb.SSF) wb.SSF = SSF.get_table(); - if(wb.SSF) { - make_ssf(SSF); SSF.load_table(wb.SSF); - // $FlowIgnore - opts.revssf = evert_num(wb.SSF); opts.revssf[wb.SSF[65535]] = 0; - opts.ssf = wb.SSF; - opts.cellXfs = []; - get_cell_style(opts.cellXfs, {}, {revssf:{"General":0}}); - } - var d = []; - d.push(write_props_xlml(wb, opts)); - d.push(write_wb_xlml(wb, opts)); - d.push(""); - d.push(""); - for(var i = 0; i < wb.SheetNames.length; ++i) - d.push(writextag("Worksheet", write_ws_xlml(i, opts, wb), {"ss:Name":escapexml(wb.SheetNames[i])})); - d[2] = write_sty_xlml(wb, opts); - d[3] = write_names_xlml(wb, opts); - return XML_HEADER + writextag("Workbook", d.join(""), { - 'xmlns': XLMLNS.ss, - 'xmlns:o': XLMLNS.o, - 'xmlns:x': XLMLNS.x, - 'xmlns:ss': XLMLNS.ss, - 'xmlns:dt': XLMLNS.dt, - 'xmlns:html': XLMLNS.html - }); -} -/* [MS-OLEDS] 2.3.8 CompObjStream */ -function parse_compobj(obj) { - var v = {}; - var o = obj.content; -/* [MS-OLEDS] 2.3.7 CompObjHeader -- All fields MUST be ignored */ - o.l = 28; - - v.AnsiUserType = o.read_shift(0, "lpstr-ansi"); - v.AnsiClipboardFormat = parse_ClipboardFormatOrAnsiString(o); - - if(o.length - o.l <= 4) return v; - - var m = o.read_shift(4); - if(m == 0 || m > 40) return v; - o.l-=4; v.Reserved1 = o.read_shift(0, "lpstr-ansi"); - - if(o.length - o.l <= 4) return v; - m = o.read_shift(4); - if(m !== 0x71b239f4) return v; - v.UnicodeClipboardFormat = parse_ClipboardFormatOrUnicodeString(o); - - m = o.read_shift(4); - if(m == 0 || m > 40) return v; - o.l-=4; v.Reserved2 = o.read_shift(0, "lpwstr"); -} - -/* - Continue logic for: - - 2.4.58 Continue - - 2.4.59 ContinueBigName - - 2.4.60 ContinueFrt - - 2.4.61 ContinueFrt11 - - 2.4.62 ContinueFrt12 -*/ -function slurp(R, blob, length, opts) { - var l = length; - var bufs = []; - var d = blob.slice(blob.l,blob.l+l); - if(opts && opts.enc && opts.enc.insitu && d.length > 0) switch(R.n) { - case 'BOF': case 'FilePass': case 'FileLock': case 'InterfaceHdr': case 'RRDInfo': case 'RRDHead': case 'UsrExcl': case 'EOF': - break; - case 'BoundSheet8': - break; - default: - opts.enc.insitu(d); - } - bufs.push(d); - blob.l += l; - var next = (XLSRecordEnum[__readUInt16LE(blob,blob.l)]); - var start = 0; - while(next != null && next.n.slice(0,8) === 'Continue') { - l = __readUInt16LE(blob,blob.l+2); - start = blob.l + 4; - if(next.n == 'ContinueFrt') start += 4; - else if(next.n.slice(0,11) == 'ContinueFrt') { - start += 12; - } - d = blob.slice(start,blob.l+4+l); - bufs.push(d); - blob.l += 4+l; - next = (XLSRecordEnum[__readUInt16LE(blob, blob.l)]); - } - var b = (bconcat(bufs)); - prep_blob(b, 0); - var ll = 0; b.lens = []; - for(var j = 0; j < bufs.length; ++j) { b.lens.push(ll); ll += bufs[j].length; } - if(b.length < length) throw "XLS Record " + (R && R.n || "??") + " Truncated: " + b.length + " < " + length; - return R.f(b, b.length, opts); -} - -function safe_format_xf(p, opts, date1904) { - if(p.t === 'z') return; - if(!p.XF) return; - var fmtid = 0; - try { - fmtid = p.z || p.XF.numFmtId || 0; - if(opts.cellNF) p.z = SSF._table[fmtid]; - } catch(e) { if(opts.WTF) throw e; } - if(!opts || opts.cellText !== false) try { - if(p.t === 'e') { p.w = p.w || BErr[p.v]; } - else if(fmtid === 0 || fmtid == "General") { - if(p.t === 'n') { - if((p.v|0) === p.v) p.w = SSF._general_int(p.v); - else p.w = SSF._general_num(p.v); - } - else p.w = SSF._general(p.v); - } - else p.w = SSF.format(fmtid,p.v, {date1904:!!date1904, dateNF: opts && opts.dateNF}); - } catch(e) { if(opts.WTF) throw e; } - if(opts.cellDates && fmtid && p.t == 'n' && SSF.is_date(SSF._table[fmtid] || String(fmtid))) { - var _d = SSF.parse_date_code(p.v); if(_d) { p.t = 'd'; p.v = new Date(_d.y, _d.m-1,_d.d,_d.H,_d.M,_d.S,_d.u); } - } -} - -function make_cell(val, ixfe, t) { - return ({v:val, ixfe:ixfe, t:t}); -} - -// 2.3.2 -function parse_workbook(blob, options) { - var wb = ({opts:{}}); - var Sheets = {}; - if(DENSE != null && options.dense == null) options.dense = DENSE; - var out = ((options.dense ? [] : {})); - var Directory = {}; - var range = ({}); - var last_formula = null; - var sst = ([]); - var cur_sheet = ""; - var Preamble = {}; - var lastcell, last_cell = "", cc, cmnt, rngC, rngR; - var sharedf = {}; - var arrayf = []; - var temp_val; - var country; - var XFs = []; /* XF records */ - var palette = []; - var Workbook = ({ Sheets:[], WBProps:{date1904:false}, Views:[{}] }), wsprops = {}; - var get_rgb = function getrgb(icv) { - if(icv < 8) return XLSIcv[icv]; - if(icv < 64) return palette[icv-8] || XLSIcv[icv]; - return XLSIcv[icv]; - }; - var process_cell_style = function pcs(cell, line, options) { - var xfd = line.XF.data; - if(!xfd || !xfd.patternType || !options || !options.cellStyles) return; - line.s = ({}); - line.s.patternType = xfd.patternType; - var t; - if((t = rgb2Hex(get_rgb(xfd.icvFore)))) { line.s.fgColor = {rgb:t}; } - if((t = rgb2Hex(get_rgb(xfd.icvBack)))) { line.s.bgColor = {rgb:t}; } - }; - var addcell = function addcell(cell, line, options) { - if(file_depth > 1) return; - if(options.sheetRows && cell.r >= options.sheetRows) return; - if(options.cellStyles && line.XF && line.XF.data) process_cell_style(cell, line, options); - delete line.ixfe; delete line.XF; - lastcell = cell; - last_cell = encode_cell(cell); - if(!range || !range.s || !range.e) range = {s:{r:0,c:0},e:{r:0,c:0}}; - if(cell.r < range.s.r) range.s.r = cell.r; - if(cell.c < range.s.c) range.s.c = cell.c; - if(cell.r + 1 > range.e.r) range.e.r = cell.r + 1; - if(cell.c + 1 > range.e.c) range.e.c = cell.c + 1; - if(options.cellFormula && line.f) { - for(var afi = 0; afi < arrayf.length; ++afi) { - if(arrayf[afi][0].s.c > cell.c || arrayf[afi][0].s.r > cell.r) continue; - if(arrayf[afi][0].e.c < cell.c || arrayf[afi][0].e.r < cell.r) continue; - line.F = encode_range(arrayf[afi][0]); - if(arrayf[afi][0].s.c != cell.c || arrayf[afi][0].s.r != cell.r) delete line.f; - if(line.f) line.f = "" + stringify_formula(arrayf[afi][1], range, cell, supbooks, opts); - break; - } - } - { - if(options.dense) { - if(!out[cell.r]) out[cell.r] = []; - out[cell.r][cell.c] = line; - } else out[last_cell] = line; - } - }; - var opts = ({ - enc: false, // encrypted - sbcch: 0, // cch in the preceding SupBook - snames: [], // sheetnames - sharedf: sharedf, // shared formulae by address - arrayf: arrayf, // array formulae array - rrtabid: [], // RRTabId - lastuser: "", // Last User from WriteAccess - biff: 8, // BIFF version - codepage: 0, // CP from CodePage record - winlocked: 0, // fLockWn from WinProtect - cellStyles: !!options && !!options.cellStyles, - WTF: !!options && !!options.wtf - }); - if(options.password) opts.password = options.password; - var themes; - var merges = []; - var objects = []; - var colinfo = [], rowinfo = []; - // eslint-disable-next-line no-unused-vars - var defwidth = 0, defheight = 0; // twips / MDW respectively - var seencol = false; - var supbooks = ([]); // 1-indexed, will hold extern names - supbooks.SheetNames = opts.snames; - supbooks.sharedf = opts.sharedf; - supbooks.arrayf = opts.arrayf; - supbooks.names = []; - supbooks.XTI = []; - var last_Rn = ''; - var file_depth = 0; /* TODO: make a real stack */ - var BIFF2Fmt = 0, BIFF2FmtTable = []; - var FilterDatabases = []; /* TODO: sort out supbooks and process elsewhere */ - var last_lbl; - - /* explicit override for some broken writers */ - opts.codepage = 1200; - set_cp(1200); - var seen_codepage = false; - while(blob.l < blob.length - 1) { - var s = blob.l; - var RecordType = blob.read_shift(2); - if(RecordType === 0 && last_Rn === 'EOF') break; - var length = (blob.l === blob.length ? 0 : blob.read_shift(2)); - var R = XLSRecordEnum[RecordType]; - //console.log(RecordType.toString(16), RecordType, R, blob.l, length, blob.length); - //if(!R) console.log(blob.slice(blob.l, blob.l + length)); - if(R && R.f) { - if(options.bookSheets) { - if(last_Rn === 'BoundSheet8' && R.n !== 'BoundSheet8') break; - } - last_Rn = R.n; - if(R.r === 2 || R.r == 12) { - var rt = blob.read_shift(2); length -= 2; - if(!opts.enc && rt !== RecordType && (((rt&0xFF)<<8)|(rt>>8)) !== RecordType) throw new Error("rt mismatch: " + rt + "!=" + RecordType); - if(R.r == 12){ - blob.l += 10; length -= 10; - } // skip FRT - } - //console.error(R,blob.l,length,blob.length); - var val = ({}); - if(R.n === 'EOF') val = R.f(blob, length, opts); - else val = slurp(R, blob, length, opts); - var Rn = R.n; -if(file_depth == 0 && Rn != 'BOF') continue; - /* nested switch statements to workaround V8 128 limit */ - switch(Rn) { - /* Workbook Options */ - case 'Date1904': -wb.opts.Date1904 = Workbook.WBProps.date1904 = val; break; - case 'WriteProtect': wb.opts.WriteProtect = true; break; - case 'FilePass': - if(!opts.enc) blob.l = 0; - opts.enc = val; - if(!options.password) throw new Error("File is password-protected"); - if(val.valid == null) throw new Error("Encryption scheme unsupported"); - if(!val.valid) throw new Error("Password is incorrect"); - break; - case 'WriteAccess': opts.lastuser = val; break; - case 'FileSharing': break; //TODO - case 'CodePage': - var cpval = Number(val); - /* overrides based on test cases */ - switch(cpval) { - case 0x5212: cpval = 1200; break; - case 0x8000: cpval = 10000; break; - case 0x8001: cpval = 1252; break; - } - set_cp(opts.codepage = cpval); - seen_codepage = true; - break; - case 'RRTabId': opts.rrtabid = val; break; - case 'WinProtect': opts.winlocked = val; break; - case 'Template': break; // TODO - case 'BookBool': break; // TODO - case 'UsesELFs': break; - case 'MTRSettings': break; - case 'RefreshAll': - case 'CalcCount': - case 'CalcDelta': - case 'CalcIter': - case 'CalcMode': - case 'CalcPrecision': - case 'CalcSaveRecalc': - wb.opts[Rn] = val; break; - case 'CalcRefMode': opts.CalcRefMode = val; break; // TODO: implement R1C1 - case 'Uncalced': break; - case 'ForceFullCalculation': wb.opts.FullCalc = val; break; - case 'WsBool': - if(val.fDialog) out["!type"] = "dialog"; - if(!val.fBelow) (out["!outline"] || (out["!outline"] = {})).above = true; - if(!val.fRight) (out["!outline"] || (out["!outline"] = {})).left = true; - break; // TODO - case 'XF': - XFs.push(val); break; - case 'ExtSST': break; // TODO - case 'BookExt': break; // TODO - case 'RichTextStream': break; - case 'BkHim': break; - - case 'SupBook': - supbooks.push([val]); - supbooks[supbooks.length-1].XTI = []; - break; - case 'ExternName': - supbooks[supbooks.length-1].push(val); - break; - case 'Index': break; // TODO - case 'Lbl': - last_lbl = ({ - Name: val.Name, - Ref: stringify_formula(val.rgce,range,null,supbooks,opts) - }); - if(val.itab > 0) last_lbl.Sheet = val.itab - 1; - supbooks.names.push(last_lbl); - if(!supbooks[0]) { supbooks[0] = []; supbooks[0].XTI = []; } - supbooks[supbooks.length-1].push(val); - if(val.Name == "_xlnm._FilterDatabase" && val.itab > 0) - if(val.rgce && val.rgce[0] && val.rgce[0][0] && val.rgce[0][0][0] == 'PtgArea3d') - FilterDatabases[val.itab - 1] = { ref: encode_range(val.rgce[0][0][1][2]) }; - break; - case 'ExternCount': opts.ExternCount = val; break; - case 'ExternSheet': - if(supbooks.length == 0) { supbooks[0] = []; supbooks[0].XTI = []; } - supbooks[supbooks.length - 1].XTI = supbooks[supbooks.length - 1].XTI.concat(val); supbooks.XTI = supbooks.XTI.concat(val); break; - case 'NameCmt': - /* TODO: search for correct name */ - if(opts.biff < 8) break; - if(last_lbl != null) last_lbl.Comment = val[1]; - break; - - case 'Protect': out["!protect"] = val; break; /* for sheet or book */ - case 'Password': if(val !== 0 && opts.WTF) console.error("Password verifier: " + val); break; - case 'Prot4Rev': case 'Prot4RevPass': break; /*TODO: Revision Control*/ - - case 'BoundSheet8': { - Directory[val.pos] = val; - opts.snames.push(val.name); - } break; - case 'EOF': { - if(--file_depth) break; - if(range.e) { - if(range.e.r > 0 && range.e.c > 0) { - range.e.r--; range.e.c--; - out["!ref"] = encode_range(range); - if(options.sheetRows && options.sheetRows <= range.e.r) { - var tmpri = range.e.r; - range.e.r = options.sheetRows - 1; - out["!fullref"] = out["!ref"]; - out["!ref"] = encode_range(range); - range.e.r = tmpri; - } - range.e.r++; range.e.c++; - } - if(merges.length > 0) out["!merges"] = merges; - if(objects.length > 0) out["!objects"] = objects; - if(colinfo.length > 0) out["!cols"] = colinfo; - if(rowinfo.length > 0) out["!rows"] = rowinfo; - Workbook.Sheets.push(wsprops); - } - if(cur_sheet === "") Preamble = out; else Sheets[cur_sheet] = out; - out = ((options.dense ? [] : {})); - } break; - case 'BOF': { - if(opts.biff === 8) opts.biff = { -0x0009:2, -0x0209:3, -0x0409:4 - }[RecordType] || { -0x0200:2, -0x0300:3, -0x0400:4, -0x0500:5, -0x0600:8, -0x0002:2, -0x0007:2 - }[val.BIFFVer] || 8; - opts.biffguess = val.BIFFVer == 0; - if(val.BIFFVer == 0 && val.dt == 0x1000) { opts.biff = 5; seen_codepage = true; set_cp(opts.codepage = 28591); } - if(opts.biff == 8 && val.BIFFVer == 0 && val.dt == 16) opts.biff = 2; - if(file_depth++) break; - out = ((options.dense ? [] : {})); - - if(opts.biff < 8 && !seen_codepage) { seen_codepage = true; set_cp(opts.codepage = options.codepage || 1252); } - - if(opts.biff < 5 || val.BIFFVer == 0 && val.dt == 0x1000) { - if(cur_sheet === "") cur_sheet = "Sheet1"; - range = {s:{r:0,c:0},e:{r:0,c:0}}; - /* fake BoundSheet8 */ - var fakebs8 = {pos: blob.l - length, name:cur_sheet}; - Directory[fakebs8.pos] = fakebs8; - opts.snames.push(cur_sheet); - } - else cur_sheet = (Directory[s] || {name:""}).name; - if(val.dt == 0x20) out["!type"] = "chart"; - if(val.dt == 0x40) out["!type"] = "macro"; - merges = []; - objects = []; - opts.arrayf = arrayf = []; - colinfo = []; rowinfo = []; - defwidth = defheight = 0; - seencol = false; - wsprops = {Hidden:(Directory[s]||{hs:0}).hs, name:cur_sheet }; - } break; - - case 'Number': case 'BIFF2NUM': case 'BIFF2INT': { - if(out["!type"] == "chart") if(options.dense ? (out[val.r]||[])[val.c]: out[encode_cell({c:val.c, r:val.r})]) ++val.c; - temp_val = ({ixfe: val.ixfe, XF: XFs[val.ixfe]||{}, v:val.val, t:'n'}); - if(BIFF2Fmt > 0) temp_val.z = BIFF2FmtTable[(temp_val.ixfe>>8) & 0x3F]; - safe_format_xf(temp_val, options, wb.opts.Date1904); - addcell({c:val.c, r:val.r}, temp_val, options); - } break; - case 'BoolErr': { - temp_val = ({ixfe: val.ixfe, XF: XFs[val.ixfe], v:val.val, t:val.t}); - if(BIFF2Fmt > 0) temp_val.z = BIFF2FmtTable[(temp_val.ixfe>>8) & 0x3F]; - safe_format_xf(temp_val, options, wb.opts.Date1904); - addcell({c:val.c, r:val.r}, temp_val, options); - } break; - case 'RK': { - temp_val = ({ixfe: val.ixfe, XF: XFs[val.ixfe], v:val.rknum, t:'n'}); - if(BIFF2Fmt > 0) temp_val.z = BIFF2FmtTable[(temp_val.ixfe>>8) & 0x3F]; - safe_format_xf(temp_val, options, wb.opts.Date1904); - addcell({c:val.c, r:val.r}, temp_val, options); - } break; - case 'MulRk': { - for(var j = val.c; j <= val.C; ++j) { - var ixfe = val.rkrec[j-val.c][0]; - temp_val= ({ixfe:ixfe, XF:XFs[ixfe], v:val.rkrec[j-val.c][1], t:'n'}); - if(BIFF2Fmt > 0) temp_val.z = BIFF2FmtTable[(temp_val.ixfe>>8) & 0x3F]; - safe_format_xf(temp_val, options, wb.opts.Date1904); - addcell({c:j, r:val.r}, temp_val, options); - } - } break; - case 'Formula': { - if(val.val == 'String') { last_formula = val; break; } - temp_val = make_cell(val.val, val.cell.ixfe, val.tt); - temp_val.XF = XFs[temp_val.ixfe]; - if(options.cellFormula) { - var _f = val.formula; - if(_f && _f[0] && _f[0][0] && _f[0][0][0] == 'PtgExp') { - var _fr = _f[0][0][1][0], _fc = _f[0][0][1][1]; - var _fe = encode_cell({r:_fr, c:_fc}); - if(sharedf[_fe]) temp_val.f = ""+stringify_formula(val.formula,range,val.cell,supbooks, opts); - else temp_val.F = ((options.dense ? (out[_fr]||[])[_fc]: out[_fe]) || {}).F; - } else temp_val.f = ""+stringify_formula(val.formula,range,val.cell,supbooks, opts); - } - if(BIFF2Fmt > 0) temp_val.z = BIFF2FmtTable[(temp_val.ixfe>>8) & 0x3F]; - safe_format_xf(temp_val, options, wb.opts.Date1904); - addcell(val.cell, temp_val, options); - last_formula = val; - } break; - case 'String': { - if(last_formula) { /* technically always true */ - last_formula.val = val; - temp_val = make_cell(val, last_formula.cell.ixfe, 's'); - temp_val.XF = XFs[temp_val.ixfe]; - if(options.cellFormula) { - temp_val.f = ""+stringify_formula(last_formula.formula, range, last_formula.cell, supbooks, opts); - } - if(BIFF2Fmt > 0) temp_val.z = BIFF2FmtTable[(temp_val.ixfe>>8) & 0x3F]; - safe_format_xf(temp_val, options, wb.opts.Date1904); - addcell(last_formula.cell, temp_val, options); - last_formula = null; - } else throw new Error("String record expects Formula"); - } break; - case 'Array': { - arrayf.push(val); - var _arraystart = encode_cell(val[0].s); - cc = options.dense ? (out[val[0].s.r]||[])[val[0].s.c] : out[_arraystart]; - if(options.cellFormula && cc) { - if(!last_formula) break; /* technically unreachable */ - if(!_arraystart || !cc) break; - cc.f = ""+stringify_formula(val[1], range, val[0], supbooks, opts); - cc.F = encode_range(val[0]); - } - } break; - case 'ShrFmla': { - if(!options.cellFormula) break; - if(last_cell) { - /* TODO: capture range */ - if(!last_formula) break; /* technically unreachable */ - sharedf[encode_cell(last_formula.cell)]= val[0]; - cc = options.dense ? (out[last_formula.cell.r]||[])[last_formula.cell.c] : out[encode_cell(last_formula.cell)]; - (cc||{}).f = ""+stringify_formula(val[0], range, lastcell, supbooks, opts); - } - } break; - case 'LabelSst': - temp_val=make_cell(sst[val.isst].t, val.ixfe, 's'); - if(sst[val.isst].h) temp_val.h = sst[val.isst].h; - temp_val.XF = XFs[temp_val.ixfe]; - if(BIFF2Fmt > 0) temp_val.z = BIFF2FmtTable[(temp_val.ixfe>>8) & 0x3F]; - safe_format_xf(temp_val, options, wb.opts.Date1904); - addcell({c:val.c, r:val.r}, temp_val, options); - break; - case 'Blank': if(options.sheetStubs) { - temp_val = ({ixfe: val.ixfe, XF: XFs[val.ixfe], t:'z'}); - if(BIFF2Fmt > 0) temp_val.z = BIFF2FmtTable[(temp_val.ixfe>>8) & 0x3F]; - safe_format_xf(temp_val, options, wb.opts.Date1904); - addcell({c:val.c, r:val.r}, temp_val, options); - } break; - case 'MulBlank': if(options.sheetStubs) { - for(var _j = val.c; _j <= val.C; ++_j) { - var _ixfe = val.ixfe[_j-val.c]; - temp_val= ({ixfe:_ixfe, XF:XFs[_ixfe], t:'z'}); - if(BIFF2Fmt > 0) temp_val.z = BIFF2FmtTable[(temp_val.ixfe>>8) & 0x3F]; - safe_format_xf(temp_val, options, wb.opts.Date1904); - addcell({c:_j, r:val.r}, temp_val, options); - } - } break; - case 'RString': - case 'Label': case 'BIFF2STR': - temp_val=make_cell(val.val, val.ixfe, 's'); - temp_val.XF = XFs[temp_val.ixfe]; - if(BIFF2Fmt > 0) temp_val.z = BIFF2FmtTable[(temp_val.ixfe>>8) & 0x3F]; - safe_format_xf(temp_val, options, wb.opts.Date1904); - addcell({c:val.c, r:val.r}, temp_val, options); - break; - - case 'Dimensions': { - if(file_depth === 1) range = val; /* TODO: stack */ - } break; - case 'SST': { - sst = val; - } break; - case 'Format': { /* val = [id, fmt] */ - if(opts.biff == 4) { - BIFF2FmtTable[BIFF2Fmt++] = val[1]; - for(var b4idx = 0; b4idx < BIFF2Fmt + 163; ++b4idx) if(SSF._table[b4idx] == val[1]) break; - if(b4idx >= 163) SSF.load(val[1], BIFF2Fmt + 163); - } - else SSF.load(val[1], val[0]); - } break; - case 'BIFF2FORMAT': { - BIFF2FmtTable[BIFF2Fmt++] = val; - for(var b2idx = 0; b2idx < BIFF2Fmt + 163; ++b2idx) if(SSF._table[b2idx] == val) break; - if(b2idx >= 163) SSF.load(val, BIFF2Fmt + 163); - } break; - - case 'MergeCells': merges = merges.concat(val); break; - - case 'Obj': objects[val.cmo[0]] = opts.lastobj = val; break; - case 'TxO': opts.lastobj.TxO = val; break; - case 'ImData': opts.lastobj.ImData = val; break; - - case 'HLink': { - for(rngR = val[0].s.r; rngR <= val[0].e.r; ++rngR) - for(rngC = val[0].s.c; rngC <= val[0].e.c; ++rngC) { - cc = options.dense ? (out[rngR]||[])[rngC] : out[encode_cell({c:rngC,r:rngR})]; - if(cc) cc.l = val[1]; - } - } break; - case 'HLinkTooltip': { - for(rngR = val[0].s.r; rngR <= val[0].e.r; ++rngR) - for(rngC = val[0].s.c; rngC <= val[0].e.c; ++rngC) { - cc = options.dense ? (out[rngR]||[])[rngC] : out[encode_cell({c:rngC,r:rngR})]; - if(cc && cc.l) cc.l.Tooltip = val[1]; - } - } break; - - /* Comments */ - case 'Note': { - if(opts.biff <= 5 && opts.biff >= 2) break; /* TODO: BIFF5 */ - cc = options.dense ? (out[val[0].r]||[])[val[0].c] : out[encode_cell(val[0])]; - var noteobj = objects[val[2]]; - if(!cc) { - if(options.dense) { - if(!out[val[0].r]) out[val[0].r] = []; - cc = out[val[0].r][val[0].c] = ({t:"z"}); - } else { - cc = out[encode_cell(val[0])] = ({t:"z"}); - } - range.e.r = Math.max(range.e.r, val[0].r); - range.s.r = Math.min(range.s.r, val[0].r); - range.e.c = Math.max(range.e.c, val[0].c); - range.s.c = Math.min(range.s.c, val[0].c); - } - if(!cc.c) cc.c = []; - cmnt = {a:val[1],t:noteobj.TxO.t}; - cc.c.push(cmnt); - } break; - - default: switch(R.n) { /* nested */ - case 'ClrtClient': break; - case 'XFExt': update_xfext(XFs[val.ixfe], val.ext); break; - - case 'DefColWidth': defwidth = val; break; - case 'DefaultRowHeight': defheight = val[1]; break; // TODO: flags - - case 'ColInfo': { - if(!opts.cellStyles) break; - while(val.e >= val.s) { - colinfo[val.e--] = { width: val.w/256, level: (val.level || 0), hidden: !!(val.flags & 1) }; - if(!seencol) { seencol = true; find_mdw_colw(val.w/256); } - process_col(colinfo[val.e+1]); - } - } break; - case 'Row': { - var rowobj = {}; - if(val.level != null) { rowinfo[val.r] = rowobj; rowobj.level = val.level; } - if(val.hidden) { rowinfo[val.r] = rowobj; rowobj.hidden = true; } - if(val.hpt) { - rowinfo[val.r] = rowobj; - rowobj.hpt = val.hpt; rowobj.hpx = pt2px(val.hpt); - } - } break; - - case 'LeftMargin': - case 'RightMargin': - case 'TopMargin': - case 'BottomMargin': - if(!out['!margins']) default_margins(out['!margins'] = {}); - out['!margins'][Rn.slice(0,-6).toLowerCase()] = val; - break; - - case 'Selection': break; - - case 'Setup': // TODO - if(!out['!margins']) default_margins(out['!margins'] = {}); - out['!margins'].header = val.header; - out['!margins'].footer = val.footer; - break; - - case 'Window2': // TODO - // $FlowIgnore - if(val.RTL) Workbook.Views[0].RTL = true; - break; - - case 'Header': break; // TODO - case 'Footer': break; // TODO - case 'HCenter': break; // TODO - case 'VCenter': break; // TODO - case 'Pls': break; // TODO - case 'GCW': break; - case 'LHRecord': break; - case 'DBCell': break; // TODO - case 'EntExU2': break; // TODO - case 'SxView': break; // TODO - case 'Sxvd': break; // TODO - case 'SXVI': break; // TODO - case 'SXVDEx': break; // TODO - case 'SxIvd': break; // TODO - case 'SXString': break; // TODO - case 'Sync': break; - case 'Addin': break; - case 'SXDI': break; // TODO - case 'SXLI': break; // TODO - case 'SXEx': break; // TODO - case 'QsiSXTag': break; // TODO - case 'Feat': break; - case 'FeatHdr': case 'FeatHdr11': break; - case 'Feature11': case 'Feature12': case 'List12': break; - case 'Country': country = val; break; - case 'RecalcId': break; - case 'DxGCol': break; // TODO: htmlify - case 'Fbi': case 'Fbi2': case 'GelFrame': break; - case 'Font': break; // TODO - case 'XFCRC': break; // TODO - case 'Style': break; // TODO - case 'StyleExt': break; // TODO - case 'Palette': palette = val; break; - case 'Theme': themes = val; break; - /* Protection */ - case 'ScenarioProtect': break; - case 'ObjProtect': break; - - /* Conditional Formatting */ - case 'CondFmt12': break; - - /* Table */ - case 'Table': break; // TODO - case 'TableStyles': break; // TODO - case 'TableStyle': break; // TODO - case 'TableStyleElement': break; // TODO - - /* PivotTable */ - case 'SXStreamID': break; // TODO - case 'SXVS': break; // TODO - case 'DConRef': break; // TODO - case 'SXAddl': break; // TODO - case 'DConBin': break; // TODO - case 'DConName': break; // TODO - case 'SXPI': break; // TODO - case 'SxFormat': break; // TODO - case 'SxSelect': break; // TODO - case 'SxRule': break; // TODO - case 'SxFilt': break; // TODO - case 'SxItm': break; // TODO - case 'SxDXF': break; // TODO - - /* Scenario Manager */ - case 'ScenMan': break; - - /* Data Consolidation */ - case 'DCon': break; - - /* Watched Cell */ - case 'CellWatch': break; - - /* Print Settings */ - case 'PrintRowCol': break; - case 'PrintGrid': break; - case 'PrintSize': break; - - case 'XCT': break; - case 'CRN': break; - - case 'Scl': { - //console.log("Zoom Level:", val[0]/val[1],val); - } break; - case 'SheetExt': { - /* empty */ - } break; - case 'SheetExtOptional': { - /* empty */ - } break; - - /* VBA */ - case 'ObNoMacros': { - /* empty */ - } break; - case 'ObProj': { - /* empty */ - } break; - case 'CodeName': { -if(!cur_sheet) Workbook.WBProps.CodeName = val || "ThisWorkbook"; - else wsprops.CodeName = val || wsprops.name; - } break; - case 'GUIDTypeLib': { - /* empty */ - } break; - - case 'WOpt': break; // TODO: WTF? - case 'PhoneticInfo': break; - - case 'OleObjectSize': break; - - /* Differential Formatting */ - case 'DXF': case 'DXFN': case 'DXFN12': case 'DXFN12List': case 'DXFN12NoCB': break; - - /* Data Validation */ - case 'Dv': case 'DVal': break; - - /* Data Series */ - case 'BRAI': case 'Series': case 'SeriesText': break; - - /* Data Connection */ - case 'DConn': break; - case 'DbOrParamQry': break; - case 'DBQueryExt': break; - - case 'OleDbConn': break; - case 'ExtString': break; - - /* Formatting */ - case 'IFmtRecord': break; - case 'CondFmt': case 'CF': case 'CF12': case 'CFEx': break; - - /* Explicitly Ignored */ - case 'Excel9File': break; - case 'Units': break; - case 'InterfaceHdr': case 'Mms': case 'InterfaceEnd': case 'DSF': break; - case 'BuiltInFnGroupCount': /* 2.4.30 0x0E or 0x10 but excel 2011 generates 0x11? */ break; - /* View Stuff */ - case 'Window1': case 'HideObj': case 'GridSet': case 'Guts': - case 'UserBView': case 'UserSViewBegin': case 'UserSViewEnd': break; - case 'Pane': break; - default: switch(R.n) { /* nested */ - /* Chart */ - case 'Dat': - case 'Begin': case 'End': - case 'StartBlock': case 'EndBlock': - case 'Frame': case 'Area': - case 'Axis': case 'AxisLine': case 'Tick': break; - case 'AxesUsed': - case 'CrtLayout12': case 'CrtLayout12A': case 'CrtLink': case 'CrtLine': case 'CrtMlFrt': case 'CrtMlFrtContinue': break; - case 'LineFormat': case 'AreaFormat': - case 'Chart': case 'Chart3d': case 'Chart3DBarShape': case 'ChartFormat': case 'ChartFrtInfo': break; - case 'PlotArea': case 'PlotGrowth': break; - case 'SeriesList': case 'SerParent': case 'SerAuxTrend': break; - case 'DataFormat': case 'SerToCrt': case 'FontX': break; - case 'CatSerRange': case 'AxcExt': case 'SerFmt': break; - case 'ShtProps': break; - case 'DefaultText': case 'Text': case 'CatLab': break; - case 'DataLabExtContents': break; - case 'Legend': case 'LegendException': break; - case 'Pie': case 'Scatter': break; - case 'PieFormat': case 'MarkerFormat': break; - case 'StartObject': case 'EndObject': break; - case 'AlRuns': case 'ObjectLink': break; - case 'SIIndex': break; - case 'AttachedLabel': case 'YMult': break; - - /* Chart Group */ - case 'Line': case 'Bar': break; - case 'Surf': break; - - /* Axis Group */ - case 'AxisParent': break; - case 'Pos': break; - case 'ValueRange': break; - - /* Pivot Chart */ - case 'SXViewEx9': break; // TODO - case 'SXViewLink': break; - case 'PivotChartBits': break; - case 'SBaseRef': break; - case 'TextPropsStream': break; - - /* Chart Misc */ - case 'LnExt': break; - case 'MkrExt': break; - case 'CrtCoopt': break; - - /* Query Table */ - case 'Qsi': case 'Qsif': case 'Qsir': case 'QsiSXTag': break; - case 'TxtQry': break; - - /* Filter */ - case 'FilterMode': break; - case 'AutoFilter': case 'AutoFilterInfo': break; - case 'AutoFilter12': break; - case 'DropDownObjIds': break; - case 'Sort': break; - case 'SortData': break; - - /* Drawing */ - case 'ShapePropsStream': break; - case 'MsoDrawing': case 'MsoDrawingGroup': case 'MsoDrawingSelection': break; - /* Pub Stuff */ - case 'WebPub': case 'AutoWebPub': break; - - /* Print Stuff */ - case 'HeaderFooter': case 'HFPicture': case 'PLV': - case 'HorizontalPageBreaks': case 'VerticalPageBreaks': break; - /* Behavioral */ - case 'Backup': case 'CompressPictures': case 'Compat12': break; - - /* Should not Happen */ - case 'Continue': case 'ContinueFrt12': break; - - /* Future Records */ - case 'FrtFontList': case 'FrtWrapper': break; - - default: switch(R.n) { /* nested */ - /* BIFF5 records */ - case 'TabIdConf': case 'Radar': case 'RadarArea': case 'DropBar': case 'Intl': case 'CoordList': case 'SerAuxErrBar': break; - - /* BIFF2-4 records */ - case 'BIFF2FONTCLR': case 'BIFF2FMTCNT': case 'BIFF2FONTXTRA': break; - case 'BIFF2XF': case 'BIFF3XF': case 'BIFF4XF': break; - case 'BIFF2XFINDEX': break; - case 'BIFF4FMTCNT': case 'BIFF2ROW': case 'BIFF2WINDOW2': break; - - /* Miscellaneous */ - case 'SCENARIO': case 'DConBin': case 'PicF': case 'DataLabExt': - case 'Lel': case 'BopPop': case 'BopPopCustom': case 'RealTimeData': - case 'Name': break; - case 'LHNGraph': case 'FnGroupName': case 'AddMenu': case 'LPr': break; - case 'ListObj': case 'ListField': break; - case 'RRSort': break; - case 'BigName': break; - case 'ToolbarHdr': case 'ToolbarEnd': break; - case 'DDEObjName': break; - case 'FRTArchId$': break; - default: if(options.WTF) throw 'Unrecognized Record ' + R.n; - }}}} - } else blob.l += length; - } - wb.SheetNames=keys(Directory).sort(function(a,b) { return Number(a) - Number(b); }).map(function(x){return Directory[x].name;}); - if(!options.bookSheets) wb.Sheets=Sheets; - if(!wb.SheetNames.length && Preamble["!ref"]) { - wb.SheetNames.push("Sheet1"); - /*jshint -W069 */ - if(wb.Sheets) wb.Sheets["Sheet1"] = Preamble; - /*jshint +W069 */ - } else wb.Preamble=Preamble; - if(wb.Sheets) FilterDatabases.forEach(function(r,i) { wb.Sheets[wb.SheetNames[i]]['!autofilter'] = r; }); - wb.Strings = sst; - wb.SSF = SSF.get_table(); - if(opts.enc) wb.Encryption = opts.enc; - if(themes) wb.Themes = themes; - wb.Metadata = {}; - if(country !== undefined) wb.Metadata.Country = country; - if(supbooks.names.length > 0) Workbook.Names = supbooks.names; - wb.Workbook = Workbook; - return wb; -} - -/* TODO: split props*/ -var PSCLSID = { - SI: "e0859ff2f94f6810ab9108002b27b3d9", - DSI: "02d5cdd59c2e1b10939708002b2cf9ae", - UDI: "05d5cdd59c2e1b10939708002b2cf9ae" -}; -function parse_xls_props(cfb, props, o) { - /* [MS-OSHARED] 2.3.3.2.2 Document Summary Information Property Set */ - var DSI = CFB.find(cfb, '/!DocumentSummaryInformation'); - if(DSI && DSI.size > 0) try { - var DocSummary = parse_PropertySetStream(DSI, DocSummaryPIDDSI, PSCLSID.DSI); - for(var d in DocSummary) props[d] = DocSummary[d]; - } catch(e) {if(o.WTF) throw e;/* empty */} - - /* [MS-OSHARED] 2.3.3.2.1 Summary Information Property Set*/ - var SI = CFB.find(cfb, '/!SummaryInformation'); - if(SI && SI.size > 0) try { - var Summary = parse_PropertySetStream(SI, SummaryPIDSI, PSCLSID.SI); - for(var s in Summary) if(props[s] == null) props[s] = Summary[s]; - } catch(e) {if(o.WTF) throw e;/* empty */} - - if(props.HeadingPairs && props.TitlesOfParts) { - load_props_pairs(props.HeadingPairs, props.TitlesOfParts, props, o); - delete props.HeadingPairs; delete props.TitlesOfParts; - } -} -function write_xls_props(wb, cfb) { - var DSEntries = [], SEntries = [], CEntries = []; - var i = 0, Keys; - if(wb.Props) { - Keys = keys(wb.Props); - // $FlowIgnore - for(i = 0; i < Keys.length; ++i) (Object.prototype.hasOwnProperty.call(DocSummaryRE, Keys[i]) ? DSEntries : Object.prototype.hasOwnProperty.call(SummaryRE, Keys[i]) ? SEntries : CEntries).push([Keys[i], wb.Props[Keys[i]]]); - } - if(wb.Custprops) { - Keys = keys(wb.Custprops); - // $FlowIgnore - for(i = 0; i < Keys.length; ++i) if(!Object.prototype.hasOwnProperty.call((wb.Props||{}), Keys[i])) (Object.prototype.hasOwnProperty.call(DocSummaryRE, Keys[i]) ? DSEntries : Object.prototype.hasOwnProperty.call(SummaryRE, Keys[i]) ? SEntries : CEntries).push([Keys[i], wb.Custprops[Keys[i]]]); - } - var CEntries2 = []; - for(i = 0; i < CEntries.length; ++i) { - if(XLSPSSkip.indexOf(CEntries[i][0]) > -1) continue; - if(CEntries[i][1] == null) continue; - CEntries2.push(CEntries[i]); - } - if(SEntries.length) CFB.utils.cfb_add(cfb, "/\u0005SummaryInformation", write_PropertySetStream(SEntries, PSCLSID.SI, SummaryRE, SummaryPIDSI)); - if(DSEntries.length || CEntries2.length) CFB.utils.cfb_add(cfb, "/\u0005DocumentSummaryInformation", write_PropertySetStream(DSEntries, PSCLSID.DSI, DocSummaryRE, DocSummaryPIDDSI, CEntries2.length ? CEntries2 : null, PSCLSID.UDI)); -} - -function parse_xlscfb(cfb, options) { -if(!options) options = {}; -fix_read_opts(options); -reset_cp(); -if(options.codepage) set_ansi(options.codepage); -var CompObj, WB; -if(cfb.FullPaths) { - if(CFB.find(cfb, '/encryption')) throw new Error("File is password-protected"); - CompObj = CFB.find(cfb, '!CompObj'); - WB = CFB.find(cfb, '/Workbook') || CFB.find(cfb, '/Book'); -} else { - switch(options.type) { - case 'base64': cfb = s2a(Base64.decode(cfb)); break; - case 'binary': cfb = s2a(cfb); break; - case 'buffer': break; - case 'array': if(!Array.isArray(cfb)) cfb = Array.prototype.slice.call(cfb); break; - } - prep_blob(cfb, 0); - WB = ({content: cfb}); -} -var WorkbookP; - -var _data; -if(CompObj) parse_compobj(CompObj); -if(options.bookProps && !options.bookSheets) WorkbookP = ({}); -else { - var T = has_buf ? 'buffer' : 'array'; - if(WB && WB.content) WorkbookP = parse_workbook(WB.content, options); - /* Quattro Pro 7-8 */ - else if((_data=CFB.find(cfb, 'PerfectOffice_MAIN')) && _data.content) WorkbookP = WK_.to_workbook(_data.content, (options.type = T, options)); - /* Quattro Pro 9 */ - else if((_data=CFB.find(cfb, 'NativeContent_MAIN')) && _data.content) WorkbookP = WK_.to_workbook(_data.content, (options.type = T, options)); - /* Works 4 for Mac */ - else if((_data=CFB.find(cfb, 'MN0')) && _data.content) throw new Error("Unsupported Works 4 for Mac file"); - else throw new Error("Cannot find Workbook stream"); - if(options.bookVBA && cfb.FullPaths && CFB.find(cfb, '/_VBA_PROJECT_CUR/VBA/dir')) WorkbookP.vbaraw = make_vba_xls(cfb); -} - -var props = {}; -if(cfb.FullPaths) parse_xls_props(cfb, props, options); - -WorkbookP.Props = WorkbookP.Custprops = props; /* TODO: split up properties */ -if(options.bookFiles) WorkbookP.cfb = cfb; -/*WorkbookP.CompObjP = CompObjP; // TODO: storage? */ -return WorkbookP; -} - - -function write_xlscfb(wb, opts) { - var o = opts || {}; - var cfb = CFB.utils.cfb_new({root:"R"}); - var wbpath = "/Workbook"; - switch(o.bookType || "xls") { - case "xls": o.bookType = "biff8"; - /* falls through */ - case "xla": if(!o.bookType) o.bookType = "xla"; - /* falls through */ - case "biff8": wbpath = "/Workbook"; o.biff = 8; break; - case "biff5": wbpath = "/Book"; o.biff = 5; break; - default: throw new Error("invalid type " + o.bookType + " for XLS CFB"); - } - CFB.utils.cfb_add(cfb, wbpath, write_biff_buf(wb, o)); - if(o.biff == 8 && (wb.Props || wb.Custprops)) write_xls_props(wb, cfb); - // TODO: SI, DSI, CO - if(o.biff == 8 && wb.vbaraw) fill_vba_xls(cfb, CFB.read(wb.vbaraw, {type: typeof wb.vbaraw == "string" ? "binary" : "buffer"})); - return cfb; -} -/* [MS-XLSB] 2.3 Record Enumeration */ -var XLSBRecordEnum = { -0x0000: { n:"BrtRowHdr", f:parse_BrtRowHdr }, -0x0001: { n:"BrtCellBlank", f:parse_BrtCellBlank }, -0x0002: { n:"BrtCellRk", f:parse_BrtCellRk }, -0x0003: { n:"BrtCellError", f:parse_BrtCellError }, -0x0004: { n:"BrtCellBool", f:parse_BrtCellBool }, -0x0005: { n:"BrtCellReal", f:parse_BrtCellReal }, -0x0006: { n:"BrtCellSt", f:parse_BrtCellSt }, -0x0007: { n:"BrtCellIsst", f:parse_BrtCellIsst }, -0x0008: { n:"BrtFmlaString", f:parse_BrtFmlaString }, -0x0009: { n:"BrtFmlaNum", f:parse_BrtFmlaNum }, -0x000A: { n:"BrtFmlaBool", f:parse_BrtFmlaBool }, -0x000B: { n:"BrtFmlaError", f:parse_BrtFmlaError }, -0x000C: { n:"BrtShortBlank", f:parse_BrtShortBlank }, -0x000D: { n:"BrtShortRk", f:parse_BrtShortRk }, -0x000E: { n:"BrtShortError", f:parse_BrtShortError }, -0x000F: { n:"BrtShortBool", f:parse_BrtShortBool }, -0x0010: { n:"BrtShortReal", f:parse_BrtShortReal }, -0x0011: { n:"BrtShortSt", f:parse_BrtShortSt }, -0x0012: { n:"BrtShortIsst", f:parse_BrtShortIsst }, -0x0013: { n:"BrtSSTItem", f:parse_RichStr }, -0x0014: { n:"BrtPCDIMissing" }, -0x0015: { n:"BrtPCDINumber" }, -0x0016: { n:"BrtPCDIBoolean" }, -0x0017: { n:"BrtPCDIError" }, -0x0018: { n:"BrtPCDIString" }, -0x0019: { n:"BrtPCDIDatetime" }, -0x001A: { n:"BrtPCDIIndex" }, -0x001B: { n:"BrtPCDIAMissing" }, -0x001C: { n:"BrtPCDIANumber" }, -0x001D: { n:"BrtPCDIABoolean" }, -0x001E: { n:"BrtPCDIAError" }, -0x001F: { n:"BrtPCDIAString" }, -0x0020: { n:"BrtPCDIADatetime" }, -0x0021: { n:"BrtPCRRecord" }, -0x0022: { n:"BrtPCRRecordDt" }, -0x0023: { n:"BrtFRTBegin" }, -0x0024: { n:"BrtFRTEnd" }, -0x0025: { n:"BrtACBegin" }, -0x0026: { n:"BrtACEnd" }, -0x0027: { n:"BrtName", f:parse_BrtName }, -0x0028: { n:"BrtIndexRowBlock" }, -0x002A: { n:"BrtIndexBlock" }, -0x002B: { n:"BrtFont", f:parse_BrtFont }, -0x002C: { n:"BrtFmt", f:parse_BrtFmt }, -0x002D: { n:"BrtFill", f:parse_BrtFill }, -0x002E: { n:"BrtBorder", f:parse_BrtBorder }, -0x002F: { n:"BrtXF", f:parse_BrtXF }, -0x0030: { n:"BrtStyle" }, -0x0031: { n:"BrtCellMeta" }, -0x0032: { n:"BrtValueMeta" }, -0x0033: { n:"BrtMdb" }, -0x0034: { n:"BrtBeginFmd" }, -0x0035: { n:"BrtEndFmd" }, -0x0036: { n:"BrtBeginMdx" }, -0x0037: { n:"BrtEndMdx" }, -0x0038: { n:"BrtBeginMdxTuple" }, -0x0039: { n:"BrtEndMdxTuple" }, -0x003A: { n:"BrtMdxMbrIstr" }, -0x003B: { n:"BrtStr" }, -0x003C: { n:"BrtColInfo", f:parse_ColInfo }, -0x003E: { n:"BrtCellRString", f:parse_BrtCellRString }, -0x003F: { n:"BrtCalcChainItem$", f:parse_BrtCalcChainItem$ }, -0x0040: { n:"BrtDVal", f:parse_BrtDVal }, -0x0041: { n:"BrtSxvcellNum" }, -0x0042: { n:"BrtSxvcellStr" }, -0x0043: { n:"BrtSxvcellBool" }, -0x0044: { n:"BrtSxvcellErr" }, -0x0045: { n:"BrtSxvcellDate" }, -0x0046: { n:"BrtSxvcellNil" }, -0x0080: { n:"BrtFileVersion" }, -0x0081: { n:"BrtBeginSheet" }, -0x0082: { n:"BrtEndSheet" }, -0x0083: { n:"BrtBeginBook", f:parsenoop, p:0 }, -0x0084: { n:"BrtEndBook" }, -0x0085: { n:"BrtBeginWsViews" }, -0x0086: { n:"BrtEndWsViews" }, -0x0087: { n:"BrtBeginBookViews" }, -0x0088: { n:"BrtEndBookViews" }, -0x0089: { n:"BrtBeginWsView", f:parse_BrtBeginWsView }, -0x008A: { n:"BrtEndWsView" }, -0x008B: { n:"BrtBeginCsViews" }, -0x008C: { n:"BrtEndCsViews" }, -0x008D: { n:"BrtBeginCsView" }, -0x008E: { n:"BrtEndCsView" }, -0x008F: { n:"BrtBeginBundleShs" }, -0x0090: { n:"BrtEndBundleShs" }, -0x0091: { n:"BrtBeginSheetData" }, -0x0092: { n:"BrtEndSheetData" }, -0x0093: { n:"BrtWsProp", f:parse_BrtWsProp }, -0x0094: { n:"BrtWsDim", f:parse_BrtWsDim, p:16 }, -0x0097: { n:"BrtPane", f:parse_BrtPane }, -0x0098: { n:"BrtSel" }, -0x0099: { n:"BrtWbProp", f:parse_BrtWbProp }, -0x009A: { n:"BrtWbFactoid" }, -0x009B: { n:"BrtFileRecover" }, -0x009C: { n:"BrtBundleSh", f:parse_BrtBundleSh }, -0x009D: { n:"BrtCalcProp" }, -0x009E: { n:"BrtBookView" }, -0x009F: { n:"BrtBeginSst", f:parse_BrtBeginSst }, -0x00A0: { n:"BrtEndSst" }, -0x00A1: { n:"BrtBeginAFilter", f:parse_UncheckedRfX }, -0x00A2: { n:"BrtEndAFilter" }, -0x00A3: { n:"BrtBeginFilterColumn" }, -0x00A4: { n:"BrtEndFilterColumn" }, -0x00A5: { n:"BrtBeginFilters" }, -0x00A6: { n:"BrtEndFilters" }, -0x00A7: { n:"BrtFilter" }, -0x00A8: { n:"BrtColorFilter" }, -0x00A9: { n:"BrtIconFilter" }, -0x00AA: { n:"BrtTop10Filter" }, -0x00AB: { n:"BrtDynamicFilter" }, -0x00AC: { n:"BrtBeginCustomFilters" }, -0x00AD: { n:"BrtEndCustomFilters" }, -0x00AE: { n:"BrtCustomFilter" }, -0x00AF: { n:"BrtAFilterDateGroupItem" }, -0x00B0: { n:"BrtMergeCell", f:parse_BrtMergeCell }, -0x00B1: { n:"BrtBeginMergeCells" }, -0x00B2: { n:"BrtEndMergeCells" }, -0x00B3: { n:"BrtBeginPivotCacheDef" }, -0x00B4: { n:"BrtEndPivotCacheDef" }, -0x00B5: { n:"BrtBeginPCDFields" }, -0x00B6: { n:"BrtEndPCDFields" }, -0x00B7: { n:"BrtBeginPCDField" }, -0x00B8: { n:"BrtEndPCDField" }, -0x00B9: { n:"BrtBeginPCDSource" }, -0x00BA: { n:"BrtEndPCDSource" }, -0x00BB: { n:"BrtBeginPCDSRange" }, -0x00BC: { n:"BrtEndPCDSRange" }, -0x00BD: { n:"BrtBeginPCDFAtbl" }, -0x00BE: { n:"BrtEndPCDFAtbl" }, -0x00BF: { n:"BrtBeginPCDIRun" }, -0x00C0: { n:"BrtEndPCDIRun" }, -0x00C1: { n:"BrtBeginPivotCacheRecords" }, -0x00C2: { n:"BrtEndPivotCacheRecords" }, -0x00C3: { n:"BrtBeginPCDHierarchies" }, -0x00C4: { n:"BrtEndPCDHierarchies" }, -0x00C5: { n:"BrtBeginPCDHierarchy" }, -0x00C6: { n:"BrtEndPCDHierarchy" }, -0x00C7: { n:"BrtBeginPCDHFieldsUsage" }, -0x00C8: { n:"BrtEndPCDHFieldsUsage" }, -0x00C9: { n:"BrtBeginExtConnection" }, -0x00CA: { n:"BrtEndExtConnection" }, -0x00CB: { n:"BrtBeginECDbProps" }, -0x00CC: { n:"BrtEndECDbProps" }, -0x00CD: { n:"BrtBeginECOlapProps" }, -0x00CE: { n:"BrtEndECOlapProps" }, -0x00CF: { n:"BrtBeginPCDSConsol" }, -0x00D0: { n:"BrtEndPCDSConsol" }, -0x00D1: { n:"BrtBeginPCDSCPages" }, -0x00D2: { n:"BrtEndPCDSCPages" }, -0x00D3: { n:"BrtBeginPCDSCPage" }, -0x00D4: { n:"BrtEndPCDSCPage" }, -0x00D5: { n:"BrtBeginPCDSCPItem" }, -0x00D6: { n:"BrtEndPCDSCPItem" }, -0x00D7: { n:"BrtBeginPCDSCSets" }, -0x00D8: { n:"BrtEndPCDSCSets" }, -0x00D9: { n:"BrtBeginPCDSCSet" }, -0x00DA: { n:"BrtEndPCDSCSet" }, -0x00DB: { n:"BrtBeginPCDFGroup" }, -0x00DC: { n:"BrtEndPCDFGroup" }, -0x00DD: { n:"BrtBeginPCDFGItems" }, -0x00DE: { n:"BrtEndPCDFGItems" }, -0x00DF: { n:"BrtBeginPCDFGRange" }, -0x00E0: { n:"BrtEndPCDFGRange" }, -0x00E1: { n:"BrtBeginPCDFGDiscrete" }, -0x00E2: { n:"BrtEndPCDFGDiscrete" }, -0x00E3: { n:"BrtBeginPCDSDTupleCache" }, -0x00E4: { n:"BrtEndPCDSDTupleCache" }, -0x00E5: { n:"BrtBeginPCDSDTCEntries" }, -0x00E6: { n:"BrtEndPCDSDTCEntries" }, -0x00E7: { n:"BrtBeginPCDSDTCEMembers" }, -0x00E8: { n:"BrtEndPCDSDTCEMembers" }, -0x00E9: { n:"BrtBeginPCDSDTCEMember" }, -0x00EA: { n:"BrtEndPCDSDTCEMember" }, -0x00EB: { n:"BrtBeginPCDSDTCQueries" }, -0x00EC: { n:"BrtEndPCDSDTCQueries" }, -0x00ED: { n:"BrtBeginPCDSDTCQuery" }, -0x00EE: { n:"BrtEndPCDSDTCQuery" }, -0x00EF: { n:"BrtBeginPCDSDTCSets" }, -0x00F0: { n:"BrtEndPCDSDTCSets" }, -0x00F1: { n:"BrtBeginPCDSDTCSet" }, -0x00F2: { n:"BrtEndPCDSDTCSet" }, -0x00F3: { n:"BrtBeginPCDCalcItems" }, -0x00F4: { n:"BrtEndPCDCalcItems" }, -0x00F5: { n:"BrtBeginPCDCalcItem" }, -0x00F6: { n:"BrtEndPCDCalcItem" }, -0x00F7: { n:"BrtBeginPRule" }, -0x00F8: { n:"BrtEndPRule" }, -0x00F9: { n:"BrtBeginPRFilters" }, -0x00FA: { n:"BrtEndPRFilters" }, -0x00FB: { n:"BrtBeginPRFilter" }, -0x00FC: { n:"BrtEndPRFilter" }, -0x00FD: { n:"BrtBeginPNames" }, -0x00FE: { n:"BrtEndPNames" }, -0x00FF: { n:"BrtBeginPName" }, -0x0100: { n:"BrtEndPName" }, -0x0101: { n:"BrtBeginPNPairs" }, -0x0102: { n:"BrtEndPNPairs" }, -0x0103: { n:"BrtBeginPNPair" }, -0x0104: { n:"BrtEndPNPair" }, -0x0105: { n:"BrtBeginECWebProps" }, -0x0106: { n:"BrtEndECWebProps" }, -0x0107: { n:"BrtBeginEcWpTables" }, -0x0108: { n:"BrtEndECWPTables" }, -0x0109: { n:"BrtBeginECParams" }, -0x010A: { n:"BrtEndECParams" }, -0x010B: { n:"BrtBeginECParam" }, -0x010C: { n:"BrtEndECParam" }, -0x010D: { n:"BrtBeginPCDKPIs" }, -0x010E: { n:"BrtEndPCDKPIs" }, -0x010F: { n:"BrtBeginPCDKPI" }, -0x0110: { n:"BrtEndPCDKPI" }, -0x0111: { n:"BrtBeginDims" }, -0x0112: { n:"BrtEndDims" }, -0x0113: { n:"BrtBeginDim" }, -0x0114: { n:"BrtEndDim" }, -0x0115: { n:"BrtIndexPartEnd" }, -0x0116: { n:"BrtBeginStyleSheet" }, -0x0117: { n:"BrtEndStyleSheet" }, -0x0118: { n:"BrtBeginSXView" }, -0x0119: { n:"BrtEndSXVI" }, -0x011A: { n:"BrtBeginSXVI" }, -0x011B: { n:"BrtBeginSXVIs" }, -0x011C: { n:"BrtEndSXVIs" }, -0x011D: { n:"BrtBeginSXVD" }, -0x011E: { n:"BrtEndSXVD" }, -0x011F: { n:"BrtBeginSXVDs" }, -0x0120: { n:"BrtEndSXVDs" }, -0x0121: { n:"BrtBeginSXPI" }, -0x0122: { n:"BrtEndSXPI" }, -0x0123: { n:"BrtBeginSXPIs" }, -0x0124: { n:"BrtEndSXPIs" }, -0x0125: { n:"BrtBeginSXDI" }, -0x0126: { n:"BrtEndSXDI" }, -0x0127: { n:"BrtBeginSXDIs" }, -0x0128: { n:"BrtEndSXDIs" }, -0x0129: { n:"BrtBeginSXLI" }, -0x012A: { n:"BrtEndSXLI" }, -0x012B: { n:"BrtBeginSXLIRws" }, -0x012C: { n:"BrtEndSXLIRws" }, -0x012D: { n:"BrtBeginSXLICols" }, -0x012E: { n:"BrtEndSXLICols" }, -0x012F: { n:"BrtBeginSXFormat" }, -0x0130: { n:"BrtEndSXFormat" }, -0x0131: { n:"BrtBeginSXFormats" }, -0x0132: { n:"BrtEndSxFormats" }, -0x0133: { n:"BrtBeginSxSelect" }, -0x0134: { n:"BrtEndSxSelect" }, -0x0135: { n:"BrtBeginISXVDRws" }, -0x0136: { n:"BrtEndISXVDRws" }, -0x0137: { n:"BrtBeginISXVDCols" }, -0x0138: { n:"BrtEndISXVDCols" }, -0x0139: { n:"BrtEndSXLocation" }, -0x013A: { n:"BrtBeginSXLocation" }, -0x013B: { n:"BrtEndSXView" }, -0x013C: { n:"BrtBeginSXTHs" }, -0x013D: { n:"BrtEndSXTHs" }, -0x013E: { n:"BrtBeginSXTH" }, -0x013F: { n:"BrtEndSXTH" }, -0x0140: { n:"BrtBeginISXTHRws" }, -0x0141: { n:"BrtEndISXTHRws" }, -0x0142: { n:"BrtBeginISXTHCols" }, -0x0143: { n:"BrtEndISXTHCols" }, -0x0144: { n:"BrtBeginSXTDMPS" }, -0x0145: { n:"BrtEndSXTDMPs" }, -0x0146: { n:"BrtBeginSXTDMP" }, -0x0147: { n:"BrtEndSXTDMP" }, -0x0148: { n:"BrtBeginSXTHItems" }, -0x0149: { n:"BrtEndSXTHItems" }, -0x014A: { n:"BrtBeginSXTHItem" }, -0x014B: { n:"BrtEndSXTHItem" }, -0x014C: { n:"BrtBeginMetadata" }, -0x014D: { n:"BrtEndMetadata" }, -0x014E: { n:"BrtBeginEsmdtinfo" }, -0x014F: { n:"BrtMdtinfo" }, -0x0150: { n:"BrtEndEsmdtinfo" }, -0x0151: { n:"BrtBeginEsmdb" }, -0x0152: { n:"BrtEndEsmdb" }, -0x0153: { n:"BrtBeginEsfmd" }, -0x0154: { n:"BrtEndEsfmd" }, -0x0155: { n:"BrtBeginSingleCells" }, -0x0156: { n:"BrtEndSingleCells" }, -0x0157: { n:"BrtBeginList" }, -0x0158: { n:"BrtEndList" }, -0x0159: { n:"BrtBeginListCols" }, -0x015A: { n:"BrtEndListCols" }, -0x015B: { n:"BrtBeginListCol" }, -0x015C: { n:"BrtEndListCol" }, -0x015D: { n:"BrtBeginListXmlCPr" }, -0x015E: { n:"BrtEndListXmlCPr" }, -0x015F: { n:"BrtListCCFmla" }, -0x0160: { n:"BrtListTrFmla" }, -0x0161: { n:"BrtBeginExternals" }, -0x0162: { n:"BrtEndExternals" }, -0x0163: { n:"BrtSupBookSrc", f:parse_RelID}, -0x0165: { n:"BrtSupSelf" }, -0x0166: { n:"BrtSupSame" }, -0x0167: { n:"BrtSupTabs" }, -0x0168: { n:"BrtBeginSupBook" }, -0x0169: { n:"BrtPlaceholderName" }, -0x016A: { n:"BrtExternSheet", f:parse_ExternSheet }, -0x016B: { n:"BrtExternTableStart" }, -0x016C: { n:"BrtExternTableEnd" }, -0x016E: { n:"BrtExternRowHdr" }, -0x016F: { n:"BrtExternCellBlank" }, -0x0170: { n:"BrtExternCellReal" }, -0x0171: { n:"BrtExternCellBool" }, -0x0172: { n:"BrtExternCellError" }, -0x0173: { n:"BrtExternCellString" }, -0x0174: { n:"BrtBeginEsmdx" }, -0x0175: { n:"BrtEndEsmdx" }, -0x0176: { n:"BrtBeginMdxSet" }, -0x0177: { n:"BrtEndMdxSet" }, -0x0178: { n:"BrtBeginMdxMbrProp" }, -0x0179: { n:"BrtEndMdxMbrProp" }, -0x017A: { n:"BrtBeginMdxKPI" }, -0x017B: { n:"BrtEndMdxKPI" }, -0x017C: { n:"BrtBeginEsstr" }, -0x017D: { n:"BrtEndEsstr" }, -0x017E: { n:"BrtBeginPRFItem" }, -0x017F: { n:"BrtEndPRFItem" }, -0x0180: { n:"BrtBeginPivotCacheIDs" }, -0x0181: { n:"BrtEndPivotCacheIDs" }, -0x0182: { n:"BrtBeginPivotCacheID" }, -0x0183: { n:"BrtEndPivotCacheID" }, -0x0184: { n:"BrtBeginISXVIs" }, -0x0185: { n:"BrtEndISXVIs" }, -0x0186: { n:"BrtBeginColInfos" }, -0x0187: { n:"BrtEndColInfos" }, -0x0188: { n:"BrtBeginRwBrk" }, -0x0189: { n:"BrtEndRwBrk" }, -0x018A: { n:"BrtBeginColBrk" }, -0x018B: { n:"BrtEndColBrk" }, -0x018C: { n:"BrtBrk" }, -0x018D: { n:"BrtUserBookView" }, -0x018E: { n:"BrtInfo" }, -0x018F: { n:"BrtCUsr" }, -0x0190: { n:"BrtUsr" }, -0x0191: { n:"BrtBeginUsers" }, -0x0193: { n:"BrtEOF" }, -0x0194: { n:"BrtUCR" }, -0x0195: { n:"BrtRRInsDel" }, -0x0196: { n:"BrtRREndInsDel" }, -0x0197: { n:"BrtRRMove" }, -0x0198: { n:"BrtRREndMove" }, -0x0199: { n:"BrtRRChgCell" }, -0x019A: { n:"BrtRREndChgCell" }, -0x019B: { n:"BrtRRHeader" }, -0x019C: { n:"BrtRRUserView" }, -0x019D: { n:"BrtRRRenSheet" }, -0x019E: { n:"BrtRRInsertSh" }, -0x019F: { n:"BrtRRDefName" }, -0x01A0: { n:"BrtRRNote" }, -0x01A1: { n:"BrtRRConflict" }, -0x01A2: { n:"BrtRRTQSIF" }, -0x01A3: { n:"BrtRRFormat" }, -0x01A4: { n:"BrtRREndFormat" }, -0x01A5: { n:"BrtRRAutoFmt" }, -0x01A6: { n:"BrtBeginUserShViews" }, -0x01A7: { n:"BrtBeginUserShView" }, -0x01A8: { n:"BrtEndUserShView" }, -0x01A9: { n:"BrtEndUserShViews" }, -0x01AA: { n:"BrtArrFmla", f:parse_BrtArrFmla }, -0x01AB: { n:"BrtShrFmla", f:parse_BrtShrFmla }, -0x01AC: { n:"BrtTable" }, -0x01AD: { n:"BrtBeginExtConnections" }, -0x01AE: { n:"BrtEndExtConnections" }, -0x01AF: { n:"BrtBeginPCDCalcMems" }, -0x01B0: { n:"BrtEndPCDCalcMems" }, -0x01B1: { n:"BrtBeginPCDCalcMem" }, -0x01B2: { n:"BrtEndPCDCalcMem" }, -0x01B3: { n:"BrtBeginPCDHGLevels" }, -0x01B4: { n:"BrtEndPCDHGLevels" }, -0x01B5: { n:"BrtBeginPCDHGLevel" }, -0x01B6: { n:"BrtEndPCDHGLevel" }, -0x01B7: { n:"BrtBeginPCDHGLGroups" }, -0x01B8: { n:"BrtEndPCDHGLGroups" }, -0x01B9: { n:"BrtBeginPCDHGLGroup" }, -0x01BA: { n:"BrtEndPCDHGLGroup" }, -0x01BB: { n:"BrtBeginPCDHGLGMembers" }, -0x01BC: { n:"BrtEndPCDHGLGMembers" }, -0x01BD: { n:"BrtBeginPCDHGLGMember" }, -0x01BE: { n:"BrtEndPCDHGLGMember" }, -0x01BF: { n:"BrtBeginQSI" }, -0x01C0: { n:"BrtEndQSI" }, -0x01C1: { n:"BrtBeginQSIR" }, -0x01C2: { n:"BrtEndQSIR" }, -0x01C3: { n:"BrtBeginDeletedNames" }, -0x01C4: { n:"BrtEndDeletedNames" }, -0x01C5: { n:"BrtBeginDeletedName" }, -0x01C6: { n:"BrtEndDeletedName" }, -0x01C7: { n:"BrtBeginQSIFs" }, -0x01C8: { n:"BrtEndQSIFs" }, -0x01C9: { n:"BrtBeginQSIF" }, -0x01CA: { n:"BrtEndQSIF" }, -0x01CB: { n:"BrtBeginAutoSortScope" }, -0x01CC: { n:"BrtEndAutoSortScope" }, -0x01CD: { n:"BrtBeginConditionalFormatting" }, -0x01CE: { n:"BrtEndConditionalFormatting" }, -0x01CF: { n:"BrtBeginCFRule" }, -0x01D0: { n:"BrtEndCFRule" }, -0x01D1: { n:"BrtBeginIconSet" }, -0x01D2: { n:"BrtEndIconSet" }, -0x01D3: { n:"BrtBeginDatabar" }, -0x01D4: { n:"BrtEndDatabar" }, -0x01D5: { n:"BrtBeginColorScale" }, -0x01D6: { n:"BrtEndColorScale" }, -0x01D7: { n:"BrtCFVO" }, -0x01D8: { n:"BrtExternValueMeta" }, -0x01D9: { n:"BrtBeginColorPalette" }, -0x01DA: { n:"BrtEndColorPalette" }, -0x01DB: { n:"BrtIndexedColor" }, -0x01DC: { n:"BrtMargins", f:parse_BrtMargins }, -0x01DD: { n:"BrtPrintOptions" }, -0x01DE: { n:"BrtPageSetup" }, -0x01DF: { n:"BrtBeginHeaderFooter" }, -0x01E0: { n:"BrtEndHeaderFooter" }, -0x01E1: { n:"BrtBeginSXCrtFormat" }, -0x01E2: { n:"BrtEndSXCrtFormat" }, -0x01E3: { n:"BrtBeginSXCrtFormats" }, -0x01E4: { n:"BrtEndSXCrtFormats" }, -0x01E5: { n:"BrtWsFmtInfo", f:parse_BrtWsFmtInfo }, -0x01E6: { n:"BrtBeginMgs" }, -0x01E7: { n:"BrtEndMGs" }, -0x01E8: { n:"BrtBeginMGMaps" }, -0x01E9: { n:"BrtEndMGMaps" }, -0x01EA: { n:"BrtBeginMG" }, -0x01EB: { n:"BrtEndMG" }, -0x01EC: { n:"BrtBeginMap" }, -0x01ED: { n:"BrtEndMap" }, -0x01EE: { n:"BrtHLink", f:parse_BrtHLink }, -0x01EF: { n:"BrtBeginDCon" }, -0x01F0: { n:"BrtEndDCon" }, -0x01F1: { n:"BrtBeginDRefs" }, -0x01F2: { n:"BrtEndDRefs" }, -0x01F3: { n:"BrtDRef" }, -0x01F4: { n:"BrtBeginScenMan" }, -0x01F5: { n:"BrtEndScenMan" }, -0x01F6: { n:"BrtBeginSct" }, -0x01F7: { n:"BrtEndSct" }, -0x01F8: { n:"BrtSlc" }, -0x01F9: { n:"BrtBeginDXFs" }, -0x01FA: { n:"BrtEndDXFs" }, -0x01FB: { n:"BrtDXF" }, -0x01FC: { n:"BrtBeginTableStyles" }, -0x01FD: { n:"BrtEndTableStyles" }, -0x01FE: { n:"BrtBeginTableStyle" }, -0x01FF: { n:"BrtEndTableStyle" }, -0x0200: { n:"BrtTableStyleElement" }, -0x0201: { n:"BrtTableStyleClient" }, -0x0202: { n:"BrtBeginVolDeps" }, -0x0203: { n:"BrtEndVolDeps" }, -0x0204: { n:"BrtBeginVolType" }, -0x0205: { n:"BrtEndVolType" }, -0x0206: { n:"BrtBeginVolMain" }, -0x0207: { n:"BrtEndVolMain" }, -0x0208: { n:"BrtBeginVolTopic" }, -0x0209: { n:"BrtEndVolTopic" }, -0x020A: { n:"BrtVolSubtopic" }, -0x020B: { n:"BrtVolRef" }, -0x020C: { n:"BrtVolNum" }, -0x020D: { n:"BrtVolErr" }, -0x020E: { n:"BrtVolStr" }, -0x020F: { n:"BrtVolBool" }, -0x0210: { n:"BrtBeginCalcChain$" }, -0x0211: { n:"BrtEndCalcChain$" }, -0x0212: { n:"BrtBeginSortState" }, -0x0213: { n:"BrtEndSortState" }, -0x0214: { n:"BrtBeginSortCond" }, -0x0215: { n:"BrtEndSortCond" }, -0x0216: { n:"BrtBookProtection" }, -0x0217: { n:"BrtSheetProtection" }, -0x0218: { n:"BrtRangeProtection" }, -0x0219: { n:"BrtPhoneticInfo" }, -0x021A: { n:"BrtBeginECTxtWiz" }, -0x021B: { n:"BrtEndECTxtWiz" }, -0x021C: { n:"BrtBeginECTWFldInfoLst" }, -0x021D: { n:"BrtEndECTWFldInfoLst" }, -0x021E: { n:"BrtBeginECTwFldInfo" }, -0x0224: { n:"BrtFileSharing" }, -0x0225: { n:"BrtOleSize" }, -0x0226: { n:"BrtDrawing", f:parse_RelID }, -0x0227: { n:"BrtLegacyDrawing" }, -0x0228: { n:"BrtLegacyDrawingHF" }, -0x0229: { n:"BrtWebOpt" }, -0x022A: { n:"BrtBeginWebPubItems" }, -0x022B: { n:"BrtEndWebPubItems" }, -0x022C: { n:"BrtBeginWebPubItem" }, -0x022D: { n:"BrtEndWebPubItem" }, -0x022E: { n:"BrtBeginSXCondFmt" }, -0x022F: { n:"BrtEndSXCondFmt" }, -0x0230: { n:"BrtBeginSXCondFmts" }, -0x0231: { n:"BrtEndSXCondFmts" }, -0x0232: { n:"BrtBkHim" }, -0x0234: { n:"BrtColor" }, -0x0235: { n:"BrtBeginIndexedColors" }, -0x0236: { n:"BrtEndIndexedColors" }, -0x0239: { n:"BrtBeginMRUColors" }, -0x023A: { n:"BrtEndMRUColors" }, -0x023C: { n:"BrtMRUColor" }, -0x023D: { n:"BrtBeginDVals" }, -0x023E: { n:"BrtEndDVals" }, -0x0241: { n:"BrtSupNameStart" }, -0x0242: { n:"BrtSupNameValueStart" }, -0x0243: { n:"BrtSupNameValueEnd" }, -0x0244: { n:"BrtSupNameNum" }, -0x0245: { n:"BrtSupNameErr" }, -0x0246: { n:"BrtSupNameSt" }, -0x0247: { n:"BrtSupNameNil" }, -0x0248: { n:"BrtSupNameBool" }, -0x0249: { n:"BrtSupNameFmla" }, -0x024A: { n:"BrtSupNameBits" }, -0x024B: { n:"BrtSupNameEnd" }, -0x024C: { n:"BrtEndSupBook" }, -0x024D: { n:"BrtCellSmartTagProperty" }, -0x024E: { n:"BrtBeginCellSmartTag" }, -0x024F: { n:"BrtEndCellSmartTag" }, -0x0250: { n:"BrtBeginCellSmartTags" }, -0x0251: { n:"BrtEndCellSmartTags" }, -0x0252: { n:"BrtBeginSmartTags" }, -0x0253: { n:"BrtEndSmartTags" }, -0x0254: { n:"BrtSmartTagType" }, -0x0255: { n:"BrtBeginSmartTagTypes" }, -0x0256: { n:"BrtEndSmartTagTypes" }, -0x0257: { n:"BrtBeginSXFilters" }, -0x0258: { n:"BrtEndSXFilters" }, -0x0259: { n:"BrtBeginSXFILTER" }, -0x025A: { n:"BrtEndSXFilter" }, -0x025B: { n:"BrtBeginFills" }, -0x025C: { n:"BrtEndFills" }, -0x025D: { n:"BrtBeginCellWatches" }, -0x025E: { n:"BrtEndCellWatches" }, -0x025F: { n:"BrtCellWatch" }, -0x0260: { n:"BrtBeginCRErrs" }, -0x0261: { n:"BrtEndCRErrs" }, -0x0262: { n:"BrtCrashRecErr" }, -0x0263: { n:"BrtBeginFonts" }, -0x0264: { n:"BrtEndFonts" }, -0x0265: { n:"BrtBeginBorders" }, -0x0266: { n:"BrtEndBorders" }, -0x0267: { n:"BrtBeginFmts" }, -0x0268: { n:"BrtEndFmts" }, -0x0269: { n:"BrtBeginCellXFs" }, -0x026A: { n:"BrtEndCellXFs" }, -0x026B: { n:"BrtBeginStyles" }, -0x026C: { n:"BrtEndStyles" }, -0x0271: { n:"BrtBigName" }, -0x0272: { n:"BrtBeginCellStyleXFs" }, -0x0273: { n:"BrtEndCellStyleXFs" }, -0x0274: { n:"BrtBeginComments" }, -0x0275: { n:"BrtEndComments" }, -0x0276: { n:"BrtBeginCommentAuthors" }, -0x0277: { n:"BrtEndCommentAuthors" }, -0x0278: { n:"BrtCommentAuthor", f:parse_BrtCommentAuthor }, -0x0279: { n:"BrtBeginCommentList" }, -0x027A: { n:"BrtEndCommentList" }, -0x027B: { n:"BrtBeginComment", f:parse_BrtBeginComment}, -0x027C: { n:"BrtEndComment" }, -0x027D: { n:"BrtCommentText", f:parse_BrtCommentText }, -0x027E: { n:"BrtBeginOleObjects" }, -0x027F: { n:"BrtOleObject" }, -0x0280: { n:"BrtEndOleObjects" }, -0x0281: { n:"BrtBeginSxrules" }, -0x0282: { n:"BrtEndSxRules" }, -0x0283: { n:"BrtBeginActiveXControls" }, -0x0284: { n:"BrtActiveX" }, -0x0285: { n:"BrtEndActiveXControls" }, -0x0286: { n:"BrtBeginPCDSDTCEMembersSortBy" }, -0x0288: { n:"BrtBeginCellIgnoreECs" }, -0x0289: { n:"BrtCellIgnoreEC" }, -0x028A: { n:"BrtEndCellIgnoreECs" }, -0x028B: { n:"BrtCsProp", f:parse_BrtCsProp }, -0x028C: { n:"BrtCsPageSetup" }, -0x028D: { n:"BrtBeginUserCsViews" }, -0x028E: { n:"BrtEndUserCsViews" }, -0x028F: { n:"BrtBeginUserCsView" }, -0x0290: { n:"BrtEndUserCsView" }, -0x0291: { n:"BrtBeginPcdSFCIEntries" }, -0x0292: { n:"BrtEndPCDSFCIEntries" }, -0x0293: { n:"BrtPCDSFCIEntry" }, -0x0294: { n:"BrtBeginListParts" }, -0x0295: { n:"BrtListPart" }, -0x0296: { n:"BrtEndListParts" }, -0x0297: { n:"BrtSheetCalcProp" }, -0x0298: { n:"BrtBeginFnGroup" }, -0x0299: { n:"BrtFnGroup" }, -0x029A: { n:"BrtEndFnGroup" }, -0x029B: { n:"BrtSupAddin" }, -0x029C: { n:"BrtSXTDMPOrder" }, -0x029D: { n:"BrtCsProtection" }, -0x029F: { n:"BrtBeginWsSortMap" }, -0x02A0: { n:"BrtEndWsSortMap" }, -0x02A1: { n:"BrtBeginRRSort" }, -0x02A2: { n:"BrtEndRRSort" }, -0x02A3: { n:"BrtRRSortItem" }, -0x02A4: { n:"BrtFileSharingIso" }, -0x02A5: { n:"BrtBookProtectionIso" }, -0x02A6: { n:"BrtSheetProtectionIso" }, -0x02A7: { n:"BrtCsProtectionIso" }, -0x02A8: { n:"BrtRangeProtectionIso" }, -0x02A9: { n:"BrtDValList" }, -0x0400: { n:"BrtRwDescent" }, -0x0401: { n:"BrtKnownFonts" }, -0x0402: { n:"BrtBeginSXTupleSet" }, -0x0403: { n:"BrtEndSXTupleSet" }, -0x0404: { n:"BrtBeginSXTupleSetHeader" }, -0x0405: { n:"BrtEndSXTupleSetHeader" }, -0x0406: { n:"BrtSXTupleSetHeaderItem" }, -0x0407: { n:"BrtBeginSXTupleSetData" }, -0x0408: { n:"BrtEndSXTupleSetData" }, -0x0409: { n:"BrtBeginSXTupleSetRow" }, -0x040A: { n:"BrtEndSXTupleSetRow" }, -0x040B: { n:"BrtSXTupleSetRowItem" }, -0x040C: { n:"BrtNameExt" }, -0x040D: { n:"BrtPCDH14" }, -0x040E: { n:"BrtBeginPCDCalcMem14" }, -0x040F: { n:"BrtEndPCDCalcMem14" }, -0x0410: { n:"BrtSXTH14" }, -0x0411: { n:"BrtBeginSparklineGroup" }, -0x0412: { n:"BrtEndSparklineGroup" }, -0x0413: { n:"BrtSparkline" }, -0x0414: { n:"BrtSXDI14" }, -0x0415: { n:"BrtWsFmtInfoEx14" }, -0x0416: { n:"BrtBeginConditionalFormatting14" }, -0x0417: { n:"BrtEndConditionalFormatting14" }, -0x0418: { n:"BrtBeginCFRule14" }, -0x0419: { n:"BrtEndCFRule14" }, -0x041A: { n:"BrtCFVO14" }, -0x041B: { n:"BrtBeginDatabar14" }, -0x041C: { n:"BrtBeginIconSet14" }, -0x041D: { n:"BrtDVal14", f: parse_BrtDVal14 }, -0x041E: { n:"BrtBeginDVals14" }, -0x041F: { n:"BrtColor14" }, -0x0420: { n:"BrtBeginSparklines" }, -0x0421: { n:"BrtEndSparklines" }, -0x0422: { n:"BrtBeginSparklineGroups" }, -0x0423: { n:"BrtEndSparklineGroups" }, -0x0425: { n:"BrtSXVD14" }, -0x0426: { n:"BrtBeginSXView14" }, -0x0427: { n:"BrtEndSXView14" }, -0x0428: { n:"BrtBeginSXView16" }, -0x0429: { n:"BrtEndSXView16" }, -0x042A: { n:"BrtBeginPCD14" }, -0x042B: { n:"BrtEndPCD14" }, -0x042C: { n:"BrtBeginExtConn14" }, -0x042D: { n:"BrtEndExtConn14" }, -0x042E: { n:"BrtBeginSlicerCacheIDs" }, -0x042F: { n:"BrtEndSlicerCacheIDs" }, -0x0430: { n:"BrtBeginSlicerCacheID" }, -0x0431: { n:"BrtEndSlicerCacheID" }, -0x0433: { n:"BrtBeginSlicerCache" }, -0x0434: { n:"BrtEndSlicerCache" }, -0x0435: { n:"BrtBeginSlicerCacheDef" }, -0x0436: { n:"BrtEndSlicerCacheDef" }, -0x0437: { n:"BrtBeginSlicersEx" }, -0x0438: { n:"BrtEndSlicersEx" }, -0x0439: { n:"BrtBeginSlicerEx" }, -0x043A: { n:"BrtEndSlicerEx" }, -0x043B: { n:"BrtBeginSlicer" }, -0x043C: { n:"BrtEndSlicer" }, -0x043D: { n:"BrtSlicerCachePivotTables" }, -0x043E: { n:"BrtBeginSlicerCacheOlapImpl" }, -0x043F: { n:"BrtEndSlicerCacheOlapImpl" }, -0x0440: { n:"BrtBeginSlicerCacheLevelsData" }, -0x0441: { n:"BrtEndSlicerCacheLevelsData" }, -0x0442: { n:"BrtBeginSlicerCacheLevelData" }, -0x0443: { n:"BrtEndSlicerCacheLevelData" }, -0x0444: { n:"BrtBeginSlicerCacheSiRanges" }, -0x0445: { n:"BrtEndSlicerCacheSiRanges" }, -0x0446: { n:"BrtBeginSlicerCacheSiRange" }, -0x0447: { n:"BrtEndSlicerCacheSiRange" }, -0x0448: { n:"BrtSlicerCacheOlapItem" }, -0x0449: { n:"BrtBeginSlicerCacheSelections" }, -0x044A: { n:"BrtSlicerCacheSelection" }, -0x044B: { n:"BrtEndSlicerCacheSelections" }, -0x044C: { n:"BrtBeginSlicerCacheNative" }, -0x044D: { n:"BrtEndSlicerCacheNative" }, -0x044E: { n:"BrtSlicerCacheNativeItem" }, -0x044F: { n:"BrtRangeProtection14" }, -0x0450: { n:"BrtRangeProtectionIso14" }, -0x0451: { n:"BrtCellIgnoreEC14" }, -0x0457: { n:"BrtList14" }, -0x0458: { n:"BrtCFIcon" }, -0x0459: { n:"BrtBeginSlicerCachesPivotCacheIDs" }, -0x045A: { n:"BrtEndSlicerCachesPivotCacheIDs" }, -0x045B: { n:"BrtBeginSlicers" }, -0x045C: { n:"BrtEndSlicers" }, -0x045D: { n:"BrtWbProp14" }, -0x045E: { n:"BrtBeginSXEdit" }, -0x045F: { n:"BrtEndSXEdit" }, -0x0460: { n:"BrtBeginSXEdits" }, -0x0461: { n:"BrtEndSXEdits" }, -0x0462: { n:"BrtBeginSXChange" }, -0x0463: { n:"BrtEndSXChange" }, -0x0464: { n:"BrtBeginSXChanges" }, -0x0465: { n:"BrtEndSXChanges" }, -0x0466: { n:"BrtSXTupleItems" }, -0x0468: { n:"BrtBeginSlicerStyle" }, -0x0469: { n:"BrtEndSlicerStyle" }, -0x046A: { n:"BrtSlicerStyleElement" }, -0x046B: { n:"BrtBeginStyleSheetExt14" }, -0x046C: { n:"BrtEndStyleSheetExt14" }, -0x046D: { n:"BrtBeginSlicerCachesPivotCacheID" }, -0x046E: { n:"BrtEndSlicerCachesPivotCacheID" }, -0x046F: { n:"BrtBeginConditionalFormattings" }, -0x0470: { n:"BrtEndConditionalFormattings" }, -0x0471: { n:"BrtBeginPCDCalcMemExt" }, -0x0472: { n:"BrtEndPCDCalcMemExt" }, -0x0473: { n:"BrtBeginPCDCalcMemsExt" }, -0x0474: { n:"BrtEndPCDCalcMemsExt" }, -0x0475: { n:"BrtPCDField14" }, -0x0476: { n:"BrtBeginSlicerStyles" }, -0x0477: { n:"BrtEndSlicerStyles" }, -0x0478: { n:"BrtBeginSlicerStyleElements" }, -0x0479: { n:"BrtEndSlicerStyleElements" }, -0x047A: { n:"BrtCFRuleExt" }, -0x047B: { n:"BrtBeginSXCondFmt14" }, -0x047C: { n:"BrtEndSXCondFmt14" }, -0x047D: { n:"BrtBeginSXCondFmts14" }, -0x047E: { n:"BrtEndSXCondFmts14" }, -0x0480: { n:"BrtBeginSortCond14" }, -0x0481: { n:"BrtEndSortCond14" }, -0x0482: { n:"BrtEndDVals14" }, -0x0483: { n:"BrtEndIconSet14" }, -0x0484: { n:"BrtEndDatabar14" }, -0x0485: { n:"BrtBeginColorScale14" }, -0x0486: { n:"BrtEndColorScale14" }, -0x0487: { n:"BrtBeginSxrules14" }, -0x0488: { n:"BrtEndSxrules14" }, -0x0489: { n:"BrtBeginPRule14" }, -0x048A: { n:"BrtEndPRule14" }, -0x048B: { n:"BrtBeginPRFilters14" }, -0x048C: { n:"BrtEndPRFilters14" }, -0x048D: { n:"BrtBeginPRFilter14" }, -0x048E: { n:"BrtEndPRFilter14" }, -0x048F: { n:"BrtBeginPRFItem14" }, -0x0490: { n:"BrtEndPRFItem14" }, -0x0491: { n:"BrtBeginCellIgnoreECs14" }, -0x0492: { n:"BrtEndCellIgnoreECs14" }, -0x0493: { n:"BrtDxf14" }, -0x0494: { n:"BrtBeginDxF14s" }, -0x0495: { n:"BrtEndDxf14s" }, -0x0499: { n:"BrtFilter14" }, -0x049A: { n:"BrtBeginCustomFilters14" }, -0x049C: { n:"BrtCustomFilter14" }, -0x049D: { n:"BrtIconFilter14" }, -0x049E: { n:"BrtPivotCacheConnectionName" }, -0x0800: { n:"BrtBeginDecoupledPivotCacheIDs" }, -0x0801: { n:"BrtEndDecoupledPivotCacheIDs" }, -0x0802: { n:"BrtDecoupledPivotCacheID" }, -0x0803: { n:"BrtBeginPivotTableRefs" }, -0x0804: { n:"BrtEndPivotTableRefs" }, -0x0805: { n:"BrtPivotTableRef" }, -0x0806: { n:"BrtSlicerCacheBookPivotTables" }, -0x0807: { n:"BrtBeginSxvcells" }, -0x0808: { n:"BrtEndSxvcells" }, -0x0809: { n:"BrtBeginSxRow" }, -0x080A: { n:"BrtEndSxRow" }, -0x080C: { n:"BrtPcdCalcMem15" }, -0x0813: { n:"BrtQsi15" }, -0x0814: { n:"BrtBeginWebExtensions" }, -0x0815: { n:"BrtEndWebExtensions" }, -0x0816: { n:"BrtWebExtension" }, -0x0817: { n:"BrtAbsPath15" }, -0x0818: { n:"BrtBeginPivotTableUISettings" }, -0x0819: { n:"BrtEndPivotTableUISettings" }, -0x081B: { n:"BrtTableSlicerCacheIDs" }, -0x081C: { n:"BrtTableSlicerCacheID" }, -0x081D: { n:"BrtBeginTableSlicerCache" }, -0x081E: { n:"BrtEndTableSlicerCache" }, -0x081F: { n:"BrtSxFilter15" }, -0x0820: { n:"BrtBeginTimelineCachePivotCacheIDs" }, -0x0821: { n:"BrtEndTimelineCachePivotCacheIDs" }, -0x0822: { n:"BrtTimelineCachePivotCacheID" }, -0x0823: { n:"BrtBeginTimelineCacheIDs" }, -0x0824: { n:"BrtEndTimelineCacheIDs" }, -0x0825: { n:"BrtBeginTimelineCacheID" }, -0x0826: { n:"BrtEndTimelineCacheID" }, -0x0827: { n:"BrtBeginTimelinesEx" }, -0x0828: { n:"BrtEndTimelinesEx" }, -0x0829: { n:"BrtBeginTimelineEx" }, -0x082A: { n:"BrtEndTimelineEx" }, -0x082B: { n:"BrtWorkBookPr15" }, -0x082C: { n:"BrtPCDH15" }, -0x082D: { n:"BrtBeginTimelineStyle" }, -0x082E: { n:"BrtEndTimelineStyle" }, -0x082F: { n:"BrtTimelineStyleElement" }, -0x0830: { n:"BrtBeginTimelineStylesheetExt15" }, -0x0831: { n:"BrtEndTimelineStylesheetExt15" }, -0x0832: { n:"BrtBeginTimelineStyles" }, -0x0833: { n:"BrtEndTimelineStyles" }, -0x0834: { n:"BrtBeginTimelineStyleElements" }, -0x0835: { n:"BrtEndTimelineStyleElements" }, -0x0836: { n:"BrtDxf15" }, -0x0837: { n:"BrtBeginDxfs15" }, -0x0838: { n:"brtEndDxfs15" }, -0x0839: { n:"BrtSlicerCacheHideItemsWithNoData" }, -0x083A: { n:"BrtBeginItemUniqueNames" }, -0x083B: { n:"BrtEndItemUniqueNames" }, -0x083C: { n:"BrtItemUniqueName" }, -0x083D: { n:"BrtBeginExtConn15" }, -0x083E: { n:"BrtEndExtConn15" }, -0x083F: { n:"BrtBeginOledbPr15" }, -0x0840: { n:"BrtEndOledbPr15" }, -0x0841: { n:"BrtBeginDataFeedPr15" }, -0x0842: { n:"BrtEndDataFeedPr15" }, -0x0843: { n:"BrtTextPr15" }, -0x0844: { n:"BrtRangePr15" }, -0x0845: { n:"BrtDbCommand15" }, -0x0846: { n:"BrtBeginDbTables15" }, -0x0847: { n:"BrtEndDbTables15" }, -0x0848: { n:"BrtDbTable15" }, -0x0849: { n:"BrtBeginDataModel" }, -0x084A: { n:"BrtEndDataModel" }, -0x084B: { n:"BrtBeginModelTables" }, -0x084C: { n:"BrtEndModelTables" }, -0x084D: { n:"BrtModelTable" }, -0x084E: { n:"BrtBeginModelRelationships" }, -0x084F: { n:"BrtEndModelRelationships" }, -0x0850: { n:"BrtModelRelationship" }, -0x0851: { n:"BrtBeginECTxtWiz15" }, -0x0852: { n:"BrtEndECTxtWiz15" }, -0x0853: { n:"BrtBeginECTWFldInfoLst15" }, -0x0854: { n:"BrtEndECTWFldInfoLst15" }, -0x0855: { n:"BrtBeginECTWFldInfo15" }, -0x0856: { n:"BrtFieldListActiveItem" }, -0x0857: { n:"BrtPivotCacheIdVersion" }, -0x0858: { n:"BrtSXDI15" }, -0x0859: { n:"BrtBeginModelTimeGroupings" }, -0x085A: { n:"BrtEndModelTimeGroupings" }, -0x085B: { n:"BrtBeginModelTimeGrouping" }, -0x085C: { n:"BrtEndModelTimeGrouping" }, -0x085D: { n:"BrtModelTimeGroupingCalcCol" }, -0x0C00: { n:"BrtUid" }, -0x0C01: { n:"BrtRevisionPtr" }, -0x13e7: { n:"BrtBeginCalcFeatures" }, -0x13e8: { n:"BrtEndCalcFeatures" }, -0x13e9: { n:"BrtCalcFeature" }, -0xFFFF: { n:"" } -}; - -var XLSBRE; -function make_XLSBRE() { - XLSBRE = evert_key(XLSBRecordEnum, 'n'); - /*jshint -W069 */ - XLSBRE["BrtFRTArchID$"] = 0x0010; - /*jshint +W069 */ -} - -/* [MS-XLS] 2.3 Record Enumeration (and other sources) */ -var XLSRecordEnum = { - /* [MS-XLS] 2.3 Record Enumeration 2021-08-17 */ -0x0006: { n:"Formula", f:parse_Formula }, -0x000a: { n:'EOF', f:parsenoop2 }, -0x000c: { n:"CalcCount", f:parseuint16 }, -0x000d: { n:"CalcMode", f:parseuint16 }, -0x000e: { n:"CalcPrecision", f:parsebool }, -0x000f: { n:"CalcRefMode", f:parsebool }, -0x0010: { n:"CalcDelta", f:parse_Xnum }, -0x0011: { n:"CalcIter", f:parsebool }, -0x0012: { n:"Protect", f:parsebool }, -0x0013: { n:"Password", f:parseuint16 }, -0x0014: { n:"Header", f:parse_XLHeaderFooter }, -0x0015: { n:"Footer", f:parse_XLHeaderFooter }, -0x0017: { n:"ExternSheet", f:parse_ExternSheet }, -0x0018: { n:"Lbl", f:parse_Lbl }, -0x0019: { n:"WinProtect", f:parsebool }, -0x001a: { n:"VerticalPageBreaks" }, -0x001b: { n:"HorizontalPageBreaks" }, -0x001c: { n:"Note", f:parse_Note }, -0x001d: { n:"Selection" }, -0x0022: { n:"Date1904", f:parsebool }, -0x0023: { n:"ExternName", f:parse_ExternName }, -0x0026: { n:"LeftMargin", f:parse_Xnum }, -0x0027: { n:"RightMargin", f:parse_Xnum }, -0x0028: { n:"TopMargin", f:parse_Xnum }, -0x0029: { n:"BottomMargin", f:parse_Xnum }, -0x002a: { n:"PrintRowCol", f:parsebool }, -0x002b: { n:"PrintGrid", f:parsebool }, -0x002f: { n:"FilePass", f:parse_FilePass }, -0x0031: { n:"Font", f:parse_Font }, -0x0033: { n:"PrintSize", f:parseuint16 }, -0x003c: { n:"Continue" }, -0x003d: { n:"Window1", f:parse_Window1 }, -0x0040: { n:"Backup", f:parsebool }, -0x0041: { n:"Pane", f:parse_Pane }, -0x0042: { n:'CodePage', f:parseuint16 }, -0x004d: { n:"Pls" }, -0x0050: { n:"DCon" }, -0x0051: { n:"DConRef" }, -0x0052: { n:"DConName" }, -0x0055: { n:"DefColWidth", f:parseuint16 }, -0x0059: { n:"XCT" }, -0x005a: { n:"CRN" }, -0x005b: { n:"FileSharing" }, -0x005c: { n:'WriteAccess', f:parse_WriteAccess }, -0x005d: { n:"Obj", f:parse_Obj }, -0x005e: { n:"Uncalced" }, -0x005f: { n:"CalcSaveRecalc", f:parsebool }, -0x0060: { n:"Template" }, -0x0061: { n:"Intl" }, -0x0063: { n:"ObjProtect", f:parsebool }, -0x007d: { n:"ColInfo", f:parse_ColInfo }, -0x0080: { n:"Guts", f:parse_Guts }, -0x0081: { n:"WsBool", f:parse_WsBool }, -0x0082: { n:"GridSet", f:parseuint16 }, -0x0083: { n:"HCenter", f:parsebool }, -0x0084: { n:"VCenter", f:parsebool }, -0x0085: { n:'BoundSheet8', f:parse_BoundSheet8 }, -0x0086: { n:"WriteProtect" }, -0x008c: { n:"Country", f:parse_Country }, -0x008d: { n:"HideObj", f:parseuint16 }, -0x0090: { n:"Sort" }, -0x0092: { n:"Palette", f:parse_Palette }, -0x0097: { n:"Sync" }, -0x0098: { n:"LPr" }, -0x0099: { n:"DxGCol" }, -0x009a: { n:"FnGroupName" }, -0x009b: { n:"FilterMode" }, -0x009c: { n:"BuiltInFnGroupCount", f:parseuint16 }, -0x009d: { n:"AutoFilterInfo" }, -0x009e: { n:"AutoFilter" }, -0x00a0: { n:"Scl", f:parse_Scl }, -0x00a1: { n:"Setup", f:parse_Setup }, -0x00ae: { n:"ScenMan" }, -0x00af: { n:"SCENARIO" }, -0x00b0: { n:"SxView" }, -0x00b1: { n:"Sxvd" }, -0x00b2: { n:"SXVI" }, -0x00b4: { n:"SxIvd" }, -0x00b5: { n:"SXLI" }, -0x00b6: { n:"SXPI" }, -0x00b8: { n:"DocRoute" }, -0x00b9: { n:"RecipName" }, -0x00bd: { n:"MulRk", f:parse_MulRk }, -0x00be: { n:"MulBlank", f:parse_MulBlank }, -0x00c1: { n:'Mms', f:parsenoop2 }, -0x00c5: { n:"SXDI" }, -0x00c6: { n:"SXDB" }, -0x00c7: { n:"SXFDB" }, -0x00c8: { n:"SXDBB" }, -0x00c9: { n:"SXNum" }, -0x00ca: { n:"SxBool", f:parsebool }, -0x00cb: { n:"SxErr" }, -0x00cc: { n:"SXInt" }, -0x00cd: { n:"SXString" }, -0x00ce: { n:"SXDtr" }, -0x00cf: { n:"SxNil" }, -0x00d0: { n:"SXTbl" }, -0x00d1: { n:"SXTBRGIITM" }, -0x00d2: { n:"SxTbpg" }, -0x00d3: { n:"ObProj" }, -0x00d5: { n:"SXStreamID" }, -0x00d7: { n:"DBCell" }, -0x00d8: { n:"SXRng" }, -0x00d9: { n:"SxIsxoper" }, -0x00da: { n:"BookBool", f:parseuint16 }, -0x00dc: { n:"DbOrParamQry" }, -0x00dd: { n:"ScenarioProtect", f:parsebool }, -0x00de: { n:"OleObjectSize" }, -0x00e0: { n:"XF", f:parse_XF }, -0x00e1: { n:'InterfaceHdr', f:parse_InterfaceHdr }, -0x00e2: { n:'InterfaceEnd', f:parsenoop2 }, -0x00e3: { n:"SXVS" }, -0x00e5: { n:"MergeCells", f:parse_MergeCells }, -0x00e9: { n:"BkHim" }, -0x00eb: { n:"MsoDrawingGroup" }, -0x00ec: { n:"MsoDrawing" }, -0x00ed: { n:"MsoDrawingSelection" }, -0x00ef: { n:"PhoneticInfo" }, -0x00f0: { n:"SxRule" }, -0x00f1: { n:"SXEx" }, -0x00f2: { n:"SxFilt" }, -0x00f4: { n:"SxDXF" }, -0x00f5: { n:"SxItm" }, -0x00f6: { n:"SxName" }, -0x00f7: { n:"SxSelect" }, -0x00f8: { n:"SXPair" }, -0x00f9: { n:"SxFmla" }, -0x00fb: { n:"SxFormat" }, -0x00fc: { n:"SST", f:parse_SST }, -0x00fd: { n:"LabelSst", f:parse_LabelSst }, -0x00ff: { n:"ExtSST", f:parse_ExtSST }, -0x0100: { n:"SXVDEx" }, -0x0103: { n:"SXFormula" }, -0x0122: { n:"SXDBEx" }, -0x0137: { n:"RRDInsDel" }, -0x0138: { n:"RRDHead" }, -0x013b: { n:"RRDChgCell" }, -0x013d: { n:"RRTabId", f:parseuint16a }, -0x013e: { n:"RRDRenSheet" }, -0x013f: { n:"RRSort" }, -0x0140: { n:"RRDMove" }, -0x014a: { n:"RRFormat" }, -0x014b: { n:"RRAutoFmt" }, -0x014d: { n:"RRInsertSh" }, -0x014e: { n:"RRDMoveBegin" }, -0x014f: { n:"RRDMoveEnd" }, -0x0150: { n:"RRDInsDelBegin" }, -0x0151: { n:"RRDInsDelEnd" }, -0x0152: { n:"RRDConflict" }, -0x0153: { n:"RRDDefName" }, -0x0154: { n:"RRDRstEtxp" }, -0x015f: { n:"LRng" }, -0x0160: { n:"UsesELFs", f:parsebool }, -0x0161: { n:"DSF", f:parsenoop2 }, -0x0191: { n:"CUsr" }, -0x0192: { n:"CbUsr" }, -0x0193: { n:"UsrInfo" }, -0x0194: { n:"UsrExcl" }, -0x0195: { n:"FileLock" }, -0x0196: { n:"RRDInfo" }, -0x0197: { n:"BCUsrs" }, -0x0198: { n:"UsrChk" }, -0x01a9: { n:"UserBView" }, -0x01aa: { n:"UserSViewBegin" }, -0x01ab: { n:"UserSViewEnd" }, -0x01ac: { n:"RRDUserView" }, -0x01ad: { n:"Qsi" }, -0x01ae: { n:"SupBook", f:parse_SupBook }, -0x01af: { n:"Prot4Rev", f:parsebool }, -0x01b0: { n:"CondFmt" }, -0x01b1: { n:"CF" }, -0x01b2: { n:"DVal" }, -0x01b5: { n:"DConBin" }, -0x01b6: { n:"TxO", f:parse_TxO }, -0x01b7: { n:"RefreshAll", f:parsebool }, -0x01b8: { n:"HLink", f:parse_HLink }, -0x01b9: { n:"Lel" }, -0x01ba: { n:"CodeName", f:parse_XLUnicodeString }, -0x01bb: { n:"SXFDBType" }, -0x01bc: { n:"Prot4RevPass", f:parseuint16 }, -0x01bd: { n:"ObNoMacros" }, -0x01be: { n:"Dv" }, -0x01c0: { n:"Excel9File", f:parsenoop2 }, -0x01c1: { n:"RecalcId", f:parse_RecalcId, r:2}, -0x01c2: { n:"EntExU2", f:parsenoop2 }, -0x0200: { n:"Dimensions", f:parse_Dimensions }, -0x0201: { n:"Blank", f:parse_Blank }, -0x0203: { n:"Number", f:parse_Number }, -0x0204: { n:"Label", f:parse_Label }, -0x0205: { n:"BoolErr", f:parse_BoolErr }, -0x0207: { n:"String", f:parse_String }, -0x0208: { n:'Row', f:parse_Row }, -0x020b: { n:"Index" }, -0x0221: { n:"Array", f:parse_Array }, -0x0225: { n:"DefaultRowHeight", f:parse_DefaultRowHeight }, -0x0236: { n:"Table" }, -0x023e: { n:"Window2", f:parse_Window2 }, -0x027e: { n:"RK", f:parse_RK }, -0x0293: { n:"Style" }, -0x0418: { n:"BigName" }, -0x041e: { n:"Format", f:parse_Format }, -0x043c: { n:"ContinueBigName" }, -0x04bc: { n:"ShrFmla", f:parse_ShrFmla }, -0x0800: { n:"HLinkTooltip", f:parse_HLinkTooltip }, -0x0801: { n:"WebPub" }, -0x0802: { n:"QsiSXTag" }, -0x0803: { n:"DBQueryExt" }, -0x0804: { n:"ExtString" }, -0x0805: { n:"TxtQry" }, -0x0806: { n:"Qsir" }, -0x0807: { n:"Qsif" }, -0x0808: { n:"RRDTQSIF" }, -0x0809: { n:'BOF', f:parse_BOF }, -0x080a: { n:"OleDbConn" }, -0x080b: { n:"WOpt" }, -0x080c: { n:"SXViewEx" }, -0x080d: { n:"SXTH" }, -0x080e: { n:"SXPIEx" }, -0x080f: { n:"SXVDTEx" }, -0x0810: { n:"SXViewEx9" }, -0x0812: { n:"ContinueFrt" }, -0x0813: { n:"RealTimeData" }, -0x0850: { n:"ChartFrtInfo" }, -0x0851: { n:"FrtWrapper" }, -0x0852: { n:"StartBlock" }, -0x0853: { n:"EndBlock" }, -0x0854: { n:"StartObject" }, -0x0855: { n:"EndObject" }, -0x0856: { n:"CatLab" }, -0x0857: { n:"YMult" }, -0x0858: { n:"SXViewLink" }, -0x0859: { n:"PivotChartBits" }, -0x085a: { n:"FrtFontList" }, -0x0862: { n:"SheetExt" }, -0x0863: { n:"BookExt", r:12}, -0x0864: { n:"SXAddl" }, -0x0865: { n:"CrErr" }, -0x0866: { n:"HFPicture" }, -0x0867: { n:'FeatHdr', f:parsenoop2 }, -0x0868: { n:"Feat" }, -0x086a: { n:"DataLabExt" }, -0x086b: { n:"DataLabExtContents" }, -0x086c: { n:"CellWatch" }, -0x0871: { n:"FeatHdr11" }, -0x0872: { n:"Feature11" }, -0x0874: { n:"DropDownObjIds" }, -0x0875: { n:"ContinueFrt11" }, -0x0876: { n:"DConn" }, -0x0877: { n:"List12" }, -0x0878: { n:"Feature12" }, -0x0879: { n:"CondFmt12" }, -0x087a: { n:"CF12" }, -0x087b: { n:"CFEx" }, -0x087c: { n:"XFCRC", f:parse_XFCRC, r:12 }, -0x087d: { n:"XFExt", f:parse_XFExt, r:12 }, -0x087e: { n:"AutoFilter12" }, -0x087f: { n:"ContinueFrt12" }, -0x0884: { n:"MDTInfo" }, -0x0885: { n:"MDXStr" }, -0x0886: { n:"MDXTuple" }, -0x0887: { n:"MDXSet" }, -0x0888: { n:"MDXProp" }, -0x0889: { n:"MDXKPI" }, -0x088a: { n:"MDB" }, -0x088b: { n:"PLV" }, -0x088c: { n:"Compat12", f:parsebool, r:12 }, -0x088d: { n:"DXF" }, -0x088e: { n:"TableStyles", r:12 }, -0x088f: { n:"TableStyle" }, -0x0890: { n:"TableStyleElement" }, -0x0892: { n:"StyleExt" }, -0x0893: { n:"NamePublish" }, -0x0894: { n:"NameCmt", f:parse_NameCmt, r:12 }, -0x0895: { n:"SortData" }, -0x0896: { n:"Theme", f:parse_Theme, r:12 }, -0x0897: { n:"GUIDTypeLib" }, -0x0898: { n:"FnGrp12" }, -0x0899: { n:"NameFnGrp12" }, -0x089a: { n:"MTRSettings", f:parse_MTRSettings, r:12 }, -0x089b: { n:"CompressPictures", f:parsenoop2 }, -0x089c: { n:"HeaderFooter" }, -0x089d: { n:"CrtLayout12" }, -0x089e: { n:"CrtMlFrt" }, -0x089f: { n:"CrtMlFrtContinue" }, -0x08a3: { n:"ForceFullCalculation", f:parse_ForceFullCalculation }, -0x08a4: { n:"ShapePropsStream" }, -0x08a5: { n:"TextPropsStream" }, -0x08a6: { n:"RichTextStream" }, -0x08a7: { n:"CrtLayout12A" }, -0x1001: { n:"Units" }, -0x1002: { n:"Chart" }, -0x1003: { n:"Series" }, -0x1006: { n:"DataFormat" }, -0x1007: { n:"LineFormat" }, -0x1009: { n:"MarkerFormat" }, -0x100a: { n:"AreaFormat" }, -0x100b: { n:"PieFormat" }, -0x100c: { n:"AttachedLabel" }, -0x100d: { n:"SeriesText" }, -0x1014: { n:"ChartFormat" }, -0x1015: { n:"Legend" }, -0x1016: { n:"SeriesList" }, -0x1017: { n:"Bar" }, -0x1018: { n:"Line" }, -0x1019: { n:"Pie" }, -0x101a: { n:"Area" }, -0x101b: { n:"Scatter" }, -0x101c: { n:"CrtLine" }, -0x101d: { n:"Axis" }, -0x101e: { n:"Tick" }, -0x101f: { n:"ValueRange" }, -0x1020: { n:"CatSerRange" }, -0x1021: { n:"AxisLine" }, -0x1022: { n:"CrtLink" }, -0x1024: { n:"DefaultText" }, -0x1025: { n:"Text" }, -0x1026: { n:"FontX", f:parseuint16 }, -0x1027: { n:"ObjectLink" }, -0x1032: { n:"Frame" }, -0x1033: { n:"Begin" }, -0x1034: { n:"End" }, -0x1035: { n:"PlotArea" }, -0x103a: { n:"Chart3d" }, -0x103c: { n:"PicF" }, -0x103d: { n:"DropBar" }, -0x103e: { n:"Radar" }, -0x103f: { n:"Surf" }, -0x1040: { n:"RadarArea" }, -0x1041: { n:"AxisParent" }, -0x1043: { n:"LegendException" }, -0x1044: { n:"ShtProps", f:parse_ShtProps }, -0x1045: { n:"SerToCrt" }, -0x1046: { n:"AxesUsed" }, -0x1048: { n:"SBaseRef" }, -0x104a: { n:"SerParent" }, -0x104b: { n:"SerAuxTrend" }, -0x104e: { n:"IFmtRecord" }, -0x104f: { n:"Pos" }, -0x1050: { n:"AlRuns" }, -0x1051: { n:"BRAI" }, -0x105b: { n:"SerAuxErrBar" }, -0x105c: { n:"ClrtClient", f:parse_ClrtClient }, -0x105d: { n:"SerFmt" }, -0x105f: { n:"Chart3DBarShape" }, -0x1060: { n:"Fbi" }, -0x1061: { n:"BopPop" }, -0x1062: { n:"AxcExt" }, -0x1063: { n:"Dat" }, -0x1064: { n:"PlotGrowth" }, -0x1065: { n:"SIIndex" }, -0x1066: { n:"GelFrame" }, -0x1067: { n:"BopPopCustom" }, -0x1068: { n:"Fbi2" }, - -0x0000: { n:"Dimensions", f:parse_Dimensions }, -0x0001: { n:"BIFF2BLANK" }, -0x0002: { n:"BIFF2INT", f:parse_BIFF2INT }, -0x0003: { n:"BIFF2NUM", f:parse_BIFF2NUM }, -0x0004: { n:"BIFF2STR", f:parse_BIFF2STR }, -0x0005: { n:"BoolErr", f:parse_BoolErr }, -0x0007: { n:"String", f:parse_BIFF2STRING }, -0x0008: { n:"BIFF2ROW" }, -0x0009: { n:'BOF', f:parse_BOF }, -0x000b: { n:"Index" }, -0x0016: { n:"ExternCount", f:parseuint16 }, -0x001e: { n:"BIFF2FORMAT", f:parse_BIFF2Format }, -0x001f: { n:"BIFF2FMTCNT" }, /* 16-bit cnt of BIFF2FORMAT records */ -0x0020: { n:"BIFF2COLINFO" }, -0x0021: { n:"Array", f:parse_Array }, -0x0024: { n:"COLWIDTH" }, -0x0025: { n:"DefaultRowHeight", f:parse_DefaultRowHeight }, - // 0x2c ?? - // 0x2d ?? - // 0x2e ?? - // 0x30 FONTCOUNT: number of fonts -0x0032: { n:"BIFF2FONTXTRA", f:parse_BIFF2FONTXTRA }, - // 0x35: INFOOPTS - // 0x36: TABLE (BIFF2 only) - // 0x37: TABLE2 (BIFF2 only) - // 0x38: WNDESK - // 0x39 ?? - // 0x3a: BEGINPREF - // 0x3b: ENDPREF -0x003e: { n:"BIFF2WINDOW2" }, - // 0x3f ?? - // 0x46: SHOWSCROLL - // 0x47: SHOWFORMULA - // 0x48: STATUSBAR - // 0x49: SHORTMENUS - // 0x4A: - // 0x4B: - // 0x4C: - // 0x4E: - // 0x4F: - // 0x58: TOOLBAR (BIFF3) - - /* - - - */ -0x0034: { n:"DDEObjName" }, -0x0043: { n:"BIFF2XF" }, -0x0044: { n:"BIFF2XFINDEX", f:parseuint16 }, -0x0045: { n:"BIFF2FONTCLR" }, -0x0056: { n:"BIFF4FMTCNT" }, /* 16-bit cnt, similar to BIFF2 */ -0x007e: { n:"RK" }, /* Not necessarily same as 0x027e */ -0x007f: { n:"ImData", f:parse_ImData }, -0x0087: { n:"Addin" }, -0x0088: { n:"Edg" }, -0x0089: { n:"Pub" }, - // 0x8A - // 0x8B LH: alternate menu key flag (BIFF3/4) - // 0x8E - // 0x8F -0x0091: { n:"Sub" }, - // 0x93 STYLE -0x0094: { n:"LHRecord" }, -0x0095: { n:"LHNGraph" }, -0x0096: { n:"Sound" }, - // 0xA2 FNPROTO: function prototypes (BIFF4) - // 0xA3 - // 0xA8 -0x00a9: { n:"CoordList" }, -0x00ab: { n:"GCW" }, -0x00bc: { n:"ShrFmla" }, /* Not necessarily same as 0x04bc */ -0x00bf: { n:"ToolbarHdr" }, -0x00c0: { n:"ToolbarEnd" }, -0x00c2: { n:"AddMenu" }, -0x00c3: { n:"DelMenu" }, -0x00d6: { n:"RString", f:parse_RString }, -0x00df: { n:"UDDesc" }, -0x00ea: { n:"TabIdConf" }, -0x0162: { n:"XL5Modify" }, -0x01a5: { n:"FileSharing2" }, -0x0206: { n:"Formula", f:parse_Formula }, -0x0209: { n:'BOF', f:parse_BOF }, -0x0218: { n:"Lbl", f:parse_Lbl }, -0x0223: { n:"ExternName", f:parse_ExternName }, -0x0231: { n:"Font" }, -0x0243: { n:"BIFF3XF" }, -0x0406: { n:"Formula", f:parse_Formula }, -0x0409: { n:'BOF', f:parse_BOF }, -0x0443: { n:"BIFF4XF" }, -0x086d: { n:"FeatInfo" }, -0x0873: { n:"FeatInfo11" }, -0x0881: { n:"SXAddl12" }, -0x08c0: { n:"AutoWebPub" }, -0x08c1: { n:"ListObj" }, -0x08c2: { n:"ListField" }, -0x08c3: { n:"ListDV" }, -0x08c4: { n:"ListCondFmt" }, -0x08c5: { n:"ListCF" }, -0x08c6: { n:"FMQry" }, -0x08c7: { n:"FMSQry" }, -0x08c8: { n:"PLV" }, -0x08c9: { n:"LnExt" }, -0x08ca: { n:"MkrExt" }, -0x08cb: { n:"CrtCoopt" }, -0x08d6: { n:"FRTArchId$", r:12 }, - -0x7262: {} -}; - -var XLSRE = evert_key(XLSRecordEnum, 'n'); -function write_biff_rec(ba, type, payload, length) { - var t = typeof type == "number" ? type : (+type || +XLSRE[type]); - if(isNaN(t)) return; - var len = length || (payload||[]).length || 0; - var o = ba.next(4); - o.write_shift(2, t); - o.write_shift(2, len); - if(len > 0 && is_buf(payload)) ba.push(payload); -} - -function write_biff_continue(ba, type, payload, length) { - var len = length || (payload||[]).length || 0; - if(len <= 8224) return write_biff_rec(ba, type, payload, len); - var t = +type || +XLSRE[type]; - if(isNaN(t)) return; - var parts = payload.parts || [], sidx = 0; - var i = 0, w = 0; - while(w + (parts[sidx] || 8224) <= 8224) { w+= (parts[sidx] || 8224); sidx++; } - var o = ba.next(4); - o.write_shift(2, t); - o.write_shift(2, w); - ba.push(payload.slice(i, i + w)); - i += w; - while(i < len) { - o = ba.next(4); - o.write_shift(2, 0x3c); // TODO: figure out correct continue type - w = 0; - while(w + (parts[sidx] || 8224) <= 8224) { w+= (parts[sidx] || 8224); sidx++; } - o.write_shift(2, w); - ba.push(payload.slice(i, i+w)); i+= w; - } -} - -function write_BIFF2Cell(out, r, c) { - if(!out) out = new_buf(7); - out.write_shift(2, r); - out.write_shift(2, c); - out.write_shift(2, 0); - out.write_shift(1, 0); - return out; -} - -function write_BIFF2BERR(r, c, val, t) { - var out = new_buf(9); - write_BIFF2Cell(out, r, c); - write_Bes(val, t || 'b', out); - return out; -} - -/* TODO: codepage, large strings */ -function write_BIFF2LABEL(r, c, val) { - var out = new_buf(8 + 2*val.length); - write_BIFF2Cell(out, r, c); - out.write_shift(1, val.length); - out.write_shift(val.length, val, 'sbcs'); - return out.l < out.length ? out.slice(0, out.l) : out; -} - -function write_ws_biff2_cell(ba, cell, R, C) { - if(cell.v != null) switch(cell.t) { - case 'd': case 'n': - var v = cell.t == 'd' ? datenum(parseDate(cell.v)) : cell.v; - if((v == (v|0)) && (v >= 0) && (v < 65536)) - write_biff_rec(ba, 0x0002, write_BIFF2INT(R, C, v)); - else - write_biff_rec(ba, 0x0003, write_BIFF2NUM(R,C, v)); - return; - case 'b': case 'e': write_biff_rec(ba, 0x0005, write_BIFF2BERR(R, C, cell.v, cell.t)); return; - /* TODO: codepage, sst */ - case 's': case 'str': - write_biff_rec(ba, 0x0004, write_BIFF2LABEL(R, C, (cell.v||"").slice(0,255))); - return; - } - write_biff_rec(ba, 0x0001, write_BIFF2Cell(null, R, C)); -} - -function write_ws_biff2(ba, ws, idx, opts) { - var dense = Array.isArray(ws); - var range = safe_decode_range(ws['!ref'] || "A1"), ref, rr = "", cols = []; - if(range.e.c > 0xFF || range.e.r > 0x3FFF) { - if(opts.WTF) throw new Error("Range " + (ws['!ref'] || "A1") + " exceeds format limit A1:IV16384"); - range.e.c = Math.min(range.e.c, 0xFF); - range.e.r = Math.min(range.e.c, 0x3FFF); - ref = encode_range(range); - } - for(var R = range.s.r; R <= range.e.r; ++R) { - rr = encode_row(R); - for(var C = range.s.c; C <= range.e.c; ++C) { - if(R === range.s.r) cols[C] = encode_col(C); - ref = cols[C] + rr; - var cell = dense ? (ws[R]||[])[C] : ws[ref]; - if(!cell) continue; - /* write cell */ - write_ws_biff2_cell(ba, cell, R, C, opts); - } - } -} - -/* Based on test files */ -function write_biff2_buf(wb, opts) { - var o = opts || {}; - if(DENSE != null && o.dense == null) o.dense = DENSE; - var ba = buf_array(); - var idx = 0; - for(var i=0;i 0xFF || range.e.r >= MAX_ROWS) { - if(opts.WTF) throw new Error("Range " + (ws['!ref'] || "A1") + " exceeds format limit A1:IV16384"); - range.e.c = Math.min(range.e.c, 0xFF); - range.e.r = Math.min(range.e.c, MAX_ROWS-1); - } - - write_biff_rec(ba, 0x0809, write_BOF(wb, 0x10, opts)); - /* [Uncalced] Index */ - write_biff_rec(ba, "CalcMode", writeuint16(1)); - write_biff_rec(ba, "CalcCount", writeuint16(100)); - write_biff_rec(ba, "CalcRefMode", writebool(true)); - write_biff_rec(ba, "CalcIter", writebool(false)); - write_biff_rec(ba, "CalcDelta", write_Xnum(0.001)); - write_biff_rec(ba, "CalcSaveRecalc", writebool(true)); - write_biff_rec(ba, "PrintRowCol", writebool(false)); - write_biff_rec(ba, "PrintGrid", writebool(false)); - write_biff_rec(ba, "GridSet", writeuint16(1)); - write_biff_rec(ba, "Guts", write_Guts([0,0])); - /* DefaultRowHeight WsBool [Sync] [LPr] [HorizontalPageBreaks] [VerticalPageBreaks] */ - /* Header (string) */ - /* Footer (string) */ - write_biff_rec(ba, "HCenter", writebool(false)); - write_biff_rec(ba, "VCenter", writebool(false)); - /* ... */ - if(b8) write_ws_cols_biff8(ba, ws["!cols"], ws); - /* ... */ - write_biff_rec(ba, 0x200, write_Dimensions(range, opts)); - /* ... */ - - if(b8) ws['!links'] = []; - for(var R = range.s.r; R <= range.e.r; ++R) { - rr = encode_row(R); - for(var C = range.s.c; C <= range.e.c; ++C) { - if(R === range.s.r) cols[C] = encode_col(C); - ref = cols[C] + rr; - var cell = dense ? (ws[R]||[])[C] : ws[ref]; - if(!cell) continue; - /* write cell */ - write_ws_biff8_cell(ba, cell, R, C, opts); - if(b8 && cell.l) ws['!links'].push([ref, cell.l]); - } - } - var cname = _sheet.CodeName || _sheet.name || s; - /* ... */ - if(b8) write_biff_rec(ba, "Window2", write_Window2((_WB.Views||[])[0])); - /* ... */ - if(b8 && (ws['!merges']||[]).length) write_biff_rec(ba, "MergeCells", write_MergeCells(ws['!merges'])); - /* [LRng] *QUERYTABLE [PHONETICINFO] CONDFMTS */ - if(b8) write_ws_biff8_hlinks(ba, ws); - /* [DVAL] */ - write_biff_rec(ba, "CodeName", write_XLUnicodeString(cname, opts)); - /* *WebPub *CellWatch [SheetExt] */ - if(b8) write_FEAT(ba, ws); - /* *FEAT11 *RECORD12 */ - write_biff_rec(ba, "EOF"); - return ba.end(); -} - -/* [MS-XLS] 2.1.7.20.3 */ -function write_biff8_global(wb, bufs, opts) { - var A = buf_array(); - var _WB = ((wb||{}).Workbook||{}); - var _sheets = (_WB.Sheets||[]); - var _wb = _WB.WBProps||{}; - var b8 = opts.biff == 8, b5 = opts.biff == 5; - write_biff_rec(A, 0x0809, write_BOF(wb, 0x05, opts)); - if(opts.bookType == "xla") write_biff_rec(A, "Addin"); - write_biff_rec(A, "InterfaceHdr", b8 ? writeuint16(0x04b0) : null); - write_biff_rec(A, "Mms", writezeroes(2)); - if(b5) write_biff_rec(A, "ToolbarHdr"); - if(b5) write_biff_rec(A, "ToolbarEnd"); - write_biff_rec(A, "InterfaceEnd"); - write_biff_rec(A, "WriteAccess", write_WriteAccess("SheetJS", opts)); - /* [FileSharing] */ - write_biff_rec(A, "CodePage", writeuint16(b8 ? 0x04b0 : 0x04E4)); - /* *2047 Lel */ - if(b8) write_biff_rec(A, "DSF", writeuint16(0)); - if(b8) write_biff_rec(A, "Excel9File"); - write_biff_rec(A, "RRTabId", write_RRTabId(wb.SheetNames.length)); - if(b8 && wb.vbaraw) write_biff_rec(A, "ObProj"); - /* [ObNoMacros] */ - if(b8 && wb.vbaraw) { - var cname = _wb.CodeName || "ThisWorkbook"; - write_biff_rec(A, "CodeName", write_XLUnicodeString(cname, opts)); - } - write_biff_rec(A, "BuiltInFnGroupCount", writeuint16(0x11)); - /* *FnGroupName *FnGrp12 */ - /* *Lbl */ - /* [OleObjectSize] */ - write_biff_rec(A, "WinProtect", writebool(false)); - write_biff_rec(A, "Protect", writebool(false)); - write_biff_rec(A, "Password", writeuint16(0)); - if(b8) write_biff_rec(A, "Prot4Rev", writebool(false)); - if(b8) write_biff_rec(A, "Prot4RevPass", writeuint16(0)); - write_biff_rec(A, "Window1", write_Window1(opts)); - write_biff_rec(A, "Backup", writebool(false)); - write_biff_rec(A, "HideObj", writeuint16(0)); - write_biff_rec(A, "Date1904", writebool(safe1904(wb)=="true")); - write_biff_rec(A, "CalcPrecision", writebool(true)); - if(b8) write_biff_rec(A, "RefreshAll", writebool(false)); - write_biff_rec(A, "BookBool", writeuint16(0)); - /* ... */ - write_FONTS_biff8(A, wb, opts); - write_FMTS_biff8(A, wb.SSF, opts); - write_CELLXFS_biff8(A, opts); - /* ... */ - if(b8) write_biff_rec(A, "UsesELFs", writebool(false)); - var a = A.end(); - - var C = buf_array(); - /* METADATA [MTRSettings] [ForceFullCalculation] */ - if(b8) write_biff_rec(C, "Country", write_Country()); - /* *SUPBOOK *LBL *RTD [RecalcId] *HFPicture *MSODRAWINGGROUP */ - - /* BIFF8: [SST *Continue] ExtSST */ - if(b8 && opts.Strings) write_biff_continue(C, "SST", write_SST(opts.Strings, opts)); - - /* *WebPub [WOpt] [CrErr] [BookExt] *FeatHdr *DConn [THEME] [CompressPictures] [Compat12] [GUIDTypeLib] */ - write_biff_rec(C, "EOF"); - var c = C.end(); - - var B = buf_array(); - var blen = 0, j = 0; - for(j = 0; j < wb.SheetNames.length; ++j) blen += (b8 ? 12 : 11) + (b8 ? 2 : 1) * wb.SheetNames[j].length; - var start = a.length + blen + c.length; - for(j = 0; j < wb.SheetNames.length; ++j) { - var _sheet = _sheets[j] || ({}); - write_biff_rec(B, "BoundSheet8", write_BoundSheet8({pos:start, hs:_sheet.Hidden||0, dt:0, name:wb.SheetNames[j]}, opts)); - start += bufs[j].length; - } - /* 1*BoundSheet8 */ - var b = B.end(); - if(blen != b.length) throw new Error("BS8 " + blen + " != " + b.length); - - var out = []; - if(a.length) out.push(a); - if(b.length) out.push(b); - if(c.length) out.push(c); - return bconcat(out); -} - -/* [MS-XLS] 2.1.7.20 Workbook Stream */ -function write_biff8_buf(wb, opts) { - var o = opts || {}; - var bufs = []; - - if(wb && !wb.SSF) { - wb.SSF = SSF.get_table(); - } - if(wb && wb.SSF) { - make_ssf(SSF); SSF.load_table(wb.SSF); - // $FlowIgnore - o.revssf = evert_num(wb.SSF); o.revssf[wb.SSF[65535]] = 0; - o.ssf = wb.SSF; - } - - o.Strings = []; o.Strings.Count = 0; o.Strings.Unique = 0; - fix_write_opts(o); - - o.cellXfs = []; - get_cell_style(o.cellXfs, {}, {revssf:{"General":0}}); - - if(!wb.Props) wb.Props = {}; - - for(var i = 0; i < wb.SheetNames.length; ++i) bufs[bufs.length] = write_ws_biff8(i, o, wb); - bufs.unshift(write_biff8_global(wb, bufs, o)); - return bconcat(bufs); -} - -function write_biff_buf(wb, opts) { - for(var i = 0; i <= wb.SheetNames.length; ++i) { - var ws = wb.Sheets[wb.SheetNames[i]]; - if(!ws || !ws["!ref"]) continue; - var range = decode_range(ws["!ref"]); - if(range.e.c > 255) { // note: 255 is IV - if(typeof console != "undefined" && console.error) console.error("Worksheet '" + wb.SheetNames[i] + "' extends beyond column IV (255). Data may be lost."); - } - } - - var o = opts || {}; - switch(o.biff || 2) { - case 8: case 5: return write_biff8_buf(wb, opts); - case 4: case 3: case 2: return write_biff2_buf(wb, opts); - } - throw new Error("invalid type " + o.bookType + " for BIFF"); -} -/* note: browser DOM element cannot see mso- style attrs, must parse */ -var HTML_ = (function() { - function html_to_sheet(str, _opts) { - var opts = _opts || {}; - if(DENSE != null && opts.dense == null) opts.dense = DENSE; - var ws = opts.dense ? ([]) : ({}); - str = str.replace(//g, ""); - var mtch = str.match(/"); - var mtch2 = str.match(/<\/table/i); - var i = mtch.index, j = mtch2 && mtch2.index || str.length; - var rows = split_regex(str.slice(i, j), /(:?]*>)/i, ""); - var R = -1, C = 0, RS = 0, CS = 0; - var range = {s:{r:10000000, c:10000000},e:{r:0,c:0}}; - var merges = []; - for(i = 0; i < rows.length; ++i) { - var row = rows[i].trim(); - var hd = row.slice(0,3).toLowerCase(); - if(hd == "/i); - for(j = 0; j < cells.length; ++j) { - var cell = cells[j].trim(); - if(!cell.match(/")) > -1) m = m.slice(cc+1); - for(var midx = 0; midx < merges.length; ++midx) { - var _merge = merges[midx]; - if(_merge.s.c == C && _merge.s.r < R && R <= _merge.e.r) { C = _merge.e.c + 1; midx = -1; } - } - var tag = parsexmltag(cell.slice(0, cell.indexOf(">"))); - CS = tag.colspan ? +tag.colspan : 1; - if((RS = +tag.rowspan)>1 || CS>1) merges.push({s:{r:R,c:C},e:{r:R + (RS||1) - 1, c:C + CS - 1}}); - var _t = tag.t || tag["data-t"] || ""; - /* TODO: generate stub cells */ - if(!m.length) { C += CS; continue; } - m = htmldecode(m); - if(range.s.r > R) range.s.r = R; if(range.e.r < R) range.e.r = R; - if(range.s.c > C) range.s.c = C; if(range.e.c < C) range.e.c = C; - if(!m.length) continue; - var o = {t:'s', v:m}; - if(opts.raw || !m.trim().length || _t == 's'){} - else if(m === 'TRUE') o = {t:'b', v:true}; - else if(m === 'FALSE') o = {t:'b', v:false}; - else if(!isNaN(fuzzynum(m))) o = {t:'n', v:fuzzynum(m)}; - else if(!isNaN(fuzzydate(m).getDate())) { - o = ({t:'d', v:parseDate(m)}); - if(!opts.cellDates) o = ({t:'n', v:datenum(o.v)}); - o.z = opts.dateNF || SSF._table[14]; - } - if(opts.dense) { if(!ws[R]) ws[R] = []; ws[R][C] = o; } - else ws[encode_cell({r:R, c:C})] = o; - C += CS; - } - } - ws['!ref'] = encode_range(range); - if(merges.length) ws["!merges"] = merges; - return ws; - } - function html_to_book(str, opts) { - var mtch = str.match(/[\s\S]*?<\/table>/gi); - if(!mtch || mtch.length == 0) throw new Error("Invalid HTML: could not find
"); - if(mtch.length == 1) return sheet_to_workbook(html_to_sheet(mtch[0], opts), opts); - var wb = utils.book_new(); - mtch.forEach(function(s, idx) { utils.book_append_sheet(wb, html_to_sheet(s, opts), "Sheet" + (idx+1)); }); - return wb; - } - function make_html_row(ws, r, R, o) { - var M = (ws['!merges'] ||[]); - var oo = []; - for(var C = r.s.c; C <= r.e.c; ++C) { - var RS = 0, CS = 0; - for(var j = 0; j < M.length; ++j) { - if(M[j].s.r > R || M[j].s.c > C) continue; - if(M[j].e.r < R || M[j].e.c < C) continue; - if(M[j].s.r < R || M[j].s.c < C) { RS = -1; break; } - RS = M[j].e.r - M[j].s.r + 1; CS = M[j].e.c - M[j].s.c + 1; break; - } - if(RS < 0) continue; - var coord = encode_cell({r:R,c:C}); - var cell = o.dense ? (ws[R]||[])[C] : ws[coord]; - /* TODO: html entities */ - var w = (cell && cell.v != null) && (cell.h || escapehtml(cell.w || (format_cell(cell), cell.w) || "")) || ""; - var sp = ({}); - if(RS > 1) sp.rowspan = RS; - if(CS > 1) sp.colspan = CS; - if(o.editable) w = '' + w + ''; - else if(cell) { - sp["data-t"] = cell && cell.t || 'z'; - if(cell.v != null) sp["data-v"] = cell.v; - if(cell.z != null) sp["data-z"] = cell.z; - if(cell.l && (cell.l.Target || "#").charAt(0) != "#") w = '' + w + ''; - } - sp.id = (o.id || "sjs") + "-" + coord; - oo.push(writextag('td', w, sp)); - } - var preamble = ""; - return preamble + oo.join("") + ""; - } - function make_html_preamble(ws, R, o) { - var out = []; - return out.join("") + ''; - } - var _BEGIN = 'SheetJS Table Export'; - var _END = ''; - function sheet_to_html(ws, opts/*, wb:?Workbook*/) { - var o = opts || {}; - var header = o.header != null ? o.header : _BEGIN; - var footer = o.footer != null ? o.footer : _END; - var out = [header]; - var r = decode_range(ws['!ref']); - o.dense = Array.isArray(ws); - out.push(make_html_preamble(ws, r, o)); - for(var R = r.s.r; R <= r.e.r; ++R) out.push(make_html_row(ws, r, R, o)); - out.push("
" + footer); - return out.join(""); - - } - return { - to_workbook: html_to_book, - to_sheet: html_to_sheet, - _row: make_html_row, - BEGIN: _BEGIN, - END: _END, - _preamble: make_html_preamble, - from_sheet: sheet_to_html - }; -})(); - -function sheet_add_dom(ws, table, _opts) { - var opts = _opts || {}; - if(DENSE != null) opts.dense = DENSE; - var or_R = 0, or_C = 0; - if(opts.origin != null) { - if(typeof opts.origin == 'number') or_R = opts.origin; - else { - var _origin = typeof opts.origin == "string" ? decode_cell(opts.origin) : opts.origin; - or_R = _origin.r; or_C = _origin.c; - } - } - - var rows = table.getElementsByTagName('tr'); - var sheetRows = Math.min(opts.sheetRows||10000000, rows.length); - var range = {s:{r:0,c:0},e:{r:or_R,c:or_C}}; - if(ws["!ref"]) { - var _range = decode_range(ws["!ref"]); - range.s.r = Math.min(range.s.r, _range.s.r); - range.s.c = Math.min(range.s.c, _range.s.c); - range.e.r = Math.max(range.e.r, _range.e.r); - range.e.c = Math.max(range.e.c, _range.e.c); - if(or_R == -1) range.e.r = or_R = _range.e.r + 1; - } - var merges = [], midx = 0; - var rowinfo = ws["!rows"] || (ws["!rows"] = []); - var _R = 0, R = 0, _C = 0, C = 0, RS = 0, CS = 0; - if(!ws["!cols"]) ws['!cols'] = []; - for(; _R < rows.length && R < sheetRows; ++_R) { - var row = rows[_R]; - if (is_dom_element_hidden(row)) { - if (opts.display) continue; - rowinfo[R] = {hidden: true}; - } - var elts = (row.children); - for(_C = C = 0; _C < elts.length; ++_C) { - var elt = elts[_C]; - if (opts.display && is_dom_element_hidden(elt)) continue; - var v = elt.hasAttribute('data-v') ? elt.getAttribute('data-v') : elt.hasAttribute('v') ? elt.getAttribute('v') : htmldecode(elt.innerHTML); - var z = elt.getAttribute('data-z') || elt.getAttribute('z'); - for(midx = 0; midx < merges.length; ++midx) { - var m = merges[midx]; - if(m.s.c == C + or_C && m.s.r < R + or_R && R + or_R <= m.e.r) { C = m.e.c+1 - or_C; midx = -1; } - } - /* TODO: figure out how to extract nonstandard mso- style */ - CS = +elt.getAttribute("colspan") || 1; - if( ((RS = (+elt.getAttribute("rowspan") || 1)))>1 || CS>1) merges.push({s:{r:R + or_R,c:C + or_C},e:{r:R + or_R + (RS||1) - 1, c:C + or_C + (CS||1) - 1}}); - var o = {t:'s', v:v}; - var _t = elt.getAttribute("data-t") || elt.getAttribute("t") || ""; - if(v != null) { - if(v.length == 0) o.t = _t || 'z'; - else if(opts.raw || v.trim().length == 0 || _t == "s"){} - else if(v === 'TRUE') o = {t:'b', v:true}; - else if(v === 'FALSE') o = {t:'b', v:false}; - else if(!isNaN(fuzzynum(v))) o = {t:'n', v:fuzzynum(v)}; - else if(!isNaN(fuzzydate(v).getDate())) { - o = ({t:'d', v:parseDate(v)}); - if(!opts.cellDates) o = ({t:'n', v:datenum(o.v)}); - o.z = opts.dateNF || SSF._table[14]; - } - } - if(o.z === undefined && z != null) o.z = z; - /* The first link is used. Links are assumed to be fully specified. - * TODO: The right way to process relative links is to make a new */ - var l = "", Aelts = elt.getElementsByTagName("A"); - if(Aelts && Aelts.length) for(var Aelti = 0; Aelti < Aelts.length; ++Aelti) if(Aelts[Aelti].hasAttribute("href")) { - l = Aelts[Aelti].getAttribute("href"); if(l.charAt(0) != "#") break; - } - if(l && l.charAt(0) != "#") o.l = ({ Target: l }); - if(opts.dense) { if(!ws[R + or_R]) ws[R + or_R] = []; ws[R + or_R][C + or_C] = o; } - else ws[encode_cell({c:C + or_C, r:R + or_R})] = o; - if(range.e.c < C + or_C) range.e.c = C + or_C; - C += CS; - } - ++R; - } - if(merges.length) ws['!merges'] = (ws["!merges"] || []).concat(merges); - range.e.r = Math.max(range.e.r, R - 1 + or_R); - ws['!ref'] = encode_range(range); - if(R >= sheetRows) ws['!fullref'] = encode_range((range.e.r = rows.length-_R+R-1 + or_R,range)); // We can count the real number of rows to parse but we don't to improve the performance - return ws; -} - -function parse_dom_table(table, _opts) { - var opts = _opts || {}; - var ws = opts.dense ? ([]) : ({}); - return sheet_add_dom(ws, table, _opts); -} - -function table_to_book(table, opts) { - return sheet_to_workbook(parse_dom_table(table, opts), opts); -} - -function is_dom_element_hidden(element) { - var display = ''; - var get_computed_style = get_get_computed_style_function(element); - if(get_computed_style) display = get_computed_style(element).getPropertyValue('display'); - if(!display) display = element.style && element.style.display; - return display === 'none'; -} - -/* global getComputedStyle */ -function get_get_computed_style_function(element) { - // The proper getComputedStyle implementation is the one defined in the element window - if(element.ownerDocument.defaultView && typeof element.ownerDocument.defaultView.getComputedStyle === 'function') return element.ownerDocument.defaultView.getComputedStyle; - // If it is not available, try to get one from the global namespace - if(typeof getComputedStyle === 'function') return getComputedStyle; - return null; -} -/* OpenDocument */ -var parse_content_xml = (function() { - - var parse_text_p = function(text) { - /* 6.1.2 White Space Characters */ - var fixed = text - .replace(/[\t\r\n]/g, " ").trim().replace(/ +/g, " ") - .replace(//g," ") - .replace(//g, function($$,$1) { return Array(parseInt($1,10)+1).join(" "); }) - .replace(/]*\/>/g,"\t") - .replace(//g,"\n"); - var v = unescapexml(fixed.replace(/<[^>]*>/g,"")); - - return [v]; - }; - - var number_formats = { - /* ods name: [short ssf fmt, long ssf fmt] */ - day: ["d", "dd"], - month: ["m", "mm"], - year: ["y", "yy"], - hours: ["h", "hh"], - minutes: ["m", "mm"], - seconds: ["s", "ss"], - "am-pm": ["A/P", "AM/PM"], - "day-of-week": ["ddd", "dddd"], - era: ["e", "ee"], - /* there is no native representation of LO "Q" format */ - quarter: ["\\Qm", "m\\\"th quarter\""] - }; - - return function pcx(d, _opts) { - var opts = _opts || {}; - if(DENSE != null && opts.dense == null) opts.dense = DENSE; - var str = xlml_normalize(d); - var state = [], tmp; - var tag; - var NFtag = {name:""}, NF = "", pidx = 0; - var sheetag; - var rowtag; - var Sheets = {}, SheetNames = []; - var ws = opts.dense ? ([]) : ({}); - var Rn, q; - var ctag = ({value:""}); - var textp = "", textpidx = 0, textptag; - var textR = []; - var R = -1, C = -1, range = {s: {r:1000000,c:10000000}, e: {r:0, c:0}}; - var row_ol = 0; - var number_format_map = {}; - var merges = [], mrange = {}, mR = 0, mC = 0; - var rowinfo = [], rowpeat = 1, colpeat = 1; - var arrayf = []; - var WB = {Names:[]}; - var atag = ({}); - var _Ref = ["", ""]; - var comments = [], comment = ({}); - var creator = "", creatoridx = 0; - var isstub = false, intable = false; - var i = 0; - xlmlregex.lastIndex = 0; - str = str.replace(//mg,"").replace(//gm,""); - while((Rn = xlmlregex.exec(str))) switch((Rn[3]=Rn[3].replace(/_.*$/,""))) { - - case 'table': case '工作表': // 9.1.2 - if(Rn[1]==='/') { - if(range.e.c >= range.s.c && range.e.r >= range.s.r) ws['!ref'] = encode_range(range); - else ws['!ref'] = "A1:A1"; - if(opts.sheetRows > 0 && opts.sheetRows <= range.e.r) { - ws['!fullref'] = ws['!ref']; - range.e.r = opts.sheetRows - 1; - ws['!ref'] = encode_range(range); - } - if(merges.length) ws['!merges'] = merges; - if(rowinfo.length) ws["!rows"] = rowinfo; - sheetag.name = sheetag['名称'] || sheetag.name; - if(typeof JSON !== 'undefined') JSON.stringify(sheetag); - SheetNames.push(sheetag.name); - Sheets[sheetag.name] = ws; - intable = false; - } - else if(Rn[0].charAt(Rn[0].length-2) !== '/') { - sheetag = parsexmltag(Rn[0], false); - R = C = -1; - range.s.r = range.s.c = 10000000; range.e.r = range.e.c = 0; - ws = opts.dense ? ([]) : ({}); merges = []; - rowinfo = []; - intable = true; - } - break; - - case 'table-row-group': // 9.1.9 - if(Rn[1] === "/") --row_ol; else ++row_ol; - break; - case 'table-row': case '行': // 9.1.3 - if(Rn[1] === '/') { R+=rowpeat; rowpeat = 1; break; } - rowtag = parsexmltag(Rn[0], false); - if(rowtag['行号']) R = rowtag['行号'] - 1; else if(R == -1) R = 0; - rowpeat = +rowtag['number-rows-repeated'] || 1; - /* TODO: remove magic */ - if(rowpeat < 10) for(i = 0; i < rowpeat; ++i) if(row_ol > 0) rowinfo[R + i] = {level: row_ol}; - C = -1; break; - case 'covered-table-cell': // 9.1.5 - if(Rn[1] !== '/') ++C; - if(opts.sheetStubs) { - if(opts.dense) { if(!ws[R]) ws[R] = []; ws[R][C] = {t:'z'}; } - else ws[encode_cell({r:R,c:C})] = {t:'z'}; - } - textp = ""; textR = []; - break; /* stub */ - case 'table-cell': case '数据': - if(Rn[0].charAt(Rn[0].length-2) === '/') { - ++C; - ctag = parsexmltag(Rn[0], false); - colpeat = parseInt(ctag['number-columns-repeated']||"1", 10); - q = ({t:'z', v:null}); - if(ctag.formula && opts.cellFormula != false) q.f = ods_to_csf_formula(unescapexml(ctag.formula)); - if((ctag['数据类型'] || ctag['value-type']) == "string") { - q.t = "s"; q.v = unescapexml(ctag['string-value'] || ""); - if(opts.dense) { - if(!ws[R]) ws[R] = []; - ws[R][C] = q; - } else { - ws[encode_cell({r:R,c:C})] = q; - } - } - C+= colpeat-1; - } else if(Rn[1]!=='/') { - ++C; - textp = ""; textpidx = 0; textR = []; - colpeat = 1; - var rptR = rowpeat ? R + rowpeat - 1 : R; - if(C > range.e.c) range.e.c = C; - if(C < range.s.c) range.s.c = C; - if(R < range.s.r) range.s.r = R; - if(rptR > range.e.r) range.e.r = rptR; - ctag = parsexmltag(Rn[0], false); - comments = []; comment = ({}); - q = ({t:ctag['数据类型'] || ctag['value-type'], v:null}); - if(opts.cellFormula) { - if(ctag.formula) ctag.formula = unescapexml(ctag.formula); - if(ctag['number-matrix-columns-spanned'] && ctag['number-matrix-rows-spanned']) { - mR = parseInt(ctag['number-matrix-rows-spanned'],10) || 0; - mC = parseInt(ctag['number-matrix-columns-spanned'],10) || 0; - mrange = {s: {r:R,c:C}, e:{r:R + mR-1,c:C + mC-1}}; - q.F = encode_range(mrange); - arrayf.push([mrange, q.F]); - } - if(ctag.formula) q.f = ods_to_csf_formula(ctag.formula); - else for(i = 0; i < arrayf.length; ++i) - if(R >= arrayf[i][0].s.r && R <= arrayf[i][0].e.r) - if(C >= arrayf[i][0].s.c && C <= arrayf[i][0].e.c) - q.F = arrayf[i][1]; - } - if(ctag['number-columns-spanned'] || ctag['number-rows-spanned']) { - mR = parseInt(ctag['number-rows-spanned'],10) || 0; - mC = parseInt(ctag['number-columns-spanned'],10) || 0; - mrange = {s: {r:R,c:C}, e:{r:R + mR-1,c:C + mC-1}}; - merges.push(mrange); - } - - /* 19.675.2 table:number-columns-repeated */ - if(ctag['number-columns-repeated']) colpeat = parseInt(ctag['number-columns-repeated'], 10); - - /* 19.385 office:value-type */ - switch(q.t) { - case 'boolean': q.t = 'b'; q.v = parsexmlbool(ctag['boolean-value']); break; - case 'float': q.t = 'n'; q.v = parseFloat(ctag.value); break; - case 'percentage': q.t = 'n'; q.v = parseFloat(ctag.value); break; - case 'currency': q.t = 'n'; q.v = parseFloat(ctag.value); break; - case 'date': q.t = 'd'; q.v = parseDate(ctag['date-value']); - if(!opts.cellDates) { q.t = 'n'; q.v = datenum(q.v); } - q.z = 'm/d/yy'; break; - case 'time': q.t = 'n'; q.v = parse_isodur(ctag['time-value'])/86400; - if(opts.cellDates) { q.t = 'd'; q.v = numdate(q.v); } - q.z = 'HH:MM:SS'; break; - case 'number': q.t = 'n'; q.v = parseFloat(ctag['数据数值']); break; - default: - if(q.t === 'string' || q.t === 'text' || !q.t) { - q.t = 's'; - if(ctag['string-value'] != null) { textp = unescapexml(ctag['string-value']); textR = []; } - } else throw new Error('Unsupported value type ' + q.t); - } - } else { - isstub = false; - if(q.t === 's') { - q.v = textp || ''; - if(textR.length) q.R = textR; - isstub = textpidx == 0; - } - if(atag.Target) q.l = atag; - if(comments.length > 0) { q.c = comments; comments = []; } - if(textp && opts.cellText !== false) q.w = textp; - if(isstub) { q.t = "z"; delete q.v; } - if(!isstub || opts.sheetStubs) { - if(!(opts.sheetRows && opts.sheetRows <= R)) { - for(var rpt = 0; rpt < rowpeat; ++rpt) { - colpeat = parseInt(ctag['number-columns-repeated']||"1", 10); - if(opts.dense) { - if(!ws[R + rpt]) ws[R + rpt] = []; - ws[R + rpt][C] = rpt == 0 ? q : dup(q); - while(--colpeat > 0) ws[R + rpt][C + colpeat] = dup(q); - } else { - ws[encode_cell({r:R + rpt,c:C})] = q; - while(--colpeat > 0) ws[encode_cell({r:R + rpt,c:C + colpeat})] = dup(q); - } - if(range.e.c <= C) range.e.c = C; - } - } - } - colpeat = parseInt(ctag['number-columns-repeated']||"1", 10); - C += colpeat-1; colpeat = 0; - q = {}; - textp = ""; textR = []; - } - atag = ({}); - break; // 9.1.4 - - /* pure state */ - case 'document': // TODO: is the root for FODS - case 'document-content': case '电子表格文档': // 3.1.3.2 - case 'spreadsheet': case '主体': // 3.7 - case 'scripts': // 3.12 - case 'styles': // TODO - case 'font-face-decls': // 3.14 - case 'master-styles': // 3.15.4 -- relevant for FODS - if(Rn[1]==='/'){if((tmp=state.pop())[0]!==Rn[3]) throw "Bad state: "+tmp;} - else if(Rn[0].charAt(Rn[0].length-2) !== '/') state.push([Rn[3], true]); - break; - - case 'annotation': // 14.1 - if(Rn[1]==='/'){ - if((tmp=state.pop())[0]!==Rn[3]) throw "Bad state: "+tmp; - comment.t = textp; - if(textR.length) comment.R = textR; - comment.a = creator; - comments.push(comment); - } - else if(Rn[0].charAt(Rn[0].length-2) !== '/') {state.push([Rn[3], false]);} - creator = ""; creatoridx = 0; - textp = ""; textpidx = 0; textR = []; - break; - - case 'creator': // 4.3.2.7 - if(Rn[1]==='/') { creator = str.slice(creatoridx,Rn.index); } - else creatoridx = Rn.index + Rn[0].length; - break; - - /* ignore state */ - case 'meta': case '元数据': // TODO: FODS/UOF - case 'settings': // TODO: - case 'config-item-set': // TODO: - case 'config-item-map-indexed': // TODO: - case 'config-item-map-entry': // TODO: - case 'config-item-map-named': // TODO: - case 'shapes': // 9.2.8 - case 'frame': // 10.4.2 - case 'text-box': // 10.4.3 - case 'image': // 10.4.4 - case 'data-pilot-tables': // 9.6.2 - case 'list-style': // 16.30 - case 'form': // 13.13 - case 'dde-links': // 9.8 - case 'event-listeners': // TODO - case 'chart': // TODO - if(Rn[1]==='/'){if((tmp=state.pop())[0]!==Rn[3]) throw "Bad state: "+tmp;} - else if(Rn[0].charAt(Rn[0].length-2) !== '/') state.push([Rn[3], false]); - textp = ""; textpidx = 0; textR = []; - break; - - case 'scientific-number': // TODO: - break; - case 'currency-symbol': // TODO: - break; - case 'currency-style': // TODO: - break; - case 'number-style': // 16.27.2 - case 'percentage-style': // 16.27.9 - case 'date-style': // 16.27.10 - case 'time-style': // 16.27.18 - if(Rn[1]==='/'){ - number_format_map[NFtag.name] = NF; - if((tmp=state.pop())[0]!==Rn[3]) throw "Bad state: "+tmp; - } else if(Rn[0].charAt(Rn[0].length-2) !== '/') { - NF = ""; - NFtag = parsexmltag(Rn[0], false); - state.push([Rn[3], true]); - } break; - - case 'script': break; // 3.13 - case 'libraries': break; // TODO: - case 'automatic-styles': break; // 3.15.3 - - case 'default-style': // TODO: - case 'page-layout': break; // TODO: - case 'style': // 16.2 - break; - case 'map': break; // 16.3 - case 'font-face': break; // 16.21 - - case 'paragraph-properties': break; // 17.6 - case 'table-properties': break; // 17.15 - case 'table-column-properties': break; // 17.16 - case 'table-row-properties': break; // 17.17 - case 'table-cell-properties': break; // 17.18 - - case 'number': // 16.27.3 - switch(state[state.length-1][0]) { - case 'time-style': - case 'date-style': - tag = parsexmltag(Rn[0], false); - NF += number_formats[Rn[3]][tag.style==='long'?1:0]; break; - } break; - - case 'fraction': break; // TODO 16.27.6 - - case 'day': // 16.27.11 - case 'month': // 16.27.12 - case 'year': // 16.27.13 - case 'era': // 16.27.14 - case 'day-of-week': // 16.27.15 - case 'week-of-year': // 16.27.16 - case 'quarter': // 16.27.17 - case 'hours': // 16.27.19 - case 'minutes': // 16.27.20 - case 'seconds': // 16.27.21 - case 'am-pm': // 16.27.22 - switch(state[state.length-1][0]) { - case 'time-style': - case 'date-style': - tag = parsexmltag(Rn[0], false); - NF += number_formats[Rn[3]][tag.style==='long'?1:0]; break; - } break; - - case 'boolean-style': break; // 16.27.23 - case 'boolean': break; // 16.27.24 - case 'text-style': break; // 16.27.25 - case 'text': // 16.27.26 - if(Rn[0].slice(-2) === "/>") break; - else if(Rn[1]==="/") switch(state[state.length-1][0]) { - case 'number-style': - case 'date-style': - case 'time-style': - NF += str.slice(pidx, Rn.index); - break; - } - else pidx = Rn.index + Rn[0].length; - break; - - case 'named-range': // 9.4.12 - tag = parsexmltag(Rn[0], false); - _Ref = ods_to_csf_3D(tag['cell-range-address']); - var nrange = ({Name:tag.name, Ref:_Ref[0] + '!' + _Ref[1]}); - if(intable) nrange.Sheet = SheetNames.length; - WB.Names.push(nrange); - break; - - case 'text-content': break; // 16.27.27 - case 'text-properties': break; // 16.27.27 - case 'embedded-text': break; // 16.27.4 - - case 'body': case '电子表格': break; // 3.3 16.9.6 19.726.3 - - case 'forms': break; // 12.25.2 13.2 - case 'table-column': break; // 9.1.6 - case 'table-header-rows': break; // 9.1.7 - case 'table-rows': break; // 9.1.12 - /* TODO: outline levels */ - case 'table-column-group': break; // 9.1.10 - case 'table-header-columns': break; // 9.1.11 - case 'table-columns': break; // 9.1.12 - - case 'null-date': break; // 9.4.2 TODO: date1904 - - case 'graphic-properties': break; // 17.21 - case 'calculation-settings': break; // 9.4.1 - case 'named-expressions': break; // 9.4.11 - case 'label-range': break; // 9.4.9 - case 'label-ranges': break; // 9.4.10 - case 'named-expression': break; // 9.4.13 - case 'sort': break; // 9.4.19 - case 'sort-by': break; // 9.4.20 - case 'sort-groups': break; // 9.4.22 - - case 'tab': break; // 6.1.4 - case 'line-break': break; // 6.1.5 - case 'span': break; // 6.1.7 - case 'p': case '文本串': // 5.1.3 - if(['master-styles'].indexOf(state[state.length-1][0]) > -1) break; - if(Rn[1]==='/' && (!ctag || !ctag['string-value'])) { - var ptp = parse_text_p(str.slice(textpidx,Rn.index), textptag); - textp = (textp.length > 0 ? textp + "\n" : "") + ptp[0]; - } else { textptag = parsexmltag(Rn[0], false); textpidx = Rn.index + Rn[0].length; } - break; // - case 's': break; // - - case 'database-range': // 9.4.15 - if(Rn[1]==='/') break; - try { - _Ref = ods_to_csf_3D(parsexmltag(Rn[0])['target-range-address']); - Sheets[_Ref[0]]['!autofilter'] = { ref:_Ref[1] }; - } catch(e) {/* empty */} - break; - - case 'date': break; // <*:date> - - case 'object': break; // 10.4.6.2 - case 'title': case '标题': break; // <*:title> OR - case 'desc': break; // <*:desc> - case 'binary-data': break; // 10.4.5 TODO: b64 blob - - /* 9.2 Advanced Tables */ - case 'table-source': break; // 9.2.6 - case 'scenario': break; // 9.2.6 - - case 'iteration': break; // 9.4.3 - case 'content-validations': break; // 9.4.4 - case 'filter': break; // 9.5.2 - case 'filter-and': break; // 9.5.3 - case 'filter-or': break; // 9.5.4 - case 'filter-condition': break; // 9.5.5 - - case 'list-level-style-bullet': break; // 16.31 - case 'page-count': break; // TODO - case 'time': break; // TODO - - /* 9.3 Advanced Table Cells */ - case 'cell-range-source': break; // 9.3.1 - case 'property': break; // 13.8 - - case 'a': // 6.1.8 hyperlink - if(Rn[1]!== '/') { - atag = parsexmltag(Rn[0], false); - if(!atag.href) break; - atag.Target = unescapexml(atag.href); delete atag.href; - if(atag.Target.charAt(0) == "#" && atag.Target.indexOf(".") > -1) { - _Ref = ods_to_csf_3D(atag.Target.slice(1)); - atag.Target = "#" + _Ref[0] + "!" + _Ref[1]; - } else if(atag.Target.match(/^\.\.[\\\/]/)) atag.Target = atag.Target.slice(3); - } - break; - - /* non-standard */ - case 'table-protection': break; - case 'data-pilot-grand-total': break; // ', - '', - '', - '', - '', - '', - '', - '' - ].join(""); - - var payload = '' + master_styles + ''; - - return function wso() { - return XML_HEADER + payload; - }; -})(); -var write_content_ods = (function() { - /* 6.1.2 White Space Characters */ - var write_text_p = function(text) { - return escapexml(text) - .replace(/ +/g, function($$){return '';}) - .replace(/\t/g, "") - .replace(/\n/g, "") - .replace(/^ /, "").replace(/ $/, ""); - }; - - var null_cell_xml = ' \n'; - var covered_cell_xml = ' \n'; - var write_ws = function(ws, wb, i) { - /* Section 9 Tables */ - var o = []; - o.push(' \n'); - var R=0,C=0, range = decode_range(ws['!ref']||"A1"); - var marr = ws['!merges'] || [], mi = 0; - var dense = Array.isArray(ws); - if(ws["!cols"]) { - for(C = 0; C <= range.e.c; ++C) o.push(' \n'); - } - var H = "", ROWS = ws["!rows"]||[]; - for(R = 0; R < range.s.r; ++R) { - H = ROWS[R] ? ' table:style-name="ro' + ROWS[R].ods + '"' : ""; - o.push(' \n'); - } - for(; R <= range.e.r; ++R) { - H = ROWS[R] ? ' table:style-name="ro' + ROWS[R].ods + '"' : ""; - o.push(' \n'); - for(C=0; C < range.s.c; ++C) o.push(null_cell_xml); - for(; C <= range.e.c; ++C) { - var skip = false, ct = {}, textp = ""; - for(mi = 0; mi != marr.length; ++mi) { - if(marr[mi].s.c > C) continue; - if(marr[mi].s.r > R) continue; - if(marr[mi].e.c < C) continue; - if(marr[mi].e.r < R) continue; - if(marr[mi].s.c != C || marr[mi].s.r != R) skip = true; - ct['table:number-columns-spanned'] = (marr[mi].e.c - marr[mi].s.c + 1); - ct['table:number-rows-spanned'] = (marr[mi].e.r - marr[mi].s.r + 1); - break; - } - if(skip) { o.push(covered_cell_xml); continue; } - var ref = encode_cell({r:R, c:C}), cell = dense ? (ws[R]||[])[C]: ws[ref]; - if(cell && cell.f) { - ct['table:formula'] = escapexml(csf_to_ods_formula(cell.f)); - if(cell.F) { - if(cell.F.slice(0, ref.length) == ref) { - var _Fref = decode_range(cell.F); - ct['table:number-matrix-columns-spanned'] = (_Fref.e.c - _Fref.s.c + 1); - ct['table:number-matrix-rows-spanned'] = (_Fref.e.r - _Fref.s.r + 1); - } - } - } - if(!cell) { o.push(null_cell_xml); continue; } - switch(cell.t) { - case 'b': - textp = (cell.v ? 'TRUE' : 'FALSE'); - ct['office:value-type'] = "boolean"; - ct['office:boolean-value'] = (cell.v ? 'true' : 'false'); - break; - case 'n': - textp = (cell.w||String(cell.v||0)); - ct['office:value-type'] = "float"; - ct['office:value'] = (cell.v||0); - break; - case 's': case 'str': - textp = cell.v == null ? "" : cell.v; - ct['office:value-type'] = "string"; - break; - case 'd': - textp = (cell.w||(parseDate(cell.v).toISOString())); - ct['office:value-type'] = "date"; - ct['office:date-value'] = (parseDate(cell.v).toISOString()); - ct['table:style-name'] = "ce1"; - break; - //case 'e': - default: o.push(null_cell_xml); continue; - } - var text_p = write_text_p(textp); - if(cell.l && cell.l.Target) { - var _tgt = cell.l.Target; - _tgt = _tgt.charAt(0) == "#" ? "#" + csf_to_ods_3D(_tgt.slice(1)) : _tgt; - // TODO: choose correct parent path format based on link delimiters - if(_tgt.charAt(0) != "#" && !_tgt.match(/^\w+:/)) _tgt = '../' + _tgt; - text_p = writextag('text:a', text_p, {'xlink:href': _tgt.replace(/&/g, "&")}); - } - o.push(' ' + writextag('table:table-cell', writextag('text:p', text_p, {}), ct) + '\n'); - } - o.push(' \n'); - } - o.push(' \n'); - return o.join(""); - }; - - var write_automatic_styles_ods = function(o, wb) { - o.push(' \n'); - - o.push(' \n'); - o.push(' \n'); - o.push(' /\n'); - o.push(' \n'); - o.push(' /\n'); - o.push(' \n'); - o.push(' \n'); - - /* column styles */ - var cidx = 0; - wb.SheetNames.map(function(n) { return wb.Sheets[n]; }).forEach(function(ws) { - if(!ws) return; - if(ws["!cols"]) { - for(var C = 0; C < ws["!cols"].length; ++C) if(ws["!cols"][C]) { - var colobj = ws["!cols"][C]; - if(colobj.width == null && colobj.wpx == null && colobj.wch == null) continue; - process_col(colobj); - colobj.ods = cidx; - var w = ws["!cols"][C].wpx + "px"; - o.push(' \n'); - o.push(' \n'); - o.push(' \n'); - ++cidx; - } - } - }); - - /* row styles */ - var ridx = 0; - wb.SheetNames.map(function(n) { return wb.Sheets[n]; }).forEach(function(ws) { - if(!ws) return; - if(ws["!rows"]) { - for(var R = 0; R < ws["!rows"].length; ++R) if(ws["!rows"][R]) { - ws["!rows"][R].ods = ridx; - var h = ws["!rows"][R].hpx + "px"; - o.push(' \n'); - o.push(' \n'); - o.push(' \n'); - ++ridx; - } - } - }); - - /* table */ - o.push(' \n'); - o.push(' \n'); - o.push(' \n'); - - /* table cells, text */ - o.push(' \n'); - - /* page-layout */ - - o.push(' \n'); - }; - - return function wcx(wb, opts) { - var o = [XML_HEADER]; - /* 3.1.3.2 */ - var attr = wxt_helper({ - 'xmlns:office': "urn:oasis:names:tc:opendocument:xmlns:office:1.0", - 'xmlns:table': "urn:oasis:names:tc:opendocument:xmlns:table:1.0", - 'xmlns:style': "urn:oasis:names:tc:opendocument:xmlns:style:1.0", - 'xmlns:text': "urn:oasis:names:tc:opendocument:xmlns:text:1.0", - 'xmlns:draw': "urn:oasis:names:tc:opendocument:xmlns:drawing:1.0", - 'xmlns:fo': "urn:oasis:names:tc:opendocument:xmlns:xsl-fo-compatible:1.0", - 'xmlns:xlink': "http://www.w3.org/1999/xlink", - 'xmlns:dc': "http://purl.org/dc/elements/1.1/", - 'xmlns:meta': "urn:oasis:names:tc:opendocument:xmlns:meta:1.0", - 'xmlns:number': "urn:oasis:names:tc:opendocument:xmlns:datastyle:1.0", - 'xmlns:presentation': "urn:oasis:names:tc:opendocument:xmlns:presentation:1.0", - 'xmlns:svg': "urn:oasis:names:tc:opendocument:xmlns:svg-compatible:1.0", - 'xmlns:chart': "urn:oasis:names:tc:opendocument:xmlns:chart:1.0", - 'xmlns:dr3d': "urn:oasis:names:tc:opendocument:xmlns:dr3d:1.0", - 'xmlns:math': "http://www.w3.org/1998/Math/MathML", - 'xmlns:form': "urn:oasis:names:tc:opendocument:xmlns:form:1.0", - 'xmlns:script': "urn:oasis:names:tc:opendocument:xmlns:script:1.0", - 'xmlns:ooo': "http://openoffice.org/2004/office", - 'xmlns:ooow': "http://openoffice.org/2004/writer", - 'xmlns:oooc': "http://openoffice.org/2004/calc", - 'xmlns:dom': "http://www.w3.org/2001/xml-events", - 'xmlns:xforms': "http://www.w3.org/2002/xforms", - 'xmlns:xsd': "http://www.w3.org/2001/XMLSchema", - 'xmlns:xsi': "http://www.w3.org/2001/XMLSchema-instance", - 'xmlns:sheet': "urn:oasis:names:tc:opendocument:sh33tjs:1.0", - 'xmlns:rpt': "http://openoffice.org/2005/report", - 'xmlns:of': "urn:oasis:names:tc:opendocument:xmlns:of:1.2", - 'xmlns:xhtml': "http://www.w3.org/1999/xhtml", - 'xmlns:grddl': "http://www.w3.org/2003/g/data-view#", - 'xmlns:tableooo': "http://openoffice.org/2009/table", - 'xmlns:drawooo': "http://openoffice.org/2010/draw", - 'xmlns:calcext': "urn:org:documentfoundation:names:experimental:calc:xmlns:calcext:1.0", - 'xmlns:loext': "urn:org:documentfoundation:names:experimental:office:xmlns:loext:1.0", - 'xmlns:field': "urn:openoffice:names:experimental:ooo-ms-interop:xmlns:field:1.0", - 'xmlns:formx': "urn:openoffice:names:experimental:ooxml-odf-interop:xmlns:form:1.0", - 'xmlns:css3t': "http://www.w3.org/TR/css3-text/", - 'office:version': "1.2" - }); - - var fods = wxt_helper({ - 'xmlns:config': "urn:oasis:names:tc:opendocument:xmlns:config:1.0", - 'office:mimetype': "application/vnd.oasis.opendocument.spreadsheet" - }); - - if(opts.bookType == "fods") { - o.push('\n'); - o.push(write_meta_ods().replace(/office:document-meta/g, "office:meta")); - // TODO: settings (equiv of settings.xml for ODS) - } else o.push('\n'); - // o.push(' \n'); - write_automatic_styles_ods(o, wb); - o.push(' \n'); - o.push(' \n'); - for(var i = 0; i != wb.SheetNames.length; ++i) o.push(write_ws(wb.Sheets[wb.SheetNames[i]], wb, i, opts)); - o.push(' \n'); - o.push(' \n'); - if(opts.bookType == "fods") o.push(''); - else o.push(''); - return o.join(""); - }; -})(); - -function write_ods(wb, opts) { - if(opts.bookType == "fods") return write_content_ods(wb, opts); - - var zip = zip_new(); - var f = ""; - - var manifest = []; - var rdf = []; - - /* Part 3 Section 3.3 MIME Media Type */ - f = "mimetype"; - zip_add_file(zip, f, "application/vnd.oasis.opendocument.spreadsheet"); - - /* Part 1 Section 2.2 Documents */ - f = "content.xml"; - zip_add_file(zip, f, write_content_ods(wb, opts)); - manifest.push([f, "text/xml"]); - rdf.push([f, "ContentFile"]); - - /* TODO: these are hard-coded styles to satiate excel */ - f = "styles.xml"; - zip_add_file(zip, f, write_styles_ods(wb, opts)); - manifest.push([f, "text/xml"]); - rdf.push([f, "StylesFile"]); - - /* TODO: this is hard-coded to satiate excel */ - f = "meta.xml"; - zip_add_file(zip, f, XML_HEADER + write_meta_ods()); - manifest.push([f, "text/xml"]); - rdf.push([f, "MetadataFile"]); - - /* Part 3 Section 6 Metadata Manifest File */ - f = "manifest.rdf"; - zip_add_file(zip, f, write_rdf(rdf/*, opts*/)); - manifest.push([f, "application/rdf+xml"]); - - /* Part 3 Section 4 Manifest File */ - f = "META-INF/manifest.xml"; - zip_add_file(zip, f, write_manifest(manifest/*, opts*/)); - - return zip; -} - -var NUMBERS = !Object.defineProperty ? (void 0) :(function() { - var __defProp = Object.defineProperty; - var __getOwnPropDesc = Object.getOwnPropertyDescriptor; - var __getOwnPropNames = Object.getOwnPropertyNames; - var __hasOwnProp = Object.prototype.hasOwnProperty; - var __markAsModule = function(target) { - return __defProp(target, "__esModule", { value: true }); - }; - var __export = function(target, all) { - for (var name in all) - __defProp(target, name, { get: all[name], enumerable: true }); - }; - var __reExport = function(target, module, copyDefault, desc) { - if (module && typeof module === "object" || typeof module === "function") - for (var keys = __getOwnPropNames(module), i = 0, n = keys.length, key; i < n; i++) { - key = keys[i]; - if (!__hasOwnProp.call(target, key) && (copyDefault || key !== "default")) - __defProp(target, key, { get: function(k) { - return module[k]; - }.bind(null, key), enumerable: !(desc = __getOwnPropDesc(module, key)) || desc.enumerable }); - } - return target; - }; - var __toCommonJS = /* @__PURE__ */ function(cache) { - return function(module, temp) { - return cache && cache.get(module) || (temp = __reExport(__markAsModule({}), module, 1), cache && cache.set(module, temp), temp); - }; - }(typeof WeakMap !== "undefined" ? /* @__PURE__ */ new WeakMap() : 0); - - // 83_numbers.ts - var numbers_exports = {}; - __export(numbers_exports, { - parse_numbers: function() { - return numbers_default; - } - }); - - // src/util.ts - var u8_to_dataview = function(array) { - return new DataView(array.buffer, array.byteOffset, array.byteLength); - }; - var u8str = function(u8) { - return typeof TextDecoder != "undefined" ? new TextDecoder().decode(u8) : utf8read(a2s(u8)); - }; - var u8concat = function(u8a) { - var len = u8a.reduce(function(acc, x) { - return acc + x.length; - }, 0); - var out = new Uint8Array(len); - var off = 0; - u8a.forEach(function(u8) { - out.set(u8, off); - off += u8.length; - }); - return out; - }; - var popcnt = function(x) { - x -= x >> 1 & 1431655765; - x = (x & 858993459) + (x >> 2 & 858993459); - return (x + (x >> 4) & 252645135) * 16843009 >>> 24; - }; - var readDecimal128LE = function(buf, offset) { - var exp = (buf[offset + 15] & 127) << 7 | buf[offset + 14] >> 1; - var mantissa = buf[offset + 14] & 1; - for (var j = offset + 13; j >= offset; --j) - mantissa = mantissa * 256 + buf[j]; - return (buf[offset + 15] & 128 ? -mantissa : mantissa) * Math.pow(10, exp - 6176); - }; - - // src/proto.ts - function parse_varint49(buf, ptr) { - var l = ptr ? ptr[0] : 0; - var usz = buf[l] & 127; - varint: - if (buf[l++] >= 128) { - usz |= (buf[l] & 127) << 7; - if (buf[l++] < 128) - break varint; - usz |= (buf[l] & 127) << 14; - if (buf[l++] < 128) - break varint; - usz |= (buf[l] & 127) << 21; - if (buf[l++] < 128) - break varint; - usz += (buf[l] & 127) * Math.pow(2, 28); - ++l; - if (buf[l++] < 128) - break varint; - usz += (buf[l] & 127) * Math.pow(2, 35); - ++l; - if (buf[l++] < 128) - break varint; - usz += (buf[l] & 127) * Math.pow(2, 42); - ++l; - if (buf[l++] < 128) - break varint; - } - if (ptr) - ptr[0] = l; - return usz; - } - function varint_to_i32(buf) { - var l = 0, i32 = buf[l] & 127; - varint: - if (buf[l++] >= 128) { - i32 |= (buf[l] & 127) << 7; - if (buf[l++] < 128) - break varint; - i32 |= (buf[l] & 127) << 14; - if (buf[l++] < 128) - break varint; - i32 |= (buf[l] & 127) << 21; - if (buf[l++] < 128) - break varint; - i32 |= (buf[l] & 127) << 28; - } - return i32; - } - function parse_shallow(buf) { - var out = [], ptr = [0]; - while (ptr[0] < buf.length) { - var off = ptr[0]; - var num = parse_varint49(buf, ptr); - var type = num & 7; - num = Math.floor(num / 8); - var len = 0; - var res; - if (num == 0) - break; - switch (type) { - case 0: - { - var l = ptr[0]; - while (buf[ptr[0]++] >= 128) - ; - res = buf.slice(l, ptr[0]); - } - break; - case 5: - len = 4; - res = buf.slice(ptr[0], ptr[0] + len); - ptr[0] += len; - break; - case 1: - len = 8; - res = buf.slice(ptr[0], ptr[0] + len); - ptr[0] += len; - break; - case 2: - len = parse_varint49(buf, ptr); - res = buf.slice(ptr[0], ptr[0] + len); - ptr[0] += len; - break; - case 3: - case 4: - default: - throw new Error("PB Type ".concat(type, " for Field ").concat(num, " at offset ").concat(off)); - } - var v = { offset: off, data: res, type: type }; - if (out[num] == null) - out[num] = [v]; - else - out[num].push(v); - } - return out; - } - function mappa(data, cb) { - if (!data) - return []; - return data.map(function(d) { - var _a; - try { - return cb(d.data); - } catch (e) { - var m = (_a = e.message) == null ? void 0 : _a.match(/at offset (\d+)/); - if (m) - e.message = e.message.replace(/at offset (\d+)/, "at offset " + (+m[1] + d.offset)); - throw e; - } - }); - } - - // src/frame.ts - function deframe(buf) { - var out = []; - var l = 0; - while (l < buf.length) { - var t = buf[l++]; - var len = buf[l] | buf[l + 1] << 8 | buf[l + 2] << 16; - l += 3; - out.push(parse_snappy_chunk(t, buf.slice(l, l + len))); - l += len; - } - if (l !== buf.length) - throw new Error("data is not a valid framed stream!"); - return u8concat(out); - } - function parse_snappy_chunk(type, buf) { - if (type != 0) - throw new Error("Unexpected Snappy chunk type ".concat(type)); - var ptr = [0]; - var usz = parse_varint49(buf, ptr); - var chunks = []; - while (ptr[0] < buf.length) { - var tag = buf[ptr[0]] & 3; - if (tag == 0) { - var len = buf[ptr[0]++] >> 2; - if (len < 60) - ++len; - else { - var c = len - 59; - len = buf[ptr[0]]; - if (c > 1) - len |= buf[ptr[0] + 1] << 8; - if (c > 2) - len |= buf[ptr[0] + 2] << 16; - if (c > 3) - len |= buf[ptr[0] + 3] << 24; - len >>>= 0; - len++; - ptr[0] += c; - } - chunks.push(buf.slice(ptr[0], ptr[0] + len)); - ptr[0] += len; - continue; - } else { - var offset = 0, length = 0; - if (tag == 1) { - length = (buf[ptr[0]] >> 2 & 7) + 4; - offset = (buf[ptr[0]++] & 224) << 3; - offset |= buf[ptr[0]++]; - } else { - length = (buf[ptr[0]++] >> 2) + 1; - if (tag == 2) { - offset = buf[ptr[0]] | buf[ptr[0] + 1] << 8; - ptr[0] += 2; - } else { - offset = (buf[ptr[0]] | buf[ptr[0] + 1] << 8 | buf[ptr[0] + 2] << 16 | buf[ptr[0] + 3] << 24) >>> 0; - ptr[0] += 4; - } - } - chunks = [u8concat(chunks)]; - if (offset == 0) - throw new Error("Invalid offset 0"); - if (offset > chunks[0].length) - throw new Error("Invalid offset beyond length"); - if (length >= offset) { - chunks.push(chunks[0].slice(-offset)); - length -= offset; - while (length >= chunks[chunks.length - 1].length) { - chunks.push(chunks[chunks.length - 1]); - length -= chunks[chunks.length - 1].length; - } - } - chunks.push(chunks[0].slice(-offset, -offset + length)); - } - } - var o = u8concat(chunks); - if (o.length != usz) - throw new Error("Unexpected length: ".concat(o.length, " != ").concat(usz)); - return o; - } - - // src/iwa.ts - function parse_iwa(buf) { - var out = [], ptr = [0]; - while (ptr[0] < buf.length) { - var len = parse_varint49(buf, ptr); - var ai = parse_shallow(buf.slice(ptr[0], ptr[0] + len)); - ptr[0] += len; - var res = { - id: varint_to_i32(ai[1][0].data), - messages: [] - }; - ai[2].forEach(function(b) { - var mi = parse_shallow(b.data); - var fl = varint_to_i32(mi[3][0].data); - res.messages.push({ - meta: mi, - data: buf.slice(ptr[0], ptr[0] + fl) - }); - ptr[0] += fl; - }); - out.push(res); - } - return out; - } - - // src/cell.ts - function parse_old_storage(buf, sst, rsst) { - var dv = u8_to_dataview(buf); - var ctype = buf[buf[0] == 4 ? 1 : 2]; - var flags = dv.getUint32(4, true); - var data_offset = 12 + popcnt(flags & 3470) * 4; - var ridx = -1, sidx = -1, ieee = NaN, dt = new Date(2001, 0, 1); - if (flags & 512) { - ridx = dv.getUint32(data_offset, true); - data_offset += 4; - } - data_offset += popcnt(flags & 12288) * 4; - if (flags & 16) { - sidx = dv.getUint32(data_offset, true); - data_offset += 4; - } - if (flags & 32) { - ieee = dv.getFloat64(data_offset, true); - data_offset += 8; - } - if (flags & 64) { - dt.setTime(dt.getTime() + dv.getFloat64(data_offset, true) * 1e3); - data_offset += 8; - } - var ret; - switch (ctype) { - case 0: - break; - case 2: - ret = { t: "n", v: ieee }; - break; - case 3: - ret = { t: "s", v: sst[sidx] }; - break; - case 5: - ret = { t: "d", v: dt }; - break; - case 6: - ret = { t: "b", v: ieee > 0 }; - break; - case 7: - ret = { t: "n", v: ieee }; - break; - case 8: - ret = { t: "e", v: 0 }; - break; - case 9: - { - if (ridx > -1) - ret = { t: "s", v: rsst[ridx] }; - else if (sidx > -1) - ret = { t: "s", v: sst[sidx] }; - else if (!isNaN(ieee)) - ret = { t: "n", v: ieee }; - else - throw new Error("Unsupported cell type ".concat(buf.slice(0, 4))); - } - break; - default: - throw new Error("Unsupported cell type ".concat(buf.slice(0, 4))); - } - return ret; - } - function parse_storage(buf, sst, rsst) { - var dv = u8_to_dataview(buf); - var ctype = buf[1]; - var flags = dv.getUint32(8, true); - var data_offset = 12; - var ridx = -1, sidx = -1, d128 = NaN, ieee = NaN, dt = new Date(2001, 0, 1); - if (flags & 1) { - d128 = readDecimal128LE(buf, data_offset); - data_offset += 16; - } - if (flags & 2) { - ieee = dv.getFloat64(data_offset, true); - data_offset += 8; - } - if (flags & 4) { - dt.setTime(dt.getTime() + dv.getFloat64(data_offset, true) * 1e3); - data_offset += 8; - } - if (flags & 8) { - sidx = dv.getUint32(data_offset, true); - data_offset += 4; - } - if (flags & 16) { - ridx = dv.getUint32(data_offset, true); - data_offset += 4; - } - var ret; - switch (ctype) { - case 0: - break; - case 2: - ret = { t: "n", v: d128 }; - break; - case 3: - ret = { t: "s", v: sst[sidx] }; - break; - case 5: - ret = { t: "d", v: dt }; - break; - case 6: - ret = { t: "b", v: ieee > 0 }; - break; - case 7: - ret = { t: "n", v: ieee }; - break; - case 8: - ret = { t: "e", v: 0 }; - break; - case 9: - { - if (ridx > -1) - ret = { t: "s", v: rsst[ridx] }; - else - throw new Error("Unsupported cell type ".concat(ctype, " : ").concat(flags & 31, " : ").concat(buf.slice(0, 4))); - } - break; - case 10: - ret = { t: "n", v: d128 }; - break; - default: - throw new Error("Unsupported cell type ".concat(ctype, " : ").concat(flags & 31, " : ").concat(buf.slice(0, 4))); - } - return ret; - } - function parse(buf, sst, rsst) { - switch (buf[0]) { - case 3: - case 4: - return parse_old_storage(buf, sst, rsst); - case 5: - return parse_storage(buf, sst, rsst); - default: - throw new Error("Unsupported payload version ".concat(buf[0])); - } - } - - // src/numbers.ts - var encode_col = function(C) { - var s = ""; - for (++C; C; C = Math.floor((C - 1) / 26)) - s = String.fromCharCode((C - 1) % 26 + 65) + s; - return s; - }; - var encode_cell = function(c) { - return "".concat(encode_col(c.c)).concat(c.r + 1); - }; - var encode_range = function(r) { - return encode_cell(r.s) + ":" + encode_cell(r.e); - }; - var book_new = function() { - return { Sheets: {}, SheetNames: [] }; - }; - var book_append_sheet = function(wb, ws, name) { - if (!name) - for (var i = 1; i < 9999; ++i) { - if (wb.SheetNames.indexOf(name = "Sheet ".concat(i)) == -1) - break; - } - else if (wb.SheetNames.indexOf(name) > -1) - for (var i = 1; i < 9999; ++i) { - if (wb.SheetNames.indexOf("".concat(name, "_").concat(i)) == -1) { - name = "".concat(name, "_").concat(i); - break; - } - } - wb.SheetNames.push(name); - wb.Sheets[name] = ws; - }; - function parse_numbers(cfb) { - var out = []; - cfb.FullPaths.forEach(function(p) { - if (p.match(/\.iwpv2/)) - throw new Error("Unsupported password protection"); - }); - cfb.FileIndex.forEach(function(s) { - if (!s.name.match(/\.iwa$/)) - return; - var o; - try { - o = deframe(s.content); - } catch (e) { - return console.log("?? " + s.content.length + " " + (e.message || e)); - } - var packets; - try { - packets = parse_iwa(o); - } catch (e) { - return console.log("## " + (e.message || e)); - } - packets.forEach(function(packet) { - out[+packet.id] = packet.messages; - }); - }); - if (!out.length) - throw new Error("File has no messages"); - var docroot; - out.forEach(function(iwams) { - iwams.forEach(function(iwam) { - var mtype = varint_to_i32(iwam.meta[1][0].data) >>> 0; - if (mtype == 1) { - if (!docroot) - docroot = iwam; - else - throw new Error("Document has multiple roots"); - } - }); - }); - if (!docroot) - throw new Error("Cannot find Document root"); - return parse_docroot(out, docroot); - } - var numbers_default = parse_numbers; - function parse_Reference(buf) { - var pb = parse_shallow(buf); - return parse_varint49(pb[1][0].data); - } - function parse_TST_TableDataList(M, root) { - var pb = parse_shallow(root.data); - var type = varint_to_i32(pb[1][0].data); - var entries = pb[3]; - var data = []; - (entries || []).forEach(function(entry) { - var le = parse_shallow(entry.data); - var key = varint_to_i32(le[1][0].data) >>> 0; - switch (type) { - case 1: - data[key] = u8str(le[3][0].data); - break; - case 8: - { - var rt = M[parse_Reference(le[9][0].data)][0]; - var rtp = parse_shallow(rt.data); - var rtpref = M[parse_Reference(rtp[1][0].data)][0]; - var mtype = varint_to_i32(rtpref.meta[1][0].data); - if (mtype != 2001) - throw new Error("2000 unexpected reference to ".concat(mtype)); - var tswpsa = parse_shallow(rtpref.data); - data[key] = tswpsa[3].map(function(x) { - return u8str(x.data); - }).join(""); - } - break; - } - }); - return data; - } - function parse_TST_TileRowInfo(u8) { - var _a, _b, _c, _d, _e, _f, _g, _h, _i, _j; - var pb = parse_shallow(u8); - var R = varint_to_i32(pb[1][0].data) >>> 0; - var pre_bnc = (_b = (_a = pb[3]) == null ? void 0 : _a[0]) == null ? void 0 : _b.data; - var pre_bnc_offsets = ((_d = (_c = pb[4]) == null ? void 0 : _c[0]) == null ? void 0 : _d.data) && u8_to_dataview(pb[4][0].data); - var storage = (_f = (_e = pb[6]) == null ? void 0 : _e[0]) == null ? void 0 : _f.data; - var storage_offsets = ((_h = (_g = pb[7]) == null ? void 0 : _g[0]) == null ? void 0 : _h.data) && u8_to_dataview(pb[7][0].data); - var wide_offsets = ((_j = (_i = pb[8]) == null ? void 0 : _i[0]) == null ? void 0 : _j.data) && varint_to_i32(pb[8][0].data) > 0 || false; - var width = wide_offsets ? 4 : 1; - var cells = []; - var off = 0; - for (var C = 0; C < pre_bnc_offsets.byteLength / 2; ++C) { - if (storage && storage_offsets) { - off = storage_offsets.getUint16(C * 2, true) * width; - if (off < storage.length) { - cells[C] = storage.subarray(off, storage_offsets.getUint16(C * 2 + 2, true) * width); - continue; - } - } - if (pre_bnc && pre_bnc_offsets) { - off = pre_bnc_offsets.getUint16(C * 2, true) * width; - if (off < pre_bnc.length) - cells[C] = pre_bnc.subarray(off, pre_bnc_offsets.getUint16(C * 2 + 2, true) * width); - } - } - return { R: R, cells: cells }; - } - function parse_TST_Tile(M, root) { - var pb = parse_shallow(root.data); - var ri = mappa(pb[5], parse_TST_TileRowInfo); - return ri.reduce(function(acc, x) { - if (!acc[x.R]) - acc[x.R] = []; - x.cells.forEach(function(cell, C) { - if (acc[x.R][C]) - throw new Error("Duplicate cell r=".concat(x.R, " c=").concat(C)); - acc[x.R][C] = cell; - }); - return acc; - }, []); - } - function parse_TST_TableModelArchive(M, root, ws) { - var _a; - var pb = parse_shallow(root.data); - var range = { s: { r: 0, c: 0 }, e: { r: 0, c: 0 } }; - range.e.r = (varint_to_i32(pb[6][0].data) >>> 0) - 1; - if (range.e.r < 0) - throw new Error("Invalid row varint ".concat(pb[6][0].data)); - range.e.c = (varint_to_i32(pb[7][0].data) >>> 0) - 1; - if (range.e.c < 0) - throw new Error("Invalid col varint ".concat(pb[7][0].data)); - ws["!ref"] = encode_range(range); - { - var store = parse_shallow(pb[4][0].data); - var sst = parse_TST_TableDataList(M, M[parse_Reference(store[4][0].data)][0]); - var rsst = ((_a = store[17]) == null ? void 0 : _a[0]) ? parse_TST_TableDataList(M, M[parse_Reference(store[17][0].data)][0]) : []; - { - var tile = parse_shallow(store[3][0].data); - var tiles = []; - tile[1].forEach(function(t) { - var tl = parse_shallow(t.data); - var ref = M[parse_Reference(tl[2][0].data)][0]; - var mtype = varint_to_i32(ref.meta[1][0].data); - if (mtype != 6002) - throw new Error("6001 unexpected reference to ".concat(mtype)); - tiles.push({ id: varint_to_i32(tl[1][0].data), ref: parse_TST_Tile(M, ref) }); - }); - tiles.forEach(function(tile2) { - tile2.ref.forEach(function(row, R) { - row.forEach(function(buf, C) { - var addr = encode_cell({ r: R, c: C }); - var res = parse(buf, sst, rsst); - if (res) - ws[addr] = res; - }); - }); - }); - } - } - } - function parse_TST_TableInfoArchive(M, root) { - var pb = parse_shallow(root.data); - var out = { "!ref": "A1" }; - var tableref = M[parse_Reference(pb[2][0].data)]; - var mtype = varint_to_i32(tableref[0].meta[1][0].data); - if (mtype != 6001) - throw new Error("6000 unexpected reference to ".concat(mtype)); - parse_TST_TableModelArchive(M, tableref[0], out); - return out; - } - function parse_sheetroot(M, root) { - var _a; - var pb = parse_shallow(root.data); - var out = { - name: ((_a = pb[1]) == null ? void 0 : _a[0]) ? u8str(pb[1][0].data) : "", - sheets: [] - }; - var shapeoffs = mappa(pb[2], parse_Reference); - shapeoffs.forEach(function(off) { - M[off].forEach(function(m) { - var mtype = varint_to_i32(m.meta[1][0].data); - if (mtype == 6e3) - out.sheets.push(parse_TST_TableInfoArchive(M, m)); - }); - }); - return out; - } - function parse_docroot(M, root) { - var out = book_new(); - var pb = parse_shallow(root.data); - var sheetoffs = mappa(pb[1], parse_Reference); - sheetoffs.forEach(function(off) { - M[off].forEach(function(m) { - var mtype = varint_to_i32(m.meta[1][0].data); - if (mtype == 2) { - var root2 = parse_sheetroot(M, m); - root2.sheets.forEach(function(sheet) { - book_append_sheet(out, sheet, root2.name); - }); - } - }); - }); - if (out.SheetNames.length == 0) - throw new Error("Empty NUMBERS file"); - return out; - } - return __toCommonJS(numbers_exports); -})(); -/*! sheetjs (C) 2013-present SheetJS -- http://sheetjs.com */ -function fix_opts_func(defaults) { - return function fix_opts(opts) { - for(var i = 0; i != defaults.length; ++i) { - var d = defaults[i]; - if(opts[d[0]] === undefined) opts[d[0]] = d[1]; - if(d[2] === 'n') opts[d[0]] = Number(opts[d[0]]); - } - }; -} - -var fix_read_opts = function(opts) { -fix_opts_func([ - ['cellNF', false], /* emit cell number format string as .z */ - ['cellHTML', true], /* emit html string as .h */ - ['cellFormula', true], /* emit formulae as .f */ - ['cellStyles', false], /* emits style/theme as .s */ - ['cellText', true], /* emit formatted text as .w */ - ['cellDates', false], /* emit date cells with type `d` */ - - ['sheetStubs', false], /* emit empty cells */ - ['sheetRows', 0, 'n'], /* read n rows (0 = read all rows) */ - - ['bookDeps', false], /* parse calculation chains */ - ['bookSheets', false], /* only try to get sheet names (no Sheets) */ - ['bookProps', false], /* only try to get properties (no Sheets) */ - ['bookFiles', false], /* include raw file structure (keys, files, cfb) */ - ['bookVBA', false], /* include vba raw data (vbaraw) */ - - ['password',''], /* password */ - ['WTF', false] /* WTF mode (throws errors) */ -])(opts); -}; - -var fix_write_opts = fix_opts_func([ - ['cellDates', false], /* write date cells with type `d` */ - - ['bookSST', false], /* Generate Shared String Table */ - - ['bookType', 'xlsx'], /* Type of workbook (xlsx/m/b) */ - - ['compression', false], /* Use file compression */ - - ['WTF', false] /* WTF mode (throws errors) */ -]); -function get_sheet_type(n) { - if(RELS.WS.indexOf(n) > -1) return "sheet"; - if(RELS.CS && n == RELS.CS) return "chart"; - if(RELS.DS && n == RELS.DS) return "dialog"; - if(RELS.MS && n == RELS.MS) return "macro"; - return (n && n.length) ? n : "sheet"; -} -function safe_parse_wbrels(wbrels, sheets) { - if(!wbrels) return 0; - try { - wbrels = sheets.map(function pwbr(w) { if(!w.id) w.id = w.strRelID; return [w.name, wbrels['!id'][w.id].Target, get_sheet_type(wbrels['!id'][w.id].Type)]; }); - } catch(e) { return null; } - return !wbrels || wbrels.length === 0 ? null : wbrels; -} - -function safe_parse_sheet(zip, path, relsPath, sheet, idx, sheetRels, sheets, stype, opts, wb, themes, styles) { - try { - sheetRels[sheet]=parse_rels(getzipstr(zip, relsPath, true), path); - var data = getzipdata(zip, path); - var _ws; - switch(stype) { - case 'sheet': _ws = parse_ws(data, path, idx, opts, sheetRels[sheet], wb, themes, styles); break; - case 'chart': _ws = parse_cs(data, path, idx, opts, sheetRels[sheet], wb, themes, styles); - if(!_ws || !_ws['!drawel']) break; - var dfile = resolve_path(_ws['!drawel'].Target, path); - var drelsp = get_rels_path(dfile); - var draw = parse_drawing(getzipstr(zip, dfile, true), parse_rels(getzipstr(zip, drelsp, true), dfile)); - var chartp = resolve_path(draw, dfile); - var crelsp = get_rels_path(chartp); - _ws = parse_chart(getzipstr(zip, chartp, true), chartp, opts, parse_rels(getzipstr(zip, crelsp, true), chartp), wb, _ws); - break; - case 'macro': _ws = parse_ms(data, path, idx, opts, sheetRels[sheet], wb, themes, styles); break; - case 'dialog': _ws = parse_ds(data, path, idx, opts, sheetRels[sheet], wb, themes, styles); break; - default: throw new Error("Unrecognized sheet type " + stype); - } - sheets[sheet] = _ws; - - /* scan rels for comments */ - var comments = []; - if(sheetRels && sheetRels[sheet]) keys(sheetRels[sheet]).forEach(function(n) { - if(sheetRels[sheet][n].Type == RELS.CMNT) { - var dfile = resolve_path(sheetRels[sheet][n].Target, path); - comments = parse_cmnt(getzipdata(zip, dfile, true), dfile, opts); - if(!comments || !comments.length) return; - sheet_insert_comments(_ws, comments); - } - }); - } catch(e) { if(opts.WTF) throw e; } -} - -function strip_front_slash(x) { return x.charAt(0) == '/' ? x.slice(1) : x; } - -function parse_zip(zip, opts) { - make_ssf(SSF); - opts = opts || {}; - fix_read_opts(opts); - - /* OpenDocument Part 3 Section 2.2.1 OpenDocument Package */ - if(safegetzipfile(zip, 'META-INF/manifest.xml')) return parse_ods(zip, opts); - /* UOC */ - if(safegetzipfile(zip, 'objectdata.xml')) return parse_ods(zip, opts); - /* Numbers */ - if(safegetzipfile(zip, 'Index/Document.iwa')) { - if(typeof Uint8Array == "undefined") throw new Error('NUMBERS file parsing requires Uint8Array support'); - if(typeof NUMBERS != "undefined") { - if(zip.FileIndex) return NUMBERS.parse_numbers(zip); - var _zip = CFB.utils.cfb_new(); - zipentries(zip).forEach(function(e) { zip_add_file(_zip, e, getzipbin(zip, e)); }); - return NUMBERS.parse_numbers(_zip); - } - throw new Error('Unsupported NUMBERS file'); - } - if(!safegetzipfile(zip, '[Content_Types].xml')) { - if(safegetzipfile(zip, 'index.xml.gz')) throw new Error('Unsupported NUMBERS 08 file'); - if(safegetzipfile(zip, 'index.xml')) throw new Error('Unsupported NUMBERS 09 file'); - throw new Error('Unsupported ZIP file'); - } - - var entries = zipentries(zip); - var dir = parse_ct((getzipstr(zip, '[Content_Types].xml'))); - var xlsb = false; - var sheets, binname; - if(dir.workbooks.length === 0) { - binname = "xl/workbook.xml"; - if(getzipdata(zip,binname, true)) dir.workbooks.push(binname); - } - if(dir.workbooks.length === 0) { - binname = "xl/workbook.bin"; - if(!getzipdata(zip,binname,true)) throw new Error("Could not find workbook"); - dir.workbooks.push(binname); - xlsb = true; - } - if(dir.workbooks[0].slice(-3) == "bin") xlsb = true; - - var themes = ({}); - var styles = ({}); - if(!opts.bookSheets && !opts.bookProps) { - strs = []; - if(dir.sst) try { strs=parse_sst(getzipdata(zip, strip_front_slash(dir.sst)), dir.sst, opts); } catch(e) { if(opts.WTF) throw e; } - - if(opts.cellStyles && dir.themes.length) themes = parse_theme(getzipstr(zip, dir.themes[0].replace(/^\//,''), true)||"",dir.themes[0], opts); - - if(dir.style) styles = parse_sty(getzipdata(zip, strip_front_slash(dir.style)), dir.style, themes, opts); - } - - /*var externbooks = */dir.links.map(function(link) { - try { - var rels = parse_rels(getzipstr(zip, get_rels_path(strip_front_slash(link))), link); - return parse_xlink(getzipdata(zip, strip_front_slash(link)), rels, link, opts); - } catch(e) {} - }); - - var wb = parse_wb(getzipdata(zip, strip_front_slash(dir.workbooks[0])), dir.workbooks[0], opts); - - var props = {}, propdata = ""; - - if(dir.coreprops.length) { - propdata = getzipdata(zip, strip_front_slash(dir.coreprops[0]), true); - if(propdata) props = parse_core_props(propdata); - if(dir.extprops.length !== 0) { - propdata = getzipdata(zip, strip_front_slash(dir.extprops[0]), true); - if(propdata) parse_ext_props(propdata, props, opts); - } - } - - var custprops = {}; - if(!opts.bookSheets || opts.bookProps) { - if (dir.custprops.length !== 0) { - propdata = getzipstr(zip, strip_front_slash(dir.custprops[0]), true); - if(propdata) custprops = parse_cust_props(propdata, opts); - } - } - - var out = ({}); - if(opts.bookSheets || opts.bookProps) { - if(wb.Sheets) sheets = wb.Sheets.map(function pluck(x){ return x.name; }); - else if(props.Worksheets && props.SheetNames.length > 0) sheets=props.SheetNames; - if(opts.bookProps) { out.Props = props; out.Custprops = custprops; } - if(opts.bookSheets && typeof sheets !== 'undefined') out.SheetNames = sheets; - if(opts.bookSheets ? out.SheetNames : opts.bookProps) return out; - } - sheets = {}; - - var deps = {}; - if(opts.bookDeps && dir.calcchain) deps=parse_cc(getzipdata(zip, strip_front_slash(dir.calcchain)),dir.calcchain,opts); - - var i=0; - var sheetRels = ({}); - var path, relsPath; - - { - var wbsheets = wb.Sheets; - props.Worksheets = wbsheets.length; - props.SheetNames = []; - for(var j = 0; j != wbsheets.length; ++j) { - props.SheetNames[j] = wbsheets[j].name; - } - } - - var wbext = xlsb ? "bin" : "xml"; - var wbrelsi = dir.workbooks[0].lastIndexOf("/"); - var wbrelsfile = (dir.workbooks[0].slice(0, wbrelsi+1) + "_rels/" + dir.workbooks[0].slice(wbrelsi+1) + ".rels").replace(/^\//,""); - if(!safegetzipfile(zip, wbrelsfile)) wbrelsfile = 'xl/_rels/workbook.' + wbext + '.rels'; - var wbrels = parse_rels(getzipstr(zip, wbrelsfile, true), wbrelsfile); - if(wbrels) wbrels = safe_parse_wbrels(wbrels, wb.Sheets); - - /* Numbers iOS hack */ - var nmode = (getzipdata(zip,"xl/worksheets/sheet.xml",true))?1:0; - wsloop: for(i = 0; i != props.Worksheets; ++i) { - var stype = "sheet"; - if(wbrels && wbrels[i]) { - path = 'xl/' + (wbrels[i][1]).replace(/[\/]?xl\//, ""); - if(!safegetzipfile(zip, path)) path = wbrels[i][1]; - if(!safegetzipfile(zip, path)) path = wbrelsfile.replace(/_rels\/.*$/,"") + wbrels[i][1]; - stype = wbrels[i][2]; - } else { - path = 'xl/worksheets/sheet'+(i+1-nmode)+"." + wbext; - path = path.replace(/sheet0\./,"sheet."); - } - relsPath = path.replace(/^(.*)(\/)([^\/]*)$/, "$1/_rels/$3.rels"); - if(opts && opts.sheets != null) switch(typeof opts.sheets) { - case "number": if(i != opts.sheets) continue wsloop; break; - case "string": if(props.SheetNames[i].toLowerCase() != opts.sheets.toLowerCase()) continue wsloop; break; - default: if(Array.isArray && Array.isArray(opts.sheets)) { - var snjseen = false; - for(var snj = 0; snj != opts.sheets.length; ++snj) { - if(typeof opts.sheets[snj] == "number" && opts.sheets[snj] == i) snjseen=1; - if(typeof opts.sheets[snj] == "string" && opts.sheets[snj].toLowerCase() == props.SheetNames[i].toLowerCase()) snjseen = 1; - } - if(!snjseen) continue wsloop; - } - } - safe_parse_sheet(zip, path, relsPath, props.SheetNames[i], i, sheetRels, sheets, stype, opts, wb, themes, styles); - } - - out = ({ - Directory: dir, - Workbook: wb, - Props: props, - Custprops: custprops, - Deps: deps, - Sheets: sheets, - SheetNames: props.SheetNames, - Strings: strs, - Styles: styles, - Themes: themes, - SSF: SSF.get_table() - }); - if(opts && opts.bookFiles) { - if(zip.files) { - out.keys = entries; - out.files = zip.files; - } else { - out.keys = []; - out.files = {}; - zip.FullPaths.forEach(function(p, idx) { - p = p.replace(/^Root Entry[\/]/, ""); - out.keys.push(p); - out.files[p] = zip.FileIndex[idx]; - }); - } - } - if(opts && opts.bookVBA) { - if(dir.vba.length > 0) out.vbaraw = getzipdata(zip,strip_front_slash(dir.vba[0]),true); - else if(dir.defaults && dir.defaults.bin === CT_VBA) out.vbaraw = getzipdata(zip, 'xl/vbaProject.bin',true); - } - return out; -} - -/* [MS-OFFCRYPTO] 2.1.1 */ -function parse_xlsxcfb(cfb, _opts) { - var opts = _opts || {}; - var f = 'Workbook', data = CFB.find(cfb, f); - try { - f = '/!DataSpaces/Version'; - data = CFB.find(cfb, f); if(!data || !data.content) throw new Error("ECMA-376 Encrypted file missing " + f); - /*var version = */parse_DataSpaceVersionInfo(data.content); - - /* 2.3.4.1 */ - f = '/!DataSpaces/DataSpaceMap'; - data = CFB.find(cfb, f); if(!data || !data.content) throw new Error("ECMA-376 Encrypted file missing " + f); - var dsm = parse_DataSpaceMap(data.content); - if(dsm.length !== 1 || dsm[0].comps.length !== 1 || dsm[0].comps[0].t !== 0 || dsm[0].name !== "StrongEncryptionDataSpace" || dsm[0].comps[0].v !== "EncryptedPackage") - throw new Error("ECMA-376 Encrypted file bad " + f); - - /* 2.3.4.2 */ - f = '/!DataSpaces/DataSpaceInfo/StrongEncryptionDataSpace'; - data = CFB.find(cfb, f); if(!data || !data.content) throw new Error("ECMA-376 Encrypted file missing " + f); - var seds = parse_DataSpaceDefinition(data.content); - if(seds.length != 1 || seds[0] != "StrongEncryptionTransform") - throw new Error("ECMA-376 Encrypted file bad " + f); - - /* 2.3.4.3 */ - f = '/!DataSpaces/TransformInfo/StrongEncryptionTransform/!Primary'; - data = CFB.find(cfb, f); if(!data || !data.content) throw new Error("ECMA-376 Encrypted file missing " + f); - /*var hdr = */parse_Primary(data.content); - } catch(e) {} - - f = '/EncryptionInfo'; - data = CFB.find(cfb, f); if(!data || !data.content) throw new Error("ECMA-376 Encrypted file missing " + f); - var einfo = parse_EncryptionInfo(data.content); - - /* 2.3.4.4 */ - f = '/EncryptedPackage'; - data = CFB.find(cfb, f); if(!data || !data.content) throw new Error("ECMA-376 Encrypted file missing " + f); - -/*global decrypt_agile */ -if(einfo[0] == 0x04 && typeof decrypt_agile !== 'undefined') return decrypt_agile(einfo[1], data.content, opts.password || "", opts); -/*global decrypt_std76 */ -if(einfo[0] == 0x02 && typeof decrypt_std76 !== 'undefined') return decrypt_std76(einfo[1], data.content, opts.password || "", opts); - throw new Error("File is password-protected"); -} - -function write_zip(wb, opts) { - if(opts.bookType == "ods") return write_ods(wb, opts); - return write_zip_xlsxb(wb, opts); -} - -function write_zip_xlsxb(wb, opts) { - _shapeid = 1024; - if(wb && !wb.SSF) { - wb.SSF = SSF.get_table(); - } - if(wb && wb.SSF) { - make_ssf(SSF); SSF.load_table(wb.SSF); - // $FlowIgnore - opts.revssf = evert_num(wb.SSF); opts.revssf[wb.SSF[65535]] = 0; - opts.ssf = wb.SSF; - } - opts.rels = {}; opts.wbrels = {}; - opts.Strings = []; opts.Strings.Count = 0; opts.Strings.Unique = 0; - if(browser_has_Map) opts.revStrings = new Map(); - else { opts.revStrings = {}; opts.revStrings.foo = []; delete opts.revStrings.foo; } - var wbext = opts.bookType == "xlsb" ? "bin" : "xml"; - var vbafmt = VBAFMTS.indexOf(opts.bookType) > -1; - var ct = new_ct(); - fix_write_opts(opts = opts || {}); - var zip = zip_new(); - var f = "", rId = 0; - - opts.cellXfs = []; - get_cell_style(opts.cellXfs, {}, {revssf:{"General":0}}); - - if(!wb.Props) wb.Props = {}; - - f = "docProps/core.xml"; - zip_add_file(zip, f, write_core_props(wb.Props, opts)); - ct.coreprops.push(f); - add_rels(opts.rels, 2, f, RELS.CORE_PROPS); - -f = "docProps/app.xml"; - if(wb.Props && wb.Props.SheetNames){/* empty */} - else if(!wb.Workbook || !wb.Workbook.Sheets) wb.Props.SheetNames = wb.SheetNames; - else { - var _sn = []; - for(var _i = 0; _i < wb.SheetNames.length; ++_i) - if((wb.Workbook.Sheets[_i]||{}).Hidden != 2) _sn.push(wb.SheetNames[_i]); - wb.Props.SheetNames = _sn; - } - wb.Props.Worksheets = wb.Props.SheetNames.length; - zip_add_file(zip, f, write_ext_props(wb.Props, opts)); - ct.extprops.push(f); - add_rels(opts.rels, 3, f, RELS.EXT_PROPS); - - if(wb.Custprops !== wb.Props && keys(wb.Custprops||{}).length > 0) { - f = "docProps/custom.xml"; - zip_add_file(zip, f, write_cust_props(wb.Custprops, opts)); - ct.custprops.push(f); - add_rels(opts.rels, 4, f, RELS.CUST_PROPS); - } - - for(rId=1;rId <= wb.SheetNames.length; ++rId) { - var wsrels = {'!id':{}}; - var ws = wb.Sheets[wb.SheetNames[rId-1]]; - var _type = (ws || {})["!type"] || "sheet"; - switch(_type) { - case "chart": - /* falls through */ - default: - f = "xl/worksheets/sheet" + rId + "." + wbext; - zip_add_file(zip, f, write_ws(rId-1, f, opts, wb, wsrels)); - ct.sheets.push(f); - add_rels(opts.wbrels, -1, "worksheets/sheet" + rId + "." + wbext, RELS.WS[0]); - } - - if(ws) { - var comments = ws['!comments']; - var need_vml = false; - if(comments && comments.length > 0) { - var cf = "xl/comments" + rId + "." + wbext; - zip_add_file(zip, cf, write_cmnt(comments, cf, opts)); - ct.comments.push(cf); - add_rels(wsrels, -1, "../comments" + rId + "." + wbext, RELS.CMNT); - need_vml = true; - } - if(ws['!legacy']) { - if(need_vml) zip_add_file(zip, "xl/drawings/vmlDrawing" + (rId) + ".vml", write_comments_vml(rId, ws['!comments'])); - } - delete ws['!comments']; - delete ws['!legacy']; - } - - if(wsrels['!id'].rId1) zip_add_file(zip, get_rels_path(f), write_rels(wsrels)); - } - - if(opts.Strings != null && opts.Strings.length > 0) { - f = "xl/sharedStrings." + wbext; - zip_add_file(zip, f, write_sst(opts.Strings, f, opts)); - ct.strs.push(f); - add_rels(opts.wbrels, -1, "sharedStrings." + wbext, RELS.SST); - } - - f = "xl/workbook." + wbext; - zip_add_file(zip, f, write_wb(wb, f, opts)); - ct.workbooks.push(f); - add_rels(opts.rels, 1, f, RELS.WB); - - /* TODO: something more intelligent with themes */ - - f = "xl/theme/theme1.xml"; - zip_add_file(zip, f, write_theme(wb.Themes, opts)); - ct.themes.push(f); - add_rels(opts.wbrels, -1, "theme/theme1.xml", RELS.THEME); - - /* TODO: something more intelligent with styles */ - - f = "xl/styles." + wbext; - zip_add_file(zip, f, write_sty(wb, f, opts)); - ct.styles.push(f); - add_rels(opts.wbrels, -1, "styles." + wbext, RELS.STY); - - if(wb.vbaraw && vbafmt) { - f = "xl/vbaProject.bin"; - zip_add_file(zip, f, wb.vbaraw); - ct.vba.push(f); - add_rels(opts.wbrels, -1, "vbaProject.bin", RELS.VBA); - } - - zip_add_file(zip, "[Content_Types].xml", write_ct(ct, opts)); - zip_add_file(zip, '_rels/.rels', write_rels(opts.rels)); - zip_add_file(zip, 'xl/_rels/workbook.' + wbext + '.rels', write_rels(opts.wbrels)); - - delete opts.revssf; delete opts.ssf; - return zip; -} - - -function write_zip_xlsx(wb, opts) { - _shapeid = 1024; - if(wb && !wb.SSF) { - wb.SSF = SSF.get_table(); - } - if(wb && wb.SSF) { - make_ssf(SSF); SSF.load_table(wb.SSF); - // $FlowIgnore - opts.revssf = evert_num(wb.SSF); opts.revssf[wb.SSF[65535]] = 0; - opts.ssf = wb.SSF; - } - opts.rels = {}; opts.wbrels = {}; - opts.Strings = []; opts.Strings.Count = 0; opts.Strings.Unique = 0; - if(browser_has_Map) opts.revStrings = new Map(); - else { opts.revStrings = {}; opts.revStrings.foo = []; delete opts.revStrings.foo; } - var wbext = "xml"; - var vbafmt = VBAFMTS.indexOf(opts.bookType) > -1; - var ct = new_ct(); - fix_write_opts(opts = opts || {}); - var zip = zip_new(); - var f = "", rId = 0; - - opts.cellXfs = []; - get_cell_style(opts.cellXfs, {}, {revssf:{"General":0}}); - - if(!wb.Props) wb.Props = {}; - - f = "docProps/core.xml"; - zip_add_file(zip, f, write_core_props(wb.Props, opts)); - ct.coreprops.push(f); - add_rels(opts.rels, 2, f, RELS.CORE_PROPS); - -f = "docProps/app.xml"; - if(wb.Props && wb.Props.SheetNames){/* empty */} - else if(!wb.Workbook || !wb.Workbook.Sheets) wb.Props.SheetNames = wb.SheetNames; - else { - var _sn = []; - for(var _i = 0; _i < wb.SheetNames.length; ++_i) - if((wb.Workbook.Sheets[_i]||{}).Hidden != 2) _sn.push(wb.SheetNames[_i]); - wb.Props.SheetNames = _sn; - } - wb.Props.Worksheets = wb.Props.SheetNames.length; - zip_add_file(zip, f, write_ext_props(wb.Props, opts)); - ct.extprops.push(f); - add_rels(opts.rels, 3, f, RELS.EXT_PROPS); - - if(wb.Custprops !== wb.Props && keys(wb.Custprops||{}).length > 0) { - f = "docProps/custom.xml"; - zip_add_file(zip, f, write_cust_props(wb.Custprops, opts)); - ct.custprops.push(f); - add_rels(opts.rels, 4, f, RELS.CUST_PROPS); - } - - for(rId=1;rId <= wb.SheetNames.length; ++rId) { - var wsrels = {'!id':{}}; - var ws = wb.Sheets[wb.SheetNames[rId-1]]; - var _type = (ws || {})["!type"] || "sheet"; - switch(_type) { - case "chart": - /* falls through */ - default: - f = "xl/worksheets/sheet" + rId + "." + wbext; - zip_add_file(zip, f, write_ws_xml(rId-1, opts, wb, wsrels)); - ct.sheets.push(f); - add_rels(opts.wbrels, -1, "worksheets/sheet" + rId + "." + wbext, RELS.WS[0]); - } - - if(ws) { - var comments = ws['!comments']; - var need_vml = false; - if(comments && comments.length > 0) { - var cf = "xl/comments" + rId + "." + wbext; - zip_add_file(zip, cf, write_comments_xml(comments, opts)); - ct.comments.push(cf); - add_rels(wsrels, -1, "../comments" + rId + "." + wbext, RELS.CMNT); - need_vml = true; - } - if(ws['!legacy']) { - if(need_vml) zip_add_file(zip, "xl/drawings/vmlDrawing" + (rId) + ".vml", write_comments_vml(rId, ws['!comments'])); - } - delete ws['!comments']; - delete ws['!legacy']; - } - - if(wsrels['!id'].rId1) zip_add_file(zip, get_rels_path(f), write_rels(wsrels)); - } - - if(opts.Strings != null && opts.Strings.length > 0) { - f = "xl/sharedStrings." + wbext; - zip_add_file(zip, f, write_sst_xml(opts.Strings, opts)); - ct.strs.push(f); - add_rels(opts.wbrels, -1, "sharedStrings." + wbext, RELS.SST); - } - - f = "xl/workbook." + wbext; - zip_add_file(zip, f, write_wb_xml(wb, opts)); - ct.workbooks.push(f); - add_rels(opts.rels, 1, f, RELS.WB); - - /* TODO: something more intelligent with themes */ - - f = "xl/theme/theme1.xml"; - zip_add_file(zip, f, write_theme(wb.Themes, opts)); - ct.themes.push(f); - add_rels(opts.wbrels, -1, "theme/theme1.xml", RELS.THEME); - - /* TODO: something more intelligent with styles */ - - f = "xl/styles." + wbext; - zip_add_file(zip, f, write_sty_xml(wb, opts)); - ct.styles.push(f); - add_rels(opts.wbrels, -1, "styles." + wbext, RELS.STY); - - if(wb.vbaraw && vbafmt) { - f = "xl/vbaProject.bin"; - zip_add_file(zip, f, wb.vbaraw); - ct.vba.push(f); - add_rels(opts.wbrels, -1, "vbaProject.bin", RELS.VBA); - } - - zip_add_file(zip, "[Content_Types].xml", write_ct(ct, opts)); - zip_add_file(zip, '_rels/.rels', write_rels(opts.rels)); - zip_add_file(zip, 'xl/_rels/workbook.' + wbext + '.rels', write_rels(opts.wbrels)); - - delete opts.revssf; delete opts.ssf; - return zip; -} - -function firstbyte(f,o) { - var x = ""; - switch((o||{}).type || "base64") { - case 'buffer': return [f[0], f[1], f[2], f[3], f[4], f[5], f[6], f[7]]; - case 'base64': x = Base64.decode(f.slice(0,12)); break; - case 'binary': x = f; break; - case 'array': return [f[0], f[1], f[2], f[3], f[4], f[5], f[6], f[7]]; - default: throw new Error("Unrecognized type " + (o && o.type || "undefined")); - } - return [x.charCodeAt(0), x.charCodeAt(1), x.charCodeAt(2), x.charCodeAt(3), x.charCodeAt(4), x.charCodeAt(5), x.charCodeAt(6), x.charCodeAt(7)]; -} - -function read_cfb(cfb, opts) { - if(CFB.find(cfb, "EncryptedPackage")) return parse_xlsxcfb(cfb, opts); - return parse_xlscfb(cfb, opts); -} - -function read_zip(data, opts) { - var zip, d = data; - var o = opts||{}; - if(!o.type) o.type = (has_buf && Buffer.isBuffer(data)) ? "buffer" : "base64"; - zip = zip_read(d, o); - return parse_zip(zip, o); -} - -function read_plaintext(data, o) { - var i = 0; - main: while(i < data.length) switch(data.charCodeAt(i)) { - case 0x0A: case 0x0D: case 0x20: ++i; break; - case 0x3C: return parse_xlml(data.slice(i),o); - default: break main; - } - return PRN.to_workbook(data, o); -} - -function read_plaintext_raw(data, o) { - var str = "", bytes = firstbyte(data, o); - switch(o.type) { - case 'base64': str = Base64.decode(data); break; - case 'binary': str = data; break; - case 'buffer': str = data.toString('binary'); break; - case 'array': str = cc2str(data); break; - default: throw new Error("Unrecognized type " + o.type); - } - if(bytes[0] == 0xEF && bytes[1] == 0xBB && bytes[2] == 0xBF) str = utf8read(str); - return read_plaintext(str, o); -} - -function read_utf16(data, o) { - var d = data; - if(o.type == 'base64') d = Base64.decode(d); - d = cptable.utils.decode(1200, d.slice(2), 'str'); - o.type = "binary"; - return read_plaintext(d, o); -} - -function bstrify(data) { - return !data.match(/[^\x00-\x7F]/) ? data : utf8write(data); -} - -function read_prn(data, d, o, str) { - if(str) { o.type = "string"; return PRN.to_workbook(data, o); } - return PRN.to_workbook(d, o); -} - -function readSync(data, opts) { - reset_cp(); - var o = opts||{}; - if(typeof ArrayBuffer !== 'undefined' && data instanceof ArrayBuffer) return readSync(new Uint8Array(data), (o = dup(o), o.type = "array", o)); - if(typeof Uint8Array !== 'undefined' && data instanceof Uint8Array && !o.type) o.type = typeof Deno !== "undefined" ? "buffer" : "array"; - var d = data, n = [0,0,0,0], str = false; - if(o.cellStyles) { o.cellNF = true; o.sheetStubs = true; } - _ssfopts = {}; - if(o.dateNF) _ssfopts.dateNF = o.dateNF; - if(!o.type) o.type = (has_buf && Buffer.isBuffer(data)) ? "buffer" : "base64"; - if(o.type == "file") { o.type = has_buf ? "buffer" : "binary"; d = read_binary(data); if(typeof Uint8Array !== 'undefined' && !has_buf) o.type = "array"; } - if(o.type == "string") { str = true; o.type = "binary"; o.codepage = 65001; d = bstrify(data); } - if(o.type == 'array' && typeof Uint8Array !== 'undefined' && data instanceof Uint8Array && typeof ArrayBuffer !== 'undefined') { - // $FlowIgnore - var ab=new ArrayBuffer(3), vu=new Uint8Array(ab); vu.foo="bar"; - // $FlowIgnore - if(!vu.foo) {o=dup(o); o.type='array'; return readSync(ab2a(d), o);} - } - switch((n = firstbyte(d, o))[0]) { - case 0xD0: if(n[1] === 0xCF && n[2] === 0x11 && n[3] === 0xE0 && n[4] === 0xA1 && n[5] === 0xB1 && n[6] === 0x1A && n[7] === 0xE1) return read_cfb(CFB.read(d, o), o); break; - case 0x09: if(n[1] <= 0x08) return parse_xlscfb(d, o); break; - case 0x3C: return parse_xlml(d, o); - case 0x49: - if(n[1] === 0x49 && n[2] === 0x2a && n[3] === 0x00) throw new Error("TIFF Image File is not a spreadsheet"); - if(n[1] === 0x44) return read_wb_ID(d, o); - break; - case 0x54: if(n[1] === 0x41 && n[2] === 0x42 && n[3] === 0x4C) return DIF.to_workbook(d, o); break; - case 0x50: return (n[1] === 0x4B && n[2] < 0x09 && n[3] < 0x09) ? read_zip(d, o) : read_prn(data, d, o, str); - case 0xEF: return n[3] === 0x3C ? parse_xlml(d, o) : read_prn(data, d, o, str); - case 0xFF: - if(n[1] === 0xFE) { return read_utf16(d, o); } - else if(n[1] === 0x00 && n[2] === 0x02 && n[3] === 0x00) return WK_.to_workbook(d, o); - break; - case 0x00: - if(n[1] === 0x00) { - if(n[2] >= 0x02 && n[3] === 0x00) return WK_.to_workbook(d, o); - if(n[2] === 0x00 && (n[3] === 0x08 || n[3] === 0x09)) return WK_.to_workbook(d, o); - } - break; - case 0x03: case 0x83: case 0x8B: case 0x8C: return DBF.to_workbook(d, o); - case 0x7B: if(n[1] === 0x5C && n[2] === 0x72 && n[3] === 0x74) return RTF.to_workbook(d, o); break; - case 0x0A: case 0x0D: case 0x20: return read_plaintext_raw(d, o); - case 0x89: if(n[1] === 0x50 && n[2] === 0x4E && n[3] === 0x47) throw new Error("PNG Image File is not a spreadsheet"); break; - } - if(DBF.versions.indexOf(n[0]) > -1 && n[2] <= 12 && n[3] <= 31) return DBF.to_workbook(d, o); - return read_prn(data, d, o, str); -} - -function readFileSync(filename, opts) { - var o = opts||{}; o.type = 'file'; - return readSync(filename, o); -} -function write_obj_str(factory) { - return function write_str(wb, o) { - var idx = 0; - if(o.sheet) { - if(typeof o.sheet == "number") idx = o.sheet; - else idx = wb.SheetNames.indexOf(o.sheet); - if(!wb.SheetNames[idx]) throw new Error("Sheet not found: " + o.sheet + " : " + (typeof o.sheet)); - } - return factory.from_sheet(wb.Sheets[wb.SheetNames[idx]], o, wb); - }; -} - -var write_htm_str = write_obj_str(HTML_); -var write_csv_str = write_obj_str({from_sheet:sheet_to_csv}); -var write_slk_str = write_obj_str(typeof SYLK !== "undefined" ? SYLK : {}); -var write_dif_str = write_obj_str(typeof DIF !== "undefined" ? DIF : {}); -var write_prn_str = write_obj_str(typeof PRN !== "undefined" ? PRN : {}); -var write_rtf_str = write_obj_str(typeof RTF !== "undefined" ? RTF : {}); -var write_txt_str = write_obj_str({from_sheet:sheet_to_txt}); -var write_dbf_buf = write_obj_str(typeof DBF !== "undefined" ? DBF : {}); -var write_eth_str = write_obj_str(typeof ETH !== "undefined" ? ETH : {}); -var write_wk1_buf = write_obj_str(typeof WK_ !== "undefined" ? {from_sheet:WK_.sheet_to_wk1} : {}); - -function write_cfb_ctr(cfb, o) { - switch(o.type) { - case "base64": case "binary": break; - case "buffer": case "array": o.type = ""; break; - case "file": return write_dl(o.file, CFB.write(cfb, {type:has_buf ? 'buffer' : ""})); - case "string": throw new Error("'string' output type invalid for '" + o.bookType + "' files"); - default: throw new Error("Unrecognized type " + o.type); - } - return CFB.write(cfb, o); -} - -function write_zip_type(wb, opts) { - var o = dup(opts||{}); - var z = write_zip(wb, o); - return write_zip_denouement(z, o); -} -function write_zip_typeXLSX(wb, opts) { - var o = dup(opts||{}); - var z = write_zip_xlsx(wb, o); - return write_zip_denouement(z, o); -} -function write_zip_denouement(z, o) { - var oopts = {}; - if(o.compression) oopts.compression = 'DEFLATE'; - if(o.password) oopts.type = has_buf ? "nodebuffer" : "string"; - else switch(o.type) { - case "base64": oopts.type = "base64"; break; - case "binary": oopts.type = "string"; break; - case "string": throw new Error("'string' output type invalid for '" + o.bookType + "' files"); - case "buffer": - case "file": oopts.type = has_buf ? "nodebuffer" : "string"; break; - default: throw new Error("Unrecognized type " + o.type); - } - var out = z.FullPaths ? CFB.write(z, {fileType:"zip", type: {"nodebuffer": "buffer", "string": "binary"}[oopts.type] || oopts.type, compression: !!o.compression}) : z.generate(oopts); - if(typeof Deno !== "undefined") { - if(typeof out == "string") { - if(o.type == "binary" || o.type == "base64") return out; - out = new Uint8Array(s2ab(out)); - } - } -/*jshint -W083 */ - if(o.password && typeof encrypt_agile !== 'undefined') return write_cfb_ctr(encrypt_agile(out, o.password), o); // eslint-disable-line no-undef -/*jshint +W083 */ - if(o.type === "file") return write_dl(o.file, out); - return o.type == "string" ? utf8read(out) : out; -} - -function write_cfb_type(wb, opts) { - var o = opts||{}; - var cfb = write_xlscfb(wb, o); - return write_cfb_ctr(cfb, o); -} - -function write_string_type(out, opts, bom) { - if(!bom) bom = ""; - var o = bom + out; - switch(opts.type) { - case "base64": return Base64.encode(utf8write(o)); - case "binary": return utf8write(o); - case "string": return out; - case "file": return write_dl(opts.file, o, 'utf8'); - case "buffer": { - if(has_buf) return Buffer_from(o, 'utf8'); - else if(typeof TextEncoder !== "undefined") return new TextEncoder().encode(o); - else return write_string_type(o, {type:'binary'}).split("").map(function(c) { return c.charCodeAt(0); }); - } - } - throw new Error("Unrecognized type " + opts.type); -} - -function write_stxt_type(out, opts) { - switch(opts.type) { - case "base64": return Base64.encode(out); - case "binary": return out; - case "string": return out; /* override in sheet_to_txt */ - case "file": return write_dl(opts.file, out, 'binary'); - case "buffer": { - if(has_buf) return Buffer_from(out, 'binary'); - else return out.split("").map(function(c) { return c.charCodeAt(0); }); - } - } - throw new Error("Unrecognized type " + opts.type); -} - -/* TODO: test consistency */ -function write_binary_type(out, opts) { - switch(opts.type) { - case "string": - case "base64": - case "binary": - var bstr = ""; - // $FlowIgnore - for(var i = 0; i < out.length; ++i) bstr += String.fromCharCode(out[i]); - return opts.type == 'base64' ? Base64.encode(bstr) : opts.type == 'string' ? utf8read(bstr) : bstr; - case "file": return write_dl(opts.file, out); - case "buffer": return out; - default: throw new Error("Unrecognized type " + opts.type); - } -} - -function writeSyncXLSX(wb, opts) { - reset_cp(); - check_wb(wb); - var o = dup(opts||{}); - if(o.cellStyles) { o.cellNF = true; o.sheetStubs = true; } - if(o.type == "array") { o.type = "binary"; var out = (writeSyncXLSX(wb, o)); o.type = "array"; return s2ab(out); } - return write_zip_typeXLSX(wb, o); -} - -function writeSync(wb, opts) { - reset_cp(); - check_wb(wb); - var o = dup(opts||{}); - if(o.cellStyles) { o.cellNF = true; o.sheetStubs = true; } - if(o.type == "array") { o.type = "binary"; var out = (writeSync(wb, o)); o.type = "array"; return s2ab(out); } - switch(o.bookType || 'xlsb') { - case 'xml': - case 'xlml': return write_string_type(write_xlml(wb, o), o); - case 'slk': - case 'sylk': return write_string_type(write_slk_str(wb, o), o); - case 'htm': - case 'html': return write_string_type(write_htm_str(wb, o), o); - case 'txt': return write_stxt_type(write_txt_str(wb, o), o); - case 'csv': return write_string_type(write_csv_str(wb, o), o, "\ufeff"); - case 'dif': return write_string_type(write_dif_str(wb, o), o); - case 'dbf': return write_binary_type(write_dbf_buf(wb, o), o); - case 'prn': return write_string_type(write_prn_str(wb, o), o); - case 'rtf': return write_string_type(write_rtf_str(wb, o), o); - case 'eth': return write_string_type(write_eth_str(wb, o), o); - case 'fods': return write_string_type(write_ods(wb, o), o); - case 'wk1': return write_binary_type(write_wk1_buf(wb, o), o); - case 'wk3': return write_binary_type(WK_.book_to_wk3(wb, o), o); - case 'biff2': if(!o.biff) o.biff = 2; /* falls through */ - case 'biff3': if(!o.biff) o.biff = 3; /* falls through */ - case 'biff4': if(!o.biff) o.biff = 4; return write_binary_type(write_biff_buf(wb, o), o); - case 'biff5': if(!o.biff) o.biff = 5; /* falls through */ - case 'biff8': - case 'xla': - case 'xls': if(!o.biff) o.biff = 8; return write_cfb_type(wb, o); - case 'xlsx': - case 'xlsm': - case 'xlam': - case 'xlsb': - case 'ods': return write_zip_type(wb, o); - default: throw new Error ("Unrecognized bookType |" + o.bookType + "|"); - } -} - -function resolve_book_type(o) { - if(o.bookType) return; - var _BT = { - "xls": "biff8", - "htm": "html", - "slk": "sylk", - "socialcalc": "eth", - "Sh33tJS": "WTF" - }; - var ext = o.file.slice(o.file.lastIndexOf(".")).toLowerCase(); - if(ext.match(/^\.[a-z]+$/)) o.bookType = ext.slice(1); - o.bookType = _BT[o.bookType] || o.bookType; -} - -function writeFileSync(wb, filename, opts) { - var o = opts||{}; o.type = 'file'; - o.file = filename; - resolve_book_type(o); - return writeSync(wb, o); -} - -function writeFileSyncXLSX(wb, filename, opts) { - var o = opts||{}; o.type = 'file'; - o.file = filename; - resolve_book_type(o); - return writeSyncXLSX(wb, o); -} - - -function writeFileAsync(filename, wb, opts, cb) { - var o = opts||{}; o.type = 'file'; - o.file = filename; - resolve_book_type(o); - o.type = 'buffer'; - var _cb = cb; if(!(_cb instanceof Function)) _cb = (opts); - return _fs.writeFile(filename, writeSync(wb, o), _cb); -} -function make_json_row(sheet, r, R, cols, header, hdr, dense, o) { - var rr = encode_row(R); - var defval = o.defval, raw = o.raw || !Object.prototype.hasOwnProperty.call(o, "raw"); - var isempty = true; - var row = (header === 1) ? [] : {}; - if(header !== 1) { - if(Object.defineProperty) try { Object.defineProperty(row, '__rowNum__', {value:R, enumerable:false}); } catch(e) { row.__rowNum__ = R; } - else row.__rowNum__ = R; - } - if(!dense || sheet[R]) for (var C = r.s.c; C <= r.e.c; ++C) { - var val = dense ? sheet[R][C] : sheet[cols[C] + rr]; - if(val === undefined || val.t === undefined) { - if(defval === undefined) continue; - if(hdr[C] != null) { row[hdr[C]] = defval; } - continue; - } - var v = val.v; - switch(val.t){ - case 'z': if(v == null) break; continue; - case 'e': v = (v == 0 ? null : void 0); break; - case 's': case 'd': case 'b': case 'n': break; - default: throw new Error('unrecognized type ' + val.t); - } - if(hdr[C] != null) { - if(v == null) { - if(val.t == "e" && v === null) row[hdr[C]] = null; - else if(defval !== undefined) row[hdr[C]] = defval; - else if(raw && v === null) row[hdr[C]] = null; - else continue; - } else { - row[hdr[C]] = raw || (o.rawNumbers && val.t == "n") ? v : format_cell(val,v,o); - } - if(v != null) isempty = false; - } - } - return { row: row, isempty: isempty }; -} - - -function sheet_to_json(sheet, opts) { - if(sheet == null || sheet["!ref"] == null) return []; - var val = {t:'n',v:0}, header = 0, offset = 1, hdr = [], v=0, vv=""; - var r = {s:{r:0,c:0},e:{r:0,c:0}}; - var o = opts || {}; - var range = o.range != null ? o.range : sheet["!ref"]; - if(o.header === 1) header = 1; - else if(o.header === "A") header = 2; - else if(Array.isArray(o.header)) header = 3; - else if(o.header == null) header = 0; - switch(typeof range) { - case 'string': r = safe_decode_range(range); break; - case 'number': r = safe_decode_range(sheet["!ref"]); r.s.r = range; break; - default: r = range; - } - if(header > 0) offset = 0; - var rr = encode_row(r.s.r); - var cols = []; - var out = []; - var outi = 0, counter = 0; - var dense = Array.isArray(sheet); - var R = r.s.r, C = 0, CC = 0; - if(dense && !sheet[R]) sheet[R] = []; - for(C = r.s.c; C <= r.e.c; ++C) { - cols[C] = encode_col(C); - val = dense ? sheet[R][C] : sheet[cols[C] + rr]; - switch(header) { - case 1: hdr[C] = C - r.s.c; break; - case 2: hdr[C] = cols[C]; break; - case 3: hdr[C] = o.header[C - r.s.c]; break; - default: - if(val == null) val = {w: "__EMPTY", t: "s"}; - vv = v = format_cell(val, null, o); - counter = 0; - for(CC = 0; CC < hdr.length; ++CC) if(hdr[CC] == vv) vv = v + "_" + (++counter); - hdr[C] = vv; - } - } - for (R = r.s.r + offset; R <= r.e.r; ++R) { - var row = make_json_row(sheet, r, R, cols, header, hdr, dense, o); - if((row.isempty === false) || (header === 1 ? o.blankrows !== false : !!o.blankrows)) out[outi++] = row.row; - } - out.length = outi; - return out; -} - -var qreg = /"/g; -function make_csv_row(sheet, r, R, cols, fs, rs, FS, o) { - var isempty = true; - var row = [], txt = "", rr = encode_row(R); - for(var C = r.s.c; C <= r.e.c; ++C) { - if (!cols[C]) continue; - var val = o.dense ? (sheet[R]||[])[C]: sheet[cols[C] + rr]; - if(val == null) txt = ""; - else if(val.v != null) { - isempty = false; - txt = ''+(o.rawNumbers && val.t == "n" ? val.v : format_cell(val, null, o)); - for(var i = 0, cc = 0; i !== txt.length; ++i) if((cc = txt.charCodeAt(i)) === fs || cc === rs || cc === 34 || o.forceQuotes) {txt = "\"" + txt.replace(qreg, '""') + "\""; break; } - if(txt == "ID") txt = '"ID"'; - } else if(val.f != null && !val.F) { - isempty = false; - txt = '=' + val.f; if(txt.indexOf(",") >= 0) txt = '"' + txt.replace(qreg, '""') + '"'; - } else txt = ""; - /* NOTE: Excel CSV does not support array formulae */ - row.push(txt); - } - if(o.blankrows === false && isempty) return null; - return row.join(FS); -} - -function sheet_to_csv(sheet, opts) { - var out = []; - var o = opts == null ? {} : opts; - if(sheet == null || sheet["!ref"] == null) return ""; - var r = safe_decode_range(sheet["!ref"]); - var FS = o.FS !== undefined ? o.FS : ",", fs = FS.charCodeAt(0); - var RS = o.RS !== undefined ? o.RS : "\n", rs = RS.charCodeAt(0); - var endregex = new RegExp((FS=="|" ? "\\|" : FS)+"+$"); - var row = "", cols = []; - o.dense = Array.isArray(sheet); - var colinfo = o.skipHidden && sheet["!cols"] || []; - var rowinfo = o.skipHidden && sheet["!rows"] || []; - for(var C = r.s.c; C <= r.e.c; ++C) if (!((colinfo[C]||{}).hidden)) cols[C] = encode_col(C); - for(var R = r.s.r; R <= r.e.r; ++R) { - if ((rowinfo[R]||{}).hidden) continue; - row = make_csv_row(sheet, r, R, cols, fs, rs, FS, o); - if(row == null) { continue; } - if(o.strip) row = row.replace(endregex,""); - out.push(row + RS); - } - delete o.dense; - return out.join(""); -} - -function sheet_to_txt(sheet, opts) { - if(!opts) opts = {}; opts.FS = "\t"; opts.RS = "\n"; - var s = sheet_to_csv(sheet, opts); - if(typeof cptable == 'undefined' || opts.type == 'string') return s; - var o = cptable.utils.encode(1200, s, 'str'); - return String.fromCharCode(255) + String.fromCharCode(254) + o; -} - -function sheet_to_formulae(sheet) { - var y = "", x, val=""; - if(sheet == null || sheet["!ref"] == null) return []; - var r = safe_decode_range(sheet['!ref']), rr = "", cols = [], C; - var cmds = []; - var dense = Array.isArray(sheet); - for(C = r.s.c; C <= r.e.c; ++C) cols[C] = encode_col(C); - for(var R = r.s.r; R <= r.e.r; ++R) { - rr = encode_row(R); - for(C = r.s.c; C <= r.e.c; ++C) { - y = cols[C] + rr; - x = dense ? (sheet[R]||[])[C] : sheet[y]; - val = ""; - if(x === undefined) continue; - else if(x.F != null) { - y = x.F; - if(!x.f) continue; - val = x.f; - if(y.indexOf(":") == -1) y = y + ":" + y; - } - if(x.f != null) val = x.f; - else if(x.t == 'z') continue; - else if(x.t == 'n' && x.v != null) val = "" + x.v; - else if(x.t == 'b') val = x.v ? "TRUE" : "FALSE"; - else if(x.w !== undefined) val = "'" + x.w; - else if(x.v === undefined) continue; - else if(x.t == 's') val = "'" + x.v; - else val = ""+x.v; - cmds[cmds.length] = y + "=" + val; - } - } - return cmds; -} - -function sheet_add_json(_ws, js, opts) { - var o = opts || {}; - var offset = +!o.skipHeader; - var ws = _ws || ({}); - var _R = 0, _C = 0; - if(ws && o.origin != null) { - if(typeof o.origin == 'number') _R = o.origin; - else { - var _origin = typeof o.origin == "string" ? decode_cell(o.origin) : o.origin; - _R = _origin.r; _C = _origin.c; - } - } - var cell; - var range = ({s: {c:0, r:0}, e: {c:_C, r:_R + js.length - 1 + offset}}); - if(ws['!ref']) { - var _range = safe_decode_range(ws['!ref']); - range.e.c = Math.max(range.e.c, _range.e.c); - range.e.r = Math.max(range.e.r, _range.e.r); - if(_R == -1) { _R = _range.e.r + 1; range.e.r = _R + js.length - 1 + offset; } - } else { - if(_R == -1) { _R = 0; range.e.r = js.length - 1 + offset; } - } - var hdr = o.header || [], C = 0; - - js.forEach(function (JS, R) { - keys(JS).forEach(function(k) { - if((C=hdr.indexOf(k)) == -1) hdr[C=hdr.length] = k; - var v = JS[k]; - var t = 'z'; - var z = ""; - var ref = encode_cell({c:_C + C,r:_R + R + offset}); - cell = utils.sheet_get_cell(ws, ref); - if(v && typeof v === 'object' && !(v instanceof Date)){ - ws[ref] = v; - } else { - if(typeof v == 'number') t = 'n'; - else if(typeof v == 'boolean') t = 'b'; - else if(typeof v == 'string') t = 's'; - else if(v instanceof Date) { - t = 'd'; - if(!o.cellDates) { t = 'n'; v = datenum(v); } - z = (o.dateNF || SSF._table[14]); - } - else if(v === null && o.nullError) { t = 'e'; v = 0; } - if(!cell) ws[ref] = cell = ({t:t, v:v}); - else { - cell.t = t; cell.v = v; - delete cell.w; delete cell.R; - if(z) cell.z = z; - } - if(z) cell.z = z; - } - }); - }); - range.e.c = Math.max(range.e.c, _C + hdr.length - 1); - var __R = encode_row(_R); - if(offset) for(C = 0; C < hdr.length; ++C) ws[encode_col(C + _C) + __R] = {t:'s', v:hdr[C]}; - ws['!ref'] = encode_range(range); - return ws; -} -function json_to_sheet(js, opts) { return sheet_add_json(null, js, opts); } - -var utils = { - encode_col: encode_col, - encode_row: encode_row, - encode_cell: encode_cell, - encode_range: encode_range, - decode_col: decode_col, - decode_row: decode_row, - split_cell: split_cell, - decode_cell: decode_cell, - decode_range: decode_range, - format_cell: format_cell, - sheet_add_aoa: sheet_add_aoa, - sheet_add_json: sheet_add_json, - sheet_add_dom: sheet_add_dom, - aoa_to_sheet: aoa_to_sheet, - json_to_sheet: json_to_sheet, - table_to_sheet: parse_dom_table, - table_to_book: table_to_book, - sheet_to_csv: sheet_to_csv, - sheet_to_txt: sheet_to_txt, - sheet_to_json: sheet_to_json, - sheet_to_html: HTML_.from_sheet, - sheet_to_formulae: sheet_to_formulae, - sheet_to_row_object_array: sheet_to_json -}; - -(function(utils) { -utils.consts = utils.consts || {}; -function add_consts(R/*Array*/) { R.forEach(function(a){ utils.consts[a[0]] = a[1]; }); } - -function get_default(x, y, z) { return x[y] != null ? x[y] : (x[y] = z); } - -/* get cell, creating a stub if necessary */ -function ws_get_cell_stub(ws, R, C) { - /* A1 cell address */ - if(typeof R == "string") { - /* dense */ - if(Array.isArray(ws)) { - var RC = decode_cell(R); - if(!ws[RC.r]) ws[RC.r] = []; - return ws[RC.r][RC.c] || (ws[RC.r][RC.c] = {t:'z'}); - } - return ws[R] || (ws[R] = {t:'z'}); - } - /* cell address object */ - if(typeof R != "number") return ws_get_cell_stub(ws, encode_cell(R)); - /* R and C are 0-based indices */ - return ws_get_cell_stub(ws, encode_cell({r:R,c:C||0})); -} -utils.sheet_get_cell = ws_get_cell_stub; - -/* find sheet index for given name / validate index */ -function wb_sheet_idx(wb, sh) { - if(typeof sh == "number") { - if(sh >= 0 && wb.SheetNames.length > sh) return sh; - throw new Error("Cannot find sheet # " + sh); - } else if(typeof sh == "string") { - var idx = wb.SheetNames.indexOf(sh); - if(idx > -1) return idx; - throw new Error("Cannot find sheet name |" + sh + "|"); - } else throw new Error("Cannot find sheet |" + sh + "|"); -} - -/* simple blank workbook object */ -utils.book_new = function() { - return { SheetNames: [], Sheets: {} }; -}; - -/* add a worksheet to the end of a given workbook */ -utils.book_append_sheet = function(wb, ws, name) { - if(!name) for(var i = 1; i <= 0xFFFF; ++i, name = undefined) if(wb.SheetNames.indexOf(name = "Sheet" + i) == -1) break; - if(!name || wb.SheetNames.length >= 0xFFFF) throw new Error("Too many worksheets"); - check_ws_name(name); - if(wb.SheetNames.indexOf(name) >= 0) throw new Error("Worksheet with name |" + name + "| already exists!"); - - wb.SheetNames.push(name); - wb.Sheets[name] = ws; -}; - -/* set sheet visibility (visible/hidden/very hidden) */ -utils.book_set_sheet_visibility = function(wb, sh, vis) { - get_default(wb,"Workbook",{}); - get_default(wb.Workbook,"Sheets",[]); - - var idx = wb_sheet_idx(wb, sh); - // $FlowIgnore - get_default(wb.Workbook.Sheets,idx, {}); - - switch(vis) { - case 0: case 1: case 2: break; - default: throw new Error("Bad sheet visibility setting " + vis); - } - // $FlowIgnore - wb.Workbook.Sheets[idx].Hidden = vis; -}; -add_consts([ - ["SHEET_VISIBLE", 0], - ["SHEET_HIDDEN", 1], - ["SHEET_VERY_HIDDEN", 2] -]); - -/* set number format */ -utils.cell_set_number_format = function(cell, fmt) { - cell.z = fmt; - return cell; -}; - -/* set cell hyperlink */ -utils.cell_set_hyperlink = function(cell, target, tooltip) { - if(!target) { - delete cell.l; - } else { - cell.l = ({ Target: target }); - if(tooltip) cell.l.Tooltip = tooltip; - } - return cell; -}; -utils.cell_set_internal_link = function(cell, range, tooltip) { return utils.cell_set_hyperlink(cell, "#" + range, tooltip); }; - -/* add to cell comments */ -utils.cell_add_comment = function(cell, text, author) { - if(!cell.c) cell.c = []; - cell.c.push({t:text, a:author||"SheetJS"}); -}; - -/* set array formula and flush related cells */ -utils.sheet_set_array_formula = function(ws, range, formula) { - var rng = typeof range != "string" ? range : safe_decode_range(range); - var rngstr = typeof range == "string" ? range : encode_range(range); - for(var R = rng.s.r; R <= rng.e.r; ++R) for(var C = rng.s.c; C <= rng.e.c; ++C) { - var cell = ws_get_cell_stub(ws, R, C); - cell.t = 'n'; - cell.F = rngstr; - delete cell.v; - if(R == rng.s.r && C == rng.s.c) cell.f = formula; - } - return ws; -}; - -return utils; -})(utils); - -if(has_buf && typeof require != 'undefined') (function() { - var strmod = undefined; - if(!strmod) return; - var Readable = strmod.Readable; - if(!Readable) return; - - var write_csv_stream = function(sheet, opts) { - var stream = Readable(); - var o = opts == null ? {} : opts; - if(sheet == null || sheet["!ref"] == null) { stream.push(null); return stream; } - var r = safe_decode_range(sheet["!ref"]); - var FS = o.FS !== undefined ? o.FS : ",", fs = FS.charCodeAt(0); - var RS = o.RS !== undefined ? o.RS : "\n", rs = RS.charCodeAt(0); - var endregex = new RegExp((FS=="|" ? "\\|" : FS)+"+$"); - var row = "", cols = []; - o.dense = Array.isArray(sheet); - var colinfo = o.skipHidden && sheet["!cols"] || []; - var rowinfo = o.skipHidden && sheet["!rows"] || []; - for(var C = r.s.c; C <= r.e.c; ++C) if (!((colinfo[C]||{}).hidden)) cols[C] = encode_col(C); - var R = r.s.r; - var BOM = false; - stream._read = function() { - if(!BOM) { BOM = true; return stream.push("\uFEFF"); } - while(R <= r.e.r) { - ++R; - if ((rowinfo[R-1]||{}).hidden) continue; - row = make_csv_row(sheet, r, R-1, cols, fs, rs, FS, o); - if(row != null) { - if(o.strip) row = row.replace(endregex,""); - stream.push(row + RS); - break; - } - } - if(R > r.e.r) return stream.push(null); - }; - return stream; - }; - - var write_html_stream = function(ws, opts) { - var stream = Readable(); - - var o = opts || {}; - var header = o.header != null ? o.header : HTML_.BEGIN; - var footer = o.footer != null ? o.footer : HTML_.END; - stream.push(header); - var r = decode_range(ws['!ref']); - o.dense = Array.isArray(ws); - stream.push(HTML_._preamble(ws, r, o)); - var R = r.s.r; - var end = false; - stream._read = function() { - if(R > r.e.r) { - if(!end) { end = true; stream.push("" + footer); } - return stream.push(null); - } - while(R <= r.e.r) { - stream.push(HTML_._row(ws, r, R, o)); - ++R; - break; - } - }; - return stream; - }; - - var write_json_stream = function(sheet, opts) { - var stream = Readable({objectMode:true}); - - if(sheet == null || sheet["!ref"] == null) { stream.push(null); return stream; } - var val = {t:'n',v:0}, header = 0, offset = 1, hdr = [], v=0, vv=""; - var r = {s:{r:0,c:0},e:{r:0,c:0}}; - var o = opts || {}; - var range = o.range != null ? o.range : sheet["!ref"]; - if(o.header === 1) header = 1; - else if(o.header === "A") header = 2; - else if(Array.isArray(o.header)) header = 3; - switch(typeof range) { - case 'string': r = safe_decode_range(range); break; - case 'number': r = safe_decode_range(sheet["!ref"]); r.s.r = range; break; - default: r = range; - } - if(header > 0) offset = 0; - var rr = encode_row(r.s.r); - var cols = []; - var counter = 0; - var dense = Array.isArray(sheet); - var R = r.s.r, C = 0, CC = 0; - if(dense && !sheet[R]) sheet[R] = []; - for(C = r.s.c; C <= r.e.c; ++C) { - cols[C] = encode_col(C); - val = dense ? sheet[R][C] : sheet[cols[C] + rr]; - switch(header) { - case 1: hdr[C] = C - r.s.c; break; - case 2: hdr[C] = cols[C]; break; - case 3: hdr[C] = o.header[C - r.s.c]; break; - default: - if(val == null) val = {w: "__EMPTY", t: "s"}; - vv = v = format_cell(val, null, o); - counter = 0; - for(CC = 0; CC < hdr.length; ++CC) if(hdr[CC] == vv) vv = v + "_" + (++counter); - hdr[C] = vv; - } - } - R = r.s.r + offset; - stream._read = function() { - if(R > r.e.r) return stream.push(null); - while(R <= r.e.r) { - //if ((rowinfo[R-1]||{}).hidden) continue; - var row = make_json_row(sheet, r, R, cols, header, hdr, dense, o); - ++R; - if((row.isempty === false) || (header === 1 ? o.blankrows !== false : !!o.blankrows)) { - stream.push(row.row); - break; - } - } - }; - return stream; - }; - - XLSX.stream = { - to_json: write_json_stream, - to_html: write_html_stream, - to_csv: write_csv_stream - }; -})(); - -if(typeof parse_xlscfb !== "undefined") XLSX.parse_xlscfb = parse_xlscfb; -XLSX.parse_zip = parse_zip; -XLSX.read = readSync; //xlsread -XLSX.readFile = readFileSync; //readFile -XLSX.readFileSync = readFileSync; -XLSX.write = writeSync; -XLSX.writeFile = writeFileSync; -XLSX.writeFileSync = writeFileSync; -XLSX.writeFileAsync = writeFileAsync; -XLSX.utils = utils; -XLSX.writeXLSX = writeSyncXLSX; -XLSX.writeFileXLSX = writeFileSyncXLSX; -XLSX.SSF = SSF; -if(typeof CFB !== "undefined") XLSX.CFB = CFB; -} -/*global define */ -if(typeof exports !== 'undefined') make_xlsx_lib(exports); -else if(typeof module !== 'undefined' && module.exports) make_xlsx_lib(module.exports); -else if(typeof define === 'function' && define.amd) define('xlsx', function() { if(!XLSX.version) make_xlsx_lib(XLSX); return XLSX; }); -else make_xlsx_lib(XLSX); -/* NOTE: the following extra line is needed for "Lightning Locker Service" */ -if(typeof window !== 'undefined' && !window.XLSX) try { window.XLSX = XLSX; } catch(e) {} diff --git a/dist/xlsx.min.js b/dist/xlsx.min.js deleted file mode 100644 index a0de97e..0000000 --- a/dist/xlsx.min.js +++ /dev/null @@ -1,16 +0,0 @@ -/*! xlsx.js (C) 2013-present SheetJS -- http://sheetjs.com */ -var DO_NOT_EXPORT_CODEPAGE=true;var XLSX={};function make_xlsx_lib(e){e.version="0.18.2";var r=1200,t=1252;if(typeof module!=="undefined"&&typeof require!=="undefined"){if(typeof cptable==="undefined"){if(typeof global!=="undefined")global.cptable=undefined;else if(typeof window!=="undefined")window.cptable=undefined}}var a=[874,932,936,949,950,1e4];for(var n=0;n<=8;++n)a.push(1250+n);var i={0:1252,1:65001,2:65001,77:1e4,128:932,129:949,130:1361,134:936,136:950,161:1253,162:1254,163:1258,177:1255,178:1256,186:1257,204:1251,222:874,238:1250,255:1252,69:6969};var s=function(e){if(a.indexOf(e)==-1)return;t=i[0]=e};function f(){s(1252)}var l=function(e){r=e;s(e)};function o(){l(1200);f()}function c(e){var r=[];for(var t=0,a=e.length;t>1;++t)r[t]=String.fromCharCode(e.charCodeAt(2*t)+(e.charCodeAt(2*t+1)<<8));return r.join("")}function h(e){var r=[];for(var t=0;t>1;++t)r[t]=String.fromCharCode(e.charCodeAt(2*t+1)+(e.charCodeAt(2*t)<<8));return r.join("")}var d=function(e){var r=e.charCodeAt(0),t=e.charCodeAt(1);if(r==255&&t==254)return u(e.slice(2));if(r==254&&t==255)return h(e.slice(2));if(r==65279)return e.slice(1);return e};var v=function Hb(e){return String.fromCharCode(e)};var p=function Vb(e){return String.fromCharCode(e)};if(typeof cptable!=="undefined"){l=function(e){r=e;s(e)};d=function(e){if(e.charCodeAt(0)===255&&e.charCodeAt(1)===254){return cptable.utils.decode(1200,c(e.slice(2)))}return e};v=function Xb(e){if(r===1200)return String.fromCharCode(e);return cptable.utils.decode(r,[e&255,e>>8])[0]};p=function Gb(e){return cptable.utils.decode(t,[e])[0]}}var m=null;var b=true;var g=function(){var e="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=";return{encode:function(r){var t="";var a=0,n=0,i=0,s=0,f=0,l=0,o=0;for(var c=0;c>2;n=r.charCodeAt(c++);f=(a&3)<<4|n>>4;i=r.charCodeAt(c++);l=(n&15)<<2|i>>6;o=i&63;if(isNaN(n)){l=o=64}else if(isNaN(i)){o=64}t+=e.charAt(s)+e.charAt(f)+e.charAt(l)+e.charAt(o)}return t},decode:function(r){var t="";var a=0,n=0,i=0,s=0,f=0,l=0,o=0;r=r.replace(/[^\w\+\/\=]/g,"");for(var c=0;c>4;t+=String.fromCharCode(a);l=e.indexOf(r.charAt(c++));n=(f&15)<<4|l>>2;if(l!==64){t+=String.fromCharCode(n)}o=e.indexOf(r.charAt(c++));i=(l&3)<<6|o;if(o!==64){t+=String.fromCharCode(i)}}return t}}}();var w=typeof Buffer!=="undefined"&&typeof process!=="undefined"&&typeof process.versions!=="undefined"&&!!process.versions.node;var k=function(){};if(typeof Buffer!=="undefined"){var E=!Buffer.from;if(!E)try{Buffer.from("foo","utf8")}catch(S){E=true}k=E?function(e,r){return r?new Buffer(e,r):new Buffer(e)}:Buffer.from.bind(Buffer);if(!Buffer.alloc)Buffer.alloc=function(e){return new Buffer(e)};if(!Buffer.allocUnsafe)Buffer.allocUnsafe=function(e){return new Buffer(e)}}function B(e){return w?Buffer.alloc(e):typeof Uint8Array!="undefined"?new Uint8Array(e):new Array(e)}function C(e){return w?Buffer.allocUnsafe(e):typeof Uint8Array!="undefined"?new Uint8Array(e):new Array(e)}var y=function zb(e){if(w)return k(e,"binary");return e.split("").map(function(e){return e.charCodeAt(0)&255})};function T(e){if(typeof ArrayBuffer==="undefined")return y(e);var r=new ArrayBuffer(e.length),t=new Uint8Array(r);for(var a=0;a!=e.length;++a)t[a]=e.charCodeAt(a)&255;return r}function _(e){if(Array.isArray(e))return e.map(function(e){return String.fromCharCode(e)}).join("");var r=[];for(var t=0;t>6&31;n[t++]=128|s&63}else if(s>=55296&&s<57344){s=(s&1023)+64;var f=e.charCodeAt(++i)&1023;n[t++]=240|s>>8&7;n[t++]=128|s>>2&63;n[t++]=128|f>>6&15|(s&3)<<4;n[t++]=128|f&63}else{n[t++]=224|s>>12&15;n[t++]=128|s>>6&63;n[t++]=128|s&63}if(t>a){r.push(n.slice(0,t));t=0;n=B(65535);a=65530}}r.push(n.slice(0,t));return F(r)}var F=function(e){if(typeof Uint8Array!=="undefined"){var r=0,t=0;for(r=0;r=0)r+=e.charAt(t--);return r}function t(e,r){var t="";while(t.length=r?a:t("0",r-a.length)+a}function n(e,r){var a=""+e;return a.length>=r?a:t(" ",r-a.length)+a}function i(e,r){var a=""+e;return a.length>=r?a:a+t(" ",r-a.length)}function s(e,r){var a=""+Math.round(e);return a.length>=r?a:t("0",r-a.length)+a}function f(e,r){var a=""+e;return a.length>=r?a:t("0",r-a.length)+a}var l=Math.pow(2,32);function o(e,r){if(e>l||e<-l)return s(e,r);var t=Math.round(e);return f(t,r)}function c(e,r){r=r||0;return e.length>=7+r&&(e.charCodeAt(r)|32)===103&&(e.charCodeAt(r+1)|32)===101&&(e.charCodeAt(r+2)|32)===110&&(e.charCodeAt(r+3)|32)===101&&(e.charCodeAt(r+4)|32)===114&&(e.charCodeAt(r+5)|32)===97&&(e.charCodeAt(r+6)|32)===108}var u=[["Sun","Sunday"],["Mon","Monday"],["Tue","Tuesday"],["Wed","Wednesday"],["Thu","Thursday"],["Fri","Friday"],["Sat","Saturday"]];var h=[["J","Jan","January"],["F","Feb","February"],["M","Mar","March"],["A","Apr","April"],["M","May","May"],["J","Jun","June"],["J","Jul","July"],["A","Aug","August"],["S","Sep","September"],["O","Oct","October"],["N","Nov","November"],["D","Dec","December"]];function d(e){e[0]="General";e[1]="0";e[2]="0.00";e[3]="#,##0";e[4]="#,##0.00";e[9]="0%";e[10]="0.00%";e[11]="0.00E+00";e[12]="# ?/?";e[13]="# ??/??";e[14]="m/d/yy";e[15]="d-mmm-yy";e[16]="d-mmm";e[17]="mmm-yy";e[18]="h:mm AM/PM";e[19]="h:mm:ss AM/PM";e[20]="h:mm";e[21]="h:mm:ss";e[22]="m/d/yy h:mm";e[37]="#,##0 ;(#,##0)";e[38]="#,##0 ;[Red](#,##0)";e[39]="#,##0.00;(#,##0.00)";e[40]="#,##0.00;[Red](#,##0.00)";e[45]="mm:ss";e[46]="[h]:mm:ss";e[47]="mmss.0";e[48]="##0.0E+0";e[49]="@";e[56]='"上午/下午 "hh"時"mm"分"ss"秒 "'}var v={};d(v);var p=[];var m=0;for(m=5;m<=8;++m)p[m]=32+m;for(m=23;m<=26;++m)p[m]=0;for(m=27;m<=31;++m)p[m]=14;for(m=50;m<=58;++m)p[m]=14;for(m=59;m<=62;++m)p[m]=m-58;for(m=67;m<=68;++m)p[m]=m-58;for(m=72;m<=75;++m)p[m]=m-58;for(m=67;m<=68;++m)p[m]=m-57;for(m=76;m<=78;++m)p[m]=m-56;for(m=79;m<=81;++m)p[m]=m-34;var b=[];b[5]=b[63]='"$"#,##0_);\\("$"#,##0\\)';b[6]=b[64]='"$"#,##0_);[Red]\\("$"#,##0\\)';b[7]=b[65]='"$"#,##0.00_);\\("$"#,##0.00\\)';b[8]=b[66]='"$"#,##0.00_);[Red]\\("$"#,##0.00\\)';b[41]='_(* #,##0_);_(* \\(#,##0\\);_(* "-"_);_(@_)';b[42]='_("$"* #,##0_);_("$"* \\(#,##0\\);_("$"* "-"_);_(@_)';b[43]='_(* #,##0.00_);_(* \\(#,##0.00\\);_(* "-"??_);_(@_)';b[44]='_("$"* #,##0.00_);_("$"* \\(#,##0.00\\);_("$"* "-"??_);_(@_)';function g(e,r,t){var a=e<0?-1:1;var n=e*a;var i=0,s=1,f=0;var l=1,o=0,c=0;var u=Math.floor(n);while(or){if(o>r){c=l;f=i}else{c=o;f=s}}if(!t)return[0,a*f,c];var h=Math.floor(a*f/c);return[h,a*f-h*c,c]}function w(e,r,t){if(e>2958465||e<0)return null;var a=e|0,n=Math.floor(86400*(e-a)),i=0;var s=[];var f={D:a,T:n,u:86400*(e-a)-n,y:0,m:0,d:0,H:0,M:0,S:0,q:0};if(Math.abs(f.u)<1e-6)f.u=0;if(r&&r.date1904)a+=1462;if(f.u>.9999){f.u=0;if(++n==86400){f.T=n=0;++a;++f.D}}if(a===60){s=t?[1317,10,29]:[1900,2,29];i=3}else if(a===0){s=t?[1317,8,29]:[1900,1,0];i=6}else{if(a>60)--a;var l=new Date(1900,0,1);l.setDate(l.getDate()+a-1);s=[l.getFullYear(),l.getMonth()+1,l.getDate()];i=l.getDay();if(a<60)i=(i+6)%7;if(t)i=_(l,s)}f.y=s[0];f.m=s[1];f.d=s[2];f.S=n%60;n=Math.floor(n/60);f.M=n%60;n=Math.floor(n/60);f.H=n;f.q=i;return f}e.parse_date_code=w;var k=new Date(1899,11,31,0,0,0);var E=k.getTime();var S=new Date(1900,2,1,0,0,0);function B(e,r){var t=e.getTime();if(r)t-=1461*24*60*60*1e3;else if(e>=S)t+=24*60*60*1e3;return(t-(E+(e.getTimezoneOffset()-k.getTimezoneOffset())*6e4))/(24*60*60*1e3)}function C(e){return e.toString(10)}e._general_int=C;var y=function H(){var e=/(?:\.0*|(\.\d*[1-9])0+)$/;function r(r){return r.indexOf(".")==-1?r:r.replace(e,"$1")}var t=/(?:\.0*|(\.\d*[1-9])0+)[Ee]/;var a=/(E[+-])(\d)$/;function n(e){if(e.indexOf("E")==-1)return e;return e.replace(t,"$1E").replace(a,"$10$2")}function i(e){var t=e<0?12:11;var a=r(e.toFixed(12));if(a.length<=t)return a;a=e.toPrecision(10);if(a.length<=t)return a;return e.toExponential(5)}function s(e){var t=r(e.toFixed(11));return t.length>(e<0?12:11)||t==="0"||t==="-0"?e.toPrecision(6):t}function f(e){var t=Math.floor(Math.log(Math.abs(e))*Math.LOG10E),a;if(t>=-4&&t<=-1)a=e.toPrecision(10+t);else if(Math.abs(t)<=9)a=i(e);else if(t===10)a=e.toFixed(10).substr(0,12);else a=s(e);return r(n(a.toUpperCase()))}return f}();e._general_num=y;function T(e,r){switch(typeof e){case"string":return e;case"boolean":return e?"TRUE":"FALSE";case"number":return(e|0)===e?e.toString(10):y(e);case"undefined":return"";case"object":if(e==null)return"";if(e instanceof Date)return U(14,B(e,r&&r.date1904),r);}throw new Error("unsupported value in General format: "+e)}e._general=T;function _(e,r){r[0]-=581;var t=e.getDay();if(e<60)t=(t+6)%7;return t}function x(e,r,t,n){var i="",s=0,f=0,l=t.y,o,c=0;switch(e){case 98:l=t.y+543;case 121:switch(r.length){case 1:;case 2:o=l%100;c=2;break;default:o=l%1e4;c=4;break;}break;case 109:switch(r.length){case 1:;case 2:o=t.m;c=r.length;break;case 3:return h[t.m-1][1];case 5:return h[t.m-1][0];default:return h[t.m-1][2];}break;case 100:switch(r.length){case 1:;case 2:o=t.d;c=r.length;break;case 3:return u[t.q][0];default:return u[t.q][1];}break;case 104:switch(r.length){case 1:;case 2:o=1+(t.H+11)%12;c=r.length;break;default:throw"bad hour format: "+r;}break;case 72:switch(r.length){case 1:;case 2:o=t.H;c=r.length;break;default:throw"bad hour format: "+r;}break;case 77:switch(r.length){case 1:;case 2:o=t.M;c=r.length;break;default:throw"bad minute format: "+r;}break;case 115:if(r!="s"&&r!="ss"&&r!=".0"&&r!=".00"&&r!=".000")throw"bad second format: "+r;if(t.u===0&&(r=="s"||r=="ss"))return a(t.S,r.length);if(n>=2)f=n===3?1e3:100;else f=n===1?10:1;s=Math.round(f*(t.S+t.u));if(s>=60*f)s=0;if(r==="s")return s===0?"0":""+s/f;i=a(s,2+n);if(r==="ss")return i.substr(0,2);return"."+i.substr(2,r.length-1);case 90:switch(r){case"[h]":;case"[hh]":o=t.D*24+t.H;break;case"[m]":;case"[mm]":o=(t.D*24+t.H)*60+t.M;break;case"[s]":;case"[ss]":o=((t.D*24+t.H)*60+t.M)*60+Math.round(t.S+t.u);break;default:throw"bad abstime format: "+r;}c=r.length===3?1:2;break;case 101:o=l;c=1;break;}var d=c>0?a(o,c):"";return d}function A(e){var r=3;if(e.length<=r)return e;var t=e.length%r,a=e.substr(0,t);for(;t!=e.length;t+=r)a+=(a.length>0?",":"")+e.substr(t,r);return a}var R=function V(){var e=/%/g;function s(r,a,n){var i=a.replace(e,""),s=a.length-i.length;return R(r,i,n*Math.pow(10,2*s))+t("%",s)}function f(e,r,t){var a=r.length-1;while(r.charCodeAt(a-1)===44)--a;return R(e,r.substr(0,a),t/Math.pow(10,3*(r.length-a)))}function l(e,r){var t;var a=e.indexOf("E")-e.indexOf(".")-1;if(e.match(/^#+0.0E\+0$/)){if(r==0)return"0.0E+0";else if(r<0)return"-"+l(e,-r);var n=e.indexOf(".");if(n===-1)n=e.indexOf("E");var i=Math.floor(Math.log(r)*Math.LOG10E)%n;if(i<0)i+=n;t=(r/Math.pow(10,i)).toPrecision(a+1+(n+i)%n);if(t.indexOf("e")===-1){var s=Math.floor(Math.log(r)*Math.LOG10E);if(t.indexOf(".")===-1)t=t.charAt(0)+"."+t.substr(1)+"E+"+(s-t.length+i);else t+="E+"+(s-i);while(t.substr(0,2)==="0."){t=t.charAt(0)+t.substr(2,n)+"."+t.substr(2+n);t=t.replace(/^0+([1-9])/,"$1").replace(/^0+\./,"0.")}t=t.replace(/\+-/,"-")}t=t.replace(/^([+-]?)(\d*)\.(\d*)[Ee]/,function(e,r,t,a){return r+t+a.substr(0,(n+i)%n)+"."+a.substr(i)+"E"})}else t=r.toExponential(a);if(e.match(/E\+00$/)&&t.match(/e[+-]\d$/))t=t.substr(0,t.length-1)+"0"+t.charAt(t.length-1);if(e.match(/E\-/)&&t.match(/e\+/))t=t.replace(/e\+/,"e");return t.replace("e","E")}var c=/# (\?+)( ?)\/( ?)(\d+)/;function u(e,r,i){var s=parseInt(e[4],10),f=Math.round(r*s),l=Math.floor(f/s);var o=f-l*s,c=s;return i+(l===0?"":""+l)+" "+(o===0?t(" ",e[1].length+1+e[4].length):n(o,e[1].length)+e[2]+"/"+e[3]+a(c,e[4].length))}function h(e,r,a){return a+(r===0?"":""+r)+t(" ",e[1].length+2+e[4].length)}var d=/^#*0*\.([0#]+)/;var v=/\).*[0#]/;var p=/\(###\) ###\\?-####/;function m(e){var r="",t;for(var a=0;a!=e.length;++a)switch(t=e.charCodeAt(a)){case 35:break;case 63:r+=" ";break;case 48:r+="0";break;default:r+=String.fromCharCode(t);}return r}function b(e,r){var t=Math.pow(10,r);return""+Math.round(e*t)/t}function w(e,r){var t=e-Math.floor(e),a=Math.pow(10,r);if(r<(""+Math.round(t*a)).length)return 0;return Math.round(t*a)}function k(e,r){if(r<(""+Math.round((e-Math.floor(e))*Math.pow(10,r))).length){return 1}return 0}function E(e){if(e<2147483647&&e>-2147483648)return""+(e>=0?e|0:e-1|0);return""+Math.floor(e)}function S(e,h,B){if(e.charCodeAt(0)===40&&!h.match(v)){var C=h.replace(/\( */,"").replace(/ \)/,"").replace(/\)/,"");if(B>=0)return S("n",C,B);return"("+S("n",C,-B)+")"}if(h.charCodeAt(h.length-1)===44)return f(e,h,B);if(h.indexOf("%")!==-1)return s(e,h,B);if(h.indexOf("E")!==-1)return l(h,B);if(h.charCodeAt(0)===36)return"$"+S(e,h.substr(h.charAt(1)==" "?2:1),B);var y;var T,_,x,F=Math.abs(B),I=B<0?"-":"";if(h.match(/^00+$/))return I+o(F,h.length);if(h.match(/^[#?]+$/)){y=o(B,0);if(y==="0")y="";return y.length>h.length?y:m(h.substr(0,h.length-y.length))+y}if(T=h.match(c))return u(T,F,I);if(h.match(/^#+0+$/))return I+o(F,h.length-h.indexOf("0"));if(T=h.match(d)){y=b(B,T[1].length).replace(/^([^\.]+)$/,"$1."+m(T[1])).replace(/\.$/,"."+m(T[1])).replace(/\.(\d*)$/,function(e,r){return"."+r+t("0",m(T[1]).length-r.length)});return h.indexOf("0.")!==-1?y:y.replace(/^0\./,".")}h=h.replace(/^#+([0.])/,"$1");if(T=h.match(/^(0*)\.(#*)$/)){return I+b(F,T[2].length).replace(/\.(\d*[1-9])0*$/,".$1").replace(/^(-?\d*)$/,"$1.").replace(/^0\./,T[1].length?"0.":".")}if(T=h.match(/^#{1,3},##0(\.?)$/))return I+A(o(F,0));if(T=h.match(/^#,##0\.([#0]*0)$/)){return B<0?"-"+S(e,h,-B):A(""+(Math.floor(B)+k(B,T[1].length)))+"."+a(w(B,T[1].length),T[1].length)}if(T=h.match(/^#,#*,#0/))return S(e,h.replace(/^#,#*,/,""),B);if(T=h.match(/^([0#]+)(\\?-([0#]+))+$/)){y=r(S(e,h.replace(/[\\-]/g,""),B));_=0;return r(r(h.replace(/\\/g,"")).replace(/[0#]/g,function(e){return _=0)return T("n",l,f);return"("+T("n",l,-f)+")"}if(s.charCodeAt(s.length-1)===44)return B(e,s,f);if(s.indexOf("%")!==-1)return C(e,s,f);if(s.indexOf("E")!==-1)return y(s,f);if(s.charCodeAt(0)===36)return"$"+T(e,s.substr(s.charAt(1)==" "?2:1),f);var o;var u,b,w,k=Math.abs(f),E=f<0?"-":"";if(s.match(/^00+$/))return E+a(k,s.length);if(s.match(/^[#?]+$/)){o=""+f;if(f===0)o="";return o.length>s.length?o:m(s.substr(0,s.length-o.length))+o}if(u=s.match(c))return h(u,k,E);if(s.match(/^#+0+$/))return E+a(k,s.length-s.indexOf("0"));if(u=s.match(d)){o=(""+f).replace(/^([^\.]+)$/,"$1."+m(u[1])).replace(/\.$/,"."+m(u[1]));o=o.replace(/\.(\d*)$/,function(e,r){return"."+r+t("0",m(u[1]).length-r.length)});return s.indexOf("0.")!==-1?o:o.replace(/^0\./,".")}s=s.replace(/^#+([0.])/,"$1");if(u=s.match(/^(0*)\.(#*)$/)){return E+(""+k).replace(/\.(\d*[1-9])0*$/,".$1").replace(/^(-?\d*)$/,"$1.").replace(/^0\./,u[1].length?"0.":".")}if(u=s.match(/^#{1,3},##0(\.?)$/))return E+A(""+k);if(u=s.match(/^#,##0\.([#0]*0)$/)){return f<0?"-"+T(e,s,-f):A(""+f)+"."+t("0",u[1].length)}if(u=s.match(/^#,#*,#0/))return T(e,s.replace(/^#,#*,/,""),f);if(u=s.match(/^([0#]+)(\\?-([0#]+))+$/)){o=r(T(e,s.replace(/[\\-]/g,""),f));b=0;return r(r(s.replace(/\\/g,"")).replace(/[0#]/g,function(e){return b-1||t=="\\"&&e.charAt(r+1)=="-"&&"0#".indexOf(e.charAt(r+2))>-1)){}break;case"?":while(e.charAt(++r)===t){}break;case"*":++r;if(e.charAt(r)==" "||e.charAt(r)=="*")++r;break;case"(":;case")":++r;break;case"1":;case"2":;case"3":;case"4":;case"5":;case"6":;case"7":;case"8":;case"9":while(r-1){}break;case" ":++r;break;default:++r;break;}}return false}e.is_date=D;function P(e,r,t,a){var n=[],i="",s=0,f="",l="t",o,u,h;var d="H";while(s=12?"P":"A";m.t="T";d="h";s+=3}else if(e.substr(s,5).toUpperCase()==="AM/PM"){if(o!=null)m.v=o.H>=12?"PM":"AM";m.t="T";s+=5;d="h"}else if(e.substr(s,5).toUpperCase()==="上午/下午"){if(o!=null)m.v=o.H>=12?"下午":"上午";m.t="T";s+=5;d="h"}else{m.t="t";++s}if(o==null&&m.t==="T")return"";n[n.length]=m;l=f;break;case"[":i=f;while(e.charAt(s++)!=="]"&&s-1){i=(i.match(/\$([^-\[\]]*)/)||[])[1]||"$";if(!D(e))n[n.length]={t:"t",v:i}}break;case".":if(o!=null){i=f;while(++s-1)i+=f;n[n.length]={t:"n",v:i};break;case"?":i=f;while(e.charAt(++s)===f)i+=f;n[n.length]={t:f,v:i};l=f;break;case"*":++s;if(e.charAt(s)==" "||e.charAt(s)=="*")++s;break;case"(":;case")":n[n.length]={t:a===1?"t":f,v:f};++s;break;case"1":;case"2":;case"3":;case"4":;case"5":;case"6":;case"7":;case"8":;case"9":i=f;while(s-1)i+=e.charAt(s);n[n.length]={t:"D",v:i};break;case" ":n[n.length]={t:f,v:f};++s;break;case"$":n[n.length]={t:"t",v:"$"};++s;break;default:if(",$-+/():!^&'~{}<>=€acfijklopqrtuvwxzP".indexOf(f)===-1)throw new Error("unrecognized character "+f+" in "+e);n[n.length]={t:"t",v:f};++s;break;}}var b=0,g=0,k;for(s=n.length-1,l="t";s>=0;--s){switch(n[s].t){case"h":;case"H":n[s].t=d;l="h";if(b<1)b=1;break;case"s":if(k=n[s].v.match(/\.0+$/))g=Math.max(g,k[0].length-1);if(b<3)b=3;case"d":;case"y":;case"M":;case"e":l=n[s].t;break;case"m":if(l==="s"){n[s].t="M";if(b<2)b=2}break;case"X":break;case"Z":if(b<1&&n[s].v.match(/[Hh]/))b=1;if(b<2&&n[s].v.match(/[Mm]/))b=2;if(b<3&&n[s].v.match(/[Ss]/))b=3;}}switch(b){case 0:break;case 1:if(o.u>=.5){o.u=0;++o.S}if(o.S>=60){o.S=0;++o.M}if(o.M>=60){o.M=0;++o.H}break;case 2:if(o.u>=.5){o.u=0;++o.S}if(o.S>=60){o.S=0;++o.M}break;}var E="",S;for(s=0;s0){if(E.charCodeAt(0)==40){C=r<0&&E.charCodeAt(0)===45?-r:r;y=R("n",E,C)}else{C=r<0&&a>1?-r:r;y=R("n",E,C);if(C<0&&n[0]&&n[0].t=="t"){y=y.substr(1);n[0].v="-"+n[0].v}}S=y.length-1;var _=n.length;for(s=0;s-1){_=s;break}var A=n.length;if(_===n.length&&y.indexOf("E")===-1){for(s=n.length-1;s>=0;--s){if(n[s]==null||"n?".indexOf(n[s].t)===-1)continue;if(S>=n[s].v.length-1){S-=n[s].v.length;n[s].v=y.substr(S+1,n[s].v.length)}else if(S<0)n[s].v="";else{n[s].v=y.substr(0,S+1);S=-1}n[s].t="t";A=s}if(S>=0&&A=0;--s){if(n[s]==null||"n?".indexOf(n[s].t)===-1)continue;u=n[s].v.indexOf(".")>-1&&s===_?n[s].v.indexOf(".")-1:n[s].v.length-1;B=n[s].v.substr(u+1);for(;u>=0;--u){if(S>=0&&(n[s].v.charAt(u)==="0"||n[s].v.charAt(u)==="#"))B=y.charAt(S--)+B}n[s].v=B;n[s].t="t";A=s}if(S>=0&&A-1&&s===_?n[s].v.indexOf(".")+1:0;B=n[s].v.substr(0,u);for(;u-1){C=a>1&&r<0&&s>0&&n[s-1].v==="-"?-r:r;n[s].v=R(n[s].t,n[s].v,C);n[s].t="t"}var F="";for(s=0;s!==n.length;++s)if(n[s]!=null)F+=n[s].v;return F}e._eval=P;var O=/\[[=<>]/;var N=/\[(=|>[=]?|<[>=]?)(-?\d+(?:\.\d*)?)\]/;function L(e,r){if(r==null)return false;var t=parseFloat(r[2]);switch(r[1]){case"=":if(e==t)return true;break;case">":if(e>t)return true;break;case"<":if(e":if(e!=t)return true;break;case">=":if(e>=t)return true;break;case"<=":if(e<=t)return true;break;}return false}function M(e,r){var t=F(e);var a=t.length,n=t[a-1].indexOf("@");if(a<4&&n>-1)--a;if(t.length>4)throw new Error("cannot find right format for |"+t.join("|")+"|");if(typeof r!=="number")return[4,t.length===4||n>-1?t[t.length-1]:"@"];switch(t.length){case 1:t=n>-1?["General","General","General",t[0]]:[t[0],t[0],t[0],"@"];break;case 2:t=n>-1?[t[0],t[0],t[0],t[1]]:[t[0],t[1],t[0],"@"];break;case 3:t=n>-1?[t[0],t[1],t[0],t[2]]:[t[0],t[1],t[2],"@"];break;case 4:break;}var i=r>0?t[0]:r<0?t[1]:t[2];if(t[0].indexOf("[")===-1&&t[1].indexOf("[")===-1)return[a,i];if(t[0].match(O)!=null||t[1].match(O)!=null){var s=t[0].match(N);var f=t[1].match(N);return L(r,s)?[a,t[0]]:L(r,f)?[a,t[1]]:[a,t[s!=null&&f!=null?2:1]]}return[a,i]}function U(e,r,t){if(t==null)t={};var a="";switch(typeof e){case"string":if(e=="m/d/yy"&&t.dateNF)a=t.dateNF;else a=e;break;case"number":if(e==14&&t.dateNF)a=t.dateNF;else a=(t.table!=null?t.table:v)[e];if(a==null)a=t.table&&t.table[p[e]]||v[p[e]];if(a==null)a=b[e]||"General";break;}if(c(a,0))return T(r,t);if(r instanceof Date)r=B(r,t.date1904);var n=M(a,r);if(c(n[1]))return T(r,t);if(r===true)r="TRUE";else if(r===false)r="FALSE";else if(r===""||r==null)return"";return P(n[1],r,t,n[0])}function W(e,r){if(typeof r!="number"){r=+r||-1;for(var t=0;t<392;++t){if(v[t]==undefined){if(r<0)r=t;continue}if(v[t]==e){r=t;break}}if(r<0)r=391}v[r]=e;return r}e.load=W;e._table=v;e.get_table=function X(){return v};e.load_table=function G(e){for(var r=0;r!=392;++r)if(e[r]!==undefined)W(e[r],r)};e.init_table=d;e.format=U};O(P);var N={"General Number":"General","General Date":P._table[22],"Long Date":"dddd, mmmm dd, yyyy","Medium Date":P._table[15],"Short Date":P._table[14],"Long Time":P._table[19],"Medium Time":P._table[18],"Short Time":P._table[20],Currency:'"$"#,##0.00_);[Red]\\("$"#,##0.00\\)',Fixed:P._table[2],Standard:P._table[4],Percent:P._table[10],Scientific:P._table[11],"Yes/No":'"Yes";"Yes";"No";@',"True/False":'"True";"True";"False";@',"On/Off":'"Yes";"Yes";"No";@'};var L={5:'"$"#,##0_);\\("$"#,##0\\)',6:'"$"#,##0_);[Red]\\("$"#,##0\\)',7:'"$"#,##0.00_);\\("$"#,##0.00\\)',8:'"$"#,##0.00_);[Red]\\("$"#,##0.00\\)',23:"General",24:"General",25:"General",26:"General",27:"m/d/yy",28:"m/d/yy",29:"m/d/yy",30:"m/d/yy",31:"m/d/yy",32:"h:mm:ss",33:"h:mm:ss",34:"h:mm:ss",35:"h:mm:ss",36:"m/d/yy",41:'_(* #,##0_);_(* (#,##0);_(* "-"_);_(@_)',42:'_("$"* #,##0_);_("$"* (#,##0);_("$"* "-"_);_(@_)',43:'_(* #,##0.00_);_(* (#,##0.00);_(* "-"??_);_(@_)',44:'_("$"* #,##0.00_);_("$"* (#,##0.00);_("$"* "-"??_);_(@_)',50:"m/d/yy",51:"m/d/yy",52:"m/d/yy",53:"m/d/yy",54:"m/d/yy",55:"m/d/yy",56:"m/d/yy",57:"m/d/yy",58:"m/d/yy",59:"0",60:"0.00",61:"#,##0",62:"#,##0.00",63:'"$"#,##0_);\\("$"#,##0\\)',64:'"$"#,##0_);[Red]\\("$"#,##0\\)',65:'"$"#,##0.00_);\\("$"#,##0.00\\)',66:'"$"#,##0.00_);[Red]\\("$"#,##0.00\\)',67:"0%",68:"0.00%",69:"# ?/?",70:"# ??/??",71:"m/d/yy",72:"m/d/yy",73:"d-mmm-yy",74:"d-mmm",75:"mmm-yy",76:"h:mm",77:"h:mm:ss",78:"m/d/yy h:mm",79:"mm:ss",80:"[h]:mm:ss",81:"mmss.0"};var M=/[dD]+|[mM]+|[yYeE]+|[Hh]+|[Ss]+/g;function U(e){var r=typeof e=="number"?P._table[e]:e;r=r.replace(M,"(\\d+)");return new RegExp("^"+r+"$")}function W(e,r,t){var a=-1,n=-1,i=-1,s=-1,f=-1,l=-1;(r.match(M)||[]).forEach(function(e,r){var o=parseInt(t[r+1],10);switch(e.toLowerCase().charAt(0)){case"y":a=o;break;case"d":i=o;break;case"h":s=o;break;case"s":l=o;break;case"m":if(s>=0)f=o;else n=o;break;}});if(l>=0&&f==-1&&n>=0){f=n;n=-1}var o=(""+(a>=0?a:(new Date).getFullYear())).slice(-4)+"-"+("00"+(n>=1?n:1)).slice(-2)+"-"+("00"+(i>=1?i:1)).slice(-2);if(o.length==7)o="0"+o;if(o.length==8)o="20"+o;var c=("00"+(s>=0?s:0)).slice(-2)+":"+("00"+(f>=0?f:0)).slice(-2)+":"+("00"+(l>=0?l:0)).slice(-2);if(s==-1&&f==-1&&l==-1)return o;if(a==-1&&n==-1&&i==-1)return c;return o+"T"+c}var H=true;var V;(function(e){e(V={})})(function(e){e.version="1.2.0";function r(){var e=0,r=new Array(256);for(var t=0;t!=256;++t){e=t;e=e&1?-306674912^e>>>1:e>>>1;e=e&1?-306674912^e>>>1:e>>>1;e=e&1?-306674912^e>>>1:e>>>1;e=e&1?-306674912^e>>>1:e>>>1;e=e&1?-306674912^e>>>1:e>>>1;e=e&1?-306674912^e>>>1:e>>>1;e=e&1?-306674912^e>>>1:e>>>1;e=e&1?-306674912^e>>>1:e>>>1;r[t]=e}return typeof Int32Array!=="undefined"?new Int32Array(r):r}var t=r();function a(e){var r=0,t=0,a=0,n=typeof Int32Array!=="undefined"?new Int32Array(4096):new Array(4096);for(a=0;a!=256;++a)n[a]=e[a];for(a=0;a!=256;++a){t=e[a];for(r=256+a;r<4096;r+=256)t=n[r]=t>>>8^e[t&255]; -}var i=[];for(a=1;a!=16;++a)i[a-1]=typeof Int32Array!=="undefined"?n.subarray(a*256,a*256+256):n.slice(a*256,a*256+256);return i}var n=a(t);var i=n[0],s=n[1],f=n[2],l=n[3],o=n[4];var c=n[5],u=n[6],h=n[7],d=n[8],v=n[9];var p=n[10],m=n[11],b=n[12],g=n[13],w=n[14];function k(e,r){var a=r^-1;for(var n=0,i=e.length;n>>8^t[(a^e.charCodeAt(n++))&255];return~a}function E(e,r){var a=r^-1,n=e.length-15,k=0;for(;k>8&255]^b[e[k++]^a>>16&255]^m[e[k++]^a>>>24]^p[e[k++]]^v[e[k++]]^d[e[k++]]^h[e[k++]]^u[e[k++]]^c[e[k++]]^o[e[k++]]^l[e[k++]]^f[e[k++]]^s[e[k++]]^i[e[k++]]^t[e[k++]];n+=15;while(k>>8^t[(a^e[k++])&255];return~a}function S(e,r){var a=r^-1;for(var n=0,i=e.length,s=0,f=0;n>>8^t[(a^s)&255]}else if(s<2048){a=a>>>8^t[(a^(192|s>>6&31))&255];a=a>>>8^t[(a^(128|s&63))&255]}else if(s>=55296&&s<57344){s=(s&1023)+64;f=e.charCodeAt(n++)&1023;a=a>>>8^t[(a^(240|s>>8&7))&255];a=a>>>8^t[(a^(128|s>>2&63))&255];a=a>>>8^t[(a^(128|f>>6&15|(s&3)<<4))&255];a=a>>>8^t[(a^(128|f&63))&255]}else{a=a>>>8^t[(a^(224|s>>12&15))&255];a=a>>>8^t[(a^(128|s>>6&63))&255];a=a>>>8^t[(a^(128|s&63))&255]}}return~a}e.table=t;e.bstr=k;e.buf=E;e.str=S});var X=function $b(){var e={};e.version="1.2.1";function r(e,r){var t=e.split("/"),a=r.split("/");for(var n=0,i=0,s=Math.min(t.length,a.length);n>>1;e._W(2,t);var a=r.getFullYear()-1980;a=a<<4|r.getMonth()+1;a=a<<5|r.getDate();e._W(2,a)}function i(e){var r=e._R(2)&65535;var t=e._R(2)&65535;var a=new Date;var n=t&31;t>>>=5;var i=t&15;t>>>=4;a.setMilliseconds(0);a.setFullYear(t+1980);a.setMonth(i-1);a.setDate(n);var s=r&31;r>>>=5;var f=r&63;r>>>=6;a.setHours(r);a.setMinutes(f);a.setSeconds(s<<1);return a}function s(e){Qr(e,0);var r={};var t=0;while(e.l<=e.length-4){var a=e._R(2);var n=e._R(2),i=e.l+n;var s={};switch(a){case 21589:{t=e._R(1);if(t&1)s.mtime=e._R(4);if(n>5){if(t&2)s.atime=e._R(4);if(t&4)s.ctime=e._R(4)}if(s.mtime)s.mt=new Date(s.mtime*1e3)}break;}e.l=i;r[a]=s}return r}var f;function l(){return f||(f=require("fs"))}function o(e,r){if(e[0]==80&&e[1]==75)return Ie(e,r);if((e[0]|32)==109&&(e[1]|32)==105)return He(e,r);if(e.length<512)throw new Error("CFB file size "+e.length+" < 512");var t=3;var a=512;var n=0;var i=0;var s=0;var f=0;var l=0;var o=[];var v=e.slice(0,512);Qr(v,0);var m=c(v);t=m[0];switch(t){case 3:a=512;break;case 4:a=4096;break;case 0:if(m[1]==0)return Ie(e,r);default:throw new Error("Major Version: Expected 3 or 4 saw "+t);}if(a!==512){v=e.slice(0,a);Qr(v,28)}var g=e.slice(0,a);u(v,t);var w=v._R(4,"i");if(t===3&&w!==0)throw new Error("# Directory Sectors: Expected 0 saw "+w);v.l+=4;s=v._R(4,"i");v.l+=4;v.chk("00100000","Mini Stream Cutoff Size: ");f=v._R(4,"i");n=v._R(4,"i");l=v._R(4,"i");i=v._R(4,"i");for(var k=-1,S=0;S<109;++S){k=v._R(4,"i");if(k<0)break;o[S]=k}var B=h(e,a);p(l,i,B,a,o);var C=b(B,s,o,a);C[s].name="!Directory";if(n>0&&f!==L)C[f].name="!MiniFAT";C[o[0]].name="!FAT";C.fat_addrs=o;C.ssz=a;var y={},T=[],_=[],x=[];E(s,C,B,T,n,y,_,f);d(_,x,T);T.shift();var A={FileIndex:_,FullPaths:x};if(r&&r.raw)A.raw={header:g,sectors:B};return A}function c(e){if(e[e.l]==80&&e[e.l+1]==75)return[0,0];e.chk(M,"Header Signature: ");e.l+=16;var r=e._R(2,"u");return[e._R(2,"u"),r]}function u(e,r){var t=9;e.l+=2;switch(t=e._R(2)){case 9:if(r!=3)throw new Error("Sector Shift: Expected 9 saw "+t);break;case 12:if(r!=4)throw new Error("Sector Shift: Expected 12 saw "+t);break;default:throw new Error("Sector Shift: Expected 9 or 12 saw "+t);}e.chk("0600","Mini Sector Shift: ");e.chk("000000000000","Reserved: ")}function h(e,r){var t=Math.ceil(e.length/r)-1;var a=[];for(var n=1;n0&&s>=0){i.push(r.slice(s*N,s*N+N));n-=N;s=Gr(t,s*4)}if(i.length===0)return et(0);return F(i).slice(0,e.size)}function p(e,r,t,a,n){var i=L;if(e===L){if(r!==0)throw new Error("DIFAT chain shorter than expected")}else if(e!==-1){var s=t[e],f=(a>>>2)-1;if(!s)return;for(var l=0;l=0;){n[l]=true;i[i.length]=l;s.push(e[l]);var c=t[Math.floor(l*4/a)];o=l*4&f;if(a<4+o)throw new Error("FAT boundary crossed: "+l+" 4 "+a);if(!e[c])break;l=Gr(e[c],o)}return{nodes:i,data:gr([s])}}function b(e,r,t,a){var n=e.length,i=[];var s=[],f=[],l=[];var o=a-1,c=0,u=0,h=0,d=0;for(c=0;c=n)h-=n;if(s[h])continue;l=[];var v=[];for(u=h;u>=0;){v[u]=true;s[u]=true;f[f.length]=u;l.push(e[u]);var p=t[Math.floor(u*4/a)];d=u*4&o;if(a<4+d)throw new Error("FAT boundary crossed: "+u+" 4 "+a);if(!e[p])break;u=Gr(e[p],d);if(v[u])break}i[h]={nodes:f,data:gr([l])}}return i}function E(e,r,t,a,n,i,s,f){var l=0,o=a.length?2:0;var c=r[e].data;var u=0,h=0,d;for(;u0&&l!==L)r[l].name="!StreamData"}else if(b.size>=4096){b.storage="fat";if(r[b.start]===undefined)r[b.start]=m(t,b.start,r.fat_addrs,r.ssz);r[b.start].name=b.name;b.content=r[b.start].data.slice(0,b.size)}else{b.storage="minifat";if(b.size<0)b.size=0;else if(l!==L&&b.start!==L&&r[l]){b.content=v(b,r[l].data,(r[f]||{}).data)}}if(b.content)Qr(b.content,0);i[d]=b;s.push(b)}}function S(e,r){return new Date((Xr(e,r+4)/1e7*Math.pow(2,32)+Xr(e,r)/1e7-11644473600)*1e3)}function T(e,r){l();return o(f.readFileSync(e),r)}function _(e,r){var t=r&&r.type;if(!t){if(w&&Buffer.isBuffer(e))t="buffer"}switch(t||"base64"){case"file":return T(e,r);case"base64":return o(y(g.decode(e)),r);case"binary":return o(y(e),r);}return o(e,r)}function x(e,r){var t=r||{},a=t.root||"Root Entry";if(!e.FullPaths)e.FullPaths=[];if(!e.FileIndex)e.FileIndex=[];if(e.FullPaths.length!==e.FileIndex.length)throw new Error("inconsistent CFB structure");if(e.FullPaths.length===0){e.FullPaths[0]=a+"/";e.FileIndex[0]={name:a,type:5}}if(t.CLSID)e.FileIndex[0].clsid=t.CLSID;A(e)}function A(e){var r="Sh33tJ5";if(X.find(e,"/"+r))return;var t=et(4);t[0]=55;t[1]=t[3]=50;t[2]=54;e.FileIndex.push({name:r,type:2,content:t,size:4,L:69,R:69,C:69});e.FullPaths.push(e.FullPaths[0]+r);R(e)}function R(e,n){x(e);var i=false,s=false;for(var f=e.FullPaths.length-1;f>=0;--f){var l=e.FileIndex[f];switch(l.type){case 0:if(s)i=true;else{e.FileIndex.pop();e.FullPaths.pop()}break;case 1:;case 2:;case 5:s=true;if(isNaN(l.R*l.L*l.C))i=true;if(l.R>-1&&l.L>-1&&l.R==l.L)i=true;break;default:i=true;break;}}if(!i&&!n)return;var o=new Date(1987,1,19),c=0;var u=Object.create?Object.create(null):{};var h=[];for(f=0;f1?1:-1;v.size=0;v.type=5}else if(p.slice(-1)=="/"){for(c=f+1;c=h.length?-1:c;for(c=f+1;c=h.length?-1:c;v.type=1}else{if(t(e.FullPaths[f+1]||"")==t(p))v.R=f+1;v.type=2}}}function P(e,r){var t=r||{};if(t.fileType=="mad")return Ve(e,t);R(e);switch(t.fileType){case"zip":return Pe(e,t);}var a=function(e){var r=0,t=0;for(var a=0;a0){if(i<4096)r+=i+63>>6;else t+=i+511>>9}}var s=e.FullPaths.length+3>>2;var f=r+7>>3;var l=r+127>>7;var o=f+t+s+l;var c=o+127>>7;var u=c<=109?0:Math.ceil((c-109)/127);while(o+c+u+127>>7>c)u=++c<=109?0:Math.ceil((c-109)/127);var h=[1,u,c,l,s,t,r,0];e.FileIndex[0].size=r<<6;h[7]=(e.FileIndex[0].start=h[0]+h[1]+h[2]+h[3]+h[4]+h[5])+(h[6]+7>>3);return h}(e);var n=et(a[7]<<9);var i=0,s=0;{for(i=0;i<8;++i)n._W(1,U[i]);for(i=0;i<8;++i)n._W(2,0);n._W(2,62);n._W(2,3);n._W(2,65534);n._W(2,9);n._W(2,6);for(i=0;i<3;++i)n._W(2,0);n._W(4,0);n._W(4,a[2]);n._W(4,a[0]+a[1]+a[2]+a[3]-1);n._W(4,0);n._W(4,1<<12);n._W(4,a[3]?a[0]+a[1]+a[2]-1:L);n._W(4,a[3]);n._W(-4,a[1]?a[0]-1:L);n._W(4,a[1]);for(i=0;i<109;++i)n._W(-4,i>9)}f(a[6]+7>>3);while(n.l&511)n._W(-4,H.ENDOFCHAIN);s=i=0;for(l=0;l=4096)continue;c.start=s;f(o+63>>6)}while(n.l&511)n._W(-4,H.ENDOFCHAIN);for(i=0;i=4096){n.l=c.start+1<<9;if(w&&Buffer.isBuffer(c.content)){c.content.copy(n,n.l,0,c.size);n.l+=c.size+511&-512}else{for(l=0;l0&&c.size<4096){if(w&&Buffer.isBuffer(c.content)){c.content.copy(n,n.l,0,c.size);n.l+=c.size+63&-64}else{for(l=0;l>16|r>>8|r)&255}var re=typeof Uint8Array!=="undefined";var te=re?new Uint8Array(1<<8):[];for(var ae=0;ae<1<<8;++ae)te[ae]=ee(ae);function ne(e,r){var t=te[e&255];if(r<=8)return t>>>8-r;t=t<<8|te[e>>8&255];if(r<=16)return t>>>16-r;t=t<<8|te[e>>16&255];return t>>>24-r}function ie(e,r){var t=r&7,a=r>>>3;return(e[a]|(t<=6?0:e[a+1]<<8))>>>t&3}function se(e,r){var t=r&7,a=r>>>3;return(e[a]|(t<=5?0:e[a+1]<<8))>>>t&7}function fe(e,r){var t=r&7,a=r>>>3;return(e[a]|(t<=4?0:e[a+1]<<8))>>>t&15}function le(e,r){var t=r&7,a=r>>>3;return(e[a]|(t<=3?0:e[a+1]<<8))>>>t&31}function oe(e,r){var t=r&7,a=r>>>3;return(e[a]|(t<=1?0:e[a+1]<<8))>>>t&127}function ce(e,r,t){var a=r&7,n=r>>>3,i=(1<>>a;if(t<8-a)return s&i;s|=e[n+1]<<8-a;if(t<16-a)return s&i;s|=e[n+2]<<16-a;if(t<24-a)return s&i;s|=e[n+3]<<24-a;return s&i}function ue(e,r,t){var a=r&7,n=r>>>3;if(a<=5)e[n]|=(t&7)<>8-a}return r+3}function he(e,r,t){var a=r&7,n=r>>>3;t=(t&1)<>>3;t<<=a;e[n]|=t&255;t>>>=8;e[n+1]=t;return r+8}function ve(e,r,t){var a=r&7,n=r>>>3;t<<=a;e[n]|=t&255;t>>>=8;e[n+1]=t&255;e[n+2]=t>>>8;return r+16}function pe(e,r){var t=e.length,a=2*t>r?2*t:r+5,n=0;if(t>=r)return e;if(w){var i=C(a);if(e.copy)e.copy(i);else for(;n>a-u;for(s=(1<=0;--s)r[f|s<0)r[r.l++]=e[t++]}return r.l}function i(r,t){var n=0;var i=0;var s=re?new Uint16Array(32768):[];while(i0)t[t.l++]=r[i++];n=t.l*8;continue}n=ue(t,n,+!!(i+f==r.length)+2);var l=0;while(f-- >0){var o=r[i];l=(l<<5^o)&32767;var c=-1,u=0;if(c=s[l]){c|=i&~32767;if(c>i)c-=32768;if(c2){o=a[u];if(o<=22)n=de(t,n,te[o+1]>>1)-1;else{de(t,n,3);n+=5;de(t,n,te[o-23]>>5);n+=3}var h=o<8?0:o-4>>2;if(h>0){ve(t,n,u-Q[o]);n+=h}o=e[i-c];n=de(t,n,te[o]>>3);n-=3;var d=o<4?0:o-2>>1;if(d>0){ve(t,n,i-c-Z[o]);n+=d}for(var v=0;v>8-v;for(var p=(1<<7-v)-1;p>=0;--p)ye[d|p<>>=3){case 16:i=3+ie(e,r);r+=2;d=m[m.length-1];while(i-- >0)m.push(d);break;case 17:i=3+se(e,r);r+=3;while(i-- >0)m.push(0);break;case 18:i=11+oe(e,r);r+=7;while(i-- >0)m.push(0);break;default:m.push(d);if(l>>0;var f=0,l=0;while((a&1)==0){a=se(e,t);t+=3;if(a>>>1==0){if(t&7)t+=8-(t&7);var o=e[t>>>3]|e[(t>>>3)+1]<<8;t+=32;if(o>0){if(!r&&s0){n[i++]=e[t>>>3];t+=8}}continue}else if(a>>1==1){f=9;l=5}else{t=xe(e,t);f=Te;l=_e}for(;;){if(!r&&s>>1==1?ge[c]:Be[c];t+=u&15;u>>>=4;if((u>>>8&255)===0)n[i++]=u;else if(u==256)break;else{u-=257;var h=u<8?0:u-4>>2;if(h>5)h=0;var d=i+Q[u];if(h>0){d+=ce(e,t,h);t+=h}c=ce(e,t,l);u=a>>>1==1?we[c]:Ce[c];t+=u&15;u>>>=4;var v=u<4?0:u-2>>1;var p=Z[u];if(v>0){p+=ce(e,t,v);t+=v}if(!r&&s>>3];return[n.slice(0,i),t+7>>>3]}function Re(e,r){var t=e.slice(e.l||0);var a=Ae(t,r);e.l+=a[1];return a[0]}function Fe(e,r){if(e){if(typeof console!=="undefined")console.error(r)}else throw new Error(r)}function Ie(e,r){var t=e;Qr(t,0);var a=[],n=[];var i={FileIndex:a,FullPaths:n};x(i,{root:r.root});var f=t.length-4;while((t[f]!=80||t[f+1]!=75||t[f+2]!=5||t[f+3]!=6)&&f>=0)--f;t.l=f+4;t.l+=4;var l=t._R(2);t.l+=6;var o=t._R(4);t.l=o;for(f=0;f0){t=t.slice(0,t.length-1);t=t.slice(0,t.lastIndexOf("/")+1);if(i.slice(0,t.length)==t)break}}var s=(a[1]||"").match(/boundary="(.*?)"/);if(!s)throw new Error("MAD cannot find boundary");var f="--"+(s[1]||"");var l=[],o=[];var c={FileIndex:l,FullPaths:o};x(c);var u,h=0;for(n=0;n=32&&d<128)++u;var p=u>=h*4/5;n.push(a);n.push("Content-Location: "+(t.root||"file:///C:/SheetJS/")+s);n.push("Content-Transfer-Encoding: "+(p?"quoted-printable":"base64"));n.push("Content-Type: "+Ne(f,s));n.push("");n.push(p?Me(c):Le(c))}n.push(a+"--\r\n");return n.join("\r\n")}function Xe(e){var r={};x(r,e);return r}function Ge(e,r,t,n){var i=n&&n.unsafe;if(!i)x(e);var s=!i&&X.find(e,r);if(!s){var f=e.FullPaths[0];if(r.slice(0,f.length)==f)f=r;else{if(f.slice(-1)!="/")f+="/";f=(f+r).replace("//","/")}s={name:a(r),type:2};e.FileIndex.push(s);e.FullPaths.push(f);if(!i)X.utils.cfb_gc(e)}s.content=t;s.size=t?t.length:0;if(n){if(n.CLSID)s.clsid=n.CLSID;if(n.mt)s.mt=n.mt;if(n.ct)s.ct=n.ct}return s}function ze(e,r){x(e);var t=X.find(e,r);if(t)for(var a=0;a3)a=true;switch(n[i].slice(n[i].length-1)){case"Y":throw new Error("Unsupported ISO Duration Field: "+n[i].slice(n[i].length-1));case"D":t*=24;case"H":t*=60;case"M":if(!a)throw new Error("Unsupported ISO Duration Field: M");else t*=60;case"S":break;}r+=t*parseInt(n[i],10)}return r}var fe=new Date("2017-02-19T19:06:09.000Z"); -if(isNaN(fe.getFullYear()))fe=new Date("2/19/17");var le=fe.getFullYear()==2017;function oe(e,r){var t=new Date(e);if(le){if(r>0)t.setTime(t.getTime()+t.getTimezoneOffset()*60*1e3);else if(r<0)t.setTime(t.getTime()-t.getTimezoneOffset()*60*1e3);return t}if(e instanceof Date)return e;if(fe.getFullYear()==1917&&!isNaN(t.getFullYear())){var a=t.getFullYear();if(e.indexOf(""+a)>-1)return t;t.setFullYear(t.getFullYear()+100);return t}var n=e.match(/\d+/g)||["2017","2","19","0","0","0"];var i=new Date(+n[0],+n[1]-1,+n[2],+n[3]||0,+n[4]||0,+n[5]||0);if(e.indexOf("Z")>-1)i=new Date(i.getTime()-i.getTimezoneOffset()*60*1e3);return i}function ce(e,r){if(w&&Buffer.isBuffer(e)){if(r){if(e[0]==255&&e[1]==254)return e.slice(2).toString("utf16le");if(e[1]==254&&e[2]==255)return h(e.slice(2).toString("binary"))}return e.toString("binary")}var t=[];for(var a=0;a!=e.length;++a)t.push(String.fromCharCode(e[a]));return t.join("")}function ue(e){if(typeof JSON!="undefined"&&!Array.isArray(e))return JSON.parse(JSON.stringify(e));if(typeof e!="object"||e==null)return e;if(e instanceof Date)return new Date(e.getTime());var r={};for(var t in e)if(Object.prototype.hasOwnProperty.call(e,t))r[t]=ue(e[t]);return r}function he(e,r){var t="";while(t.length3&&ve.indexOf(s)==-1)return t}else if(s.match(/[a-z]/))return t;if(a<0||a>8099)return t;if((n>0||i>1)&&a!=101)return r;if(e.match(/[^-0-9:,\/\\]/))return t;return r}var me="abacaba".split(/(:?b)/i).length==5;function be(e,r,t){if(me||typeof r=="string")return e.split(r);var a=e.split(r),n=[a[0]];for(var i=1;i\/]+)\s*=\s*((?:")([^"]*)(?:")|(?:')([^']*)(?:')|([^'">\s]+))/g;var De=/<[\/\?]?[a-zA-Z0-9:_-]+(?:\s+[^"\s?>\/]+\s*=\s*(?:"[^"]*"|'[^']*'|[^'">\s=]+))*\s*[\/\?]?>/gm;if(!Fe.match(De))De=/<[^>]*>/g;var Pe=/<\w*:/,Oe=/<(\/?)\w+:/;function Ne(e,r,t){var a={};var n=0,i=0;for(;n!==e.length;++n)if((i=e.charCodeAt(n))===32||i===10||i===13)break;if(!r)a[0]=e.slice(0,n);if(n===e.length)return a;var s=e.match(Ie),f=0,l="",o=0,c="",u="",h=1;if(s)for(o=0;o!=s.length;++o){u=s[o];for(i=0;i!=u.length;++i)if(u.charCodeAt(i)===61)break;c=u.slice(0,i).trim();while(u.charCodeAt(i+1)==32)++i;h=(n=u.charCodeAt(i+1))==34||n==39?1:0;l=u.slice(i+1+h,u.length-h);for(f=0;f!=c.length;++f)if(c.charCodeAt(f)===58)break;if(f===c.length){if(c.indexOf("_")>0)c=c.slice(0,c.indexOf("_"));a[c]=l;if(!t)a[c.toLowerCase()]=l}else{var d=(f===5&&c.slice(0,5)==="xmlns"?"xmlns":"")+c.slice(f+1);if(a[d]&&c.slice(f-3,f)=="ext")continue;a[d]=l;if(!t)a[d.toLowerCase()]=l}}return a}function Le(e){return e.replace(Oe,"<$1")}var Me={""":'"',"'":"'",">":">","<":"<","&":"&"};var Ue=q(Me);var We=function(){var e=/&(?:quot|apos|gt|lt|amp|#x?([\da-fA-F]+));/gi,r=/_x([\da-fA-F]{4})_/gi;return function t(a){var n=a+"",i=n.indexOf("-1?16:10))||e}).replace(r,function(e,r){return String.fromCharCode(parseInt(r,16))});var s=n.indexOf("]]>");return t(n.slice(0,i))+n.slice(i+9,s)+t(n.slice(s+3))}}();var He=/[&<>'"]/g,Ve=/[\u0000-\u0008\u000b-\u001f]/g;function Xe(e){var r=e+"";return r.replace(He,function(e){return Ue[e]}).replace(Ve,function(e){return"_x"+("000"+e.charCodeAt(0).toString(16)).slice(-4)+"_"})}function Ge(e){return Xe(e).replace(/ /g,"_x0020_")}var ze=/[\u0000-\u001f]/g;function je(e){var r=e+"";return r.replace(He,function(e){return Ue[e]}).replace(/\n/g,"
").replace(ze,function(e){return"&#x"+("000"+e.charCodeAt(0).toString(16)).slice(-4)+";"})}function $e(e){var r=e+"";return r.replace(He,function(e){return Ue[e]}).replace(ze,function(e){return"&#x"+e.charCodeAt(0).toString(16).toUpperCase()+";"})}var Ke=function(){var e=/&#(\d+);/g;function r(e,r){return String.fromCharCode(parseInt(r,10))}return function t(a){return a.replace(e,r)}}();var Ye=function(){return function e(r){return r.replace(/(\r\n|[\r\n])/g," ")}}();function Je(e){switch(e){case 1:;case true:;case"1":;case"true":;case"TRUE":return true;default:return false;}}var qe=function Kb(e){var r="",t=0,a=0,n=0,i=0,s=0,f=0;while(t191&&a<224){s=(a&31)<<6;s|=n&63;r+=String.fromCharCode(s);continue}i=e.charCodeAt(t++);if(a<240){r+=String.fromCharCode((a&15)<<12|(n&63)<<6|i&63);continue}s=e.charCodeAt(t++);f=((a&7)<<18|(n&63)<<12|(i&63)<<6|s&63)-65536;r+=String.fromCharCode(55296+(f>>>10&1023));r+=String.fromCharCode(56320+(f&1023))}return r};var Qe=function(e){var r=[],t=0,a=0,n=0;while(t>6)));r.push(String.fromCharCode(128+(a&63)));break;case a>=55296&&a<57344:a-=55296;n=e.charCodeAt(t++)-56320+(a<<10);r.push(String.fromCharCode(240+(n>>18&7)));r.push(String.fromCharCode(144+(n>>12&63)));r.push(String.fromCharCode(128+(n>>6&63)));r.push(String.fromCharCode(128+(n&63)));break;default:r.push(String.fromCharCode(224+(a>>12)));r.push(String.fromCharCode(128+(a>>6&63)));r.push(String.fromCharCode(128+(a&63)));}}return r.join("")};if(w){var Ze=function Yb(e){var r=Buffer.alloc(2*e.length),t,a,n=1,i=0,s=0,f;for(a=0;a>>10&1023);t=56320+(t&1023)}if(s!==0){r[i++]=s&255;r[i++]=s>>>8;s=0}r[i++]=t%256;r[i++]=t>>>8}return r.slice(0,i).toString("ucs2")};var er="foo bar baz☃🍣";if(qe(er)==Ze(er))qe=Ze;var rr=function Jb(e){return k(e,"binary").toString("utf8")};if(qe(er)==rr(er))qe=rr;Qe=function(e){return k(e,"utf8").toString("binary")}}var tr=function(){var e={};return function r(t,a){var n=t+"|"+(a||"");if(e[n])return e[n];return e[n]=new RegExp("<(?:\\w+:)?"+t+'(?: xml:space="preserve")?(?:[^>]*)>([\\s\\S]*?)",a||"")}}();var ar=function(){var e=[["nbsp"," "],["middot","·"],["quot",'"'],["apos","'"],["gt",">"],["lt","<"],["amp","&"]].map(function(e){return[new RegExp("&"+e[0]+";","ig"),e[1]]});return function r(t){var a=t.replace(/^[\t\n\r ]+/,"").replace(/[\t\n\r ]+$/,"").replace(/>\s+/g,">").replace(/\s+/g,"\n").replace(/<[^>]*>/g,"");for(var n=0;n([\\s\\S]*?)","g")}}();var ir=/<\/?(?:vt:)?variant>/g,sr=/<(?:vt:)([^>]*)>([\s\S]*)"+r+""}function cr(e){return Y(e).map(function(r){return" "+r+'="'+e[r]+'"'}).join("")}function ur(e,r,t){return"<"+e+(t!=null?cr(t):"")+(r!=null?(r.match(lr)?' xml:space="preserve"':"")+">"+r+""}function hr(e,r){try{return e.toISOString().replace(/\.\d*/,"")}catch(t){if(r)throw t}return""}function dr(e,r){switch(typeof e){case"string":var t=ur("vt:lpwstr",Xe(e));if(r)t=t.replace(/"/g,"_x0022_");return t;case"number":return ur((e|0)==e?"vt:i4":"vt:r8",Xe(String(e)));case"boolean":return ur("vt:bool",e?"true":"false");}if(e instanceof Date)return ur("vt:filetime",hr(e));throw new Error("Unable to serialize "+e)}var vr={dc:"http://purl.org/dc/elements/1.1/",dcterms:"http://purl.org/dc/terms/",dcmitype:"http://purl.org/dc/dcmitype/",mx:"http://schemas.microsoft.com/office/mac/excel/2008/main",r:"http://schemas.openxmlformats.org/officeDocument/2006/relationships",sjs:"http://schemas.openxmlformats.org/package/2006/sheetjs/core-properties",vt:"http://schemas.openxmlformats.org/officeDocument/2006/docPropsVTypes",xsi:"http://www.w3.org/2001/XMLSchema-instance",xsd:"http://www.w3.org/2001/XMLSchema"};vr.main=["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"];var pr={o:"urn:schemas-microsoft-com:office:office",x:"urn:schemas-microsoft-com:office:excel",ss:"urn:schemas-microsoft-com:office:spreadsheet",dt:"uuid:C2F41010-65B3-11d1-A29F-00AA00C14882",mv:"http://macVmlSchemaUri",v:"urn:schemas-microsoft-com:vml",html:"http://www.w3.org/TR/REC-html40"};function mr(e,r){var t=1-2*(e[r+7]>>>7);var a=((e[r+7]&127)<<4)+(e[r+6]>>>4&15);var n=e[r+6]&15;for(var i=5;i>=0;--i)n=n*256+e[r+i];if(a==2047)return n==0?t*Infinity:NaN;if(a==0)a=-1022;else{a-=1023;n+=Math.pow(2,52)}return t*Math.pow(2,a-52)*n}function br(e,r,t){var a=(r<0||1/r==-Infinity?1:0)<<7,n=0,i=0;var s=a?-r:r;if(!isFinite(s)){n=2047;i=isNaN(r)?26985:0}else if(s==0)n=i=0;else{n=Math.floor(Math.log(s)/Math.LN2);i=s*Math.pow(2,52-n);if(n<=-1023&&(!isFinite(i)||i>4|a}var gr=function(e){var r=[],t=10240;for(var a=0;a0?Cr(e,r+4,r+4+t-1):""};var _r=Tr;var xr=function(e,r){var t=Xr(e,r);return t>0?Cr(e,r+4,r+4+t-1):""};var Ar=xr;var Rr=function(e,r){var t=2*Xr(e,r);return t>0?Cr(e,r+4,r+4+t-1):""};var Fr=Rr;var Ir,Dr;Ir=Dr=function qb(e,r){var t=Xr(e,r);return t>0?kr(e,r+4,r+4+t):""};var Pr=function(e,r){var t=Xr(e,r);return t>0?Cr(e,r+4,r+4+t):""};var Or=Pr;var Nr,Lr;Nr=Lr=function(e,r){return mr(e,r)};var Mr=function Qb(e){return Array.isArray(e)||typeof Uint8Array!=="undefined"&&e instanceof Uint8Array};if(w){kr=function(e,r,t){if(!Buffer.isBuffer(e))return Er(e,r,t);return e.toString("utf16le",r,t).replace(I,"")};Sr=function(e,r,t){return Buffer.isBuffer(e)?e.toString("hex",r,r+t):Br(e,r,t)};Tr=function Zb(e,r){if(!Buffer.isBuffer(e))return _r(e,r);var t=e.readUInt32LE(r);return t>0?e.toString("utf8",r+4,r+4+t-1):""};xr=function eg(e,r){if(!Buffer.isBuffer(e))return Ar(e,r);var t=e.readUInt32LE(r);return t>0?e.toString("utf8",r+4,r+4+t-1):""};Rr=function rg(e,r){if(!Buffer.isBuffer(e))return Fr(e,r);var t=2*e.readUInt32LE(r);return e.toString("utf16le",r+4,r+4+t-1)};Ir=function tg(e,r){if(!Buffer.isBuffer(e))return Dr(e,r);var t=e.readUInt32LE(r);return e.toString("utf16le",r+4,r+4+t)};Pr=function ag(e,r){if(!Buffer.isBuffer(e))return Or(e,r);var t=e.readUInt32LE(r);return e.toString("utf8",r+4,r+4+t)};Cr=function ng(e,r,t){return Buffer.isBuffer(e)?e.toString("utf8",r,t):yr(e,r,t)};gr=function(e){return e[0].length>0&&Buffer.isBuffer(e[0][0])?Buffer.concat(e[0].map(function(e){return Buffer.isBuffer(e)?e:k(e)})):wr(e)};F=function(e){return Buffer.concat(e.map(function(e){return Buffer.isBuffer(e)?e:k(e)}))};Nr=function ig(e,r){if(Buffer.isBuffer(e))return e.readDoubleLE(r);return Lr(e,r)};Mr=function sg(e){return Buffer.isBuffer(e)||Array.isArray(e)||typeof Uint8Array!=="undefined"&&e instanceof Uint8Array}}function Ur(){kr=function(e,r,t){return cptable.utils.decode(1200,e.slice(r,t)).replace(I,"")};Cr=function(e,r,t){return cptable.utils.decode(65001,e.slice(r,t))};Tr=function(e,r){var a=Xr(e,r);return a>0?cptable.utils.decode(t,e.slice(r+4,r+4+a-1)):""};xr=function(e,t){var a=Xr(e,t);return a>0?cptable.utils.decode(r,e.slice(t+4,t+4+a-1)):""};Rr=function(e,r){var t=2*Xr(e,r);return t>0?cptable.utils.decode(1200,e.slice(r+4,r+4+t-1)):""};Ir=function(e,r){var t=Xr(e,r);return t>0?cptable.utils.decode(1200,e.slice(r+4,r+4+t)):""};Pr=function(e,r){var t=Xr(e,r);return t>0?cptable.utils.decode(65001,e.slice(r+4,r+4+t)):""}}if(typeof cptable!=="undefined")Ur();var Wr=function(e,r){return e[r]};var Hr=function(e,r){return e[r+1]*(1<<8)+e[r]};var Vr=function(e,r){var t=e[r+1]*(1<<8)+e[r];return t<32768?t:(65535-t+1)*-1};var Xr=function(e,r){return e[r+3]*(1<<24)+(e[r+2]<<16)+(e[r+1]<<8)+e[r]};var Gr=function(e,r){return e[r+3]<<24|e[r+2]<<16|e[r+1]<<8|e[r]};var zr=function(e,r){return e[r]<<24|e[r+1]<<16|e[r+2]<<8|e[r+3]};function jr(e,t){var a="",n,i,s=[],f,l,o,c;switch(t){case"dbcs":c=this.l;if(w&&Buffer.isBuffer(this))a=this.slice(this.l,this.l+2*e).toString("utf16le");else for(o=0;o0?Gr:zr)(this,this.l);this.l+=4;return n}else{i=Xr(this,this.l);this.l+=4}return i;case 8:;case-8:if(t==="f"){if(e==8)i=Nr(this,this.l);else i=Nr([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;return i}else e=8;case 16:a=Sr(this,this.l,e);break;};}this.l+=e;return a}var $r=function(e,r,t){e[t]=r&255;e[t+1]=r>>>8&255;e[t+2]=r>>>16&255;e[t+3]=r>>>24&255};var Kr=function(e,r,t){e[t]=r&255;e[t+1]=r>>8&255;e[t+2]=r>>16&255;e[t+3]=r>>24&255};var Yr=function(e,r,t){e[t]=r&255;e[t+1]=r>>>8&255};function Jr(e,r,a){var n=0,i=0;if(a==="dbcs"){for(i=0;i!=r.length;++i)Yr(this,r.charCodeAt(i),this.l+2*i);n=2*r.length}else if(a==="sbcs"){if(typeof cptable!=="undefined"&&t==874){for(i=0;i!=r.length;++i){var s=cptable.utils.encode(t,r.charAt(i));this[this.l+i]=s[0]}}else{r=r.replace(/[^\x00-\x7F]/g,"_");for(i=0;i!=r.length;++i)this[this.l+i]=r.charCodeAt(i)&255}n=r.length}else if(a==="hex"){for(;i>8}while(this.l>>=8;this[this.l+1]=r&255;break;case 3:n=3;this[this.l]=r&255;r>>>=8;this[this.l+1]=r&255;r>>>=8;this[this.l+2]=r&255;break;case 4:n=4;$r(this,r,this.l);break;case 8:n=8;if(a==="f"){br(this,r,this.l);break};case 16:break;case-4:n=4;Kr(this,r,this.l);break;}this.l+=n;return this}function qr(e,r){var t=Sr(this,this.l,e.length>>1);if(t!==e)throw new Error(r+"Expected "+e+" saw "+t);this.l+=e.length>>1}function Qr(e,r){e.l=r;e._R=jr;e.chk=qr;e._W=Jr}function Zr(e,r){e.l+=r}function et(e){var r=B(e);Qr(r,0);return r}function rt(e,r,t){if(!e)return;var a,n,i;Qr(e,e.l||0);var s=e.length,f=0,l=0;while(e.la.l){a=a.slice(0,a.l);a.l=a.length}if(a.length>0)e.push(a);a=null};var i=function c(e){if(a&&e=128?1:0)+1;if(a>=128)++i;if(a>=16384)++i;if(a>=2097152)++i;var s=e.next(i);if(n<=127)s._W(1,n);else{s._W(1,(n&127)+128);s._W(1,n>>7)}for(var f=0;f!=4;++f){if(a>=128){s._W(1,(a&127)+128);a>>=7}else{s._W(1,a);break}}if(a>0&&Mr(t))e.push(t)}function nt(e,r,t){var a=ue(e);if(r.s){if(a.cRel)a.c+=r.s.c;if(a.rRel)a.r+=r.s.r}else{if(a.cRel)a.c+=r.c;if(a.rRel)a.r+=r.r}if(!t||t.biff<12){while(a.c>=256)a.c-=256;while(a.r>=65536)a.r-=65536}return a}function it(e,r,t){var a=ue(e);a.s=nt(a.s,r.s,t);a.e=nt(a.e,r.s,t);return a}function st(e,r){if(e.cRel&&e.c<0){e=ue(e);while(e.c<0)e.c+=r>8?16384:256}if(e.rRel&&e.r<0){e=ue(e);while(e.r<0)e.r+=r>8?1048576:r>5?65536:16384}var t=kt(e);if(!e.cRel&&e.cRel!=null)t=mt(t);if(!e.rRel&&e.rRel!=null)t=ht(t);return t}function ft(e,r){if(e.s.r==0&&!e.s.rRel){if(e.e.r==(r.biff>=12?1048575:r.biff>=8?65536:16384)&&!e.e.rRel){return(e.s.cRel?"":"$")+pt(e.s.c)+":"+(e.e.cRel?"":"$")+pt(e.e.c)}}if(e.s.c==0&&!e.s.cRel){if(e.e.c==(r.biff>=12?16383:255)&&!e.e.cRel){return(e.s.rRel?"":"$")+ut(e.s.r)+":"+(e.e.rRel?"":"$")+ut(e.e.r)}}return st(e.s,r.biff)+":"+st(e.e,r.biff)}var lt={};var ot=function(e,r){var t;if(typeof r!=="undefined")t=r;else if(typeof require!=="undefined"){try{t=undefined}catch(a){t=null}}e.rc4=function(e,r){var t=new Array(256);var a=0,n=0,i=0,s=0;for(n=0;n!=256;++n)t[n]=n;for(n=0;n!=256;++n){i=i+t[n]+e[n%e.length].charCodeAt(0)&255;s=t[n];t[n]=t[i];t[i]=s}n=i=0;var f=B(r.length);for(a=0;a!=r.length;++a){n=n+1&255;i=(i+t[n])%256;s=t[n];t[n]=t[i];t[i]=s;f[a]=r[a]^t[t[n]+t[i]&255]}return f};e.md5=function(e){if(!t)throw new Error("Unsupported crypto");return t.createHash("md5").update(e).digest("hex")}};ot(lt,typeof crypto!=="undefined"?crypto:undefined);function ct(e){return parseInt(dt(e),10)-1}function ut(e){return""+(e+1)}function ht(e){return e.replace(/([A-Z]|^)(\d+)$/,"$1$$$2")}function dt(e){return e.replace(/\$(\d+)$/,"$1")}function vt(e){var r=bt(e),t=0,a=0;for(;a!==r.length;++a)t=26*t+r.charCodeAt(a)-64;return t-1}function pt(e){if(e<0)throw new Error("invalid column "+e);var r="";for(++e;e;e=Math.floor((e-1)/26))r=String.fromCharCode((e-1)%26+65)+r;return r}function mt(e){return e.replace(/^([A-Z])/,"$$$1")}function bt(e){return e.replace(/^\$([A-Z])/,"$1")}function gt(e){return e.replace(/(\$?[A-Z]*)(\$?\d*)/,"$1,$2").split(",")}function wt(e){var r=0,t=0;for(var a=0;a=48&&n<=57)r=10*r+(n-48);else if(n>=65&&n<=90)t=26*t+(n-64)}return{c:t-1,r:r-1}}function kt(e){var r=e.c+1;var t="";for(;r;r=(r-1)/26|0)t=String.fromCharCode((r-1)%26+65)+t;return t+(e.r+1)}function Et(e){var r=e.indexOf(":");if(r==-1)return{s:wt(e),e:wt(e)};return{s:wt(e.slice(0,r)),e:wt(e.slice(r+1))}}function St(e,r){if(typeof r==="undefined"||typeof r==="number"){return St(e.s,e.e)}if(typeof e!=="string")e=kt(e);if(typeof r!=="string")r=kt(r);return e==r?e:e+":"+r}function Bt(e){var r={s:{c:0,r:0},e:{c:0,r:0}};var t=0,a=0,n=0;var i=e.length;for(t=0;a26)break;t=26*t+n}r.s.c=--t;for(t=0;a9)break;t=10*t+n}r.s.r=--t;if(a===i||n!=10){r.e.c=r.s.c;r.e.r=r.s.r;return r}++a;for(t=0;a!=i;++a){if((n=e.charCodeAt(a)-64)<1||n>26)break;t=26*t+n}r.e.c=--t;for(t=0;a!=i;++a){if((n=e.charCodeAt(a)-48)<0||n>9)break;t=10*t+n}r.e.r=--t;return r}function Ct(e,r){var t=e.t=="d"&&r instanceof Date;if(e.z!=null)try{return e.w=P.format(e.z,t?re(r):r)}catch(a){}try{return e.w=P.format((e.XF||{}).numFmtId||(t?14:0),t?re(r):r)}catch(a){return""+r}}function yt(e,r,t){if(e==null||e.t==null||e.t=="z")return"";if(e.w!==undefined)return e.w;if(e.t=="d"&&!e.z&&t&&t.dateNF)e.z=t.dateNF;if(e.t=="e")return Ia[e.v]||e.v;if(r==undefined)return Ct(e,e.v);return Ct(e,r)}function Tt(e,r){var t=r&&r.sheet?r.sheet:"Sheet1";var a={};a[t]=e;return{SheetNames:[t],Sheets:a}}function _t(e,r,t){var a=t||{};var n=e?Array.isArray(e):a.dense;if(m!=null&&n==null)n=m;var i=e||(n?[]:{});var s=0,f=0;if(i&&a.origin!=null){if(typeof a.origin=="number")s=a.origin;else{var l=typeof a.origin=="string"?wt(a.origin):a.origin;s=l.r;f=l.c}if(!i["!ref"])i["!ref"]="A1:A1"}var o={s:{c:1e7,r:1e7},e:{c:0,r:0}};if(i["!ref"]){var c=Bt(i["!ref"]);o.s.c=c.s.c;o.s.r=c.s.r;o.e.c=Math.max(o.e.c,c.e.c);o.e.r=Math.max(o.e.r,c.e.r);if(s==-1)o.e.r=s=c.e.r+1}for(var u=0;u!=r.length;++u){if(!r[u])continue;if(!Array.isArray(r[u]))throw new Error("aoa_to_sheet expects an array of arrays");for(var h=0;h!=r[u].length;++h){if(typeof r[u][h]==="undefined")continue;var d={v:r[u][h]};var v=s+u,p=f+h;if(o.s.r>v)o.s.r=v;if(o.s.c>p)o.s.c=p;if(o.e.r0)r._W(0,e,"dbcs");return t?r.slice(0,r.l):r}function It(e){return{ich:e._R(2),ifnt:e._R(2)}}function Dt(e,r){if(!r)r=et(4);r._W(2,e.ich||0);r._W(2,e.ifnt||0);return r}function Pt(e,r){var t=e.l;var a=e._R(1);var n=Rt(e);var i=[];var s={t:n,h:n};if((a&1)!==0){var f=e._R(4);for(var l=0;l!=f;++l)i.push(It(e));s.r=i}else s.r=[{ich:0,ifnt:0}];e.l=t+r;return s}function Ot(e,r){var t=false;if(r==null){t=true;r=et(15+4*e.t.length)}r._W(1,0);Ft(e.t,r);return t?r.slice(0,r.l):r}var Nt=Pt;function Lt(e,r){var t=false;if(r==null){t=true;r=et(23+4*e.t.length)}r._W(1,1);Ft(e.t,r);r._W(4,1);Dt({ich:0,ifnt:0},r);return t?r.slice(0,r.l):r}function Mt(e){var r=e._R(4);var t=e._R(2);t+=e._R(1)<<16;e.l++;return{c:r,iStyleRef:t}}function Ut(e,r){if(r==null)r=et(8);r._W(-4,e.c);r._W(3,e.iStyleRef||e.s);r._W(1,0);return r}function Wt(e){var r=e._R(2);r+=e._R(1)<<16;e.l++;return{c:-1,iStyleRef:r}}function Ht(e,r){if(r==null)r=et(4);r._W(3,e.iStyleRef||e.s);r._W(1,0);return r}var Vt=Rt;var Xt=Ft;function Gt(e){var r=e._R(4);return r===0||r===4294967295?"":e._R(r,"dbcs")}function zt(e,r){var t=false;if(r==null){t=true;r=et(127)}r._W(4,e.length>0?e.length:4294967295);if(e.length>0)r._W(0,e,"dbcs");return t?r.slice(0,r.l):r}var jt=Rt;var $t=Gt;var Kt=zt;function Yt(e){var r=e.slice(e.l,e.l+4);var t=r[0]&1,a=r[0]&2;e.l+=4;var n=a===0?Nr([0,0,0,0,r[0]&252,r[1],r[2],r[3]],0):Gr(r,0)>>2;return t?n/100:n}function Jt(e,r){if(r==null)r=et(4);var t=0,a=0,n=e*100;if(e==(e|0)&&e>=-(1<<29)&&e<1<<29){a=1}else if(n==(n|0)&&n>=-(1<<29)&&n<1<<29){a=1;t=1}if(a)r._W(-4,((t?n:e)<<2)+(t+2));else throw new Error("unsupported RkNumber "+e)}function qt(e){var r={s:{},e:{}};r.s.r=e._R(4);r.e.r=e._R(4);r.s.c=e._R(4);r.e.c=e._R(4);return r}function Qt(e,r){if(!r)r=et(16);r._W(4,e.s.r);r._W(4,e.e.r);r._W(4,e.s.c);r._W(4,e.e.c);return r}var Zt=qt;var ea=Qt;function ra(e){if(e.length-e.l<8)throw"XLS Xnum Buffer underflow";return e._R(8,"f")}function ta(e,r){return(r||et(8))._W(8,e,"f")}function aa(e){var r={};var t=e._R(1);var a=t>>>1;var n=e._R(1);var i=e._R(2,"i");var s=e._R(1);var f=e._R(1);var l=e._R(1);e.l++;switch(a){case 0:r.auto=1;break;case 1:r.index=n;var o=Fa[n];if(o)r.rgb=dl(o);break;case 2:r.rgb=dl([s,f,l]);break;case 3:r.theme=n;break;}if(i!=0)r.tint=i>0?i/32767:i/32768;return r}function na(e,r){if(!r)r=et(8);if(!e||e.auto){r._W(4,0);r._W(4,0);return r}if(e.index!=null){r._W(1,2);r._W(1,e.index)}else if(e.theme!=null){r._W(1,6);r._W(1,e.theme)}else{r._W(1,5);r._W(1,0)}var t=e.tint||0;if(t>0)t*=32767;else if(t<0)t*=32768;r._W(2,t);if(!e.rgb||e.theme!=null){r._W(2,0);r._W(1,0);r._W(1,0)}else{var a=e.rgb||"FFFFFF";if(typeof a=="number")a=("000000"+a.toString(16)).slice(-6);r._W(1,parseInt(a.slice(0,2),16));r._W(1,parseInt(a.slice(2,4),16));r._W(1,parseInt(a.slice(4,6),16));r._W(1,255)}return r}function ia(e){var r=e._R(1);e.l++;var t={fBold:r&1,fItalic:r&2,fUnderline:r&4,fStrikeout:r&8,fOutline:r&16,fShadow:r&32,fCondense:r&64,fExtend:r&128};return t}function sa(e,r){if(!r)r=et(2);var t=(e.italic?2:0)|(e.strike?8:0)|(e.outline?16:0)|(e.shadow?32:0)|(e.condense?64:0)|(e.extend?128:0);r._W(1,t);r._W(1,0);return r}function fa(e,r){var t={2:"BITMAP",3:"METAFILEPICT",8:"DIB",14:"ENHMETAFILE"};var a=e._R(4);switch(a){case 0:return"";case 4294967295:;case 4294967294:return t[e._R(4)]||"";}if(a>400)throw new Error("Unsupported Clipboard: "+a.toString(16));e.l-=4;return e._R(0,r==1?"lpstr":"lpwstr")}function la(e){return fa(e,1)}function oa(e){return fa(e,2)}var ca=2;var ua=3;var ha=11;var da=12;var va=19;var pa=30;var ma=64;var ba=65;var ga=71;var wa=4096;var ka=80;var Ea=81;var Sa=[ka,Ea];var Ba={1:{n:"CodePage",t:ca},2:{n:"Category",t:ka},3:{n:"PresentationFormat",t:ka},4:{n:"ByteCount",t:ua},5:{n:"LineCount",t:ua},6:{n:"ParagraphCount",t:ua},7:{n:"SlideCount",t:ua},8:{n:"NoteCount",t:ua},9:{n:"HiddenCount",t:ua},10:{n:"MultimediaClipCount",t:ua},11:{n:"ScaleCrop",t:ha},12:{n:"HeadingPairs",t:wa|da},13:{n:"TitlesOfParts",t:wa|pa},14:{n:"Manager",t:ka},15:{n:"Company",t:ka},16:{n:"LinksUpToDate",t:ha},17:{n:"CharacterCount",t:ua},19:{n:"SharedDoc",t:ha},22:{n:"HyperlinksChanged",t:ha},23:{n:"AppVersion",t:ua,p:"version"},24:{n:"DigSig",t:ba},26:{n:"ContentType",t:ka},27:{n:"ContentStatus",t:ka},28:{n:"Language",t:ka},29:{n:"Version",t:ka},255:{},2147483648:{n:"Locale",t:va},2147483651:{n:"Behavior",t:va},1919054434:{}};var Ca={1:{n:"CodePage",t:ca},2:{n:"Title",t:ka},3:{n:"Subject",t:ka},4:{n:"Author",t:ka},5:{n:"Keywords",t:ka},6:{n:"Comments",t:ka},7:{n:"Template",t:ka},8:{n:"LastAuthor",t:ka},9:{n:"RevNumber",t:ka},10:{n:"EditTime",t:ma},11:{n:"LastPrinted",t:ma},12:{n:"CreatedDate",t:ma},13:{n:"ModifiedDate",t:ma},14:{n:"PageCount",t:ua},15:{n:"WordCount",t:ua},16:{n:"CharCount",t:ua},17:{n:"Thumbnail",t:ga},18:{n:"Application",t:ka},19:{n:"DocSecurity",t:ua},255:{},2147483648:{n:"Locale",t:va},2147483651:{n:"Behavior",t:va},1919054434:{}};var ya=J(Ba,"n");var Ta=J(Ca,"n");var _a={1:"US",2:"CA",3:"",7:"RU",20:"EG",30:"GR",31:"NL",32:"BE",33:"FR",34:"ES",36:"HU",39:"IT",41:"CH",43:"AT",44:"GB",45:"DK",46:"SE",47:"NO",48:"PL",49:"DE",52:"MX",55:"BR",61:"AU",64:"NZ",66:"TH",81:"JP",82:"KR",84:"VN",86:"CN",90:"TR",105:"JS",213:"DZ",216:"MA",218:"LY",351:"PT",354:"IS",358:"FI",420:"CZ",886:"TW",961:"LB",962:"JO",963:"SY",964:"IQ",965:"KW",966:"SA",971:"AE",972:"IL",974:"QA",981:"IR",65535:"US"};var xa=[null,"solid","mediumGray","darkGray","lightGray","darkHorizontal","darkVertical","darkDown","darkUp","darkGrid","darkTrellis","lightHorizontal","lightVertical","lightDown","lightUp","lightGrid","lightTrellis","gray125","gray0625"]; -function Aa(e){return e.map(function(e){return[e>>16&255,e>>8&255,e&255]})}var Ra=Aa([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]);var Fa=ue(Ra);var Ia={0:"#NULL!",7:"#DIV/0!",15:"#VALUE!",23:"#REF!",29:"#NAME?",36:"#NUM!",42:"#N/A",43:"#GETTING_DATA",255:"#WTF?"};var Da=Q(Ia);var Pa={"application/vnd.openxmlformats-officedocument.spreadsheetml.sheet.main+xml":"workbooks","application/vnd.ms-excel.binIndexWs":"TODO","application/vnd.ms-excel.intlmacrosheet":"TODO","application/vnd.ms-excel.binIndexMs":"TODO","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.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.sheetMetadata":"TODO","application/vnd.openxmlformats-officedocument.spreadsheetml.sheetMetadata+xml":"TODO","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"};var Oa=function(){var e={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"},styles:{xlsx:"application/vnd.openxmlformats-officedocument.spreadsheetml.styles+xml",xlsb:"application/vnd.ms-excel.styles"}};Y(e).forEach(function(r){["xlsm","xlam"].forEach(function(t){if(!e[r][t])e[r][t]=e[r].xlsx})});Y(e).forEach(function(r){Y(e[r]).forEach(function(t){Pa[e[r][t]]=r})});return e}();var Na=Z(Pa);vr.CT="http://schemas.openxmlformats.org/package/2006/content-types";function La(){return{workbooks:[],sheets:[],charts:[],dialogs:[],macros:[],rels:[],strs:[],comments:[],links:[],coreprops:[],extprops:[],custprops:[],themes:[],styles:[],calcchains:[],vba:[],drawings:[],TODO:[],xmlns:""}}function Ma(e){var r=La();if(!e||!e.match)return r;var t={};(e.match(De)||[]).forEach(function(e){var a=Ne(e);switch(a[0].replace(Pe,"<")){case"0?r.calcchains[0]:"";r.sst=r.strs.length>0?r.strs[0]:"";r.style=r.styles.length>0?r.styles[0]:"";r.defaults=t;delete r.calcchains;return r}var Ua=ur("Types",null,{xmlns:vr.CT,"xmlns:xsd":vr.xsd,"xmlns:xsi":vr.xsi});var Wa=[["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",Na.rels[0]]].map(function(e){return ur("Default",null,{Extension:e[0],ContentType:e[1]})});function Ha(e,r){var t=[],a;t[t.length]=Fe;t[t.length]=Ua;t=t.concat(Wa);var n=function(n){if(e[n]&&e[n].length>0){a=e[n][0];t[t.length]=ur("Override",null,{PartName:(a[0]=="/"?"":"/")+a,ContentType:Oa[n][r.bookType||"xlsx"]})}};var i=function(a){(e[a]||[]).forEach(function(e){t[t.length]=ur("Override",null,{PartName:(e[0]=="/"?"":"/")+e,ContentType:Oa[a][r.bookType||"xlsx"]})})};var s=function(r){(e[r]||[]).forEach(function(e){t[t.length]=ur("Override",null,{PartName:(e[0]=="/"?"":"/")+e,ContentType:Na[r][0]})})};n("workbooks");i("sheets");i("charts");s("themes");["strs","styles"].forEach(n);["coreprops","extprops","custprops"].forEach(s);s("vba");s("comments");s("drawings");if(t.length>2){t[t.length]="";t[1]=t[1].replace("/>",">")}return t.join("")}var Va={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",VBA:"http://schemas.microsoft.com/office/2006/relationships/vbaProject"};function Xa(e){var r=e.lastIndexOf("/");return e.slice(0,r+1)+"_rels/"+e.slice(r+1)+".rels"}function Ga(e,r){var t={"!id":{}};if(!e)return t;if(r.charAt(0)!=="/"){r="/"+r}var a={};(e.match(De)||[]).forEach(function(e){var n=Ne(e);if(n[0]==="2){r[r.length]="";r[1]=r[1].replace("/>",">")}return r.join("")}var $a=[Va.HLINK,Va.XPATH,Va.XMISS];function Ka(e,r,t,a,n,i){if(!n)n={};if(!e["!id"])e["!id"]={};if(r<0)for(r=1;e["!id"]["rId"+r];++r){}n.Id="rId"+r;n.Type=a;n.Target=t;if(i)n.TargetMode=i;else if($a.indexOf(n.Type)>-1)n.TargetMode="External";if(e["!id"][n.Id])throw new Error("Cannot rewrite rId "+r);e["!id"][n.Id]=n;e[("/"+n.Target).replace("//","/")]=n;return r}var Ya="application/vnd.oasis.opendocument.spreadsheet";function Ja(e,r){var t=xp(e);var a;var n;while(a=Ap.exec(t))switch(a[3]){case"manifest":break;case"file-entry":n=Ne(a[0],false);if(n.path=="/"&&n.type!==Ya)throw new Error("This OpenDocument is not a spreadsheet");break;case"encryption-data":;case"algorithm":;case"start-key-generation":;case"key-derivation":throw new Error("Unsupported ODS Encryption");default:if(r&&r.WTF)throw a;}}function qa(e){var r=[Fe];r.push('\n');r.push(' \n');for(var t=0;t\n');r.push("");return r.join("")}function Qa(e,r,t){return[' \n',' \n'," \n"].join("")}function Za(e,r){return[' \n',' \n'," \n"].join("")}function en(e){var r=[Fe];r.push('\n');for(var t=0;t!=e.length;++t){r.push(Qa(e[t][0],e[t][1]));r.push(Za("",e[t][0]))}r.push(Qa("","Document","pkg"));r.push("");return r.join("")}var rn=function(){var r='Sheet'+"JS "+e.version+"";return function t(){return r}}();var tn=[["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"]];vr.CORE_PROPS="http://schemas.openxmlformats.org/package/2006/metadata/core-properties";Va.CORE_PROPS="http://schemas.openxmlformats.org/package/2006/relationships/metadata/core-properties";var an=function(){var e=new Array(tn.length);for(var r=0;r]*>([\\s\\S]*?)")}return e}();function nn(e){var r={};e=qe(e);for(var t=0;t0)r[a[1]]=We(n[1]);if(a[2]==="date"&&r[a[1]])r[a[1]]=oe(r[a[1]])}return r}var sn=ur("cp:coreProperties",null,{"xmlns:cp":vr.CORE_PROPS,"xmlns:dc":vr.dc,"xmlns:dcterms":vr.dcterms,"xmlns:dcmitype":vr.dcmitype,"xmlns:xsi":vr.xsi});function fn(e,r,t,a,n){if(n[e]!=null||r==null||r==="")return;n[e]=r;r=Xe(r);a[a.length]=t?ur(e,r,t):or(e,r)}function ln(e,r){var t=r||{};var a=[Fe,sn],n={};if(!e&&!t.Props)return a.join("");if(e){if(e.CreatedDate!=null)fn("dcterms:created",typeof e.CreatedDate==="string"?e.CreatedDate:hr(e.CreatedDate,t.WTF),{"xsi:type":"dcterms:W3CDTF"},a,n);if(e.ModifiedDate!=null)fn("dcterms:modified",typeof e.ModifiedDate==="string"?e.ModifiedDate:hr(e.ModifiedDate,t.WTF),{"xsi:type":"dcterms:W3CDTF"},a,n)}for(var i=0;i!=tn.length;++i){var s=tn[i];var f=t.Props&&t.Props[s[1]]!=null?t.Props[s[1]]:e?e[s[1]]:null;if(f===true)f="1";else if(f===false)f="0";else if(typeof f=="number")f=String(f);if(f!=null)fn(s[0],f,null,a,n)}if(a.length>2){a[a.length]="";a[1]=a[1].replace("/>",">")}return a.join("")}var on=[["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"]];vr.EXT_PROPS="http://schemas.openxmlformats.org/officeDocument/2006/extended-properties";Va.EXT_PROPS="http://schemas.openxmlformats.org/officeDocument/2006/relationships/extended-properties";var cn=["Worksheets","SheetNames","NamedRanges","DefinedNames","Chartsheets","ChartNames"];function un(e,r,t,a){var n=[];if(typeof e=="string")n=fr(e,a);else for(var i=0;i0)for(var o=0;o!==n.length;o+=2){l=+n[o+1].v;switch(n[o].v){case"Worksheets":;case"工作表":;case"Листы":;case"أوراق العمل":;case"ワークシート":;case"גליונות עבודה":;case"Arbeitsblätter":;case"Çalışma Sayfaları":;case"Feuilles de calcul":;case"Fogli di lavoro":;case"Folhas de cálculo":;case"Planilhas":;case"Regneark":;case"Hojas de cálculo":;case"Werkbladen":t.Worksheets=l;t.SheetNames=s.slice(f,f+l);break;case"Named Ranges":;case"Rangos con nombre":;case"名前付き一覧":;case"Benannte Bereiche":;case"Navngivne områder":t.NamedRanges=l;t.DefinedNames=s.slice(f,f+l);break;case"Charts":;case"Diagramme":t.Chartsheets=l;t.ChartNames=s.slice(f,f+l);break;}f+=l}}function hn(e,r,t){var a={};if(!r)r={};e=qe(e);on.forEach(function(t){var n=(e.match(tr(t[0]))||[])[1];switch(t[2]){case"string":if(n)r[t[1]]=We(n);break;case"bool":r[t[1]]=n==="true";break;case"raw":var i=e.match(new RegExp("<"+t[0]+"[^>]*>([\\s\\S]*?)"));if(i&&i.length>0)a[t[1]]=i[1];break;}});if(a.HeadingPairs&&a.TitlesOfParts)un(a.HeadingPairs,a.TitlesOfParts,r,t);return r}var dn=ur("Properties",null,{xmlns:vr.EXT_PROPS,"xmlns:vt":vr.vt});function vn(e){var r=[],t=ur;if(!e)e={};e.Application="SheetJS";r[r.length]=Fe;r[r.length]=dn;on.forEach(function(a){if(e[a[1]]===undefined)return;var n;switch(a[2]){case"string":n=Xe(String(e[a[1]]));break;case"bool":n=e[a[1]]?"true":"false";break;}if(n!==undefined)r[r.length]=t(a[0],n)});r[r.length]=t("HeadingPairs",t("vt:vector",t("vt:variant","Worksheets")+t("vt:variant",t("vt:i4",String(e.Worksheets))),{size:2,baseType:"variant"}));r[r.length]=t("TitlesOfParts",t("vt:vector",e.SheetNames.map(function(e){return""+Xe(e)+""}).join(""),{size:e.Worksheets,baseType:"lpstr"}));if(r.length>2){r[r.length]="";r[1]=r[1].replace("/>",">")}return r.join("")}vr.CUST_PROPS="http://schemas.openxmlformats.org/officeDocument/2006/custom-properties";Va.CUST_PROPS="http://schemas.openxmlformats.org/officeDocument/2006/relationships/custom-properties";var pn=/<[^>]+>[^<]*/g;function mn(e,r){var t={},a="";var n=e.match(pn);if(n)for(var i=0;i!=n.length;++i){var s=n[i],f=Ne(s);switch(f[0]){case"":a=null;break;default:if(s.indexOf("");var o=l[0].slice(4),c=l[1];switch(o){case"lpstr":;case"bstr":;case"lpwstr":t[a]=We(c);break;case"bool":t[a]=Je(c);break;case"i1":;case"i2":;case"i4":;case"i8":;case"int":;case"uint":t[a]=parseInt(c,10);break;case"r4":;case"r8":;case"decimal":t[a]=parseFloat(c);break;case"filetime":;case"date":t[a]=oe(c);break;case"cy":;case"error":t[a]=We(c);break;default:if(o.slice(-1)=="/")break;if(r.WTF&&typeof console!=="undefined")console.warn("Unexpected",s,o,l);}}else if(s.slice(0,2)==="2){r[r.length]="";r[1]=r[1].replace("/>",">")}return r.join("")}var wn={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"};var kn=q(wn);function En(e,r,t){r=kn[r]||r;e[r]=t}function Sn(e,r){var t=[];Y(wn).map(function(e){for(var r=0;r'+n.join("")+""}function Cn(e){var r=e._R(4),t=e._R(4);return new Date((t/1e7*Math.pow(2,32)+r/1e7-11644473600)*1e3).toISOString().replace(/\.000/,"")}function yn(e){var r=typeof e=="string"?new Date(Date.parse(e)):e;var t=r.getTime()/1e3+11644473600;var a=t%Math.pow(2,32),n=(t-a)/Math.pow(2,32);a*=1e7;n*=1e7;var i=a/Math.pow(2,32)|0;if(i>0){a=a%Math.pow(2,32);n+=i}var s=et(8);s._W(4,a);s._W(4,n);return s}function Tn(e,r,t){var a=e.l;var n=e._R(0,"lpstr-cp");if(t)while(e.l-a&3)++e.l;return n}function _n(e,r,t){var a=e._R(0,"lpwstr");if(t)e.l+=4-(a.length+1&3)&3;return a}function xn(e,r,t){if(r===31)return _n(e);return Tn(e,r,t)}function An(e,r,t){return xn(e,r,t===false?0:4)}function Rn(e,r){if(!r)throw new Error("VtUnalignedString must have positive length");return xn(e,r,0)}function Fn(e){var r=e._R(4);var t=[];for(var a=0;a!=r;++a){var n=e.l;t[a]=e._R(0,"lpwstr").replace(I,"");if(e.l-n&2)e.l+=2}return t}function In(e){var r=e._R(4);var t=[];for(var a=0;a!=r;++a)t[a]=e._R(0,"lpstr-cp").replace(I,"");return t}function Dn(e){var r=e.l;var t=Mn(e,Ea);if(e[e.l]==0&&e[e.l+1]==0&&e.l-r&2)e.l+=2;var a=Mn(e,ua);return[t,a]}function Pn(e){var r=e._R(4);var t=[];for(var a=0;a>2+1<<2;return a}function Nn(e){var r=e._R(4);var t=e.slice(e.l,e.l+r);e.l+=r;if((r&3)>0)e.l+=4-(r&3)&3;return t}function Ln(e){var r={};r.Size=e._R(4);e.l+=r.Size+3-(r.Size-1)%4;return r}function Mn(e,r,t){var a=e._R(2),n,i=t||{};e.l+=2;if(r!==da)if(a!==r&&Sa.indexOf(r)===-1&&!((r&65534)==4126&&(a&65534)==4126))throw new Error("Expected type "+r+" saw "+a);switch(r===da?a:r){case 2:n=e._R(2,"i");if(!i.raw)e.l+=2;return n;case 3:n=e._R(4,"i");return n;case 11:return e._R(4)!==0;case 19:n=e._R(4);return n;case 30:return Tn(e,a,4).replace(I,"");case 31:return _n(e);case 64:return Cn(e);case 65:return Nn(e);case 71:return Ln(e);case 80:return An(e,a,!i.raw).replace(I,"");case 81:return Rn(e,a).replace(I,"");case 4108:return Pn(e);case 4126:;case 4127:return a==4127?Fn(e):In(e);default:throw new Error("TypedPropertyValue unrecognized type "+r+" "+a);}}function Un(e,r){var t=et(4),a=et(4);t._W(4,e==80?31:e);switch(e){case 3:a._W(-4,r);break;case 5:a=et(8);a._W(8,r,"f");break;case 11:a._W(4,r?1:0);break;case 64:a=yn(r);break;case 31:;case 80:a=et(4+2*(r.length+1)+(r.length%2?0:2));a._W(4,r.length+1);a._W(0,r,"dbcs");while(a.l!=a.length)a._W(1,0);break;default:throw new Error("TypedPropertyValue unrecognized type "+e+" "+r);}return F([t,a])}function Wn(e,r){var t=e.l;var a=e._R(4);var n=e._R(4);var i=[],s=0;var f=0;var o=-1,c={};for(s=0;s!=n;++s){var u=e._R(4);var h=e._R(4);i[s]=[u,h+t]}i.sort(function(e,r){return e[1]-r[1]});var d={};for(s=0;s!=n;++s){if(e.l!==i[s][1]){var v=true;if(s>0&&r)switch(r[i[s-1][0]].t){case 2:if(e.l+2===i[s][1]){e.l+=2;v=false}break;case 80:if(e.l<=i[s][1]){e.l=i[s][1];v=false}break;case 4108:if(e.l<=i[s][1]){e.l=i[s][1];v=false}break;}if((!r||s==0)&&e.l<=i[s][1]){v=false;e.l=i[s][1]}if(v)throw new Error("Read Error: Expected address "+i[s][1]+" at "+e.l+" :"+s)}if(r){var p=r[i[s][0]];d[p.n]=Mn(e,p.t,{raw:true});if(p.p==="version")d[p.n]=String(d[p.n]>>16)+"."+("0000"+String(d[p.n]&65535)).slice(-4);if(p.n=="CodePage")switch(d[p.n]){case 0:d[p.n]=1252;case 874:;case 932:;case 936:;case 949:;case 950:;case 1250:;case 1251:;case 1253:;case 1254:;case 1255:;case 1256:;case 1257:;case 1258:;case 1e4:;case 1200:;case 1201:;case 1252:;case 65e3:;case-536:;case 65001:;case-535:l(f=d[p.n]>>>0&65535);break;default:throw new Error("Unsupported CodePage: "+d[p.n]);}}else{if(i[s][0]===1){f=d.CodePage=Mn(e,ca);l(f);if(o!==-1){var m=e.l;e.l=i[o][1];c=On(e,f);e.l=m}}else if(i[s][0]===0){if(f===0){o=s;e.l=i[s+1][1];continue}c=On(e,f)}else{var b=c[i[s][0]];var g;switch(e[e.l]){case 65:e.l+=4;g=Nn(e);break;case 30:e.l+=4;g=An(e,e[e.l-4]).replace(/\u0000+$/,"");break;case 31:e.l+=4;g=An(e,e[e.l-4]).replace(/\u0000+$/,"");break;case 3:e.l+=4;g=e._R(4,"i");break;case 19:e.l+=4;g=e._R(4);break;case 5:e.l+=4;g=e._R(8,"f");break;case 11:e.l+=4;g=Yn(e,4);break;case 64:e.l+=4;g=oe(Cn(e));break;default:throw new Error("unparsed value: "+e[e.l]);}d[b]=g}}}e.l=t+a;return d}var Hn=["CodePage","Thumbnail","_PID_LINKBASE","_PID_HLINKS","SystemIdentifier","FMTID"].concat(cn);function Vn(e){switch(typeof e){case"boolean":return 11;case"number":return(e|0)==e?3:5;case"string":return 31;case"object":if(e instanceof Date)return 64;break;}return-1}function Xn(e,r,t){var a=et(8),n=[],i=[];var s=8,f=0;var l=et(8),o=et(8);l._W(4,2);l._W(4,1200);o._W(4,1);i.push(l);n.push(o);s+=8+l.length;if(!r){o=et(8);o._W(4,0);n.unshift(o);var c=[et(4)];c[0]._W(4,e.length);for(f=0;f-1)continue;if(e[f][1]==null)continue;var h=e[f][1],d=0;if(r){d=+r[e[f][0]];var v=t[d];if(v.p=="version"&&typeof h=="string"){var p=h.split(".");h=(+p[0]<<16)+(+p[1]||0)}l=Un(v.t,h)}else{var m=Vn(h);if(m==-1){m=31;h=String(h)}l=Un(m,h)}i.push(l);o=et(8);o._W(4,!r?2+f:d);n.push(o);s+=8+l.length}var b=8*(i.length+1);for(f=0;f=12?2:1);var i="sbcs-cont";var s=r;if(a&&a.biff>=8)r=1200;if(!a||a.biff==8){var f=e._R(1);if(f){i="dbcs-cont"}}else if(a.biff==12){i="wstr"}if(a.biff>=2&&a.biff<=5)i="cpstr";var l=n?e._R(n,i):"";r=s;return l}function ai(e){var t=r;r=1200;var a=e._R(2),n=e._R(1);var i=n&4,s=n&8;var f=1+(n&1);var l=0,o;var c={};if(s)l=e._R(2);if(i)o=e._R(4);var u=f==2?"dbcs-cont":"sbcs-cont";var h=a===0?"":e._R(a,u);if(s)e.l+=4*l;if(i)e.l+=o;c.t=h;if(!s){c.raw=""+c.t+"";c.r=c.t}r=t;return c}function ni(e){var r=e.t||"",t=1;var a=et(3+(t>1?2:0));a._W(2,r.length);a._W(1,(t>1?8:0)|1);if(t>1)a._W(2,t);var n=et(2*r.length);n._W(2*r.length,r,"utf16le");var i=[a,n];return F(i)}function ii(e,r,t){var a;if(t){if(t.biff>=2&&t.biff<=5)return e._R(r,"cpstr");if(t.biff>=12)return e._R(r,"dbcs-cont")}var n=e._R(1);if(n===0){a=e._R(r,"sbcs-cont")}else{a=e._R(r,"dbcs-cont")}return a}function si(e,r,t){var a=e._R(t&&t.biff==2?1:2);if(a===0){e.l++;return""}return ii(e,a,t)}function fi(e,r,t){if(t.biff>5)return si(e,r,t);var a=e._R(1);if(a===0){e.l++;return""}return e._R(a,t.biff<=4||!e.lens?"cpstr":"sbcs-cont")}function li(e,r,t){if(!t)t=et(3+2*e.length);t._W(2,e.length);t._W(1,1);t._W(31,e,"utf16le");return t}function oi(e){var r=e._R(1);e.l++;var t=e._R(2);e.l+=2;return[r,t]}function ci(e){var r=e._R(4),t=e.l;var a=false;if(r>24){e.l+=r-24;if(e._R(16)==="795881f43b1d7f48af2c825dc4852763")a=true;e.l=t}var n=e._R((a?r-24:r)>>1,"utf16le").replace(I,"");if(a)e.l+=24;return n}function ui(e){var r=e._R(2);var t="";while(r-- >0)t+="../";var a=e._R(0,"lpstr-ansi");e.l+=2;if(e._R(2)!=57005)throw new Error("Bad FileMoniker");var n=e._R(4);if(n===0)return t+a.replace(/\\/g,"/");var i=e._R(4);if(e._R(2)!=3)throw new Error("Bad FileMoniker");var s=e._R(i>>1,"utf16le").replace(I,"");return t+s}function hi(e,r){var t=e._R(16);r-=16;switch(t){case"e0c9ea79f9bace118c8200aa004ba90b":return ci(e,r);case"0303000000000000c000000000000046":return ui(e,r);default:throw new Error("Unsupported Moniker "+t);}}function di(e){var r=e._R(4);var t=r>0?e._R(r,"utf16le").replace(I,""):"";return t}function vi(e,r){if(!r)r=et(6+e.length*2);r._W(4,1+e.length);for(var t=0;t-1?31:23;switch(a.charAt(0)){case"#":i=28;break;case".":i&=~2;break;}r._W(4,2);r._W(4,i);var s=[8,6815827,6619237,4849780,83];for(t=0;t-1?a.slice(0,n):a;r._W(4,2*(f.length+1));for(t=0;t-1?a.slice(n+1):"",r)}else{s="03 03 00 00 00 00 00 00 c0 00 00 00 00 00 00 46".split(" ");for(t=0;t8?4:2;var n=e._R(a),i=e._R(a,"i"),s=e._R(a,"i");return[n,i,s]}function Ci(e){var r=e._R(2);var t=Yt(e);return[r,t]}function yi(e,r,t){e.l+=4;r-=4;var a=e.l+r;var n=ti(e,r,t);var i=e._R(2);a-=e.l;if(i!==a)throw new Error("Malformed AddinUdf: padding = "+a+" != "+i);e.l+=i;return n}function Ti(e){var r=e._R(2);var t=e._R(2);var a=e._R(2);var n=e._R(2);return{s:{c:a,r:r},e:{c:n,r:t}}}function _i(e,r){if(!r)r=et(8);r._W(2,e.s.r);r._W(2,e.e.r);r._W(2,e.s.c);r._W(2,e.e.c);return r}function xi(e){var r=e._R(2);var t=e._R(2);var a=e._R(1);var n=e._R(1);return{s:{c:a,r:r},e:{c:n,r:t}}}var Ai=xi;function Ri(e){e.l+=4;var r=e._R(2);var t=e._R(2);var a=e._R(2);e.l+=12;return[t,r,a]}function Fi(e){var r={};e.l+=4;e.l+=16;r.fSharedNote=e._R(2);e.l+=4;return r}function Ii(e){var r={};e.l+=4;e.cf=e._R(2);return r}function Di(e){e.l+=2;e.l+=e._R(2)}var Pi={0:Di,4:Di,5:Di,6:Di,7:Ii,8:Di,9:Di,10:Di,11:Di,12:Di,13:Fi,14:Di,15:Di,16:Di,17:Di,18:Di,19:Di,20:Di,21:Ri};function Oi(e,r){var t=e.l+r;var a=[];while(e.l=2){t.dt=e._R(2);e.l-=2}switch(t.BIFFVer){case 1536:;case 1280:;case 1024:;case 768:;case 512:;case 2:;case 7:break;default:if(r>6)throw new Error("Unexpected BIFF Ver "+t.BIFFVer);}e._R(r);return t}function Li(e,r,t){var a=1536,n=16;switch(t.bookType){case"biff8":break;case"biff5":a=1280;n=8;break;case"biff4":a=4;n=6;break;case"biff3":a=3;n=6;break;case"biff2":a=2;n=4;break;case"xla":break;default:throw new Error("unsupported BIFF version");}var i=et(n);i._W(2,a);i._W(2,r);if(n>4)i._W(2,29282);if(n>6)i._W(2,1997);if(n>8){i._W(2,49161);i._W(2,1);i._W(2,1798);i._W(2,0)}return i}function Mi(e,r){if(r===0)return 1200;if(e._R(2)!==1200){}return 1200}function Ui(e,r,t){if(t.enc){e.l+=r;return""}var a=e.l;var n=fi(e,0,t);e._R(r+a-e.l);return n}function Wi(e,r){var t=!r||r.biff==8;var a=et(t?112:54);a._W(r.biff==8?2:1,7);if(t)a._W(1,0);a._W(4,859007059);a._W(4,5458548|(t?0:536870912));while(a.l=8?2:1;var a=et(8+t*e.name.length);a._W(4,e.pos);a._W(1,e.hs||0);a._W(1,e.dt);a._W(1,e.name.length);if(r.biff>=8)a._W(1,1);a._W(t*e.name.length,e.name,r.biff<8?"sbcs":"utf16le");var n=a.slice(0,a.l);n.l=a.l;return n}function Gi(e,r){var t=e.l+r;var a=e._R(4);var n=e._R(4);var i=[];for(var s=0;s!=n&&e.l>15);n&=32767}var i={Unsynced:a&1,DyZero:(a&2)>>1,ExAsc:(a&4)>>2,ExDsc:(a&8)>>3};return[i,n]}function qi(e){var r=e._R(2),t=e._R(2),a=e._R(2),n=e._R(2);var i=e._R(2),s=e._R(2),f=e._R(2);var l=e._R(2),o=e._R(2);return{Pos:[r,t],Dim:[a,n],Flags:i,CurTab:s,FirstTab:f,Selected:l,TabRatio:o}}function Qi(){var e=et(18);e._W(2,0);e._W(2,0);e._W(2,29280);e._W(2,17600);e._W(2,56);e._W(2,0);e._W(2,0);e._W(2,1);e._W(2,500);return e}function Zi(e,r,t){if(t&&t.biff>=2&&t.biff<5)return{};var a=e._R(2);return{RTL:a&64}}function es(e){var r=et(18),t=1718;if(e&&e.RTL)t|=64;r._W(2,t);r._W(4,0);r._W(4,64);r._W(4,0);r._W(4,0);return r}function rs(){}function ts(e,r,t){var a={dyHeight:e._R(2),fl:e._R(2)};switch(t&&t.biff||8){case 2:break;case 3:;case 4:e.l+=2;break;default:e.l+=10;break;}a.name=ti(e,0,t);return a}function as(e,r){var t=e.name||"Arial";var a=r&&r.biff==5,n=a?15+t.length:16+2*t.length;var i=et(n);i._W(2,(e.sz||12)*20);i._W(4,0);i._W(2,400);i._W(4,0);i._W(2,0);i._W(1,t.length);if(!a)i._W(1,1);i._W((a?1:2)*t.length,t,a?"sbcs":"utf16le");return i}function ns(e){var r=wi(e);r.isst=e._R(4);return r}function is(e,r,t,a){var n=et(10);ki(e,r,a,n);n._W(4,t);return n}function ss(e,r,t){if(t.biffguess&&t.biff==2)t.biff=5;var a=e.l+r;var n=wi(e,6);if(t.biff==2)e.l++;var i=si(e,a-e.l,t);n.val=i;return n}function fs(e,r,t,a,n){var i=!n||n.biff==8;var s=et(6+2+ +i+(1+i)*t.length);ki(e,r,a,s);s._W(2,t.length);if(i)s._W(1,1);s._W((1+i)*t.length,t,i?"utf16le":"sbcs");return s}function ls(e,r,t){var a=e._R(2);var n=fi(e,0,t);return[a,n]}function os(e,r,t,a){var n=t&&t.biff==5;if(!a)a=et(n?3+r.length:5+2*r.length);a._W(2,e);a._W(n?1:2,r.length);if(!n)a._W(1,1);a._W((n?1:2)*r.length,r,n?"sbcs":"utf16le");var i=a.length>a.l?a.slice(0,a.l):a;if(i.l==null)i.l=i.length;return i}var cs=fi;function us(e,r,t){var a=e.l+r;var n=t.biff==8||!t.biff?4:2;var i=e._R(n),s=e._R(n);var f=e._R(2),l=e._R(2);e.l=a;return{s:{r:i,c:f},e:{r:s,c:l}}}function hs(e,r){var t=r.biff==8||!r.biff?4:2;var a=et(2*t+6);a._W(t,e.s.r);a._W(t,e.e.r+1);a._W(2,e.s.c);a._W(2,e.e.c+1);a._W(2,0);return a}function ds(e){var r=e._R(2),t=e._R(2);var a=Ci(e);return{r:r,c:t,ixfe:a[0],rknum:a[1]}}function vs(e,r){var t=e.l+r-2;var a=e._R(2),n=e._R(2);var i=[];while(e.l>26];if(!a.cellStyles)return n;n.alc=i&7;n.fWrap=i>>3&1;n.alcV=i>>4&7;n.fJustLast=i>>7&1;n.trot=i>>8&255;n.cIndent=i>>16&15;n.fShrinkToFit=i>>20&1;n.iReadOrder=i>>22&2;n.fAtrNum=i>>26&1;n.fAtrFnt=i>>27&1;n.fAtrAlc=i>>28&1;n.fAtrBdr=i>>29&1;n.fAtrPat=i>>30&1;n.fAtrProt=i>>31&1;n.dgLeft=s&15;n.dgRight=s>>4&15;n.dgTop=s>>8&15;n.dgBottom=s>>12&15;n.icvLeft=s>>16&127;n.icvRight=s>>23&127;n.grbitDiag=s>>30&3;n.icvTop=f&127;n.icvBottom=f>>7&127;n.icvDiag=f>>14&127;n.dgDiag=f>>21&15;n.icvFore=l&127;n.icvBack=l>>7&127;n.fsxButton=l>>14&1;return n}function bs(e,r,t){var a={};a.ifnt=e._R(2);a.numFmtId=e._R(2);a.flags=e._R(2);a.fStyle=a.flags>>2&1;r-=6;a.data=ms(e,r,a.fStyle,t);return a}function gs(e,r,t,a){var n=t&&t.biff==5;if(!a)a=et(n?16:20);a._W(2,0);if(e.style){a._W(2,e.numFmtId||0);a._W(2,65524)}else{a._W(2,e.numFmtId||0);a._W(2,r<<4)}var i=0;if(e.numFmtId>0&&n)i|=1024;a._W(4,i);a._W(4,0);if(!n)a._W(4,0);a._W(2,0);return a}function ws(e){e.l+=4;var r=[e._R(2),e._R(2)];if(r[0]!==0)r[0]--;if(r[1]!==0)r[1]--;if(r[0]>7||r[1]>7)throw new Error("Bad Gutters: "+r.join("|"));return r}function ks(e){var r=et(8);r._W(4,0);r._W(2,e[0]?e[0]+1:0);r._W(2,e[1]?e[1]+1:0);return r}function Es(e,r,t){var a=wi(e,6);if(t.biff==2||r==9)++e.l;var n=ei(e,2);a.val=n;a.t=n===true||n===false?"b":"e";return a}function Ss(e,r,t,a,n,i){var s=et(8);ki(e,r,a,s);ri(t,i,s);return s}function Bs(e,r,t){if(t.biffguess&&t.biff==2)t.biff=5;var a=wi(e,6);var n=ra(e,8);a.val=n;return a}function Cs(e,r,t,a){var n=et(14);ki(e,r,a,n);ta(t,n);return n}var ys=Si;function Ts(e,r,t){var a=e.l+r;var n=e._R(2);var i=e._R(2);t.sbcch=i;if(i==1025||i==14849)return[i,n];if(i<1||i>255)throw new Error("Unexpected SupBook type: "+i);var s=ii(e,i);var f=[];while(a>e.l)f.push(si(e));return[i,n,s,f]}function _s(e,r,t){var a=e._R(2);var n;var i={fBuiltIn:a&1,fWantAdvise:a>>>1&1,fWantPict:a>>>2&1,fOle:a>>>3&1,fOleLink:a>>>4&1,cf:a>>>5&1023,fIcon:a>>>15&1};if(t.sbcch===14849)n=yi(e,r-2,t);i.body=n||e._R(r-2);if(typeof n==="string")i.Name=n;return i}var xs=["_xlnm.Consolidate_Area","_xlnm.Auto_Open","_xlnm.Auto_Close","_xlnm.Extract","_xlnm.Database","_xlnm.Criteria","_xlnm.Print_Area","_xlnm.Print_Titles","_xlnm.Recorder","_xlnm.Data_Form","_xlnm.Auto_Activate","_xlnm.Auto_Deactivate","_xlnm.Sheet_Title","_xlnm._FilterDatabase"];function As(e,r,t){var a=e.l+r;var n=e._R(2);var i=e._R(1);var s=e._R(1);var f=e._R(t&&t.biff==2?1:2);var l=0;if(!t||t.biff>=5){if(t.biff!=5)e.l+=2;l=e._R(2);if(t.biff==5)e.l+=2;e.l+=4}var o=ii(e,s,t);if(n&32)o=xs[o.charCodeAt(0)];var c=a-e.l;if(t&&t.biff==2)--c;var u=a==e.l||f===0||!(c>0)?[]:Ku(e,c,t,f);return{chKey:i,Name:o,itab:l,rgce:u}}function Rs(e,r,t){if(t.biff<8)return Fs(e,r,t);var a=[],n=e.l+r,i=e._R(t.biff>8?4:2);while(i--!==0)a.push(Bi(e,t.biff>8?12:6,t));if(e.l!=n)throw new Error("Bad ExternSheet: "+e.l+" != "+n);return a}function Fs(e,r,t){if(e[e.l+1]==3)e[e.l]++;var a=ti(e,r,t);return a.charCodeAt(0)==3?a.slice(1):a}function Is(e,r,t){if(t.biff<8){e.l+=r;return}var a=e._R(2);var n=e._R(2);var i=ii(e,a,t);var s=ii(e,n,t);return[i,s]}function Ds(e,r,t){var a=xi(e,6);e.l++;var n=e._R(1);r-=8;return[Yu(e,r,t),n,a]}function Ps(e,r,t){var a=Ai(e,6);switch(t.biff){case 2:e.l++;r-=7;break;case 3:;case 4:e.l+=2;r-=8;break;default:e.l+=6;r-=12;}return[a,ju(e,r,t,a)]}function Os(e){var r=e._R(4)!==0;var t=e._R(4)!==0;var a=e._R(4);return[r,t,a]}function Ns(e,r,t){if(t.biff<8)return;var a=e._R(2),n=e._R(2);var i=e._R(2),s=e._R(2);var f=fi(e,0,t);if(t.biff<8)e._R(1);return[{r:a,c:n},f,s,i]}function Ls(e,r,t){return Ns(e,r,t)}function Ms(e,r){var t=[];var a=e._R(2);while(a--)t.push(Ti(e,r));return t}function Us(e){var r=et(2+e.length*8);r._W(2,e.length);for(var t=0;t=(c?f:2*f))break}if(n.length!==f&&n.length!==f*2){throw new Error("cchText: "+f+" != "+n.length)}e.l=a+r;return{t:n}}catch(h){e.l=a+r;return{t:n}}}function Gs(e,r){var t=Ti(e,8);e.l+=16;var a=pi(e,r-24);return[t,a]}function zs(e){var r=et(24);var t=wt(e[0]);r._W(2,t.r);r._W(2,t.r);r._W(2,t.c);r._W(2,t.c);var a="d0 c9 ea 79 f9 ba ce 11 8c 82 00 aa 00 4b a9 0b".split(" ");for(var n=0;n<16;++n)r._W(1,parseInt(a[n],16));return F([r,mi(e[1])])}function js(e,r){e._R(2);var t=Ti(e,8);var a=e._R((r-10)/2,"dbcs-cont");a=a.replace(I,"");return[t,a]}function $s(e){var r=e[1].Tooltip;var t=et(10+2*(r.length+1));t._W(2,2048);var a=wt(e[0]);t._W(2,a.r);t._W(2,a.r);t._W(2,a.c);t._W(2,a.c);for(var n=0;n0)t.push(gi(e,8));return t}function qs(e){var r=e._R(2);var t=[];while(r-- >0)t.push(gi(e,8));return t}function Qs(e){e.l+=2;var r={cxfs:0,crc:0};r.cxfs=e._R(2);r.crc=e._R(4);return r}function Zs(e,r,t){if(!t.cellStyles)return Zr(e,r);var a=t&&t.biff>=12?4:2;var n=e._R(a);var i=e._R(a);var s=e._R(a);var f=e._R(a);var l=e._R(2);if(a==2)e.l+=2;var o={s:n,e:i,w:s,ixfe:f,flags:l};if(t.biff>=5||!t.biff)o.level=l>>8&7;return o}function ef(e,r){var t=et(12);t._W(2,r);t._W(2,r);t._W(2,e.width*256);t._W(2,0);var a=0;if(e.hidden)a|=1;t._W(1,a);a=e.level||0;t._W(1,a);t._W(2,0);return t}function rf(e,r){var t={};if(r<32)return t;e.l+=16;t.header=ra(e,8);t.footer=ra(e,8);e.l+=2;return t}function tf(e,r,t){var a={area:false};if(t.biff!=5){e.l+=r;return a}var n=e._R(1);e.l+=3;if(n&16)a.area=true;return a}function af(e){var r=et(2*e);for(var t=0;t1048576)o=1e6;if(i!=2)c=n._R(2);var u=n._R(2);var h=t.codepage||1252;if(i!=2){n.l+=16;n._R(1);if(n[n.l]!==0)h=e[n[n.l]];n.l+=1;n.l+=2}if(l)n.l+=36;var d=[],v={};var p=Math.min(n.length,i==2?521:c-10-(f?264:0));var m=l?32:11;while(n.l0){if(n[n.l]===42){n.l+=u;continue}++n.l;a[++b]=[];w=0;for(w=0;w!=d.length;++w){var k=n.slice(n.l,n.l+d[w].len);n.l+=d[w].len;Qr(k,0);var E=cptable.utils.decode(h,k);switch(d[w].type){case"C":if(E.trim().length)a[b][w]=E.replace(/\s+$/,"");break;case"D":if(E.length===8)a[b][w]=new Date(+E.slice(0,4),+E.slice(4,6)-1,+E.slice(6,8));else a[b][w]=E;break;case"F":a[b][w]=parseFloat(E.trim());break;case"+":;case"I":a[b][w]=l?k._R(-4,"i")^2147483648:k._R(4,"i");break;case"L":switch(E.trim().toUpperCase()){case"Y":;case"T":a[b][w]=true;break;case"N":;case"F":a[b][w]=false;break;case"":;case"?":break;default:throw new Error("DBF Unrecognized L:|"+E+"|");}break;case"M":if(!s)throw new Error("DBF Unexpected MEMO for type "+i.toString(16));a[b][w]="##MEMO##"+(l?parseInt(E.trim(),10):k._R(4));break;case"N":E=E.replace(/\u0000/g,"").trim();if(E&&E!=".")a[b][w]=+E||0;break;case"@":a[b][w]=new Date(k._R(-8,"f")-621356832e5);break;case"T":a[b][w]=new Date((k._R(4)-2440588)*864e5+k._R(4));break;case"Y":a[b][w]=k._R(4,"i")/1e4;break;case"O":a[b][w]=-k._R(-8,"f");break;case"B":if(f&&d[w].len==8){a[b][w]=k._R(8,"f");break};case"G":;case"P":k.l+=d[w].len;break;case"0":if(d[w].name==="_NullFlags")break;default:throw new Error("DBF Unsupported data type "+d[w].type);}}}if(i!=2)if(n.l=0)l(+n.codepage);if(n.type=="string")throw new Error("Cannot write DBF to JS string");var i=tt();var s=Ib(e,{header:1,raw:true,cellDates:true});var o=s[0],c=s.slice(1);var u=0,h=0,d=0,v=1;for(u=0;u":190,"?":191,"{":223};var r=new RegExp("N("+Y(e).join("|").replace(/\|\|\|/,"|\\||").replace(/([?()+])/g,"\\$1")+"|\\|)","gm");var t=function(r,t){var a=e[t];return typeof a=="number"?p(a):a};var a=function(e,r,t){var a=r.charCodeAt(0)-32<<4|t.charCodeAt(0)-48;return a==59?e:p(a)};e["|"]=254;function n(e,r){switch(r.type){case"base64":return i(g.decode(e),r);case"binary":return i(e,r);case"buffer":return i(w&&Buffer.isBuffer(e)?e.toString("binary"):_(e),r);case"array":return i(ce(e),r);}throw new Error("Unrecognized type "+r.type)}function i(e,n){var i=e.split(/[\n\r]+/),s=-1,f=-1,o=0,c=0,u=[];var h=[];var d=null;var v={},p=[],m=[],b=[];var g=0,w;if(+n.codepage>=0)l(+n.codepage);for(;o!==i.length;++o){g=0;var k=i[o].trim().replace(/\x1B([\x20-\x2F])([\x30-\x3F])/g,a).replace(r,t);var E=k.replace(/;;/g,"\0").split(";").map(function(e){return e.replace(/\u0000/g,";")});var S=E[0],B;if(k.length>0)switch(S){case"ID":break;case"E":break;case"B":break;case"O":break;case"W":break;case"P":if(E[1].charAt(0)=="P")h.push(k.slice(3).replace(/;;/g,";"));break;case"C":var C=false,y=false,T=false,_=false,x=-1,A=-1;for(c=1;c-1&&u[x][A];if(!F||!F[1])throw new Error("SYLK shared formula cannot find base");u[s][f][1]=hc(F[1],{r:s-x,c:f-A})}break;case"F":var I=0;for(c=1;c0){p[s].hpt=g;p[s].hpx=Rl(g)}else if(g===0)p[s].hidden=true;break;default:if(n&&n.WTF)throw new Error("SYLK bad record "+k);}if(I<1)d=null;break;default:if(n&&n.WTF)throw new Error("SYLK bad record "+k);}}if(p.length>0)v["!rows"]=p;if(m.length>0)v["!cols"]=m;if(n&&n.sheetRows)u=u.slice(0,n.sheetRows);return[u,v]}function s(e,r){var t=n(e,r);var a=t[0],i=t[1];var s=xt(a,r);Y(i).forEach(function(e){s[e]=i[e]});return s}function f(e,r){return Tt(s(e,r),r)}function o(e,r,t,a){var n="C;Y"+(t+1)+";X"+(a+1)+";K";switch(e.t){case"n":n+=e.v||0;if(e.f&&!e.F)n+=";E"+uc(e.f,{r:t,c:a});break;case"b":n+=e.v?"TRUE":"FALSE";break;case"e":n+=e.w||e.v;break;case"d":n+='"'+(e.w||e.v)+'"';break;case"s":n+='"'+e.v.replace(/"/g,"").replace(/;/g,";;")+'"';break;}return n}function c(e,r){r.forEach(function(r,t){var a="F;W"+(t+1)+" "+(t+1)+" ";if(r.hidden)a+="0";else{if(typeof r.width=="number"&&!r.wpx)r.wpx=El(r.width);if(typeof r.wpx=="number"&&!r.wch)r.wch=Sl(r.wpx);if(typeof r.wch=="number")a+=Math.round(r.wch)}if(a.charAt(a.length-1)!=" ")e.push(a)})}function u(e,r){r.forEach(function(r,t){var a="F;";if(r.hidden)a+="M0;";else if(r.hpt)a+="M"+20*r.hpt+";";else if(r.hpx)a+="M"+20*Al(r.hpx)+";";if(a.length>2)e.push(a+"R"+(t+1))})}function h(e,r){var t=["ID;PWXL;N;E"],a=[];var n=Bt(e["!ref"]),i;var s=Array.isArray(e);var f="\r\n";t.push("P;PGeneral");t.push("F;P0;DG0G8;M255");if(e["!cols"])c(t,e["!cols"]);if(e["!rows"])u(t,e["!rows"]);t.push("B;Y"+(n.e.r-n.s.r+1)+";X"+(n.e.c-n.s.c+1)+";D"+[n.s.c,n.s.r,n.e.c,n.e.r].join(" "));for(var l=n.s.r;l<=n.e.r;++l){for(var h=n.s.c;h<=n.e.c;++h){var d=kt({r:l,c:h});i=s?(e[l]||[])[h]:e[d];if(!i||i.v==null&&(!i.f||i.F))continue;a.push(o(i,e,l,h,r))}}return t.join(f)+f+a.join(f)+f+"E"+f}return{to_workbook:f,to_sheet:s,from_sheet:h}}();var wf=function(){function e(e,t){switch(t.type){case"base64":return r(g.decode(e),t);case"binary":return r(e,t);case"buffer":return r(w&&Buffer.isBuffer(e)?e.toString("binary"):_(e),t);case"array":return r(ce(e),t);}throw new Error("Unrecognized type "+t.type)}function r(e,r){var t=e.split("\n"),a=-1,n=-1,i=0,s=[];for(;i!==t.length;++i){if(t[i].trim()==="BOT"){s[++a]=[];n=0;continue}if(a<0)continue;var f=t[i].trim().split(",");var l=f[0],o=f[1];++i;var c=t[i]||"";while((c.match(/["]/g)||[]).length&1&&i=0&&i[s].length===0)--s;var f=10,l=0;var o=0;for(;o<=s;++o){l=i[o].indexOf(" ");if(l==-1)l=i[o].length;else l++;f=Math.max(f,l)}for(o=0;o<=s;++o){n[o]=[];var c=0;e(i[o].slice(0,f).trim(),n,o,c,a);for(c=1;c<=(i[o].length-f)/10+1;++c)e(i[o].slice(f+(c-1)*10,f+c*10).trim(),n,o,c,a)}if(a.sheetRows)n=n.slice(0,a.sheetRows);return n}var t={44:",",9:"\t",59:";",124:"|"};var a={44:3,9:2,59:1,124:0};function n(e){var r={},n=false,i=0,s=0;for(;i0)g();i["!ref"]=St(s);return i}function s(e,t){if(!(t&&t.PRN))return i(e,t);if(t.FS)return i(e,t);if(e.slice(0,4)=="sep=")return i(e,t);if(e.indexOf("\t")>=0||e.indexOf(",")>=0||e.indexOf(";")>=0)return i(e,t);return xt(r(e,t),t)}function f(e,r){var t="",a=r.type=="string"?[0,0,0,0]:Jm(e,r);switch(r.type){case"base64":t=g.decode(e);break;case"binary":t=e;break;case"buffer":if(r.codepage==65001)t=e.toString("utf8");else if(r.codepage&&typeof cptable!=="undefined")t=cptable.utils.decode(r.codepage,e);else t=w&&Buffer.isBuffer(e)?e.toString("binary"):_(e);break;case"array":t=ce(e);break;case"string":t=e;break;default:throw new Error("Unrecognized type "+r.type);}if(a[0]==239&&a[1]==187&&a[2]==191)t=qe(t.slice(3));else if(r.type!="string"&&r.type!="buffer"&&r.codepage==65001)t=qe(t);else if(r.type=="binary"&&typeof cptable!=="undefined"&&r.codepage)t=cptable.utils.decode(r.codepage,cptable.utils.encode(28591,t));if(t.slice(0,19)=="socialcalc:version:")return kf.to_sheet(r.type=="string"?t:qe(t),r);return s(t,r)}function l(e,r){return Tt(f(e,r),r)}function o(e){var r=[];var t=Bt(e["!ref"]),a;var n=Array.isArray(e);for(var i=t.s.r;i<=t.e.r;++i){var s=[];for(var f=t.s.c;f<=t.e.c;++f){var l=kt({r:i,c:f});a=n?(e[i]||[])[f]:e[l];if(!a||a.v==null){s.push(" ");continue}var o=(a.w||(yt(a),a.w)||"").slice(0,10);while(o.length<10)o+=" ";s.push(o+(f===0?" ":""))}r.push(s.join(""))}return r.join("\n")}return{to_workbook:l,to_sheet:f,from_sheet:o}}();function Sf(e,r){var t=r||{},a=!!t.WTF;t.WTF=true;try{var n=gf.to_workbook(e,t);t.WTF=a;return n}catch(i){t.WTF=a;if(!i.message.match(/SYLK bad record ID/)&&a)throw i;return Ef.to_workbook(e,r)}}var Bf=function(){function e(e,r,t){if(!e)return;Qr(e,e.l||0);var a=t.Enum||V;while(e.l=16&&r[14]==5&&r[15]===108)throw new Error("Unsupported Works 3 for Mac file")}}if(r[2]==2){a.Enum=V;e(r,function(e,r,t){switch(t){case 0:a.vers=e;if(e>=4096)a.qpro=true;break;case 6:u=e;break;case 204:if(e)s=e;break;case 222:s=e;break;case 15:;case 51:if(!a.qpro)e[1].v=e[1].v.slice(1);case 13:;case 14:;case 16:if(t==14&&(e[2]&112)==112&&(e[2]&15)>1&&(e[2]&15)<15){e[1].z=a.dateNF||P._table[14];if(a.cellDates){e[1].t="d";e[1].v=ie(e[1].v)}}if(a.qpro){if(e[3]>f){n["!ref"]=St(u);l[i]=n;o.push(i);n=a.dense?[]:{};u={s:{r:0,c:0},e:{r:0,c:0}};f=e[3];i=s||"Sheet"+(f+1);s=""}}var c=a.dense?(n[e[0].r]||[])[e[0].c]:n[kt(e[0])];if(c){c.t=e[1].t;c.v=e[1].v;if(e[1].z!=null)c.z=e[1].z;if(e[1].f!=null)c.f=e[1].f;break}if(a.dense){if(!n[e[0].r])n[e[0].r]=[];n[e[0].r][e[0].c]=e[1]}else n[kt(e[0])]=e[1];break;default:;}},a)}else if(r[2]==26||r[2]==14){a.Enum=X;if(r[2]==14){a.qpro=true;r.l=0}e(r,function(e,r,t){switch(t){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]>f){n["!ref"]=St(u);l[i]=n;o.push(i);n=a.dense?[]:{};u={s:{r:0,c:0},e:{r:0,c:0}};f=e[3];i="Sheet"+(f+1)}if(h>0&&e[0].r>=h)break;if(a.dense){if(!n[e[0].r])n[e[0].r]=[];n[e[0].r][e[0].c]=e[1]}else n[kt(e[0])]=e[1];if(u.e.c=0)l(+t.codepage);if(t.type=="string")throw new Error("Cannot write WK1 to JS string");var a=tt();var n=Bt(e["!ref"]);var s=Array.isArray(e);var f=[];sm(a,0,i(1030));sm(a,6,o(n));var c=Math.min(n.e.r,8191);for(var u=n.s.r;u<=c;++u){var d=ut(u);for(var p=n.s.c;p<=n.e.c;++p){if(u===n.s.r)f[p]=pt(p);var m=f[p]+d;var g=s?(e[u]||[])[p]:e[m];if(!g||g.t=="z")continue;if(g.t=="n"){if((g.v|0)==g.v&&g.v>=-32768&&g.v<=32767)sm(a,13,v(u,p,g.v));else sm(a,14,b(u,p,g.v))}else{var w=yt(g);sm(a,15,h(u,p,w.slice(0,239)))}}}sm(a,1);return a.end()}function n(e,r){var t=r||{};if(+t.codepage>=0)l(+t.codepage);if(t.type=="string")throw new Error("Cannot write WK3 to JS string");var a=tt();sm(a,0,s(e));for(var n=0,i=0;n8191)t=8191;r._W(2,t);r._W(1,n);r._W(1,a);r._W(2,0);r._W(2,0);r._W(1,1);r._W(1,2);r._W(4,0);r._W(4,0);return r}function f(e,r,t){var a={s:{c:0,r:0},e:{c:0,r:0}};if(r==8&&t.qpro){a.s.c=e._R(1);e.l++;a.s.r=e._R(2);a.e.c=e._R(1);e.l++;a.e.r=e._R(2);return a}a.s.c=e._R(2);a.s.r=e._R(2);if(r==12&&t.qpro)e.l+=2;a.e.c=e._R(2);a.e.r=e._R(2);if(r==12&&t.qpro)e.l+=2;if(a.s.c==65535)a.s.c=a.e.c=a.s.r=a.e.r=0;return a}function o(e){var r=et(8);r._W(2,e.s.c);r._W(2,e.s.r);r._W(2,e.e.c);r._W(2,e.e.r);return r}function c(e,r,t){var a=[{c:0,r:0},{t:"n",v:0},0,0];if(t.qpro&&t.vers!=20768){a[0].c=e._R(1);a[3]=e._R(1);a[0].r=e._R(2);e.l+=2}else{a[2]=e._R(1);a[0].c=e._R(2);a[0].r=e._R(2)}return a}function u(e,r,t){var a=e.l+r;var n=c(e,r,t);n[1].t="s";if(t.vers==20768){e.l++;var i=e._R(1);n[1].v=e._R(i,"utf8");return n}if(t.qpro)e.l++;n[1].v=e._R(a-e.l,"cstr");return n}function h(e,r,t){var a=et(7+t.length);a._W(1,255);a._W(2,r);a._W(2,e);a._W(1,39);for(var n=0;n=128?95:i)}a._W(1,0);return a}function d(e,r,t){var a=c(e,r,t);a[1].v=e._R(2,"i");return a}function v(e,r,t){var a=et(7);a._W(1,255);a._W(2,r);a._W(2,e);a._W(2,t,"i");return a}function p(e,r,t){var a=c(e,r,t);a[1].v=e._R(8,"f");return a}function b(e,r,t){var a=et(13);a._W(1,255);a._W(2,r);a._W(2,e);a._W(8,t,"f");return a}function w(e,r,t){var a=e.l+r;var n=c(e,r,t);n[1].v=e._R(8,"f");if(t.qpro)e.l=a;else{var i=e._R(2);C(e.slice(e.l,e.l+i),n);e.l+=i}return n}function k(e,r,t){var a=r&32768;r&=~32768;r=(a?e:0)+(r>=8192?r-16384:r);return(a?"":"$")+(t?pt(r):ut(r))}var E=[8,8,8,8,8,8,8,8,6,4,4,5,5,7,3,3,3,3,3,3,1,1,2,6,8,8,8,8,8,8,8,8];var S={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]};var B=["","","","","","","","","","+","-","*","/","^","=","<>","<=",">=","<",">","","","","","&","","","","","","",""];function C(e,r){Qr(e,0);var t=[],a=0,n="",i="",s="",f="";while(e.lt.length){console.error("WK1 bad formula parse 0x"+l.toString(16)+":|"+t.join("|")+"|");return}var h=t.slice(-a);t.length-=a;t.push(S[l][0]+"("+h.join(",")+")")}else if(l<=7)return console.error("WK1 invalid opcode "+l.toString(16));else if(l<=24)return console.error("WK1 unsupported op "+l.toString(16));else if(l<=30)return console.error("WK1 invalid opcode "+l.toString(16));else if(l<=115)return console.error("WK1 unsupported function opcode "+l.toString(16));else return console.error("WK1 unrecognized opcode "+l.toString(16));}}if(t.length==1)r[1].f=""+t[0];else console.error("WK1 bad formula parse |"+t.join("|")+"|")}function T(e){var r=[{c:0,r:0},{t:"n",v:0},0];r[0].r=e._R(2);r[3]=e[e.l++];r[0].c=e[e.l++];return r}function _(e,r){var t=T(e,r);t[1].t="s";t[1].v=e._R(r-4,"cstr");return t}function x(e,r,t,a){var n=et(6+a.length);n._W(2,e);n._W(1,t);n._W(1,r);n._W(1,39);for(var i=0;i=128?95:s)}n._W(1,0);return n}function A(e,r){var t=T(e,r);t[1].v=e._R(2);var a=t[1].v>>1;if(t[1].v&1){switch(a&7){case 0:a=(a>>3)*5e3;break;case 1:a=(a>>3)*500;break;case 2:a=(a>>3)/20;break;case 3:a=(a>>3)/200;break;case 4:a=(a>>3)/2e3;break;case 5:a=(a>>3)/2e4;break;case 6:a=(a>>3)/16;break;case 7:a=(a>>3)/64;break;}}t[1].v=a;return t}function R(e,r){var t=T(e,r);var a=e._R(4);var n=e._R(4);var i=e._R(2);if(i==65535){if(a===0&&n===3221225472){t[1].t="e";t[1].v=15}else if(a===0&&n===3489660928){t[1].t="e";t[1].v=42}else t[1].v=0;return t}var s=i&32768;i=(i&32767)-16446;t[1].v=(1-s*2)*(n*Math.pow(2,i+32)+a*Math.pow(2,i));return t}function F(e,r,t,a){var n=et(14);n._W(2,e);n._W(1,t);n._W(1,r);if(a==0){n._W(4,0);n._W(4,0);n._W(2,65535);return n}var i=0,s=0,f=0,l=0;if(a<0){i=1;a=-a}s=Math.log2(a)|0;a/=Math.pow(2,s-31);l=a>>>0;if((l&2147483648)==0){a/=2;++s;l=a>>>0}a-=l;l|=2147483648;l>>>=0;a*=Math.pow(2,32);f=a>>>0;n._W(4,f);n._W(4,l);s+=16383+(i?32768:0);n._W(2,s);return n}function I(e,r){var t=R(e,14);e.l+=r-14;return t}function D(e,r){var t=T(e,r);var a=e._R(4);t[1].v=a>>6;return t}function O(e,r){var t=T(e,r);var a=e._R(8,"f");t[1].v=a;return t}function N(e,r){var t=O(e,14);e.l+=r-10;return t}function L(e,r){return e[e.l+r-1]==0?e._R(r,"cstr"):""}function M(e,r){var t=e[e.l++];if(t>r-1)t=r-1;var a="";while(a.length127?95:n}t[t.l++]=0;return t}var V={0:{n:"BOF",f:qn},1:{n:"EOF"},2:{n:"CALCMODE"},3:{n:"CALCORDER"},4:{n:"SPLIT"},5:{n:"SYNC"},6:{n:"RANGE",f:f},7:{n:"WINDOW1"},8:{n:"COLW1"},9:{n:"WINTWO"},10:{n:"COLW2"},11:{n:"NAME"},12:{n:"BLANK"},13:{n:"INTEGER",f:d},14:{n:"NUMBER",f:p},15:{n:"LABEL",f:u},16:{n:"FORMULA",f:w},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:u},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:L},222:{n:"SHEETNAMELP",f:M},65535:{n:""}};var X={0:{n:"BOF"},1:{n:"EOF"},2:{n:"PASSWORD"},3:{n:"CALCSET"},4:{n:"WINDOWSET"},5:{n:"SHEETCELLPTR"},6:{n:"SHEETLAYOUT"},7:{n:"COLUMNWIDTH"},8:{n:"HIDDENCOLUMN"},9:{n:"USERRANGE"},10:{n:"SYSTEMRANGE"},11:{n:"ZEROFORCE"},12:{n:"SORTKEYDIR"},13:{n:"FILESEAL"},14:{n:"DATAFILLNUMS"},15:{n:"PRINTMAIN"},16:{n:"PRINTSTRING"},17:{n:"GRAPHMAIN"},18:{n:"GRAPHSTRING"},19:{n:"??"},20:{n:"ERRCELL"},21:{n:"NACELL"},22:{n:"LABEL16",f:_},23:{n:"NUMBER17",f:R},24:{n:"NUMBER18",f:A},25:{n:"FORMULA19",f:I},26:{n:"FORMULA1A"},27:{n:"XFORMAT",f:W},28:{n:"DTLABELMISC"},29:{n:"DTLABELCELL"},30:{n:"GRAPHWINDOW"},31:{n:"CPA"},32:{n:"LPLAUTO"},33:{n:"QUERY"},34:{n:"HIDDENSHEET"},35:{n:"??"},37:{n:"NUMBER25",f:D},38:{n:"??"},39:{n:"NUMBER27",f:O},40:{n:"FORMULA28",f:N},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:L},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:U},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:a,book_to_wk3:n,to_workbook:r}}();function Cf(e){var r={},t=e.match(De),a=0;var n=false;if(t)for(;a!=t.length;++a){var s=Ne(t[a]);switch(s[0].replace(/\w*:/g,"")){case"":;case"":r.shadow=1;break;case"":break;case"":;case"":r.outline=1;break;case"":break;case"":;case"":r.strike=1;break;case"":break;case"":;case"":r.u=1;break;case"":break;case"":;case"":r.b=1;break;case"":break;case"":;case"":r.i=1;break;case"":break;case"":;case"":;case"":break;case"":;case"":;case"":break;case"":;case"":;case"":break;case"":;case"":;case"":break;case"":;case"":break;case"":n=false;break;default:if(s[0].charCodeAt(1)!==47&&!n)throw new Error("Unrecognized rich format "+s[0]);}}return r}var yf=function(){var e=tr("t"),r=tr("rPr");function t(t){var a=t.match(e);if(!a)return{t:"s",v:""};var n={t:"s",v:We(a[1])};var i=t.match(r);if(i)n.s=Cf(i[1]);return n}var a=/<(?:\w+:)?r>/g,n=/<\/(?:\w+:)?r>/;return function i(e){return e.replace(a,"").split(n).map(t).filter(function(e){return e.v})}}();var Tf=function fg(){var e=/(\r\n|\n)/g;function r(e,r,t){var a=[];if(e.u)a.push("text-decoration: underline;");if(e.uval)a.push("text-underline-style:"+e.uval+";");if(e.sz)a.push("font-size:"+e.sz+"pt;");if(e.outline)a.push("text-effect: outline;");if(e.shadow)a.push("text-shadow: auto;");r.push('');if(e.b){r.push("");t.push("")}if(e.i){r.push("");t.push("")}if(e.strike){r.push("");t.push("")}var n=e.valign||"";if(n=="superscript"||n=="super")n="sup";else if(n=="subscript")n="sub";if(n!=""){r.push("<"+n+">");t.push("")}t.push("");return e}function t(t){var a=[[],t.v,[]];if(!t.v)return"";if(t.s)r(t.s,a[0],a[2]);return a[0].join("")+a[1].replace(e,"
")+a[2].join("")}return function a(e){return e.map(t).join("")}}();var _f=/<(?:\w+:)?t[^>]*>([^<]*)<\/(?:\w+:)?t>/g,xf=/<(?:\w+:)?r>/;var Af=/<(?:\w+:)?rPh.*?>([\s\S]*?)<\/(?:\w+:)?rPh>/g;function Rf(e,r){var t=r?r.cellHTML:true;var a={};if(!e)return{t:""};if(e.match(/^\s*<(?:\w+:)?t[^>]*>/)){a.t=We(qe(e.slice(e.indexOf(">")+1).split(/<\/(?:\w+:)?t>/)[0]||""));a.r=qe(e);if(t)a.h=je(a.t)}else if(e.match(xf)){a.r=qe(e);a.t=We(qe((e.replace(Af,"").match(_f)||[]).join("").replace(De,"")));if(t)a.h=Tf(yf(a.r))}return a}var Ff=/<(?:\w+:)?sst([^>]*)>([\s\S]*)<\/(?:\w+:)?sst>/;var If=/<(?:\w+:)?(?:si|sstItem)>/g;var Df=/<\/(?:\w+:)?(?:si|sstItem)>/;function Pf(e,r){var t=[],a="";if(!e)return t;var n=e.match(Ff);if(n){a=n[2].replace(If,"").split(Df);for(var i=0;i!=a.length;++i){var s=Rf(a[i].trim(),r);if(s!=null)t[t.length]=s}n=Ne(n[1]);t.Count=n.count;t.Unique=n.uniqueCount}return t}Va.SST="http://schemas.openxmlformats.org/officeDocument/2006/relationships/sharedStrings";var Of=/^\s|\s$|[\t\n\r]/;function Nf(e,r){if(!r.bookSST)return"";var t=[Fe];t[t.length]=ur("sst",null,{xmlns:vr.main[0],count:e.Count,uniqueCount:e.Unique});for(var a=0;a!=e.length;++a){if(e[a]==null)continue;var n=e[a];var i="";if(n.r)i+=n.r;else{i+=""}i+="";t[t.length]=i}if(t.length>2){t[t.length]="";t[1]=t[1].replace("/>",">")}return t.join("")}function Lf(e){return[e._R(4),e._R(4)]}function Mf(e,r){var t=[];var a=false;rt(e,function n(e,i,s){switch(s){case 159:t.Count=e[0];t.Unique=e[1];break;case 19:t.push(e);break;case 160:return true;case 35:a=true;break;case 36:a=false;break;default:if(i.indexOf("Begin")>0){}else if(i.indexOf("End")>0){}if(!a||r.WTF)throw new Error("Unexpected record "+s+" "+i);}});return t}function Uf(e,r){if(!r)r=et(8);r._W(4,e.Count);r._W(4,e.Unique);return r}var Wf=Ot;function Hf(e){var r=tt();at(r,"BrtBeginSst",Uf(e));for(var t=0;t=4)e.l+=r-4;return t}function Gf(e){var r={};r.id=e._R(0,"lpp4");r.R=Xf(e,4);r.U=Xf(e,4);r.W=Xf(e,4);return r}function zf(e){var r=e._R(4);var t=e.l+r-4;var a={};var n=e._R(4);var i=[];while(n-- >0)i.push({t:e._R(4),v:e._R(0,"lpp4")});a.name=e._R(0,"lpp4");a.comps=i;if(e.l!=t)throw new Error("Bad DataSpaceMapEntry: "+e.l+" != "+t);return a}function jf(e){var r=[];e.l+=4;var t=e._R(4);while(t-- >0)r.push(zf(e));return r}function $f(e){var r=[];e.l+=4;var t=e._R(4);while(t-- >0)r.push(e._R(0,"lpp4"));return r}function Kf(e){var r={};e._R(4);e.l+=4;r.id=e._R(0,"lpp4");r.name=e._R(0,"lpp4");r.R=Xf(e,4);r.U=Xf(e,4);r.W=Xf(e,4);return r}function Yf(e){var r=Kf(e);r.ename=e._R(0,"8lpp4");r.blksz=e._R(4);r.cmode=e._R(4);if(e._R(4)!=4)throw new Error("Bad !Primary record");return r}function Jf(e,r){var t=e.l+r;var a={};a.Flags=e._R(4)&63;e.l+=4;a.AlgID=e._R(4);var n=false;switch(a.AlgID){case 26126:;case 26127:;case 26128:n=a.Flags==36;break;case 26625:n=a.Flags==4;break;case 0:n=a.Flags==16||a.Flags==4||a.Flags==36;break;default:throw"Unrecognized encryption algorithm: "+a.AlgID;}if(!n)throw new Error("Encryption Flags/AlgID mismatch");a.AlgIDHash=e._R(4);a.KeySize=e._R(4);a.ProviderType=e._R(4);e.l+=8;a.CSPName=e._R(t-e.l>>1,"utf16le");e.l=t;return a}function qf(e,r){var t={},a=e.l+r;e.l+=4;t.Salt=e.slice(e.l,e.l+16);e.l+=16;t.Verifier=e.slice(e.l,e.l+16);e.l+=16;e._R(4);t.VerifierHash=e.slice(e.l,a);e.l=a;return t}function Qf(e){var r=Xf(e);switch(r.Minor){case 2:return[r.Minor,Zf(e,r)];case 3:return[r.Minor,el(e,r)];case 4:return[r.Minor,rl(e,r)];}throw new Error("ECMA-376 Encrypted file unrecognized Version: "+r.Minor)}function Zf(e){var r=e._R(4);if((r&63)!=36)throw new Error("EncryptionInfo mismatch");var t=e._R(4);var a=Jf(e,t);var n=qf(e,e.length-e.l);return{t:"Std",h:a,v:n}}function el(){throw new Error("File is password-protected: ECMA-376 Extensible")}function rl(e){var r=["saltSize","blockSize","keyBits","hashSize","cipherAlgorithm","cipherChaining","hashAlgorithm","saltValue"];e.l+=4;var t=e._R(e.length-e.l,"utf8");var a={};t.replace(De,function n(e){var t=Ne(e);switch(Le(t[0])){case"":break;case"":;case"":break;case"":break;case"4||a.Major<2)throw new Error("unrecognized major version code: "+a.Major);t.Flags=e._R(4);r-=4;var n=e._R(4);r-=4;t.EncryptionHeader=Jf(e,n);r-=n;t.EncryptionVerifier=qf(e,r);return t}function al(e){var r={};var t=r.EncryptionVersionInfo=Xf(e,4);if(t.Major!=1||t.Minor!=1)throw"unrecognized version code "+t.Major+" : "+t.Minor;r.Salt=e._R(16);r.EncryptedVerifier=e._R(16);r.EncryptedVerifierHash=e._R(16);return r}function nl(e){var r=0,t;var a=Vf(e);var n=a.length+1,i,s;var f,l,o;t=B(n);t[0]=a.length;for(i=1;i!=n;++i)t[i]=a[i-1];for(i=n-1;i>=0;--i){s=t[i];f=(r&16384)===0?0:1;l=r<<1&32767;o=f|l;r=o^s}return r^52811}var il=function(){var e=[187,255,255,186,255,255,185,128,0,190,15,0,191,15,0];var r=[57840,7439,52380,33984,4364,3600,61902,12606,6258,57657,54287,34041,10252,43370,20163];var t=[44796,19929,39858,10053,20106,40212,10761,31585,63170,64933,60267,50935,40399,11199,17763,35526,1453,2906,5812,11624,23248,885,1770,3540,7080,14160,28320,56640,55369,41139,20807,41614,21821,43642,17621,28485,56970,44341,19019,38038,14605,29210,60195,50791,40175,10751,21502,43004,24537,18387,36774,3949,7898,15796,31592,63184,47201,24803,49606,37805,14203,28406,56812,17824,35648,1697,3394,6788,13576,27152,43601,17539,35078,557,1114,2228,4456,30388,60776,51953,34243,7079,14158,28316,14128,28256,56512,43425,17251,34502,7597,13105,26210,52420,35241,883,1766,3532,4129,8258,16516,33032,4657,9314,18628];var a=function(e){return(e/2|e*128)&255};var n=function(e,r){return a(e^r)};var i=function(e){var a=r[e.length-1];var n=104;for(var i=e.length-1;i>=0;--i){var s=e[i];for(var f=0;f!=7;++f){if(s&64)a^=t[n];s*=2;--n}}return a};return function(r){var t=Vf(r);var a=i(t);var s=t.length;var f=B(16);for(var l=0;l!=16;++l)f[l]=0;var o,c,u;if((s&1)===1){o=a>>8;f[s]=n(e[0],o);--s;o=a&255;c=t[t.length-1];f[s]=n(c,o)}while(s>0){--s;o=a>>8;f[s]=n(t[s],o);--s;o=a&255;f[s]=n(t[s],o)}s=15;u=15-t.length;while(u>0){o=a>>8;f[s]=n(e[u],o);--s;--u;o=a&255;f[s]=n(t[s],o);--s;--u}return f}}();var sl=function(e,r,t,a,n){if(!n)n=r;if(!a)a=il(e);var i,s;for(i=0;i!=r.length;++i){s=r[i];s^=a[t];s=(s>>5|s<<3)&255;n[i]=s;++t}return[n,t,a]};var fl=function(e){var r=0,t=il(e);return function(e){var a=sl("",e,r,t);r=a[1];return a[0]}};function ll(e,r,t,a){var n={key:qn(e),verificationBytes:qn(e)};if(t.password)n.verifier=nl(t.password);a.valid=n.verificationBytes===n.verifier;if(a.valid)a.insitu=fl(t.password);return n}function ol(e,r,t){var a=t||{};a.Info=e._R(2);e.l-=2;if(a.Info===1)a.Data=al(e,r);else a.Data=tl(e,r);return a}function cl(e,r,t){var a={Type:t.biff>=8?e._R(2):0};if(a.Type)ol(e,r-2,a);else ll(e,t.biff>=8?r:r-2,t,a);return a}var ul=function(){function e(e,t){switch(t.type){case"base64":return r(g.decode(e),t);case"binary":return r(e,t);case"buffer":return r(w&&Buffer.isBuffer(e)?e.toString("binary"):_(e),t);case"array":return r(ce(e),t);}throw new Error("Unrecognized type "+t.type)}function r(e,r){var t=r||{};var a=t.dense?[]:{};var n=e.match(/\\trowd.*?\\row\b/g);if(!n.length)throw new Error("RTF missing table");var i={s:{c:0,r:0},e:{c:0,r:n.length-1}};n.forEach(function(e,r){if(Array.isArray(a))a[r]=[];var t=/\\\w+\b/g;var n=0;var s;var f=-1;while(s=t.exec(e)){switch(s[0]){case"\\cell":var l=e.slice(n,t.lastIndex-s[0].length);if(l[0]==" ")l=l.slice(1);++f;if(l.length){var o={v:l,t:"s"};if(Array.isArray(a))a[r][f]=o;else a[kt({r:r,c:f})]=o}break;}n=t.lastIndex}if(f>i.e.c)i.e.c=f});a["!ref"]=St(i);return a}function t(r,t){return Tt(e(r,t),t)}function a(e){var r=["{\\rtf1\\ansi"];var t=Bt(e["!ref"]),a;var n=Array.isArray(e);for(var i=t.s.r;i<=t.e.r;++i){r.push("\\trowd\\trautofit1");for(var s=t.s.c;s<=t.e.c;++s)r.push("\\cellx"+(s+1));r.push("\\pard\\intbl");for(s=t.s.c;s<=t.e.c;++s){var f=kt({r:i,c:s});a=n?(e[i]||[])[s]:e[f];if(!a||a.v==null&&(!a.f||a.F))continue;r.push(" "+(a.w||(yt(a),a.w)));r.push("\\cell")}r.push("\\pard\\intbl\\row")}return r.join("")+"}"}return{to_workbook:t,to_sheet:e,from_sheet:a}}();function hl(e){var r=e.slice(e[0]==="#"?1:0).slice(0,6);return[parseInt(r.slice(0,2),16),parseInt(r.slice(2,4),16),parseInt(r.slice(4,6),16)]}function dl(e){for(var r=0,t=1;r!=3;++r)t=t*256+(e[r]>255?255:e[r]<0?0:e[r]);return t.toString(16).toUpperCase().slice(1)}function vl(e){var r=e[0]/255,t=e[1]/255,a=e[2]/255;var n=Math.max(r,t,a),i=Math.min(r,t,a),s=n-i;if(s===0)return[0,0,r];var f=0,l=0,o=n+i;l=s/(o>1?2-o:o);switch(n){case r:f=((t-a)/s+6)%6;break;case t:f=(a-r)/s+2;break;case a:f=(r-t)/s+4;break;}return[f/6,l,o/2]}function pl(e){var r=e[0],t=e[1],a=e[2];var n=t*2*(a<.5?a:1-a),i=a-n/2;var s=[i,i,i],f=6*r;var l;if(t!==0)switch(f|0){case 0:;case 6:l=n*f;s[0]+=n;s[1]+=l;break;case 1:l=n*(2-f);s[0]+=l;s[1]+=n;break;case 2:l=n*(f-2);s[1]+=n;s[2]+=l;break;case 3:l=n*(4-f);s[1]+=l;s[2]+=n;break;case 4:l=n*(f-4);s[2]+=n;s[0]+=l;break;case 5:l=n*(6-f);s[2]+=l;s[0]+=n;break;}for(var o=0;o!=3;++o)s[o]=Math.round(s[o]*255);return s}function ml(e,r){if(r===0)return e;var t=vl(hl(e));if(r<0)t[2]=t[2]*(1+r);else t[2]=1-(1-t[2])*(1-r);return dl(pl(t))}var bl=6,gl=15,wl=1,kl=bl;function El(e){return Math.floor((e+Math.round(128/kl)/256)*kl)}function Sl(e){return Math.floor((e-5)/kl*100+.5)/100}function Bl(e){return Math.round((e*kl+5)/kl*256)/256}function Cl(e){return Bl(Sl(El(e)))}function yl(e){var r=Math.abs(e-Cl(e)),t=kl;if(r>.005)for(kl=wl;kl":;case"":break;case"":;case"":n={};if(t.diagonalUp)n.diagonalUp=Je(t.diagonalUp);if(t.diagonalDown)n.diagonalDown=Je(t.diagonalDown);r.Borders.push(n);break;case"":break;case"":break;case"":break;case"":break;case"":break;case"":break;case"":break;case"":break;case"":break;case"":break;case"":break;case"":break;case"":break;case"":;case"":break;case"":break;case"":;case"":break;case"":break;case"":;case"":break;case"":break;case"":;case"":break;case"":break;case"":;case"":break;case"":break;case"":break;case"":;case"":break;case"":;case"":break;case"":i=false;break;default:if(a&&a.WTF){if(!i)throw new Error("unrecognized "+t[0]+" in borders")};}})}function Dl(e,r,t,a){r.Fills=[];var n={};var i=false;(e[0].match(De)||[]).forEach(function(e){var t=Ne(e);switch(Le(t[0])){case"":;case"":break;case"":;case"":n={};r.Fills.push(n);break;case"":break;case"":break;case"":r.Fills.push(n);n={};break;case"":if(t.patternType)n.patternType=t.patternType;break;case"":;case"":break;case"":;case"":break;case"":;case"":break;case"":break;case"":break;case"":break;case"":break;case"":;case"":break;case"":i=false;break;default:if(a&&a.WTF){if(!i)throw new Error("unrecognized "+t[0]+" in fills")};}})}function Pl(e,r,t,a){r.Fonts=[];var n={};var s=false;(e[0].match(De)||[]).forEach(function(e){var f=Ne(e);switch(Le(f[0])){case"":;case"":break;case"":break;case"
":;case"":r.Fonts.push(n);n={};break;case"":;case"":break;case"":n.bold=1;break;case"":n.italic=1;break;case"":n.underline=1;break;case"":n.strike=1;break;case"":n.outline=1;break;case"":n.shadow=1;break;case"":n.condense=1;break;case"":n.extend=1;break;case"":;case"":break;case"":;case"":break;case"":;case"":break;case"":;case"":break;case"":;case"":break;case"":s=false;break;case"":;case"":break;case"":s=false;break;default:if(a&&a.WTF){if(!s)throw new Error("unrecognized "+f[0]+" in fonts")};}})}function Ol(e,r,t){r.NumberFmt=[];var a=Y(P._table);for(var n=0;n":;case"":;case"":break;case"0){if(l>392){for(l=392;l>60;--l)if(r.NumberFmt[l]==null)break;r.NumberFmt[l]=f}P.load(f,l)}}break;case"":break;default:if(t.WTF)throw new Error("unrecognized "+s[0]+" in numFmts");}}}function Nl(e){var r=[""];[[5,8],[23,26],[41,44],[50,392]].forEach(function(t){for(var a=t[0];a<=t[1];++a)if(e[a]!=null)r[r.length]=ur("numFmt",null,{numFmtId:a,formatCode:Xe(e[a])})});if(r.length===1)return"";r[r.length]="";r[0]=ur("numFmts",null,{count:r.length-2}).replace("/>",">");return r.join("")}var Ll=["numFmtId","fillId","fontId","borderId","xfId"];var Ml=["applyAlignment","applyBorder","applyFill","applyFont","applyNumberFormat","applyProtection","pivotButton","quotePrefix"];function Ul(e,r,t){r.CellXf=[];var a;var n=false;(e[0].match(De)||[]).forEach(function(e){var i=Ne(e),s=0;switch(Le(i[0])){case"":;case"":;case"":break;case"":a=i;delete a[0];for(s=0;s392){for(s=392;s>60;--s)if(r.NumberFmt[a.numFmtId]==r.NumberFmt[s]){a.numFmtId=s;break}}r.CellXf.push(a);break;case"":break;case"":var f={};if(i.vertical)f.vertical=i.vertical;if(i.horizontal)f.horizontal=i.horizontal;if(i.textRotation!=null)f.textRotation=i.textRotation;if(i.indent)f.indent=i.indent;if(i.wrapText)f.wrapText=Je(i.wrapText);a.alignment=f;break;case"":break;case"":;case"":break;case"":n=false;break;case"":;case"":break;case"":n=false;break;default:if(t&&t.WTF){if(!n)throw new Error("unrecognized "+i[0]+" in cellXfs")};}})}function Wl(e){var r=[];r[r.length]=ur("cellXfs",null);e.forEach(function(e){r[r.length]=ur("xf",null,e)});r[r.length]="";if(r.length===2)return"";r[0]=ur("cellXfs",null,{count:r.length-2}).replace("/>",">");return r.join("")}var Hl=function lg(){var e=/<(?:\w+:)?numFmts([^>]*)>[\S\s]*?<\/(?:\w+:)?numFmts>/;var r=/<(?:\w+:)?cellXfs([^>]*)>[\S\s]*?<\/(?:\w+:)?cellXfs>/;var t=/<(?:\w+:)?fills([^>]*)>[\S\s]*?<\/(?:\w+:)?fills>/;var a=/<(?:\w+:)?fonts([^>]*)>[\S\s]*?<\/(?:\w+:)?fonts>/;var n=/<(?:\w+:)?borders([^>]*)>[\S\s]*?<\/(?:\w+:)?borders>/;return function i(s,f,l){var o={};if(!s)return o;s=s.replace(//gm,"").replace(//gm,"");var c;if(c=s.match(e))Ol(c,o,l);if(c=s.match(a))Pl(c,o,f,l);if(c=s.match(t))Dl(c,o,f,l);if(c=s.match(n))Il(c,o,f,l);if(c=s.match(r))Ul(c,o,l);return o}}();var Vl=ur("styleSheet",null,{xmlns:vr.main[0],"xmlns:vt":vr.vt});Va.STY="http://schemas.openxmlformats.org/officeDocument/2006/relationships/styles";function Xl(e,r){var t=[Fe,Vl],a;if(e.SSF&&(a=Nl(e.SSF))!=null)t[t.length]=a;t[t.length]='';t[t.length]='';t[t.length]='';t[t.length]='';if(a=Wl(r.cellXfs))t[t.length]=a;t[t.length]='';t[t.length]='';t[t.length]='';if(t.length>2){t[t.length]="";t[1]=t[1].replace("/>",">")}return t.join("")}function Gl(e,r){var t=e._R(2);var a=Rt(e,r-2);return[t,a]}function zl(e,r,t){if(!t)t=et(6+4*r.length);t._W(2,e);Ft(r,t);var a=t.length>t.l?t.slice(0,t.l):t;if(t.l==null)t.l=t.length;return a}function jl(e,r,t){var a={};a.sz=e._R(2)/20;var n=ia(e,2,t);if(n.fItalic)a.italic=1;if(n.fCondense)a.condense=1;if(n.fExtend)a.extend=1;if(n.fShadow)a.shadow=1;if(n.fOutline)a.outline=1;if(n.fStrikeout)a.strike=1;var i=e._R(2);if(i===700)a.bold=1;switch(e._R(2)){case 1:a.vertAlign="superscript";break;case 2:a.vertAlign="subscript";break;}var s=e._R(1);if(s!=0)a.underline=s;var f=e._R(1);if(f>0)a.family=f;var l=e._R(1);if(l>0)a.charset=l;e.l++;a.color=aa(e,8);switch(e._R(1)){case 1:a.scheme="major";break;case 2:a.scheme="minor";break;}a.name=Rt(e,r-21);return a}function $l(e,r){if(!r)r=et(25+4*32);r._W(2,e.sz*20);sa(e,r);r._W(2,e.bold?700:400);var t=0;if(e.vertAlign=="superscript")t=1;else if(e.vertAlign=="subscript")t=2;r._W(2,t);r._W(1,e.underline||0);r._W(1,e.family||0);r._W(1,e.charset||0);r._W(1,0);na(e.color,r);var a=0;if(e.scheme=="major")a=1;if(e.scheme=="minor")a=2;r._W(1,a);Ft(e.name,r);return r.length>r.l?r.slice(0,r.l):r}var Kl=["none","solid","mediumGray","darkGray","lightGray","darkHorizontal","darkVertical","darkDown","darkUp","darkGrid","darkTrellis","lightHorizontal","lightVertical","lightDown","lightUp","lightGrid","lightTrellis","gray125","gray0625"];var Yl=q(Kl);var Jl=Zr;function ql(e,r){if(!r)r=et(4*3+8*7+16*1);var t=Yl[e.patternType];if(t==null)t=40;r._W(4,t);var a=0;if(t!=40){na({auto:1},r);na({auto:1},r);for(;a<12;++a)r._W(4,0)}else{for(;a<4;++a)r._W(4,0);for(;a<12;++a)r._W(4,0)}return r.length>r.l?r.slice(0,r.l):r}function Ql(e,r){var t=e.l+r;var a=e._R(2);var n=e._R(2);e.l=t;return{ixfe:a,numFmtId:n}}function Zl(e,r,t){if(!t)t=et(16);t._W(2,r||0);t._W(2,e.numFmtId||0);t._W(2,0);t._W(2,0);t._W(2,0);t._W(1,0);t._W(1,0);var a=0;t._W(1,a);t._W(1,0);t._W(1,0);t._W(1,0);return t}function eo(e,r){if(!r)r=et(10);r._W(1,0);r._W(1,0);r._W(4,0);r._W(4,0);return r}var ro=Zr;function to(e,r){if(!r)r=et(51);r._W(1,0);eo(null,r);eo(null,r);eo(null,r);eo(null,r);eo(null,r);return r.length>r.l?r.slice(0,r.l):r}function ao(e,r){if(!r)r=et(12+4*10);r._W(4,e.xfId);r._W(2,1);r._W(1,+e.builtinId);r._W(1,0);zt(e.name||"",r);return r.length>r.l?r.slice(0,r.l):r}function no(e,r,t){var a=et(4+256*2*4);a._W(4,e);zt(r,a);zt(t,a);return a.length>a.l?a.slice(0,a.l):a}function io(e,r,t){var a={};a.NumberFmt=[];for(var n in P._table)a.NumberFmt[n]=P._table[n];a.CellXf=[];a.Fonts=[];var i=[];var s=false;rt(e,function f(e,n,l){switch(l){case 44:a.NumberFmt[e[0]]=e[1];P.load(e[1],e[0]);break;case 43:a.Fonts.push(e);if(e.color.theme!=null&&r&&r.themeElements&&r.themeElements.clrScheme){e.color.rgb=ml(r.themeElements.clrScheme[e.color.theme].rgb,e.color.tint||0)}break;case 1025:break;case 45:break;case 46:break;case 47:if(i[i.length-1]=="BrtBeginCellXFs"){a.CellXf.push(e)}break;case 48:;case 507:;case 572:;case 475:break;case 1171:;case 2102:;case 1130:;case 512:;case 2095:;case 3072:break;case 35:s=true;break;case 36:s=false;break;case 37:i.push(n);s=true;break;case 38:i.pop();s=false;break;default:if((n||"").indexOf("Begin")>0)i.push(n);else if((n||"").indexOf("End")>0)i.pop();else if(!s||t.WTF&&i[i.length-1]!="BrtACBegin")throw new Error("Unexpected record "+l+" "+n);}});return a}function so(e,r){if(!r)return;var t=0;[[5,8],[23,26],[41,44],[50,392]].forEach(function(e){for(var a=e[0];a<=e[1];++a)if(r[a]!=null)++t});if(t==0)return;at(e,"BrtBeginFmts",At(t));[[5,8],[23,26],[41,44],[50,392]].forEach(function(t){for(var a=t[0];a<=t[1];++a)if(r[a]!=null)at(e,"BrtFmt",zl(a,r[a]))});at(e,"BrtEndFmts")}function fo(e){var r=1;if(r==0)return;at(e,"BrtBeginFonts",At(r));at(e,"BrtFont",$l({sz:12,color:{theme:1},name:"Calibri",family:2,scheme:"minor"}));at(e,"BrtEndFonts")}function lo(e){var r=2;if(r==0)return;at(e,"BrtBeginFills",At(r));at(e,"BrtFill",ql({patternType:"none"}));at(e,"BrtFill",ql({patternType:"gray125"}));at(e,"BrtEndFills")}function oo(e){var r=1;if(r==0)return;at(e,"BrtBeginBorders",At(r));at(e,"BrtBorder",to({}));at(e,"BrtEndBorders")}function co(e){var r=1;at(e,"BrtBeginCellStyleXFs",At(r));at(e,"BrtXF",Zl({numFmtId:0,fontId:0,fillId:0,borderId:0},65535));at(e,"BrtEndCellStyleXFs")}function uo(e,r){at(e,"BrtBeginCellXFs",At(r.length));r.forEach(function(r){at(e,"BrtXF",Zl(r,0))});at(e,"BrtEndCellXFs")}function ho(e){var r=1;at(e,"BrtBeginStyles",At(r));at(e,"BrtStyle",ao({xfId:0,builtinId:0,name:"Normal"}));at(e,"BrtEndStyles")}function vo(e){var r=0;at(e,"BrtBeginDXFs",At(r));at(e,"BrtEndDXFs")}function po(e){var r=0;at(e,"BrtBeginTableStyles",no(r,"TableStyleMedium9","PivotStyleMedium4"));at(e,"BrtEndTableStyles")}function mo(){return}function bo(e,r){var t=tt();at(t,"BrtBeginStyleSheet");so(t,e.SSF);fo(t,e);lo(t,e);oo(t,e);co(t,e);uo(t,r.cellXfs);ho(t,e);vo(t,e);po(t,e);mo(t,e);at(t,"BrtEndStyleSheet");return t.end()}Va.THEME="http://schemas.openxmlformats.org/officeDocument/2006/relationships/theme";var go=["","","","","","","","","","","",""];function wo(e,r,t){r.themeElements.clrScheme=[];var a={};(e[0].match(De)||[]).forEach(function(e){var n=Ne(e);switch(n[0]){case"":break;case"":;case"":;case"":;case"":;case"":;case"":;case"":;case"":;case"":;case"":;case"":;case"":;case"":;case"":;case"":;case"":;case"":;case"":;case"":;case"":;case"":;case"":;case"":;case"":if(n[0].charAt(1)==="/"){r.themeElements.clrScheme[go.indexOf(n[0])]=a;a={}}else{a.name=n[0].slice(3,n[0].length-1)}break;default:if(t&&t.WTF)throw new Error("Unrecognized "+n[0]+" in clrScheme");}})}function ko(){}function Eo(){}var So=/]*)>[\s\S]*<\/a:clrScheme>/;var Bo=/]*)>[\s\S]*<\/a:fontScheme>/;var Co=/]*)>[\s\S]*<\/a:fmtScheme>/;function yo(e,r,t){r.themeElements={};var a;[["clrScheme",So,wo],["fontScheme",Bo,ko],["fmtScheme",Co,Eo]].forEach(function(n){if(!(a=e.match(n[1])))throw new Error(n[0]+" not found in themeElements");n[2](a,r,t)})}var To=/]*)>[\s\S]*<\/a:themeElements>/;function _o(e,r){if(!e||e.length===0)return _o(xo());var t;var a={};if(!(t=e.match(To)))throw new Error("themeElements not found in theme");yo(t[0],a,r);a.raw=e;return a}function xo(e,r){if(r&&r.themeXLSX)return r.themeXLSX;if(e&&typeof e.raw=="string")return e.raw;var t=[Fe];t[t.length]='';t[t.length]="";t[t.length]='';t[t.length]='';t[t.length]='';t[t.length]='';t[t.length]='';t[t.length]='';t[t.length]='';t[t.length]='';t[t.length]='';t[t.length]='';t[t.length]='';t[t.length]='';t[t.length]='';t[t.length]="";t[t.length]='';t[t.length]="";t[t.length]='';t[t.length]='';t[t.length]='';t[t.length]='';t[t.length]='';t[t.length]='';t[t.length]='';t[t.length]='';t[t.length]='';t[t.length]='';t[t.length]='';t[t.length]='';t[t.length]='';t[t.length]='';t[t.length]='';t[t.length]='';t[t.length]='';t[t.length]='';t[t.length]='';t[t.length]='';t[t.length]='';t[t.length]='';t[t.length]='';t[t.length]='';t[t.length]='';t[t.length]='';t[t.length]='';t[t.length]='';t[t.length]='';t[t.length]='';t[t.length]='';t[t.length]='';t[t.length]='';t[t.length]="";t[t.length]="";t[t.length]='';t[t.length]='';t[t.length]='';t[t.length]='';t[t.length]='';t[t.length]='';t[t.length]='';t[t.length]='';t[t.length]='';t[t.length]='';t[t.length]='';t[t.length]='';t[t.length]='';t[t.length]='';t[t.length]='';t[t.length]='';t[t.length]='';t[t.length]='';t[t.length]='';t[t.length]='';t[t.length]='';t[t.length]='';t[t.length]='';t[t.length]='';t[t.length]='';t[t.length]='';t[t.length]='';t[t.length]='';t[t.length]='';t[t.length]='';t[t.length]='';t[t.length]='';t[t.length]='';t[t.length]="";t[t.length]="";t[t.length]='';t[t.length]="";t[t.length]='';t[t.length]='';t[t.length]="";t[t.length]='';t[t.length]='';t[t.length]='';t[t.length]="";t[t.length]='';t[t.length]="";t[t.length]='';t[t.length]="";t[t.length]='';t[t.length]='';t[t.length]="";t[t.length]='';t[t.length]="";t[t.length]="";t[t.length]="";t[t.length]='';t[t.length]='';t[t.length]='';t[t.length]="";t[t.length]="";t[t.length]="";t[t.length]="";t[t.length]='';t[t.length]="";t[t.length]="";t[t.length]="";t[t.length]="";t[t.length]='';t[t.length]="";t[t.length]="";t[t.length]="";t[t.length]="";t[t.length]='';t[t.length]="";t[t.length]='';t[t.length]='';t[t.length]="";t[t.length]="";t[t.length]="";t[t.length]='';t[t.length]='';t[t.length]="";t[t.length]='';t[t.length]='';t[t.length]='';t[t.length]="";t[t.length]='';t[t.length]="";t[t.length]='';t[t.length]="";t[t.length]='';t[t.length]='';t[t.length]="";t[t.length]='';t[t.length]="";t[t.length]="";t[t.length]="";t[t.length]="";t[t.length]="";t[t.length]="";t[t.length]='';t[t.length]="";t[t.length]="";t[t.length]='';t[t.length]="";t[t.length]="";t[t.length]="";t[t.length]="";return t.join("")}function Ao(e,r,t){var a=e.l+r;var n=e._R(4);if(n===124226)return;if(!t.cellStyles){e.l=a;return}var i=e.slice(e.l);e.l=a;var s;try{s=Ae(i,{type:"array"})}catch(f){return}var l=Ce(s,"theme/theme/theme1.xml",true);if(!l)return;return _o(l,t)}function Ro(e){return e._R(4)}function Fo(e){var r={};r.xclrType=e._R(2);r.nTintShade=e._R(2);switch(r.xclrType){case 0:e.l+=4;break;case 1:r.xclrValue=Io(e,4);break;case 2:r.xclrValue=bi(e,4);break;case 3:r.xclrValue=Ro(e,4);break;case 4:e.l+=4;break;}e.l+=8;return r}function Io(e,r){return Zr(e,r)}function Do(e,r){return Zr(e,r)}function Po(e){var r=e._R(2);var t=e._R(2)-4;var a=[r];switch(r){case 4:;case 5:;case 7:;case 8:;case 9:;case 10:;case 11:;case 13:a[1]=Fo(e,t);break;case 6:a[1]=Do(e,t);break;case 14:;case 15:a[1]=e._R(t===1?1:2);break;default:throw new Error("Unrecognized ExtProp type: "+r+" "+t);}return a}function Oo(e,r){var t=e.l+r;e.l+=2;var a=e._R(2);e.l+=2;var n=e._R(2);var i=[];while(n-- >0)i.push(Po(e,t-e.l));return{ixfe:a,ext:i}}function No(e,r){r.forEach(function(e){switch(e[0]){case 4:break;case 5:break;case 6:break;case 7:break;case 8:break;case 9:break;case 10:break;case 11:break;case 13:break;case 14:break;case 15:break;}})}function Lo(e){var r=[];if(!e)return r;var t=1;(e.match(De)||[]).forEach(function(e){var a=Ne(e);switch(a[0]){case"":;case"":break;case"0){}else if((r||"").indexOf("End")>0){}else if(!n||t.WTF)throw new Error("Unexpected record "+s+" "+r);}});return a}function Wo(){}function Ho(e,r,t,a){if(!e)return e;var n=a||{};var i=false,s=false;rt(e,function f(e,r,t){if(s)return;switch(t){case 359:;case 363:;case 364:;case 366:;case 367:;case 368:;case 369:;case 370:;case 371:;case 472:;case 577:;case 578:;case 579:;case 580:;case 581:;case 582:;case 583:;case 584:;case 585:;case 586:;case 587:break;case 35:i=true;break;case 36:i=false;break;default:if((r||"").indexOf("Begin")>0){}else if((r||"").indexOf("End")>0){}else if(!i||n.WTF)throw new Error("Unexpected record "+t.toString(16)+" "+r);}},n)}Va.IMG="http://schemas.openxmlformats.org/officeDocument/2006/relationships/image";Va.DRAW="http://schemas.openxmlformats.org/officeDocument/2006/relationships/drawing";function Vo(e,r){if(!e)return"??";var t=(e.match(/]*r:id="([^"]*)"/)||["",""])[1];return r["!id"][t].Target}var Xo=1024;function Go(e,r){var t=[21600,21600];var a=["m0,0l0",t[1],t[0],t[1],t[0],"0xe"].join(",");var n=[ur("xml",null,{"xmlns:v":pr.v,"xmlns:o":pr.o,"xmlns:x":pr.x,"xmlns:mv":pr.mv}).replace(/\/>/,">"),ur("o:shapelayout",ur("o:idmap",null,{"v:ext":"edit",data:e}),{"v:ext":"edit"}),ur("v:shapetype",[ur("v:stroke",null,{joinstyle:"miter"}),ur("v:path",null,{gradientshapeok:"t","o:connecttype":"rect"})].join(""),{id:"_x0000_t202","o:spt":202,coordsize:t.join(","),path:a})];while(Xo",i,ur("v:shadow",null,s),ur("v:path",null,{"o:connecttype":"none"}),'

','',"","",or("x:Anchor",[r.c+1,0,r.r+1,0,r.c+3,20,r.r+5,20].join(",")),or("x:AutoFill","False"),or("x:Row",String(r.r)),or("x:Column",String(r.c)),e[1].hidden?"":"","",""])});n.push("");return n.join("")}Va.CMNT="http://schemas.openxmlformats.org/officeDocument/2006/relationships/comments";function zo(e,r){var t=Array.isArray(e);var a;r.forEach(function(r){var n=wt(r.ref);if(t){if(!e[n.r])e[n.r]=[];a=e[n.r][n.c]}else a=e[r.ref];if(!a){a={t:"z"};if(t)e[n.r][n.c]=a;else e[r.ref]=a;var i=Bt(e["!ref"]||"BDWGO1000001:A1");if(i.s.r>n.r)i.s.r=n.r;if(i.e.rn.c)i.s.c=n.c;if(i.e.c/))return[];var t=[];var a=[];var n=e.match(/<(?:\w+:)?authors>([\s\S]*)<\/(?:\w+:)?authors>/);if(n&&n[1])n[1].split(/<\/\w*:?author>/).forEach(function(e){if(e===""||e.trim()==="")return;var r=e.match(/<(?:\w+:)?author[^>]*>(.*)/);if(r)t.push(r[1])});var i=e.match(/<(?:\w+:)?commentList>([\s\S]*)<\/(?:\w+:)?commentList>/);if(i&&i[1])i[1].split(/<\/\w*:?comment>/).forEach(function(e){if(e===""||e.trim()==="")return;var n=e.match(/<(?:\w+:)?comment[^>]*>/);if(!n)return;var i=Ne(n[0]);var s={ -author:i.authorId&&t[i.authorId]||"sheetjsghost",ref:i.ref,guid:i.guid};var f=wt(i.ref);if(r.sheetRows&&r.sheetRows<=f.r)return;var l=e.match(/<(?:\w+:)?text>([\s\S]*)<\/(?:\w+:)?text>/);var o=!!l&&!!l[1]&&Rf(l[1])||{r:"",t:"",h:""};s.r=o.r;if(o.r=="")o.t=o.h="";s.t=(o.t||"").replace(/\r\n/g,"\n").replace(/\r/g,"\n");if(r.cellHTML)s.h=o.h;a.push(s)});return a}var $o=ur("comments",null,{xmlns:vr.main[0]});function Ko(e){var r=[Fe,$o];var t=[];r.push("");e.forEach(function(e){e[1].forEach(function(e){var a=Xe(e.a);if(t.indexOf(a)>-1)return;t.push(a);r.push(""+a+"")})});r.push("");r.push("");e.forEach(function(e){e[1].forEach(function(a){r.push('');r.push(or("t",a.t==null?"":Xe(a.t)));r.push("")})});r.push("");if(r.length>2){r[r.length]="";r[1]=r[1].replace("/>",">")}return r.join("")}function Yo(e){var r={};r.iauthor=e._R(4);var t=Zt(e,16);r.rfx=t.s;r.ref=kt(t.s);e.l+=16;return r}function Jo(e,r){if(r==null)r=et(36);r._W(4,e[1].iauthor);ea(e[0],r);r._W(4,0);r._W(4,0);r._W(4,0);r._W(4,0);return r}var qo=Rt;function Qo(e){return Ft(e.slice(0,54))}function Zo(e,r){var t=[];var a=[];var n={};var i=false;rt(e,function s(e,f,l){switch(l){case 632:a.push(e);break;case 635:n=e;break;case 637:n.t=e.t;n.h=e.h;n.r=e.r;break;case 636:n.author=a[n.iauthor];delete n.iauthor;if(r.sheetRows&&n.rfx&&r.sheetRows<=n.rfx.r)break;if(!n.t)n.t="";delete n.rfx;t.push(n);break;case 3072:break;case 35:i=true;break;case 36:i=false;break;case 37:break;case 38:break;default:if((f||"").indexOf("Begin")>0){}else if((f||"").indexOf("End")>0){}else if(!i||r.WTF)throw new Error("Unexpected record "+l+" "+f);}});return t}function ec(e){var r=tt();var t=[];at(r,"BrtBeginComments");at(r,"BrtBeginCommentAuthors");e.forEach(function(e){e[1].forEach(function(e){if(t.indexOf(e.a)>-1)return;t.push(e.a.slice(0,54));at(r,"BrtCommentAuthor",Qo(e.a))})});at(r,"BrtEndCommentAuthors");at(r,"BrtBeginCommentList");e.forEach(function(e){e[1].forEach(function(a){a.iauthor=t.indexOf(a.a);var n={s:wt(e[0]),e:wt(e[0])};at(r,"BrtBeginComment",Jo([n,a]));if(a.t&&a.t.length>0)at(r,"BrtCommentText",Lt(a));at(r,"BrtEndComment");delete a.iauthor})});at(r,"BrtEndCommentList");at(r,"BrtEndComments");return r.end()}var rc="application/vnd.ms-office.vbaProject";function tc(e){var r=X.utils.cfb_new({root:"R"});e.FullPaths.forEach(function(t,a){if(t.slice(-1)==="/"||!t.match(/_VBA_PROJECT_CUR/))return;var n=t.replace(/^[^\/]*/,"R").replace(/\/_VBA_PROJECT_CUR\u0000*/,"");X.utils.cfb_add(r,n,e.FileIndex[a].content)});return X.write(r)}function ac(e,r){r.FullPaths.forEach(function(t,a){if(a==0)return;var n=t.replace(/[^\/]*[\/]/,"/_VBA_PROJECT_CUR/");if(n.slice(-1)!=="/")X.utils.cfb_add(e,n,r.FileIndex[a].content)})}var nc=["xlsb","xlsm","xlam","biff8","xla"];Va.DS="http://schemas.openxmlformats.org/officeDocument/2006/relationships/dialogsheet";Va.MS="http://schemas.microsoft.com/office/2006/relationships/xlMacrosheet";function ic(){return{"!type":"dialog"}}function sc(){return{"!type":"dialog"}}function fc(){return{"!type":"macro"}}function lc(){return{"!type":"macro"}}var oc=function(){var e=/(^|[^A-Za-z_])R(\[?-?\d+\]|[1-9]\d*|)C(\[?-?\d+\]|[1-9]\d*|)(?![A-Za-z0-9_])/g;var r={r:0,c:0};function t(e,t,a,n){var i=false,s=false;if(a.length==0)s=true;else if(a.charAt(0)=="["){s=true;a=a.slice(1,-1)}if(n.length==0)i=true;else if(n.charAt(0)=="["){i=true;n=n.slice(1,-1)}var f=a.length>0?parseInt(a,10)|0:0,l=n.length>0?parseInt(n,10)|0:0;if(i)l+=r.c;else--l;if(s)f+=r.r;else--f;return t+(i?"":"$")+pt(l)+(s?"":"$")+ut(f)}return function a(n,i){r=i;return n.replace(e,t)}}();var cc=/(^|[^._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;var uc=function(){return function e(r,t){return r.replace(cc,function(e,r,a,n,i,s){var f=vt(n)-(a?0:t.c);var l=ct(s)-(i?0:t.r);var o=l==0?"":!i?"["+l+"]":l+1;var c=f==0?"":!a?"["+f+"]":f+1;return r+"R"+o+"C"+c})}}();function hc(e,r){return e.replace(cc,function(e,t,a,n,i,s){return t+(a=="$"?a+n:pt(vt(n)+r.c))+(i=="$"?i+s:ut(ct(s)+r.r))})}function dc(e,r,t){var a=Et(r),n=a.s,i=wt(t);var s={r:i.r-n.r,c:i.c-n.c};return hc(e,s)}function vc(e){if(e.length==1)return false;return true}function pc(e){return e.replace(/_xlfn\./g,"")}function mc(e){e.l+=1;return}function bc(e,r){var t=e._R(r==1?1:2);return[t&16383,t>>14&1,t>>15&1]}function gc(e,r,t){var a=2;if(t){if(t.biff>=2&&t.biff<=5)return wc(e,r,t);else if(t.biff==12)a=4}var n=e._R(a),i=e._R(a);var s=bc(e,2);var f=bc(e,2);return{s:{r:n,c:s[0],cRel:s[1],rRel:s[2]},e:{r:i,c:f[0],cRel:f[1],rRel:f[2]}}}function wc(e){var r=bc(e,2),t=bc(e,2);var a=e._R(1);var n=e._R(1);return{s:{r:r[0],c:a,cRel:r[1],rRel:r[2]},e:{r:t[0],c:n,cRel:t[1],rRel:t[2]}}}function kc(e,r,t){if(t.biff<8)return wc(e,r,t);var a=e._R(t.biff==12?4:2),n=e._R(t.biff==12?4:2);var i=bc(e,2);var s=bc(e,2);return{s:{r:a,c:i[0],cRel:i[1],rRel:i[2]},e:{r:n,c:s[0],cRel:s[1],rRel:s[2]}}}function Ec(e,r,t){if(t&&t.biff>=2&&t.biff<=5)return Sc(e,r,t);var a=e._R(t&&t.biff==12?4:2);var n=bc(e,2);return{r:a,c:n[0],cRel:n[1],rRel:n[2]}}function Sc(e){var r=bc(e,2);var t=e._R(1);return{r:r[0],c:t,cRel:r[1],rRel:r[2]}}function Bc(e){var r=e._R(2);var t=e._R(2);return{r:r,c:t&255,fQuoted:!!(t&16384),cRel:t>>15,rRel:t>>15}}function Cc(e,r,t){var a=t&&t.biff?t.biff:8;if(a>=2&&a<=5)return yc(e,r,t);var n=e._R(a>=12?4:2);var i=e._R(2);var s=(i&16384)>>14,f=(i&32768)>>15;i&=16383;if(f==1)while(n>524287)n-=1048576;if(s==1)while(i>8191)i=i-16384;return{r:n,c:i,cRel:s,rRel:f}}function yc(e){var r=e._R(2);var t=e._R(1);var a=(r&32768)>>15,n=(r&16384)>>14;r&=16383;if(a==1&&r>=8192)r=r-16384;if(n==1&&t>=128)t=t-256;return{r:r,c:t,cRel:n,rRel:a}}function Tc(e,r,t){var a=(e[e.l++]&96)>>5;var n=gc(e,t.biff>=2&&t.biff<=5?6:8,t);return[a,n]}function _c(e,r,t){var a=(e[e.l++]&96)>>5;var n=e._R(2,"i");var i=8;if(t)switch(t.biff){case 5:e.l+=12;i=6;break;case 12:i=12;break;}var s=gc(e,i,t);return[a,n,s]}function xc(e,r,t){var a=(e[e.l++]&96)>>5;e.l+=t&&t.biff>8?12:t.biff<8?6:8;return[a]}function Ac(e,r,t){var a=(e[e.l++]&96)>>5;var n=e._R(2);var i=8;if(t)switch(t.biff){case 5:e.l+=12;i=6;break;case 12:i=12;break;}e.l+=i;return[a,n]}function Rc(e,r,t){var a=(e[e.l++]&96)>>5;var n=kc(e,r-1,t);return[a,n]}function Fc(e,r,t){var a=(e[e.l++]&96)>>5;e.l+=t.biff==2?6:t.biff==12?14:7;return[a]}function Ic(e){var r=e[e.l+1]&1;var t=1;e.l+=4;return[r,t]}function Dc(e,r,t){e.l+=2;var a=e._R(t&&t.biff==2?1:2);var n=[];for(var i=0;i<=a;++i)n.push(e._R(t&&t.biff==2?1:2));return n}function Pc(e,r,t){var a=e[e.l+1]&255?1:0;e.l+=2;return[a,e._R(t&&t.biff==2?1:2)]}function Oc(e,r,t){var a=e[e.l+1]&255?1:0;e.l+=2;return[a,e._R(t&&t.biff==2?1:2)]}function Nc(e){var r=e[e.l+1]&255?1:0;e.l+=2;return[r,e._R(2)]}function Lc(e,r,t){var a=e[e.l+1]&255?1:0;e.l+=t&&t.biff==2?3:4;return[a]}function Mc(e){var r=e._R(1),t=e._R(1);return[r,t]}function Uc(e){e._R(2);return Mc(e,2)}function Wc(e){e._R(2);return Mc(e,2)}function Hc(e,r,t){var a=(e[e.l]&96)>>5;e.l+=1;var n=Ec(e,0,t);return[a,n]}function Vc(e,r,t){var a=(e[e.l]&96)>>5;e.l+=1;var n=Cc(e,0,t);return[a,n]}function Xc(e,r,t){var a=(e[e.l]&96)>>5;e.l+=1;var n=e._R(2);if(t&&t.biff==5)e.l+=12;var i=Ec(e,0,t);return[a,n,i]}function Gc(e,r,t){var a=(e[e.l]&96)>>5;e.l+=1;var n=e._R(t&&t.biff<=3?1:2);return[fh[n],sh[n],a]}function zc(e,r,t){var a=e[e.l++];var n=e._R(1),i=t&&t.biff<=3?[a==88?-1:0,e._R(1)]:jc(e);return[n,(i[0]===0?sh:ih)[i[1]]]}function jc(e){return[e[e.l+1]>>7,e._R(2)&32767]}function $c(e,r,t){e.l+=t&&t.biff==2?3:4;return}function Kc(e,r,t){e.l++;if(t&&t.biff==12)return[e._R(4,"i"),0];var a=e._R(2);var n=e._R(t&&t.biff==2?1:2);return[a,n]}function Yc(e){e.l++;return Ia[e._R(1)]}function Jc(e){e.l++;return e._R(2)}function qc(e){e.l++;return e._R(1)!==0}function Qc(e){e.l++;return ra(e,8)}function Zc(e,r,t){e.l++;return ti(e,r-1,t)}function eu(e,r){var t=[e._R(1)];if(r==12)switch(t[0]){case 2:t[0]=4;break;case 4:t[0]=16;break;case 0:t[0]=1;break;case 1:t[0]=2;break;}switch(t[0]){case 4:t[1]=Yn(e,1)?"TRUE":"FALSE";if(r!=12)e.l+=7;break;case 37:;case 16:t[1]=Ia[e[e.l]];e.l+=r==12?4:8;break;case 0:e.l+=8;break;case 1:t[1]=ra(e,8);break;case 2:t[1]=fi(e,0,{biff:r>0&&r<8?2:r});break;default:throw new Error("Bad SerAr: "+t[0]);}return t}function ru(e,r,t){var a=e._R(t.biff==12?4:2);var n=[];for(var i=0;i!=a;++i)n.push((t.biff==12?Zt:Ti)(e,8));return n}function tu(e,r,t){var a=0,n=0;if(t.biff==12){a=e._R(4);n=e._R(4)}else{n=1+e._R(1);a=1+e._R(2)}if(t.biff>=2&&t.biff<8){--a;if(--n==0)n=256}for(var i=0,s=[];i!=a&&(s[i]=[]);++i)for(var f=0;f!=n;++f)s[i][f]=eu(e,t.biff);return s}function au(e,r,t){var a=e._R(1)>>>5&3;var n=!t||t.biff>=8?4:2;var i=e._R(n);switch(t.biff){case 2:e.l+=5;break;case 3:;case 4:e.l+=8;break;case 5:e.l+=12;break;}return[a,0,i]}function nu(e,r,t){if(t.biff==5)return iu(e,r,t);var a=e._R(1)>>>5&3;var n=e._R(2);var i=e._R(4);return[a,n,i]}function iu(e){var r=e._R(1)>>>5&3;var t=e._R(2,"i");e.l+=8;var a=e._R(2);e.l+=12;return[r,t,a]}function su(e,r,t){var a=e._R(1)>>>5&3;e.l+=t&&t.biff==2?3:4;var n=e._R(t&&t.biff==2?1:2);return[a,n]}function fu(e,r,t){var a=e._R(1)>>>5&3;var n=e._R(t&&t.biff==2?1:2);return[a,n]}function lu(e,r,t){var a=e._R(1)>>>5&3;e.l+=4;if(t.biff<8)e.l--;if(t.biff==12)e.l+=2;return[a]}function ou(e,r,t){var a=(e[e.l++]&96)>>5;var n=e._R(2);var i=4;if(t)switch(t.biff){case 5:i=15;break;case 12:i=6;break;}e.l+=i;return[a,n]}var cu=Zr;var uu=Zr;var hu=Zr;function du(e,r,t){e.l+=2;return[Bc(e,4,t)]}function vu(e){e.l+=6;return[]}var pu=du;var mu=vu;var bu=vu;var gu=du;function wu(e){e.l+=2;return[qn(e),e._R(2)&1]}var ku=du;var Eu=wu;var Su=vu;var Bu=du;var Cu=du;var yu=["Data","All","Headers","??","?Data2","??","?DataHeaders","??","Totals","??","??","??","?DataTotals","??","??","??","?Current"];function Tu(e){e.l+=2;var r=e._R(2);var t=e._R(2);var a=e._R(4);var n=e._R(2);var i=e._R(2);var s=yu[t>>2&31];return{ixti:r,coltype:t&3,rt:s,idx:a,c:n,C:i}}function _u(e){e.l+=2;return[e._R(4)]}function xu(e,r,t){e.l+=5;e.l+=2;e.l+=t.biff==2?1:4;return["PTGSHEET"]}function Au(e,r,t){e.l+=t.biff==2?4:5;return["PTGENDSHEET"]}function Ru(e){var r=e._R(1)>>>5&3;var t=e._R(2);return[r,t]}function Fu(e){var r=e._R(1)>>>5&3;var t=e._R(2);return[r,t]}function Iu(e){e.l+=4;return[0,0]}var Du={1:{n:"PtgExp",f:Kc},2:{n:"PtgTbl",f:hu},3:{n:"PtgAdd",f:mc},4:{n:"PtgSub",f:mc},5:{n:"PtgMul",f:mc},6:{n:"PtgDiv",f:mc},7:{n:"PtgPower",f:mc},8:{n:"PtgConcat",f:mc},9:{n:"PtgLt",f:mc},10:{n:"PtgLe",f:mc},11:{n:"PtgEq",f:mc},12:{n:"PtgGe",f:mc},13:{n:"PtgGt",f:mc},14:{n:"PtgNe",f:mc},15:{n:"PtgIsect",f:mc},16:{n:"PtgUnion",f:mc},17:{n:"PtgRange",f:mc},18:{n:"PtgUplus",f:mc},19:{n:"PtgUminus",f:mc},20:{n:"PtgPercent",f:mc},21:{n:"PtgParen",f:mc},22:{n:"PtgMissArg",f:mc},23:{n:"PtgStr",f:Zc},26:{n:"PtgSheet",f:xu},27:{n:"PtgEndSheet",f:Au},28:{n:"PtgErr",f:Yc},29:{n:"PtgBool",f:qc},30:{n:"PtgInt",f:Jc},31:{n:"PtgNum",f:Qc},32:{n:"PtgArray",f:Fc},33:{n:"PtgFunc",f:Gc},34:{n:"PtgFuncVar",f:zc},35:{n:"PtgName",f:au},36:{n:"PtgRef",f:Hc},37:{n:"PtgArea",f:Tc},38:{n:"PtgMemArea",f:su},39:{n:"PtgMemErr",f:cu},40:{n:"PtgMemNoMem",f:uu},41:{n:"PtgMemFunc",f:fu},42:{n:"PtgRefErr",f:lu},43:{n:"PtgAreaErr",f:xc},44:{n:"PtgRefN",f:Vc},45:{n:"PtgAreaN",f:Rc},46:{n:"PtgMemAreaN",f:Ru},47:{n:"PtgMemNoMemN",f:Fu},57:{n:"PtgNameX",f:nu},58:{n:"PtgRef3d",f:Xc},59:{n:"PtgArea3d",f:_c},60:{n:"PtgRefErr3d",f:ou},61:{n:"PtgAreaErr3d",f:Ac},255:{}};var Pu={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};(function(){for(var e in Pu)Du[e]=Du[Pu[e]]})();var Ou={1:{n:"PtgElfLel",f:wu},2:{n:"PtgElfRw",f:Bu},3:{n:"PtgElfCol",f:pu},6:{n:"PtgElfRwV",f:Cu},7:{n:"PtgElfColV",f:gu},10:{n:"PtgElfRadical",f:ku},11:{n:"PtgElfRadicalS",f:Su},13:{n:"PtgElfColS",f:mu},15:{n:"PtgElfColSV",f:bu},16:{n:"PtgElfRadicalLel",f:Eu},25:{n:"PtgList",f:Tu},29:{n:"PtgSxName",f:_u},255:{}};var Nu={0:{n:"PtgAttrNoop",f:Iu},1:{n:"PtgAttrSemi",f:Lc},2:{n:"PtgAttrIf",f:Oc},4:{n:"PtgAttrChoose",f:Dc},8:{n:"PtgAttrGoto",f:Pc},16:{n:"PtgAttrSum",f:$c},32:{n:"PtgAttrBaxcel",f:Ic},64:{n:"PtgAttrSpace",f:Uc},65:{n:"PtgAttrSpaceSemi",f:Wc},128:{n:"PtgAttrIfError",f:Nc},255:{}};Nu[33]=Nu[32];function Lu(e,r,t,a){if(a.biff<8)return Zr(e,r);var n=e.l+r;var i=[];for(var s=0;s!==t.length;++s){switch(t[s][0]){case"PtgArray":t[s][1]=tu(e,0,a);i.push(t[s][1]);break;case"PtgMemArea":t[s][2]=ru(e,t[s][1],a);i.push(t[s][2]);break;case"PtgExp":if(a&&a.biff==12){t[s][1][1]=e._R(4);i.push(t[s][1])}break;case"PtgList":;case"PtgElfRadicalS":;case"PtgElfColS":;case"PtgElfColSV":throw"Unsupported "+t[s][0];default:break;}}r=n-e.l;if(r!==0)i.push(Zr(e,r));return i}function Mu(e,r,t){var a=e.l+r;var n,i,s=[];while(a!=e.l){r=a-e.l;i=e[e.l];n=Du[i];if(i===24||i===25)n=(i===24?Ou:Nu)[e[e.l+1]];if(!n||!n.f){Zr(e,r)}else{s.push([n.n,n.f(e,r,t)])}}return s}function Uu(e){var r=[];for(var t=0;t=",PtgGt:">",PtgLe:"<=",PtgLt:"<",PtgMul:"*",PtgNe:"<>",PtgPower:"^",PtgSub:"-"};var Hu=new RegExp(/[^\w\u4E00-\u9FFF\u3040-\u30FF]/);function Vu(e,r){if(!e&&!(r&&r.biff<=5&&r.biff>=2))throw new Error("empty sheet name");if(Hu.test(e))return"'"+e+"'";return e}function Xu(e,r,t){if(!e)return"SH33TJSERR0";if(t.biff>8&&(!e.XTI||!e.XTI[r]))return e.SheetNames[r];if(!e.XTI)return"SH33TJSERR6";var a=e.XTI[r];if(t.biff<8){if(r>1e4)r-=65536;if(r<0)r=-r;return r==0?"":e.XTI[r-1]}if(!a)return"SH33TJSERR1";var n="";if(t.biff>8)switch(e[a[0]][0]){case 357:n=a[1]==-1?"#REF":e.SheetNames[a[1]];return a[1]==a[2]?n:n+":"+e.SheetNames[a[2]];case 358:if(t.SID!=null)return e.SheetNames[t.SID];return"SH33TJSSAME"+e[a[0]][0];case 355:;default:return"SH33TJSSRC"+e[a[0]][0];}switch(e[a[0]][0][0]){case 1025:n=a[1]==-1?"#REF":e.SheetNames[a[1]]||"SH33TJSERR3";return a[1]==a[2]?n:n+":"+e.SheetNames[a[2]];case 14849:return e[a[0]].slice(1).map(function(e){return e.Name}).join(";;");default:if(!e[a[0]][0][3])return"SH33TJSERR2";n=a[1]==-1?"#REF":e[a[0]][0][3][a[1]]||"SH33TJSERR4";return a[1]==a[2]?n:n+":"+e[a[0]][0][3][a[2]];}}function Gu(e,r,t){var a=Xu(e,r,t);return a=="#REF"?a:Vu(a,t)}function zu(e,r,t,a,n){var i=n&&n.biff||8;var s={s:{c:0,r:0},e:{c:0,r:0}};var f=[],l,o,c,u=0,h=0,d,v="";if(!e[0]||!e[0][0])return"";var p=-1,m="";for(var b=0,g=e[0].length;b=0){switch(e[0][p][1][0]){case 0:m=he(" ",e[0][p][1][1]);break;case 1:m=he("\r",e[0][p][1][1]);break;default:m="";if(n.WTF)throw new Error("Unexpected PtgAttrSpaceType "+e[0][p][1][0]);}o=o+m;p=-1}f.push(o+Wu[w[0]]+l);break;case"PtgIsect":l=f.pop();o=f.pop();f.push(o+" "+l);break;case"PtgUnion":l=f.pop();o=f.pop();f.push(o+","+l);break;case"PtgRange":l=f.pop();o=f.pop();f.push(o+":"+l);break;case"PtgAttrChoose":break;case"PtgAttrGoto":break;case"PtgAttrIf":break;case"PtgAttrIfError":break;case"PtgRef":c=nt(w[1][1],s,n);f.push(st(c,i));break;case"PtgRefN":c=t?nt(w[1][1],t,n):w[1][1];f.push(st(c,i));break;case"PtgRef3d":u=w[1][1];c=nt(w[1][2],s,n);v=Gu(a,u,n);var k=v;f.push(v+"!"+st(c,i));break;case"PtgFunc":;case"PtgFuncVar":var E=w[1][0],S=w[1][1];if(!E)E=0;E&=127;var B=E==0?[]:f.slice(-E);f.length-=E;if(S==="User")S=B.shift();f.push(S+"("+B.join(",")+")");break;case"PtgBool":f.push(w[1]?"TRUE":"FALSE");break;case"PtgInt":f.push(w[1]);break;case"PtgNum":f.push(String(w[1]));break;case"PtgStr":f.push('"'+w[1].replace(/"/g,'""')+'"');break;case"PtgErr":f.push(w[1]);break;case"PtgAreaN":d=it(w[1][1],t?{s:t}:s,n);f.push(ft(d,n));break;case"PtgArea":d=it(w[1][1],s,n);f.push(ft(d,n));break;case"PtgArea3d":u=w[1][1];d=w[1][2];v=Gu(a,u,n);f.push(v+"!"+ft(d,n));break;case"PtgAttrSum":f.push("SUM("+f.pop()+")");break;case"PtgAttrBaxcel":;case"PtgAttrSemi":break;case"PtgName":h=w[1][2];var C=(a.names||[])[h-1]||(a[0]||[])[h];var y=C?C.Name:"SH33TJSNAME"+String(h);if(y&&y.slice(0,6)=="_xlfn.")y=y.slice(6);f.push(y);break;case"PtgNameX":var T=w[1][1];h=w[1][2];var _;if(n.biff<=5){if(T<0)T=-T;if(a[T])_=a[T][h]}else{var x="";if(((a[T]||[])[0]||[])[0]==14849){}else if(((a[T]||[])[0]||[])[0]==1025){if(a[T][h]&&a[T][h].itab>0){x=a.SheetNames[a[T][h].itab-1]+"!"}}else x=a.SheetNames[h-1]+"!";if(a[T]&&a[T][h])x+=a[T][h].Name;else if(a[0]&&a[0][h])x+=a[0][h].Name;else{var A=(Xu(a,T,n)||"").split(";;");if(A[h-1])x=A[h-1];else x+="SH33TJSERRX"}f.push(x);break}if(!_)_={Name:"SH33TJSERRY"};f.push(_.Name);break;case"PtgParen":var R="(",F=")";if(p>=0){m="";switch(e[0][p][1][0]){case 2:R=he(" ",e[0][p][1][1])+R;break;case 3:R=he("\r",e[0][p][1][1])+R;break;case 4:F=he(" ",e[0][p][1][1])+F;break;case 5:F=he("\r",e[0][p][1][1])+F;break;default:if(n.WTF)throw new Error("Unexpected PtgAttrSpaceType "+e[0][p][1][0]);}p=-1}f.push(R+f.pop()+F);break;case"PtgRefErr":f.push("#REF!");break;case"PtgRefErr3d":f.push("#REF!");break;case"PtgExp":c={c:w[1][1],r:w[1][0]};var I={c:t.c,r:t.r};if(a.sharedf[kt(c)]){var D=a.sharedf[kt(c)];f.push(zu(D,s,I,a,n))}else{var P=false;for(l=0;l!=a.arrayf.length;++l){o=a.arrayf[l];if(c.co[0].e.c)continue;if(c.ro[0].e.r)continue;f.push(zu(o[1],s,I,a,n));P=true;break}if(!P)f.push(w[1])}break;case"PtgArray":f.push("{"+Uu(w[1])+"}");break;case"PtgMemArea":break;case"PtgAttrSpace":;case"PtgAttrSpaceSemi":p=b;break;case"PtgTbl":break;case"PtgMemErr":break;case"PtgMissArg":f.push("");break;case"PtgAreaErr":f.push("#REF!");break;case"PtgAreaErr3d":f.push("#REF!");break;case"PtgList":f.push("Table"+w[1].idx+"[#"+w[1].rt+"]");break;case"PtgMemAreaN":;case"PtgMemNoMemN":;case"PtgAttrNoop":;case"PtgSheet":;case"PtgEndSheet":break;case"PtgMemFunc":break;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":throw new Error("Unrecognized Formula Token: "+String(w));default:throw new Error("Unrecognized Formula Token: "+String(w));}var O=["PtgAttrSpace","PtgAttrSpaceSemi","PtgAttrGoto"];if(n.biff!=3)if(p>=0&&O.indexOf(e[0][b][0])==-1){w=e[0][p];var N=true;switch(w[1][0]){case 4:N=false;case 0:m=he(" ",w[1][1]);break;case 5:N=false;case 1:m=he("\r",w[1][1]);break;default:m="";if(n.WTF)throw new Error("Unexpected PtgAttrSpaceType "+w[1][0]);}f.push((N?m:"")+f.pop()+(N?"":m));p=-1}}if(f.length>1&&n.WTF)throw new Error("bad formula stack");return f[0]}function ju(e,r,t){var a=e.l+r,n=t.biff==2?1:2;var i,s=e._R(n);if(s==65535)return[[],Zr(e,r-2)];var f=Mu(e,s,t);if(r!==s+n)i=Lu(e,r-s-n,f,t);e.l=a;return[f,i]}function $u(e,r,t){var a=e.l+r,n=t.biff==2?1:2;var i,s=e._R(n);if(s==65535)return[[],Zr(e,r-2)];var f=Mu(e,s,t);if(r!==s+n)i=Lu(e,r-s-n,f,t);e.l=a;return[f,i]}function Ku(e,r,t,a){var n=e.l+r;var i=Mu(e,a,t);var s;if(n!==e.l)s=Lu(e,n-e.l,i,t);return[i,s]}function Yu(e,r,t){var a=e.l+r;var n,i=e._R(2);var s=Mu(e,i,t);if(i==65535)return[[],Zr(e,r-2)];if(r!==i+2)n=Lu(e,a-i-2,s,t);return[s,n]}function Ju(e){var r;if(Hr(e,e.l+6)!==65535)return[ra(e),"n"];switch(e[e.l]){case 0:e.l+=8;return["String","s"];case 1:r=e[e.l+2]===1;e.l+=8;return[r,"b"];case 2:r=e[e.l+2];e.l+=8;return[r,"e"];case 3:e.l+=8;return["","s"];}return[]}function qu(e){if(e==null){var r=et(8);r._W(1,3);r._W(1,0);r._W(2,0);r._W(2,0);r._W(2,65535);return r}else if(typeof e=="number")return ta(e);return ta(0)}function Qu(e,r,t){var a=e.l+r;var n=wi(e,6);if(t.biff==2)++e.l;var i=Ju(e,8);var s=e._R(1);if(t.biff!=2){e._R(1);if(t.biff>=5){e._R(4)}}var f=$u(e,a-e.l,t);return{cell:n,val:i[0],formula:f,shared:s>>3&1,tt:i[1]}}function Zu(e,r,t,a,n){var i=ki(r,t,n);var s=qu(e.v);var f=et(6);var l=1|32;f._W(2,l);f._W(4,0);var o=et(e.bf.length);for(var c=0;c0?Lu(e,i,n,t):null;return[n,s]}var rh=eh;var th=eh;var ah=eh;var nh=eh;var ih={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"};var sh={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"};var fh={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};function lh(e){if(e.slice(0,3)=="of:")e=e.slice(3);if(e.charCodeAt(0)==61){e=e.slice(1);if(e.charCodeAt(0)==61)e=e.slice(1)}e=e.replace(/COM\.MICROSOFT\./g,"");e=e.replace(/\[((?:\.[A-Z]+[0-9]+)(?::\.[A-Z]+[0-9]+)?)\]/g,function(e,r){return r.replace(/\./g,"")});e=e.replace(/\[.(#[A-Z]*[?!])\]/g,"$1");return e.replace(/[;~]/g,",").replace(/\|/g,";")}function oh(e){var r="of:="+e.replace(cc,"$1[.$2$3$4$5]").replace(/\]:\[/g,":");return r.replace(/;/g,"|").replace(/,/g,";")}function ch(e){var r=e.split(":");var t=r[0].split(".")[0];return[t,r[0].split(".")[1]+(r.length>1?":"+(r[1].split(".")[1]||r[1].split(".")[0]):"")]}function uh(e){return e.replace(/\./,"!")}var hh={};var dh={};Va.WS=["http://schemas.openxmlformats.org/officeDocument/2006/relationships/worksheet","http://purl.oclc.org/ooxml/officeDocument/relationships/worksheet"];var vh=typeof Map!=="undefined";function ph(e,r,t){var a=0,n=e.length;if(t){if(vh?t.has(r):Object.prototype.hasOwnProperty.call(t,r)){var i=vh?t.get(r):t[r];for(;a-1){t.width=Bl(a);t.customWidth=1}else if(r.width!=null)t.width=r.width;if(r.hidden)t.hidden=true;if(r.level!=null){t.outlineLevel=t.level=r.level}return t}function bh(e,r){if(!e)return;var t=[.7,.7,.75,.75,.3,.3];if(r=="xlml")t=[1,1,1,1,.5,.5];if(e.left==null)e.left=t[0];if(e.right==null)e.right=t[1];if(e.top==null)e.top=t[2];if(e.bottom==null)e.bottom=t[3];if(e.header==null)e.header=t[4];if(e.footer==null)e.footer=t[5]}function gh(e,r,t){var a=t.revssf[r.z!=null?r.z:"General"];var n=60,i=e.length;if(a==null&&t.ssf){for(;n<392;++n)if(t.ssf[n]==null){P.load(r.z,n);t.ssf[n]=r.z;t.revssf[r.z]=a=n;break}}for(n=0;n!=i;++n)if(e[n].numFmtId===a)return n;e[i]={numFmtId:a,fontId:0,fillId:0,borderId:0,xfId:0,applyNumberFormat:1};return i}function wh(e,r,t,a,n,i){try{if(a.cellNF)e.z=P._table[r]}catch(s){if(a.WTF)throw s}if(e.t==="z"&&!a.cellStyles)return;if(e.t==="d"&&typeof e.v==="string")e.v=oe(e.v);if((!a||a.cellText!==false)&&e.t!=="z")try{if(P._table[r]==null)P.load(L[r]||"General",r);if(e.t==="e")e.w=e.w||Ia[e.v];else if(r===0){if(e.t==="n"){if((e.v|0)===e.v)e.w=P._general_int(e.v);else e.w=P._general_num(e.v)}else if(e.t==="d"){var f=re(e.v);if((f|0)===f)e.w=P._general_int(f);else e.w=P._general_num(f)}else if(e.v===undefined)return"";else e.w=P._general(e.v,dh)}else if(e.t==="d")e.w=P.format(r,re(e.v),dh);else e.w=P.format(r,e.v,dh)}catch(s){if(a.WTF)throw s}if(!a.cellStyles)return;if(t!=null)try{e.s=i.Fills[t];if(e.s.fgColor&&e.s.fgColor.theme&&!e.s.fgColor.rgb){e.s.fgColor.rgb=ml(n.themeElements.clrScheme[e.s.fgColor.theme].rgb,e.s.fgColor.tint||0);if(a.WTF)e.s.fgColor.raw_rgb=n.themeElements.clrScheme[e.s.fgColor.theme].rgb}if(e.s.bgColor&&e.s.bgColor.theme){e.s.bgColor.rgb=ml(n.themeElements.clrScheme[e.s.bgColor.theme].rgb,e.s.bgColor.tint||0);if(a.WTF)e.s.bgColor.raw_rgb=n.themeElements.clrScheme[e.s.bgColor.theme].rgb}}catch(s){if(a.WTF&&i.Fills)throw s}}function kh(e,r,t){if(e&&e["!ref"]){var a=Bt(e["!ref"]);if(a.e.c=0&&t.s.c>=0)e["!ref"]=St(t)}var Sh=/<(?:\w:)?mergeCell ref="[A-Z0-9:]+"\s*[\/]?>/g;var Bh=/<(?:\w+:)?sheetData[^>]*>([\s\S]*)<\/(?:\w+:)?sheetData>/;var Ch=/<(?:\w:)?hyperlink [^>]*>/gm;var yh=/"(\w*:\w*)"/;var Th=/<(?:\w:)?col\b[^>]*[\/]?>/g;var _h=/<(?:\w:)?autoFilter[^>]*([\/]|>([\s\S]*)<\/(?:\w:)?autoFilter)>/g;var xh=/<(?:\w:)?pageMargins[^>]*\/>/g;var Ah=/<(?:\w:)?sheetPr\b(?:[^>a-z][^>]*)?\/>/;var Rh=/<(?:\w:)?sheetPr[^>]*(?:[\/]|>([\s\S]*)<\/(?:\w:)?sheetPr)>/;var Fh=/<(?:\w:)?sheetViews[^>]*(?:[\/]|>([\s\S]*)<\/(?:\w:)?sheetViews)>/;function Ih(e,r,t,a,n,i,s){if(!e)return e;if(!a)a={"!id":{}};if(m!=null&&r.dense==null)r.dense=m;var f=r.dense?[]:{};var l={s:{r:2e6,c:2e6},e:{r:0,c:0}};var o="",c="";var u=e.match(Bh);if(u){o=e.slice(0,u.index);c=e.slice(u.index+u[0].length)}else o=c=e;var h=o.match(Ah);if(h)Ph(h[0],f,n,t);else if(h=o.match(Rh))Oh(h[0],h[1]||"",f,n,t,s,i);var d=(o.match(/<(?:\w*:)?dimension/)||{index:-1}).index;if(d>0){var v=o.slice(d,d+50).match(yh);if(v)Eh(f,v[1])}var p=o.match(Fh);if(p&&p[1])Kh(p[1],n);var b=[];if(r.cellStyles){var g=o.match(Th);if(g)Xh(b,g)}if(u)qh(u[1],f,r,l,i,s);var w=c.match(_h);if(w)f["!autofilter"]=zh(w[0]);var k=[];var E=c.match(Sh);if(E)for(d=0;d!=E.length;++d)k[d]=Bt(E[d].slice(E[d].indexOf('"')+1));var S=c.match(Ch);if(S)Wh(f,S,a);var B=c.match(xh);if(B)f["!margins"]=Hh(Ne(B[0]));if(!f["!ref"]&&l.e.c>=l.s.c&&l.e.r>=l.s.r)f["!ref"]=St(l);if(r.sheetRows>0&&f["!ref"]){var C=Bt(f["!ref"]);if(r.sheetRows<=+C.e.r){C.e.r=r.sheetRows-1;if(C.e.r>l.e.r)C.e.r=l.e.r;if(C.e.rl.e.c)C.e.c=l.e.c;if(C.e.c0)f["!cols"]=b;if(k.length>0)f["!merges"]=k;return f}function Dh(e){if(e.length===0)return"";var r='';for(var t=0;t!=e.length;++t)r+='';return r+""}function Ph(e,r,t,a){var n=Ne(e);if(!t.Sheets[a])t.Sheets[a]={};if(n.codeName)t.Sheets[a].CodeName=We(qe(n.codeName))}function Oh(e,r,t,a,n,i,s){Ph(e.slice(0,e.indexOf(">")),t,a,n)}function Nh(e,r,t,a,n){var i=false;var s={},f=null;if(a.bookType!=="xlsx"&&r.vbaraw){var l=r.SheetNames[t];try{if(r.Workbook)l=r.Workbook.Sheets[t].CodeName||l}catch(o){}i=true;s.codeName=Qe(Xe(l))}if(e&&e["!outline"]){var c={summaryBelow:1,summaryRight:1};if(e["!outline"].above)c.summaryBelow=0;if(e["!outline"].left)c.summaryRight=0;f=(f||"")+ur("outlinePr",null,c)}if(!i&&!f)return;n[n.length]=ur("sheetPr",f,s)}var Lh=["objects","scenarios","selectLockedCells","selectUnlockedCells"];var Mh=["formatColumns","formatRows","formatCells","insertColumns","insertRows","insertHyperlinks","deleteColumns","deleteRows","sort","autoFilter","pivotTables"];function Uh(e){var r={sheet:1};Lh.forEach(function(t){if(e[t]!=null&&e[t])r[t]="1"});Mh.forEach(function(t){if(e[t]!=null&&!e[t])r[t]="0"});if(e.password)r.password=nl(e.password).toString(16).toUpperCase();return ur("sheetProtection",null,r)}function Wh(e,r,t){var a=Array.isArray(e);for(var n=0;n!=r.length;++n){var i=Ne(qe(r[n]),true);if(!i.ref)return;var s=((t||{})["!id"]||[])[i.id];if(s){i.Target=s.Target;if(i.location)i.Target+="#"+We(i.location)}else{i.Target="#"+We(i.location);s={Target:i.Target,TargetMode:"Internal"}}i.Rel=s;if(i.tooltip){i.Tooltip=i.tooltip;delete i.tooltip}var f=Bt(i.ref);for(var l=f.s.r;l<=f.e.r;++l)for(var o=f.s.c;o<=f.e.c;++o){var c=kt({c:o,r:l});if(a){if(!e[l])e[l]=[];if(!e[l][o])e[l][o]={t:"z",v:undefined};e[l][o].l=i}else{if(!e[c])e[c]={t:"z",v:undefined};e[c].l=i}}}}function Hh(e){var r={};["left","right","top","bottom","header","footer"].forEach(function(t){if(e[t])r[t]=parseFloat(e[t])});return r}function Vh(e){bh(e);return ur("pageMargins",null,e)}function Xh(e,r){var t=false;for(var a=0;a!=r.length;++a){var n=Ne(r[a],true);if(n.hidden)n.hidden=Je(n.hidden);var i=parseInt(n.min,10)-1,s=parseInt(n.max,10)-1;if(n.outlineLevel)n.level=+n.outlineLevel||0;delete n.min;delete n.max;n.width=+n.width;if(!t&&n.width){t=true;yl(n.width)}Tl(n);while(i<=s)e[i++]=ue(n)}}function Gh(e,r){var t=[""],a;for(var n=0;n!=r.length;++n){if(!(a=r[n]))continue;t[t.length]=ur("col",null,mh(n,a))}t[t.length]="";return t.join("")}function zh(e){var r={ref:(e.match(/ref="([^"]*)"/)||[])[1]};return r}function jh(e,r,t,a){var n=typeof e.ref=="string"?e.ref:St(e.ref);if(!t.Workbook)t.Workbook={Sheets:[]};if(!t.Workbook.Names)t.Workbook.Names=[];var i=t.Workbook.Names;var s=Et(n);if(s.s.r==s.e.r){s.e.r=Et(r["!ref"]).e.r;n=St(s)}for(var f=0;fa-z][^>]*)?\/?>/;function Kh(e,r){if(!r.Views)r.Views=[{}];(e.match($h)||[]).forEach(function(e,t){var a=Ne(e);if(!r.Views[t])r.Views[t]={};if(+a.zoomScale)r.Views[t].zoom=+a.zoomScale;if(Je(a.rightToLeft))r.Views[t].RTL=true})}function Yh(e,r,t,a){var n={workbookViewId:"0"};if((((a||{}).Workbook||{}).Views||[])[0])n.rightToLeft=a.Workbook.Views[0].RTL?"1":"0";return ur("sheetViews",ur("sheetView",null,n),{})}function Jh(e,r,t,a){if(e.v===undefined&&typeof e.f!=="string"||e.t==="z")return"";var n="";var i=e.t,s=e.v;if(e.t!=="z")switch(e.t){case"b":n=e.v?"1":"0";break;case"n":n=""+e.v;break;case"e":n=Ia[e.v];break;case"d":if(a&&a.cellDates)n=oe(e.v,-1).toISOString();else{e=ue(e);e.t="n";n=""+(e.v=re(oe(e.v)))}if(typeof e.z==="undefined")e.z=P._table[14];break;default:n=e.v;break;}var f=or("v",Xe(n)),l={r:r};var o=gh(a.cellXfs,e,a);if(o!==0)l.s=o;switch(e.t){case"n":break;case"d":l.t="d";break;case"b":l.t="b";break;case"e":l.t="e";break;case"z":break;default:if(e.v==null){delete e.t;break}if(e.v.length>32767)throw new Error("Text length must not exceed 32767 characters");if(a&&a.bookSST){f=or("v",""+ph(a.Strings,e.v,a.revStrings));l.t="s";break}l.t="str";break;}if(e.t!=i){e.t=i;e.v=s}if(typeof e.f=="string"&&e.f){var c=e.F&&e.F.slice(0,r.length)==r?{t:"array",ref:e.F}:null;f=ur("f",Xe(e.f),c)+(e.v!=null?f:"")}if(e.l)t["!links"].push([r,e.l]);if(e.c)t["!comments"].push([r,e.c]);return ur("c",f,l)}var qh=function(){var e=/<(?:\w+:)?c[ \/>]/,r=/<\/(?:\w+:)?row>/;var t=/r=["']([^"']*)["']/,a=/<(?:\w+:)?is>([\S\s]*?)<\/(?:\w+:)?is>/;var n=/ref=["']([^"']*)["']/;var i=tr("v"),s=tr("f");return function f(l,o,c,u,h,d){var v=0,p="",m=[],b=[],g=0,w=0,k=0,E="",S;var B,C=0,y=0;var T,_;var x=0,A=0;var R=Array.isArray(d.CellXf),F;var I=[];var D=[];var O=Array.isArray(o);var N=[],L={},M=false;var U=!!c.sheetStubs;for(var W=l.split(r),H=0,V=W.length;H!=V;++H){p=W[H].trim();var X=p.length;if(X===0)continue;var G=0;e:for(v=0;v":if(p[v-1]!="/"){++v;break e}if(c&&c.cellStyles){B=Ne(p.slice(G,v),true);C=B.r!=null?parseInt(B.r,10):C+1;y=-1;if(c.sheetRows&&c.sheetRows=v)break;B=Ne(p.slice(G,v),true);C=B.r!=null?parseInt(B.r,10):C+1;y=-1;if(c.sheetRows&&c.sheetRowsC-1)u.s.r=C-1;if(u.e.r":"")+p;if(b!=null&&b.length===2){g=0;E=b[1];for(w=0;w!=E.length;++w){if((k=E.charCodeAt(w)-64)<1||k>26)break;g=26*g+k}--g;y=g}else++y;for(w=0;w!=p.length;++w)if(p.charCodeAt(w)===62)break;++w;B=Ne(p.slice(0,w),true);if(!B.r)B.r=kt({r:C-1,c:y});E=p.slice(w);S={t:""};if((b=E.match(i))!=null&&b[1]!=="")S.v=We(b[1]);if(c.cellFormula){if((b=E.match(s))!=null&&b[1]!==""){S.f=We(qe(b[1])).replace(/\r\n/g,"\n");if(!c.xlfn)S.f=pc(S.f);if(b[0].indexOf('t="array"')>-1){S.F=(E.match(n)||[])[1];if(S.F.indexOf(":")>-1)I.push([Bt(S.F),S.F])}else if(b[0].indexOf('t="shared"')>-1){_=Ne(b[0]);var j=We(qe(b[1]));if(!c.xlfn)j=pc(j);D[parseInt(_.si,10)]=[_,j,B.r]}}else if(b=E.match(/]*\/>/)){_=Ne(b[0]);if(D[_.si])S.f=dc(D[_.si][1],D[_.si][2],B.r)}var $=wt(B.r);for(w=0;w=I[w][0].s.r&&$.r<=I[w][0].e.r)if($.c>=I[w][0].s.c&&$.c<=I[w][0].e.c)S.F=I[w][1]}if(B.t==null&&S.v===undefined){if(S.f||S.F){S.v=0;S.t="n"}else if(!U)continue;else S.t="z"}else S.t=B.t||"n";if(u.s.c>y)u.s.c=y;if(u.e.c0)o["!rows"]=N}}();function Qh(e,r,t,a){var n=[],i=[],s=Bt(e["!ref"]),f="",l,o="",c=[],u=0,h=0,d=e["!rows"];var v=Array.isArray(e);var p={r:o},m,b=-1;for(h=s.s.c;h<=s.e.c;++h)c[h]=pt(h);for(u=s.s.r;u<=s.e.r;++u){i=[];o=ut(u);for(h=s.s.c;h<=s.e.c;++h){l=c[h]+o;var g=v?(e[u]||[])[h]:e[l];if(g===undefined)continue;if((f=Jh(g,l,e,r,t,a))!=null)i.push(f)}if(i.length>0||d&&d[u]){p={r:o};if(d&&d[u]){m=d[u];if(m.hidden)p.hidden=1;b=-1;if(m.hpx)b=Al(m.hpx);else if(m.hpt)b=m.hpt;if(b>-1){p.ht=b;p.customHeight=1}if(m.level){p.outlineLevel=m.level}}n[n.length]=ur("row",i.join(""),p)}}if(d)for(;u-1){p.ht=b;p.customHeight=1}if(m.level){p.outlineLevel=m.level}n[n.length]=ur("row","",p)}}return n.join("")}var Zh=ur("worksheet",null,{xmlns:vr.main[0],"xmlns:r":vr.r});function ed(e,r,t,a){var n=[Fe,Zh];var i=t.SheetNames[e],s=0,f="";var l=t.Sheets[i];if(l==null)l={};var o=l["!ref"]||"A1";var c=Bt(o);if(c.e.c>16383||c.e.r>1048575){if(r.WTF)throw new Error("Range "+o+" exceeds format limit A1:XFD1048576");c.e.c=Math.min(c.e.c,16383);c.e.r=Math.min(c.e.c,1048575);o=St(c)}if(!a)a={};l["!comments"]=[];var u=[];Nh(l,t,e,r,n);n[n.length]=ur("dimension",null,{ref:o});n[n.length]=Yh(l,r,e,t);if(r.sheetFormat)n[n.length]=ur("sheetFormatPr",null,{defaultRowHeight:r.sheetFormat.defaultRowHeight||"16",baseColWidth:r.sheetFormat.baseColWidth||"10",outlineLevelRow:r.sheetFormat.outlineLevelRow||"7"});if(l["!cols"]!=null&&l["!cols"].length>0)n[n.length]=Gh(l,l["!cols"]);n[s=n.length]="";l["!links"]=[];if(l["!ref"]!=null){f=Qh(l,r,e,t,a);if(f.length>0)n[n.length]=f}if(n.length>s+1){n[n.length]="";n[s]=n[s].replace("/>",">")}if(l["!protect"])n[n.length]=Uh(l["!protect"]);if(l["!autofilter"]!=null)n[n.length]=jh(l["!autofilter"],l,t,e);if(l["!merges"]!=null&&l["!merges"].length>0)n[n.length]=Dh(l["!merges"]);var h=-1,d,v=-1;if(l["!links"].length>0){n[n.length]="";l["!links"].forEach(function(e){if(!e[1].Target)return;d={ref:e[0]};if(e[1].Target.charAt(0)!="#"){v=Ka(a,-1,Xe(e[1].Target).replace(/#.*$/,""),Va.HLINK);d["r:id"]="rId"+v}if((h=e[1].Target.indexOf("#"))>-1)d.location=Xe(e[1].Target.slice(h+1));if(e[1].Tooltip)d.tooltip=Xe(e[1].Tooltip);n[n.length]=ur("hyperlink",null,d)});n[n.length]=""}delete l["!links"];if(l["!margins"]!=null)n[n.length]=Vh(l["!margins"]);if(!r||r.ignoreEC||r.ignoreEC==void 0)n[n.length]=or("ignoredErrors",ur("ignoredError",null,{numberStoredAsText:1,sqref:o}));if(u.length>0){v=Ka(a,-1,"../drawings/drawing"+(e+1)+".xml",Va.DRAW);n[n.length]=ur("drawing",null,{"r:id":"rId"+v});l["!drawing"]=u}if(l["!comments"].length>0){v=Ka(a,-1,"../drawings/vmlDrawing"+(e+1)+".vml",Va.VML);n[n.length]=ur("legacyDrawing",null,{"r:id":"rId"+v});l["!legacy"]=v}if(n.length>1){n[n.length]="";n[1]=n[1].replace("/>",">")}return n.join("")}function rd(e,r){var t={};var a=e.l+r;t.r=e._R(4);e.l+=4;var n=e._R(2);e.l+=1;var i=e._R(1);e.l=a;if(i&7)t.level=i&7;if(i&16)t.hidden=true;if(i&32)t.hpt=n/20;return t}function td(e,r,t){var a=et(17+8*16);var n=(t["!rows"]||[])[e]||{};a._W(4,e);a._W(4,0);var i=320;if(n.hpx)i=Al(n.hpx)*20;else if(n.hpt)i=n.hpt*20;a._W(2,i);a._W(1,0);var s=0;if(n.level)s|=n.level;if(n.hidden)s|=16;if(n.hpx||n.hpt)s|=32;a._W(1,s);a._W(1,0);var f=0,l=a.l;a.l+=4;var o={r:e,c:0};for(var c=0;c<16;++c){if(r.s.c>c+1<<10||r.e.ca.l?a.slice(0,a.l):a}function ad(e,r,t,a){var n=td(a,t,r);if(n.length>17||(r["!rows"]||[])[a])at(e,"BrtRowHdr",n)}var nd=Zt;var id=ea;function sd(){}function fd(e,r){var t={};var a=e[e.l];++e.l;t.above=!(a&64);t.left=!(a&128);e.l+=18;t.name=Vt(e,r-19);return t}function ld(e,r,t){if(t==null)t=et(84+4*e.length);var a=192;if(r){if(r.above)a&=~64;if(r.left)a&=~128}t._W(1,a);for(var n=1;n<3;++n)t._W(1,0);na({auto:1},t);t._W(-4,-1);t._W(-4,-1);Xt(e,t);return t.slice(0,t.l)}function od(e){var r=Mt(e);return[r]}function cd(e,r,t){if(t==null)t=et(8);return Ut(r,t)}function ud(e){var r=Wt(e);return[r]}function hd(e,r,t){if(t==null)t=et(4);return Ht(r,t)}function dd(e){var r=Mt(e);var t=e._R(1);return[r,t,"b"]}function vd(e,r,t){if(t==null)t=et(9);Ut(r,t);t._W(1,e.v?1:0);return t}function pd(e){var r=Wt(e);var t=e._R(1);return[r,t,"b"]}function md(e,r,t){if(t==null)t=et(5);Ht(r,t);t._W(1,e.v?1:0);return t}function bd(e){var r=Mt(e);var t=e._R(1);return[r,t,"e"]}function gd(e,r,t){if(t==null)t=et(9);Ut(r,t);t._W(1,e.v);return t}function wd(e){var r=Wt(e);var t=e._R(1);return[r,t,"e"]}function kd(e,r,t){if(t==null)t=et(8);Ht(r,t);t._W(1,e.v);t._W(2,0);t._W(1,0);return t}function Ed(e){var r=Mt(e);var t=e._R(4);return[r,t,"s"]}function Sd(e,r,t){if(t==null)t=et(12);Ut(r,t);t._W(4,r.v);return t}function Bd(e){var r=Wt(e);var t=e._R(4);return[r,t,"s"]}function Cd(e,r,t){if(t==null)t=et(8);Ht(r,t);t._W(4,r.v);return t}function yd(e){var r=Mt(e);var t=ra(e);return[r,t,"n"]}function Td(e,r,t){if(t==null)t=et(16);Ut(r,t);ta(e.v,t);return t}function _d(e){var r=Wt(e);var t=ra(e);return[r,t,"n"]}function xd(e,r,t){if(t==null)t=et(12);Ht(r,t);ta(e.v,t);return t}function Ad(e){var r=Mt(e);var t=Yt(e);return[r,t,"n"]}function Rd(e,r,t){if(t==null)t=et(12);Ut(r,t);Jt(e.v,t);return t}function Fd(e){var r=Wt(e);var t=Yt(e);return[r,t,"n"]}function Id(e,r,t){if(t==null)t=et(8);Ht(r,t);Jt(e.v,t);return t}function Dd(e){var r=Mt(e);var t=Pt(e);return[r,t,"is"]}function Pd(e){var r=Mt(e);var t=Rt(e);return[r,t,"str"]}function Od(e,r,t){if(t==null)t=et(12+4*e.v.length);Ut(r,t);Ft(e.v,t);return t.length>t.l?t.slice(0,t.l):t}function Nd(e){var r=Wt(e);var t=Rt(e);return[r,t,"str"]}function Ld(e,r,t){if(t==null)t=et(8+4*e.v.length);Ht(r,t);Ft(e.v,t);return t.length>t.l?t.slice(0,t.l):t}function Md(e,r,t){var a=e.l+r;var n=Mt(e);n.r=t["!row"];var i=e._R(1);var s=[n,i,"b"];if(t.cellFormula){e.l+=2;var f=th(e,a-e.l,t);s[3]=zu(f,null,n,t.supbooks,t)}else e.l=a;return s}function Ud(e,r,t){var a=e.l+r;var n=Mt(e);n.r=t["!row"];var i=e._R(1);var s=[n,i,"e"];if(t.cellFormula){e.l+=2;var f=th(e,a-e.l,t);s[3]=zu(f,null,n,t.supbooks,t)}else e.l=a;return s}function Wd(e,r,t){var a=e.l+r;var n=Mt(e);n.r=t["!row"];var i=ra(e);var s=[n,i,"n"];if(t.cellFormula){e.l+=2;var f=th(e,a-e.l,t);s[3]=zu(f,null,n,t.supbooks,t)}else e.l=a;return s}function Hd(e,r,t){var a=e.l+r;var n=Mt(e);n.r=t["!row"];var i=Rt(e);var s=[n,i,"str"];if(t.cellFormula){e.l+=2;var f=th(e,a-e.l,t);s[3]=zu(f,null,n,t.supbooks,t)}else e.l=a;return s}var Vd=Zt;var Xd=ea;function Gd(e,r){if(r==null)r=et(4);r._W(4,e);return r}function zd(e,r){var t=e.l+r;var a=Zt(e,16);var n=Gt(e);var i=Rt(e);var s=Rt(e);var f=Rt(e);e.l=t;var l={rfx:a,relId:n,loc:i,display:f};if(s)l.Tooltip=s;return l}function jd(e,r){var t=et(50+4*(e[1].Target.length+(e[1].Tooltip||"").length));ea({s:wt(e[0]),e:wt(e[0])},t);Kt("rId"+r,t);var a=e[1].Target.indexOf("#");var n=a==-1?"":e[1].Target.slice(a+1);Ft(n||"",t);Ft(e[1].Tooltip||"",t);Ft("",t);return t.slice(0,t.l)}function $d(){}function Kd(e,r,t){var a=e.l+r;var n=qt(e,16);var i=e._R(1);var s=[n];s[2]=i;if(t.cellFormula){var f=rh(e,a-e.l,t);s[1]=f}else e.l=a;return s}function Yd(e,r,t){var a=e.l+r;var n=Zt(e,16);var i=[n];if(t.cellFormula){var s=nh(e,a-e.l,t);i[1]=s;e.l=a}else e.l=a;return i}function Jd(e,r,t){if(t==null)t=et(18);var a=mh(e,r);t._W(-4,e);t._W(-4,e);t._W(4,(a.width||10)*256);t._W(4,0);var n=0;if(r.hidden)n|=1;if(typeof a.width=="number")n|=2;if(r.level)n|=r.level<<8;t._W(2,n);return t}var qd=["left","right","top","bottom","header","footer"];function Qd(e){var r={};qd.forEach(function(t){r[t]=ra(e,8)});return r}function Zd(e,r){if(r==null)r=et(6*8);bh(e);qd.forEach(function(t){ta(e[t],r)});return r}function ev(e){var r=e._R(2);e.l+=28;return{RTL:r&32}}function rv(e,r,t){if(t==null)t=et(30);var a=924;if((((r||{}).Views||[])[0]||{}).RTL)a|=32;t._W(2,a);t._W(4,0);t._W(4,0);t._W(4,0);t._W(1,0);t._W(1,0);t._W(2,0);t._W(2,100);t._W(2,0);t._W(2,0);t._W(2,0);t._W(4,0);return t}function tv(e){var r=et(24);r._W(4,4);r._W(4,1);ea(e,r);return r}function av(e,r){if(r==null)r=et(16*4+2);r._W(2,e.password?nl(e.password):0);r._W(4,1);[["objects",false],["scenarios",false],["formatCells",true],["formatColumns",true],["formatRows",true],["insertColumns",true],["insertRows",true],["insertHyperlinks",true],["deleteColumns",true],["deleteRows",true],["selectLockedCells",false],["sort",true],["autoFilter",true],["pivotTables",true],["selectUnlockedCells",false]].forEach(function(t){if(t[1])r._W(4,e[t[0]]!=null&&!e[t[0]]?1:0);else r._W(4,e[t[0]]!=null&&e[t[0]]?0:1)});return r}function nv(){}function iv(){}function sv(e,r,t,a,n,i,s){if(!e)return e;var f=r||{};if(!a)a={"!id":{}};if(m!=null&&f.dense==null)f.dense=m;var l=f.dense?[]:{};var o;var c={s:{r:2e6,c:2e6},e:{r:0,c:0}};var u=[];var h=false,d=false;var v,p,b,g,w,k,E,S,B;var C=[];f.biff=12;f["!row"]=0;var y=0,T=false;var _=[];var x={};var A=f.supbooks||n.supbooks||[[]];A.sharedf=x;A.arrayf=_;A.SheetNames=n.SheetNames||n.Sheets.map(function(e){return e.name});if(!f.supbooks){f.supbooks=A;if(n.Names)for(var R=0;R=R[0].s.r&&v.r<=R[0].e.r)if(w>=R[0].s.c&&w<=R[0].e.c){p.F=St(R[0]);T=true}}if(!T&&e.length>3)p.f=e[3]}if(c.s.r>v.r)c.s.r=v.r;if(c.s.c>w)c.s.c=w;if(c.e.rv.r)c.s.r=v.r;if(c.s.c>w)c.s.c=w;if(c.e.r=e.s){F[e.e--]={width:e.w/256,hidden:!!(e.flags&1),level:e.level};if(!D){D=true;yl(e.w/256)}Tl(F[e.e+1])}break;case 161:l["!autofilter"]={ref:St(e)};break;case 476:l["!margins"]=e;break;case 147:if(!n.Sheets[t])n.Sheets[t]={};if(e.name)n.Sheets[t].CodeName=e.name;if(e.above||e.left)l["!outline"]={above:e.above,left:e.left};break;case 137:if(!n.Views)n.Views=[{}];if(!n.Views[0])n.Views[0]={};if(e.RTL)n.Views[0].RTL=true;break;case 485:break;case 64:;case 1053:break;case 151:break;case 152:;case 175:;case 644:;case 625:;case 562:;case 396:;case 1112:;case 1146:;case 471:;case 1050:;case 649:;case 1105:;case 49:;case 589:;case 607:;case 564:;case 1055:;case 168:;case 174:;case 1180:;case 499:;case 507:;case 550:;case 171:;case 167:;case 1177:;case 169:;case 1181:;case 551:;case 552:;case 661:;case 639:;case 478:;case 537:;case 477:;case 536:;case 1103:;case 680:;case 1104:;case 1024:;case 663:;case 535:;case 678:;case 504:;case 1043:;case 428:;case 170:;case 3072:;case 50:;case 2070:;case 1045:break;case 35:h=true;break;case 36:h=false;break;case 37:u.push(r);h=true;break;case 38:u.pop();h=false;break;default:if((r||"").indexOf("Begin")>0){}else if((r||"").indexOf("End")>0){}else if(!h||f.WTF)throw new Error("Unexpected record "+m+" "+r);}},f);delete f.supbooks;delete f["!row"];if(!l["!ref"]&&(c.s.r<2e6||o&&(o.e.r>0||o.e.c>0||o.s.r>0||o.s.c>0)))l["!ref"]=St(o||c);if(f.sheetRows&&l["!ref"]){var O=Bt(l["!ref"]);if(f.sheetRows<=+O.e.r){O.e.r=f.sheetRows-1;if(O.e.r>c.e.r)O.e.r=c.e.r;if(O.e.rc.e.c)O.e.c=c.e.c;if(O.e.c0)l["!merges"]=C;if(F.length>0)l["!cols"]=F;if(I.length>0)l["!rows"]=I;return l}function fv(e,r,t,a,n,i,s){if(r.v===undefined)return false;var f="";switch(r.t){case"b":f=r.v?"1":"0";break;case"d":r=ue(r);r.z=r.z||P._table[14];r.v=re(oe(r.v));r.t="n";break;case"n":;case"e":f=""+r.v;break;default:f=r.v;break;}var l={r:t,c:a};l.s=gh(n.cellXfs,r,n);if(r.l)i["!links"].push([kt(l),r.l]);if(r.c)i["!comments"].push([kt(l),r.c]);switch(r.t){case"s":;case"str":if(n.bookSST){ -f=ph(n.Strings,r.v,n.revStrings);l.t="s";l.v=f;if(s)at(e,"BrtShortIsst",Cd(r,l));else at(e,"BrtCellIsst",Sd(r,l))}else{l.t="str";if(s)at(e,"BrtShortSt",Ld(r,l));else at(e,"BrtCellSt",Od(r,l))}return true;case"n":if(r.v==(r.v|0)&&r.v>-1e3&&r.v<1e3){if(s)at(e,"BrtShortRk",Id(r,l));else at(e,"BrtCellRk",Rd(r,l))}else{if(s)at(e,"BrtShortReal",xd(r,l));else at(e,"BrtCellReal",Td(r,l))}return true;case"b":l.t="b";if(s)at(e,"BrtShortBool",md(r,l));else at(e,"BrtCellBool",vd(r,l));return true;case"e":l.t="e";if(s)at(e,"BrtShortError",kd(r,l));else at(e,"BrtCellError",gd(r,l));return true;}if(s)at(e,"BrtShortBlank",hd(r,l));else at(e,"BrtCellBlank",cd(r,l));return true}function lv(e,r,t,a){var n=Bt(r["!ref"]||"A1"),i,s="",f=[];at(e,"BrtBeginSheetData");var l=Array.isArray(r);var o=n.e.r;if(r["!rows"])o=Math.max(n.e.r,r["!rows"].length-1);for(var c=n.s.r;c<=o;++c){s=ut(c);ad(e,r,n,c);var u=false;if(c<=n.e.r)for(var h=n.s.c;h<=n.e.c;++h){if(c===n.s.r)f[h]=pt(h);i=f[h]+s;var d=l?(r[c]||[])[h]:r[i];if(!d){u=false;continue}u=fv(e,d,c,h,a,r,u)}}at(e,"BrtEndSheetData")}function ov(e,r){if(!r||!r["!merges"])return;at(e,"BrtBeginMergeCells",Gd(r["!merges"].length));r["!merges"].forEach(function(r){at(e,"BrtMergeCell",Xd(r))});at(e,"BrtEndMergeCells")}function cv(e,r){if(!r||!r["!cols"])return;at(e,"BrtBeginColInfos");r["!cols"].forEach(function(r,t){if(r)at(e,"BrtColInfo",Jd(t,r))});at(e,"BrtEndColInfos")}function uv(e,r){if(!r||!r["!ref"])return;at(e,"BrtBeginCellIgnoreECs");at(e,"BrtCellIgnoreEC",tv(Bt(r["!ref"])));at(e,"BrtEndCellIgnoreECs")}function hv(e,r,t){r["!links"].forEach(function(r){if(!r[1].Target)return;var a=Ka(t,-1,r[1].Target.replace(/#.*$/,""),Va.HLINK);at(e,"BrtHLink",jd(r,a))});delete r["!links"]}function dv(e,r,t,a){if(r["!comments"].length>0){var n=Ka(a,-1,"../drawings/vmlDrawing"+(t+1)+".vml",Va.VML);at(e,"BrtLegacyDrawing",Kt("rId"+n));r["!legacy"]=n}}function vv(e,r,t,a){if(!r["!autofilter"])return;var n=r["!autofilter"];var i=typeof n.ref==="string"?n.ref:St(n.ref);if(!t.Workbook)t.Workbook={Sheets:[]};if(!t.Workbook.Names)t.Workbook.Names=[];var s=t.Workbook.Names;var f=Et(i);if(f.s.r==f.e.r){f.e.r=Et(r["!ref"]).e.r;i=St(f)}for(var l=0;l16383||o.e.r>1048575){if(r.WTF)throw new Error("Range "+(s["!ref"]||"A1")+" exceeds format limit A1:XFD1048576");o.e.c=Math.min(o.e.c,16383);o.e.r=Math.min(o.e.c,1048575)}s["!links"]=[];s["!comments"]=[];at(n,"BrtBeginSheet");if(t.vbaraw||s["!outline"])at(n,"BrtWsProp",ld(f,s["!outline"]));at(n,"BrtWsDim",id(o));pv(n,s,t.Workbook);mv(n,s);cv(n,s,e,r,t);lv(n,s,e,r,t);bv(n,s);vv(n,s,t,e);ov(n,s);hv(n,s,a);if(s["!margins"])at(n,"BrtMargins",Zd(s["!margins"]));if(!r||r.ignoreEC||r.ignoreEC==void 0)uv(n,s);dv(n,s,e,a);at(n,"BrtEndSheet");return n.end()}Va.CHART="http://schemas.openxmlformats.org/officeDocument/2006/relationships/chart";Va.CHARTEX="http://schemas.microsoft.com/office/2014/relationships/chartEx";function wv(e){var r=[];var t=e.match(/^/);var a;(e.match(/(.*?)<\/c:pt>/gm)||[]).forEach(function(e){var a=e.match(/(.*)<\/c:v><\/c:pt>/);if(!a)return;r[+a[1]]=t?+a[2]:a[2]});var n=We((e.match(/([\s\S]*?)<\/c:formatCode>/)||["","General"])[1]);(e.match(/(.*?)<\/c:f>/gm)||[]).forEach(function(e){a=e.replace(/<.*?>/g,"")});return[r,n,a]}function kv(e,r,t,a,n,i){var s=i||{"!type":"chart"};if(!e)return i;var f=0,l=0,o="A";var c={s:{r:2e6,c:2e6},e:{r:0,c:0}};(e.match(/[\s\S]*?<\/c:numCache>/gm)||[]).forEach(function(e){var r=wv(e);c.s.r=c.s.c=0;c.e.c=f;o=pt(f);r[0].forEach(function(e,t){s[o+ut(t)]={t:"n",v:e,z:r[1]};l=t});if(c.e.r0)s["!ref"]=St(c);return s}Va.CS="http://schemas.openxmlformats.org/officeDocument/2006/relationships/chartsheet";var Ev=ur("chartsheet",null,{xmlns:vr.main[0],"xmlns:r":vr.r});function Sv(e,r,t,a,n){if(!e)return e;if(!a)a={"!id":{}};var i={"!type":"chart","!drawel":null,"!rel":""};var s;var f=e.match(Ah);if(f)Ph(f[0],i,n,t);if(s=e.match(/drawing r:id="(.*?)"/))i["!rel"]=s[1];if(a["!id"][i["!rel"]])i["!drawel"]=a["!id"][i["!rel"]];return i}function Bv(e,r,t,a){var n=[Fe,Ev];n[n.length]=ur("drawing",null,{"r:id":"rId1"});Ka(a,-1,"../drawings/drawing"+(e+1)+".xml",Va.DRAW);if(n.length>2){n[n.length]="";n[1]=n[1].replace("/>",">")}return n.join("")}function Cv(e,r){e.l+=10;var t=Rt(e,r-10);return{name:t}}function yv(e,r,t,a,n){if(!e)return e;if(!a)a={"!id":{}};var i={"!type":"chart","!drawel":null,"!rel":""};var s=[];var f=false;rt(e,function l(e,a,o){switch(o){case 550:i["!rel"]=e;break;case 651:if(!n.Sheets[t])n.Sheets[t]={};if(e.name)n.Sheets[t].CodeName=e.name;break;case 562:;case 652:;case 669:;case 679:;case 551:;case 552:;case 476:;case 3072:break;case 35:f=true;break;case 36:f=false;break;case 37:s.push(a);break;case 38:s.pop();break;default:if((a||"").indexOf("Begin")>0)s.push(a);else if((a||"").indexOf("End")>0)s.pop();else if(!f||r.WTF)throw new Error("Unexpected record "+o+" "+a);}},r);if(a["!id"][i["!rel"]])i["!drawel"]=a["!id"][i["!rel"]];return i}function Tv(){var e=tt();at(e,"BrtBeginSheet");at(e,"BrtEndSheet");return e.end()}var _v=[["allowRefreshQuery",false,"bool"],["autoCompressPictures",true,"bool"],["backupFile",false,"bool"],["checkCompatibility",false,"bool"],["CodeName",""],["date1904",false,"bool"],["defaultThemeVersion",0,"int"],["filterPrivacy",false,"bool"],["hidePivotFieldList",false,"bool"],["promptedSolutions",false,"bool"],["publishItems",false,"bool"],["refreshAllConnections",false,"bool"],["saveExternalLinkValues",true,"bool"],["showBorderUnselectedTables",true,"bool"],["showInkAnnotation",true,"bool"],["showObjects","all"],["showPivotChartFilter",false,"bool"],["updateLinks","userSet"]];var xv=[["activeTab",0,"int"],["autoFilterDateGrouping",true,"bool"],["firstSheet",0,"int"],["minimized",false,"bool"],["showHorizontalScroll",true,"bool"],["showSheetTabs",true,"bool"],["showVerticalScroll",true,"bool"],["tabRatio",600,"int"],["visibility","visible"]];var Av=[];var Rv=[["calcCompleted","true"],["calcMode","auto"],["calcOnSave","true"],["concurrentCalc","true"],["fullCalcOnLoad","false"],["fullPrecision","true"],["iterate","false"],["iterateCount","100"],["iterateDelta","0.001"],["refMode","A1"]];function Fv(e,r){for(var t=0;t!=e.length;++t){var a=e[t];for(var n=0;n!=r.length;++n){var i=r[n];if(a[i[0]]==null)a[i[0]]=i[1];else switch(i[2]){case"bool":if(typeof a[i[0]]=="string")a[i[0]]=Je(a[i[0]]);break;case"int":if(typeof a[i[0]]=="string")a[i[0]]=parseInt(a[i[0]],10);break;}}}}function Iv(e,r){for(var t=0;t!=r.length;++t){var a=r[t];if(e[a[0]]==null)e[a[0]]=a[1];else switch(a[2]){case"bool":if(typeof e[a[0]]=="string")e[a[0]]=Je(e[a[0]]);break;case"int":if(typeof e[a[0]]=="string")e[a[0]]=parseInt(e[a[0]],10);break;}}}function Dv(e){Iv(e.WBProps,_v);Iv(e.CalcPr,Rv);Fv(e.WBView,xv);Fv(e.Sheets,Av);dh.date1904=Je(e.WBProps.date1904)}function Pv(e){if(!e.Workbook)return"false";if(!e.Workbook.WBProps)return"false";return Je(e.Workbook.WBProps.date1904)?"true":"false"}var Ov="][*?/\\".split("");function Nv(e,r){if(e.length>31){if(r)return false;throw new Error("Sheet names cannot exceed 31 chars")}var t=true;Ov.forEach(function(a){if(e.indexOf(a)==-1)return;if(!r)throw new Error("Sheet name cannot contain : \\ / ? * [ ]");t=false});return t}function Lv(e,r,t){e.forEach(function(a,n){Nv(a);for(var i=0;i22)throw new Error("Bad Code Name: Worksheet"+s)}})}function Mv(e){if(!e||!e.SheetNames||!e.Sheets)throw new Error("Invalid Workbook");if(!e.SheetNames.length)throw new Error("Workbook is empty");var r=e.Workbook&&e.Workbook.Sheets||[];Lv(e.SheetNames,r,!!e.vbaraw);for(var t=0;t":break;case"":;case"":break;case"":break;case"":_v.forEach(function(e){if(c[e[0]]==null)return;switch(e[2]){case"bool":t.WBProps[e[0]]=Je(c[e[0]]);break;case"int":t.WBProps[e[0]]=parseInt(c[e[0]],10);break;default:t.WBProps[e[0]]=c[e[0]];}});if(c.codeName)t.WBProps.CodeName=qe(c.codeName);break;case"":break;case"":break;case"":;case"":break;case"":delete c[0];t.WBView.push(c);break;case"":break;case"":;case"":break;case"":break;case"":break;case"":;case"":break;case"":break;case"":;case"":a=false;break;case"":{i.Ref=We(qe(e.slice(s,o)));t.Names.push(i)}break;case"":break;case"":delete c[0];t.CalcPr=c;break;case"":break;case"":;case"":;case"":break;case"":;case"":;case"":break;case"":;case"":break;case"":break;case"":break;case"":;case"":break;case"":;case"":;case"":break;case"":a=false;break;case"":a=true;break;case"":a=false;break;case"0;var a={codeName:"ThisWorkbook"};if(e.Workbook&&e.Workbook.WBProps){_v.forEach(function(r){if(e.Workbook.WBProps[r[0]]==null)return;if(e.Workbook.WBProps[r[0]]==r[1])return;a[r[0]]=e.Workbook.WBProps[r[0]]});if(e.Workbook.WBProps.CodeName){a.codeName=e.Workbook.WBProps.CodeName;delete a.CodeName}}r[r.length]=ur("workbookPr",null,a);var n=e.Workbook&&e.Workbook.Sheets||[];var i=0;if(n&&n[0]&&!!n[0].Hidden){r[r.length]="";for(i=0;i!=e.SheetNames.length;++i){if(!n[i])break;if(!n[i].Hidden)break}if(i==e.SheetNames.length)i=0;r[r.length]='';r[r.length]=""}r[r.length]="";for(i=0;i!=e.SheetNames.length;++i){var s={name:Xe(e.SheetNames[i].slice(0,31))};s.sheetId=""+(i+1);s["r:id"]="rId"+(i+1);if(n[i])switch(n[i].Hidden){case 1:s.state="hidden";break;case 2:s.state="veryHidden";break;}r[r.length]=ur("sheet",null,s)}r[r.length]="";if(t){r[r.length]="";if(e.Workbook&&e.Workbook.Names)e.Workbook.Names.forEach(function(e){var t={name:e.Name};if(e.Comment)t.comment=e.Comment;if(e.Sheet!=null)t.localSheetId=""+e.Sheet;if(e.Hidden)t.hidden="1";if(!e.Ref)return;r[r.length]=ur("definedName",Xe(e.Ref),t)});r[r.length]=""}if(r.length>2){r[r.length]="";r[1]=r[1].replace("/>",">")}return r.join("")}function Xv(e,r){var t={};t.Hidden=e._R(4);t.iTabID=e._R(4);t.strRelID=$t(e,r-8);t.name=Rt(e);return t}function Gv(e,r){if(!r)r=et(127);r._W(4,e.Hidden);r._W(4,e.iTabID);Kt(e.strRelID,r);Ft(e.name.slice(0,31),r);return r.length>r.l?r.slice(0,r.l):r}function zv(e,r){var t={};var a=e._R(4);t.defaultThemeVersion=e._R(4);var n=r>8?Rt(e):"";if(n.length>0)t.CodeName=n;t.autoCompressPictures=!!(a&65536);t.backupFile=!!(a&64);t.checkCompatibility=!!(a&4096);t.date1904=!!(a&1);t.filterPrivacy=!!(a&8);t.hidePivotFieldList=!!(a&1024);t.promptedSolutions=!!(a&16);t.publishItems=!!(a&2048);t.refreshAllConnections=!!(a&262144);t.saveExternalLinkValues=!!(a&128);t.showBorderUnselectedTables=!!(a&4);t.showInkAnnotation=!!(a&32);t.showObjects=["all","placeholders","none"][a>>13&3];t.showPivotChartFilter=!!(a&32768);t.updateLinks=["userSet","never","always"][a>>8&3];return t}function jv(e,r){if(!r)r=et(72);var t=0;if(e){if(e.filterPrivacy)t|=8}r._W(4,t);r._W(4,0);Xt(e&&e.CodeName||"ThisWorkbook",r);return r.slice(0,r.l)}function $v(e,r){var t={};e._R(4);t.ArchID=e._R(4);e.l+=r-8;return t}function Kv(e,r,t){var a=e.l+r;e.l+=4;e.l+=1;var n=e._R(4);var i=jt(e);var s=ah(e,0,t);var f=Gt(e);e.l=a;var l={Name:i,Ptg:s};if(n<268435455)l.Sheet=n;if(f)l.Comment=f;return l}function Yv(e,r){var t={AppVersion:{},WBProps:{},WBView:[],Sheets:[],CalcPr:{},xmlns:""};var a=[];var n=false;if(!r)r={};r.biff=12;var i=[];var s=[[]];s.SheetNames=[];s.XTI=[];rm[16]={n:"BrtFRTArchID$",f:$v};rt(e,function f(e,l,o){switch(o){case 156:s.SheetNames.push(e.name);t.Sheets.push(e);break;case 153:t.WBProps=e;break;case 39:if(e.Sheet!=null)r.SID=e.Sheet;e.Ref=zu(e.Ptg,null,null,s,r);delete r.SID;delete e.Ptg;i.push(e);break;case 1036:break;case 357:;case 358:;case 355:;case 667:if(!s[0].length)s[0]=[o,e];else s.push([o,e]);s[s.length-1].XTI=[];break;case 362:if(s.length===0){s[0]=[];s[0].XTI=[]}s[s.length-1].XTI=s[s.length-1].XTI.concat(e);s.XTI=s.XTI.concat(e);break;case 361:break;case 2071:;case 158:;case 143:;case 664:;case 353:break;case 3072:;case 3073:;case 534:;case 677:;case 157:;case 610:;case 2050:;case 155:;case 548:;case 676:;case 128:;case 665:;case 2128:;case 2125:;case 549:;case 2053:;case 596:;case 2076:;case 2075:;case 2082:;case 397:;case 154:;case 1117:;case 553:;case 2091:break;case 35:a.push(l);n=true;break;case 36:a.pop();n=false;break;case 37:a.push(l);n=true;break;case 38:a.pop();n=false;break;case 16:break;default:if((l||"").indexOf("Begin")>0){}else if((l||"").indexOf("End")>0){}else if(!n||r.WTF&&a[a.length-1]!="BrtACBegin"&&a[a.length-1]!="BrtFRTBegin")throw new Error("Unexpected record "+o+" "+l);}},r);Dv(t);t.Names=i;t.supbooks=s;return t}function Jv(e,r){at(e,"BrtBeginBundleShs");for(var t=0;t!=r.SheetNames.length;++t){var a=r.Workbook&&r.Workbook.Sheets&&r.Workbook.Sheets[t]&&r.Workbook.Sheets[t].Hidden||0;var n={Hidden:a,iTabID:t+1,strRelID:"rId"+(t+1),name:r.SheetNames[t]};at(e,"BrtBundleSh",Gv(n))}at(e,"BrtEndBundleShs")}function qv(r,t){if(!t)t=et(127);for(var a=0;a!=4;++a)t._W(4,0);Ft("SheetJS",t);Ft(e.version,t);Ft(e.version,t);Ft("7262",t);return t.length>t.l?t.slice(0,t.l):t}function Qv(e,r){if(!r)r=et(29);r._W(-4,0);r._W(-4,460);r._W(4,28800);r._W(4,17600);r._W(4,500);r._W(4,e);r._W(4,e);var t=120;r._W(1,t);return r.length>r.l?r.slice(0,r.l):r}function Zv(e,r){if(!r.Workbook||!r.Workbook.Sheets)return;var t=r.Workbook.Sheets;var a=0,n=-1,i=-1;for(;an)return;at(e,"BrtBeginBookViews");at(e,"BrtBookView",Qv(n));at(e,"BrtEndBookViews")}function ep(e,r){var t=tt();at(t,"BrtBeginBook");at(t,"BrtFileVersion",qv());at(t,"BrtWbProp",jv(e.Workbook&&e.Workbook.WBProps||null));Zv(t,e,r);Jv(t,e,r);at(t,"BrtEndBook");return t.end()}function rp(e,r,t){if(r.slice(-4)===".bin")return Yv(e,t);return Wv(e,t)}function tp(e,r,t,a,n,i,s,f){if(r.slice(-4)===".bin")return sv(e,a,t,n,i,s,f);return Ih(e,a,t,n,i,s,f)}function ap(e,r,t,a,n,i,s,f){if(r.slice(-4)===".bin")return yv(e,a,t,n,i,s,f);return Sv(e,a,t,n,i,s,f)}function np(e,r,t,a,n,i,s,f){if(r.slice(-4)===".bin")return fc(e,a,t,n,i,s,f);return lc(e,a,t,n,i,s,f)}function ip(e,r,t,a,n,i,s,f){if(r.slice(-4)===".bin")return ic(e,a,t,n,i,s,f);return sc(e,a,t,n,i,s,f)}function sp(e,r,t,a){if(r.slice(-4)===".bin")return io(e,t,a);return Hl(e,t,a)}function fp(e,r,t){return _o(e,t)}function lp(e,r,t){if(r.slice(-4)===".bin")return Mf(e,t);return Pf(e,t)}function op(e,r,t){if(r.slice(-4)===".bin")return Zo(e,t);return jo(e,t)}function cp(e,r,t){if(r.slice(-4)===".bin")return Uo(e,r,t);return Lo(e,r,t)}function up(e,r,t,a){if(t.slice(-4)===".bin")return Ho(e,r,t,a);return Wo(e,r,t,a)}function hp(e,r,t){return(r.slice(-4)===".bin"?ep:Vv)(e,t)}function dp(e,r,t,a,n){return(r.slice(-4)===".bin"?gv:ed)(e,t,a,n)}function vp(e,r,t,a,n){return(r.slice(-4)===".bin"?Tv:Bv)(e,t,a,n)}function pp(e,r,t){return(r.slice(-4)===".bin"?bo:Xl)(e,t)}function mp(e,r,t){return(r.slice(-4)===".bin"?Hf:Nf)(e,t)}function bp(e,r,t){return(r.slice(-4)===".bin"?ec:Ko)(e,t)}var gp=/([\w:]+)=((?:")([^"]*)(?:")|(?:')([^']*)(?:'))/g;var wp=/([\w:]+)=((?:")(?:[^"]*)(?:")|(?:')(?:[^']*)(?:'))/;function kp(e,r){var t=e.split(/\s+/);var a=[];if(!r)a[0]=t[0];if(t.length===1)return a;var n=e.match(gp),i,s,f,l;if(n)for(l=0;l!=n.length;++l){i=n[l].match(wp);if((s=i[1].indexOf(":"))===-1)a[i[1]]=i[2].slice(1,i[2].length-1);else{if(i[1].slice(0,6)==="xmlns:")f="xmlns"+i[1].slice(6);else f=i[1].slice(s+1);a[f]=i[2].slice(1,i[2].length-1)}}return a}function Ep(e){var r=e.split(/\s+/);var t={};if(r.length===1)return t;var a=e.match(gp),n,i,s,f;if(a)for(f=0;f!=a.length;++f){n=a[f].match(wp);if((i=n[1].indexOf(":"))===-1)t[n[1]]=n[2].slice(1,n[2].length-1);else{if(n[1].slice(0,6)==="xmlns:")s="xmlns"+n[1].slice(6);else s=n[1].slice(i+1);t[s]=n[2].slice(1,n[2].length-1)}}return t}function Sp(e,r){var t=N[e]||We(e);if(t==="General")return P._general(r);return P.format(t,r)}function Bp(e,r,t,a){var n=a;switch((t[0].match(/dt:dt="([\w.]+)"/)||["",""])[1]){case"boolean":n=Je(a);break;case"i2":;case"int":n=parseInt(a,10);break;case"r4":;case"float":n=parseFloat(a);break;case"date":;case"dateTime.tz":n=oe(a);break;case"i8":;case"string":;case"fixed":;case"uuid":;case"bin.base64":break;default:throw new Error("bad custprop:"+t[0]);}e[We(r)]=n}function Cp(e,r,t){if(e.t==="z")return;if(!t||t.cellText!==false)try{if(e.t==="e"){e.w=e.w||Ia[e.v]}else if(r==="General"){if(e.t==="n"){if((e.v|0)===e.v)e.w=P._general_int(e.v);else e.w=P._general_num(e.v)}else e.w=P._general(e.v)}else e.w=Sp(r||"General",e.v)}catch(a){if(t.WTF)throw a}try{var n=N[r]||r||"General";if(t.cellNF)e.z=n;if(t.cellDates&&e.t=="n"&&P.is_date(n)){var i=P.parse_date_code(e.v);if(i){e.t="d";e.v=new Date(i.y,i.m-1,i.d,i.H,i.M,i.S,i.u)}}}catch(a){if(t.WTF)throw a}}function yp(e,r,t){if(t.cellStyles){if(r.Interior){var a=r.Interior;if(a.Pattern)a.patternType=Fl[a.Pattern]||a.Pattern}}e[r.ID]=r}function Tp(e,r,t,a,n,i,s,f,l,o){var c="General",u=a.StyleID,h={};o=o||{};var d=[];var v=0;if(u===undefined&&f)u=f.StyleID;if(u===undefined&&s)u=s.StyleID;while(i[u]!==undefined){if(i[u].nf)c=i[u].nf;if(i[u].Interior)d.push(i[u].Interior);if(!i[u].Parent)break;u=i[u].Parent}switch(t.Type){case"Boolean":a.t="b";a.v=Je(e);break;case"String":a.t="s";a.r=Ke(We(e));a.v=e.indexOf("<")>-1?We(r||e).replace(/<.*?>/g,""):a.r;break;case"DateTime":if(e.slice(-1)!="Z")e+="Z";a.v=(oe(e)-new Date(Date.UTC(1899,11,30)))/(24*60*60*1e3);if(a.v!==a.v)a.v=We(e);else if(a.v<60)a.v=a.v-1;if(!c||c=="General")c="yyyy-mm-dd";case"Number":if(a.v===undefined)a.v=+e;if(!a.t)a.t="n";break;case"Error":a.t="e";a.v=Da[e];if(o.cellText!==false)a.w=e;break;default:if(e==""&&r==""){a.t="z"}else{a.t="s";a.v=Ke(r||e)}break;}Cp(a,c,o);if(o.cellFormula!==false){if(a.Formula){var p=We(a.Formula);if(p.charCodeAt(0)==61)p=p.slice(1);a.f=oc(p,n);delete a.Formula;if(a.ArrayRange=="RC")a.F=oc("RC:RC",n);else if(a.ArrayRange){a.F=oc(a.ArrayRange,n);l.push([Bt(a.F),a.F])}}else{for(v=0;v=l[v][0].s.r&&n.r<=l[v][0].e.r)if(n.c>=l[v][0].s.c&&n.c<=l[v][0].e.c)a.F=l[v][1]}}if(o.cellStyles){d.forEach(function(e){if(!h.patternType&&e.patternType)h.patternType=e.patternType});a.s=h}if(a.StyleID!==undefined)a.ixfe=a.StyleID}function _p(e){e.t=e.v||"";e.t=e.t.replace(/\r\n/g,"\n").replace(/\r/g,"\n");e.v=e.w=e.ixfe=undefined}function xp(e){if(w&&Buffer.isBuffer(e))return e.toString("utf8");if(typeof e==="string")return e;if(typeof Uint8Array!=="undefined"&&e instanceof Uint8Array)return qe(_(A(e)));throw new Error("Bad input format: expected Buffer or string")}var Ap=/<(\/?)([^\s?>:\/]+)(?:[\s?:\/][^>]*)?>/gm;function Rp(e,r){var t=r||{};O(P);var a=d(xp(e));if(t.type=="binary"||t.type=="array"||t.type=="base64"){if(typeof cptable!=="undefined")a=cptable.utils.decode(65001,c(a));else a=qe(a)}var n=a.slice(0,1024).toLowerCase(),i=false;n=n.replace(/".*?"/g,"");if((n.indexOf(">")&1023)>Math.min(n.indexOf(",")&1023,n.indexOf(";")&1023)){var s=ue(t);s.type="string";return Ef.to_workbook(a,s)}if(n.indexOf("=0)i=true});if(i)return ym.to_workbook(a,t);var f;var l=[],o;if(m!=null&&t.dense==null)t.dense=m;var u={},h=[],v=t.dense?[]:{},p="";var b={},g={},w={};var k=kp(''),E=0;var S=0,B=0;var C={s:{r:2e6,c:2e6},e:{r:0,c:0}};var y={},T={};var _="",x=0;var A=[];var R={},F={},I=0,D=[];var L=[],M={};var U=[],W,H=false;var V=[];var X=[],G={},z=0,j=0;var $={Sheets:[],WBProps:{date1904:false}},K={};Ap.lastIndex=0;a=a.replace(//gm,"");var Y="";while(f=Ap.exec(a))switch(f[3]=(Y=f[3]).toLowerCase()){case"data":if(Y=="data"){if(f[1]==="/"){if((o=l.pop())[0]!==f[3])throw new Error("Bad state: "+o.join("|"))}else if(f[0].charAt(f[0].length-2)!=="/")l.push([f[3],true]);break}if(l[l.length-1][1])break;if(f[1]==="/")Tp(a.slice(E,f.index),_,k,l[l.length-1][0]=="comment"?M:g,{c:S,r:B},y,U[S],w,V,t);else{_="";k=kp(f[0]);E=f.index+f[0].length}break;case"cell":if(f[1]==="/"){if(L.length>0)g.c=L;if((!t.sheetRows||t.sheetRows>B)&&g.v!==undefined){if(t.dense){if(!v[B])v[B]=[];v[B][S]=g}else v[pt(S)+ut(B)]=g}if(g.HRef){g.l={Target:We(g.HRef)};if(g.HRefScreenTip)g.l.Tooltip=g.HRefScreenTip;delete g.HRef;delete g.HRefScreenTip}if(g.MergeAcross||g.MergeDown){z=S+(parseInt(g.MergeAcross,10)|0);j=B+(parseInt(g.MergeDown,10)|0);A.push({s:{c:S,r:B},e:{c:z,r:j}})}if(!t.sheetStubs){if(g.MergeAcross)S=z+1;else++S}else if(g.MergeAcross||g.MergeDown){for(var J=S;J<=z;++J){for(var q=B;q<=j;++q){if(J>S||q>B){if(t.dense){if(!v[q])v[q]=[];v[q][J]={t:"z"}}else v[pt(J)+ut(q)]={t:"z"}}}}S=z+1}else++S}else{g=Ep(f[0]);if(g.Index)S=+g.Index-1;if(SC.e.c)C.e.c=S;if(f[0].slice(-2)==="/>")++S;L=[]}break;case"row":if(f[1]==="/"||f[0].slice(-2)==="/>"){if(BC.e.r)C.e.r=B;if(f[0].slice(-2)==="/>"){w=kp(f[0]);if(w.Index)B=+w.Index-1}S=0;++B}else{w=kp(f[0]);if(w.Index)B=+w.Index-1;G={};if(w.AutoFitHeight=="0"||w.Height){G.hpx=parseInt(w.Height,10);G.hpt=Al(G.hpx);X[B]=G}if(w.Hidden=="1"){G.hidden=true;X[B]=G}}break;case"worksheet":if(f[1]==="/"){if((o=l.pop())[0]!==f[3])throw new Error("Bad state: "+o.join("|"));h.push(p);if(C.s.r<=C.e.r&&C.s.c<=C.e.c){v["!ref"]=St(C);if(t.sheetRows&&t.sheetRows<=C.e.r){v["!fullref"]=v["!ref"];C.e.r=t.sheetRows-1;v["!ref"]=St(C)}}if(A.length)v["!merges"]=A;if(U.length>0)v["!cols"]=U;if(X.length>0)v["!rows"]=X;u[p]=v}else{C={s:{r:2e6,c:2e6},e:{r:0,c:0}};B=S=0;l.push([f[3],false]);o=kp(f[0]);p=We(o.Name);v=t.dense?[]:{};A=[];V=[];X=[];K={name:p,Hidden:0};$.Sheets.push(K)}break;case"table":if(f[1]==="/"){if((o=l.pop())[0]!==f[3])throw new Error("Bad state: "+o.join("|"))}else if(f[0].slice(-2)=="/>")break;else{b=kp(f[0]);l.push([f[3],false]);U=[];H=false}break;case"style":if(f[1]==="/")yp(y,T,t);else T=kp(f[0]);break;case"numberformat":T.nf=We(kp(f[0]).Format||"General");if(N[T.nf])T.nf=N[T.nf];for(var Q=0;Q!=392;++Q)if(P._table[Q]==T.nf)break;if(Q==392)for(Q=57;Q!=392;++Q)if(P._table[Q]==null){P.load(T.nf,Q);break}break;case"column":if(l[l.length-1][0]!=="table")break;W=kp(f[0]);if(W.Hidden){W.hidden=true;delete W.Hidden}if(W.Width)W.wpx=parseInt(W.Width,10);if(!H&&W.wpx>10){H=true;kl=bl;for(var Z=0;Z0)te.Sheet=$.Sheets.length-1;$.Names.push(te);break;case"namedcell":break;case"b":break;case"i":break;case"u":break;case"s":break;case"em":break;case"h2":break;case"h3":break;case"sub":break;case"sup":break;case"span":break;case"alignment":break;case"borders":break;case"border":break;case"font":if(f[0].slice(-2)==="/>")break;else if(f[1]==="/")_+=a.slice(x,f.index);else x=f.index+f[0].length;break;case"interior":if(!t.cellStyles)break;T.Interior=kp(f[0]);break;case"protection":break;case"author":;case"title":;case"description":;case"created":;case"keywords":;case"subject":;case"category":;case"company":;case"lastauthor":;case"lastsaved":;case"lastprinted":;case"version":;case"revision":;case"totaltime":;case"hyperlinkbase":;case"manager":;case"contentstatus":;case"identifier":;case"language":;case"appname":if(f[0].slice(-2)==="/>")break;else if(f[1]==="/")En(R,Y,a.slice(I,f.index));else I=f.index+f[0].length;break;case"paragraphs":break;case"styles":;case"workbook":if(f[1]==="/"){if((o=l.pop())[0]!==f[3])throw new Error("Bad state: "+o.join("|"))}else l.push([f[3],false]);break;case"comment":if(f[1]==="/"){if((o=l.pop())[0]!==f[3])throw new Error("Bad state: "+o.join("|"));_p(M);L.push(M)}else{l.push([f[3],false]);o=kp(f[0]);M={a:o.Author}}break;case"autofilter":if(f[1]==="/"){if((o=l.pop())[0]!==f[3])throw new Error("Bad state: "+o.join("|"))}else if(f[0].charAt(f[0].length-2)!=="/"){var ae=kp(f[0]);v["!autofilter"]={ref:oc(ae.Range).replace(/\$/g,"")};l.push([f[3],true])}break;case"name":break;case"datavalidation":if(f[1]==="/"){if((o=l.pop())[0]!==f[3])throw new Error("Bad state: "+o.join("|"))}else{if(f[0].charAt(f[0].length-2)!=="/")l.push([f[3],true])}break;case"pixelsperinch":break;case"componentoptions":;case"documentproperties":;case"customdocumentproperties":;case"officedocumentsettings":;case"pivottable":;case"pivotcache":;case"names":;case"mapinfo":;case"pagebreaks":;case"querytable":;case"sorting":;case"schema":;case"conditionalformatting":;case"smarttagtype":;case"smarttags":;case"excelworkbook":;case"workbookoptions":;case"worksheetoptions":if(f[1]==="/"){if((o=l.pop())[0]!==f[3])throw new Error("Bad state: "+o.join("|"))}else if(f[0].charAt(f[0].length-2)!=="/")l.push([f[3],true]);break;case"null":break;default:if(l.length==0&&f[3]=="document")return Dm(a,t);if(l.length==0&&f[3]=="uof")return Dm(a,t);var ne=true;switch(l[l.length-1][0]){case"officedocumentsettings":switch(f[3]){case"allowpng":break;case"removepersonalinformation":break;case"downloadcomponents":break;case"locationofcomponents":break;case"colors":break;case"color":break;case"index":break;case"rgb":break;case"targetscreensize":break;case"readonlyrecommended":break;default:ne=false;}break;case"componentoptions":switch(f[3]){case"toolbar":break;case"hideofficelogo":break;case"spreadsheetautofit":break;case"label":break;case"caption":break;case"maxheight":break;case"maxwidth":break;case"nextsheetnumber":break;default:ne=false;}break;case"excelworkbook":switch(f[3]){case"date1904":$.WBProps.date1904=true;break;case"windowheight":break;case"windowwidth":break;case"windowtopx":break;case"windowtopy":break;case"tabratio":break;case"protectstructure":break;case"protectwindow":break;case"protectwindows":break;case"activesheet":break;case"displayinknotes":break;case"firstvisiblesheet":break;case"supbook":break;case"sheetname":break;case"sheetindex":break;case"sheetindexfirst":break;case"sheetindexlast":break;case"dll":break;case"acceptlabelsinformulas":break;case"donotsavelinkvalues":break;case"iteration":break;case"maxiterations":break;case"maxchange":break;case"path":break;case"xct":break;case"count":break;case"selectedsheets":break;case"calculation":break;case"uncalced":break;case"startupprompt":break;case"crn":break;case"externname":break;case"formula":break;case"colfirst":break;case"collast":break;case"wantadvise":break;case"boolean":break;case"error":break;case"text":break;case"ole":break;case"noautorecover":break;case"publishobjects":break;case"donotcalculatebeforesave":break;case"number":break;case"refmoder1c1":break;case"embedsavesmarttags":break;default:ne=false;}break;case"workbookoptions":switch(f[3]){case"owcversion":break;case"height":break;case"width":break;default:ne=false;}break;case"worksheetoptions":switch(f[3]){case"visible":if(f[0].slice(-2)==="/>"){}else if(f[1]==="/")switch(a.slice(I,f.index)){case"SheetHidden":K.Hidden=1;break;case"SheetVeryHidden":K.Hidden=2;break;}else I=f.index+f[0].length;break;case"header":if(!v["!margins"])bh(v["!margins"]={},"xlml");if(!isNaN(+Ne(f[0]).Margin))v["!margins"].header=+Ne(f[0]).Margin;break;case"footer":if(!v["!margins"])bh(v["!margins"]={},"xlml");if(!isNaN(+Ne(f[0]).Margin))v["!margins"].footer=+Ne(f[0]).Margin;break;case"pagemargins":var ie=Ne(f[0]);if(!v["!margins"])bh(v["!margins"]={},"xlml");if(!isNaN(+ie.Top))v["!margins"].top=+ie.Top;if(!isNaN(+ie.Left))v["!margins"].left=+ie.Left;if(!isNaN(+ie.Right))v["!margins"].right=+ie.Right;if(!isNaN(+ie.Bottom))v["!margins"].bottom=+ie.Bottom;break;case"displayrighttoleft":if(!$.Views)$.Views=[];if(!$.Views[0])$.Views[0]={};$.Views[0].RTL=true;break;case"freezepanes":break;case"frozennosplit":break;case"splithorizontal":;case"splitvertical":break;case"donotdisplaygridlines":break;case"activerow":break;case"activecol":break;case"toprowbottompane":break;case"leftcolumnrightpane":break;case"unsynced":break;case"print":break;case"printerrors":break;case"panes":break;case"scale":break;case"pane":break;case"number":break;case"layout":break;case"pagesetup":break;case"selected":break;case"protectobjects":break;case"enableselection":break;case"protectscenarios":break;case"validprinterinfo":break;case"horizontalresolution":break;case"verticalresolution":break;case"numberofcopies":break;case"activepane":break;case"toprowvisible":break;case"leftcolumnvisible":break;case"fittopage":break;case"rangeselection":break;case"papersizeindex":break;case"pagelayoutzoom":break;case"pagebreakzoom":break;case"filteron":break;case"fitwidth":break;case"fitheight":break;case"commentslayout":break;case"zoom":break;case"lefttoright":break;case"gridlines":break;case"allowsort":break;case"allowfilter":break;case"allowinsertrows": -break;case"allowdeleterows":break;case"allowinsertcols":break;case"allowdeletecols":break;case"allowinserthyperlinks":break;case"allowformatcells":break;case"allowsizecols":break;case"allowsizerows":break;case"nosummaryrowsbelowdetail":if(!v["!outline"])v["!outline"]={};v["!outline"].above=true;break;case"tabcolorindex":break;case"donotdisplayheadings":break;case"showpagelayoutzoom":break;case"nosummarycolumnsrightdetail":if(!v["!outline"])v["!outline"]={};v["!outline"].left=true;break;case"blackandwhite":break;case"donotdisplayzeros":break;case"displaypagebreak":break;case"rowcolheadings":break;case"donotdisplayoutline":break;case"noorientation":break;case"allowusepivottables":break;case"zeroheight":break;case"viewablerange":break;case"selection":break;case"protectcontents":break;default:ne=false;}break;case"pivottable":;case"pivotcache":switch(f[3]){case"immediateitemsondrop":break;case"showpagemultipleitemlabel":break;case"compactrowindent":break;case"location":break;case"pivotfield":break;case"orientation":break;case"layoutform":break;case"layoutsubtotallocation":break;case"layoutcompactrow":break;case"position":break;case"pivotitem":break;case"datatype":break;case"datafield":break;case"sourcename":break;case"parentfield":break;case"ptlineitems":break;case"ptlineitem":break;case"countofsameitems":break;case"item":break;case"itemtype":break;case"ptsource":break;case"cacheindex":break;case"consolidationreference":break;case"filename":break;case"reference":break;case"nocolumngrand":break;case"norowgrand":break;case"blanklineafteritems":break;case"hidden":break;case"subtotal":break;case"basefield":break;case"mapchilditems":break;case"function":break;case"refreshonfileopen":break;case"printsettitles":break;case"mergelabels":break;case"defaultversion":break;case"refreshname":break;case"refreshdate":break;case"refreshdatecopy":break;case"versionlastrefresh":break;case"versionlastupdate":break;case"versionupdateablemin":break;case"versionrefreshablemin":break;case"calculation":break;default:ne=false;}break;case"pagebreaks":switch(f[3]){case"colbreaks":break;case"colbreak":break;case"rowbreaks":break;case"rowbreak":break;case"colstart":break;case"colend":break;case"rowend":break;default:ne=false;}break;case"autofilter":switch(f[3]){case"autofiltercolumn":break;case"autofiltercondition":break;case"autofilterand":break;case"autofilteror":break;default:ne=false;}break;case"querytable":switch(f[3]){case"id":break;case"autoformatfont":break;case"autoformatpattern":break;case"querysource":break;case"querytype":break;case"enableredirections":break;case"refreshedinxl9":break;case"urlstring":break;case"htmltables":break;case"connection":break;case"commandtext":break;case"refreshinfo":break;case"notitles":break;case"nextid":break;case"columninfo":break;case"overwritecells":break;case"donotpromptforfile":break;case"textwizardsettings":break;case"source":break;case"number":break;case"decimal":break;case"thousandseparator":break;case"trailingminusnumbers":break;case"formatsettings":break;case"fieldtype":break;case"delimiters":break;case"tab":break;case"comma":break;case"autoformatname":break;case"versionlastedit":break;case"versionlastrefresh":break;default:ne=false;}break;case"datavalidation":switch(f[3]){case"range":break;case"type":break;case"min":break;case"max":break;case"sort":break;case"descending":break;case"order":break;case"casesensitive":break;case"value":break;case"errorstyle":break;case"errormessage":break;case"errortitle":break;case"inputmessage":break;case"inputtitle":break;case"combohide":break;case"inputhide":break;case"condition":break;case"qualifier":break;case"useblank":break;case"value1":break;case"value2":break;case"format":break;case"cellrangelist":break;default:ne=false;}break;case"sorting":;case"conditionalformatting":switch(f[3]){case"range":break;case"type":break;case"min":break;case"max":break;case"sort":break;case"descending":break;case"order":break;case"casesensitive":break;case"value":break;case"errorstyle":break;case"errormessage":break;case"errortitle":break;case"cellrangelist":break;case"inputmessage":break;case"inputtitle":break;case"combohide":break;case"inputhide":break;case"condition":break;case"qualifier":break;case"useblank":break;case"value1":break;case"value2":break;case"format":break;default:ne=false;}break;case"mapinfo":;case"schema":;case"data":switch(f[3]){case"map":break;case"entry":break;case"range":break;case"xpath":break;case"field":break;case"xsdtype":break;case"filteron":break;case"aggregate":break;case"elementtype":break;case"attributetype":break;case"schema":;case"element":;case"complextype":;case"datatype":;case"all":;case"attribute":;case"extends":break;case"row":break;default:ne=false;}break;case"smarttags":break;default:ne=false;break;}if(ne)break;if(f[3].match(/!\[CDATA/))break;if(!l[l.length-1][1])throw"Unrecognized tag: "+f[3]+"|"+l.join("|");if(l[l.length-1][0]==="customdocumentproperties"){if(f[0].slice(-2)==="/>")break;else if(f[1]==="/")Bp(F,Y,D,a.slice(I,f.index));else{D=f;I=f.index+f[0].length}break}if(t.WTF)throw"Unrecognized tag: "+f[3]+"|"+l.join("|");}var se={};if(!t.bookSheets&&!t.bookProps)se.Sheets=u;se.SheetNames=h;se.Workbook=$;se.SSF=P.get_table();se.Props=R;se.Custprops=F;return se}function Fp(e,r){Um(r=r||{});switch(r.type||"base64"){case"base64":return Rp(g.decode(e),r);case"binary":;case"buffer":;case"file":return Rp(e,r);case"array":return Rp(_(e),r);}}function Ip(e,r){var t=[];if(e.Props)t.push(Sn(e.Props,r));if(e.Custprops)t.push(Bn(e.Props,e.Custprops,r));return t.join("")}function Dp(){return""}function Pp(e,r){var t=[''];r.cellXfs.forEach(function(e,r){var a=[];a.push(ur("NumberFormat",null,{"ss:Format":Xe(P._table[e.numFmtId])}));var n={"ss:ID":"s"+(21+r)};t.push(ur("Style",a.join(""),n))});return ur("Styles",t.join(""))}function Op(e){return ur("NamedRange",null,{"ss:Name":e.Name,"ss:RefersTo":"="+uc(e.Ref,{r:0,c:0})})}function Np(e){if(!((e||{}).Workbook||{}).Names)return"";var r=e.Workbook.Names;var t=[];for(var a=0;a");if(e["!margins"].header)n.push(ur("Header",null,{"x:Margin":e["!margins"].header}));if(e["!margins"].footer)n.push(ur("Footer",null,{"x:Margin":e["!margins"].footer}));n.push(ur("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"}));n.push("")}if(a&&a.Workbook&&a.Workbook.Sheets&&a.Workbook.Sheets[t]){if(a.Workbook.Sheets[t].Hidden)n.push(ur("Visible",a.Workbook.Sheets[t].Hidden==1?"SheetHidden":"SheetVeryHidden",{}));else{for(var i=0;i")}}if(((((a||{}).Workbook||{}).Views||[])[0]||{}).RTL)n.push("");if(e["!protect"]){n.push(or("ProtectContents","True"));if(e["!protect"].objects)n.push(or("ProtectObjects","True"));if(e["!protect"].scenarios)n.push(or("ProtectScenarios","True"));if(e["!protect"].selectLockedCells!=null&&!e["!protect"].selectLockedCells)n.push(or("EnableSelection","NoSelection"));else if(e["!protect"].selectUnlockedCells!=null&&!e["!protect"].selectUnlockedCells)n.push(or("EnableSelection","UnlockedCells"));[["formatCells","AllowFormatCells"],["formatColumns","AllowSizeCols"],["formatRows","AllowSizeRows"],["insertColumns","AllowInsertCols"],["insertRows","AllowInsertRows"],["insertHyperlinks","AllowInsertHyperlinks"],["deleteColumns","AllowDeleteCols"],["deleteRows","AllowDeleteRows"],["sort","AllowSort"],["autoFilter","AllowFilter"],["pivotTables","AllowUsePivotTables"]].forEach(function(r){if(e["!protect"][r[0]])n.push("<"+r[1]+"/>")})}if(n.length==0)return"";return ur("WorksheetOptions",n.join(""),{xmlns:pr.x})}function Up(e){return e.map(function(e){var r=Ye(e.t||"");var t=ur("ss:Data",r,{xmlns:"http://www.w3.org/TR/REC-html40"});return ur("Comment",t,{"ss:Author":e.a})}).join("")}function Wp(e,r,t,a,n,i,s){if(!e||e.v==undefined&&e.f==undefined)return"";var f={};if(e.f)f["ss:Formula"]="="+Xe(uc(e.f,s));if(e.F&&e.F.slice(0,r.length)==r){var l=wt(e.F.slice(r.length+1));f["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){f["ss:HRef"]=Xe(e.l.Target);if(e.l.Tooltip)f["x:HRefScreenTip"]=Xe(e.l.Tooltip)}if(t["!merges"]){var o=t["!merges"];for(var c=0;c!=o.length;++c){if(o[c].s.c!=s.c||o[c].s.r!=s.r)continue;if(o[c].e.c>o[c].s.c)f["ss:MergeAcross"]=o[c].e.c-o[c].s.c;if(o[c].e.r>o[c].s.r)f["ss:MergeDown"]=o[c].e.r-o[c].s.r}}var u="",h="";switch(e.t){case"z":if(!a.sheetStubs)return"";break;case"n":u="Number";h=String(e.v);break;case"b":u="Boolean";h=e.v?"1":"0";break;case"e":u="Error";h=Ia[e.v];break;case"d":u="DateTime";h=new Date(e.v).toISOString();if(e.z==null)e.z=e.z||P._table[14];break;case"s":u="String";h=$e(e.v||"");break;}var d=gh(a.cellXfs,e,a);f["ss:StyleID"]="s"+(21+d);f["ss:Index"]=s.c+1;var v=e.v!=null?h:"";var p=e.t=="z"?"":''+v+"";if((e.c||[]).length>0)p+=Up(e.c);return ur("Cell",p,f)}function Hp(e,r){var t='"}function Vp(e,r,t,a){if(!e["!ref"])return"";var n=Bt(e["!ref"]);var i=e["!merges"]||[],s=0;var f=[];if(e["!cols"])e["!cols"].forEach(function(e,r){Tl(e);var t=!!e.width;var a=mh(r,e);var n={"ss:Index":r+1};if(t)n["ss:Width"]=El(a.width);if(e.hidden)n["ss:Hidden"]="1";f.push(ur("Column",null,n))});var l=Array.isArray(e);for(var o=n.s.r;o<=n.e.r;++o){var c=[Hp(o,(e["!rows"]||[])[o])];for(var u=n.s.c;u<=n.e.c;++u){var h=false;for(s=0;s!=i.length;++s){if(i[s].s.c>u)continue;if(i[s].s.r>o)continue;if(i[s].e.c");if(c.length>2)f.push(c.join(""))}return f.join("")}function Xp(e,r,t){var a=[];var n=t.SheetNames[e];var i=t.Sheets[n];var s=i?Lp(i,r,e,t):"";if(s.length>0)a.push(""+s+"");s=i?Vp(i,r,e,t):"";if(s.length>0)a.push(""+s+"
");a.push(Mp(i,r,e,t));return a.join("")}function Gp(e,r){if(!r)r={};if(!e.SSF)e.SSF=P.get_table();if(e.SSF){O(P);P.load_table(e.SSF);r.revssf=Q(e.SSF);r.revssf[e.SSF[65535]]=0;r.ssf=e.SSF;r.cellXfs=[];gh(r.cellXfs,{},{revssf:{General:0}})}var t=[];t.push(Ip(e,r));t.push(Dp(e,r));t.push("");t.push("");for(var a=0;a40)return r;t.l-=4;r.Reserved1=t._R(0,"lpstr-ansi");if(t.length-t.l<=4)return r;a=t._R(4);if(a!==1907505652)return r;r.UnicodeClipboardFormat=oa(t);a=t._R(4);if(a==0||a>40)return r;t.l-=4;r.Reserved2=t._R(0,"lpwstr")}function jp(e,r,t,a){var n=t;var i=[];var s=r.slice(r.l,r.l+n);if(a&&a.enc&&a.enc.insitu&&s.length>0)switch(e.n){case"BOF":;case"FilePass":;case"FileLock":;case"InterfaceHdr":;case"RRDInfo":;case"RRDHead":;case"UsrExcl":;case"EOF":break;case"BoundSheet8":break;default:a.enc.insitu(s);}i.push(s);r.l+=n;var f=nm[Hr(r,r.l)];var l=0;while(f!=null&&f.n.slice(0,8)==="Continue"){n=Hr(r,r.l+2);l=r.l+4;if(f.n=="ContinueFrt")l+=4;else if(f.n.slice(0,11)=="ContinueFrt"){l+=12}s=r.slice(l,r.l+4+n);i.push(s);r.l+=4+n;f=nm[Hr(r,r.l)]}var o=F(i);Qr(o,0);var c=0;o.lens=[];for(var u=0;u1)return;if(t.sheetRows&&e.r>=t.sheetRows)return;if(t.cellStyles&&r.XF&&r.XF.data)x(e,r,t);delete r.ixfe;delete r.XF;h=e;d=kt(e);if(!s||!s.s||!s.e)s={s:{r:0,c:0},e:{r:0,c:0}};if(e.rs.e.r)s.e.r=e.r+1;if(e.c+1>s.e.c)s.e.c=e.c+1;if(t.cellFormula&&r.f){for(var a=0;ae.c||k[a][0].s.r>e.r)continue;if(k[a][0].e.c>8)!==J)throw new Error("rt mismatch: "+Z+"!="+J);if(Q.r==12){e.l+=10;q-=10}}var ee={};if(Q.n==="EOF")ee=Q.f(e,q,R);else ee=jp(Q,e,q,R);var re=Q.n;if(V==0&&re!="BOF")continue;switch(re){case"Date1904":t.opts.Date1904=y.WBProps.date1904=ee;break;case"WriteProtect":t.opts.WriteProtect=true;break;case"FilePass":if(!R.enc)e.l=0;R.enc=ee;if(!r.password)throw new Error("File is password-protected");if(ee.valid==null)throw new Error("Encryption scheme unsupported");if(!ee.valid)throw new Error("Password is incorrect");break;case"WriteAccess":R.lastuser=ee;break;case"FileSharing":break;case"CodePage":var te=Number(ee);switch(te){case 21010:te=1200;break;case 32768:te=1e4;break;case 32769:te=1252;break;}l(R.codepage=te);$=true;break;case"RRTabId":R.rrtabid=ee;break;case"WinProtect":R.winlocked=ee;break;case"Template":break;case"BookBool":break;case"UsesELFs":break;case"MTRSettings":break;case"RefreshAll":;case"CalcCount":;case"CalcDelta":;case"CalcIter":;case"CalcMode":;case"CalcPrecision":;case"CalcSaveRecalc":t.opts[re]=ee;break;case"CalcRefMode":R.CalcRefMode=ee;break;case"Uncalced":break;case"ForceFullCalculation":t.opts.FullCalc=ee;break;case"WsBool":if(ee.fDialog)n["!type"]="dialog";if(!ee.fBelow)(n["!outline"]||(n["!outline"]={})).above=true;if(!ee.fRight)(n["!outline"]||(n["!outline"]={})).left=true;break;case"XF":B.push(ee);break;case"ExtSST":break;case"BookExt":break;case"RichTextStream":break;case"BkHim":break;case"SupBook":W.push([ee]);W[W.length-1].XTI=[];break;case"ExternName":W[W.length-1].push(ee);break;case"Index":break;case"Lbl":j={Name:ee.Name,Ref:zu(ee.rgce,s,null,W,R)};if(ee.itab>0)j.Sheet=ee.itab-1;W.names.push(j);if(!W[0]){W[0]=[];W[0].XTI=[]}W[W.length-1].push(ee);if(ee.Name=="_xlnm._FilterDatabase"&&ee.itab>0)if(ee.rgce&&ee.rgce[0]&&ee.rgce[0][0]&&ee.rgce[0][0][0]=="PtgArea3d")z[ee.itab-1]={ref:St(ee.rgce[0][0][1][2])};break;case"ExternCount":R.ExternCount=ee;break;case"ExternSheet":if(W.length==0){W[0]=[];W[0].XTI=[]}W[W.length-1].XTI=W[W.length-1].XTI.concat(ee);W.XTI=W.XTI.concat(ee);break;case"NameCmt":if(R.biff<8)break;if(j!=null)j.Comment=ee[1];break;case"Protect":n["!protect"]=ee;break;case"Password":if(ee!==0&&R.WTF)console.error("Password verifier: "+ee);break;case"Prot4Rev":;case"Prot4RevPass":break;case"BoundSheet8":{i[ee.pos]=ee;R.snames.push(ee.name)}break;case"EOF":{if(--V)break;if(s.e){if(s.e.r>0&&s.e.c>0){s.e.r--;s.e.c--;n["!ref"]=St(s);if(r.sheetRows&&r.sheetRows<=s.e.r){var ae=s.e.r;s.e.r=r.sheetRows-1;n["!fullref"]=n["!ref"];n["!ref"]=St(s);s.e.r=ae}s.e.r++;s.e.c++}if(I.length>0)n["!merges"]=I;if(D.length>0)n["!objects"]=D;if(O.length>0)n["!cols"]=O;if(N.length>0)n["!rows"]=N;y.Sheets.push(T)}if(c==="")u=n;else a[c]=n;n=r.dense?[]:{}}break;case"BOF":{if(R.biff===8)R.biff={9:2,521:3,1033:4}[J]||{512:2,768:3,1024:4,1280:5,1536:8,2:2,7:2}[ee.BIFFVer]||8;R.biffguess=ee.BIFFVer==0;if(ee.BIFFVer==0&&ee.dt==4096){R.biff=5;$=true;l(R.codepage=28591)}if(R.biff==8&&ee.BIFFVer==0&&ee.dt==16)R.biff=2;if(V++)break;n=r.dense?[]:{};if(R.biff<8&&!$){$=true;l(R.codepage=r.codepage||1252)}if(R.biff<5||ee.BIFFVer==0&&ee.dt==4096){if(c==="")c="Sheet1";s={s:{r:0,c:0},e:{r:0,c:0}};var ne={pos:e.l-q,name:c};i[ne.pos]=ne;R.snames.push(c)}else c=(i[K]||{name:""}).name;if(ee.dt==32)n["!type"]="chart";if(ee.dt==64)n["!type"]="macro";I=[];D=[];R.arrayf=k=[];O=[];N=[];L=M=0;U=false;T={Hidden:(i[K]||{hs:0}).hs,name:c}}break;case"Number":;case"BIFF2NUM":;case"BIFF2INT":{if(n["!type"]=="chart")if(r.dense?(n[ee.r]||[])[ee.c]:n[kt({c:ee.c,r:ee.r})])++ee.c;E={ixfe:ee.ixfe,XF:B[ee.ixfe]||{},v:ee.val,t:"n"};if(X>0)E.z=G[E.ixfe>>8&63];$p(E,r,t.opts.Date1904);A({c:ee.c,r:ee.r},E,r)}break;case"BoolErr":{E={ixfe:ee.ixfe,XF:B[ee.ixfe],v:ee.val,t:ee.t};if(X>0)E.z=G[E.ixfe>>8&63];$p(E,r,t.opts.Date1904);A({c:ee.c,r:ee.r},E,r)}break;case"RK":{E={ixfe:ee.ixfe,XF:B[ee.ixfe],v:ee.rknum,t:"n"};if(X>0)E.z=G[E.ixfe>>8&63];$p(E,r,t.opts.Date1904);A({c:ee.c,r:ee.r},E,r)}break;case"MulRk":{for(var ie=ee.c;ie<=ee.C;++ie){var se=ee.rkrec[ie-ee.c][0];E={ixfe:se,XF:B[se],v:ee.rkrec[ie-ee.c][1],t:"n"};if(X>0)E.z=G[E.ixfe>>8&63];$p(E,r,t.opts.Date1904);A({c:ie,r:ee.r},E,r)}}break;case"Formula":{if(ee.val=="String"){f=ee;break}E=Kp(ee.val,ee.cell.ixfe,ee.tt);E.XF=B[E.ixfe];if(r.cellFormula){var fe=ee.formula;if(fe&&fe[0]&&fe[0][0]&&fe[0][0][0]=="PtgExp"){var le=fe[0][0][1][0],oe=fe[0][0][1][1];var ce=kt({r:le,c:oe});if(w[ce])E.f=""+zu(ee.formula,s,ee.cell,W,R);else E.F=((r.dense?(n[le]||[])[oe]:n[ce])||{}).F}else E.f=""+zu(ee.formula,s,ee.cell,W,R)}if(X>0)E.z=G[E.ixfe>>8&63];$p(E,r,t.opts.Date1904);A(ee.cell,E,r);f=ee}break;case"String":{if(f){f.val=ee;E=Kp(ee,f.cell.ixfe,"s");E.XF=B[E.ixfe];if(r.cellFormula){E.f=""+zu(f.formula,s,f.cell,W,R)}if(X>0)E.z=G[E.ixfe>>8&63];$p(E,r,t.opts.Date1904);A(f.cell,E,r);f=null}else throw new Error("String record expects Formula")}break;case"Array":{k.push(ee);var ue=kt(ee[0].s);v=r.dense?(n[ee[0].s.r]||[])[ee[0].s.c]:n[ue];if(r.cellFormula&&v){if(!f)break;if(!ue||!v)break;v.f=""+zu(ee[1],s,ee[0],W,R);v.F=St(ee[0])}}break;case"ShrFmla":{if(!r.cellFormula)break;if(d){if(!f)break;w[kt(f.cell)]=ee[0];v=r.dense?(n[f.cell.r]||[])[f.cell.c]:n[kt(f.cell)];(v||{}).f=""+zu(ee[0],s,h,W,R)}}break;case"LabelSst":E=Kp(o[ee.isst].t,ee.ixfe,"s");if(o[ee.isst].h)E.h=o[ee.isst].h;E.XF=B[E.ixfe];if(X>0)E.z=G[E.ixfe>>8&63];$p(E,r,t.opts.Date1904);A({c:ee.c,r:ee.r},E,r);break;case"Blank":if(r.sheetStubs){E={ixfe:ee.ixfe,XF:B[ee.ixfe],t:"z"};if(X>0)E.z=G[E.ixfe>>8&63];$p(E,r,t.opts.Date1904);A({c:ee.c,r:ee.r},E,r)}break;case"MulBlank":if(r.sheetStubs){for(var he=ee.c;he<=ee.C;++he){var de=ee.ixfe[he-ee.c];E={ixfe:de,XF:B[de],t:"z"};if(X>0)E.z=G[E.ixfe>>8&63];$p(E,r,t.opts.Date1904);A({c:he,r:ee.r},E,r)}}break;case"RString":;case"Label":;case"BIFF2STR":E=Kp(ee.val,ee.ixfe,"s");E.XF=B[E.ixfe];if(X>0)E.z=G[E.ixfe>>8&63];$p(E,r,t.opts.Date1904);A({c:ee.c,r:ee.r},E,r);break;case"Dimensions":{if(V===1)s=ee}break;case"SST":{o=ee}break;case"Format":{if(R.biff==4){G[X++]=ee[1];for(var ve=0;ve=163)P.load(ee[1],X+163)}else P.load(ee[1],ee[0])}break;case"BIFF2FORMAT":{G[X++]=ee;for(var pe=0;pe=163)P.load(ee,X+163)}break;case"MergeCells":I=I.concat(ee);break;case"Obj":D[ee.cmo[0]]=R.lastobj=ee;break;case"TxO":R.lastobj.TxO=ee;break;case"ImData":R.lastobj.ImData=ee;break;case"HLink":{for(g=ee[0].s.r;g<=ee[0].e.r;++g)for(b=ee[0].s.c;b<=ee[0].e.c;++b){v=r.dense?(n[g]||[])[b]:n[kt({c:b,r:g})];if(v)v.l=ee[1]}}break;case"HLinkTooltip":{for(g=ee[0].s.r;g<=ee[0].e.r;++g)for(b=ee[0].s.c;b<=ee[0].e.c;++b){v=r.dense?(n[g]||[])[b]:n[kt({c:b,r:g})];if(v&&v.l)v.l.Tooltip=ee[1]}}break;case"Note":{if(R.biff<=5&&R.biff>=2)break;v=r.dense?(n[ee[0].r]||[])[ee[0].c]:n[kt(ee[0])];var me=D[ee[2]];if(!v){if(r.dense){if(!n[ee[0].r])n[ee[0].r]=[];v=n[ee[0].r][ee[0].c]={t:"z"}}else{v=n[kt(ee[0])]={t:"z"}}s.e.r=Math.max(s.e.r,ee[0].r);s.s.r=Math.min(s.s.r,ee[0].r);s.e.c=Math.max(s.e.c,ee[0].c);s.s.c=Math.min(s.s.c,ee[0].c)}if(!v.c)v.c=[];p={a:ee[1],t:me.TxO.t};v.c.push(p)}break;default:switch(Q.n){case"ClrtClient":break;case"XFExt":No(B[ee.ixfe],ee.ext);break;case"DefColWidth":L=ee;break;case"DefaultRowHeight":M=ee[1];break;case"ColInfo":{if(!R.cellStyles)break;while(ee.e>=ee.s){O[ee.e--]={width:ee.w/256,level:ee.level||0,hidden:!!(ee.flags&1)};if(!U){U=true;yl(ee.w/256)}Tl(O[ee.e+1])}}break;case"Row":{var be={};if(ee.level!=null){N[ee.r]=be;be.level=ee.level}if(ee.hidden){N[ee.r]=be;be.hidden=true}if(ee.hpt){N[ee.r]=be;be.hpt=ee.hpt;be.hpx=Rl(ee.hpt)}}break;case"LeftMargin":;case"RightMargin":;case"TopMargin":;case"BottomMargin":if(!n["!margins"])bh(n["!margins"]={});n["!margins"][re.slice(0,-6).toLowerCase()]=ee;break;case"Selection":break;case"Setup":if(!n["!margins"])bh(n["!margins"]={});n["!margins"].header=ee.header;n["!margins"].footer=ee.footer;break;case"Window2":if(ee.RTL)y.Views[0].RTL=true;break;case"Header":break;case"Footer":break;case"HCenter":break;case"VCenter":break;case"Pls":break;case"GCW":break;case"LHRecord":break;case"DBCell":break;case"EntExU2":break;case"SxView":break;case"Sxvd":break;case"SXVI":break;case"SXVDEx":break;case"SxIvd":break;case"SXString":break;case"Sync":break;case"Addin":break;case"SXDI":break;case"SXLI":break;case"SXEx":break;case"QsiSXTag":break;case"Feat":break;case"FeatHdr":;case"FeatHdr11":break;case"Feature11":;case"Feature12":;case"List12":break;case"Country":S=ee;break;case"RecalcId":break;case"DxGCol":break;case"Fbi":;case"Fbi2":;case"GelFrame":break;case"Font":break;case"XFCRC":break;case"Style":break;case"StyleExt":break;case"Palette":C=ee;break;case"Theme":F=ee;break;case"ScenarioProtect":break;case"ObjProtect":break;case"CondFmt12":break;case"Table":break;case"TableStyles":break;case"TableStyle":break;case"TableStyleElement":break;case"SXStreamID":break;case"SXVS":break;case"DConRef":break;case"SXAddl":break;case"DConBin":break;case"DConName":break;case"SXPI":break;case"SxFormat":break;case"SxSelect":break;case"SxRule":break;case"SxFilt":break;case"SxItm":break;case"SxDXF":break;case"ScenMan":break;case"DCon":break;case"CellWatch":break;case"PrintRowCol":break;case"PrintGrid":break;case"PrintSize":break;case"XCT":break;case"CRN":break;case"Scl":{}break;case"SheetExt":{}break;case"SheetExtOptional":{}break;case"ObNoMacros":{}break;case"ObProj":{}break;case"CodeName":{if(!c)y.WBProps.CodeName=ee||"ThisWorkbook";else T.CodeName=ee||T.name}break;case"GUIDTypeLib":{}break;case"WOpt":break;case"PhoneticInfo":break;case"OleObjectSize":break;case"DXF":;case"DXFN":;case"DXFN12":;case"DXFN12List":;case"DXFN12NoCB":break;case"Dv":;case"DVal":break;case"BRAI":;case"Series":;case"SeriesText":break;case"DConn":break;case"DbOrParamQry":break;case"DBQueryExt":break;case"OleDbConn":break;case"ExtString":break;case"IFmtRecord":break;case"CondFmt":;case"CF":;case"CF12":;case"CFEx":break;case"Excel9File":break;case"Units":break;case"InterfaceHdr":;case"Mms":;case"InterfaceEnd":;case"DSF":break;case"BuiltInFnGroupCount":break;case"Window1":;case"HideObj":;case"GridSet":;case"Guts":;case"UserBView":;case"UserSViewBegin":;case"UserSViewEnd":break;case"Pane":break;default:switch(Q.n){case"Dat":;case"Begin":;case"End":;case"StartBlock":;case"EndBlock":;case"Frame":;case"Area":;case"Axis":;case"AxisLine":;case"Tick":break;case"AxesUsed":;case"CrtLayout12":;case"CrtLayout12A":;case"CrtLink":;case"CrtLine":;case"CrtMlFrt":;case"CrtMlFrtContinue":break;case"LineFormat":;case"AreaFormat":;case"Chart":;case"Chart3d":;case"Chart3DBarShape":;case"ChartFormat":;case"ChartFrtInfo":break;case"PlotArea":;case"PlotGrowth":break;case"SeriesList":;case"SerParent":;case"SerAuxTrend":break;case"DataFormat":;case"SerToCrt":;case"FontX":break;case"CatSerRange":;case"AxcExt":;case"SerFmt":break;case"ShtProps":break;case"DefaultText":;case"Text":;case"CatLab":break;case"DataLabExtContents":break;case"Legend":;case"LegendException":break;case"Pie":;case"Scatter":break;case"PieFormat":;case"MarkerFormat":break;case"StartObject":;case"EndObject":break;case"AlRuns":;case"ObjectLink":break;case"SIIndex":break;case"AttachedLabel":;case"YMult":break;case"Line":;case"Bar":break;case"Surf":break;case"AxisParent":break;case"Pos":break;case"ValueRange":break;case"SXViewEx9":break;case"SXViewLink":break;case"PivotChartBits":break;case"SBaseRef":break;case"TextPropsStream":break;case"LnExt":break;case"MkrExt":break;case"CrtCoopt":break;case"Qsi":;case"Qsif":;case"Qsir":;case"QsiSXTag":break;case"TxtQry":break;case"FilterMode":break;case"AutoFilter":;case"AutoFilterInfo":break;case"AutoFilter12":break;case"DropDownObjIds":break;case"Sort":break;case"SortData":break;case"ShapePropsStream":break;case"MsoDrawing":;case"MsoDrawingGroup":;case"MsoDrawingSelection":break;case"WebPub":;case"AutoWebPub":break;case"HeaderFooter":;case"HFPicture":;case"PLV":;case"HorizontalPageBreaks":;case"VerticalPageBreaks":break;case"Backup":;case"CompressPictures":;case"Compat12":break;case"Continue":;case"ContinueFrt12":break;case"FrtFontList":;case"FrtWrapper":break;default:switch(Q.n){case"TabIdConf":;case"Radar":;case"RadarArea":;case"DropBar":;case"Intl":;case"CoordList":;case"SerAuxErrBar":break;case"BIFF2FONTCLR":;case"BIFF2FMTCNT":;case"BIFF2FONTXTRA":break;case"BIFF2XF":;case"BIFF3XF":;case"BIFF4XF":break;case"BIFF2XFINDEX":break;case"BIFF4FMTCNT":;case"BIFF2ROW":;case"BIFF2WINDOW2":break;case"SCENARIO":;case"DConBin":;case"PicF":;case"DataLabExt":;case"Lel":;case"BopPop":;case"BopPopCustom":;case"RealTimeData":;case"Name":break;case"LHNGraph":;case"FnGroupName":;case"AddMenu":;case"LPr":break;case"ListObj":;case"ListField":break;case"RRSort":break;case"BigName":break;case"ToolbarHdr":;case"ToolbarEnd":break;case"DDEObjName":break;case"FRTArchId$":break;default:if(r.WTF)throw"Unrecognized Record "+Q.n;};};};}}else e.l+=q}t.SheetNames=Y(i).sort(function(e,r){return Number(e)-Number(r)}).map(function(e){return i[e].name});if(!r.bookSheets)t.Sheets=a;if(!t.SheetNames.length&&u["!ref"]){t.SheetNames.push("Sheet1");if(t.Sheets)t.Sheets["Sheet1"]=u}else t.Preamble=u;if(t.Sheets)z.forEach(function(e,r){t.Sheets[t.SheetNames[r]]["!autofilter"]=e});t.Strings=o;t.SSF=P.get_table();if(R.enc)t.Encryption=R.enc;if(F)t.Themes=F;t.Metadata={};if(S!==undefined)t.Metadata.Country=S;if(W.names.length>0)y.Names=W.names;t.Workbook=y;return t}var Jp={SI:"e0859ff2f94f6810ab9108002b27b3d9",DSI:"02d5cdd59c2e1b10939708002b2cf9ae",UDI:"05d5cdd59c2e1b10939708002b2cf9ae"};function qp(e,r,t){var a=X.find(e,"/!DocumentSummaryInformation");if(a&&a.size>0)try{var n=Gn(a,Ba,Jp.DSI);for(var i in n)r[i]=n[i]}catch(s){if(t.WTF)throw s}var f=X.find(e,"/!SummaryInformation");if(f&&f.size>0)try{var l=Gn(f,Ca,Jp.SI);for(var o in l)if(r[o]==null)r[o]=l[o]}catch(s){if(t.WTF)throw s}if(r.HeadingPairs&&r.TitlesOfParts){un(r.HeadingPairs,r.TitlesOfParts,r,t);delete r.HeadingPairs;delete r.TitlesOfParts}}function Qp(e,r){var t=[],a=[],n=[];var i=0,s;if(e.Props){s=Y(e.Props);for(i=0;i-1)continue;if(n[i][1]==null)continue;f.push(n[i])}if(a.length)X.utils.cfb_add(r,"/SummaryInformation",zn(a,Jp.SI,Ta,Ca));if(t.length||f.length)X.utils.cfb_add(r,"/DocumentSummaryInformation",zn(t,Jp.DSI,ya,Ba,f.length?f:null,Jp.UDI))}function Zp(e,r){if(!r)r={};Um(r);o();if(r.codepage)s(r.codepage);var t,a;if(e.FullPaths){if(X.find(e,"/encryption"))throw new Error("File is password-protected");t=X.find(e,"!CompObj");a=X.find(e,"/Workbook")||X.find(e,"/Book")}else{switch(r.type){case"base64":e=y(g.decode(e));break;case"binary":e=y(e);break;case"buffer":break;case"array":if(!Array.isArray(e))e=Array.prototype.slice.call(e);break;}Qr(e,0);a={content:e}}var n;var i;if(t)zp(t);if(r.bookProps&&!r.bookSheets)n={};else{var f=w?"buffer":"array";if(a&&a.content)n=Yp(a.content,r);else if((i=X.find(e,"PerfectOffice_MAIN"))&&i.content)n=Bf.to_workbook(i.content,(r.type=f,r));else if((i=X.find(e,"NativeContent_MAIN"))&&i.content)n=Bf.to_workbook(i.content,(r.type=f,r));else if((i=X.find(e,"MN0"))&&i.content)throw new Error("Unsupported Works 4 for Mac file");else throw new Error("Cannot find Workbook stream");if(r.bookVBA&&e.FullPaths&&X.find(e,"/_VBA_PROJECT_CUR/VBA/dir"))n.vbaraw=tc(e)}var l={};if(e.FullPaths)qp(e,l,r);n.Props=n.Custprops=l;if(r.bookFiles)n.cfb=e;return n}function em(e,r){var t=r||{};var a=X.utils.cfb_new({root:"R"});var n="/Workbook";switch(t.bookType||"xls"){case"xls":t.bookType="biff8";case"xla":if(!t.bookType)t.bookType="xla";case"biff8":n="/Workbook";t.biff=8;break;case"biff5":n="/Book";t.biff=5;break;default:throw new Error("invalid type "+t.bookType+" for XLS CFB");}X.utils.cfb_add(a,n,Cm(e,t));if(t.biff==8&&(e.Props||e.Custprops))Qp(e,a);if(t.biff==8&&e.vbaraw)ac(a,X.read(e.vbaraw,{type:typeof e.vbaraw=="string"?"binary":"buffer"}));return a}var rm={0:{n:"BrtRowHdr",f:rd},1:{n:"BrtCellBlank",f:od},2:{n:"BrtCellRk",f:Ad},3:{n:"BrtCellError",f:bd},4:{n:"BrtCellBool",f:dd},5:{n:"BrtCellReal",f:yd},6:{n:"BrtCellSt",f:Pd},7:{n:"BrtCellIsst",f:Ed},8:{n:"BrtFmlaString",f:Hd},9:{n:"BrtFmlaNum",f:Wd},10:{n:"BrtFmlaBool",f:Md},11:{n:"BrtFmlaError",f:Ud},12:{n:"BrtShortBlank",f:ud},13:{n:"BrtShortRk",f:Fd},14:{n:"BrtShortError",f:wd},15:{n:"BrtShortBool",f:pd},16:{n:"BrtShortReal",f:_d},17:{n:"BrtShortSt",f:Nd},18:{n:"BrtShortIsst",f:Bd},19:{n:"BrtSSTItem",f:Pt},20:{n:"BrtPCDIMissing"},21:{n:"BrtPCDINumber"},22:{n:"BrtPCDIBoolean"},23:{n:"BrtPCDIError"},24:{n:"BrtPCDIString"},25:{n:"BrtPCDIDatetime"},26:{n:"BrtPCDIIndex"},27:{n:"BrtPCDIAMissing"},28:{n:"BrtPCDIANumber"},29:{n:"BrtPCDIABoolean"},30:{n:"BrtPCDIAError"},31:{n:"BrtPCDIAString"},32:{n:"BrtPCDIADatetime"},33:{n:"BrtPCRRecord"},34:{n:"BrtPCRRecordDt"},35:{n:"BrtFRTBegin"},36:{n:"BrtFRTEnd"},37:{n:"BrtACBegin" -},38:{n:"BrtACEnd"},39:{n:"BrtName",f:Kv},40:{n:"BrtIndexRowBlock"},42:{n:"BrtIndexBlock"},43:{n:"BrtFont",f:jl},44:{n:"BrtFmt",f:Gl},45:{n:"BrtFill",f:Jl},46:{n:"BrtBorder",f:ro},47:{n:"BrtXF",f:Ql},48:{n:"BrtStyle"},49:{n:"BrtCellMeta"},50:{n:"BrtValueMeta"},51:{n:"BrtMdb"},52:{n:"BrtBeginFmd"},53:{n:"BrtEndFmd"},54:{n:"BrtBeginMdx"},55:{n:"BrtEndMdx"},56:{n:"BrtBeginMdxTuple"},57:{n:"BrtEndMdxTuple"},58:{n:"BrtMdxMbrIstr"},59:{n:"BrtStr"},60:{n:"BrtColInfo",f:Zs},62:{n:"BrtCellRString",f:Dd},63:{n:"BrtCalcChainItem$",f:Mo},64:{n:"BrtDVal",f:nv},65:{n:"BrtSxvcellNum"},66:{n:"BrtSxvcellStr"},67:{n:"BrtSxvcellBool"},68:{n:"BrtSxvcellErr"},69:{n:"BrtSxvcellDate"},70:{n:"BrtSxvcellNil"},128:{n:"BrtFileVersion"},129:{n:"BrtBeginSheet"},130:{n:"BrtEndSheet"},131:{n:"BrtBeginBook",f:Zr,p:0},132:{n:"BrtEndBook"},133:{n:"BrtBeginWsViews"},134:{n:"BrtEndWsViews"},135:{n:"BrtBeginBookViews"},136:{n:"BrtEndBookViews"},137:{n:"BrtBeginWsView",f:ev},138:{n:"BrtEndWsView"},139:{n:"BrtBeginCsViews"},140:{n:"BrtEndCsViews"},141:{n:"BrtBeginCsView"},142:{n:"BrtEndCsView"},143:{n:"BrtBeginBundleShs"},144:{n:"BrtEndBundleShs"},145:{n:"BrtBeginSheetData"},146:{n:"BrtEndSheetData"},147:{n:"BrtWsProp",f:fd},148:{n:"BrtWsDim",f:nd,p:16},151:{n:"BrtPane",f:$d},152:{n:"BrtSel"},153:{n:"BrtWbProp",f:zv},154:{n:"BrtWbFactoid"},155:{n:"BrtFileRecover"},156:{n:"BrtBundleSh",f:Xv},157:{n:"BrtCalcProp"},158:{n:"BrtBookView"},159:{n:"BrtBeginSst",f:Lf},160:{n:"BrtEndSst"},161:{n:"BrtBeginAFilter",f:Zt},162:{n:"BrtEndAFilter"},163:{n:"BrtBeginFilterColumn"},164:{n:"BrtEndFilterColumn"},165:{n:"BrtBeginFilters"},166:{n:"BrtEndFilters"},167:{n:"BrtFilter"},168:{n:"BrtColorFilter"},169:{n:"BrtIconFilter"},170:{n:"BrtTop10Filter"},171:{n:"BrtDynamicFilter"},172:{n:"BrtBeginCustomFilters"},173:{n:"BrtEndCustomFilters"},174:{n:"BrtCustomFilter"},175:{n:"BrtAFilterDateGroupItem"},176:{n:"BrtMergeCell",f:Vd},177:{n:"BrtBeginMergeCells"},178:{n:"BrtEndMergeCells"},179:{n:"BrtBeginPivotCacheDef"},180:{n:"BrtEndPivotCacheDef"},181:{n:"BrtBeginPCDFields"},182:{n:"BrtEndPCDFields"},183:{n:"BrtBeginPCDField"},184:{n:"BrtEndPCDField"},185:{n:"BrtBeginPCDSource"},186:{n:"BrtEndPCDSource"},187:{n:"BrtBeginPCDSRange"},188:{n:"BrtEndPCDSRange"},189:{n:"BrtBeginPCDFAtbl"},190:{n:"BrtEndPCDFAtbl"},191:{n:"BrtBeginPCDIRun"},192:{n:"BrtEndPCDIRun"},193:{n:"BrtBeginPivotCacheRecords"},194:{n:"BrtEndPivotCacheRecords"},195:{n:"BrtBeginPCDHierarchies"},196:{n:"BrtEndPCDHierarchies"},197:{n:"BrtBeginPCDHierarchy"},198:{n:"BrtEndPCDHierarchy"},199:{n:"BrtBeginPCDHFieldsUsage"},200:{n:"BrtEndPCDHFieldsUsage"},201:{n:"BrtBeginExtConnection"},202:{n:"BrtEndExtConnection"},203:{n:"BrtBeginECDbProps"},204:{n:"BrtEndECDbProps"},205:{n:"BrtBeginECOlapProps"},206:{n:"BrtEndECOlapProps"},207:{n:"BrtBeginPCDSConsol"},208:{n:"BrtEndPCDSConsol"},209:{n:"BrtBeginPCDSCPages"},210:{n:"BrtEndPCDSCPages"},211:{n:"BrtBeginPCDSCPage"},212:{n:"BrtEndPCDSCPage"},213:{n:"BrtBeginPCDSCPItem"},214:{n:"BrtEndPCDSCPItem"},215:{n:"BrtBeginPCDSCSets"},216:{n:"BrtEndPCDSCSets"},217:{n:"BrtBeginPCDSCSet"},218:{n:"BrtEndPCDSCSet"},219:{n:"BrtBeginPCDFGroup"},220:{n:"BrtEndPCDFGroup"},221:{n:"BrtBeginPCDFGItems"},222:{n:"BrtEndPCDFGItems"},223:{n:"BrtBeginPCDFGRange"},224:{n:"BrtEndPCDFGRange"},225:{n:"BrtBeginPCDFGDiscrete"},226:{n:"BrtEndPCDFGDiscrete"},227:{n:"BrtBeginPCDSDTupleCache"},228:{n:"BrtEndPCDSDTupleCache"},229:{n:"BrtBeginPCDSDTCEntries"},230:{n:"BrtEndPCDSDTCEntries"},231:{n:"BrtBeginPCDSDTCEMembers"},232:{n:"BrtEndPCDSDTCEMembers"},233:{n:"BrtBeginPCDSDTCEMember"},234:{n:"BrtEndPCDSDTCEMember"},235:{n:"BrtBeginPCDSDTCQueries"},236:{n:"BrtEndPCDSDTCQueries"},237:{n:"BrtBeginPCDSDTCQuery"},238:{n:"BrtEndPCDSDTCQuery"},239:{n:"BrtBeginPCDSDTCSets"},240:{n:"BrtEndPCDSDTCSets"},241:{n:"BrtBeginPCDSDTCSet"},242:{n:"BrtEndPCDSDTCSet"},243:{n:"BrtBeginPCDCalcItems"},244:{n:"BrtEndPCDCalcItems"},245:{n:"BrtBeginPCDCalcItem"},246:{n:"BrtEndPCDCalcItem"},247:{n:"BrtBeginPRule"},248:{n:"BrtEndPRule"},249:{n:"BrtBeginPRFilters"},250:{n:"BrtEndPRFilters"},251:{n:"BrtBeginPRFilter"},252:{n:"BrtEndPRFilter"},253:{n:"BrtBeginPNames"},254:{n:"BrtEndPNames"},255:{n:"BrtBeginPName"},256:{n:"BrtEndPName"},257:{n:"BrtBeginPNPairs"},258:{n:"BrtEndPNPairs"},259:{n:"BrtBeginPNPair"},260:{n:"BrtEndPNPair"},261:{n:"BrtBeginECWebProps"},262:{n:"BrtEndECWebProps"},263:{n:"BrtBeginEcWpTables"},264:{n:"BrtEndECWPTables"},265:{n:"BrtBeginECParams"},266:{n:"BrtEndECParams"},267:{n:"BrtBeginECParam"},268:{n:"BrtEndECParam"},269:{n:"BrtBeginPCDKPIs"},270:{n:"BrtEndPCDKPIs"},271:{n:"BrtBeginPCDKPI"},272:{n:"BrtEndPCDKPI"},273:{n:"BrtBeginDims"},274:{n:"BrtEndDims"},275:{n:"BrtBeginDim"},276:{n:"BrtEndDim"},277:{n:"BrtIndexPartEnd"},278:{n:"BrtBeginStyleSheet"},279:{n:"BrtEndStyleSheet"},280:{n:"BrtBeginSXView"},281:{n:"BrtEndSXVI"},282:{n:"BrtBeginSXVI"},283:{n:"BrtBeginSXVIs"},284:{n:"BrtEndSXVIs"},285:{n:"BrtBeginSXVD"},286:{n:"BrtEndSXVD"},287:{n:"BrtBeginSXVDs"},288:{n:"BrtEndSXVDs"},289:{n:"BrtBeginSXPI"},290:{n:"BrtEndSXPI"},291:{n:"BrtBeginSXPIs"},292:{n:"BrtEndSXPIs"},293:{n:"BrtBeginSXDI"},294:{n:"BrtEndSXDI"},295:{n:"BrtBeginSXDIs"},296:{n:"BrtEndSXDIs"},297:{n:"BrtBeginSXLI"},298:{n:"BrtEndSXLI"},299:{n:"BrtBeginSXLIRws"},300:{n:"BrtEndSXLIRws"},301:{n:"BrtBeginSXLICols"},302:{n:"BrtEndSXLICols"},303:{n:"BrtBeginSXFormat"},304:{n:"BrtEndSXFormat"},305:{n:"BrtBeginSXFormats"},306:{n:"BrtEndSxFormats"},307:{n:"BrtBeginSxSelect"},308:{n:"BrtEndSxSelect"},309:{n:"BrtBeginISXVDRws"},310:{n:"BrtEndISXVDRws"},311:{n:"BrtBeginISXVDCols"},312:{n:"BrtEndISXVDCols"},313:{n:"BrtEndSXLocation"},314:{n:"BrtBeginSXLocation"},315:{n:"BrtEndSXView"},316:{n:"BrtBeginSXTHs"},317:{n:"BrtEndSXTHs"},318:{n:"BrtBeginSXTH"},319:{n:"BrtEndSXTH"},320:{n:"BrtBeginISXTHRws"},321:{n:"BrtEndISXTHRws"},322:{n:"BrtBeginISXTHCols"},323:{n:"BrtEndISXTHCols"},324:{n:"BrtBeginSXTDMPS"},325:{n:"BrtEndSXTDMPs"},326:{n:"BrtBeginSXTDMP"},327:{n:"BrtEndSXTDMP"},328:{n:"BrtBeginSXTHItems"},329:{n:"BrtEndSXTHItems"},330:{n:"BrtBeginSXTHItem"},331:{n:"BrtEndSXTHItem"},332:{n:"BrtBeginMetadata"},333:{n:"BrtEndMetadata"},334:{n:"BrtBeginEsmdtinfo"},335:{n:"BrtMdtinfo"},336:{n:"BrtEndEsmdtinfo"},337:{n:"BrtBeginEsmdb"},338:{n:"BrtEndEsmdb"},339:{n:"BrtBeginEsfmd"},340:{n:"BrtEndEsfmd"},341:{n:"BrtBeginSingleCells"},342:{n:"BrtEndSingleCells"},343:{n:"BrtBeginList"},344:{n:"BrtEndList"},345:{n:"BrtBeginListCols"},346:{n:"BrtEndListCols"},347:{n:"BrtBeginListCol"},348:{n:"BrtEndListCol"},349:{n:"BrtBeginListXmlCPr"},350:{n:"BrtEndListXmlCPr"},351:{n:"BrtListCCFmla"},352:{n:"BrtListTrFmla"},353:{n:"BrtBeginExternals"},354:{n:"BrtEndExternals"},355:{n:"BrtSupBookSrc",f:$t},357:{n:"BrtSupSelf"},358:{n:"BrtSupSame"},359:{n:"BrtSupTabs"},360:{n:"BrtBeginSupBook"},361:{n:"BrtPlaceholderName"},362:{n:"BrtExternSheet",f:Rs},363:{n:"BrtExternTableStart"},364:{n:"BrtExternTableEnd"},366:{n:"BrtExternRowHdr"},367:{n:"BrtExternCellBlank"},368:{n:"BrtExternCellReal"},369:{n:"BrtExternCellBool"},370:{n:"BrtExternCellError"},371:{n:"BrtExternCellString"},372:{n:"BrtBeginEsmdx"},373:{n:"BrtEndEsmdx"},374:{n:"BrtBeginMdxSet"},375:{n:"BrtEndMdxSet"},376:{n:"BrtBeginMdxMbrProp"},377:{n:"BrtEndMdxMbrProp"},378:{n:"BrtBeginMdxKPI"},379:{n:"BrtEndMdxKPI"},380:{n:"BrtBeginEsstr"},381:{n:"BrtEndEsstr"},382:{n:"BrtBeginPRFItem"},383:{n:"BrtEndPRFItem"},384:{n:"BrtBeginPivotCacheIDs"},385:{n:"BrtEndPivotCacheIDs"},386:{n:"BrtBeginPivotCacheID"},387:{n:"BrtEndPivotCacheID"},388:{n:"BrtBeginISXVIs"},389:{n:"BrtEndISXVIs"},390:{n:"BrtBeginColInfos"},391:{n:"BrtEndColInfos"},392:{n:"BrtBeginRwBrk"},393:{n:"BrtEndRwBrk"},394:{n:"BrtBeginColBrk"},395:{n:"BrtEndColBrk"},396:{n:"BrtBrk"},397:{n:"BrtUserBookView"},398:{n:"BrtInfo"},399:{n:"BrtCUsr"},400:{n:"BrtUsr"},401:{n:"BrtBeginUsers"},403:{n:"BrtEOF"},404:{n:"BrtUCR"},405:{n:"BrtRRInsDel"},406:{n:"BrtRREndInsDel"},407:{n:"BrtRRMove"},408:{n:"BrtRREndMove"},409:{n:"BrtRRChgCell"},410:{n:"BrtRREndChgCell"},411:{n:"BrtRRHeader"},412:{n:"BrtRRUserView"},413:{n:"BrtRRRenSheet"},414:{n:"BrtRRInsertSh"},415:{n:"BrtRRDefName"},416:{n:"BrtRRNote"},417:{n:"BrtRRConflict"},418:{n:"BrtRRTQSIF"},419:{n:"BrtRRFormat"},420:{n:"BrtRREndFormat"},421:{n:"BrtRRAutoFmt"},422:{n:"BrtBeginUserShViews"},423:{n:"BrtBeginUserShView"},424:{n:"BrtEndUserShView"},425:{n:"BrtEndUserShViews"},426:{n:"BrtArrFmla",f:Kd},427:{n:"BrtShrFmla",f:Yd},428:{n:"BrtTable"},429:{n:"BrtBeginExtConnections"},430:{n:"BrtEndExtConnections"},431:{n:"BrtBeginPCDCalcMems"},432:{n:"BrtEndPCDCalcMems"},433:{n:"BrtBeginPCDCalcMem"},434:{n:"BrtEndPCDCalcMem"},435:{n:"BrtBeginPCDHGLevels"},436:{n:"BrtEndPCDHGLevels"},437:{n:"BrtBeginPCDHGLevel"},438:{n:"BrtEndPCDHGLevel"},439:{n:"BrtBeginPCDHGLGroups"},440:{n:"BrtEndPCDHGLGroups"},441:{n:"BrtBeginPCDHGLGroup"},442:{n:"BrtEndPCDHGLGroup"},443:{n:"BrtBeginPCDHGLGMembers"},444:{n:"BrtEndPCDHGLGMembers"},445:{n:"BrtBeginPCDHGLGMember"},446:{n:"BrtEndPCDHGLGMember"},447:{n:"BrtBeginQSI"},448:{n:"BrtEndQSI"},449:{n:"BrtBeginQSIR"},450:{n:"BrtEndQSIR"},451:{n:"BrtBeginDeletedNames"},452:{n:"BrtEndDeletedNames"},453:{n:"BrtBeginDeletedName"},454:{n:"BrtEndDeletedName"},455:{n:"BrtBeginQSIFs"},456:{n:"BrtEndQSIFs"},457:{n:"BrtBeginQSIF"},458:{n:"BrtEndQSIF"},459:{n:"BrtBeginAutoSortScope"},460:{n:"BrtEndAutoSortScope"},461:{n:"BrtBeginConditionalFormatting"},462:{n:"BrtEndConditionalFormatting"},463:{n:"BrtBeginCFRule"},464:{n:"BrtEndCFRule"},465:{n:"BrtBeginIconSet"},466:{n:"BrtEndIconSet"},467:{n:"BrtBeginDatabar"},468:{n:"BrtEndDatabar"},469:{n:"BrtBeginColorScale"},470:{n:"BrtEndColorScale"},471:{n:"BrtCFVO"},472:{n:"BrtExternValueMeta"},473:{n:"BrtBeginColorPalette"},474:{n:"BrtEndColorPalette"},475:{n:"BrtIndexedColor"},476:{n:"BrtMargins",f:Qd},477:{n:"BrtPrintOptions"},478:{n:"BrtPageSetup"},479:{n:"BrtBeginHeaderFooter"},480:{n:"BrtEndHeaderFooter"},481:{n:"BrtBeginSXCrtFormat"},482:{n:"BrtEndSXCrtFormat"},483:{n:"BrtBeginSXCrtFormats"},484:{n:"BrtEndSXCrtFormats"},485:{n:"BrtWsFmtInfo",f:sd},486:{n:"BrtBeginMgs"},487:{n:"BrtEndMGs"},488:{n:"BrtBeginMGMaps"},489:{n:"BrtEndMGMaps"},490:{n:"BrtBeginMG"},491:{n:"BrtEndMG"},492:{n:"BrtBeginMap"},493:{n:"BrtEndMap"},494:{n:"BrtHLink",f:zd},495:{n:"BrtBeginDCon"},496:{n:"BrtEndDCon"},497:{n:"BrtBeginDRefs"},498:{n:"BrtEndDRefs"},499:{n:"BrtDRef"},500:{n:"BrtBeginScenMan"},501:{n:"BrtEndScenMan"},502:{n:"BrtBeginSct"},503:{n:"BrtEndSct"},504:{n:"BrtSlc"},505:{n:"BrtBeginDXFs"},506:{n:"BrtEndDXFs"},507:{n:"BrtDXF"},508:{n:"BrtBeginTableStyles"},509:{n:"BrtEndTableStyles"},510:{n:"BrtBeginTableStyle"},511:{n:"BrtEndTableStyle"},512:{n:"BrtTableStyleElement"},513:{n:"BrtTableStyleClient"},514:{n:"BrtBeginVolDeps"},515:{n:"BrtEndVolDeps"},516:{n:"BrtBeginVolType"},517:{n:"BrtEndVolType"},518:{n:"BrtBeginVolMain"},519:{n:"BrtEndVolMain"},520:{n:"BrtBeginVolTopic"},521:{n:"BrtEndVolTopic"},522:{n:"BrtVolSubtopic"},523:{n:"BrtVolRef"},524:{n:"BrtVolNum"},525:{n:"BrtVolErr"},526:{n:"BrtVolStr"},527:{n:"BrtVolBool"},528:{n:"BrtBeginCalcChain$"},529:{n:"BrtEndCalcChain$"},530:{n:"BrtBeginSortState"},531:{n:"BrtEndSortState"},532:{n:"BrtBeginSortCond"},533:{n:"BrtEndSortCond"},534:{n:"BrtBookProtection"},535:{n:"BrtSheetProtection"},536:{n:"BrtRangeProtection"},537:{n:"BrtPhoneticInfo"},538:{n:"BrtBeginECTxtWiz"},539:{n:"BrtEndECTxtWiz"},540:{n:"BrtBeginECTWFldInfoLst"},541:{n:"BrtEndECTWFldInfoLst"},542:{n:"BrtBeginECTwFldInfo"},548:{n:"BrtFileSharing"},549:{n:"BrtOleSize"},550:{n:"BrtDrawing",f:$t},551:{n:"BrtLegacyDrawing"},552:{n:"BrtLegacyDrawingHF"},553:{n:"BrtWebOpt"},554:{n:"BrtBeginWebPubItems"},555:{n:"BrtEndWebPubItems"},556:{n:"BrtBeginWebPubItem"},557:{n:"BrtEndWebPubItem"},558:{n:"BrtBeginSXCondFmt"},559:{n:"BrtEndSXCondFmt"},560:{n:"BrtBeginSXCondFmts"},561:{n:"BrtEndSXCondFmts"},562:{n:"BrtBkHim"},564:{n:"BrtColor"},565:{n:"BrtBeginIndexedColors"},566:{n:"BrtEndIndexedColors"},569:{n:"BrtBeginMRUColors"},570:{n:"BrtEndMRUColors"},572:{n:"BrtMRUColor"},573:{n:"BrtBeginDVals"},574:{n:"BrtEndDVals"},577:{n:"BrtSupNameStart"},578:{n:"BrtSupNameValueStart"},579:{n:"BrtSupNameValueEnd"},580:{n:"BrtSupNameNum"},581:{n:"BrtSupNameErr"},582:{n:"BrtSupNameSt"},583:{n:"BrtSupNameNil"},584:{n:"BrtSupNameBool"},585:{n:"BrtSupNameFmla"},586:{n:"BrtSupNameBits"},587:{n:"BrtSupNameEnd"},588:{n:"BrtEndSupBook"},589:{n:"BrtCellSmartTagProperty"},590:{n:"BrtBeginCellSmartTag"},591:{n:"BrtEndCellSmartTag"},592:{n:"BrtBeginCellSmartTags"},593:{n:"BrtEndCellSmartTags"},594:{n:"BrtBeginSmartTags"},595:{n:"BrtEndSmartTags"},596:{n:"BrtSmartTagType"},597:{n:"BrtBeginSmartTagTypes"},598:{n:"BrtEndSmartTagTypes"},599:{n:"BrtBeginSXFilters"},600:{n:"BrtEndSXFilters"},601:{n:"BrtBeginSXFILTER"},602:{n:"BrtEndSXFilter"},603:{n:"BrtBeginFills"},604:{n:"BrtEndFills"},605:{n:"BrtBeginCellWatches"},606:{n:"BrtEndCellWatches"},607:{n:"BrtCellWatch"},608:{n:"BrtBeginCRErrs"},609:{n:"BrtEndCRErrs"},610:{n:"BrtCrashRecErr"},611:{n:"BrtBeginFonts"},612:{n:"BrtEndFonts"},613:{n:"BrtBeginBorders"},614:{n:"BrtEndBorders"},615:{n:"BrtBeginFmts"},616:{n:"BrtEndFmts"},617:{n:"BrtBeginCellXFs"},618:{n:"BrtEndCellXFs"},619:{n:"BrtBeginStyles"},620:{n:"BrtEndStyles"},625:{n:"BrtBigName"},626:{n:"BrtBeginCellStyleXFs"},627:{n:"BrtEndCellStyleXFs"},628:{n:"BrtBeginComments"},629:{n:"BrtEndComments"},630:{n:"BrtBeginCommentAuthors"},631:{n:"BrtEndCommentAuthors"},632:{n:"BrtCommentAuthor",f:qo},633:{n:"BrtBeginCommentList"},634:{n:"BrtEndCommentList"},635:{n:"BrtBeginComment",f:Yo},636:{n:"BrtEndComment"},637:{n:"BrtCommentText",f:Nt},638:{n:"BrtBeginOleObjects"},639:{n:"BrtOleObject"},640:{n:"BrtEndOleObjects"},641:{n:"BrtBeginSxrules"},642:{n:"BrtEndSxRules"},643:{n:"BrtBeginActiveXControls"},644:{n:"BrtActiveX"},645:{n:"BrtEndActiveXControls"},646:{n:"BrtBeginPCDSDTCEMembersSortBy"},648:{n:"BrtBeginCellIgnoreECs"},649:{n:"BrtCellIgnoreEC"},650:{n:"BrtEndCellIgnoreECs"},651:{n:"BrtCsProp",f:Cv},652:{n:"BrtCsPageSetup"},653:{n:"BrtBeginUserCsViews"},654:{n:"BrtEndUserCsViews"},655:{n:"BrtBeginUserCsView"},656:{n:"BrtEndUserCsView"},657:{n:"BrtBeginPcdSFCIEntries"},658:{n:"BrtEndPCDSFCIEntries"},659:{n:"BrtPCDSFCIEntry"},660:{n:"BrtBeginListParts"},661:{n:"BrtListPart"},662:{n:"BrtEndListParts"},663:{n:"BrtSheetCalcProp"},664:{n:"BrtBeginFnGroup"},665:{n:"BrtFnGroup"},666:{n:"BrtEndFnGroup"},667:{n:"BrtSupAddin"},668:{n:"BrtSXTDMPOrder"},669:{n:"BrtCsProtection"},671:{n:"BrtBeginWsSortMap"},672:{n:"BrtEndWsSortMap"},673:{n:"BrtBeginRRSort"},674:{n:"BrtEndRRSort"},675:{n:"BrtRRSortItem"},676:{n:"BrtFileSharingIso"},677:{n:"BrtBookProtectionIso"},678:{n:"BrtSheetProtectionIso"},679:{n:"BrtCsProtectionIso"},680:{n:"BrtRangeProtectionIso"},681:{n:"BrtDValList"},1024:{n:"BrtRwDescent"},1025:{n:"BrtKnownFonts"},1026:{n:"BrtBeginSXTupleSet"},1027:{n:"BrtEndSXTupleSet"},1028:{n:"BrtBeginSXTupleSetHeader"},1029:{n:"BrtEndSXTupleSetHeader"},1030:{n:"BrtSXTupleSetHeaderItem"},1031:{n:"BrtBeginSXTupleSetData"},1032:{n:"BrtEndSXTupleSetData"},1033:{n:"BrtBeginSXTupleSetRow"},1034:{n:"BrtEndSXTupleSetRow"},1035:{n:"BrtSXTupleSetRowItem"},1036:{n:"BrtNameExt"},1037:{n:"BrtPCDH14"},1038:{n:"BrtBeginPCDCalcMem14"},1039:{n:"BrtEndPCDCalcMem14"},1040:{n:"BrtSXTH14"},1041:{n:"BrtBeginSparklineGroup"},1042:{n:"BrtEndSparklineGroup"},1043:{n:"BrtSparkline"},1044:{n:"BrtSXDI14"},1045:{n:"BrtWsFmtInfoEx14"},1046:{n:"BrtBeginConditionalFormatting14"},1047:{n:"BrtEndConditionalFormatting14"},1048:{n:"BrtBeginCFRule14"},1049:{n:"BrtEndCFRule14"},1050:{n:"BrtCFVO14"},1051:{n:"BrtBeginDatabar14"},1052:{n:"BrtBeginIconSet14"},1053:{n:"BrtDVal14",f:iv},1054:{n:"BrtBeginDVals14"},1055:{n:"BrtColor14"},1056:{n:"BrtBeginSparklines"},1057:{n:"BrtEndSparklines"},1058:{n:"BrtBeginSparklineGroups"},1059:{n:"BrtEndSparklineGroups"},1061:{n:"BrtSXVD14"},1062:{n:"BrtBeginSXView14"},1063:{n:"BrtEndSXView14"},1064:{n:"BrtBeginSXView16"},1065:{n:"BrtEndSXView16"},1066:{n:"BrtBeginPCD14"},1067:{n:"BrtEndPCD14"},1068:{n:"BrtBeginExtConn14"},1069:{n:"BrtEndExtConn14"},1070:{n:"BrtBeginSlicerCacheIDs"},1071:{n:"BrtEndSlicerCacheIDs"},1072:{n:"BrtBeginSlicerCacheID"},1073:{n:"BrtEndSlicerCacheID"},1075:{n:"BrtBeginSlicerCache"},1076:{n:"BrtEndSlicerCache"},1077:{n:"BrtBeginSlicerCacheDef"},1078:{n:"BrtEndSlicerCacheDef"},1079:{n:"BrtBeginSlicersEx"},1080:{n:"BrtEndSlicersEx"},1081:{n:"BrtBeginSlicerEx"},1082:{n:"BrtEndSlicerEx"},1083:{n:"BrtBeginSlicer"},1084:{n:"BrtEndSlicer"},1085:{n:"BrtSlicerCachePivotTables"},1086:{n:"BrtBeginSlicerCacheOlapImpl"},1087:{n:"BrtEndSlicerCacheOlapImpl"},1088:{n:"BrtBeginSlicerCacheLevelsData"},1089:{n:"BrtEndSlicerCacheLevelsData"},1090:{n:"BrtBeginSlicerCacheLevelData"},1091:{n:"BrtEndSlicerCacheLevelData"},1092:{n:"BrtBeginSlicerCacheSiRanges"},1093:{n:"BrtEndSlicerCacheSiRanges"},1094:{n:"BrtBeginSlicerCacheSiRange"},1095:{n:"BrtEndSlicerCacheSiRange"},1096:{n:"BrtSlicerCacheOlapItem"},1097:{n:"BrtBeginSlicerCacheSelections"},1098:{n:"BrtSlicerCacheSelection"},1099:{n:"BrtEndSlicerCacheSelections"},1100:{n:"BrtBeginSlicerCacheNative"},1101:{n:"BrtEndSlicerCacheNative"},1102:{n:"BrtSlicerCacheNativeItem"},1103:{n:"BrtRangeProtection14"},1104:{n:"BrtRangeProtectionIso14"},1105:{n:"BrtCellIgnoreEC14"},1111:{n:"BrtList14"},1112:{n:"BrtCFIcon"},1113:{n:"BrtBeginSlicerCachesPivotCacheIDs"},1114:{n:"BrtEndSlicerCachesPivotCacheIDs"},1115:{n:"BrtBeginSlicers"},1116:{n:"BrtEndSlicers"},1117:{n:"BrtWbProp14"},1118:{n:"BrtBeginSXEdit"},1119:{n:"BrtEndSXEdit"},1120:{n:"BrtBeginSXEdits"},1121:{n:"BrtEndSXEdits"},1122:{n:"BrtBeginSXChange"},1123:{n:"BrtEndSXChange"},1124:{n:"BrtBeginSXChanges"},1125:{n:"BrtEndSXChanges"},1126:{n:"BrtSXTupleItems"},1128:{n:"BrtBeginSlicerStyle"},1129:{n:"BrtEndSlicerStyle"},1130:{n:"BrtSlicerStyleElement"},1131:{n:"BrtBeginStyleSheetExt14"},1132:{n:"BrtEndStyleSheetExt14"},1133:{n:"BrtBeginSlicerCachesPivotCacheID"},1134:{n:"BrtEndSlicerCachesPivotCacheID"},1135:{n:"BrtBeginConditionalFormattings"},1136:{n:"BrtEndConditionalFormattings"},1137:{n:"BrtBeginPCDCalcMemExt"},1138:{n:"BrtEndPCDCalcMemExt"},1139:{n:"BrtBeginPCDCalcMemsExt"},1140:{n:"BrtEndPCDCalcMemsExt"},1141:{n:"BrtPCDField14"},1142:{n:"BrtBeginSlicerStyles"},1143:{n:"BrtEndSlicerStyles"},1144:{n:"BrtBeginSlicerStyleElements"},1145:{n:"BrtEndSlicerStyleElements"},1146:{n:"BrtCFRuleExt"},1147:{n:"BrtBeginSXCondFmt14"},1148:{n:"BrtEndSXCondFmt14"},1149:{n:"BrtBeginSXCondFmts14"},1150:{n:"BrtEndSXCondFmts14"},1152:{n:"BrtBeginSortCond14"},1153:{n:"BrtEndSortCond14"},1154:{n:"BrtEndDVals14"},1155:{n:"BrtEndIconSet14"},1156:{n:"BrtEndDatabar14"},1157:{n:"BrtBeginColorScale14"},1158:{n:"BrtEndColorScale14"},1159:{n:"BrtBeginSxrules14"},1160:{n:"BrtEndSxrules14"},1161:{n:"BrtBeginPRule14"},1162:{n:"BrtEndPRule14"},1163:{n:"BrtBeginPRFilters14"},1164:{n:"BrtEndPRFilters14"},1165:{n:"BrtBeginPRFilter14"},1166:{n:"BrtEndPRFilter14"},1167:{n:"BrtBeginPRFItem14"},1168:{n:"BrtEndPRFItem14"},1169:{n:"BrtBeginCellIgnoreECs14"},1170:{n:"BrtEndCellIgnoreECs14"},1171:{n:"BrtDxf14"},1172:{n:"BrtBeginDxF14s"},1173:{n:"BrtEndDxf14s"},1177:{n:"BrtFilter14"},1178:{n:"BrtBeginCustomFilters14"},1180:{n:"BrtCustomFilter14"},1181:{n:"BrtIconFilter14"},1182:{n:"BrtPivotCacheConnectionName"},2048:{n:"BrtBeginDecoupledPivotCacheIDs"},2049:{n:"BrtEndDecoupledPivotCacheIDs"},2050:{n:"BrtDecoupledPivotCacheID"},2051:{n:"BrtBeginPivotTableRefs"},2052:{n:"BrtEndPivotTableRefs"},2053:{n:"BrtPivotTableRef"},2054:{n:"BrtSlicerCacheBookPivotTables"},2055:{n:"BrtBeginSxvcells"},2056:{n:"BrtEndSxvcells"},2057:{n:"BrtBeginSxRow"},2058:{n:"BrtEndSxRow"},2060:{n:"BrtPcdCalcMem15"},2067:{n:"BrtQsi15"},2068:{n:"BrtBeginWebExtensions"},2069:{n:"BrtEndWebExtensions"},2070:{n:"BrtWebExtension"},2071:{n:"BrtAbsPath15"},2072:{n:"BrtBeginPivotTableUISettings"},2073:{n:"BrtEndPivotTableUISettings"},2075:{n:"BrtTableSlicerCacheIDs"},2076:{n:"BrtTableSlicerCacheID"},2077:{n:"BrtBeginTableSlicerCache"},2078:{n:"BrtEndTableSlicerCache"},2079:{n:"BrtSxFilter15"},2080:{n:"BrtBeginTimelineCachePivotCacheIDs"},2081:{n:"BrtEndTimelineCachePivotCacheIDs"},2082:{n:"BrtTimelineCachePivotCacheID"},2083:{n:"BrtBeginTimelineCacheIDs"},2084:{n:"BrtEndTimelineCacheIDs"},2085:{n:"BrtBeginTimelineCacheID"},2086:{n:"BrtEndTimelineCacheID"},2087:{n:"BrtBeginTimelinesEx"},2088:{n:"BrtEndTimelinesEx"},2089:{n:"BrtBeginTimelineEx"},2090:{n:"BrtEndTimelineEx"},2091:{n:"BrtWorkBookPr15"},2092:{n:"BrtPCDH15"},2093:{n:"BrtBeginTimelineStyle"},2094:{n:"BrtEndTimelineStyle"},2095:{n:"BrtTimelineStyleElement"},2096:{n:"BrtBeginTimelineStylesheetExt15"},2097:{n:"BrtEndTimelineStylesheetExt15"},2098:{n:"BrtBeginTimelineStyles"},2099:{n:"BrtEndTimelineStyles"},2100:{n:"BrtBeginTimelineStyleElements"},2101:{n:"BrtEndTimelineStyleElements"},2102:{n:"BrtDxf15"},2103:{n:"BrtBeginDxfs15"},2104:{n:"brtEndDxfs15"},2105:{n:"BrtSlicerCacheHideItemsWithNoData"},2106:{n:"BrtBeginItemUniqueNames"},2107:{n:"BrtEndItemUniqueNames"},2108:{n:"BrtItemUniqueName"},2109:{n:"BrtBeginExtConn15"},2110:{n:"BrtEndExtConn15"},2111:{n:"BrtBeginOledbPr15"},2112:{n:"BrtEndOledbPr15"},2113:{n:"BrtBeginDataFeedPr15"},2114:{n:"BrtEndDataFeedPr15"},2115:{n:"BrtTextPr15"},2116:{n:"BrtRangePr15"},2117:{n:"BrtDbCommand15"},2118:{n:"BrtBeginDbTables15"},2119:{n:"BrtEndDbTables15"},2120:{n:"BrtDbTable15"},2121:{n:"BrtBeginDataModel"},2122:{n:"BrtEndDataModel"},2123:{n:"BrtBeginModelTables"},2124:{n:"BrtEndModelTables"},2125:{n:"BrtModelTable"},2126:{n:"BrtBeginModelRelationships"},2127:{n:"BrtEndModelRelationships"},2128:{n:"BrtModelRelationship"},2129:{n:"BrtBeginECTxtWiz15"},2130:{n:"BrtEndECTxtWiz15"},2131:{n:"BrtBeginECTWFldInfoLst15"},2132:{n:"BrtEndECTWFldInfoLst15"},2133:{n:"BrtBeginECTWFldInfo15"},2134:{n:"BrtFieldListActiveItem"},2135:{n:"BrtPivotCacheIdVersion"},2136:{n:"BrtSXDI15"},2137:{n:"BrtBeginModelTimeGroupings"},2138:{n:"BrtEndModelTimeGroupings"},2139:{n:"BrtBeginModelTimeGrouping"},2140:{n:"BrtEndModelTimeGrouping"},2141:{n:"BrtModelTimeGroupingCalcCol"},3072:{n:"BrtUid"},3073:{n:"BrtRevisionPtr"},5095:{n:"BrtBeginCalcFeatures"},5096:{n:"BrtEndCalcFeatures"},5097:{n:"BrtCalcFeature"},65535:{n:""}};var tm;function am(){tm=J(rm,"n");tm["BrtFRTArchID$"]=16}var nm={6:{n:"Formula",f:Qu},10:{n:"EOF",f:jn},12:{n:"CalcCount",f:qn},13:{n:"CalcMode",f:qn},14:{n:"CalcPrecision",f:Yn},15:{n:"CalcRefMode",f:Yn},16:{n:"CalcDelta",f:ra},17:{n:"CalcIter",f:Yn},18:{n:"Protect",f:Yn},19:{n:"Password",f:qn},20:{n:"Header",f:ys},21:{n:"Footer",f:ys},23:{n:"ExternSheet",f:Rs},24:{n:"Lbl",f:As},25:{n:"WinProtect",f:Yn},26:{n:"VerticalPageBreaks"},27:{n:"HorizontalPageBreaks"},28:{n:"Note",f:Ls},29:{n:"Selection"},34:{n:"Date1904",f:Yn},35:{n:"ExternName",f:_s},38:{n:"LeftMargin",f:ra},39:{n:"RightMargin",f:ra},40:{n:"TopMargin",f:ra},41:{n:"BottomMargin",f:ra},42:{n:"PrintRowCol",f:Yn},43:{n:"PrintGrid",f:Yn},47:{n:"FilePass",f:cl},49:{n:"Font",f:ts},51:{n:"PrintSize",f:qn},60:{n:"Continue"},61:{n:"Window1",f:qi},64:{n:"Backup",f:Yn},65:{n:"Pane",f:rs},66:{n:"CodePage",f:qn},77:{n:"Pls"},80:{n:"DCon"},81:{n:"DConRef"},82:{n:"DConName"},85:{n:"DefColWidth",f:qn},89:{n:"XCT"},90:{n:"CRN"},91:{n:"FileSharing"},92:{n:"WriteAccess",f:Ui},93:{n:"Obj",f:Ws},94:{n:"Uncalced"},95:{n:"CalcSaveRecalc",f:Yn},96:{n:"Template"},97:{n:"Intl"},99:{n:"ObjProtect",f:Yn},125:{n:"ColInfo",f:Zs},128:{n:"Guts",f:ws},129:{n:"WsBool",f:Hi},130:{n:"GridSet",f:qn},131:{n:"HCenter",f:Yn},132:{n:"VCenter",f:Yn},133:{n:"BoundSheet8",f:Vi},134:{n:"WriteProtect"},140:{n:"Country",f:Ks},141:{n:"HideObj",f:qn},144:{n:"Sort"},146:{n:"Palette",f:qs},151:{n:"Sync"},152:{n:"LPr"},153:{n:"DxGCol"},154:{n:"FnGroupName"},155:{n:"FilterMode"},156:{n:"BuiltInFnGroupCount",f:qn},157:{n:"AutoFilterInfo"},158:{n:"AutoFilter"},160:{n:"Scl",f:sf},161:{n:"Setup",f:rf},174:{n:"ScenMan"},175:{n:"SCENARIO"},176:{n:"SxView"},177:{n:"Sxvd"},178:{n:"SXVI"},180:{n:"SxIvd"},181:{n:"SXLI"},182:{n:"SXPI"},184:{n:"DocRoute"},185:{n:"RecipName"},189:{n:"MulRk",f:vs},190:{n:"MulBlank",f:ps},193:{n:"Mms",f:jn},197:{n:"SXDI"},198:{n:"SXDB"},199:{n:"SXFDB"},200:{n:"SXDBB"},201:{n:"SXNum"},202:{n:"SxBool",f:Yn},203:{n:"SxErr"},204:{n:"SXInt"},205:{n:"SXString"},206:{n:"SXDtr"},207:{n:"SxNil"},208:{n:"SXTbl"},209:{n:"SXTBRGIITM"},210:{n:"SxTbpg"},211:{n:"ObProj"},213:{n:"SXStreamID"},215:{n:"DBCell"},216:{n:"SXRng"},217:{n:"SxIsxoper"},218:{n:"BookBool",f:qn},220:{n:"DbOrParamQry"},221:{n:"ScenarioProtect",f:Yn},222:{n:"OleObjectSize"},224:{n:"XF",f:bs},225:{n:"InterfaceHdr",f:Mi},226:{n:"InterfaceEnd",f:jn},227:{n:"SXVS"},229:{n:"MergeCells",f:Ms},233:{n:"BkHim"},235:{n:"MsoDrawingGroup"},236:{n:"MsoDrawing"},237:{n:"MsoDrawingSelection"},239:{n:"PhoneticInfo"},240:{n:"SxRule"},241:{n:"SXEx"},242:{n:"SxFilt"},244:{n:"SxDXF"},245:{n:"SxItm"},246:{n:"SxName"},247:{n:"SxSelect"},248:{n:"SXPair"},249:{n:"SxFmla"},251:{n:"SxFormat"},252:{n:"SST",f:Gi},253:{n:"LabelSst",f:ns},255:{n:"ExtSST",f:ji},256:{n:"SXVDEx"},259:{n:"SXFormula"},290:{n:"SXDBEx"},311:{n:"RRDInsDel"},312:{n:"RRDHead"},315:{n:"RRDChgCell"},317:{n:"RRTabId",f:Zn},318:{n:"RRDRenSheet"},319:{n:"RRSort"},320:{n:"RRDMove"},330:{n:"RRFormat"},331:{n:"RRAutoFmt"},333:{n:"RRInsertSh"},334:{n:"RRDMoveBegin"},335:{n:"RRDMoveEnd"},336:{n:"RRDInsDelBegin"},337:{n:"RRDInsDelEnd"},338:{n:"RRDConflict"},339:{n:"RRDDefName"},340:{n:"RRDRstEtxp"},351:{n:"LRng"},352:{n:"UsesELFs",f:Yn},353:{n:"DSF",f:jn},401:{n:"CUsr"},402:{n:"CbUsr"},403:{n:"UsrInfo"},404:{n:"UsrExcl"},405:{n:"FileLock"},406:{n:"RRDInfo"},407:{n:"BCUsrs"},408:{n:"UsrChk"},425:{n:"UserBView"},426:{n:"UserSViewBegin"},427:{n:"UserSViewEnd"},428:{n:"RRDUserView"},429:{n:"Qsi"},430:{n:"SupBook",f:Ts},431:{n:"Prot4Rev",f:Yn},432:{n:"CondFmt"},433:{n:"CF"},434:{n:"DVal"},437:{n:"DConBin"},438:{n:"TxO",f:Xs},439:{n:"RefreshAll",f:Yn},440:{n:"HLink",f:Gs},441:{n:"Lel"},442:{n:"CodeName",f:si},443:{n:"SXFDBType"},444:{n:"Prot4RevPass",f:qn},445:{n:"ObNoMacros"},446:{n:"Dv"},448:{n:"Excel9File",f:jn},449:{n:"RecalcId",f:Yi,r:2},450:{n:"EntExU2",f:jn},512:{n:"Dimensions",f:us},513:{n:"Blank",f:nf},515:{n:"Number",f:Bs},516:{n:"Label",f:ss},517:{n:"BoolErr",f:Es},519:{n:"String",f:ff},520:{n:"Row",f:$i},523:{n:"Index"},545:{n:"Array",f:Ps},549:{n:"DefaultRowHeight",f:Ji},566:{n:"Table"},574:{n:"Window2",f:Zi},638:{n:"RK",f:ds},659:{n:"Style"},1048:{n:"BigName"},1054:{n:"Format",f:ls},1084:{n:"ContinueBigName"},1212:{n:"ShrFmla",f:Ds},2048:{n:"HLinkTooltip",f:js},2049:{n:"WebPub"},2050:{n:"QsiSXTag"},2051:{n:"DBQueryExt"},2052:{n:"ExtString"},2053:{n:"TxtQry"},2054:{n:"Qsir"},2055:{n:"Qsif"},2056:{n:"RRDTQSIF"},2057:{n:"BOF",f:Ni},2058:{n:"OleDbConn"},2059:{n:"WOpt"},2060:{n:"SXViewEx"},2061:{n:"SXTH"},2062:{n:"SXPIEx"},2063:{n:"SXVDTEx"},2064:{n:"SXViewEx9"},2066:{n:"ContinueFrt"},2067:{n:"RealTimeData"},2128:{n:"ChartFrtInfo"},2129:{n:"FrtWrapper"},2130:{n:"StartBlock"},2131:{n:"EndBlock"},2132:{n:"StartObject"},2133:{n:"EndObject"},2134:{n:"CatLab"},2135:{n:"YMult"},2136:{n:"SXViewLink"},2137:{n:"PivotChartBits"},2138:{n:"FrtFontList"},2146:{n:"SheetExt"},2147:{n:"BookExt",r:12},2148:{n:"SXAddl"},2149:{n:"CrErr"},2150:{n:"HFPicture"},2151:{n:"FeatHdr",f:jn},2152:{n:"Feat"},2154:{n:"DataLabExt"},2155:{n:"DataLabExtContents"},2156:{n:"CellWatch"},2161:{n:"FeatHdr11"},2162:{n:"Feature11"},2164:{n:"DropDownObjIds"},2165:{n:"ContinueFrt11"},2166:{n:"DConn"},2167:{n:"List12"},2168:{n:"Feature12"},2169:{n:"CondFmt12"},2170:{n:"CF12"},2171:{n:"CFEx"},2172:{n:"XFCRC",f:Qs,r:12},2173:{n:"XFExt",f:Oo,r:12},2174:{n:"AutoFilter12"},2175:{n:"ContinueFrt12"},2180:{n:"MDTInfo"},2181:{n:"MDXStr"},2182:{n:"MDXTuple"},2183:{n:"MDXSet"},2184:{n:"MDXProp"},2185:{n:"MDXKPI"},2186:{n:"MDB"},2187:{n:"PLV"},2188:{n:"Compat12",f:Yn,r:12},2189:{n:"DXF"},2190:{n:"TableStyles",r:12},2191:{n:"TableStyle"},2192:{n:"TableStyleElement"},2194:{n:"StyleExt"},2195:{n:"NamePublish"},2196:{n:"NameCmt",f:Is,r:12},2197:{n:"SortData"},2198:{n:"Theme",f:Ao,r:12},2199:{n:"GUIDTypeLib"},2200:{n:"FnGrp12"},2201:{n:"NameFnGrp12"},2202:{n:"MTRSettings",f:Os,r:12},2203:{n:"CompressPictures",f:jn},2204:{n:"HeaderFooter"},2205:{n:"CrtLayout12"},2206:{n:"CrtMlFrt"},2207:{n:"CrtMlFrtContinue"},2211:{n:"ForceFullCalculation",f:Ki},2212:{n:"ShapePropsStream"},2213:{n:"TextPropsStream"},2214:{n:"RichTextStream"},2215:{n:"CrtLayout12A"},4097:{n:"Units"},4098:{n:"Chart"},4099:{n:"Series"},4102:{n:"DataFormat"},4103:{n:"LineFormat"},4105:{n:"MarkerFormat"},4106:{n:"AreaFormat"},4107:{n:"PieFormat"},4108:{n:"AttachedLabel"},4109:{n:"SeriesText"},4116:{n:"ChartFormat"},4117:{n:"Legend"},4118:{n:"SeriesList"},4119:{n:"Bar"},4120:{n:"Line"},4121:{n:"Pie"},4122:{n:"Area"},4123:{n:"Scatter"},4124:{n:"CrtLine"},4125:{n:"Axis"},4126:{n:"Tick"},4127:{n:"ValueRange"},4128:{n:"CatSerRange"},4129:{n:"AxisLine"},4130:{n:"CrtLink"},4132:{n:"DefaultText"},4133:{n:"Text"},4134:{n:"FontX",f:qn},4135:{n:"ObjectLink"},4146:{n:"Frame"},4147:{n:"Begin"},4148:{n:"End"},4149:{n:"PlotArea"},4154:{n:"Chart3d"},4156:{n:"PicF"},4157:{n:"DropBar"},4158:{n:"Radar"},4159:{n:"Surf"},4160:{n:"RadarArea"},4161:{n:"AxisParent"},4163:{n:"LegendException"},4164:{n:"ShtProps",f:tf},4165:{n:"SerToCrt"},4166:{n:"AxesUsed"},4168:{n:"SBaseRef"},4170:{n:"SerParent"},4171:{n:"SerAuxTrend"},4174:{n:"IFmtRecord"},4175:{n:"Pos"},4176:{n:"AlRuns"},4177:{n:"BRAI"},4187:{n:"SerAuxErrBar"},4188:{n:"ClrtClient",f:Js},4189:{n:"SerFmt"},4191:{n:"Chart3DBarShape"},4192:{n:"Fbi"},4193:{n:"BopPop"},4194:{n:"AxcExt"},4195:{n:"Dat"},4196:{n:"PlotGrowth"},4197:{n:"SIIndex"},4198:{n:"GelFrame"},4199:{n:"BopPopCustom"},4200:{n:"Fbi2"},0:{n:"Dimensions",f:us},1:{n:"BIFF2BLANK"},2:{n:"BIFF2INT",f:hf},3:{n:"BIFF2NUM",f:cf},4:{n:"BIFF2STR",f:of},5:{n:"BoolErr",f:Es},7:{n:"String",f:vf},8:{n:"BIFF2ROW"},9:{n:"BOF",f:Ni},11:{n:"Index"},22:{n:"ExternCount",f:qn},30:{n:"BIFF2FORMAT",f:cs},31:{n:"BIFF2FMTCNT"},32:{n:"BIFF2COLINFO"},33:{n:"Array",f:Ps},36:{n:"COLWIDTH"},37:{n:"DefaultRowHeight",f:Ji},50:{n:"BIFF2FONTXTRA",f:pf},62:{n:"BIFF2WINDOW2"},52:{n:"DDEObjName"},67:{n:"BIFF2XF"},68:{n:"BIFF2XFINDEX",f:qn},69:{n:"BIFF2FONTCLR"},86:{n:"BIFF4FMTCNT"},126:{n:"RK"},127:{n:"ImData",f:lf},135:{n:"Addin"},136:{n:"Edg"},137:{n:"Pub"},145:{n:"Sub"},148:{n:"LHRecord"},149:{n:"LHNGraph"},150:{n:"Sound"},169:{n:"CoordList"},171:{n:"GCW"},188:{n:"ShrFmla"},191:{n:"ToolbarHdr"},192:{n:"ToolbarEnd"},194:{n:"AddMenu"},195:{n:"DelMenu"},214:{n:"RString",f:mf},223:{n:"UDDesc"},234:{n:"TabIdConf"},354:{n:"XL5Modify"},421:{n:"FileSharing2"},518:{n:"Formula",f:Qu},521:{n:"BOF",f:Ni},536:{n:"Lbl",f:As},547:{n:"ExternName",f:_s},561:{n:"Font"},579:{n:"BIFF3XF"},1030:{n:"Formula",f:Qu},1033:{n:"BOF",f:Ni},1091:{n:"BIFF4XF"},2157:{n:"FeatInfo"},2163:{n:"FeatInfo11"},2177:{n:"SXAddl12"},2240:{n:"AutoWebPub"},2241:{n:"ListObj"},2242:{n:"ListField"},2243:{n:"ListDV"},2244:{n:"ListCondFmt"},2245:{n:"ListCF"},2246:{n:"FMQry"},2247:{n:"FMSQry"},2248:{n:"PLV"},2249:{n:"LnExt"},2250:{n:"MkrExt"},2251:{n:"CrtCoopt"},2262:{n:"FRTArchId$",r:12},29282:{}};var im=J(nm,"n");function sm(e,r,t,a){var n=typeof r=="number"?r:+r||+im[r];if(isNaN(n))return;var i=a||(t||[]).length||0;var s=e.next(4);s._W(2,n);s._W(2,i);if(i>0&&Mr(t))e.push(t)}function fm(e,r,t,a){var n=a||(t||[]).length||0;if(n<=8224)return sm(e,r,t,n);var i=+r||+im[r];if(isNaN(i))return;var s=t.parts||[],f=0;var l=0,o=0;while(o+(s[f]||8224)<=8224){o+=s[f]||8224;f++}var c=e.next(4);c._W(2,i);c._W(2,o);e.push(t.slice(l,l+o));l+=o;while(l=0&&n<65536)sm(e,2,df(t,a,n));else sm(e,3,uf(t,a,n));return;case"b":;case"e":sm(e,5,om(t,a,r.v,r.t));return;case"s":;case"str":sm(e,4,cm(t,a,(r.v||"").slice(0,255)));return;}sm(e,1,lm(null,t,a)); -}function hm(e,r,t,a){var n=Array.isArray(r);var i=Bt(r["!ref"]||"A1"),s,f="",l=[];if(i.e.c>255||i.e.r>16383){if(a.WTF)throw new Error("Range "+(r["!ref"]||"A1")+" exceeds format limit A1:IV16384");i.e.c=Math.min(i.e.c,255);i.e.r=Math.min(i.e.c,16383);s=St(i)}for(var o=i.s.r;o<=i.e.r;++o){f=ut(o);for(var c=i.s.c;c<=i.e.c;++c){if(o===i.s.r)l[c]=pt(c);s=l[c]+f;var u=n?(r[o]||[])[c]:r[s];if(!u)continue;um(e,u,o,c,a)}}}function dm(e,r){var t=r||{};if(m!=null&&t.dense==null)t.dense=m;var a=tt();var n=0;for(var i=0;i255||d.e.r>=v){if(r.WTF)throw new Error("Range "+(i["!ref"]||"A1")+" exceeds format limit A1:IV16384");d.e.c=Math.min(d.e.c,255);d.e.r=Math.min(d.e.c,v-1)}sm(a,2057,Li(t,16,r));sm(a,"CalcMode",Qn(1));sm(a,"CalcCount",Qn(100));sm(a,"CalcRefMode",Jn(true));sm(a,"CalcIter",Jn(false));sm(a,"CalcDelta",ta(.001));sm(a,"CalcSaveRecalc",Jn(true));sm(a,"PrintRowCol",Jn(false));sm(a,"PrintGrid",Jn(false));sm(a,"GridSet",Qn(1));sm(a,"Guts",ks([0,0]));sm(a,"HCenter",Jn(false));sm(a,"VCenter",Jn(false));if(o)wm(a,i["!cols"],i);sm(a,512,hs(d,r));if(o)i["!links"]=[];for(var p=d.s.r;p<=d.e.r;++p){u=ut(p);for(var m=d.s.c;m<=d.e.c;++m){if(p===d.s.r)h[m]=pt(m);c=h[m]+u;var b=l?(i[p]||[])[m]:i[c];if(!b)continue;km(a,b,p,m,r);if(o&&b.l)i["!links"].push([c,b.l])}}var g=f.CodeName||f.name||n;if(o)sm(a,"Window2",es((s.Views||[])[0]));if(o&&(i["!merges"]||[]).length)sm(a,"MergeCells",Us(i["!merges"]));if(o)gm(a,i);sm(a,"CodeName",li(g,r));if(o)mm(a,i);sm(a,"EOF");return a.end()}function Sm(e,r,t){var a=tt();var n=(e||{}).Workbook||{};var i=n.Sheets||[];var s=n.WBProps||{};var f=t.biff==8,l=t.biff==5;sm(a,2057,Li(e,5,t));if(t.bookType=="xla")sm(a,"Addin");sm(a,"InterfaceHdr",f?Qn(1200):null);sm(a,"Mms",$n(2));if(l)sm(a,"ToolbarHdr");if(l)sm(a,"ToolbarEnd");sm(a,"InterfaceEnd");sm(a,"WriteAccess",Wi("SheetJS",t));sm(a,"CodePage",Qn(f?1200:1252));if(f)sm(a,"DSF",Qn(0));if(f)sm(a,"Excel9File");sm(a,"RRTabId",af(e.SheetNames.length));if(f&&e.vbaraw)sm(a,"ObProj");if(f&&e.vbaraw){var o=s.CodeName||"ThisWorkbook";sm(a,"CodeName",li(o,t))}sm(a,"BuiltInFnGroupCount",Qn(17));sm(a,"WinProtect",Jn(false));sm(a,"Protect",Jn(false));sm(a,"Password",Qn(0));if(f)sm(a,"Prot4Rev",Jn(false));if(f)sm(a,"Prot4RevPass",Qn(0));sm(a,"Window1",Qi(t));sm(a,"Backup",Jn(false));sm(a,"HideObj",Qn(0));sm(a,"Date1904",Jn(Pv(e)=="true"));sm(a,"CalcPrecision",Jn(true));if(f)sm(a,"RefreshAll",Jn(false));sm(a,"BookBool",Qn(0));vm(a,e,t);pm(a,e.SSF,t);bm(a,t);if(f)sm(a,"UsesELFs",Jn(false));var c=a.end();var u=tt();if(f)sm(u,"Country",Ys());if(f&&t.Strings)fm(u,"SST",zi(t.Strings,t));sm(u,"EOF");var h=u.end();var d=tt();var v=0,p=0;for(p=0;p255){if(typeof console!="undefined"&&console.error)console.error("Worksheet '"+e.SheetNames[t]+"' extends beyond column IV (255). Data may be lost.")}}var i=r||{};switch(i.biff||2){case 8:;case 5:return Bm(e,r);case 4:;case 3:;case 2:return dm(e,r);}throw new Error("invalid type "+i.bookType+" for BIFF")}var ym=function(){function e(e,r){var t=r||{};if(m!=null&&t.dense==null)t.dense=m;var a=t.dense?[]:{};e=e.replace(//g,"");var n=e.match(/");var i=e.match(/<\/table/i);var s=n.index,f=i&&i.index||e.length;var l=be(e.slice(s,f),/(:?]*>)/i,"");var o=-1,c=0,u=0,h=0;var d={s:{r:1e7,c:1e7},e:{r:0,c:0}};var v=[];for(s=0;s/i);for(f=0;f"))>-1)k=k.slice(E+1);for(var S=0;S")));h=C.colspan?+C.colspan:1;if((u=+C.rowspan)>1||h>1)v.push({s:{r:o,c:c},e:{r:o+(u||1)-1,c:c+h-1}});var y=C.t||C["data-t"]||"";if(!k.length){c+=h;continue}k=ar(k);if(d.s.r>o)d.s.r=o;if(d.e.rc)d.s.c=c;if(d.e.c[\s\S]*?<\/table>/gi);if(!a||a.length==0)throw new Error("Invalid HTML: could not find
");if(a.length==1)return Tt(e(a[0],t),t);var n=Wb.book_new();a.forEach(function(r,a){Wb.book_append_sheet(n,e(r,t),"Sheet"+(a+1))});return n}function t(e,r,t,a){var n=e["!merges"]||[];var i=[];for(var s=r.s.c;s<=r.e.c;++s){var f=0,l=0;for(var o=0;ot||n[o].s.c>s)continue;if(n[o].e.r1)d.rowspan=f;if(l>1)d.colspan=l;if(a.editable)h=''+h+"";else if(u){d["data-t"]=u&&u.t||"z";if(u.v!=null)d["data-v"]=u.v;if(u.z!=null)d["data-z"]=u.z;if(u.l&&(u.l.Target||"#").charAt(0)!="#")h=''+h+""}d.id=(a.id||"sjs")+"-"+c;i.push(ur("td",h,d))}var v="";return v+i.join("")+""}function a(e,r,t){var a=[];return a.join("")+""}var n='SheetJS Table Export';var i="";function s(e,r){var s=r||{};var f=s.header!=null?s.header:n;var l=s.footer!=null?s.footer:i;var o=[f];var c=Et(e["!ref"]);s.dense=Array.isArray(e);o.push(a(e,c,s));for(var u=c.s.r;u<=c.e.r;++u)o.push(t(e,c,u,s));o.push("
"+l);return o.join("")}return{to_workbook:r,to_sheet:e,_row:t,BEGIN:n,END:i,_preamble:a,from_sheet:s}}();function Tm(e,r,t){var a=t||{};if(m!=null)a.dense=m;var n=0,i=0;if(a.origin!=null){if(typeof a.origin=="number")n=a.origin;else{var s=typeof a.origin=="string"?wt(a.origin):a.origin;n=s.r;i=s.c}}var f=r.getElementsByTagName("tr");var l=Math.min(a.sheetRows||1e7,f.length);var o={s:{r:0,c:0},e:{r:n,c:i}};if(e["!ref"]){var c=Et(e["!ref"]);o.s.r=Math.min(o.s.r,c.s.r);o.s.c=Math.min(o.s.c,c.s.c);o.e.r=Math.max(o.e.r,c.e.r);o.e.c=Math.max(o.e.c,c.e.c);if(n==-1)o.e.r=n=c.e.r+1}var u=[],h=0;var d=e["!rows"]||(e["!rows"]=[]);var v=0,p=0,b=0,g=0,w=0,k=0;if(!e["!cols"])e["!cols"]=[];for(;v1||k>1)u.push({s:{r:p+n,c:g+i},e:{r:p+n+(w||1)-1,c:g+i+(k||1)-1}});var _={t:"s",v:C};var x=B.getAttribute("data-t")||B.getAttribute("t")||"";if(C!=null){if(C.length==0)_.t=x||"z";else if(a.raw||C.trim().length==0||x=="s"){}else if(C==="TRUE")_={t:"b",v:true};else if(C==="FALSE")_={t:"b",v:false};else if(!isNaN(de(C)))_={t:"n",v:de(C)};else if(!isNaN(pe(C).getDate())){_={t:"d",v:oe(C)};if(!a.cellDates)_={t:"n",v:re(_.v)};_.z=a.dateNF||P._table[14]}}if(_.z===undefined&&y!=null)_.z=y;var A="",R=B.getElementsByTagName("A");if(R&&R.length)for(var F=0;F=l)e["!fullref"]=St((o.e.r=f.length-v+p-1+n,o));return e}function _m(e,r){var t=r||{};var a=t.dense?[]:{};return Tm(a,e,r)}function xm(e,r){return Tt(_m(e,r),r)}function Am(e){var r="";var t=Rm(e);if(t)r=t(e).getPropertyValue("display");if(!r)r=e.style&&e.style.display;return r==="none"}function Rm(e){if(e.ownerDocument.defaultView&&typeof e.ownerDocument.defaultView.getComputedStyle==="function")return e.ownerDocument.defaultView.getComputedStyle;if(typeof getComputedStyle==="function")return getComputedStyle;return null}var Fm=function(){var e=function(e){var r=e.replace(/[\t\r\n]/g," ").trim().replace(/ +/g," ").replace(//g," ").replace(//g,function(e,r){return Array(parseInt(r,10)+1).join(" ")}).replace(/]*\/>/g,"\t").replace(//g,"\n");var t=We(r.replace(/<[^>]*>/g,""));return[t]};var r={day:["d","dd"],month:["m","mm"],year:["y","yy"],hours:["h","hh"],minutes:["m","mm"],seconds:["s","ss"],"am-pm":["A/P","AM/PM"],"day-of-week":["ddd","dddd"],era:["e","ee"],quarter:["\\Qm",'m\\"th quarter"']};return function t(a,n){var i=n||{};if(m!=null&&i.dense==null)i.dense=m;var s=xp(a);var f=[],l;var o;var c={name:""},u="",h=0;var d;var v;var p={},b=[];var g=i.dense?[]:{};var w,k;var E={value:""};var S="",B=0,C;var y=[];var T=-1,_=-1,x={s:{r:1e6,c:1e7},e:{r:0,c:0}};var A=0;var R={};var F=[],I={},D=0,P=0;var O=[],N=1,L=1;var M=[];var U={Names:[]};var W={};var H=["",""];var V=[],X={};var G="",z=0;var j=false,$=false;var K=0;Ap.lastIndex=0;s=s.replace(//gm,"").replace(//gm,"");while(w=Ap.exec(s))switch(w[3]=w[3].replace(/_.*$/,"")){case"table":;case"工作表":if(w[1]==="/"){if(x.e.c>=x.s.c&&x.e.r>=x.s.r)g["!ref"]=St(x);else g["!ref"]="A1:A1";if(i.sheetRows>0&&i.sheetRows<=x.e.r){g["!fullref"]=g["!ref"];x.e.r=i.sheetRows-1;g["!ref"]=St(x)}if(F.length)g["!merges"]=F;if(O.length)g["!rows"]=O;d.name=d["名称"]||d.name;if(typeof JSON!=="undefined")JSON.stringify(d);b.push(d.name);p[d.name]=g;$=false}else if(w[0].charAt(w[0].length-2)!=="/"){d=Ne(w[0],false);T=_=-1;x.s.r=x.s.c=1e7;x.e.r=x.e.c=0;g=i.dense?[]:{};F=[];O=[];$=true}break;case"table-row-group":if(w[1]==="/")--A;else++A;break;case"table-row":;case"行":if(w[1]==="/"){T+=N;N=1;break}v=Ne(w[0],false);if(v["行号"])T=v["行号"]-1;else if(T==-1)T=0;N=+v["number-rows-repeated"]||1;if(N<10)for(K=0;K0)O[T+K]={level:A};_=-1;break;case"covered-table-cell":if(w[1]!=="/")++_;if(i.sheetStubs){if(i.dense){if(!g[T])g[T]=[];g[T][_]={t:"z"}}else g[kt({r:T,c:_})]={t:"z"}}S="";y=[];break;case"table-cell":;case"数据":if(w[0].charAt(w[0].length-2)==="/"){++_;E=Ne(w[0],false);L=parseInt(E["number-columns-repeated"]||"1",10);k={t:"z",v:null};if(E.formula&&i.cellFormula!=false)k.f=lh(We(E.formula));if((E["数据类型"]||E["value-type"])=="string"){k.t="s";k.v=We(E["string-value"]||"");if(i.dense){if(!g[T])g[T]=[];g[T][_]=k}else{g[kt({r:T,c:_})]=k}}_+=L-1}else if(w[1]!=="/"){++_;S="";B=0;y=[];L=1;var Y=N?T+N-1:T;if(_>x.e.c)x.e.c=_;if(_x.e.r)x.e.r=Y;E=Ne(w[0],false);V=[];X={};k={t:E["数据类型"]||E["value-type"],v:null};if(i.cellFormula){if(E.formula)E.formula=We(E.formula);if(E["number-matrix-columns-spanned"]&&E["number-matrix-rows-spanned"]){D=parseInt(E["number-matrix-rows-spanned"],10)||0;P=parseInt(E["number-matrix-columns-spanned"],10)||0;I={s:{r:T,c:_},e:{r:T+D-1,c:_+P-1}};k.F=St(I);M.push([I,k.F])}if(E.formula)k.f=lh(E.formula);else for(K=0;K=M[K][0].s.r&&T<=M[K][0].e.r)if(_>=M[K][0].s.c&&_<=M[K][0].e.c)k.F=M[K][1]}if(E["number-columns-spanned"]||E["number-rows-spanned"]){D=parseInt(E["number-rows-spanned"],10)||0;P=parseInt(E["number-columns-spanned"],10)||0;I={s:{r:T,c:_},e:{r:T+D-1,c:_+P-1}};F.push(I)}if(E["number-columns-repeated"])L=parseInt(E["number-columns-repeated"],10);switch(k.t){case"boolean":k.t="b";k.v=Je(E["boolean-value"]);break;case"float":k.t="n";k.v=parseFloat(E.value);break;case"percentage":k.t="n";k.v=parseFloat(E.value);break;case"currency":k.t="n";k.v=parseFloat(E.value);break;case"date":k.t="d";k.v=oe(E["date-value"]);if(!i.cellDates){k.t="n";k.v=re(k.v)}k.z="m/d/yy";break;case"time":k.t="n";k.v=se(E["time-value"])/86400;if(i.cellDates){k.t="d";k.v=ie(k.v)}k.z="HH:MM:SS";break;case"number":k.t="n";k.v=parseFloat(E["数据数值"]);break;default:if(k.t==="string"||k.t==="text"||!k.t){k.t="s";if(E["string-value"]!=null){S=We(E["string-value"]);y=[]}}else throw new Error("Unsupported value type "+k.t);}}else{j=false;if(k.t==="s"){k.v=S||"";if(y.length)k.R=y;j=B==0}if(W.Target)k.l=W;if(V.length>0){k.c=V;V=[]}if(S&&i.cellText!==false)k.w=S;if(j){k.t="z";delete k.v}if(!j||i.sheetStubs){if(!(i.sheetRows&&i.sheetRows<=T)){for(var J=0;J0)g[T+J][_+L]=ue(k)}else{g[kt({r:T+J,c:_})]=k;while(--L>0)g[kt({r:T+J,c:_+L})]=ue(k)}if(x.e.c<=_)x.e.c=_}}}L=parseInt(E["number-columns-repeated"]||"1",10);_+=L-1;L=0;k={};S="";y=[]}W={};break;case"document":;case"document-content":;case"电子表格文档":;case"spreadsheet":;case"主体":;case"scripts":;case"styles":;case"font-face-decls":;case"master-styles":if(w[1]==="/"){if((l=f.pop())[0]!==w[3])throw"Bad state: "+l}else if(w[0].charAt(w[0].length-2)!=="/")f.push([w[3],true]);break;case"annotation":if(w[1]==="/"){if((l=f.pop())[0]!==w[3])throw"Bad state: "+l;X.t=S;if(y.length)X.R=y;X.a=G;V.push(X)}else if(w[0].charAt(w[0].length-2)!=="/"){f.push([w[3],false])}G="";z=0;S="";B=0;y=[];break;case"creator":if(w[1]==="/"){G=s.slice(z,w.index)}else z=w.index+w[0].length;break;case"meta":;case"元数据":;case"settings":;case"config-item-set":;case"config-item-map-indexed":;case"config-item-map-entry":;case"config-item-map-named":;case"shapes":;case"frame":;case"text-box":;case"image":;case"data-pilot-tables":;case"list-style":;case"form":;case"dde-links":;case"event-listeners":;case"chart":if(w[1]==="/"){if((l=f.pop())[0]!==w[3])throw"Bad state: "+l}else if(w[0].charAt(w[0].length-2)!=="/")f.push([w[3],false]);S="";B=0;y=[];break;case"scientific-number":break;case"currency-symbol":break;case"currency-style":break;case"number-style":;case"percentage-style":;case"date-style":;case"time-style":if(w[1]==="/"){R[c.name]=u;if((l=f.pop())[0]!==w[3])throw"Bad state: "+l}else if(w[0].charAt(w[0].length-2)!=="/"){u="";c=Ne(w[0],false);f.push([w[3],true])}break;case"script":break;case"libraries":break;case"automatic-styles":break;case"default-style":;case"page-layout":break;case"style":break;case"map":break;case"font-face":break;case"paragraph-properties":break;case"table-properties":break;case"table-column-properties":break;case"table-row-properties":break;case"table-cell-properties":break;case"number":switch(f[f.length-1][0]){case"time-style":;case"date-style":o=Ne(w[0],false);u+=r[w[3]][o.style==="long"?1:0];break;}break;case"fraction":break;case"day":;case"month":;case"year":;case"era":;case"day-of-week":;case"week-of-year":;case"quarter":;case"hours":;case"minutes":;case"seconds":;case"am-pm":switch(f[f.length-1][0]){case"time-style":;case"date-style":o=Ne(w[0],false);u+=r[w[3]][o.style==="long"?1:0];break;}break;case"boolean-style":break;case"boolean":break;case"text-style":break;case"text":if(w[0].slice(-2)==="/>")break;else if(w[1]==="/")switch(f[f.length-1][0]){case"number-style":;case"date-style":;case"time-style":u+=s.slice(h,w.index);break;}else h=w.index+w[0].length;break;case"named-range":o=Ne(w[0],false);H=ch(o["cell-range-address"]);var q={Name:o.name,Ref:H[0]+"!"+H[1]};if($)q.Sheet=b.length;U.Names.push(q);break;case"text-content":break;case"text-properties":break;case"embedded-text":break;case"body":;case"电子表格":break;case"forms":break;case"table-column":break;case"table-header-rows":break;case"table-rows":break;case"table-column-group":break;case"table-header-columns":break;case"table-columns":break;case"null-date":break;case"graphic-properties":break;case"calculation-settings":break;case"named-expressions":break;case"label-range":break;case"label-ranges":break;case"named-expression":break;case"sort":break;case"sort-by":break;case"sort-groups":break;case"tab":break;case"line-break":break;case"span":break;case"p":;case"文本串":if(["master-styles"].indexOf(f[f.length-1][0])>-1)break;if(w[1]==="/"&&(!E||!E["string-value"])){var Q=e(s.slice(B,w.index),C);S=(S.length>0?S+"\n":"")+Q[0]}else{C=Ne(w[0],false);B=w.index+w[0].length}break;case"s":break;case"database-range":if(w[1]==="/")break;try{H=ch(Ne(w[0])["target-range-address"]);p[H[0]]["!autofilter"]={ref:H[1]}}catch(Z){}break;case"date":break;case"object":break;case"title":;case"标题":break;case"desc":break;case"binary-data":break;case"table-source":break;case"scenario":break;case"iteration":break;case"content-validations":break;case"content-validation":break;case"help-message":break;case"error-message":break;case"database-ranges":break;case"filter":break;case"filter-and":break;case"filter-or":break;case"filter-condition":break;case"list-level-style-bullet":break;case"list-level-style-number":break;case"list-level-properties":break;case"sender-firstname":;case"sender-lastname":;case"sender-initials":;case"sender-title":;case"sender-position":;case"sender-email":;case"sender-phone-private":;case"sender-fax":;case"sender-company":;case"sender-phone-work":;case"sender-street":;case"sender-city":;case"sender-postal-code":;case"sender-country":;case"sender-state-or-province":;case"author-name":;case"author-initials":;case"chapter":;case"file-name":;case"template-name":;case"sheet-name":break;case"event-listener":break;case"initial-creator":;case"creation-date":;case"print-date":;case"generator":;case"document-statistic":;case"user-defined":;case"editing-duration":;case"editing-cycles":break;case"config-item":break;case"page-number":break;case"page-count":break;case"time":break;case"cell-range-source":break;case"detective":break;case"operation":break;case"highlighted-range":break;case"data-pilot-table":;case"source-cell-range":;case"source-service":;case"data-pilot-field":;case"data-pilot-level":;case"data-pilot-subtotals":;case"data-pilot-subtotal":;case"data-pilot-members":;case"data-pilot-member":;case"data-pilot-display-info":;case"data-pilot-sort-info":;case"data-pilot-layout-info":;case"data-pilot-field-reference":;case"data-pilot-groups":;case"data-pilot-group":;case"data-pilot-group-member":break;case"rect":break;case"dde-connection-decls":;case"dde-connection-decl":;case"dde-link":;case"dde-source":break;case"properties":break;case"property":break;case"a":if(w[1]!=="/"){W=Ne(w[0],false);if(!W.href)break;W.Target=We(W.href);delete W.href;if(W.Target.charAt(0)=="#"&&W.Target.indexOf(".")>-1){H=ch(W.Target.slice(1));W.Target="#"+H[0]+"!"+H[1]}else if(W.Target.match(/^\.\.[\\\/]/))W.Target=W.Target.slice(3)}break;case"table-protection":break;case"data-pilot-grand-total":break;case"office-document-common-attrs":break;default:switch(w[2]){case"dc:":;case"calcext:":;case"loext:":;case"ooo:":;case"chartooo:":;case"draw:":;case"style:":;case"chart:":;case"form:":;case"uof:":;case"表:":;case"字:":break;default:if(i.WTF)throw new Error(w);};}var ee={Sheets:p,SheetNames:b,Workbook:U};if(i.bookSheets)delete ee.Sheets;return ee}}();function Im(e,r){r=r||{};if(Ee(e,"META-INF/manifest.xml"))Ja(Be(e,"META-INF/manifest.xml"),r);var t=Ce(e,"content.xml");if(!t)throw new Error("Missing content.xml in ODS / UOF file");var a=Fm(qe(t),r);if(Ee(e,"meta.xml"))a.Props=nn(Be(e,"meta.xml"));return a}function Dm(e,r){return Fm(e,r)}var Pm=function(){var e=["",'',"",'',"",'',"",""].join("");var r=""+e+"";return function t(){return Fe+r}}();var Om=function(){var e=function(e){return Xe(e).replace(/ +/g,function(e){return''}).replace(/\t/g,"").replace(/\n/g,"").replace(/^ /,"").replace(/ $/,"")};var r=" \n";var t=" \n";var a=function(a,n,i){var s=[];s.push(' \n');var f=0,l=0,o=Et(a["!ref"]||"A1");var c=a["!merges"]||[],u=0;var h=Array.isArray(a);if(a["!cols"]){for(l=0;l<=o.e.c;++l)s.push(" \n")}var d="",v=a["!rows"]||[];for(f=0;f\n")}for(;f<=o.e.r;++f){d=v[f]?' table:style-name="ro'+v[f].ods+'"':"";s.push(" \n");for(l=0;ll)continue;if(c[u].s.r>f)continue;if(c[u].e.c\n")}s.push(" \n");return s.join("")};var n=function(e,r){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 t=0;r.SheetNames.map(function(e){return r.Sheets[e]}).forEach(function(r){if(!r)return;if(r["!cols"]){for(var a=0;a\n');e.push(' \n');e.push(" \n");++t}}});var a=0;r.SheetNames.map(function(e){return r.Sheets[e]}).forEach(function(r){if(!r)return;if(r["!rows"]){for(var t=0;t\n');e.push(' \n');e.push(" \n");++a}}});e.push(' \n');e.push(' \n');e.push(" \n");e.push(' \n');e.push(" \n")};return function i(e,r){var t=[Fe];var i=cr({"xmlns:office":"urn:oasis:names:tc:opendocument:xmlns:office:1.0","xmlns:table":"urn:oasis:names:tc:opendocument:xmlns:table:1.0","xmlns:style":"urn:oasis:names:tc:opendocument:xmlns:style:1.0","xmlns:text":"urn:oasis:names:tc:opendocument:xmlns:text:1.0","xmlns:draw":"urn:oasis:names:tc:opendocument:xmlns:drawing:1.0","xmlns:fo":"urn:oasis:names:tc:opendocument:xmlns:xsl-fo-compatible:1.0","xmlns:xlink":"http://www.w3.org/1999/xlink","xmlns:dc":"http://purl.org/dc/elements/1.1/","xmlns:meta":"urn:oasis:names:tc:opendocument:xmlns:meta:1.0","xmlns:number":"urn:oasis:names:tc:opendocument:xmlns:datastyle:1.0","xmlns:presentation":"urn:oasis:names:tc:opendocument:xmlns:presentation:1.0","xmlns:svg":"urn:oasis:names:tc:opendocument:xmlns:svg-compatible:1.0","xmlns:chart":"urn:oasis:names:tc:opendocument:xmlns:chart:1.0","xmlns:dr3d":"urn:oasis:names:tc:opendocument:xmlns:dr3d:1.0","xmlns:math":"http://www.w3.org/1998/Math/MathML","xmlns:form":"urn:oasis:names:tc:opendocument:xmlns:form:1.0","xmlns:script":"urn:oasis:names:tc:opendocument:xmlns:script:1.0","xmlns:ooo":"http://openoffice.org/2004/office","xmlns:ooow":"http://openoffice.org/2004/writer","xmlns:oooc":"http://openoffice.org/2004/calc","xmlns:dom":"http://www.w3.org/2001/xml-events","xmlns:xforms":"http://www.w3.org/2002/xforms","xmlns:xsd":"http://www.w3.org/2001/XMLSchema","xmlns:xsi":"http://www.w3.org/2001/XMLSchema-instance","xmlns:sheet":"urn:oasis:names:tc:opendocument:sh33tjs:1.0","xmlns:rpt":"http://openoffice.org/2005/report","xmlns:of":"urn:oasis:names:tc:opendocument:xmlns:of:1.2","xmlns:xhtml":"http://www.w3.org/1999/xhtml","xmlns:grddl":"http://www.w3.org/2003/g/data-view#","xmlns:tableooo":"http://openoffice.org/2009/table","xmlns:drawooo":"http://openoffice.org/2010/draw","xmlns:calcext":"urn:org:documentfoundation:names:experimental:calc:xmlns:calcext:1.0","xmlns:loext":"urn:org:documentfoundation:names:experimental:office:xmlns:loext:1.0","xmlns:field":"urn:openoffice:names:experimental:ooo-ms-interop:xmlns:field:1.0","xmlns:formx":"urn:openoffice:names:experimental:ooxml-odf-interop:xmlns:form:1.0","xmlns:css3t":"http://www.w3.org/TR/css3-text/","office:version":"1.2"});var s=cr({"xmlns:config":"urn:oasis:names:tc:opendocument:xmlns:config:1.0","office:mimetype":"application/vnd.oasis.opendocument.spreadsheet"});if(r.bookType=="fods"){t.push("\n");t.push(rn().replace(/office:document-meta/g,"office:meta"))}else t.push("\n");n(t,e);t.push(" \n");t.push(" \n");for(var f=0;f!=e.SheetNames.length;++f)t.push(a(e.Sheets[e.SheetNames[f]],e,f,r));t.push(" \n");t.push(" \n");if(r.bookType=="fods")t.push("");else t.push("");return t.join("")}}();function Nm(e,r){if(r.bookType=="fods")return Om(e,r);var t=xe();var a="";var n=[];var i=[];a="mimetype";_e(t,a,"application/vnd.oasis.opendocument.spreadsheet");a="content.xml";_e(t,a,Om(e,r));n.push([a,"text/xml"]);i.push([a,"ContentFile"]);a="styles.xml";_e(t,a,Pm(e,r));n.push([a,"text/xml"]);i.push([a,"StylesFile"]);a="meta.xml";_e(t,a,Fe+rn());n.push([a,"text/xml"]);i.push([a,"MetadataFile"]);a="manifest.rdf";_e(t,a,en(i));n.push([a,"application/rdf+xml"]);a="META-INF/manifest.xml";_e(t,a,qa(n));return t}var Lm=!Object.defineProperty?void 0:function(){var e=Object.defineProperty;var r=Object.getOwnPropertyDescriptor;var t=Object.getOwnPropertyNames;var a=Object.prototype.hasOwnProperty;var n=function(r){return e(r,"__esModule",{value:true})};var i=function(r,t){for(var a in t)e(r,a,{get:t[a],enumerable:true})};var s=function(n,i,s,f){if(i&&typeof i==="object"||typeof i==="function")for(var l=t(i),o=0,c=l.length,u;o>1&1431655765;e=(e&858993459)+(e>>2&858993459);return(e+(e>>4)&252645135)*16843009>>>24};var d=function(e,r){var t=(e[r+15]&127)<<7|e[r+14]>>1;var a=e[r+14]&1;for(var n=r+13;n>=r;--n)a=a*256+e[n];return(e[r+15]&128?-a:a)*Math.pow(10,t-6176)};function v(e,r){var t=r?r[0]:0;var a=e[t]&127;e:if(e[t++]>=128){a|=(e[t]&127)<<7;if(e[t++]<128)break e;a|=(e[t]&127)<<14;if(e[t++]<128)break e;a|=(e[t]&127)<<21;if(e[t++]<128)break e;a+=(e[t]&127)*Math.pow(2,28);++t;if(e[t++]<128)break e;a+=(e[t]&127)*Math.pow(2,35);++t;if(e[t++]<128)break e;a+=(e[t]&127)*Math.pow(2,42);++t;if(e[t++]<128)break e}if(r)r[0]=t;return a}function p(e){var r=0,t=e[r]&127;e:if(e[r++]>=128){t|=(e[r]&127)<<7;if(e[r++]<128)break e;t|=(e[r]&127)<<14;if(e[r++]<128)break e;t|=(e[r]&127)<<21;if(e[r++]<128)break e;t|=(e[r]&127)<<28}return t}function m(e){var r=[],t=[0];while(t[0]=128);f=e.slice(l,t[0])}break;case 5:s=4;f=e.slice(t[0],t[0]+s);t[0]+=s;break;case 1:s=8;f=e.slice(t[0],t[0]+s);t[0]+=s;break;case 2:s=v(e,t);f=e.slice(t[0],t[0]+s);t[0]+=s;break;case 3:;case 4:;default:throw new Error("PB Type ".concat(i," for Field ").concat(n," at offset ").concat(a));}var o={offset:a,data:f,type:i};if(r[n]==null)r[n]=[o];else r[n].push(o)}return r}function b(e,r){if(!e)return[];return e.map(function(e){var t;try{return r(e.data)}catch(a){var n=(t=a.message)==null?void 0:t.match(/at offset (\d+)/);if(n)a.message=a.message.replace(/at offset (\d+)/,"at offset "+(+n[1]+e.offset));throw a}})}function g(e){var r=[];var t=0;while(t>2;if(s<60)++s;else{var f=s-59;s=r[t[0]];if(f>1)s|=r[t[0]+1]<<8;if(f>2)s|=r[t[0]+2]<<16;if(f>3)s|=r[t[0]+3]<<24;s>>>=0;s++;t[0]+=f}n.push(r.slice(t[0],t[0]+s));t[0]+=s;continue}else{var l=0,o=0;if(i==1){o=(r[t[0]]>>2&7)+4;l=(r[t[0]++]&224)<<3;l|=r[t[0]++]}else{o=(r[t[0]++]>>2)+1;if(i==2){l=r[t[0]]|r[t[0]+1]<<8;t[0]+=2}else{l=(r[t[0]]|r[t[0]+1]<<8|r[t[0]+2]<<16|r[t[0]+3]<<24)>>>0;t[0]+=4}}n=[u(n)];if(l==0)throw new Error("Invalid offset 0");if(l>n[0].length)throw new Error("Invalid offset beyond length");if(o>=l){n.push(n[0].slice(-l));o-=l;while(o>=n[n.length-1].length){n.push(n[n.length-1]);o-=n[n.length-1].length}}n.push(n[0].slice(-l,-l+o))}}var c=u(n);if(c.length!=a)throw new Error("Unexpected length: ".concat(c.length," != ").concat(a));return c}function k(e){var r=[],t=[0];while(t[0]0};break;case 7:d={t:"n",v:c};break;case 8:d={t:"e",v:0};break;case 9:{if(f>-1)d={t:"s",v:t[f]};else if(l>-1)d={t:"s",v:r[l]};else if(!isNaN(c))d={t:"n",v:c};else throw new Error("Unsupported cell type ".concat(e.slice(0,4)))}break;default:throw new Error("Unsupported cell type ".concat(e.slice(0,4)));}return d}function S(e,r,t){var a=o(e);var n=e[1];var i=a.getUint32(8,true);var s=12;var f=-1,l=-1,c=NaN,u=NaN,h=new Date(2001,0,1);if(i&1){c=d(e,s);s+=16}if(i&2){u=a.getFloat64(s,true);s+=8}if(i&4){h.setTime(h.getTime()+a.getFloat64(s,true)*1e3);s+=8}if(i&8){l=a.getUint32(s,true);s+=4}if(i&16){f=a.getUint32(s,true);s+=4}var v;switch(n){case 0:break;case 2:v={t:"n",v:c};break;case 3:v={t:"s",v:r[l]};break;case 5:v={t:"d",v:h};break;case 6:v={t:"b",v:u>0};break;case 7:v={t:"n",v:u};break;case 8:v={t:"e",v:0};break;case 9:{if(f>-1)v={t:"s",v:t[f]};else throw new Error("Unsupported cell type ".concat(n," : ").concat(i&31," : ").concat(e.slice(0,4)))}break;case 10:v={t:"n",v:c};break;default:throw new Error("Unsupported cell type ".concat(n," : ").concat(i&31," : ").concat(e.slice(0,4)));}return v}function B(e,r,t){switch(e[0]){case 3:;case 4:return E(e,r,t);case 5:return S(e,r,t);default:throw new Error("Unsupported payload version ".concat(e[0]));}}var C=function(e){var r="";for(++e;e;e=Math.floor((e-1)/26))r=String.fromCharCode((e-1)%26+65)+r;return r};var y=function(e){return"".concat(C(e.c)).concat(e.r+1)};var T=function(e){return y(e.s)+":"+y(e.e)};var x=function(){return{Sheets:{},SheetNames:[]}};var A=function(e,r,t){if(!t)for(var a=1;a<9999;++a){if(e.SheetNames.indexOf(t="Sheet ".concat(a))==-1)break}else if(e.SheetNames.indexOf(t)>-1)for(var a=1;a<9999;++a){if(e.SheetNames.indexOf("".concat(t,"_").concat(a))==-1){t="".concat(t,"_").concat(a);break}}e.SheetNames.push(t);e.Sheets[t]=r};function R(e){var r=[];e.FullPaths.forEach(function(e){if(e.match(/\.iwpv2/))throw new Error("Unsupported password protection")});e.FileIndex.forEach(function(e){if(!e.name.match(/\.iwa$/))return;var t;try{t=g(e.content)}catch(a){return console.log("?? "+e.content.length+" "+(a.message||a))}var n;try{n=k(t)}catch(a){return console.log("## "+(a.message||a))}n.forEach(function(e){r[+e.id]=e.messages})});if(!r.length)throw new Error("File has no messages");var t;r.forEach(function(e){e.forEach(function(e){var r=p(e.meta[1][0].data)>>>0;if(r==1){if(!t)t=e;else throw new Error("Document has multiple roots")}})});if(!t)throw new Error("Cannot find Document root");return U(r,t)}var F=R;function I(e){var r=m(e);return v(r[1][0].data)}function D(e,r){var t=m(r.data);var a=p(t[1][0].data);var n=t[3];var i=[];(n||[]).forEach(function(r){var t=m(r.data);var n=p(t[1][0].data)>>>0;switch(a){case 1:i[n]=c(t[3][0].data);break;case 8:{var s=e[I(t[9][0].data)][0];var f=m(s.data);var l=e[I(f[1][0].data)][0];var o=p(l.meta[1][0].data);if(o!=2001)throw new Error("2000 unexpected reference to ".concat(o));var u=m(l.data);i[n]=u[3].map(function(e){return c(e.data)}).join("")}break;}});return i}function P(e){var r,t,a,n,i,s,f,l,c,u;var h=m(e);var d=p(h[1][0].data)>>>0;var v=(t=(r=h[3])==null?void 0:r[0])==null?void 0:t.data;var b=((n=(a=h[4])==null?void 0:a[0])==null?void 0:n.data)&&o(h[4][0].data);var g=(s=(i=h[6])==null?void 0:i[0])==null?void 0:s.data;var w=((l=(f=h[7])==null?void 0:f[0])==null?void 0:l.data)&&o(h[7][0].data);var k=((u=(c=h[8])==null?void 0:c[0])==null?void 0:u.data)&&p(h[8][0].data)>0||false;var E=k?4:1;var S=[];var B=0;for(var C=0;C>>0)-1;if(i.e.c<0)throw new Error("Invalid col varint ".concat(n[7][0].data));t["!ref"]=T(i);{var s=m(n[4][0].data);var f=D(e,e[I(s[4][0].data)][0]);var l=((a=s[17])==null?void 0:a[0])?D(e,e[I(s[17][0].data)][0]):[];{var o=m(s[3][0].data);var c=[];o[1].forEach(function(r){var t=m(r.data);var a=e[I(t[2][0].data)][0];var n=p(a.meta[1][0].data);if(n!=6002)throw new Error("6001 unexpected reference to ".concat(n));c.push({id:p(t[1][0].data),ref:O(e,a)})});c.forEach(function(e){e.ref.forEach(function(e,r){e.forEach(function(e,a){var n=y({r:r,c:a});var i=B(e,f,l);if(i)t[n]=i})})})}}}function L(e,r){var t=m(r.data);var a={"!ref":"A1"};var n=e[I(t[2][0].data)];var i=p(n[0].meta[1][0].data);if(i!=6001)throw new Error("6000 unexpected reference to ".concat(i));N(e,n[0],a);return a}function M(e,r){var t;var a=m(r.data);var n={name:((t=a[1])==null?void 0:t[0])?c(a[1][0].data):"",sheets:[]};var i=b(a[2],I);i.forEach(function(r){e[r].forEach(function(r){var t=p(r.meta[1][0].data);if(t==6e3)n.sheets.push(L(e,r))})});return n}function U(e,r){var t=x();var a=m(r.data);var n=b(a[1],I);n.forEach(function(r){e[r].forEach(function(r){var a=p(r.meta[1][0].data);if(a==2){var n=M(e,r);n.sheets.forEach(function(e){A(t,e,n.name)})}})});if(t.SheetNames.length==0)throw new Error("Empty NUMBERS file");return t}return f(l)}();function Mm(e){return function r(t){for(var a=0;a!=e.length;++a){var n=e[a];if(t[n[0]]===undefined)t[n[0]]=n[1];if(n[2]==="n")t[n[0]]=Number(t[n[0]])}}}var Um=function(e){Mm([["cellNF",false],["cellHTML",true],["cellFormula",true],["cellStyles",false],["cellText",true],["cellDates",false],["sheetStubs",false],["sheetRows",0,"n"],["bookDeps",false],["bookSheets",false],["bookProps",false],["bookFiles",false],["bookVBA",false],["password",""],["WTF",false]])(e)};var Wm=Mm([["cellDates",false],["bookSST",false],["bookType","xlsx"],["compression",false],["WTF",false]]);function Hm(e){if(Va.WS.indexOf(e)>-1)return"sheet";if(Va.CS&&e==Va.CS)return"chart";if(Va.DS&&e==Va.DS)return"dialog";if(Va.MS&&e==Va.MS)return"macro";return e&&e.length?e:"sheet"}function Vm(e,r){if(!e)return 0;try{e=r.map(function a(r){if(!r.id)r.id=r.strRelID;return[r.name,e["!id"][r.id].Target,Hm(e["!id"][r.id].Type)]})}catch(t){return null}return!e||e.length===0?null:e}function Xm(e,r,t,a,n,i,s,f,l,o,c,u){try{i[a]=Ga(Ce(e,t,true),r);var h=Be(e,r);var d;switch(f){case"sheet":d=tp(h,r,n,l,i[a],o,c,u);break;case"chart":d=ap(h,r,n,l,i[a],o,c,u);if(!d||!d["!drawel"])break;var v=Re(d["!drawel"].Target,r);var p=Xa(v);var m=Vo(Ce(e,v,true),Ga(Ce(e,p,true),v));var b=Re(m,v);var g=Xa(b);d=kv(Ce(e,b,true),b,l,Ga(Ce(e,g,true),b),o,d);break;case"macro":d=np(h,r,n,l,i[a],o,c,u);break;case"dialog":d=ip(h,r,n,l,i[a],o,c,u);break;default:throw new Error("Unrecognized sheet type "+f);}s[a]=d;var w=[];if(i&&i[a])Y(i[a]).forEach(function(t){if(i[a][t].Type==Va.CMNT){var n=Re(i[a][t].Target,r);w=op(Be(e,n,true),n,l);if(!w||!w.length)return;zo(d,w)}})}catch(k){if(l.WTF)throw k}}function Gm(e){return e.charAt(0)=="/"?e.slice(1):e}function zm(e,r){O(P);r=r||{};Um(r);if(Ee(e,"META-INF/manifest.xml"))return Im(e,r);if(Ee(e,"objectdata.xml"))return Im(e,r);if(Ee(e,"Index/Document.iwa")){if(typeof Uint8Array=="undefined")throw new Error("NUMBERS file parsing requires Uint8Array support");if(typeof Lm!="undefined"){if(e.FileIndex)return Lm.parse_numbers(e);var t=X.utils.cfb_new();Te(e).forEach(function(r){_e(t,r,ye(e,r))});return Lm.parse_numbers(t)}throw new Error("Unsupported NUMBERS file")}if(!Ee(e,"[Content_Types].xml")){if(Ee(e,"index.xml.gz"))throw new Error("Unsupported NUMBERS 08 file");if(Ee(e,"index.xml"))throw new Error("Unsupported NUMBERS 09 file");throw new Error("Unsupported ZIP file")}var a=Te(e);var n=Ma(Ce(e,"[Content_Types].xml"));var i=false;var s,f;if(n.workbooks.length===0){f="xl/workbook.xml";if(Be(e,f,true))n.workbooks.push(f)}if(n.workbooks.length===0){f="xl/workbook.bin";if(!Be(e,f,true))throw new Error("Could not find workbook");n.workbooks.push(f);i=true}if(n.workbooks[0].slice(-3)=="bin")i=true;var l={};var o={};if(!r.bookSheets&&!r.bookProps){hh=[];if(n.sst)try{hh=lp(Be(e,Gm(n.sst)),n.sst,r)}catch(c){if(r.WTF)throw c}if(r.cellStyles&&n.themes.length)l=fp(Ce(e,n.themes[0].replace(/^\//,""),true)||"",n.themes[0],r);if(n.style)o=sp(Be(e,Gm(n.style)),n.style,l,r)}n.links.map(function(t){try{var a=Ga(Ce(e,Xa(Gm(t))),t);return up(Be(e,Gm(t)),a,t,r)}catch(n){}});var u=rp(Be(e,Gm(n.workbooks[0])),n.workbooks[0],r);var h={},d="";if(n.coreprops.length){d=Be(e,Gm(n.coreprops[0]),true);if(d)h=nn(d);if(n.extprops.length!==0){d=Be(e,Gm(n.extprops[0]),true);if(d)hn(d,h,r)}}var v={};if(!r.bookSheets||r.bookProps){if(n.custprops.length!==0){d=Ce(e,Gm(n.custprops[0]),true);if(d)v=mn(d,r)}}var p={};if(r.bookSheets||r.bookProps){if(u.Sheets)s=u.Sheets.map(function F(e){return e.name});else if(h.Worksheets&&h.SheetNames.length>0)s=h.SheetNames;if(r.bookProps){p.Props=h;p.Custprops=v}if(r.bookSheets&&typeof s!=="undefined")p.SheetNames=s;if(r.bookSheets?p.SheetNames:r.bookProps)return p}s={};var m={};if(r.bookDeps&&n.calcchain)m=cp(Be(e,Gm(n.calcchain)),n.calcchain,r);var b=0;var g={};var w,k;{var E=u.Sheets;h.Worksheets=E.length;h.SheetNames=[];for(var S=0;S!=E.length;++S){h.SheetNames[S]=E[S].name}}var B=i?"bin":"xml";var C=n.workbooks[0].lastIndexOf("/");var y=(n.workbooks[0].slice(0,C+1)+"_rels/"+n.workbooks[0].slice(C+1)+".rels").replace(/^\//,"");if(!Ee(e,y))y="xl/_rels/workbook."+B+".rels";var T=Ga(Ce(e,y,true),y);if(T)T=Vm(T,u.Sheets);var _=Be(e,"xl/worksheets/sheet.xml",true)?1:0;e:for(b=0;b!=h.Worksheets;++b){var x="sheet";if(T&&T[b]){w="xl/"+T[b][1].replace(/[\/]?xl\//,"");if(!Ee(e,w))w=T[b][1];if(!Ee(e,w))w=y.replace(/_rels\/.*$/,"")+T[b][1];x=T[b][2]}else{w="xl/worksheets/sheet"+(b+1-_)+"."+B;w=w.replace(/sheet0\./,"sheet.")}k=w.replace(/^(.*)(\/)([^\/]*)$/,"$1/_rels/$3.rels");if(r&&r.sheets!=null)switch(typeof r.sheets){case"number":if(b!=r.sheets)continue e;break;case"string":if(h.SheetNames[b].toLowerCase()!=r.sheets.toLowerCase())continue e;break;default:if(Array.isArray&&Array.isArray(r.sheets)){var A=false;for(var R=0;R!=r.sheets.length;++R){if(typeof r.sheets[R]=="number"&&r.sheets[R]==b)A=1;if(typeof r.sheets[R]=="string"&&r.sheets[R].toLowerCase()==h.SheetNames[b].toLowerCase())A=1}if(!A)continue e};}Xm(e,w,k,h.SheetNames[b],b,g,s,x,r,u,l,o)}p={Directory:n,Workbook:u,Props:h,Custprops:v,Deps:m,Sheets:s,SheetNames:h.SheetNames,Strings:hh,Styles:o,Themes:l,SSF:P.get_table()};if(r&&r.bookFiles){if(e.files){p.keys=a;p.files=e.files}else{p.keys=[];p.files={};e.FullPaths.forEach(function(r,t){r=r.replace(/^Root Entry[\/]/,"");p.keys.push(r);p.files[r]=e.FileIndex[t]})}}if(r&&r.bookVBA){if(n.vba.length>0)p.vbaraw=Be(e,Gm(n.vba[0]),true);else if(n.defaults&&n.defaults.bin===rc)p.vbaraw=Be(e,"xl/vbaProject.bin",true)}return p}function jm(e,r){var t=r||{};var a="Workbook",n=X.find(e,a);try{a="/!DataSpaces/Version";n=X.find(e,a);if(!n||!n.content)throw new Error("ECMA-376 Encrypted file missing "+a);Gf(n.content);a="/!DataSpaces/DataSpaceMap";n=X.find(e,a);if(!n||!n.content)throw new Error("ECMA-376 Encrypted file missing "+a);var i=jf(n.content);if(i.length!==1||i[0].comps.length!==1||i[0].comps[0].t!==0||i[0].name!=="StrongEncryptionDataSpace"||i[0].comps[0].v!=="EncryptedPackage")throw new Error("ECMA-376 Encrypted file bad "+a);a="/!DataSpaces/DataSpaceInfo/StrongEncryptionDataSpace";n=X.find(e,a);if(!n||!n.content)throw new Error("ECMA-376 Encrypted file missing "+a);var s=$f(n.content);if(s.length!=1||s[0]!="StrongEncryptionTransform")throw new Error("ECMA-376 Encrypted file bad "+a);a="/!DataSpaces/TransformInfo/StrongEncryptionTransform/!Primary";n=X.find(e,a);if(!n||!n.content)throw new Error("ECMA-376 Encrypted file missing "+a);Yf(n.content)}catch(f){}a="/EncryptionInfo";n=X.find(e,a);if(!n||!n.content)throw new Error("ECMA-376 Encrypted file missing "+a);var l=Qf(n.content);a="/EncryptedPackage";n=X.find(e,a);if(!n||!n.content)throw new Error("ECMA-376 Encrypted file missing "+a);if(l[0]==4&&typeof decrypt_agile!=="undefined")return decrypt_agile(l[1],n.content,t.password||"",t);if(l[0]==2&&typeof decrypt_std76!=="undefined")return decrypt_std76(l[1],n.content,t.password||"",t);throw new Error("File is password-protected")}function $m(e,r){if(r.bookType=="ods")return Nm(e,r);return Km(e,r)}function Km(e,r){Xo=1024;if(e&&!e.SSF){e.SSF=P.get_table()}if(e&&e.SSF){O(P);P.load_table(e.SSF);r.revssf=Q(e.SSF);r.revssf[e.SSF[65535]]=0;r.ssf=e.SSF}r.rels={};r.wbrels={};r.Strings=[];r.Strings.Count=0;r.Strings.Unique=0;if(vh)r.revStrings=new Map;else{r.revStrings={};r.revStrings.foo=[];delete r.revStrings.foo}var t=r.bookType=="xlsb"?"bin":"xml";var a=nc.indexOf(r.bookType)>-1;var n=La();Wm(r=r||{});var i=xe();var s="",f=0;r.cellXfs=[];gh(r.cellXfs,{},{revssf:{General:0}});if(!e.Props)e.Props={};s="docProps/core.xml";_e(i,s,ln(e.Props,r));n.coreprops.push(s);Ka(r.rels,2,s,Va.CORE_PROPS);s="docProps/app.xml";if(e.Props&&e.Props.SheetNames){}else if(!e.Workbook||!e.Workbook.Sheets)e.Props.SheetNames=e.SheetNames;else{var l=[];for(var o=0;o0){s="docProps/custom.xml";_e(i,s,gn(e.Custprops,r));n.custprops.push(s);Ka(r.rels,4,s,Va.CUST_PROPS)}for(f=1;f<=e.SheetNames.length;++f){var c={"!id":{}};var u=e.Sheets[e.SheetNames[f-1]];var h=(u||{})["!type"]||"sheet";switch(h){case"chart":;default:s="xl/worksheets/sheet"+f+"."+t;_e(i,s,dp(f-1,s,r,e,c));n.sheets.push(s);Ka(r.wbrels,-1,"worksheets/sheet"+f+"."+t,Va.WS[0]);}if(u){var d=u["!comments"];var v=false;if(d&&d.length>0){var p="xl/comments"+f+"."+t;_e(i,p,bp(d,p,r));n.comments.push(p);Ka(c,-1,"../comments"+f+"."+t,Va.CMNT);v=true}if(u["!legacy"]){if(v)_e(i,"xl/drawings/vmlDrawing"+f+".vml",Go(f,u["!comments"]))}delete u["!comments"];delete u["!legacy"]}if(c["!id"].rId1)_e(i,Xa(s),ja(c))}if(r.Strings!=null&&r.Strings.length>0){s="xl/sharedStrings."+t;_e(i,s,mp(r.Strings,s,r));n.strs.push(s);Ka(r.wbrels,-1,"sharedStrings."+t,Va.SST)}s="xl/workbook."+t;_e(i,s,hp(e,s,r));n.workbooks.push(s);Ka(r.rels,1,s,Va.WB);s="xl/theme/theme1.xml";_e(i,s,xo(e.Themes,r));n.themes.push(s);Ka(r.wbrels,-1,"theme/theme1.xml",Va.THEME);s="xl/styles."+t;_e(i,s,pp(e,s,r));n.styles.push(s);Ka(r.wbrels,-1,"styles."+t,Va.STY);if(e.vbaraw&&a){s="xl/vbaProject.bin";_e(i,s,e.vbaraw);n.vba.push(s);Ka(r.wbrels,-1,"vbaProject.bin",Va.VBA)}_e(i,"[Content_Types].xml",Ha(n,r));_e(i,"_rels/.rels",ja(r.rels));_e(i,"xl/_rels/workbook."+t+".rels",ja(r.wbrels));delete r.revssf;delete r.ssf;return i}function Ym(e,r){Xo=1024;if(e&&!e.SSF){e.SSF=P.get_table()}if(e&&e.SSF){O(P);P.load_table(e.SSF);r.revssf=Q(e.SSF);r.revssf[e.SSF[65535]]=0;r.ssf=e.SSF}r.rels={};r.wbrels={};r.Strings=[];r.Strings.Count=0;r.Strings.Unique=0;if(vh)r.revStrings=new Map;else{r.revStrings={};r.revStrings.foo=[];delete r.revStrings.foo}var t="xml";var a=nc.indexOf(r.bookType)>-1;var n=La();Wm(r=r||{});var i=xe();var s="",f=0;r.cellXfs=[];gh(r.cellXfs,{},{revssf:{General:0}});if(!e.Props)e.Props={};s="docProps/core.xml";_e(i,s,ln(e.Props,r));n.coreprops.push(s);Ka(r.rels,2,s,Va.CORE_PROPS);s="docProps/app.xml";if(e.Props&&e.Props.SheetNames){}else if(!e.Workbook||!e.Workbook.Sheets)e.Props.SheetNames=e.SheetNames;else{var l=[];for(var o=0;o0){s="docProps/custom.xml";_e(i,s,gn(e.Custprops,r));n.custprops.push(s);Ka(r.rels,4,s,Va.CUST_PROPS)}for(f=1;f<=e.SheetNames.length;++f){var c={"!id":{}};var u=e.Sheets[e.SheetNames[f-1]];var h=(u||{})["!type"]||"sheet";switch(h){case"chart":;default:s="xl/worksheets/sheet"+f+"."+t;_e(i,s,ed(f-1,r,e,c));n.sheets.push(s);Ka(r.wbrels,-1,"worksheets/sheet"+f+"."+t,Va.WS[0]);}if(u){var d=u["!comments"];var v=false;if(d&&d.length>0){var p="xl/comments"+f+"."+t;_e(i,p,Ko(d,r));n.comments.push(p);Ka(c,-1,"../comments"+f+"."+t,Va.CMNT);v=true}if(u["!legacy"]){if(v)_e(i,"xl/drawings/vmlDrawing"+f+".vml",Go(f,u["!comments"]))}delete u["!comments"];delete u["!legacy"]}if(c["!id"].rId1)_e(i,Xa(s),ja(c))}if(r.Strings!=null&&r.Strings.length>0){s="xl/sharedStrings."+t;_e(i,s,Nf(r.Strings,r));n.strs.push(s);Ka(r.wbrels,-1,"sharedStrings."+t,Va.SST)}s="xl/workbook."+t;_e(i,s,Vv(e,r));n.workbooks.push(s);Ka(r.rels,1,s,Va.WB);s="xl/theme/theme1.xml";_e(i,s,xo(e.Themes,r));n.themes.push(s);Ka(r.wbrels,-1,"theme/theme1.xml",Va.THEME);s="xl/styles."+t;_e(i,s,Xl(e,r));n.styles.push(s);Ka(r.wbrels,-1,"styles."+t,Va.STY);if(e.vbaraw&&a){s="xl/vbaProject.bin";_e(i,s,e.vbaraw);n.vba.push(s);Ka(r.wbrels,-1,"vbaProject.bin",Va.VBA)}_e(i,"[Content_Types].xml",Ha(n,r));_e(i,"_rels/.rels",ja(r.rels));_e(i,"xl/_rels/workbook."+t+".rels",ja(r.wbrels));delete r.revssf;delete r.ssf;return i}function Jm(e,r){var t="";switch((r||{}).type||"base64"){case"buffer":return[e[0],e[1],e[2],e[3],e[4],e[5],e[6],e[7]];case"base64":t=g.decode(e.slice(0,12));break;case"binary":t=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 "+(r&&r.type||"undefined"));}return[t.charCodeAt(0),t.charCodeAt(1),t.charCodeAt(2),t.charCodeAt(3),t.charCodeAt(4),t.charCodeAt(5),t.charCodeAt(6),t.charCodeAt(7)]}function qm(e,r){if(X.find(e,"EncryptedPackage"))return jm(e,r);return Zp(e,r)}function Qm(e,r){var t,a=e;var n=r||{};if(!n.type)n.type=w&&Buffer.isBuffer(e)?"buffer":"base64";t=Ae(a,n);return zm(t,n)}function Zm(e,r){var t=0;e:while(t=2&&n[3]===0)return Bf.to_workbook(a,t);if(n[2]===0&&(n[3]===8||n[3]===9))return Bf.to_workbook(a,t)}break;case 3:;case 131:;case 139:;case 140:return bf.to_workbook(a,t);case 123:if(n[1]===92&&n[2]===114&&n[3]===116)return ul.to_workbook(a,t);break;case 10:;case 13:;case 32:return eb(a,t);case 137:if(n[1]===80&&n[2]===78&&n[3]===71)throw new Error("PNG Image File is not a spreadsheet");break;}if(bf.versions.indexOf(n[0])>-1&&n[2]<=12&&n[3]<=31)return bf.to_workbook(a,t);return ab(e,a,t,i)}function ib(e,r){var t=r||{};t.type="file";return nb(e,t)}function sb(e){return function r(t,a){var n=0;if(a.sheet){if(typeof a.sheet=="number")n=a.sheet;else n=t.SheetNames.indexOf(a.sheet);if(!t.SheetNames[n])throw new Error("Sheet not found: "+a.sheet+" : "+typeof a.sheet)}return e.from_sheet(t.Sheets[t.SheetNames[n]],a,t)}}var fb=sb(ym);var lb=sb({from_sheet:Ob});var ob=sb(typeof gf!=="undefined"?gf:{});var cb=sb(typeof wf!=="undefined"?wf:{});var ub=sb(typeof Ef!=="undefined"?Ef:{});var hb=sb(typeof ul!=="undefined"?ul:{});var db=sb({from_sheet:Nb});var vb=sb(typeof bf!=="undefined"?bf:{});var pb=sb(typeof kf!=="undefined"?kf:{});var mb=sb(typeof Bf!=="undefined"?{from_sheet:Bf.sheet_to_wk1}:{});function bb(e,r){switch(r.type){case"base64":;case"binary":break;case"buffer":;case"array":r.type="";break;case"file":return j(r.file,X.write(e,{type:w?"buffer":""}));case"string":throw new Error("'string' output type invalid for '"+r.bookType+"' files");default:throw new Error("Unrecognized type "+r.type);}return X.write(e,r)}function gb(e,r){var t=ue(r||{});var a=$m(e,t);return kb(a,t)}function wb(e,r){var t=ue(r||{});var a=Ym(e,t);return kb(a,t)}function kb(e,r){var t={};if(r.compression)t.compression="DEFLATE";if(r.password)t.type=w?"nodebuffer":"string";else switch(r.type){case"base64":t.type="base64";break;case"binary":t.type="string";break;case"string":throw new Error("'string' output type invalid for '"+r.bookType+"' files");case"buffer":;case"file":t.type=w?"nodebuffer":"string";break;default:throw new Error("Unrecognized type "+r.type);}var a=e.FullPaths?X.write(e,{fileType:"zip",type:{nodebuffer:"buffer",string:"binary"}[t.type]||t.type,compression:!!r.compression}):e.generate(t);if(typeof Deno!=="undefined"){if(typeof a=="string"){if(r.type=="binary"||r.type=="base64")return a;a=new Uint8Array(T(a))}}if(r.password&&typeof encrypt_agile!=="undefined")return bb(encrypt_agile(a,r.password),r);if(r.type==="file")return j(r.file,a);return r.type=="string"?qe(a):a}function Eb(e,r){var t=r||{};var a=em(e,t);return bb(a,t)}function Sb(e,r,t){if(!t)t="";var a=t+e;switch(r.type){case"base64":return g.encode(Qe(a));case"binary":return Qe(a);case"string":return e;case"file":return j(r.file,a,"utf8");case"buffer":{if(w)return k(a,"utf8");else if(typeof TextEncoder!=="undefined")return(new TextEncoder).encode(a);else return Sb(a,{type:"binary"}).split("").map(function(e){return e.charCodeAt(0)})};}throw new Error("Unrecognized type "+r.type)}function Bb(e,r){switch(r.type){case"base64":return g.encode(e);case"binary":return e;case"string":return e;case"file":return j(r.file,e,"binary");case"buffer":{if(w)return k(e,"binary");else return e.split("").map(function(e){return e.charCodeAt(0)})};}throw new Error("Unrecognized type "+r.type)}function Cb(e,r){switch(r.type){case"string":;case"base64":;case"binary":var t="";for(var a=0;a0)n=0;var u=ut(l.s.r);var h=[];var d=[];var v=0,p=0;var m=Array.isArray(e);var b=l.s.r,g=0,w=0;if(m&&!e[b])e[b]=[];for(g=l.s.c;g<=l.e.c;++g){h[g]=pt(g);t=m?e[b][g]:e[h[g]+u];switch(a){case 1:i[g]=g-l.s.c;break;case 2:i[g]=h[g];break;case 3:i[g]=o.header[g-l.s.c];break;default:if(t==null)t={w:"__EMPTY",t:"s"};f=s=yt(t,null,o);p=0;for(w=0;w=0)c='"'+c.replace(Db,'""')+'"'}else c="";o.push(c)}if(f.blankrows===false&&l)return null;return o.join(s)}function Ob(e,r){var t=[];var a=r==null?{}:r;if(e==null||e["!ref"]==null)return"";var n=Bt(e["!ref"]);var i=a.FS!==undefined?a.FS:",",s=i.charCodeAt(0);var f=a.RS!==undefined?a.RS:"\n",l=f.charCodeAt(0);var o=new RegExp((i=="|"?"\\|":i)+"+$");var c="",u=[];a.dense=Array.isArray(e);var h=a.skipHidden&&e["!cols"]||[];var d=a.skipHidden&&e["!rows"]||[];for(var v=n.s.c;v<=n.e.c;++v)if(!(h[v]||{}).hidden)u[v]=pt(v);for(var p=n.s.r;p<=n.e.r;++p){if((d[p]||{}).hidden)continue; -c=Pb(e,n,p,u,s,l,i,a);if(c==null){continue}if(a.strip)c=c.replace(o,"");t.push(c+f)}delete a.dense;return t.join("")}function Nb(e,r){if(!r)r={};r.FS="\t";r.RS="\n";var t=Ob(e,r);if(typeof cptable=="undefined"||r.type=="string")return t;var a=cptable.utils.encode(1200,t,"str");return String.fromCharCode(255)+String.fromCharCode(254)+a}function Lb(e){var r="",t,a="";if(e==null||e["!ref"]==null)return[];var n=Bt(e["!ref"]),i="",s=[],f;var l=[];var o=Array.isArray(e);for(f=n.s.c;f<=n.e.c;++f)s[f]=pt(f);for(var c=n.s.r;c<=n.e.r;++c){i=ut(c);for(f=n.s.c;f<=n.e.c;++f){r=s[f]+i;t=o?(e[c]||[])[f]:e[r];a="";if(t===undefined)continue;else if(t.F!=null){r=t.F;if(!t.f)continue;a=t.f;if(r.indexOf(":")==-1)r=r+":"+r}if(t.f!=null)a=t.f;else if(t.t=="z")continue;else if(t.t=="n"&&t.v!=null)a=""+t.v;else if(t.t=="b")a=t.v?"TRUE":"FALSE";else if(t.w!==undefined)a="'"+t.w;else if(t.v===undefined)continue;else if(t.t=="s")a="'"+t.v;else a=""+t.v;l[l.length]=r+"="+a}}return l}function Mb(e,r,t){var a=t||{};var n=+!a.skipHeader;var i=e||{};var s=0,f=0;if(i&&a.origin!=null){if(typeof a.origin=="number")s=a.origin;else{var l=typeof a.origin=="string"?wt(a.origin):a.origin;s=l.r;f=l.c}}var o;var c={s:{c:0,r:0},e:{c:f,r:s+r.length-1+n}};if(i["!ref"]){var u=Bt(i["!ref"]);c.e.c=Math.max(c.e.c,u.e.c);c.e.r=Math.max(c.e.r,u.e.r);if(s==-1){s=u.e.r+1;c.e.r=s+r.length-1+n}}else{if(s==-1){s=0;c.e.r=r.length-1+n}}var h=a.header||[],d=0;r.forEach(function(e,r){Y(e).forEach(function(t){if((d=h.indexOf(t))==-1)h[d=h.length]=t;var l=e[t];var c="z";var u="";var v=kt({c:f+d,r:s+r+n});o=Wb.sheet_get_cell(i,v);if(l&&typeof l==="object"&&!(l instanceof Date)){i[v]=l}else{if(typeof l=="number")c="n";else if(typeof l=="boolean")c="b";else if(typeof l=="string")c="s";else if(l instanceof Date){c="d";if(!a.cellDates){c="n";l=re(l)}u=a.dateNF||P._table[14]}else if(l===null&&a.nullError){c="e";l=0}if(!o)i[v]=o={t:c,v:l};else{o.t=c;o.v=l;delete o.w;delete o.R;if(u)o.z=u}if(u)o.z=u}})});c.e.c=Math.max(c.e.c,f+h.length-1);var v=ut(s);if(n)for(d=0;d=0&&e.SheetNames.length>r)return r;throw new Error("Cannot find sheet # "+r)}else if(typeof r=="string"){var t=e.SheetNames.indexOf(r);if(t>-1)return t;throw new Error("Cannot find sheet name |"+r+"|")}else throw new Error("Cannot find sheet |"+r+"|")}e.book_new=function(){return{SheetNames:[],Sheets:{}}};e.book_append_sheet=function(e,r,t){if(!t)for(var a=1;a<=65535;++a,t=undefined)if(e.SheetNames.indexOf(t="Sheet"+a)==-1)break;if(!t||e.SheetNames.length>=65535)throw new Error("Too many worksheets");Nv(t);if(e.SheetNames.indexOf(t)>=0)throw new Error("Worksheet with name |"+t+"| already exists!");e.SheetNames.push(t);e.Sheets[t]=r};e.book_set_sheet_visibility=function(e,r,a){t(e,"Workbook",{});t(e.Workbook,"Sheets",[]);var i=n(e,r);t(e.Workbook.Sheets,i,{});switch(a){case 0:;case 1:;case 2:break;default:throw new Error("Bad sheet visibility setting "+a);}e.Workbook.Sheets[i].Hidden=a};r([["SHEET_VISIBLE",0],["SHEET_HIDDEN",1],["SHEET_VERY_HIDDEN",2]]);e.cell_set_number_format=function(e,r){e.z=r;return e};e.cell_set_hyperlink=function(e,r,t){if(!r){delete e.l}else{e.l={Target:r};if(t)e.l.Tooltip=t}return e};e.cell_set_internal_link=function(r,t,a){return e.cell_set_hyperlink(r,"#"+t,a)};e.cell_add_comment=function(e,r,t){if(!e.c)e.c=[];e.c.push({t:r,a:t||"SheetJS"})};e.sheet_set_array_formula=function(e,r,t){var n=typeof r!="string"?r:Bt(r);var i=typeof r=="string"?r:St(r);for(var s=n.s.r;s<=n.e.r;++s)for(var f=n.s.c;f<=n.e.c;++f){var l=a(e,s,f);l.t="n";l.F=i;delete l.v;if(s==n.s.r&&f==n.s.c)l.f=t}return e};return e})(Wb);if(w&&typeof require!="undefined")(function(){var r=undefined;if(!r)return;var t=r.Readable;if(!t)return;var a=function(e,r){var a=t();var n=r==null?{}:r;if(e==null||e["!ref"]==null){a.push(null);return a}var i=Bt(e["!ref"]);var s=n.FS!==undefined?n.FS:",",f=s.charCodeAt(0);var l=n.RS!==undefined?n.RS:"\n",o=l.charCodeAt(0);var c=new RegExp((s=="|"?"\\|":s)+"+$");var u="",h=[];n.dense=Array.isArray(e);var d=n.skipHidden&&e["!cols"]||[];var v=n.skipHidden&&e["!rows"]||[];for(var p=i.s.c;p<=i.e.c;++p)if(!(d[p]||{}).hidden)h[p]=pt(p);var m=i.s.r;var b=false;a._read=function(){if(!b){b=true;return a.push("\ufeff")}while(m<=i.e.r){++m;if((v[m-1]||{}).hidden)continue;u=Pb(e,i,m-1,h,f,o,s,n);if(u!=null){if(n.strip)u=u.replace(c,"");a.push(u+l);break}}if(m>i.e.r)return a.push(null)};return a};var n=function(e,r){var a=t();var n=r||{};var i=n.header!=null?n.header:ym.BEGIN;var s=n.footer!=null?n.footer:ym.END;a.push(i);var f=Et(e["!ref"]);n.dense=Array.isArray(e);a.push(ym._preamble(e,f,n));var l=f.s.r;var o=false;a._read=function(){if(l>f.e.r){if(!o){o=true;a.push(""+s)}return a.push(null)}while(l<=f.e.r){a.push(ym._row(e,f,l,n));++l;break}};return a};var i=function(e,r){var a=t({objectMode:true});if(e==null||e["!ref"]==null){a.push(null);return a}var n={t:"n",v:0},i=0,s=1,f=[],l=0,o="";var c={s:{r:0,c:0},e:{r:0,c:0}};var u=r||{};var h=u.range!=null?u.range:e["!ref"];if(u.header===1)i=1;else if(u.header==="A")i=2;else if(Array.isArray(u.header))i=3;switch(typeof h){case"string":c=Bt(h);break;case"number":c=Bt(e["!ref"]);c.s.r=h;break;default:c=h;}if(i>0)s=0;var d=ut(c.s.r);var v=[];var p=0;var m=Array.isArray(e);var b=c.s.r,g=0,w=0;if(m&&!e[b])e[b]=[];for(g=c.s.c;g<=c.e.c;++g){v[g]=pt(g);n=m?e[b][g]:e[v[g]+d];switch(i){case 1:f[g]=g-c.s.c;break;case 2:f[g]=v[g];break;case 3:f[g]=u.header[g-c.s.c];break;default:if(n==null)n={w:"__EMPTY",t:"s"};o=l=yt(n,null,u);p=0;for(w=0;wc.e.r)return a.push(null);while(b<=c.e.r){var r=Fb(e,c,b,v,i,f,m,u);++b;if(r.isempty===false||(i===1?u.blankrows!==false:!!u.blankrows)){a.push(r.row);break}}};return a};e.stream={to_json:i,to_html:n,to_csv:a}})();if(typeof Zp!=="undefined")e.parse_xlscfb=Zp;e.parse_zip=zm;e.read=nb;e.readFile=ib;e.readFileSync=ib;e.write=Tb;e.writeFile=xb;e.writeFileSync=xb;e.writeFileAsync=Rb;e.utils=Wb;e.writeXLSX=yb;e.writeFileXLSX=Ab;e.SSF=P;if(typeof X!=="undefined")e.CFB=X}if(typeof exports!=="undefined")make_xlsx_lib(exports);else if(typeof module!=="undefined"&&module.exports)make_xlsx_lib(module.exports);else if(typeof define==="function"&&define.amd)define("xlsx",function(){if(!XLSX.version)make_xlsx_lib(XLSX);return XLSX});else make_xlsx_lib(XLSX);if(typeof window!=="undefined"&&!window.XLSX)try{window.XLSX=XLSX}catch(e){} diff --git a/dist/xlsx.min.map b/dist/xlsx.min.map deleted file mode 100644 index c65cbf7..0000000 --- a/dist/xlsx.min.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"sources":["misc/suppress_export.js","dist/xlsx.js"],"names":["DO_NOT_EXPORT_CODEPAGE","XLSX","make_xlsx_lib","version","current_codepage","current_ansi","module","require","cptable","global","undefined","window","VALID_ANSI","i","push","CS2CP","0","1","2","77","128","129","130","134","136","161","162","163","177","178","186","204","222","238","255","69","set_ansi","cp","indexOf","reset_ansi","set_cp","reset_cp","char_codes","data","o","len","length","charCodeAt","utf16leread","String","fromCharCode","join","utf16beread","debom","c1","c2","slice","_getchar","_gc1","x","_getansi","_ga1","utils","decode","_gc2","_ga2","DENSE","DIF_XL","Base64","map","encode","input","c3","e1","e2","e3","e4","isNaN","charAt","replace","has_buf","Buffer","process","versions","node","Buffer_from","nbfs","from","e","buf","enc","bind","alloc","n","allocUnsafe","new_raw_buf","Uint8Array","Array","new_unsafe_buf","s2a","s","split","s2ab","ArrayBuffer","view","a2s","isArray","c","a2u","Error","ab2a","utf8decode","content","out","widx","L","ridx","d","bconcat","bufs","maxlen","set","concat","apply","call","chr0","chr1","SSF","make_ssf","_strrev","fill","l","pad0","v","t","pad_","rpad_","pad0r1","Math","round","pad0r2","p2_32","pow","pad0r","isgeneral","days","months","init_table","table_fmt","default_map","defi","default_str","frac","D","mixed","sgn","B","P_2","P_1","P","Q_2","Q_1","Q","A","floor","q","parse_date_code","opts","b2","date","time","dow","dout","T","u","y","m","H","M","S","abs","date1904","Date","setDate","getDate","getFullYear","getMonth","getDay","fix_hijri","basedate","dnthresh","getTime","base1904","datenum_local","epoch","getTimezoneOffset","general_fmt_int","toString","_general_int","general_fmt_num","make_general_fmt_num","trailing_zeroes_and_decimal","strip_decimal","mantissa_zeroes_and_decimal","exp_with_single_digit","normalize_exp","small_exp","w","toFixed","toPrecision","toExponential","large_exp","general_fmt_num_base","V","log","LOG10E","substr","toUpperCase","_general_num","general_fmt","format","_general","write_date","type","fmt","val","ss0","ss","tt","outl","outstr","commaify","j","write_num","make_write_num","pct1","write_num_pct","sfmt","mul","write_num_cm","idx","write_num_exp","match","period","ee","fakee","$$","$1","$2","$3","frac1","write_num_f1","r","aval","sign","den","parseInt","rr","base","myn","myd","write_num_f2","dec1","closeparen","phone","hashq","str","cc","rnd","dd","dec","_frac","carry","flr","write_num_flt","ffmt","ri","ff","oa","min","max","lres","rres","write_num_cm2","write_num_pct2","write_num_exp2","write_num_int","lastIndexOf","split_fmt","in_str","_split","abstime","fmt_is_date","is_date","eval_fmt","flen","lst","dt","hr","toLowerCase","bt","ssm","nstr","jj","vv","myv","ostr","decpt","lasti","retval","_eval","cfregex","cfregex2","chkcond","thresh","parseFloat","choose_fmt","f","lat","m1","m2","dateNF","table","load_entry","load","_table","get_table","load_table","tbl","XLMLFormatMap","General Number","General Date","Long Date","Medium Date","Short Date","Long Time","Medium Time","Short Time","Currency","Fixed","Standard","Percent","Scientific","Yes/No","True/False","On/Off","SSFImplicit","5","6","7","8","23","24","25","26","27","28","29","30","31","32","33","34","35","36","41","42","43","44","50","51","52","53","54","55","56","57","58","59","60","61","62","63","64","65","66","67","68","70","71","72","73","74","75","76","78","79","80","81","dateNFregex","dateNF_regex","RegExp","dateNF_fix","Y","forEach","datestr","timestr","DO_NOT_EXPORT_CFB","CRC32","factory","signed_crc_table","Int32Array","T0","slice_by_16_tables","subarray","TT","T1","T2","T3","T4","T5","T6","T7","T8","T9","Ta","Tb","Tc","Td","Te","Tf","crc32_bstr","bstr","seed","C","crc32_buf","crc32_str","CFB","_CFB","exports","namecmp","R","Z","dirname","p","filename","write_dos_date","hms","getHours","getMinutes","getSeconds","write_shift","ymd","parse_dos_date","read_shift","setMilliseconds","setFullYear","setMonth","setHours","setMinutes","setSeconds","parse_extra_field","blob","prep_blob","flags","sz","tgt","mtime","atime","ctime","mt","fs","get_fs","parse","file","options","parse_zip","parse_mad","mver","ssz","nmfs","difat_sec_cnt","dir_start","minifat_start","difat_start","fat_addrs","mv","check_get_mver","header","check_shifts","dir_cnt","chk","sectors","sectorify","sleuth_fat","sector_list","make_sector_list","name","ENDOFCHAIN","files","Paths","FileIndex","FullPaths","read_directory","build_full_paths","shift","raw","HEADER_SIGNATURE","nsectors","ceil","FI","FP","pl","dad","get_mfat_entry","entry","payload","mini","start","size","MSSZ","__readInt32LE","new_buf","cnt","sector","get_sector_list","chkd","buf_chain","modulus","addr","nodes","__toBuffer","sl","k","seen","minifat_store","namelen","__utf16le","color","clsid","state","ct","read_date","storage","offset","__readUInt32LE","read_file","readFileSync","read","isBuffer","init_cfb","cfb","root","CLSID","seed_cfb","nm","find","rebuild_cfb","gc","_file","pop","now","fullPaths","Object","create","HEADER_CLSID","sort","elt","_write","_opts","fileType","write_mad","write_zip","mini_size","fat_size","mini_cnt","mfat_cnt","fat_base","fat_cnt","difat_cnt","HEADER_SIG","chainit","consts","DIFSECT","FATSECT","_nm","copy","path","UCFullPaths","UCPaths","UCPath","MAXREGSECT","FREESECT","HEADER_MINOR_VERSION","MAXREGSID","NOSTREAM","EntryTypes","write_file","writeFileSync","write","_zlib","use_zlib","zlib","InflateRaw","InflRaw","_processChunk","_finishFlushFlag","bytesRead","console","error","message","_inflateRawSync","usz","_inflate","_deflateRawSync","deflateRawSync","_deflate","CLEN_ORDER","LEN_LN","DST_LN","bit_swap_8","use_typed_arrays","bitswap8","bit_swap_n","b","rev","read_bits_2","bl","h","read_bits_3","read_bits_4","read_bits_5","read_bits_7","read_bits_n","write_bits_3","write_bits_1","write_bits_8","write_bits_16","realloc","a","zero_fill_array","build_tree","clens","cmap","MAX","ccode","bl_count","Uint16Array","ctree","cleni","fix_lmap","fix_dmap","dlens","_deflateRaw","_deflateRawIIFE","DST_LN_RE","LEN_LN_RE","write_stored","boff","write_huff_fixed","addrs","hash","mlen","len_eb","dst_eb","off","dyn_lmap","dyn_dmap","dyn_cmap","dyn_len_1","dyn_len_2","dyn","_HLIT","_HDIST","_HCLEN","next_code","hcodes","h1","h2","inflate","outbuf","woff","OL","max_len_1","max_len_2","bits","code","dst","warn_or_throw","wrn","msg","fcnt","start_cd","csz","efsz","fcsz","EF","parse_local_file","meth","crc32","_csz","_usz","ef","cfb_add","unsafe","cdirs","method","compression","desc","fp","fi","crcs","sz_cd","namebuf","ContentTypeMap","htm","xml","gif","jpg","png","mso","thmx","sh33tj5","get_content_type","ctype","ext","write_base64_76","write_quoted_printable","text","encoded","si","end","tmp","parse_quoted_printable","di","line","oi","parse_mime","fname","cte","fdata","trim","row","test","mboundary","boundary","start_di","ca","cstr","dispcnt","csl","qp","cfb_new","fpath","cfb_gc","cfb_del","splice","cfb_mov","old_name","new_name","writeFile","ReadShift","CheckField","_inflateRaw","_fs","blobify","write_dl","Deno","TextEncoder","utf8write","IE_SaveFile","Blob","navigator","msSaveBlob","saveAs","URL","document","createElement","createObjectURL","url","chrome","downloads","download","revokeObjectURL","setTimeout","href","body","appendChild","click","removeChild","$","File","Folder","open","encoding","close","read_binary","infile","keys","ks","o2","prototype","hasOwnProperty","evert_key","obj","key","K","evert","evert_num","evert_arr","datenum","refdate","refoffset","numdate","setTime","parse_isodur","sec","good_pd_date","good_pd","parseDate","fixdate","cc2str","arr","debomit","dup","JSON","stringify","fuzzynum","Number","isFinite","NaN","wt","lower_months","fuzzydate","getYear","lower","safe_split_regex","split_regex","re","def","getdatastr","asNodeBuffer","asBinary","_data","getContent","getdatabin","getdata","safegetzipfile","zip","g","getzipfile","getzipdata","safe","getzipstr","getzipbin","zipentries","zip_add_file","res","zip_new","zip_read","resolve_path","result","target","step","XML_HEADER","attregexg","tagregex","nsregex","nsregex2","parsexmltag","tag","skip_root","skip_LC","z","eq","quot","strip_ns","encodings",""","'",">","<","&","rencoding","unescapexml","encregex","coderegex","decregex","charegex","escapexml","escapexmltag","htmlcharegex","escapehtml","escapexlml","xlml_fixstr","entregex","entrepl","xlml_unfixstr","parsexmlbool","value","utf8read","utf8reada","orig","utf8readb","ww","corpus","utf8readc","matchtag","mtcache","htmldecode","entities","vtregex","vt_cache","vt_regex","vtvregex","vtmregex","parseVector","matches","baseType","WTF","wtregex","writetag","wxt_helper","writextag","write_w3cdtf","toISOString","write_vt","xlsx","XMLNS","dc","dcterms","dcmitype","mx","sjs","vt","xsi","xsd","main","XLMLNS","html","read_double_le","Infinity","write_double_le","bs","av","LN2","___toBuffer","__readUInt16LE","___utf16le","__hexlify","___hexlify","__utf8","__readUInt8","___utf8","__lpstr","___lpstr","__cpstr","___cpstr","__lpwstr","___lpwstr","__lpp4","___lpp4","lpp4_","__8lpp4","___8lpp4","__double","___double","is_buf","is_buf_a","lpstr_b","readUInt32LE","cpstr_b","lpwstr_b","lpp4_b","lpp4_8b","utf8_b","double_","readDoubleLE","is_buf_b","cpdoit","__readInt16LE","__readInt32BE","oI","oR","oo","loc","this","lens","__writeUInt32LE","__writeInt32LE","__writeUInt16LE","WriteShift","cppayload","hexstr","fld","pos","parsenoop","recordhopper","cb","tmpbyte","cntbyte","RT","XLSBRecordEnum","buf_array","blksz","newblk","ba_newblk","curbuf","endbuf","ba_endbuf","next","ba_next","ba_end","ba_push","_bufs","write_record","ba","XLSBRE","make_XLSBRE","shift_cell_xls","cell","cRel","rRel","biff","shift_range_xls","range","encode_cell_xls","encode_cell","fix_col","fix_row","encode_range_xls","encode_col","encode_row","OFFCRYPTO","make_offcrypto","O","_crypto","crypto","rc4","md5","hex","createHash","update","digest","decode_row","rowstr","unfix_row","decode_col","colstr","unfix_col","col","split_cell","decode_cell","decode_range","encode_range","cs","ce","safe_decode_range","safe_format_cell","XF","numFmtId","format_cell","BErr","sheet_to_workbook","sheet","sheets","SheetNames","Sheets","sheet_add_aoa","_ws","dense","ws","_R","_C","origin","_origin","_range","__R","__C","nullError","sheetStubs","cellDates","cell_ref","aoa_to_sheet","write_UInt32LE","parse_XLWideString","cchCharacters","write_XLWideString","_null","parse_StrRun","ich","ifnt","write_StrRun","run","parse_RichStr","rgsStrRun","dwSizeStrRun","write_RichStr","parse_BrtCommentText","write_BrtCommentText","parse_XLSBCell","iStyleRef","write_XLSBCell","parse_XLSBShortCell","write_XLSBShortCell","parse_XLSBCodeName","write_XLSBCodeName","parse_XLNullableWideString","write_XLNullableWideString","parse_XLNameWideString","parse_RelID","write_RelID","parse_RkNumber","fX100","fInt","RK","write_RkNumber","d100","parse_RfX","write_RfX","parse_UncheckedRfX","write_UncheckedRfX","parse_Xnum","write_Xnum","parse_BrtColor","xColorType","index","nTS","bR","bG","bB","auto","icv","XLSIcv","rgb","rgb2Hex","theme","tint","write_BrtColor","parse_FontFlags","fBold","fItalic","fUnderline","fStrikeout","fOutline","fShadow","fCondense","fExtend","write_FontFlags","font","grbit","italic","strike","outline","shadow","condense","extend","parse_ClipboardFormatOrString","ClipFmt","3","14","parse_ClipboardFormatOrAnsiString","parse_ClipboardFormatOrUnicodeString","VT_I2","VT_I4","VT_BOOL","VT_VARIANT","VT_UI4","VT_LPSTR","VT_FILETIME","VT_BLOB","VT_CF","VT_VECTOR","VT_STRING","VT_USTR","VT_CUSTOM","DocSummaryPIDDSI","4","9","10","11","12","13","15","16","17","19","22","2147483648","2147483651","1919054434","SummaryPIDSI","18","DocSummaryRE","SummaryRE","CountryEnum","20","39","45","46","47","48","49","82","84","86","90","105","213","216","218","351","354","358","420","886","961","962","963","964","965","966","971","972","974","981","65535","XLSFillPattern","rgbify","_XLSIcv","RBErr","ct2type","application/vnd.openxmlformats-officedocument.spreadsheetml.sheet.main+xml","application/vnd.ms-excel.binIndexWs","application/vnd.ms-excel.intlmacrosheet","application/vnd.ms-excel.binIndexMs","application/vnd.openxmlformats-package.core-properties+xml","application/vnd.openxmlformats-officedocument.custom-properties+xml","application/vnd.openxmlformats-officedocument.extended-properties+xml","application/vnd.openxmlformats-officedocument.customXmlProperties+xml","application/vnd.openxmlformats-officedocument.spreadsheetml.customProperty","application/vnd.ms-excel.pivotTable","application/vnd.openxmlformats-officedocument.spreadsheetml.pivotTable+xml","application/vnd.openxmlformats-officedocument.drawingml.chart+xml","application/vnd.ms-office.chartcolorstyle+xml","application/vnd.ms-office.chartstyle+xml","application/vnd.ms-office.chartex+xml","application/vnd.ms-excel.calcChain","application/vnd.openxmlformats-officedocument.spreadsheetml.calcChain+xml","application/vnd.openxmlformats-officedocument.spreadsheetml.printerSettings","application/vnd.ms-office.activeX","application/vnd.ms-office.activeX+xml","application/vnd.ms-excel.attachedToolbars","application/vnd.ms-excel.connections","application/vnd.openxmlformats-officedocument.spreadsheetml.connections+xml","application/vnd.ms-excel.externalLink","application/vnd.openxmlformats-officedocument.spreadsheetml.externalLink+xml","application/vnd.ms-excel.sheetMetadata","application/vnd.openxmlformats-officedocument.spreadsheetml.sheetMetadata+xml","application/vnd.ms-excel.pivotCacheDefinition","application/vnd.ms-excel.pivotCacheRecords","application/vnd.openxmlformats-officedocument.spreadsheetml.pivotCacheDefinition+xml","application/vnd.openxmlformats-officedocument.spreadsheetml.pivotCacheRecords+xml","application/vnd.ms-excel.queryTable","application/vnd.openxmlformats-officedocument.spreadsheetml.queryTable+xml","application/vnd.ms-excel.userNames","application/vnd.ms-excel.revisionHeaders","application/vnd.ms-excel.revisionLog","application/vnd.openxmlformats-officedocument.spreadsheetml.revisionHeaders+xml","application/vnd.openxmlformats-officedocument.spreadsheetml.revisionLog+xml","application/vnd.openxmlformats-officedocument.spreadsheetml.userNames+xml","application/vnd.ms-excel.tableSingleCells","application/vnd.openxmlformats-officedocument.spreadsheetml.tableSingleCells+xml","application/vnd.ms-excel.slicer","application/vnd.ms-excel.slicerCache","application/vnd.ms-excel.slicer+xml","application/vnd.ms-excel.slicerCache+xml","application/vnd.ms-excel.wsSortMap","application/vnd.ms-excel.table","application/vnd.openxmlformats-officedocument.spreadsheetml.table+xml","application/vnd.openxmlformats-officedocument.theme+xml","application/vnd.openxmlformats-officedocument.themeOverride+xml","application/vnd.ms-excel.Timeline+xml","application/vnd.ms-excel.TimelineCache+xml","application/vnd.ms-office.vbaProject","application/vnd.ms-office.vbaProjectSignature","application/vnd.ms-office.volatileDependencies","application/vnd.openxmlformats-officedocument.spreadsheetml.volatileDependencies+xml","application/vnd.ms-excel.controlproperties+xml","application/vnd.openxmlformats-officedocument.model+data","application/vnd.ms-excel.Survey+xml","application/vnd.openxmlformats-officedocument.drawing+xml","application/vnd.openxmlformats-officedocument.drawingml.chartshapes+xml","application/vnd.openxmlformats-officedocument.drawingml.diagramColors+xml","application/vnd.openxmlformats-officedocument.drawingml.diagramData+xml","application/vnd.openxmlformats-officedocument.drawingml.diagramLayout+xml","application/vnd.openxmlformats-officedocument.drawingml.diagramStyle+xml","application/vnd.openxmlformats-officedocument.vmlDrawing","application/vnd.openxmlformats-package.relationships+xml","application/vnd.openxmlformats-officedocument.oleObject","image/png","CT_LIST","workbooks","xlsm","xlsb","xlam","xltx","strs","comments","charts","dialogs","macros","styles","type2ct","CT","new_ct","rels","links","coreprops","extprops","custprops","themes","calcchains","vba","drawings","TODO","xmlns","parse_ct","ctext","Extension","ContentType","PartName","calcchain","sst","style","defaults","CTYPE_XML_ROOT","xmlns:xsd","xmlns:xsi","CTYPE_DEFAULTS","write_ct","f1","bookType","f2","f3","RELS","WB","SHEET","HLINK","VML","XPATH","XMISS","XLINK","CXML","CXMLP","VBA","get_rels_path","parse_rels","currentFilePath","!id","rel","Type","Target","Id","TargetMode","canonictarget","RELS_ROOT","write_rels","rid","RELS_EXTERN","add_rels","rId","relobj","targetmode","CT_ODS","parse_manifest","xlml_normalize","Rn","FEtag","xlmlregex","exec","write_manifest","manifest","write_rdf_type","write_rdf_has","write_rdf","rdf","write_meta_ods","wmo","CORE_PROPS","CORE_PROPS_REGEX","parse_core_props","cur","CORE_PROPS_XML_ROOT","xmlns:cp","xmlns:dc","xmlns:dcterms","xmlns:dcmitype","cp_doit","write_core_props","Props","CreatedDate","xsi:type","ModifiedDate","EXT_PROPS","PseudoPropsPairs","load_props_pairs","HP","TOP","props","hp","parts","Worksheets","NamedRanges","DefinedNames","Chartsheets","ChartNames","parse_ext_props","HeadingPairs","TitlesOfParts","EXT_PROPS_XML_ROOT","xmlns:vt","write_ext_props","W","Application","CUST_PROPS","custregex","parse_cust_props","toks","warn","CUST_PROPS_XML_ROOT","write_cust_props","pid","custprop","fmtid","XLMLDocPropsMap","Title","Subject","Author","Keywords","Comments","LastAuthor","RevNumber","LastPrinted","Category","Manager","Company","AppVersion","ContentStatus","Identifier","Language","evert_XLMLDPM","xlml_set_prop","xlml_write_docprops","xlml_write_custprops","Custprops","BLACKLIST","dt:dt","parse_FILETIME","dwLowDateTime","dwHighDateTime","write_FILETIME","parse_lpstr","pad","parse_lpwstr","parse_VtStringBase","stringType","parse_VtString","parse_VtUnalignedString","parse_VtVecLpwstrValue","ret","parse_VtVecUnalignedLpstrValue","parse_VtHeadingPair","headingString","parse_TypedPropertyValue","headerParts","parse_VtVecHeadingPairValue","cElements","parse_dictionary","CodePage","dict","parse_BLOB","bytes","parse_ClipboardData","Size","write_TypedPropertyValue","parse_PropertySet","PIDSI","start_addr","NumProps","Dictionary","DictObj","PropID","Offset","PropH","fail","piddsi","oldpos","parsebool","XLSPSSkip","guess_property_type","write_PropertySet","entries","RE","hdr","piao","prop","pr","pio","unshift","pinfo","parse_PropertySetStream","NumSets","FMTID0","FMTID1","Offset0","Offset1","SystemIdentifier","PSet0","rval","FMTID","PSet1","write_PropertySetStream","entries2","clsid2","ps0","ps1","parsenoop2","writezeroes","parslurp","writebool","parseuint16","writeuint16","parseuint16a","parse_Bes","write_Bes","parse_ShortXLUnicodeString","cch","fHighByte","parse_XLUnicodeRichExtendedString","fExtSt","fRichSt","width","cRun","cbExtRst","write_XLUnicodeRichExtendedString","xlstr","nfmts","otext","parse_XLUnicodeStringNoCch","parse_XLUnicodeString","parse_XLUnicodeString2","write_XLUnicodeString","parse_ControlInfo","accel","parse_URLMoniker","extra","parse_FileMoniker","cAnti","preamble","ansiPath","unicodePath","parse_HyperlinkMoniker","parse_HyperlinkString","write_HyperlinkString","parse_Hyperlink","sVer","displayName","targetFrameName","moniker","oleMoniker","Loc","guid","fileTime","Tooltip","write_Hyperlink","hl","hashidx","F","Pretarget","parse_LongRGBA","parse_LongRGB","parse_XLSCell","rw","ixfe","write_XLSCell","parse_frtHeader","rt","parse_OptXLUnicodeString","parse_XTI","iSupBook","itabFirst","itabLast","parse_RkRec","parse_AddinUdf","udfName","parse_Ref8U","rwFirst","rwLast","colFirst","colLast","write_Ref8U","parse_RefU","parse_Ref","parse_FtCmo","ot","id","parse_FtNts","fSharedNote","parse_FtCf","cf","parse_FtSkip","FtTab","21","parse_FtArray","fts","ft","parse_BOF","BIFFVer","write_BOF","wb","parse_InterfaceHdr","parse_WriteAccess","UserName","write_WriteAccess","b8","parse_WsBool","fDialog","fBelow","fRight","parse_BoundSheet8","hidden","hs","write_BoundSheet8","parse_SST","ucnt","Count","Unique","write_SST","parse_ExtSST","extsst","dsst","parse_Row","miyRw","level","hpt","parse_ForceFullCalculation","fullcalc","parse_RecalcId","parse_DefaultRowHeight","fl","Unsynced","DyZero","ExAsc","ExDsc","parse_Window1","xWn","yWn","dxWn","dyWn","iTabCur","iTabFirst","ctabSel","wTabRatio","Pos","Dim","Flags","CurTab","FirstTab","Selected","TabRatio","write_Window1","parse_Window2","RTL","write_Window2","parse_Pane","parse_Font","dyHeight","write_Font","b5","parse_LabelSst","isst","write_LabelSst","os","parse_Label","biffguess","write_Label","parse_Format","fmtstr","write_Format","parse_BIFF2Format","parse_Dimensions","write_Dimensions","parse_RK","rkrec","rknum","parse_MulRk","rkrecs","lastcol","parse_MulBlank","ixfes","parse_CellStyleXF","patternType","cellStyles","alc","fWrap","alcV","fJustLast","trot","cIndent","fShrinkToFit","iReadOrder","fAtrNum","fAtrFnt","fAtrAlc","fAtrBdr","fAtrPat","fAtrProt","dgLeft","dgRight","dgTop","dgBottom","icvLeft","icvRight","grbitDiag","icvTop","icvBottom","icvDiag","dgDiag","icvFore","icvBack","fsxButton","parse_XF","fStyle","write_XF","ixfeP","parse_Guts","write_Guts","guts","parse_BoolErr","write_BoolErr","parse_Number","xnum","write_Number","parse_XLHeaderFooter","parse_SupBook","ctab","sbcch","virtPath","rgst","parse_ExternName","fBuiltIn","fWantAdvise","fWantPict","fOle","fOleLink","fIcon","Name","XLSLblBuiltIn","parse_Lbl","chKey","cce","itab","npflen","rgce","parse_NameParsedFormula","parse_ExternSheet","parse_BIFF5ExternSheet","parse_NameCmt","cchName","cchComment","comment","parse_ShrFmla","ref","cUse","parse_SharedParsedFormula","parse_Array","parse_ArrayParsedFormula","parse_MTRSettings","fMTREnabled","fUserSetThreadCount","cUserThreadCount","parse_NoteSh","idObj","stAuthor","parse_Note","parse_MergeCells","merges","cmcs","write_MergeCells","parse_Obj","parse_BIFF5Obj","cmo","parse_BIFF5OT","parse_TxO","texts","lastobj","controlInfo","cchText","parse_HLink","hlink","write_HLink","parse_HLinkTooltip","wzTooltip","write_HLinkTooltip","parse_Country","write_Country","parse_ClrtClient","ccv","parse_Palette","parse_XFCRC","cxfs","crc","parse_ColInfo","coldx","write_ColInfo","parse_Setup","footer","parse_ShtProps","area","write_RRTabId","parse_Blank","parse_Scl","parse_String","parse_ImData","env","lcb","parse_BIFF2STR","parse_BIFF2NUM","num","write_BIFF2NUM","write_BIFF2Cell","parse_BIFF2INT","write_BIFF2INT","parse_BIFF2STRING","parse_BIFF2FONTXTRA","parse_RString","DBF","dbf_codepage_map","100","101","102","103","104","106","107","120","121","122","123","124","125","126","150","151","152","200","201","202","203","37","38","87","88","89","108","135","dbf_reverse_map","DBF_SUPPORTED_VERSIONS","dbf_to_aoa","memo","vfp","l7","nrow","fpos","rlen","current_cp","codepage","fields","field","hend","sheetRows","dbf_to_sheet","dbf_to_workbook","_RLEN","?","","sheet_to_dbf","aoa","sheet_to_json","headers","hcnt","coltypes","guess","_guess","hf","_f","hb","rout","_s","to_workbook","to_sheet","from_sheet","SYLK","sylk_escapes","AA","BA","CA","DA","HA","JA","AE","BE","CE","HE","AI","BI","CI","HI","AO","BO","CO","DO","HO","AU","BU","CU","HU","Aa","Ba","Ca","Da","Ha","Ja","Ae","Be","Ce","He","Ai","Bi","Ci","Hi","Ao","Bo","Co","Do","Ho","Au","Bu","Cu","Hu","KC","Kc","DN","Dn","Hy","B ","!","\"","#","(","%","'","H ","+",";","<","=",">","{","sylk_char_regex","sylk_char_fn","_","decode_sylk_char","newcc","sylk_to_aoa","sylk_to_aoa_str","records","rj","formats","next_cell_format","sht","rowinfo","colinfo","cw","Mval","rstr","record","C_seen_K","C_seen_X","C_seen_S","C_seen_E","formula","rc_to_a1","shrbase","shift_formula_str","F_seen","wch","process_col","hpx","pt2px","sylk_to_sheet","aoasht","sylk_to_workbook","write_ws_cell_sylk","a1_to_rc","write_ws_cols_sylk","cols","rec","wpx","width2px","px2char","write_ws_rows_sylk","rows","px2pt","sheet_to_sylk","RS","coord","DIF","dif_to_aoa","dif_to_aoa_str","metadata","dif_to_sheet","dif_to_workbook","sheet_to_dif","push_field","pf","topic","push_value","po","ETH","eth_to_aoa","eth_to_sheet","eth_to_workbook","sep","meta","sheet_to_eth_data","sheet_to_eth","PRN","set_text_arr","prn_to_aoa_str","lines","guess_seps","guess_sep_weights","guess_sep","instr","dsv_to_sheet_str","FS","sepcc","startcc","_re","finish_cell","fuzzyfmla","cellText","cellNF","outer","prn_to_sheet_str","prn_to_sheet","firstbyte","prn_to_workbook","sheet_to_prn","read_wb_ID","OLD_WTF","WK_","lotushopper","Enum","WK1Enum","lotus_to_workbook","lotus_to_workbook_buf","next_n","sidx","snames","realnames","refguess","vers","qpro","tmpcell","WK3Enum","osheets","rnames","!ref","sheet_to_wk1","write_biff_rec","write_BOF_WK1","write_RANGE","max_R","write_INTEGER","write_NUMBER","write_LABEL","book_to_wk3","write_BOF_WK3","write_XFORMAT_SHEETNAME","wsidx","write_NUMBER_17","write_LABEL_16","wscnt","parse_RANGE","parse_cell","parse_LABEL","parse_INTEGER","parse_NUMBER","parse_FORMULA","wk1_fmla_to_csf","wk1_parse_rc","oprec","FuncTab","83","111","BinOpTab","argc","argL","argR","args","parse_cell_3","parse_LABEL_16","parse_NUMBER_18","parse_NUMBER_17","v1","v2","log2","parse_FORMULA_19","parse_NUMBER_25","parse_NUMBER_27","parse_FORMULA_28","parse_SHEETNAMECS","parse_SHEETNAMELP","parse_SHEETINFOQP","parse_XFORMAT","40","142","147","153","154","155","156","174","175","176","184","185","187","188","195","205","206","207","208","256","259","260","261","262","263","265","266","267","268","270","271","384","389","390","393","396","512","514","513","516","517","640","641","642","643","644","645","646","647","648","658","659","660","661","662","665","666","768","772","1537","1600","1602","1793","1794","1795","1796","1920","2048","2049","2052","2688","10998","12849","28233","28484","parse_rpr","rpr","pass","uval","family","valign","parse_rs","tregex","rpregex","parse_r","rregex","rend","rs","filter","rs_to_html","parse_rs_factory","nlregex","parse_rpr2","intro","outro","align","r_to_html","terms","sitregex","sirregex","sirphregex","parse_si","cellHTML","sstr0","sstr1","sstr2","parse_sst_xml","count","uniqueCount","SST","straywsregex","write_sst_xml","bookSST","sitag","parse_BrtBeginSst","parse_sst_bin","hopper_sst","R_n","write_BrtBeginSst","write_BrtSSTItem","write_sst_bin","_JS2ANSI","parse_CRYPTOVersion","Major","Minor","parse_DataSpaceVersionInfo","U","parse_DataSpaceMapEntry","comps","parse_DataSpaceMap","parse_DataSpaceDefinition","parse_TransformInfoHeader","parse_Primary","ename","cmode","parse_EncryptionHeader","AlgID","valid","AlgIDHash","KeySize","ProviderType","CSPName","parse_EncryptionVerifier","Salt","Verifier","VerifierHash","parse_EncryptionInfo","parse_EncInfoStd","parse_EncInfoExt","parse_EncInfoAgl","verifier","KeyData","xml_agile","encryptedHmacKey","encryptedHmacValue","encs","uri","parse_RC4CryptoHeader","EncryptionVersionInfo","EncryptionHeader","EncryptionVerifier","parse_RC4Header","EncryptedVerifier","EncryptedVerifierHash","crypto_CreatePasswordVerifier_Method1","Password","PasswordArray","PasswordDecoded","PasswordByte","Intermediate1","Intermediate2","Intermediate3","crypto_CreateXorArray_Method1","PadArray","InitialCode","XorMatrix","Ror","Byte","XorRor","byte1","byte2","CreateXorKey_Method1","XorKey","CurrentElement","Char","password","Index","ObfuscationArray","Temp","PasswordLastChar","PadIndex","crypto_DecryptData_Method1","Data","XorArrayIndex","XorArray","Value","crypto_MakeXorDecryptor","parse_XORObfuscation","verificationBytes","insitu","parse_FilePassHeader","Info","parse_FilePass","RTF","rtf_to_sheet","rtf_to_sheet_str","rowtf","rtfre","last_index","lastIndex","rtf_to_workbook","sheet_to_rtf","hex2RGB","rgb2HSL","G","H6","L2","hsl2RGB","hsl","h6","X","rgb_tint","DEF_MDW","MAX_MDW","MIN_MDW","MDW","px","char2width","chr","cycle_width","collw","find_mdw_colw","delta","_MDW","coll","customWidth","DEF_PPI","PPI","pt","XLMLPatternTypeMap","None","Solid","Gray50","Gray75","Gray25","HorzStripe","VertStripe","ReverseDiagStripe","DiagStripe","DiagCross","ThickDiagCross","ThinHorzStripe","ThinVertStripe","ThinReverseDiagStripe","ThinHorzCross","parse_borders","Borders","border","diagonalUp","diagonalDown","parse_fills","Fills","bgColor","indexed","fgColor","parse_fonts","Fonts","bold","underline","vertAlign","scheme","themeElements","clrScheme","parse_numFmts","NumberFmt","formatCode","write_numFmts","NF","cellXF_uint","cellXF_bool","parse_cellXfs","CellXf","xf","alignment","vertical","horizontal","textRotation","indent","wrapText","write_cellXfs","cellXfs","parse_sty_xml","make_pstyx","numFmtRegex","cellXfRegex","fillsRegex","fontsRegex","bordersRegex","STYLES_XML_ROOT","STY","write_sty_xml","parse_BrtFmt","stFmtCode","write_BrtFmt","parse_BrtFont","bls","bCharSet","charset","write_BrtFont","sss","XLSBFillPTNames","rev_XLSBFillPTNames","parse_BrtFill","write_BrtFill","fls","parse_BrtXF","ixfeParent","ifmt","write_BrtXF","flow","write_Blxf","parse_BrtBorder","write_BrtBorder","write_BrtStyle","xfId","builtinId","write_BrtBeginTableStyles","defTableStyle","defPivotStyle","parse_sty_bin","hopper_sty","write_FMTS_bin","write_FONTS_bin","write_FILLS_bin","write_BORDERS_bin","write_CELLSTYLEXFS_bin","fontId","fillId","borderId","write_CELLXFS_bin","write_STYLES_bin","write_DXFS_bin","write_TABLESTYLES_bin","write_COLORPALETTE_bin","write_sty_bin","THEME","XLSXThemeClrScheme","parse_clrScheme","lastClr","parse_fontScheme","parse_fmtScheme","clrsregex","fntsregex","fmtsregex","parse_themeElements","themeltregex","parse_theme_xml","write_theme","Themes","themeXLSX","parse_Theme","dwThemeVersion","themeXML","parse_ColorTheme","parse_FullColorExt","xclrType","nTintShade","xclrValue","parse_IcvXF","parse_XFExtGradient","parse_ExtProp","extType","parse_XFExt","cexts","update_xfext","xfext","xfe","parse_cc_xml","parse_BrtCalcChainItem$","parse_cc_bin","hopper_cc","parse_xlink_xml","parse_xlink_bin","xlink_parse","IMG","DRAW","parse_drawing","_shapeid","write_comments_vml","csize","bbox","xmlns:v","xmlns:o","xmlns:x","xmlns:mv","v:ext","joinstyle","gradientshapeok","o:connecttype","o:spt","coordsize","fillopts","color2","angle","fillparm","fillxml","shadata","on","obscured","fillcolor","strokecolor","CMNT","sheet_insert_comments","author","parse_comments_xml","authors","commentList","authtag","cmnttag","cm","authorId","textMatch","CMNT_XML_ROOT","write_comments_xml","iauthor","parse_BrtBeginComment","rfx","write_BrtBeginComment","parse_BrtCommentAuthor","write_BrtCommentAuthor","parse_comments_bin","hopper_cmnt","write_comments_bin","CT_VBA","make_vba_xls","newcfb","newpath","fill_vba_xls","VBAFMTS","DS","MS","parse_ds_bin","!type","parse_ds_xml","parse_ms_bin","parse_ms_xml","rcregex","rcbase","rcfunc","fstr","crefregex","$0","$4","$5","shift_formula_xlsx","_xlfn","parseread1","parse_ColRelU","parse_RgceArea","parse_RgceArea_BIFF2","parse_RgceAreaRel","parse_RgceLoc","parse_RgceLoc_BIFF2","parse_RgceElfLoc","fQuoted","parse_RgceLocRel","parse_RgceLocRel_BIFF2","cl","rl","parse_PtgArea","parse_PtgArea3d","ixti","parse_PtgAreaErr","parse_PtgAreaErr3d","parse_PtgAreaN","parse_PtgArray","parse_PtgAttrBaxcel","bitSemi","bitBaxcel","parse_PtgAttrChoose","parse_PtgAttrGoto","bitGoto","parse_PtgAttrIf","bitIf","parse_PtgAttrIfError","parse_PtgAttrSemi","parse_PtgAttrSpaceType","parse_PtgAttrSpace","parse_PtgAttrSpaceSemi","parse_PtgRef","parse_PtgRefN","parse_PtgRef3d","parse_PtgFunc","iftab","FtabArgc","Ftab","parse_PtgFuncVar","cparams","tab","parsetab","Cetab","parse_PtgAttrSum","parse_PtgExp","parse_PtgErr","parse_PtgInt","parse_PtgBool","parse_PtgNum","parse_PtgStr","parse_SerAr","parse_PtgExtraMem","parse_PtgExtraArray","parse_PtgName","nameindex","parse_PtgNameX","parse_PtgNameX_BIFF5","parse_PtgMemArea","parse_PtgMemFunc","parse_PtgRefErr","parse_PtgRefErr3d","parse_PtgMemErr","parse_PtgMemNoMem","parse_PtgTbl","parse_PtgElfLoc","parse_PtgElfNoop","parse_PtgElfCol","parse_PtgElfColS","parse_PtgElfColSV","parse_PtgElfColV","parse_PtgElfLel","parse_PtgElfRadical","parse_PtgElfRadicalLel","parse_PtgElfRadicalS","parse_PtgElfRw","parse_PtgElfRwV","PtgListRT","parse_PtgList","coltype","parse_PtgSxName","parse_PtgSheet","parse_PtgEndSheet","parse_PtgMemAreaN","parse_PtgMemNoMemN","parse_PtgAttrNoop","PtgTypes","PtgDupes","96","97","98","99","109","110","91","92","93","Ptg18","Ptg19","parse_RgbExtra","parse_Rgce","ptgs","stringify_array","PtgBinOp","PtgAdd","PtgConcat","PtgDiv","PtgEq","PtgGe","PtgGt","PtgLe","PtgLt","PtgMul","PtgNe","PtgPower","PtgSub","quoteCharacters","formula_quote_sheet_name","sname","get_ixti_raw","supbooks","XTI","SID","get_ixti","ixtiraw","stringify_formula","stack","nameidx","last_sp","sp","fflen","func","lbl","names","bookidx","externbook","ixtidata","lp","rp","sharedf","parsedf","fnd","arrayf","PtgNonDisp","_left","rgcb","parse_XLSCellParsedFormula","parse_FormulaValue","write_FormulaValue","parse_Formula","cbf","shared","write_Formula","o1","o3","bf","parse_XLSBParsedFormula","parse_XLSBArrayParsedFormula","parse_XLSBCellParsedFormula","parse_XLSBNameParsedFormula","parse_XLSBSharedParsedFormula","85","94","95","112","113","114","115","116","117","118","119","127","131","132","133","137","138","139","140","143","144","145","146","148","149","159","164","166","167","168","169","170","171","172","173","189","190","191","192","193","194","196","197","198","199","209","210","211","212","214","215","217","219","220","223","224","225","226","227","228","229","240","243","249","250","251","252","253","254","269","272","273","274","276","277","278","279","280","281","282","283","284","285","288","289","290","291","292","293","295","296","297","298","302","305","306","307","308","309","310","311","312","313","314","315","316","318","319","320","321","322","323","324","325","328","330","336","338","339","342","343","344","350","352","355","356","370","373","374","375","376","377","378","379","380","381","382","383","385","386","388","391","392","394","395","397","398","399","400","412","413","414","415","416","417","421","422","423","424","425","430","431","432","433","434","435","436","437","438","439","440","441","442","443","444","445","446","447","448","449","450","451","452","453","454","455","456","458","459","460","461","462","463","464","465","466","467","468","469","470","471","472","473","474","475","476","477","478","480","481","482","485","489","491","493","494","495","509","510","511","518","519","520","521","522","523","545","546","547","548","549","620","621","653","667","673","753","755","808","141","157","158","160","165","179","180","181","182","183","221","230","231","232","233","234","235","236","237","239","241","242","244","245","246","247","248","257","258","264","275","286","287","294","299","300","301","303","304","317","326","327","329","331","332","334","335","337","340","341","345","346","347","348","349","353","357","359","360","361","362","363","364","365","366","367","368","369","371","372","387","401","402","403","404","405","406","407","408","409","410","411","418","419","426","427","428","429","457","724","479","483","484","ods_to_csf_formula","csf_to_ods_formula","ods_to_csf_3D","csf_to_ods_3D","_ssfopts","WS","browser_has_Map","Map","get_sst_id","has","revarr","get","col_obj_w","outlineLevel","default_margins","margins","mode","defs","left","right","top","bottom","get_cell_style","revssf","ssf","applyNumberFormat","safe_format","fillid","raw_rgb","check_ws","parse_ws_xml_dim","mergecregex","sheetdataregex","hlinkregex","dimregex","colregex","afregex","marginregex","sheetprregex","sheetprregex2","svsregex","parse_ws_xml","data1","data2","mtch","sheetPr","parse_ws_xml_sheetpr","parse_ws_xml_sheetpr2","svs","parse_ws_xml_sheetviews","columns","parse_ws_xml_cols","parse_ws_xml_data","afilter","parse_ws_xml_autofilter","_merge","parse_ws_xml_hlinks","parse_ws_xml_margins","tmpref","write_ws_xml_merges","codeName","CodeName","write_ws_xml_sheetpr","needed","vbaraw","cname","Workbook","outlineprops","summaryBelow","summaryRight","above","sheetprot_deffalse","sheetprot_deftrue","write_ws_xml_protection","location","Rel","tooltip","rng","margin","write_ws_xml_margins","seencol","coli","colm","colM","write_ws_xml_cols","write_ws_xml_autofilter","Names","Sheet","Ref","sviewregex","Views","zoomScale","zoom","rightToLeft","write_ws_xml_sheetviews","sview","workbookViewId","write_ws_xml_cell","oldt","oldv","Strings","revStrings","cellregex","rowregex","isregex","refregex","match_v","match_f","sdata","cells","cref","tagr","tagc","sstr","ftag","do_format","rowobj","rowrite","marr","marrlen","xlen","rstarti","outa","ht","rslice","cellFormula","xlfn","___f","_tag","_r","write_ws_xml_data","params","height","_cell","customHeight","WS_XML_ROOT","xmlns:r","write_ws_xml","rdata","_drawing","sheetFormat","defaultRowHeight","baseColWidth","outlineLevelRow","relc","ignoreEC","numberStoredAsText","sqref","r:id","parse_BrtRowHdr","write_BrtRowHdr","ncolspan","lcs","caddr","first","last","write_row_header","parse_BrtWsDim","write_BrtWsDim","parse_BrtWsFmtInfo","parse_BrtWsProp","write_BrtWsProp","parse_BrtCellBlank","write_BrtCellBlank","ncell","parse_BrtShortBlank","write_BrtShortBlank","parse_BrtCellBool","fBool","write_BrtCellBool","parse_BrtShortBool","write_BrtShortBool","parse_BrtCellError","bError","write_BrtCellError","parse_BrtShortError","write_BrtShortError","parse_BrtCellIsst","write_BrtCellIsst","parse_BrtShortIsst","write_BrtShortIsst","parse_BrtCellReal","write_BrtCellReal","parse_BrtShortReal","write_BrtShortReal","parse_BrtCellRk","write_BrtCellRk","parse_BrtShortRk","write_BrtShortRk","parse_BrtCellRString","parse_BrtCellSt","write_BrtCellSt","parse_BrtShortSt","write_BrtShortSt","parse_BrtFmlaBool","parse_BrtFmlaError","parse_BrtFmlaNum","parse_BrtFmlaString","parse_BrtMergeCell","write_BrtMergeCell","write_BrtBeginMergeCells","parse_BrtHLink","relId","display","write_BrtHLink","locidx","parse_BrtPane","parse_BrtArrFmla","fAlwaysCalc","parse_BrtShrFmla","write_BrtColInfo","BrtMarginKeys","parse_BrtMargins","write_BrtMargins","parse_BrtBeginWsView","write_BrtBeginWsView","write_BrtCellIgnoreEC","write_BrtSheetProtection","parse_BrtDVal","parse_BrtDVal14","parse_ws_bin","ai","af","ws_parse","aii","_d","write_ws_bin_cell","last_seen","write_CELLTABLE","cap","write_MERGECELLS","write_COLINFOS","write_IGNOREECS","write_HLINKS","write_LEGACYDRAWING","write_AUTOFILTER","write_WSVIEWS2","write_WSFMTINFO","write_SHEETPROTECT","write_ws_bin","CHART","CHARTEX","parse_Cache","nf","parse_chart","csheet","nc","cache","CS","CS_XML_ROOT","parse_cs_xml","!drawel","!rel","write_cs_xml","parse_BrtCsProp","parse_cs_bin","cs_parse","write_cs_bin","WBPropsDef","WBViewDef","SheetDef","CalcPrDef","push_defaults_array","push_defaults","parse_wb_defaults","WBProps","CalcPr","WBView","safe1904","badchars","check_ws_name","_good","check_wb_names","N","codes","cn","check_wb","wbnsregex","parse_wb_xml","dname","dnstart","xml_wb","Hidden","Comment","localSheetId","WB_XML_ROOT","write_wb_xml","write_names","workbookPr","sheetId","parse_BrtBundleSh","iTabID","strRelID","write_BrtBundleSh","parse_BrtWbProp","defaultThemeVersion","strName","autoCompressPictures","backupFile","checkCompatibility","filterPrivacy","hidePivotFieldList","promptedSolutions","publishItems","refreshAllConnections","saveExternalLinkValues","showBorderUnselectedTables","showInkAnnotation","showObjects","showPivotChartFilter","updateLinks","write_BrtWbProp","parse_BrtFRTArchID$","ArchID","parse_BrtName","Ptg","parse_wb_bin","hopper_wb","write_BUNDLESHS","viz","write_BrtFileVersion","write_BrtBookView","write_BOOKVIEWS","vistab","write_wb_bin","parse_wb","parse_ws","parse_cs","parse_ms","parse_ds","parse_sty","parse_theme","parse_sst","parse_cmnt","parse_cc","parse_xlink","write_wb","write_ws","write_cs","write_sty","write_sst","write_cmnt","attregexg2","attregex2","xlml_parsexmltag","words","xlml_parsexmltagobj","xlml_format","xlml_set_custprop","oval","safe_format_xlml","process_style_xlml","stag","Interior","I","Pattern","ID","parse_xlml_data","csty","sid","StyleID","interiors","Parent","UTC","Formula","ArrayRange","xlml_clean_comment","parse_xlml_xml","opening","ishtml","_o","HTML_","sheetnames","cursheet","sheetname","dtag","didx","fidx","pidx","cstys","wsprops","raw_Rn3","HRef","HRefScreenTip","MergeAcross","MergeDown","cma","cmd","AutoFitHeight","Height","Format","ssfidx","Width","_col","Span","_NamedRange","_DefinedName","RefersTo","AutoFilter","Range","parse_fods","Margin","pagemargins","Top","Left","Right","Bottom","bookSheets","bookProps","parse_xlml","fix_read_opts","write_props_xlml","write_wb_xlml","write_sty_xlml","ss:Format","ss:ID","write_name_xlml","ss:Name","ss:RefersTo","write_names_xlml","write_ws_xlml_names","write_ws_xlml_wsopts","x:Margin","x:Bottom","x:Left","x:Right","x:Top","objects","scenarios","selectLockedCells","selectUnlockedCells","write_ws_xlml_comment","ss:Author","write_ws_xlml_cell","attr","mi","_v","write_ws_xlml_row","write_ws_xlml_table","ss:Index","skip","write_ws_xlml","write_xlml","General","xmlns:ss","xmlns:dt","xmlns:html","parse_compobj","AnsiUserType","AnsiClipboardFormat","Reserved1","UnicodeClipboardFormat","Reserved2","slurp","XLSRecordEnum","ll","safe_format_xf","make_cell","parse_workbook","Directory","last_formula","cur_sheet","Preamble","lastcell","last_cell","cmnt","rngC","rngR","temp_val","country","XFs","palette","get_rgb","getrgb","process_cell_style","pcs","xfd","addcell","file_depth","afi","rrtabid","lastuser","winlocked","wtf","defwidth","defheight","last_Rn","BIFF2Fmt","BIFF2FmtTable","FilterDatabases","last_lbl","seen_codepage","RecordType","Date1904","WriteProtect","cpval","CalcRefMode","FullCalc","ExternCount","tmpri","1033","1024","1280","1536","fakebs8","_fr","_fc","_fe","_arraystart","_j","_ixfe","b4idx","b2idx","TxO","ImData","noteobj","Encryption","Metadata","Country","PSCLSID","SI","DSI","UDI","parse_xls_props","DocSummary","Summary","write_xls_props","DSEntries","SEntries","CEntries","Keys","CEntries2","parse_xlscfb","CompObj","WorkbookP","bookVBA","bookFiles","write_xlscfb","wbpath","write_biff_buf","333","486","487","488","490","492","496","497","498","499","500","501","502","503","504","505","506","507","508","515","524","525","526","527","528","529","530","531","532","533","534","535","536","537","538","539","540","541","542","550","551","552","553","554","555","556","557","558","559","560","561","562","564","565","566","569","570","572","573","574","577","578","579","580","581","582","583","584","585","586","587","588","589","590","591","592","593","594","595","596","597","598","599","600","601","602","603","604","605","606","607","608","609","610","611","612","613","614","615","616","617","618","619","625","626","627","628","629","630","631","632","633","634","635","636","637","638","639","649","650","651","652","654","655","656","657","663","664","668","669","671","672","674","675","676","677","678","679","680","681","1025","1026","1027","1028","1029","1030","1031","1032","1034","1035","1036","1037","1038","1039","1040","1041","1042","1043","1044","1045","1046","1047","1048","1049","1050","1051","1052","1053","1054","1055","1056","1057","1058","1059","1061","1062","1063","1064","1065","1066","1067","1068","1069","1070","1071","1072","1073","1075","1076","1077","1078","1079","1080","1081","1082","1083","1084","1085","1086","1087","1088","1089","1090","1091","1092","1093","1094","1095","1096","1097","1098","1099","1100","1101","1102","1103","1104","1105","1111","1112","1113","1114","1115","1116","1117","1118","1119","1120","1121","1122","1123","1124","1125","1126","1128","1129","1130","1131","1132","1133","1134","1135","1136","1137","1138","1139","1140","1141","1142","1143","1144","1145","1146","1147","1148","1149","1150","1152","1153","1154","1155","1156","1157","1158","1159","1160","1161","1162","1163","1164","1165","1166","1167","1168","1169","1170","1171","1172","1173","1177","1178","1180","1181","1182","2050","2051","2053","2054","2055","2056","2057","2058","2060","2067","2068","2069","2070","2071","2072","2073","2075","2076","2077","2078","2079","2080","2081","2082","2083","2084","2085","2086","2087","2088","2089","2090","2091","2092","2093","2094","2095","2096","2097","2098","2099","2100","2101","2102","2103","2104","2105","2106","2107","2108","2109","2110","2111","2112","2113","2114","2115","2116","2117","2118","2119","2120","2121","2122","2123","2124","2125","2126","2127","2128","2129","2130","2131","2132","2133","2134","2135","2136","2137","2138","2139","2140","2141","3072","3073","5095","5096","5097","1212","2059","2061","2062","2063","2064","2066","2146","2147","2148","2149","2150","2151","2152","2154","2155","2156","2161","2162","2164","2165","2166","2167","2168","2169","2170","2171","2172","2173","2174","2175","2180","2181","2182","2183","2184","2185","2186","2187","2188","2189","2190","2191","2192","2194","2195","2196","2197","2198","2199","2200","2201","2202","2203","2204","2205","2206","2207","2211","2212","2213","2214","2215","4097","4098","4099","4102","4103","4105","4106","4107","4108","4109","4116","4117","4118","4119","4120","4121","4122","4123","4124","4125","4126","4127","4128","4129","4130","4132","4133","4134","4135","4146","4147","4148","4149","4154","4156","4157","4158","4159","4160","4161","4163","4164","4165","4166","4168","4170","4171","4174","4175","4176","4177","4187","4188","4189","4191","4192","4193","4194","4195","4196","4197","4198","4199","4200","2157","2163","2177","2240","2241","2242","2243","2244","2245","2246","2247","2248","2249","2250","2251","2262","29282","XLSRE","write_biff_continue","write_BIFF2BERR","write_BIFF2LABEL","write_ws_biff2_cell","write_ws_biff2","write_biff2_buf","write_FONTS_biff8","write_FMTS_biff8","write_FEAT","write_CELLXFS_biff8","write_ws_biff8_hlinks","HL","write_ws_cols_biff8","write_ws_biff8_cell","write_ws_biff8","_WB","_sheet","MAX_ROWS","write_biff8_global","_sheets","_wb","blen","write_biff8_buf","fix_write_opts","html_to_sheet","mtch2","hd","midx","colspan","rowspan","_t","html_to_book","book_new","book_append_sheet","make_html_row","editable","make_html_preamble","_BEGIN","_END","sheet_to_html","_row","BEGIN","END","_preamble","sheet_add_dom","or_R","or_C","getElementsByTagName","is_dom_element_hidden","elts","hasAttribute","getAttribute","innerHTML","Aelts","Aelti","parse_dom_table","table_to_book","element","get_computed_style","get_get_computed_style_function","getPropertyValue","ownerDocument","defaultView","getComputedStyle","parse_content_xml","parse_text_p","fixed","number_formats","day","month","year","hours","minutes","seconds","am-pm","day-of-week","era","quarter","pcx","NFtag","sheetag","rowtag","ctag","textp","textpidx","textptag","textR","row_ol","number_format_map","mrange","mR","mC","rowpeat","colpeat","atag","_Ref","creator","creatoridx","isstub","intable","rptR","rpt","nrange","ptp","parse_ods","write_styles_ods","master_styles","xmlns:office","xmlns:table","xmlns:style","xmlns:text","xmlns:draw","xmlns:fo","xmlns:xlink","xmlns:number","xmlns:svg","xmlns:of","office:version","wso","write_content_ods","write_text_p","null_cell_xml","covered_cell_xml","ods","ROWS","_Fref","text_p","_tgt","xlink:href","write_automatic_styles_ods","cidx","colobj","wcx","xmlns:meta","xmlns:presentation","xmlns:chart","xmlns:dr3d","xmlns:math","xmlns:form","xmlns:script","xmlns:ooo","xmlns:ooow","xmlns:oooc","xmlns:dom","xmlns:xforms","xmlns:sheet","xmlns:rpt","xmlns:xhtml","xmlns:grddl","xmlns:tableooo","xmlns:drawooo","xmlns:calcext","xmlns:loext","xmlns:field","xmlns:formx","xmlns:css3t","fods","xmlns:config","office:mimetype","write_ods","NUMBERS","defineProperty","__defProp","__getOwnPropDesc","getOwnPropertyDescriptor","__getOwnPropNames","getOwnPropertyNames","__hasOwnProp","__markAsModule","__export","all","enumerable","__reExport","copyDefault","__toCommonJS","temp","WeakMap","numbers_exports","parse_numbers","numbers_default","u8_to_dataview","array","DataView","buffer","byteOffset","byteLength","u8str","u8","TextDecoder","u8concat","u8a","reduce","acc","popcnt","readDecimal128LE","exp","mantissa","parse_varint49","ptr","varint","varint_to_i32","i32","parse_shallow","mappa","_a","deframe","parse_snappy_chunk","chunks","parse_iwa","messages","parse_old_storage","rsst","dv","getUint32","data_offset","ieee","getFloat64","parse_storage","d128","packets","packet","docroot","iwams","iwam","mtype","parse_docroot","parse_Reference","pb","parse_TST_TableDataList","le","rtp","rtpref","tswpsa","parse_TST_TileRowInfo","_b","_c","_e","_g","_h","_i","pre_bnc","pre_bnc_offsets","storage_offsets","wide_offsets","getUint16","parse_TST_Tile","parse_TST_TableModelArchive","store","tile","tiles","tl","tile2","parse_TST_TableInfoArchive","tableref","parse_sheetroot","shapeoffs","sheetoffs","root2","fix_opts_func","fix_opts","get_sheet_type","safe_parse_wbrels","wbrels","pwbr","safe_parse_sheet","relsPath","sheetRels","stype","dfile","drelsp","draw","chartp","crelsp","strip_front_slash","_zip","dir","binname","link","propdata","pluck","deps","bookDeps","wbsheets","wbext","wbrelsi","wbrelsfile","nmode","wsloop","snjseen","snj","Deps","Styles","bin","parse_xlsxcfb","dsm","seds","einfo","decrypt_agile","decrypt_std76","write_zip_xlsxb","foo","vbafmt","_sn","wsrels","_type","need_vml","rId1","write_zip_xlsx","read_cfb","read_zip","read_plaintext","read_plaintext_raw","read_utf16","bstrify","read_prn","readSync","ab","vu","write_obj_str","write_str","write_htm_str","write_csv_str","sheet_to_csv","write_slk_str","write_dif_str","write_prn_str","write_rtf_str","write_txt_str","sheet_to_txt","write_dbf_buf","write_eth_str","write_wk1_buf","write_cfb_ctr","write_zip_type","write_zip_denouement","write_zip_typeXLSX","oopts","nodebuffer","string","generate","encrypt_agile","write_cfb_type","write_string_type","bom","write_stxt_type","write_binary_type","writeSyncXLSX","writeSync","resolve_book_type","_BT","xls","slk","socialcalc","Sh33tJS","writeFileSyncXLSX","writeFileAsync","_cb","Function","make_json_row","defval","isempty","__rowNum__","rawNumbers","outi","counter","CC","blankrows","qreg","make_csv_row","txt","forceQuotes","endregex","skipHidden","strip","sheet_to_formulae","cmds","sheet_add_json","js","skipHeader","JS","sheet_get_cell","json_to_sheet","table_to_sheet","sheet_to_row_object_array","add_consts","get_default","ws_get_cell_stub","RC","wb_sheet_idx","sh","book_set_sheet_visibility","vis","cell_set_number_format","cell_set_hyperlink","cell_set_internal_link","cell_add_comment","sheet_set_array_formula","rngstr","strmod","Readable","write_csv_stream","stream","BOM","_read","write_html_stream","write_json_stream","objectMode","to_json","to_html","to_csv","readFile","writeXLSX","writeFileXLSX","define","amd"],"mappings":";AAAA,GAAIA,wBAAyB,ICI7B,IAAIC,QACJ,SAASC,eAAcD,GACvBA,EAAKE,QAAU,QACf,IAAIC,GAAmB,KAAMC,EAAe,IAE5C,UAAUC,UAAW,mBAAsBC,WAAY,YAAa,CACnE,SAAUC,WAAY,YAAa,CAClC,SAAUC,UAAW,YAAaA,OAAOD,QAAUE,cAC9C,UAAUC,UAAW,YAAaA,OAAOH,QAAUE,WAI1D,GAAIE,IAAe,IAAK,IAAK,IAAK,IAAK,IAAK,IAC5C,KAAI,GAAIC,GAAI,EAAGA,GAAK,IAAKA,EAAGD,EAAWE,KAAK,KAAOD,EAEnD,IAAIE,IACJC,EAAM,KACNC,EAAK,MACLC,EAAK,MACLC,GAAK,IACLC,IAAO,IACPC,IAAO,IACPC,IAAM,KACNC,IAAO,IACPC,IAAO,IACPC,IAAM,KACNC,IAAM,KACNC,IAAM,KACNC,IAAM,KACNC,IAAM,KACNC,IAAM,KACNC,IAAM,KACNC,IAAO,IACPC,IAAM,KACNC,IAAM,KACNC,GAAM,KAGN,IAAIC,GAAW,SAASC,GAAM,GAAGzB,EAAW0B,QAAQD,KAAQ,EAAG,MAAQhC,GAAeU,EAAM,GAAKsB,EACjG,SAASE,KAAeH,EAAS,MAEjC,GAAII,GAA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AK,OACLnjD,IAAK,OACLqjD,IAAK,UACLC,IAAK,UACLoM,IAAK,QACLn5F,IAAK,MACLgtF,IAAK,OACLC,IAAK,UACLC,IAAK,SACLC,IAAK,WACLC,IAAK,SACLC,IAAK,aACLC,IAAK,OACL8L,IAAK,OACLC,IAAK,OACLC,IAAK,QACLC,IAAK,QACLC,IAAK,QACLC,IAAK,OACLC,IAAK,gBACLC,IAAK,WACL15F,IAAK,aACL25F,IAAK,cACLrM,IAAK,gBACLsM,IAAK,kBACLC,IAAK,gBACLtM,IAAK,WACLuM,IAAK,OACLC,IAAK,QACLC,IAAK,aACLC,IAAK,KACLC,IAAK,QACLxM,IAAK,SACLC,IAAK,YACLC,IAAK,cACLC,IAAK,iBACL5tF,IAAK,OACLikE,IAAK,gBACLi2B,IAAK,WACLC,IAAK;AACLj2B,IAAK,WACLC,IAAK,iBACLC,IAAK,aACLC,IAAK,YACLC,IAAK,eACL81B,IAAK,eACL71B,IAAK,cACLC,IAAK,aACLC,IAAK,cACLC,IAAK,eACLmpB,IAAK,SACLlpB,IAAK,WACLC,IAAK,UACLkpB,IAAK,UACLC,IAAK,YACLC,IAAK,UACLqM,IAAK,SACLpM,IAAK,SACLC,IAAK,aACLC,IAAK,YACLC,IAAK,OACLC,IAAK,YACLC,IAAK,QACLC,IAAK,OACLC,IAAK,SACLC,IAAK,YACLC,IAAK,QACL4L,IAAK,YACLC,IAAK,WACL5L,IAAK,UACLC,IAAK,cACLC,IAAK,cACLC,IAAK,SACLC,IAAK,eACLC,IAAK,WACLwL,IAAK,YACLvL,IAAK,UACLC,IAAK,WACLC,IAAK,cACLC,IAAK,MACLqL,IAAK,SACLC,IAAK,UACLC,IAAK,QACLtL,IAAK,UACLuL,IAAK,UACLC,IAAK,WACLvL,IAAK,WACLC,IAAK,UACLC,IAAK,SACLC,IAAK,QACLC,IAAK,WACLC,IAAK,QACLC,IAAK,YACLC,IAAK,UACLC,IAAK,MACLC,IAAK,QACLC,IAAK,QACLC,IAAK,QAC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mini.min.js index a3bfa21..637eb0c 100644 --- a/dist/xlsx.mini.min.js +++ b/dist/xlsx.mini.min.js @@ -1,9 +1,9 @@ /*! xlsx.js (C) 2013-present SheetJS -- http://sheetjs.com */ -var DO_NOT_EXPORT_CODEPAGE=true;var XLSX={};function make_xlsx_lib(e){e.version="0.18.2";var r=1200,t=1252;if(typeof module!=="undefined"&&typeof require!=="undefined"){if(typeof cptable==="undefined"){if(typeof global!=="undefined")global.cptable=require("./dist/cpexcel.js");else if(typeof window!=="undefined")window.cptable=require("./dist/cpexcel.js")}}var a=[874,932,936,949,950,1e4];for(var n=0;n<=8;++n)a.push(1250+n);var i={0:1252,1:65001,2:65001,77:1e4,128:932,129:949,130:1361,134:936,136:950,161:1253,162:1254,163:1258,177:1255,178:1256,186:1257,204:1251,222:874,238:1250,255:1252,69:6969};var s=function(e){if(a.indexOf(e)==-1)return;t=i[0]=e};function o(){s(1252)}var l=function(e){r=e;s(e)};function c(){l(1200);o()}function f(e){var r=[];for(var t=0,a=e.length;t>1;++t)r[t]=String.fromCharCode(e.charCodeAt(2*t)+(e.charCodeAt(2*t+1)<<8));return r.join("")}function h(e){var r=[];for(var t=0;t>1;++t)r[t]=String.fromCharCode(e.charCodeAt(2*t+1)+(e.charCodeAt(2*t)<<8));return r.join("")}var d=function(e){var r=e.charCodeAt(0),t=e.charCodeAt(1);if(r==255&&t==254)return u(e.slice(2));if(r==254&&t==255)return h(e.slice(2));if(r==65279)return e.slice(1);return e};var p=function el(e){return String.fromCharCode(e)};var v=function rl(e){return String.fromCharCode(e)};if(typeof cptable!=="undefined"){l=function(e){r=e;s(e)};d=function(e){if(e.charCodeAt(0)===255&&e.charCodeAt(1)===254){return cptable.utils.decode(1200,f(e.slice(2)))}return e};p=function tl(e){if(r===1200)return String.fromCharCode(e);return cptable.utils.decode(r,[e&255,e>>8])[0]};v=function al(e){return cptable.utils.decode(t,[e])[0]}}var m=null;var g=true;var b=function(){var e="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=";return{encode:function(r){var t="";var a=0,n=0,i=0,s=0,o=0,l=0,c=0;for(var f=0;f>2;n=r.charCodeAt(f++);o=(a&3)<<4|n>>4;i=r.charCodeAt(f++);l=(n&15)<<2|i>>6;c=i&63;if(isNaN(n)){l=c=64}else if(isNaN(i)){c=64}t+=e.charAt(s)+e.charAt(o)+e.charAt(l)+e.charAt(c)}return t},decode:function(r){var t="";var a=0,n=0,i=0,s=0,o=0,l=0,c=0;r=r.replace(/[^\w\+\/\=]/g,"");for(var f=0;f>4;t+=String.fromCharCode(a);l=e.indexOf(r.charAt(f++));n=(o&15)<<4|l>>2;if(l!==64){t+=String.fromCharCode(n)}c=e.indexOf(r.charAt(f++));i=(l&3)<<6|c;if(c!==64){t+=String.fromCharCode(i)}}return t}}}();var w=typeof Buffer!=="undefined"&&typeof process!=="undefined"&&typeof process.versions!=="undefined"&&!!process.versions.node;var y=function(){};if(typeof Buffer!=="undefined"){var k=!Buffer.from;if(!k)try{Buffer.from("foo","utf8")}catch(x){k=true}y=k?function(e,r){return r?new Buffer(e,r):new Buffer(e)}:Buffer.from.bind(Buffer);if(!Buffer.alloc)Buffer.alloc=function(e){return new Buffer(e)};if(!Buffer.allocUnsafe)Buffer.allocUnsafe=function(e){return new Buffer(e)}}function S(e){return w?Buffer.alloc(e):typeof Uint8Array!="undefined"?new Uint8Array(e):new Array(e)}function _(e){return w?Buffer.allocUnsafe(e):typeof Uint8Array!="undefined"?new Uint8Array(e):new Array(e)}var C=function nl(e){if(w)return y(e,"binary");return e.split("").map(function(e){return e.charCodeAt(0)&255})};function A(e){if(typeof ArrayBuffer==="undefined")return C(e);var r=new ArrayBuffer(e.length),t=new Uint8Array(r);for(var a=0;a!=e.length;++a)t[a]=e.charCodeAt(a)&255;return r}function E(e){if(Array.isArray(e))return e.map(function(e){return String.fromCharCode(e)}).join("");var r=[];for(var t=0;t>6&31;n[t++]=128|s&63}else if(s>=55296&&s<57344){s=(s&1023)+64;var o=e.charCodeAt(++i)&1023;n[t++]=240|s>>8&7;n[t++]=128|s>>2&63;n[t++]=128|o>>6&15|(s&3)<<4;n[t++]=128|o&63}else{n[t++]=224|s>>12&15;n[t++]=128|s>>6&63;n[t++]=128|s&63}if(t>a){r.push(n.slice(0,t));t=0;n=S(65535);a=65530}}r.push(n.slice(0,t));return D(r)}var D=function(e){if(typeof Uint8Array!=="undefined"){var r=0,t=0;for(r=0;r=0)r+=e.charAt(t--);return r}function t(e,r){var t="";while(t.length=r?a:t("0",r-a.length)+a}function n(e,r){var a=""+e;return a.length>=r?a:t(" ",r-a.length)+a}function i(e,r){var a=""+e;return a.length>=r?a:a+t(" ",r-a.length)}function s(e,r){var a=""+Math.round(e);return a.length>=r?a:t("0",r-a.length)+a}function o(e,r){var a=""+e;return a.length>=r?a:t("0",r-a.length)+a}var l=Math.pow(2,32);function c(e,r){if(e>l||e<-l)return s(e,r);var t=Math.round(e);return o(t,r)}function f(e,r){r=r||0;return e.length>=7+r&&(e.charCodeAt(r)|32)===103&&(e.charCodeAt(r+1)|32)===101&&(e.charCodeAt(r+2)|32)===110&&(e.charCodeAt(r+3)|32)===101&&(e.charCodeAt(r+4)|32)===114&&(e.charCodeAt(r+5)|32)===97&&(e.charCodeAt(r+6)|32)===108}var u=[["Sun","Sunday"],["Mon","Monday"],["Tue","Tuesday"],["Wed","Wednesday"],["Thu","Thursday"],["Fri","Friday"],["Sat","Saturday"]];var h=[["J","Jan","January"],["F","Feb","February"],["M","Mar","March"],["A","Apr","April"],["M","May","May"],["J","Jun","June"],["J","Jul","July"],["A","Aug","August"],["S","Sep","September"],["O","Oct","October"],["N","Nov","November"],["D","Dec","December"]];function d(e){e[0]="General";e[1]="0";e[2]="0.00";e[3]="#,##0";e[4]="#,##0.00";e[9]="0%";e[10]="0.00%";e[11]="0.00E+00";e[12]="# ?/?";e[13]="# ??/??";e[14]="m/d/yy";e[15]="d-mmm-yy";e[16]="d-mmm";e[17]="mmm-yy";e[18]="h:mm AM/PM";e[19]="h:mm:ss AM/PM";e[20]="h:mm";e[21]="h:mm:ss";e[22]="m/d/yy h:mm";e[37]="#,##0 ;(#,##0)";e[38]="#,##0 ;[Red](#,##0)";e[39]="#,##0.00;(#,##0.00)";e[40]="#,##0.00;[Red](#,##0.00)";e[45]="mm:ss";e[46]="[h]:mm:ss";e[47]="mmss.0";e[48]="##0.0E+0";e[49]="@";e[56]='"上午/下午 "hh"時"mm"分"ss"秒 "'}var p={};d(p);var v=[];var m=0;for(m=5;m<=8;++m)v[m]=32+m;for(m=23;m<=26;++m)v[m]=0;for(m=27;m<=31;++m)v[m]=14;for(m=50;m<=58;++m)v[m]=14;for(m=59;m<=62;++m)v[m]=m-58;for(m=67;m<=68;++m)v[m]=m-58;for(m=72;m<=75;++m)v[m]=m-58;for(m=67;m<=68;++m)v[m]=m-57;for(m=76;m<=78;++m)v[m]=m-56;for(m=79;m<=81;++m)v[m]=m-34;var g=[];g[5]=g[63]='"$"#,##0_);\\("$"#,##0\\)';g[6]=g[64]='"$"#,##0_);[Red]\\("$"#,##0\\)';g[7]=g[65]='"$"#,##0.00_);\\("$"#,##0.00\\)';g[8]=g[66]='"$"#,##0.00_);[Red]\\("$"#,##0.00\\)';g[41]='_(* #,##0_);_(* \\(#,##0\\);_(* "-"_);_(@_)';g[42]='_("$"* #,##0_);_("$"* \\(#,##0\\);_("$"* "-"_);_(@_)';g[43]='_(* #,##0.00_);_(* \\(#,##0.00\\);_(* "-"??_);_(@_)';g[44]='_("$"* #,##0.00_);_("$"* \\(#,##0.00\\);_("$"* "-"??_);_(@_)';function b(e,r,t){var a=e<0?-1:1;var n=e*a;var i=0,s=1,o=0;var l=1,c=0,f=0;var u=Math.floor(n);while(cr){if(c>r){f=l;o=i}else{f=c;o=s}}if(!t)return[0,a*o,f];var h=Math.floor(a*o/f);return[h,a*o-h*f,f]}function w(e,r,t){if(e>2958465||e<0)return null;var a=e|0,n=Math.floor(86400*(e-a)),i=0;var s=[];var o={D:a,T:n,u:86400*(e-a)-n,y:0,m:0,d:0,H:0,M:0,S:0,q:0};if(Math.abs(o.u)<1e-6)o.u=0;if(r&&r.date1904)a+=1462;if(o.u>.9999){o.u=0;if(++n==86400){o.T=n=0;++a;++o.D}}if(a===60){s=t?[1317,10,29]:[1900,2,29];i=3}else if(a===0){s=t?[1317,8,29]:[1900,1,0];i=6}else{if(a>60)--a;var l=new Date(1900,0,1);l.setDate(l.getDate()+a-1);s=[l.getFullYear(),l.getMonth()+1,l.getDate()];i=l.getDay();if(a<60)i=(i+6)%7;if(t)i=E(l,s)}o.y=s[0];o.m=s[1];o.d=s[2];o.S=n%60;n=Math.floor(n/60);o.M=n%60;n=Math.floor(n/60);o.H=n;o.q=i;return o}e.parse_date_code=w;var y=new Date(1899,11,31,0,0,0);var k=y.getTime();var x=new Date(1900,2,1,0,0,0);function S(e,r){var t=e.getTime();if(r)t-=1461*24*60*60*1e3;else if(e>=x)t+=24*60*60*1e3;return(t-(k+(e.getTimezoneOffset()-y.getTimezoneOffset())*6e4))/(24*60*60*1e3)}function _(e){return e.toString(10)}e._general_int=_;var C=function W(){var e=/(?:\.0*|(\.\d*[1-9])0+)$/;function r(r){return r.indexOf(".")==-1?r:r.replace(e,"$1")}var t=/(?:\.0*|(\.\d*[1-9])0+)[Ee]/;var a=/(E[+-])(\d)$/;function n(e){if(e.indexOf("E")==-1)return e;return e.replace(t,"$1E").replace(a,"$10$2")}function i(e){var t=e<0?12:11;var a=r(e.toFixed(12));if(a.length<=t)return a;a=e.toPrecision(10);if(a.length<=t)return a;return e.toExponential(5)}function s(e){var t=r(e.toFixed(11));return t.length>(e<0?12:11)||t==="0"||t==="-0"?e.toPrecision(6):t}function o(e){var t=Math.floor(Math.log(Math.abs(e))*Math.LOG10E),a;if(t>=-4&&t<=-1)a=e.toPrecision(10+t);else if(Math.abs(t)<=9)a=i(e);else if(t===10)a=e.toFixed(10).substr(0,12);else a=s(e);return r(n(a.toUpperCase()))}return o}();e._general_num=C;function A(e,r){switch(typeof e){case"string":return e;case"boolean":return e?"TRUE":"FALSE";case"number":return(e|0)===e?e.toString(10):C(e);case"undefined":return"";case"object":if(e==null)return"";if(e instanceof Date)return U(14,S(e,r&&r.date1904),r);}throw new Error("unsupported value in General format: "+e)}e._general=A;function E(e,r){r[0]-=581;var t=e.getDay();if(e<60)t=(t+6)%7;return t}function F(e,r,t,n){var i="",s=0,o=0,l=t.y,c,f=0;switch(e){case 98:l=t.y+543;case 121:switch(r.length){case 1:;case 2:c=l%100;f=2;break;default:c=l%1e4;f=4;break;}break;case 109:switch(r.length){case 1:;case 2:c=t.m;f=r.length;break;case 3:return h[t.m-1][1];case 5:return h[t.m-1][0];default:return h[t.m-1][2];}break;case 100:switch(r.length){case 1:;case 2:c=t.d;f=r.length;break;case 3:return u[t.q][0];default:return u[t.q][1];}break;case 104:switch(r.length){case 1:;case 2:c=1+(t.H+11)%12;f=r.length;break;default:throw"bad hour format: "+r;}break;case 72:switch(r.length){case 1:;case 2:c=t.H;f=r.length;break;default:throw"bad hour format: "+r;}break;case 77:switch(r.length){case 1:;case 2:c=t.M;f=r.length;break;default:throw"bad minute format: "+r;}break;case 115:if(r!="s"&&r!="ss"&&r!=".0"&&r!=".00"&&r!=".000")throw"bad second format: "+r;if(t.u===0&&(r=="s"||r=="ss"))return a(t.S,r.length);if(n>=2)o=n===3?1e3:100;else o=n===1?10:1;s=Math.round(o*(t.S+t.u));if(s>=60*o)s=0;if(r==="s")return s===0?"0":""+s/o;i=a(s,2+n);if(r==="ss")return i.substr(0,2);return"."+i.substr(2,r.length-1);case 90:switch(r){case"[h]":;case"[hh]":c=t.D*24+t.H;break;case"[m]":;case"[mm]":c=(t.D*24+t.H)*60+t.M;break;case"[s]":;case"[ss]":c=((t.D*24+t.H)*60+t.M)*60+Math.round(t.S+t.u);break;default:throw"bad abstime format: "+r;}f=r.length===3?1:2;break;case 101:c=l;f=1;break;}var d=f>0?a(c,f):"";return d}function T(e){var r=3;if(e.length<=r)return e;var t=e.length%r,a=e.substr(0,t);for(;t!=e.length;t+=r)a+=(a.length>0?",":"")+e.substr(t,r);return a}var O=function j(){var e=/%/g;function s(r,a,n){var i=a.replace(e,""),s=a.length-i.length;return O(r,i,n*Math.pow(10,2*s))+t("%",s)}function o(e,r,t){var a=r.length-1;while(r.charCodeAt(a-1)===44)--a;return O(e,r.substr(0,a),t/Math.pow(10,3*(r.length-a)))}function l(e,r){var t;var a=e.indexOf("E")-e.indexOf(".")-1;if(e.match(/^#+0.0E\+0$/)){if(r==0)return"0.0E+0";else if(r<0)return"-"+l(e,-r);var n=e.indexOf(".");if(n===-1)n=e.indexOf("E");var i=Math.floor(Math.log(r)*Math.LOG10E)%n;if(i<0)i+=n;t=(r/Math.pow(10,i)).toPrecision(a+1+(n+i)%n);if(t.indexOf("e")===-1){var s=Math.floor(Math.log(r)*Math.LOG10E);if(t.indexOf(".")===-1)t=t.charAt(0)+"."+t.substr(1)+"E+"+(s-t.length+i);else t+="E+"+(s-i);while(t.substr(0,2)==="0."){t=t.charAt(0)+t.substr(2,n)+"."+t.substr(2+n);t=t.replace(/^0+([1-9])/,"$1").replace(/^0+\./,"0.")}t=t.replace(/\+-/,"-")}t=t.replace(/^([+-]?)(\d*)\.(\d*)[Ee]/,function(e,r,t,a){return r+t+a.substr(0,(n+i)%n)+"."+a.substr(i)+"E"})}else t=r.toExponential(a);if(e.match(/E\+00$/)&&t.match(/e[+-]\d$/))t=t.substr(0,t.length-1)+"0"+t.charAt(t.length-1);if(e.match(/E\-/)&&t.match(/e\+/))t=t.replace(/e\+/,"e");return t.replace("e","E")}var f=/# (\?+)( ?)\/( ?)(\d+)/;function u(e,r,i){var s=parseInt(e[4],10),o=Math.round(r*s),l=Math.floor(o/s);var c=o-l*s,f=s;return i+(l===0?"":""+l)+" "+(c===0?t(" ",e[1].length+1+e[4].length):n(c,e[1].length)+e[2]+"/"+e[3]+a(f,e[4].length))}function h(e,r,a){return a+(r===0?"":""+r)+t(" ",e[1].length+2+e[4].length)}var d=/^#*0*\.([0#]+)/;var p=/\).*[0#]/;var v=/\(###\) ###\\?-####/;function m(e){var r="",t;for(var a=0;a!=e.length;++a)switch(t=e.charCodeAt(a)){case 35:break;case 63:r+=" ";break;case 48:r+="0";break;default:r+=String.fromCharCode(t);}return r}function g(e,r){var t=Math.pow(10,r);return""+Math.round(e*t)/t}function w(e,r){var t=e-Math.floor(e),a=Math.pow(10,r);if(r<(""+Math.round(t*a)).length)return 0;return Math.round(t*a)}function y(e,r){if(r<(""+Math.round((e-Math.floor(e))*Math.pow(10,r))).length){return 1}return 0}function k(e){if(e<2147483647&&e>-2147483648)return""+(e>=0?e|0:e-1|0);return""+Math.floor(e)}function x(e,h,S){if(e.charCodeAt(0)===40&&!h.match(p)){var _=h.replace(/\( */,"").replace(/ \)/,"").replace(/\)/,"");if(S>=0)return x("n",_,S);return"("+x("n",_,-S)+")"}if(h.charCodeAt(h.length-1)===44)return o(e,h,S);if(h.indexOf("%")!==-1)return s(e,h,S);if(h.indexOf("E")!==-1)return l(h,S);if(h.charCodeAt(0)===36)return"$"+x(e,h.substr(h.charAt(1)==" "?2:1),S);var C;var A,E,F,D=Math.abs(S),M=S<0?"-":"";if(h.match(/^00+$/))return M+c(D,h.length);if(h.match(/^[#?]+$/)){C=c(S,0);if(C==="0")C="";return C.length>h.length?C:m(h.substr(0,h.length-C.length))+C}if(A=h.match(f))return u(A,D,M);if(h.match(/^#+0+$/))return M+c(D,h.length-h.indexOf("0"));if(A=h.match(d)){C=g(S,A[1].length).replace(/^([^\.]+)$/,"$1."+m(A[1])).replace(/\.$/,"."+m(A[1])).replace(/\.(\d*)$/,function(e,r){return"."+r+t("0",m(A[1]).length-r.length)});return h.indexOf("0.")!==-1?C:C.replace(/^0\./,".")}h=h.replace(/^#+([0.])/,"$1");if(A=h.match(/^(0*)\.(#*)$/)){return M+g(D,A[2].length).replace(/\.(\d*[1-9])0*$/,".$1").replace(/^(-?\d*)$/,"$1.").replace(/^0\./,A[1].length?"0.":".")}if(A=h.match(/^#{1,3},##0(\.?)$/))return M+T(c(D,0));if(A=h.match(/^#,##0\.([#0]*0)$/)){return S<0?"-"+x(e,h,-S):T(""+(Math.floor(S)+y(S,A[1].length)))+"."+a(w(S,A[1].length),A[1].length)}if(A=h.match(/^#,#*,#0/))return x(e,h.replace(/^#,#*,/,""),S);if(A=h.match(/^([0#]+)(\\?-([0#]+))+$/)){C=r(x(e,h.replace(/[\\-]/g,""),S));E=0;return r(r(h.replace(/\\/g,"")).replace(/[0#]/g,function(e){return E=0)return A("n",l,o);return"("+A("n",l,-o)+")"}if(s.charCodeAt(s.length-1)===44)return S(e,s,o);if(s.indexOf("%")!==-1)return _(e,s,o);if(s.indexOf("E")!==-1)return C(s,o);if(s.charCodeAt(0)===36)return"$"+A(e,s.substr(s.charAt(1)==" "?2:1),o);var c;var u,g,w,y=Math.abs(o),k=o<0?"-":"";if(s.match(/^00+$/))return k+a(y,s.length);if(s.match(/^[#?]+$/)){c=""+o;if(o===0)c="";return c.length>s.length?c:m(s.substr(0,s.length-c.length))+c}if(u=s.match(f))return h(u,y,k);if(s.match(/^#+0+$/))return k+a(y,s.length-s.indexOf("0"));if(u=s.match(d)){c=(""+o).replace(/^([^\.]+)$/,"$1."+m(u[1])).replace(/\.$/,"."+m(u[1]));c=c.replace(/\.(\d*)$/,function(e,r){return"."+r+t("0",m(u[1]).length-r.length)});return s.indexOf("0.")!==-1?c:c.replace(/^0\./,".")}s=s.replace(/^#+([0.])/,"$1");if(u=s.match(/^(0*)\.(#*)$/)){return k+(""+y).replace(/\.(\d*[1-9])0*$/,".$1").replace(/^(-?\d*)$/,"$1.").replace(/^0\./,u[1].length?"0.":".")}if(u=s.match(/^#{1,3},##0(\.?)$/))return k+T(""+y);if(u=s.match(/^#,##0\.([#0]*0)$/)){return o<0?"-"+A(e,s,-o):T(""+o)+"."+t("0",u[1].length)}if(u=s.match(/^#,#*,#0/))return A(e,s.replace(/^#,#*,/,""),o);if(u=s.match(/^([0#]+)(\\?-([0#]+))+$/)){c=r(A(e,s.replace(/[\\-]/g,""),o));g=0;return r(r(s.replace(/\\/g,"")).replace(/[0#]/g,function(e){return g-1||t=="\\"&&e.charAt(r+1)=="-"&&"0#".indexOf(e.charAt(r+2))>-1)){}break;case"?":while(e.charAt(++r)===t){}break;case"*":++r;if(e.charAt(r)==" "||e.charAt(r)=="*")++r;break;case"(":;case")":++r;break;case"1":;case"2":;case"3":;case"4":;case"5":;case"6":;case"7":;case"8":;case"9":while(r-1){}break;case" ":++r;break;default:++r;break;}}return false}e.is_date=N;function P(e,r,t,a){var n=[],i="",s=0,o="",l="t",c,u,h;var d="H";while(s=12?"P":"A";m.t="T";d="h";s+=3}else if(e.substr(s,5).toUpperCase()==="AM/PM"){if(c!=null)m.v=c.H>=12?"PM":"AM";m.t="T";s+=5;d="h"}else if(e.substr(s,5).toUpperCase()==="上午/下午"){if(c!=null)m.v=c.H>=12?"下午":"上午";m.t="T";s+=5;d="h"}else{m.t="t";++s}if(c==null&&m.t==="T")return"";n[n.length]=m;l=o;break;case"[":i=o;while(e.charAt(s++)!=="]"&&s-1){i=(i.match(/\$([^-\[\]]*)/)||[])[1]||"$";if(!N(e))n[n.length]={t:"t",v:i}}break;case".":if(c!=null){i=o;while(++s-1)i+=o;n[n.length]={t:"n",v:i};break;case"?":i=o;while(e.charAt(++s)===o)i+=o;n[n.length]={t:o,v:i};l=o;break;case"*":++s;if(e.charAt(s)==" "||e.charAt(s)=="*")++s;break;case"(":;case")":n[n.length]={t:a===1?"t":o,v:o};++s;break;case"1":;case"2":;case"3":;case"4":;case"5":;case"6":;case"7":;case"8":;case"9":i=o;while(s-1)i+=e.charAt(s);n[n.length]={t:"D",v:i};break;case" ":n[n.length]={t:o,v:o};++s;break;case"$":n[n.length]={t:"t",v:"$"};++s;break;default:if(",$-+/():!^&'~{}<>=€acfijklopqrtuvwxzP".indexOf(o)===-1)throw new Error("unrecognized character "+o+" in "+e);n[n.length]={t:"t",v:o};++s;break;}}var g=0,b=0,y;for(s=n.length-1,l="t";s>=0;--s){switch(n[s].t){case"h":;case"H":n[s].t=d;l="h";if(g<1)g=1;break;case"s":if(y=n[s].v.match(/\.0+$/))b=Math.max(b,y[0].length-1);if(g<3)g=3;case"d":;case"y":;case"M":;case"e":l=n[s].t;break;case"m":if(l==="s"){n[s].t="M";if(g<2)g=2}break;case"X":break;case"Z":if(g<1&&n[s].v.match(/[Hh]/))g=1;if(g<2&&n[s].v.match(/[Mm]/))g=2;if(g<3&&n[s].v.match(/[Ss]/))g=3;}}switch(g){case 0:break;case 1:if(c.u>=.5){c.u=0;++c.S}if(c.S>=60){c.S=0;++c.M}if(c.M>=60){c.M=0;++c.H}break;case 2:if(c.u>=.5){c.u=0;++c.S}if(c.S>=60){c.S=0;++c.M}break;}var k="",x;for(s=0;s0){if(k.charCodeAt(0)==40){_=r<0&&k.charCodeAt(0)===45?-r:r;C=O("n",k,_)}else{_=r<0&&a>1?-r:r;C=O("n",k,_);if(_<0&&n[0]&&n[0].t=="t"){C=C.substr(1);n[0].v="-"+n[0].v}}x=C.length-1;var E=n.length;for(s=0;s-1){E=s;break}var T=n.length;if(E===n.length&&C.indexOf("E")===-1){for(s=n.length-1;s>=0;--s){if(n[s]==null||"n?".indexOf(n[s].t)===-1)continue;if(x>=n[s].v.length-1){x-=n[s].v.length;n[s].v=C.substr(x+1,n[s].v.length)}else if(x<0)n[s].v="";else{n[s].v=C.substr(0,x+1);x=-1}n[s].t="t";T=s}if(x>=0&&T=0;--s){if(n[s]==null||"n?".indexOf(n[s].t)===-1)continue;u=n[s].v.indexOf(".")>-1&&s===E?n[s].v.indexOf(".")-1:n[s].v.length-1;S=n[s].v.substr(u+1);for(;u>=0;--u){if(x>=0&&(n[s].v.charAt(u)==="0"||n[s].v.charAt(u)==="#"))S=C.charAt(x--)+S}n[s].v=S;n[s].t="t";T=s}if(x>=0&&T-1&&s===E?n[s].v.indexOf(".")+1:0;S=n[s].v.substr(0,u);for(;u-1){_=a>1&&r<0&&s>0&&n[s-1].v==="-"?-r:r;n[s].v=O(n[s].t,n[s].v,_);n[s].t="t"}var D="";for(s=0;s!==n.length;++s)if(n[s]!=null)D+=n[s].v;return D}e._eval=P;var R=/\[[=<>]/;var I=/\[(=|>[=]?|<[>=]?)(-?\d+(?:\.\d*)?)\]/;function L(e,r){if(r==null)return false;var t=parseFloat(r[2]);switch(r[1]){case"=":if(e==t)return true;break;case">":if(e>t)return true;break;case"<":if(e":if(e!=t)return true;break;case">=":if(e>=t)return true;break;case"<=":if(e<=t)return true;break;}return false}function B(e,r){var t=D(e);var a=t.length,n=t[a-1].indexOf("@");if(a<4&&n>-1)--a;if(t.length>4)throw new Error("cannot find right format for |"+t.join("|")+"|");if(typeof r!=="number")return[4,t.length===4||n>-1?t[t.length-1]:"@"];switch(t.length){case 1:t=n>-1?["General","General","General",t[0]]:[t[0],t[0],t[0],"@"];break;case 2:t=n>-1?[t[0],t[0],t[0],t[1]]:[t[0],t[1],t[0],"@"];break;case 3:t=n>-1?[t[0],t[1],t[0],t[2]]:[t[0],t[1],t[2],"@"];break;case 4:break;}var i=r>0?t[0]:r<0?t[1]:t[2];if(t[0].indexOf("[")===-1&&t[1].indexOf("[")===-1)return[a,i];if(t[0].match(R)!=null||t[1].match(R)!=null){var s=t[0].match(I);var o=t[1].match(I);return L(r,s)?[a,t[0]]:L(r,o)?[a,t[1]]:[a,t[s!=null&&o!=null?2:1]]}return[a,i]}function U(e,r,t){if(t==null)t={};var a="";switch(typeof e){case"string":if(e=="m/d/yy"&&t.dateNF)a=t.dateNF;else a=e;break;case"number":if(e==14&&t.dateNF)a=t.dateNF;else a=(t.table!=null?t.table:p)[e];if(a==null)a=t.table&&t.table[v[e]]||p[v[e]];if(a==null)a=g[e]||"General";break;}if(f(a,0))return A(r,t);if(r instanceof Date)r=S(r,t.date1904);var n=B(a,r);if(f(n[1]))return A(r,t);if(r===true)r="TRUE";else if(r===false)r="FALSE";else if(r===""||r==null)return"";return P(n[1],r,t,n[0])}function z(e,r){if(typeof r!="number"){r=+r||-1;for(var t=0;t<392;++t){if(p[t]==undefined){if(r<0)r=t;continue}if(p[t]==e){r=t;break}}if(r<0)r=391}p[r]=e;return r}e.load=z;e._table=p;e.get_table=function $(){return p};e.load_table=function H(e){for(var r=0;r!=392;++r)if(e[r]!==undefined)z(e[r],r)};e.init_table=d;e.format=U};R(P);var I={"General Number":"General","General Date":P._table[22],"Long Date":"dddd, mmmm dd, yyyy","Medium Date":P._table[15],"Short Date":P._table[14],"Long Time":P._table[19],"Medium Time":P._table[18],"Short Time":P._table[20],Currency:'"$"#,##0.00_);[Red]\\("$"#,##0.00\\)',Fixed:P._table[2],Standard:P._table[4],Percent:P._table[10],Scientific:P._table[11],"Yes/No":'"Yes";"Yes";"No";@',"True/False":'"True";"True";"False";@',"On/Off":'"Yes";"Yes";"No";@'};var L={5:'"$"#,##0_);\\("$"#,##0\\)',6:'"$"#,##0_);[Red]\\("$"#,##0\\)',7:'"$"#,##0.00_);\\("$"#,##0.00\\)',8:'"$"#,##0.00_);[Red]\\("$"#,##0.00\\)',23:"General",24:"General",25:"General",26:"General",27:"m/d/yy",28:"m/d/yy",29:"m/d/yy",30:"m/d/yy",31:"m/d/yy",32:"h:mm:ss",33:"h:mm:ss",34:"h:mm:ss",35:"h:mm:ss",36:"m/d/yy",41:'_(* #,##0_);_(* (#,##0);_(* "-"_);_(@_)',42:'_("$"* #,##0_);_("$"* (#,##0);_("$"* "-"_);_(@_)',43:'_(* #,##0.00_);_(* (#,##0.00);_(* "-"??_);_(@_)',44:'_("$"* #,##0.00_);_("$"* (#,##0.00);_("$"* "-"??_);_(@_)',50:"m/d/yy",51:"m/d/yy",52:"m/d/yy",53:"m/d/yy",54:"m/d/yy",55:"m/d/yy",56:"m/d/yy",57:"m/d/yy",58:"m/d/yy",59:"0",60:"0.00",61:"#,##0",62:"#,##0.00",63:'"$"#,##0_);\\("$"#,##0\\)',64:'"$"#,##0_);[Red]\\("$"#,##0\\)',65:'"$"#,##0.00_);\\("$"#,##0.00\\)',66:'"$"#,##0.00_);[Red]\\("$"#,##0.00\\)',67:"0%",68:"0.00%",69:"# ?/?",70:"# ??/??",71:"m/d/yy",72:"m/d/yy",73:"d-mmm-yy",74:"d-mmm",75:"mmm-yy",76:"h:mm",77:"h:mm:ss",78:"m/d/yy h:mm",79:"mm:ss",80:"[h]:mm:ss",81:"mmss.0"};var B=/[dD]+|[mM]+|[yYeE]+|[Hh]+|[Ss]+/g;function U(e){var r=typeof e=="number"?P._table[e]:e;r=r.replace(B,"(\\d+)");return new RegExp("^"+r+"$")}function z(e,r,t){var a=-1,n=-1,i=-1,s=-1,o=-1,l=-1;(r.match(B)||[]).forEach(function(e,r){var c=parseInt(t[r+1],10);switch(e.toLowerCase().charAt(0)){case"y":a=c;break;case"d":i=c;break;case"h":s=c;break;case"s":l=c;break;case"m":if(s>=0)o=c;else n=c;break;}});if(l>=0&&o==-1&&n>=0){o=n;n=-1}var c=(""+(a>=0?a:(new Date).getFullYear())).slice(-4)+"-"+("00"+(n>=1?n:1)).slice(-2)+"-"+("00"+(i>=1?i:1)).slice(-2);if(c.length==7)c="0"+c;if(c.length==8)c="20"+c;var f=("00"+(s>=0?s:0)).slice(-2)+":"+("00"+(o>=0?o:0)).slice(-2)+":"+("00"+(l>=0?l:0)).slice(-2);if(s==-1&&o==-1&&l==-1)return c;if(a==-1&&n==-1&&i==-1)return f;return c+"T"+f}var W=true;var j;(function(e){e(j={})})(function(e){e.version="1.2.0";function r(){var e=0,r=new Array(256);for(var t=0;t!=256;++t){e=t;e=e&1?-306674912^e>>>1:e>>>1;e=e&1?-306674912^e>>>1:e>>>1;e=e&1?-306674912^e>>>1:e>>>1;e=e&1?-306674912^e>>>1:e>>>1;e=e&1?-306674912^e>>>1:e>>>1;e=e&1?-306674912^e>>>1:e>>>1;e=e&1?-306674912^e>>>1:e>>>1;e=e&1?-306674912^e>>>1:e>>>1;r[t]=e}return typeof Int32Array!=="undefined"?new Int32Array(r):r}var t=r();function a(e){var r=0,t=0,a=0,n=typeof Int32Array!=="undefined"?new Int32Array(4096):new Array(4096);for(a=0;a!=256;++a)n[a]=e[a];for(a=0;a!=256;++a){t=e[a];for(r=256+a;r<4096;r+=256)t=n[r]=t>>>8^e[t&255]; -}var i=[];for(a=1;a!=16;++a)i[a-1]=typeof Int32Array!=="undefined"?n.subarray(a*256,a*256+256):n.slice(a*256,a*256+256);return i}var n=a(t);var i=n[0],s=n[1],o=n[2],l=n[3],c=n[4];var f=n[5],u=n[6],h=n[7],d=n[8],p=n[9];var v=n[10],m=n[11],g=n[12],b=n[13],w=n[14];function y(e,r){var a=r^-1;for(var n=0,i=e.length;n>>8^t[(a^e.charCodeAt(n++))&255];return~a}function k(e,r){var a=r^-1,n=e.length-15,y=0;for(;y>8&255]^g[e[y++]^a>>16&255]^m[e[y++]^a>>>24]^v[e[y++]]^p[e[y++]]^d[e[y++]]^h[e[y++]]^u[e[y++]]^f[e[y++]]^c[e[y++]]^l[e[y++]]^o[e[y++]]^s[e[y++]]^i[e[y++]]^t[e[y++]];n+=15;while(y>>8^t[(a^e[y++])&255];return~a}function x(e,r){var a=r^-1;for(var n=0,i=e.length,s=0,o=0;n>>8^t[(a^s)&255]}else if(s<2048){a=a>>>8^t[(a^(192|s>>6&31))&255];a=a>>>8^t[(a^(128|s&63))&255]}else if(s>=55296&&s<57344){s=(s&1023)+64;o=e.charCodeAt(n++)&1023;a=a>>>8^t[(a^(240|s>>8&7))&255];a=a>>>8^t[(a^(128|s>>2&63))&255];a=a>>>8^t[(a^(128|o>>6&15|(s&3)<<4))&255];a=a>>>8^t[(a^(128|o&63))&255]}else{a=a>>>8^t[(a^(224|s>>12&15))&255];a=a>>>8^t[(a^(128|s>>6&63))&255];a=a>>>8^t[(a^(128|s&63))&255]}}return~a}e.table=t;e.bstr=y;e.buf=k;e.str=x});var H=function sl(){var e={};e.version="1.2.1";function r(e,r){var t=e.split("/"),a=r.split("/");for(var n=0,i=0,s=Math.min(t.length,a.length);n>>1;e._W(2,t);var a=r.getFullYear()-1980;a=a<<4|r.getMonth()+1;a=a<<5|r.getDate();e._W(2,a)}function i(e){var r=e._R(2)&65535;var t=e._R(2)&65535;var a=new Date;var n=t&31;t>>>=5;var i=t&15;t>>>=4;a.setMilliseconds(0);a.setFullYear(t+1980);a.setMonth(i-1);a.setDate(n);var s=r&31;r>>>=5;var o=r&63;r>>>=6;a.setHours(r);a.setMinutes(o);a.setSeconds(s<<1);return a}function s(e){Zr(e,0);var r={};var t=0;while(e.l<=e.length-4){var a=e._R(2);var n=e._R(2),i=e.l+n;var s={};switch(a){case 21589:{t=e._R(1);if(t&1)s.mtime=e._R(4);if(n>5){if(t&2)s.atime=e._R(4);if(t&4)s.ctime=e._R(4)}if(s.mtime)s.mt=new Date(s.mtime*1e3)}break;}e.l=i;r[a]=s}return r}var o;function l(){return o||(o=require("fs"))}function c(e,r){if(e[0]==80&&e[1]==75)return Me(e,r);if((e[0]|32)==109&&(e[1]|32)==105)return We(e,r);if(e.length<512)throw new Error("CFB file size "+e.length+" < 512");var t=3;var a=512;var n=0;var i=0;var s=0;var o=0;var l=0;var c=[];var p=e.slice(0,512);Zr(p,0);var m=f(p);t=m[0];switch(t){case 3:a=512;break;case 4:a=4096;break;case 0:if(m[1]==0)return Me(e,r);default:throw new Error("Major Version: Expected 3 or 4 saw "+t);}if(a!==512){p=e.slice(0,a);Zr(p,28)}var b=e.slice(0,a);u(p,t);var w=p._R(4,"i");if(t===3&&w!==0)throw new Error("# Directory Sectors: Expected 0 saw "+w);p.l+=4;s=p._R(4,"i");p.l+=4;p.chk("00100000","Mini Stream Cutoff Size: ");o=p._R(4,"i");n=p._R(4,"i");l=p._R(4,"i");i=p._R(4,"i");for(var y=-1,x=0;x<109;++x){y=p._R(4,"i");if(y<0)break;c[x]=y}var S=h(e,a);v(l,i,S,a,c);var _=g(S,s,c,a);_[s].name="!Directory";if(n>0&&o!==L)_[o].name="!MiniFAT";_[c[0]].name="!FAT";_.fat_addrs=c;_.ssz=a;var C={},A=[],E=[],F=[];k(s,_,S,A,n,C,E,o);d(E,F,A);A.shift();var T={FileIndex:E,FullPaths:F};if(r&&r.raw)T.raw={header:b,sectors:S};return T}function f(e){if(e[e.l]==80&&e[e.l+1]==75)return[0,0];e.chk(B,"Header Signature: ");e.l+=16;var r=e._R(2,"u");return[e._R(2,"u"),r]}function u(e,r){var t=9;e.l+=2;switch(t=e._R(2)){case 9:if(r!=3)throw new Error("Sector Shift: Expected 9 saw "+t);break;case 12:if(r!=4)throw new Error("Sector Shift: Expected 12 saw "+t);break;default:throw new Error("Sector Shift: Expected 9 or 12 saw "+t);}e.chk("0600","Mini Sector Shift: ");e.chk("000000000000","Reserved: ")}function h(e,r){var t=Math.ceil(e.length/r)-1;var a=[];for(var n=1;n0&&s>=0){i.push(r.slice(s*I,s*I+I));n-=I;s=Hr(t,s*4)}if(i.length===0)return et(0);return D(i).slice(0,e.size)}function v(e,r,t,a,n){var i=L;if(e===L){if(r!==0)throw new Error("DIFAT chain shorter than expected")}else if(e!==-1){var s=t[e],o=(a>>>2)-1;if(!s)return;for(var l=0;l=0;){n[l]=true;i[i.length]=l;s.push(e[l]);var f=t[Math.floor(l*4/a)];c=l*4&o;if(a<4+c)throw new Error("FAT boundary crossed: "+l+" 4 "+a);if(!e[f])break;l=Hr(e[f],c)}return{nodes:i,data:br([s])}}function g(e,r,t,a){var n=e.length,i=[];var s=[],o=[],l=[];var c=a-1,f=0,u=0,h=0,d=0;for(f=0;f=n)h-=n;if(s[h])continue;l=[];var p=[];for(u=h;u>=0;){p[u]=true;s[u]=true;o[o.length]=u;l.push(e[u]);var v=t[Math.floor(u*4/a)];d=u*4&c;if(a<4+d)throw new Error("FAT boundary crossed: "+u+" 4 "+a);if(!e[v])break;u=Hr(e[v],d);if(p[u])break}i[h]={nodes:o,data:br([l])}}return i}function k(e,r,t,a,n,i,s,o){var l=0,c=a.length?2:0;var f=r[e].data;var u=0,h=0,d;for(;u0&&l!==L)r[l].name="!StreamData"}else if(g.size>=4096){g.storage="fat";if(r[g.start]===undefined)r[g.start]=m(t,g.start,r.fat_addrs,r.ssz);r[g.start].name=g.name;g.content=r[g.start].data.slice(0,g.size)}else{g.storage="minifat";if(g.size<0)g.size=0;else if(l!==L&&g.start!==L&&r[l]){g.content=p(g,r[l].data,(r[o]||{}).data)}}if(g.content)Zr(g.content,0);i[d]=g;s.push(g)}}function x(e,r){return new Date(($r(e,r+4)/1e7*Math.pow(2,32)+$r(e,r)/1e7-11644473600)*1e3)}function A(e,r){l();return c(o.readFileSync(e),r)}function E(e,r){var t=r&&r.type;if(!t){if(w&&Buffer.isBuffer(e))t="buffer"}switch(t||"base64"){case"file":return A(e,r);case"base64":return c(C(b.decode(e)),r);case"binary":return c(C(e),r);}return c(e,r)}function F(e,r){var t=r||{},a=t.root||"Root Entry";if(!e.FullPaths)e.FullPaths=[];if(!e.FileIndex)e.FileIndex=[];if(e.FullPaths.length!==e.FileIndex.length)throw new Error("inconsistent CFB structure");if(e.FullPaths.length===0){e.FullPaths[0]=a+"/";e.FileIndex[0]={name:a,type:5}}if(t.CLSID)e.FileIndex[0].clsid=t.CLSID;T(e)}function T(e){var r="Sh33tJ5";if(H.find(e,"/"+r))return;var t=et(4);t[0]=55;t[1]=t[3]=50;t[2]=54;e.FileIndex.push({name:r,type:2,content:t,size:4,L:69,R:69,C:69});e.FullPaths.push(e.FullPaths[0]+r);O(e)}function O(e,n){F(e);var i=false,s=false;for(var o=e.FullPaths.length-1;o>=0;--o){var l=e.FileIndex[o];switch(l.type){case 0:if(s)i=true;else{e.FileIndex.pop();e.FullPaths.pop()}break;case 1:;case 2:;case 5:s=true;if(isNaN(l.R*l.L*l.C))i=true;if(l.R>-1&&l.L>-1&&l.R==l.L)i=true;break;default:i=true;break;}}if(!i&&!n)return;var c=new Date(1987,1,19),f=0;var u=Object.create?Object.create(null):{};var h=[];for(o=0;o1?1:-1;p.size=0;p.type=5}else if(v.slice(-1)=="/"){for(f=o+1;f=h.length?-1:f;for(f=o+1;f=h.length?-1:f;p.type=1}else{if(t(e.FullPaths[o+1]||"")==t(v))p.R=o+1;p.type=2}}}function P(e,r){var t=r||{};if(t.fileType=="mad")return je(e,t);O(e);switch(t.fileType){case"zip":return Pe(e,t);}var a=function(e){var r=0,t=0;for(var a=0;a0){if(i<4096)r+=i+63>>6;else t+=i+511>>9}}var s=e.FullPaths.length+3>>2;var o=r+7>>3;var l=r+127>>7;var c=o+t+s+l;var f=c+127>>7;var u=f<=109?0:Math.ceil((f-109)/127);while(c+f+u+127>>7>f)u=++f<=109?0:Math.ceil((f-109)/127);var h=[1,u,f,l,s,t,r,0];e.FileIndex[0].size=r<<6;h[7]=(e.FileIndex[0].start=h[0]+h[1]+h[2]+h[3]+h[4]+h[5])+(h[6]+7>>3);return h}(e);var n=et(a[7]<<9);var i=0,s=0;{for(i=0;i<8;++i)n._W(1,U[i]);for(i=0;i<8;++i)n._W(2,0);n._W(2,62);n._W(2,3);n._W(2,65534);n._W(2,9);n._W(2,6);for(i=0;i<3;++i)n._W(2,0);n._W(4,0);n._W(4,a[2]);n._W(4,a[0]+a[1]+a[2]+a[3]-1);n._W(4,0);n._W(4,1<<12);n._W(4,a[3]?a[0]+a[1]+a[2]-1:L);n._W(4,a[3]);n._W(-4,a[1]?a[0]-1:L);n._W(4,a[1]);for(i=0;i<109;++i)n._W(-4,i>9)}o(a[6]+7>>3);while(n.l&511)n._W(-4,W.ENDOFCHAIN);s=i=0;for(l=0;l=4096)continue;f.start=s;o(c+63>>6)}while(n.l&511)n._W(-4,W.ENDOFCHAIN);for(i=0;i=4096){n.l=f.start+1<<9;if(w&&Buffer.isBuffer(f.content)){f.content.copy(n,n.l,0,f.size);n.l+=f.size+511&-512}else{for(l=0;l0&&f.size<4096){if(w&&Buffer.isBuffer(f.content)){f.content.copy(n,n.l,0,f.size);n.l+=f.size+63&-64}else{for(l=0;l>16|r>>8|r)&255}var re=typeof Uint8Array!=="undefined";var te=re?new Uint8Array(1<<8):[];for(var ae=0;ae<1<<8;++ae)te[ae]=ee(ae);function ne(e,r){var t=te[e&255];if(r<=8)return t>>>8-r;t=t<<8|te[e>>8&255];if(r<=16)return t>>>16-r;t=t<<8|te[e>>16&255];return t>>>24-r}function ie(e,r){var t=r&7,a=r>>>3;return(e[a]|(t<=6?0:e[a+1]<<8))>>>t&3}function se(e,r){var t=r&7,a=r>>>3;return(e[a]|(t<=5?0:e[a+1]<<8))>>>t&7}function oe(e,r){var t=r&7,a=r>>>3;return(e[a]|(t<=4?0:e[a+1]<<8))>>>t&15}function le(e,r){var t=r&7,a=r>>>3;return(e[a]|(t<=3?0:e[a+1]<<8))>>>t&31}function ce(e,r){var t=r&7,a=r>>>3;return(e[a]|(t<=1?0:e[a+1]<<8))>>>t&127}function fe(e,r,t){var a=r&7,n=r>>>3,i=(1<>>a;if(t<8-a)return s&i;s|=e[n+1]<<8-a;if(t<16-a)return s&i;s|=e[n+2]<<16-a;if(t<24-a)return s&i;s|=e[n+3]<<24-a;return s&i}function ue(e,r,t){var a=r&7,n=r>>>3;if(a<=5)e[n]|=(t&7)<>8-a}return r+3}function he(e,r,t){var a=r&7,n=r>>>3;t=(t&1)<>>3;t<<=a;e[n]|=t&255;t>>>=8;e[n+1]=t;return r+8}function pe(e,r,t){var a=r&7,n=r>>>3;t<<=a;e[n]|=t&255;t>>>=8;e[n+1]=t&255;e[n+2]=t>>>8;return r+16}function ve(e,r){var t=e.length,a=2*t>r?2*t:r+5,n=0;if(t>=r)return e;if(w){var i=_(a);if(e.copy)e.copy(i);else for(;n>a-u;for(s=(1<=0;--s)r[o|s<0)r[r.l++]=e[t++]}return r.l}function i(r,t){var n=0;var i=0;var s=re?new Uint16Array(32768):[];while(i0)t[t.l++]=r[i++];n=t.l*8;continue}n=ue(t,n,+!!(i+o==r.length)+2);var l=0;while(o-- >0){var c=r[i];l=(l<<5^c)&32767;var f=-1,u=0;if(f=s[l]){f|=i&~32767;if(f>i)f-=32768;if(f2){c=a[u];if(c<=22)n=de(t,n,te[c+1]>>1)-1;else{de(t,n,3);n+=5;de(t,n,te[c-23]>>5);n+=3}var h=c<8?0:c-4>>2;if(h>0){pe(t,n,u-Z[c]);n+=h}c=e[i-f];n=de(t,n,te[c]>>3);n-=3;var d=c<4?0:c-2>>1;if(d>0){pe(t,n,i-f-Q[c]);n+=d}for(var p=0;p>8-p;for(var v=(1<<7-p)-1;v>=0;--v)Ce[d|v<>>=3){case 16:i=3+ie(e,r);r+=2;d=m[m.length-1];while(i-- >0)m.push(d);break;case 17:i=3+se(e,r);r+=3;while(i-- >0)m.push(0);break;case 18:i=11+ce(e,r);r+=7;while(i-- >0)m.push(0);break;default:m.push(d);if(l>>0;var o=0,l=0;while((a&1)==0){a=se(e,t);t+=3;if(a>>>1==0){if(t&7)t+=8-(t&7);var c=e[t>>>3]|e[(t>>>3)+1]<<8;t+=32;if(c>0){if(!r&&s0){n[i++]=e[t>>>3];t+=8}}continue}else if(a>>1==1){o=9;l=5}else{t=Fe(e,t);o=Ae;l=Ee}for(;;){if(!r&&s>>1==1?be[f]:Se[f];t+=u&15;u>>>=4;if((u>>>8&255)===0)n[i++]=u;else if(u==256)break;else{u-=257;var h=u<8?0:u-4>>2;if(h>5)h=0;var d=i+Z[u];if(h>0){d+=fe(e,t,h);t+=h}f=fe(e,t,l);u=a>>>1==1?we[f]:_e[f];t+=u&15;u>>>=4;var p=u<4?0:u-2>>1;var v=Q[u];if(p>0){v+=fe(e,t,p);t+=p}if(!r&&s>>3];return[n.slice(0,i),t+7>>>3]}function Oe(e,r){var t=e.slice(e.l||0);var a=Te(t,r);e.l+=a[1];return a[0]}function De(e,r){if(e){if(typeof console!=="undefined")console.error(r)}else throw new Error(r)}function Me(e,r){var t=e;Zr(t,0);var a=[],n=[];var i={FileIndex:a,FullPaths:n};F(i,{root:r.root});var o=t.length-4;while((t[o]!=80||t[o+1]!=75||t[o+2]!=5||t[o+3]!=6)&&o>=0)--o;t.l=o+4;t.l+=4;var l=t._R(2);t.l+=6;var c=t._R(4);t.l=c;for(o=0;o0){t=t.slice(0,t.length-1);t=t.slice(0,t.lastIndexOf("/")+1);if(i.slice(0,t.length)==t)break}}var s=(a[1]||"").match(/boundary="(.*?)"/);if(!s)throw new Error("MAD cannot find boundary");var o="--"+(s[1]||"");var l=[],c=[];var f={FileIndex:l,FullPaths:c};F(f);var u,h=0;for(n=0;n=32&&d<128)++u;var v=u>=h*4/5;n.push(a);n.push("Content-Location: "+(t.root||"file:///C:/SheetJS/")+s);n.push("Content-Transfer-Encoding: "+(v?"quoted-printable":"base64"));n.push("Content-Type: "+Ie(o,s));n.push("");n.push(v?Be(f):Le(f))}n.push(a+"--\r\n");return n.join("\r\n")}function $e(e){var r={};F(r,e);return r}function He(e,r,t,n){var i=n&&n.unsafe;if(!i)F(e);var s=!i&&H.find(e,r);if(!s){var o=e.FullPaths[0];if(r.slice(0,o.length)==o)o=r;else{if(o.slice(-1)!="/")o+="/";o=(o+r).replace("//","/")}s={name:a(r),type:2};e.FileIndex.push(s);e.FullPaths.push(o);if(!i)H.utils.cfb_gc(e)}s.content=t;s.size=t?t.length:0;if(n){if(n.CLSID)s.clsid=n.CLSID;if(n.mt)s.mt=n.mt;if(n.ct)s.ct=n.ct}return s}function Xe(e,r){F(e);var t=H.find(e,r);if(t)for(var a=0;a3)a=true;switch(n[i].slice(n[i].length-1)){case"Y":throw new Error("Unsupported ISO Duration Field: "+n[i].slice(n[i].length-1));case"D":t*=24;case"H":t*=60;case"M":if(!a)throw new Error("Unsupported ISO Duration Field: M");else t*=60;case"S":break;}r+=t*parseInt(n[i],10)}return r}var oe=new Date("2017-02-19T19:06:09.000Z"); -if(isNaN(oe.getFullYear()))oe=new Date("2/19/17");var le=oe.getFullYear()==2017;function ce(e,r){var t=new Date(e);if(le){if(r>0)t.setTime(t.getTime()+t.getTimezoneOffset()*60*1e3);else if(r<0)t.setTime(t.getTime()-t.getTimezoneOffset()*60*1e3);return t}if(e instanceof Date)return e;if(oe.getFullYear()==1917&&!isNaN(t.getFullYear())){var a=t.getFullYear();if(e.indexOf(""+a)>-1)return t;t.setFullYear(t.getFullYear()+100);return t}var n=e.match(/\d+/g)||["2017","2","19","0","0","0"];var i=new Date(+n[0],+n[1]-1,+n[2],+n[3]||0,+n[4]||0,+n[5]||0);if(e.indexOf("Z")>-1)i=new Date(i.getTime()-i.getTimezoneOffset()*60*1e3);return i}function fe(e,r){if(w&&Buffer.isBuffer(e)){if(r){if(e[0]==255&&e[1]==254)return e.slice(2).toString("utf16le");if(e[1]==254&&e[2]==255)return h(e.slice(2).toString("binary"))}return e.toString("binary")}var t=[];for(var a=0;a!=e.length;++a)t.push(String.fromCharCode(e[a]));return t.join("")}function ue(e){if(typeof JSON!="undefined"&&!Array.isArray(e))return JSON.parse(JSON.stringify(e));if(typeof e!="object"||e==null)return e;if(e instanceof Date)return new Date(e.getTime());var r={};for(var t in e)if(Object.prototype.hasOwnProperty.call(e,t))r[t]=ue(e[t]);return r}function he(e,r){var t="";while(t.length3&&pe.indexOf(s)==-1)return t}else if(s.match(/[a-z]/))return t;if(a<0||a>8099)return t;if((n>0||i>1)&&a!=101)return r;if(e.match(/[^-0-9:,\/\\]/))return t;return r}var me="abacaba".split(/(:?b)/i).length==5;function ge(e,r,t){if(me||typeof r=="string")return e.split(r);var a=e.split(r),n=[a[0]];for(var i=1;i\/]+)\s*=\s*((?:")([^"]*)(?:")|(?:')([^']*)(?:')|([^'">\s]+))/g;var Ne=/<[\/\?]?[a-zA-Z0-9:_-]+(?:\s+[^"\s?>\/]+\s*=\s*(?:"[^"]*"|'[^']*'|[^'">\s=]+))*\s*[\/\?]?>/gm;if(!De.match(Ne))Ne=/<[^>]*>/g;var Pe=/<\w*:/,Re=/<(\/?)\w+:/;function Ie(e,r,t){var a={};var n=0,i=0;for(;n!==e.length;++n)if((i=e.charCodeAt(n))===32||i===10||i===13)break;if(!r)a[0]=e.slice(0,n);if(n===e.length)return a;var s=e.match(Me),o=0,l="",c=0,f="",u="",h=1;if(s)for(c=0;c!=s.length;++c){u=s[c];for(i=0;i!=u.length;++i)if(u.charCodeAt(i)===61)break;f=u.slice(0,i).trim();while(u.charCodeAt(i+1)==32)++i;h=(n=u.charCodeAt(i+1))==34||n==39?1:0;l=u.slice(i+1+h,u.length-h);for(o=0;o!=f.length;++o)if(f.charCodeAt(o)===58)break;if(o===f.length){if(f.indexOf("_")>0)f=f.slice(0,f.indexOf("_"));a[f]=l;if(!t)a[f.toLowerCase()]=l}else{var d=(o===5&&f.slice(0,5)==="xmlns"?"xmlns":"")+f.slice(o+1);if(a[d]&&f.slice(o-3,o)=="ext")continue;a[d]=l;if(!t)a[d.toLowerCase()]=l}}return a}function Le(e){return e.replace(Re,"<$1")}var Be={""":'"',"'":"'",">":">","<":"<","&":"&"};var Ue=K(Be);var ze=function(){var e=/&(?:quot|apos|gt|lt|amp|#x?([\da-fA-F]+));/gi,r=/_x([\da-fA-F]{4})_/gi;return function t(a){var n=a+"",i=n.indexOf("-1?16:10))||e}).replace(r,function(e,r){return String.fromCharCode(parseInt(r,16))});var s=n.indexOf("]]>");return t(n.slice(0,i))+n.slice(i+9,s)+t(n.slice(s+3))}}();var We=/[&<>'"]/g,je=/[\u0000-\u0008\u000b-\u001f]/g;function $e(e){var r=e+"";return r.replace(We,function(e){return Ue[e]}).replace(je,function(e){return"_x"+("000"+e.charCodeAt(0).toString(16)).slice(-4)+"_"})}function He(e){return $e(e).replace(/ /g,"_x0020_")}var Xe=/[\u0000-\u001f]/g;function Ve(e){var r=e+"";return r.replace(We,function(e){return Ue[e]}).replace(/\n/g,"
").replace(Xe,function(e){return"&#x"+("000"+e.charCodeAt(0).toString(16)).slice(-4)+";"})}function Ge(e){var r=e+"";return r.replace(We,function(e){return Ue[e]}).replace(Xe,function(e){return"&#x"+e.charCodeAt(0).toString(16).toUpperCase()+";"})}var Ye=function(){var e=/&#(\d+);/g;function r(e,r){return String.fromCharCode(parseInt(r,10))}return function t(a){return a.replace(e,r)}}();var qe=function(){return function e(r){return r.replace(/(\r\n|[\r\n])/g," ")}}();function Je(e){switch(e){case 1:;case true:;case"1":;case"true":;case"TRUE":return true;default:return false;}}var Ke=function ol(e){var r="",t=0,a=0,n=0,i=0,s=0,o=0;while(t191&&a<224){s=(a&31)<<6;s|=n&63;r+=String.fromCharCode(s);continue}i=e.charCodeAt(t++);if(a<240){r+=String.fromCharCode((a&15)<<12|(n&63)<<6|i&63);continue}s=e.charCodeAt(t++);o=((a&7)<<18|(n&63)<<12|(i&63)<<6|s&63)-65536;r+=String.fromCharCode(55296+(o>>>10&1023));r+=String.fromCharCode(56320+(o&1023))}return r};var Ze=function(e){var r=[],t=0,a=0,n=0;while(t>6)));r.push(String.fromCharCode(128+(a&63)));break;case a>=55296&&a<57344:a-=55296;n=e.charCodeAt(t++)-56320+(a<<10);r.push(String.fromCharCode(240+(n>>18&7)));r.push(String.fromCharCode(144+(n>>12&63)));r.push(String.fromCharCode(128+(n>>6&63)));r.push(String.fromCharCode(128+(n&63)));break;default:r.push(String.fromCharCode(224+(a>>12)));r.push(String.fromCharCode(128+(a>>6&63)));r.push(String.fromCharCode(128+(a&63)));}}return r.join("")};if(w){var Qe=function ll(e){var r=Buffer.alloc(2*e.length),t,a,n=1,i=0,s=0,o;for(a=0;a>>10&1023);t=56320+(t&1023)}if(s!==0){r[i++]=s&255;r[i++]=s>>>8;s=0}r[i++]=t%256;r[i++]=t>>>8}return r.slice(0,i).toString("ucs2")};var er="foo bar baz☃🍣";if(Ke(er)==Qe(er))Ke=Qe;var rr=function cl(e){return y(e,"binary").toString("utf8")};if(Ke(er)==rr(er))Ke=rr;Ze=function(e){return y(e,"utf8").toString("binary")}}var tr=function(){var e={};return function r(t,a){var n=t+"|"+(a||"");if(e[n])return e[n];return e[n]=new RegExp("<(?:\\w+:)?"+t+'(?: xml:space="preserve")?(?:[^>]*)>([\\s\\S]*?)",a||"")}}();var ar=function(){var e=[["nbsp"," "],["middot","·"],["quot",'"'],["apos","'"],["gt",">"],["lt","<"],["amp","&"]].map(function(e){return[new RegExp("&"+e[0]+";","ig"),e[1]]});return function r(t){var a=t.replace(/^[\t\n\r ]+/,"").replace(/[\t\n\r ]+$/,"").replace(/>\s+/g,">").replace(/\s+/g,"\n").replace(/<[^>]*>/g,"");for(var n=0;n([\\s\\S]*?)","g")}}();var ir=/<\/?(?:vt:)?variant>/g,sr=/<(?:vt:)([^>]*)>([\s\S]*)"+r+""}function fr(e){return q(e).map(function(r){return" "+r+'="'+e[r]+'"'}).join("")}function ur(e,r,t){return"<"+e+(t!=null?fr(t):"")+(r!=null?(r.match(lr)?' xml:space="preserve"':"")+">"+r+""}function hr(e,r){try{return e.toISOString().replace(/\.\d*/,"")}catch(t){if(r)throw t}return""}function dr(e,r){switch(typeof e){case"string":var t=ur("vt:lpwstr",$e(e));if(r)t=t.replace(/"/g,"_x0022_");return t;case"number":return ur((e|0)==e?"vt:i4":"vt:r8",$e(String(e)));case"boolean":return ur("vt:bool",e?"true":"false");}if(e instanceof Date)return ur("vt:filetime",hr(e));throw new Error("Unable to serialize "+e)}var pr={dc:"http://purl.org/dc/elements/1.1/",dcterms:"http://purl.org/dc/terms/",dcmitype:"http://purl.org/dc/dcmitype/",mx:"http://schemas.microsoft.com/office/mac/excel/2008/main",r:"http://schemas.openxmlformats.org/officeDocument/2006/relationships",sjs:"http://schemas.openxmlformats.org/package/2006/sheetjs/core-properties",vt:"http://schemas.openxmlformats.org/officeDocument/2006/docPropsVTypes",xsi:"http://www.w3.org/2001/XMLSchema-instance",xsd:"http://www.w3.org/2001/XMLSchema"};pr.main=["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"];var vr={o:"urn:schemas-microsoft-com:office:office",x:"urn:schemas-microsoft-com:office:excel",ss:"urn:schemas-microsoft-com:office:spreadsheet",dt:"uuid:C2F41010-65B3-11d1-A29F-00AA00C14882",mv:"http://macVmlSchemaUri",v:"urn:schemas-microsoft-com:vml",html:"http://www.w3.org/TR/REC-html40"};function mr(e,r){var t=1-2*(e[r+7]>>>7);var a=((e[r+7]&127)<<4)+(e[r+6]>>>4&15);var n=e[r+6]&15;for(var i=5;i>=0;--i)n=n*256+e[r+i];if(a==2047)return n==0?t*Infinity:NaN;if(a==0)a=-1022;else{a-=1023;n+=Math.pow(2,52)}return t*Math.pow(2,a-52)*n}function gr(e,r,t){var a=(r<0||1/r==-Infinity?1:0)<<7,n=0,i=0;var s=a?-r:r;if(!isFinite(s)){n=2047;i=isNaN(r)?26985:0}else if(s==0)n=i=0;else{n=Math.floor(Math.log(s)/Math.LN2);i=s*Math.pow(2,52-n);if(n<=-1023&&(!isFinite(i)||i>4|a}var br=function(e){var r=[],t=10240;for(var a=0;a0?_r(e,r+4,r+4+t-1):""};var Er=Ar;var Fr=function(e,r){var t=$r(e,r);return t>0?_r(e,r+4,r+4+t-1):""};var Tr=Fr;var Or=function(e,r){var t=2*$r(e,r);return t>0?_r(e,r+4,r+4+t-1):""};var Dr=Or;var Mr,Nr;Mr=Nr=function fl(e,r){var t=$r(e,r);return t>0?yr(e,r+4,r+4+t):""};var Pr=function(e,r){var t=$r(e,r);return t>0?_r(e,r+4,r+4+t):""};var Rr=Pr;var Ir,Lr;Ir=Lr=function(e,r){return mr(e,r)};var Br=function ul(e){return Array.isArray(e)||typeof Uint8Array!=="undefined"&&e instanceof Uint8Array};if(w){yr=function(e,r,t){if(!Buffer.isBuffer(e))return kr(e,r,t);return e.toString("utf16le",r,t).replace(M,"")};xr=function(e,r,t){return Buffer.isBuffer(e)?e.toString("hex",r,r+t):Sr(e,r,t)};Ar=function hl(e,r){if(!Buffer.isBuffer(e))return Er(e,r);var t=e.readUInt32LE(r);return t>0?e.toString("utf8",r+4,r+4+t-1):""};Fr=function dl(e,r){if(!Buffer.isBuffer(e))return Tr(e,r);var t=e.readUInt32LE(r);return t>0?e.toString("utf8",r+4,r+4+t-1):""};Or=function pl(e,r){if(!Buffer.isBuffer(e))return Dr(e,r);var t=2*e.readUInt32LE(r);return e.toString("utf16le",r+4,r+4+t-1)};Mr=function vl(e,r){if(!Buffer.isBuffer(e))return Nr(e,r);var t=e.readUInt32LE(r);return e.toString("utf16le",r+4,r+4+t)};Pr=function ml(e,r){if(!Buffer.isBuffer(e))return Rr(e,r);var t=e.readUInt32LE(r);return e.toString("utf8",r+4,r+4+t)};_r=function gl(e,r,t){return Buffer.isBuffer(e)?e.toString("utf8",r,t):Cr(e,r,t)};br=function(e){return e[0].length>0&&Buffer.isBuffer(e[0][0])?Buffer.concat(e[0].map(function(e){return Buffer.isBuffer(e)?e:y(e)})):wr(e)};D=function(e){return Buffer.concat(e.map(function(e){return Buffer.isBuffer(e)?e:y(e)}))};Ir=function bl(e,r){if(Buffer.isBuffer(e))return e.readDoubleLE(r);return Lr(e,r)};Br=function wl(e){return Buffer.isBuffer(e)||Array.isArray(e)||typeof Uint8Array!=="undefined"&&e instanceof Uint8Array}}function Ur(){yr=function(e,r,t){return cptable.utils.decode(1200,e.slice(r,t)).replace(M,"")};_r=function(e,r,t){return cptable.utils.decode(65001,e.slice(r,t))};Ar=function(e,r){var a=$r(e,r);return a>0?cptable.utils.decode(t,e.slice(r+4,r+4+a-1)):""};Fr=function(e,t){var a=$r(e,t);return a>0?cptable.utils.decode(r,e.slice(t+4,t+4+a-1)):""};Or=function(e,r){var t=2*$r(e,r);return t>0?cptable.utils.decode(1200,e.slice(r+4,r+4+t-1)):""};Mr=function(e,r){var t=$r(e,r);return t>0?cptable.utils.decode(1200,e.slice(r+4,r+4+t)):""};Pr=function(e,r){var t=$r(e,r);return t>0?cptable.utils.decode(65001,e.slice(r+4,r+4+t)):""}}if(typeof cptable!=="undefined")Ur();var zr=function(e,r){return e[r]};var Wr=function(e,r){return e[r+1]*(1<<8)+e[r]};var jr=function(e,r){var t=e[r+1]*(1<<8)+e[r];return t<32768?t:(65535-t+1)*-1};var $r=function(e,r){return e[r+3]*(1<<24)+(e[r+2]<<16)+(e[r+1]<<8)+e[r]};var Hr=function(e,r){return e[r+3]<<24|e[r+2]<<16|e[r+1]<<8|e[r]};var Xr=function(e,r){return e[r]<<24|e[r+1]<<16|e[r+2]<<8|e[r+3]};function Vr(e,t){var a="",n,i,s=[],o,l,c,f;switch(t){case"dbcs":f=this.l;if(w&&Buffer.isBuffer(this))a=this.slice(this.l,this.l+2*e).toString("utf16le");else for(c=0;c0?Hr:Xr)(this,this.l);this.l+=4;return n}else{i=$r(this,this.l);this.l+=4}return i;case 8:;case-8:if(t==="f"){if(e==8)i=Ir(this,this.l);else i=Ir([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;return i}else e=8;case 16:a=xr(this,this.l,e);break;};}this.l+=e;return a}var Gr=function(e,r,t){e[t]=r&255;e[t+1]=r>>>8&255;e[t+2]=r>>>16&255;e[t+3]=r>>>24&255};var Yr=function(e,r,t){e[t]=r&255;e[t+1]=r>>8&255;e[t+2]=r>>16&255;e[t+3]=r>>24&255};var qr=function(e,r,t){e[t]=r&255;e[t+1]=r>>>8&255};function Jr(e,r,a){var n=0,i=0;if(a==="dbcs"){for(i=0;i!=r.length;++i)qr(this,r.charCodeAt(i),this.l+2*i);n=2*r.length}else if(a==="sbcs"){if(typeof cptable!=="undefined"&&t==874){for(i=0;i!=r.length;++i){var s=cptable.utils.encode(t,r.charAt(i));this[this.l+i]=s[0]}}else{r=r.replace(/[^\x00-\x7F]/g,"_");for(i=0;i!=r.length;++i)this[this.l+i]=r.charCodeAt(i)&255}n=r.length}else if(a==="hex"){for(;i>8}while(this.l>>=8;this[this.l+1]=r&255;break;case 3:n=3;this[this.l]=r&255;r>>>=8;this[this.l+1]=r&255;r>>>=8;this[this.l+2]=r&255;break;case 4:n=4;Gr(this,r,this.l);break;case 8:n=8;if(a==="f"){gr(this,r,this.l);break};case 16:break;case-4:n=4;Yr(this,r,this.l);break;}this.l+=n;return this}function Kr(e,r){var t=xr(this,this.l,e.length>>1);if(t!==e)throw new Error(r+"Expected "+e+" saw "+t);this.l+=e.length>>1}function Zr(e,r){e.l=r;e._R=Vr;e.chk=Kr;e._W=Jr}function Qr(e,r){e.l+=r}function et(e){var r=S(e);Zr(r,0);return r}function rt(e,r,t){if(!e)return;var a,n,i;Zr(e,e.l||0);var s=e.length,o=0,l=0;while(e.la.l){a=a.slice(0,a.l);a.l=a.length}if(a.length>0)e.push(a);a=null};var i=function f(e){if(a&&e=128?1:0)+1;if(a>=128)++i;if(a>=16384)++i;if(a>=2097152)++i;var s=e.next(i);if(n<=127)s._W(1,n);else{s._W(1,(n&127)+128);s._W(1,n>>7)}for(var o=0;o!=4;++o){if(a>=128){s._W(1,(a&127)+128);a>>=7}else{s._W(1,a);break}}if(a>0&&Br(t))e.push(t)}function nt(e,r,t){var a=ue(e);if(r.s){if(a.cRel)a.c+=r.s.c;if(a.rRel)a.r+=r.s.r}else{if(a.cRel)a.c+=r.c;if(a.rRel)a.r+=r.r}if(!t||t.biff<12){while(a.c>=256)a.c-=256;while(a.r>=65536)a.r-=65536}return a}function it(e,r,t){var a=ue(e);a.s=nt(a.s,r.s,t);a.e=nt(a.e,r.s,t);return a}function st(e,r){if(e.cRel&&e.c<0){e=ue(e);while(e.c<0)e.c+=r>8?16384:256}if(e.rRel&&e.r<0){e=ue(e);while(e.r<0)e.r+=r>8?1048576:r>5?65536:16384}var t=bt(e);if(!e.cRel&&e.cRel!=null)t=pt(t);if(!e.rRel&&e.rRel!=null)t=ft(t);return t}function ot(e,r){if(e.s.r==0&&!e.s.rRel){if(e.e.r==(r.biff>=12?1048575:r.biff>=8?65536:16384)&&!e.e.rRel){return(e.s.cRel?"":"$")+dt(e.s.c)+":"+(e.e.cRel?"":"$")+dt(e.e.c)}}if(e.s.c==0&&!e.s.cRel){if(e.e.c==(r.biff>=12?16383:255)&&!e.e.cRel){return(e.s.rRel?"":"$")+ct(e.s.r)+":"+(e.e.rRel?"":"$")+ct(e.e.r)}}return st(e.s,r.biff)+":"+st(e.e,r.biff)}function lt(e){return parseInt(ut(e),10)-1}function ct(e){return""+(e+1)}function ft(e){return e.replace(/([A-Z]|^)(\d+)$/,"$1$$$2")}function ut(e){return e.replace(/\$(\d+)$/,"$1")}function ht(e){var r=vt(e),t=0,a=0;for(;a!==r.length;++a)t=26*t+r.charCodeAt(a)-64;return t-1}function dt(e){if(e<0)throw new Error("invalid column "+e);var r="";for(++e;e;e=Math.floor((e-1)/26))r=String.fromCharCode((e-1)%26+65)+r;return r}function pt(e){return e.replace(/^([A-Z])/,"$$$1")}function vt(e){return e.replace(/^\$([A-Z])/,"$1")}function mt(e){return e.replace(/(\$?[A-Z]*)(\$?\d*)/,"$1,$2").split(",")}function gt(e){var r=0,t=0;for(var a=0;a=48&&n<=57)r=10*r+(n-48);else if(n>=65&&n<=90)t=26*t+(n-64)}return{c:t-1,r:r-1}}function bt(e){var r=e.c+1;var t="";for(;r;r=(r-1)/26|0)t=String.fromCharCode((r-1)%26+65)+t;return t+(e.r+1)}function wt(e){var r=e.indexOf(":");if(r==-1)return{s:gt(e),e:gt(e)};return{s:gt(e.slice(0,r)),e:gt(e.slice(r+1))}}function yt(e,r){if(typeof r==="undefined"||typeof r==="number"){return yt(e.s,e.e)}if(typeof e!=="string")e=bt(e);if(typeof r!=="string")r=bt(r);return e==r?e:e+":"+r}function kt(e){var r={s:{c:0,r:0},e:{c:0,r:0}};var t=0,a=0,n=0;var i=e.length;for(t=0;a26)break;t=26*t+n}r.s.c=--t;for(t=0;a9)break;t=10*t+n}r.s.r=--t;if(a===i||n!=10){r.e.c=r.s.c;r.e.r=r.s.r;return r}++a;for(t=0;a!=i;++a){if((n=e.charCodeAt(a)-64)<1||n>26)break;t=26*t+n}r.e.c=--t;for(t=0;a!=i;++a){if((n=e.charCodeAt(a)-48)<0||n>9)break;t=10*t+n}r.e.r=--t;return r}function xt(e,r){var t=e.t=="d"&&r instanceof Date;if(e.z!=null)try{return e.w=P.format(e.z,t?re(r):r)}catch(a){}try{return e.w=P.format((e.XF||{}).numFmtId||(t?14:0),t?re(r):r)}catch(a){return""+r}}function St(e,r,t){if(e==null||e.t==null||e.t=="z")return"";if(e.w!==undefined)return e.w;if(e.t=="d"&&!e.z&&t&&t.dateNF)e.z=t.dateNF;if(e.t=="e")return qt[e.v]||e.v;if(r==undefined)return xt(e,e.v);return xt(e,r)}function _t(e,r){var t=r&&r.sheet?r.sheet:"Sheet1";var a={};a[t]=e;return{SheetNames:[t],Sheets:a}}function Ct(e,r,t){var a=t||{};var n=e?Array.isArray(e):a.dense;if(m!=null&&n==null)n=m;var i=e||(n?[]:{});var s=0,o=0;if(i&&a.origin!=null){if(typeof a.origin=="number")s=a.origin;else{var l=typeof a.origin=="string"?gt(a.origin):a.origin;s=l.r;o=l.c}if(!i["!ref"])i["!ref"]="A1:A1"}var c={s:{c:1e7,r:1e7},e:{c:0,r:0}};if(i["!ref"]){var f=kt(i["!ref"]);c.s.c=f.s.c;c.s.r=f.s.r;c.e.c=Math.max(c.e.c,f.e.c);c.e.r=Math.max(c.e.r,f.e.r);if(s==-1)c.e.r=s=f.e.r+1}for(var u=0;u!=r.length;++u){if(!r[u])continue;if(!Array.isArray(r[u]))throw new Error("aoa_to_sheet expects an array of arrays");for(var h=0;h!=r[u].length;++h){if(typeof r[u][h]==="undefined")continue;var d={v:r[u][h]};var p=s+u,v=o+h;if(c.s.r>p)c.s.r=p;if(c.s.c>v)c.s.c=v;if(c.e.r>16&255,e>>8&255,e&255]})}var Gt=Vt([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]);var Yt=ue(Gt);var qt={0:"#NULL!",7:"#DIV/0!",15:"#VALUE!",23:"#REF!",29:"#NAME?",36:"#NUM!",42:"#N/A",43:"#GETTING_DATA",255:"#WTF?"};var Jt=Z(qt);var Kt={"application/vnd.openxmlformats-officedocument.spreadsheetml.sheet.main+xml":"workbooks","application/vnd.ms-excel.binIndexWs":"TODO","application/vnd.ms-excel.intlmacrosheet":"TODO","application/vnd.ms-excel.binIndexMs":"TODO","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.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.sheetMetadata":"TODO","application/vnd.openxmlformats-officedocument.spreadsheetml.sheetMetadata+xml":"TODO","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"};var Zt=function(){var e={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"},styles:{xlsx:"application/vnd.openxmlformats-officedocument.spreadsheetml.styles+xml",xlsb:"application/vnd.ms-excel.styles"}};q(e).forEach(function(r){["xlsm","xlam"].forEach(function(t){if(!e[r][t])e[r][t]=e[r].xlsx})});q(e).forEach(function(r){q(e[r]).forEach(function(t){Kt[e[r][t]]=r})});return e}();var Qt=Q(Kt);pr.CT="http://schemas.openxmlformats.org/package/2006/content-types";function ea(){return{workbooks:[],sheets:[],charts:[],dialogs:[],macros:[],rels:[],strs:[],comments:[],links:[],coreprops:[],extprops:[],custprops:[],themes:[],styles:[],calcchains:[],vba:[],drawings:[],TODO:[],xmlns:""}}function ra(e){var r=ea();if(!e||!e.match)return r;var t={};(e.match(Ne)||[]).forEach(function(e){var a=Ie(e);switch(a[0].replace(Pe,"<")){case"0?r.calcchains[0]:"";r.sst=r.strs.length>0?r.strs[0]:"";r.style=r.styles.length>0?r.styles[0]:"";r.defaults=t;delete r.calcchains;return r}var ta=ur("Types",null,{xmlns:pr.CT,"xmlns:xsd":pr.xsd,"xmlns:xsi":pr.xsi});var aa=[["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",Qt.rels[0]]].map(function(e){return ur("Default",null,{Extension:e[0],ContentType:e[1]})});function na(e,r){var t=[],a;t[t.length]=De;t[t.length]=ta;t=t.concat(aa);var n=function(n){if(e[n]&&e[n].length>0){a=e[n][0];t[t.length]=ur("Override",null,{PartName:(a[0]=="/"?"":"/")+a,ContentType:Zt[n][r.bookType||"xlsx"]})}};var i=function(a){(e[a]||[]).forEach(function(e){t[t.length]=ur("Override",null,{PartName:(e[0]=="/"?"":"/")+e,ContentType:Zt[a][r.bookType||"xlsx"]})})};var s=function(r){(e[r]||[]).forEach(function(e){t[t.length]=ur("Override",null,{PartName:(e[0]=="/"?"":"/")+e,ContentType:Qt[r][0]})})};n("workbooks");i("sheets");i("charts");s("themes");["strs","styles"].forEach(n);["coreprops","extprops","custprops"].forEach(s);s("vba");s("comments");s("drawings");if(t.length>2){t[t.length]="";t[1]=t[1].replace("/>",">")}return t.join("")}var ia={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",VBA:"http://schemas.microsoft.com/office/2006/relationships/vbaProject"};function sa(e){var r=e.lastIndexOf("/");return e.slice(0,r+1)+"_rels/"+e.slice(r+1)+".rels"}function oa(e,r){var t={"!id":{}};if(!e)return t;if(r.charAt(0)!=="/"){r="/"+r}var a={};(e.match(Ne)||[]).forEach(function(e){var n=Ie(e);if(n[0]==="2){r[r.length]="";r[1]=r[1].replace("/>",">")}return r.join("")}var fa=[ia.HLINK,ia.XPATH,ia.XMISS];function ua(e,r,t,a,n,i){if(!n)n={};if(!e["!id"])e["!id"]={};if(r<0)for(r=1;e["!id"]["rId"+r];++r){}n.Id="rId"+r;n.Type=a;n.Target=t;if(i)n.TargetMode=i;else if(fa.indexOf(n.Type)>-1)n.TargetMode="External";if(e["!id"][n.Id])throw new Error("Cannot rewrite rId "+r);e["!id"][n.Id]=n;e[("/"+n.Target).replace("//","/")]=n;return r}var ha=[["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"]];pr.CORE_PROPS="http://schemas.openxmlformats.org/package/2006/metadata/core-properties";ia.CORE_PROPS="http://schemas.openxmlformats.org/package/2006/relationships/metadata/core-properties";var da=function(){var e=new Array(ha.length);for(var r=0;r]*>([\\s\\S]*?)")}return e}();function pa(e){var r={};e=Ke(e);for(var t=0;t0)r[a[1]]=ze(n[1]);if(a[2]==="date"&&r[a[1]])r[a[1]]=ce(r[a[1]])}return r}var va=ur("cp:coreProperties",null,{"xmlns:cp":pr.CORE_PROPS,"xmlns:dc":pr.dc,"xmlns:dcterms":pr.dcterms,"xmlns:dcmitype":pr.dcmitype,"xmlns:xsi":pr.xsi});function ma(e,r,t,a,n){if(n[e]!=null||r==null||r==="")return;n[e]=r;r=$e(r);a[a.length]=t?ur(e,r,t):cr(e,r)}function ga(e,r){var t=r||{};var a=[De,va],n={};if(!e&&!t.Props)return a.join("");if(e){if(e.CreatedDate!=null)ma("dcterms:created",typeof e.CreatedDate==="string"?e.CreatedDate:hr(e.CreatedDate,t.WTF),{"xsi:type":"dcterms:W3CDTF"},a,n);if(e.ModifiedDate!=null)ma("dcterms:modified",typeof e.ModifiedDate==="string"?e.ModifiedDate:hr(e.ModifiedDate,t.WTF),{"xsi:type":"dcterms:W3CDTF"},a,n)}for(var i=0;i!=ha.length;++i){var s=ha[i];var o=t.Props&&t.Props[s[1]]!=null?t.Props[s[1]]:e?e[s[1]]:null;if(o===true)o="1";else if(o===false)o="0";else if(typeof o=="number")o=String(o);if(o!=null)ma(s[0],o,null,a,n)}if(a.length>2){a[a.length]="";a[1]=a[1].replace("/>",">")}return a.join("")}var ba=[["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"]];pr.EXT_PROPS="http://schemas.openxmlformats.org/officeDocument/2006/extended-properties";ia.EXT_PROPS="http://schemas.openxmlformats.org/officeDocument/2006/relationships/extended-properties";var wa=["Worksheets","SheetNames","NamedRanges","DefinedNames","Chartsheets","ChartNames"];function ya(e,r,t,a){var n=[];if(typeof e=="string")n=or(e,a);else for(var i=0;i0)for(var c=0;c!==n.length;c+=2){l=+n[c+1].v;switch(n[c].v){case"Worksheets":;case"工作表":;case"Листы":;case"أوراق العمل":;case"ワークシート":;case"גליונות עבודה":;case"Arbeitsblätter":;case"Çalışma Sayfaları":;case"Feuilles de calcul":;case"Fogli di lavoro":;case"Folhas de cálculo":;case"Planilhas":;case"Regneark":;case"Hojas de cálculo":;case"Werkbladen":t.Worksheets=l;t.SheetNames=s.slice(o,o+l);break;case"Named Ranges":;case"Rangos con nombre":;case"名前付き一覧":;case"Benannte Bereiche":;case"Navngivne områder":t.NamedRanges=l;t.DefinedNames=s.slice(o,o+l);break;case"Charts":;case"Diagramme":t.Chartsheets=l;t.ChartNames=s.slice(o,o+l);break;}o+=l}}function ka(e,r,t){var a={};if(!r)r={};e=Ke(e);ba.forEach(function(t){var n=(e.match(tr(t[0]))||[])[1];switch(t[2]){case"string":if(n)r[t[1]]=ze(n);break;case"bool":r[t[1]]=n==="true";break;case"raw":var i=e.match(new RegExp("<"+t[0]+"[^>]*>([\\s\\S]*?)"));if(i&&i.length>0)a[t[1]]=i[1];break;}});if(a.HeadingPairs&&a.TitlesOfParts)ya(a.HeadingPairs,a.TitlesOfParts,r,t);return r}var xa=ur("Properties",null,{xmlns:pr.EXT_PROPS,"xmlns:vt":pr.vt});function Sa(e){var r=[],t=ur;if(!e)e={};e.Application="SheetJS";r[r.length]=De;r[r.length]=xa;ba.forEach(function(a){if(e[a[1]]===undefined)return;var n;switch(a[2]){case"string":n=$e(String(e[a[1]]));break;case"bool":n=e[a[1]]?"true":"false";break;}if(n!==undefined)r[r.length]=t(a[0],n)});r[r.length]=t("HeadingPairs",t("vt:vector",t("vt:variant","Worksheets")+t("vt:variant",t("vt:i4",String(e.Worksheets))),{size:2,baseType:"variant"}));r[r.length]=t("TitlesOfParts",t("vt:vector",e.SheetNames.map(function(e){return""+$e(e)+""}).join(""),{size:e.Worksheets,baseType:"lpstr"}));if(r.length>2){r[r.length]="";r[1]=r[1].replace("/>",">")}return r.join("")}pr.CUST_PROPS="http://schemas.openxmlformats.org/officeDocument/2006/custom-properties";ia.CUST_PROPS="http://schemas.openxmlformats.org/officeDocument/2006/relationships/custom-properties";var _a=/<[^>]+>[^<]*/g;function Ca(e,r){var t={},a="";var n=e.match(_a);if(n)for(var i=0;i!=n.length;++i){var s=n[i],o=Ie(s);switch(o[0]){case"":a=null;break;default:if(s.indexOf("");var c=l[0].slice(4),f=l[1];switch(c){case"lpstr":;case"bstr":;case"lpwstr":t[a]=ze(f);break;case"bool":t[a]=Je(f);break;case"i1":;case"i2":;case"i4":;case"i8":;case"int":;case"uint":t[a]=parseInt(f,10);break;case"r4":;case"r8":;case"decimal":t[a]=parseFloat(f);break;case"filetime":;case"date":t[a]=ce(f);break;case"cy":;case"error":t[a]=ze(f);break;default:if(c.slice(-1)=="/")break;if(r.WTF&&typeof console!=="undefined")console.warn("Unexpected",s,c,l);}}else if(s.slice(0,2)==="2){r[r.length]="";r[1]=r[1].replace("/>",">")}return r.join("")}var Fa=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};var r=K({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});var a=[2,3,48,49,131,139,140,245];function n(r,t){var a=[];var n=S(1);switch(t.type){case"base64":n=C(b.decode(r));break;case"binary":n=C(r);break;case"buffer":;case"array":n=r;break;}Zr(n,0);var i=n._R(1);var s=!!(i&136);var o=false,l=false;switch(i){case 2:break;case 3:break;case 48:o=true;s=true;break;case 49:o=true;s=true;break;case 131:break;case 139:break;case 140:l=true;break;case 245:break;default:throw new Error("DBF Unsupported Version: "+i.toString(16));}var c=0,f=521;if(i==2)c=n._R(2);n.l+=3;if(i!=2)c=n._R(4);if(c>1048576)c=1e6;if(i!=2)f=n._R(2);var u=n._R(2);var h=t.codepage||1252;if(i!=2){n.l+=16;n._R(1);if(n[n.l]!==0)h=e[n[n.l]];n.l+=1;n.l+=2}if(l)n.l+=36;var d=[],p={};var v=Math.min(n.length,i==2?521:f-10-(o?264:0));var m=l?32:11;while(n.l0){if(n[n.l]===42){n.l+=u;continue}++n.l;a[++g]=[];w=0;for(w=0;w!=d.length;++w){var y=n.slice(n.l,n.l+d[w].len);n.l+=d[w].len;Zr(y,0);var k=cptable.utils.decode(h,y);switch(d[w].type){case"C":if(k.trim().length)a[g][w]=k.replace(/\s+$/,"");break;case"D":if(k.length===8)a[g][w]=new Date(+k.slice(0,4),+k.slice(4,6)-1,+k.slice(6,8));else a[g][w]=k;break;case"F":a[g][w]=parseFloat(k.trim());break;case"+":;case"I":a[g][w]=l?y._R(-4,"i")^2147483648:y._R(4,"i");break;case"L":switch(k.trim().toUpperCase()){case"Y":;case"T":a[g][w]=true;break;case"N":;case"F":a[g][w]=false;break;case"":;case"?":break;default:throw new Error("DBF Unrecognized L:|"+k+"|");}break;case"M":if(!s)throw new Error("DBF Unexpected MEMO for type "+i.toString(16));a[g][w]="##MEMO##"+(l?parseInt(k.trim(),10):y._R(4));break;case"N":k=k.replace(/\u0000/g,"").trim();if(k&&k!=".")a[g][w]=+k||0;break;case"@":a[g][w]=new Date(y._R(-8,"f")-621356832e5);break;case"T":a[g][w]=new Date((y._R(4)-2440588)*864e5+y._R(4));break;case"Y":a[g][w]=y._R(4,"i")/1e4;break;case"O":a[g][w]=-y._R(-8,"f");break;case"B":if(o&&d[w].len==8){a[g][w]=y._R(8,"f");break};case"G":;case"P":y.l+=d[w].len;break;case"0":if(d[w].name==="_NullFlags")break;default:throw new Error("DBF Unsupported data type "+d[w].type);}}}if(i!=2)if(n.l=0)l(+n.codepage);if(n.type=="string")throw new Error("Cannot write DBF to JS string");var i=tt();var s=Xo(e,{header:1,raw:true,cellDates:true});var c=s[0],f=s.slice(1);var u=0,h=0,d=0,p=1;for(u=0;u":190,"?":191,"{":223};var r=new RegExp("N("+q(e).join("|").replace(/\|\|\|/,"|\\||").replace(/([?()+])/g,"\\$1")+"|\\|)","gm");var t=function(r,t){var a=e[t];return typeof a=="number"?v(a):a};var a=function(e,r,t){var a=r.charCodeAt(0)-32<<4|t.charCodeAt(0)-48;return a==59?e:v(a)};e["|"]=254;function n(e,r){switch(r.type){case"base64":return i(b.decode(e),r);case"binary":return i(e,r);case"buffer":return i(w&&Buffer.isBuffer(e)?e.toString("binary"):E(e),r);case"array":return i(fe(e),r);}throw new Error("Unrecognized type "+r.type)}function i(e,n){var i=e.split(/[\n\r]+/),s=-1,o=-1,c=0,f=0,u=[];var h=[];var d=null;var p={},v=[],m=[],g=[];var b=0,w;if(+n.codepage>=0)l(+n.codepage);for(;c!==i.length;++c){b=0;var y=i[c].trim().replace(/\x1B([\x20-\x2F])([\x30-\x3F])/g,a).replace(r,t);var k=y.replace(/;;/g,"\0").split(";").map(function(e){return e.replace(/\u0000/g,";")});var x=k[0],S;if(y.length>0)switch(x){case"ID":break;case"E":break;case"B":break;case"O":break;case"W":break;case"P":if(k[1].charAt(0)=="P")h.push(y.slice(3).replace(/;;/g,";"));break;case"C":var _=false,C=false,A=false,E=false,F=-1,T=-1;for(f=1;f-1&&u[F][T];if(!D||!D[1])throw new Error("SYLK shared formula cannot find base");u[s][o][1]=ai(D[1],{r:s-F,c:o-T})}break;case"F":var M=0;for(f=1;f0){v[s].hpt=b;v[s].hpx=hn(b)}else if(b===0)v[s].hidden=true;break;default:if(n&&n.WTF)throw new Error("SYLK bad record "+y);}if(M<1)d=null;break;default:if(n&&n.WTF)throw new Error("SYLK bad record "+y);}}if(v.length>0)p["!rows"]=v;if(m.length>0)p["!cols"]=m;if(n&&n.sheetRows)u=u.slice(0,n.sheetRows);return[u,p]}function s(e,r){var t=n(e,r);var a=t[0],i=t[1];var s=At(a,r);q(i).forEach(function(e){s[e]=i[e]});return s}function o(e,r){return _t(s(e,r),r)}function c(e,r,t,a){var n="C;Y"+(t+1)+";X"+(a+1)+";K";switch(e.t){case"n":n+=e.v||0;if(e.f&&!e.F)n+=";E"+ti(e.f,{r:t,c:a});break;case"b":n+=e.v?"TRUE":"FALSE";break;case"e":n+=e.w||e.v;break;case"d":n+='"'+(e.w||e.v)+'"';break;case"s":n+='"'+e.v.replace(/"/g,"").replace(/;/g,";;")+'"';break;}return n}function f(e,r){r.forEach(function(r,t){var a="F;W"+(t+1)+" "+(t+1)+" ";if(r.hidden)a+="0";else{if(typeof r.width=="number"&&!r.wpx)r.wpx=tn(r.width);if(typeof r.wpx=="number"&&!r.wch)r.wch=an(r.wpx);if(typeof r.wch=="number")a+=Math.round(r.wch)}if(a.charAt(a.length-1)!=" ")e.push(a)})}function u(e,r){r.forEach(function(r,t){var a="F;";if(r.hidden)a+="M0;";else if(r.hpt)a+="M"+20*r.hpt+";";else if(r.hpx)a+="M"+20*un(r.hpx)+";";if(a.length>2)e.push(a+"R"+(t+1))})}function h(e,r){var t=["ID;PWXL;N;E"],a=[];var n=kt(e["!ref"]),i;var s=Array.isArray(e);var o="\r\n";t.push("P;PGeneral");t.push("F;P0;DG0G8;M255");if(e["!cols"])f(t,e["!cols"]);if(e["!rows"])u(t,e["!rows"]);t.push("B;Y"+(n.e.r-n.s.r+1)+";X"+(n.e.c-n.s.c+1)+";D"+[n.s.c,n.s.r,n.e.c,n.e.r].join(" "));for(var l=n.s.r;l<=n.e.r;++l){for(var h=n.s.c;h<=n.e.c;++h){var d=bt({r:l,c:h});i=s?(e[l]||[])[h]:e[d];if(!i||i.v==null&&(!i.f||i.F))continue;a.push(c(i,e,l,h,r))}}return t.join(o)+o+a.join(o)+o+"E"+o}return{to_workbook:o,to_sheet:s,from_sheet:h}}();var Oa=function(){function e(e,t){switch(t.type){case"base64":return r(b.decode(e),t);case"binary":return r(e,t);case"buffer":return r(w&&Buffer.isBuffer(e)?e.toString("binary"):E(e),t);case"array":return r(fe(e),t);}throw new Error("Unrecognized type "+t.type)}function r(e,r){var t=e.split("\n"),a=-1,n=-1,i=0,s=[];for(;i!==t.length;++i){if(t[i].trim()==="BOT"){s[++a]=[];n=0;continue}if(a<0)continue;var o=t[i].trim().split(",");var l=o[0],c=o[1];++i;var f=t[i]||"";while((f.match(/["]/g)||[]).length&1&&i=0&&i[s].length===0)--s;var o=10,l=0;var c=0;for(;c<=s;++c){l=i[c].indexOf(" ");if(l==-1)l=i[c].length;else l++;o=Math.max(o,l)}for(c=0;c<=s;++c){n[c]=[];var f=0;e(i[c].slice(0,o).trim(),n,c,f,a);for(f=1;f<=(i[c].length-o)/10+1;++f)e(i[c].slice(o+(f-1)*10,o+f*10).trim(),n,c,f,a)}if(a.sheetRows)n=n.slice(0,a.sheetRows);return n}var t={44:",",9:"\t",59:";",124:"|"};var a={44:3,9:2,59:1,124:0};function n(e){var r={},n=false,i=0,s=0;for(;i0)b();i["!ref"]=yt(s);return i}function s(e,t){if(!(t&&t.PRN))return i(e,t);if(t.FS)return i(e,t);if(e.slice(0,4)=="sep=")return i(e,t);if(e.indexOf("\t")>=0||e.indexOf(",")>=0||e.indexOf(";")>=0)return i(e,t);return At(r(e,t),t)}function o(e,r){var t="",a=r.type=="string"?[0,0,0,0]:lo(e,r);switch(r.type){case"base64":t=b.decode(e);break;case"binary":t=e;break;case"buffer":if(r.codepage==65001)t=e.toString("utf8");else if(r.codepage&&typeof cptable!=="undefined")t=cptable.utils.decode(r.codepage,e);else t=w&&Buffer.isBuffer(e)?e.toString("binary"):E(e);break;case"array":t=fe(e);break;case"string":t=e;break;default:throw new Error("Unrecognized type "+r.type);}if(a[0]==239&&a[1]==187&&a[2]==191)t=Ke(t.slice(3));else if(r.type!="string"&&r.type!="buffer"&&r.codepage==65001)t=Ke(t);else if(r.type=="binary"&&typeof cptable!=="undefined"&&r.codepage)t=cptable.utils.decode(r.codepage,cptable.utils.encode(28591,t));if(t.slice(0,19)=="socialcalc:version:")return Da.to_sheet(r.type=="string"?t:Ke(t),r);return s(t,r)}function l(e,r){return _t(o(e,r),r); -}function c(e){var r=[];var t=kt(e["!ref"]),a;var n=Array.isArray(e);for(var i=t.s.r;i<=t.e.r;++i){var s=[];for(var o=t.s.c;o<=t.e.c;++o){var l=bt({r:i,c:o});a=n?(e[i]||[])[o]:e[l];if(!a||a.v==null){s.push(" ");continue}var c=(a.w||(St(a),a.w)||"").slice(0,10);while(c.length<10)c+=" ";s.push(c+(o===0?" ":""))}r.push(s.join(""))}return r.join("\n")}return{to_workbook:l,to_sheet:o,from_sheet:c}}();function Na(e,r){var t=r||{},a=!!t.WTF;t.WTF=true;try{var n=Ta.to_workbook(e,t);t.WTF=a;return n}catch(i){t.WTF=a;if(!i.message.match(/SYLK bad record ID/)&&a)throw i;return Ma.to_workbook(e,r)}}function Pa(e){var r={},t=e.match(Ne),a=0;var n=false;if(t)for(;a!=t.length;++a){var s=Ie(t[a]);switch(s[0].replace(/\w*:/g,"")){case"":;case"":r.shadow=1;break;case"":break;case"":;case"":r.outline=1;break;case"":break;case"":;case"":r.strike=1;break;case"":break;case"":;case"":r.u=1;break;case"":break;case"":;case"":r.b=1;break;case"":break;case"":;case"":r.i=1;break;case"":break;case"":;case"":;case"":break;case"":;case"":;case"":break;case"":;case"":;case"":break;case"":;case"":;case"":break;case"":;case"
":break;case"":n=false;break;default:if(s[0].charCodeAt(1)!==47&&!n)throw new Error("Unrecognized rich format "+s[0]);}}return r}var Ra=function(){var e=tr("t"),r=tr("rPr");function t(t){var a=t.match(e);if(!a)return{t:"s",v:""};var n={t:"s",v:ze(a[1])};var i=t.match(r);if(i)n.s=Pa(i[1]);return n}var a=/<(?:\w+:)?r>/g,n=/<\/(?:\w+:)?r>/;return function i(e){return e.replace(a,"").split(n).map(t).filter(function(e){return e.v})}}();var Ia=function yl(){var e=/(\r\n|\n)/g;function r(e,r,t){var a=[];if(e.u)a.push("text-decoration: underline;");if(e.uval)a.push("text-underline-style:"+e.uval+";");if(e.sz)a.push("font-size:"+e.sz+"pt;");if(e.outline)a.push("text-effect: outline;");if(e.shadow)a.push("text-shadow: auto;");r.push('');if(e.b){r.push("");t.push("")}if(e.i){r.push("");t.push("")}if(e.strike){r.push("");t.push("")}var n=e.valign||"";if(n=="superscript"||n=="super")n="sup";else if(n=="subscript")n="sub";if(n!=""){r.push("<"+n+">");t.push("")}t.push("");return e}function t(t){var a=[[],t.v,[]];if(!t.v)return"";if(t.s)r(t.s,a[0],a[2]);return a[0].join("")+a[1].replace(e,"
")+a[2].join("")}return function a(e){return e.map(t).join("")}}();var La=/<(?:\w+:)?t[^>]*>([^<]*)<\/(?:\w+:)?t>/g,Ba=/<(?:\w+:)?r>/;var Ua=/<(?:\w+:)?rPh.*?>([\s\S]*?)<\/(?:\w+:)?rPh>/g;function za(e,r){var t=r?r.cellHTML:true;var a={};if(!e)return{t:""};if(e.match(/^\s*<(?:\w+:)?t[^>]*>/)){a.t=ze(Ke(e.slice(e.indexOf(">")+1).split(/<\/(?:\w+:)?t>/)[0]||""));a.r=Ke(e);if(t)a.h=Ve(a.t)}else if(e.match(Ba)){a.r=Ke(e);a.t=ze(Ke((e.replace(Ua,"").match(La)||[]).join("").replace(Ne,"")));if(t)a.h=Ia(Ra(a.r))}return a}var Wa=/<(?:\w+:)?sst([^>]*)>([\s\S]*)<\/(?:\w+:)?sst>/;var ja=/<(?:\w+:)?(?:si|sstItem)>/g;var $a=/<\/(?:\w+:)?(?:si|sstItem)>/;function Ha(e,r){var t=[],a="";if(!e)return t;var n=e.match(Wa);if(n){a=n[2].replace(ja,"").split($a);for(var i=0;i!=a.length;++i){var s=za(a[i].trim(),r);if(s!=null)t[t.length]=s}n=Ie(n[1]);t.Count=n.count;t.Unique=n.uniqueCount}return t}ia.SST="http://schemas.openxmlformats.org/officeDocument/2006/relationships/sharedStrings";var Xa=/^\s|\s$|[\t\n\r]/;function Va(e,r){if(!r.bookSST)return"";var t=[De];t[t.length]=ur("sst",null,{xmlns:pr.main[0],count:e.Count,uniqueCount:e.Unique});for(var a=0;a!=e.length;++a){if(e[a]==null)continue;var n=e[a];var i="";if(n.r)i+=n.r;else{i+=""}i+="";t[t.length]=i}if(t.length>2){t[t.length]="";t[1]=t[1].replace("/>",">")}return t.join("")}function Ga(e){var r=e.slice(e[0]==="#"?1:0).slice(0,6);return[parseInt(r.slice(0,2),16),parseInt(r.slice(2,4),16),parseInt(r.slice(4,6),16)]}function Ya(e){for(var r=0,t=1;r!=3;++r)t=t*256+(e[r]>255?255:e[r]<0?0:e[r]);return t.toString(16).toUpperCase().slice(1)}function qa(e){var r=e[0]/255,t=e[1]/255,a=e[2]/255;var n=Math.max(r,t,a),i=Math.min(r,t,a),s=n-i;if(s===0)return[0,0,r];var o=0,l=0,c=n+i;l=s/(c>1?2-c:c);switch(n){case r:o=((t-a)/s+6)%6;break;case t:o=(a-r)/s+2;break;case a:o=(r-t)/s+4;break;}return[o/6,l,c/2]}function Ja(e){var r=e[0],t=e[1],a=e[2];var n=t*2*(a<.5?a:1-a),i=a-n/2;var s=[i,i,i],o=6*r;var l;if(t!==0)switch(o|0){case 0:;case 6:l=n*o;s[0]+=n;s[1]+=l;break;case 1:l=n*(2-o);s[0]+=l;s[1]+=n;break;case 2:l=n*(o-2);s[1]+=n;s[2]+=l;break;case 3:l=n*(4-o);s[1]+=l;s[2]+=n;break;case 4:l=n*(o-4);s[2]+=n;s[0]+=l;break;case 5:l=n*(6-o);s[2]+=l;s[0]+=n;break;}for(var c=0;c!=3;++c)s[c]=Math.round(s[c]*255);return s}function Ka(e,r){if(r===0)return e;var t=qa(Ga(e));if(r<0)t[2]=t[2]*(1+r);else t[2]=1-(1-t[2])*(1-r);return Ya(Ja(t))}var Za=6,Qa=15,en=1,rn=Za;function tn(e){return Math.floor((e+Math.round(128/rn)/256)*rn)}function an(e){return Math.floor((e-5)/rn*100+.5)/100}function nn(e){return Math.round((e*rn+5)/rn*256)/256}function sn(e){return nn(an(tn(e)))}function on(e){var r=Math.abs(e-sn(e)),t=rn;if(r>.005)for(rn=en;rn":;case"":break;case"":;case"":n={};if(t.diagonalUp)n.diagonalUp=Je(t.diagonalUp);if(t.diagonalDown)n.diagonalDown=Je(t.diagonalDown);r.Borders.push(n);break;case"":break;case"":break;case"":break;case"":break;case"":break;case"":break;case"":break;case"":break;case"":break;case"":break;case"":break;case"":break;case"":break;case"":;case"":break;case"":break;case"":;case"":break;case"":break;case"":;case"":break;case"":break;case"":;case"":break;case"":break;case"":;case"":break;case"":break;case"":break;case"":;case"":break;case"":;case"":break;case"":i=false;break;default:if(a&&a.WTF){if(!i)throw new Error("unrecognized "+t[0]+" in borders")};}})}function vn(e,r,t,a){r.Fills=[];var n={};var i=false;(e[0].match(Ne)||[]).forEach(function(e){var t=Ie(e);switch(Le(t[0])){case"":;case"":break;case"":;case"":n={};r.Fills.push(n);break;case"":break;case"":break;case"":r.Fills.push(n);n={};break;case"":if(t.patternType)n.patternType=t.patternType;break;case"":;case"":break;case"":;case"":break;case"":;case"":break;case"":break;case"":break;case"":break;case"":break;case"":;case"":break;case"":i=false;break;default:if(a&&a.WTF){if(!i)throw new Error("unrecognized "+t[0]+" in fills")};}})}function mn(e,r,t,a){r.Fonts=[];var n={};var s=false;(e[0].match(Ne)||[]).forEach(function(e){var o=Ie(e);switch(Le(o[0])){case"":;case"":break;case"":break;case"
":;case"":r.Fonts.push(n);n={};break;case"":;case"":break;case"":n.bold=1;break;case"":n.italic=1;break;case"":n.underline=1;break;case"":n.strike=1;break;case"":n.outline=1;break;case"":n.shadow=1;break;case"":n.condense=1;break;case"":n.extend=1;break;case"":;case"":break;case"":;case"":break;case"":;case"":break;case"":;case"":break;case"":;case"":break;case"":s=false;break;case"":;case"":break;case"":s=false;break;default:if(a&&a.WTF){if(!s)throw new Error("unrecognized "+o[0]+" in fonts")};}})}function gn(e,r,t){r.NumberFmt=[];var a=q(P._table);for(var n=0;n":;case"":;case"":break;case"0){if(l>392){for(l=392;l>60;--l)if(r.NumberFmt[l]==null)break;r.NumberFmt[l]=o}P.load(o,l)}}break;case"":break;default:if(t.WTF)throw new Error("unrecognized "+s[0]+" in numFmts");}}}function bn(e){var r=[""];[[5,8],[23,26],[41,44],[50,392]].forEach(function(t){for(var a=t[0];a<=t[1];++a)if(e[a]!=null)r[r.length]=ur("numFmt",null,{numFmtId:a,formatCode:$e(e[a])})});if(r.length===1)return"";r[r.length]="";r[0]=ur("numFmts",null,{count:r.length-2}).replace("/>",">");return r.join("")}var wn=["numFmtId","fillId","fontId","borderId","xfId"];var yn=["applyAlignment","applyBorder","applyFill","applyFont","applyNumberFormat","applyProtection","pivotButton","quotePrefix"];function kn(e,r,t){r.CellXf=[];var a;var n=false;(e[0].match(Ne)||[]).forEach(function(e){var i=Ie(e),s=0;switch(Le(i[0])){case"":;case"":;case"":break;case"":a=i;delete a[0];for(s=0;s392){for(s=392;s>60;--s)if(r.NumberFmt[a.numFmtId]==r.NumberFmt[s]){a.numFmtId=s;break}}r.CellXf.push(a);break;case"":break;case"":var o={};if(i.vertical)o.vertical=i.vertical;if(i.horizontal)o.horizontal=i.horizontal;if(i.textRotation!=null)o.textRotation=i.textRotation;if(i.indent)o.indent=i.indent;if(i.wrapText)o.wrapText=Je(i.wrapText);a.alignment=o;break;case"":break;case"":;case"":break;case"":n=false;break;case"":;case"":break;case"":n=false;break;default:if(t&&t.WTF){if(!n)throw new Error("unrecognized "+i[0]+" in cellXfs")};}})}function xn(e){var r=[];r[r.length]=ur("cellXfs",null);e.forEach(function(e){r[r.length]=ur("xf",null,e)});r[r.length]="";if(r.length===2)return"";r[0]=ur("cellXfs",null,{count:r.length-2}).replace("/>",">");return r.join("")}var Sn=function kl(){var e=/<(?:\w+:)?numFmts([^>]*)>[\S\s]*?<\/(?:\w+:)?numFmts>/;var r=/<(?:\w+:)?cellXfs([^>]*)>[\S\s]*?<\/(?:\w+:)?cellXfs>/;var t=/<(?:\w+:)?fills([^>]*)>[\S\s]*?<\/(?:\w+:)?fills>/;var a=/<(?:\w+:)?fonts([^>]*)>[\S\s]*?<\/(?:\w+:)?fonts>/;var n=/<(?:\w+:)?borders([^>]*)>[\S\s]*?<\/(?:\w+:)?borders>/;return function i(s,o,l){var c={};if(!s)return c;s=s.replace(//gm,"").replace(//gm,"");var f;if(f=s.match(e))gn(f,c,l);if(f=s.match(a))mn(f,c,o,l);if(f=s.match(t))vn(f,c,o,l);if(f=s.match(n))pn(f,c,o,l);if(f=s.match(r))kn(f,c,l);return c}}();var _n=ur("styleSheet",null,{xmlns:pr.main[0],"xmlns:vt":pr.vt});ia.STY="http://schemas.openxmlformats.org/officeDocument/2006/relationships/styles";function Cn(e,r){var t=[De,_n],a;if(e.SSF&&(a=bn(e.SSF))!=null)t[t.length]=a;t[t.length]='';t[t.length]='';t[t.length]='';t[t.length]='';if(a=xn(r.cellXfs))t[t.length]=a;t[t.length]='';t[t.length]='';t[t.length]='';if(t.length>2){t[t.length]="";t[1]=t[1].replace("/>",">")}return t.join("")}ia.THEME="http://schemas.openxmlformats.org/officeDocument/2006/relationships/theme";var An=["","","","","","","","","","","",""];function En(e,r,t){r.themeElements.clrScheme=[];var a={};(e[0].match(Ne)||[]).forEach(function(e){var n=Ie(e);switch(n[0]){case"":break;case"":;case"":;case"":;case"":;case"":;case"":;case"":;case"":;case"":;case"":;case"":;case"":;case"":;case"":;case"":;case"":;case"":;case"":;case"":;case"":;case"":;case"":;case"":;case"":if(n[0].charAt(1)==="/"){r.themeElements.clrScheme[An.indexOf(n[0])]=a;a={}}else{a.name=n[0].slice(3,n[0].length-1)}break;default:if(t&&t.WTF)throw new Error("Unrecognized "+n[0]+" in clrScheme");}})}function Fn(){}function Tn(){}var On=/]*)>[\s\S]*<\/a:clrScheme>/;var Dn=/]*)>[\s\S]*<\/a:fontScheme>/;var Mn=/]*)>[\s\S]*<\/a:fmtScheme>/;function Nn(e,r,t){r.themeElements={};var a;[["clrScheme",On,En],["fontScheme",Dn,Fn],["fmtScheme",Mn,Tn]].forEach(function(n){if(!(a=e.match(n[1])))throw new Error(n[0]+" not found in themeElements");n[2](a,r,t)})}var Pn=/]*)>[\s\S]*<\/a:themeElements>/;function Rn(e,r){if(!e||e.length===0)return Rn(In());var t;var a={};if(!(t=e.match(Pn)))throw new Error("themeElements not found in theme");Nn(t[0],a,r);a.raw=e;return a}function In(e,r){if(r&&r.themeXLSX)return r.themeXLSX;if(e&&typeof e.raw=="string")return e.raw;var t=[De];t[t.length]='';t[t.length]="";t[t.length]='';t[t.length]='';t[t.length]='';t[t.length]='';t[t.length]='';t[t.length]='';t[t.length]='';t[t.length]='';t[t.length]='';t[t.length]='';t[t.length]='';t[t.length]='';t[t.length]='';t[t.length]="";t[t.length]='';t[t.length]="";t[t.length]='';t[t.length]='';t[t.length]='';t[t.length]='';t[t.length]='';t[t.length]='';t[t.length]='';t[t.length]='';t[t.length]='';t[t.length]='';t[t.length]='';t[t.length]='';t[t.length]='';t[t.length]='';t[t.length]='';t[t.length]='';t[t.length]='';t[t.length]='';t[t.length]='';t[t.length]='';t[t.length]='';t[t.length]='';t[t.length]='';t[t.length]='';t[t.length]='';t[t.length]='';t[t.length]='';t[t.length]='';t[t.length]='';t[t.length]='';t[t.length]='';t[t.length]='';t[t.length]='';t[t.length]="";t[t.length]="";t[t.length]='';t[t.length]='';t[t.length]='';t[t.length]='';t[t.length]='';t[t.length]='';t[t.length]='';t[t.length]='';t[t.length]='';t[t.length]='';t[t.length]='';t[t.length]='';t[t.length]='';t[t.length]='';t[t.length]='';t[t.length]='';t[t.length]='';t[t.length]='';t[t.length]='';t[t.length]='';t[t.length]='';t[t.length]='';t[t.length]='';t[t.length]='';t[t.length]='';t[t.length]='';t[t.length]='';t[t.length]='';t[t.length]='';t[t.length]='';t[t.length]='';t[t.length]='';t[t.length]='';t[t.length]="";t[t.length]="";t[t.length]='';t[t.length]="";t[t.length]='';t[t.length]='';t[t.length]="";t[t.length]='';t[t.length]='';t[t.length]='';t[t.length]="";t[t.length]='';t[t.length]="";t[t.length]='';t[t.length]="";t[t.length]='';t[t.length]='';t[t.length]="";t[t.length]='';t[t.length]="";t[t.length]="";t[t.length]="";t[t.length]='';t[t.length]='';t[t.length]='';t[t.length]="";t[t.length]="";t[t.length]="";t[t.length]="";t[t.length]='';t[t.length]="";t[t.length]="";t[t.length]="";t[t.length]="";t[t.length]='';t[t.length]="";t[t.length]="";t[t.length]="";t[t.length]="";t[t.length]='';t[t.length]="";t[t.length]='';t[t.length]='';t[t.length]="";t[t.length]="";t[t.length]="";t[t.length]='';t[t.length]='';t[t.length]="";t[t.length]='';t[t.length]='';t[t.length]='';t[t.length]="";t[t.length]='';t[t.length]="";t[t.length]='';t[t.length]="";t[t.length]='';t[t.length]='';t[t.length]="";t[t.length]='';t[t.length]="";t[t.length]="";t[t.length]="";t[t.length]="";t[t.length]="";t[t.length]="";t[t.length]='';t[t.length]="";t[t.length]="";t[t.length]='';t[t.length]="";t[t.length]="";t[t.length]="";t[t.length]="";return t.join("")}function Ln(){}function Bn(e,r,t,a){if(!e)return e;var n=a||{};var i=false,s=false;rt(e,function o(e,r,t){if(s)return;switch(t){case 359:;case 363:;case 364:;case 366:;case 367:;case 368:;case 369:;case 370:;case 371:;case 472:;case 577:;case 578:;case 579:;case 580:;case 581:;case 582:;case 583:;case 584:;case 585:;case 586:;case 587:break;case 35:i=true;break;case 36:i=false;break;default:if((r||"").indexOf("Begin")>0){}else if((r||"").indexOf("End")>0){}else if(!i||n.WTF)throw new Error("Unexpected record "+t.toString(16)+" "+r);}},n)}ia.IMG="http://schemas.openxmlformats.org/officeDocument/2006/relationships/image";ia.DRAW="http://schemas.openxmlformats.org/officeDocument/2006/relationships/drawing";function Un(e,r){if(!e)return"??";var t=(e.match(/]*r:id="([^"]*)"/)||["",""])[1];return r["!id"][t].Target}var zn=1024;function Wn(e,r){var t=[21600,21600];var a=["m0,0l0",t[1],t[0],t[1],t[0],"0xe"].join(",");var n=[ur("xml",null,{"xmlns:v":vr.v,"xmlns:o":vr.o,"xmlns:x":vr.x,"xmlns:mv":vr.mv}).replace(/\/>/,">"),ur("o:shapelayout",ur("o:idmap",null,{"v:ext":"edit",data:e}),{"v:ext":"edit"}),ur("v:shapetype",[ur("v:stroke",null,{joinstyle:"miter"}),ur("v:path",null,{gradientshapeok:"t","o:connecttype":"rect"})].join(""),{id:"_x0000_t202","o:spt":202,coordsize:t.join(","),path:a})];while(zn",i,ur("v:shadow",null,s),ur("v:path",null,{"o:connecttype":"none"}),'
','',"","",cr("x:Anchor",[r.c+1,0,r.r+1,0,r.c+3,20,r.r+5,20].join(",")),cr("x:AutoFill","False"),cr("x:Row",String(r.r)),cr("x:Column",String(r.c)),e[1].hidden?"":"","",""])});n.push("");return n.join("")}ia.CMNT="http://schemas.openxmlformats.org/officeDocument/2006/relationships/comments";function jn(e,r){var t=Array.isArray(e);var a;r.forEach(function(r){var n=gt(r.ref);if(t){if(!e[n.r])e[n.r]=[];a=e[n.r][n.c]}else a=e[r.ref];if(!a){a={t:"z"};if(t)e[n.r][n.c]=a;else e[r.ref]=a;var i=kt(e["!ref"]||"BDWGO1000001:A1");if(i.s.r>n.r)i.s.r=n.r;if(i.e.rn.c)i.s.c=n.c;if(i.e.c/))return[];var t=[];var a=[];var n=e.match(/<(?:\w+:)?authors>([\s\S]*)<\/(?:\w+:)?authors>/);if(n&&n[1])n[1].split(/<\/\w*:?author>/).forEach(function(e){if(e===""||e.trim()==="")return;var r=e.match(/<(?:\w+:)?author[^>]*>(.*)/);if(r)t.push(r[1])});var i=e.match(/<(?:\w+:)?commentList>([\s\S]*)<\/(?:\w+:)?commentList>/);if(i&&i[1])i[1].split(/<\/\w*:?comment>/).forEach(function(e){if(e===""||e.trim()==="")return;var n=e.match(/<(?:\w+:)?comment[^>]*>/);if(!n)return;var i=Ie(n[0]);var s={author:i.authorId&&t[i.authorId]||"sheetjsghost",ref:i.ref,guid:i.guid};var o=gt(i.ref);if(r.sheetRows&&r.sheetRows<=o.r)return;var l=e.match(/<(?:\w+:)?text>([\s\S]*)<\/(?:\w+:)?text>/);var c=!!l&&!!l[1]&&za(l[1])||{r:"",t:"",h:""};s.r=c.r;if(c.r=="")c.t=c.h="";s.t=(c.t||"").replace(/\r\n/g,"\n").replace(/\r/g,"\n");if(r.cellHTML)s.h=c.h;a.push(s)});return a}var Hn=ur("comments",null,{xmlns:pr.main[0]});function Xn(e){var r=[De,Hn];var t=[];r.push("");e.forEach(function(e){e[1].forEach(function(e){var a=$e(e.a);if(t.indexOf(a)>-1)return;t.push(a);r.push(""+a+"")})});r.push("");r.push("");e.forEach(function(e){e[1].forEach(function(a){r.push('');r.push(cr("t",a.t==null?"":$e(a.t)));r.push("")})});r.push("");if(r.length>2){r[r.length]="";r[1]=r[1].replace("/>",">"); -}return r.join("")}var Vn="application/vnd.ms-office.vbaProject";function Gn(e){var r=H.utils.cfb_new({root:"R"});e.FullPaths.forEach(function(t,a){if(t.slice(-1)==="/"||!t.match(/_VBA_PROJECT_CUR/))return;var n=t.replace(/^[^\/]*/,"R").replace(/\/_VBA_PROJECT_CUR\u0000*/,"");H.utils.cfb_add(r,n,e.FileIndex[a].content)});return H.write(r)}function Yn(e,r){r.FullPaths.forEach(function(t,a){if(a==0)return;var n=t.replace(/[^\/]*[\/]/,"/_VBA_PROJECT_CUR/");if(n.slice(-1)!=="/")H.utils.cfb_add(e,n,r.FileIndex[a].content)})}var qn=["xlsb","xlsm","xlam","biff8","xla"];ia.DS="http://schemas.openxmlformats.org/officeDocument/2006/relationships/dialogsheet";ia.MS="http://schemas.microsoft.com/office/2006/relationships/xlMacrosheet";function Jn(){return{"!type":"dialog"}}function Kn(){return{"!type":"dialog"}}function Zn(){return{"!type":"macro"}}function Qn(){return{"!type":"macro"}}var ei=function(){var e=/(^|[^A-Za-z_])R(\[?-?\d+\]|[1-9]\d*|)C(\[?-?\d+\]|[1-9]\d*|)(?![A-Za-z0-9_])/g;var r={r:0,c:0};function t(e,t,a,n){var i=false,s=false;if(a.length==0)s=true;else if(a.charAt(0)=="["){s=true;a=a.slice(1,-1)}if(n.length==0)i=true;else if(n.charAt(0)=="["){i=true;n=n.slice(1,-1)}var o=a.length>0?parseInt(a,10)|0:0,l=n.length>0?parseInt(n,10)|0:0;if(i)l+=r.c;else--l;if(s)o+=r.r;else--o;return t+(i?"":"$")+dt(l)+(s?"":"$")+ct(o)}return function a(n,i){r=i;return n.replace(e,t)}}();var ri=/(^|[^._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;var ti=function(){return function e(r,t){return r.replace(ri,function(e,r,a,n,i,s){var o=ht(n)-(a?0:t.c);var l=lt(s)-(i?0:t.r);var c=l==0?"":!i?"["+l+"]":l+1;var f=o==0?"":!a?"["+o+"]":o+1;return r+"R"+c+"C"+f})}}();function ai(e,r){return e.replace(ri,function(e,t,a,n,i,s){return t+(a=="$"?a+n:dt(ht(n)+r.c))+(i=="$"?i+s:ct(lt(s)+r.r))})}function ni(e,r,t){var a=wt(r),n=a.s,i=gt(t);var s={r:i.r-n.r,c:i.c-n.c};return ai(e,s)}function ii(e){if(e.length==1)return false;return true}function si(e){return e.replace(/_xlfn\./g,"")}var oi={};var li={};ia.WS=["http://schemas.openxmlformats.org/officeDocument/2006/relationships/worksheet","http://purl.oclc.org/ooxml/officeDocument/relationships/worksheet"];var ci=typeof Map!=="undefined";function fi(e,r,t){var a=0,n=e.length;if(t){if(ci?t.has(r):Object.prototype.hasOwnProperty.call(t,r)){var i=ci?t.get(r):t[r];for(;a-1){t.width=nn(a);t.customWidth=1}else if(r.width!=null)t.width=r.width;if(r.hidden)t.hidden=true;if(r.level!=null){t.outlineLevel=t.level=r.level}return t}function hi(e,r){if(!e)return;var t=[.7,.7,.75,.75,.3,.3];if(r=="xlml")t=[1,1,1,1,.5,.5];if(e.left==null)e.left=t[0];if(e.right==null)e.right=t[1];if(e.top==null)e.top=t[2];if(e.bottom==null)e.bottom=t[3];if(e.header==null)e.header=t[4];if(e.footer==null)e.footer=t[5]}function di(e,r,t){var a=t.revssf[r.z!=null?r.z:"General"];var n=60,i=e.length;if(a==null&&t.ssf){for(;n<392;++n)if(t.ssf[n]==null){P.load(r.z,n);t.ssf[n]=r.z;t.revssf[r.z]=a=n;break}}for(n=0;n!=i;++n)if(e[n].numFmtId===a)return n;e[i]={numFmtId:a,fontId:0,fillId:0,borderId:0,xfId:0,applyNumberFormat:1};return i}function pi(e,r,t,a,n,i){try{if(a.cellNF)e.z=P._table[r]}catch(s){if(a.WTF)throw s}if(e.t==="z"&&!a.cellStyles)return;if(e.t==="d"&&typeof e.v==="string")e.v=ce(e.v);if((!a||a.cellText!==false)&&e.t!=="z")try{if(P._table[r]==null)P.load(L[r]||"General",r);if(e.t==="e")e.w=e.w||qt[e.v];else if(r===0){if(e.t==="n"){if((e.v|0)===e.v)e.w=P._general_int(e.v);else e.w=P._general_num(e.v)}else if(e.t==="d"){var o=re(e.v);if((o|0)===o)e.w=P._general_int(o);else e.w=P._general_num(o)}else if(e.v===undefined)return"";else e.w=P._general(e.v,li)}else if(e.t==="d")e.w=P.format(r,re(e.v),li);else e.w=P.format(r,e.v,li)}catch(s){if(a.WTF)throw s}if(!a.cellStyles)return;if(t!=null)try{e.s=i.Fills[t];if(e.s.fgColor&&e.s.fgColor.theme&&!e.s.fgColor.rgb){e.s.fgColor.rgb=Ka(n.themeElements.clrScheme[e.s.fgColor.theme].rgb,e.s.fgColor.tint||0);if(a.WTF)e.s.fgColor.raw_rgb=n.themeElements.clrScheme[e.s.fgColor.theme].rgb}if(e.s.bgColor&&e.s.bgColor.theme){e.s.bgColor.rgb=Ka(n.themeElements.clrScheme[e.s.bgColor.theme].rgb,e.s.bgColor.tint||0);if(a.WTF)e.s.bgColor.raw_rgb=n.themeElements.clrScheme[e.s.bgColor.theme].rgb}}catch(s){if(a.WTF&&i.Fills)throw s}}function vi(e,r,t){if(e&&e["!ref"]){var a=kt(e["!ref"]);if(a.e.c=0&&t.s.c>=0)e["!ref"]=yt(t)}var gi=/<(?:\w:)?mergeCell ref="[A-Z0-9:]+"\s*[\/]?>/g;var bi=/<(?:\w+:)?sheetData[^>]*>([\s\S]*)<\/(?:\w+:)?sheetData>/;var wi=/<(?:\w:)?hyperlink [^>]*>/gm;var yi=/"(\w*:\w*)"/;var ki=/<(?:\w:)?col\b[^>]*[\/]?>/g;var xi=/<(?:\w:)?autoFilter[^>]*([\/]|>([\s\S]*)<\/(?:\w:)?autoFilter)>/g;var Si=/<(?:\w:)?pageMargins[^>]*\/>/g;var _i=/<(?:\w:)?sheetPr\b(?:[^>a-z][^>]*)?\/>/;var Ci=/<(?:\w:)?sheetPr[^>]*(?:[\/]|>([\s\S]*)<\/(?:\w:)?sheetPr)>/;var Ai=/<(?:\w:)?sheetViews[^>]*(?:[\/]|>([\s\S]*)<\/(?:\w:)?sheetViews)>/;function Ei(e,r,t,a,n,i,s){if(!e)return e;if(!a)a={"!id":{}};if(m!=null&&r.dense==null)r.dense=m;var o=r.dense?[]:{};var l={s:{r:2e6,c:2e6},e:{r:0,c:0}};var c="",f="";var u=e.match(bi);if(u){c=e.slice(0,u.index);f=e.slice(u.index+u[0].length)}else c=f=e;var h=c.match(_i);if(h)Ti(h[0],o,n,t);else if(h=c.match(Ci))Oi(h[0],h[1]||"",o,n,t,s,i);var d=(c.match(/<(?:\w*:)?dimension/)||{index:-1}).index;if(d>0){var p=c.slice(d,d+50).match(yi);if(p)mi(o,p[1])}var v=c.match(Ai);if(v&&v[1])$i(v[1],n);var g=[];if(r.cellStyles){var b=c.match(ki);if(b)Bi(g,b)}if(u)Vi(u[1],o,r,l,i,s);var w=f.match(xi);if(w)o["!autofilter"]=zi(w[0]);var y=[];var k=f.match(gi);if(k)for(d=0;d!=k.length;++d)y[d]=kt(k[d].slice(k[d].indexOf('"')+1));var x=f.match(wi);if(x)Ri(o,x,a);var S=f.match(Si);if(S)o["!margins"]=Ii(Ie(S[0]));if(!o["!ref"]&&l.e.c>=l.s.c&&l.e.r>=l.s.r)o["!ref"]=yt(l);if(r.sheetRows>0&&o["!ref"]){var _=kt(o["!ref"]);if(r.sheetRows<=+_.e.r){_.e.r=r.sheetRows-1;if(_.e.r>l.e.r)_.e.r=l.e.r;if(_.e.r<_.s.r)_.s.r=_.e.r;if(_.e.c>l.e.c)_.e.c=l.e.c;if(_.e.c<_.s.c)_.s.c=_.e.c;o["!fullref"]=o["!ref"];o["!ref"]=yt(_)}}if(g.length>0)o["!cols"]=g;if(y.length>0)o["!merges"]=y;return o}function Fi(e){if(e.length===0)return"";var r='';for(var t=0;t!=e.length;++t)r+='';return r+""}function Ti(e,r,t,a){var n=Ie(e);if(!t.Sheets[a])t.Sheets[a]={};if(n.codeName)t.Sheets[a].CodeName=ze(Ke(n.codeName))}function Oi(e,r,t,a,n,i,s){Ti(e.slice(0,e.indexOf(">")),t,a,n)}function Di(e,r,t,a,n){var i=false;var s={},o=null;if(a.bookType!=="xlsx"&&r.vbaraw){var l=r.SheetNames[t];try{if(r.Workbook)l=r.Workbook.Sheets[t].CodeName||l}catch(c){}i=true;s.codeName=Ze($e(l))}if(e&&e["!outline"]){var f={summaryBelow:1,summaryRight:1};if(e["!outline"].above)f.summaryBelow=0;if(e["!outline"].left)f.summaryRight=0;o=(o||"")+ur("outlinePr",null,f)}if(!i&&!o)return;n[n.length]=ur("sheetPr",o,s)}var Mi=["objects","scenarios","selectLockedCells","selectUnlockedCells"];var Ni=["formatColumns","formatRows","formatCells","insertColumns","insertRows","insertHyperlinks","deleteColumns","deleteRows","sort","autoFilter","pivotTables"];function Pi(e){var r={sheet:1};Mi.forEach(function(t){if(e[t]!=null&&e[t])r[t]="1"});Ni.forEach(function(t){if(e[t]!=null&&!e[t])r[t]="0"});if(e.password)r.password=crypto_CreatePasswordVerifier_Method1(e.password).toString(16).toUpperCase();return ur("sheetProtection",null,r)}function Ri(e,r,t){var a=Array.isArray(e);for(var n=0;n!=r.length;++n){var i=Ie(Ke(r[n]),true);if(!i.ref)return;var s=((t||{})["!id"]||[])[i.id];if(s){i.Target=s.Target;if(i.location)i.Target+="#"+ze(i.location)}else{i.Target="#"+ze(i.location);s={Target:i.Target,TargetMode:"Internal"}}i.Rel=s;if(i.tooltip){i.Tooltip=i.tooltip;delete i.tooltip}var o=kt(i.ref);for(var l=o.s.r;l<=o.e.r;++l)for(var c=o.s.c;c<=o.e.c;++c){var f=bt({c:c,r:l});if(a){if(!e[l])e[l]=[];if(!e[l][c])e[l][c]={t:"z",v:undefined};e[l][c].l=i}else{if(!e[f])e[f]={t:"z",v:undefined};e[f].l=i}}}}function Ii(e){var r={};["left","right","top","bottom","header","footer"].forEach(function(t){if(e[t])r[t]=parseFloat(e[t])});return r}function Li(e){hi(e);return ur("pageMargins",null,e)}function Bi(e,r){var t=false;for(var a=0;a!=r.length;++a){var n=Ie(r[a],true);if(n.hidden)n.hidden=Je(n.hidden);var i=parseInt(n.min,10)-1,s=parseInt(n.max,10)-1;if(n.outlineLevel)n.level=+n.outlineLevel||0;delete n.min;delete n.max;n.width=+n.width;if(!t&&n.width){t=true;on(n.width)}ln(n);while(i<=s)e[i++]=ue(n)}}function Ui(e,r){var t=[""],a;for(var n=0;n!=r.length;++n){if(!(a=r[n]))continue;t[t.length]=ur("col",null,ui(n,a))}t[t.length]="";return t.join("")}function zi(e){var r={ref:(e.match(/ref="([^"]*)"/)||[])[1]};return r}function Wi(e,r,t,a){var n=typeof e.ref=="string"?e.ref:yt(e.ref);if(!t.Workbook)t.Workbook={Sheets:[]};if(!t.Workbook.Names)t.Workbook.Names=[];var i=t.Workbook.Names;var s=wt(n);if(s.s.r==s.e.r){s.e.r=wt(r["!ref"]).e.r;n=yt(s)}for(var o=0;oa-z][^>]*)?\/?>/;function $i(e,r){if(!r.Views)r.Views=[{}];(e.match(ji)||[]).forEach(function(e,t){var a=Ie(e);if(!r.Views[t])r.Views[t]={};if(+a.zoomScale)r.Views[t].zoom=+a.zoomScale;if(Je(a.rightToLeft))r.Views[t].RTL=true})}function Hi(e,r,t,a){var n={workbookViewId:"0"};if((((a||{}).Workbook||{}).Views||[])[0])n.rightToLeft=a.Workbook.Views[0].RTL?"1":"0";return ur("sheetViews",ur("sheetView",null,n),{})}function Xi(e,r,t,a){if(e.v===undefined&&typeof e.f!=="string"||e.t==="z")return"";var n="";var i=e.t,s=e.v;if(e.t!=="z")switch(e.t){case"b":n=e.v?"1":"0";break;case"n":n=""+e.v;break;case"e":n=qt[e.v];break;case"d":if(a&&a.cellDates)n=ce(e.v,-1).toISOString();else{e=ue(e);e.t="n";n=""+(e.v=re(ce(e.v)))}if(typeof e.z==="undefined")e.z=P._table[14];break;default:n=e.v;break;}var o=cr("v",$e(n)),l={r:r};var c=di(a.cellXfs,e,a);if(c!==0)l.s=c;switch(e.t){case"n":break;case"d":l.t="d";break;case"b":l.t="b";break;case"e":l.t="e";break;case"z":break;default:if(e.v==null){delete e.t;break}if(e.v.length>32767)throw new Error("Text length must not exceed 32767 characters");if(a&&a.bookSST){o=cr("v",""+fi(a.Strings,e.v,a.revStrings));l.t="s";break}l.t="str";break;}if(e.t!=i){e.t=i;e.v=s}if(typeof e.f=="string"&&e.f){var f=e.F&&e.F.slice(0,r.length)==r?{t:"array",ref:e.F}:null;o=ur("f",$e(e.f),f)+(e.v!=null?o:"")}if(e.l)t["!links"].push([r,e.l]);if(e.c)t["!comments"].push([r,e.c]);return ur("c",o,l)}var Vi=function(){var e=/<(?:\w+:)?c[ \/>]/,r=/<\/(?:\w+:)?row>/;var t=/r=["']([^"']*)["']/,a=/<(?:\w+:)?is>([\S\s]*?)<\/(?:\w+:)?is>/;var n=/ref=["']([^"']*)["']/;var i=tr("v"),s=tr("f");return function o(l,c,f,u,h,d){var p=0,v="",m=[],g=[],b=0,w=0,y=0,k="",x;var S,_=0,C=0;var A,E;var F=0,T=0;var O=Array.isArray(d.CellXf),D;var M=[];var N=[];var R=Array.isArray(c);var I=[],L={},B=false;var U=!!f.sheetStubs;for(var z=l.split(r),W=0,j=z.length;W!=j;++W){v=z[W].trim();var $=v.length;if($===0)continue;var H=0;e:for(p=0;p<$;++p)switch(v[p]){case">":if(v[p-1]!="/"){++p;break e}if(f&&f.cellStyles){S=Ie(v.slice(H,p),true);_=S.r!=null?parseInt(S.r,10):_+1;C=-1;if(f.sheetRows&&f.sheetRows<_)continue;L={};B=false;if(S.ht){B=true;L.hpt=parseFloat(S.ht);L.hpx=hn(L.hpt)}if(S.hidden=="1"){B=true;L.hidden=true}if(S.outlineLevel!=null){B=true;L.level=+S.outlineLevel}if(B)I[_-1]=L}break;case"<":H=p;break;}if(H>=p)break;S=Ie(v.slice(H,p),true);_=S.r!=null?parseInt(S.r,10):_+1;C=-1;if(f.sheetRows&&f.sheetRows<_)continue;if(u.s.r>_-1)u.s.r=_-1;if(u.e.r<_-1)u.e.r=_-1;if(f&&f.cellStyles){L={};B=false;if(S.ht){B=true;L.hpt=parseFloat(S.ht);L.hpx=hn(L.hpt)}if(S.hidden=="1"){B=true;L.hidden=true}if(S.outlineLevel!=null){B=true;L.level=+S.outlineLevel}if(B)I[_-1]=L}m=v.slice(p).split(e);for(var X=0;X!=m.length;++X)if(m[X].trim().charAt(0)!="<")break;m=m.slice(X);for(p=0;p!=m.length;++p){v=m[p].trim();if(v.length===0)continue;g=v.match(t);b=p;w=0;y=0;v="":"")+v;if(g!=null&&g.length===2){b=0;k=g[1];for(w=0;w!=k.length;++w){if((y=k.charCodeAt(w)-64)<1||y>26)break;b=26*b+y}--b;C=b}else++C;for(w=0;w!=v.length;++w)if(v.charCodeAt(w)===62)break;++w;S=Ie(v.slice(0,w),true);if(!S.r)S.r=bt({r:_-1,c:C});k=v.slice(w);x={t:""};if((g=k.match(i))!=null&&g[1]!=="")x.v=ze(g[1]);if(f.cellFormula){if((g=k.match(s))!=null&&g[1]!==""){x.f=ze(Ke(g[1])).replace(/\r\n/g,"\n");if(!f.xlfn)x.f=si(x.f);if(g[0].indexOf('t="array"')>-1){x.F=(k.match(n)||[])[1];if(x.F.indexOf(":")>-1)M.push([kt(x.F),x.F])}else if(g[0].indexOf('t="shared"')>-1){E=Ie(g[0]);var V=ze(Ke(g[1]));if(!f.xlfn)V=si(V);N[parseInt(E.si,10)]=[E,V,S.r]}}else if(g=k.match(/]*\/>/)){E=Ie(g[0]);if(N[E.si])x.f=ni(N[E.si][1],N[E.si][2],S.r)}var G=gt(S.r);for(w=0;w=M[w][0].s.r&&G.r<=M[w][0].e.r)if(G.c>=M[w][0].s.c&&G.c<=M[w][0].e.c)x.F=M[w][1]}if(S.t==null&&x.v===undefined){if(x.f||x.F){x.v=0;x.t="n"}else if(!U)continue;else x.t="z"}else x.t=S.t||"n";if(u.s.c>C)u.s.c=C;if(u.e.c0)c["!rows"]=I}}();function Gi(e,r,t,a){var n=[],i=[],s=kt(e["!ref"]),o="",l,c="",f=[],u=0,h=0,d=e["!rows"];var p=Array.isArray(e);var v={r:c},m,g=-1;for(h=s.s.c;h<=s.e.c;++h)f[h]=dt(h);for(u=s.s.r;u<=s.e.r;++u){i=[];c=ct(u);for(h=s.s.c;h<=s.e.c;++h){l=f[h]+c;var b=p?(e[u]||[])[h]:e[l];if(b===undefined)continue;if((o=Xi(b,l,e,r,t,a))!=null)i.push(o)}if(i.length>0||d&&d[u]){v={r:c};if(d&&d[u]){m=d[u];if(m.hidden)v.hidden=1;g=-1;if(m.hpx)g=un(m.hpx);else if(m.hpt)g=m.hpt;if(g>-1){v.ht=g;v.customHeight=1}if(m.level){v.outlineLevel=m.level}}n[n.length]=ur("row",i.join(""),v)}}if(d)for(;u-1){v.ht=g;v.customHeight=1}if(m.level){v.outlineLevel=m.level}n[n.length]=ur("row","",v)}}return n.join("")}var Yi=ur("worksheet",null,{xmlns:pr.main[0],"xmlns:r":pr.r});function qi(e,r,t,a){var n=[De,Yi];var i=t.SheetNames[e],s=0,o="";var l=t.Sheets[i];if(l==null)l={};var c=l["!ref"]||"A1";var f=kt(c);if(f.e.c>16383||f.e.r>1048575){if(r.WTF)throw new Error("Range "+c+" exceeds format limit A1:XFD1048576");f.e.c=Math.min(f.e.c,16383);f.e.r=Math.min(f.e.c,1048575);c=yt(f)}if(!a)a={};l["!comments"]=[];var u=[];Di(l,t,e,r,n);n[n.length]=ur("dimension",null,{ref:c});n[n.length]=Hi(l,r,e,t);if(r.sheetFormat)n[n.length]=ur("sheetFormatPr",null,{defaultRowHeight:r.sheetFormat.defaultRowHeight||"16",baseColWidth:r.sheetFormat.baseColWidth||"10",outlineLevelRow:r.sheetFormat.outlineLevelRow||"7"});if(l["!cols"]!=null&&l["!cols"].length>0)n[n.length]=Ui(l,l["!cols"]);n[s=n.length]="";l["!links"]=[];if(l["!ref"]!=null){o=Gi(l,r,e,t,a);if(o.length>0)n[n.length]=o}if(n.length>s+1){n[n.length]="";n[s]=n[s].replace("/>",">")}if(l["!protect"])n[n.length]=Pi(l["!protect"]);if(l["!autofilter"]!=null)n[n.length]=Wi(l["!autofilter"],l,t,e);if(l["!merges"]!=null&&l["!merges"].length>0)n[n.length]=Fi(l["!merges"]);var h=-1,d,p=-1;if(l["!links"].length>0){n[n.length]="";l["!links"].forEach(function(e){if(!e[1].Target)return;d={ref:e[0]};if(e[1].Target.charAt(0)!="#"){p=ua(a,-1,$e(e[1].Target).replace(/#.*$/,""),ia.HLINK);d["r:id"]="rId"+p}if((h=e[1].Target.indexOf("#"))>-1)d.location=$e(e[1].Target.slice(h+1));if(e[1].Tooltip)d.tooltip=$e(e[1].Tooltip);n[n.length]=ur("hyperlink",null,d)});n[n.length]=""}delete l["!links"];if(l["!margins"]!=null)n[n.length]=Li(l["!margins"]);if(!r||r.ignoreEC||r.ignoreEC==void 0)n[n.length]=cr("ignoredErrors",ur("ignoredError",null,{numberStoredAsText:1,sqref:c}));if(u.length>0){p=ua(a,-1,"../drawings/drawing"+(e+1)+".xml",ia.DRAW);n[n.length]=ur("drawing",null,{"r:id":"rId"+p});l["!drawing"]=u}if(l["!comments"].length>0){p=ua(a,-1,"../drawings/vmlDrawing"+(e+1)+".vml",ia.VML);n[n.length]=ur("legacyDrawing",null,{"r:id":"rId"+p});l["!legacy"]=p}if(n.length>1){n[n.length]="";n[1]=n[1].replace("/>",">")}return n.join("")}ia.CHART="http://schemas.openxmlformats.org/officeDocument/2006/relationships/chart";ia.CHARTEX="http://schemas.microsoft.com/office/2014/relationships/chartEx";function Ji(e){var r=[];var t=e.match(/^/);var a;(e.match(/(.*?)<\/c:pt>/gm)||[]).forEach(function(e){var a=e.match(/(.*)<\/c:v><\/c:pt>/);if(!a)return;r[+a[1]]=t?+a[2]:a[2]});var n=ze((e.match(/([\s\S]*?)<\/c:formatCode>/)||["","General"])[1]);(e.match(/(.*?)<\/c:f>/gm)||[]).forEach(function(e){a=e.replace(/<.*?>/g,"")});return[r,n,a]}function Ki(e,r,t,a,n,i){var s=i||{"!type":"chart"};if(!e)return i;var o=0,l=0,c="A";var f={s:{r:2e6,c:2e6},e:{r:0,c:0}};(e.match(/[\s\S]*?<\/c:numCache>/gm)||[]).forEach(function(e){var r=Ji(e);f.s.r=f.s.c=0;f.e.c=o;c=dt(o);r[0].forEach(function(e,t){s[c+ct(t)]={t:"n",v:e,z:r[1]};l=t});if(f.e.r0)s["!ref"]=yt(f);return s}ia.CS="http://schemas.openxmlformats.org/officeDocument/2006/relationships/chartsheet";var Zi=ur("chartsheet",null,{xmlns:pr.main[0],"xmlns:r":pr.r});function Qi(e,r,t,a,n){if(!e)return e;if(!a)a={"!id":{}};var i={"!type":"chart","!drawel":null,"!rel":""};var s;var o=e.match(_i);if(o)Ti(o[0],i,n,t);if(s=e.match(/drawing r:id="(.*?)"/))i["!rel"]=s[1];if(a["!id"][i["!rel"]])i["!drawel"]=a["!id"][i["!rel"]];return i}function es(e,r,t,a){var n=[De,Zi];n[n.length]=ur("drawing",null,{"r:id":"rId1"});ua(a,-1,"../drawings/drawing"+(e+1)+".xml",ia.DRAW);if(n.length>2){n[n.length]="";n[1]=n[1].replace("/>",">")}return n.join("")}function rs(e,r){e.l+=10;var t=parse_XLWideString(e,r-10);return{name:t}}function ts(e,r,t,a,n){if(!e)return e;if(!a)a={"!id":{}};var i={"!type":"chart","!drawel":null,"!rel":""};var s=[];var o=false;rt(e,function l(e,a,c){switch(c){case 550:i["!rel"]=e;break;case 651:if(!n.Sheets[t])n.Sheets[t]={};if(e.name)n.Sheets[t].CodeName=e.name;break;case 562:;case 652:;case 669:;case 679:;case 551:;case 552:;case 476:;case 3072:break;case 35:o=true;break;case 36:o=false;break;case 37:s.push(a);break;case 38:s.pop();break;default:if((a||"").indexOf("Begin")>0)s.push(a);else if((a||"").indexOf("End")>0)s.pop();else if(!o||r.WTF)throw new Error("Unexpected record "+c+" "+a);}},r);if(a["!id"][i["!rel"]])i["!drawel"]=a["!id"][i["!rel"]];return i}function as(){var e=tt();at(e,"BrtBeginSheet");at(e,"BrtEndSheet");return e.end()}var ns=[["allowRefreshQuery",false,"bool"],["autoCompressPictures",true,"bool"],["backupFile",false,"bool"],["checkCompatibility",false,"bool"],["CodeName",""],["date1904",false,"bool"],["defaultThemeVersion",0,"int"],["filterPrivacy",false,"bool"],["hidePivotFieldList",false,"bool"],["promptedSolutions",false,"bool"],["publishItems",false,"bool"],["refreshAllConnections",false,"bool"],["saveExternalLinkValues",true,"bool"],["showBorderUnselectedTables",true,"bool"],["showInkAnnotation",true,"bool"],["showObjects","all"],["showPivotChartFilter",false,"bool"],["updateLinks","userSet"]];var is=[["activeTab",0,"int"],["autoFilterDateGrouping",true,"bool"],["firstSheet",0,"int"],["minimized",false,"bool"],["showHorizontalScroll",true,"bool"],["showSheetTabs",true,"bool"],["showVerticalScroll",true,"bool"],["tabRatio",600,"int"],["visibility","visible"]];var ss=[];var os=[["calcCompleted","true"],["calcMode","auto"],["calcOnSave","true"],["concurrentCalc","true"],["fullCalcOnLoad","false"],["fullPrecision","true"],["iterate","false"],["iterateCount","100"],["iterateDelta","0.001"],["refMode","A1"]];function ls(e,r){for(var t=0;t!=e.length;++t){var a=e[t];for(var n=0;n!=r.length;++n){var i=r[n];if(a[i[0]]==null)a[i[0]]=i[1];else switch(i[2]){case"bool":if(typeof a[i[0]]=="string")a[i[0]]=Je(a[i[0]]);break;case"int":if(typeof a[i[0]]=="string")a[i[0]]=parseInt(a[i[0]],10);break;}}}}function cs(e,r){for(var t=0;t!=r.length;++t){var a=r[t];if(e[a[0]]==null)e[a[0]]=a[1];else switch(a[2]){case"bool":if(typeof e[a[0]]=="string")e[a[0]]=Je(e[a[0]]);break;case"int":if(typeof e[a[0]]=="string")e[a[0]]=parseInt(e[a[0]],10);break;}}}function fs(e){cs(e.WBProps,ns);cs(e.CalcPr,os);ls(e.WBView,is);ls(e.Sheets,ss);li.date1904=Je(e.WBProps.date1904)}function us(e){if(!e.Workbook)return"false";if(!e.Workbook.WBProps)return"false";return Je(e.Workbook.WBProps.date1904)?"true":"false"}var hs="][*?/\\".split("");function ds(e,r){if(e.length>31){if(r)return false;throw new Error("Sheet names cannot exceed 31 chars")}var t=true;hs.forEach(function(a){if(e.indexOf(a)==-1)return;if(!r)throw new Error("Sheet name cannot contain : \\ / ? * [ ]");t=false});return t}function ps(e,r,t){e.forEach(function(a,n){ds(a);for(var i=0;i22)throw new Error("Bad Code Name: Worksheet"+s)}})}function vs(e){if(!e||!e.SheetNames||!e.Sheets)throw new Error("Invalid Workbook");if(!e.SheetNames.length)throw new Error("Workbook is empty");var r=e.Workbook&&e.Workbook.Sheets||[];ps(e.SheetNames,r,!!e.vbaraw);for(var t=0;t":break;case"":;case"":break;case"":break;case"":ns.forEach(function(e){if(f[e[0]]==null)return;switch(e[2]){case"bool":t.WBProps[e[0]]=Je(f[e[0]]);break;case"int":t.WBProps[e[0]]=parseInt(f[e[0]],10);break;default:t.WBProps[e[0]]=f[e[0]];}});if(f.codeName)t.WBProps.CodeName=Ke(f.codeName);break;case"":break;case"":break;case"":;case"":break;case"":delete f[0];t.WBView.push(f);break;case"":break;case"":;case"":break;case"":break;case"":break;case"":;case"":break;case"":break;case"":;case"":a=false;break;case"":{i.Ref=ze(Ke(e.slice(s,c)));t.Names.push(i)}break;case"":break;case"":delete f[0];t.CalcPr=f;break;case"":break;case"":;case"":;case"":break;case"":;case"":;case"":break;case"":;case"":break;case"":break;case"":break;case"":;case"":break;case"":;case"":;case"":break;case"":a=false;break;case"":a=true;break;case"":a=false;break;case"0;var a={codeName:"ThisWorkbook"};if(e.Workbook&&e.Workbook.WBProps){ns.forEach(function(r){if(e.Workbook.WBProps[r[0]]==null)return;if(e.Workbook.WBProps[r[0]]==r[1])return;a[r[0]]=e.Workbook.WBProps[r[0]]});if(e.Workbook.WBProps.CodeName){a.codeName=e.Workbook.WBProps.CodeName;delete a.CodeName}}r[r.length]=ur("workbookPr",null,a);var n=e.Workbook&&e.Workbook.Sheets||[];var i=0;if(n&&n[0]&&!!n[0].Hidden){r[r.length]="";for(i=0;i!=e.SheetNames.length;++i){if(!n[i])break;if(!n[i].Hidden)break}if(i==e.SheetNames.length)i=0;r[r.length]='';r[r.length]=""}r[r.length]="";for(i=0;i!=e.SheetNames.length;++i){var s={name:$e(e.SheetNames[i].slice(0,31))};s.sheetId=""+(i+1);s["r:id"]="rId"+(i+1);if(n[i])switch(n[i].Hidden){case 1:s.state="hidden";break;case 2:s.state="veryHidden";break;}r[r.length]=ur("sheet",null,s)}r[r.length]="";if(t){r[r.length]="";if(e.Workbook&&e.Workbook.Names)e.Workbook.Names.forEach(function(e){var t={name:e.Name};if(e.Comment)t.comment=e.Comment;if(e.Sheet!=null)t.localSheetId=""+e.Sheet;if(e.Hidden)t.hidden="1";if(!e.Ref)return;r[r.length]=ur("definedName",$e(e.Ref),t)});r[r.length]=""}if(r.length>2){r[r.length]="";r[1]=r[1].replace("/>",">")}return r.join("")}function ys(e,r,t){if(r.slice(-4)===".bin")return parse_wb_bin(e,t);return gs(e,t)}function ks(e,r,t,a,n,i,s,o){if(r.slice(-4)===".bin")return parse_ws_bin(e,a,t,n,i,s,o);return Ei(e,a,t,n,i,s,o)}function xs(e,r,t,a,n,i,s,o){if(r.slice(-4)===".bin")return ts(e,a,t,n,i,s,o);return Qi(e,a,t,n,i,s,o)}function Ss(e,r,t,a,n,i,s,o){if(r.slice(-4)===".bin")return Zn(e,a,t,n,i,s,o);return Qn(e,a,t,n,i,s,o)}function _s(e,r,t,a,n,i,s,o){if(r.slice(-4)===".bin")return Jn(e,a,t,n,i,s,o);return Kn(e,a,t,n,i,s,o)}function Cs(e,r,t,a){if(r.slice(-4)===".bin")return parse_sty_bin(e,t,a);return Sn(e,t,a)}function As(e,r,t){return Rn(e,t)}function Es(e,r,t){if(r.slice(-4)===".bin")return parse_sst_bin(e,t);return Ha(e,t)}function Fs(e,r,t){if(r.slice(-4)===".bin")return parse_comments_bin(e,t);return $n(e,t)}function Ts(e,r,t){if(r.slice(-4)===".bin")return parse_cc_bin(e,r,t);return parse_cc_xml(e,r,t)}function Os(e,r,t,a){if(t.slice(-4)===".bin")return Bn(e,r,t,a);return Ln(e,r,t,a)}function Ds(e,r,t){return(r.slice(-4)===".bin"?write_wb_bin:ws)(e,t)}function Ms(e,r,t,a,n){return(r.slice(-4)===".bin"?write_ws_bin:qi)(e,t,a,n)}function Ns(e,r,t,a,n){return(r.slice(-4)===".bin"?as:es)(e,t,a,n)}function Ps(e,r,t){return(r.slice(-4)===".bin"?write_sty_bin:Cn)(e,t)}function Rs(e,r,t){return(r.slice(-4)===".bin"?write_sst_bin:Va)(e,t)}function Is(e,r,t){return(r.slice(-4)===".bin"?write_comments_bin:Xn)(e,t)}var Ls=function(){function e(e,r){var t=r||{};if(m!=null&&t.dense==null)t.dense=m;var a=t.dense?[]:{};e=e.replace(//g,"");var n=e.match(/");var i=e.match(/<\/table/i);var s=n.index,o=i&&i.index||e.length;var l=ge(e.slice(s,o),/(:?]*>)/i,"");var c=-1,f=0,u=0,h=0;var d={s:{r:1e7,c:1e7},e:{r:0,c:0}};var p=[];for(s=0;s/i);for(o=0;o"))>-1)y=y.slice(k+1);for(var x=0;x")));h=_.colspan?+_.colspan:1;if((u=+_.rowspan)>1||h>1)p.push({s:{r:c,c:f},e:{r:c+(u||1)-1,c:f+h-1}});var C=_.t||_["data-t"]||"";if(!y.length){f+=h;continue}y=ar(y);if(d.s.r>c)d.s.r=c;if(d.e.rf)d.s.c=f;if(d.e.c[\s\S]*?<\/table>/gi);if(!a||a.length==0)throw new Error("Invalid HTML: could not find
");if(a.length==1)return _t(e(a[0],t),t);var n=Qo.book_new();a.forEach(function(r,a){Qo.book_append_sheet(n,e(r,t),"Sheet"+(a+1))});return n}function t(e,r,t,a){var n=e["!merges"]||[];var i=[];for(var s=r.s.c;s<=r.e.c;++s){var o=0,l=0;for(var c=0;ct||n[c].s.c>s)continue;if(n[c].e.r1)d.rowspan=o;if(l>1)d.colspan=l;if(a.editable)h=''+h+"";else if(u){d["data-t"]=u&&u.t||"z";if(u.v!=null)d["data-v"]=u.v;if(u.z!=null)d["data-z"]=u.z;if(u.l&&(u.l.Target||"#").charAt(0)!="#")h=''+h+""}d.id=(a.id||"sjs")+"-"+f;i.push(ur("td",h,d))}var p="";return p+i.join("")+""}function a(e,r,t){var a=[];return a.join("")+""}var n='SheetJS Table Export';var i="";function s(e,r){var s=r||{};var o=s.header!=null?s.header:n;var l=s.footer!=null?s.footer:i;var c=[o];var f=wt(e["!ref"]);s.dense=Array.isArray(e);c.push(a(e,f,s));for(var u=f.s.r;u<=f.e.r;++u)c.push(t(e,f,u,s));c.push("
"+l);return c.join("")}return{to_workbook:r,to_sheet:e,_row:t,BEGIN:n,END:i,_preamble:a,from_sheet:s}}();function Bs(e,r,t){var a=t||{};if(m!=null)a.dense=m;var n=0,i=0;if(a.origin!=null){if(typeof a.origin=="number")n=a.origin;else{var s=typeof a.origin=="string"?gt(a.origin):a.origin;n=s.r;i=s.c}} -var o=r.getElementsByTagName("tr");var l=Math.min(a.sheetRows||1e7,o.length);var c={s:{r:0,c:0},e:{r:n,c:i}};if(e["!ref"]){var f=wt(e["!ref"]);c.s.r=Math.min(c.s.r,f.s.r);c.s.c=Math.min(c.s.c,f.s.c);c.e.r=Math.max(c.e.r,f.e.r);c.e.c=Math.max(c.e.c,f.e.c);if(n==-1)c.e.r=n=f.e.r+1}var u=[],h=0;var d=e["!rows"]||(e["!rows"]=[]);var p=0,v=0,g=0,b=0,w=0,y=0;if(!e["!cols"])e["!cols"]=[];for(;p1||y>1)u.push({s:{r:v+n,c:b+i},e:{r:v+n+(w||1)-1,c:b+i+(y||1)-1}});var E={t:"s",v:_};var F=S.getAttribute("data-t")||S.getAttribute("t")||"";if(_!=null){if(_.length==0)E.t=F||"z";else if(a.raw||_.trim().length==0||F=="s"){}else if(_==="TRUE")E={t:"b",v:true};else if(_==="FALSE")E={t:"b",v:false};else if(!isNaN(de(_)))E={t:"n",v:de(_)};else if(!isNaN(ve(_).getDate())){E={t:"d",v:ce(_)};if(!a.cellDates)E={t:"n",v:re(E.v)};E.z=a.dateNF||P._table[14]}}if(E.z===undefined&&C!=null)E.z=C;var T="",O=S.getElementsByTagName("A");if(O&&O.length)for(var D=0;D=l)e["!fullref"]=yt((c.e.r=o.length-p+v-1+n,c));return e}function Us(e,r){var t=r||{};var a=t.dense?[]:{};return Bs(a,e,r)}function zs(e,r){return _t(Us(e,r),r)}function Ws(e){var r="";var t=js(e);if(t)r=t(e).getPropertyValue("display");if(!r)r=e.style&&e.style.display;return r==="none"}function js(e){if(e.ownerDocument.defaultView&&typeof e.ownerDocument.defaultView.getComputedStyle==="function")return e.ownerDocument.defaultView.getComputedStyle;if(typeof getComputedStyle==="function")return getComputedStyle;return null}var $s=function(){var e=function(e){var r=e.replace(/[\t\r\n]/g," ").trim().replace(/ +/g," ").replace(//g," ").replace(//g,function(e,r){return Array(parseInt(r,10)+1).join(" ")}).replace(/]*\/>/g,"\t").replace(//g,"\n");var t=ze(r.replace(/<[^>]*>/g,""));return[t]};var r={day:["d","dd"],month:["m","mm"],year:["y","yy"],hours:["h","hh"],minutes:["m","mm"],seconds:["s","ss"],"am-pm":["A/P","AM/PM"],"day-of-week":["ddd","dddd"],era:["e","ee"],quarter:["\\Qm",'m\\"th quarter"']};return function t(a,n){var i=n||{};if(m!=null&&i.dense==null)i.dense=m;var s=xlml_normalize(a);var o=[],l;var c;var f={name:""},u="",h=0;var d;var p;var v={},g=[];var b=i.dense?[]:{};var w,y;var k={value:""};var x="",S=0,_;var C=[];var A=-1,E=-1,F={s:{r:1e6,c:1e7},e:{r:0,c:0}};var T=0;var O={};var D=[],M={},N=0,P=0;var R=[],I=1,L=1;var B=[];var U={Names:[]};var z={};var W=["",""];var j=[],$={};var H="",X=0;var V=false,G=false;var Y=0;xlmlregex.lastIndex=0;s=s.replace(//gm,"").replace(//gm,"");while(w=xlmlregex.exec(s))switch(w[3]=w[3].replace(/_.*$/,"")){case"table":;case"工作表":if(w[1]==="/"){if(F.e.c>=F.s.c&&F.e.r>=F.s.r)b["!ref"]=yt(F);else b["!ref"]="A1:A1";if(i.sheetRows>0&&i.sheetRows<=F.e.r){b["!fullref"]=b["!ref"];F.e.r=i.sheetRows-1;b["!ref"]=yt(F)}if(D.length)b["!merges"]=D;if(R.length)b["!rows"]=R;d.name=d["名称"]||d.name;if(typeof JSON!=="undefined")JSON.stringify(d);g.push(d.name);v[d.name]=b;G=false}else if(w[0].charAt(w[0].length-2)!=="/"){d=Ie(w[0],false);A=E=-1;F.s.r=F.s.c=1e7;F.e.r=F.e.c=0;b=i.dense?[]:{};D=[];R=[];G=true}break;case"table-row-group":if(w[1]==="/")--T;else++T;break;case"table-row":;case"行":if(w[1]==="/"){A+=I;I=1;break}p=Ie(w[0],false);if(p["行号"])A=p["行号"]-1;else if(A==-1)A=0;I=+p["number-rows-repeated"]||1;if(I<10)for(Y=0;Y0)R[A+Y]={level:T};E=-1;break;case"covered-table-cell":if(w[1]!=="/")++E;if(i.sheetStubs){if(i.dense){if(!b[A])b[A]=[];b[A][E]={t:"z"}}else b[bt({r:A,c:E})]={t:"z"}}x="";C=[];break;case"table-cell":;case"数据":if(w[0].charAt(w[0].length-2)==="/"){++E;k=Ie(w[0],false);L=parseInt(k["number-columns-repeated"]||"1",10);y={t:"z",v:null};if(k.formula&&i.cellFormula!=false)y.f=ods_to_csf_formula(ze(k.formula));if((k["数据类型"]||k["value-type"])=="string"){y.t="s";y.v=ze(k["string-value"]||"");if(i.dense){if(!b[A])b[A]=[];b[A][E]=y}else{b[bt({r:A,c:E})]=y}}E+=L-1}else if(w[1]!=="/"){++E;x="";S=0;C=[];L=1;var q=I?A+I-1:A;if(E>F.e.c)F.e.c=E;if(EF.e.r)F.e.r=q;k=Ie(w[0],false);j=[];$={};y={t:k["数据类型"]||k["value-type"],v:null};if(i.cellFormula){if(k.formula)k.formula=ze(k.formula);if(k["number-matrix-columns-spanned"]&&k["number-matrix-rows-spanned"]){N=parseInt(k["number-matrix-rows-spanned"],10)||0;P=parseInt(k["number-matrix-columns-spanned"],10)||0;M={s:{r:A,c:E},e:{r:A+N-1,c:E+P-1}};y.F=yt(M);B.push([M,y.F])}if(k.formula)y.f=ods_to_csf_formula(k.formula);else for(Y=0;Y=B[Y][0].s.r&&A<=B[Y][0].e.r)if(E>=B[Y][0].s.c&&E<=B[Y][0].e.c)y.F=B[Y][1]}if(k["number-columns-spanned"]||k["number-rows-spanned"]){N=parseInt(k["number-rows-spanned"],10)||0;P=parseInt(k["number-columns-spanned"],10)||0;M={s:{r:A,c:E},e:{r:A+N-1,c:E+P-1}};D.push(M)}if(k["number-columns-repeated"])L=parseInt(k["number-columns-repeated"],10);switch(y.t){case"boolean":y.t="b";y.v=Je(k["boolean-value"]);break;case"float":y.t="n";y.v=parseFloat(k.value);break;case"percentage":y.t="n";y.v=parseFloat(k.value);break;case"currency":y.t="n";y.v=parseFloat(k.value);break;case"date":y.t="d";y.v=ce(k["date-value"]);if(!i.cellDates){y.t="n";y.v=re(y.v)}y.z="m/d/yy";break;case"time":y.t="n";y.v=se(k["time-value"])/86400;if(i.cellDates){y.t="d";y.v=ie(y.v)}y.z="HH:MM:SS";break;case"number":y.t="n";y.v=parseFloat(k["数据数值"]);break;default:if(y.t==="string"||y.t==="text"||!y.t){y.t="s";if(k["string-value"]!=null){x=ze(k["string-value"]);C=[]}}else throw new Error("Unsupported value type "+y.t);}}else{V=false;if(y.t==="s"){y.v=x||"";if(C.length)y.R=C;V=S==0}if(z.Target)y.l=z;if(j.length>0){y.c=j;j=[]}if(x&&i.cellText!==false)y.w=x;if(V){y.t="z";delete y.v}if(!V||i.sheetStubs){if(!(i.sheetRows&&i.sheetRows<=A)){for(var J=0;J0)b[A+J][E+L]=ue(y)}else{b[bt({r:A+J,c:E})]=y;while(--L>0)b[bt({r:A+J,c:E+L})]=ue(y)}if(F.e.c<=E)F.e.c=E}}}L=parseInt(k["number-columns-repeated"]||"1",10);E+=L-1;L=0;y={};x="";C=[]}z={};break;case"document":;case"document-content":;case"电子表格文档":;case"spreadsheet":;case"主体":;case"scripts":;case"styles":;case"font-face-decls":;case"master-styles":if(w[1]==="/"){if((l=o.pop())[0]!==w[3])throw"Bad state: "+l}else if(w[0].charAt(w[0].length-2)!=="/")o.push([w[3],true]);break;case"annotation":if(w[1]==="/"){if((l=o.pop())[0]!==w[3])throw"Bad state: "+l;$.t=x;if(C.length)$.R=C;$.a=H;j.push($)}else if(w[0].charAt(w[0].length-2)!=="/"){o.push([w[3],false])}H="";X=0;x="";S=0;C=[];break;case"creator":if(w[1]==="/"){H=s.slice(X,w.index)}else X=w.index+w[0].length;break;case"meta":;case"元数据":;case"settings":;case"config-item-set":;case"config-item-map-indexed":;case"config-item-map-entry":;case"config-item-map-named":;case"shapes":;case"frame":;case"text-box":;case"image":;case"data-pilot-tables":;case"list-style":;case"form":;case"dde-links":;case"event-listeners":;case"chart":if(w[1]==="/"){if((l=o.pop())[0]!==w[3])throw"Bad state: "+l}else if(w[0].charAt(w[0].length-2)!=="/")o.push([w[3],false]);x="";S=0;C=[];break;case"scientific-number":break;case"currency-symbol":break;case"currency-style":break;case"number-style":;case"percentage-style":;case"date-style":;case"time-style":if(w[1]==="/"){O[f.name]=u;if((l=o.pop())[0]!==w[3])throw"Bad state: "+l}else if(w[0].charAt(w[0].length-2)!=="/"){u="";f=Ie(w[0],false);o.push([w[3],true])}break;case"script":break;case"libraries":break;case"automatic-styles":break;case"default-style":;case"page-layout":break;case"style":break;case"map":break;case"font-face":break;case"paragraph-properties":break;case"table-properties":break;case"table-column-properties":break;case"table-row-properties":break;case"table-cell-properties":break;case"number":switch(o[o.length-1][0]){case"time-style":;case"date-style":c=Ie(w[0],false);u+=r[w[3]][c.style==="long"?1:0];break;}break;case"fraction":break;case"day":;case"month":;case"year":;case"era":;case"day-of-week":;case"week-of-year":;case"quarter":;case"hours":;case"minutes":;case"seconds":;case"am-pm":switch(o[o.length-1][0]){case"time-style":;case"date-style":c=Ie(w[0],false);u+=r[w[3]][c.style==="long"?1:0];break;}break;case"boolean-style":break;case"boolean":break;case"text-style":break;case"text":if(w[0].slice(-2)==="/>")break;else if(w[1]==="/")switch(o[o.length-1][0]){case"number-style":;case"date-style":;case"time-style":u+=s.slice(h,w.index);break;}else h=w.index+w[0].length;break;case"named-range":c=Ie(w[0],false);W=ods_to_csf_3D(c["cell-range-address"]);var K={Name:c.name,Ref:W[0]+"!"+W[1]};if(G)K.Sheet=g.length;U.Names.push(K);break;case"text-content":break;case"text-properties":break;case"embedded-text":break;case"body":;case"电子表格":break;case"forms":break;case"table-column":break;case"table-header-rows":break;case"table-rows":break;case"table-column-group":break;case"table-header-columns":break;case"table-columns":break;case"null-date":break;case"graphic-properties":break;case"calculation-settings":break;case"named-expressions":break;case"label-range":break;case"label-ranges":break;case"named-expression":break;case"sort":break;case"sort-by":break;case"sort-groups":break;case"tab":break;case"line-break":break;case"span":break;case"p":;case"文本串":if(["master-styles"].indexOf(o[o.length-1][0])>-1)break;if(w[1]==="/"&&(!k||!k["string-value"])){var Z=e(s.slice(S,w.index),_);x=(x.length>0?x+"\n":"")+Z[0]}else{_=Ie(w[0],false);S=w.index+w[0].length}break;case"s":break;case"database-range":if(w[1]==="/")break;try{W=ods_to_csf_3D(Ie(w[0])["target-range-address"]);v[W[0]]["!autofilter"]={ref:W[1]}}catch(Q){}break;case"date":break;case"object":break;case"title":;case"标题":break;case"desc":break;case"binary-data":break;case"table-source":break;case"scenario":break;case"iteration":break;case"content-validations":break;case"content-validation":break;case"help-message":break;case"error-message":break;case"database-ranges":break;case"filter":break;case"filter-and":break;case"filter-or":break;case"filter-condition":break;case"list-level-style-bullet":break;case"list-level-style-number":break;case"list-level-properties":break;case"sender-firstname":;case"sender-lastname":;case"sender-initials":;case"sender-title":;case"sender-position":;case"sender-email":;case"sender-phone-private":;case"sender-fax":;case"sender-company":;case"sender-phone-work":;case"sender-street":;case"sender-city":;case"sender-postal-code":;case"sender-country":;case"sender-state-or-province":;case"author-name":;case"author-initials":;case"chapter":;case"file-name":;case"template-name":;case"sheet-name":break;case"event-listener":break;case"initial-creator":;case"creation-date":;case"print-date":;case"generator":;case"document-statistic":;case"user-defined":;case"editing-duration":;case"editing-cycles":break;case"config-item":break;case"page-number":break;case"page-count":break;case"time":break;case"cell-range-source":break;case"detective":break;case"operation":break;case"highlighted-range":break;case"data-pilot-table":;case"source-cell-range":;case"source-service":;case"data-pilot-field":;case"data-pilot-level":;case"data-pilot-subtotals":;case"data-pilot-subtotal":;case"data-pilot-members":;case"data-pilot-member":;case"data-pilot-display-info":;case"data-pilot-sort-info":;case"data-pilot-layout-info":;case"data-pilot-field-reference":;case"data-pilot-groups":;case"data-pilot-group":;case"data-pilot-group-member":break;case"rect":break;case"dde-connection-decls":;case"dde-connection-decl":;case"dde-link":;case"dde-source":break;case"properties":break;case"property":break;case"a":if(w[1]!=="/"){z=Ie(w[0],false);if(!z.href)break;z.Target=ze(z.href);delete z.href;if(z.Target.charAt(0)=="#"&&z.Target.indexOf(".")>-1){W=ods_to_csf_3D(z.Target.slice(1));z.Target="#"+W[0]+"!"+W[1]}else if(z.Target.match(/^\.\.[\\\/]/))z.Target=z.Target.slice(3)}break;case"table-protection":break;case"data-pilot-grand-total":break;case"office-document-common-attrs":break;default:switch(w[2]){case"dc:":;case"calcext:":;case"loext:":;case"ooo:":;case"chartooo:":;case"draw:":;case"style:":;case"chart:":;case"form:":;case"uof:":;case"表:":;case"字:":break;default:if(i.WTF)throw new Error(w);};}var ee={Sheets:v,SheetNames:g,Workbook:U};if(i.bookSheets)delete ee.Sheets;return ee}}();function Hs(e,r){r=r||{};if(ke(e,"META-INF/manifest.xml"))parse_manifest(Se(e,"META-INF/manifest.xml"),r);var t=_e(e,"content.xml");if(!t)throw new Error("Missing content.xml in ODS / UOF file");var a=$s(Ke(t),r);if(ke(e,"meta.xml"))a.Props=pa(Se(e,"meta.xml"));return a}function Xs(e,r){return $s(e,r)}var Vs=function(){var e=["",'',"",'',"",'',"",""].join("");var r=""+e+"";return function t(){return De+r}}();var Gs=function(){var e=function(e){return $e(e).replace(/ +/g,function(e){return''}).replace(/\t/g,"").replace(/\n/g,"").replace(/^ /,"").replace(/ $/,"")};var r=" \n";var t=" \n";var a=function(a,n,i){var s=[];s.push(' \n');var o=0,l=0,c=wt(a["!ref"]||"A1");var f=a["!merges"]||[],u=0;var h=Array.isArray(a);if(a["!cols"]){for(l=0;l<=c.e.c;++l)s.push(" \n")}var d="",p=a["!rows"]||[];for(o=0;o\n")}for(;o<=c.e.r;++o){d=p[o]?' table:style-name="ro'+p[o].ods+'"':"";s.push(" \n");for(l=0;ll)continue;if(f[u].s.r>o)continue;if(f[u].e.c\n")}s.push(" \n");return s.join("")};var n=function(e,r){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 t=0;r.SheetNames.map(function(e){return r.Sheets[e]}).forEach(function(r){if(!r)return;if(r["!cols"]){for(var a=0;a\n');e.push(' \n');e.push(" \n");++t}}});var a=0;r.SheetNames.map(function(e){return r.Sheets[e]}).forEach(function(r){if(!r)return;if(r["!rows"]){for(var t=0;t\n');e.push(' \n');e.push(" \n");++a}}});e.push(' \n');e.push(' \n');e.push(" \n");e.push(' \n');e.push(" \n")};return function i(e,r){var t=[De];var i=fr({"xmlns:office":"urn:oasis:names:tc:opendocument:xmlns:office:1.0","xmlns:table":"urn:oasis:names:tc:opendocument:xmlns:table:1.0","xmlns:style":"urn:oasis:names:tc:opendocument:xmlns:style:1.0","xmlns:text":"urn:oasis:names:tc:opendocument:xmlns:text:1.0","xmlns:draw":"urn:oasis:names:tc:opendocument:xmlns:drawing:1.0","xmlns:fo":"urn:oasis:names:tc:opendocument:xmlns:xsl-fo-compatible:1.0","xmlns:xlink":"http://www.w3.org/1999/xlink","xmlns:dc":"http://purl.org/dc/elements/1.1/","xmlns:meta":"urn:oasis:names:tc:opendocument:xmlns:meta:1.0","xmlns:number":"urn:oasis:names:tc:opendocument:xmlns:datastyle:1.0","xmlns:presentation":"urn:oasis:names:tc:opendocument:xmlns:presentation:1.0","xmlns:svg":"urn:oasis:names:tc:opendocument:xmlns:svg-compatible:1.0","xmlns:chart":"urn:oasis:names:tc:opendocument:xmlns:chart:1.0","xmlns:dr3d":"urn:oasis:names:tc:opendocument:xmlns:dr3d:1.0","xmlns:math":"http://www.w3.org/1998/Math/MathML","xmlns:form":"urn:oasis:names:tc:opendocument:xmlns:form:1.0","xmlns:script":"urn:oasis:names:tc:opendocument:xmlns:script:1.0","xmlns:ooo":"http://openoffice.org/2004/office","xmlns:ooow":"http://openoffice.org/2004/writer","xmlns:oooc":"http://openoffice.org/2004/calc","xmlns:dom":"http://www.w3.org/2001/xml-events","xmlns:xforms":"http://www.w3.org/2002/xforms","xmlns:xsd":"http://www.w3.org/2001/XMLSchema","xmlns:xsi":"http://www.w3.org/2001/XMLSchema-instance","xmlns:sheet":"urn:oasis:names:tc:opendocument:sh33tjs:1.0","xmlns:rpt":"http://openoffice.org/2005/report","xmlns:of":"urn:oasis:names:tc:opendocument:xmlns:of:1.2","xmlns:xhtml":"http://www.w3.org/1999/xhtml","xmlns:grddl":"http://www.w3.org/2003/g/data-view#","xmlns:tableooo":"http://openoffice.org/2009/table","xmlns:drawooo":"http://openoffice.org/2010/draw","xmlns:calcext":"urn:org:documentfoundation:names:experimental:calc:xmlns:calcext:1.0","xmlns:loext":"urn:org:documentfoundation:names:experimental:office:xmlns:loext:1.0","xmlns:field":"urn:openoffice:names:experimental:ooo-ms-interop:xmlns:field:1.0","xmlns:formx":"urn:openoffice:names:experimental:ooxml-odf-interop:xmlns:form:1.0","xmlns:css3t":"http://www.w3.org/TR/css3-text/","office:version":"1.2"});var s=fr({"xmlns:config":"urn:oasis:names:tc:opendocument:xmlns:config:1.0","office:mimetype":"application/vnd.oasis.opendocument.spreadsheet"});if(r.bookType=="fods"){t.push("\n");t.push(write_meta_ods().replace(/office:document-meta/g,"office:meta"))}else t.push("\n");n(t,e);t.push(" \n");t.push(" \n");for(var o=0;o!=e.SheetNames.length;++o)t.push(a(e.Sheets[e.SheetNames[o]],e,o,r));t.push(" \n");t.push(" \n");if(r.bookType=="fods")t.push("");else t.push("");return t.join("")}}();function Ys(e,r){if(r.bookType=="fods")return Gs(e,r);var t=Fe();var a="";var n=[];var i=[];a="mimetype";Ee(t,a,"application/vnd.oasis.opendocument.spreadsheet");a="content.xml";Ee(t,a,Gs(e,r));n.push([a,"text/xml"]);i.push([a,"ContentFile"]);a="styles.xml";Ee(t,a,Vs(e,r));n.push([a,"text/xml"]);i.push([a,"StylesFile"]);a="meta.xml";Ee(t,a,De+write_meta_ods());n.push([a,"text/xml"]);i.push([a,"MetadataFile"]);a="manifest.rdf";Ee(t,a,write_rdf(i));n.push([a,"application/rdf+xml"]);a="META-INF/manifest.xml";Ee(t,a,write_manifest(n));return t}var qs=!Object.defineProperty?void 0:function(){var e=Object.defineProperty;var r=Object.getOwnPropertyDescriptor;var t=Object.getOwnPropertyNames;var a=Object.prototype.hasOwnProperty;var n=function(r){return e(r,"__esModule",{value:true})};var i=function(r,t){for(var a in t)e(r,a,{get:t[a],enumerable:true})};var s=function(n,i,s,o){if(i&&typeof i==="object"||typeof i==="function")for(var l=t(i),c=0,f=l.length,u;c>1&1431655765;e=(e&858993459)+(e>>2&858993459);return(e+(e>>4)&252645135)*16843009>>>24};var d=function(e,r){var t=(e[r+15]&127)<<7|e[r+14]>>1;var a=e[r+14]&1;for(var n=r+13;n>=r;--n)a=a*256+e[n];return(e[r+15]&128?-a:a)*Math.pow(10,t-6176)};function p(e,r){var t=r?r[0]:0;var a=e[t]&127;e:if(e[t++]>=128){a|=(e[t]&127)<<7;if(e[t++]<128)break e;a|=(e[t]&127)<<14;if(e[t++]<128)break e;a|=(e[t]&127)<<21;if(e[t++]<128)break e;a+=(e[t]&127)*Math.pow(2,28);++t;if(e[t++]<128)break e;a+=(e[t]&127)*Math.pow(2,35);++t;if(e[t++]<128)break e;a+=(e[t]&127)*Math.pow(2,42);++t;if(e[t++]<128)break e}if(r)r[0]=t;return a}function v(e){var r=0,t=e[r]&127;e:if(e[r++]>=128){t|=(e[r]&127)<<7;if(e[r++]<128)break e;t|=(e[r]&127)<<14;if(e[r++]<128)break e;t|=(e[r]&127)<<21;if(e[r++]<128)break e;t|=(e[r]&127)<<28}return t}function m(e){var r=[],t=[0];while(t[0]=128);o=e.slice(l,t[0])}break;case 5:s=4;o=e.slice(t[0],t[0]+s);t[0]+=s;break;case 1:s=8;o=e.slice(t[0],t[0]+s);t[0]+=s;break;case 2:s=p(e,t);o=e.slice(t[0],t[0]+s);t[0]+=s;break;case 3:;case 4:;default:throw new Error("PB Type ".concat(i," for Field ").concat(n," at offset ").concat(a));}var c={offset:a,data:o,type:i};if(r[n]==null)r[n]=[c];else r[n].push(c)}return r}function g(e,r){if(!e)return[];return e.map(function(e){var t;try{return r(e.data)}catch(a){var n=(t=a.message)==null?void 0:t.match(/at offset (\d+)/);if(n)a.message=a.message.replace(/at offset (\d+)/,"at offset "+(+n[1]+e.offset));throw a}})}function b(e){var r=[];var t=0;while(t>2;if(s<60)++s;else{var o=s-59;s=r[t[0]];if(o>1)s|=r[t[0]+1]<<8;if(o>2)s|=r[t[0]+2]<<16;if(o>3)s|=r[t[0]+3]<<24;s>>>=0;s++;t[0]+=o}n.push(r.slice(t[0],t[0]+s));t[0]+=s;continue}else{var l=0,c=0;if(i==1){c=(r[t[0]]>>2&7)+4;l=(r[t[0]++]&224)<<3;l|=r[t[0]++]}else{c=(r[t[0]++]>>2)+1;if(i==2){l=r[t[0]]|r[t[0]+1]<<8;t[0]+=2}else{l=(r[t[0]]|r[t[0]+1]<<8|r[t[0]+2]<<16|r[t[0]+3]<<24)>>>0;t[0]+=4}}n=[u(n)];if(l==0)throw new Error("Invalid offset 0");if(l>n[0].length)throw new Error("Invalid offset beyond length");if(c>=l){n.push(n[0].slice(-l));c-=l;while(c>=n[n.length-1].length){n.push(n[n.length-1]);c-=n[n.length-1].length}}n.push(n[0].slice(-l,-l+c))}}var f=u(n);if(f.length!=a)throw new Error("Unexpected length: ".concat(f.length," != ").concat(a));return f}function y(e){var r=[],t=[0];while(t[0]0};break;case 7:d={t:"n",v:f};break;case 8:d={t:"e",v:0};break;case 9:{if(o>-1)d={t:"s",v:t[o]};else if(l>-1)d={t:"s",v:r[l]};else if(!isNaN(f))d={t:"n",v:f};else throw new Error("Unsupported cell type ".concat(e.slice(0,4)))}break;default:throw new Error("Unsupported cell type ".concat(e.slice(0,4)));}return d}function x(e,r,t){var a=c(e);var n=e[1];var i=a.getUint32(8,true);var s=12;var o=-1,l=-1,f=NaN,u=NaN,h=new Date(2001,0,1);if(i&1){f=d(e,s);s+=16}if(i&2){u=a.getFloat64(s,true);s+=8}if(i&4){h.setTime(h.getTime()+a.getFloat64(s,true)*1e3);s+=8}if(i&8){l=a.getUint32(s,true);s+=4}if(i&16){o=a.getUint32(s,true);s+=4}var p;switch(n){case 0:break;case 2:p={t:"n",v:f};break;case 3:p={t:"s",v:r[l]};break;case 5:p={t:"d",v:h};break;case 6:p={t:"b",v:u>0};break;case 7:p={t:"n",v:u};break;case 8:p={t:"e",v:0};break;case 9:{if(o>-1)p={t:"s",v:t[o]};else throw new Error("Unsupported cell type ".concat(n," : ").concat(i&31," : ").concat(e.slice(0,4)))}break;case 10:p={t:"n",v:f};break;default:throw new Error("Unsupported cell type ".concat(n," : ").concat(i&31," : ").concat(e.slice(0,4)));}return p}function S(e,r,t){switch(e[0]){case 3:;case 4:return k(e,r,t);case 5:return x(e,r,t);default:throw new Error("Unsupported payload version ".concat(e[0]));}}var _=function(e){var r="";for(++e;e;e=Math.floor((e-1)/26))r=String.fromCharCode((e-1)%26+65)+r;return r};var C=function(e){return"".concat(_(e.c)).concat(e.r+1)};var A=function(e){return C(e.s)+":"+C(e.e)};var F=function(){return{Sheets:{},SheetNames:[]}};var T=function(e,r,t){if(!t)for(var a=1;a<9999;++a){if(e.SheetNames.indexOf(t="Sheet ".concat(a))==-1)break}else if(e.SheetNames.indexOf(t)>-1)for(var a=1;a<9999;++a){if(e.SheetNames.indexOf("".concat(t,"_").concat(a))==-1){t="".concat(t,"_").concat(a);break}}e.SheetNames.push(t);e.Sheets[t]=r};function O(e){var r=[];e.FullPaths.forEach(function(e){if(e.match(/\.iwpv2/))throw new Error("Unsupported password protection")});e.FileIndex.forEach(function(e){if(!e.name.match(/\.iwa$/))return;var t;try{t=b(e.content)}catch(a){return console.log("?? "+e.content.length+" "+(a.message||a))}var n;try{n=y(t)}catch(a){return console.log("## "+(a.message||a))}n.forEach(function(e){r[+e.id]=e.messages})});if(!r.length)throw new Error("File has no messages");var t;r.forEach(function(e){e.forEach(function(e){var r=v(e.meta[1][0].data)>>>0;if(r==1){if(!t)t=e;else throw new Error("Document has multiple roots")}})});if(!t)throw new Error("Cannot find Document root");return U(r,t)}var D=O;function M(e){var r=m(e);return p(r[1][0].data)}function N(e,r){var t=m(r.data);var a=v(t[1][0].data);var n=t[3];var i=[];(n||[]).forEach(function(r){var t=m(r.data);var n=v(t[1][0].data)>>>0;switch(a){case 1:i[n]=f(t[3][0].data);break;case 8:{var s=e[M(t[9][0].data)][0];var o=m(s.data);var l=e[M(o[1][0].data)][0];var c=v(l.meta[1][0].data);if(c!=2001)throw new Error("2000 unexpected reference to ".concat(c));var u=m(l.data);i[n]=u[3].map(function(e){return f(e.data)}).join("")}break;}});return i}function P(e){var r,t,a,n,i,s,o,l,f,u;var h=m(e);var d=v(h[1][0].data)>>>0;var p=(t=(r=h[3])==null?void 0:r[0])==null?void 0:t.data;var g=((n=(a=h[4])==null?void 0:a[0])==null?void 0:n.data)&&c(h[4][0].data);var b=(s=(i=h[6])==null?void 0:i[0])==null?void 0:s.data;var w=((l=(o=h[7])==null?void 0:o[0])==null?void 0:l.data)&&c(h[7][0].data);var y=((u=(f=h[8])==null?void 0:f[0])==null?void 0:u.data)&&v(h[8][0].data)>0||false;var k=y?4:1;var x=[];var S=0;for(var _=0;_>>0)-1;if(i.e.c<0)throw new Error("Invalid col varint ".concat(n[7][0].data));t["!ref"]=A(i);{var s=m(n[4][0].data);var o=N(e,e[M(s[4][0].data)][0]);var l=((a=s[17])==null?void 0:a[0])?N(e,e[M(s[17][0].data)][0]):[];{var c=m(s[3][0].data);var f=[];c[1].forEach(function(r){var t=m(r.data);var a=e[M(t[2][0].data)][0];var n=v(a.meta[1][0].data);if(n!=6002)throw new Error("6001 unexpected reference to ".concat(n));f.push({id:v(t[1][0].data),ref:R(e,a)})});f.forEach(function(e){e.ref.forEach(function(e,r){e.forEach(function(e,a){var n=C({r:r,c:a});var i=S(e,o,l);if(i)t[n]=i})})})}}}function L(e,r){var t=m(r.data);var a={"!ref":"A1"};var n=e[M(t[2][0].data)];var i=v(n[0].meta[1][0].data);if(i!=6001)throw new Error("6000 unexpected reference to ".concat(i));I(e,n[0],a);return a}function B(e,r){var t;var a=m(r.data);var n={name:((t=a[1])==null?void 0:t[0])?f(a[1][0].data):"",sheets:[]};var i=g(a[2],M);i.forEach(function(r){e[r].forEach(function(r){var t=v(r.meta[1][0].data);if(t==6e3)n.sheets.push(L(e,r))})});return n}function U(e,r){var t=F();var a=m(r.data);var n=g(a[1],M);n.forEach(function(r){e[r].forEach(function(r){var a=v(r.meta[1][0].data);if(a==2){var n=B(e,r);n.sheets.forEach(function(e){T(t,e,n.name); -})}})});if(t.SheetNames.length==0)throw new Error("Empty NUMBERS file");return t}return o(l)}();function Js(e){return function r(t){for(var a=0;a!=e.length;++a){var n=e[a];if(t[n[0]]===undefined)t[n[0]]=n[1];if(n[2]==="n")t[n[0]]=Number(t[n[0]])}}}var Ks=function(e){Js([["cellNF",false],["cellHTML",true],["cellFormula",true],["cellStyles",false],["cellText",true],["cellDates",false],["sheetStubs",false],["sheetRows",0,"n"],["bookDeps",false],["bookSheets",false],["bookProps",false],["bookFiles",false],["bookVBA",false],["password",""],["WTF",false]])(e)};var Zs=Js([["cellDates",false],["bookSST",false],["bookType","xlsx"],["compression",false],["WTF",false]]);function Qs(e){if(ia.WS.indexOf(e)>-1)return"sheet";if(ia.CS&&e==ia.CS)return"chart";if(ia.DS&&e==ia.DS)return"dialog";if(ia.MS&&e==ia.MS)return"macro";return e&&e.length?e:"sheet"}function eo(e,r){if(!e)return 0;try{e=r.map(function a(r){if(!r.id)r.id=r.strRelID;return[r.name,e["!id"][r.id].Target,Qs(e["!id"][r.id].Type)]})}catch(t){return null}return!e||e.length===0?null:e}function ro(e,r,t,a,n,i,s,o,l,c,f,u){try{i[a]=oa(_e(e,t,true),r);var h=Se(e,r);var d;switch(o){case"sheet":d=ks(h,r,n,l,i[a],c,f,u);break;case"chart":d=xs(h,r,n,l,i[a],c,f,u);if(!d||!d["!drawel"])break;var p=Oe(d["!drawel"].Target,r);var v=sa(p);var m=Un(_e(e,p,true),oa(_e(e,v,true),p));var g=Oe(m,p);var b=sa(g);d=Ki(_e(e,g,true),g,l,oa(_e(e,b,true),g),c,d);break;case"macro":d=Ss(h,r,n,l,i[a],c,f,u);break;case"dialog":d=_s(h,r,n,l,i[a],c,f,u);break;default:throw new Error("Unrecognized sheet type "+o);}s[a]=d;var w=[];if(i&&i[a])q(i[a]).forEach(function(t){if(i[a][t].Type==ia.CMNT){var n=Oe(i[a][t].Target,r);w=Fs(Se(e,n,true),n,l);if(!w||!w.length)return;jn(d,w)}})}catch(y){if(l.WTF)throw y}}function to(e){return e.charAt(0)=="/"?e.slice(1):e}function ao(e,r){R(P);r=r||{};Ks(r);if(ke(e,"META-INF/manifest.xml"))return Hs(e,r);if(ke(e,"objectdata.xml"))return Hs(e,r);if(ke(e,"Index/Document.iwa")){if(typeof Uint8Array=="undefined")throw new Error("NUMBERS file parsing requires Uint8Array support");if(typeof qs!="undefined"){if(e.FileIndex)return qs.parse_numbers(e);var t=H.utils.cfb_new();Ae(e).forEach(function(r){Ee(t,r,Ce(e,r))});return qs.parse_numbers(t)}throw new Error("Unsupported NUMBERS file")}if(!ke(e,"[Content_Types].xml")){if(ke(e,"index.xml.gz"))throw new Error("Unsupported NUMBERS 08 file");if(ke(e,"index.xml"))throw new Error("Unsupported NUMBERS 09 file");throw new Error("Unsupported ZIP file")}var a=Ae(e);var n=ra(_e(e,"[Content_Types].xml"));var i=false;var s,o;if(n.workbooks.length===0){o="xl/workbook.xml";if(Se(e,o,true))n.workbooks.push(o)}if(n.workbooks.length===0){o="xl/workbook.bin";if(!Se(e,o,true))throw new Error("Could not find workbook");n.workbooks.push(o);i=true}if(n.workbooks[0].slice(-3)=="bin")i=true;var l={};var c={};if(!r.bookSheets&&!r.bookProps){oi=[];if(n.sst)try{oi=Es(Se(e,to(n.sst)),n.sst,r)}catch(f){if(r.WTF)throw f}if(r.cellStyles&&n.themes.length)l=As(_e(e,n.themes[0].replace(/^\//,""),true)||"",n.themes[0],r);if(n.style)c=Cs(Se(e,to(n.style)),n.style,l,r)}n.links.map(function(t){try{var a=oa(_e(e,sa(to(t))),t);return Os(Se(e,to(t)),a,t,r)}catch(n){}});var u=ys(Se(e,to(n.workbooks[0])),n.workbooks[0],r);var h={},d="";if(n.coreprops.length){d=Se(e,to(n.coreprops[0]),true);if(d)h=pa(d);if(n.extprops.length!==0){d=Se(e,to(n.extprops[0]),true);if(d)ka(d,h,r)}}var p={};if(!r.bookSheets||r.bookProps){if(n.custprops.length!==0){d=_e(e,to(n.custprops[0]),true);if(d)p=Ca(d,r)}}var v={};if(r.bookSheets||r.bookProps){if(u.Sheets)s=u.Sheets.map(function D(e){return e.name});else if(h.Worksheets&&h.SheetNames.length>0)s=h.SheetNames;if(r.bookProps){v.Props=h;v.Custprops=p}if(r.bookSheets&&typeof s!=="undefined")v.SheetNames=s;if(r.bookSheets?v.SheetNames:r.bookProps)return v}s={};var m={};if(r.bookDeps&&n.calcchain)m=Ts(Se(e,to(n.calcchain)),n.calcchain,r);var g=0;var b={};var w,y;{var k=u.Sheets;h.Worksheets=k.length;h.SheetNames=[];for(var x=0;x!=k.length;++x){h.SheetNames[x]=k[x].name}}var S=i?"bin":"xml";var _=n.workbooks[0].lastIndexOf("/");var C=(n.workbooks[0].slice(0,_+1)+"_rels/"+n.workbooks[0].slice(_+1)+".rels").replace(/^\//,"");if(!ke(e,C))C="xl/_rels/workbook."+S+".rels";var A=oa(_e(e,C,true),C);if(A)A=eo(A,u.Sheets);var E=Se(e,"xl/worksheets/sheet.xml",true)?1:0;e:for(g=0;g!=h.Worksheets;++g){var F="sheet";if(A&&A[g]){w="xl/"+A[g][1].replace(/[\/]?xl\//,"");if(!ke(e,w))w=A[g][1];if(!ke(e,w))w=C.replace(/_rels\/.*$/,"")+A[g][1];F=A[g][2]}else{w="xl/worksheets/sheet"+(g+1-E)+"."+S;w=w.replace(/sheet0\./,"sheet.")}y=w.replace(/^(.*)(\/)([^\/]*)$/,"$1/_rels/$3.rels");if(r&&r.sheets!=null)switch(typeof r.sheets){case"number":if(g!=r.sheets)continue e;break;case"string":if(h.SheetNames[g].toLowerCase()!=r.sheets.toLowerCase())continue e;break;default:if(Array.isArray&&Array.isArray(r.sheets)){var T=false;for(var O=0;O!=r.sheets.length;++O){if(typeof r.sheets[O]=="number"&&r.sheets[O]==g)T=1;if(typeof r.sheets[O]=="string"&&r.sheets[O].toLowerCase()==h.SheetNames[g].toLowerCase())T=1}if(!T)continue e};}ro(e,w,y,h.SheetNames[g],g,b,s,F,r,u,l,c)}v={Directory:n,Workbook:u,Props:h,Custprops:p,Deps:m,Sheets:s,SheetNames:h.SheetNames,Strings:oi,Styles:c,Themes:l,SSF:P.get_table()};if(r&&r.bookFiles){if(e.files){v.keys=a;v.files=e.files}else{v.keys=[];v.files={};e.FullPaths.forEach(function(r,t){r=r.replace(/^Root Entry[\/]/,"");v.keys.push(r);v.files[r]=e.FileIndex[t]})}}if(r&&r.bookVBA){if(n.vba.length>0)v.vbaraw=Se(e,to(n.vba[0]),true);else if(n.defaults&&n.defaults.bin===Vn)v.vbaraw=Se(e,"xl/vbaProject.bin",true)}return v}function no(e,r){var t=r||{};var a="Workbook",n=H.find(e,a);try{a="/!DataSpaces/Version";n=H.find(e,a);if(!n||!n.content)throw new Error("ECMA-376 Encrypted file missing "+a);parse_DataSpaceVersionInfo(n.content);a="/!DataSpaces/DataSpaceMap";n=H.find(e,a);if(!n||!n.content)throw new Error("ECMA-376 Encrypted file missing "+a);var i=parse_DataSpaceMap(n.content);if(i.length!==1||i[0].comps.length!==1||i[0].comps[0].t!==0||i[0].name!=="StrongEncryptionDataSpace"||i[0].comps[0].v!=="EncryptedPackage")throw new Error("ECMA-376 Encrypted file bad "+a);a="/!DataSpaces/DataSpaceInfo/StrongEncryptionDataSpace";n=H.find(e,a);if(!n||!n.content)throw new Error("ECMA-376 Encrypted file missing "+a);var s=parse_DataSpaceDefinition(n.content);if(s.length!=1||s[0]!="StrongEncryptionTransform")throw new Error("ECMA-376 Encrypted file bad "+a);a="/!DataSpaces/TransformInfo/StrongEncryptionTransform/!Primary";n=H.find(e,a);if(!n||!n.content)throw new Error("ECMA-376 Encrypted file missing "+a);parse_Primary(n.content)}catch(o){}a="/EncryptionInfo";n=H.find(e,a);if(!n||!n.content)throw new Error("ECMA-376 Encrypted file missing "+a);var l=parse_EncryptionInfo(n.content);a="/EncryptedPackage";n=H.find(e,a);if(!n||!n.content)throw new Error("ECMA-376 Encrypted file missing "+a);if(l[0]==4&&typeof decrypt_agile!=="undefined")return decrypt_agile(l[1],n.content,t.password||"",t);if(l[0]==2&&typeof decrypt_std76!=="undefined")return decrypt_std76(l[1],n.content,t.password||"",t);throw new Error("File is password-protected")}function io(e,r){if(r.bookType=="ods")return Ys(e,r);return so(e,r)}function so(e,r){zn=1024;if(e&&!e.SSF){e.SSF=P.get_table()}if(e&&e.SSF){R(P);P.load_table(e.SSF);r.revssf=Z(e.SSF);r.revssf[e.SSF[65535]]=0;r.ssf=e.SSF}r.rels={};r.wbrels={};r.Strings=[];r.Strings.Count=0;r.Strings.Unique=0;if(ci)r.revStrings=new Map;else{r.revStrings={};r.revStrings.foo=[];delete r.revStrings.foo}var t=r.bookType=="xlsb"?"bin":"xml";var a=qn.indexOf(r.bookType)>-1;var n=ea();Zs(r=r||{});var i=Fe();var s="",o=0;r.cellXfs=[];di(r.cellXfs,{},{revssf:{General:0}});if(!e.Props)e.Props={};s="docProps/core.xml";Ee(i,s,ga(e.Props,r));n.coreprops.push(s);ua(r.rels,2,s,ia.CORE_PROPS);s="docProps/app.xml";if(e.Props&&e.Props.SheetNames){}else if(!e.Workbook||!e.Workbook.Sheets)e.Props.SheetNames=e.SheetNames;else{var l=[];for(var c=0;c0){s="docProps/custom.xml";Ee(i,s,Ea(e.Custprops,r));n.custprops.push(s);ua(r.rels,4,s,ia.CUST_PROPS)}for(o=1;o<=e.SheetNames.length;++o){var f={"!id":{}};var u=e.Sheets[e.SheetNames[o-1]];var h=(u||{})["!type"]||"sheet";switch(h){case"chart":;default:s="xl/worksheets/sheet"+o+"."+t;Ee(i,s,Ms(o-1,s,r,e,f));n.sheets.push(s);ua(r.wbrels,-1,"worksheets/sheet"+o+"."+t,ia.WS[0]);}if(u){var d=u["!comments"];var p=false;if(d&&d.length>0){var v="xl/comments"+o+"."+t;Ee(i,v,Is(d,v,r));n.comments.push(v);ua(f,-1,"../comments"+o+"."+t,ia.CMNT);p=true}if(u["!legacy"]){if(p)Ee(i,"xl/drawings/vmlDrawing"+o+".vml",Wn(o,u["!comments"]))}delete u["!comments"];delete u["!legacy"]}if(f["!id"].rId1)Ee(i,sa(s),ca(f))}if(r.Strings!=null&&r.Strings.length>0){s="xl/sharedStrings."+t;Ee(i,s,Rs(r.Strings,s,r));n.strs.push(s);ua(r.wbrels,-1,"sharedStrings."+t,ia.SST)}s="xl/workbook."+t;Ee(i,s,Ds(e,s,r));n.workbooks.push(s);ua(r.rels,1,s,ia.WB);s="xl/theme/theme1.xml";Ee(i,s,In(e.Themes,r));n.themes.push(s);ua(r.wbrels,-1,"theme/theme1.xml",ia.THEME);s="xl/styles."+t;Ee(i,s,Ps(e,s,r));n.styles.push(s);ua(r.wbrels,-1,"styles."+t,ia.STY);if(e.vbaraw&&a){s="xl/vbaProject.bin";Ee(i,s,e.vbaraw);n.vba.push(s);ua(r.wbrels,-1,"vbaProject.bin",ia.VBA)}Ee(i,"[Content_Types].xml",na(n,r));Ee(i,"_rels/.rels",ca(r.rels));Ee(i,"xl/_rels/workbook."+t+".rels",ca(r.wbrels));delete r.revssf;delete r.ssf;return i}function oo(e,r){zn=1024;if(e&&!e.SSF){e.SSF=P.get_table()}if(e&&e.SSF){R(P);P.load_table(e.SSF);r.revssf=Z(e.SSF);r.revssf[e.SSF[65535]]=0;r.ssf=e.SSF}r.rels={};r.wbrels={};r.Strings=[];r.Strings.Count=0;r.Strings.Unique=0;if(ci)r.revStrings=new Map;else{r.revStrings={};r.revStrings.foo=[];delete r.revStrings.foo}var t="xml";var a=qn.indexOf(r.bookType)>-1;var n=ea();Zs(r=r||{});var i=Fe();var s="",o=0;r.cellXfs=[];di(r.cellXfs,{},{revssf:{General:0}});if(!e.Props)e.Props={};s="docProps/core.xml";Ee(i,s,ga(e.Props,r));n.coreprops.push(s);ua(r.rels,2,s,ia.CORE_PROPS);s="docProps/app.xml";if(e.Props&&e.Props.SheetNames){}else if(!e.Workbook||!e.Workbook.Sheets)e.Props.SheetNames=e.SheetNames;else{var l=[];for(var c=0;c0){s="docProps/custom.xml";Ee(i,s,Ea(e.Custprops,r));n.custprops.push(s);ua(r.rels,4,s,ia.CUST_PROPS)}for(o=1;o<=e.SheetNames.length;++o){var f={"!id":{}};var u=e.Sheets[e.SheetNames[o-1]];var h=(u||{})["!type"]||"sheet";switch(h){case"chart":;default:s="xl/worksheets/sheet"+o+"."+t;Ee(i,s,qi(o-1,r,e,f));n.sheets.push(s);ua(r.wbrels,-1,"worksheets/sheet"+o+"."+t,ia.WS[0]);}if(u){var d=u["!comments"];var p=false;if(d&&d.length>0){var v="xl/comments"+o+"."+t;Ee(i,v,Xn(d,r));n.comments.push(v);ua(f,-1,"../comments"+o+"."+t,ia.CMNT);p=true}if(u["!legacy"]){if(p)Ee(i,"xl/drawings/vmlDrawing"+o+".vml",Wn(o,u["!comments"]))}delete u["!comments"];delete u["!legacy"]}if(f["!id"].rId1)Ee(i,sa(s),ca(f))}if(r.Strings!=null&&r.Strings.length>0){s="xl/sharedStrings."+t;Ee(i,s,Va(r.Strings,r));n.strs.push(s);ua(r.wbrels,-1,"sharedStrings."+t,ia.SST)}s="xl/workbook."+t;Ee(i,s,ws(e,r));n.workbooks.push(s);ua(r.rels,1,s,ia.WB);s="xl/theme/theme1.xml";Ee(i,s,In(e.Themes,r));n.themes.push(s);ua(r.wbrels,-1,"theme/theme1.xml",ia.THEME);s="xl/styles."+t;Ee(i,s,Cn(e,r));n.styles.push(s);ua(r.wbrels,-1,"styles."+t,ia.STY);if(e.vbaraw&&a){s="xl/vbaProject.bin";Ee(i,s,e.vbaraw);n.vba.push(s);ua(r.wbrels,-1,"vbaProject.bin",ia.VBA)}Ee(i,"[Content_Types].xml",na(n,r));Ee(i,"_rels/.rels",ca(r.rels));Ee(i,"xl/_rels/workbook."+t+".rels",ca(r.wbrels));delete r.revssf;delete r.ssf;return i}function lo(e,r){var t="";switch((r||{}).type||"base64"){case"buffer":return[e[0],e[1],e[2],e[3],e[4],e[5],e[6],e[7]];case"base64":t=b.decode(e.slice(0,12));break;case"binary":t=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 "+(r&&r.type||"undefined"));}return[t.charCodeAt(0),t.charCodeAt(1),t.charCodeAt(2),t.charCodeAt(3),t.charCodeAt(4),t.charCodeAt(5),t.charCodeAt(6),t.charCodeAt(7)]}function co(e,r){if(H.find(e,"EncryptedPackage"))return no(e,r);return parse_xlscfb(e,r)}function fo(e,r){var t,a=e;var n=r||{};if(!n.type)n.type=w&&Buffer.isBuffer(e)?"buffer":"base64";t=Te(a,n);return ao(t,n)}function uo(e,r){var t=0;e:while(t=2&&n[3]===0)return WK_.to_workbook(a,t);if(n[2]===0&&(n[3]===8||n[3]===9))return WK_.to_workbook(a,t)}break;case 3:;case 131:;case 139:;case 140:return Fa.to_workbook(a,t);case 123:if(n[1]===92&&n[2]===114&&n[3]===116)return RTF.to_workbook(a,t);break;case 10:;case 13:;case 32:return ho(a,t);case 137:if(n[1]===80&&n[2]===78&&n[3]===71)throw new Error("PNG Image File is not a spreadsheet");break;}if(Fa.versions.indexOf(n[0])>-1&&n[2]<=12&&n[3]<=31)return Fa.to_workbook(a,t);return mo(e,a,t,i)}function bo(e,r){var t=r||{};t.type="file";return go(e,t)}function wo(e){return function r(t,a){var n=0;if(a.sheet){if(typeof a.sheet=="number")n=a.sheet;else n=t.SheetNames.indexOf(a.sheet);if(!t.SheetNames[n])throw new Error("Sheet not found: "+a.sheet+" : "+typeof a.sheet)}return e.from_sheet(t.Sheets[t.SheetNames[n]],a,t)}}var yo=wo(Ls);var ko=wo({from_sheet:Yo});var xo=wo(typeof Ta!=="undefined"?Ta:{});var So=wo(typeof Oa!=="undefined"?Oa:{});var _o=wo(typeof Ma!=="undefined"?Ma:{});var Co=wo(typeof RTF!=="undefined"?RTF:{});var Ao=wo({from_sheet:qo});var Eo=wo(typeof Fa!=="undefined"?Fa:{});var Fo=wo(typeof Da!=="undefined"?Da:{});var To=wo(typeof WK_!=="undefined"?{from_sheet:WK_.sheet_to_wk1}:{});function Oo(e,r){switch(r.type){case"base64":;case"binary":break;case"buffer":;case"array":r.type="";break;case"file":return G(r.file,H.write(e,{type:w?"buffer":""}));case"string":throw new Error("'string' output type invalid for '"+r.bookType+"' files");default:throw new Error("Unrecognized type "+r.type);}return H.write(e,r)}function Do(e,r){var t=ue(r||{});var a=io(e,t);return No(a,t)}function Mo(e,r){var t=ue(r||{});var a=oo(e,t);return No(a,t)}function No(e,r){var t={};if(r.compression)t.compression="DEFLATE";if(r.password)t.type=w?"nodebuffer":"string";else switch(r.type){case"base64":t.type="base64";break;case"binary":t.type="string";break;case"string":throw new Error("'string' output type invalid for '"+r.bookType+"' files");case"buffer":;case"file":t.type=w?"nodebuffer":"string";break;default:throw new Error("Unrecognized type "+r.type);}var a=e.FullPaths?H.write(e,{fileType:"zip",type:{nodebuffer:"buffer",string:"binary"}[t.type]||t.type,compression:!!r.compression}):e.generate(t);if(typeof Deno!=="undefined"){if(typeof a=="string"){if(r.type=="binary"||r.type=="base64")return a;a=new Uint8Array(A(a))}}if(r.password&&typeof encrypt_agile!=="undefined")return Oo(encrypt_agile(a,r.password),r);if(r.type==="file")return G(r.file,a);return r.type=="string"?Ke(a):a}function Po(e,r){var t=r||{};var a=write_xlscfb(e,t);return Oo(a,t)}function Ro(e,r,t){if(!t)t="";var a=t+e;switch(r.type){case"base64":return b.encode(Ze(a));case"binary":return Ze(a);case"string":return e;case"file":return G(r.file,a,"utf8");case"buffer":{if(w)return y(a,"utf8");else if(typeof TextEncoder!=="undefined")return(new TextEncoder).encode(a);else return Ro(a,{type:"binary"}).split("").map(function(e){return e.charCodeAt(0)})};}throw new Error("Unrecognized type "+r.type)}function Io(e,r){switch(r.type){case"base64":return b.encode(e);case"binary":return e;case"string":return e;case"file":return G(r.file,e,"binary");case"buffer":{if(w)return y(e,"binary");else return e.split("").map(function(e){return e.charCodeAt(0)})};}throw new Error("Unrecognized type "+r.type)}function Lo(e,r){switch(r.type){case"string":;case"base64":;case"binary":var t="";for(var a=0;a0)n=0;var u=ct(l.s.r);var h=[];var d=[];var p=0,v=0;var m=Array.isArray(e);var g=l.s.r,b=0,w=0;if(m&&!e[g])e[g]=[];for(b=l.s.c;b<=l.e.c;++b){h[b]=dt(b);t=m?e[g][b]:e[h[b]+u];switch(a){case 1:i[b]=b-l.s.c;break;case 2:i[b]=h[b];break;case 3:i[b]=c.header[b-l.s.c];break;default:if(t==null)t={w:"__EMPTY",t:"s"};o=s=St(t,null,c);v=0;for(w=0;w=0)f='"'+f.replace(Vo,'""')+'"'}else f="";c.push(f)}if(o.blankrows===false&&l)return null;return c.join(s)}function Yo(e,r){var t=[];var a=r==null?{}:r;if(e==null||e["!ref"]==null)return"";var n=kt(e["!ref"]);var i=a.FS!==undefined?a.FS:",",s=i.charCodeAt(0);var o=a.RS!==undefined?a.RS:"\n",l=o.charCodeAt(0);var c=new RegExp((i=="|"?"\\|":i)+"+$");var f="",u=[];a.dense=Array.isArray(e);var h=a.skipHidden&&e["!cols"]||[];var d=a.skipHidden&&e["!rows"]||[];for(var p=n.s.c;p<=n.e.c;++p)if(!(h[p]||{}).hidden)u[p]=dt(p);for(var v=n.s.r;v<=n.e.r;++v){if((d[v]||{}).hidden)continue;f=Go(e,n,v,u,s,l,i,a);if(f==null){continue}if(a.strip)f=f.replace(c,"");t.push(f+o)}delete a.dense;return t.join("")}function qo(e,r){if(!r)r={};r.FS="\t";r.RS="\n";var t=Yo(e,r);if(typeof cptable=="undefined"||r.type=="string")return t;var a=cptable.utils.encode(1200,t,"str");return String.fromCharCode(255)+String.fromCharCode(254)+a}function Jo(e){var r="",t,a="";if(e==null||e["!ref"]==null)return[];var n=kt(e["!ref"]),i="",s=[],o;var l=[];var c=Array.isArray(e);for(o=n.s.c;o<=n.e.c;++o)s[o]=dt(o);for(var f=n.s.r;f<=n.e.r;++f){i=ct(f);for(o=n.s.c;o<=n.e.c;++o){r=s[o]+i;t=c?(e[f]||[])[o]:e[r];a="";if(t===undefined)continue;else if(t.F!=null){r=t.F;if(!t.f)continue;a=t.f;if(r.indexOf(":")==-1)r=r+":"+r}if(t.f!=null)a=t.f;else if(t.t=="z")continue;else if(t.t=="n"&&t.v!=null)a=""+t.v;else if(t.t=="b")a=t.v?"TRUE":"FALSE";else if(t.w!==undefined)a="'"+t.w;else if(t.v===undefined)continue;else if(t.t=="s")a="'"+t.v;else a=""+t.v;l[l.length]=r+"="+a}}return l}function Ko(e,r,t){var a=t||{};var n=+!a.skipHeader;var i=e||{};var s=0,o=0;if(i&&a.origin!=null){if(typeof a.origin=="number")s=a.origin;else{var l=typeof a.origin=="string"?gt(a.origin):a.origin;s=l.r;o=l.c}}var c;var f={s:{c:0,r:0},e:{c:o,r:s+r.length-1+n}};if(i["!ref"]){var u=kt(i["!ref"]);f.e.c=Math.max(f.e.c,u.e.c);f.e.r=Math.max(f.e.r,u.e.r);if(s==-1){s=u.e.r+1;f.e.r=s+r.length-1+n}}else{if(s==-1){s=0;f.e.r=r.length-1+n}}var h=a.header||[],d=0;r.forEach(function(e,r){q(e).forEach(function(t){if((d=h.indexOf(t))==-1)h[d=h.length]=t;var l=e[t];var f="z";var u="";var p=bt({c:o+d,r:s+r+n});c=Qo.sheet_get_cell(i,p);if(l&&typeof l==="object"&&!(l instanceof Date)){i[p]=l}else{if(typeof l=="number")f="n";else if(typeof l=="boolean")f="b";else if(typeof l=="string")f="s";else if(l instanceof Date){f="d";if(!a.cellDates){f="n";l=re(l)}u=a.dateNF||P._table[14]}else if(l===null&&a.nullError){f="e";l=0}if(!c)i[p]=c={t:f,v:l};else{c.t=f;c.v=l;delete c.w;delete c.R;if(u)c.z=u}if(u)c.z=u}})});f.e.c=Math.max(f.e.c,o+h.length-1);var p=ct(s);if(n)for(d=0;d=0&&e.SheetNames.length>r)return r;throw new Error("Cannot find sheet # "+r)}else if(typeof r=="string"){var t=e.SheetNames.indexOf(r);if(t>-1)return t;throw new Error("Cannot find sheet name |"+r+"|")}else throw new Error("Cannot find sheet |"+r+"|")}e.book_new=function(){return{SheetNames:[],Sheets:{}}};e.book_append_sheet=function(e,r,t){if(!t)for(var a=1;a<=65535;++a,t=undefined)if(e.SheetNames.indexOf(t="Sheet"+a)==-1)break;if(!t||e.SheetNames.length>=65535)throw new Error("Too many worksheets");ds(t);if(e.SheetNames.indexOf(t)>=0)throw new Error("Worksheet with name |"+t+"| already exists!");e.SheetNames.push(t);e.Sheets[t]=r};e.book_set_sheet_visibility=function(e,r,a){t(e,"Workbook",{});t(e.Workbook,"Sheets",[]);var i=n(e,r);t(e.Workbook.Sheets,i,{});switch(a){case 0:;case 1:;case 2:break;default:throw new Error("Bad sheet visibility setting "+a);}e.Workbook.Sheets[i].Hidden=a};r([["SHEET_VISIBLE",0],["SHEET_HIDDEN",1],["SHEET_VERY_HIDDEN",2]]);e.cell_set_number_format=function(e,r){e.z=r;return e};e.cell_set_hyperlink=function(e,r,t){if(!r){delete e.l}else{e.l={Target:r};if(t)e.l.Tooltip=t}return e};e.cell_set_internal_link=function(r,t,a){return e.cell_set_hyperlink(r,"#"+t,a)};e.cell_add_comment=function(e,r,t){if(!e.c)e.c=[];e.c.push({t:r,a:t||"SheetJS"})};e.sheet_set_array_formula=function(e,r,t){var n=typeof r!="string"?r:kt(r);var i=typeof r=="string"?r:yt(r);for(var s=n.s.r;s<=n.e.r;++s)for(var o=n.s.c;o<=n.e.c;++o){var l=a(e,s,o);l.t="n";l.F=i;delete l.v;if(s==n.s.r&&o==n.s.c)l.f=t}return e};return e})(Qo);if(typeof parse_xlscfb!=="undefined")e.parse_xlscfb=parse_xlscfb;e.parse_zip=ao;e.read=go;e.readFile=bo;e.readFileSync=bo;e.write=Uo;e.writeFile=Wo;e.writeFileSync=Wo;e.writeFileAsync=$o;e.utils=Qo;e.writeXLSX=Bo;e.writeFileXLSX=jo;e.SSF=P;if(typeof H!=="undefined")e.CFB=H}if(typeof exports!=="undefined")make_xlsx_lib(exports);else if(typeof module!=="undefined"&&module.exports)make_xlsx_lib(module.exports);else if(typeof define==="function"&&define.amd)define("xlsx",function(){if(!XLSX.version)make_xlsx_lib(XLSX);return XLSX});else make_xlsx_lib(XLSX);if(typeof window!=="undefined"&&!window.XLSX)try{window.XLSX=XLSX}catch(e){} +var XLSX={};function make_xlsx_lib(e){e.version="0.18.2";var r=1200,t=1252;var a=[874,932,936,949,950,1e4];for(var n=0;n<=8;++n)a.push(1250+n);var i={0:1252,1:65001,2:65001,77:1e4,128:932,129:949,130:1361,134:936,136:950,161:1253,162:1254,163:1258,177:1255,178:1256,186:1257,204:1251,222:874,238:1250,255:1252,69:6969};var s=function(e){if(a.indexOf(e)==-1)return;t=i[0]=e};function l(){s(1252)}var o=function(e){r=e;s(e)};function c(){o(1200);l()}function f(e){var r=[];for(var t=0,a=e.length;t>1;++t)r[t]=String.fromCharCode(e.charCodeAt(2*t)+(e.charCodeAt(2*t+1)<<8));return r.join("")}function h(e){var r=[];for(var t=0;t>1;++t)r[t]=String.fromCharCode(e.charCodeAt(2*t+1)+(e.charCodeAt(2*t)<<8));return r.join("")}var p=function(e){var r=e.charCodeAt(0),t=e.charCodeAt(1);if(r==255&&t==254)return u(e.slice(2));if(r==254&&t==255)return h(e.slice(2));if(r==65279)return e.slice(1);return e};var d=function so(e){return String.fromCharCode(e)};var m=function lo(e){return String.fromCharCode(e)};var v=null;var g=true;var b=function(){var e="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=";return{encode:function(r){var t="";var a=0,n=0,i=0,s=0,l=0,o=0,c=0;for(var f=0;f>2;n=r.charCodeAt(f++);l=(a&3)<<4|n>>4;i=r.charCodeAt(f++);o=(n&15)<<2|i>>6;c=i&63;if(isNaN(n)){o=c=64}else if(isNaN(i)){c=64}t+=e.charAt(s)+e.charAt(l)+e.charAt(o)+e.charAt(c)}return t},decode:function(r){var t="";var a=0,n=0,i=0,s=0,l=0,o=0,c=0;r=r.replace(/[^\w\+\/\=]/g,"");for(var f=0;f>4;t+=String.fromCharCode(a);o=e.indexOf(r.charAt(f++));n=(l&15)<<4|o>>2;if(o!==64){t+=String.fromCharCode(n)}c=e.indexOf(r.charAt(f++));i=(o&3)<<6|c;if(c!==64){t+=String.fromCharCode(i)}}return t}}}();var w=typeof Buffer!=="undefined"&&typeof undefined!=="undefined"&&typeof{}!=="undefined"&&!!{}.node;var y=function(){};if(typeof Buffer!=="undefined"){var k=!Buffer.from;if(!k)try{Buffer.from("foo","utf8")}catch(x){k=true}y=k?function(e,r){return r?new Buffer(e,r):new Buffer(e)}:Buffer.from.bind(Buffer);if(!Buffer.alloc)Buffer.alloc=function(e){return new Buffer(e)};if(!Buffer.allocUnsafe)Buffer.allocUnsafe=function(e){return new Buffer(e)}}function S(e){return w?Buffer.alloc(e):typeof Uint8Array!="undefined"?new Uint8Array(e):new Array(e)}function C(e){return w?Buffer.allocUnsafe(e):typeof Uint8Array!="undefined"?new Uint8Array(e):new Array(e)}var _=function oo(e){if(w)return y(e,"binary");return e.split("").map(function(e){return e.charCodeAt(0)&255})};function A(e){if(typeof ArrayBuffer==="undefined")return _(e);var r=new ArrayBuffer(e.length),t=new Uint8Array(r);for(var a=0;a!=e.length;++a)t[a]=e.charCodeAt(a)&255;return r}function F(e){if(Array.isArray(e))return e.map(function(e){return String.fromCharCode(e)}).join("");var r=[];for(var t=0;t>6&31;n[t++]=128|s&63}else if(s>=55296&&s<57344){s=(s&1023)+64;var l=e.charCodeAt(++i)&1023;n[t++]=240|s>>8&7;n[t++]=128|s>>2&63;n[t++]=128|l>>6&15|(s&3)<<4;n[t++]=128|l&63}else{n[t++]=224|s>>12&15;n[t++]=128|s>>6&63;n[t++]=128|s&63}if(t>a){r.push(n.slice(0,t));t=0;n=S(65535);a=65530}}r.push(n.slice(0,t));return D(r)}var D=function(e){if(typeof Uint8Array!=="undefined"){var r=0,t=0;for(r=0;r=0)r+=e.charAt(t--);return r}function t(e,r){var t="";while(t.length=r?a:t("0",r-a.length)+a}function n(e,r){var a=""+e;return a.length>=r?a:t(" ",r-a.length)+a}function i(e,r){var a=""+e;return a.length>=r?a:a+t(" ",r-a.length)}function s(e,r){var a=""+Math.round(e);return a.length>=r?a:t("0",r-a.length)+a}function l(e,r){var a=""+e;return a.length>=r?a:t("0",r-a.length)+a}var o=Math.pow(2,32);function c(e,r){if(e>o||e<-o)return s(e,r);var t=Math.round(e);return l(t,r)}function f(e,r){r=r||0;return e.length>=7+r&&(e.charCodeAt(r)|32)===103&&(e.charCodeAt(r+1)|32)===101&&(e.charCodeAt(r+2)|32)===110&&(e.charCodeAt(r+3)|32)===101&&(e.charCodeAt(r+4)|32)===114&&(e.charCodeAt(r+5)|32)===97&&(e.charCodeAt(r+6)|32)===108}var u=[["Sun","Sunday"],["Mon","Monday"],["Tue","Tuesday"],["Wed","Wednesday"],["Thu","Thursday"],["Fri","Friday"],["Sat","Saturday"]];var h=[["J","Jan","January"],["F","Feb","February"],["M","Mar","March"],["A","Apr","April"],["M","May","May"],["J","Jun","June"],["J","Jul","July"],["A","Aug","August"],["S","Sep","September"],["O","Oct","October"],["N","Nov","November"],["D","Dec","December"]];function p(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]='"上午/下午 "hh"時"mm"分"ss"秒 "'}var d={};p(d);var m=[];var v=0;for(v=5;v<=8;++v)m[v]=32+v;for(v=23;v<=26;++v)m[v]=0;for(v=27;v<=31;++v)m[v]=14;for(v=50;v<=58;++v)m[v]=14;for(v=59;v<=62;++v)m[v]=v-58;for(v=67;v<=68;++v)m[v]=v-58;for(v=72;v<=75;++v)m[v]=v-58;for(v=67;v<=68;++v)m[v]=v-57;for(v=76;v<=78;++v)m[v]=v-56;for(v=79;v<=81;++v)m[v]=v-34;var g=[];g[5]=g[63]='"$"#,##0_);\\("$"#,##0\\)';g[6]=g[64]='"$"#,##0_);[Red]\\("$"#,##0\\)';g[7]=g[65]='"$"#,##0.00_);\\("$"#,##0.00\\)';g[8]=g[66]='"$"#,##0.00_);[Red]\\("$"#,##0.00\\)';g[41]='_(* #,##0_);_(* \\(#,##0\\);_(* "-"_);_(@_)';g[42]='_("$"* #,##0_);_("$"* \\(#,##0\\);_("$"* "-"_);_(@_)';g[43]='_(* #,##0.00_);_(* \\(#,##0.00\\);_(* "-"??_);_(@_)';g[44]='_("$"* #,##0.00_);_("$"* \\(#,##0.00\\);_("$"* "-"??_);_(@_)';function b(e,r,t){var a=e<0?-1:1;var n=e*a;var i=0,s=1,l=0;var o=1,c=0,f=0;var u=Math.floor(n);while(cr){if(c>r){f=o;l=i}else{f=c;l=s}}if(!t)return[0,a*l,f];var h=Math.floor(a*l/f);return[h,a*l-h*f,f]}function w(e,r,t){if(e>2958465||e<0)return null;var a=e|0,n=Math.floor(86400*(e-a)),i=0;var s=[];var l={D:a,T:n,u:86400*(e-a)-n,y:0,m:0,d:0,H:0,M:0,S:0,q:0};if(Math.abs(l.u)<1e-6)l.u=0;if(r&&r.date1904)a+=1462;if(l.u>.9999){l.u=0;if(++n==86400){l.T=n=0;++a;++l.D}}if(a===60){s=t?[1317,10,29]:[1900,2,29];i=3}else if(a===0){s=t?[1317,8,29]:[1900,1,0];i=6}else{if(a>60)--a;var o=new Date(1900,0,1);o.setDate(o.getDate()+a-1);s=[o.getFullYear(),o.getMonth()+1,o.getDate()];i=o.getDay();if(a<60)i=(i+6)%7;if(t)i=F(o,s)}l.y=s[0];l.m=s[1];l.d=s[2];l.S=n%60;n=Math.floor(n/60);l.M=n%60;n=Math.floor(n/60);l.H=n;l.q=i;return l}e.parse_date_code=w;var y=new Date(1899,11,31,0,0,0);var k=y.getTime();var x=new Date(1900,2,1,0,0,0);function S(e,r){var t=e.getTime();if(r)t-=1461*24*60*60*1e3;else if(e>=x)t+=24*60*60*1e3;return(t-(k+(e.getTimezoneOffset()-y.getTimezoneOffset())*6e4))/(24*60*60*1e3)}function C(e){return e.toString(10)}e._general_int=C;var _=function $(){var e=/(?:\.0*|(\.\d*[1-9])0+)$/;function r(r){return r.indexOf(".")==-1?r:r.replace(e,"$1")}var t=/(?:\.0*|(\.\d*[1-9])0+)[Ee]/;var a=/(E[+-])(\d)$/;function n(e){if(e.indexOf("E")==-1)return e;return e.replace(t,"$1E").replace(a,"$10$2")}function i(e){var t=e<0?12:11;var a=r(e.toFixed(12));if(a.length<=t)return a;a=e.toPrecision(10);if(a.length<=t)return a;return e.toExponential(5)}function s(e){var t=r(e.toFixed(11));return t.length>(e<0?12:11)||t==="0"||t==="-0"?e.toPrecision(6):t}function l(e){var t=Math.floor(Math.log(Math.abs(e))*Math.LOG10E),a;if(t>=-4&&t<=-1)a=e.toPrecision(10+t);else if(Math.abs(t)<=9)a=i(e);else if(t===10)a=e.toFixed(10).substr(0,12);else a=s(e);return r(n(a.toUpperCase()))}return l}();e._general_num=_;function A(e,r){switch(typeof e){case"string":return e;case"boolean":return e?"TRUE":"FALSE";case"number":return(e|0)===e?e.toString(10):_(e);case"undefined":return"";case"object":if(e==null)return"";if(e instanceof Date)return z(14,S(e,r&&r.date1904),r);}throw new Error("unsupported value in General format: "+e)}e._general=A;function F(e,r){r[0]-=581;var t=e.getDay();if(e<60)t=(t+6)%7;return t}function E(e,r,t,n){var i="",s=0,l=0,o=t.y,c,f=0;switch(e){case 98:o=t.y+543;case 121:switch(r.length){case 1:;case 2:c=o%100;f=2;break;default:c=o%1e4;f=4;break;}break;case 109:switch(r.length){case 1:;case 2:c=t.m;f=r.length;break;case 3:return h[t.m-1][1];case 5:return h[t.m-1][0];default:return h[t.m-1][2];}break;case 100:switch(r.length){case 1:;case 2:c=t.d;f=r.length;break;case 3:return u[t.q][0];default:return u[t.q][1];}break;case 104:switch(r.length){case 1:;case 2:c=1+(t.H+11)%12;f=r.length;break;default:throw"bad hour format: "+r;}break;case 72:switch(r.length){case 1:;case 2:c=t.H;f=r.length;break;default:throw"bad hour format: "+r;}break;case 77:switch(r.length){case 1:;case 2:c=t.M;f=r.length;break;default:throw"bad minute format: "+r;}break;case 115:if(r!="s"&&r!="ss"&&r!=".0"&&r!=".00"&&r!=".000")throw"bad second format: "+r;if(t.u===0&&(r=="s"||r=="ss"))return a(t.S,r.length);if(n>=2)l=n===3?1e3:100;else l=n===1?10:1;s=Math.round(l*(t.S+t.u));if(s>=60*l)s=0;if(r==="s")return s===0?"0":""+s/l;i=a(s,2+n);if(r==="ss")return i.substr(0,2);return"."+i.substr(2,r.length-1);case 90:switch(r){case"[h]":;case"[hh]":c=t.D*24+t.H;break;case"[m]":;case"[mm]":c=(t.D*24+t.H)*60+t.M;break;case"[s]":;case"[ss]":c=((t.D*24+t.H)*60+t.M)*60+Math.round(t.S+t.u);break;default:throw"bad abstime format: "+r;}f=r.length===3?1:2;break;case 101:c=o;f=1;break;}var p=f>0?a(c,f):"";return p}function T(e){var r=3;if(e.length<=r)return e;var t=e.length%r,a=e.substr(0,t);for(;t!=e.length;t+=r)a+=(a.length>0?",":"")+e.substr(t,r);return a}var O=function W(){var e=/%/g;function s(r,a,n){var i=a.replace(e,""),s=a.length-i.length;return O(r,i,n*Math.pow(10,2*s))+t("%",s)}function l(e,r,t){var a=r.length-1;while(r.charCodeAt(a-1)===44)--a;return O(e,r.substr(0,a),t/Math.pow(10,3*(r.length-a)))}function o(e,r){var t;var a=e.indexOf("E")-e.indexOf(".")-1;if(e.match(/^#+0.0E\+0$/)){if(r==0)return"0.0E+0";else if(r<0)return"-"+o(e,-r);var n=e.indexOf(".");if(n===-1)n=e.indexOf("E");var i=Math.floor(Math.log(r)*Math.LOG10E)%n;if(i<0)i+=n;t=(r/Math.pow(10,i)).toPrecision(a+1+(n+i)%n);if(t.indexOf("e")===-1){var s=Math.floor(Math.log(r)*Math.LOG10E);if(t.indexOf(".")===-1)t=t.charAt(0)+"."+t.substr(1)+"E+"+(s-t.length+i);else t+="E+"+(s-i);while(t.substr(0,2)==="0."){t=t.charAt(0)+t.substr(2,n)+"."+t.substr(2+n);t=t.replace(/^0+([1-9])/,"$1").replace(/^0+\./,"0.")}t=t.replace(/\+-/,"-")}t=t.replace(/^([+-]?)(\d*)\.(\d*)[Ee]/,function(e,r,t,a){return r+t+a.substr(0,(n+i)%n)+"."+a.substr(i)+"E"})}else t=r.toExponential(a);if(e.match(/E\+00$/)&&t.match(/e[+-]\d$/))t=t.substr(0,t.length-1)+"0"+t.charAt(t.length-1);if(e.match(/E\-/)&&t.match(/e\+/))t=t.replace(/e\+/,"e");return t.replace("e","E")}var f=/# (\?+)( ?)\/( ?)(\d+)/;function u(e,r,i){var s=parseInt(e[4],10),l=Math.round(r*s),o=Math.floor(l/s);var c=l-o*s,f=s;return i+(o===0?"":""+o)+" "+(c===0?t(" ",e[1].length+1+e[4].length):n(c,e[1].length)+e[2]+"/"+e[3]+a(f,e[4].length))}function h(e,r,a){return a+(r===0?"":""+r)+t(" ",e[1].length+2+e[4].length)}var p=/^#*0*\.([0#]+)/;var d=/\).*[0#]/;var m=/\(###\) ###\\?-####/;function v(e){var r="",t;for(var a=0;a!=e.length;++a)switch(t=e.charCodeAt(a)){case 35:break;case 63:r+=" ";break;case 48:r+="0";break;default:r+=String.fromCharCode(t);}return r}function g(e,r){var t=Math.pow(10,r);return""+Math.round(e*t)/t}function w(e,r){var t=e-Math.floor(e),a=Math.pow(10,r);if(r<(""+Math.round(t*a)).length)return 0;return Math.round(t*a)}function y(e,r){if(r<(""+Math.round((e-Math.floor(e))*Math.pow(10,r))).length){return 1}return 0}function k(e){if(e<2147483647&&e>-2147483648)return""+(e>=0?e|0:e-1|0);return""+Math.floor(e)}function x(e,h,S){if(e.charCodeAt(0)===40&&!h.match(d)){var C=h.replace(/\( */,"").replace(/ \)/,"").replace(/\)/,"");if(S>=0)return x("n",C,S);return"("+x("n",C,-S)+")"}if(h.charCodeAt(h.length-1)===44)return l(e,h,S);if(h.indexOf("%")!==-1)return s(e,h,S);if(h.indexOf("E")!==-1)return o(h,S);if(h.charCodeAt(0)===36)return"$"+x(e,h.substr(h.charAt(1)==" "?2:1),S);var _;var A,F,E,D=Math.abs(S),M=S<0?"-":"";if(h.match(/^00+$/))return M+c(D,h.length);if(h.match(/^[#?]+$/)){_=c(S,0);if(_==="0")_="";return _.length>h.length?_:v(h.substr(0,h.length-_.length))+_}if(A=h.match(f))return u(A,D,M);if(h.match(/^#+0+$/))return M+c(D,h.length-h.indexOf("0"));if(A=h.match(p)){_=g(S,A[1].length).replace(/^([^\.]+)$/,"$1."+v(A[1])).replace(/\.$/,"."+v(A[1])).replace(/\.(\d*)$/,function(e,r){return"."+r+t("0",v(A[1]).length-r.length)});return h.indexOf("0.")!==-1?_:_.replace(/^0\./,".")}h=h.replace(/^#+([0.])/,"$1");if(A=h.match(/^(0*)\.(#*)$/)){return M+g(D,A[2].length).replace(/\.(\d*[1-9])0*$/,".$1").replace(/^(-?\d*)$/,"$1.").replace(/^0\./,A[1].length?"0.":".")}if(A=h.match(/^#{1,3},##0(\.?)$/))return M+T(c(D,0));if(A=h.match(/^#,##0\.([#0]*0)$/)){return S<0?"-"+x(e,h,-S):T(""+(Math.floor(S)+y(S,A[1].length)))+"."+a(w(S,A[1].length),A[1].length)}if(A=h.match(/^#,#*,#0/))return x(e,h.replace(/^#,#*,/,""),S);if(A=h.match(/^([0#]+)(\\?-([0#]+))+$/)){_=r(x(e,h.replace(/[\\-]/g,""),S));F=0;return r(r(h.replace(/\\/g,"")).replace(/[0#]/g,function(e){return F<_.length?_.charAt(F++):e==="0"?"0":""}))}if(h.match(m)){_=x(e,"##########",S);return"("+_.substr(0,3)+") "+_.substr(3,3)+"-"+_.substr(6)}var N="";if(A=h.match(/^([#0?]+)( ?)\/( ?)([#0?]+)/)){F=Math.min(A[4].length,7);E=b(D,Math.pow(10,F)-1,false);_=""+M;N=O("n",A[1],E[1]);if(N.charAt(N.length-1)==" ")N=N.substr(0,N.length-1)+"0";_+=N+A[2]+"/"+A[3];N=i(E[2],F);if(N.length=0)return A("n",o,l);return"("+A("n",o,-l)+")"}if(s.charCodeAt(s.length-1)===44)return S(e,s,l);if(s.indexOf("%")!==-1)return C(e,s,l);if(s.indexOf("E")!==-1)return _(s,l);if(s.charCodeAt(0)===36)return"$"+A(e,s.substr(s.charAt(1)==" "?2:1),l);var c;var u,g,w,y=Math.abs(l),k=l<0?"-":"";if(s.match(/^00+$/))return k+a(y,s.length);if(s.match(/^[#?]+$/)){c=""+l;if(l===0)c="";return c.length>s.length?c:v(s.substr(0,s.length-c.length))+c}if(u=s.match(f))return h(u,y,k);if(s.match(/^#+0+$/))return k+a(y,s.length-s.indexOf("0"));if(u=s.match(p)){c=(""+l).replace(/^([^\.]+)$/,"$1."+v(u[1])).replace(/\.$/,"."+v(u[1]));c=c.replace(/\.(\d*)$/,function(e,r){return"."+r+t("0",v(u[1]).length-r.length)});return s.indexOf("0.")!==-1?c:c.replace(/^0\./,".")}s=s.replace(/^#+([0.])/,"$1");if(u=s.match(/^(0*)\.(#*)$/)){return k+(""+y).replace(/\.(\d*[1-9])0*$/,".$1").replace(/^(-?\d*)$/,"$1.").replace(/^0\./,u[1].length?"0.":".")}if(u=s.match(/^#{1,3},##0(\.?)$/))return k+T(""+y);if(u=s.match(/^#,##0\.([#0]*0)$/)){return l<0?"-"+A(e,s,-l):T(""+l)+"."+t("0",u[1].length)}if(u=s.match(/^#,#*,#0/))return A(e,s.replace(/^#,#*,/,""),l);if(u=s.match(/^([0#]+)(\\?-([0#]+))+$/)){c=r(A(e,s.replace(/[\\-]/g,""),l));g=0;return r(r(s.replace(/\\/g,"")).replace(/[0#]/g,function(e){return g-1||t=="\\"&&e.charAt(r+1)=="-"&&"0#".indexOf(e.charAt(r+2))>-1)){}break;case"?":while(e.charAt(++r)===t){}break;case"*":++r;if(e.charAt(r)==" "||e.charAt(r)=="*")++r;break;case"(":;case")":++r;break;case"1":;case"2":;case"3":;case"4":;case"5":;case"6":;case"7":;case"8":;case"9":while(r-1){}break;case" ":++r;break;default:++r;break;}}return false}e.is_date=N;function P(e,r,t,a){var n=[],i="",s=0,l="",o="t",c,u,h;var p="H";while(s=12?"P":"A";v.t="T";p="h";s+=3}else if(e.substr(s,5).toUpperCase()==="AM/PM"){if(c!=null)v.v=c.H>=12?"PM":"AM";v.t="T";s+=5;p="h"}else if(e.substr(s,5).toUpperCase()==="上午/下午"){if(c!=null)v.v=c.H>=12?"下午":"上午";v.t="T";s+=5;p="h"}else{v.t="t";++s}if(c==null&&v.t==="T")return"";n[n.length]=v;o=l;break;case"[":i=l;while(e.charAt(s++)!=="]"&&s-1){i=(i.match(/\$([^-\[\]]*)/)||[])[1]||"$";if(!N(e))n[n.length]={t:"t",v:i}}break;case".":if(c!=null){i=l;while(++s-1)i+=l;n[n.length]={t:"n",v:i};break;case"?":i=l;while(e.charAt(++s)===l)i+=l;n[n.length]={t:l,v:i};o=l;break;case"*":++s;if(e.charAt(s)==" "||e.charAt(s)=="*")++s;break;case"(":;case")":n[n.length]={t:a===1?"t":l,v:l};++s;break;case"1":;case"2":;case"3":;case"4":;case"5":;case"6":;case"7":;case"8":;case"9":i=l;while(s-1)i+=e.charAt(s);n[n.length]={t:"D",v:i};break;case" ":n[n.length]={t:l,v:l};++s;break;case"$":n[n.length]={t:"t",v:"$"};++s;break;default:if(",$-+/():!^&'~{}<>=€acfijklopqrtuvwxzP".indexOf(l)===-1)throw new Error("unrecognized character "+l+" in "+e);n[n.length]={t:"t",v:l};++s;break;}}var g=0,b=0,y;for(s=n.length-1,o="t";s>=0;--s){switch(n[s].t){case"h":;case"H":n[s].t=p;o="h";if(g<1)g=1;break;case"s":if(y=n[s].v.match(/\.0+$/))b=Math.max(b,y[0].length-1);if(g<3)g=3;case"d":;case"y":;case"M":;case"e":o=n[s].t;break;case"m":if(o==="s"){n[s].t="M";if(g<2)g=2}break;case"X":break;case"Z":if(g<1&&n[s].v.match(/[Hh]/))g=1;if(g<2&&n[s].v.match(/[Mm]/))g=2;if(g<3&&n[s].v.match(/[Ss]/))g=3;}}switch(g){case 0:break;case 1:if(c.u>=.5){c.u=0;++c.S}if(c.S>=60){c.S=0;++c.M}if(c.M>=60){c.M=0;++c.H}break;case 2:if(c.u>=.5){c.u=0;++c.S}if(c.S>=60){c.S=0;++c.M}break;}var k="",x;for(s=0;s0){if(k.charCodeAt(0)==40){C=r<0&&k.charCodeAt(0)===45?-r:r;_=O("n",k,C)}else{C=r<0&&a>1?-r:r;_=O("n",k,C);if(C<0&&n[0]&&n[0].t=="t"){_=_.substr(1);n[0].v="-"+n[0].v}}x=_.length-1;var F=n.length;for(s=0;s-1){F=s;break}var T=n.length;if(F===n.length&&_.indexOf("E")===-1){for(s=n.length-1;s>=0;--s){if(n[s]==null||"n?".indexOf(n[s].t)===-1)continue;if(x>=n[s].v.length-1){x-=n[s].v.length;n[s].v=_.substr(x+1,n[s].v.length)}else if(x<0)n[s].v="";else{n[s].v=_.substr(0,x+1);x=-1}n[s].t="t";T=s}if(x>=0&&T=0;--s){if(n[s]==null||"n?".indexOf(n[s].t)===-1)continue;u=n[s].v.indexOf(".")>-1&&s===F?n[s].v.indexOf(".")-1:n[s].v.length-1;S=n[s].v.substr(u+1);for(;u>=0;--u){if(x>=0&&(n[s].v.charAt(u)==="0"||n[s].v.charAt(u)==="#"))S=_.charAt(x--)+S}n[s].v=S;n[s].t="t";T=s}if(x>=0&&T-1&&s===F?n[s].v.indexOf(".")+1:0;S=n[s].v.substr(0,u);for(;u-1){C=a>1&&r<0&&s>0&&n[s-1].v==="-"?-r:r;n[s].v=O(n[s].t,n[s].v,C);n[s].t="t"}var D="";for(s=0;s!==n.length;++s)if(n[s]!=null)D+=n[s].v;return D}e._eval=P;var R=/\[[=<>]/;var I=/\[(=|>[=]?|<[>=]?)(-?\d+(?:\.\d*)?)\]/;function L(e,r){if(r==null)return false;var t=parseFloat(r[2]);switch(r[1]){case"=":if(e==t)return true;break;case">":if(e>t)return true;break;case"<":if(e":if(e!=t)return true;break;case">=":if(e>=t)return true;break;case"<=":if(e<=t)return true;break;}return false}function B(e,r){var t=D(e);var a=t.length,n=t[a-1].indexOf("@");if(a<4&&n>-1)--a;if(t.length>4)throw new Error("cannot find right format for |"+t.join("|")+"|");if(typeof r!=="number")return[4,t.length===4||n>-1?t[t.length-1]:"@"];switch(t.length){case 1:t=n>-1?["General","General","General",t[0]]:[t[0],t[0],t[0],"@"];break;case 2:t=n>-1?[t[0],t[0],t[0],t[1]]:[t[0],t[1],t[0],"@"];break;case 3:t=n>-1?[t[0],t[1],t[0],t[2]]:[t[0],t[1],t[2],"@"];break;case 4:break;}var i=r>0?t[0]:r<0?t[1]:t[2];if(t[0].indexOf("[")===-1&&t[1].indexOf("[")===-1)return[a,i];if(t[0].match(R)!=null||t[1].match(R)!=null){var s=t[0].match(I);var l=t[1].match(I);return L(r,s)?[a,t[0]]:L(r,l)?[a,t[1]]:[a,t[s!=null&&l!=null?2:1]]}return[a,i]}function z(e,r,t){if(t==null)t={};var a="";switch(typeof e){case"string":if(e=="m/d/yy"&&t.dateNF)a=t.dateNF;else a=e;break;case"number":if(e==14&&t.dateNF)a=t.dateNF;else a=(t.table!=null?t.table:d)[e];if(a==null)a=t.table&&t.table[m[e]]||d[m[e]];if(a==null)a=g[e]||"General";break;}if(f(a,0))return A(r,t);if(r instanceof Date)r=S(r,t.date1904);var n=B(a,r);if(f(n[1]))return A(r,t);if(r===true)r="TRUE";else if(r===false)r="FALSE";else if(r===""||r==null)return"";return P(n[1],r,t,n[0])}function U(e,r){if(typeof r!="number"){r=+r||-1;for(var t=0;t<392;++t){if(d[t]==undefined){if(r<0)r=t;continue}if(d[t]==e){r=t;break}}if(r<0)r=391}d[r]=e;return r}e.load=U;e._table=d;e.get_table=function j(){return d};e.load_table=function H(e){for(var r=0;r!=392;++r)if(e[r]!==undefined)U(e[r],r)};e.init_table=p;e.format=z};R(P);var I={"General Number":"General","General Date":P._table[22],"Long Date":"dddd, mmmm dd, yyyy","Medium Date":P._table[15],"Short Date":P._table[14],"Long Time":P._table[19],"Medium Time":P._table[18],"Short Time":P._table[20],Currency:'"$"#,##0.00_);[Red]\\("$"#,##0.00\\)',Fixed:P._table[2],Standard:P._table[4],Percent:P._table[10],Scientific:P._table[11],"Yes/No":'"Yes";"Yes";"No";@',"True/False":'"True";"True";"False";@',"On/Off":'"Yes";"Yes";"No";@'};var L={5:'"$"#,##0_);\\("$"#,##0\\)',6:'"$"#,##0_);[Red]\\("$"#,##0\\)',7:'"$"#,##0.00_);\\("$"#,##0.00\\)',8:'"$"#,##0.00_);[Red]\\("$"#,##0.00\\)',23:"General",24:"General",25:"General",26:"General",27:"m/d/yy",28:"m/d/yy",29:"m/d/yy",30:"m/d/yy",31:"m/d/yy",32:"h:mm:ss",33:"h:mm:ss",34:"h:mm:ss",35:"h:mm:ss",36:"m/d/yy",41:'_(* #,##0_);_(* (#,##0);_(* "-"_);_(@_)',42:'_("$"* #,##0_);_("$"* (#,##0);_("$"* "-"_);_(@_)',43:'_(* #,##0.00_);_(* (#,##0.00);_(* "-"??_);_(@_)',44:'_("$"* #,##0.00_);_("$"* (#,##0.00);_("$"* "-"??_);_(@_)',50:"m/d/yy",51:"m/d/yy",52:"m/d/yy",53:"m/d/yy",54:"m/d/yy",55:"m/d/yy",56:"m/d/yy",57:"m/d/yy",58:"m/d/yy",59:"0",60:"0.00",61:"#,##0",62:"#,##0.00",63:'"$"#,##0_);\\("$"#,##0\\)',64:'"$"#,##0_);[Red]\\("$"#,##0\\)',65:'"$"#,##0.00_);\\("$"#,##0.00\\)',66:'"$"#,##0.00_);[Red]\\("$"#,##0.00\\)',67:"0%",68:"0.00%",69:"# ?/?",70:"# ??/??",71:"m/d/yy",72:"m/d/yy",73:"d-mmm-yy",74:"d-mmm",75:"mmm-yy",76:"h:mm",77:"h:mm:ss",78:"m/d/yy h:mm",79:"mm:ss",80:"[h]:mm:ss",81:"mmss.0"};var B=/[dD]+|[mM]+|[yYeE]+|[Hh]+|[Ss]+/g;function z(e){var r=typeof e=="number"?P._table[e]:e;r=r.replace(B,"(\\d+)");return new RegExp("^"+r+"$")}function U(e,r,t){var a=-1,n=-1,i=-1,s=-1,l=-1,o=-1;(r.match(B)||[]).forEach(function(e,r){var c=parseInt(t[r+1],10);switch(e.toLowerCase().charAt(0)){case"y":a=c;break;case"d":i=c;break;case"h":s=c;break;case"s":o=c;break;case"m":if(s>=0)l=c;else n=c;break;}});if(o>=0&&l==-1&&n>=0){l=n;n=-1}var c=(""+(a>=0?a:(new Date).getFullYear())).slice(-4)+"-"+("00"+(n>=1?n:1)).slice(-2)+"-"+("00"+(i>=1?i:1)).slice(-2);if(c.length==7)c="0"+c;if(c.length==8)c="20"+c;var f=("00"+(s>=0?s:0)).slice(-2)+":"+("00"+(l>=0?l:0)).slice(-2)+":"+("00"+(o>=0?o:0)).slice(-2);if(s==-1&&l==-1&&o==-1)return c;if(a==-1&&n==-1&&i==-1)return f;return c+"T"+f}var W=true;var j;(function(e){e(j={})})(function(e){e.version="1.2.0";function r(){var e=0,r=new Array(256);for(var t=0;t!=256;++t){e=t;e=e&1?-306674912^e>>>1:e>>>1;e=e&1?-306674912^e>>>1:e>>>1;e=e&1?-306674912^e>>>1:e>>>1;e=e&1?-306674912^e>>>1:e>>>1;e=e&1?-306674912^e>>>1:e>>>1;e=e&1?-306674912^e>>>1:e>>>1;e=e&1?-306674912^e>>>1:e>>>1;e=e&1?-306674912^e>>>1:e>>>1;r[t]=e}return typeof Int32Array!=="undefined"?new Int32Array(r):r}var t=r();function a(e){var r=0,t=0,a=0,n=typeof Int32Array!=="undefined"?new Int32Array(4096):new Array(4096);for(a=0;a!=256;++a)n[a]=e[a];for(a=0;a!=256;++a){t=e[a];for(r=256+a;r<4096;r+=256)t=n[r]=t>>>8^e[t&255]}var i=[];for(a=1;a!=16;++a)i[a-1]=typeof Int32Array!=="undefined"?n.subarray(a*256,a*256+256):n.slice(a*256,a*256+256);return i}var n=a(t);var i=n[0],s=n[1],l=n[2],o=n[3],c=n[4];var f=n[5],u=n[6],h=n[7],p=n[8],d=n[9];var m=n[10],v=n[11],g=n[12],b=n[13],w=n[14];function y(e,r){var a=r^-1;for(var n=0,i=e.length;n>>8^t[(a^e.charCodeAt(n++))&255];return~a}function k(e,r){var a=r^-1,n=e.length-15,y=0;for(;y>8&255]^g[e[y++]^a>>16&255]^v[e[y++]^a>>>24]^m[e[y++]]^d[e[y++]]^p[e[y++]]^h[e[y++]]^u[e[y++]]^f[e[y++]]^c[e[y++]]^o[e[y++]]^l[e[y++]]^s[e[y++]]^i[e[y++]]^t[e[y++]];n+=15; +while(y>>8^t[(a^e[y++])&255];return~a}function x(e,r){var a=r^-1;for(var n=0,i=e.length,s=0,l=0;n>>8^t[(a^s)&255]}else if(s<2048){a=a>>>8^t[(a^(192|s>>6&31))&255];a=a>>>8^t[(a^(128|s&63))&255]}else if(s>=55296&&s<57344){s=(s&1023)+64;l=e.charCodeAt(n++)&1023;a=a>>>8^t[(a^(240|s>>8&7))&255];a=a>>>8^t[(a^(128|s>>2&63))&255];a=a>>>8^t[(a^(128|l>>6&15|(s&3)<<4))&255];a=a>>>8^t[(a^(128|l&63))&255]}else{a=a>>>8^t[(a^(224|s>>12&15))&255];a=a>>>8^t[(a^(128|s>>6&63))&255];a=a>>>8^t[(a^(128|s&63))&255]}}return~a}e.table=t;e.bstr=y;e.buf=k;e.str=x});var H=function fo(){var e={};e.version="1.2.1";function r(e,r){var t=e.split("/"),a=r.split("/");for(var n=0,i=0,s=Math.min(t.length,a.length);n>>1;e._W(2,t);var a=r.getFullYear()-1980;a=a<<4|r.getMonth()+1;a=a<<5|r.getDate();e._W(2,a)}function i(e){var r=e._R(2)&65535;var t=e._R(2)&65535;var a=new Date;var n=t&31;t>>>=5;var i=t&15;t>>>=4;a.setMilliseconds(0);a.setFullYear(t+1980);a.setMonth(i-1);a.setDate(n);var s=r&31;r>>>=5;var l=r&63;r>>>=6;a.setHours(r);a.setMinutes(l);a.setSeconds(s<<1);return a}function s(e){Zr(e,0);var r={};var t=0;while(e.l<=e.length-4){var a=e._R(2);var n=e._R(2),i=e.l+n;var s={};switch(a){case 21589:{t=e._R(1);if(t&1)s.mtime=e._R(4);if(n>5){if(t&2)s.atime=e._R(4);if(t&4)s.ctime=e._R(4)}if(s.mtime)s.mt=new Date(s.mtime*1e3)}break;}e.l=i;r[a]=s}return r}var l;function o(){return l||(l=undefined)}function c(e,r){if(e[0]==80&&e[1]==75)return Me(e,r);if((e[0]|32)==109&&(e[1]|32)==105)return $e(e,r);if(e.length<512)throw new Error("CFB file size "+e.length+" < 512");var t=3;var a=512;var n=0;var i=0;var s=0;var l=0;var o=0;var c=[];var d=e.slice(0,512);Zr(d,0);var v=f(d);t=v[0];switch(t){case 3:a=512;break;case 4:a=4096;break;case 0:if(v[1]==0)return Me(e,r);default:throw new Error("Major Version: Expected 3 or 4 saw "+t);}if(a!==512){d=e.slice(0,a);Zr(d,28)}var b=e.slice(0,a);u(d,t);var w=d._R(4,"i");if(t===3&&w!==0)throw new Error("# Directory Sectors: Expected 0 saw "+w);d.l+=4;s=d._R(4,"i");d.l+=4;d.chk("00100000","Mini Stream Cutoff Size: ");l=d._R(4,"i");n=d._R(4,"i");o=d._R(4,"i");i=d._R(4,"i");for(var y=-1,x=0;x<109;++x){y=d._R(4,"i");if(y<0)break;c[x]=y}var S=h(e,a);m(o,i,S,a,c);var C=g(S,s,c,a);C[s].name="!Directory";if(n>0&&l!==L)C[l].name="!MiniFAT";C[c[0]].name="!FAT";C.fat_addrs=c;C.ssz=a;var _={},A=[],F=[],E=[];k(s,C,S,A,n,_,F,l);p(F,E,A);A.shift();var T={FileIndex:F,FullPaths:E};if(r&&r.raw)T.raw={header:b,sectors:S};return T}function f(e){if(e[e.l]==80&&e[e.l+1]==75)return[0,0];e.chk(B,"Header Signature: ");e.l+=16;var r=e._R(2,"u");return[e._R(2,"u"),r]}function u(e,r){var t=9;e.l+=2;switch(t=e._R(2)){case 9:if(r!=3)throw new Error("Sector Shift: Expected 9 saw "+t);break;case 12:if(r!=4)throw new Error("Sector Shift: Expected 12 saw "+t);break;default:throw new Error("Sector Shift: Expected 9 or 12 saw "+t);}e.chk("0600","Mini Sector Shift: ");e.chk("000000000000","Reserved: ")}function h(e,r){var t=Math.ceil(e.length/r)-1;var a=[];for(var n=1;n0&&s>=0){i.push(r.slice(s*I,s*I+I));n-=I;s=Hr(t,s*4)}if(i.length===0)return et(0);return D(i).slice(0,e.size)}function m(e,r,t,a,n){var i=L;if(e===L){if(r!==0)throw new Error("DIFAT chain shorter than expected")}else if(e!==-1){var s=t[e],l=(a>>>2)-1;if(!s)return;for(var o=0;o=0;){n[o]=true;i[i.length]=o;s.push(e[o]);var f=t[Math.floor(o*4/a)];c=o*4&l;if(a<4+c)throw new Error("FAT boundary crossed: "+o+" 4 "+a);if(!e[f])break;o=Hr(e[f],c)}return{nodes:i,data:br([s])}}function g(e,r,t,a){var n=e.length,i=[];var s=[],l=[],o=[];var c=a-1,f=0,u=0,h=0,p=0;for(f=0;f=n)h-=n;if(s[h])continue;o=[];var d=[];for(u=h;u>=0;){d[u]=true;s[u]=true;l[l.length]=u;o.push(e[u]);var m=t[Math.floor(u*4/a)];p=u*4&c;if(a<4+p)throw new Error("FAT boundary crossed: "+u+" 4 "+a);if(!e[m])break;u=Hr(e[m],p);if(d[u])break}i[h]={nodes:l,data:br([o])}}return i}function k(e,r,t,a,n,i,s,l){var o=0,c=a.length?2:0;var f=r[e].data;var u=0,h=0,p;for(;u0&&o!==L)r[o].name="!StreamData"}else if(g.size>=4096){g.storage="fat";if(r[g.start]===undefined)r[g.start]=v(t,g.start,r.fat_addrs,r.ssz);r[g.start].name=g.name;g.content=r[g.start].data.slice(0,g.size)}else{g.storage="minifat";if(g.size<0)g.size=0;else if(o!==L&&g.start!==L&&r[o]){g.content=d(g,r[o].data,(r[l]||{}).data)}}if(g.content)Zr(g.content,0);i[p]=g;s.push(g)}}function x(e,r){return new Date((jr(e,r+4)/1e7*Math.pow(2,32)+jr(e,r)/1e7-11644473600)*1e3)}function A(e,r){o();return c(l.readFileSync(e),r)}function F(e,r){var t=r&&r.type;if(!t){if(w&&Buffer.isBuffer(e))t="buffer"}switch(t||"base64"){case"file":return A(e,r);case"base64":return c(_(b.decode(e)),r);case"binary":return c(_(e),r);}return c(e,r)}function E(e,r){var t=r||{},a=t.root||"Root Entry";if(!e.FullPaths)e.FullPaths=[];if(!e.FileIndex)e.FileIndex=[];if(e.FullPaths.length!==e.FileIndex.length)throw new Error("inconsistent CFB structure");if(e.FullPaths.length===0){e.FullPaths[0]=a+"/";e.FileIndex[0]={name:a,type:5}}if(t.CLSID)e.FileIndex[0].clsid=t.CLSID;T(e)}function T(e){var r="Sh33tJ5";if(H.find(e,"/"+r))return;var t=et(4);t[0]=55;t[1]=t[3]=50;t[2]=54;e.FileIndex.push({name:r,type:2,content:t,size:4,L:69,R:69,C:69});e.FullPaths.push(e.FullPaths[0]+r);O(e)}function O(e,n){E(e);var i=false,s=false;for(var l=e.FullPaths.length-1;l>=0;--l){var o=e.FileIndex[l];switch(o.type){case 0:if(s)i=true;else{e.FileIndex.pop();e.FullPaths.pop()}break;case 1:;case 2:;case 5:s=true;if(isNaN(o.R*o.L*o.C))i=true;if(o.R>-1&&o.L>-1&&o.R==o.L)i=true;break;default:i=true;break;}}if(!i&&!n)return;var c=new Date(1987,1,19),f=0;var u=Object.create?Object.create(null):{};var h=[];for(l=0;l1?1:-1;d.size=0;d.type=5}else if(m.slice(-1)=="/"){for(f=l+1;f=h.length?-1:f;for(f=l+1;f=h.length?-1:f;d.type=1}else{if(t(e.FullPaths[l+1]||"")==t(m))d.R=l+1;d.type=2}}}function P(e,r){var t=r||{};if(t.fileType=="mad")return We(e,t);O(e);switch(t.fileType){case"zip":return Pe(e,t);}var a=function(e){var r=0,t=0;for(var a=0;a0){if(i<4096)r+=i+63>>6;else t+=i+511>>9}}var s=e.FullPaths.length+3>>2;var l=r+7>>3;var o=r+127>>7;var c=l+t+s+o;var f=c+127>>7;var u=f<=109?0:Math.ceil((f-109)/127);while(c+f+u+127>>7>f)u=++f<=109?0:Math.ceil((f-109)/127);var h=[1,u,f,o,s,t,r,0];e.FileIndex[0].size=r<<6;h[7]=(e.FileIndex[0].start=h[0]+h[1]+h[2]+h[3]+h[4]+h[5])+(h[6]+7>>3);return h}(e);var n=et(a[7]<<9);var i=0,s=0;{for(i=0;i<8;++i)n._W(1,z[i]);for(i=0;i<8;++i)n._W(2,0);n._W(2,62);n._W(2,3);n._W(2,65534);n._W(2,9);n._W(2,6);for(i=0;i<3;++i)n._W(2,0);n._W(4,0);n._W(4,a[2]);n._W(4,a[0]+a[1]+a[2]+a[3]-1);n._W(4,0);n._W(4,1<<12);n._W(4,a[3]?a[0]+a[1]+a[2]-1:L);n._W(4,a[3]);n._W(-4,a[1]?a[0]-1:L);n._W(4,a[1]);for(i=0;i<109;++i)n._W(-4,i>9)}l(a[6]+7>>3);while(n.l&511)n._W(-4,$.ENDOFCHAIN);s=i=0;for(o=0;o=4096)continue;f.start=s;l(c+63>>6)}while(n.l&511)n._W(-4,$.ENDOFCHAIN);for(i=0;i=4096){n.l=f.start+1<<9;if(w&&Buffer.isBuffer(f.content)){f.content.copy(n,n.l,0,f.size);n.l+=f.size+511&-512}else{for(o=0;o0&&f.size<4096){if(w&&Buffer.isBuffer(f.content)){f.content.copy(n,n.l,0,f.size);n.l+=f.size+63&-64}else{for(o=0;o>16|r>>8|r)&255}var re=typeof Uint8Array!=="undefined";var te=re?new Uint8Array(1<<8):[];for(var ae=0;ae<1<<8;++ae)te[ae]=ee(ae);function ne(e,r){var t=te[e&255];if(r<=8)return t>>>8-r;t=t<<8|te[e>>8&255];if(r<=16)return t>>>16-r;t=t<<8|te[e>>16&255];return t>>>24-r}function ie(e,r){var t=r&7,a=r>>>3;return(e[a]|(t<=6?0:e[a+1]<<8))>>>t&3}function se(e,r){var t=r&7,a=r>>>3;return(e[a]|(t<=5?0:e[a+1]<<8))>>>t&7}function le(e,r){var t=r&7,a=r>>>3;return(e[a]|(t<=4?0:e[a+1]<<8))>>>t&15}function oe(e,r){var t=r&7,a=r>>>3;return(e[a]|(t<=3?0:e[a+1]<<8))>>>t&31}function ce(e,r){var t=r&7,a=r>>>3;return(e[a]|(t<=1?0:e[a+1]<<8))>>>t&127}function fe(e,r,t){var a=r&7,n=r>>>3,i=(1<>>a;if(t<8-a)return s&i;s|=e[n+1]<<8-a;if(t<16-a)return s&i;s|=e[n+2]<<16-a;if(t<24-a)return s&i;s|=e[n+3]<<24-a;return s&i}function ue(e,r,t){var a=r&7,n=r>>>3;if(a<=5)e[n]|=(t&7)<>8-a}return r+3}function he(e,r,t){var a=r&7,n=r>>>3;t=(t&1)<>>3;t<<=a;e[n]|=t&255;t>>>=8;e[n+1]=t;return r+8}function de(e,r,t){var a=r&7,n=r>>>3;t<<=a;e[n]|=t&255;t>>>=8;e[n+1]=t&255;e[n+2]=t>>>8;return r+16}function me(e,r){var t=e.length,a=2*t>r?2*t:r+5,n=0;if(t>=r)return e;if(w){var i=C(a);if(e.copy)e.copy(i);else for(;n>a-u;for(s=(1<=0;--s)r[l|s<0)r[r.l++]=e[t++]}return r.l}function i(r,t){var n=0;var i=0;var s=re?new Uint16Array(32768):[];while(i0)t[t.l++]=r[i++];n=t.l*8;continue}n=ue(t,n,+!!(i+l==r.length)+2);var o=0;while(l-- >0){var c=r[i];o=(o<<5^c)&32767;var f=-1,u=0;if(f=s[o]){f|=i&~32767;if(f>i)f-=32768;if(f2){c=a[u];if(c<=22)n=pe(t,n,te[c+1]>>1)-1;else{pe(t,n,3);n+=5;pe(t,n,te[c-23]>>5);n+=3}var h=c<8?0:c-4>>2;if(h>0){de(t,n,u-Z[c]);n+=h}c=e[i-f];n=pe(t,n,te[c]>>3);n-=3;var p=c<4?0:c-2>>1;if(p>0){de(t,n,i-f-Q[c]);n+=p}for(var d=0;d>8-d;for(var m=(1<<7-d)-1;m>=0;--m)_e[p|m<>>=3){case 16:i=3+ie(e,r);r+=2;p=v[v.length-1];while(i-- >0)v.push(p);break;case 17:i=3+se(e,r);r+=3;while(i-- >0)v.push(0);break;case 18:i=11+ce(e,r);r+=7;while(i-- >0)v.push(0);break;default:v.push(p);if(o>>0;var l=0,o=0;while((a&1)==0){a=se(e,t);t+=3;if(a>>>1==0){if(t&7)t+=8-(t&7);var c=e[t>>>3]|e[(t>>>3)+1]<<8;t+=32;if(c>0){if(!r&&s0){n[i++]=e[t>>>3];t+=8}}continue}else if(a>>1==1){l=9;o=5}else{t=Ee(e,t);l=Ae;o=Fe}for(;;){if(!r&&s>>1==1?be[f]:Se[f];t+=u&15;u>>>=4;if((u>>>8&255)===0)n[i++]=u;else if(u==256)break;else{u-=257;var h=u<8?0:u-4>>2;if(h>5)h=0;var p=i+Z[u];if(h>0){p+=fe(e,t,h);t+=h}f=fe(e,t,o);u=a>>>1==1?we[f]:Ce[f];t+=u&15;u>>>=4;var d=u<4?0:u-2>>1;var m=Q[u];if(d>0){m+=fe(e,t,d);t+=d}if(!r&&s>>3];return[n.slice(0,i),t+7>>>3]}function Oe(e,r){var t=e.slice(e.l||0);var a=Te(t,r);e.l+=a[1];return a[0]}function De(e,r){if(e){if(typeof console!=="undefined")console.error(r)}else throw new Error(r)}function Me(e,r){var t=e;Zr(t,0);var a=[],n=[];var i={FileIndex:a,FullPaths:n};E(i,{root:r.root});var l=t.length-4;while((t[l]!=80||t[l+1]!=75||t[l+2]!=5||t[l+3]!=6)&&l>=0)--l;t.l=l+4;t.l+=4;var o=t._R(2);t.l+=6;var c=t._R(4);t.l=c;for(l=0;l0){t=t.slice(0,t.length-1);t=t.slice(0,t.lastIndexOf("/")+1);if(i.slice(0,t.length)==t)break}}var s=(a[1]||"").match(/boundary="(.*?)"/);if(!s)throw new Error("MAD cannot find boundary");var l="--"+(s[1]||"");var o=[],c=[];var f={FileIndex:o,FullPaths:c};E(f);var u,h=0;for(n=0;n=32&&p<128)++u;var m=u>=h*4/5;n.push(a);n.push("Content-Location: "+(t.root||"file:///C:/SheetJS/")+s);n.push("Content-Transfer-Encoding: "+(m?"quoted-printable":"base64"));n.push("Content-Type: "+Ie(l,s));n.push("");n.push(m?Be(f):Le(f))}n.push(a+"--\r\n");return n.join("\r\n")}function je(e){var r={};E(r,e);return r}function He(e,r,t,n){var i=n&&n.unsafe;if(!i)E(e);var s=!i&&H.find(e,r);if(!s){var l=e.FullPaths[0];if(r.slice(0,l.length)==l)l=r;else{if(l.slice(-1)!="/")l+="/";l=(l+r).replace("//","/")}s={name:a(r),type:2};e.FileIndex.push(s);e.FullPaths.push(l);if(!i)H.utils.cfb_gc(e)}s.content=t;s.size=t?t.length:0;if(n){if(n.CLSID)s.clsid=n.CLSID;if(n.mt)s.mt=n.mt;if(n.ct)s.ct=n.ct}return s}function Ve(e,r){E(e);var t=H.find(e,r);if(t)for(var a=0;a3)a=true;switch(n[i].slice(n[i].length-1)){case"Y":throw new Error("Unsupported ISO Duration Field: "+n[i].slice(n[i].length-1));case"D":t*=24;case"H":t*=60;case"M":if(!a)throw new Error("Unsupported ISO Duration Field: M");else t*=60;case"S":break;}r+=t*parseInt(n[i],10)}return r}var le=new Date("2017-02-19T19:06:09.000Z");if(isNaN(le.getFullYear()))le=new Date("2/19/17");var oe=le.getFullYear()==2017;function ce(e,r){var t=new Date(e);if(oe){if(r>0)t.setTime(t.getTime()+t.getTimezoneOffset()*60*1e3);else if(r<0)t.setTime(t.getTime()-t.getTimezoneOffset()*60*1e3);return t}if(e instanceof Date)return e;if(le.getFullYear()==1917&&!isNaN(t.getFullYear())){var a=t.getFullYear();if(e.indexOf(""+a)>-1)return t;t.setFullYear(t.getFullYear()+100);return t}var n=e.match(/\d+/g)||["2017","2","19","0","0","0"];var i=new Date(+n[0],+n[1]-1,+n[2],+n[3]||0,+n[4]||0,+n[5]||0);if(e.indexOf("Z")>-1)i=new Date(i.getTime()-i.getTimezoneOffset()*60*1e3); +return i}function fe(e,r){if(w&&Buffer.isBuffer(e)){if(r){if(e[0]==255&&e[1]==254)return e.slice(2).toString("utf16le");if(e[1]==254&&e[2]==255)return h(e.slice(2).toString("binary"))}return e.toString("binary")}var t=[];for(var a=0;a!=e.length;++a)t.push(String.fromCharCode(e[a]));return t.join("")}function ue(e){if(typeof JSON!="undefined"&&!Array.isArray(e))return JSON.parse(JSON.stringify(e));if(typeof e!="object"||e==null)return e;if(e instanceof Date)return new Date(e.getTime());var r={};for(var t in e)if(Object.prototype.hasOwnProperty.call(e,t))r[t]=ue(e[t]);return r}function he(e,r){var t="";while(t.length3&&de.indexOf(s)==-1)return t}else if(s.match(/[a-z]/))return t;if(a<0||a>8099)return t;if((n>0||i>1)&&a!=101)return r;if(e.match(/[^-0-9:,\/\\]/))return t;return r}var ve="abacaba".split(/(:?b)/i).length==5;function ge(e,r,t){if(ve||typeof r=="string")return e.split(r);var a=e.split(r),n=[a[0]];for(var i=1;i\/]+)\s*=\s*((?:")([^"]*)(?:")|(?:')([^']*)(?:')|([^'">\s]+))/g;var Ne=/<[\/\?]?[a-zA-Z0-9:_-]+(?:\s+[^"\s?>\/]+\s*=\s*(?:"[^"]*"|'[^']*'|[^'">\s=]+))*\s*[\/\?]?>/gm;if(!De.match(Ne))Ne=/<[^>]*>/g;var Pe=/<\w*:/,Re=/<(\/?)\w+:/;function Ie(e,r,t){var a={};var n=0,i=0;for(;n!==e.length;++n)if((i=e.charCodeAt(n))===32||i===10||i===13)break;if(!r)a[0]=e.slice(0,n);if(n===e.length)return a;var s=e.match(Me),l=0,o="",c=0,f="",u="",h=1;if(s)for(c=0;c!=s.length;++c){u=s[c];for(i=0;i!=u.length;++i)if(u.charCodeAt(i)===61)break;f=u.slice(0,i).trim();while(u.charCodeAt(i+1)==32)++i;h=(n=u.charCodeAt(i+1))==34||n==39?1:0;o=u.slice(i+1+h,u.length-h);for(l=0;l!=f.length;++l)if(f.charCodeAt(l)===58)break;if(l===f.length){if(f.indexOf("_")>0)f=f.slice(0,f.indexOf("_"));a[f]=o;if(!t)a[f.toLowerCase()]=o}else{var p=(l===5&&f.slice(0,5)==="xmlns"?"xmlns":"")+f.slice(l+1);if(a[p]&&f.slice(l-3,l)=="ext")continue;a[p]=o;if(!t)a[p.toLowerCase()]=o}}return a}function Le(e){return e.replace(Re,"<$1")}var Be={""":'"',"'":"'",">":">","<":"<","&":"&"};var ze=q(Be);var Ue=function(){var e=/&(?:quot|apos|gt|lt|amp|#x?([\da-fA-F]+));/gi,r=/_x([\da-fA-F]{4})_/gi;return function t(a){var n=a+"",i=n.indexOf("-1?16:10))||e}).replace(r,function(e,r){return String.fromCharCode(parseInt(r,16))});var s=n.indexOf("]]>");return t(n.slice(0,i))+n.slice(i+9,s)+t(n.slice(s+3))}}();var $e=/[&<>'"]/g,We=/[\u0000-\u0008\u000b-\u001f]/g;function je(e){var r=e+"";return r.replace($e,function(e){return ze[e]}).replace(We,function(e){return"_x"+("000"+e.charCodeAt(0).toString(16)).slice(-4)+"_"})}function He(e){return je(e).replace(/ /g,"_x0020_")}var Ve=/[\u0000-\u001f]/g;function Xe(e){var r=e+"";return r.replace($e,function(e){return ze[e]}).replace(/\n/g,"
").replace(Ve,function(e){return"&#x"+("000"+e.charCodeAt(0).toString(16)).slice(-4)+";"})}function Ge(e){var r=e+"";return r.replace($e,function(e){return ze[e]}).replace(Ve,function(e){return"&#x"+e.charCodeAt(0).toString(16).toUpperCase()+";"})}var Ye=function(){var e=/&#(\d+);/g;function r(e,r){return String.fromCharCode(parseInt(r,10))}return function t(a){return a.replace(e,r)}}();var Je=function(){return function e(r){return r.replace(/(\r\n|[\r\n])/g," ")}}();function Ke(e){switch(e){case 1:;case true:;case"1":;case"true":;case"TRUE":return true;default:return false;}}var qe=function uo(e){var r="",t=0,a=0,n=0,i=0,s=0,l=0;while(t191&&a<224){s=(a&31)<<6;s|=n&63;r+=String.fromCharCode(s);continue}i=e.charCodeAt(t++);if(a<240){r+=String.fromCharCode((a&15)<<12|(n&63)<<6|i&63);continue}s=e.charCodeAt(t++);l=((a&7)<<18|(n&63)<<12|(i&63)<<6|s&63)-65536;r+=String.fromCharCode(55296+(l>>>10&1023));r+=String.fromCharCode(56320+(l&1023))}return r};var Ze=function(e){var r=[],t=0,a=0,n=0;while(t>6)));r.push(String.fromCharCode(128+(a&63)));break;case a>=55296&&a<57344:a-=55296;n=e.charCodeAt(t++)-56320+(a<<10);r.push(String.fromCharCode(240+(n>>18&7)));r.push(String.fromCharCode(144+(n>>12&63)));r.push(String.fromCharCode(128+(n>>6&63)));r.push(String.fromCharCode(128+(n&63)));break;default:r.push(String.fromCharCode(224+(a>>12)));r.push(String.fromCharCode(128+(a>>6&63)));r.push(String.fromCharCode(128+(a&63)));}}return r.join("")};if(w){var Qe=function ho(e){var r=Buffer.alloc(2*e.length),t,a,n=1,i=0,s=0,l;for(a=0;a>>10&1023);t=56320+(t&1023)}if(s!==0){r[i++]=s&255;r[i++]=s>>>8;s=0}r[i++]=t%256;r[i++]=t>>>8}return r.slice(0,i).toString("ucs2")};var er="foo bar baz☃🍣";if(qe(er)==Qe(er))qe=Qe;var rr=function po(e){return y(e,"binary").toString("utf8")};if(qe(er)==rr(er))qe=rr;Ze=function(e){return y(e,"utf8").toString("binary")}}var tr=function(){var e={};return function r(t,a){var n=t+"|"+(a||"");if(e[n])return e[n];return e[n]=new RegExp("<(?:\\w+:)?"+t+'(?: xml:space="preserve")?(?:[^>]*)>([\\s\\S]*?)",a||"")}}();var ar=function(){var e=[["nbsp"," "],["middot","·"],["quot",'"'],["apos","'"],["gt",">"],["lt","<"],["amp","&"]].map(function(e){return[new RegExp("&"+e[0]+";","ig"),e[1]]});return function r(t){var a=t.replace(/^[\t\n\r ]+/,"").replace(/[\t\n\r ]+$/,"").replace(/>\s+/g,">").replace(/\s+/g,"\n").replace(/<[^>]*>/g,"");for(var n=0;n([\\s\\S]*?)","g")}}();var ir=/<\/?(?:vt:)?variant>/g,sr=/<(?:vt:)([^>]*)>([\s\S]*)"+r+""}function fr(e){return J(e).map(function(r){return" "+r+'="'+e[r]+'"'}).join("")}function ur(e,r,t){return"<"+e+(t!=null?fr(t):"")+(r!=null?(r.match(or)?' xml:space="preserve"':"")+">"+r+""}function hr(e,r){try{return e.toISOString().replace(/\.\d*/,"")}catch(t){if(r)throw t}return""}function pr(e,r){switch(typeof e){case"string":var t=ur("vt:lpwstr",je(e));if(r)t=t.replace(/"/g,"_x0022_");return t;case"number":return ur((e|0)==e?"vt:i4":"vt:r8",je(String(e)));case"boolean":return ur("vt:bool",e?"true":"false");}if(e instanceof Date)return ur("vt:filetime",hr(e));throw new Error("Unable to serialize "+e)}var dr={dc:"http://purl.org/dc/elements/1.1/",dcterms:"http://purl.org/dc/terms/",dcmitype:"http://purl.org/dc/dcmitype/",mx:"http://schemas.microsoft.com/office/mac/excel/2008/main",r:"http://schemas.openxmlformats.org/officeDocument/2006/relationships",sjs:"http://schemas.openxmlformats.org/package/2006/sheetjs/core-properties",vt:"http://schemas.openxmlformats.org/officeDocument/2006/docPropsVTypes",xsi:"http://www.w3.org/2001/XMLSchema-instance",xsd:"http://www.w3.org/2001/XMLSchema"};dr.main=["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"];var mr={o:"urn:schemas-microsoft-com:office:office",x:"urn:schemas-microsoft-com:office:excel",ss:"urn:schemas-microsoft-com:office:spreadsheet",dt:"uuid:C2F41010-65B3-11d1-A29F-00AA00C14882",mv:"http://macVmlSchemaUri",v:"urn:schemas-microsoft-com:vml",html:"http://www.w3.org/TR/REC-html40"};function vr(e,r){var t=1-2*(e[r+7]>>>7);var a=((e[r+7]&127)<<4)+(e[r+6]>>>4&15);var n=e[r+6]&15;for(var i=5;i>=0;--i)n=n*256+e[r+i];if(a==2047)return n==0?t*Infinity:NaN;if(a==0)a=-1022;else{a-=1023;n+=Math.pow(2,52)}return t*Math.pow(2,a-52)*n}function gr(e,r,t){var a=(r<0||1/r==-Infinity?1:0)<<7,n=0,i=0;var s=a?-r:r;if(!isFinite(s)){n=2047;i=isNaN(r)?26985:0}else if(s==0)n=i=0;else{n=Math.floor(Math.log(s)/Math.LN2);i=s*Math.pow(2,52-n);if(n<=-1023&&(!isFinite(i)||i>4|a}var br=function(e){var r=[],t=10240;for(var a=0;a0?Cr(e,r+4,r+4+t-1):""};var Fr=Ar;var Er=function(e,r){var t=jr(e,r);return t>0?Cr(e,r+4,r+4+t-1):""};var Tr=Er;var Or=function(e,r){var t=2*jr(e,r);return t>0?Cr(e,r+4,r+4+t-1):""};var Dr=Or;var Mr,Nr;Mr=Nr=function mo(e,r){var t=jr(e,r);return t>0?yr(e,r+4,r+4+t):""};var Pr=function(e,r){var t=jr(e,r);return t>0?Cr(e,r+4,r+4+t):""};var Rr=Pr;var Ir,Lr;Ir=Lr=function(e,r){return vr(e,r)};var Br=function vo(e){return Array.isArray(e)||typeof Uint8Array!=="undefined"&&e instanceof Uint8Array};if(w){yr=function(e,r,t){if(!Buffer.isBuffer(e))return kr(e,r,t);return e.toString("utf16le",r,t).replace(M,"")};xr=function(e,r,t){return Buffer.isBuffer(e)?e.toString("hex",r,r+t):Sr(e,r,t)};Ar=function go(e,r){if(!Buffer.isBuffer(e))return Fr(e,r);var t=e.readUInt32LE(r);return t>0?e.toString("utf8",r+4,r+4+t-1):""};Er=function bo(e,r){if(!Buffer.isBuffer(e))return Tr(e,r);var t=e.readUInt32LE(r);return t>0?e.toString("utf8",r+4,r+4+t-1):""};Or=function wo(e,r){if(!Buffer.isBuffer(e))return Dr(e,r);var t=2*e.readUInt32LE(r);return e.toString("utf16le",r+4,r+4+t-1)};Mr=function yo(e,r){if(!Buffer.isBuffer(e))return Nr(e,r);var t=e.readUInt32LE(r);return e.toString("utf16le",r+4,r+4+t)};Pr=function ko(e,r){if(!Buffer.isBuffer(e))return Rr(e,r);var t=e.readUInt32LE(r);return e.toString("utf8",r+4,r+4+t)};Cr=function xo(e,r,t){return Buffer.isBuffer(e)?e.toString("utf8",r,t):_r(e,r,t)};br=function(e){return e[0].length>0&&Buffer.isBuffer(e[0][0])?Buffer.concat(e[0].map(function(e){return Buffer.isBuffer(e)?e:y(e)})):wr(e)};D=function(e){return Buffer.concat(e.map(function(e){return Buffer.isBuffer(e)?e:y(e)}))};Ir=function So(e,r){if(Buffer.isBuffer(e))return e.readDoubleLE(r);return Lr(e,r)};Br=function Co(e){return Buffer.isBuffer(e)||Array.isArray(e)||typeof Uint8Array!=="undefined"&&e instanceof Uint8Array}}function zr(){yr=function(e,r,t){return cptable.utils.decode(1200,e.slice(r,t)).replace(M,"")};Cr=function(e,r,t){return cptable.utils.decode(65001,e.slice(r,t))};Ar=function(e,r){var a=jr(e,r);return a>0?cptable.utils.decode(t,e.slice(r+4,r+4+a-1)):""};Er=function(e,t){var a=jr(e,t);return a>0?cptable.utils.decode(r,e.slice(t+4,t+4+a-1)):""};Or=function(e,r){var t=2*jr(e,r);return t>0?cptable.utils.decode(1200,e.slice(r+4,r+4+t-1)):""};Mr=function(e,r){var t=jr(e,r);return t>0?cptable.utils.decode(1200,e.slice(r+4,r+4+t)):""};Pr=function(e,r){var t=jr(e,r);return t>0?cptable.utils.decode(65001,e.slice(r+4,r+4+t)):""}}if(typeof cptable!=="undefined")zr();var Ur=function(e,r){return e[r]};var $r=function(e,r){return e[r+1]*(1<<8)+e[r]};var Wr=function(e,r){var t=e[r+1]*(1<<8)+e[r];return t<32768?t:(65535-t+1)*-1};var jr=function(e,r){return e[r+3]*(1<<24)+(e[r+2]<<16)+(e[r+1]<<8)+e[r]};var Hr=function(e,r){return e[r+3]<<24|e[r+2]<<16|e[r+1]<<8|e[r]};var Vr=function(e,r){return e[r]<<24|e[r+1]<<16|e[r+2]<<8|e[r+3]};function Xr(e,t){var a="",n,i,s=[],l,o,c,f;switch(t){case"dbcs":f=this.l;if(w&&Buffer.isBuffer(this))a=this.slice(this.l,this.l+2*e).toString("utf16le");else for(c=0;c0?Hr:Vr)(this,this.l);this.l+=4;return n}else{i=jr(this,this.l);this.l+=4}return i;case 8:;case-8:if(t==="f"){if(e==8)i=Ir(this,this.l);else i=Ir([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;return i}else e=8;case 16:a=xr(this,this.l,e);break;};}this.l+=e;return a}var Gr=function(e,r,t){e[t]=r&255;e[t+1]=r>>>8&255;e[t+2]=r>>>16&255;e[t+3]=r>>>24&255};var Yr=function(e,r,t){e[t]=r&255;e[t+1]=r>>8&255;e[t+2]=r>>16&255;e[t+3]=r>>24&255};var Jr=function(e,r,t){e[t]=r&255;e[t+1]=r>>>8&255};function Kr(e,r,a){var n=0,i=0;if(a==="dbcs"){for(i=0;i!=r.length;++i)Jr(this,r.charCodeAt(i),this.l+2*i);n=2*r.length}else if(a==="sbcs"){if(typeof cptable!=="undefined"&&t==874){for(i=0;i!=r.length;++i){var s=cptable.utils.encode(t,r.charAt(i));this[this.l+i]=s[0]}}else{r=r.replace(/[^\x00-\x7F]/g,"_");for(i=0;i!=r.length;++i)this[this.l+i]=r.charCodeAt(i)&255}n=r.length}else if(a==="hex"){for(;i>8}while(this.l>>=8;this[this.l+1]=r&255;break;case 3:n=3;this[this.l]=r&255;r>>>=8;this[this.l+1]=r&255;r>>>=8;this[this.l+2]=r&255;break;case 4:n=4;Gr(this,r,this.l);break;case 8:n=8;if(a==="f"){gr(this,r,this.l);break};case 16:break;case-4:n=4;Yr(this,r,this.l);break;}this.l+=n;return this}function qr(e,r){var t=xr(this,this.l,e.length>>1);if(t!==e)throw new Error(r+"Expected "+e+" saw "+t);this.l+=e.length>>1}function Zr(e,r){e.l=r;e._R=Xr;e.chk=qr;e._W=Kr}function Qr(e,r){e.l+=r}function et(e){var r=S(e);Zr(r,0);return r}function rt(e,r,t){if(!e)return;var a,n,i;Zr(e,e.l||0);var s=e.length,l=0,o=0;while(e.la.l){a=a.slice(0,a.l);a.l=a.length}if(a.length>0)e.push(a);a=null};var i=function f(e){if(a&&e=128?1:0)+1;if(a>=128)++i;if(a>=16384)++i;if(a>=2097152)++i;var s=e.next(i);if(n<=127)s._W(1,n);else{s._W(1,(n&127)+128);s._W(1,n>>7)}for(var l=0;l!=4;++l){if(a>=128){s._W(1,(a&127)+128);a>>=7}else{s._W(1,a);break}}if(a>0&&Br(t))e.push(t)}function nt(e,r,t){var a=ue(e);if(r.s){if(a.cRel)a.c+=r.s.c;if(a.rRel)a.r+=r.s.r}else{if(a.cRel)a.c+=r.c;if(a.rRel)a.r+=r.r}if(!t||t.biff<12){while(a.c>=256)a.c-=256;while(a.r>=65536)a.r-=65536}return a}function it(e,r,t){var a=ue(e);a.s=nt(a.s,r.s,t);a.e=nt(a.e,r.s,t);return a}function st(e,r){if(e.cRel&&e.c<0){e=ue(e);while(e.c<0)e.c+=r>8?16384:256}if(e.rRel&&e.r<0){e=ue(e);while(e.r<0)e.r+=r>8?1048576:r>5?65536:16384}var t=bt(e);if(!e.cRel&&e.cRel!=null)t=dt(t);if(!e.rRel&&e.rRel!=null)t=ft(t);return t}function lt(e,r){if(e.s.r==0&&!e.s.rRel){if(e.e.r==(r.biff>=12?1048575:r.biff>=8?65536:16384)&&!e.e.rRel){return(e.s.cRel?"":"$")+pt(e.s.c)+":"+(e.e.cRel?"":"$")+pt(e.e.c)}}if(e.s.c==0&&!e.s.cRel){if(e.e.c==(r.biff>=12?16383:255)&&!e.e.cRel){return(e.s.rRel?"":"$")+ct(e.s.r)+":"+(e.e.rRel?"":"$")+ct(e.e.r)}}return st(e.s,r.biff)+":"+st(e.e,r.biff)}function ot(e){return parseInt(ut(e),10)-1}function ct(e){return""+(e+1)}function ft(e){return e.replace(/([A-Z]|^)(\d+)$/,"$1$$$2")}function ut(e){return e.replace(/\$(\d+)$/,"$1")}function ht(e){var r=mt(e),t=0,a=0;for(;a!==r.length;++a)t=26*t+r.charCodeAt(a)-64;return t-1}function pt(e){if(e<0)throw new Error("invalid column "+e);var r="";for(++e;e;e=Math.floor((e-1)/26))r=String.fromCharCode((e-1)%26+65)+r;return r}function dt(e){return e.replace(/^([A-Z])/,"$$$1")}function mt(e){return e.replace(/^\$([A-Z])/,"$1")}function vt(e){return e.replace(/(\$?[A-Z]*)(\$?\d*)/,"$1,$2").split(",")}function gt(e){var r=0,t=0;for(var a=0;a=48&&n<=57)r=10*r+(n-48);else if(n>=65&&n<=90)t=26*t+(n-64)}return{c:t-1,r:r-1}}function bt(e){var r=e.c+1;var t="";for(;r;r=(r-1)/26|0)t=String.fromCharCode((r-1)%26+65)+t;return t+(e.r+1)}function wt(e){var r=e.indexOf(":");if(r==-1)return{s:gt(e),e:gt(e)};return{s:gt(e.slice(0,r)),e:gt(e.slice(r+1))}}function yt(e,r){if(typeof r==="undefined"||typeof r==="number"){return yt(e.s,e.e)}if(typeof e!=="string")e=bt(e);if(typeof r!=="string")r=bt(r);return e==r?e:e+":"+r}function kt(e){var r={s:{c:0,r:0},e:{c:0,r:0}};var t=0,a=0,n=0;var i=e.length;for(t=0;a26)break;t=26*t+n}r.s.c=--t;for(t=0;a9)break;t=10*t+n}r.s.r=--t;if(a===i||n!=10){r.e.c=r.s.c;r.e.r=r.s.r;return r}++a;for(t=0;a!=i;++a){if((n=e.charCodeAt(a)-64)<1||n>26)break;t=26*t+n}r.e.c=--t;for(t=0;a!=i;++a){if((n=e.charCodeAt(a)-48)<0||n>9)break;t=10*t+n}r.e.r=--t;return r}function xt(e,r){var t=e.t=="d"&&r instanceof Date;if(e.z!=null)try{return e.w=P.format(e.z,t?re(r):r)}catch(a){}try{return e.w=P.format((e.XF||{}).numFmtId||(t?14:0),t?re(r):r)}catch(a){return""+r}}function St(e,r,t){if(e==null||e.t==null||e.t=="z")return"";if(e.w!==undefined)return e.w;if(e.t=="d"&&!e.z&&t&&t.dateNF)e.z=t.dateNF;if(e.t=="e")return Jt[e.v]||e.v;if(r==undefined)return xt(e,e.v);return xt(e,r)}function Ct(e,r){var t=r&&r.sheet?r.sheet:"Sheet1";var a={};a[t]=e;return{SheetNames:[t],Sheets:a}}function _t(e,r,t){var a=t||{};var n=e?Array.isArray(e):a.dense;if(v!=null&&n==null)n=v;var i=e||(n?[]:{});var s=0,l=0;if(i&&a.origin!=null){if(typeof a.origin=="number")s=a.origin;else{var o=typeof a.origin=="string"?gt(a.origin):a.origin;s=o.r;l=o.c}if(!i["!ref"])i["!ref"]="A1:A1"}var c={s:{c:1e7,r:1e7},e:{c:0,r:0}};if(i["!ref"]){var f=kt(i["!ref"]);c.s.c=f.s.c;c.s.r=f.s.r;c.e.c=Math.max(c.e.c,f.e.c);c.e.r=Math.max(c.e.r,f.e.r);if(s==-1)c.e.r=s=f.e.r+1}for(var u=0;u!=r.length;++u){if(!r[u])continue;if(!Array.isArray(r[u]))throw new Error("aoa_to_sheet expects an array of arrays");for(var h=0;h!=r[u].length;++h){if(typeof r[u][h]==="undefined")continue;var p={v:r[u][h]};var d=s+u,m=l+h;if(c.s.r>d)c.s.r=d;if(c.s.c>m)c.s.c=m;if(c.e.r>16&255,e>>8&255,e&255]})}var Gt=Xt([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]);var Yt=ue(Gt);var Jt={0:"#NULL!",7:"#DIV/0!",15:"#VALUE!",23:"#REF!",29:"#NAME?",36:"#NUM!",42:"#N/A",43:"#GETTING_DATA",255:"#WTF?"};var Kt=Z(Jt);var qt={"application/vnd.openxmlformats-officedocument.spreadsheetml.sheet.main+xml":"workbooks","application/vnd.ms-excel.binIndexWs":"TODO","application/vnd.ms-excel.intlmacrosheet":"TODO","application/vnd.ms-excel.binIndexMs":"TODO","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.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.sheetMetadata":"TODO","application/vnd.openxmlformats-officedocument.spreadsheetml.sheetMetadata+xml":"TODO","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"};var Zt=function(){var e={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"},styles:{xlsx:"application/vnd.openxmlformats-officedocument.spreadsheetml.styles+xml",xlsb:"application/vnd.ms-excel.styles"}};J(e).forEach(function(r){["xlsm","xlam"].forEach(function(t){if(!e[r][t])e[r][t]=e[r].xlsx})});J(e).forEach(function(r){J(e[r]).forEach(function(t){qt[e[r][t]]=r})});return e}();var Qt=Q(qt);dr.CT="http://schemas.openxmlformats.org/package/2006/content-types";function ea(){return{workbooks:[],sheets:[],charts:[],dialogs:[],macros:[],rels:[],strs:[],comments:[],links:[],coreprops:[],extprops:[],custprops:[],themes:[],styles:[],calcchains:[],vba:[],drawings:[],TODO:[],xmlns:""}}function ra(e){var r=ea();if(!e||!e.match)return r;var t={};(e.match(Ne)||[]).forEach(function(e){var a=Ie(e);switch(a[0].replace(Pe,"<")){case"0?r.calcchains[0]:"";r.sst=r.strs.length>0?r.strs[0]:"";r.style=r.styles.length>0?r.styles[0]:"";r.defaults=t;delete r.calcchains;return r}var ta=ur("Types",null,{xmlns:dr.CT,"xmlns:xsd":dr.xsd,"xmlns:xsi":dr.xsi});var aa=[["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",Qt.rels[0]]].map(function(e){return ur("Default",null,{Extension:e[0],ContentType:e[1]})});function na(e,r){var t=[],a;t[t.length]=De;t[t.length]=ta;t=t.concat(aa);var n=function(n){if(e[n]&&e[n].length>0){a=e[n][0];t[t.length]=ur("Override",null,{PartName:(a[0]=="/"?"":"/")+a,ContentType:Zt[n][r.bookType||"xlsx"]})}};var i=function(a){(e[a]||[]).forEach(function(e){t[t.length]=ur("Override",null,{PartName:(e[0]=="/"?"":"/")+e,ContentType:Zt[a][r.bookType||"xlsx"]})})};var s=function(r){(e[r]||[]).forEach(function(e){t[t.length]=ur("Override",null,{PartName:(e[0]=="/"?"":"/")+e,ContentType:Qt[r][0]})})};n("workbooks");i("sheets");i("charts");s("themes");["strs","styles"].forEach(n);["coreprops","extprops","custprops"].forEach(s);s("vba");s("comments");s("drawings");if(t.length>2){t[t.length]="";t[1]=t[1].replace("/>",">")}return t.join("")}var ia={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",VBA:"http://schemas.microsoft.com/office/2006/relationships/vbaProject"};function sa(e){var r=e.lastIndexOf("/");return e.slice(0,r+1)+"_rels/"+e.slice(r+1)+".rels"}function la(e,r){var t={"!id":{}};if(!e)return t;if(r.charAt(0)!=="/"){r="/"+r}var a={};(e.match(Ne)||[]).forEach(function(e){var n=Ie(e);if(n[0]==="2){r[r.length]="";r[1]=r[1].replace("/>",">")}return r.join("")}var fa=[ia.HLINK,ia.XPATH,ia.XMISS];function ua(e,r,t,a,n,i){if(!n)n={};if(!e["!id"])e["!id"]={};if(r<0)for(r=1;e["!id"]["rId"+r];++r){}n.Id="rId"+r;n.Type=a;n.Target=t;if(i)n.TargetMode=i;else if(fa.indexOf(n.Type)>-1)n.TargetMode="External";if(e["!id"][n.Id])throw new Error("Cannot rewrite rId "+r);e["!id"][n.Id]=n;e[("/"+n.Target).replace("//","/")]=n;return r}var ha="application/vnd.oasis.opendocument.spreadsheet";function pa(e,r){var t=xlml_normalize(e);var a;var n;while(a=xlmlregex.exec(t))switch(a[3]){case"manifest":break;case"file-entry":n=Ie(a[0],false);if(n.path=="/"&&n.type!==ha)throw new Error("This OpenDocument is not a spreadsheet");break;case"encryption-data":;case"algorithm":;case"start-key-generation":;case"key-derivation":throw new Error("Unsupported ODS Encryption");default:if(r&&r.WTF)throw a;}}function da(e){var r=[De];r.push('\n');r.push(' \n');for(var t=0;t\n');r.push("");return r.join("")}function ma(e,r,t){return[' \n',' \n'," \n"].join("")}function va(e,r){return[' \n',' \n'," \n"].join("")}function ga(e){var r=[De];r.push('\n');for(var t=0;t!=e.length;++t){r.push(ma(e[t][0],e[t][1]));r.push(va("",e[t][0]))}r.push(ma("","Document","pkg"));r.push("");return r.join("")}var ba=function(){var r='Sheet'+"JS "+e.version+"";return function t(){return r}}();var wa=[["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"]];dr.CORE_PROPS="http://schemas.openxmlformats.org/package/2006/metadata/core-properties";ia.CORE_PROPS="http://schemas.openxmlformats.org/package/2006/relationships/metadata/core-properties";var ya=function(){var e=new Array(wa.length);for(var r=0;r]*>([\\s\\S]*?)")}return e}();function ka(e){var r={};e=qe(e);for(var t=0;t0)r[a[1]]=Ue(n[1]);if(a[2]==="date"&&r[a[1]])r[a[1]]=ce(r[a[1]])}return r}var xa=ur("cp:coreProperties",null,{"xmlns:cp":dr.CORE_PROPS,"xmlns:dc":dr.dc,"xmlns:dcterms":dr.dcterms,"xmlns:dcmitype":dr.dcmitype,"xmlns:xsi":dr.xsi});function Sa(e,r,t,a,n){if(n[e]!=null||r==null||r==="")return;n[e]=r;r=je(r);a[a.length]=t?ur(e,r,t):cr(e,r)}function Ca(e,r){var t=r||{};var a=[De,xa],n={};if(!e&&!t.Props)return a.join("");if(e){if(e.CreatedDate!=null)Sa("dcterms:created",typeof e.CreatedDate==="string"?e.CreatedDate:hr(e.CreatedDate,t.WTF),{"xsi:type":"dcterms:W3CDTF"},a,n);if(e.ModifiedDate!=null)Sa("dcterms:modified",typeof e.ModifiedDate==="string"?e.ModifiedDate:hr(e.ModifiedDate,t.WTF),{"xsi:type":"dcterms:W3CDTF"},a,n)}for(var i=0;i!=wa.length;++i){var s=wa[i];var l=t.Props&&t.Props[s[1]]!=null?t.Props[s[1]]:e?e[s[1]]:null;if(l===true)l="1";else if(l===false)l="0";else if(typeof l=="number")l=String(l);if(l!=null)Sa(s[0],l,null,a,n)}if(a.length>2){a[a.length]="";a[1]=a[1].replace("/>",">")}return a.join("")}var _a=[["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"]];dr.EXT_PROPS="http://schemas.openxmlformats.org/officeDocument/2006/extended-properties";ia.EXT_PROPS="http://schemas.openxmlformats.org/officeDocument/2006/relationships/extended-properties";var Aa=["Worksheets","SheetNames","NamedRanges","DefinedNames","Chartsheets","ChartNames"];function Fa(e,r,t,a){var n=[];if(typeof e=="string")n=lr(e,a);else for(var i=0;i0)for(var c=0;c!==n.length;c+=2){o=+n[c+1].v;switch(n[c].v){case"Worksheets":;case"工作表":;case"Листы":;case"أوراق العمل":;case"ワークシート":;case"גליונות עבודה":;case"Arbeitsblätter":;case"Çalışma Sayfaları":;case"Feuilles de calcul":;case"Fogli di lavoro":;case"Folhas de cálculo":;case"Planilhas":;case"Regneark":;case"Hojas de cálculo":;case"Werkbladen":t.Worksheets=o;t.SheetNames=s.slice(l,l+o);break;case"Named Ranges":;case"Rangos con nombre":;case"名前付き一覧":;case"Benannte Bereiche":;case"Navngivne områder":t.NamedRanges=o;t.DefinedNames=s.slice(l,l+o);break;case"Charts":;case"Diagramme":t.Chartsheets=o;t.ChartNames=s.slice(l,l+o);break;}l+=o}}function Ea(e,r,t){var a={};if(!r)r={};e=qe(e);_a.forEach(function(t){var n=(e.match(tr(t[0]))||[])[1];switch(t[2]){case"string":if(n)r[t[1]]=Ue(n);break;case"bool":r[t[1]]=n==="true";break;case"raw":var i=e.match(new RegExp("<"+t[0]+"[^>]*>([\\s\\S]*?)"));if(i&&i.length>0)a[t[1]]=i[1];break;}});if(a.HeadingPairs&&a.TitlesOfParts)Fa(a.HeadingPairs,a.TitlesOfParts,r,t);return r}var Ta=ur("Properties",null,{xmlns:dr.EXT_PROPS,"xmlns:vt":dr.vt});function Oa(e){var r=[],t=ur;if(!e)e={};e.Application="SheetJS";r[r.length]=De;r[r.length]=Ta;_a.forEach(function(a){if(e[a[1]]===undefined)return;var n;switch(a[2]){case"string":n=je(String(e[a[1]]));break;case"bool":n=e[a[1]]?"true":"false";break;}if(n!==undefined)r[r.length]=t(a[0],n)});r[r.length]=t("HeadingPairs",t("vt:vector",t("vt:variant","Worksheets")+t("vt:variant",t("vt:i4",String(e.Worksheets))),{size:2,baseType:"variant"}));r[r.length]=t("TitlesOfParts",t("vt:vector",e.SheetNames.map(function(e){return""+je(e)+""}).join(""),{size:e.Worksheets,baseType:"lpstr"}));if(r.length>2){r[r.length]="";r[1]=r[1].replace("/>",">")}return r.join("")}dr.CUST_PROPS="http://schemas.openxmlformats.org/officeDocument/2006/custom-properties";ia.CUST_PROPS="http://schemas.openxmlformats.org/officeDocument/2006/relationships/custom-properties";var Da=/<[^>]+>[^<]*/g;function Ma(e,r){var t={},a="";var n=e.match(Da);if(n)for(var i=0;i!=n.length;++i){var s=n[i],l=Ie(s);switch(l[0]){case"":a=null;break;default:if(s.indexOf("");var c=o[0].slice(4),f=o[1];switch(c){case"lpstr":;case"bstr":;case"lpwstr":t[a]=Ue(f);break;case"bool":t[a]=Ke(f);break;case"i1":;case"i2":;case"i4":;case"i8":;case"int":;case"uint":t[a]=parseInt(f,10);break;case"r4":;case"r8":;case"decimal":t[a]=parseFloat(f);break;case"filetime":;case"date":t[a]=ce(f);break;case"cy":;case"error":t[a]=Ue(f);break;default:if(c.slice(-1)=="/")break;if(r.WTF&&typeof console!=="undefined")console.warn("Unexpected",s,c,o);}}else if(s.slice(0,2)==="2){r[r.length]="";r[1]=r[1].replace("/>",">")}return r.join("")}var Ra=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};var r=q({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});var a=[2,3,48,49,131,139,140,245];function n(r,t){var a=[];var n=S(1);switch(t.type){case"base64":n=_(b.decode(r));break;case"binary":n=_(r);break;case"buffer":;case"array":n=r;break;}Zr(n,0);var i=n._R(1);var s=!!(i&136);var l=false,o=false;switch(i){case 2:break;case 3:break;case 48:l=true;s=true;break;case 49:l=true;s=true;break;case 131:break;case 139:break;case 140:o=true;break;case 245:break;default:throw new Error("DBF Unsupported Version: "+i.toString(16));}var c=0,f=521;if(i==2)c=n._R(2);n.l+=3;if(i!=2)c=n._R(4);if(c>1048576)c=1e6;if(i!=2)f=n._R(2);var u=n._R(2);var h=t.codepage||1252;if(i!=2){n.l+=16;n._R(1);if(n[n.l]!==0)h=e[n[n.l]];n.l+=1;n.l+=2}if(o)n.l+=36;var p=[],d={};var m=Math.min(n.length,i==2?521:f-10-(l?264:0));var v=o?32:11;while(n.l0){if(n[n.l]===42){n.l+=u;continue}++n.l;a[++g]=[];w=0;for(w=0;w!=p.length;++w){var y=n.slice(n.l,n.l+p[w].len);n.l+=p[w].len;Zr(y,0);var k=cptable.utils.decode(h,y);switch(p[w].type){case"C":if(k.trim().length)a[g][w]=k.replace(/\s+$/,"");break;case"D":if(k.length===8)a[g][w]=new Date(+k.slice(0,4),+k.slice(4,6)-1,+k.slice(6,8));else a[g][w]=k;break;case"F":a[g][w]=parseFloat(k.trim());break;case"+":;case"I":a[g][w]=o?y._R(-4,"i")^2147483648:y._R(4,"i");break;case"L":switch(k.trim().toUpperCase()){case"Y":;case"T":a[g][w]=true;break;case"N":;case"F":a[g][w]=false;break;case"":;case"?":break;default:throw new Error("DBF Unrecognized L:|"+k+"|");}break;case"M":if(!s)throw new Error("DBF Unexpected MEMO for type "+i.toString(16));a[g][w]="##MEMO##"+(o?parseInt(k.trim(),10):y._R(4));break;case"N":k=k.replace(/\u0000/g,"").trim();if(k&&k!=".")a[g][w]=+k||0;break;case"@":a[g][w]=new Date(y._R(-8,"f")-621356832e5);break;case"T":a[g][w]=new Date((y._R(4)-2440588)*864e5+y._R(4));break;case"Y":a[g][w]=y._R(4,"i")/1e4;break;case"O":a[g][w]=-y._R(-8,"f");break;case"B":if(l&&p[w].len==8){a[g][w]=y._R(8,"f");break};case"G":;case"P":y.l+=p[w].len;break;case"0":if(p[w].name==="_NullFlags")break;default:throw new Error("DBF Unsupported data type "+p[w].type);}}}if(i!=2)if(n.l=0)o(+n.codepage);if(n.type=="string")throw new Error("Cannot write DBF to JS string");var i=tt();var s=ql(e,{header:1,raw:true,cellDates:true});var c=s[0],f=s.slice(1);var u=0,h=0,p=0,d=1;for(u=0;u":190,"?":191,"{":223};var r=new RegExp("N("+J(e).join("|").replace(/\|\|\|/,"|\\||").replace(/([?()+])/g,"\\$1")+"|\\|)","gm");var t=function(r,t){var a=e[t];return typeof a=="number"?m(a):a};var a=function(e,r,t){var a=r.charCodeAt(0)-32<<4|t.charCodeAt(0)-48;return a==59?e:m(a)};e["|"]=254;function n(e,r){switch(r.type){case"base64":return i(b.decode(e),r);case"binary":return i(e,r);case"buffer":return i(w&&Buffer.isBuffer(e)?e.toString("binary"):F(e),r);case"array":return i(fe(e),r);}throw new Error("Unrecognized type "+r.type)}function i(e,n){var i=e.split(/[\n\r]+/),s=-1,l=-1,c=0,f=0,u=[];var h=[];var p=null;var d={},m=[],v=[],g=[];var b=0,w;if(+n.codepage>=0)o(+n.codepage);for(;c!==i.length;++c){b=0;var y=i[c].trim().replace(/\x1B([\x20-\x2F])([\x30-\x3F])/g,a).replace(r,t);var k=y.replace(/;;/g,"\0").split(";").map(function(e){return e.replace(/\u0000/g,";")});var x=k[0],S;if(y.length>0)switch(x){case"ID":break;case"E":break;case"B":break;case"O":break;case"W":break;case"P":if(k[1].charAt(0)=="P")h.push(y.slice(3).replace(/;;/g,";"));break;case"C":var C=false,_=false,A=false,F=false,E=-1,T=-1;for(f=1;f-1&&u[E][T];if(!D||!D[1])throw new Error("SYLK shared formula cannot find base");u[s][l][1]=fi(D[1],{r:s-E,c:l-T})}break;case"F":var M=0;for(f=1;f0){m[s].hpt=b;m[s].hpx=wn(b)}else if(b===0)m[s].hidden=true;break;default:if(n&&n.WTF)throw new Error("SYLK bad record "+y);}if(M<1)p=null;break;default:if(n&&n.WTF)throw new Error("SYLK bad record "+y);}}if(m.length>0)d["!rows"]=m;if(v.length>0)d["!cols"]=v;if(n&&n.sheetRows)u=u.slice(0,n.sheetRows);return[u,d]}function s(e,r){var t=n(e,r);var a=t[0],i=t[1];var s=At(a,r);J(i).forEach(function(e){s[e]=i[e]});return s}function l(e,r){return Ct(s(e,r),r)}function c(e,r,t,a){var n="C;Y"+(t+1)+";X"+(a+1)+";K";switch(e.t){case"n":n+=e.v||0;if(e.f&&!e.F)n+=";E"+ci(e.f,{r:t,c:a});break;case"b":n+=e.v?"TRUE":"FALSE";break;case"e":n+=e.w||e.v;break;case"d":n+='"'+(e.w||e.v)+'"';break;case"s":n+='"'+e.v.replace(/"/g,"").replace(/;/g,";;")+'"';break;}return n}function f(e,r){r.forEach(function(r,t){var a="F;W"+(t+1)+" "+(t+1)+" ";if(r.hidden)a+="0";else{if(typeof r.width=="number"&&!r.wpx)r.wpx=fn(r.width);if(typeof r.wpx=="number"&&!r.wch)r.wch=un(r.wpx);if(typeof r.wch=="number")a+=Math.round(r.wch)}if(a.charAt(a.length-1)!=" ")e.push(a)})}function u(e,r){r.forEach(function(r,t){var a="F;";if(r.hidden)a+="M0;";else if(r.hpt)a+="M"+20*r.hpt+";";else if(r.hpx)a+="M"+20*bn(r.hpx)+";";if(a.length>2)e.push(a+"R"+(t+1))})}function h(e,r){var t=["ID;PWXL;N;E"],a=[];var n=kt(e["!ref"]),i;var s=Array.isArray(e);var l="\r\n";t.push("P;PGeneral");t.push("F;P0;DG0G8;M255");if(e["!cols"])f(t,e["!cols"]);if(e["!rows"])u(t,e["!rows"]);t.push("B;Y"+(n.e.r-n.s.r+1)+";X"+(n.e.c-n.s.c+1)+";D"+[n.s.c,n.s.r,n.e.c,n.e.r].join(" "));for(var o=n.s.r;o<=n.e.r;++o){for(var h=n.s.c;h<=n.e.c;++h){var p=bt({r:o,c:h});i=s?(e[o]||[])[h]:e[p];if(!i||i.v==null&&(!i.f||i.F))continue;a.push(c(i,e,o,h,r))}}return t.join(l)+l+a.join(l)+l+"E"+l}return{to_workbook:l,to_sheet:s,from_sheet:h}}();var La=function(){function e(e,t){switch(t.type){case"base64":return r(b.decode(e),t);case"binary":return r(e,t);case"buffer":return r(w&&Buffer.isBuffer(e)?e.toString("binary"):F(e),t);case"array":return r(fe(e),t);}throw new Error("Unrecognized type "+t.type)}function r(e,r){var t=e.split("\n"),a=-1,n=-1,i=0,s=[];for(;i!==t.length;++i){if(t[i].trim()==="BOT"){s[++a]=[];n=0;continue}if(a<0)continue;var l=t[i].trim().split(",");var o=l[0],c=l[1];++i;var f=t[i]||"";while((f.match(/["]/g)||[]).length&1&&i=0&&i[s].length===0)--s;var l=10,o=0;var c=0;for(;c<=s;++c){o=i[c].indexOf(" ");if(o==-1)o=i[c].length;else o++;l=Math.max(l,o)}for(c=0;c<=s;++c){n[c]=[];var f=0;e(i[c].slice(0,l).trim(),n,c,f,a);for(f=1;f<=(i[c].length-l)/10+1;++f)e(i[c].slice(l+(f-1)*10,l+f*10).trim(),n,c,f,a)}if(a.sheetRows)n=n.slice(0,a.sheetRows);return n}var t={44:",",9:"\t",59:";",124:"|"};var a={44:3,9:2,59:1,124:0};function n(e){var r={},n=false,i=0,s=0;for(;i0)b();i["!ref"]=yt(s);return i}function s(e,t){if(!(t&&t.PRN))return i(e,t);if(t.FS)return i(e,t);if(e.slice(0,4)=="sep=")return i(e,t);if(e.indexOf("\t")>=0||e.indexOf(",")>=0||e.indexOf(";")>=0)return i(e,t);return At(r(e,t),t)}function l(e,r){var t="",a=r.type=="string"?[0,0,0,0]:ml(e,r);switch(r.type){case"base64":t=b.decode(e);break;case"binary":t=e;break;case"buffer":if(r.codepage==65001)t=e.toString("utf8");else if(r.codepage&&typeof cptable!=="undefined")t=cptable.utils.decode(r.codepage,e);else t=w&&Buffer.isBuffer(e)?e.toString("binary"):F(e);break;case"array":t=fe(e);break;case"string":t=e;break;default:throw new Error("Unrecognized type "+r.type);}if(a[0]==239&&a[1]==187&&a[2]==191)t=qe(t.slice(3));else if(r.type!="string"&&r.type!="buffer"&&r.codepage==65001)t=qe(t);else if(r.type=="binary"&&typeof cptable!=="undefined"&&r.codepage)t=cptable.utils.decode(r.codepage,cptable.utils.encode(28591,t));if(t.slice(0,19)=="socialcalc:version:")return Ba.to_sheet(r.type=="string"?t:qe(t),r);return s(t,r)}function o(e,r){return Ct(l(e,r),r)}function c(e){var r=[];var t=kt(e["!ref"]),a;var n=Array.isArray(e);for(var i=t.s.r;i<=t.e.r;++i){var s=[];for(var l=t.s.c;l<=t.e.c;++l){var o=bt({r:i,c:l});a=n?(e[i]||[])[l]:e[o];if(!a||a.v==null){s.push(" ");continue}var c=(a.w||(St(a),a.w)||"").slice(0,10);while(c.length<10)c+=" ";s.push(c+(l===0?" ":""))}r.push(s.join(""))}return r.join("\n")}return{to_workbook:o,to_sheet:l,from_sheet:c}}();function Ua(e,r){var t=r||{},a=!!t.WTF;t.WTF=true;try{var n=Ia.to_workbook(e,t);t.WTF=a;return n}catch(i){t.WTF=a;if(!i.message.match(/SYLK bad record ID/)&&a)throw i;return za.to_workbook(e,r)}}function $a(e){var r={},t=e.match(Ne),a=0;var n=false;if(t)for(;a!=t.length;++a){var s=Ie(t[a]);switch(s[0].replace(/\w*:/g,"")){case"":;case"":r.shadow=1;break;case"":break;case"":;case"":r.outline=1;break;case"":break;case"":;case"":r.strike=1;break;case"":break;case"":;case"":r.u=1;break;case"":break;case"":;case"":r.b=1;break;case"":break;case"":;case"":r.i=1;break;case"":break;case"":;case"":;case"":break;case"":;case"":;case"":break;case"":;case"":;case"":break;case"":;case"":;case"":break;case"":;case"
":break;case"":n=false;break;default:if(s[0].charCodeAt(1)!==47&&!n)throw new Error("Unrecognized rich format "+s[0]);}}return r}var Wa=function(){var e=tr("t"),r=tr("rPr");function t(t){var a=t.match(e);if(!a)return{t:"s",v:""};var n={t:"s",v:Ue(a[1])};var i=t.match(r);if(i)n.s=$a(i[1]);return n}var a=/<(?:\w+:)?r>/g,n=/<\/(?:\w+:)?r>/;return function i(e){return e.replace(a,"").split(n).map(t).filter(function(e){return e.v})}}();var ja=function _o(){var e=/(\r\n|\n)/g;function r(e,r,t){var a=[];if(e.u)a.push("text-decoration: underline;");if(e.uval)a.push("text-underline-style:"+e.uval+";");if(e.sz)a.push("font-size:"+e.sz+"pt;");if(e.outline)a.push("text-effect: outline;");if(e.shadow)a.push("text-shadow: auto;");r.push('');if(e.b){r.push("");t.push("")}if(e.i){r.push("");t.push("")}if(e.strike){r.push("");t.push("")}var n=e.valign||"";if(n=="superscript"||n=="super")n="sup";else if(n=="subscript")n="sub";if(n!=""){r.push("<"+n+">");t.push("")}t.push("");return e}function t(t){var a=[[],t.v,[]];if(!t.v)return"";if(t.s)r(t.s,a[0],a[2]);return a[0].join("")+a[1].replace(e,"
")+a[2].join("")}return function a(e){return e.map(t).join("")}}();var Ha=/<(?:\w+:)?t[^>]*>([^<]*)<\/(?:\w+:)?t>/g,Va=/<(?:\w+:)?r>/;var Xa=/<(?:\w+:)?rPh.*?>([\s\S]*?)<\/(?:\w+:)?rPh>/g;function Ga(e,r){var t=r?r.cellHTML:true;var a={};if(!e)return{t:""};if(e.match(/^\s*<(?:\w+:)?t[^>]*>/)){a.t=Ue(qe(e.slice(e.indexOf(">")+1).split(/<\/(?:\w+:)?t>/)[0]||""));a.r=qe(e);if(t)a.h=Xe(a.t)}else if(e.match(Va)){a.r=qe(e);a.t=Ue(qe((e.replace(Xa,"").match(Ha)||[]).join("").replace(Ne,"")));if(t)a.h=ja(Wa(a.r))}return a}var Ya=/<(?:\w+:)?sst([^>]*)>([\s\S]*)<\/(?:\w+:)?sst>/;var Ja=/<(?:\w+:)?(?:si|sstItem)>/g;var Ka=/<\/(?:\w+:)?(?:si|sstItem)>/;function qa(e,r){var t=[],a="";if(!e)return t;var n=e.match(Ya);if(n){a=n[2].replace(Ja,"").split(Ka);for(var i=0;i!=a.length;++i){var s=Ga(a[i].trim(),r);if(s!=null)t[t.length]=s}n=Ie(n[1]);t.Count=n.count;t.Unique=n.uniqueCount}return t}ia.SST="http://schemas.openxmlformats.org/officeDocument/2006/relationships/sharedStrings";var Za=/^\s|\s$|[\t\n\r]/;function Qa(e,r){if(!r.bookSST)return"";var t=[De];t[t.length]=ur("sst",null,{xmlns:dr.main[0],count:e.Count,uniqueCount:e.Unique});for(var a=0;a!=e.length;++a){if(e[a]==null)continue;var n=e[a];var i="";if(n.r)i+=n.r;else{i+=""}i+="";t[t.length]=i}if(t.length>2){t[t.length]="";t[1]=t[1].replace("/>",">")}return t.join("")}function en(e){var r=e.slice(e[0]==="#"?1:0).slice(0,6);return[parseInt(r.slice(0,2),16),parseInt(r.slice(2,4),16),parseInt(r.slice(4,6),16)]}function rn(e){for(var r=0,t=1;r!=3;++r)t=t*256+(e[r]>255?255:e[r]<0?0:e[r]);return t.toString(16).toUpperCase().slice(1)}function tn(e){var r=e[0]/255,t=e[1]/255,a=e[2]/255;var n=Math.max(r,t,a),i=Math.min(r,t,a),s=n-i;if(s===0)return[0,0,r];var l=0,o=0,c=n+i;o=s/(c>1?2-c:c);switch(n){case r:l=((t-a)/s+6)%6;break;case t:l=(a-r)/s+2;break;case a:l=(r-t)/s+4;break;}return[l/6,o,c/2]}function an(e){var r=e[0],t=e[1],a=e[2];var n=t*2*(a<.5?a:1-a),i=a-n/2;var s=[i,i,i],l=6*r;var o;if(t!==0)switch(l|0){case 0:;case 6:o=n*l;s[0]+=n;s[1]+=o;break;case 1:o=n*(2-l);s[0]+=o;s[1]+=n;break;case 2:o=n*(l-2);s[1]+=n;s[2]+=o;break;case 3:o=n*(4-l);s[1]+=o;s[2]+=n;break;case 4:o=n*(l-4);s[2]+=n;s[0]+=o;break;case 5:o=n*(6-l);s[2]+=o;s[0]+=n;break;}for(var c=0;c!=3;++c)s[c]=Math.round(s[c]*255);return s}function nn(e,r){if(r===0)return e;var t=tn(en(e));if(r<0)t[2]=t[2]*(1+r);else t[2]=1-(1-t[2])*(1-r);return rn(an(t))}var sn=6,ln=15,on=1,cn=sn;function fn(e){return Math.floor((e+Math.round(128/cn)/256)*cn)}function un(e){return Math.floor((e-5)/cn*100+.5)/100}function hn(e){return Math.round((e*cn+5)/cn*256)/256}function pn(e){return hn(un(fn(e)))}function dn(e){var r=Math.abs(e-pn(e)),t=cn;if(r>.005)for(cn=on;cn":;case"":break;case"":;case"":n={};if(t.diagonalUp)n.diagonalUp=Ke(t.diagonalUp);if(t.diagonalDown)n.diagonalDown=Ke(t.diagonalDown);r.Borders.push(n);break;case"":break;case"":break;case"":break;case"":break;case"":break;case"":break;case"":break;case"":break;case"":break;case"":break;case"":break;case"":break;case"":break;case"":;case"":break;case"":break;case"":;case"":break;case"":break;case"":;case"":break;case"":break;case"":;case"":break;case"":break;case"":;case"":break;case"":break;case"":break;case"":;case"":break;case"":;case"":break;case"":i=false;break;default:if(a&&a.WTF){if(!i)throw new Error("unrecognized "+t[0]+" in borders")};}})}function xn(e,r,t,a){r.Fills=[];var n={};var i=false;(e[0].match(Ne)||[]).forEach(function(e){var t=Ie(e);switch(Le(t[0])){case"":;case"":break;case"":;case"":n={};r.Fills.push(n);break;case"":break;case"":break;case"":r.Fills.push(n);n={};break;case"":if(t.patternType)n.patternType=t.patternType;break;case"":;case"":break;case"":;case"":break;case"":;case"":break;case"":break;case"":break;case"":break;case"":break;case"":;case"":break;case"":i=false;break;default:if(a&&a.WTF){if(!i)throw new Error("unrecognized "+t[0]+" in fills")};}})}function Sn(e,r,t,a){r.Fonts=[];var n={};var s=false;(e[0].match(Ne)||[]).forEach(function(e){var l=Ie(e);switch(Le(l[0])){case"":;case"":break;case"":break;case"
":;case"":r.Fonts.push(n);n={};break;case"":;case"":break;case"":n.bold=1;break;case"":n.italic=1;break;case"":n.underline=1;break;case"":n.strike=1;break;case"":n.outline=1;break;case"":n.shadow=1;break;case"":n.condense=1;break;case"":n.extend=1;break;case"":;case"":break;case"":;case"":break;case"":;case"":break;case"":;case"":break;case"":;case"":break;case"":s=false;break;case"":;case"":break;case"":s=false;break;default:if(a&&a.WTF){if(!s)throw new Error("unrecognized "+l[0]+" in fonts")};}})}function Cn(e,r,t){r.NumberFmt=[];var a=J(P._table);for(var n=0;n":;case"":;case"":break;case"0){if(o>392){for(o=392;o>60;--o)if(r.NumberFmt[o]==null)break;r.NumberFmt[o]=l}P.load(l,o)}}break;case"":break;default:if(t.WTF)throw new Error("unrecognized "+s[0]+" in numFmts");}}}function _n(e){var r=[""];[[5,8],[23,26],[41,44],[50,392]].forEach(function(t){for(var a=t[0];a<=t[1];++a)if(e[a]!=null)r[r.length]=ur("numFmt",null,{numFmtId:a,formatCode:je(e[a])})});if(r.length===1)return"";r[r.length]="";r[0]=ur("numFmts",null,{count:r.length-2}).replace("/>",">");return r.join("")}var An=["numFmtId","fillId","fontId","borderId","xfId"];var Fn=["applyAlignment","applyBorder","applyFill","applyFont","applyNumberFormat","applyProtection","pivotButton","quotePrefix"];function En(e,r,t){r.CellXf=[];var a;var n=false;(e[0].match(Ne)||[]).forEach(function(e){var i=Ie(e),s=0;switch(Le(i[0])){case"":;case"":;case"":break;case"":a=i;delete a[0];for(s=0;s392){for(s=392;s>60;--s)if(r.NumberFmt[a.numFmtId]==r.NumberFmt[s]){a.numFmtId=s;break}}r.CellXf.push(a);break;case"":break;case"":var l={};if(i.vertical)l.vertical=i.vertical;if(i.horizontal)l.horizontal=i.horizontal;if(i.textRotation!=null)l.textRotation=i.textRotation;if(i.indent)l.indent=i.indent;if(i.wrapText)l.wrapText=Ke(i.wrapText);a.alignment=l;break;case"":break;case"":;case"":break;case"":n=false;break;case"":;case"":break;case"":n=false;break;default:if(t&&t.WTF){if(!n)throw new Error("unrecognized "+i[0]+" in cellXfs")};}})}function Tn(e){var r=[];r[r.length]=ur("cellXfs",null);e.forEach(function(e){r[r.length]=ur("xf",null,e)});r[r.length]="";if(r.length===2)return"";r[0]=ur("cellXfs",null,{count:r.length-2}).replace("/>",">");return r.join("")}var On=function Ao(){var e=/<(?:\w+:)?numFmts([^>]*)>[\S\s]*?<\/(?:\w+:)?numFmts>/;var r=/<(?:\w+:)?cellXfs([^>]*)>[\S\s]*?<\/(?:\w+:)?cellXfs>/;var t=/<(?:\w+:)?fills([^>]*)>[\S\s]*?<\/(?:\w+:)?fills>/;var a=/<(?:\w+:)?fonts([^>]*)>[\S\s]*?<\/(?:\w+:)?fonts>/;var n=/<(?:\w+:)?borders([^>]*)>[\S\s]*?<\/(?:\w+:)?borders>/;return function i(s,l,o){var c={};if(!s)return c;s=s.replace(//gm,"").replace(//gm,"");var f;if(f=s.match(e))Cn(f,c,o);if(f=s.match(a))Sn(f,c,l,o);if(f=s.match(t))xn(f,c,l,o);if(f=s.match(n))kn(f,c,l,o);if(f=s.match(r))En(f,c,o);return c}}();var Dn=ur("styleSheet",null,{xmlns:dr.main[0],"xmlns:vt":dr.vt});ia.STY="http://schemas.openxmlformats.org/officeDocument/2006/relationships/styles";function Mn(e,r){var t=[De,Dn],a;if(e.SSF&&(a=_n(e.SSF))!=null)t[t.length]=a;t[t.length]='';t[t.length]='';t[t.length]='';t[t.length]='';if(a=Tn(r.cellXfs))t[t.length]=a;t[t.length]='';t[t.length]='';t[t.length]='';if(t.length>2){t[t.length]="";t[1]=t[1].replace("/>",">")}return t.join("")}ia.THEME="http://schemas.openxmlformats.org/officeDocument/2006/relationships/theme";var Nn=["","","","","","","","","","","",""];function Pn(e,r,t){r.themeElements.clrScheme=[];var a={};(e[0].match(Ne)||[]).forEach(function(e){var n=Ie(e);switch(n[0]){case"":break;case"":;case"":;case"":;case"":;case"":;case"":;case"":;case"":;case"":;case"":;case"":;case"":;case"":;case"":;case"":;case"":;case"":;case"":;case"":;case"":;case"":;case"":;case"":;case"":if(n[0].charAt(1)==="/"){r.themeElements.clrScheme[Nn.indexOf(n[0])]=a;a={}}else{a.name=n[0].slice(3,n[0].length-1)}break;default:if(t&&t.WTF)throw new Error("Unrecognized "+n[0]+" in clrScheme");}})}function Rn(){}function In(){}var Ln=/]*)>[\s\S]*<\/a:clrScheme>/;var Bn=/]*)>[\s\S]*<\/a:fontScheme>/;var zn=/]*)>[\s\S]*<\/a:fmtScheme>/;function Un(e,r,t){r.themeElements={};var a;[["clrScheme",Ln,Pn],["fontScheme",Bn,Rn],["fmtScheme",zn,In]].forEach(function(n){if(!(a=e.match(n[1])))throw new Error(n[0]+" not found in themeElements");n[2](a,r,t)})}var $n=/]*)>[\s\S]*<\/a:themeElements>/;function Wn(e,r){if(!e||e.length===0)return Wn(jn());var t;var a={};if(!(t=e.match($n)))throw new Error("themeElements not found in theme");Un(t[0],a,r);a.raw=e;return a}function jn(e,r){if(r&&r.themeXLSX)return r.themeXLSX;if(e&&typeof e.raw=="string")return e.raw;var t=[De];t[t.length]='';t[t.length]="";t[t.length]='';t[t.length]='';t[t.length]='';t[t.length]='';t[t.length]='';t[t.length]='';t[t.length]='';t[t.length]='';t[t.length]='';t[t.length]='';t[t.length]='';t[t.length]='';t[t.length]='';t[t.length]="";t[t.length]='';t[t.length]="";t[t.length]='';t[t.length]='';t[t.length]='';t[t.length]='';t[t.length]='';t[t.length]='';t[t.length]='';t[t.length]='';t[t.length]='';t[t.length]='';t[t.length]='';t[t.length]='';t[t.length]='';t[t.length]='';t[t.length]='';t[t.length]='';t[t.length]='';t[t.length]='';t[t.length]='';t[t.length]='';t[t.length]='';t[t.length]='';t[t.length]='';t[t.length]='';t[t.length]='';t[t.length]='';t[t.length]='';t[t.length]='';t[t.length]='';t[t.length]='';t[t.length]='';t[t.length]='';t[t.length]='';t[t.length]="";t[t.length]="";t[t.length]='';t[t.length]='';t[t.length]='';t[t.length]='';t[t.length]='';t[t.length]='';t[t.length]='';t[t.length]='';t[t.length]='';t[t.length]='';t[t.length]='';t[t.length]='';t[t.length]='';t[t.length]='';t[t.length]='';t[t.length]='';t[t.length]='';t[t.length]='';t[t.length]='';t[t.length]='';t[t.length]='';t[t.length]='';t[t.length]='';t[t.length]='';t[t.length]='';t[t.length]='';t[t.length]='';t[t.length]='';t[t.length]='';t[t.length]='';t[t.length]='';t[t.length]='';t[t.length]='';t[t.length]="";t[t.length]="";t[t.length]='';t[t.length]="";t[t.length]='';t[t.length]='';t[t.length]="";t[t.length]='';t[t.length]='';t[t.length]='';t[t.length]="";t[t.length]='';t[t.length]="";t[t.length]='';t[t.length]="";t[t.length]='';t[t.length]='';t[t.length]="";t[t.length]='';t[t.length]="";t[t.length]="";t[t.length]="";t[t.length]='';t[t.length]='';t[t.length]='';t[t.length]="";t[t.length]="";t[t.length]="";t[t.length]="";t[t.length]='';t[t.length]="";t[t.length]="";t[t.length]="";t[t.length]="";t[t.length]='';t[t.length]="";t[t.length]="";t[t.length]="";t[t.length]="";t[t.length]='';t[t.length]="";t[t.length]='';t[t.length]='';t[t.length]="";t[t.length]="";t[t.length]="";t[t.length]='';t[t.length]='';t[t.length]="";t[t.length]='';t[t.length]='';t[t.length]='';t[t.length]="";t[t.length]='';t[t.length]="";t[t.length]='';t[t.length]="";t[t.length]='';t[t.length]='';t[t.length]="";t[t.length]='';t[t.length]="";t[t.length]="";t[t.length]="";t[t.length]="";t[t.length]="";t[t.length]="";t[t.length]='';t[t.length]="";t[t.length]="";t[t.length]='';t[t.length]="";t[t.length]="";t[t.length]="";t[t.length]="";return t.join("")}function Hn(){}function Vn(e,r,t,a){if(!e)return e;var n=a||{};var i=false,s=false;rt(e,function l(e,r,t){if(s)return;switch(t){case 359:;case 363:;case 364:;case 366:;case 367:;case 368:;case 369:;case 370:;case 371:;case 472:;case 577:;case 578:;case 579:;case 580:;case 581:;case 582:;case 583:;case 584:;case 585:;case 586:;case 587:break;case 35:i=true;break;case 36:i=false;break;default:if((r||"").indexOf("Begin")>0){}else if((r||"").indexOf("End")>0){}else if(!i||n.WTF)throw new Error("Unexpected record "+t.toString(16)+" "+r);}},n)}ia.IMG="http://schemas.openxmlformats.org/officeDocument/2006/relationships/image";ia.DRAW="http://schemas.openxmlformats.org/officeDocument/2006/relationships/drawing";function Xn(e,r){if(!e)return"??";var t=(e.match(/]*r:id="([^"]*)"/)||["",""])[1];return r["!id"][t].Target}var Gn=1024;function Yn(e,r){var t=[21600,21600];var a=["m0,0l0",t[1],t[0],t[1],t[0],"0xe"].join(",");var n=[ur("xml",null,{"xmlns:v":mr.v,"xmlns:o":mr.o,"xmlns:x":mr.x,"xmlns:mv":mr.mv}).replace(/\/>/,">"),ur("o:shapelayout",ur("o:idmap",null,{"v:ext":"edit",data:e}),{"v:ext":"edit"}),ur("v:shapetype",[ur("v:stroke",null,{joinstyle:"miter"}),ur("v:path",null,{gradientshapeok:"t","o:connecttype":"rect"})].join(""),{id:"_x0000_t202","o:spt":202,coordsize:t.join(","),path:a})];while(Gn",i,ur("v:shadow",null,s),ur("v:path",null,{"o:connecttype":"none"}),'
','',"","",cr("x:Anchor",[r.c+1,0,r.r+1,0,r.c+3,20,r.r+5,20].join(",")),cr("x:AutoFill","False"),cr("x:Row",String(r.r)),cr("x:Column",String(r.c)),e[1].hidden?"":"","",""])});n.push("");return n.join("")}ia.CMNT="http://schemas.openxmlformats.org/officeDocument/2006/relationships/comments";function Jn(e,r){var t=Array.isArray(e);var a;r.forEach(function(r){var n=gt(r.ref);if(t){if(!e[n.r])e[n.r]=[];a=e[n.r][n.c]}else a=e[r.ref];if(!a){a={t:"z"};if(t)e[n.r][n.c]=a;else e[r.ref]=a;var i=kt(e["!ref"]||"BDWGO1000001:A1");if(i.s.r>n.r)i.s.r=n.r;if(i.e.rn.c)i.s.c=n.c;if(i.e.c/))return[];var t=[];var a=[];var n=e.match(/<(?:\w+:)?authors>([\s\S]*)<\/(?:\w+:)?authors>/);if(n&&n[1])n[1].split(/<\/\w*:?author>/).forEach(function(e){if(e===""||e.trim()==="")return;var r=e.match(/<(?:\w+:)?author[^>]*>(.*)/);if(r)t.push(r[1])});var i=e.match(/<(?:\w+:)?commentList>([\s\S]*)<\/(?:\w+:)?commentList>/);if(i&&i[1])i[1].split(/<\/\w*:?comment>/).forEach(function(e){if(e===""||e.trim()==="")return;var n=e.match(/<(?:\w+:)?comment[^>]*>/);if(!n)return;var i=Ie(n[0]);var s={author:i.authorId&&t[i.authorId]||"sheetjsghost",ref:i.ref,guid:i.guid};var l=gt(i.ref);if(r.sheetRows&&r.sheetRows<=l.r)return;var o=e.match(/<(?:\w+:)?text>([\s\S]*)<\/(?:\w+:)?text>/);var c=!!o&&!!o[1]&&Ga(o[1])||{r:"",t:"",h:""};s.r=c.r;if(c.r=="")c.t=c.h="";s.t=(c.t||"").replace(/\r\n/g,"\n").replace(/\r/g,"\n");if(r.cellHTML)s.h=c.h;a.push(s)});return a}var qn=ur("comments",null,{xmlns:dr.main[0]});function Zn(e){var r=[De,qn];var t=[];r.push("");e.forEach(function(e){e[1].forEach(function(e){var a=je(e.a);if(t.indexOf(a)>-1)return;t.push(a);r.push(""+a+"")})});r.push("");r.push("");e.forEach(function(e){e[1].forEach(function(a){r.push('');r.push(cr("t",a.t==null?"":je(a.t)));r.push("")})});r.push("");if(r.length>2){r[r.length]="";r[1]=r[1].replace("/>",">")}return r.join("")}var Qn="application/vnd.ms-office.vbaProject";function ei(e){var r=H.utils.cfb_new({root:"R"});e.FullPaths.forEach(function(t,a){if(t.slice(-1)==="/"||!t.match(/_VBA_PROJECT_CUR/))return;var n=t.replace(/^[^\/]*/,"R").replace(/\/_VBA_PROJECT_CUR\u0000*/,"");H.utils.cfb_add(r,n,e.FileIndex[a].content)});return H.write(r)}function ri(e,r){r.FullPaths.forEach(function(t,a){if(a==0)return;var n=t.replace(/[^\/]*[\/]/,"/_VBA_PROJECT_CUR/");if(n.slice(-1)!=="/")H.utils.cfb_add(e,n,r.FileIndex[a].content)})}var ti=["xlsb","xlsm","xlam","biff8","xla"];ia.DS="http://schemas.openxmlformats.org/officeDocument/2006/relationships/dialogsheet";ia.MS="http://schemas.microsoft.com/office/2006/relationships/xlMacrosheet";function ai(){return{"!type":"dialog"}}function ni(){return{"!type":"dialog"}}function ii(){return{"!type":"macro"}}function si(){return{"!type":"macro"}}var li=function(){var e=/(^|[^A-Za-z_])R(\[?-?\d+\]|[1-9]\d*|)C(\[?-?\d+\]|[1-9]\d*|)(?![A-Za-z0-9_])/g;var r={r:0,c:0};function t(e,t,a,n){var i=false,s=false;if(a.length==0)s=true;else if(a.charAt(0)=="["){s=true;a=a.slice(1,-1)}if(n.length==0)i=true;else if(n.charAt(0)=="["){i=true;n=n.slice(1,-1)}var l=a.length>0?parseInt(a,10)|0:0,o=n.length>0?parseInt(n,10)|0:0;if(i)o+=r.c;else--o;if(s)l+=r.r;else--l;return t+(i?"":"$")+pt(o)+(s?"":"$")+ct(l)}return function a(n,i){r=i;return n.replace(e,t)}}();var oi=/(^|[^._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;var ci=function(){return function e(r,t){return r.replace(oi,function(e,r,a,n,i,s){var l=ht(n)-(a?0:t.c);var o=ot(s)-(i?0:t.r);var c=o==0?"":!i?"["+o+"]":o+1;var f=l==0?"":!a?"["+l+"]":l+1;return r+"R"+c+"C"+f})}}();function fi(e,r){return e.replace(oi,function(e,t,a,n,i,s){return t+(a=="$"?a+n:pt(ht(n)+r.c))+(i=="$"?i+s:ct(ot(s)+r.r))})}function ui(e,r,t){var a=wt(r),n=a.s,i=gt(t);var s={r:i.r-n.r,c:i.c-n.c};return fi(e,s)}function hi(e){if(e.length==1)return false;return true}function pi(e){return e.replace(/_xlfn\./g,"")}function di(e){if(e.slice(0,3)=="of:")e=e.slice(3);if(e.charCodeAt(0)==61){e=e.slice(1);if(e.charCodeAt(0)==61)e=e.slice(1)}e=e.replace(/COM\.MICROSOFT\./g,"");e=e.replace(/\[((?:\.[A-Z]+[0-9]+)(?::\.[A-Z]+[0-9]+)?)\]/g,function(e,r){return r.replace(/\./g,"")});e=e.replace(/\[.(#[A-Z]*[?!])\]/g,"$1");return e.replace(/[;~]/g,",").replace(/\|/g,";")}function mi(e){var r="of:="+e.replace(oi,"$1[.$2$3$4$5]").replace(/\]:\[/g,":");return r.replace(/;/g,"|").replace(/,/g,";")}function vi(e){var r=e.split(":");var t=r[0].split(".")[0];return[t,r[0].split(".")[1]+(r.length>1?":"+(r[1].split(".")[1]||r[1].split(".")[0]):"")]}function gi(e){return e.replace(/\./,"!")}var bi={};var wi={};ia.WS=["http://schemas.openxmlformats.org/officeDocument/2006/relationships/worksheet","http://purl.oclc.org/ooxml/officeDocument/relationships/worksheet"];var yi=typeof Map!=="undefined";function ki(e,r,t){var a=0,n=e.length;if(t){if(yi?t.has(r):Object.prototype.hasOwnProperty.call(t,r)){var i=yi?t.get(r):t[r];for(;a-1){t.width=hn(a);t.customWidth=1}else if(r.width!=null)t.width=r.width;if(r.hidden)t.hidden=true;if(r.level!=null){t.outlineLevel=t.level=r.level}return t}function Si(e,r){if(!e)return;var t=[.7,.7,.75,.75,.3,.3];if(r=="xlml")t=[1,1,1,1,.5,.5];if(e.left==null)e.left=t[0];if(e.right==null)e.right=t[1];if(e.top==null)e.top=t[2];if(e.bottom==null)e.bottom=t[3];if(e.header==null)e.header=t[4];if(e.footer==null)e.footer=t[5]}function Ci(e,r,t){var a=t.revssf[r.z!=null?r.z:"General"];var n=60,i=e.length;if(a==null&&t.ssf){for(;n<392;++n)if(t.ssf[n]==null){P.load(r.z,n);t.ssf[n]=r.z;t.revssf[r.z]=a=n;break}}for(n=0;n!=i;++n)if(e[n].numFmtId===a)return n;e[i]={numFmtId:a,fontId:0,fillId:0,borderId:0,xfId:0,applyNumberFormat:1};return i}function _i(e,r,t,a,n,i){try{if(a.cellNF)e.z=P._table[r]}catch(s){if(a.WTF)throw s}if(e.t==="z"&&!a.cellStyles)return;if(e.t==="d"&&typeof e.v==="string")e.v=ce(e.v);if((!a||a.cellText!==false)&&e.t!=="z")try{if(P._table[r]==null)P.load(L[r]||"General",r);if(e.t==="e")e.w=e.w||Jt[e.v];else if(r===0){if(e.t==="n"){if((e.v|0)===e.v)e.w=P._general_int(e.v);else e.w=P._general_num(e.v)}else if(e.t==="d"){var l=re(e.v);if((l|0)===l)e.w=P._general_int(l);else e.w=P._general_num(l)}else if(e.v===undefined)return"";else e.w=P._general(e.v,wi)}else if(e.t==="d")e.w=P.format(r,re(e.v),wi);else e.w=P.format(r,e.v,wi)}catch(s){if(a.WTF)throw s}if(!a.cellStyles)return;if(t!=null)try{e.s=i.Fills[t];if(e.s.fgColor&&e.s.fgColor.theme&&!e.s.fgColor.rgb){e.s.fgColor.rgb=nn(n.themeElements.clrScheme[e.s.fgColor.theme].rgb,e.s.fgColor.tint||0);if(a.WTF)e.s.fgColor.raw_rgb=n.themeElements.clrScheme[e.s.fgColor.theme].rgb}if(e.s.bgColor&&e.s.bgColor.theme){e.s.bgColor.rgb=nn(n.themeElements.clrScheme[e.s.bgColor.theme].rgb,e.s.bgColor.tint||0);if(a.WTF)e.s.bgColor.raw_rgb=n.themeElements.clrScheme[e.s.bgColor.theme].rgb}}catch(s){if(a.WTF&&i.Fills)throw s}}function Ai(e,r,t){if(e&&e["!ref"]){var a=kt(e["!ref"]);if(a.e.c=0&&t.s.c>=0)e["!ref"]=yt(t)}var Ei=/<(?:\w:)?mergeCell ref="[A-Z0-9:]+"\s*[\/]?>/g;var Ti=/<(?:\w+:)?sheetData[^>]*>([\s\S]*)<\/(?:\w+:)?sheetData>/;var Oi=/<(?:\w:)?hyperlink [^>]*>/gm;var Di=/"(\w*:\w*)"/;var Mi=/<(?:\w:)?col\b[^>]*[\/]?>/g;var Ni=/<(?:\w:)?autoFilter[^>]*([\/]|>([\s\S]*)<\/(?:\w:)?autoFilter)>/g;var Pi=/<(?:\w:)?pageMargins[^>]*\/>/g;var Ri=/<(?:\w:)?sheetPr\b(?:[^>a-z][^>]*)?\/>/;var Ii=/<(?:\w:)?sheetPr[^>]*(?:[\/]|>([\s\S]*)<\/(?:\w:)?sheetPr)>/;var Li=/<(?:\w:)?sheetViews[^>]*(?:[\/]|>([\s\S]*)<\/(?:\w:)?sheetViews)>/;function Bi(e,r,t,a,n,i,s){if(!e)return e;if(!a)a={"!id":{}};if(v!=null&&r.dense==null)r.dense=v;var l=r.dense?[]:{};var o={s:{r:2e6,c:2e6},e:{r:0,c:0}};var c="",f="";var u=e.match(Ti);if(u){c=e.slice(0,u.index);f=e.slice(u.index+u[0].length)}else c=f=e;var h=c.match(Ri);if(h)Ui(h[0],l,n,t);else if(h=c.match(Ii))$i(h[0],h[1]||"",l,n,t,s,i);var p=(c.match(/<(?:\w*:)?dimension/)||{index:-1}).index;if(p>0){var d=c.slice(p,p+50).match(Di);if(d)Fi(l,d[1])}var m=c.match(Li);if(m&&m[1])es(m[1],n);var g=[];if(r.cellStyles){var b=c.match(Mi);if(b)Ji(g,b)}if(u)as(u[1],l,r,o,i,s);var w=f.match(Ni);if(w)l["!autofilter"]=qi(w[0]);var y=[];var k=f.match(Ei);if(k)for(p=0;p!=k.length;++p)y[p]=kt(k[p].slice(k[p].indexOf('"')+1));var x=f.match(Oi);if(x)Xi(l,x,a);var S=f.match(Pi);if(S)l["!margins"]=Gi(Ie(S[0]));if(!l["!ref"]&&o.e.c>=o.s.c&&o.e.r>=o.s.r)l["!ref"]=yt(o);if(r.sheetRows>0&&l["!ref"]){var C=kt(l["!ref"]);if(r.sheetRows<=+C.e.r){C.e.r=r.sheetRows-1;if(C.e.r>o.e.r)C.e.r=o.e.r;if(C.e.ro.e.c)C.e.c=o.e.c;if(C.e.c0)l["!cols"]=g;if(y.length>0)l["!merges"]=y;return l}function zi(e){if(e.length===0)return"";var r='';for(var t=0;t!=e.length;++t)r+='';return r+""}function Ui(e,r,t,a){var n=Ie(e);if(!t.Sheets[a])t.Sheets[a]={};if(n.codeName)t.Sheets[a].CodeName=Ue(qe(n.codeName))}function $i(e,r,t,a,n,i,s){Ui(e.slice(0,e.indexOf(">")),t,a,n)}function Wi(e,r,t,a,n){var i=false;var s={},l=null;if(a.bookType!=="xlsx"&&r.vbaraw){var o=r.SheetNames[t];try{if(r.Workbook)o=r.Workbook.Sheets[t].CodeName||o}catch(c){}i=true;s.codeName=Ze(je(o))}if(e&&e["!outline"]){var f={summaryBelow:1,summaryRight:1};if(e["!outline"].above)f.summaryBelow=0;if(e["!outline"].left)f.summaryRight=0;l=(l||"")+ur("outlinePr",null,f)}if(!i&&!l)return;n[n.length]=ur("sheetPr",l,s)}var ji=["objects","scenarios","selectLockedCells","selectUnlockedCells"];var Hi=["formatColumns","formatRows","formatCells","insertColumns","insertRows","insertHyperlinks","deleteColumns","deleteRows","sort","autoFilter","pivotTables"];function Vi(e){var r={sheet:1};ji.forEach(function(t){if(e[t]!=null&&e[t])r[t]="1"});Hi.forEach(function(t){if(e[t]!=null&&!e[t])r[t]="0"});if(e.password)r.password=crypto_CreatePasswordVerifier_Method1(e.password).toString(16).toUpperCase();return ur("sheetProtection",null,r)}function Xi(e,r,t){var a=Array.isArray(e);for(var n=0;n!=r.length;++n){var i=Ie(qe(r[n]),true);if(!i.ref)return;var s=((t||{})["!id"]||[])[i.id];if(s){i.Target=s.Target;if(i.location)i.Target+="#"+Ue(i.location)}else{i.Target="#"+Ue(i.location);s={Target:i.Target,TargetMode:"Internal"}}i.Rel=s;if(i.tooltip){i.Tooltip=i.tooltip;delete i.tooltip}var l=kt(i.ref);for(var o=l.s.r;o<=l.e.r;++o)for(var c=l.s.c;c<=l.e.c;++c){var f=bt({c:c,r:o});if(a){if(!e[o])e[o]=[];if(!e[o][c])e[o][c]={t:"z",v:undefined};e[o][c].l=i}else{if(!e[f])e[f]={t:"z",v:undefined};e[f].l=i}}}}function Gi(e){var r={};["left","right","top","bottom","header","footer"].forEach(function(t){if(e[t])r[t]=parseFloat(e[t])});return r}function Yi(e){Si(e);return ur("pageMargins",null,e)}function Ji(e,r){var t=false;for(var a=0;a!=r.length;++a){var n=Ie(r[a],true);if(n.hidden)n.hidden=Ke(n.hidden);var i=parseInt(n.min,10)-1,s=parseInt(n.max,10)-1;if(n.outlineLevel)n.level=+n.outlineLevel||0;delete n.min;delete n.max;n.width=+n.width;if(!t&&n.width){t=true;dn(n.width)}mn(n);while(i<=s)e[i++]=ue(n)}}function Ki(e,r){var t=[""],a;for(var n=0;n!=r.length;++n){if(!(a=r[n]))continue;t[t.length]=ur("col",null,xi(n,a))}t[t.length]="";return t.join("")}function qi(e){var r={ref:(e.match(/ref="([^"]*)"/)||[])[1]};return r}function Zi(e,r,t,a){var n=typeof e.ref=="string"?e.ref:yt(e.ref);if(!t.Workbook)t.Workbook={Sheets:[]};if(!t.Workbook.Names)t.Workbook.Names=[];var i=t.Workbook.Names;var s=wt(n);if(s.s.r==s.e.r){s.e.r=wt(r["!ref"]).e.r;n=yt(s)}for(var l=0;la-z][^>]*)?\/?>/;function es(e,r){if(!r.Views)r.Views=[{}];(e.match(Qi)||[]).forEach(function(e,t){var a=Ie(e);if(!r.Views[t])r.Views[t]={};if(+a.zoomScale)r.Views[t].zoom=+a.zoomScale;if(Ke(a.rightToLeft))r.Views[t].RTL=true})}function rs(e,r,t,a){var n={workbookViewId:"0"};if((((a||{}).Workbook||{}).Views||[])[0])n.rightToLeft=a.Workbook.Views[0].RTL?"1":"0";return ur("sheetViews",ur("sheetView",null,n),{})}function ts(e,r,t,a){if(e.v===undefined&&typeof e.f!=="string"||e.t==="z")return"";var n="";var i=e.t,s=e.v;if(e.t!=="z")switch(e.t){case"b":n=e.v?"1":"0";break;case"n":n=""+e.v;break;case"e":n=Jt[e.v];break;case"d":if(a&&a.cellDates)n=ce(e.v,-1).toISOString();else{e=ue(e);e.t="n";n=""+(e.v=re(ce(e.v)))}if(typeof e.z==="undefined")e.z=P._table[14];break;default:n=e.v;break;}var l=cr("v",je(n)),o={r:r};var c=Ci(a.cellXfs,e,a);if(c!==0)o.s=c;switch(e.t){case"n":break;case"d":o.t="d";break;case"b":o.t="b";break;case"e":o.t="e";break;case"z":break;default:if(e.v==null){delete e.t;break}if(e.v.length>32767)throw new Error("Text length must not exceed 32767 characters");if(a&&a.bookSST){l=cr("v",""+ki(a.Strings,e.v,a.revStrings));o.t="s";break}o.t="str";break;}if(e.t!=i){e.t=i;e.v=s}if(typeof e.f=="string"&&e.f){var f=e.F&&e.F.slice(0,r.length)==r?{t:"array",ref:e.F}:null;l=ur("f",je(e.f),f)+(e.v!=null?l:"")}if(e.l)t["!links"].push([r,e.l]);if(e.c)t["!comments"].push([r,e.c]);return ur("c",l,o)}var as=function(){var e=/<(?:\w+:)?c[ \/>]/,r=/<\/(?:\w+:)?row>/;var t=/r=["']([^"']*)["']/,a=/<(?:\w+:)?is>([\S\s]*?)<\/(?:\w+:)?is>/;var n=/ref=["']([^"']*)["']/;var i=tr("v"),s=tr("f");return function l(o,c,f,u,h,p){var d=0,m="",v=[],g=[],b=0,w=0,y=0,k="",x;var S,C=0,_=0;var A,F;var E=0,T=0;var O=Array.isArray(p.CellXf),D;var M=[];var N=[];var R=Array.isArray(c);var I=[],L={},B=false;var z=!!f.sheetStubs;for(var U=o.split(r),$=0,W=U.length;$!=W;++$){m=U[$].trim();var j=m.length;if(j===0)continue;var H=0;e:for(d=0;d":if(m[d-1]!="/"){++d;break e}if(f&&f.cellStyles){S=Ie(m.slice(H,d),true);C=S.r!=null?parseInt(S.r,10):C+1;_=-1;if(f.sheetRows&&f.sheetRows=d)break;S=Ie(m.slice(H,d),true);C=S.r!=null?parseInt(S.r,10):C+1;_=-1;if(f.sheetRows&&f.sheetRowsC-1)u.s.r=C-1;if(u.e.r":"")+m;if(g!=null&&g.length===2){b=0;k=g[1];for(w=0;w!=k.length;++w){if((y=k.charCodeAt(w)-64)<1||y>26)break;b=26*b+y}--b;_=b}else++_;for(w=0;w!=m.length;++w)if(m.charCodeAt(w)===62)break;++w;S=Ie(m.slice(0,w),true);if(!S.r)S.r=bt({r:C-1,c:_});k=m.slice(w);x={t:""};if((g=k.match(i))!=null&&g[1]!=="")x.v=Ue(g[1]);if(f.cellFormula){if((g=k.match(s))!=null&&g[1]!==""){x.f=Ue(qe(g[1])).replace(/\r\n/g,"\n");if(!f.xlfn)x.f=pi(x.f);if(g[0].indexOf('t="array"')>-1){x.F=(k.match(n)||[])[1];if(x.F.indexOf(":")>-1)M.push([kt(x.F),x.F])}else if(g[0].indexOf('t="shared"')>-1){F=Ie(g[0]);var X=Ue(qe(g[1]));if(!f.xlfn)X=pi(X);N[parseInt(F.si,10)]=[F,X,S.r]}}else if(g=k.match(/]*\/>/)){F=Ie(g[0]);if(N[F.si])x.f=ui(N[F.si][1],N[F.si][2],S.r)}var G=gt(S.r);for(w=0;w=M[w][0].s.r&&G.r<=M[w][0].e.r)if(G.c>=M[w][0].s.c&&G.c<=M[w][0].e.c)x.F=M[w][1]}if(S.t==null&&x.v===undefined){if(x.f||x.F){x.v=0;x.t="n"}else if(!z)continue;else x.t="z"}else x.t=S.t||"n";if(u.s.c>_)u.s.c=_;if(u.e.c<_)u.e.c=_;switch(x.t){case"n":if(x.v==""||x.v==null){if(!z)continue;x.t="z"}else x.v=parseFloat(x.v);break;case"s":if(typeof x.v=="undefined"){if(!z)continue;x.t="z"}else{A=bi[parseInt(x.v,10)];x.v=A.t;x.r=A.r;if(f.cellHTML)x.h=A.h}break;case"str":x.t="s";x.v=x.v!=null?qe(x.v):"";if(f.cellHTML)x.h=Xe(x.v);break;case"inlineStr":g=k.match(a);x.t="s";if(g!=null&&(A=Ga(g[1]))){x.v=A.t;if(f.cellHTML)x.h=A.h}else x.v="";break;case"b":x.v=Ke(x.v);break;case"d":if(f.cellDates)x.v=ce(x.v,1);else{x.v=re(ce(x.v,1));x.t="n"}break;case"e":if(!f||f.cellText!==false)x.w=x.v;x.v=Kt[x.v];break;}E=T=0;D=null;if(O&&S.s!==undefined){D=p.CellXf[S.s];if(D!=null){if(D.numFmtId!=null)E=D.numFmtId;if(f.cellStyles){if(D.fillId!=null)T=D.fillId}}}_i(x,E,T,f,h,p);if(f.cellDates&&O&&x.t=="n"&&P.is_date(P._table[E])){x.t="d";x.v=ie(x.v)}if(R){var Y=gt(S.r);if(!c[Y.r])c[Y.r]=[];c[Y.r][Y.c]=x}else c[S.r]=x}}if(I.length>0)c["!rows"]=I}}();function ns(e,r,t,a){var n=[],i=[],s=kt(e["!ref"]),l="",o,c="",f=[],u=0,h=0,p=e["!rows"];var d=Array.isArray(e);var m={r:c},v,g=-1;for(h=s.s.c;h<=s.e.c;++h)f[h]=pt(h);for(u=s.s.r;u<=s.e.r;++u){i=[];c=ct(u);for(h=s.s.c;h<=s.e.c;++h){o=f[h]+c;var b=d?(e[u]||[])[h]:e[o];if(b===undefined)continue;if((l=ts(b,o,e,r,t,a))!=null)i.push(l)}if(i.length>0||p&&p[u]){m={r:c};if(p&&p[u]){v=p[u];if(v.hidden)m.hidden=1;g=-1;if(v.hpx)g=bn(v.hpx);else if(v.hpt)g=v.hpt;if(g>-1){m.ht=g;m.customHeight=1}if(v.level){m.outlineLevel=v.level}}n[n.length]=ur("row",i.join(""),m)}}if(p)for(;u-1){m.ht=g;m.customHeight=1}if(v.level){m.outlineLevel=v.level}n[n.length]=ur("row","",m)}}return n.join("")}var is=ur("worksheet",null,{xmlns:dr.main[0],"xmlns:r":dr.r});function ss(e,r,t,a){var n=[De,is];var i=t.SheetNames[e],s=0,l="";var o=t.Sheets[i];if(o==null)o={};var c=o["!ref"]||"A1";var f=kt(c);if(f.e.c>16383||f.e.r>1048575){if(r.WTF)throw new Error("Range "+c+" exceeds format limit A1:XFD1048576");f.e.c=Math.min(f.e.c,16383);f.e.r=Math.min(f.e.c,1048575);c=yt(f)}if(!a)a={};o["!comments"]=[];var u=[];Wi(o,t,e,r,n);n[n.length]=ur("dimension",null,{ref:c});n[n.length]=rs(o,r,e,t);if(r.sheetFormat)n[n.length]=ur("sheetFormatPr",null,{defaultRowHeight:r.sheetFormat.defaultRowHeight||"16",baseColWidth:r.sheetFormat.baseColWidth||"10",outlineLevelRow:r.sheetFormat.outlineLevelRow||"7"});if(o["!cols"]!=null&&o["!cols"].length>0)n[n.length]=Ki(o,o["!cols"]);n[s=n.length]="";o["!links"]=[];if(o["!ref"]!=null){l=ns(o,r,e,t,a);if(l.length>0)n[n.length]=l}if(n.length>s+1){n[n.length]="";n[s]=n[s].replace("/>",">")}if(o["!protect"])n[n.length]=Vi(o["!protect"]);if(o["!autofilter"]!=null)n[n.length]=Zi(o["!autofilter"],o,t,e);if(o["!merges"]!=null&&o["!merges"].length>0)n[n.length]=zi(o["!merges"]);var h=-1,p,d=-1;if(o["!links"].length>0){n[n.length]="";o["!links"].forEach(function(e){if(!e[1].Target)return;p={ref:e[0]};if(e[1].Target.charAt(0)!="#"){d=ua(a,-1,je(e[1].Target).replace(/#.*$/,""),ia.HLINK);p["r:id"]="rId"+d}if((h=e[1].Target.indexOf("#"))>-1)p.location=je(e[1].Target.slice(h+1));if(e[1].Tooltip)p.tooltip=je(e[1].Tooltip);n[n.length]=ur("hyperlink",null,p)});n[n.length]=""}delete o["!links"];if(o["!margins"]!=null)n[n.length]=Yi(o["!margins"]);if(!r||r.ignoreEC||r.ignoreEC==void 0)n[n.length]=cr("ignoredErrors",ur("ignoredError",null,{numberStoredAsText:1,sqref:c}));if(u.length>0){d=ua(a,-1,"../drawings/drawing"+(e+1)+".xml",ia.DRAW);n[n.length]=ur("drawing",null,{"r:id":"rId"+d});o["!drawing"]=u}if(o["!comments"].length>0){d=ua(a,-1,"../drawings/vmlDrawing"+(e+1)+".vml",ia.VML);n[n.length]=ur("legacyDrawing",null,{"r:id":"rId"+d});o["!legacy"]=d}if(n.length>1){n[n.length]="";n[1]=n[1].replace("/>",">")}return n.join("")}ia.CHART="http://schemas.openxmlformats.org/officeDocument/2006/relationships/chart";ia.CHARTEX="http://schemas.microsoft.com/office/2014/relationships/chartEx";function ls(e){var r=[];var t=e.match(/^/);var a;(e.match(/(.*?)<\/c:pt>/gm)||[]).forEach(function(e){var a=e.match(/(.*)<\/c:v><\/c:pt>/);if(!a)return;r[+a[1]]=t?+a[2]:a[2]});var n=Ue((e.match(/([\s\S]*?)<\/c:formatCode>/)||["","General"])[1]);(e.match(/(.*?)<\/c:f>/gm)||[]).forEach(function(e){a=e.replace(/<.*?>/g,"")});return[r,n,a]}function os(e,r,t,a,n,i){var s=i||{"!type":"chart"};if(!e)return i;var l=0,o=0,c="A";var f={s:{r:2e6,c:2e6},e:{r:0,c:0}};(e.match(/[\s\S]*?<\/c:numCache>/gm)||[]).forEach(function(e){var r=ls(e);f.s.r=f.s.c=0;f.e.c=l;c=pt(l);r[0].forEach(function(e,t){s[c+ct(t)]={t:"n",v:e,z:r[1]};o=t});if(f.e.r0)s["!ref"]=yt(f);return s}ia.CS="http://schemas.openxmlformats.org/officeDocument/2006/relationships/chartsheet";var cs=ur("chartsheet",null,{xmlns:dr.main[0],"xmlns:r":dr.r});function fs(e,r,t,a,n){if(!e)return e;if(!a)a={"!id":{}};var i={"!type":"chart","!drawel":null,"!rel":""};var s;var l=e.match(Ri);if(l)Ui(l[0],i,n,t);if(s=e.match(/drawing r:id="(.*?)"/))i["!rel"]=s[1];if(a["!id"][i["!rel"]])i["!drawel"]=a["!id"][i["!rel"]];return i}function us(e,r,t,a){var n=[De,cs];n[n.length]=ur("drawing",null,{"r:id":"rId1"});ua(a,-1,"../drawings/drawing"+(e+1)+".xml",ia.DRAW);if(n.length>2){n[n.length]="";n[1]=n[1].replace("/>",">")}return n.join("")}var hs=[["allowRefreshQuery",false,"bool"],["autoCompressPictures",true,"bool"],["backupFile",false,"bool"],["checkCompatibility",false,"bool"],["CodeName",""],["date1904",false,"bool"],["defaultThemeVersion",0,"int"],["filterPrivacy",false,"bool"],["hidePivotFieldList",false,"bool"],["promptedSolutions",false,"bool"],["publishItems",false,"bool"],["refreshAllConnections",false,"bool"],["saveExternalLinkValues",true,"bool"],["showBorderUnselectedTables",true,"bool"],["showInkAnnotation",true,"bool"],["showObjects","all"],["showPivotChartFilter",false,"bool"],["updateLinks","userSet"]];var ps=[["activeTab",0,"int"],["autoFilterDateGrouping",true,"bool"],["firstSheet",0,"int"],["minimized",false,"bool"],["showHorizontalScroll",true,"bool"],["showSheetTabs",true,"bool"],["showVerticalScroll",true,"bool"],["tabRatio",600,"int"],["visibility","visible"]];var ds=[];var ms=[["calcCompleted","true"],["calcMode","auto"],["calcOnSave","true"],["concurrentCalc","true"],["fullCalcOnLoad","false"],["fullPrecision","true"],["iterate","false"],["iterateCount","100"],["iterateDelta","0.001"],["refMode","A1"]];function vs(e,r){for(var t=0;t!=e.length;++t){var a=e[t];for(var n=0;n!=r.length;++n){var i=r[n];if(a[i[0]]==null)a[i[0]]=i[1];else switch(i[2]){case"bool":if(typeof a[i[0]]=="string")a[i[0]]=Ke(a[i[0]]);break;case"int":if(typeof a[i[0]]=="string")a[i[0]]=parseInt(a[i[0]],10);break;}}}}function gs(e,r){for(var t=0;t!=r.length;++t){var a=r[t];if(e[a[0]]==null)e[a[0]]=a[1];else switch(a[2]){case"bool":if(typeof e[a[0]]=="string")e[a[0]]=Ke(e[a[0]]);break;case"int":if(typeof e[a[0]]=="string")e[a[0]]=parseInt(e[a[0]],10);break;}}}function bs(e){gs(e.WBProps,hs);gs(e.CalcPr,ms);vs(e.WBView,ps);vs(e.Sheets,ds);wi.date1904=Ke(e.WBProps.date1904)}function ws(e){if(!e.Workbook)return"false";if(!e.Workbook.WBProps)return"false";return Ke(e.Workbook.WBProps.date1904)?"true":"false"}var ys="][*?/\\".split("");function ks(e,r){if(e.length>31){if(r)return false;throw new Error("Sheet names cannot exceed 31 chars")}var t=true;ys.forEach(function(a){if(e.indexOf(a)==-1)return;if(!r)throw new Error("Sheet name cannot contain : \\ / ? * [ ]");t=false});return t}function xs(e,r,t){e.forEach(function(a,n){ks(a);for(var i=0;i22)throw new Error("Bad Code Name: Worksheet"+s)}})}function Ss(e){if(!e||!e.SheetNames||!e.Sheets)throw new Error("Invalid Workbook");if(!e.SheetNames.length)throw new Error("Workbook is empty");var r=e.Workbook&&e.Workbook.Sheets||[];xs(e.SheetNames,r,!!e.vbaraw);for(var t=0;t":break;case"":;case"":break;case"":break;case"":hs.forEach(function(e){if(f[e[0]]==null)return;switch(e[2]){case"bool":t.WBProps[e[0]]=Ke(f[e[0]]);break;case"int":t.WBProps[e[0]]=parseInt(f[e[0]],10);break;default:t.WBProps[e[0]]=f[e[0]];}});if(f.codeName)t.WBProps.CodeName=qe(f.codeName);break;case"":break;case"":break;case"":;case"":break;case"":delete f[0];t.WBView.push(f);break;case"":break;case"":;case"":break;case"":break;case"":break;case"":;case"":break;case"":break;case"":;case"":a=false;break;case"":{i.Ref=Ue(qe(e.slice(s,c)));t.Names.push(i)}break;case"":break;case"":delete f[0];t.CalcPr=f;break;case"":break;case"":;case"":;case"":break;case"":;case"":;case"":break;case"":;case"":break;case"":break;case"":break;case"":;case"":break;case"":;case"":;case"":break;case"":a=false;break;case"":a=true;break;case"":a=false;break;case"0;var a={codeName:"ThisWorkbook"};if(e.Workbook&&e.Workbook.WBProps){hs.forEach(function(r){if(e.Workbook.WBProps[r[0]]==null)return;if(e.Workbook.WBProps[r[0]]==r[1])return;a[r[0]]=e.Workbook.WBProps[r[0]]});if(e.Workbook.WBProps.CodeName){a.codeName=e.Workbook.WBProps.CodeName;delete a.CodeName}}r[r.length]=ur("workbookPr",null,a);var n=e.Workbook&&e.Workbook.Sheets||[];var i=0;if(n&&n[0]&&!!n[0].Hidden){r[r.length]="";for(i=0;i!=e.SheetNames.length;++i){if(!n[i])break;if(!n[i].Hidden)break}if(i==e.SheetNames.length)i=0;r[r.length]='';r[r.length]=""}r[r.length]="";for(i=0;i!=e.SheetNames.length;++i){var s={name:je(e.SheetNames[i].slice(0,31))};s.sheetId=""+(i+1);s["r:id"]="rId"+(i+1);if(n[i])switch(n[i].Hidden){case 1:s.state="hidden";break;case 2:s.state="veryHidden";break;}r[r.length]=ur("sheet",null,s)}r[r.length]="";if(t){r[r.length]="";if(e.Workbook&&e.Workbook.Names)e.Workbook.Names.forEach(function(e){var t={name:e.Name};if(e.Comment)t.comment=e.Comment;if(e.Sheet!=null)t.localSheetId=""+e.Sheet;if(e.Hidden)t.hidden="1";if(!e.Ref)return;r[r.length]=ur("definedName",je(e.Ref),t)});r[r.length]=""}if(r.length>2){r[r.length]="";r[1]=r[1].replace("/>",">")}return r.join("")}function Es(e,r,t){if(r.slice(-4)===".bin")return parse_wb_bin(e,t);return _s(e,t)}function Ts(e,r,t,a,n,i,s,l){if(r.slice(-4)===".bin")return parse_ws_bin(e,a,t,n,i,s,l);return Bi(e,a,t,n,i,s,l)}function Os(e,r,t,a,n,i,s,l){if(r.slice(-4)===".bin")return parse_cs_bin(e,a,t,n,i,s,l);return fs(e,a,t,n,i,s,l)}function Ds(e,r,t,a,n,i,s,l){if(r.slice(-4)===".bin")return ii(e,a,t,n,i,s,l);return si(e,a,t,n,i,s,l)}function Ms(e,r,t,a,n,i,s,l){if(r.slice(-4)===".bin")return ai(e,a,t,n,i,s,l);return ni(e,a,t,n,i,s,l)}function Ns(e,r,t,a){if(r.slice(-4)===".bin")return parse_sty_bin(e,t,a);return On(e,t,a)}function Ps(e,r,t){return Wn(e,t)}function Rs(e,r,t){if(r.slice(-4)===".bin")return parse_sst_bin(e,t);return qa(e,t)}function Is(e,r,t){if(r.slice(-4)===".bin")return parse_comments_bin(e,t);return Kn(e,t)}function Ls(e,r,t){if(r.slice(-4)===".bin")return parse_cc_bin(e,r,t);return parse_cc_xml(e,r,t)}function Bs(e,r,t,a){if(t.slice(-4)===".bin")return Vn(e,r,t,a);return Hn(e,r,t,a)}function zs(e,r,t){return(r.slice(-4)===".bin"?write_wb_bin:Fs)(e,t)}function Us(e,r,t,a,n){return(r.slice(-4)===".bin"?write_ws_bin:ss)(e,t,a,n)}function $s(e,r,t,a,n){return(r.slice(-4)===".bin"?write_cs_bin:us)(e,t,a,n)}function Ws(e,r,t){return(r.slice(-4)===".bin"?write_sty_bin:Mn)(e,t)}function js(e,r,t){return(r.slice(-4)===".bin"?write_sst_bin:Qa)(e,t)}function Hs(e,r,t){return(r.slice(-4)===".bin"?write_comments_bin:Zn)(e,t)}var Vs=function(){function e(e,r){var t=r||{};if(v!=null&&t.dense==null)t.dense=v;var a=t.dense?[]:{};e=e.replace(//g,"");var n=e.match(/");var i=e.match(/<\/table/i);var s=n.index,l=i&&i.index||e.length;var o=ge(e.slice(s,l),/(:?]*>)/i,"");var c=-1,f=0,u=0,h=0;var p={s:{r:1e7,c:1e7},e:{r:0,c:0}};var d=[];for(s=0;s/i);for(l=0;l"))>-1)y=y.slice(k+1);for(var x=0;x")));h=C.colspan?+C.colspan:1;if((u=+C.rowspan)>1||h>1)d.push({s:{r:c,c:f},e:{r:c+(u||1)-1,c:f+h-1}});var _=C.t||C["data-t"]||"";if(!y.length){f+=h;continue}y=ar(y);if(p.s.r>c)p.s.r=c;if(p.e.rf)p.s.c=f;if(p.e.c[\s\S]*?<\/table>/gi);if(!a||a.length==0)throw new Error("Invalid HTML: could not find
");if(a.length==1)return Ct(e(a[0],t),t);var n=io.book_new();a.forEach(function(r,a){io.book_append_sheet(n,e(r,t),"Sheet"+(a+1))});return n}function t(e,r,t,a){var n=e["!merges"]||[];var i=[];for(var s=r.s.c;s<=r.e.c;++s){var l=0,o=0;for(var c=0;ct||n[c].s.c>s)continue;if(n[c].e.r1)p.rowspan=l;if(o>1)p.colspan=o;if(a.editable)h=''+h+"";else if(u){p["data-t"]=u&&u.t||"z";if(u.v!=null)p["data-v"]=u.v;if(u.z!=null)p["data-z"]=u.z;if(u.l&&(u.l.Target||"#").charAt(0)!="#")h=''+h+""}p.id=(a.id||"sjs")+"-"+f;i.push(ur("td",h,p))}var d="";return d+i.join("")+""}function a(e,r,t){var a=[];return a.join("")+""}var n='SheetJS Table Export';var i="";function s(e,r){var s=r||{};var l=s.header!=null?s.header:n;var o=s.footer!=null?s.footer:i;var c=[l];var f=wt(e["!ref"]);s.dense=Array.isArray(e);c.push(a(e,f,s));for(var u=f.s.r;u<=f.e.r;++u)c.push(t(e,f,u,s));c.push("
"+o);return c.join("")}return{to_workbook:r,to_sheet:e,_row:t,BEGIN:n,END:i,_preamble:a,from_sheet:s}}();function Xs(e,r,t){var a=t||{};if(v!=null)a.dense=v;var n=0,i=0;if(a.origin!=null){if(typeof a.origin=="number")n=a.origin;else{var s=typeof a.origin=="string"?gt(a.origin):a.origin;n=s.r;i=s.c}}var l=r.getElementsByTagName("tr");var o=Math.min(a.sheetRows||1e7,l.length);var c={s:{r:0,c:0},e:{r:n,c:i}};if(e["!ref"]){var f=wt(e["!ref"]);c.s.r=Math.min(c.s.r,f.s.r);c.s.c=Math.min(c.s.c,f.s.c);c.e.r=Math.max(c.e.r,f.e.r);c.e.c=Math.max(c.e.c,f.e.c);if(n==-1)c.e.r=n=f.e.r+1}var u=[],h=0;var p=e["!rows"]||(e["!rows"]=[]);var d=0,m=0,g=0,b=0,w=0,y=0;if(!e["!cols"])e["!cols"]=[];for(;d1||y>1)u.push({s:{r:m+n,c:b+i},e:{r:m+n+(w||1)-1,c:b+i+(y||1)-1}});var F={t:"s",v:C};var E=S.getAttribute("data-t")||S.getAttribute("t")||"";if(C!=null){if(C.length==0)F.t=E||"z";else if(a.raw||C.trim().length==0||E=="s"){}else if(C==="TRUE")F={t:"b",v:true};else if(C==="FALSE")F={t:"b",v:false};else if(!isNaN(pe(C)))F={t:"n",v:pe(C)};else if(!isNaN(me(C).getDate())){F={t:"d",v:ce(C)};if(!a.cellDates)F={t:"n",v:re(F.v)};F.z=a.dateNF||P._table[14]}}if(F.z===undefined&&_!=null)F.z=_;var T="",O=S.getElementsByTagName("A");if(O&&O.length)for(var D=0;D=o)e["!fullref"]=yt((c.e.r=l.length-d+m-1+n,c));return e}function Gs(e,r){var t=r||{};var a=t.dense?[]:{};return Xs(a,e,r)}function Ys(e,r){return Ct(Gs(e,r),r)}function Js(e){var r="";var t=Ks(e);if(t)r=t(e).getPropertyValue("display");if(!r)r=e.style&&e.style.display;return r==="none"}function Ks(e){if(e.ownerDocument.defaultView&&typeof e.ownerDocument.defaultView.getComputedStyle==="function")return e.ownerDocument.defaultView.getComputedStyle;if(typeof getComputedStyle==="function")return getComputedStyle;return null}var qs=function(){var e=function(e){var r=e.replace(/[\t\r\n]/g," ").trim().replace(/ +/g," ").replace(//g," ").replace(//g,function(e,r){return Array(parseInt(r,10)+1).join(" ")}).replace(/]*\/>/g,"\t").replace(//g,"\n");var t=Ue(r.replace(/<[^>]*>/g,""));return[t]};var r={day:["d","dd"],month:["m","mm"],year:["y","yy"],hours:["h","hh"],minutes:["m","mm"],seconds:["s","ss"],"am-pm":["A/P","AM/PM"],"day-of-week":["ddd","dddd"],era:["e","ee"],quarter:["\\Qm",'m\\"th quarter"']};return function t(a,n){var i=n||{};if(v!=null&&i.dense==null)i.dense=v;var s=xlml_normalize(a);var l=[],o;var c;var f={name:""},u="",h=0;var p;var d;var m={},g=[];var b=i.dense?[]:{};var w,y;var k={value:""};var x="",S=0,C;var _=[];var A=-1,F=-1,E={s:{r:1e6,c:1e7},e:{r:0,c:0}};var T=0;var O={};var D=[],M={},N=0,P=0;var R=[],I=1,L=1;var B=[];var z={Names:[]};var U={};var $=["",""];var W=[],j={};var H="",V=0;var X=false,G=false;var Y=0;xlmlregex.lastIndex=0;s=s.replace(//gm,"").replace(//gm,"");while(w=xlmlregex.exec(s))switch(w[3]=w[3].replace(/_.*$/,"")){case"table":;case"工作表":if(w[1]==="/"){if(E.e.c>=E.s.c&&E.e.r>=E.s.r)b["!ref"]=yt(E);else b["!ref"]="A1:A1";if(i.sheetRows>0&&i.sheetRows<=E.e.r){b["!fullref"]=b["!ref"];E.e.r=i.sheetRows-1;b["!ref"]=yt(E)}if(D.length)b["!merges"]=D;if(R.length)b["!rows"]=R;p.name=p["名称"]||p.name;if(typeof JSON!=="undefined")JSON.stringify(p);g.push(p.name);m[p.name]=b;G=false}else if(w[0].charAt(w[0].length-2)!=="/"){p=Ie(w[0],false);A=F=-1;E.s.r=E.s.c=1e7;E.e.r=E.e.c=0;b=i.dense?[]:{};D=[];R=[];G=true}break;case"table-row-group":if(w[1]==="/")--T;else++T;break;case"table-row":;case"行":if(w[1]==="/"){A+=I;I=1;break}d=Ie(w[0],false);if(d["行号"])A=d["行号"]-1;else if(A==-1)A=0;I=+d["number-rows-repeated"]||1;if(I<10)for(Y=0;Y0)R[A+Y]={level:T};F=-1;break;case"covered-table-cell":if(w[1]!=="/")++F;if(i.sheetStubs){if(i.dense){if(!b[A])b[A]=[];b[A][F]={t:"z"}}else b[bt({r:A,c:F})]={t:"z"}}x="";_=[];break;case"table-cell":;case"数据":if(w[0].charAt(w[0].length-2)==="/"){++F;k=Ie(w[0],false);L=parseInt(k["number-columns-repeated"]||"1",10);y={t:"z",v:null};if(k.formula&&i.cellFormula!=false)y.f=di(Ue(k.formula));if((k["数据类型"]||k["value-type"])=="string"){y.t="s";y.v=Ue(k["string-value"]||"");if(i.dense){if(!b[A])b[A]=[];b[A][F]=y}else{b[bt({r:A,c:F})]=y}}F+=L-1}else if(w[1]!=="/"){++F;x="";S=0;_=[];L=1;var J=I?A+I-1:A;if(F>E.e.c)E.e.c=F;if(FE.e.r)E.e.r=J;k=Ie(w[0],false);W=[];j={};y={t:k["数据类型"]||k["value-type"],v:null};if(i.cellFormula){if(k.formula)k.formula=Ue(k.formula);if(k["number-matrix-columns-spanned"]&&k["number-matrix-rows-spanned"]){N=parseInt(k["number-matrix-rows-spanned"],10)||0;P=parseInt(k["number-matrix-columns-spanned"],10)||0;M={s:{r:A,c:F},e:{r:A+N-1,c:F+P-1}};y.F=yt(M);B.push([M,y.F])}if(k.formula)y.f=di(k.formula);else for(Y=0;Y=B[Y][0].s.r&&A<=B[Y][0].e.r)if(F>=B[Y][0].s.c&&F<=B[Y][0].e.c)y.F=B[Y][1]}if(k["number-columns-spanned"]||k["number-rows-spanned"]){N=parseInt(k["number-rows-spanned"],10)||0;P=parseInt(k["number-columns-spanned"],10)||0;M={s:{r:A,c:F},e:{r:A+N-1,c:F+P-1}};D.push(M)}if(k["number-columns-repeated"])L=parseInt(k["number-columns-repeated"],10);switch(y.t){case"boolean":y.t="b";y.v=Ke(k["boolean-value"]);break;case"float":y.t="n";y.v=parseFloat(k.value);break;case"percentage":y.t="n";y.v=parseFloat(k.value);break;case"currency":y.t="n";y.v=parseFloat(k.value);break;case"date":y.t="d";y.v=ce(k["date-value"]);if(!i.cellDates){y.t="n";y.v=re(y.v)}y.z="m/d/yy";break;case"time":y.t="n";y.v=se(k["time-value"])/86400;if(i.cellDates){y.t="d";y.v=ie(y.v)}y.z="HH:MM:SS";break;case"number":y.t="n";y.v=parseFloat(k["数据数值"]);break;default:if(y.t==="string"||y.t==="text"||!y.t){y.t="s";if(k["string-value"]!=null){x=Ue(k["string-value"]);_=[]}}else throw new Error("Unsupported value type "+y.t);}}else{X=false;if(y.t==="s"){y.v=x||"";if(_.length)y.R=_;X=S==0}if(U.Target)y.l=U;if(W.length>0){y.c=W;W=[]}if(x&&i.cellText!==false)y.w=x;if(X){y.t="z";delete y.v}if(!X||i.sheetStubs){if(!(i.sheetRows&&i.sheetRows<=A)){for(var K=0;K0)b[A+K][F+L]=ue(y)}else{b[bt({r:A+K,c:F})]=y;while(--L>0)b[bt({r:A+K,c:F+L})]=ue(y)}if(E.e.c<=F)E.e.c=F}}}L=parseInt(k["number-columns-repeated"]||"1",10);F+=L-1;L=0;y={};x="";_=[]}U={};break;case"document":;case"document-content":;case"电子表格文档":;case"spreadsheet":;case"主体":;case"scripts":;case"styles":;case"font-face-decls":;case"master-styles":if(w[1]==="/"){if((o=l.pop())[0]!==w[3])throw"Bad state: "+o}else if(w[0].charAt(w[0].length-2)!=="/")l.push([w[3],true]);break;case"annotation":if(w[1]==="/"){if((o=l.pop())[0]!==w[3])throw"Bad state: "+o;j.t=x;if(_.length)j.R=_;j.a=H;W.push(j)}else if(w[0].charAt(w[0].length-2)!=="/"){l.push([w[3],false])}H="";V=0;x="";S=0;_=[];break;case"creator":if(w[1]==="/"){H=s.slice(V,w.index)}else V=w.index+w[0].length;break;case"meta":;case"元数据":;case"settings":;case"config-item-set":;case"config-item-map-indexed":;case"config-item-map-entry":;case"config-item-map-named":;case"shapes":;case"frame":;case"text-box":;case"image":;case"data-pilot-tables":;case"list-style":;case"form":;case"dde-links":;case"event-listeners":;case"chart":if(w[1]==="/"){if((o=l.pop())[0]!==w[3])throw"Bad state: "+o}else if(w[0].charAt(w[0].length-2)!=="/")l.push([w[3],false]);x="";S=0;_=[];break;case"scientific-number":break;case"currency-symbol":break;case"currency-style":break;case"number-style":;case"percentage-style":;case"date-style":;case"time-style":if(w[1]==="/"){O[f.name]=u;if((o=l.pop())[0]!==w[3])throw"Bad state: "+o}else if(w[0].charAt(w[0].length-2)!=="/"){u="";f=Ie(w[0],false);l.push([w[3],true])}break;case"script":break;case"libraries":break;case"automatic-styles":break;case"default-style":;case"page-layout":break;case"style":break;case"map":break;case"font-face":break;case"paragraph-properties":break;case"table-properties":break;case"table-column-properties":break;case"table-row-properties":break;case"table-cell-properties":break;case"number":switch(l[l.length-1][0]){case"time-style":;case"date-style":c=Ie(w[0],false);u+=r[w[3]][c.style==="long"?1:0];break;}break;case"fraction":break;case"day":;case"month":;case"year":;case"era":;case"day-of-week":;case"week-of-year":;case"quarter":;case"hours":;case"minutes":;case"seconds":;case"am-pm":switch(l[l.length-1][0]){case"time-style":;case"date-style":c=Ie(w[0],false);u+=r[w[3]][c.style==="long"?1:0];break;}break;case"boolean-style":break;case"boolean":break;case"text-style":break;case"text":if(w[0].slice(-2)==="/>")break;else if(w[1]==="/")switch(l[l.length-1][0]){case"number-style":;case"date-style":;case"time-style":u+=s.slice(h,w.index);break;}else h=w.index+w[0].length;break;case"named-range":c=Ie(w[0],false);$=vi(c["cell-range-address"]);var q={Name:c.name,Ref:$[0]+"!"+$[1]};if(G)q.Sheet=g.length;z.Names.push(q);break;case"text-content":break;case"text-properties":break;case"embedded-text":break;case"body":;case"电子表格":break;case"forms":break;case"table-column":break;case"table-header-rows":break;case"table-rows":break;case"table-column-group":break;case"table-header-columns":break;case"table-columns":break;case"null-date":break;case"graphic-properties":break;case"calculation-settings":break;case"named-expressions":break;case"label-range":break;case"label-ranges":break;case"named-expression":break;case"sort":break;case"sort-by":break;case"sort-groups":break;case"tab":break;case"line-break":break;case"span":break;case"p":;case"文本串":if(["master-styles"].indexOf(l[l.length-1][0])>-1)break;if(w[1]==="/"&&(!k||!k["string-value"])){var Z=e(s.slice(S,w.index),C);x=(x.length>0?x+"\n":"")+Z[0]}else{C=Ie(w[0],false);S=w.index+w[0].length}break;case"s":break;case"database-range":if(w[1]==="/")break;try{$=vi(Ie(w[0])["target-range-address"]);m[$[0]]["!autofilter"]={ref:$[1]}}catch(Q){}break;case"date":break;case"object":break;case"title":;case"标题":break;case"desc":break;case"binary-data":break;case"table-source":break;case"scenario":break;case"iteration":break;case"content-validations":break;case"content-validation":break;case"help-message":break;case"error-message":break;case"database-ranges":break;case"filter":break;case"filter-and":break;case"filter-or":break;case"filter-condition":break;case"list-level-style-bullet":break;case"list-level-style-number":break;case"list-level-properties":break;case"sender-firstname":;case"sender-lastname":;case"sender-initials":;case"sender-title":;case"sender-position":;case"sender-email":;case"sender-phone-private":;case"sender-fax":;case"sender-company":;case"sender-phone-work":;case"sender-street":;case"sender-city":;case"sender-postal-code":;case"sender-country":;case"sender-state-or-province":;case"author-name":;case"author-initials":;case"chapter":;case"file-name":;case"template-name":;case"sheet-name":break;case"event-listener":break;case"initial-creator":;case"creation-date":;case"print-date":;case"generator":;case"document-statistic":;case"user-defined":;case"editing-duration":;case"editing-cycles":break;case"config-item":break;case"page-number":break;case"page-count":break;case"time":break;case"cell-range-source":break;case"detective":break;case"operation":break;case"highlighted-range":break;case"data-pilot-table":;case"source-cell-range":;case"source-service":;case"data-pilot-field":;case"data-pilot-level":;case"data-pilot-subtotals":;case"data-pilot-subtotal":;case"data-pilot-members":;case"data-pilot-member":;case"data-pilot-display-info":;case"data-pilot-sort-info":;case"data-pilot-layout-info":;case"data-pilot-field-reference":;case"data-pilot-groups":;case"data-pilot-group":;case"data-pilot-group-member":break;case"rect":break;case"dde-connection-decls":;case"dde-connection-decl":;case"dde-link":;case"dde-source":break;case"properties":break;case"property":break;case"a":if(w[1]!=="/"){U=Ie(w[0],false);if(!U.href)break;U.Target=Ue(U.href);delete U.href;if(U.Target.charAt(0)=="#"&&U.Target.indexOf(".")>-1){$=vi(U.Target.slice(1));U.Target="#"+$[0]+"!"+$[1]}else if(U.Target.match(/^\.\.[\\\/]/))U.Target=U.Target.slice(3)}break;case"table-protection":break;case"data-pilot-grand-total":break;case"office-document-common-attrs":break;default:switch(w[2]){case"dc:":;case"calcext:":;case"loext:":;case"ooo:":;case"chartooo:":;case"draw:":;case"style:":;case"chart:":;case"form:":;case"uof:":;case"表:":;case"字:":break;default:if(i.WTF)throw new Error(w);};}var ee={Sheets:m,SheetNames:g,Workbook:z};if(i.bookSheets)delete ee.Sheets;return ee}}();function Zs(e,r){r=r||{};if(ke(e,"META-INF/manifest.xml"))pa(Se(e,"META-INF/manifest.xml"),r);var t=Ce(e,"content.xml");if(!t)throw new Error("Missing content.xml in ODS / UOF file");var a=qs(qe(t),r);if(ke(e,"meta.xml"))a.Props=ka(Se(e,"meta.xml"));return a}function Qs(e,r){return qs(e,r)}var el=function(){var e=["",'',"",'',"",'',"",""].join("");var r=""+e+"";return function t(){return De+r}}();var rl=function(){var e=function(e){return je(e).replace(/ +/g,function(e){return''}).replace(/\t/g,"").replace(/\n/g,"").replace(/^ /,"").replace(/ $/,"")};var r=" \n";var t=" \n";var a=function(a,n,i){var s=[];s.push(' \n');var l=0,o=0,c=wt(a["!ref"]||"A1");var f=a["!merges"]||[],u=0;var h=Array.isArray(a);if(a["!cols"]){for(o=0;o<=c.e.c;++o)s.push(" \n")}var p="",d=a["!rows"]||[];for(l=0;l\n")}for(;l<=c.e.r;++l){p=d[l]?' table:style-name="ro'+d[l].ods+'"':"";s.push(" \n");for(o=0;oo)continue;if(f[u].s.r>l)continue;if(f[u].e.c\n")}s.push(" \n");return s.join("")};var n=function(e,r){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 t=0;r.SheetNames.map(function(e){return r.Sheets[e]}).forEach(function(r){if(!r)return;if(r["!cols"]){for(var a=0;a\n');e.push(' \n');e.push(" \n");++t}}});var a=0;r.SheetNames.map(function(e){return r.Sheets[e]}).forEach(function(r){if(!r)return;if(r["!rows"]){for(var t=0;t\n');e.push(' \n');e.push(" \n");++a}}});e.push(' \n');e.push(' \n');e.push(" \n");e.push(' \n');e.push(" \n")};return function i(e,r){var t=[De];var i=fr({"xmlns:office":"urn:oasis:names:tc:opendocument:xmlns:office:1.0","xmlns:table":"urn:oasis:names:tc:opendocument:xmlns:table:1.0","xmlns:style":"urn:oasis:names:tc:opendocument:xmlns:style:1.0","xmlns:text":"urn:oasis:names:tc:opendocument:xmlns:text:1.0","xmlns:draw":"urn:oasis:names:tc:opendocument:xmlns:drawing:1.0","xmlns:fo":"urn:oasis:names:tc:opendocument:xmlns:xsl-fo-compatible:1.0","xmlns:xlink":"http://www.w3.org/1999/xlink","xmlns:dc":"http://purl.org/dc/elements/1.1/","xmlns:meta":"urn:oasis:names:tc:opendocument:xmlns:meta:1.0","xmlns:number":"urn:oasis:names:tc:opendocument:xmlns:datastyle:1.0","xmlns:presentation":"urn:oasis:names:tc:opendocument:xmlns:presentation:1.0","xmlns:svg":"urn:oasis:names:tc:opendocument:xmlns:svg-compatible:1.0","xmlns:chart":"urn:oasis:names:tc:opendocument:xmlns:chart:1.0","xmlns:dr3d":"urn:oasis:names:tc:opendocument:xmlns:dr3d:1.0","xmlns:math":"http://www.w3.org/1998/Math/MathML","xmlns:form":"urn:oasis:names:tc:opendocument:xmlns:form:1.0","xmlns:script":"urn:oasis:names:tc:opendocument:xmlns:script:1.0","xmlns:ooo":"http://openoffice.org/2004/office","xmlns:ooow":"http://openoffice.org/2004/writer","xmlns:oooc":"http://openoffice.org/2004/calc","xmlns:dom":"http://www.w3.org/2001/xml-events","xmlns:xforms":"http://www.w3.org/2002/xforms","xmlns:xsd":"http://www.w3.org/2001/XMLSchema","xmlns:xsi":"http://www.w3.org/2001/XMLSchema-instance","xmlns:sheet":"urn:oasis:names:tc:opendocument:sh33tjs:1.0","xmlns:rpt":"http://openoffice.org/2005/report","xmlns:of":"urn:oasis:names:tc:opendocument:xmlns:of:1.2","xmlns:xhtml":"http://www.w3.org/1999/xhtml","xmlns:grddl":"http://www.w3.org/2003/g/data-view#","xmlns:tableooo":"http://openoffice.org/2009/table","xmlns:drawooo":"http://openoffice.org/2010/draw","xmlns:calcext":"urn:org:documentfoundation:names:experimental:calc:xmlns:calcext:1.0","xmlns:loext":"urn:org:documentfoundation:names:experimental:office:xmlns:loext:1.0","xmlns:field":"urn:openoffice:names:experimental:ooo-ms-interop:xmlns:field:1.0","xmlns:formx":"urn:openoffice:names:experimental:ooxml-odf-interop:xmlns:form:1.0","xmlns:css3t":"http://www.w3.org/TR/css3-text/","office:version":"1.2"});var s=fr({"xmlns:config":"urn:oasis:names:tc:opendocument:xmlns:config:1.0","office:mimetype":"application/vnd.oasis.opendocument.spreadsheet"});if(r.bookType=="fods"){t.push("\n");t.push(ba().replace(/office:document-meta/g,"office:meta"))}else t.push("\n");n(t,e);t.push(" \n");t.push(" \n");for(var l=0;l!=e.SheetNames.length;++l)t.push(a(e.Sheets[e.SheetNames[l]],e,l,r));t.push(" \n");t.push(" \n");if(r.bookType=="fods")t.push("");else t.push("");return t.join("")}}();function tl(e,r){if(r.bookType=="fods")return rl(e,r);var t=Ee();var a="";var n=[];var i=[];a="mimetype";Fe(t,a,"application/vnd.oasis.opendocument.spreadsheet");a="content.xml";Fe(t,a,rl(e,r));n.push([a,"text/xml"]);i.push([a,"ContentFile"]);a="styles.xml";Fe(t,a,el(e,r));n.push([a,"text/xml"]);i.push([a,"StylesFile"]);a="meta.xml";Fe(t,a,De+ba());n.push([a,"text/xml"]);i.push([a,"MetadataFile"]);a="manifest.rdf";Fe(t,a,ga(i));n.push([a,"application/rdf+xml"]);a="META-INF/manifest.xml";Fe(t,a,da(n));return t}function al(e){return function r(t){for(var a=0;a!=e.length;++a){var n=e[a];if(t[n[0]]===undefined)t[n[0]]=n[1];if(n[2]==="n")t[n[0]]=Number(t[n[0]])}}}var nl=function(e){al([["cellNF",false],["cellHTML",true],["cellFormula",true],["cellStyles",false],["cellText",true],["cellDates",false],["sheetStubs",false],["sheetRows",0,"n"],["bookDeps",false],["bookSheets",false],["bookProps",false],["bookFiles",false],["bookVBA",false],["password",""],["WTF",false]])(e)};var il=al([["cellDates",false],["bookSST",false],["bookType","xlsx"],["compression",false],["WTF",false]]);function sl(e){if(ia.WS.indexOf(e)>-1)return"sheet";if(ia.CS&&e==ia.CS)return"chart";if(ia.DS&&e==ia.DS)return"dialog";if(ia.MS&&e==ia.MS)return"macro";return e&&e.length?e:"sheet"}function ll(e,r){if(!e)return 0;try{e=r.map(function a(r){if(!r.id)r.id=r.strRelID;return[r.name,e["!id"][r.id].Target,sl(e["!id"][r.id].Type)]})}catch(t){return null}return!e||e.length===0?null:e}function ol(e,r,t,a,n,i,s,l,o,c,f,u){try{i[a]=la(Ce(e,t,true),r);var h=Se(e,r);var p;switch(l){case"sheet":p=Ts(h,r,n,o,i[a],c,f,u);break;case"chart":p=Os(h,r,n,o,i[a],c,f,u);if(!p||!p["!drawel"])break;var d=Oe(p["!drawel"].Target,r);var m=sa(d);var v=Xn(Ce(e,d,true),la(Ce(e,m,true),d));var g=Oe(v,d);var b=sa(g);p=os(Ce(e,g,true),g,o,la(Ce(e,b,true),g),c,p);break;case"macro":p=Ds(h,r,n,o,i[a],c,f,u);break;case"dialog":p=Ms(h,r,n,o,i[a],c,f,u);break;default:throw new Error("Unrecognized sheet type "+l);}s[a]=p;var w=[];if(i&&i[a])J(i[a]).forEach(function(t){if(i[a][t].Type==ia.CMNT){var n=Oe(i[a][t].Target,r);w=Is(Se(e,n,true),n,o);if(!w||!w.length)return;Jn(p,w)}})}catch(y){if(o.WTF)throw y}}function cl(e){return e.charAt(0)=="/"?e.slice(1):e}function fl(e,r){R(P);r=r||{};nl(r);if(ke(e,"META-INF/manifest.xml"))return Zs(e,r);if(ke(e,"objectdata.xml"))return Zs(e,r);if(ke(e,"Index/Document.iwa")){if(typeof Uint8Array=="undefined")throw new Error("NUMBERS file parsing requires Uint8Array support");if(typeof NUMBERS!="undefined"){if(e.FileIndex)return NUMBERS.parse_numbers(e);var t=H.utils.cfb_new();Ae(e).forEach(function(r){Fe(t,r,_e(e,r))});return NUMBERS.parse_numbers(t)}throw new Error("Unsupported NUMBERS file")}if(!ke(e,"[Content_Types].xml")){if(ke(e,"index.xml.gz"))throw new Error("Unsupported NUMBERS 08 file");if(ke(e,"index.xml"))throw new Error("Unsupported NUMBERS 09 file");throw new Error("Unsupported ZIP file")}var a=Ae(e);var n=ra(Ce(e,"[Content_Types].xml"));var i=false;var s,l;if(n.workbooks.length===0){l="xl/workbook.xml";if(Se(e,l,true))n.workbooks.push(l)}if(n.workbooks.length===0){l="xl/workbook.bin";if(!Se(e,l,true))throw new Error("Could not find workbook");n.workbooks.push(l);i=true}if(n.workbooks[0].slice(-3)=="bin")i=true;var o={};var c={};if(!r.bookSheets&&!r.bookProps){bi=[];if(n.sst)try{bi=Rs(Se(e,cl(n.sst)),n.sst,r)}catch(f){if(r.WTF)throw f}if(r.cellStyles&&n.themes.length)o=Ps(Ce(e,n.themes[0].replace(/^\//,""),true)||"",n.themes[0],r);if(n.style)c=Ns(Se(e,cl(n.style)),n.style,o,r)}n.links.map(function(t){try{var a=la(Ce(e,sa(cl(t))),t);return Bs(Se(e,cl(t)),a,t,r)}catch(n){}});var u=Es(Se(e,cl(n.workbooks[0])),n.workbooks[0],r);var h={},p="";if(n.coreprops.length){p=Se(e,cl(n.coreprops[0]),true);if(p)h=ka(p);if(n.extprops.length!==0){p=Se(e,cl(n.extprops[0]),true);if(p)Ea(p,h,r)}}var d={};if(!r.bookSheets||r.bookProps){if(n.custprops.length!==0){p=Ce(e,cl(n.custprops[0]),true);if(p)d=Ma(p,r)}}var m={};if(r.bookSheets||r.bookProps){if(u.Sheets)s=u.Sheets.map(function D(e){return e.name});else if(h.Worksheets&&h.SheetNames.length>0)s=h.SheetNames;if(r.bookProps){m.Props=h;m.Custprops=d}if(r.bookSheets&&typeof s!=="undefined")m.SheetNames=s;if(r.bookSheets?m.SheetNames:r.bookProps)return m}s={};var v={};if(r.bookDeps&&n.calcchain)v=Ls(Se(e,cl(n.calcchain)),n.calcchain,r);var g=0;var b={};var w,y;{var k=u.Sheets;h.Worksheets=k.length;h.SheetNames=[];for(var x=0;x!=k.length;++x){h.SheetNames[x]=k[x].name}}var S=i?"bin":"xml";var C=n.workbooks[0].lastIndexOf("/");var _=(n.workbooks[0].slice(0,C+1)+"_rels/"+n.workbooks[0].slice(C+1)+".rels").replace(/^\//,"");if(!ke(e,_))_="xl/_rels/workbook."+S+".rels";var A=la(Ce(e,_,true),_);if(A)A=ll(A,u.Sheets);var F=Se(e,"xl/worksheets/sheet.xml",true)?1:0;e:for(g=0;g!=h.Worksheets;++g){var E="sheet";if(A&&A[g]){w="xl/"+A[g][1].replace(/[\/]?xl\//,"");if(!ke(e,w))w=A[g][1];if(!ke(e,w))w=_.replace(/_rels\/.*$/,"")+A[g][1];E=A[g][2]}else{w="xl/worksheets/sheet"+(g+1-F)+"."+S;w=w.replace(/sheet0\./,"sheet.")}y=w.replace(/^(.*)(\/)([^\/]*)$/,"$1/_rels/$3.rels");if(r&&r.sheets!=null)switch(typeof r.sheets){case"number":if(g!=r.sheets)continue e;break;case"string":if(h.SheetNames[g].toLowerCase()!=r.sheets.toLowerCase())continue e;break;default:if(Array.isArray&&Array.isArray(r.sheets)){var T=false;for(var O=0;O!=r.sheets.length;++O){if(typeof r.sheets[O]=="number"&&r.sheets[O]==g)T=1;if(typeof r.sheets[O]=="string"&&r.sheets[O].toLowerCase()==h.SheetNames[g].toLowerCase())T=1}if(!T)continue e};}ol(e,w,y,h.SheetNames[g],g,b,s,E,r,u,o,c)}m={Directory:n,Workbook:u,Props:h,Custprops:d,Deps:v,Sheets:s,SheetNames:h.SheetNames,Strings:bi,Styles:c,Themes:o,SSF:P.get_table()};if(r&&r.bookFiles){if(e.files){m.keys=a;m.files=e.files}else{m.keys=[];m.files={};e.FullPaths.forEach(function(r,t){r=r.replace(/^Root Entry[\/]/,"");m.keys.push(r);m.files[r]=e.FileIndex[t]})}}if(r&&r.bookVBA){if(n.vba.length>0)m.vbaraw=Se(e,cl(n.vba[0]),true);else if(n.defaults&&n.defaults.bin===Qn)m.vbaraw=Se(e,"xl/vbaProject.bin",true)}return m}function ul(e,r){var t=r||{};var a="Workbook",n=H.find(e,a);try{a="/!DataSpaces/Version";n=H.find(e,a);if(!n||!n.content)throw new Error("ECMA-376 Encrypted file missing "+a);parse_DataSpaceVersionInfo(n.content);a="/!DataSpaces/DataSpaceMap";n=H.find(e,a);if(!n||!n.content)throw new Error("ECMA-376 Encrypted file missing "+a);var i=parse_DataSpaceMap(n.content);if(i.length!==1||i[0].comps.length!==1||i[0].comps[0].t!==0||i[0].name!=="StrongEncryptionDataSpace"||i[0].comps[0].v!=="EncryptedPackage")throw new Error("ECMA-376 Encrypted file bad "+a);a="/!DataSpaces/DataSpaceInfo/StrongEncryptionDataSpace";n=H.find(e,a);if(!n||!n.content)throw new Error("ECMA-376 Encrypted file missing "+a);var s=parse_DataSpaceDefinition(n.content);if(s.length!=1||s[0]!="StrongEncryptionTransform")throw new Error("ECMA-376 Encrypted file bad "+a);a="/!DataSpaces/TransformInfo/StrongEncryptionTransform/!Primary";n=H.find(e,a);if(!n||!n.content)throw new Error("ECMA-376 Encrypted file missing "+a);parse_Primary(n.content)}catch(l){}a="/EncryptionInfo";n=H.find(e,a);if(!n||!n.content)throw new Error("ECMA-376 Encrypted file missing "+a);var o=parse_EncryptionInfo(n.content);a="/EncryptedPackage";n=H.find(e,a);if(!n||!n.content)throw new Error("ECMA-376 Encrypted file missing "+a);if(o[0]==4&&typeof decrypt_agile!=="undefined")return decrypt_agile(o[1],n.content,t.password||"",t);if(o[0]==2&&typeof decrypt_std76!=="undefined")return decrypt_std76(o[1],n.content,t.password||"",t);throw new Error("File is password-protected")}function hl(e,r){if(r.bookType=="ods")return tl(e,r);return pl(e,r)}function pl(e,r){Gn=1024;if(e&&!e.SSF){e.SSF=P.get_table()}if(e&&e.SSF){R(P);P.load_table(e.SSF);r.revssf=Z(e.SSF);r.revssf[e.SSF[65535]]=0;r.ssf=e.SSF}r.rels={};r.wbrels={};r.Strings=[];r.Strings.Count=0;r.Strings.Unique=0;if(yi)r.revStrings=new Map;else{r.revStrings={};r.revStrings.foo=[];delete r.revStrings.foo}var t=r.bookType=="xlsb"?"bin":"xml";var a=ti.indexOf(r.bookType)>-1;var n=ea();il(r=r||{});var i=Ee();var s="",l=0;r.cellXfs=[];Ci(r.cellXfs,{},{revssf:{General:0}});if(!e.Props)e.Props={};s="docProps/core.xml";Fe(i,s,Ca(e.Props,r));n.coreprops.push(s);ua(r.rels,2,s,ia.CORE_PROPS);s="docProps/app.xml";if(e.Props&&e.Props.SheetNames){}else if(!e.Workbook||!e.Workbook.Sheets)e.Props.SheetNames=e.SheetNames;else{var o=[];for(var c=0;c0){s="docProps/custom.xml";Fe(i,s,Pa(e.Custprops,r));n.custprops.push(s);ua(r.rels,4,s,ia.CUST_PROPS)}for(l=1;l<=e.SheetNames.length;++l){var f={"!id":{}};var u=e.Sheets[e.SheetNames[l-1]];var h=(u||{})["!type"]||"sheet";switch(h){case"chart":;default:s="xl/worksheets/sheet"+l+"."+t;Fe(i,s,Us(l-1,s,r,e,f));n.sheets.push(s);ua(r.wbrels,-1,"worksheets/sheet"+l+"."+t,ia.WS[0]);}if(u){var p=u["!comments"];var d=false;if(p&&p.length>0){var m="xl/comments"+l+"."+t;Fe(i,m,Hs(p,m,r));n.comments.push(m);ua(f,-1,"../comments"+l+"."+t,ia.CMNT);d=true}if(u["!legacy"]){if(d)Fe(i,"xl/drawings/vmlDrawing"+l+".vml",Yn(l,u["!comments"]))}delete u["!comments"];delete u["!legacy"]}if(f["!id"].rId1)Fe(i,sa(s),ca(f)); +}if(r.Strings!=null&&r.Strings.length>0){s="xl/sharedStrings."+t;Fe(i,s,js(r.Strings,s,r));n.strs.push(s);ua(r.wbrels,-1,"sharedStrings."+t,ia.SST)}s="xl/workbook."+t;Fe(i,s,zs(e,s,r));n.workbooks.push(s);ua(r.rels,1,s,ia.WB);s="xl/theme/theme1.xml";Fe(i,s,jn(e.Themes,r));n.themes.push(s);ua(r.wbrels,-1,"theme/theme1.xml",ia.THEME);s="xl/styles."+t;Fe(i,s,Ws(e,s,r));n.styles.push(s);ua(r.wbrels,-1,"styles."+t,ia.STY);if(e.vbaraw&&a){s="xl/vbaProject.bin";Fe(i,s,e.vbaraw);n.vba.push(s);ua(r.wbrels,-1,"vbaProject.bin",ia.VBA)}Fe(i,"[Content_Types].xml",na(n,r));Fe(i,"_rels/.rels",ca(r.rels));Fe(i,"xl/_rels/workbook."+t+".rels",ca(r.wbrels));delete r.revssf;delete r.ssf;return i}function dl(e,r){Gn=1024;if(e&&!e.SSF){e.SSF=P.get_table()}if(e&&e.SSF){R(P);P.load_table(e.SSF);r.revssf=Z(e.SSF);r.revssf[e.SSF[65535]]=0;r.ssf=e.SSF}r.rels={};r.wbrels={};r.Strings=[];r.Strings.Count=0;r.Strings.Unique=0;if(yi)r.revStrings=new Map;else{r.revStrings={};r.revStrings.foo=[];delete r.revStrings.foo}var t="xml";var a=ti.indexOf(r.bookType)>-1;var n=ea();il(r=r||{});var i=Ee();var s="",l=0;r.cellXfs=[];Ci(r.cellXfs,{},{revssf:{General:0}});if(!e.Props)e.Props={};s="docProps/core.xml";Fe(i,s,Ca(e.Props,r));n.coreprops.push(s);ua(r.rels,2,s,ia.CORE_PROPS);s="docProps/app.xml";if(e.Props&&e.Props.SheetNames){}else if(!e.Workbook||!e.Workbook.Sheets)e.Props.SheetNames=e.SheetNames;else{var o=[];for(var c=0;c0){s="docProps/custom.xml";Fe(i,s,Pa(e.Custprops,r));n.custprops.push(s);ua(r.rels,4,s,ia.CUST_PROPS)}for(l=1;l<=e.SheetNames.length;++l){var f={"!id":{}};var u=e.Sheets[e.SheetNames[l-1]];var h=(u||{})["!type"]||"sheet";switch(h){case"chart":;default:s="xl/worksheets/sheet"+l+"."+t;Fe(i,s,ss(l-1,r,e,f));n.sheets.push(s);ua(r.wbrels,-1,"worksheets/sheet"+l+"."+t,ia.WS[0]);}if(u){var p=u["!comments"];var d=false;if(p&&p.length>0){var m="xl/comments"+l+"."+t;Fe(i,m,Zn(p,r));n.comments.push(m);ua(f,-1,"../comments"+l+"."+t,ia.CMNT);d=true}if(u["!legacy"]){if(d)Fe(i,"xl/drawings/vmlDrawing"+l+".vml",Yn(l,u["!comments"]))}delete u["!comments"];delete u["!legacy"]}if(f["!id"].rId1)Fe(i,sa(s),ca(f))}if(r.Strings!=null&&r.Strings.length>0){s="xl/sharedStrings."+t;Fe(i,s,Qa(r.Strings,r));n.strs.push(s);ua(r.wbrels,-1,"sharedStrings."+t,ia.SST)}s="xl/workbook."+t;Fe(i,s,Fs(e,r));n.workbooks.push(s);ua(r.rels,1,s,ia.WB);s="xl/theme/theme1.xml";Fe(i,s,jn(e.Themes,r));n.themes.push(s);ua(r.wbrels,-1,"theme/theme1.xml",ia.THEME);s="xl/styles."+t;Fe(i,s,Mn(e,r));n.styles.push(s);ua(r.wbrels,-1,"styles."+t,ia.STY);if(e.vbaraw&&a){s="xl/vbaProject.bin";Fe(i,s,e.vbaraw);n.vba.push(s);ua(r.wbrels,-1,"vbaProject.bin",ia.VBA)}Fe(i,"[Content_Types].xml",na(n,r));Fe(i,"_rels/.rels",ca(r.rels));Fe(i,"xl/_rels/workbook."+t+".rels",ca(r.wbrels));delete r.revssf;delete r.ssf;return i}function ml(e,r){var t="";switch((r||{}).type||"base64"){case"buffer":return[e[0],e[1],e[2],e[3],e[4],e[5],e[6],e[7]];case"base64":t=b.decode(e.slice(0,12));break;case"binary":t=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 "+(r&&r.type||"undefined"));}return[t.charCodeAt(0),t.charCodeAt(1),t.charCodeAt(2),t.charCodeAt(3),t.charCodeAt(4),t.charCodeAt(5),t.charCodeAt(6),t.charCodeAt(7)]}function vl(e,r){if(H.find(e,"EncryptedPackage"))return ul(e,r);return parse_xlscfb(e,r)}function gl(e,r){var t,a=e;var n=r||{};if(!n.type)n.type=w&&Buffer.isBuffer(e)?"buffer":"base64";t=Te(a,n);return fl(t,n)}function bl(e,r){var t=0;e:while(t=2&&n[3]===0)return WK_.to_workbook(a,t);if(n[2]===0&&(n[3]===8||n[3]===9))return WK_.to_workbook(a,t)}break;case 3:;case 131:;case 139:;case 140:return Ra.to_workbook(a,t);case 123:if(n[1]===92&&n[2]===114&&n[3]===116)return RTF.to_workbook(a,t);break;case 10:;case 13:;case 32:return wl(a,t);case 137:if(n[1]===80&&n[2]===78&&n[3]===71)throw new Error("PNG Image File is not a spreadsheet");break;}if(Ra.versions.indexOf(n[0])>-1&&n[2]<=12&&n[3]<=31)return Ra.to_workbook(a,t);return xl(e,a,t,i)}function Cl(e,r){var t=r||{};t.type="file";return Sl(e,t)}function _l(e){return function r(t,a){var n=0;if(a.sheet){if(typeof a.sheet=="number")n=a.sheet;else n=t.SheetNames.indexOf(a.sheet);if(!t.SheetNames[n])throw new Error("Sheet not found: "+a.sheet+" : "+typeof a.sheet)}return e.from_sheet(t.Sheets[t.SheetNames[n]],a,t)}}var Al=_l(Vs);var Fl=_l({from_sheet:eo});var El=_l(typeof Ia!=="undefined"?Ia:{});var Tl=_l(typeof La!=="undefined"?La:{});var Ol=_l(typeof za!=="undefined"?za:{});var Dl=_l(typeof RTF!=="undefined"?RTF:{});var Ml=_l({from_sheet:ro});var Nl=_l(typeof Ra!=="undefined"?Ra:{});var Pl=_l(typeof Ba!=="undefined"?Ba:{});var Rl=_l(typeof WK_!=="undefined"?{from_sheet:WK_.sheet_to_wk1}:{});function Il(e,r){switch(r.type){case"base64":;case"binary":break;case"buffer":;case"array":r.type="";break;case"file":return G(r.file,H.write(e,{type:w?"buffer":""}));case"string":throw new Error("'string' output type invalid for '"+r.bookType+"' files");default:throw new Error("Unrecognized type "+r.type);}return H.write(e,r)}function Ll(e,r){var t=ue(r||{});var a=hl(e,t);return zl(a,t)}function Bl(e,r){var t=ue(r||{});var a=dl(e,t);return zl(a,t)}function zl(e,r){var t={};if(r.compression)t.compression="DEFLATE";if(r.password)t.type=w?"nodebuffer":"string";else switch(r.type){case"base64":t.type="base64";break;case"binary":t.type="string";break;case"string":throw new Error("'string' output type invalid for '"+r.bookType+"' files");case"buffer":;case"file":t.type=w?"nodebuffer":"string";break;default:throw new Error("Unrecognized type "+r.type);}var a=e.FullPaths?H.write(e,{fileType:"zip",type:{nodebuffer:"buffer",string:"binary"}[t.type]||t.type,compression:!!r.compression}):e.generate(t);if(typeof Deno!=="undefined"){if(typeof a=="string"){if(r.type=="binary"||r.type=="base64")return a;a=new Uint8Array(A(a))}}if(r.password&&typeof encrypt_agile!=="undefined")return Il(encrypt_agile(a,r.password),r);if(r.type==="file")return G(r.file,a);return r.type=="string"?qe(a):a}function Ul(e,r){var t=r||{};var a=write_xlscfb(e,t);return Il(a,t)}function $l(e,r,t){if(!t)t="";var a=t+e;switch(r.type){case"base64":return b.encode(Ze(a));case"binary":return Ze(a);case"string":return e;case"file":return G(r.file,a,"utf8");case"buffer":{if(w)return y(a,"utf8");else if(typeof TextEncoder!=="undefined")return(new TextEncoder).encode(a);else return $l(a,{type:"binary"}).split("").map(function(e){return e.charCodeAt(0)})};}throw new Error("Unrecognized type "+r.type)}function Wl(e,r){switch(r.type){case"base64":return b.encode(e);case"binary":return e;case"string":return e;case"file":return G(r.file,e,"binary");case"buffer":{if(w)return y(e,"binary");else return e.split("").map(function(e){return e.charCodeAt(0)})};}throw new Error("Unrecognized type "+r.type)}function jl(e,r){switch(r.type){case"string":;case"base64":;case"binary":var t="";for(var a=0;a0)n=0;var u=ct(o.s.r);var h=[];var p=[];var d=0,m=0;var v=Array.isArray(e);var g=o.s.r,b=0,w=0;if(v&&!e[g])e[g]=[];for(b=o.s.c;b<=o.e.c;++b){h[b]=pt(b);t=v?e[g][b]:e[h[b]+u];switch(a){case 1:i[b]=b-o.s.c;break;case 2:i[b]=h[b];break;case 3:i[b]=c.header[b-o.s.c];break;default:if(t==null)t={w:"__EMPTY",t:"s"};l=s=St(t,null,c);m=0;for(w=0;w=0)f='"'+f.replace(Zl,'""')+'"'}else f="";c.push(f)}if(l.blankrows===false&&o)return null;return c.join(s)}function eo(e,r){var t=[];var a=r==null?{}:r;if(e==null||e["!ref"]==null)return"";var n=kt(e["!ref"]);var i=a.FS!==undefined?a.FS:",",s=i.charCodeAt(0);var l=a.RS!==undefined?a.RS:"\n",o=l.charCodeAt(0);var c=new RegExp((i=="|"?"\\|":i)+"+$");var f="",u=[];a.dense=Array.isArray(e);var h=a.skipHidden&&e["!cols"]||[];var p=a.skipHidden&&e["!rows"]||[];for(var d=n.s.c;d<=n.e.c;++d)if(!(h[d]||{}).hidden)u[d]=pt(d);for(var m=n.s.r;m<=n.e.r;++m){if((p[m]||{}).hidden)continue;f=Ql(e,n,m,u,s,o,i,a);if(f==null){continue}if(a.strip)f=f.replace(c,"");t.push(f+l)}delete a.dense;return t.join("")}function ro(e,r){if(!r)r={};r.FS="\t";r.RS="\n";var t=eo(e,r);if(typeof cptable=="undefined"||r.type=="string")return t;var a=cptable.utils.encode(1200,t,"str");return String.fromCharCode(255)+String.fromCharCode(254)+a}function to(e){var r="",t,a="";if(e==null||e["!ref"]==null)return[];var n=kt(e["!ref"]),i="",s=[],l;var o=[];var c=Array.isArray(e);for(l=n.s.c;l<=n.e.c;++l)s[l]=pt(l);for(var f=n.s.r;f<=n.e.r;++f){i=ct(f);for(l=n.s.c;l<=n.e.c;++l){r=s[l]+i;t=c?(e[f]||[])[l]:e[r];a="";if(t===undefined)continue;else if(t.F!=null){r=t.F;if(!t.f)continue;a=t.f;if(r.indexOf(":")==-1)r=r+":"+r}if(t.f!=null)a=t.f;else if(t.t=="z")continue;else if(t.t=="n"&&t.v!=null)a=""+t.v;else if(t.t=="b")a=t.v?"TRUE":"FALSE";else if(t.w!==undefined)a="'"+t.w;else if(t.v===undefined)continue;else if(t.t=="s")a="'"+t.v;else a=""+t.v;o[o.length]=r+"="+a}}return o}function ao(e,r,t){var a=t||{};var n=+!a.skipHeader;var i=e||{};var s=0,l=0;if(i&&a.origin!=null){if(typeof a.origin=="number")s=a.origin;else{var o=typeof a.origin=="string"?gt(a.origin):a.origin;s=o.r;l=o.c}}var c;var f={s:{c:0,r:0},e:{c:l,r:s+r.length-1+n}};if(i["!ref"]){var u=kt(i["!ref"]);f.e.c=Math.max(f.e.c,u.e.c);f.e.r=Math.max(f.e.r,u.e.r);if(s==-1){s=u.e.r+1;f.e.r=s+r.length-1+n}}else{if(s==-1){s=0;f.e.r=r.length-1+n}}var h=a.header||[],p=0;r.forEach(function(e,r){J(e).forEach(function(t){if((p=h.indexOf(t))==-1)h[p=h.length]=t;var o=e[t];var f="z";var u="";var d=bt({c:l+p,r:s+r+n});c=io.sheet_get_cell(i,d);if(o&&typeof o==="object"&&!(o instanceof Date)){i[d]=o}else{if(typeof o=="number")f="n";else if(typeof o=="boolean")f="b";else if(typeof o=="string")f="s";else if(o instanceof Date){f="d";if(!a.cellDates){f="n";o=re(o)}u=a.dateNF||P._table[14]}else if(o===null&&a.nullError){f="e";o=0}if(!c)i[d]=c={t:f,v:o};else{c.t=f;c.v=o;delete c.w;delete c.R;if(u)c.z=u}if(u)c.z=u}})});f.e.c=Math.max(f.e.c,l+h.length-1);var d=ct(s);if(n)for(p=0;p=0&&e.SheetNames.length>r)return r;throw new Error("Cannot find sheet # "+r)}else if(typeof r=="string"){var t=e.SheetNames.indexOf(r);if(t>-1)return t;throw new Error("Cannot find sheet name |"+r+"|")}else throw new Error("Cannot find sheet |"+r+"|")}e.book_new=function(){return{SheetNames:[],Sheets:{}}};e.book_append_sheet=function(e,r,t){if(!t)for(var a=1;a<=65535;++a,t=undefined)if(e.SheetNames.indexOf(t="Sheet"+a)==-1)break;if(!t||e.SheetNames.length>=65535)throw new Error("Too many worksheets");ks(t);if(e.SheetNames.indexOf(t)>=0)throw new Error("Worksheet with name |"+t+"| already exists!");e.SheetNames.push(t);e.Sheets[t]=r};e.book_set_sheet_visibility=function(e,r,a){t(e,"Workbook",{});t(e.Workbook,"Sheets",[]);var i=n(e,r);t(e.Workbook.Sheets,i,{});switch(a){case 0:;case 1:;case 2:break;default:throw new Error("Bad sheet visibility setting "+a);}e.Workbook.Sheets[i].Hidden=a};r([["SHEET_VISIBLE",0],["SHEET_HIDDEN",1],["SHEET_VERY_HIDDEN",2]]);e.cell_set_number_format=function(e,r){e.z=r;return e};e.cell_set_hyperlink=function(e,r,t){if(!r){delete e.l}else{e.l={Target:r};if(t)e.l.Tooltip=t}return e};e.cell_set_internal_link=function(r,t,a){return e.cell_set_hyperlink(r,"#"+t,a)};e.cell_add_comment=function(e,r,t){if(!e.c)e.c=[];e.c.push({t:r,a:t||"SheetJS"})};e.sheet_set_array_formula=function(e,r,t){var n=typeof r!="string"?r:kt(r);var i=typeof r=="string"?r:yt(r);for(var s=n.s.r;s<=n.e.r;++s)for(var l=n.s.c;l<=n.e.c;++l){var o=a(e,s,l);o.t="n";o.F=i;delete o.v;if(s==n.s.r&&l==n.s.c)o.f=t}return e};return e})(io);if(typeof parse_xlscfb!=="undefined")e.parse_xlscfb=parse_xlscfb;e.parse_zip=fl;e.read=Sl;e.readFile=Cl;e.readFileSync=Cl;e.write=Vl;e.writeFile=Gl;e.writeFileSync=Gl;e.writeFileAsync=Jl;e.utils=io;e.writeXLSX=Hl;e.writeFileXLSX=Yl;e.SSF=P;if(typeof H!=="undefined")e.CFB=H}if(typeof exports!=="undefined")make_xlsx_lib(exports);else if(typeof module!=="undefined"&&module.exports)make_xlsx_lib(module.exports);else if(typeof define==="function"&&define.amd)define("xlsx",function(){if(!XLSX.version)make_xlsx_lib(XLSX);return XLSX});else make_xlsx_lib(XLSX);if(typeof window!=="undefined"&&!window.XLSX)try{window.XLSX=XLSX}catch(e){} diff --git a/dist/xlsx.mini.min.map b/dist/xlsx.mini.min.map index 5226750..2acf486 100644 --- a/dist/xlsx.mini.min.map +++ b/dist/xlsx.mini.min.map @@ -1 +1 @@ -{"version":3,"sources":["misc/suppress_export.js","xlsx.mini.js"],"names":["DO_NOT_EXPORT_CODEPAGE","XLSX","make_xlsx_lib","version","current_codepage","current_ansi","module","require","cptable","global","window","VALID_ANSI","i","push","CS2CP","0","1","2","77","128","129","130","134","136","161","162","163","177","178","186","204","222","238","255","69","set_ansi","cp","indexOf","reset_ansi","set_cp","reset_cp","char_codes","data","o","len","length","charCodeAt","utf16leread","String","fromCharCode","join","utf16beread","debom","c1","c2","slice","_getchar","_gc1","x","_getansi","_ga1","utils","decode","_gc2","_ga2","DENSE","DIF_XL","Base64","map","encode","input","c3","e1","e2","e3","e4","isNaN","charAt","replace","has_buf","Buffer","process","versions","node","Buffer_from","nbfs","from","e","buf","enc","bind","alloc","n","allocUnsafe","new_raw_buf","Uint8Array","Array","new_unsafe_buf","s2a","s","split","s2ab","ArrayBuffer","view","a2s","isArray","c","a2u","Error","ab2a","utf8decode","content","out","widx","L","ridx","d","bconcat","bufs","maxlen","set","concat","apply","call","chr0","chr1","SSF","make_ssf","_strrev","fill","l","pad0","v","t","pad_","rpad_","pad0r1","Math","round","pad0r2","p2_32","pow","pad0r","isgeneral","days","months","init_table","table_fmt","default_map","defi","default_str","frac","D","mixed","sgn","B","P_2","P_1","P","Q_2","Q_1","Q","A","floor","q","parse_date_code","opts","b2","date","time","dow","dout","T","u","y","m","H","M","S","abs","date1904","Date","setDate","getDate","getFullYear","getMonth","getDay","fix_hijri","basedate","dnthresh","getTime","base1904","datenum_local","epoch","getTimezoneOffset","general_fmt_int","toString","_general_int","general_fmt_num","make_general_fmt_num","trailing_zeroes_and_decimal","strip_decimal","mantissa_zeroes_and_decimal","exp_with_single_digit","normalize_exp","small_exp","w","toFixed","toPrecision","toExponential","large_exp","general_fmt_num_base","V","log","LOG10E","substr","toUpperCase","_general_num","general_fmt","format","_general","write_date","type","fmt","val","ss0","ss","tt","outl","outstr","commaify","j","write_num","make_write_num","pct1","write_num_pct","sfmt","mul","write_num_cm","idx","write_num_exp","match","period","ee","fakee","$$","$1","$2","$3","frac1","write_num_f1","r","aval","sign","den","parseInt","rr","base","myn","myd","write_num_f2","dec1","closeparen","phone","hashq","str","cc","rnd","dd","dec","_frac","carry","flr","write_num_flt","ffmt","ri","ff","oa","min","max","lres","rres","write_num_cm2","write_num_pct2","write_num_exp2","write_num_int","lastIndexOf","split_fmt","in_str","_split","abstime","fmt_is_date","is_date","eval_fmt","flen","lst","dt","hr","toLowerCase","bt","ssm","nstr","jj","vv","myv","ostr","decpt","lasti","retval","_eval","cfregex","cfregex2","chkcond","thresh","parseFloat","choose_fmt","f","lat","m1","m2","dateNF","table","load_entry","undefined","load","_table","get_table","load_table","tbl","XLMLFormatMap","General Number","General Date","Long Date","Medium Date","Short Date","Long Time","Medium Time","Short Time","Currency","Fixed","Standard","Percent","Scientific","Yes/No","True/False","On/Off","SSFImplicit","5","6","7","8","23","24","25","26","27","28","29","30","31","32","33","34","35","36","41","42","43","44","50","51","52","53","54","55","56","57","58","59","60","61","62","63","64","65","66","67","68","70","71","72","73","74","75","76","78","79","80","81","dateNFregex","dateNF_regex","RegExp","dateNF_fix","Y","forEach","datestr","timestr","DO_NOT_EXPORT_CFB","CRC32","factory","signed_crc_table","Int32Array","T0","slice_by_16_tables","subarray","TT","T1","T2","T3","T4","T5","T6","T7","T8","T9","Ta","Tb","Tc","Td","Te","Tf","crc32_bstr","bstr","seed","C","crc32_buf","crc32_str","CFB","_CFB","exports","namecmp","R","Z","dirname","p","filename","write_dos_date","hms","getHours","getMinutes","getSeconds","write_shift","ymd","parse_dos_date","read_shift","setMilliseconds","setFullYear","setMonth","setHours","setMinutes","setSeconds","parse_extra_field","blob","prep_blob","flags","sz","tgt","mtime","atime","ctime","mt","fs","get_fs","parse","file","options","parse_zip","parse_mad","mver","ssz","nmfs","difat_sec_cnt","dir_start","minifat_start","difat_start","fat_addrs","mv","check_get_mver","header","check_shifts","dir_cnt","chk","sectors","sectorify","sleuth_fat","sector_list","make_sector_list","name","ENDOFCHAIN","files","Paths","FileIndex","FullPaths","read_directory","build_full_paths","shift","raw","HEADER_SIGNATURE","nsectors","ceil","FI","FP","pl","dad","get_mfat_entry","entry","payload","mini","start","size","MSSZ","__readInt32LE","new_buf","cnt","sector","get_sector_list","chkd","buf_chain","modulus","addr","nodes","__toBuffer","sl","k","seen","minifat_store","namelen","__utf16le","color","clsid","state","ct","read_date","storage","offset","__readUInt32LE","read_file","readFileSync","read","isBuffer","init_cfb","cfb","root","CLSID","seed_cfb","nm","find","rebuild_cfb","gc","_file","pop","now","fullPaths","Object","create","HEADER_CLSID","sort","elt","_write","_opts","fileType","write_mad","write_zip","mini_size","fat_size","mini_cnt","mfat_cnt","fat_base","fat_cnt","difat_cnt","HEADER_SIG","chainit","consts","DIFSECT","FATSECT","_nm","copy","path","UCFullPaths","UCPaths","UCPath","MAXREGSECT","FREESECT","HEADER_MINOR_VERSION","MAXREGSID","NOSTREAM","EntryTypes","write_file","writeFileSync","write","_zlib","use_zlib","zlib","InflateRaw","InflRaw","_processChunk","_finishFlushFlag","bytesRead","console","error","message","_inflateRawSync","usz","_inflate","_deflateRawSync","deflateRawSync","_deflate","CLEN_ORDER","LEN_LN","DST_LN","bit_swap_8","use_typed_arrays","bitswap8","bit_swap_n","b","rev","read_bits_2","bl","h","read_bits_3","read_bits_4","read_bits_5","read_bits_7","read_bits_n","write_bits_3","write_bits_1","write_bits_8","write_bits_16","realloc","a","zero_fill_array","build_tree","clens","cmap","MAX","ccode","bl_count","Uint16Array","ctree","cleni","fix_lmap","fix_dmap","dlens","_deflateRaw","_deflateRawIIFE","DST_LN_RE","LEN_LN_RE","write_stored","boff","write_huff_fixed","addrs","hash","mlen","len_eb","dst_eb","off","dyn_lmap","dyn_dmap","dyn_cmap","dyn_len_1","dyn_len_2","dyn","_HLIT","_HDIST","_HCLEN","next_code","hcodes","h1","h2","inflate","outbuf","woff","OL","max_len_1","max_len_2","bits","code","dst","warn_or_throw","wrn","msg","fcnt","start_cd","csz","efsz","fcsz","EF","parse_local_file","meth","crc32","_csz","_usz","ef","cfb_add","unsafe","cdirs","method","compression","desc","fp","fi","crcs","sz_cd","namebuf","ContentTypeMap","htm","xml","gif","jpg","png","mso","thmx","sh33tj5","get_content_type","ctype","ext","write_base64_76","write_quoted_printable","text","encoded","si","end","tmp","parse_quoted_printable","di","line","oi","parse_mime","fname","cte","fdata","trim","row","test","mboundary","boundary","start_di","ca","cstr","dispcnt","csl","qp","cfb_new","fpath","cfb_gc","cfb_del","splice","cfb_mov","old_name","new_name","writeFile","ReadShift","CheckField","_inflateRaw","_fs","blobify","write_dl","Deno","TextEncoder","utf8write","IE_SaveFile","Blob","navigator","msSaveBlob","saveAs","URL","document","createElement","createObjectURL","url","chrome","downloads","download","revokeObjectURL","setTimeout","href","body","appendChild","click","removeChild","$","File","Folder","open","encoding","close","read_binary","infile","keys","ks","o2","prototype","hasOwnProperty","evert_key","obj","key","K","evert","evert_num","evert_arr","datenum","refdate","refoffset","numdate","setTime","parse_isodur","sec","good_pd_date","good_pd","parseDate","fixdate","cc2str","arr","debomit","dup","JSON","stringify","fuzzynum","Number","isFinite","NaN","wt","lower_months","fuzzydate","getYear","lower","safe_split_regex","split_regex","re","def","getdatastr","asNodeBuffer","asBinary","_data","getContent","getdatabin","getdata","safegetzipfile","zip","g","getzipfile","getzipdata","safe","getzipstr","getzipbin","zipentries","zip_add_file","res","zip_new","zip_read","resolve_path","result","target","step","XML_HEADER","attregexg","tagregex","nsregex","nsregex2","parsexmltag","tag","skip_root","skip_LC","z","eq","quot","strip_ns","encodings",""","'",">","<","&","rencoding","unescapexml","encregex","coderegex","decregex","charegex","escapexml","escapexmltag","htmlcharegex","escapehtml","escapexlml","xlml_fixstr","entregex","entrepl","xlml_unfixstr","parsexmlbool","value","utf8read","utf8reada","orig","utf8readb","ww","corpus","utf8readc","matchtag","mtcache","htmldecode","entities","vtregex","vt_cache","vt_regex","vtvregex","vtmregex","parseVector","matches","baseType","WTF","wtregex","writetag","wxt_helper","writextag","write_w3cdtf","toISOString","write_vt","xlsx","XMLNS","dc","dcterms","dcmitype","mx","sjs","vt","xsi","xsd","main","XLMLNS","html","read_double_le","Infinity","write_double_le","bs","av","LN2","___toBuffer","__readUInt16LE","___utf16le","__hexlify","___hexlify","__utf8","__readUInt8","___utf8","__lpstr","___lpstr","__cpstr","___cpstr","__lpwstr","___lpwstr","__lpp4","___lpp4","lpp4_","__8lpp4","___8lpp4","__double","___double","is_buf","is_buf_a","lpstr_b","readUInt32LE","cpstr_b","lpwstr_b","lpp4_b","lpp4_8b","utf8_b","double_","readDoubleLE","is_buf_b","cpdoit","__readInt16LE","__readInt32BE","oI","oR","oo","loc","this","lens","__writeUInt32LE","__writeInt32LE","__writeUInt16LE","WriteShift","cppayload","hexstr","fld","pos","parsenoop","recordhopper","cb","tmpbyte","cntbyte","RT","XLSBRecordEnum","buf_array","blksz","newblk","ba_newblk","curbuf","endbuf","ba_endbuf","next","ba_next","ba_end","ba_push","_bufs","write_record","ba","XLSBRE","make_XLSBRE","shift_cell_xls","cell","cRel","rRel","biff","shift_range_xls","range","encode_cell_xls","encode_cell","fix_col","fix_row","encode_range_xls","encode_col","encode_row","decode_row","rowstr","unfix_row","decode_col","colstr","unfix_col","col","split_cell","decode_cell","decode_range","encode_range","cs","ce","safe_decode_range","safe_format_cell","XF","numFmtId","format_cell","BErr","sheet_to_workbook","sheet","sheets","SheetNames","Sheets","sheet_add_aoa","_ws","dense","ws","_R","_C","origin","_origin","_range","__R","__C","nullError","sheetStubs","cellDates","cell_ref","aoa_to_sheet","VT_I2","VT_I4","VT_BOOL","VT_VARIANT","VT_UI4","VT_LPSTR","VT_FILETIME","VT_BLOB","VT_CF","VT_VECTOR","VT_STRING","VT_USTR","VT_CUSTOM","DocSummaryPIDDSI","3","4","9","10","11","12","13","14","15","16","17","19","22","2147483648","2147483651","1919054434","SummaryPIDSI","18","DocSummaryRE","SummaryRE","CountryEnum","20","39","45","46","47","48","49","82","84","86","90","105","213","216","218","351","354","358","420","886","961","962","963","964","965","966","971","972","974","981","65535","XLSFillPattern","rgbify","_XLSIcv","XLSIcv","RBErr","ct2type","application/vnd.openxmlformats-officedocument.spreadsheetml.sheet.main+xml","application/vnd.ms-excel.binIndexWs","application/vnd.ms-excel.intlmacrosheet","application/vnd.ms-excel.binIndexMs","application/vnd.openxmlformats-package.core-properties+xml","application/vnd.openxmlformats-officedocument.custom-properties+xml","application/vnd.openxmlformats-officedocument.extended-properties+xml","application/vnd.openxmlformats-officedocument.customXmlProperties+xml","application/vnd.openxmlformats-officedocument.spreadsheetml.customProperty","application/vnd.ms-excel.pivotTable","application/vnd.openxmlformats-officedocument.spreadsheetml.pivotTable+xml","application/vnd.openxmlformats-officedocument.drawingml.chart+xml","application/vnd.ms-office.chartcolorstyle+xml","application/vnd.ms-office.chartstyle+xml","application/vnd.ms-office.chartex+xml","application/vnd.ms-excel.calcChain","application/vnd.openxmlformats-officedocument.spreadsheetml.calcChain+xml","application/vnd.openxmlformats-officedocument.spreadsheetml.printerSettings","application/vnd.ms-office.activeX","application/vnd.ms-office.activeX+xml","application/vnd.ms-excel.attachedToolbars","application/vnd.ms-excel.connections","application/vnd.openxmlformats-officedocument.spreadsheetml.connections+xml","application/vnd.ms-excel.externalLink","application/vnd.openxmlformats-officedocument.spreadsheetml.externalLink+xml","application/vnd.ms-excel.sheetMetadata","application/vnd.openxmlformats-officedocument.spreadsheetml.sheetMetadata+xml","application/vnd.ms-excel.pivotCacheDefinition","application/vnd.ms-excel.pivotCacheRecords","application/vnd.openxmlformats-officedocument.spreadsheetml.pivotCacheDefinition+xml","application/vnd.openxmlformats-officedocument.spreadsheetml.pivotCacheRecords+xml","application/vnd.ms-excel.queryTable","application/vnd.openxmlformats-officedocument.spreadsheetml.queryTable+xml","application/vnd.ms-excel.userNames","application/vnd.ms-excel.revisionHeaders","application/vnd.ms-excel.revisionLog","application/vnd.openxmlformats-officedocument.spreadsheetml.revisionHeaders+xml","application/vnd.openxmlformats-officedocument.spreadsheetml.revisionLog+xml","application/vnd.openxmlformats-officedocument.spreadsheetml.userNames+xml","application/vnd.ms-excel.tableSingleCells","application/vnd.openxmlformats-officedocument.spreadsheetml.tableSingleCells+xml","application/vnd.ms-excel.slicer","application/vnd.ms-excel.slicerCache","application/vnd.ms-excel.slicer+xml","application/vnd.ms-excel.slicerCache+xml","application/vnd.ms-excel.wsSortMap","application/vnd.ms-excel.table","application/vnd.openxmlformats-officedocument.spreadsheetml.table+xml","application/vnd.openxmlformats-officedocument.theme+xml","application/vnd.openxmlformats-officedocument.themeOverride+xml","application/vnd.ms-excel.Timeline+xml","application/vnd.ms-excel.TimelineCache+xml","application/vnd.ms-office.vbaProject","application/vnd.ms-office.vbaProjectSignature","application/vnd.ms-office.volatileDependencies","application/vnd.openxmlformats-officedocument.spreadsheetml.volatileDependencies+xml","application/vnd.ms-excel.controlproperties+xml","application/vnd.openxmlformats-officedocument.model+data","application/vnd.ms-excel.Survey+xml","application/vnd.openxmlformats-officedocument.drawing+xml","application/vnd.openxmlformats-officedocument.drawingml.chartshapes+xml","application/vnd.openxmlformats-officedocument.drawingml.diagramColors+xml","application/vnd.openxmlformats-officedocument.drawingml.diagramData+xml","application/vnd.openxmlformats-officedocument.drawingml.diagramLayout+xml","application/vnd.openxmlformats-officedocument.drawingml.diagramStyle+xml","application/vnd.openxmlformats-officedocument.vmlDrawing","application/vnd.openxmlformats-package.relationships+xml","application/vnd.openxmlformats-officedocument.oleObject","image/png","CT_LIST","workbooks","xlsm","xlsb","xlam","xltx","strs","comments","charts","dialogs","macros","styles","type2ct","CT","new_ct","rels","links","coreprops","extprops","custprops","themes","calcchains","vba","drawings","TODO","xmlns","parse_ct","ctext","Extension","ContentType","PartName","calcchain","sst","style","defaults","CTYPE_XML_ROOT","xmlns:xsd","xmlns:xsi","CTYPE_DEFAULTS","write_ct","f1","bookType","f2","f3","RELS","WB","SHEET","HLINK","VML","XPATH","XMISS","XLINK","CXML","CXMLP","VBA","get_rels_path","parse_rels","currentFilePath","!id","rel","Type","Target","Id","TargetMode","canonictarget","RELS_ROOT","write_rels","rid","RELS_EXTERN","add_rels","rId","relobj","targetmode","CORE_PROPS","CORE_PROPS_REGEX","parse_core_props","cur","CORE_PROPS_XML_ROOT","xmlns:cp","xmlns:dc","xmlns:dcterms","xmlns:dcmitype","cp_doit","write_core_props","Props","CreatedDate","xsi:type","ModifiedDate","EXT_PROPS","PseudoPropsPairs","load_props_pairs","HP","TOP","props","hp","parts","Worksheets","NamedRanges","DefinedNames","Chartsheets","ChartNames","parse_ext_props","HeadingPairs","TitlesOfParts","EXT_PROPS_XML_ROOT","xmlns:vt","write_ext_props","W","Application","CUST_PROPS","custregex","parse_cust_props","toks","warn","CUST_PROPS_XML_ROOT","write_cust_props","pid","custprop","fmtid","DBF","dbf_codepage_map","100","101","102","103","104","106","107","120","121","122","123","124","125","126","150","151","152","200","201","202","203","21","37","38","87","88","89","108","135","dbf_reverse_map","DBF_SUPPORTED_VERSIONS","dbf_to_aoa","ft","memo","vfp","l7","nrow","fpos","rlen","current_cp","codepage","fields","field","hend","sheetRows","dbf_to_sheet","dbf_to_workbook","_RLEN","?","","sheet_to_dbf","aoa","sheet_to_json","headers","hcnt","coltypes","guess","_guess","hf","_f","hb","rout","_s","to_workbook","to_sheet","from_sheet","SYLK","sylk_escapes","AA","BA","CA","DA","HA","JA","AE","BE","CE","HE","AI","BI","CI","HI","AO","BO","CO","DO","HO","AU","BU","CU","HU","Aa","Ba","Ca","Da","Ha","Ja","Ae","Be","Ce","He","Ai","Bi","Ci","Hi","Ao","Bo","Co","Do","Ho","Au","Bu","Cu","Hu","KC","Kc","DN","Dn","Hy","B ","!","\"","#","(","%","'","H ","+",";","<","=",">","{","sylk_char_regex","sylk_char_fn","_","decode_sylk_char","newcc","sylk_to_aoa","sylk_to_aoa_str","records","rj","formats","next_cell_format","sht","rowinfo","colinfo","cw","Mval","rstr","record","C_seen_K","C_seen_X","C_seen_S","C_seen_E","formula","rc_to_a1","shrbase","shift_formula_str","F_seen","hidden","wch","process_col","hpt","hpx","pt2px","sylk_to_sheet","aoasht","sylk_to_workbook","write_ws_cell_sylk","F","a1_to_rc","write_ws_cols_sylk","cols","rec","width","wpx","width2px","px2char","write_ws_rows_sylk","rows","px2pt","sheet_to_sylk","preamble","RS","coord","DIF","dif_to_aoa","dif_to_aoa_str","metadata","dif_to_sheet","dif_to_workbook","sheet_to_dif","push_field","pf","topic","push_value","po","ETH","eth_to_aoa","eth_to_sheet","eth_to_workbook","sep","meta","sheet_to_eth_data","sheet_to_eth","PRN","set_text_arr","prn_to_aoa_str","lines","guess_seps","guess_sep_weights","guess_sep","instr","dsv_to_sheet_str","FS","sepcc","startcc","_re","finish_cell","fuzzyfmla","cellText","cellNF","outer","prn_to_sheet_str","prn_to_sheet","bytes","firstbyte","prn_to_workbook","sheet_to_prn","read_wb_ID","OLD_WTF","parse_rpr","rpr","font","pass","shadow","outline","strike","uval","rgb","family","valign","parse_rs","tregex","rpregex","parse_r","rregex","rend","rs","filter","rs_to_html","parse_rs_factory","nlregex","parse_rpr2","intro","outro","align","r_to_html","terms","sitregex","sirregex","sirphregex","parse_si","cellHTML","sstr0","sstr1","sstr2","parse_sst_xml","Count","count","Unique","uniqueCount","SST","straywsregex","write_sst_xml","bookSST","sitag","hex2RGB","rgb2Hex","rgb2HSL","G","H6","L2","hsl2RGB","hsl","h6","X","rgb_tint","hex","tint","DEF_MDW","MAX_MDW","MIN_MDW","MDW","px","char2width","chr","cycle_width","collw","find_mdw_colw","delta","_MDW","coll","customWidth","DEF_PPI","PPI","pt","XLMLPatternTypeMap","None","Solid","Gray50","Gray75","Gray25","HorzStripe","VertStripe","ReverseDiagStripe","DiagStripe","DiagCross","ThickDiagCross","ThinHorzStripe","ThinVertStripe","ThinReverseDiagStripe","ThinHorzCross","parse_borders","Borders","border","diagonalUp","diagonalDown","parse_fills","Fills","patternType","bgColor","indexed","theme","fgColor","parse_fonts","Fonts","bold","italic","underline","condense","extend","vertAlign","scheme","auto","index","icv","themeElements","clrScheme","parse_numFmts","NumberFmt","formatCode","write_numFmts","NF","cellXF_uint","cellXF_bool","parse_cellXfs","CellXf","xf","alignment","vertical","horizontal","textRotation","indent","wrapText","write_cellXfs","cellXfs","parse_sty_xml","make_pstyx","numFmtRegex","cellXfRegex","fillsRegex","fontsRegex","bordersRegex","STYLES_XML_ROOT","STY","write_sty_xml","wb","THEME","XLSXThemeClrScheme","parse_clrScheme","lastClr","parse_fontScheme","parse_fmtScheme","clrsregex","fntsregex","fmtsregex","parse_themeElements","themeltregex","parse_theme_xml","write_theme","Themes","themeXLSX","parse_xlink_xml","parse_xlink_bin","xlink_parse","R_n","IMG","DRAW","parse_drawing","id","_shapeid","write_comments_vml","csize","bbox","xmlns:v","xmlns:o","xmlns:x","xmlns:mv","v:ext","joinstyle","gradientshapeok","o:connecttype","o:spt","coordsize","fillopts","color2","angle","fillparm","fillxml","shadata","on","obscured","fillcolor","strokecolor","CMNT","sheet_insert_comments","comment","ref","author","parse_comments_xml","authors","commentList","authtag","cmnttag","cm","authorId","guid","textMatch","rt","CMNT_XML_ROOT","write_comments_xml","iauthor","CT_VBA","make_vba_xls","newcfb","newpath","fill_vba_xls","VBAFMTS","DS","MS","parse_ds_bin","!type","parse_ds_xml","parse_ms_bin","parse_ms_xml","rcregex","rcbase","rcfunc","fstr","crefregex","$0","$4","$5","shift_formula_xlsx","_xlfn","_ssfopts","WS","browser_has_Map","Map","get_sst_id","has","revarr","get","col_obj_w","level","outlineLevel","default_margins","margins","mode","defs","left","right","top","bottom","footer","get_cell_style","revssf","ssf","fontId","fillId","borderId","xfId","applyNumberFormat","safe_format","fillid","cellStyles","raw_rgb","check_ws","sname","parse_ws_xml_dim","mergecregex","sheetdataregex","hlinkregex","dimregex","colregex","afregex","marginregex","sheetprregex","sheetprregex2","svsregex","parse_ws_xml","refguess","data1","data2","mtch","sheetPr","parse_ws_xml_sheetpr","parse_ws_xml_sheetpr2","svs","parse_ws_xml_sheetviews","columns","parse_ws_xml_cols","parse_ws_xml_data","afilter","parse_ws_xml_autofilter","merges","_merge","hlink","parse_ws_xml_hlinks","parse_ws_xml_margins","tmpref","write_ws_xml_merges","codeName","CodeName","write_ws_xml_sheetpr","needed","vbaraw","cname","Workbook","outlineprops","summaryBelow","summaryRight","above","sheetprot_deffalse","sheetprot_deftrue","write_ws_xml_protection","sp","password","crypto_CreatePasswordVerifier_Method1","location","Rel","tooltip","Tooltip","rng","margin","write_ws_xml_margins","seencol","coli","colm","colM","write_ws_xml_cols","write_ws_xml_autofilter","Names","names","Name","Sheet","Ref","sviewregex","Views","zoomScale","zoom","rightToLeft","RTL","write_ws_xml_sheetviews","sview","workbookViewId","write_ws_xml_cell","oldt","oldv","os","Strings","revStrings","cellregex","rowregex","isregex","refregex","match_v","match_f","sdata","cells","cref","tagr","tagc","sstr","ftag","do_format","cf","arrayf","sharedf","rowobj","rowrite","marr","marrlen","xlen","rstarti","outa","ht","rslice","cellFormula","xlfn","___f","_tag","_r","write_ws_xml_data","params","height","_cell","customHeight","WS_XML_ROOT","xmlns:r","write_ws_xml","sidx","rdata","_drawing","sheetFormat","defaultRowHeight","baseColWidth","outlineLevelRow","relc","ignoreEC","numberStoredAsText","sqref","r:id","CHART","CHARTEX","parse_Cache","num","nf","parse_chart","csheet","nc","cache","CS","CS_XML_ROOT","parse_cs_xml","!drawel","!rel","write_cs_xml","parse_BrtCsProp","parse_XLWideString","parse_cs_bin","cs_parse","write_cs_bin","WBPropsDef","WBViewDef","SheetDef","CalcPrDef","push_defaults_array","push_defaults","parse_wb_defaults","WBProps","CalcPr","WBView","safe1904","badchars","check_ws_name","_good","check_wb_names","N","codes","cn","check_wb","wbnsregex","parse_wb_xml","AppVersion","dname","dnstart","xml_wb","Hidden","Comment","localSheetId","WB_XML_ROOT","write_wb_xml","write_names","workbookPr","sheetId","parse_wb","parse_wb_bin","parse_ws","parse_ws_bin","parse_cs","parse_ms","parse_ds","parse_sty","parse_sty_bin","parse_theme","parse_sst","parse_sst_bin","parse_cmnt","parse_comments_bin","parse_cc","parse_cc_bin","parse_cc_xml","parse_xlink","write_wb","write_wb_bin","write_ws","write_ws_bin","write_cs","write_sty","write_sty_bin","write_sst","write_sst_bin","write_cmnt","write_comments_bin","HTML_","html_to_sheet","mtch2","hd","midx","colspan","rowspan","_t","html_to_book","book_new","book_append_sheet","make_html_row","editable","make_html_preamble","_BEGIN","_END","sheet_to_html","_row","BEGIN","END","_preamble","sheet_add_dom","or_R","or_C","getElementsByTagName","is_dom_element_hidden","display","elts","hasAttribute","getAttribute","innerHTML","Aelts","Aelti","parse_dom_table","table_to_book","element","get_computed_style","get_get_computed_style_function","getPropertyValue","ownerDocument","defaultView","getComputedStyle","parse_content_xml","parse_text_p","fixed","number_formats","day","month","year","hours","minutes","seconds","am-pm","day-of-week","era","quarter","pcx","xlml_normalize","NFtag","pidx","sheetag","rowtag","Rn","ctag","textp","textpidx","textptag","textR","row_ol","number_format_map","mrange","mR","mC","rowpeat","colpeat","atag","_Ref","creator","creatoridx","isstub","intable","xlmlregex","lastIndex","exec","ods_to_csf_formula","rptR","rpt","ods_to_csf_3D","nrange","ptp","bookSheets","parse_ods","parse_manifest","parse_fods","write_styles_ods","master_styles","xmlns:office","xmlns:table","xmlns:style","xmlns:text","xmlns:draw","xmlns:fo","xmlns:xlink","xmlns:number","xmlns:svg","xmlns:of","office:version","wso","write_content_ods","write_text_p","null_cell_xml","covered_cell_xml","mi","ods","ROWS","skip","csf_to_ods_formula","_Fref","text_p","_tgt","csf_to_ods_3D","xlink:href","write_automatic_styles_ods","cidx","colobj","wcx","attr","xmlns:meta","xmlns:presentation","xmlns:chart","xmlns:dr3d","xmlns:math","xmlns:form","xmlns:script","xmlns:ooo","xmlns:ooow","xmlns:oooc","xmlns:dom","xmlns:xforms","xmlns:sheet","xmlns:rpt","xmlns:xhtml","xmlns:grddl","xmlns:tableooo","xmlns:drawooo","xmlns:calcext","xmlns:loext","xmlns:field","xmlns:formx","xmlns:css3t","fods","xmlns:config","office:mimetype","write_meta_ods","write_ods","manifest","rdf","write_rdf","write_manifest","NUMBERS","defineProperty","__defProp","__getOwnPropDesc","getOwnPropertyDescriptor","__getOwnPropNames","getOwnPropertyNames","__hasOwnProp","__markAsModule","__export","all","enumerable","__reExport","copyDefault","__toCommonJS","temp","WeakMap","numbers_exports","parse_numbers","numbers_default","u8_to_dataview","array","DataView","buffer","byteOffset","byteLength","u8str","u8","TextDecoder","u8concat","u8a","reduce","acc","popcnt","readDecimal128LE","exp","mantissa","parse_varint49","ptr","varint","varint_to_i32","i32","parse_shallow","mappa","_a","deframe","parse_snappy_chunk","chunks","parse_iwa","ai","messages","fl","parse_old_storage","rsst","dv","getUint32","data_offset","ieee","getFloat64","ret","parse_storage","d128","packets","packet","docroot","iwams","iwam","mtype","parse_docroot","parse_Reference","pb","parse_TST_TableDataList","entries","le","rtp","rtpref","tswpsa","parse_TST_TileRowInfo","_b","_c","_d","_e","_g","_h","_i","_j","pre_bnc","pre_bnc_offsets","storage_offsets","wide_offsets","getUint16","parse_TST_Tile","parse_TST_TableModelArchive","store","tile","tiles","tl","tile2","parse_TST_TableInfoArchive","!ref","tableref","parse_sheetroot","shapeoffs","sheetoffs","root2","fix_opts_func","fix_opts","fix_read_opts","fix_write_opts","get_sheet_type","safe_parse_wbrels","wbrels","pwbr","strRelID","safe_parse_sheet","relsPath","sheetRels","stype","dfile","drelsp","draw","chartp","crelsp","strip_front_slash","_zip","dir","binname","bookProps","link","propdata","pluck","Custprops","deps","bookDeps","wbsheets","wbext","wbrelsi","wbrelsfile","nmode","wsloop","snjseen","snj","Directory","Deps","Styles","bookFiles","bookVBA","bin","parse_xlsxcfb","parse_DataSpaceVersionInfo","dsm","parse_DataSpaceMap","comps","seds","parse_DataSpaceDefinition","parse_Primary","einfo","parse_EncryptionInfo","decrypt_agile","decrypt_std76","write_zip_xlsxb","foo","vbafmt","General","_sn","wsrels","_type","need_vml","rId1","write_zip_xlsx","read_cfb","parse_xlscfb","read_zip","read_plaintext","parse_xlml","read_plaintext_raw","read_utf16","bstrify","read_prn","readSync","ab","vu","WK_","RTF","write_obj_str","write_str","write_htm_str","write_csv_str","sheet_to_csv","write_slk_str","write_dif_str","write_prn_str","write_rtf_str","write_txt_str","sheet_to_txt","write_dbf_buf","write_eth_str","write_wk1_buf","sheet_to_wk1","write_cfb_ctr","write_zip_type","write_zip_denouement","write_zip_typeXLSX","oopts","nodebuffer","string","generate","encrypt_agile","write_cfb_type","write_xlscfb","write_string_type","bom","write_stxt_type","write_binary_type","writeSyncXLSX","writeSync","write_xlml","book_to_wk3","write_biff_buf","resolve_book_type","_BT","xls","slk","socialcalc","Sh33tJS","writeFileSyncXLSX","writeFileAsync","_cb","Function","make_json_row","hdr","defval","isempty","__rowNum__","rawNumbers","outi","counter","CC","blankrows","qreg","make_csv_row","txt","forceQuotes","endregex","skipHidden","strip","sheet_to_formulae","cmds","sheet_add_json","js","skipHeader","JS","sheet_get_cell","json_to_sheet","table_to_sheet","sheet_to_row_object_array","add_consts","get_default","ws_get_cell_stub","RC","wb_sheet_idx","sh","book_set_sheet_visibility","vis","cell_set_number_format","cell_set_hyperlink","cell_set_internal_link","cell_add_comment","sheet_set_array_formula","rngstr","readFile","writeXLSX","writeFileXLSX","define","amd"],"mappings":";AAAA,GAAIA,wBAAyB,ICI7B,IAAIC,QACJ,SAASC,eAAcD,GACvBA,EAAKE,QAAU,QACf,IAAIC,GAAmB,KAAMC,EAAe,IAE5C,UAAUC,UAAW,mBAAsBC,WAAY,YAAa,CACnE,SAAUC,WAAY,YAAa,CAClC,SAAUC,UAAW,YAAaA,OAAOD,QAAUD,QAAQ,yBACtD,UAAUG,UAAW,YAAaA,OAAOF,QAAUD,QAAQ,sBAIlE,GAAII,IAAe,IAAK,IAAK,IAAK,IAAK,IAAK,IAC5C,KAAI,GAAIC,GAAI,EAAGA,GAAK,IAAKA,EAAGD,EAAWE,KAAK,KAAOD,EAEnD,IAAIE,IACJC,EAAM,KACNC,EAAK,MACLC,EAAK,MACLC,GAAK,IACLC,IAAO,IACPC,IAAO,IACPC,IAAM,KACNC,IAAO,IACPC,IAAO,IACPC,IAAM,KACNC,IAAM,KACNC,IAAM,KACNC,IAAM,KACNC,IAAM,KACNC,IAAM,KACNC,IAAM,KACNC,IAAO,IACPC,IAAM,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EAAEwJ,GAAKuL,GAAKg7C,EAAI/vD,EAAEO,EAAGk5B,EAAKhsB,EAAIspC,EAE3C,MAAO9a,GAGR,OAAOv+B,KACJA,GAEH,UAAUixE,gBAAiB,YAAa70E,EAAK60E,aAAeA,YAC5D70E,GAAK2d,UAAYA,EACjB3d,GAAKmiB,KAAOkzD,EACZr1E,GAAKg7E,SAAW94D,EAChBliB,GAAKkiB,aAAeA,EACpBliB,GAAKslB,MAAQmyD,EACbz3E,GAAKuvB,UAAYlK,EACjBrlB,GAAKqlB,cAAgBA,EACrBrlB,GAAKo4E,eAAiBA,EACtBp4E,GAAK4D,MAAQA,EACb5D,GAAKi7E,UAAYzD,EACjBx3E,GAAKk7E,cAAgB/C,EACrBn4E,GAAK6H,IAAMA,CACX,UAAUuT,KAAQ,YAAapb,EAAKob,IAAMA,EAG1C,SAAUE,WAAY,YAAarb,cAAcqb,aAC5C,UAAUjb,UAAW,aAAeA,OAAOib,QAASrb,cAAcI,OAAOib,aACzE,UAAU6/D,UAAW,YAAcA,OAAOC,IAAKD,OAAO,OAAQ,WAAa,IAAIn7E,KAAKE,QAASD,cAAcD,KAAO,OAAOA,YACzHC,eAAcD,KAEnB,UAAUS,UAAW,cAAgBA,OAAOT,KAAM,IAAMS,OAAOT,KAAOA,KAAQ,MAAMsF","file":"dist/xlsx.mini.min.js"} \ No newline at end of file +{"version":3,"sources":["dist/xlsx.mini.js"],"names":["XLSX","make_xlsx_lib","version","current_codepage","current_ansi","VALID_ANSI","i","push","CS2CP","0","1","2","77","128","129","130","134","136","161","162","163","177","178","186","204","222","238","255","69","set_ansi","cp","indexOf","reset_ansi","set_cp","reset_cp","char_codes","data","o","len","length","charCodeAt","utf16leread","String","fromCharCode","join","utf16beread","debom","c1","c2","slice","_getchar","_gc1","x","_getansi","_ga1","DENSE","DIF_XL","Base64","map","encode","input","c3","e1","e2","e3","e4","isNaN","charAt","decode","replace","has_buf","Buffer","undefined","node","Buffer_from","nbfs","from","e","buf","enc","bind","alloc","n","allocUnsafe","new_raw_buf","Uint8Array","Array","new_unsafe_buf","s2a","s","split","s2ab","ArrayBuffer","view","a2s","isArray","c","a2u","Error","ab2a","utf8decode","content","out","widx","L","ridx","d","bconcat","bufs","maxlen","set","concat","apply","call","chr0","chr1","SSF","make_ssf","_strrev","fill","l","pad0","v","t","pad_","rpad_","pad0r1","Math","round","pad0r2","p2_32","pow","pad0r","isgeneral","days","months","init_table","table_fmt","default_map","defi","default_str","frac","D","mixed","sgn","B","P_2","P_1","P","Q_2","Q_1","Q","A","floor","q","parse_date_code","opts","b2","date","time","dow","dout","T","u","y","m","H","M","S","abs","date1904","Date","setDate","getDate","getFullYear","getMonth","getDay","fix_hijri","basedate","dnthresh","getTime","base1904","datenum_local","epoch","getTimezoneOffset","general_fmt_int","toString","_general_int","general_fmt_num","make_general_fmt_num","trailing_zeroes_and_decimal","strip_decimal","mantissa_zeroes_and_decimal","exp_with_single_digit","normalize_exp","small_exp","w","toFixed","toPrecision","toExponential","large_exp","general_fmt_num_base","V","log","LOG10E","substr","toUpperCase","_general_num","general_fmt","format","_general","write_date","type","fmt","val","ss0","ss","tt","outl","outstr","commaify","j","write_num","make_write_num","pct1","write_num_pct","sfmt","mul","write_num_cm","idx","write_num_exp","match","period","ee","fakee","$$","$1","$2","$3","frac1","write_num_f1","r","aval","sign","den","parseInt","rr","base","myn","myd","write_num_f2","dec1","closeparen","phone","hashq","str","cc","rnd","dd","dec","_frac","carry","flr","write_num_flt","ffmt","ri","ff","oa","min","max","lres","rres","write_num_cm2","write_num_pct2","write_num_exp2","write_num_int","lastIndexOf","split_fmt","in_str","_split","abstime","fmt_is_date","is_date","eval_fmt","flen","lst","dt","hr","toLowerCase","bt","ssm","nstr","jj","vv","myv","ostr","decpt","lasti","retval","_eval","cfregex","cfregex2","chkcond","thresh","parseFloat","choose_fmt","f","lat","m1","m2","dateNF","table","load_entry","load","_table","get_table","load_table","tbl","XLMLFormatMap","General Number","General Date","Long Date","Medium Date","Short Date","Long Time","Medium Time","Short Time","Currency","Fixed","Standard","Percent","Scientific","Yes/No","True/False","On/Off","SSFImplicit","5","6","7","8","23","24","25","26","27","28","29","30","31","32","33","34","35","36","41","42","43","44","50","51","52","53","54","55","56","57","58","59","60","61","62","63","64","65","66","67","68","70","71","72","73","74","75","76","78","79","80","81","dateNFregex","dateNF_regex","RegExp","dateNF_fix","Y","forEach","datestr","timestr","DO_NOT_EXPORT_CFB","CRC32","factory","signed_crc_table","Int32Array","T0","slice_by_16_tables","subarray","TT","T1","T2","T3","T4","T5","T6","T7","T8","T9","Ta","Tb","Tc","Td","Te","Tf","crc32_bstr","bstr","seed","C","crc32_buf","crc32_str","CFB","_CFB","exports","namecmp","R","Z","dirname","p","filename","write_dos_date","hms","getHours","getMinutes","getSeconds","write_shift","ymd","parse_dos_date","read_shift","setMilliseconds","setFullYear","setMonth","setHours","setMinutes","setSeconds","parse_extra_field","blob","prep_blob","flags","sz","tgt","mtime","atime","ctime","mt","fs","get_fs","parse","file","options","parse_zip","parse_mad","mver","ssz","nmfs","difat_sec_cnt","dir_start","minifat_start","difat_start","fat_addrs","mv","check_get_mver","header","check_shifts","dir_cnt","chk","sectors","sectorify","sleuth_fat","sector_list","make_sector_list","name","ENDOFCHAIN","files","Paths","FileIndex","FullPaths","read_directory","build_full_paths","shift","raw","HEADER_SIGNATURE","nsectors","ceil","FI","FP","pl","dad","get_mfat_entry","entry","payload","mini","start","size","MSSZ","__readInt32LE","new_buf","cnt","sector","get_sector_list","chkd","buf_chain","modulus","addr","nodes","__toBuffer","sl","k","seen","minifat_store","namelen","__utf16le","color","clsid","state","ct","read_date","storage","offset","__readUInt32LE","read_file","readFileSync","read","isBuffer","init_cfb","cfb","root","CLSID","seed_cfb","nm","find","rebuild_cfb","gc","_file","pop","now","fullPaths","Object","create","HEADER_CLSID","sort","elt","_write","_opts","fileType","write_mad","write_zip","mini_size","fat_size","mini_cnt","mfat_cnt","fat_base","fat_cnt","difat_cnt","HEADER_SIG","chainit","consts","DIFSECT","FATSECT","_nm","copy","path","UCFullPaths","UCPaths","UCPath","MAXREGSECT","FREESECT","HEADER_MINOR_VERSION","MAXREGSID","NOSTREAM","EntryTypes","write_file","writeFileSync","write","_zlib","use_zlib","zlib","InflateRaw","InflRaw","_processChunk","_finishFlushFlag","bytesRead","console","error","message","_inflateRawSync","usz","_inflate","_deflateRawSync","deflateRawSync","_deflate","CLEN_ORDER","LEN_LN","DST_LN","bit_swap_8","use_typed_arrays","bitswap8","bit_swap_n","b","rev","read_bits_2","bl","h","read_bits_3","read_bits_4","read_bits_5","read_bits_7","read_bits_n","write_bits_3","write_bits_1","write_bits_8","write_bits_16","realloc","a","zero_fill_array","build_tree","clens","cmap","MAX","ccode","bl_count","Uint16Array","ctree","cleni","fix_lmap","fix_dmap","dlens","_deflateRaw","_deflateRawIIFE","DST_LN_RE","LEN_LN_RE","write_stored","boff","write_huff_fixed","addrs","hash","mlen","len_eb","dst_eb","off","dyn_lmap","dyn_dmap","dyn_cmap","dyn_len_1","dyn_len_2","dyn","_HLIT","_HDIST","_HCLEN","next_code","hcodes","h1","h2","inflate","outbuf","woff","OL","max_len_1","max_len_2","bits","code","dst","warn_or_throw","wrn","msg","fcnt","start_cd","csz","efsz","fcsz","EF","parse_local_file","meth","crc32","_csz","_usz","ef","cfb_add","unsafe","cdirs","method","compression","desc","fp","fi","crcs","sz_cd","namebuf","ContentTypeMap","htm","xml","gif","jpg","png","mso","thmx","sh33tj5","get_content_type","ctype","ext","write_base64_76","write_quoted_printable","text","encoded","si","end","tmp","parse_quoted_printable","di","line","oi","parse_mime","fname","cte","fdata","trim","row","test","mboundary","boundary","start_di","ca","cstr","dispcnt","csl","qp","cfb_new","fpath","utils","cfb_gc","cfb_del","splice","cfb_mov","old_name","new_name","writeFile","ReadShift","CheckField","_inflateRaw","require","module","_fs","blobify","write_dl","Deno","TextEncoder","utf8write","IE_SaveFile","Blob","navigator","msSaveBlob","saveAs","URL","document","createElement","createObjectURL","url","chrome","downloads","download","revokeObjectURL","setTimeout","href","body","appendChild","click","removeChild","$","File","Folder","open","encoding","close","read_binary","infile","keys","ks","o2","prototype","hasOwnProperty","evert_key","obj","key","K","evert","evert_num","evert_arr","datenum","refdate","refoffset","numdate","setTime","parse_isodur","sec","good_pd_date","good_pd","parseDate","fixdate","cc2str","arr","debomit","dup","JSON","stringify","fuzzynum","Number","isFinite","NaN","wt","lower_months","fuzzydate","getYear","lower","safe_split_regex","split_regex","re","def","getdatastr","asNodeBuffer","asBinary","_data","getContent","getdatabin","getdata","safegetzipfile","zip","g","getzipfile","getzipdata","safe","getzipstr","getzipbin","zipentries","zip_add_file","res","zip_new","zip_read","resolve_path","result","target","step","XML_HEADER","attregexg","tagregex","nsregex","nsregex2","parsexmltag","tag","skip_root","skip_LC","z","eq","quot","strip_ns","encodings",""","'",">","<","&","rencoding","unescapexml","encregex","coderegex","decregex","charegex","escapexml","escapexmltag","htmlcharegex","escapehtml","escapexlml","xlml_fixstr","entregex","entrepl","xlml_unfixstr","parsexmlbool","value","utf8read","utf8reada","orig","utf8readb","ww","corpus","utf8readc","matchtag","mtcache","htmldecode","entities","vtregex","vt_cache","vt_regex","vtvregex","vtmregex","parseVector","matches","baseType","WTF","wtregex","writetag","wxt_helper","writextag","write_w3cdtf","toISOString","write_vt","xlsx","XMLNS","dc","dcterms","dcmitype","mx","sjs","vt","xsi","xsd","main","XLMLNS","html","read_double_le","Infinity","write_double_le","bs","av","LN2","___toBuffer","__readUInt16LE","___utf16le","__hexlify","___hexlify","__utf8","__readUInt8","___utf8","__lpstr","___lpstr","__cpstr","___cpstr","__lpwstr","___lpwstr","__lpp4","___lpp4","lpp4_","__8lpp4","___8lpp4","__double","___double","is_buf","is_buf_a","lpstr_b","readUInt32LE","cpstr_b","lpwstr_b","lpp4_b","lpp4_8b","utf8_b","double_","readDoubleLE","is_buf_b","cpdoit","cptable","__readInt16LE","__readInt32BE","oI","oR","oo","loc","this","lens","__writeUInt32LE","__writeInt32LE","__writeUInt16LE","WriteShift","cppayload","hexstr","fld","pos","parsenoop","recordhopper","cb","tmpbyte","cntbyte","RT","XLSBRecordEnum","buf_array","blksz","newblk","ba_newblk","curbuf","endbuf","ba_endbuf","next","ba_next","ba_end","ba_push","_bufs","write_record","ba","XLSBRE","make_XLSBRE","shift_cell_xls","cell","cRel","rRel","biff","shift_range_xls","range","encode_cell_xls","encode_cell","fix_col","fix_row","encode_range_xls","encode_col","encode_row","decode_row","rowstr","unfix_row","decode_col","colstr","unfix_col","col","split_cell","decode_cell","decode_range","encode_range","cs","ce","safe_decode_range","safe_format_cell","XF","numFmtId","format_cell","BErr","sheet_to_workbook","sheet","sheets","SheetNames","Sheets","sheet_add_aoa","_ws","dense","ws","_R","_C","origin","_origin","_range","__R","__C","nullError","sheetStubs","cellDates","cell_ref","aoa_to_sheet","VT_I2","VT_I4","VT_BOOL","VT_VARIANT","VT_UI4","VT_LPSTR","VT_FILETIME","VT_BLOB","VT_CF","VT_VECTOR","VT_STRING","VT_USTR","VT_CUSTOM","DocSummaryPIDDSI","3","4","9","10","11","12","13","14","15","16","17","19","22","2147483648","2147483651","1919054434","SummaryPIDSI","18","DocSummaryRE","SummaryRE","CountryEnum","20","39","45","46","47","48","49","82","84","86","90","105","213","216","218","351","354","358","420","886","961","962","963","964","965","966","971","972","974","981","65535","XLSFillPattern","rgbify","_XLSIcv","XLSIcv","RBErr","ct2type","application/vnd.openxmlformats-officedocument.spreadsheetml.sheet.main+xml","application/vnd.ms-excel.binIndexWs","application/vnd.ms-excel.intlmacrosheet","application/vnd.ms-excel.binIndexMs","application/vnd.openxmlformats-package.core-properties+xml","application/vnd.openxmlformats-officedocument.custom-properties+xml","application/vnd.openxmlformats-officedocument.extended-properties+xml","application/vnd.openxmlformats-officedocument.customXmlProperties+xml","application/vnd.openxmlformats-officedocument.spreadsheetml.customProperty","application/vnd.ms-excel.pivotTable","application/vnd.openxmlformats-officedocument.spreadsheetml.pivotTable+xml","application/vnd.openxmlformats-officedocument.drawingml.chart+xml","application/vnd.ms-office.chartcolorstyle+xml","application/vnd.ms-office.chartstyle+xml","application/vnd.ms-office.chartex+xml","application/vnd.ms-excel.calcChain","application/vnd.openxmlformats-officedocument.spreadsheetml.calcChain+xml","application/vnd.openxmlformats-officedocument.spreadsheetml.printerSettings","application/vnd.ms-office.activeX","application/vnd.ms-office.activeX+xml","application/vnd.ms-excel.attachedToolbars","application/vnd.ms-excel.connections","application/vnd.openxmlformats-officedocument.spreadsheetml.connections+xml","application/vnd.ms-excel.externalLink","application/vnd.openxmlformats-officedocument.spreadsheetml.externalLink+xml","application/vnd.ms-excel.sheetMetadata","application/vnd.openxmlformats-officedocument.spreadsheetml.sheetMetadata+xml","application/vnd.ms-excel.pivotCacheDefinition","application/vnd.ms-excel.pivotCacheRecords","application/vnd.openxmlformats-officedocument.spreadsheetml.pivotCacheDefinition+xml","application/vnd.openxmlformats-officedocument.spreadsheetml.pivotCacheRecords+xml","application/vnd.ms-excel.queryTable","application/vnd.openxmlformats-officedocument.spreadsheetml.queryTable+xml","application/vnd.ms-excel.userNames","application/vnd.ms-excel.revisionHeaders","application/vnd.ms-excel.revisionLog","application/vnd.openxmlformats-officedocument.spreadsheetml.revisionHeaders+xml","application/vnd.openxmlformats-officedocument.spreadsheetml.revisionLog+xml","application/vnd.openxmlformats-officedocument.spreadsheetml.userNames+xml","application/vnd.ms-excel.tableSingleCells","application/vnd.openxmlformats-officedocument.spreadsheetml.tableSingleCells+xml","application/vnd.ms-excel.slicer","application/vnd.ms-excel.slicerCache","application/vnd.ms-excel.slicer+xml","application/vnd.ms-excel.slicerCache+xml","application/vnd.ms-excel.wsSortMap","application/vnd.ms-excel.table","application/vnd.openxmlformats-officedocument.spreadsheetml.table+xml","application/vnd.openxmlformats-officedocument.theme+xml","application/vnd.openxmlformats-officedocument.themeOverride+xml","application/vnd.ms-excel.Timeline+xml","application/vnd.ms-excel.TimelineCache+xml","application/vnd.ms-office.vbaProject","application/vnd.ms-office.vbaProjectSignature","application/vnd.ms-office.volatileDependencies","application/vnd.openxmlformats-officedocument.spreadsheetml.volatileDependencies+xml","application/vnd.ms-excel.controlproperties+xml","application/vnd.openxmlformats-officedocument.model+data","application/vnd.ms-excel.Survey+xml","application/vnd.openxmlformats-officedocument.drawing+xml","application/vnd.openxmlformats-officedocument.drawingml.chartshapes+xml","application/vnd.openxmlformats-officedocument.drawingml.diagramColors+xml","application/vnd.openxmlformats-officedocument.drawingml.diagramData+xml","application/vnd.openxmlformats-officedocument.drawingml.diagramLayout+xml","application/vnd.openxmlformats-officedocument.drawingml.diagramStyle+xml","application/vnd.openxmlformats-officedocument.vmlDrawing","application/vnd.openxmlformats-package.relationships+xml","application/vnd.openxmlformats-officedocument.oleObject","image/png","CT_LIST","workbooks","xlsm","xlsb","xlam","xltx","strs","comments","charts","dialogs","macros","styles","type2ct","CT","new_ct","rels","links","coreprops","extprops","custprops","themes","calcchains","vba","drawings","TODO","xmlns","parse_ct","ctext","Extension","ContentType","PartName","calcchain","sst","style","defaults","CTYPE_XML_ROOT","xmlns:xsd","xmlns:xsi","CTYPE_DEFAULTS","write_ct","f1","bookType","f2","f3","RELS","WB","SHEET","HLINK","VML","XPATH","XMISS","XLINK","CXML","CXMLP","VBA","get_rels_path","parse_rels","currentFilePath","!id","rel","Type","Target","Id","TargetMode","canonictarget","RELS_ROOT","write_rels","rid","RELS_EXTERN","add_rels","rId","relobj","targetmode","CT_ODS","parse_manifest","xlml_normalize","Rn","FEtag","xlmlregex","exec","write_manifest","manifest","write_rdf_type","write_rdf_has","write_rdf","rdf","write_meta_ods","wmo","CORE_PROPS","CORE_PROPS_REGEX","parse_core_props","cur","CORE_PROPS_XML_ROOT","xmlns:cp","xmlns:dc","xmlns:dcterms","xmlns:dcmitype","cp_doit","write_core_props","Props","CreatedDate","xsi:type","ModifiedDate","EXT_PROPS","PseudoPropsPairs","load_props_pairs","HP","TOP","props","hp","parts","Worksheets","NamedRanges","DefinedNames","Chartsheets","ChartNames","parse_ext_props","HeadingPairs","TitlesOfParts","EXT_PROPS_XML_ROOT","xmlns:vt","write_ext_props","W","Application","CUST_PROPS","custregex","parse_cust_props","toks","warn","CUST_PROPS_XML_ROOT","write_cust_props","pid","custprop","fmtid","DBF","dbf_codepage_map","100","101","102","103","104","106","107","120","121","122","123","124","125","126","150","151","152","200","201","202","203","21","37","38","87","88","89","108","135","dbf_reverse_map","DBF_SUPPORTED_VERSIONS","dbf_to_aoa","ft","memo","vfp","l7","nrow","fpos","rlen","current_cp","codepage","fields","field","hend","sheetRows","dbf_to_sheet","dbf_to_workbook","_RLEN","?","","sheet_to_dbf","aoa","sheet_to_json","headers","hcnt","coltypes","guess","_guess","hf","_f","hb","rout","_s","versions","to_workbook","to_sheet","from_sheet","SYLK","sylk_escapes","AA","BA","CA","DA","HA","JA","AE","BE","CE","HE","AI","BI","CI","HI","AO","BO","CO","DO","HO","AU","BU","CU","HU","Aa","Ba","Ca","Da","Ha","Ja","Ae","Be","Ce","He","Ai","Bi","Ci","Hi","Ao","Bo","Co","Do","Ho","Au","Bu","Cu","Hu","KC","Kc","DN","Dn","Hy","B ","!","\"","#","(","%","'","H ","+",";","<","=",">","{","sylk_char_regex","sylk_char_fn","_","decode_sylk_char","newcc","sylk_to_aoa","sylk_to_aoa_str","records","rj","formats","next_cell_format","sht","rowinfo","colinfo","cw","Mval","rstr","record","C_seen_K","C_seen_X","C_seen_S","C_seen_E","formula","rc_to_a1","shrbase","shift_formula_str","F_seen","hidden","wch","process_col","hpt","hpx","pt2px","sylk_to_sheet","aoasht","sylk_to_workbook","write_ws_cell_sylk","F","a1_to_rc","write_ws_cols_sylk","cols","rec","width","wpx","width2px","px2char","write_ws_rows_sylk","rows","px2pt","sheet_to_sylk","preamble","RS","coord","DIF","dif_to_aoa","dif_to_aoa_str","metadata","dif_to_sheet","dif_to_workbook","sheet_to_dif","push_field","pf","topic","push_value","po","ETH","eth_to_aoa","eth_to_sheet","eth_to_workbook","sep","meta","sheet_to_eth_data","sheet_to_eth","PRN","set_text_arr","prn_to_aoa_str","lines","guess_seps","guess_sep_weights","guess_sep","instr","dsv_to_sheet_str","FS","sepcc","startcc","_re","finish_cell","fuzzyfmla","cellText","cellNF","outer","prn_to_sheet_str","prn_to_sheet","bytes","firstbyte","prn_to_workbook","sheet_to_prn","read_wb_ID","OLD_WTF","parse_rpr","rpr","font","pass","shadow","outline","strike","uval","rgb","family","valign","parse_rs","tregex","rpregex","parse_r","rregex","rend","rs","filter","rs_to_html","parse_rs_factory","nlregex","parse_rpr2","intro","outro","align","r_to_html","terms","sitregex","sirregex","sirphregex","parse_si","cellHTML","sstr0","sstr1","sstr2","parse_sst_xml","Count","count","Unique","uniqueCount","SST","straywsregex","write_sst_xml","bookSST","sitag","hex2RGB","rgb2Hex","rgb2HSL","G","H6","L2","hsl2RGB","hsl","h6","X","rgb_tint","hex","tint","DEF_MDW","MAX_MDW","MIN_MDW","MDW","px","char2width","chr","cycle_width","collw","find_mdw_colw","delta","_MDW","coll","customWidth","DEF_PPI","PPI","pt","XLMLPatternTypeMap","None","Solid","Gray50","Gray75","Gray25","HorzStripe","VertStripe","ReverseDiagStripe","DiagStripe","DiagCross","ThickDiagCross","ThinHorzStripe","ThinVertStripe","ThinReverseDiagStripe","ThinHorzCross","parse_borders","Borders","border","diagonalUp","diagonalDown","parse_fills","Fills","patternType","bgColor","indexed","theme","fgColor","parse_fonts","Fonts","bold","italic","underline","condense","extend","vertAlign","scheme","auto","index","icv","themeElements","clrScheme","parse_numFmts","NumberFmt","formatCode","write_numFmts","NF","cellXF_uint","cellXF_bool","parse_cellXfs","CellXf","xf","alignment","vertical","horizontal","textRotation","indent","wrapText","write_cellXfs","cellXfs","parse_sty_xml","make_pstyx","numFmtRegex","cellXfRegex","fillsRegex","fontsRegex","bordersRegex","STYLES_XML_ROOT","STY","write_sty_xml","wb","THEME","XLSXThemeClrScheme","parse_clrScheme","lastClr","parse_fontScheme","parse_fmtScheme","clrsregex","fntsregex","fmtsregex","parse_themeElements","themeltregex","parse_theme_xml","write_theme","Themes","themeXLSX","parse_xlink_xml","parse_xlink_bin","xlink_parse","R_n","IMG","DRAW","parse_drawing","id","_shapeid","write_comments_vml","csize","bbox","xmlns:v","xmlns:o","xmlns:x","xmlns:mv","v:ext","joinstyle","gradientshapeok","o:connecttype","o:spt","coordsize","fillopts","color2","angle","fillparm","fillxml","shadata","on","obscured","fillcolor","strokecolor","CMNT","sheet_insert_comments","comment","ref","author","parse_comments_xml","authors","commentList","authtag","cmnttag","cm","authorId","guid","textMatch","rt","CMNT_XML_ROOT","write_comments_xml","iauthor","CT_VBA","make_vba_xls","newcfb","newpath","fill_vba_xls","VBAFMTS","DS","MS","parse_ds_bin","!type","parse_ds_xml","parse_ms_bin","parse_ms_xml","rcregex","rcbase","rcfunc","fstr","crefregex","$0","$4","$5","shift_formula_xlsx","_xlfn","ods_to_csf_formula","csf_to_ods_formula","ods_to_csf_3D","csf_to_ods_3D","_ssfopts","WS","browser_has_Map","Map","get_sst_id","has","revarr","get","col_obj_w","level","outlineLevel","default_margins","margins","mode","defs","left","right","top","bottom","footer","get_cell_style","revssf","ssf","fontId","fillId","borderId","xfId","applyNumberFormat","safe_format","fillid","cellStyles","raw_rgb","check_ws","sname","parse_ws_xml_dim","mergecregex","sheetdataregex","hlinkregex","dimregex","colregex","afregex","marginregex","sheetprregex","sheetprregex2","svsregex","parse_ws_xml","refguess","data1","data2","mtch","sheetPr","parse_ws_xml_sheetpr","parse_ws_xml_sheetpr2","svs","parse_ws_xml_sheetviews","columns","parse_ws_xml_cols","parse_ws_xml_data","afilter","parse_ws_xml_autofilter","merges","_merge","hlink","parse_ws_xml_hlinks","parse_ws_xml_margins","tmpref","write_ws_xml_merges","codeName","CodeName","write_ws_xml_sheetpr","needed","vbaraw","cname","Workbook","outlineprops","summaryBelow","summaryRight","above","sheetprot_deffalse","sheetprot_deftrue","write_ws_xml_protection","sp","password","crypto_CreatePasswordVerifier_Method1","location","Rel","tooltip","Tooltip","rng","margin","write_ws_xml_margins","seencol","coli","colm","colM","write_ws_xml_cols","write_ws_xml_autofilter","Names","names","Name","Sheet","Ref","sviewregex","Views","zoomScale","zoom","rightToLeft","RTL","write_ws_xml_sheetviews","sview","workbookViewId","write_ws_xml_cell","oldt","oldv","os","Strings","revStrings","cellregex","rowregex","isregex","refregex","match_v","match_f","sdata","cells","cref","tagr","tagc","sstr","ftag","do_format","cf","arrayf","sharedf","rowobj","rowrite","marr","marrlen","xlen","rstarti","outa","ht","rslice","cellFormula","xlfn","___f","_tag","_r","write_ws_xml_data","params","height","_cell","customHeight","WS_XML_ROOT","xmlns:r","write_ws_xml","sidx","rdata","_drawing","sheetFormat","defaultRowHeight","baseColWidth","outlineLevelRow","relc","ignoreEC","numberStoredAsText","sqref","r:id","CHART","CHARTEX","parse_Cache","num","nf","parse_chart","csheet","nc","cache","CS","CS_XML_ROOT","parse_cs_xml","!drawel","!rel","write_cs_xml","WBPropsDef","WBViewDef","SheetDef","CalcPrDef","push_defaults_array","push_defaults","parse_wb_defaults","WBProps","CalcPr","WBView","safe1904","badchars","check_ws_name","_good","check_wb_names","N","codes","cn","check_wb","wbnsregex","parse_wb_xml","AppVersion","dname","dnstart","xml_wb","Hidden","Comment","localSheetId","WB_XML_ROOT","write_wb_xml","write_names","workbookPr","sheetId","parse_wb","parse_wb_bin","parse_ws","parse_ws_bin","parse_cs","parse_cs_bin","parse_ms","parse_ds","parse_sty","parse_sty_bin","parse_theme","parse_sst","parse_sst_bin","parse_cmnt","parse_comments_bin","parse_cc","parse_cc_bin","parse_cc_xml","parse_xlink","write_wb","write_wb_bin","write_ws","write_ws_bin","write_cs","write_cs_bin","write_sty","write_sty_bin","write_sst","write_sst_bin","write_cmnt","write_comments_bin","HTML_","html_to_sheet","mtch2","hd","midx","colspan","rowspan","_t","html_to_book","book_new","book_append_sheet","make_html_row","editable","make_html_preamble","_BEGIN","_END","sheet_to_html","_row","BEGIN","END","_preamble","sheet_add_dom","or_R","or_C","getElementsByTagName","is_dom_element_hidden","display","elts","hasAttribute","getAttribute","innerHTML","Aelts","Aelti","parse_dom_table","table_to_book","element","get_computed_style","get_get_computed_style_function","getPropertyValue","ownerDocument","defaultView","getComputedStyle","parse_content_xml","parse_text_p","fixed","number_formats","day","month","year","hours","minutes","seconds","am-pm","day-of-week","era","quarter","pcx","NFtag","pidx","sheetag","rowtag","ctag","textp","textpidx","textptag","textR","row_ol","number_format_map","mrange","mR","mC","rowpeat","colpeat","atag","_Ref","creator","creatoridx","isstub","intable","lastIndex","rptR","rpt","nrange","ptp","bookSheets","parse_ods","parse_fods","write_styles_ods","master_styles","xmlns:office","xmlns:table","xmlns:style","xmlns:text","xmlns:draw","xmlns:fo","xmlns:xlink","xmlns:number","xmlns:svg","xmlns:of","office:version","wso","write_content_ods","write_text_p","null_cell_xml","covered_cell_xml","mi","ods","ROWS","skip","_Fref","text_p","_tgt","xlink:href","write_automatic_styles_ods","cidx","colobj","wcx","attr","xmlns:meta","xmlns:presentation","xmlns:chart","xmlns:dr3d","xmlns:math","xmlns:form","xmlns:script","xmlns:ooo","xmlns:ooow","xmlns:oooc","xmlns:dom","xmlns:xforms","xmlns:sheet","xmlns:rpt","xmlns:xhtml","xmlns:grddl","xmlns:tableooo","xmlns:drawooo","xmlns:calcext","xmlns:loext","xmlns:field","xmlns:formx","xmlns:css3t","fods","xmlns:config","office:mimetype","write_ods","fix_opts_func","fix_opts","fix_read_opts","fix_write_opts","get_sheet_type","safe_parse_wbrels","wbrels","pwbr","strRelID","safe_parse_sheet","relsPath","sheetRels","stype","dfile","drelsp","draw","chartp","crelsp","strip_front_slash","NUMBERS","parse_numbers","_zip","entries","dir","binname","bookProps","link","propdata","pluck","Custprops","deps","bookDeps","wbsheets","wbext","wbrelsi","wbrelsfile","nmode","wsloop","snjseen","snj","Directory","Deps","Styles","bookFiles","bookVBA","bin","parse_xlsxcfb","parse_DataSpaceVersionInfo","dsm","parse_DataSpaceMap","comps","seds","parse_DataSpaceDefinition","parse_Primary","einfo","parse_EncryptionInfo","decrypt_agile","decrypt_std76","write_zip_xlsxb","foo","vbafmt","General","_sn","_i","wsrels","_type","need_vml","rId1","write_zip_xlsx","read_cfb","parse_xlscfb","read_zip","read_plaintext","parse_xlml","read_plaintext_raw","read_utf16","bstrify","read_prn","readSync","ab","vu","WK_","RTF","write_obj_str","write_str","write_htm_str","write_csv_str","sheet_to_csv","write_slk_str","write_dif_str","write_prn_str","write_rtf_str","write_txt_str","sheet_to_txt","write_dbf_buf","write_eth_str","write_wk1_buf","sheet_to_wk1","write_cfb_ctr","write_zip_type","write_zip_denouement","write_zip_typeXLSX","oopts","nodebuffer","string","generate","encrypt_agile","write_cfb_type","write_xlscfb","write_string_type","bom","write_stxt_type","write_binary_type","writeSyncXLSX","writeSync","write_xlml","book_to_wk3","write_biff_buf","resolve_book_type","_BT","xls","slk","socialcalc","Sh33tJS","writeFileSyncXLSX","writeFileAsync","_cb","Function","make_json_row","hdr","defval","isempty","defineProperty","enumerable","__rowNum__","rawNumbers","outi","counter","CC","blankrows","qreg","make_csv_row","txt","forceQuotes","endregex","skipHidden","strip","sheet_to_formulae","cmds","sheet_add_json","js","skipHeader","JS","sheet_get_cell","json_to_sheet","table_to_sheet","sheet_to_row_object_array","add_consts","get_default","ws_get_cell_stub","RC","wb_sheet_idx","sh","book_set_sheet_visibility","vis","cell_set_number_format","cell_set_hyperlink","cell_set_internal_link","cell_add_comment","sheet_set_array_formula","rngstr","readFile","writeXLSX","writeFileXLSX","define","amd","window"],"mappings":";AAIA,GAAIA,QACJ,SAASC,eAAcD,GACvBA,EAAKE,QAAU,QACf,IAAIC,GAAmB,KAAMC,EAAe,IAE5C,IAAIC,IAAe,IAAK,IAAK,IAAK,IAAK,IAAK,IAC5C,KAAI,GAAIC,GAAI,EAAGA,GAAK,IAAKA,EAAGD,EAAWE,KAAK,KAAOD,EAEnD,IAAIE,IACJC,EAAM,KACNC,EAAK,MACLC,EAAK,MACLC,GAAK,IACLC,IAAO,IACPC,IAAO,IACPC,IAAM,KACNC,IAAO,IACPC,IAAO,IACPC,IAAM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IAAQ,KACRC,IAAQ,KACRC,IAAQ,KACRC,IAAQ,KACRC,IAAQ,KACRC,IAAQ,KACRC,IAAQ,KACRC,IAAQ,KACRC,IAAQ,KACRC,IAAQ,KACRC,IAAQ,KACRC,IAAQ,KACRC,IAAQ,KACRC,IAAQ,KACRC,IAAQ,KACRC,IAAQ,KACRC,IAAQ,KACRC,MAAQ,KAIR,IAAIC,KACH,KACA,QACA,aACA,WACA,YACA,iBACA,eACA,WACA,SACA,WACA,cACA,kBACA,gBACA,YACA,UACA,YACA,eACA,UACA,WAGD,SAASC,IAAO/T,GAAO,MAAOA,GAAIpvB,IAAI,SAASN,GAAK,OAASA,GAAG,GAAI,IAAKA,GAAG,EAAG,IAAIA,EAAE,OAIrF,GAAI0jC,IAAUD,IAEb,EACA,SACA,SACA,MACA,IACA,SACA,SACA,MAGA,EACA,SACA,SACA,MACA,IACA,SACA,SACA,MAEA,QACA,MACA,IACA,QACA,QACA,MACA,SACA,QACA,SACA,SACA,SACA,SACA,QACA,SACA,MACA,SAEA,IACA,SACA,SACA,MACA,QACA,QACA,MACA,IACA,MACA,SACA,SACA,SACA,SACA,SACA,SACA,SAEA,QACA,QACA,SACA,SACA,SACA,SACA,QACA,QACA,MACA,QACA,MACA,QACA,SACA,SACA,QACA,QAGA,SACA,EACA,EACA,EACA,EACA,EACA,EACA,EACA,EACA,EACA,EACA,EACA,EACA,EACA,EACA,EACA,EACA,GAED,IAAIE,IAAS/T,GAAI8T,GAGjB,IAAI1F,KACJ3gC,EAAM,SACNyU,EAAM,UACN8uB,GAAM,UACN5uB,GAAM,QACNM,GAAM,SACNO,GAAM,QACNE,GAAM,OACNC,GAAM,gBACNzU,IAAM,QAEN,IAAIqlC,IAAQhV,EAAUoP,GAKtB,IAAI6F,KAEHC,6EAA8E,YAG9EC,sCAAuC,OAGvCC,0CAA2C,OAC3CC,sCAAuC,OAGvCC,6DAA8D,YAC9DC,sEAAuE,YACvEC,wEAAyE,WAGzEC,wEAAyE,OACzEC,6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EwJ,EAAG6L,GAAKi8C,EAAIlyD,EAAEoK,IAAK6L,EAAG,IAAI,GAAIP,GAAIw8C,EAAItxD,EAAEO,EAAGuU,GAAKw8C,EAAIlyD,EAAEmB,IAAKuU,EAAG,CAC/E,GAAI8kB,GAAOy0C,EAAiBjyC,EAAI/mB,EAAGP,EACnC8kB,GAAK13B,EAAI,GACT03B,GAAKqf,EAAI+1B,QACFp1C,GAAK33B,CACZ,IAAGoT,GAAKi8C,EAAItxD,EAAEwJ,GAAKsL,GAAKw8C,EAAItxD,EAAEO,EAAGq5B,EAAKnsB,EAAIyqC,EAE3C,MAAO9b,GAGR,OAAOtT,KACJA,GAEH,UAAU8/C,gBAAiB,YAAaruE,EAAKquE,aAAeA,YAC5DruE,GAAKid,UAAYA,EACjBjd,GAAKyhB,KAAOotD,EACZ7uE,GAAK00E,SAAWlzD,EAChBxhB,GAAKwhB,aAAeA,EACpBxhB,GAAK4kB,MAAQqsD,EACbjxE,GAAK8uB,UAAYnK,EACjB3kB,GAAK2kB,cAAgBA,EACrB3kB,GAAK4xE,eAAiBA,EACtB5xE,GAAKuuB,MAAQA,EACbvuB,GAAK20E,UAAY3D,EACjBhxE,GAAK40E,cAAgBjD,EACrB3xE,GAAKoH,IAAMA,CACX,UAAUsT,KAAQ,YAAa1a,EAAK0a,IAAMA,EAG1C,SAAUE,WAAY,YAAa3a,cAAc2a,aAC5C,UAAUuU,UAAW,aAAeA,OAAOvU,QAAS3a,cAAckvB,OAAOvU,aACzE,UAAUi6D,UAAW,YAAcA,OAAOC,IAAKD,OAAO,OAAQ,WAAa,IAAI70E,KAAKE,QAASD,cAAcD,KAAO,OAAOA,YACzHC,eAAcD,KAEnB,UAAU+0E,UAAW,cAAgBA,OAAO/0E,KAAM,IAAM+0E,OAAO/0E,KAAOA,KAAQ,MAAM6E","file":"dist/xlsx.mini.min.js"} \ No newline at end of file diff --git a/docbits/10_install.md b/docbits/10_install.md index dec19af..767f3d1 100644 --- a/docbits/10_install.md +++ b/docbits/10_install.md @@ -34,10 +34,12 @@ For example, `unpkg` makes the latest version available at: The complete single-file version is generated at `dist/xlsx.full.min.js` +`dist/xlsx.core.min.js` omits codepage library (no support for XLS encodings) + A slimmer build is generated at `dist/xlsx.mini.min.js`. Compared to full build: - codepage library skipped (no support for XLS encodings) - XLSX compression option not currently available -- no support for XLSB / XLS / Lotus 1-2-3 / SpreadsheetML 2003 +- no support for XLSB / XLS / Lotus 1-2-3 / SpreadsheetML 2003 / Numbers - node stream utils removed diff --git a/mini.lst b/mini.lst index 941d944..f48de91 100644 --- a/mini.lst +++ b/mini.lst @@ -1,6 +1,6 @@ bits/00_header.js bits/01_version.js -bits/02_codepage.js +misc/02_cpmini.js bits/03_consts.js bits/04_base64.js bits/05_buf.js @@ -19,6 +19,7 @@ bits/27_csfutils.js bits/29_xlsenum.js bits/30_ctype.js bits/31_rels.js +bits/32_odmanrdf.js bits/33_coreprops.js bits/34_extprops.js bits/35_custprops.js @@ -35,17 +36,17 @@ bits/57_cmntxml.js bits/59_vba.js bits/60_macrovba.js bits/61_fcommon.js +bits/65_fods.js bits/66_wscommon.js bits/67_wsxml.js bits/69_chartxml.js -bits/70_csheet.js +misc/70_csheet.js bits/71_wbcommon.js bits/72_wbxml.js bits/74_xmlbin.js bits/79_html.js bits/80_parseods.js bits/81_writeods.js -bits/83_numbers.js bits/84_defaults.js bits/85_parsezip.js bits/86_writezip.js diff --git a/misc/02_cpmini.js b/misc/02_cpmini.js new file mode 100644 index 0000000..20a4883 --- /dev/null +++ b/misc/02_cpmini.js @@ -0,0 +1,57 @@ +var current_codepage = 1200, current_ansi = 1252; + +var VALID_ANSI = [ 874, 932, 936, 949, 950, 10000 ]; +for(var i = 0; i <= 8; ++i) VALID_ANSI.push(1250 + i); +/* ECMA-376 Part I 18.4.1 charset to codepage mapping */ +var CS2CP = ({ + /*::[*/0/*::]*/: 1252, /* ANSI */ + /*::[*/1/*::]*/: 65001, /* DEFAULT */ + /*::[*/2/*::]*/: 65001, /* SYMBOL */ + /*::[*/77/*::]*/: 10000, /* MAC */ + /*::[*/128/*::]*/: 932, /* SHIFTJIS */ + /*::[*/129/*::]*/: 949, /* HANGUL */ + /*::[*/130/*::]*/: 1361, /* JOHAB */ + /*::[*/134/*::]*/: 936, /* GB2312 */ + /*::[*/136/*::]*/: 950, /* CHINESEBIG5 */ + /*::[*/161/*::]*/: 1253, /* GREEK */ + /*::[*/162/*::]*/: 1254, /* TURKISH */ + /*::[*/163/*::]*/: 1258, /* VIETNAMESE */ + /*::[*/177/*::]*/: 1255, /* HEBREW */ + /*::[*/178/*::]*/: 1256, /* ARABIC */ + /*::[*/186/*::]*/: 1257, /* BALTIC */ + /*::[*/204/*::]*/: 1251, /* RUSSIAN */ + /*::[*/222/*::]*/: 874, /* THAI */ + /*::[*/238/*::]*/: 1250, /* EASTEUROPE */ + /*::[*/255/*::]*/: 1252, /* OEM */ + /*::[*/69/*::]*/: 6969 /* MISC */ +}/*:any*/); + +var set_ansi = function(cp/*:number*/) { if(VALID_ANSI.indexOf(cp) == -1) return; current_ansi = CS2CP[0] = cp; }; +function reset_ansi() { set_ansi(1252); } + +var set_cp = function(cp/*:number*/) { current_codepage = cp; set_ansi(cp); }; +function reset_cp() { set_cp(1200); reset_ansi(); } + +function char_codes(data/*:string*/)/*:Array*/ { var o/*:Array*/ = []; for(var i = 0, len = data.length; i < len; ++i) o[i] = data.charCodeAt(i); return o; } + +function utf16leread(data/*:string*/)/*:string*/ { + var o/*:Array*/ = []; + for(var i = 0; i < (data.length>>1); ++i) o[i] = String.fromCharCode(data.charCodeAt(2*i) + (data.charCodeAt(2*i+1)<<8)); + return o.join(""); +} +function utf16beread(data/*:string*/)/*:string*/ { + var o/*:Array*/ = []; + for(var i = 0; i < (data.length>>1); ++i) o[i] = String.fromCharCode(data.charCodeAt(2*i+1) + (data.charCodeAt(2*i)<<8)); + return o.join(""); +} + +var debom = function(data/*:string*/)/*:string*/ { + var c1 = data.charCodeAt(0), c2 = data.charCodeAt(1); + if(c1 == 0xFF && c2 == 0xFE) return utf16leread(data.slice(2)); + if(c1 == 0xFE && c2 == 0xFF) return utf16beread(data.slice(2)); + if(c1 == 0xFEFF) return data.slice(1); + return data; +}; + +var _getchar = function _gc1(x/*:number*/)/*:string*/ { return String.fromCharCode(x); }; +var _getansi = function _ga1(x/*:number*/)/*:string*/ { return String.fromCharCode(x); }; diff --git a/misc/70_csheet.js b/misc/70_csheet.js new file mode 100644 index 0000000..6e69af6 --- /dev/null +++ b/misc/70_csheet.js @@ -0,0 +1,32 @@ +RELS.CS = "http://schemas.openxmlformats.org/officeDocument/2006/relationships/chartsheet"; + +var CS_XML_ROOT = writextag('chartsheet', null, { + 'xmlns': XMLNS.main[0], + 'xmlns:r': XMLNS.r +}); + +/* 18.3 Worksheets also covers Chartsheets */ +function parse_cs_xml(data/*:?string*/, opts, idx/*:number*/, rels, wb/*::, themes, styles*/)/*:Worksheet*/ { + if(!data) return data; + /* 18.3.1.12 chartsheet CT_ChartSheet */ + if(!rels) rels = {'!id':{}}; + var s = ({'!type':"chart", '!drawel':null, '!rel':""}/*:any*/); + var m; + + /* 18.3.1.83 sheetPr CT_ChartsheetPr */ + var sheetPr = data.match(sheetprregex); + if(sheetPr) parse_ws_xml_sheetpr(sheetPr[0], s, wb, idx); + + /* 18.3.1.36 drawing CT_Drawing */ + if((m = data.match(/drawing r:id="(.*?)"/))) s['!rel'] = m[1]; + + if(rels['!id'][s['!rel']]) s['!drawel'] = rels['!id'][s['!rel']]; + return s; +} +function write_cs_xml(idx/*:number*/, opts, wb/*:Workbook*/, rels)/*:string*/ { + var o = [XML_HEADER, CS_XML_ROOT]; + o[o.length] = writextag("drawing", null, {"r:id": "rId1"}); + add_rels(rels, -1, "../drawings/drawing" + (idx+1) + ".xml", RELS.DRAW); + if(o.length>2) { o[o.length] = (''); o[1]=o[1].replace("/>",">"); } + return o.join(""); +}