json-strict
Version:
Json Specification & Validation & Document Generation
2 lines • 270 kB
JavaScript
!function(e){if("object"==typeof exports&&"undefined"!=typeof module)module.exports=e();else if("function"==typeof define&&define.amd)define([],e);else{var t;t="undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:this,t.__lazy=e()}}(function(){var define,module,exports;return function e(t,n,r){function o(s,a){if(!n[s]){if(!t[s]){var c="function"==typeof require&&require;if(!a&&c)return c(s,!0);if(i)return i(s,!0);var u=new Error("Cannot find module '"+s+"'");throw u.code="MODULE_NOT_FOUND",u}var l=n[s]={exports:{}};t[s][0].call(l.exports,function(e){var n=t[s][1][e];return o(n?n:e)},l,l.exports,e,t,n,r)}return n[s].exports}for(var i="function"==typeof require&&require,s=0;s<r.length;s++)o(r[s]);return o}({1:[function(e,t,n){},{}],2:[function(e,t,n){function r(){return o.TYPED_ARRAY_SUPPORT?2147483647:1073741823}function o(e){return this instanceof o?(this.length=0,this.parent=void 0,"number"==typeof e?i(this,e):"string"==typeof e?s(this,e,arguments.length>1?arguments[1]:"utf8"):a(this,e)):arguments.length>1?new o(e,arguments[1]):new o(e)}function i(e,t){if(e=d(e,0>t?0:0|m(t)),!o.TYPED_ARRAY_SUPPORT)for(var n=0;t>n;n++)e[n]=0;return e}function s(e,t,n){("string"!=typeof n||""===n)&&(n="utf8");var r=0|v(t,n);return e=d(e,r),e.write(t,n),e}function a(e,t){if(o.isBuffer(t))return c(e,t);if(z(t))return u(e,t);if(null==t)throw new TypeError("must start with number, buffer, array or string");if("undefined"!=typeof ArrayBuffer){if(t.buffer instanceof ArrayBuffer)return l(e,t);if(t instanceof ArrayBuffer)return p(e,t)}return t.length?h(e,t):f(e,t)}function c(e,t){var n=0|m(t.length);return e=d(e,n),t.copy(e,0,0,n),e}function u(e,t){var n=0|m(t.length);e=d(e,n);for(var r=0;n>r;r+=1)e[r]=255&t[r];return e}function l(e,t){var n=0|m(t.length);e=d(e,n);for(var r=0;n>r;r+=1)e[r]=255&t[r];return e}function p(e,t){return o.TYPED_ARRAY_SUPPORT?(t.byteLength,e=o._augment(new Uint8Array(t))):e=l(e,new Uint8Array(t)),e}function h(e,t){var n=0|m(t.length);e=d(e,n);for(var r=0;n>r;r+=1)e[r]=255&t[r];return e}function f(e,t){var n,r=0;"Buffer"===t.type&&z(t.data)&&(n=t.data,r=0|m(n.length)),e=d(e,r);for(var o=0;r>o;o+=1)e[o]=255&n[o];return e}function d(e,t){o.TYPED_ARRAY_SUPPORT?e=o._augment(new Uint8Array(t)):(e.length=t,e._isBuffer=!0);var n=0!==t&&t<=o.poolSize>>>1;return n&&(e.parent=J),e}function m(e){if(e>=r())throw new RangeError("Attempt to allocate Buffer larger than maximum size: 0x"+r().toString(16)+" bytes");return 0|e}function y(e,t){if(!(this instanceof y))return new y(e,t);var n=new o(e,t);return delete n.parent,n}function v(e,t){"string"!=typeof e&&(e=""+e);var n=e.length;if(0===n)return 0;for(var r=!1;;)switch(t){case"ascii":case"binary":case"raw":case"raws":return n;case"utf8":case"utf-8":return G(e).length;case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return 2*n;case"hex":return n>>>1;case"base64":return H(e).length;default:if(r)return G(e).length;t=(""+t).toLowerCase(),r=!0}}function g(e,t,n){var r=!1;if(t=0|t,n=void 0===n||n===1/0?this.length:0|n,e||(e="utf8"),0>t&&(t=0),n>this.length&&(n=this.length),t>=n)return"";for(;;)switch(e){case"hex":return L(this,t,n);case"utf8":case"utf-8":return N(this,t,n);case"ascii":return I(this,t,n);case"binary":return F(this,t,n);case"base64":return x(this,t,n);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return D(this,t,n);default:if(r)throw new TypeError("Unknown encoding: "+e);e=(e+"").toLowerCase(),r=!0}}function b(e,t,n,r){n=Number(n)||0;var o=e.length-n;r?(r=Number(r),r>o&&(r=o)):r=o;var i=t.length;if(i%2!==0)throw new Error("Invalid hex string");r>i/2&&(r=i/2);for(var s=0;r>s;s++){var a=parseInt(t.substr(2*s,2),16);if(isNaN(a))throw new Error("Invalid hex string");e[n+s]=a}return s}function w(e,t,n,r){return W(G(t,e.length-n),e,n,r)}function k(e,t,n,r){return W(V(t),e,n,r)}function E(e,t,n,r){return k(e,t,n,r)}function S(e,t,n,r){return W(H(t),e,n,r)}function T(e,t,n,r){return W(Y(t,e.length-n),e,n,r)}function x(e,t,n){return 0===t&&n===e.length?X.fromByteArray(e):X.fromByteArray(e.slice(t,n))}function N(e,t,n){n=Math.min(e.length,n);for(var r=[],o=t;n>o;){var i=e[o],s=null,a=i>239?4:i>223?3:i>191?2:1;if(n>=o+a){var c,u,l,p;switch(a){case 1:128>i&&(s=i);break;case 2:c=e[o+1],128===(192&c)&&(p=(31&i)<<6|63&c,p>127&&(s=p));break;case 3:c=e[o+1],u=e[o+2],128===(192&c)&&128===(192&u)&&(p=(15&i)<<12|(63&c)<<6|63&u,p>2047&&(55296>p||p>57343)&&(s=p));break;case 4:c=e[o+1],u=e[o+2],l=e[o+3],128===(192&c)&&128===(192&u)&&128===(192&l)&&(p=(15&i)<<18|(63&c)<<12|(63&u)<<6|63&l,p>65535&&1114112>p&&(s=p))}}null===s?(s=65533,a=1):s>65535&&(s-=65536,r.push(s>>>10&1023|55296),s=56320|1023&s),r.push(s),o+=a}return C(r)}function C(e){var t=e.length;if(K>=t)return String.fromCharCode.apply(String,e);for(var n="",r=0;t>r;)n+=String.fromCharCode.apply(String,e.slice(r,r+=K));return n}function I(e,t,n){var r="";n=Math.min(e.length,n);for(var o=t;n>o;o++)r+=String.fromCharCode(127&e[o]);return r}function F(e,t,n){var r="";n=Math.min(e.length,n);for(var o=t;n>o;o++)r+=String.fromCharCode(e[o]);return r}function L(e,t,n){var r=e.length;(!t||0>t)&&(t=0),(!n||0>n||n>r)&&(n=r);for(var o="",i=t;n>i;i++)o+=$(e[i]);return o}function D(e,t,n){for(var r=e.slice(t,n),o="",i=0;i<r.length;i+=2)o+=String.fromCharCode(r[i]+256*r[i+1]);return o}function A(e,t,n){if(e%1!==0||0>e)throw new RangeError("offset is not uint");if(e+t>n)throw new RangeError("Trying to access beyond buffer length")}function R(e,t,n,r,i,s){if(!o.isBuffer(e))throw new TypeError("buffer must be a Buffer instance");if(t>i||s>t)throw new RangeError("value is out of bounds");if(n+r>e.length)throw new RangeError("index out of range")}function _(e,t,n,r){0>t&&(t=65535+t+1);for(var o=0,i=Math.min(e.length-n,2);i>o;o++)e[n+o]=(t&255<<8*(r?o:1-o))>>>8*(r?o:1-o)}function O(e,t,n,r){0>t&&(t=4294967295+t+1);for(var o=0,i=Math.min(e.length-n,4);i>o;o++)e[n+o]=t>>>8*(r?o:3-o)&255}function B(e,t,n,r,o,i){if(t>o||i>t)throw new RangeError("value is out of bounds");if(n+r>e.length)throw new RangeError("index out of range");if(0>n)throw new RangeError("index out of range")}function j(e,t,n,r,o){return o||B(e,t,n,4,3.4028234663852886e38,-3.4028234663852886e38),q.write(e,t,n,r,23,4),n+4}function P(e,t,n,r,o){return o||B(e,t,n,8,1.7976931348623157e308,-1.7976931348623157e308),q.write(e,t,n,r,52,8),n+8}function M(e){if(e=U(e).replace(Z,""),e.length<2)return"";for(;e.length%4!==0;)e+="=";return e}function U(e){return e.trim?e.trim():e.replace(/^\s+|\s+$/g,"")}function $(e){return 16>e?"0"+e.toString(16):e.toString(16)}function G(e,t){t=t||1/0;for(var n,r=e.length,o=null,i=[],s=0;r>s;s++){if(n=e.charCodeAt(s),n>55295&&57344>n){if(!o){if(n>56319){(t-=3)>-1&&i.push(239,191,189);continue}if(s+1===r){(t-=3)>-1&&i.push(239,191,189);continue}o=n;continue}if(56320>n){(t-=3)>-1&&i.push(239,191,189),o=n;continue}n=o-55296<<10|n-56320|65536}else o&&(t-=3)>-1&&i.push(239,191,189);if(o=null,128>n){if((t-=1)<0)break;i.push(n)}else if(2048>n){if((t-=2)<0)break;i.push(n>>6|192,63&n|128)}else if(65536>n){if((t-=3)<0)break;i.push(n>>12|224,n>>6&63|128,63&n|128)}else{if(!(1114112>n))throw new Error("Invalid code point");if((t-=4)<0)break;i.push(n>>18|240,n>>12&63|128,n>>6&63|128,63&n|128)}}return i}function V(e){for(var t=[],n=0;n<e.length;n++)t.push(255&e.charCodeAt(n));return t}function Y(e,t){for(var n,r,o,i=[],s=0;s<e.length&&!((t-=2)<0);s++)n=e.charCodeAt(s),r=n>>8,o=n%256,i.push(o),i.push(r);return i}function H(e){return X.toByteArray(M(e))}function W(e,t,n,r){for(var o=0;r>o&&!(o+n>=t.length||o>=e.length);o++)t[o+n]=e[o];return o}var X=e("base64-js"),q=e("ieee754"),z=e("is-array");n.Buffer=o,n.SlowBuffer=y,n.INSPECT_MAX_BYTES=50,o.poolSize=8192;var J={};o.TYPED_ARRAY_SUPPORT=function(){function e(){}try{var t=new Uint8Array(1);return t.foo=function(){return 42},t.constructor=e,42===t.foo()&&t.constructor===e&&"function"==typeof t.subarray&&0===t.subarray(1,1).byteLength}catch(n){return!1}}(),o.isBuffer=function(e){return!(null==e||!e._isBuffer)},o.compare=function(e,t){if(!o.isBuffer(e)||!o.isBuffer(t))throw new TypeError("Arguments must be Buffers");if(e===t)return 0;for(var n=e.length,r=t.length,i=0,s=Math.min(n,r);s>i&&e[i]===t[i];)++i;return i!==s&&(n=e[i],r=t[i]),r>n?-1:n>r?1:0},o.isEncoding=function(e){switch(String(e).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}},o.concat=function(e,t){if(!z(e))throw new TypeError("list argument must be an Array of Buffers.");if(0===e.length)return new o(0);var n;if(void 0===t)for(t=0,n=0;n<e.length;n++)t+=e[n].length;var r=new o(t),i=0;for(n=0;n<e.length;n++){var s=e[n];s.copy(r,i),i+=s.length}return r},o.byteLength=v,o.prototype.length=void 0,o.prototype.parent=void 0,o.prototype.toString=function(){var e=0|this.length;return 0===e?"":0===arguments.length?N(this,0,e):g.apply(this,arguments)},o.prototype.equals=function(e){if(!o.isBuffer(e))throw new TypeError("Argument must be a Buffer");return this===e?!0:0===o.compare(this,e)},o.prototype.inspect=function(){var e="",t=n.INSPECT_MAX_BYTES;return this.length>0&&(e=this.toString("hex",0,t).match(/.{2}/g).join(" "),this.length>t&&(e+=" ... ")),"<Buffer "+e+">"},o.prototype.compare=function(e){if(!o.isBuffer(e))throw new TypeError("Argument must be a Buffer");return this===e?0:o.compare(this,e)},o.prototype.indexOf=function(e,t){function n(e,t,n){for(var r=-1,o=0;n+o<e.length;o++)if(e[n+o]===t[-1===r?0:o-r]){if(-1===r&&(r=o),o-r+1===t.length)return n+r}else r=-1;return-1}if(t>2147483647?t=2147483647:-2147483648>t&&(t=-2147483648),t>>=0,0===this.length)return-1;if(t>=this.length)return-1;if(0>t&&(t=Math.max(this.length+t,0)),"string"==typeof e)return 0===e.length?-1:String.prototype.indexOf.call(this,e,t);if(o.isBuffer(e))return n(this,e,t);if("number"==typeof e)return o.TYPED_ARRAY_SUPPORT&&"function"===Uint8Array.prototype.indexOf?Uint8Array.prototype.indexOf.call(this,e,t):n(this,[e],t);throw new TypeError("val must be string, number or Buffer")},o.prototype.get=function(e){return console.log(".get() is deprecated. Access using array indexes instead."),this.readUInt8(e)},o.prototype.set=function(e,t){return console.log(".set() is deprecated. Access using array indexes instead."),this.writeUInt8(e,t)},o.prototype.write=function(e,t,n,r){if(void 0===t)r="utf8",n=this.length,t=0;else if(void 0===n&&"string"==typeof t)r=t,n=this.length,t=0;else if(isFinite(t))t=0|t,isFinite(n)?(n=0|n,void 0===r&&(r="utf8")):(r=n,n=void 0);else{var o=r;r=t,t=0|n,n=o}var i=this.length-t;if((void 0===n||n>i)&&(n=i),e.length>0&&(0>n||0>t)||t>this.length)throw new RangeError("attempt to write outside buffer bounds");r||(r="utf8");for(var s=!1;;)switch(r){case"hex":return b(this,e,t,n);case"utf8":case"utf-8":return w(this,e,t,n);case"ascii":return k(this,e,t,n);case"binary":return E(this,e,t,n);case"base64":return S(this,e,t,n);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return T(this,e,t,n);default:if(s)throw new TypeError("Unknown encoding: "+r);r=(""+r).toLowerCase(),s=!0}},o.prototype.toJSON=function(){return{type:"Buffer",data:Array.prototype.slice.call(this._arr||this,0)}};var K=4096;o.prototype.slice=function(e,t){var n=this.length;e=~~e,t=void 0===t?n:~~t,0>e?(e+=n,0>e&&(e=0)):e>n&&(e=n),0>t?(t+=n,0>t&&(t=0)):t>n&&(t=n),e>t&&(t=e);var r;if(o.TYPED_ARRAY_SUPPORT)r=o._augment(this.subarray(e,t));else{var i=t-e;r=new o(i,void 0);for(var s=0;i>s;s++)r[s]=this[s+e]}return r.length&&(r.parent=this.parent||this),r},o.prototype.readUIntLE=function(e,t,n){e=0|e,t=0|t,n||A(e,t,this.length);for(var r=this[e],o=1,i=0;++i<t&&(o*=256);)r+=this[e+i]*o;return r},o.prototype.readUIntBE=function(e,t,n){e=0|e,t=0|t,n||A(e,t,this.length);for(var r=this[e+--t],o=1;t>0&&(o*=256);)r+=this[e+--t]*o;return r},o.prototype.readUInt8=function(e,t){return t||A(e,1,this.length),this[e]},o.prototype.readUInt16LE=function(e,t){return t||A(e,2,this.length),this[e]|this[e+1]<<8},o.prototype.readUInt16BE=function(e,t){return t||A(e,2,this.length),this[e]<<8|this[e+1]},o.prototype.readUInt32LE=function(e,t){return t||A(e,4,this.length),(this[e]|this[e+1]<<8|this[e+2]<<16)+16777216*this[e+3]},o.prototype.readUInt32BE=function(e,t){return t||A(e,4,this.length),16777216*this[e]+(this[e+1]<<16|this[e+2]<<8|this[e+3])},o.prototype.readIntLE=function(e,t,n){e=0|e,t=0|t,n||A(e,t,this.length);for(var r=this[e],o=1,i=0;++i<t&&(o*=256);)r+=this[e+i]*o;return o*=128,r>=o&&(r-=Math.pow(2,8*t)),r},o.prototype.readIntBE=function(e,t,n){e=0|e,t=0|t,n||A(e,t,this.length);for(var r=t,o=1,i=this[e+--r];r>0&&(o*=256);)i+=this[e+--r]*o;return o*=128,i>=o&&(i-=Math.pow(2,8*t)),i},o.prototype.readInt8=function(e,t){return t||A(e,1,this.length),128&this[e]?-1*(255-this[e]+1):this[e]},o.prototype.readInt16LE=function(e,t){t||A(e,2,this.length);var n=this[e]|this[e+1]<<8;return 32768&n?4294901760|n:n},o.prototype.readInt16BE=function(e,t){t||A(e,2,this.length);var n=this[e+1]|this[e]<<8;return 32768&n?4294901760|n:n},o.prototype.readInt32LE=function(e,t){return t||A(e,4,this.length),this[e]|this[e+1]<<8|this[e+2]<<16|this[e+3]<<24},o.prototype.readInt32BE=function(e,t){return t||A(e,4,this.length),this[e]<<24|this[e+1]<<16|this[e+2]<<8|this[e+3]},o.prototype.readFloatLE=function(e,t){return t||A(e,4,this.length),q.read(this,e,!0,23,4)},o.prototype.readFloatBE=function(e,t){return t||A(e,4,this.length),q.read(this,e,!1,23,4)},o.prototype.readDoubleLE=function(e,t){return t||A(e,8,this.length),q.read(this,e,!0,52,8)},o.prototype.readDoubleBE=function(e,t){return t||A(e,8,this.length),q.read(this,e,!1,52,8)},o.prototype.writeUIntLE=function(e,t,n,r){e=+e,t=0|t,n=0|n,r||R(this,e,t,n,Math.pow(2,8*n),0);var o=1,i=0;for(this[t]=255&e;++i<n&&(o*=256);)this[t+i]=e/o&255;return t+n},o.prototype.writeUIntBE=function(e,t,n,r){e=+e,t=0|t,n=0|n,r||R(this,e,t,n,Math.pow(2,8*n),0);var o=n-1,i=1;for(this[t+o]=255&e;--o>=0&&(i*=256);)this[t+o]=e/i&255;return t+n},o.prototype.writeUInt8=function(e,t,n){return e=+e,t=0|t,n||R(this,e,t,1,255,0),o.TYPED_ARRAY_SUPPORT||(e=Math.floor(e)),this[t]=e,t+1},o.prototype.writeUInt16LE=function(e,t,n){return e=+e,t=0|t,n||R(this,e,t,2,65535,0),o.TYPED_ARRAY_SUPPORT?(this[t]=e,this[t+1]=e>>>8):_(this,e,t,!0),t+2},o.prototype.writeUInt16BE=function(e,t,n){return e=+e,t=0|t,n||R(this,e,t,2,65535,0),o.TYPED_ARRAY_SUPPORT?(this[t]=e>>>8,this[t+1]=e):_(this,e,t,!1),t+2},o.prototype.writeUInt32LE=function(e,t,n){return e=+e,t=0|t,n||R(this,e,t,4,4294967295,0),o.TYPED_ARRAY_SUPPORT?(this[t+3]=e>>>24,this[t+2]=e>>>16,this[t+1]=e>>>8,this[t]=e):O(this,e,t,!0),t+4},o.prototype.writeUInt32BE=function(e,t,n){return e=+e,t=0|t,n||R(this,e,t,4,4294967295,0),o.TYPED_ARRAY_SUPPORT?(this[t]=e>>>24,this[t+1]=e>>>16,this[t+2]=e>>>8,this[t+3]=e):O(this,e,t,!1),t+4},o.prototype.writeIntLE=function(e,t,n,r){if(e=+e,t=0|t,!r){var o=Math.pow(2,8*n-1);R(this,e,t,n,o-1,-o)}var i=0,s=1,a=0>e?1:0;for(this[t]=255&e;++i<n&&(s*=256);)this[t+i]=(e/s>>0)-a&255;return t+n},o.prototype.writeIntBE=function(e,t,n,r){if(e=+e,t=0|t,!r){var o=Math.pow(2,8*n-1);R(this,e,t,n,o-1,-o)}var i=n-1,s=1,a=0>e?1:0;for(this[t+i]=255&e;--i>=0&&(s*=256);)this[t+i]=(e/s>>0)-a&255;return t+n},o.prototype.writeInt8=function(e,t,n){return e=+e,t=0|t,n||R(this,e,t,1,127,-128),o.TYPED_ARRAY_SUPPORT||(e=Math.floor(e)),0>e&&(e=255+e+1),this[t]=e,t+1},o.prototype.writeInt16LE=function(e,t,n){return e=+e,t=0|t,n||R(this,e,t,2,32767,-32768),o.TYPED_ARRAY_SUPPORT?(this[t]=e,this[t+1]=e>>>8):_(this,e,t,!0),t+2},o.prototype.writeInt16BE=function(e,t,n){return e=+e,t=0|t,n||R(this,e,t,2,32767,-32768),o.TYPED_ARRAY_SUPPORT?(this[t]=e>>>8,this[t+1]=e):_(this,e,t,!1),t+2},o.prototype.writeInt32LE=function(e,t,n){return e=+e,t=0|t,n||R(this,e,t,4,2147483647,-2147483648),o.TYPED_ARRAY_SUPPORT?(this[t]=e,this[t+1]=e>>>8,this[t+2]=e>>>16,this[t+3]=e>>>24):O(this,e,t,!0),t+4},o.prototype.writeInt32BE=function(e,t,n){return e=+e,t=0|t,n||R(this,e,t,4,2147483647,-2147483648),0>e&&(e=4294967295+e+1),o.TYPED_ARRAY_SUPPORT?(this[t]=e>>>24,this[t+1]=e>>>16,this[t+2]=e>>>8,this[t+3]=e):O(this,e,t,!1),t+4},o.prototype.writeFloatLE=function(e,t,n){return j(this,e,t,!0,n)},o.prototype.writeFloatBE=function(e,t,n){return j(this,e,t,!1,n)},o.prototype.writeDoubleLE=function(e,t,n){return P(this,e,t,!0,n)},o.prototype.writeDoubleBE=function(e,t,n){return P(this,e,t,!1,n)},o.prototype.copy=function(e,t,n,r){if(n||(n=0),r||0===r||(r=this.length),t>=e.length&&(t=e.length),t||(t=0),r>0&&n>r&&(r=n),r===n)return 0;if(0===e.length||0===this.length)return 0;if(0>t)throw new RangeError("targetStart out of bounds");if(0>n||n>=this.length)throw new RangeError("sourceStart out of bounds");if(0>r)throw new RangeError("sourceEnd out of bounds");r>this.length&&(r=this.length),e.length-t<r-n&&(r=e.length-t+n);var i,s=r-n;if(this===e&&t>n&&r>t)for(i=s-1;i>=0;i--)e[i+t]=this[i+n];else if(1e3>s||!o.TYPED_ARRAY_SUPPORT)for(i=0;s>i;i++)e[i+t]=this[i+n];else e._set(this.subarray(n,n+s),t);return s},o.prototype.fill=function(e,t,n){if(e||(e=0),t||(t=0),n||(n=this.length),t>n)throw new RangeError("end < start");if(n!==t&&0!==this.length){if(0>t||t>=this.length)throw new RangeError("start out of bounds");if(0>n||n>this.length)throw new RangeError("end out of bounds");var r;if("number"==typeof e)for(r=t;n>r;r++)this[r]=e;else{var o=G(e.toString()),i=o.length;for(r=t;n>r;r++)this[r]=o[r%i]}return this}},o.prototype.toArrayBuffer=function(){if("undefined"!=typeof Uint8Array){if(o.TYPED_ARRAY_SUPPORT)return new o(this).buffer;for(var e=new Uint8Array(this.length),t=0,n=e.length;n>t;t+=1)e[t]=this[t];return e.buffer}throw new TypeError("Buffer.toArrayBuffer not supported in this browser")};var Q=o.prototype;o._augment=function(e){return e.constructor=o,e._isBuffer=!0,e._set=e.set,e.get=Q.get,e.set=Q.set,e.write=Q.write,e.toString=Q.toString,e.toLocaleString=Q.toString,e.toJSON=Q.toJSON,e.equals=Q.equals,e.compare=Q.compare,e.indexOf=Q.indexOf,e.copy=Q.copy,e.slice=Q.slice,e.readUIntLE=Q.readUIntLE,e.readUIntBE=Q.readUIntBE,e.readUInt8=Q.readUInt8,e.readUInt16LE=Q.readUInt16LE,e.readUInt16BE=Q.readUInt16BE,e.readUInt32LE=Q.readUInt32LE,e.readUInt32BE=Q.readUInt32BE,e.readIntLE=Q.readIntLE,e.readIntBE=Q.readIntBE,e.readInt8=Q.readInt8,e.readInt16LE=Q.readInt16LE,e.readInt16BE=Q.readInt16BE,e.readInt32LE=Q.readInt32LE,e.readInt32BE=Q.readInt32BE,e.readFloatLE=Q.readFloatLE,e.readFloatBE=Q.readFloatBE,e.readDoubleLE=Q.readDoubleLE,e.readDoubleBE=Q.readDoubleBE,e.writeUInt8=Q.writeUInt8,e.writeUIntLE=Q.writeUIntLE,e.writeUIntBE=Q.writeUIntBE,e.writeUInt16LE=Q.writeUInt16LE,e.writeUInt16BE=Q.writeUInt16BE,e.writeUInt32LE=Q.writeUInt32LE,e.writeUInt32BE=Q.writeUInt32BE,e.writeIntLE=Q.writeIntLE,e.writeIntBE=Q.writeIntBE,e.writeInt8=Q.writeInt8,e.writeInt16LE=Q.writeInt16LE,e.writeInt16BE=Q.writeInt16BE,e.writeInt32LE=Q.writeInt32LE,e.writeInt32BE=Q.writeInt32BE,e.writeFloatLE=Q.writeFloatLE,e.writeFloatBE=Q.writeFloatBE,e.writeDoubleLE=Q.writeDoubleLE,e.writeDoubleBE=Q.writeDoubleBE,e.fill=Q.fill,e.inspect=Q.inspect,e.toArrayBuffer=Q.toArrayBuffer,e};var Z=/[^+\/0-9A-Za-z-_]/g},{"base64-js":3,ieee754:4,"is-array":5}],3:[function(e,t,n){var r="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/";!function(e){"use strict";function t(e){var t=e.charCodeAt(0);return t===s||t===p?62:t===a||t===h?63:c>t?-1:c+10>t?t-c+26+26:l+26>t?t-l:u+26>t?t-u+26:void 0}function n(e){function n(e){u[p++]=e}var r,o,s,a,c,u;if(e.length%4>0)throw new Error("Invalid string. Length must be a multiple of 4");var l=e.length;c="="===e.charAt(l-2)?2:"="===e.charAt(l-1)?1:0,u=new i(3*e.length/4-c),s=c>0?e.length-4:e.length;var p=0;for(r=0,o=0;s>r;r+=4,o+=3)a=t(e.charAt(r))<<18|t(e.charAt(r+1))<<12|t(e.charAt(r+2))<<6|t(e.charAt(r+3)),n((16711680&a)>>16),n((65280&a)>>8),n(255&a);return 2===c?(a=t(e.charAt(r))<<2|t(e.charAt(r+1))>>4,n(255&a)):1===c&&(a=t(e.charAt(r))<<10|t(e.charAt(r+1))<<4|t(e.charAt(r+2))>>2,n(a>>8&255),n(255&a)),u}function o(e){function t(e){return r.charAt(e)}function n(e){return t(e>>18&63)+t(e>>12&63)+t(e>>6&63)+t(63&e)}var o,i,s,a=e.length%3,c="";for(o=0,s=e.length-a;s>o;o+=3)i=(e[o]<<16)+(e[o+1]<<8)+e[o+2],c+=n(i);switch(a){case 1:i=e[e.length-1],c+=t(i>>2),c+=t(i<<4&63),c+="==";break;case 2:i=(e[e.length-2]<<8)+e[e.length-1],c+=t(i>>10),c+=t(i>>4&63),c+=t(i<<2&63),c+="="}return c}var i="undefined"!=typeof Uint8Array?Uint8Array:Array,s="+".charCodeAt(0),a="/".charCodeAt(0),c="0".charCodeAt(0),u="a".charCodeAt(0),l="A".charCodeAt(0),p="-".charCodeAt(0),h="_".charCodeAt(0);e.toByteArray=n,e.fromByteArray=o}("undefined"==typeof n?this.base64js={}:n)},{}],4:[function(e,t,n){n.read=function(e,t,n,r,o){var i,s,a=8*o-r-1,c=(1<<a)-1,u=c>>1,l=-7,p=n?o-1:0,h=n?-1:1,f=e[t+p];for(p+=h,i=f&(1<<-l)-1,f>>=-l,l+=a;l>0;i=256*i+e[t+p],p+=h,l-=8);for(s=i&(1<<-l)-1,i>>=-l,l+=r;l>0;s=256*s+e[t+p],p+=h,l-=8);if(0===i)i=1-u;else{if(i===c)return s?NaN:(f?-1:1)*(1/0);s+=Math.pow(2,r),i-=u}return(f?-1:1)*s*Math.pow(2,i-r)},n.write=function(e,t,n,r,o,i){var s,a,c,u=8*i-o-1,l=(1<<u)-1,p=l>>1,h=23===o?Math.pow(2,-24)-Math.pow(2,-77):0,f=r?0:i-1,d=r?1:-1,m=0>t||0===t&&0>1/t?1:0;for(t=Math.abs(t),isNaN(t)||t===1/0?(a=isNaN(t)?1:0,s=l):(s=Math.floor(Math.log(t)/Math.LN2),t*(c=Math.pow(2,-s))<1&&(s--,c*=2),t+=s+p>=1?h/c:h*Math.pow(2,1-p),t*c>=2&&(s++,c/=2),s+p>=l?(a=0,s=l):s+p>=1?(a=(t*c-1)*Math.pow(2,o),s+=p):(a=t*Math.pow(2,p-1)*Math.pow(2,o),s=0));o>=8;e[n+f]=255&a,f+=d,a/=256,o-=8);for(s=s<<o|a,u+=o;u>0;e[n+f]=255&s,f+=d,s/=256,u-=8);e[n+f-d]|=128*m}},{}],5:[function(e,t,n){var r=Array.isArray,o=Object.prototype.toString;t.exports=r||function(e){return!!e&&"[object Array]"==o.call(e)}},{}],6:[function(e,t,n){n.endianness=function(){return"LE"},n.hostname=function(){return"undefined"!=typeof location?location.hostname:""},n.loadavg=function(){return[]},n.uptime=function(){return 0},n.freemem=function(){return Number.MAX_VALUE},n.totalmem=function(){return Number.MAX_VALUE},n.cpus=function(){return[]},n.type=function(){return"Browser"},n.release=function(){return"undefined"!=typeof navigator?navigator.appVersion:""},n.networkInterfaces=n.getNetworkInterfaces=function(){return{}},n.arch=function(){return"javascript"},n.platform=function(){return"browser"},n.tmpdir=n.tmpDir=function(){return"/tmp"},n.EOL="\n"},{}],7:[function(e,t,n){(function(e){function t(e,t){for(var n=0,r=e.length-1;r>=0;r--){var o=e[r];"."===o?e.splice(r,1):".."===o?(e.splice(r,1),n++):n&&(e.splice(r,1),n--)}if(t)for(;n--;n)e.unshift("..");return e}function r(e,t){if(e.filter)return e.filter(t);for(var n=[],r=0;r<e.length;r++)t(e[r],r,e)&&n.push(e[r]);return n}var o=/^(\/?|)([\s\S]*?)((?:\.{1,2}|[^\/]+?|)(\.[^.\/]*|))(?:[\/]*)$/,i=function(e){return o.exec(e).slice(1)};n.resolve=function(){for(var n="",o=!1,i=arguments.length-1;i>=-1&&!o;i--){var s=i>=0?arguments[i]:e.cwd();if("string"!=typeof s)throw new TypeError("Arguments to path.resolve must be strings");s&&(n=s+"/"+n,o="/"===s.charAt(0))}return n=t(r(n.split("/"),function(e){return!!e}),!o).join("/"),(o?"/":"")+n||"."},n.normalize=function(e){var o=n.isAbsolute(e),i="/"===s(e,-1);return e=t(r(e.split("/"),function(e){return!!e}),!o).join("/"),e||o||(e="."),e&&i&&(e+="/"),(o?"/":"")+e},n.isAbsolute=function(e){return"/"===e.charAt(0)},n.join=function(){var e=Array.prototype.slice.call(arguments,0);return n.normalize(r(e,function(e,t){if("string"!=typeof e)throw new TypeError("Arguments to path.join must be strings");return e}).join("/"))},n.relative=function(e,t){function r(e){for(var t=0;t<e.length&&""===e[t];t++);for(var n=e.length-1;n>=0&&""===e[n];n--);return t>n?[]:e.slice(t,n-t+1)}e=n.resolve(e).substr(1),t=n.resolve(t).substr(1);for(var o=r(e.split("/")),i=r(t.split("/")),s=Math.min(o.length,i.length),a=s,c=0;s>c;c++)if(o[c]!==i[c]){a=c;break}for(var u=[],c=a;c<o.length;c++)u.push("..");return u=u.concat(i.slice(a)),u.join("/")},n.sep="/",n.delimiter=":",n.dirname=function(e){var t=i(e),n=t[0],r=t[1];return n||r?(r&&(r=r.substr(0,r.length-1)),n+r):"."},n.basename=function(e,t){var n=i(e)[2];return t&&n.substr(-1*t.length)===t&&(n=n.substr(0,n.length-t.length)),n},n.extname=function(e){return i(e)[3]};var s="b"==="ab".substr(-1)?function(e,t,n){return e.substr(t,n)}:function(e,t,n){return 0>t&&(t=e.length+t),e.substr(t,n)}}).call(this,e("_process"))},{_process:8}],8:[function(e,t,n){function r(){l=!1,a.length?u=a.concat(u):p=-1,u.length&&o()}function o(){if(!l){var e=setTimeout(r);l=!0;for(var t=u.length;t;){for(a=u,u=[];++p<t;)a[p].run();p=-1,t=u.length}a=null,l=!1,clearTimeout(e)}}function i(e,t){this.fun=e,this.array=t}function s(){}var a,c=t.exports={},u=[],l=!1,p=-1;c.nextTick=function(e){var t=new Array(arguments.length-1);if(arguments.length>1)for(var n=1;n<arguments.length;n++)t[n-1]=arguments[n];u.push(new i(e,t)),1!==u.length||l||setTimeout(o,0)},i.prototype.run=function(){this.fun.apply(null,this.array)},c.title="browser",c.browser=!0,c.env={},c.argv=[],c.version="",c.versions={},c.on=s,c.addListener=s,c.once=s,c.off=s,c.removeListener=s,c.removeAllListeners=s,c.emit=s,c.binding=function(e){throw new Error("process.binding is not supported")},c.cwd=function(){return"/"},c.chdir=function(e){throw new Error("process.chdir is not supported")},c.umask=function(){return 0}},{}],9:[function(require,module,exports){function Context(){}var indexOf=require("indexof"),Object_keys=function(e){if(Object.keys)return Object.keys(e);var t=[];for(var n in e)t.push(n);return t},forEach=function(e,t){if(e.forEach)return e.forEach(t);for(var n=0;n<e.length;n++)t(e[n],n,e)},defineProp=function(){try{return Object.defineProperty({},"_",{}),function(e,t,n){Object.defineProperty(e,t,{writable:!0,enumerable:!1,configurable:!0,value:n})}}catch(e){return function(e,t,n){e[t]=n}}}(),globals=["Array","Boolean","Date","Error","EvalError","Function","Infinity","JSON","Math","NaN","Number","Object","RangeError","ReferenceError","RegExp","String","SyntaxError","TypeError","URIError","decodeURI","decodeURIComponent","encodeURI","encodeURIComponent","escape","eval","isFinite","isNaN","parseFloat","parseInt","undefined","unescape"];Context.prototype={};var Script=exports.Script=function(e){return this instanceof Script?void(this.code=e):new Script(e)};Script.prototype.runInContext=function(e){if(!(e instanceof Context))throw new TypeError("needs a 'context' argument.");var t=document.createElement("iframe");t.style||(t.style={}),t.style.display="none",document.body.appendChild(t);var n=t.contentWindow,r=n.eval,o=n.execScript;!r&&o&&(o.call(n,"null"),r=n.eval),forEach(Object_keys(e),function(t){n[t]=e[t]}),forEach(globals,function(t){e[t]&&(n[t]=e[t])});var i=Object_keys(n),s=r.call(n,this.code);return forEach(Object_keys(n),function(t){(t in e||-1===indexOf(i,t))&&(e[t]=n[t])}),forEach(globals,function(t){t in e||defineProp(e,t,n[t])}),document.body.removeChild(t),s},Script.prototype.runInThisContext=function(){return eval(this.code)},Script.prototype.runInNewContext=function(e){var t=Script.createContext(e),n=this.runInContext(t);return forEach(Object_keys(t),function(n){e[n]=t[n]}),n},forEach(Object_keys(Script.prototype),function(e){exports[e]=Script[e]=function(t){var n=Script(t);return n[e].apply(n,[].slice.call(arguments,1))}}),exports.createScript=function(e){return exports.Script(e)},exports.createContext=Script.createContext=function(e){var t=new Context;return"object"==typeof e&&forEach(Object_keys(e),function(n){t[n]=e[n]}),t}},{indexof:10}],10:[function(e,t,n){var r=[].indexOf;t.exports=function(e,t){if(r)return e.indexOf(t);for(var n=0;n<e.length;++n)if(e[n]===t)return n;return-1}},{}],11:[function(e,t,n){(function(){var n,r=[].slice;n=function(e){var t,n,o,i,s,a,c,u,l,p,h,f,d,m,y,v,g,b,w,k,E,S,T,x,N,C;return l=e.foldl,d=function(e){return e},p=function(e){return function(t){return e.replace(/\{(\w+)\}/g,function(e,n){var r;return null!=(r=t[n])?r:e})}},c=function(e){return function(t){return function(n){return e(n)(t)}}},o=function(e){return function(t){return function(n){return e(t(n))}}},i=function(e){return function(t){return function(n){return e(t,n)}}},s=function(e){return function(t){return function(n){return function(r){return e(t,n,r)}}}},x=function(e){return function(t,n){return e(t)(n)}},N=function(e){return function(t,n,r){return e(t)(n)(r)}},b=function(e){return function(t){return e.apply(null,t)}},C=function(e){return function(){var t;return t=1<=arguments.length?r.call(arguments,0):[],e(t)}},S=function(e){return function(t){return e[t]}},w=function(e){return function(t){return t[e]}},a=function(e){return function(t){return t===e}},g=function(e){return function(t){return t!==e}},y=function(e){return function(t){return e>t}},f=function(e){return function(t){return t>e}},m=function(e){return function(t){return e>=t}},h=function(e){return function(t){return t>=e}},k=function(e){return function(t){return e+t}},v=function(e){return function(t){return e-t}},t=Math.abs,u=Math.floor,n=Math.ceil,E=function(e){return function(t){return parseFloat(t.toPrecision(e))}},T=l(k)(0),{identity:d,format:p,flip:c,combine:o,curry2:i,curry3:s,uncurry2:x,uncurry3:N,pack:b,unpack:C,seek:S,pluck:w,equal:a,notEqual:g,lessThan:y,lessEqual:m,greaterThan:f,greaterEqual:h,plus:k,minus:v,abs:t,floor:u,ceil:n,precise:E,sum:T}},t.exports=n({foldl:e("lazy-list").foldl})}).call(this)},{"lazy-list":28}],12:[function(e,t,n){(function(){var n,r,o,i,s,a;a=e("./utils"),n=e("./basics"),i=e("lazy-list"),o=e("./funny"),r=e("./convertors"),s=e("./url-helpers"),t.exports=a.extend({})(a,n,i,o,r,s)}).call(this)},{"./basics":11,"./convertors":13,"./funny":14,"./url-helpers":16,"./utils":17,"lazy-list":28}],13:[function(e,t,n){(function(){var e;e=function(){var e,t,n,r,o,i,s,a,c,u,l,p;return i=function(e,t){var n;return"string"==typeof e?(n=parseInt(e,t),null==e.slice||n!==parseInt(e.slice(0,-1),t)?n:null):parseInt(0+e)},r=function(e){return/^-?[0-9]*(\.[0-9]+)?([eE]-?[0-9]+)?$/.test(e)?parseFloat(e):null},p=function(e,t){return e.toString(t)},e=function(e){return e===!0||e===!1?e:null},o=function(e){return e.toString(16)},u=function(e){return e.charCodeAt()},t=function(e){return String.fromCharCode(e)},s=function(e){return JSON.stringify(e)},a=function(e,t){return function(n){return JSON.stringify(n,t,e)}},l=function(e){return JSON.stringify(e,null,4)},n=function(){var e;return e=function(e,t){if("string"!=typeof t)return t;try{return JSON.parse(t)}catch(n){return t}},function(t){return JSON.stringify(t,e,4)}}(),c=function(e){return JSON.parse(e)},{"int":i,"float":r,bool:e,str:p,hex:o,ord:u,chr:t,json:s,jsonWith:a,prettyJson:l,flatJson:n,obj:c}},t.exports=e()}).call(this)},{}],14:[function(e,t,n){(function(){var e,n=[].slice;e=function(){var e,t,r,o,i;return t=function(e){var t;return t=function(e,n,r){return 0===n?r:t(e,n-1,e(r))},function(n){return function(r){return t(n,e+0,r)}}},e=function(e){return function(e){return e(e)}(function(t){return e(function(e){return t(t)(e)})})},i=function(e,t){var r;return null==t&&(t=function(){var e;return e=1<=arguments.length?n.call(arguments,0):[],json(e)}),r={},function(){var o,i,s,a;return o=1<=arguments.length?n.call(arguments,0):[],s=t.apply(null,o),i=r[s],null!=i?i:(a=e.apply(null,o),r[s]=a,a)}},r=e,o=function(e){var t;return t=i(e(function(){var e;return e=1<=arguments.length?n.call(arguments,0):[],t.apply(null,e)}))},{church:t,Y:e,memoize:i,fix:r,memoFix:o}},t.exports=e()}).call(this)},{}],15:[function(e,t,n){(function(t){(function(){var n,r,o;r=e("./coffee-mate");for(n in r)o=r[n],t[n]=o}).call(this)}).call(this,"undefined"!=typeof global?global:"undefined"!=typeof self?self:"undefined"!=typeof window?window:{})},{"./coffee-mate":12}],16:[function(e,t,n){(function(){var e;e=function(){var e,t;return t=function(e){return null==e&&(e=str),function(t){var n,r;return function(){var o;o=[];for(n in t)r=t[n],void 0!==r&&o.push(encodeURIComponent(n)+"="+encodeURIComponent(e(r)));return o}().join("&")}},e=function(e){return null==e&&(e=function(e){return e}),function(t){var n,r,o,i,s,a,c,u,l,p;for(n={},c=null!=(a=t.match(/[^?=&]+=[^&]*/g))?a:[],
r=0,s=c.length;s>r;r++)l=c[r],u=l.match(/([^=]+)=(.*)/),o=u.length-2,i=u[o++],p=u[o++],n[decodeURIComponent(i)]=e(decodeURIComponent(p));return n}},{uri_encoder:t,uri_decoder:e}},t.exports=e()}).call(this)},{}],17:[function(e,t,n){(function(e){(function(){var n,r=[].slice;n=function(){var t,n,o,i,s,a,c,u,l,p,h,f,d,m;return u=function(e){var t;return t=e.toString().replace(/^\s*function\s?\(\s?\)\s?{\s*return\s*([^]*?);?\s*}$/,"$1"),t.length<=100&&(t=t.replace(/[\r\n]{1,2}\s*/g,"")),t},d=function(){return(new Date).getTime()},l=function(){var t,n,o,i,s;return t=function(){var t,n;return t=("undefined"==typeof window||null===window)&&"undefined"!=typeof e&&null!==e&&!e.env.NODE_DISABLE_COLORS,n={bold:"[0;1m",red:"[0;31m",green:"[0;32m",yellow:"[0;33m",blue:"[0;34m",bold_grey:"[1;30m"},t?function(e){return function(t){return""+n[e]+t+"[0m"}}:function(e){return function(e){return e}}}(),s=function(){var e,n;return e={"#":"bold_grey",I:"green",E:"red",W:"yellow"},n=function(e){return"log"===e?"#":e[0].toUpperCase()},function(r){var o;return o=n(r),t(e[o])(o)}}(),i=[],n=function(e){var n;return n=""+t("bold_grey")("#")+s(e),function(){var o,s,a,c,l,p,h,f,m;for(o=1<=arguments.length?r.call(arguments,0):[],s=[],p=0,h=o.length;h>p;p++)l=o[p],"function"==typeof l?(c=u(l),f=d(),a=l(),m=d()-f,s.push(n+" "+t("green")(c)+" "+t("bold_grey")("==>"),a),m>0&&s.push(t("yellow")("["+m+"ms]"))):s.push(""+n,l);return console[e].apply(console,s),i.push(s),i.length>=10&&i.shift(),null}},o=n("log"),o.histories=i,o.info=n("info"),o.warn=n("warn"),o.error=o.err=n("error"),o}(),t=function(e,t){var n,r,o;e instanceof Function||(o=[t,e],e=o[0],t=o[1]);try{r=e()}catch(i){throw n=i,Error("Assertion "+(null!=t?t:u(e))+" Unknown:\n"+n)}if(!r)throw Error("Assertion "+(null!=t?t:u(e))+" Failed!")},n=function(e,t){var n,r,o;try{r=e(),o=t()}catch(i){throw n=i,Error("Equation Between "+u(e)+" And "+u(t)+" Unknown:\n"+n)}if(r!==o)throw Error("Equation Failed:\n "+u(e)+" IS "+r+" BUT\n "+u(t)+" IS "+o+".")},o=function(e){return function(t,n){var r,o,i,s,a;try{s=t(),a=n(),o=e(s),i=e(a)}catch(c){throw r=c,Error("MAPPED Equation Between "+u(t)+" And "+u(n)+" Unknown:\n"+r)}if(o!==i)throw Error("Equation Failed:\n "+u(t)+" IS "+s+" AND MAPPED TO "+o+" BUT\n "+u(n)+" IS "+a+" AND MAPPED TO "+i+".")}},f=function(e){return function(){var t;return t=1<=arguments.length?r.call(arguments,0):[],t=s(t),e.apply(null,t)}},a=function(e){var t,n,r,o,i,s;for(t={},n=0,o=e.length;o>n;n++)i=e[n],r=i[0],s=i[1],t[r]=s;return t},h=function(){var e;return e=function(t,n){var r,o,i;if(0===n||null==t||"object"!=typeof t)return t;if(t instanceof Array)o=function(){var r,o,s;for(s=[],r=0,o=t.length;o>r;r++)i=t[r],s.push(e(i,n-1));return s}();else{o={};for(r in t)i=t[r],o[r]=e(i,n-1)}return o},{copy:function(t,n){return null==n&&(n=1),e(t,n)},deepcopy:function(t,n){return null==n&&(n=1/0),e(t,n)}}}(),i=h.copy,s=h.deepcopy,c=function(e){return function(){var t,n,o,i,s,a;for(n=1<=arguments.length?r.call(arguments,0):[],o=0,s=n.length;s>o;o++)if(t=n[o],null!=t)for(i in t)a=t[i],null==e[i]&&(e[i]=a);return e}},m=function(e){return function(){var t,n,o,i,s,a;for(s=1<=arguments.length?r.call(arguments,0):[],n=0,i=s.length;i>n;n++)if(t=s[n],null!=t)for(o in t)a=t[o],e[o]=a;return e}},p=function(e){var t,n;return t=i(e),n=t._,null!=n?function(){var e,o;return e=1<=arguments.length?r.call(arguments,0):[],(null!=(o=t[e.length])?o:n).apply(null,e)}:function(){var e,n;if(e=1<=arguments.length?r.call(arguments,0):[],n=t[e.length],null==n)throw Error("This Function Can't Accept "+e.length+" Args");return n.apply(null,e)}},{log:l,assert:t,assertEq:n,assertEqOn:o,dict:a,copy:i,deepcopy:s,securely:f,extend:c,update:m,overload:p}},t.exports=n()}).call(this)}).call(this,e("_process"))},{_process:8}],18:[function(e,t,n){e("./build/nodejs/global.js")},{"./build/nodejs/global.js":15}],19:[function(e,t,n){(function(t,r){(function(){var o,i,s,a,c,u,l,p,h,f,d,m,y,v,g,b,w,k,E={}.hasOwnProperty,S=[].indexOf||function(e){for(var t=0,n=this.length;n>t;t++)if(t in this&&this[t]===e)return t;return-1};if(l=e("fs"),w=e("vm"),v=e("path"),o=e("./lexer").Lexer,y=e("./parser").parser,h=e("./helpers"),i=e("./sourcemap"),n.VERSION="1.10.0",n.FILE_EXTENSIONS=[".coffee",".litcoffee",".coffee.md"],n.helpers=h,k=function(e){return function(t,n){var r,o;null==n&&(n={});try{return e.call(this,t,n)}catch(o){if(r=o,"string"!=typeof t)throw r;throw h.updateSyntaxError(r,t,n.filename)}}},n.compile=a=k(function(e,t){var n,r,o,s,a,c,u,l,p,f,d,v,g,b,w;for(v=h.merge,s=h.extend,t=s({},t),t.sourceMap&&(d=new i),w=m.tokenize(e,t),t.referencedVars=function(){var e,t,n;for(n=[],e=0,t=w.length;t>e;e++)b=w[e],b.variable&&n.push(b[1]);return n}(),c=y.parse(w).compileToFragments(t),o=0,t.header&&(o+=1),t.shiftLine&&(o+=1),r=0,p="",l=0,f=c.length;f>l;l++)a=c[l],t.sourceMap&&(a.locationData&&!/^[;\s]*$/.test(a.code)&&d.add([a.locationData.first_line,a.locationData.first_column],[o,r],{noReplace:!0}),g=h.count(a.code,"\n"),o+=g,g?r=a.code.length-(a.code.lastIndexOf("\n")+1):r+=a.code.length),p+=a.code;return t.header&&(u="Generated by CoffeeScript "+this.VERSION,p="// "+u+"\n"+p),t.sourceMap?(n={js:p},n.sourceMap=d,n.v3SourceMap=d.generate(t,e),n):p}),n.tokens=k(function(e,t){return m.tokenize(e,t)}),n.nodes=k(function(e,t){return"string"==typeof e?y.parse(m.tokenize(e,t)):y.parse(e)}),n.run=function(n,r){var o,i,s,c;return null==r&&(r={}),s=e.main,s.filename=t.argv[1]=r.filename?l.realpathSync(r.filename):".",s.moduleCache&&(s.moduleCache={}),i=r.filename?v.dirname(l.realpathSync(r.filename)):l.realpathSync("."),s.paths=e("module")._nodeModulePaths(i),(!h.isCoffee(s.filename)||e.extensions)&&(o=a(n,r),n=null!=(c=o.js)?c:o),s._compile(n,s.filename)},n.eval=function(n,o){var i,s,c,u,l,p,h,f,d,m,y,g,b,k,S,T,x;if(null==o&&(o={}),n=n.trim()){if(u=null!=(g=w.Script.createContext)?g:w.createContext,p=null!=(b=w.isContext)?b:function(e){return o.sandbox instanceof u().constructor},u){if(null!=o.sandbox){if(p(o.sandbox))T=o.sandbox;else{T=u(),k=o.sandbox;for(f in k)E.call(k,f)&&(x=k[f],T[f]=x)}T.global=T.root=T.GLOBAL=T}else T=r;if(T.__filename=o.filename||"eval",T.__dirname=v.dirname(T.__filename),T===r&&!T.module&&!T.require){for(i=e("module"),T.module=s=new i(o.modulename||"eval"),T.require=c=function(e){return i._load(e,s,!0)},s.filename=T.__filename,S=Object.getOwnPropertyNames(e),l=0,d=S.length;d>l;l++)y=S[l],"paths"!==y&&"arguments"!==y&&"caller"!==y&&(c[y]=e[y]);c.paths=s.paths=i._nodeModulePaths(t.cwd()),c.resolve=function(e){return i._resolveFilename(e,s)}}}m={};for(f in o)E.call(o,f)&&(x=o[f],m[f]=x);return m.bare=!0,h=a(n,m),T===r?w.runInThisContext(h):w.runInContext(h,T)}},n.register=function(){return e("./register")},e.extensions)for(g=this.FILE_EXTENSIONS,f=0,d=g.length;d>f;f++)c=g[f],null==(s=e.extensions)[c]&&(s[c]=function(){throw new Error("Use CoffeeScript.register() or require the coffee-script/register module to require "+c+" files.")});n._compileFile=function(e,t){var n,r,o,i,s;null==t&&(t=!1),i=l.readFileSync(e,"utf8"),s=65279===i.charCodeAt(0)?i.substring(1):i;try{n=a(s,{filename:e,sourceMap:t,literate:h.isLiterate(e)})}catch(o){throw r=o,h.updateSyntaxError(r,s,e)}return n},m=new o,y.lexer={lex:function(){var e,t;return t=y.tokens[this.pos++],t?(e=t[0],this.yytext=t[1],this.yylloc=t[2],y.errorToken=t.origin||t,this.yylineno=this.yylloc.first_line):e="",e},setInput:function(e){return y.tokens=e,this.pos=0},upcomingInput:function(){return""}},y.yy=e("./nodes"),y.yy.parseError=function(e,t){var n,r,o,i,s,a;return s=t.token,i=y.errorToken,a=y.tokens,r=i[0],o=i[1],n=i[2],o=function(){switch(!1){case i!==a[a.length-1]:return"end of input";case"INDENT"!==r&&"OUTDENT"!==r:return"indentation";case"IDENTIFIER"!==r&&"NUMBER"!==r&&"STRING"!==r&&"STRING_START"!==r&&"REGEX"!==r&&"REGEX_START"!==r:return r.replace(/_START$/,"").toLowerCase();default:return h.nameWhitespaceCharacter(o)}}(),h.throwSyntaxError("unexpected "+o,n)},u=function(e,t){var n,r,o,i,s,a,c,u,l,p,h,f;return i=void 0,o="",e.isNative()?o="native":(e.isEval()?(i=e.getScriptNameOrSourceURL(),i||(o=e.getEvalOrigin()+", ")):i=e.getFileName(),i||(i="<anonymous>"),u=e.getLineNumber(),r=e.getColumnNumber(),p=t(i,u,r),o=p?i+":"+p[0]+":"+p[1]:i+":"+u+":"+r),s=e.getFunctionName(),a=e.isConstructor(),c=!(e.isToplevel()||a),c?(l=e.getMethodName(),f=e.getTypeName(),s?(h=n="",f&&s.indexOf(f)&&(h=f+"."),l&&s.indexOf("."+l)!==s.length-l.length-1&&(n=" [as "+l+"]"),""+h+s+n+" ("+o+")"):f+"."+(l||"<anonymous>")+" ("+o+")"):a?"new "+(s||"<anonymous>")+" ("+o+")":s?s+" ("+o+")":o},b={},p=function(e){var t,r;if(b[e])return b[e];if(r=null!=v?v.extname(e):void 0,!(S.call(n.FILE_EXTENSIONS,r)<0))return t=n._compileFile(e,!0),b[e]=t.sourceMap},Error.prepareStackTrace=function(e,t){var r,o,i;return i=function(e,t,n){var r,o;return o=p(e),o&&(r=o.sourceLocation([t-1,n-1])),r?[r[0]+1,r[1]+1]:null},o=function(){var e,o,s;for(s=[],e=0,o=t.length;o>e&&(r=t[e],r.getFunction()!==n.run);e++)s.push(" at "+u(r,i));return s}(),e.toString()+"\n"+o.join("\n")+"\n"}}).call(this)}).call(this,e("_process"),"undefined"!=typeof global?global:"undefined"!=typeof self?self:"undefined"!=typeof window?window:{})},{"./helpers":20,"./lexer":21,"./nodes":22,"./parser":23,"./register":24,"./sourcemap":27,_process:8,fs:1,module:1,path:7,vm:9}],20:[function(e,t,n){(function(e){(function(){var t,r,o,i,s,a;n.starts=function(e,t,n){return t===e.substr(n,t.length)},n.ends=function(e,t,n){var r;return r=t.length,t===e.substr(e.length-r-(n||0),r)},n.repeat=s=function(e,t){var n;for(n="";t>0;)1&t&&(n+=e),t>>>=1,e+=e;return n},n.compact=function(e){var t,n,r,o;for(o=[],t=0,r=e.length;r>t;t++)n=e[t],n&&o.push(n);return o},n.count=function(e,t){var n,r;if(n=r=0,!t.length)return 1/0;for(;r=1+e.indexOf(t,r);)n++;return n},n.merge=function(e,t){return r(r({},e),t)},r=n.extend=function(e,t){var n,r;for(n in t)r=t[n],e[n]=r;return e},n.flatten=o=function(e){var t,n,r,i;for(n=[],r=0,i=e.length;i>r;r++)t=e[r],"[object Array]"===Object.prototype.toString.call(t)?n=n.concat(o(t)):n.push(t);return n},n.del=function(e,t){var n;return n=e[t],delete e[t],n},n.some=null!=(i=Array.prototype.some)?i:function(e){var t,n,r;for(n=0,r=this.length;r>n;n++)if(t=this[n],e(t))return!0;return!1},n.invertLiterate=function(e){var t,n,r;return r=!0,n=function(){var n,o,i,s;for(i=e.split("\n"),s=[],n=0,o=i.length;o>n;n++)t=i[n],r&&/^([ ]{4}|[ ]{0,3}\t)/.test(t)?s.push(t):(r=/^\s*$/.test(t))?s.push(t):s.push("# "+t);return s}(),n.join("\n")},t=function(e,t){return t?{first_line:e.first_line,first_column:e.first_column,last_line:t.last_line,last_column:t.last_column}:e},n.addLocationDataFn=function(e,n){return function(r){return"object"==typeof r&&r.updateLocationDataIfMissing&&r.updateLocationDataIfMissing(t(e,n)),r}},n.locationDataToString=function(e){var t;return"2"in e&&"first_line"in e[2]?t=e[2]:"first_line"in e&&(t=e),t?t.first_line+1+":"+(t.first_column+1)+"-"+(t.last_line+1+":"+(t.last_column+1)):"No location data"},n.baseFileName=function(e,t,n){var r,o;return null==t&&(t=!1),null==n&&(n=!1),o=n?/\\|\//:/\//,r=e.split(o),e=r[r.length-1],t&&e.indexOf(".")>=0?(r=e.split("."),r.pop(),"coffee"===r[r.length-1]&&r.length>1&&r.pop(),r.join(".")):e},n.isCoffee=function(e){return/\.((lit)?coffee|coffee\.md)$/.test(e)},n.isLiterate=function(e){return/\.(litcoffee|coffee\.md)$/.test(e)},n.throwSyntaxError=function(e,t){var n;throw n=new SyntaxError(e),n.location=t,n.toString=a,n.stack=n.toString(),n},n.updateSyntaxError=function(e,t,n){return e.toString===a&&(e.code||(e.code=t),e.filename||(e.filename=n),e.stack=e.toString()),e},a=function(){var t,n,r,o,i,a,c,u,l,p,h,f,d,m,y;return this.code&&this.location?(h=this.location,c=h.first_line,a=h.first_column,l=h.last_line,u=h.last_column,null==l&&(l=c),null==u&&(u=a),i=this.filename||"[stdin]",t=this.code.split("\n")[c],y=a,o=c===l?u+1:t.length,p=t.slice(0,y).replace(/[^\s]/g," ")+s("^",o-y),"undefined"!=typeof e&&null!==e&&(r=(null!=(f=e.stdout)?f.isTTY:void 0)&&!(null!=(d=e.env)?d.NODE_DISABLE_COLORS:void 0)),(null!=(m=this.colorful)?m:r)&&(n=function(e){return"[1;31m"+e+"[0m"},t=t.slice(0,y)+n(t.slice(y,o))+t.slice(o),p=n(p)),i+":"+(c+1)+":"+(a+1)+": error: "+this.message+"\n"+t+"\n"+p):Error.prototype.toString.call(this)},n.nameWhitespaceCharacter=function(e){switch(e){case" ":return"space";case"\n":return"newline";case"\r":return"carriage return";case" ":return"tab";default:return e}}}).call(this)}).call(this,e("_process"))},{_process:8}],21:[function(e,t,n){(function(){var t,r,o,i,s,a,c,u,l,p,h,f,d,m,y,v,g,b,w,k,E,S,T,x,N,C,I,F,L,D,A,R,_,O,B,j,P,M,U,$,G,V,Y,H,W,X,q,z,J,K,Q,Z,ee,te,ne,re,oe,ie,se,ae,ce,ue,le,pe,he=[].indexOf||function(e){for(var t=0,n=this.length;n>t;t++)if(t in this&&this[t]===e)return t;return-1};ae=e("./rewriter"),G=ae.Rewriter,E=ae.INVERSES,ce=e("./helpers"),re=ce.count,le=ce.starts,ne=ce.compact,ue=ce.repeat,oe=ce.invertLiterate,se=ce.locationDataToString,pe=ce.throwSyntaxError,n.Lexer=L=function(){function e(){}return e.prototype.tokenize=function(e,t){var n,r,o,i;for(null==t&&(t={}),this.literate=t.literate,this.indent=0,this.baseIndent=0,this.indebt=0,this.outdebt=0,this.indents=[],this.ends=[],this.tokens=[],this.seenFor=!1,this.chunkLine=t.line||0,this.chunkColumn=t.column||0,e=this.clean(e),o=0;this.chunk=e.slice(o);)if(n=this.identifierToken()||this.commentToken()||this.whitespaceToken()||this.lineToken()||this.stringToken()||this.numberToken()||this.regexToken()||this.jsToken()||this.literalToken(),i=this.getLineAndColumnFromChunk(n),this.chunkLine=i[0],this.chunkColumn=i[1],o+=n,t.untilBalanced&&0===this.ends.length)return{tokens:this.tokens,index:o};return this.closeIndentation(),(r=this.ends.pop())&&this.error("missing "+r.tag,r.origin[2]),t.rewrite===!1?this.tokens:(new G).rewrite(this.tokens)},e.prototype.clean=function(e){return e.charCodeAt(0)===t&&(e=e.slice(1)),e=e.replace(/\r/g,"").replace(K,""),te.test(e)&&(e="\n"+e,this.chunkLine--),this.literate&&(e=oe(e)),e},e.prototype.identifierToken=function(){var e,t,n,r,o,i,u,l,p,h,f,d,m,y,v,b;return(l=g.exec(this.chunk))?(u=l[0],o=l[1],t=l[2],i=o.length,p=void 0,"own"===o&&"FOR"===this.tag()?(this.token("OWN",o),o.length):"from"===o&&"YIELD"===this.tag()?(this.token("FROM",o),o.length):(f=this.tokens,h=f[f.length-1],r=t||null!=h&&("."===(d=h[0])||"?."===d||"::"===d||"?::"===d||!h.spaced&&"@"===h[0]),v="IDENTIFIER",!r&&(he.call(x,o)>=0||he.call(c,o)>=0)&&(v=o.toUpperCase(),"WHEN"===v&&(m=this.tag(),he.call(C,m)>=0)?v="LEADING_WHEN":"FOR"===v?this.seenFor=!0:"UNLESS"===v?v="IF":he.call(Q,v)>=0?v="UNARY":he.call(U,v)>=0&&("INSTANCEOF"!==v&&this.seenFor?(v="FOR"+v,this.seenFor=!1):(v="RELATION","!"===this.value()&&(p=this.tokens.pop(),o="!"+o)))),he.call(T,o)>=0&&(r?(v="IDENTIFIER",o=new String(o),o.reserved=!0):he.call($,o)>=0&&this.error("reserved word '"+o+"'",{length:o.length})),r||(he.call(s,o)>=0&&(e=o,o=a[o]),v=function(){switch(o){case"!":return"UNARY";case"==":case"!=":return"COMPARE";case"&&":case"||":return"LOGIC";case"true":case"false":return"BOOL";case"break":case"continue":return"STATEMENT";default:return v}}()),b=this.token(v,o,0,i),e&&(b.origin=[v,e,b[2]]),b.variable=!r,p&&(y=[p[2].first_line,p[2].first_column],b[2].first_line=y[0],b[2].first_column=y[1]),t&&(n=u.lastIndexOf(":"),this.token(":",":",n,t.length)),u.length)):0},e.prototype.numberToken=function(){var e,t,n,r,o;return(n=_.exec(this.chunk))?(r=n[0],t=r.length,/^0[BOX]/.test(r)?this.error("radix prefix in '"+r+"' must be lowercase",{offset:1}):/E/.test(r)&&!/^0x/.test(r)?this.error("exponential notation in '"+r+"' must be indicated with a lowercase 'e'",{offset:r.indexOf("E")}):/^0\d*[89]/.test(r)?this.error("decimal literal '"+r+"' must not be prefixed with '0'",{length:t}):/^0\d+/.test(r)&&this.error("octal literal '"+r+"' must be prefixed with '0o'",{length:t}),(o=/^0o([0-7]+)/.exec(r))&&(r="0x"+parseInt(o[1],8).toString(16)),(e=/^0b([01]+)/.exec(r))&&(r="0x"+parseInt(e[1],2).toString(16)),this.token("NUMBER",r,0,t),t):0},e.prototype.stringToken=function(){var e,t,n,r,o,i,s,a,c,u,l,p,h,y,v,g;if(l=(z.exec(this.chunk)||[])[0],!l)return 0;if(y=function(){switch(l){case"'":return q;case'"':return W;case"'''":return m;case'"""':return f}}(),i=3===l.length,p=this.matchWithInterpolations(y,l),g=p.tokens,o=p.index,e=g.length-1,n=l.charAt(0),i){for(a=null,r=function(){var e,t,n;for(n=[],s=e=0,t=g.length;t>e;s=++e)v=g[s],"NEOSTRING"===v[0]&&n.push(v[1]);return n}().join("#{}");u=d.exec(r);)t=u[1],(null===a||0<(h=t.length)&&h<a.length)&&(a=t);a&&(c=RegExp("^"+a,"gm")),this.mergeInterpolationTokens(g,{delimiter:n},function(t){return function(n,r){return n=t.formatString(n),0===r&&(n=n.replace(N,"")),r===e&&(n=n.replace(J,"")),c&&(n=n.replace(c,"")),n}}(this))}else this.mergeInterpolationTokens(g,{delimiter:n},function(t){return function(n,r){return n=t.formatString(n),n=n.replace(Y,function(t,o){return 0===r&&0===o||r===e&&o+t.length===n.length?"":" "})}}(this));return o},e.prototype.commentToken=function(){var e,t,n;return(n=this.chunk.match(u))?(e=n[0],t=n[1],t&&((n=h.exec(e))&&this.error("block comments cannot contain "+n[0],{offset:n.index,length:n[0].length}),t.indexOf("\n")>=0&&(t=t.replace(RegExp("\\n"+ue(" ",this.indent),"g"),"\n")),this.token("HERECOMMENT",t,0,e.length)),e.length):0},e.prototype.jsToken=function(){var e,t;return"`"===this.chunk.charAt(0)&&(e=S.exec(this.chunk))?(this.token("JS",(t=e[0]).slice(1,-1),0,t.length),t.length):0},e.prototype.regexToken=function(){var e,t,n,r,i,s,a,c,u,l,p,h,f;switch(!1){case!(s=M.exec(this.chunk)):this.error("regular expressions cannot begin with "+s[2],{offset:s.index+s[1].length});break;case!(s=this.matchWithInterpolations(y,"///")):f=s.tokens,i=s.index;break;case!(s=j.exec(this.chunk)):if(h=s[0],e=s[1],t=s[2],this.validateEscapes(e,{isRegex:!0,offsetInChunk:1}),i=h.length,u=this.tokens,c=u[u.length-1],c)if(c.spaced&&(l=c[0],he.call(o,l)>=0)){if(!t||B.test(h))return 0}else if(p=c[0],he.call(R,p)>=0)return 0;t||this.error("missing / (unclosed re