diff options
author | Bernhard Posselt <dev@bernhard-posselt.com> | 2015-02-17 15:25:18 +0100 |
---|---|---|
committer | Bernhard Posselt <dev@bernhard-posselt.com> | 2015-02-17 15:25:18 +0100 |
commit | 17b7189e78edf701564dc677d6bab4b6c198eeda (patch) | |
tree | fa11d15f29f9df479d849e445faef00eb096dedc /js/vendor/es6-shim | |
parent | 816a8beb0b77164aa60a7fe23b4b3d0881985be3 (diff) |
update angular and es6 shim
Diffstat (limited to 'js/vendor/es6-shim')
-rw-r--r-- | js/vendor/es6-shim/.bower.json | 10 | ||||
-rw-r--r-- | js/vendor/es6-shim/CHANGELOG.md | 14 | ||||
-rw-r--r-- | js/vendor/es6-shim/Gruntfile.js | 8 | ||||
-rw-r--r-- | js/vendor/es6-shim/bower.json | 2 | ||||
-rw-r--r-- | js/vendor/es6-shim/component.json | 2 | ||||
-rw-r--r-- | js/vendor/es6-shim/es6-sham.js | 4 | ||||
-rw-r--r-- | js/vendor/es6-shim/es6-sham.min.js | 4 | ||||
-rw-r--r-- | js/vendor/es6-shim/es6-shim.js | 422 | ||||
-rw-r--r-- | js/vendor/es6-shim/es6-shim.map | 2 | ||||
-rw-r--r-- | js/vendor/es6-shim/es6-shim.min.js | 7 | ||||
-rw-r--r-- | js/vendor/es6-shim/package.json | 6 | ||||
-rw-r--r-- | js/vendor/es6-shim/testling.html | 1 |
12 files changed, 428 insertions, 54 deletions
diff --git a/js/vendor/es6-shim/.bower.json b/js/vendor/es6-shim/.bower.json index 8b258b232..de406f10b 100644 --- a/js/vendor/es6-shim/.bower.json +++ b/js/vendor/es6-shim/.bower.json @@ -1,6 +1,6 @@ { "name": "es6-shim", - "version": "0.23.0", + "version": "0.25.0", "repo": "paulmillr/es6-shim", "description": "ECMAScript 6 (Harmony) compatibility shims for legacy JavaScript engines", "keywords": [ @@ -28,13 +28,13 @@ "test" ], "homepage": "https://github.com/paulmillr/es6-shim", - "_release": "0.23.0", + "_release": "0.25.0", "_resolution": { "type": "version", - "tag": "0.23.0", - "commit": "fde6f2134762d36e9b1324f212fd939282700ca5" + "tag": "0.25.0", + "commit": "7781aad3fb2a35048cce9d10bf929dd9fc192ab6" }, "_source": "git://github.com/paulmillr/es6-shim.git", - "_target": "~0.23.*", + "_target": "~0.*", "_originalSource": "es6-shim" }
\ No newline at end of file diff --git a/js/vendor/es6-shim/CHANGELOG.md b/js/vendor/es6-shim/CHANGELOG.md index dc2011087..de20f2aff 100644 --- a/js/vendor/es6-shim/CHANGELOG.md +++ b/js/vendor/es6-shim/CHANGELOG.md @@ -1,5 +1,19 @@ # es6-shim x.x.x (not yet released) +# es6-shim 0.25.0 (16 Feb 2015) +* Ensure Object.getOwnPropertyNames accepts primitives. +* Make sure the replaced `Object.keys` is non-enumerable. +* Clean up lots of tests to make failures easier to read, and false negatives less common + +# es6-shim 0.24.0 (5 Feb 2015) +* Improving accuracy of Math.expm1 values, and ensuring a shim on Linux FF 35, which reports an inaccurate value for Math.expm1(10). +* Fix bug from 7454db144e5aa251d599415cfb296b67aa3cf992 which prevented String#startsWith and String#endsWith from being overwritten in old Firefox. +* Improve tests across a wider list of browsers +* Ensure that individual Reflect methods are added when possible +* Add Reflect (#313) +* Fix node 0.11: it has an imprecise Math.sinh with very small numbers. +* Alter String#repeat RangeError message to align with Firefox’s native implementation. + # es6-shim 0.23.0 (26 Jan 2015) * Use Symbol.species when available, else fall back to "@@species" (renamed from "@@create") * Fix `npm run test-native` diff --git a/js/vendor/es6-shim/Gruntfile.js b/js/vendor/es6-shim/Gruntfile.js index 6df7ca70b..370443762 100644 --- a/js/vendor/es6-shim/Gruntfile.js +++ b/js/vendor/es6-shim/Gruntfile.js @@ -2,26 +2,28 @@ module.exports = function (grunt) { var browsers = [ { browserName: "firefox", version: "19", platform: "XP" }, { browserName: "firefox", platform: "linux" }, + { browserName: "firefox", platform: "OS X 10.10" }, { browserName: "chrome", platform: "linux" }, + { browserName: "chrome", platform: "OS X 10.9" }, + { browserName: "chrome", platform: "XP" }, { browserName: "internet explorer", platform: "Windows 8.1", version: "11" }, { browserName: "internet explorer", platform: "WIN8", version: "10" }, { browserName: "internet explorer", platform: "VISTA", version: "9" }, { browserName: 'safari', platform: 'OS X 10.6' }, { browserName: 'safari', platform: 'OS X 10.8' }, { browserName: 'safari', platform: 'OS X 10.9' }, + { browserName: 'safari', platform: 'OS X 10.10' }, { browserName: 'iphone', platform: 'OS X 10.9', version: '7.1' }, { browserName: 'android', platform: 'Linux', version: '4.4' }, ]; var extraBrowsers = [ { browserName: "firefox", platform: "linux", version: "30" }, { browserName: "firefox", platform: "linux", version: "25" }, - { browserName: "firefox", platform: "OS X 10.9" }, - { browserName: "chrome", platform: "XP" }, - { browserName: "chrome", platform: "OS X 10.9" }, { browserName: 'iphone', platform: 'OS X 10.8', version: '6.1' }, { browserName: 'iphone', platform: 'OS X 10.8', version: '5.1' }, { browserName: 'android', platform: 'Linux', version: '4.2' }, // XXX haven't investigated these: + //{ browserName: "opera", platform: "Windows 7", version: "12" }, //{ browserName: "opera", platform: "Windows 2008", version: "12" } //{ browserName: 'iphone', platform: 'OS X 10.6', version: '4.3' }, //{ browserName: 'android', platform: 'Linux', version: '4.0' }, diff --git a/js/vendor/es6-shim/bower.json b/js/vendor/es6-shim/bower.json index 426d2618f..767c6292f 100644 --- a/js/vendor/es6-shim/bower.json +++ b/js/vendor/es6-shim/bower.json @@ -1,6 +1,6 @@ { "name": "es6-shim", - "version": "0.23.0", + "version": "0.25.0", "repo": "paulmillr/es6-shim", "description": "ECMAScript 6 (Harmony) compatibility shims for legacy JavaScript engines", "keywords": [ diff --git a/js/vendor/es6-shim/component.json b/js/vendor/es6-shim/component.json index fee8fd913..c80e27993 100644 --- a/js/vendor/es6-shim/component.json +++ b/js/vendor/es6-shim/component.json @@ -1,6 +1,6 @@ { "name": "es6-shim", - "version": "0.23.0", + "version": "0.25.0", "repo": "paulmillr/es6-shim", "description": "ECMAScript 6 (Harmony) compatibility shims for legacy JavaScript engines", "keywords": [ diff --git a/js/vendor/es6-shim/es6-sham.js b/js/vendor/es6-shim/es6-sham.js index fe67bfd45..6d974975b 100644 --- a/js/vendor/es6-shim/es6-sham.js +++ b/js/vendor/es6-shim/es6-sham.js @@ -2,8 +2,8 @@ * https://github.com/paulmillr/es6-shim * @license es6-shim Copyright 2013-2014 by Paul Miller (http://paulmillr.com) * and contributors, MIT License - * es6-sham: v0.23.0 - * see https://github.com/paulmillr/es6-shim/blob/0.22.2/LICENSE + * es6-sham: v0.25.0 + * see https://github.com/paulmillr/es6-shim/blob/0.25.0/LICENSE * Details and documentation: * https://github.com/paulmillr/es6-shim/ */ diff --git a/js/vendor/es6-shim/es6-sham.min.js b/js/vendor/es6-shim/es6-sham.min.js index 6ad81ae68..d7cc819de 100644 --- a/js/vendor/es6-shim/es6-sham.min.js +++ b/js/vendor/es6-shim/es6-sham.min.js @@ -2,8 +2,8 @@ * https://github.com/paulmillr/es6-shim * @license es6-shim Copyright 2013-2014 by Paul Miller (http://paulmillr.com) * and contributors, MIT License - * es6-sham: v0.23.0 - * see https://github.com/paulmillr/es6-shim/blob/0.22.2/LICENSE + * es6-sham: v0.25.0 + * see https://github.com/paulmillr/es6-shim/blob/0.25.0/LICENSE * Details and documentation: * https://github.com/paulmillr/es6-shim/ */ diff --git a/js/vendor/es6-shim/es6-shim.js b/js/vendor/es6-shim/es6-shim.js index 888bec378..231f768ff 100644 --- a/js/vendor/es6-shim/es6-shim.js +++ b/js/vendor/es6-shim/es6-shim.js @@ -2,8 +2,8 @@ * https://github.com/paulmillr/es6-shim * @license es6-shim Copyright 2013-2014 by Paul Miller (http://paulmillr.com) * and contributors, MIT License - * es6-shim: v0.23.0 - * see https://github.com/paulmillr/es6-shim/blob/0.22.2/LICENSE + * es6-shim: v0.25.0 + * see https://github.com/paulmillr/es6-shim/blob/0.25.0/LICENSE * Details and documentation: * https://github.com/paulmillr/es6-shim/ */ @@ -206,7 +206,18 @@ return result; }; + var safeApply = Function.call.bind(Function.apply); + var ES = { + // https://people.mozilla.org/~jorendorff/es6-draft.html#sec-call-f-v-args + Call: function Call(F, V) { + var args = arguments.length > 2 ? arguments[2] : []; + if (!ES.IsCallable(F)) { + throw new TypeError(F + ' is not a function'); + } + return safeApply(F, V, args); + }, + RequireObjectCoercible: function (x, optMessage) { /* jshint eqnull:true */ if (x == null) { @@ -315,7 +326,7 @@ // (see emulateES6construct) defineProperties(obj, { _es6construct: true }); // Call the constructor. - var result = C.apply(obj, args); + var result = ES.Call(C, obj, args); return ES.TypeIsObject(result) ? result : obj; } }; @@ -532,27 +543,26 @@ defineProperty(String, 'fromCodePoint', function fromCodePoint(codePoints) { return originalFromCodePoint(this, arguments); }, true); } - var StringShims = { - // Fast repeat, uses the `Exponentiation by squaring` algorithm. - // Perf: http://jsperf.com/string-repeat2/2 - repeat: (function () { - var repeat = function (s, times) { - if (times < 1) { return ''; } - if (times % 2) { return repeat(s, times - 1) + s; } - var half = repeat(s, times / 2); - return half + half; - }; + // Fast repeat, uses the `Exponentiation by squaring` algorithm. + // Perf: http://jsperf.com/string-repeat2/2 + var stringRepeat = function repeat(s, times) { + if (times < 1) { return ''; } + if (times % 2) { return repeat(s, times - 1) + s; } + var half = repeat(s, times / 2); + return half + half; + }; + var stringMaxLength = Infinity; - return function (times) { - ES.RequireObjectCoercible(this); - var thisStr = String(this); - times = ES.ToInteger(times); - if (times < 0 || times === Infinity) { - throw new RangeError('Invalid String#repeat value'); - } - return repeat(thisStr, times); - }; - }()), + var StringShims = { + repeat: function repeat(times) { + ES.RequireObjectCoercible(this); + var thisStr = String(this); + times = ES.ToInteger(times); + if (times < 0 || times >= stringMaxLength) { + throw new RangeError('repeat count must be less than infinity and not overflow maximum string size'); + } + return stringRepeat(thisStr, times); + }, startsWith: function (searchStr) { ES.RequireObjectCoercible(this); @@ -653,10 +663,8 @@ if (!startsWithIsCompliant) { // Firefox has a noncompliant startsWith implementation - defineProperties(String.prototype, { - startsWith: StringShims.startsWith, - endsWith: StringShims.endsWith - }); + defineProperty(String.prototype, 'startsWith', StringShims.startsWith, true); + defineProperty(String.prototype, 'endsWith', StringShims.endsWith, true); } var ArrayShims = { @@ -733,6 +741,13 @@ defineProperty(Array, 'from', ArrayShims.from, true); } + // Given an argument x, it will return an IteratorResult object, + // with value set to x and done to false. + // Given no arguments, it will return an iterator completion object. + var iterator_result = function (x) { + return { value: x, done: arguments.length === 0 }; + }; + // Our ArrayIterator is private; see // https://github.com/paulmillr/es6-shim/issues/252 ArrayIterator = function (array, kind) { @@ -769,6 +784,61 @@ }); addIterator(ArrayIterator.prototype); + var ObjectIterator = function (object, kind) { + this.object = object; + // Don't generate keys yet. + this.array = null; + this.kind = kind; + }; + + function getAllKeys(object) { + var keys = []; + + for (var key in object) { + keys.push(key); + } + + return keys; + } + + defineProperties(ObjectIterator.prototype, { + next: function () { + var key, array = this.array; + + if (!(this instanceof ObjectIterator)) { + throw new TypeError('Not an ObjectIterator'); + } + + // Keys not generated + if (array === null) { + array = this.array = getAllKeys(this.object); + } + + // Find next key in the object + while (ES.ToLength(array.length) > 0) { + key = array.shift(); + + // The candidate key isn't defined on object. + // Must have been deleted, or object[[Prototype]] + // has been modified. + if (!(key in this.object)) { + continue; + } + + if (this.kind === 'key') { + return iterator_result(key); + } else if (this.kind === 'value') { + return iterator_result(this.object[key]); + } else { + return iterator_result([key, this.object[key]]); + } + } + + return iterator_result(); + } + }); + addIterator(ObjectIterator.prototype); + var ArrayPrototypeShims = { copyWithin: function (target, start) { var end = arguments[2]; // copyWithin.length must be 2 @@ -1028,13 +1098,36 @@ }()); } - try { - Object.keys('foo'); - } catch (e) { + var objectKeysAcceptsPrimitives = (function () { + try { + Object.keys('foo'); + return true; + } catch (e) { + return false; + } + }()); + if (!objectKeysAcceptsPrimitives) { var originalObjectKeys = Object.keys; - Object.keys = function (obj) { - return originalObjectKeys(ES.ToObject(obj)); - }; + defineProperty(Object, 'keys', function keys(value) { + return originalObjectKeys(ES.ToObject(value)); + }, true); + } + + if (Object.getOwnPropertyNames) { + var objectGOPNAcceptsPrimitives = (function () { + try { + Object.getOwnPropertyNames('foo'); + return true; + } catch (e) { + return false; + } + }()); + if (!objectGOPNAcceptsPrimitives) { + var originalObjectGetOwnPropertyNames = Object.getOwnPropertyNames; + defineProperty(Object, 'getOwnPropertyNames', function getOwnPropertyNames(value) { + return originalObjectGetOwnPropertyNames(ES.ToObject(value)); + }, true); + } } if (!RegExp.prototype.flags && supportsDescriptors) { @@ -1284,6 +1377,11 @@ defineProperty(Math, 'tanh', MathShims.tanh, Math.tanh(-2e-17) !== -2e-17); // Chrome 40 loses Math.acosh precision with high numbers defineProperty(Math, 'acosh', MathShims.acosh, Math.acosh(Number.MAX_VALUE) === Infinity); + // node 0.11 has an imprecise Math.sinh with very small numbers + defineProperty(Math, 'sinh', MathShims.sinh, Math.sinh(-2e-17) !== -2e-17); + // FF 35 on Linux reports 22025.465794806725 for Math.expm1(10) + var expm1OfTen = Math.expm1(10); + defineProperty(Math, 'expm1', MathShims.expm1, expm1OfTen > 22025.465794806719 || expm1OfTen < 22025.4657948067165168); var roundHandlesBoundaryConditions = Math.round(0.5 - Number.EPSILON / 4) === 0 && Math.round(-0.5 + Number.EPSILON / 3.99) === 1; var origMathRound = Math.round; @@ -2132,5 +2230,263 @@ addIterator(Object.getPrototypeOf((new globals.Set()).keys())); } + // Reflect + if (!globals.Reflect) { + defineProperty(globals, 'Reflect', {}); + } + var Reflect = globals.Reflect; + + var throwUnlessTargetIsObject = function throwUnlessTargetIsObject(target) { + if (!ES.TypeIsObject(target)) { + throw new TypeError('target must be an object'); + } + }; + + // Some Reflect methods are basically the same as + // those on the Object global, except that a TypeError is thrown if + // target isn't an object. As well as returning a boolean indicating + // the success of the operation. + defineProperties(globals.Reflect, { + // Apply method in a functional form. + apply: function apply() { + return ES.Call.apply(null, arguments); + }, + + // New operator in a functional form. + construct: function construct(constructor, args) { + if (!ES.IsCallable(constructor)) { + throw new TypeError('First argument must be callable.'); + } + + return ES.Construct(constructor, args); + }, + + // When deleting a non-existent or configurable property, + // true is returned. + // When attempting to delete a non-configurable property, + // it will return false. + deleteProperty: function deleteProperty(target, key) { + throwUnlessTargetIsObject(target); + if (supportsDescriptors) { + var desc = Object.getOwnPropertyDescriptor(target, key); + + if (desc && !desc.configurable) { + return false; + } + } + + // Will return true. + return delete target[key]; + }, + + enumerate: function enumerate(target) { + throwUnlessTargetIsObject(target); + return new ObjectIterator(target, 'key'); + }, + + has: function has(target, key) { + throwUnlessTargetIsObject(target); + return key in target; + } + }); + + if (Object.getOwnPropertyNames) { + defineProperties(globals.Reflect, { + // Basically the result of calling the internal [[OwnPropertyKeys]]. + // Concatenating propertyNames and propertySymbols should do the trick. + // This should continue to work together with a Symbol shim + // which overrides Object.getOwnPropertyNames and implements + // Object.getOwnPropertySymbols. + ownKeys: function ownKeys(target) { + throwUnlessTargetIsObject(target); + var keys = Object.getOwnPropertyNames(target); + + if (ES.IsCallable(Object.getOwnPropertySymbols)) { + keys.push.apply(keys, Object.getOwnPropertySymbols(target)); + } + + return keys; + } + }); + } + + if (Object.preventExtensions) { + defineProperties(globals.Reflect, { + isExtensible: function isExtensible(target) { + throwUnlessTargetIsObject(target); + return Object.isExtensible(target); + }, + preventExtensions: function preventExtensions(target) { + throwUnlessTargetIsObject(target); + return callAndCatchException(function () { + Object.preventExtensions(target); + }); + } + }); + } + + if (supportsDescriptors) { + var internal_get = function get(target, key, receiver) { + var desc = Object.getOwnPropertyDescriptor(target, key); + + if (!desc) { + var parent = Object.getPrototypeOf(target); + + if (parent === null) { + return undefined; + } + + return internal_get(parent, key, receiver); + } + + if ('value' in desc) { + return desc.value; + } + + if (desc.get) { + return desc.get.call(receiver); + } + + return undefined; + }; + + var internal_set = function set(target, key, value, receiver) { + var desc = Object.getOwnPropertyDescriptor(target, key); + + if (!desc) { + var parent = Object.getPrototypeOf(target); + + if (parent !== null) { + return internal_set(parent, key, value, receiver); + } + + desc = { + value: void 0, + writable: true, + enumerable: true, + configurable: true + }; + } + + if ('value' in desc) { + if (!desc.writable) { + return false; + } + + if (!ES.TypeIsObject(receiver)) { + return false; + } + + var existingDesc = Object.getOwnPropertyDescriptor(receiver, key); + + if (existingDesc) { + return Reflect.defineProperty(receiver, key, { + value: value + }); + } else { + return Reflect.defineProperty(receiver, key, { + value: value, + writable: true, + enumerable: true, + configurable: true + }); + } + } + + if (desc.set) { + desc.set.call(receiver, value); + return true; + } + + return false; + }; + + var callAndCatchException = function ConvertExceptionToBoolean(func) { + try { func(); } catch (_) { return false; } + return true; + }; + + defineProperties(globals.Reflect, { + defineProperty: function defineProperty(target, propertyKey, attributes) { + throwUnlessTargetIsObject(target); + return callAndCatchException(function () { + Object.defineProperty(target, propertyKey, attributes); + }); + }, + + getOwnPropertyDescriptor: function getOwnPropertyDescriptor(target, propertyKey) { + throwUnlessTargetIsObject(target); + return Object.getOwnPropertyDescriptor(target, propertyKey); + }, + + // Syntax in a functional form. + get: function get(target, key) { + throwUnlessTargetIsObject(target); + var receiver = arguments.length > 2 ? arguments[2] : target; + + return internal_get(target, key, receiver); + }, + + set: function set(target, key, value) { + throwUnlessTargetIsObject(target); + var receiver = arguments.length > 3 ? arguments[3] : target; + + return internal_set(target, key, value, receiver); + } + }); + } + + if (Object.getPrototypeOf) { + var objectDotGetPrototypeOf = Object.getPrototypeOf; + defineProperties(globals.Reflect, { + getPrototypeOf: function getPrototypeOf(target) { + throwUnlessTargetIsObject(target); + return objectDotGetPrototypeOf(target); + } + }); + } + + if (Object.setPrototypeOf) { + var willCreateCircularPrototype = function (object, proto) { + while (proto) { + if (object === proto) { + return true; + } + proto = Reflect.getPrototypeOf(proto); + } + return false; + }; + + defineProperties(globals.Reflect, { + // Sets the prototype of the given object. + // Returns true on success, otherwise false. + setPrototypeOf: function setPrototypeOf(object, proto) { + throwUnlessTargetIsObject(object); + if (proto !== null && !ES.TypeIsObject(proto)) { + throw new TypeError('proto must be an object or null'); + } + + // If they already are the same, we're done. + if (proto === Reflect.getPrototypeOf(object)) { + return true; + } + + // Cannot alter prototype if object not extensible. + if (Reflect.isExtensible && !Reflect.isExtensible(object)) { + return false; + } + + // Ensure that we do not create a circular prototype chain. + if (willCreateCircularPrototype(object, proto)) { + return false; + } + + Object.setPrototypeOf(object, proto); + + return true; + } + }); + } + return globals; })); diff --git a/js/vendor/es6-shim/es6-shim.map b/js/vendor/es6-shim/es6-shim.map index 87ba70fb5..76b8c1bc1 100644 --- a/js/vendor/es6-shim/es6-shim.map +++ b/js/vendor/es6-shim/es6-shim.map @@ -1 +1 @@ -{"version":3,"sources":["es6-shim.js"],"names":["root","factory","define","amd","exports","module","returnExports","this","isCallableWithoutNew","func","e","supportsSubclassing","C","f","Sub","apply","arguments","__proto__","Object","setPrototypeOf","prototype","create","constructor","value","arePropertyDescriptorsSupported","defineProperty","startsWithRejectsRegex","rejectsRegex","String","startsWith","getGlobal","Function","globals","global_isFinite","isFinite","supportsDescriptors","startsWithIsCompliant","_indexOf","call","bind","indexOf","_toString","toString","_hasOwnProperty","hasOwnProperty","ArrayIterator","noop","Symbol","symbolSpecies","species","Type","string","x","regex","symbol","object","name","force","configurable","enumerable","writable","Value","getter","TypeError","get","proxy","originalObject","key","targetObject","originalDescriptor","getOwnPropertyDescriptor","getKey","set","setKey","redefine","property","newValue","descriptor","defineProperties","map","keys","forEach","method","properties","Prototype","$iterator$","iterator","Set","addIterator","impl","o","isArguments","str","result","length","callee","ES","RequireObjectCoercible","optMessage","TypeIsObject","ToObject","IsCallable","ToInt32","ToNumber","ToUint32","ToInteger","number","Number","isNaN","Math","floor","abs","ToLength","len","MAX_SAFE_INTEGER","SameValue","a","b","SameValueZero","IsIterable","GetIterator","itFn","it","IteratorNext","next","Construct","args","obj","_es6construct","emulateES6construct","numberConversion","roundToEven","n","w","packIEEE754","v","ebits","fbits","bias","s","i","bits","bytes","pow","Infinity","min","log","LN2","push","reverse","join","parseInt","slice","unpackIEEE754","j","NaN","unpackFloat64","packFloat64","unpackFloat32","packFloat32","conversions","toFloat32","num","Float32Array","float32array","fromCodePoint","codePoints","RangeError","fromCharCode","raw","callSite","cooked","rawValue","rawString","literalsegments","stringElements","nextIndex","nextKey","nextSeg","nextSub","originalFromCodePoint","StringShims","repeat","times","half","thisStr","searchStr","startArg","start","max","endsWith","thisLen","posArg","pos","end","includes","searchString","position","codePointAt","first","charCodeAt","isEnd","second","hasStringTrimBug","trim","ws","trimRegexp","RegExp","replace","StringIterator","_s","_i","done","substr","ArrayShims","from","iterable","mapFn","list","hasThisArg","thisArg","usingIterator","iterationValue","Array","of","arrayFromSwallowsNegativeLengths","array","kind","retval","ArrayPrototypeShims","copyWithin","target","to","fin","count","direction","fill","O","relativeStart","relativeEnd","find","predicate","findIndex","values","entries","unscopables","getPrototypeOf","maxSafeInteger","MIN_SAFE_INTEGER","EPSILON","parseFloat","isInteger","isSafeInteger","item","idx","assign","source","reduce","is","magic","checkArgs","proto","polyfill","FAKENULL","gpo","spo","p","originalObjectKeys","flags","regExpFlagsGetter","global","ignoreCase","multiline","unicode","sticky","regExpSupportsFlagsWithRegex","OrigRegExp","RegExpShim","pattern","getOwnPropertyNames","MathShims","acosh","E","sqrt","asinh","atanh","cbrt","negate","clz32","cosh","exp","expm1","t","sum","hypot","y","anyNaN","allZero","anyInfinity","numbers","every","arg","sort","largest","divided","log2","LOG2E","log10","LOG10E","log1p","sign","sinh","tanh","trunc","imul","ah","al","bh","bl","fround","MAX_VALUE","roundHandlesBoundaryConditions","round","origMathRound","PromiseShim","Promise","Promise$prototype","IsPromise","promise","_promiseConstructor","_status","PromiseCapability","capability","resolver","resolve","reject","setTimeout","makeZeroTimeout","window","postMessage","timeouts","messageName","setZeroTimeout","fn","handleMessage","event","data","stopPropagation","shift","addEventListener","makePromiseAsap","P","task","then","enqueue","setImmediate","process","nextTick","updatePromiseFromPotentialThenable","triggerPromiseReactions","reactions","reaction","handler","updateResult","promiseResolutionHandler","onFulfilled","onRejected","_resolveReactions","_rejectReactions","resolution","_result","reason","_promiseAllResolver","index","remaining","all","nextPromise","resolveElement","race","rejectPromise","resolvePromise","catch","resolutionHandler","resolveReaction","rejectReaction","accept","defer","chain","promiseSupportsSubclassing","S","promiseIgnoresNonFunctionThenCallbacks","ex","promiseRequiresObjectContext","testOrder","k","preservesInsertionOrder","preservesNumericInsertionOrder","fastkey","type","emptyObject","collectionShims","Map","empty","MapEntry","prev","isRemoved","MapIterator","head","_head","_es6map","_storage","_size","adder","nextItem","Map$prototype","fkey","entry","has","delete","clear","callback","context","SetShim","_es6set","[[SetData]]","add","Set$prototype","ensureMap","m","charAt","size","hasFKey","entireSet","M"],"mappings":";;;;;;;;;CAYC,SAAUA,EAAMC,GAEf,SAAWC,UAAW,YAAcA,OAAOC,IAAK,CAE9CD,OAAOD,OACF,UAAWG,WAAY,SAAU,CAItCC,OAAOD,QAAUH,QACZ,CAELD,EAAKM,cAAgBL,OAEvBM,KAAM,WACN,YAEA,IAAIC,GAAuB,SAAUC,GACnC,IACEA,IACA,MAAOC,GACP,MAAO,OAET,MAAO,MAGT,IAAIC,GAAsB,SAAUC,EAAGC,GAErC,IACE,GAAIC,GAAM,WAAcF,EAAEG,MAAMR,KAAMS,WACtC,KAAKF,EAAIG,UAAW,CAAE,MAAO,OAC7BC,OAAOC,eAAeL,EAAKF,EAC3BE,GAAIM,UAAYF,OAAOG,OAAOT,EAAEQ,WAC9BE,aAAeC,MAAOX,IAExB,OAAOC,GAAEC,GACT,MAAOJ,GACP,MAAO,QAIX,IAAIc,GAAkC,WACpC,IACEN,OAAOO,kBAAmB,OAC1B,OAAO,MACP,MAAOf,GACP,MAAO,QAIX,IAAIgB,GAAyB,WAC3B,GAAIC,GAAe,KACnB,IAAIC,OAAOR,UAAUS,WAAY,CAC/B,IACE,MAAMA,WAAW,KACjB,MAAOnB,GACPiB,EAAe,MAGnB,MAAOA,GAIT,IAAIG,GAAY,GAAIC,UAAS,eAG7B,IAAIC,GAAUF,GACd,IAAIG,GAAkBD,EAAQE,QAC9B,IAAIC,KAAwBjB,OAAOO,gBAAkBD,GACrD,IAAIY,GAAwBV,GAC5B,IAAIW,GAA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