8 | !function o(a,s,u){function f(e,t){if(!s[e]){if(!a[e]){var r="function"==typeof require&&require;if(!t&&r)return r(e,!0);if(c)return c(e,!0);var n=new Error("Cannot find module '"+e+"'");throw n.code="MODULE_NOT_FOUND",n}var i=s[e]={exports:{}};a[e][0].call(i.exports,function(t){return f(a[e][1][t]||t)},i,i.exports,o,a,s,u)}return s[e].exports}for(var c="function"==typeof require&&require,t=0;t<u.length;t++)f(u[t]);return f}({1:[function(t,e,r){"use strict";e.exports=function(n){return function(){var t=arguments.length;if(t){for(var e=[],r=-1;++r<t;)e[r]=arguments[r];return n.call(this,e)}return n.call(this,[])}}},{}],2:[function(w,E,t){(function(e){"use strict";function o(t,e){if(t===e)return 0;for(var r=t.length,n=e.length,i=0,o=Math.min(r,n);i<o;++i)if(t[i]!==e[i]){r=t[i],n=e[i];break}return r<n?-1:n<r?1:0}function a(t){return e.Buffer&&"function"==typeof e.Buffer.isBuffer?e.Buffer.isBuffer(t):!(null==t||!t._isBuffer)}var c=w(5),n=Object.prototype.hasOwnProperty,l=Array.prototype.slice,r="foo"===function(){}.name;function s(t){return Object.prototype.toString.call(t)}function u(t){return!a(t)&&("function"==typeof e.ArrayBuffer&&("function"==typeof ArrayBuffer.isView?ArrayBuffer.isView(t):!!t&&(t instanceof DataView||!!(t.buffer&&t.buffer instanceof ArrayBuffer))))}var f=E.exports=t,i=/\s*function\s+([^\(\s]*)\s*/;function h(t){if(c.isFunction(t)){if(r)return t.name;var e=t.toString().match(i);return e&&e[1]}}function p(t,e){return"string"==typeof t?t.length<e?t:t.slice(0,e):t}function d(t){if(r||!c.isFunction(t))return c.inspect(t);var e=h(t);return"[Function"+(e?": "+e:"")+"]"}function g(t,e,r,n,i){throw new f.AssertionError({message:r,actual:t,expected:e,operator:n,stackStartFunction:i})}function t(t,e){t||g(t,!0,e,"==",f.ok)}function y(t,e,r,n){if(t===e)return!0;if(a(t)&&a(e))return 0===o(t,e);if(c.isDate(t)&&c.isDate(e))return t.getTime()===e.getTime();if(c.isRegExp(t)&&c.isRegExp(e))return t.source===e.source&&t.global===e.global&&t.multiline===e.multiline&&t.lastIndex===e.lastIndex&&t.ignoreCase===e.ignoreCase;if(null!==t&&"object"==typeof t||null!==e&&"object"==typeof e){if(u(t)&&u(e)&&s(t)===s(e)&&!(t instanceof Float32Array||t instanceof Float64Array))return 0===o(new Uint8Array(t.buffer),new Uint8Array(e.buffer));if(a(t)!==a(e))return!1;var i=(n=n||{actual:[],expected:[]}).actual.indexOf(t);return-1!==i&&i===n.expected.indexOf(e)||(n.actual.push(t),n.expected.push(e),function(t,e,r,n){if(null==t||null==e)return!1;if(c.isPrimitive(t)||c.isPrimitive(e))return t===e;if(r&&Object.getPrototypeOf(t)!==Object.getPrototypeOf(e))return!1;var i=v(t),o=v(e);if(i&&!o||!i&&o)return!1;if(i)return t=l.call(t),e=l.call(e),y(t,e,r);var a,s,u=m(t),f=m(e);if(u.length!==f.length)return!1;for(u.sort(),f.sort(),s=u.length-1;0<=s;s--)if(u[s]!==f[s])return!1;for(s=u.length-1;0<=s;s--)if(a=u[s],!y(t[a],e[a],r,n))return!1;return!0}(t,e,r,n))}return r?t===e:t==e}function v(t){return"[object Arguments]"==Object.prototype.toString.call(t)}function _(t,e){if(!t||!e)return!1;if("[object RegExp]"==Object.prototype.toString.call(e))return e.test(t);try{if(t instanceof e)return!0}catch(t){}return!Error.isPrototypeOf(e)&&!0===e.call({},t)}function b(t,e,r,n){var i;if("function"!=typeof e)throw new TypeError('"block" argument must be a function');"string"==typeof r&&(n=r,r=null),i=function(t){var e;try{t()}catch(t){e=t}return e}(e),n=(r&&r.name?" ("+r.name+").":".")+(n?" "+n:"."),t&&!i&&g(i,r,"Missing expected exception"+n);var o="string"==typeof n,a=!t&&i&&!r;if((!t&&c.isError(i)&&o&&_(i,r)||a)&&g(i,r,"Got unwanted exception"+n),t&&i&&r&&!_(i,r)||!t&&i)throw i}f.AssertionError=function(t){var e;this.name="AssertionError",this.actual=t.actual,this.expected=t.expected,this.operator=t.operator,t.message?(this.message=t.message,this.generatedMessage=!1):(this.message=p(d((e=this).actual),128)+" "+e.operator+" "+p(d(e.expected),128),this.generatedMessage=!0);var r=t.stackStartFunction||g;if(Error.captureStackTrace)Error.captureStackTrace(this,r);else{var n=new Error;if(n.stack){var i=n.stack,o=h(r),a=i.indexOf("\n"+o);if(0<=a){var s=i.indexOf("\n",a+1);i=i.substring(s+1)}this.stack=i}}},c.inherits(f.AssertionError,Error),f.fail=g,f.ok=t,f.equal=function(t,e,r){t!=e&&g(t,e,r,"==",f.equal)},f.notEqual=function(t,e,r){t==e&&g(t,e,r,"!=",f.notEqual)},f.deepEqual=function(t,e,r){y(t,e,!1)||g(t,e,r,"deepEqual",f.deepEqual)},f.deepStrictEqual=function(t,e,r){y(t,e,!0)||g(t,e,r,"deepStrictEqual",f.deepStrictEqual)},f.notDeepEqual=function(t,e,r){y(t,e,!1)&&g(t,e,r,"notDeepEqual",f.notDeepEqual)},f.notDeepStrictEqual=function t(e,r,n){y(e,r,!0)&&g(e,r,n,"notDeepStrictEqual",t)},f.strictEqual=function(t,e,r){t!==e&&g(t,e,r,"===",f.strictEqual)},f.notStrictEqual=function(t,e,r){t===e&&g(t,e,r,"!==",f.notStrictEqual)},f.throws=function(t,e,r){b(!0,t,e,r)},f.doesNotThrow=function(t,e,r){b(!1,t,e,r)},f.ifError=function(t){if(t)throw t};var m=Object.keys||function(t){var e=[];for(var r in t)n.call(t,r)&&e.push(r);return e}}).call(this,"undefined"!=typeof global?global:"undefined"!=typeof self?self:"undefined"!=typeof window?window:{})},{5:5}],3:[function(t,e,r){"function"==typeof Object.create?e.exports=function(t,e){t.super_=e,t.prototype=Object.create(e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}})}:e.exports=function(t,e){t.super_=e;var r=function(){};r.prototype=e.prototype,t.prototype=new r,t.prototype.constructor=t}},{}],4:[function(t,e,r){e.exports=function(t){return t&&"object"==typeof t&&"function"==typeof t.copy&&"function"==typeof t.fill&&"function"==typeof t.readUInt8}},{}],5:[function(h,t,O){(function(n,i){var s=/%[sdj%]/g;O.format=function(t){if(!m(t)){for(var e=[],r=0;r<arguments.length;r++)e.push(u(arguments[r]));return e.join(" ")}r=1;for(var n=arguments,i=n.length,o=String(t).replace(s,function(t){if("%%"===t)return"%";if(i<=r)return t;switch(t){case"%s":return String(n[r++]);case"%d":return Number(n[r++]);case"%j":try{return JSON.stringify(n[r++])}catch(t){return"[Circular]"}default:return t}}),a=n[r];r<i;a=n[++r])_(a)||!c(a)?o+=" "+a:o+=" "+u(a);return o},O.deprecate=function(t,e){if(w(i.process))return function(){return O.deprecate(t,e).apply(this,arguments)};if(!0===n.noDeprecation)return t;var r=!1;return function(){if(!r){if(n.throwDeprecation)throw new Error(e);n.traceDeprecation?console.trace(e):console.error(e),r=!0}return t.apply(this,arguments)}};var t,o={};function u(t,e){var r={seen:[],stylize:f};return 3<=arguments.length&&(r.depth=arguments[2]),4<=arguments.length&&(r.colors=arguments[3]),v(e)?r.showHidden=e:e&&O._extend(r,e),w(r.showHidden)&&(r.showHidden=!1),w(r.depth)&&(r.depth=2),w(r.colors)&&(r.colors=!1),w(r.customInspect)&&(r.customInspect=!0),r.colors&&(r.stylize=a),p(r,t,r.depth)}function a(t,e){var r=u.styles[e];return r?"["+u.colors[r][0]+"m"+t+"["+u.colors[r][1]+"m":t}function f(t,e){return t}function p(e,r,n){if(e.customInspect&&r&&x(r.inspect)&&r.inspect!==O.inspect&&(!r.constructor||r.constructor.prototype!==r)){var t=r.inspect(n,e);return m(t)||(t=p(e,t,n)),t}var i=function(t,e){if(w(e))return t.stylize("undefined","undefined");if(m(e)){var r="'"+JSON.stringify(e).replace(/^"|"$/g,"").replace(/'/g,"\\'").replace(/\\"/g,'"')+"'";return t.stylize(r,"string")}if(b(e))return t.stylize(""+e,"number");if(v(e))return t.stylize(""+e,"boolean");if(_(e))return t.stylize("null","null")}(e,r);if(i)return i;var o,a=Object.keys(r),s=(o={},a.forEach(function(t,e){o[t]=!0}),o);if(e.showHidden&&(a=Object.getOwnPropertyNames(r)),S(r)&&(0<=a.indexOf("message")||0<=a.indexOf("description")))return d(r);if(0===a.length){if(x(r)){var u=r.name?": "+r.name:"";return e.stylize("[Function"+u+"]","special")}if(E(r))return e.stylize(RegExp.prototype.toString.call(r),"regexp");if(k(r))return e.stylize(Date.prototype.toString.call(r),"date");if(S(r))return d(r)}var f,c="",l=!1,h=["{","}"];(y(r)&&(l=!0,h=["[","]"]),x(r))&&(c=" [Function"+(r.name?": "+r.name:"")+"]");return E(r)&&(c=" "+RegExp.prototype.toString.call(r)),k(r)&&(c=" "+Date.prototype.toUTCString.call(r)),S(r)&&(c=" "+d(r)),0!==a.length||l&&0!=r.length?n<0?E(r)?e.stylize(RegExp.prototype.toString.call(r),"regexp"):e.stylize("[Object]","special"):(e.seen.push(r),f=l?function(e,r,n,i,t){for(var o=[],a=0,s=r.length;a<s;++a)B(r,String(a))?o.push(g(e,r,n,i,String(a),!0)):o.push("");return t.forEach(function(t){t.match(/^\d+$/)||o.push(g(e,r,n,i,t,!0))}),o}(e,r,n,s,a):a.map(function(t){return g(e,r,n,s,t,l)}),e.seen.pop(),function(t,e,r){if(60<t.reduce(function(t,e){return 0,0<=e.indexOf("\n")&&0,t+e.replace(/\u001b\[\d\d?m/g,"").length+1},0))return r[0]+(""===e?"":e+"\n ")+" "+t.join(",\n ")+" "+r[1];return r[0]+e+" "+t.join(", ")+" "+r[1]}(f,c,h)):h[0]+c+h[1]}function d(t){return"["+Error.prototype.toString.call(t)+"]"}function g(t,e,r,n,i,o){var a,s,u;if((u=Object.getOwnPropertyDescriptor(e,i)||{value:e[i]}).get?s=u.set?t.stylize("[Getter/Setter]","special"):t.stylize("[Getter]","special"):u.set&&(s=t.stylize("[Setter]","special")),B(n,i)||(a="["+i+"]"),s||(t.seen.indexOf(u.value)<0?-1<(s=_(r)?p(t,u.value,null):p(t,u.value,r-1)).indexOf("\n")&&(s=o?s.split("\n").map(function(t){return" "+t}).join("\n").substr(2):"\n"+s.split("\n").map(function(t){return" "+t}).join("\n")):s=t.stylize("[Circular]","special")),w(a)){if(o&&i.match(/^\d+$/))return s;(a=JSON.stringify(""+i)).match(/^"([a-zA-Z_][a-zA-Z_0-9]*)"$/)?(a=a.substr(1,a.length-2),a=t.stylize(a,"name")):(a=a.replace(/'/g,"\\'").replace(/\\"/g,'"').replace(/(^"|"$)/g,"'"),a=t.stylize(a,"string"))}return a+": "+s}function y(t){return Array.isArray(t)}function v(t){return"boolean"==typeof t}function _(t){return null===t}function b(t){return"number"==typeof t}function m(t){return"string"==typeof t}function w(t){return void 0===t}function E(t){return c(t)&&"[object RegExp]"===e(t)}function c(t){return"object"==typeof t&&null!==t}function k(t){return c(t)&&"[object Date]"===e(t)}function S(t){return c(t)&&("[object Error]"===e(t)||t instanceof Error)}function x(t){return"function"==typeof t}function e(t){return Object.prototype.toString.call(t)}function r(t){return t<10?"0"+t.toString(10):t.toString(10)}O.debuglog=function(e){if(w(t)&&(t=n.env.NODE_DEBUG||""),e=e.toUpperCase(),!o[e])if(new RegExp("\\b"+e+"\\b","i").test(t)){var r=n.pid;o[e]=function(){var t=O.format.apply(O,arguments);console.error("%s %d: %s",e,r,t)}}else o[e]=function(){};return o[e]},(O.inspect=u).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]},u.styles={special:"cyan",number:"yellow",boolean:"yellow",undefined:"grey",null:"bold",string:"green",date:"magenta",regexp:"red"},O.isArray=y,O.isBoolean=v,O.isNull=_,O.isNullOrUndefined=function(t){return null==t},O.isNumber=b,O.isString=m,O.isSymbol=function(t){return"symbol"==typeof t},O.isUndefined=w,O.isRegExp=E,O.isObject=c,O.isDate=k,O.isError=S,O.isFunction=x,O.isPrimitive=function(t){return null===t||"boolean"==typeof t||"number"==typeof t||"string"==typeof t||"symbol"==typeof t||void 0===t},O.isBuffer=h(4);var l=["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"];function B(t,e){return Object.prototype.hasOwnProperty.call(t,e)}O.log=function(){var t,e;console.log("%s - %s",(t=new Date,e=[r(t.getHours()),r(t.getMinutes()),r(t.getSeconds())].join(":"),[t.getDate(),l[t.getMonth()],e].join(" ")),O.format.apply(O,arguments))},O.inherits=h(3),O._extend=function(t,e){if(!e||!c(e))return t;for(var r=Object.keys(e),n=r.length;n--;)t[r[n]]=e[r[n]];return t}}).call(this,h(62),"undefined"!=typeof global?global:"undefined"!=typeof self?self:"undefined"!=typeof window?window:{})},{3:3,4:4,62:62}],6:[function(t,e,r){"use strict";r.byteLength=function(t){var e=p(t),r=e[0],n=e[1];return 3*(r+n)/4-n},r.toByteArray=function(t){for(var e,r=p(t),n=r[0],i=r[1],o=new h((f=n,c=i,3*(f+c)/4-c)),a=0,s=0<i?n-4:n,u=0;u<s;u+=4)e=l[t.charCodeAt(u)]<<18|l[t.charCodeAt(u+1)]<<12|l[t.charCodeAt(u+2)]<<6|l[t.charCodeAt(u+3)],o[a++]=e>>16&255,o[a++]=e>>8&255,o[a++]=255&e;var f,c;2===i&&(e=l[t.charCodeAt(u)]<<2|l[t.charCodeAt(u+1)]>>4,o[a++]=255&e);1===i&&(e=l[t.charCodeAt(u)]<<10|l[t.charCodeAt(u+1)]<<4|l[t.charCodeAt(u+2)]>>2,o[a++]=e>>8&255,o[a++]=255&e);return o},r.fromByteArray=function(t){for(var e,r=t.length,n=r%3,i=[],o=0,a=r-n;o<a;o+=16383)i.push(u(t,o,a<o+16383?a:o+16383));1===n?(e=t[r-1],i.push(s[e>>2]+s[e<<4&63]+"==")):2===n&&(e=(t[r-2]<<8)+t[r-1],i.push(s[e>>10]+s[e>>4&63]+s[e<<2&63]+"="));return i.join("")};for(var s=[],l=[],h="undefined"!=typeof Uint8Array?Uint8Array:Array,n="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",i=0,o=n.length;i<o;++i)s[i]=n[i],l[n.charCodeAt(i)]=i;function p(t){var e=t.length;if(0<e%4)throw new Error("Invalid string. Length must be a multiple of 4");var r=t.indexOf("=");return-1===r&&(r=e),[r,r===e?0:4-r%4]}function u(t,e,r){for(var n,i,o=[],a=e;a<r;a+=3)n=(t[a]<<16&16711680)+(t[a+1]<<8&65280)+(255&t[a+2]),o.push(s[(i=n)>>18&63]+s[i>>12&63]+s[i>>6&63]+s[63&i]);return o.join("")}l["-".charCodeAt(0)]=62,l["_".charCodeAt(0)]=63},{}],7:[function(t,e,r){},{}],8:[function(t,e,r){(function(i){var o=Object.prototype.toString,a="function"==typeof i.alloc&&"function"==typeof i.allocUnsafe&&"function"==typeof i.from;e.exports=function(t,e,r){if("number"==typeof t)throw new TypeError('"value" argument must not be a number');return n=t,"ArrayBuffer"===o.call(n).slice(8,-1)?function(t,e,r){e>>>=0;var n=t.byteLength-e;if(n<0)throw new RangeError("'offset' is out of bounds");if(void 0===r)r=n;else if(n<(r>>>=0))throw new RangeError("'length' is out of bounds");return a?i.from(t.slice(e,e+r)):new i(new Uint8Array(t.slice(e,e+r)))}(t,e,r):"string"==typeof t?function(t,e){if("string"==typeof e&&""!==e||(e="utf8"),!i.isEncoding(e))throw new TypeError('"encoding" must be a valid string encoding');return a?i.from(t,e):new i(t,e)}(t,e):a?i.from(t):new i(t);var n}}).call(this,t(9).Buffer)},{9:9}],9:[function(t,e,r){"use strict";var n=t(6),o=t(16);r.Buffer=l,r.SlowBuffer=function(t){+t!=t&&(t=0);return l.alloc(+t)},r.INSPECT_MAX_BYTES=50;var i=2147483647;function a(t){if(i<t)throw new RangeError("Invalid typed array length");var e=new Uint8Array(t);return e.__proto__=l.prototype,e}function l(t,e,r){if("number"==typeof t){if("string"==typeof e)throw new Error("If encoding is specified then the first argument must be a string");return f(t)}return s(t,e,r)}function s(t,e,r){if("number"==typeof t)throw new TypeError('"value" argument must not be a number');return q(t)||t&&q(t.buffer)?function(t,e,r){if(e<0||t.byteLength<e)throw new RangeError('"offset" is outside of buffer bounds');if(t.byteLength<e+(r||0))throw new RangeError('"length" is outside of buffer bounds');var n;n=void 0===e&&void 0===r?new Uint8Array(t):void 0===r?new Uint8Array(t,e):new Uint8Array(t,e,r);return n.__proto__=l.prototype,n}(t,e,r):"string"==typeof t?function(t,e){"string"==typeof e&&""!==e||(e="utf8");if(!l.isEncoding(e))throw new TypeError("Unknown encoding: "+e);var r=0|p(t,e),n=a(r),i=n.write(t,e);i!==r&&(n=n.slice(0,i));return n}(t,e):function(t){if(l.isBuffer(t)){var e=0|h(t.length),r=a(e);return 0===r.length||t.copy(r,0,0,e),r}if(t){if(ArrayBuffer.isView(t)||"length"in t)return"number"!=typeof t.length||I(t.length)?a(0):c(t);if("Buffer"===t.type&&Array.isArray(t.data))return c(t.data)}throw new TypeError("The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object.")}(t)}function u(t){if("number"!=typeof t)throw new TypeError('"size" argument must be of type number');if(t<0)throw new RangeError('"size" argument must not be negative')}function f(t){return u(t),a(t<0?0:0|h(t))}function c(t){for(var e=t.length<0?0:0|h(t.length),r=a(e),n=0;n<e;n+=1)r[n]=255&t[n];return r}function h(t){if(i<=t)throw new RangeError("Attempt to allocate Buffer larger than maximum size: 0x"+i.toString(16)+" bytes");return 0|t}function p(t,e){if(l.isBuffer(t))return t.length;if(ArrayBuffer.isView(t)||q(t))return t.byteLength;"string"!=typeof t&&(t=""+t);var r=t.length;if(0===r)return 0;for(var n=!1;;)switch(e){case"ascii":case"latin1":case"binary":return r;case"utf8":case"utf-8":case void 0:return M(t).length;case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return 2*r;case"hex":return r>>>1;case"base64":return R(t).length;default:if(n)return M(t).length;e=(""+e).toLowerCase(),n=!0}}function d(t,e,r){var n=t[e];t[e]=t[r],t[r]=n}function g(t,e,r,n,i){if(0===t.length)return-1;if("string"==typeof r?(n=r,r=0):2147483647<r?r=2147483647:r<-2147483648&&(r=-2147483648),I(r=+r)&&(r=i?0:t.length-1),r<0&&(r=t.length+r),r>=t.length){if(i)return-1;r=t.length-1}else if(r<0){if(!i)return-1;r=0}if("string"==typeof e&&(e=l.from(e,n)),l.isBuffer(e))return 0===e.length?-1:y(t,e,r,n,i);if("number"==typeof e)return e&=255,"function"==typeof Uint8Array.prototype.indexOf?i?Uint8Array.prototype.indexOf.call(t,e,r):Uint8Array.prototype.lastIndexOf.call(t,e,r):y(t,[e],r,n,i);throw new TypeError("val must be string, number or Buffer")}function y(t,e,r,n,i){var o,a=1,s=t.length,u=e.length;if(void 0!==n&&("ucs2"===(n=String(n).toLowerCase())||"ucs-2"===n||"utf16le"===n||"utf-16le"===n)){if(t.length<2||e.length<2)return-1;s/=a=2,u/=2,r/=2}function f(t,e){return 1===a?t[e]:t.readUInt16BE(e*a)}if(i){var c=-1;for(o=r;o<s;o++)if(f(t,o)===f(e,-1===c?0:o-c)){if(-1===c&&(c=o),o-c+1===u)return c*a}else-1!==c&&(o-=o-c),c=-1}else for(s<r+u&&(r=s-u),o=r;0<=o;o--){for(var l=!0,h=0;h<u;h++)if(f(t,o+h)!==f(e,h)){l=!1;break}if(l)return o}return-1}function v(t,e,r,n){r=Number(r)||0;var i=t.length-r;n?i<(n=Number(n))&&(n=i):n=i;var o=e.length;o/2<n&&(n=o/2);for(var a=0;a<n;++a){var s=parseInt(e.substr(2*a,2),16);if(I(s))return a;t[r+a]=s}return a}function _(t,e,r,n){return N(function(t){for(var e=[],r=0;r<t.length;++r)e.push(255&t.charCodeAt(r));return e}(e),t,r,n)}function b(t,e,r){return 0===e&&r===t.length?n.fromByteArray(t):n.fromByteArray(t.slice(e,r))}function m(t,e,r){r=Math.min(t.length,r);for(var n=[],i=e;i<r;){var o,a,s,u,f=t[i],c=null,l=239<f?4:223<f?3:191<f?2:1;if(i+l<=r)switch(l){case 1:f<128&&(c=f);break;case 2:128==(192&(o=t[i+1]))&&127<(u=(31&f)<<6|63&o)&&(c=u);break;case 3:o=t[i+1],a=t[i+2],128==(192&o)&&128==(192&a)&&2047<(u=(15&f)<<12|(63&o)<<6|63&a)&&(u<55296||57343<u)&&(c=u);break;case 4:o=t[i+1],a=t[i+2],s=t[i+3],128==(192&o)&&128==(192&a)&&128==(192&s)&&65535<(u=(15&f)<<18|(63&o)<<12|(63&a)<<6|63&s)&&u<1114112&&(c=u)}null===c?(c=65533,l=1):65535<c&&(c-=65536,n.push(c>>>10&1023|55296),c=56320|1023&c),n.push(c),i+=l}return function(t){var e=t.length;if(e<=w)return String.fromCharCode.apply(String,t);var r="",n=0;for(;n<e;)r+=String.fromCharCode.apply(String,t.slice(n,n+=w));return r}(n)}r.kMaxLength=i,(l.TYPED_ARRAY_SUPPORT=function(){try{var t=new Uint8Array(1);return t.__proto__={__proto__:Uint8Array.prototype,foo:function(){return 42}},42===t.foo()}catch(t){return!1}}())||"undefined"==typeof console||"function"!=typeof console.error||console.error("This browser lacks typed array (Uint8Array) support which is required by `buffer` v5.x. Use `buffer` v4.x if you require old browser support."),Object.defineProperty(l.prototype,"parent",{get:function(){if(this instanceof l)return this.buffer}}),Object.defineProperty(l.prototype,"offset",{get:function(){if(this instanceof l)return this.byteOffset}}),"undefined"!=typeof Symbol&&Symbol.species&&l[Symbol.species]===l&&Object.defineProperty(l,Symbol.species,{value:null,configurable:!0,enumerable:!1,writable:!1}),l.poolSize=8192,l.from=function(t,e,r){return s(t,e,r)},l.prototype.__proto__=Uint8Array.prototype,l.__proto__=Uint8Array,l.alloc=function(t,e,r){return i=e,o=r,u(n=t),n<=0?a(n):void 0!==i?"string"==typeof o?a(n).fill(i,o):a(n).fill(i):a(n);var n,i,o},l.allocUnsafe=function(t){return f(t)},l.allocUnsafeSlow=function(t){return f(t)},l.isBuffer=function(t){return null!=t&&!0===t._isBuffer},l.compare=function(t,e){if(!l.isBuffer(t)||!l.isBuffer(e))throw new TypeError("Arguments must be Buffers");if(t===e)return 0;for(var r=t.length,n=e.length,i=0,o=Math.min(r,n);i<o;++i)if(t[i]!==e[i]){r=t[i],n=e[i];break}return r<n?-1:n<r?1:0},l.isEncoding=function(t){switch(String(t).toLowerCase()){case"hex":case"utf8":case"utf-8":case"ascii":case"latin1":case"binary":case"base64":case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return!0;default:return!1}},l.concat=function(t,e){if(!Array.isArray(t))throw new TypeError('"list" argument must be an Array of Buffers');if(0===t.length)return l.alloc(0);var r;if(void 0===e)for(r=e=0;r<t.length;++r)e+=t[r].length;var n=l.allocUnsafe(e),i=0;for(r=0;r<t.length;++r){var o=t[r];if(ArrayBuffer.isView(o)&&(o=l.from(o)),!l.isBuffer(o))throw new TypeError('"list" argument must be an Array of Buffers');o.copy(n,i),i+=o.length}return n},l.byteLength=p,l.prototype._isBuffer=!0,l.prototype.swap16=function(){var t=this.length;if(t%2!=0)throw new RangeError("Buffer size must be a multiple of 16-bits");for(var e=0;e<t;e+=2)d(this,e,e+1);return this},l.prototype.swap32=function(){var t=this.length;if(t%4!=0)throw new RangeError("Buffer size must be a multiple of 32-bits");for(var e=0;e<t;e+=4)d(this,e,e+3),d(this,e+1,e+2);return this},l.prototype.swap64=function(){var t=this.length;if(t%8!=0)throw new RangeError("Buffer size must be a multiple of 64-bits");for(var e=0;e<t;e+=8)d(this,e,e+7),d(this,e+1,e+6),d(this,e+2,e+5),d(this,e+3,e+4);return this},l.prototype.toLocaleString=l.prototype.toString=function(){var t=this.length;return 0===t?"":0===arguments.length?m(this,0,t):function(t,e,r){var n=!1;if((void 0===e||e<0)&&(e=0),e>this.length)return"";if((void 0===r||r>this.length)&&(r=this.length),r<=0)return"";if((r>>>=0)<=(e>>>=0))return"";for(t||(t="utf8");;)switch(t){case"hex":return S(this,e,r);case"utf8":case"utf-8":return m(this,e,r);case"ascii":return E(this,e,r);case"latin1":case"binary":return k(this,e,r);case"base64":return b(this,e,r);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return x(this,e,r);default:if(n)throw new TypeError("Unknown encoding: "+t);t=(t+"").toLowerCase(),n=!0}}.apply(this,arguments)},l.prototype.equals=function(t){if(!l.isBuffer(t))throw new TypeError("Argument must be a Buffer");return this===t||0===l.compare(this,t)},l.prototype.inspect=function(){var t="",e=r.INSPECT_MAX_BYTES;return 0<this.length&&(t=this.toString("hex",0,e).match(/.{2}/g).join(" "),this.length>e&&(t+=" ... ")),"<Buffer "+t+">"},l.prototype.compare=function(t,e,r,n,i){if(!l.isBuffer(t))throw new TypeError("Argument must be a Buffer");if(void 0===e&&(e=0),void 0===r&&(r=t?t.length:0),void 0===n&&(n=0),void 0===i&&(i=this.length),e<0||r>t.length||n<0||i>this.length)throw new RangeError("out of range index");if(i<=n&&r<=e)return 0;if(i<=n)return-1;if(r<=e)return 1;if(this===t)return 0;for(var o=(i>>>=0)-(n>>>=0),a=(r>>>=0)-(e>>>=0),s=Math.min(o,a),u=this.slice(n,i),f=t.slice(e,r),c=0;c<s;++c)if(u[c]!==f[c]){o=u[c],a=f[c];break}return o<a?-1:a<o?1:0},l.prototype.includes=function(t,e,r){return-1!==this.indexOf(t,e,r)},l.prototype.indexOf=function(t,e,r){return g(this,t,e,r,!0)},l.prototype.lastIndexOf=function(t,e,r){return g(this,t,e,r,!1)},l.prototype.write=function(t,e,r,n){if(void 0===e)n="utf8",r=this.length,e=0;else if(void 0===r&&"string"==typeof e)n=e,r=this.length,e=0;else{if(!isFinite(e))throw new Error("Buffer.write(string, encoding, offset[, length]) is no longer supported");e>>>=0,isFinite(r)?(r>>>=0,void 0===n&&(n="utf8")):(n=r,r=void 0)}var i=this.length-e;if((void 0===r||i<r)&&(r=i),0<t.length&&(r<0||e<0)||e>this.length)throw new RangeError("Attempt to write outside buffer bounds");n||(n="utf8");for(var o,a,s,u,f,c,l,h,p,d=!1;;)switch(n){case"hex":return v(this,t,e,r);case"utf8":case"utf-8":return h=e,p=r,N(M(t,(l=this).length-h),l,h,p);case"ascii":return _(this,t,e,r);case"latin1":case"binary":return _(this,t,e,r);case"base64":return u=this,f=e,c=r,N(R(t),u,f,c);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return a=e,s=r,N(function(t,e){for(var r,n,i,o=[],a=0;a<t.length&&!((e-=2)<0);++a)r=t.charCodeAt(a),n=r>>8,i=r%256,o.push(i),o.push(n);return o}(t,(o=this).length-a),o,a,s);default:if(d)throw new TypeError("Unknown encoding: "+n);n=(""+n).toLowerCase(),d=!0}},l.prototype.toJSON=function(){return{type:"Buffer",data:Array.prototype.slice.call(this._arr||this,0)}};var w=4096;function E(t,e,r){var n="";r=Math.min(t.length,r);for(var i=e;i<r;++i)n+=String.fromCharCode(127&t[i]);return n}function k(t,e,r){var n="";r=Math.min(t.length,r);for(var i=e;i<r;++i)n+=String.fromCharCode(t[i]);return n}function S(t,e,r){var n=t.length;(!e||e<0)&&(e=0),(!r||r<0||n<r)&&(r=n);for(var i="",o=e;o<r;++o)i+=C(t[o]);return i}function x(t,e,r){for(var n=t.slice(e,r),i="",o=0;o<n.length;o+=2)i+=String.fromCharCode(n[o]+256*n[o+1]);return i}function B(t,e,r){if(t%1!=0||t<0)throw new RangeError("offset is not uint");if(r<t+e)throw new RangeError("Trying to access beyond buffer length")}function O(t,e,r,n,i,o){if(!l.isBuffer(t))throw new TypeError('"buffer" argument must be a Buffer instance');if(i<e||e<o)throw new RangeError('"value" argument is out of bounds');if(r+n>t.length)throw new RangeError("Index out of range")}function A(t,e,r,n,i,o){if(r+n>t.length)throw new RangeError("Index out of range");if(r<0)throw new RangeError("Index out of range")}function T(t,e,r,n,i){return e=+e,r>>>=0,i||A(t,0,r,4),o.write(t,e,r,n,23,4),r+4}function j(t,e,r,n,i){return e=+e,r>>>=0,i||A(t,0,r,8),o.write(t,e,r,n,52,8),r+8}l.prototype.slice=function(t,e){var r=this.length;(t=~~t)<0?(t+=r)<0&&(t=0):r<t&&(t=r),(e=void 0===e?r:~~e)<0?(e+=r)<0&&(e=0):r<e&&(e=r),e<t&&(e=t);var n=this.subarray(t,e);return n.__proto__=l.prototype,n},l.prototype.readUIntLE=function(t,e,r){t>>>=0,e>>>=0,r||B(t,e,this.length);for(var n=this[t],i=1,o=0;++o<e&&(i*=256);)n+=this[t+o]*i;return n},l.prototype.readUIntBE=function(t,e,r){t>>>=0,e>>>=0,r||B(t,e,this.length);for(var n=this[t+--e],i=1;0<e&&(i*=256);)n+=this[t+--e]*i;return n},l.prototype.readUInt8=function(t,e){return t>>>=0,e||B(t,1,this.length),this[t]},l.prototype.readUInt16LE=function(t,e){return t>>>=0,e||B(t,2,this.length),this[t]|this[t+1]<<8},l.prototype.readUInt16BE=function(t,e){return t>>>=0,e||B(t,2,this.length),this[t]<<8|this[t+1]},l.prototype.readUInt32LE=function(t,e){return t>>>=0,e||B(t,4,this.length),(this[t]|this[t+1]<<8|this[t+2]<<16)+16777216*this[t+3]},l.prototype.readUInt32BE=function(t,e){return t>>>=0,e||B(t,4,this.length),16777216*this[t]+(this[t+1]<<16|this[t+2]<<8|this[t+3])},l.prototype.readIntLE=function(t,e,r){t>>>=0,e>>>=0,r||B(t,e,this.length);for(var n=this[t],i=1,o=0;++o<e&&(i*=256);)n+=this[t+o]*i;return(i*=128)<=n&&(n-=Math.pow(2,8*e)),n},l.prototype.readIntBE=function(t,e,r){t>>>=0,e>>>=0,r||B(t,e,this.length);for(var n=e,i=1,o=this[t+--n];0<n&&(i*=256);)o+=this[t+--n]*i;return(i*=128)<=o&&(o-=Math.pow(2,8*e)),o},l.prototype.readInt8=function(t,e){return t>>>=0,e||B(t,1,this.length),128&this[t]?-1*(255-this[t]+1):this[t]},l.prototype.readInt16LE=function(t,e){t>>>=0,e||B(t,2,this.length);var r=this[t]|this[t+1]<<8;return 32768&r?4294901760|r:r},l.prototype.readInt16BE=function(t,e){t>>>=0,e||B(t,2,this.length);var r=this[t+1]|this[t]<<8;return 32768&r?4294901760|r:r},l.prototype.readInt32LE=function(t,e){return t>>>=0,e||B(t,4,this.length),this[t]|this[t+1]<<8|this[t+2]<<16|this[t+3]<<24},l.prototype.readInt32BE=function(t,e){return t>>>=0,e||B(t,4,this.length),this[t]<<24|this[t+1]<<16|this[t+2]<<8|this[t+3]},l.prototype.readFloatLE=function(t,e){return t>>>=0,e||B(t,4,this.length),o.read(this,t,!0,23,4)},l.prototype.readFloatBE=function(t,e){return t>>>=0,e||B(t,4,this.length),o.read(this,t,!1,23,4)},l.prototype.readDoubleLE=function(t,e){return t>>>=0,e||B(t,8,this.length),o.read(this,t,!0,52,8)},l.prototype.readDoubleBE=function(t,e){return t>>>=0,e||B(t,8,this.length),o.read(this,t,!1,52,8)},l.prototype.writeUIntLE=function(t,e,r,n){(t=+t,e>>>=0,r>>>=0,n)||O(this,t,e,r,Math.pow(2,8*r)-1,0);var i=1,o=0;for(this[e]=255&t;++o<r&&(i*=256);)this[e+o]=t/i&255;return e+r},l.prototype.writeUIntBE=function(t,e,r,n){(t=+t,e>>>=0,r>>>=0,n)||O(this,t,e,r,Math.pow(2,8*r)-1,0);var i=r-1,o=1;for(this[e+i]=255&t;0<=--i&&(o*=256);)this[e+i]=t/o&255;return e+r},l.prototype.writeUInt8=function(t,e,r){return t=+t,e>>>=0,r||O(this,t,e,1,255,0),this[e]=255&t,e+1},l.prototype.writeUInt16LE=function(t,e,r){return t=+t,e>>>=0,r||O(this,t,e,2,65535,0),this[e]=255&t,this[e+1]=t>>>8,e+2},l.prototype.writeUInt16BE=function(t,e,r){return t=+t,e>>>=0,r||O(this,t,e,2,65535,0),this[e]=t>>>8,this[e+1]=255&t,e+2},l.prototype.writeUInt32LE=function(t,e,r){return t=+t,e>>>=0,r||O(this,t,e,4,4294967295,0),this[e+3]=t>>>24,this[e+2]=t>>>16,this[e+1]=t>>>8,this[e]=255&t,e+4},l.prototype.writeUInt32BE=function(t,e,r){return t=+t,e>>>=0,r||O(this,t,e,4,4294967295,0),this[e]=t>>>24,this[e+1]=t>>>16,this[e+2]=t>>>8,this[e+3]=255&t,e+4},l.prototype.writeIntLE=function(t,e,r,n){if(t=+t,e>>>=0,!n){var i=Math.pow(2,8*r-1);O(this,t,e,r,i-1,-i)}var o=0,a=1,s=0;for(this[e]=255&t;++o<r&&(a*=256);)t<0&&0===s&&0!==this[e+o-1]&&(s=1),this[e+o]=(t/a>>0)-s&255;return e+r},l.prototype.writeIntBE=function(t,e,r,n){if(t=+t,e>>>=0,!n){var i=Math.pow(2,8*r-1);O(this,t,e,r,i-1,-i)}var o=r-1,a=1,s=0;for(this[e+o]=255&t;0<=--o&&(a*=256);)t<0&&0===s&&0!==this[e+o+1]&&(s=1),this[e+o]=(t/a>>0)-s&255;return e+r},l.prototype.writeInt8=function(t,e,r){return t=+t,e>>>=0,r||O(this,t,e,1,127,-128),t<0&&(t=255+t+1),this[e]=255&t,e+1},l.prototype.writeInt16LE=function(t,e,r){return t=+t,e>>>=0,r||O(this,t,e,2,32767,-32768),this[e]=255&t,this[e+1]=t>>>8,e+2},l.prototype.writeInt16BE=function(t,e,r){return t=+t,e>>>=0,r||O(this,t,e,2,32767,-32768),this[e]=t>>>8,this[e+1]=255&t,e+2},l.prototype.writeInt32LE=function(t,e,r){return t=+t,e>>>=0,r||O(this,t,e,4,2147483647,-2147483648),this[e]=255&t,this[e+1]=t>>>8,this[e+2]=t>>>16,this[e+3]=t>>>24,e+4},l.prototype.writeInt32BE=function(t,e,r){return t=+t,e>>>=0,r||O(this,t,e,4,2147483647,-2147483648),t<0&&(t=4294967295+t+1),this[e]=t>>>24,this[e+1]=t>>>16,this[e+2]=t>>>8,this[e+3]=255&t,e+4},l.prototype.writeFloatLE=function(t,e,r){return T(this,t,e,!0,r)},l.prototype.writeFloatBE=function(t,e,r){return T(this,t,e,!1,r)},l.prototype.writeDoubleLE=function(t,e,r){return j(this,t,e,!0,r)},l.prototype.writeDoubleBE=function(t,e,r){return j(this,t,e,!1,r)},l.prototype.copy=function(t,e,r,n){if(!l.isBuffer(t))throw new TypeError("argument should be a Buffer");if(r||(r=0),n||0===n||(n=this.length),e>=t.length&&(e=t.length),e||(e=0),0<n&&n<r&&(n=r),n===r)return 0;if(0===t.length||0===this.length)return 0;if(e<0)throw new RangeError("targetStart out of bounds");if(r<0||r>=this.length)throw new RangeError("Index out of range");if(n<0)throw new RangeError("sourceEnd out of bounds");n>this.length&&(n=this.length),t.length-e<n-r&&(n=t.length-e+r);var i=n-r;if(this===t&&"function"==typeof Uint8Array.prototype.copyWithin)this.copyWithin(e,r,n);else if(this===t&&r<e&&e<n)for(var o=i-1;0<=o;--o)t[o+e]=this[o+r];else Uint8Array.prototype.set.call(t,this.subarray(r,n),e);return i},l.prototype.fill=function(t,e,r,n){if("string"==typeof t){if("string"==typeof e?(n=e,e=0,r=this.length):"string"==typeof r&&(n=r,r=this.length),void 0!==n&&"string"!=typeof n)throw new TypeError("encoding must be a string");if("string"==typeof n&&!l.isEncoding(n))throw new TypeError("Unknown encoding: "+n);if(1===t.length){var i=t.charCodeAt(0);("utf8"===n&&i<128||"latin1"===n)&&(t=i)}}else"number"==typeof t&&(t&=255);if(e<0||this.length<e||this.length<r)throw new RangeError("Out of range index");if(r<=e)return this;var o;if(e>>>=0,r=void 0===r?this.length:r>>>0,t||(t=0),"number"==typeof t)for(o=e;o<r;++o)this[o]=t;else{var a=l.isBuffer(t)?t:new l(t,n),s=a.length;if(0===s)throw new TypeError('The value "'+t+'" is invalid for argument "value"');for(o=0;o<r-e;++o)this[o+e]=a[o%s]}return this};var L=/[^+/0-9A-Za-z-_]/g;function C(t){return t<16?"0"+t.toString(16):t.toString(16)}function M(t,e){var r;e=e||1/0;for(var n=t.length,i=null,o=[],a=0;a<n;++a){if(55295<(r=t.charCodeAt(a))&&r<57344){if(!i){if(56319<r){-1<(e-=3)&&o.push(239,191,189);continue}if(a+1===n){-1<(e-=3)&&o.push(239,191,189);continue}i=r;continue}if(r<56320){-1<(e-=3)&&o.push(239,191,189),i=r;continue}r=65536+(i-55296<<10|r-56320)}else i&&-1<(e-=3)&&o.push(239,191,189);if(i=null,r<128){if((e-=1)<0)break;o.push(r)}else if(r<2048){if((e-=2)<0)break;o.push(r>>6|192,63&r|128)}else if(r<65536){if((e-=3)<0)break;o.push(r>>12|224,r>>6&63|128,63&r|128)}else{if(!(r<1114112))throw new Error("Invalid code point");if((e-=4)<0)break;o.push(r>>18|240,r>>12&63|128,r>>6&63|128,63&r|128)}}return o}function R(t){return n.toByteArray(function(t){if((t=(t=t.split("=")[0]).trim().replace(L,"")).length<2)return"";for(;t.length%4!=0;)t+="=";return t}(t))}function N(t,e,r,n){for(var i=0;i<n&&!(i+r>=e.length||i>=t.length);++i)e[i+r]=t[i];return i}function q(t){return t instanceof ArrayBuffer||null!=t&&null!=t.constructor&&"ArrayBuffer"===t.constructor.name&&"number"==typeof t.byteLength}function I(t){return t!=t}},{16:16,6:6}],10:[function(t,e,r){(function(t){function e(t){return Object.prototype.toString.call(t)}r.isArray=function(t){return Array.isArray?Array.isArray(t):"[object Array]"===e(t)},r.isBoolean=function(t){return"boolean"==typeof t},r.isNull=function(t){return null===t},r.isNullOrUndefined=function(t){return null==t},r.isNumber=function(t){return"number"==typeof t},r.isString=function(t){return"string"==typeof t},r.isSymbol=function(t){return"symbol"==typeof t},r.isUndefined=function(t){return void 0===t},r.isRegExp=function(t){return"[object RegExp]"===e(t)},r.isObject=function(t){return"object"==typeof t&&null!==t},r.isDate=function(t){return"[object Date]"===e(t)},r.isError=function(t){return"[object Error]"===e(t)||t instanceof Error},r.isFunction=function(t){return"function"==typeof t},r.isPrimitive=function(t){return null===t||"boolean"==typeof t||"number"==typeof t||"string"==typeof t||"symbol"==typeof t||void 0===t},r.isBuffer=t.isBuffer}).call(this,{isBuffer:t(19)})},{19:19}],11:[function(t,e,r){"use strict";function n(t){if(this._capacity=o(t),this._length=0,this._front=0,i(t)){for(var e=t.length,r=0;r<e;++r)this[r]=t[r];this._length=e}}n.prototype.toArray=function(){for(var t=this._length,e=new Array(t),r=this._front,n=this._capacity,i=0;i<t;++i)e[i]=this[r+i&n-1];return e},n.prototype.push=function(t){var e=arguments.length,r=this._length;if(1<e){var n=this._capacity;if(n<r+e){for(var i=0;i<e;++i){this._checkCapacity(r+1),this[o=this._front+r&this._capacity-1]=arguments[i],r++,this._length=r}return r}for(var o=this._front,i=0;i<e;++i)this[o+r&n-1]=arguments[i],o++;return this._length=r+e,r+e}return 0===e?r:(this._checkCapacity(r+1),this[i=this._front+r&this._capacity-1]=t,this._length=r+1,r+1)},n.prototype.pop=function(){var t=this._length;if(0!==t){var e=this._front+t-1&this._capacity-1,r=this[e];return this[e]=void 0,this._length=t-1,r}},n.prototype.shift=function(){var t=this._length;if(0!==t){var e=this._front,r=this[e];return this[e]=void 0,this._front=e+1&this._capacity-1,this._length=t-1,r}},n.prototype.unshift=function(t){var e=this._length,r=arguments.length;if(1<r){if((i=this._capacity)<e+r){for(var n=r-1;0<=n;n--){this._checkCapacity(e+1);var i=this._capacity;this[a=(this._front-1&i-1^i)-i]=arguments[n],e++,this._length=e,this._front=a}return e}var o=this._front;for(n=r-1;0<=n;n--){var a;this[a=(o-1&i-1^i)-i]=arguments[n],o=a}return this._front=o,this._length=e+r,e+r}if(0===r)return e;this._checkCapacity(e+1);i=this._capacity;return this[n=(this._front-1&i-1^i)-i]=t,this._length=e+1,this._front=n,e+1},n.prototype.peekBack=function(){var t=this._length;if(0!==t)return this[this._front+t-1&this._capacity-1]},n.prototype.peekFront=function(){if(0!==this._length)return this[this._front]},n.prototype.get=function(t){var e=t;if(e===(0|e)){var r=this._length;if(e<0&&(e+=r),!(e<0||r<=e))return this[this._front+e&this._capacity-1]}},n.prototype.isEmpty=function(){return 0===this._length},n.prototype.clear=function(){for(var t=this._length,e=this._front,r=this._capacity,n=0;n<t;++n)this[e+n&r-1]=void 0;this._length=0,this._front=0},n.prototype.valueOf=n.prototype.toString=function(){return this.toArray().toString()},n.prototype.removeFront=n.prototype.shift,n.prototype.removeBack=n.prototype.pop,n.prototype.insertFront=n.prototype.unshift,n.prototype.insertBack=n.prototype.push,n.prototype.enqueue=n.prototype.push,n.prototype.dequeue=n.prototype.shift,n.prototype.toJSON=n.prototype.toArray,Object.defineProperty(n.prototype,"length",{get:function(){return this._length},set:function(){throw new RangeError("")}}),n.prototype._checkCapacity=function(t){this._capacity<t&&this._resizeTo(o(1.5*this._capacity+16))},n.prototype._resizeTo=function(t){var e=this._capacity;this._capacity=t;var r=this._front,n=this._length;e<r+n&&function(t,e,r,n,i){for(var o=0;o<i;++o)r[o+n]=t[o+e],t[o+e]=void 0}(this,0,this,e,r+n&e-1)};var i=Array.isArray;function o(t){if("number"!=typeof t){if(!i(t))return 16;t=t.length}return e=Math.min(Math.max(16,t),1073741824),e>>>=0,e-=1,e|=e>>1,e|=e>>2,e|=e>>4,e|=e>>8,1+(e|=e>>16);var e}e.exports=n},{}],12:[function(t,e,r){var n=t(63);function s(t,e,r){e&&"string"!=typeof e&&(e=e.message||e.name),n(this,{type:t,name:t,cause:"string"!=typeof e?e:r,message:e},"ewr")}function u(t,e){Error.call(this),Error.captureStackTrace&&Error.captureStackTrace(this,this.constructor),s.call(this,"CustomError",t,e)}u.prototype=new Error,e.exports=function(a){var t=function(t,e){return r=a,n=t,(o=function(t,e){s.call(this,n,t,e),"FilesystemError"==n&&(this.code=this.cause.code,this.path=this.cause.path,this.errno=this.cause.errno,this.message=(r.errno[this.cause.errno]?r.errno[this.cause.errno].description:this.cause.message)+(this.cause.path?" ["+this.cause.path+"]":"")),Error.call(this),Error.captureStackTrace&&Error.captureStackTrace(this,o)}).prototype=(i=e)?new i:new u,o;var r,n,i,o};return{CustomError:u,FilesystemError:t("FilesystemError"),createError:t}}},{63:63}],13:[function(t,e,r){var n=e.exports.all=[{errno:-2,code:"ENOENT",description:"no such file or directory"},{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"}];e.exports.errno={},e.exports.code={},n.forEach(function(t){e.exports.errno[t.errno]=t,e.exports.code[t.code]=t}),e.exports.custom=t(12)(e.exports),e.exports.create=e.exports.custom.createError},{12:12}],14:[function(t,e,r){var u=Object.create||function(t){var e=function(){};return e.prototype=t,new e},a=Object.keys||function(t){var e=[];for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&e.push(r);return r},o=Function.prototype.bind||function(t){var e=this;return function(){return e.apply(t,arguments)}};function n(){this._events&&Object.prototype.hasOwnProperty.call(this,"_events")||(this._events=u(null),this._eventsCount=0),this._maxListeners=this._maxListeners||void 0}((e.exports=n).EventEmitter=n).prototype._events=void 0,n.prototype._maxListeners=void 0;var i,s=10;try{var f={};Object.defineProperty&&Object.defineProperty(f,"x",{value:0}),i=0===f.x}catch(t){i=!1}function c(t){return void 0===t._maxListeners?n.defaultMaxListeners:t._maxListeners}function l(t,e,r,n){var i,o,a;if("function"!=typeof r)throw new TypeError('"listener" argument must be a function');if((o=t._events)?(o.newListener&&(t.emit("newListener",e,r.listener?r.listener:r),o=t._events),a=o[e]):(o=t._events=u(null),t._eventsCount=0),a){if("function"==typeof a?a=o[e]=n?[r,a]:[a,r]:n?a.unshift(r):a.push(r),!a.warned&&(i=c(t))&&0<i&&a.length>i){a.warned=!0;var s=new Error("Possible EventEmitter memory leak detected. "+a.length+' "'+String(e)+'" listeners added. Use emitter.setMaxListeners() to increase limit.');s.name="MaxListenersExceededWarning",s.emitter=t,s.type=e,s.count=a.length,"object"==typeof console&&console.warn&&console.warn("%s: %s",s.name,s.message)}}else a=o[e]=r,++t._eventsCount;return t}function h(){if(!this.fired)switch(this.target.removeListener(this.type,this.wrapFn),this.fired=!0,arguments.length){case 0:return this.listener.call(this.target);case 1:return this.listener.call(this.target,arguments[0]);case 2:return this.listener.call(this.target,arguments[0],arguments[1]);case 3:return this.listener.call(this.target,arguments[0],arguments[1],arguments[2]);default:for(var t=new Array(arguments.length),e=0;e<t.length;++e)t[e]=arguments[e];this.listener.apply(this.target,t)}}function p(t,e,r){var n={fired:!1,wrapFn:void 0,target:t,type:e,listener:r},i=o.call(h,n);return i.listener=r,n.wrapFn=i}function d(t,e,r){var n=t._events;if(!n)return[];var i=n[e];return i?"function"==typeof i?r?[i.listener||i]:[i]:r?function(t){for(var e=new Array(t.length),r=0;r<e.length;++r)e[r]=t[r].listener||t[r];return e}(i):y(i,i.length):[]}function g(t){var e=this._events;if(e){var r=e[t];if("function"==typeof r)return 1;if(r)return r.length}return 0}function y(t,e){for(var r=new Array(e),n=0;n<e;++n)r[n]=t[n];return r}i?Object.defineProperty(n,"defaultMaxListeners",{enumerable:!0,get:function(){return s},set:function(t){if("number"!=typeof t||t<0||t!=t)throw new TypeError('"defaultMaxListeners" must be a positive number');s=t}}):n.defaultMaxListeners=s,n.prototype.setMaxListeners=function(t){if("number"!=typeof t||t<0||isNaN(t))throw new TypeError('"n" argument must be a positive number');return this._maxListeners=t,this},n.prototype.getMaxListeners=function(){return c(this)},n.prototype.emit=function(t){var e,r,n,i,o,a,s="error"===t;if(a=this._events)s=s&&null==a.error;else if(!s)return!1;if(s){if(1<arguments.length&&(e=arguments[1]),e instanceof Error)throw e;var u=new Error('Unhandled "error" event. ('+e+")");throw u.context=e,u}if(!(r=a[t]))return!1;var f="function"==typeof r;switch(n=arguments.length){case 1:!function(t,e,r){if(e)t.call(r);else for(var n=t.length,i=y(t,n),o=0;o<n;++o)i[o].call(r)}(r,f,this);break;case 2:!function(t,e,r,n){if(e)t.call(r,n);else for(var i=t.length,o=y(t,i),a=0;a<i;++a)o[a].call(r,n)}(r,f,this,arguments[1]);break;case 3:!function(t,e,r,n,i){if(e)t.call(r,n,i);else for(var o=t.length,a=y(t,o),s=0;s<o;++s)a[s].call(r,n,i)}(r,f,this,arguments[1],arguments[2]);break;case 4:!function(t,e,r,n,i,o){if(e)t.call(r,n,i,o);else for(var a=t.length,s=y(t,a),u=0;u<a;++u)s[u].call(r,n,i,o)}(r,f,this,arguments[1],arguments[2],arguments[3]);break;default:for(i=new Array(n-1),o=1;o<n;o++)i[o-1]=arguments[o];!function(t,e,r,n){if(e)t.apply(r,n);else for(var i=t.length,o=y(t,i),a=0;a<i;++a)o[a].apply(r,n)}(r,f,this,i)}return!0},n.prototype.on=n.prototype.addListener=function(t,e){return l(this,t,e,!1)},n.prototype.prependListener=function(t,e){return l(this,t,e,!0)},n.prototype.once=function(t,e){if("function"!=typeof e)throw new TypeError('"listener" argument must be a function');return this.on(t,p(this,t,e)),this},n.prototype.prependOnceListener=function(t,e){if("function"!=typeof e)throw new TypeError('"listener" argument must be a function');return this.prependListener(t,p(this,t,e)),this},n.prototype.removeListener=function(t,e){var r,n,i,o,a;if("function"!=typeof e)throw new TypeError('"listener" argument must be a function');if(!(n=this._events))return this;if(!(r=n[t]))return this;if(r===e||r.listener===e)0==--this._eventsCount?this._events=u(null):(delete n[t],n.removeListener&&this.emit("removeListener",t,r.listener||e));else if("function"!=typeof r){for(i=-1,o=r.length-1;0<=o;o--)if(r[o]===e||r[o].listener===e){a=r[o].listener,i=o;break}if(i<0)return this;0===i?r.shift():function(t,e){for(var r=e,n=r+1,i=t.length;n<i;r+=1,n+=1)t[r]=t[n];t.pop()}(r,i),1===r.length&&(n[t]=r[0]),n.removeListener&&this.emit("removeListener",t,a||e)}return this},n.prototype.removeAllListeners=function(t){var e,r,n;if(!(r=this._events))return this;if(!r.removeListener)return 0===arguments.length?(this._events=u(null),this._eventsCount=0):r[t]&&(0==--this._eventsCount?this._events=u(null):delete r[t]),this;if(0===arguments.length){var i,o=a(r);for(n=0;n<o.length;++n)"removeListener"!==(i=o[n])&&this.removeAllListeners(i);return this.removeAllListeners("removeListener"),this._events=u(null),this._eventsCount=0,this}if("function"==typeof(e=r[t]))this.removeListener(t,e);else if(e)for(n=e.length-1;0<=n;n--)this.removeListener(t,e[n]);return this},n.prototype.listeners=function(t){return d(this,t,!0)},n.prototype.rawListeners=function(t){return d(this,t,!1)},n.listenerCount=function(t,e){return"function"==typeof t.listenerCount?t.listenerCount(e):g.call(t,e)},n.prototype.listenerCount=g,n.prototype.eventNames=function(){return 0<this._eventsCount?Reflect.ownKeys(this._events):[]}},{}],15:[function(t,e,r){"use strict";e.exports=function(t){return new v(t||o,null)};var h=0,p=1;function d(t,e,r,n,i,o){this._color=t,this.key=e,this.value=r,this.left=n,this.right=i,this._count=o}function u(t){return new d(t._color,t.key,t.value,t.left,t.right,t._count)}function g(t,e){return new d(t,e.key,e.value,e.left,e.right,e._count)}function y(t){t._count=1+(t.left?t.left._count:0)+(t.right?t.right._count:0)}function v(t,e){this._compare=t,this.root=e}var n=v.prototype;function a(t,e){this.tree=t,this._stack=e}Object.defineProperty(n,"keys",{get:function(){var r=[];return this.forEach(function(t,e){r.push(t)}),r}}),Object.defineProperty(n,"values",{get:function(){var r=[];return this.forEach(function(t,e){r.push(e)}),r}}),Object.defineProperty(n,"length",{get:function(){return this.root?this.root._count:0}}),n.insert=function(t,e){for(var r=this._compare,n=this.root,i=[],o=[];n;){var a=r(t,n.key);i.push(n),o.push(a),n=a<=0?n.left:n.right}i.push(new d(h,t,e,null,null,1));for(var s=i.length-2;0<=s;--s){n=i[s];o[s]<=0?i[s]=new d(n._color,n.key,n.value,i[s+1],n.right,n._count+1):i[s]=new d(n._color,n.key,n.value,n.left,i[s+1],n._count+1)}for(s=i.length-1;1<s;--s){var u=i[s-1];n=i[s];if(u._color===p||n._color===p)break;var f=i[s-2];if(f.left===u)if(u.left===n){if(!(c=f.right)||c._color!==h){if(f._color=h,f.left=u.right,u._color=p,u.right=f,i[s-2]=u,i[s-1]=n,y(f),y(u),3<=s)(l=i[s-3]).left===f?l.left=u:l.right=u;break}u._color=p,f.right=g(p,c),f._color=h,s-=1}else{if(!(c=f.right)||c._color!==h){if(u.right=n.left,f._color=h,f.left=n.right,n._color=p,n.left=u,n.right=f,i[s-2]=n,i[s-1]=u,y(f),y(u),y(n),3<=s)(l=i[s-3]).left===f?l.left=n:l.right=n;break}u._color=p,f.right=g(p,c),f._color=h,s-=1}else if(u.right===n){if(!(c=f.left)||c._color!==h){if(f._color=h,f.right=u.left,u._color=p,u.left=f,i[s-2]=u,i[s-1]=n,y(f),y(u),3<=s)(l=i[s-3]).right===f?l.right=u:l.left=u;break}u._color=p,f.left=g(p,c),f._color=h,s-=1}else{var c;if(!(c=f.left)||c._color!==h){var l;if(u.left=n.right,f._color=h,f.right=n.left,n._color=p,n.right=u,n.left=f,i[s-2]=n,i[s-1]=u,y(f),y(u),y(n),3<=s)(l=i[s-3]).right===f?l.right=n:l.left=n;break}u._color=p,f.left=g(p,c),f._color=h,s-=1}}return i[0]._color=p,new v(r,i[0])},n.forEach=function(t,e,r){if(this.root)switch(arguments.length){case 1:return function t(e,r){var n;if(r.left&&(n=t(e,r.left)))return n;return(n=e(r.key,r.value))||(r.right?t(e,r.right):void 0)}(t,this.root);case 2:return function t(e,r,n,i){if(r(e,i.key)<=0){var o;if(i.left&&(o=t(e,r,n,i.left)))return o;if(o=n(i.key,i.value))return o}if(i.right)return t(e,r,n,i.right)}(e,this._compare,t,this.root);case 3:if(0<=this._compare(e,r))return;return function t(e,r,n,i,o){var a,s=n(e,o.key),u=n(r,o.key);if(s<=0){if(o.left&&(a=t(e,r,n,i,o.left)))return a;if(0<u&&(a=i(o.key,o.value)))return a}if(0<u&&o.right)return t(e,r,n,i,o.right)}(e,r,this._compare,t,this.root)}},Object.defineProperty(n,"begin",{get:function(){for(var t=[],e=this.root;e;)t.push(e),e=e.left;return new a(this,t)}}),Object.defineProperty(n,"end",{get:function(){for(var t=[],e=this.root;e;)t.push(e),e=e.right;return new a(this,t)}}),n.at=function(t){if(t<0)return new a(this,[]);for(var e=this.root,r=[];;){if(r.push(e),e.left){if(t<e.left._count){e=e.left;continue}t-=e.left._count}if(!t)return new a(this,r);if(t-=1,!e.right)break;if(t>=e.right._count)break;e=e.right}return new a(this,[])},n.ge=function(t){for(var e=this._compare,r=this.root,n=[],i=0;r;){var o=e(t,r.key);n.push(r),o<=0&&(i=n.length),r=o<=0?r.left:r.right}return n.length=i,new a(this,n)},n.gt=function(t){for(var e=this._compare,r=this.root,n=[],i=0;r;){var o=e(t,r.key);n.push(r),o<0&&(i=n.length),r=o<0?r.left:r.right}return n.length=i,new a(this,n)},n.lt=function(t){for(var e=this._compare,r=this.root,n=[],i=0;r;){var o=e(t,r.key);n.push(r),0<o&&(i=n.length),r=o<=0?r.left:r.right}return n.length=i,new a(this,n)},n.le=function(t){for(var e=this._compare,r=this.root,n=[],i=0;r;){var o=e(t,r.key);n.push(r),0<=o&&(i=n.length),r=o<0?r.left:r.right}return n.length=i,new a(this,n)},n.find=function(t){for(var e=this._compare,r=this.root,n=[];r;){var i=e(t,r.key);if(n.push(r),0===i)return new a(this,n);r=i<=0?r.left:r.right}return new a(this,[])},n.remove=function(t){var e=this.find(t);return e?e.remove():this},n.get=function(t){for(var e=this._compare,r=this.root;r;){var n=e(t,r.key);if(0===n)return r.value;r=n<=0?r.left:r.right}};var i=a.prototype;function f(t,e){t.key=e.key,t.value=e.value,t.left=e.left,t.right=e.right,t._color=e._color,t._count=e._count}function o(t,e){return t<e?-1:e<t?1:0}Object.defineProperty(i,"valid",{get:function(){return 0<this._stack.length}}),Object.defineProperty(i,"node",{get:function(){return 0<this._stack.length?this._stack[this._stack.length-1]:null},enumerable:!0}),i.clone=function(){return new a(this.tree,this._stack.slice())},i.remove=function(){var t=this._stack;if(0===t.length)return this.tree;var e=new Array(t.length),r=t[t.length-1];e[e.length-1]=new d(r._color,r.key,r.value,r.left,r.right,r._count);for(var n=t.length-2;0<=n;--n){(r=t[n]).left===t[n+1]?e[n]=new d(r._color,r.key,r.value,e[n+1],r.right,r._count):e[n]=new d(r._color,r.key,r.value,r.left,e[n+1],r._count)}if((r=e[e.length-1]).left&&r.right){var i=e.length;for(r=r.left;r.right;)e.push(r),r=r.right;var o=e[i-1];e.push(new d(r._color,o.key,o.value,r.left,r.right,r._count)),e[i-1].key=r.key,e[i-1].value=r.value;for(n=e.length-2;i<=n;--n)r=e[n],e[n]=new d(r._color,r.key,r.value,r.left,e[n+1],r._count);e[i-1].left=e[i]}if((r=e[e.length-1])._color===h){var a=e[e.length-2];a.left===r?a.left=null:a.right===r&&(a.right=null),e.pop();for(n=0;n<e.length;++n)e[n]._count--;return new v(this.tree._compare,e[0])}if(r.left||r.right){r.left?f(r,r.left):r.right&&f(r,r.right),r._color=p;for(n=0;n<e.length-1;++n)e[n]._count--;return new v(this.tree._compare,e[0])}if(1===e.length)return new v(this.tree._compare,null);for(n=0;n<e.length;++n)e[n]._count--;var s=e[e.length-2];return function(t){for(var e,r,n,i,o=t.length-1;0<=o;--o){if(e=t[o],0===o)return e._color=p;if((r=t[o-1]).left===e){if((n=r.right).right&&n.right._color===h)return i=(n=r.right=u(n)).right=u(n.right),r.right=n.left,n.left=r,n.right=i,n._color=r._color,e._color=p,r._color=p,i._color=p,y(r),y(n),1<o&&((a=t[o-2]).left===r?a.left=n:a.right=n),t[o-1]=n;if(n.left&&n.left._color===h)return i=(n=r.right=u(n)).left=u(n.left),r.right=i.left,n.left=i.right,i.left=r,i.right=n,i._color=r._color,r._color=p,n._color=p,e._color=p,y(r),y(n),y(i),1<o&&((a=t[o-2]).left===r?a.left=i:a.right=i),t[o-1]=i;if(n._color===p){if(r._color===h)return r._color=p,r.right=g(h,n);r.right=g(h,n);continue}n=u(n),r.right=n.left,n.left=r,n._color=r._color,r._color=h,y(r),y(n),1<o&&((a=t[o-2]).left===r?a.left=n:a.right=n),t[o-1]=n,t[o]=r,o+1<t.length?t[o+1]=e:t.push(e),o+=2}else{if((n=r.left).left&&n.left._color===h)return i=(n=r.left=u(n)).left=u(n.left),r.left=n.right,n.right=r,n.left=i,n._color=r._color,e._color=p,r._color=p,i._color=p,y(r),y(n),1<o&&((a=t[o-2]).right===r?a.right=n:a.left=n),t[o-1]=n;if(n.right&&n.right._color===h)return i=(n=r.left=u(n)).right=u(n.right),r.left=i.right,n.right=i.left,i.right=r,i.left=n,i._color=r._color,r._color=p,n._color=p,e._color=p,y(r),y(n),y(i),1<o&&((a=t[o-2]).right===r?a.right=i:a.left=i),t[o-1]=i;if(n._color===p){if(r._color===h)return r._color=p,r.left=g(h,n);r.left=g(h,n);continue}var a;n=u(n),r.left=n.right,n.right=r,n._color=r._color,r._color=h,y(r),y(n),1<o&&((a=t[o-2]).right===r?a.right=n:a.left=n),t[o-1]=n,t[o]=r,o+1<t.length?t[o+1]=e:t.push(e),o+=2}}}(e),s.left===r?s.left=null:s.right=null,new v(this.tree._compare,e[0])},Object.defineProperty(i,"key",{get:function(){if(0<this._stack.length)return this._stack[this._stack.length-1].key},enumerable:!0}),Object.defineProperty(i,"value",{get:function(){if(0<this._stack.length)return this._stack[this._stack.length-1].value},enumerable:!0}),Object.defineProperty(i,"index",{get:function(){var t=0,e=this._stack;if(0===e.length){var r=this.tree.root;return r?r._count:0}e[e.length-1].left&&(t=e[e.length-1].left._count);for(var n=e.length-2;0<=n;--n)e[n+1]===e[n].right&&(++t,e[n].left&&(t+=e[n].left._count));return t},enumerable:!0}),i.next=function(){var t=this._stack;if(0!==t.length){var e=t[t.length-1];if(e.right)for(e=e.right;e;)t.push(e),e=e.left;else for(t.pop();0<t.length&&t[t.length-1].right===e;)e=t[t.length-1],t.pop()}},Object.defineProperty(i,"hasNext",{get:function(){var t=this._stack;if(0===t.length)return!1;if(t[t.length-1].right)return!0;for(var e=t.length-1;0<e;--e)if(t[e-1].left===t[e])return!0;return!1}}),i.update=function(t){var e=this._stack;if(0===e.length)throw new Error("Can't update empty node!");var r=new Array(e.length),n=e[e.length-1];r[r.length-1]=new d(n._color,n.key,t,n.left,n.right,n._count);for(var i=e.length-2;0<=i;--i)(n=e[i]).left===e[i+1]?r[i]=new d(n._color,n.key,n.value,r[i+1],n.right,n._count):r[i]=new d(n._color,n.key,n.value,n.left,r[i+1],n._count);return new v(this.tree._compare,r[0])},i.prev=function(){var t=this._stack;if(0!==t.length){var e=t[t.length-1];if(e.left)for(e=e.left;e;)t.push(e),e=e.right;else for(t.pop();0<t.length&&t[t.length-1].left===e;)e=t[t.length-1],t.pop()}},Object.defineProperty(i,"hasPrev",{get:function(){var t=this._stack;if(0===t.length)return!1;if(t[t.length-1].left)return!0;for(var e=t.length-1;0<e;--e)if(t[e-1].right===t[e])return!0;return!1}})},{}],16:[function(t,e,r){r.read=function(t,e,r,n,i){var o,a,s=8*i-n-1,u=(1<<s)-1,f=u>>1,c=-7,l=r?i-1:0,h=r?-1:1,p=t[e+l];for(l+=h,o=p&(1<<-c)-1,p>>=-c,c+=s;0<c;o=256*o+t[e+l],l+=h,c-=8);for(a=o&(1<<-c)-1,o>>=-c,c+=n;0<c;a=256*a+t[e+l],l+=h,c-=8);if(0===o)o=1-f;else{if(o===u)return a?NaN:1/0*(p?-1:1);a+=Math.pow(2,n),o-=f}return(p?-1:1)*a*Math.pow(2,o-n)},r.write=function(t,e,r,n,i,o){var a,s,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,p=n?0:o-1,d=n?1:-1,g=e<0||0===e&&1/e<0?1:0;for(e=Math.abs(e),isNaN(e)||e===1/0?(s=isNaN(e)?1:0,a=c):(a=Math.floor(Math.log(e)/Math.LN2),e*(u=Math.pow(2,-a))<1&&(a--,u*=2),2<=(e+=1<=a+l?h/u:h*Math.pow(2,1-l))*u&&(a++,u/=2),c<=a+l?(s=0,a=c):1<=a+l?(s=(e*u-1)*Math.pow(2,i),a+=l):(s=e*Math.pow(2,l-1)*Math.pow(2,i),a=0));8<=i;t[r+p]=255&s,p+=d,s/=256,i-=8);for(a=a<<i|s,f+=i;0<f;t[r+p]=255&a,p+=d,a/=256,f-=8);t[r+p-d]|=128*g}},{}],17:[function(t,c,e){(function(e){"use strict";var r,n,t=e.MutationObserver||e.WebKitMutationObserver;if(t){var i=0,o=new t(f),a=e.document.createTextNode("");o.observe(a,{characterData:!0}),r=function(){a.data=i=++i%2}}else if(e.setImmediate||void 0===e.MessageChannel)r="document"in e&&"onreadystatechange"in e.document.createElement("script")?function(){var t=e.document.createElement("script");t.onreadystatechange=function(){f(),t.onreadystatechange=null,t.parentNode.removeChild(t),t=null},e.document.documentElement.appendChild(t)}:function(){setTimeout(f,0)};else{var s=new e.MessageChannel;s.port1.onmessage=f,r=function(){s.port2.postMessage(0)}}var u=[];function f(){var t,e;n=!0;for(var r=u.length;r;){for(e=u,u=[],t=-1;++t<r;)e[t]();r=u.length}n=!1}c.exports=function(t){1!==u.push(t)||n||r()}}).call(this,"undefined"!=typeof global?global:"undefined"!=typeof self?self:"undefined"!=typeof window?window:{})},{}],18:[function(t,e,r){arguments[4][3][0].apply(r,arguments)},{3:3}],19:[function(t,e,r){function n(t){return!!t.constructor&&"function"==typeof t.constructor.isBuffer&&t.constructor.isBuffer(t)}e.exports=function(t){return null!=t&&(n(t)||"function"==typeof(e=t).readFloatLE&&"function"==typeof e.slice&&n(e.slice(0,0))||!!t._isBuffer);var e}},{}],20:[function(t,e,r){var n={}.toString;e.exports=Array.isArray||function(t){return"[object Array]"==n.call(t)}},{}],21:[function(t,e,r){var n=t(22);function i(t){this.opts=t||{},this.encodings=n}(e.exports=i).prototype._encoding=function(t){return"string"==typeof t&&(t=n[t]),t||(t=n.id),t},i.prototype._keyEncoding=function(t,e){return this._encoding(e&&e.keyEncoding||t&&t.keyEncoding||this.opts.keyEncoding)},i.prototype._valueEncoding=function(t,e){return this._encoding(e&&(e.valueEncoding||e.encoding)||t&&(t.valueEncoding||t.encoding)||this.opts.valueEncoding||this.opts.encoding)},i.prototype.encodeKey=function(t,e,r){return this._keyEncoding(e,r).encode(t)},i.prototype.encodeValue=function(t,e,r){return this._valueEncoding(e,r).encode(t)},i.prototype.decodeKey=function(t,e){return this._keyEncoding(e).decode(t)},i.prototype.decodeValue=function(t,e){return this._valueEncoding(e).decode(t)},i.prototype.encodeBatch=function(t,r){var n=this;return t.map(function(t){var e={type:t.type,key:n.encodeKey(t.key,r,t)};return n.keyAsBuffer(r,t)&&(e.keyEncoding="binary"),t.prefix&&(e.prefix=t.prefix),"value"in t&&(e.value=n.encodeValue(t.value,r,t),n.valueAsBuffer(r,t)&&(e.valueEncoding="binary")),e})};var o=["lt","gt","lte","gte","start","end"];i.prototype.encodeLtgt=function(e){var r=this,n={};return Object.keys(e).forEach(function(t){n[t]=-1<o.indexOf(t)?r.encodeKey(e[t],e):e[t]}),n},i.prototype.createStreamDecoder=function(r){var n=this;return r.keys&&r.values?function(t,e){return{key:n.decodeKey(t,r),value:n.decodeValue(e,r)}}:r.keys?function(t){return n.decodeKey(t,r)}:r.values?function(t,e){return n.decodeValue(e,r)}:function(){}},i.prototype.keyAsBuffer=function(t){return this._keyEncoding(t).buffer},i.prototype.valueAsBuffer=function(t){return this._valueEncoding(t).buffer}},{22:22}],22:[function(t,e,i){(function(r){i.utf8=i["utf-8"]={encode:function(t){return n(t)?t:String(t)},decode:function(t){return"string"==typeof t?t:String(t)},buffer:!1,type:"utf8"},i.json={encode:JSON.stringify,decode:JSON.parse,buffer:!1,type:"json"},i.binary={encode:function(t){return n(t)?t:new r(t)},decode:t,buffer:!0,type:"binary"},i.none={encode:t,decode:t,buffer:!1,type:"id"},i.id=i.none;function t(t){return t}function n(t){return null==t||r.isBuffer(t)}["hex","ascii","base64","ucs2","ucs-2","utf16le","utf-16le"].forEach(function(e){i[e]={encode:function(t){return n(t)?t:new r(t,e)},decode:function(t){return t.toString(e)},buffer:!0,type:e}})}).call(this,t(9).Buffer)},{9:9}],23:[function(t,e,r){var n=t(18),i=t(32).Readable,o=t(33);function a(t,e){if(!(this instanceof a))return new a(t,e);e=e||{},i.call(this,o(e,{objectMode:!0})),this._iterator=t,this._destroyed=!1,this._options=e,this.on("end",this._cleanup.bind(this))}n(e.exports=a,i),a.prototype._read=function(){var n=this,i=this._options;this._destroyed||this._iterator.next(function(t,e,r){if(!n._destroyed)return t?n.emit("error",t):void(void 0===e&&void 0===r?n.push(null):!1!==i.keys&&!1===i.values?n.push(e):!1===i.keys&&!1!==i.values?n.push(r):n.push({key:e,value:r}))})},a.prototype.destroy=a.prototype._cleanup=function(){var e=this;this._destroyed||(this._destroyed=!0,this._iterator.end(function(t){if(t)return e.emit("error",t);e.emit("close")}))}},{18:18,32:32,33:33}],24:[function(t,e,r){"use strict";var n=t(61),i=Object.keys||function(t){var e=[];for(var r in t)e.push(r);return e};e.exports=l;var o=t(10);o.inherits=t(18);var a=t(26),s=t(28);o.inherits(l,a);for(var u=i(s.prototype),f=0;f<u.length;f++){var c=u[f];l.prototype[c]||(l.prototype[c]=s.prototype[c])}function l(t){if(!(this instanceof l))return new l(t);a.call(this,t),s.call(this,t),t&&!1===t.readable&&(this.readable=!1),t&&!1===t.writable&&(this.writable=!1),this.allowHalfOpen=!0,t&&!1===t.allowHalfOpen&&(this.allowHalfOpen=!1),this.once("end",h)}function h(){this.allowHalfOpen||this._writableState.ended||n.nextTick(p,this)}function p(t){t.end()}Object.defineProperty(l.prototype,"writableHighWaterMark",{enumerable:!1,get:function(){return this._writableState.highWaterMark}}),Object.defineProperty(l.prototype,"destroyed",{get:function(){return void 0!==this._readableState&&void 0!==this._writableState&&(this._readableState.destroyed&&this._writableState.destroyed)},set:function(t){void 0!==this._readableState&&void 0!==this._writableState&&(this._readableState.destroyed=t,this._writableState.destroyed=t)}}),l.prototype._destroy=function(t,e){this.push(null),this.end(),n.nextTick(e,t)}},{10:10,18:18,26:26,28:28,61:61}],25:[function(t,e,r){"use strict";e.exports=o;var n=t(27),i=t(10);function o(t){if(!(this instanceof o))return new o(t);n.call(this,t)}i.inherits=t(18),i.inherits(o,n),o.prototype._transform=function(t,e,r){r(null,t)}},{10:10,18:18,27:27}],26:[function(M,R,t){(function(y,t){"use strict";var v=M(61);R.exports=h;var a,_=M(20);h.ReadableState=o;M(14).EventEmitter;var b=function(t,e){return t.listeners(e).length},i=M(31),f=M(72).Buffer,c=t.Uint8Array||function(){};var e=M(10);e.inherits=M(18);var r=M(7),m=void 0;m=r&&r.debuglog?r.debuglog("stream"):function(){};var s,u=M(29),n=M(30);e.inherits(h,i);var l=["error","close","destroy","pause","resume"];function o(t,e){t=t||{};var r=e instanceof(a=a||M(24));this.objectMode=!!t.objectMode,r&&(this.objectMode=this.objectMode||!!t.readableObjectMode);var n=t.highWaterMark,i=t.readableHighWaterMark,o=this.objectMode?16:16384;this.highWaterMark=n||0===n?n:r&&(i||0===i)?i:o,this.highWaterMark=Math.floor(this.highWaterMark),this.buffer=new u,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.resumeScheduled=!1,this.destroyed=!1,this.defaultEncoding=t.defaultEncoding||"utf8",this.awaitDrain=0,this.readingMore=!1,this.decoder=null,this.encoding=null,t.encoding&&(s||(s=M(88).StringDecoder),this.decoder=new s(t.encoding),this.encoding=t.encoding)}function h(t){if(a=a||M(24),!(this instanceof h))return new h(t);this._readableState=new o(t,this),this.readable=!0,t&&("function"==typeof t.read&&(this._read=t.read),"function"==typeof t.destroy&&(this._destroy=t.destroy)),i.call(this)}function p(t,e,r,n,i){var o,a,s,u=t._readableState;null===e?(u.reading=!1,function(t,e){if(e.ended)return;if(e.decoder){var r=e.decoder.end();r&&r.length&&(e.buffer.push(r),e.length+=e.objectMode?1:r.length)}e.ended=!0,E(t)}(t,u)):(i||(o=function(t,e){var r;n=e,f.isBuffer(n)||n instanceof c||"string"==typeof e||void 0===e||t.objectMode||(r=new TypeError("Invalid non-string/buffer chunk"));var n;return r}(u,e)),o?t.emit("error",o):u.objectMode||e&&0<e.length?("string"==typeof e||u.objectMode||Object.getPrototypeOf(e)===f.prototype||(a=e,e=f.from(a)),n?u.endEmitted?t.emit("error",new Error("stream.unshift() after end event")):d(t,u,e,!0):u.ended?t.emit("error",new Error("stream.push() after EOF")):(u.reading=!1,u.decoder&&!r?(e=u.decoder.write(e),u.objectMode||0!==e.length?d(t,u,e,!1):S(t,u)):d(t,u,e,!1))):n||(u.reading=!1));return!(s=u).ended&&(s.needReadable||s.length<s.highWaterMark||0===s.length)}function d(t,e,r,n){e.flowing&&0===e.length&&!e.sync?(t.emit("data",r),t.read(0)):(e.length+=e.objectMode?1:r.length,n?e.buffer.unshift(r):e.buffer.push(r),e.needReadable&&E(t)),S(t,e)}Object.defineProperty(h.prototype,"destroyed",{get:function(){return void 0!==this._readableState&&this._readableState.destroyed},set:function(t){this._readableState&&(this._readableState.destroyed=t)}}),h.prototype.destroy=n.destroy,h.prototype._undestroy=n.undestroy,h.prototype._destroy=function(t,e){this.push(null),e(t)},h.prototype.push=function(t,e){var r,n=this._readableState;return n.objectMode?r=!0:"string"==typeof t&&((e=e||n.defaultEncoding)!==n.encoding&&(t=f.from(t,e),e=""),r=!0),p(this,t,e,!1,r)},h.prototype.unshift=function(t){return p(this,t,null,!0,!1)},h.prototype.isPaused=function(){return!1===this._readableState.flowing},h.prototype.setEncoding=function(t){return s||(s=M(88).StringDecoder),this._readableState.decoder=new s(t),this._readableState.encoding=t,this};var g=8388608;function w(t,e){return t<=0||0===e.length&&e.ended?0:e.objectMode?1:t!=t?e.flowing&&e.length?e.buffer.head.data.length:e.length:(t>e.highWaterMark&&(e.highWaterMark=(g<=(r=t)?r=g:(r--,r|=r>>>1,r|=r>>>2,r|=r>>>4,r|=r>>>8,r|=r>>>16,r++),r)),t<=e.length?t:e.ended?e.length:(e.needReadable=!0,0));var r}function E(t){var e=t._readableState;e.needReadable=!1,e.emittedReadable||(m("emitReadable",e.flowing),e.emittedReadable=!0,e.sync?v.nextTick(k,t):k(t))}function k(t){m("emit readable"),t.emit("readable"),A(t)}function S(t,e){e.readingMore||(e.readingMore=!0,v.nextTick(x,t,e))}function x(t,e){for(var r=e.length;!e.reading&&!e.flowing&&!e.ended&&e.length<e.highWaterMark&&(m("maybeReadMore read 0"),t.read(0),r!==e.length);)r=e.length;e.readingMore=!1}function B(t){m("readable nexttick read 0"),t.read(0)}function O(t,e){e.reading||(m("resume read 0"),t.read(0)),e.resumeScheduled=!1,e.awaitDrain=0,t.emit("resume"),A(t),e.flowing&&!e.reading&&t.read(0)}function A(t){var e=t._readableState;for(m("flow",e.flowing);e.flowing&&null!==t.read(););}function T(t,e){return 0===e.length?null:(e.objectMode?r=e.buffer.shift():!t||t>=e.length?(r=e.decoder?e.buffer.join(""):1===e.buffer.length?e.buffer.head.data:e.buffer.concat(e.length),e.buffer.clear()):r=function(t,e,r){var n;t<e.head.data.length?(n=e.head.data.slice(0,t),e.head.data=e.head.data.slice(t)):n=t===e.head.data.length?e.shift():r?function(t,e){var r=e.head,n=1,i=r.data;t-=i.length;for(;r=r.next;){var o=r.data,a=t>o.length?o.length:t;if(a===o.length?i+=o:i+=o.slice(0,t),0===(t-=a)){a===o.length?(++n,r.next?e.head=r.next:e.head=e.tail=null):(e.head=r).data=o.slice(a);break}++n}return e.length-=n,i}(t,e):function(t,e){var r=f.allocUnsafe(t),n=e.head,i=1;n.data.copy(r),t-=n.data.length;for(;n=n.next;){var o=n.data,a=t>o.length?o.length:t;if(o.copy(r,r.length-t,0,a),0===(t-=a)){a===o.length?(++i,n.next?e.head=n.next:e.head=e.tail=null):(e.head=n).data=o.slice(a);break}++i}return e.length-=i,r}(t,e);return n}(t,e.buffer,e.decoder),r);var r}function j(t){var e=t._readableState;if(0<e.length)throw new Error('"endReadable()" called on non-empty stream');e.endEmitted||(e.ended=!0,v.nextTick(L,e,t))}function L(t,e){t.endEmitted||0!==t.length||(t.endEmitted=!0,e.readable=!1,e.emit("end"))}function C(t,e){for(var r=0,n=t.length;r<n;r++)if(t[r]===e)return r;return-1}h.prototype.read=function(t){m("read",t),t=parseInt(t,10);var e=this._readableState,r=t;if(0!==t&&(e.emittedReadable=!1),0===t&&e.needReadable&&(e.length>=e.highWaterMark||e.ended))return m("read: emitReadable",e.length,e.ended),0===e.length&&e.ended?j(this):E(this),null;if(0===(t=w(t,e))&&e.ended)return 0===e.length&&j(this),null;var n,i=e.needReadable;return m("need readable",i),(0===e.length||e.length-t<e.highWaterMark)&&m("length less than watermark",i=!0),e.ended||e.reading?m("reading or ended",i=!1):i&&(m("do read"),e.reading=!0,e.sync=!0,0===e.length&&(e.needReadable=!0),this._read(e.highWaterMark),e.sync=!1,e.reading||(t=w(r,e))),null===(n=0<t?T(t,e):null)?(e.needReadable=!0,t=0):e.length-=t,0===e.length&&(e.ended||(e.needReadable=!0),r!==t&&e.ended&&j(this)),null!==n&&this.emit("data",n),n},h.prototype._read=function(t){this.emit("error",new Error("_read() is not implemented"))},h.prototype.pipe=function(r,t){var n=this,i=this._readableState;switch(i.pipesCount){case 0:i.pipes=r;break;case 1:i.pipes=[i.pipes,r];break;default:i.pipes.push(r)}i.pipesCount+=1,m("pipe count=%d opts=%j",i.pipesCount,t);var e=(!t||!1!==t.end)&&r!==y.stdout&&r!==y.stderr?a:g;function o(t,e){m("onunpipe"),t===n&&e&&!1===e.hasUnpiped&&(e.hasUnpiped=!0,m("cleanup"),r.removeListener("close",p),r.removeListener("finish",d),r.removeListener("drain",u),r.removeListener("error",h),r.removeListener("unpipe",o),n.removeListener("end",a),n.removeListener("end",g),n.removeListener("data",l),f=!0,!i.awaitDrain||r._writableState&&!r._writableState.needDrain||u())}function a(){m("onend"),r.end()}i.endEmitted?v.nextTick(e):n.once("end",e),r.on("unpipe",o);var s,u=(s=n,function(){var t=s._readableState;m("pipeOnDrain",t.awaitDrain),t.awaitDrain&&t.awaitDrain--,0===t.awaitDrain&&b(s,"data")&&(t.flowing=!0,A(s))});r.on("drain",u);var f=!1;var c=!1;function l(t){m("ondata"),(c=!1)!==r.write(t)||c||((1===i.pipesCount&&i.pipes===r||1<i.pipesCount&&-1!==C(i.pipes,r))&&!f&&(m("false write response, pause",n._readableState.awaitDrain),n._readableState.awaitDrain++,c=!0),n.pause())}function h(t){m("onerror",t),g(),r.removeListener("error",h),0===b(r,"error")&&r.emit("error",t)}function p(){r.removeListener("finish",d),g()}function d(){m("onfinish"),r.removeListener("close",p),g()}function g(){m("unpipe"),n.unpipe(r)}return n.on("data",l),function(t,e,r){if("function"==typeof t.prependListener)return t.prependListener(e,r);t._events&&t._events[e]?_(t._events[e])?t._events[e].unshift(r):t._events[e]=[r,t._events[e]]:t.on(e,r)}(r,"error",h),r.once("close",p),r.once("finish",d),r.emit("pipe",n),i.flowing||(m("pipe resume"),n.resume()),r},h.prototype.unpipe=function(t){var e=this._readableState,r={hasUnpiped:!1};if(0===e.pipesCount)return this;if(1===e.pipesCount)return t&&t!==e.pipes||(t||(t=e.pipes),e.pipes=null,e.pipesCount=0,e.flowing=!1,t&&t.emit("unpipe",this,r)),this;if(!t){var n=e.pipes,i=e.pipesCount;e.pipes=null,e.pipesCount=0,e.flowing=!1;for(var o=0;o<i;o++)n[o].emit("unpipe",this,r);return this}var a=C(e.pipes,t);return-1===a||(e.pipes.splice(a,1),e.pipesCount-=1,1===e.pipesCount&&(e.pipes=e.pipes[0]),t.emit("unpipe",this,r)),this},h.prototype.addListener=h.prototype.on=function(t,e){var r=i.prototype.on.call(this,t,e);if("data"===t)!1!==this._readableState.flowing&&this.resume();else if("readable"===t){var n=this._readableState;n.endEmitted||n.readableListening||(n.readableListening=n.needReadable=!0,n.emittedReadable=!1,n.reading?n.length&&E(this):v.nextTick(B,this))}return r},h.prototype.resume=function(){var t,e,r=this._readableState;return r.flowing||(m("resume"),r.flowing=!0,t=this,(e=r).resumeScheduled||(e.resumeScheduled=!0,v.nextTick(O,t,e))),this},h.prototype.pause=function(){return m("call pause flowing=%j",this._readableState.flowing),!1!==this._readableState.flowing&&(m("pause"),this._readableState.flowing=!1,this.emit("pause")),this},h.prototype.wrap=function(e){var r=this,n=this._readableState,i=!1;for(var t in e.on("end",function(){if(m("wrapped end"),n.decoder&&!n.ended){var t=n.decoder.end();t&&t.length&&r.push(t)}r.push(null)}),e.on("data",function(t){(m("wrapped data"),n.decoder&&(t=n.decoder.write(t)),n.objectMode&&null==t)||(n.objectMode||t&&t.length)&&(r.push(t)||(i=!0,e.pause()))}),e)void 0===this[t]&&"function"==typeof e[t]&&(this[t]=function(t){return function(){return e[t].apply(e,arguments)}}(t));for(var o=0;o<l.length;o++)e.on(l[o],this.emit.bind(this,l[o]));return this._read=function(t){m("wrapped _read",t),i&&(i=!1,e.resume())},this},Object.defineProperty(h.prototype,"readableHighWaterMark",{enumerable:!1,get:function(){return this._readableState.highWaterMark}}),h._fromList=T}).call(this,M(62),"undefined"!=typeof global?global:"undefined"!=typeof self?self:"undefined"!=typeof window?window:{})},{10:10,14:14,18:18,20:20,24:24,29:29,30:30,31:31,61:61,62:62,7:7,72:72,88:88}],27:[function(t,e,r){"use strict";e.exports=o;var n=t(24),i=t(10);function o(t){if(!(this instanceof o))return new o(t);n.call(this,t),this._transformState={afterTransform:function(t,e){var r=this._transformState;r.transforming=!1;var n=r.writecb;if(!n)return this.emit("error",new Error("write callback called multiple times"));r.writechunk=null,(r.writecb=null)!=e&&this.push(e),n(t);var i=this._readableState;i.reading=!1,(i.needReadable||i.length<i.highWaterMark)&&this._read(i.highWaterMark)}.bind(this),needTransform:!1,transforming:!1,writecb:null,writechunk:null,writeencoding:null},this._readableState.needReadable=!0,this._readableState.sync=!1,t&&("function"==typeof t.transform&&(this._transform=t.transform),"function"==typeof t.flush&&(this._flush=t.flush)),this.on("prefinish",a)}function a(){var r=this;"function"==typeof this._flush?this._flush(function(t,e){s(r,t,e)}):s(this,null,null)}function s(t,e,r){if(e)return t.emit("error",e);if(null!=r&&t.push(r),t._writableState.length)throw new Error("Calling transform done when ws.length != 0");if(t._transformState.transforming)throw new Error("Calling transform done when still transforming");return t.push(null)}i.inherits=t(18),i.inherits(o,n),o.prototype.push=function(t,e){return this._transformState.needTransform=!1,n.prototype.push.call(this,t,e)},o.prototype._transform=function(t,e,r){throw new Error("_transform() is not implemented")},o.prototype._write=function(t,e,r){var n=this._transformState;if(n.writecb=r,n.writechunk=t,n.writeencoding=e,!n.transforming){var i=this._readableState;(n.needTransform||i.needReadable||i.length<i.highWaterMark)&&this._read(i.highWaterMark)}},o.prototype._read=function(t){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},o.prototype._destroy=function(t,e){var r=this;n.prototype._destroy.call(this,t,function(t){e(t),r.emit("close")})}},{10:10,18:18,24:24}],28:[function(k,S,t){(function(t,e,r){"use strict";var v=k(61);function l(t){var e=this;this.next=null,this.entry=null,this.finish=function(){!function(t,e,r){var n=t.entry;t.entry=null;for(;n;){var i=n.callback;e.pendingcb--,i(r),n=n.next}e.corkedRequestsFree?e.corkedRequestsFree.next=t:e.corkedRequestsFree=t}(e,t)}}S.exports=c;var s,h=!t.browser&&-1<["v0.10","v0.9."].indexOf(t.version.slice(0,5))?r:v.nextTick;c.WritableState=f;var n=k(10);n.inherits=k(18);var i={deprecate:k(102)},o=k(31),_=k(72).Buffer,b=e.Uint8Array||function(){};var a,u=k(30);function m(){}function f(t,e){s=s||k(24),t=t||{};var r=e instanceof s;this.objectMode=!!t.objectMode,r&&(this.objectMode=this.objectMode||!!t.writableObjectMode);var n=t.highWaterMark,i=t.writableHighWaterMark,o=this.objectMode?16:16384;this.highWaterMark=n||0===n?n:r&&(i||0===i)?i:o,this.highWaterMark=Math.floor(this.highWaterMark),this.finalCalled=!1,this.needDrain=!1,this.ending=!1,this.ended=!1,this.finished=!1;var a=(this.destroyed=!1)===t.decodeStrings;this.decodeStrings=!a,this.defaultEncoding=t.defaultEncoding||"utf8",this.length=0,this.writing=!1,this.corked=0,this.sync=!0,this.bufferProcessing=!1,this.onwrite=function(t){!function(t,e){var r=t._writableState,n=r.sync,i=r.writecb;if(l=r,l.writing=!1,l.writecb=null,l.length-=l.writelen,l.writelen=0,e)a=t,s=r,u=n,f=e,c=i,--s.pendingcb,u?(v.nextTick(c,f),v.nextTick(E,a,s),a._writableState.errorEmitted=!0,a.emit("error",f)):(c(f),a._writableState.errorEmitted=!0,a.emit("error",f),E(a,s));else{var o=g(r);o||r.corked||r.bufferProcessing||!r.bufferedRequest||d(t,r),n?h(p,t,r,o,i):p(t,r,o,i)}var a,s,u,f,c;var l}(e,t)},this.writecb=null,this.writelen=0,this.bufferedRequest=null,this.lastBufferedRequest=null,this.pendingcb=0,this.prefinished=!1,this.errorEmitted=!1,this.bufferedRequestCount=0,this.corkedRequestsFree=new l(this)}function c(t){if(s=s||k(24),!(a.call(c,this)||this instanceof s))return new c(t);this._writableState=new f(t,this),this.writable=!0,t&&("function"==typeof t.write&&(this._write=t.write),"function"==typeof t.writev&&(this._writev=t.writev),"function"==typeof t.destroy&&(this._destroy=t.destroy),"function"==typeof t.final&&(this._final=t.final)),o.call(this)}function w(t,e,r,n,i,o,a){e.writelen=n,e.writecb=a,e.writing=!0,e.sync=!0,r?t._writev(i,e.onwrite):t._write(i,o,e.onwrite),e.sync=!1}function p(t,e,r,n){var i,o;r||(i=t,0===(o=e).length&&o.needDrain&&(o.needDrain=!1,i.emit("drain"))),e.pendingcb--,n(),E(t,e)}function d(t,e){e.bufferProcessing=!0;var r=e.bufferedRequest;if(t._writev&&r&&r.next){var n=e.bufferedRequestCount,i=new Array(n),o=e.corkedRequestsFree;o.entry=r;for(var a=0,s=!0;r;)(i[a]=r).isBuf||(s=!1),r=r.next,a+=1;i.allBuffers=s,w(t,e,!0,e.length,i,"",o.finish),e.pendingcb++,e.lastBufferedRequest=null,o.next?(e.corkedRequestsFree=o.next,o.next=null):e.corkedRequestsFree=new l(e),e.bufferedRequestCount=0}else{for(;r;){var u=r.chunk,f=r.encoding,c=r.callback;if(w(t,e,!1,e.objectMode?1:u.length,u,f,c),r=r.next,e.bufferedRequestCount--,e.writing)break}null===r&&(e.lastBufferedRequest=null)}e.bufferedRequest=r,e.bufferProcessing=!1}function g(t){return t.ending&&0===t.length&&null===t.bufferedRequest&&!t.finished&&!t.writing}function y(e,r){e._final(function(t){r.pendingcb--,t&&e.emit("error",t),r.prefinished=!0,e.emit("prefinish"),E(e,r)})}function E(t,e){var r,n,i=g(e);return i&&(r=t,(n=e).prefinished||n.finalCalled||("function"==typeof r._final?(n.pendingcb++,n.finalCalled=!0,v.nextTick(y,r,n)):(n.prefinished=!0,r.emit("prefinish"))),0===e.pendingcb&&(e.finished=!0,t.emit("finish"))),i}n.inherits(c,o),f.prototype.getBuffer=function(){for(var t=this.bufferedRequest,e=[];t;)e.push(t),t=t.next;return e},function(){try{Object.defineProperty(f.prototype,"buffer",{get:i.deprecate(function(){return this.getBuffer()},"_writableState.buffer is deprecated. Use _writableState.getBuffer instead.","DEP0003")})}catch(t){}}(),"function"==typeof Symbol&&Symbol.hasInstance&&"function"==typeof Function.prototype[Symbol.hasInstance]?(a=Function.prototype[Symbol.hasInstance],Object.defineProperty(c,Symbol.hasInstance,{value:function(t){return!!a.call(this,t)||this===c&&(t&&t._writableState instanceof f)}})):a=function(t){return t instanceof this},c.prototype.pipe=function(){this.emit("error",new Error("Cannot pipe, not readable"))},c.prototype.write=function(t,e,r){var n,i,o,a,s,u,f,c,l,h,p,d=this._writableState,g=!1,y=!d.objectMode&&(n=t,_.isBuffer(n)||n instanceof b);return y&&!_.isBuffer(t)&&(i=t,t=_.from(i)),"function"==typeof e&&(r=e,e=null),y?e="buffer":e||(e=d.defaultEncoding),"function"!=typeof r&&(r=m),d.ended?(l=this,h=r,p=new Error("write after end"),l.emit("error",p),v.nextTick(h,p)):(y||(o=this,a=d,u=r,c=!(f=!0),null===(s=t)?c=new TypeError("May not write null values to stream"):"string"==typeof s||void 0===s||a.objectMode||(c=new TypeError("Invalid non-string/buffer chunk")),c&&(o.emit("error",c),v.nextTick(u,c),f=!1),f))&&(d.pendingcb++,g=function(t,e,r,n,i,o){if(!r){var a=function(t,e,r){t.objectMode||!1===t.decodeStrings||"string"!=typeof e||(e=_.from(e,r));return e}(e,n,i);n!==a&&(r=!0,i="buffer",n=a)}var s=e.objectMode?1:n.length;e.length+=s;var u=e.length<e.highWaterMark;u||(e.needDrain=!0);if(e.writing||e.corked){var f=e.lastBufferedRequest;e.lastBufferedRequest={chunk:n,encoding:i,isBuf:r,callback:o,next:null},f?f.next=e.lastBufferedRequest:e.bufferedRequest=e.lastBufferedRequest,e.bufferedRequestCount+=1}else w(t,e,!1,s,n,i,o);return u}(this,d,y,t,e,r)),g},c.prototype.cork=function(){this._writableState.corked++},c.prototype.uncork=function(){var t=this._writableState;t.corked&&(t.corked--,t.writing||t.corked||t.finished||t.bufferProcessing||!t.bufferedRequest||d(this,t))},c.prototype.setDefaultEncoding=function(t){if("string"==typeof t&&(t=t.toLowerCase()),!(-1<["hex","utf8","utf-8","ascii","binary","base64","ucs2","ucs-2","utf16le","utf-16le","raw"].indexOf((t+"").toLowerCase())))throw new TypeError("Unknown encoding: "+t);return this._writableState.defaultEncoding=t,this},Object.defineProperty(c.prototype,"writableHighWaterMark",{enumerable:!1,get:function(){return this._writableState.highWaterMark}}),c.prototype._write=function(t,e,r){r(new Error("_write() is not implemented"))},c.prototype._writev=null,c.prototype.end=function(t,e,r){var n=this._writableState;"function"==typeof t?(r=t,e=t=null):"function"==typeof e&&(r=e,e=null),null!=t&&this.write(t,e),n.corked&&(n.corked=1,this.uncork()),n.ending||n.finished||function(t,e,r){e.ending=!0,E(t,e),r&&(e.finished?v.nextTick(r):t.once("finish",r));e.ended=!0,t.writable=!1}(this,n,r)},Object.defineProperty(c.prototype,"destroyed",{get:function(){return void 0!==this._writableState&&this._writableState.destroyed},set:function(t){this._writableState&&(this._writableState.destroyed=t)}}),c.prototype.destroy=u.destroy,c.prototype._undestroy=u.undestroy,c.prototype._destroy=function(t,e){this.end(),e(t)}}).call(this,k(62),"undefined"!=typeof global?global:"undefined"!=typeof self?self:"undefined"!=typeof window?window:{},k(101).setImmediate)},{10:10,101:101,102:102,18:18,24:24,30:30,31:31,61:61,62:62,72:72}],29:[function(t,e,r){"use strict";var s=t(72).Buffer,n=t(7);e.exports=function(){function t(){!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,t),this.head=null,this.tail=null,this.length=0}return t.prototype.push=function(t){var e={data:t,next:null};0<this.length?this.tail.next=e:this.head=e,this.tail=e,++this.length},t.prototype.unshift=function(t){var e={data:t,next:this.head};0===this.length&&(this.tail=e),this.head=e,++this.length},t.prototype.shift=function(){if(0!==this.length){var t=this.head.data;return 1===this.length?this.head=this.tail=null:this.head=this.head.next,--this.length,t}},t.prototype.clear=function(){this.head=this.tail=null,this.length=0},t.prototype.join=function(t){if(0===this.length)return"";for(var e=this.head,r=""+e.data;e=e.next;)r+=t+e.data;return r},t.prototype.concat=function(t){if(0===this.length)return s.alloc(0);if(1===this.length)return this.head.data;for(var e,r,n,i=s.allocUnsafe(t>>>0),o=this.head,a=0;o;)e=o.data,r=i,n=a,e.copy(r,n),a+=o.data.length,o=o.next;return i},t}(),n&&n.inspect&&n.inspect.custom&&(e.exports.prototype[n.inspect.custom]=function(){var t=n.inspect({length:this.length});return this.constructor.name+" "+t})},{7:7,72:72}],30:[function(t,e,r){"use strict";var o=t(61);function a(t,e){t.emit("error",e)}e.exports={destroy:function(t,e){var r=this,n=this._readableState&&this._readableState.destroyed,i=this._writableState&&this._writableState.destroyed;return n||i?e?e(t):!t||this._writableState&&this._writableState.errorEmitted||o.nextTick(a,this,t):(this._readableState&&(this._readableState.destroyed=!0),this._writableState&&(this._writableState.destroyed=!0),this._destroy(t||null,function(t){!e&&t?(o.nextTick(a,r,t),r._writableState&&(r._writableState.errorEmitted=!0)):e&&e(t)})),this},undestroy:function(){this._readableState&&(this._readableState.destroyed=!1,this._readableState.reading=!1,this._readableState.ended=!1,this._readableState.endEmitted=!1),this._writableState&&(this._writableState.destroyed=!1,this._writableState.ended=!1,this._writableState.ending=!1,this._writableState.finished=!1,this._writableState.errorEmitted=!1)}}},{61:61}],31:[function(t,e,r){e.exports=t(14).EventEmitter},{14:14}],32:[function(t,e,r){(((r=e.exports=t(26)).Stream=r).Readable=r).Writable=t(28),r.Duplex=t(24),r.Transform=t(27),r.PassThrough=t(25)},{24:24,25:25,26:26,27:27,28:28}],33:[function(t,e,r){e.exports=function(){for(var t={},e=0;e<arguments.length;e++){var r=arguments[e];for(var n in r)i.call(r,n)&&(t[n]=r[n])}return t};var i=Object.prototype.hasOwnProperty},{}],34:[function(t,e,r){var i=t(43).WriteError,o=t(36);function n(t){this._levelup=t,this.batch=t.db.batch(),this.ops=[],this.length=0}n.prototype.put=function(t,e){try{this.batch.put(t,e)}catch(t){throw new i(t)}return this.ops.push({type:"put",key:t,value:e}),this.length++,this},n.prototype.del=function(t){try{this.batch.del(t)}catch(t){throw new i(t)}return this.ops.push({type:"del",key:t}),this.length++,this},n.prototype.clear=function(){try{this.batch.clear()}catch(t){throw new i(t)}return this.ops=[],this.length=0,this},n.prototype.write=function(e){var t,r=this._levelup,n=this.ops;e||(t=(e=o()).promise);try{this.batch.write(function(t){if(t)return e(new i(t));r.emit("batch",n),e()})}catch(t){throw new i(t)}return t},e.exports=n},{36:36,43:43}],35:[function(b,m,t){(function(i){var o=b(14).EventEmitter,t=b(104).inherits,e=b(44),a=b(42),r=b(23),s=b(34),n=b(43),u=b(2),f=b(36),c=n.WriteError,l=n.ReadError,h=n.NotFoundError,p=n.OpenError,d=n.InitializationError;function g(t,e,r){if(!(this instanceof g))return new g(t,e,r);var n;if(o.call(this),this.setMaxListeners(1/0),"function"==typeof e&&(r=e,e={}),e=e||{},!t||"object"!=typeof t){if(n=new d("First argument must be an abstract-leveldown compliant store"),"function"==typeof r)return i.nextTick(r,n);throw n}u.equal(typeof t.status,"string",".status required, old abstract-leveldown"),this.options=v(e),this._db=t,this.db=new a(t),this.open(r)}function y(t,e){return"function"==typeof t?t:e}function v(t){return"object"==typeof t&&null!==t?t:{}}function _(t,e){if(!t._isOpening()&&!t.isOpen())return i.nextTick(e,new l("Database is not open")),!0}g.prototype.emit=o.prototype.emit,g.prototype.once=o.prototype.once,t(g,o),g.prototype.open=function(e){var t,r=this;return e||(t=(e=f()).promise),this.isOpen()?i.nextTick(e,null,r):this._isOpening()?this.once("open",function(){e(null,r)}):(this.emit("opening"),this.db.open(this.options,function(t){if(t)return e(new p(t));r.db=r._db,e(null,r),r.emit("open"),r.emit("ready")})),t},g.prototype.close=function(t){var e,r=this;return t||(e=(t=f()).promise),this.isOpen()?(this.db.close(function(){r.emit("closed"),t.apply(null,arguments)}),this.emit("closing"),this.db=new a(this._db)):this.isClosed()?i.nextTick(t):"closing"===this.db.status?this.once("closed",t):this._isOpening()&&this.once("open",function(){r.close(t)}),e},g.prototype.isOpen=function(){return"open"===this.db.status},g.prototype._isOpening=function(){return"opening"===this.db.status},g.prototype.isClosed=function(){return/^clos|new/.test(this.db.status)},g.prototype.get=function(r,t,n){if(null==r)throw new l("get() requires a key argument");var e;return(n=y(t,n))||(e=(n=f()).promise),_(this,n)||(t=v(t),this.db.get(r,t,function(t,e){if(t)return t=/notfound/i.test(t)||t.notFound?new h("Key not found in database ["+r+"]",t):new l(t),n(t);n(null,e)})),e},g.prototype.put=function(e,r,t,n){if(null==e)throw new c("put() requires a key argument");var i,o=this;return(n=y(t,n))||(i=(n=f()).promise),_(this,n)||(t=v(t),this.db.put(e,r,t,function(t){if(t)return n(new c(t));o.emit("put",e,r),n()})),i},g.prototype.del=function(e,t,r){if(null==e)throw new c("del() requires a key argument");var n,i=this;return(r=y(t,r))||(n=(r=f()).promise),_(this,r)||(t=v(t),this.db.del(e,t,function(t){if(t)return r(new c(t));i.emit("del",e),r()})),n},g.prototype.batch=function(e,t,r){if(!arguments.length)return new s(this);if(!Array.isArray(e))throw new c("batch() requires an array argument");var n,i=this;return(r=y(t,r))||(n=(r=f()).promise),_(this,r)||(t=v(t),this.db.batch(e,t,function(t){if(t)return r(new c(t));i.emit("batch",e),r()})),n},g.prototype.readStream=g.prototype.createReadStream=function(t){return"number"!=typeof(t=e({keys:!0,values:!0},t)).limit&&(t.limit=-1),new r(this.db.iterator(t),t)},g.prototype.keyStream=g.prototype.createKeyStream=function(t){return this.createReadStream(e(t,{keys:!0,values:!1}))},g.prototype.valueStream=g.prototype.createValueStream=function(t){return this.createReadStream(e(t,{keys:!1,values:!0}))},g.prototype.toString=function(){return"LevelUP"},g.errors=n,m.exports=g.default=g}).call(this,b(62))},{104:104,14:14,2:2,23:23,34:34,36:36,42:42,43:43,44:44,62:62}],36:[function(t,e,r){e.exports=function(){var t,e=new Promise(function(r,n){t=function(t,e){t?n(t):r(e)}});return t.promise=e,t}},{}],37:[function(t,e,r){(function(r){function t(t){this._db=t,this._operations=[],this._written=!1}t.prototype._serializeKey=function(t){return this._db._serializeKey(t)},t.prototype._serializeValue=function(t){return this._db._serializeValue(t)},t.prototype._checkWritten=function(){if(this._written)throw new Error("write() already called on this batch")},t.prototype.put=function(t,e){this._checkWritten();var r=this._db._checkKey(t,"key");if(r)throw r;return t=this._serializeKey(t),e=this._serializeValue(e),this._put(t,e),this},t.prototype._put=function(t,e){this._operations.push({type:"put",key:t,value:e})},t.prototype.del=function(t){this._checkWritten();var e=this._db._checkKey(t,"key");if(e)throw e;return t=this._serializeKey(t),this._del(t),this},t.prototype._del=function(t){this._operations.push({type:"del",key:t})},t.prototype.clear=function(){return this._checkWritten(),this._operations=[],this._clear(),this},t.prototype._clear=function(){},t.prototype.write=function(t,e){if(this._checkWritten(),"function"==typeof t&&(e=t),"function"!=typeof e)throw new Error("write() requires a callback argument");return"object"!=typeof t&&(t={}),this._written=!0,"function"==typeof this._write?this._write(e):"function"==typeof this._db._batch?this._db._batch(this._operations,t,e):void r.nextTick(e)},e.exports=t}).call(this,t(62))},{62:62}],38:[function(t,e,r){(function(r){function t(t){this.db=t,this._ended=!1,this._nexting=!1}t.prototype.next=function(t){var e=this;if("function"!=typeof t)throw new Error("next() requires a callback argument");return e._ended?r.nextTick(t,new Error("cannot call next() after end()")):e._nexting?r.nextTick(t,new Error("cannot call next() before previous next() has completed")):(e._nexting=!0,e._next(function(){e._nexting=!1,t.apply(null,arguments)})),e},t.prototype._next=function(t){r.nextTick(t)},t.prototype.end=function(t){if("function"!=typeof t)throw new Error("end() requires a callback argument");if(this._ended)return r.nextTick(t,new Error("end() already called on iterator"));this._ended=!0,this._end(t)},t.prototype._end=function(t){r.nextTick(t)},e.exports=t}).call(this,t(62))},{62:62}],39:[function(n,i,t){(function(a,s){var u=n(44),e=n(38),t=n(37),f=Object.prototype.hasOwnProperty,c="start end gt gte lt lte".split(" ");function r(t){if(!arguments.length||void 0===t)throw new Error("constructor requires at least a location argument");if("string"!=typeof t)throw new Error("constructor requires a location string argument");this.location=t,this.status="new"}r.prototype.open=function(t,e){var r=this,n=this.status;if("function"==typeof t&&(e=t),"function"!=typeof e)throw new Error("open() requires a callback argument");"object"!=typeof t&&(t={}),t.createIfMissing=!1!==t.createIfMissing,t.errorIfExists=!!t.errorIfExists,this.status="opening",this._open(t,function(t){if(t)return r.status=n,e(t);r.status="open",e()})},r.prototype._open=function(t,e){s.nextTick(e)},r.prototype.close=function(e){var r=this,n=this.status;if("function"!=typeof e)throw new Error("close() requires a callback argument");this.status="closing",this._close(function(t){if(t)return r.status=n,e(t);r.status="closed",e()})},r.prototype._close=function(t){s.nextTick(t)},r.prototype.get=function(t,e,r){if("function"==typeof e&&(r=e),"function"!=typeof r)throw new Error("get() requires a callback argument");var n=this._checkKey(t,"key");if(n)return s.nextTick(r,n);t=this._serializeKey(t),"object"!=typeof e&&(e={}),e.asBuffer=!1!==e.asBuffer,this._get(t,e,r)},r.prototype._get=function(t,e,r){s.nextTick(function(){r(new Error("NotFound"))})},r.prototype.put=function(t,e,r,n){if("function"==typeof r&&(n=r),"function"!=typeof n)throw new Error("put() requires a callback argument");var i=this._checkKey(t,"key");if(i)return s.nextTick(n,i);t=this._serializeKey(t),e=this._serializeValue(e),"object"!=typeof r&&(r={}),this._put(t,e,r,n)},r.prototype._put=function(t,e,r,n){s.nextTick(n)},r.prototype.del=function(t,e,r){if("function"==typeof e&&(r=e),"function"!=typeof r)throw new Error("del() requires a callback argument");var n=this._checkKey(t,"key");if(n)return s.nextTick(r,n);t=this._serializeKey(t),"object"!=typeof e&&(e={}),this._del(t,e,r)},r.prototype._del=function(t,e,r){s.nextTick(r)},r.prototype.batch=function(t,e,r){if(!arguments.length)return this._chainedBatch();if("function"==typeof e&&(r=e),"function"==typeof t&&(r=t),"function"!=typeof r)throw new Error("batch(array) requires a callback argument");if(!Array.isArray(t))return s.nextTick(r,new Error("batch(array) requires an array argument"));e&&"object"==typeof e||(e={});for(var n=new Array(t.length),i=0;i<t.length;i++){if("object"!=typeof t[i]||null===t[i])return s.nextTick(r,new Error("batch(array) element must be an object and not `null`"));var o=u(t[i]);if("put"!==o.type&&"del"!==o.type)return s.nextTick(r,new Error("`type` must be 'put' or 'del'"));var a=this._checkKey(o.key,"key");if(a)return s.nextTick(r,a);o.key=this._serializeKey(o.key),"put"===o.type&&(o.value=this._serializeValue(o.value)),n[i]=o}this._batch(n,e,r)},r.prototype._batch=function(t,e,r){s.nextTick(r)},r.prototype._setupIteratorOptions=function(t){return(t=function(t){var e={};for(var r in t)f.call(t,r)&&(o=r,-1!==c.indexOf(o)&&(""===(i=t[r])||null==i||(n=i,a.isBuffer(n)&&0===n.length))||(e[r]=t[r]));var n;var i;var o;return e}(t)).reverse=!!t.reverse,t.keys=!1!==t.keys,t.values=!1!==t.values,t.limit="limit"in t?t.limit:-1,t.keyAsBuffer=!1!==t.keyAsBuffer,t.valueAsBuffer=!1!==t.valueAsBuffer,t},r.prototype.iterator=function(t){return"object"!=typeof t&&(t={}),t=this._setupIteratorOptions(t),this._iterator(t)},r.prototype._iterator=function(t){return new e(this)},r.prototype._chainedBatch=function(){return new t(this)},r.prototype._serializeKey=function(t){return a.isBuffer(t)?t:String(t)},r.prototype._serializeValue=function(t){return null==t?"":a.isBuffer(t)||s.browser?t:String(t)},r.prototype._checkKey=function(t,e){return null==t?new Error(e+" cannot be `null` or `undefined`"):a.isBuffer(t)&&0===t.length?new Error(e+" cannot be an empty Buffer"):""===String(t)?new Error(e+" cannot be an empty String"):void 0},i.exports=r}).call(this,{isBuffer:n(19)},n(62))},{19:19,37:37,38:38,44:44,62:62}],40:[function(t,e,r){r.AbstractLevelDOWN=t(39),r.AbstractIterator=t(38),r.AbstractChainedBatch=t(37)},{37:37,38:38,39:39}],41:[function(t,e,r){var n=t(40).AbstractIterator;function i(t){n.call(this,t),this._options=t,this._iterator=null,this._operations=[]}t(18)(i,n),i.prototype.setDb=function(t){var e=this._iterator=t.iterator(this._options);this._operations.forEach(function(t){e[t.method].apply(e,t.args)})},i.prototype._operation=function(t,e){if(this._iterator)return this._iterator[t].apply(this._iterator,e);this._operations.push({method:t,args:e})},"next end".split(" ").forEach(function(t){i.prototype["_"+t]=function(){this._operation(t,arguments)}}),e.exports=i},{18:18,40:40}],42:[function(t,e,r){var n=t(40).AbstractLevelDOWN,i=t(18),o=t(41),a="put get del batch".split(" ");function s(t){n.call(this,""),this._db=t,this._operations=[],this._iterators=[],u(this)}function u(e){a.forEach(function(t){e["_"+t]=function(){this._operations.push({method:t,args:arguments})}}),"function"==typeof e._db.approximateSize&&(e.approximateSize=function(){this._operations.push({method:"approximateSize",args:arguments})}),e._iterator=function(t){var e=new o(t);return this._iterators.push(e),e}}i(s,n),s.prototype._open=function(t,r){var n=this;this._db.open(t,function(t){if(t)return r(t);var e;n._operations.forEach(function(t){n._db[t.method].apply(n._db,t.args)}),n._operations=[],n._iterators.forEach(function(t){t.setDb(n._db)}),n._iterators=[],e=n,a.concat("iterator").forEach(function(t){e["_"+t]=function(){return this._db[t].apply(this._db,arguments)}}),e._db.approximateSize&&(e.approximateSize=function(){return this._db.approximateSize.apply(this._db,arguments)}),r()})},s.prototype._close=function(e){var r=this;this._db.close(function(t){if(t)return e(t);u(r),e()})},s.prototype._serializeKey=function(t){return t},s.prototype._serializeValue=function(t){return t},e.exports=s,e.exports.DeferredIterator=o},{18:18,40:40,41:41}],43:[function(t,e,r){var n=t(13).create,i=n("LevelUPError"),o=n("NotFoundError",i);o.prototype.notFound=!0,o.prototype.status=404,e.exports={LevelUPError:i,InitializationError:n("InitializationError",i),OpenError:n("OpenError",i),ReadError:n("ReadError",i),WriteError:n("WriteError",i),NotFoundError:o,EncodingError:n("EncodingError",i)}},{13:13}],44:[function(t,e,r){arguments[4][33][0].apply(r,arguments)},{33:33}],45:[function(t,e,d){(function(o){function a(t){return void 0!==t&&""!==t}function u(t,e){return Object.hasOwnProperty.call(t,e)}function e(t,e){return Object.hasOwnProperty.call(t,e)&&e}d.compare=function(t,e){if(o.isBuffer(t)){for(var r=Math.min(t.length,e.length),n=0;n<r;n++){var i=t[n]-e[n];if(i)return i}return t.length-e.length}return t<e?-1:e<t?1:0};var n=d.lowerBoundKey=function(t){return e(t,"gt")||e(t,"gte")||e(t,"min")||(t.reverse?e(t,"end"):e(t,"start"))||void 0},s=d.lowerBound=function(t,e){var r=n(t);return r?t[r]:e},r=d.lowerBoundInclusive=function(t){return!u(t,"gt")},i=d.upperBoundInclusive=function(t){return!u(t,"lt")},f=d.lowerBoundExclusive=function(t){return!r(t)},c=d.upperBoundExclusive=function(t){return!i(t)},l=d.upperBoundKey=function(t){return e(t,"lt")||e(t,"lte")||e(t,"max")||(t.reverse?e(t,"start"):e(t,"end"))||void 0},h=d.upperBound=function(t,e){var r=l(t);return r?t[r]:e};function p(t){return t}d.start=function(t,e){return t.reverse?h(t,e):s(t,e)},d.end=function(t,e){return t.reverse?s(t,e):h(t,e)},d.startInclusive=function(t){return t.reverse?i(t):r(t)},d.endInclusive=function(t){return t.reverse?r(t):i(t)},d.toLtgt=function(t,e,r,n,i){e=e||{},r=r||p;var o=3<arguments.length,a=d.lowerBoundKey(t),s=d.upperBoundKey(t);return a?"gt"===a?e.gt=r(t.gt,!1):e.gte=r(t[a],!1):o&&(e.gte=r(n,!1)),s?"lt"===s?e.lt=r(t.lt,!0):e.lte=r(t[s],!0):o&&(e.lte=r(i,!0)),null!=t.reverse&&(e.reverse=!!t.reverse),u(e,"max")&&delete e.max,u(e,"min")&&delete e.min,u(e,"start")&&delete e.start,u(e,"end")&&delete e.end,e},d.contains=function(t,e,r){r=r||d.compare;var n=s(t);if(a(n)&&((i=r(e,n))<0||0===i&&f(t)))return!1;var i,o=h(t);if(a(o)&&(0<(i=r(e,o))||0===i&&c(t)))return!1;return!0},d.filter=function(e,r){return function(t){return d.contains(e,t,r)}}}).call(this,{isBuffer:t(19)})},{19:19}],46:[function(t,e,r){e.exports=t(53)},{53:53}],47:[function(d,g,t){(function(i){var t=d(18),e=d(51).AbstractLevelDOWN,n=d(51).AbstractIterator,o=d(59),r=d(15),a={},f=d(46);function s(t){return 0<o.compare(t,this._end)}function u(t){return 0<=o.compare(t,this._end)}function c(t){return o.compare(t,this._end)<0}function l(t){return o.compare(t,this._end)<=0}function h(t,e){n.call(this,t),this._limit=e.limit,-1===this._limit&&(this._limit=1/0);var r=t._store[t._location];this.keyAsBuffer=!1!==e.keyAsBuffer,this.valueAsBuffer=!1!==e.valueAsBuffer,this._reverse=e.reverse,this._options=e,this._done=0,this._reverse?(this._incr="prev",this._start=o.upperBound(e),this._end=o.lowerBound(e),void 0===this._start?this._tree=r.end:o.upperBoundInclusive(e)?this._tree=r.le(this._start):this._tree=r.lt(this._start),this._end&&(o.lowerBoundInclusive(e)?this._test=u:this._test=s)):(this._incr="next",this._start=o.lowerBound(e),this._end=o.upperBound(e),void 0===this._start?this._tree=r.begin:o.lowerBoundInclusive(e)?this._tree=r.ge(this._start):this._tree=r.gt(this._start),this._end&&(o.upperBoundInclusive(e)?this._test=l:this._test=c))}function p(t){if(!(this instanceof p))return new p(t);e.call(this,"string"==typeof t?t:""),this._location=this.location?"$"+this.location:"_tree",this._store=this.location?a:this,this._store[this._location]=this._store[this._location]||r(o.compare)}t(h,n),h.prototype._next=function(t){var e,r;return this._done++>=this._limit?f(t):this._tree.valid?(e=this._tree.key,r=this._tree.value,this._test(e)?(this.keyAsBuffer&&(e=new i(e)),this.valueAsBuffer&&(r=new i(r)),this._tree[this._incr](),void f(function(){t(null,e,r)})):f(t)):f(t)},h.prototype._test=function(){return!0},p.clearGlobalStore=function(t){t?Object.keys(a).forEach(function(t){delete a[t]}):a={}},t(p,e),p.prototype._open=function(t,e){var r=this;f(function(){e(null,r)})},p.prototype._put=function(t,e,r,n){null==e&&(e="");var i=this._store[this._location].find(t);i.valid?this._store[this._location]=i.update(e):this._store[this._location]=this._store[this._location].insert(t,e),f(n)},p.prototype._get=function(t,e,r){var n=this._store[this._location].get(t);if(void 0===n)return f(function(){r(new Error("NotFound"))});!1===e.asBuffer||this._isBuffer(n)||(n=new i(String(n))),f(function(){r(null,n)})},p.prototype._del=function(t,e,r){this._store[this._location]=this._store[this._location].remove(t),f(r)},p.prototype._batch=function(t,e,r){for(var n,i,o,a=-1,s=t.length,u=this._store[this._location];++a<s;)t[a]&&(n=this._isBuffer(t[a].key)?t[a].key:String(t[a].key),o=u.find(n),"put"===t[a].type?(i=this._isBuffer(t[a].value)?t[a].value:String(t[a].value),u=o.valid?o.update(i):u.insert(n,i)):u=o.remove());this._store[this._location]=u,f(r)},p.prototype._iterator=function(t){return new h(this,t)},p.prototype._isBuffer=function(t){return i.isBuffer(t)},p.destroy=function(t,e){var r="$"+t;r in a&&delete a[r],f(e)},g.exports=p}).call(this,d(9).Buffer)},{15:15,18:18,46:46,51:51,59:59,9:9}],48:[function(t,e,r){(function(r){function t(t){this._db=t,this._operations=[],this._written=!1}t.prototype._checkWritten=function(){if(this._written)throw new Error("write() already called on this batch")},t.prototype.put=function(t,e){this._checkWritten();var r=this._db._checkKey(t,"key",this._db._isBuffer);if(r)throw r;return this._db._isBuffer(t)||(t=String(t)),this._db._isBuffer(e)||(e=String(e)),"function"==typeof this._put?this._put(t,e):this._operations.push({type:"put",key:t,value:e}),this},t.prototype.del=function(t){this._checkWritten();var e=this._db._checkKey(t,"key",this._db._isBuffer);if(e)throw e;return this._db._isBuffer(t)||(t=String(t)),"function"==typeof this._del?this._del(t):this._operations.push({type:"del",key:t}),this},t.prototype.clear=function(){return this._checkWritten(),this._operations=[],"function"==typeof this._clear&&this._clear(),this},t.prototype.write=function(t,e){if(this._checkWritten(),"function"==typeof t&&(e=t),"function"!=typeof e)throw new Error("write() requires a callback argument");return"object"!=typeof t&&(t={}),this._written=!0,"function"==typeof this._write?this._write(e):"function"==typeof this._db._batch?this._db._batch(this._operations,t,e):void r.nextTick(e)},e.exports=t}).call(this,t(62))},{62:62}],49:[function(t,e,r){(function(r){function t(t){this.db=t,this._ended=!1,this._nexting=!1}t.prototype.next=function(t){var e=this;if("function"!=typeof t)throw new Error("next() requires a callback argument");return e._ended?t(new Error("cannot call next() after end()")):e._nexting?t(new Error("cannot call next() before previous next() has completed")):(e._nexting=!0,"function"==typeof e._next?e._next(function(){e._nexting=!1,t.apply(null,arguments)}):void r.nextTick(function(){e._nexting=!1,t()}))},t.prototype.end=function(t){if("function"!=typeof t)throw new Error("end() requires a callback argument");return this._ended?t(new Error("end() already called on iterator")):(this._ended=!0,"function"==typeof this._end?this._end(t):void r.nextTick(t))},e.exports=t}).call(this,t(62))},{62:62}],50:[function(o,a,t){(function(e,s){var t=o(60),r=o(49),n=o(48);function i(t){if(!arguments.length||void 0===t)throw new Error("constructor requires at least a location argument");if("string"!=typeof t)throw new Error("constructor requires a location string argument");this.location=t,this.status="new"}i.prototype.open=function(t,e){var r=this,n=this.status;if("function"==typeof t&&(e=t),"function"!=typeof e)throw new Error("open() requires a callback argument");"object"!=typeof t&&(t={}),t.createIfMissing=0!=t.createIfMissing,t.errorIfExists=!!t.errorIfExists,"function"==typeof this._open?(this.status="opening",this._open(t,function(t){if(t)return r.status=n,e(t);r.status="open",e()})):(this.status="open",s.nextTick(e))},i.prototype.close=function(e){var r=this,n=this.status;if("function"!=typeof e)throw new Error("close() requires a callback argument");"function"==typeof this._close?(this.status="closing",this._close(function(t){if(t)return r.status=n,e(t);r.status="closed",e()})):(this.status="closed",s.nextTick(e))},i.prototype.get=function(t,e,r){var n;if("function"==typeof e&&(r=e),"function"!=typeof r)throw new Error("get() requires a callback argument");return(n=this._checkKey(t,"key",this._isBuffer))?r(n):(this._isBuffer(t)||(t=String(t)),"object"!=typeof e&&(e={}),e.asBuffer=0!=e.asBuffer,"function"==typeof this._get?this._get(t,e,r):void s.nextTick(function(){r(new Error("NotFound"))}))},i.prototype.put=function(t,e,r,n){var i;if("function"==typeof r&&(n=r),"function"!=typeof n)throw new Error("put() requires a callback argument");return(i=this._checkKey(t,"key",this._isBuffer))?n(i):(this._isBuffer(t)||(t=String(t)),null==e||this._isBuffer(e)||s.browser||(e=String(e)),"object"!=typeof r&&(r={}),"function"==typeof this._put?this._put(t,e,r,n):void s.nextTick(n))},i.prototype.del=function(t,e,r){var n;if("function"==typeof e&&(r=e),"function"!=typeof r)throw new Error("del() requires a callback argument");return(n=this._checkKey(t,"key",this._isBuffer))?r(n):(this._isBuffer(t)||(t=String(t)),"object"!=typeof e&&(e={}),"function"==typeof this._del?this._del(t,e,r):void s.nextTick(r))},i.prototype.batch=function(t,e,r){if(!arguments.length)return this._chainedBatch();if("function"==typeof e&&(r=e),"function"==typeof t&&(r=t),"function"!=typeof r)throw new Error("batch(array) requires a callback argument");if(!Array.isArray(t))return r(new Error("batch(array) requires an array argument"));e&&"object"==typeof e||(e={});for(var n,i,o=0,a=t.length;o<a;o++)if("object"==typeof(n=t[o])){if(i=this._checkKey(n.type,"type",this._isBuffer))return r(i);if(i=this._checkKey(n.key,"key",this._isBuffer))return r(i)}if("function"==typeof this._batch)return this._batch(t,e,r);s.nextTick(r)},i.prototype.approximateSize=function(t,e,r){if(null==t||null==e||"function"==typeof t||"function"==typeof e)throw new Error("approximateSize() requires valid `start`, `end` and `callback` arguments");if("function"!=typeof r)throw new Error("approximateSize() requires a callback argument");if(this._isBuffer(t)||(t=String(t)),this._isBuffer(e)||(e=String(e)),"function"==typeof this._approximateSize)return this._approximateSize(t,e,r);s.nextTick(function(){r(null,0)})},i.prototype._setupIteratorOptions=function(e){var r=this;return e=t(e),["start","end","gt","gte","lt","lte"].forEach(function(t){e[t]&&r._isBuffer(e[t])&&0===e[t].length&&delete e[t]}),e.reverse=!!e.reverse,e.keys=0!=e.keys,e.values=0!=e.values,e.limit="limit"in e?e.limit:-1,e.keyAsBuffer=0!=e.keyAsBuffer,e.valueAsBuffer=0!=e.valueAsBuffer,e},i.prototype.iterator=function(t){return"object"!=typeof t&&(t={}),t=this._setupIteratorOptions(t),"function"==typeof this._iterator?this._iterator(t):new r(this)},i.prototype._chainedBatch=function(){return new n(this)},i.prototype._isBuffer=function(t){return e.isBuffer(t)},i.prototype._checkKey=function(t,e){if(null==t)return new Error(e+" cannot be `null` or `undefined`");if(this._isBuffer(t)){if(0===t.length)return new Error(e+" cannot be an empty Buffer")}else if(""===String(t))return new Error(e+" cannot be an empty String")},a.exports=i}).call(this,{isBuffer:o(19)},o(62))},{19:19,48:48,49:49,60:60,62:62}],51:[function(t,e,r){r.AbstractLevelDOWN=t(50),r.AbstractIterator=t(49),r.AbstractChainedBatch=t(48),r.isLevelDOWN=t(52)},{48:48,49:49,50:50,52:52}],52:[function(t,e,r){var n=t(50);e.exports=function(e){return!(!e||"object"!=typeof e)&&Object.keys(n.prototype).filter(function(t){return"_"!=t[0]&&"approximateSize"!=t}).every(function(t){return"function"==typeof e[t]})}},{50:50}],53:[function(t,e,r){"use strict";var n,i,o,a=[t(56),t(55),t(54),t(57),t(58)],s=-1,u=[],f=!1;function c(){n&&i&&(n=!1,i.length?u=i.concat(u):s=-1,u.length&&l())}function l(){if(!n){n=!(f=!1);for(var t=u.length,e=setTimeout(c);t;){for(i=u,u=[];i&&++s<t;)i[s].run();s=-1,t=u.length}i=null,n=!(s=-1),clearTimeout(e)}}for(var h=-1,p=a.length;++h<p;)if(a[h]&&a[h].test&&a[h].test()){o=a[h].install(l);break}function d(t,e){this.fun=t,this.array=e}d.prototype.run=function(){var t=this.fun,e=this.array;switch(e.length){case 0:return t();case 1:return t(e[0]);case 2:return t(e[0],e[1]);case 3:return t(e[0],e[1],e[2]);default:return t.apply(null,e)}},e.exports=function(t){var e=new Array(arguments.length-1);if(1<arguments.length)for(var r=1;r<arguments.length;r++)e[r-1]=arguments[r];u.push(new d(t,e)),f||n||(f=!0,o())}},{54:54,55:55,56:56,57:57,58:58}],54:[function(t,e,n){(function(r){"use strict";n.test=function(){return!r.setImmediate&&void 0!==r.MessageChannel},n.install=function(t){var e=new r.MessageChannel;return e.port1.onmessage=t,function(){e.port2.postMessage(0)}}}).call(this,"undefined"!=typeof global?global:"undefined"!=typeof self?self:"undefined"!=typeof window?window:{})},{}],55:[function(t,e,r){(function(i){"use strict";var o=i.MutationObserver||i.WebKitMutationObserver;r.test=function(){return o},r.install=function(t){var e=0,r=new o(t),n=i.document.createTextNode("");return r.observe(n,{characterData:!0}),function(){n.data=e=++e%2}}}).call(this,"undefined"!=typeof global?global:"undefined"!=typeof self?self:"undefined"!=typeof window?window:{})},{}],56:[function(t,e,r){(function(e){"use strict";r.test=function(){return void 0!==e&&!e.browser},r.install=function(t){return function(){e.nextTick(t)}}}).call(this,t(62))},{62:62}],57:[function(t,e,n){(function(r){"use strict";n.test=function(){return"document"in r&&"onreadystatechange"in r.document.createElement("script")},n.install=function(e){return function(){var t=r.document.createElement("script");return t.onreadystatechange=function(){e(),t.onreadystatechange=null,t.parentNode.removeChild(t),t=null},r.document.documentElement.appendChild(t),e}}}).call(this,"undefined"!=typeof global?global:"undefined"!=typeof self?self:"undefined"!=typeof window?window:{})},{}],58:[function(t,e,r){"use strict";r.test=function(){return!0},r.install=function(t){return function(){setTimeout(t,0)}}},{}],59:[function(t,e,d){(function(o){function u(t,e){return Object.hasOwnProperty.call(t,e)}function a(t){return void 0!==t&&""!==t}function u(t,e){return Object.hasOwnProperty.call(t,e)}function e(t,e){return Object.hasOwnProperty.call(t,e)&&e}d.compare=function(t,e){if(o.isBuffer(t)){for(var r=Math.min(t.length,e.length),n=0;n<r;n++){var i=t[n]-e[n];if(i)return i}return t.length-e.length}return t<e?-1:e<t?1:0};var r=d.lowerBoundKey=function(t){return e(t,"gt")||e(t,"gte")||e(t,"min")||(t.reverse?e(t,"end"):e(t,"start"))||void 0},s=d.lowerBound=function(t){var e=r(t);return e&&t[e]},n=d.lowerBoundInclusive=function(t){return!u(t,"gt")},i=d.upperBoundInclusive=function(t){return!u(t,"lt")},f=d.lowerBoundExclusive=function(t){return!n(t)},c=d.upperBoundExclusive=function(t){return!i(t)},l=d.upperBoundKey=function(t){return e(t,"lt")||e(t,"lte")||e(t,"max")||(t.reverse?e(t,"start"):e(t,"end"))||void 0},h=d.upperBound=function(t){var e=l(t);return e&&t[e]};function p(t){return t}d.toLtgt=function(t,e,r,n,i){e=e||{},r=r||p;var o=3<arguments.length,a=d.lowerBoundKey(t),s=d.upperBoundKey(t);return a?"gt"===a?e.gt=r(t.gt,!1):e.gte=r(t[a],!1):o&&(e.gte=r(n,!1)),s?"lt"===s?e.lt=r(t.lt,!0):e.lte=r(t[s],!0):o&&(e.lte=r(i,!0)),null!=t.reverse&&(e.reverse=!!t.reverse),u(e,"max")&&delete e.max,u(e,"min")&&delete e.min,u(e,"start")&&delete e.start,u(e,"end")&&delete e.end,e},d.contains=function(t,e,r){r=r||d.compare;var n=s(t);if(a(n)&&((i=r(e,n))<0||0===i&&f(t)))return!1;var i,o=h(t);if(a(o)&&(0<(i=r(e,o))||0===i&&c(t)))return!1;return!0},d.filter=function(e,r){return function(t){return d.contains(e,t,r)}}}).call(this,{isBuffer:t(19)})},{19:19}],60:[function(t,e,r){arguments[4][33][0].apply(r,arguments)},{33:33}],61:[function(t,e,r){(function(s){"use strict";!s.version||0===s.version.indexOf("v0.")||0===s.version.indexOf("v1.")&&0!==s.version.indexOf("v1.8.")?e.exports={nextTick:function(t,e,r,n){if("function"!=typeof t)throw new TypeError('"callback" argument must be a function');var i,o,a=arguments.length;switch(a){case 0:case 1:return s.nextTick(t);case 2:return s.nextTick(function(){t.call(null,e)});case 3:return s.nextTick(function(){t.call(null,e,r)});case 4:return s.nextTick(function(){t.call(null,e,r,n)});default:for(i=new Array(a-1),o=0;o<i.length;)i[o++]=arguments[o];return s.nextTick(function(){t.apply(null,i)})}}}:e.exports=s}).call(this,t(62))},{62:62}],62:[function(t,e,r){var n,i,o=e.exports={};function a(){throw new Error("setTimeout has not been defined")}function s(){throw new Error("clearTimeout has not been defined")}function u(e){if(n===setTimeout)return setTimeout(e,0);if((n===a||!n)&&setTimeout)return n=setTimeout,setTimeout(e,0);try{return n(e,0)}catch(t){try{return n.call(null,e,0)}catch(t){return n.call(this,e,0)}}}!function(){try{n="function"==typeof setTimeout?setTimeout:a}catch(t){n=a}try{i="function"==typeof clearTimeout?clearTimeout:s}catch(t){i=s}}();var f,c=[],l=!1,h=-1;function p(){l&&f&&(l=!1,f.length?c=f.concat(c):h=-1,c.length&&d())}function d(){if(!l){var t=u(p);l=!0;for(var e=c.length;e;){for(f=c,c=[];++h<e;)f&&f[h].run();h=-1,e=c.length}f=null,l=!1,function(e){if(i===clearTimeout)return clearTimeout(e);if((i===s||!i)&&clearTimeout)return i=clearTimeout,clearTimeout(e);try{i(e)}catch(t){try{return i.call(null,e)}catch(t){return i.call(this,e)}}}(t)}}function g(t,e){this.fun=t,this.array=e}function y(){}o.nextTick=function(t){var e=new Array(arguments.length-1);if(1<arguments.length)for(var r=1;r<arguments.length;r++)e[r-1]=arguments[r];c.push(new g(t,e)),1!==c.length||l||u(d)},g.prototype.run=function(){this.fun.apply(null,this.array)},o.title="browser",o.browser=!0,o.env={},o.argv=[],o.version="",o.versions={},o.on=y,o.addListener=y,o.once=y,o.off=y,o.removeListener=y,o.removeAllListeners=y,o.emit=y,o.prependListener=y,o.prependOnceListener=y,o.listeners=function(t){return[]},o.binding=function(t){throw new Error("process.binding is not supported")},o.cwd=function(){return"/"},o.chdir=function(t){throw new Error("process.chdir is not supported")},o.umask=function(){return 0}},{}],63:[function(t,e,r){var n,i;n=this,i=function(){var c="function"==typeof Object.defineProperty?function(t,e,r){return Object.defineProperty(t,e,r),t}:function(t,e,r){return t[e]=r.value,t};return function(t,e,r,n){var i,o,a,s,u,f;if(o=r,u=!(s="object"==typeof(a=n))&&"string"==typeof a,n={enumerable:(f=function(t){return s?!!a[t]:!!u&&-1<a.indexOf(t[0])})("enumerable"),configurable:f("configurable"),writable:f("writable"),value:o},"object"==typeof e){for(i in e)Object.hasOwnProperty.call(e,i)&&(n.value=e[i],c(t,i,n));return t}return c(t,e,n)}},void 0!==e&&e.exports?e.exports=i():n.prr=i()},{}],64:[function(s,u,t){(function(t){u.exports=o;var e=Object.keys||function(t){var e=[];for(var r in t)e.push(r);return e},r=s(10);r.inherits=s(18);var n=s(66),i=s(68);function o(t){if(!(this instanceof o))return new o(t);n.call(this,t),i.call(this,t),t&&!1===t.readable&&(this.readable=!1),t&&!1===t.writable&&(this.writable=!1),this.allowHalfOpen=!0,t&&!1===t.allowHalfOpen&&(this.allowHalfOpen=!1),this.once("end",a)}function a(){this.allowHalfOpen||this._writableState.ended||t.nextTick(this.end.bind(this))}r.inherits(o,n),function(t,e){for(var r=0,n=t.length;r<n;r++)e(t[r],r)}(e(i.prototype),function(t){o.prototype[t]||(o.prototype[t]=i.prototype[t])})}).call(this,s(62))},{10:10,18:18,62:62,66:66,68:68}],65:[function(t,e,r){e.exports=o;var n=t(67),i=t(10);function o(t){if(!(this instanceof o))return new o(t);n.call(this,t)}i.inherits=t(18),i.inherits(o,n),o.prototype._transform=function(t,e,r){r(null,t)}},{10:10,18:18,67:67}],66:[function(m,w,t){(function(d){w.exports=r;var g=m(69),h=m(9).Buffer;r.ReadableState=e;var y=m(14).EventEmitter;y.listenerCount||(y.listenerCount=function(t,e){return t.listeners(e).length});var n,i=m(74),t=m(10);function e(t,e){var r=(t=t||{}).highWaterMark;this.highWaterMark=r||0===r?r: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&&(n||(n=m(70).StringDecoder),this.decoder=new n(t.encoding),this.encoding=t.encoding)}function r(t){if(!(this instanceof r))return new r(t);this._readableState=new e(t,this),this.readable=!0,i.call(this)}function o(t,e,r,n,i){var o,a,s,u=function(t,e){var r=null;h.isBuffer(e)||"string"==typeof e||null==e||t.objectMode||(r=new TypeError("Invalid non-string/buffer chunk"));return r}(e,r);if(u)t.emit("error",u);else if(null==r)e.reading=!1,e.ended||function(t,e){if(e.decoder&&!e.ended){var r=e.decoder.end();r&&r.length&&(e.buffer.push(r),e.length+=e.objectMode?1:r.length)}e.ended=!0,0<e.length?c(t):p(t)}(t,e);else if(e.objectMode||r&&0<r.length)if(e.ended&&!i){var f=new Error("stream.push() after EOF");t.emit("error",f)}else if(e.endEmitted&&i){f=new Error("stream.unshift() after end event");t.emit("error",f)}else!e.decoder||i||n||(r=e.decoder.write(r)),e.length+=e.objectMode?1:r.length,i?e.buffer.unshift(r):(e.reading=!1,e.buffer.push(r)),e.needReadable&&c(t),o=t,(a=e).readingMore||(a.readingMore=!0,d.nextTick(function(){!function(t,e){for(var r=e.length;!e.reading&&!e.flowing&&!e.ended&&e.length<e.highWaterMark&&(t.read(0),r!==e.length);)r=e.length;e.readingMore=!1}(o,a)}));else i||(e.reading=!1);return!(s=e).ended&&(s.needReadable||s.length<s.highWaterMark||0===s.length)}t.inherits=m(18),t.inherits(r,i),r.prototype.push=function(t,e){var r=this._readableState;return"string"!=typeof t||r.objectMode||(e=e||r.defaultEncoding)!==r.encoding&&(t=new h(t,e),e=""),o(this,r,t,e,!1)},r.prototype.unshift=function(t){return o(this,this._readableState,t,"",!0)},r.prototype.setEncoding=function(t){n||(n=m(70).StringDecoder),this._readableState.decoder=new n(t),this._readableState.encoding=t};var a=8388608;function s(t,e){return 0===e.length&&e.ended?0:e.objectMode?0===t?0:1:null===t||isNaN(t)?e.flowing&&e.buffer.length?e.buffer[0].length:e.length:t<=0?0:(t>e.highWaterMark&&(e.highWaterMark=function(t){if(a<=t)t=a;else{t--;for(var e=1;e<32;e<<=1)t|=t>>e;t++}return t}(t)),t>e.length?e.ended?e.length:(e.needReadable=!0,0):t)}function c(t){var e=t._readableState;e.needReadable=!1,e.emittedReadable||(e.emittedReadable=!0,e.sync?d.nextTick(function(){u(t)}):u(t))}function u(t){t.emit("readable")}function v(t){var n,i=t._readableState;function e(t,e,r){!1===t.write(n)&&i.awaitDrain++}for(i.awaitDrain=0;i.pipesCount&&null!==(n=t.read());)if(1===i.pipesCount?e(i.pipes):b(i.pipes,e),t.emit("data",n),0<i.awaitDrain)return;if(0===i.pipesCount)return i.flowing=!1,void(0<y.listenerCount(t,"data")&&f(t));i.ranOut=!0}function _(){this._readableState.ranOut&&(this._readableState.ranOut=!1,v(this))}function f(e,t){if(e._readableState.flowing)throw new Error("Cannot switch to old mode now.");var r=t||!1,n=!1;e.readable=!0,e.pipe=i.prototype.pipe,e.on=e.addListener=i.prototype.on,e.on("readable",function(){var t;for(n=!0;!r&&null!==(t=e.read());)e.emit("data",t);null===t&&(n=!1,e._readableState.needReadable=!0)}),e.pause=function(){r=!0,this.emit("pause")},e.resume=function(){r=!1,n?d.nextTick(function(){e.emit("readable")}):this.read(0),this.emit("resume")},e.emit("readable")}function l(t,e){var r,n=e.buffer,i=e.length,o=!!e.decoder,a=!!e.objectMode;if(0===n.length)return null;if(0===i)r=null;else if(a)r=n.shift();else if(!t||i<=t)r=o?n.join(""):h.concat(n,i),n.length=0;else{if(t<n[0].length)r=(c=n[0]).slice(0,t),n[0]=c.slice(t);else if(t===n[0].length)r=n.shift();else{r=o?"":new h(t);for(var s=0,u=0,f=n.length;u<f&&s<t;u++){var c=n[0],l=Math.min(t-s,c.length);o?r+=c.slice(0,l):c.copy(r,s,0,l),l<c.length?n[0]=c.slice(l):n.shift(),s+=l}}}return r}function p(t){var e=t._readableState;if(0<e.length)throw new Error("endReadable called on non-empty stream");!e.endEmitted&&e.calledRead&&(e.ended=!0,d.nextTick(function(){e.endEmitted||0!==e.length||(e.endEmitted=!0,t.readable=!1,t.emit("end"))}))}function b(t,e){for(var r=0,n=t.length;r<n;r++)e(t[r],r)}r.prototype.read=function(t){var e=this._readableState;e.calledRead=!0;var r,n=t;if(("number"!=typeof t||0<t)&&(e.emittedReadable=!1),0===t&&e.needReadable&&(e.length>=e.highWaterMark||e.ended))return c(this),null;if(0===(t=s(t,e))&&e.ended)return r=null,0<e.length&&e.decoder&&(r=l(t,e),e.length-=r.length),0===e.length&&p(this),r;var i=e.needReadable;return e.length-t<=e.highWaterMark&&(i=!0),(e.ended||e.reading)&&(i=!1),i&&(e.reading=!0,e.sync=!0,0===e.length&&(e.needReadable=!0),this._read(e.highWaterMark),e.sync=!1),i&&!e.reading&&(t=s(n,e)),null===(r=0<t?l(t,e):null)&&(e.needReadable=!0,t=0),e.length-=t,0!==e.length||e.ended||(e.needReadable=!0),e.ended&&!e.endEmitted&&0===e.length&&p(this),r},r.prototype._read=function(t){this.emit("error",new Error("not implemented"))},r.prototype.pipe=function(e,t){var r=this,n=this._readableState;switch(n.pipesCount){case 0:n.pipes=e;break;case 1:n.pipes=[n.pipes,e];break;default:n.pipes.push(e)}n.pipesCount+=1;var i=(!t||!1!==t.end)&&e!==d.stdout&&e!==d.stderr?a:f;function o(t){t===r&&f()}function a(){e.end()}n.endEmitted?d.nextTick(i):r.once("end",i),e.on("unpipe",o);var s,u=(s=r,function(){var t=s._readableState;t.awaitDrain--,0===t.awaitDrain&&v(s)});function f(){e.removeListener("close",l),e.removeListener("finish",h),e.removeListener("drain",u),e.removeListener("error",c),e.removeListener("unpipe",o),r.removeListener("end",a),r.removeListener("end",f),e._writableState&&!e._writableState.needDrain||u()}function c(t){p(),e.removeListener("error",c),0===y.listenerCount(e,"error")&&e.emit("error",t)}function l(){e.removeListener("finish",h),p()}function h(){e.removeListener("close",l),p()}function p(){r.unpipe(e)}return e.on("drain",u),e._events&&e._events.error?g(e._events.error)?e._events.error.unshift(c):e._events.error=[c,e._events.error]:e.on("error",c),e.once("close",l),e.once("finish",h),e.emit("pipe",r),n.flowing||(this.on("readable",_),n.flowing=!0,d.nextTick(function(){v(r)})),e},r.prototype.unpipe=function(t){var e=this._readableState;if(0===e.pipesCount)return this;if(1===e.pipesCount)return t&&t!==e.pipes||(t||(t=e.pipes),e.pipes=null,e.pipesCount=0,this.removeListener("readable",_),e.flowing=!1,t&&t.emit("unpipe",this)),this;if(!t){var r=e.pipes,n=e.pipesCount;e.pipes=null,e.pipesCount=0,this.removeListener("readable",_),e.flowing=!1;for(var i=0;i<n;i++)r[i].emit("unpipe",this);return this}return-1===(i=function(t,e){for(var r=0,n=t.length;r<n;r++)if(t[r]===e)return r;return-1}(e.pipes,t))||(e.pipes.splice(i,1),e.pipesCount-=1,1===e.pipesCount&&(e.pipes=e.pipes[0]),t.emit("unpipe",this)),this},r.prototype.addListener=r.prototype.on=function(t,e){var r=i.prototype.on.call(this,t,e);if("data"!==t||this._readableState.flowing||f(this),"readable"===t&&this.readable){var n=this._readableState;n.readableListening||(n.readableListening=!0,n.emittedReadable=!1,n.needReadable=!0,n.reading?n.length&&c(this):this.read(0))}return r},r.prototype.resume=function(){f(this),this.read(0),this.emit("resume")},r.prototype.pause=function(){f(this,!0),this.emit("pause")},r.prototype.wrap=function(e){var r=this._readableState,n=!1,i=this;for(var t in e.on("end",function(){if(r.decoder&&!r.ended){var t=r.decoder.end();t&&t.length&&i.push(t)}i.push(null)}),e.on("data",function(t){(r.decoder&&(t=r.decoder.write(t)),r.objectMode&&null==t)||(r.objectMode||t&&t.length)&&(i.push(t)||(n=!0,e.pause()))}),e)"function"==typeof e[t]&&void 0===this[t]&&(this[t]=function(t){return function(){return e[t].apply(e,arguments)}}(t));return b(["error","close","destroy","pause","resume"],function(t){e.on(t,i.emit.bind(i,t))}),i._read=function(t){n&&(n=!1,e.resume())},i},r._fromList=l}).call(this,m(62))},{10:10,14:14,18:18,62:62,69:69,70:70,74:74,9:9}],67:[function(t,e,r){e.exports=a;var n=t(64),i=t(10);function o(t,r){this.afterTransform=function(t,e){return function(t,e,r){var n=t._transformState;n.transforming=!1;var i=n.writecb;if(!i)return t.emit("error",new Error("no writecb in Transform class"));n.writechunk=null,(n.writecb=null)!=r&&t.push(r);i&&i(e);var o=t._readableState;o.reading=!1,(o.needReadable||o.length<o.highWaterMark)&&t._read(o.highWaterMark)}(r,t,e)},this.needTransform=!1,this.transforming=!1,this.writecb=null,this.writechunk=null}function a(t){if(!(this instanceof a))return new a(t);n.call(this,t);this._transformState=new o(t,this);var e=this;this._readableState.needReadable=!0,this._readableState.sync=!1,this.once("finish",function(){"function"==typeof this._flush?this._flush(function(t){s(e,t)}):s(e)})}function s(t,e){if(e)return t.emit("error",e);var r=t._writableState,n=(t._readableState,t._transformState);if(r.length)throw new Error("calling transform done when ws.length != 0");if(n.transforming)throw new Error("calling transform done when still transforming");return t.push(null)}i.inherits=t(18),i.inherits(a,n),a.prototype.push=function(t,e){return this._transformState.needTransform=!1,n.prototype.push.call(this,t,e)},a.prototype._transform=function(t,e,r){throw new Error("not implemented")},a.prototype._write=function(t,e,r){var n=this._transformState;if(n.writecb=r,n.writechunk=t,n.writeencoding=e,!n.transforming){var i=this._readableState;(n.needTransform||i.needReadable||i.length<i.highWaterMark)&&this._read(i.highWaterMark)}},a.prototype._read=function(t){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}},{10:10,18:18,64:64}],68:[function(o,e,t){(function(u){e.exports=i;var c=o(9).Buffer;i.WritableState=n;var t=o(10);t.inherits=o(18);var r=o(74);function l(t,e,r){this.chunk=t,this.encoding=e,this.callback=r}function n(t,e){var r=(t=t||{}).highWaterMark;this.highWaterMark=r||0===r?r:16384,this.objectMode=!!t.objectMode,this.highWaterMark=~~this.highWaterMark,this.needDrain=!1,this.ending=!1,this.ended=!1;var n=(this.finished=!1)===t.decodeStrings;this.decodeStrings=!n,this.defaultEncoding=t.defaultEncoding||"utf8",this.length=0,this.writing=!1,this.sync=!0,this.bufferProcessing=!1,this.onwrite=function(t){!function(t,e){var r=t._writableState,n=r.sync,i=r.writecb;if(a=r,a.writing=!1,a.writecb=null,a.length-=a.writelen,a.writelen=0,e)!function(t,e,r,n,i){r?u.nextTick(function(){i(n)}):i(n);t._writableState.errorEmitted=!0,t.emit("error",n)}(t,0,n,e,i);else{var o=f(t,r);o||r.bufferProcessing||!r.buffer.length||function(t,e){e.bufferProcessing=!0;for(var r=0;r<e.buffer.length;r++){var n=e.buffer[r],i=n.chunk,o=n.encoding,a=n.callback,s=e.objectMode?1:i.length;if(h(t,e,s,i,o,a),e.writing){r++;break}}e.bufferProcessing=!1,r<e.buffer.length?e.buffer=e.buffer.slice(r):e.buffer.length=0}(t,r),n?u.nextTick(function(){s(t,r,o,i)}):s(t,r,o,i)}var a}(e,t)},this.writecb=null,this.writelen=0,this.buffer=[],this.errorEmitted=!1}function i(t){var e=o(64);if(!(this instanceof i||this instanceof e))return new i(t);this._writableState=new n(t,this),this.writable=!0,r.call(this)}function h(t,e,r,n,i,o){e.writelen=r,e.writecb=o,e.writing=!0,e.sync=!0,t._write(n,i,e.onwrite),e.sync=!1}function s(t,e,r,n){var i,o;r||(i=t,0===(o=e).length&&o.needDrain&&(o.needDrain=!1,i.emit("drain"))),n(),r&&a(t,e)}function f(t,e){return e.ending&&0===e.length&&!e.finished&&!e.writing}function a(t,e){var r=f(0,e);return r&&(e.finished=!0,t.emit("finish")),r}t.inherits(i,r),i.prototype.pipe=function(){this.emit("error",new Error("Cannot pipe. Not readable."))},i.prototype.write=function(t,e,r){var n,i,o,a=this._writableState,s=!1;return"function"==typeof e&&(r=e,e=null),c.isBuffer(t)?e="buffer":e||(e=a.defaultEncoding),"function"!=typeof r&&(r=function(){}),a.ended?(n=this,i=r,o=new Error("write after end"),n.emit("error",o),u.nextTick(function(){i(o)})):function(t,e,r,n){var i=!0;if(!c.isBuffer(r)&&"string"!=typeof r&&null!=r&&!e.objectMode){var o=new TypeError("Invalid non-string/buffer chunk");t.emit("error",o),u.nextTick(function(){n(o)}),i=!1}return i}(this,a,t,r)&&(s=function(t,e,r,n,i){o=e,a=r,s=n,o.objectMode||!1===o.decodeStrings||"string"!=typeof a||(a=new c(a,s)),r=a,c.isBuffer(r)&&(n="buffer");var o,a,s;var u=e.objectMode?1:r.length;e.length+=u;var f=e.length<e.highWaterMark;f||(e.needDrain=!0);e.writing?e.buffer.push(new l(r,n,i)):h(t,e,u,r,n,i);return f}(this,a,t,e,r)),s},i.prototype._write=function(t,e,r){r(new Error("not implemented"))},i.prototype.end=function(t,e,r){var n=this._writableState;"function"==typeof t?(r=t,e=t=null):"function"==typeof e&&(r=e,e=null),null!=t&&this.write(t,e),n.ending||n.finished||function(t,e,r){e.ending=!0,a(t,e),r&&(e.finished?u.nextTick(r):t.once("finish",r));e.ended=!0}(this,n,r)}}).call(this,o(62))},{10:10,18:18,62:62,64:64,74:74,9:9}],69:[function(t,e,r){e.exports=Array.isArray||function(t){return"[object Array]"==Object.prototype.toString.call(t)}},{}],70:[function(t,e,r){var n=t(9).Buffer,i=n.isEncoding||function(t){switch(t&&t.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}};var o=r.StringDecoder=function(t){switch(this.encoding=(t||"utf8").toLowerCase().replace(/[-_]/,""),function(t){if(t&&!i(t))throw new Error("Unknown encoding: "+t)}(t),this.encoding){case"utf8":this.surrogateSize=3;break;case"ucs2":case"utf16le":this.surrogateSize=2,this.detectIncompleteChar=s;break;case"base64":this.surrogateSize=3,this.detectIncompleteChar=u;break;default:return void(this.write=a)}this.charBuffer=new n(6),this.charReceived=0,this.charLength=0};function a(t){return t.toString(this.encoding)}function s(t){this.charReceived=t.length%2,this.charLength=this.charReceived?2:0}function u(t){this.charReceived=t.length%3,this.charLength=this.charReceived?3:0}o.prototype.write=function(t){for(var e="";this.charLength;){var r=t.length>=this.charLength-this.charReceived?this.charLength-this.charReceived:t.length;if(t.copy(this.charBuffer,this.charReceived,0,r),this.charReceived+=r,this.charReceived<this.charLength)return"";if(t=t.slice(r,t.length),!(55296<=(i=(e=this.charBuffer.slice(0,this.charLength).toString(this.encoding)).charCodeAt(e.length-1))&&i<=56319)){if(this.charReceived=this.charLength=0,0===t.length)return e;break}this.charLength+=this.surrogateSize,e=""}this.detectIncompleteChar(t);var n=t.length;this.charLength&&(t.copy(this.charBuffer,0,t.length-this.charReceived,n),n-=this.charReceived);var i;n=(e+=t.toString(this.encoding,0,n)).length-1;if(55296<=(i=e.charCodeAt(n))&&i<=56319){var o=this.surrogateSize;return this.charLength+=o,this.charReceived+=o,this.charBuffer.copy(this.charBuffer,o,0,o),t.copy(this.charBuffer,0,0,o),e.substring(0,n)}return e},o.prototype.detectIncompleteChar=function(t){for(var e=3<=t.length?3:t.length;0<e;e--){var r=t[t.length-e];if(1==e&&r>>5==6){this.charLength=2;break}if(e<=2&&r>>4==14){this.charLength=3;break}if(e<=3&&r>>3==30){this.charLength=4;break}}this.charReceived=e},o.prototype.end=function(t){var e="";if(t&&t.length&&(e=this.write(t)),this.charReceived){var r=this.charReceived,n=this.charBuffer,i=this.encoding;e+=n.slice(0,r).toString(i)}return e}},{9:9}],71:[function(t,e,r){var n=t(74);(r=e.exports=t(66)).Stream=n,(r.Readable=r).Writable=t(68),r.Duplex=t(64),r.Transform=t(67),r.PassThrough=t(65)},{64:64,65:65,66:66,67:67,68:68,74:74}],72:[function(t,e,r){var n=t(9),i=n.Buffer;function o(t,e){for(var r in t)e[r]=t[r]}function a(t,e,r){return i(t,e,r)}i.from&&i.alloc&&i.allocUnsafe&&i.allocUnsafeSlow?e.exports=n:(o(n,r),r.Buffer=a),o(i,a),a.from=function(t,e,r){if("number"==typeof t)throw new TypeError("Argument must not be a number");return i(t,e,r)},a.alloc=function(t,e,r){if("number"!=typeof t)throw new TypeError("Argument must be a number");var n=i(t);return void 0!==e?"string"==typeof r?n.fill(e,r):n.fill(e):n.fill(0),n},a.allocUnsafe=function(t){if("number"!=typeof t)throw new TypeError("Argument must be a number");return i(t)},a.allocUnsafeSlow=function(t){if("number"!=typeof t)throw new TypeError("Argument must be a number");return n.SlowBuffer(t)}},{9:9}],73:[function(t,r,n){!function(t){if("object"==typeof n)r.exports=t();else if("function"==typeof define&&define.amd)define(t);else{var e;try{e=window}catch(t){e=self}e.SparkMD5=t()}}(function(c){"use strict";var n=["0","1","2","3","4","5","6","7","8","9","a","b","c","d","e","f"];function f(t,e){var r=t[0],n=t[1],i=t[2],o=t[3];n=((n+=((i=((i+=((o=((o+=((r=((r+=(n&i|~n&o)+e[0]-680876936|0)<<7|r>>>25)+n|0)&n|~r&i)+e[1]-389564586|0)<<12|o>>>20)+r|0)&r|~o&n)+e[2]+606105819|0)<<17|i>>>15)+o|0)&o|~i&r)+e[3]-1044525330|0)<<22|n>>>10)+i|0,n=((n+=((i=((i+=((o=((o+=((r=((r+=(n&i|~n&o)+e[4]-176418897|0)<<7|r>>>25)+n|0)&n|~r&i)+e[5]+1200080426|0)<<12|o>>>20)+r|0)&r|~o&n)+e[6]-1473231341|0)<<17|i>>>15)+o|0)&o|~i&r)+e[7]-45705983|0)<<22|n>>>10)+i|0,n=((n+=((i=((i+=((o=((o+=((r=((r+=(n&i|~n&o)+e[8]+1770035416|0)<<7|r>>>25)+n|0)&n|~r&i)+e[9]-1958414417|0)<<12|o>>>20)+r|0)&r|~o&n)+e[10]-42063|0)<<17|i>>>15)+o|0)&o|~i&r)+e[11]-1990404162|0)<<22|n>>>10)+i|0,n=((n+=((i=((i+=((o=((o+=((r=((r+=(n&i|~n&o)+e[12]+1804603682|0)<<7|r>>>25)+n|0)&n|~r&i)+e[13]-40341101|0)<<12|o>>>20)+r|0)&r|~o&n)+e[14]-1502002290|0)<<17|i>>>15)+o|0)&o|~i&r)+e[15]+1236535329|0)<<22|n>>>10)+i|0,n=((n+=((i=((i+=((o=((o+=((r=((r+=(n&o|i&~o)+e[1]-165796510|0)<<5|r>>>27)+n|0)&i|n&~i)+e[6]-1069501632|0)<<9|o>>>23)+r|0)&n|r&~n)+e[11]+643717713|0)<<14|i>>>18)+o|0)&r|o&~r)+e[0]-373897302|0)<<20|n>>>12)+i|0,n=((n+=((i=((i+=((o=((o+=((r=((r+=(n&o|i&~o)+e[5]-701558691|0)<<5|r>>>27)+n|0)&i|n&~i)+e[10]+38016083|0)<<9|o>>>23)+r|0)&n|r&~n)+e[15]-660478335|0)<<14|i>>>18)+o|0)&r|o&~r)+e[4]-405537848|0)<<20|n>>>12)+i|0,n=((n+=((i=((i+=((o=((o+=((r=((r+=(n&o|i&~o)+e[9]+568446438|0)<<5|r>>>27)+n|0)&i|n&~i)+e[14]-1019803690|0)<<9|o>>>23)+r|0)&n|r&~n)+e[3]-187363961|0)<<14|i>>>18)+o|0)&r|o&~r)+e[8]+1163531501|0)<<20|n>>>12)+i|0,n=((n+=((i=((i+=((o=((o+=((r=((r+=(n&o|i&~o)+e[13]-1444681467|0)<<5|r>>>27)+n|0)&i|n&~i)+e[2]-51403784|0)<<9|o>>>23)+r|0)&n|r&~n)+e[7]+1735328473|0)<<14|i>>>18)+o|0)&r|o&~r)+e[12]-1926607734|0)<<20|n>>>12)+i|0,n=((n+=((i=((i+=((o=((o+=((r=((r+=(n^i^o)+e[5]-378558|0)<<4|r>>>28)+n|0)^n^i)+e[8]-2022574463|0)<<11|o>>>21)+r|0)^r^n)+e[11]+1839030562|0)<<16|i>>>16)+o|0)^o^r)+e[14]-35309556|0)<<23|n>>>9)+i|0,n=((n+=((i=((i+=((o=((o+=((r=((r+=(n^i^o)+e[1]-1530992060|0)<<4|r>>>28)+n|0)^n^i)+e[4]+1272893353|0)<<11|o>>>21)+r|0)^r^n)+e[7]-155497632|0)<<16|i>>>16)+o|0)^o^r)+e[10]-1094730640|0)<<23|n>>>9)+i|0,n=((n+=((i=((i+=((o=((o+=((r=((r+=(n^i^o)+e[13]+681279174|0)<<4|r>>>28)+n|0)^n^i)+e[0]-358537222|0)<<11|o>>>21)+r|0)^r^n)+e[3]-722521979|0)<<16|i>>>16)+o|0)^o^r)+e[6]+76029189|0)<<23|n>>>9)+i|0,n=((n+=((i=((i+=((o=((o+=((r=((r+=(n^i^o)+e[9]-640364487|0)<<4|r>>>28)+n|0)^n^i)+e[12]-421815835|0)<<11|o>>>21)+r|0)^r^n)+e[15]+530742520|0)<<16|i>>>16)+o|0)^o^r)+e[2]-995338651|0)<<23|n>>>9)+i|0,n=((n+=((o=((o+=(n^((r=((r+=(i^(n|~o))+e[0]-198630844|0)<<6|r>>>26)+n|0)|~i))+e[7]+1126891415|0)<<10|o>>>22)+r|0)^((i=((i+=(r^(o|~n))+e[14]-1416354905|0)<<15|i>>>17)+o|0)|~r))+e[5]-57434055|0)<<21|n>>>11)+i|0,n=((n+=((o=((o+=(n^((r=((r+=(i^(n|~o))+e[12]+1700485571|0)<<6|r>>>26)+n|0)|~i))+e[3]-1894986606|0)<<10|o>>>22)+r|0)^((i=((i+=(r^(o|~n))+e[10]-1051523|0)<<15|i>>>17)+o|0)|~r))+e[1]-2054922799|0)<<21|n>>>11)+i|0,n=((n+=((o=((o+=(n^((r=((r+=(i^(n|~o))+e[8]+1873313359|0)<<6|r>>>26)+n|0)|~i))+e[15]-30611744|0)<<10|o>>>22)+r|0)^((i=((i+=(r^(o|~n))+e[6]-1560198380|0)<<15|i>>>17)+o|0)|~r))+e[13]+1309151649|0)<<21|n>>>11)+i|0,n=((n+=((o=((o+=(n^((r=((r+=(i^(n|~o))+e[4]-145523070|0)<<6|r>>>26)+n|0)|~i))+e[11]-1120210379|0)<<10|o>>>22)+r|0)^((i=((i+=(r^(o|~n))+e[2]+718787259|0)<<15|i>>>17)+o|0)|~r))+e[9]-343485551|0)<<21|n>>>11)+i|0,t[0]=r+t[0]|0,t[1]=n+t[1]|0,t[2]=i+t[2]|0,t[3]=o+t[3]|0}function l(t){var e,r=[];for(e=0;e<64;e+=4)r[e>>2]=t.charCodeAt(e)+(t.charCodeAt(e+1)<<8)+(t.charCodeAt(e+2)<<16)+(t.charCodeAt(e+3)<<24);return r}function h(t){var e,r=[];for(e=0;e<64;e+=4)r[e>>2]=t[e]+(t[e+1]<<8)+(t[e+2]<<16)+(t[e+3]<<24);return r}function i(t){var e,r,n,i,o,a,s=t.length,u=[1732584193,-271733879,-1732584194,271733878];for(e=64;e<=s;e+=64)f(u,l(t.substring(e-64,e)));for(r=(t=t.substring(e-64)).length,n=[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0],e=0;e<r;e+=1)n[e>>2]|=t.charCodeAt(e)<<(e%4<<3);if(n[e>>2]|=128<<(e%4<<3),55<e)for(f(u,n),e=0;e<16;e+=1)n[e]=0;return i=(i=8*s).toString(16).match(/(.*?)(.{0,8})$/),o=parseInt(i[2],16),a=parseInt(i[1],16)||0,n[14]=o,n[15]=a,f(u,n),u}function r(t){var e,r="";for(e=0;e<4;e+=1)r+=n[t>>8*e+4&15]+n[t>>8*e&15];return r}function a(t){var e;for(e=0;e<t.length;e+=1)t[e]=r(t[e]);return t.join("")}function o(t){return/[\u0080-\uFFFF]/.test(t)&&(t=unescape(encodeURIComponent(t))),t}function s(t){var e,r=[],n=t.length;for(e=0;e<n-1;e+=2)r.push(parseInt(t.substr(e,2),16));return String.fromCharCode.apply(String,r)}function u(){this.reset()}return"5d41402abc4b2a76b9719d911017c592"!==a(i("hello"))&&function(t,e){var r=(65535&t)+(65535&e);return(t>>16)+(e>>16)+(r>>16)<<16|65535&r},"undefined"==typeof ArrayBuffer||ArrayBuffer.prototype.slice||function(){function f(t,e){return(t=0|t||0)<0?Math.max(t+e,0):Math.min(t,e)}ArrayBuffer.prototype.slice=function(t,e){var r,n,i,o,a=this.byteLength,s=f(t,a),u=a;return e!==c&&(u=f(e,a)),u<s?new ArrayBuffer(0):(r=u-s,n=new ArrayBuffer(r),i=new Uint8Array(n),o=new Uint8Array(this,s,r),i.set(o),n)}}(),u.prototype.append=function(t){return this.appendBinary(o(t)),this},u.prototype.appendBinary=function(t){this._buff+=t,this._length+=t.length;var e,r=this._buff.length;for(e=64;e<=r;e+=64)f(this._hash,l(this._buff.substring(e-64,e)));return this._buff=this._buff.substring(e-64),this},u.prototype.end=function(t){var e,r,n=this._buff,i=n.length,o=[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0];for(e=0;e<i;e+=1)o[e>>2]|=n.charCodeAt(e)<<(e%4<<3);return this._finish(o,i),r=a(this._hash),t&&(r=s(r)),this.reset(),r},u.prototype.reset=function(){return this._buff="",this._length=0,this._hash=[1732584193,-271733879,-1732584194,271733878],this},u.prototype.getState=function(){return{buff:this._buff,length:this._length,hash:this._hash}},u.prototype.setState=function(t){return this._buff=t.buff,this._length=t.length,this._hash=t.hash,this},u.prototype.destroy=function(){delete this._hash,delete this._buff,delete this._length},u.prototype._finish=function(t,e){var r,n,i,o=e;if(t[o>>2]|=128<<(o%4<<3),55<o)for(f(this._hash,t),o=0;o<16;o+=1)t[o]=0;r=(r=8*this._length).toString(16).match(/(.*?)(.{0,8})$/),n=parseInt(r[2],16),i=parseInt(r[1],16)||0,t[14]=n,t[15]=i,f(this._hash,t)},u.hash=function(t,e){return u.hashBinary(o(t),e)},u.hashBinary=function(t,e){var r=a(i(t));return e?s(r):r},(u.ArrayBuffer=function(){this.reset()}).prototype.append=function(t){var e,r,n,i,o,a=(r=this._buff.buffer,n=t,i=!0,(o=new Uint8Array(r.byteLength+n.byteLength)).set(new Uint8Array(r)),o.set(new Uint8Array(n),r.byteLength),i?o:o.buffer),s=a.length;for(this._length+=t.byteLength,e=64;e<=s;e+=64)f(this._hash,h(a.subarray(e-64,e)));return this._buff=e-64<s?new Uint8Array(a.buffer.slice(e-64)):new Uint8Array(0),this},u.ArrayBuffer.prototype.end=function(t){var e,r,n=this._buff,i=n.length,o=[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0];for(e=0;e<i;e+=1)o[e>>2]|=n[e]<<(e%4<<3);return this._finish(o,i),r=a(this._hash),t&&(r=s(r)),this.reset(),r},u.ArrayBuffer.prototype.reset=function(){return this._buff=new Uint8Array(0),this._length=0,this._hash=[1732584193,-271733879,-1732584194,271733878],this},u.ArrayBuffer.prototype.getState=function(){var t,e=u.prototype.getState.call(this);return e.buff=(t=e.buff,String.fromCharCode.apply(null,new Uint8Array(t))),e},u.ArrayBuffer.prototype.setState=function(t){return t.buff=function(t,e){var r,n=t.length,i=new ArrayBuffer(n),o=new Uint8Array(i);for(r=0;r<n;r+=1)o[r]=t.charCodeAt(r);return e?o:i}(t.buff,!0),u.prototype.setState.call(this,t)},u.ArrayBuffer.prototype.destroy=u.prototype.destroy,u.ArrayBuffer.prototype._finish=u.prototype._finish,u.ArrayBuffer.hash=function(t,e){var r=a(function(t){var e,r,n,i,o,a,s=t.length,u=[1732584193,-271733879,-1732584194,271733878];for(e=64;e<=s;e+=64)f(u,h(t.subarray(e-64,e)));for(r=(t=e-64<s?t.subarray(e-64):new Uint8Array(0)).length,n=[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0],e=0;e<r;e+=1)n[e>>2]|=t[e]<<(e%4<<3);if(n[e>>2]|=128<<(e%4<<3),55<e)for(f(u,n),e=0;e<16;e+=1)n[e]=0;return i=(i=8*s).toString(16).match(/(.*?)(.{0,8})$/),o=parseInt(i[2],16),a=parseInt(i[1],16)||0,n[14]=o,n[15]=a,f(u,n),u}(new Uint8Array(t)));return e?s(r):r},u})},{}],74:[function(t,e,r){e.exports=n;var c=t(14).EventEmitter;function n(){c.call(this)}t(18)(n,c),n.Readable=t(85),n.Writable=t(87),n.Duplex=t(75),n.Transform=t(86),n.PassThrough=t(84),(n.Stream=n).prototype.pipe=function(e,t){var r=this;function n(t){e.writable&&!1===e.write(t)&&r.pause&&r.pause()}function i(){r.readable&&r.resume&&r.resume()}r.on("data",n),e.on("drain",i),e._isStdio||t&&!1===t.end||(r.on("end",a),r.on("close",s));var o=!1;function a(){o||(o=!0,e.end())}function s(){o||(o=!0,"function"==typeof e.destroy&&e.destroy())}function u(t){if(f(),0===c.listenerCount(this,"error"))throw t}function f(){r.removeListener("data",n),e.removeListener("drain",i),r.removeListener("end",a),r.removeListener("close",s),r.removeListener("error",u),e.removeListener("error",u),r.removeListener("end",f),r.removeListener("close",f),e.removeListener("close",f)}return r.on("error",u),e.on("error",u),r.on("end",f),r.on("close",f),e.on("close",f),e.emit("pipe",r),e}},{14:14,18:18,75:75,84:84,85:85,86:86,87:87}],75:[function(t,e,r){e.exports=t(76)},{76:76}],76:[function(t,e,r){arguments[4][24][0].apply(r,arguments)},{10:10,18:18,24:24,61:61,78:78,80:80}],77:[function(t,e,r){arguments[4][25][0].apply(r,arguments)},{10:10,18:18,25:25,79:79}],78:[function(t,e,r){arguments[4][26][0].apply(r,arguments)},{10:10,14:14,18:18,20:20,26:26,61:61,62:62,7:7,72:72,76:76,81:81,82:82,83:83,88:88}],79:[function(t,e,r){arguments[4][27][0].apply(r,arguments)},{10:10,18:18,27:27,76:76}],80:[function(t,e,r){arguments[4][28][0].apply(r,arguments)},{10:10,101:101,102:102,18:18,28:28,61:61,62:62,72:72,76:76,82:82,83:83}],81:[function(t,e,r){arguments[4][29][0].apply(r,arguments)},{29:29,7:7,72:72}],82:[function(t,e,r){arguments[4][30][0].apply(r,arguments)},{30:30,61:61}],83:[function(t,e,r){arguments[4][31][0].apply(r,arguments)},{14:14,31:31}],84:[function(t,e,r){e.exports=t(85).PassThrough},{85:85}],85:[function(t,e,r){arguments[4][32][0].apply(r,arguments)},{32:32,76:76,77:77,78:78,79:79,80:80}],86:[function(t,e,r){e.exports=t(85).Transform},{85:85}],87:[function(t,e,r){e.exports=t(80)},{80:80}],88:[function(t,e,r){"use strict";var n=t(72).Buffer,i=n.isEncoding||function(t){switch((t=""+t)&&t.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}};function o(t){var e;switch(this.encoding=function(t){var e=function(t){if(!t)return"utf8";for(var e;;)switch(t){case"utf8":case"utf-8":return"utf8";case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return"utf16le";case"latin1":case"binary":return"latin1";case"base64":case"ascii":case"hex":return t;default:if(e)return;t=(""+t).toLowerCase(),e=!0}}(t);if("string"!=typeof e&&(n.isEncoding===i||!i(t)))throw new Error("Unknown encoding: "+t);return e||t}(t),this.encoding){case"utf16le":this.text=u,this.end=f,e=4;break;case"utf8":this.fillLast=s,e=4;break;case"base64":this.text=c,this.end=l,e=3;break;default:return this.write=h,void(this.end=p)}this.lastNeed=0,this.lastTotal=0,this.lastChar=n.allocUnsafe(e)}function a(t){return t<=127?0:t>>5==6?2:t>>4==14?3:t>>3==30?4:t>>6==2?-1:-2}function s(t){var e=this.lastTotal-this.lastNeed,r=function(t,e,r){if(128!=(192&e[0]))return t.lastNeed=0,"�";if(1<t.lastNeed&&1<e.length){if(128!=(192&e[1]))return t.lastNeed=1,"�";if(2<t.lastNeed&&2<e.length&&128!=(192&e[2]))return t.lastNeed=2,"�"}}(this,t);return void 0!==r?r:this.lastNeed<=t.length?(t.copy(this.lastChar,e,0,this.lastNeed),this.lastChar.toString(this.encoding,0,this.lastTotal)):(t.copy(this.lastChar,e,0,t.length),void(this.lastNeed-=t.length))}function u(t,e){if((t.length-e)%2==0){var r=t.toString("utf16le",e);if(r){var n=r.charCodeAt(r.length-1);if(55296<=n&&n<=56319)return this.lastNeed=2,this.lastTotal=4,this.lastChar[0]=t[t.length-2],this.lastChar[1]=t[t.length-1],r.slice(0,-1)}return r}return this.lastNeed=1,this.lastTotal=2,this.lastChar[0]=t[t.length-1],t.toString("utf16le",e,t.length-1)}function f(t){var e=t&&t.length?this.write(t):"";if(this.lastNeed){var r=this.lastTotal-this.lastNeed;return e+this.lastChar.toString("utf16le",0,r)}return e}function c(t,e){var r=(t.length-e)%3;return 0===r?t.toString("base64",e):(this.lastNeed=3-r,this.lastTotal=3,1===r?this.lastChar[0]=t[t.length-1]:(this.lastChar[0]=t[t.length-2],this.lastChar[1]=t[t.length-1]),t.toString("base64",e,t.length-r))}function l(t){var e=t&&t.length?this.write(t):"";return this.lastNeed?e+this.lastChar.toString("base64",0,3-this.lastNeed):e}function h(t){return t.toString(this.encoding)}function p(t){return t&&t.length?this.write(t):""}(r.StringDecoder=o).prototype.write=function(t){if(0===t.length)return"";var e,r;if(this.lastNeed){if(void 0===(e=this.fillLast(t)))return"";r=this.lastNeed,this.lastNeed=0}else r=0;return r<t.length?e?e+this.text(t,r):this.text(t,r):e||""},o.prototype.end=function(t){var e=t&&t.length?this.write(t):"";return this.lastNeed?e+"�":e},o.prototype.text=function(t,e){var r=function(t,e,r){var n=e.length-1;if(n<r)return 0;var i=a(e[n]);if(0<=i)return 0<i&&(t.lastNeed=i-1),i;if(--n<r||-2===i)return 0;if(0<=(i=a(e[n])))return 0<i&&(t.lastNeed=i-2),i;if(--n<r||-2===i)return 0;if(0<=(i=a(e[n])))return 0<i&&(2===i?i=0:t.lastNeed=i-3),i;return 0}(this,t,e);if(!this.lastNeed)return t.toString("utf8",e);this.lastTotal=r;var n=t.length-(r-this.lastNeed);return t.copy(this.lastChar,0,n),t.toString("utf8",e,n)},o.prototype.fillLast=function(t){if(this.lastNeed<=t.length)return t.copy(this.lastChar,this.lastTotal-this.lastNeed,0,this.lastNeed),this.lastChar.toString(this.encoding,0,this.lastTotal);t.copy(this.lastChar,this.lastTotal-this.lastNeed,0,t.length),this.lastNeed-=t.length}},{72:72}],89:[function(t,e,r){arguments[4][24][0].apply(r,arguments)},{10:10,18:18,24:24,61:61,91:91,93:93}],90:[function(t,e,r){arguments[4][25][0].apply(r,arguments)},{10:10,18:18,25:25,92:92}],91:[function(t,e,r){arguments[4][26][0].apply(r,arguments)},{10:10,14:14,18:18,20:20,26:26,61:61,62:62,7:7,72:72,88:88,89:89,94:94,95:95,96:96}],92:[function(t,e,r){arguments[4][27][0].apply(r,arguments)},{10:10,18:18,27:27,89:89}],93:[function(t,e,r){arguments[4][28][0].apply(r,arguments)},{10:10,101:101,102:102,18:18,28:28,61:61,62:62,72:72,89:89,95:95,96:96}],94:[function(t,e,r){arguments[4][29][0].apply(r,arguments)},{29:29,7:7,72:72}],95:[function(t,e,r){arguments[4][30][0].apply(r,arguments)},{30:30,61:61}],96:[function(t,e,r){arguments[4][31][0].apply(r,arguments)},{14:14,31:31}],97:[function(t,e,r){arguments[4][32][0].apply(r,arguments)},{32:32,89:89,90:90,91:91,92:92,93:93}],98:[function(t,e,r){arguments[4][86][0].apply(r,arguments)},{86:86,97:97}],99:[function(t,e,r){arguments[4][33][0].apply(r,arguments)},{33:33}],100:[function(n,u,t){(function(r){var e=n(98),i=n(104).inherits,o=n(99);function a(t){e.call(this,t),this._destroyed=!1}function s(t,e,r){r(null,t)}function t(n){return function(t,e,r){return"function"==typeof t&&(r=e,e=t,t={}),"function"!=typeof e&&(e=s),"function"!=typeof r&&(r=null),n(t,e,r)}}i(a,e),a.prototype.destroy=function(t){if(!this._destroyed){this._destroyed=!0;var e=this;r.nextTick(function(){t&&e.emit("error",t),e.emit("close")})}},u.exports=t(function(t,e,r){var n=new a(t);return n._transform=e,r&&(n._flush=r),n}),u.exports.ctor=t(function(e,t,r){function n(t){if(!(this instanceof n))return new n(t);this.options=o(e,t),a.call(this,this.options)}return i(n,a),n.prototype._transform=t,r&&(n.prototype._flush=r),n}),u.exports.obj=t(function(t,e,r){var n=new a(o({objectMode:!0,highWaterMark:16},t));return n._transform=e,r&&(n._flush=r),n})}).call(this,n(62))},{104:104,62:62,98:98,99:99}],101:[function(u,t,f){(function(t,e){var n=u(62).nextTick,r=Function.prototype.apply,i=Array.prototype.slice,o={},a=0;function s(t,e){this._id=t,this._clearFn=e}f.setTimeout=function(){return new s(r.call(setTimeout,window,arguments),clearTimeout)},f.setInterval=function(){return new s(r.call(setInterval,window,arguments),clearInterval)},f.clearTimeout=f.clearInterval=function(t){t.close()},s.prototype.unref=s.prototype.ref=function(){},s.prototype.close=function(){this._clearFn.call(window,this._id)},f.enroll=function(t,e){clearTimeout(t._idleTimeoutId),t._idleTimeout=e},f.unenroll=function(t){clearTimeout(t._idleTimeoutId),t._idleTimeout=-1},f._unrefActive=f.active=function(t){clearTimeout(t._idleTimeoutId);var e=t._idleTimeout;0<=e&&(t._idleTimeoutId=setTimeout(function(){t._onTimeout&&t._onTimeout()},e))},f.setImmediate="function"==typeof t?t:function(t){var e=a++,r=!(arguments.length<2)&&i.call(arguments,1);return o[e]=!0,n(function(){o[e]&&(r?t.apply(null,r):t.call(null),f.clearImmediate(e))}),e},f.clearImmediate="function"==typeof e?e:function(t){delete o[t]}}).call(this,u(101).setImmediate,u(101).clearImmediate)},{101:101,62:62}],102:[function(t,e,r){(function(r){function n(t){try{if(!r.localStorage)return!1}catch(t){return!1}var e=r.localStorage[t];return null!=e&&"true"===String(e).toLowerCase()}e.exports=function(t,e){if(n("noDeprecation"))return t;var r=!1;return function(){if(!r){if(n("throwDeprecation"))throw new Error(e);n("traceDeprecation")?console.trace(e):console.warn(e),r=!0}return t.apply(this,arguments)}}}).call(this,"undefined"!=typeof global?global:"undefined"!=typeof self?self:"undefined"!=typeof window?window:{})},{}],103:[function(t,e,r){arguments[4][4][0].apply(r,arguments)},{4:4}],104:[function(t,e,r){arguments[4][5][0].apply(r,arguments)},{103:103,18:18,5:5,62:62}],105:[function(t,e,r){var n=t(108),i=t(109),o=i;o.v1=n,o.v4=i,e.exports=o},{108:108,109:109}],106:[function(t,e,r){for(var i=[],n=0;n<256;++n)i[n]=(n+256).toString(16).substr(1);e.exports=function(t,e){var r=e||0,n=i;return n[t[r++]]+n[t[r++]]+n[t[r++]]+n[t[r++]]+"-"+n[t[r++]]+n[t[r++]]+"-"+n[t[r++]]+n[t[r++]]+"-"+n[t[r++]]+n[t[r++]]+"-"+n[t[r++]]+n[t[r++]]+n[t[r++]]+n[t[r++]]+n[t[r++]]+n[t[r++]]}},{}],107:[function(t,e,r){var n="undefined"!=typeof crypto&&crypto.getRandomValues.bind(crypto)||"undefined"!=typeof msCrypto&&msCrypto.getRandomValues.bind(msCrypto);if(n){var i=new Uint8Array(16);e.exports=function(){return n(i),i}}else{var o=new Array(16);e.exports=function(){for(var t,e=0;e<16;e++)0==(3&e)&&(t=4294967296*Math.random()),o[e]=t>>>((3&e)<<3)&255;return o}}},{}],108:[function(t,e,r){var d,g,y=t(107),v=t(106),_=0,b=0;e.exports=function(t,e,r){var n=e&&r||0,i=e||[],o=(t=t||{}).node||d,a=void 0!==t.clockseq?t.clockseq:g;if(null==o||null==a){var s=y();null==o&&(o=d=[1|s[0],s[1],s[2],s[3],s[4],s[5]]),null==a&&(a=g=16383&(s[6]<<8|s[7]))}var u=void 0!==t.msecs?t.msecs:(new Date).getTime(),f=void 0!==t.nsecs?t.nsecs:b+1,c=u-_+(f-b)/1e4;if(c<0&&void 0===t.clockseq&&(a=a+1&16383),(c<0||_<u)&&void 0===t.nsecs&&(f=0),1e4<=f)throw new Error("uuid.v1(): Can't create more than 10M uuids/sec");_=u,g=a;var l=(1e4*(268435455&(u+=122192928e5))+(b=f))%4294967296;i[n++]=l>>>24&255,i[n++]=l>>>16&255,i[n++]=l>>>8&255,i[n++]=255&l;var h=u/4294967296*1e4&268435455;i[n++]=h>>>8&255,i[n++]=255&h,i[n++]=h>>>24&15|16,i[n++]=h>>>16&255,i[n++]=a>>>8|128,i[n++]=255&a;for(var p=0;p<6;++p)i[n+p]=o[p];return e||v(i)}},{106:106,107:107}],109:[function(t,e,r){var a=t(107),s=t(106);e.exports=function(t,e,r){var n=e&&r||0;"string"==typeof t&&(e="binary"===t?new Array(16):null,t=null);var i=(t=t||{}).random||(t.rng||a)();if(i[6]=15&i[6]|64,i[8]=63&i[8]|128,e)for(var o=0;o<16;++o)e[n+o]=i[o];return e||s(i)}},{106:106,107:107}],110:[function(t,e,r){"use strict";function p(t,e,r){var n=r[r.length-1];t===n.element&&(r.pop(),n=r[r.length-1]);var i=n.element,o=n.index;if(Array.isArray(i))i.push(t);else if(o===e.length-2){i[e.pop()]=t}else e.push(t)}r.stringify=function(t){var e=[];e.push({obj:t});for(var r,n,i,o,a,s,u,f,c,l,h="";r=e.pop();)if(n=r.obj,h+=r.prefix||"",i=r.val||"")h+=i;else if("object"!=typeof n)h+=void 0===n?null:JSON.stringify(n);else if(null===n)h+="null";else if(Array.isArray(n)){for(e.push({val:"]"}),o=n.length-1;0<=o;o--)a=0===o?"":",",e.push({obj:n[o],prefix:a});e.push({val:"["})}else{for(u in s=[],n)n.hasOwnProperty(u)&&s.push(u);for(e.push({val:"}"}),o=s.length-1;0<=o;o--)c=n[f=s[o]],l=0<o?",":"",l+=JSON.stringify(f)+":",e.push({obj:c,prefix:l});e.push({val:"{"})}return h},r.parse=function(t){for(var e,r,n,i,o,a,s,u,f,c=[],l=[],h=0;;)if("}"!==(e=t[h++])&&"]"!==e&&void 0!==e)switch(e){case" ":case"\t":case"\n":case":":case",":break;case"n":h+=3,p(null,c,l);break;case"t":h+=3,p(!0,c,l);break;case"f":h+=4,p(!1,c,l);break;case"0":case"1":case"2":case"3":case"4":case"5":case"6":case"7":case"8":case"9":case"-":for(r="",h--;;){if(n=t[h++],!/[\d\.\-e\+]/.test(n)){h--;break}r+=n}p(parseFloat(r),c,l);break;case'"':for(i="",o=void 0,a=0;'"'!==(s=t[h++])||"\\"===o&&a%2==1;)i+=s,"\\"===(o=s)?a++:a=0;p(JSON.parse('"'+i+'"'),c,l);break;case"[":u={element:[],index:c.length},c.push(u.element),l.push(u);break;case"{":f={element:{},index:c.length},c.push(f.element),l.push(f);break;default:throw new Error("unexpectedly reached end of input: "+e)}else{if(1===c.length)return c.pop();p(c.pop(),c,l)}}},{}],111:[function(te,t,e){(function(t){"use strict";function e(t){return t&&"object"==typeof t&&"default"in t?t.default:t}var d=e(te(1)),g=e(te(17)),r=te(14),n=e(r),i=e(te(18)),h=e(te(73)),o=e(te(105)),a=e(te(45)),s=e(te(71)),u=e(te(21)),f=e(te(110)),y=e(te(35)),w=te(100),v=e(te(11)),L=e(te(8)),c=e(te(47));function l(t){if(t instanceof ArrayBuffer)return function(t){if("function"==typeof t.slice)return t.slice(0);var e=new ArrayBuffer(t.byteLength),r=new Uint8Array(e),n=new Uint8Array(t);return r.set(n),e}(t);var e=t.size,r=t.type;return"function"==typeof t.slice?t.slice(0,e,r):t.webkitSlice(0,e,r)}var E,C,p,_=Function.prototype.toString,b=_.call(Object);function k(t){var e,r,n,i;if(!t||"object"!=typeof t)return t;if(Array.isArray(t)){for(e=[],r=0,n=t.length;r<n;r++)e[r]=k(t[r]);return e}if(t instanceof Date)return t.toISOString();if(i=t,"undefined"!=typeof ArrayBuffer&&i instanceof ArrayBuffer||"undefined"!=typeof Blob&&i instanceof Blob)return l(t);if(!function(t){var e=Object.getPrototypeOf(t);if(null===e)return!0;var r=e.constructor;return"function"==typeof r&&r instanceof r&&_.call(r)==b}(t))return t;for(r in e={},t)if(Object.prototype.hasOwnProperty.call(t,r)){var o=k(t[r]);void 0!==o&&(e[r]=o)}return e}function m(t){return"$"+t}function S(){this._store={}}function x(t){if(this._store=new S,t&&Array.isArray(t))for(var e=0,r=t.length;e<r;e++)this.add(t[e])}S.prototype.get=function(t){var e=m(t);return this._store[e]},S.prototype.set=function(t,e){var r=m(t);return this._store[r]=e,!0},S.prototype.has=function(t){return m(t)in this._store},S.prototype.delete=function(t){var e=m(t),r=e in this._store;return delete this._store[e],r},S.prototype.forEach=function(t){for(var e=Object.keys(this._store),r=0,n=e.length;r<n;r++){var i=e[r];t(this._store[i],i=i.substring(1))}},Object.defineProperty(S.prototype,"size",{get:function(){return Object.keys(this._store).length}}),x.prototype.add=function(t){return this._store.set(t,!0)},x.prototype.has=function(t){return this._store.has(t)},x.prototype.forEach=function(r){this._store.forEach(function(t,e){r(e)})},Object.defineProperty(x.prototype,"size",{get:function(){return this._store.size}}),!function(){if("undefined"==typeof Symbol||"undefined"==typeof Map||"undefined"==typeof Set)return!1;var t=Object.getOwnPropertyDescriptor(Map,Symbol.species);return t&&"get"in t&&Map[Symbol.species]===Map}()?(E=x,C=S):(E=Set,C=Map);try{localStorage.setItem("_pouch_check_localstorage",1),p=!!localStorage.getItem("_pouch_check_localstorage")}catch(t){p=!1}function B(){return p}function O(){var e;r.EventEmitter.call(this),this._listeners={},e=this,B()&&addEventListener("storage",function(t){e.emit(t.key)})}i(O,r.EventEmitter),O.prototype.addListener=function(t,e,r,n){if(!this._listeners[e]){var i=this,o=!1;this._listeners[e]=a,this.on(t,a)}function a(){if(i._listeners[e])if(o)o="waiting";else{o=!0;var t=function(t,e){for(var r={},n=0,i=e.length;n<i;n++){var o=e[n];o in t&&(r[o]=t[o])}return r}(n,["style","include_docs","attachments","conflicts","filter","doc_ids","view","since","query_params","binary","return_docs"]);r.changes(t).on("change",function(t){t.seq>n.since&&!n.cancelled&&(n.since=t.seq,n.onChange(t))}).on("complete",function(){"waiting"===o&&g(a),o=!1}).on("error",function(){o=!1})}}},O.prototype.removeListener=function(t,e){e in this._listeners&&(r.EventEmitter.prototype.removeListener.call(this,t,this._listeners[e]),delete this._listeners[e])},O.prototype.notifyLocalWindows=function(t){B()&&(localStorage[t]="a"===localStorage[t]?"b":"a")},O.prototype.notify=function(t){this.emit(t),this.notifyLocalWindows(t)};var A="function"==typeof Object.assign?Object.assign:function(t){for(var e=Object(t),r=1;r<arguments.length;r++){var n=arguments[r];if(null!=n)for(var i in n)Object.prototype.hasOwnProperty.call(n,i)&&(e[i]=n[i])}return e};function T(t,e,r){Error.call(this,r),this.status=t,this.name=e,this.message=r,this.error=!0}i(T,Error),T.prototype.toString=function(){return JSON.stringify({status:this.status,name:this.name,message:this.message,reason:this.reason})};new T(401,"unauthorized","Name or password is incorrect."),new T(400,"bad_request","Missing JSON list of 'docs'");var M=new T(404,"not_found","missing"),R=new T(409,"conflict","Document update conflict"),j=new T(400,"bad_request","_id field must contain a string"),N=new T(412,"missing_id","_id is required for puts"),q=new T(400,"bad_request","Only reserved document ids may start with underscore."),I=new T(412,"precondition_failed","Database not open"),D=(new T(500,"unknown_error","Database encountered an unknown error"),new T(500,"badarg","Some query argument is invalid")),P=(new T(400,"invalid_request","Request was invalid"),new T(400,"query_parse_error","Some query parameter is invalid"),new T(500,"doc_validation","Bad special document member")),U=new T(400,"bad_request","Something wrong with the request"),W=(new T(400,"bad_request","Document must be a JSON object"),new T(404,"not_found","Database not found"),new T(500,"indexed_db_went_bad","unknown"),new T(500,"web_sql_went_bad","unknown"),new T(500,"levelDB_went_went_bad","unknown"),new T(403,"forbidden","Forbidden by design doc validate_doc_update function"),new T(400,"bad_request","Invalid rev format")),F=(new T(412,"file_exists","The database could not be created, the file already exists."),new T(412,"missing_stub","A pre-existing attachment stub wasn't found"));new T(413,"invalid_url","Provided URL is invalid");function z(r,t){function e(t){for(var e in r)"function"!=typeof r[e]&&(this[e]=r[e]);void 0!==t&&(this.reason=t)}return e.prototype=T.prototype,new e(t)}function K(n){var i={},o=n.filter&&"function"==typeof n.filter;return i.query=n.query_params,function(t){t.doc||(t.doc={});var e=o&&function(t,e,r){try{return!t(e,r)}catch(t){var n="Filter function threw: "+t.toString();return z(U,n)}}(n.filter,t.doc,i);if("object"==typeof e)return e;if(e)return!1;if(n.include_docs){if(!n.attachments)for(var r in t.doc._attachments)t.doc._attachments.hasOwnProperty(r)&&(t.doc._attachments[r].stub=!0)}else delete t.doc;return!0}}var V=function(){}.name?function(t){return t.name}:function(t){var e=t.toString().match(/^\s*function\s*(?:(\S+)\s*)?\(/);return e&&e[1]?e[1]:""};var H=function(t){return atob(t)},J=function(t){return btoa(t)};function Y(e,r){e=e||[],r=r||{};try{return new Blob(e,r)}catch(t){if("TypeError"!==t.name)throw t;for(var n=new("undefined"!=typeof BlobBuilder?BlobBuilder:"undefined"!=typeof MSBlobBuilder?MSBlobBuilder:"undefined"!=typeof MozBlobBuilder?MozBlobBuilder:WebKitBlobBuilder),i=0;i<e.length;i+=1)n.append(e[i]);return n.getBlob(r.type)}}function $(t,e){return Y([function(t){for(var e=t.length,r=new ArrayBuffer(e),n=new Uint8Array(r),i=0;i<e;i++)n[i]=t.charCodeAt(i);return r}(t)],{type:e})}function G(t,r){var e=new FileReader,n="function"==typeof e.readAsBinaryString;e.onloadend=function(t){var e=t.target.result||"";if(n)return r(e);r(function(t){for(var e="",r=new Uint8Array(t),n=r.byteLength,i=0;i<n;i++)e+=String.fromCharCode(r[i]);return e}(e))},n?e.readAsBinaryString(t):e.readAsArrayBuffer(t)}var X=t.setImmediate||t.setTimeout,Z=32768;function Q(e,t,r,n,i){var o,a,s,u,f,c;(0<r||n<t.size)&&(a=r,s=n,t=(o=t).webkitSlice?o.webkitSlice(a,s):o.slice(a,s)),u=t,f=function(t){e.append(t),i()},(c=new FileReader).onloadend=function(t){var e=t.target.result||new ArrayBuffer(0);f(e)},c.readAsArrayBuffer(u)}function tt(t,e,r,n,i){(0<r||n<e.length)&&(e=e.substring(r,n)),t.appendBinary(e),i()}function et(r,n){var t="string"==typeof r,e=t?r.length:r.size,i=Math.min(Z,e),o=Math.ceil(e/i),a=0,s=t?new h:new h.ArrayBuffer,u=t?tt:Q;function f(){X(l)}function c(){var t=s.end(!0),e=J(t);n(e),s.destroy()}function l(){var t=a*i,e=t+i;u(s,r,t,e,++a<o?f:c)}l()}function rt(t,e){var r,n=k(t);return e?(delete n._rev_tree,r=JSON.stringify(n),h.hash(r)):o.v4().replace(/-/g,"").toLowerCase()}var nt=o.v4;function it(){Error.call(this)}i(it,Error),it.prototype.name="NotFoundError";var ot=n.EventEmitter,at=new it,st=function(i,o,n,a){var s=new ot;function u(t){var e,r={};if(a)for(e in a)void 0!==a[e]&&(r[e]=a[e]);if(t)for(e in t)void 0!==t[e]&&(r[e]=t[e]);return r}return s.sublevels={},s.options=a,s.version="6.5.4",s.methods={},o=o||[],s.put=function(e,r,t,n){"function"==typeof t&&(n=t,t={}),i.apply([{key:e,value:r,prefix:o.slice(),type:"put"}],u(t),function(t){if(t)return n(t);s.emit("put",e,r),n(null)})},s.prefix=function(){return o.slice()},s.batch=function(e,t,r){"function"==typeof t&&(r=t,t={}),e=e.map(function(t){return{key:t.key,value:t.value,prefix:t.prefix||o,keyEncoding:t.keyEncoding,valueEncoding:t.valueEncoding,type:t.type}}),i.apply(e,u(t),function(t){if(t)return r(t);s.emit("batch",e),r(null)})},s.get=function(t,e,r){"function"==typeof e&&(r=e,e={}),i.get(t,o,u(e),function(t,e){t?r(at):r(null,e)})},s.sublevel=function(t,e){return s.sublevels[t]=s.sublevels[t]||st(i,o.concat(t),n,u(e))},s.readStream=s.createReadStream=function(t){var e;(t=u(t)).prefix=o;var r=i.iterator(t);return(e=n(t,i.createDecoder(t))).setIterator(r),e},s.close=function(t){i.close(t)},s.isOpen=i.isOpen,s.isClosed=i.isClosed,s},ut=s.Readable;function ft(t,e){if(!(this instanceof ft))return new ft(t,e);ut.call(this,{objectMode:!0,highWaterMark:t.highWaterMark}),this._waiting=!1,this._options=t,this._makeData=e}i(ft,ut),ft.prototype.setIterator=function(t){return this._iterator=t,this._destroyed?t.end(function(){}):this._waiting?(this._waiting=!1,this._read()):this},ft.prototype._read=function(){var n=this;if(!n._destroyed)return n._iterator?void n._iterator.next(function(t,e,r){if(t||void 0===e&&void 0===r)return t||n._destroyed||n.push(null),n._cleanup(t);r=n._makeData(e,r),n._destroyed||n.push(r)}):this._waiting=!0},ft.prototype._cleanup=function(t){if(!this._destroyed){this._destroyed=!0;var e=this;t&&"iterator has ended"!==t.message&&e.emit("error",t),e._iterator?e._iterator.end(function(){e._iterator=null,e.emit("close")}):e.emit("close")}},ft.prototype.destroy=function(){this._cleanup()};var ct={encode:function(t){return"ÿ"+t[0]+"ÿ"+t[1]},decode:function(t){var e=t.toString(),r=e.indexOf("ÿ",1);return[e.substring(1,r),e.substring(r+1)]},lowerBound:"\0",upperBound:"ÿ"},lt=new u;function ht(t){return st(function(c,i,l){function h(t,e,r,n){return i.encode([t,l.encodeKey(e,r,n)])}return c.open(function(){}),{apply:function(t,e,r){e=e||{};for(var n,i,o,a=[],s=-1,u=t.length;++s<u;){var f=t[s];(o=(i=f).prefix)&&o.options&&(i.keyEncoding=i.keyEncoding||o.options.keyEncoding,i.valueEncoding=i.valueEncoding||o.options.valueEncoding),f.prefix="function"==typeof(n=f.prefix).prefix?n.prefix():n,a.push({key:h(f.prefix,f.key,e,f),value:"del"!==f.type&&l.encodeValue(f.value,e,f),type:f.type})}c.db.batch(a,e,r)},get:function(t,e,r,n){return r.asBuffer=l.valueAsBuffer(r),c.db.get(h(e,t,r),r,function(t,e){t?n(t):n(null,l.decodeValue(e,r))})},createDecoder:function(r){return function(t,e){return{key:l.decodeKey(i.decode(t)[1],r),value:l.decodeValue(e,r)}}},isClosed:function(){return c.isClosed()},close:function(t){return c.close(t)},iterator:function(t){var e,r=function(t){var e={};for(var r in t)e[r]=t[r];return e}(t||{}),n=t.prefix||[];return a.toLtgt(t,r,function(t){return h(n,t,r,{})},i.lowerBound,i.upperBound),r.prefix=null,r.keyAsBuffer=r.valueAsBuffer=!1,"number"!=typeof r.limit&&(r.limit=-1),r.keyAsBuffer=i.buffer,r.valueAsBuffer=l.valueAsBuffer(r),e=c.db.iterator(r),{next:function(t){return e.next(t)},end:function(t){e.end(t)}}}}}(t,ct,lt),[],ft,t.options)}function pt(t){return t.reduce(function(t,e){return t[e]=!0,t},{})}var dt=pt(["_id","_rev","_attachments","_deleted","_revisions","_revs_info","_conflicts","_deleted_conflicts","_local_seq","_rev_tree","_replication_id","_replication_state","_replication_state_time","_replication_state_reason","_replication_stats","_removed"]),gt=pt(["_attachments","_replication_id","_replication_state","_replication_state_time","_replication_state_reason","_replication_stats"]);function yt(t){if(!/^\d+-./.test(t))return z(W);var e=t.indexOf("-"),r=t.substring(0,e),n=t.substring(e+1);return{prefix:parseInt(r,10),id:n}}function vt(t,e,r){var n,i,o;r||(r={deterministic_revs:!0});var a={status:"available"};if(t._deleted&&(a.deleted=!0),e)if(t._id||(t._id=nt()),i=rt(t,r.deterministic_revs),t._rev){if((o=yt(t._rev)).error)return o;t._rev_tree=[{pos:o.prefix,ids:[o.id,{status:"missing"},[[i,a,[]]]]}],n=o.prefix+1}else t._rev_tree=[{pos:1,ids:[i,a,[]]}],n=1;else if(t._revisions&&(t._rev_tree=function(t,e){for(var r=t.start-t.ids.length+1,n=t.ids,i=[n[0],e,[]],o=1,a=n.length;o<a;o++)i=[n[o],{status:"missing"},[i]];return[{pos:r,ids:i}]}(t._revisions,a),n=t._revisions.start,i=t._revisions.ids[0]),!t._rev_tree){if((o=yt(t._rev)).error)return o;n=o.prefix,i=o.id,t._rev_tree=[{pos:n,ids:[i,a,[]]}]}!function(t){var e;if(t?"string"!=typeof t?e=z(j):/^_/.test(t)&&!/^_(design|local)/.test(t)&&(e=z(q)):e=z(N),e)throw e}(t._id),t._rev=n+"-"+i;var s={metadata:{},data:{}};for(var u in t)if(Object.prototype.hasOwnProperty.call(t,u)){var f="_"===u[0];if(f&&!dt[u]){var c=z(P,u);throw c.message=P.message+": "+u,c}f&&!gt[u]?s.metadata[u.slice(1)]=t[u]:s.data[u]=t[u]}return s}function _t(t){for(var e,r,n,i,o=t.rev_tree.slice();i=o.pop();){var a=i.ids,s=a[2],u=i.pos;if(s.length)for(var f=0,c=s.length;f<c;f++)o.push({pos:u+1,ids:s[f]});else{var l=!!a[1].deleted,h=a[0];e&&!(n!==l?n:r!==u?r<u:e<h)||(e=h,r=u,n=l)}}return r+"-"+e}function bt(t,e){for(var r,n=t.slice();r=n.pop();)for(var i=r.pos,o=r.ids,a=o[2],s=e(0===a.length,i,o[0],r.ctx,o[1]),u=0,f=a.length;u<f;u++)n.push({pos:i+1,ids:a[u],ctx:s})}function mt(t,e){return t.pos-e.pos}function wt(t){for(var e=_t(t),r=function(t){var o=[];bt(t,function(t,e,r,n,i){t&&o.push({rev:e+"-"+r,pos:e,opts:i})}),o.sort(mt).reverse();for(var e=0,r=o.length;e<r;e++)delete o[e].pos;return o}(t.rev_tree),n=[],i=0,o=r.length;i<o;i++){var a=r[i];a.rev===e||a.opts.deleted||n.push(a.rev)}return n}function Et(t,e){return t.pos-e.pos}function kt(t,e){for(var r,n,i=e,o=t.length;i<o;i++){var a=t[i],s=[a.id,a.opts,[]];n?(n[2].push(s),n=s):r=n=s}return r}function St(t,e){return t[0]<e[0]?-1:1}function xt(t,e){for(var r,n,i,o=[{tree1:t,tree2:e}],a=!1;0<o.length;){var s=o.pop(),u=s.tree1,f=s.tree2;(u[1].status||f[1].status)&&(u[1].status="available"===u[1].status||"available"===f[1].status?"available":"missing");for(var c=0;c<f[2].length;c++)if(u[2][0]){for(var l=!1,h=0;h<u[2].length;h++)u[2][h][0]===f[2][c][0]&&(o.push({tree1:u[2][h],tree2:f[2][c]}),l=!0);l||(a="new_branch",r=u[2],n=f[2][c],void 0,i=function(t,e,r){for(var n,i=0,o=t.length;i<o;)r(t[n=i+o>>>1],e)<0?i=n+1:o=n;return i}(r,n,St),r.splice(i,0,n))}else a="new_leaf",u[2][0]=f[2][c]}return{conflicts:a,tree:t}}function Bt(t,e,r){var n,i=[],o=!1,a=!1;if(!t.length)return{tree:[e],conflicts:"new_leaf"};for(var s=0,u=t.length;s<u;s++){var f=t[s];if(f.pos===e.pos&&f.ids[0]===e.ids[0])n=xt(f.ids,e.ids),i.push({pos:f.pos,ids:n.tree}),o=o||n.conflicts,a=!0;else if(!0!==r){var c=f.pos<e.pos?f:e,l=f.pos<e.pos?e:f,h=l.pos-c.pos,p=[],d=[];for(d.push({ids:c.ids,diff:h,parent:null,parentIdx:null});0<d.length;){var g=d.pop();if(0!==g.diff)for(var y=g.ids[2],v=0,_=y.length;v<_;v++)d.push({ids:y[v],diff:g.diff-1,parent:g.ids,parentIdx:v});else g.ids[0]===l.ids[0]&&p.push(g)}var b=p[0];b?(n=xt(b.ids,l.ids),b.parent[2][b.parentIdx]=n.tree,i.push({pos:c.pos,ids:c.ids}),o=o||n.conflicts,a=!0):i.push(f)}else i.push(f)}return a||i.push(e),i.sort(Et),{tree:i,conflicts:o||"internal_node"}}function Ot(t,e,r){var n=Bt(t,e),i=function(t,e){for(var n,r,i=function(t){for(var e,r=[],n=t.slice();e=n.pop();){var i=e.pos,o=e.ids,a=o[0],s=o[1],u=o[2],f=0===u.length,c=e.history?e.history.slice():[];c.push({id:a,opts:s}),f&&r.push({pos:i+1-c.length,ids:c});for(var l=0,h=u.length;l<h;l++)n.push({pos:i+1,ids:u[l],history:c})}return r.reverse()}(t),o=0,a=i.length;o<a;o++){var s,u=i[o],f=u.ids;if(f.length>e){n||(n={});var c=f.length-e;s={pos:u.pos+c,ids:kt(f,c)};for(var l=0;l<c;l++){var h=u.pos+l+"-"+f[l].id;n[h]=!0}}else s={pos:u.pos,ids:kt(f,0)};r=r?Bt(r,s,!0).tree:[s]}return n&&bt(r,function(t,e,r){delete n[e+"-"+r]}),{tree:r,revs:n?Object.keys(n):[]}}(n.tree,r);return{tree:i.tree,stemmedRevs:i.revs,conflicts:n.conflicts}}function At(t){return t.ids}function Tt(t,e){e||(e=_t(t));for(var r,n=e.substring(e.indexOf("-")+1),i=t.rev_tree.map(At);r=i.pop();){if(r[0]===n)return!!r[1].deleted;i=i.concat(r[2])}}function jt(t){return/^_local/.test(t)}function Lt(t,e,r,n,i,o,a,s){if(function(t,e){for(var r,n=t.slice(),i=e.split("-"),o=parseInt(i[0],10),a=i[1];r=n.pop();){if(r.pos===o&&r.ids[0]===a)return!0;for(var s=r.ids[2],u=0,f=s.length;u<f;u++)n.push({pos:r.pos+1,ids:s[u]})}return!1}(e.rev_tree,r.metadata.rev)&&!s)return n[i]=r,o();var u=e.winningRev||_t(e),f="deleted"in e?e.deleted:Tt(e,u),c="deleted"in r.metadata?r.metadata.deleted:Tt(r.metadata),l=/^1-/.test(r.metadata.rev);if(f&&!c&&s&&l){var h=r.data;h._rev=u,h._id=r.metadata.id,r=vt(h,s)}var p=Ot(e.rev_tree,r.metadata.rev_tree[0],t);if(s&&(f&&c&&"new_leaf"!==p.conflicts||!f&&"new_leaf"!==p.conflicts||f&&!c&&"new_branch"===p.conflicts)){var d=z(R);return n[i]=d,o()}var g=r.metadata.rev;r.metadata.rev_tree=p.tree,r.stemmedRevs=p.stemmedRevs||[],e.rev_map&&(r.metadata.rev_map=e.rev_map);var y=_t(r.metadata),v=Tt(r.metadata,y),_=f===v?0:f<v?-1:1;a(r,y,v,g===y?v:Tt(r.metadata,g),!0,_,i,o)}function Ct(u,t,i,f,o,c,l,h,e){u=u||1e3;var p=h.new_edits,a=new C,r=0,s=t.length;function d(){++r===s&&e&&e()}t.forEach(function(t,r){if(t._id&&jt(t._id)){var e=t._deleted?"_removeLocal":"_putLocal";i[e](t,{ctx:o},function(t,e){c[r]=t||e,d()})}else{var n=t.metadata.id;a.has(n)?(s--,a.get(n).push([t,r])):a.set(n,[[t,r]])}}),a.forEach(function(i,o){var a=0;function s(){++a<i.length?t():d()}function t(){var t=i[a],e=t[0],r=t[1];if(f.has(o))Lt(u,f.get(o),e,c,r,s,l,p);else{var n=Ot([],e.metadata.rev_tree[0],u);e.metadata.rev_tree=n.tree,e.stemmedRevs=n.stemmedRevs||[],function(t,e,r){var n=_t(t.metadata),i=Tt(t.metadata,n);if("was_delete"in h&&i)return c[e]=z(M,"deleted"),r();if(p&&"missing"===t.metadata.rev_tree[0].ids[1].status){var o=z(R);return c[e]=o,r()}l(t,n,i,i,!1,i?0:1,e,r)}(e,r,s)}}t()})}function Mt(t,e){return Y([new Uint8Array(t)],{type:e})}function Rt(t,e){var r=e.prefix()[0],n=t._cache,i=n.get(r);return i||(i=new C,n.set(r,i)),i}function Nt(){this._batch=[],this._cache=new C}Nt.prototype.get=function(t,r,n){var i=Rt(this,t),e=i.get(r);return e?g(function(){n(null,e)}):null===e?g(function(){n({name:"NotFoundError"})}):void t.get(r,function(t,e){if(t)return"NotFoundError"===t.name&&i.set(r,null),n(t);i.set(r,e),n(null,e)})},Nt.prototype.batch=function(t){for(var e=0,r=t.length;e<r;e++){var n=t[e],i=Rt(this,n.prefix);"put"===n.type?i.set(n.key,n.value):i.set(n.key,null)}this._batch=this._batch.concat(t)},Nt.prototype.execute=function(t,e){for(var r=new E,n=[],i=this._batch.length-1;0<=i;i--){var o=this._batch[i],a=o.prefix.prefix()[0]+"ÿ"+o.key;r.has(a)||(r.add(a),n.push(o))}t.batch(n,e)};var qt="document-store",It="by-sequence",Dt="attach-store",Pt="attach-binary-store",Ut="local-store",Wt="meta-store",Ft=new C,zt="_local_last_update_seq",Kt="_local_doc_count",Vt="_local_uuid",Ht="md5-",Jt={encode:function(e){try{return JSON.stringify(e)}catch(t){return f.stringify(e)}},decode:function(e){try{return JSON.parse(e)}catch(t){return f.parse(e)}},buffer:!1,type:"cheap-json"},Yt=new O;function $t(t){return"winningRev"in t?t.winningRev:_t(t)}function Gt(t,e){return"deleted"in t?t.deleted:Tt(t,e)}function Xt(t,r,n){var i=[];return t.forEach(function(r){r.doc&&r.doc._attachments&&Object.keys(r.doc._attachments).forEach(function(t){var e=r.doc._attachments[t];"data"in e||i.push(e)})}),Promise.all(i.map(function(t){return e=r,a=n,s=(o=t).content_type,new Promise(function(n,i){e.binaryStore.get(o.digest,function(t,e){var r;if(t){if("NotFoundError"!==t.name)return i(t);r=a.binary?$("",s):""}else r=a.binary?Mt(e,s):e.toString("base64");delete o.stub,delete o.length,o.data=r,n()})});var o,e,a,s}))}function Zt(e,r){e=k(e);var n,_,b=this,T={},h=e.revs_limit,m=e.name;void 0===e.createIfMissing&&(e.createIfMissing=!0);var i,o=e.db,t=V(o);function a(){T.docStore=_.sublevel(qt,{valueEncoding:Jt}),T.bySeqStore=_.sublevel(It,{valueEncoding:"json"}),T.attachmentStore=_.sublevel(Dt,{valueEncoding:"json"}),T.binaryStore=_.sublevel(Pt,{valueEncoding:"binary"}),T.localStore=_.sublevel(Ut,{valueEncoding:"json"}),T.metaStore=_.sublevel(Wt,{valueEncoding:"json"}),"object"==typeof e.migrate?e.migrate.doMigrationTwo(_,T,s):s()}function s(){T.metaStore.get(zt,function(t,e){void 0===_._updateSeq&&(_._updateSeq=e||0),T.metaStore.get(Kt,function(t,e){_._docCount=t?0:e,T.metaStore.get(Vt,function(t,e){n=t?nt():e,T.metaStore.put(Vt,n,function(){g(function(){r(null,b)})})})})})}function u(t,e){try{t.apply(null,e)}catch(t){e[e.length-1](t)}}function f(){var t,e,r,n=_._queue.peekFront();"read"===n.type?function(t){var n=[t],e=1,r=_._queue.get(e);for(;void 0!==r&&"read"===r.type;)n.push(r),e++,r=_._queue.get(e);var i=0;n.forEach(function(t){var e=t.args,r=e[e.length-1];e[e.length-1]=d(function(t){r.apply(null,t),++i===n.length&&g(function(){n.forEach(function(){_._queue.shift()}),_._queue.length&&f()})}),u(t.fun,e)})}(n):(e=(t=n).args,r=e[e.length-1],e[e.length-1]=d(function(t){r.apply(null,t),g(function(){_._queue.shift(),_._queue.length&&f()})}),u(t.fun,e))}function c(e){return d(function(t){_._queue.push({fun:e,args:t,type:"write"}),1===_._queue.length&&g(f)})}function l(e){return d(function(t){_._queue.push({fun:e,args:t,type:"read"}),1===_._queue.length&&g(f)})}function j(t){return("0000000000000000"+t).slice(-16)}function p(t,e){"destroy"in o&&o.destroy(t,e)}Ft.has(t)?i=Ft.get(t):(i=new C,Ft.set(t,i)),i.has(m)?(_=i.get(m),a()):i.set(m,ht(y(o(m),e,function(t){if(t)return i.delete(m),r(t);(_=i.get(m))._docCount=-1,_._queue=new v,"object"==typeof e.migrate?e.migrate.doMigrationOne(m,_,a):a()}))),b._remote=!1,b.type=function(){return"leveldb"},b._id=function(t){t(null,n)},b._info=function(t){var e={doc_count:_._docCount,update_seq:_._updateSeq,backend_adapter:V(o)};return g(function(){t(null,e)})},b._get=l(function(t,i,o){i=k(i),T.docStore.get(t,function(t,r){if(t||!r)return o(z(M,"missing"));var n;if(i.rev)n=i.latest?function(t,e){for(var r,n=e.rev_tree.slice();r=n.pop();){var i=r.pos,o=r.ids,a=o[0],s=o[1],u=o[2],f=0===u.length,c=r.history?r.history.slice():[];if(c.push({id:a,pos:i,opts:s}),f)for(var l=0,h=c.length;l<h;l++){var p=c[l];if(p.pos+"-"+p.id===t)return i+"-"+a}for(var d=0,g=u.length;d<g;d++)n.push({pos:i+1,ids:u[d],history:c})}throw new Error("Unable to resolve latest revision for id "+e.id+", rev "+t)}(i.rev,r):i.rev;else if(n=$t(r),Gt(r,n))return o(z(M,"deleted"));var e=r.rev_map[n];T.bySeqStore.get(j(e),function(t,e){if(!e)return o(z(M));if("_id"in e&&e._id!==r.id)return o(new Error("wrong doc returned"));if(e._id=r.id,"_rev"in e){if(e._rev!==n)return o(new Error("wrong doc returned"))}else e._rev=n;return o(null,{doc:e,metadata:r})})})}),b._getAttachment=function(t,e,r,n,i){var o=r.digest,a=r.content_type;T.binaryStore.get(o,function(t,e){if(t)return"NotFoundError"!==t.name?i(t):i(null,n.binary?Y([""],{type:a}):"");n.binary?i(null,Mt(e,a)):i(null,e.toString("base64"))})},b._bulkDocs=c(function(t,e,w){var r=e.new_edits,E=new Array(t.docs.length),k=new C,S=new C,x=new Nt,B=0,O=_._updateSeq,s=t.docs,n=s.map(function(t){if(t._id&&jt(t._id))return t;var e=vt(t,r,b.__opts);return e.metadata&&!e.metadata.rev_map&&(e.metadata.rev_map={}),e}),i=n.filter(function(t){return t.error});if(i.length)return w(i[0]);function o(t,e){var r=Promise.resolve();t.forEach(function(t,n){r=r.then(function(){return new Promise(function(e,r){b._doCompactionNoLock(n,t,{ctx:x},function(t){if(t)return r(t);e()})})})}),r.then(function(){e()},e)}function a(t){var r=new C;k.forEach(function(t,e){var o;r.set(e,(o=[],bt(t.rev_tree,function(t,e,r,n,i){"available"!==i.status||t||(o.push(e+"-"+r),i.status="missing")}),o))}),o(r,t)}function u(){o(S,function(t){if(t&&l(t),b.auto_compaction)return a(l);l()})}function f(r,t,e,n,i,o,a,s){B+=o;var u=null,f=0;r.metadata.winningRev=t,r.metadata.deleted=e,r.data._id=r.metadata.id,r.data._rev=r.metadata.rev,n&&(r.data._deleted=!0),r.stemmedRevs.length&&S.set(r.metadata.id,r.stemmedRevs);var c,l,h=r.data._attachments?Object.keys(r.data._attachments):[];function p(t){f++,u||(t?s(u=t):f===h.length&&m())}function d(e,r,n,i){return function(t){!function(t,r,e,n,i){var o=t.data._attachments[e];delete o.data,o.digest=r,o.length=n.length;var a=t.metadata.id,s=t.metadata.rev;o.revpos=parseInt(s,10),A(a,s,r,function(t,e){return t?i(t):0===n.length?i(t):e?(x.batch([{type:"put",prefix:T.binaryStore,key:r,value:L(n,"binary")}]),void i()):i(t)})}(e,Ht+t,r,n,i)}}function g(e,r,n){return function(t){et(t,d(e,r,t,n))}}for(var y=0;y<h.length;y++){var v,_=h[y],b=r.data._attachments[_];if(b.stub)A(r.data._id,r.data._rev,b.digest,p);else if("string"==typeof b.data){try{v=H(b.data)}catch(t){return void w(z(D,"Attachment is not a valid base64 string"))}g(r,_,p)(v)}else c=b.data,l=g(r,_,p),G(c,l)}function m(){var t=r.metadata.rev_map[r.metadata.rev];if(t)return s();t=++O,r.metadata.rev_map[r.metadata.rev]=r.metadata.seq=t;var e=[{key:j(t),value:r.data,prefix:T.bySeqStore,type:"put"},{key:r.metadata.id,value:r.metadata,prefix:T.docStore,type:"put"}];x.batch(e),E[a]={ok:!0,id:r.metadata.id,rev:r.metadata.rev},k.set(r.metadata.id,r.metadata),s()}h.length||m()}var c={};function A(n,i,o,e){function t(e){var t=[n,i].join("@"),r={};return e?e.refs&&(r.refs=e.refs,r.refs[t]=!0):(r.refs={},r.refs[t]=!0),new Promise(function(t){x.batch([{type:"put",prefix:T.attachmentStore,key:o,value:r}]),t(!e)})}var r=c[o]||Promise.resolve();c[o]=r.then(function(){return new Promise(function(r,n){x.get(T.attachmentStore,o,function(t,e){if(t&&"NotFoundError"!==t.name)return n(t);r(e)})}).then(t).then(function(t){e(null,t)},e)})}function l(t){if(t)return g(function(){w(t)});x.batch([{prefix:T.metaStore,type:"put",key:zt,value:O},{prefix:T.metaStore,type:"put",key:Kt,value:_._docCount+B}]),x.execute(_,function(t){if(t)return w(t);_._docCount+=B,_._updateSeq=O,Yt.notify(m),g(function(){w(null,E)})})}if(!n.length)return w(null,[]);!function(e){var i=[];if(s.forEach(function(r){r&&r._attachments&&Object.keys(r._attachments).forEach(function(t){var e=r._attachments[t];e.stub&&i.push(e.digest)})}),!i.length)return e();var o,a=0;i.forEach(function(t){var r,n;r=t,n=function(t){t&&!o&&(o=t),++a===i.length&&e(o)},x.get(T.attachmentStore,r,function(t){if(t){var e=z(F,"unknown stub attachment with digest "+r);n(e)}else n()})})}(function(t){if(t)return w(t);!function(t){var n,e=0;function i(){if(++e===s.length)return t(n)}s.forEach(function(r){if(r._id&&jt(r._id))return i();x.get(T.docStore,r._id,function(t,e){t?"NotFoundError"!==t.name&&(n=t):k.set(r._id,e),i()})})}(function(t){if(t)return w(t);Ct(h,n,b,k,x,E,f,e,u)})})}),b._allDocs=function(t,e){return"keys"in t?(o=this,r=(a=t).keys,s={offset:a.skip},Promise.all(r.map(function(i){var e=A({key:i,deleted:"ok"},a);return["limit","skip","keys"].forEach(function(t){delete e[t]}),new Promise(function(r,n){o._allDocs(e,function(t,e){if(t)return n(t);a.update_seq&&void 0!==e.update_seq&&(s.update_seq=e.update_seq),s.total_rows=e.total_rows,r(e.rows[0]||{key:i,error:"not_found"})})})})).then(function(t){return s.rows=t,s})):l(function(h,a){var t;h=k(h),t=function(t,e){if(t)return a(t);var u,r={},f=h.skip||0;if(h.startkey&&(r.gte=h.startkey),h.endkey&&(r.lte=h.endkey),h.key&&(r.gte=r.lte=h.key),h.descending){r.reverse=!0;var n=r.lte;r.lte=r.gte,r.gte=n}if("number"==typeof h.limit&&(u=h.limit),0===u||"gte"in r&&"lte"in r&&r.gte>r.lte){var i={total_rows:e,offset:h.skip,rows:[]};return h.update_seq&&(i.update_seq=_._updateSeq),a(null,i)}var c=[],l=T.docStore.readStream(r),o=w.obj(function(t,e,i){var o=t.value,a=$t(o),s=Gt(o,a);if(s){if("ok"!==h.deleted)return void i()}else{if(0<f--)return void i();if("number"==typeof u&&u--<=0)return l.unpipe(),l.destroy(),void i()}function r(t){var e={id:o.id,key:o.id,value:{rev:a}};if(h.include_docs){if(e.doc=t,e.doc._rev=e.value.rev,h.conflicts){var r=wt(o);r.length&&(e.doc._conflicts=r)}for(var n in e.doc._attachments)e.doc._attachments.hasOwnProperty(n)&&(e.doc._attachments[n].stub=!0)}if(!1===h.inclusive_end&&o.id===h.endkey)return i();if(s){if("ok"!==h.deleted)return i();e.value.deleted=!0,e.doc=null}c.push(e),i()}if(h.include_docs){var n=o.rev_map[a];T.bySeqStore.get(j(n),function(t,e){r(e)})}else r()},function(t){Promise.resolve().then(function(){if(h.include_docs&&h.attachments)return Xt(c,T,h)}).then(function(){var t={total_rows:e,offset:h.skip,rows:c};h.update_seq&&(t.update_seq=_._updateSeq),a(null,t)},a),t()}).on("unpipe",function(){o.end()});l.on("error",a),l.pipe(o)},_.isClosed()?t(new Error("database is closed")):t(null,_._docCount)})(t,e);var o,a,r,s},b._changes=function(u){if((u=k(u)).continuous){var t=m+":"+nt();return Yt.addListener(m,t,b,u),Yt.notify(m),{cancel:function(){Yt.removeListener(m,t)}}}var f,c=u.descending,l=[],h=u.since||0,p=0,e={reverse:c};"limit"in u&&0<u.limit&&(f=u.limit),e.reverse||(e.start=j(u.since||0));var d=u.doc_ids&&new E(u.doc_ids),g=K(u),y=new C;function v(){u.done=!0,u.return_docs&&u.limit&&u.limit<l.length&&(l.length=u.limit),r.unpipe(n),r.destroy(),u.continuous||u.cancelled||(u.include_docs&&u.attachments&&u.return_docs?Xt(l,T,u).then(function(){u.complete(null,{results:l,last_seq:h})}):u.complete(null,{results:l,last_seq:h}))}var r=T.bySeqStore.readStream(e),n=w.obj(function(t,e,i){if(f&&f<=p)return v(),i();if(u.cancelled||u.done)return i();var r,n,o=(r=t.key,parseInt(r,10)),a=t.value;if(o===u.since&&!c)return i();if(d&&!d.has(a._id))return i();function s(n){var t=$t(n);function r(t){var e=u.processChange(t,n,u);e.seq=n.seq;var r=g(e);if("object"==typeof r)return u.complete(r);r&&(p++,u.attachments&&u.include_docs?Xt([e],T,u).then(function(){u.onChange(e)}):u.onChange(e),u.return_docs&&l.push(e)),i()}if(n.seq!==o)return i();if(h=o,t===a._rev)return r(a);var e=n.rev_map[t];T.bySeqStore.get(j(e),function(t,e){r(e)})}if(n=y.get(a._id))return s(n);T.docStore.get(a._id,function(t,e){if(u.cancelled||u.done||_.isClosed()||jt(e.id))return i();y.set(a._id,e),s(e)})},function(t){if(u.cancelled)return t();u.return_docs&&u.limit&&u.limit<l.length&&(l.length=u.limit),t()}).on("unpipe",function(){n.end(),v()});return r.pipe(n),{cancel:function(){u.cancelled=!0,v()}}},b._close=function(e){if(_.isClosed())return e(z(I));_.close(function(t){t?e(t):(i.delete(m),e())})},b._getRevisionTree=function(t,r){T.docStore.get(t,function(t,e){t?r(z(M)):r(null,e.rev_tree)})},b._doCompaction=c(function(t,e,r,n){b._doCompactionNoLock(t,e,r,n)}),b._doCompactionNoLock=function(f,c,l,h){if("function"==typeof l&&(h=l,l={}),!c.length)return h();var p=l.ctx||new Nt;p.get(T.docStore,f,function(t,r){if(t)return h(t);var e=c.map(function(t){var e=r.rev_map[t];return delete r.rev_map[t],e});bt(r.rev_tree,function(t,e,r,n,i){var o=e+"-"+r;-1!==c.indexOf(o)&&(i.status="missing")});var s=[];s.push({key:r.id,value:r,type:"put",prefix:T.docStore});var n,i={},o=0;function a(t){if(t&&(n=t),++o===c.length){if(n)return h(n);!function(){var e=Object.keys(i);if(!e.length)return u();var r,n=0;function o(t){t&&(r=t),++n===e.length&&u(r)}var a=new C;c.forEach(function(t){a.set(f+"@"+t,!0)}),e.forEach(function(i){p.get(T.attachmentStore,i,function(t,e){if(t)return"NotFoundError"===t.name?o():o(t);var r=Object.keys(e.refs||{}).filter(function(t){return!a.has(t)}),n={};r.forEach(function(t){n[t]=!0}),r.length?s.push({key:i,type:"put",value:{refs:n},prefix:T.attachmentStore}):s=s.concat([{key:i,type:"del",prefix:T.attachmentStore},{key:i,type:"del",prefix:T.binaryStore}]),o()})})}()}}function u(t){return t?h(t):(p.batch(s),l.ctx?h():void p.execute(_,h))}e.forEach(function(t){s.push({key:j(t),type:"del",prefix:T.bySeqStore}),p.get(T.bySeqStore,j(t),function(t,r){if(t)return"NotFoundError"===t.name?a():a(t);Object.keys(r._attachments||{}).forEach(function(t){var e=r._attachments[t].digest;i[e]=!0}),a()})})})},b._getLocal=function(t,r){T.localStore.get(t,function(t,e){t?r(z(M)):r(null,e)})},b._putLocal=function(t,e,r){"function"==typeof e&&(r=e,e={}),e.ctx?b._putLocalNoLock(t,e,r):b._putLocalWithLock(t,e,r)},b._putLocalWithLock=c(function(t,e,r){b._putLocalNoLock(t,e,r)}),b._putLocalNoLock=function(i,o,a){delete i._revisions;var s=i._rev,u=i._id,f=o.ctx||new Nt;f.get(T.localStore,u,function(t,e){if(t&&s)return a(z(R));if(e&&e._rev!==s)return a(z(R));i._rev=s?"0-"+(parseInt(s.split("-")[1],10)+1):"0-1";var r=[{type:"put",prefix:T.localStore,key:u,value:i}];f.batch(r);var n={ok:!0,id:i._id,rev:i._rev};if(o.ctx)return a(null,n);f.execute(_,function(t){if(t)return a(t);a(null,n)})})},b._removeLocal=function(t,e,r){"function"==typeof e&&(r=e,e={}),e.ctx?b._removeLocalNoLock(t,e,r):b._removeLocalWithLock(t,e,r)},b._removeLocalWithLock=c(function(t,e,r){b._removeLocalNoLock(t,e,r)}),b._removeLocalNoLock=function(n,i,o){var a=i.ctx||new Nt;a.get(T.localStore,n._id,function(t,e){if(t)return"NotFoundError"!==t.name?o(t):o(z(M));if(e._rev!==n._rev)return o(z(R));a.batch([{prefix:T.localStore,type:"del",key:n._id}]);var r={ok:!0,id:n._id,rev:"0-0"};if(i.ctx)return o(null,r);a.execute(_,function(t){if(t)return o(t);o(null,r)})})},b._destroy=function(t,e){var r,n=V(o);if(!Ft.has(n))return p(m,e);(r=Ft.get(n)).has(m)?(Yt.removeAllListeners(m),r.get(m).close(function(){r.delete(m),p(m,e)})):p(m,e)}}function Qt(t,e){var r=A({db:c},t);Zt.call(this,r,e)}Qt.valid=function(){return!0},Qt.use_prefix=!1,"undefined"==typeof PouchDB?function(t){if("undefined"!=typeof console&&"function"==typeof console[t]){var e=Array.prototype.slice.call(arguments,1);console[t].apply(console,e)}}("error",'memory adapter plugin error: Cannot find global "PouchDB" object! Did you remember to include pouchdb.js?'):PouchDB.plugin(function(t){t.adapter("memory",Qt,!0)})}).call(this,"undefined"!=typeof global?global:"undefined"!=typeof self?self:"undefined"!=typeof window?window:{})},{1:1,100:100,105:105,11:11,110:110,14:14,17:17,18:18,21:21,35:35,45:45,47:47,71:71,73:73,8:8}]},{},[111]); |