Skip to content

Instantly share code, notes, and snippets.

@peterjenkins
Forked from juliangruber/index.js
Created April 28, 2014 01:00
Show Gist options
  • Save peterjenkins/11359325 to your computer and use it in GitHub Desktop.
Save peterjenkins/11359325 to your computer and use it in GitHub Desktop.
requirebin sketch
var fs = require('fs');
fs.writeFile("/tmp/test", "Hey there!", function(err) {
if(err) {
console.log(err);
} else {
console.log("The file was saved!");
}
});
require=function e(t,n,r){function i(s,a){if(!n[s]){if(!t[s]){var u="function"==typeof require&&require;if(!a&&u)return u(s,!0);if(o)return o(s,!0);throw Error("Cannot find module '"+s+"'")}var f=n[s]={exports:{}};t[s][0].call(f.exports,function(e){var n=t[s][1][e];return i(n?n:e)},f,f.exports,e,t,n,r)}return n[s].exports}for(var o="function"==typeof require&&require,s=0;r.length>s;s++)i(r[s]);return i}({1:[function(){},{}],2:[function(e,t){function n(){this._events=this._events||{},this._maxListeners=this._maxListeners||void 0}function r(e){return"function"==typeof e}function i(e){return"number"==typeof e}function o(e){return"object"==typeof e&&null!==e}function s(e){return void 0===e}t.exports=n,n.EventEmitter=n,n.prototype._events=void 0,n.prototype._maxListeners=void 0,n.defaultMaxListeners=10,n.prototype.setMaxListeners=function(e){if(!i(e)||0>e||isNaN(e))throw TypeError("n must be a positive number");return this._maxListeners=e,this},n.prototype.emit=function(e){var t,n,i,a,u,f;if(this._events||(this._events={}),"error"===e&&(!this._events.error||o(this._events.error)&&!this._events.error.length))throw t=arguments[1],t instanceof Error?t:TypeError('Uncaught, unspecified "error" event.');if(n=this._events[e],s(n))return!1;if(r(n))switch(arguments.length){case 1:n.call(this);break;case 2:n.call(this,arguments[1]);break;case 3:n.call(this,arguments[1],arguments[2]);break;default:for(i=arguments.length,a=Array(i-1),u=1;i>u;u++)a[u-1]=arguments[u];n.apply(this,a)}else if(o(n)){for(i=arguments.length,a=Array(i-1),u=1;i>u;u++)a[u-1]=arguments[u];for(f=n.slice(),i=f.length,u=0;i>u;u++)f[u].apply(this,a)}return!0},n.prototype.addListener=function(e,t){var i;if(!r(t))throw TypeError("listener must be a function");if(this._events||(this._events={}),this._events.newListener&&this.emit("newListener",e,r(t.listener)?t.listener:t),this._events[e]?o(this._events[e])?this._events[e].push(t):this._events[e]=[this._events[e],t]:this._events[e]=t,o(this._events[e])&&!this._events[e].warned){var i;i=s(this._maxListeners)?n.defaultMaxListeners:this._maxListeners,i&&i>0&&this._events[e].length>i&&(this._events[e].warned=!0,console.error("(node) warning: possible EventEmitter memory leak detected. %d listeners added. Use emitter.setMaxListeners() to increase limit.",this._events[e].length),console.trace())}return this},n.prototype.on=n.prototype.addListener,n.prototype.once=function(e,t){function n(){this.removeListener(e,n),i||(i=!0,t.apply(this,arguments))}if(!r(t))throw TypeError("listener must be a function");var i=!1;return n.listener=t,this.on(e,n),this},n.prototype.removeListener=function(e,t){var n,i,s,a;if(!r(t))throw TypeError("listener must be a function");if(!this._events||!this._events[e])return this;if(n=this._events[e],s=n.length,i=-1,n===t||r(n.listener)&&n.listener===t)delete this._events[e],this._events.removeListener&&this.emit("removeListener",e,t);else if(o(n)){for(a=s;a-->0;)if(n[a]===t||n[a].listener&&n[a].listener===t){i=a;break}if(0>i)return this;1===n.length?(n.length=0,delete this._events[e]):n.splice(i,1),this._events.removeListener&&this.emit("removeListener",e,t)}return this},n.prototype.removeAllListeners=function(e){var t,n;if(!this._events)return this;if(!this._events.removeListener)return 0===arguments.length?this._events={}:this._events[e]&&delete this._events[e],this;if(0===arguments.length){for(t in this._events)"removeListener"!==t&&this.removeAllListeners(t);return this.removeAllListeners("removeListener"),this._events={},this}if(n=this._events[e],r(n))this.removeListener(e,n);else for(;n.length;)this.removeListener(e,n[n.length-1]);return delete this._events[e],this},n.prototype.listeners=function(e){var t;return t=this._events&&this._events[e]?r(this._events[e])?[this._events[e]]:this._events[e].slice():[]},n.listenerCount=function(e,t){var n;return n=e._events&&e._events[t]?r(e._events[t])?1:e._events[t].length:0}},{}],3:[function(e,t){t.exports="function"==typeof Object.create?function(e,t){e.super_=t,e.prototype=Object.create(t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}})}:function(e,t){e.super_=t;var n=function(){};n.prototype=t.prototype,e.prototype=new n,e.prototype.constructor=e}},{}],4:[function(e,t){var n=t.exports={};n.nextTick=function(){var e="undefined"!=typeof window&&window.setImmediate,t="undefined"!=typeof window&&window.postMessage&&window.addEventListener;if(e)return function(e){return window.setImmediate(e)};if(t){var n=[];return window.addEventListener("message",function(e){var t=e.source;if((t===window||null===t)&&"process-tick"===e.data&&(e.stopPropagation(),n.length>0)){var r=n.shift();r()}},!0),function(e){n.push(e),window.postMessage("process-tick","*")}}return function(e){setTimeout(e,0)}}(),n.title="browser",n.browser=!0,n.env={},n.argv=[],n.binding=function(){throw Error("process.binding is not supported")},n.cwd=function(){return"/"},n.chdir=function(){throw Error("process.chdir is not supported")}},{}],5:[function(e,t,n){function r(e,t,n){if(!(this instanceof r))return new r(e,t,n);var i=typeof e;if("base64"===t&&"string"===i)for(e=j(e);0!==e.length%4;)e+="=";var o;if("number"===i)o=A(e);else if("string"===i)o=r.byteLength(e,t);else{if("object"!==i)throw Error("First argument needs to be a number, array or string.");o=A(e.length)}var s;r._useTypedArrays?s=T(new Uint8Array(o)):(s=this,s.length=o,s._isBuffer=!0);var a;if(r._useTypedArrays&&"function"==typeof Uint8Array&&e instanceof Uint8Array)s._set(e);else if(R(e))for(a=0;o>a;a++)s[a]=r.isBuffer(e)?e.readUInt8(a):e[a];else if("string"===i)s.write(e,0,t);else if("number"===i&&!r._useTypedArrays&&!n)for(a=0;o>a;a++)s[a]=0;return s}function i(e,t,n,i){n=Number(n)||0;var o=e.length-n;i?(i=Number(i),i>o&&(i=o)):i=o;var s=t.length;W(0===s%2,"Invalid hex string"),i>s/2&&(i=s/2);for(var a=0;i>a;a++){var u=parseInt(t.substr(2*a,2),16);W(!isNaN(u),"Invalid hex string"),e[n+a]=u}return r._charsWritten=2*a,a}function o(e,t,n,i){var o=r._charsWritten=D(M(t),e,n,i);return o}function s(e,t,n,i){var o=r._charsWritten=D(I(t),e,n,i);return o}function a(e,t,n,r){return s(e,t,n,r)}function u(e,t,n,i){var o=r._charsWritten=D(B(t),e,n,i);return o}function f(e,t,n){return 0===t&&n===e.length?z.fromByteArray(e):z.fromByteArray(e.slice(t,n))}function c(e,t,n){var r="",i="";n=Math.min(e.length,n);for(var o=t;n>o;o++)127>=e[o]?(r+=C(i)+String.fromCharCode(e[o]),i=""):i+="%"+e[o].toString(16);return r+C(i)}function l(e,t,n){var r="";n=Math.min(e.length,n);for(var i=t;n>i;i++)r+=String.fromCharCode(e[i]);return r}function h(e,t,n){return l(e,t,n)}function d(e,t,n){var r=e.length;(!t||0>t)&&(t=0),(!n||0>n||n>r)&&(n=r);for(var i="",o=t;n>o;o++)i+=N(e[o]);return i}function p(e,t,n,r){r||(W("boolean"==typeof n,"missing or invalid endian"),W(void 0!==t&&null!==t,"missing offset"),W(e.length>t+1,"Trying to read beyond buffer length"));var i=e.length;if(!(t>=i)){var o;return n?(o=e[t],i>t+1&&(o|=e[t+1]<<8)):(o=e[t]<<8,i>t+1&&(o|=e[t+1])),o}}function g(e,t,n,r){r||(W("boolean"==typeof n,"missing or invalid endian"),W(void 0!==t&&null!==t,"missing offset"),W(e.length>t+3,"Trying to read beyond buffer length"));var i=e.length;if(!(t>=i)){var o;return n?(i>t+2&&(o=e[t+2]<<16),i>t+1&&(o|=e[t+1]<<8),o|=e[t],i>t+3&&(o+=e[t+3]<<24>>>0)):(i>t+1&&(o=e[t+1]<<16),i>t+2&&(o|=e[t+2]<<8),i>t+3&&(o|=e[t+3]),o+=e[t]<<24>>>0),o}}function b(e,t,n,r){r||(W("boolean"==typeof n,"missing or invalid endian"),W(void 0!==t&&null!==t,"missing offset"),W(e.length>t+1,"Trying to read beyond buffer length"));var i=e.length;if(!(t>=i)){var o=p(e,t,n,!0),s=32768&o;return s?-1*(65535-o+1):o}}function m(e,t,n,r){r||(W("boolean"==typeof n,"missing or invalid endian"),W(void 0!==t&&null!==t,"missing offset"),W(e.length>t+3,"Trying to read beyond buffer length"));var i=e.length;if(!(t>=i)){var o=g(e,t,n,!0),s=2147483648&o;return s?-1*(4294967295-o+1):o}}function y(e,t,n,r){return r||(W("boolean"==typeof n,"missing or invalid endian"),W(e.length>t+3,"Trying to read beyond buffer length")),Y.read(e,t,n,23,4)}function v(e,t,n,r){return r||(W("boolean"==typeof n,"missing or invalid endian"),W(e.length>t+7,"Trying to read beyond buffer length")),Y.read(e,t,n,52,8)}function w(e,t,n,r,i){i||(W(void 0!==t&&null!==t,"missing value"),W("boolean"==typeof r,"missing or invalid endian"),W(void 0!==n&&null!==n,"missing offset"),W(e.length>n+1,"trying to write beyond buffer length"),U(t,65535));var o=e.length;if(!(n>=o))for(var s=0,a=Math.min(o-n,2);a>s;s++)e[n+s]=(t&255<<8*(r?s:1-s))>>>8*(r?s:1-s)}function E(e,t,n,r,i){i||(W(void 0!==t&&null!==t,"missing value"),W("boolean"==typeof r,"missing or invalid endian"),W(void 0!==n&&null!==n,"missing offset"),W(e.length>n+3,"trying to write beyond buffer length"),U(t,4294967295));var o=e.length;if(!(n>=o))for(var s=0,a=Math.min(o-n,4);a>s;s++)e[n+s]=255&t>>>8*(r?s:3-s)}function _(e,t,n,r,i){i||(W(void 0!==t&&null!==t,"missing value"),W("boolean"==typeof r,"missing or invalid endian"),W(void 0!==n&&null!==n,"missing offset"),W(e.length>n+1,"Trying to write beyond buffer length"),P(t,32767,-32768));var o=e.length;n>=o||(t>=0?w(e,t,n,r,i):w(e,65535+t+1,n,r,i))}function k(e,t,n,r,i){i||(W(void 0!==t&&null!==t,"missing value"),W("boolean"==typeof r,"missing or invalid endian"),W(void 0!==n&&null!==n,"missing offset"),W(e.length>n+3,"Trying to write beyond buffer length"),P(t,2147483647,-2147483648));var o=e.length;n>=o||(t>=0?E(e,t,n,r,i):E(e,4294967295+t+1,n,r,i))}function S(e,t,n,r,i){i||(W(void 0!==t&&null!==t,"missing value"),W("boolean"==typeof r,"missing or invalid endian"),W(void 0!==n&&null!==n,"missing offset"),W(e.length>n+3,"Trying to write beyond buffer length"),F(t,3.4028234663852886e38,-3.4028234663852886e38));var o=e.length;n>=o||Y.write(e,t,n,r,23,4)}function x(e,t,n,r,i){i||(W(void 0!==t&&null!==t,"missing value"),W("boolean"==typeof r,"missing or invalid endian"),W(void 0!==n&&null!==n,"missing offset"),W(e.length>n+7,"Trying to write beyond buffer length"),F(t,1.7976931348623157e308,-1.7976931348623157e308));var o=e.length;n>=o||Y.write(e,t,n,r,52,8)}function j(e){return e.trim?e.trim():e.replace(/^\s+|\s+$/g,"")}function T(e){return e._isBuffer=!0,e._get=e.get,e._set=e.set,e.get=H.get,e.set=H.set,e.write=H.write,e.toString=H.toString,e.toLocaleString=H.toString,e.toJSON=H.toJSON,e.copy=H.copy,e.slice=H.slice,e.readUInt8=H.readUInt8,e.readUInt16LE=H.readUInt16LE,e.readUInt16BE=H.readUInt16BE,e.readUInt32LE=H.readUInt32LE,e.readUInt32BE=H.readUInt32BE,e.readInt8=H.readInt8,e.readInt16LE=H.readInt16LE,e.readInt16BE=H.readInt16BE,e.readInt32LE=H.readInt32LE,e.readInt32BE=H.readInt32BE,e.readFloatLE=H.readFloatLE,e.readFloatBE=H.readFloatBE,e.readDoubleLE=H.readDoubleLE,e.readDoubleBE=H.readDoubleBE,e.writeUInt8=H.writeUInt8,e.writeUInt16LE=H.writeUInt16LE,e.writeUInt16BE=H.writeUInt16BE,e.writeUInt32LE=H.writeUInt32LE,e.writeUInt32BE=H.writeUInt32BE,e.writeInt8=H.writeInt8,e.writeInt16LE=H.writeInt16LE,e.writeInt16BE=H.writeInt16BE,e.writeInt32LE=H.writeInt32LE,e.writeInt32BE=H.writeInt32BE,e.writeFloatLE=H.writeFloatLE,e.writeFloatBE=H.writeFloatBE,e.writeDoubleLE=H.writeDoubleLE,e.writeDoubleBE=H.writeDoubleBE,e.fill=H.fill,e.inspect=H.inspect,e.toArrayBuffer=H.toArrayBuffer,e}function O(e,t,n){return"number"!=typeof e?n:(e=~~e,e>=t?t:e>=0?e:(e+=t,e>=0?e:0))}function A(e){return e=~~Math.ceil(+e),0>e?0:e}function L(e){return(Array.isArray||function(e){return"[object Array]"===Object.prototype.toString.call(e)})(e)}function R(e){return L(e)||r.isBuffer(e)||e&&"object"==typeof e&&"number"==typeof e.length}function N(e){return 16>e?"0"+e.toString(16):e.toString(16)}function M(e){for(var t=[],n=0;e.length>n;n++){var r=e.charCodeAt(n);if(127>=r)t.push(e.charCodeAt(n));else{var i=n;r>=55296&&57343>=r&&n++;for(var o=encodeURIComponent(e.slice(i,n+1)).substr(1).split("%"),s=0;o.length>s;s++)t.push(parseInt(o[s],16))}}return t}function I(e){for(var t=[],n=0;e.length>n;n++)t.push(255&e.charCodeAt(n));return t}function B(e){return z.toByteArray(e)}function D(e,t,n,r){for(var i=0;r>i&&!(i+n>=t.length||i>=e.length);i++)t[i+n]=e[i];return i}function C(e){try{return decodeURIComponent(e)}catch(t){return String.fromCharCode(65533)}}function U(e,t){W("number"==typeof e,"cannot write a non-number as a number"),W(e>=0,"specified a negative value for writing an unsigned value"),W(t>=e,"value is larger than maximum value for type"),W(Math.floor(e)===e,"value has a fractional component")}function P(e,t,n){W("number"==typeof e,"cannot write a non-number as a number"),W(t>=e,"value larger than maximum allowed value"),W(e>=n,"value smaller than minimum allowed value"),W(Math.floor(e)===e,"value has a fractional component")}function F(e,t,n){W("number"==typeof e,"cannot write a non-number as a number"),W(t>=e,"value larger than maximum allowed value"),W(e>=n,"value smaller than minimum allowed value")}function W(e,t){if(!e)throw Error(t||"Failed assertion")}var z=e("base64-js"),Y=e("ieee754");n.Buffer=r,n.SlowBuffer=r,n.INSPECT_MAX_BYTES=50,r.poolSize=8192,r._useTypedArrays=function(){if("undefined"==typeof Uint8Array||"undefined"==typeof ArrayBuffer)return!1;try{var e=new Uint8Array(0);return e.foo=function(){return 42},42===e.foo()&&"function"==typeof e.subarray}catch(t){return!1}}(),r.isEncoding=function(e){switch((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}},r.isBuffer=function(e){return!(null===e||void 0===e||!e._isBuffer)},r.byteLength=function(e,t){var n;switch(e+="",t||"utf8"){case"hex":n=e.length/2;break;case"utf8":case"utf-8":n=M(e).length;break;case"ascii":case"binary":case"raw":n=e.length;break;case"base64":n=B(e).length;break;case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":n=2*e.length;break;default:throw Error("Unknown encoding")}return n},r.concat=function(e,t){if(W(L(e),"Usage: Buffer.concat(list, [totalLength])\nlist should be an Array."),0===e.length)return new r(0);if(1===e.length)return e[0];var n;if("number"!=typeof t)for(t=0,n=0;e.length>n;n++)t+=e[n].length;var i=new r(t),o=0;for(n=0;e.length>n;n++){var s=e[n];s.copy(i,o),o+=s.length}return i},r.prototype.write=function(e,t,n,r){if(isFinite(t))isFinite(n)||(r=n,n=void 0);else{var f=r;r=t,t=n,n=f}t=Number(t)||0;var c=this.length-t;switch(n?(n=Number(n),n>c&&(n=c)):n=c,r=((r||"utf8")+"").toLowerCase()){case"hex":return i(this,e,t,n);case"utf8":case"utf-8":case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return o(this,e,t,n);case"ascii":return s(this,e,t,n);case"binary":return a(this,e,t,n);case"base64":return u(this,e,t,n);default:throw Error("Unknown encoding")}},r.prototype.toString=function(e,t,n){var r=this;if(e=((e||"utf8")+"").toLowerCase(),t=Number(t)||0,n=void 0!==n?Number(n):n=r.length,n===t)return"";switch(e){case"hex":return d(r,t,n);case"utf8":case"utf-8":case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return c(r,t,n);case"ascii":return l(r,t,n);case"binary":return h(r,t,n);case"base64":return f(r,t,n);default:throw Error("Unknown encoding")}},r.prototype.toJSON=function(){return{type:"Buffer",data:Array.prototype.slice.call(this._arr||this,0)}},r.prototype.copy=function(e,t,n,r){var i=this;if(n||(n=0),r||0===r||(r=this.length),t||(t=0),r!==n&&0!==e.length&&0!==i.length){W(r>=n,"sourceEnd < sourceStart"),W(t>=0&&e.length>t,"targetStart out of bounds"),W(n>=0&&i.length>n,"sourceStart out of bounds"),W(r>=0&&i.length>=r,"sourceEnd out of bounds"),r>this.length&&(r=this.length),r-n>e.length-t&&(r=e.length-t+n);for(var o=0;r-n>o;o++)e[o+t]=this[o+n]}},r.prototype.slice=function(e,t){var n=this.length;if(e=O(e,n,0),t=O(t,n,n),r._useTypedArrays)return T(this.subarray(e,t));for(var i=t-e,o=new r(i,void 0,!0),s=0;i>s;s++)o[s]=this[s+e];return o},r.prototype.get=function(e){return console.log(".get() is deprecated. Access using array indexes instead."),this.readUInt8(e)},r.prototype.set=function(e,t){return console.log(".set() is deprecated. Access using array indexes instead."),this.writeUInt8(e,t)},r.prototype.readUInt8=function(e,t){return t||(W(void 0!==e&&null!==e,"missing offset"),W(this.length>e,"Trying to read beyond buffer length")),e>=this.length?void 0:this[e]},r.prototype.readUInt16LE=function(e,t){return p(this,e,!0,t)},r.prototype.readUInt16BE=function(e,t){return p(this,e,!1,t)},r.prototype.readUInt32LE=function(e,t){return g(this,e,!0,t)},r.prototype.readUInt32BE=function(e,t){return g(this,e,!1,t)},r.prototype.readInt8=function(e,t){if(t||(W(void 0!==e&&null!==e,"missing offset"),W(this.length>e,"Trying to read beyond buffer length")),!(e>=this.length)){var n=128&this[e];return n?-1*(255-this[e]+1):this[e]}},r.prototype.readInt16LE=function(e,t){return b(this,e,!0,t)},r.prototype.readInt16BE=function(e,t){return b(this,e,!1,t)},r.prototype.readInt32LE=function(e,t){return m(this,e,!0,t)},r.prototype.readInt32BE=function(e,t){return m(this,e,!1,t)},r.prototype.readFloatLE=function(e,t){return y(this,e,!0,t)},r.prototype.readFloatBE=function(e,t){return y(this,e,!1,t)},r.prototype.readDoubleLE=function(e,t){return v(this,e,!0,t)},r.prototype.readDoubleBE=function(e,t){return v(this,e,!1,t)},r.prototype.writeUInt8=function(e,t,n){n||(W(void 0!==e&&null!==e,"missing value"),W(void 0!==t&&null!==t,"missing offset"),W(this.length>t,"trying to write beyond buffer length"),U(e,255)),t>=this.length||(this[t]=e)},r.prototype.writeUInt16LE=function(e,t,n){w(this,e,t,!0,n)},r.prototype.writeUInt16BE=function(e,t,n){w(this,e,t,!1,n)},r.prototype.writeUInt32LE=function(e,t,n){E(this,e,t,!0,n)},r.prototype.writeUInt32BE=function(e,t,n){E(this,e,t,!1,n)},r.prototype.writeInt8=function(e,t,n){n||(W(void 0!==e&&null!==e,"missing value"),W(void 0!==t&&null!==t,"missing offset"),W(this.length>t,"Trying to write beyond buffer length"),P(e,127,-128)),t>=this.length||(e>=0?this.writeUInt8(e,t,n):this.writeUInt8(255+e+1,t,n))},r.prototype.writeInt16LE=function(e,t,n){_(this,e,t,!0,n)},r.prototype.writeInt16BE=function(e,t,n){_(this,e,t,!1,n)},r.prototype.writeInt32LE=function(e,t,n){k(this,e,t,!0,n)},r.prototype.writeInt32BE=function(e,t,n){k(this,e,t,!1,n)},r.prototype.writeFloatLE=function(e,t,n){S(this,e,t,!0,n)},r.prototype.writeFloatBE=function(e,t,n){S(this,e,t,!1,n)},r.prototype.writeDoubleLE=function(e,t,n){x(this,e,t,!0,n)},r.prototype.writeDoubleBE=function(e,t,n){x(this,e,t,!1,n)},r.prototype.fill=function(e,t,n){if(e||(e=0),t||(t=0),n||(n=this.length),"string"==typeof e&&(e=e.charCodeAt(0)),W("number"==typeof e&&!isNaN(e),"value is not a number"),W(n>=t,"end < start"),n!==t&&0!==this.length){W(t>=0&&this.length>t,"start out of bounds"),W(n>=0&&this.length>=n,"end out of bounds");for(var r=t;n>r;r++)this[r]=e}},r.prototype.inspect=function(){for(var e=[],t=this.length,r=0;t>r;r++)if(e[r]=N(this[r]),r===n.INSPECT_MAX_BYTES){e[r+1]="...";break}return"<Buffer "+e.join(" ")+">"},r.prototype.toArrayBuffer=function(){if("function"==typeof Uint8Array){if(r._useTypedArrays)return new r(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 Error("Buffer.toArrayBuffer not supported in this browser")};var H=r.prototype},{"base64-js":6,ieee754:7}],6:[function(e,t){var n="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/";(function(){"use strict";function e(e){var t=e.charCodeAt(0);return t===s?62:t===a?63:u>t?-1:u+10>t?t-u+26+26:c+26>t?t-c:f+26>t?t-f+26:void 0}function r(t){function n(e){f[l++]=e}var r,i,s,a,u,f;if(t.length%4>0)throw Error("Invalid string. Length must be a multiple of 4");var c=t.length;u="="===t.charAt(c-2)?2:"="===t.charAt(c-1)?1:0,f=new o(3*t.length/4-u),s=u>0?t.length-4:t.length;var l=0;for(r=0,i=0;s>r;r+=4,i+=3)a=e(t.charAt(r))<<18|e(t.charAt(r+1))<<12|e(t.charAt(r+2))<<6|e(t.charAt(r+3)),n((16711680&a)>>16),n((65280&a)>>8),n(255&a);return 2===u?(a=e(t.charAt(r))<<2|e(t.charAt(r+1))>>4,n(255&a)):1===u&&(a=e(t.charAt(r))<<10|e(t.charAt(r+1))<<4|e(t.charAt(r+2))>>2,n(255&a>>8),n(255&a)),f}function i(e){function t(e){return n.charAt(e)}function r(e){return t(63&e>>18)+t(63&e>>12)+t(63&e>>6)+t(63&e)}var i,o,s,a=e.length%3,u="";for(i=0,s=e.length-a;s>i;i+=3)o=(e[i]<<16)+(e[i+1]<<8)+e[i+2],u+=r(o);switch(a){case 1:o=e[e.length-1],u+=t(o>>2),u+=t(63&o<<4),u+="==";break;case 2:o=(e[e.length-2]<<8)+e[e.length-1],u+=t(o>>10),u+=t(63&o>>4),u+=t(63&o<<2),u+="="}return u}var o="undefined"!=typeof Uint8Array?Uint8Array:Array;"0".charCodeAt(0);var s="+".charCodeAt(0),a="/".charCodeAt(0),u="0".charCodeAt(0),f="a".charCodeAt(0),c="A".charCodeAt(0);t.exports.toByteArray=r,t.exports.fromByteArray=i})()},{}],7:[function(e,t,n){n.read=function(e,t,n,r,i){var o,s,a=8*i-r-1,u=(1<<a)-1,f=u>>1,c=-7,l=n?i-1:0,h=n?-1:1,d=e[t+l];for(l+=h,o=d&(1<<-c)-1,d>>=-c,c+=a;c>0;o=256*o+e[t+l],l+=h,c-=8);for(s=o&(1<<-c)-1,o>>=-c,c+=r;c>0;s=256*s+e[t+l],l+=h,c-=8);if(0===o)o=1-f;else{if(o===u)return s?0/0:1/0*(d?-1:1);s+=Math.pow(2,r),o-=f}return(d?-1:1)*s*Math.pow(2,o-r)},n.write=function(e,t,n,r,i,o){var s,a,u,f=8*o-i-1,c=(1<<f)-1,l=c>>1,h=23===i?Math.pow(2,-24)-Math.pow(2,-77):0,d=r?0:o-1,p=r?1:-1,g=0>t||0===t&&0>1/t?1:0;for(t=Math.abs(t),isNaN(t)||1/0===t?(a=isNaN(t)?1:0,s=c):(s=Math.floor(Math.log(t)/Math.LN2),1>t*(u=Math.pow(2,-s))&&(s--,u*=2),t+=s+l>=1?h/u:h*Math.pow(2,1-l),t*u>=2&&(s++,u/=2),s+l>=c?(a=0,s=c):s+l>=1?(a=(t*u-1)*Math.pow(2,i),s+=l):(a=t*Math.pow(2,l-1)*Math.pow(2,i),s=0));i>=8;e[n+d]=255&a,d+=p,a/=256,i-=8);for(s=s<<i|a,f+=i;f>0;e[n+d]=255&s,d+=p,s/=256,f-=8);e[n+d-p]|=128*g}},{}],8:[function(e,t,n){(function(e){function t(e,t){for(var n=0,r=e.length-1;r>=0;r--){var i=e[r];"."===i?e.splice(r,1):".."===i?(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;e.length>r;r++)t(e[r],r,e)&&n.push(e[r]);return n}var i=/^(\/?|)([\s\S]*?)((?:\.{1,2}|[^\/]+?|)(\.[^.\/]*|))(?:[\/]*)$/,o=function(e){return i.exec(e).slice(1)};n.resolve=function(){for(var n="",i=!1,o=arguments.length-1;o>=-1&&!i;o--){var s=o>=0?arguments[o]:e.cwd();if("string"!=typeof s)throw new TypeError("Arguments to path.resolve must be strings");s&&(n=s+"/"+n,i="/"===s.charAt(0))}return n=t(r(n.split("/"),function(e){return!!e}),!i).join("/"),(i?"/":"")+n||"."},n.normalize=function(e){var i=n.isAbsolute(e),o="/"===s(e,-1);return e=t(r(e.split("/"),function(e){return!!e}),!i).join("/"),e||i||(e="."),e&&o&&(e+="/"),(i?"/":"")+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){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;e.length>t&&""===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 i=r(e.split("/")),o=r(t.split("/")),s=Math.min(i.length,o.length),a=s,u=0;s>u;u++)if(i[u]!==o[u]){a=u;break}for(var f=[],u=a;i.length>u;u++)f.push("..");return f=f.concat(o.slice(a)),f.join("/")},n.sep="/",n.delimiter=":",n.dirname=function(e){var t=o(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=o(e)[2];return t&&n.substr(-1*t.length)===t&&(n=n.substr(0,n.length-t.length)),n},n.extname=function(e){return o(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("/home/admin/browserify-cdn/node_modules/browserify/node_modules/insert-module-globals/node_modules/process/browser.js"))},{"/home/admin/browserify-cdn/node_modules/browserify/node_modules/insert-module-globals/node_modules/process/browser.js":4}],9:[function(e,t){function n(e){return this instanceof n?(s.call(this,e),a.call(this,e),e&&e.readable===!1&&(this.readable=!1),e&&e.writable===!1&&(this.writable=!1),this.allowHalfOpen=!0,e&&e.allowHalfOpen===!1&&(this.allowHalfOpen=!1),this.once("end",r),void 0):new n(e)}function r(){if(!this.allowHalfOpen&&!this._writableState.ended){var e=this;o(function(){e.end()})}}t.exports=n;var i=e("inherits"),o=e("process/browser.js").nextTick,s=e("./readable.js"),a=e("./writable.js");i(n,s),n.prototype.write=a.prototype.write,n.prototype.end=a.prototype.end,n.prototype._write=a.prototype._write},{"./readable.js":13,"./writable.js":15,inherits:3,"process/browser.js":11}],10:[function(e,t){function n(){r.call(this)}t.exports=n;var r=e("events").EventEmitter,i=e("inherits");i(n,r),n.Readable=e("./readable.js"),n.Writable=e("./writable.js"),n.Duplex=e("./duplex.js"),n.Transform=e("./transform.js"),n.PassThrough=e("./passthrough.js"),n.Stream=n,n.prototype.pipe=function(e,t){function n(t){e.writable&&!1===e.write(t)&&f.pause&&f.pause()}function i(){f.readable&&f.resume&&f.resume()}function o(){c||(c=!0,e.end())}function s(){c||(c=!0,"function"==typeof e.destroy&&e.destroy())}function a(e){if(u(),0===r.listenerCount(this,"error"))throw e}function u(){f.removeListener("data",n),e.removeListener("drain",i),f.removeListener("end",o),f.removeListener("close",s),f.removeListener("error",a),e.removeListener("error",a),f.removeListener("end",u),f.removeListener("close",u),e.removeListener("close",u)}var f=this;f.on("data",n),e.on("drain",i),e._isStdio||t&&t.end===!1||(f.on("end",o),f.on("close",s));var c=!1;return f.on("error",a),e.on("error",a),f.on("end",u),f.on("close",u),e.on("close",u),e.emit("pipe",f),e}},{"./duplex.js":9,"./passthrough.js":12,"./readable.js":13,"./transform.js":14,"./writable.js":15,events:2,inherits:3}],11:[function(e,t){t.exports=e(4)},{}],12:[function(e,t){function n(e){return this instanceof n?(r.call(this,e),void 0):new n(e)}t.exports=n;var r=e("./transform.js"),i=e("inherits");i(n,r),n.prototype._transform=function(e,t,n){n(null,e)}},{"./transform.js":14,inherits:3}],13:[function(e,t){(function(n){function r(t){t=t||{};var n=t.highWaterMark;this.highWaterMark=n||0===n?n:16384,this.highWaterMark=~~this.highWaterMark,this.buffer=[],this.length=0,this.pipes=null,this.pipesCount=0,this.flowing=!1,this.ended=!1,this.endEmitted=!1,this.reading=!1,this.calledRead=!1,this.sync=!0,this.needReadable=!1,this.emittedReadable=!1,this.readableListening=!1,this.objectMode=!!t.objectMode,this.defaultEncoding=t.defaultEncoding||"utf8",this.ranOut=!1,this.awaitDrain=0,this.readingMore=!1,this.decoder=null,this.encoding=null,t.encoding&&(k||(k=e("string_decoder").StringDecoder),this.decoder=new k(t.encoding),this.encoding=t.encoding)}function i(e){return this instanceof i?(this._readableState=new r(e,this),this.readable=!0,x.call(this),void 0):new i(e)}function o(e,t,n,r,i){var o=f(t,n);if(o)e.emit("error",o);else if(null===n||void 0===n)t.reading=!1,t.ended||c(e,t);else if(t.objectMode||n&&n.length>0)if(t.ended&&!i){var a=Error("stream.push() after EOF");e.emit("error",a)}else if(t.endEmitted&&i){var a=Error("stream.unshift() after end event");e.emit("error",a)}else!t.decoder||i||r||(n=t.decoder.write(n)),t.length+=t.objectMode?1:n.length,i?t.buffer.unshift(n):(t.reading=!1,t.buffer.push(n)),t.needReadable&&l(e),d(e,t);else i||(t.reading=!1);return s(t)}function s(e){return!e.ended&&(e.needReadable||e.length<e.highWaterMark||0===e.length)}function a(e){if(e>=A)e=A;else{e--;for(var t=1;32>t;t<<=1)e|=e>>t;e++}return e}function u(e,t){return 0===t.length&&t.ended?0:t.objectMode?0===e?0:1:isNaN(e)||null===e?t.flowing&&t.buffer.length?t.buffer[0].length:t.length:0>=e?0:(e>t.highWaterMark&&(t.highWaterMark=a(e)),e>t.length?t.ended?t.length:(t.needReadable=!0,0):e)}function f(e,t){var n=null;return j.isBuffer(t)||"string"==typeof t||null===t||void 0===t||e.objectMode||n||(n=new TypeError("Invalid non-string/buffer chunk")),n}function c(e,t){if(t.decoder&&!t.ended){var n=t.decoder.end();n&&n.length&&(t.buffer.push(n),t.length+=t.objectMode?1:n.length)}t.ended=!0,t.length>0?l(e):w(e)}function l(e){var t=e._readableState;t.needReadable=!1,t.emittedReadable||(t.emittedReadable=!0,t.sync?T(function(){h(e)}):h(e))}function h(e){e.emit("readable")}function d(e,t){t.readingMore||(t.readingMore=!0,T(function(){p(e,t)}))}function p(e,t){for(var n=t.length;!t.reading&&!t.flowing&&!t.ended&&t.length<t.highWaterMark&&(e.read(0),n!==t.length);)n=t.length;t.readingMore=!1}function g(e){return function(){var t=e._readableState;t.awaitDrain--,0===t.awaitDrain&&b(e)}}function b(e){function t(e){var t=e.write(n);!1===t&&r.awaitDrain++}var n,r=e._readableState;for(r.awaitDrain=0;r.pipesCount&&null!==(n=e.read());)if(1===r.pipesCount?t(r.pipes,0,null):E(r.pipes,t),e.emit("data",n),r.awaitDrain>0)return;return 0===r.pipesCount?(r.flowing=!1,S.listenerCount(e,"data")>0&&y(e),void 0):(r.ranOut=!0,void 0)}function m(){this._readableState.ranOut&&(this._readableState.ranOut=!1,b(this))}function y(e,t){var n=e._readableState;if(n.flowing)throw Error("Cannot switch to old mode now.");var r=t||!1,i=!1;e.readable=!0,e.pipe=x.prototype.pipe,e.on=e.addListener=x.prototype.on,e.on("readable",function(){i=!0;for(var t;!r&&null!==(t=e.read());)e.emit("data",t);null===t&&(i=!1,e._readableState.needReadable=!0)}),e.pause=function(){r=!0,this.emit("pause")},e.resume=function(){r=!1,i?T(function(){e.emit("readable")}):this.read(0),this.emit("resume")},e.emit("readable")}function v(e,t){var n,r=t.buffer,i=t.length,o=!!t.decoder,s=!!t.objectMode;if(0===r.length)return null;if(0===i)n=null;else if(s)n=r.shift();else if(!e||e>=i)n=o?r.join(""):j.concat(r,i),r.length=0;else if(r[0].length>e){var a=r[0];n=a.slice(0,e),r[0]=a.slice(e)}else if(e===r[0].length)n=r.shift();else{n=o?"":new j(e);for(var u=0,f=0,c=r.length;c>f&&e>u;f++){var a=r[0],l=Math.min(e-u,a.length);o?n+=a.slice(0,l):a.copy(n,u,0,l),a.length>l?r[0]=a.slice(l):r.shift(),u+=l}}return n}function w(e){var t=e._readableState;if(t.length>0)throw Error("endReadable called on non-empty stream");!t.endEmitted&&t.calledRead&&(t.ended=!0,T(function(){t.endEmitted||0!==t.length||(t.endEmitted=!0,e.readable=!1,e.emit("end"))}))}function E(e,t){for(var n=0,r=e.length;r>n;n++)t(e[n],n)}function _(e,t){for(var n=0,r=e.length;r>n;n++)if(e[n]===t)return n;return-1}t.exports=i,i.ReadableState=r;var k,S=e("events").EventEmitter,x=e("./index.js"),j=e("buffer").Buffer,T=e("process/browser.js").nextTick,O=e("inherits");O(i,x),i.prototype.push=function(e,t){var n=this._readableState;return"string"!=typeof e||n.objectMode||(t=t||n.defaultEncoding,t!==n.encoding&&(e=new j(e,t),t="")),o(this,n,e,t,!1)},i.prototype.unshift=function(e){var t=this._readableState;return o(this,t,e,"",!0)},i.prototype.setEncoding=function(t){k||(k=e("string_decoder").StringDecoder),this._readableState.decoder=new k(t),this._readableState.encoding=t};var A=8388608;i.prototype.read=function(e){var t=this._readableState;t.calledRead=!0;var n=e;if(("number"!=typeof e||e>0)&&(t.emittedReadable=!1),0===e&&t.needReadable&&(t.length>=t.highWaterMark||t.ended))return l(this),null;if(e=u(e,t),0===e&&t.ended)return 0===t.length&&w(this),null;var r=t.needReadable;t.length-e<=t.highWaterMark&&(r=!0),(t.ended||t.reading)&&(r=!1),r&&(t.reading=!0,t.sync=!0,0===t.length&&(t.needReadable=!0),this._read(t.highWaterMark),t.sync=!1),r&&!t.reading&&(e=u(n,t));var i;return i=e>0?v(e,t):null,null===i&&(t.needReadable=!0,e=0),t.length-=e,0!==t.length||t.ended||(t.needReadable=!0),t.ended&&!t.endEmitted&&0===t.length&&w(this),i},i.prototype._read=function(){this.emit("error",Error("not implemented"))},i.prototype.pipe=function(e,t){function r(e){e===c&&o()}function i(){e.end()}function o(){e.removeListener("close",a),e.removeListener("finish",u),e.removeListener("drain",p),e.removeListener("error",s),e.removeListener("unpipe",r),c.removeListener("end",i),c.removeListener("end",o),(!e._writableState||e._writableState.needDrain)&&p()}function s(t){f(),0===y&&0===S.listenerCount(e,"error")&&e.emit("error",t)}function a(){e.removeListener("finish",u),f()}function u(){e.removeListener("close",a),f()}function f(){c.unpipe(e)}var c=this,l=this._readableState;switch(l.pipesCount){case 0:l.pipes=e;break;case 1:l.pipes=[l.pipes,e];
break;default:l.pipes.push(e)}l.pipesCount+=1;var h=(!t||t.end!==!1)&&e!==n.stdout&&e!==n.stderr,d=h?i:o;l.endEmitted?T(d):c.once("end",d),e.on("unpipe",r);var p=g(c);e.on("drain",p);var y=S.listenerCount(e,"error");return e.once("error",s),e.once("close",a),e.once("finish",u),e.emit("pipe",c),l.flowing||(this.on("readable",m),l.flowing=!0,T(function(){b(c)})),e},i.prototype.unpipe=function(e){var t=this._readableState;if(0===t.pipesCount)return this;if(1===t.pipesCount)return e&&e!==t.pipes?this:(e||(e=t.pipes),t.pipes=null,t.pipesCount=0,this.removeListener("readable",m),t.flowing=!1,e&&e.emit("unpipe",this),this);if(!e){var n=t.pipes,r=t.pipesCount;t.pipes=null,t.pipesCount=0,this.removeListener("readable",m),t.flowing=!1;for(var i=0;r>i;i++)n[i].emit("unpipe",this);return this}var i=_(t.pipes,e);return-1===i?this:(t.pipes.splice(i,1),t.pipesCount-=1,1===t.pipesCount&&(t.pipes=t.pipes[0]),e.emit("unpipe",this),this)},i.prototype.on=function(e,t){var n=x.prototype.on.call(this,e,t);if("data"!==e||this._readableState.flowing||y(this),"readable"===e&&this.readable){var r=this._readableState;r.readableListening||(r.readableListening=!0,r.emittedReadable=!1,r.needReadable=!0,r.reading?r.length&&l(this,r):this.read(0))}return n},i.prototype.addListener=i.prototype.on,i.prototype.resume=function(){y(this),this.read(0),this.emit("resume")},i.prototype.pause=function(){y(this,!0),this.emit("pause")},i.prototype.wrap=function(e){var t=this._readableState,n=!1,r=this;e.on("end",function(){if(t.decoder&&!t.ended){var e=t.decoder.end();e&&e.length&&r.push(e)}r.push(null)}),e.on("data",function(i){if(t.decoder&&(i=t.decoder.write(i)),i&&(t.objectMode||i.length)){var o=r.push(i);o||(n=!0,e.pause())}});for(var i in e)"function"==typeof e[i]&&this[i]===void 0&&(this[i]=function(t){return function(){return e[t].apply(e,arguments)}}(i));var o=["error","close","destroy","pause","resume"];return E(o,function(t){e.on(t,function(e){return r.emit.apply(r,t,e)})}),r._read=function(){n&&(n=!1,e.resume())},r},i._fromList=v}).call(this,e("/home/admin/browserify-cdn/node_modules/browserify/node_modules/insert-module-globals/node_modules/process/browser.js"))},{"./index.js":10,"/home/admin/browserify-cdn/node_modules/browserify/node_modules/insert-module-globals/node_modules/process/browser.js":4,buffer:5,events:2,inherits:3,"process/browser.js":11,string_decoder:16}],14:[function(e,t){function n(e,t){this.afterTransform=function(e,n){return r(t,e,n)},this.needTransform=!1,this.transforming=!1,this.writecb=null,this.writechunk=null}function r(e,t,n){var r=e._transformState;r.transforming=!1;var i=r.writecb;if(!i)return e.emit("error",Error("no writecb in Transform class"));r.writechunk=null,r.writecb=null,null!==n&&void 0!==n&&e.push(n),i&&i(t);var o=e._readableState;o.reading=!1,(o.needReadable||o.length<o.highWaterMark)&&e._read(o.highWaterMark)}function i(e){if(!(this instanceof i))return new i(e);s.call(this,e),this._transformState=new n(e,this);var t=this;this._readableState.needReadable=!0,this._readableState.sync=!1,this.once("finish",function(){"function"==typeof this._flush?this._flush(function(e){o(t,e)}):o(t)})}function o(e,t){if(t)return e.emit("error",t);var n=e._writableState;e._readableState;var r=e._transformState;if(n.length)throw Error("calling transform done when ws.length != 0");if(r.transforming)throw Error("calling transform done when still transforming");return e.push(null)}t.exports=i;var s=e("./duplex.js"),a=e("inherits");a(i,s),i.prototype.push=function(e,t){return this._transformState.needTransform=!1,s.prototype.push.call(this,e,t)},i.prototype._transform=function(){throw Error("not implemented")},i.prototype._write=function(e,t,n){var r=this._transformState;if(r.writecb=n,r.writechunk=e,r.writeencoding=t,!r.transforming){var i=this._readableState;(r.needTransform||i.needReadable||i.length<i.highWaterMark)&&this._read(i.highWaterMark)}},i.prototype._read=function(){var e=this._transformState;e.writechunk&&e.writecb&&!e.transforming?(e.transforming=!0,this._transform(e.writechunk,e.writeencoding,e.afterTransform)):e.needTransform=!0}},{"./duplex.js":9,inherits:3}],15:[function(e,t){function n(e,t,n){this.chunk=e,this.encoding=t,this.callback=n}function r(e,t){e=e||{};var n=e.highWaterMark;this.highWaterMark=n||0===n?n:16384,this.objectMode=!!e.objectMode,this.highWaterMark=~~this.highWaterMark,this.needDrain=!1,this.ending=!1,this.ended=!1,this.finished=!1;var r=e.decodeStrings===!1;this.decodeStrings=!r,this.defaultEncoding=e.defaultEncoding||"utf8",this.length=0,this.writing=!1,this.sync=!0,this.bufferProcessing=!1,this.onwrite=function(e){h(t,e)},this.writecb=null,this.writelen=0,this.buffer=[]}function i(e){return this instanceof i||this instanceof _.Duplex?(this._writableState=new r(e,this),this.writable=!0,_.call(this),void 0):new i(e)}function o(e,t,n){var r=Error("write after end");e.emit("error",r),k(function(){n(r)})}function s(e,t,n,r){var i=!0;if(!S.isBuffer(n)&&"string"!=typeof n&&null!==n&&void 0!==n&&!t.objectMode){var o=new TypeError("Invalid non-string/buffer chunk");e.emit("error",o),k(function(){r(o)}),i=!1}return i}function a(e,t,n){return e.objectMode||e.decodeStrings===!1||"string"!=typeof t||(t=new S(t,n)),t}function u(e,t,r,i,o){r=a(t,r,i);var s=t.objectMode?1:r.length;t.length+=s;var u=t.length<t.highWaterMark;return t.needDrain=!u,t.writing?t.buffer.push(new n(r,i,o)):f(e,t,s,r,i,o),u}function f(e,t,n,r,i,o){t.writelen=n,t.writecb=o,t.writing=!0,t.sync=!0,e._write(r,i,t.onwrite),t.sync=!1}function c(e,t,n,r,i){n?k(function(){i(r)}):i(r),e.emit("error",r)}function l(e){e.writing=!1,e.writecb=null,e.length-=e.writelen,e.writelen=0}function h(e,t){var n=e._writableState,r=n.sync,i=n.writecb;if(l(n),t)c(e,n,r,t,i);else{var o=b(e,n);o||n.bufferProcessing||!n.buffer.length||g(e,n),r?k(function(){d(e,n,o,i)}):d(e,n,o,i)}}function d(e,t,n,r){n||p(e,t),r(),n&&m(e,t)}function p(e,t){0===t.length&&t.needDrain&&(t.needDrain=!1,e.emit("drain"))}function g(e,t){t.bufferProcessing=!0;for(var n=0;t.buffer.length>n;n++){var r=t.buffer[n],i=r.chunk,o=r.encoding,s=r.callback,a=t.objectMode?1:i.length;if(f(e,t,a,i,o,s),t.writing){n++;break}}t.bufferProcessing=!1,t.buffer.length>n?t.buffer=t.buffer.slice(n):t.buffer.length=0}function b(e,t){return t.ending&&0===t.length&&!t.finished&&!t.writing}function m(e,t){var n=b(e,t);return n&&(t.finished=!0,e.emit("finish")),n}function y(e,t,n){t.ending=!0,m(e,t),n&&(t.finished?k(n):e.once("finish",n)),t.ended=!0}t.exports=i,i.WritableState=r;var v="undefined"!=typeof Uint8Array?function(e){return e instanceof Uint8Array}:function(e){return e&&e.constructor&&"Uint8Array"===e.constructor.name},w="undefined"!=typeof ArrayBuffer?function(e){return e instanceof ArrayBuffer}:function(e){return e&&e.constructor&&"ArrayBuffer"===e.constructor.name},E=e("inherits"),_=e("./index.js"),k=e("process/browser.js").nextTick,S=e("buffer").Buffer;E(i,_),i.prototype.pipe=function(){this.emit("error",Error("Cannot pipe. Not readable."))},i.prototype.write=function(e,t,n){var r=this._writableState,i=!1;return"function"==typeof t&&(n=t,t=null),!S.isBuffer(e)&&v(e)&&(e=new S(e)),w(e)&&"undefined"!=typeof Uint8Array&&(e=new S(new Uint8Array(e))),S.isBuffer(e)?t="buffer":t||(t=r.defaultEncoding),"function"!=typeof n&&(n=function(){}),r.ended?o(this,r,n):s(this,r,e,n)&&(i=u(this,r,e,t,n)),i},i.prototype._write=function(e,t,n){n(Error("not implemented"))},i.prototype.end=function(e,t,n){var r=this._writableState;"function"==typeof e?(n=e,e=null,t=null):"function"==typeof t&&(n=t,t=null),e!==void 0&&null!==e&&this.write(e,t),r.ending||r.finished||y(this,r,n)}},{"./index.js":10,buffer:5,inherits:3,"process/browser.js":11}],16:[function(e,t,n){function r(e){if(e&&!a.isEncoding(e))throw Error("Unknown encoding: "+e)}function i(e){return e.toString(this.encoding)}function o(e){var t=this.charReceived=e.length%2;return this.charLength=t?2:0,t}function s(e){var t=this.charReceived=e.length%3;return this.charLength=t?3:0,t}var a=e("buffer").Buffer,u=n.StringDecoder=function(e){switch(this.encoding=(e||"utf8").toLowerCase().replace(/[-_]/,""),r(e),this.encoding){case"utf8":this.surrogateSize=3;break;case"ucs2":case"utf16le":this.surrogateSize=2,this.detectIncompleteChar=o;break;case"base64":this.surrogateSize=3,this.detectIncompleteChar=s;break;default:return this.write=i,void 0}this.charBuffer=new a(6),this.charReceived=0,this.charLength=0};u.prototype.write=function(e){for(var t="",n=0;this.charLength;){var r=e.length>=this.charLength-this.charReceived?this.charLength-this.charReceived:e.length;if(e.copy(this.charBuffer,this.charReceived,n,r),this.charReceived+=r-n,n=r,this.charReceived<this.charLength)return"";t=this.charBuffer.slice(0,this.charLength).toString(this.encoding);var i=t.charCodeAt(t.length-1);if(!(i>=55296&&56319>=i)){if(this.charReceived=this.charLength=0,r==e.length)return t;e=e.slice(r,e.length);break}this.charLength+=this.surrogateSize,t=""}var o=this.detectIncompleteChar(e),s=e.length;this.charLength&&(e.copy(this.charBuffer,0,e.length-o,s),this.charReceived=o,s-=o),t+=e.toString(this.encoding,0,s);var s=t.length-1,i=t.charCodeAt(s);if(i>=55296&&56319>=i){var a=this.surrogateSize;return this.charLength+=a,this.charReceived+=a,this.charBuffer.copy(this.charBuffer,a,0,a),this.charBuffer.write(t.charAt(t.length-1),this.encoding),t.substring(0,s)}return t},u.prototype.detectIncompleteChar=function(e){for(var t=e.length>=3?3:e.length;t>0;t--){var n=e[e.length-t];if(1==t&&6==n>>5){this.charLength=2;break}if(2>=t&&14==n>>4){this.charLength=3;break}if(3>=t&&30==n>>3){this.charLength=4;break}}return t},u.prototype.end=function(e){var t="";if(e&&e.length&&(t=this.write(e)),this.charReceived){var n=this.charReceived,r=this.charBuffer,i=this.encoding;t+=r.slice(0,n).toString(i)}return t}},{buffer:5}],17:[function(e,t){t.exports=function(e){return e&&"object"==typeof e&&"function"==typeof e.copy&&"function"==typeof e.fill&&"function"==typeof e.readUInt8}},{}],18:[function(e,t,n){(function(t,r){function i(e,t){var r={seen:[],stylize:s};return arguments.length>=3&&(r.depth=arguments[2]),arguments.length>=4&&(r.colors=arguments[3]),g(t)?r.showHidden=t:t&&n._extend(r,t),E(r.showHidden)&&(r.showHidden=!1),E(r.depth)&&(r.depth=2),E(r.colors)&&(r.colors=!1),E(r.customInspect)&&(r.customInspect=!0),r.colors&&(r.stylize=o),u(r,e,r.depth)}function o(e,t){var n=i.styles[t];return n?"["+i.colors[n][0]+"m"+e+"["+i.colors[n][1]+"m":e}function s(e){return e}function a(e){var t={};return e.forEach(function(e){t[e]=!0}),t}function u(e,t,r){if(e.customInspect&&t&&j(t.inspect)&&t.inspect!==n.inspect&&(!t.constructor||t.constructor.prototype!==t)){var i=t.inspect(r,e);return v(i)||(i=u(e,i,r)),i}var o=f(e,t);if(o)return o;var s=Object.keys(t),g=a(s);if(e.showHidden&&(s=Object.getOwnPropertyNames(t)),x(t)&&(s.indexOf("message")>=0||s.indexOf("description")>=0))return c(t);if(0===s.length){if(j(t)){var b=t.name?": "+t.name:"";return e.stylize("[Function"+b+"]","special")}if(_(t))return e.stylize(RegExp.prototype.toString.call(t),"regexp");if(S(t))return e.stylize(Date.prototype.toString.call(t),"date");if(x(t))return c(t)}var m="",y=!1,w=["{","}"];if(p(t)&&(y=!0,w=["[","]"]),j(t)){var E=t.name?": "+t.name:"";m=" [Function"+E+"]"}if(_(t)&&(m=" "+RegExp.prototype.toString.call(t)),S(t)&&(m=" "+Date.prototype.toUTCString.call(t)),x(t)&&(m=" "+c(t)),0===s.length&&(!y||0==t.length))return w[0]+m+w[1];if(0>r)return _(t)?e.stylize(RegExp.prototype.toString.call(t),"regexp"):e.stylize("[Object]","special");e.seen.push(t);var k;return k=y?l(e,t,r,g,s):s.map(function(n){return h(e,t,r,g,n,y)}),e.seen.pop(),d(k,m,w)}function f(e,t){if(E(t))return e.stylize("undefined","undefined");if(v(t)){var n="'"+JSON.stringify(t).replace(/^"|"$/g,"").replace(/'/g,"\\'").replace(/\\"/g,'"')+"'";return e.stylize(n,"string")}return y(t)?e.stylize(""+t,"number"):g(t)?e.stylize(""+t,"boolean"):b(t)?e.stylize("null","null"):void 0}function c(e){return"["+Error.prototype.toString.call(e)+"]"}function l(e,t,n,r,i){for(var o=[],s=0,a=t.length;a>s;++s)R(t,s+"")?o.push(h(e,t,n,r,s+"",!0)):o.push("");return i.forEach(function(i){i.match(/^\d+$/)||o.push(h(e,t,n,r,i,!0))}),o}function h(e,t,n,r,i,o){var s,a,f;if(f=Object.getOwnPropertyDescriptor(t,i)||{value:t[i]},f.get?a=f.set?e.stylize("[Getter/Setter]","special"):e.stylize("[Getter]","special"):f.set&&(a=e.stylize("[Setter]","special")),R(r,i)||(s="["+i+"]"),a||(0>e.seen.indexOf(f.value)?(a=b(n)?u(e,f.value,null):u(e,f.value,n-1),a.indexOf("\n")>-1&&(a=o?a.split("\n").map(function(e){return" "+e}).join("\n").substr(2):"\n"+a.split("\n").map(function(e){return" "+e}).join("\n"))):a=e.stylize("[Circular]","special")),E(s)){if(o&&i.match(/^\d+$/))return a;s=JSON.stringify(""+i),s.match(/^"([a-zA-Z_][a-zA-Z_0-9]*)"$/)?(s=s.substr(1,s.length-2),s=e.stylize(s,"name")):(s=s.replace(/'/g,"\\'").replace(/\\"/g,'"').replace(/(^"|"$)/g,"'"),s=e.stylize(s,"string"))}return s+": "+a}function d(e,t,n){var r=0,i=e.reduce(function(e,t){return r++,t.indexOf("\n")>=0&&r++,e+t.replace(/\u001b\[\d\d?m/g,"").length+1},0);return i>60?n[0]+(""===t?"":t+"\n ")+" "+e.join(",\n ")+" "+n[1]:n[0]+t+" "+e.join(", ")+" "+n[1]}function p(e){return Array.isArray(e)}function g(e){return"boolean"==typeof e}function b(e){return null===e}function m(e){return null==e}function y(e){return"number"==typeof e}function v(e){return"string"==typeof e}function w(e){return"symbol"==typeof e}function E(e){return void 0===e}function _(e){return k(e)&&"[object RegExp]"===O(e)}function k(e){return"object"==typeof e&&null!==e}function S(e){return k(e)&&"[object Date]"===O(e)}function x(e){return k(e)&&("[object Error]"===O(e)||e instanceof Error)}function j(e){return"function"==typeof e}function T(e){return null===e||"boolean"==typeof e||"number"==typeof e||"string"==typeof e||"symbol"==typeof e||e===void 0}function O(e){return Object.prototype.toString.call(e)}function A(e){return 10>e?"0"+e.toString(10):e.toString(10)}function L(){var e=new Date,t=[A(e.getHours()),A(e.getMinutes()),A(e.getSeconds())].join(":");return[e.getDate(),B[e.getMonth()],t].join(" ")}function R(e,t){return Object.prototype.hasOwnProperty.call(e,t)}var N=/%[sdj%]/g;n.format=function(e){if(!v(e)){for(var t=[],n=0;arguments.length>n;n++)t.push(i(arguments[n]));return t.join(" ")}for(var n=1,r=arguments,o=r.length,s=(e+"").replace(N,function(e){if("%%"===e)return"%";if(n>=o)return e;switch(e){case"%s":return r[n++]+"";case"%d":return Number(r[n++]);case"%j":try{return JSON.stringify(r[n++])}catch(t){return"[Circular]"}default:return e}}),a=r[n];o>n;a=r[++n])s+=b(a)||!k(a)?" "+a:" "+i(a);return s},n.deprecate=function(e,i){function o(){if(!s){if(t.throwDeprecation)throw Error(i);t.traceDeprecation?console.trace(i):console.error(i),s=!0}return e.apply(this,arguments)}if(E(r.process))return function(){return n.deprecate(e,i).apply(this,arguments)};if(t.noDeprecation===!0)return e;var s=!1;return o};var M,I={};n.debuglog=function(e){if(E(M)&&(M=t.env.NODE_DEBUG||""),e=e.toUpperCase(),!I[e])if(RegExp("\\b"+e+"\\b","i").test(M)){var r=t.pid;I[e]=function(){var t=n.format.apply(n,arguments);console.error("%s %d: %s",e,r,t)}}else I[e]=function(){};return I[e]},n.inspect=i,i.colors={bold:[1,22],italic:[3,23],underline:[4,24],inverse:[7,27],white:[37,39],grey:[90,39],black:[30,39],blue:[34,39],cyan:[36,39],green:[32,39],magenta:[35,39],red:[31,39],yellow:[33,39]},i.styles={special:"cyan",number:"yellow","boolean":"yellow",undefined:"grey","null":"bold",string:"green",date:"magenta",regexp:"red"},n.isArray=p,n.isBoolean=g,n.isNull=b,n.isNullOrUndefined=m,n.isNumber=y,n.isString=v,n.isSymbol=w,n.isUndefined=E,n.isRegExp=_,n.isObject=k,n.isDate=S,n.isError=x,n.isFunction=j,n.isPrimitive=T,n.isBuffer=e("./support/isBuffer");var B=["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"];n.log=function(){console.log("%s - %s",L(),n.format.apply(n,arguments))},n.inherits=e("inherits"),n._extend=function(e,t){if(!t||!k(t))return e;for(var n=Object.keys(t),r=n.length;r--;)e[n[r]]=t[n[r]];return e}}).call(this,e("/home/admin/browserify-cdn/node_modules/browserify/node_modules/insert-module-globals/node_modules/process/browser.js"),"undefined"!=typeof self?self:"undefined"!=typeof window?window:{})},{"./support/isBuffer":17,"/home/admin/browserify-cdn/node_modules/browserify/node_modules/insert-module-globals/node_modules/process/browser.js":4,inherits:3}],19:[function(e,t,n){var r=e("errno");Object.keys(r.code).forEach(function(e){var t=r.code[e];n[e]=function(n){var r=Error(e+", "+t.description+(n?" '"+n+"'":""));return r.errno=t.errno,r.code=e,r.path=n,r}})},{errno:35}],"level-filesystem":[function(e,t){t.exports=e("yPjtcG")},{}],yPjtcG:[function(e,t){(function(n,r){var i=e("fwd-stream"),o=e("level-sublevel"),s=e("level-blobs"),a=e("level-peek"),u=e("once"),f=e("./errno"),c=e("./paths"),l=e("./watchers"),h=function(e,t,r){n.nextTick(function(){e(t,r)})},d=function(){};t.exports=function(e,t){var p={};e=o(e);var g=s(e.sublevel("blobs"),t),b=c(e.sublevel("stats")),m=e.sublevel("links"),y=l(),v=[],w=Date.now(),E=function(){return++w};p.mkdir=function(e,t,n){return"function"==typeof t?p.mkdir(e,null,t):(t||(t=511),n||(n=d),b.follow(e,function(e,r,i){return e&&"ENOENT"!==e.code?n(e):r?n(f.EEXIST(i)):(b.put(i,{type:"directory",mode:t,size:4096},y.cb(i,n)),void 0)}),void 0)},p.rmdir=function(e,t){t||(t=d),b.follow(e,function(e,n,r){return e?t(e):(p.readdir(r,function(e,n){return e?t(e):n.length?t(f.ENOTEMPTY(r)):(b.del(r,y.cb(r,t)),void 0)}),void 0)})},p.readdir=function(e,t){b.follow(e,function(e,n,r){return e?t(e):n?n.isDirectory()?(b.list(r,t),void 0):t(f.ENOTDIR(r)):t(f.ENOENT(r))})};var _=function(e,t,n){t(e,function(e,t,r){if(e)return n(e);if(!t.isFile())return n(null,t);var i=t&&t.blob||r;g.size(i,function(e,r){return e?n(e):(t.size=r,n(null,t),void 0)})})};p.stat=function(e,t){_(e,b.follow,t)},p.lstat=function(e,t){_(e,b.get,t)},p.exists=function(e,t){b.follow(e,function(e){t(!e)})};var k=function(e,t,n,r){r||(r=d),t(e,function(e,t,i){return e?r(e):(b.update(i,{mode:n},y.cb(i,r)),void 0)})};p.chmod=function(e,t,n){k(e,b.follow,t,n)},p.lchmod=function(e,t,n){k(e,b.get,t,n)};var S=function(e,t,n,r,i){i||(i=d),t(e,function(e,t,o){return e?i(e):(b.update(o,{uid:n,gid:r},y.cb(o,i)),void 0)})};return p.chown=function(e,t,n,r){S(e,b.follow,t,n,r)},p.lchown=function(e,t,n,r){S(e,b.get,t,n,r)},p.utimes=function(e,t,n,r){r||(r=d),b.follow(e,function(e,i,o){if(e)return r(e);var s={};t&&(s.atime=t),n&&(s.mtime=n),b.update(o,s,y.cb(o,r))})},p.rename=function(e,t,n){n||(n=d),b.follow(e,function(e,r,i){if(e)return n(e);var o=function(){n=y.cb(t,y.cb(i,n)),b.put(t,r,function(e){return e?n(e):(b.del(i,n),void 0)})};b.follow(t,function(e,t,s){return e&&"ENOENT"!==e.code?n(e):t?r.isDirectory()!==t.isDirectory()?n(f.EISDIR(i)):t.isDirectory()?(p.readdir(s,function(e,t){return e?n(e):t.length?n(f.ENOTEMPTY(i)):(o(),void 0)}),void 0):(o(),void 0):o()})})},p.realpath=function(e,t,n){return"function"==typeof t?p.realpath(e,null,t):(b.follow(e,function(e,t,r){return e?n(e):(n(null,r),void 0)}),void 0)},p.writeFile=function(e,t,n,i){if("function"==typeof n)return p.writeFile(e,t,null,n);"string"==typeof n&&(n={encoding:n}),n||(n={}),i||(i=d),r.isBuffer(t)||(t=new r(t,n.encoding||"utf-8"));var o=n.flags||"w";n.append="w"!==o[0],b.follow(e,function(e,r,s){if(e&&"ENOENT"!==e.code)return i(e);if(r&&r.isDirectory())return i(f.EISDIR(s));if(r&&"x"===o[1])return i(f.EEXIST(s));var a=r&&r.blob||s;b.writable(s,function(e){return e?i(e):(g.write(a,t,n,function(e){return e?i(e):(b.put(s,{ctime:r&&r.ctime,mtime:new Date,mode:n.mode||438,type:"file"},y.cb(s,i)),void 0)}),void 0)})})},p.appendFile=function(e,t,n,r){return"function"==typeof n?p.appendFile(e,t,null,n):("string"==typeof n&&(n={encoding:n}),n||(n={}),n.flags="a",p.writeFile(e,t,n,r),void 0)},p.unlink=function(e,t){t||(t=d),b.get(e,function(e,n,r){if(e)return t(e);if(n.isDirectory())return t(f.EISDIR(r));var i=function(e){a(m,{start:e+"ÿ",end:e+"ÿÿ"},function(n){return n?g.remove(e,t):(t(),void 0)})},o=function(){var e=n.link.slice(0,n.link.indexOf("ÿ"));m.del(n.link,function(n){return n?t(n):(i(e),void 0)})};b.del(r,y.cb(r,function(e){return e?t(e):n.link?o():(m.del(r+"ÿ",function(e){return e?t(e):(i(r),void 0)}),void 0)}))})},p.readFile=function(e,t,n){return"function"==typeof t?p.readFile(e,null,t):("string"==typeof t&&(t={encoding:t}),t||(t={}),t.encoding||"binary",t.flag||"r",b.follow(e,function(e,r,i){if(e)return n(e);if(r.isDirectory())return n(f.EISDIR(i));var o=r&&r.blob||i;g.read(o,function(e,r){return e?n(e):(n(null,t.encoding?r.toString(t.encoding):r),void 0)})}),void 0)},p.createReadStream=function(e,t){t||(t={});var r=!1,o=i.readable(function(i){b.follow(e,function(e,s,a){if(e)return i(e);if(s.isDirectory())return i(f.EISDIR(a));var u=s&&s.blob||a,c=g.createReadStream(u,t);o.emit("open"),c.on("end",function(){n.nextTick(function(){r||o.emit("close")})}),i(null,c)})});return o.on("close",function(){r=!0}),o},p.createWriteStream=function(e,t){t||(t={});var n=t.flags||"w",r=!1,o=t.mode||438;t.append="a"===n[0];var s=i.writable(function(i){b.follow(e,function(e,a,u){if(e&&"ENOENT"!==e.code)return i(e);if(a&&a.isDirectory())return i(f.EISDIR(u));if(a&&"x"===n[1])return i(f.EEXIST(u));var c=a&&a.blob||u;b.writable(c,function(e){if(e)return i(e);var n=a?a.ctime:new Date,f={ctime:n,mtime:new Date,mode:o,type:"file"};b.put(u,f,function(e){if(e)return i(e);var n=g.createWriteStream(c,t);s.emit("open"),n.on("finish",function(){f.mtime=new Date,b.put(u,f,function(){y.change(u),r||s.emit("close")})}),i(null,n)})})})});return s.on("close",function(){r=!0}),s},p.truncate=function(e,t,n){b.follow(e,function(e,i,o){if(e)return n(e);var s=i&&i.blob||o;g.size(s,function(e,i){return e?n(e):(b.writable(o,function(e){if(e)return n(e);if(n=u(y.cb(o,n)),!t)return g.remove(s,n);var a=g.createWriteStream(s,{start:t>i?t-1:t});a.on("error",n),a.on("finish",n),t>i&&a.write(new r([0])),a.end()}),void 0)})})},p.watchFile=function(e,t,n){return"function"==typeof t?p.watchFile(e,null,t):y.watch(b.normalize(e),n)},p.unwatchFile=function(e,t){y.unwatch(b.normalize(e),t)},p.watch=function(e,t,n){return y.watcher(b.normalize(e),n)},p.open=function(e,t,n,r){return"function"==typeof n?p.open(e,t,null,n):(b.follow(e,function(e,i,o){if(e&&"ENOENT"!==e.code)return r(e);var s=t[0],a="+"===t[1]||"+"===t[2],u=i&&i.blob||o,c={key:o,blob:u,mode:n||438,readable:"r"===s||("w"===s||"a"===s)&&a,writable:"w"===s||"a"===s||"r"===s&&a,append:"a"===s};return"r"===s&&e?r(e):"x"===t[1]&&i?r(f.EEXIST(o)):i&&i.isDirectory()?r(f.EISDIR(o)):(g.size(u,function(e,t){return e?r(e):(c.append&&(c.writePos=t),b.writable(o,function(e){if(e)return r(e);var t=function(e){if(e)return r(e);var t=v.indexOf(null);-1===t&&(t=10+v.push(v.length+10)-1),c.fd=t,v[t]=c,y.change(o),r(null,c.fd)},n=function(e){return e?r(e):i?t():(b.put(u,{ctime:i&&i.ctime,type:"file"},t),void 0)};return!c.append&&c.writable?g.remove(u,n):(n(),void 0)}),void 0)}),void 0)}),void 0)},p.close=function(e,t){var n=v[e];return n?(v[e]=null,h(y.cb(n.key,t)),void 0):h(t,f.EBADF())},p.write=function(e,t,n,r,i,o){var s=v[e];if(o||(o=d),!s||!s.writable)return h(o,f.EBADF());null===i&&(i=s.writePos||0);var a=t.slice(n,n+r);s.writePos=i+a.length,g.write(s.blob,a,{start:i,append:!0},function(e){return e?o(e):(o(null,r,t),void 0)})},p.read=function(e,t,n,r,i,o){var s=v[e];return o||(o=d),s&&s.readable?(null===i&&(i=p.readPos||0),g.read(s.blob,{start:i,end:i+r-1},function(e,s){if(e)return o(e);var a=s.slice(0,r);a.copy(t,n),p.readPos=i+a.length,o(null,a.length,t)}),void 0):h(o,f.EBADF())},p.fsync=function(e,t){var n=v[e];return t||(t=d),n&&n.writable?(h(t),void 0):h(t,f.EBADF())},p.ftruncate=function(e,t,n){var r=v[e];return n||(n=d),r?(p.truncate(r.blob,t,n),void 0):h(n,f.EBADF())},p.fchown=function(e,t,n,r){var i=v[e];return r||(r=d),i?(p.chown(i.key,t,n,r),void 0):h(r,f.EBADF())},p.fchmod=function(e,t,n){var r=v[e];return n||(n=d),r?(p.chmod(r.key,t,n),void 0):h(n,f.EBADF())},p.futimes=function(e,t,n,r){var i=v[e];return r||(r=d),i?(p.utimes(i.key,t,n,r),void 0):h(r,f.EBADF())},p.fstat=function(e,t){var n=v[e];return n?(p.stat(n.key,t),void 0):h(t,f.EBADF())},p.symlink=function(e,t,n){n||(n=d),b.follow(e,function(e,r,i){return e?n(e):(b.get(t,function(e,r){return e&&"ENOENT"!==e.code?n(e):r?n(f.EEXIST(t)):(b.put(t,{type:"symlink",target:i,mode:511},n),void 0)}),void 0)})},p.readlink=function(e,t){b.get(e,function(n,r){return n?t(n):r.target?(t(null,r.target),void 0):t(f.EINVAL(e))})},p.link=function(e,t,n){n||(n=d),b.follow(e,function(e,r,i){return e?n(e):r.isFile()?(b.get(t,function(e,o){if(e&&"ENOENT"!==e.code)return n(e);if(o)return n(f.EEXIST(t));var s=i+"ÿ"+E();m.put(i+"ÿ",i,function(e){return e?n(e):(m.put(s,i,function(e){return e?n(e):(b.put(t,{type:"file",link:s,blob:i,mode:r.mode},n),void 0)}),void 0)})}),void 0):n(f.EINVAL(i))})},p}}).call(this,e("/home/admin/browserify-cdn/node_modules/browserify/node_modules/insert-module-globals/node_modules/process/browser.js"),e("buffer").Buffer)},{"./errno":19,"./paths":80,"./watchers":82,"/home/admin/browserify-cdn/node_modules/browserify/node_modules/insert-module-globals/node_modules/process/browser.js":4,buffer:5,"fwd-stream":37,"level-blobs":50,"level-peek":62,"level-sublevel":65,once:77}],22:[function(e,t){(function(n){function r(e,t){if(!(this instanceof r))return new r(e,t);"function"==typeof e&&(t=e,e={}),e||(e={});var n=e.encoding,i=!1;n?(n=(n+"").toLowerCase(),("u8"===n||"uint8"===n)&&(n="uint8array")):i=!0,f.call(this,{objectMode:!0}),this.encoding=n,this.shouldInferEncoding=i,t&&this.on("finish",function(){t(this.getBody())}),this.body=[]}function i(e){return/Array\]$/.test(Object.prototype.toString.call(e))}function o(e){for(var t=[],r=0;e.length>r;r++){var i=e[r];"string"==typeof i?t.push(i):n.isBuffer(i)?t.push(i):t.push(n(i))}return n.isBuffer(e[0])?(t=n.concat(t),t=t.toString("utf8")):t=t.join(""),t}function s(e){for(var t=[],r=0;e.length>r;r++){var o=e[r];n.isBuffer(o)?t.push(o):"string"==typeof o||i(o)||o&&"function"==typeof o.subarray?t.push(n(o)):t.push(n(o+""))}return n.concat(t)}function a(e){for(var t=[],n=0;e.length>n;n++)t.push.apply(t,e[n]);return t}function u(e){for(var t=0,r=0;e.length>r;r++)"string"==typeof e[r]&&(e[r]=n(e[r])),t+=e[r].length;for(var i=new h(t),r=0,o=0;e.length>r;r++)for(var s=e[r],a=0;s.length>a;a++)i[o++]=s[a];return i}var f=e("readable-stream").Writable,c=e("inherits"),l=e("typedarray"),h="undefined"!=typeof Uint8Array?Uint8Array:l.Uint8Array;t.exports=r,c(r,f),r.prototype._write=function(e,t,n){this.body.push(e),n()},r.prototype.inferEncoding=function(e){var t=e||this.body[0];return t?n.isBuffer(t)?"buffer":"undefined"!=typeof Uint8Array&&t instanceof Uint8Array?"uint8array":Array.isArray(t)?"array":"string"==typeof t?"string":"[object Object]"===Object.prototype.toString.call(t)?"object":"buffer":"buffer"},r.prototype.getBody=function(){return this.encoding||0!==this.body.length?(this.shouldInferEncoding&&(this.encoding=this.inferEncoding()),"array"===this.encoding?a(this.body):"string"===this.encoding?o(this.body):"buffer"===this.encoding?s(this.body):"uint8array"===this.encoding?u(this.body):this.body):[]},Array.isArray||function(e){return"[object Array]"==Object.prototype.toString.call(e)}}).call(this,e("buffer").Buffer)},{buffer:5,inherits:23,"readable-stream":32,typedarray:33}],23:[function(e,t){t.exports=e(3)},{}],24:[function(e,t){(function(n){function r(e){return this instanceof r?(u.call(this,e),f.call(this,e),e&&e.readable===!1&&(this.readable=!1),e&&e.writable===!1&&(this.writable=!1),this.allowHalfOpen=!0,e&&e.allowHalfOpen===!1&&(this.allowHalfOpen=!1),this.once("end",i),void 0):new r(e)}function i(){this.allowHalfOpen||this._writableState.ended||n.nextTick(this.end.bind(this))}function o(e,t){for(var n=0,r=e.length;r>n;n++)t(e[n],n)}t.exports=r;var s=Object.keys||function(e){var t=[];for(var n in e)t.push(n);return t},a=e("core-util-is");a.inherits=e("inherits");var u=e("./_stream_readable"),f=e("./_stream_writable");a.inherits(r,u),o(s(f.prototype),function(e){r.prototype[e]||(r.prototype[e]=f.prototype[e])})}).call(this,e("/home/admin/browserify-cdn/node_modules/browserify/node_modules/insert-module-globals/node_modules/process/browser.js"))},{"./_stream_readable":26,"./_stream_writable":28,"/home/admin/browserify-cdn/node_modules/browserify/node_modules/insert-module-globals/node_modules/process/browser.js":4,"core-util-is":29,inherits:23}],25:[function(e,t){function n(e){return this instanceof n?(r.call(this,e),void 0):new n(e)}t.exports=n;var r=e("./_stream_transform"),i=e("core-util-is");i.inherits=e("inherits"),i.inherits(n,r),n.prototype._transform=function(e,t,n){n(null,e)}},{"./_stream_transform":27,"core-util-is":29,inherits:23}],26:[function(e,t){(function(n){function r(t){t=t||{};var n=t.highWaterMark,r=t.objectMode?16:16384;this.highWaterMark=n||0===n?n:r,this.highWaterMark=~~this.highWaterMark,this.buffer=[],this.length=0,this.pipes=null,this.pipesCount=0,this.flowing=null,this.ended=!1,this.endEmitted=!1,this.reading=!1,this.sync=!0,this.needReadable=!1,this.emittedReadable=!1,this.readableListening=!1,this.objectMode=!!t.objectMode,this.defaultEncoding=t.defaultEncoding||"utf8",this.ranOut=!1,this.awaitDrain=0,this.readingMore=!1,this.decoder=null,this.encoding=null,t.encoding&&(O||(O=e("string_decoder/").StringDecoder),this.decoder=new O(t.encoding),this.encoding=t.encoding)}function i(e){return this instanceof i?(this._readableState=new r(e,this),this.readable=!0,j.call(this),void 0):new i(e)}function o(e,t,n,r,i){var o=f(t,n);if(o)e.emit("error",o);else if(T.isNullOrUndefined(n))t.reading=!1,t.ended||c(e,t);else if(t.objectMode||n&&n.length>0)if(t.ended&&!i){var a=Error("stream.push() after EOF");e.emit("error",a)}else if(t.endEmitted&&i){var a=Error("stream.unshift() after end event");e.emit("error",a)}else!t.decoder||i||r||(n=t.decoder.write(n)),i||(t.reading=!1),t.flowing&&0===t.length&&!t.sync?(e.emit("data",n),e.read(0)):(t.length+=t.objectMode?1:n.length,i?t.buffer.unshift(n):t.buffer.push(n),t.needReadable&&l(e)),d(e,t);else i||(t.reading=!1);return s(t)}function s(e){return!e.ended&&(e.needReadable||e.length<e.highWaterMark||0===e.length)}function a(e){if(e>=L)e=L;else{e--;for(var t=1;32>t;t<<=1)e|=e>>t;e++}return e}function u(e,t){return 0===t.length&&t.ended?0:t.objectMode?0===e?0:1:isNaN(e)||T.isNull(e)?t.flowing&&t.buffer.length?t.buffer[0].length:t.length:0>=e?0:(e>t.highWaterMark&&(t.highWaterMark=a(e)),e>t.length?t.ended?t.length:(t.needReadable=!0,0):e)}function f(e,t){var n=null;return T.isBuffer(t)||T.isString(t)||T.isNullOrUndefined(t)||e.objectMode||(n=new TypeError("Invalid non-string/buffer chunk")),n}function c(e,t){if(t.decoder&&!t.ended){var n=t.decoder.end();n&&n.length&&(t.buffer.push(n),t.length+=t.objectMode?1:n.length)}t.ended=!0,l(e)}function l(e){var t=e._readableState;t.needReadable=!1,t.emittedReadable||(A("emitReadable",t.flowing),t.emittedReadable=!0,t.sync?n.nextTick(function(){h(e)}):h(e))}function h(e){A("emit readable"),e.emit("readable"),y(e)}function d(e,t){t.readingMore||(t.readingMore=!0,n.nextTick(function(){p(e,t)}))}function p(e,t){for(var n=t.length;!t.reading&&!t.flowing&&!t.ended&&t.length<t.highWaterMark&&(A("maybeReadMore read 0"),e.read(0),n!==t.length);)n=t.length;t.readingMore=!1}function g(e){return function(){var t=e._readableState;A("pipeOnDrain",t.awaitDrain),t.awaitDrain&&t.awaitDrain--,0===t.awaitDrain&&x.listenerCount(e,"data")&&(t.flowing=!0,y(e))}}function b(e,t){t.resumeScheduled||(t.resumeScheduled=!0,n.nextTick(function(){m(e,t)}))}function m(e,t){t.resumeScheduled=!1,e.emit("resume"),y(e),t.flowing&&!t.reading&&e.read(0)}function y(e){var t=e._readableState;if(A("flow",t.flowing),t.flowing)do var n=e.read();while(null!==n&&t.flowing)}function v(e,t){var n,r=t.buffer,i=t.length,o=!!t.decoder,s=!!t.objectMode;if(0===r.length)return null;if(0===i)n=null;else if(s)n=r.shift();else if(!e||e>=i)n=o?r.join(""):S.concat(r,i),r.length=0;
else if(r[0].length>e){var a=r[0];n=a.slice(0,e),r[0]=a.slice(e)}else if(e===r[0].length)n=r.shift();else{n=o?"":new S(e);for(var u=0,f=0,c=r.length;c>f&&e>u;f++){var a=r[0],l=Math.min(e-u,a.length);o?n+=a.slice(0,l):a.copy(n,u,0,l),a.length>l?r[0]=a.slice(l):r.shift(),u+=l}}return n}function w(e){var t=e._readableState;if(t.length>0)throw Error("endReadable called on non-empty stream");t.endEmitted||(t.ended=!0,n.nextTick(function(){t.endEmitted||0!==t.length||(t.endEmitted=!0,e.readable=!1,e.emit("end"))}))}function E(e,t){for(var n=0,r=e.length;r>n;n++)t(e[n],n)}function _(e,t){for(var n=0,r=e.length;r>n;n++)if(e[n]===t)return n;return-1}t.exports=i;var k=e("isarray"),S=e("buffer").Buffer;i.ReadableState=r;var x=e("events").EventEmitter;x.listenerCount||(x.listenerCount=function(e,t){return e.listeners(t).length});var j=e("stream"),T=e("core-util-is");T.inherits=e("inherits");var O,A=e("util");A=A&&A.debuglog?A.debuglog("stream"):function(){},T.inherits(i,j),i.prototype.push=function(e,t){var n=this._readableState;return T.isString(e)&&!n.objectMode&&(t=t||n.defaultEncoding,t!==n.encoding&&(e=new S(e,t),t="")),o(this,n,e,t,!1)},i.prototype.unshift=function(e){var t=this._readableState;return o(this,t,e,"",!0)},i.prototype.setEncoding=function(t){return O||(O=e("string_decoder/").StringDecoder),this._readableState.decoder=new O(t),this._readableState.encoding=t,this};var L=8388608;i.prototype.read=function(e){A("read",e);var t=this._readableState,n=e;if((!T.isNumber(e)||e>0)&&(t.emittedReadable=!1),0===e&&t.needReadable&&(t.length>=t.highWaterMark||t.ended))return A("read: emitReadable",t.length,t.ended),0===t.length&&t.ended?w(this):l(this),null;if(e=u(e,t),0===e&&t.ended)return 0===t.length&&w(this),null;var r=t.needReadable;A("need readable",r),(0===t.length||t.length-e<t.highWaterMark)&&(r=!0,A("length less than watermark",r)),(t.ended||t.reading)&&(r=!1,A("reading or ended",r)),r&&(A("do read"),t.reading=!0,t.sync=!0,0===t.length&&(t.needReadable=!0),this._read(t.highWaterMark),t.sync=!1),r&&!t.reading&&(e=u(n,t));var i;return i=e>0?v(e,t):null,T.isNull(i)&&(t.needReadable=!0,e=0),t.length-=e,0!==t.length||t.ended||(t.needReadable=!0),n!==e&&t.ended&&0===t.length&&w(this),T.isNull(i)||this.emit("data",i),i},i.prototype._read=function(){this.emit("error",Error("not implemented"))},i.prototype.pipe=function(e,t){function r(e){A("onunpipe"),e===l&&o()}function i(){A("onend"),e.end()}function o(){A("cleanup"),e.removeListener("close",u),e.removeListener("finish",f),e.removeListener("drain",b),e.removeListener("error",a),e.removeListener("unpipe",r),l.removeListener("end",i),l.removeListener("end",o),l.removeListener("data",s),!h.awaitDrain||e._writableState&&!e._writableState.needDrain||b()}function s(t){A("ondata");var n=e.write(t);!1===n&&(A("false write response, pause",l._readableState.awaitDrain),l._readableState.awaitDrain++,l.pause())}function a(t){A("onerror",t),c(),e.removeListener("error",a),0===x.listenerCount(e,"error")&&e.emit("error",t)}function u(){e.removeListener("finish",f),c()}function f(){A("onfinish"),e.removeListener("close",u),c()}function c(){A("unpipe"),l.unpipe(e)}var l=this,h=this._readableState;switch(h.pipesCount){case 0:h.pipes=e;break;case 1:h.pipes=[h.pipes,e];break;default:h.pipes.push(e)}h.pipesCount+=1,A("pipe count=%d opts=%j",h.pipesCount,t);var d=(!t||t.end!==!1)&&e!==n.stdout&&e!==n.stderr,p=d?i:o;h.endEmitted?n.nextTick(p):l.once("end",p),e.on("unpipe",r);var b=g(l);return e.on("drain",b),l.on("data",s),e._events&&e._events.error?k(e._events.error)?e._events.error.unshift(a):e._events.error=[a,e._events.error]:e.on("error",a),e.once("close",u),e.once("finish",f),e.emit("pipe",l),h.flowing||(A("pipe resume"),l.resume()),e},i.prototype.unpipe=function(e){var t=this._readableState;if(0===t.pipesCount)return this;if(1===t.pipesCount)return e&&e!==t.pipes?this:(e||(e=t.pipes),t.pipes=null,t.pipesCount=0,t.flowing=!1,e&&e.emit("unpipe",this),this);if(!e){var n=t.pipes,r=t.pipesCount;t.pipes=null,t.pipesCount=0,t.flowing=!1;for(var i=0;r>i;i++)n[i].emit("unpipe",this);return this}var i=_(t.pipes,e);return-1===i?this:(t.pipes.splice(i,1),t.pipesCount-=1,1===t.pipesCount&&(t.pipes=t.pipes[0]),e.emit("unpipe",this),this)},i.prototype.on=function(e,t){var r=j.prototype.on.call(this,e,t);if("data"===e&&!1!==this._readableState.flowing&&this.resume(),"readable"===e&&this.readable){var i=this._readableState;if(!i.readableListening)if(i.readableListening=!0,i.emittedReadable=!1,i.needReadable=!0,i.reading)i.length&&l(this,i);else{var o=this;n.nextTick(function(){A("readable nexttick read 0"),o.read(0)})}}return r},i.prototype.addListener=i.prototype.on,i.prototype.resume=function(){var e=this._readableState;return e.flowing||(A("resume"),e.flowing=!0,e.reading||(A("resume read 0"),this.read(0)),b(this,e)),this},i.prototype.pause=function(){return A("call pause flowing=%j",this._readableState.flowing),!1!==this._readableState.flowing&&(A("pause"),this._readableState.flowing=!1,this.emit("pause")),this},i.prototype.wrap=function(e){var t=this._readableState,n=!1,r=this;e.on("end",function(){if(A("wrapped end"),t.decoder&&!t.ended){var e=t.decoder.end();e&&e.length&&r.push(e)}r.push(null)}),e.on("data",function(i){if(A("wrapped data"),t.decoder&&(i=t.decoder.write(i)),i&&(t.objectMode||i.length)){var o=r.push(i);o||(n=!0,e.pause())}});for(var i in e)T.isFunction(e[i])&&T.isUndefined(this[i])&&(this[i]=function(t){return function(){return e[t].apply(e,arguments)}}(i));var o=["error","close","destroy","pause","resume"];return E(o,function(t){e.on(t,r.emit.bind(r,t))}),r._read=function(t){A("wrapped _read",t),n&&(n=!1,e.resume())},r},i._fromList=v}).call(this,e("/home/admin/browserify-cdn/node_modules/browserify/node_modules/insert-module-globals/node_modules/process/browser.js"))},{"/home/admin/browserify-cdn/node_modules/browserify/node_modules/insert-module-globals/node_modules/process/browser.js":4,buffer:5,"core-util-is":29,events:2,inherits:23,isarray:30,stream:10,"string_decoder/":31,util:1}],27:[function(e,t){function n(e,t){this.afterTransform=function(e,n){return r(t,e,n)},this.needTransform=!1,this.transforming=!1,this.writecb=null,this.writechunk=null}function r(e,t,n){var r=e._transformState;r.transforming=!1;var i=r.writecb;if(!i)return e.emit("error",Error("no writecb in Transform class"));r.writechunk=null,r.writecb=null,a.isNullOrUndefined(n)||e.push(n),i&&i(t);var o=e._readableState;o.reading=!1,(o.needReadable||o.length<o.highWaterMark)&&e._read(o.highWaterMark)}function i(e){if(!(this instanceof i))return new i(e);s.call(this,e),this._transformState=new n(e,this);var t=this;this._readableState.needReadable=!0,this._readableState.sync=!1,this.once("prefinish",function(){a.isFunction(this._flush)?this._flush(function(e){o(t,e)}):o(t)})}function o(e,t){if(t)return e.emit("error",t);var n=e._writableState,r=e._transformState;if(n.length)throw Error("calling transform done when ws.length != 0");if(r.transforming)throw Error("calling transform done when still transforming");return e.push(null)}t.exports=i;var s=e("./_stream_duplex"),a=e("core-util-is");a.inherits=e("inherits"),a.inherits(i,s),i.prototype.push=function(e,t){return this._transformState.needTransform=!1,s.prototype.push.call(this,e,t)},i.prototype._transform=function(){throw Error("not implemented")},i.prototype._write=function(e,t,n){var r=this._transformState;if(r.writecb=n,r.writechunk=e,r.writeencoding=t,!r.transforming){var i=this._readableState;(r.needTransform||i.needReadable||i.length<i.highWaterMark)&&this._read(i.highWaterMark)}},i.prototype._read=function(){var e=this._transformState;a.isNull(e.writechunk)||!e.writecb||e.transforming?e.needTransform=!0:(e.transforming=!0,this._transform(e.writechunk,e.writeencoding,e.afterTransform))}},{"./_stream_duplex":24,"core-util-is":29,inherits:23}],28:[function(e,t){(function(n){function r(e,t,n){this.chunk=e,this.encoding=t,this.callback=n}function i(e,t){e=e||{};var n=e.highWaterMark,r=e.objectMode?16:16384;this.highWaterMark=n||0===n?n:r,this.objectMode=!!e.objectMode,this.highWaterMark=~~this.highWaterMark,this.needDrain=!1,this.ending=!1,this.ended=!1,this.finished=!1;var i=e.decodeStrings===!1;this.decodeStrings=!i,this.defaultEncoding=e.defaultEncoding||"utf8",this.length=0,this.writing=!1,this.corked=0,this.sync=!0,this.bufferProcessing=!1,this.onwrite=function(e){d(t,e)},this.writecb=null,this.writelen=0,this.buffer=[],this.pendingcb=0,this.prefinished=!1,this.errorEmitted=!1}function o(t){var n=e("./_stream_duplex");return this instanceof o||this instanceof n?(this._writableState=new i(t,this),this.writable=!0,k.call(this),void 0):new o(t)}function s(e,t,r){var i=Error("write after end");e.emit("error",i),n.nextTick(function(){r(i)})}function a(e,t,r,i){var o=!0;if(!(_.isBuffer(r)||_.isString(r)||_.isNullOrUndefined(r)||t.objectMode)){var s=new TypeError("Invalid non-string/buffer chunk");e.emit("error",s),n.nextTick(function(){i(s)}),o=!1}return o}function u(e,t,n){return!e.objectMode&&e.decodeStrings!==!1&&_.isString(t)&&(t=new E(t,n)),t}function f(e,t,n,i,o){n=u(t,n,i),_.isBuffer(n)&&(i="buffer");var s=t.objectMode?1:n.length;t.length+=s;var a=t.length<t.highWaterMark;return a||(t.needDrain=!0),t.writing||t.corked?t.buffer.push(new r(n,i,o)):c(e,t,!1,s,n,i,o),a}function c(e,t,n,r,i,o,s){t.writelen=r,t.writecb=s,t.writing=!0,t.sync=!0,n?e._writev(i,t.onwrite):e._write(i,o,t.onwrite),t.sync=!1}function l(e,t,r,i,o){r?n.nextTick(function(){t.pendingcb--,o(i)}):(t.pendingcb--,o(i)),e._writableState.errorEmitted=!0,e.emit("error",i)}function h(e){e.writing=!1,e.writecb=null,e.length-=e.writelen,e.writelen=0}function d(e,t){var r=e._writableState,i=r.sync,o=r.writecb;if(h(r),t)l(e,r,i,t,o);else{var s=m(e,r);s||r.corked||r.bufferProcessing||!r.buffer.length||b(e,r),i?n.nextTick(function(){p(e,r,s,o)}):p(e,r,s,o)}}function p(e,t,n,r){n||g(e,t),t.pendingcb--,r(),v(e,t)}function g(e,t){0===t.length&&t.needDrain&&(t.needDrain=!1,e.emit("drain"))}function b(e,t){if(t.bufferProcessing=!0,e._writev&&t.buffer.length>1){for(var n=[],r=0;t.buffer.length>r;r++)n.push(t.buffer[r].callback);t.pendingcb++,c(e,t,!0,t.length,t.buffer,"",function(e){for(var r=0;n.length>r;r++)t.pendingcb--,n[r](e)}),t.buffer=[]}else{for(var r=0;t.buffer.length>r;r++){var i=t.buffer[r],o=i.chunk,s=i.encoding,a=i.callback,u=t.objectMode?1:o.length;if(c(e,t,!1,u,o,s,a),t.writing){r++;break}}t.buffer.length>r?t.buffer=t.buffer.slice(r):t.buffer.length=0}t.bufferProcessing=!1}function m(e,t){return t.ending&&0===t.length&&!t.finished&&!t.writing}function y(e,t){t.prefinished||(t.prefinished=!0,e.emit("prefinish"))}function v(e,t){var n=m(e,t);return n&&(0===t.pendingcb?(y(e,t),t.finished=!0,e.emit("finish")):y(e,t)),n}function w(e,t,r){t.ending=!0,v(e,t),r&&(t.finished?n.nextTick(r):e.once("finish",r)),t.ended=!0}t.exports=o;var E=e("buffer").Buffer;o.WritableState=i;var _=e("core-util-is");_.inherits=e("inherits");var k=e("stream");_.inherits(o,k),o.prototype.pipe=function(){this.emit("error",Error("Cannot pipe. Not readable."))},o.prototype.write=function(e,t,n){var r=this._writableState,i=!1;return _.isFunction(t)&&(n=t,t=null),_.isBuffer(e)?t="buffer":t||(t=r.defaultEncoding),_.isFunction(n)||(n=function(){}),r.ended?s(this,r,n):a(this,r,e,n)&&(r.pendingcb++,i=f(this,r,e,t,n)),i},o.prototype.cork=function(){var e=this._writableState;e.corked++},o.prototype.uncork=function(){var e=this._writableState;e.corked&&(e.corked--,e.writing||e.corked||e.finished||e.bufferProcessing||!e.buffer.length||b(this,e))},o.prototype._write=function(e,t,n){n(Error("not implemented"))},o.prototype._writev=null,o.prototype.end=function(e,t,n){var r=this._writableState;_.isFunction(e)?(n=e,e=null,t=null):_.isFunction(t)&&(n=t,t=null),_.isNullOrUndefined(e)||this.write(e,t),r.corked&&(r.corked=1,this.uncork()),r.ending||r.finished||w(this,r,n)}}).call(this,e("/home/admin/browserify-cdn/node_modules/browserify/node_modules/insert-module-globals/node_modules/process/browser.js"))},{"./_stream_duplex":24,"/home/admin/browserify-cdn/node_modules/browserify/node_modules/insert-module-globals/node_modules/process/browser.js":4,buffer:5,"core-util-is":29,inherits:23,stream:10}],29:[function(e,t,n){(function(e){function t(e){return Array.isArray(e)}function r(e){return"boolean"==typeof e}function i(e){return null===e}function o(e){return null==e}function s(e){return"number"==typeof e}function a(e){return"string"==typeof e}function u(e){return"symbol"==typeof e}function f(e){return void 0===e}function c(e){return l(e)&&"[object RegExp]"===m(e)}function l(e){return"object"==typeof e&&null!==e}function h(e){return l(e)&&"[object Date]"===m(e)}function d(e){return l(e)&&("[object Error]"===m(e)||e instanceof Error)}function p(e){return"function"==typeof e}function g(e){return null===e||"boolean"==typeof e||"number"==typeof e||"string"==typeof e||"symbol"==typeof e||e===void 0}function b(t){return e.isBuffer(t)}function m(e){return Object.prototype.toString.call(e)}n.isArray=t,n.isBoolean=r,n.isNull=i,n.isNullOrUndefined=o,n.isNumber=s,n.isString=a,n.isSymbol=u,n.isUndefined=f,n.isRegExp=c,n.isObject=l,n.isDate=h,n.isError=d,n.isFunction=p,n.isPrimitive=g,n.isBuffer=b}).call(this,e("buffer").Buffer)},{buffer:5}],30:[function(e,t){t.exports=Array.isArray||function(e){return"[object Array]"==Object.prototype.toString.call(e)}},{}],31:[function(e,t,n){function r(e){if(e&&!u(e))throw Error("Unknown encoding: "+e)}function i(e){return e.toString(this.encoding)}function o(e){var t=this.charReceived=e.length%2;return this.charLength=t?2:0,t}function s(e){var t=this.charReceived=e.length%3;return this.charLength=t?3:0,t}var a=e("buffer").Buffer,u=a.isEncoding||function(e){switch(e&&e.toLowerCase()){case"hex":case"utf8":case"utf-8":case"ascii":case"binary":case"base64":case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":case"raw":return!0;default:return!1}},f=n.StringDecoder=function(e){switch(this.encoding=(e||"utf8").toLowerCase().replace(/[-_]/,""),r(e),this.encoding){case"utf8":this.surrogateSize=3;break;case"ucs2":case"utf16le":this.surrogateSize=2,this.detectIncompleteChar=o;break;case"base64":this.surrogateSize=3,this.detectIncompleteChar=s;break;default:return this.write=i,void 0}this.charBuffer=new a(6),this.charReceived=0,this.charLength=0};f.prototype.write=function(e){for(var t="",n=0;this.charLength;){var r=e.length>=this.charLength-this.charReceived?this.charLength-this.charReceived:e.length;if(e.copy(this.charBuffer,this.charReceived,n,r),this.charReceived+=r-n,n=r,this.charReceived<this.charLength)return"";t=this.charBuffer.slice(0,this.charLength).toString(this.encoding);var i=t.charCodeAt(t.length-1);if(!(i>=55296&&56319>=i)){if(this.charReceived=this.charLength=0,r==e.length)return t;e=e.slice(r,e.length);break}this.charLength+=this.surrogateSize,t=""}var o=this.detectIncompleteChar(e),s=e.length;this.charLength&&(e.copy(this.charBuffer,0,e.length-o,s),this.charReceived=o,s-=o),t+=e.toString(this.encoding,0,s);var s=t.length-1,i=t.charCodeAt(s);if(i>=55296&&56319>=i){var a=this.surrogateSize;return this.charLength+=a,this.charReceived+=a,this.charBuffer.copy(this.charBuffer,a,0,a),this.charBuffer.write(t.charAt(t.length-1),this.encoding),t.substring(0,s)}return t},f.prototype.detectIncompleteChar=function(e){for(var t=e.length>=3?3:e.length;t>0;t--){var n=e[e.length-t];if(1==t&&6==n>>5){this.charLength=2;break}if(2>=t&&14==n>>4){this.charLength=3;break}if(3>=t&&30==n>>3){this.charLength=4;break}}return t},f.prototype.end=function(e){var t="";if(e&&e.length&&(t=this.write(e)),this.charReceived){var n=this.charReceived,r=this.charBuffer,i=this.encoding;t+=r.slice(0,n).toString(i)}return t}},{buffer:5}],32:[function(e,t,n){n=t.exports=e("./lib/_stream_readable.js"),n.Stream=e("stream"),n.Readable=n,n.Writable=e("./lib/_stream_writable.js"),n.Duplex=e("./lib/_stream_duplex.js"),n.Transform=e("./lib/_stream_transform.js"),n.PassThrough=e("./lib/_stream_passthrough.js")},{"./lib/_stream_duplex.js":24,"./lib/_stream_passthrough.js":25,"./lib/_stream_readable.js":26,"./lib/_stream_transform.js":27,"./lib/_stream_writable.js":28,stream:10}],33:[function(e,t,n){function r(e){if(C&&j){var t,n=C(e);for(t=0;n.length>t;t+=1)j(e,n[t],{value:e[n[t]],writable:!1,enumerable:!1,configurable:!1})}}function i(e){function t(t){j(e,t,{get:function(){return e._getter(t)},set:function(n){e._setter(t,n)},enumerable:!0,configurable:!1})}if(j){if(e.length>O)throw new RangeError("Array too large for polyfill");var n;for(n=0;e.length>n;n+=1)t(n)}}function o(e,t){var n=32-t;return e<<n>>n}function s(e,t){var n=32-t;return e<<n>>>n}function a(e){return[255&e]}function u(e){return o(e[0],8)}function f(e){return[255&e]}function c(e){return s(e[0],8)}function l(e){return e=D(Number(e)),[0>e?0:e>255?255:255&e]}function h(e){return[255&e>>8,255&e]}function d(e){return o(e[0]<<8|e[1],16)}function p(e){return[255&e>>8,255&e]}function g(e){return s(e[0]<<8|e[1],16)}function b(e){return[255&e>>24,255&e>>16,255&e>>8,255&e]}function m(e){return o(e[0]<<24|e[1]<<16|e[2]<<8|e[3],32)}function y(e){return[255&e>>24,255&e>>16,255&e>>8,255&e]}function v(e){return s(e[0]<<24|e[1]<<16|e[2]<<8|e[3],32)}function w(e,t,n){function r(e){var t=N(e),n=e-t;return.5>n?t:n>.5?t+1:t%2?t+1:t}var i,o,s,a,u,f,c,l=(1<<t-1)-1;for(e!==e?(o=(1<<t)-1,s=B(2,n-1),i=0):1/0===e||e===-1/0?(o=(1<<t)-1,s=0,i=0>e?1:0):0===e?(o=0,s=0,i=1/e===-1/0?1:0):(i=0>e,e=R(e),e>=B(2,1-l)?(o=I(N(M(e)/L),1023),s=r(e/B(2,o)*B(2,n)),s/B(2,n)>=2&&(o+=1,s=1),o>l?(o=(1<<t)-1,s=0):(o+=l,s-=B(2,n))):(o=0,s=r(e/B(2,1-l-n)))),u=[],a=n;a;a-=1)u.push(s%2?1:0),s=N(s/2);for(a=t;a;a-=1)u.push(o%2?1:0),o=N(o/2);for(u.push(i?1:0),u.reverse(),f=u.join(""),c=[];f.length;)c.push(parseInt(f.substring(0,8),2)),f=f.substring(8);return c}function E(e,t,n){var r,i,o,s,a,u,f,c,l=[];for(r=e.length;r;r-=1)for(o=e[r-1],i=8;i;i-=1)l.push(o%2?1:0),o>>=1;return l.reverse(),s=l.join(""),a=(1<<t-1)-1,u=parseInt(s.substring(0,1),2)?-1:1,f=parseInt(s.substring(1,1+t),2),c=parseInt(s.substring(1+t),2),f===(1<<t)-1?0!==c?0/0:1/0*u:f>0?u*B(2,f-a)*(1+c/B(2,n)):0!==c?u*B(2,-(a-1))*(c/B(2,n)):0>u?-0:0}function _(e){return E(e,11,52)}function k(e){return w(e,11,52)}function S(e){return E(e,8,23)}function x(e){return w(e,8,23)}var j,T=void 0,O=1e5,A=function(){var e=Object.prototype.toString,t=Object.prototype.hasOwnProperty;return{Class:function(t){return e.call(t).replace(/^\[object *|\]$/g,"")},HasProperty:function(e,t){return t in e},HasOwnProperty:function(e,n){return t.call(e,n)},IsCallable:function(e){return"function"==typeof e},ToInt32:function(e){return e>>0},ToUint32:function(e){return e>>>0}}}(),L=Math.LN2,R=Math.abs,N=Math.floor,M=Math.log,I=Math.min,B=Math.pow,D=Math.round;j=Object.defineProperty&&function(){try{return Object.defineProperty({},"x",{}),!0}catch(e){return!1}}()?Object.defineProperty:function(e,t,n){if(!e===Object(e))throw new TypeError("Object.defineProperty called on non-object");return A.HasProperty(n,"get")&&Object.prototype.__defineGetter__&&Object.prototype.__defineGetter__.call(e,t,n.get),A.HasProperty(n,"set")&&Object.prototype.__defineSetter__&&Object.prototype.__defineSetter__.call(e,t,n.set),A.HasProperty(n,"value")&&(e[t]=n.value),e};var C=Object.getOwnPropertyNames||function(e){if(e!==Object(e))throw new TypeError("Object.getOwnPropertyNames called on non-object");var t,n=[];for(t in e)A.HasOwnProperty(e,t)&&n.push(t);return n};(function(){function e(e,n,s){var a;return a=function(e,n,o){var s,u,f,c;if(arguments.length&&"number"!=typeof arguments[0])if("object"==typeof arguments[0]&&arguments[0].constructor===a)for(s=arguments[0],this.length=s.length,this.byteLength=this.length*this.BYTES_PER_ELEMENT,this.buffer=new t(this.byteLength),this.byteOffset=0,f=0;this.length>f;f+=1)this._setter(f,s._getter(f));else if("object"!=typeof arguments[0]||arguments[0]instanceof t||"ArrayBuffer"===A.Class(arguments[0])){if("object"!=typeof arguments[0]||!(arguments[0]instanceof t||"ArrayBuffer"===A.Class(arguments[0])))throw new TypeError("Unexpected argument type(s)");if(this.buffer=e,this.byteOffset=A.ToUint32(n),this.byteOffset>this.buffer.byteLength)throw new RangeError("byteOffset out of range");if(this.byteOffset%this.BYTES_PER_ELEMENT)throw new RangeError("ArrayBuffer length minus the byteOffset is not a multiple of the element size.");if(3>arguments.length){if(this.byteLength=this.buffer.byteLength-this.byteOffset,this.byteLength%this.BYTES_PER_ELEMENT)throw new RangeError("length of buffer minus byteOffset not a multiple of the element size");this.length=this.byteLength/this.BYTES_PER_ELEMENT}else this.length=A.ToUint32(o),this.byteLength=this.length*this.BYTES_PER_ELEMENT;if(this.byteOffset+this.byteLength>this.buffer.byteLength)throw new RangeError("byteOffset and length reference an area beyond the end of the buffer")}else for(u=arguments[0],this.length=A.ToUint32(u.length),this.byteLength=this.length*this.BYTES_PER_ELEMENT,this.buffer=new t(this.byteLength),this.byteOffset=0,f=0;this.length>f;f+=1)c=u[f],this._setter(f,Number(c));else{if(this.length=A.ToInt32(arguments[0]),0>o)throw new RangeError("ArrayBufferView size is not a small enough positive integer");this.byteLength=this.length*this.BYTES_PER_ELEMENT,this.buffer=new t(this.byteLength),this.byteOffset=0}this.constructor=a,r(this),i(this)},a.prototype=new o,a.prototype.BYTES_PER_ELEMENT=e,a.prototype._pack=n,a.prototype._unpack=s,a.BYTES_PER_ELEMENT=e,a.prototype._getter=function(e){if(1>arguments.length)throw new SyntaxError("Not enough arguments");if(e=A.ToUint32(e),e>=this.length)return T;var t,n,r=[];for(t=0,n=this.byteOffset+e*this.BYTES_PER_ELEMENT;this.BYTES_PER_ELEMENT>t;t+=1,n+=1)r.push(this.buffer._bytes[n]);return this._unpack(r)},a.prototype.get=a.prototype._getter,a.prototype._setter=function(e,t){if(2>arguments.length)throw new SyntaxError("Not enough arguments");if(e=A.ToUint32(e),e>=this.length)return T;var n,r,i=this._pack(t);for(n=0,r=this.byteOffset+e*this.BYTES_PER_ELEMENT;this.BYTES_PER_ELEMENT>n;n+=1,r+=1)this.buffer._bytes[r]=i[n]},a.prototype.set=function(){if(1>arguments.length)throw new SyntaxError("Not enough arguments");var e,t,n,r,i,o,s,a,u,f;if("object"==typeof arguments[0]&&arguments[0].constructor===this.constructor){if(e=arguments[0],n=A.ToUint32(arguments[1]),n+e.length>this.length)throw new RangeError("Offset plus length of array is out of range");if(a=this.byteOffset+n*this.BYTES_PER_ELEMENT,u=e.length*this.BYTES_PER_ELEMENT,e.buffer===this.buffer){for(f=[],i=0,o=e.byteOffset;u>i;i+=1,o+=1)f[i]=e.buffer._bytes[o];for(i=0,s=a;u>i;i+=1,s+=1)this.buffer._bytes[s]=f[i]}else for(i=0,o=e.byteOffset,s=a;u>i;i+=1,o+=1,s+=1)this.buffer._bytes[s]=e.buffer._bytes[o]}else{if("object"!=typeof arguments[0]||arguments[0].length===T)throw new TypeError("Unexpected argument type(s)");if(t=arguments[0],r=A.ToUint32(t.length),n=A.ToUint32(arguments[1]),n+r>this.length)throw new RangeError("Offset plus length of array is out of range");for(i=0;r>i;i+=1)o=t[i],this._setter(n+i,Number(o))}},a.prototype.subarray=function(e,t){function n(e,t,n){return t>e?t:e>n?n:e}e=A.ToInt32(e),t=A.ToInt32(t),1>arguments.length&&(e=0),2>arguments.length&&(t=this.length),0>e&&(e=this.length+e),0>t&&(t=this.length+t),e=n(e,0,this.length),t=n(t,0,this.length);var r=t-e;return 0>r&&(r=0),new this.constructor(this.buffer,this.byteOffset+e*this.BYTES_PER_ELEMENT,r)},a}var t=function t(e){if(e=A.ToInt32(e),0>e)throw new RangeError("ArrayBuffer size is not a small enough positive integer");this.byteLength=e,this._bytes=[],this._bytes.length=e;var t;for(t=0;this.byteLength>t;t+=1)this._bytes[t]=0;r(this)};n.ArrayBuffer=n.ArrayBuffer||t;var o=function o(){},s=e(1,a,u),w=e(1,f,c),E=e(1,l,c),j=e(2,h,d),O=e(2,p,g),L=e(4,b,m),R=e(4,y,v),N=e(4,x,S),M=e(8,k,_);n.Int8Array=n.Int8Array||s,n.Uint8Array=n.Uint8Array||w,n.Uint8ClampedArray=n.Uint8ClampedArray||E,n.Int16Array=n.Int16Array||j,n.Uint16Array=n.Uint16Array||O,n.Int32Array=n.Int32Array||L,n.Uint32Array=n.Uint32Array||R,n.Float32Array=n.Float32Array||N,n.Float64Array=n.Float64Array||M})(),function(){function e(e,t){return A.IsCallable(e.get)?e.get(t):e[t]}function t(t){return function(r,i){if(r=A.ToUint32(r),r+t.BYTES_PER_ELEMENT>this.byteLength)throw new RangeError("Array index out of range");r+=this.byteOffset;var s,a=new n.Uint8Array(this.buffer,r,t.BYTES_PER_ELEMENT),u=[];for(s=0;t.BYTES_PER_ELEMENT>s;s+=1)u.push(e(a,s));return Boolean(i)===Boolean(o)&&u.reverse(),e(new t(new n.Uint8Array(u).buffer),0)}}function i(t){return function(r,i,s){if(r=A.ToUint32(r),r+t.BYTES_PER_ELEMENT>this.byteLength)throw new RangeError("Array index out of range");var a,u,f=new t([i]),c=new n.Uint8Array(f.buffer),l=[];for(a=0;t.BYTES_PER_ELEMENT>a;a+=1)l.push(e(c,a));Boolean(s)===Boolean(o)&&l.reverse(),u=new n.Uint8Array(this.buffer,r,t.BYTES_PER_ELEMENT),u.set(l)}}var o=function(){var t=new n.Uint16Array([4660]),r=new n.Uint8Array(t.buffer);return 18===e(r,0)}(),s=function s(e,t,i){if(0===arguments.length)e=new n.ArrayBuffer(0);else if(!(e instanceof n.ArrayBuffer||"ArrayBuffer"===A.Class(e)))throw new TypeError("TypeError");if(this.buffer=e||new n.ArrayBuffer(0),this.byteOffset=A.ToUint32(t),this.byteOffset>this.buffer.byteLength)throw new RangeError("byteOffset out of range");if(this.byteLength=3>arguments.length?this.buffer.byteLength-this.byteOffset:A.ToUint32(i),this.byteOffset+this.byteLength>this.buffer.byteLength)throw new RangeError("byteOffset and length reference an area beyond the end of the buffer");r(this)};s.prototype.getUint8=t(n.Uint8Array),s.prototype.getInt8=t(n.Int8Array),s.prototype.getUint16=t(n.Uint16Array),s.prototype.getInt16=t(n.Int16Array),s.prototype.getUint32=t(n.Uint32Array),s.prototype.getInt32=t(n.Int32Array),s.prototype.getFloat32=t(n.Float32Array),s.prototype.getFloat64=t(n.Float64Array),s.prototype.setUint8=i(n.Uint8Array),s.prototype.setInt8=i(n.Int8Array),s.prototype.setUint16=i(n.Uint16Array),s.prototype.setInt16=i(n.Int16Array),s.prototype.setUint32=i(n.Uint32Array),s.prototype.setInt32=i(n.Int32Array),s.prototype.setFloat32=i(n.Float32Array),s.prototype.setFloat64=i(n.Float64Array),n.DataView=n.DataView||s}()},{}],34:[function(e,t){function n(e,t,n){o(this,{type:e,name:e,cause:"string"!=typeof t?t:n,message:t&&"string"!=typeof t?t.message:t},"ewr")}function r(e,t){Error.call(this),Error.captureStackTrace&&Error.captureStackTrace(this,arguments.callee),n.call(this,"CustomError",e,t)}function i(e,t,i){var o=function(r,i){n.call(this,t,r,i),"FilesystemError"==t&&(this.code=this.cause.code,this.path=this.cause.path,this.errno=this.cause.errno,this.message=(e.errno[this.cause.errno]?e.errno[this.cause.errno].description:this.cause.message)+(this.cause.path?" ["+this.cause.path+"]":"")),Error.call(this),Error.captureStackTrace&&Error.captureStackTrace(this,arguments.callee)};return o.prototype=i?new i:new r,o}var o=e("prr");r.prototype=Error(),t.exports=function(e){var t=function(t,n){return i(e,t,n)};return{CustomError:r,FilesystemError:t("FilesystemError"),createError:t}}},{prr:36}],35:[function(e,t){var n=t.exports.all=[{errno:-1,code:"UNKNOWN",description:"unknown error"},{errno:0,code:"OK",description:"success"},{errno:1,code:"EOF",description:"end of file"},{errno:2,code:"EADDRINFO",description:"getaddrinfo error"},{errno:3,code:"EACCES",description:"permission denied"},{errno:4,code:"EAGAIN",description:"resource temporarily unavailable"},{errno:5,code:"EADDRINUSE",description:"address already in use"},{errno:6,code:"EADDRNOTAVAIL",description:"address not available"},{errno:7,code:"EAFNOSUPPORT",description:"address family not supported"},{errno:8,code:"EALREADY",description:"connection already in progress"},{errno:9,code:"EBADF",description:"bad file descriptor"},{errno:10,code:"EBUSY",description:"resource busy or locked"},{errno:11,code:"ECONNABORTED",description:"software caused connection abort"},{errno:12,code:"ECONNREFUSED",description:"connection refused"},{errno:13,code:"ECONNRESET",description:"connection reset by peer"},{errno:14,code:"EDESTADDRREQ",description:"destination address required"},{errno:15,code:"EFAULT",description:"bad address in system call argument"},{errno:16,code:"EHOSTUNREACH",description:"host is unreachable"},{errno:17,code:"EINTR",description:"interrupted system call"},{errno:18,code:"EINVAL",description:"invalid argument"},{errno:19,code:"EISCONN",description:"socket is already connected"},{errno:20,code:"EMFILE",description:"too many open files"},{errno:21,code:"EMSGSIZE",description:"message too long"},{errno:22,code:"ENETDOWN",description:"network is down"},{errno:23,code:"ENETUNREACH",description:"network is unreachable"},{errno:24,code:"ENFILE",description:"file table overflow"},{errno:25,code:"ENOBUFS",description:"no buffer space available"},{errno:26,code:"ENOMEM",description:"not enough memory"},{errno:27,code:"ENOTDIR",description:"not a directory"},{errno:28,code:"EISDIR",description:"illegal operation on a directory"},{errno:29,code:"ENONET",description:"machine is not on the network"},{errno:31,code:"ENOTCONN",description:"socket is not connected"},{errno:32,code:"ENOTSOCK",description:"socket operation on non-socket"},{errno:33,code:"ENOTSUP",description:"operation not supported on socket"},{errno:34,code:"ENOENT",description:"no such file or directory"},{errno:35,code:"ENOSYS",description:"function not implemented"},{errno:36,code:"EPIPE",description:"broken pipe"},{errno:37,code:"EPROTO",description:"protocol error"},{errno:38,code:"EPROTONOSUPPORT",description:"protocol not supported"},{errno:39,code:"EPROTOTYPE",description:"protocol wrong type for socket"},{errno:40,code:"ETIMEDOUT",description:"connection timed out"},{errno:41,code:"ECHARSET",description:"invalid Unicode character"},{errno:42,code:"EAIFAMNOSUPPORT",description:"address family for hostname not supported"},{errno:44,code:"EAISERVICE",description:"servname not supported for ai_socktype"},{errno:45,code:"EAISOCKTYPE",description:"ai_socktype not supported"},{errno:46,code:"ESHUTDOWN",description:"cannot send after transport endpoint shutdown"},{errno:47,code:"EEXIST",description:"file already exists"},{errno:48,code:"ESRCH",description:"no such process"},{errno:49,code:"ENAMETOOLONG",description:"name too long"},{errno:50,code:"EPERM",description:"operation not permitted"},{errno:51,code:"ELOOP",description:"too many symbolic links encountered"},{errno:52,code:"EXDEV",description:"cross-device link not permitted"},{errno:53,code:"ENOTEMPTY",description:"directory not empty"},{errno:54,code:"ENOSPC",description:"no space left on device"},{errno:55,code:"EIO",description:"i/o error"},{errno:56,code:"EROFS",description:"read-only file system"},{errno:57,code:"ENODEV",description:"no such device"},{errno:58,code:"ESPIPE",description:"invalid seek"},{errno:59,code:"ECANCELED",description:"operation canceled"}];t.exports.errno={"-1":n[0],0:n[1],1:n[2],2:n[3],3:n[4],4:n[5],5:n[6],6:n[7],7:n[8],8:n[9],9:n[10],10:n[11],11:n[12],12:n[13],13:n[14],14:n[15],15:n[16],16:n[17],17:n[18],18:n[19],19:n[20],20:n[21],21:n[22],22:n[23],23:n[24],24:n[25],25:n[26],26:n[27],27:n[28],28:n[29],29:n[30],31:n[31],32:n[32],33:n[33],34:n[34],35:n[35],36:n[36],37:n[37],38:n[38],39:n[39],40:n[40],41:n[41],42:n[42],44:n[43],45:n[44],46:n[45],47:n[46],48:n[47],49:n[48],50:n[49],51:n[50],52:n[51],53:n[52],54:n[53],55:n[54],56:n[55],57:n[56],58:n[57],59:n[58]},t.exports.code={UNKNOWN:n[0],OK:n[1],EOF:n[2],EADDRINFO:n[3],EACCES:n[4],EAGAIN:n[5],EADDRINUSE:n[6],EADDRNOTAVAIL:n[7],EAFNOSUPPORT:n[8],EALREADY:n[9],EBADF:n[10],EBUSY:n[11],ECONNABORTED:n[12],ECONNREFUSED:n[13],ECONNRESET:n[14],EDESTADDRREQ:n[15],EFAULT:n[16],EHOSTUNREACH:n[17],EINTR:n[18],EINVAL:n[19],EISCONN:n[20],EMFILE:n[21],EMSGSIZE:n[22],ENETDOWN:n[23],ENETUNREACH:n[24],ENFILE:n[25],ENOBUFS:n[26],ENOMEM:n[27],ENOTDIR:n[28],EISDIR:n[29],ENONET:n[30],ENOTCONN:n[31],ENOTSOCK:n[32],ENOTSUP:n[33],ENOENT:n[34],ENOSYS:n[35],EPIPE:n[36],EPROTO:n[37],EPROTONOSUPPORT:n[38],EPROTOTYPE:n[39],ETIMEDOUT:n[40],ECHARSET:n[41],EAIFAMNOSUPPORT:n[42],EAISERVICE:n[43],EAISOCKTYPE:n[44],ESHUTDOWN:n[45],EEXIST:n[46],ESRCH:n[47],ENAMETOOLONG:n[48],EPERM:n[49],ELOOP:n[50],EXDEV:n[51],ENOTEMPTY:n[52],ENOSPC:n[53],EIO:n[54],EROFS:n[55],ENODEV:n[56],ESPIPE:n[57],ECANCELED:n[58]},t.exports.custom=e("./custom")(t.exports),t.exports.create=t.exports.custom.createError
},{"./custom":34}],36:[function(e,t){(function(e,n,r){t!==void 0&&t.exports?t.exports=r():n[e]=r()})("prr",this,function(){var e="function"==typeof Object.defineProperty?function(e,t,n){return Object.defineProperty(e,t,n),e}:function(e,t,n){return e[t]=n.value,e},t=function(e,t){var n="object"==typeof t,r=!n&&"string"==typeof t,i=function(e){return n?!!t[e]:r?t.indexOf(e[0])>-1:!1};return{enumerable:i("enumerable"),configurable:i("configurable"),writable:i("writable"),value:e}},n=function(n,r,i,o){var s;if(o=t(i,o),"object"==typeof r){for(s in r)Object.hasOwnProperty.call(r,s)&&(o.value=r[s],e(n,s,o));return n}return e(n,r,o)};return n})},{}],37:[function(e,t,n){(function(t,r){var i=e("readable-stream/writable"),o=e("readable-stream/readable"),s=e("readable-stream/duplex"),a=new r(0),u=function(){},f=function(e){return"function"==typeof e?e:function(t){t(null,e)}},c=function(e,n){var r=!1,i=!1;return e._read=function(){r=!0},e.destroy=function(){i=!0},n(function(n,o){if(n)return e.emit("error",n);var s=function(){for(var t;null!==(t=o.read());)r=!1,e.push(t)};return o.on("readable",function(){r&&s()}),o.on("end",function(){s(),e.push(null)}),o.on("error",function(t){e.emit("error",t)}),o.on("close",function(){s(),t.nextTick(function(){e.emit("close")})}),e._read=function(){r=!0,s()},e.destroy=function(){i||(i=!0,o.destroy&&o.destroy())},i?(i=!1,e.destroy(),void 0):(r&&s(),void 0)}),e},l=function(e,t){var n=u,r=!1;return e._write=function(e,t,r){n=r},e.destroy=function(){r=!0},e.write(a),t(function(t,i){if(t)return e.emit("error",t);i.on("close",function(){e.emit("close")}),i.on("error",function(t){e.emit("error",t)}),e._write=function(e,t,n){return e===a?n():(i.write(e,t,n),void 0)};var o=e.emit;return i.on("finish",function(){o.call(e,"finish")}),e.destroy=function(){r||(r=!0,i.destroy&&i.destroy())},e.emit=function(t){return"finish"!==t?o.apply(e,arguments):(i.end(),void 0)},r?(r=!1,e.destroy(),void 0):(n(),void 0)}),e};n.readable=function(e,t){return 1===arguments.length?n.readable(null,e):(e||(e={}),c(new o(e),f(t)))},n.writable=function(e,t){return 1===arguments.length?n.writable(null,e):(e||(e={}),l(new i(e),f(t)))},n.duplex=function(e,t,r){if(2===arguments.length)return n.duplex(null,e,t);e||(e={});var i=new s(e);return l(i,f(t)),c(i,f(r)),i}}).call(this,e("/home/admin/browserify-cdn/node_modules/browserify/node_modules/insert-module-globals/node_modules/process/browser.js"),e("buffer").Buffer)},{"/home/admin/browserify-cdn/node_modules/browserify/node_modules/insert-module-globals/node_modules/process/browser.js":4,buffer:5,"readable-stream/duplex":38,"readable-stream/readable":48,"readable-stream/writable":49}],38:[function(e,t){t.exports=e("./lib/_stream_duplex.js")},{"./lib/_stream_duplex.js":39}],39:[function(e,t,n){arguments[4][24][0].apply(n,arguments)},{"./_stream_readable":41,"./_stream_writable":43,"/home/admin/browserify-cdn/node_modules/browserify/node_modules/insert-module-globals/node_modules/process/browser.js":4,"core-util-is":44,inherits:45}],40:[function(e,t,n){arguments[4][25][0].apply(n,arguments)},{"./_stream_transform":42,"core-util-is":44,inherits:45}],41:[function(e,t){(function(n){function r(t){t=t||{};var n=t.highWaterMark;this.highWaterMark=n||0===n?n:16384,this.highWaterMark=~~this.highWaterMark,this.buffer=[],this.length=0,this.pipes=null,this.pipesCount=0,this.flowing=!1,this.ended=!1,this.endEmitted=!1,this.reading=!1,this.calledRead=!1,this.sync=!0,this.needReadable=!1,this.emittedReadable=!1,this.readableListening=!1,this.objectMode=!!t.objectMode,this.defaultEncoding=t.defaultEncoding||"utf8",this.ranOut=!1,this.awaitDrain=0,this.readingMore=!1,this.decoder=null,this.encoding=null,t.encoding&&(O||(O=e("string_decoder/").StringDecoder),this.decoder=new O(t.encoding),this.encoding=t.encoding)}function i(e){return this instanceof i?(this._readableState=new r(e,this),this.readable=!0,j.call(this),void 0):new i(e)}function o(e,t,n,r,i){var o=f(t,n);if(o)e.emit("error",o);else if(null===n||void 0===n)t.reading=!1,t.ended||c(e,t);else if(t.objectMode||n&&n.length>0)if(t.ended&&!i){var a=Error("stream.push() after EOF");e.emit("error",a)}else if(t.endEmitted&&i){var a=Error("stream.unshift() after end event");e.emit("error",a)}else!t.decoder||i||r||(n=t.decoder.write(n)),t.length+=t.objectMode?1:n.length,i?t.buffer.unshift(n):(t.reading=!1,t.buffer.push(n)),t.needReadable&&l(e),d(e,t);else i||(t.reading=!1);return s(t)}function s(e){return!e.ended&&(e.needReadable||e.length<e.highWaterMark||0===e.length)}function a(e){if(e>=A)e=A;else{e--;for(var t=1;32>t;t<<=1)e|=e>>t;e++}return e}function u(e,t){return 0===t.length&&t.ended?0:t.objectMode?0===e?0:1:isNaN(e)||null===e?t.flowing&&t.buffer.length?t.buffer[0].length:t.length:0>=e?0:(e>t.highWaterMark&&(t.highWaterMark=a(e)),e>t.length?t.ended?t.length:(t.needReadable=!0,0):e)}function f(e,t){var n=null;return S.isBuffer(t)||"string"==typeof t||null===t||void 0===t||e.objectMode||n||(n=new TypeError("Invalid non-string/buffer chunk")),n}function c(e,t){if(t.decoder&&!t.ended){var n=t.decoder.end();n&&n.length&&(t.buffer.push(n),t.length+=t.objectMode?1:n.length)}t.ended=!0,t.length>0?l(e):w(e)}function l(e){var t=e._readableState;t.needReadable=!1,t.emittedReadable||(t.emittedReadable=!0,t.sync?n.nextTick(function(){h(e)}):h(e))}function h(e){e.emit("readable")}function d(e,t){t.readingMore||(t.readingMore=!0,n.nextTick(function(){p(e,t)}))}function p(e,t){for(var n=t.length;!t.reading&&!t.flowing&&!t.ended&&t.length<t.highWaterMark&&(e.read(0),n!==t.length);)n=t.length;t.readingMore=!1}function g(e){return function(){var t=e._readableState;t.awaitDrain--,0===t.awaitDrain&&b(e)}}function b(e){function t(e){var t=e.write(n);!1===t&&r.awaitDrain++}var n,r=e._readableState;for(r.awaitDrain=0;r.pipesCount&&null!==(n=e.read());)if(1===r.pipesCount?t(r.pipes,0,null):E(r.pipes,t),e.emit("data",n),r.awaitDrain>0)return;return 0===r.pipesCount?(r.flowing=!1,x.listenerCount(e,"data")>0&&y(e),void 0):(r.ranOut=!0,void 0)}function m(){this._readableState.ranOut&&(this._readableState.ranOut=!1,b(this))}function y(e,t){var r=e._readableState;if(r.flowing)throw Error("Cannot switch to old mode now.");var i=t||!1,o=!1;e.readable=!0,e.pipe=j.prototype.pipe,e.on=e.addListener=j.prototype.on,e.on("readable",function(){o=!0;for(var t;!i&&null!==(t=e.read());)e.emit("data",t);null===t&&(o=!1,e._readableState.needReadable=!0)}),e.pause=function(){i=!0,this.emit("pause")},e.resume=function(){i=!1,o?n.nextTick(function(){e.emit("readable")}):this.read(0),this.emit("resume")},e.emit("readable")}function v(e,t){var n,r=t.buffer,i=t.length,o=!!t.decoder,s=!!t.objectMode;if(0===r.length)return null;if(0===i)n=null;else if(s)n=r.shift();else if(!e||e>=i)n=o?r.join(""):S.concat(r,i),r.length=0;else if(r[0].length>e){var a=r[0];n=a.slice(0,e),r[0]=a.slice(e)}else if(e===r[0].length)n=r.shift();else{n=o?"":new S(e);for(var u=0,f=0,c=r.length;c>f&&e>u;f++){var a=r[0],l=Math.min(e-u,a.length);o?n+=a.slice(0,l):a.copy(n,u,0,l),a.length>l?r[0]=a.slice(l):r.shift(),u+=l}}return n}function w(e){var t=e._readableState;if(t.length>0)throw Error("endReadable called on non-empty stream");!t.endEmitted&&t.calledRead&&(t.ended=!0,n.nextTick(function(){t.endEmitted||0!==t.length||(t.endEmitted=!0,e.readable=!1,e.emit("end"))}))}function E(e,t){for(var n=0,r=e.length;r>n;n++)t(e[n],n)}function _(e,t){for(var n=0,r=e.length;r>n;n++)if(e[n]===t)return n;return-1}t.exports=i;var k=e("isarray"),S=e("buffer").Buffer;i.ReadableState=r;var x=e("events").EventEmitter;x.listenerCount||(x.listenerCount=function(e,t){return e.listeners(t).length});var j=e("stream"),T=e("core-util-is");T.inherits=e("inherits");var O;T.inherits(i,j),i.prototype.push=function(e,t){var n=this._readableState;return"string"!=typeof e||n.objectMode||(t=t||n.defaultEncoding,t!==n.encoding&&(e=new S(e,t),t="")),o(this,n,e,t,!1)},i.prototype.unshift=function(e){var t=this._readableState;return o(this,t,e,"",!0)},i.prototype.setEncoding=function(t){O||(O=e("string_decoder/").StringDecoder),this._readableState.decoder=new O(t),this._readableState.encoding=t};var A=8388608;i.prototype.read=function(e){var t=this._readableState;t.calledRead=!0;var n=e;if(("number"!=typeof e||e>0)&&(t.emittedReadable=!1),0===e&&t.needReadable&&(t.length>=t.highWaterMark||t.ended))return l(this),null;if(e=u(e,t),0===e&&t.ended)return 0===t.length&&w(this),null;var r=t.needReadable;t.length-e<=t.highWaterMark&&(r=!0),(t.ended||t.reading)&&(r=!1),r&&(t.reading=!0,t.sync=!0,0===t.length&&(t.needReadable=!0),this._read(t.highWaterMark),t.sync=!1),r&&!t.reading&&(e=u(n,t));var i;return i=e>0?v(e,t):null,null===i&&(t.needReadable=!0,e=0),t.length-=e,0!==t.length||t.ended||(t.needReadable=!0),t.ended&&!t.endEmitted&&0===t.length&&w(this),i},i.prototype._read=function(){this.emit("error",Error("not implemented"))},i.prototype.pipe=function(e,t){function r(e){e===c&&o()}function i(){e.end()}function o(){e.removeListener("close",a),e.removeListener("finish",u),e.removeListener("drain",p),e.removeListener("error",s),e.removeListener("unpipe",r),c.removeListener("end",i),c.removeListener("end",o),(!e._writableState||e._writableState.needDrain)&&p()}function s(t){f(),e.removeListener("error",s),0===x.listenerCount(e,"error")&&e.emit("error",t)}function a(){e.removeListener("finish",u),f()}function u(){e.removeListener("close",a),f()}function f(){c.unpipe(e)}var c=this,l=this._readableState;switch(l.pipesCount){case 0:l.pipes=e;break;case 1:l.pipes=[l.pipes,e];break;default:l.pipes.push(e)}l.pipesCount+=1;var h=(!t||t.end!==!1)&&e!==n.stdout&&e!==n.stderr,d=h?i:o;l.endEmitted?n.nextTick(d):c.once("end",d),e.on("unpipe",r);var p=g(c);return e.on("drain",p),e._events&&e._events.error?k(e._events.error)?e._events.error.unshift(s):e._events.error=[s,e._events.error]:e.on("error",s),e.once("close",a),e.once("finish",u),e.emit("pipe",c),l.flowing||(this.on("readable",m),l.flowing=!0,n.nextTick(function(){b(c)})),e},i.prototype.unpipe=function(e){var t=this._readableState;if(0===t.pipesCount)return this;if(1===t.pipesCount)return e&&e!==t.pipes?this:(e||(e=t.pipes),t.pipes=null,t.pipesCount=0,this.removeListener("readable",m),t.flowing=!1,e&&e.emit("unpipe",this),this);if(!e){var n=t.pipes,r=t.pipesCount;t.pipes=null,t.pipesCount=0,this.removeListener("readable",m),t.flowing=!1;for(var i=0;r>i;i++)n[i].emit("unpipe",this);return this}var i=_(t.pipes,e);return-1===i?this:(t.pipes.splice(i,1),t.pipesCount-=1,1===t.pipesCount&&(t.pipes=t.pipes[0]),e.emit("unpipe",this),this)},i.prototype.on=function(e,t){var n=j.prototype.on.call(this,e,t);if("data"!==e||this._readableState.flowing||y(this),"readable"===e&&this.readable){var r=this._readableState;r.readableListening||(r.readableListening=!0,r.emittedReadable=!1,r.needReadable=!0,r.reading?r.length&&l(this,r):this.read(0))}return n},i.prototype.addListener=i.prototype.on,i.prototype.resume=function(){y(this),this.read(0),this.emit("resume")},i.prototype.pause=function(){y(this,!0),this.emit("pause")},i.prototype.wrap=function(e){var t=this._readableState,n=!1,r=this;e.on("end",function(){if(t.decoder&&!t.ended){var e=t.decoder.end();e&&e.length&&r.push(e)}r.push(null)}),e.on("data",function(i){if(t.decoder&&(i=t.decoder.write(i)),i&&(t.objectMode||i.length)){var o=r.push(i);o||(n=!0,e.pause())}});for(var i in e)"function"==typeof e[i]&&this[i]===void 0&&(this[i]=function(t){return function(){return e[t].apply(e,arguments)}}(i));var o=["error","close","destroy","pause","resume"];return E(o,function(t){e.on(t,r.emit.bind(r,t))}),r._read=function(){n&&(n=!1,e.resume())},r},i._fromList=v}).call(this,e("/home/admin/browserify-cdn/node_modules/browserify/node_modules/insert-module-globals/node_modules/process/browser.js"))},{"/home/admin/browserify-cdn/node_modules/browserify/node_modules/insert-module-globals/node_modules/process/browser.js":4,buffer:5,"core-util-is":44,events:2,inherits:45,isarray:46,stream:10,"string_decoder/":47}],42:[function(e,t){function n(e,t){this.afterTransform=function(e,n){return r(t,e,n)},this.needTransform=!1,this.transforming=!1,this.writecb=null,this.writechunk=null}function r(e,t,n){var r=e._transformState;r.transforming=!1;var i=r.writecb;if(!i)return e.emit("error",Error("no writecb in Transform class"));r.writechunk=null,r.writecb=null,null!==n&&void 0!==n&&e.push(n),i&&i(t);var o=e._readableState;o.reading=!1,(o.needReadable||o.length<o.highWaterMark)&&e._read(o.highWaterMark)}function i(e){if(!(this instanceof i))return new i(e);s.call(this,e),this._transformState=new n(e,this);var t=this;this._readableState.needReadable=!0,this._readableState.sync=!1,this.once("finish",function(){"function"==typeof this._flush?this._flush(function(e){o(t,e)}):o(t)})}function o(e,t){if(t)return e.emit("error",t);var n=e._writableState;e._readableState;var r=e._transformState;if(n.length)throw Error("calling transform done when ws.length != 0");if(r.transforming)throw Error("calling transform done when still transforming");return e.push(null)}t.exports=i;var s=e("./_stream_duplex"),a=e("core-util-is");a.inherits=e("inherits"),a.inherits(i,s),i.prototype.push=function(e,t){return this._transformState.needTransform=!1,s.prototype.push.call(this,e,t)},i.prototype._transform=function(){throw Error("not implemented")},i.prototype._write=function(e,t,n){var r=this._transformState;if(r.writecb=n,r.writechunk=e,r.writeencoding=t,!r.transforming){var i=this._readableState;(r.needTransform||i.needReadable||i.length<i.highWaterMark)&&this._read(i.highWaterMark)}},i.prototype._read=function(){var e=this._transformState;null!==e.writechunk&&e.writecb&&!e.transforming?(e.transforming=!0,this._transform(e.writechunk,e.writeencoding,e.afterTransform)):e.needTransform=!0}},{"./_stream_duplex":39,"core-util-is":44,inherits:45}],43:[function(e,t){(function(n){function r(e,t,n){this.chunk=e,this.encoding=t,this.callback=n}function i(e,t){e=e||{};var n=e.highWaterMark;this.highWaterMark=n||0===n?n:16384,this.objectMode=!!e.objectMode,this.highWaterMark=~~this.highWaterMark,this.needDrain=!1,this.ending=!1,this.ended=!1,this.finished=!1;var r=e.decodeStrings===!1;this.decodeStrings=!r,this.defaultEncoding=e.defaultEncoding||"utf8",this.length=0,this.writing=!1,this.sync=!0,this.bufferProcessing=!1,this.onwrite=function(e){d(t,e)},this.writecb=null,this.writelen=0,this.buffer=[],this.errorEmitted=!1}function o(t){var n=e("./_stream_duplex");return this instanceof o||this instanceof n?(this._writableState=new i(t,this),this.writable=!0,_.call(this),void 0):new o(t)}function s(e,t,r){var i=Error("write after end");e.emit("error",i),n.nextTick(function(){r(i)})}function a(e,t,r,i){var o=!0;if(!w.isBuffer(r)&&"string"!=typeof r&&null!==r&&void 0!==r&&!t.objectMode){var s=new TypeError("Invalid non-string/buffer chunk");e.emit("error",s),n.nextTick(function(){i(s)}),o=!1}return o}function u(e,t,n){return e.objectMode||e.decodeStrings===!1||"string"!=typeof t||(t=new w(t,n)),t}function f(e,t,n,i,o){n=u(t,n,i),w.isBuffer(n)&&(i="buffer");var s=t.objectMode?1:n.length;t.length+=s;var a=t.length<t.highWaterMark;return a||(t.needDrain=!0),t.writing?t.buffer.push(new r(n,i,o)):c(e,t,s,n,i,o),a}function c(e,t,n,r,i,o){t.writelen=n,t.writecb=o,t.writing=!0,t.sync=!0,e._write(r,i,t.onwrite),t.sync=!1}function l(e,t,r,i,o){r?n.nextTick(function(){o(i)}):o(i),e._writableState.errorEmitted=!0,e.emit("error",i)}function h(e){e.writing=!1,e.writecb=null,e.length-=e.writelen,e.writelen=0}function d(e,t){var r=e._writableState,i=r.sync,o=r.writecb;if(h(r),t)l(e,r,i,t,o);else{var s=m(e,r);s||r.bufferProcessing||!r.buffer.length||b(e,r),i?n.nextTick(function(){p(e,r,s,o)}):p(e,r,s,o)}}function p(e,t,n,r){n||g(e,t),r(),n&&y(e,t)}function g(e,t){0===t.length&&t.needDrain&&(t.needDrain=!1,e.emit("drain"))}function b(e,t){t.bufferProcessing=!0;for(var n=0;t.buffer.length>n;n++){var r=t.buffer[n],i=r.chunk,o=r.encoding,s=r.callback,a=t.objectMode?1:i.length;if(c(e,t,a,i,o,s),t.writing){n++;break}}t.bufferProcessing=!1,t.buffer.length>n?t.buffer=t.buffer.slice(n):t.buffer.length=0}function m(e,t){return t.ending&&0===t.length&&!t.finished&&!t.writing}function y(e,t){var n=m(e,t);return n&&(t.finished=!0,e.emit("finish")),n}function v(e,t,r){t.ending=!0,y(e,t),r&&(t.finished?n.nextTick(r):e.once("finish",r)),t.ended=!0}t.exports=o;var w=e("buffer").Buffer;o.WritableState=i;var E=e("core-util-is");E.inherits=e("inherits");var _=e("stream");E.inherits(o,_),o.prototype.pipe=function(){this.emit("error",Error("Cannot pipe. Not readable."))},o.prototype.write=function(e,t,n){var r=this._writableState,i=!1;return"function"==typeof t&&(n=t,t=null),w.isBuffer(e)?t="buffer":t||(t=r.defaultEncoding),"function"!=typeof n&&(n=function(){}),r.ended?s(this,r,n):a(this,r,e,n)&&(i=f(this,r,e,t,n)),i},o.prototype._write=function(e,t,n){n(Error("not implemented"))},o.prototype.end=function(e,t,n){var r=this._writableState;"function"==typeof e?(n=e,e=null,t=null):"function"==typeof t&&(n=t,t=null),e!==void 0&&null!==e&&this.write(e,t),r.ending||r.finished||v(this,r,n)}}).call(this,e("/home/admin/browserify-cdn/node_modules/browserify/node_modules/insert-module-globals/node_modules/process/browser.js"))},{"./_stream_duplex":39,"/home/admin/browserify-cdn/node_modules/browserify/node_modules/insert-module-globals/node_modules/process/browser.js":4,buffer:5,"core-util-is":44,inherits:45,stream:10}],44:[function(e,t){t.exports=e(29)},{buffer:5}],45:[function(e,t){t.exports=e(3)},{}],46:[function(e,t){t.exports=e(30)},{}],47:[function(e,t){t.exports=e(31)},{buffer:5}],48:[function(e,t,n){n=t.exports=e("./lib/_stream_readable.js"),n.Readable=n,n.Writable=e("./lib/_stream_writable.js"),n.Duplex=e("./lib/_stream_duplex.js"),n.Transform=e("./lib/_stream_transform.js"),n.PassThrough=e("./lib/_stream_passthrough.js")},{"./lib/_stream_duplex.js":39,"./lib/_stream_passthrough.js":40,"./lib/_stream_readable.js":41,"./lib/_stream_transform.js":42,"./lib/_stream_writable.js":43}],49:[function(e,t){t.exports=e("./lib/_stream_writable.js")},{"./lib/_stream_writable.js":43}],50:[function(e,t){(function(n,r){var i=e("readable-stream/writable"),o=e("readable-stream/readable"),s=e("level-peek"),a=e("util"),u=e("once"),f=new r(0),c={encode:function(e){return"string"==typeof e?e=new r(e):e},decode:function(e){return r.isBuffer(e)?e:new r(e)},buffer:!0,type:"raw"},l=function(){},h=function(e){return e=e.toString(16),"00000000".slice(0,-e.length)+e},d=function(e,t){var n=new r(t);return e.copy(n),n};t.exports=function(e,t){t||(t={});var p={},g=t.blockSize||65536,b=t.batch||100,m=new r(g);e.put("\0","ignore",l);var y={},v=function(t,n,i,o,s){var a=function(){--y[t].locks||delete y[t]},u=function(e){return e.locks++,e.block||n?(e.block||(e.block=new r(g)),e.block.length<n+i.length&&(e.block=d(e.block,n+i.length)),i.copy(e.block,n),!o&&n+i.length<e.block.length&&(e.block=e.block.slice(0,n+i.length)),s(null,e.block,a),void 0):(e.block=i,s(null,e.block,a),void 0)};return y[t]?u(y[t]):(e.get(t,{valueEncoding:c},function(e,n){return e&&!e.notFound?s(e):(y[t]||(y[t]={locks:0,block:n}),u(y[t]),void 0)}),void 0)},w=function(e,t){return this instanceof w?(t||(t={}),this.name=e,this.blocks=[],this.batch=[],this.bytesWritten=0,this.truncate=!t.append,this.append=t.append,this._shouldInitAppend=this.append&&void 0===t.start,this._destroyed=!1,this._init(t.start||0),i.call(this),void 0):new w(e,t)};a.inherits(w,i),w.prototype._init=function(e){this.blockIndex=0|e/g,this.blockOffset=e-this.blockIndex*g,this.blockLength=this.blockOffset},w.prototype._flush=function(t){if(!this.batch.length)return t();var n=this.batch[this.batch.length-1].key,r=this.batch;return this.batch=[],this.truncate?(this.truncate=!1,this._truncate(r,n,t),void 0):e.batch(r,t)},w.prototype._truncate=function(t,n,r){r=u(r);var i=[],o=e.createKeyStream({start:n,end:this.name+"ÿÿ"});o.on("error",r),o.on("data",function(e){i.push({type:"del",key:e})}),o.on("end",function(){i.push.apply(i,t),e.batch(i,r)})},w.prototype._writeBlock=function(e){var t=1===this.blocks.length?this.blocks[0]:r.concat(this.blocks,this.blockLength-this.blockOffset),n=this.blockIndex,i=this.blockOffset,o=this;this.blockOffset=0,this.blockLength=0,this.blockIndex++,this.blocks=[];var s=this.name+"ÿ"+h(n),a=function(e,t,n){return o.batch.push({type:"put",key:s,value:e,valueEncoding:c}),!t&&b>o.batch.length?n():o._flush(n)};return i||t.length!==g?i||this.append?(v(s,i,t,this.append,function(t,n,r){return t?e(t):(a(n,!0,function(t){r(),e(t)}),void 0)}),void 0):a(t,!1,e):a(t,!1,e)},w.prototype._initAppend=function(e,t,n){var r=this;this._shouldInitAppend=!1,p.size(this.name,function(i,o){return i?n(i):(r._init(o),r._write(e,t,n),void 0)})},w.prototype._write=function(e,t,n){if(!e.length||this._destroyed)return n();if(this._shouldInitAppend)return this._initAppend(e,t,n);var r,i=this,o=g-this.blockLength,s=function(e){return e?n(e):r?i._write(r,t,n):(n(),void 0)};return e.length>o&&(r=e.slice(o),e=e.slice(0,o)),this.bytesWritten+=e.length,this.blockLength+=e.length,this.blocks.push(e),o>e.length?s():(this._writeBlock(s),void 0)},w.prototype.destroy=function(){this._destroyed||(this._destroyed=!0,n.nextTick(this.emit.bind(this,"close")))},w.prototype.end=function(e){var t=this,n=arguments;e&&"function"!=typeof e&&(this.write(e),e=f),this.write(f,function(){t._writeBlock(function(e){return e?t.emit("error",e):(t._flush(function(e){return e?t.emit("error",e):(i.prototype.end.apply(t,n),void 0)}),void 0)})})};var E=function(t,n){n||(n={});var r=this,i=n.start||0,s=0|i/g,a=i-s*g,u=t+"ÿ"+h(s);this.name=t,this._missing=("number"==typeof n.end?n.end:1/0)-i+1,this._paused=!1,this._destroyed=!1,this._reader=e.createReadStream({start:u,end:t+"ÿÿ",valueEncoding:c});var f=function(e){return u=t+"ÿ"+h(++s),r._missing?a&&(e=e.slice(a),a=0,!e.length)?!0:(e.length>r._missing&&(e=e.slice(0,r._missing)),r._missing-=e.length,r._pause(!r.push(e)),!!r._missing):!1};this._reader.on("data",function(e){for(;e.key>u;)if(!f(m))return;f(e.value)}),this._reader.on("error",function(e){r.emit("error",e)}),this._reader.on("end",function(){r.push(null)}),o.call(this)};return a.inherits(E,o),E.prototype.destroy=function(){this._destroyed||(this._destroyed=!0,this._reader.destroy(),n.nextTick(this.emit.bind(this,"close")))},E.prototype._pause=function(e){this._paused!==e&&(this._paused=e,this._paused?this._reader.pause():this._reader.resume())},E.prototype._read=function(){this._pause(!1)},p.remove=function(t,n){n=u(n||l);var r=[],i=e.createKeyStream({start:t+"ÿ",end:t+"ÿÿ"});i.on("error",n),i.on("data",function(e){r.push({type:"del",key:e})}),i.on("end",function(){e.batch(r,n)})},p.size=function(t,n){s.last(e,{start:t+"ÿ",end:t+"ÿÿ",valueEncoding:c},function(e,r,i){return e&&"range not found"===e.message?n(null,0):e?n(e):r.slice(0,t.length+1)!==t+"ÿ"?n(null,0):(n(null,parseInt((""+r).slice(t.length+1),16)*g+i.length),void 0)})},p.write=function(e,t,n,r){if("function"==typeof n)return p.write(e,t,null,n);n||(n={}),r||(r=l);var i=p.createWriteStream(e,n);i.on("error",r),i.on("finish",function(){r()}),i.write(t),i.end()},p.read=function(e,t,n){if("function"==typeof t)return p.read(e,null,t);t||(t={});var i=p.createReadStream(e,t),o=[];i.on("error",n),i.on("data",function(e){o.push(e)}),i.on("end",function(){n(null,1===o.length?o[0]:r.concat(o))})},p.createReadStream=function(e,t){return new E(e,t)},p.createWriteStream=function(e,t){return new w(e,t)},p}}).call(this,e("/home/admin/browserify-cdn/node_modules/browserify/node_modules/insert-module-globals/node_modules/process/browser.js"),e("buffer").Buffer)},{"/home/admin/browserify-cdn/node_modules/browserify/node_modules/insert-module-globals/node_modules/process/browser.js":4,buffer:5,"level-peek":62,once:77,"readable-stream/readable":60,"readable-stream/writable":61,util:18}],51:[function(e,t,n){arguments[4][24][0].apply(n,arguments)},{"./_stream_readable":53,"./_stream_writable":55,"/home/admin/browserify-cdn/node_modules/browserify/node_modules/insert-module-globals/node_modules/process/browser.js":4,"core-util-is":56,inherits:57}],52:[function(e,t,n){arguments[4][25][0].apply(n,arguments)},{"./_stream_transform":54,"core-util-is":56,inherits:57}],53:[function(e,t){t.exports=e(41)},{"/home/admin/browserify-cdn/node_modules/browserify/node_modules/insert-module-globals/node_modules/process/browser.js":4,buffer:5,"core-util-is":56,events:2,inherits:57,isarray:58,stream:10,"string_decoder/":59}],54:[function(e,t,n){arguments[4][42][0].apply(n,arguments)},{"./_stream_duplex":51,"core-util-is":56,inherits:57}],55:[function(e,t,n){arguments[4][43][0].apply(n,arguments)},{"./_stream_duplex":51,"/home/admin/browserify-cdn/node_modules/browserify/node_modules/insert-module-globals/node_modules/process/browser.js":4,buffer:5,"core-util-is":56,inherits:57,stream:10}],56:[function(e,t){t.exports=e(29)},{buffer:5}],57:[function(e,t){t.exports=e(3)},{}],58:[function(e,t){t.exports=e(30)},{}],59:[function(e,t){t.exports=e(31)},{buffer:5}],60:[function(e,t,n){arguments[4][48][0].apply(n,arguments)},{"./lib/_stream_duplex.js":51,"./lib/_stream_passthrough.js":52,"./lib/_stream_readable.js":53,"./lib/_stream_transform.js":54,"./lib/_stream_writable.js":55}],61:[function(e,t,n){arguments[4][49][0].apply(n,arguments)},{"./lib/_stream_writable.js":55}],62:[function(e,t,n){function r(e,t,n){var r=[];return t.forEach(function(t){function i(e){n(t,e)!==!1&&r.forEach(function(e){e()})}e.on(t,i),r.push(function(){e.removeListener(t,i)})}),e}function i(e,t,n){t.limit=t.reverse?2:1,r(e.createReadStream(t),["data","error","end"],function(e,r){return t.reverse&&r&&t.start&&""+r.key>t.start?!1:("error"==e?n(r):"end"==e?n(Error("range not found"),null,null):n(null,r.key,r.value),void 0)})}function o(e,t,n){return n||(n=t,t={}),t.reverse=!1,i(e,a(t),n)}function s(e,t,n){return n||(n=t,t={}),t.start,t.reverse=!0,i(e,a(t),function(r,o,s){if(r){var a=t.start;t.start=null,i(e,t,function(e,i,o){if(!i)return n(r,null,null);var s=""+i;a>=s&&(!t.end||s>=t.end)?n(e,i,o):n(r,null,null)})}else n(r,o,s)})}var a=e("level-fix-range");n=t.exports=i,n.first=o,n.last=s},{"level-fix-range":63}],63:[function(e,t){t.exports=function(e){var t=e.reverse,n=e.end,r=e.start,i=[r,n];return null!=r&&null!=n&&i.sort(),t&&(i=i.reverse()),e.start=i[0],e.end=i[1],e}},{}],64:[function(e,t){function n(e,t,n,r){var i={type:e,key:t,value:n,options:r};return r&&r.prefix&&(i.prefix=r.prefix,delete r.prefix),this._operations.push(i),this}function r(e){this._operations=[],this._sdb=e,this.put=n.bind(this,"put"),this.del=n.bind(this,"del")}var i=r.prototype;i.clear=function(){this._operations=[]},i.write=function(e){this._sdb.batch(this._operations,e)},t.exports=r},{}],65:[function(e,t){(function(n){e("events").EventEmitter,n.nextTick;var r=e("./sub"),i=e("./batch"),o=e("level-fix-range"),s=e("level-hooks");t.exports=function(e,t){function n(){}function a(e){return function(t){return t=t||{},t=o(t),t.reverse?t.start=t.start||f:t.end=t.end||f,e.call(u,t)}}n.prototype=e;var u=new n;if(u.sublevel)return u;t=t||{};var f=t.sep=t.sep||"ÿ";u._options=t,s(u),u.sublevels={},u.sublevel=function(e,t){return u.sublevels[e]?u.sublevels[e]:new r(u,e,t||this._options)},u.methods={},u.prefix=function(e){return""+(e||"")},u.pre=function(e,t){return t||(t=e,e={max:f}),u.hooks.pre(e,t)},u.post=function(e,t){return t||(t=e,e={max:f}),u.hooks.post(e,t)},u.readStream=u.createReadStream=a(u.createReadStream),u.keyStream=u.createKeyStream=a(u.createKeyStream),u.valuesStream=u.createValueStream=a(u.createValueStream);var c=u.batch;return u.batch=function(e,t,n){return Array.isArray(e)?(e.forEach(function(e){e.prefix&&("function"==typeof e.prefix.prefix?e.key=e.prefix.prefix(e.key):"string"==typeof e.prefix&&(e.key=e.prefix+e.key))}),c.call(u,e,t,n),void 0):new i(u)},u}}).call(this,e("/home/admin/browserify-cdn/node_modules/browserify/node_modules/insert-module-globals/node_modules/process/browser.js"))},{"./batch":64,"./sub":76,"/home/admin/browserify-cdn/node_modules/browserify/node_modules/insert-module-globals/node_modules/process/browser.js":4,events:2,"level-fix-range":66,"level-hooks":68}],66:[function(e,t){var n=e("clone");t.exports=function(e){e=n(e);var t=e.reverse,r=e.max||e.end,i=e.min||e.start,o=[i,r];return null!=i&&null!=r&&o.sort(),t&&(o=o.reverse()),e.start=o[0],e.end=o[1],delete e.min,delete e.max,e}},{clone:67}],67:[function(e,t){(function(e){"use strict";function n(e){return Object.prototype.toString.call(e)}function r(t,n){function o(t,n,r,s){var l;if("object"==typeof t){if(null==t)return t;for(l in u)if(u[l]===t)return c.push({resolveTo:l,child:r,i:s}),null;if(u[n]=t,i.isArray(t)){r=[];for(l in t)r[l]=o(t[l],n+"["+l+"]",r,l)}else if(i.isDate(t))r=new Date(t.getTime());else if(i.isRegExp(t))r=RegExp(t.source,i.getRegExpFlags(t)),t.lastIndex&&(r.lastIndex=t.lastIndex);else if(a&&e.isBuffer(t))r=new e(t.length),t.copy(r);else{r={},r.__proto__=t.__proto__;for(l in t)r[l]=o(t[l],n+"["+l+"]",r,l)}f[n]=r}else r=t;return r}n===void 0&&(n=!0);var s,a=e!==void 0,u={},f={},c=[];if(n){var l=o(t,"*");for(s in c){var h=c[s];h&&h.child&&h.i in h.child&&(h.child[h.i]=f[h.resolveTo])}return l}var d;if("object"==typeof t){if(null==t)return t;if("Array"===t.constructor.name){d=[];for(s in t)d[s]=r(t[s],n)}else if(i.isDate(t))d=new Date(t.getTime());else if(i.isRegExp(t))d=RegExp(t.source,i.getRegExpFlags(t)),t.lastIndex&&(d.lastIndex=t.lastIndex);else{d={},d.__proto__=t.__proto__;for(s in t)d[s]=r(t[s],n)}}else d=t;return d}var i={isArray:function(e){return Array.isArray(e)||"object"==typeof e&&"[object Array]"===n(e)},isDate:function(e){return"object"==typeof e&&"[object Date]"===n(e)},isRegExp:function(e){return"object"==typeof e&&"[object RegExp]"===n(e)},getRegExpFlags:function(e){var t="";return e.global&&(t+="g"),e.ignoreCase&&(t+="i"),e.multiline&&(t+="m"),t}};"object"==typeof t&&(t.exports=r),r.clonePrototype=function(e){if(null===e)return null;var t=function(){};return t.prototype=e,new t}}).call(this,e("buffer").Buffer)},{buffer:5}],68:[function(e,t){var n=e("string-range");t.exports=function(e){function t(e){return e&&("string"==typeof e?e:"string"==typeof e.prefix?e.prefix:"function"==typeof e.prefix?e.prefix():"")}function r(e){return e&&e._getKeyEncoding?e._getKeyEncoding(e):void 0}function i(e){return e&&e._getValueEncoding?e._getValueEncoding(e):void 0}function o(e,t){return function(){var n=e.indexOf(t);return~n?(e.splice(n,1),!0):!1}}function s(e){e&&e.type&&u.forEach(function(t){t.test(e.key)&&t.hook(e)})}function a(n,o,s,a){try{o.forEach(function u(e,n){f.forEach(function(s){if(s.test(e.key+"")){var a={add:function(e,a){if(e===void 0)return this;if(e===!1)return delete o[n];var f=t(e.prefix)||t(a)||s.prefix||"";if(f&&(e.prefix=f),e.key=f+e.key,s.test(e.key+""))throw Error("prehook cannot insert into own range");var c=e.keyEncoding||r(e.prefix),l=e.valueEncoding||i(e.prefix);return c&&(e.keyEncoding=c),l&&(e.valueEncoding=l),o.push(e),u(e,o.length-1),this},put:function(e,t){return"object"==typeof e&&(e.type="put"),this.add(e,t)},del:function(e,t){return"object"==typeof e&&(e.type="del"),this.add(e,t)},veto:function(){return this.add(!1)}};s.hook.call(a,e,a.add,o)}})})}catch(d){return(a||s)(d)}if(o=o.filter(function(e){return e&&e.type}),1==o.length&&!n){var p=o[0];return"put"==p.type?c.call(e,p.key,p.value,s,a):l.call(e,p.key,s,a)}return h.call(e,o,s,a)}if(!e.hooks){var u=[],f=[];e.hooks={post:function(e,t){t||(t=e,e="");var r={test:n.checker(e),hook:t};return u.push(r),o(u,r)},pre:function(e,t){t||(t=e,e="");var r={test:n.checker(e),hook:t};return f.push(r),o(f,r)},posthooks:u,prehooks:f},e.on("put",function(e,t){s({type:"put",key:e,value:t})}),e.on("del",function(e,t){s({type:"del",key:e,value:t})}),e.on("batch",function(e){e.forEach(s)});var c=e.put,l=e.del,h=e.batch;e.put=function(e,t,n,r){var i=[{key:e,value:t,type:"put"}];return a(!1,i,n,r)},e.del=function(e,t,n){var r=[{key:e,type:"del"}];return a(!1,r,t,n)},e.batch=function(e,t,n){return a(!0,e,t,n)}}}},{"string-range":69}],69:[function(e,t,n){var r=n.range=function(e){return null==e?{}:"string"==typeof r?{min:r,max:r+"ÿ"}:e
};n.prefix=function(e,t,r){e=n.range(e);var i={};return r=r||"ÿ",e instanceof RegExp||"function"==typeof e?(i.min=t,i.max=t+r,i.inner=function(n){var r=n.substring(t.length);return e.test?e.test(r):e(r)}):"object"==typeof e&&(i.min=t+(e.min||e.start||""),i.max=t+(e.max||e.end||r||"~"),i.reverse=!!e.reverse),i};var i=n.checker=function(e){return e||(e={}),"string"==typeof e?function(t){return 0==t.indexOf(e)}:e instanceof RegExp?function(t){return e.test(t)}:"object"==typeof e?function(t){var n=e.min||e.start,r=e.max||e.end;return t+="",(!n||t>=n)&&(!r||r>=t)&&(!e.inner||(e.inner.test?e.inner.test(t):e.inner(t)))}:"function"==typeof e?e:void 0};n.satisfies=function(e,t){return i(t)(e)}},{}],70:[function(e,t){function n(e){return null!==e&&("object"==typeof e||"function"==typeof e)}t.exports=n},{}],71:[function(e,t){function n(){for(var e={},t=0;arguments.length>t;t++){var n=arguments[t];if(i(n))for(var o=r(n),s=0;o.length>s;s++){var a=o[s];e[a]=n[a]}}return e}var r=e("object-keys"),i=e("./has-keys");t.exports=n},{"./has-keys":70,"object-keys":72}],72:[function(e,t){t.exports=Object.keys||e("./shim")},{"./shim":75}],73:[function(e,t){var n=Object.prototype.hasOwnProperty,r=Object.prototype.toString;t.exports=function(e,t,i){if("[object Function]"!==r.call(t))throw new TypeError("iterator must be a function");var o=e.length;if(o===+o)for(var s=0;o>s;s++)t.call(i,e[s],s,e);else for(var a in e)n.call(e,a)&&t.call(i,e[a],a,e)}},{}],74:[function(e,t){var n=Object.prototype,r=n.hasOwnProperty,i=n.toString,o=function(e){return e!==e},s={"boolean":1,number:1,string:1,undefined:1},a=t.exports={};a.a=a.type=function(e,t){return typeof e===t},a.defined=function(e){return void 0!==e},a.empty=function(e){var t,n=i.call(e);if("[object Array]"===n||"[object Arguments]"===n)return 0===e.length;if("[object Object]"===n){for(t in e)if(r.call(e,t))return!1;return!0}return"[object String]"===n?""===e:!1},a.equal=function(e,t){var n,r=i.call(e);if(r!==i.call(t))return!1;if("[object Object]"===r){for(n in e)if(!a.equal(e[n],t[n]))return!1;return!0}if("[object Array]"===r){if(n=e.length,n!==t.length)return!1;for(;--n;)if(!a.equal(e[n],t[n]))return!1;return!0}return"[object Function]"===r?e.prototype===t.prototype:"[object Date]"===r?e.getTime()===t.getTime():e===t},a.hosted=function(e,t){var n=typeof t[e];return"object"===n?!!t[e]:!s[n]},a.instance=a["instanceof"]=function(e,t){return e instanceof t},a["null"]=function(e){return null===e},a.undefined=function(e){return void 0===e},a.arguments=function(e){var t="[object Arguments]"===i.call(e),n=!a.array(e)&&a.arraylike(e)&&a.object(e)&&a.fn(e.callee);return t||n},a.array=function(e){return"[object Array]"===i.call(e)},a.arguments.empty=function(e){return a.arguments(e)&&0===e.length},a.array.empty=function(e){return a.array(e)&&0===e.length},a.arraylike=function(e){return!!e&&!a.boolean(e)&&r.call(e,"length")&&isFinite(e.length)&&a.number(e.length)&&e.length>=0},a.boolean=function(e){return"[object Boolean]"===i.call(e)},a["false"]=function(e){return a.boolean(e)&&(e===!1||e.valueOf()===!1)},a["true"]=function(e){return a.boolean(e)&&(e===!0||e.valueOf()===!0)},a.date=function(e){return"[object Date]"===i.call(e)},a.element=function(e){return void 0!==e&&"undefined"!=typeof HTMLElement&&e instanceof HTMLElement&&1===e.nodeType},a.error=function(e){return"[object Error]"===i.call(e)},a.fn=a["function"]=function(e){var t="undefined"!=typeof window&&e===window.alert;return t||"[object Function]"===i.call(e)},a.number=function(e){return"[object Number]"===i.call(e)},a.infinite=function(e){return 1/0===e||e===-1/0},a.decimal=function(e){return a.number(e)&&!o(e)&&!a.infinite(e)&&0!==e%1},a.divisibleBy=function(e,t){var n=a.infinite(e),r=a.infinite(t),i=a.number(e)&&!o(e)&&a.number(t)&&!o(t)&&0!==t;return n||r||i&&0===e%t},a.int=function(e){return a.number(e)&&!o(e)&&0===e%1},a.maximum=function(e,t){if(o(e))throw new TypeError("NaN is not a valid value");if(!a.arraylike(t))throw new TypeError("second argument must be array-like");for(var n=t.length;--n>=0;)if(t[n]>e)return!1;return!0},a.minimum=function(e,t){if(o(e))throw new TypeError("NaN is not a valid value");if(!a.arraylike(t))throw new TypeError("second argument must be array-like");for(var n=t.length;--n>=0;)if(e>t[n])return!1;return!0},a.nan=function(e){return!a.number(e)||e!==e},a.even=function(e){return a.infinite(e)||a.number(e)&&e===e&&0===e%2},a.odd=function(e){return a.infinite(e)||a.number(e)&&e===e&&0!==e%2},a.ge=function(e,t){if(o(e)||o(t))throw new TypeError("NaN is not a valid value");return!a.infinite(e)&&!a.infinite(t)&&e>=t},a.gt=function(e,t){if(o(e)||o(t))throw new TypeError("NaN is not a valid value");return!a.infinite(e)&&!a.infinite(t)&&e>t},a.le=function(e,t){if(o(e)||o(t))throw new TypeError("NaN is not a valid value");return!a.infinite(e)&&!a.infinite(t)&&t>=e},a.lt=function(e,t){if(o(e)||o(t))throw new TypeError("NaN is not a valid value");return!a.infinite(e)&&!a.infinite(t)&&t>e},a.within=function(e,t,n){if(o(e)||o(t)||o(n))throw new TypeError("NaN is not a valid value");if(!a.number(e)||!a.number(t)||!a.number(n))throw new TypeError("all arguments must be numbers");var r=a.infinite(e)||a.infinite(t)||a.infinite(n);return r||e>=t&&n>=e},a.object=function(e){return e&&"[object Object]"===i.call(e)},a.hash=function(e){return a.object(e)&&e.constructor===Object&&!e.nodeType&&!e.setInterval},a.regexp=function(e){return"[object RegExp]"===i.call(e)},a.string=function(e){return"[object String]"===i.call(e)}},{}],75:[function(e,t){(function(){"use strict";var n,r=Object.prototype.hasOwnProperty,i=e("is"),o=e("foreach"),s=!{toString:null}.propertyIsEnumerable("toString"),a=["toString","toLocaleString","valueOf","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","constructor"];n=function(e){if(!i.object(e)&&!i.array(e))throw new TypeError("Object.keys called on a non-object");var t,n=[];for(t in e)r.call(e,t)&&n.push(t);return s&&o(a,function(t){r.call(e,t)&&n.push(t)}),n},t.exports=n})()},{foreach:73,is:74}],76:[function(e,t){function n(e,t,r){if("string"==typeof r&&(console.error("db.sublevel(name, seperator<string>) is depreciated"),console.error("use db.sublevel(name, {sep: separator})) if you must"),r={sep:r}),!(this instanceof n))return new n(e,t,r);if(!e)throw Error("must provide db");if(!t)throw Error("must provide prefix");r=r||{},r.sep=r.sep||"ÿ",this._parent=e,this._options=r,this.options=r,this._prefix=t,this._root=i(this),e.sublevels[t]=this,this.sublevels={},this.methods={};var o=this;this.hooks={pre:function(){return o.pre.apply(o,arguments)},post:function(){return o.post.apply(o,arguments)}}}function r(e,t){["valueEncoding","encoding","keyEncoding","reverse","values","keys","limit","fillCache"].forEach(function(n){t.hasOwnProperty(n)&&(e[n]=t[n])})}function i(e){return e._parent?i(e._parent):e}var o=e("events").EventEmitter,s=e("util").inherits,a=e("string-range"),u=e("level-fix-range"),f=e("xtend"),c=e("./batch");s(n,o);var l=n.prototype;l._key=function(e){var t=this._options.sep;return t+this._prefix+t+e},l._getOptsAndCb=function(e,t){return"function"==typeof e&&(t=e,e={}),{opts:f(e,this._options),cb:t}},l.sublevel=function(e,t){return this.sublevels[e]?this.sublevels[e]:new n(this,e,t||this._options)},l.put=function(e,t,n,r){var i=this._getOptsAndCb(n,r);this._root.put(this.prefix(e),t,i.opts,i.cb)},l.get=function(e,t,n){var r=this._getOptsAndCb(t,n);this._root.get(this.prefix(e),r.opts,r.cb)},l.del=function(e,t,n){var r=this._getOptsAndCb(t,n);this._root.del(this.prefix(e),r.opts,r.cb)},l.batch=function(e,t,n){if(!Array.isArray(e))return new c(this);var r=this,i=this._getOptsAndCb(t,n);e.forEach(function(e){e.key="string"==typeof e.prefix?e.prefix+e.key:(e.prefix||r).prefix(e.key),e.prefix&&(e.prefix=null)}),this._root.batch(e,i.opts,i.cb)},l._getKeyEncoding=function(){return this.options.keyEncoding?this.options.keyEncoding:this._parent&&this._parent._getKeyEncoding?this._parent._getKeyEncoding():void 0},l._getValueEncoding=function(){return this.options.valueEncoding?this.options.valueEncoding:this._parent&&this._parent._getValueEncoding?this._parent._getValueEncoding():void 0},l.prefix=function(e){var t=this._options.sep;return this._parent.prefix()+t+this._prefix+t+(e||"")},l.keyStream=l.createKeyStream=function(e){return e=e||{},e.keys=!0,e.values=!1,this.createReadStream(e)},l.valueStream=l.createValueStream=function(e){return e=e||{},e.keys=!1,e.values=!0,e.keys=!1,this.createReadStream(e)},l.readStream=l.createReadStream=function(e){e=e||{};var t=i(this),n=this.prefix(),o=a.prefix(e,n);r(o,f(e,this._options));var s=t.createReadStream(o);if(o.values===!1){var u=s.read;if(u)s.read=function(e){var t=u.call(this,e);return t&&(t=t.substring(n.length)),t};else{var c=s.emit;s.emit=function(e,t){"data"===e?c.call(this,"data",t.substring(n.length)):c.call(this,e,t)}}return s}if(o.keys===!1)return s;var u=s.read;return u?s.read=function(e){var t=u.call(this,e);return t&&(t.key=t.key.substring(n.length)),t}:s.on("data",function(e){e.key=e.key.substring(n.length)}),s},l.writeStream=l.createWriteStream=function(){var e=i(this),t=this.prefix(),n=e.createWriteStream.apply(e,arguments),r=n.write,o=this._options.encoding,s=this._options.valueEncoding,a=this._options.keyEncoding,u=!o&&!s&&!a;return n.write=u?function(e){return e.key=t+e.key,r.call(n,e)}:function(e){return e.key=t+e.key,o&&e.encoding===void 0&&(e.encoding=o),s&&e.valueEncoding===void 0&&(e.valueEncoding=s),a&&e.keyEncoding===void 0&&(e.keyEncoding=a),r.call(n,e)},n},l.approximateSize=function(){var e=i(db);return e.approximateSize.apply(e,arguments)},l.pre=function(e,t){t||(t=e,e=null),e=a.prefix(e,this.prefix(),this._options.sep);var n=i(this._parent),r=this.prefix();return n.hooks.pre(u(e),function(e,n,i){t({key:e.key.substring(r.length),value:e.value,type:e.type},function(e,t){n(e,e.prefix?t:t||r)},i)})},l.post=function(e,t){t||(t=e,e=null);var n=i(this._parent),r=this.prefix();return e=a.prefix(e,r,this._options.sep),n.hooks.post(u(e),function(e){t({key:e.key.substring(r.length),value:e.value,type:e.type})})},t.exports=n},{"./batch":64,events:2,"level-fix-range":66,"string-range":69,util:18,xtend:71}],77:[function(e,t){function n(e){var t=function(){return t.called?t.value:(t.called=!0,t.value=e.apply(this,arguments))};return t.called=!1,t}t.exports=n,n.proto=n(function(){Object.defineProperty(Function.prototype,"once",{value:function(){return n(this)},configurable:!0})})},{}],78:[function(e,t){t.exports=e(70)},{}],79:[function(e,t){function n(){for(var e={},t=0;arguments.length>t;t++){var n=arguments[t];if(r(n))for(var i in n)n.hasOwnProperty(i)&&(e[i]=n[i])}return e}var r=e("./has-keys");t.exports=n},{"./has-keys":78}],80:[function(e,t){(function(n){var r=e("path"),i=e("once"),o=e("concat-stream"),s=e("./stat"),a=e("xtend"),u=e("./errno"),f=s({type:"directory",mode:511,size:4096}),c=function(e){return e="/"===e[0]?e:"/"+e,e=r.normalize(e),"/"===e?e:"/"===e[e.length-1]?e.slice(0,-1):e},l=function(e){var t=e.split("/").length.toString(36);return"0000000000".slice(t.length)+t+e};t.exports=function(e){var t={};return t.normalize=c,t.get=function(t,r){return t=c(t),"/"===t?n.nextTick(r.bind(null,null,f,"/")):(e.get(l(t),{valueEncoding:"json"},function(e,n){return e&&e.notFound?r(u.ENOENT(t),null,t):e?r(e,null,t):(r(null,s(n),t),void 0)}),void 0)},t.writable=function(e,i){return e=c(e),"/"===e?n.nextTick(i.bind(null,u.EPERM(e))):(t.follow(r.dirname(e),function(t,n){return t?i(t):n.isDirectory()?(i(null,e),void 0):i(u.ENOTDIR(e))}),void 0)},t.list=function(t,n){t=c(t);var r=l("/"===t?t:t+"/"),s=e.createKeyStream({start:r,end:r+"ÿ"});n=i(n),s.on("error",n),s.pipe(o({encoding:"object"},function(e){e=e.map(function(e){return e.split("/").pop()}),n(null,e)}))},t.follow=function(e,n){t.get(e,function r(e,i,o){return e?n(e,null,o):i.target?t.get(i.target,r):(n(null,s(i),o),void 0)})},t.update=function(e,n,r){t.get(e,function(e,i,o){return e?r(e):"/"===o?r(u.EPERM(o)):(t.put(o,a(i,n),r),void 0)})},t.put=function(n,r,i){t.writable(n,function(t,n){return t?i(t):(e.put(l(n),s(r),{valueEncoding:"json"},i),void 0)})},t.del=function(t,r){return t=c(t),"/"===t?n.nextTick(r.bind(null,u.EPERM(t))):(e.del(l(t),r),void 0)},t}}).call(this,e("/home/admin/browserify-cdn/node_modules/browserify/node_modules/insert-module-globals/node_modules/process/browser.js"))},{"./errno":19,"./stat":81,"/home/admin/browserify-cdn/node_modules/browserify/node_modules/insert-module-globals/node_modules/process/browser.js":4,"concat-stream":22,once:77,path:8,xtend:79}],81:[function(e,t){var n=function(e){return e?"string"==typeof e?new Date(e):e:new Date},r=function(e){this.uid=e.uid||0,this.gid=e.gid||0,this.mode=e.mode||0,this.size=e.size||0,this.mtime=n(e.mtime),this.atime=n(e.atime),this.ctime=n(e.ctime),this.type=e.type,this.target=e.target,this.link=e.link,this.blob=e.blob};r.prototype.isDirectory=function(){return"directory"===this.type},r.prototype.isFile=function(){return"file"===this.type},r.prototype.isBlockDevice=function(){return!1},r.prototype.isCharacterDevice=function(){return!1},r.prototype.isSymbolicLink=function(){return"symlink"===this.type},r.prototype.isFIFO=function(){return!1},r.prototype.isSocket=function(){return!1},t.exports=function(e){return new r(e)}},{}],82:[function(e,t){var n=e("events");t.exports=function(){var e={},t={};return t.watch=function(t,r){return e[t]||(e[t]=new n.EventEmitter,e[t].setMaxListeners(0)),r&&e[t].on("change",r),e[t]},t.watcher=function(e,r){var i=new n.EventEmitter,o=function(){i.emit("change","change",e)};return t.watch(e,o),r&&i.on("change",r),i.close=function(){t.unwatch(e,o)},i},t.unwatch=function(t,n){e[t]&&(n?e[t].removeListener("change",n):e[t].removeAllListeners("change"),e[t].listeners("change").length||delete e[t])},t.change=function(t){e[t]&&e[t].emit("change")},t.cb=function(e,n){return function(r,i){e&&t.change(e),n&&n(r,i)}},t}},{events:2}]},{},[]);var fs=require("level-filesystem");fs.writeFile("/tmp/test","Hey there!",function(e){e?console.log(e):console.log("The file was saved!")});
{
"name": "requirebin-sketch",
"version": "1.0.0",
"dependencies": {
"level-filesystem": "1.0.1"
}
}
<style type='text/css'>html, body { margin: 0; padding: 0; border: 0; }
body, html { height: 100%; width: 100%; }</style>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment