(functione(t,n,r){functions(o,u){if(!n[o]){if(!t[o]){vara=typeofrequire=="function"&&require;if(!u&&a)returna(o,!0);if(i)returni(o,!0);varf=newError("Cannot find module '"+o+"'");throwf.code="MODULE_NOT_FOUND",f}varl=n[o]={exports:{}};t[o][0].call(l.exports,function(e){varn=t[o][1][e];returns(n?n:e)},l,l.exports,e,t,n,r)}returnn[o].exports}vari=typeofrequire=="function"&&require;for(varo=0;o<r.length;o++)s(r[o]);returns})({1:[function(require,module,exports){(function(process){functionAbstractChainedBatch(db){this._db=db;this._operations=[];this._written=false}AbstractChainedBatch.prototype._checkWritten=function(){if(this._written)thrownewError("write() already called on this batch")};AbstractChainedBatch.prototype.put=function(key,value){this._checkWritten();varerr=this._db._checkKeyValue(key,"key",this._db._isBuffer);if(err)throwerr;err=this._db._checkKeyValue(value,"value",this._db._isBuffer);if(err)throwerr;if(!this._db._isBuffer(key))key=String(key);if(!this._db._isBuffer(value))value=String(value);if(typeofthis._put=="function")this._put(key,value);elsethis._operations.push({type:"put",key:key,value:value});returnthis};AbstractChainedBatch.prototype.del=function(key){this._checkWritten();varerr=this._db._checkKeyValue(key,"key",this._db._isBuffer);if(err)throwerr;if(!this._db._isBuffer(key))key=String(key);if(typeofthis._del=="function")this._del(key);elsethis._operations.push({type:"del",key:key});returnthis};AbstractChainedBatch.prototype.clear=function(){this._checkWritten();this._operations=[];if(typeofthis._clear=="function")this._clear();returnthis};AbstractChainedBatch.prototype.write=function(options,callback){this._checkWritten();if(typeofoptions=="function")callback=options;if(typeofcallback!="function")thrownewError("write() requires a callback argument");if(typeofoptions!="object")options={};this._written=true;if(typeofthis._write=="function")returnthis._write(callback);if(typeofthis._db._batch=="function")returnthis._db._batch(this._operations,options,callback);process.nextTick(callback)};module.exports=AbstractChainedBatch}).call(this,require("_process"))},{_process:31}],2:[function(require,module,exports){(function(process){functionAbstractIterator(db){this.db=db;this._ended=false;this._nexting=false}AbstractIterator.prototype.next=function(callback){varself=this;if(typeofcallback!="function")thrownewError("next() requires a callback argument");if(self._ended)returncallback(newError("cannot call next() after end()"));if(self._nexting)returncallback(newError("cannot call next() before previous next() has completed"));self._nexting=true;if(typeofself._next=="function"){returnself._next(function(){self._nexting=false;callback.apply(null,arguments)})}process.nextTick(function(){self._nexting=false;callback()})};AbstractIterator.prototype.end=function(callback){if(typeofcallback!="function")thrownewError("end() requires a callback argument");if(this._ended)returncallback(newError("end() already called on iterator"));this._ended=true;if(typeofthis._end=="function")returnthis._end(callback);process.nextTick(callback)};module.exports=AbstractIterator}).call(this,require("_process"))},{_process:31}],3:[function(require,module,exports){(function(Buffer,process){varxtend=require("xtend"),AbstractIterator=require("./abstract-iterator"),AbstractChainedBatch=require("./abstract-chained-batch");functionAbstractLevelDOWN(location){if(!arguments.length||location===undefined)thrownewError("constructor requires at least a location argument");if(typeoflocation!="string")thrownewError("constructor requires a location string argument");this.location=location}AbstractLevelDOWN.prototype.open=function(options,callback){if(typeofoptions=="function")callback=options;if(typeofcallback!="function")thrownewError("open() requires a callback argument");if(typeofoptions!="object")options={};if(typeofthis._open=="function")returnthis._open(options,callback);process.nextTick(callback)};AbstractLevelDOWN.prototype.close=function(callback){if(typeofcallback!="