object-hash
Advanced tools
Comparing version 0.1.1 to 0.1.2
@@ -1,2 +0,2 @@ | ||
!function e(r,n,o){function t(i,u){if(!n[i]){if(!r[i]){var f="function"==typeof require&&require;if(!u&&f)return f(i,!0);if(s)return s(i,!0);throw new Error("Cannot find module '"+i+"'")}var l=n[i]={exports:{}};r[i][0].call(l.exports,function(e){var n=r[i][1][e];return t(n?n:e)},l,l.exports,e,r,n,o)}return n[i].exports}for(var s="function"==typeof require&&require,i=0;i<o.length;i++)t(o[i]);return t}({1:[function(e,r,n){(function(){"use strict";function o(e,r){return r=r||{},r.algorithm=r.algorithm||"sha1",r.encoding=r.encoding||"hex",r.excludeValues=r.excludeValues?!0:!1,r.algorithm=r.algorithm.toLowerCase(),r.encoding=r.encoding.toLowerCase(),t(e,r),s(e,r)}function t(e,r){var n=u.getHashes?u.getHashes():["sha","sha1","md5"],o=["buffer","hex","binary","base64"];if("undefined"==typeof e)throw new Error("Object argument required.");if(-1===n.indexOf(r.algorithm))throw new Error('Algorithm "'+r.algorithm+'" not supported. supported values: '+n.join(", "));if(-1===o.indexOf(r.encoding))throw new Error('Encoding "'+r.encoding+'" not supported. supported values: '+o.join(", "))}function s(e,r){var n=u.createHash(r.algorithm);return i(n,r).dispatch(e),"buffer"===r.encoding?n.digest():n.digest(r.encoding)}function i(e,r){return{dispatch:function(e){var r=typeof e,n=this["_"+r];return null===e?this._null():n(e)},_object:function(n){var o=/\[object (.*)\]/i,t=Object.prototype.toString.call(n),s=o.exec(t)[1]||"null";if(s=s.toLowerCase(),"object"===s){var u=Object.keys(n).sort();return u.forEach(function(o){e.update(o),r.excludeValues||i(e,r).dispatch(n[o])})}if(!i(e)["_"+s])throw new Error('Unknown object type "'+s+'"');i(e)["_"+s](n)},_array:function(r){return r.forEach(function(r){i(e).dispatch(r)})},_date:function(r){return e.update(r.toString())},_boolean:function(r){return e.update(r.toString())},_string:function(r){return e.update(r)},_function:function(r){return e.update(r.toString())},_number:function(r){return e.update(r.toString())},_xml:function(r){return e.update(r.toString())},_null:function(){return e.update("Null")},_domwindow:function(){return e.update("domwindow")}}}e("./lib/polyfills");var u=e("crypto");n=r.exports=o,n.keys=function(e){return o(e,{excludeValues:!0,algorithm:"sha1",encoding:"hex"})},n.MD5=function(e){return o(e,{algorithm:"md5",encoding:"hex"})},n.keysMD5=function(e){return o(e,{algorithm:"md5",encoding:"hex",excludeValues:!0})}}).call(this,e("/Users/spuleo/repos/object-hash/node_modules/gulp-browserify/node_modules/browserify/node_modules/insert-module-globals/node_modules/process/browser.js"),"undefined"!=typeof self?self:"undefined"!=typeof window?window:{},e("buffer").Buffer,arguments[3],arguments[4],arguments[5],arguments[6],"/fake_97f0d5cb.js","/")},{"./lib/polyfills":2,"/Users/spuleo/repos/object-hash/node_modules/gulp-browserify/node_modules/browserify/node_modules/insert-module-globals/node_modules/process/browser.js":12,buffer:3,crypto:7}],2:[function(e){(function(){Object.keys||(Object.keys=function(){"use strict";var e=Object.prototype.hasOwnProperty,r=!{toString:null}.propertyIsEnumerable("toString"),n=["toString","toLocaleString","valueOf","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","constructor"],o=n.length;return function(t){if("object"!=typeof t&&("function"!=typeof t||null===t))throw new TypeError("Object.keys called on non-object");var s,i,u=[];for(s in t)e.call(t,s)&&u.push(s);if(r)for(i=0;o>i;i++)e.call(t,n[i])&&u.push(n[i]);return u}}()),Array.prototype.indexOf||(Array.prototype.indexOf=function(e,r){if(void 0===this||null===this)throw new TypeError('"this" is null or not defined');var n=this.length>>>0;for(r=+r||0,1/0===Math.abs(r)&&(r=0),0>r&&(r+=n,0>r&&(r=0));n>r;r++)if(this[r]===e)return r;return-1}),Array.prototype.forEach||(Array.prototype.forEach=function(e){"use strict";if(void 0===this||null===this)throw new TypeError;var r=Object(this),n=r.length>>>0;if("function"!=typeof e)throw new TypeError;for(var o=arguments.length>=2?arguments[1]:void 0,t=0;n>t;t++)t in r&&e.call(o,r[t],t,r)})}).call(this,e("/Users/spuleo/repos/object-hash/node_modules/gulp-browserify/node_modules/browserify/node_modules/insert-module-globals/node_modules/process/browser.js"),"undefined"!=typeof self?self:"undefined"!=typeof window?window:{},e("buffer").Buffer,arguments[3],arguments[4],arguments[5],arguments[6],"/lib/polyfills.js","/lib")},{"/Users/spuleo/repos/object-hash/node_modules/gulp-browserify/node_modules/browserify/node_modules/insert-module-globals/node_modules/process/browser.js":12,buffer:3}],3:[function(e,r,n){(function(r,o,t){function t(e,r,n){if(!(this instanceof t))return new t(e,r,n);var o=typeof e;if("base64"===r&&"string"===o)for(e=x(e);e.length%4!==0;)e+="=";var s;if("number"===o)s=C(e);else if("string"===o)s=t.byteLength(e,r);else{if("object"!==o)throw new Error("First argument needs to be a number, array or string.");s=C(e.length)}var i;t._useTypedArrays?i=S(new Uint8Array(s)):(i=this,i.length=s,i._isBuffer=!0);var u;if(t._useTypedArrays&&"function"==typeof Uint8Array&&e instanceof Uint8Array)i._set(e);else if(M(e))for(u=0;s>u;u++)i[u]=t.isBuffer(e)?e.readUInt8(u):e[u];else if("string"===o)i.write(e,0,r);else if("number"===o&&!t._useTypedArrays&&!n)for(u=0;s>u;u++)i[u]=0;return i}function s(e,r,n,o){n=Number(n)||0;var s=e.length-n;o?(o=Number(o),o>s&&(o=s)):o=s;var i=r.length;J(i%2===0,"Invalid hex string"),o>i/2&&(o=i/2);for(var u=0;o>u;u++){var f=parseInt(r.substr(2*u,2),16);J(!isNaN(f),"Invalid hex string"),e[n+u]=f}return t._charsWritten=2*u,u}function i(e,r,n,o){var s=t._charsWritten=q(O(r),e,n,o);return s}function u(e,r,n,o){var s=t._charsWritten=q(D(r),e,n,o);return s}function f(e,r,n,o){return u(e,r,n,o)}function l(e,r,n,o){var s=t._charsWritten=q(V(r),e,n,o);return s}function a(e,r,n,o){var s=t._charsWritten=q(F(r),e,n,o);return s}function d(e,r,n){return X.fromByteArray(0===r&&n===e.length?e:e.slice(r,n))}function c(e,r,n){var o="",t="";n=Math.min(e.length,n);for(var s=r;n>s;s++)e[s]<=127?(o+=H(t)+String.fromCharCode(e[s]),t=""):t+="%"+e[s].toString(16);return o+H(t)}function h(e,r,n){var o="";n=Math.min(e.length,n);for(var t=r;n>t;t++)o+=String.fromCharCode(e[t]);return o}function p(e,r,n){return h(e,r,n)}function g(e,r,n){var o=e.length;(!r||0>r)&&(r=0),(!n||0>n||n>o)&&(n=o);for(var t="",s=r;n>s;s++)t+=N(e[s]);return t}function b(e,r,n){for(var o=e.slice(r,n),t="",s=0;s<o.length;s+=2)t+=String.fromCharCode(o[s]+256*o[s+1]);return t}function m(e,r,n,o){o||(J("boolean"==typeof n,"missing or invalid endian"),J(void 0!==r&&null!==r,"missing offset"),J(r+1<e.length,"Trying to read beyond buffer length"));var t=e.length;if(!(r>=t)){var s;return n?(s=e[r],t>r+1&&(s|=e[r+1]<<8)):(s=e[r]<<8,t>r+1&&(s|=e[r+1])),s}}function w(e,r,n,o){o||(J("boolean"==typeof n,"missing or invalid endian"),J(void 0!==r&&null!==r,"missing offset"),J(r+3<e.length,"Trying to read beyond buffer length"));var t=e.length;if(!(r>=t)){var s;return n?(t>r+2&&(s=e[r+2]<<16),t>r+1&&(s|=e[r+1]<<8),s|=e[r],t>r+3&&(s+=e[r+3]<<24>>>0)):(t>r+1&&(s=e[r+1]<<16),t>r+2&&(s|=e[r+2]<<8),t>r+3&&(s|=e[r+3]),s+=e[r]<<24>>>0),s}}function y(e,r,n,o){o||(J("boolean"==typeof n,"missing or invalid endian"),J(void 0!==r&&null!==r,"missing offset"),J(r+1<e.length,"Trying to read beyond buffer length"));var t=e.length;if(!(r>=t)){var s=m(e,r,n,!0),i=32768&s;return i?-1*(65535-s+1):s}}function v(e,r,n,o){o||(J("boolean"==typeof n,"missing or invalid endian"),J(void 0!==r&&null!==r,"missing offset"),J(r+3<e.length,"Trying to read beyond buffer length"));var t=e.length;if(!(r>=t)){var s=w(e,r,n,!0),i=2147483648&s;return i?-1*(4294967295-s+1):s}}function _(e,r,n,o){return o||(J("boolean"==typeof n,"missing or invalid endian"),J(r+3<e.length,"Trying to read beyond buffer length")),Y.read(e,r,n,23,4)}function E(e,r,n,o){return o||(J("boolean"==typeof n,"missing or invalid endian"),J(r+7<e.length,"Trying to read beyond buffer length")),Y.read(e,r,n,52,8)}function j(e,r,n,o,t){t||(J(void 0!==r&&null!==r,"missing value"),J("boolean"==typeof o,"missing or invalid endian"),J(void 0!==n&&null!==n,"missing offset"),J(n+1<e.length,"trying to write beyond buffer length"),P(r,65535));var s=e.length;if(!(n>=s))for(var i=0,u=Math.min(s-n,2);u>i;i++)e[n+i]=(r&255<<8*(o?i:1-i))>>>8*(o?i:1-i)}function I(e,r,n,o,t){t||(J(void 0!==r&&null!==r,"missing value"),J("boolean"==typeof o,"missing or invalid endian"),J(void 0!==n&&null!==n,"missing offset"),J(n+3<e.length,"trying to write beyond buffer length"),P(r,4294967295));var s=e.length;if(!(n>=s))for(var i=0,u=Math.min(s-n,4);u>i;i++)e[n+i]=r>>>8*(o?i:3-i)&255}function B(e,r,n,o,t){t||(J(void 0!==r&&null!==r,"missing value"),J("boolean"==typeof o,"missing or invalid endian"),J(void 0!==n&&null!==n,"missing offset"),J(n+1<e.length,"Trying to write beyond buffer length"),W(r,32767,-32768));var s=e.length;n>=s||(r>=0?j(e,r,n,o,t):j(e,65535+r+1,n,o,t))}function U(e,r,n,o,t){t||(J(void 0!==r&&null!==r,"missing value"),J("boolean"==typeof o,"missing or invalid endian"),J(void 0!==n&&null!==n,"missing offset"),J(n+3<e.length,"Trying to write beyond buffer length"),W(r,2147483647,-2147483648));var s=e.length;n>=s||(r>=0?I(e,r,n,o,t):I(e,4294967295+r+1,n,o,t))}function A(e,r,n,o,t){t||(J(void 0!==r&&null!==r,"missing value"),J("boolean"==typeof o,"missing or invalid endian"),J(void 0!==n&&null!==n,"missing offset"),J(n+3<e.length,"Trying to write beyond buffer length"),R(r,3.4028234663852886e38,-3.4028234663852886e38));var s=e.length;n>=s||Y.write(e,r,n,o,23,4)}function L(e,r,n,o,t){t||(J(void 0!==r&&null!==r,"missing value"),J("boolean"==typeof o,"missing or invalid endian"),J(void 0!==n&&null!==n,"missing offset"),J(n+7<e.length,"Trying to write beyond buffer length"),R(r,1.7976931348623157e308,-1.7976931348623157e308));var s=e.length;n>=s||Y.write(e,r,n,o,52,8)}function x(e){return e.trim?e.trim():e.replace(/^\s+|\s+$/g,"")}function S(e){return e._isBuffer=!0,e._get=e.get,e._set=e.set,e.get=z.get,e.set=z.set,e.write=z.write,e.toString=z.toString,e.toLocaleString=z.toString,e.toJSON=z.toJSON,e.copy=z.copy,e.slice=z.slice,e.readUInt8=z.readUInt8,e.readUInt16LE=z.readUInt16LE,e.readUInt16BE=z.readUInt16BE,e.readUInt32LE=z.readUInt32LE,e.readUInt32BE=z.readUInt32BE,e.readInt8=z.readInt8,e.readInt16LE=z.readInt16LE,e.readInt16BE=z.readInt16BE,e.readInt32LE=z.readInt32LE,e.readInt32BE=z.readInt32BE,e.readFloatLE=z.readFloatLE,e.readFloatBE=z.readFloatBE,e.readDoubleLE=z.readDoubleLE,e.readDoubleBE=z.readDoubleBE,e.writeUInt8=z.writeUInt8,e.writeUInt16LE=z.writeUInt16LE,e.writeUInt16BE=z.writeUInt16BE,e.writeUInt32LE=z.writeUInt32LE,e.writeUInt32BE=z.writeUInt32BE,e.writeInt8=z.writeInt8,e.writeInt16LE=z.writeInt16LE,e.writeInt16BE=z.writeInt16BE,e.writeInt32LE=z.writeInt32LE,e.writeInt32BE=z.writeInt32BE,e.writeFloatLE=z.writeFloatLE,e.writeFloatBE=z.writeFloatBE,e.writeDoubleLE=z.writeDoubleLE,e.writeDoubleBE=z.writeDoubleBE,e.fill=z.fill,e.inspect=z.inspect,e.toArrayBuffer=z.toArrayBuffer,e}function k(e,r,n){return"number"!=typeof e?n:(e=~~e,e>=r?r:e>=0?e:(e+=r,e>=0?e:0))}function C(e){return e=~~Math.ceil(+e),0>e?0:e}function T(e){return(Array.isArray||function(e){return"[object Array]"===Object.prototype.toString.call(e)})(e)}function M(e){return T(e)||t.isBuffer(e)||e&&"object"==typeof e&&"number"==typeof e.length}function N(e){return 16>e?"0"+e.toString(16):e.toString(16)}function O(e){for(var r=[],n=0;n<e.length;n++){var o=e.charCodeAt(n);if(127>=o)r.push(e.charCodeAt(n));else{var t=n;o>=55296&&57343>=o&&n++;for(var s=encodeURIComponent(e.slice(t,n+1)).substr(1).split("%"),i=0;i<s.length;i++)r.push(parseInt(s[i],16))}}return r}function D(e){for(var r=[],n=0;n<e.length;n++)r.push(255&e.charCodeAt(n));return r}function F(e){for(var r,n,o,t=[],s=0;s<e.length;s++)r=e.charCodeAt(s),n=r>>8,o=r%256,t.push(o),t.push(n);return t}function V(e){return X.toByteArray(e)}function q(e,r,n,o){for(var t=0;o>t&&!(t+n>=r.length||t>=e.length);t++)r[t+n]=e[t];return t}function H(e){try{return decodeURIComponent(e)}catch(r){return String.fromCharCode(65533)}}function P(e,r){J("number"==typeof e,"cannot write a non-number as a number"),J(e>=0,"specified a negative value for writing an unsigned value"),J(r>=e,"value is larger than maximum value for type"),J(Math.floor(e)===e,"value has a fractional component")}function W(e,r,n){J("number"==typeof e,"cannot write a non-number as a number"),J(r>=e,"value larger than maximum allowed value"),J(e>=n,"value smaller than minimum allowed value"),J(Math.floor(e)===e,"value has a fractional component")}function R(e,r,n){J("number"==typeof e,"cannot write a non-number as a number"),J(r>=e,"value larger than maximum allowed value"),J(e>=n,"value smaller than minimum allowed value")}function J(e,r){if(!e)throw new Error(r||"Failed assertion")}var X=e("base64-js"),Y=e("ieee754");n.Buffer=t,n.SlowBuffer=t,n.INSPECT_MAX_BYTES=50,t.poolSize=8192,t._useTypedArrays=function(){if("function"!=typeof Uint8Array||"function"!=typeof ArrayBuffer)return!1;try{var e=new Uint8Array(0);return e.foo=function(){return 42},42===e.foo()&&"function"==typeof e.subarray}catch(r){return!1}}(),t.isEncoding=function(e){switch(String(e).toLowerCase()){case"hex":case"utf8":case"utf-8":case"ascii":case"binary":case"base64":case"raw":case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return!0;default:return!1}},t.isBuffer=function(e){return!(null===e||void 0===e||!e._isBuffer)},t.byteLength=function(e,r){var n;switch(e+="",r||"utf8"){case"hex":n=e.length/2;break;case"utf8":case"utf-8":n=O(e).length;break;case"ascii":case"binary":case"raw":n=e.length;break;case"base64":n=V(e).length;break;case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":n=2*e.length;break;default:throw new Error("Unknown encoding")}return n},t.concat=function(e,r){if(J(T(e),"Usage: Buffer.concat(list, [totalLength])\nlist should be an Array."),0===e.length)return new t(0);if(1===e.length)return e[0];var n;if("number"!=typeof r)for(r=0,n=0;n<e.length;n++)r+=e[n].length;var o=new t(r),s=0;for(n=0;n<e.length;n++){var i=e[n];i.copy(o,s),s+=i.length}return o},t.prototype.write=function(e,r,n,o){if(isFinite(r))isFinite(n)||(o=n,n=void 0);else{var t=o;o=r,r=n,n=t}r=Number(r)||0;var d=this.length-r;n?(n=Number(n),n>d&&(n=d)):n=d,o=String(o||"utf8").toLowerCase();var c;switch(o){case"hex":c=s(this,e,r,n);break;case"utf8":case"utf-8":c=i(this,e,r,n);break;case"ascii":c=u(this,e,r,n);break;case"binary":c=f(this,e,r,n);break;case"base64":c=l(this,e,r,n);break;case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":c=a(this,e,r,n);break;default:throw new Error("Unknown encoding")}return c},t.prototype.toString=function(e,r,n){var o=this;if(e=String(e||"utf8").toLowerCase(),r=Number(r)||0,n=void 0!==n?Number(n):n=o.length,n===r)return"";var t;switch(e){case"hex":t=g(o,r,n);break;case"utf8":case"utf-8":t=c(o,r,n);break;case"ascii":t=h(o,r,n);break;case"binary":t=p(o,r,n);break;case"base64":t=d(o,r,n);break;case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":t=b(o,r,n);break;default:throw new Error("Unknown encoding")}return t},t.prototype.toJSON=function(){return{type:"Buffer",data:Array.prototype.slice.call(this._arr||this,0)}},t.prototype.copy=function(e,r,n,o){var t=this;if(n||(n=0),o||0===o||(o=this.length),r||(r=0),o!==n&&0!==e.length&&0!==t.length){J(o>=n,"sourceEnd < sourceStart"),J(r>=0&&r<e.length,"targetStart out of bounds"),J(n>=0&&n<t.length,"sourceStart out of bounds"),J(o>=0&&o<=t.length,"sourceEnd out of bounds"),o>this.length&&(o=this.length),e.length-r<o-n&&(o=e.length-r+n);for(var s=0;o-n>s;s++)e[s+r]=this[s+n]}},t.prototype.slice=function(e,r){var n=this.length;if(e=k(e,n,0),r=k(r,n,n),t._useTypedArrays)return S(this.subarray(e,r));for(var o=r-e,s=new t(o,void 0,!0),i=0;o>i;i++)s[i]=this[i+e];return s},t.prototype.get=function(e){return console.log(".get() is deprecated. Access using array indexes instead."),this.readUInt8(e)},t.prototype.set=function(e,r){return console.log(".set() is deprecated. Access using array indexes instead."),this.writeUInt8(e,r)},t.prototype.readUInt8=function(e,r){return r||(J(void 0!==e&&null!==e,"missing offset"),J(e<this.length,"Trying to read beyond buffer length")),e>=this.length?void 0:this[e]},t.prototype.readUInt16LE=function(e,r){return m(this,e,!0,r)},t.prototype.readUInt16BE=function(e,r){return m(this,e,!1,r)},t.prototype.readUInt32LE=function(e,r){return w(this,e,!0,r)},t.prototype.readUInt32BE=function(e,r){return w(this,e,!1,r)},t.prototype.readInt8=function(e,r){if(r||(J(void 0!==e&&null!==e,"missing offset"),J(e<this.length,"Trying to read beyond buffer length")),!(e>=this.length)){var n=128&this[e];return n?-1*(255-this[e]+1):this[e]}},t.prototype.readInt16LE=function(e,r){return y(this,e,!0,r)},t.prototype.readInt16BE=function(e,r){return y(this,e,!1,r)},t.prototype.readInt32LE=function(e,r){return v(this,e,!0,r)},t.prototype.readInt32BE=function(e,r){return v(this,e,!1,r)},t.prototype.readFloatLE=function(e,r){return _(this,e,!0,r)},t.prototype.readFloatBE=function(e,r){return _(this,e,!1,r)},t.prototype.readDoubleLE=function(e,r){return E(this,e,!0,r)},t.prototype.readDoubleBE=function(e,r){return E(this,e,!1,r)},t.prototype.writeUInt8=function(e,r,n){n||(J(void 0!==e&&null!==e,"missing value"),J(void 0!==r&&null!==r,"missing offset"),J(r<this.length,"trying to write beyond buffer length"),P(e,255)),r>=this.length||(this[r]=e)},t.prototype.writeUInt16LE=function(e,r,n){j(this,e,r,!0,n)},t.prototype.writeUInt16BE=function(e,r,n){j(this,e,r,!1,n)},t.prototype.writeUInt32LE=function(e,r,n){I(this,e,r,!0,n)},t.prototype.writeUInt32BE=function(e,r,n){I(this,e,r,!1,n)},t.prototype.writeInt8=function(e,r,n){n||(J(void 0!==e&&null!==e,"missing value"),J(void 0!==r&&null!==r,"missing offset"),J(r<this.length,"Trying to write beyond buffer length"),W(e,127,-128)),r>=this.length||(e>=0?this.writeUInt8(e,r,n):this.writeUInt8(255+e+1,r,n))},t.prototype.writeInt16LE=function(e,r,n){B(this,e,r,!0,n)},t.prototype.writeInt16BE=function(e,r,n){B(this,e,r,!1,n)},t.prototype.writeInt32LE=function(e,r,n){U(this,e,r,!0,n)},t.prototype.writeInt32BE=function(e,r,n){U(this,e,r,!1,n)},t.prototype.writeFloatLE=function(e,r,n){A(this,e,r,!0,n)},t.prototype.writeFloatBE=function(e,r,n){A(this,e,r,!1,n)},t.prototype.writeDoubleLE=function(e,r,n){L(this,e,r,!0,n)},t.prototype.writeDoubleBE=function(e,r,n){L(this,e,r,!1,n)},t.prototype.fill=function(e,r,n){if(e||(e=0),r||(r=0),n||(n=this.length),"string"==typeof e&&(e=e.charCodeAt(0)),J("number"==typeof e&&!isNaN(e),"value is not a number"),J(n>=r,"end < start"),n!==r&&0!==this.length){J(r>=0&&r<this.length,"start out of bounds"),J(n>=0&&n<=this.length,"end out of bounds");for(var o=r;n>o;o++)this[o]=e}},t.prototype.inspect=function(){for(var e=[],r=this.length,o=0;r>o;o++)if(e[o]=N(this[o]),o===n.INSPECT_MAX_BYTES){e[o+1]="...";break}return"<Buffer "+e.join(" ")+">"},t.prototype.toArrayBuffer=function(){if("function"==typeof Uint8Array){if(t._useTypedArrays)return new t(this).buffer;for(var e=new Uint8Array(this.length),r=0,n=e.length;n>r;r+=1)e[r]=this[r];return e.buffer}throw new Error("Buffer.toArrayBuffer not supported in this browser")};var z=t.prototype}).call(this,e("/Users/spuleo/repos/object-hash/node_modules/gulp-browserify/node_modules/browserify/node_modules/insert-module-globals/node_modules/process/browser.js"),"undefined"!=typeof self?self:"undefined"!=typeof window?window:{},e("buffer").Buffer,arguments[3],arguments[4],arguments[5],arguments[6],"/node_modules/gulp-browserify/node_modules/browserify/node_modules/buffer/index.js","/node_modules/gulp-browserify/node_modules/browserify/node_modules/buffer")},{"/Users/spuleo/repos/object-hash/node_modules/gulp-browserify/node_modules/browserify/node_modules/insert-module-globals/node_modules/process/browser.js":12,"base64-js":4,buffer:3,ieee754:5}],4:[function(e,r){(function(){var e="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/";!function(){"use strict";function n(e){var r=e.charCodeAt(0);return r===i?62:r===u?63:f>r?-1:f+10>r?r-f+26+26:a+26>r?r-a:l+26>r?r-l+26:void 0}function o(e){function r(e){l[d++]=e}var o,t,i,u,f,l;if(e.length%4>0)throw new Error("Invalid string. Length must be a multiple of 4");var a=e.length;f="="===e.charAt(a-2)?2:"="===e.charAt(a-1)?1:0,l=new s(3*e.length/4-f),i=f>0?e.length-4:e.length;var d=0;for(o=0,t=0;i>o;o+=4,t+=3)u=n(e.charAt(o))<<18|n(e.charAt(o+1))<<12|n(e.charAt(o+2))<<6|n(e.charAt(o+3)),r((16711680&u)>>16),r((65280&u)>>8),r(255&u);return 2===f?(u=n(e.charAt(o))<<2|n(e.charAt(o+1))>>4,r(255&u)):1===f&&(u=n(e.charAt(o))<<10|n(e.charAt(o+1))<<4|n(e.charAt(o+2))>>2,r(u>>8&255),r(255&u)),l}function t(r){function n(r){return e.charAt(r)}function o(e){return n(e>>18&63)+n(e>>12&63)+n(e>>6&63)+n(63&e)}var t,s,i,u=r.length%3,f="";for(t=0,i=r.length-u;i>t;t+=3)s=(r[t]<<16)+(r[t+1]<<8)+r[t+2],f+=o(s);switch(u){case 1:s=r[r.length-1],f+=n(s>>2),f+=n(s<<4&63),f+="==";break;case 2:s=(r[r.length-2]<<8)+r[r.length-1],f+=n(s>>10),f+=n(s>>4&63),f+=n(s<<2&63),f+="="}return f}var s="undefined"!=typeof Uint8Array?Uint8Array:Array,i=("0".charCodeAt(0),"+".charCodeAt(0)),u="/".charCodeAt(0),f="0".charCodeAt(0),l="a".charCodeAt(0),a="A".charCodeAt(0);r.exports.toByteArray=o,r.exports.fromByteArray=t}()}).call(this,e("/Users/spuleo/repos/object-hash/node_modules/gulp-browserify/node_modules/browserify/node_modules/insert-module-globals/node_modules/process/browser.js"),"undefined"!=typeof self?self:"undefined"!=typeof window?window:{},e("buffer").Buffer,arguments[3],arguments[4],arguments[5],arguments[6],"/node_modules/gulp-browserify/node_modules/browserify/node_modules/buffer/node_modules/base64-js/lib/b64.js","/node_modules/gulp-browserify/node_modules/browserify/node_modules/buffer/node_modules/base64-js/lib")},{"/Users/spuleo/repos/object-hash/node_modules/gulp-browserify/node_modules/browserify/node_modules/insert-module-globals/node_modules/process/browser.js":12,buffer:3}],5:[function(e,r,n){(function(){n.read=function(e,r,n,o,t){var s,i,u=8*t-o-1,f=(1<<u)-1,l=f>>1,a=-7,d=n?t-1:0,c=n?-1:1,h=e[r+d];for(d+=c,s=h&(1<<-a)-1,h>>=-a,a+=u;a>0;s=256*s+e[r+d],d+=c,a-=8);for(i=s&(1<<-a)-1,s>>=-a,a+=o;a>0;i=256*i+e[r+d],d+=c,a-=8);if(0===s)s=1-l;else{if(s===f)return i?0/0:1/0*(h?-1:1);i+=Math.pow(2,o),s-=l}return(h?-1:1)*i*Math.pow(2,s-o)},n.write=function(e,r,n,o,t,s){var i,u,f,l=8*s-t-1,a=(1<<l)-1,d=a>>1,c=23===t?Math.pow(2,-24)-Math.pow(2,-77):0,h=o?0:s-1,p=o?1:-1,g=0>r||0===r&&0>1/r?1:0;for(r=Math.abs(r),isNaN(r)||1/0===r?(u=isNaN(r)?1:0,i=a):(i=Math.floor(Math.log(r)/Math.LN2),r*(f=Math.pow(2,-i))<1&&(i--,f*=2),r+=i+d>=1?c/f:c*Math.pow(2,1-d),r*f>=2&&(i++,f/=2),i+d>=a?(u=0,i=a):i+d>=1?(u=(r*f-1)*Math.pow(2,t),i+=d):(u=r*Math.pow(2,d-1)*Math.pow(2,t),i=0));t>=8;e[n+h]=255&u,h+=p,u/=256,t-=8);for(i=i<<t|u,l+=t;l>0;e[n+h]=255&i,h+=p,i/=256,l-=8);e[n+h-p]|=128*g}}).call(this,e("/Users/spuleo/repos/object-hash/node_modules/gulp-browserify/node_modules/browserify/node_modules/insert-module-globals/node_modules/process/browser.js"),"undefined"!=typeof self?self:"undefined"!=typeof window?window:{},e("buffer").Buffer,arguments[3],arguments[4],arguments[5],arguments[6],"/node_modules/gulp-browserify/node_modules/browserify/node_modules/buffer/node_modules/ieee754/index.js","/node_modules/gulp-browserify/node_modules/browserify/node_modules/buffer/node_modules/ieee754")},{"/Users/spuleo/repos/object-hash/node_modules/gulp-browserify/node_modules/browserify/node_modules/insert-module-globals/node_modules/process/browser.js":12,buffer:3}],6:[function(e,r){(function(n,o,t){function s(e,r){if(e.length%f!==0){var n=e.length+(f-e.length%f);e=t.concat([e,l],n)}for(var o=[],s=r?e.readInt32BE:e.readInt32LE,i=0;i<e.length;i+=f)o.push(s.call(e,i));return o}function i(e,r,n){for(var o=new t(r),s=n?o.writeInt32BE:o.writeInt32LE,i=0;i<e.length;i++)s.call(o,e[i],4*i,!0);return o}function u(e,r,n,o){t.isBuffer(e)||(e=new t(e));var u=r(s(e,o),e.length*a);return i(u,n,o)}var t=e("buffer").Buffer,f=4,l=new t(f);l.fill(0);var a=8;r.exports={hash:u}}).call(this,e("/Users/spuleo/repos/object-hash/node_modules/gulp-browserify/node_modules/browserify/node_modules/insert-module-globals/node_modules/process/browser.js"),"undefined"!=typeof self?self:"undefined"!=typeof window?window:{},e("buffer").Buffer,arguments[3],arguments[4],arguments[5],arguments[6],"/node_modules/gulp-browserify/node_modules/browserify/node_modules/crypto-browserify/helpers.js","/node_modules/gulp-browserify/node_modules/browserify/node_modules/crypto-browserify")},{"/Users/spuleo/repos/object-hash/node_modules/gulp-browserify/node_modules/browserify/node_modules/insert-module-globals/node_modules/process/browser.js":12,buffer:3}],7:[function(e,r,n){(function(r,o,t){function s(e,r,n){t.isBuffer(r)||(r=new t(r)),t.isBuffer(n)||(n=new t(n)),r.length>p?r=e(r):r.length<p&&(r=t.concat([r,g],p));for(var o=new t(p),s=new t(p),i=0;p>i;i++)o[i]=54^r[i],s[i]=92^r[i];var u=e(t.concat([o,n]));return e(t.concat([s,u]))}function i(e,r){e=e||"sha1";var n=h[e],o=[],i=0;return n||u("algorithm:",e,"is not yet supported"),{update:function(e){return t.isBuffer(e)||(e=new t(e)),o.push(e),i+=e.length,this},digest:function(e){var i=t.concat(o),u=r?s(n,r,i):n(i);return o=null,e?u.toString(e):u}}}function u(){var e=[].slice.call(arguments).join(" ");throw new Error([e,"we accept pull requests","http://github.com/dominictarr/crypto-browserify"].join("\n"))}function f(e,r){for(var n in e)r(e[n],n)}var t=e("buffer").Buffer,l=e("./sha"),a=e("./sha256"),d=e("./rng"),c=e("./md5"),h={sha1:l,sha256:a,md5:c},p=64,g=new t(p);g.fill(0),n.createHash=function(e){return i(e)},n.createHmac=function(e,r){return i(e,r)},n.randomBytes=function(e,r){if(!r||!r.call)return new t(d(e));try{r.call(this,void 0,new t(d(e)))}catch(n){r(n)}},f(["createCredentials","createCipher","createCipheriv","createDecipher","createDecipheriv","createSign","createVerify","createDiffieHellman","pbkdf2"],function(e){n[e]=function(){u("sorry,",e,"is not implemented yet")}})}).call(this,e("/Users/spuleo/repos/object-hash/node_modules/gulp-browserify/node_modules/browserify/node_modules/insert-module-globals/node_modules/process/browser.js"),"undefined"!=typeof self?self:"undefined"!=typeof window?window:{},e("buffer").Buffer,arguments[3],arguments[4],arguments[5],arguments[6],"/node_modules/gulp-browserify/node_modules/browserify/node_modules/crypto-browserify/index.js","/node_modules/gulp-browserify/node_modules/browserify/node_modules/crypto-browserify")},{"./md5":8,"./rng":9,"./sha":10,"./sha256":11,"/Users/spuleo/repos/object-hash/node_modules/gulp-browserify/node_modules/browserify/node_modules/insert-module-globals/node_modules/process/browser.js":12,buffer:3}],8:[function(e,r){(function(){function n(e,r){e[r>>5]|=128<<r%32,e[(r+64>>>9<<4)+14]=r;for(var n=1732584193,o=-271733879,l=-1732584194,a=271733878,d=0;d<e.length;d+=16){var c=n,h=o,p=l,g=a;n=t(n,o,l,a,e[d+0],7,-680876936),a=t(a,n,o,l,e[d+1],12,-389564586),l=t(l,a,n,o,e[d+2],17,606105819),o=t(o,l,a,n,e[d+3],22,-1044525330),n=t(n,o,l,a,e[d+4],7,-176418897),a=t(a,n,o,l,e[d+5],12,1200080426),l=t(l,a,n,o,e[d+6],17,-1473231341),o=t(o,l,a,n,e[d+7],22,-45705983),n=t(n,o,l,a,e[d+8],7,1770035416),a=t(a,n,o,l,e[d+9],12,-1958414417),l=t(l,a,n,o,e[d+10],17,-42063),o=t(o,l,a,n,e[d+11],22,-1990404162),n=t(n,o,l,a,e[d+12],7,1804603682),a=t(a,n,o,l,e[d+13],12,-40341101),l=t(l,a,n,o,e[d+14],17,-1502002290),o=t(o,l,a,n,e[d+15],22,1236535329),n=s(n,o,l,a,e[d+1],5,-165796510),a=s(a,n,o,l,e[d+6],9,-1069501632),l=s(l,a,n,o,e[d+11],14,643717713),o=s(o,l,a,n,e[d+0],20,-373897302),n=s(n,o,l,a,e[d+5],5,-701558691),a=s(a,n,o,l,e[d+10],9,38016083),l=s(l,a,n,o,e[d+15],14,-660478335),o=s(o,l,a,n,e[d+4],20,-405537848),n=s(n,o,l,a,e[d+9],5,568446438),a=s(a,n,o,l,e[d+14],9,-1019803690),l=s(l,a,n,o,e[d+3],14,-187363961),o=s(o,l,a,n,e[d+8],20,1163531501),n=s(n,o,l,a,e[d+13],5,-1444681467),a=s(a,n,o,l,e[d+2],9,-51403784),l=s(l,a,n,o,e[d+7],14,1735328473),o=s(o,l,a,n,e[d+12],20,-1926607734),n=i(n,o,l,a,e[d+5],4,-378558),a=i(a,n,o,l,e[d+8],11,-2022574463),l=i(l,a,n,o,e[d+11],16,1839030562),o=i(o,l,a,n,e[d+14],23,-35309556),n=i(n,o,l,a,e[d+1],4,-1530992060),a=i(a,n,o,l,e[d+4],11,1272893353),l=i(l,a,n,o,e[d+7],16,-155497632),o=i(o,l,a,n,e[d+10],23,-1094730640),n=i(n,o,l,a,e[d+13],4,681279174),a=i(a,n,o,l,e[d+0],11,-358537222),l=i(l,a,n,o,e[d+3],16,-722521979),o=i(o,l,a,n,e[d+6],23,76029189),n=i(n,o,l,a,e[d+9],4,-640364487),a=i(a,n,o,l,e[d+12],11,-421815835),l=i(l,a,n,o,e[d+15],16,530742520),o=i(o,l,a,n,e[d+2],23,-995338651),n=u(n,o,l,a,e[d+0],6,-198630844),a=u(a,n,o,l,e[d+7],10,1126891415),l=u(l,a,n,o,e[d+14],15,-1416354905),o=u(o,l,a,n,e[d+5],21,-57434055),n=u(n,o,l,a,e[d+12],6,1700485571),a=u(a,n,o,l,e[d+3],10,-1894986606),l=u(l,a,n,o,e[d+10],15,-1051523),o=u(o,l,a,n,e[d+1],21,-2054922799),n=u(n,o,l,a,e[d+8],6,1873313359),a=u(a,n,o,l,e[d+15],10,-30611744),l=u(l,a,n,o,e[d+6],15,-1560198380),o=u(o,l,a,n,e[d+13],21,1309151649),n=u(n,o,l,a,e[d+4],6,-145523070),a=u(a,n,o,l,e[d+11],10,-1120210379),l=u(l,a,n,o,e[d+2],15,718787259),o=u(o,l,a,n,e[d+9],21,-343485551),n=f(n,c),o=f(o,h),l=f(l,p),a=f(a,g)}return Array(n,o,l,a)}function o(e,r,n,o,t,s){return f(l(f(f(r,e),f(o,s)),t),n)}function t(e,r,n,t,s,i,u){return o(r&n|~r&t,e,r,s,i,u)}function s(e,r,n,t,s,i,u){return o(r&t|n&~t,e,r,s,i,u)}function i(e,r,n,t,s,i,u){return o(r^n^t,e,r,s,i,u)}function u(e,r,n,t,s,i,u){return o(n^(r|~t),e,r,s,i,u)}function f(e,r){var n=(65535&e)+(65535&r),o=(e>>16)+(r>>16)+(n>>16);return o<<16|65535&n}function l(e,r){return e<<r|e>>>32-r}var a=e("./helpers");r.exports=function(e){return a.hash(e,n,16)}}).call(this,e("/Users/spuleo/repos/object-hash/node_modules/gulp-browserify/node_modules/browserify/node_modules/insert-module-globals/node_modules/process/browser.js"),"undefined"!=typeof self?self:"undefined"!=typeof window?window:{},e("buffer").Buffer,arguments[3],arguments[4],arguments[5],arguments[6],"/node_modules/gulp-browserify/node_modules/browserify/node_modules/crypto-browserify/md5.js","/node_modules/gulp-browserify/node_modules/browserify/node_modules/crypto-browserify")},{"./helpers":6,"/Users/spuleo/repos/object-hash/node_modules/gulp-browserify/node_modules/browserify/node_modules/insert-module-globals/node_modules/process/browser.js":12,buffer:3}],9:[function(e,r){(function(){!function(){var e,n,o=this;e=function(e){for(var r,r,n=new Array(e),o=0;e>o;o++)0==(3&o)&&(r=4294967296*Math.random()),n[o]=r>>>((3&o)<<3)&255;return n},o.crypto&&crypto.getRandomValues&&(n=function(e){var r=new Uint8Array(e);return crypto.getRandomValues(r),r}),r.exports=n||e}()}).call(this,e("/Users/spuleo/repos/object-hash/node_modules/gulp-browserify/node_modules/browserify/node_modules/insert-module-globals/node_modules/process/browser.js"),"undefined"!=typeof self?self:"undefined"!=typeof window?window:{},e("buffer").Buffer,arguments[3],arguments[4],arguments[5],arguments[6],"/node_modules/gulp-browserify/node_modules/browserify/node_modules/crypto-browserify/rng.js","/node_modules/gulp-browserify/node_modules/browserify/node_modules/crypto-browserify")},{"/Users/spuleo/repos/object-hash/node_modules/gulp-browserify/node_modules/browserify/node_modules/insert-module-globals/node_modules/process/browser.js":12,buffer:3}],10:[function(e,r){(function(){function n(e,r){e[r>>5]|=128<<24-r%32,e[(r+64>>9<<4)+15]=r;for(var n=Array(80),u=1732584193,f=-271733879,l=-1732584194,a=271733878,d=-1009589776,c=0;c<e.length;c+=16){for(var h=u,p=f,g=l,b=a,m=d,w=0;80>w;w++){n[w]=16>w?e[c+w]:i(n[w-3]^n[w-8]^n[w-14]^n[w-16],1);var y=s(s(i(u,5),o(w,f,l,a)),s(s(d,n[w]),t(w)));d=a,a=l,l=i(f,30),f=u,u=y}u=s(u,h),f=s(f,p),l=s(l,g),a=s(a,b),d=s(d,m)}return Array(u,f,l,a,d)}function o(e,r,n,o){return 20>e?r&n|~r&o:40>e?r^n^o:60>e?r&n|r&o|n&o:r^n^o}function t(e){return 20>e?1518500249:40>e?1859775393:60>e?-1894007588:-899497514}function s(e,r){var n=(65535&e)+(65535&r),o=(e>>16)+(r>>16)+(n>>16);return o<<16|65535&n}function i(e,r){return e<<r|e>>>32-r}var u=e("./helpers");r.exports=function(e){return u.hash(e,n,20,!0)}}).call(this,e("/Users/spuleo/repos/object-hash/node_modules/gulp-browserify/node_modules/browserify/node_modules/insert-module-globals/node_modules/process/browser.js"),"undefined"!=typeof self?self:"undefined"!=typeof window?window:{},e("buffer").Buffer,arguments[3],arguments[4],arguments[5],arguments[6],"/node_modules/gulp-browserify/node_modules/browserify/node_modules/crypto-browserify/sha.js","/node_modules/gulp-browserify/node_modules/browserify/node_modules/crypto-browserify") | ||
!function e(r,n,o){function t(i,u){if(!n[i]){if(!r[i]){var f="function"==typeof require&&require;if(!u&&f)return f(i,!0);if(s)return s(i,!0);throw new Error("Cannot find module '"+i+"'")}var l=n[i]={exports:{}};r[i][0].call(l.exports,function(e){var n=r[i][1][e];return t(n?n:e)},l,l.exports,e,r,n,o)}return n[i].exports}for(var s="function"==typeof require&&require,i=0;i<o.length;i++)t(o[i]);return t}({1:[function(e,r,n){(function(){"use strict";function o(e,r){return r=r||{},r.algorithm=r.algorithm||"sha1",r.encoding=r.encoding||"hex",r.excludeValues=r.excludeValues?!0:!1,r.algorithm=r.algorithm.toLowerCase(),r.encoding=r.encoding.toLowerCase(),t(e,r),s(e,r)}function t(e,r){var n=u.getHashes?u.getHashes():["sha","sha1","md5"],o=["buffer","hex","binary","base64"];if("undefined"==typeof e)throw new Error("Object argument required.");if(-1===n.indexOf(r.algorithm))throw new Error('Algorithm "'+r.algorithm+'" not supported. supported values: '+n.join(", "));if(-1===o.indexOf(r.encoding))throw new Error('Encoding "'+r.encoding+'" not supported. supported values: '+o.join(", "))}function s(e,r){var n=u.createHash(r.algorithm);return i(n,r).dispatch(e),"buffer"===r.encoding?n.digest():n.digest(r.encoding)}function i(e,r){return{dispatch:function(e){var r=typeof e,n=this["_"+r];return null===e?this._null():n(e)},_object:function(n){var o=/\[object (.*)\]/i,t=Object.prototype.toString.call(n),s=o.exec(t)[1]||"null";if(s=s.toLowerCase(),"object"===s){var u=Object.keys(n).sort();return u.forEach(function(o){e.update(o),r.excludeValues||i(e,r).dispatch(n[o])})}if(!i(e,r)["_"+s])throw new Error('Unknown object type "'+s+'"');i(e,r)["_"+s](n)},_array:function(n){return n.forEach(function(n){i(e,r).dispatch(n)})},_date:function(r){return e.update(r.toString())},_boolean:function(r){return e.update(r.toString())},_string:function(r){return e.update(r)},_function:function(r){return e.update(r.toString())},_number:function(r){return e.update(r.toString())},_xml:function(r){return e.update(r.toString())},_null:function(){return e.update("Null")},_domwindow:function(){return e.update("domwindow")}}}e("./lib/polyfills");var u=e("crypto");n=r.exports=o,n.keys=function(e){return o(e,{excludeValues:!0,algorithm:"sha1",encoding:"hex"})},n.MD5=function(e){return o(e,{algorithm:"md5",encoding:"hex"})},n.keysMD5=function(e){return o(e,{algorithm:"md5",encoding:"hex",excludeValues:!0})}}).call(this,e("/Users/spuleo/repos/object-hash/node_modules/gulp-browserify/node_modules/browserify/node_modules/insert-module-globals/node_modules/process/browser.js"),"undefined"!=typeof self?self:"undefined"!=typeof window?window:{},e("buffer").Buffer,arguments[3],arguments[4],arguments[5],arguments[6],"/fake_582488b5.js","/")},{"./lib/polyfills":2,"/Users/spuleo/repos/object-hash/node_modules/gulp-browserify/node_modules/browserify/node_modules/insert-module-globals/node_modules/process/browser.js":12,buffer:3,crypto:7}],2:[function(e){(function(){Object.keys||(Object.keys=function(){"use strict";var e=Object.prototype.hasOwnProperty,r=!{toString:null}.propertyIsEnumerable("toString"),n=["toString","toLocaleString","valueOf","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","constructor"],o=n.length;return function(t){if("object"!=typeof t&&("function"!=typeof t||null===t))throw new TypeError("Object.keys called on non-object");var s,i,u=[];for(s in t)e.call(t,s)&&u.push(s);if(r)for(i=0;o>i;i++)e.call(t,n[i])&&u.push(n[i]);return u}}()),Array.prototype.indexOf||(Array.prototype.indexOf=function(e,r){if(void 0===this||null===this)throw new TypeError('"this" is null or not defined');var n=this.length>>>0;for(r=+r||0,1/0===Math.abs(r)&&(r=0),0>r&&(r+=n,0>r&&(r=0));n>r;r++)if(this[r]===e)return r;return-1}),Array.prototype.forEach||(Array.prototype.forEach=function(e){"use strict";if(void 0===this||null===this)throw new TypeError;var r=Object(this),n=r.length>>>0;if("function"!=typeof e)throw new TypeError;for(var o=arguments.length>=2?arguments[1]:void 0,t=0;n>t;t++)t in r&&e.call(o,r[t],t,r)})}).call(this,e("/Users/spuleo/repos/object-hash/node_modules/gulp-browserify/node_modules/browserify/node_modules/insert-module-globals/node_modules/process/browser.js"),"undefined"!=typeof self?self:"undefined"!=typeof window?window:{},e("buffer").Buffer,arguments[3],arguments[4],arguments[5],arguments[6],"/lib/polyfills.js","/lib")},{"/Users/spuleo/repos/object-hash/node_modules/gulp-browserify/node_modules/browserify/node_modules/insert-module-globals/node_modules/process/browser.js":12,buffer:3}],3:[function(e,r,n){(function(r,o,t){function t(e,r,n){if(!(this instanceof t))return new t(e,r,n);var o=typeof e;if("base64"===r&&"string"===o)for(e=x(e);e.length%4!==0;)e+="=";var s;if("number"===o)s=C(e);else if("string"===o)s=t.byteLength(e,r);else{if("object"!==o)throw new Error("First argument needs to be a number, array or string.");s=C(e.length)}var i;t._useTypedArrays?i=S(new Uint8Array(s)):(i=this,i.length=s,i._isBuffer=!0);var u;if(t._useTypedArrays&&"function"==typeof Uint8Array&&e instanceof Uint8Array)i._set(e);else if(M(e))for(u=0;s>u;u++)i[u]=t.isBuffer(e)?e.readUInt8(u):e[u];else if("string"===o)i.write(e,0,r);else if("number"===o&&!t._useTypedArrays&&!n)for(u=0;s>u;u++)i[u]=0;return i}function s(e,r,n,o){n=Number(n)||0;var s=e.length-n;o?(o=Number(o),o>s&&(o=s)):o=s;var i=r.length;J(i%2===0,"Invalid hex string"),o>i/2&&(o=i/2);for(var u=0;o>u;u++){var f=parseInt(r.substr(2*u,2),16);J(!isNaN(f),"Invalid hex string"),e[n+u]=f}return t._charsWritten=2*u,u}function i(e,r,n,o){var s=t._charsWritten=q(O(r),e,n,o);return s}function u(e,r,n,o){var s=t._charsWritten=q(D(r),e,n,o);return s}function f(e,r,n,o){return u(e,r,n,o)}function l(e,r,n,o){var s=t._charsWritten=q(V(r),e,n,o);return s}function a(e,r,n,o){var s=t._charsWritten=q(F(r),e,n,o);return s}function d(e,r,n){return X.fromByteArray(0===r&&n===e.length?e:e.slice(r,n))}function c(e,r,n){var o="",t="";n=Math.min(e.length,n);for(var s=r;n>s;s++)e[s]<=127?(o+=H(t)+String.fromCharCode(e[s]),t=""):t+="%"+e[s].toString(16);return o+H(t)}function h(e,r,n){var o="";n=Math.min(e.length,n);for(var t=r;n>t;t++)o+=String.fromCharCode(e[t]);return o}function p(e,r,n){return h(e,r,n)}function g(e,r,n){var o=e.length;(!r||0>r)&&(r=0),(!n||0>n||n>o)&&(n=o);for(var t="",s=r;n>s;s++)t+=N(e[s]);return t}function b(e,r,n){for(var o=e.slice(r,n),t="",s=0;s<o.length;s+=2)t+=String.fromCharCode(o[s]+256*o[s+1]);return t}function m(e,r,n,o){o||(J("boolean"==typeof n,"missing or invalid endian"),J(void 0!==r&&null!==r,"missing offset"),J(r+1<e.length,"Trying to read beyond buffer length"));var t=e.length;if(!(r>=t)){var s;return n?(s=e[r],t>r+1&&(s|=e[r+1]<<8)):(s=e[r]<<8,t>r+1&&(s|=e[r+1])),s}}function w(e,r,n,o){o||(J("boolean"==typeof n,"missing or invalid endian"),J(void 0!==r&&null!==r,"missing offset"),J(r+3<e.length,"Trying to read beyond buffer length"));var t=e.length;if(!(r>=t)){var s;return n?(t>r+2&&(s=e[r+2]<<16),t>r+1&&(s|=e[r+1]<<8),s|=e[r],t>r+3&&(s+=e[r+3]<<24>>>0)):(t>r+1&&(s=e[r+1]<<16),t>r+2&&(s|=e[r+2]<<8),t>r+3&&(s|=e[r+3]),s+=e[r]<<24>>>0),s}}function y(e,r,n,o){o||(J("boolean"==typeof n,"missing or invalid endian"),J(void 0!==r&&null!==r,"missing offset"),J(r+1<e.length,"Trying to read beyond buffer length"));var t=e.length;if(!(r>=t)){var s=m(e,r,n,!0),i=32768&s;return i?-1*(65535-s+1):s}}function v(e,r,n,o){o||(J("boolean"==typeof n,"missing or invalid endian"),J(void 0!==r&&null!==r,"missing offset"),J(r+3<e.length,"Trying to read beyond buffer length"));var t=e.length;if(!(r>=t)){var s=w(e,r,n,!0),i=2147483648&s;return i?-1*(4294967295-s+1):s}}function _(e,r,n,o){return o||(J("boolean"==typeof n,"missing or invalid endian"),J(r+3<e.length,"Trying to read beyond buffer length")),Y.read(e,r,n,23,4)}function E(e,r,n,o){return o||(J("boolean"==typeof n,"missing or invalid endian"),J(r+7<e.length,"Trying to read beyond buffer length")),Y.read(e,r,n,52,8)}function j(e,r,n,o,t){t||(J(void 0!==r&&null!==r,"missing value"),J("boolean"==typeof o,"missing or invalid endian"),J(void 0!==n&&null!==n,"missing offset"),J(n+1<e.length,"trying to write beyond buffer length"),P(r,65535));var s=e.length;if(!(n>=s))for(var i=0,u=Math.min(s-n,2);u>i;i++)e[n+i]=(r&255<<8*(o?i:1-i))>>>8*(o?i:1-i)}function I(e,r,n,o,t){t||(J(void 0!==r&&null!==r,"missing value"),J("boolean"==typeof o,"missing or invalid endian"),J(void 0!==n&&null!==n,"missing offset"),J(n+3<e.length,"trying to write beyond buffer length"),P(r,4294967295));var s=e.length;if(!(n>=s))for(var i=0,u=Math.min(s-n,4);u>i;i++)e[n+i]=r>>>8*(o?i:3-i)&255}function B(e,r,n,o,t){t||(J(void 0!==r&&null!==r,"missing value"),J("boolean"==typeof o,"missing or invalid endian"),J(void 0!==n&&null!==n,"missing offset"),J(n+1<e.length,"Trying to write beyond buffer length"),W(r,32767,-32768));var s=e.length;n>=s||(r>=0?j(e,r,n,o,t):j(e,65535+r+1,n,o,t))}function U(e,r,n,o,t){t||(J(void 0!==r&&null!==r,"missing value"),J("boolean"==typeof o,"missing or invalid endian"),J(void 0!==n&&null!==n,"missing offset"),J(n+3<e.length,"Trying to write beyond buffer length"),W(r,2147483647,-2147483648));var s=e.length;n>=s||(r>=0?I(e,r,n,o,t):I(e,4294967295+r+1,n,o,t))}function A(e,r,n,o,t){t||(J(void 0!==r&&null!==r,"missing value"),J("boolean"==typeof o,"missing or invalid endian"),J(void 0!==n&&null!==n,"missing offset"),J(n+3<e.length,"Trying to write beyond buffer length"),R(r,3.4028234663852886e38,-3.4028234663852886e38));var s=e.length;n>=s||Y.write(e,r,n,o,23,4)}function L(e,r,n,o,t){t||(J(void 0!==r&&null!==r,"missing value"),J("boolean"==typeof o,"missing or invalid endian"),J(void 0!==n&&null!==n,"missing offset"),J(n+7<e.length,"Trying to write beyond buffer length"),R(r,1.7976931348623157e308,-1.7976931348623157e308));var s=e.length;n>=s||Y.write(e,r,n,o,52,8)}function x(e){return e.trim?e.trim():e.replace(/^\s+|\s+$/g,"")}function S(e){return e._isBuffer=!0,e._get=e.get,e._set=e.set,e.get=z.get,e.set=z.set,e.write=z.write,e.toString=z.toString,e.toLocaleString=z.toString,e.toJSON=z.toJSON,e.copy=z.copy,e.slice=z.slice,e.readUInt8=z.readUInt8,e.readUInt16LE=z.readUInt16LE,e.readUInt16BE=z.readUInt16BE,e.readUInt32LE=z.readUInt32LE,e.readUInt32BE=z.readUInt32BE,e.readInt8=z.readInt8,e.readInt16LE=z.readInt16LE,e.readInt16BE=z.readInt16BE,e.readInt32LE=z.readInt32LE,e.readInt32BE=z.readInt32BE,e.readFloatLE=z.readFloatLE,e.readFloatBE=z.readFloatBE,e.readDoubleLE=z.readDoubleLE,e.readDoubleBE=z.readDoubleBE,e.writeUInt8=z.writeUInt8,e.writeUInt16LE=z.writeUInt16LE,e.writeUInt16BE=z.writeUInt16BE,e.writeUInt32LE=z.writeUInt32LE,e.writeUInt32BE=z.writeUInt32BE,e.writeInt8=z.writeInt8,e.writeInt16LE=z.writeInt16LE,e.writeInt16BE=z.writeInt16BE,e.writeInt32LE=z.writeInt32LE,e.writeInt32BE=z.writeInt32BE,e.writeFloatLE=z.writeFloatLE,e.writeFloatBE=z.writeFloatBE,e.writeDoubleLE=z.writeDoubleLE,e.writeDoubleBE=z.writeDoubleBE,e.fill=z.fill,e.inspect=z.inspect,e.toArrayBuffer=z.toArrayBuffer,e}function k(e,r,n){return"number"!=typeof e?n:(e=~~e,e>=r?r:e>=0?e:(e+=r,e>=0?e:0))}function C(e){return e=~~Math.ceil(+e),0>e?0:e}function T(e){return(Array.isArray||function(e){return"[object Array]"===Object.prototype.toString.call(e)})(e)}function M(e){return T(e)||t.isBuffer(e)||e&&"object"==typeof e&&"number"==typeof e.length}function N(e){return 16>e?"0"+e.toString(16):e.toString(16)}function O(e){for(var r=[],n=0;n<e.length;n++){var o=e.charCodeAt(n);if(127>=o)r.push(e.charCodeAt(n));else{var t=n;o>=55296&&57343>=o&&n++;for(var s=encodeURIComponent(e.slice(t,n+1)).substr(1).split("%"),i=0;i<s.length;i++)r.push(parseInt(s[i],16))}}return r}function D(e){for(var r=[],n=0;n<e.length;n++)r.push(255&e.charCodeAt(n));return r}function F(e){for(var r,n,o,t=[],s=0;s<e.length;s++)r=e.charCodeAt(s),n=r>>8,o=r%256,t.push(o),t.push(n);return t}function V(e){return X.toByteArray(e)}function q(e,r,n,o){for(var t=0;o>t&&!(t+n>=r.length||t>=e.length);t++)r[t+n]=e[t];return t}function H(e){try{return decodeURIComponent(e)}catch(r){return String.fromCharCode(65533)}}function P(e,r){J("number"==typeof e,"cannot write a non-number as a number"),J(e>=0,"specified a negative value for writing an unsigned value"),J(r>=e,"value is larger than maximum value for type"),J(Math.floor(e)===e,"value has a fractional component")}function W(e,r,n){J("number"==typeof e,"cannot write a non-number as a number"),J(r>=e,"value larger than maximum allowed value"),J(e>=n,"value smaller than minimum allowed value"),J(Math.floor(e)===e,"value has a fractional component")}function R(e,r,n){J("number"==typeof e,"cannot write a non-number as a number"),J(r>=e,"value larger than maximum allowed value"),J(e>=n,"value smaller than minimum allowed value")}function J(e,r){if(!e)throw new Error(r||"Failed assertion")}var X=e("base64-js"),Y=e("ieee754");n.Buffer=t,n.SlowBuffer=t,n.INSPECT_MAX_BYTES=50,t.poolSize=8192,t._useTypedArrays=function(){if("function"!=typeof Uint8Array||"function"!=typeof ArrayBuffer)return!1;try{var e=new Uint8Array(0);return e.foo=function(){return 42},42===e.foo()&&"function"==typeof e.subarray}catch(r){return!1}}(),t.isEncoding=function(e){switch(String(e).toLowerCase()){case"hex":case"utf8":case"utf-8":case"ascii":case"binary":case"base64":case"raw":case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return!0;default:return!1}},t.isBuffer=function(e){return!(null===e||void 0===e||!e._isBuffer)},t.byteLength=function(e,r){var n;switch(e+="",r||"utf8"){case"hex":n=e.length/2;break;case"utf8":case"utf-8":n=O(e).length;break;case"ascii":case"binary":case"raw":n=e.length;break;case"base64":n=V(e).length;break;case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":n=2*e.length;break;default:throw new Error("Unknown encoding")}return n},t.concat=function(e,r){if(J(T(e),"Usage: Buffer.concat(list, [totalLength])\nlist should be an Array."),0===e.length)return new t(0);if(1===e.length)return e[0];var n;if("number"!=typeof r)for(r=0,n=0;n<e.length;n++)r+=e[n].length;var o=new t(r),s=0;for(n=0;n<e.length;n++){var i=e[n];i.copy(o,s),s+=i.length}return o},t.prototype.write=function(e,r,n,o){if(isFinite(r))isFinite(n)||(o=n,n=void 0);else{var t=o;o=r,r=n,n=t}r=Number(r)||0;var d=this.length-r;n?(n=Number(n),n>d&&(n=d)):n=d,o=String(o||"utf8").toLowerCase();var c;switch(o){case"hex":c=s(this,e,r,n);break;case"utf8":case"utf-8":c=i(this,e,r,n);break;case"ascii":c=u(this,e,r,n);break;case"binary":c=f(this,e,r,n);break;case"base64":c=l(this,e,r,n);break;case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":c=a(this,e,r,n);break;default:throw new Error("Unknown encoding")}return c},t.prototype.toString=function(e,r,n){var o=this;if(e=String(e||"utf8").toLowerCase(),r=Number(r)||0,n=void 0!==n?Number(n):n=o.length,n===r)return"";var t;switch(e){case"hex":t=g(o,r,n);break;case"utf8":case"utf-8":t=c(o,r,n);break;case"ascii":t=h(o,r,n);break;case"binary":t=p(o,r,n);break;case"base64":t=d(o,r,n);break;case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":t=b(o,r,n);break;default:throw new Error("Unknown encoding")}return t},t.prototype.toJSON=function(){return{type:"Buffer",data:Array.prototype.slice.call(this._arr||this,0)}},t.prototype.copy=function(e,r,n,o){var t=this;if(n||(n=0),o||0===o||(o=this.length),r||(r=0),o!==n&&0!==e.length&&0!==t.length){J(o>=n,"sourceEnd < sourceStart"),J(r>=0&&r<e.length,"targetStart out of bounds"),J(n>=0&&n<t.length,"sourceStart out of bounds"),J(o>=0&&o<=t.length,"sourceEnd out of bounds"),o>this.length&&(o=this.length),e.length-r<o-n&&(o=e.length-r+n);for(var s=0;o-n>s;s++)e[s+r]=this[s+n]}},t.prototype.slice=function(e,r){var n=this.length;if(e=k(e,n,0),r=k(r,n,n),t._useTypedArrays)return S(this.subarray(e,r));for(var o=r-e,s=new t(o,void 0,!0),i=0;o>i;i++)s[i]=this[i+e];return s},t.prototype.get=function(e){return console.log(".get() is deprecated. Access using array indexes instead."),this.readUInt8(e)},t.prototype.set=function(e,r){return console.log(".set() is deprecated. Access using array indexes instead."),this.writeUInt8(e,r)},t.prototype.readUInt8=function(e,r){return r||(J(void 0!==e&&null!==e,"missing offset"),J(e<this.length,"Trying to read beyond buffer length")),e>=this.length?void 0:this[e]},t.prototype.readUInt16LE=function(e,r){return m(this,e,!0,r)},t.prototype.readUInt16BE=function(e,r){return m(this,e,!1,r)},t.prototype.readUInt32LE=function(e,r){return w(this,e,!0,r)},t.prototype.readUInt32BE=function(e,r){return w(this,e,!1,r)},t.prototype.readInt8=function(e,r){if(r||(J(void 0!==e&&null!==e,"missing offset"),J(e<this.length,"Trying to read beyond buffer length")),!(e>=this.length)){var n=128&this[e];return n?-1*(255-this[e]+1):this[e]}},t.prototype.readInt16LE=function(e,r){return y(this,e,!0,r)},t.prototype.readInt16BE=function(e,r){return y(this,e,!1,r)},t.prototype.readInt32LE=function(e,r){return v(this,e,!0,r)},t.prototype.readInt32BE=function(e,r){return v(this,e,!1,r)},t.prototype.readFloatLE=function(e,r){return _(this,e,!0,r)},t.prototype.readFloatBE=function(e,r){return _(this,e,!1,r)},t.prototype.readDoubleLE=function(e,r){return E(this,e,!0,r)},t.prototype.readDoubleBE=function(e,r){return E(this,e,!1,r)},t.prototype.writeUInt8=function(e,r,n){n||(J(void 0!==e&&null!==e,"missing value"),J(void 0!==r&&null!==r,"missing offset"),J(r<this.length,"trying to write beyond buffer length"),P(e,255)),r>=this.length||(this[r]=e)},t.prototype.writeUInt16LE=function(e,r,n){j(this,e,r,!0,n)},t.prototype.writeUInt16BE=function(e,r,n){j(this,e,r,!1,n)},t.prototype.writeUInt32LE=function(e,r,n){I(this,e,r,!0,n)},t.prototype.writeUInt32BE=function(e,r,n){I(this,e,r,!1,n)},t.prototype.writeInt8=function(e,r,n){n||(J(void 0!==e&&null!==e,"missing value"),J(void 0!==r&&null!==r,"missing offset"),J(r<this.length,"Trying to write beyond buffer length"),W(e,127,-128)),r>=this.length||(e>=0?this.writeUInt8(e,r,n):this.writeUInt8(255+e+1,r,n))},t.prototype.writeInt16LE=function(e,r,n){B(this,e,r,!0,n)},t.prototype.writeInt16BE=function(e,r,n){B(this,e,r,!1,n)},t.prototype.writeInt32LE=function(e,r,n){U(this,e,r,!0,n)},t.prototype.writeInt32BE=function(e,r,n){U(this,e,r,!1,n)},t.prototype.writeFloatLE=function(e,r,n){A(this,e,r,!0,n)},t.prototype.writeFloatBE=function(e,r,n){A(this,e,r,!1,n)},t.prototype.writeDoubleLE=function(e,r,n){L(this,e,r,!0,n)},t.prototype.writeDoubleBE=function(e,r,n){L(this,e,r,!1,n)},t.prototype.fill=function(e,r,n){if(e||(e=0),r||(r=0),n||(n=this.length),"string"==typeof e&&(e=e.charCodeAt(0)),J("number"==typeof e&&!isNaN(e),"value is not a number"),J(n>=r,"end < start"),n!==r&&0!==this.length){J(r>=0&&r<this.length,"start out of bounds"),J(n>=0&&n<=this.length,"end out of bounds");for(var o=r;n>o;o++)this[o]=e}},t.prototype.inspect=function(){for(var e=[],r=this.length,o=0;r>o;o++)if(e[o]=N(this[o]),o===n.INSPECT_MAX_BYTES){e[o+1]="...";break}return"<Buffer "+e.join(" ")+">"},t.prototype.toArrayBuffer=function(){if("function"==typeof Uint8Array){if(t._useTypedArrays)return new t(this).buffer;for(var e=new Uint8Array(this.length),r=0,n=e.length;n>r;r+=1)e[r]=this[r];return e.buffer}throw new Error("Buffer.toArrayBuffer not supported in this browser")};var z=t.prototype}).call(this,e("/Users/spuleo/repos/object-hash/node_modules/gulp-browserify/node_modules/browserify/node_modules/insert-module-globals/node_modules/process/browser.js"),"undefined"!=typeof self?self:"undefined"!=typeof window?window:{},e("buffer").Buffer,arguments[3],arguments[4],arguments[5],arguments[6],"/node_modules/gulp-browserify/node_modules/browserify/node_modules/buffer/index.js","/node_modules/gulp-browserify/node_modules/browserify/node_modules/buffer")},{"/Users/spuleo/repos/object-hash/node_modules/gulp-browserify/node_modules/browserify/node_modules/insert-module-globals/node_modules/process/browser.js":12,"base64-js":4,buffer:3,ieee754:5}],4:[function(e,r){(function(){var e="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/";!function(){"use strict";function n(e){var r=e.charCodeAt(0);return r===i?62:r===u?63:f>r?-1:f+10>r?r-f+26+26:a+26>r?r-a:l+26>r?r-l+26:void 0}function o(e){function r(e){l[d++]=e}var o,t,i,u,f,l;if(e.length%4>0)throw new Error("Invalid string. Length must be a multiple of 4");var a=e.length;f="="===e.charAt(a-2)?2:"="===e.charAt(a-1)?1:0,l=new s(3*e.length/4-f),i=f>0?e.length-4:e.length;var d=0;for(o=0,t=0;i>o;o+=4,t+=3)u=n(e.charAt(o))<<18|n(e.charAt(o+1))<<12|n(e.charAt(o+2))<<6|n(e.charAt(o+3)),r((16711680&u)>>16),r((65280&u)>>8),r(255&u);return 2===f?(u=n(e.charAt(o))<<2|n(e.charAt(o+1))>>4,r(255&u)):1===f&&(u=n(e.charAt(o))<<10|n(e.charAt(o+1))<<4|n(e.charAt(o+2))>>2,r(u>>8&255),r(255&u)),l}function t(r){function n(r){return e.charAt(r)}function o(e){return n(e>>18&63)+n(e>>12&63)+n(e>>6&63)+n(63&e)}var t,s,i,u=r.length%3,f="";for(t=0,i=r.length-u;i>t;t+=3)s=(r[t]<<16)+(r[t+1]<<8)+r[t+2],f+=o(s);switch(u){case 1:s=r[r.length-1],f+=n(s>>2),f+=n(s<<4&63),f+="==";break;case 2:s=(r[r.length-2]<<8)+r[r.length-1],f+=n(s>>10),f+=n(s>>4&63),f+=n(s<<2&63),f+="="}return f}var s="undefined"!=typeof Uint8Array?Uint8Array:Array,i=("0".charCodeAt(0),"+".charCodeAt(0)),u="/".charCodeAt(0),f="0".charCodeAt(0),l="a".charCodeAt(0),a="A".charCodeAt(0);r.exports.toByteArray=o,r.exports.fromByteArray=t}()}).call(this,e("/Users/spuleo/repos/object-hash/node_modules/gulp-browserify/node_modules/browserify/node_modules/insert-module-globals/node_modules/process/browser.js"),"undefined"!=typeof self?self:"undefined"!=typeof window?window:{},e("buffer").Buffer,arguments[3],arguments[4],arguments[5],arguments[6],"/node_modules/gulp-browserify/node_modules/browserify/node_modules/buffer/node_modules/base64-js/lib/b64.js","/node_modules/gulp-browserify/node_modules/browserify/node_modules/buffer/node_modules/base64-js/lib")},{"/Users/spuleo/repos/object-hash/node_modules/gulp-browserify/node_modules/browserify/node_modules/insert-module-globals/node_modules/process/browser.js":12,buffer:3}],5:[function(e,r,n){(function(){n.read=function(e,r,n,o,t){var s,i,u=8*t-o-1,f=(1<<u)-1,l=f>>1,a=-7,d=n?t-1:0,c=n?-1:1,h=e[r+d];for(d+=c,s=h&(1<<-a)-1,h>>=-a,a+=u;a>0;s=256*s+e[r+d],d+=c,a-=8);for(i=s&(1<<-a)-1,s>>=-a,a+=o;a>0;i=256*i+e[r+d],d+=c,a-=8);if(0===s)s=1-l;else{if(s===f)return i?0/0:1/0*(h?-1:1);i+=Math.pow(2,o),s-=l}return(h?-1:1)*i*Math.pow(2,s-o)},n.write=function(e,r,n,o,t,s){var i,u,f,l=8*s-t-1,a=(1<<l)-1,d=a>>1,c=23===t?Math.pow(2,-24)-Math.pow(2,-77):0,h=o?0:s-1,p=o?1:-1,g=0>r||0===r&&0>1/r?1:0;for(r=Math.abs(r),isNaN(r)||1/0===r?(u=isNaN(r)?1:0,i=a):(i=Math.floor(Math.log(r)/Math.LN2),r*(f=Math.pow(2,-i))<1&&(i--,f*=2),r+=i+d>=1?c/f:c*Math.pow(2,1-d),r*f>=2&&(i++,f/=2),i+d>=a?(u=0,i=a):i+d>=1?(u=(r*f-1)*Math.pow(2,t),i+=d):(u=r*Math.pow(2,d-1)*Math.pow(2,t),i=0));t>=8;e[n+h]=255&u,h+=p,u/=256,t-=8);for(i=i<<t|u,l+=t;l>0;e[n+h]=255&i,h+=p,i/=256,l-=8);e[n+h-p]|=128*g}}).call(this,e("/Users/spuleo/repos/object-hash/node_modules/gulp-browserify/node_modules/browserify/node_modules/insert-module-globals/node_modules/process/browser.js"),"undefined"!=typeof self?self:"undefined"!=typeof window?window:{},e("buffer").Buffer,arguments[3],arguments[4],arguments[5],arguments[6],"/node_modules/gulp-browserify/node_modules/browserify/node_modules/buffer/node_modules/ieee754/index.js","/node_modules/gulp-browserify/node_modules/browserify/node_modules/buffer/node_modules/ieee754")},{"/Users/spuleo/repos/object-hash/node_modules/gulp-browserify/node_modules/browserify/node_modules/insert-module-globals/node_modules/process/browser.js":12,buffer:3}],6:[function(e,r){(function(n,o,t){function s(e,r){if(e.length%f!==0){var n=e.length+(f-e.length%f);e=t.concat([e,l],n)}for(var o=[],s=r?e.readInt32BE:e.readInt32LE,i=0;i<e.length;i+=f)o.push(s.call(e,i));return o}function i(e,r,n){for(var o=new t(r),s=n?o.writeInt32BE:o.writeInt32LE,i=0;i<e.length;i++)s.call(o,e[i],4*i,!0);return o}function u(e,r,n,o){t.isBuffer(e)||(e=new t(e));var u=r(s(e,o),e.length*a);return i(u,n,o)}var t=e("buffer").Buffer,f=4,l=new t(f);l.fill(0);var a=8;r.exports={hash:u}}).call(this,e("/Users/spuleo/repos/object-hash/node_modules/gulp-browserify/node_modules/browserify/node_modules/insert-module-globals/node_modules/process/browser.js"),"undefined"!=typeof self?self:"undefined"!=typeof window?window:{},e("buffer").Buffer,arguments[3],arguments[4],arguments[5],arguments[6],"/node_modules/gulp-browserify/node_modules/browserify/node_modules/crypto-browserify/helpers.js","/node_modules/gulp-browserify/node_modules/browserify/node_modules/crypto-browserify")},{"/Users/spuleo/repos/object-hash/node_modules/gulp-browserify/node_modules/browserify/node_modules/insert-module-globals/node_modules/process/browser.js":12,buffer:3}],7:[function(e,r,n){(function(r,o,t){function s(e,r,n){t.isBuffer(r)||(r=new t(r)),t.isBuffer(n)||(n=new t(n)),r.length>p?r=e(r):r.length<p&&(r=t.concat([r,g],p));for(var o=new t(p),s=new t(p),i=0;p>i;i++)o[i]=54^r[i],s[i]=92^r[i];var u=e(t.concat([o,n]));return e(t.concat([s,u]))}function i(e,r){e=e||"sha1";var n=h[e],o=[],i=0;return n||u("algorithm:",e,"is not yet supported"),{update:function(e){return t.isBuffer(e)||(e=new t(e)),o.push(e),i+=e.length,this},digest:function(e){var i=t.concat(o),u=r?s(n,r,i):n(i);return o=null,e?u.toString(e):u}}}function u(){var e=[].slice.call(arguments).join(" ");throw new Error([e,"we accept pull requests","http://github.com/dominictarr/crypto-browserify"].join("\n"))}function f(e,r){for(var n in e)r(e[n],n)}var t=e("buffer").Buffer,l=e("./sha"),a=e("./sha256"),d=e("./rng"),c=e("./md5"),h={sha1:l,sha256:a,md5:c},p=64,g=new t(p);g.fill(0),n.createHash=function(e){return i(e)},n.createHmac=function(e,r){return i(e,r)},n.randomBytes=function(e,r){if(!r||!r.call)return new t(d(e));try{r.call(this,void 0,new t(d(e)))}catch(n){r(n)}},f(["createCredentials","createCipher","createCipheriv","createDecipher","createDecipheriv","createSign","createVerify","createDiffieHellman","pbkdf2"],function(e){n[e]=function(){u("sorry,",e,"is not implemented yet")}})}).call(this,e("/Users/spuleo/repos/object-hash/node_modules/gulp-browserify/node_modules/browserify/node_modules/insert-module-globals/node_modules/process/browser.js"),"undefined"!=typeof self?self:"undefined"!=typeof window?window:{},e("buffer").Buffer,arguments[3],arguments[4],arguments[5],arguments[6],"/node_modules/gulp-browserify/node_modules/browserify/node_modules/crypto-browserify/index.js","/node_modules/gulp-browserify/node_modules/browserify/node_modules/crypto-browserify")},{"./md5":8,"./rng":9,"./sha":10,"./sha256":11,"/Users/spuleo/repos/object-hash/node_modules/gulp-browserify/node_modules/browserify/node_modules/insert-module-globals/node_modules/process/browser.js":12,buffer:3}],8:[function(e,r){(function(){function n(e,r){e[r>>5]|=128<<r%32,e[(r+64>>>9<<4)+14]=r;for(var n=1732584193,o=-271733879,l=-1732584194,a=271733878,d=0;d<e.length;d+=16){var c=n,h=o,p=l,g=a;n=t(n,o,l,a,e[d+0],7,-680876936),a=t(a,n,o,l,e[d+1],12,-389564586),l=t(l,a,n,o,e[d+2],17,606105819),o=t(o,l,a,n,e[d+3],22,-1044525330),n=t(n,o,l,a,e[d+4],7,-176418897),a=t(a,n,o,l,e[d+5],12,1200080426),l=t(l,a,n,o,e[d+6],17,-1473231341),o=t(o,l,a,n,e[d+7],22,-45705983),n=t(n,o,l,a,e[d+8],7,1770035416),a=t(a,n,o,l,e[d+9],12,-1958414417),l=t(l,a,n,o,e[d+10],17,-42063),o=t(o,l,a,n,e[d+11],22,-1990404162),n=t(n,o,l,a,e[d+12],7,1804603682),a=t(a,n,o,l,e[d+13],12,-40341101),l=t(l,a,n,o,e[d+14],17,-1502002290),o=t(o,l,a,n,e[d+15],22,1236535329),n=s(n,o,l,a,e[d+1],5,-165796510),a=s(a,n,o,l,e[d+6],9,-1069501632),l=s(l,a,n,o,e[d+11],14,643717713),o=s(o,l,a,n,e[d+0],20,-373897302),n=s(n,o,l,a,e[d+5],5,-701558691),a=s(a,n,o,l,e[d+10],9,38016083),l=s(l,a,n,o,e[d+15],14,-660478335),o=s(o,l,a,n,e[d+4],20,-405537848),n=s(n,o,l,a,e[d+9],5,568446438),a=s(a,n,o,l,e[d+14],9,-1019803690),l=s(l,a,n,o,e[d+3],14,-187363961),o=s(o,l,a,n,e[d+8],20,1163531501),n=s(n,o,l,a,e[d+13],5,-1444681467),a=s(a,n,o,l,e[d+2],9,-51403784),l=s(l,a,n,o,e[d+7],14,1735328473),o=s(o,l,a,n,e[d+12],20,-1926607734),n=i(n,o,l,a,e[d+5],4,-378558),a=i(a,n,o,l,e[d+8],11,-2022574463),l=i(l,a,n,o,e[d+11],16,1839030562),o=i(o,l,a,n,e[d+14],23,-35309556),n=i(n,o,l,a,e[d+1],4,-1530992060),a=i(a,n,o,l,e[d+4],11,1272893353),l=i(l,a,n,o,e[d+7],16,-155497632),o=i(o,l,a,n,e[d+10],23,-1094730640),n=i(n,o,l,a,e[d+13],4,681279174),a=i(a,n,o,l,e[d+0],11,-358537222),l=i(l,a,n,o,e[d+3],16,-722521979),o=i(o,l,a,n,e[d+6],23,76029189),n=i(n,o,l,a,e[d+9],4,-640364487),a=i(a,n,o,l,e[d+12],11,-421815835),l=i(l,a,n,o,e[d+15],16,530742520),o=i(o,l,a,n,e[d+2],23,-995338651),n=u(n,o,l,a,e[d+0],6,-198630844),a=u(a,n,o,l,e[d+7],10,1126891415),l=u(l,a,n,o,e[d+14],15,-1416354905),o=u(o,l,a,n,e[d+5],21,-57434055),n=u(n,o,l,a,e[d+12],6,1700485571),a=u(a,n,o,l,e[d+3],10,-1894986606),l=u(l,a,n,o,e[d+10],15,-1051523),o=u(o,l,a,n,e[d+1],21,-2054922799),n=u(n,o,l,a,e[d+8],6,1873313359),a=u(a,n,o,l,e[d+15],10,-30611744),l=u(l,a,n,o,e[d+6],15,-1560198380),o=u(o,l,a,n,e[d+13],21,1309151649),n=u(n,o,l,a,e[d+4],6,-145523070),a=u(a,n,o,l,e[d+11],10,-1120210379),l=u(l,a,n,o,e[d+2],15,718787259),o=u(o,l,a,n,e[d+9],21,-343485551),n=f(n,c),o=f(o,h),l=f(l,p),a=f(a,g)}return Array(n,o,l,a)}function o(e,r,n,o,t,s){return f(l(f(f(r,e),f(o,s)),t),n)}function t(e,r,n,t,s,i,u){return o(r&n|~r&t,e,r,s,i,u)}function s(e,r,n,t,s,i,u){return o(r&t|n&~t,e,r,s,i,u)}function i(e,r,n,t,s,i,u){return o(r^n^t,e,r,s,i,u)}function u(e,r,n,t,s,i,u){return o(n^(r|~t),e,r,s,i,u)}function f(e,r){var n=(65535&e)+(65535&r),o=(e>>16)+(r>>16)+(n>>16);return o<<16|65535&n}function l(e,r){return e<<r|e>>>32-r}var a=e("./helpers");r.exports=function(e){return a.hash(e,n,16)}}).call(this,e("/Users/spuleo/repos/object-hash/node_modules/gulp-browserify/node_modules/browserify/node_modules/insert-module-globals/node_modules/process/browser.js"),"undefined"!=typeof self?self:"undefined"!=typeof window?window:{},e("buffer").Buffer,arguments[3],arguments[4],arguments[5],arguments[6],"/node_modules/gulp-browserify/node_modules/browserify/node_modules/crypto-browserify/md5.js","/node_modules/gulp-browserify/node_modules/browserify/node_modules/crypto-browserify")},{"./helpers":6,"/Users/spuleo/repos/object-hash/node_modules/gulp-browserify/node_modules/browserify/node_modules/insert-module-globals/node_modules/process/browser.js":12,buffer:3}],9:[function(e,r){(function(){!function(){var e,n,o=this;e=function(e){for(var r,r,n=new Array(e),o=0;e>o;o++)0==(3&o)&&(r=4294967296*Math.random()),n[o]=r>>>((3&o)<<3)&255;return n},o.crypto&&crypto.getRandomValues&&(n=function(e){var r=new Uint8Array(e);return crypto.getRandomValues(r),r}),r.exports=n||e}()}).call(this,e("/Users/spuleo/repos/object-hash/node_modules/gulp-browserify/node_modules/browserify/node_modules/insert-module-globals/node_modules/process/browser.js"),"undefined"!=typeof self?self:"undefined"!=typeof window?window:{},e("buffer").Buffer,arguments[3],arguments[4],arguments[5],arguments[6],"/node_modules/gulp-browserify/node_modules/browserify/node_modules/crypto-browserify/rng.js","/node_modules/gulp-browserify/node_modules/browserify/node_modules/crypto-browserify")},{"/Users/spuleo/repos/object-hash/node_modules/gulp-browserify/node_modules/browserify/node_modules/insert-module-globals/node_modules/process/browser.js":12,buffer:3}],10:[function(e,r){(function(){function n(e,r){e[r>>5]|=128<<24-r%32,e[(r+64>>9<<4)+15]=r;for(var n=Array(80),u=1732584193,f=-271733879,l=-1732584194,a=271733878,d=-1009589776,c=0;c<e.length;c+=16){for(var h=u,p=f,g=l,b=a,m=d,w=0;80>w;w++){n[w]=16>w?e[c+w]:i(n[w-3]^n[w-8]^n[w-14]^n[w-16],1);var y=s(s(i(u,5),o(w,f,l,a)),s(s(d,n[w]),t(w)));d=a,a=l,l=i(f,30),f=u,u=y}u=s(u,h),f=s(f,p),l=s(l,g),a=s(a,b),d=s(d,m)}return Array(u,f,l,a,d)}function o(e,r,n,o){return 20>e?r&n|~r&o:40>e?r^n^o:60>e?r&n|r&o|n&o:r^n^o}function t(e){return 20>e?1518500249:40>e?1859775393:60>e?-1894007588:-899497514}function s(e,r){var n=(65535&e)+(65535&r),o=(e>>16)+(r>>16)+(n>>16);return o<<16|65535&n}function i(e,r){return e<<r|e>>>32-r}var u=e("./helpers");r.exports=function(e){return u.hash(e,n,20,!0)}}).call(this,e("/Users/spuleo/repos/object-hash/node_modules/gulp-browserify/node_modules/browserify/node_modules/insert-module-globals/node_modules/process/browser.js"),"undefined"!=typeof self?self:"undefined"!=typeof window?window:{},e("buffer").Buffer,arguments[3],arguments[4],arguments[5],arguments[6],"/node_modules/gulp-browserify/node_modules/browserify/node_modules/crypto-browserify/sha.js","/node_modules/gulp-browserify/node_modules/browserify/node_modules/crypto-browserify") | ||
},{"./helpers":6,"/Users/spuleo/repos/object-hash/node_modules/gulp-browserify/node_modules/browserify/node_modules/insert-module-globals/node_modules/process/browser.js":12,buffer:3}],11:[function(e,r){(function(){var n=e("./helpers"),o=function(e,r){var n=(65535&e)+(65535&r),o=(e>>16)+(r>>16)+(n>>16);return o<<16|65535&n},t=function(e,r){return e>>>r|e<<32-r},s=function(e,r){return e>>>r},i=function(e,r,n){return e&r^~e&n},u=function(e,r,n){return e&r^e&n^r&n},f=function(e){return t(e,2)^t(e,13)^t(e,22)},l=function(e){return t(e,6)^t(e,11)^t(e,25)},a=function(e){return t(e,7)^t(e,18)^s(e,3)},d=function(e){return t(e,17)^t(e,19)^s(e,10)},c=function(e,r){var n,t,s,c,h,p,g,b,m,w,y,v,_=new Array(1116352408,1899447441,3049323471,3921009573,961987163,1508970993,2453635748,2870763221,3624381080,310598401,607225278,1426881987,1925078388,2162078206,2614888103,3248222580,3835390401,4022224774,264347078,604807628,770255983,1249150122,1555081692,1996064986,2554220882,2821834349,2952996808,3210313671,3336571891,3584528711,113926993,338241895,666307205,773529912,1294757372,1396182291,1695183700,1986661051,2177026350,2456956037,2730485921,2820302411,3259730800,3345764771,3516065817,3600352804,4094571909,275423344,430227734,506948616,659060556,883997877,958139571,1322822218,1537002063,1747873779,1955562222,2024104815,2227730452,2361852424,2428436474,2756734187,3204031479,3329325298),E=new Array(1779033703,3144134277,1013904242,2773480762,1359893119,2600822924,528734635,1541459225),j=new Array(64);e[r>>5]|=128<<24-r%32,e[(r+64>>9<<4)+15]=r;for(var m=0;m<e.length;m+=16){n=E[0],t=E[1],s=E[2],c=E[3],h=E[4],p=E[5],g=E[6],b=E[7];for(var w=0;64>w;w++)j[w]=16>w?e[w+m]:o(o(o(d(j[w-2]),j[w-7]),a(j[w-15])),j[w-16]),y=o(o(o(o(b,l(h)),i(h,p,g)),_[w]),j[w]),v=o(f(n),u(n,t,s)),b=g,g=p,p=h,h=o(c,y),c=s,s=t,t=n,n=o(y,v);E[0]=o(n,E[0]),E[1]=o(t,E[1]),E[2]=o(s,E[2]),E[3]=o(c,E[3]),E[4]=o(h,E[4]),E[5]=o(p,E[5]),E[6]=o(g,E[6]),E[7]=o(b,E[7])}return E};r.exports=function(e){return n.hash(e,c,32,!0)}}).call(this,e("/Users/spuleo/repos/object-hash/node_modules/gulp-browserify/node_modules/browserify/node_modules/insert-module-globals/node_modules/process/browser.js"),"undefined"!=typeof self?self:"undefined"!=typeof window?window:{},e("buffer").Buffer,arguments[3],arguments[4],arguments[5],arguments[6],"/node_modules/gulp-browserify/node_modules/browserify/node_modules/crypto-browserify/sha256.js","/node_modules/gulp-browserify/node_modules/browserify/node_modules/crypto-browserify")},{"./helpers":6,"/Users/spuleo/repos/object-hash/node_modules/gulp-browserify/node_modules/browserify/node_modules/insert-module-globals/node_modules/process/browser.js":12,buffer:3}],12:[function(e,r){(function(e){var e=r.exports={};e.nextTick=function(){var e="undefined"!=typeof window&&window.setImmediate,r="undefined"!=typeof window&&window.postMessage&&window.addEventListener;if(e)return function(e){return window.setImmediate(e)};if(r){var n=[];return window.addEventListener("message",function(e){var r=e.source;if((r===window||null===r)&&"process-tick"===e.data&&(e.stopPropagation(),n.length>0)){var o=n.shift();o()}},!0),function(e){n.push(e),window.postMessage("process-tick","*")}}return function(e){setTimeout(e,0)}}(),e.title="browser",e.browser=!0,e.env={},e.argv=[],e.binding=function(){throw new Error("process.binding is not supported")},e.cwd=function(){return"/"},e.chdir=function(){throw new Error("process.chdir is not supported")}}).call(this,e("/Users/spuleo/repos/object-hash/node_modules/gulp-browserify/node_modules/browserify/node_modules/insert-module-globals/node_modules/process/browser.js"),"undefined"!=typeof self?self:"undefined"!=typeof window?window:{},e("buffer").Buffer,arguments[3],arguments[4],arguments[5],arguments[6],"/node_modules/gulp-browserify/node_modules/browserify/node_modules/insert-module-globals/node_modules/process/browser.js","/node_modules/gulp-browserify/node_modules/browserify/node_modules/insert-module-globals/node_modules/process")},{"/Users/spuleo/repos/object-hash/node_modules/gulp-browserify/node_modules/browserify/node_modules/insert-module-globals/node_modules/process/browser.js":12,buffer:3}]},{},[1]); |
@@ -86,4 +86,4 @@ 'use strict'; | ||
if(objType !== 'object') { | ||
if(typeHasher(hashFn)['_' + objType]) { | ||
typeHasher(hashFn)['_' + objType](object); | ||
if(typeHasher(hashFn, options)['_' + objType]) { | ||
typeHasher(hashFn, options)['_' + objType](object); | ||
}else{ | ||
@@ -105,3 +105,3 @@ throw new Error('Unknown object type "' + objType + '"'); | ||
return arr.forEach(function(el){ | ||
typeHasher(hashFn).dispatch(el); | ||
typeHasher(hashFn, options).dispatch(el); | ||
}); | ||
@@ -108,0 +108,0 @@ }, |
{ | ||
"name": "object-hash", | ||
"version": "0.1.1", | ||
"version": "0.1.2", | ||
"description": "Generate hashes from javascript objects in node and the browser.", | ||
@@ -5,0 +5,0 @@ "homepage": "https://github.com/puleos/object-hash", |
@@ -94,1 +94,11 @@ var test = require('tape'); | ||
}); | ||
test('array of nested object values are hashed', function(assert){ | ||
assert.plan(2); | ||
var hash1 = hash({foo: [ {bar: true, bax: 1}, {bar: false, bax: 2} ] }); | ||
var hash2 = hash({foo: [ {bar: true, bax: 1}, {bar: false, bax: 2} ] }); | ||
var hash3 = hash({foo: [ {bar: false, bax: 2} ] }); | ||
assert.equal(hash1, hash2, 'hashes are equal'); | ||
assert.notEqual(hash1, hash3, 'different objects not equal'); | ||
}); |
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
286449
6055
102