UNPKG

excel-builder

Version:

An easy way of building Excel files with javascript

2 lines 92.4 kB
require=function a(b,c,d){function e(g,h){if(!c[g]){if(!b[g]){var i="function"==typeof require&&require;if(!h&&i)return i(g,!0);if(f)return f(g,!0);var j=new Error("Cannot find module '"+g+"'");throw j.code="MODULE_NOT_FOUND",j}var k=c[g]={exports:{}};b[g][0].call(k.exports,function(a){var c=b[g][1][a];return e(c?c:a)},k,k.exports,a,b,c,d)}return c[g].exports}for(var f="function"==typeof require&&require,g=0;g<d.length;g++)e(d[g]);return e}({1:[function(a,b,c){(function(b){"use strict";function d(){function a(){}try{var b=new Uint8Array(1);return b.foo=function(){return 42},b.constructor=a,42===b.foo()&&b.constructor===a&&"function"==typeof b.subarray&&0===b.subarray(1,1).byteLength}catch(c){return!1}}function e(){return f.TYPED_ARRAY_SUPPORT?2147483647:1073741823}function f(a){return this instanceof f?(f.TYPED_ARRAY_SUPPORT||(this.length=0,this.parent=void 0),"number"==typeof a?g(this,a):"string"==typeof a?h(this,a,arguments.length>1?arguments[1]:"utf8"):i(this,a)):arguments.length>1?new f(a,arguments[1]):new f(a)}function g(a,b){if(a=p(a,0>b?0:0|q(b)),!f.TYPED_ARRAY_SUPPORT)for(var c=0;b>c;c++)a[c]=0;return a}function h(a,b,c){"string"==typeof c&&""!==c||(c="utf8");var d=0|s(b,c);return a=p(a,d),a.write(b,c),a}function i(a,b){if(f.isBuffer(b))return j(a,b);if(Y(b))return k(a,b);if(null==b)throw new TypeError("must start with number, buffer, array or string");if("undefined"!=typeof ArrayBuffer){if(b.buffer instanceof ArrayBuffer)return l(a,b);if(b instanceof ArrayBuffer)return m(a,b)}return b.length?n(a,b):o(a,b)}function j(a,b){var c=0|q(b.length);return a=p(a,c),b.copy(a,0,0,c),a}function k(a,b){var c=0|q(b.length);a=p(a,c);for(var d=0;c>d;d+=1)a[d]=255&b[d];return a}function l(a,b){var c=0|q(b.length);a=p(a,c);for(var d=0;c>d;d+=1)a[d]=255&b[d];return a}function m(a,b){return f.TYPED_ARRAY_SUPPORT?(b.byteLength,a=f._augment(new Uint8Array(b))):a=l(a,new Uint8Array(b)),a}function n(a,b){var c=0|q(b.length);a=p(a,c);for(var d=0;c>d;d+=1)a[d]=255&b[d];return a}function o(a,b){var c,d=0;"Buffer"===b.type&&Y(b.data)&&(c=b.data,d=0|q(c.length)),a=p(a,d);for(var e=0;d>e;e+=1)a[e]=255&c[e];return a}function p(a,b){f.TYPED_ARRAY_SUPPORT?(a=f._augment(new Uint8Array(b)),a.__proto__=f.prototype):(a.length=b,a._isBuffer=!0);var c=0!==b&&b<=f.poolSize>>>1;return c&&(a.parent=Z),a}function q(a){if(a>=e())throw new RangeError("Attempt to allocate Buffer larger than maximum size: 0x"+e().toString(16)+" bytes");return 0|a}function r(a,b){if(!(this instanceof r))return new r(a,b);var c=new f(a,b);return delete c.parent,c}function s(a,b){"string"!=typeof a&&(a=""+a);var c=a.length;if(0===c)return 0;for(var d=!1;;)switch(b){case"ascii":case"binary":case"raw":case"raws":return c;case"utf8":case"utf-8":return R(a).length;case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return 2*c;case"hex":return c>>>1;case"base64":return U(a).length;default:if(d)return R(a).length;b=(""+b).toLowerCase(),d=!0}}function t(a,b,c){var d=!1;if(b=0|b,c=void 0===c||c===1/0?this.length:0|c,a||(a="utf8"),0>b&&(b=0),c>this.length&&(c=this.length),b>=c)return"";for(;;)switch(a){case"hex":return F(this,b,c);case"utf8":case"utf-8":return B(this,b,c);case"ascii":return D(this,b,c);case"binary":return E(this,b,c);case"base64":return A(this,b,c);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return G(this,b,c);default:if(d)throw new TypeError("Unknown encoding: "+a);a=(a+"").toLowerCase(),d=!0}}function u(a,b,c,d){c=Number(c)||0;var e=a.length-c;d?(d=Number(d),d>e&&(d=e)):d=e;var f=b.length;if(f%2!==0)throw new Error("Invalid hex string");d>f/2&&(d=f/2);for(var g=0;d>g;g++){var h=parseInt(b.substr(2*g,2),16);if(isNaN(h))throw new Error("Invalid hex string");a[c+g]=h}return g}function v(a,b,c,d){return V(R(b,a.length-c),a,c,d)}function w(a,b,c,d){return V(S(b),a,c,d)}function x(a,b,c,d){return w(a,b,c,d)}function y(a,b,c,d){return V(U(b),a,c,d)}function z(a,b,c,d){return V(T(b,a.length-c),a,c,d)}function A(a,b,c){return 0===b&&c===a.length?W.fromByteArray(a):W.fromByteArray(a.slice(b,c))}function B(a,b,c){c=Math.min(a.length,c);for(var d=[],e=b;c>e;){var f=a[e],g=null,h=f>239?4:f>223?3:f>191?2:1;if(c>=e+h){var i,j,k,l;switch(h){case 1:128>f&&(g=f);break;case 2:i=a[e+1],128===(192&i)&&(l=(31&f)<<6|63&i,l>127&&(g=l));break;case 3:i=a[e+1],j=a[e+2],128===(192&i)&&128===(192&j)&&(l=(15&f)<<12|(63&i)<<6|63&j,l>2047&&(55296>l||l>57343)&&(g=l));break;case 4:i=a[e+1],j=a[e+2],k=a[e+3],128===(192&i)&&128===(192&j)&&128===(192&k)&&(l=(15&f)<<18|(63&i)<<12|(63&j)<<6|63&k,l>65535&&1114112>l&&(g=l))}}null===g?(g=65533,h=1):g>65535&&(g-=65536,d.push(g>>>10&1023|55296),g=56320|1023&g),d.push(g),e+=h}return C(d)}function C(a){var b=a.length;if($>=b)return String.fromCharCode.apply(String,a);for(var c="",d=0;b>d;)c+=String.fromCharCode.apply(String,a.slice(d,d+=$));return c}function D(a,b,c){var d="";c=Math.min(a.length,c);for(var e=b;c>e;e++)d+=String.fromCharCode(127&a[e]);return d}function E(a,b,c){var d="";c=Math.min(a.length,c);for(var e=b;c>e;e++)d+=String.fromCharCode(a[e]);return d}function F(a,b,c){var d=a.length;(!b||0>b)&&(b=0),(!c||0>c||c>d)&&(c=d);for(var e="",f=b;c>f;f++)e+=Q(a[f]);return e}function G(a,b,c){for(var d=a.slice(b,c),e="",f=0;f<d.length;f+=2)e+=String.fromCharCode(d[f]+256*d[f+1]);return e}function H(a,b,c){if(a%1!==0||0>a)throw new RangeError("offset is not uint");if(a+b>c)throw new RangeError("Trying to access beyond buffer length")}function I(a,b,c,d,e,g){if(!f.isBuffer(a))throw new TypeError("buffer must be a Buffer instance");if(b>e||g>b)throw new RangeError("value is out of bounds");if(c+d>a.length)throw new RangeError("index out of range")}function J(a,b,c,d){0>b&&(b=65535+b+1);for(var e=0,f=Math.min(a.length-c,2);f>e;e++)a[c+e]=(b&255<<8*(d?e:1-e))>>>8*(d?e:1-e)}function K(a,b,c,d){0>b&&(b=4294967295+b+1);for(var e=0,f=Math.min(a.length-c,4);f>e;e++)a[c+e]=b>>>8*(d?e:3-e)&255}function L(a,b,c,d,e,f){if(b>e||f>b)throw new RangeError("value is out of bounds");if(c+d>a.length)throw new RangeError("index out of range");if(0>c)throw new RangeError("index out of range")}function M(a,b,c,d,e){return e||L(a,b,c,4,3.4028234663852886e38,-3.4028234663852886e38),X.write(a,b,c,d,23,4),c+4}function N(a,b,c,d,e){return e||L(a,b,c,8,1.7976931348623157e308,-1.7976931348623157e308),X.write(a,b,c,d,52,8),c+8}function O(a){if(a=P(a).replace(aa,""),a.length<2)return"";for(;a.length%4!==0;)a+="=";return a}function P(a){return a.trim?a.trim():a.replace(/^\s+|\s+$/g,"")}function Q(a){return 16>a?"0"+a.toString(16):a.toString(16)}function R(a,b){b=b||1/0;for(var c,d=a.length,e=null,f=[],g=0;d>g;g++){if(c=a.charCodeAt(g),c>55295&&57344>c){if(!e){if(c>56319){(b-=3)>-1&&f.push(239,191,189);continue}if(g+1===d){(b-=3)>-1&&f.push(239,191,189);continue}e=c;continue}if(56320>c){(b-=3)>-1&&f.push(239,191,189),e=c;continue}c=(e-55296<<10|c-56320)+65536}else e&&(b-=3)>-1&&f.push(239,191,189);if(e=null,128>c){if((b-=1)<0)break;f.push(c)}else if(2048>c){if((b-=2)<0)break;f.push(c>>6|192,63&c|128)}else if(65536>c){if((b-=3)<0)break;f.push(c>>12|224,c>>6&63|128,63&c|128)}else{if(!(1114112>c))throw new Error("Invalid code point");if((b-=4)<0)break;f.push(c>>18|240,c>>12&63|128,c>>6&63|128,63&c|128)}}return f}function S(a){for(var b=[],c=0;c<a.length;c++)b.push(255&a.charCodeAt(c));return b}function T(a,b){for(var c,d,e,f=[],g=0;g<a.length&&!((b-=2)<0);g++)c=a.charCodeAt(g),d=c>>8,e=c%256,f.push(e),f.push(d);return f}function U(a){return W.toByteArray(O(a))}function V(a,b,c,d){for(var e=0;d>e&&!(e+c>=b.length||e>=a.length);e++)b[e+c]=a[e];return e}var W=a("base64-js"),X=a("ieee754"),Y=a("isarray");c.Buffer=f,c.SlowBuffer=r,c.INSPECT_MAX_BYTES=50,f.poolSize=8192;var Z={};f.TYPED_ARRAY_SUPPORT=void 0!==b.TYPED_ARRAY_SUPPORT?b.TYPED_ARRAY_SUPPORT:d(),f.TYPED_ARRAY_SUPPORT?(f.prototype.__proto__=Uint8Array.prototype,f.__proto__=Uint8Array):(f.prototype.length=void 0,f.prototype.parent=void 0),f.isBuffer=function(a){return!(null==a||!a._isBuffer)},f.compare=function(a,b){if(!f.isBuffer(a)||!f.isBuffer(b))throw new TypeError("Arguments must be Buffers");if(a===b)return 0;for(var c=a.length,d=b.length,e=0,g=Math.min(c,d);g>e&&a[e]===b[e];)++e;return e!==g&&(c=a[e],d=b[e]),d>c?-1:c>d?1:0},f.isEncoding=function(a){switch(String(a).toLowerCase()){case"hex":case"utf8":case"utf-8":case"ascii":case"binary":case"base64":case"raw":case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return!0;default:return!1}},f.concat=function(a,b){if(!Y(a))throw new TypeError("list argument must be an Array of Buffers.");if(0===a.length)return new f(0);var c;if(void 0===b)for(b=0,c=0;c<a.length;c++)b+=a[c].length;var d=new f(b),e=0;for(c=0;c<a.length;c++){var g=a[c];g.copy(d,e),e+=g.length}return d},f.byteLength=s,f.prototype.toString=function(){var a=0|this.length;return 0===a?"":0===arguments.length?B(this,0,a):t.apply(this,arguments)},f.prototype.equals=function(a){if(!f.isBuffer(a))throw new TypeError("Argument must be a Buffer");return this===a?!0:0===f.compare(this,a)},f.prototype.inspect=function(){var a="",b=c.INSPECT_MAX_BYTES;return this.length>0&&(a=this.toString("hex",0,b).match(/.{2}/g).join(" "),this.length>b&&(a+=" ... ")),"<Buffer "+a+">"},f.prototype.compare=function(a){if(!f.isBuffer(a))throw new TypeError("Argument must be a Buffer");return this===a?0:f.compare(this,a)},f.prototype.indexOf=function(a,b){function c(a,b,c){for(var d=-1,e=0;c+e<a.length;e++)if(a[c+e]===b[-1===d?0:e-d]){if(-1===d&&(d=e),e-d+1===b.length)return c+d}else d=-1;return-1}if(b>2147483647?b=2147483647:-2147483648>b&&(b=-2147483648),b>>=0,0===this.length)return-1;if(b>=this.length)return-1;if(0>b&&(b=Math.max(this.length+b,0)),"string"==typeof a)return 0===a.length?-1:String.prototype.indexOf.call(this,a,b);if(f.isBuffer(a))return c(this,a,b);if("number"==typeof a)return f.TYPED_ARRAY_SUPPORT&&"function"===Uint8Array.prototype.indexOf?Uint8Array.prototype.indexOf.call(this,a,b):c(this,[a],b);throw new TypeError("val must be string, number or Buffer")},f.prototype.get=function(a){return this.readUInt8(a)},f.prototype.set=function(a,b){return this.writeUInt8(a,b)},f.prototype.write=function(a,b,c,d){if(void 0===b)d="utf8",c=this.length,b=0;else if(void 0===c&&"string"==typeof b)d=b,c=this.length,b=0;else if(isFinite(b))b=0|b,isFinite(c)?(c=0|c,void 0===d&&(d="utf8")):(d=c,c=void 0);else{var e=d;d=b,b=0|c,c=e}var f=this.length-b;if((void 0===c||c>f)&&(c=f),a.length>0&&(0>c||0>b)||b>this.length)throw new RangeError("attempt to write outside buffer bounds");d||(d="utf8");for(var g=!1;;)switch(d){case"hex":return u(this,a,b,c);case"utf8":case"utf-8":return v(this,a,b,c);case"ascii":return w(this,a,b,c);case"binary":return x(this,a,b,c);case"base64":return y(this,a,b,c);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return z(this,a,b,c);default:if(g)throw new TypeError("Unknown encoding: "+d);d=(""+d).toLowerCase(),g=!0}},f.prototype.toJSON=function(){return{type:"Buffer",data:Array.prototype.slice.call(this._arr||this,0)}};var $=4096;f.prototype.slice=function(a,b){var c=this.length;a=~~a,b=void 0===b?c:~~b,0>a?(a+=c,0>a&&(a=0)):a>c&&(a=c),0>b?(b+=c,0>b&&(b=0)):b>c&&(b=c),a>b&&(b=a);var d;if(f.TYPED_ARRAY_SUPPORT)d=f._augment(this.subarray(a,b));else{var e=b-a;d=new f(e,void 0);for(var g=0;e>g;g++)d[g]=this[g+a]}return d.length&&(d.parent=this.parent||this),d},f.prototype.readUIntLE=function(a,b,c){a=0|a,b=0|b,c||H(a,b,this.length);for(var d=this[a],e=1,f=0;++f<b&&(e*=256);)d+=this[a+f]*e;return d},f.prototype.readUIntBE=function(a,b,c){a=0|a,b=0|b,c||H(a,b,this.length);for(var d=this[a+--b],e=1;b>0&&(e*=256);)d+=this[a+--b]*e;return d},f.prototype.readUInt8=function(a,b){return b||H(a,1,this.length),this[a]},f.prototype.readUInt16LE=function(a,b){return b||H(a,2,this.length),this[a]|this[a+1]<<8},f.prototype.readUInt16BE=function(a,b){return b||H(a,2,this.length),this[a]<<8|this[a+1]},f.prototype.readUInt32LE=function(a,b){return b||H(a,4,this.length),(this[a]|this[a+1]<<8|this[a+2]<<16)+16777216*this[a+3]},f.prototype.readUInt32BE=function(a,b){return b||H(a,4,this.length),16777216*this[a]+(this[a+1]<<16|this[a+2]<<8|this[a+3])},f.prototype.readIntLE=function(a,b,c){a=0|a,b=0|b,c||H(a,b,this.length);for(var d=this[a],e=1,f=0;++f<b&&(e*=256);)d+=this[a+f]*e;return e*=128,d>=e&&(d-=Math.pow(2,8*b)),d},f.prototype.readIntBE=function(a,b,c){a=0|a,b=0|b,c||H(a,b,this.length);for(var d=b,e=1,f=this[a+--d];d>0&&(e*=256);)f+=this[a+--d]*e;return e*=128,f>=e&&(f-=Math.pow(2,8*b)),f},f.prototype.readInt8=function(a,b){return b||H(a,1,this.length),128&this[a]?-1*(255-this[a]+1):this[a]},f.prototype.readInt16LE=function(a,b){b||H(a,2,this.length);var c=this[a]|this[a+1]<<8;return 32768&c?4294901760|c:c},f.prototype.readInt16BE=function(a,b){b||H(a,2,this.length);var c=this[a+1]|this[a]<<8;return 32768&c?4294901760|c:c},f.prototype.readInt32LE=function(a,b){return b||H(a,4,this.length),this[a]|this[a+1]<<8|this[a+2]<<16|this[a+3]<<24},f.prototype.readInt32BE=function(a,b){return b||H(a,4,this.length),this[a]<<24|this[a+1]<<16|this[a+2]<<8|this[a+3]},f.prototype.readFloatLE=function(a,b){return b||H(a,4,this.length),X.read(this,a,!0,23,4)},f.prototype.readFloatBE=function(a,b){return b||H(a,4,this.length),X.read(this,a,!1,23,4)},f.prototype.readDoubleLE=function(a,b){return b||H(a,8,this.length),X.read(this,a,!0,52,8)},f.prototype.readDoubleBE=function(a,b){return b||H(a,8,this.length),X.read(this,a,!1,52,8)},f.prototype.writeUIntLE=function(a,b,c,d){a=+a,b=0|b,c=0|c,d||I(this,a,b,c,Math.pow(2,8*c),0);var e=1,f=0;for(this[b]=255&a;++f<c&&(e*=256);)this[b+f]=a/e&255;return b+c},f.prototype.writeUIntBE=function(a,b,c,d){a=+a,b=0|b,c=0|c,d||I(this,a,b,c,Math.pow(2,8*c),0);var e=c-1,f=1;for(this[b+e]=255&a;--e>=0&&(f*=256);)this[b+e]=a/f&255;return b+c},f.prototype.writeUInt8=function(a,b,c){return a=+a,b=0|b,c||I(this,a,b,1,255,0),f.TYPED_ARRAY_SUPPORT||(a=Math.floor(a)),this[b]=255&a,b+1},f.prototype.writeUInt16LE=function(a,b,c){return a=+a,b=0|b,c||I(this,a,b,2,65535,0),f.TYPED_ARRAY_SUPPORT?(this[b]=255&a,this[b+1]=a>>>8):J(this,a,b,!0),b+2},f.prototype.writeUInt16BE=function(a,b,c){return a=+a,b=0|b,c||I(this,a,b,2,65535,0),f.TYPED_ARRAY_SUPPORT?(this[b]=a>>>8,this[b+1]=255&a):J(this,a,b,!1),b+2},f.prototype.writeUInt32LE=function(a,b,c){return a=+a,b=0|b,c||I(this,a,b,4,4294967295,0),f.TYPED_ARRAY_SUPPORT?(this[b+3]=a>>>24,this[b+2]=a>>>16,this[b+1]=a>>>8,this[b]=255&a):K(this,a,b,!0),b+4},f.prototype.writeUInt32BE=function(a,b,c){return a=+a,b=0|b,c||I(this,a,b,4,4294967295,0),f.TYPED_ARRAY_SUPPORT?(this[b]=a>>>24,this[b+1]=a>>>16,this[b+2]=a>>>8,this[b+3]=255&a):K(this,a,b,!1),b+4},f.prototype.writeIntLE=function(a,b,c,d){if(a=+a,b=0|b,!d){var e=Math.pow(2,8*c-1);I(this,a,b,c,e-1,-e)}var f=0,g=1,h=0>a?1:0;for(this[b]=255&a;++f<c&&(g*=256);)this[b+f]=(a/g>>0)-h&255;return b+c},f.prototype.writeIntBE=function(a,b,c,d){if(a=+a,b=0|b,!d){var e=Math.pow(2,8*c-1);I(this,a,b,c,e-1,-e)}var f=c-1,g=1,h=0>a?1:0;for(this[b+f]=255&a;--f>=0&&(g*=256);)this[b+f]=(a/g>>0)-h&255;return b+c},f.prototype.writeInt8=function(a,b,c){return a=+a,b=0|b,c||I(this,a,b,1,127,-128),f.TYPED_ARRAY_SUPPORT||(a=Math.floor(a)),0>a&&(a=255+a+1),this[b]=255&a,b+1},f.prototype.writeInt16LE=function(a,b,c){return a=+a,b=0|b,c||I(this,a,b,2,32767,-32768),f.TYPED_ARRAY_SUPPORT?(this[b]=255&a,this[b+1]=a>>>8):J(this,a,b,!0),b+2},f.prototype.writeInt16BE=function(a,b,c){return a=+a,b=0|b,c||I(this,a,b,2,32767,-32768),f.TYPED_ARRAY_SUPPORT?(this[b]=a>>>8,this[b+1]=255&a):J(this,a,b,!1),b+2},f.prototype.writeInt32LE=function(a,b,c){return a=+a,b=0|b,c||I(this,a,b,4,2147483647,-2147483648),f.TYPED_ARRAY_SUPPORT?(this[b]=255&a,this[b+1]=a>>>8,this[b+2]=a>>>16,this[b+3]=a>>>24):K(this,a,b,!0),b+4},f.prototype.writeInt32BE=function(a,b,c){return a=+a,b=0|b,c||I(this,a,b,4,2147483647,-2147483648),0>a&&(a=4294967295+a+1),f.TYPED_ARRAY_SUPPORT?(this[b]=a>>>24,this[b+1]=a>>>16,this[b+2]=a>>>8,this[b+3]=255&a):K(this,a,b,!1),b+4},f.prototype.writeFloatLE=function(a,b,c){return M(this,a,b,!0,c)},f.prototype.writeFloatBE=function(a,b,c){return M(this,a,b,!1,c)},f.prototype.writeDoubleLE=function(a,b,c){return N(this,a,b,!0,c)},f.prototype.writeDoubleBE=function(a,b,c){return N(this,a,b,!1,c)},f.prototype.copy=function(a,b,c,d){if(c||(c=0),d||0===d||(d=this.length),b>=a.length&&(b=a.length),b||(b=0),d>0&&c>d&&(d=c),d===c)return 0;if(0===a.length||0===this.length)return 0;if(0>b)throw new RangeError("targetStart out of bounds");if(0>c||c>=this.length)throw new RangeError("sourceStart out of bounds");if(0>d)throw new RangeError("sourceEnd out of bounds");d>this.length&&(d=this.length),a.length-b<d-c&&(d=a.length-b+c);var e,g=d-c;if(this===a&&b>c&&d>b)for(e=g-1;e>=0;e--)a[e+b]=this[e+c];else if(1e3>g||!f.TYPED_ARRAY_SUPPORT)for(e=0;g>e;e++)a[e+b]=this[e+c];else a._set(this.subarray(c,c+g),b);return g},f.prototype.fill=function(a,b,c){if(a||(a=0),b||(b=0),c||(c=this.length),b>c)throw new RangeError("end < start");if(c!==b&&0!==this.length){if(0>b||b>=this.length)throw new RangeError("start out of bounds");if(0>c||c>this.length)throw new RangeError("end out of bounds");var d;if("number"==typeof a)for(d=b;c>d;d++)this[d]=a;else{var e=R(a.toString()),f=e.length;for(d=b;c>d;d++)this[d]=e[d%f]}return this}},f.prototype.toArrayBuffer=function(){if("undefined"!=typeof Uint8Array){if(f.TYPED_ARRAY_SUPPORT)return new f(this).buffer;for(var a=new Uint8Array(this.length),b=0,c=a.length;c>b;b+=1)a[b]=this[b];return a.buffer}throw new TypeError("Buffer.toArrayBuffer not supported in this browser")};var _=f.prototype;f._augment=function(a){return a.constructor=f,a._isBuffer=!0,a._set=a.set,a.get=_.get,a.set=_.set,a.write=_.write,a.toString=_.toString,a.toLocaleString=_.toString,a.toJSON=_.toJSON,a.equals=_.equals,a.compare=_.compare,a.indexOf=_.indexOf,a.copy=_.copy,a.slice=_.slice,a.readUIntLE=_.readUIntLE,a.readUIntBE=_.readUIntBE,a.readUInt8=_.readUInt8,a.readUInt16LE=_.readUInt16LE,a.readUInt16BE=_.readUInt16BE,a.readUInt32LE=_.readUInt32LE,a.readUInt32BE=_.readUInt32BE,a.readIntLE=_.readIntLE,a.readIntBE=_.readIntBE,a.readInt8=_.readInt8,a.readInt16LE=_.readInt16LE,a.readInt16BE=_.readInt16BE,a.readInt32LE=_.readInt32LE,a.readInt32BE=_.readInt32BE,a.readFloatLE=_.readFloatLE,a.readFloatBE=_.readFloatBE,a.readDoubleLE=_.readDoubleLE,a.readDoubleBE=_.readDoubleBE,a.writeUInt8=_.writeUInt8,a.writeUIntLE=_.writeUIntLE,a.writeUIntBE=_.writeUIntBE,a.writeUInt16LE=_.writeUInt16LE,a.writeUInt16BE=_.writeUInt16BE,a.writeUInt32LE=_.writeUInt32LE,a.writeUInt32BE=_.writeUInt32BE,a.writeIntLE=_.writeIntLE,a.writeIntBE=_.writeIntBE,a.writeInt8=_.writeInt8,a.writeInt16LE=_.writeInt16LE,a.writeInt16BE=_.writeInt16BE,a.writeInt32LE=_.writeInt32LE,a.writeInt32BE=_.writeInt32BE,a.writeFloatLE=_.writeFloatLE,a.writeFloatBE=_.writeFloatBE,a.writeDoubleLE=_.writeDoubleLE,a.writeDoubleBE=_.writeDoubleBE,a.fill=_.fill,a.inspect=_.inspect,a.toArrayBuffer=_.toArrayBuffer,a};var aa=/[^+\/0-9A-Za-z-_]/g}).call(this,"undefined"!=typeof global?global:"undefined"!=typeof self?self:"undefined"!=typeof window?window:{})},{"base64-js":2,ieee754:3,isarray:4}],2:[function(a,b,c){var d="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/";!function(a){"use strict";function b(a){var b=a.charCodeAt(0);return b===g||b===l?62:b===h||b===m?63:i>b?-1:i+10>b?b-i+26+26:k+26>b?b-k:j+26>b?b-j+26:void 0}function c(a){function c(a){j[l++]=a}var d,e,g,h,i,j;if(a.length%4>0)throw new Error("Invalid string. Length must be a multiple of 4");var k=a.length;i="="===a.charAt(k-2)?2:"="===a.charAt(k-1)?1:0,j=new f(3*a.length/4-i),g=i>0?a.length-4:a.length;var l=0;for(d=0,e=0;g>d;d+=4,e+=3)h=b(a.charAt(d))<<18|b(a.charAt(d+1))<<12|b(a.charAt(d+2))<<6|b(a.charAt(d+3)),c((16711680&h)>>16),c((65280&h)>>8),c(255&h);return 2===i?(h=b(a.charAt(d))<<2|b(a.charAt(d+1))>>4,c(255&h)):1===i&&(h=b(a.charAt(d))<<10|b(a.charAt(d+1))<<4|b(a.charAt(d+2))>>2,c(h>>8&255),c(255&h)),j}function e(a){function b(a){return d.charAt(a)}function c(a){return b(a>>18&63)+b(a>>12&63)+b(a>>6&63)+b(63&a)}var e,f,g,h=a.length%3,i="";for(e=0,g=a.length-h;g>e;e+=3)f=(a[e]<<16)+(a[e+1]<<8)+a[e+2],i+=c(f);switch(h){case 1:f=a[a.length-1],i+=b(f>>2),i+=b(f<<4&63),i+="==";break;case 2:f=(a[a.length-2]<<8)+a[a.length-1],i+=b(f>>10),i+=b(f>>4&63),i+=b(f<<2&63),i+="="}return i}var f="undefined"!=typeof Uint8Array?Uint8Array:Array,g="+".charCodeAt(0),h="/".charCodeAt(0),i="0".charCodeAt(0),j="a".charCodeAt(0),k="A".charCodeAt(0),l="-".charCodeAt(0),m="_".charCodeAt(0);a.toByteArray=c,a.fromByteArray=e}("undefined"==typeof c?this.base64js={}:c)},{}],3:[function(a,b,c){c.read=function(a,b,c,d,e){var f,g,h=8*e-d-1,i=(1<<h)-1,j=i>>1,k=-7,l=c?e-1:0,m=c?-1:1,n=a[b+l];for(l+=m,f=n&(1<<-k)-1,n>>=-k,k+=h;k>0;f=256*f+a[b+l],l+=m,k-=8);for(g=f&(1<<-k)-1,f>>=-k,k+=d;k>0;g=256*g+a[b+l],l+=m,k-=8);if(0===f)f=1-j;else{if(f===i)return g?NaN:(n?-1:1)*(1/0);g+=Math.pow(2,d),f-=j}return(n?-1:1)*g*Math.pow(2,f-d)},c.write=function(a,b,c,d,e,f){var g,h,i,j=8*f-e-1,k=(1<<j)-1,l=k>>1,m=23===e?Math.pow(2,-24)-Math.pow(2,-77):0,n=d?0:f-1,o=d?1:-1,p=0>b||0===b&&0>1/b?1:0;for(b=Math.abs(b),isNaN(b)||b===1/0?(h=isNaN(b)?1:0,g=k):(g=Math.floor(Math.log(b)/Math.LN2),b*(i=Math.pow(2,-g))<1&&(g--,i*=2),b+=g+l>=1?m/i:m*Math.pow(2,1-l),b*i>=2&&(g++,i/=2),g+l>=k?(h=0,g=k):g+l>=1?(h=(b*i-1)*Math.pow(2,e),g+=l):(h=b*Math.pow(2,l-1)*Math.pow(2,e),g=0));e>=8;a[c+n]=255&h,n+=o,h/=256,e-=8);for(g=g<<e|h,j+=e;j>0;a[c+n]=255&g,n+=o,g/=256,j-=8);a[c+n-o]|=128*p}},{}],4:[function(a,b,c){var d={}.toString;b.exports=Array.isArray||function(a){return"[object Array]"==d.call(a)}},{}],5:[function(a,b,c){function d(){k=!1,h.length?j=h.concat(j):l=-1,j.length&&e()}function e(){if(!k){var a=setTimeout(d);k=!0;for(var b=j.length;b;){for(h=j,j=[];++l<b;)h&&h[l].run();l=-1,b=j.length}h=null,k=!1,clearTimeout(a)}}function f(a,b){this.fun=a,this.array=b}function g(){}var h,i=b.exports={},j=[],k=!1,l=-1;i.nextTick=function(a){var b=new Array(arguments.length-1);if(arguments.length>1)for(var c=1;c<arguments.length;c++)b[c-1]=arguments[c];j.push(new f(a,b)),1!==j.length||k||setTimeout(e,0)},f.prototype.run=function(){this.fun.apply(null,this.array)},i.title="browser",i.browser=!0,i.env={},i.argv=[],i.version="",i.versions={},i.on=g,i.addListener=g,i.once=g,i.off=g,i.removeListener=g,i.removeAllListeners=g,i.emit=g,i.binding=function(a){throw new Error("process.binding is not supported")},i.cwd=function(){return"/"},i.chdir=function(a){throw new Error("process.chdir is not supported")},i.umask=function(){return 0}},{}],6:[function(a,b,c){!function(){var c="forge";if("function"!=typeof define){if("object"!=typeof b||!b.exports)return void("undefined"==typeof forge&&(forge={disableNativeCode:!1}));var d=!0;define=function(c,d){d(a,b)}}var e,f=function(a,b){b.exports=function(b){var d=e.map(function(b){return a(b)});if(b=b||{},b.defined=b.defined||{},b.defined[c])return b[c];b.defined[c]=!0;for(var f=0;f<d.length;++f)d[f](b);return b},b.exports.disableNativeCode=!1,b.exports(b.exports)},g=define;define=function(a,b){return e="string"==typeof a?b.slice(2):a.slice(2),d?(delete define,g.apply(null,Array.prototype.slice.call(arguments,0))):(define=g,define.apply(null,Array.prototype.slice.call(arguments,0)))},define(["require","module","./aes","./aesCipherSuites","./asn1","./cipher","./cipherModes","./debug","./des","./hmac","./kem","./log","./md","./mgf1","./pbkdf2","./pem","./pkcs7","./pkcs1","./pkcs12","./pki","./prime","./prng","./pss","./random","./rc2","./ssh","./task","./tls","./util"],function(){f.apply(null,Array.prototype.slice.call(arguments,0))})}()},{}],7:[function(a,b,c){(function(c){"use strict";var d="undefined"!=typeof window?window._:"undefined"!=typeof c?c._:null,e=a("../util"),f=function(a){this.x=null,this.y=null,this.width=null,this.height=null,a&&(this.setPos(a.x,a.y),this.setDimensions(a.width,a.height))};d.extend(f.prototype,{setPos:function(a,b){this.x=a,this.y=b},setDimensions:function(a,b){this.width=a,this.height=b},toXML:function(a,b){var c=e.createElement(a,"xdr:absoluteAnchor"),d=e.createElement(a,"xdr:pos");d.setAttribute("x",this.x),d.setAttribute("y",this.y),c.appendChild(d);var f=e.createElement(a,"xdr:ext");return f.setAttribute("cx",this.width),f.setAttribute("cy",this.height),c.appendChild(f),c.appendChild(b),c.appendChild(e.createElement(a,"xdr:clientData")),c}}),b.exports=f}).call(this,"undefined"!=typeof global?global:"undefined"!=typeof self?self:"undefined"!=typeof window?window:{})},{"../util":28}],8:[function(a,b,c){(function(a){"use strict";var c="undefined"!=typeof window?window._:"undefined"!=typeof a?a._:null,d=function(){};c.extend(d.prototype,{}),b.exports=d}).call(this,"undefined"!=typeof global?global:"undefined"!=typeof self?self:"undefined"!=typeof window?window:{})},{}],9:[function(a,b,c){(function(c){"use strict";var d="undefined"!=typeof window?window._:"undefined"!=typeof c?c._:null,e=a("../util"),f=function(a){this.x=null,this.y=null,this.xOff=null,this.yOff=null,this.width=null,this.height=null,a&&(this.setPos(a.x,a.y,a.xOff,a.yOff),this.setDimensions(a.width,a.height))};d.extend(f.prototype,{setPos:function(a,b,c,d){this.x=a,this.y=b,void 0!==c&&(this.xOff=c),void 0!==d&&(this.yOff=d)},setDimensions:function(a,b){this.width=a,this.height=b},toXML:function(a,b){var c=e.createElement(a,"xdr:oneCellAnchor"),d=e.createElement(a,"xdr:from"),f=e.createElement(a,"xdr:col");f.appendChild(a.createTextNode(this.x));var g=e.createElement(a,"xdr:colOff");g.appendChild(a.createTextNode(this.xOff||0));var h=e.createElement(a,"xdr:row");h.appendChild(a.createTextNode(this.y));var i=e.createElement(a,"xdr:rowOff");i.appendChild(a.createTextNode(this.yOff||0)),d.appendChild(f),d.appendChild(g),d.appendChild(h),d.appendChild(i),c.appendChild(d);var j=e.createElement(a,"xdr:ext");return j.setAttribute("cx",this.width),j.setAttribute("cy",this.height),c.appendChild(j),c.appendChild(b),c.appendChild(e.createElement(a,"xdr:clientData")),c}}),b.exports=f}).call(this,"undefined"!=typeof global?global:"undefined"!=typeof self?self:"undefined"!=typeof window?window:{})},{"../util":28}],10:[function(a,b,c){(function(c){"use strict";var d="undefined"!=typeof window?window._:"undefined"!=typeof c?c._:null,e=a("../util"),f=a("./index"),g=function(){this.media=null,this.id=d.uniqueId("Picture"),this.pictureId=e.uniqueId("Picture"),this.fill={},this.mediaData=null};g.prototype=new f,d.extend(g.prototype,{setMedia:function(a){this.mediaData=a},setDescription:function(a){this.description=a},setFillType:function(a){this.fill.type=a},setFillConfig:function(a){d.extend(this.fill,a)},getMediaType:function(){return"image"},getMediaData:function(){return this.mediaData},setRelationshipId:function(a){this.mediaData.rId=a},toXML:function(a){var b=e.createElement(a,"xdr:pic"),c=e.createElement(a,"xdr:nvPicPr"),d=e.createElement(a,"xdr:cNvPr",[["id",this.pictureId],["name",this.mediaData.fileName],["descr",this.description||""]]);c.appendChild(d);var f=e.createElement(a,"xdr:cNvPicPr");f.appendChild(e.createElement(a,"a:picLocks",[["noChangeAspect","1"],["noChangeArrowheads","1"]])),c.appendChild(f),b.appendChild(c);var g=e.createElement(a,"xdr:blipFill");g.appendChild(e.createElement(a,"a:blip",[["xmlns:r",e.schemas.relationships],["r:embed",this.mediaData.rId]])),g.appendChild(e.createElement(a,"a:srcRect"));var h=e.createElement(a,"a:stretch");h.appendChild(e.createElement(a,"a:fillRect")),g.appendChild(h),b.appendChild(g);var i=e.createElement(a,"xdr:spPr",[["bwMode","auto"]]),j=e.createElement(a,"a:xfrm");i.appendChild(j);var k=e.createElement(a,"a:prstGeom",[["prst","rect"]]);return i.appendChild(k),b.appendChild(i),this.anchor.toXML(a,b)}}),b.exports=g}).call(this,"undefined"!=typeof global?global:"undefined"!=typeof self?self:"undefined"!=typeof window?window:{})},{"../util":28,"./index":12}],11:[function(a,b,c){(function(c){"use strict";var d="undefined"!=typeof window?window._:"undefined"!=typeof c?c._:null,e=a("../util"),f=function(a){this.from={xOff:0,yOff:0},this.to={xOff:0,yOff:0},a&&(this.setFrom(a.from.x,a.from.y,a.to.xOff,a.to.yOff),this.setTo(a.to.x,a.to.y,a.to.xOff,a.to.yOff))};d.extend(f.prototype,{setFrom:function(a,b,c,d){this.from.x=a,this.from.y=b,void 0!==c&&(this.from.xOff=c),void 0!==d&&(this.from.yOff=c)},setTo:function(a,b,c,d){this.to.x=a,this.to.y=b,void 0!==c&&(this.to.xOff=c),void 0!==d&&(this.to.yOff=c)},toXML:function(a,b){var c=e.createElement(a,"xdr:twoCellAnchor"),d=e.createElement(a,"xdr:from"),f=e.createElement(a,"xdr:col");f.appendChild(a.createTextNode(this.from.x));var g=e.createElement(a,"xdr:colOff");g.appendChild(a.createTextNode(this.from.xOff));var h=e.createElement(a,"xdr:row");h.appendChild(a.createTextNode(this.from.y));var i=e.createElement(a,"xdr:rowOff");i.appendChild(a.createTextNode(this.from.yOff)),d.appendChild(f),d.appendChild(g),d.appendChild(h),d.appendChild(i);var j=e.createElement(a,"xdr:to"),k=e.createElement(a,"xdr:col");k.appendChild(a.createTextNode(this.to.x));var l=e.createElement(a,"xdr:colOff");l.appendChild(a.createTextNode(this.from.xOff));var m=e.createElement(a,"xdr:row");m.appendChild(a.createTextNode(this.to.y));var n=e.createElement(a,"xdr:rowOff");return n.appendChild(a.createTextNode(this.from.yOff)),j.appendChild(k),j.appendChild(l),j.appendChild(m),j.appendChild(n),c.appendChild(d),c.appendChild(j),c.appendChild(b),c.appendChild(e.createElement(a,"xdr:clientData")),c}}),b.exports=f}).call(this,"undefined"!=typeof global?global:"undefined"!=typeof self?self:"undefined"!=typeof window?window:{})},{"../util":28}],12:[function(a,b,c){(function(c){"use strict";var d="undefined"!=typeof window?window._:"undefined"!=typeof c?c._:null,e=a("./AbsoluteAnchor"),f=a("./OneCellAnchor"),g=a("./TwoCellAnchor"),h=function(){this.id=d.uniqueId("Drawing")};d.extend(h.prototype,{createAnchor:function(a,b){switch(b=b||{},b.drawing=this,a){case"absoluteAnchor":this.anchor=new e(b);break;case"oneCellAnchor":this.anchor=new f(b);break;case"twoCellAnchor":this.anchor=new g(b)}return this.anchor}}),Object.defineProperties(h,{AbsoluteAnchor:{get:function(){return a("./AbsoluteAnchor")}},Chart:{get:function(){return a("./Chart")}},OneCellAnchor:{get:function(){return a("./OneCellAnchor")}},Picture:{get:function(){return a("./Picture")}},TwoCellAnchor:{get:function(){return a("./TwoCellAnchor")}}}),b.exports=h}).call(this,"undefined"!=typeof global?global:"undefined"!=typeof self?self:"undefined"!=typeof window?window:{})},{"./AbsoluteAnchor":7,"./Chart":8,"./OneCellAnchor":9,"./Picture":10,"./TwoCellAnchor":11}],13:[function(a,b,c){(function(c){"use strict";var d="undefined"!=typeof window?window._:"undefined"!=typeof c?c._:null,e=a("./util"),f=a("./RelationshipManager"),g=function(){this.drawings=[],this.relations=new f,this.id=d.uniqueId("Drawings")};d.extend(g.prototype,{addDrawing:function(a){this.drawings.push(a)},getCount:function(){return this.drawings.length},toXML:function(){var a=e.createXmlDoc(e.schemas.spreadsheetDrawing,"xdr:wsDr"),b=a.documentElement;b.setAttribute("xmlns:a",e.schemas.drawing),b.setAttribute("xmlns:r",e.schemas.relationships),b.setAttribute("xmlns:xdr",e.schemas.spreadsheetDrawing);for(var c=0,d=this.drawings.length;d>c;c++){var f=this.relations.getRelationshipId(this.drawings[c].getMediaData());f||(f=this.relations.addRelation(this.drawings[c].getMediaData(),this.drawings[c].getMediaType())),this.drawings[c].setRelationshipId(f),b.appendChild(this.drawings[c].toXML(a))}return a}}),b.exports=g}).call(this,"undefined"!=typeof global?global:"undefined"!=typeof self?self:"undefined"!=typeof window?window:{})},{"./RelationshipManager":17,"./util":28}],14:[function(a,b,c){(function(a){"use strict";var c="undefined"!=typeof window?window._:"undefined"!=typeof a?a._:null,d=function(){this.state=null,this.xSplit=null,this.ySplit=null,this.activePane="bottomRight",this.topLeftCell=null};c.extend(d.prototype,{freezePane:function(a,b,c){this._freezePane={xSplit:a,ySplit:b,cell:c}},exportXML:function(a){var b=a.createElement("pane");return null!==this.state&&(b.setAttribute("xSplit",this._freezePane.xSplit),b.setAttribute("ySplit",this._freezePane.ySplit), b.setAttribute("topLeftCell",this._freezePane.cell),b.setAttribute("activePane","bottomRight"),b.setAttribute("state","frozen")),b}}),b.exports=d}).call(this,"undefined"!=typeof global?global:"undefined"!=typeof self?self:"undefined"!=typeof window?window:{})},{}],15:[function(a,b,c){b.exports={}},{}],16:[function(a,b,c){"use strict";b.exports={pixelsToEMUs:function(a){return Math.round(914400*a/96)}}},{}],17:[function(a,b,c){(function(c){"use strict";var d="undefined"!=typeof window?window._:"undefined"!=typeof c?c._:null,e=a("./util"),f=a("./Paths"),g=function(){this.relations={},this.lastId=1};d.uniqueId("rId"),d.extend(g.prototype,{importData:function(a){this.relations=a.relations,this.lastId=a.lastId},exportData:function(){return{relations:this.relations,lastId:this.lastId}},addRelation:function(a,b){return this.relations[a.id]={id:d.uniqueId("rId"),schema:e.schemas[b],object:a},this.relations[a.id].id},getRelationshipId:function(a){return this.relations[a.id]?this.relations[a.id].id:null},toXML:function(){var a=e.createXmlDoc(e.schemas.relationshipPackage,"Relationships"),b=a.documentElement;return d.each(this.relations,function(c,d){var g=e.createElement(a,"Relationship",[["Id",c.id],["Type",c.schema],["Target",c.object.target||f[d]]]);c.object.targetMode&&g.setAttribute("TargetMode",c.object.targetMode),b.appendChild(g)}),a}}),b.exports=g}).call(this,"undefined"!=typeof global?global:"undefined"!=typeof self?self:"undefined"!=typeof window?window:{})},{"./Paths":15,"./util":28}],18:[function(a,b,c){(function(c){"use strict";var d="undefined"!=typeof window?window._:"undefined"!=typeof c?c._:null,e=a("./util"),f=function(){this.strings={},this.stringArray=[],this.id=d.uniqueId("SharedStrings")};d.extend(f.prototype,{addString:function(a){return this.strings[a]=this.stringArray.length,this.stringArray[this.stringArray.length]=a,this.strings[a]},exportData:function(){return this.strings},toXML:function(){var a=e.createXmlDoc(e.schemas.spreadsheetml,"sst"),b=a.documentElement;this.stringArray.reverse();var c=this.stringArray.length;b.setAttribute("count",c),b.setAttribute("uniqueCount",c);var d=a.createElement("si"),f=a.createElement("t");f.appendChild(a.createTextNode("--placeholder--")),d.appendChild(f);for(var g=this.stringArray;c--;){var h=d.cloneNode(!0);h.firstChild.firstChild.nodeValue=g[c],b.appendChild(h)}return a}}),b.exports=f}).call(this,"undefined"!=typeof global?global:"undefined"!=typeof self?self:"undefined"!=typeof window?window:{})},{"./util":28}],19:[function(a,b,c){(function(c,d){"use strict";var e="undefined"!=typeof window?window._:"undefined"!=typeof c?c._:null,f=a("./util"),g=function(){this.algorithmName=null,this.autoFilter=null,this.deleteColumns=null,this.deleteRows=null,this.formatCells=null,this.formatColumns=null,this.formatRows=null,this.unhashedValue=null,this.hashValue=null,this.insertColumns=null,this.insertHyperlinks=null,this.insertRows=null,this.objects=null,this.pivotTables=null,this.saltValue=null,this.scenarios=null,this.selectLockedCells=null,this.selectUnlockedCells=null,this.sheet=!0,this.sort=null,this.spinCount=null};e.extend(g.prototype,{exportXML:function(b){var c={},e=b.createElement("sheetProtection",c);if(this.sheet===!0){if(this.unhashedValue){var g=a("node-forge"),h=g.md[this.algorithmName].create();this.saltValue||(this.saltValue=Math.random().toString(36).substr(2,5));var i=this.spinCount=this.spinCount||1e3,j=this.saltValue+""+this.unhashedValue;for(this.saltValue=new d(this.saltValue).toString("base64");i--;)h.update(j),j=h.digest().toHex();this.hashValue=new d(j).toString("base64")}f.setAttributesOnDoc(e,{algorithmName:this.algorithmName,autoFilter:{v:this.autoFilter,type:Boolean},deleteColumns:{v:this.deleteColumns,type:Boolean},deleteRows:{v:this.deleteRows,type:Boolean},formatCells:{v:this.formatCells,type:Boolean},formatColumns:{v:this.formatColumns,type:Boolean},formatRows:{v:this.formatRows,type:Boolean},hashValue:this.hashValue,insertColumns:{v:this.insertColumns,type:Boolean},insertHyperlinks:{v:this.insertHyperlinks,type:Boolean},insertRows:{v:this.insertRows,type:Boolean},objects:{v:this.objects,type:Boolean},pivotTables:{v:this.pivotTables,type:Boolean},saltValue:this.saltValue,scenarios:{v:this.scenarios,type:Boolean},selectLockedCells:{v:this.selectLockedCells,type:Boolean},selectUnlockedCells:{v:this.selectUnlockedCells,type:Boolean},sheet:{v:this.sheet,type:Boolean},spinCount:this.spinCount})}return e}}),g.algorithms={MD5:"md5",SHA1:"sha1",SHA256:"sha256",SHA384:"sha384",SHA512:"sha512"},b.exports=g}).call(this,"undefined"!=typeof global?global:"undefined"!=typeof self?self:"undefined"!=typeof window?window:{},a("buffer").Buffer)},{"./util":28,buffer:1,"node-forge":6}],20:[function(a,b,c){(function(c){"use strict";var d="undefined"!=typeof window?window._:"undefined"!=typeof c?c._:null,e=a("./Pane"),f=a("./util"),g=function(a){a=a||{},this.pane=a.pane||new e,this.showZeros=null,this.defaultGridColor=null,this.colorId=null,this.rightToLeft=null,this.showFormulas=null,this.showGridLines=null,this.showOutlineSymbols=null,this.showRowColHeaders=null,this.showRuler=null,this.showWhiteSpace=null,this.tabSelected=null,this.topLeftCell=null,this.viewType=null,this.windowProtection=null,this.zoomScale=null,this.zoomScaleNormal=null,this.zoomScalePageLayoutView=null,this.zoomScaleSheetLayoutView=null};d.extend(g.prototype,{freezePane:function(a,b,c){this.pane.state="frozen",this.pane.xSplit=a,this.pane.ySplit=b,this.pane.topLeftCell=c},exportXML:function(a){var b=a.createElement("sheetViews"),c=a.createElement("sheetView");return f.setAttributesOnDoc(c,{workbookViewId:0,showZeros:{v:this.showZeros,type:Boolean},defaultGridColor:{v:this.defaultGridColor,type:Boolean},colorId:this.colorId,rightToLeft:{v:this.rightToLeft,type:Boolean},showFormulas:{v:this.showFormulas,type:Boolean},showGridLines:{v:this.showGridLines,type:Boolean},showOutlineSymbols:{v:this.showOutlineSymbols,type:Boolean},showRowColHeaders:{v:this.showRowColHeaders,type:Boolean},showRuler:{v:this.showRuler,type:Boolean},showWhiteSpace:{v:this.showWhiteSpace,type:Boolean},tabSelected:{v:this.tabSelected,type:Boolean},viewType:this.viewType,windowProtection:{v:this.windowProtection,type:Boolean},zoomScale:{v:this.zoomScale,type:Boolean},zoomScaleNormal:this.zoomScaleNormal,zoomScalePageLayoutView:this.zoomScalePageLayoutView,zoomScaleSheetLayoutView:this.zoomScaleSheetLayoutView}),c.appendChild(this.pane.exportXML(a)),b.appendChild(c),b}}),b.exports=g}).call(this,"undefined"!=typeof global?global:"undefined"!=typeof self?self:"undefined"!=typeof window?window:{})},{"./Pane":14,"./util":28}],21:[function(a,b,c){(function(c){"use strict";var d="undefined"!=typeof window?window._:"undefined"!=typeof c?c._:null,e=a("./util"),f=function(){this.id=d.uniqueId("StyleSheet"),this.cellStyles=[{name:"Normal",xfId:"0",builtinId:"0"}],this.defaultTableStyle=!1,this.differentialStyles=[{}],this.masterCellFormats=[{numFmtId:0,fontId:0,fillId:0,borderId:0,xfid:0}],this.masterCellStyles=[{numFmtId:0,fontId:0,fillId:0,borderId:0}],this.fonts=[{}],this.numberFormatters=[],this.fills=[{},{type:"pattern",patternType:"gray125",fgColor:"FF333333",bgColor:"FF333333"}],this.borders=[{top:{},left:{},right:{},bottom:{},diagonal:{}}],this.tableStyles=[]};d.extend(f.prototype,{createSimpleFormatter:function(a){var b=this.masterCellFormats.length,c={id:b};switch(a){case"date":c.numFmtId=14}return this.masterCellFormats.push(c),c},createFill:function(a){var b=this.fills.length,c=a;return c.id=b,this.fills.push(c),c},createNumberFormatter:function(a){var b=this.numberFormatters.length+100,c={id:b,formatCode:a};return this.numberFormatters.push(c),c},createFormat:function(a){var b=this.masterCellFormats.length,c={id:b};if(a.protection&&(c.protection=a.protection),a.font&&d.isObject(a.font))c.fontId=this.createFontStyle(a.font).id;else if(a.font){if(d.isNaN(parseInt(a.font,10)))throw"Passing a non-numeric font id is not supported";c.fontId=a.font}if(a.format&&d.isString(a.format))c.numFmtId=this.createNumberFormatter(a.format).id;else if(a.format){if(d.isNaN(parseInt(a.format,10)))throw"Invalid number formatter id";c.numFmtId=a.format}if(a.border&&d.isObject(a.border))c.borderId=this.createBorderFormatter(a.border).id;else if(a.border){if(d.isNaN(parseInt(a.border,10)))throw"Passing a non-numeric border id is not supported";c.borderId=a.border}if(a.fill&&d.isObject(a.fill))c.fillId=this.createFill(a.fill).id;else if(a.fill){if(d.isNaN(parseInt(a.fill,10)))throw"Passing a non-numeric fill id is not supported";c.fillId=a.fill}return a.alignment&&d.isObject(a.alignment)&&(c.alignment=d.pick(a.alignment,"horizontal","justifyLastLine","readingOrder","relativeIndent","shrinkToFit","textRotation","vertical","wrapText")),this.masterCellFormats.push(c),c},createDifferentialStyle:function(a){var b=this.differentialStyles.length,c={id:b};return a.font&&d.isObject(a.font)&&(c.font=a.font),a.border&&d.isObject(a.border)&&(c.border=d.defaults(a.border,{top:{},left:{},right:{},bottom:{},diagonal:{}})),a.fill&&d.isObject(a.fill)&&(c.fill=a.fill),a.alignment&&d.isObject(a.alignment)&&(c.alignment=a.alignment),a.format&&d.isString(a.format)&&(c.numFmt=a.format),this.differentialStyles[b]=c,c},createTableStyle:function(a){this.tableStyles.push(a)},createBorderFormatter:function(a){return d.defaults(a,{top:{},left:{},right:{},bottom:{},diagonal:{},id:this.borders.length}),this.borders.push(a),a},createFontStyle:function(a){var b=this.fonts.length,c={id:b};return a.bold&&(c.bold=!0),a.italic&&(c.italic=!0),a.superscript&&(c.vertAlign="superscript"),a.subscript&&(c.vertAlign="subscript"),a.underline&&(-1!==d.indexOf(["double","singleAccounting","doubleAccounting"],a.underline)?c.underline=a.underline:c.underline=!0),a.strike&&(c.strike=!0),a.outline&&(c.outline=!0),a.shadow&&(c.shadow=!0),a.size&&(c.size=a.size),a.color&&(c.color=a.color),a.fontName&&(c.fontName=a.fontName),this.fonts.push(c),c},exportBorders:function(a){var b=a.createElement("borders");b.setAttribute("count",this.borders.length);for(var c=0,d=this.borders.length;d>c;c++)b.appendChild(this.exportBorder(a,this.borders[c]));return b},exportBorder:function(a,b){var c=a.createElement("border"),d=this,e=function(c){var e=a.createElement(c);return b[c].style&&e.setAttribute("style",b[c].style),b[c].color&&e.appendChild(d.exportColor(a,b[c].color)),e};return c.appendChild(e("left")),c.appendChild(e("right")),c.appendChild(e("top")),c.appendChild(e("bottom")),c.appendChild(e("diagonal")),c},exportColor:function(a,b){var c=a.createElement("color");return d.isString(b)?(c.setAttribute("rgb",b),c):(d.isUndefined(b.tint)||c.setAttribute("tint",b.tint),d.isUndefined(b.auto)||c.setAttribute("auto",!!b.auto),d.isUndefined(b.theme)||c.setAttribute("theme",b.theme),c)},exportMasterCellFormats:function(a){for(var b=e.createElement(a,"cellXfs",[["count",this.masterCellFormats.length]]),c=0,d=this.masterCellFormats.length;d>c;c++){var f=this.masterCellFormats[c];b.appendChild(this.exportCellFormatElement(a,f))}return b},exportMasterCellStyles:function(a){for(var b=e.createElement(a,"cellStyleXfs",[["count",this.masterCellStyles.length]]),c=0,d=this.masterCellStyles.length;d>c;c++){var f=this.masterCellStyles[c];b.appendChild(this.exportCellFormatElement(a,f))}return b},exportCellFormatElement:function(a,b){var c=a.createElement("xf"),e=["applyAlignment","applyBorder","applyFill","applyFont","applyNumberFormat","applyProtection","borderId","fillId","fontId","numFmtId","pivotButton","quotePrefix","xfId"],f=d.filter(d.keys(b),function(a){return-1!==d.indexOf(e,a)?!0:void 0});if(b.alignment){var g=b.alignment;c.appendChild(this.exportAlignment(a,g))}b.protection&&(c.appendChild(this.exportProtection(a,b.protection)),c.setAttribute("applyProtection","1"));for(var h=f.length;h--;)c.setAttribute(f[h],b[f[h]]);return b.fillId&&c.setAttribute("applyFill","1"),b.fontId&&c.setAttribute("applyFont","1"),b.borderId&&c.setAttribute("applyBorder","1"),b.alignment&&c.setAttribute("applyAlignment","1"),b.numFmtId&&c.setAttribute("applyNumberFormat","1"),void 0!==b.numFmtId&&void 0===b.xfId&&c.setAttribute("xfId","0"),c},exportAlignment:function(a,b){for(var c=a.createElement("alignment"),e=d.keys(b),f=0,g=e.length;g>f;f++)c.setAttribute(e[f],b[e[f]]);return c},exportFonts:function(a){var b=a.createElement("fonts");b.setAttribute("count",this.fonts.length);for(var c=0,d=this.fonts.length;d>c;c++){var e=this.fonts[c];b.appendChild(this.exportFont(a,e))}return b},exportFont:function(a,b){var c=a.createElement("font");if(b.size){var d=a.createElement("sz");d.setAttribute("val",b.size),c.appendChild(d)}if(b.fontName){var e=a.createElement("name");e.setAttribute("val",b.fontName),c.appendChild(e)}if(b.bold&&c.appendChild(a.createElement("b")),b.italic&&c.appendChild(a.createElement("i")),b.vertAlign){var f=a.createElement("vertAlign");f.setAttribute("val",b.vertAlign),c.appendChild(f)}if(b.underline){var g=a.createElement("u");b.underline!==!0&&g.setAttribute("val",b.underline),c.appendChild(g)}return b.strike&&c.appendChild(a.createElement("strike")),b.shadow&&c.appendChild(a.createElement("shadow")),b.outline&&c.appendChild(a.createElement("outline")),b.color&&c.appendChild(this.exportColor(a,b.color)),c},exportFills:function(a){var b=a.createElement("fills");b.setAttribute("count",this.fills.length);for(var c=0,d=this.fills.length;d>c;c++){var e=this.fills[c];b.appendChild(this.exportFill(a,e))}return b},exportFill:function(a,b){var c,d=a.createElement("fill");return"pattern"===b.type?(c=this.exportPatternFill(a,b),d.appendChild(c)):"gradient"===b.type&&(c=this.exportGradientFill(a,b),d.appendChild(c)),d},exportGradientFill:function(a,b){var c=a.createElement("gradientFill");b.degree?c.setAttribute("degree",b.degree):b.left&&(c.setAttribute("left",b.left),c.setAttribute("right",b.right),c.setAttribute("top",b.top),c.setAttribute("bottom",b.bottom));var d=a.createElement("stop");d.setAttribute("position",b.start.pureAt||0);var e=a.createElement("color");"string"==typeof b.start||b.start.color?e.setAttribute("rgb",b.start.color||b.start):e.setAttribute("theme",b.start.theme);var f=a.createElement("stop"),g=a.createElement("color");return f.setAttribute("position",b.end.pureAt||1),"string"==typeof b.start||b.end.color?g.setAttribute("rgb",b.end.color||b.end):g.setAttribute("theme",b.end.theme),d.appendChild(e),f.appendChild(g),c.appendChild(d),c.appendChild(f),c},exportPatternFill:function(a,b){var c=e.createElement(a,"patternFill",[["patternType",b.patternType]]);b.bgColor||(b.bgColor="FFFFFFFF"),b.fgColor||(b.fgColor="FFFFFFFF");var f=a.createElement("bgColor");d.isString(b.bgColor)?f.setAttribute("rgb",b.bgColor):b.bgColor.theme?f.setAttribute("theme",b.bgColor.theme):f.setAttribute("rgb",b.bgColor.rbg);var g=a.createElement("fgColor");return d.isString(b.fgColor)?g.setAttribute("rgb",b.fgColor):b.fgColor.theme?g.setAttribute("theme",b.fgColor.theme):g.setAttribute("rgb",b.fgColor.rbg),c.appendChild(g),c.appendChild(f),c},exportNumberFormatters:function(a){var b=a.createElement("numFmts");b.setAttribute("count",this.numberFormatters.length);for(var c=0,d=this.numberFormatters.length;d>c;c++){var e=this.numberFormatters[c];b.appendChild(this.exportNumberFormatter(a,e))}return b},exportNumberFormatter:function(a,b){var c=a.createElement("numFmt");return c.setAttribute("numFmtId",b.id),c.setAttribute("formatCode",b.formatCode),c},exportCellStyles:function(a){var b=a.createElement("cellStyles");b.setAttribute("count",this.cellStyles.length);for(var c=0,f=this.cellStyles.length;f>c;c++){var g=this.cellStyles[c];delete g.id;var h=e.createElement(a,"cellStyle");b.appendChild(h);for(var i=d.keys(g),j=i.length;j--;)h.setAttribute(i[j],g[i[j]])}return b},exportDifferentialStyles:function(a){var b=a.createElement("dxfs");b.setAttribute("count",this.differentialStyles.length);for(var c=0,d=this.differentialStyles.length;d>c;c++){var e=this.differentialStyles[c];b.appendChild(this.exportDFX(a,e))}return b},exportDFX:function(a,b){var c=a.createElement("dxf");return b.font&&c.appendChild(this.exportFont(a,b.font)),b.fill&&c.appendChild(this.exportFill(a,b.fill)),b.border&&c.appendChild(this.exportBorder(a,b.border)),b.numFmt&&c.appendChild(this.exportNumberFormatter(a,b.numFmt)),b.alignment&&c.appendChild(this.exportAlignment(a,b.alignment)),c},exportTableStyles:function(a){var b=a.createElement("tableStyles");b.setAttribute("count",this.tableStyles.length),this.defaultTableStyle&&b.setAttribute("defaultTableStyle",this.defaultTableStyle);for(var c=0,d=this.tableStyles.length;d>c;c++)b.appendChild(this.exportTableStyle(a,this.tableStyles[c]));return b},exportTableStyle:function(a,b){var c=a.createElement("tableStyle");c.setAttribute("name",b.name),c.setAttribute("pivot",0);var e=0;return d.each(b,function(b,d){if("name"!==d){e++;var f=a.createElement("tableStyleElement");f.setAttribute("type",d),f.setAttribute("dxfId",b),c.appendChild(f)}}),c.setAttribute("count",e),c},exportProtection:function(a,b){var c=a.createElement("protection");for(var d in b)b.hasOwnProperty(d)&&c.setAttribute(d,b[d]);return c},toXML:function(){var a=e.createXmlDoc(e.schemas.spreadsheetml,"styleSheet"),b=a.documentElement;return b.appendChild(this.exportNumberFormatters(a)),b.appendChild(this.exportFonts(a)),b.appendChild(this.exportFills(a)),b.appendChild(this.exportBorders(a)),b.appendChild(this.exportMasterCellStyles(a)),b.appendChild(this.exportMasterCellFormats(a)),b.appendChild(this.exportCellStyles(a)),b.appendChild(this.exportDifferentialStyles(a)),this.tableStyles.length&&b.appendChild(this.exportTableStyles(a)),a}}),b.exports=f}).call(this,"undefined"!=typeof global?global:"undefined"!=typeof self?self:"undefined"!=typeof window?window:{})},{"./util":28}],22:[function(a,b,c){(function(c){"use strict";var d="undefined"!=typeof window?window._:"undefined"!=typeof c?c._:null,e=a("./util"),f=function(a){d.defaults(this,{name:"",displayName:"",