/**
|
|
* core-js 3.31.0
|
|
* © 2014-2023 Denis Pushkarev (zloirock.ru)
|
|
* license: https://github.com/zloirock/core-js/blob/v3.31.0/LICENSE
|
|
* source: https://github.com/zloirock/core-js
|
|
*/
|
|
!function (undefined) { 'use strict'; /******/ (function(modules) { // webpackBootstrap
|
|
/******/ // The module cache
|
|
/******/ var installedModules = {};
|
|
/******/
|
|
/******/ // The require function
|
|
/******/ var __webpack_require__ = function (moduleId) {
|
|
/******/
|
|
/******/ // Check if module is in cache
|
|
/******/ if(installedModules[moduleId]) {
|
|
/******/ return installedModules[moduleId].exports;
|
|
/******/ }
|
|
/******/ // Create a new module (and put it into the cache)
|
|
/******/ var module = installedModules[moduleId] = {
|
|
/******/ i: moduleId,
|
|
/******/ l: false,
|
|
/******/ exports: {}
|
|
/******/ };
|
|
/******/
|
|
/******/ // Execute the module function
|
|
/******/ modules[moduleId].call(module.exports, module, module.exports, __webpack_require__);
|
|
/******/
|
|
/******/ // Flag the module as loaded
|
|
/******/ module.l = true;
|
|
/******/
|
|
/******/ // Return the exports of the module
|
|
/******/ return module.exports;
|
|
/******/ }
|
|
/******/
|
|
/******/
|
|
/******/ // expose the modules object (__webpack_modules__)
|
|
/******/ __webpack_require__.m = modules;
|
|
/******/
|
|
/******/ // expose the module cache
|
|
/******/ __webpack_require__.c = installedModules;
|
|
/******/
|
|
/******/ // define getter function for harmony exports
|
|
/******/ __webpack_require__.d = function(exports, name, getter) {
|
|
/******/ if(!__webpack_require__.o(exports, name)) {
|
|
/******/ Object.defineProperty(exports, name, { enumerable: true, get: getter });
|
|
/******/ }
|
|
/******/ };
|
|
/******/
|
|
/******/ // define __esModule on exports
|
|
/******/ __webpack_require__.r = function(exports) {
|
|
/******/ if(typeof Symbol !== 'undefined' && Symbol.toStringTag) {
|
|
/******/ Object.defineProperty(exports, Symbol.toStringTag, { value: 'Module' });
|
|
/******/ }
|
|
/******/ Object.defineProperty(exports, '__esModule', { value: true });
|
|
/******/ };
|
|
/******/
|
|
/******/ // create a fake namespace object
|
|
/******/ // mode & 1: value is a module id, require it
|
|
/******/ // mode & 2: merge all properties of value into the ns
|
|
/******/ // mode & 4: return value when already ns object
|
|
/******/ // mode & 8|1: behave like require
|
|
/******/ __webpack_require__.t = function(value, mode) {
|
|
/******/ if(mode & 1) value = __webpack_require__(value);
|
|
/******/ if(mode & 8) return value;
|
|
/******/ if((mode & 4) && typeof value === 'object' && value && value.__esModule) return value;
|
|
/******/ var ns = Object.create(null);
|
|
/******/ __webpack_require__.r(ns);
|
|
/******/ Object.defineProperty(ns, 'default', { enumerable: true, value: value });
|
|
/******/ if(mode & 2 && typeof value != 'string') for(var key in value) __webpack_require__.d(ns, key, function(key) { return value[key]; }.bind(null, key));
|
|
/******/ return ns;
|
|
/******/ };
|
|
/******/
|
|
/******/ // getDefaultExport function for compatibility with non-harmony modules
|
|
/******/ __webpack_require__.n = function(module) {
|
|
/******/ var getter = module && module.__esModule ?
|
|
/******/ function getDefault() { return module['default']; } :
|
|
/******/ function getModuleExports() { return module; };
|
|
/******/ __webpack_require__.d(getter, 'a', getter);
|
|
/******/ return getter;
|
|
/******/ };
|
|
/******/
|
|
/******/ // Object.prototype.hasOwnProperty.call
|
|
/******/ __webpack_require__.o = function(object, property) { return Object.prototype.hasOwnProperty.call(object, property); };
|
|
/******/
|
|
/******/ // __webpack_public_path__
|
|
/******/ __webpack_require__.p = "";
|
|
/******/
|
|
/******/
|
|
/******/ // Load entry module and return exports
|
|
/******/ return __webpack_require__(__webpack_require__.s = 0);
|
|
/******/ })
|
|
/************************************************************************/
|
|
/******/ ([
|
|
/* 0 */
|
|
/***/ (function(module, exports, __webpack_require__) {
|
|
|
|
__webpack_require__(1);
|
|
__webpack_require__(71);
|
|
__webpack_require__(78);
|
|
__webpack_require__(81);
|
|
__webpack_require__(82);
|
|
__webpack_require__(84);
|
|
__webpack_require__(87);
|
|
__webpack_require__(91);
|
|
__webpack_require__(92);
|
|
__webpack_require__(100);
|
|
__webpack_require__(101);
|
|
__webpack_require__(104);
|
|
__webpack_require__(109);
|
|
__webpack_require__(125);
|
|
__webpack_require__(129);
|
|
__webpack_require__(130);
|
|
__webpack_require__(132);
|
|
__webpack_require__(134);
|
|
__webpack_require__(137);
|
|
__webpack_require__(138);
|
|
__webpack_require__(139);
|
|
__webpack_require__(140);
|
|
__webpack_require__(141);
|
|
__webpack_require__(145);
|
|
__webpack_require__(148);
|
|
__webpack_require__(155);
|
|
__webpack_require__(156);
|
|
__webpack_require__(159);
|
|
__webpack_require__(160);
|
|
__webpack_require__(166);
|
|
__webpack_require__(167);
|
|
__webpack_require__(170);
|
|
__webpack_require__(171);
|
|
__webpack_require__(172);
|
|
__webpack_require__(173);
|
|
__webpack_require__(175);
|
|
__webpack_require__(176);
|
|
__webpack_require__(178);
|
|
__webpack_require__(179);
|
|
__webpack_require__(180);
|
|
__webpack_require__(181);
|
|
__webpack_require__(182);
|
|
__webpack_require__(183);
|
|
__webpack_require__(184);
|
|
__webpack_require__(189);
|
|
__webpack_require__(212);
|
|
__webpack_require__(213);
|
|
__webpack_require__(214);
|
|
__webpack_require__(216);
|
|
__webpack_require__(217);
|
|
__webpack_require__(218);
|
|
__webpack_require__(219);
|
|
__webpack_require__(220);
|
|
__webpack_require__(221);
|
|
__webpack_require__(226);
|
|
__webpack_require__(227);
|
|
__webpack_require__(228);
|
|
__webpack_require__(229);
|
|
__webpack_require__(230);
|
|
__webpack_require__(231);
|
|
__webpack_require__(233);
|
|
__webpack_require__(234);
|
|
__webpack_require__(235);
|
|
__webpack_require__(236);
|
|
__webpack_require__(237);
|
|
__webpack_require__(238);
|
|
__webpack_require__(239);
|
|
__webpack_require__(240);
|
|
__webpack_require__(241);
|
|
__webpack_require__(242);
|
|
__webpack_require__(243);
|
|
__webpack_require__(246);
|
|
__webpack_require__(248);
|
|
__webpack_require__(250);
|
|
__webpack_require__(252);
|
|
__webpack_require__(253);
|
|
__webpack_require__(254);
|
|
__webpack_require__(255);
|
|
__webpack_require__(256);
|
|
__webpack_require__(257);
|
|
__webpack_require__(260);
|
|
__webpack_require__(261);
|
|
__webpack_require__(263);
|
|
__webpack_require__(264);
|
|
__webpack_require__(265);
|
|
__webpack_require__(266);
|
|
__webpack_require__(267);
|
|
__webpack_require__(268);
|
|
__webpack_require__(271);
|
|
__webpack_require__(272);
|
|
__webpack_require__(273);
|
|
__webpack_require__(274);
|
|
__webpack_require__(276);
|
|
__webpack_require__(277);
|
|
__webpack_require__(278);
|
|
__webpack_require__(279);
|
|
__webpack_require__(280);
|
|
__webpack_require__(284);
|
|
__webpack_require__(285);
|
|
__webpack_require__(286);
|
|
__webpack_require__(287);
|
|
__webpack_require__(288);
|
|
__webpack_require__(289);
|
|
__webpack_require__(290);
|
|
__webpack_require__(292);
|
|
__webpack_require__(293);
|
|
__webpack_require__(294);
|
|
__webpack_require__(298);
|
|
__webpack_require__(299);
|
|
__webpack_require__(301);
|
|
__webpack_require__(302);
|
|
__webpack_require__(303);
|
|
__webpack_require__(304);
|
|
__webpack_require__(310);
|
|
__webpack_require__(312);
|
|
__webpack_require__(313);
|
|
__webpack_require__(315);
|
|
__webpack_require__(316);
|
|
__webpack_require__(317);
|
|
__webpack_require__(318);
|
|
__webpack_require__(319);
|
|
__webpack_require__(320);
|
|
__webpack_require__(321);
|
|
__webpack_require__(322);
|
|
__webpack_require__(323);
|
|
__webpack_require__(326);
|
|
__webpack_require__(327);
|
|
__webpack_require__(334);
|
|
__webpack_require__(337);
|
|
__webpack_require__(338);
|
|
__webpack_require__(339);
|
|
__webpack_require__(340);
|
|
__webpack_require__(341);
|
|
__webpack_require__(343);
|
|
__webpack_require__(344);
|
|
__webpack_require__(346);
|
|
__webpack_require__(347);
|
|
__webpack_require__(349);
|
|
__webpack_require__(350);
|
|
__webpack_require__(352);
|
|
__webpack_require__(353);
|
|
__webpack_require__(354);
|
|
__webpack_require__(355);
|
|
__webpack_require__(356);
|
|
__webpack_require__(357);
|
|
__webpack_require__(358);
|
|
__webpack_require__(360);
|
|
__webpack_require__(361);
|
|
__webpack_require__(363);
|
|
__webpack_require__(364);
|
|
__webpack_require__(366);
|
|
__webpack_require__(368);
|
|
__webpack_require__(369);
|
|
__webpack_require__(371);
|
|
__webpack_require__(375);
|
|
__webpack_require__(376);
|
|
__webpack_require__(378);
|
|
__webpack_require__(379);
|
|
__webpack_require__(381);
|
|
__webpack_require__(382);
|
|
__webpack_require__(383);
|
|
__webpack_require__(384);
|
|
__webpack_require__(385);
|
|
__webpack_require__(386);
|
|
__webpack_require__(387);
|
|
__webpack_require__(388);
|
|
__webpack_require__(389);
|
|
__webpack_require__(393);
|
|
__webpack_require__(394);
|
|
__webpack_require__(395);
|
|
__webpack_require__(396);
|
|
__webpack_require__(397);
|
|
__webpack_require__(400);
|
|
__webpack_require__(401);
|
|
__webpack_require__(402);
|
|
__webpack_require__(403);
|
|
__webpack_require__(404);
|
|
__webpack_require__(407);
|
|
__webpack_require__(408);
|
|
__webpack_require__(409);
|
|
__webpack_require__(410);
|
|
__webpack_require__(412);
|
|
__webpack_require__(415);
|
|
__webpack_require__(417);
|
|
__webpack_require__(418);
|
|
module.exports = __webpack_require__(419);
|
|
|
|
|
|
/***/ }),
|
|
/* 1 */
|
|
/***/ (function(module, exports, __webpack_require__) {
|
|
|
|
"use strict";
|
|
|
|
var $ = __webpack_require__(2);
|
|
var toObject = __webpack_require__(39);
|
|
var lengthOfArrayLike = __webpack_require__(63);
|
|
var setArrayLength = __webpack_require__(68);
|
|
var doesNotExceedSafeInteger = __webpack_require__(70);
|
|
var fails = __webpack_require__(6);
|
|
|
|
var INCORRECT_TO_LENGTH = fails(function () {
|
|
return [].push.call({ length: 0x100000000 }, 1) !== 4294967297;
|
|
});
|
|
|
|
// V8 and Safari <= 15.4, FF < 23 throws InternalError
|
|
// https://bugs.chromium.org/p/v8/issues/detail?id=12681
|
|
var properErrorOnNonWritableLength = function () {
|
|
try {
|
|
// eslint-disable-next-line es/no-object-defineproperty -- safe
|
|
Object.defineProperty([], 'length', { writable: false }).push();
|
|
} catch (error) {
|
|
return error instanceof TypeError;
|
|
}
|
|
};
|
|
|
|
var FORCED = INCORRECT_TO_LENGTH || !properErrorOnNonWritableLength();
|
|
|
|
// `Array.prototype.push` method
|
|
// https://tc39.es/ecma262/#sec-array.prototype.push
|
|
$({ target: 'Array', proto: true, arity: 1, forced: FORCED }, {
|
|
// eslint-disable-next-line no-unused-vars -- required for `.length`
|
|
push: function push(item) {
|
|
var O = toObject(this);
|
|
var len = lengthOfArrayLike(O);
|
|
var argCount = arguments.length;
|
|
doesNotExceedSafeInteger(len + argCount);
|
|
for (var i = 0; i < argCount; i++) {
|
|
O[len] = arguments[i];
|
|
len++;
|
|
}
|
|
setArrayLength(O, len);
|
|
return len;
|
|
}
|
|
});
|
|
|
|
|
|
/***/ }),
|
|
/* 2 */
|
|
/***/ (function(module, exports, __webpack_require__) {
|
|
|
|
var global = __webpack_require__(3);
|
|
var getOwnPropertyDescriptor = __webpack_require__(4).f;
|
|
var createNonEnumerableProperty = __webpack_require__(43);
|
|
var defineBuiltIn = __webpack_require__(47);
|
|
var defineGlobalProperty = __webpack_require__(37);
|
|
var copyConstructorProperties = __webpack_require__(55);
|
|
var isForced = __webpack_require__(67);
|
|
|
|
/*
|
|
options.target - name of the target object
|
|
options.global - target is the global object
|
|
options.stat - export as static methods of target
|
|
options.proto - export as prototype methods of target
|
|
options.real - real prototype method for the `pure` version
|
|
options.forced - export even if the native feature is available
|
|
options.bind - bind methods to the target, required for the `pure` version
|
|
options.wrap - wrap constructors to preventing global pollution, required for the `pure` version
|
|
options.unsafe - use the simple assignment of property instead of delete + defineProperty
|
|
options.sham - add a flag to not completely full polyfills
|
|
options.enumerable - export as enumerable property
|
|
options.dontCallGetSet - prevent calling a getter on target
|
|
options.name - the .name of the function if it does not match the key
|
|
*/
|
|
module.exports = function (options, source) {
|
|
var TARGET = options.target;
|
|
var GLOBAL = options.global;
|
|
var STATIC = options.stat;
|
|
var FORCED, target, key, targetProperty, sourceProperty, descriptor;
|
|
if (GLOBAL) {
|
|
target = global;
|
|
} else if (STATIC) {
|
|
target = global[TARGET] || defineGlobalProperty(TARGET, {});
|
|
} else {
|
|
target = (global[TARGET] || {}).prototype;
|
|
}
|
|
if (target) for (key in source) {
|
|
sourceProperty = source[key];
|
|
if (options.dontCallGetSet) {
|
|
descriptor = getOwnPropertyDescriptor(target, key);
|
|
targetProperty = descriptor && descriptor.value;
|
|
} else targetProperty = target[key];
|
|
FORCED = isForced(GLOBAL ? key : TARGET + (STATIC ? '.' : '#') + key, options.forced);
|
|
// contained in target
|
|
if (!FORCED && targetProperty !== undefined) {
|
|
if (typeof sourceProperty == typeof targetProperty) continue;
|
|
copyConstructorProperties(sourceProperty, targetProperty);
|
|
}
|
|
// add a flag to not completely full polyfills
|
|
if (options.sham || (targetProperty && targetProperty.sham)) {
|
|
createNonEnumerableProperty(sourceProperty, 'sham', true);
|
|
}
|
|
defineBuiltIn(target, key, sourceProperty, options);
|
|
}
|
|
};
|
|
|
|
|
|
/***/ }),
|
|
/* 3 */
|
|
/***/ (function(module, exports) {
|
|
|
|
var check = function (it) {
|
|
return it && it.Math == Math && it;
|
|
};
|
|
|
|
// https://github.com/zloirock/core-js/issues/86#issuecomment-115759028
|
|
module.exports =
|
|
// eslint-disable-next-line es/no-global-this -- safe
|
|
check(typeof globalThis == 'object' && globalThis) ||
|
|
check(typeof window == 'object' && window) ||
|
|
// eslint-disable-next-line no-restricted-globals -- safe
|
|
check(typeof self == 'object' && self) ||
|
|
check(typeof global == 'object' && global) ||
|
|
// eslint-disable-next-line no-new-func -- fallback
|
|
(function () { return this; })() || this || Function('return this')();
|
|
|
|
|
|
/***/ }),
|
|
/* 4 */
|
|
/***/ (function(module, exports, __webpack_require__) {
|
|
|
|
var DESCRIPTORS = __webpack_require__(5);
|
|
var call = __webpack_require__(7);
|
|
var propertyIsEnumerableModule = __webpack_require__(9);
|
|
var createPropertyDescriptor = __webpack_require__(10);
|
|
var toIndexedObject = __webpack_require__(11);
|
|
var toPropertyKey = __webpack_require__(17);
|
|
var hasOwn = __webpack_require__(38);
|
|
var IE8_DOM_DEFINE = __webpack_require__(41);
|
|
|
|
// eslint-disable-next-line es/no-object-getownpropertydescriptor -- safe
|
|
var $getOwnPropertyDescriptor = Object.getOwnPropertyDescriptor;
|
|
|
|
// `Object.getOwnPropertyDescriptor` method
|
|
// https://tc39.es/ecma262/#sec-object.getownpropertydescriptor
|
|
exports.f = DESCRIPTORS ? $getOwnPropertyDescriptor : function getOwnPropertyDescriptor(O, P) {
|
|
O = toIndexedObject(O);
|
|
P = toPropertyKey(P);
|
|
if (IE8_DOM_DEFINE) try {
|
|
return $getOwnPropertyDescriptor(O, P);
|
|
} catch (error) { /* empty */ }
|
|
if (hasOwn(O, P)) return createPropertyDescriptor(!call(propertyIsEnumerableModule.f, O, P), O[P]);
|
|
};
|
|
|
|
|
|
/***/ }),
|
|
/* 5 */
|
|
/***/ (function(module, exports, __webpack_require__) {
|
|
|
|
var fails = __webpack_require__(6);
|
|
|
|
// Detect IE8's incomplete defineProperty implementation
|
|
module.exports = !fails(function () {
|
|
// eslint-disable-next-line es/no-object-defineproperty -- required for testing
|
|
return Object.defineProperty({}, 1, { get: function () { return 7; } })[1] != 7;
|
|
});
|
|
|
|
|
|
/***/ }),
|
|
/* 6 */
|
|
/***/ (function(module, exports) {
|
|
|
|
module.exports = function (exec) {
|
|
try {
|
|
return !!exec();
|
|
} catch (error) {
|
|
return true;
|
|
}
|
|
};
|
|
|
|
|
|
/***/ }),
|
|
/* 7 */
|
|
/***/ (function(module, exports, __webpack_require__) {
|
|
|
|
var NATIVE_BIND = __webpack_require__(8);
|
|
|
|
var call = Function.prototype.call;
|
|
|
|
module.exports = NATIVE_BIND ? call.bind(call) : function () {
|
|
return call.apply(call, arguments);
|
|
};
|
|
|
|
|
|
/***/ }),
|
|
/* 8 */
|
|
/***/ (function(module, exports, __webpack_require__) {
|
|
|
|
var fails = __webpack_require__(6);
|
|
|
|
module.exports = !fails(function () {
|
|
// eslint-disable-next-line es/no-function-prototype-bind -- safe
|
|
var test = (function () { /* empty */ }).bind();
|
|
// eslint-disable-next-line no-prototype-builtins -- safe
|
|
return typeof test != 'function' || test.hasOwnProperty('prototype');
|
|
});
|
|
|
|
|
|
/***/ }),
|
|
/* 9 */
|
|
/***/ (function(module, exports, __webpack_require__) {
|
|
|
|
"use strict";
|
|
|
|
var $propertyIsEnumerable = {}.propertyIsEnumerable;
|
|
// eslint-disable-next-line es/no-object-getownpropertydescriptor -- safe
|
|
var getOwnPropertyDescriptor = Object.getOwnPropertyDescriptor;
|
|
|
|
// Nashorn ~ JDK8 bug
|
|
var NASHORN_BUG = getOwnPropertyDescriptor && !$propertyIsEnumerable.call({ 1: 2 }, 1);
|
|
|
|
// `Object.prototype.propertyIsEnumerable` method implementation
|
|
// https://tc39.es/ecma262/#sec-object.prototype.propertyisenumerable
|
|
exports.f = NASHORN_BUG ? function propertyIsEnumerable(V) {
|
|
var descriptor = getOwnPropertyDescriptor(this, V);
|
|
return !!descriptor && descriptor.enumerable;
|
|
} : $propertyIsEnumerable;
|
|
|
|
|
|
/***/ }),
|
|
/* 10 */
|
|
/***/ (function(module, exports) {
|
|
|
|
module.exports = function (bitmap, value) {
|
|
return {
|
|
enumerable: !(bitmap & 1),
|
|
configurable: !(bitmap & 2),
|
|
writable: !(bitmap & 4),
|
|
value: value
|
|
};
|
|
};
|
|
|
|
|
|
/***/ }),
|
|
/* 11 */
|
|
/***/ (function(module, exports, __webpack_require__) {
|
|
|
|
// toObject with fallback for non-array-like ES3 strings
|
|
var IndexedObject = __webpack_require__(12);
|
|
var requireObjectCoercible = __webpack_require__(15);
|
|
|
|
module.exports = function (it) {
|
|
return IndexedObject(requireObjectCoercible(it));
|
|
};
|
|
|
|
|
|
/***/ }),
|
|
/* 12 */
|
|
/***/ (function(module, exports, __webpack_require__) {
|
|
|
|
var uncurryThis = __webpack_require__(13);
|
|
var fails = __webpack_require__(6);
|
|
var classof = __webpack_require__(14);
|
|
|
|
var $Object = Object;
|
|
var split = uncurryThis(''.split);
|
|
|
|
// fallback for non-array-like ES3 and non-enumerable old V8 strings
|
|
module.exports = fails(function () {
|
|
// throws an error in rhino, see https://github.com/mozilla/rhino/issues/346
|
|
// eslint-disable-next-line no-prototype-builtins -- safe
|
|
return !$Object('z').propertyIsEnumerable(0);
|
|
}) ? function (it) {
|
|
return classof(it) == 'String' ? split(it, '') : $Object(it);
|
|
} : $Object;
|
|
|
|
|
|
/***/ }),
|
|
/* 13 */
|
|
/***/ (function(module, exports, __webpack_require__) {
|
|
|
|
var NATIVE_BIND = __webpack_require__(8);
|
|
|
|
var FunctionPrototype = Function.prototype;
|
|
var call = FunctionPrototype.call;
|
|
var uncurryThisWithBind = NATIVE_BIND && FunctionPrototype.bind.bind(call, call);
|
|
|
|
module.exports = NATIVE_BIND ? uncurryThisWithBind : function (fn) {
|
|
return function () {
|
|
return call.apply(fn, arguments);
|
|
};
|
|
};
|
|
|
|
|
|
/***/ }),
|
|
/* 14 */
|
|
/***/ (function(module, exports, __webpack_require__) {
|
|
|
|
var uncurryThis = __webpack_require__(13);
|
|
|
|
var toString = uncurryThis({}.toString);
|
|
var stringSlice = uncurryThis(''.slice);
|
|
|
|
module.exports = function (it) {
|
|
return stringSlice(toString(it), 8, -1);
|
|
};
|
|
|
|
|
|
/***/ }),
|
|
/* 15 */
|
|
/***/ (function(module, exports, __webpack_require__) {
|
|
|
|
var isNullOrUndefined = __webpack_require__(16);
|
|
|
|
var $TypeError = TypeError;
|
|
|
|
// `RequireObjectCoercible` abstract operation
|
|
// https://tc39.es/ecma262/#sec-requireobjectcoercible
|
|
module.exports = function (it) {
|
|
if (isNullOrUndefined(it)) throw $TypeError("Can't call method on " + it);
|
|
return it;
|
|
};
|
|
|
|
|
|
/***/ }),
|
|
/* 16 */
|
|
/***/ (function(module, exports) {
|
|
|
|
// we can't use just `it == null` since of `document.all` special case
|
|
// https://tc39.es/ecma262/#sec-IsHTMLDDA-internal-slot-aec
|
|
module.exports = function (it) {
|
|
return it === null || it === undefined;
|
|
};
|
|
|
|
|
|
/***/ }),
|
|
/* 17 */
|
|
/***/ (function(module, exports, __webpack_require__) {
|
|
|
|
var toPrimitive = __webpack_require__(18);
|
|
var isSymbol = __webpack_require__(22);
|
|
|
|
// `ToPropertyKey` abstract operation
|
|
// https://tc39.es/ecma262/#sec-topropertykey
|
|
module.exports = function (argument) {
|
|
var key = toPrimitive(argument, 'string');
|
|
return isSymbol(key) ? key : key + '';
|
|
};
|
|
|
|
|
|
/***/ }),
|
|
/* 18 */
|
|
/***/ (function(module, exports, __webpack_require__) {
|
|
|
|
var call = __webpack_require__(7);
|
|
var isObject = __webpack_require__(19);
|
|
var isSymbol = __webpack_require__(22);
|
|
var getMethod = __webpack_require__(29);
|
|
var ordinaryToPrimitive = __webpack_require__(32);
|
|
var wellKnownSymbol = __webpack_require__(33);
|
|
|
|
var $TypeError = TypeError;
|
|
var TO_PRIMITIVE = wellKnownSymbol('toPrimitive');
|
|
|
|
// `ToPrimitive` abstract operation
|
|
// https://tc39.es/ecma262/#sec-toprimitive
|
|
module.exports = function (input, pref) {
|
|
if (!isObject(input) || isSymbol(input)) return input;
|
|
var exoticToPrim = getMethod(input, TO_PRIMITIVE);
|
|
var result;
|
|
if (exoticToPrim) {
|
|
if (pref === undefined) pref = 'default';
|
|
result = call(exoticToPrim, input, pref);
|
|
if (!isObject(result) || isSymbol(result)) return result;
|
|
throw $TypeError("Can't convert object to primitive value");
|
|
}
|
|
if (pref === undefined) pref = 'number';
|
|
return ordinaryToPrimitive(input, pref);
|
|
};
|
|
|
|
|
|
/***/ }),
|
|
/* 19 */
|
|
/***/ (function(module, exports, __webpack_require__) {
|
|
|
|
var isCallable = __webpack_require__(20);
|
|
var $documentAll = __webpack_require__(21);
|
|
|
|
var documentAll = $documentAll.all;
|
|
|
|
module.exports = $documentAll.IS_HTMLDDA ? function (it) {
|
|
return typeof it == 'object' ? it !== null : isCallable(it) || it === documentAll;
|
|
} : function (it) {
|
|
return typeof it == 'object' ? it !== null : isCallable(it);
|
|
};
|
|
|
|
|
|
/***/ }),
|
|
/* 20 */
|
|
/***/ (function(module, exports, __webpack_require__) {
|
|
|
|
var $documentAll = __webpack_require__(21);
|
|
|
|
var documentAll = $documentAll.all;
|
|
|
|
// `IsCallable` abstract operation
|
|
// https://tc39.es/ecma262/#sec-iscallable
|
|
module.exports = $documentAll.IS_HTMLDDA ? function (argument) {
|
|
return typeof argument == 'function' || argument === documentAll;
|
|
} : function (argument) {
|
|
return typeof argument == 'function';
|
|
};
|
|
|
|
|
|
/***/ }),
|
|
/* 21 */
|
|
/***/ (function(module, exports) {
|
|
|
|
var documentAll = typeof document == 'object' && document.all;
|
|
|
|
// https://tc39.es/ecma262/#sec-IsHTMLDDA-internal-slot
|
|
// eslint-disable-next-line unicorn/no-typeof-undefined -- required for testing
|
|
var IS_HTMLDDA = typeof documentAll == 'undefined' && documentAll !== undefined;
|
|
|
|
module.exports = {
|
|
all: documentAll,
|
|
IS_HTMLDDA: IS_HTMLDDA
|
|
};
|
|
|
|
|
|
/***/ }),
|
|
/* 22 */
|
|
/***/ (function(module, exports, __webpack_require__) {
|
|
|
|
var getBuiltIn = __webpack_require__(23);
|
|
var isCallable = __webpack_require__(20);
|
|
var isPrototypeOf = __webpack_require__(24);
|
|
var USE_SYMBOL_AS_UID = __webpack_require__(25);
|
|
|
|
var $Object = Object;
|
|
|
|
module.exports = USE_SYMBOL_AS_UID ? function (it) {
|
|
return typeof it == 'symbol';
|
|
} : function (it) {
|
|
var $Symbol = getBuiltIn('Symbol');
|
|
return isCallable($Symbol) && isPrototypeOf($Symbol.prototype, $Object(it));
|
|
};
|
|
|
|
|
|
/***/ }),
|
|
/* 23 */
|
|
/***/ (function(module, exports, __webpack_require__) {
|
|
|
|
var global = __webpack_require__(3);
|
|
var isCallable = __webpack_require__(20);
|
|
|
|
var aFunction = function (argument) {
|
|
return isCallable(argument) ? argument : undefined;
|
|
};
|
|
|
|
module.exports = function (namespace, method) {
|
|
return arguments.length < 2 ? aFunction(global[namespace]) : global[namespace] && global[namespace][method];
|
|
};
|
|
|
|
|
|
/***/ }),
|
|
/* 24 */
|
|
/***/ (function(module, exports, __webpack_require__) {
|
|
|
|
var uncurryThis = __webpack_require__(13);
|
|
|
|
module.exports = uncurryThis({}.isPrototypeOf);
|
|
|
|
|
|
/***/ }),
|
|
/* 25 */
|
|
/***/ (function(module, exports, __webpack_require__) {
|
|
|
|
/* eslint-disable es/no-symbol -- required for testing */
|
|
var NATIVE_SYMBOL = __webpack_require__(26);
|
|
|
|
module.exports = NATIVE_SYMBOL
|
|
&& !Symbol.sham
|
|
&& typeof Symbol.iterator == 'symbol';
|
|
|
|
|
|
/***/ }),
|
|
/* 26 */
|
|
/***/ (function(module, exports, __webpack_require__) {
|
|
|
|
/* eslint-disable es/no-symbol -- required for testing */
|
|
var V8_VERSION = __webpack_require__(27);
|
|
var fails = __webpack_require__(6);
|
|
var global = __webpack_require__(3);
|
|
|
|
var $String = global.String;
|
|
|
|
// eslint-disable-next-line es/no-object-getownpropertysymbols -- required for testing
|
|
module.exports = !!Object.getOwnPropertySymbols && !fails(function () {
|
|
var symbol = Symbol();
|
|
// Chrome 38 Symbol has incorrect toString conversion
|
|
// `get-own-property-symbols` polyfill symbols converted to object are not Symbol instances
|
|
// nb: Do not call `String` directly to avoid this being optimized out to `symbol+''` which will,
|
|
// of course, fail.
|
|
return !$String(symbol) || !(Object(symbol) instanceof Symbol) ||
|
|
// Chrome 38-40 symbols are not inherited from DOM collections prototypes to instances
|
|
!Symbol.sham && V8_VERSION && V8_VERSION < 41;
|
|
});
|
|
|
|
|
|
/***/ }),
|
|
/* 27 */
|
|
/***/ (function(module, exports, __webpack_require__) {
|
|
|
|
var global = __webpack_require__(3);
|
|
var userAgent = __webpack_require__(28);
|
|
|
|
var process = global.process;
|
|
var Deno = global.Deno;
|
|
var versions = process && process.versions || Deno && Deno.version;
|
|
var v8 = versions && versions.v8;
|
|
var match, version;
|
|
|
|
if (v8) {
|
|
match = v8.split('.');
|
|
// in old Chrome, versions of V8 isn't V8 = Chrome / 10
|
|
// but their correct versions are not interesting for us
|
|
version = match[0] > 0 && match[0] < 4 ? 1 : +(match[0] + match[1]);
|
|
}
|
|
|
|
// BrowserFS NodeJS `process` polyfill incorrectly set `.v8` to `0.0`
|
|
// so check `userAgent` even if `.v8` exists, but 0
|
|
if (!version && userAgent) {
|
|
match = userAgent.match(/Edge\/(\d+)/);
|
|
if (!match || match[1] >= 74) {
|
|
match = userAgent.match(/Chrome\/(\d+)/);
|
|
if (match) version = +match[1];
|
|
}
|
|
}
|
|
|
|
module.exports = version;
|
|
|
|
|
|
/***/ }),
|
|
/* 28 */
|
|
/***/ (function(module, exports) {
|
|
|
|
module.exports = typeof navigator != 'undefined' && String(navigator.userAgent) || '';
|
|
|
|
|
|
/***/ }),
|
|
/* 29 */
|
|
/***/ (function(module, exports, __webpack_require__) {
|
|
|
|
var aCallable = __webpack_require__(30);
|
|
var isNullOrUndefined = __webpack_require__(16);
|
|
|
|
// `GetMethod` abstract operation
|
|
// https://tc39.es/ecma262/#sec-getmethod
|
|
module.exports = function (V, P) {
|
|
var func = V[P];
|
|
return isNullOrUndefined(func) ? undefined : aCallable(func);
|
|
};
|
|
|
|
|
|
/***/ }),
|
|
/* 30 */
|
|
/***/ (function(module, exports, __webpack_require__) {
|
|
|
|
var isCallable = __webpack_require__(20);
|
|
var tryToString = __webpack_require__(31);
|
|
|
|
var $TypeError = TypeError;
|
|
|
|
// `Assert: IsCallable(argument) is true`
|
|
module.exports = function (argument) {
|
|
if (isCallable(argument)) return argument;
|
|
throw $TypeError(tryToString(argument) + ' is not a function');
|
|
};
|
|
|
|
|
|
/***/ }),
|
|
/* 31 */
|
|
/***/ (function(module, exports) {
|
|
|
|
var $String = String;
|
|
|
|
module.exports = function (argument) {
|
|
try {
|
|
return $String(argument);
|
|
} catch (error) {
|
|
return 'Object';
|
|
}
|
|
};
|
|
|
|
|
|
/***/ }),
|
|
/* 32 */
|
|
/***/ (function(module, exports, __webpack_require__) {
|
|
|
|
var call = __webpack_require__(7);
|
|
var isCallable = __webpack_require__(20);
|
|
var isObject = __webpack_require__(19);
|
|
|
|
var $TypeError = TypeError;
|
|
|
|
// `OrdinaryToPrimitive` abstract operation
|
|
// https://tc39.es/ecma262/#sec-ordinarytoprimitive
|
|
module.exports = function (input, pref) {
|
|
var fn, val;
|
|
if (pref === 'string' && isCallable(fn = input.toString) && !isObject(val = call(fn, input))) return val;
|
|
if (isCallable(fn = input.valueOf) && !isObject(val = call(fn, input))) return val;
|
|
if (pref !== 'string' && isCallable(fn = input.toString) && !isObject(val = call(fn, input))) return val;
|
|
throw $TypeError("Can't convert object to primitive value");
|
|
};
|
|
|
|
|
|
/***/ }),
|
|
/* 33 */
|
|
/***/ (function(module, exports, __webpack_require__) {
|
|
|
|
var global = __webpack_require__(3);
|
|
var shared = __webpack_require__(34);
|
|
var hasOwn = __webpack_require__(38);
|
|
var uid = __webpack_require__(40);
|
|
var NATIVE_SYMBOL = __webpack_require__(26);
|
|
var USE_SYMBOL_AS_UID = __webpack_require__(25);
|
|
|
|
var Symbol = global.Symbol;
|
|
var WellKnownSymbolsStore = shared('wks');
|
|
var createWellKnownSymbol = USE_SYMBOL_AS_UID ? Symbol['for'] || Symbol : Symbol && Symbol.withoutSetter || uid;
|
|
|
|
module.exports = function (name) {
|
|
if (!hasOwn(WellKnownSymbolsStore, name)) {
|
|
WellKnownSymbolsStore[name] = NATIVE_SYMBOL && hasOwn(Symbol, name)
|
|
? Symbol[name]
|
|
: createWellKnownSymbol('Symbol.' + name);
|
|
} return WellKnownSymbolsStore[name];
|
|
};
|
|
|
|
|
|
/***/ }),
|
|
/* 34 */
|
|
/***/ (function(module, exports, __webpack_require__) {
|
|
|
|
var IS_PURE = __webpack_require__(35);
|
|
var store = __webpack_require__(36);
|
|
|
|
(module.exports = function (key, value) {
|
|
return store[key] || (store[key] = value !== undefined ? value : {});
|
|
})('versions', []).push({
|
|
version: '3.31.0',
|
|
mode: IS_PURE ? 'pure' : 'global',
|
|
copyright: '© 2014-2023 Denis Pushkarev (zloirock.ru)',
|
|
license: 'https://github.com/zloirock/core-js/blob/v3.31.0/LICENSE',
|
|
source: 'https://github.com/zloirock/core-js'
|
|
});
|
|
|
|
|
|
/***/ }),
|
|
/* 35 */
|
|
/***/ (function(module, exports) {
|
|
|
|
module.exports = false;
|
|
|
|
|
|
/***/ }),
|
|
/* 36 */
|
|
/***/ (function(module, exports, __webpack_require__) {
|
|
|
|
var global = __webpack_require__(3);
|
|
var defineGlobalProperty = __webpack_require__(37);
|
|
|
|
var SHARED = '__core-js_shared__';
|
|
var store = global[SHARED] || defineGlobalProperty(SHARED, {});
|
|
|
|
module.exports = store;
|
|
|
|
|
|
/***/ }),
|
|
/* 37 */
|
|
/***/ (function(module, exports, __webpack_require__) {
|
|
|
|
var global = __webpack_require__(3);
|
|
|
|
// eslint-disable-next-line es/no-object-defineproperty -- safe
|
|
var defineProperty = Object.defineProperty;
|
|
|
|
module.exports = function (key, value) {
|
|
try {
|
|
defineProperty(global, key, { value: value, configurable: true, writable: true });
|
|
} catch (error) {
|
|
global[key] = value;
|
|
} return value;
|
|
};
|
|
|
|
|
|
/***/ }),
|
|
/* 38 */
|
|
/***/ (function(module, exports, __webpack_require__) {
|
|
|
|
var uncurryThis = __webpack_require__(13);
|
|
var toObject = __webpack_require__(39);
|
|
|
|
var hasOwnProperty = uncurryThis({}.hasOwnProperty);
|
|
|
|
// `HasOwnProperty` abstract operation
|
|
// https://tc39.es/ecma262/#sec-hasownproperty
|
|
// eslint-disable-next-line es/no-object-hasown -- safe
|
|
module.exports = Object.hasOwn || function hasOwn(it, key) {
|
|
return hasOwnProperty(toObject(it), key);
|
|
};
|
|
|
|
|
|
/***/ }),
|
|
/* 39 */
|
|
/***/ (function(module, exports, __webpack_require__) {
|
|
|
|
var requireObjectCoercible = __webpack_require__(15);
|
|
|
|
var $Object = Object;
|
|
|
|
// `ToObject` abstract operation
|
|
// https://tc39.es/ecma262/#sec-toobject
|
|
module.exports = function (argument) {
|
|
return $Object(requireObjectCoercible(argument));
|
|
};
|
|
|
|
|
|
/***/ }),
|
|
/* 40 */
|
|
/***/ (function(module, exports, __webpack_require__) {
|
|
|
|
var uncurryThis = __webpack_require__(13);
|
|
|
|
var id = 0;
|
|
var postfix = Math.random();
|
|
var toString = uncurryThis(1.0.toString);
|
|
|
|
module.exports = function (key) {
|
|
return 'Symbol(' + (key === undefined ? '' : key) + ')_' + toString(++id + postfix, 36);
|
|
};
|
|
|
|
|
|
/***/ }),
|
|
/* 41 */
|
|
/***/ (function(module, exports, __webpack_require__) {
|
|
|
|
var DESCRIPTORS = __webpack_require__(5);
|
|
var fails = __webpack_require__(6);
|
|
var createElement = __webpack_require__(42);
|
|
|
|
// Thanks to IE8 for its funny defineProperty
|
|
module.exports = !DESCRIPTORS && !fails(function () {
|
|
// eslint-disable-next-line es/no-object-defineproperty -- required for testing
|
|
return Object.defineProperty(createElement('div'), 'a', {
|
|
get: function () { return 7; }
|
|
}).a != 7;
|
|
});
|
|
|
|
|
|
/***/ }),
|
|
/* 42 */
|
|
/***/ (function(module, exports, __webpack_require__) {
|
|
|
|
var global = __webpack_require__(3);
|
|
var isObject = __webpack_require__(19);
|
|
|
|
var document = global.document;
|
|
// typeof document.createElement is 'object' in old IE
|
|
var EXISTS = isObject(document) && isObject(document.createElement);
|
|
|
|
module.exports = function (it) {
|
|
return EXISTS ? document.createElement(it) : {};
|
|
};
|
|
|
|
|
|
/***/ }),
|
|
/* 43 */
|
|
/***/ (function(module, exports, __webpack_require__) {
|
|
|
|
var DESCRIPTORS = __webpack_require__(5);
|
|
var definePropertyModule = __webpack_require__(44);
|
|
var createPropertyDescriptor = __webpack_require__(10);
|
|
|
|
module.exports = DESCRIPTORS ? function (object, key, value) {
|
|
return definePropertyModule.f(object, key, createPropertyDescriptor(1, value));
|
|
} : function (object, key, value) {
|
|
object[key] = value;
|
|
return object;
|
|
};
|
|
|
|
|
|
/***/ }),
|
|
/* 44 */
|
|
/***/ (function(module, exports, __webpack_require__) {
|
|
|
|
var DESCRIPTORS = __webpack_require__(5);
|
|
var IE8_DOM_DEFINE = __webpack_require__(41);
|
|
var V8_PROTOTYPE_DEFINE_BUG = __webpack_require__(45);
|
|
var anObject = __webpack_require__(46);
|
|
var toPropertyKey = __webpack_require__(17);
|
|
|
|
var $TypeError = TypeError;
|
|
// eslint-disable-next-line es/no-object-defineproperty -- safe
|
|
var $defineProperty = Object.defineProperty;
|
|
// eslint-disable-next-line es/no-object-getownpropertydescriptor -- safe
|
|
var $getOwnPropertyDescriptor = Object.getOwnPropertyDescriptor;
|
|
var ENUMERABLE = 'enumerable';
|
|
var CONFIGURABLE = 'configurable';
|
|
var WRITABLE = 'writable';
|
|
|
|
// `Object.defineProperty` method
|
|
// https://tc39.es/ecma262/#sec-object.defineproperty
|
|
exports.f = DESCRIPTORS ? V8_PROTOTYPE_DEFINE_BUG ? function defineProperty(O, P, Attributes) {
|
|
anObject(O);
|
|
P = toPropertyKey(P);
|
|
anObject(Attributes);
|
|
if (typeof O === 'function' && P === 'prototype' && 'value' in Attributes && WRITABLE in Attributes && !Attributes[WRITABLE]) {
|
|
var current = $getOwnPropertyDescriptor(O, P);
|
|
if (current && current[WRITABLE]) {
|
|
O[P] = Attributes.value;
|
|
Attributes = {
|
|
configurable: CONFIGURABLE in Attributes ? Attributes[CONFIGURABLE] : current[CONFIGURABLE],
|
|
enumerable: ENUMERABLE in Attributes ? Attributes[ENUMERABLE] : current[ENUMERABLE],
|
|
writable: false
|
|
};
|
|
}
|
|
} return $defineProperty(O, P, Attributes);
|
|
} : $defineProperty : function defineProperty(O, P, Attributes) {
|
|
anObject(O);
|
|
P = toPropertyKey(P);
|
|
anObject(Attributes);
|
|
if (IE8_DOM_DEFINE) try {
|
|
return $defineProperty(O, P, Attributes);
|
|
} catch (error) { /* empty */ }
|
|
if ('get' in Attributes || 'set' in Attributes) throw $TypeError('Accessors not supported');
|
|
if ('value' in Attributes) O[P] = Attributes.value;
|
|
return O;
|
|
};
|
|
|
|
|
|
/***/ }),
|
|
/* 45 */
|
|
/***/ (function(module, exports, __webpack_require__) {
|
|
|
|
var DESCRIPTORS = __webpack_require__(5);
|
|
var fails = __webpack_require__(6);
|
|
|
|
// V8 ~ Chrome 36-
|
|
// https://bugs.chromium.org/p/v8/issues/detail?id=3334
|
|
module.exports = DESCRIPTORS && fails(function () {
|
|
// eslint-disable-next-line es/no-object-defineproperty -- required for testing
|
|
return Object.defineProperty(function () { /* empty */ }, 'prototype', {
|
|
value: 42,
|
|
writable: false
|
|
}).prototype != 42;
|
|
});
|
|
|
|
|
|
/***/ }),
|
|
/* 46 */
|
|
/***/ (function(module, exports, __webpack_require__) {
|
|
|
|
var isObject = __webpack_require__(19);
|
|
|
|
var $String = String;
|
|
var $TypeError = TypeError;
|
|
|
|
// `Assert: Type(argument) is Object`
|
|
module.exports = function (argument) {
|
|
if (isObject(argument)) return argument;
|
|
throw $TypeError($String(argument) + ' is not an object');
|
|
};
|
|
|
|
|
|
/***/ }),
|
|
/* 47 */
|
|
/***/ (function(module, exports, __webpack_require__) {
|
|
|
|
var isCallable = __webpack_require__(20);
|
|
var definePropertyModule = __webpack_require__(44);
|
|
var makeBuiltIn = __webpack_require__(48);
|
|
var defineGlobalProperty = __webpack_require__(37);
|
|
|
|
module.exports = function (O, key, value, options) {
|
|
if (!options) options = {};
|
|
var simple = options.enumerable;
|
|
var name = options.name !== undefined ? options.name : key;
|
|
if (isCallable(value)) makeBuiltIn(value, name, options);
|
|
if (options.global) {
|
|
if (simple) O[key] = value;
|
|
else defineGlobalProperty(key, value);
|
|
} else {
|
|
try {
|
|
if (!options.unsafe) delete O[key];
|
|
else if (O[key]) simple = true;
|
|
} catch (error) { /* empty */ }
|
|
if (simple) O[key] = value;
|
|
else definePropertyModule.f(O, key, {
|
|
value: value,
|
|
enumerable: false,
|
|
configurable: !options.nonConfigurable,
|
|
writable: !options.nonWritable
|
|
});
|
|
} return O;
|
|
};
|
|
|
|
|
|
/***/ }),
|
|
/* 48 */
|
|
/***/ (function(module, exports, __webpack_require__) {
|
|
|
|
var uncurryThis = __webpack_require__(13);
|
|
var fails = __webpack_require__(6);
|
|
var isCallable = __webpack_require__(20);
|
|
var hasOwn = __webpack_require__(38);
|
|
var DESCRIPTORS = __webpack_require__(5);
|
|
var CONFIGURABLE_FUNCTION_NAME = __webpack_require__(49).CONFIGURABLE;
|
|
var inspectSource = __webpack_require__(50);
|
|
var InternalStateModule = __webpack_require__(51);
|
|
|
|
var enforceInternalState = InternalStateModule.enforce;
|
|
var getInternalState = InternalStateModule.get;
|
|
var $String = String;
|
|
// eslint-disable-next-line es/no-object-defineproperty -- safe
|
|
var defineProperty = Object.defineProperty;
|
|
var stringSlice = uncurryThis(''.slice);
|
|
var replace = uncurryThis(''.replace);
|
|
var join = uncurryThis([].join);
|
|
|
|
var CONFIGURABLE_LENGTH = DESCRIPTORS && !fails(function () {
|
|
return defineProperty(function () { /* empty */ }, 'length', { value: 8 }).length !== 8;
|
|
});
|
|
|
|
var TEMPLATE = String(String).split('String');
|
|
|
|
var makeBuiltIn = module.exports = function (value, name, options) {
|
|
if (stringSlice($String(name), 0, 7) === 'Symbol(') {
|
|
name = '[' + replace($String(name), /^Symbol\(([^)]*)\)/, '$1') + ']';
|
|
}
|
|
if (options && options.getter) name = 'get ' + name;
|
|
if (options && options.setter) name = 'set ' + name;
|
|
if (!hasOwn(value, 'name') || (CONFIGURABLE_FUNCTION_NAME && value.name !== name)) {
|
|
if (DESCRIPTORS) defineProperty(value, 'name', { value: name, configurable: true });
|
|
else value.name = name;
|
|
}
|
|
if (CONFIGURABLE_LENGTH && options && hasOwn(options, 'arity') && value.length !== options.arity) {
|
|
defineProperty(value, 'length', { value: options.arity });
|
|
}
|
|
try {
|
|
if (options && hasOwn(options, 'constructor') && options.constructor) {
|
|
if (DESCRIPTORS) defineProperty(value, 'prototype', { writable: false });
|
|
// in V8 ~ Chrome 53, prototypes of some methods, like `Array.prototype.values`, are non-writable
|
|
} else if (value.prototype) value.prototype = undefined;
|
|
} catch (error) { /* empty */ }
|
|
var state = enforceInternalState(value);
|
|
if (!hasOwn(state, 'source')) {
|
|
state.source = join(TEMPLATE, typeof name == 'string' ? name : '');
|
|
} return value;
|
|
};
|
|
|
|
// add fake Function#toString for correct work wrapped methods / constructors with methods like LoDash isNative
|
|
// eslint-disable-next-line no-extend-native -- required
|
|
Function.prototype.toString = makeBuiltIn(function toString() {
|
|
return isCallable(this) && getInternalState(this).source || inspectSource(this);
|
|
}, 'toString');
|
|
|
|
|
|
/***/ }),
|
|
/* 49 */
|
|
/***/ (function(module, exports, __webpack_require__) {
|
|
|
|
var DESCRIPTORS = __webpack_require__(5);
|
|
var hasOwn = __webpack_require__(38);
|
|
|
|
var FunctionPrototype = Function.prototype;
|
|
// eslint-disable-next-line es/no-object-getownpropertydescriptor -- safe
|
|
var getDescriptor = DESCRIPTORS && Object.getOwnPropertyDescriptor;
|
|
|
|
var EXISTS = hasOwn(FunctionPrototype, 'name');
|
|
// additional protection from minified / mangled / dropped function names
|
|
var PROPER = EXISTS && (function something() { /* empty */ }).name === 'something';
|
|
var CONFIGURABLE = EXISTS && (!DESCRIPTORS || (DESCRIPTORS && getDescriptor(FunctionPrototype, 'name').configurable));
|
|
|
|
module.exports = {
|
|
EXISTS: EXISTS,
|
|
PROPER: PROPER,
|
|
CONFIGURABLE: CONFIGURABLE
|
|
};
|
|
|
|
|
|
/***/ }),
|
|
/* 50 */
|
|
/***/ (function(module, exports, __webpack_require__) {
|
|
|
|
var uncurryThis = __webpack_require__(13);
|
|
var isCallable = __webpack_require__(20);
|
|
var store = __webpack_require__(36);
|
|
|
|
var functionToString = uncurryThis(Function.toString);
|
|
|
|
// this helper broken in `core-js@3.4.1-3.4.4`, so we can't use `shared` helper
|
|
if (!isCallable(store.inspectSource)) {
|
|
store.inspectSource = function (it) {
|
|
return functionToString(it);
|
|
};
|
|
}
|
|
|
|
module.exports = store.inspectSource;
|
|
|
|
|
|
/***/ }),
|
|
/* 51 */
|
|
/***/ (function(module, exports, __webpack_require__) {
|
|
|
|
var NATIVE_WEAK_MAP = __webpack_require__(52);
|
|
var global = __webpack_require__(3);
|
|
var isObject = __webpack_require__(19);
|
|
var createNonEnumerableProperty = __webpack_require__(43);
|
|
var hasOwn = __webpack_require__(38);
|
|
var shared = __webpack_require__(36);
|
|
var sharedKey = __webpack_require__(53);
|
|
var hiddenKeys = __webpack_require__(54);
|
|
|
|
var OBJECT_ALREADY_INITIALIZED = 'Object already initialized';
|
|
var TypeError = global.TypeError;
|
|
var WeakMap = global.WeakMap;
|
|
var set, get, has;
|
|
|
|
var enforce = function (it) {
|
|
return has(it) ? get(it) : set(it, {});
|
|
};
|
|
|
|
var getterFor = function (TYPE) {
|
|
return function (it) {
|
|
var state;
|
|
if (!isObject(it) || (state = get(it)).type !== TYPE) {
|
|
throw TypeError('Incompatible receiver, ' + TYPE + ' required');
|
|
} return state;
|
|
};
|
|
};
|
|
|
|
if (NATIVE_WEAK_MAP || shared.state) {
|
|
var store = shared.state || (shared.state = new WeakMap());
|
|
/* eslint-disable no-self-assign -- prototype methods protection */
|
|
store.get = store.get;
|
|
store.has = store.has;
|
|
store.set = store.set;
|
|
/* eslint-enable no-self-assign -- prototype methods protection */
|
|
set = function (it, metadata) {
|
|
if (store.has(it)) throw TypeError(OBJECT_ALREADY_INITIALIZED);
|
|
metadata.facade = it;
|
|
store.set(it, metadata);
|
|
return metadata;
|
|
};
|
|
get = function (it) {
|
|
return store.get(it) || {};
|
|
};
|
|
has = function (it) {
|
|
return store.has(it);
|
|
};
|
|
} else {
|
|
var STATE = sharedKey('state');
|
|
hiddenKeys[STATE] = true;
|
|
set = function (it, metadata) {
|
|
if (hasOwn(it, STATE)) throw TypeError(OBJECT_ALREADY_INITIALIZED);
|
|
metadata.facade = it;
|
|
createNonEnumerableProperty(it, STATE, metadata);
|
|
return metadata;
|
|
};
|
|
get = function (it) {
|
|
return hasOwn(it, STATE) ? it[STATE] : {};
|
|
};
|
|
has = function (it) {
|
|
return hasOwn(it, STATE);
|
|
};
|
|
}
|
|
|
|
module.exports = {
|
|
set: set,
|
|
get: get,
|
|
has: has,
|
|
enforce: enforce,
|
|
getterFor: getterFor
|
|
};
|
|
|
|
|
|
/***/ }),
|
|
/* 52 */
|
|
/***/ (function(module, exports, __webpack_require__) {
|
|
|
|
var global = __webpack_require__(3);
|
|
var isCallable = __webpack_require__(20);
|
|
|
|
var WeakMap = global.WeakMap;
|
|
|
|
module.exports = isCallable(WeakMap) && /native code/.test(String(WeakMap));
|
|
|
|
|
|
/***/ }),
|
|
/* 53 */
|
|
/***/ (function(module, exports, __webpack_require__) {
|
|
|
|
var shared = __webpack_require__(34);
|
|
var uid = __webpack_require__(40);
|
|
|
|
var keys = shared('keys');
|
|
|
|
module.exports = function (key) {
|
|
return keys[key] || (keys[key] = uid(key));
|
|
};
|
|
|
|
|
|
/***/ }),
|
|
/* 54 */
|
|
/***/ (function(module, exports) {
|
|
|
|
module.exports = {};
|
|
|
|
|
|
/***/ }),
|
|
/* 55 */
|
|
/***/ (function(module, exports, __webpack_require__) {
|
|
|
|
var hasOwn = __webpack_require__(38);
|
|
var ownKeys = __webpack_require__(56);
|
|
var getOwnPropertyDescriptorModule = __webpack_require__(4);
|
|
var definePropertyModule = __webpack_require__(44);
|
|
|
|
module.exports = function (target, source, exceptions) {
|
|
var keys = ownKeys(source);
|
|
var defineProperty = definePropertyModule.f;
|
|
var getOwnPropertyDescriptor = getOwnPropertyDescriptorModule.f;
|
|
for (var i = 0; i < keys.length; i++) {
|
|
var key = keys[i];
|
|
if (!hasOwn(target, key) && !(exceptions && hasOwn(exceptions, key))) {
|
|
defineProperty(target, key, getOwnPropertyDescriptor(source, key));
|
|
}
|
|
}
|
|
};
|
|
|
|
|
|
/***/ }),
|
|
/* 56 */
|
|
/***/ (function(module, exports, __webpack_require__) {
|
|
|
|
var getBuiltIn = __webpack_require__(23);
|
|
var uncurryThis = __webpack_require__(13);
|
|
var getOwnPropertyNamesModule = __webpack_require__(57);
|
|
var getOwnPropertySymbolsModule = __webpack_require__(66);
|
|
var anObject = __webpack_require__(46);
|
|
|
|
var concat = uncurryThis([].concat);
|
|
|
|
// all object keys, includes non-enumerable and symbols
|
|
module.exports = getBuiltIn('Reflect', 'ownKeys') || function ownKeys(it) {
|
|
var keys = getOwnPropertyNamesModule.f(anObject(it));
|
|
var getOwnPropertySymbols = getOwnPropertySymbolsModule.f;
|
|
return getOwnPropertySymbols ? concat(keys, getOwnPropertySymbols(it)) : keys;
|
|
};
|
|
|
|
|
|
/***/ }),
|
|
/* 57 */
|
|
/***/ (function(module, exports, __webpack_require__) {
|
|
|
|
var internalObjectKeys = __webpack_require__(58);
|
|
var enumBugKeys = __webpack_require__(65);
|
|
|
|
var hiddenKeys = enumBugKeys.concat('length', 'prototype');
|
|
|
|
// `Object.getOwnPropertyNames` method
|
|
// https://tc39.es/ecma262/#sec-object.getownpropertynames
|
|
// eslint-disable-next-line es/no-object-getownpropertynames -- safe
|
|
exports.f = Object.getOwnPropertyNames || function getOwnPropertyNames(O) {
|
|
return internalObjectKeys(O, hiddenKeys);
|
|
};
|
|
|
|
|
|
/***/ }),
|
|
/* 58 */
|
|
/***/ (function(module, exports, __webpack_require__) {
|
|
|
|
var uncurryThis = __webpack_require__(13);
|
|
var hasOwn = __webpack_require__(38);
|
|
var toIndexedObject = __webpack_require__(11);
|
|
var indexOf = __webpack_require__(59).indexOf;
|
|
var hiddenKeys = __webpack_require__(54);
|
|
|
|
var push = uncurryThis([].push);
|
|
|
|
module.exports = function (object, names) {
|
|
var O = toIndexedObject(object);
|
|
var i = 0;
|
|
var result = [];
|
|
var key;
|
|
for (key in O) !hasOwn(hiddenKeys, key) && hasOwn(O, key) && push(result, key);
|
|
// Don't enum bug & hidden keys
|
|
while (names.length > i) if (hasOwn(O, key = names[i++])) {
|
|
~indexOf(result, key) || push(result, key);
|
|
}
|
|
return result;
|
|
};
|
|
|
|
|
|
/***/ }),
|
|
/* 59 */
|
|
/***/ (function(module, exports, __webpack_require__) {
|
|
|
|
var toIndexedObject = __webpack_require__(11);
|
|
var toAbsoluteIndex = __webpack_require__(60);
|
|
var lengthOfArrayLike = __webpack_require__(63);
|
|
|
|
// `Array.prototype.{ indexOf, includes }` methods implementation
|
|
var createMethod = function (IS_INCLUDES) {
|
|
return function ($this, el, fromIndex) {
|
|
var O = toIndexedObject($this);
|
|
var length = lengthOfArrayLike(O);
|
|
var index = toAbsoluteIndex(fromIndex, length);
|
|
var value;
|
|
// Array#includes uses SameValueZero equality algorithm
|
|
// eslint-disable-next-line no-self-compare -- NaN check
|
|
if (IS_INCLUDES && el != el) while (length > index) {
|
|
value = O[index++];
|
|
// eslint-disable-next-line no-self-compare -- NaN check
|
|
if (value != value) return true;
|
|
// Array#indexOf ignores holes, Array#includes - not
|
|
} else for (;length > index; index++) {
|
|
if ((IS_INCLUDES || index in O) && O[index] === el) return IS_INCLUDES || index || 0;
|
|
} return !IS_INCLUDES && -1;
|
|
};
|
|
};
|
|
|
|
module.exports = {
|
|
// `Array.prototype.includes` method
|
|
// https://tc39.es/ecma262/#sec-array.prototype.includes
|
|
includes: createMethod(true),
|
|
// `Array.prototype.indexOf` method
|
|
// https://tc39.es/ecma262/#sec-array.prototype.indexof
|
|
indexOf: createMethod(false)
|
|
};
|
|
|
|
|
|
/***/ }),
|
|
/* 60 */
|
|
/***/ (function(module, exports, __webpack_require__) {
|
|
|
|
var toIntegerOrInfinity = __webpack_require__(61);
|
|
|
|
var max = Math.max;
|
|
var min = Math.min;
|
|
|
|
// Helper for a popular repeating case of the spec:
|
|
// Let integer be ? ToInteger(index).
|
|
// If integer < 0, let result be max((length + integer), 0); else let result be min(integer, length).
|
|
module.exports = function (index, length) {
|
|
var integer = toIntegerOrInfinity(index);
|
|
return integer < 0 ? max(integer + length, 0) : min(integer, length);
|
|
};
|
|
|
|
|
|
/***/ }),
|
|
/* 61 */
|
|
/***/ (function(module, exports, __webpack_require__) {
|
|
|
|
var trunc = __webpack_require__(62);
|
|
|
|
// `ToIntegerOrInfinity` abstract operation
|
|
// https://tc39.es/ecma262/#sec-tointegerorinfinity
|
|
module.exports = function (argument) {
|
|
var number = +argument;
|
|
// eslint-disable-next-line no-self-compare -- NaN check
|
|
return number !== number || number === 0 ? 0 : trunc(number);
|
|
};
|
|
|
|
|
|
/***/ }),
|
|
/* 62 */
|
|
/***/ (function(module, exports) {
|
|
|
|
var ceil = Math.ceil;
|
|
var floor = Math.floor;
|
|
|
|
// `Math.trunc` method
|
|
// https://tc39.es/ecma262/#sec-math.trunc
|
|
// eslint-disable-next-line es/no-math-trunc -- safe
|
|
module.exports = Math.trunc || function trunc(x) {
|
|
var n = +x;
|
|
return (n > 0 ? floor : ceil)(n);
|
|
};
|
|
|
|
|
|
/***/ }),
|
|
/* 63 */
|
|
/***/ (function(module, exports, __webpack_require__) {
|
|
|
|
var toLength = __webpack_require__(64);
|
|
|
|
// `LengthOfArrayLike` abstract operation
|
|
// https://tc39.es/ecma262/#sec-lengthofarraylike
|
|
module.exports = function (obj) {
|
|
return toLength(obj.length);
|
|
};
|
|
|
|
|
|
/***/ }),
|
|
/* 64 */
|
|
/***/ (function(module, exports, __webpack_require__) {
|
|
|
|
var toIntegerOrInfinity = __webpack_require__(61);
|
|
|
|
var min = Math.min;
|
|
|
|
// `ToLength` abstract operation
|
|
// https://tc39.es/ecma262/#sec-tolength
|
|
module.exports = function (argument) {
|
|
return argument > 0 ? min(toIntegerOrInfinity(argument), 0x1FFFFFFFFFFFFF) : 0; // 2 ** 53 - 1 == 9007199254740991
|
|
};
|
|
|
|
|
|
/***/ }),
|
|
/* 65 */
|
|
/***/ (function(module, exports) {
|
|
|
|
// IE8- don't enum bug keys
|
|
module.exports = [
|
|
'constructor',
|
|
'hasOwnProperty',
|
|
'isPrototypeOf',
|
|
'propertyIsEnumerable',
|
|
'toLocaleString',
|
|
'toString',
|
|
'valueOf'
|
|
];
|
|
|
|
|
|
/***/ }),
|
|
/* 66 */
|
|
/***/ (function(module, exports) {
|
|
|
|
// eslint-disable-next-line es/no-object-getownpropertysymbols -- safe
|
|
exports.f = Object.getOwnPropertySymbols;
|
|
|
|
|
|
/***/ }),
|
|
/* 67 */
|
|
/***/ (function(module, exports, __webpack_require__) {
|
|
|
|
var fails = __webpack_require__(6);
|
|
var isCallable = __webpack_require__(20);
|
|
|
|
var replacement = /#|\.prototype\./;
|
|
|
|
var isForced = function (feature, detection) {
|
|
var value = data[normalize(feature)];
|
|
return value == POLYFILL ? true
|
|
: value == NATIVE ? false
|
|
: isCallable(detection) ? fails(detection)
|
|
: !!detection;
|
|
};
|
|
|
|
var normalize = isForced.normalize = function (string) {
|
|
return String(string).replace(replacement, '.').toLowerCase();
|
|
};
|
|
|
|
var data = isForced.data = {};
|
|
var NATIVE = isForced.NATIVE = 'N';
|
|
var POLYFILL = isForced.POLYFILL = 'P';
|
|
|
|
module.exports = isForced;
|
|
|
|
|
|
/***/ }),
|
|
/* 68 */
|
|
/***/ (function(module, exports, __webpack_require__) {
|
|
|
|
"use strict";
|
|
|
|
var DESCRIPTORS = __webpack_require__(5);
|
|
var isArray = __webpack_require__(69);
|
|
|
|
var $TypeError = TypeError;
|
|
// eslint-disable-next-line es/no-object-getownpropertydescriptor -- safe
|
|
var getOwnPropertyDescriptor = Object.getOwnPropertyDescriptor;
|
|
|
|
// Safari < 13 does not throw an error in this case
|
|
var SILENT_ON_NON_WRITABLE_LENGTH_SET = DESCRIPTORS && !function () {
|
|
// makes no sense without proper strict mode support
|
|
if (this !== undefined) return true;
|
|
try {
|
|
// eslint-disable-next-line es/no-object-defineproperty -- safe
|
|
Object.defineProperty([], 'length', { writable: false }).length = 1;
|
|
} catch (error) {
|
|
return error instanceof TypeError;
|
|
}
|
|
}();
|
|
|
|
module.exports = SILENT_ON_NON_WRITABLE_LENGTH_SET ? function (O, length) {
|
|
if (isArray(O) && !getOwnPropertyDescriptor(O, 'length').writable) {
|
|
throw $TypeError('Cannot set read only .length');
|
|
} return O.length = length;
|
|
} : function (O, length) {
|
|
return O.length = length;
|
|
};
|
|
|
|
|
|
/***/ }),
|
|
/* 69 */
|
|
/***/ (function(module, exports, __webpack_require__) {
|
|
|
|
var classof = __webpack_require__(14);
|
|
|
|
// `IsArray` abstract operation
|
|
// https://tc39.es/ecma262/#sec-isarray
|
|
// eslint-disable-next-line es/no-array-isarray -- safe
|
|
module.exports = Array.isArray || function isArray(argument) {
|
|
return classof(argument) == 'Array';
|
|
};
|
|
|
|
|
|
/***/ }),
|
|
/* 70 */
|
|
/***/ (function(module, exports) {
|
|
|
|
var $TypeError = TypeError;
|
|
var MAX_SAFE_INTEGER = 0x1FFFFFFFFFFFFF; // 2 ** 53 - 1 == 9007199254740991
|
|
|
|
module.exports = function (it) {
|
|
if (it > MAX_SAFE_INTEGER) throw $TypeError('Maximum allowed index exceeded');
|
|
return it;
|
|
};
|
|
|
|
|
|
/***/ }),
|
|
/* 71 */
|
|
/***/ (function(module, exports, __webpack_require__) {
|
|
|
|
"use strict";
|
|
|
|
var $ = __webpack_require__(2);
|
|
var arrayToReversed = __webpack_require__(72);
|
|
var toIndexedObject = __webpack_require__(11);
|
|
var addToUnscopables = __webpack_require__(73);
|
|
|
|
var $Array = Array;
|
|
|
|
// `Array.prototype.toReversed` method
|
|
// https://tc39.es/proposal-change-array-by-copy/#sec-array.prototype.toReversed
|
|
$({ target: 'Array', proto: true }, {
|
|
toReversed: function toReversed() {
|
|
return arrayToReversed(toIndexedObject(this), $Array);
|
|
}
|
|
});
|
|
|
|
addToUnscopables('toReversed');
|
|
|
|
|
|
/***/ }),
|
|
/* 72 */
|
|
/***/ (function(module, exports, __webpack_require__) {
|
|
|
|
var lengthOfArrayLike = __webpack_require__(63);
|
|
|
|
// https://tc39.es/proposal-change-array-by-copy/#sec-array.prototype.toReversed
|
|
// https://tc39.es/proposal-change-array-by-copy/#sec-%typedarray%.prototype.toReversed
|
|
module.exports = function (O, C) {
|
|
var len = lengthOfArrayLike(O);
|
|
var A = new C(len);
|
|
var k = 0;
|
|
for (; k < len; k++) A[k] = O[len - k - 1];
|
|
return A;
|
|
};
|
|
|
|
|
|
/***/ }),
|
|
/* 73 */
|
|
/***/ (function(module, exports, __webpack_require__) {
|
|
|
|
var wellKnownSymbol = __webpack_require__(33);
|
|
var create = __webpack_require__(74);
|
|
var defineProperty = __webpack_require__(44).f;
|
|
|
|
var UNSCOPABLES = wellKnownSymbol('unscopables');
|
|
var ArrayPrototype = Array.prototype;
|
|
|
|
// Array.prototype[@@unscopables]
|
|
// https://tc39.es/ecma262/#sec-array.prototype-@@unscopables
|
|
if (ArrayPrototype[UNSCOPABLES] == undefined) {
|
|
defineProperty(ArrayPrototype, UNSCOPABLES, {
|
|
configurable: true,
|
|
value: create(null)
|
|
});
|
|
}
|
|
|
|
// add a key to Array.prototype[@@unscopables]
|
|
module.exports = function (key) {
|
|
ArrayPrototype[UNSCOPABLES][key] = true;
|
|
};
|
|
|
|
|
|
/***/ }),
|
|
/* 74 */
|
|
/***/ (function(module, exports, __webpack_require__) {
|
|
|
|
/* global ActiveXObject -- old IE, WSH */
|
|
var anObject = __webpack_require__(46);
|
|
var definePropertiesModule = __webpack_require__(75);
|
|
var enumBugKeys = __webpack_require__(65);
|
|
var hiddenKeys = __webpack_require__(54);
|
|
var html = __webpack_require__(77);
|
|
var documentCreateElement = __webpack_require__(42);
|
|
var sharedKey = __webpack_require__(53);
|
|
|
|
var GT = '>';
|
|
var LT = '<';
|
|
var PROTOTYPE = 'prototype';
|
|
var SCRIPT = 'script';
|
|
var IE_PROTO = sharedKey('IE_PROTO');
|
|
|
|
var EmptyConstructor = function () { /* empty */ };
|
|
|
|
var scriptTag = function (content) {
|
|
return LT + SCRIPT + GT + content + LT + '/' + SCRIPT + GT;
|
|
};
|
|
|
|
// Create object with fake `null` prototype: use ActiveX Object with cleared prototype
|
|
var NullProtoObjectViaActiveX = function (activeXDocument) {
|
|
activeXDocument.write(scriptTag(''));
|
|
activeXDocument.close();
|
|
var temp = activeXDocument.parentWindow.Object;
|
|
activeXDocument = null; // avoid memory leak
|
|
return temp;
|
|
};
|
|
|
|
// Create object with fake `null` prototype: use iframe Object with cleared prototype
|
|
var NullProtoObjectViaIFrame = function () {
|
|
// Thrash, waste and sodomy: IE GC bug
|
|
var iframe = documentCreateElement('iframe');
|
|
var JS = 'java' + SCRIPT + ':';
|
|
var iframeDocument;
|
|
iframe.style.display = 'none';
|
|
html.appendChild(iframe);
|
|
// https://github.com/zloirock/core-js/issues/475
|
|
iframe.src = String(JS);
|
|
iframeDocument = iframe.contentWindow.document;
|
|
iframeDocument.open();
|
|
iframeDocument.write(scriptTag('document.F=Object'));
|
|
iframeDocument.close();
|
|
return iframeDocument.F;
|
|
};
|
|
|
|
// Check for document.domain and active x support
|
|
// No need to use active x approach when document.domain is not set
|
|
// see https://github.com/es-shims/es5-shim/issues/150
|
|
// variation of https://github.com/kitcambridge/es5-shim/commit/4f738ac066346
|
|
// avoid IE GC bug
|
|
var activeXDocument;
|
|
var NullProtoObject = function () {
|
|
try {
|
|
activeXDocument = new ActiveXObject('htmlfile');
|
|
} catch (error) { /* ignore */ }
|
|
NullProtoObject = typeof document != 'undefined'
|
|
? document.domain && activeXDocument
|
|
? NullProtoObjectViaActiveX(activeXDocument) // old IE
|
|
: NullProtoObjectViaIFrame()
|
|
: NullProtoObjectViaActiveX(activeXDocument); // WSH
|
|
var length = enumBugKeys.length;
|
|
while (length--) delete NullProtoObject[PROTOTYPE][enumBugKeys[length]];
|
|
return NullProtoObject();
|
|
};
|
|
|
|
hiddenKeys[IE_PROTO] = true;
|
|
|
|
// `Object.create` method
|
|
// https://tc39.es/ecma262/#sec-object.create
|
|
// eslint-disable-next-line es/no-object-create -- safe
|
|
module.exports = Object.create || function create(O, Properties) {
|
|
var result;
|
|
if (O !== null) {
|
|
EmptyConstructor[PROTOTYPE] = anObject(O);
|
|
result = new EmptyConstructor();
|
|
EmptyConstructor[PROTOTYPE] = null;
|
|
// add "__proto__" for Object.getPrototypeOf polyfill
|
|
result[IE_PROTO] = O;
|
|
} else result = NullProtoObject();
|
|
return Properties === undefined ? result : definePropertiesModule.f(result, Properties);
|
|
};
|
|
|
|
|
|
/***/ }),
|
|
/* 75 */
|
|
/***/ (function(module, exports, __webpack_require__) {
|
|
|
|
var DESCRIPTORS = __webpack_require__(5);
|
|
var V8_PROTOTYPE_DEFINE_BUG = __webpack_require__(45);
|
|
var definePropertyModule = __webpack_require__(44);
|
|
var anObject = __webpack_require__(46);
|
|
var toIndexedObject = __webpack_require__(11);
|
|
var objectKeys = __webpack_require__(76);
|
|
|
|
// `Object.defineProperties` method
|
|
// https://tc39.es/ecma262/#sec-object.defineproperties
|
|
// eslint-disable-next-line es/no-object-defineproperties -- safe
|
|
exports.f = DESCRIPTORS && !V8_PROTOTYPE_DEFINE_BUG ? Object.defineProperties : function defineProperties(O, Properties) {
|
|
anObject(O);
|
|
var props = toIndexedObject(Properties);
|
|
var keys = objectKeys(Properties);
|
|
var length = keys.length;
|
|
var index = 0;
|
|
var key;
|
|
while (length > index) definePropertyModule.f(O, key = keys[index++], props[key]);
|
|
return O;
|
|
};
|
|
|
|
|
|
/***/ }),
|
|
/* 76 */
|
|
/***/ (function(module, exports, __webpack_require__) {
|
|
|
|
var internalObjectKeys = __webpack_require__(58);
|
|
var enumBugKeys = __webpack_require__(65);
|
|
|
|
// `Object.keys` method
|
|
// https://tc39.es/ecma262/#sec-object.keys
|
|
// eslint-disable-next-line es/no-object-keys -- safe
|
|
module.exports = Object.keys || function keys(O) {
|
|
return internalObjectKeys(O, enumBugKeys);
|
|
};
|
|
|
|
|
|
/***/ }),
|
|
/* 77 */
|
|
/***/ (function(module, exports, __webpack_require__) {
|
|
|
|
var getBuiltIn = __webpack_require__(23);
|
|
|
|
module.exports = getBuiltIn('document', 'documentElement');
|
|
|
|
|
|
/***/ }),
|
|
/* 78 */
|
|
/***/ (function(module, exports, __webpack_require__) {
|
|
|
|
"use strict";
|
|
|
|
var $ = __webpack_require__(2);
|
|
var uncurryThis = __webpack_require__(13);
|
|
var aCallable = __webpack_require__(30);
|
|
var toIndexedObject = __webpack_require__(11);
|
|
var arrayFromConstructorAndList = __webpack_require__(79);
|
|
var getVirtual = __webpack_require__(80);
|
|
var addToUnscopables = __webpack_require__(73);
|
|
|
|
var $Array = Array;
|
|
var sort = uncurryThis(getVirtual('Array').sort);
|
|
|
|
// `Array.prototype.toSorted` method
|
|
// https://tc39.es/proposal-change-array-by-copy/#sec-array.prototype.toSorted
|
|
$({ target: 'Array', proto: true }, {
|
|
toSorted: function toSorted(compareFn) {
|
|
if (compareFn !== undefined) aCallable(compareFn);
|
|
var O = toIndexedObject(this);
|
|
var A = arrayFromConstructorAndList($Array, O);
|
|
return sort(A, compareFn);
|
|
}
|
|
});
|
|
|
|
addToUnscopables('toSorted');
|
|
|
|
|
|
/***/ }),
|
|
/* 79 */
|
|
/***/ (function(module, exports, __webpack_require__) {
|
|
|
|
var lengthOfArrayLike = __webpack_require__(63);
|
|
|
|
module.exports = function (Constructor, list) {
|
|
var index = 0;
|
|
var length = lengthOfArrayLike(list);
|
|
var result = new Constructor(length);
|
|
while (length > index) result[index] = list[index++];
|
|
return result;
|
|
};
|
|
|
|
|
|
/***/ }),
|
|
/* 80 */
|
|
/***/ (function(module, exports, __webpack_require__) {
|
|
|
|
var global = __webpack_require__(3);
|
|
|
|
module.exports = function (CONSTRUCTOR) {
|
|
return global[CONSTRUCTOR].prototype;
|
|
};
|
|
|
|
|
|
/***/ }),
|
|
/* 81 */
|
|
/***/ (function(module, exports, __webpack_require__) {
|
|
|
|
"use strict";
|
|
|
|
var $ = __webpack_require__(2);
|
|
var addToUnscopables = __webpack_require__(73);
|
|
var doesNotExceedSafeInteger = __webpack_require__(70);
|
|
var lengthOfArrayLike = __webpack_require__(63);
|
|
var toAbsoluteIndex = __webpack_require__(60);
|
|
var toIndexedObject = __webpack_require__(11);
|
|
var toIntegerOrInfinity = __webpack_require__(61);
|
|
|
|
var $Array = Array;
|
|
var max = Math.max;
|
|
var min = Math.min;
|
|
|
|
// `Array.prototype.toSpliced` method
|
|
// https://tc39.es/proposal-change-array-by-copy/#sec-array.prototype.toSpliced
|
|
$({ target: 'Array', proto: true }, {
|
|
toSpliced: function toSpliced(start, deleteCount /* , ...items */) {
|
|
var O = toIndexedObject(this);
|
|
var len = lengthOfArrayLike(O);
|
|
var actualStart = toAbsoluteIndex(start, len);
|
|
var argumentsLength = arguments.length;
|
|
var k = 0;
|
|
var insertCount, actualDeleteCount, newLen, A;
|
|
if (argumentsLength === 0) {
|
|
insertCount = actualDeleteCount = 0;
|
|
} else if (argumentsLength === 1) {
|
|
insertCount = 0;
|
|
actualDeleteCount = len - actualStart;
|
|
} else {
|
|
insertCount = argumentsLength - 2;
|
|
actualDeleteCount = min(max(toIntegerOrInfinity(deleteCount), 0), len - actualStart);
|
|
}
|
|
newLen = doesNotExceedSafeInteger(len + insertCount - actualDeleteCount);
|
|
A = $Array(newLen);
|
|
|
|
for (; k < actualStart; k++) A[k] = O[k];
|
|
for (; k < actualStart + insertCount; k++) A[k] = arguments[k - actualStart + 2];
|
|
for (; k < newLen; k++) A[k] = O[k + actualDeleteCount - insertCount];
|
|
|
|
return A;
|
|
}
|
|
});
|
|
|
|
addToUnscopables('toSpliced');
|
|
|
|
|
|
/***/ }),
|
|
/* 82 */
|
|
/***/ (function(module, exports, __webpack_require__) {
|
|
|
|
"use strict";
|
|
|
|
var $ = __webpack_require__(2);
|
|
var arrayWith = __webpack_require__(83);
|
|
var toIndexedObject = __webpack_require__(11);
|
|
|
|
var $Array = Array;
|
|
|
|
// `Array.prototype.with` method
|
|
// https://tc39.es/proposal-change-array-by-copy/#sec-array.prototype.with
|
|
$({ target: 'Array', proto: true }, {
|
|
'with': function (index, value) {
|
|
return arrayWith(toIndexedObject(this), $Array, index, value);
|
|
}
|
|
});
|
|
|
|
|
|
/***/ }),
|
|
/* 83 */
|
|
/***/ (function(module, exports, __webpack_require__) {
|
|
|
|
var lengthOfArrayLike = __webpack_require__(63);
|
|
var toIntegerOrInfinity = __webpack_require__(61);
|
|
|
|
var $RangeError = RangeError;
|
|
|
|
// https://tc39.es/proposal-change-array-by-copy/#sec-array.prototype.with
|
|
// https://tc39.es/proposal-change-array-by-copy/#sec-%typedarray%.prototype.with
|
|
module.exports = function (O, C, index, value) {
|
|
var len = lengthOfArrayLike(O);
|
|
var relativeIndex = toIntegerOrInfinity(index);
|
|
var actualIndex = relativeIndex < 0 ? len + relativeIndex : relativeIndex;
|
|
if (actualIndex >= len || actualIndex < 0) throw $RangeError('Incorrect index');
|
|
var A = new C(len);
|
|
var k = 0;
|
|
for (; k < len; k++) A[k] = k === actualIndex ? value : O[k];
|
|
return A;
|
|
};
|
|
|
|
|
|
/***/ }),
|
|
/* 84 */
|
|
/***/ (function(module, exports, __webpack_require__) {
|
|
|
|
var global = __webpack_require__(3);
|
|
var DESCRIPTORS = __webpack_require__(5);
|
|
var defineBuiltInAccessor = __webpack_require__(85);
|
|
var regExpFlags = __webpack_require__(86);
|
|
var fails = __webpack_require__(6);
|
|
|
|
// babel-minify and Closure Compiler transpiles RegExp('.', 'd') -> /./d and it causes SyntaxError
|
|
var RegExp = global.RegExp;
|
|
var RegExpPrototype = RegExp.prototype;
|
|
|
|
var FORCED = DESCRIPTORS && fails(function () {
|
|
var INDICES_SUPPORT = true;
|
|
try {
|
|
RegExp('.', 'd');
|
|
} catch (error) {
|
|
INDICES_SUPPORT = false;
|
|
}
|
|
|
|
var O = {};
|
|
// modern V8 bug
|
|
var calls = '';
|
|
var expected = INDICES_SUPPORT ? 'dgimsy' : 'gimsy';
|
|
|
|
var addGetter = function (key, chr) {
|
|
// eslint-disable-next-line es/no-object-defineproperty -- safe
|
|
Object.defineProperty(O, key, { get: function () {
|
|
calls += chr;
|
|
return true;
|
|
} });
|
|
};
|
|
|
|
var pairs = {
|
|
dotAll: 's',
|
|
global: 'g',
|
|
ignoreCase: 'i',
|
|
multiline: 'm',
|
|
sticky: 'y'
|
|
};
|
|
|
|
if (INDICES_SUPPORT) pairs.hasIndices = 'd';
|
|
|
|
for (var key in pairs) addGetter(key, pairs[key]);
|
|
|
|
// eslint-disable-next-line es/no-object-getownpropertydescriptor -- safe
|
|
var result = Object.getOwnPropertyDescriptor(RegExpPrototype, 'flags').get.call(O);
|
|
|
|
return result !== expected || calls !== expected;
|
|
});
|
|
|
|
// `RegExp.prototype.flags` getter
|
|
// https://tc39.es/ecma262/#sec-get-regexp.prototype.flags
|
|
if (FORCED) defineBuiltInAccessor(RegExpPrototype, 'flags', {
|
|
configurable: true,
|
|
get: regExpFlags
|
|
});
|
|
|
|
|
|
/***/ }),
|
|
/* 85 */
|
|
/***/ (function(module, exports, __webpack_require__) {
|
|
|
|
var makeBuiltIn = __webpack_require__(48);
|
|
var defineProperty = __webpack_require__(44);
|
|
|
|
module.exports = function (target, name, descriptor) {
|
|
if (descriptor.get) makeBuiltIn(descriptor.get, name, { getter: true });
|
|
if (descriptor.set) makeBuiltIn(descriptor.set, name, { setter: true });
|
|
return defineProperty.f(target, name, descriptor);
|
|
};
|
|
|
|
|
|
/***/ }),
|
|
/* 86 */
|
|
/***/ (function(module, exports, __webpack_require__) {
|
|
|
|
"use strict";
|
|
|
|
var anObject = __webpack_require__(46);
|
|
|
|
// `RegExp.prototype.flags` getter implementation
|
|
// https://tc39.es/ecma262/#sec-get-regexp.prototype.flags
|
|
module.exports = function () {
|
|
var that = anObject(this);
|
|
var result = '';
|
|
if (that.hasIndices) result += 'd';
|
|
if (that.global) result += 'g';
|
|
if (that.ignoreCase) result += 'i';
|
|
if (that.multiline) result += 'm';
|
|
if (that.dotAll) result += 's';
|
|
if (that.unicode) result += 'u';
|
|
if (that.unicodeSets) result += 'v';
|
|
if (that.sticky) result += 'y';
|
|
return result;
|
|
};
|
|
|
|
|
|
/***/ }),
|
|
/* 87 */
|
|
/***/ (function(module, exports, __webpack_require__) {
|
|
|
|
"use strict";
|
|
|
|
var $ = __webpack_require__(2);
|
|
var uncurryThis = __webpack_require__(13);
|
|
var requireObjectCoercible = __webpack_require__(15);
|
|
var toString = __webpack_require__(88);
|
|
|
|
var charCodeAt = uncurryThis(''.charCodeAt);
|
|
|
|
// `String.prototype.isWellFormed` method
|
|
// https://github.com/tc39/proposal-is-usv-string
|
|
$({ target: 'String', proto: true }, {
|
|
isWellFormed: function isWellFormed() {
|
|
var S = toString(requireObjectCoercible(this));
|
|
var length = S.length;
|
|
for (var i = 0; i < length; i++) {
|
|
var charCode = charCodeAt(S, i);
|
|
// single UTF-16 code unit
|
|
if ((charCode & 0xF800) != 0xD800) continue;
|
|
// unpaired surrogate
|
|
if (charCode >= 0xDC00 || ++i >= length || (charCodeAt(S, i) & 0xFC00) != 0xDC00) return false;
|
|
} return true;
|
|
}
|
|
});
|
|
|
|
|
|
/***/ }),
|
|
/* 88 */
|
|
/***/ (function(module, exports, __webpack_require__) {
|
|
|
|
var classof = __webpack_require__(89);
|
|
|
|
var $String = String;
|
|
|
|
module.exports = function (argument) {
|
|
if (classof(argument) === 'Symbol') throw TypeError('Cannot convert a Symbol value to a string');
|
|
return $String(argument);
|
|
};
|
|
|
|
|
|
/***/ }),
|
|
/* 89 */
|
|
/***/ (function(module, exports, __webpack_require__) {
|
|
|
|
var TO_STRING_TAG_SUPPORT = __webpack_require__(90);
|
|
var isCallable = __webpack_require__(20);
|
|
var classofRaw = __webpack_require__(14);
|
|
var wellKnownSymbol = __webpack_require__(33);
|
|
|
|
var TO_STRING_TAG = wellKnownSymbol('toStringTag');
|
|
var $Object = Object;
|
|
|
|
// ES3 wrong here
|
|
var CORRECT_ARGUMENTS = classofRaw(function () { return arguments; }()) == 'Arguments';
|
|
|
|
// fallback for IE11 Script Access Denied error
|
|
var tryGet = function (it, key) {
|
|
try {
|
|
return it[key];
|
|
} catch (error) { /* empty */ }
|
|
};
|
|
|
|
// getting tag from ES6+ `Object.prototype.toString`
|
|
module.exports = TO_STRING_TAG_SUPPORT ? classofRaw : function (it) {
|
|
var O, tag, result;
|
|
return it === undefined ? 'Undefined' : it === null ? 'Null'
|
|
// @@toStringTag case
|
|
: typeof (tag = tryGet(O = $Object(it), TO_STRING_TAG)) == 'string' ? tag
|
|
// builtinTag case
|
|
: CORRECT_ARGUMENTS ? classofRaw(O)
|
|
// ES3 arguments fallback
|
|
: (result = classofRaw(O)) == 'Object' && isCallable(O.callee) ? 'Arguments' : result;
|
|
};
|
|
|
|
|
|
/***/ }),
|
|
/* 90 */
|
|
/***/ (function(module, exports, __webpack_require__) {
|
|
|
|
var wellKnownSymbol = __webpack_require__(33);
|
|
|
|
var TO_STRING_TAG = wellKnownSymbol('toStringTag');
|
|
var test = {};
|
|
|
|
test[TO_STRING_TAG] = 'z';
|
|
|
|
module.exports = String(test) === '[object z]';
|
|
|
|
|
|
/***/ }),
|
|
/* 91 */
|
|
/***/ (function(module, exports, __webpack_require__) {
|
|
|
|
"use strict";
|
|
|
|
var $ = __webpack_require__(2);
|
|
var call = __webpack_require__(7);
|
|
var uncurryThis = __webpack_require__(13);
|
|
var requireObjectCoercible = __webpack_require__(15);
|
|
var toString = __webpack_require__(88);
|
|
var fails = __webpack_require__(6);
|
|
|
|
var $Array = Array;
|
|
var charAt = uncurryThis(''.charAt);
|
|
var charCodeAt = uncurryThis(''.charCodeAt);
|
|
var join = uncurryThis([].join);
|
|
// eslint-disable-next-line es/no-string-prototype-iswellformed-towellformed -- safe
|
|
var $toWellFormed = ''.toWellFormed;
|
|
var REPLACEMENT_CHARACTER = '\uFFFD';
|
|
|
|
// Safari bug
|
|
var TO_STRING_CONVERSION_BUG = $toWellFormed && fails(function () {
|
|
return call($toWellFormed, 1) !== '1';
|
|
});
|
|
|
|
// `String.prototype.toWellFormed` method
|
|
// https://github.com/tc39/proposal-is-usv-string
|
|
$({ target: 'String', proto: true, forced: TO_STRING_CONVERSION_BUG }, {
|
|
toWellFormed: function toWellFormed() {
|
|
var S = toString(requireObjectCoercible(this));
|
|
if (TO_STRING_CONVERSION_BUG) return call($toWellFormed, S);
|
|
var length = S.length;
|
|
var result = $Array(length);
|
|
for (var i = 0; i < length; i++) {
|
|
var charCode = charCodeAt(S, i);
|
|
// single UTF-16 code unit
|
|
if ((charCode & 0xF800) != 0xD800) result[i] = charAt(S, i);
|
|
// unpaired surrogate
|
|
else if (charCode >= 0xDC00 || i + 1 >= length || (charCodeAt(S, i + 1) & 0xFC00) != 0xDC00) result[i] = REPLACEMENT_CHARACTER;
|
|
// surrogate pair
|
|
else {
|
|
result[i] = charAt(S, i);
|
|
result[++i] = charAt(S, i);
|
|
}
|
|
} return join(result, '');
|
|
}
|
|
});
|
|
|
|
|
|
/***/ }),
|
|
/* 92 */
|
|
/***/ (function(module, exports, __webpack_require__) {
|
|
|
|
"use strict";
|
|
|
|
var arrayToReversed = __webpack_require__(72);
|
|
var ArrayBufferViewCore = __webpack_require__(93);
|
|
|
|
var aTypedArray = ArrayBufferViewCore.aTypedArray;
|
|
var exportTypedArrayMethod = ArrayBufferViewCore.exportTypedArrayMethod;
|
|
var getTypedArrayConstructor = ArrayBufferViewCore.getTypedArrayConstructor;
|
|
|
|
// `%TypedArray%.prototype.toReversed` method
|
|
// https://tc39.es/proposal-change-array-by-copy/#sec-%typedarray%.prototype.toReversed
|
|
exportTypedArrayMethod('toReversed', function toReversed() {
|
|
return arrayToReversed(aTypedArray(this), getTypedArrayConstructor(this));
|
|
});
|
|
|
|
|
|
/***/ }),
|
|
/* 93 */
|
|
/***/ (function(module, exports, __webpack_require__) {
|
|
|
|
"use strict";
|
|
|
|
var NATIVE_ARRAY_BUFFER = __webpack_require__(94);
|
|
var DESCRIPTORS = __webpack_require__(5);
|
|
var global = __webpack_require__(3);
|
|
var isCallable = __webpack_require__(20);
|
|
var isObject = __webpack_require__(19);
|
|
var hasOwn = __webpack_require__(38);
|
|
var classof = __webpack_require__(89);
|
|
var tryToString = __webpack_require__(31);
|
|
var createNonEnumerableProperty = __webpack_require__(43);
|
|
var defineBuiltIn = __webpack_require__(47);
|
|
var defineBuiltInAccessor = __webpack_require__(85);
|
|
var isPrototypeOf = __webpack_require__(24);
|
|
var getPrototypeOf = __webpack_require__(95);
|
|
var setPrototypeOf = __webpack_require__(97);
|
|
var wellKnownSymbol = __webpack_require__(33);
|
|
var uid = __webpack_require__(40);
|
|
var InternalStateModule = __webpack_require__(51);
|
|
|
|
var enforceInternalState = InternalStateModule.enforce;
|
|
var getInternalState = InternalStateModule.get;
|
|
var Int8Array = global.Int8Array;
|
|
var Int8ArrayPrototype = Int8Array && Int8Array.prototype;
|
|
var Uint8ClampedArray = global.Uint8ClampedArray;
|
|
var Uint8ClampedArrayPrototype = Uint8ClampedArray && Uint8ClampedArray.prototype;
|
|
var TypedArray = Int8Array && getPrototypeOf(Int8Array);
|
|
var TypedArrayPrototype = Int8ArrayPrototype && getPrototypeOf(Int8ArrayPrototype);
|
|
var ObjectPrototype = Object.prototype;
|
|
var TypeError = global.TypeError;
|
|
|
|
var TO_STRING_TAG = wellKnownSymbol('toStringTag');
|
|
var TYPED_ARRAY_TAG = uid('TYPED_ARRAY_TAG');
|
|
var TYPED_ARRAY_CONSTRUCTOR = 'TypedArrayConstructor';
|
|
// Fixing native typed arrays in Opera Presto crashes the browser, see #595
|
|
var NATIVE_ARRAY_BUFFER_VIEWS = NATIVE_ARRAY_BUFFER && !!setPrototypeOf && classof(global.opera) !== 'Opera';
|
|
var TYPED_ARRAY_TAG_REQUIRED = false;
|
|
var NAME, Constructor, Prototype;
|
|
|
|
var TypedArrayConstructorsList = {
|
|
Int8Array: 1,
|
|
Uint8Array: 1,
|
|
Uint8ClampedArray: 1,
|
|
Int16Array: 2,
|
|
Uint16Array: 2,
|
|
Int32Array: 4,
|
|
Uint32Array: 4,
|
|
Float32Array: 4,
|
|
Float64Array: 8
|
|
};
|
|
|
|
var BigIntArrayConstructorsList = {
|
|
BigInt64Array: 8,
|
|
BigUint64Array: 8
|
|
};
|
|
|
|
var isView = function isView(it) {
|
|
if (!isObject(it)) return false;
|
|
var klass = classof(it);
|
|
return klass === 'DataView'
|
|
|| hasOwn(TypedArrayConstructorsList, klass)
|
|
|| hasOwn(BigIntArrayConstructorsList, klass);
|
|
};
|
|
|
|
var getTypedArrayConstructor = function (it) {
|
|
var proto = getPrototypeOf(it);
|
|
if (!isObject(proto)) return;
|
|
var state = getInternalState(proto);
|
|
return (state && hasOwn(state, TYPED_ARRAY_CONSTRUCTOR)) ? state[TYPED_ARRAY_CONSTRUCTOR] : getTypedArrayConstructor(proto);
|
|
};
|
|
|
|
var isTypedArray = function (it) {
|
|
if (!isObject(it)) return false;
|
|
var klass = classof(it);
|
|
return hasOwn(TypedArrayConstructorsList, klass)
|
|
|| hasOwn(BigIntArrayConstructorsList, klass);
|
|
};
|
|
|
|
var aTypedArray = function (it) {
|
|
if (isTypedArray(it)) return it;
|
|
throw TypeError('Target is not a typed array');
|
|
};
|
|
|
|
var aTypedArrayConstructor = function (C) {
|
|
if (isCallable(C) && (!setPrototypeOf || isPrototypeOf(TypedArray, C))) return C;
|
|
throw TypeError(tryToString(C) + ' is not a typed array constructor');
|
|
};
|
|
|
|
var exportTypedArrayMethod = function (KEY, property, forced, options) {
|
|
if (!DESCRIPTORS) return;
|
|
if (forced) for (var ARRAY in TypedArrayConstructorsList) {
|
|
var TypedArrayConstructor = global[ARRAY];
|
|
if (TypedArrayConstructor && hasOwn(TypedArrayConstructor.prototype, KEY)) try {
|
|
delete TypedArrayConstructor.prototype[KEY];
|
|
} catch (error) {
|
|
// old WebKit bug - some methods are non-configurable
|
|
try {
|
|
TypedArrayConstructor.prototype[KEY] = property;
|
|
} catch (error2) { /* empty */ }
|
|
}
|
|
}
|
|
if (!TypedArrayPrototype[KEY] || forced) {
|
|
defineBuiltIn(TypedArrayPrototype, KEY, forced ? property
|
|
: NATIVE_ARRAY_BUFFER_VIEWS && Int8ArrayPrototype[KEY] || property, options);
|
|
}
|
|
};
|
|
|
|
var exportTypedArrayStaticMethod = function (KEY, property, forced) {
|
|
var ARRAY, TypedArrayConstructor;
|
|
if (!DESCRIPTORS) return;
|
|
if (setPrototypeOf) {
|
|
if (forced) for (ARRAY in TypedArrayConstructorsList) {
|
|
TypedArrayConstructor = global[ARRAY];
|
|
if (TypedArrayConstructor && hasOwn(TypedArrayConstructor, KEY)) try {
|
|
delete TypedArrayConstructor[KEY];
|
|
} catch (error) { /* empty */ }
|
|
}
|
|
if (!TypedArray[KEY] || forced) {
|
|
// V8 ~ Chrome 49-50 `%TypedArray%` methods are non-writable non-configurable
|
|
try {
|
|
return defineBuiltIn(TypedArray, KEY, forced ? property : NATIVE_ARRAY_BUFFER_VIEWS && TypedArray[KEY] || property);
|
|
} catch (error) { /* empty */ }
|
|
} else return;
|
|
}
|
|
for (ARRAY in TypedArrayConstructorsList) {
|
|
TypedArrayConstructor = global[ARRAY];
|
|
if (TypedArrayConstructor && (!TypedArrayConstructor[KEY] || forced)) {
|
|
defineBuiltIn(TypedArrayConstructor, KEY, property);
|
|
}
|
|
}
|
|
};
|
|
|
|
for (NAME in TypedArrayConstructorsList) {
|
|
Constructor = global[NAME];
|
|
Prototype = Constructor && Constructor.prototype;
|
|
if (Prototype) enforceInternalState(Prototype)[TYPED_ARRAY_CONSTRUCTOR] = Constructor;
|
|
else NATIVE_ARRAY_BUFFER_VIEWS = false;
|
|
}
|
|
|
|
for (NAME in BigIntArrayConstructorsList) {
|
|
Constructor = global[NAME];
|
|
Prototype = Constructor && Constructor.prototype;
|
|
if (Prototype) enforceInternalState(Prototype)[TYPED_ARRAY_CONSTRUCTOR] = Constructor;
|
|
}
|
|
|
|
// WebKit bug - typed arrays constructors prototype is Object.prototype
|
|
if (!NATIVE_ARRAY_BUFFER_VIEWS || !isCallable(TypedArray) || TypedArray === Function.prototype) {
|
|
// eslint-disable-next-line no-shadow -- safe
|
|
TypedArray = function TypedArray() {
|
|
throw TypeError('Incorrect invocation');
|
|
};
|
|
if (NATIVE_ARRAY_BUFFER_VIEWS) for (NAME in TypedArrayConstructorsList) {
|
|
if (global[NAME]) setPrototypeOf(global[NAME], TypedArray);
|
|
}
|
|
}
|
|
|
|
if (!NATIVE_ARRAY_BUFFER_VIEWS || !TypedArrayPrototype || TypedArrayPrototype === ObjectPrototype) {
|
|
TypedArrayPrototype = TypedArray.prototype;
|
|
if (NATIVE_ARRAY_BUFFER_VIEWS) for (NAME in TypedArrayConstructorsList) {
|
|
if (global[NAME]) setPrototypeOf(global[NAME].prototype, TypedArrayPrototype);
|
|
}
|
|
}
|
|
|
|
// WebKit bug - one more object in Uint8ClampedArray prototype chain
|
|
if (NATIVE_ARRAY_BUFFER_VIEWS && getPrototypeOf(Uint8ClampedArrayPrototype) !== TypedArrayPrototype) {
|
|
setPrototypeOf(Uint8ClampedArrayPrototype, TypedArrayPrototype);
|
|
}
|
|
|
|
if (DESCRIPTORS && !hasOwn(TypedArrayPrototype, TO_STRING_TAG)) {
|
|
TYPED_ARRAY_TAG_REQUIRED = true;
|
|
defineBuiltInAccessor(TypedArrayPrototype, TO_STRING_TAG, {
|
|
configurable: true,
|
|
get: function () {
|
|
return isObject(this) ? this[TYPED_ARRAY_TAG] : undefined;
|
|
}
|
|
});
|
|
for (NAME in TypedArrayConstructorsList) if (global[NAME]) {
|
|
createNonEnumerableProperty(global[NAME], TYPED_ARRAY_TAG, NAME);
|
|
}
|
|
}
|
|
|
|
module.exports = {
|
|
NATIVE_ARRAY_BUFFER_VIEWS: NATIVE_ARRAY_BUFFER_VIEWS,
|
|
TYPED_ARRAY_TAG: TYPED_ARRAY_TAG_REQUIRED && TYPED_ARRAY_TAG,
|
|
aTypedArray: aTypedArray,
|
|
aTypedArrayConstructor: aTypedArrayConstructor,
|
|
exportTypedArrayMethod: exportTypedArrayMethod,
|
|
exportTypedArrayStaticMethod: exportTypedArrayStaticMethod,
|
|
getTypedArrayConstructor: getTypedArrayConstructor,
|
|
isView: isView,
|
|
isTypedArray: isTypedArray,
|
|
TypedArray: TypedArray,
|
|
TypedArrayPrototype: TypedArrayPrototype
|
|
};
|
|
|
|
|
|
/***/ }),
|
|
/* 94 */
|
|
/***/ (function(module, exports) {
|
|
|
|
// eslint-disable-next-line es/no-typed-arrays -- safe
|
|
module.exports = typeof ArrayBuffer != 'undefined' && typeof DataView != 'undefined';
|
|
|
|
|
|
/***/ }),
|
|
/* 95 */
|
|
/***/ (function(module, exports, __webpack_require__) {
|
|
|
|
var hasOwn = __webpack_require__(38);
|
|
var isCallable = __webpack_require__(20);
|
|
var toObject = __webpack_require__(39);
|
|
var sharedKey = __webpack_require__(53);
|
|
var CORRECT_PROTOTYPE_GETTER = __webpack_require__(96);
|
|
|
|
var IE_PROTO = sharedKey('IE_PROTO');
|
|
var $Object = Object;
|
|
var ObjectPrototype = $Object.prototype;
|
|
|
|
// `Object.getPrototypeOf` method
|
|
// https://tc39.es/ecma262/#sec-object.getprototypeof
|
|
// eslint-disable-next-line es/no-object-getprototypeof -- safe
|
|
module.exports = CORRECT_PROTOTYPE_GETTER ? $Object.getPrototypeOf : function (O) {
|
|
var object = toObject(O);
|
|
if (hasOwn(object, IE_PROTO)) return object[IE_PROTO];
|
|
var constructor = object.constructor;
|
|
if (isCallable(constructor) && object instanceof constructor) {
|
|
return constructor.prototype;
|
|
} return object instanceof $Object ? ObjectPrototype : null;
|
|
};
|
|
|
|
|
|
/***/ }),
|
|
/* 96 */
|
|
/***/ (function(module, exports, __webpack_require__) {
|
|
|
|
var fails = __webpack_require__(6);
|
|
|
|
module.exports = !fails(function () {
|
|
function F() { /* empty */ }
|
|
F.prototype.constructor = null;
|
|
// eslint-disable-next-line es/no-object-getprototypeof -- required for testing
|
|
return Object.getPrototypeOf(new F()) !== F.prototype;
|
|
});
|
|
|
|
|
|
/***/ }),
|
|
/* 97 */
|
|
/***/ (function(module, exports, __webpack_require__) {
|
|
|
|
/* eslint-disable no-proto -- safe */
|
|
var uncurryThisAccessor = __webpack_require__(98);
|
|
var anObject = __webpack_require__(46);
|
|
var aPossiblePrototype = __webpack_require__(99);
|
|
|
|
// `Object.setPrototypeOf` method
|
|
// https://tc39.es/ecma262/#sec-object.setprototypeof
|
|
// Works with __proto__ only. Old v8 can't work with null proto objects.
|
|
// eslint-disable-next-line es/no-object-setprototypeof -- safe
|
|
module.exports = Object.setPrototypeOf || ('__proto__' in {} ? function () {
|
|
var CORRECT_SETTER = false;
|
|
var test = {};
|
|
var setter;
|
|
try {
|
|
setter = uncurryThisAccessor(Object.prototype, '__proto__', 'set');
|
|
setter(test, []);
|
|
CORRECT_SETTER = test instanceof Array;
|
|
} catch (error) { /* empty */ }
|
|
return function setPrototypeOf(O, proto) {
|
|
anObject(O);
|
|
aPossiblePrototype(proto);
|
|
if (CORRECT_SETTER) setter(O, proto);
|
|
else O.__proto__ = proto;
|
|
return O;
|
|
};
|
|
}() : undefined);
|
|
|
|
|
|
/***/ }),
|
|
/* 98 */
|
|
/***/ (function(module, exports, __webpack_require__) {
|
|
|
|
var uncurryThis = __webpack_require__(13);
|
|
var aCallable = __webpack_require__(30);
|
|
|
|
module.exports = function (object, key, method) {
|
|
try {
|
|
// eslint-disable-next-line es/no-object-getownpropertydescriptor -- safe
|
|
return uncurryThis(aCallable(Object.getOwnPropertyDescriptor(object, key)[method]));
|
|
} catch (error) { /* empty */ }
|
|
};
|
|
|
|
|
|
/***/ }),
|
|
/* 99 */
|
|
/***/ (function(module, exports, __webpack_require__) {
|
|
|
|
var isCallable = __webpack_require__(20);
|
|
|
|
var $String = String;
|
|
var $TypeError = TypeError;
|
|
|
|
module.exports = function (argument) {
|
|
if (typeof argument == 'object' || isCallable(argument)) return argument;
|
|
throw $TypeError("Can't set " + $String(argument) + ' as a prototype');
|
|
};
|
|
|
|
|
|
/***/ }),
|
|
/* 100 */
|
|
/***/ (function(module, exports, __webpack_require__) {
|
|
|
|
"use strict";
|
|
|
|
var ArrayBufferViewCore = __webpack_require__(93);
|
|
var uncurryThis = __webpack_require__(13);
|
|
var aCallable = __webpack_require__(30);
|
|
var arrayFromConstructorAndList = __webpack_require__(79);
|
|
|
|
var aTypedArray = ArrayBufferViewCore.aTypedArray;
|
|
var getTypedArrayConstructor = ArrayBufferViewCore.getTypedArrayConstructor;
|
|
var exportTypedArrayMethod = ArrayBufferViewCore.exportTypedArrayMethod;
|
|
var sort = uncurryThis(ArrayBufferViewCore.TypedArrayPrototype.sort);
|
|
|
|
// `%TypedArray%.prototype.toSorted` method
|
|
// https://tc39.es/proposal-change-array-by-copy/#sec-%typedarray%.prototype.toSorted
|
|
exportTypedArrayMethod('toSorted', function toSorted(compareFn) {
|
|
if (compareFn !== undefined) aCallable(compareFn);
|
|
var O = aTypedArray(this);
|
|
var A = arrayFromConstructorAndList(getTypedArrayConstructor(O), O);
|
|
return sort(A, compareFn);
|
|
});
|
|
|
|
|
|
/***/ }),
|
|
/* 101 */
|
|
/***/ (function(module, exports, __webpack_require__) {
|
|
|
|
"use strict";
|
|
|
|
var arrayWith = __webpack_require__(83);
|
|
var ArrayBufferViewCore = __webpack_require__(93);
|
|
var isBigIntArray = __webpack_require__(102);
|
|
var toIntegerOrInfinity = __webpack_require__(61);
|
|
var toBigInt = __webpack_require__(103);
|
|
|
|
var aTypedArray = ArrayBufferViewCore.aTypedArray;
|
|
var getTypedArrayConstructor = ArrayBufferViewCore.getTypedArrayConstructor;
|
|
var exportTypedArrayMethod = ArrayBufferViewCore.exportTypedArrayMethod;
|
|
|
|
var PROPER_ORDER = !!function () {
|
|
try {
|
|
// eslint-disable-next-line no-throw-literal, es/no-typed-arrays, es/no-array-prototype-with -- required for testing
|
|
new Int8Array(1)['with'](2, { valueOf: function () { throw 8; } });
|
|
} catch (error) {
|
|
// some early implementations, like WebKit, does not follow the final semantic
|
|
// https://github.com/tc39/proposal-change-array-by-copy/pull/86
|
|
return error === 8;
|
|
}
|
|
}();
|
|
|
|
// `%TypedArray%.prototype.with` method
|
|
// https://tc39.es/proposal-change-array-by-copy/#sec-%typedarray%.prototype.with
|
|
exportTypedArrayMethod('with', { 'with': function (index, value) {
|
|
var O = aTypedArray(this);
|
|
var relativeIndex = toIntegerOrInfinity(index);
|
|
var actualValue = isBigIntArray(O) ? toBigInt(value) : +value;
|
|
return arrayWith(O, getTypedArrayConstructor(O), relativeIndex, actualValue);
|
|
} }['with'], !PROPER_ORDER);
|
|
|
|
|
|
/***/ }),
|
|
/* 102 */
|
|
/***/ (function(module, exports, __webpack_require__) {
|
|
|
|
var classof = __webpack_require__(89);
|
|
|
|
module.exports = function (it) {
|
|
var klass = classof(it);
|
|
return klass == 'BigInt64Array' || klass == 'BigUint64Array';
|
|
};
|
|
|
|
|
|
/***/ }),
|
|
/* 103 */
|
|
/***/ (function(module, exports, __webpack_require__) {
|
|
|
|
var toPrimitive = __webpack_require__(18);
|
|
|
|
var $TypeError = TypeError;
|
|
|
|
// `ToBigInt` abstract operation
|
|
// https://tc39.es/ecma262/#sec-tobigint
|
|
module.exports = function (argument) {
|
|
var prim = toPrimitive(argument, 'number');
|
|
if (typeof prim == 'number') throw $TypeError("Can't convert number to bigint");
|
|
// eslint-disable-next-line es/no-bigint -- safe
|
|
return BigInt(prim);
|
|
};
|
|
|
|
|
|
/***/ }),
|
|
/* 104 */
|
|
/***/ (function(module, exports, __webpack_require__) {
|
|
|
|
"use strict";
|
|
|
|
var $ = __webpack_require__(2);
|
|
var isPrototypeOf = __webpack_require__(24);
|
|
var getPrototypeOf = __webpack_require__(95);
|
|
var setPrototypeOf = __webpack_require__(97);
|
|
var copyConstructorProperties = __webpack_require__(55);
|
|
var create = __webpack_require__(74);
|
|
var createNonEnumerableProperty = __webpack_require__(43);
|
|
var createPropertyDescriptor = __webpack_require__(10);
|
|
var installErrorStack = __webpack_require__(105);
|
|
var normalizeStringArgument = __webpack_require__(108);
|
|
var wellKnownSymbol = __webpack_require__(33);
|
|
|
|
var TO_STRING_TAG = wellKnownSymbol('toStringTag');
|
|
var $Error = Error;
|
|
|
|
var $SuppressedError = function SuppressedError(error, suppressed, message) {
|
|
var isInstance = isPrototypeOf(SuppressedErrorPrototype, this);
|
|
var that;
|
|
if (setPrototypeOf) {
|
|
that = setPrototypeOf($Error(), isInstance ? getPrototypeOf(this) : SuppressedErrorPrototype);
|
|
} else {
|
|
that = isInstance ? this : create(SuppressedErrorPrototype);
|
|
createNonEnumerableProperty(that, TO_STRING_TAG, 'Error');
|
|
}
|
|
if (message !== undefined) createNonEnumerableProperty(that, 'message', normalizeStringArgument(message));
|
|
installErrorStack(that, $SuppressedError, that.stack, 1);
|
|
createNonEnumerableProperty(that, 'error', error);
|
|
createNonEnumerableProperty(that, 'suppressed', suppressed);
|
|
return that;
|
|
};
|
|
|
|
if (setPrototypeOf) setPrototypeOf($SuppressedError, $Error);
|
|
else copyConstructorProperties($SuppressedError, $Error, { name: true });
|
|
|
|
var SuppressedErrorPrototype = $SuppressedError.prototype = create($Error.prototype, {
|
|
constructor: createPropertyDescriptor(1, $SuppressedError),
|
|
message: createPropertyDescriptor(1, ''),
|
|
name: createPropertyDescriptor(1, 'SuppressedError')
|
|
});
|
|
|
|
// `SuppressedError` constructor
|
|
// https://github.com/tc39/proposal-explicit-resource-management
|
|
$({ global: true, constructor: true, arity: 3 }, {
|
|
SuppressedError: $SuppressedError
|
|
});
|
|
|
|
|
|
/***/ }),
|
|
/* 105 */
|
|
/***/ (function(module, exports, __webpack_require__) {
|
|
|
|
var createNonEnumerableProperty = __webpack_require__(43);
|
|
var clearErrorStack = __webpack_require__(106);
|
|
var ERROR_STACK_INSTALLABLE = __webpack_require__(107);
|
|
|
|
// non-standard V8
|
|
var captureStackTrace = Error.captureStackTrace;
|
|
|
|
module.exports = function (error, C, stack, dropEntries) {
|
|
if (ERROR_STACK_INSTALLABLE) {
|
|
if (captureStackTrace) captureStackTrace(error, C);
|
|
else createNonEnumerableProperty(error, 'stack', clearErrorStack(stack, dropEntries));
|
|
}
|
|
};
|
|
|
|
|
|
/***/ }),
|
|
/* 106 */
|
|
/***/ (function(module, exports, __webpack_require__) {
|
|
|
|
var uncurryThis = __webpack_require__(13);
|
|
|
|
var $Error = Error;
|
|
var replace = uncurryThis(''.replace);
|
|
|
|
var TEST = (function (arg) { return String($Error(arg).stack); })('zxcasd');
|
|
// eslint-disable-next-line redos/no-vulnerable -- safe
|
|
var V8_OR_CHAKRA_STACK_ENTRY = /\n\s*at [^:]*:[^\n]*/;
|
|
var IS_V8_OR_CHAKRA_STACK = V8_OR_CHAKRA_STACK_ENTRY.test(TEST);
|
|
|
|
module.exports = function (stack, dropEntries) {
|
|
if (IS_V8_OR_CHAKRA_STACK && typeof stack == 'string' && !$Error.prepareStackTrace) {
|
|
while (dropEntries--) stack = replace(stack, V8_OR_CHAKRA_STACK_ENTRY, '');
|
|
} return stack;
|
|
};
|
|
|
|
|
|
/***/ }),
|
|
/* 107 */
|
|
/***/ (function(module, exports, __webpack_require__) {
|
|
|
|
var fails = __webpack_require__(6);
|
|
var createPropertyDescriptor = __webpack_require__(10);
|
|
|
|
module.exports = !fails(function () {
|
|
var error = Error('a');
|
|
if (!('stack' in error)) return true;
|
|
// eslint-disable-next-line es/no-object-defineproperty -- safe
|
|
Object.defineProperty(error, 'stack', createPropertyDescriptor(1, 7));
|
|
return error.stack !== 7;
|
|
});
|
|
|
|
|
|
/***/ }),
|
|
/* 108 */
|
|
/***/ (function(module, exports, __webpack_require__) {
|
|
|
|
var toString = __webpack_require__(88);
|
|
|
|
module.exports = function (argument, $default) {
|
|
return argument === undefined ? arguments.length < 2 ? '' : $default : toString(argument);
|
|
};
|
|
|
|
|
|
/***/ }),
|
|
/* 109 */
|
|
/***/ (function(module, exports, __webpack_require__) {
|
|
|
|
var $ = __webpack_require__(2);
|
|
var fromAsync = __webpack_require__(110);
|
|
|
|
// `Array.fromAsync` method
|
|
// https://github.com/tc39/proposal-array-from-async
|
|
$({ target: 'Array', stat: true }, {
|
|
fromAsync: fromAsync
|
|
});
|
|
|
|
|
|
/***/ }),
|
|
/* 110 */
|
|
/***/ (function(module, exports, __webpack_require__) {
|
|
|
|
"use strict";
|
|
|
|
var bind = __webpack_require__(111);
|
|
var uncurryThis = __webpack_require__(13);
|
|
var toObject = __webpack_require__(39);
|
|
var isConstructor = __webpack_require__(113);
|
|
var getAsyncIterator = __webpack_require__(114);
|
|
var getIterator = __webpack_require__(119);
|
|
var getIteratorDirect = __webpack_require__(122);
|
|
var getIteratorMethod = __webpack_require__(120);
|
|
var getMethod = __webpack_require__(29);
|
|
var getVirtual = __webpack_require__(80);
|
|
var getBuiltIn = __webpack_require__(23);
|
|
var wellKnownSymbol = __webpack_require__(33);
|
|
var AsyncFromSyncIterator = __webpack_require__(115);
|
|
var toArray = __webpack_require__(123).toArray;
|
|
|
|
var ASYNC_ITERATOR = wellKnownSymbol('asyncIterator');
|
|
var arrayIterator = uncurryThis(getVirtual('Array').values);
|
|
var arrayIteratorNext = uncurryThis(arrayIterator([]).next);
|
|
|
|
var safeArrayIterator = function () {
|
|
return new SafeArrayIterator(this);
|
|
};
|
|
|
|
var SafeArrayIterator = function (O) {
|
|
this.iterator = arrayIterator(O);
|
|
};
|
|
|
|
SafeArrayIterator.prototype.next = function () {
|
|
return arrayIteratorNext(this.iterator);
|
|
};
|
|
|
|
// `Array.fromAsync` method implementation
|
|
// https://github.com/tc39/proposal-array-from-async
|
|
module.exports = function fromAsync(asyncItems /* , mapfn = undefined, thisArg = undefined */) {
|
|
var C = this;
|
|
var argumentsLength = arguments.length;
|
|
var mapfn = argumentsLength > 1 ? arguments[1] : undefined;
|
|
var thisArg = argumentsLength > 2 ? arguments[2] : undefined;
|
|
return new (getBuiltIn('Promise'))(function (resolve) {
|
|
var O = toObject(asyncItems);
|
|
if (mapfn !== undefined) mapfn = bind(mapfn, thisArg);
|
|
var usingAsyncIterator = getMethod(O, ASYNC_ITERATOR);
|
|
var usingSyncIterator = usingAsyncIterator ? undefined : getIteratorMethod(O) || safeArrayIterator;
|
|
var A = isConstructor(C) ? new C() : [];
|
|
var iterator = usingAsyncIterator
|
|
? getAsyncIterator(O, usingAsyncIterator)
|
|
: new AsyncFromSyncIterator(getIteratorDirect(getIterator(O, usingSyncIterator)));
|
|
resolve(toArray(iterator, mapfn, A));
|
|
});
|
|
};
|
|
|
|
|
|
/***/ }),
|
|
/* 111 */
|
|
/***/ (function(module, exports, __webpack_require__) {
|
|
|
|
var uncurryThis = __webpack_require__(112);
|
|
var aCallable = __webpack_require__(30);
|
|
var NATIVE_BIND = __webpack_require__(8);
|
|
|
|
var bind = uncurryThis(uncurryThis.bind);
|
|
|
|
// optional / simple context binding
|
|
module.exports = function (fn, that) {
|
|
aCallable(fn);
|
|
return that === undefined ? fn : NATIVE_BIND ? bind(fn, that) : function (/* ...args */) {
|
|
return fn.apply(that, arguments);
|
|
};
|
|
};
|
|
|
|
|
|
/***/ }),
|
|
/* 112 */
|
|
/***/ (function(module, exports, __webpack_require__) {
|
|
|
|
var classofRaw = __webpack_require__(14);
|
|
var uncurryThis = __webpack_require__(13);
|
|
|
|
module.exports = function (fn) {
|
|
// Nashorn bug:
|
|
// https://github.com/zloirock/core-js/issues/1128
|
|
// https://github.com/zloirock/core-js/issues/1130
|
|
if (classofRaw(fn) === 'Function') return uncurryThis(fn);
|
|
};
|
|
|
|
|
|
/***/ }),
|
|
/* 113 */
|
|
/***/ (function(module, exports, __webpack_require__) {
|
|
|
|
var uncurryThis = __webpack_require__(13);
|
|
var fails = __webpack_require__(6);
|
|
var isCallable = __webpack_require__(20);
|
|
var classof = __webpack_require__(89);
|
|
var getBuiltIn = __webpack_require__(23);
|
|
var inspectSource = __webpack_require__(50);
|
|
|
|
var noop = function () { /* empty */ };
|
|
var empty = [];
|
|
var construct = getBuiltIn('Reflect', 'construct');
|
|
var constructorRegExp = /^\s*(?:class|function)\b/;
|
|
var exec = uncurryThis(constructorRegExp.exec);
|
|
var INCORRECT_TO_STRING = !constructorRegExp.exec(noop);
|
|
|
|
var isConstructorModern = function isConstructor(argument) {
|
|
if (!isCallable(argument)) return false;
|
|
try {
|
|
construct(noop, empty, argument);
|
|
return true;
|
|
} catch (error) {
|
|
return false;
|
|
}
|
|
};
|
|
|
|
var isConstructorLegacy = function isConstructor(argument) {
|
|
if (!isCallable(argument)) return false;
|
|
switch (classof(argument)) {
|
|
case 'AsyncFunction':
|
|
case 'GeneratorFunction':
|
|
case 'AsyncGeneratorFunction': return false;
|
|
}
|
|
try {
|
|
// we can't check .prototype since constructors produced by .bind haven't it
|
|
// `Function#toString` throws on some built-it function in some legacy engines
|
|
// (for example, `DOMQuad` and similar in FF41-)
|
|
return INCORRECT_TO_STRING || !!exec(constructorRegExp, inspectSource(argument));
|
|
} catch (error) {
|
|
return true;
|
|
}
|
|
};
|
|
|
|
isConstructorLegacy.sham = true;
|
|
|
|
// `IsConstructor` abstract operation
|
|
// https://tc39.es/ecma262/#sec-isconstructor
|
|
module.exports = !construct || fails(function () {
|
|
var called;
|
|
return isConstructorModern(isConstructorModern.call)
|
|
|| !isConstructorModern(Object)
|
|
|| !isConstructorModern(function () { called = true; })
|
|
|| called;
|
|
}) ? isConstructorLegacy : isConstructorModern;
|
|
|
|
|
|
/***/ }),
|
|
/* 114 */
|
|
/***/ (function(module, exports, __webpack_require__) {
|
|
|
|
var call = __webpack_require__(7);
|
|
var AsyncFromSyncIterator = __webpack_require__(115);
|
|
var anObject = __webpack_require__(46);
|
|
var getIterator = __webpack_require__(119);
|
|
var getIteratorDirect = __webpack_require__(122);
|
|
var getMethod = __webpack_require__(29);
|
|
var wellKnownSymbol = __webpack_require__(33);
|
|
|
|
var ASYNC_ITERATOR = wellKnownSymbol('asyncIterator');
|
|
|
|
module.exports = function (it, usingIterator) {
|
|
var method = arguments.length < 2 ? getMethod(it, ASYNC_ITERATOR) : usingIterator;
|
|
return method ? anObject(call(method, it)) : new AsyncFromSyncIterator(getIteratorDirect(getIterator(it)));
|
|
};
|
|
|
|
|
|
/***/ }),
|
|
/* 115 */
|
|
/***/ (function(module, exports, __webpack_require__) {
|
|
|
|
"use strict";
|
|
|
|
var call = __webpack_require__(7);
|
|
var anObject = __webpack_require__(46);
|
|
var create = __webpack_require__(74);
|
|
var getMethod = __webpack_require__(29);
|
|
var defineBuiltIns = __webpack_require__(116);
|
|
var InternalStateModule = __webpack_require__(51);
|
|
var getBuiltIn = __webpack_require__(23);
|
|
var AsyncIteratorPrototype = __webpack_require__(117);
|
|
var createIterResultObject = __webpack_require__(118);
|
|
|
|
var Promise = getBuiltIn('Promise');
|
|
|
|
var ASYNC_FROM_SYNC_ITERATOR = 'AsyncFromSyncIterator';
|
|
var setInternalState = InternalStateModule.set;
|
|
var getInternalState = InternalStateModule.getterFor(ASYNC_FROM_SYNC_ITERATOR);
|
|
|
|
var asyncFromSyncIteratorContinuation = function (result, resolve, reject) {
|
|
var done = result.done;
|
|
Promise.resolve(result.value).then(function (value) {
|
|
resolve(createIterResultObject(value, done));
|
|
}, reject);
|
|
};
|
|
|
|
var AsyncFromSyncIterator = function AsyncIterator(iteratorRecord) {
|
|
iteratorRecord.type = ASYNC_FROM_SYNC_ITERATOR;
|
|
setInternalState(this, iteratorRecord);
|
|
};
|
|
|
|
AsyncFromSyncIterator.prototype = defineBuiltIns(create(AsyncIteratorPrototype), {
|
|
next: function next() {
|
|
var state = getInternalState(this);
|
|
return new Promise(function (resolve, reject) {
|
|
var result = anObject(call(state.next, state.iterator));
|
|
asyncFromSyncIteratorContinuation(result, resolve, reject);
|
|
});
|
|
},
|
|
'return': function () {
|
|
var iterator = getInternalState(this).iterator;
|
|
return new Promise(function (resolve, reject) {
|
|
var $return = getMethod(iterator, 'return');
|
|
if ($return === undefined) return resolve(createIterResultObject(undefined, true));
|
|
var result = anObject(call($return, iterator));
|
|
asyncFromSyncIteratorContinuation(result, resolve, reject);
|
|
});
|
|
}
|
|
});
|
|
|
|
module.exports = AsyncFromSyncIterator;
|
|
|
|
|
|
/***/ }),
|
|
/* 116 */
|
|
/***/ (function(module, exports, __webpack_require__) {
|
|
|
|
var defineBuiltIn = __webpack_require__(47);
|
|
|
|
module.exports = function (target, src, options) {
|
|
for (var key in src) defineBuiltIn(target, key, src[key], options);
|
|
return target;
|
|
};
|
|
|
|
|
|
/***/ }),
|
|
/* 117 */
|
|
/***/ (function(module, exports, __webpack_require__) {
|
|
|
|
var global = __webpack_require__(3);
|
|
var shared = __webpack_require__(36);
|
|
var isCallable = __webpack_require__(20);
|
|
var create = __webpack_require__(74);
|
|
var getPrototypeOf = __webpack_require__(95);
|
|
var defineBuiltIn = __webpack_require__(47);
|
|
var wellKnownSymbol = __webpack_require__(33);
|
|
var IS_PURE = __webpack_require__(35);
|
|
|
|
var USE_FUNCTION_CONSTRUCTOR = 'USE_FUNCTION_CONSTRUCTOR';
|
|
var ASYNC_ITERATOR = wellKnownSymbol('asyncIterator');
|
|
var AsyncIterator = global.AsyncIterator;
|
|
var PassedAsyncIteratorPrototype = shared.AsyncIteratorPrototype;
|
|
var AsyncIteratorPrototype, prototype;
|
|
|
|
if (PassedAsyncIteratorPrototype) {
|
|
AsyncIteratorPrototype = PassedAsyncIteratorPrototype;
|
|
} else if (isCallable(AsyncIterator)) {
|
|
AsyncIteratorPrototype = AsyncIterator.prototype;
|
|
} else if (shared[USE_FUNCTION_CONSTRUCTOR] || global[USE_FUNCTION_CONSTRUCTOR]) {
|
|
try {
|
|
// eslint-disable-next-line no-new-func -- we have no alternatives without usage of modern syntax
|
|
prototype = getPrototypeOf(getPrototypeOf(getPrototypeOf(Function('return async function*(){}()')())));
|
|
if (getPrototypeOf(prototype) === Object.prototype) AsyncIteratorPrototype = prototype;
|
|
} catch (error) { /* empty */ }
|
|
}
|
|
|
|
if (!AsyncIteratorPrototype) AsyncIteratorPrototype = {};
|
|
else if (IS_PURE) AsyncIteratorPrototype = create(AsyncIteratorPrototype);
|
|
|
|
if (!isCallable(AsyncIteratorPrototype[ASYNC_ITERATOR])) {
|
|
defineBuiltIn(AsyncIteratorPrototype, ASYNC_ITERATOR, function () {
|
|
return this;
|
|
});
|
|
}
|
|
|
|
module.exports = AsyncIteratorPrototype;
|
|
|
|
|
|
/***/ }),
|
|
/* 118 */
|
|
/***/ (function(module, exports) {
|
|
|
|
// `CreateIterResultObject` abstract operation
|
|
// https://tc39.es/ecma262/#sec-createiterresultobject
|
|
module.exports = function (value, done) {
|
|
return { value: value, done: done };
|
|
};
|
|
|
|
|
|
/***/ }),
|
|
/* 119 */
|
|
/***/ (function(module, exports, __webpack_require__) {
|
|
|
|
var call = __webpack_require__(7);
|
|
var aCallable = __webpack_require__(30);
|
|
var anObject = __webpack_require__(46);
|
|
var tryToString = __webpack_require__(31);
|
|
var getIteratorMethod = __webpack_require__(120);
|
|
|
|
var $TypeError = TypeError;
|
|
|
|
module.exports = function (argument, usingIterator) {
|
|
var iteratorMethod = arguments.length < 2 ? getIteratorMethod(argument) : usingIterator;
|
|
if (aCallable(iteratorMethod)) return anObject(call(iteratorMethod, argument));
|
|
throw $TypeError(tryToString(argument) + ' is not iterable');
|
|
};
|
|
|
|
|
|
/***/ }),
|
|
/* 120 */
|
|
/***/ (function(module, exports, __webpack_require__) {
|
|
|
|
var classof = __webpack_require__(89);
|
|
var getMethod = __webpack_require__(29);
|
|
var isNullOrUndefined = __webpack_require__(16);
|
|
var Iterators = __webpack_require__(121);
|
|
var wellKnownSymbol = __webpack_require__(33);
|
|
|
|
var ITERATOR = wellKnownSymbol('iterator');
|
|
|
|
module.exports = function (it) {
|
|
if (!isNullOrUndefined(it)) return getMethod(it, ITERATOR)
|
|
|| getMethod(it, '@@iterator')
|
|
|| Iterators[classof(it)];
|
|
};
|
|
|
|
|
|
/***/ }),
|
|
/* 121 */
|
|
/***/ (function(module, exports) {
|
|
|
|
module.exports = {};
|
|
|
|
|
|
/***/ }),
|
|
/* 122 */
|
|
/***/ (function(module, exports) {
|
|
|
|
// `GetIteratorDirect(obj)` abstract operation
|
|
// https://tc39.es/proposal-iterator-helpers/#sec-getiteratordirect
|
|
module.exports = function (obj) {
|
|
return {
|
|
iterator: obj,
|
|
next: obj.next,
|
|
done: false
|
|
};
|
|
};
|
|
|
|
|
|
/***/ }),
|
|
/* 123 */
|
|
/***/ (function(module, exports, __webpack_require__) {
|
|
|
|
"use strict";
|
|
|
|
// https://github.com/tc39/proposal-iterator-helpers
|
|
// https://github.com/tc39/proposal-array-from-async
|
|
var call = __webpack_require__(7);
|
|
var aCallable = __webpack_require__(30);
|
|
var anObject = __webpack_require__(46);
|
|
var isObject = __webpack_require__(19);
|
|
var doesNotExceedSafeInteger = __webpack_require__(70);
|
|
var getBuiltIn = __webpack_require__(23);
|
|
var getIteratorDirect = __webpack_require__(122);
|
|
var closeAsyncIteration = __webpack_require__(124);
|
|
|
|
var createMethod = function (TYPE) {
|
|
var IS_TO_ARRAY = TYPE == 0;
|
|
var IS_FOR_EACH = TYPE == 1;
|
|
var IS_EVERY = TYPE == 2;
|
|
var IS_SOME = TYPE == 3;
|
|
return function (object, fn, target) {
|
|
anObject(object);
|
|
var MAPPING = fn !== undefined;
|
|
if (MAPPING || !IS_TO_ARRAY) aCallable(fn);
|
|
var record = getIteratorDirect(object);
|
|
var Promise = getBuiltIn('Promise');
|
|
var iterator = record.iterator;
|
|
var next = record.next;
|
|
var counter = 0;
|
|
|
|
return new Promise(function (resolve, reject) {
|
|
var ifAbruptCloseAsyncIterator = function (error) {
|
|
closeAsyncIteration(iterator, reject, error, reject);
|
|
};
|
|
|
|
var loop = function () {
|
|
try {
|
|
if (MAPPING) try {
|
|
doesNotExceedSafeInteger(counter);
|
|
} catch (error5) { ifAbruptCloseAsyncIterator(error5); }
|
|
Promise.resolve(anObject(call(next, iterator))).then(function (step) {
|
|
try {
|
|
if (anObject(step).done) {
|
|
if (IS_TO_ARRAY) {
|
|
target.length = counter;
|
|
resolve(target);
|
|
} else resolve(IS_SOME ? false : IS_EVERY || undefined);
|
|
} else {
|
|
var value = step.value;
|
|
try {
|
|
if (MAPPING) {
|
|
var result = fn(value, counter);
|
|
|
|
var handler = function ($result) {
|
|
if (IS_FOR_EACH) {
|
|
loop();
|
|
} else if (IS_EVERY) {
|
|
$result ? loop() : closeAsyncIteration(iterator, resolve, false, reject);
|
|
} else if (IS_TO_ARRAY) {
|
|
try {
|
|
target[counter++] = $result;
|
|
loop();
|
|
} catch (error4) { ifAbruptCloseAsyncIterator(error4); }
|
|
} else {
|
|
$result ? closeAsyncIteration(iterator, resolve, IS_SOME || value, reject) : loop();
|
|
}
|
|
};
|
|
|
|
if (isObject(result)) Promise.resolve(result).then(handler, ifAbruptCloseAsyncIterator);
|
|
else handler(result);
|
|
} else {
|
|
target[counter++] = value;
|
|
loop();
|
|
}
|
|
} catch (error3) { ifAbruptCloseAsyncIterator(error3); }
|
|
}
|
|
} catch (error2) { reject(error2); }
|
|
}, reject);
|
|
} catch (error) { reject(error); }
|
|
};
|
|
|
|
loop();
|
|
});
|
|
};
|
|
};
|
|
|
|
module.exports = {
|
|
toArray: createMethod(0),
|
|
forEach: createMethod(1),
|
|
every: createMethod(2),
|
|
some: createMethod(3),
|
|
find: createMethod(4)
|
|
};
|
|
|
|
|
|
/***/ }),
|
|
/* 124 */
|
|
/***/ (function(module, exports, __webpack_require__) {
|
|
|
|
var call = __webpack_require__(7);
|
|
var getBuiltIn = __webpack_require__(23);
|
|
var getMethod = __webpack_require__(29);
|
|
|
|
module.exports = function (iterator, method, argument, reject) {
|
|
try {
|
|
var returnMethod = getMethod(iterator, 'return');
|
|
if (returnMethod) {
|
|
return getBuiltIn('Promise').resolve(call(returnMethod, iterator)).then(function () {
|
|
method(argument);
|
|
}, function (error) {
|
|
reject(error);
|
|
});
|
|
}
|
|
} catch (error2) {
|
|
return reject(error2);
|
|
} method(argument);
|
|
};
|
|
|
|
|
|
/***/ }),
|
|
/* 125 */
|
|
/***/ (function(module, exports, __webpack_require__) {
|
|
|
|
"use strict";
|
|
|
|
// TODO: remove from `core-js@4`
|
|
var $ = __webpack_require__(2);
|
|
var $filterReject = __webpack_require__(126).filterReject;
|
|
var addToUnscopables = __webpack_require__(73);
|
|
|
|
// `Array.prototype.filterOut` method
|
|
// https://github.com/tc39/proposal-array-filtering
|
|
$({ target: 'Array', proto: true, forced: true }, {
|
|
filterOut: function filterOut(callbackfn /* , thisArg */) {
|
|
return $filterReject(this, callbackfn, arguments.length > 1 ? arguments[1] : undefined);
|
|
}
|
|
});
|
|
|
|
addToUnscopables('filterOut');
|
|
|
|
|
|
/***/ }),
|
|
/* 126 */
|
|
/***/ (function(module, exports, __webpack_require__) {
|
|
|
|
var bind = __webpack_require__(111);
|
|
var uncurryThis = __webpack_require__(13);
|
|
var IndexedObject = __webpack_require__(12);
|
|
var toObject = __webpack_require__(39);
|
|
var lengthOfArrayLike = __webpack_require__(63);
|
|
var arraySpeciesCreate = __webpack_require__(127);
|
|
|
|
var push = uncurryThis([].push);
|
|
|
|
// `Array.prototype.{ forEach, map, filter, some, every, find, findIndex, filterReject }` methods implementation
|
|
var createMethod = function (TYPE) {
|
|
var IS_MAP = TYPE == 1;
|
|
var IS_FILTER = TYPE == 2;
|
|
var IS_SOME = TYPE == 3;
|
|
var IS_EVERY = TYPE == 4;
|
|
var IS_FIND_INDEX = TYPE == 6;
|
|
var IS_FILTER_REJECT = TYPE == 7;
|
|
var NO_HOLES = TYPE == 5 || IS_FIND_INDEX;
|
|
return function ($this, callbackfn, that, specificCreate) {
|
|
var O = toObject($this);
|
|
var self = IndexedObject(O);
|
|
var boundFunction = bind(callbackfn, that);
|
|
var length = lengthOfArrayLike(self);
|
|
var index = 0;
|
|
var create = specificCreate || arraySpeciesCreate;
|
|
var target = IS_MAP ? create($this, length) : IS_FILTER || IS_FILTER_REJECT ? create($this, 0) : undefined;
|
|
var value, result;
|
|
for (;length > index; index++) if (NO_HOLES || index in self) {
|
|
value = self[index];
|
|
result = boundFunction(value, index, O);
|
|
if (TYPE) {
|
|
if (IS_MAP) target[index] = result; // map
|
|
else if (result) switch (TYPE) {
|
|
case 3: return true; // some
|
|
case 5: return value; // find
|
|
case 6: return index; // findIndex
|
|
case 2: push(target, value); // filter
|
|
} else switch (TYPE) {
|
|
case 4: return false; // every
|
|
case 7: push(target, value); // filterReject
|
|
}
|
|
}
|
|
}
|
|
return IS_FIND_INDEX ? -1 : IS_SOME || IS_EVERY ? IS_EVERY : target;
|
|
};
|
|
};
|
|
|
|
module.exports = {
|
|
// `Array.prototype.forEach` method
|
|
// https://tc39.es/ecma262/#sec-array.prototype.foreach
|
|
forEach: createMethod(0),
|
|
// `Array.prototype.map` method
|
|
// https://tc39.es/ecma262/#sec-array.prototype.map
|
|
map: createMethod(1),
|
|
// `Array.prototype.filter` method
|
|
// https://tc39.es/ecma262/#sec-array.prototype.filter
|
|
filter: createMethod(2),
|
|
// `Array.prototype.some` method
|
|
// https://tc39.es/ecma262/#sec-array.prototype.some
|
|
some: createMethod(3),
|
|
// `Array.prototype.every` method
|
|
// https://tc39.es/ecma262/#sec-array.prototype.every
|
|
every: createMethod(4),
|
|
// `Array.prototype.find` method
|
|
// https://tc39.es/ecma262/#sec-array.prototype.find
|
|
find: createMethod(5),
|
|
// `Array.prototype.findIndex` method
|
|
// https://tc39.es/ecma262/#sec-array.prototype.findIndex
|
|
findIndex: createMethod(6),
|
|
// `Array.prototype.filterReject` method
|
|
// https://github.com/tc39/proposal-array-filtering
|
|
filterReject: createMethod(7)
|
|
};
|
|
|
|
|
|
/***/ }),
|
|
/* 127 */
|
|
/***/ (function(module, exports, __webpack_require__) {
|
|
|
|
var arraySpeciesConstructor = __webpack_require__(128);
|
|
|
|
// `ArraySpeciesCreate` abstract operation
|
|
// https://tc39.es/ecma262/#sec-arrayspeciescreate
|
|
module.exports = function (originalArray, length) {
|
|
return new (arraySpeciesConstructor(originalArray))(length === 0 ? 0 : length);
|
|
};
|
|
|
|
|
|
/***/ }),
|
|
/* 128 */
|
|
/***/ (function(module, exports, __webpack_require__) {
|
|
|
|
var isArray = __webpack_require__(69);
|
|
var isConstructor = __webpack_require__(113);
|
|
var isObject = __webpack_require__(19);
|
|
var wellKnownSymbol = __webpack_require__(33);
|
|
|
|
var SPECIES = wellKnownSymbol('species');
|
|
var $Array = Array;
|
|
|
|
// a part of `ArraySpeciesCreate` abstract operation
|
|
// https://tc39.es/ecma262/#sec-arrayspeciescreate
|
|
module.exports = function (originalArray) {
|
|
var C;
|
|
if (isArray(originalArray)) {
|
|
C = originalArray.constructor;
|
|
// cross-realm fallback
|
|
if (isConstructor(C) && (C === $Array || isArray(C.prototype))) C = undefined;
|
|
else if (isObject(C)) {
|
|
C = C[SPECIES];
|
|
if (C === null) C = undefined;
|
|
}
|
|
} return C === undefined ? $Array : C;
|
|
};
|
|
|
|
|
|
/***/ }),
|
|
/* 129 */
|
|
/***/ (function(module, exports, __webpack_require__) {
|
|
|
|
"use strict";
|
|
|
|
var $ = __webpack_require__(2);
|
|
var $filterReject = __webpack_require__(126).filterReject;
|
|
var addToUnscopables = __webpack_require__(73);
|
|
|
|
// `Array.prototype.filterReject` method
|
|
// https://github.com/tc39/proposal-array-filtering
|
|
$({ target: 'Array', proto: true, forced: true }, {
|
|
filterReject: function filterReject(callbackfn /* , thisArg */) {
|
|
return $filterReject(this, callbackfn, arguments.length > 1 ? arguments[1] : undefined);
|
|
}
|
|
});
|
|
|
|
addToUnscopables('filterReject');
|
|
|
|
|
|
/***/ }),
|
|
/* 130 */
|
|
/***/ (function(module, exports, __webpack_require__) {
|
|
|
|
"use strict";
|
|
|
|
var $ = __webpack_require__(2);
|
|
var $group = __webpack_require__(131);
|
|
var addToUnscopables = __webpack_require__(73);
|
|
|
|
// `Array.prototype.group` method
|
|
// https://github.com/tc39/proposal-array-grouping
|
|
$({ target: 'Array', proto: true }, {
|
|
group: function group(callbackfn /* , thisArg */) {
|
|
var thisArg = arguments.length > 1 ? arguments[1] : undefined;
|
|
return $group(this, callbackfn, thisArg);
|
|
}
|
|
});
|
|
|
|
addToUnscopables('group');
|
|
|
|
|
|
/***/ }),
|
|
/* 131 */
|
|
/***/ (function(module, exports, __webpack_require__) {
|
|
|
|
var bind = __webpack_require__(111);
|
|
var uncurryThis = __webpack_require__(13);
|
|
var IndexedObject = __webpack_require__(12);
|
|
var toObject = __webpack_require__(39);
|
|
var toPropertyKey = __webpack_require__(17);
|
|
var lengthOfArrayLike = __webpack_require__(63);
|
|
var objectCreate = __webpack_require__(74);
|
|
var arrayFromConstructorAndList = __webpack_require__(79);
|
|
|
|
var $Array = Array;
|
|
var push = uncurryThis([].push);
|
|
|
|
module.exports = function ($this, callbackfn, that, specificConstructor) {
|
|
var O = toObject($this);
|
|
var self = IndexedObject(O);
|
|
var boundFunction = bind(callbackfn, that);
|
|
var target = objectCreate(null);
|
|
var length = lengthOfArrayLike(self);
|
|
var index = 0;
|
|
var Constructor, key, value;
|
|
for (;length > index; index++) {
|
|
value = self[index];
|
|
key = toPropertyKey(boundFunction(value, index, O));
|
|
// in some IE versions, `hasOwnProperty` returns incorrect result on integer keys
|
|
// but since it's a `null` prototype object, we can safely use `in`
|
|
if (key in target) push(target[key], value);
|
|
else target[key] = [value];
|
|
}
|
|
// TODO: Remove this block from `core-js@4`
|
|
if (specificConstructor) {
|
|
Constructor = specificConstructor(O);
|
|
if (Constructor !== $Array) {
|
|
for (key in target) target[key] = arrayFromConstructorAndList(Constructor, target[key]);
|
|
}
|
|
} return target;
|
|
};
|
|
|
|
|
|
/***/ }),
|
|
/* 132 */
|
|
/***/ (function(module, exports, __webpack_require__) {
|
|
|
|
"use strict";
|
|
|
|
// TODO: Remove from `core-js@4`
|
|
var $ = __webpack_require__(2);
|
|
var $group = __webpack_require__(131);
|
|
var arrayMethodIsStrict = __webpack_require__(133);
|
|
var addToUnscopables = __webpack_require__(73);
|
|
|
|
// `Array.prototype.groupBy` method
|
|
// https://github.com/tc39/proposal-array-grouping
|
|
// https://bugs.webkit.org/show_bug.cgi?id=236541
|
|
$({ target: 'Array', proto: true, forced: !arrayMethodIsStrict('groupBy') }, {
|
|
groupBy: function groupBy(callbackfn /* , thisArg */) {
|
|
var thisArg = arguments.length > 1 ? arguments[1] : undefined;
|
|
return $group(this, callbackfn, thisArg);
|
|
}
|
|
});
|
|
|
|
addToUnscopables('groupBy');
|
|
|
|
|
|
/***/ }),
|
|
/* 133 */
|
|
/***/ (function(module, exports, __webpack_require__) {
|
|
|
|
"use strict";
|
|
|
|
var fails = __webpack_require__(6);
|
|
|
|
module.exports = function (METHOD_NAME, argument) {
|
|
var method = [][METHOD_NAME];
|
|
return !!method && fails(function () {
|
|
// eslint-disable-next-line no-useless-call -- required for testing
|
|
method.call(null, argument || function () { return 1; }, 1);
|
|
});
|
|
};
|
|
|
|
|
|
/***/ }),
|
|
/* 134 */
|
|
/***/ (function(module, exports, __webpack_require__) {
|
|
|
|
// TODO: Remove from `core-js@4`
|
|
var $ = __webpack_require__(2);
|
|
var arrayMethodIsStrict = __webpack_require__(133);
|
|
var addToUnscopables = __webpack_require__(73);
|
|
var $groupToMap = __webpack_require__(135);
|
|
var IS_PURE = __webpack_require__(35);
|
|
|
|
// `Array.prototype.groupByToMap` method
|
|
// https://github.com/tc39/proposal-array-grouping
|
|
// https://bugs.webkit.org/show_bug.cgi?id=236541
|
|
$({ target: 'Array', proto: true, name: 'groupToMap', forced: IS_PURE || !arrayMethodIsStrict('groupByToMap') }, {
|
|
groupByToMap: $groupToMap
|
|
});
|
|
|
|
addToUnscopables('groupByToMap');
|
|
|
|
|
|
/***/ }),
|
|
/* 135 */
|
|
/***/ (function(module, exports, __webpack_require__) {
|
|
|
|
"use strict";
|
|
|
|
var bind = __webpack_require__(111);
|
|
var uncurryThis = __webpack_require__(13);
|
|
var IndexedObject = __webpack_require__(12);
|
|
var toObject = __webpack_require__(39);
|
|
var lengthOfArrayLike = __webpack_require__(63);
|
|
var MapHelpers = __webpack_require__(136);
|
|
|
|
var Map = MapHelpers.Map;
|
|
var mapGet = MapHelpers.get;
|
|
var mapHas = MapHelpers.has;
|
|
var mapSet = MapHelpers.set;
|
|
var push = uncurryThis([].push);
|
|
|
|
// `Array.prototype.groupToMap` method
|
|
// https://github.com/tc39/proposal-array-grouping
|
|
module.exports = function groupToMap(callbackfn /* , thisArg */) {
|
|
var O = toObject(this);
|
|
var self = IndexedObject(O);
|
|
var boundFunction = bind(callbackfn, arguments.length > 1 ? arguments[1] : undefined);
|
|
var map = new Map();
|
|
var length = lengthOfArrayLike(self);
|
|
var index = 0;
|
|
var key, value;
|
|
for (;length > index; index++) {
|
|
value = self[index];
|
|
key = boundFunction(value, index, O);
|
|
if (mapHas(map, key)) push(mapGet(map, key), value);
|
|
else mapSet(map, key, [value]);
|
|
} return map;
|
|
};
|
|
|
|
|
|
/***/ }),
|
|
/* 136 */
|
|
/***/ (function(module, exports, __webpack_require__) {
|
|
|
|
var uncurryThis = __webpack_require__(13);
|
|
|
|
// eslint-disable-next-line es/no-map -- safe
|
|
var MapPrototype = Map.prototype;
|
|
|
|
module.exports = {
|
|
// eslint-disable-next-line es/no-map -- safe
|
|
Map: Map,
|
|
set: uncurryThis(MapPrototype.set),
|
|
get: uncurryThis(MapPrototype.get),
|
|
has: uncurryThis(MapPrototype.has),
|
|
remove: uncurryThis(MapPrototype['delete']),
|
|
proto: MapPrototype
|
|
};
|
|
|
|
|
|
/***/ }),
|
|
/* 137 */
|
|
/***/ (function(module, exports, __webpack_require__) {
|
|
|
|
var $ = __webpack_require__(2);
|
|
var addToUnscopables = __webpack_require__(73);
|
|
var $groupToMap = __webpack_require__(135);
|
|
var IS_PURE = __webpack_require__(35);
|
|
|
|
// `Array.prototype.groupToMap` method
|
|
// https://github.com/tc39/proposal-array-grouping
|
|
$({ target: 'Array', proto: true, forced: IS_PURE }, {
|
|
groupToMap: $groupToMap
|
|
});
|
|
|
|
addToUnscopables('groupToMap');
|
|
|
|
|
|
/***/ }),
|
|
/* 138 */
|
|
/***/ (function(module, exports, __webpack_require__) {
|
|
|
|
var $ = __webpack_require__(2);
|
|
var isArray = __webpack_require__(69);
|
|
|
|
// eslint-disable-next-line es/no-object-isfrozen -- safe
|
|
var isFrozen = Object.isFrozen;
|
|
|
|
var isFrozenStringArray = function (array, allowUndefined) {
|
|
if (!isFrozen || !isArray(array) || !isFrozen(array)) return false;
|
|
var index = 0;
|
|
var length = array.length;
|
|
var element;
|
|
while (index < length) {
|
|
element = array[index++];
|
|
if (!(typeof element == 'string' || (allowUndefined && element === undefined))) {
|
|
return false;
|
|
}
|
|
} return length !== 0;
|
|
};
|
|
|
|
// `Array.isTemplateObject` method
|
|
// https://github.com/tc39/proposal-array-is-template-object
|
|
$({ target: 'Array', stat: true, sham: true, forced: true }, {
|
|
isTemplateObject: function isTemplateObject(value) {
|
|
if (!isFrozenStringArray(value, true)) return false;
|
|
var raw = value.raw;
|
|
return raw.length === value.length && isFrozenStringArray(raw, false);
|
|
}
|
|
});
|
|
|
|
|
|
/***/ }),
|
|
/* 139 */
|
|
/***/ (function(module, exports, __webpack_require__) {
|
|
|
|
"use strict";
|
|
|
|
// TODO: Remove from `core-js@4`
|
|
var DESCRIPTORS = __webpack_require__(5);
|
|
var addToUnscopables = __webpack_require__(73);
|
|
var toObject = __webpack_require__(39);
|
|
var lengthOfArrayLike = __webpack_require__(63);
|
|
var defineBuiltInAccessor = __webpack_require__(85);
|
|
|
|
// `Array.prototype.lastIndex` getter
|
|
// https://github.com/keithamus/proposal-array-last
|
|
if (DESCRIPTORS) {
|
|
defineBuiltInAccessor(Array.prototype, 'lastIndex', {
|
|
configurable: true,
|
|
get: function lastIndex() {
|
|
var O = toObject(this);
|
|
var len = lengthOfArrayLike(O);
|
|
return len == 0 ? 0 : len - 1;
|
|
}
|
|
});
|
|
|
|
addToUnscopables('lastIndex');
|
|
}
|
|
|
|
|
|
/***/ }),
|
|
/* 140 */
|
|
/***/ (function(module, exports, __webpack_require__) {
|
|
|
|
"use strict";
|
|
|
|
// TODO: Remove from `core-js@4`
|
|
var DESCRIPTORS = __webpack_require__(5);
|
|
var addToUnscopables = __webpack_require__(73);
|
|
var toObject = __webpack_require__(39);
|
|
var lengthOfArrayLike = __webpack_require__(63);
|
|
var defineBuiltInAccessor = __webpack_require__(85);
|
|
|
|
// `Array.prototype.lastIndex` accessor
|
|
// https://github.com/keithamus/proposal-array-last
|
|
if (DESCRIPTORS) {
|
|
defineBuiltInAccessor(Array.prototype, 'lastItem', {
|
|
configurable: true,
|
|
get: function lastItem() {
|
|
var O = toObject(this);
|
|
var len = lengthOfArrayLike(O);
|
|
return len == 0 ? undefined : O[len - 1];
|
|
},
|
|
set: function lastItem(value) {
|
|
var O = toObject(this);
|
|
var len = lengthOfArrayLike(O);
|
|
return O[len == 0 ? 0 : len - 1] = value;
|
|
}
|
|
});
|
|
|
|
addToUnscopables('lastItem');
|
|
}
|
|
|
|
|
|
/***/ }),
|
|
/* 141 */
|
|
/***/ (function(module, exports, __webpack_require__) {
|
|
|
|
"use strict";
|
|
|
|
var $ = __webpack_require__(2);
|
|
var addToUnscopables = __webpack_require__(73);
|
|
var uniqueBy = __webpack_require__(142);
|
|
|
|
// `Array.prototype.uniqueBy` method
|
|
// https://github.com/tc39/proposal-array-unique
|
|
$({ target: 'Array', proto: true, forced: true }, {
|
|
uniqueBy: uniqueBy
|
|
});
|
|
|
|
addToUnscopables('uniqueBy');
|
|
|
|
|
|
/***/ }),
|
|
/* 142 */
|
|
/***/ (function(module, exports, __webpack_require__) {
|
|
|
|
"use strict";
|
|
|
|
var uncurryThis = __webpack_require__(13);
|
|
var aCallable = __webpack_require__(30);
|
|
var isNullOrUndefined = __webpack_require__(16);
|
|
var lengthOfArrayLike = __webpack_require__(63);
|
|
var toObject = __webpack_require__(39);
|
|
var MapHelpers = __webpack_require__(136);
|
|
var iterate = __webpack_require__(143);
|
|
|
|
var Map = MapHelpers.Map;
|
|
var mapHas = MapHelpers.has;
|
|
var mapSet = MapHelpers.set;
|
|
var push = uncurryThis([].push);
|
|
|
|
// `Array.prototype.uniqueBy` method
|
|
// https://github.com/tc39/proposal-array-unique
|
|
module.exports = function uniqueBy(resolver) {
|
|
var that = toObject(this);
|
|
var length = lengthOfArrayLike(that);
|
|
var result = [];
|
|
var map = new Map();
|
|
var resolverFunction = !isNullOrUndefined(resolver) ? aCallable(resolver) : function (value) {
|
|
return value;
|
|
};
|
|
var index, item, key;
|
|
for (index = 0; index < length; index++) {
|
|
item = that[index];
|
|
key = resolverFunction(item);
|
|
if (!mapHas(map, key)) mapSet(map, key, item);
|
|
}
|
|
iterate(map, function (value) {
|
|
push(result, value);
|
|
});
|
|
return result;
|
|
};
|
|
|
|
|
|
/***/ }),
|
|
/* 143 */
|
|
/***/ (function(module, exports, __webpack_require__) {
|
|
|
|
var uncurryThis = __webpack_require__(13);
|
|
var iterateSimple = __webpack_require__(144);
|
|
var MapHelpers = __webpack_require__(136);
|
|
|
|
var Map = MapHelpers.Map;
|
|
var MapPrototype = MapHelpers.proto;
|
|
var forEach = uncurryThis(MapPrototype.forEach);
|
|
var entries = uncurryThis(MapPrototype.entries);
|
|
var next = entries(new Map()).next;
|
|
|
|
module.exports = function (map, fn, interruptible) {
|
|
return interruptible ? iterateSimple(entries(map), function (entry) {
|
|
return fn(entry[1], entry[0]);
|
|
}, next) : forEach(map, fn);
|
|
};
|
|
|
|
|
|
/***/ }),
|
|
/* 144 */
|
|
/***/ (function(module, exports, __webpack_require__) {
|
|
|
|
var call = __webpack_require__(7);
|
|
|
|
module.exports = function (iterator, fn, $next) {
|
|
var next = $next || iterator.next;
|
|
var step, result;
|
|
while (!(step = call(next, iterator)).done) {
|
|
result = fn(step.value);
|
|
if (result !== undefined) return result;
|
|
}
|
|
};
|
|
|
|
|
|
/***/ }),
|
|
/* 145 */
|
|
/***/ (function(module, exports, __webpack_require__) {
|
|
|
|
"use strict";
|
|
|
|
var DESCRIPTORS = __webpack_require__(5);
|
|
var defineBuiltInAccessor = __webpack_require__(85);
|
|
var isDetached = __webpack_require__(146);
|
|
|
|
var ArrayBufferPrototype = ArrayBuffer.prototype;
|
|
|
|
if (DESCRIPTORS && !('detached' in ArrayBufferPrototype)) {
|
|
defineBuiltInAccessor(ArrayBufferPrototype, 'detached', {
|
|
configurable: true,
|
|
get: function detached() {
|
|
return isDetached(this);
|
|
}
|
|
});
|
|
}
|
|
|
|
|
|
/***/ }),
|
|
/* 146 */
|
|
/***/ (function(module, exports, __webpack_require__) {
|
|
|
|
var uncurryThis = __webpack_require__(13);
|
|
var arrayBufferByteLength = __webpack_require__(147);
|
|
|
|
var slice = uncurryThis(ArrayBuffer.prototype.slice);
|
|
|
|
module.exports = function (O) {
|
|
if (arrayBufferByteLength(O) !== 0) return false;
|
|
try {
|
|
slice(O, 0, 0);
|
|
return false;
|
|
} catch (error) {
|
|
return true;
|
|
}
|
|
};
|
|
|
|
|
|
/***/ }),
|
|
/* 147 */
|
|
/***/ (function(module, exports, __webpack_require__) {
|
|
|
|
var uncurryThisAccessor = __webpack_require__(98);
|
|
var classof = __webpack_require__(14);
|
|
|
|
var $TypeError = TypeError;
|
|
|
|
// Includes
|
|
// - Perform ? RequireInternalSlot(O, [[ArrayBufferData]]).
|
|
// - If IsSharedArrayBuffer(O) is true, throw a TypeError exception.
|
|
module.exports = uncurryThisAccessor(ArrayBuffer.prototype, 'byteLength', 'get') || function (O) {
|
|
if (classof(O) != 'ArrayBuffer') throw $TypeError('ArrayBuffer expected');
|
|
return O.byteLength;
|
|
};
|
|
|
|
|
|
/***/ }),
|
|
/* 148 */
|
|
/***/ (function(module, exports, __webpack_require__) {
|
|
|
|
"use strict";
|
|
|
|
var $ = __webpack_require__(2);
|
|
var $transfer = __webpack_require__(149);
|
|
|
|
// `ArrayBuffer.prototype.transfer` method
|
|
// https://tc39.es/proposal-arraybuffer-transfer/#sec-arraybuffer.prototype.transfer
|
|
if ($transfer) $({ target: 'ArrayBuffer', proto: true }, {
|
|
transfer: function transfer() {
|
|
return $transfer(this, arguments.length ? arguments[0] : undefined, true);
|
|
}
|
|
});
|
|
|
|
|
|
/***/ }),
|
|
/* 149 */
|
|
/***/ (function(module, exports, __webpack_require__) {
|
|
|
|
var global = __webpack_require__(3);
|
|
var uncurryThis = __webpack_require__(13);
|
|
var uncurryThisAccessor = __webpack_require__(98);
|
|
var toIndex = __webpack_require__(150);
|
|
var isDetached = __webpack_require__(146);
|
|
var arrayBufferByteLength = __webpack_require__(147);
|
|
var PROPER_TRANSFER = __webpack_require__(151);
|
|
|
|
var TypeError = global.TypeError;
|
|
var structuredClone = global.structuredClone;
|
|
var ArrayBuffer = global.ArrayBuffer;
|
|
var DataView = global.DataView;
|
|
var min = Math.min;
|
|
var ArrayBufferPrototype = ArrayBuffer.prototype;
|
|
var DataViewPrototype = DataView.prototype;
|
|
var slice = uncurryThis(ArrayBufferPrototype.slice);
|
|
var isResizable = uncurryThisAccessor(ArrayBufferPrototype, 'resizable', 'get');
|
|
var maxByteLength = uncurryThisAccessor(ArrayBufferPrototype, 'maxByteLength', 'get');
|
|
var getInt8 = uncurryThis(DataViewPrototype.getInt8);
|
|
var setInt8 = uncurryThis(DataViewPrototype.setInt8);
|
|
|
|
module.exports = PROPER_TRANSFER && function (arrayBuffer, newLength, preserveResizability) {
|
|
var byteLength = arrayBufferByteLength(arrayBuffer);
|
|
var newByteLength = newLength === undefined ? byteLength : toIndex(newLength);
|
|
var fixedLength = !isResizable || !isResizable(arrayBuffer);
|
|
if (isDetached(arrayBuffer)) throw TypeError('ArrayBuffer is detached');
|
|
var newBuffer = structuredClone(arrayBuffer, { transfer: [arrayBuffer] });
|
|
if (byteLength == newByteLength && (preserveResizability || fixedLength)) return newBuffer;
|
|
if (byteLength >= newByteLength && (!preserveResizability || fixedLength)) return slice(newBuffer, 0, newByteLength);
|
|
var options = (preserveResizability && !fixedLength) && maxByteLength ? { maxByteLength: maxByteLength(newBuffer) } : undefined;
|
|
var newNewBuffer = new ArrayBuffer(newByteLength, options);
|
|
var a = new DataView(newBuffer);
|
|
var b = new DataView(newNewBuffer);
|
|
var copyLength = min(newByteLength, byteLength);
|
|
for (var i = 0; i < copyLength; i++) setInt8(b, i, getInt8(a, i));
|
|
return newNewBuffer;
|
|
};
|
|
|
|
|
|
/***/ }),
|
|
/* 150 */
|
|
/***/ (function(module, exports, __webpack_require__) {
|
|
|
|
var toIntegerOrInfinity = __webpack_require__(61);
|
|
var toLength = __webpack_require__(64);
|
|
|
|
var $RangeError = RangeError;
|
|
|
|
// `ToIndex` abstract operation
|
|
// https://tc39.es/ecma262/#sec-toindex
|
|
module.exports = function (it) {
|
|
if (it === undefined) return 0;
|
|
var number = toIntegerOrInfinity(it);
|
|
var length = toLength(number);
|
|
if (number !== length) throw $RangeError('Wrong length or index');
|
|
return length;
|
|
};
|
|
|
|
|
|
/***/ }),
|
|
/* 151 */
|
|
/***/ (function(module, exports, __webpack_require__) {
|
|
|
|
var global = __webpack_require__(3);
|
|
var fails = __webpack_require__(6);
|
|
var V8 = __webpack_require__(27);
|
|
var IS_BROWSER = __webpack_require__(152);
|
|
var IS_DENO = __webpack_require__(153);
|
|
var IS_NODE = __webpack_require__(154);
|
|
|
|
var structuredClone = global.structuredClone;
|
|
|
|
module.exports = !!structuredClone && !fails(function () {
|
|
// prevent V8 ArrayBufferDetaching protector cell invalidation and performance degradation
|
|
// https://github.com/zloirock/core-js/issues/679
|
|
if ((IS_DENO && V8 > 92) || (IS_NODE && V8 > 94) || (IS_BROWSER && V8 > 97)) return false;
|
|
var buffer = new ArrayBuffer(8);
|
|
var clone = structuredClone(buffer, { transfer: [buffer] });
|
|
return buffer.byteLength != 0 || clone.byteLength != 8;
|
|
});
|
|
|
|
|
|
/***/ }),
|
|
/* 152 */
|
|
/***/ (function(module, exports, __webpack_require__) {
|
|
|
|
var IS_DENO = __webpack_require__(153);
|
|
var IS_NODE = __webpack_require__(154);
|
|
|
|
module.exports = !IS_DENO && !IS_NODE
|
|
&& typeof window == 'object'
|
|
&& typeof document == 'object';
|
|
|
|
|
|
/***/ }),
|
|
/* 153 */
|
|
/***/ (function(module, exports) {
|
|
|
|
/* global Deno -- Deno case */
|
|
module.exports = typeof Deno == 'object' && Deno && typeof Deno.version == 'object';
|
|
|
|
|
|
/***/ }),
|
|
/* 154 */
|
|
/***/ (function(module, exports, __webpack_require__) {
|
|
|
|
var classof = __webpack_require__(14);
|
|
|
|
module.exports = typeof process != 'undefined' && classof(process) == 'process';
|
|
|
|
|
|
/***/ }),
|
|
/* 155 */
|
|
/***/ (function(module, exports, __webpack_require__) {
|
|
|
|
"use strict";
|
|
|
|
var $ = __webpack_require__(2);
|
|
var $transfer = __webpack_require__(149);
|
|
|
|
// `ArrayBuffer.prototype.transferToFixedLength` method
|
|
// https://tc39.es/proposal-arraybuffer-transfer/#sec-arraybuffer.prototype.transfertofixedlength
|
|
if ($transfer) $({ target: 'ArrayBuffer', proto: true }, {
|
|
transferToFixedLength: function transferToFixedLength() {
|
|
return $transfer(this, arguments.length ? arguments[0] : undefined, false);
|
|
}
|
|
});
|
|
|
|
|
|
/***/ }),
|
|
/* 156 */
|
|
/***/ (function(module, exports, __webpack_require__) {
|
|
|
|
"use strict";
|
|
|
|
// https://github.com/tc39/proposal-async-explicit-resource-management
|
|
var $ = __webpack_require__(2);
|
|
var DESCRIPTORS = __webpack_require__(5);
|
|
var getBuiltIn = __webpack_require__(23);
|
|
var aCallable = __webpack_require__(30);
|
|
var anInstance = __webpack_require__(157);
|
|
var defineBuiltIn = __webpack_require__(47);
|
|
var defineBuiltIns = __webpack_require__(116);
|
|
var defineBuiltInAccessor = __webpack_require__(85);
|
|
var wellKnownSymbol = __webpack_require__(33);
|
|
var InternalStateModule = __webpack_require__(51);
|
|
var addDisposableResource = __webpack_require__(158);
|
|
|
|
var Promise = getBuiltIn('Promise');
|
|
var SuppressedError = getBuiltIn('SuppressedError');
|
|
var $ReferenceError = ReferenceError;
|
|
|
|
var ASYNC_DISPOSE = wellKnownSymbol('asyncDispose');
|
|
var TO_STRING_TAG = wellKnownSymbol('toStringTag');
|
|
|
|
var ASYNC_DISPOSABLE_STACK = 'AsyncDisposableStack';
|
|
var setInternalState = InternalStateModule.set;
|
|
var getAsyncDisposableStackInternalState = InternalStateModule.getterFor(ASYNC_DISPOSABLE_STACK);
|
|
|
|
var HINT = 'async-dispose';
|
|
var DISPOSED = 'disposed';
|
|
var PENDING = 'pending';
|
|
|
|
var getPendingAsyncDisposableStackInternalState = function (stack) {
|
|
var internalState = getAsyncDisposableStackInternalState(stack);
|
|
if (internalState.state == DISPOSED) throw $ReferenceError(ASYNC_DISPOSABLE_STACK + ' already disposed');
|
|
return internalState;
|
|
};
|
|
|
|
var $AsyncDisposableStack = function AsyncDisposableStack() {
|
|
setInternalState(anInstance(this, AsyncDisposableStackPrototype), {
|
|
type: ASYNC_DISPOSABLE_STACK,
|
|
state: PENDING,
|
|
stack: []
|
|
});
|
|
|
|
if (!DESCRIPTORS) this.disposed = false;
|
|
};
|
|
|
|
var AsyncDisposableStackPrototype = $AsyncDisposableStack.prototype;
|
|
|
|
defineBuiltIns(AsyncDisposableStackPrototype, {
|
|
disposeAsync: function disposeAsync() {
|
|
var asyncDisposableStack = this;
|
|
return new Promise(function (resolve, reject) {
|
|
var internalState = getAsyncDisposableStackInternalState(asyncDisposableStack);
|
|
if (internalState.state == DISPOSED) return resolve(undefined);
|
|
internalState.state = DISPOSED;
|
|
if (!DESCRIPTORS) asyncDisposableStack.disposed = true;
|
|
var stack = internalState.stack;
|
|
var i = stack.length;
|
|
var thrown = false;
|
|
var suppressed;
|
|
|
|
var handleError = function (result) {
|
|
if (thrown) {
|
|
suppressed = new SuppressedError(result, suppressed);
|
|
} else {
|
|
thrown = true;
|
|
suppressed = result;
|
|
}
|
|
|
|
loop();
|
|
};
|
|
|
|
var loop = function () {
|
|
if (i) {
|
|
var disposeMethod = stack[--i];
|
|
stack[i] = null;
|
|
try {
|
|
Promise.resolve(disposeMethod()).then(loop, handleError);
|
|
} catch (error) {
|
|
handleError(error);
|
|
}
|
|
} else {
|
|
internalState.stack = null;
|
|
thrown ? reject(suppressed) : resolve(undefined);
|
|
}
|
|
};
|
|
|
|
loop();
|
|
});
|
|
},
|
|
use: function use(value) {
|
|
addDisposableResource(getPendingAsyncDisposableStackInternalState(this), value, HINT);
|
|
return value;
|
|
},
|
|
adopt: function adopt(value, onDispose) {
|
|
var internalState = getPendingAsyncDisposableStackInternalState(this);
|
|
aCallable(onDispose);
|
|
addDisposableResource(internalState, undefined, HINT, function () {
|
|
return onDispose(value);
|
|
});
|
|
return value;
|
|
},
|
|
defer: function defer(onDispose) {
|
|
var internalState = getPendingAsyncDisposableStackInternalState(this);
|
|
aCallable(onDispose);
|
|
addDisposableResource(internalState, undefined, HINT, onDispose);
|
|
},
|
|
move: function move() {
|
|
var internalState = getPendingAsyncDisposableStackInternalState(this);
|
|
var newAsyncDisposableStack = new $AsyncDisposableStack();
|
|
getAsyncDisposableStackInternalState(newAsyncDisposableStack).stack = internalState.stack;
|
|
internalState.stack = [];
|
|
internalState.state = DISPOSED;
|
|
if (!DESCRIPTORS) this.disposed = true;
|
|
return newAsyncDisposableStack;
|
|
}
|
|
});
|
|
|
|
if (DESCRIPTORS) defineBuiltInAccessor(AsyncDisposableStackPrototype, 'disposed', {
|
|
configurable: true,
|
|
get: function disposed() {
|
|
return getAsyncDisposableStackInternalState(this).state == DISPOSED;
|
|
}
|
|
});
|
|
|
|
defineBuiltIn(AsyncDisposableStackPrototype, ASYNC_DISPOSE, AsyncDisposableStackPrototype.disposeAsync, { name: 'disposeAsync' });
|
|
defineBuiltIn(AsyncDisposableStackPrototype, TO_STRING_TAG, ASYNC_DISPOSABLE_STACK, { nonWritable: true });
|
|
|
|
$({ global: true, constructor: true, forced: true }, {
|
|
AsyncDisposableStack: $AsyncDisposableStack
|
|
});
|
|
|
|
|
|
/***/ }),
|
|
/* 157 */
|
|
/***/ (function(module, exports, __webpack_require__) {
|
|
|
|
var isPrototypeOf = __webpack_require__(24);
|
|
|
|
var $TypeError = TypeError;
|
|
|
|
module.exports = function (it, Prototype) {
|
|
if (isPrototypeOf(Prototype, it)) return it;
|
|
throw $TypeError('Incorrect invocation');
|
|
};
|
|
|
|
|
|
/***/ }),
|
|
/* 158 */
|
|
/***/ (function(module, exports, __webpack_require__) {
|
|
|
|
var uncurryThis = __webpack_require__(13);
|
|
var bind = __webpack_require__(111);
|
|
var anObject = __webpack_require__(46);
|
|
var isNullOrUndefined = __webpack_require__(16);
|
|
var getMethod = __webpack_require__(29);
|
|
var wellKnownSymbol = __webpack_require__(33);
|
|
|
|
var ASYNC_DISPOSE = wellKnownSymbol('asyncDispose');
|
|
var DISPOSE = wellKnownSymbol('dispose');
|
|
|
|
var push = uncurryThis([].push);
|
|
|
|
var getDisposeMethod = function (V, hint) {
|
|
if (hint == 'async-dispose') {
|
|
return getMethod(V, ASYNC_DISPOSE) || getMethod(V, DISPOSE);
|
|
} return getMethod(V, DISPOSE);
|
|
};
|
|
|
|
// `CreateDisposableResource` abstract operation
|
|
// https://tc39.es/proposal-explicit-resource-management/#sec-createdisposableresource
|
|
var createDisposableResource = function (V, hint, method) {
|
|
return bind(method || getDisposeMethod(V, hint), V);
|
|
};
|
|
|
|
// `AddDisposableResource` abstract operation
|
|
// https://tc39.es/proposal-explicit-resource-management/#sec-adddisposableresource-disposable-v-hint-disposemethod
|
|
module.exports = function (disposable, V, hint, method) {
|
|
var resource;
|
|
if (!method) {
|
|
if (isNullOrUndefined(V)) return;
|
|
resource = createDisposableResource(anObject(V), hint);
|
|
} else {
|
|
resource = createDisposableResource(undefined, hint, method);
|
|
}
|
|
|
|
push(disposable.stack, resource);
|
|
};
|
|
|
|
|
|
/***/ }),
|
|
/* 159 */
|
|
/***/ (function(module, exports, __webpack_require__) {
|
|
|
|
"use strict";
|
|
|
|
var $ = __webpack_require__(2);
|
|
var anInstance = __webpack_require__(157);
|
|
var createNonEnumerableProperty = __webpack_require__(43);
|
|
var hasOwn = __webpack_require__(38);
|
|
var wellKnownSymbol = __webpack_require__(33);
|
|
var AsyncIteratorPrototype = __webpack_require__(117);
|
|
var IS_PURE = __webpack_require__(35);
|
|
|
|
var TO_STRING_TAG = wellKnownSymbol('toStringTag');
|
|
|
|
var AsyncIteratorConstructor = function AsyncIterator() {
|
|
anInstance(this, AsyncIteratorPrototype);
|
|
};
|
|
|
|
AsyncIteratorConstructor.prototype = AsyncIteratorPrototype;
|
|
|
|
if (!hasOwn(AsyncIteratorPrototype, TO_STRING_TAG)) {
|
|
createNonEnumerableProperty(AsyncIteratorPrototype, TO_STRING_TAG, 'AsyncIterator');
|
|
}
|
|
|
|
if (IS_PURE || !hasOwn(AsyncIteratorPrototype, 'constructor') || AsyncIteratorPrototype.constructor === Object) {
|
|
createNonEnumerableProperty(AsyncIteratorPrototype, 'constructor', AsyncIteratorConstructor);
|
|
}
|
|
|
|
// `AsyncIterator` constructor
|
|
// https://github.com/tc39/proposal-async-iterator-helpers
|
|
$({ global: true, constructor: true, forced: IS_PURE }, {
|
|
AsyncIterator: AsyncIteratorConstructor
|
|
});
|
|
|
|
|
|
/***/ }),
|
|
/* 160 */
|
|
/***/ (function(module, exports, __webpack_require__) {
|
|
|
|
// TODO: Remove from `core-js@4`
|
|
var $ = __webpack_require__(2);
|
|
var indexed = __webpack_require__(161);
|
|
|
|
// `AsyncIterator.prototype.asIndexedPairs` method
|
|
// https://github.com/tc39/proposal-iterator-helpers
|
|
$({ target: 'AsyncIterator', name: 'indexed', proto: true, real: true, forced: true }, {
|
|
asIndexedPairs: indexed
|
|
});
|
|
|
|
|
|
/***/ }),
|
|
/* 161 */
|
|
/***/ (function(module, exports, __webpack_require__) {
|
|
|
|
"use strict";
|
|
|
|
var call = __webpack_require__(7);
|
|
var map = __webpack_require__(162);
|
|
|
|
var callback = function (value, counter) {
|
|
return [counter, value];
|
|
};
|
|
|
|
// `AsyncIterator.prototype.indexed` method
|
|
// https://github.com/tc39/proposal-iterator-helpers
|
|
module.exports = function indexed() {
|
|
return call(map, this, callback);
|
|
};
|
|
|
|
|
|
/***/ }),
|
|
/* 162 */
|
|
/***/ (function(module, exports, __webpack_require__) {
|
|
|
|
"use strict";
|
|
|
|
var call = __webpack_require__(7);
|
|
var aCallable = __webpack_require__(30);
|
|
var anObject = __webpack_require__(46);
|
|
var isObject = __webpack_require__(19);
|
|
var getIteratorDirect = __webpack_require__(122);
|
|
var createAsyncIteratorProxy = __webpack_require__(163);
|
|
var createIterResultObject = __webpack_require__(118);
|
|
var closeAsyncIteration = __webpack_require__(124);
|
|
|
|
var AsyncIteratorProxy = createAsyncIteratorProxy(function (Promise) {
|
|
var state = this;
|
|
var iterator = state.iterator;
|
|
var mapper = state.mapper;
|
|
|
|
return new Promise(function (resolve, reject) {
|
|
var doneAndReject = function (error) {
|
|
state.done = true;
|
|
reject(error);
|
|
};
|
|
|
|
var ifAbruptCloseAsyncIterator = function (error) {
|
|
closeAsyncIteration(iterator, doneAndReject, error, doneAndReject);
|
|
};
|
|
|
|
Promise.resolve(anObject(call(state.next, iterator))).then(function (step) {
|
|
try {
|
|
if (anObject(step).done) {
|
|
state.done = true;
|
|
resolve(createIterResultObject(undefined, true));
|
|
} else {
|
|
var value = step.value;
|
|
try {
|
|
var result = mapper(value, state.counter++);
|
|
|
|
var handler = function (mapped) {
|
|
resolve(createIterResultObject(mapped, false));
|
|
};
|
|
|
|
if (isObject(result)) Promise.resolve(result).then(handler, ifAbruptCloseAsyncIterator);
|
|
else handler(result);
|
|
} catch (error2) { ifAbruptCloseAsyncIterator(error2); }
|
|
}
|
|
} catch (error) { doneAndReject(error); }
|
|
}, doneAndReject);
|
|
});
|
|
});
|
|
|
|
// `AsyncIterator.prototype.map` method
|
|
// https://github.com/tc39/proposal-iterator-helpers
|
|
module.exports = function map(mapper) {
|
|
anObject(this);
|
|
aCallable(mapper);
|
|
return new AsyncIteratorProxy(getIteratorDirect(this), {
|
|
mapper: mapper
|
|
});
|
|
};
|
|
|
|
|
|
/***/ }),
|
|
/* 163 */
|
|
/***/ (function(module, exports, __webpack_require__) {
|
|
|
|
"use strict";
|
|
|
|
var call = __webpack_require__(7);
|
|
var perform = __webpack_require__(164);
|
|
var anObject = __webpack_require__(46);
|
|
var create = __webpack_require__(74);
|
|
var createNonEnumerableProperty = __webpack_require__(43);
|
|
var defineBuiltIns = __webpack_require__(116);
|
|
var wellKnownSymbol = __webpack_require__(33);
|
|
var InternalStateModule = __webpack_require__(51);
|
|
var getBuiltIn = __webpack_require__(23);
|
|
var getMethod = __webpack_require__(29);
|
|
var AsyncIteratorPrototype = __webpack_require__(117);
|
|
var createIterResultObject = __webpack_require__(118);
|
|
var iteratorClose = __webpack_require__(165);
|
|
|
|
var Promise = getBuiltIn('Promise');
|
|
|
|
var TO_STRING_TAG = wellKnownSymbol('toStringTag');
|
|
var ASYNC_ITERATOR_HELPER = 'AsyncIteratorHelper';
|
|
var WRAP_FOR_VALID_ASYNC_ITERATOR = 'WrapForValidAsyncIterator';
|
|
var setInternalState = InternalStateModule.set;
|
|
|
|
var createAsyncIteratorProxyPrototype = function (IS_ITERATOR) {
|
|
var IS_GENERATOR = !IS_ITERATOR;
|
|
var getInternalState = InternalStateModule.getterFor(IS_ITERATOR ? WRAP_FOR_VALID_ASYNC_ITERATOR : ASYNC_ITERATOR_HELPER);
|
|
|
|
var getStateOrEarlyExit = function (that) {
|
|
var stateCompletion = perform(function () {
|
|
return getInternalState(that);
|
|
});
|
|
|
|
var stateError = stateCompletion.error;
|
|
var state = stateCompletion.value;
|
|
|
|
if (stateError || (IS_GENERATOR && state.done)) {
|
|
return { exit: true, value: stateError ? Promise.reject(state) : Promise.resolve(createIterResultObject(undefined, true)) };
|
|
} return { exit: false, value: state };
|
|
};
|
|
|
|
return defineBuiltIns(create(AsyncIteratorPrototype), {
|
|
next: function next() {
|
|
var stateCompletion = getStateOrEarlyExit(this);
|
|
var state = stateCompletion.value;
|
|
if (stateCompletion.exit) return state;
|
|
var handlerCompletion = perform(function () {
|
|
return anObject(state.nextHandler(Promise));
|
|
});
|
|
var handlerError = handlerCompletion.error;
|
|
var value = handlerCompletion.value;
|
|
if (handlerError) state.done = true;
|
|
return handlerError ? Promise.reject(value) : Promise.resolve(value);
|
|
},
|
|
'return': function () {
|
|
var stateCompletion = getStateOrEarlyExit(this);
|
|
var state = stateCompletion.value;
|
|
if (stateCompletion.exit) return state;
|
|
state.done = true;
|
|
var iterator = state.iterator;
|
|
var returnMethod, result;
|
|
var completion = perform(function () {
|
|
if (state.inner) try {
|
|
iteratorClose(state.inner.iterator, 'normal');
|
|
} catch (error) {
|
|
return iteratorClose(iterator, 'throw', error);
|
|
}
|
|
return getMethod(iterator, 'return');
|
|
});
|
|
returnMethod = result = completion.value;
|
|
if (completion.error) return Promise.reject(result);
|
|
if (returnMethod === undefined) return Promise.resolve(createIterResultObject(undefined, true));
|
|
completion = perform(function () {
|
|
return call(returnMethod, iterator);
|
|
});
|
|
result = completion.value;
|
|
if (completion.error) return Promise.reject(result);
|
|
return IS_ITERATOR ? Promise.resolve(result) : Promise.resolve(result).then(function (resolved) {
|
|
anObject(resolved);
|
|
return createIterResultObject(undefined, true);
|
|
});
|
|
}
|
|
});
|
|
};
|
|
|
|
var WrapForValidAsyncIteratorPrototype = createAsyncIteratorProxyPrototype(true);
|
|
var AsyncIteratorHelperPrototype = createAsyncIteratorProxyPrototype(false);
|
|
|
|
createNonEnumerableProperty(AsyncIteratorHelperPrototype, TO_STRING_TAG, 'Async Iterator Helper');
|
|
|
|
module.exports = function (nextHandler, IS_ITERATOR) {
|
|
var AsyncIteratorProxy = function AsyncIterator(record, state) {
|
|
if (state) {
|
|
state.iterator = record.iterator;
|
|
state.next = record.next;
|
|
} else state = record;
|
|
state.type = IS_ITERATOR ? WRAP_FOR_VALID_ASYNC_ITERATOR : ASYNC_ITERATOR_HELPER;
|
|
state.nextHandler = nextHandler;
|
|
state.counter = 0;
|
|
state.done = false;
|
|
setInternalState(this, state);
|
|
};
|
|
|
|
AsyncIteratorProxy.prototype = IS_ITERATOR ? WrapForValidAsyncIteratorPrototype : AsyncIteratorHelperPrototype;
|
|
|
|
return AsyncIteratorProxy;
|
|
};
|
|
|
|
|
|
/***/ }),
|
|
/* 164 */
|
|
/***/ (function(module, exports) {
|
|
|
|
module.exports = function (exec) {
|
|
try {
|
|
return { error: false, value: exec() };
|
|
} catch (error) {
|
|
return { error: true, value: error };
|
|
}
|
|
};
|
|
|
|
|
|
/***/ }),
|
|
/* 165 */
|
|
/***/ (function(module, exports, __webpack_require__) {
|
|
|
|
var call = __webpack_require__(7);
|
|
var anObject = __webpack_require__(46);
|
|
var getMethod = __webpack_require__(29);
|
|
|
|
module.exports = function (iterator, kind, value) {
|
|
var innerResult, innerError;
|
|
anObject(iterator);
|
|
try {
|
|
innerResult = getMethod(iterator, 'return');
|
|
if (!innerResult) {
|
|
if (kind === 'throw') throw value;
|
|
return value;
|
|
}
|
|
innerResult = call(innerResult, iterator);
|
|
} catch (error) {
|
|
innerError = true;
|
|
innerResult = error;
|
|
}
|
|
if (kind === 'throw') throw value;
|
|
if (innerError) throw innerResult;
|
|
anObject(innerResult);
|
|
return value;
|
|
};
|
|
|
|
|
|
/***/ }),
|
|
/* 166 */
|
|
/***/ (function(module, exports, __webpack_require__) {
|
|
|
|
"use strict";
|
|
|
|
// https://github.com/tc39/proposal-async-explicit-resource-management
|
|
var call = __webpack_require__(7);
|
|
var defineBuiltIn = __webpack_require__(47);
|
|
var getBuiltIn = __webpack_require__(23);
|
|
var getMethod = __webpack_require__(29);
|
|
var hasOwn = __webpack_require__(38);
|
|
var wellKnownSymbol = __webpack_require__(33);
|
|
var AsyncIteratorPrototype = __webpack_require__(117);
|
|
|
|
var ASYNC_DISPOSE = wellKnownSymbol('asyncDispose');
|
|
var Promise = getBuiltIn('Promise');
|
|
|
|
if (!hasOwn(AsyncIteratorPrototype, ASYNC_DISPOSE)) {
|
|
defineBuiltIn(AsyncIteratorPrototype, ASYNC_DISPOSE, function () {
|
|
var O = this;
|
|
return new Promise(function (resolve, reject) {
|
|
var $return = getMethod(O, 'return');
|
|
if ($return) {
|
|
Promise.resolve(call($return, O)).then(function () {
|
|
resolve(undefined);
|
|
}, reject);
|
|
} else resolve(undefined);
|
|
});
|
|
});
|
|
}
|
|
|
|
|
|
/***/ }),
|
|
/* 167 */
|
|
/***/ (function(module, exports, __webpack_require__) {
|
|
|
|
"use strict";
|
|
|
|
var $ = __webpack_require__(2);
|
|
var call = __webpack_require__(7);
|
|
var anObject = __webpack_require__(46);
|
|
var getIteratorDirect = __webpack_require__(122);
|
|
var notANaN = __webpack_require__(168);
|
|
var toPositiveInteger = __webpack_require__(169);
|
|
var createAsyncIteratorProxy = __webpack_require__(163);
|
|
var createIterResultObject = __webpack_require__(118);
|
|
|
|
var AsyncIteratorProxy = createAsyncIteratorProxy(function (Promise) {
|
|
var state = this;
|
|
|
|
return new Promise(function (resolve, reject) {
|
|
var doneAndReject = function (error) {
|
|
state.done = true;
|
|
reject(error);
|
|
};
|
|
|
|
var loop = function () {
|
|
try {
|
|
Promise.resolve(anObject(call(state.next, state.iterator))).then(function (step) {
|
|
try {
|
|
if (anObject(step).done) {
|
|
state.done = true;
|
|
resolve(createIterResultObject(undefined, true));
|
|
} else if (state.remaining) {
|
|
state.remaining--;
|
|
loop();
|
|
} else resolve(createIterResultObject(step.value, false));
|
|
} catch (err) { doneAndReject(err); }
|
|
}, doneAndReject);
|
|
} catch (error) { doneAndReject(error); }
|
|
};
|
|
|
|
loop();
|
|
});
|
|
});
|
|
|
|
// `AsyncIterator.prototype.drop` method
|
|
// https://github.com/tc39/proposal-async-iterator-helpers
|
|
$({ target: 'AsyncIterator', proto: true, real: true }, {
|
|
drop: function drop(limit) {
|
|
anObject(this);
|
|
var remaining = toPositiveInteger(notANaN(+limit));
|
|
return new AsyncIteratorProxy(getIteratorDirect(this), {
|
|
remaining: remaining
|
|
});
|
|
}
|
|
});
|
|
|
|
|
|
/***/ }),
|
|
/* 168 */
|
|
/***/ (function(module, exports) {
|
|
|
|
var $RangeError = RangeError;
|
|
|
|
module.exports = function (it) {
|
|
// eslint-disable-next-line no-self-compare -- NaN check
|
|
if (it === it) return it;
|
|
throw $RangeError('NaN is not allowed');
|
|
};
|
|
|
|
|
|
/***/ }),
|
|
/* 169 */
|
|
/***/ (function(module, exports, __webpack_require__) {
|
|
|
|
var toIntegerOrInfinity = __webpack_require__(61);
|
|
|
|
var $RangeError = RangeError;
|
|
|
|
module.exports = function (it) {
|
|
var result = toIntegerOrInfinity(it);
|
|
if (result < 0) throw $RangeError("The argument can't be less than 0");
|
|
return result;
|
|
};
|
|
|
|
|
|
/***/ }),
|
|
/* 170 */
|
|
/***/ (function(module, exports, __webpack_require__) {
|
|
|
|
"use strict";
|
|
|
|
var $ = __webpack_require__(2);
|
|
var $every = __webpack_require__(123).every;
|
|
|
|
// `AsyncIterator.prototype.every` method
|
|
// https://github.com/tc39/proposal-async-iterator-helpers
|
|
$({ target: 'AsyncIterator', proto: true, real: true }, {
|
|
every: function every(predicate) {
|
|
return $every(this, predicate);
|
|
}
|
|
});
|
|
|
|
|
|
/***/ }),
|
|
/* 171 */
|
|
/***/ (function(module, exports, __webpack_require__) {
|
|
|
|
"use strict";
|
|
|
|
var $ = __webpack_require__(2);
|
|
var call = __webpack_require__(7);
|
|
var aCallable = __webpack_require__(30);
|
|
var anObject = __webpack_require__(46);
|
|
var isObject = __webpack_require__(19);
|
|
var getIteratorDirect = __webpack_require__(122);
|
|
var createAsyncIteratorProxy = __webpack_require__(163);
|
|
var createIterResultObject = __webpack_require__(118);
|
|
var closeAsyncIteration = __webpack_require__(124);
|
|
|
|
var AsyncIteratorProxy = createAsyncIteratorProxy(function (Promise) {
|
|
var state = this;
|
|
var iterator = state.iterator;
|
|
var predicate = state.predicate;
|
|
|
|
return new Promise(function (resolve, reject) {
|
|
var doneAndReject = function (error) {
|
|
state.done = true;
|
|
reject(error);
|
|
};
|
|
|
|
var ifAbruptCloseAsyncIterator = function (error) {
|
|
closeAsyncIteration(iterator, doneAndReject, error, doneAndReject);
|
|
};
|
|
|
|
var loop = function () {
|
|
try {
|
|
Promise.resolve(anObject(call(state.next, iterator))).then(function (step) {
|
|
try {
|
|
if (anObject(step).done) {
|
|
state.done = true;
|
|
resolve(createIterResultObject(undefined, true));
|
|
} else {
|
|
var value = step.value;
|
|
try {
|
|
var result = predicate(value, state.counter++);
|
|
|
|
var handler = function (selected) {
|
|
selected ? resolve(createIterResultObject(value, false)) : loop();
|
|
};
|
|
|
|
if (isObject(result)) Promise.resolve(result).then(handler, ifAbruptCloseAsyncIterator);
|
|
else handler(result);
|
|
} catch (error3) { ifAbruptCloseAsyncIterator(error3); }
|
|
}
|
|
} catch (error2) { doneAndReject(error2); }
|
|
}, doneAndReject);
|
|
} catch (error) { doneAndReject(error); }
|
|
};
|
|
|
|
loop();
|
|
});
|
|
});
|
|
|
|
// `AsyncIterator.prototype.filter` method
|
|
// https://github.com/tc39/proposal-async-iterator-helpers
|
|
$({ target: 'AsyncIterator', proto: true, real: true }, {
|
|
filter: function filter(predicate) {
|
|
anObject(this);
|
|
aCallable(predicate);
|
|
return new AsyncIteratorProxy(getIteratorDirect(this), {
|
|
predicate: predicate
|
|
});
|
|
}
|
|
});
|
|
|
|
|
|
/***/ }),
|
|
/* 172 */
|
|
/***/ (function(module, exports, __webpack_require__) {
|
|
|
|
"use strict";
|
|
|
|
var $ = __webpack_require__(2);
|
|
var $find = __webpack_require__(123).find;
|
|
|
|
// `AsyncIterator.prototype.find` method
|
|
// https://github.com/tc39/proposal-async-iterator-helpers
|
|
$({ target: 'AsyncIterator', proto: true, real: true }, {
|
|
find: function find(predicate) {
|
|
return $find(this, predicate);
|
|
}
|
|
});
|
|
|
|
|
|
/***/ }),
|
|
/* 173 */
|
|
/***/ (function(module, exports, __webpack_require__) {
|
|
|
|
"use strict";
|
|
|
|
var $ = __webpack_require__(2);
|
|
var call = __webpack_require__(7);
|
|
var aCallable = __webpack_require__(30);
|
|
var anObject = __webpack_require__(46);
|
|
var isObject = __webpack_require__(19);
|
|
var getIteratorDirect = __webpack_require__(122);
|
|
var createAsyncIteratorProxy = __webpack_require__(163);
|
|
var createIterResultObject = __webpack_require__(118);
|
|
var getAsyncIteratorFlattenable = __webpack_require__(174);
|
|
var closeAsyncIteration = __webpack_require__(124);
|
|
|
|
var AsyncIteratorProxy = createAsyncIteratorProxy(function (Promise) {
|
|
var state = this;
|
|
var iterator = state.iterator;
|
|
var mapper = state.mapper;
|
|
|
|
return new Promise(function (resolve, reject) {
|
|
var doneAndReject = function (error) {
|
|
state.done = true;
|
|
reject(error);
|
|
};
|
|
|
|
var ifAbruptCloseAsyncIterator = function (error) {
|
|
closeAsyncIteration(iterator, doneAndReject, error, doneAndReject);
|
|
};
|
|
|
|
var outerLoop = function () {
|
|
try {
|
|
Promise.resolve(anObject(call(state.next, iterator))).then(function (step) {
|
|
try {
|
|
if (anObject(step).done) {
|
|
state.done = true;
|
|
resolve(createIterResultObject(undefined, true));
|
|
} else {
|
|
var value = step.value;
|
|
try {
|
|
var result = mapper(value, state.counter++);
|
|
|
|
var handler = function (mapped) {
|
|
try {
|
|
state.inner = getAsyncIteratorFlattenable(mapped);
|
|
innerLoop();
|
|
} catch (error4) { ifAbruptCloseAsyncIterator(error4); }
|
|
};
|
|
|
|
if (isObject(result)) Promise.resolve(result).then(handler, ifAbruptCloseAsyncIterator);
|
|
else handler(result);
|
|
} catch (error3) { ifAbruptCloseAsyncIterator(error3); }
|
|
}
|
|
} catch (error2) { doneAndReject(error2); }
|
|
}, doneAndReject);
|
|
} catch (error) { doneAndReject(error); }
|
|
};
|
|
|
|
var innerLoop = function () {
|
|
var inner = state.inner;
|
|
if (inner) {
|
|
try {
|
|
Promise.resolve(anObject(call(inner.next, inner.iterator))).then(function (result) {
|
|
try {
|
|
if (anObject(result).done) {
|
|
state.inner = null;
|
|
outerLoop();
|
|
} else resolve(createIterResultObject(result.value, false));
|
|
} catch (error1) { ifAbruptCloseAsyncIterator(error1); }
|
|
}, ifAbruptCloseAsyncIterator);
|
|
} catch (error) { ifAbruptCloseAsyncIterator(error); }
|
|
} else outerLoop();
|
|
};
|
|
|
|
innerLoop();
|
|
});
|
|
});
|
|
|
|
// `AsyncIterator.prototype.flaMap` method
|
|
// https://github.com/tc39/proposal-async-iterator-helpers
|
|
$({ target: 'AsyncIterator', proto: true, real: true }, {
|
|
flatMap: function flatMap(mapper) {
|
|
anObject(this);
|
|
aCallable(mapper);
|
|
return new AsyncIteratorProxy(getIteratorDirect(this), {
|
|
mapper: mapper,
|
|
inner: null
|
|
});
|
|
}
|
|
});
|
|
|
|
|
|
/***/ }),
|
|
/* 174 */
|
|
/***/ (function(module, exports, __webpack_require__) {
|
|
|
|
var call = __webpack_require__(7);
|
|
var isCallable = __webpack_require__(20);
|
|
var anObject = __webpack_require__(46);
|
|
var getIteratorDirect = __webpack_require__(122);
|
|
var getIteratorMethod = __webpack_require__(120);
|
|
var getMethod = __webpack_require__(29);
|
|
var wellKnownSymbol = __webpack_require__(33);
|
|
var AsyncFromSyncIterator = __webpack_require__(115);
|
|
|
|
var ASYNC_ITERATOR = wellKnownSymbol('asyncIterator');
|
|
|
|
module.exports = function from(obj) {
|
|
var object = anObject(obj);
|
|
var alreadyAsync = true;
|
|
var method = getMethod(object, ASYNC_ITERATOR);
|
|
var iterator;
|
|
if (!isCallable(method)) {
|
|
method = getIteratorMethod(object);
|
|
alreadyAsync = false;
|
|
}
|
|
if (method !== undefined) {
|
|
iterator = call(method, object);
|
|
} else {
|
|
iterator = object;
|
|
alreadyAsync = true;
|
|
}
|
|
anObject(iterator);
|
|
return getIteratorDirect(alreadyAsync ? iterator : new AsyncFromSyncIterator(getIteratorDirect(iterator)));
|
|
};
|
|
|
|
|
|
/***/ }),
|
|
/* 175 */
|
|
/***/ (function(module, exports, __webpack_require__) {
|
|
|
|
"use strict";
|
|
|
|
var $ = __webpack_require__(2);
|
|
var $forEach = __webpack_require__(123).forEach;
|
|
|
|
// `AsyncIterator.prototype.forEach` method
|
|
// https://github.com/tc39/proposal-async-iterator-helpers
|
|
$({ target: 'AsyncIterator', proto: true, real: true }, {
|
|
forEach: function forEach(fn) {
|
|
return $forEach(this, fn);
|
|
}
|
|
});
|
|
|
|
|
|
/***/ }),
|
|
/* 176 */
|
|
/***/ (function(module, exports, __webpack_require__) {
|
|
|
|
var $ = __webpack_require__(2);
|
|
var toObject = __webpack_require__(39);
|
|
var isPrototypeOf = __webpack_require__(24);
|
|
var getAsyncIteratorFlattenable = __webpack_require__(174);
|
|
var AsyncIteratorPrototype = __webpack_require__(117);
|
|
var WrapAsyncIterator = __webpack_require__(177);
|
|
|
|
// `AsyncIterator.from` method
|
|
// https://github.com/tc39/proposal-async-iterator-helpers
|
|
$({ target: 'AsyncIterator', stat: true }, {
|
|
from: function from(O) {
|
|
var iteratorRecord = getAsyncIteratorFlattenable(typeof O == 'string' ? toObject(O) : O);
|
|
return isPrototypeOf(AsyncIteratorPrototype, iteratorRecord.iterator)
|
|
? iteratorRecord.iterator
|
|
: new WrapAsyncIterator(iteratorRecord);
|
|
}
|
|
});
|
|
|
|
|
|
/***/ }),
|
|
/* 177 */
|
|
/***/ (function(module, exports, __webpack_require__) {
|
|
|
|
var call = __webpack_require__(7);
|
|
var createAsyncIteratorProxy = __webpack_require__(163);
|
|
|
|
module.exports = createAsyncIteratorProxy(function () {
|
|
return call(this.next, this.iterator);
|
|
}, true);
|
|
|
|
|
|
/***/ }),
|
|
/* 178 */
|
|
/***/ (function(module, exports, __webpack_require__) {
|
|
|
|
// TODO: Remove from `core-js@4`
|
|
var $ = __webpack_require__(2);
|
|
var indexed = __webpack_require__(161);
|
|
|
|
// `AsyncIterator.prototype.indexed` method
|
|
// https://github.com/tc39/proposal-iterator-helpers
|
|
$({ target: 'AsyncIterator', proto: true, real: true, forced: true }, {
|
|
indexed: indexed
|
|
});
|
|
|
|
|
|
/***/ }),
|
|
/* 179 */
|
|
/***/ (function(module, exports, __webpack_require__) {
|
|
|
|
var $ = __webpack_require__(2);
|
|
var map = __webpack_require__(162);
|
|
|
|
// `AsyncIterator.prototype.map` method
|
|
// https://github.com/tc39/proposal-async-iterator-helpers
|
|
$({ target: 'AsyncIterator', proto: true, real: true }, {
|
|
map: map
|
|
});
|
|
|
|
|
|
|
|
/***/ }),
|
|
/* 180 */
|
|
/***/ (function(module, exports, __webpack_require__) {
|
|
|
|
"use strict";
|
|
|
|
var $ = __webpack_require__(2);
|
|
var call = __webpack_require__(7);
|
|
var aCallable = __webpack_require__(30);
|
|
var anObject = __webpack_require__(46);
|
|
var isObject = __webpack_require__(19);
|
|
var getBuiltIn = __webpack_require__(23);
|
|
var getIteratorDirect = __webpack_require__(122);
|
|
var closeAsyncIteration = __webpack_require__(124);
|
|
|
|
var Promise = getBuiltIn('Promise');
|
|
var $TypeError = TypeError;
|
|
|
|
// `AsyncIterator.prototype.reduce` method
|
|
// https://github.com/tc39/proposal-async-iterator-helpers
|
|
$({ target: 'AsyncIterator', proto: true, real: true }, {
|
|
reduce: function reduce(reducer /* , initialValue */) {
|
|
anObject(this);
|
|
aCallable(reducer);
|
|
var record = getIteratorDirect(this);
|
|
var iterator = record.iterator;
|
|
var next = record.next;
|
|
var noInitial = arguments.length < 2;
|
|
var accumulator = noInitial ? undefined : arguments[1];
|
|
var counter = 0;
|
|
|
|
return new Promise(function (resolve, reject) {
|
|
var ifAbruptCloseAsyncIterator = function (error) {
|
|
closeAsyncIteration(iterator, reject, error, reject);
|
|
};
|
|
|
|
var loop = function () {
|
|
try {
|
|
Promise.resolve(anObject(call(next, iterator))).then(function (step) {
|
|
try {
|
|
if (anObject(step).done) {
|
|
noInitial ? reject($TypeError('Reduce of empty iterator with no initial value')) : resolve(accumulator);
|
|
} else {
|
|
var value = step.value;
|
|
if (noInitial) {
|
|
noInitial = false;
|
|
accumulator = value;
|
|
loop();
|
|
} else try {
|
|
var result = reducer(accumulator, value, counter);
|
|
|
|
var handler = function ($result) {
|
|
accumulator = $result;
|
|
loop();
|
|
};
|
|
|
|
if (isObject(result)) Promise.resolve(result).then(handler, ifAbruptCloseAsyncIterator);
|
|
else handler(result);
|
|
} catch (error3) { ifAbruptCloseAsyncIterator(error3); }
|
|
}
|
|
counter++;
|
|
} catch (error2) { reject(error2); }
|
|
}, reject);
|
|
} catch (error) { reject(error); }
|
|
};
|
|
|
|
loop();
|
|
});
|
|
}
|
|
});
|
|
|
|
|
|
/***/ }),
|
|
/* 181 */
|
|
/***/ (function(module, exports, __webpack_require__) {
|
|
|
|
"use strict";
|
|
|
|
var $ = __webpack_require__(2);
|
|
var $some = __webpack_require__(123).some;
|
|
|
|
// `AsyncIterator.prototype.some` method
|
|
// https://github.com/tc39/proposal-async-iterator-helpers
|
|
$({ target: 'AsyncIterator', proto: true, real: true }, {
|
|
some: function some(predicate) {
|
|
return $some(this, predicate);
|
|
}
|
|
});
|
|
|
|
|
|
/***/ }),
|
|
/* 182 */
|
|
/***/ (function(module, exports, __webpack_require__) {
|
|
|
|
"use strict";
|
|
|
|
var $ = __webpack_require__(2);
|
|
var call = __webpack_require__(7);
|
|
var anObject = __webpack_require__(46);
|
|
var getIteratorDirect = __webpack_require__(122);
|
|
var notANaN = __webpack_require__(168);
|
|
var toPositiveInteger = __webpack_require__(169);
|
|
var createAsyncIteratorProxy = __webpack_require__(163);
|
|
var createIterResultObject = __webpack_require__(118);
|
|
|
|
var AsyncIteratorProxy = createAsyncIteratorProxy(function (Promise) {
|
|
var state = this;
|
|
var iterator = state.iterator;
|
|
var returnMethod;
|
|
|
|
if (!state.remaining--) {
|
|
var resultDone = createIterResultObject(undefined, true);
|
|
state.done = true;
|
|
returnMethod = iterator['return'];
|
|
if (returnMethod !== undefined) {
|
|
return Promise.resolve(call(returnMethod, iterator, undefined)).then(function () {
|
|
return resultDone;
|
|
});
|
|
}
|
|
return resultDone;
|
|
} return Promise.resolve(call(state.next, iterator)).then(function (step) {
|
|
if (anObject(step).done) {
|
|
state.done = true;
|
|
return createIterResultObject(undefined, true);
|
|
} return createIterResultObject(step.value, false);
|
|
}).then(null, function (error) {
|
|
state.done = true;
|
|
throw error;
|
|
});
|
|
});
|
|
|
|
// `AsyncIterator.prototype.take` method
|
|
// https://github.com/tc39/proposal-async-iterator-helpers
|
|
$({ target: 'AsyncIterator', proto: true, real: true }, {
|
|
take: function take(limit) {
|
|
anObject(this);
|
|
var remaining = toPositiveInteger(notANaN(+limit));
|
|
return new AsyncIteratorProxy(getIteratorDirect(this), {
|
|
remaining: remaining
|
|
});
|
|
}
|
|
});
|
|
|
|
|
|
/***/ }),
|
|
/* 183 */
|
|
/***/ (function(module, exports, __webpack_require__) {
|
|
|
|
"use strict";
|
|
|
|
var $ = __webpack_require__(2);
|
|
var $toArray = __webpack_require__(123).toArray;
|
|
|
|
// `AsyncIterator.prototype.toArray` method
|
|
// https://github.com/tc39/proposal-async-iterator-helpers
|
|
$({ target: 'AsyncIterator', proto: true, real: true }, {
|
|
toArray: function toArray() {
|
|
return $toArray(this, undefined, []);
|
|
}
|
|
});
|
|
|
|
|
|
/***/ }),
|
|
/* 184 */
|
|
/***/ (function(module, exports, __webpack_require__) {
|
|
|
|
"use strict";
|
|
|
|
/* eslint-disable es/no-bigint -- safe */
|
|
var $ = __webpack_require__(2);
|
|
var NumericRangeIterator = __webpack_require__(185);
|
|
|
|
// `BigInt.range` method
|
|
// https://github.com/tc39/proposal-Number.range
|
|
// TODO: Remove from `core-js@4`
|
|
if (typeof BigInt == 'function') {
|
|
$({ target: 'BigInt', stat: true, forced: true }, {
|
|
range: function range(start, end, option) {
|
|
return new NumericRangeIterator(start, end, option, 'bigint', BigInt(0), BigInt(1));
|
|
}
|
|
});
|
|
}
|
|
|
|
|
|
/***/ }),
|
|
/* 185 */
|
|
/***/ (function(module, exports, __webpack_require__) {
|
|
|
|
"use strict";
|
|
|
|
var InternalStateModule = __webpack_require__(51);
|
|
var createIteratorConstructor = __webpack_require__(186);
|
|
var createIterResultObject = __webpack_require__(118);
|
|
var isNullOrUndefined = __webpack_require__(16);
|
|
var isObject = __webpack_require__(19);
|
|
var defineBuiltInAccessor = __webpack_require__(85);
|
|
var DESCRIPTORS = __webpack_require__(5);
|
|
|
|
var INCORRECT_RANGE = 'Incorrect Iterator.range arguments';
|
|
var NUMERIC_RANGE_ITERATOR = 'NumericRangeIterator';
|
|
|
|
var setInternalState = InternalStateModule.set;
|
|
var getInternalState = InternalStateModule.getterFor(NUMERIC_RANGE_ITERATOR);
|
|
|
|
var $RangeError = RangeError;
|
|
var $TypeError = TypeError;
|
|
|
|
var $RangeIterator = createIteratorConstructor(function NumericRangeIterator(start, end, option, type, zero, one) {
|
|
// TODO: Drop the first `typeof` check after removing legacy methods in `core-js@4`
|
|
if (typeof start != type || (end !== Infinity && end !== -Infinity && typeof end != type)) {
|
|
throw $TypeError(INCORRECT_RANGE);
|
|
}
|
|
if (start === Infinity || start === -Infinity) {
|
|
throw $RangeError(INCORRECT_RANGE);
|
|
}
|
|
var ifIncrease = end > start;
|
|
var inclusiveEnd = false;
|
|
var step;
|
|
if (option === undefined) {
|
|
step = undefined;
|
|
} else if (isObject(option)) {
|
|
step = option.step;
|
|
inclusiveEnd = !!option.inclusive;
|
|
} else if (typeof option == type) {
|
|
step = option;
|
|
} else {
|
|
throw $TypeError(INCORRECT_RANGE);
|
|
}
|
|
if (isNullOrUndefined(step)) {
|
|
step = ifIncrease ? one : -one;
|
|
}
|
|
if (typeof step != type) {
|
|
throw $TypeError(INCORRECT_RANGE);
|
|
}
|
|
if (step === Infinity || step === -Infinity || (step === zero && start !== end)) {
|
|
throw $RangeError(INCORRECT_RANGE);
|
|
}
|
|
// eslint-disable-next-line no-self-compare -- NaN check
|
|
var hitsEnd = start != start || end != end || step != step || (end > start) !== (step > zero);
|
|
setInternalState(this, {
|
|
type: NUMERIC_RANGE_ITERATOR,
|
|
start: start,
|
|
end: end,
|
|
step: step,
|
|
inclusive: inclusiveEnd,
|
|
hitsEnd: hitsEnd,
|
|
currentCount: zero,
|
|
zero: zero
|
|
});
|
|
if (!DESCRIPTORS) {
|
|
this.start = start;
|
|
this.end = end;
|
|
this.step = step;
|
|
this.inclusive = inclusiveEnd;
|
|
}
|
|
}, NUMERIC_RANGE_ITERATOR, function next() {
|
|
var state = getInternalState(this);
|
|
if (state.hitsEnd) return createIterResultObject(undefined, true);
|
|
var start = state.start;
|
|
var end = state.end;
|
|
var step = state.step;
|
|
var currentYieldingValue = start + (step * state.currentCount++);
|
|
if (currentYieldingValue === end) state.hitsEnd = true;
|
|
var inclusiveEnd = state.inclusive;
|
|
var endCondition;
|
|
if (end > start) {
|
|
endCondition = inclusiveEnd ? currentYieldingValue > end : currentYieldingValue >= end;
|
|
} else {
|
|
endCondition = inclusiveEnd ? end > currentYieldingValue : end >= currentYieldingValue;
|
|
}
|
|
if (endCondition) {
|
|
state.hitsEnd = true;
|
|
return createIterResultObject(undefined, true);
|
|
} return createIterResultObject(currentYieldingValue, false);
|
|
});
|
|
|
|
var addGetter = function (key) {
|
|
defineBuiltInAccessor($RangeIterator.prototype, key, {
|
|
get: function () {
|
|
return getInternalState(this)[key];
|
|
},
|
|
set: function () { /* empty */ },
|
|
configurable: true,
|
|
enumerable: false
|
|
});
|
|
};
|
|
|
|
if (DESCRIPTORS) {
|
|
addGetter('start');
|
|
addGetter('end');
|
|
addGetter('inclusive');
|
|
addGetter('step');
|
|
}
|
|
|
|
module.exports = $RangeIterator;
|
|
|
|
|
|
/***/ }),
|
|
/* 186 */
|
|
/***/ (function(module, exports, __webpack_require__) {
|
|
|
|
"use strict";
|
|
|
|
var IteratorPrototype = __webpack_require__(187).IteratorPrototype;
|
|
var create = __webpack_require__(74);
|
|
var createPropertyDescriptor = __webpack_require__(10);
|
|
var setToStringTag = __webpack_require__(188);
|
|
var Iterators = __webpack_require__(121);
|
|
|
|
var returnThis = function () { return this; };
|
|
|
|
module.exports = function (IteratorConstructor, NAME, next, ENUMERABLE_NEXT) {
|
|
var TO_STRING_TAG = NAME + ' Iterator';
|
|
IteratorConstructor.prototype = create(IteratorPrototype, { next: createPropertyDescriptor(+!ENUMERABLE_NEXT, next) });
|
|
setToStringTag(IteratorConstructor, TO_STRING_TAG, false, true);
|
|
Iterators[TO_STRING_TAG] = returnThis;
|
|
return IteratorConstructor;
|
|
};
|
|
|
|
|
|
/***/ }),
|
|
/* 187 */
|
|
/***/ (function(module, exports, __webpack_require__) {
|
|
|
|
"use strict";
|
|
|
|
var fails = __webpack_require__(6);
|
|
var isCallable = __webpack_require__(20);
|
|
var isObject = __webpack_require__(19);
|
|
var create = __webpack_require__(74);
|
|
var getPrototypeOf = __webpack_require__(95);
|
|
var defineBuiltIn = __webpack_require__(47);
|
|
var wellKnownSymbol = __webpack_require__(33);
|
|
var IS_PURE = __webpack_require__(35);
|
|
|
|
var ITERATOR = wellKnownSymbol('iterator');
|
|
var BUGGY_SAFARI_ITERATORS = false;
|
|
|
|
// `%IteratorPrototype%` object
|
|
// https://tc39.es/ecma262/#sec-%iteratorprototype%-object
|
|
var IteratorPrototype, PrototypeOfArrayIteratorPrototype, arrayIterator;
|
|
|
|
/* eslint-disable es/no-array-prototype-keys -- safe */
|
|
if ([].keys) {
|
|
arrayIterator = [].keys();
|
|
// Safari 8 has buggy iterators w/o `next`
|
|
if (!('next' in arrayIterator)) BUGGY_SAFARI_ITERATORS = true;
|
|
else {
|
|
PrototypeOfArrayIteratorPrototype = getPrototypeOf(getPrototypeOf(arrayIterator));
|
|
if (PrototypeOfArrayIteratorPrototype !== Object.prototype) IteratorPrototype = PrototypeOfArrayIteratorPrototype;
|
|
}
|
|
}
|
|
|
|
var NEW_ITERATOR_PROTOTYPE = !isObject(IteratorPrototype) || fails(function () {
|
|
var test = {};
|
|
// FF44- legacy iterators case
|
|
return IteratorPrototype[ITERATOR].call(test) !== test;
|
|
});
|
|
|
|
if (NEW_ITERATOR_PROTOTYPE) IteratorPrototype = {};
|
|
else if (IS_PURE) IteratorPrototype = create(IteratorPrototype);
|
|
|
|
// `%IteratorPrototype%[@@iterator]()` method
|
|
// https://tc39.es/ecma262/#sec-%iteratorprototype%-@@iterator
|
|
if (!isCallable(IteratorPrototype[ITERATOR])) {
|
|
defineBuiltIn(IteratorPrototype, ITERATOR, function () {
|
|
return this;
|
|
});
|
|
}
|
|
|
|
module.exports = {
|
|
IteratorPrototype: IteratorPrototype,
|
|
BUGGY_SAFARI_ITERATORS: BUGGY_SAFARI_ITERATORS
|
|
};
|
|
|
|
|
|
/***/ }),
|
|
/* 188 */
|
|
/***/ (function(module, exports, __webpack_require__) {
|
|
|
|
var defineProperty = __webpack_require__(44).f;
|
|
var hasOwn = __webpack_require__(38);
|
|
var wellKnownSymbol = __webpack_require__(33);
|
|
|
|
var TO_STRING_TAG = wellKnownSymbol('toStringTag');
|
|
|
|
module.exports = function (target, TAG, STATIC) {
|
|
if (target && !STATIC) target = target.prototype;
|
|
if (target && !hasOwn(target, TO_STRING_TAG)) {
|
|
defineProperty(target, TO_STRING_TAG, { configurable: true, value: TAG });
|
|
}
|
|
};
|
|
|
|
|
|
/***/ }),
|
|
/* 189 */
|
|
/***/ (function(module, exports, __webpack_require__) {
|
|
|
|
var $ = __webpack_require__(2);
|
|
var apply = __webpack_require__(190);
|
|
var getCompositeKeyNode = __webpack_require__(191);
|
|
var getBuiltIn = __webpack_require__(23);
|
|
var create = __webpack_require__(74);
|
|
|
|
var $Object = Object;
|
|
|
|
var initializer = function () {
|
|
var freeze = getBuiltIn('Object', 'freeze');
|
|
return freeze ? freeze(create(null)) : create(null);
|
|
};
|
|
|
|
// https://github.com/tc39/proposal-richer-keys/tree/master/compositeKey
|
|
$({ global: true, forced: true }, {
|
|
compositeKey: function compositeKey() {
|
|
return apply(getCompositeKeyNode, $Object, arguments).get('object', initializer);
|
|
}
|
|
});
|
|
|
|
|
|
/***/ }),
|
|
/* 190 */
|
|
/***/ (function(module, exports, __webpack_require__) {
|
|
|
|
var NATIVE_BIND = __webpack_require__(8);
|
|
|
|
var FunctionPrototype = Function.prototype;
|
|
var apply = FunctionPrototype.apply;
|
|
var call = FunctionPrototype.call;
|
|
|
|
// eslint-disable-next-line es/no-reflect -- safe
|
|
module.exports = typeof Reflect == 'object' && Reflect.apply || (NATIVE_BIND ? call.bind(apply) : function () {
|
|
return call.apply(apply, arguments);
|
|
});
|
|
|
|
|
|
/***/ }),
|
|
/* 191 */
|
|
/***/ (function(module, exports, __webpack_require__) {
|
|
|
|
// TODO: in core-js@4, move /modules/ dependencies to public entries for better optimization by tools like `preset-env`
|
|
__webpack_require__(192);
|
|
__webpack_require__(209);
|
|
var getBuiltIn = __webpack_require__(23);
|
|
var create = __webpack_require__(74);
|
|
var isObject = __webpack_require__(19);
|
|
|
|
var $Object = Object;
|
|
var $TypeError = TypeError;
|
|
var Map = getBuiltIn('Map');
|
|
var WeakMap = getBuiltIn('WeakMap');
|
|
|
|
var Node = function () {
|
|
// keys
|
|
this.object = null;
|
|
this.symbol = null;
|
|
// child nodes
|
|
this.primitives = null;
|
|
this.objectsByIndex = create(null);
|
|
};
|
|
|
|
Node.prototype.get = function (key, initializer) {
|
|
return this[key] || (this[key] = initializer());
|
|
};
|
|
|
|
Node.prototype.next = function (i, it, IS_OBJECT) {
|
|
var store = IS_OBJECT
|
|
? this.objectsByIndex[i] || (this.objectsByIndex[i] = new WeakMap())
|
|
: this.primitives || (this.primitives = new Map());
|
|
var entry = store.get(it);
|
|
if (!entry) store.set(it, entry = new Node());
|
|
return entry;
|
|
};
|
|
|
|
var root = new Node();
|
|
|
|
module.exports = function () {
|
|
var active = root;
|
|
var length = arguments.length;
|
|
var i, it;
|
|
// for prevent leaking, start from objects
|
|
for (i = 0; i < length; i++) {
|
|
if (isObject(it = arguments[i])) active = active.next(i, it, true);
|
|
}
|
|
if (this === $Object && active === root) throw $TypeError('Composite keys must contain a non-primitive component');
|
|
for (i = 0; i < length; i++) {
|
|
if (!isObject(it = arguments[i])) active = active.next(i, it, false);
|
|
} return active;
|
|
};
|
|
|
|
|
|
/***/ }),
|
|
/* 192 */
|
|
/***/ (function(module, exports, __webpack_require__) {
|
|
|
|
// TODO: Remove this module from `core-js@4` since it's replaced to module below
|
|
__webpack_require__(193);
|
|
|
|
|
|
/***/ }),
|
|
/* 193 */
|
|
/***/ (function(module, exports, __webpack_require__) {
|
|
|
|
"use strict";
|
|
|
|
var collection = __webpack_require__(194);
|
|
var collectionStrong = __webpack_require__(206);
|
|
|
|
// `Map` constructor
|
|
// https://tc39.es/ecma262/#sec-map-objects
|
|
collection('Map', function (init) {
|
|
return function Map() { return init(this, arguments.length ? arguments[0] : undefined); };
|
|
}, collectionStrong);
|
|
|
|
|
|
/***/ }),
|
|
/* 194 */
|
|
/***/ (function(module, exports, __webpack_require__) {
|
|
|
|
"use strict";
|
|
|
|
var $ = __webpack_require__(2);
|
|
var global = __webpack_require__(3);
|
|
var uncurryThis = __webpack_require__(13);
|
|
var isForced = __webpack_require__(67);
|
|
var defineBuiltIn = __webpack_require__(47);
|
|
var InternalMetadataModule = __webpack_require__(195);
|
|
var iterate = __webpack_require__(202);
|
|
var anInstance = __webpack_require__(157);
|
|
var isCallable = __webpack_require__(20);
|
|
var isNullOrUndefined = __webpack_require__(16);
|
|
var isObject = __webpack_require__(19);
|
|
var fails = __webpack_require__(6);
|
|
var checkCorrectnessOfIteration = __webpack_require__(204);
|
|
var setToStringTag = __webpack_require__(188);
|
|
var inheritIfRequired = __webpack_require__(205);
|
|
|
|
module.exports = function (CONSTRUCTOR_NAME, wrapper, common) {
|
|
var IS_MAP = CONSTRUCTOR_NAME.indexOf('Map') !== -1;
|
|
var IS_WEAK = CONSTRUCTOR_NAME.indexOf('Weak') !== -1;
|
|
var ADDER = IS_MAP ? 'set' : 'add';
|
|
var NativeConstructor = global[CONSTRUCTOR_NAME];
|
|
var NativePrototype = NativeConstructor && NativeConstructor.prototype;
|
|
var Constructor = NativeConstructor;
|
|
var exported = {};
|
|
|
|
var fixMethod = function (KEY) {
|
|
var uncurriedNativeMethod = uncurryThis(NativePrototype[KEY]);
|
|
defineBuiltIn(NativePrototype, KEY,
|
|
KEY == 'add' ? function add(value) {
|
|
uncurriedNativeMethod(this, value === 0 ? 0 : value);
|
|
return this;
|
|
} : KEY == 'delete' ? function (key) {
|
|
return IS_WEAK && !isObject(key) ? false : uncurriedNativeMethod(this, key === 0 ? 0 : key);
|
|
} : KEY == 'get' ? function get(key) {
|
|
return IS_WEAK && !isObject(key) ? undefined : uncurriedNativeMethod(this, key === 0 ? 0 : key);
|
|
} : KEY == 'has' ? function has(key) {
|
|
return IS_WEAK && !isObject(key) ? false : uncurriedNativeMethod(this, key === 0 ? 0 : key);
|
|
} : function set(key, value) {
|
|
uncurriedNativeMethod(this, key === 0 ? 0 : key, value);
|
|
return this;
|
|
}
|
|
);
|
|
};
|
|
|
|
var REPLACE = isForced(
|
|
CONSTRUCTOR_NAME,
|
|
!isCallable(NativeConstructor) || !(IS_WEAK || NativePrototype.forEach && !fails(function () {
|
|
new NativeConstructor().entries().next();
|
|
}))
|
|
);
|
|
|
|
if (REPLACE) {
|
|
// create collection constructor
|
|
Constructor = common.getConstructor(wrapper, CONSTRUCTOR_NAME, IS_MAP, ADDER);
|
|
InternalMetadataModule.enable();
|
|
} else if (isForced(CONSTRUCTOR_NAME, true)) {
|
|
var instance = new Constructor();
|
|
// early implementations not supports chaining
|
|
var HASNT_CHAINING = instance[ADDER](IS_WEAK ? {} : -0, 1) != instance;
|
|
// V8 ~ Chromium 40- weak-collections throws on primitives, but should return false
|
|
var THROWS_ON_PRIMITIVES = fails(function () { instance.has(1); });
|
|
// most early implementations doesn't supports iterables, most modern - not close it correctly
|
|
// eslint-disable-next-line no-new -- required for testing
|
|
var ACCEPT_ITERABLES = checkCorrectnessOfIteration(function (iterable) { new NativeConstructor(iterable); });
|
|
// for early implementations -0 and +0 not the same
|
|
var BUGGY_ZERO = !IS_WEAK && fails(function () {
|
|
// V8 ~ Chromium 42- fails only with 5+ elements
|
|
var $instance = new NativeConstructor();
|
|
var index = 5;
|
|
while (index--) $instance[ADDER](index, index);
|
|
return !$instance.has(-0);
|
|
});
|
|
|
|
if (!ACCEPT_ITERABLES) {
|
|
Constructor = wrapper(function (dummy, iterable) {
|
|
anInstance(dummy, NativePrototype);
|
|
var that = inheritIfRequired(new NativeConstructor(), dummy, Constructor);
|
|
if (!isNullOrUndefined(iterable)) iterate(iterable, that[ADDER], { that: that, AS_ENTRIES: IS_MAP });
|
|
return that;
|
|
});
|
|
Constructor.prototype = NativePrototype;
|
|
NativePrototype.constructor = Constructor;
|
|
}
|
|
|
|
if (THROWS_ON_PRIMITIVES || BUGGY_ZERO) {
|
|
fixMethod('delete');
|
|
fixMethod('has');
|
|
IS_MAP && fixMethod('get');
|
|
}
|
|
|
|
if (BUGGY_ZERO || HASNT_CHAINING) fixMethod(ADDER);
|
|
|
|
// weak collections should not contains .clear method
|
|
if (IS_WEAK && NativePrototype.clear) delete NativePrototype.clear;
|
|
}
|
|
|
|
exported[CONSTRUCTOR_NAME] = Constructor;
|
|
$({ global: true, constructor: true, forced: Constructor != NativeConstructor }, exported);
|
|
|
|
setToStringTag(Constructor, CONSTRUCTOR_NAME);
|
|
|
|
if (!IS_WEAK) common.setStrong(Constructor, CONSTRUCTOR_NAME, IS_MAP);
|
|
|
|
return Constructor;
|
|
};
|
|
|
|
|
|
/***/ }),
|
|
/* 195 */
|
|
/***/ (function(module, exports, __webpack_require__) {
|
|
|
|
var $ = __webpack_require__(2);
|
|
var uncurryThis = __webpack_require__(13);
|
|
var hiddenKeys = __webpack_require__(54);
|
|
var isObject = __webpack_require__(19);
|
|
var hasOwn = __webpack_require__(38);
|
|
var defineProperty = __webpack_require__(44).f;
|
|
var getOwnPropertyNamesModule = __webpack_require__(57);
|
|
var getOwnPropertyNamesExternalModule = __webpack_require__(196);
|
|
var isExtensible = __webpack_require__(199);
|
|
var uid = __webpack_require__(40);
|
|
var FREEZING = __webpack_require__(201);
|
|
|
|
var REQUIRED = false;
|
|
var METADATA = uid('meta');
|
|
var id = 0;
|
|
|
|
var setMetadata = function (it) {
|
|
defineProperty(it, METADATA, { value: {
|
|
objectID: 'O' + id++, // object ID
|
|
weakData: {} // weak collections IDs
|
|
} });
|
|
};
|
|
|
|
var fastKey = function (it, create) {
|
|
// return a primitive with prefix
|
|
if (!isObject(it)) return typeof it == 'symbol' ? it : (typeof it == 'string' ? 'S' : 'P') + it;
|
|
if (!hasOwn(it, METADATA)) {
|
|
// can't set metadata to uncaught frozen object
|
|
if (!isExtensible(it)) return 'F';
|
|
// not necessary to add metadata
|
|
if (!create) return 'E';
|
|
// add missing metadata
|
|
setMetadata(it);
|
|
// return object ID
|
|
} return it[METADATA].objectID;
|
|
};
|
|
|
|
var getWeakData = function (it, create) {
|
|
if (!hasOwn(it, METADATA)) {
|
|
// can't set metadata to uncaught frozen object
|
|
if (!isExtensible(it)) return true;
|
|
// not necessary to add metadata
|
|
if (!create) return false;
|
|
// add missing metadata
|
|
setMetadata(it);
|
|
// return the store of weak collections IDs
|
|
} return it[METADATA].weakData;
|
|
};
|
|
|
|
// add metadata on freeze-family methods calling
|
|
var onFreeze = function (it) {
|
|
if (FREEZING && REQUIRED && isExtensible(it) && !hasOwn(it, METADATA)) setMetadata(it);
|
|
return it;
|
|
};
|
|
|
|
var enable = function () {
|
|
meta.enable = function () { /* empty */ };
|
|
REQUIRED = true;
|
|
var getOwnPropertyNames = getOwnPropertyNamesModule.f;
|
|
var splice = uncurryThis([].splice);
|
|
var test = {};
|
|
test[METADATA] = 1;
|
|
|
|
// prevent exposing of metadata key
|
|
if (getOwnPropertyNames(test).length) {
|
|
getOwnPropertyNamesModule.f = function (it) {
|
|
var result = getOwnPropertyNames(it);
|
|
for (var i = 0, length = result.length; i < length; i++) {
|
|
if (result[i] === METADATA) {
|
|
splice(result, i, 1);
|
|
break;
|
|
}
|
|
} return result;
|
|
};
|
|
|
|
$({ target: 'Object', stat: true, forced: true }, {
|
|
getOwnPropertyNames: getOwnPropertyNamesExternalModule.f
|
|
});
|
|
}
|
|
};
|
|
|
|
var meta = module.exports = {
|
|
enable: enable,
|
|
fastKey: fastKey,
|
|
getWeakData: getWeakData,
|
|
onFreeze: onFreeze
|
|
};
|
|
|
|
hiddenKeys[METADATA] = true;
|
|
|
|
|
|
/***/ }),
|
|
/* 196 */
|
|
/***/ (function(module, exports, __webpack_require__) {
|
|
|
|
/* eslint-disable es/no-object-getownpropertynames -- safe */
|
|
var classof = __webpack_require__(14);
|
|
var toIndexedObject = __webpack_require__(11);
|
|
var $getOwnPropertyNames = __webpack_require__(57).f;
|
|
var arraySlice = __webpack_require__(197);
|
|
|
|
var windowNames = typeof window == 'object' && window && Object.getOwnPropertyNames
|
|
? Object.getOwnPropertyNames(window) : [];
|
|
|
|
var getWindowNames = function (it) {
|
|
try {
|
|
return $getOwnPropertyNames(it);
|
|
} catch (error) {
|
|
return arraySlice(windowNames);
|
|
}
|
|
};
|
|
|
|
// fallback for IE11 buggy Object.getOwnPropertyNames with iframe and window
|
|
module.exports.f = function getOwnPropertyNames(it) {
|
|
return windowNames && classof(it) == 'Window'
|
|
? getWindowNames(it)
|
|
: $getOwnPropertyNames(toIndexedObject(it));
|
|
};
|
|
|
|
|
|
/***/ }),
|
|
/* 197 */
|
|
/***/ (function(module, exports, __webpack_require__) {
|
|
|
|
var toAbsoluteIndex = __webpack_require__(60);
|
|
var lengthOfArrayLike = __webpack_require__(63);
|
|
var createProperty = __webpack_require__(198);
|
|
|
|
var $Array = Array;
|
|
var max = Math.max;
|
|
|
|
module.exports = function (O, start, end) {
|
|
var length = lengthOfArrayLike(O);
|
|
var k = toAbsoluteIndex(start, length);
|
|
var fin = toAbsoluteIndex(end === undefined ? length : end, length);
|
|
var result = $Array(max(fin - k, 0));
|
|
for (var n = 0; k < fin; k++, n++) createProperty(result, n, O[k]);
|
|
result.length = n;
|
|
return result;
|
|
};
|
|
|
|
|
|
/***/ }),
|
|
/* 198 */
|
|
/***/ (function(module, exports, __webpack_require__) {
|
|
|
|
"use strict";
|
|
|
|
var toPropertyKey = __webpack_require__(17);
|
|
var definePropertyModule = __webpack_require__(44);
|
|
var createPropertyDescriptor = __webpack_require__(10);
|
|
|
|
module.exports = function (object, key, value) {
|
|
var propertyKey = toPropertyKey(key);
|
|
if (propertyKey in object) definePropertyModule.f(object, propertyKey, createPropertyDescriptor(0, value));
|
|
else object[propertyKey] = value;
|
|
};
|
|
|
|
|
|
/***/ }),
|
|
/* 199 */
|
|
/***/ (function(module, exports, __webpack_require__) {
|
|
|
|
var fails = __webpack_require__(6);
|
|
var isObject = __webpack_require__(19);
|
|
var classof = __webpack_require__(14);
|
|
var ARRAY_BUFFER_NON_EXTENSIBLE = __webpack_require__(200);
|
|
|
|
// eslint-disable-next-line es/no-object-isextensible -- safe
|
|
var $isExtensible = Object.isExtensible;
|
|
var FAILS_ON_PRIMITIVES = fails(function () { $isExtensible(1); });
|
|
|
|
// `Object.isExtensible` method
|
|
// https://tc39.es/ecma262/#sec-object.isextensible
|
|
module.exports = (FAILS_ON_PRIMITIVES || ARRAY_BUFFER_NON_EXTENSIBLE) ? function isExtensible(it) {
|
|
if (!isObject(it)) return false;
|
|
if (ARRAY_BUFFER_NON_EXTENSIBLE && classof(it) == 'ArrayBuffer') return false;
|
|
return $isExtensible ? $isExtensible(it) : true;
|
|
} : $isExtensible;
|
|
|
|
|
|
/***/ }),
|
|
/* 200 */
|
|
/***/ (function(module, exports, __webpack_require__) {
|
|
|
|
// FF26- bug: ArrayBuffers are non-extensible, but Object.isExtensible does not report it
|
|
var fails = __webpack_require__(6);
|
|
|
|
module.exports = fails(function () {
|
|
if (typeof ArrayBuffer == 'function') {
|
|
var buffer = new ArrayBuffer(8);
|
|
// eslint-disable-next-line es/no-object-isextensible, es/no-object-defineproperty -- safe
|
|
if (Object.isExtensible(buffer)) Object.defineProperty(buffer, 'a', { value: 8 });
|
|
}
|
|
});
|
|
|
|
|
|
/***/ }),
|
|
/* 201 */
|
|
/***/ (function(module, exports, __webpack_require__) {
|
|
|
|
var fails = __webpack_require__(6);
|
|
|
|
module.exports = !fails(function () {
|
|
// eslint-disable-next-line es/no-object-isextensible, es/no-object-preventextensions -- required for testing
|
|
return Object.isExtensible(Object.preventExtensions({}));
|
|
});
|
|
|
|
|
|
/***/ }),
|
|
/* 202 */
|
|
/***/ (function(module, exports, __webpack_require__) {
|
|
|
|
var bind = __webpack_require__(111);
|
|
var call = __webpack_require__(7);
|
|
var anObject = __webpack_require__(46);
|
|
var tryToString = __webpack_require__(31);
|
|
var isArrayIteratorMethod = __webpack_require__(203);
|
|
var lengthOfArrayLike = __webpack_require__(63);
|
|
var isPrototypeOf = __webpack_require__(24);
|
|
var getIterator = __webpack_require__(119);
|
|
var getIteratorMethod = __webpack_require__(120);
|
|
var iteratorClose = __webpack_require__(165);
|
|
|
|
var $TypeError = TypeError;
|
|
|
|
var Result = function (stopped, result) {
|
|
this.stopped = stopped;
|
|
this.result = result;
|
|
};
|
|
|
|
var ResultPrototype = Result.prototype;
|
|
|
|
module.exports = function (iterable, unboundFunction, options) {
|
|
var that = options && options.that;
|
|
var AS_ENTRIES = !!(options && options.AS_ENTRIES);
|
|
var IS_RECORD = !!(options && options.IS_RECORD);
|
|
var IS_ITERATOR = !!(options && options.IS_ITERATOR);
|
|
var INTERRUPTED = !!(options && options.INTERRUPTED);
|
|
var fn = bind(unboundFunction, that);
|
|
var iterator, iterFn, index, length, result, next, step;
|
|
|
|
var stop = function (condition) {
|
|
if (iterator) iteratorClose(iterator, 'normal', condition);
|
|
return new Result(true, condition);
|
|
};
|
|
|
|
var callFn = function (value) {
|
|
if (AS_ENTRIES) {
|
|
anObject(value);
|
|
return INTERRUPTED ? fn(value[0], value[1], stop) : fn(value[0], value[1]);
|
|
} return INTERRUPTED ? fn(value, stop) : fn(value);
|
|
};
|
|
|
|
if (IS_RECORD) {
|
|
iterator = iterable.iterator;
|
|
} else if (IS_ITERATOR) {
|
|
iterator = iterable;
|
|
} else {
|
|
iterFn = getIteratorMethod(iterable);
|
|
if (!iterFn) throw $TypeError(tryToString(iterable) + ' is not iterable');
|
|
// optimisation for array iterators
|
|
if (isArrayIteratorMethod(iterFn)) {
|
|
for (index = 0, length = lengthOfArrayLike(iterable); length > index; index++) {
|
|
result = callFn(iterable[index]);
|
|
if (result && isPrototypeOf(ResultPrototype, result)) return result;
|
|
} return new Result(false);
|
|
}
|
|
iterator = getIterator(iterable, iterFn);
|
|
}
|
|
|
|
next = IS_RECORD ? iterable.next : iterator.next;
|
|
while (!(step = call(next, iterator)).done) {
|
|
try {
|
|
result = callFn(step.value);
|
|
} catch (error) {
|
|
iteratorClose(iterator, 'throw', error);
|
|
}
|
|
if (typeof result == 'object' && result && isPrototypeOf(ResultPrototype, result)) return result;
|
|
} return new Result(false);
|
|
};
|
|
|
|
|
|
/***/ }),
|
|
/* 203 */
|
|
/***/ (function(module, exports, __webpack_require__) {
|
|
|
|
var wellKnownSymbol = __webpack_require__(33);
|
|
var Iterators = __webpack_require__(121);
|
|
|
|
var ITERATOR = wellKnownSymbol('iterator');
|
|
var ArrayPrototype = Array.prototype;
|
|
|
|
// check on default Array iterator
|
|
module.exports = function (it) {
|
|
return it !== undefined && (Iterators.Array === it || ArrayPrototype[ITERATOR] === it);
|
|
};
|
|
|
|
|
|
/***/ }),
|
|
/* 204 */
|
|
/***/ (function(module, exports, __webpack_require__) {
|
|
|
|
var wellKnownSymbol = __webpack_require__(33);
|
|
|
|
var ITERATOR = wellKnownSymbol('iterator');
|
|
var SAFE_CLOSING = false;
|
|
|
|
try {
|
|
var called = 0;
|
|
var iteratorWithReturn = {
|
|
next: function () {
|
|
return { done: !!called++ };
|
|
},
|
|
'return': function () {
|
|
SAFE_CLOSING = true;
|
|
}
|
|
};
|
|
iteratorWithReturn[ITERATOR] = function () {
|
|
return this;
|
|
};
|
|
// eslint-disable-next-line es/no-array-from, no-throw-literal -- required for testing
|
|
Array.from(iteratorWithReturn, function () { throw 2; });
|
|
} catch (error) { /* empty */ }
|
|
|
|
module.exports = function (exec, SKIP_CLOSING) {
|
|
if (!SKIP_CLOSING && !SAFE_CLOSING) return false;
|
|
var ITERATION_SUPPORT = false;
|
|
try {
|
|
var object = {};
|
|
object[ITERATOR] = function () {
|
|
return {
|
|
next: function () {
|
|
return { done: ITERATION_SUPPORT = true };
|
|
}
|
|
};
|
|
};
|
|
exec(object);
|
|
} catch (error) { /* empty */ }
|
|
return ITERATION_SUPPORT;
|
|
};
|
|
|
|
|
|
/***/ }),
|
|
/* 205 */
|
|
/***/ (function(module, exports, __webpack_require__) {
|
|
|
|
var isCallable = __webpack_require__(20);
|
|
var isObject = __webpack_require__(19);
|
|
var setPrototypeOf = __webpack_require__(97);
|
|
|
|
// makes subclassing work correct for wrapped built-ins
|
|
module.exports = function ($this, dummy, Wrapper) {
|
|
var NewTarget, NewTargetPrototype;
|
|
if (
|
|
// it can work only with native `setPrototypeOf`
|
|
setPrototypeOf &&
|
|
// we haven't completely correct pre-ES6 way for getting `new.target`, so use this
|
|
isCallable(NewTarget = dummy.constructor) &&
|
|
NewTarget !== Wrapper &&
|
|
isObject(NewTargetPrototype = NewTarget.prototype) &&
|
|
NewTargetPrototype !== Wrapper.prototype
|
|
) setPrototypeOf($this, NewTargetPrototype);
|
|
return $this;
|
|
};
|
|
|
|
|
|
/***/ }),
|
|
/* 206 */
|
|
/***/ (function(module, exports, __webpack_require__) {
|
|
|
|
"use strict";
|
|
|
|
var create = __webpack_require__(74);
|
|
var defineBuiltInAccessor = __webpack_require__(85);
|
|
var defineBuiltIns = __webpack_require__(116);
|
|
var bind = __webpack_require__(111);
|
|
var anInstance = __webpack_require__(157);
|
|
var isNullOrUndefined = __webpack_require__(16);
|
|
var iterate = __webpack_require__(202);
|
|
var defineIterator = __webpack_require__(207);
|
|
var createIterResultObject = __webpack_require__(118);
|
|
var setSpecies = __webpack_require__(208);
|
|
var DESCRIPTORS = __webpack_require__(5);
|
|
var fastKey = __webpack_require__(195).fastKey;
|
|
var InternalStateModule = __webpack_require__(51);
|
|
|
|
var setInternalState = InternalStateModule.set;
|
|
var internalStateGetterFor = InternalStateModule.getterFor;
|
|
|
|
module.exports = {
|
|
getConstructor: function (wrapper, CONSTRUCTOR_NAME, IS_MAP, ADDER) {
|
|
var Constructor = wrapper(function (that, iterable) {
|
|
anInstance(that, Prototype);
|
|
setInternalState(that, {
|
|
type: CONSTRUCTOR_NAME,
|
|
index: create(null),
|
|
first: undefined,
|
|
last: undefined,
|
|
size: 0
|
|
});
|
|
if (!DESCRIPTORS) that.size = 0;
|
|
if (!isNullOrUndefined(iterable)) iterate(iterable, that[ADDER], { that: that, AS_ENTRIES: IS_MAP });
|
|
});
|
|
|
|
var Prototype = Constructor.prototype;
|
|
|
|
var getInternalState = internalStateGetterFor(CONSTRUCTOR_NAME);
|
|
|
|
var define = function (that, key, value) {
|
|
var state = getInternalState(that);
|
|
var entry = getEntry(that, key);
|
|
var previous, index;
|
|
// change existing entry
|
|
if (entry) {
|
|
entry.value = value;
|
|
// create new entry
|
|
} else {
|
|
state.last = entry = {
|
|
index: index = fastKey(key, true),
|
|
key: key,
|
|
value: value,
|
|
previous: previous = state.last,
|
|
next: undefined,
|
|
removed: false
|
|
};
|
|
if (!state.first) state.first = entry;
|
|
if (previous) previous.next = entry;
|
|
if (DESCRIPTORS) state.size++;
|
|
else that.size++;
|
|
// add to index
|
|
if (index !== 'F') state.index[index] = entry;
|
|
} return that;
|
|
};
|
|
|
|
var getEntry = function (that, key) {
|
|
var state = getInternalState(that);
|
|
// fast case
|
|
var index = fastKey(key);
|
|
var entry;
|
|
if (index !== 'F') return state.index[index];
|
|
// frozen object case
|
|
for (entry = state.first; entry; entry = entry.next) {
|
|
if (entry.key == key) return entry;
|
|
}
|
|
};
|
|
|
|
defineBuiltIns(Prototype, {
|
|
// `{ Map, Set }.prototype.clear()` methods
|
|
// https://tc39.es/ecma262/#sec-map.prototype.clear
|
|
// https://tc39.es/ecma262/#sec-set.prototype.clear
|
|
clear: function clear() {
|
|
var that = this;
|
|
var state = getInternalState(that);
|
|
var data = state.index;
|
|
var entry = state.first;
|
|
while (entry) {
|
|
entry.removed = true;
|
|
if (entry.previous) entry.previous = entry.previous.next = undefined;
|
|
delete data[entry.index];
|
|
entry = entry.next;
|
|
}
|
|
state.first = state.last = undefined;
|
|
if (DESCRIPTORS) state.size = 0;
|
|
else that.size = 0;
|
|
},
|
|
// `{ Map, Set }.prototype.delete(key)` methods
|
|
// https://tc39.es/ecma262/#sec-map.prototype.delete
|
|
// https://tc39.es/ecma262/#sec-set.prototype.delete
|
|
'delete': function (key) {
|
|
var that = this;
|
|
var state = getInternalState(that);
|
|
var entry = getEntry(that, key);
|
|
if (entry) {
|
|
var next = entry.next;
|
|
var prev = entry.previous;
|
|
delete state.index[entry.index];
|
|
entry.removed = true;
|
|
if (prev) prev.next = next;
|
|
if (next) next.previous = prev;
|
|
if (state.first == entry) state.first = next;
|
|
if (state.last == entry) state.last = prev;
|
|
if (DESCRIPTORS) state.size--;
|
|
else that.size--;
|
|
} return !!entry;
|
|
},
|
|
// `{ Map, Set }.prototype.forEach(callbackfn, thisArg = undefined)` methods
|
|
// https://tc39.es/ecma262/#sec-map.prototype.foreach
|
|
// https://tc39.es/ecma262/#sec-set.prototype.foreach
|
|
forEach: function forEach(callbackfn /* , that = undefined */) {
|
|
var state = getInternalState(this);
|
|
var boundFunction = bind(callbackfn, arguments.length > 1 ? arguments[1] : undefined);
|
|
var entry;
|
|
while (entry = entry ? entry.next : state.first) {
|
|
boundFunction(entry.value, entry.key, this);
|
|
// revert to the last existing entry
|
|
while (entry && entry.removed) entry = entry.previous;
|
|
}
|
|
},
|
|
// `{ Map, Set}.prototype.has(key)` methods
|
|
// https://tc39.es/ecma262/#sec-map.prototype.has
|
|
// https://tc39.es/ecma262/#sec-set.prototype.has
|
|
has: function has(key) {
|
|
return !!getEntry(this, key);
|
|
}
|
|
});
|
|
|
|
defineBuiltIns(Prototype, IS_MAP ? {
|
|
// `Map.prototype.get(key)` method
|
|
// https://tc39.es/ecma262/#sec-map.prototype.get
|
|
get: function get(key) {
|
|
var entry = getEntry(this, key);
|
|
return entry && entry.value;
|
|
},
|
|
// `Map.prototype.set(key, value)` method
|
|
// https://tc39.es/ecma262/#sec-map.prototype.set
|
|
set: function set(key, value) {
|
|
return define(this, key === 0 ? 0 : key, value);
|
|
}
|
|
} : {
|
|
// `Set.prototype.add(value)` method
|
|
// https://tc39.es/ecma262/#sec-set.prototype.add
|
|
add: function add(value) {
|
|
return define(this, value = value === 0 ? 0 : value, value);
|
|
}
|
|
});
|
|
if (DESCRIPTORS) defineBuiltInAccessor(Prototype, 'size', {
|
|
configurable: true,
|
|
get: function () {
|
|
return getInternalState(this).size;
|
|
}
|
|
});
|
|
return Constructor;
|
|
},
|
|
setStrong: function (Constructor, CONSTRUCTOR_NAME, IS_MAP) {
|
|
var ITERATOR_NAME = CONSTRUCTOR_NAME + ' Iterator';
|
|
var getInternalCollectionState = internalStateGetterFor(CONSTRUCTOR_NAME);
|
|
var getInternalIteratorState = internalStateGetterFor(ITERATOR_NAME);
|
|
// `{ Map, Set }.prototype.{ keys, values, entries, @@iterator }()` methods
|
|
// https://tc39.es/ecma262/#sec-map.prototype.entries
|
|
// https://tc39.es/ecma262/#sec-map.prototype.keys
|
|
// https://tc39.es/ecma262/#sec-map.prototype.values
|
|
// https://tc39.es/ecma262/#sec-map.prototype-@@iterator
|
|
// https://tc39.es/ecma262/#sec-set.prototype.entries
|
|
// https://tc39.es/ecma262/#sec-set.prototype.keys
|
|
// https://tc39.es/ecma262/#sec-set.prototype.values
|
|
// https://tc39.es/ecma262/#sec-set.prototype-@@iterator
|
|
defineIterator(Constructor, CONSTRUCTOR_NAME, function (iterated, kind) {
|
|
setInternalState(this, {
|
|
type: ITERATOR_NAME,
|
|
target: iterated,
|
|
state: getInternalCollectionState(iterated),
|
|
kind: kind,
|
|
last: undefined
|
|
});
|
|
}, function () {
|
|
var state = getInternalIteratorState(this);
|
|
var kind = state.kind;
|
|
var entry = state.last;
|
|
// revert to the last existing entry
|
|
while (entry && entry.removed) entry = entry.previous;
|
|
// get next entry
|
|
if (!state.target || !(state.last = entry = entry ? entry.next : state.state.first)) {
|
|
// or finish the iteration
|
|
state.target = undefined;
|
|
return createIterResultObject(undefined, true);
|
|
}
|
|
// return step by kind
|
|
if (kind == 'keys') return createIterResultObject(entry.key, false);
|
|
if (kind == 'values') return createIterResultObject(entry.value, false);
|
|
return createIterResultObject([entry.key, entry.value], false);
|
|
}, IS_MAP ? 'entries' : 'values', !IS_MAP, true);
|
|
|
|
// `{ Map, Set }.prototype[@@species]` accessors
|
|
// https://tc39.es/ecma262/#sec-get-map-@@species
|
|
// https://tc39.es/ecma262/#sec-get-set-@@species
|
|
setSpecies(CONSTRUCTOR_NAME);
|
|
}
|
|
};
|
|
|
|
|
|
/***/ }),
|
|
/* 207 */
|
|
/***/ (function(module, exports, __webpack_require__) {
|
|
|
|
"use strict";
|
|
|
|
var $ = __webpack_require__(2);
|
|
var call = __webpack_require__(7);
|
|
var IS_PURE = __webpack_require__(35);
|
|
var FunctionName = __webpack_require__(49);
|
|
var isCallable = __webpack_require__(20);
|
|
var createIteratorConstructor = __webpack_require__(186);
|
|
var getPrototypeOf = __webpack_require__(95);
|
|
var setPrototypeOf = __webpack_require__(97);
|
|
var setToStringTag = __webpack_require__(188);
|
|
var createNonEnumerableProperty = __webpack_require__(43);
|
|
var defineBuiltIn = __webpack_require__(47);
|
|
var wellKnownSymbol = __webpack_require__(33);
|
|
var Iterators = __webpack_require__(121);
|
|
var IteratorsCore = __webpack_require__(187);
|
|
|
|
var PROPER_FUNCTION_NAME = FunctionName.PROPER;
|
|
var CONFIGURABLE_FUNCTION_NAME = FunctionName.CONFIGURABLE;
|
|
var IteratorPrototype = IteratorsCore.IteratorPrototype;
|
|
var BUGGY_SAFARI_ITERATORS = IteratorsCore.BUGGY_SAFARI_ITERATORS;
|
|
var ITERATOR = wellKnownSymbol('iterator');
|
|
var KEYS = 'keys';
|
|
var VALUES = 'values';
|
|
var ENTRIES = 'entries';
|
|
|
|
var returnThis = function () { return this; };
|
|
|
|
module.exports = function (Iterable, NAME, IteratorConstructor, next, DEFAULT, IS_SET, FORCED) {
|
|
createIteratorConstructor(IteratorConstructor, NAME, next);
|
|
|
|
var getIterationMethod = function (KIND) {
|
|
if (KIND === DEFAULT && defaultIterator) return defaultIterator;
|
|
if (!BUGGY_SAFARI_ITERATORS && KIND in IterablePrototype) return IterablePrototype[KIND];
|
|
switch (KIND) {
|
|
case KEYS: return function keys() { return new IteratorConstructor(this, KIND); };
|
|
case VALUES: return function values() { return new IteratorConstructor(this, KIND); };
|
|
case ENTRIES: return function entries() { return new IteratorConstructor(this, KIND); };
|
|
} return function () { return new IteratorConstructor(this); };
|
|
};
|
|
|
|
var TO_STRING_TAG = NAME + ' Iterator';
|
|
var INCORRECT_VALUES_NAME = false;
|
|
var IterablePrototype = Iterable.prototype;
|
|
var nativeIterator = IterablePrototype[ITERATOR]
|
|
|| IterablePrototype['@@iterator']
|
|
|| DEFAULT && IterablePrototype[DEFAULT];
|
|
var defaultIterator = !BUGGY_SAFARI_ITERATORS && nativeIterator || getIterationMethod(DEFAULT);
|
|
var anyNativeIterator = NAME == 'Array' ? IterablePrototype.entries || nativeIterator : nativeIterator;
|
|
var CurrentIteratorPrototype, methods, KEY;
|
|
|
|
// fix native
|
|
if (anyNativeIterator) {
|
|
CurrentIteratorPrototype = getPrototypeOf(anyNativeIterator.call(new Iterable()));
|
|
if (CurrentIteratorPrototype !== Object.prototype && CurrentIteratorPrototype.next) {
|
|
if (!IS_PURE && getPrototypeOf(CurrentIteratorPrototype) !== IteratorPrototype) {
|
|
if (setPrototypeOf) {
|
|
setPrototypeOf(CurrentIteratorPrototype, IteratorPrototype);
|
|
} else if (!isCallable(CurrentIteratorPrototype[ITERATOR])) {
|
|
defineBuiltIn(CurrentIteratorPrototype, ITERATOR, returnThis);
|
|
}
|
|
}
|
|
// Set @@toStringTag to native iterators
|
|
setToStringTag(CurrentIteratorPrototype, TO_STRING_TAG, true, true);
|
|
if (IS_PURE) Iterators[TO_STRING_TAG] = returnThis;
|
|
}
|
|
}
|
|
|
|
// fix Array.prototype.{ values, @@iterator }.name in V8 / FF
|
|
if (PROPER_FUNCTION_NAME && DEFAULT == VALUES && nativeIterator && nativeIterator.name !== VALUES) {
|
|
if (!IS_PURE && CONFIGURABLE_FUNCTION_NAME) {
|
|
createNonEnumerableProperty(IterablePrototype, 'name', VALUES);
|
|
} else {
|
|
INCORRECT_VALUES_NAME = true;
|
|
defaultIterator = function values() { return call(nativeIterator, this); };
|
|
}
|
|
}
|
|
|
|
// export additional methods
|
|
if (DEFAULT) {
|
|
methods = {
|
|
values: getIterationMethod(VALUES),
|
|
keys: IS_SET ? defaultIterator : getIterationMethod(KEYS),
|
|
entries: getIterationMethod(ENTRIES)
|
|
};
|
|
if (FORCED) for (KEY in methods) {
|
|
if (BUGGY_SAFARI_ITERATORS || INCORRECT_VALUES_NAME || !(KEY in IterablePrototype)) {
|
|
defineBuiltIn(IterablePrototype, KEY, methods[KEY]);
|
|
}
|
|
} else $({ target: NAME, proto: true, forced: BUGGY_SAFARI_ITERATORS || INCORRECT_VALUES_NAME }, methods);
|
|
}
|
|
|
|
// define iterator
|
|
if ((!IS_PURE || FORCED) && IterablePrototype[ITERATOR] !== defaultIterator) {
|
|
defineBuiltIn(IterablePrototype, ITERATOR, defaultIterator, { name: DEFAULT });
|
|
}
|
|
Iterators[NAME] = defaultIterator;
|
|
|
|
return methods;
|
|
};
|
|
|
|
|
|
/***/ }),
|
|
/* 208 */
|
|
/***/ (function(module, exports, __webpack_require__) {
|
|
|
|
"use strict";
|
|
|
|
var getBuiltIn = __webpack_require__(23);
|
|
var defineBuiltInAccessor = __webpack_require__(85);
|
|
var wellKnownSymbol = __webpack_require__(33);
|
|
var DESCRIPTORS = __webpack_require__(5);
|
|
|
|
var SPECIES = wellKnownSymbol('species');
|
|
|
|
module.exports = function (CONSTRUCTOR_NAME) {
|
|
var Constructor = getBuiltIn(CONSTRUCTOR_NAME);
|
|
|
|
if (DESCRIPTORS && Constructor && !Constructor[SPECIES]) {
|
|
defineBuiltInAccessor(Constructor, SPECIES, {
|
|
configurable: true,
|
|
get: function () { return this; }
|
|
});
|
|
}
|
|
};
|
|
|
|
|
|
/***/ }),
|
|
/* 209 */
|
|
/***/ (function(module, exports, __webpack_require__) {
|
|
|
|
// TODO: Remove this module from `core-js@4` since it's replaced to module below
|
|
__webpack_require__(210);
|
|
|
|
|
|
/***/ }),
|
|
/* 210 */
|
|
/***/ (function(module, exports, __webpack_require__) {
|
|
|
|
"use strict";
|
|
|
|
var FREEZING = __webpack_require__(201);
|
|
var global = __webpack_require__(3);
|
|
var uncurryThis = __webpack_require__(13);
|
|
var defineBuiltIns = __webpack_require__(116);
|
|
var InternalMetadataModule = __webpack_require__(195);
|
|
var collection = __webpack_require__(194);
|
|
var collectionWeak = __webpack_require__(211);
|
|
var isObject = __webpack_require__(19);
|
|
var enforceInternalState = __webpack_require__(51).enforce;
|
|
var fails = __webpack_require__(6);
|
|
var NATIVE_WEAK_MAP = __webpack_require__(52);
|
|
|
|
var $Object = Object;
|
|
// eslint-disable-next-line es/no-array-isarray -- safe
|
|
var isArray = Array.isArray;
|
|
// eslint-disable-next-line es/no-object-isextensible -- safe
|
|
var isExtensible = $Object.isExtensible;
|
|
// eslint-disable-next-line es/no-object-isfrozen -- safe
|
|
var isFrozen = $Object.isFrozen;
|
|
// eslint-disable-next-line es/no-object-issealed -- safe
|
|
var isSealed = $Object.isSealed;
|
|
// eslint-disable-next-line es/no-object-freeze -- safe
|
|
var freeze = $Object.freeze;
|
|
// eslint-disable-next-line es/no-object-seal -- safe
|
|
var seal = $Object.seal;
|
|
|
|
var FROZEN = {};
|
|
var SEALED = {};
|
|
var IS_IE11 = !global.ActiveXObject && 'ActiveXObject' in global;
|
|
var InternalWeakMap;
|
|
|
|
var wrapper = function (init) {
|
|
return function WeakMap() {
|
|
return init(this, arguments.length ? arguments[0] : undefined);
|
|
};
|
|
};
|
|
|
|
// `WeakMap` constructor
|
|
// https://tc39.es/ecma262/#sec-weakmap-constructor
|
|
var $WeakMap = collection('WeakMap', wrapper, collectionWeak);
|
|
var WeakMapPrototype = $WeakMap.prototype;
|
|
var nativeSet = uncurryThis(WeakMapPrototype.set);
|
|
|
|
// Chakra Edge bug: adding frozen arrays to WeakMap unfreeze them
|
|
var hasMSEdgeFreezingBug = function () {
|
|
return FREEZING && fails(function () {
|
|
var frozenArray = freeze([]);
|
|
nativeSet(new $WeakMap(), frozenArray, 1);
|
|
return !isFrozen(frozenArray);
|
|
});
|
|
};
|
|
|
|
// IE11 WeakMap frozen keys fix
|
|
// We can't use feature detection because it crash some old IE builds
|
|
// https://github.com/zloirock/core-js/issues/485
|
|
if (NATIVE_WEAK_MAP) if (IS_IE11) {
|
|
InternalWeakMap = collectionWeak.getConstructor(wrapper, 'WeakMap', true);
|
|
InternalMetadataModule.enable();
|
|
var nativeDelete = uncurryThis(WeakMapPrototype['delete']);
|
|
var nativeHas = uncurryThis(WeakMapPrototype.has);
|
|
var nativeGet = uncurryThis(WeakMapPrototype.get);
|
|
defineBuiltIns(WeakMapPrototype, {
|
|
'delete': function (key) {
|
|
if (isObject(key) && !isExtensible(key)) {
|
|
var state = enforceInternalState(this);
|
|
if (!state.frozen) state.frozen = new InternalWeakMap();
|
|
return nativeDelete(this, key) || state.frozen['delete'](key);
|
|
} return nativeDelete(this, key);
|
|
},
|
|
has: function has(key) {
|
|
if (isObject(key) && !isExtensible(key)) {
|
|
var state = enforceInternalState(this);
|
|
if (!state.frozen) state.frozen = new InternalWeakMap();
|
|
return nativeHas(this, key) || state.frozen.has(key);
|
|
} return nativeHas(this, key);
|
|
},
|
|
get: function get(key) {
|
|
if (isObject(key) && !isExtensible(key)) {
|
|
var state = enforceInternalState(this);
|
|
if (!state.frozen) state.frozen = new InternalWeakMap();
|
|
return nativeHas(this, key) ? nativeGet(this, key) : state.frozen.get(key);
|
|
} return nativeGet(this, key);
|
|
},
|
|
set: function set(key, value) {
|
|
if (isObject(key) && !isExtensible(key)) {
|
|
var state = enforceInternalState(this);
|
|
if (!state.frozen) state.frozen = new InternalWeakMap();
|
|
nativeHas(this, key) ? nativeSet(this, key, value) : state.frozen.set(key, value);
|
|
} else nativeSet(this, key, value);
|
|
return this;
|
|
}
|
|
});
|
|
// Chakra Edge frozen keys fix
|
|
} else if (hasMSEdgeFreezingBug()) {
|
|
defineBuiltIns(WeakMapPrototype, {
|
|
set: function set(key, value) {
|
|
var arrayIntegrityLevel;
|
|
if (isArray(key)) {
|
|
if (isFrozen(key)) arrayIntegrityLevel = FROZEN;
|
|
else if (isSealed(key)) arrayIntegrityLevel = SEALED;
|
|
}
|
|
nativeSet(this, key, value);
|
|
if (arrayIntegrityLevel == FROZEN) freeze(key);
|
|
if (arrayIntegrityLevel == SEALED) seal(key);
|
|
return this;
|
|
}
|
|
});
|
|
}
|
|
|
|
|
|
/***/ }),
|
|
/* 211 */
|
|
/***/ (function(module, exports, __webpack_require__) {
|
|
|
|
"use strict";
|
|
|
|
var uncurryThis = __webpack_require__(13);
|
|
var defineBuiltIns = __webpack_require__(116);
|
|
var getWeakData = __webpack_require__(195).getWeakData;
|
|
var anInstance = __webpack_require__(157);
|
|
var anObject = __webpack_require__(46);
|
|
var isNullOrUndefined = __webpack_require__(16);
|
|
var isObject = __webpack_require__(19);
|
|
var iterate = __webpack_require__(202);
|
|
var ArrayIterationModule = __webpack_require__(126);
|
|
var hasOwn = __webpack_require__(38);
|
|
var InternalStateModule = __webpack_require__(51);
|
|
|
|
var setInternalState = InternalStateModule.set;
|
|
var internalStateGetterFor = InternalStateModule.getterFor;
|
|
var find = ArrayIterationModule.find;
|
|
var findIndex = ArrayIterationModule.findIndex;
|
|
var splice = uncurryThis([].splice);
|
|
var id = 0;
|
|
|
|
// fallback for uncaught frozen keys
|
|
var uncaughtFrozenStore = function (state) {
|
|
return state.frozen || (state.frozen = new UncaughtFrozenStore());
|
|
};
|
|
|
|
var UncaughtFrozenStore = function () {
|
|
this.entries = [];
|
|
};
|
|
|
|
var findUncaughtFrozen = function (store, key) {
|
|
return find(store.entries, function (it) {
|
|
return it[0] === key;
|
|
});
|
|
};
|
|
|
|
UncaughtFrozenStore.prototype = {
|
|
get: function (key) {
|
|
var entry = findUncaughtFrozen(this, key);
|
|
if (entry) return entry[1];
|
|
},
|
|
has: function (key) {
|
|
return !!findUncaughtFrozen(this, key);
|
|
},
|
|
set: function (key, value) {
|
|
var entry = findUncaughtFrozen(this, key);
|
|
if (entry) entry[1] = value;
|
|
else this.entries.push([key, value]);
|
|
},
|
|
'delete': function (key) {
|
|
var index = findIndex(this.entries, function (it) {
|
|
return it[0] === key;
|
|
});
|
|
if (~index) splice(this.entries, index, 1);
|
|
return !!~index;
|
|
}
|
|
};
|
|
|
|
module.exports = {
|
|
getConstructor: function (wrapper, CONSTRUCTOR_NAME, IS_MAP, ADDER) {
|
|
var Constructor = wrapper(function (that, iterable) {
|
|
anInstance(that, Prototype);
|
|
setInternalState(that, {
|
|
type: CONSTRUCTOR_NAME,
|
|
id: id++,
|
|
frozen: undefined
|
|
});
|
|
if (!isNullOrUndefined(iterable)) iterate(iterable, that[ADDER], { that: that, AS_ENTRIES: IS_MAP });
|
|
});
|
|
|
|
var Prototype = Constructor.prototype;
|
|
|
|
var getInternalState = internalStateGetterFor(CONSTRUCTOR_NAME);
|
|
|
|
var define = function (that, key, value) {
|
|
var state = getInternalState(that);
|
|
var data = getWeakData(anObject(key), true);
|
|
if (data === true) uncaughtFrozenStore(state).set(key, value);
|
|
else data[state.id] = value;
|
|
return that;
|
|
};
|
|
|
|
defineBuiltIns(Prototype, {
|
|
// `{ WeakMap, WeakSet }.prototype.delete(key)` methods
|
|
// https://tc39.es/ecma262/#sec-weakmap.prototype.delete
|
|
// https://tc39.es/ecma262/#sec-weakset.prototype.delete
|
|
'delete': function (key) {
|
|
var state = getInternalState(this);
|
|
if (!isObject(key)) return false;
|
|
var data = getWeakData(key);
|
|
if (data === true) return uncaughtFrozenStore(state)['delete'](key);
|
|
return data && hasOwn(data, state.id) && delete data[state.id];
|
|
},
|
|
// `{ WeakMap, WeakSet }.prototype.has(key)` methods
|
|
// https://tc39.es/ecma262/#sec-weakmap.prototype.has
|
|
// https://tc39.es/ecma262/#sec-weakset.prototype.has
|
|
has: function has(key) {
|
|
var state = getInternalState(this);
|
|
if (!isObject(key)) return false;
|
|
var data = getWeakData(key);
|
|
if (data === true) return uncaughtFrozenStore(state).has(key);
|
|
return data && hasOwn(data, state.id);
|
|
}
|
|
});
|
|
|
|
defineBuiltIns(Prototype, IS_MAP ? {
|
|
// `WeakMap.prototype.get(key)` method
|
|
// https://tc39.es/ecma262/#sec-weakmap.prototype.get
|
|
get: function get(key) {
|
|
var state = getInternalState(this);
|
|
if (isObject(key)) {
|
|
var data = getWeakData(key);
|
|
if (data === true) return uncaughtFrozenStore(state).get(key);
|
|
return data ? data[state.id] : undefined;
|
|
}
|
|
},
|
|
// `WeakMap.prototype.set(key, value)` method
|
|
// https://tc39.es/ecma262/#sec-weakmap.prototype.set
|
|
set: function set(key, value) {
|
|
return define(this, key, value);
|
|
}
|
|
} : {
|
|
// `WeakSet.prototype.add(value)` method
|
|
// https://tc39.es/ecma262/#sec-weakset.prototype.add
|
|
add: function add(value) {
|
|
return define(this, value, true);
|
|
}
|
|
});
|
|
|
|
return Constructor;
|
|
}
|
|
};
|
|
|
|
|
|
/***/ }),
|
|
/* 212 */
|
|
/***/ (function(module, exports, __webpack_require__) {
|
|
|
|
var $ = __webpack_require__(2);
|
|
var getCompositeKeyNode = __webpack_require__(191);
|
|
var getBuiltIn = __webpack_require__(23);
|
|
var apply = __webpack_require__(190);
|
|
|
|
// https://github.com/tc39/proposal-richer-keys/tree/master/compositeKey
|
|
$({ global: true, forced: true }, {
|
|
compositeSymbol: function compositeSymbol() {
|
|
if (arguments.length == 1 && typeof arguments[0] == 'string') return getBuiltIn('Symbol')['for'](arguments[0]);
|
|
return apply(getCompositeKeyNode, null, arguments).get('symbol', getBuiltIn('Symbol'));
|
|
}
|
|
});
|
|
|
|
|
|
/***/ }),
|
|
/* 213 */
|
|
/***/ (function(module, exports, __webpack_require__) {
|
|
|
|
"use strict";
|
|
|
|
// https://github.com/tc39/proposal-explicit-resource-management
|
|
var $ = __webpack_require__(2);
|
|
var DESCRIPTORS = __webpack_require__(5);
|
|
var getBuiltIn = __webpack_require__(23);
|
|
var aCallable = __webpack_require__(30);
|
|
var anInstance = __webpack_require__(157);
|
|
var defineBuiltIn = __webpack_require__(47);
|
|
var defineBuiltIns = __webpack_require__(116);
|
|
var defineBuiltInAccessor = __webpack_require__(85);
|
|
var wellKnownSymbol = __webpack_require__(33);
|
|
var InternalStateModule = __webpack_require__(51);
|
|
var addDisposableResource = __webpack_require__(158);
|
|
|
|
var SuppressedError = getBuiltIn('SuppressedError');
|
|
var $ReferenceError = ReferenceError;
|
|
|
|
var DISPOSE = wellKnownSymbol('dispose');
|
|
var TO_STRING_TAG = wellKnownSymbol('toStringTag');
|
|
|
|
var DISPOSABLE_STACK = 'DisposableStack';
|
|
var setInternalState = InternalStateModule.set;
|
|
var getDisposableStackInternalState = InternalStateModule.getterFor(DISPOSABLE_STACK);
|
|
|
|
var HINT = 'sync-dispose';
|
|
var DISPOSED = 'disposed';
|
|
var PENDING = 'pending';
|
|
|
|
var getPendingDisposableStackInternalState = function (stack) {
|
|
var internalState = getDisposableStackInternalState(stack);
|
|
if (internalState.state == DISPOSED) throw $ReferenceError(DISPOSABLE_STACK + ' already disposed');
|
|
return internalState;
|
|
};
|
|
|
|
var $DisposableStack = function DisposableStack() {
|
|
setInternalState(anInstance(this, DisposableStackPrototype), {
|
|
type: DISPOSABLE_STACK,
|
|
state: PENDING,
|
|
stack: []
|
|
});
|
|
|
|
if (!DESCRIPTORS) this.disposed = false;
|
|
};
|
|
|
|
var DisposableStackPrototype = $DisposableStack.prototype;
|
|
|
|
defineBuiltIns(DisposableStackPrototype, {
|
|
dispose: function dispose() {
|
|
var internalState = getDisposableStackInternalState(this);
|
|
if (internalState.state == DISPOSED) return;
|
|
internalState.state = DISPOSED;
|
|
if (!DESCRIPTORS) this.disposed = true;
|
|
var stack = internalState.stack;
|
|
var i = stack.length;
|
|
var thrown = false;
|
|
var suppressed;
|
|
while (i) {
|
|
var disposeMethod = stack[--i];
|
|
stack[i] = null;
|
|
try {
|
|
disposeMethod();
|
|
} catch (errorResult) {
|
|
if (thrown) {
|
|
suppressed = new SuppressedError(errorResult, suppressed);
|
|
} else {
|
|
thrown = true;
|
|
suppressed = errorResult;
|
|
}
|
|
}
|
|
}
|
|
internalState.stack = null;
|
|
if (thrown) throw suppressed;
|
|
},
|
|
use: function use(value) {
|
|
addDisposableResource(getPendingDisposableStackInternalState(this), value, HINT);
|
|
return value;
|
|
},
|
|
adopt: function adopt(value, onDispose) {
|
|
var internalState = getPendingDisposableStackInternalState(this);
|
|
aCallable(onDispose);
|
|
addDisposableResource(internalState, undefined, HINT, function () {
|
|
onDispose(value);
|
|
});
|
|
return value;
|
|
},
|
|
defer: function defer(onDispose) {
|
|
var internalState = getPendingDisposableStackInternalState(this);
|
|
aCallable(onDispose);
|
|
addDisposableResource(internalState, undefined, HINT, onDispose);
|
|
},
|
|
move: function move() {
|
|
var internalState = getPendingDisposableStackInternalState(this);
|
|
var newDisposableStack = new $DisposableStack();
|
|
getDisposableStackInternalState(newDisposableStack).stack = internalState.stack;
|
|
internalState.stack = [];
|
|
internalState.state = DISPOSED;
|
|
if (!DESCRIPTORS) this.disposed = true;
|
|
return newDisposableStack;
|
|
}
|
|
});
|
|
|
|
if (DESCRIPTORS) defineBuiltInAccessor(DisposableStackPrototype, 'disposed', {
|
|
configurable: true,
|
|
get: function disposed() {
|
|
return getDisposableStackInternalState(this).state == DISPOSED;
|
|
}
|
|
});
|
|
|
|
defineBuiltIn(DisposableStackPrototype, DISPOSE, DisposableStackPrototype.dispose, { name: 'dispose' });
|
|
defineBuiltIn(DisposableStackPrototype, TO_STRING_TAG, DISPOSABLE_STACK, { nonWritable: true });
|
|
|
|
$({ global: true, constructor: true }, {
|
|
DisposableStack: $DisposableStack
|
|
});
|
|
|
|
|
|
/***/ }),
|
|
/* 214 */
|
|
/***/ (function(module, exports, __webpack_require__) {
|
|
|
|
var $ = __webpack_require__(2);
|
|
var demethodize = __webpack_require__(215);
|
|
|
|
// `Function.prototype.demethodize` method
|
|
// https://github.com/js-choi/proposal-function-demethodize
|
|
$({ target: 'Function', proto: true, forced: true }, {
|
|
demethodize: demethodize
|
|
});
|
|
|
|
|
|
/***/ }),
|
|
/* 215 */
|
|
/***/ (function(module, exports, __webpack_require__) {
|
|
|
|
"use strict";
|
|
|
|
var uncurryThis = __webpack_require__(13);
|
|
var aCallable = __webpack_require__(30);
|
|
|
|
module.exports = function demethodize() {
|
|
return uncurryThis(aCallable(this));
|
|
};
|
|
|
|
|
|
/***/ }),
|
|
/* 216 */
|
|
/***/ (function(module, exports, __webpack_require__) {
|
|
|
|
var $ = __webpack_require__(2);
|
|
var uncurryThis = __webpack_require__(13);
|
|
var $isCallable = __webpack_require__(20);
|
|
var inspectSource = __webpack_require__(50);
|
|
var hasOwn = __webpack_require__(38);
|
|
var DESCRIPTORS = __webpack_require__(5);
|
|
|
|
// eslint-disable-next-line es/no-object-getownpropertydescriptor -- safe
|
|
var getOwnPropertyDescriptor = Object.getOwnPropertyDescriptor;
|
|
var classRegExp = /^\s*class\b/;
|
|
var exec = uncurryThis(classRegExp.exec);
|
|
|
|
var isClassConstructor = function (argument) {
|
|
try {
|
|
// `Function#toString` throws on some built-it function in some legacy engines
|
|
// (for example, `DOMQuad` and similar in FF41-)
|
|
if (!DESCRIPTORS || !exec(classRegExp, inspectSource(argument))) return false;
|
|
} catch (error) { /* empty */ }
|
|
var prototype = getOwnPropertyDescriptor(argument, 'prototype');
|
|
return !!prototype && hasOwn(prototype, 'writable') && !prototype.writable;
|
|
};
|
|
|
|
// `Function.isCallable` method
|
|
// https://github.com/caitp/TC39-Proposals/blob/trunk/tc39-reflect-isconstructor-iscallable.md
|
|
$({ target: 'Function', stat: true, sham: true, forced: true }, {
|
|
isCallable: function isCallable(argument) {
|
|
return $isCallable(argument) && !isClassConstructor(argument);
|
|
}
|
|
});
|
|
|
|
|
|
/***/ }),
|
|
/* 217 */
|
|
/***/ (function(module, exports, __webpack_require__) {
|
|
|
|
var $ = __webpack_require__(2);
|
|
var isConstructor = __webpack_require__(113);
|
|
|
|
// `Function.isConstructor` method
|
|
// https://github.com/caitp/TC39-Proposals/blob/trunk/tc39-reflect-isconstructor-iscallable.md
|
|
$({ target: 'Function', stat: true, forced: true }, {
|
|
isConstructor: isConstructor
|
|
});
|
|
|
|
|
|
/***/ }),
|
|
/* 218 */
|
|
/***/ (function(module, exports, __webpack_require__) {
|
|
|
|
var wellKnownSymbol = __webpack_require__(33);
|
|
var defineProperty = __webpack_require__(44).f;
|
|
|
|
var METADATA = wellKnownSymbol('metadata');
|
|
var FunctionPrototype = Function.prototype;
|
|
|
|
// Function.prototype[@@metadata]
|
|
// https://github.com/tc39/proposal-decorator-metadata
|
|
if (FunctionPrototype[METADATA] === undefined) {
|
|
defineProperty(FunctionPrototype, METADATA, {
|
|
value: null
|
|
});
|
|
}
|
|
|
|
|
|
/***/ }),
|
|
/* 219 */
|
|
/***/ (function(module, exports, __webpack_require__) {
|
|
|
|
var $ = __webpack_require__(2);
|
|
var demethodize = __webpack_require__(215);
|
|
|
|
// `Function.prototype.unThis` method
|
|
// https://github.com/js-choi/proposal-function-demethodize
|
|
// TODO: Remove from `core-js@4`
|
|
$({ target: 'Function', proto: true, forced: true, name: 'demethodize' }, {
|
|
unThis: demethodize
|
|
});
|
|
|
|
|
|
/***/ }),
|
|
/* 220 */
|
|
/***/ (function(module, exports, __webpack_require__) {
|
|
|
|
"use strict";
|
|
|
|
var $ = __webpack_require__(2);
|
|
var global = __webpack_require__(3);
|
|
var anInstance = __webpack_require__(157);
|
|
var isCallable = __webpack_require__(20);
|
|
var createNonEnumerableProperty = __webpack_require__(43);
|
|
var fails = __webpack_require__(6);
|
|
var hasOwn = __webpack_require__(38);
|
|
var wellKnownSymbol = __webpack_require__(33);
|
|
var IteratorPrototype = __webpack_require__(187).IteratorPrototype;
|
|
var IS_PURE = __webpack_require__(35);
|
|
|
|
var TO_STRING_TAG = wellKnownSymbol('toStringTag');
|
|
|
|
var NativeIterator = global.Iterator;
|
|
|
|
// FF56- have non-standard global helper `Iterator`
|
|
var FORCED = IS_PURE
|
|
|| !isCallable(NativeIterator)
|
|
|| NativeIterator.prototype !== IteratorPrototype
|
|
// FF44- non-standard `Iterator` passes previous tests
|
|
|| !fails(function () { NativeIterator({}); });
|
|
|
|
var IteratorConstructor = function Iterator() {
|
|
anInstance(this, IteratorPrototype);
|
|
};
|
|
|
|
if (!hasOwn(IteratorPrototype, TO_STRING_TAG)) {
|
|
createNonEnumerableProperty(IteratorPrototype, TO_STRING_TAG, 'Iterator');
|
|
}
|
|
|
|
if (FORCED || !hasOwn(IteratorPrototype, 'constructor') || IteratorPrototype.constructor === Object) {
|
|
createNonEnumerableProperty(IteratorPrototype, 'constructor', IteratorConstructor);
|
|
}
|
|
|
|
IteratorConstructor.prototype = IteratorPrototype;
|
|
|
|
// `Iterator` constructor
|
|
// https://github.com/tc39/proposal-iterator-helpers
|
|
$({ global: true, constructor: true, forced: FORCED }, {
|
|
Iterator: IteratorConstructor
|
|
});
|
|
|
|
|
|
/***/ }),
|
|
/* 221 */
|
|
/***/ (function(module, exports, __webpack_require__) {
|
|
|
|
// TODO: Remove from `core-js@4`
|
|
var $ = __webpack_require__(2);
|
|
var indexed = __webpack_require__(222);
|
|
|
|
// `Iterator.prototype.asIndexedPairs` method
|
|
// https://github.com/tc39/proposal-iterator-helpers
|
|
$({ target: 'Iterator', name: 'indexed', proto: true, real: true, forced: true }, {
|
|
asIndexedPairs: indexed
|
|
});
|
|
|
|
|
|
/***/ }),
|
|
/* 222 */
|
|
/***/ (function(module, exports, __webpack_require__) {
|
|
|
|
"use strict";
|
|
|
|
var call = __webpack_require__(7);
|
|
var map = __webpack_require__(223);
|
|
|
|
var callback = function (value, counter) {
|
|
return [counter, value];
|
|
};
|
|
|
|
// `Iterator.prototype.indexed` method
|
|
// https://github.com/tc39/proposal-iterator-helpers
|
|
module.exports = function indexed() {
|
|
return call(map, this, callback);
|
|
};
|
|
|
|
|
|
/***/ }),
|
|
/* 223 */
|
|
/***/ (function(module, exports, __webpack_require__) {
|
|
|
|
"use strict";
|
|
|
|
var call = __webpack_require__(7);
|
|
var aCallable = __webpack_require__(30);
|
|
var anObject = __webpack_require__(46);
|
|
var getIteratorDirect = __webpack_require__(122);
|
|
var createIteratorProxy = __webpack_require__(224);
|
|
var callWithSafeIterationClosing = __webpack_require__(225);
|
|
|
|
var IteratorProxy = createIteratorProxy(function () {
|
|
var iterator = this.iterator;
|
|
var result = anObject(call(this.next, iterator));
|
|
var done = this.done = !!result.done;
|
|
if (!done) return callWithSafeIterationClosing(iterator, this.mapper, [result.value, this.counter++], true);
|
|
});
|
|
|
|
// `Iterator.prototype.map` method
|
|
// https://github.com/tc39/proposal-iterator-helpers
|
|
module.exports = function map(mapper) {
|
|
anObject(this);
|
|
aCallable(mapper);
|
|
return new IteratorProxy(getIteratorDirect(this), {
|
|
mapper: mapper
|
|
});
|
|
};
|
|
|
|
|
|
/***/ }),
|
|
/* 224 */
|
|
/***/ (function(module, exports, __webpack_require__) {
|
|
|
|
"use strict";
|
|
|
|
var call = __webpack_require__(7);
|
|
var create = __webpack_require__(74);
|
|
var createNonEnumerableProperty = __webpack_require__(43);
|
|
var defineBuiltIns = __webpack_require__(116);
|
|
var wellKnownSymbol = __webpack_require__(33);
|
|
var InternalStateModule = __webpack_require__(51);
|
|
var getMethod = __webpack_require__(29);
|
|
var IteratorPrototype = __webpack_require__(187).IteratorPrototype;
|
|
var createIterResultObject = __webpack_require__(118);
|
|
var iteratorClose = __webpack_require__(165);
|
|
|
|
var TO_STRING_TAG = wellKnownSymbol('toStringTag');
|
|
var ITERATOR_HELPER = 'IteratorHelper';
|
|
var WRAP_FOR_VALID_ITERATOR = 'WrapForValidIterator';
|
|
var setInternalState = InternalStateModule.set;
|
|
|
|
var createIteratorProxyPrototype = function (IS_ITERATOR) {
|
|
var getInternalState = InternalStateModule.getterFor(IS_ITERATOR ? WRAP_FOR_VALID_ITERATOR : ITERATOR_HELPER);
|
|
|
|
return defineBuiltIns(create(IteratorPrototype), {
|
|
next: function next() {
|
|
var state = getInternalState(this);
|
|
// for simplification:
|
|
// for `%WrapForValidIteratorPrototype%.next` our `nextHandler` returns `IterResultObject`
|
|
// for `%IteratorHelperPrototype%.next` - just a value
|
|
if (IS_ITERATOR) return state.nextHandler();
|
|
try {
|
|
var result = state.done ? undefined : state.nextHandler();
|
|
return createIterResultObject(result, state.done);
|
|
} catch (error) {
|
|
state.done = true;
|
|
throw error;
|
|
}
|
|
},
|
|
'return': function () {
|
|
var state = getInternalState(this);
|
|
var iterator = state.iterator;
|
|
state.done = true;
|
|
if (IS_ITERATOR) {
|
|
var returnMethod = getMethod(iterator, 'return');
|
|
return returnMethod ? call(returnMethod, iterator) : createIterResultObject(undefined, true);
|
|
}
|
|
if (state.inner) try {
|
|
iteratorClose(state.inner.iterator, 'normal');
|
|
} catch (error) {
|
|
return iteratorClose(iterator, 'throw', error);
|
|
}
|
|
iteratorClose(iterator, 'normal');
|
|
return createIterResultObject(undefined, true);
|
|
}
|
|
});
|
|
};
|
|
|
|
var WrapForValidIteratorPrototype = createIteratorProxyPrototype(true);
|
|
var IteratorHelperPrototype = createIteratorProxyPrototype(false);
|
|
|
|
createNonEnumerableProperty(IteratorHelperPrototype, TO_STRING_TAG, 'Iterator Helper');
|
|
|
|
module.exports = function (nextHandler, IS_ITERATOR) {
|
|
var IteratorProxy = function Iterator(record, state) {
|
|
if (state) {
|
|
state.iterator = record.iterator;
|
|
state.next = record.next;
|
|
} else state = record;
|
|
state.type = IS_ITERATOR ? WRAP_FOR_VALID_ITERATOR : ITERATOR_HELPER;
|
|
state.nextHandler = nextHandler;
|
|
state.counter = 0;
|
|
state.done = false;
|
|
setInternalState(this, state);
|
|
};
|
|
|
|
IteratorProxy.prototype = IS_ITERATOR ? WrapForValidIteratorPrototype : IteratorHelperPrototype;
|
|
|
|
return IteratorProxy;
|
|
};
|
|
|
|
|
|
/***/ }),
|
|
/* 225 */
|
|
/***/ (function(module, exports, __webpack_require__) {
|
|
|
|
var anObject = __webpack_require__(46);
|
|
var iteratorClose = __webpack_require__(165);
|
|
|
|
// call something on iterator step with safe closing on error
|
|
module.exports = function (iterator, fn, value, ENTRIES) {
|
|
try {
|
|
return ENTRIES ? fn(anObject(value)[0], value[1]) : fn(value);
|
|
} catch (error) {
|
|
iteratorClose(iterator, 'throw', error);
|
|
}
|
|
};
|
|
|
|
|
|
/***/ }),
|
|
/* 226 */
|
|
/***/ (function(module, exports, __webpack_require__) {
|
|
|
|
"use strict";
|
|
|
|
// https://github.com/tc39/proposal-explicit-resource-management
|
|
var call = __webpack_require__(7);
|
|
var defineBuiltIn = __webpack_require__(47);
|
|
var getMethod = __webpack_require__(29);
|
|
var hasOwn = __webpack_require__(38);
|
|
var wellKnownSymbol = __webpack_require__(33);
|
|
var IteratorPrototype = __webpack_require__(187).IteratorPrototype;
|
|
|
|
var DISPOSE = wellKnownSymbol('dispose');
|
|
|
|
if (!hasOwn(IteratorPrototype, DISPOSE)) {
|
|
defineBuiltIn(IteratorPrototype, DISPOSE, function () {
|
|
var $return = getMethod(this, 'return');
|
|
if ($return) call($return, this);
|
|
});
|
|
}
|
|
|
|
|
|
/***/ }),
|
|
/* 227 */
|
|
/***/ (function(module, exports, __webpack_require__) {
|
|
|
|
"use strict";
|
|
|
|
var $ = __webpack_require__(2);
|
|
var call = __webpack_require__(7);
|
|
var anObject = __webpack_require__(46);
|
|
var getIteratorDirect = __webpack_require__(122);
|
|
var notANaN = __webpack_require__(168);
|
|
var toPositiveInteger = __webpack_require__(169);
|
|
var createIteratorProxy = __webpack_require__(224);
|
|
|
|
var IteratorProxy = createIteratorProxy(function () {
|
|
var iterator = this.iterator;
|
|
var next = this.next;
|
|
var result, done;
|
|
while (this.remaining) {
|
|
this.remaining--;
|
|
result = anObject(call(next, iterator));
|
|
done = this.done = !!result.done;
|
|
if (done) return;
|
|
}
|
|
result = anObject(call(next, iterator));
|
|
done = this.done = !!result.done;
|
|
if (!done) return result.value;
|
|
});
|
|
|
|
// `Iterator.prototype.drop` method
|
|
// https://github.com/tc39/proposal-iterator-helpers
|
|
$({ target: 'Iterator', proto: true, real: true }, {
|
|
drop: function drop(limit) {
|
|
anObject(this);
|
|
var remaining = toPositiveInteger(notANaN(+limit));
|
|
return new IteratorProxy(getIteratorDirect(this), {
|
|
remaining: remaining
|
|
});
|
|
}
|
|
});
|
|
|
|
|
|
/***/ }),
|
|
/* 228 */
|
|
/***/ (function(module, exports, __webpack_require__) {
|
|
|
|
"use strict";
|
|
|
|
var $ = __webpack_require__(2);
|
|
var iterate = __webpack_require__(202);
|
|
var aCallable = __webpack_require__(30);
|
|
var anObject = __webpack_require__(46);
|
|
var getIteratorDirect = __webpack_require__(122);
|
|
|
|
// `Iterator.prototype.every` method
|
|
// https://github.com/tc39/proposal-iterator-helpers
|
|
$({ target: 'Iterator', proto: true, real: true }, {
|
|
every: function every(predicate) {
|
|
anObject(this);
|
|
aCallable(predicate);
|
|
var record = getIteratorDirect(this);
|
|
var counter = 0;
|
|
return !iterate(record, function (value, stop) {
|
|
if (!predicate(value, counter++)) return stop();
|
|
}, { IS_RECORD: true, INTERRUPTED: true }).stopped;
|
|
}
|
|
});
|
|
|
|
|
|
/***/ }),
|
|
/* 229 */
|
|
/***/ (function(module, exports, __webpack_require__) {
|
|
|
|
"use strict";
|
|
|
|
var $ = __webpack_require__(2);
|
|
var call = __webpack_require__(7);
|
|
var aCallable = __webpack_require__(30);
|
|
var anObject = __webpack_require__(46);
|
|
var getIteratorDirect = __webpack_require__(122);
|
|
var createIteratorProxy = __webpack_require__(224);
|
|
var callWithSafeIterationClosing = __webpack_require__(225);
|
|
|
|
var IteratorProxy = createIteratorProxy(function () {
|
|
var iterator = this.iterator;
|
|
var predicate = this.predicate;
|
|
var next = this.next;
|
|
var result, done, value;
|
|
while (true) {
|
|
result = anObject(call(next, iterator));
|
|
done = this.done = !!result.done;
|
|
if (done) return;
|
|
value = result.value;
|
|
if (callWithSafeIterationClosing(iterator, predicate, [value, this.counter++], true)) return value;
|
|
}
|
|
});
|
|
|
|
// `Iterator.prototype.filter` method
|
|
// https://github.com/tc39/proposal-iterator-helpers
|
|
$({ target: 'Iterator', proto: true, real: true }, {
|
|
filter: function filter(predicate) {
|
|
anObject(this);
|
|
aCallable(predicate);
|
|
return new IteratorProxy(getIteratorDirect(this), {
|
|
predicate: predicate
|
|
});
|
|
}
|
|
});
|
|
|
|
|
|
/***/ }),
|
|
/* 230 */
|
|
/***/ (function(module, exports, __webpack_require__) {
|
|
|
|
"use strict";
|
|
|
|
var $ = __webpack_require__(2);
|
|
var iterate = __webpack_require__(202);
|
|
var aCallable = __webpack_require__(30);
|
|
var anObject = __webpack_require__(46);
|
|
var getIteratorDirect = __webpack_require__(122);
|
|
|
|
// `Iterator.prototype.find` method
|
|
// https://github.com/tc39/proposal-iterator-helpers
|
|
$({ target: 'Iterator', proto: true, real: true }, {
|
|
find: function find(predicate) {
|
|
anObject(this);
|
|
aCallable(predicate);
|
|
var record = getIteratorDirect(this);
|
|
var counter = 0;
|
|
return iterate(record, function (value, stop) {
|
|
if (predicate(value, counter++)) return stop(value);
|
|
}, { IS_RECORD: true, INTERRUPTED: true }).result;
|
|
}
|
|
});
|
|
|
|
|
|
/***/ }),
|
|
/* 231 */
|
|
/***/ (function(module, exports, __webpack_require__) {
|
|
|
|
"use strict";
|
|
|
|
var $ = __webpack_require__(2);
|
|
var call = __webpack_require__(7);
|
|
var aCallable = __webpack_require__(30);
|
|
var anObject = __webpack_require__(46);
|
|
var getIteratorDirect = __webpack_require__(122);
|
|
var getIteratorFlattenable = __webpack_require__(232);
|
|
var createIteratorProxy = __webpack_require__(224);
|
|
var iteratorClose = __webpack_require__(165);
|
|
|
|
var IteratorProxy = createIteratorProxy(function () {
|
|
var iterator = this.iterator;
|
|
var mapper = this.mapper;
|
|
var result, inner;
|
|
|
|
while (true) {
|
|
if (inner = this.inner) try {
|
|
result = anObject(call(inner.next, inner.iterator));
|
|
if (!result.done) return result.value;
|
|
this.inner = null;
|
|
} catch (error) { iteratorClose(iterator, 'throw', error); }
|
|
|
|
result = anObject(call(this.next, iterator));
|
|
|
|
if (this.done = !!result.done) return;
|
|
|
|
try {
|
|
this.inner = getIteratorFlattenable(mapper(result.value, this.counter++));
|
|
} catch (error) { iteratorClose(iterator, 'throw', error); }
|
|
}
|
|
});
|
|
|
|
// `Iterator.prototype.flatMap` method
|
|
// https://github.com/tc39/proposal-iterator-helpers
|
|
$({ target: 'Iterator', proto: true, real: true }, {
|
|
flatMap: function flatMap(mapper) {
|
|
anObject(this);
|
|
aCallable(mapper);
|
|
return new IteratorProxy(getIteratorDirect(this), {
|
|
mapper: mapper,
|
|
inner: null
|
|
});
|
|
}
|
|
});
|
|
|
|
|
|
/***/ }),
|
|
/* 232 */
|
|
/***/ (function(module, exports, __webpack_require__) {
|
|
|
|
var call = __webpack_require__(7);
|
|
var anObject = __webpack_require__(46);
|
|
var getIteratorDirect = __webpack_require__(122);
|
|
var getIteratorMethod = __webpack_require__(120);
|
|
|
|
module.exports = function (obj) {
|
|
var object = anObject(obj);
|
|
var method = getIteratorMethod(object);
|
|
return getIteratorDirect(anObject(method !== undefined ? call(method, object) : object));
|
|
};
|
|
|
|
|
|
/***/ }),
|
|
/* 233 */
|
|
/***/ (function(module, exports, __webpack_require__) {
|
|
|
|
"use strict";
|
|
|
|
var $ = __webpack_require__(2);
|
|
var iterate = __webpack_require__(202);
|
|
var aCallable = __webpack_require__(30);
|
|
var anObject = __webpack_require__(46);
|
|
var getIteratorDirect = __webpack_require__(122);
|
|
|
|
// `Iterator.prototype.forEach` method
|
|
// https://github.com/tc39/proposal-iterator-helpers
|
|
$({ target: 'Iterator', proto: true, real: true }, {
|
|
forEach: function forEach(fn) {
|
|
anObject(this);
|
|
aCallable(fn);
|
|
var record = getIteratorDirect(this);
|
|
var counter = 0;
|
|
iterate(record, function (value) {
|
|
fn(value, counter++);
|
|
}, { IS_RECORD: true });
|
|
}
|
|
});
|
|
|
|
|
|
/***/ }),
|
|
/* 234 */
|
|
/***/ (function(module, exports, __webpack_require__) {
|
|
|
|
var $ = __webpack_require__(2);
|
|
var call = __webpack_require__(7);
|
|
var toObject = __webpack_require__(39);
|
|
var isPrototypeOf = __webpack_require__(24);
|
|
var IteratorPrototype = __webpack_require__(187).IteratorPrototype;
|
|
var createIteratorProxy = __webpack_require__(224);
|
|
var getIteratorFlattenable = __webpack_require__(232);
|
|
|
|
var IteratorProxy = createIteratorProxy(function () {
|
|
return call(this.next, this.iterator);
|
|
}, true);
|
|
|
|
// `Iterator.from` method
|
|
// https://github.com/tc39/proposal-iterator-helpers
|
|
$({ target: 'Iterator', stat: true }, {
|
|
from: function from(O) {
|
|
var iteratorRecord = getIteratorFlattenable(typeof O == 'string' ? toObject(O) : O);
|
|
return isPrototypeOf(IteratorPrototype, iteratorRecord.iterator)
|
|
? iteratorRecord.iterator
|
|
: new IteratorProxy(iteratorRecord);
|
|
}
|
|
});
|
|
|
|
|
|
/***/ }),
|
|
/* 235 */
|
|
/***/ (function(module, exports, __webpack_require__) {
|
|
|
|
// TODO: Remove from `core-js@4`
|
|
var $ = __webpack_require__(2);
|
|
var indexed = __webpack_require__(222);
|
|
|
|
// `Iterator.prototype.indexed` method
|
|
// https://github.com/tc39/proposal-iterator-helpers
|
|
$({ target: 'Iterator', proto: true, real: true, forced: true }, {
|
|
indexed: indexed
|
|
});
|
|
|
|
|
|
/***/ }),
|
|
/* 236 */
|
|
/***/ (function(module, exports, __webpack_require__) {
|
|
|
|
var $ = __webpack_require__(2);
|
|
var map = __webpack_require__(223);
|
|
|
|
// `Iterator.prototype.map` method
|
|
// https://github.com/tc39/proposal-iterator-helpers
|
|
$({ target: 'Iterator', proto: true, real: true }, {
|
|
map: map
|
|
});
|
|
|
|
|
|
/***/ }),
|
|
/* 237 */
|
|
/***/ (function(module, exports, __webpack_require__) {
|
|
|
|
"use strict";
|
|
|
|
/* eslint-disable es/no-bigint -- safe */
|
|
var $ = __webpack_require__(2);
|
|
var NumericRangeIterator = __webpack_require__(185);
|
|
|
|
var $TypeError = TypeError;
|
|
|
|
// `Iterator.range` method
|
|
// https://github.com/tc39/proposal-Number.range
|
|
$({ target: 'Iterator', stat: true, forced: true }, {
|
|
range: function range(start, end, option) {
|
|
if (typeof start == 'number') return new NumericRangeIterator(start, end, option, 'number', 0, 1);
|
|
if (typeof start == 'bigint') return new NumericRangeIterator(start, end, option, 'bigint', BigInt(0), BigInt(1));
|
|
throw $TypeError('Incorrect Iterator.range arguments');
|
|
}
|
|
});
|
|
|
|
|
|
/***/ }),
|
|
/* 238 */
|
|
/***/ (function(module, exports, __webpack_require__) {
|
|
|
|
"use strict";
|
|
|
|
var $ = __webpack_require__(2);
|
|
var iterate = __webpack_require__(202);
|
|
var aCallable = __webpack_require__(30);
|
|
var anObject = __webpack_require__(46);
|
|
var getIteratorDirect = __webpack_require__(122);
|
|
|
|
var $TypeError = TypeError;
|
|
|
|
// `Iterator.prototype.reduce` method
|
|
// https://github.com/tc39/proposal-iterator-helpers
|
|
$({ target: 'Iterator', proto: true, real: true }, {
|
|
reduce: function reduce(reducer /* , initialValue */) {
|
|
anObject(this);
|
|
aCallable(reducer);
|
|
var record = getIteratorDirect(this);
|
|
var noInitial = arguments.length < 2;
|
|
var accumulator = noInitial ? undefined : arguments[1];
|
|
var counter = 0;
|
|
iterate(record, function (value) {
|
|
if (noInitial) {
|
|
noInitial = false;
|
|
accumulator = value;
|
|
} else {
|
|
accumulator = reducer(accumulator, value, counter);
|
|
}
|
|
counter++;
|
|
}, { IS_RECORD: true });
|
|
if (noInitial) throw $TypeError('Reduce of empty iterator with no initial value');
|
|
return accumulator;
|
|
}
|
|
});
|
|
|
|
|
|
/***/ }),
|
|
/* 239 */
|
|
/***/ (function(module, exports, __webpack_require__) {
|
|
|
|
"use strict";
|
|
|
|
var $ = __webpack_require__(2);
|
|
var iterate = __webpack_require__(202);
|
|
var aCallable = __webpack_require__(30);
|
|
var anObject = __webpack_require__(46);
|
|
var getIteratorDirect = __webpack_require__(122);
|
|
|
|
// `Iterator.prototype.some` method
|
|
// https://github.com/tc39/proposal-iterator-helpers
|
|
$({ target: 'Iterator', proto: true, real: true }, {
|
|
some: function some(predicate) {
|
|
anObject(this);
|
|
aCallable(predicate);
|
|
var record = getIteratorDirect(this);
|
|
var counter = 0;
|
|
return iterate(record, function (value, stop) {
|
|
if (predicate(value, counter++)) return stop();
|
|
}, { IS_RECORD: true, INTERRUPTED: true }).stopped;
|
|
}
|
|
});
|
|
|
|
|
|
/***/ }),
|
|
/* 240 */
|
|
/***/ (function(module, exports, __webpack_require__) {
|
|
|
|
"use strict";
|
|
|
|
var $ = __webpack_require__(2);
|
|
var call = __webpack_require__(7);
|
|
var anObject = __webpack_require__(46);
|
|
var getIteratorDirect = __webpack_require__(122);
|
|
var notANaN = __webpack_require__(168);
|
|
var toPositiveInteger = __webpack_require__(169);
|
|
var createIteratorProxy = __webpack_require__(224);
|
|
var iteratorClose = __webpack_require__(165);
|
|
|
|
var IteratorProxy = createIteratorProxy(function () {
|
|
var iterator = this.iterator;
|
|
if (!this.remaining--) {
|
|
this.done = true;
|
|
return iteratorClose(iterator, 'normal', undefined);
|
|
}
|
|
var result = anObject(call(this.next, iterator));
|
|
var done = this.done = !!result.done;
|
|
if (!done) return result.value;
|
|
});
|
|
|
|
// `Iterator.prototype.take` method
|
|
// https://github.com/tc39/proposal-iterator-helpers
|
|
$({ target: 'Iterator', proto: true, real: true }, {
|
|
take: function take(limit) {
|
|
anObject(this);
|
|
var remaining = toPositiveInteger(notANaN(+limit));
|
|
return new IteratorProxy(getIteratorDirect(this), {
|
|
remaining: remaining
|
|
});
|
|
}
|
|
});
|
|
|
|
|
|
/***/ }),
|
|
/* 241 */
|
|
/***/ (function(module, exports, __webpack_require__) {
|
|
|
|
"use strict";
|
|
|
|
var $ = __webpack_require__(2);
|
|
var anObject = __webpack_require__(46);
|
|
var iterate = __webpack_require__(202);
|
|
var getIteratorDirect = __webpack_require__(122);
|
|
|
|
var push = [].push;
|
|
|
|
// `Iterator.prototype.toArray` method
|
|
// https://github.com/tc39/proposal-iterator-helpers
|
|
$({ target: 'Iterator', proto: true, real: true }, {
|
|
toArray: function toArray() {
|
|
var result = [];
|
|
iterate(getIteratorDirect(anObject(this)), push, { that: result, IS_RECORD: true });
|
|
return result;
|
|
}
|
|
});
|
|
|
|
|
|
/***/ }),
|
|
/* 242 */
|
|
/***/ (function(module, exports, __webpack_require__) {
|
|
|
|
"use strict";
|
|
|
|
var $ = __webpack_require__(2);
|
|
var anObject = __webpack_require__(46);
|
|
var AsyncFromSyncIterator = __webpack_require__(115);
|
|
var WrapAsyncIterator = __webpack_require__(177);
|
|
var getIteratorDirect = __webpack_require__(122);
|
|
|
|
// `Iterator.prototype.toAsync` method
|
|
// https://github.com/tc39/proposal-async-iterator-helpers
|
|
$({ target: 'Iterator', proto: true, real: true }, {
|
|
toAsync: function toAsync() {
|
|
return new WrapAsyncIterator(getIteratorDirect(new AsyncFromSyncIterator(getIteratorDirect(anObject(this)))));
|
|
}
|
|
});
|
|
|
|
|
|
/***/ }),
|
|
/* 243 */
|
|
/***/ (function(module, exports, __webpack_require__) {
|
|
|
|
var $ = __webpack_require__(2);
|
|
var NATIVE_RAW_JSON = __webpack_require__(244);
|
|
var isRawJSON = __webpack_require__(245);
|
|
|
|
// `JSON.parse` method
|
|
// https://tc39.es/proposal-json-parse-with-source/#sec-json.israwjson
|
|
// https://github.com/tc39/proposal-json-parse-with-source
|
|
$({ target: 'JSON', stat: true, forced: !NATIVE_RAW_JSON }, {
|
|
isRawJSON: isRawJSON
|
|
});
|
|
|
|
|
|
/***/ }),
|
|
/* 244 */
|
|
/***/ (function(module, exports, __webpack_require__) {
|
|
|
|
/* eslint-disable es/no-json -- safe */
|
|
var fails = __webpack_require__(6);
|
|
|
|
module.exports = !fails(function () {
|
|
var unsafeInt = '9007199254740993';
|
|
var raw = JSON.rawJSON(unsafeInt);
|
|
return !JSON.isRawJSON(raw) || JSON.stringify(raw) !== unsafeInt;
|
|
});
|
|
|
|
|
|
/***/ }),
|
|
/* 245 */
|
|
/***/ (function(module, exports, __webpack_require__) {
|
|
|
|
var isObject = __webpack_require__(19);
|
|
var getInternalState = __webpack_require__(51).get;
|
|
|
|
module.exports = function isRawJSON(O) {
|
|
if (!isObject(O)) return false;
|
|
var state = getInternalState(O);
|
|
return !!state && state.type === 'RawJSON';
|
|
};
|
|
|
|
|
|
/***/ }),
|
|
/* 246 */
|
|
/***/ (function(module, exports, __webpack_require__) {
|
|
|
|
"use strict";
|
|
|
|
var $ = __webpack_require__(2);
|
|
var DESCRIPTORS = __webpack_require__(5);
|
|
var global = __webpack_require__(3);
|
|
var getBuiltIn = __webpack_require__(23);
|
|
var uncurryThis = __webpack_require__(13);
|
|
var call = __webpack_require__(7);
|
|
var isCallable = __webpack_require__(20);
|
|
var isObject = __webpack_require__(19);
|
|
var isArray = __webpack_require__(69);
|
|
var hasOwn = __webpack_require__(38);
|
|
var toString = __webpack_require__(88);
|
|
var lengthOfArrayLike = __webpack_require__(63);
|
|
var createProperty = __webpack_require__(198);
|
|
var fails = __webpack_require__(6);
|
|
var parseJSONString = __webpack_require__(247);
|
|
var NATIVE_SYMBOL = __webpack_require__(26);
|
|
|
|
var JSON = global.JSON;
|
|
var Number = global.Number;
|
|
var SyntaxError = global.SyntaxError;
|
|
var nativeParse = JSON && JSON.parse;
|
|
var enumerableOwnProperties = getBuiltIn('Object', 'keys');
|
|
// eslint-disable-next-line es/no-object-getownpropertydescriptor -- safe
|
|
var getOwnPropertyDescriptor = Object.getOwnPropertyDescriptor;
|
|
var at = uncurryThis(''.charAt);
|
|
var slice = uncurryThis(''.slice);
|
|
var exec = uncurryThis(/./.exec);
|
|
var push = uncurryThis([].push);
|
|
|
|
var IS_DIGIT = /^\d$/;
|
|
var IS_NON_ZERO_DIGIT = /^[1-9]$/;
|
|
var IS_NUMBER_START = /^(-|\d)$/;
|
|
var IS_WHITESPACE = /^[\t\n\r ]$/;
|
|
|
|
var PRIMITIVE = 0;
|
|
var OBJECT = 1;
|
|
|
|
var $parse = function (source, reviver) {
|
|
source = toString(source);
|
|
var context = new Context(source, 0, '');
|
|
var root = context.parse();
|
|
var value = root.value;
|
|
var endIndex = context.skip(IS_WHITESPACE, root.end);
|
|
if (endIndex < source.length) {
|
|
throw SyntaxError('Unexpected extra character: "' + at(source, endIndex) + '" after the parsed data at: ' + endIndex);
|
|
}
|
|
return isCallable(reviver) ? internalize({ '': value }, '', reviver, root) : value;
|
|
};
|
|
|
|
var internalize = function (holder, name, reviver, node) {
|
|
var val = holder[name];
|
|
var unmodified = node && val === node.value;
|
|
var context = unmodified && typeof node.source == 'string' ? { source: node.source } : {};
|
|
var elementRecordsLen, keys, len, i, P;
|
|
if (isObject(val)) {
|
|
var nodeIsArray = isArray(val);
|
|
var nodes = unmodified ? node.nodes : nodeIsArray ? [] : {};
|
|
if (nodeIsArray) {
|
|
elementRecordsLen = nodes.length;
|
|
len = lengthOfArrayLike(val);
|
|
for (i = 0; i < len; i++) {
|
|
internalizeProperty(val, i, internalize(val, '' + i, reviver, i < elementRecordsLen ? nodes[i] : undefined));
|
|
}
|
|
} else {
|
|
keys = enumerableOwnProperties(val);
|
|
len = lengthOfArrayLike(keys);
|
|
for (i = 0; i < len; i++) {
|
|
P = keys[i];
|
|
internalizeProperty(val, P, internalize(val, P, reviver, hasOwn(nodes, P) ? nodes[P] : undefined));
|
|
}
|
|
}
|
|
}
|
|
return call(reviver, holder, name, val, context);
|
|
};
|
|
|
|
var internalizeProperty = function (object, key, value) {
|
|
if (DESCRIPTORS) {
|
|
var descriptor = getOwnPropertyDescriptor(object, key);
|
|
if (descriptor && !descriptor.configurable) return;
|
|
}
|
|
if (value === undefined) delete object[key];
|
|
else createProperty(object, key, value);
|
|
};
|
|
|
|
var Node = function (value, end, source, nodes) {
|
|
this.value = value;
|
|
this.end = end;
|
|
this.source = source;
|
|
this.nodes = nodes;
|
|
};
|
|
|
|
var Context = function (source, index) {
|
|
this.source = source;
|
|
this.index = index;
|
|
};
|
|
|
|
// https://www.json.org/json-en.html
|
|
Context.prototype = {
|
|
fork: function (nextIndex) {
|
|
return new Context(this.source, nextIndex);
|
|
},
|
|
parse: function () {
|
|
var source = this.source;
|
|
var i = this.skip(IS_WHITESPACE, this.index);
|
|
var fork = this.fork(i);
|
|
var chr = at(source, i);
|
|
if (exec(IS_NUMBER_START, chr)) return fork.number();
|
|
switch (chr) {
|
|
case '{':
|
|
return fork.object();
|
|
case '[':
|
|
return fork.array();
|
|
case '"':
|
|
return fork.string();
|
|
case 't':
|
|
return fork.keyword(true);
|
|
case 'f':
|
|
return fork.keyword(false);
|
|
case 'n':
|
|
return fork.keyword(null);
|
|
} throw SyntaxError('Unexpected character: "' + chr + '" at: ' + i);
|
|
},
|
|
node: function (type, value, start, end, nodes) {
|
|
return new Node(value, end, type ? null : slice(this.source, start, end), nodes);
|
|
},
|
|
object: function () {
|
|
var source = this.source;
|
|
var i = this.index + 1;
|
|
var expectKeypair = false;
|
|
var object = {};
|
|
var nodes = {};
|
|
while (i < source.length) {
|
|
i = this.until(['"', '}'], i);
|
|
if (at(source, i) == '}' && !expectKeypair) {
|
|
i++;
|
|
break;
|
|
}
|
|
// Parsing the key
|
|
var result = this.fork(i).string();
|
|
var key = result.value;
|
|
i = result.end;
|
|
i = this.until([':'], i) + 1;
|
|
// Parsing value
|
|
i = this.skip(IS_WHITESPACE, i);
|
|
result = this.fork(i).parse();
|
|
createProperty(nodes, key, result);
|
|
createProperty(object, key, result.value);
|
|
i = this.until([',', '}'], result.end);
|
|
var chr = at(source, i);
|
|
if (chr == ',') {
|
|
expectKeypair = true;
|
|
i++;
|
|
} else if (chr == '}') {
|
|
i++;
|
|
break;
|
|
}
|
|
}
|
|
return this.node(OBJECT, object, this.index, i, nodes);
|
|
},
|
|
array: function () {
|
|
var source = this.source;
|
|
var i = this.index + 1;
|
|
var expectElement = false;
|
|
var array = [];
|
|
var nodes = [];
|
|
while (i < source.length) {
|
|
i = this.skip(IS_WHITESPACE, i);
|
|
if (at(source, i) == ']' && !expectElement) {
|
|
i++;
|
|
break;
|
|
}
|
|
var result = this.fork(i).parse();
|
|
push(nodes, result);
|
|
push(array, result.value);
|
|
i = this.until([',', ']'], result.end);
|
|
if (at(source, i) == ',') {
|
|
expectElement = true;
|
|
i++;
|
|
} else if (at(source, i) == ']') {
|
|
i++;
|
|
break;
|
|
}
|
|
}
|
|
return this.node(OBJECT, array, this.index, i, nodes);
|
|
},
|
|
string: function () {
|
|
var index = this.index;
|
|
var parsed = parseJSONString(this.source, this.index + 1);
|
|
return this.node(PRIMITIVE, parsed.value, index, parsed.end);
|
|
},
|
|
number: function () {
|
|
var source = this.source;
|
|
var startIndex = this.index;
|
|
var i = startIndex;
|
|
if (at(source, i) == '-') i++;
|
|
if (at(source, i) == '0') i++;
|
|
else if (exec(IS_NON_ZERO_DIGIT, at(source, i))) i = this.skip(IS_DIGIT, ++i);
|
|
else throw SyntaxError('Failed to parse number at: ' + i);
|
|
if (at(source, i) == '.') i = this.skip(IS_DIGIT, ++i);
|
|
if (at(source, i) == 'e' || at(source, i) == 'E') {
|
|
i++;
|
|
if (at(source, i) == '+' || at(source, i) == '-') i++;
|
|
var exponentStartIndex = i;
|
|
i = this.skip(IS_DIGIT, i);
|
|
if (exponentStartIndex == i) throw SyntaxError("Failed to parse number's exponent value at: " + i);
|
|
}
|
|
return this.node(PRIMITIVE, Number(slice(source, startIndex, i)), startIndex, i);
|
|
},
|
|
keyword: function (value) {
|
|
var keyword = '' + value;
|
|
var index = this.index;
|
|
var endIndex = index + keyword.length;
|
|
if (slice(this.source, index, endIndex) != keyword) throw SyntaxError('Failed to parse value at: ' + index);
|
|
return this.node(PRIMITIVE, value, index, endIndex);
|
|
},
|
|
skip: function (regex, i) {
|
|
var source = this.source;
|
|
for (; i < source.length; i++) if (!exec(regex, at(source, i))) break;
|
|
return i;
|
|
},
|
|
until: function (array, i) {
|
|
i = this.skip(IS_WHITESPACE, i);
|
|
var chr = at(this.source, i);
|
|
for (var j = 0; j < array.length; j++) if (array[j] == chr) return i;
|
|
throw SyntaxError('Unexpected character: "' + chr + '" at: ' + i);
|
|
}
|
|
};
|
|
|
|
var NO_SOURCE_SUPPORT = fails(function () {
|
|
var unsafeInt = '9007199254740993';
|
|
var source;
|
|
nativeParse(unsafeInt, function (key, value, context) {
|
|
source = context.source;
|
|
});
|
|
return source !== unsafeInt;
|
|
});
|
|
|
|
var PROPER_BASE_PARSE = NATIVE_SYMBOL && !fails(function () {
|
|
// Safari 9 bug
|
|
return 1 / nativeParse('-0 \t') !== -Infinity;
|
|
});
|
|
|
|
// `JSON.parse` method
|
|
// https://tc39.es/ecma262/#sec-json.parse
|
|
// https://github.com/tc39/proposal-json-parse-with-source
|
|
$({ target: 'JSON', stat: true, forced: NO_SOURCE_SUPPORT }, {
|
|
parse: function parse(text, reviver) {
|
|
return PROPER_BASE_PARSE && !isCallable(reviver) ? nativeParse(text) : $parse(text, reviver);
|
|
}
|
|
});
|
|
|
|
|
|
/***/ }),
|
|
/* 247 */
|
|
/***/ (function(module, exports, __webpack_require__) {
|
|
|
|
var uncurryThis = __webpack_require__(13);
|
|
var hasOwn = __webpack_require__(38);
|
|
|
|
var $SyntaxError = SyntaxError;
|
|
var $parseInt = parseInt;
|
|
var fromCharCode = String.fromCharCode;
|
|
var at = uncurryThis(''.charAt);
|
|
var slice = uncurryThis(''.slice);
|
|
var exec = uncurryThis(/./.exec);
|
|
|
|
var codePoints = {
|
|
'\\"': '"',
|
|
'\\\\': '\\',
|
|
'\\/': '/',
|
|
'\\b': '\b',
|
|
'\\f': '\f',
|
|
'\\n': '\n',
|
|
'\\r': '\r',
|
|
'\\t': '\t'
|
|
};
|
|
|
|
var IS_4_HEX_DIGITS = /^[\da-f]{4}$/i;
|
|
// eslint-disable-next-line regexp/no-control-character -- safe
|
|
var IS_C0_CONTROL_CODE = /^[\u0000-\u001F]$/;
|
|
|
|
module.exports = function (source, i) {
|
|
var unterminated = true;
|
|
var value = '';
|
|
while (i < source.length) {
|
|
var chr = at(source, i);
|
|
if (chr == '\\') {
|
|
var twoChars = slice(source, i, i + 2);
|
|
if (hasOwn(codePoints, twoChars)) {
|
|
value += codePoints[twoChars];
|
|
i += 2;
|
|
} else if (twoChars == '\\u') {
|
|
i += 2;
|
|
var fourHexDigits = slice(source, i, i + 4);
|
|
if (!exec(IS_4_HEX_DIGITS, fourHexDigits)) throw $SyntaxError('Bad Unicode escape at: ' + i);
|
|
value += fromCharCode($parseInt(fourHexDigits, 16));
|
|
i += 4;
|
|
} else throw $SyntaxError('Unknown escape sequence: "' + twoChars + '"');
|
|
} else if (chr == '"') {
|
|
unterminated = false;
|
|
i++;
|
|
break;
|
|
} else {
|
|
if (exec(IS_C0_CONTROL_CODE, chr)) throw $SyntaxError('Bad control character in string literal at: ' + i);
|
|
value += chr;
|
|
i++;
|
|
}
|
|
}
|
|
if (unterminated) throw $SyntaxError('Unterminated string at: ' + i);
|
|
return { value: value, end: i };
|
|
};
|
|
|
|
|
|
/***/ }),
|
|
/* 248 */
|
|
/***/ (function(module, exports, __webpack_require__) {
|
|
|
|
"use strict";
|
|
|
|
var $ = __webpack_require__(2);
|
|
var FREEZING = __webpack_require__(201);
|
|
var NATIVE_RAW_JSON = __webpack_require__(244);
|
|
var getBuiltIn = __webpack_require__(23);
|
|
var call = __webpack_require__(7);
|
|
var uncurryThis = __webpack_require__(13);
|
|
var isCallable = __webpack_require__(20);
|
|
var isRawJSON = __webpack_require__(245);
|
|
var toString = __webpack_require__(88);
|
|
var createProperty = __webpack_require__(198);
|
|
var parseJSONString = __webpack_require__(247);
|
|
var getReplacerFunction = __webpack_require__(249);
|
|
var uid = __webpack_require__(40);
|
|
var setInternalState = __webpack_require__(51).set;
|
|
|
|
var $String = String;
|
|
var $SyntaxError = SyntaxError;
|
|
var parse = getBuiltIn('JSON', 'parse');
|
|
var $stringify = getBuiltIn('JSON', 'stringify');
|
|
var create = getBuiltIn('Object', 'create');
|
|
var freeze = getBuiltIn('Object', 'freeze');
|
|
var at = uncurryThis(''.charAt);
|
|
var slice = uncurryThis(''.slice);
|
|
var exec = uncurryThis(/./.exec);
|
|
var push = uncurryThis([].push);
|
|
|
|
var MARK = uid();
|
|
var MARK_LENGTH = MARK.length;
|
|
var ERROR_MESSAGE = 'Unacceptable as raw JSON';
|
|
var IS_WHITESPACE = /^[\t\n\r ]$/;
|
|
|
|
// `JSON.parse` method
|
|
// https://tc39.es/proposal-json-parse-with-source/#sec-json.israwjson
|
|
// https://github.com/tc39/proposal-json-parse-with-source
|
|
$({ target: 'JSON', stat: true, forced: !NATIVE_RAW_JSON }, {
|
|
rawJSON: function rawJSON(text) {
|
|
var jsonString = toString(text);
|
|
if (jsonString == '' || exec(IS_WHITESPACE, at(jsonString, 0)) || exec(IS_WHITESPACE, at(jsonString, jsonString.length - 1))) {
|
|
throw $SyntaxError(ERROR_MESSAGE);
|
|
}
|
|
var parsed = parse(jsonString);
|
|
if (typeof parsed == 'object' && parsed !== null) throw $SyntaxError(ERROR_MESSAGE);
|
|
var obj = create(null);
|
|
setInternalState(obj, { type: 'RawJSON' });
|
|
createProperty(obj, 'rawJSON', jsonString);
|
|
return FREEZING ? freeze(obj) : obj;
|
|
}
|
|
});
|
|
|
|
// `JSON.stringify` method
|
|
// https://tc39.es/ecma262/#sec-json.stringify
|
|
// https://github.com/tc39/proposal-json-parse-with-source
|
|
if ($stringify) $({ target: 'JSON', stat: true, arity: 3, forced: !NATIVE_RAW_JSON }, {
|
|
stringify: function stringify(text, replacer, space) {
|
|
var replacerFunction = getReplacerFunction(replacer);
|
|
var rawStrings = [];
|
|
|
|
var json = $stringify(text, function (key, value) {
|
|
// some old implementations (like WebKit) could pass numbers as keys
|
|
var v = isCallable(replacerFunction) ? call(replacerFunction, this, $String(key), value) : value;
|
|
return isRawJSON(v) ? MARK + (push(rawStrings, v.rawJSON) - 1) : v;
|
|
}, space);
|
|
|
|
if (typeof json != 'string') return json;
|
|
|
|
var result = '';
|
|
var length = json.length;
|
|
|
|
for (var i = 0; i < length; i++) {
|
|
var chr = at(json, i);
|
|
if (chr == '"') {
|
|
var end = parseJSONString(json, ++i).end - 1;
|
|
var string = slice(json, i, end);
|
|
result += slice(string, 0, MARK_LENGTH) == MARK
|
|
? rawStrings[slice(string, MARK_LENGTH)]
|
|
: '"' + string + '"';
|
|
i = end;
|
|
} else result += chr;
|
|
}
|
|
|
|
return result;
|
|
}
|
|
});
|
|
|
|
|
|
/***/ }),
|
|
/* 249 */
|
|
/***/ (function(module, exports, __webpack_require__) {
|
|
|
|
var uncurryThis = __webpack_require__(13);
|
|
var isArray = __webpack_require__(69);
|
|
var isCallable = __webpack_require__(20);
|
|
var classof = __webpack_require__(14);
|
|
var toString = __webpack_require__(88);
|
|
|
|
var push = uncurryThis([].push);
|
|
|
|
module.exports = function (replacer) {
|
|
if (isCallable(replacer)) return replacer;
|
|
if (!isArray(replacer)) return;
|
|
var rawLength = replacer.length;
|
|
var keys = [];
|
|
for (var i = 0; i < rawLength; i++) {
|
|
var element = replacer[i];
|
|
if (typeof element == 'string') push(keys, element);
|
|
else if (typeof element == 'number' || classof(element) == 'Number' || classof(element) == 'String') push(keys, toString(element));
|
|
}
|
|
var keysLength = keys.length;
|
|
var root = true;
|
|
return function (key, value) {
|
|
if (root) {
|
|
root = false;
|
|
return value;
|
|
}
|
|
if (isArray(this)) return value;
|
|
for (var j = 0; j < keysLength; j++) if (keys[j] === key) return value;
|
|
};
|
|
};
|
|
|
|
|
|
/***/ }),
|
|
/* 250 */
|
|
/***/ (function(module, exports, __webpack_require__) {
|
|
|
|
"use strict";
|
|
|
|
var $ = __webpack_require__(2);
|
|
var aMap = __webpack_require__(251);
|
|
var remove = __webpack_require__(136).remove;
|
|
|
|
// `Map.prototype.deleteAll` method
|
|
// https://github.com/tc39/proposal-collection-methods
|
|
$({ target: 'Map', proto: true, real: true, forced: true }, {
|
|
deleteAll: function deleteAll(/* ...elements */) {
|
|
var collection = aMap(this);
|
|
var allDeleted = true;
|
|
var wasDeleted;
|
|
for (var k = 0, len = arguments.length; k < len; k++) {
|
|
wasDeleted = remove(collection, arguments[k]);
|
|
allDeleted = allDeleted && wasDeleted;
|
|
} return !!allDeleted;
|
|
}
|
|
});
|
|
|
|
|
|
/***/ }),
|
|
/* 251 */
|
|
/***/ (function(module, exports, __webpack_require__) {
|
|
|
|
var has = __webpack_require__(136).has;
|
|
|
|
// Perform ? RequireInternalSlot(M, [[MapData]])
|
|
module.exports = function (it) {
|
|
has(it);
|
|
return it;
|
|
};
|
|
|
|
|
|
/***/ }),
|
|
/* 252 */
|
|
/***/ (function(module, exports, __webpack_require__) {
|
|
|
|
"use strict";
|
|
|
|
var $ = __webpack_require__(2);
|
|
var aMap = __webpack_require__(251);
|
|
var MapHelpers = __webpack_require__(136);
|
|
|
|
var get = MapHelpers.get;
|
|
var has = MapHelpers.has;
|
|
var set = MapHelpers.set;
|
|
|
|
// `Map.prototype.emplace` method
|
|
// https://github.com/tc39/proposal-upsert
|
|
$({ target: 'Map', proto: true, real: true, forced: true }, {
|
|
emplace: function emplace(key, handler) {
|
|
var map = aMap(this);
|
|
var value, inserted;
|
|
if (has(map, key)) {
|
|
value = get(map, key);
|
|
if ('update' in handler) {
|
|
value = handler.update(value, key, map);
|
|
set(map, key, value);
|
|
} return value;
|
|
}
|
|
inserted = handler.insert(key, map);
|
|
set(map, key, inserted);
|
|
return inserted;
|
|
}
|
|
});
|
|
|
|
|
|
/***/ }),
|
|
/* 253 */
|
|
/***/ (function(module, exports, __webpack_require__) {
|
|
|
|
"use strict";
|
|
|
|
var $ = __webpack_require__(2);
|
|
var bind = __webpack_require__(111);
|
|
var aMap = __webpack_require__(251);
|
|
var iterate = __webpack_require__(143);
|
|
|
|
// `Map.prototype.every` method
|
|
// https://github.com/tc39/proposal-collection-methods
|
|
$({ target: 'Map', proto: true, real: true, forced: true }, {
|
|
every: function every(callbackfn /* , thisArg */) {
|
|
var map = aMap(this);
|
|
var boundFunction = bind(callbackfn, arguments.length > 1 ? arguments[1] : undefined);
|
|
return iterate(map, function (value, key) {
|
|
if (!boundFunction(value, key, map)) return false;
|
|
}, true) !== false;
|
|
}
|
|
});
|
|
|
|
|
|
/***/ }),
|
|
/* 254 */
|
|
/***/ (function(module, exports, __webpack_require__) {
|
|
|
|
"use strict";
|
|
|
|
var $ = __webpack_require__(2);
|
|
var bind = __webpack_require__(111);
|
|
var aMap = __webpack_require__(251);
|
|
var MapHelpers = __webpack_require__(136);
|
|
var iterate = __webpack_require__(143);
|
|
|
|
var Map = MapHelpers.Map;
|
|
var set = MapHelpers.set;
|
|
|
|
// `Map.prototype.filter` method
|
|
// https://github.com/tc39/proposal-collection-methods
|
|
$({ target: 'Map', proto: true, real: true, forced: true }, {
|
|
filter: function filter(callbackfn /* , thisArg */) {
|
|
var map = aMap(this);
|
|
var boundFunction = bind(callbackfn, arguments.length > 1 ? arguments[1] : undefined);
|
|
var newMap = new Map();
|
|
iterate(map, function (value, key) {
|
|
if (boundFunction(value, key, map)) set(newMap, key, value);
|
|
});
|
|
return newMap;
|
|
}
|
|
});
|
|
|
|
|
|
/***/ }),
|
|
/* 255 */
|
|
/***/ (function(module, exports, __webpack_require__) {
|
|
|
|
"use strict";
|
|
|
|
var $ = __webpack_require__(2);
|
|
var bind = __webpack_require__(111);
|
|
var aMap = __webpack_require__(251);
|
|
var iterate = __webpack_require__(143);
|
|
|
|
// `Map.prototype.find` method
|
|
// https://github.com/tc39/proposal-collection-methods
|
|
$({ target: 'Map', proto: true, real: true, forced: true }, {
|
|
find: function find(callbackfn /* , thisArg */) {
|
|
var map = aMap(this);
|
|
var boundFunction = bind(callbackfn, arguments.length > 1 ? arguments[1] : undefined);
|
|
var result = iterate(map, function (value, key) {
|
|
if (boundFunction(value, key, map)) return { value: value };
|
|
}, true);
|
|
return result && result.value;
|
|
}
|
|
});
|
|
|
|
|
|
/***/ }),
|
|
/* 256 */
|
|
/***/ (function(module, exports, __webpack_require__) {
|
|
|
|
"use strict";
|
|
|
|
var $ = __webpack_require__(2);
|
|
var bind = __webpack_require__(111);
|
|
var aMap = __webpack_require__(251);
|
|
var iterate = __webpack_require__(143);
|
|
|
|
// `Map.prototype.findKey` method
|
|
// https://github.com/tc39/proposal-collection-methods
|
|
$({ target: 'Map', proto: true, real: true, forced: true }, {
|
|
findKey: function findKey(callbackfn /* , thisArg */) {
|
|
var map = aMap(this);
|
|
var boundFunction = bind(callbackfn, arguments.length > 1 ? arguments[1] : undefined);
|
|
var result = iterate(map, function (value, key) {
|
|
if (boundFunction(value, key, map)) return { key: key };
|
|
}, true);
|
|
return result && result.key;
|
|
}
|
|
});
|
|
|
|
|
|
/***/ }),
|
|
/* 257 */
|
|
/***/ (function(module, exports, __webpack_require__) {
|
|
|
|
var $ = __webpack_require__(2);
|
|
var from = __webpack_require__(258);
|
|
|
|
// `Map.from` method
|
|
// https://tc39.github.io/proposal-setmap-offrom/#sec-map.from
|
|
$({ target: 'Map', stat: true, forced: true }, {
|
|
from: from
|
|
});
|
|
|
|
|
|
/***/ }),
|
|
/* 258 */
|
|
/***/ (function(module, exports, __webpack_require__) {
|
|
|
|
"use strict";
|
|
|
|
// https://tc39.github.io/proposal-setmap-offrom/
|
|
var bind = __webpack_require__(111);
|
|
var call = __webpack_require__(7);
|
|
var aCallable = __webpack_require__(30);
|
|
var aConstructor = __webpack_require__(259);
|
|
var isNullOrUndefined = __webpack_require__(16);
|
|
var iterate = __webpack_require__(202);
|
|
|
|
var push = [].push;
|
|
|
|
module.exports = function from(source /* , mapFn, thisArg */) {
|
|
var length = arguments.length;
|
|
var mapFn = length > 1 ? arguments[1] : undefined;
|
|
var mapping, array, n, boundFunction;
|
|
aConstructor(this);
|
|
mapping = mapFn !== undefined;
|
|
if (mapping) aCallable(mapFn);
|
|
if (isNullOrUndefined(source)) return new this();
|
|
array = [];
|
|
if (mapping) {
|
|
n = 0;
|
|
boundFunction = bind(mapFn, length > 2 ? arguments[2] : undefined);
|
|
iterate(source, function (nextItem) {
|
|
call(push, array, boundFunction(nextItem, n++));
|
|
});
|
|
} else {
|
|
iterate(source, push, { that: array });
|
|
}
|
|
return new this(array);
|
|
};
|
|
|
|
|
|
/***/ }),
|
|
/* 259 */
|
|
/***/ (function(module, exports, __webpack_require__) {
|
|
|
|
var isConstructor = __webpack_require__(113);
|
|
var tryToString = __webpack_require__(31);
|
|
|
|
var $TypeError = TypeError;
|
|
|
|
// `Assert: IsConstructor(argument) is true`
|
|
module.exports = function (argument) {
|
|
if (isConstructor(argument)) return argument;
|
|
throw $TypeError(tryToString(argument) + ' is not a constructor');
|
|
};
|
|
|
|
|
|
/***/ }),
|
|
/* 260 */
|
|
/***/ (function(module, exports, __webpack_require__) {
|
|
|
|
"use strict";
|
|
|
|
var $ = __webpack_require__(2);
|
|
var uncurryThis = __webpack_require__(13);
|
|
var aCallable = __webpack_require__(30);
|
|
var requireObjectCoercible = __webpack_require__(15);
|
|
var iterate = __webpack_require__(202);
|
|
var MapHelpers = __webpack_require__(136);
|
|
|
|
var Map = MapHelpers.Map;
|
|
var has = MapHelpers.has;
|
|
var get = MapHelpers.get;
|
|
var set = MapHelpers.set;
|
|
var push = uncurryThis([].push);
|
|
|
|
// `Map.groupBy` method
|
|
// https://github.com/tc39/proposal-array-grouping
|
|
$({ target: 'Map', stat: true, forced: true }, {
|
|
groupBy: function groupBy(items, callbackfn) {
|
|
requireObjectCoercible(items);
|
|
aCallable(callbackfn);
|
|
var map = new Map();
|
|
var k = 0;
|
|
iterate(items, function (value) {
|
|
var key = callbackfn(value, k++);
|
|
if (!has(map, key)) set(map, key, [value]);
|
|
else push(get(map, key), value);
|
|
});
|
|
return map;
|
|
}
|
|
});
|
|
|
|
|
|
/***/ }),
|
|
/* 261 */
|
|
/***/ (function(module, exports, __webpack_require__) {
|
|
|
|
"use strict";
|
|
|
|
var $ = __webpack_require__(2);
|
|
var sameValueZero = __webpack_require__(262);
|
|
var aMap = __webpack_require__(251);
|
|
var iterate = __webpack_require__(143);
|
|
|
|
// `Map.prototype.includes` method
|
|
// https://github.com/tc39/proposal-collection-methods
|
|
$({ target: 'Map', proto: true, real: true, forced: true }, {
|
|
includes: function includes(searchElement) {
|
|
return iterate(aMap(this), function (value) {
|
|
if (sameValueZero(value, searchElement)) return true;
|
|
}, true) === true;
|
|
}
|
|
});
|
|
|
|
|
|
/***/ }),
|
|
/* 262 */
|
|
/***/ (function(module, exports) {
|
|
|
|
// `SameValueZero` abstract operation
|
|
// https://tc39.es/ecma262/#sec-samevaluezero
|
|
module.exports = function (x, y) {
|
|
// eslint-disable-next-line no-self-compare -- NaN check
|
|
return x === y || x != x && y != y;
|
|
};
|
|
|
|
|
|
/***/ }),
|
|
/* 263 */
|
|
/***/ (function(module, exports, __webpack_require__) {
|
|
|
|
"use strict";
|
|
|
|
var $ = __webpack_require__(2);
|
|
var call = __webpack_require__(7);
|
|
var iterate = __webpack_require__(202);
|
|
var isCallable = __webpack_require__(20);
|
|
var aCallable = __webpack_require__(30);
|
|
var Map = __webpack_require__(136).Map;
|
|
|
|
// `Map.keyBy` method
|
|
// https://github.com/tc39/proposal-collection-methods
|
|
$({ target: 'Map', stat: true, forced: true }, {
|
|
keyBy: function keyBy(iterable, keyDerivative) {
|
|
var C = isCallable(this) ? this : Map;
|
|
var newMap = new C();
|
|
aCallable(keyDerivative);
|
|
var setter = aCallable(newMap.set);
|
|
iterate(iterable, function (element) {
|
|
call(setter, newMap, keyDerivative(element), element);
|
|
});
|
|
return newMap;
|
|
}
|
|
});
|
|
|
|
|
|
/***/ }),
|
|
/* 264 */
|
|
/***/ (function(module, exports, __webpack_require__) {
|
|
|
|
"use strict";
|
|
|
|
var $ = __webpack_require__(2);
|
|
var aMap = __webpack_require__(251);
|
|
var iterate = __webpack_require__(143);
|
|
|
|
// `Map.prototype.keyOf` method
|
|
// https://github.com/tc39/proposal-collection-methods
|
|
$({ target: 'Map', proto: true, real: true, forced: true }, {
|
|
keyOf: function keyOf(searchElement) {
|
|
var result = iterate(aMap(this), function (value, key) {
|
|
if (value === searchElement) return { key: key };
|
|
}, true);
|
|
return result && result.key;
|
|
}
|
|
});
|
|
|
|
|
|
/***/ }),
|
|
/* 265 */
|
|
/***/ (function(module, exports, __webpack_require__) {
|
|
|
|
"use strict";
|
|
|
|
var $ = __webpack_require__(2);
|
|
var bind = __webpack_require__(111);
|
|
var aMap = __webpack_require__(251);
|
|
var MapHelpers = __webpack_require__(136);
|
|
var iterate = __webpack_require__(143);
|
|
|
|
var Map = MapHelpers.Map;
|
|
var set = MapHelpers.set;
|
|
|
|
// `Map.prototype.mapKeys` method
|
|
// https://github.com/tc39/proposal-collection-methods
|
|
$({ target: 'Map', proto: true, real: true, forced: true }, {
|
|
mapKeys: function mapKeys(callbackfn /* , thisArg */) {
|
|
var map = aMap(this);
|
|
var boundFunction = bind(callbackfn, arguments.length > 1 ? arguments[1] : undefined);
|
|
var newMap = new Map();
|
|
iterate(map, function (value, key) {
|
|
set(newMap, boundFunction(value, key, map), value);
|
|
});
|
|
return newMap;
|
|
}
|
|
});
|
|
|
|
|
|
/***/ }),
|
|
/* 266 */
|
|
/***/ (function(module, exports, __webpack_require__) {
|
|
|
|
"use strict";
|
|
|
|
var $ = __webpack_require__(2);
|
|
var bind = __webpack_require__(111);
|
|
var aMap = __webpack_require__(251);
|
|
var MapHelpers = __webpack_require__(136);
|
|
var iterate = __webpack_require__(143);
|
|
|
|
var Map = MapHelpers.Map;
|
|
var set = MapHelpers.set;
|
|
|
|
// `Map.prototype.mapValues` method
|
|
// https://github.com/tc39/proposal-collection-methods
|
|
$({ target: 'Map', proto: true, real: true, forced: true }, {
|
|
mapValues: function mapValues(callbackfn /* , thisArg */) {
|
|
var map = aMap(this);
|
|
var boundFunction = bind(callbackfn, arguments.length > 1 ? arguments[1] : undefined);
|
|
var newMap = new Map();
|
|
iterate(map, function (value, key) {
|
|
set(newMap, key, boundFunction(value, key, map));
|
|
});
|
|
return newMap;
|
|
}
|
|
});
|
|
|
|
|
|
/***/ }),
|
|
/* 267 */
|
|
/***/ (function(module, exports, __webpack_require__) {
|
|
|
|
"use strict";
|
|
|
|
var $ = __webpack_require__(2);
|
|
var aMap = __webpack_require__(251);
|
|
var iterate = __webpack_require__(202);
|
|
var set = __webpack_require__(136).set;
|
|
|
|
// `Map.prototype.merge` method
|
|
// https://github.com/tc39/proposal-collection-methods
|
|
$({ target: 'Map', proto: true, real: true, arity: 1, forced: true }, {
|
|
// eslint-disable-next-line no-unused-vars -- required for `.length`
|
|
merge: function merge(iterable /* ...iterables */) {
|
|
var map = aMap(this);
|
|
var argumentsLength = arguments.length;
|
|
var i = 0;
|
|
while (i < argumentsLength) {
|
|
iterate(arguments[i++], function (key, value) {
|
|
set(map, key, value);
|
|
}, { AS_ENTRIES: true });
|
|
}
|
|
return map;
|
|
}
|
|
});
|
|
|
|
|
|
/***/ }),
|
|
/* 268 */
|
|
/***/ (function(module, exports, __webpack_require__) {
|
|
|
|
var $ = __webpack_require__(2);
|
|
var of = __webpack_require__(269);
|
|
|
|
// `Map.of` method
|
|
// https://tc39.github.io/proposal-setmap-offrom/#sec-map.of
|
|
$({ target: 'Map', stat: true, forced: true }, {
|
|
of: of
|
|
});
|
|
|
|
|
|
/***/ }),
|
|
/* 269 */
|
|
/***/ (function(module, exports, __webpack_require__) {
|
|
|
|
"use strict";
|
|
|
|
var arraySlice = __webpack_require__(270);
|
|
|
|
// https://tc39.github.io/proposal-setmap-offrom/
|
|
module.exports = function of() {
|
|
return new this(arraySlice(arguments));
|
|
};
|
|
|
|
|
|
/***/ }),
|
|
/* 270 */
|
|
/***/ (function(module, exports, __webpack_require__) {
|
|
|
|
var uncurryThis = __webpack_require__(13);
|
|
|
|
module.exports = uncurryThis([].slice);
|
|
|
|
|
|
/***/ }),
|
|
/* 271 */
|
|
/***/ (function(module, exports, __webpack_require__) {
|
|
|
|
"use strict";
|
|
|
|
var $ = __webpack_require__(2);
|
|
var aCallable = __webpack_require__(30);
|
|
var aMap = __webpack_require__(251);
|
|
var iterate = __webpack_require__(143);
|
|
|
|
var $TypeError = TypeError;
|
|
|
|
// `Map.prototype.reduce` method
|
|
// https://github.com/tc39/proposal-collection-methods
|
|
$({ target: 'Map', proto: true, real: true, forced: true }, {
|
|
reduce: function reduce(callbackfn /* , initialValue */) {
|
|
var map = aMap(this);
|
|
var noInitial = arguments.length < 2;
|
|
var accumulator = noInitial ? undefined : arguments[1];
|
|
aCallable(callbackfn);
|
|
iterate(map, function (value, key) {
|
|
if (noInitial) {
|
|
noInitial = false;
|
|
accumulator = value;
|
|
} else {
|
|
accumulator = callbackfn(accumulator, value, key, map);
|
|
}
|
|
});
|
|
if (noInitial) throw $TypeError('Reduce of empty map with no initial value');
|
|
return accumulator;
|
|
}
|
|
});
|
|
|
|
|
|
/***/ }),
|
|
/* 272 */
|
|
/***/ (function(module, exports, __webpack_require__) {
|
|
|
|
"use strict";
|
|
|
|
var $ = __webpack_require__(2);
|
|
var bind = __webpack_require__(111);
|
|
var aMap = __webpack_require__(251);
|
|
var iterate = __webpack_require__(143);
|
|
|
|
// `Map.prototype.some` method
|
|
// https://github.com/tc39/proposal-collection-methods
|
|
$({ target: 'Map', proto: true, real: true, forced: true }, {
|
|
some: function some(callbackfn /* , thisArg */) {
|
|
var map = aMap(this);
|
|
var boundFunction = bind(callbackfn, arguments.length > 1 ? arguments[1] : undefined);
|
|
return iterate(map, function (value, key) {
|
|
if (boundFunction(value, key, map)) return true;
|
|
}, true) === true;
|
|
}
|
|
});
|
|
|
|
|
|
/***/ }),
|
|
/* 273 */
|
|
/***/ (function(module, exports, __webpack_require__) {
|
|
|
|
"use strict";
|
|
|
|
var $ = __webpack_require__(2);
|
|
var aCallable = __webpack_require__(30);
|
|
var aMap = __webpack_require__(251);
|
|
var MapHelpers = __webpack_require__(136);
|
|
|
|
var $TypeError = TypeError;
|
|
var get = MapHelpers.get;
|
|
var has = MapHelpers.has;
|
|
var set = MapHelpers.set;
|
|
|
|
// `Map.prototype.update` method
|
|
// https://github.com/tc39/proposal-collection-methods
|
|
$({ target: 'Map', proto: true, real: true, forced: true }, {
|
|
update: function update(key, callback /* , thunk */) {
|
|
var map = aMap(this);
|
|
var length = arguments.length;
|
|
aCallable(callback);
|
|
var isPresentInMap = has(map, key);
|
|
if (!isPresentInMap && length < 3) {
|
|
throw $TypeError('Updating absent value');
|
|
}
|
|
var value = isPresentInMap ? get(map, key) : aCallable(length > 2 ? arguments[2] : undefined)(key, map);
|
|
set(map, key, callback(value, key, map));
|
|
return map;
|
|
}
|
|
});
|
|
|
|
|
|
/***/ }),
|
|
/* 274 */
|
|
/***/ (function(module, exports, __webpack_require__) {
|
|
|
|
"use strict";
|
|
|
|
// TODO: remove from `core-js@4`
|
|
var $ = __webpack_require__(2);
|
|
var upsert = __webpack_require__(275);
|
|
|
|
// `Map.prototype.updateOrInsert` method (replaced by `Map.prototype.emplace`)
|
|
// https://github.com/thumbsupep/proposal-upsert
|
|
$({ target: 'Map', proto: true, real: true, name: 'upsert', forced: true }, {
|
|
updateOrInsert: upsert
|
|
});
|
|
|
|
|
|
/***/ }),
|
|
/* 275 */
|
|
/***/ (function(module, exports, __webpack_require__) {
|
|
|
|
"use strict";
|
|
|
|
var call = __webpack_require__(7);
|
|
var aCallable = __webpack_require__(30);
|
|
var isCallable = __webpack_require__(20);
|
|
var anObject = __webpack_require__(46);
|
|
|
|
var $TypeError = TypeError;
|
|
|
|
// `Map.prototype.upsert` method
|
|
// https://github.com/tc39/proposal-upsert
|
|
module.exports = function upsert(key, updateFn /* , insertFn */) {
|
|
var map = anObject(this);
|
|
var get = aCallable(map.get);
|
|
var has = aCallable(map.has);
|
|
var set = aCallable(map.set);
|
|
var insertFn = arguments.length > 2 ? arguments[2] : undefined;
|
|
var value;
|
|
if (!isCallable(updateFn) && !isCallable(insertFn)) {
|
|
throw $TypeError('At least one callback required');
|
|
}
|
|
if (call(has, map, key)) {
|
|
value = call(get, map, key);
|
|
if (isCallable(updateFn)) {
|
|
value = updateFn(value);
|
|
call(set, map, key, value);
|
|
}
|
|
} else if (isCallable(insertFn)) {
|
|
value = insertFn();
|
|
call(set, map, key, value);
|
|
} return value;
|
|
};
|
|
|
|
|
|
/***/ }),
|
|
/* 276 */
|
|
/***/ (function(module, exports, __webpack_require__) {
|
|
|
|
"use strict";
|
|
|
|
// TODO: remove from `core-js@4`
|
|
var $ = __webpack_require__(2);
|
|
var upsert = __webpack_require__(275);
|
|
|
|
// `Map.prototype.upsert` method (replaced by `Map.prototype.emplace`)
|
|
// https://github.com/thumbsupep/proposal-upsert
|
|
$({ target: 'Map', proto: true, real: true, forced: true }, {
|
|
upsert: upsert
|
|
});
|
|
|
|
|
|
/***/ }),
|
|
/* 277 */
|
|
/***/ (function(module, exports, __webpack_require__) {
|
|
|
|
var $ = __webpack_require__(2);
|
|
|
|
var min = Math.min;
|
|
var max = Math.max;
|
|
|
|
// `Math.clamp` method
|
|
// https://rwaldron.github.io/proposal-math-extensions/
|
|
$({ target: 'Math', stat: true, forced: true }, {
|
|
clamp: function clamp(x, lower, upper) {
|
|
return min(upper, max(lower, x));
|
|
}
|
|
});
|
|
|
|
|
|
/***/ }),
|
|
/* 278 */
|
|
/***/ (function(module, exports, __webpack_require__) {
|
|
|
|
var $ = __webpack_require__(2);
|
|
|
|
// `Math.DEG_PER_RAD` constant
|
|
// https://rwaldron.github.io/proposal-math-extensions/
|
|
$({ target: 'Math', stat: true, nonConfigurable: true, nonWritable: true }, {
|
|
DEG_PER_RAD: Math.PI / 180
|
|
});
|
|
|
|
|
|
/***/ }),
|
|
/* 279 */
|
|
/***/ (function(module, exports, __webpack_require__) {
|
|
|
|
var $ = __webpack_require__(2);
|
|
|
|
var RAD_PER_DEG = 180 / Math.PI;
|
|
|
|
// `Math.degrees` method
|
|
// https://rwaldron.github.io/proposal-math-extensions/
|
|
$({ target: 'Math', stat: true, forced: true }, {
|
|
degrees: function degrees(radians) {
|
|
return radians * RAD_PER_DEG;
|
|
}
|
|
});
|
|
|
|
|
|
/***/ }),
|
|
/* 280 */
|
|
/***/ (function(module, exports, __webpack_require__) {
|
|
|
|
var $ = __webpack_require__(2);
|
|
|
|
var scale = __webpack_require__(281);
|
|
var fround = __webpack_require__(282);
|
|
|
|
// `Math.fscale` method
|
|
// https://rwaldron.github.io/proposal-math-extensions/
|
|
$({ target: 'Math', stat: true, forced: true }, {
|
|
fscale: function fscale(x, inLow, inHigh, outLow, outHigh) {
|
|
return fround(scale(x, inLow, inHigh, outLow, outHigh));
|
|
}
|
|
});
|
|
|
|
|
|
/***/ }),
|
|
/* 281 */
|
|
/***/ (function(module, exports) {
|
|
|
|
// `Math.scale` method implementation
|
|
// https://rwaldron.github.io/proposal-math-extensions/
|
|
module.exports = Math.scale || function scale(x, inLow, inHigh, outLow, outHigh) {
|
|
var nx = +x;
|
|
var nInLow = +inLow;
|
|
var nInHigh = +inHigh;
|
|
var nOutLow = +outLow;
|
|
var nOutHigh = +outHigh;
|
|
// eslint-disable-next-line no-self-compare -- NaN check
|
|
if (nx != nx || nInLow != nInLow || nInHigh != nInHigh || nOutLow != nOutLow || nOutHigh != nOutHigh) return NaN;
|
|
if (nx === Infinity || nx === -Infinity) return nx;
|
|
return (nx - nInLow) * (nOutHigh - nOutLow) / (nInHigh - nInLow) + nOutLow;
|
|
};
|
|
|
|
|
|
/***/ }),
|
|
/* 282 */
|
|
/***/ (function(module, exports, __webpack_require__) {
|
|
|
|
var sign = __webpack_require__(283);
|
|
|
|
var abs = Math.abs;
|
|
var pow = Math.pow;
|
|
var EPSILON = pow(2, -52);
|
|
var EPSILON32 = pow(2, -23);
|
|
var MAX32 = pow(2, 127) * (2 - EPSILON32);
|
|
var MIN32 = pow(2, -126);
|
|
|
|
var roundTiesToEven = function (n) {
|
|
return n + 1 / EPSILON - 1 / EPSILON;
|
|
};
|
|
|
|
// `Math.fround` method implementation
|
|
// https://tc39.es/ecma262/#sec-math.fround
|
|
// eslint-disable-next-line es/no-math-fround -- safe
|
|
module.exports = Math.fround || function fround(x) {
|
|
var n = +x;
|
|
var $abs = abs(n);
|
|
var $sign = sign(n);
|
|
var a, result;
|
|
if ($abs < MIN32) return $sign * roundTiesToEven($abs / MIN32 / EPSILON32) * MIN32 * EPSILON32;
|
|
a = (1 + EPSILON32 / EPSILON) * $abs;
|
|
result = a - (a - $abs);
|
|
// eslint-disable-next-line no-self-compare -- NaN check
|
|
if (result > MAX32 || result != result) return $sign * Infinity;
|
|
return $sign * result;
|
|
};
|
|
|
|
|
|
/***/ }),
|
|
/* 283 */
|
|
/***/ (function(module, exports) {
|
|
|
|
// `Math.sign` method implementation
|
|
// https://tc39.es/ecma262/#sec-math.sign
|
|
// eslint-disable-next-line es/no-math-sign -- safe
|
|
module.exports = Math.sign || function sign(x) {
|
|
var n = +x;
|
|
// eslint-disable-next-line no-self-compare -- NaN check
|
|
return n == 0 || n != n ? n : n < 0 ? -1 : 1;
|
|
};
|
|
|
|
|
|
/***/ }),
|
|
/* 284 */
|
|
/***/ (function(module, exports, __webpack_require__) {
|
|
|
|
var $ = __webpack_require__(2);
|
|
|
|
// `Math.iaddh` method
|
|
// https://gist.github.com/BrendanEich/4294d5c212a6d2254703
|
|
// TODO: Remove from `core-js@4`
|
|
$({ target: 'Math', stat: true, forced: true }, {
|
|
iaddh: function iaddh(x0, x1, y0, y1) {
|
|
var $x0 = x0 >>> 0;
|
|
var $x1 = x1 >>> 0;
|
|
var $y0 = y0 >>> 0;
|
|
return $x1 + (y1 >>> 0) + (($x0 & $y0 | ($x0 | $y0) & ~($x0 + $y0 >>> 0)) >>> 31) | 0;
|
|
}
|
|
});
|
|
|
|
|
|
/***/ }),
|
|
/* 285 */
|
|
/***/ (function(module, exports, __webpack_require__) {
|
|
|
|
var $ = __webpack_require__(2);
|
|
|
|
// `Math.imulh` method
|
|
// https://gist.github.com/BrendanEich/4294d5c212a6d2254703
|
|
// TODO: Remove from `core-js@4`
|
|
$({ target: 'Math', stat: true, forced: true }, {
|
|
imulh: function imulh(u, v) {
|
|
var UINT16 = 0xFFFF;
|
|
var $u = +u;
|
|
var $v = +v;
|
|
var u0 = $u & UINT16;
|
|
var v0 = $v & UINT16;
|
|
var u1 = $u >> 16;
|
|
var v1 = $v >> 16;
|
|
var t = (u1 * v0 >>> 0) + (u0 * v0 >>> 16);
|
|
return u1 * v1 + (t >> 16) + ((u0 * v1 >>> 0) + (t & UINT16) >> 16);
|
|
}
|
|
});
|
|
|
|
|
|
/***/ }),
|
|
/* 286 */
|
|
/***/ (function(module, exports, __webpack_require__) {
|
|
|
|
var $ = __webpack_require__(2);
|
|
|
|
// `Math.isubh` method
|
|
// https://gist.github.com/BrendanEich/4294d5c212a6d2254703
|
|
// TODO: Remove from `core-js@4`
|
|
$({ target: 'Math', stat: true, forced: true }, {
|
|
isubh: function isubh(x0, x1, y0, y1) {
|
|
var $x0 = x0 >>> 0;
|
|
var $x1 = x1 >>> 0;
|
|
var $y0 = y0 >>> 0;
|
|
return $x1 - (y1 >>> 0) - ((~$x0 & $y0 | ~($x0 ^ $y0) & $x0 - $y0 >>> 0) >>> 31) | 0;
|
|
}
|
|
});
|
|
|
|
|
|
/***/ }),
|
|
/* 287 */
|
|
/***/ (function(module, exports, __webpack_require__) {
|
|
|
|
var $ = __webpack_require__(2);
|
|
|
|
// `Math.RAD_PER_DEG` constant
|
|
// https://rwaldron.github.io/proposal-math-extensions/
|
|
$({ target: 'Math', stat: true, nonConfigurable: true, nonWritable: true }, {
|
|
RAD_PER_DEG: 180 / Math.PI
|
|
});
|
|
|
|
|
|
/***/ }),
|
|
/* 288 */
|
|
/***/ (function(module, exports, __webpack_require__) {
|
|
|
|
var $ = __webpack_require__(2);
|
|
|
|
var DEG_PER_RAD = Math.PI / 180;
|
|
|
|
// `Math.radians` method
|
|
// https://rwaldron.github.io/proposal-math-extensions/
|
|
$({ target: 'Math', stat: true, forced: true }, {
|
|
radians: function radians(degrees) {
|
|
return degrees * DEG_PER_RAD;
|
|
}
|
|
});
|
|
|
|
|
|
/***/ }),
|
|
/* 289 */
|
|
/***/ (function(module, exports, __webpack_require__) {
|
|
|
|
var $ = __webpack_require__(2);
|
|
var scale = __webpack_require__(281);
|
|
|
|
// `Math.scale` method
|
|
// https://rwaldron.github.io/proposal-math-extensions/
|
|
$({ target: 'Math', stat: true, forced: true }, {
|
|
scale: scale
|
|
});
|
|
|
|
|
|
/***/ }),
|
|
/* 290 */
|
|
/***/ (function(module, exports, __webpack_require__) {
|
|
|
|
var $ = __webpack_require__(2);
|
|
var anObject = __webpack_require__(46);
|
|
var numberIsFinite = __webpack_require__(291);
|
|
var createIteratorConstructor = __webpack_require__(186);
|
|
var createIterResultObject = __webpack_require__(118);
|
|
var InternalStateModule = __webpack_require__(51);
|
|
|
|
var SEEDED_RANDOM = 'Seeded Random';
|
|
var SEEDED_RANDOM_GENERATOR = SEEDED_RANDOM + ' Generator';
|
|
var SEED_TYPE_ERROR = 'Math.seededPRNG() argument should have a "seed" field with a finite value.';
|
|
var setInternalState = InternalStateModule.set;
|
|
var getInternalState = InternalStateModule.getterFor(SEEDED_RANDOM_GENERATOR);
|
|
var $TypeError = TypeError;
|
|
|
|
var $SeededRandomGenerator = createIteratorConstructor(function SeededRandomGenerator(seed) {
|
|
setInternalState(this, {
|
|
type: SEEDED_RANDOM_GENERATOR,
|
|
seed: seed % 2147483647
|
|
});
|
|
}, SEEDED_RANDOM, function next() {
|
|
var state = getInternalState(this);
|
|
var seed = state.seed = (state.seed * 1103515245 + 12345) % 2147483647;
|
|
return createIterResultObject((seed & 1073741823) / 1073741823, false);
|
|
});
|
|
|
|
// `Math.seededPRNG` method
|
|
// https://github.com/tc39/proposal-seeded-random
|
|
// based on https://github.com/tc39/proposal-seeded-random/blob/78b8258835b57fc2100d076151ab506bc3202ae6/demo.html
|
|
$({ target: 'Math', stat: true, forced: true }, {
|
|
seededPRNG: function seededPRNG(it) {
|
|
var seed = anObject(it).seed;
|
|
if (!numberIsFinite(seed)) throw $TypeError(SEED_TYPE_ERROR);
|
|
return new $SeededRandomGenerator(seed);
|
|
}
|
|
});
|
|
|
|
|
|
/***/ }),
|
|
/* 291 */
|
|
/***/ (function(module, exports, __webpack_require__) {
|
|
|
|
var global = __webpack_require__(3);
|
|
|
|
var globalIsFinite = global.isFinite;
|
|
|
|
// `Number.isFinite` method
|
|
// https://tc39.es/ecma262/#sec-number.isfinite
|
|
// eslint-disable-next-line es/no-number-isfinite -- safe
|
|
module.exports = Number.isFinite || function isFinite(it) {
|
|
return typeof it == 'number' && globalIsFinite(it);
|
|
};
|
|
|
|
|
|
/***/ }),
|
|
/* 292 */
|
|
/***/ (function(module, exports, __webpack_require__) {
|
|
|
|
var $ = __webpack_require__(2);
|
|
|
|
// `Math.signbit` method
|
|
// https://github.com/tc39/proposal-Math.signbit
|
|
$({ target: 'Math', stat: true, forced: true }, {
|
|
signbit: function signbit(x) {
|
|
var n = +x;
|
|
// eslint-disable-next-line no-self-compare -- NaN check
|
|
return n == n && n == 0 ? 1 / n == -Infinity : n < 0;
|
|
}
|
|
});
|
|
|
|
|
|
/***/ }),
|
|
/* 293 */
|
|
/***/ (function(module, exports, __webpack_require__) {
|
|
|
|
var $ = __webpack_require__(2);
|
|
|
|
// `Math.umulh` method
|
|
// https://gist.github.com/BrendanEich/4294d5c212a6d2254703
|
|
// TODO: Remove from `core-js@4`
|
|
$({ target: 'Math', stat: true, forced: true }, {
|
|
umulh: function umulh(u, v) {
|
|
var UINT16 = 0xFFFF;
|
|
var $u = +u;
|
|
var $v = +v;
|
|
var u0 = $u & UINT16;
|
|
var v0 = $v & UINT16;
|
|
var u1 = $u >>> 16;
|
|
var v1 = $v >>> 16;
|
|
var t = (u1 * v0 >>> 0) + (u0 * v0 >>> 16);
|
|
return u1 * v1 + (t >>> 16) + ((u0 * v1 >>> 0) + (t & UINT16) >>> 16);
|
|
}
|
|
});
|
|
|
|
|
|
/***/ }),
|
|
/* 294 */
|
|
/***/ (function(module, exports, __webpack_require__) {
|
|
|
|
"use strict";
|
|
|
|
var $ = __webpack_require__(2);
|
|
var uncurryThis = __webpack_require__(13);
|
|
var toIntegerOrInfinity = __webpack_require__(61);
|
|
var parseInt = __webpack_require__(295);
|
|
|
|
var INVALID_NUMBER_REPRESENTATION = 'Invalid number representation';
|
|
var INVALID_RADIX = 'Invalid radix';
|
|
var $RangeError = RangeError;
|
|
var $SyntaxError = SyntaxError;
|
|
var $TypeError = TypeError;
|
|
var valid = /^[\da-z]+$/;
|
|
var charAt = uncurryThis(''.charAt);
|
|
var exec = uncurryThis(valid.exec);
|
|
var numberToString = uncurryThis(1.0.toString);
|
|
var stringSlice = uncurryThis(''.slice);
|
|
|
|
// `Number.fromString` method
|
|
// https://github.com/tc39/proposal-number-fromstring
|
|
$({ target: 'Number', stat: true, forced: true }, {
|
|
fromString: function fromString(string, radix) {
|
|
var sign = 1;
|
|
var R, mathNum;
|
|
if (typeof string != 'string') throw $TypeError(INVALID_NUMBER_REPRESENTATION);
|
|
if (!string.length) throw $SyntaxError(INVALID_NUMBER_REPRESENTATION);
|
|
if (charAt(string, 0) == '-') {
|
|
sign = -1;
|
|
string = stringSlice(string, 1);
|
|
if (!string.length) throw $SyntaxError(INVALID_NUMBER_REPRESENTATION);
|
|
}
|
|
R = radix === undefined ? 10 : toIntegerOrInfinity(radix);
|
|
if (R < 2 || R > 36) throw $RangeError(INVALID_RADIX);
|
|
if (!exec(valid, string) || numberToString(mathNum = parseInt(string, R), R) !== string) {
|
|
throw $SyntaxError(INVALID_NUMBER_REPRESENTATION);
|
|
}
|
|
return sign * mathNum;
|
|
}
|
|
});
|
|
|
|
|
|
/***/ }),
|
|
/* 295 */
|
|
/***/ (function(module, exports, __webpack_require__) {
|
|
|
|
var global = __webpack_require__(3);
|
|
var fails = __webpack_require__(6);
|
|
var uncurryThis = __webpack_require__(13);
|
|
var toString = __webpack_require__(88);
|
|
var trim = __webpack_require__(296).trim;
|
|
var whitespaces = __webpack_require__(297);
|
|
|
|
var $parseInt = global.parseInt;
|
|
var Symbol = global.Symbol;
|
|
var ITERATOR = Symbol && Symbol.iterator;
|
|
var hex = /^[+-]?0x/i;
|
|
var exec = uncurryThis(hex.exec);
|
|
var FORCED = $parseInt(whitespaces + '08') !== 8 || $parseInt(whitespaces + '0x16') !== 22
|
|
// MS Edge 18- broken with boxed symbols
|
|
|| (ITERATOR && !fails(function () { $parseInt(Object(ITERATOR)); }));
|
|
|
|
// `parseInt` method
|
|
// https://tc39.es/ecma262/#sec-parseint-string-radix
|
|
module.exports = FORCED ? function parseInt(string, radix) {
|
|
var S = trim(toString(string));
|
|
return $parseInt(S, (radix >>> 0) || (exec(hex, S) ? 16 : 10));
|
|
} : $parseInt;
|
|
|
|
|
|
/***/ }),
|
|
/* 296 */
|
|
/***/ (function(module, exports, __webpack_require__) {
|
|
|
|
var uncurryThis = __webpack_require__(13);
|
|
var requireObjectCoercible = __webpack_require__(15);
|
|
var toString = __webpack_require__(88);
|
|
var whitespaces = __webpack_require__(297);
|
|
|
|
var replace = uncurryThis(''.replace);
|
|
var ltrim = RegExp('^[' + whitespaces + ']+');
|
|
var rtrim = RegExp('(^|[^' + whitespaces + '])[' + whitespaces + ']+$');
|
|
|
|
// `String.prototype.{ trim, trimStart, trimEnd, trimLeft, trimRight }` methods implementation
|
|
var createMethod = function (TYPE) {
|
|
return function ($this) {
|
|
var string = toString(requireObjectCoercible($this));
|
|
if (TYPE & 1) string = replace(string, ltrim, '');
|
|
if (TYPE & 2) string = replace(string, rtrim, '$1');
|
|
return string;
|
|
};
|
|
};
|
|
|
|
module.exports = {
|
|
// `String.prototype.{ trimLeft, trimStart }` methods
|
|
// https://tc39.es/ecma262/#sec-string.prototype.trimstart
|
|
start: createMethod(1),
|
|
// `String.prototype.{ trimRight, trimEnd }` methods
|
|
// https://tc39.es/ecma262/#sec-string.prototype.trimend
|
|
end: createMethod(2),
|
|
// `String.prototype.trim` method
|
|
// https://tc39.es/ecma262/#sec-string.prototype.trim
|
|
trim: createMethod(3)
|
|
};
|
|
|
|
|
|
/***/ }),
|
|
/* 297 */
|
|
/***/ (function(module, exports) {
|
|
|
|
// a string of all valid unicode whitespaces
|
|
module.exports = '\u0009\u000A\u000B\u000C\u000D\u0020\u00A0\u1680\u2000\u2001\u2002' +
|
|
'\u2003\u2004\u2005\u2006\u2007\u2008\u2009\u200A\u202F\u205F\u3000\u2028\u2029\uFEFF';
|
|
|
|
|
|
/***/ }),
|
|
/* 298 */
|
|
/***/ (function(module, exports, __webpack_require__) {
|
|
|
|
"use strict";
|
|
|
|
var $ = __webpack_require__(2);
|
|
var NumericRangeIterator = __webpack_require__(185);
|
|
|
|
// `Number.range` method
|
|
// https://github.com/tc39/proposal-Number.range
|
|
// TODO: Remove from `core-js@4`
|
|
$({ target: 'Number', stat: true, forced: true }, {
|
|
range: function range(start, end, option) {
|
|
return new NumericRangeIterator(start, end, option, 'number', 0, 1);
|
|
}
|
|
});
|
|
|
|
|
|
/***/ }),
|
|
/* 299 */
|
|
/***/ (function(module, exports, __webpack_require__) {
|
|
|
|
"use strict";
|
|
|
|
// TODO: Remove from `core-js@4`
|
|
var $ = __webpack_require__(2);
|
|
var ObjectIterator = __webpack_require__(300);
|
|
|
|
// `Object.iterateEntries` method
|
|
// https://github.com/tc39/proposal-object-iteration
|
|
$({ target: 'Object', stat: true, forced: true }, {
|
|
iterateEntries: function iterateEntries(object) {
|
|
return new ObjectIterator(object, 'entries');
|
|
}
|
|
});
|
|
|
|
|
|
/***/ }),
|
|
/* 300 */
|
|
/***/ (function(module, exports, __webpack_require__) {
|
|
|
|
"use strict";
|
|
|
|
var InternalStateModule = __webpack_require__(51);
|
|
var createIteratorConstructor = __webpack_require__(186);
|
|
var createIterResultObject = __webpack_require__(118);
|
|
var hasOwn = __webpack_require__(38);
|
|
var objectKeys = __webpack_require__(76);
|
|
var toObject = __webpack_require__(39);
|
|
|
|
var OBJECT_ITERATOR = 'Object Iterator';
|
|
var setInternalState = InternalStateModule.set;
|
|
var getInternalState = InternalStateModule.getterFor(OBJECT_ITERATOR);
|
|
|
|
module.exports = createIteratorConstructor(function ObjectIterator(source, mode) {
|
|
var object = toObject(source);
|
|
setInternalState(this, {
|
|
type: OBJECT_ITERATOR,
|
|
mode: mode,
|
|
object: object,
|
|
keys: objectKeys(object),
|
|
index: 0
|
|
});
|
|
}, 'Object', function next() {
|
|
var state = getInternalState(this);
|
|
var keys = state.keys;
|
|
while (true) {
|
|
if (keys === null || state.index >= keys.length) {
|
|
state.object = state.keys = null;
|
|
return createIterResultObject(undefined, true);
|
|
}
|
|
var key = keys[state.index++];
|
|
var object = state.object;
|
|
if (!hasOwn(object, key)) continue;
|
|
switch (state.mode) {
|
|
case 'keys': return createIterResultObject(key, false);
|
|
case 'values': return createIterResultObject(object[key], false);
|
|
} /* entries */ return createIterResultObject([key, object[key]], false);
|
|
}
|
|
});
|
|
|
|
|
|
/***/ }),
|
|
/* 301 */
|
|
/***/ (function(module, exports, __webpack_require__) {
|
|
|
|
"use strict";
|
|
|
|
// TODO: Remove from `core-js@4`
|
|
var $ = __webpack_require__(2);
|
|
var ObjectIterator = __webpack_require__(300);
|
|
|
|
// `Object.iterateKeys` method
|
|
// https://github.com/tc39/proposal-object-iteration
|
|
$({ target: 'Object', stat: true, forced: true }, {
|
|
iterateKeys: function iterateKeys(object) {
|
|
return new ObjectIterator(object, 'keys');
|
|
}
|
|
});
|
|
|
|
|
|
/***/ }),
|
|
/* 302 */
|
|
/***/ (function(module, exports, __webpack_require__) {
|
|
|
|
"use strict";
|
|
|
|
// TODO: Remove from `core-js@4`
|
|
var $ = __webpack_require__(2);
|
|
var ObjectIterator = __webpack_require__(300);
|
|
|
|
// `Object.iterateValues` method
|
|
// https://github.com/tc39/proposal-object-iteration
|
|
$({ target: 'Object', stat: true, forced: true }, {
|
|
iterateValues: function iterateValues(object) {
|
|
return new ObjectIterator(object, 'values');
|
|
}
|
|
});
|
|
|
|
|
|
/***/ }),
|
|
/* 303 */
|
|
/***/ (function(module, exports, __webpack_require__) {
|
|
|
|
"use strict";
|
|
|
|
var $ = __webpack_require__(2);
|
|
var getBuiltIn = __webpack_require__(23);
|
|
var uncurryThis = __webpack_require__(13);
|
|
var aCallable = __webpack_require__(30);
|
|
var requireObjectCoercible = __webpack_require__(15);
|
|
var toPropertyKey = __webpack_require__(17);
|
|
var iterate = __webpack_require__(202);
|
|
|
|
var create = getBuiltIn('Object', 'create');
|
|
var push = uncurryThis([].push);
|
|
|
|
// `Object.groupBy` method
|
|
// https://github.com/tc39/proposal-array-grouping
|
|
$({ target: 'Object', stat: true, forced: true }, {
|
|
groupBy: function groupBy(items, callbackfn) {
|
|
requireObjectCoercible(items);
|
|
aCallable(callbackfn);
|
|
var obj = create(null);
|
|
var k = 0;
|
|
iterate(items, function (value) {
|
|
var key = toPropertyKey(callbackfn(value, k++));
|
|
// in some IE versions, `hasOwnProperty` returns incorrect result on integer keys
|
|
// but since it's a `null` prototype object, we can safely use `in`
|
|
if (key in obj) push(obj[key], value);
|
|
else obj[key] = [value];
|
|
});
|
|
return obj;
|
|
}
|
|
});
|
|
|
|
|
|
/***/ }),
|
|
/* 304 */
|
|
/***/ (function(module, exports, __webpack_require__) {
|
|
|
|
// TODO: Remove this module from `core-js@4` since it's split to modules listed below
|
|
__webpack_require__(305);
|
|
__webpack_require__(308);
|
|
__webpack_require__(309);
|
|
|
|
|
|
/***/ }),
|
|
/* 305 */
|
|
/***/ (function(module, exports, __webpack_require__) {
|
|
|
|
"use strict";
|
|
|
|
// https://github.com/tc39/proposal-observable
|
|
var $ = __webpack_require__(2);
|
|
var call = __webpack_require__(7);
|
|
var DESCRIPTORS = __webpack_require__(5);
|
|
var setSpecies = __webpack_require__(208);
|
|
var aCallable = __webpack_require__(30);
|
|
var anObject = __webpack_require__(46);
|
|
var anInstance = __webpack_require__(157);
|
|
var isCallable = __webpack_require__(20);
|
|
var isNullOrUndefined = __webpack_require__(16);
|
|
var isObject = __webpack_require__(19);
|
|
var getMethod = __webpack_require__(29);
|
|
var defineBuiltIn = __webpack_require__(47);
|
|
var defineBuiltIns = __webpack_require__(116);
|
|
var defineBuiltInAccessor = __webpack_require__(85);
|
|
var hostReportErrors = __webpack_require__(306);
|
|
var wellKnownSymbol = __webpack_require__(33);
|
|
var InternalStateModule = __webpack_require__(51);
|
|
var OBSERVABLE_FORCED = __webpack_require__(307);
|
|
|
|
var $$OBSERVABLE = wellKnownSymbol('observable');
|
|
var OBSERVABLE = 'Observable';
|
|
var SUBSCRIPTION = 'Subscription';
|
|
var SUBSCRIPTION_OBSERVER = 'SubscriptionObserver';
|
|
var getterFor = InternalStateModule.getterFor;
|
|
var setInternalState = InternalStateModule.set;
|
|
var getObservableInternalState = getterFor(OBSERVABLE);
|
|
var getSubscriptionInternalState = getterFor(SUBSCRIPTION);
|
|
var getSubscriptionObserverInternalState = getterFor(SUBSCRIPTION_OBSERVER);
|
|
|
|
var SubscriptionState = function (observer) {
|
|
this.observer = anObject(observer);
|
|
this.cleanup = undefined;
|
|
this.subscriptionObserver = undefined;
|
|
};
|
|
|
|
SubscriptionState.prototype = {
|
|
type: SUBSCRIPTION,
|
|
clean: function () {
|
|
var cleanup = this.cleanup;
|
|
if (cleanup) {
|
|
this.cleanup = undefined;
|
|
try {
|
|
cleanup();
|
|
} catch (error) {
|
|
hostReportErrors(error);
|
|
}
|
|
}
|
|
},
|
|
close: function () {
|
|
if (!DESCRIPTORS) {
|
|
var subscription = this.facade;
|
|
var subscriptionObserver = this.subscriptionObserver;
|
|
subscription.closed = true;
|
|
if (subscriptionObserver) subscriptionObserver.closed = true;
|
|
} this.observer = undefined;
|
|
},
|
|
isClosed: function () {
|
|
return this.observer === undefined;
|
|
}
|
|
};
|
|
|
|
var Subscription = function (observer, subscriber) {
|
|
var subscriptionState = setInternalState(this, new SubscriptionState(observer));
|
|
var start;
|
|
if (!DESCRIPTORS) this.closed = false;
|
|
try {
|
|
if (start = getMethod(observer, 'start')) call(start, observer, this);
|
|
} catch (error) {
|
|
hostReportErrors(error);
|
|
}
|
|
if (subscriptionState.isClosed()) return;
|
|
var subscriptionObserver = subscriptionState.subscriptionObserver = new SubscriptionObserver(subscriptionState);
|
|
try {
|
|
var cleanup = subscriber(subscriptionObserver);
|
|
var subscription = cleanup;
|
|
if (!isNullOrUndefined(cleanup)) subscriptionState.cleanup = isCallable(cleanup.unsubscribe)
|
|
? function () { subscription.unsubscribe(); }
|
|
: aCallable(cleanup);
|
|
} catch (error) {
|
|
subscriptionObserver.error(error);
|
|
return;
|
|
} if (subscriptionState.isClosed()) subscriptionState.clean();
|
|
};
|
|
|
|
Subscription.prototype = defineBuiltIns({}, {
|
|
unsubscribe: function unsubscribe() {
|
|
var subscriptionState = getSubscriptionInternalState(this);
|
|
if (!subscriptionState.isClosed()) {
|
|
subscriptionState.close();
|
|
subscriptionState.clean();
|
|
}
|
|
}
|
|
});
|
|
|
|
if (DESCRIPTORS) defineBuiltInAccessor(Subscription.prototype, 'closed', {
|
|
configurable: true,
|
|
get: function closed() {
|
|
return getSubscriptionInternalState(this).isClosed();
|
|
}
|
|
});
|
|
|
|
var SubscriptionObserver = function (subscriptionState) {
|
|
setInternalState(this, {
|
|
type: SUBSCRIPTION_OBSERVER,
|
|
subscriptionState: subscriptionState
|
|
});
|
|
if (!DESCRIPTORS) this.closed = false;
|
|
};
|
|
|
|
SubscriptionObserver.prototype = defineBuiltIns({}, {
|
|
next: function next(value) {
|
|
var subscriptionState = getSubscriptionObserverInternalState(this).subscriptionState;
|
|
if (!subscriptionState.isClosed()) {
|
|
var observer = subscriptionState.observer;
|
|
try {
|
|
var nextMethod = getMethod(observer, 'next');
|
|
if (nextMethod) call(nextMethod, observer, value);
|
|
} catch (error) {
|
|
hostReportErrors(error);
|
|
}
|
|
}
|
|
},
|
|
error: function error(value) {
|
|
var subscriptionState = getSubscriptionObserverInternalState(this).subscriptionState;
|
|
if (!subscriptionState.isClosed()) {
|
|
var observer = subscriptionState.observer;
|
|
subscriptionState.close();
|
|
try {
|
|
var errorMethod = getMethod(observer, 'error');
|
|
if (errorMethod) call(errorMethod, observer, value);
|
|
else hostReportErrors(value);
|
|
} catch (err) {
|
|
hostReportErrors(err);
|
|
} subscriptionState.clean();
|
|
}
|
|
},
|
|
complete: function complete() {
|
|
var subscriptionState = getSubscriptionObserverInternalState(this).subscriptionState;
|
|
if (!subscriptionState.isClosed()) {
|
|
var observer = subscriptionState.observer;
|
|
subscriptionState.close();
|
|
try {
|
|
var completeMethod = getMethod(observer, 'complete');
|
|
if (completeMethod) call(completeMethod, observer);
|
|
} catch (error) {
|
|
hostReportErrors(error);
|
|
} subscriptionState.clean();
|
|
}
|
|
}
|
|
});
|
|
|
|
if (DESCRIPTORS) defineBuiltInAccessor(SubscriptionObserver.prototype, 'closed', {
|
|
configurable: true,
|
|
get: function closed() {
|
|
return getSubscriptionObserverInternalState(this).subscriptionState.isClosed();
|
|
}
|
|
});
|
|
|
|
var $Observable = function Observable(subscriber) {
|
|
anInstance(this, ObservablePrototype);
|
|
setInternalState(this, {
|
|
type: OBSERVABLE,
|
|
subscriber: aCallable(subscriber)
|
|
});
|
|
};
|
|
|
|
var ObservablePrototype = $Observable.prototype;
|
|
|
|
defineBuiltIns(ObservablePrototype, {
|
|
subscribe: function subscribe(observer) {
|
|
var length = arguments.length;
|
|
return new Subscription(isCallable(observer) ? {
|
|
next: observer,
|
|
error: length > 1 ? arguments[1] : undefined,
|
|
complete: length > 2 ? arguments[2] : undefined
|
|
} : isObject(observer) ? observer : {}, getObservableInternalState(this).subscriber);
|
|
}
|
|
});
|
|
|
|
defineBuiltIn(ObservablePrototype, $$OBSERVABLE, function () { return this; });
|
|
|
|
$({ global: true, constructor: true, forced: OBSERVABLE_FORCED }, {
|
|
Observable: $Observable
|
|
});
|
|
|
|
setSpecies(OBSERVABLE);
|
|
|
|
|
|
/***/ }),
|
|
/* 306 */
|
|
/***/ (function(module, exports) {
|
|
|
|
module.exports = function (a, b) {
|
|
try {
|
|
// eslint-disable-next-line no-console -- safe
|
|
arguments.length == 1 ? console.error(a) : console.error(a, b);
|
|
} catch (error) { /* empty */ }
|
|
};
|
|
|
|
|
|
/***/ }),
|
|
/* 307 */
|
|
/***/ (function(module, exports, __webpack_require__) {
|
|
|
|
var global = __webpack_require__(3);
|
|
var isCallable = __webpack_require__(20);
|
|
var wellKnownSymbol = __webpack_require__(33);
|
|
|
|
var $$OBSERVABLE = wellKnownSymbol('observable');
|
|
var NativeObservable = global.Observable;
|
|
var NativeObservablePrototype = NativeObservable && NativeObservable.prototype;
|
|
|
|
module.exports = !isCallable(NativeObservable)
|
|
|| !isCallable(NativeObservable.from)
|
|
|| !isCallable(NativeObservable.of)
|
|
|| !isCallable(NativeObservablePrototype.subscribe)
|
|
|| !isCallable(NativeObservablePrototype[$$OBSERVABLE]);
|
|
|
|
|
|
/***/ }),
|
|
/* 308 */
|
|
/***/ (function(module, exports, __webpack_require__) {
|
|
|
|
"use strict";
|
|
|
|
var $ = __webpack_require__(2);
|
|
var getBuiltIn = __webpack_require__(23);
|
|
var call = __webpack_require__(7);
|
|
var anObject = __webpack_require__(46);
|
|
var isConstructor = __webpack_require__(113);
|
|
var getIterator = __webpack_require__(119);
|
|
var getMethod = __webpack_require__(29);
|
|
var iterate = __webpack_require__(202);
|
|
var wellKnownSymbol = __webpack_require__(33);
|
|
var OBSERVABLE_FORCED = __webpack_require__(307);
|
|
|
|
var $$OBSERVABLE = wellKnownSymbol('observable');
|
|
|
|
// `Observable.from` method
|
|
// https://github.com/tc39/proposal-observable
|
|
$({ target: 'Observable', stat: true, forced: OBSERVABLE_FORCED }, {
|
|
from: function from(x) {
|
|
var C = isConstructor(this) ? this : getBuiltIn('Observable');
|
|
var observableMethod = getMethod(anObject(x), $$OBSERVABLE);
|
|
if (observableMethod) {
|
|
var observable = anObject(call(observableMethod, x));
|
|
return observable.constructor === C ? observable : new C(function (observer) {
|
|
return observable.subscribe(observer);
|
|
});
|
|
}
|
|
var iterator = getIterator(x);
|
|
return new C(function (observer) {
|
|
iterate(iterator, function (it, stop) {
|
|
observer.next(it);
|
|
if (observer.closed) return stop();
|
|
}, { IS_ITERATOR: true, INTERRUPTED: true });
|
|
observer.complete();
|
|
});
|
|
}
|
|
});
|
|
|
|
|
|
/***/ }),
|
|
/* 309 */
|
|
/***/ (function(module, exports, __webpack_require__) {
|
|
|
|
"use strict";
|
|
|
|
var $ = __webpack_require__(2);
|
|
var getBuiltIn = __webpack_require__(23);
|
|
var isConstructor = __webpack_require__(113);
|
|
var OBSERVABLE_FORCED = __webpack_require__(307);
|
|
|
|
var Array = getBuiltIn('Array');
|
|
|
|
// `Observable.of` method
|
|
// https://github.com/tc39/proposal-observable
|
|
$({ target: 'Observable', stat: true, forced: OBSERVABLE_FORCED }, {
|
|
of: function of() {
|
|
var C = isConstructor(this) ? this : getBuiltIn('Observable');
|
|
var length = arguments.length;
|
|
var items = Array(length);
|
|
var index = 0;
|
|
while (index < length) items[index] = arguments[index++];
|
|
return new C(function (observer) {
|
|
for (var i = 0; i < length; i++) {
|
|
observer.next(items[i]);
|
|
if (observer.closed) return;
|
|
} observer.complete();
|
|
});
|
|
}
|
|
});
|
|
|
|
|
|
/***/ }),
|
|
/* 310 */
|
|
/***/ (function(module, exports, __webpack_require__) {
|
|
|
|
"use strict";
|
|
|
|
// TODO: Remove from `core-js@4`
|
|
var $ = __webpack_require__(2);
|
|
var newPromiseCapabilityModule = __webpack_require__(311);
|
|
var perform = __webpack_require__(164);
|
|
|
|
// `Promise.try` method
|
|
// https://github.com/tc39/proposal-promise-try
|
|
$({ target: 'Promise', stat: true, forced: true }, {
|
|
'try': function (callbackfn) {
|
|
var promiseCapability = newPromiseCapabilityModule.f(this);
|
|
var result = perform(callbackfn);
|
|
(result.error ? promiseCapability.reject : promiseCapability.resolve)(result.value);
|
|
return promiseCapability.promise;
|
|
}
|
|
});
|
|
|
|
|
|
/***/ }),
|
|
/* 311 */
|
|
/***/ (function(module, exports, __webpack_require__) {
|
|
|
|
"use strict";
|
|
|
|
var aCallable = __webpack_require__(30);
|
|
|
|
var $TypeError = TypeError;
|
|
|
|
var PromiseCapability = function (C) {
|
|
var resolve, reject;
|
|
this.promise = new C(function ($$resolve, $$reject) {
|
|
if (resolve !== undefined || reject !== undefined) throw $TypeError('Bad Promise constructor');
|
|
resolve = $$resolve;
|
|
reject = $$reject;
|
|
});
|
|
this.resolve = aCallable(resolve);
|
|
this.reject = aCallable(reject);
|
|
};
|
|
|
|
// `NewPromiseCapability` abstract operation
|
|
// https://tc39.es/ecma262/#sec-newpromisecapability
|
|
module.exports.f = function (C) {
|
|
return new PromiseCapability(C);
|
|
};
|
|
|
|
|
|
/***/ }),
|
|
/* 312 */
|
|
/***/ (function(module, exports, __webpack_require__) {
|
|
|
|
"use strict";
|
|
|
|
var $ = __webpack_require__(2);
|
|
var newPromiseCapabilityModule = __webpack_require__(311);
|
|
|
|
// `Promise.withResolvers` method
|
|
// https://github.com/tc39/proposal-promise-with-resolvers
|
|
$({ target: 'Promise', stat: true, forced: true }, {
|
|
withResolvers: function withResolvers() {
|
|
var promiseCapability = newPromiseCapabilityModule.f(this);
|
|
return {
|
|
promise: promiseCapability.promise,
|
|
resolve: promiseCapability.resolve,
|
|
reject: promiseCapability.reject
|
|
};
|
|
}
|
|
});
|
|
|
|
|
|
/***/ }),
|
|
/* 313 */
|
|
/***/ (function(module, exports, __webpack_require__) {
|
|
|
|
// TODO: Remove from `core-js@4`
|
|
var $ = __webpack_require__(2);
|
|
var ReflectMetadataModule = __webpack_require__(314);
|
|
var anObject = __webpack_require__(46);
|
|
|
|
var toMetadataKey = ReflectMetadataModule.toKey;
|
|
var ordinaryDefineOwnMetadata = ReflectMetadataModule.set;
|
|
|
|
// `Reflect.defineMetadata` method
|
|
// https://github.com/rbuckton/reflect-metadata
|
|
$({ target: 'Reflect', stat: true }, {
|
|
defineMetadata: function defineMetadata(metadataKey, metadataValue, target /* , targetKey */) {
|
|
var targetKey = arguments.length < 4 ? undefined : toMetadataKey(arguments[3]);
|
|
ordinaryDefineOwnMetadata(metadataKey, metadataValue, anObject(target), targetKey);
|
|
}
|
|
});
|
|
|
|
|
|
/***/ }),
|
|
/* 314 */
|
|
/***/ (function(module, exports, __webpack_require__) {
|
|
|
|
// TODO: in core-js@4, move /modules/ dependencies to public entries for better optimization by tools like `preset-env`
|
|
__webpack_require__(192);
|
|
__webpack_require__(209);
|
|
var getBuiltIn = __webpack_require__(23);
|
|
var uncurryThis = __webpack_require__(13);
|
|
var shared = __webpack_require__(34);
|
|
|
|
var Map = getBuiltIn('Map');
|
|
var WeakMap = getBuiltIn('WeakMap');
|
|
var push = uncurryThis([].push);
|
|
|
|
var metadata = shared('metadata');
|
|
var store = metadata.store || (metadata.store = new WeakMap());
|
|
|
|
var getOrCreateMetadataMap = function (target, targetKey, create) {
|
|
var targetMetadata = store.get(target);
|
|
if (!targetMetadata) {
|
|
if (!create) return;
|
|
store.set(target, targetMetadata = new Map());
|
|
}
|
|
var keyMetadata = targetMetadata.get(targetKey);
|
|
if (!keyMetadata) {
|
|
if (!create) return;
|
|
targetMetadata.set(targetKey, keyMetadata = new Map());
|
|
} return keyMetadata;
|
|
};
|
|
|
|
var ordinaryHasOwnMetadata = function (MetadataKey, O, P) {
|
|
var metadataMap = getOrCreateMetadataMap(O, P, false);
|
|
return metadataMap === undefined ? false : metadataMap.has(MetadataKey);
|
|
};
|
|
|
|
var ordinaryGetOwnMetadata = function (MetadataKey, O, P) {
|
|
var metadataMap = getOrCreateMetadataMap(O, P, false);
|
|
return metadataMap === undefined ? undefined : metadataMap.get(MetadataKey);
|
|
};
|
|
|
|
var ordinaryDefineOwnMetadata = function (MetadataKey, MetadataValue, O, P) {
|
|
getOrCreateMetadataMap(O, P, true).set(MetadataKey, MetadataValue);
|
|
};
|
|
|
|
var ordinaryOwnMetadataKeys = function (target, targetKey) {
|
|
var metadataMap = getOrCreateMetadataMap(target, targetKey, false);
|
|
var keys = [];
|
|
if (metadataMap) metadataMap.forEach(function (_, key) { push(keys, key); });
|
|
return keys;
|
|
};
|
|
|
|
var toMetadataKey = function (it) {
|
|
return it === undefined || typeof it == 'symbol' ? it : String(it);
|
|
};
|
|
|
|
module.exports = {
|
|
store: store,
|
|
getMap: getOrCreateMetadataMap,
|
|
has: ordinaryHasOwnMetadata,
|
|
get: ordinaryGetOwnMetadata,
|
|
set: ordinaryDefineOwnMetadata,
|
|
keys: ordinaryOwnMetadataKeys,
|
|
toKey: toMetadataKey
|
|
};
|
|
|
|
|
|
/***/ }),
|
|
/* 315 */
|
|
/***/ (function(module, exports, __webpack_require__) {
|
|
|
|
var $ = __webpack_require__(2);
|
|
var ReflectMetadataModule = __webpack_require__(314);
|
|
var anObject = __webpack_require__(46);
|
|
|
|
var toMetadataKey = ReflectMetadataModule.toKey;
|
|
var getOrCreateMetadataMap = ReflectMetadataModule.getMap;
|
|
var store = ReflectMetadataModule.store;
|
|
|
|
// `Reflect.deleteMetadata` method
|
|
// https://github.com/rbuckton/reflect-metadata
|
|
$({ target: 'Reflect', stat: true }, {
|
|
deleteMetadata: function deleteMetadata(metadataKey, target /* , targetKey */) {
|
|
var targetKey = arguments.length < 3 ? undefined : toMetadataKey(arguments[2]);
|
|
var metadataMap = getOrCreateMetadataMap(anObject(target), targetKey, false);
|
|
if (metadataMap === undefined || !metadataMap['delete'](metadataKey)) return false;
|
|
if (metadataMap.size) return true;
|
|
var targetMetadata = store.get(target);
|
|
targetMetadata['delete'](targetKey);
|
|
return !!targetMetadata.size || store['delete'](target);
|
|
}
|
|
});
|
|
|
|
|
|
/***/ }),
|
|
/* 316 */
|
|
/***/ (function(module, exports, __webpack_require__) {
|
|
|
|
// TODO: Remove from `core-js@4`
|
|
var $ = __webpack_require__(2);
|
|
var ReflectMetadataModule = __webpack_require__(314);
|
|
var anObject = __webpack_require__(46);
|
|
var getPrototypeOf = __webpack_require__(95);
|
|
|
|
var ordinaryHasOwnMetadata = ReflectMetadataModule.has;
|
|
var ordinaryGetOwnMetadata = ReflectMetadataModule.get;
|
|
var toMetadataKey = ReflectMetadataModule.toKey;
|
|
|
|
var ordinaryGetMetadata = function (MetadataKey, O, P) {
|
|
var hasOwn = ordinaryHasOwnMetadata(MetadataKey, O, P);
|
|
if (hasOwn) return ordinaryGetOwnMetadata(MetadataKey, O, P);
|
|
var parent = getPrototypeOf(O);
|
|
return parent !== null ? ordinaryGetMetadata(MetadataKey, parent, P) : undefined;
|
|
};
|
|
|
|
// `Reflect.getMetadata` method
|
|
// https://github.com/rbuckton/reflect-metadata
|
|
$({ target: 'Reflect', stat: true }, {
|
|
getMetadata: function getMetadata(metadataKey, target /* , targetKey */) {
|
|
var targetKey = arguments.length < 3 ? undefined : toMetadataKey(arguments[2]);
|
|
return ordinaryGetMetadata(metadataKey, anObject(target), targetKey);
|
|
}
|
|
});
|
|
|
|
|
|
/***/ }),
|
|
/* 317 */
|
|
/***/ (function(module, exports, __webpack_require__) {
|
|
|
|
// TODO: Remove from `core-js@4`
|
|
var $ = __webpack_require__(2);
|
|
var uncurryThis = __webpack_require__(13);
|
|
var ReflectMetadataModule = __webpack_require__(314);
|
|
var anObject = __webpack_require__(46);
|
|
var getPrototypeOf = __webpack_require__(95);
|
|
var $arrayUniqueBy = __webpack_require__(142);
|
|
|
|
var arrayUniqueBy = uncurryThis($arrayUniqueBy);
|
|
var concat = uncurryThis([].concat);
|
|
var ordinaryOwnMetadataKeys = ReflectMetadataModule.keys;
|
|
var toMetadataKey = ReflectMetadataModule.toKey;
|
|
|
|
var ordinaryMetadataKeys = function (O, P) {
|
|
var oKeys = ordinaryOwnMetadataKeys(O, P);
|
|
var parent = getPrototypeOf(O);
|
|
if (parent === null) return oKeys;
|
|
var pKeys = ordinaryMetadataKeys(parent, P);
|
|
return pKeys.length ? oKeys.length ? arrayUniqueBy(concat(oKeys, pKeys)) : pKeys : oKeys;
|
|
};
|
|
|
|
// `Reflect.getMetadataKeys` method
|
|
// https://github.com/rbuckton/reflect-metadata
|
|
$({ target: 'Reflect', stat: true }, {
|
|
getMetadataKeys: function getMetadataKeys(target /* , targetKey */) {
|
|
var targetKey = arguments.length < 2 ? undefined : toMetadataKey(arguments[1]);
|
|
return ordinaryMetadataKeys(anObject(target), targetKey);
|
|
}
|
|
});
|
|
|
|
|
|
/***/ }),
|
|
/* 318 */
|
|
/***/ (function(module, exports, __webpack_require__) {
|
|
|
|
// TODO: Remove from `core-js@4`
|
|
var $ = __webpack_require__(2);
|
|
var ReflectMetadataModule = __webpack_require__(314);
|
|
var anObject = __webpack_require__(46);
|
|
|
|
var ordinaryGetOwnMetadata = ReflectMetadataModule.get;
|
|
var toMetadataKey = ReflectMetadataModule.toKey;
|
|
|
|
// `Reflect.getOwnMetadata` method
|
|
// https://github.com/rbuckton/reflect-metadata
|
|
$({ target: 'Reflect', stat: true }, {
|
|
getOwnMetadata: function getOwnMetadata(metadataKey, target /* , targetKey */) {
|
|
var targetKey = arguments.length < 3 ? undefined : toMetadataKey(arguments[2]);
|
|
return ordinaryGetOwnMetadata(metadataKey, anObject(target), targetKey);
|
|
}
|
|
});
|
|
|
|
|
|
/***/ }),
|
|
/* 319 */
|
|
/***/ (function(module, exports, __webpack_require__) {
|
|
|
|
// TODO: Remove from `core-js@4`
|
|
var $ = __webpack_require__(2);
|
|
var ReflectMetadataModule = __webpack_require__(314);
|
|
var anObject = __webpack_require__(46);
|
|
|
|
var ordinaryOwnMetadataKeys = ReflectMetadataModule.keys;
|
|
var toMetadataKey = ReflectMetadataModule.toKey;
|
|
|
|
// `Reflect.getOwnMetadataKeys` method
|
|
// https://github.com/rbuckton/reflect-metadata
|
|
$({ target: 'Reflect', stat: true }, {
|
|
getOwnMetadataKeys: function getOwnMetadataKeys(target /* , targetKey */) {
|
|
var targetKey = arguments.length < 2 ? undefined : toMetadataKey(arguments[1]);
|
|
return ordinaryOwnMetadataKeys(anObject(target), targetKey);
|
|
}
|
|
});
|
|
|
|
|
|
/***/ }),
|
|
/* 320 */
|
|
/***/ (function(module, exports, __webpack_require__) {
|
|
|
|
// TODO: Remove from `core-js@4`
|
|
var $ = __webpack_require__(2);
|
|
var ReflectMetadataModule = __webpack_require__(314);
|
|
var anObject = __webpack_require__(46);
|
|
var getPrototypeOf = __webpack_require__(95);
|
|
|
|
var ordinaryHasOwnMetadata = ReflectMetadataModule.has;
|
|
var toMetadataKey = ReflectMetadataModule.toKey;
|
|
|
|
var ordinaryHasMetadata = function (MetadataKey, O, P) {
|
|
var hasOwn = ordinaryHasOwnMetadata(MetadataKey, O, P);
|
|
if (hasOwn) return true;
|
|
var parent = getPrototypeOf(O);
|
|
return parent !== null ? ordinaryHasMetadata(MetadataKey, parent, P) : false;
|
|
};
|
|
|
|
// `Reflect.hasMetadata` method
|
|
// https://github.com/rbuckton/reflect-metadata
|
|
$({ target: 'Reflect', stat: true }, {
|
|
hasMetadata: function hasMetadata(metadataKey, target /* , targetKey */) {
|
|
var targetKey = arguments.length < 3 ? undefined : toMetadataKey(arguments[2]);
|
|
return ordinaryHasMetadata(metadataKey, anObject(target), targetKey);
|
|
}
|
|
});
|
|
|
|
|
|
/***/ }),
|
|
/* 321 */
|
|
/***/ (function(module, exports, __webpack_require__) {
|
|
|
|
// TODO: Remove from `core-js@4`
|
|
var $ = __webpack_require__(2);
|
|
var ReflectMetadataModule = __webpack_require__(314);
|
|
var anObject = __webpack_require__(46);
|
|
|
|
var ordinaryHasOwnMetadata = ReflectMetadataModule.has;
|
|
var toMetadataKey = ReflectMetadataModule.toKey;
|
|
|
|
// `Reflect.hasOwnMetadata` method
|
|
// https://github.com/rbuckton/reflect-metadata
|
|
$({ target: 'Reflect', stat: true }, {
|
|
hasOwnMetadata: function hasOwnMetadata(metadataKey, target /* , targetKey */) {
|
|
var targetKey = arguments.length < 3 ? undefined : toMetadataKey(arguments[2]);
|
|
return ordinaryHasOwnMetadata(metadataKey, anObject(target), targetKey);
|
|
}
|
|
});
|
|
|
|
|
|
/***/ }),
|
|
/* 322 */
|
|
/***/ (function(module, exports, __webpack_require__) {
|
|
|
|
var $ = __webpack_require__(2);
|
|
var ReflectMetadataModule = __webpack_require__(314);
|
|
var anObject = __webpack_require__(46);
|
|
|
|
var toMetadataKey = ReflectMetadataModule.toKey;
|
|
var ordinaryDefineOwnMetadata = ReflectMetadataModule.set;
|
|
|
|
// `Reflect.metadata` method
|
|
// https://github.com/rbuckton/reflect-metadata
|
|
$({ target: 'Reflect', stat: true }, {
|
|
metadata: function metadata(metadataKey, metadataValue) {
|
|
return function decorator(target, key) {
|
|
ordinaryDefineOwnMetadata(metadataKey, metadataValue, anObject(target), toMetadataKey(key));
|
|
};
|
|
}
|
|
});
|
|
|
|
|
|
/***/ }),
|
|
/* 323 */
|
|
/***/ (function(module, exports, __webpack_require__) {
|
|
|
|
"use strict";
|
|
|
|
var $ = __webpack_require__(2);
|
|
var aSet = __webpack_require__(324);
|
|
var add = __webpack_require__(325).add;
|
|
|
|
// `Set.prototype.addAll` method
|
|
// https://github.com/tc39/proposal-collection-methods
|
|
$({ target: 'Set', proto: true, real: true, forced: true }, {
|
|
addAll: function addAll(/* ...elements */) {
|
|
var set = aSet(this);
|
|
for (var k = 0, len = arguments.length; k < len; k++) {
|
|
add(set, arguments[k]);
|
|
} return set;
|
|
}
|
|
});
|
|
|
|
|
|
/***/ }),
|
|
/* 324 */
|
|
/***/ (function(module, exports, __webpack_require__) {
|
|
|
|
var has = __webpack_require__(325).has;
|
|
|
|
// Perform ? RequireInternalSlot(M, [[SetData]])
|
|
module.exports = function (it) {
|
|
has(it);
|
|
return it;
|
|
};
|
|
|
|
|
|
/***/ }),
|
|
/* 325 */
|
|
/***/ (function(module, exports, __webpack_require__) {
|
|
|
|
var uncurryThis = __webpack_require__(13);
|
|
|
|
// eslint-disable-next-line es/no-set -- safe
|
|
var SetPrototype = Set.prototype;
|
|
|
|
module.exports = {
|
|
// eslint-disable-next-line es/no-set -- safe
|
|
Set: Set,
|
|
add: uncurryThis(SetPrototype.add),
|
|
has: uncurryThis(SetPrototype.has),
|
|
remove: uncurryThis(SetPrototype['delete']),
|
|
proto: SetPrototype
|
|
};
|
|
|
|
|
|
/***/ }),
|
|
/* 326 */
|
|
/***/ (function(module, exports, __webpack_require__) {
|
|
|
|
"use strict";
|
|
|
|
var $ = __webpack_require__(2);
|
|
var aSet = __webpack_require__(324);
|
|
var remove = __webpack_require__(325).remove;
|
|
|
|
// `Set.prototype.deleteAll` method
|
|
// https://github.com/tc39/proposal-collection-methods
|
|
$({ target: 'Set', proto: true, real: true, forced: true }, {
|
|
deleteAll: function deleteAll(/* ...elements */) {
|
|
var collection = aSet(this);
|
|
var allDeleted = true;
|
|
var wasDeleted;
|
|
for (var k = 0, len = arguments.length; k < len; k++) {
|
|
wasDeleted = remove(collection, arguments[k]);
|
|
allDeleted = allDeleted && wasDeleted;
|
|
} return !!allDeleted;
|
|
}
|
|
});
|
|
|
|
|
|
/***/ }),
|
|
/* 327 */
|
|
/***/ (function(module, exports, __webpack_require__) {
|
|
|
|
var $ = __webpack_require__(2);
|
|
var difference = __webpack_require__(328);
|
|
var setMethodAcceptSetLike = __webpack_require__(333);
|
|
|
|
// `Set.prototype.difference` method
|
|
// https://github.com/tc39/proposal-set-methods
|
|
$({ target: 'Set', proto: true, real: true, forced: !setMethodAcceptSetLike('difference') }, {
|
|
difference: difference
|
|
});
|
|
|
|
|
|
/***/ }),
|
|
/* 328 */
|
|
/***/ (function(module, exports, __webpack_require__) {
|
|
|
|
"use strict";
|
|
|
|
var aSet = __webpack_require__(324);
|
|
var SetHelpers = __webpack_require__(325);
|
|
var clone = __webpack_require__(329);
|
|
var size = __webpack_require__(331);
|
|
var getSetRecord = __webpack_require__(332);
|
|
var iterateSet = __webpack_require__(330);
|
|
var iterateSimple = __webpack_require__(144);
|
|
|
|
var has = SetHelpers.has;
|
|
var remove = SetHelpers.remove;
|
|
|
|
// `Set.prototype.difference` method
|
|
// https://github.com/tc39/proposal-set-methods
|
|
module.exports = function difference(other) {
|
|
var O = aSet(this);
|
|
var otherRec = getSetRecord(other);
|
|
var result = clone(O);
|
|
if (size(O) <= otherRec.size) iterateSet(O, function (e) {
|
|
if (otherRec.includes(e)) remove(result, e);
|
|
});
|
|
else iterateSimple(otherRec.getIterator(), function (e) {
|
|
if (has(O, e)) remove(result, e);
|
|
});
|
|
return result;
|
|
};
|
|
|
|
|
|
/***/ }),
|
|
/* 329 */
|
|
/***/ (function(module, exports, __webpack_require__) {
|
|
|
|
var SetHelpers = __webpack_require__(325);
|
|
var iterate = __webpack_require__(330);
|
|
|
|
var Set = SetHelpers.Set;
|
|
var add = SetHelpers.add;
|
|
|
|
module.exports = function (set) {
|
|
var result = new Set();
|
|
iterate(set, function (it) {
|
|
add(result, it);
|
|
});
|
|
return result;
|
|
};
|
|
|
|
|
|
/***/ }),
|
|
/* 330 */
|
|
/***/ (function(module, exports, __webpack_require__) {
|
|
|
|
var uncurryThis = __webpack_require__(13);
|
|
var iterateSimple = __webpack_require__(144);
|
|
var SetHelpers = __webpack_require__(325);
|
|
|
|
var Set = SetHelpers.Set;
|
|
var SetPrototype = SetHelpers.proto;
|
|
var forEach = uncurryThis(SetPrototype.forEach);
|
|
var keys = uncurryThis(SetPrototype.keys);
|
|
var next = keys(new Set()).next;
|
|
|
|
module.exports = function (set, fn, interruptible) {
|
|
return interruptible ? iterateSimple(keys(set), fn, next) : forEach(set, fn);
|
|
};
|
|
|
|
|
|
/***/ }),
|
|
/* 331 */
|
|
/***/ (function(module, exports, __webpack_require__) {
|
|
|
|
var uncurryThisAccessor = __webpack_require__(98);
|
|
var SetHelpers = __webpack_require__(325);
|
|
|
|
module.exports = uncurryThisAccessor(SetHelpers.proto, 'size', 'get') || function (set) {
|
|
return set.size;
|
|
};
|
|
|
|
|
|
/***/ }),
|
|
/* 332 */
|
|
/***/ (function(module, exports, __webpack_require__) {
|
|
|
|
var aCallable = __webpack_require__(30);
|
|
var anObject = __webpack_require__(46);
|
|
var call = __webpack_require__(7);
|
|
var toIntegerOrInfinity = __webpack_require__(61);
|
|
|
|
var $TypeError = TypeError;
|
|
var max = Math.max;
|
|
|
|
var SetRecord = function (set, size, has, keys) {
|
|
this.set = set;
|
|
this.size = size;
|
|
this.has = has;
|
|
this.keys = keys;
|
|
};
|
|
|
|
SetRecord.prototype = {
|
|
getIterator: function () {
|
|
return anObject(call(this.keys, this.set));
|
|
},
|
|
includes: function (it) {
|
|
return call(this.has, this.set, it);
|
|
}
|
|
};
|
|
|
|
// `GetSetRecord` abstract operation
|
|
// https://tc39.es/proposal-set-methods/#sec-getsetrecord
|
|
module.exports = function (obj) {
|
|
anObject(obj);
|
|
var numSize = +obj.size;
|
|
// NOTE: If size is undefined, then numSize will be NaN
|
|
// eslint-disable-next-line no-self-compare -- NaN check
|
|
if (numSize != numSize) throw $TypeError('Invalid size');
|
|
return new SetRecord(
|
|
obj,
|
|
max(toIntegerOrInfinity(numSize), 0),
|
|
aCallable(obj.has),
|
|
aCallable(obj.keys)
|
|
);
|
|
};
|
|
|
|
|
|
/***/ }),
|
|
/* 333 */
|
|
/***/ (function(module, exports, __webpack_require__) {
|
|
|
|
var getBuiltIn = __webpack_require__(23);
|
|
|
|
var createEmptySetLike = function () {
|
|
return {
|
|
size: 0,
|
|
has: function () {
|
|
return false;
|
|
},
|
|
keys: function () {
|
|
return {
|
|
next: function () {
|
|
return { done: true };
|
|
}
|
|
};
|
|
}
|
|
};
|
|
};
|
|
|
|
module.exports = function (name) {
|
|
try {
|
|
var Set = getBuiltIn('Set');
|
|
new Set()[name](createEmptySetLike());
|
|
return true;
|
|
} catch (error) {
|
|
return false;
|
|
}
|
|
};
|
|
|
|
|
|
/***/ }),
|
|
/* 334 */
|
|
/***/ (function(module, exports, __webpack_require__) {
|
|
|
|
"use strict";
|
|
|
|
var $ = __webpack_require__(2);
|
|
var call = __webpack_require__(7);
|
|
var toSetLike = __webpack_require__(335);
|
|
var $difference = __webpack_require__(328);
|
|
|
|
// `Set.prototype.difference` method
|
|
// https://github.com/tc39/proposal-set-methods
|
|
// TODO: Obsolete version, remove from `core-js@4`
|
|
$({ target: 'Set', proto: true, real: true, forced: true }, {
|
|
difference: function difference(other) {
|
|
return call($difference, this, toSetLike(other));
|
|
}
|
|
});
|
|
|
|
|
|
/***/ }),
|
|
/* 335 */
|
|
/***/ (function(module, exports, __webpack_require__) {
|
|
|
|
var getBuiltIn = __webpack_require__(23);
|
|
var isCallable = __webpack_require__(20);
|
|
var isIterable = __webpack_require__(336);
|
|
var isObject = __webpack_require__(19);
|
|
|
|
var Set = getBuiltIn('Set');
|
|
|
|
var isSetLike = function (it) {
|
|
return isObject(it)
|
|
&& typeof it.size == 'number'
|
|
&& isCallable(it.has)
|
|
&& isCallable(it.keys);
|
|
};
|
|
|
|
// fallback old -> new set methods proposal arguments
|
|
module.exports = function (it) {
|
|
if (isSetLike(it)) return it;
|
|
return isIterable(it) ? new Set(it) : it;
|
|
};
|
|
|
|
|
|
/***/ }),
|
|
/* 336 */
|
|
/***/ (function(module, exports, __webpack_require__) {
|
|
|
|
var classof = __webpack_require__(89);
|
|
var hasOwn = __webpack_require__(38);
|
|
var isNullOrUndefined = __webpack_require__(16);
|
|
var wellKnownSymbol = __webpack_require__(33);
|
|
var Iterators = __webpack_require__(121);
|
|
|
|
var ITERATOR = wellKnownSymbol('iterator');
|
|
var $Object = Object;
|
|
|
|
module.exports = function (it) {
|
|
if (isNullOrUndefined(it)) return false;
|
|
var O = $Object(it);
|
|
return O[ITERATOR] !== undefined
|
|
|| '@@iterator' in O
|
|
|| hasOwn(Iterators, classof(O));
|
|
};
|
|
|
|
|
|
/***/ }),
|
|
/* 337 */
|
|
/***/ (function(module, exports, __webpack_require__) {
|
|
|
|
"use strict";
|
|
|
|
var $ = __webpack_require__(2);
|
|
var bind = __webpack_require__(111);
|
|
var aSet = __webpack_require__(324);
|
|
var iterate = __webpack_require__(330);
|
|
|
|
// `Set.prototype.every` method
|
|
// https://github.com/tc39/proposal-collection-methods
|
|
$({ target: 'Set', proto: true, real: true, forced: true }, {
|
|
every: function every(callbackfn /* , thisArg */) {
|
|
var set = aSet(this);
|
|
var boundFunction = bind(callbackfn, arguments.length > 1 ? arguments[1] : undefined);
|
|
return iterate(set, function (value) {
|
|
if (!boundFunction(value, value, set)) return false;
|
|
}, true) !== false;
|
|
}
|
|
});
|
|
|
|
|
|
/***/ }),
|
|
/* 338 */
|
|
/***/ (function(module, exports, __webpack_require__) {
|
|
|
|
"use strict";
|
|
|
|
var $ = __webpack_require__(2);
|
|
var bind = __webpack_require__(111);
|
|
var aSet = __webpack_require__(324);
|
|
var SetHelpers = __webpack_require__(325);
|
|
var iterate = __webpack_require__(330);
|
|
|
|
var Set = SetHelpers.Set;
|
|
var add = SetHelpers.add;
|
|
|
|
// `Set.prototype.filter` method
|
|
// https://github.com/tc39/proposal-collection-methods
|
|
$({ target: 'Set', proto: true, real: true, forced: true }, {
|
|
filter: function filter(callbackfn /* , thisArg */) {
|
|
var set = aSet(this);
|
|
var boundFunction = bind(callbackfn, arguments.length > 1 ? arguments[1] : undefined);
|
|
var newSet = new Set();
|
|
iterate(set, function (value) {
|
|
if (boundFunction(value, value, set)) add(newSet, value);
|
|
});
|
|
return newSet;
|
|
}
|
|
});
|
|
|
|
|
|
/***/ }),
|
|
/* 339 */
|
|
/***/ (function(module, exports, __webpack_require__) {
|
|
|
|
"use strict";
|
|
|
|
var $ = __webpack_require__(2);
|
|
var bind = __webpack_require__(111);
|
|
var aSet = __webpack_require__(324);
|
|
var iterate = __webpack_require__(330);
|
|
|
|
// `Set.prototype.find` method
|
|
// https://github.com/tc39/proposal-collection-methods
|
|
$({ target: 'Set', proto: true, real: true, forced: true }, {
|
|
find: function find(callbackfn /* , thisArg */) {
|
|
var set = aSet(this);
|
|
var boundFunction = bind(callbackfn, arguments.length > 1 ? arguments[1] : undefined);
|
|
var result = iterate(set, function (value) {
|
|
if (boundFunction(value, value, set)) return { value: value };
|
|
}, true);
|
|
return result && result.value;
|
|
}
|
|
});
|
|
|
|
|
|
/***/ }),
|
|
/* 340 */
|
|
/***/ (function(module, exports, __webpack_require__) {
|
|
|
|
var $ = __webpack_require__(2);
|
|
var from = __webpack_require__(258);
|
|
|
|
// `Set.from` method
|
|
// https://tc39.github.io/proposal-setmap-offrom/#sec-set.from
|
|
$({ target: 'Set', stat: true, forced: true }, {
|
|
from: from
|
|
});
|
|
|
|
|
|
/***/ }),
|
|
/* 341 */
|
|
/***/ (function(module, exports, __webpack_require__) {
|
|
|
|
var $ = __webpack_require__(2);
|
|
var fails = __webpack_require__(6);
|
|
var intersection = __webpack_require__(342);
|
|
var setMethodAcceptSetLike = __webpack_require__(333);
|
|
|
|
var INCORRECT = !setMethodAcceptSetLike('intersection') || fails(function () {
|
|
// eslint-disable-next-line es/no-array-from, es/no-set -- testing
|
|
return Array.from(new Set([1, 2, 3]).intersection(new Set([3, 2]))) != '3,2';
|
|
});
|
|
|
|
// `Set.prototype.intersection` method
|
|
// https://github.com/tc39/proposal-set-methods
|
|
$({ target: 'Set', proto: true, real: true, forced: INCORRECT }, {
|
|
intersection: intersection
|
|
});
|
|
|
|
|
|
/***/ }),
|
|
/* 342 */
|
|
/***/ (function(module, exports, __webpack_require__) {
|
|
|
|
"use strict";
|
|
|
|
var aSet = __webpack_require__(324);
|
|
var SetHelpers = __webpack_require__(325);
|
|
var size = __webpack_require__(331);
|
|
var getSetRecord = __webpack_require__(332);
|
|
var iterateSet = __webpack_require__(330);
|
|
var iterateSimple = __webpack_require__(144);
|
|
|
|
var Set = SetHelpers.Set;
|
|
var add = SetHelpers.add;
|
|
var has = SetHelpers.has;
|
|
|
|
// `Set.prototype.intersection` method
|
|
// https://github.com/tc39/proposal-set-methods
|
|
module.exports = function intersection(other) {
|
|
var O = aSet(this);
|
|
var otherRec = getSetRecord(other);
|
|
var result = new Set();
|
|
|
|
if (size(O) > otherRec.size) {
|
|
iterateSimple(otherRec.getIterator(), function (e) {
|
|
if (has(O, e)) add(result, e);
|
|
});
|
|
} else {
|
|
iterateSet(O, function (e) {
|
|
if (otherRec.includes(e)) add(result, e);
|
|
});
|
|
}
|
|
|
|
return result;
|
|
};
|
|
|
|
|
|
/***/ }),
|
|
/* 343 */
|
|
/***/ (function(module, exports, __webpack_require__) {
|
|
|
|
"use strict";
|
|
|
|
var $ = __webpack_require__(2);
|
|
var call = __webpack_require__(7);
|
|
var toSetLike = __webpack_require__(335);
|
|
var $intersection = __webpack_require__(342);
|
|
|
|
// `Set.prototype.intersection` method
|
|
// https://github.com/tc39/proposal-set-methods
|
|
// TODO: Obsolete version, remove from `core-js@4`
|
|
$({ target: 'Set', proto: true, real: true, forced: true }, {
|
|
intersection: function intersection(other) {
|
|
return call($intersection, this, toSetLike(other));
|
|
}
|
|
});
|
|
|
|
|
|
/***/ }),
|
|
/* 344 */
|
|
/***/ (function(module, exports, __webpack_require__) {
|
|
|
|
var $ = __webpack_require__(2);
|
|
var isDisjointFrom = __webpack_require__(345);
|
|
var setMethodAcceptSetLike = __webpack_require__(333);
|
|
|
|
// `Set.prototype.isDisjointFrom` method
|
|
// https://github.com/tc39/proposal-set-methods
|
|
$({ target: 'Set', proto: true, real: true, forced: !setMethodAcceptSetLike('isDisjointFrom') }, {
|
|
isDisjointFrom: isDisjointFrom
|
|
});
|
|
|
|
|
|
/***/ }),
|
|
/* 345 */
|
|
/***/ (function(module, exports, __webpack_require__) {
|
|
|
|
"use strict";
|
|
|
|
var aSet = __webpack_require__(324);
|
|
var has = __webpack_require__(325).has;
|
|
var size = __webpack_require__(331);
|
|
var getSetRecord = __webpack_require__(332);
|
|
var iterateSet = __webpack_require__(330);
|
|
var iterateSimple = __webpack_require__(144);
|
|
var iteratorClose = __webpack_require__(165);
|
|
|
|
// `Set.prototype.isDisjointFrom` method
|
|
// https://tc39.github.io/proposal-set-methods/#Set.prototype.isDisjointFrom
|
|
module.exports = function isDisjointFrom(other) {
|
|
var O = aSet(this);
|
|
var otherRec = getSetRecord(other);
|
|
if (size(O) <= otherRec.size) return iterateSet(O, function (e) {
|
|
if (otherRec.includes(e)) return false;
|
|
}, true) !== false;
|
|
var iterator = otherRec.getIterator();
|
|
return iterateSimple(iterator, function (e) {
|
|
if (has(O, e)) return iteratorClose(iterator, 'normal', false);
|
|
}) !== false;
|
|
};
|
|
|
|
|
|
/***/ }),
|
|
/* 346 */
|
|
/***/ (function(module, exports, __webpack_require__) {
|
|
|
|
"use strict";
|
|
|
|
var $ = __webpack_require__(2);
|
|
var call = __webpack_require__(7);
|
|
var toSetLike = __webpack_require__(335);
|
|
var $isDisjointFrom = __webpack_require__(345);
|
|
|
|
// `Set.prototype.isDisjointFrom` method
|
|
// https://github.com/tc39/proposal-set-methods
|
|
// TODO: Obsolete version, remove from `core-js@4`
|
|
$({ target: 'Set', proto: true, real: true, forced: true }, {
|
|
isDisjointFrom: function isDisjointFrom(other) {
|
|
return call($isDisjointFrom, this, toSetLike(other));
|
|
}
|
|
});
|
|
|
|
|
|
/***/ }),
|
|
/* 347 */
|
|
/***/ (function(module, exports, __webpack_require__) {
|
|
|
|
var $ = __webpack_require__(2);
|
|
var isSubsetOf = __webpack_require__(348);
|
|
var setMethodAcceptSetLike = __webpack_require__(333);
|
|
|
|
// `Set.prototype.isSubsetOf` method
|
|
// https://github.com/tc39/proposal-set-methods
|
|
$({ target: 'Set', proto: true, real: true, forced: !setMethodAcceptSetLike('isSubsetOf') }, {
|
|
isSubsetOf: isSubsetOf
|
|
});
|
|
|
|
|
|
/***/ }),
|
|
/* 348 */
|
|
/***/ (function(module, exports, __webpack_require__) {
|
|
|
|
"use strict";
|
|
|
|
var aSet = __webpack_require__(324);
|
|
var size = __webpack_require__(331);
|
|
var iterate = __webpack_require__(330);
|
|
var getSetRecord = __webpack_require__(332);
|
|
|
|
// `Set.prototype.isSubsetOf` method
|
|
// https://tc39.github.io/proposal-set-methods/#Set.prototype.isSubsetOf
|
|
module.exports = function isSubsetOf(other) {
|
|
var O = aSet(this);
|
|
var otherRec = getSetRecord(other);
|
|
if (size(O) > otherRec.size) return false;
|
|
return iterate(O, function (e) {
|
|
if (!otherRec.includes(e)) return false;
|
|
}, true) !== false;
|
|
};
|
|
|
|
|
|
/***/ }),
|
|
/* 349 */
|
|
/***/ (function(module, exports, __webpack_require__) {
|
|
|
|
"use strict";
|
|
|
|
var $ = __webpack_require__(2);
|
|
var call = __webpack_require__(7);
|
|
var toSetLike = __webpack_require__(335);
|
|
var $isSubsetOf = __webpack_require__(348);
|
|
|
|
// `Set.prototype.isSubsetOf` method
|
|
// https://github.com/tc39/proposal-set-methods
|
|
// TODO: Obsolete version, remove from `core-js@4`
|
|
$({ target: 'Set', proto: true, real: true, forced: true }, {
|
|
isSubsetOf: function isSubsetOf(other) {
|
|
return call($isSubsetOf, this, toSetLike(other));
|
|
}
|
|
});
|
|
|
|
|
|
/***/ }),
|
|
/* 350 */
|
|
/***/ (function(module, exports, __webpack_require__) {
|
|
|
|
var $ = __webpack_require__(2);
|
|
var isSupersetOf = __webpack_require__(351);
|
|
var setMethodAcceptSetLike = __webpack_require__(333);
|
|
|
|
// `Set.prototype.isSupersetOf` method
|
|
// https://github.com/tc39/proposal-set-methods
|
|
$({ target: 'Set', proto: true, real: true, forced: !setMethodAcceptSetLike('isSupersetOf') }, {
|
|
isSupersetOf: isSupersetOf
|
|
});
|
|
|
|
|
|
/***/ }),
|
|
/* 351 */
|
|
/***/ (function(module, exports, __webpack_require__) {
|
|
|
|
"use strict";
|
|
|
|
var aSet = __webpack_require__(324);
|
|
var has = __webpack_require__(325).has;
|
|
var size = __webpack_require__(331);
|
|
var getSetRecord = __webpack_require__(332);
|
|
var iterateSimple = __webpack_require__(144);
|
|
var iteratorClose = __webpack_require__(165);
|
|
|
|
// `Set.prototype.isSupersetOf` method
|
|
// https://tc39.github.io/proposal-set-methods/#Set.prototype.isSupersetOf
|
|
module.exports = function isSupersetOf(other) {
|
|
var O = aSet(this);
|
|
var otherRec = getSetRecord(other);
|
|
if (size(O) < otherRec.size) return false;
|
|
var iterator = otherRec.getIterator();
|
|
return iterateSimple(iterator, function (e) {
|
|
if (!has(O, e)) return iteratorClose(iterator, 'normal', false);
|
|
}) !== false;
|
|
};
|
|
|
|
|
|
/***/ }),
|
|
/* 352 */
|
|
/***/ (function(module, exports, __webpack_require__) {
|
|
|
|
"use strict";
|
|
|
|
var $ = __webpack_require__(2);
|
|
var call = __webpack_require__(7);
|
|
var toSetLike = __webpack_require__(335);
|
|
var $isSupersetOf = __webpack_require__(351);
|
|
|
|
// `Set.prototype.isSupersetOf` method
|
|
// https://github.com/tc39/proposal-set-methods
|
|
// TODO: Obsolete version, remove from `core-js@4`
|
|
$({ target: 'Set', proto: true, real: true, forced: true }, {
|
|
isSupersetOf: function isSupersetOf(other) {
|
|
return call($isSupersetOf, this, toSetLike(other));
|
|
}
|
|
});
|
|
|
|
|
|
/***/ }),
|
|
/* 353 */
|
|
/***/ (function(module, exports, __webpack_require__) {
|
|
|
|
"use strict";
|
|
|
|
var $ = __webpack_require__(2);
|
|
var uncurryThis = __webpack_require__(13);
|
|
var aSet = __webpack_require__(324);
|
|
var iterate = __webpack_require__(330);
|
|
var toString = __webpack_require__(88);
|
|
|
|
var arrayJoin = uncurryThis([].join);
|
|
var push = uncurryThis([].push);
|
|
|
|
// `Set.prototype.join` method
|
|
// https://github.com/tc39/proposal-collection-methods
|
|
$({ target: 'Set', proto: true, real: true, forced: true }, {
|
|
join: function join(separator) {
|
|
var set = aSet(this);
|
|
var sep = separator === undefined ? ',' : toString(separator);
|
|
var array = [];
|
|
iterate(set, function (value) {
|
|
push(array, value);
|
|
});
|
|
return arrayJoin(array, sep);
|
|
}
|
|
});
|
|
|
|
|
|
/***/ }),
|
|
/* 354 */
|
|
/***/ (function(module, exports, __webpack_require__) {
|
|
|
|
"use strict";
|
|
|
|
var $ = __webpack_require__(2);
|
|
var bind = __webpack_require__(111);
|
|
var aSet = __webpack_require__(324);
|
|
var SetHelpers = __webpack_require__(325);
|
|
var iterate = __webpack_require__(330);
|
|
|
|
var Set = SetHelpers.Set;
|
|
var add = SetHelpers.add;
|
|
|
|
// `Set.prototype.map` method
|
|
// https://github.com/tc39/proposal-collection-methods
|
|
$({ target: 'Set', proto: true, real: true, forced: true }, {
|
|
map: function map(callbackfn /* , thisArg */) {
|
|
var set = aSet(this);
|
|
var boundFunction = bind(callbackfn, arguments.length > 1 ? arguments[1] : undefined);
|
|
var newSet = new Set();
|
|
iterate(set, function (value) {
|
|
add(newSet, boundFunction(value, value, set));
|
|
});
|
|
return newSet;
|
|
}
|
|
});
|
|
|
|
|
|
/***/ }),
|
|
/* 355 */
|
|
/***/ (function(module, exports, __webpack_require__) {
|
|
|
|
var $ = __webpack_require__(2);
|
|
var of = __webpack_require__(269);
|
|
|
|
// `Set.of` method
|
|
// https://tc39.github.io/proposal-setmap-offrom/#sec-set.of
|
|
$({ target: 'Set', stat: true, forced: true }, {
|
|
of: of
|
|
});
|
|
|
|
|
|
/***/ }),
|
|
/* 356 */
|
|
/***/ (function(module, exports, __webpack_require__) {
|
|
|
|
"use strict";
|
|
|
|
var $ = __webpack_require__(2);
|
|
var aCallable = __webpack_require__(30);
|
|
var aSet = __webpack_require__(324);
|
|
var iterate = __webpack_require__(330);
|
|
|
|
var $TypeError = TypeError;
|
|
|
|
// `Set.prototype.reduce` method
|
|
// https://github.com/tc39/proposal-collection-methods
|
|
$({ target: 'Set', proto: true, real: true, forced: true }, {
|
|
reduce: function reduce(callbackfn /* , initialValue */) {
|
|
var set = aSet(this);
|
|
var noInitial = arguments.length < 2;
|
|
var accumulator = noInitial ? undefined : arguments[1];
|
|
aCallable(callbackfn);
|
|
iterate(set, function (value) {
|
|
if (noInitial) {
|
|
noInitial = false;
|
|
accumulator = value;
|
|
} else {
|
|
accumulator = callbackfn(accumulator, value, value, set);
|
|
}
|
|
});
|
|
if (noInitial) throw $TypeError('Reduce of empty set with no initial value');
|
|
return accumulator;
|
|
}
|
|
});
|
|
|
|
|
|
/***/ }),
|
|
/* 357 */
|
|
/***/ (function(module, exports, __webpack_require__) {
|
|
|
|
"use strict";
|
|
|
|
var $ = __webpack_require__(2);
|
|
var bind = __webpack_require__(111);
|
|
var aSet = __webpack_require__(324);
|
|
var iterate = __webpack_require__(330);
|
|
|
|
// `Set.prototype.some` method
|
|
// https://github.com/tc39/proposal-collection-methods
|
|
$({ target: 'Set', proto: true, real: true, forced: true }, {
|
|
some: function some(callbackfn /* , thisArg */) {
|
|
var set = aSet(this);
|
|
var boundFunction = bind(callbackfn, arguments.length > 1 ? arguments[1] : undefined);
|
|
return iterate(set, function (value) {
|
|
if (boundFunction(value, value, set)) return true;
|
|
}, true) === true;
|
|
}
|
|
});
|
|
|
|
|
|
/***/ }),
|
|
/* 358 */
|
|
/***/ (function(module, exports, __webpack_require__) {
|
|
|
|
var $ = __webpack_require__(2);
|
|
var symmetricDifference = __webpack_require__(359);
|
|
var setMethodAcceptSetLike = __webpack_require__(333);
|
|
|
|
// `Set.prototype.symmetricDifference` method
|
|
// https://github.com/tc39/proposal-set-methods
|
|
$({ target: 'Set', proto: true, real: true, forced: !setMethodAcceptSetLike('symmetricDifference') }, {
|
|
symmetricDifference: symmetricDifference
|
|
});
|
|
|
|
|
|
/***/ }),
|
|
/* 359 */
|
|
/***/ (function(module, exports, __webpack_require__) {
|
|
|
|
"use strict";
|
|
|
|
var aSet = __webpack_require__(324);
|
|
var SetHelpers = __webpack_require__(325);
|
|
var clone = __webpack_require__(329);
|
|
var getSetRecord = __webpack_require__(332);
|
|
var iterateSimple = __webpack_require__(144);
|
|
|
|
var add = SetHelpers.add;
|
|
var has = SetHelpers.has;
|
|
var remove = SetHelpers.remove;
|
|
|
|
// `Set.prototype.symmetricDifference` method
|
|
// https://github.com/tc39/proposal-set-methods
|
|
module.exports = function symmetricDifference(other) {
|
|
var O = aSet(this);
|
|
var keysIter = getSetRecord(other).getIterator();
|
|
var result = clone(O);
|
|
iterateSimple(keysIter, function (e) {
|
|
if (has(O, e)) remove(result, e);
|
|
else add(result, e);
|
|
});
|
|
return result;
|
|
};
|
|
|
|
|
|
/***/ }),
|
|
/* 360 */
|
|
/***/ (function(module, exports, __webpack_require__) {
|
|
|
|
"use strict";
|
|
|
|
var $ = __webpack_require__(2);
|
|
var call = __webpack_require__(7);
|
|
var toSetLike = __webpack_require__(335);
|
|
var $symmetricDifference = __webpack_require__(359);
|
|
|
|
// `Set.prototype.symmetricDifference` method
|
|
// https://github.com/tc39/proposal-set-methods
|
|
// TODO: Obsolete version, remove from `core-js@4`
|
|
$({ target: 'Set', proto: true, real: true, forced: true }, {
|
|
symmetricDifference: function symmetricDifference(other) {
|
|
return call($symmetricDifference, this, toSetLike(other));
|
|
}
|
|
});
|
|
|
|
|
|
/***/ }),
|
|
/* 361 */
|
|
/***/ (function(module, exports, __webpack_require__) {
|
|
|
|
var $ = __webpack_require__(2);
|
|
var union = __webpack_require__(362);
|
|
var setMethodAcceptSetLike = __webpack_require__(333);
|
|
|
|
// `Set.prototype.union` method
|
|
// https://github.com/tc39/proposal-set-methods
|
|
$({ target: 'Set', proto: true, real: true, forced: !setMethodAcceptSetLike('union') }, {
|
|
union: union
|
|
});
|
|
|
|
|
|
/***/ }),
|
|
/* 362 */
|
|
/***/ (function(module, exports, __webpack_require__) {
|
|
|
|
"use strict";
|
|
|
|
var aSet = __webpack_require__(324);
|
|
var add = __webpack_require__(325).add;
|
|
var clone = __webpack_require__(329);
|
|
var getSetRecord = __webpack_require__(332);
|
|
var iterateSimple = __webpack_require__(144);
|
|
|
|
// `Set.prototype.union` method
|
|
// https://github.com/tc39/proposal-set-methods
|
|
module.exports = function union(other) {
|
|
var O = aSet(this);
|
|
var keysIter = getSetRecord(other).getIterator();
|
|
var result = clone(O);
|
|
iterateSimple(keysIter, function (it) {
|
|
add(result, it);
|
|
});
|
|
return result;
|
|
};
|
|
|
|
|
|
/***/ }),
|
|
/* 363 */
|
|
/***/ (function(module, exports, __webpack_require__) {
|
|
|
|
"use strict";
|
|
|
|
var $ = __webpack_require__(2);
|
|
var call = __webpack_require__(7);
|
|
var toSetLike = __webpack_require__(335);
|
|
var $union = __webpack_require__(362);
|
|
|
|
// `Set.prototype.union` method
|
|
// https://github.com/tc39/proposal-set-methods
|
|
// TODO: Obsolete version, remove from `core-js@4`
|
|
$({ target: 'Set', proto: true, real: true, forced: true }, {
|
|
union: function union(other) {
|
|
return call($union, this, toSetLike(other));
|
|
}
|
|
});
|
|
|
|
|
|
/***/ }),
|
|
/* 364 */
|
|
/***/ (function(module, exports, __webpack_require__) {
|
|
|
|
"use strict";
|
|
|
|
// TODO: Remove from `core-js@4`
|
|
var $ = __webpack_require__(2);
|
|
var charAt = __webpack_require__(365).charAt;
|
|
var requireObjectCoercible = __webpack_require__(15);
|
|
var toIntegerOrInfinity = __webpack_require__(61);
|
|
var toString = __webpack_require__(88);
|
|
|
|
// `String.prototype.at` method
|
|
// https://github.com/mathiasbynens/String.prototype.at
|
|
$({ target: 'String', proto: true, forced: true }, {
|
|
at: function at(index) {
|
|
var S = toString(requireObjectCoercible(this));
|
|
var len = S.length;
|
|
var relativeIndex = toIntegerOrInfinity(index);
|
|
var k = relativeIndex >= 0 ? relativeIndex : len + relativeIndex;
|
|
return (k < 0 || k >= len) ? undefined : charAt(S, k);
|
|
}
|
|
});
|
|
|
|
|
|
/***/ }),
|
|
/* 365 */
|
|
/***/ (function(module, exports, __webpack_require__) {
|
|
|
|
var uncurryThis = __webpack_require__(13);
|
|
var toIntegerOrInfinity = __webpack_require__(61);
|
|
var toString = __webpack_require__(88);
|
|
var requireObjectCoercible = __webpack_require__(15);
|
|
|
|
var charAt = uncurryThis(''.charAt);
|
|
var charCodeAt = uncurryThis(''.charCodeAt);
|
|
var stringSlice = uncurryThis(''.slice);
|
|
|
|
var createMethod = function (CONVERT_TO_STRING) {
|
|
return function ($this, pos) {
|
|
var S = toString(requireObjectCoercible($this));
|
|
var position = toIntegerOrInfinity(pos);
|
|
var size = S.length;
|
|
var first, second;
|
|
if (position < 0 || position >= size) return CONVERT_TO_STRING ? '' : undefined;
|
|
first = charCodeAt(S, position);
|
|
return first < 0xD800 || first > 0xDBFF || position + 1 === size
|
|
|| (second = charCodeAt(S, position + 1)) < 0xDC00 || second > 0xDFFF
|
|
? CONVERT_TO_STRING
|
|
? charAt(S, position)
|
|
: first
|
|
: CONVERT_TO_STRING
|
|
? stringSlice(S, position, position + 2)
|
|
: (first - 0xD800 << 10) + (second - 0xDC00) + 0x10000;
|
|
};
|
|
};
|
|
|
|
module.exports = {
|
|
// `String.prototype.codePointAt` method
|
|
// https://tc39.es/ecma262/#sec-string.prototype.codepointat
|
|
codeAt: createMethod(false),
|
|
// `String.prototype.at` method
|
|
// https://github.com/mathiasbynens/String.prototype.at
|
|
charAt: createMethod(true)
|
|
};
|
|
|
|
|
|
/***/ }),
|
|
/* 366 */
|
|
/***/ (function(module, exports, __webpack_require__) {
|
|
|
|
var $ = __webpack_require__(2);
|
|
var cooked = __webpack_require__(367);
|
|
|
|
// `String.cooked` method
|
|
// https://github.com/tc39/proposal-string-cooked
|
|
$({ target: 'String', stat: true, forced: true }, {
|
|
cooked: cooked
|
|
});
|
|
|
|
|
|
/***/ }),
|
|
/* 367 */
|
|
/***/ (function(module, exports, __webpack_require__) {
|
|
|
|
var uncurryThis = __webpack_require__(13);
|
|
var toIndexedObject = __webpack_require__(11);
|
|
var toString = __webpack_require__(88);
|
|
var lengthOfArrayLike = __webpack_require__(63);
|
|
|
|
var $TypeError = TypeError;
|
|
var push = uncurryThis([].push);
|
|
var join = uncurryThis([].join);
|
|
|
|
// `String.cooked` method
|
|
// https://tc39.es/proposal-string-cooked/
|
|
module.exports = function cooked(template /* , ...substitutions */) {
|
|
var cookedTemplate = toIndexedObject(template);
|
|
var literalSegments = lengthOfArrayLike(cookedTemplate);
|
|
if (!literalSegments) return '';
|
|
var argumentsLength = arguments.length;
|
|
var elements = [];
|
|
var i = 0;
|
|
while (true) {
|
|
var nextVal = cookedTemplate[i++];
|
|
if (nextVal === undefined) throw $TypeError('Incorrect template');
|
|
push(elements, toString(nextVal));
|
|
if (i === literalSegments) return join(elements, '');
|
|
if (i < argumentsLength) push(elements, toString(arguments[i]));
|
|
}
|
|
};
|
|
|
|
|
|
/***/ }),
|
|
/* 368 */
|
|
/***/ (function(module, exports, __webpack_require__) {
|
|
|
|
"use strict";
|
|
|
|
var $ = __webpack_require__(2);
|
|
var createIteratorConstructor = __webpack_require__(186);
|
|
var createIterResultObject = __webpack_require__(118);
|
|
var requireObjectCoercible = __webpack_require__(15);
|
|
var toString = __webpack_require__(88);
|
|
var InternalStateModule = __webpack_require__(51);
|
|
var StringMultibyteModule = __webpack_require__(365);
|
|
|
|
var codeAt = StringMultibyteModule.codeAt;
|
|
var charAt = StringMultibyteModule.charAt;
|
|
var STRING_ITERATOR = 'String Iterator';
|
|
var setInternalState = InternalStateModule.set;
|
|
var getInternalState = InternalStateModule.getterFor(STRING_ITERATOR);
|
|
|
|
// TODO: unify with String#@@iterator
|
|
var $StringIterator = createIteratorConstructor(function StringIterator(string) {
|
|
setInternalState(this, {
|
|
type: STRING_ITERATOR,
|
|
string: string,
|
|
index: 0
|
|
});
|
|
}, 'String', function next() {
|
|
var state = getInternalState(this);
|
|
var string = state.string;
|
|
var index = state.index;
|
|
var point;
|
|
if (index >= string.length) return createIterResultObject(undefined, true);
|
|
point = charAt(string, index);
|
|
state.index += point.length;
|
|
return createIterResultObject({ codePoint: codeAt(point, 0), position: index }, false);
|
|
});
|
|
|
|
// `String.prototype.codePoints` method
|
|
// https://github.com/tc39/proposal-string-prototype-codepoints
|
|
$({ target: 'String', proto: true, forced: true }, {
|
|
codePoints: function codePoints() {
|
|
return new $StringIterator(toString(requireObjectCoercible(this)));
|
|
}
|
|
});
|
|
|
|
|
|
/***/ }),
|
|
/* 369 */
|
|
/***/ (function(module, exports, __webpack_require__) {
|
|
|
|
"use strict";
|
|
|
|
var FREEZING = __webpack_require__(201);
|
|
var $ = __webpack_require__(2);
|
|
var shared = __webpack_require__(34);
|
|
var getBuiltIn = __webpack_require__(23);
|
|
var makeBuiltIn = __webpack_require__(48);
|
|
var uncurryThis = __webpack_require__(13);
|
|
var apply = __webpack_require__(190);
|
|
var anObject = __webpack_require__(46);
|
|
var toObject = __webpack_require__(39);
|
|
var isCallable = __webpack_require__(20);
|
|
var lengthOfArrayLike = __webpack_require__(63);
|
|
var defineProperty = __webpack_require__(44).f;
|
|
var createArrayFromList = __webpack_require__(197);
|
|
var cooked = __webpack_require__(367);
|
|
var parse = __webpack_require__(370);
|
|
var whitespaces = __webpack_require__(297);
|
|
|
|
var WeakMap = getBuiltIn('WeakMap');
|
|
var globalDedentRegistry = shared('GlobalDedentRegistry', new WeakMap());
|
|
|
|
/* eslint-disable no-self-assign -- prototype methods protection */
|
|
globalDedentRegistry.has = globalDedentRegistry.has;
|
|
globalDedentRegistry.get = globalDedentRegistry.get;
|
|
globalDedentRegistry.set = globalDedentRegistry.set;
|
|
/* eslint-enable no-self-assign -- prototype methods protection */
|
|
|
|
var $Array = Array;
|
|
var $TypeError = TypeError;
|
|
// eslint-disable-next-line es/no-object-freeze -- safe
|
|
var freeze = Object.freeze || Object;
|
|
// eslint-disable-next-line es/no-object-isfrozen -- safe
|
|
var isFrozen = Object.isFrozen;
|
|
var min = Math.min;
|
|
var charAt = uncurryThis(''.charAt);
|
|
var stringSlice = uncurryThis(''.slice);
|
|
var split = uncurryThis(''.split);
|
|
var exec = uncurryThis(/./.exec);
|
|
|
|
var NEW_LINE = /([\n\u2028\u2029]|\r\n?)/g;
|
|
var LEADING_WHITESPACE = RegExp('^[' + whitespaces + ']*');
|
|
var NON_WHITESPACE = RegExp('[^' + whitespaces + ']');
|
|
var INVALID_TAG = 'Invalid tag';
|
|
var INVALID_OPENING_LINE = 'Invalid opening line';
|
|
var INVALID_CLOSING_LINE = 'Invalid closing line';
|
|
|
|
var dedentTemplateStringsArray = function (template) {
|
|
var rawInput = template.raw;
|
|
// https://github.com/tc39/proposal-string-dedent/issues/75
|
|
if (FREEZING && !isFrozen(rawInput)) throw $TypeError('Raw template should be frozen');
|
|
if (globalDedentRegistry.has(rawInput)) return globalDedentRegistry.get(rawInput);
|
|
var raw = dedentStringsArray(rawInput);
|
|
var cookedArr = cookStrings(raw);
|
|
defineProperty(cookedArr, 'raw', {
|
|
value: freeze(raw)
|
|
});
|
|
freeze(cookedArr);
|
|
globalDedentRegistry.set(rawInput, cookedArr);
|
|
return cookedArr;
|
|
};
|
|
|
|
var dedentStringsArray = function (template) {
|
|
var t = toObject(template);
|
|
var length = lengthOfArrayLike(t);
|
|
var blocks = $Array(length);
|
|
var dedented = $Array(length);
|
|
var i = 0;
|
|
var lines, common;
|
|
|
|
if (!length) throw $TypeError(INVALID_TAG);
|
|
|
|
for (; i < length; i++) {
|
|
var element = t[i];
|
|
if (typeof element == 'string') blocks[i] = split(element, NEW_LINE);
|
|
else throw $TypeError(INVALID_TAG);
|
|
}
|
|
|
|
for (i = 0; i < length; i++) {
|
|
var lastSplit = i + 1 === length;
|
|
lines = blocks[i];
|
|
if (i === 0) {
|
|
if (lines.length === 1 || lines[0].length > 0) {
|
|
throw $TypeError(INVALID_OPENING_LINE);
|
|
}
|
|
lines[1] = '';
|
|
}
|
|
if (lastSplit) {
|
|
if (lines.length === 1 || exec(NON_WHITESPACE, lines[lines.length - 1])) {
|
|
throw $TypeError(INVALID_CLOSING_LINE);
|
|
}
|
|
lines[lines.length - 2] = '';
|
|
lines[lines.length - 1] = '';
|
|
}
|
|
for (var j = 2; j < lines.length; j += 2) {
|
|
var text = lines[j];
|
|
var lineContainsTemplateExpression = j + 1 === lines.length && !lastSplit;
|
|
var leading = exec(LEADING_WHITESPACE, text)[0];
|
|
if (!lineContainsTemplateExpression && leading.length === text.length) {
|
|
lines[j] = '';
|
|
continue;
|
|
}
|
|
common = commonLeadingIndentation(leading, common);
|
|
}
|
|
}
|
|
|
|
var count = common ? common.length : 0;
|
|
|
|
for (i = 0; i < length; i++) {
|
|
lines = blocks[i];
|
|
for (var quasi = lines[0], k = 1; k < lines.length; k += 2) {
|
|
quasi += lines[k] + stringSlice(lines[k + 1], count);
|
|
}
|
|
dedented[i] = quasi;
|
|
}
|
|
|
|
return dedented;
|
|
};
|
|
|
|
var commonLeadingIndentation = function (a, b) {
|
|
if (b === undefined || a === b) return a;
|
|
var i = 0;
|
|
for (var len = min(a.length, b.length); i < len; i++) {
|
|
if (charAt(a, i) !== charAt(b, i)) break;
|
|
}
|
|
return stringSlice(a, 0, i);
|
|
};
|
|
|
|
var cookStrings = function (raw) {
|
|
for (var i = 0, length = raw.length, result = $Array(length); i < length; i++) {
|
|
result[i] = parse(raw[i]);
|
|
} return result;
|
|
};
|
|
|
|
var makeDedentTag = function (tag) {
|
|
return makeBuiltIn(function (template /* , ...substitutions */) {
|
|
var args = createArrayFromList(arguments);
|
|
args[0] = dedentTemplateStringsArray(anObject(template));
|
|
return apply(tag, this, args);
|
|
}, '');
|
|
};
|
|
|
|
var cookedDedentTag = makeDedentTag(cooked);
|
|
|
|
// `String.dedent` method
|
|
// https://github.com/tc39/proposal-string-dedent
|
|
$({ target: 'String', stat: true, forced: true }, {
|
|
dedent: function dedent(templateOrFn /* , ...substitutions */) {
|
|
anObject(templateOrFn);
|
|
if (isCallable(templateOrFn)) return makeDedentTag(templateOrFn);
|
|
return apply(cookedDedentTag, this, arguments);
|
|
}
|
|
});
|
|
|
|
|
|
/***/ }),
|
|
/* 370 */
|
|
/***/ (function(module, exports, __webpack_require__) {
|
|
|
|
// adapted from https://github.com/jridgewell/string-dedent
|
|
var getBuiltIn = __webpack_require__(23);
|
|
var uncurryThis = __webpack_require__(13);
|
|
|
|
var fromCharCode = String.fromCharCode;
|
|
var fromCodePoint = getBuiltIn('String', 'fromCodePoint');
|
|
var charAt = uncurryThis(''.charAt);
|
|
var charCodeAt = uncurryThis(''.charCodeAt);
|
|
var stringIndexOf = uncurryThis(''.indexOf);
|
|
var stringSlice = uncurryThis(''.slice);
|
|
|
|
var ZERO_CODE = 48;
|
|
var NINE_CODE = 57;
|
|
var LOWER_A_CODE = 97;
|
|
var LOWER_F_CODE = 102;
|
|
var UPPER_A_CODE = 65;
|
|
var UPPER_F_CODE = 70;
|
|
|
|
var isDigit = function (str, index) {
|
|
var c = charCodeAt(str, index);
|
|
return c >= ZERO_CODE && c <= NINE_CODE;
|
|
};
|
|
|
|
var parseHex = function (str, index, end) {
|
|
if (end >= str.length) return -1;
|
|
var n = 0;
|
|
for (; index < end; index++) {
|
|
var c = hexToInt(charCodeAt(str, index));
|
|
if (c === -1) return -1;
|
|
n = n * 16 + c;
|
|
}
|
|
return n;
|
|
};
|
|
|
|
var hexToInt = function (c) {
|
|
if (c >= ZERO_CODE && c <= NINE_CODE) return c - ZERO_CODE;
|
|
if (c >= LOWER_A_CODE && c <= LOWER_F_CODE) return c - LOWER_A_CODE + 10;
|
|
if (c >= UPPER_A_CODE && c <= UPPER_F_CODE) return c - UPPER_A_CODE + 10;
|
|
return -1;
|
|
};
|
|
|
|
module.exports = function (raw) {
|
|
var out = '';
|
|
var start = 0;
|
|
// We need to find every backslash escape sequence, and cook the escape into a real char.
|
|
var i = 0;
|
|
var n;
|
|
while ((i = stringIndexOf(raw, '\\', i)) > -1) {
|
|
out += stringSlice(raw, start, i);
|
|
// If the backslash is the last char of the string, then it was an invalid sequence.
|
|
// This can't actually happen in a tagged template literal, but could happen if you manually
|
|
// invoked the tag with an array.
|
|
if (++i === raw.length) return;
|
|
var next = charAt(raw, i++);
|
|
switch (next) {
|
|
// Escaped control codes need to be individually processed.
|
|
case 'b':
|
|
out += '\b';
|
|
break;
|
|
case 't':
|
|
out += '\t';
|
|
break;
|
|
case 'n':
|
|
out += '\n';
|
|
break;
|
|
case 'v':
|
|
out += '\v';
|
|
break;
|
|
case 'f':
|
|
out += '\f';
|
|
break;
|
|
case 'r':
|
|
out += '\r';
|
|
break;
|
|
// Escaped line terminators just skip the char.
|
|
case '\r':
|
|
// Treat `\r\n` as a single terminator.
|
|
if (i < raw.length && charAt(raw, i) === '\n') ++i;
|
|
// break omitted
|
|
case '\n':
|
|
case '\u2028':
|
|
case '\u2029':
|
|
break;
|
|
// `\0` is a null control char, but `\0` followed by another digit is an illegal octal escape.
|
|
case '0':
|
|
if (isDigit(raw, i)) return;
|
|
out += '\0';
|
|
break;
|
|
// Hex escapes must contain 2 hex chars.
|
|
case 'x':
|
|
n = parseHex(raw, i, i + 2);
|
|
if (n === -1) return;
|
|
i += 2;
|
|
out += fromCharCode(n);
|
|
break;
|
|
// Unicode escapes contain either 4 chars, or an unlimited number between `{` and `}`.
|
|
// The hex value must not overflow 0x10FFFF.
|
|
case 'u':
|
|
if (i < raw.length && charAt(raw, i) === '{') {
|
|
var end = stringIndexOf(raw, '}', ++i);
|
|
if (end === -1) return;
|
|
n = parseHex(raw, i, end);
|
|
i = end + 1;
|
|
} else {
|
|
n = parseHex(raw, i, i + 4);
|
|
i += 4;
|
|
}
|
|
if (n === -1 || n > 0x10FFFF) return;
|
|
out += fromCodePoint(n);
|
|
break;
|
|
default:
|
|
if (isDigit(next, 0)) return;
|
|
out += next;
|
|
}
|
|
start = i;
|
|
}
|
|
return out + stringSlice(raw, start);
|
|
};
|
|
|
|
|
|
/***/ }),
|
|
/* 371 */
|
|
/***/ (function(module, exports, __webpack_require__) {
|
|
|
|
var defineWellKnownSymbol = __webpack_require__(372);
|
|
|
|
// `Symbol.asyncDispose` well-known symbol
|
|
// https://github.com/tc39/proposal-async-explicit-resource-management
|
|
defineWellKnownSymbol('asyncDispose');
|
|
|
|
|
|
/***/ }),
|
|
/* 372 */
|
|
/***/ (function(module, exports, __webpack_require__) {
|
|
|
|
var path = __webpack_require__(373);
|
|
var hasOwn = __webpack_require__(38);
|
|
var wrappedWellKnownSymbolModule = __webpack_require__(374);
|
|
var defineProperty = __webpack_require__(44).f;
|
|
|
|
module.exports = function (NAME) {
|
|
var Symbol = path.Symbol || (path.Symbol = {});
|
|
if (!hasOwn(Symbol, NAME)) defineProperty(Symbol, NAME, {
|
|
value: wrappedWellKnownSymbolModule.f(NAME)
|
|
});
|
|
};
|
|
|
|
|
|
/***/ }),
|
|
/* 373 */
|
|
/***/ (function(module, exports, __webpack_require__) {
|
|
|
|
var global = __webpack_require__(3);
|
|
|
|
module.exports = global;
|
|
|
|
|
|
/***/ }),
|
|
/* 374 */
|
|
/***/ (function(module, exports, __webpack_require__) {
|
|
|
|
var wellKnownSymbol = __webpack_require__(33);
|
|
|
|
exports.f = wellKnownSymbol;
|
|
|
|
|
|
/***/ }),
|
|
/* 375 */
|
|
/***/ (function(module, exports, __webpack_require__) {
|
|
|
|
var defineWellKnownSymbol = __webpack_require__(372);
|
|
|
|
// `Symbol.dispose` well-known symbol
|
|
// https://github.com/tc39/proposal-explicit-resource-management
|
|
defineWellKnownSymbol('dispose');
|
|
|
|
|
|
/***/ }),
|
|
/* 376 */
|
|
/***/ (function(module, exports, __webpack_require__) {
|
|
|
|
var $ = __webpack_require__(2);
|
|
var isRegisteredSymbol = __webpack_require__(377);
|
|
|
|
// `Symbol.isRegisteredSymbol` method
|
|
// https://tc39.es/proposal-symbol-predicates/#sec-symbol-isregisteredsymbol
|
|
$({ target: 'Symbol', stat: true }, {
|
|
isRegisteredSymbol: isRegisteredSymbol
|
|
});
|
|
|
|
|
|
/***/ }),
|
|
/* 377 */
|
|
/***/ (function(module, exports, __webpack_require__) {
|
|
|
|
var getBuiltIn = __webpack_require__(23);
|
|
var uncurryThis = __webpack_require__(13);
|
|
|
|
var Symbol = getBuiltIn('Symbol');
|
|
var keyFor = Symbol.keyFor;
|
|
var thisSymbolValue = uncurryThis(Symbol.prototype.valueOf);
|
|
|
|
// `Symbol.isRegisteredSymbol` method
|
|
// https://tc39.es/proposal-symbol-predicates/#sec-symbol-isregisteredsymbol
|
|
module.exports = Symbol.isRegisteredSymbol || function isRegisteredSymbol(value) {
|
|
try {
|
|
return keyFor(thisSymbolValue(value)) !== undefined;
|
|
} catch (error) {
|
|
return false;
|
|
}
|
|
};
|
|
|
|
|
|
/***/ }),
|
|
/* 378 */
|
|
/***/ (function(module, exports, __webpack_require__) {
|
|
|
|
var $ = __webpack_require__(2);
|
|
var isRegisteredSymbol = __webpack_require__(377);
|
|
|
|
// `Symbol.isRegistered` method
|
|
// obsolete version of https://tc39.es/proposal-symbol-predicates/#sec-symbol-isregisteredsymbol
|
|
$({ target: 'Symbol', stat: true, name: 'isRegisteredSymbol' }, {
|
|
isRegistered: isRegisteredSymbol
|
|
});
|
|
|
|
|
|
/***/ }),
|
|
/* 379 */
|
|
/***/ (function(module, exports, __webpack_require__) {
|
|
|
|
var $ = __webpack_require__(2);
|
|
var isWellKnownSymbol = __webpack_require__(380);
|
|
|
|
// `Symbol.isWellKnownSymbol` method
|
|
// https://tc39.es/proposal-symbol-predicates/#sec-symbol-iswellknownsymbol
|
|
// We should patch it for newly added well-known symbols. If it's not required, this module just will not be injected
|
|
$({ target: 'Symbol', stat: true, forced: true }, {
|
|
isWellKnownSymbol: isWellKnownSymbol
|
|
});
|
|
|
|
|
|
/***/ }),
|
|
/* 380 */
|
|
/***/ (function(module, exports, __webpack_require__) {
|
|
|
|
var shared = __webpack_require__(34);
|
|
var getBuiltIn = __webpack_require__(23);
|
|
var uncurryThis = __webpack_require__(13);
|
|
var isSymbol = __webpack_require__(22);
|
|
var wellKnownSymbol = __webpack_require__(33);
|
|
|
|
var Symbol = getBuiltIn('Symbol');
|
|
var $isWellKnownSymbol = Symbol.isWellKnownSymbol;
|
|
var getOwnPropertyNames = getBuiltIn('Object', 'getOwnPropertyNames');
|
|
var thisSymbolValue = uncurryThis(Symbol.prototype.valueOf);
|
|
var WellKnownSymbolsStore = shared('wks');
|
|
|
|
for (var i = 0, symbolKeys = getOwnPropertyNames(Symbol), symbolKeysLength = symbolKeys.length; i < symbolKeysLength; i++) {
|
|
// some old engines throws on access to some keys like `arguments` or `caller`
|
|
try {
|
|
var symbolKey = symbolKeys[i];
|
|
if (isSymbol(Symbol[symbolKey])) wellKnownSymbol(symbolKey);
|
|
} catch (error) { /* empty */ }
|
|
}
|
|
|
|
// `Symbol.isWellKnownSymbol` method
|
|
// https://tc39.es/proposal-symbol-predicates/#sec-symbol-iswellknownsymbol
|
|
// We should patch it for newly added well-known symbols. If it's not required, this module just will not be injected
|
|
module.exports = function isWellKnownSymbol(value) {
|
|
if ($isWellKnownSymbol && $isWellKnownSymbol(value)) return true;
|
|
try {
|
|
var symbol = thisSymbolValue(value);
|
|
for (var j = 0, keys = getOwnPropertyNames(WellKnownSymbolsStore), keysLength = keys.length; j < keysLength; j++) {
|
|
if (WellKnownSymbolsStore[keys[j]] == symbol) return true;
|
|
}
|
|
} catch (error) { /* empty */ }
|
|
return false;
|
|
};
|
|
|
|
|
|
/***/ }),
|
|
/* 381 */
|
|
/***/ (function(module, exports, __webpack_require__) {
|
|
|
|
var $ = __webpack_require__(2);
|
|
var isWellKnownSymbol = __webpack_require__(380);
|
|
|
|
// `Symbol.isWellKnown` method
|
|
// obsolete version of https://tc39.es/proposal-symbol-predicates/#sec-symbol-iswellknownsymbol
|
|
// We should patch it for newly added well-known symbols. If it's not required, this module just will not be injected
|
|
$({ target: 'Symbol', stat: true, name: 'isWellKnownSymbol', forced: true }, {
|
|
isWellKnown: isWellKnownSymbol
|
|
});
|
|
|
|
|
|
/***/ }),
|
|
/* 382 */
|
|
/***/ (function(module, exports, __webpack_require__) {
|
|
|
|
var defineWellKnownSymbol = __webpack_require__(372);
|
|
|
|
// `Symbol.matcher` well-known symbol
|
|
// https://github.com/tc39/proposal-pattern-matching
|
|
defineWellKnownSymbol('matcher');
|
|
|
|
|
|
/***/ }),
|
|
/* 383 */
|
|
/***/ (function(module, exports, __webpack_require__) {
|
|
|
|
// TODO: Remove from `core-js@4`
|
|
var defineWellKnownSymbol = __webpack_require__(372);
|
|
|
|
// `Symbol.metadata` well-known symbol
|
|
// https://github.com/tc39/proposal-decorators
|
|
defineWellKnownSymbol('metadata');
|
|
|
|
|
|
/***/ }),
|
|
/* 384 */
|
|
/***/ (function(module, exports, __webpack_require__) {
|
|
|
|
var defineWellKnownSymbol = __webpack_require__(372);
|
|
|
|
// `Symbol.metadataKey` well-known symbol
|
|
// https://github.com/tc39/proposal-decorator-metadata
|
|
defineWellKnownSymbol('metadataKey');
|
|
|
|
|
|
/***/ }),
|
|
/* 385 */
|
|
/***/ (function(module, exports, __webpack_require__) {
|
|
|
|
var defineWellKnownSymbol = __webpack_require__(372);
|
|
|
|
// `Symbol.observable` well-known symbol
|
|
// https://github.com/tc39/proposal-observable
|
|
defineWellKnownSymbol('observable');
|
|
|
|
|
|
/***/ }),
|
|
/* 386 */
|
|
/***/ (function(module, exports, __webpack_require__) {
|
|
|
|
// TODO: remove from `core-js@4`
|
|
var defineWellKnownSymbol = __webpack_require__(372);
|
|
|
|
// `Symbol.patternMatch` well-known symbol
|
|
// https://github.com/tc39/proposal-pattern-matching
|
|
defineWellKnownSymbol('patternMatch');
|
|
|
|
|
|
/***/ }),
|
|
/* 387 */
|
|
/***/ (function(module, exports, __webpack_require__) {
|
|
|
|
// TODO: remove from `core-js@4`
|
|
var defineWellKnownSymbol = __webpack_require__(372);
|
|
|
|
defineWellKnownSymbol('replaceAll');
|
|
|
|
|
|
/***/ }),
|
|
/* 388 */
|
|
/***/ (function(module, exports, __webpack_require__) {
|
|
|
|
"use strict";
|
|
|
|
// TODO: Remove from `core-js@4`
|
|
var getBuiltIn = __webpack_require__(23);
|
|
var aConstructor = __webpack_require__(259);
|
|
var arrayFromAsync = __webpack_require__(110);
|
|
var ArrayBufferViewCore = __webpack_require__(93);
|
|
var arrayFromConstructorAndList = __webpack_require__(79);
|
|
|
|
var aTypedArrayConstructor = ArrayBufferViewCore.aTypedArrayConstructor;
|
|
var exportTypedArrayStaticMethod = ArrayBufferViewCore.exportTypedArrayStaticMethod;
|
|
|
|
// `%TypedArray%.fromAsync` method
|
|
// https://github.com/tc39/proposal-array-from-async
|
|
exportTypedArrayStaticMethod('fromAsync', function fromAsync(asyncItems /* , mapfn = undefined, thisArg = undefined */) {
|
|
var C = this;
|
|
var argumentsLength = arguments.length;
|
|
var mapfn = argumentsLength > 1 ? arguments[1] : undefined;
|
|
var thisArg = argumentsLength > 2 ? arguments[2] : undefined;
|
|
return new (getBuiltIn('Promise'))(function (resolve) {
|
|
aConstructor(C);
|
|
resolve(arrayFromAsync(asyncItems, mapfn, thisArg));
|
|
}).then(function (list) {
|
|
return arrayFromConstructorAndList(aTypedArrayConstructor(C), list);
|
|
});
|
|
}, true);
|
|
|
|
|
|
/***/ }),
|
|
/* 389 */
|
|
/***/ (function(module, exports, __webpack_require__) {
|
|
|
|
"use strict";
|
|
|
|
// TODO: Remove from `core-js@4`
|
|
var ArrayBufferViewCore = __webpack_require__(93);
|
|
var $filterReject = __webpack_require__(126).filterReject;
|
|
var fromSpeciesAndList = __webpack_require__(390);
|
|
|
|
var aTypedArray = ArrayBufferViewCore.aTypedArray;
|
|
var exportTypedArrayMethod = ArrayBufferViewCore.exportTypedArrayMethod;
|
|
|
|
// `%TypedArray%.prototype.filterOut` method
|
|
// https://github.com/tc39/proposal-array-filtering
|
|
exportTypedArrayMethod('filterOut', function filterOut(callbackfn /* , thisArg */) {
|
|
var list = $filterReject(aTypedArray(this), callbackfn, arguments.length > 1 ? arguments[1] : undefined);
|
|
return fromSpeciesAndList(this, list);
|
|
}, true);
|
|
|
|
|
|
/***/ }),
|
|
/* 390 */
|
|
/***/ (function(module, exports, __webpack_require__) {
|
|
|
|
var arrayFromConstructorAndList = __webpack_require__(79);
|
|
var typedArraySpeciesConstructor = __webpack_require__(391);
|
|
|
|
module.exports = function (instance, list) {
|
|
return arrayFromConstructorAndList(typedArraySpeciesConstructor(instance), list);
|
|
};
|
|
|
|
|
|
/***/ }),
|
|
/* 391 */
|
|
/***/ (function(module, exports, __webpack_require__) {
|
|
|
|
var ArrayBufferViewCore = __webpack_require__(93);
|
|
var speciesConstructor = __webpack_require__(392);
|
|
|
|
var aTypedArrayConstructor = ArrayBufferViewCore.aTypedArrayConstructor;
|
|
var getTypedArrayConstructor = ArrayBufferViewCore.getTypedArrayConstructor;
|
|
|
|
// a part of `TypedArraySpeciesCreate` abstract operation
|
|
// https://tc39.es/ecma262/#typedarray-species-create
|
|
module.exports = function (originalArray) {
|
|
return aTypedArrayConstructor(speciesConstructor(originalArray, getTypedArrayConstructor(originalArray)));
|
|
};
|
|
|
|
|
|
/***/ }),
|
|
/* 392 */
|
|
/***/ (function(module, exports, __webpack_require__) {
|
|
|
|
var anObject = __webpack_require__(46);
|
|
var aConstructor = __webpack_require__(259);
|
|
var isNullOrUndefined = __webpack_require__(16);
|
|
var wellKnownSymbol = __webpack_require__(33);
|
|
|
|
var SPECIES = wellKnownSymbol('species');
|
|
|
|
// `SpeciesConstructor` abstract operation
|
|
// https://tc39.es/ecma262/#sec-speciesconstructor
|
|
module.exports = function (O, defaultConstructor) {
|
|
var C = anObject(O).constructor;
|
|
var S;
|
|
return C === undefined || isNullOrUndefined(S = anObject(C)[SPECIES]) ? defaultConstructor : aConstructor(S);
|
|
};
|
|
|
|
|
|
/***/ }),
|
|
/* 393 */
|
|
/***/ (function(module, exports, __webpack_require__) {
|
|
|
|
"use strict";
|
|
|
|
var ArrayBufferViewCore = __webpack_require__(93);
|
|
var $filterReject = __webpack_require__(126).filterReject;
|
|
var fromSpeciesAndList = __webpack_require__(390);
|
|
|
|
var aTypedArray = ArrayBufferViewCore.aTypedArray;
|
|
var exportTypedArrayMethod = ArrayBufferViewCore.exportTypedArrayMethod;
|
|
|
|
// `%TypedArray%.prototype.filterReject` method
|
|
// https://github.com/tc39/proposal-array-filtering
|
|
exportTypedArrayMethod('filterReject', function filterReject(callbackfn /* , thisArg */) {
|
|
var list = $filterReject(aTypedArray(this), callbackfn, arguments.length > 1 ? arguments[1] : undefined);
|
|
return fromSpeciesAndList(this, list);
|
|
}, true);
|
|
|
|
|
|
/***/ }),
|
|
/* 394 */
|
|
/***/ (function(module, exports, __webpack_require__) {
|
|
|
|
"use strict";
|
|
|
|
// TODO: Remove from `core-js@4`
|
|
var ArrayBufferViewCore = __webpack_require__(93);
|
|
var $group = __webpack_require__(131);
|
|
var typedArraySpeciesConstructor = __webpack_require__(391);
|
|
|
|
var aTypedArray = ArrayBufferViewCore.aTypedArray;
|
|
var exportTypedArrayMethod = ArrayBufferViewCore.exportTypedArrayMethod;
|
|
|
|
// `%TypedArray%.prototype.groupBy` method
|
|
// https://github.com/tc39/proposal-array-grouping
|
|
exportTypedArrayMethod('groupBy', function groupBy(callbackfn /* , thisArg */) {
|
|
var thisArg = arguments.length > 1 ? arguments[1] : undefined;
|
|
return $group(aTypedArray(this), callbackfn, thisArg, typedArraySpeciesConstructor);
|
|
}, true);
|
|
|
|
|
|
/***/ }),
|
|
/* 395 */
|
|
/***/ (function(module, exports, __webpack_require__) {
|
|
|
|
"use strict";
|
|
|
|
// TODO: Remove from `core-js@4`
|
|
var ArrayBufferViewCore = __webpack_require__(93);
|
|
var lengthOfArrayLike = __webpack_require__(63);
|
|
var isBigIntArray = __webpack_require__(102);
|
|
var toAbsoluteIndex = __webpack_require__(60);
|
|
var toBigInt = __webpack_require__(103);
|
|
var toIntegerOrInfinity = __webpack_require__(61);
|
|
var fails = __webpack_require__(6);
|
|
|
|
var aTypedArray = ArrayBufferViewCore.aTypedArray;
|
|
var getTypedArrayConstructor = ArrayBufferViewCore.getTypedArrayConstructor;
|
|
var exportTypedArrayMethod = ArrayBufferViewCore.exportTypedArrayMethod;
|
|
var max = Math.max;
|
|
var min = Math.min;
|
|
|
|
// some early implementations, like WebKit, does not follow the final semantic
|
|
var PROPER_ORDER = !fails(function () {
|
|
// eslint-disable-next-line es/no-typed-arrays -- required for testing
|
|
var array = new Int8Array([1]);
|
|
|
|
var spliced = array.toSpliced(1, 0, {
|
|
valueOf: function () {
|
|
array[0] = 2;
|
|
return 3;
|
|
}
|
|
});
|
|
|
|
return spliced[0] !== 2 || spliced[1] !== 3;
|
|
});
|
|
|
|
// `%TypedArray%.prototype.toSpliced` method
|
|
// https://tc39.es/proposal-change-array-by-copy/#sec-%typedarray%.prototype.toSpliced
|
|
exportTypedArrayMethod('toSpliced', function toSpliced(start, deleteCount /* , ...items */) {
|
|
var O = aTypedArray(this);
|
|
var C = getTypedArrayConstructor(O);
|
|
var len = lengthOfArrayLike(O);
|
|
var actualStart = toAbsoluteIndex(start, len);
|
|
var argumentsLength = arguments.length;
|
|
var k = 0;
|
|
var insertCount, actualDeleteCount, thisIsBigIntArray, convertedItems, value, newLen, A;
|
|
if (argumentsLength === 0) {
|
|
insertCount = actualDeleteCount = 0;
|
|
} else if (argumentsLength === 1) {
|
|
insertCount = 0;
|
|
actualDeleteCount = len - actualStart;
|
|
} else {
|
|
actualDeleteCount = min(max(toIntegerOrInfinity(deleteCount), 0), len - actualStart);
|
|
insertCount = argumentsLength - 2;
|
|
if (insertCount) {
|
|
convertedItems = new C(insertCount);
|
|
thisIsBigIntArray = isBigIntArray(convertedItems);
|
|
for (var i = 2; i < argumentsLength; i++) {
|
|
value = arguments[i];
|
|
// FF30- typed arrays doesn't properly convert objects to typed array values
|
|
convertedItems[i - 2] = thisIsBigIntArray ? toBigInt(value) : +value;
|
|
}
|
|
}
|
|
}
|
|
newLen = len + insertCount - actualDeleteCount;
|
|
A = new C(newLen);
|
|
|
|
for (; k < actualStart; k++) A[k] = O[k];
|
|
for (; k < actualStart + insertCount; k++) A[k] = convertedItems[k - actualStart];
|
|
for (; k < newLen; k++) A[k] = O[k + actualDeleteCount - insertCount];
|
|
|
|
return A;
|
|
}, !PROPER_ORDER);
|
|
|
|
|
|
/***/ }),
|
|
/* 396 */
|
|
/***/ (function(module, exports, __webpack_require__) {
|
|
|
|
"use strict";
|
|
|
|
var uncurryThis = __webpack_require__(13);
|
|
var ArrayBufferViewCore = __webpack_require__(93);
|
|
var arrayFromConstructorAndList = __webpack_require__(79);
|
|
var $arrayUniqueBy = __webpack_require__(142);
|
|
|
|
var aTypedArray = ArrayBufferViewCore.aTypedArray;
|
|
var getTypedArrayConstructor = ArrayBufferViewCore.getTypedArrayConstructor;
|
|
var exportTypedArrayMethod = ArrayBufferViewCore.exportTypedArrayMethod;
|
|
var arrayUniqueBy = uncurryThis($arrayUniqueBy);
|
|
|
|
// `%TypedArray%.prototype.uniqueBy` method
|
|
// https://github.com/tc39/proposal-array-unique
|
|
exportTypedArrayMethod('uniqueBy', function uniqueBy(resolver) {
|
|
aTypedArray(this);
|
|
return arrayFromConstructorAndList(getTypedArrayConstructor(this), arrayUniqueBy(this, resolver));
|
|
}, true);
|
|
|
|
|
|
/***/ }),
|
|
/* 397 */
|
|
/***/ (function(module, exports, __webpack_require__) {
|
|
|
|
"use strict";
|
|
|
|
var $ = __webpack_require__(2);
|
|
var aWeakMap = __webpack_require__(398);
|
|
var remove = __webpack_require__(399).remove;
|
|
|
|
// `WeakMap.prototype.deleteAll` method
|
|
// https://github.com/tc39/proposal-collection-methods
|
|
$({ target: 'WeakMap', proto: true, real: true, forced: true }, {
|
|
deleteAll: function deleteAll(/* ...elements */) {
|
|
var collection = aWeakMap(this);
|
|
var allDeleted = true;
|
|
var wasDeleted;
|
|
for (var k = 0, len = arguments.length; k < len; k++) {
|
|
wasDeleted = remove(collection, arguments[k]);
|
|
allDeleted = allDeleted && wasDeleted;
|
|
} return !!allDeleted;
|
|
}
|
|
});
|
|
|
|
|
|
/***/ }),
|
|
/* 398 */
|
|
/***/ (function(module, exports, __webpack_require__) {
|
|
|
|
var has = __webpack_require__(399).has;
|
|
|
|
// Perform ? RequireInternalSlot(M, [[WeakMapData]])
|
|
module.exports = function (it) {
|
|
has(it);
|
|
return it;
|
|
};
|
|
|
|
|
|
/***/ }),
|
|
/* 399 */
|
|
/***/ (function(module, exports, __webpack_require__) {
|
|
|
|
var uncurryThis = __webpack_require__(13);
|
|
|
|
// eslint-disable-next-line es/no-weak-map -- safe
|
|
var WeakMapPrototype = WeakMap.prototype;
|
|
|
|
module.exports = {
|
|
// eslint-disable-next-line es/no-weak-map -- safe
|
|
WeakMap: WeakMap,
|
|
set: uncurryThis(WeakMapPrototype.set),
|
|
get: uncurryThis(WeakMapPrototype.get),
|
|
has: uncurryThis(WeakMapPrototype.has),
|
|
remove: uncurryThis(WeakMapPrototype['delete'])
|
|
};
|
|
|
|
|
|
/***/ }),
|
|
/* 400 */
|
|
/***/ (function(module, exports, __webpack_require__) {
|
|
|
|
var $ = __webpack_require__(2);
|
|
var from = __webpack_require__(258);
|
|
|
|
// `WeakMap.from` method
|
|
// https://tc39.github.io/proposal-setmap-offrom/#sec-weakmap.from
|
|
$({ target: 'WeakMap', stat: true, forced: true }, {
|
|
from: from
|
|
});
|
|
|
|
|
|
/***/ }),
|
|
/* 401 */
|
|
/***/ (function(module, exports, __webpack_require__) {
|
|
|
|
var $ = __webpack_require__(2);
|
|
var of = __webpack_require__(269);
|
|
|
|
// `WeakMap.of` method
|
|
// https://tc39.github.io/proposal-setmap-offrom/#sec-weakmap.of
|
|
$({ target: 'WeakMap', stat: true, forced: true }, {
|
|
of: of
|
|
});
|
|
|
|
|
|
/***/ }),
|
|
/* 402 */
|
|
/***/ (function(module, exports, __webpack_require__) {
|
|
|
|
"use strict";
|
|
|
|
var $ = __webpack_require__(2);
|
|
var aWeakMap = __webpack_require__(398);
|
|
var WeakMapHelpers = __webpack_require__(399);
|
|
|
|
var get = WeakMapHelpers.get;
|
|
var has = WeakMapHelpers.has;
|
|
var set = WeakMapHelpers.set;
|
|
|
|
// `WeakMap.prototype.emplace` method
|
|
// https://github.com/tc39/proposal-upsert
|
|
$({ target: 'WeakMap', proto: true, real: true, forced: true }, {
|
|
emplace: function emplace(key, handler) {
|
|
var map = aWeakMap(this);
|
|
var value, inserted;
|
|
if (has(map, key)) {
|
|
value = get(map, key);
|
|
if ('update' in handler) {
|
|
value = handler.update(value, key, map);
|
|
set(map, key, value);
|
|
} return value;
|
|
}
|
|
inserted = handler.insert(key, map);
|
|
set(map, key, inserted);
|
|
return inserted;
|
|
}
|
|
});
|
|
|
|
|
|
/***/ }),
|
|
/* 403 */
|
|
/***/ (function(module, exports, __webpack_require__) {
|
|
|
|
"use strict";
|
|
|
|
// TODO: remove from `core-js@4`
|
|
var $ = __webpack_require__(2);
|
|
var upsert = __webpack_require__(275);
|
|
|
|
// `WeakMap.prototype.upsert` method (replaced by `WeakMap.prototype.emplace`)
|
|
// https://github.com/tc39/proposal-upsert
|
|
$({ target: 'WeakMap', proto: true, real: true, forced: true }, {
|
|
upsert: upsert
|
|
});
|
|
|
|
|
|
/***/ }),
|
|
/* 404 */
|
|
/***/ (function(module, exports, __webpack_require__) {
|
|
|
|
"use strict";
|
|
|
|
var $ = __webpack_require__(2);
|
|
var aWeakSet = __webpack_require__(405);
|
|
var add = __webpack_require__(406).add;
|
|
|
|
// `WeakSet.prototype.addAll` method
|
|
// https://github.com/tc39/proposal-collection-methods
|
|
$({ target: 'WeakSet', proto: true, real: true, forced: true }, {
|
|
addAll: function addAll(/* ...elements */) {
|
|
var set = aWeakSet(this);
|
|
for (var k = 0, len = arguments.length; k < len; k++) {
|
|
add(set, arguments[k]);
|
|
} return set;
|
|
}
|
|
});
|
|
|
|
|
|
/***/ }),
|
|
/* 405 */
|
|
/***/ (function(module, exports, __webpack_require__) {
|
|
|
|
var has = __webpack_require__(406).has;
|
|
|
|
// Perform ? RequireInternalSlot(M, [[WeakSetData]])
|
|
module.exports = function (it) {
|
|
has(it);
|
|
return it;
|
|
};
|
|
|
|
|
|
/***/ }),
|
|
/* 406 */
|
|
/***/ (function(module, exports, __webpack_require__) {
|
|
|
|
var uncurryThis = __webpack_require__(13);
|
|
|
|
// eslint-disable-next-line es/no-weak-set -- safe
|
|
var WeakSetPrototype = WeakSet.prototype;
|
|
|
|
module.exports = {
|
|
// eslint-disable-next-line es/no-weak-set -- safe
|
|
WeakSet: WeakSet,
|
|
add: uncurryThis(WeakSetPrototype.add),
|
|
has: uncurryThis(WeakSetPrototype.has),
|
|
remove: uncurryThis(WeakSetPrototype['delete'])
|
|
};
|
|
|
|
|
|
/***/ }),
|
|
/* 407 */
|
|
/***/ (function(module, exports, __webpack_require__) {
|
|
|
|
"use strict";
|
|
|
|
var $ = __webpack_require__(2);
|
|
var aWeakSet = __webpack_require__(405);
|
|
var remove = __webpack_require__(406).remove;
|
|
|
|
// `WeakSet.prototype.deleteAll` method
|
|
// https://github.com/tc39/proposal-collection-methods
|
|
$({ target: 'WeakSet', proto: true, real: true, forced: true }, {
|
|
deleteAll: function deleteAll(/* ...elements */) {
|
|
var collection = aWeakSet(this);
|
|
var allDeleted = true;
|
|
var wasDeleted;
|
|
for (var k = 0, len = arguments.length; k < len; k++) {
|
|
wasDeleted = remove(collection, arguments[k]);
|
|
allDeleted = allDeleted && wasDeleted;
|
|
} return !!allDeleted;
|
|
}
|
|
});
|
|
|
|
|
|
/***/ }),
|
|
/* 408 */
|
|
/***/ (function(module, exports, __webpack_require__) {
|
|
|
|
var $ = __webpack_require__(2);
|
|
var from = __webpack_require__(258);
|
|
|
|
// `WeakSet.from` method
|
|
// https://tc39.github.io/proposal-setmap-offrom/#sec-weakset.from
|
|
$({ target: 'WeakSet', stat: true, forced: true }, {
|
|
from: from
|
|
});
|
|
|
|
|
|
/***/ }),
|
|
/* 409 */
|
|
/***/ (function(module, exports, __webpack_require__) {
|
|
|
|
var $ = __webpack_require__(2);
|
|
var of = __webpack_require__(269);
|
|
|
|
// `WeakSet.of` method
|
|
// https://tc39.github.io/proposal-setmap-offrom/#sec-weakset.of
|
|
$({ target: 'WeakSet', stat: true, forced: true }, {
|
|
of: of
|
|
});
|
|
|
|
|
|
/***/ }),
|
|
/* 410 */
|
|
/***/ (function(module, exports, __webpack_require__) {
|
|
|
|
"use strict";
|
|
|
|
var $ = __webpack_require__(2);
|
|
var global = __webpack_require__(3);
|
|
var getBuiltIn = __webpack_require__(23);
|
|
var createPropertyDescriptor = __webpack_require__(10);
|
|
var defineProperty = __webpack_require__(44).f;
|
|
var hasOwn = __webpack_require__(38);
|
|
var anInstance = __webpack_require__(157);
|
|
var inheritIfRequired = __webpack_require__(205);
|
|
var normalizeStringArgument = __webpack_require__(108);
|
|
var DOMExceptionConstants = __webpack_require__(411);
|
|
var clearErrorStack = __webpack_require__(106);
|
|
var DESCRIPTORS = __webpack_require__(5);
|
|
var IS_PURE = __webpack_require__(35);
|
|
|
|
var DOM_EXCEPTION = 'DOMException';
|
|
var Error = getBuiltIn('Error');
|
|
var NativeDOMException = getBuiltIn(DOM_EXCEPTION);
|
|
|
|
var $DOMException = function DOMException() {
|
|
anInstance(this, DOMExceptionPrototype);
|
|
var argumentsLength = arguments.length;
|
|
var message = normalizeStringArgument(argumentsLength < 1 ? undefined : arguments[0]);
|
|
var name = normalizeStringArgument(argumentsLength < 2 ? undefined : arguments[1], 'Error');
|
|
var that = new NativeDOMException(message, name);
|
|
var error = Error(message);
|
|
error.name = DOM_EXCEPTION;
|
|
defineProperty(that, 'stack', createPropertyDescriptor(1, clearErrorStack(error.stack, 1)));
|
|
inheritIfRequired(that, this, $DOMException);
|
|
return that;
|
|
};
|
|
|
|
var DOMExceptionPrototype = $DOMException.prototype = NativeDOMException.prototype;
|
|
|
|
var ERROR_HAS_STACK = 'stack' in Error(DOM_EXCEPTION);
|
|
var DOM_EXCEPTION_HAS_STACK = 'stack' in new NativeDOMException(1, 2);
|
|
|
|
// eslint-disable-next-line es/no-object-getownpropertydescriptor -- safe
|
|
var descriptor = NativeDOMException && DESCRIPTORS && Object.getOwnPropertyDescriptor(global, DOM_EXCEPTION);
|
|
|
|
// Bun ~ 0.1.1 DOMException have incorrect descriptor and we can't redefine it
|
|
// https://github.com/Jarred-Sumner/bun/issues/399
|
|
var BUGGY_DESCRIPTOR = !!descriptor && !(descriptor.writable && descriptor.configurable);
|
|
|
|
var FORCED_CONSTRUCTOR = ERROR_HAS_STACK && !BUGGY_DESCRIPTOR && !DOM_EXCEPTION_HAS_STACK;
|
|
|
|
// `DOMException` constructor patch for `.stack` where it's required
|
|
// https://webidl.spec.whatwg.org/#es-DOMException-specialness
|
|
$({ global: true, constructor: true, forced: IS_PURE || FORCED_CONSTRUCTOR }, { // TODO: fix export logic
|
|
DOMException: FORCED_CONSTRUCTOR ? $DOMException : NativeDOMException
|
|
});
|
|
|
|
var PolyfilledDOMException = getBuiltIn(DOM_EXCEPTION);
|
|
var PolyfilledDOMExceptionPrototype = PolyfilledDOMException.prototype;
|
|
|
|
if (PolyfilledDOMExceptionPrototype.constructor !== PolyfilledDOMException) {
|
|
if (!IS_PURE) {
|
|
defineProperty(PolyfilledDOMExceptionPrototype, 'constructor', createPropertyDescriptor(1, PolyfilledDOMException));
|
|
}
|
|
|
|
for (var key in DOMExceptionConstants) if (hasOwn(DOMExceptionConstants, key)) {
|
|
var constant = DOMExceptionConstants[key];
|
|
var constantName = constant.s;
|
|
if (!hasOwn(PolyfilledDOMException, constantName)) {
|
|
defineProperty(PolyfilledDOMException, constantName, createPropertyDescriptor(6, constant.c));
|
|
}
|
|
}
|
|
}
|
|
|
|
|
|
/***/ }),
|
|
/* 411 */
|
|
/***/ (function(module, exports) {
|
|
|
|
module.exports = {
|
|
IndexSizeError: { s: 'INDEX_SIZE_ERR', c: 1, m: 1 },
|
|
DOMStringSizeError: { s: 'DOMSTRING_SIZE_ERR', c: 2, m: 0 },
|
|
HierarchyRequestError: { s: 'HIERARCHY_REQUEST_ERR', c: 3, m: 1 },
|
|
WrongDocumentError: { s: 'WRONG_DOCUMENT_ERR', c: 4, m: 1 },
|
|
InvalidCharacterError: { s: 'INVALID_CHARACTER_ERR', c: 5, m: 1 },
|
|
NoDataAllowedError: { s: 'NO_DATA_ALLOWED_ERR', c: 6, m: 0 },
|
|
NoModificationAllowedError: { s: 'NO_MODIFICATION_ALLOWED_ERR', c: 7, m: 1 },
|
|
NotFoundError: { s: 'NOT_FOUND_ERR', c: 8, m: 1 },
|
|
NotSupportedError: { s: 'NOT_SUPPORTED_ERR', c: 9, m: 1 },
|
|
InUseAttributeError: { s: 'INUSE_ATTRIBUTE_ERR', c: 10, m: 1 },
|
|
InvalidStateError: { s: 'INVALID_STATE_ERR', c: 11, m: 1 },
|
|
SyntaxError: { s: 'SYNTAX_ERR', c: 12, m: 1 },
|
|
InvalidModificationError: { s: 'INVALID_MODIFICATION_ERR', c: 13, m: 1 },
|
|
NamespaceError: { s: 'NAMESPACE_ERR', c: 14, m: 1 },
|
|
InvalidAccessError: { s: 'INVALID_ACCESS_ERR', c: 15, m: 1 },
|
|
ValidationError: { s: 'VALIDATION_ERR', c: 16, m: 0 },
|
|
TypeMismatchError: { s: 'TYPE_MISMATCH_ERR', c: 17, m: 1 },
|
|
SecurityError: { s: 'SECURITY_ERR', c: 18, m: 1 },
|
|
NetworkError: { s: 'NETWORK_ERR', c: 19, m: 1 },
|
|
AbortError: { s: 'ABORT_ERR', c: 20, m: 1 },
|
|
URLMismatchError: { s: 'URL_MISMATCH_ERR', c: 21, m: 1 },
|
|
QuotaExceededError: { s: 'QUOTA_EXCEEDED_ERR', c: 22, m: 1 },
|
|
TimeoutError: { s: 'TIMEOUT_ERR', c: 23, m: 1 },
|
|
InvalidNodeTypeError: { s: 'INVALID_NODE_TYPE_ERR', c: 24, m: 1 },
|
|
DataCloneError: { s: 'DATA_CLONE_ERR', c: 25, m: 1 }
|
|
};
|
|
|
|
|
|
/***/ }),
|
|
/* 412 */
|
|
/***/ (function(module, exports, __webpack_require__) {
|
|
|
|
var IS_PURE = __webpack_require__(35);
|
|
var $ = __webpack_require__(2);
|
|
var global = __webpack_require__(3);
|
|
var getBuiltin = __webpack_require__(23);
|
|
var uncurryThis = __webpack_require__(13);
|
|
var fails = __webpack_require__(6);
|
|
var uid = __webpack_require__(40);
|
|
var isCallable = __webpack_require__(20);
|
|
var isConstructor = __webpack_require__(113);
|
|
var isNullOrUndefined = __webpack_require__(16);
|
|
var isObject = __webpack_require__(19);
|
|
var isSymbol = __webpack_require__(22);
|
|
var iterate = __webpack_require__(202);
|
|
var anObject = __webpack_require__(46);
|
|
var classof = __webpack_require__(89);
|
|
var hasOwn = __webpack_require__(38);
|
|
var createProperty = __webpack_require__(198);
|
|
var createNonEnumerableProperty = __webpack_require__(43);
|
|
var lengthOfArrayLike = __webpack_require__(63);
|
|
var validateArgumentsLength = __webpack_require__(413);
|
|
var getRegExpFlags = __webpack_require__(414);
|
|
var MapHelpers = __webpack_require__(136);
|
|
var SetHelpers = __webpack_require__(325);
|
|
var ERROR_STACK_INSTALLABLE = __webpack_require__(107);
|
|
var PROPER_TRANSFER = __webpack_require__(151);
|
|
|
|
var Object = global.Object;
|
|
var Array = global.Array;
|
|
var Date = global.Date;
|
|
var Error = global.Error;
|
|
var EvalError = global.EvalError;
|
|
var RangeError = global.RangeError;
|
|
var ReferenceError = global.ReferenceError;
|
|
var SyntaxError = global.SyntaxError;
|
|
var TypeError = global.TypeError;
|
|
var URIError = global.URIError;
|
|
var PerformanceMark = global.PerformanceMark;
|
|
var WebAssembly = global.WebAssembly;
|
|
var CompileError = WebAssembly && WebAssembly.CompileError || Error;
|
|
var LinkError = WebAssembly && WebAssembly.LinkError || Error;
|
|
var RuntimeError = WebAssembly && WebAssembly.RuntimeError || Error;
|
|
var DOMException = getBuiltin('DOMException');
|
|
var Map = MapHelpers.Map;
|
|
var mapHas = MapHelpers.has;
|
|
var mapGet = MapHelpers.get;
|
|
var mapSet = MapHelpers.set;
|
|
var Set = SetHelpers.Set;
|
|
var setAdd = SetHelpers.add;
|
|
var objectKeys = getBuiltin('Object', 'keys');
|
|
var push = uncurryThis([].push);
|
|
var thisBooleanValue = uncurryThis(true.valueOf);
|
|
var thisNumberValue = uncurryThis(1.0.valueOf);
|
|
var thisStringValue = uncurryThis(''.valueOf);
|
|
var thisTimeValue = uncurryThis(Date.prototype.getTime);
|
|
var PERFORMANCE_MARK = uid('structuredClone');
|
|
var DATA_CLONE_ERROR = 'DataCloneError';
|
|
var TRANSFERRING = 'Transferring';
|
|
|
|
var checkBasicSemantic = function (structuredCloneImplementation) {
|
|
return !fails(function () {
|
|
var set1 = new global.Set([7]);
|
|
var set2 = structuredCloneImplementation(set1);
|
|
var number = structuredCloneImplementation(Object(7));
|
|
return set2 == set1 || !set2.has(7) || typeof number != 'object' || number != 7;
|
|
}) && structuredCloneImplementation;
|
|
};
|
|
|
|
var checkErrorsCloning = function (structuredCloneImplementation, $Error) {
|
|
return !fails(function () {
|
|
var error = new $Error();
|
|
var test = structuredCloneImplementation({ a: error, b: error });
|
|
return !(test && test.a === test.b && test.a instanceof $Error && test.a.stack === error.stack);
|
|
});
|
|
};
|
|
|
|
// https://github.com/whatwg/html/pull/5749
|
|
var checkNewErrorsCloningSemantic = function (structuredCloneImplementation) {
|
|
return !fails(function () {
|
|
var test = structuredCloneImplementation(new global.AggregateError([1], PERFORMANCE_MARK, { cause: 3 }));
|
|
return test.name != 'AggregateError' || test.errors[0] != 1 || test.message != PERFORMANCE_MARK || test.cause != 3;
|
|
});
|
|
};
|
|
|
|
// FF94+, Safari 15.4+, Chrome 98+, NodeJS 17.0+, Deno 1.13+
|
|
// FF<103 and Safari implementations can't clone errors
|
|
// https://bugzilla.mozilla.org/show_bug.cgi?id=1556604
|
|
// FF103 can clone errors, but `.stack` of clone is an empty string
|
|
// https://bugzilla.mozilla.org/show_bug.cgi?id=1778762
|
|
// FF104+ fixed it on usual errors, but not on DOMExceptions
|
|
// https://bugzilla.mozilla.org/show_bug.cgi?id=1777321
|
|
// Chrome <102 returns `null` if cloned object contains multiple references to one error
|
|
// https://bugs.chromium.org/p/v8/issues/detail?id=12542
|
|
// NodeJS implementation can't clone DOMExceptions
|
|
// https://github.com/nodejs/node/issues/41038
|
|
// only FF103+ supports new (html/5749) error cloning semantic
|
|
var nativeStructuredClone = global.structuredClone;
|
|
|
|
var FORCED_REPLACEMENT = IS_PURE
|
|
|| !checkErrorsCloning(nativeStructuredClone, Error)
|
|
|| !checkErrorsCloning(nativeStructuredClone, DOMException)
|
|
|| !checkNewErrorsCloningSemantic(nativeStructuredClone);
|
|
|
|
// Chrome 82+, Safari 14.1+, Deno 1.11+
|
|
// Chrome 78-81 implementation swaps `.name` and `.message` of cloned `DOMException`
|
|
// Chrome returns `null` if cloned object contains multiple references to one error
|
|
// Safari 14.1 implementation doesn't clone some `RegExp` flags, so requires a workaround
|
|
// Safari implementation can't clone errors
|
|
// Deno 1.2-1.10 implementations too naive
|
|
// NodeJS 16.0+ does not have `PerformanceMark` constructor
|
|
// NodeJS <17.2 structured cloning implementation from `performance.mark` is too naive
|
|
// and can't clone, for example, `RegExp` or some boxed primitives
|
|
// https://github.com/nodejs/node/issues/40840
|
|
// no one of those implementations supports new (html/5749) error cloning semantic
|
|
var structuredCloneFromMark = !nativeStructuredClone && checkBasicSemantic(function (value) {
|
|
return new PerformanceMark(PERFORMANCE_MARK, { detail: value }).detail;
|
|
});
|
|
|
|
var nativeRestrictedStructuredClone = checkBasicSemantic(nativeStructuredClone) || structuredCloneFromMark;
|
|
|
|
var throwUncloneable = function (type) {
|
|
throw new DOMException('Uncloneable type: ' + type, DATA_CLONE_ERROR);
|
|
};
|
|
|
|
var throwUnpolyfillable = function (type, action) {
|
|
throw new DOMException((action || 'Cloning') + ' of ' + type + ' cannot be properly polyfilled in this engine', DATA_CLONE_ERROR);
|
|
};
|
|
|
|
var tryNativeRestrictedStructuredClone = function (value, type) {
|
|
if (!nativeRestrictedStructuredClone) throwUnpolyfillable(type);
|
|
return nativeRestrictedStructuredClone(value);
|
|
};
|
|
|
|
var createDataTransfer = function () {
|
|
var dataTransfer;
|
|
try {
|
|
dataTransfer = new global.DataTransfer();
|
|
} catch (error) {
|
|
try {
|
|
dataTransfer = new global.ClipboardEvent('').clipboardData;
|
|
} catch (error2) { /* empty */ }
|
|
}
|
|
return dataTransfer && dataTransfer.items && dataTransfer.files ? dataTransfer : null;
|
|
};
|
|
|
|
var structuredCloneInternal = function (value, map) {
|
|
if (isSymbol(value)) throwUncloneable('Symbol');
|
|
if (!isObject(value)) return value;
|
|
// effectively preserves circular references
|
|
if (map) {
|
|
if (mapHas(map, value)) return mapGet(map, value);
|
|
} else map = new Map();
|
|
|
|
var type = classof(value);
|
|
var deep = false;
|
|
var C, name, cloned, dataTransfer, i, length, keys, key, source, target, options;
|
|
|
|
switch (type) {
|
|
case 'Array':
|
|
cloned = Array(lengthOfArrayLike(value));
|
|
deep = true;
|
|
break;
|
|
case 'Object':
|
|
cloned = {};
|
|
deep = true;
|
|
break;
|
|
case 'Map':
|
|
cloned = new Map();
|
|
deep = true;
|
|
break;
|
|
case 'Set':
|
|
cloned = new Set();
|
|
deep = true;
|
|
break;
|
|
case 'RegExp':
|
|
// in this block because of a Safari 14.1 bug
|
|
// old FF does not clone regexes passed to the constructor, so get the source and flags directly
|
|
cloned = new RegExp(value.source, getRegExpFlags(value));
|
|
break;
|
|
case 'Error':
|
|
name = value.name;
|
|
switch (name) {
|
|
case 'AggregateError':
|
|
cloned = getBuiltin('AggregateError')([]);
|
|
break;
|
|
case 'EvalError':
|
|
cloned = EvalError();
|
|
break;
|
|
case 'RangeError':
|
|
cloned = RangeError();
|
|
break;
|
|
case 'ReferenceError':
|
|
cloned = ReferenceError();
|
|
break;
|
|
case 'SyntaxError':
|
|
cloned = SyntaxError();
|
|
break;
|
|
case 'TypeError':
|
|
cloned = TypeError();
|
|
break;
|
|
case 'URIError':
|
|
cloned = URIError();
|
|
break;
|
|
case 'CompileError':
|
|
cloned = CompileError();
|
|
break;
|
|
case 'LinkError':
|
|
cloned = LinkError();
|
|
break;
|
|
case 'RuntimeError':
|
|
cloned = RuntimeError();
|
|
break;
|
|
default:
|
|
cloned = Error();
|
|
}
|
|
deep = true;
|
|
break;
|
|
case 'DOMException':
|
|
cloned = new DOMException(value.message, value.name);
|
|
deep = true;
|
|
break;
|
|
case 'DataView':
|
|
case 'Int8Array':
|
|
case 'Uint8Array':
|
|
case 'Uint8ClampedArray':
|
|
case 'Int16Array':
|
|
case 'Uint16Array':
|
|
case 'Int32Array':
|
|
case 'Uint32Array':
|
|
case 'Float32Array':
|
|
case 'Float64Array':
|
|
case 'BigInt64Array':
|
|
case 'BigUint64Array':
|
|
C = global[type];
|
|
// in some old engines like Safari 9, typeof C is 'object'
|
|
// on Uint8ClampedArray or some other constructors
|
|
if (!isObject(C)) throwUnpolyfillable(type);
|
|
cloned = new C(
|
|
// this is safe, since arraybuffer cannot have circular references
|
|
structuredCloneInternal(value.buffer, map),
|
|
value.byteOffset,
|
|
type === 'DataView' ? value.byteLength : value.length
|
|
);
|
|
break;
|
|
case 'DOMQuad':
|
|
try {
|
|
cloned = new DOMQuad(
|
|
structuredCloneInternal(value.p1, map),
|
|
structuredCloneInternal(value.p2, map),
|
|
structuredCloneInternal(value.p3, map),
|
|
structuredCloneInternal(value.p4, map)
|
|
);
|
|
} catch (error) {
|
|
cloned = tryNativeRestrictedStructuredClone(value, type);
|
|
}
|
|
break;
|
|
case 'File':
|
|
if (nativeRestrictedStructuredClone) try {
|
|
cloned = nativeRestrictedStructuredClone(value);
|
|
// NodeJS 20.0.0 bug, https://github.com/nodejs/node/issues/47612
|
|
if (classof(cloned) !== type) cloned = undefined;
|
|
} catch (error) { /* empty */ }
|
|
if (!cloned) try {
|
|
cloned = new File([value], value.name, value);
|
|
} catch (error) { /* empty */ }
|
|
if (!cloned) throwUnpolyfillable(type);
|
|
break;
|
|
case 'FileList':
|
|
dataTransfer = createDataTransfer();
|
|
if (dataTransfer) {
|
|
for (i = 0, length = lengthOfArrayLike(value); i < length; i++) {
|
|
dataTransfer.items.add(structuredCloneInternal(value[i], map));
|
|
}
|
|
cloned = dataTransfer.files;
|
|
} else cloned = tryNativeRestrictedStructuredClone(value, type);
|
|
break;
|
|
case 'ImageData':
|
|
// Safari 9 ImageData is a constructor, but typeof ImageData is 'object'
|
|
try {
|
|
cloned = new ImageData(
|
|
structuredCloneInternal(value.data, map),
|
|
value.width,
|
|
value.height,
|
|
{ colorSpace: value.colorSpace }
|
|
);
|
|
} catch (error) {
|
|
cloned = tryNativeRestrictedStructuredClone(value, type);
|
|
} break;
|
|
default:
|
|
if (nativeRestrictedStructuredClone) {
|
|
cloned = nativeRestrictedStructuredClone(value);
|
|
} else switch (type) {
|
|
case 'BigInt':
|
|
// can be a 3rd party polyfill
|
|
cloned = Object(value.valueOf());
|
|
break;
|
|
case 'Boolean':
|
|
cloned = Object(thisBooleanValue(value));
|
|
break;
|
|
case 'Number':
|
|
cloned = Object(thisNumberValue(value));
|
|
break;
|
|
case 'String':
|
|
cloned = Object(thisStringValue(value));
|
|
break;
|
|
case 'Date':
|
|
cloned = new Date(thisTimeValue(value));
|
|
break;
|
|
case 'ArrayBuffer':
|
|
C = global.DataView;
|
|
// `ArrayBuffer#slice` is not available in IE10
|
|
// `ArrayBuffer#slice` and `DataView` are not available in old FF
|
|
if (!C && typeof value.slice != 'function') throwUnpolyfillable(type);
|
|
// detached buffers throws in `DataView` and `.slice`
|
|
try {
|
|
if (typeof value.slice == 'function' && !value.resizable) {
|
|
cloned = value.slice(0);
|
|
} else {
|
|
length = value.byteLength;
|
|
options = 'maxByteLength' in value ? { maxByteLength: value.maxByteLength } : undefined;
|
|
cloned = new ArrayBuffer(length, options);
|
|
source = new C(value);
|
|
target = new C(cloned);
|
|
for (i = 0; i < length; i++) {
|
|
target.setUint8(i, source.getUint8(i));
|
|
}
|
|
}
|
|
} catch (error) {
|
|
throw new DOMException('ArrayBuffer is detached', DATA_CLONE_ERROR);
|
|
} break;
|
|
case 'SharedArrayBuffer':
|
|
// SharedArrayBuffer should use shared memory, we can't polyfill it, so return the original
|
|
cloned = value;
|
|
break;
|
|
case 'Blob':
|
|
try {
|
|
cloned = value.slice(0, value.size, value.type);
|
|
} catch (error) {
|
|
throwUnpolyfillable(type);
|
|
} break;
|
|
case 'DOMPoint':
|
|
case 'DOMPointReadOnly':
|
|
C = global[type];
|
|
try {
|
|
cloned = C.fromPoint
|
|
? C.fromPoint(value)
|
|
: new C(value.x, value.y, value.z, value.w);
|
|
} catch (error) {
|
|
throwUnpolyfillable(type);
|
|
} break;
|
|
case 'DOMRect':
|
|
case 'DOMRectReadOnly':
|
|
C = global[type];
|
|
try {
|
|
cloned = C.fromRect
|
|
? C.fromRect(value)
|
|
: new C(value.x, value.y, value.width, value.height);
|
|
} catch (error) {
|
|
throwUnpolyfillable(type);
|
|
} break;
|
|
case 'DOMMatrix':
|
|
case 'DOMMatrixReadOnly':
|
|
C = global[type];
|
|
try {
|
|
cloned = C.fromMatrix
|
|
? C.fromMatrix(value)
|
|
: new C(value);
|
|
} catch (error) {
|
|
throwUnpolyfillable(type);
|
|
} break;
|
|
case 'AudioData':
|
|
case 'VideoFrame':
|
|
if (!isCallable(value.clone)) throwUnpolyfillable(type);
|
|
try {
|
|
cloned = value.clone();
|
|
} catch (error) {
|
|
throwUncloneable(type);
|
|
} break;
|
|
case 'CropTarget':
|
|
case 'CryptoKey':
|
|
case 'FileSystemDirectoryHandle':
|
|
case 'FileSystemFileHandle':
|
|
case 'FileSystemHandle':
|
|
case 'GPUCompilationInfo':
|
|
case 'GPUCompilationMessage':
|
|
case 'ImageBitmap':
|
|
case 'RTCCertificate':
|
|
case 'WebAssembly.Module':
|
|
throwUnpolyfillable(type);
|
|
// break omitted
|
|
default:
|
|
throwUncloneable(type);
|
|
}
|
|
}
|
|
|
|
mapSet(map, value, cloned);
|
|
|
|
if (deep) switch (type) {
|
|
case 'Array':
|
|
case 'Object':
|
|
keys = objectKeys(value);
|
|
for (i = 0, length = lengthOfArrayLike(keys); i < length; i++) {
|
|
key = keys[i];
|
|
createProperty(cloned, key, structuredCloneInternal(value[key], map));
|
|
} break;
|
|
case 'Map':
|
|
value.forEach(function (v, k) {
|
|
mapSet(cloned, structuredCloneInternal(k, map), structuredCloneInternal(v, map));
|
|
});
|
|
break;
|
|
case 'Set':
|
|
value.forEach(function (v) {
|
|
setAdd(cloned, structuredCloneInternal(v, map));
|
|
});
|
|
break;
|
|
case 'Error':
|
|
createNonEnumerableProperty(cloned, 'message', structuredCloneInternal(value.message, map));
|
|
if (hasOwn(value, 'cause')) {
|
|
createNonEnumerableProperty(cloned, 'cause', structuredCloneInternal(value.cause, map));
|
|
}
|
|
if (name == 'AggregateError') {
|
|
cloned.errors = structuredCloneInternal(value.errors, map);
|
|
} // break omitted
|
|
case 'DOMException':
|
|
if (ERROR_STACK_INSTALLABLE) {
|
|
createNonEnumerableProperty(cloned, 'stack', structuredCloneInternal(value.stack, map));
|
|
}
|
|
}
|
|
|
|
return cloned;
|
|
};
|
|
|
|
var tryToTransfer = function (rawTransfer, map) {
|
|
if (!isObject(rawTransfer)) throw TypeError('Transfer option cannot be converted to a sequence');
|
|
|
|
var transfer = [];
|
|
|
|
iterate(rawTransfer, function (value) {
|
|
push(transfer, anObject(value));
|
|
});
|
|
|
|
var i = 0;
|
|
var length = lengthOfArrayLike(transfer);
|
|
var value, type, C, transferredArray, transferred, canvas, context;
|
|
|
|
if (PROPER_TRANSFER) {
|
|
transferredArray = nativeStructuredClone(transfer, { transfer: transfer });
|
|
while (i < length) mapSet(map, transfer[i], transferredArray[i++]);
|
|
} else while (i < length) {
|
|
value = transfer[i++];
|
|
if (mapHas(map, value)) throw new DOMException('Duplicate transferable', DATA_CLONE_ERROR);
|
|
|
|
type = classof(value);
|
|
|
|
switch (type) {
|
|
case 'ImageBitmap':
|
|
C = global.OffscreenCanvas;
|
|
if (!isConstructor(C)) throwUnpolyfillable(type, TRANSFERRING);
|
|
try {
|
|
canvas = new C(value.width, value.height);
|
|
context = canvas.getContext('bitmaprenderer');
|
|
context.transferFromImageBitmap(value);
|
|
transferred = canvas.transferToImageBitmap();
|
|
} catch (error) { /* empty */ }
|
|
break;
|
|
case 'AudioData':
|
|
case 'VideoFrame':
|
|
if (!isCallable(value.clone) || !isCallable(value.close)) throwUnpolyfillable(type, TRANSFERRING);
|
|
try {
|
|
transferred = value.clone();
|
|
value.close();
|
|
} catch (error) { /* empty */ }
|
|
break;
|
|
case 'ArrayBuffer':
|
|
if (!isCallable(value.transfer)) throwUnpolyfillable(type, TRANSFERRING);
|
|
transferred = value.transfer();
|
|
break;
|
|
case 'MediaSourceHandle':
|
|
case 'MessagePort':
|
|
case 'OffscreenCanvas':
|
|
case 'ReadableStream':
|
|
case 'TransformStream':
|
|
case 'WritableStream':
|
|
throwUnpolyfillable(type, TRANSFERRING);
|
|
}
|
|
|
|
if (transferred === undefined) throw new DOMException('This object cannot be transferred: ' + type, DATA_CLONE_ERROR);
|
|
mapSet(map, value, transferred);
|
|
}
|
|
};
|
|
|
|
// `structuredClone` method
|
|
// https://html.spec.whatwg.org/multipage/structured-data.html#dom-structuredclone
|
|
$({ global: true, enumerable: true, sham: !PROPER_TRANSFER, forced: FORCED_REPLACEMENT }, {
|
|
structuredClone: function structuredClone(value /* , { transfer } */) {
|
|
var options = validateArgumentsLength(arguments.length, 1) > 1 && !isNullOrUndefined(arguments[1]) ? anObject(arguments[1]) : undefined;
|
|
var transfer = options ? options.transfer : undefined;
|
|
var map;
|
|
|
|
if (transfer !== undefined) {
|
|
map = new Map();
|
|
tryToTransfer(transfer, map);
|
|
}
|
|
|
|
return structuredCloneInternal(value, map);
|
|
}
|
|
});
|
|
|
|
|
|
/***/ }),
|
|
/* 413 */
|
|
/***/ (function(module, exports) {
|
|
|
|
var $TypeError = TypeError;
|
|
|
|
module.exports = function (passed, required) {
|
|
if (passed < required) throw $TypeError('Not enough arguments');
|
|
return passed;
|
|
};
|
|
|
|
|
|
/***/ }),
|
|
/* 414 */
|
|
/***/ (function(module, exports, __webpack_require__) {
|
|
|
|
var call = __webpack_require__(7);
|
|
var hasOwn = __webpack_require__(38);
|
|
var isPrototypeOf = __webpack_require__(24);
|
|
var regExpFlags = __webpack_require__(86);
|
|
|
|
var RegExpPrototype = RegExp.prototype;
|
|
|
|
module.exports = function (R) {
|
|
var flags = R.flags;
|
|
return flags === undefined && !('flags' in RegExpPrototype) && !hasOwn(R, 'flags') && isPrototypeOf(RegExpPrototype, R)
|
|
? call(regExpFlags, R) : flags;
|
|
};
|
|
|
|
|
|
/***/ }),
|
|
/* 415 */
|
|
/***/ (function(module, exports, __webpack_require__) {
|
|
|
|
var $ = __webpack_require__(2);
|
|
var getBuiltIn = __webpack_require__(23);
|
|
var fails = __webpack_require__(6);
|
|
var validateArgumentsLength = __webpack_require__(413);
|
|
var toString = __webpack_require__(88);
|
|
var USE_NATIVE_URL = __webpack_require__(416);
|
|
|
|
var URL = getBuiltIn('URL');
|
|
|
|
// https://github.com/nodejs/node/issues/47505
|
|
// https://github.com/denoland/deno/issues/18893
|
|
var THROWS_WITHOUT_ARGUMENTS = USE_NATIVE_URL && fails(function () {
|
|
URL.canParse();
|
|
});
|
|
|
|
// `URL.canParse` method
|
|
// https://url.spec.whatwg.org/#dom-url-canparse
|
|
$({ target: 'URL', stat: true, forced: !THROWS_WITHOUT_ARGUMENTS }, {
|
|
canParse: function canParse(url) {
|
|
var length = validateArgumentsLength(arguments.length, 1);
|
|
var urlString = toString(url);
|
|
var base = length < 2 || arguments[1] === undefined ? undefined : toString(arguments[1]);
|
|
try {
|
|
return !!new URL(urlString, base);
|
|
} catch (error) {
|
|
return false;
|
|
}
|
|
}
|
|
});
|
|
|
|
|
|
/***/ }),
|
|
/* 416 */
|
|
/***/ (function(module, exports, __webpack_require__) {
|
|
|
|
var fails = __webpack_require__(6);
|
|
var wellKnownSymbol = __webpack_require__(33);
|
|
var DESCRIPTORS = __webpack_require__(5);
|
|
var IS_PURE = __webpack_require__(35);
|
|
|
|
var ITERATOR = wellKnownSymbol('iterator');
|
|
|
|
module.exports = !fails(function () {
|
|
// eslint-disable-next-line unicorn/relative-url-style -- required for testing
|
|
var url = new URL('b?a=1&b=2&c=3', 'http://a');
|
|
var searchParams = url.searchParams;
|
|
var searchParams2 = new URLSearchParams('a=1&a=2');
|
|
var result = '';
|
|
url.pathname = 'c%20d';
|
|
searchParams.forEach(function (value, key) {
|
|
searchParams['delete']('b');
|
|
result += key + value;
|
|
});
|
|
searchParams2['delete']('a', 2);
|
|
return (IS_PURE && (!url.toJSON || !searchParams2.has('a', 1) || searchParams2.has('a', 2)))
|
|
|| (!searchParams.size && (IS_PURE || !DESCRIPTORS))
|
|
|| !searchParams.sort
|
|
|| url.href !== 'http://a/c%20d?a=1&c=3'
|
|
|| searchParams.get('c') !== '3'
|
|
|| String(new URLSearchParams('?a=1')) !== 'a=1'
|
|
|| !searchParams[ITERATOR]
|
|
// throws in Edge
|
|
|| new URL('https://a@b').username !== 'a'
|
|
|| new URLSearchParams(new URLSearchParams('a=b')).get('a') !== 'b'
|
|
// not punycoded in Edge
|
|
|| new URL('http://тест').host !== 'xn--e1aybc'
|
|
// not escaped in Chrome 62-
|
|
|| new URL('http://a#б').hash !== '#%D0%B1'
|
|
// fails in Chrome 66-
|
|
|| result !== 'a1c3'
|
|
// throws in Safari
|
|
|| new URL('http://x', undefined).host !== 'x';
|
|
});
|
|
|
|
|
|
/***/ }),
|
|
/* 417 */
|
|
/***/ (function(module, exports, __webpack_require__) {
|
|
|
|
"use strict";
|
|
|
|
var defineBuiltIn = __webpack_require__(47);
|
|
var uncurryThis = __webpack_require__(13);
|
|
var toString = __webpack_require__(88);
|
|
var validateArgumentsLength = __webpack_require__(413);
|
|
|
|
var $URLSearchParams = URLSearchParams;
|
|
var URLSearchParamsPrototype = $URLSearchParams.prototype;
|
|
var append = uncurryThis(URLSearchParamsPrototype.append);
|
|
var $delete = uncurryThis(URLSearchParamsPrototype['delete']);
|
|
var forEach = uncurryThis(URLSearchParamsPrototype.forEach);
|
|
var push = uncurryThis([].push);
|
|
var params = new $URLSearchParams('a=1&a=2');
|
|
|
|
params['delete']('a', 1);
|
|
|
|
if (params + '' !== 'a=2') {
|
|
defineBuiltIn(URLSearchParamsPrototype, 'delete', function (name /* , value */) {
|
|
var length = arguments.length;
|
|
var $value = length < 2 ? undefined : arguments[1];
|
|
if (length && $value === undefined) return $delete(this, name);
|
|
var entries = [];
|
|
forEach(this, function (v, k) { // also validates `this`
|
|
push(entries, { key: k, value: v });
|
|
});
|
|
validateArgumentsLength(length, 1);
|
|
var key = toString(name);
|
|
var value = toString($value);
|
|
var index = 0;
|
|
var dindex = 0;
|
|
var found = false;
|
|
var entriesLength = entries.length;
|
|
var entry;
|
|
while (index < entriesLength) {
|
|
entry = entries[index++];
|
|
if (found || entry.key === key) {
|
|
found = true;
|
|
$delete(this, entry.key);
|
|
} else dindex++;
|
|
}
|
|
while (dindex < entriesLength) {
|
|
entry = entries[dindex++];
|
|
if (!(entry.key === key && entry.value === value)) append(this, entry.key, entry.value);
|
|
}
|
|
}, { enumerable: true, unsafe: true });
|
|
}
|
|
|
|
|
|
/***/ }),
|
|
/* 418 */
|
|
/***/ (function(module, exports, __webpack_require__) {
|
|
|
|
"use strict";
|
|
|
|
var defineBuiltIn = __webpack_require__(47);
|
|
var uncurryThis = __webpack_require__(13);
|
|
var toString = __webpack_require__(88);
|
|
var validateArgumentsLength = __webpack_require__(413);
|
|
|
|
var $URLSearchParams = URLSearchParams;
|
|
var URLSearchParamsPrototype = $URLSearchParams.prototype;
|
|
var getAll = uncurryThis(URLSearchParamsPrototype.getAll);
|
|
var $has = uncurryThis(URLSearchParamsPrototype.has);
|
|
var params = new $URLSearchParams('a=1');
|
|
|
|
if (params.has('a', 2)) {
|
|
defineBuiltIn(URLSearchParamsPrototype, 'has', function has(name /* , value */) {
|
|
var length = arguments.length;
|
|
var $value = length < 2 ? undefined : arguments[1];
|
|
if (length && $value === undefined) return $has(this, name);
|
|
var values = getAll(this, name); // also validates `this`
|
|
validateArgumentsLength(length, 1);
|
|
var value = toString($value);
|
|
var index = 0;
|
|
while (index < values.length) {
|
|
if (values[index++] === value) return true;
|
|
} return false;
|
|
}, { enumerable: true, unsafe: true });
|
|
}
|
|
|
|
|
|
/***/ }),
|
|
/* 419 */
|
|
/***/ (function(module, exports, __webpack_require__) {
|
|
|
|
"use strict";
|
|
|
|
var DESCRIPTORS = __webpack_require__(5);
|
|
var uncurryThis = __webpack_require__(13);
|
|
var defineBuiltInAccessor = __webpack_require__(85);
|
|
|
|
var URLSearchParamsPrototype = URLSearchParams.prototype;
|
|
var forEach = uncurryThis(URLSearchParamsPrototype.forEach);
|
|
|
|
// `URLSearchParams.prototype.size` getter
|
|
// https://github.com/whatwg/url/pull/734
|
|
if (DESCRIPTORS && !('size' in URLSearchParamsPrototype)) {
|
|
defineBuiltInAccessor(URLSearchParamsPrototype, 'size', {
|
|
get: function size() {
|
|
var count = 0;
|
|
forEach(this, function () { count++; });
|
|
return count;
|
|
},
|
|
configurable: true,
|
|
enumerable: true
|
|
});
|
|
}
|
|
|
|
|
|
/***/ })
|
|
/******/ ]); }();
|