diff --git a/.babelrc b/.babelrc index c87fa28..82fe168 100644 --- a/.babelrc +++ b/.babelrc @@ -1,26 +1,7 @@ { + "presets": ["es2015-loose"], "plugins": [ - ["check-es2015-constants", {"loose": true}], - ["transform-es2015-arrow-functions", {"loose": true}], - ["transform-es2015-block-scoped-functions", {"loose": true}], - ["transform-es2015-block-scoping", {"loose": true}], - ["transform-es2015-classes", {"loose": true}], - ["transform-es2015-computed-properties", {"loose": true}], - ["transform-es2015-destructuring", {"loose": true}], - ["transform-es2015-for-of", {"loose": true}], - ["transform-es2015-function-name", {"loose": true}], - ["transform-es2015-literals", {"loose": true}], - ["transform-es2015-modules-commonjs", {"loose": true}], - ["transform-es2015-object-super", {"loose": true}], - ["transform-es2015-parameters", {"loose": true}], - ["transform-es2015-shorthand-properties", {"loose": true}], - ["transform-es2015-spread", {"loose": true}], - ["transform-es2015-sticky-regex", {"loose": true}], - ["transform-es2015-template-literals", {"loose": true}], - ["transform-es2015-typeof-symbol", {"loose": true}], - ["transform-es2015-unicode-regex", {"loose": true}], - ["transform-regenerator", {"loose": true}], - ["transform-es3-member-expression-literals", {"loose": true}], - ["transform-es3-property-literals", {"loose": true}] + ["transform-es3-member-expression-literals"], + ["transform-es3-property-literals"] ] } \ No newline at end of file diff --git a/dist/dd-manager.js b/dist/dd-manager.js index 9826753..38f63a0 100644 --- a/dist/dd-manager.js +++ b/dist/dd-manager.js @@ -1262,7 +1262,7 @@ }()); }).call(this,require('_process'),typeof global !== "undefined" ? global : typeof self !== "undefined" ? self : typeof window !== "undefined" ? window : {}) -},{"_process":49}],2:[function(require,module,exports){ +},{"_process":62}],2:[function(require,module,exports){ var lookup = 'ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/'; ;(function (exports) { @@ -2936,7 +2936,7 @@ function blitBuffer (src, dst, offset, length) { } }).call(this,typeof global !== "undefined" ? global : typeof self !== "undefined" ? self : typeof window !== "undefined" ? window : {}) -},{"base64-js":2,"ieee754":46,"is-array":47}],4:[function(require,module,exports){ +},{"base64-js":2,"ieee754":59,"is-array":60}],4:[function(require,module,exports){ /** * Module dependencies. */ @@ -3207,17 +3207,17 @@ module.exports = function(it){ return it; }; },{}],8:[function(require,module,exports){ -var isObject = require('./$.is-object'); +var isObject = require('./_is-object'); module.exports = function(it){ if(!isObject(it))throw TypeError(it + ' is not an object!'); return it; }; -},{"./$.is-object":27}],9:[function(require,module,exports){ +},{"./_is-object":28}],9:[function(require,module,exports){ // false -> Array#indexOf // true -> Array#includes -var toIObject = require('./$.to-iobject') - , toLength = require('./$.to-length') - , toIndex = require('./$.to-index'); +var toIObject = require('./_to-iobject') + , toLength = require('./_to-length') + , toIndex = require('./_to-index'); module.exports = function(IS_INCLUDES){ return function($this, el, fromIndex){ var O = toIObject($this) @@ -3230,83 +3230,47 @@ module.exports = function(IS_INCLUDES){ if(value != value)return true; // Array#toIndex ignores holes, Array#includes - not } else for(;length > index; index++)if(IS_INCLUDES || index in O){ - if(O[index] === el)return IS_INCLUDES || index; + if(O[index] === el)return IS_INCLUDES || index || 0; } return !IS_INCLUDES && -1; }; }; -},{"./$.to-index":34,"./$.to-iobject":36,"./$.to-length":37}],10:[function(require,module,exports){ -// 0 -> Array#forEach -// 1 -> Array#map -// 2 -> Array#filter -// 3 -> Array#some -// 4 -> Array#every -// 5 -> Array#find -// 6 -> Array#findIndex -var ctx = require('./$.ctx') - , IObject = require('./$.iobject') - , toObject = require('./$.to-object') - , toLength = require('./$.to-length') - , asc = require('./$.array-species-create'); -module.exports = function(TYPE){ - var IS_MAP = TYPE == 1 - , IS_FILTER = TYPE == 2 - , IS_SOME = TYPE == 3 - , IS_EVERY = TYPE == 4 - , IS_FIND_INDEX = TYPE == 6 - , NO_HOLES = TYPE == 5 || IS_FIND_INDEX; - return function($this, callbackfn, that){ - var O = toObject($this) - , self = IObject(O) - , f = ctx(callbackfn, that, 3) - , length = toLength(self.length) - , index = 0 - , result = IS_MAP ? asc($this, length) : IS_FILTER ? asc($this, 0) : undefined - , val, res; - for(;length > index; index++)if(NO_HOLES || index in self){ - val = self[index]; - res = f(val, index, O); - if(TYPE){ - if(IS_MAP)result[index] = res; // map - else if(res)switch(TYPE){ - case 3: return true; // some - case 5: return val; // find - case 6: return index; // findIndex - case 2: result.push(val); // filter - } else if(IS_EVERY)return false; // every - } - } - return IS_FIND_INDEX ? -1 : IS_SOME || IS_EVERY ? IS_EVERY : result; - }; +},{"./_to-index":44,"./_to-iobject":46,"./_to-length":47}],10:[function(require,module,exports){ +'use strict'; +var aFunction = require('./_a-function') + , isObject = require('./_is-object') + , invoke = require('./_invoke') + , arraySlice = [].slice + , factories = {}; + +var construct = function(F, len, args){ + if(!(len in factories)){ + for(var n = [], i = 0; i < len; i++)n[i] = 'a[' + i + ']'; + factories[len] = Function('F,a', 'return new F(' + n.join(',') + ')'); + } return factories[len](F, args); }; -},{"./$.array-species-create":11,"./$.ctx":14,"./$.iobject":25,"./$.to-length":37,"./$.to-object":38}],11:[function(require,module,exports){ -// 9.4.2.3 ArraySpeciesCreate(originalArray, length) -var isObject = require('./$.is-object') - , isArray = require('./$.is-array') - , SPECIES = require('./$.wks')('species'); -module.exports = function(original, length){ - var C; - if(isArray(original)){ - C = original.constructor; - // cross-realm fallback - if(typeof C == 'function' && (C === Array || isArray(C.prototype)))C = undefined; - if(isObject(C)){ - C = C[SPECIES]; - if(C === null)C = undefined; - } - } return new (C === undefined ? Array : C)(length); + +module.exports = Function.bind || function bind(that /*, args... */){ + var fn = aFunction(this) + , partArgs = arraySlice.call(arguments, 1); + var bound = function(/* args... */){ + var args = partArgs.concat(arraySlice.call(arguments)); + return this instanceof bound ? construct(fn, args.length, args) : invoke(fn, args, that); + }; + if(isObject(fn.prototype))bound.prototype = fn.prototype; + return bound; }; -},{"./$.is-array":26,"./$.is-object":27,"./$.wks":40}],12:[function(require,module,exports){ +},{"./_a-function":7,"./_invoke":25,"./_is-object":28}],11:[function(require,module,exports){ var toString = {}.toString; module.exports = function(it){ return toString.call(it).slice(8, -1); }; -},{}],13:[function(require,module,exports){ -var core = module.exports = {version: '1.2.6'}; +},{}],12:[function(require,module,exports){ +var core = module.exports = {version: '2.4.0'}; if(typeof __e == 'number')__e = core; // eslint-disable-line no-undef -},{}],14:[function(require,module,exports){ +},{}],13:[function(require,module,exports){ // optional / simple context binding -var aFunction = require('./$.a-function'); +var aFunction = require('./_a-function'); module.exports = function(fn, that, length){ aFunction(fn); if(that === undefined)return fn; @@ -3325,31 +3289,36 @@ module.exports = function(fn, that, length){ return fn.apply(that, arguments); }; }; -},{"./$.a-function":7}],15:[function(require,module,exports){ +},{"./_a-function":7}],14:[function(require,module,exports){ // 7.2.1 RequireObjectCoercible(argument) module.exports = function(it){ if(it == undefined)throw TypeError("Can't call method on " + it); return it; }; -},{}],16:[function(require,module,exports){ +},{}],15:[function(require,module,exports){ // Thank's IE8 for his funny defineProperty -module.exports = !require('./$.fails')(function(){ +module.exports = !require('./_fails')(function(){ return Object.defineProperty({}, 'a', {get: function(){ return 7; }}).a != 7; }); -},{"./$.fails":19}],17:[function(require,module,exports){ -var isObject = require('./$.is-object') - , document = require('./$.global').document +},{"./_fails":19}],16:[function(require,module,exports){ +var isObject = require('./_is-object') + , document = require('./_global').document // in old IE typeof document.createElement is 'object' , is = isObject(document) && isObject(document.createElement); module.exports = function(it){ return is ? document.createElement(it) : {}; }; -},{"./$.global":20,"./$.is-object":27}],18:[function(require,module,exports){ -var global = require('./$.global') - , core = require('./$.core') - , hide = require('./$.hide') - , redefine = require('./$.redefine') - , ctx = require('./$.ctx') +},{"./_global":20,"./_is-object":28}],17:[function(require,module,exports){ +// IE 8- don't enum bug keys +module.exports = ( + 'constructor,hasOwnProperty,isPrototypeOf,propertyIsEnumerable,toLocaleString,toString,valueOf' +).split(','); +},{}],18:[function(require,module,exports){ +var global = require('./_global') + , core = require('./_core') + , hide = require('./_hide') + , redefine = require('./_redefine') + , ctx = require('./_ctx') , PROTOTYPE = 'prototype'; var $export = function(type, name, source){ @@ -3365,13 +3334,13 @@ var $export = function(type, name, source){ if(IS_GLOBAL)source = name; for(key in source){ // contains in native - own = !IS_FORCED && target && key in target; + own = !IS_FORCED && target && target[key] !== undefined; // export native or passed out = (own ? target : source)[key]; // bind timers to global for call from export context exp = IS_BIND && own ? ctx(out, global) : IS_PROTO && typeof out == 'function' ? ctx(Function.call, out) : out; // extend global - if(target && !own)redefine(target, key, out); + if(target)redefine(target, key, out, type & $export.U); // export if(exports[key] != out)hide(exports, key, exp); if(IS_PROTO && expProto[key] != out)expProto[key] = out; @@ -3379,14 +3348,16 @@ var $export = function(type, name, source){ }; global.core = core; // type bitmap -$export.F = 1; // forced -$export.G = 2; // global -$export.S = 4; // static -$export.P = 8; // proto -$export.B = 16; // bind -$export.W = 32; // wrap +$export.F = 1; // forced +$export.G = 2; // global +$export.S = 4; // static +$export.P = 8; // proto +$export.B = 16; // bind +$export.W = 32; // wrap +$export.U = 64; // safe +$export.R = 128; // real proto method for `library` module.exports = $export; -},{"./$.core":13,"./$.ctx":14,"./$.global":20,"./$.hide":22,"./$.redefine":31}],19:[function(require,module,exports){ +},{"./_core":12,"./_ctx":13,"./_global":20,"./_hide":22,"./_redefine":38}],19:[function(require,module,exports){ module.exports = function(exec){ try { return !!exec(); @@ -3405,17 +3376,21 @@ module.exports = function(it, key){ return hasOwnProperty.call(it, key); }; },{}],22:[function(require,module,exports){ -var $ = require('./$') - , createDesc = require('./$.property-desc'); -module.exports = require('./$.descriptors') ? function(object, key, value){ - return $.setDesc(object, key, createDesc(1, value)); +var dP = require('./_object-dp') + , createDesc = require('./_property-desc'); +module.exports = require('./_descriptors') ? function(object, key, value){ + return dP.f(object, key, createDesc(1, value)); } : function(object, key, value){ object[key] = value; return object; }; -},{"./$":28,"./$.descriptors":16,"./$.property-desc":30}],23:[function(require,module,exports){ -module.exports = require('./$.global').document && document.documentElement; -},{"./$.global":20}],24:[function(require,module,exports){ +},{"./_descriptors":15,"./_object-dp":31,"./_property-desc":37}],23:[function(require,module,exports){ +module.exports = require('./_global').document && document.documentElement; +},{"./_global":20}],24:[function(require,module,exports){ +module.exports = !require('./_descriptors') && !require('./_fails')(function(){ + return Object.defineProperty(require('./_dom-create')('div'), 'a', {get: function(){ return 7; }}).a != 7; +}); +},{"./_descriptors":15,"./_dom-create":16,"./_fails":19}],25:[function(require,module,exports){ // fast apply, http://jsperf.lnkit.com/fast-apply/5 module.exports = function(fn, args, that){ var un = that === undefined; @@ -3432,71 +3407,159 @@ module.exports = function(fn, args, that){ : fn.call(that, args[0], args[1], args[2], args[3]); } return fn.apply(that, args); }; -},{}],25:[function(require,module,exports){ +},{}],26:[function(require,module,exports){ // fallback for non-array-like ES3 and non-enumerable old V8 strings -var cof = require('./$.cof'); +var cof = require('./_cof'); module.exports = Object('z').propertyIsEnumerable(0) ? Object : function(it){ return cof(it) == 'String' ? it.split('') : Object(it); }; -},{"./$.cof":12}],26:[function(require,module,exports){ +},{"./_cof":11}],27:[function(require,module,exports){ // 7.2.2 IsArray(argument) -var cof = require('./$.cof'); -module.exports = Array.isArray || function(arg){ +var cof = require('./_cof'); +module.exports = Array.isArray || function isArray(arg){ return cof(arg) == 'Array'; }; -},{"./$.cof":12}],27:[function(require,module,exports){ +},{"./_cof":11}],28:[function(require,module,exports){ module.exports = function(it){ return typeof it === 'object' ? it !== null : typeof it === 'function'; }; -},{}],28:[function(require,module,exports){ -var $Object = Object; -module.exports = { - create: $Object.create, - getProto: $Object.getPrototypeOf, - isEnum: {}.propertyIsEnumerable, - getDesc: $Object.getOwnPropertyDescriptor, - setDesc: $Object.defineProperty, - setDescs: $Object.defineProperties, - getKeys: $Object.keys, - getNames: $Object.getOwnPropertyNames, - getSymbols: $Object.getOwnPropertySymbols, - each: [].forEach -}; },{}],29:[function(require,module,exports){ +'use strict'; // 19.1.2.1 Object.assign(target, source, ...) -var $ = require('./$') - , toObject = require('./$.to-object') - , IObject = require('./$.iobject'); +var getKeys = require('./_object-keys') + , gOPS = require('./_object-gops') + , pIE = require('./_object-pie') + , toObject = require('./_to-object') + , IObject = require('./_iobject') + , $assign = Object.assign; // should work with symbols and should have deterministic property order (V8 bug) -module.exports = require('./$.fails')(function(){ - var a = Object.assign - , A = {} +module.exports = !$assign || require('./_fails')(function(){ + var A = {} , B = {} , S = Symbol() , K = 'abcdefghijklmnopqrst'; A[S] = 7; K.split('').forEach(function(k){ B[k] = k; }); - return a({}, A)[S] != 7 || Object.keys(a({}, B)).join('') != K; + return $assign({}, A)[S] != 7 || Object.keys($assign({}, B)).join('') != K; }) ? function assign(target, source){ // eslint-disable-line no-unused-vars var T = toObject(target) - , $$ = arguments - , $$len = $$.length + , aLen = arguments.length , index = 1 - , getKeys = $.getKeys - , getSymbols = $.getSymbols - , isEnum = $.isEnum; - while($$len > index){ - var S = IObject($$[index++]) + , getSymbols = gOPS.f + , isEnum = pIE.f; + while(aLen > index){ + var S = IObject(arguments[index++]) , keys = getSymbols ? getKeys(S).concat(getSymbols(S)) : getKeys(S) , length = keys.length , j = 0 , key; while(length > j)if(isEnum.call(S, key = keys[j++]))T[key] = S[key]; - } - return T; -} : Object.assign; -},{"./$":28,"./$.fails":19,"./$.iobject":25,"./$.to-object":38}],30:[function(require,module,exports){ + } return T; +} : $assign; +},{"./_fails":19,"./_iobject":26,"./_object-gops":33,"./_object-keys":35,"./_object-pie":36,"./_to-object":48}],30:[function(require,module,exports){ +// 19.1.2.2 / 15.2.3.5 Object.create(O [, Properties]) +var anObject = require('./_an-object') + , dPs = require('./_object-dps') + , enumBugKeys = require('./_enum-bug-keys') + , IE_PROTO = require('./_shared-key')('IE_PROTO') + , Empty = function(){ /* empty */ } + , PROTOTYPE = 'prototype'; + +// Create object with fake `null` prototype: use iframe Object with cleared prototype +var createDict = function(){ + // Thrash, waste and sodomy: IE GC bug + var iframe = require('./_dom-create')('iframe') + , i = enumBugKeys.length + , gt = '>' + , iframeDocument; + iframe.style.display = 'none'; + require('./_html').appendChild(iframe); + iframe.src = 'javascript:'; // eslint-disable-line no-script-url + // createDict = iframe.contentWindow.Object; + // html.removeChild(iframe); + iframeDocument = iframe.contentWindow.document; + iframeDocument.open(); + iframeDocument.write('