varOrbitDB=function(modules){function__webpack_require__(moduleId){if(installedModules[moduleId])returninstalledModules[moduleId].exports;varmodule=installedModules[moduleId]={i:moduleId,l:!1,exports:{}};returnmodules[moduleId].call(module.exports,module,module.exports,__webpack_require__),module.l=!0,module.exports}varinstalledModules={};return__webpack_require__.m=modules,__webpack_require__.c=installedModules,__webpack_require__.i=function(value){returnvalue},__webpack_require__.d=function(exports,name,getter){Object.defineProperty(exports,name,{configurable:!1,enumerable:!0,get:getter})},__webpack_require__.n=function(module){vargetter=module&&module.__esModule?function(){returnmodule.default}:function(){returnmodule};return__webpack_require__.d(getter,"a",getter),getter},__webpack_require__.o=function(object,property){returnObject.prototype.hasOwnProperty.call(object,property)},__webpack_require__.p="",__webpack_require__(__webpack_require__.s=198)}([function(module,exports){"use strict";exports.__esModule=!0,exports.default=function(instance,Constructor){if(!(instanceinstanceofConstructor))thrownewTypeError("Cannot call a class as a function")}},function(module,exports,__webpack_require__){"use strict";function_interopRequireDefault(obj){returnobj&&obj.__esModule?obj:{default:obj}}exports.__esModule=!0;var_defineProperty=__webpack_require__(56),_defineProperty2=_interopRequireDefault(_defineProperty);exports.default=function(){functiondefineProperties(target,props){for(vari=0;i<props.length;i++){vardescriptor=props[i];descriptor.enumerable=descriptor.enumerable||!1,descriptor.configurable=!0,"value"indescriptor&&(descriptor.writable=!0),(0,_defineProperty2.default)(target,descriptor.key,descriptor)}}returnfunction(Constructor,protoProps,staticProps){returnprotoProps&&defineProperties(Constructor.prototype,protoProps),staticProps&&defineProperties(Constructor,staticProps),Constructor}}()},function(module,exports){varcore=module.exports={version:"2.4.0"};"number"==typeof__e&&(__e=core)},function(module,exports,__webpack_require__){varstore=__webpack_require__(45)("wks"),uid=__webpack_require__(34),Symbol=__webpack_require__(4).Symbol,USE_SYMBOL="function"==typeofSymbol,$exports=module.exports=function(name){returnstore[name]||(store[name]=USE_SYMBOL&&Symbol[name]||(USE_SYMBOL?Symbol:uid)("Symbol."+name))};$exports.store=store},function(module,exports){varglobal=module.exports="undefined"!=typeofwindow&&window.Math==Math?window:"undefined"!=typeofself&&self.Math==Math?self:Function("return this")();"number"==typeof__g&&(__g=global)},function(module,exports,__webpack_require__){module.exports={default:__webpack_require__(107),__esModule:!0}},function(module,exports,__webpack_require__){varisObject=__webpack_require__(20);module.exports=function(it){if(!isObject(it))throwTypeError(it+" is not an object!");returnit}},function(module,exports,__webpack_require__){module.exports=!__webpack_require__(19)(function(){return7!=Object.defineProperty({},"a",{get:function(){return7}}).a})},function(module,exports,__webpack_require__){varglobal=__webpack_require__(4),core=__webpack_require__(2),ctx=__webpack_require__(23),hide=__webpack_require__(12),PROTOTYPE="prototype",$export=function(type,name,source){varkey,own,out,IS_FORCED=type&$export.F,IS_GLOBAL=type&$export.G,IS_STATIC=type&$export.S,IS_PROTO=type&$export.P,IS_BIND=type&$export.B,IS_WRAP=type&$export.W,exports=IS_GLOBAL?core:core[name]||(core[name]={}),expProto=exports[PROTOTYPE],target=IS_GLOBAL?global:IS_STATIC?global[name]:(global[name]||{})[PROTOTYPE];IS_GLOBAL&&(source=name);for(keyinsource)own=!IS_FORCED&&target&&void0!==target[key],own&&keyinexports||(out=own?target[key]:source[key],exports[key]=IS_GLOBAL&&"function"!=typeoftarget[key]?source[key]:IS_BIND&&own?ctx(out,global):IS_WRAP&&target[key]==out?function(C){varF=function(a,b,c){if(thisinstanceofC){switch(arguments.length){case0:returnnewC;case1:returnnewC(a);case2:returnnewC(a,b)}returnnewC(a,b,c)}returnC.apply(this,arguments)};returnF[PROTOTYP
cancellation:!1,monitoring:!1};returnlongStackTraces&&Promise.longStackTraces(),{longStackTraces:function(){returnconfig.longStackTraces},warnings:function(){returnconfig.warnings},cancellation:function(){returnconfig.cancellation},monitoring:function(){returnconfig.monitoring},propagateFromFunction:function(){returnpropagateFromFunction},boundValueFunction:function(){returnboundValueFunction},checkForgottenReturns:checkForgottenReturns,setBounds:setBounds,warn:warn,deprecated:deprecated,CapturedTrace:CapturedTrace,fireDomEvent:fireDomEvent,fireGlobalEvent:fireGlobalEvent}}},{"./errors":12,"./util":36}],10:[function(_dereq_,module,exports){"use strict";module.exports=function(Promise){functionreturner(){returnthis.value}functionthrower(){throwthis.reason}Promise.prototype.return=Promise.prototype.thenReturn=function(value){returnvalueinstanceofPromise&&value.suppressUnhandledRejections(),this._then(returner,void0,void0,{value:value},void0)},Promise.prototype.throw=Promise.prototype.thenThrow=function(reason){returnthis._then(thrower,void0,void0,{reason:reason},void0)},Promise.prototype.catchThrow=function(reason){if(arguments.length<=1)returnthis._then(void0,thrower,void0,{reason:reason},void0);var_reason=arguments[1],handler=function(){throw_reason};returnthis.caught(reason,handler)},Promise.prototype.catchReturn=function(value){if(arguments.length<=1)returnvalueinstanceofPromise&&value.suppressUnhandledRejections(),this._then(void0,returner,void0,{value:value},void0);var_value=arguments[1];_valueinstanceofPromise&&_value.suppressUnhandledRejections();varhandler=function(){return_value};returnthis.caught(value,handler)}}},{}],11:[function(_dereq_,module,exports){"use strict";module.exports=function(Promise,INTERNAL){functionpromiseAllThis(){returnPromiseAll(this)}functionPromiseMapSeries(promises,fn){returnPromiseReduce(promises,fn,INTERNAL,INTERNAL)}varPromiseReduce=Promise.reduce,PromiseAll=Promise.all;Promise.prototype.each=function(fn){returnPromiseReduce(this,fn,INTERNAL,0)._then(promiseAllThis,void0,void0,this,void0)},Promise.prototype.mapSeries=function(fn){returnPromiseReduce(this,fn,INTERNAL,INTERNAL)},Promise.each=function(promises,fn){returnPromiseReduce(promises,fn,INTERNAL,0)._then(promiseAllThis,void0,void0,promises,void0)},Promise.mapSeries=PromiseMapSeries}},{}],12:[function(_dereq_,module,exports){"use strict";functionsubError(nameProperty,defaultMessage){functionSubError(message){returnthisinstanceofSubError?(notEnumerableProp(this,"message","string"==typeofmessage?message:defaultMessage),notEnumerableProp(this,"name",nameProperty),void(Error.captureStackTrace?Error.captureStackTrace(this,this.constructor):Error.call(this))):newSubError(message)}returninherits(SubError,Error),SubError}functionOperationalError(message){returnthisinstanceofOperationalError?(notEnumerableProp(this,"name","OperationalError"),notEnumerableProp(this,"message",message),this.cause=message,this.isOperational=!0,void(messageinstanceofError?(notEnumerableProp(this,"message",message.message),notEnumerableProp(this,"stack",message.stack)):Error.captureStackTrace&&Error.captureStackTrace(this,this.constructor))):newOperationalError(message)}var_TypeError,_RangeError,es5=_dereq_("./es5"),Objectfreeze=es5.freeze,util=_dereq_("./util"),inherits=util.inherits,notEnumerableProp=util.notEnumerableProp,Warning=subError("Warning","warning"),CancellationError=subError("CancellationError","cancellation error"),TimeoutError=subError("TimeoutError","timeout error"),AggregateError=subError("AggregateError","aggregate error");try{_TypeError=TypeError,_RangeError=RangeError}catch(e){_TypeError=subError("TypeError","type error"),_RangeError=subError("RangeError","range error")}for(varmethods="join pop push shift unshift slice filter forEach some every map indexOf lastIndexOf reduce reduceRight sort reverse".split(" "),i=0;i<methods.length;++i)"function"==typeofArray.prototype[methods[i]]&&(AggregateError.prototype[methods[i]]=Array.prototype[methods[i]]);es5.defineProperty(Agg
"function"==typeofreject&&(this[base+1]=null===domain?reject:util.domainBind(domain,reject))}returnthis._setLength(index+1),index},Promise.prototype._proxy=function(proxyable,arg){this._addCallbacks(void0,void0,arg,proxyable,null)},Promise.prototype._resolveCallback=function(value,shouldBind){if(0===(117506048&this._bitField)){if(value===this)returnthis._rejectCallback(makeSelfResolutionError(),!1);varmaybePromise=tryConvertToPromise(value,this);if(!(maybePromiseinstanceofPromise))returnthis._fulfill(value);shouldBind&&this._propagateFrom(maybePromise,2);varpromise=maybePromise._target();if(promise===this)returnvoidthis._reject(makeSelfResolutionError());varbitField=promise._bitField;if(0===(50397184&bitField)){varlen=this._length();len>0&&promise._migrateCallback0(this);for(vari=1;i<len;++i)promise._migrateCallbackAt(this,i);this._setFollowing(),this._setLength(0),this._setFollowee(promise)}elseif(0!==(33554432&bitField))this._fulfill(promise._value());elseif(0!==(16777216&bitField))this._reject(promise._reason());else{varreason=newCancellationError("late cancellation observer");promise._attachExtraTrace(reason),this._reject(reason)}}},Promise.prototype._rejectCallback=function(reason,synchronous,ignoreNonErrorWarnings){vartrace=util.ensureErrorObject(reason),hasStack=trace===reason;if(!hasStack&&!ignoreNonErrorWarnings&&debug.warnings()){varmessage="a promise was rejected with a non-error: "+util.classString(reason);this._warn(message,!0)}this._attachExtraTrace(trace,!!synchronous&&hasStack),this._reject(reason)},Promise.prototype._resolveFromExecutor=function(executor){varpromise=this;this._captureStackTrace(),this._pushContext();varsynchronous=!0,r=this._execute(executor,function(value){promise._resolveCallback(value)},function(reason){promise._rejectCallback(reason,synchronous)});synchronous=!1,this._popContext(),void0!==r&&promise._rejectCallback(r,!0)},Promise.prototype._settlePromiseFromHandler=function(handler,receiver,value,promise){varbitField=promise._bitField;if(0===(65536&bitField)){promise._pushContext();varx;receiver===APPLY?value&&"number"==typeofvalue.length?x=tryCatch(handler).apply(this._boundValue(),value):(x=errorObj,x.e=newTypeError("cannot .spread() a non-array: "+util.classString(value))):x=tryCatch(handler).call(receiver,value);varpromiseCreated=promise._popContext();bitField=promise._bitField,0===(65536&bitField)&&(x===NEXT_FILTER?promise._reject(value):x===errorObj?promise._rejectCallback(x.e,!1):(debug.checkForgottenReturns(x,promiseCreated,"",promise,this),promise._resolveCallback(x)))}},Promise.prototype._target=function(){for(varret=this;ret._isFollowing();)ret=ret._followee();returnret},Promise.prototype._followee=function(){returnthis._rejectionHandler0},Promise.prototype._setFollowee=function(promise){this._rejectionHandler0=promise},Promise.prototype._settlePromise=function(promise,handler,receiver,value){varisPromise=promiseinstanceofPromise,bitField=this._bitField,asyncGuaranteed=0!==(134217728&bitField);0!==(65536&bitField)?(isPromise&&promise._invokeInternalOnCancel(),receiverinstanceofPassThroughHandlerContext&&receiver.isFinallyHandler()?(receiver.cancelPromise=promise,tryCatch(handler).call(receiver,value)===errorObj&&promise._reject(errorObj.e)):handler===reflectHandler?promise._fulfill(reflectHandler.call(receiver)):receiverinstanceofProxyable?receiver._promiseCancelled(promise):isPromise||promiseinstanceofPromiseArray?promise._cancel():receiver.cancel()):"function"==typeofhandler?isPromise?(asyncGuaranteed&&promise._setAsyncGuaranteed(),this._settlePromiseFromHandler(handler,receiver,value,promise)):handler.call(receiver,value,promise):receiverinstanceofProxyable?receiver._isResolved()||(0!==(33554432&bitField)?receiver._promiseFulfilled(value,promise):receiver._promiseRejected(value,promise)):isPromise&&(asyncGuaranteed&&promise._setAsyncGuaranteed(),0!==(33554432&bitField)?promise._fulfill(value):promise._reject(value))},Promise.prototype._settlePromiseLateCancellationObserver=function(ctx){varhandler=ctx.handler,promise=ctx.pro
};varvalue=PromiseInspection.prototype.value=function(){if(!this.isFulfilled())thrownewTypeError("cannot get fulfillment value of a non-fulfilled promise\n\n See http://goo.gl/MqrFmX\n");returnthis._settledValue()},reason=PromiseInspection.prototype.error=PromiseInspection.prototype.reason=function(){if(!this.isRejected())thrownewTypeError("cannot get rejection reason of a non-rejected promise\n\n See http://goo.gl/MqrFmX\n");returnthis._settledValue()},isFulfilled=PromiseInspection.prototype.isFulfilled=function(){return0!==(33554432&this._bitField)},isRejected=PromiseInspection.prototype.isRejected=function(){return0!==(16777216&this._bitField)},isPending=PromiseInspection.prototype.isPending=function(){return0===(50397184&this._bitField)},isResolved=PromiseInspection.prototype.isResolved=function(){return0!==(50331648&this._bitField)};PromiseInspection.prototype.isCancelled=function(){return0!==(8454144&this._bitField)},Promise.prototype.__isCancelled=function(){return65536===(65536&this._bitField)},Promise.prototype._isCancelled=function(){returnthis._target().__isCancelled()},Promise.prototype.isCancelled=function(){return0!==(8454144&this._target()._bitField)},Promise.prototype.isPending=function(){returnisPending.call(this._target())},Promise.prototype.isRejected=function(){returnisRejected.call(this._target())},Promise.prototype.isFulfilled=function(){returnisFulfilled.call(this._target())},Promise.prototype.isResolved=function(){returnisResolved.call(this._target())},Promise.prototype.value=function(){returnvalue.call(this._target())},Promise.prototype.reason=function(){vartarget=this._target();returntarget._unsetRejectionIsUnhandled(),reason.call(target)},Promise.prototype._value=function(){returnthis._settledValue()},Promise.prototype._reason=function(){returnthis._unsetRejectionIsUnhandled(),this._settledValue()},Promise.PromiseInspection=PromiseInspection}},{}],33:[function(_dereq_,module,exports){"use strict";module.exports=function(Promise,INTERNAL){functiontryConvertToPromise(obj,context){if(isObject(obj)){if(objinstanceofPromise)returnobj;varthen=getThen(obj);if(then===errorObj){context&&context._pushContext();varret=Promise.reject(then.e);returncontext&&context._popContext(),ret}if("function"==typeofthen){if(isAnyBluebirdPromise(obj)){varret=newPromise(INTERNAL);returnobj._then(ret._fulfill,ret._reject,void0,ret,null),ret}returndoThenable(obj,then,context)}}returnobj}functiondoGetThen(obj){returnobj.then}functiongetThen(obj){try{returndoGetThen(obj)}catch(e){returnerrorObj.e=e,errorObj}}functionisAnyBluebirdPromise(obj){try{returnhasProp.call(obj,"_promise0")}catch(e){return!1}}functiondoThenable(x,then,context){functionresolve(value){promise&&(promise._resolveCallback(value),promise=null)}functionreject(reason){promise&&(promise._rejectCallback(reason,synchronous,!0),promise=null)}varpromise=newPromise(INTERNAL),ret=promise;context&&context._pushContext(),promise._captureStackTrace(),context&&context._popContext();varsynchronous=!0,result=util.tryCatch(then).call(x,resolve,reject);returnsynchronous=!1,promise&&result===errorObj&&(promise._rejectCallback(result.e,!0,!0),promise=null),ret}varutil=_dereq_("./util"),errorObj=util.errorObj,isObject=util.isObject,hasProp={}.hasOwnProperty;returntryConvertToPromise}},{"./util":36}],34:[function(_dereq_,module,exports){"use strict";module.exports=function(Promise,INTERNAL,debug){functionHandleWrapper(handle){this.handle=handle}functionsuccessClear(value){returnclearTimeout(this.handle),value}functionfailureClear(reason){throwclearTimeout(this.handle),reason}varutil=_dereq_("./util"),TimeoutError=Promise.TimeoutError;HandleWrapper.prototype._resultCancelled=function(){clearTimeout(this.handle)};varafterValue=function(value){returndelay(+this).thenReturn(value)},delay=Promise.delay=function(ms,value){varret,handle;returnvoid0!==value?(ret=Promise.resolve(value)._then(afterValue,null,null,ms,void0),debug.cancellation()&&valueinstanceofPromise&&ret._setOnCancel(value)):(ret=newPromise(INTE
this.reject=aFunction(reject)},perform=function(exec){try{exec()}catch(e){return{error:e}}},notify=function(promise,isReject){if(!promise._n){promise._n=!0;varchain=promise._c;microtask(function(){for(varvalue=promise._v,ok=1==promise._s,i=0,run=function(reaction){varresult,then,handler=ok?reaction.ok:reaction.fail,resolve=reaction.resolve,reject=reaction.reject,domain=reaction.domain;try{handler?(ok||(2==promise._h&&onHandleUnhandled(promise),promise._h=1),handler===!0?result=value:(domain&&domain.enter(),result=handler(value),domain&&domain.exit()),result===reaction.promise?reject(TypeError("Promise-chain cycle")):(then=isThenable(result))?then.call(result,resolve,reject):resolve(result)):reject(value)}catch(e){reject(e)}};chain.length>i;)run(chain[i++]);promise._c=[],promise._n=!1,isReject&&!promise._h&&onUnhandled(promise)})}},onUnhandled=function(promise){task.call(global,function(){varabrupt,handler,console,value=promise._v;if(isUnhandled(promise)&&(abrupt=perform(function(){isNode?process.emit("unhandledRejection",value,promise):(handler=global.onunhandledrejection)?handler({promise:promise,reason:value}):(console=global.console)&&console.error&&console.error("Unhandled promise rejection",value)}),promise._h=isNode||isUnhandled(promise)?2:1),promise._a=void0,abrupt)throwabrupt.error})},isUnhandled=function(promise){if(1==promise._h)return!1;for(varreaction,chain=promise._a||promise._c,i=0;chain.length>i;)if(reaction=chain[i++],reaction.fail||!isUnhandled(reaction.promise))return!1;return!0},onHandleUnhandled=function(promise){task.call(global,function(){varhandler;isNode?process.emit("rejectionHandled",promise):(handler=global.onrejectionhandled)&&handler({promise:promise,reason:promise._v})})},$reject=function(value){varpromise=this;promise._d||(promise._d=!0,promise=promise._w||promise,promise._v=value,promise._s=2,promise._a||(promise._a=promise._c.slice()),notify(promise,!0))},$resolve=function(value){varthen,promise=this;if(!promise._d){promise._d=!0,promise=promise._w||promise;try{if(promise===value)throwTypeError("Promise can't be resolved itself");(then=isThenable(value))?microtask(function(){varwrapper={_w:promise,_d:!1};try{then.call(value,ctx($resolve,wrapper,1),ctx($reject,wrapper,1))}catch(e){$reject.call(wrapper,e)}}):(promise._v=value,promise._s=1,notify(promise,!1))}catch(e){$reject.call({_w:promise,_d:!1},e)}}};USE_NATIVE||($Promise=function(executor){anInstance(this,$Promise,PROMISE,"_h"),aFunction(executor),Internal.call(this);try{executor(ctx($resolve,this,1),ctx($reject,this,1))}catch(err){$reject.call(this,err)}},Internal=function(executor){this._c=[],this._a=void0,this._s=0,this._d=!1,this._v=void0,this._h=0,this._n=!1},Internal.prototype=__webpack_require__(134)($Promise.prototype,{then:function(onFulfilled,onRejected){varreaction=newPromiseCapability(speciesConstructor(this,$Promise));returnreaction.ok="function"!=typeofonFulfilled||onFulfilled,reaction.fail="function"==typeofonRejected&&onRejected,reaction.domain=isNode?process.domain:void0,this._c.push(reaction),this._a&&this._a.push(reaction),this._s&¬ify(this,!1),reaction.promise},catch:function(onRejected){returnthis.then(void0,onRejected)}}),PromiseCapability=function(){varpromise=newInternal;this.promise=promise,this.resolve=ctx($resolve,promise,1),this.reject=ctx($reject,promise,1)}),$export($export.G+$export.W+$export.F*!USE_NATIVE,{Promise:$Promise}),__webpack_require__(32)($Promise,PROMISE),__webpack_require__(136)(PROMISE),Wrapper=__webpack_require__(2)[PROMISE],$export($export.S+$export.F*!USE_NATIVE,PROMISE,{reject:function(r){varcapability=newPromiseCapability(this),$$reject=capability.reject;return$$reject(r),capability.promise}}),$export($export.S+$export.F*(LIBRARY||!USE_NATIVE),PROMISE,{resolve:function(x){if(xinstanceof$Promise&&sameConstructor(x.constructor,this))returnx;varcapability=newPromiseCapability(this),$$resolve=capability.resolve;return$$resolve(x),capability.promise}}),$export($export.S+$export.F*!(USE_NATIVE&&__webpack_require__(127)(function(iter){$Promise.all(iter).catch(
Dexie.fakeAutoComplete=fakeAutoComplete=doFakeAutoComplete,Dexie.fake=fake=!0}),Dexie})}).call(exports,__webpack_require__(10),__webpack_require__(27).setImmediate)},function(module,exports,__webpack_require__){"use strict";(function(Buffer){function_defineProperty(obj,key,value){returnkeyinobj?Object.defineProperty(obj,key,{value:value,enumerable:!0,configurable:!0,writable:!0}):obj[key]=value,obj}function_classCallCheck(instance,Constructor){if(!(instanceinstanceofConstructor))thrownewTypeError("Cannot call a class as a function")}functionlastIndex(arr){returnarr.length-1}functionlast(arr){returnarr[lastIndex(arr)]}functionensureBuffer(data){returnBuffer.isBuffer(data)?data:Buffer.from(data)}var_createClass=function(){functiondefineProperties(target,props){for(vari=0;i<props.length;i++){vardescriptor=props[i];descriptor.enumerable=descriptor.enumerable||!1,descriptor.configurable=!0,"value"indescriptor&&(descriptor.writable=!0),Object.defineProperty(target,descriptor.key,descriptor)}}returnfunction(Constructor,protoProps,staticProps){returnprotoProps&&defineProperties(Constructor.prototype,protoProps),staticProps&&defineProperties(Constructor,staticProps),Constructor}}(),Dexie=__webpack_require__(153),_write=__webpack_require__(192),pushable=__webpack_require__(169),toBuffer=__webpack_require__(193),defer=__webpack_require__(168),toWindow=__webpack_require__(191).recent,pull=__webpack_require__(77);module.exports=function(){functionIdbBlobStore(dbname){_classCallCheck(this,IdbBlobStore),this.path=dbname||"pull-blob-store-"+Math.random().toString().slice(2,10),this.db=newDexie(this.path),this.db.version(1).stores(_defineProperty({},this.path,"++,key,blob"))}return_createClass(IdbBlobStore,[{key:"write",value:function(key,cb){var_this=this;cb=cb||function(){};vard=defer();returnkey?(this.remove(key,function(err){functionwriter(data,cb){varblobs=data.map(function(blob){return{key:key,blob:blob}});table.bulkPut(blobs).then(function(){returncb()}).catch(cb)}functionreduce(queue,data){returnqueue=queue||[],Array.isArray(data)||(data=[data]),data=data.map(ensureBuffer),!queue.length||last(queue).length>99?queue.push(Buffer.concat(data)):queue[lastIndex(queue)]=Buffer.concat(last(queue).concat(data)),queue}if(err)returncb(err);vartable=_this.table;d.resolve(pull(toWindow(100,10),_write(writer,reduce,100,cb)))}),d):(cb(newError("Missing key")),d)}},{key:"read",value:function(key){var_this2=this,p=pushable();returnkey?(this.exists(key,function(err,exists){returnerr?p.end(err):exists?void_this2.table.where("key").equals(key).each(function(val){returnp.push(toBuffer(val.blob))}).catch(function(err){returnp.end(err)}).then(function(){returnp.end()}):p.end(newError("Not found"))}),p):(p.end(newError("Missing key")),p)}},{key:"exists",value:function(key,cb){returncb=cb||function(){},key?voidthis.table.where("key").equals(key).count().then(function(val){returncb(null,Boolean(val))}).catch(cb):cb(newError("Missing key"))}},{key:"remove",value:function(key,cb){if(cb=cb||function(){},!key)returncb(newError("Missing key"));varcoll=this.table.where("key").equals(key);coll.count(function(count){returncount>0?coll.delete():null}).then(function(){returncb()}).catch(cb)}},{key:"table",get:function(){returnthis.db[this.path]}}]),IdbBlobStore}()}).call(exports,__webpack_require__(18).Buffer)},function(module,exports){exports.read=function(buffer,offset,isLE,mLen,nBytes){vare,m,eLen=8*nBytes-mLen-1,eMax=(1<<eLen)-1,eBias=eMax>>1,nBits=-7,i=isLE?nBytes-1:0,d=isLE?-1:1,s=buffer[offset+i];for(i+=d,e=s&(1<<-nBits)-1,s>>=-nBits,nBits+=eLen;nBits>0;e=256*e+buffer[offset+i],i+=d,nBits-=8);for(m=e&(1<<-nBits)-1,e>>=-nBits,nBits+=mLen;nBits>0;m=256*m+buffer[offset+i],i+=d,nBits-=8);if(0===e)e=1-eBias;else{if(e===eMax)returnm?NaN:(s?-1:1)*(1/0);m+=Math.pow(2,mLen),e-=eBias}return(s?-1:1)*m*Math.pow(2,e-mLen)},exports.write=function(buffer,value,offset,isLE,mLen,nBytes){vare,m,c,eLen=8*nBytes-mLen-1,eMax=(1<<eLen)-1,eBias=eMax>>1,rt=23===mLen?Math.pow(2,-24)-Math.pow(2,-77):0,i=isLE?0:nBytes-1,d=isL