"use strict";function ready(i){if(this._ready=!!this._ready,this._readyCallbacks=this._readyCallbacks||[],0===arguments.length)return new Promise(function(i){if(this._ready)return i();this._readyCallbacks.push(i)}.bind(this));"function"==typeof i?this._readyCallbacks.push(i):this._ready=!!i,this._ready&&this._readyCallbacks.splice(0,1/0).forEach(function(i){process.nextTick(i)})}function mixin(i){i.ready=ready}module.exports=mixin,module.exports.mixin=mixin;