import { __commonJS, __require } from "/node_modules/.vite/deps/chunk-WQG2LZMB.js?v=9548b9c3"; // node_modules/ali-oss/dist/aliyun-oss-sdk.js var require_aliyun_oss_sdk = __commonJS({ "node_modules/ali-oss/dist/aliyun-oss-sdk.js"(exports, module) { (function(global) { (function(f) { if (typeof exports === "object" && typeof module !== "undefined") { module.exports = f(); } else if (typeof define === "function" && define.amd) { define([], f); } else { var g; if (typeof window !== "undefined") { g = window; } else if (typeof global !== "undefined") { g = global; } else if (typeof self !== "undefined") { g = self; } else { g = this; } g.OSS = f(); } })(function() { var define2, module2, exports2; return function() { function r(e, n, t) { function o(i2, f) { if (!n[i2]) { if (!e[i2]) { var c = "function" == typeof __require && __require; if (!f && c) return c(i2, true); if (u) return u(i2, true); var a = new Error("Cannot find module '" + i2 + "'"); throw a.code = "MODULE_NOT_FOUND", a; } var p = n[i2] = { exports: {} }; e[i2][0].call(p.exports, function(r2) { var n2 = e[i2][1][r2]; return o(n2 || r2); }, p, p.exports, r, e, n, t); } return n[i2].exports; } for (var u = "function" == typeof __require && __require, i = 0; i < t.length; i++) o(t[i]); return o; } return r; }()({ 1: [function(require2, module3, exports3) { "use strict"; var OSS = require2("./browser/client"); OSS.Buffer = require2("buffer").Buffer; OSS.urllib = require2("../shims/xhr"); OSS.version = require2("./browser/version").version; module3.exports = OSS; }, { "../shims/xhr": 475, "./browser/client": 3, "./browser/version": 6, "buffer": 90 }], 2: [function(require2, module3, exports3) { "use strict"; var _interopRequireDefault = require2("@babel/runtime/helpers/interopRequireDefault"); var _regenerator = _interopRequireDefault(require2("@babel/runtime/regenerator")); var _asyncToGenerator2 = _interopRequireDefault(require2("@babel/runtime/helpers/asyncToGenerator")); require2("core-js/modules/es.object.to-string.js"); require2("core-js/modules/web.dom-collections.for-each.js"); require2("core-js/modules/es.object.keys.js"); require2("core-js/modules/es.array.slice.js"); var assert = require2("assert"); var _require = require2("../common/utils/checkBucketName"), _checkBucketName = _require.checkBucketName; var proto = exports3; function isArray(arr) { if (Array.isArray) return Array.isArray(arr); return Object.prototype.toString.call(arr) === "[object Array]"; } function toArray(obj) { if (!obj) return []; if (isArray(obj)) return obj; return [obj]; } proto.useBucket = function useBucket(name) { _checkBucketName(name); this.options.bucket = name; return this; }; proto.setBucket = function useBucket(name) { _checkBucketName(name); this.options.bucket = name; return this; }; proto.getBucket = function getBucket() { return this.options.bucket; }; proto.deleteBucket = function() { var _deleteBucket = (0, _asyncToGenerator2.default)(_regenerator.default.mark(function _callee(name, options) { var params, result; return _regenerator.default.wrap(function _callee$(_context) { while (1) { switch (_context.prev = _context.next) { case 0: params = this._bucketRequestParams("DELETE", name, "", options); _context.next = 3; return this.request(params); case 3: result = _context.sent; if (!(result.status === 200 || result.status === 204)) { _context.next = 6; break; } return _context.abrupt("return", { res: result.res }); case 6: _context.next = 8; return this.requestError(result); case 8: throw _context.sent; case 9: case "end": return _context.stop(); } } }, _callee, this); })); function deleteBucket(_x, _x2) { return _deleteBucket.apply(this, arguments); } return deleteBucket; }(); proto.putBucketACL = function() { var _putBucketACL = (0, _asyncToGenerator2.default)(_regenerator.default.mark(function _callee2(name, acl, options) { var params, result; return _regenerator.default.wrap(function _callee2$(_context2) { while (1) { switch (_context2.prev = _context2.next) { case 0: params = this._bucketRequestParams("PUT", name, "acl", options); params.headers = { "x-oss-acl": acl }; params.successStatuses = [200]; _context2.next = 5; return this.request(params); case 5: result = _context2.sent; return _context2.abrupt("return", { bucket: result.headers.location && result.headers.location.substring(1) || null, res: result.res }); case 7: case "end": return _context2.stop(); } } }, _callee2, this); })); function putBucketACL(_x3, _x4, _x5) { return _putBucketACL.apply(this, arguments); } return putBucketACL; }(); proto.getBucketACL = function() { var _getBucketACL = (0, _asyncToGenerator2.default)(_regenerator.default.mark(function _callee3(name, options) { var params, result; return _regenerator.default.wrap(function _callee3$(_context3) { while (1) { switch (_context3.prev = _context3.next) { case 0: params = this._bucketRequestParams("GET", name, "acl", options); params.successStatuses = [200]; params.xmlResponse = true; _context3.next = 5; return this.request(params); case 5: result = _context3.sent; return _context3.abrupt("return", { acl: result.data.AccessControlList.Grant, owner: { id: result.data.Owner.ID, displayName: result.data.Owner.DisplayName }, res: result.res }); case 7: case "end": return _context3.stop(); } } }, _callee3, this); })); function getBucketACL(_x6, _x7) { return _getBucketACL.apply(this, arguments); } return getBucketACL; }(); proto.putBucketLogging = function() { var _putBucketLogging = (0, _asyncToGenerator2.default)(_regenerator.default.mark(function _callee4(name, prefix, options) { var params, xml, result; return _regenerator.default.wrap(function _callee4$(_context4) { while (1) { switch (_context4.prev = _context4.next) { case 0: params = this._bucketRequestParams("PUT", name, "logging", options); xml = '\n\n\n'.concat(name, "\n"); if (prefix) { xml += "".concat(prefix, "\n"); } xml += "\n"; params.content = xml; params.mime = "xml"; params.successStatuses = [200]; _context4.next = 9; return this.request(params); case 9: result = _context4.sent; return _context4.abrupt("return", { res: result.res }); case 11: case "end": return _context4.stop(); } } }, _callee4, this); })); function putBucketLogging(_x8, _x9, _x10) { return _putBucketLogging.apply(this, arguments); } return putBucketLogging; }(); proto.getBucketLogging = function() { var _getBucketLogging = (0, _asyncToGenerator2.default)(_regenerator.default.mark(function _callee5(name, options) { var params, result, enable; return _regenerator.default.wrap(function _callee5$(_context5) { while (1) { switch (_context5.prev = _context5.next) { case 0: params = this._bucketRequestParams("GET", name, "logging", options); params.successStatuses = [200]; params.xmlResponse = true; _context5.next = 5; return this.request(params); case 5: result = _context5.sent; enable = result.data.LoggingEnabled; return _context5.abrupt("return", { enable: !!enable, prefix: enable && enable.TargetPrefix || null, res: result.res }); case 8: case "end": return _context5.stop(); } } }, _callee5, this); })); function getBucketLogging(_x11, _x12) { return _getBucketLogging.apply(this, arguments); } return getBucketLogging; }(); proto.deleteBucketLogging = function() { var _deleteBucketLogging = (0, _asyncToGenerator2.default)(_regenerator.default.mark(function _callee6(name, options) { var params, result; return _regenerator.default.wrap(function _callee6$(_context6) { while (1) { switch (_context6.prev = _context6.next) { case 0: params = this._bucketRequestParams("DELETE", name, "logging", options); params.successStatuses = [204, 200]; _context6.next = 4; return this.request(params); case 4: result = _context6.sent; return _context6.abrupt("return", { res: result.res }); case 6: case "end": return _context6.stop(); } } }, _callee6, this); })); function deleteBucketLogging(_x13, _x14) { return _deleteBucketLogging.apply(this, arguments); } return deleteBucketLogging; }(); proto.putBucketCORS = function() { var _putBucketCORS = (0, _asyncToGenerator2.default)(_regenerator.default.mark(function _callee7(name, rules, options) { var params, xml, parseOrigin, parseMethod, parseHeader, parseExposeHeader, i, l, rule, result; return _regenerator.default.wrap(function _callee7$(_context7) { while (1) { switch (_context7.prev = _context7.next) { case 0: rules = rules || []; assert(rules.length, "rules is required"); rules.forEach(function(rule2) { assert(rule2.allowedOrigin, "allowedOrigin is required"); assert(rule2.allowedMethod, "allowedMethod is required"); }); params = this._bucketRequestParams("PUT", name, "cors", options); xml = '\n'; parseOrigin = function parseOrigin2(val) { xml += "".concat(val, ""); }; parseMethod = function parseMethod2(val) { xml += "".concat(val, ""); }; parseHeader = function parseHeader2(val) { xml += "".concat(val, ""); }; parseExposeHeader = function parseExposeHeader2(val) { xml += "".concat(val, ""); }; for (i = 0, l = rules.length; i < l; i++) { rule = rules[i]; xml += ""; toArray(rule.allowedOrigin).forEach(parseOrigin); toArray(rule.allowedMethod).forEach(parseMethod); toArray(rule.allowedHeader).forEach(parseHeader); toArray(rule.exposeHeader).forEach(parseExposeHeader); if (rule.maxAgeSeconds) { xml += "".concat(rule.maxAgeSeconds, ""); } xml += ""; } xml += ""; params.content = xml; params.mime = "xml"; params.successStatuses = [200]; _context7.next = 16; return this.request(params); case 16: result = _context7.sent; return _context7.abrupt("return", { res: result.res }); case 18: case "end": return _context7.stop(); } } }, _callee7, this); })); function putBucketCORS(_x15, _x16, _x17) { return _putBucketCORS.apply(this, arguments); } return putBucketCORS; }(); proto.getBucketCORS = function() { var _getBucketCORS = (0, _asyncToGenerator2.default)(_regenerator.default.mark(function _callee8(name, options) { var params, result, rules, CORSRule; return _regenerator.default.wrap(function _callee8$(_context8) { while (1) { switch (_context8.prev = _context8.next) { case 0: params = this._bucketRequestParams("GET", name, "cors", options); params.successStatuses = [200]; params.xmlResponse = true; _context8.next = 5; return this.request(params); case 5: result = _context8.sent; rules = []; if (result.data && result.data.CORSRule) { CORSRule = result.data.CORSRule; if (!isArray(CORSRule)) CORSRule = [CORSRule]; CORSRule.forEach(function(rule) { var r = {}; Object.keys(rule).forEach(function(key) { r[key.slice(0, 1).toLowerCase() + key.slice(1, key.length)] = rule[key]; }); rules.push(r); }); } return _context8.abrupt("return", { rules, res: result.res }); case 9: case "end": return _context8.stop(); } } }, _callee8, this); })); function getBucketCORS(_x18, _x19) { return _getBucketCORS.apply(this, arguments); } return getBucketCORS; }(); proto.deleteBucketCORS = function() { var _deleteBucketCORS = (0, _asyncToGenerator2.default)(_regenerator.default.mark(function _callee9(name, options) { var params, result; return _regenerator.default.wrap(function _callee9$(_context9) { while (1) { switch (_context9.prev = _context9.next) { case 0: params = this._bucketRequestParams("DELETE", name, "cors", options); params.successStatuses = [204]; _context9.next = 4; return this.request(params); case 4: result = _context9.sent; return _context9.abrupt("return", { res: result.res }); case 6: case "end": return _context9.stop(); } } }, _callee9, this); })); function deleteBucketCORS(_x20, _x21) { return _deleteBucketCORS.apply(this, arguments); } return deleteBucketCORS; }(); proto.putBucketReferer = function() { var _putBucketReferer = (0, _asyncToGenerator2.default)(_regenerator.default.mark(function _callee10(name, allowEmpty, referers, options) { var params, xml, i, result; return _regenerator.default.wrap(function _callee10$(_context10) { while (1) { switch (_context10.prev = _context10.next) { case 0: params = this._bucketRequestParams("PUT", name, "referer", options); xml = '\n\n'; xml += " ".concat(allowEmpty ? "true" : "false", "\n"); if (referers && referers.length > 0) { xml += " \n"; for (i = 0; i < referers.length; i++) { xml += " ".concat(referers[i], "\n"); } xml += " \n"; } else { xml += " \n"; } xml += ""; params.content = xml; params.mime = "xml"; params.successStatuses = [200]; _context10.next = 10; return this.request(params); case 10: result = _context10.sent; return _context10.abrupt("return", { res: result.res }); case 12: case "end": return _context10.stop(); } } }, _callee10, this); })); function putBucketReferer(_x22, _x23, _x24, _x25) { return _putBucketReferer.apply(this, arguments); } return putBucketReferer; }(); proto.getBucketReferer = function() { var _getBucketReferer = (0, _asyncToGenerator2.default)(_regenerator.default.mark(function _callee11(name, options) { var params, result, referers; return _regenerator.default.wrap(function _callee11$(_context11) { while (1) { switch (_context11.prev = _context11.next) { case 0: params = this._bucketRequestParams("GET", name, "referer", options); params.successStatuses = [200]; params.xmlResponse = true; _context11.next = 5; return this.request(params); case 5: result = _context11.sent; referers = result.data.RefererList.Referer || null; if (referers) { if (!isArray(referers)) { referers = [referers]; } } return _context11.abrupt("return", { allowEmpty: result.data.AllowEmptyReferer === "true", referers, res: result.res }); case 9: case "end": return _context11.stop(); } } }, _callee11, this); })); function getBucketReferer(_x26, _x27) { return _getBucketReferer.apply(this, arguments); } return getBucketReferer; }(); proto.deleteBucketReferer = function() { var _deleteBucketReferer = (0, _asyncToGenerator2.default)(_regenerator.default.mark(function _callee12(name, options) { return _regenerator.default.wrap(function _callee12$(_context12) { while (1) { switch (_context12.prev = _context12.next) { case 0: _context12.next = 2; return this.putBucketReferer(name, true, null, options); case 2: return _context12.abrupt("return", _context12.sent); case 3: case "end": return _context12.stop(); } } }, _callee12, this); })); function deleteBucketReferer(_x28, _x29) { return _deleteBucketReferer.apply(this, arguments); } return deleteBucketReferer; }(); proto._bucketRequestParams = function _bucketRequestParams(method, bucket, subres, options) { return { method, bucket, subres, timeout: options && options.timeout, ctx: options && options.ctx }; }; }, { "../common/utils/checkBucketName": 51, "@babel/runtime/helpers/asyncToGenerator": 77, "@babel/runtime/helpers/interopRequireDefault": 78, "@babel/runtime/regenerator": 80, "assert": 82, "core-js/modules/es.array.slice.js": 281, "core-js/modules/es.object.keys.js": 290, "core-js/modules/es.object.to-string.js": 291, "core-js/modules/web.dom-collections.for-each.js": 339 }], 3: [function(require2, module3, exports3) { (function(Buffer, process) { (function() { "use strict"; var _interopRequireDefault = require2("@babel/runtime/helpers/interopRequireDefault"); var _regenerator = _interopRequireDefault(require2("@babel/runtime/regenerator")); var _asyncToGenerator2 = _interopRequireDefault(require2("@babel/runtime/helpers/asyncToGenerator")); require2("core-js/modules/es.function.name.js"); require2("core-js/modules/es.regexp.exec.js"); require2("core-js/modules/es.string.split.js"); require2("core-js/modules/es.object.assign.js"); require2("core-js/modules/es.array.includes.js"); require2("core-js/modules/es.string.replace.js"); require2("core-js/modules/es.array.concat.js"); require2("core-js/modules/es.symbol.js"); require2("core-js/modules/es.symbol.description.js"); require2("core-js/modules/es.array.slice.js"); require2("core-js/modules/es.object.to-string.js"); require2("core-js/modules/es.promise.js"); require2("core-js/modules/es.regexp.to-string.js"); var debug = require2("debug")("ali-oss"); var xml = require2("xml2js"); var AgentKeepalive = require2("agentkeepalive"); var merge = require2("merge-descriptors"); var platform = require2("platform"); var utility = require2("utility"); var urllib = require2("urllib"); var pkg = require2("./version"); var bowser = require2("bowser"); var signUtils = require2("../common/signUtils"); var _initOptions = require2("../common/client/initOptions"); var _require = require2("../common/utils/createRequest"), createRequest = _require.createRequest; var _require2 = require2("../common/utils/encoder"), encoder = _require2.encoder; var _require3 = require2("../common/client/getReqUrl"), getReqUrl = _require3.getReqUrl; var _require4 = require2("../common/utils/setSTSToken"), setSTSToken = _require4.setSTSToken; var _require5 = require2("../common/utils/retry"), retry = _require5.retry; var _require6 = require2("../common/utils/isFunction"), isFunction = _require6.isFunction; var globalHttpAgent = new AgentKeepalive(); function _unSupportBrowserTip() { var name = platform.name, version = platform.version; if (name && name.toLowerCase && name.toLowerCase() === "ie" && version.split(".")[0] < 10) { console.warn("ali-oss does not support the current browser"); } } function isHttpsWebProtocol() { return location && location.protocol === "https:"; } function Client(options, ctx) { _unSupportBrowserTip(); if (!(this instanceof Client)) { return new Client(options, ctx); } if (options && options.inited) { this.options = options; } else { this.options = Client.initOptions(options); } this.options.cancelFlag = false; if (this.options.urllib) { this.urllib = this.options.urllib; } else { this.urllib = urllib; this.agent = this.options.agent || globalHttpAgent; } this.ctx = ctx; this.userAgent = this._getUserAgent(); this.stsTokenFreshTime = /* @__PURE__ */ new Date(); this.options.amendTimeSkewed = 0; } module3.exports = Client; Client.initOptions = function initOptions(options) { if (!options.stsToken) { console.warn("Please use STS Token for safety, see more details at https://help.aliyun.com/document_detail/32077.html"); } var opts = Object.assign({ secure: isHttpsWebProtocol(), // for browser compatibility disable fetch. useFetch: false }, options); return _initOptions(opts); }; var proto = Client.prototype; proto.debug = debug; merge(proto, require2("./object")); merge(proto, require2("./bucket")); merge(proto, require2("../common/bucket/getBucketWebsite")); merge(proto, require2("../common/bucket/putBucketWebsite")); merge(proto, require2("../common/bucket/deleteBucketWebsite")); merge(proto, require2("../common/bucket/getBucketLifecycle")); merge(proto, require2("../common/bucket/putBucketLifecycle")); merge(proto, require2("../common/bucket/deleteBucketLifecycle")); merge(proto, require2("../common/bucket/putBucketVersioning")); merge(proto, require2("../common/bucket/getBucketVersioning")); merge(proto, require2("../common/bucket/getBucketInventory")); merge(proto, require2("../common/bucket/deleteBucketInventory")); merge(proto, require2("../common/bucket/listBucketInventory")); merge(proto, require2("../common/bucket/putBucketInventory")); merge(proto, require2("../common/bucket/abortBucketWorm")); merge(proto, require2("../common/bucket/completeBucketWorm")); merge(proto, require2("../common/bucket/extendBucketWorm")); merge(proto, require2("../common/bucket/getBucketWorm")); merge(proto, require2("../common/bucket/initiateBucketWorm")); merge(proto, require2("./managed-upload")); merge(proto, require2("../common/multipart-copy")); merge(proto, require2("../common/multipart")); merge(proto, require2("../common/parallel")); proto.signature = function signature(stringToSign) { this.debug("authorization stringToSign: %s", stringToSign, "info"); return signUtils.computeSignature(this.options.accessKeySecret, stringToSign, this.options.headerEncoding); }; proto._getReqUrl = getReqUrl; proto.authorization = function authorization(method, resource, subres, headers) { var stringToSign = signUtils.buildCanonicalString(method.toUpperCase(), resource, { headers, parameters: subres }); return signUtils.authorization(this.options.accessKeyId, this.options.accessKeySecret, stringToSign, this.options.headerEncoding); }; proto.request = function() { var _ref = (0, _asyncToGenerator2.default)(_regenerator.default.mark(function _callee(params) { var _this = this; return _regenerator.default.wrap(function _callee$(_context) { while (1) { switch (_context.prev = _context.next) { case 0: if (!this.options.retryMax) { _context.next = 6; break; } _context.next = 3; return retry(request.bind(this), this.options.retryMax, { errorHandler: function errorHandler(err) { var _errHandle = function _errHandle2(_err) { if (params.stream) return false; var statusErr = [-1, -2].includes(_err.status); var requestErrorRetryHandle = _this.options.requestErrorRetryHandle || function() { return true; }; return statusErr && requestErrorRetryHandle(_err); }; if (_errHandle(err)) return true; return false; } })(params); case 3: return _context.abrupt("return", _context.sent); case 6: return _context.abrupt("return", request.call(this, params)); case 7: case "end": return _context.stop(); } } }, _callee, this); })); return function(_x) { return _ref.apply(this, arguments); }; }(); function request(_x2) { return _request.apply(this, arguments); } function _request() { _request = (0, _asyncToGenerator2.default)(_regenerator.default.mark(function _callee3(params) { var reqParams, result, reqErr, useStream, err, parseData; return _regenerator.default.wrap(function _callee3$(_context3) { while (1) { switch (_context3.prev = _context3.next) { case 0: if (!(this.options.stsToken && isFunction(this.options.refreshSTSToken))) { _context3.next = 3; break; } _context3.next = 3; return setSTSToken.call(this); case 3: reqParams = createRequest.call(this, params); if (!this.options.useFetch) { reqParams.params.mode = "disable-fetch"; } useStream = !!params.stream; _context3.prev = 6; _context3.next = 9; return this.urllib.request(reqParams.url, reqParams.params); case 9: result = _context3.sent; this.debug("response %s %s, got %s, headers: %j", params.method, reqParams.url, result.status, result.headers, "info"); _context3.next = 16; break; case 13: _context3.prev = 13; _context3.t0 = _context3["catch"](6); reqErr = _context3.t0; case 16: if (!(result && params.successStatuses && params.successStatuses.indexOf(result.status) === -1)) { _context3.next = 28; break; } _context3.next = 19; return this.requestError(result); case 19: err = _context3.sent; if (!(err.code === "RequestTimeTooSkewed" && !useStream)) { _context3.next = 25; break; } this.options.amendTimeSkewed = +new Date(err.serverTime) - /* @__PURE__ */ new Date(); _context3.next = 24; return this.request(params); case 24: return _context3.abrupt("return", _context3.sent); case 25: err.params = params; _context3.next = 32; break; case 28: if (!reqErr) { _context3.next = 32; break; } _context3.next = 31; return this.requestError(reqErr); case 31: err = _context3.sent; case 32: if (!err) { _context3.next = 34; break; } throw err; case 34: if (!params.xmlResponse) { _context3.next = 39; break; } _context3.next = 37; return this.parseXML(result.data); case 37: parseData = _context3.sent; result.data = parseData; case 39: return _context3.abrupt("return", result); case 40: case "end": return _context3.stop(); } } }, _callee3, this, [[6, 13]]); })); return _request.apply(this, arguments); } proto._getResource = function _getResource(params) { var resource = "/"; if (params.bucket) resource += "".concat(params.bucket, "/"); if (params.object) resource += encoder(params.object, this.options.headerEncoding); return resource; }; proto._escape = function _escape(name) { return utility.encodeURIComponent(name).replace(/%2F/g, "/"); }; proto._getUserAgent = function _getUserAgent() { var agent = process && process.browser ? "js" : "nodejs"; var sdk = "aliyun-sdk-".concat(agent, "/").concat(pkg.version); var plat = platform.description; if (!plat && process) { plat = "Node.js ".concat(process.version.slice(1), " on ").concat(process.platform, " ").concat(process.arch); } return this._checkUserAgent("".concat(sdk, " ").concat(plat)); }; proto._checkUserAgent = function _checkUserAgent(ua) { var userAgent = ua.replace(/\u03b1/, "alpha").replace(/\u03b2/, "beta"); return userAgent; }; proto.checkBrowserAndVersion = function checkBrowserAndVersion(name, version) { return bowser.name === name && bowser.version.split(".")[0] === version; }; proto.parseXML = function parseXMLThunk(str) { return new Promise(function(resolve, reject) { if (Buffer.isBuffer(str)) { str = str.toString(); } xml.parseString(str, { explicitRoot: false, explicitArray: false }, function(err, result) { if (err) { reject(err); } else { resolve(result); } }); }); }; proto.requestError = function() { var _requestError = (0, _asyncToGenerator2.default)(_regenerator.default.mark(function _callee2(result) { var err, message, info, msg; return _regenerator.default.wrap(function _callee2$(_context2) { while (1) { switch (_context2.prev = _context2.next) { case 0: err = null; if (!(!result.data || !result.data.length)) { _context2.next = 5; break; } if (result.status === -1 || result.status === -2) { err = new Error(result.message); err.name = result.name; err.status = result.status; err.code = result.name; } else { if (result.status === 404) { err = new Error("Object not exists"); err.name = "NoSuchKeyError"; err.status = 404; err.code = "NoSuchKey"; } else if (result.status === 412) { err = new Error("Pre condition failed"); err.name = "PreconditionFailedError"; err.status = 412; err.code = "PreconditionFailed"; } else { err = new Error("Unknow error, status: ".concat(result.status)); err.name = "UnknownError"; err.status = result.status; } err.requestId = result.headers["x-oss-request-id"]; err.host = ""; } _context2.next = 32; break; case 5: message = String(result.data); this.debug("request response error data: %s", message, "error"); _context2.prev = 7; _context2.next = 10; return this.parseXML(message); case 10: _context2.t0 = _context2.sent; if (_context2.t0) { _context2.next = 13; break; } _context2.t0 = {}; case 13: info = _context2.t0; _context2.next = 23; break; case 16: _context2.prev = 16; _context2.t1 = _context2["catch"](7); this.debug(message, "error"); _context2.t1.message += "\nraw xml: ".concat(message); _context2.t1.status = result.status; _context2.t1.requestId = result.headers["x-oss-request-id"]; return _context2.abrupt("return", _context2.t1); case 23: msg = info.Message || "unknow request error, status: ".concat(result.status); if (info.Condition) { msg += " (condition: ".concat(info.Condition, ")"); } err = new Error(msg); err.name = info.Code ? "".concat(info.Code, "Error") : "UnknownError"; err.status = result.status; err.code = info.Code; err.requestId = info.RequestId; err.hostId = info.HostId; err.serverTime = info.ServerTime; case 32: this.debug("generate error %j", err, "error"); return _context2.abrupt("return", err); case 34: case "end": return _context2.stop(); } } }, _callee2, this, [[7, 16]]); })); function requestError(_x3) { return _requestError.apply(this, arguments); } return requestError; }(); }).call(this); }).call(this, { "isBuffer": require2("../../node_modules/is-buffer/index.js") }, require2("_process")); }, { "../../node_modules/is-buffer/index.js": 366, "../common/bucket/abortBucketWorm": 7, "../common/bucket/completeBucketWorm": 8, "../common/bucket/deleteBucketInventory": 9, "../common/bucket/deleteBucketLifecycle": 10, "../common/bucket/deleteBucketWebsite": 11, "../common/bucket/extendBucketWorm": 12, "../common/bucket/getBucketInventory": 13, "../common/bucket/getBucketLifecycle": 14, "../common/bucket/getBucketVersioning": 15, "../common/bucket/getBucketWebsite": 16, "../common/bucket/getBucketWorm": 17, "../common/bucket/initiateBucketWorm": 18, "../common/bucket/listBucketInventory": 19, "../common/bucket/putBucketInventory": 20, "../common/bucket/putBucketLifecycle": 21, "../common/bucket/putBucketVersioning": 22, "../common/bucket/putBucketWebsite": 23, "../common/client/getReqUrl": 25, "../common/client/initOptions": 26, "../common/multipart": 30, "../common/multipart-copy": 29, "../common/parallel": 49, "../common/signUtils": 50, "../common/utils/createRequest": 56, "../common/utils/encoder": 59, "../common/utils/isFunction": 68, "../common/utils/retry": 74, "../common/utils/setSTSToken": 76, "./bucket": 2, "./managed-upload": 4, "./object": 5, "./version": 6, "@babel/runtime/helpers/asyncToGenerator": 77, "@babel/runtime/helpers/interopRequireDefault": 78, "@babel/runtime/regenerator": 80, "_process": 467, "agentkeepalive": 81, "bowser": 88, "core-js/modules/es.array.concat.js": 272, "core-js/modules/es.array.includes.js": 277, "core-js/modules/es.array.slice.js": 281, "core-js/modules/es.function.name.js": 284, "core-js/modules/es.object.assign.js": 287, "core-js/modules/es.object.to-string.js": 291, "core-js/modules/es.promise.js": 295, "core-js/modules/es.regexp.exec.js": 300, "core-js/modules/es.regexp.to-string.js": 301, "core-js/modules/es.string.replace.js": 305, "core-js/modules/es.string.split.js": 307, "core-js/modules/es.symbol.description.js": 310, "core-js/modules/es.symbol.js": 313, "debug": 465, "merge-descriptors": 372, "platform": 379, "urllib": 475, "utility": 474, "xml2js": 426 }], 4: [function(require2, module3, exports3) { (function(Buffer) { (function() { "use strict"; var _interopRequireDefault = require2("@babel/runtime/helpers/interopRequireDefault"); var _regenerator = _interopRequireDefault(require2("@babel/runtime/regenerator")); require2("core-js/modules/es.function.name.js"); require2("core-js/modules/es.object.to-string.js"); require2("core-js/modules/es.promise.js"); require2("core-js/modules/es.array.from.js"); require2("core-js/modules/es.string.iterator.js"); require2("core-js/modules/es.array.map.js"); require2("core-js/modules/es.array.filter.js"); require2("core-js/modules/es.array.find.js"); require2("core-js/modules/es.array.concat.js"); require2("core-js/modules/es.regexp.to-string.js"); require2("core-js/modules/es.array.slice.js"); require2("core-js/modules/es.array.iterator.js"); require2("core-js/modules/es.array-buffer.slice.js"); require2("core-js/modules/es.typed-array.uint8-array.js"); require2("core-js/modules/es.typed-array.copy-within.js"); require2("core-js/modules/es.typed-array.every.js"); require2("core-js/modules/es.typed-array.fill.js"); require2("core-js/modules/es.typed-array.filter.js"); require2("core-js/modules/es.typed-array.find.js"); require2("core-js/modules/es.typed-array.find-index.js"); require2("core-js/modules/es.typed-array.for-each.js"); require2("core-js/modules/es.typed-array.includes.js"); require2("core-js/modules/es.typed-array.index-of.js"); require2("core-js/modules/es.typed-array.iterator.js"); require2("core-js/modules/es.typed-array.join.js"); require2("core-js/modules/es.typed-array.last-index-of.js"); require2("core-js/modules/es.typed-array.map.js"); require2("core-js/modules/es.typed-array.reduce.js"); require2("core-js/modules/es.typed-array.reduce-right.js"); require2("core-js/modules/es.typed-array.reverse.js"); require2("core-js/modules/es.typed-array.set.js"); require2("core-js/modules/es.typed-array.slice.js"); require2("core-js/modules/es.typed-array.some.js"); require2("core-js/modules/es.typed-array.sort.js"); require2("core-js/modules/es.typed-array.subarray.js"); require2("core-js/modules/es.typed-array.to-locale-string.js"); require2("core-js/modules/es.typed-array.to-string.js"); var _asyncToGenerator2 = _interopRequireDefault(require2("@babel/runtime/helpers/asyncToGenerator")); var util = require2("util"); var path = require2("path"); var mime = require2("mime"); var copy = require2("copy-to"); var _require = require2("../common/utils/isBlob"), isBlob = _require.isBlob; var _require2 = require2("../common/utils/isFile"), isFile = _require2.isFile; var _require3 = require2("../common/utils/isBuffer"), isBuffer = _require3.isBuffer; var proto = exports3; proto.multipartUpload = function() { var _multipartUpload = (0, _asyncToGenerator2.default)(_regenerator.default.mark(function _callee(name, file) { var options, minPartSize, fileSize, result, ret, initResult, uploadId, partSize, checkpoint, _args = arguments; return _regenerator.default.wrap(function _callee$(_context) { while (1) { switch (_context.prev = _context.next) { case 0: options = _args.length > 2 && _args[2] !== void 0 ? _args[2] : {}; this.resetCancelFlag(); options.disabledMD5 = options.disabledMD5 === void 0 ? true : !!options.disabledMD5; if (!(options.checkpoint && options.checkpoint.uploadId)) { _context.next = 8; break; } if (file && isFile(file)) options.checkpoint.file = file; _context.next = 7; return this._resumeMultipart(options.checkpoint, options); case 7: return _context.abrupt("return", _context.sent); case 8: minPartSize = 100 * 1024; if (!options.mime) { if (isFile(file)) { options.mime = mime.getType(path.extname(file.name)); } else if (isBlob(file)) { options.mime = file.type; } else if (isBuffer(file)) { options.mime = ""; } else { options.mime = mime.getType(path.extname(file)); } } options.headers = options.headers || {}; this._convertMetaToHeaders(options.meta, options.headers); _context.next = 14; return this._getFileSize(file); case 14: fileSize = _context.sent; if (!(fileSize < minPartSize)) { _context.next = 26; break; } options.contentLength = fileSize; _context.next = 19; return this.put(name, file, options); case 19: result = _context.sent; if (!(options && options.progress)) { _context.next = 23; break; } _context.next = 23; return options.progress(1); case 23: ret = { res: result.res, bucket: this.options.bucket, name, etag: result.res.headers.etag }; if (options.headers && options.headers["x-oss-callback"] || options.callback) { ret.data = result.data; } return _context.abrupt("return", ret); case 26: if (!(options.partSize && !(parseInt(options.partSize, 10) === options.partSize))) { _context.next = 28; break; } throw new Error("partSize must be int number"); case 28: if (!(options.partSize && options.partSize < minPartSize)) { _context.next = 30; break; } throw new Error("partSize must not be smaller than ".concat(minPartSize)); case 30: _context.next = 32; return this.initMultipartUpload(name, options); case 32: initResult = _context.sent; uploadId = initResult.uploadId; partSize = this._getPartSize(fileSize, options.partSize); checkpoint = { file, name, fileSize, partSize, uploadId, doneParts: [] }; if (!(options && options.progress)) { _context.next = 39; break; } _context.next = 39; return options.progress(0, checkpoint, initResult.res); case 39: _context.next = 41; return this._resumeMultipart(checkpoint, options); case 41: return _context.abrupt("return", _context.sent); case 42: case "end": return _context.stop(); } } }, _callee, this); })); function multipartUpload(_x, _x2) { return _multipartUpload.apply(this, arguments); } return multipartUpload; }(); proto._resumeMultipart = function() { var _resumeMultipart2 = (0, _asyncToGenerator2.default)(_regenerator.default.mark(function _callee3(checkpoint, options) { var that, file, fileSize, partSize, uploadId, doneParts, name, internalDoneParts, partOffs, numParts, multipartFinish, uploadPartJob, all, done, todo, defaultParallel, parallel, jobErr, abortEvent; return _regenerator.default.wrap(function _callee3$(_context3) { while (1) { switch (_context3.prev = _context3.next) { case 0: that = this; if (!this.isCancel()) { _context3.next = 3; break; } throw this._makeCancelEvent(); case 3: file = checkpoint.file, fileSize = checkpoint.fileSize, partSize = checkpoint.partSize, uploadId = checkpoint.uploadId, doneParts = checkpoint.doneParts, name = checkpoint.name; internalDoneParts = []; if (doneParts.length > 0) { copy(doneParts).to(internalDoneParts); } partOffs = this._divideParts(fileSize, partSize); numParts = partOffs.length; multipartFinish = false; uploadPartJob = function uploadPartJob2(self2, partNo) { return new Promise(function() { var _ref = (0, _asyncToGenerator2.default)(_regenerator.default.mark(function _callee2(resolve, reject) { var pi, content, data, result, tempErr; return _regenerator.default.wrap(function _callee2$(_context2) { while (1) { switch (_context2.prev = _context2.next) { case 0: _context2.prev = 0; if (self2.isCancel()) { _context2.next = 29; break; } pi = partOffs[partNo - 1]; _context2.next = 5; return self2._createBuffer(file, pi.start, pi.end); case 5: content = _context2.sent; data = { content, size: pi.end - pi.start }; _context2.prev = 7; _context2.next = 10; return self2._uploadPart(name, uploadId, partNo, data, options); case 10: result = _context2.sent; _context2.next = 18; break; case 13: _context2.prev = 13; _context2.t0 = _context2["catch"](7); if (!(_context2.t0.status === 404)) { _context2.next = 17; break; } throw self2._makeAbortEvent(); case 17: throw _context2.t0; case 18: if (!(!self2.isCancel() && !multipartFinish)) { _context2.next = 26; break; } checkpoint.doneParts.push({ number: partNo, etag: result.res.headers.etag }); if (!options.progress) { _context2.next = 23; break; } _context2.next = 23; return options.progress(doneParts.length / (numParts + 1), checkpoint, result.res); case 23: resolve({ number: partNo, etag: result.res.headers.etag }); _context2.next = 27; break; case 26: resolve(); case 27: _context2.next = 30; break; case 29: resolve(); case 30: _context2.next = 41; break; case 32: _context2.prev = 32; _context2.t1 = _context2["catch"](0); tempErr = new Error(); tempErr.name = _context2.t1.name; tempErr.message = _context2.t1.message; tempErr.stack = _context2.t1.stack; tempErr.partNum = partNo; copy(_context2.t1).to(tempErr); reject(tempErr); case 41: case "end": return _context2.stop(); } } }, _callee2, null, [[0, 32], [7, 13]]); })); return function(_x5, _x6) { return _ref.apply(this, arguments); }; }()); }; all = Array.from(new Array(numParts), function(x, i) { return i + 1; }); done = internalDoneParts.map(function(p) { return p.number; }); todo = all.filter(function(p) { return done.indexOf(p) < 0; }); defaultParallel = 5; parallel = options.parallel || defaultParallel; _context3.next = 17; return this._parallel(todo, parallel, function(value) { return new Promise(function(resolve, reject) { uploadPartJob(that, value).then(function(result) { if (result) { internalDoneParts.push(result); } resolve(); }).catch(function(err) { reject(err); }); }); }); case 17: jobErr = _context3.sent; multipartFinish = true; abortEvent = jobErr.find(function(err) { return err.name === "abort"; }); if (!abortEvent) { _context3.next = 22; break; } throw abortEvent; case 22: if (!this.isCancel()) { _context3.next = 25; break; } uploadPartJob = null; throw this._makeCancelEvent(); case 25: if (!(jobErr && jobErr.length > 0)) { _context3.next = 28; break; } jobErr[0].message = "Failed to upload some parts with error: ".concat(jobErr[0].toString(), " part_num: ").concat(jobErr[0].partNum); throw jobErr[0]; case 28: _context3.next = 30; return this.completeMultipartUpload(name, uploadId, internalDoneParts, options); case 30: return _context3.abrupt("return", _context3.sent); case 31: case "end": return _context3.stop(); } } }, _callee3, this); })); function _resumeMultipart(_x3, _x4) { return _resumeMultipart2.apply(this, arguments); } return _resumeMultipart; }(); proto._getFileSize = function() { var _getFileSize2 = (0, _asyncToGenerator2.default)(_regenerator.default.mark(function _callee4(file) { return _regenerator.default.wrap(function _callee4$(_context4) { while (1) { switch (_context4.prev = _context4.next) { case 0: if (!isBuffer(file)) { _context4.next = 4; break; } return _context4.abrupt("return", file.length); case 4: if (!(isBlob(file) || isFile(file))) { _context4.next = 6; break; } return _context4.abrupt("return", file.size); case 6: throw new Error("_getFileSize requires Buffer/File/Blob."); case 7: case "end": return _context4.stop(); } } }, _callee4); })); function _getFileSize(_x7) { return _getFileSize2.apply(this, arguments); } return _getFileSize; }(); var _require4 = require2("stream"), Readable = _require4.Readable; function WebFileReadStream(file, options) { if (!(this instanceof WebFileReadStream)) { return new WebFileReadStream(file, options); } Readable.call(this, options); this.file = file; this.reader = new FileReader(); this.start = 0; this.finish = false; this.fileBuffer = null; } util.inherits(WebFileReadStream, Readable); WebFileReadStream.prototype.readFileAndPush = function readFileAndPush(size) { if (this.fileBuffer) { var pushRet = true; while (pushRet && this.fileBuffer && this.start < this.fileBuffer.length) { var start = this.start; var end = start + size; end = end > this.fileBuffer.length ? this.fileBuffer.length : end; this.start = end; pushRet = this.push(this.fileBuffer.slice(start, end)); } } }; WebFileReadStream.prototype._read = function _read(size) { if (this.file && this.start >= this.file.size || this.fileBuffer && this.start >= this.fileBuffer.length || this.finish || this.start === 0 && !this.file) { if (!this.finish) { this.fileBuffer = null; this.finish = true; } this.push(null); return; } var defaultReadSize = 16 * 1024; size = size || defaultReadSize; var that = this; this.reader.onload = function onload(e) { that.fileBuffer = Buffer.from(new Uint8Array(e.target.result)); that.file = null; that.readFileAndPush(size); }; if (this.start === 0) { this.reader.readAsArrayBuffer(this.file); } else { this.readFileAndPush(size); } }; function getBuffer(file) { if (file.arrayBuffer) return file.arrayBuffer(); return new Promise(function(resolve, reject) { var reader = new FileReader(); reader.onload = function(e) { resolve(e.target.result); }; reader.onerror = function(e) { reject(e); }; reader.readAsArrayBuffer(file); }); } proto._createBuffer = function() { var _createBuffer2 = (0, _asyncToGenerator2.default)(_regenerator.default.mark(function _callee5(file, start, end) { var _file, fileContent; return _regenerator.default.wrap(function _callee5$(_context5) { while (1) { switch (_context5.prev = _context5.next) { case 0: if (!(isBlob(file) || isFile(file))) { _context5.next = 8; break; } _file = file.slice(start, end); _context5.next = 4; return getBuffer(_file); case 4: fileContent = _context5.sent; return _context5.abrupt("return", Buffer.from(fileContent)); case 8: if (!isBuffer(file)) { _context5.next = 12; break; } return _context5.abrupt("return", file.subarray(start, end)); case 12: throw new Error("_createBuffer requires File/Blob/Buffer."); case 13: case "end": return _context5.stop(); } } }, _callee5); })); function _createBuffer(_x8, _x9, _x10) { return _createBuffer2.apply(this, arguments); } return _createBuffer; }(); proto._getPartSize = function _getPartSize(fileSize, partSize) { var maxNumParts = 10 * 1e3; var defaultPartSize = 1 * 1024 * 1024; if (!partSize) partSize = defaultPartSize; var safeSize = Math.ceil(fileSize / maxNumParts); if (partSize < safeSize) { partSize = safeSize; console.warn("partSize has been set to ".concat(partSize, ", because the partSize you provided causes partNumber to be greater than 10,000")); } return partSize; }; proto._divideParts = function _divideParts(fileSize, partSize) { var numParts = Math.ceil(fileSize / partSize); var partOffs = []; for (var i = 0; i < numParts; i++) { var start = partSize * i; var end = Math.min(start + partSize, fileSize); partOffs.push({ start, end }); } return partOffs; }; }).call(this); }).call(this, require2("buffer").Buffer); }, { "../common/utils/isBlob": 64, "../common/utils/isBuffer": 65, "../common/utils/isFile": 67, "@babel/runtime/helpers/asyncToGenerator": 77, "@babel/runtime/helpers/interopRequireDefault": 78, "@babel/runtime/regenerator": 80, "buffer": 90, "copy-to": 94, "core-js/modules/es.array-buffer.slice.js": 271, "core-js/modules/es.array.concat.js": 272, "core-js/modules/es.array.filter.js": 274, "core-js/modules/es.array.find.js": 275, "core-js/modules/es.array.from.js": 276, "core-js/modules/es.array.iterator.js": 278, "core-js/modules/es.array.map.js": 280, "core-js/modules/es.array.slice.js": 281, "core-js/modules/es.function.name.js": 284, "core-js/modules/es.object.to-string.js": 291, "core-js/modules/es.promise.js": 295, "core-js/modules/es.regexp.to-string.js": 301, "core-js/modules/es.string.iterator.js": 303, "core-js/modules/es.typed-array.copy-within.js": 315, "core-js/modules/es.typed-array.every.js": 316, "core-js/modules/es.typed-array.fill.js": 317, "core-js/modules/es.typed-array.filter.js": 318, "core-js/modules/es.typed-array.find-index.js": 319, "core-js/modules/es.typed-array.find.js": 320, "core-js/modules/es.typed-array.for-each.js": 321, "core-js/modules/es.typed-array.includes.js": 322, "core-js/modules/es.typed-array.index-of.js": 323, "core-js/modules/es.typed-array.iterator.js": 324, "core-js/modules/es.typed-array.join.js": 325, "core-js/modules/es.typed-array.last-index-of.js": 326, "core-js/modules/es.typed-array.map.js": 327, "core-js/modules/es.typed-array.reduce-right.js": 328, "core-js/modules/es.typed-array.reduce.js": 329, "core-js/modules/es.typed-array.reverse.js": 330, "core-js/modules/es.typed-array.set.js": 331, "core-js/modules/es.typed-array.slice.js": 332, "core-js/modules/es.typed-array.some.js": 333, "core-js/modules/es.typed-array.sort.js": 334, "core-js/modules/es.typed-array.subarray.js": 335, "core-js/modules/es.typed-array.to-locale-string.js": 336, "core-js/modules/es.typed-array.to-string.js": 337, "core-js/modules/es.typed-array.uint8-array.js": 338, "mime": 374, "path": 378, "stream": 398, "util": 419 }], 5: [function(require2, module3, exports3) { "use strict"; var _interopRequireDefault = require2("@babel/runtime/helpers/interopRequireDefault"); require2("core-js/modules/es.function.name.js"); require2("core-js/modules/es.object.to-string.js"); require2("core-js/modules/es.regexp.to-string.js"); require2("core-js/modules/es.array.map.js"); require2("core-js/modules/es.number.constructor.js"); require2("core-js/modules/es.object.assign.js"); require2("core-js/modules/es.regexp.exec.js"); require2("core-js/modules/es.string.replace.js"); require2("core-js/modules/web.dom-collections.for-each.js"); require2("core-js/modules/es.object.keys.js"); require2("core-js/modules/es.promise.js"); var _regenerator = _interopRequireDefault(require2("@babel/runtime/regenerator")); var _asyncToGenerator2 = _interopRequireDefault(require2("@babel/runtime/helpers/asyncToGenerator")); var fs = require2("fs"); var copy = require2("copy-to"); var path = require2("path"); var mime = require2("mime"); var callback = require2("../common/callback"); var merge = require2("merge-descriptors"); var _require = require2("../common/utils/isBlob"), isBlob = _require.isBlob; var _require2 = require2("../common/utils/isFile"), isFile = _require2.isFile; var _require3 = require2("../common/utils/isBuffer"), isBuffer = _require3.isBuffer; var _require4 = require2("../common/utils/obj2xml"), obj2xml = _require4.obj2xml; var proto = exports3; proto.append = function() { var _append = (0, _asyncToGenerator2.default)(_regenerator.default.mark(function _callee(name, file, options) { var result; return _regenerator.default.wrap(function _callee$(_context) { while (1) { switch (_context.prev = _context.next) { case 0: options = options || {}; if (options.position === void 0) options.position = "0"; options.subres = { append: "", position: options.position }; options.method = "POST"; _context.next = 6; return this.put(name, file, options); case 6: result = _context.sent; result.nextAppendPosition = result.res.headers["x-oss-next-append-position"]; return _context.abrupt("return", result); case 9: case "end": return _context.stop(); } } }, _callee, this); })); function append(_x, _x2, _x3) { return _append.apply(this, arguments); } return append; }(); proto.put = function() { var _put = (0, _asyncToGenerator2.default)(_regenerator.default.mark(function _callee2(name, file, options) { var content, method, params, result, ret; return _regenerator.default.wrap(function _callee2$(_context2) { while (1) { switch (_context2.prev = _context2.next) { case 0: options = options || {}; options.disabledMD5 = options.disabledMD5 === void 0 ? true : !!options.disabledMD5; options.headers = options.headers || {}; name = this._objectName(name); if (!isBuffer(file)) { _context2.next = 8; break; } content = file; _context2.next = 19; break; case 8: if (!(isBlob(file) || isFile(file))) { _context2.next = 18; break; } if (!options.mime) { if (isFile(file)) { options.mime = mime.getType(path.extname(file.name)); } else { options.mime = file.type; } } _context2.next = 12; return this._createBuffer(file, 0, file.size); case 12: content = _context2.sent; _context2.next = 15; return this._getFileSize(file); case 15: options.contentLength = _context2.sent; _context2.next = 19; break; case 18: throw new TypeError("Must provide Buffer/Blob/File for put."); case 19: this._convertMetaToHeaders(options.meta, options.headers); method = options.method || "PUT"; params = this._objectRequestParams(method, name, options); callback.encodeCallback(params, options); params.mime = options.mime; params.disabledMD5 = options.disabledMD5; params.content = content; params.successStatuses = [200]; _context2.next = 29; return this.request(params); case 29: result = _context2.sent; ret = { name, url: this._objectUrl(name), res: result.res }; if (params.headers && params.headers["x-oss-callback"]) { ret.data = JSON.parse(result.data.toString()); } return _context2.abrupt("return", ret); case 33: case "end": return _context2.stop(); } } }, _callee2, this); })); function put(_x4, _x5, _x6) { return _put.apply(this, arguments); } return put; }(); proto.putStream = function() { var _putStream = (0, _asyncToGenerator2.default)(_regenerator.default.mark(function _callee3(name, stream, options) { var method, params, result, ret; return _regenerator.default.wrap(function _callee3$(_context3) { while (1) { switch (_context3.prev = _context3.next) { case 0: options = options || {}; options.headers = options.headers || {}; name = this._objectName(name); if (options.contentLength) { options.headers["Content-Length"] = options.contentLength; } else { options.headers["Transfer-Encoding"] = "chunked"; } this._convertMetaToHeaders(options.meta, options.headers); method = options.method || "PUT"; params = this._objectRequestParams(method, name, options); callback.encodeCallback(params, options); params.mime = options.mime; params.stream = stream; params.successStatuses = [200]; _context3.next = 13; return this.request(params); case 13: result = _context3.sent; ret = { name, url: this._objectUrl(name), res: result.res }; if (params.headers && params.headers["x-oss-callback"]) { ret.data = JSON.parse(result.data.toString()); } return _context3.abrupt("return", ret); case 17: case "end": return _context3.stop(); } } }, _callee3, this); })); function putStream(_x7, _x8, _x9) { return _putStream.apply(this, arguments); } return putStream; }(); merge(proto, require2("../common/object/copyObject")); merge(proto, require2("../common/object/getObjectTagging")); merge(proto, require2("../common/object/putObjectTagging")); merge(proto, require2("../common/object/deleteObjectTagging")); merge(proto, require2("../common/image")); merge(proto, require2("../common/object/getBucketVersions")); merge(proto, require2("../common/object/getACL")); merge(proto, require2("../common/object/putACL")); merge(proto, require2("../common/object/head")); merge(proto, require2("../common/object/delete")); merge(proto, require2("../common/object/get")); merge(proto, require2("../common/object/putSymlink")); merge(proto, require2("../common/object/getSymlink")); merge(proto, require2("../common/object/deleteMulti")); merge(proto, require2("../common/object/getObjectMeta")); merge(proto, require2("../common/object/getObjectUrl")); merge(proto, require2("../common/object/generateObjectUrl")); merge(proto, require2("../common/object/signatureUrl")); merge(proto, require2("../common/object/asyncSignatureUrl")); proto.putMeta = function() { var _putMeta = (0, _asyncToGenerator2.default)(_regenerator.default.mark(function _callee4(name, meta, options) { var copyResult; return _regenerator.default.wrap(function _callee4$(_context4) { while (1) { switch (_context4.prev = _context4.next) { case 0: _context4.next = 2; return this.copy(name, name, { meta: meta || {}, timeout: options && options.timeout, ctx: options && options.ctx }); case 2: copyResult = _context4.sent; return _context4.abrupt("return", copyResult); case 4: case "end": return _context4.stop(); } } }, _callee4, this); })); function putMeta(_x10, _x11, _x12) { return _putMeta.apply(this, arguments); } return putMeta; }(); proto.list = function() { var _list = (0, _asyncToGenerator2.default)(_regenerator.default.mark(function _callee5(query, options) { var params, result, objects, that, prefixes; return _regenerator.default.wrap(function _callee5$(_context5) { while (1) { switch (_context5.prev = _context5.next) { case 0: params = this._objectRequestParams("GET", "", options); params.query = query; params.xmlResponse = true; params.successStatuses = [200]; _context5.next = 6; return this.request(params); case 6: result = _context5.sent; objects = result.data.Contents || []; that = this; if (objects) { if (!Array.isArray(objects)) { objects = [objects]; } objects = objects.map(function(obj) { return { name: obj.Key, url: that._objectUrl(obj.Key), lastModified: obj.LastModified, etag: obj.ETag, type: obj.Type, size: Number(obj.Size), storageClass: obj.StorageClass, owner: { id: obj.Owner.ID, displayName: obj.Owner.DisplayName } }; }); } prefixes = result.data.CommonPrefixes || null; if (prefixes) { if (!Array.isArray(prefixes)) { prefixes = [prefixes]; } prefixes = prefixes.map(function(item) { return item.Prefix; }); } return _context5.abrupt("return", { res: result.res, objects, prefixes, nextMarker: result.data.NextMarker || null, isTruncated: result.data.IsTruncated === "true" }); case 13: case "end": return _context5.stop(); } } }, _callee5, this); })); function list(_x13, _x14) { return _list.apply(this, arguments); } return list; }(); proto.listV2 = function() { var _listV = (0, _asyncToGenerator2.default)(_regenerator.default.mark(function _callee6(query) { var options, continuation_token, params, result, objects, that, prefixes, _args6 = arguments; return _regenerator.default.wrap(function _callee6$(_context6) { while (1) { switch (_context6.prev = _context6.next) { case 0: options = _args6.length > 1 && _args6[1] !== void 0 ? _args6[1] : {}; continuation_token = query["continuation-token"] || query.continuationToken; if (continuation_token) { options.subres = Object.assign({ "continuation-token": continuation_token }, options.subres); } params = this._objectRequestParams("GET", "", options); params.query = Object.assign({ "list-type": 2 }, query); delete params.query["continuation-token"]; delete params.query.continuationToken; params.xmlResponse = true; params.successStatuses = [200]; _context6.next = 11; return this.request(params); case 11: result = _context6.sent; objects = result.data.Contents || []; that = this; if (objects) { if (!Array.isArray(objects)) { objects = [objects]; } objects = objects.map(function(obj) { var owner = null; if (obj.Owner) { owner = { id: obj.Owner.ID, displayName: obj.Owner.DisplayName }; } return { name: obj.Key, url: that._objectUrl(obj.Key), lastModified: obj.LastModified, etag: obj.ETag, type: obj.Type, size: Number(obj.Size), storageClass: obj.StorageClass, owner }; }); } prefixes = result.data.CommonPrefixes || null; if (prefixes) { if (!Array.isArray(prefixes)) { prefixes = [prefixes]; } prefixes = prefixes.map(function(item) { return item.Prefix; }); } return _context6.abrupt("return", { res: result.res, objects, prefixes, isTruncated: result.data.IsTruncated === "true", keyCount: +result.data.KeyCount, continuationToken: result.data.ContinuationToken || null, nextContinuationToken: result.data.NextContinuationToken || null }); case 18: case "end": return _context6.stop(); } } }, _callee6, this); })); function listV2(_x15) { return _listV.apply(this, arguments); } return listV2; }(); proto.restore = function() { var _restore = (0, _asyncToGenerator2.default)(_regenerator.default.mark(function _callee7(name) { var options, params, paramsXMLObj, result, _args7 = arguments; return _regenerator.default.wrap(function _callee7$(_context7) { while (1) { switch (_context7.prev = _context7.next) { case 0: options = _args7.length > 1 && _args7[1] !== void 0 ? _args7[1] : { type: "Archive" }; options = options || {}; options.subres = Object.assign({ restore: "" }, options.subres); if (options.versionId) { options.subres.versionId = options.versionId; } params = this._objectRequestParams("POST", name, options); if (options.type === "ColdArchive") { paramsXMLObj = { RestoreRequest: { Days: options.Days ? options.Days : 2, JobParameters: { Tier: options.JobParameters ? options.JobParameters : "Standard" } } }; params.content = obj2xml(paramsXMLObj, { headers: true }); params.mime = "xml"; } params.successStatuses = [202]; _context7.next = 9; return this.request(params); case 9: result = _context7.sent; return _context7.abrupt("return", { res: result.res }); case 11: case "end": return _context7.stop(); } } }, _callee7, this); })); function restore(_x16) { return _restore.apply(this, arguments); } return restore; }(); proto._objectUrl = function _objectUrl(name) { return this._getReqUrl({ bucket: this.options.bucket, object: name }); }; proto._objectRequestParams = function _objectRequestParams(method, name, options) { if (!this.options.bucket && !this.options.cname) { throw new Error("Please create a bucket first"); } options = options || {}; name = this._objectName(name); var params = { object: name, bucket: this.options.bucket, method, subres: options && options.subres, timeout: options && options.timeout, ctx: options && options.ctx }; if (options.headers) { params.headers = {}; copy(options.headers).to(params.headers); } return params; }; proto._objectName = function _objectName(name) { return name.replace(/^\/+/, ""); }; proto._convertMetaToHeaders = function _convertMetaToHeaders(meta, headers) { if (!meta) { return; } Object.keys(meta).forEach(function(k) { headers["x-oss-meta-".concat(k)] = meta[k]; }); }; proto._deleteFileSafe = function _deleteFileSafe(filepath) { var _this = this; return new Promise(function(resolve) { fs.exists(filepath, function(exists) { if (!exists) { resolve(); } else { fs.unlink(filepath, function(err) { if (err) { _this.debug("unlink %j error: %s", filepath, err, "error"); } resolve(); }); } }); }); }; }, { "../common/callback": 24, "../common/image": 27, "../common/object/asyncSignatureUrl": 31, "../common/object/copyObject": 32, "../common/object/delete": 33, "../common/object/deleteMulti": 34, "../common/object/deleteObjectTagging": 35, "../common/object/generateObjectUrl": 36, "../common/object/get": 37, "../common/object/getACL": 38, "../common/object/getBucketVersions": 39, "../common/object/getObjectMeta": 40, "../common/object/getObjectTagging": 41, "../common/object/getObjectUrl": 42, "../common/object/getSymlink": 43, "../common/object/head": 44, "../common/object/putACL": 45, "../common/object/putObjectTagging": 46, "../common/object/putSymlink": 47, "../common/object/signatureUrl": 48, "../common/utils/isBlob": 64, "../common/utils/isBuffer": 65, "../common/utils/isFile": 67, "../common/utils/obj2xml": 72, "@babel/runtime/helpers/asyncToGenerator": 77, "@babel/runtime/helpers/interopRequireDefault": 78, "@babel/runtime/regenerator": 80, "copy-to": 94, "core-js/modules/es.array.map.js": 280, "core-js/modules/es.function.name.js": 284, "core-js/modules/es.number.constructor.js": 286, "core-js/modules/es.object.assign.js": 287, "core-js/modules/es.object.keys.js": 290, "core-js/modules/es.object.to-string.js": 291, "core-js/modules/es.promise.js": 295, "core-js/modules/es.regexp.exec.js": 300, "core-js/modules/es.regexp.to-string.js": 301, "core-js/modules/es.string.replace.js": 305, "core-js/modules/web.dom-collections.for-each.js": 339, "fs": 89, "merge-descriptors": 372, "mime": 374, "path": 378 }], 6: [function(require2, module3, exports3) { "use strict"; exports3.version = "6.19.0"; }, {}], 7: [function(require2, module3, exports3) { "use strict"; var _interopRequireDefault = require2("@babel/runtime/helpers/interopRequireDefault"); var _regenerator = _interopRequireDefault(require2("@babel/runtime/regenerator")); var _asyncToGenerator2 = _interopRequireDefault(require2("@babel/runtime/helpers/asyncToGenerator")); Object.defineProperty(exports3, "__esModule", { value: true }); exports3.abortBucketWorm = void 0; var checkBucketName_1 = require2("../utils/checkBucketName"); function abortBucketWorm(_x, _x2) { return _abortBucketWorm.apply(this, arguments); } function _abortBucketWorm() { _abortBucketWorm = (0, _asyncToGenerator2.default)(_regenerator.default.mark(function _callee(name, options) { var params, result; return _regenerator.default.wrap(function _callee$(_context) { while (1) { switch (_context.prev = _context.next) { case 0: checkBucketName_1.checkBucketName(name); params = this._bucketRequestParams("DELETE", name, "worm", options); _context.next = 4; return this.request(params); case 4: result = _context.sent; return _context.abrupt("return", { res: result.res, status: result.status }); case 6: case "end": return _context.stop(); } } }, _callee, this); })); return _abortBucketWorm.apply(this, arguments); } exports3.abortBucketWorm = abortBucketWorm; }, { "../utils/checkBucketName": 51, "@babel/runtime/helpers/asyncToGenerator": 77, "@babel/runtime/helpers/interopRequireDefault": 78, "@babel/runtime/regenerator": 80 }], 8: [function(require2, module3, exports3) { "use strict"; var _interopRequireDefault = require2("@babel/runtime/helpers/interopRequireDefault"); var _regenerator = _interopRequireDefault(require2("@babel/runtime/regenerator")); var _asyncToGenerator2 = _interopRequireDefault(require2("@babel/runtime/helpers/asyncToGenerator")); Object.defineProperty(exports3, "__esModule", { value: true }); exports3.completeBucketWorm = void 0; var checkBucketName_1 = require2("../utils/checkBucketName"); function completeBucketWorm(_x, _x2, _x3) { return _completeBucketWorm.apply(this, arguments); } function _completeBucketWorm() { _completeBucketWorm = (0, _asyncToGenerator2.default)(_regenerator.default.mark(function _callee(name, wormId, options) { var params, result; return _regenerator.default.wrap(function _callee$(_context) { while (1) { switch (_context.prev = _context.next) { case 0: checkBucketName_1.checkBucketName(name); params = this._bucketRequestParams("POST", name, { wormId }, options); _context.next = 4; return this.request(params); case 4: result = _context.sent; return _context.abrupt("return", { res: result.res, status: result.status }); case 6: case "end": return _context.stop(); } } }, _callee, this); })); return _completeBucketWorm.apply(this, arguments); } exports3.completeBucketWorm = completeBucketWorm; }, { "../utils/checkBucketName": 51, "@babel/runtime/helpers/asyncToGenerator": 77, "@babel/runtime/helpers/interopRequireDefault": 78, "@babel/runtime/regenerator": 80 }], 9: [function(require2, module3, exports3) { "use strict"; var _interopRequireDefault = require2("@babel/runtime/helpers/interopRequireDefault"); var _regenerator = _interopRequireDefault(require2("@babel/runtime/regenerator")); require2("core-js/modules/es.object.assign.js"); var _asyncToGenerator2 = _interopRequireDefault(require2("@babel/runtime/helpers/asyncToGenerator")); Object.defineProperty(exports3, "__esModule", { value: true }); exports3.deleteBucketInventory = void 0; var checkBucketName_1 = require2("../utils/checkBucketName"); function deleteBucketInventory(_x, _x2) { return _deleteBucketInventory.apply(this, arguments); } function _deleteBucketInventory() { _deleteBucketInventory = (0, _asyncToGenerator2.default)(_regenerator.default.mark(function _callee(bucketName, inventoryId) { var options, subres, params, result, _args = arguments; return _regenerator.default.wrap(function _callee$(_context) { while (1) { switch (_context.prev = _context.next) { case 0: options = _args.length > 2 && _args[2] !== void 0 ? _args[2] : {}; subres = Object.assign({ inventory: "", inventoryId }, options.subres); checkBucketName_1.checkBucketName(bucketName); params = this._bucketRequestParams("DELETE", bucketName, subres, options); params.successStatuses = [204]; _context.next = 7; return this.request(params); case 7: result = _context.sent; return _context.abrupt("return", { status: result.status, res: result.res }); case 9: case "end": return _context.stop(); } } }, _callee, this); })); return _deleteBucketInventory.apply(this, arguments); } exports3.deleteBucketInventory = deleteBucketInventory; }, { "../utils/checkBucketName": 51, "@babel/runtime/helpers/asyncToGenerator": 77, "@babel/runtime/helpers/interopRequireDefault": 78, "@babel/runtime/regenerator": 80, "core-js/modules/es.object.assign.js": 287 }], 10: [function(require2, module3, exports3) { "use strict"; var _interopRequireDefault = require2("@babel/runtime/helpers/interopRequireDefault"); var _regenerator = _interopRequireDefault(require2("@babel/runtime/regenerator")); var _asyncToGenerator2 = _interopRequireDefault(require2("@babel/runtime/helpers/asyncToGenerator")); var _require = require2("../utils/checkBucketName"), _checkBucketName = _require.checkBucketName; var proto = exports3; proto.deleteBucketLifecycle = function() { var _deleteBucketLifecycle = (0, _asyncToGenerator2.default)(_regenerator.default.mark(function _callee(name, options) { var params, result; return _regenerator.default.wrap(function _callee$(_context) { while (1) { switch (_context.prev = _context.next) { case 0: _checkBucketName(name); params = this._bucketRequestParams("DELETE", name, "lifecycle", options); params.successStatuses = [204]; _context.next = 5; return this.request(params); case 5: result = _context.sent; return _context.abrupt("return", { res: result.res }); case 7: case "end": return _context.stop(); } } }, _callee, this); })); function deleteBucketLifecycle(_x, _x2) { return _deleteBucketLifecycle.apply(this, arguments); } return deleteBucketLifecycle; }(); }, { "../utils/checkBucketName": 51, "@babel/runtime/helpers/asyncToGenerator": 77, "@babel/runtime/helpers/interopRequireDefault": 78, "@babel/runtime/regenerator": 80 }], 11: [function(require2, module3, exports3) { "use strict"; var _interopRequireDefault = require2("@babel/runtime/helpers/interopRequireDefault"); var _regenerator = _interopRequireDefault(require2("@babel/runtime/regenerator")); var _asyncToGenerator2 = _interopRequireDefault(require2("@babel/runtime/helpers/asyncToGenerator")); var _require = require2("../utils/checkBucketName"), _checkBucketName = _require.checkBucketName; var proto = exports3; proto.deleteBucketWebsite = function() { var _deleteBucketWebsite = (0, _asyncToGenerator2.default)(_regenerator.default.mark(function _callee(name, options) { var params, result; return _regenerator.default.wrap(function _callee$(_context) { while (1) { switch (_context.prev = _context.next) { case 0: _checkBucketName(name); params = this._bucketRequestParams("DELETE", name, "website", options); params.successStatuses = [204]; _context.next = 5; return this.request(params); case 5: result = _context.sent; return _context.abrupt("return", { res: result.res }); case 7: case "end": return _context.stop(); } } }, _callee, this); })); function deleteBucketWebsite(_x, _x2) { return _deleteBucketWebsite.apply(this, arguments); } return deleteBucketWebsite; }(); }, { "../utils/checkBucketName": 51, "@babel/runtime/helpers/asyncToGenerator": 77, "@babel/runtime/helpers/interopRequireDefault": 78, "@babel/runtime/regenerator": 80 }], 12: [function(require2, module3, exports3) { "use strict"; var _interopRequireDefault = require2("@babel/runtime/helpers/interopRequireDefault"); var _regenerator = _interopRequireDefault(require2("@babel/runtime/regenerator")); var _asyncToGenerator2 = _interopRequireDefault(require2("@babel/runtime/helpers/asyncToGenerator")); Object.defineProperty(exports3, "__esModule", { value: true }); exports3.extendBucketWorm = void 0; var checkBucketName_1 = require2("../utils/checkBucketName"); var obj2xml_1 = require2("../utils/obj2xml"); function extendBucketWorm(_x, _x2, _x3, _x4) { return _extendBucketWorm.apply(this, arguments); } function _extendBucketWorm() { _extendBucketWorm = (0, _asyncToGenerator2.default)(_regenerator.default.mark(function _callee(name, wormId, days, options) { var params, paramlXMLObJ, result; return _regenerator.default.wrap(function _callee$(_context) { while (1) { switch (_context.prev = _context.next) { case 0: checkBucketName_1.checkBucketName(name); params = this._bucketRequestParams("POST", name, { wormExtend: "", wormId }, options); paramlXMLObJ = { ExtendWormConfiguration: { RetentionPeriodInDays: days } }; params.mime = "xml"; params.content = obj2xml_1.obj2xml(paramlXMLObJ, { headers: true }); params.successStatuses = [200]; _context.next = 8; return this.request(params); case 8: result = _context.sent; return _context.abrupt("return", { res: result.res, status: result.status }); case 10: case "end": return _context.stop(); } } }, _callee, this); })); return _extendBucketWorm.apply(this, arguments); } exports3.extendBucketWorm = extendBucketWorm; }, { "../utils/checkBucketName": 51, "../utils/obj2xml": 72, "@babel/runtime/helpers/asyncToGenerator": 77, "@babel/runtime/helpers/interopRequireDefault": 78, "@babel/runtime/regenerator": 80 }], 13: [function(require2, module3, exports3) { "use strict"; var _interopRequireDefault = require2("@babel/runtime/helpers/interopRequireDefault"); var _regenerator = _interopRequireDefault(require2("@babel/runtime/regenerator")); require2("core-js/modules/es.object.assign.js"); var _asyncToGenerator2 = _interopRequireDefault(require2("@babel/runtime/helpers/asyncToGenerator")); Object.defineProperty(exports3, "__esModule", { value: true }); exports3.getBucketInventory = void 0; var checkBucketName_1 = require2("../utils/checkBucketName"); var formatInventoryConfig_1 = require2("../utils/formatInventoryConfig"); function getBucketInventory(_x, _x2) { return _getBucketInventory.apply(this, arguments); } function _getBucketInventory() { _getBucketInventory = (0, _asyncToGenerator2.default)(_regenerator.default.mark(function _callee(bucketName, inventoryId) { var options, subres, params, result, _args = arguments; return _regenerator.default.wrap(function _callee$(_context) { while (1) { switch (_context.prev = _context.next) { case 0: options = _args.length > 2 && _args[2] !== void 0 ? _args[2] : {}; subres = Object.assign({ inventory: "", inventoryId }, options.subres); checkBucketName_1.checkBucketName(bucketName); params = this._bucketRequestParams("GET", bucketName, subres, options); params.successStatuses = [200]; params.xmlResponse = true; _context.next = 8; return this.request(params); case 8: result = _context.sent; return _context.abrupt("return", { status: result.status, res: result.res, inventory: formatInventoryConfig_1.formatInventoryConfig(result.data) }); case 10: case "end": return _context.stop(); } } }, _callee, this); })); return _getBucketInventory.apply(this, arguments); } exports3.getBucketInventory = getBucketInventory; }, { "../utils/checkBucketName": 51, "../utils/formatInventoryConfig": 60, "@babel/runtime/helpers/asyncToGenerator": 77, "@babel/runtime/helpers/interopRequireDefault": 78, "@babel/runtime/regenerator": 80, "core-js/modules/es.object.assign.js": 287 }], 14: [function(require2, module3, exports3) { "use strict"; var _interopRequireDefault = require2("@babel/runtime/helpers/interopRequireDefault"); var _regenerator = _interopRequireDefault(require2("@babel/runtime/regenerator")); require2("core-js/modules/es.array.map.js"); var _asyncToGenerator2 = _interopRequireDefault(require2("@babel/runtime/helpers/asyncToGenerator")); var _require = require2("../utils/checkBucketName"), _checkBucketName = _require.checkBucketName; var _require2 = require2("../utils/isArray"), isArray = _require2.isArray; var _require3 = require2("../utils/formatObjKey"), formatObjKey = _require3.formatObjKey; var proto = exports3; proto.getBucketLifecycle = function() { var _getBucketLifecycle = (0, _asyncToGenerator2.default)(_regenerator.default.mark(function _callee(name, options) { var params, result, rules; return _regenerator.default.wrap(function _callee$(_context) { while (1) { switch (_context.prev = _context.next) { case 0: _checkBucketName(name); params = this._bucketRequestParams("GET", name, "lifecycle", options); params.successStatuses = [200]; params.xmlResponse = true; _context.next = 6; return this.request(params); case 6: result = _context.sent; rules = result.data.Rule || null; if (rules) { if (!isArray(rules)) { rules = [rules]; } rules = rules.map(function(_) { if (_.ID) { _.id = _.ID; delete _.ID; } if (_.Tag && !isArray(_.Tag)) { _.Tag = [_.Tag]; } return formatObjKey(_, "firstLowerCase"); }); } return _context.abrupt("return", { rules, res: result.res }); case 10: case "end": return _context.stop(); } } }, _callee, this); })); function getBucketLifecycle(_x, _x2) { return _getBucketLifecycle.apply(this, arguments); } return getBucketLifecycle; }(); }, { "../utils/checkBucketName": 51, "../utils/formatObjKey": 61, "../utils/isArray": 63, "@babel/runtime/helpers/asyncToGenerator": 77, "@babel/runtime/helpers/interopRequireDefault": 78, "@babel/runtime/regenerator": 80, "core-js/modules/es.array.map.js": 280 }], 15: [function(require2, module3, exports3) { "use strict"; var _interopRequireDefault = require2("@babel/runtime/helpers/interopRequireDefault"); var _regenerator = _interopRequireDefault(require2("@babel/runtime/regenerator")); var _asyncToGenerator2 = _interopRequireDefault(require2("@babel/runtime/helpers/asyncToGenerator")); var _require = require2("../utils/checkBucketName"), _checkBucketName = _require.checkBucketName; var proto = exports3; proto.getBucketVersioning = function() { var _getBucketVersioning = (0, _asyncToGenerator2.default)(_regenerator.default.mark(function _callee(bucketName, options) { var params, result, versionStatus; return _regenerator.default.wrap(function _callee$(_context) { while (1) { switch (_context.prev = _context.next) { case 0: _checkBucketName(bucketName); params = this._bucketRequestParams("GET", bucketName, "versioning", options); params.xmlResponse = true; params.successStatuses = [200]; _context.next = 6; return this.request(params); case 6: result = _context.sent; versionStatus = result.data.Status; return _context.abrupt("return", { status: result.status, versionStatus, res: result.res }); case 9: case "end": return _context.stop(); } } }, _callee, this); })); function getBucketVersioning(_x, _x2) { return _getBucketVersioning.apply(this, arguments); } return getBucketVersioning; }(); }, { "../utils/checkBucketName": 51, "@babel/runtime/helpers/asyncToGenerator": 77, "@babel/runtime/helpers/interopRequireDefault": 78, "@babel/runtime/regenerator": 80 }], 16: [function(require2, module3, exports3) { "use strict"; var _interopRequireDefault = require2("@babel/runtime/helpers/interopRequireDefault"); var _regenerator = _interopRequireDefault(require2("@babel/runtime/regenerator")); var _asyncToGenerator2 = _interopRequireDefault(require2("@babel/runtime/helpers/asyncToGenerator")); var _require = require2("../utils/checkBucketName"), _checkBucketName = _require.checkBucketName; var _require2 = require2("../utils/isObject"), isObject = _require2.isObject; var proto = exports3; proto.getBucketWebsite = function() { var _getBucketWebsite = (0, _asyncToGenerator2.default)(_regenerator.default.mark(function _callee(name, options) { var params, result, routingRules; return _regenerator.default.wrap(function _callee$(_context) { while (1) { switch (_context.prev = _context.next) { case 0: _checkBucketName(name); params = this._bucketRequestParams("GET", name, "website", options); params.successStatuses = [200]; params.xmlResponse = true; _context.next = 6; return this.request(params); case 6: result = _context.sent; routingRules = []; if (result.data.RoutingRules && result.data.RoutingRules.RoutingRule) { if (isObject(result.data.RoutingRules.RoutingRule)) { routingRules = [result.data.RoutingRules.RoutingRule]; } else { routingRules = result.data.RoutingRules.RoutingRule; } } return _context.abrupt("return", { index: result.data.IndexDocument && result.data.IndexDocument.Suffix || "", supportSubDir: result.data.IndexDocument && result.data.IndexDocument.SupportSubDir || "false", type: result.data.IndexDocument && result.data.IndexDocument.Type, routingRules, error: result.data.ErrorDocument && result.data.ErrorDocument.Key || null, res: result.res }); case 10: case "end": return _context.stop(); } } }, _callee, this); })); function getBucketWebsite(_x, _x2) { return _getBucketWebsite.apply(this, arguments); } return getBucketWebsite; }(); }, { "../utils/checkBucketName": 51, "../utils/isObject": 70, "@babel/runtime/helpers/asyncToGenerator": 77, "@babel/runtime/helpers/interopRequireDefault": 78, "@babel/runtime/regenerator": 80 }], 17: [function(require2, module3, exports3) { "use strict"; var _interopRequireDefault = require2("@babel/runtime/helpers/interopRequireDefault"); var _regenerator = _interopRequireDefault(require2("@babel/runtime/regenerator")); require2("core-js/modules/es.object.assign.js"); var _asyncToGenerator2 = _interopRequireDefault(require2("@babel/runtime/helpers/asyncToGenerator")); Object.defineProperty(exports3, "__esModule", { value: true }); exports3.getBucketWorm = void 0; var checkBucketName_1 = require2("../utils/checkBucketName"); var dataFix_1 = require2("../utils/dataFix"); function getBucketWorm(_x, _x2) { return _getBucketWorm.apply(this, arguments); } function _getBucketWorm() { _getBucketWorm = (0, _asyncToGenerator2.default)(_regenerator.default.mark(function _callee(name, options) { var params, result; return _regenerator.default.wrap(function _callee$(_context) { while (1) { switch (_context.prev = _context.next) { case 0: checkBucketName_1.checkBucketName(name); params = this._bucketRequestParams("GET", name, "worm", options); params.successStatuses = [200]; params.xmlResponse = true; _context.next = 6; return this.request(params); case 6: result = _context.sent; dataFix_1.dataFix(result.data, { lowerFirst: true, rename: { RetentionPeriodInDays: "days" } }); return _context.abrupt("return", Object.assign(Object.assign({}, result.data), { res: result.res, status: result.status })); case 9: case "end": return _context.stop(); } } }, _callee, this); })); return _getBucketWorm.apply(this, arguments); } exports3.getBucketWorm = getBucketWorm; }, { "../utils/checkBucketName": 51, "../utils/dataFix": 57, "@babel/runtime/helpers/asyncToGenerator": 77, "@babel/runtime/helpers/interopRequireDefault": 78, "@babel/runtime/regenerator": 80, "core-js/modules/es.object.assign.js": 287 }], 18: [function(require2, module3, exports3) { "use strict"; var _interopRequireDefault = require2("@babel/runtime/helpers/interopRequireDefault"); var _regenerator = _interopRequireDefault(require2("@babel/runtime/regenerator")); var _asyncToGenerator2 = _interopRequireDefault(require2("@babel/runtime/helpers/asyncToGenerator")); Object.defineProperty(exports3, "__esModule", { value: true }); exports3.initiateBucketWorm = void 0; var obj2xml_1 = require2("../utils/obj2xml"); var checkBucketName_1 = require2("../utils/checkBucketName"); function initiateBucketWorm(_x, _x2, _x3) { return _initiateBucketWorm.apply(this, arguments); } function _initiateBucketWorm() { _initiateBucketWorm = (0, _asyncToGenerator2.default)(_regenerator.default.mark(function _callee(name, days, options) { var params, paramlXMLObJ, result; return _regenerator.default.wrap(function _callee$(_context) { while (1) { switch (_context.prev = _context.next) { case 0: checkBucketName_1.checkBucketName(name); params = this._bucketRequestParams("POST", name, "worm", options); paramlXMLObJ = { InitiateWormConfiguration: { RetentionPeriodInDays: days } }; params.mime = "xml"; params.content = obj2xml_1.obj2xml(paramlXMLObJ, { headers: true }); params.successStatuses = [200]; _context.next = 8; return this.request(params); case 8: result = _context.sent; return _context.abrupt("return", { res: result.res, wormId: result.res.headers["x-oss-worm-id"], status: result.status }); case 10: case "end": return _context.stop(); } } }, _callee, this); })); return _initiateBucketWorm.apply(this, arguments); } exports3.initiateBucketWorm = initiateBucketWorm; }, { "../utils/checkBucketName": 51, "../utils/obj2xml": 72, "@babel/runtime/helpers/asyncToGenerator": 77, "@babel/runtime/helpers/interopRequireDefault": 78, "@babel/runtime/regenerator": 80 }], 19: [function(require2, module3, exports3) { "use strict"; var _interopRequireDefault = require2("@babel/runtime/helpers/interopRequireDefault"); var _regenerator = _interopRequireDefault(require2("@babel/runtime/regenerator")); require2("core-js/modules/es.object.assign.js"); var _asyncToGenerator2 = _interopRequireDefault(require2("@babel/runtime/helpers/asyncToGenerator")); Object.defineProperty(exports3, "__esModule", { value: true }); exports3.listBucketInventory = void 0; var checkBucketName_1 = require2("../utils/checkBucketName"); var formatInventoryConfig_1 = require2("../utils/formatInventoryConfig"); function listBucketInventory(_x) { return _listBucketInventory.apply(this, arguments); } function _listBucketInventory() { _listBucketInventory = (0, _asyncToGenerator2.default)(_regenerator.default.mark(function _callee(bucketName) { var options, continuationToken, subres, params, result, data, res, status, _args = arguments; return _regenerator.default.wrap(function _callee$(_context) { while (1) { switch (_context.prev = _context.next) { case 0: options = _args.length > 1 && _args[1] !== void 0 ? _args[1] : {}; continuationToken = options.continuationToken; subres = Object.assign({ inventory: "" }, continuationToken && { "continuation-token": continuationToken }, options.subres); checkBucketName_1.checkBucketName(bucketName); params = this._bucketRequestParams("GET", bucketName, subres, options); params.successStatuses = [200]; params.xmlResponse = true; _context.next = 9; return this.request(params); case 9: result = _context.sent; data = result.data, res = result.res, status = result.status; return _context.abrupt("return", { isTruncated: data.IsTruncated === "true", nextContinuationToken: data.NextContinuationToken, inventoryList: formatInventoryConfig_1.formatInventoryConfig(data.InventoryConfiguration, true), status, res }); case 12: case "end": return _context.stop(); } } }, _callee, this); })); return _listBucketInventory.apply(this, arguments); } exports3.listBucketInventory = listBucketInventory; }, { "../utils/checkBucketName": 51, "../utils/formatInventoryConfig": 60, "@babel/runtime/helpers/asyncToGenerator": 77, "@babel/runtime/helpers/interopRequireDefault": 78, "@babel/runtime/regenerator": 80, "core-js/modules/es.object.assign.js": 287 }], 20: [function(require2, module3, exports3) { "use strict"; var _interopRequireDefault = require2("@babel/runtime/helpers/interopRequireDefault"); var _regenerator = _interopRequireDefault(require2("@babel/runtime/regenerator")); require2("core-js/modules/es.object.assign.js"); require2("core-js/modules/es.array.concat.js"); var _asyncToGenerator2 = _interopRequireDefault(require2("@babel/runtime/helpers/asyncToGenerator")); Object.defineProperty(exports3, "__esModule", { value: true }); exports3.putBucketInventory = void 0; var checkBucketName_1 = require2("../utils/checkBucketName"); var obj2xml_1 = require2("../utils/obj2xml"); function putBucketInventory(_x, _x2) { return _putBucketInventory.apply(this, arguments); } function _putBucketInventory() { _putBucketInventory = (0, _asyncToGenerator2.default)(_regenerator.default.mark(function _callee(bucketName, inventory) { var options, subres, OSSBucketDestination, optionalFields, includedObjectVersions, destinationBucketPrefix, rolePrefix, paramXMLObj, paramXML, params, result, _args = arguments; return _regenerator.default.wrap(function _callee$(_context) { while (1) { switch (_context.prev = _context.next) { case 0: options = _args.length > 2 && _args[2] !== void 0 ? _args[2] : {}; subres = Object.assign({ inventory: "", inventoryId: inventory.id }, options.subres); checkBucketName_1.checkBucketName(bucketName); OSSBucketDestination = inventory.OSSBucketDestination, optionalFields = inventory.optionalFields, includedObjectVersions = inventory.includedObjectVersions; destinationBucketPrefix = "acs:oss:::"; rolePrefix = "acs:ram::".concat(OSSBucketDestination.accountId, ":role/"); paramXMLObj = { InventoryConfiguration: { Id: inventory.id, IsEnabled: inventory.isEnabled, Filter: { Prefix: inventory.prefix || "" }, Destination: { OSSBucketDestination: { Format: OSSBucketDestination.format, AccountId: OSSBucketDestination.accountId, RoleArn: "".concat(rolePrefix).concat(OSSBucketDestination.rolename), Bucket: "".concat(destinationBucketPrefix).concat(OSSBucketDestination.bucket), Prefix: OSSBucketDestination.prefix || "", Encryption: OSSBucketDestination.encryption || "" } }, Schedule: { Frequency: inventory.frequency }, IncludedObjectVersions: includedObjectVersions, OptionalFields: { Field: (optionalFields === null || optionalFields === void 0 ? void 0 : optionalFields.field) || [] } } }; paramXML = obj2xml_1.obj2xml(paramXMLObj, { headers: true, firstUpperCase: true }); params = this._bucketRequestParams("PUT", bucketName, subres, options); params.successStatuses = [200]; params.mime = "xml"; params.content = paramXML; _context.next = 14; return this.request(params); case 14: result = _context.sent; return _context.abrupt("return", { status: result.status, res: result.res }); case 16: case "end": return _context.stop(); } } }, _callee, this); })); return _putBucketInventory.apply(this, arguments); } exports3.putBucketInventory = putBucketInventory; }, { "../utils/checkBucketName": 51, "../utils/obj2xml": 72, "@babel/runtime/helpers/asyncToGenerator": 77, "@babel/runtime/helpers/interopRequireDefault": 78, "@babel/runtime/regenerator": 80, "core-js/modules/es.array.concat.js": 272, "core-js/modules/es.object.assign.js": 287 }], 21: [function(require2, module3, exports3) { "use strict"; var _interopRequireDefault = require2("@babel/runtime/helpers/interopRequireDefault"); var _regenerator = _interopRequireDefault(require2("@babel/runtime/regenerator")); require2("core-js/modules/es.object.to-string.js"); require2("core-js/modules/web.dom-collections.for-each.js"); require2("core-js/modules/es.regexp.exec.js"); require2("core-js/modules/es.array.includes.js"); var _asyncToGenerator2 = _interopRequireDefault(require2("@babel/runtime/helpers/asyncToGenerator")); var _require = require2("../utils/checkBucketName"), _checkBucketName = _require.checkBucketName; var _require2 = require2("../utils/isArray"), isArray = _require2.isArray; var _require3 = require2("../utils/deepCopy"), deepCopy = _require3.deepCopy; var _require4 = require2("../utils/isObject"), isObject = _require4.isObject; var _require5 = require2("../utils/obj2xml"), obj2xml = _require5.obj2xml; var _require6 = require2("../utils/checkObjectTag"), checkObjectTag = _require6.checkObjectTag; var _require7 = require2("../utils/getStrBytesCount"), getStrBytesCount = _require7.getStrBytesCount; var proto = exports3; proto.putBucketLifecycle = function() { var _putBucketLifecycle = (0, _asyncToGenerator2.default)(_regenerator.default.mark(function _callee(name, rules, options) { var params, Rule, paramXMLObj, paramXML, result; return _regenerator.default.wrap(function _callee$(_context) { while (1) { switch (_context.prev = _context.next) { case 0: _checkBucketName(name); if (isArray(rules)) { _context.next = 3; break; } throw new Error("rules must be Array"); case 3: params = this._bucketRequestParams("PUT", name, "lifecycle", options); Rule = []; paramXMLObj = { LifecycleConfiguration: { Rule } }; rules.forEach(function(_) { defaultDaysAndDate2Expiration(_); checkRule(_); if (_.id) { _.ID = _.id; delete _.id; } Rule.push(_); }); paramXML = obj2xml(paramXMLObj, { headers: true, firstUpperCase: true }); params.content = paramXML; params.mime = "xml"; params.successStatuses = [200]; _context.next = 13; return this.request(params); case 13: result = _context.sent; return _context.abrupt("return", { res: result.res }); case 15: case "end": return _context.stop(); } } }, _callee, this); })); function putBucketLifecycle(_x, _x2, _x3) { return _putBucketLifecycle.apply(this, arguments); } return putBucketLifecycle; }(); function defaultDaysAndDate2Expiration(obj) { if (obj.days) { obj.expiration = { days: obj.days }; } if (obj.date) { obj.expiration = { createdBeforeDate: obj.date }; } } function checkDaysAndDate(obj, key) { var days = obj.days, createdBeforeDate = obj.createdBeforeDate; if (!days && !createdBeforeDate) { throw new Error("".concat(key, " must includes days or createdBeforeDate")); } else if (days && !/^[1-9][0-9]*$/.test(days)) { throw new Error("days must be a positive integer"); } else if (createdBeforeDate && !/\d{4}-\d{2}-\d{2}T00:00:00.000Z/.test(createdBeforeDate)) { throw new Error("createdBeforeDate must be date and conform to iso8601 format"); } } function handleCheckTag(tag) { if (!isArray(tag) && !isObject(tag)) { throw new Error("tag must be Object or Array"); } tag = isObject(tag) ? [tag] : tag; var tagObj = {}; var tagClone = deepCopy(tag); tagClone.forEach(function(v) { tagObj[v.key] = v.value; }); checkObjectTag(tagObj); } function checkRule(rule) { if (rule.id && getStrBytesCount(rule.id) > 255) throw new Error("ID is composed of 255 bytes at most"); if (rule.prefix === void 0) throw new Error("Rule must includes prefix"); if (!["Enabled", "Disabled"].includes(rule.status)) throw new Error("Status must be Enabled or Disabled"); if (rule.transition) { if (!["IA", "Archive"].includes(rule.transition.storageClass)) throw new Error("StorageClass must be IA or Archive"); checkDaysAndDate(rule.transition, "Transition"); } if (rule.expiration) { if (!rule.expiration.expiredObjectDeleteMarker) { checkDaysAndDate(rule.expiration, "Expiration"); } else if (rule.expiration.days || rule.expiration.createdBeforeDate) { throw new Error("expiredObjectDeleteMarker cannot be used with days or createdBeforeDate"); } } if (rule.abortMultipartUpload) { checkDaysAndDate(rule.abortMultipartUpload, "AbortMultipartUpload"); } if (!rule.expiration && !rule.abortMultipartUpload && !rule.transition && !rule.noncurrentVersionTransition) { throw new Error("Rule must includes expiration or abortMultipartUpload or transition or noncurrentVersionTransition"); } if (rule.tag) { if (rule.abortMultipartUpload) { throw new Error("Tag cannot be used with abortMultipartUpload"); } handleCheckTag(rule.tag); } } }, { "../utils/checkBucketName": 51, "../utils/checkObjectTag": 54, "../utils/deepCopy": 58, "../utils/getStrBytesCount": 62, "../utils/isArray": 63, "../utils/isObject": 70, "../utils/obj2xml": 72, "@babel/runtime/helpers/asyncToGenerator": 77, "@babel/runtime/helpers/interopRequireDefault": 78, "@babel/runtime/regenerator": 80, "core-js/modules/es.array.includes.js": 277, "core-js/modules/es.object.to-string.js": 291, "core-js/modules/es.regexp.exec.js": 300, "core-js/modules/web.dom-collections.for-each.js": 339 }], 22: [function(require2, module3, exports3) { "use strict"; var _interopRequireDefault = require2("@babel/runtime/helpers/interopRequireDefault"); var _regenerator = _interopRequireDefault(require2("@babel/runtime/regenerator")); require2("core-js/modules/es.array.includes.js"); var _asyncToGenerator2 = _interopRequireDefault(require2("@babel/runtime/helpers/asyncToGenerator")); var _require = require2("../utils/checkBucketName"), _checkBucketName = _require.checkBucketName; var _require2 = require2("../utils/obj2xml"), obj2xml = _require2.obj2xml; var proto = exports3; proto.putBucketVersioning = function() { var _putBucketVersioning = (0, _asyncToGenerator2.default)(_regenerator.default.mark(function _callee(name, status) { var options, params, paramXMLObj, result, _args = arguments; return _regenerator.default.wrap(function _callee$(_context) { while (1) { switch (_context.prev = _context.next) { case 0: options = _args.length > 2 && _args[2] !== void 0 ? _args[2] : {}; _checkBucketName(name); if (["Enabled", "Suspended"].includes(status)) { _context.next = 4; break; } throw new Error("status must be Enabled or Suspended"); case 4: params = this._bucketRequestParams("PUT", name, "versioning", options); paramXMLObj = { VersioningConfiguration: { Status: status } }; params.mime = "xml"; params.content = obj2xml(paramXMLObj, { headers: true }); _context.next = 10; return this.request(params); case 10: result = _context.sent; return _context.abrupt("return", { res: result.res, status: result.status }); case 12: case "end": return _context.stop(); } } }, _callee, this); })); function putBucketVersioning(_x, _x2) { return _putBucketVersioning.apply(this, arguments); } return putBucketVersioning; }(); }, { "../utils/checkBucketName": 51, "../utils/obj2xml": 72, "@babel/runtime/helpers/asyncToGenerator": 77, "@babel/runtime/helpers/interopRequireDefault": 78, "@babel/runtime/regenerator": 80, "core-js/modules/es.array.includes.js": 277 }], 23: [function(require2, module3, exports3) { "use strict"; var _interopRequireDefault = require2("@babel/runtime/helpers/interopRequireDefault"); var _regenerator = _interopRequireDefault(require2("@babel/runtime/regenerator")); var _asyncToGenerator2 = _interopRequireDefault(require2("@babel/runtime/helpers/asyncToGenerator")); var _require = require2("../utils/checkBucketName"), _checkBucketName = _require.checkBucketName; var _require2 = require2("../utils/obj2xml"), obj2xml = _require2.obj2xml; var _require3 = require2("../utils/isArray"), isArray = _require3.isArray; var proto = exports3; proto.putBucketWebsite = function() { var _putBucketWebsite = (0, _asyncToGenerator2.default)(_regenerator.default.mark(function _callee(name) { var config, options, params, IndexDocument, WebsiteConfiguration, website, result, _args = arguments; return _regenerator.default.wrap(function _callee$(_context) { while (1) { switch (_context.prev = _context.next) { case 0: config = _args.length > 1 && _args[1] !== void 0 ? _args[1] : {}; options = _args.length > 2 ? _args[2] : void 0; _checkBucketName(name); params = this._bucketRequestParams("PUT", name, "website", options); IndexDocument = { Suffix: config.index || "index.html" }; WebsiteConfiguration = { IndexDocument }; website = { WebsiteConfiguration }; if (config.supportSubDir) { IndexDocument.SupportSubDir = config.supportSubDir; } if (config.type) { IndexDocument.Type = config.type; } if (config.error) { WebsiteConfiguration.ErrorDocument = { Key: config.error }; } if (!(config.routingRules !== void 0)) { _context.next = 14; break; } if (isArray(config.routingRules)) { _context.next = 13; break; } throw new Error("RoutingRules must be Array"); case 13: WebsiteConfiguration.RoutingRules = { RoutingRule: config.routingRules }; case 14: website = obj2xml(website); params.content = website; params.mime = "xml"; params.successStatuses = [200]; _context.next = 20; return this.request(params); case 20: result = _context.sent; return _context.abrupt("return", { res: result.res }); case 22: case "end": return _context.stop(); } } }, _callee, this); })); function putBucketWebsite(_x) { return _putBucketWebsite.apply(this, arguments); } return putBucketWebsite; }(); }, { "../utils/checkBucketName": 51, "../utils/isArray": 63, "../utils/obj2xml": 72, "@babel/runtime/helpers/asyncToGenerator": 77, "@babel/runtime/helpers/interopRequireDefault": 78, "@babel/runtime/regenerator": 80 }], 24: [function(require2, module3, exports3) { (function(Buffer) { (function() { "use strict"; require2("core-js/modules/es.object.to-string.js"); require2("core-js/modules/es.regexp.to-string.js"); require2("core-js/modules/web.dom-collections.for-each.js"); require2("core-js/modules/es.object.keys.js"); exports3.encodeCallback = function encodeCallback(reqParams, options) { reqParams.headers = reqParams.headers || {}; if (!Object.prototype.hasOwnProperty.call(reqParams.headers, "x-oss-callback")) { if (options.callback) { var json = { callbackUrl: encodeURI(options.callback.url), callbackBody: options.callback.body }; if (options.callback.host) { json.callbackHost = options.callback.host; } if (options.callback.contentType) { json.callbackBodyType = options.callback.contentType; } var callback = Buffer.from(JSON.stringify(json)).toString("base64"); reqParams.headers["x-oss-callback"] = callback; if (options.callback.customValue) { var callbackVar = {}; Object.keys(options.callback.customValue).forEach(function(key) { callbackVar["x:".concat(key)] = options.callback.customValue[key].toString(); }); reqParams.headers["x-oss-callback-var"] = Buffer.from(JSON.stringify(callbackVar)).toString("base64"); } } } }; }).call(this); }).call(this, require2("buffer").Buffer); }, { "buffer": 90, "core-js/modules/es.object.keys.js": 290, "core-js/modules/es.object.to-string.js": 291, "core-js/modules/es.regexp.to-string.js": 301, "core-js/modules/web.dom-collections.for-each.js": 339 }], 25: [function(require2, module3, exports3) { "use strict"; require2("core-js/modules/es.array.concat.js"); require2("core-js/modules/es.regexp.exec.js"); require2("core-js/modules/es.string.replace.js"); require2("core-js/modules/es.object.to-string.js"); require2("core-js/modules/web.dom-collections.for-each.js"); var __importDefault = function(mod) { return mod && mod.__esModule ? mod : { "default": mod }; }; Object.defineProperty(exports3, "__esModule", { value: true }); exports3.getReqUrl = void 0; var copy_to_1 = __importDefault(require2("copy-to")); var url_1 = __importDefault(require2("url")); var merge_descriptors_1 = __importDefault(require2("merge-descriptors")); var is_type_of_1 = __importDefault(require2("is-type-of")); var isIP_1 = require2("../utils/isIP"); var checkConfigValid_1 = require2("../utils/checkConfigValid"); function getReqUrl(params) { var ep = {}; var isCname = this.options.cname; checkConfigValid_1.checkConfigValid(this.options.endpoint, "endpoint"); copy_to_1.default(this.options.endpoint, false).to(ep); if (params.bucket && !isCname && !isIP_1.isIP(ep.hostname) && !this.options.sldEnable) { ep.host = "".concat(params.bucket, ".").concat(ep.host); } var resourcePath = "/"; if (params.bucket && this.options.sldEnable) { resourcePath += "".concat(params.bucket, "/"); } if (params.object) { resourcePath += this._escape(params.object).replace(/\+/g, "%2B"); } ep.pathname = resourcePath; var query = {}; if (params.query) { merge_descriptors_1.default(query, params.query); } if (params.subres) { var subresAsQuery = {}; if (is_type_of_1.default.string(params.subres)) { subresAsQuery[params.subres] = ""; } else if (is_type_of_1.default.array(params.subres)) { params.subres.forEach(function(k) { subresAsQuery[k] = ""; }); } else { subresAsQuery = params.subres; } merge_descriptors_1.default(query, subresAsQuery); } ep.query = query; return url_1.default.format(ep); } exports3.getReqUrl = getReqUrl; }, { "../utils/checkConfigValid": 52, "../utils/isIP": 69, "copy-to": 94, "core-js/modules/es.array.concat.js": 272, "core-js/modules/es.object.to-string.js": 291, "core-js/modules/es.regexp.exec.js": 300, "core-js/modules/es.string.replace.js": 305, "core-js/modules/web.dom-collections.for-each.js": 339, "is-type-of": 466, "merge-descriptors": 372, "url": 472 }], 26: [function(require2, module3, exports3) { "use strict"; require2("core-js/modules/es.array.concat.js"); require2("core-js/modules/es.object.assign.js"); require2("core-js/modules/es.string.trim.js"); var ms = require2("humanize-ms"); var urlutil = require2("url"); var _require = require2("../utils/checkBucketName"), _checkBucketName = _require.checkBucketName; var _require2 = require2("../utils/setRegion"), setRegion = _require2.setRegion; var _require3 = require2("../utils/checkConfigValid"), checkConfigValid = _require3.checkConfigValid; function setEndpoint(endpoint, secure) { checkConfigValid(endpoint, "endpoint"); var url = urlutil.parse(endpoint); if (!url.protocol) { url = urlutil.parse("http".concat(secure ? "s" : "", "://").concat(endpoint)); } if (url.protocol !== "http:" && url.protocol !== "https:") { throw new Error("Endpoint protocol must be http or https."); } return url; } module3.exports = function(options) { if (!options || !options.accessKeyId || !options.accessKeySecret) { throw new Error("require accessKeyId, accessKeySecret"); } if (options.stsToken && !options.refreshSTSToken && !options.refreshSTSTokenInterval) { console.warn("It's recommended to set 'refreshSTSToken' and 'refreshSTSTokenInterval' to refresh stsToken、accessKeyId、accessKeySecret automatically when sts token has expired"); } if (options.bucket) { _checkBucketName(options.bucket); } var opts = Object.assign({ region: "oss-cn-hangzhou", internal: false, secure: false, timeout: 6e4, bucket: null, endpoint: null, cname: false, isRequestPay: false, sldEnable: false, headerEncoding: "utf-8", refreshSTSToken: null, refreshSTSTokenInterval: 6e4 * 5, retryMax: 0 }, options); opts.accessKeyId = opts.accessKeyId.trim(); opts.accessKeySecret = opts.accessKeySecret.trim(); if (opts.timeout) { opts.timeout = ms(opts.timeout); } if (opts.endpoint) { opts.endpoint = setEndpoint(opts.endpoint, opts.secure); } else if (opts.region) { opts.endpoint = setRegion(opts.region, opts.internal, opts.secure); } else { throw new Error("require options.endpoint or options.region"); } opts.inited = true; return opts; }; }, { "../utils/checkBucketName": 51, "../utils/checkConfigValid": 52, "../utils/setRegion": 75, "core-js/modules/es.array.concat.js": 272, "core-js/modules/es.object.assign.js": 287, "core-js/modules/es.string.trim.js": 308, "humanize-ms": 356, "url": 472 }], 27: [function(require2, module3, exports3) { "use strict"; var merge = require2("merge-descriptors"); var proto = exports3; merge(proto, require2("./processObjectSave")); }, { "./processObjectSave": 28, "merge-descriptors": 372 }], 28: [function(require2, module3, exports3) { "use strict"; var _interopRequireDefault = require2("@babel/runtime/helpers/interopRequireDefault"); var _regenerator = _interopRequireDefault(require2("@babel/runtime/regenerator")); require2("core-js/modules/es.array.concat.js"); var _asyncToGenerator2 = _interopRequireDefault(require2("@babel/runtime/helpers/asyncToGenerator")); var _require = require2("../utils/checkBucketName"), _checkBucketName = _require.checkBucketName; var querystring2 = require2("querystring"); var _require2 = require2("js-base64"), str2Base64 = _require2.Base64.encode; var proto = exports3; proto.processObjectSave = function() { var _processObjectSave = (0, _asyncToGenerator2.default)(_regenerator.default.mark(function _callee(sourceObject, targetObject, process, targetBucket) { var params, bucketParam, content, result; return _regenerator.default.wrap(function _callee$(_context) { while (1) { switch (_context.prev = _context.next) { case 0: checkArgs(sourceObject, "sourceObject"); checkArgs(targetObject, "targetObject"); checkArgs(process, "process"); targetObject = this._objectName(targetObject); if (targetBucket) { _checkBucketName(targetBucket); } params = this._objectRequestParams("POST", sourceObject, { subres: "x-oss-process" }); bucketParam = targetBucket ? ",b_".concat(str2Base64(targetBucket)) : ""; targetObject = str2Base64(targetObject); content = { "x-oss-process": "".concat(process, "|sys/saveas,o_").concat(targetObject).concat(bucketParam) }; params.content = querystring2.stringify(content); _context.next = 12; return this.request(params); case 12: result = _context.sent; return _context.abrupt("return", { res: result.res, status: result.res.status }); case 14: case "end": return _context.stop(); } } }, _callee, this); })); function processObjectSave(_x, _x2, _x3, _x4) { return _processObjectSave.apply(this, arguments); } return processObjectSave; }(); function checkArgs(name, key) { if (!name) { throw new Error("".concat(key, " is required")); } if (typeof name !== "string") { throw new Error("".concat(key, " must be String")); } } }, { "../utils/checkBucketName": 51, "@babel/runtime/helpers/asyncToGenerator": 77, "@babel/runtime/helpers/interopRequireDefault": 78, "@babel/runtime/regenerator": 80, "core-js/modules/es.array.concat.js": 272, "js-base64": 371, "querystring": 385 }], 29: [function(require2, module3, exports3) { "use strict"; var _interopRequireDefault = require2("@babel/runtime/helpers/interopRequireDefault"); var _regenerator = _interopRequireDefault(require2("@babel/runtime/regenerator")); require2("core-js/modules/es.array.concat.js"); require2("core-js/modules/es.function.name.js"); require2("core-js/modules/es.object.to-string.js"); require2("core-js/modules/es.promise.js"); require2("core-js/modules/es.array.from.js"); require2("core-js/modules/es.string.iterator.js"); require2("core-js/modules/es.array.map.js"); require2("core-js/modules/es.array.filter.js"); require2("core-js/modules/es.array.find.js"); require2("core-js/modules/es.regexp.to-string.js"); var _asyncToGenerator2 = _interopRequireDefault(require2("@babel/runtime/helpers/asyncToGenerator")); var debug = require2("debug")("ali-oss:multipart-copy"); var copy = require2("copy-to"); var proto = exports3; proto.uploadPartCopy = function() { var _uploadPartCopy = (0, _asyncToGenerator2.default)(_regenerator.default.mark(function _callee(name, uploadId, partNo, range, sourceData) { var options, versionId, copySource, params, result, _args = arguments; return _regenerator.default.wrap(function _callee$(_context) { while (1) { switch (_context.prev = _context.next) { case 0: options = _args.length > 5 && _args[5] !== void 0 ? _args[5] : {}; options.headers = options.headers || {}; versionId = options.versionId || options.subres && options.subres.versionId || null; if (versionId) { copySource = "/".concat(sourceData.sourceBucketName, "/").concat(encodeURIComponent(sourceData.sourceKey), "?versionId=").concat(versionId); } else { copySource = "/".concat(sourceData.sourceBucketName, "/").concat(encodeURIComponent(sourceData.sourceKey)); } options.headers["x-oss-copy-source"] = copySource; if (range) { options.headers["x-oss-copy-source-range"] = "bytes=".concat(range); } options.subres = { partNumber: partNo, uploadId }; params = this._objectRequestParams("PUT", name, options); params.mime = options.mime; params.successStatuses = [200]; _context.next = 12; return this.request(params); case 12: result = _context.sent; return _context.abrupt("return", { name, etag: result.res.headers.etag, res: result.res }); case 14: case "end": return _context.stop(); } } }, _callee, this); })); function uploadPartCopy(_x, _x2, _x3, _x4, _x5) { return _uploadPartCopy.apply(this, arguments); } return uploadPartCopy; }(); proto.multipartUploadCopy = function() { var _multipartUploadCopy = (0, _asyncToGenerator2.default)(_regenerator.default.mark(function _callee2(name, sourceData) { var options, _options$versionId, versionId, metaOpt, objectMeta, fileSize, minPartSize, copySize, init, uploadId, partSize, checkpoint, _args2 = arguments; return _regenerator.default.wrap(function _callee2$(_context2) { while (1) { switch (_context2.prev = _context2.next) { case 0: options = _args2.length > 2 && _args2[2] !== void 0 ? _args2[2] : {}; this.resetCancelFlag(); _options$versionId = options.versionId, versionId = _options$versionId === void 0 ? null : _options$versionId; metaOpt = { versionId }; _context2.next = 6; return this._getObjectMeta(sourceData.sourceBucketName, sourceData.sourceKey, metaOpt); case 6: objectMeta = _context2.sent; fileSize = objectMeta.res.headers["content-length"]; sourceData.startOffset = sourceData.startOffset || 0; sourceData.endOffset = sourceData.endOffset || fileSize; if (!(options.checkpoint && options.checkpoint.uploadId)) { _context2.next = 14; break; } _context2.next = 13; return this._resumeMultipartCopy(options.checkpoint, sourceData, options); case 13: return _context2.abrupt("return", _context2.sent); case 14: minPartSize = 100 * 1024; copySize = sourceData.endOffset - sourceData.startOffset; if (!(copySize < minPartSize)) { _context2.next = 18; break; } throw new Error("copySize must not be smaller than ".concat(minPartSize)); case 18: if (!(options.partSize && options.partSize < minPartSize)) { _context2.next = 20; break; } throw new Error("partSize must not be smaller than ".concat(minPartSize)); case 20: _context2.next = 22; return this.initMultipartUpload(name, options); case 22: init = _context2.sent; uploadId = init.uploadId; partSize = this._getPartSize(copySize, options.partSize); checkpoint = { name, copySize, partSize, uploadId, doneParts: [] }; if (!(options && options.progress)) { _context2.next = 29; break; } _context2.next = 29; return options.progress(0, checkpoint, init.res); case 29: _context2.next = 31; return this._resumeMultipartCopy(checkpoint, sourceData, options); case 31: return _context2.abrupt("return", _context2.sent); case 32: case "end": return _context2.stop(); } } }, _callee2, this); })); function multipartUploadCopy(_x6, _x7) { return _multipartUploadCopy.apply(this, arguments); } return multipartUploadCopy; }(); proto._resumeMultipartCopy = function() { var _resumeMultipartCopy2 = (0, _asyncToGenerator2.default)(_regenerator.default.mark(function _callee4(checkpoint, sourceData, options) { var _options$versionId2, versionId, metaOpt, copySize, partSize, uploadId, doneParts, name, partOffs, numParts, uploadPartCopyOptions, uploadPartJob, all, done, todo, defaultParallel, parallel, i, errors, abortEvent, err; return _regenerator.default.wrap(function _callee4$(_context4) { while (1) { switch (_context4.prev = _context4.next) { case 0: if (!this.isCancel()) { _context4.next = 2; break; } throw this._makeCancelEvent(); case 2: _options$versionId2 = options.versionId, versionId = _options$versionId2 === void 0 ? null : _options$versionId2; metaOpt = { versionId }; copySize = checkpoint.copySize, partSize = checkpoint.partSize, uploadId = checkpoint.uploadId, doneParts = checkpoint.doneParts, name = checkpoint.name; partOffs = this._divideMultipartCopyParts(copySize, partSize, sourceData.startOffset); numParts = partOffs.length; uploadPartCopyOptions = { headers: {} }; if (options.copyheaders) { copy(options.copyheaders).to(uploadPartCopyOptions.headers); } if (versionId) { copy(metaOpt).to(uploadPartCopyOptions); } uploadPartJob = function uploadPartJob2(self2, partNo, source) { return new Promise(function() { var _ref = (0, _asyncToGenerator2.default)(_regenerator.default.mark(function _callee3(resolve, reject) { var pi, range, result; return _regenerator.default.wrap(function _callee3$(_context3) { while (1) { switch (_context3.prev = _context3.next) { case 0: _context3.prev = 0; if (self2.isCancel()) { _context3.next = 22; break; } pi = partOffs[partNo - 1]; range = "".concat(pi.start, "-").concat(pi.end - 1); _context3.prev = 4; _context3.next = 7; return self2.uploadPartCopy(name, uploadId, partNo, range, source, uploadPartCopyOptions); case 7: result = _context3.sent; _context3.next = 15; break; case 10: _context3.prev = 10; _context3.t0 = _context3["catch"](4); if (!(_context3.t0.status === 404)) { _context3.next = 14; break; } throw self2._makeAbortEvent(); case 14: throw _context3.t0; case 15: if (self2.isCancel()) { _context3.next = 22; break; } debug("content-range ".concat(result.res.headers["content-range"])); doneParts.push({ number: partNo, etag: result.res.headers.etag }); checkpoint.doneParts = doneParts; if (!(options && options.progress)) { _context3.next = 22; break; } _context3.next = 22; return options.progress(doneParts.length / numParts, checkpoint, result.res); case 22: resolve(); _context3.next = 29; break; case 25: _context3.prev = 25; _context3.t1 = _context3["catch"](0); _context3.t1.partNum = partNo; reject(_context3.t1); case 29: case "end": return _context3.stop(); } } }, _callee3, null, [[0, 25], [4, 10]]); })); return function(_x11, _x12) { return _ref.apply(this, arguments); }; }()); }; all = Array.from(new Array(numParts), function(x, i2) { return i2 + 1; }); done = doneParts.map(function(p) { return p.number; }); todo = all.filter(function(p) { return done.indexOf(p) < 0; }); defaultParallel = 5; parallel = options.parallel || defaultParallel; if (!(this.checkBrowserAndVersion("Internet Explorer", "10") || parallel === 1)) { _context4.next = 28; break; } i = 0; case 18: if (!(i < todo.length)) { _context4.next = 26; break; } if (!this.isCancel()) { _context4.next = 21; break; } throw this._makeCancelEvent(); case 21: _context4.next = 23; return uploadPartJob(this, todo[i], sourceData); case 23: i++; _context4.next = 18; break; case 26: _context4.next = 40; break; case 28: _context4.next = 30; return this._parallelNode(todo, parallel, uploadPartJob, sourceData); case 30: errors = _context4.sent; abortEvent = errors.find(function(err2) { return err2.name === "abort"; }); if (!abortEvent) { _context4.next = 34; break; } throw abortEvent; case 34: if (!this.isCancel()) { _context4.next = 36; break; } throw this._makeCancelEvent(); case 36: if (!(errors && errors.length > 0)) { _context4.next = 40; break; } err = errors[0]; err.message = "Failed to copy some parts with error: ".concat(err.toString(), " part_num: ").concat(err.partNum); throw err; case 40: _context4.next = 42; return this.completeMultipartUpload(name, uploadId, doneParts, options); case 42: return _context4.abrupt("return", _context4.sent); case 43: case "end": return _context4.stop(); } } }, _callee4, this); })); function _resumeMultipartCopy(_x8, _x9, _x10) { return _resumeMultipartCopy2.apply(this, arguments); } return _resumeMultipartCopy; }(); proto._divideMultipartCopyParts = function _divideMultipartCopyParts(fileSize, partSize, startOffset) { var numParts = Math.ceil(fileSize / partSize); var partOffs = []; for (var i = 0; i < numParts; i++) { var start = partSize * i + startOffset; var end = Math.min(start + partSize, fileSize + startOffset); partOffs.push({ start, end }); } return partOffs; }; proto._getObjectMeta = function() { var _getObjectMeta2 = (0, _asyncToGenerator2.default)(_regenerator.default.mark(function _callee5(bucket, name, options) { var currentBucket, data; return _regenerator.default.wrap(function _callee5$(_context5) { while (1) { switch (_context5.prev = _context5.next) { case 0: currentBucket = this.getBucket(); this.setBucket(bucket); _context5.next = 4; return this.head(name, options); case 4: data = _context5.sent; this.setBucket(currentBucket); return _context5.abrupt("return", data); case 7: case "end": return _context5.stop(); } } }, _callee5, this); })); function _getObjectMeta(_x13, _x14, _x15) { return _getObjectMeta2.apply(this, arguments); } return _getObjectMeta; }(); }, { "@babel/runtime/helpers/asyncToGenerator": 77, "@babel/runtime/helpers/interopRequireDefault": 78, "@babel/runtime/regenerator": 80, "copy-to": 94, "core-js/modules/es.array.concat.js": 272, "core-js/modules/es.array.filter.js": 274, "core-js/modules/es.array.find.js": 275, "core-js/modules/es.array.from.js": 276, "core-js/modules/es.array.map.js": 280, "core-js/modules/es.function.name.js": 284, "core-js/modules/es.object.to-string.js": 291, "core-js/modules/es.promise.js": 295, "core-js/modules/es.regexp.to-string.js": 301, "core-js/modules/es.string.iterator.js": 303, "debug": 465 }], 30: [function(require2, module3, exports3) { (function(process) { (function() { "use strict"; var _interopRequireDefault = require2("@babel/runtime/helpers/interopRequireDefault"); var _regenerator = _interopRequireDefault(require2("@babel/runtime/regenerator")); require2("core-js/modules/es.array.map.js"); require2("core-js/modules/es.array.filter.js"); require2("core-js/modules/es.object.to-string.js"); require2("core-js/modules/es.array.sort.js"); require2("core-js/modules/es.array.concat.js"); require2("core-js/modules/es.regexp.to-string.js"); var _asyncToGenerator2 = _interopRequireDefault(require2("@babel/runtime/helpers/asyncToGenerator")); var copy = require2("copy-to"); var callback = require2("./callback"); var _require = require2("./utils/deepCopy"), deepCopyWith = _require.deepCopyWith; var _require2 = require2("./utils/isBuffer"), isBuffer = _require2.isBuffer; var _require3 = require2("./utils/omit"), omit = _require3.omit; var proto = exports3; proto.listUploads = function() { var _listUploads = (0, _asyncToGenerator2.default)(_regenerator.default.mark(function _callee(query, options) { var opt, params, result, uploads; return _regenerator.default.wrap(function _callee$(_context) { while (1) { switch (_context.prev = _context.next) { case 0: options = options || {}; opt = {}; copy(options).to(opt); opt.subres = "uploads"; params = this._objectRequestParams("GET", "", opt); params.query = query; params.xmlResponse = true; params.successStatuses = [200]; _context.next = 10; return this.request(params); case 10: result = _context.sent; uploads = result.data.Upload || []; if (!Array.isArray(uploads)) { uploads = [uploads]; } uploads = uploads.map(function(up) { return { name: up.Key, uploadId: up.UploadId, initiated: up.Initiated }; }); return _context.abrupt("return", { res: result.res, uploads, bucket: result.data.Bucket, nextKeyMarker: result.data.NextKeyMarker, nextUploadIdMarker: result.data.NextUploadIdMarker, isTruncated: result.data.IsTruncated === "true" }); case 15: case "end": return _context.stop(); } } }, _callee, this); })); function listUploads(_x, _x2) { return _listUploads.apply(this, arguments); } return listUploads; }(); proto.listParts = function() { var _listParts = (0, _asyncToGenerator2.default)(_regenerator.default.mark(function _callee2(name, uploadId, query, options) { var opt, params, result; return _regenerator.default.wrap(function _callee2$(_context2) { while (1) { switch (_context2.prev = _context2.next) { case 0: options = options || {}; opt = {}; copy(options).to(opt); opt.subres = { uploadId }; params = this._objectRequestParams("GET", name, opt); params.query = query; params.xmlResponse = true; params.successStatuses = [200]; _context2.next = 10; return this.request(params); case 10: result = _context2.sent; return _context2.abrupt("return", { res: result.res, uploadId: result.data.UploadId, bucket: result.data.Bucket, name: result.data.Key, partNumberMarker: result.data.PartNumberMarker, nextPartNumberMarker: result.data.NextPartNumberMarker, maxParts: result.data.MaxParts, isTruncated: result.data.IsTruncated, parts: result.data.Part || [] }); case 12: case "end": return _context2.stop(); } } }, _callee2, this); })); function listParts(_x3, _x4, _x5, _x6) { return _listParts.apply(this, arguments); } return listParts; }(); proto.abortMultipartUpload = function() { var _abortMultipartUpload = (0, _asyncToGenerator2.default)(_regenerator.default.mark(function _callee3(name, uploadId, options) { var opt, params, result; return _regenerator.default.wrap(function _callee3$(_context3) { while (1) { switch (_context3.prev = _context3.next) { case 0: this._stop(); options = options || {}; opt = {}; copy(options).to(opt); opt.subres = { uploadId }; params = this._objectRequestParams("DELETE", name, opt); params.successStatuses = [204]; _context3.next = 9; return this.request(params); case 9: result = _context3.sent; return _context3.abrupt("return", { res: result.res }); case 11: case "end": return _context3.stop(); } } }, _callee3, this); })); function abortMultipartUpload(_x7, _x8, _x9) { return _abortMultipartUpload.apply(this, arguments); } return abortMultipartUpload; }(); proto.initMultipartUpload = function() { var _initMultipartUpload = (0, _asyncToGenerator2.default)(_regenerator.default.mark(function _callee4(name, options) { var opt, params, result; return _regenerator.default.wrap(function _callee4$(_context4) { while (1) { switch (_context4.prev = _context4.next) { case 0: options = options || {}; opt = {}; copy(options).to(opt); opt.headers = opt.headers || {}; this._convertMetaToHeaders(options.meta, opt.headers); opt.subres = "uploads"; params = this._objectRequestParams("POST", name, opt); params.mime = options.mime; params.xmlResponse = true; params.successStatuses = [200]; _context4.next = 12; return this.request(params); case 12: result = _context4.sent; return _context4.abrupt("return", { res: result.res, bucket: result.data.Bucket, name: result.data.Key, uploadId: result.data.UploadId }); case 14: case "end": return _context4.stop(); } } }, _callee4, this); })); function initMultipartUpload(_x10, _x11) { return _initMultipartUpload.apply(this, arguments); } return initMultipartUpload; }(); proto.uploadPart = function() { var _uploadPart2 = (0, _asyncToGenerator2.default)(_regenerator.default.mark(function _callee5(name, uploadId, partNo, file, start, end, options) { var data, isBrowserEnv; return _regenerator.default.wrap(function _callee5$(_context5) { while (1) { switch (_context5.prev = _context5.next) { case 0: data = { size: end - start }; isBrowserEnv = process && process.browser; if (!isBrowserEnv) { _context5.next = 8; break; } _context5.next = 5; return this._createBuffer(file, start, end); case 5: data.content = _context5.sent; _context5.next = 11; break; case 8: _context5.next = 10; return this._createStream(file, start, end); case 10: data.stream = _context5.sent; case 11: _context5.next = 13; return this._uploadPart(name, uploadId, partNo, data, options); case 13: return _context5.abrupt("return", _context5.sent); case 14: case "end": return _context5.stop(); } } }, _callee5, this); })); function uploadPart(_x12, _x13, _x14, _x15, _x16, _x17, _x18) { return _uploadPart2.apply(this, arguments); } return uploadPart; }(); proto.completeMultipartUpload = function() { var _completeMultipartUpload = (0, _asyncToGenerator2.default)(_regenerator.default.mark(function _callee6(name, uploadId, parts, options) { var completeParts, xml, i, p, opt, params, result, ret; return _regenerator.default.wrap(function _callee6$(_context6) { while (1) { switch (_context6.prev = _context6.next) { case 0: completeParts = parts.concat().sort(function(a, b) { return a.number - b.number; }).filter(function(item, index, arr) { return !index || item.number !== arr[index - 1].number; }); xml = '\n\n'; for (i = 0; i < completeParts.length; i++) { p = completeParts[i]; xml += "\n"; xml += "".concat(p.number, "\n"); xml += "".concat(p.etag, "\n"); xml += "\n"; } xml += ""; options = options || {}; opt = {}; opt = deepCopyWith(options, function(_) { if (isBuffer(_)) return null; }); opt.subres = { uploadId }; opt.headers = omit(opt.headers, ["x-oss-server-side-encryption", "x-oss-storage-class"]); params = this._objectRequestParams("POST", name, opt); callback.encodeCallback(params, opt); params.mime = "xml"; params.content = xml; if (!(params.headers && params.headers["x-oss-callback"])) { params.xmlResponse = true; } params.successStatuses = [200]; _context6.next = 17; return this.request(params); case 17: result = _context6.sent; if (!options.progress) { _context6.next = 21; break; } _context6.next = 21; return options.progress(1, null, result.res); case 21: ret = { res: result.res, bucket: params.bucket, name, etag: result.res.headers.etag }; if (params.headers && params.headers["x-oss-callback"]) { ret.data = JSON.parse(result.data.toString()); } return _context6.abrupt("return", ret); case 24: case "end": return _context6.stop(); } } }, _callee6, this); })); function completeMultipartUpload(_x19, _x20, _x21, _x22) { return _completeMultipartUpload.apply(this, arguments); } return completeMultipartUpload; }(); proto._uploadPart = function() { var _uploadPart3 = (0, _asyncToGenerator2.default)(_regenerator.default.mark(function _callee7(name, uploadId, partNo, data, options) { var opt, params, isBrowserEnv, result; return _regenerator.default.wrap(function _callee7$(_context7) { while (1) { switch (_context7.prev = _context7.next) { case 0: options = options || {}; opt = {}; copy(options).to(opt); opt.headers = opt.headers || {}; opt.headers["Content-Length"] = data.size; opt.headers = omit(opt.headers, ["x-oss-server-side-encryption"]); opt.subres = { partNumber: partNo, uploadId }; params = this._objectRequestParams("PUT", name, opt); params.mime = opt.mime; isBrowserEnv = process && process.browser; isBrowserEnv ? params.content = data.content : params.stream = data.stream; params.successStatuses = [200]; params.disabledMD5 = options.disabledMD5; _context7.next = 15; return this.request(params); case 15: result = _context7.sent; if (result.res.headers.etag) { _context7.next = 18; break; } throw new Error("Please set the etag of expose-headers in OSS \n https://help.aliyun.com/document_detail/32069.html"); case 18: if (data.stream) { data.stream = null; params.stream = null; } return _context7.abrupt("return", { name, etag: result.res.headers.etag, res: result.res }); case 20: case "end": return _context7.stop(); } } }, _callee7, this); })); function _uploadPart(_x23, _x24, _x25, _x26, _x27) { return _uploadPart3.apply(this, arguments); } return _uploadPart; }(); }).call(this); }).call(this, require2("_process")); }, { "./callback": 24, "./utils/deepCopy": 58, "./utils/isBuffer": 65, "./utils/omit": 73, "@babel/runtime/helpers/asyncToGenerator": 77, "@babel/runtime/helpers/interopRequireDefault": 78, "@babel/runtime/regenerator": 80, "_process": 467, "copy-to": 94, "core-js/modules/es.array.concat.js": 272, "core-js/modules/es.array.filter.js": 274, "core-js/modules/es.array.map.js": 280, "core-js/modules/es.array.sort.js": 282, "core-js/modules/es.object.to-string.js": 291, "core-js/modules/es.regexp.to-string.js": 301 }], 31: [function(require2, module3, exports3) { "use strict"; var _interopRequireDefault = require2("@babel/runtime/helpers/interopRequireDefault"); var _regenerator = _interopRequireDefault(require2("@babel/runtime/regenerator")); require2("core-js/modules/es.regexp.exec.js"); var _asyncToGenerator2 = _interopRequireDefault(require2("@babel/runtime/helpers/asyncToGenerator")); var urlutil = require2("url"); var utility = require2("utility"); var copy = require2("copy-to"); var signHelper = require2("../../common/signUtils"); var _require = require2("../utils/isIP"), isIP = _require.isIP; var _require2 = require2("../utils/setSTSToken"), setSTSToken = _require2.setSTSToken; var _require3 = require2("../utils/isFunction"), isFunction = _require3.isFunction; var proto = exports3; proto.asyncSignatureUrl = function() { var _asyncSignatureUrl = (0, _asyncToGenerator2.default)(_regenerator.default.mark(function _callee(name, options) { var strictObjectNameValidation, expires, params, resource, signRes, url, _args = arguments; return _regenerator.default.wrap(function _callee$(_context) { while (1) { switch (_context.prev = _context.next) { case 0: strictObjectNameValidation = _args.length > 2 && _args[2] !== void 0 ? _args[2] : true; if (!isIP(this.options.endpoint.hostname)) { _context.next = 3; break; } throw new Error("can not get the object URL when endpoint is IP"); case 3: if (!(strictObjectNameValidation && /^\?/.test(name))) { _context.next = 5; break; } throw new Error("Invalid object name ".concat(name)); case 5: options = options || {}; name = this._objectName(name); options.method = options.method || "GET"; expires = utility.timestamp() + (options.expires || 1800); params = { bucket: this.options.bucket, object: name }; resource = this._getResource(params); if (!(this.options.stsToken && isFunction(this.options.refreshSTSToken))) { _context.next = 14; break; } _context.next = 14; return setSTSToken.call(this); case 14: if (this.options.stsToken) { options["security-token"] = this.options.stsToken; } signRes = signHelper._signatureForURL(this.options.accessKeySecret, options, resource, expires); url = urlutil.parse(this._getReqUrl(params)); url.query = { OSSAccessKeyId: this.options.accessKeyId, Expires: expires, Signature: signRes.Signature }; copy(signRes.subResource).to(url.query); return _context.abrupt("return", url.format()); case 20: case "end": return _context.stop(); } } }, _callee, this); })); function asyncSignatureUrl(_x, _x2) { return _asyncSignatureUrl.apply(this, arguments); } return asyncSignatureUrl; }(); }, { "../../common/signUtils": 50, "../utils/isFunction": 68, "../utils/isIP": 69, "../utils/setSTSToken": 76, "@babel/runtime/helpers/asyncToGenerator": 77, "@babel/runtime/helpers/interopRequireDefault": 78, "@babel/runtime/regenerator": 80, "copy-to": 94, "core-js/modules/es.regexp.exec.js": 300, "url": 472, "utility": 474 }], 32: [function(require2, module3, exports3) { "use strict"; var _interopRequireDefault = require2("@babel/runtime/helpers/interopRequireDefault"); var _regenerator = _interopRequireDefault(require2("@babel/runtime/regenerator")); require2("core-js/modules/es.object.to-string.js"); require2("core-js/modules/web.dom-collections.for-each.js"); require2("core-js/modules/es.object.keys.js"); require2("core-js/modules/es.array.find.js"); require2("core-js/modules/es.array.includes.js"); require2("core-js/modules/es.array.concat.js"); require2("core-js/modules/es.regexp.exec.js"); require2("core-js/modules/es.string.replace.js"); var _typeof2 = _interopRequireDefault(require2("@babel/runtime/helpers/typeof")); var _asyncToGenerator2 = _interopRequireDefault(require2("@babel/runtime/helpers/asyncToGenerator")); var _require = require2("../utils/checkBucketName"), _checkBucketName = _require.checkBucketName; var proto = exports3; var REPLACE_HEDERS = ["content-type", "content-encoding", "content-language", "content-disposition", "cache-control", "expires"]; proto.copy = function() { var _copy = (0, _asyncToGenerator2.default)(_regenerator.default.mark(function _callee(name, sourceName, bucketName, options) { var params, result, data; return _regenerator.default.wrap(function _callee$(_context) { while (1) { switch (_context.prev = _context.next) { case 0: if ((0, _typeof2.default)(bucketName) === "object") { options = bucketName; } options = options || {}; options.headers = options.headers || {}; Object.keys(options.headers).forEach(function(key) { options.headers["x-oss-copy-source-".concat(key.toLowerCase())] = options.headers[key]; }); if (options.meta || Object.keys(options.headers).find(function(_) { return REPLACE_HEDERS.includes(_.toLowerCase()); })) { options.headers["x-oss-metadata-directive"] = "REPLACE"; } this._convertMetaToHeaders(options.meta, options.headers); sourceName = this._getSourceName(sourceName, bucketName); if (options.versionId) { sourceName = "".concat(sourceName, "?versionId=").concat(options.versionId); } options.headers["x-oss-copy-source"] = sourceName; params = this._objectRequestParams("PUT", name, options); params.xmlResponse = true; params.successStatuses = [200, 304]; _context.next = 14; return this.request(params); case 14: result = _context.sent; data = result.data; if (data) { data = { etag: data.ETag, lastModified: data.LastModified }; } return _context.abrupt("return", { data, res: result.res }); case 18: case "end": return _context.stop(); } } }, _callee, this); })); function copy(_x, _x2, _x3, _x4) { return _copy.apply(this, arguments); } return copy; }(); proto._getSourceName = function _getSourceName(sourceName, bucketName) { if (typeof bucketName === "string") { sourceName = this._objectName(sourceName); } else if (sourceName[0] !== "/") { bucketName = this.options.bucket; } else { bucketName = sourceName.replace(/\/(.+?)(\/.*)/, "$1"); sourceName = sourceName.replace(/(\/.+?\/)(.*)/, "$2"); } _checkBucketName(bucketName); sourceName = encodeURIComponent(sourceName); sourceName = "/".concat(bucketName, "/").concat(sourceName); return sourceName; }; }, { "../utils/checkBucketName": 51, "@babel/runtime/helpers/asyncToGenerator": 77, "@babel/runtime/helpers/interopRequireDefault": 78, "@babel/runtime/helpers/typeof": 79, "@babel/runtime/regenerator": 80, "core-js/modules/es.array.concat.js": 272, "core-js/modules/es.array.find.js": 275, "core-js/modules/es.array.includes.js": 277, "core-js/modules/es.object.keys.js": 290, "core-js/modules/es.object.to-string.js": 291, "core-js/modules/es.regexp.exec.js": 300, "core-js/modules/es.string.replace.js": 305, "core-js/modules/web.dom-collections.for-each.js": 339 }], 33: [function(require2, module3, exports3) { "use strict"; var _interopRequireDefault = require2("@babel/runtime/helpers/interopRequireDefault"); var _regenerator = _interopRequireDefault(require2("@babel/runtime/regenerator")); require2("core-js/modules/es.object.assign.js"); var _asyncToGenerator2 = _interopRequireDefault(require2("@babel/runtime/helpers/asyncToGenerator")); var proto = exports3; proto.delete = function() { var _delete2 = (0, _asyncToGenerator2.default)(_regenerator.default.mark(function _callee(name) { var options, params, result, _args = arguments; return _regenerator.default.wrap(function _callee$(_context) { while (1) { switch (_context.prev = _context.next) { case 0: options = _args.length > 1 && _args[1] !== void 0 ? _args[1] : {}; options.subres = Object.assign({}, options.subres); if (options.versionId) { options.subres.versionId = options.versionId; } params = this._objectRequestParams("DELETE", name, options); params.successStatuses = [204]; _context.next = 7; return this.request(params); case 7: result = _context.sent; return _context.abrupt("return", { res: result.res }); case 9: case "end": return _context.stop(); } } }, _callee, this); })); function _delete(_x) { return _delete2.apply(this, arguments); } return _delete; }(); }, { "@babel/runtime/helpers/asyncToGenerator": 77, "@babel/runtime/helpers/interopRequireDefault": 78, "@babel/runtime/regenerator": 80, "core-js/modules/es.object.assign.js": 287 }], 34: [function(require2, module3, exports3) { "use strict"; var _interopRequireDefault = require2("@babel/runtime/helpers/interopRequireDefault"); var _regenerator = _interopRequireDefault(require2("@babel/runtime/regenerator")); require2("core-js/modules/es.object.assign.js"); var _asyncToGenerator2 = _interopRequireDefault(require2("@babel/runtime/helpers/asyncToGenerator")); var utility = require2("utility"); var _require = require2("../utils/obj2xml"), obj2xml = _require.obj2xml; var proto = exports3; proto.deleteMulti = function() { var _deleteMulti = (0, _asyncToGenerator2.default)(_regenerator.default.mark(function _callee(names) { var options, objects, i, object, _names$i, key, versionId, paramXMLObj, paramXML, params, result, r, deleted, _args = arguments; return _regenerator.default.wrap(function _callee$(_context) { while (1) { switch (_context.prev = _context.next) { case 0: options = _args.length > 1 && _args[1] !== void 0 ? _args[1] : {}; objects = []; if (!(!names || !names.length)) { _context.next = 4; break; } throw new Error("names is required"); case 4: for (i = 0; i < names.length; i++) { object = {}; if (typeof names[i] === "string") { object.Key = utility.escape(this._objectName(names[i])); } else { _names$i = names[i], key = _names$i.key, versionId = _names$i.versionId; object.Key = utility.escape(this._objectName(key)); object.VersionId = versionId; } objects.push(object); } paramXMLObj = { Delete: { Quiet: !!options.quiet, Object: objects } }; paramXML = obj2xml(paramXMLObj, { headers: true }); options.subres = Object.assign({ delete: "" }, options.subres); if (options.versionId) { options.subres.versionId = options.versionId; } params = this._objectRequestParams("POST", "", options); params.mime = "xml"; params.content = paramXML; params.xmlResponse = true; params.successStatuses = [200]; _context.next = 16; return this.request(params); case 16: result = _context.sent; r = result.data; deleted = r && r.Deleted || null; if (deleted) { if (!Array.isArray(deleted)) { deleted = [deleted]; } } return _context.abrupt("return", { res: result.res, deleted: deleted || [] }); case 21: case "end": return _context.stop(); } } }, _callee, this); })); function deleteMulti(_x) { return _deleteMulti.apply(this, arguments); } return deleteMulti; }(); }, { "../utils/obj2xml": 72, "@babel/runtime/helpers/asyncToGenerator": 77, "@babel/runtime/helpers/interopRequireDefault": 78, "@babel/runtime/regenerator": 80, "core-js/modules/es.object.assign.js": 287, "utility": 474 }], 35: [function(require2, module3, exports3) { "use strict"; var _interopRequireDefault = require2("@babel/runtime/helpers/interopRequireDefault"); var _regenerator = _interopRequireDefault(require2("@babel/runtime/regenerator")); require2("core-js/modules/es.object.assign.js"); var _asyncToGenerator2 = _interopRequireDefault(require2("@babel/runtime/helpers/asyncToGenerator")); var proto = exports3; proto.deleteObjectTagging = function() { var _deleteObjectTagging = (0, _asyncToGenerator2.default)(_regenerator.default.mark(function _callee(name) { var options, params, result, _args = arguments; return _regenerator.default.wrap(function _callee$(_context) { while (1) { switch (_context.prev = _context.next) { case 0: options = _args.length > 1 && _args[1] !== void 0 ? _args[1] : {}; options.subres = Object.assign({ tagging: "" }, options.subres); if (options.versionId) { options.subres.versionId = options.versionId; } name = this._objectName(name); params = this._objectRequestParams("DELETE", name, options); params.successStatuses = [204]; _context.next = 8; return this.request(params); case 8: result = _context.sent; return _context.abrupt("return", { status: result.status, res: result.res }); case 10: case "end": return _context.stop(); } } }, _callee, this); })); function deleteObjectTagging(_x) { return _deleteObjectTagging.apply(this, arguments); } return deleteObjectTagging; }(); }, { "@babel/runtime/helpers/asyncToGenerator": 77, "@babel/runtime/helpers/interopRequireDefault": 78, "@babel/runtime/regenerator": 80, "core-js/modules/es.object.assign.js": 287 }], 36: [function(require2, module3, exports3) { "use strict"; require2("core-js/modules/es.array.concat.js"); var urlutil = require2("url"); var _require = require2("../utils/isIP"), isIP = _require.isIP; var proto = exports3; proto.generateObjectUrl = function generateObjectUrl(name, baseUrl) { if (isIP(this.options.endpoint.hostname)) { throw new Error("can not get the object URL when endpoint is IP"); } if (!baseUrl) { baseUrl = this.options.endpoint.format(); var copyUrl = urlutil.parse(baseUrl); var bucket = this.options.bucket; copyUrl.hostname = "".concat(bucket, ".").concat(copyUrl.hostname); copyUrl.host = "".concat(bucket, ".").concat(copyUrl.host); baseUrl = copyUrl.format(); } else if (baseUrl[baseUrl.length - 1] !== "/") { baseUrl += "/"; } return baseUrl + this._escape(this._objectName(name)); }; }, { "../utils/isIP": 69, "core-js/modules/es.array.concat.js": 272, "url": 472 }], 37: [function(require2, module3, exports3) { (function(process) { (function() { "use strict"; var _interopRequireDefault = require2("@babel/runtime/helpers/interopRequireDefault"); var _regenerator = _interopRequireDefault(require2("@babel/runtime/regenerator")); require2("core-js/modules/es.object.assign.js"); var _asyncToGenerator2 = _interopRequireDefault(require2("@babel/runtime/helpers/asyncToGenerator")); var fs = require2("fs"); var is = require2("is-type-of"); var proto = exports3; proto.get = function() { var _get = (0, _asyncToGenerator2.default)(_regenerator.default.mark(function _callee(name, file) { var options, writeStream, needDestroy, isBrowserEnv, responseCacheControl, defaultSubresOptions, result, params, _args = arguments; return _regenerator.default.wrap(function _callee$(_context) { while (1) { switch (_context.prev = _context.next) { case 0: options = _args.length > 2 && _args[2] !== void 0 ? _args[2] : {}; writeStream = null; needDestroy = false; if (is.writableStream(file)) { writeStream = file; } else if (is.string(file)) { writeStream = fs.createWriteStream(file); needDestroy = true; } else { options = file; } options = options || {}; isBrowserEnv = process && process.browser; responseCacheControl = options.responseCacheControl === null ? "" : "no-cache"; defaultSubresOptions = isBrowserEnv && responseCacheControl ? { "response-cache-control": responseCacheControl } : {}; options.subres = Object.assign(defaultSubresOptions, options.subres); if (options.versionId) { options.subres.versionId = options.versionId; } if (options.process) { options.subres["x-oss-process"] = options.process; } _context.prev = 11; params = this._objectRequestParams("GET", name, options); params.writeStream = writeStream; params.successStatuses = [200, 206, 304]; _context.next = 17; return this.request(params); case 17: result = _context.sent; if (needDestroy) { writeStream.destroy(); } _context.next = 28; break; case 21: _context.prev = 21; _context.t0 = _context["catch"](11); if (!needDestroy) { _context.next = 27; break; } writeStream.destroy(); _context.next = 27; return this._deleteFileSafe(file); case 27: throw _context.t0; case 28: return _context.abrupt("return", { res: result.res, content: result.data }); case 29: case "end": return _context.stop(); } } }, _callee, this, [[11, 21]]); })); function get(_x, _x2) { return _get.apply(this, arguments); } return get; }(); }).call(this); }).call(this, require2("_process")); }, { "@babel/runtime/helpers/asyncToGenerator": 77, "@babel/runtime/helpers/interopRequireDefault": 78, "@babel/runtime/regenerator": 80, "_process": 467, "core-js/modules/es.object.assign.js": 287, "fs": 89, "is-type-of": 466 }], 38: [function(require2, module3, exports3) { "use strict"; var _interopRequireDefault = require2("@babel/runtime/helpers/interopRequireDefault"); var _regenerator = _interopRequireDefault(require2("@babel/runtime/regenerator")); require2("core-js/modules/es.object.assign.js"); var _asyncToGenerator2 = _interopRequireDefault(require2("@babel/runtime/helpers/asyncToGenerator")); var proto = exports3; proto.getACL = function() { var _getACL = (0, _asyncToGenerator2.default)(_regenerator.default.mark(function _callee(name) { var options, params, result, _args = arguments; return _regenerator.default.wrap(function _callee$(_context) { while (1) { switch (_context.prev = _context.next) { case 0: options = _args.length > 1 && _args[1] !== void 0 ? _args[1] : {}; options.subres = Object.assign({ acl: "" }, options.subres); if (options.versionId) { options.subres.versionId = options.versionId; } name = this._objectName(name); params = this._objectRequestParams("GET", name, options); params.successStatuses = [200]; params.xmlResponse = true; _context.next = 9; return this.request(params); case 9: result = _context.sent; return _context.abrupt("return", { acl: result.data.AccessControlList.Grant, owner: { id: result.data.Owner.ID, displayName: result.data.Owner.DisplayName }, res: result.res }); case 11: case "end": return _context.stop(); } } }, _callee, this); })); function getACL(_x) { return _getACL.apply(this, arguments); } return getACL; }(); }, { "@babel/runtime/helpers/asyncToGenerator": 77, "@babel/runtime/helpers/interopRequireDefault": 78, "@babel/runtime/regenerator": 80, "core-js/modules/es.object.assign.js": 287 }], 39: [function(require2, module3, exports3) { "use strict"; var _interopRequireDefault = require2("@babel/runtime/helpers/interopRequireDefault"); var _regenerator = _interopRequireDefault(require2("@babel/runtime/regenerator")); require2("core-js/modules/es.regexp.exec.js"); require2("core-js/modules/es.string.replace.js"); require2("core-js/modules/es.object.to-string.js"); require2("core-js/modules/web.dom-collections.for-each.js"); require2("core-js/modules/es.object.keys.js"); require2("core-js/modules/es.object.assign.js"); require2("core-js/modules/es.array.map.js"); require2("core-js/modules/es.number.constructor.js"); var _asyncToGenerator2 = _interopRequireDefault(require2("@babel/runtime/helpers/asyncToGenerator")); var proto = exports3; var _require = require2("../utils/isObject"), isObject = _require.isObject; var _require2 = require2("../utils/isArray"), isArray = _require2.isArray; proto.getBucketVersions = getBucketVersions; proto.listObjectVersions = getBucketVersions; function getBucketVersions() { return _getBucketVersions.apply(this, arguments); } function _getBucketVersions() { _getBucketVersions = (0, _asyncToGenerator2.default)(_regenerator.default.mark(function _callee() { var query, options, params, result, objects, deleteMarker, that, prefixes, _args = arguments; return _regenerator.default.wrap(function _callee$(_context) { while (1) { switch (_context.prev = _context.next) { case 0: query = _args.length > 0 && _args[0] !== void 0 ? _args[0] : {}; options = _args.length > 1 && _args[1] !== void 0 ? _args[1] : {}; if (!(query.versionIdMarker && query.keyMarker === void 0)) { _context.next = 4; break; } throw new Error("A version-id marker cannot be specified without a key marker"); case 4: options.subres = Object.assign({ versions: "" }, options.subres); if (options.versionId) { options.subres.versionId = options.versionId; } params = this._objectRequestParams("GET", "", options); params.xmlResponse = true; params.successStatuses = [200]; params.query = formatQuery(query); _context.next = 12; return this.request(params); case 12: result = _context.sent; objects = result.data.Version || []; deleteMarker = result.data.DeleteMarker || []; that = this; if (objects) { if (!Array.isArray(objects)) { objects = [objects]; } objects = objects.map(function(obj) { return { name: obj.Key, url: that._objectUrl(obj.Key), lastModified: obj.LastModified, isLatest: obj.IsLatest === "true", versionId: obj.VersionId, etag: obj.ETag, type: obj.Type, size: Number(obj.Size), storageClass: obj.StorageClass, owner: { id: obj.Owner.ID, displayName: obj.Owner.DisplayName } }; }); } if (deleteMarker) { if (!isArray(deleteMarker)) { deleteMarker = [deleteMarker]; } deleteMarker = deleteMarker.map(function(obj) { return { name: obj.Key, lastModified: obj.LastModified, versionId: obj.VersionId, owner: { id: obj.Owner.ID, displayName: obj.Owner.DisplayName } }; }); } prefixes = result.data.CommonPrefixes || null; if (prefixes) { if (!isArray(prefixes)) { prefixes = [prefixes]; } prefixes = prefixes.map(function(item) { return item.Prefix; }); } return _context.abrupt("return", { res: result.res, objects, deleteMarker, prefixes, // attirbute of legacy error nextMarker: result.data.NextKeyMarker || null, // attirbute of legacy error NextVersionIdMarker: result.data.NextVersionIdMarker || null, nextKeyMarker: result.data.NextKeyMarker || null, nextVersionIdMarker: result.data.NextVersionIdMarker || null, isTruncated: result.data.IsTruncated === "true" }); case 21: case "end": return _context.stop(); } } }, _callee, this); })); return _getBucketVersions.apply(this, arguments); } function camel2Line(name) { return name.replace(/([A-Z])/g, "-$1").toLowerCase(); } function formatQuery() { var query = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : {}; var obj = {}; if (isObject(query)) { Object.keys(query).forEach(function(key) { obj[camel2Line(key)] = query[key]; }); } return obj; } }, { "../utils/isArray": 63, "../utils/isObject": 70, "@babel/runtime/helpers/asyncToGenerator": 77, "@babel/runtime/helpers/interopRequireDefault": 78, "@babel/runtime/regenerator": 80, "core-js/modules/es.array.map.js": 280, "core-js/modules/es.number.constructor.js": 286, "core-js/modules/es.object.assign.js": 287, "core-js/modules/es.object.keys.js": 290, "core-js/modules/es.object.to-string.js": 291, "core-js/modules/es.regexp.exec.js": 300, "core-js/modules/es.string.replace.js": 305, "core-js/modules/web.dom-collections.for-each.js": 339 }], 40: [function(require2, module3, exports3) { "use strict"; var _interopRequireDefault = require2("@babel/runtime/helpers/interopRequireDefault"); var _regenerator = _interopRequireDefault(require2("@babel/runtime/regenerator")); require2("core-js/modules/es.object.assign.js"); var _asyncToGenerator2 = _interopRequireDefault(require2("@babel/runtime/helpers/asyncToGenerator")); var proto = exports3; proto.getObjectMeta = function() { var _getObjectMeta = (0, _asyncToGenerator2.default)(_regenerator.default.mark(function _callee(name, options) { var params, result; return _regenerator.default.wrap(function _callee$(_context) { while (1) { switch (_context.prev = _context.next) { case 0: options = options || {}; name = this._objectName(name); options.subres = Object.assign({ objectMeta: "" }, options.subres); if (options.versionId) { options.subres.versionId = options.versionId; } params = this._objectRequestParams("HEAD", name, options); params.successStatuses = [200]; _context.next = 8; return this.request(params); case 8: result = _context.sent; return _context.abrupt("return", { status: result.status, res: result.res }); case 10: case "end": return _context.stop(); } } }, _callee, this); })); function getObjectMeta(_x, _x2) { return _getObjectMeta.apply(this, arguments); } return getObjectMeta; }(); }, { "@babel/runtime/helpers/asyncToGenerator": 77, "@babel/runtime/helpers/interopRequireDefault": 78, "@babel/runtime/regenerator": 80, "core-js/modules/es.object.assign.js": 287 }], 41: [function(require2, module3, exports3) { "use strict"; var _interopRequireDefault = require2("@babel/runtime/helpers/interopRequireDefault"); var _regenerator = _interopRequireDefault(require2("@babel/runtime/regenerator")); require2("core-js/modules/es.object.assign.js"); require2("core-js/modules/es.object.to-string.js"); require2("core-js/modules/web.dom-collections.for-each.js"); var _asyncToGenerator2 = _interopRequireDefault(require2("@babel/runtime/helpers/asyncToGenerator")); var proto = exports3; var _require = require2("../utils/isObject"), isObject = _require.isObject; proto.getObjectTagging = function() { var _getObjectTagging = (0, _asyncToGenerator2.default)(_regenerator.default.mark(function _callee(name) { var options, params, result, Tagging, Tag, tag, _args = arguments; return _regenerator.default.wrap(function _callee$(_context) { while (1) { switch (_context.prev = _context.next) { case 0: options = _args.length > 1 && _args[1] !== void 0 ? _args[1] : {}; options.subres = Object.assign({ tagging: "" }, options.subres); if (options.versionId) { options.subres.versionId = options.versionId; } name = this._objectName(name); params = this._objectRequestParams("GET", name, options); params.successStatuses = [200]; _context.next = 8; return this.request(params); case 8: result = _context.sent; _context.next = 11; return this.parseXML(result.data); case 11: Tagging = _context.sent; Tag = Tagging.TagSet.Tag; Tag = Tag && isObject(Tag) ? [Tag] : Tag || []; tag = {}; Tag.forEach(function(item) { tag[item.Key] = item.Value; }); return _context.abrupt("return", { status: result.status, res: result.res, tag }); case 17: case "end": return _context.stop(); } } }, _callee, this); })); function getObjectTagging(_x) { return _getObjectTagging.apply(this, arguments); } return getObjectTagging; }(); }, { "../utils/isObject": 70, "@babel/runtime/helpers/asyncToGenerator": 77, "@babel/runtime/helpers/interopRequireDefault": 78, "@babel/runtime/regenerator": 80, "core-js/modules/es.object.assign.js": 287, "core-js/modules/es.object.to-string.js": 291, "core-js/modules/web.dom-collections.for-each.js": 339 }], 42: [function(require2, module3, exports3) { "use strict"; var _require = require2("../utils/isIP"), isIP = _require.isIP; var proto = exports3; proto.getObjectUrl = function getObjectUrl(name, baseUrl) { if (isIP(this.options.endpoint.hostname)) { throw new Error("can not get the object URL when endpoint is IP"); } if (!baseUrl) { baseUrl = this.options.endpoint.format(); } else if (baseUrl[baseUrl.length - 1] !== "/") { baseUrl += "/"; } return baseUrl + this._escape(this._objectName(name)); }; }, { "../utils/isIP": 69 }], 43: [function(require2, module3, exports3) { "use strict"; var _interopRequireDefault = require2("@babel/runtime/helpers/interopRequireDefault"); var _regenerator = _interopRequireDefault(require2("@babel/runtime/regenerator")); require2("core-js/modules/es.object.assign.js"); var _asyncToGenerator2 = _interopRequireDefault(require2("@babel/runtime/helpers/asyncToGenerator")); var proto = exports3; proto.getSymlink = function() { var _getSymlink = (0, _asyncToGenerator2.default)(_regenerator.default.mark(function _callee(name) { var options, params, result, target, _args = arguments; return _regenerator.default.wrap(function _callee$(_context) { while (1) { switch (_context.prev = _context.next) { case 0: options = _args.length > 1 && _args[1] !== void 0 ? _args[1] : {}; options.subres = Object.assign({ symlink: "" }, options.subres); if (options.versionId) { options.subres.versionId = options.versionId; } name = this._objectName(name); params = this._objectRequestParams("GET", name, options); params.successStatuses = [200]; _context.next = 8; return this.request(params); case 8: result = _context.sent; target = result.res.headers["x-oss-symlink-target"]; return _context.abrupt("return", { targetName: decodeURIComponent(target), res: result.res }); case 11: case "end": return _context.stop(); } } }, _callee, this); })); function getSymlink(_x) { return _getSymlink.apply(this, arguments); } return getSymlink; }(); }, { "@babel/runtime/helpers/asyncToGenerator": 77, "@babel/runtime/helpers/interopRequireDefault": 78, "@babel/runtime/regenerator": 80, "core-js/modules/es.object.assign.js": 287 }], 44: [function(require2, module3, exports3) { "use strict"; var _interopRequireDefault = require2("@babel/runtime/helpers/interopRequireDefault"); var _regenerator = _interopRequireDefault(require2("@babel/runtime/regenerator")); require2("core-js/modules/es.object.assign.js"); require2("core-js/modules/es.object.to-string.js"); require2("core-js/modules/web.dom-collections.for-each.js"); require2("core-js/modules/es.object.keys.js"); var _asyncToGenerator2 = _interopRequireDefault(require2("@babel/runtime/helpers/asyncToGenerator")); var _require = require2("../utils/checkEnv"), checkEnv = _require.checkEnv; var proto = exports3; proto.head = function() { var _head = (0, _asyncToGenerator2.default)(_regenerator.default.mark(function _callee(name) { var options, params, result, data, _args = arguments; return _regenerator.default.wrap(function _callee$(_context) { while (1) { switch (_context.prev = _context.next) { case 0: options = _args.length > 1 && _args[1] !== void 0 ? _args[1] : {}; checkEnv("Because HeadObject has gzip enabled, head cannot get the file size correctly. If you need to get the file size, please use getObjectMeta"); options.subres = Object.assign({}, options.subres); if (options.versionId) { options.subres.versionId = options.versionId; } params = this._objectRequestParams("HEAD", name, options); params.successStatuses = [200, 304]; _context.next = 8; return this.request(params); case 8: result = _context.sent; data = { meta: null, res: result.res, status: result.status }; if (result.status === 200) { Object.keys(result.headers).forEach(function(k) { if (k.indexOf("x-oss-meta-") === 0) { if (!data.meta) { data.meta = {}; } data.meta[k.substring(11)] = result.headers[k]; } }); } return _context.abrupt("return", data); case 12: case "end": return _context.stop(); } } }, _callee, this); })); function head(_x) { return _head.apply(this, arguments); } return head; }(); }, { "../utils/checkEnv": 53, "@babel/runtime/helpers/asyncToGenerator": 77, "@babel/runtime/helpers/interopRequireDefault": 78, "@babel/runtime/regenerator": 80, "core-js/modules/es.object.assign.js": 287, "core-js/modules/es.object.keys.js": 290, "core-js/modules/es.object.to-string.js": 291, "core-js/modules/web.dom-collections.for-each.js": 339 }], 45: [function(require2, module3, exports3) { "use strict"; var _interopRequireDefault = require2("@babel/runtime/helpers/interopRequireDefault"); var _regenerator = _interopRequireDefault(require2("@babel/runtime/regenerator")); require2("core-js/modules/es.object.assign.js"); var _asyncToGenerator2 = _interopRequireDefault(require2("@babel/runtime/helpers/asyncToGenerator")); var proto = exports3; proto.putACL = function() { var _putACL = (0, _asyncToGenerator2.default)(_regenerator.default.mark(function _callee(name, acl, options) { var params, result; return _regenerator.default.wrap(function _callee$(_context) { while (1) { switch (_context.prev = _context.next) { case 0: options = options || {}; options.subres = Object.assign({ acl: "" }, options.subres); if (options.versionId) { options.subres.versionId = options.versionId; } options.headers = options.headers || {}; options.headers["x-oss-object-acl"] = acl; name = this._objectName(name); params = this._objectRequestParams("PUT", name, options); params.successStatuses = [200]; _context.next = 10; return this.request(params); case 10: result = _context.sent; return _context.abrupt("return", { res: result.res }); case 12: case "end": return _context.stop(); } } }, _callee, this); })); function putACL(_x, _x2, _x3) { return _putACL.apply(this, arguments); } return putACL; }(); }, { "@babel/runtime/helpers/asyncToGenerator": 77, "@babel/runtime/helpers/interopRequireDefault": 78, "@babel/runtime/regenerator": 80, "core-js/modules/es.object.assign.js": 287 }], 46: [function(require2, module3, exports3) { "use strict"; var _interopRequireDefault = require2("@babel/runtime/helpers/interopRequireDefault"); var _regenerator = _interopRequireDefault(require2("@babel/runtime/regenerator")); require2("core-js/modules/es.object.assign.js"); require2("core-js/modules/es.array.map.js"); require2("core-js/modules/es.object.keys.js"); var _asyncToGenerator2 = _interopRequireDefault(require2("@babel/runtime/helpers/asyncToGenerator")); var _require = require2("../utils/obj2xml"), obj2xml = _require.obj2xml; var _require2 = require2("../utils/checkObjectTag"), checkObjectTag = _require2.checkObjectTag; var proto = exports3; proto.putObjectTagging = function() { var _putObjectTagging = (0, _asyncToGenerator2.default)(_regenerator.default.mark(function _callee(name, tag) { var options, params, paramXMLObj, result, _args = arguments; return _regenerator.default.wrap(function _callee$(_context) { while (1) { switch (_context.prev = _context.next) { case 0: options = _args.length > 2 && _args[2] !== void 0 ? _args[2] : {}; checkObjectTag(tag); options.subres = Object.assign({ tagging: "" }, options.subres); if (options.versionId) { options.subres.versionId = options.versionId; } name = this._objectName(name); params = this._objectRequestParams("PUT", name, options); params.successStatuses = [200]; tag = Object.keys(tag).map(function(key) { return { Key: key, Value: tag[key] }; }); paramXMLObj = { Tagging: { TagSet: { Tag: tag } } }; params.mime = "xml"; params.content = obj2xml(paramXMLObj); _context.next = 13; return this.request(params); case 13: result = _context.sent; return _context.abrupt("return", { res: result.res, status: result.status }); case 15: case "end": return _context.stop(); } } }, _callee, this); })); function putObjectTagging(_x, _x2) { return _putObjectTagging.apply(this, arguments); } return putObjectTagging; }(); }, { "../utils/checkObjectTag": 54, "../utils/obj2xml": 72, "@babel/runtime/helpers/asyncToGenerator": 77, "@babel/runtime/helpers/interopRequireDefault": 78, "@babel/runtime/regenerator": 80, "core-js/modules/es.array.map.js": 280, "core-js/modules/es.object.assign.js": 287, "core-js/modules/es.object.keys.js": 290 }], 47: [function(require2, module3, exports3) { "use strict"; var _interopRequireDefault = require2("@babel/runtime/helpers/interopRequireDefault"); var _regenerator = _interopRequireDefault(require2("@babel/runtime/regenerator")); require2("core-js/modules/es.object.assign.js"); var _asyncToGenerator2 = _interopRequireDefault(require2("@babel/runtime/helpers/asyncToGenerator")); var proto = exports3; proto.putSymlink = function() { var _putSymlink = (0, _asyncToGenerator2.default)(_regenerator.default.mark(function _callee(name, targetName, options) { var params, result; return _regenerator.default.wrap(function _callee$(_context) { while (1) { switch (_context.prev = _context.next) { case 0: options = options || {}; options.headers = options.headers || {}; targetName = this._escape(this._objectName(targetName)); this._convertMetaToHeaders(options.meta, options.headers); options.headers["x-oss-symlink-target"] = targetName; options.subres = Object.assign({ symlink: "" }, options.subres); if (options.versionId) { options.subres.versionId = options.versionId; } if (options.storageClass) { options.headers["x-oss-storage-class"] = options.storageClass; } name = this._objectName(name); params = this._objectRequestParams("PUT", name, options); params.successStatuses = [200]; _context.next = 13; return this.request(params); case 13: result = _context.sent; return _context.abrupt("return", { res: result.res }); case 15: case "end": return _context.stop(); } } }, _callee, this); })); function putSymlink(_x, _x2, _x3) { return _putSymlink.apply(this, arguments); } return putSymlink; }(); }, { "@babel/runtime/helpers/asyncToGenerator": 77, "@babel/runtime/helpers/interopRequireDefault": 78, "@babel/runtime/regenerator": 80, "core-js/modules/es.object.assign.js": 287 }], 48: [function(require2, module3, exports3) { "use strict"; require2("core-js/modules/es.regexp.exec.js"); var urlutil = require2("url"); var utility = require2("utility"); var copy = require2("copy-to"); var signHelper = require2("../../common/signUtils"); var _require = require2("../utils/isIP"), isIP = _require.isIP; var proto = exports3; proto.signatureUrl = function signatureUrl(name, options) { var strictObjectNameValidation = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : true; if (isIP(this.options.endpoint.hostname)) { throw new Error("can not get the object URL when endpoint is IP"); } if (strictObjectNameValidation && /^\?/.test(name)) { throw new Error("Invalid object name ".concat(name)); } options = options || {}; name = this._objectName(name); options.method = options.method || "GET"; var expires = utility.timestamp() + (options.expires || 1800); var params = { bucket: this.options.bucket, object: name }; var resource = this._getResource(params); if (this.options.stsToken) { options["security-token"] = this.options.stsToken; } var signRes = signHelper._signatureForURL(this.options.accessKeySecret, options, resource, expires); var url = urlutil.parse(this._getReqUrl(params)); url.query = { OSSAccessKeyId: this.options.accessKeyId, Expires: expires, Signature: signRes.Signature }; copy(signRes.subResource).to(url.query); return url.format(); }; }, { "../../common/signUtils": 50, "../utils/isIP": 69, "copy-to": 94, "core-js/modules/es.regexp.exec.js": 300, "url": 472, "utility": 474 }], 49: [function(require2, module3, exports3) { "use strict"; var _interopRequireDefault = require2("@babel/runtime/helpers/interopRequireDefault"); var _regenerator = _interopRequireDefault(require2("@babel/runtime/regenerator")); require2("core-js/modules/es.array.iterator.js"); require2("core-js/modules/es.object.to-string.js"); require2("core-js/modules/es.promise.js"); require2("core-js/modules/es.string.iterator.js"); require2("core-js/modules/web.dom-collections.iterator.js"); require2("core-js/modules/web.dom-collections.for-each.js"); require2("core-js/modules/es.function.name.js"); var _asyncToGenerator2 = _interopRequireDefault(require2("@babel/runtime/helpers/asyncToGenerator")); var _require = require2("./utils/isArray"), isArray = _require.isArray; var proto = exports3; proto._parallelNode = function() { var _parallelNode2 = (0, _asyncToGenerator2.default)(_regenerator.default.mark(function _callee(todo, parallel, fn, sourceData) { var that, jobErr, jobs, tempBatch, remainder, batch, taskIndex, i; return _regenerator.default.wrap(function _callee$(_context) { while (1) { switch (_context.prev = _context.next) { case 0: that = this; jobErr = []; jobs = []; tempBatch = todo.length / parallel; remainder = todo.length % parallel; batch = remainder === 0 ? tempBatch : (todo.length - remainder) / parallel + 1; taskIndex = 1; i = 0; case 8: if (!(i < todo.length)) { _context.next = 26; break; } if (!that.isCancel()) { _context.next = 11; break; } return _context.abrupt("break", 26); case 11: if (sourceData) { jobs.push(fn(that, todo[i], sourceData)); } else { jobs.push(fn(that, todo[i])); } if (!(jobs.length === parallel || taskIndex === batch && i === todo.length - 1)) { _context.next = 23; break; } _context.prev = 13; taskIndex += 1; _context.next = 17; return Promise.all(jobs); case 17: _context.next = 22; break; case 19: _context.prev = 19; _context.t0 = _context["catch"](13); jobErr.push(_context.t0); case 22: jobs = []; case 23: i++; _context.next = 8; break; case 26: return _context.abrupt("return", jobErr); case 27: case "end": return _context.stop(); } } }, _callee, this, [[13, 19]]); })); function _parallelNode(_x, _x2, _x3, _x4) { return _parallelNode2.apply(this, arguments); } return _parallelNode; }(); proto._parallel = function _parallel(todo, parallel, jobPromise) { var that = this; return new Promise(function(resolve) { var _jobErr = []; if (parallel <= 0 || !todo) { resolve(_jobErr); return; } function onlyOnce(fn) { return function() { if (fn === null) throw new Error("Callback was already called."); var callFn = fn; fn = null; for (var _len = arguments.length, args = new Array(_len), _key = 0; _key < _len; _key++) { args[_key] = arguments[_key]; } callFn.apply(this, args); }; } function createArrayIterator(coll) { var i = -1; var len = coll.length; return function next() { return ++i < len && !that.isCancel() ? { value: coll[i], key: i } : null; }; } var nextElem = createArrayIterator(todo); var done = false; var running = 0; var looping = false; function iterateeCallback(err) { running -= 1; if (err) { done = true; _jobErr.push(err); resolve(_jobErr); } else if (done && running <= 0) { done = true; resolve(_jobErr); } else if (!looping) { if (that.isCancel()) { resolve(_jobErr); } else { replenish(); } } } function iteratee(value, callback) { jobPromise(value).then(function(result) { callback(null, result); }).catch(function(err) { callback(err); }); } function replenish() { looping = true; while (running < parallel && !done && !that.isCancel()) { var elem = nextElem(); if (elem === null || _jobErr.length > 0) { done = true; if (running <= 0) { resolve(_jobErr); } return; } running += 1; iteratee(elem.value, onlyOnce(iterateeCallback)); } looping = false; } replenish(); }); }; proto.cancel = function cancel(abort) { this.options.cancelFlag = true; if (isArray(this.multipartUploadStreams)) { this.multipartUploadStreams.forEach(function(_) { if (_.destroyed === false) { var err = { name: "cancel", message: "cancel" }; _.destroy(err); } }); } this.multipartUploadStreams = []; if (abort) { this.abortMultipartUpload(abort.name, abort.uploadId, abort.options); } }; proto.isCancel = function isCancel() { return this.options.cancelFlag; }; proto.resetCancelFlag = function resetCancelFlag() { this.options.cancelFlag = false; }; proto._stop = function _stop() { this.options.cancelFlag = true; }; proto._makeCancelEvent = function _makeCancelEvent() { var cancelEvent = { status: 0, name: "cancel" }; return cancelEvent; }; proto._makeAbortEvent = function _makeAbortEvent() { var abortEvent = { status: 0, name: "abort", message: "upload task has been abort" }; return abortEvent; }; }, { "./utils/isArray": 63, "@babel/runtime/helpers/asyncToGenerator": 77, "@babel/runtime/helpers/interopRequireDefault": 78, "@babel/runtime/regenerator": 80, "core-js/modules/es.array.iterator.js": 278, "core-js/modules/es.function.name.js": 284, "core-js/modules/es.object.to-string.js": 291, "core-js/modules/es.promise.js": 295, "core-js/modules/es.string.iterator.js": 303, "core-js/modules/web.dom-collections.for-each.js": 339, "core-js/modules/web.dom-collections.iterator.js": 340 }], 50: [function(require2, module3, exports3) { (function(Buffer) { (function() { "use strict"; require2("core-js/modules/es.string.trim.js"); require2("core-js/modules/es.array.sort.js"); require2("core-js/modules/es.array.join.js"); require2("core-js/modules/es.object.to-string.js"); require2("core-js/modules/web.dom-collections.for-each.js"); require2("core-js/modules/es.object.keys.js"); require2("core-js/modules/es.array.concat.js"); require2("core-js/modules/es.regexp.to-string.js"); var crypto = require2("./../../shims/crypto/crypto.js"); var is = require2("is-type-of"); var _require = require2("./utils/lowercaseKeyHeader"), lowercaseKeyHeader = _require.lowercaseKeyHeader; exports3.buildCanonicalizedResource = function buildCanonicalizedResource(resourcePath, parameters) { var canonicalizedResource = "".concat(resourcePath); var separatorString = "?"; if (is.string(parameters) && parameters.trim() !== "") { canonicalizedResource += separatorString + parameters; } else if (is.array(parameters)) { parameters.sort(); canonicalizedResource += separatorString + parameters.join("&"); } else if (parameters) { var compareFunc = function compareFunc2(entry1, entry2) { if (entry1[0] > entry2[0]) { return 1; } else if (entry1[0] < entry2[0]) { return -1; } return 0; }; var processFunc = function processFunc2(key) { canonicalizedResource += separatorString + key; if (parameters[key] || parameters[key] === 0) { canonicalizedResource += "=".concat(parameters[key]); } separatorString = "&"; }; Object.keys(parameters).sort(compareFunc).forEach(processFunc); } return canonicalizedResource; }; exports3.buildCanonicalString = function canonicalString(method, resourcePath, request, expires) { request = request || {}; var headers = lowercaseKeyHeader(request.headers); var OSS_PREFIX = "x-oss-"; var ossHeaders = []; var headersToSign = {}; var signContent = [method.toUpperCase(), headers["content-md5"] || "", headers["content-type"], expires || headers["x-oss-date"]]; Object.keys(headers).forEach(function(key) { var lowerKey = key.toLowerCase(); if (lowerKey.indexOf(OSS_PREFIX) === 0) { headersToSign[lowerKey] = String(headers[key]).trim(); } }); Object.keys(headersToSign).sort().forEach(function(key) { ossHeaders.push("".concat(key, ":").concat(headersToSign[key])); }); signContent = signContent.concat(ossHeaders); signContent.push(this.buildCanonicalizedResource(resourcePath, request.parameters)); return signContent.join("\n"); }; exports3.computeSignature = function computeSignature(accessKeySecret, canonicalString) { var headerEncoding = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : "utf-8"; var signature = crypto.createHmac("sha1", accessKeySecret); return signature.update(Buffer.from(canonicalString, headerEncoding)).digest("base64"); }; exports3.authorization = function authorization(accessKeyId, accessKeySecret, canonicalString, headerEncoding) { return "OSS ".concat(accessKeyId, ":").concat(this.computeSignature(accessKeySecret, canonicalString, headerEncoding)); }; exports3._signatureForURL = function _signatureForURL(accessKeySecret) { var options = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {}; var resource = arguments.length > 2 ? arguments[2] : void 0; var expires = arguments.length > 3 ? arguments[3] : void 0; var headerEncoding = arguments.length > 4 ? arguments[4] : void 0; var headers = {}; var _options$subResource = options.subResource, subResource = _options$subResource === void 0 ? {} : _options$subResource; if (options.process) { var processKeyword = "x-oss-process"; subResource[processKeyword] = options.process; } if (options.trafficLimit) { var trafficLimitKey = "x-oss-traffic-limit"; subResource[trafficLimitKey] = options.trafficLimit; } if (options.response) { Object.keys(options.response).forEach(function(k) { var key = "response-".concat(k.toLowerCase()); subResource[key] = options.response[k]; }); } Object.keys(options).forEach(function(key) { var lowerKey = key.toLowerCase(); var value = options[key]; if (lowerKey.indexOf("x-oss-") === 0) { headers[lowerKey] = value; } else if (lowerKey.indexOf("content-md5") === 0) { headers[key] = value; } else if (lowerKey.indexOf("content-type") === 0) { headers[key] = value; } }); if (Object.prototype.hasOwnProperty.call(options, "security-token")) { subResource["security-token"] = options["security-token"]; } if (Object.prototype.hasOwnProperty.call(options, "callback")) { var json = { callbackUrl: encodeURI(options.callback.url), callbackBody: options.callback.body }; if (options.callback.host) { json.callbackHost = options.callback.host; } if (options.callback.contentType) { json.callbackBodyType = options.callback.contentType; } subResource.callback = Buffer.from(JSON.stringify(json)).toString("base64"); if (options.callback.customValue) { var callbackVar = {}; Object.keys(options.callback.customValue).forEach(function(key) { callbackVar["x:".concat(key)] = options.callback.customValue[key]; }); subResource["callback-var"] = Buffer.from(JSON.stringify(callbackVar)).toString("base64"); } } var canonicalString = this.buildCanonicalString(options.method, resource, { headers, parameters: subResource }, expires.toString()); return { Signature: this.computeSignature(accessKeySecret, canonicalString, headerEncoding), subResource }; }; }).call(this); }).call(this, require2("buffer").Buffer); }, { "./../../shims/crypto/crypto.js": 461, "./utils/lowercaseKeyHeader": 71, "buffer": 90, "core-js/modules/es.array.concat.js": 272, "core-js/modules/es.array.join.js": 279, "core-js/modules/es.array.sort.js": 282, "core-js/modules/es.object.keys.js": 290, "core-js/modules/es.object.to-string.js": 291, "core-js/modules/es.regexp.to-string.js": 301, "core-js/modules/es.string.trim.js": 308, "core-js/modules/web.dom-collections.for-each.js": 339, "is-type-of": 466 }], 51: [function(require2, module3, exports3) { "use strict"; require2("core-js/modules/es.regexp.exec.js"); Object.defineProperty(exports3, "__esModule", { value: true }); exports3.checkBucketName = void 0; exports3.checkBucketName = function(name) { var createBucket = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : false; var bucketRegex = createBucket ? /^[a-z0-9][a-z0-9-]{1,61}[a-z0-9]$/ : /^[a-z0-9_][a-z0-9-_]{1,61}[a-z0-9_]$/; if (!bucketRegex.test(name)) { throw new Error("The bucket must be conform to the specifications"); } }; }, { "core-js/modules/es.regexp.exec.js": 300 }], 52: [function(require2, module3, exports3) { "use strict"; require2("core-js/modules/es.regexp.exec.js"); Object.defineProperty(exports3, "__esModule", { value: true }); exports3.checkConfigValid = void 0; var checkConfigMap = { endpoint: checkEndpoint, region: /^[a-zA-Z0-9\-_]+$/ }; function checkEndpoint(endpoint) { if (typeof endpoint === "string") { return /^[a-zA-Z0-9._:/-]+$/.test(endpoint); } else if (endpoint.host) { return /^[a-zA-Z0-9._:/-]+$/.test(endpoint.host); } return false; } exports3.checkConfigValid = function(conf, key) { if (checkConfigMap[key]) { var isConfigValid = true; if (checkConfigMap[key] instanceof Function) { isConfigValid = checkConfigMap[key](conf); } else { isConfigValid = checkConfigMap[key].test(conf); } if (!isConfigValid) { throw new Error("The ".concat(key, " must be conform to the specifications")); } } }; }, { "core-js/modules/es.regexp.exec.js": 300 }], 53: [function(require2, module3, exports3) { (function(process) { (function() { "use strict"; Object.defineProperty(exports3, "__esModule", { value: true }); exports3.checkEnv = void 0; function checkEnv(msg) { if (process.browser) { console.warn(msg); } } exports3.checkEnv = checkEnv; }).call(this); }).call(this, require2("_process")); }, { "_process": 467 }], 54: [function(require2, module3, exports3) { "use strict"; require2("core-js/modules/es.array.concat.js"); require2("core-js/modules/es.object.entries.js"); require2("core-js/modules/es.object.to-string.js"); require2("core-js/modules/web.dom-collections.for-each.js"); Object.defineProperty(exports3, "__esModule", { value: true }); exports3.checkObjectTag = void 0; var _require = require2("./checkValid"), checkValid = _require.checkValid; var _require2 = require2("./isObject"), isObject = _require2.isObject; var commonRules = [{ validator: function validator(value) { if (typeof value !== "string") { throw new Error("the key and value of the tag must be String"); } } }, { pattern: /^[a-zA-Z0-9 +-=._:/]+$/, msg: "tag can contain letters, numbers, spaces, and the following symbols: plus sign (+), hyphen (-), equal sign (=), period (.), underscore (_), colon (:), and forward slash (/)" }]; var rules = { key: [].concat(commonRules, [{ pattern: /^.{1,128}$/, msg: "tag key can be a maximum of 128 bytes in length" }]), value: [].concat(commonRules, [{ pattern: /^.{0,256}$/, msg: "tag value can be a maximum of 256 bytes in length" }]) }; function checkObjectTag(tag) { if (!isObject(tag)) { throw new Error("tag must be Object"); } var entries = Object.entries(tag); if (entries.length > 10) { throw new Error("maximum of 10 tags for a object"); } var rulesIndexKey = ["key", "value"]; entries.forEach(function(keyValue) { keyValue.forEach(function(item, index) { checkValid(item, rules[rulesIndexKey[index]]); }); }); } exports3.checkObjectTag = checkObjectTag; }, { "./checkValid": 55, "./isObject": 70, "core-js/modules/es.array.concat.js": 272, "core-js/modules/es.object.entries.js": 288, "core-js/modules/es.object.to-string.js": 291, "core-js/modules/web.dom-collections.for-each.js": 339 }], 55: [function(require2, module3, exports3) { "use strict"; require2("core-js/modules/es.object.to-string.js"); require2("core-js/modules/web.dom-collections.for-each.js"); require2("core-js/modules/es.regexp.exec.js"); Object.defineProperty(exports3, "__esModule", { value: true }); exports3.checkValid = void 0; function checkValid(_value, _rules) { _rules.forEach(function(rule) { if (rule.validator) { rule.validator(_value); } else if (rule.pattern && !rule.pattern.test(_value)) { throw new Error(rule.msg); } }); } exports3.checkValid = checkValid; }, { "core-js/modules/es.object.to-string.js": 291, "core-js/modules/es.regexp.exec.js": 300, "core-js/modules/web.dom-collections.for-each.js": 339 }], 56: [function(require2, module3, exports3) { (function(Buffer) { (function() { "use strict"; require2("core-js/modules/es.array.includes.js"); require2("core-js/modules/es.string.includes.js"); require2("core-js/modules/es.object.assign.js"); require2("core-js/modules/es.array.concat.js"); Object.defineProperty(exports3, "__esModule", { value: true }); exports3.createRequest = void 0; var crypto = require2("./../../../shims/crypto/crypto.js"); var debug = require2("debug")("ali-oss"); var mime = require2("mime"); var dateFormat = require2("dateformat"); var copy = require2("copy-to"); var path = require2("path"); var _require = require2("./encoder"), encoder = _require.encoder; var _require2 = require2("./isIP"), isIP = _require2.isIP; var _require3 = require2("./setRegion"), setRegion = _require3.setRegion; var _require4 = require2("../client/getReqUrl"), getReqUrl = _require4.getReqUrl; var _require5 = require2("./isDingTalk"), isDingTalk = _require5.isDingTalk; function getHeader(headers, name) { return headers[name] || headers[name.toLowerCase()]; } function delHeader(headers, name) { delete headers[name]; delete headers[name.toLowerCase()]; } function createRequest(params) { var date = /* @__PURE__ */ new Date(); if (this.options.amendTimeSkewed) { date = +/* @__PURE__ */ new Date() + this.options.amendTimeSkewed; } var headers = { "x-oss-date": dateFormat(date, "UTC:ddd, dd mmm yyyy HH:MM:ss 'GMT'") }; if (typeof window !== "undefined") { headers["x-oss-user-agent"] = this.userAgent; } if (this.userAgent.includes("nodejs")) { headers["User-Agent"] = this.userAgent; } if (this.options.isRequestPay) { Object.assign(headers, { "x-oss-request-payer": "requester" }); } if (this.options.stsToken) { headers["x-oss-security-token"] = this.options.stsToken; } copy(params.headers).to(headers); if (!getHeader(headers, "Content-Type")) { if (params.mime && params.mime.indexOf("/") > 0) { headers["Content-Type"] = params.mime; } else if (isDingTalk()) { headers["Content-Type"] = "application/octet-stream"; } else { headers["Content-Type"] = mime.getType(params.mime || path.extname(params.object || "")); } } if (!getHeader(headers, "Content-Type")) { delHeader(headers, "Content-Type"); } if (params.content) { if (!params.disabledMD5) { if (!params.headers || !params.headers["Content-MD5"]) { headers["Content-MD5"] = crypto.createHash("md5").update(Buffer.from(params.content, "utf8")).digest("base64"); } else { headers["Content-MD5"] = params.headers["Content-MD5"]; } } if (!headers["Content-Length"]) { headers["Content-Length"] = params.content.length; } } var hasOwnProperty = Object.prototype.hasOwnProperty; for (var k in headers) { if (headers[k] && hasOwnProperty.call(headers, k)) { headers[k] = encoder(String(headers[k]), this.options.headerEncoding); } } var authResource = this._getResource(params); headers.authorization = this.authorization(params.method, authResource, params.subres, headers, this.options.headerEncoding); if (isIP(this.options.endpoint.hostname)) { var _this$options = this.options, region = _this$options.region, internal = _this$options.internal, secure = _this$options.secure; var hostInfo = setRegion(region, internal, secure); headers.host = "".concat(params.bucket, ".").concat(hostInfo.host); } var url = getReqUrl.bind(this)(params); debug("request %s %s, with headers %j, !!stream: %s", params.method, url, headers, !!params.stream); var timeout = params.timeout || this.options.timeout; var reqParams = { method: params.method, content: params.content, stream: params.stream, headers, timeout, writeStream: params.writeStream, customResponse: params.customResponse, ctx: params.ctx || this.ctx }; if (this.agent) { reqParams.agent = this.agent; } if (this.httpsAgent) { reqParams.httpsAgent = this.httpsAgent; } reqParams.enableProxy = !!this.options.enableProxy; reqParams.proxy = this.options.proxy ? this.options.proxy : null; return { url, params: reqParams }; } exports3.createRequest = createRequest; }).call(this); }).call(this, require2("buffer").Buffer); }, { "../client/getReqUrl": 25, "./../../../shims/crypto/crypto.js": 461, "./encoder": 59, "./isDingTalk": 66, "./isIP": 69, "./setRegion": 75, "buffer": 90, "copy-to": 94, "core-js/modules/es.array.concat.js": 272, "core-js/modules/es.array.includes.js": 277, "core-js/modules/es.object.assign.js": 287, "core-js/modules/es.string.includes.js": 302, "dateformat": 342, "debug": 465, "mime": 374, "path": 378 }], 57: [function(require2, module3, exports3) { "use strict"; require2("core-js/modules/es.object.to-string.js"); require2("core-js/modules/web.dom-collections.for-each.js"); require2("core-js/modules/es.object.entries.js"); require2("core-js/modules/es.regexp.exec.js"); require2("core-js/modules/es.string.replace.js"); require2("core-js/modules/es.array.includes.js"); require2("core-js/modules/es.object.keys.js"); Object.defineProperty(exports3, "__esModule", { value: true }); exports3.dataFix = void 0; var isObject_1 = require2("./isObject"); var TRUE = ["true", "TRUE", "1", 1]; var FALSE = ["false", "FALSE", "0", 0]; function dataFix(o, conf, finalKill) { if (!isObject_1.isObject(o)) return; var _conf$remove = conf.remove, remove = _conf$remove === void 0 ? [] : _conf$remove, _conf$rename = conf.rename, rename = _conf$rename === void 0 ? {} : _conf$rename, _conf$camel = conf.camel, camel = _conf$camel === void 0 ? [] : _conf$camel, _conf$bool = conf.bool, bool = _conf$bool === void 0 ? [] : _conf$bool, _conf$lowerFirst = conf.lowerFirst, lowerFirst = _conf$lowerFirst === void 0 ? false : _conf$lowerFirst; remove.forEach(function(v) { return delete o[v]; }); Object.entries(rename).forEach(function(v) { if (!o[v[0]]) return; if (o[v[1]]) return; o[v[1]] = o[v[0]]; delete o[v[0]]; }); camel.forEach(function(v) { if (!o[v]) return; var afterKey = v.replace(/^(.)/, function($0) { return $0.toLowerCase(); }).replace(/-(\w)/g, function(_, $1) { return $1.toUpperCase(); }); if (o[afterKey]) return; o[afterKey] = o[v]; }); bool.forEach(function(v) { o[v] = fixBool(o[v]); }); if (typeof finalKill === "function") { finalKill(o); } fixLowerFirst(o, lowerFirst); return dataFix; } exports3.dataFix = dataFix; function fixBool(value) { if (!value) return false; if (TRUE.includes(value)) return true; return FALSE.includes(value) ? false : value; } function fixLowerFirst(o, lowerFirst) { if (lowerFirst) { Object.keys(o).forEach(function(key) { var lowerK = key.replace(/^\w/, function(match) { return match.toLowerCase(); }); if (typeof o[lowerK] === "undefined") { o[lowerK] = o[key]; delete o[key]; } }); } } }, { "./isObject": 70, "core-js/modules/es.array.includes.js": 277, "core-js/modules/es.object.entries.js": 288, "core-js/modules/es.object.keys.js": 290, "core-js/modules/es.object.to-string.js": 291, "core-js/modules/es.regexp.exec.js": 300, "core-js/modules/es.string.replace.js": 305, "core-js/modules/web.dom-collections.for-each.js": 339 }], 58: [function(require2, module3, exports3) { "use strict"; var _interopRequireDefault = require2("@babel/runtime/helpers/interopRequireDefault"); require2("core-js/modules/es.array.slice.js"); require2("core-js/modules/es.object.to-string.js"); require2("core-js/modules/web.dom-collections.for-each.js"); require2("core-js/modules/es.object.keys.js"); var _typeof2 = _interopRequireDefault(require2("@babel/runtime/helpers/typeof")); Object.defineProperty(exports3, "__esModule", { value: true }); exports3.deepCopyWith = exports3.deepCopy = void 0; var isBuffer_1 = require2("./isBuffer"); exports3.deepCopy = function(obj) { if (obj === null || (0, _typeof2.default)(obj) !== "object") { return obj; } if (isBuffer_1.isBuffer(obj)) { return obj.slice(); } var copy = Array.isArray(obj) ? [] : {}; Object.keys(obj).forEach(function(key) { copy[key] = exports3.deepCopy(obj[key]); }); return copy; }; exports3.deepCopyWith = function(obj, customizer) { function deepCopyWithHelper(value, innerKey, innerObject) { var result = customizer(value, innerKey, innerObject); if (result !== void 0) return result; if (value === null || (0, _typeof2.default)(value) !== "object") { return value; } if (isBuffer_1.isBuffer(value)) { return value.slice(); } var copy = Array.isArray(value) ? [] : {}; Object.keys(value).forEach(function(k) { copy[k] = deepCopyWithHelper(value[k], k, value); }); return copy; } if (customizer) { return deepCopyWithHelper(obj, "", null); } else { return exports3.deepCopy(obj); } }; }, { "./isBuffer": 65, "@babel/runtime/helpers/interopRequireDefault": 78, "@babel/runtime/helpers/typeof": 79, "core-js/modules/es.array.slice.js": 281, "core-js/modules/es.object.keys.js": 290, "core-js/modules/es.object.to-string.js": 291, "core-js/modules/web.dom-collections.for-each.js": 339 }], 59: [function(require2, module3, exports3) { (function(Buffer) { (function() { "use strict"; require2("core-js/modules/es.object.to-string.js"); require2("core-js/modules/es.regexp.to-string.js"); Object.defineProperty(exports3, "__esModule", { value: true }); exports3.encoder = void 0; function encoder(str) { var encoding = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : "utf-8"; if (encoding === "utf-8") return str; return Buffer.from(str).toString("latin1"); } exports3.encoder = encoder; }).call(this); }).call(this, require2("buffer").Buffer); }, { "buffer": 90, "core-js/modules/es.object.to-string.js": 291, "core-js/modules/es.regexp.to-string.js": 301 }], 60: [function(require2, module3, exports3) { "use strict"; require2("core-js/modules/es.array.map.js"); require2("core-js/modules/es.regexp.exec.js"); require2("core-js/modules/es.string.replace.js"); Object.defineProperty(exports3, "__esModule", { value: true }); exports3.formatInventoryConfig = void 0; var dataFix_1 = require2("../utils/dataFix"); var isObject_1 = require2("../utils/isObject"); var isArray_1 = require2("../utils/isArray"); var formatObjKey_1 = require2("../utils/formatObjKey"); function formatInventoryConfig(inventoryConfig) { var toArray = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : false; if (toArray && isObject_1.isObject(inventoryConfig)) inventoryConfig = [inventoryConfig]; if (isArray_1.isArray(inventoryConfig)) { inventoryConfig = inventoryConfig.map(formatFn); } else { inventoryConfig = formatFn(inventoryConfig); } return inventoryConfig; } exports3.formatInventoryConfig = formatInventoryConfig; function formatFn(_) { dataFix_1.dataFix(_, { bool: ["IsEnabled"] }, function(conf) { var _a, _b; conf.prefix = conf.Filter.Prefix; delete conf.Filter; conf.OSSBucketDestination = conf.Destination.OSSBucketDestination; conf.OSSBucketDestination.rolename = conf.OSSBucketDestination.RoleArn.replace(/.*\//, ""); delete conf.OSSBucketDestination.RoleArn; conf.OSSBucketDestination.bucket = conf.OSSBucketDestination.Bucket.replace(/.*:::/, ""); delete conf.OSSBucketDestination.Bucket; delete conf.Destination; conf.frequency = conf.Schedule.Frequency; delete conf.Schedule.Frequency; if (((_a = conf === null || conf === void 0 ? void 0 : conf.OptionalFields) === null || _a === void 0 ? void 0 : _a.Field) && !isArray_1.isArray((_b = conf.OptionalFields) === null || _b === void 0 ? void 0 : _b.Field)) conf.OptionalFields.Field = [conf.OptionalFields.Field]; }); _ = formatObjKey_1.formatObjKey(_, "firstLowerCase", { exclude: ["OSSBucketDestination", "SSE-OSS", "SSE-KMS"] }); return _; } }, { "../utils/dataFix": 57, "../utils/formatObjKey": 61, "../utils/isArray": 63, "../utils/isObject": 70, "core-js/modules/es.array.map.js": 280, "core-js/modules/es.regexp.exec.js": 300, "core-js/modules/es.string.replace.js": 305 }], 61: [function(require2, module3, exports3) { "use strict"; var _interopRequireDefault = require2("@babel/runtime/helpers/interopRequireDefault"); require2("core-js/modules/es.object.to-string.js"); require2("core-js/modules/web.dom-collections.for-each.js"); require2("core-js/modules/es.object.keys.js"); require2("core-js/modules/es.array.includes.js"); require2("core-js/modules/es.string.includes.js"); require2("core-js/modules/es.regexp.exec.js"); require2("core-js/modules/es.string.replace.js"); var _typeof2 = _interopRequireDefault(require2("@babel/runtime/helpers/typeof")); Object.defineProperty(exports3, "__esModule", { value: true }); exports3.formatObjKey = void 0; function formatObjKey(obj, type, options) { if (obj === null || (0, _typeof2.default)(obj) !== "object") { return obj; } var o; if (Array.isArray(obj)) { o = []; for (var i = 0; i < obj.length; i++) { o.push(formatObjKey(obj[i], type, options)); } } else { o = {}; Object.keys(obj).forEach(function(key) { o[handelFormat(key, type, options)] = formatObjKey(obj[key], type, options); }); } return o; } exports3.formatObjKey = formatObjKey; function handelFormat(key, type, options) { if (options && options.exclude && options.exclude.includes(key)) return key; if (type === "firstUpperCase") { key = key.replace(/^./, function(_) { return _.toUpperCase(); }); } else if (type === "firstLowerCase") { key = key.replace(/^./, function(_) { return _.toLowerCase(); }); } return key; } }, { "@babel/runtime/helpers/interopRequireDefault": 78, "@babel/runtime/helpers/typeof": 79, "core-js/modules/es.array.includes.js": 277, "core-js/modules/es.object.keys.js": 290, "core-js/modules/es.object.to-string.js": 291, "core-js/modules/es.regexp.exec.js": 300, "core-js/modules/es.string.includes.js": 302, "core-js/modules/es.string.replace.js": 305, "core-js/modules/web.dom-collections.for-each.js": 339 }], 62: [function(require2, module3, exports3) { "use strict"; require2("core-js/modules/es.regexp.exec.js"); Object.defineProperty(exports3, "__esModule", { value: true }); exports3.getStrBytesCount = void 0; function getStrBytesCount(str) { var bytesCount = 0; for (var i = 0; i < str.length; i++) { var c = str.charAt(i); if (/^[\u00-\uff]$/.test(c)) { bytesCount += 1; } else { bytesCount += 2; } } return bytesCount; } exports3.getStrBytesCount = getStrBytesCount; }, { "core-js/modules/es.regexp.exec.js": 300 }], 63: [function(require2, module3, exports3) { "use strict"; require2("core-js/modules/es.object.to-string.js"); Object.defineProperty(exports3, "__esModule", { value: true }); exports3.isArray = void 0; exports3.isArray = function(obj) { return Object.prototype.toString.call(obj) === "[object Array]"; }; }, { "core-js/modules/es.object.to-string.js": 291 }], 64: [function(require2, module3, exports3) { "use strict"; Object.defineProperty(exports3, "__esModule", { value: true }); exports3.isBlob = void 0; function isBlob(blob) { return typeof Blob !== "undefined" && blob instanceof Blob; } exports3.isBlob = isBlob; }, {}], 65: [function(require2, module3, exports3) { (function(Buffer) { (function() { "use strict"; Object.defineProperty(exports3, "__esModule", { value: true }); exports3.isBuffer = void 0; function isBuffer(obj) { return Buffer.isBuffer(obj); } exports3.isBuffer = isBuffer; }).call(this); }).call(this, { "isBuffer": require2("../../../node_modules/is-buffer/index.js") }); }, { "../../../node_modules/is-buffer/index.js": 366 }], 66: [function(require2, module3, exports3) { (function(process) { (function() { "use strict"; require2("core-js/modules/es.array.includes.js"); require2("core-js/modules/es.string.includes.js"); Object.defineProperty(exports3, "__esModule", { value: true }); exports3.isDingTalk = void 0; function isDingTalk() { if (process.browser && window.navigator.userAgent.toLowerCase().includes("aliapp(dingtalk")) { return true; } return false; } exports3.isDingTalk = isDingTalk; }).call(this); }).call(this, require2("_process")); }, { "_process": 467, "core-js/modules/es.array.includes.js": 277, "core-js/modules/es.string.includes.js": 302 }], 67: [function(require2, module3, exports3) { "use strict"; Object.defineProperty(exports3, "__esModule", { value: true }); exports3.isFile = void 0; exports3.isFile = function(obj) { return typeof File !== "undefined" && obj instanceof File; }; }, {}], 68: [function(require2, module3, exports3) { "use strict"; Object.defineProperty(exports3, "__esModule", { value: true }); exports3.isFunction = void 0; exports3.isFunction = function(v) { return typeof v === "function"; }; }, {}], 69: [function(require2, module3, exports3) { "use strict"; require2("core-js/modules/es.regexp.exec.js"); Object.defineProperty(exports3, "__esModule", { value: true }); exports3.isIP = void 0; exports3.isIP = function(host) { var ipv4Regex = /^(25[0-5]|2[0-4]\d|[0-1]?\d?\d)(\.(25[0-5]|2[0-4]\d|[0-1]?\d?\d)){3}$/; var ipv6Regex = /^\s*((([0-9A-Fa-f]{1,4}:){7}([0-9A-Fa-f]{1,4}|:))|(([0-9A-Fa-f]{1,4}:){6}(:[0-9A-Fa-f]{1,4}|((25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(\.(25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3})|:))|(([0-9A-Fa-f]{1,4}:){5}(((:[0-9A-Fa-f]{1,4}){1,2})|:((25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(\.(25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3})|:))|(([0-9A-Fa-f]{1,4}:){4}(((:[0-9A-Fa-f]{1,4}){1,3})|((:[0-9A-Fa-f]{1,4})?:((25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(\.(25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3}))|:))|(([0-9A-Fa-f]{1,4}:){3}(((:[0-9A-Fa-f]{1,4}){1,4})|((:[0-9A-Fa-f]{1,4}){0,2}:((25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(\.(25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3}))|:))|(([0-9A-Fa-f]{1,4}:){2}(((:[0-9A-Fa-f]{1,4}){1,5})|((:[0-9A-Fa-f]{1,4}){0,3}:((25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(\.(25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3}))|:))|(([0-9A-Fa-f]{1,4}:){1}(((:[0-9A-Fa-f]{1,4}){1,6})|((:[0-9A-Fa-f]{1,4}){0,4}:((25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(\.(25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3}))|:))|(:(((:[0-9A-Fa-f]{1,4}){1,7})|((:[0-9A-Fa-f]{1,4}){0,5}:((25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(\.(25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3}))|:)))(%.+)?\s*$/; return ipv4Regex.test(host) || ipv6Regex.test(host); }; }, { "core-js/modules/es.regexp.exec.js": 300 }], 70: [function(require2, module3, exports3) { "use strict"; require2("core-js/modules/es.object.to-string.js"); Object.defineProperty(exports3, "__esModule", { value: true }); exports3.isObject = void 0; exports3.isObject = function(obj) { return Object.prototype.toString.call(obj) === "[object Object]"; }; }, { "core-js/modules/es.object.to-string.js": 291 }], 71: [function(require2, module3, exports3) { "use strict"; require2("core-js/modules/es.object.to-string.js"); require2("core-js/modules/web.dom-collections.for-each.js"); require2("core-js/modules/es.object.keys.js"); Object.defineProperty(exports3, "__esModule", { value: true }); exports3.lowercaseKeyHeader = void 0; var isObject_1 = require2("./isObject"); function lowercaseKeyHeader(headers) { var lowercaseHeader = {}; if (isObject_1.isObject(headers)) { Object.keys(headers).forEach(function(key) { lowercaseHeader[key.toLowerCase()] = headers[key]; }); } return lowercaseHeader; } exports3.lowercaseKeyHeader = lowercaseKeyHeader; }, { "./isObject": 70, "core-js/modules/es.object.keys.js": 290, "core-js/modules/es.object.to-string.js": 291, "core-js/modules/web.dom-collections.for-each.js": 339 }], 72: [function(require2, module3, exports3) { "use strict"; require2("core-js/modules/es.regexp.exec.js"); require2("core-js/modules/es.string.replace.js"); require2("core-js/modules/es.object.to-string.js"); require2("core-js/modules/web.dom-collections.for-each.js"); require2("core-js/modules/es.object.keys.js"); require2("core-js/modules/es.array.concat.js"); require2("core-js/modules/es.array.join.js"); require2("core-js/modules/es.array.map.js"); require2("core-js/modules/es.regexp.to-string.js"); Object.defineProperty(exports3, "__esModule", { value: true }); exports3.obj2xml = void 0; var formatObjKey_1 = require2("./formatObjKey"); function type(params) { return Object.prototype.toString.call(params).replace(/(.*? |])/g, "").toLowerCase(); } function obj2xml(obj, options) { var s = ""; if (options && options.headers) { s = '\n'; } if (options && options.firstUpperCase) { obj = formatObjKey_1.formatObjKey(obj, "firstUpperCase"); } if (type(obj) === "object") { Object.keys(obj).forEach(function(key) { if (type(obj[key]) !== "undefined" && type(obj[key]) !== "null") { if (type(obj[key]) === "string" || type(obj[key]) === "number") { s += "<".concat(key, ">").concat(obj[key], ""); } else if (type(obj[key]) === "object") { s += "<".concat(key, ">").concat(obj2xml(obj[key]), ""); } else if (type(obj[key]) === "array") { s += obj[key].map(function(keyChild) { return "<".concat(key, ">").concat(obj2xml(keyChild), ""); }).join(""); } else { s += "<".concat(key, ">").concat(obj[key].toString(), ""); } } }); } else { s += obj.toString(); } return s; } exports3.obj2xml = obj2xml; }, { "./formatObjKey": 61, "core-js/modules/es.array.concat.js": 272, "core-js/modules/es.array.join.js": 279, "core-js/modules/es.array.map.js": 280, "core-js/modules/es.object.keys.js": 290, "core-js/modules/es.object.to-string.js": 291, "core-js/modules/es.regexp.exec.js": 300, "core-js/modules/es.regexp.to-string.js": 301, "core-js/modules/es.string.replace.js": 305, "core-js/modules/web.dom-collections.for-each.js": 339 }], 73: [function(require2, module3, exports3) { "use strict"; require2("core-js/modules/es.array.slice.js"); require2("core-js/modules/es.object.to-string.js"); require2("core-js/modules/es.function.name.js"); require2("core-js/modules/es.array.from.js"); require2("core-js/modules/es.string.iterator.js"); require2("core-js/modules/es.regexp.exec.js"); require2("core-js/modules/es.symbol.js"); require2("core-js/modules/es.symbol.description.js"); require2("core-js/modules/es.symbol.iterator.js"); require2("core-js/modules/es.array.iterator.js"); require2("core-js/modules/web.dom-collections.iterator.js"); require2("core-js/modules/es.object.assign.js"); function _createForOfIteratorHelper(o, allowArrayLike) { var it = typeof Symbol !== "undefined" && o[Symbol.iterator] || o["@@iterator"]; if (!it) { if (Array.isArray(o) || (it = _unsupportedIterableToArray(o)) || allowArrayLike && o && typeof o.length === "number") { if (it) o = it; var i = 0; var F = function F2() { }; return { s: F, n: function n() { if (i >= o.length) return { done: true }; return { done: false, value: o[i++] }; }, e: function e(_e) { throw _e; }, f: F }; } throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method."); } var normalCompletion = true, didErr = false, err; return { s: function s() { it = it.call(o); }, n: function n() { var step = it.next(); normalCompletion = step.done; return step; }, e: function e(_e2) { didErr = true; err = _e2; }, f: function f() { try { if (!normalCompletion && it.return != null) it.return(); } finally { if (didErr) throw err; } } }; } function _unsupportedIterableToArray(o, minLen) { if (!o) return; if (typeof o === "string") return _arrayLikeToArray(o, minLen); var n = Object.prototype.toString.call(o).slice(8, -1); if (n === "Object" && o.constructor) n = o.constructor.name; if (n === "Map" || n === "Set") return Array.from(o); if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _arrayLikeToArray(o, minLen); } function _arrayLikeToArray(arr, len) { if (len == null || len > arr.length) len = arr.length; for (var i = 0, arr2 = new Array(len); i < len; i++) { arr2[i] = arr[i]; } return arr2; } Object.defineProperty(exports3, "__esModule", { value: true }); exports3.omit = void 0; function omit(originalObject, keysToOmit) { var cloneObject = Object.assign({}, originalObject); var _iterator = _createForOfIteratorHelper(keysToOmit), _step; try { for (_iterator.s(); !(_step = _iterator.n()).done; ) { var path = _step.value; delete cloneObject[path]; } } catch (err) { _iterator.e(err); } finally { _iterator.f(); } return cloneObject; } exports3.omit = omit; }, { "core-js/modules/es.array.from.js": 276, "core-js/modules/es.array.iterator.js": 278, "core-js/modules/es.array.slice.js": 281, "core-js/modules/es.function.name.js": 284, "core-js/modules/es.object.assign.js": 287, "core-js/modules/es.object.to-string.js": 291, "core-js/modules/es.regexp.exec.js": 300, "core-js/modules/es.string.iterator.js": 303, "core-js/modules/es.symbol.description.js": 310, "core-js/modules/es.symbol.iterator.js": 312, "core-js/modules/es.symbol.js": 313, "core-js/modules/web.dom-collections.iterator.js": 340 }], 74: [function(require2, module3, exports3) { "use strict"; require2("core-js/modules/es.object.to-string.js"); require2("core-js/modules/es.promise.js"); Object.defineProperty(exports3, "__esModule", { value: true }); exports3.retry = void 0; function retry(func, retryMax) { var config = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : {}; var retryNum = 0; var _config$retryDelay = config.retryDelay, retryDelay = _config$retryDelay === void 0 ? 500 : _config$retryDelay, _config$errorHandler = config.errorHandler, errorHandler = _config$errorHandler === void 0 ? function() { return true; } : _config$errorHandler; var funcR = function funcR2() { for (var _len = arguments.length, arg = new Array(_len), _key = 0; _key < _len; _key++) { arg[_key] = arguments[_key]; } return new Promise(function(resolve, reject) { func.apply(void 0, arg).then(function(result) { retryNum = 0; resolve(result); }).catch(function(err) { if (retryNum < retryMax && errorHandler(err)) { retryNum++; setTimeout(function() { resolve(funcR2.apply(void 0, arg)); }, retryDelay); } else { retryNum = 0; reject(err); } }); }); }; return funcR; } exports3.retry = retry; }, { "core-js/modules/es.object.to-string.js": 291, "core-js/modules/es.promise.js": 295 }], 75: [function(require2, module3, exports3) { "use strict"; var __importDefault = function(mod) { return mod && mod.__esModule ? mod : { "default": mod }; }; Object.defineProperty(exports3, "__esModule", { value: true }); exports3.setRegion = void 0; var url_1 = __importDefault(require2("url")); var checkConfigValid_1 = require2("./checkConfigValid"); function setRegion(region) { var internal = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : false; var secure = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : false; checkConfigValid_1.checkConfigValid(region, "region"); var protocol = secure ? "https://" : "http://"; var suffix = internal ? "-internal.aliyuncs.com" : ".aliyuncs.com"; var prefix = "vpc100-oss-cn-"; if (region.substr(0, prefix.length) === prefix) { suffix = ".aliyuncs.com"; } return url_1.default.parse(protocol + region + suffix); } exports3.setRegion = setRegion; }, { "./checkConfigValid": 52, "url": 472 }], 76: [function(require2, module3, exports3) { "use strict"; var _interopRequireDefault = require2("@babel/runtime/helpers/interopRequireDefault"); var _regenerator = _interopRequireDefault(require2("@babel/runtime/regenerator")); require2("core-js/modules/es.object.keys.js"); require2("core-js/modules/es.object.to-string.js"); require2("core-js/modules/es.array.find.js"); require2("core-js/modules/es.object.assign.js"); var _asyncToGenerator2 = _interopRequireDefault(require2("@babel/runtime/helpers/asyncToGenerator")); Object.defineProperty(exports3, "__esModule", { value: true }); exports3.checkCredentials = exports3.setSTSToken = void 0; var formatObjKey_1 = require2("./formatObjKey"); function setSTSToken() { return _setSTSToken.apply(this, arguments); } function _setSTSToken() { _setSTSToken = (0, _asyncToGenerator2.default)(_regenerator.default.mark(function _callee() { var now, credentials; return _regenerator.default.wrap(function _callee$(_context) { while (1) { switch (_context.prev = _context.next) { case 0: if (!this.options) this.options = {}; now = /* @__PURE__ */ new Date(); if (!this.stsTokenFreshTime) { _context.next = 14; break; } if (!(+now - this.stsTokenFreshTime >= this.options.refreshSTSTokenInterval)) { _context.next = 12; break; } this.stsTokenFreshTime = now; _context.next = 7; return this.options.refreshSTSToken(); case 7: credentials = _context.sent; credentials = formatObjKey_1.formatObjKey(credentials, "firstLowerCase"); if (credentials.securityToken) { credentials.stsToken = credentials.securityToken; } checkCredentials(credentials); Object.assign(this.options, credentials); case 12: _context.next = 15; break; case 14: this.stsTokenFreshTime = now; case 15: return _context.abrupt("return", null); case 16: case "end": return _context.stop(); } } }, _callee, this); })); return _setSTSToken.apply(this, arguments); } exports3.setSTSToken = setSTSToken; function checkCredentials(obj) { var stsTokenKey = ["accessKeySecret", "accessKeyId", "stsToken"]; var objKeys = Object.keys(obj); stsTokenKey.forEach(function(_) { if (!objKeys.find(function(key) { return key === _; })) { throw Error("refreshSTSToken must return contains ".concat(_)); } }); } exports3.checkCredentials = checkCredentials; }, { "./formatObjKey": 61, "@babel/runtime/helpers/asyncToGenerator": 77, "@babel/runtime/helpers/interopRequireDefault": 78, "@babel/runtime/regenerator": 80, "core-js/modules/es.array.find.js": 275, "core-js/modules/es.object.assign.js": 287, "core-js/modules/es.object.keys.js": 290, "core-js/modules/es.object.to-string.js": 291 }], 77: [function(require2, module3, exports3) { function asyncGeneratorStep(gen, resolve, reject, _next, _throw, key, arg) { try { var info = gen[key](arg); var value = info.value; } catch (error) { reject(error); return; } if (info.done) { resolve(value); } else { Promise.resolve(value).then(_next, _throw); } } function _asyncToGenerator(fn) { return function() { var self2 = this, args = arguments; return new Promise(function(resolve, reject) { var gen = fn.apply(self2, args); function _next(value) { asyncGeneratorStep(gen, resolve, reject, _next, _throw, "next", value); } function _throw(err) { asyncGeneratorStep(gen, resolve, reject, _next, _throw, "throw", err); } _next(void 0); }); }; } module3.exports = _asyncToGenerator, module3.exports.__esModule = true, module3.exports["default"] = module3.exports; }, {}], 78: [function(require2, module3, exports3) { function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; } module3.exports = _interopRequireDefault, module3.exports.__esModule = true, module3.exports["default"] = module3.exports; }, {}], 79: [function(require2, module3, exports3) { function _typeof(obj) { "@babel/helpers - typeof"; return module3.exports = _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function(obj2) { return typeof obj2; } : function(obj2) { return obj2 && "function" == typeof Symbol && obj2.constructor === Symbol && obj2 !== Symbol.prototype ? "symbol" : typeof obj2; }, module3.exports.__esModule = true, module3.exports["default"] = module3.exports, _typeof(obj); } module3.exports = _typeof, module3.exports.__esModule = true, module3.exports["default"] = module3.exports; }, {}], 80: [function(require2, module3, exports3) { module3.exports = require2("regenerator-runtime"); }, { "regenerator-runtime": 395 }], 81: [function(require2, module3, exports3) { module3.exports = noop; module3.exports.HttpsAgent = noop; function noop() { } }, {}], 82: [function(require2, module3, exports3) { (function(global2) { (function() { "use strict"; var objectAssign = require2("object-assign"); function compare(a, b) { if (a === b) { return 0; } var x = a.length; var y = b.length; for (var i = 0, len = Math.min(x, y); i < len; ++i) { if (a[i] !== b[i]) { x = a[i]; y = b[i]; break; } } if (x < y) { return -1; } if (y < x) { return 1; } return 0; } function isBuffer(b) { if (global2.Buffer && typeof global2.Buffer.isBuffer === "function") { return global2.Buffer.isBuffer(b); } return !!(b != null && b._isBuffer); } var util = require2("util/"); var hasOwn = Object.prototype.hasOwnProperty; var pSlice = Array.prototype.slice; var functionsHaveNames = function() { return function foo() { }.name === "foo"; }(); function pToString(obj) { return Object.prototype.toString.call(obj); } function isView(arrbuf) { if (isBuffer(arrbuf)) { return false; } if (typeof global2.ArrayBuffer !== "function") { return false; } if (typeof ArrayBuffer.isView === "function") { return ArrayBuffer.isView(arrbuf); } if (!arrbuf) { return false; } if (arrbuf instanceof DataView) { return true; } if (arrbuf.buffer && arrbuf.buffer instanceof ArrayBuffer) { return true; } return false; } var assert = module3.exports = ok; var regex = /\s*function\s+([^\(\s]*)\s*/; function getName(func) { if (!util.isFunction(func)) { return; } if (functionsHaveNames) { return func.name; } var str = func.toString(); var match = str.match(regex); return match && match[1]; } assert.AssertionError = function AssertionError(options) { this.name = "AssertionError"; this.actual = options.actual; this.expected = options.expected; this.operator = options.operator; if (options.message) { this.message = options.message; this.generatedMessage = false; } else { this.message = getMessage(this); this.generatedMessage = true; } var stackStartFunction = options.stackStartFunction || fail; if (Error.captureStackTrace) { Error.captureStackTrace(this, stackStartFunction); } else { var err = new Error(); if (err.stack) { var out = err.stack; var fn_name = getName(stackStartFunction); var idx = out.indexOf("\n" + fn_name); if (idx >= 0) { var next_line = out.indexOf("\n", idx + 1); out = out.substring(next_line + 1); } this.stack = out; } } }; util.inherits(assert.AssertionError, Error); function truncate(s, n) { if (typeof s === "string") { return s.length < n ? s : s.slice(0, n); } else { return s; } } function inspect(something) { if (functionsHaveNames || !util.isFunction(something)) { return util.inspect(something); } var rawname = getName(something); var name = rawname ? ": " + rawname : ""; return "[Function" + name + "]"; } function getMessage(self2) { return truncate(inspect(self2.actual), 128) + " " + self2.operator + " " + truncate(inspect(self2.expected), 128); } function fail(actual, expected, message, operator, stackStartFunction) { throw new assert.AssertionError({ message, actual, expected, operator, stackStartFunction }); } assert.fail = fail; function ok(value, message) { if (!value) fail(value, true, message, "==", assert.ok); } assert.ok = ok; assert.equal = function equal(actual, expected, message) { if (actual != expected) fail(actual, expected, message, "==", assert.equal); }; assert.notEqual = function notEqual(actual, expected, message) { if (actual == expected) { fail(actual, expected, message, "!=", assert.notEqual); } }; assert.deepEqual = function deepEqual(actual, expected, message) { if (!_deepEqual(actual, expected, false)) { fail(actual, expected, message, "deepEqual", assert.deepEqual); } }; assert.deepStrictEqual = function deepStrictEqual(actual, expected, message) { if (!_deepEqual(actual, expected, true)) { fail(actual, expected, message, "deepStrictEqual", assert.deepStrictEqual); } }; function _deepEqual(actual, expected, strict2, memos) { if (actual === expected) { return true; } else if (isBuffer(actual) && isBuffer(expected)) { return compare(actual, expected) === 0; } else if (util.isDate(actual) && util.isDate(expected)) { return actual.getTime() === expected.getTime(); } else if (util.isRegExp(actual) && util.isRegExp(expected)) { return actual.source === expected.source && actual.global === expected.global && actual.multiline === expected.multiline && actual.lastIndex === expected.lastIndex && actual.ignoreCase === expected.ignoreCase; } else if ((actual === null || typeof actual !== "object") && (expected === null || typeof expected !== "object")) { return strict2 ? actual === expected : actual == expected; } else if (isView(actual) && isView(expected) && pToString(actual) === pToString(expected) && !(actual instanceof Float32Array || actual instanceof Float64Array)) { return compare( new Uint8Array(actual.buffer), new Uint8Array(expected.buffer) ) === 0; } else if (isBuffer(actual) !== isBuffer(expected)) { return false; } else { memos = memos || { actual: [], expected: [] }; var actualIndex = memos.actual.indexOf(actual); if (actualIndex !== -1) { if (actualIndex === memos.expected.indexOf(expected)) { return true; } } memos.actual.push(actual); memos.expected.push(expected); return objEquiv(actual, expected, strict2, memos); } } function isArguments(object) { return Object.prototype.toString.call(object) == "[object Arguments]"; } function objEquiv(a, b, strict2, actualVisitedObjects) { if (a === null || a === void 0 || b === null || b === void 0) return false; if (util.isPrimitive(a) || util.isPrimitive(b)) return a === b; if (strict2 && Object.getPrototypeOf(a) !== Object.getPrototypeOf(b)) return false; var aIsArgs = isArguments(a); var bIsArgs = isArguments(b); if (aIsArgs && !bIsArgs || !aIsArgs && bIsArgs) return false; if (aIsArgs) { a = pSlice.call(a); b = pSlice.call(b); return _deepEqual(a, b, strict2); } var ka = objectKeys(a); var kb = objectKeys(b); var key, i; if (ka.length !== kb.length) return false; ka.sort(); kb.sort(); for (i = ka.length - 1; i >= 0; i--) { if (ka[i] !== kb[i]) return false; } for (i = ka.length - 1; i >= 0; i--) { key = ka[i]; if (!_deepEqual(a[key], b[key], strict2, actualVisitedObjects)) return false; } return true; } assert.notDeepEqual = function notDeepEqual(actual, expected, message) { if (_deepEqual(actual, expected, false)) { fail(actual, expected, message, "notDeepEqual", assert.notDeepEqual); } }; assert.notDeepStrictEqual = notDeepStrictEqual; function notDeepStrictEqual(actual, expected, message) { if (_deepEqual(actual, expected, true)) { fail(actual, expected, message, "notDeepStrictEqual", notDeepStrictEqual); } } assert.strictEqual = function strictEqual(actual, expected, message) { if (actual !== expected) { fail(actual, expected, message, "===", assert.strictEqual); } }; assert.notStrictEqual = function notStrictEqual(actual, expected, message) { if (actual === expected) { fail(actual, expected, message, "!==", assert.notStrictEqual); } }; function expectedException(actual, expected) { if (!actual || !expected) { return false; } if (Object.prototype.toString.call(expected) == "[object RegExp]") { return expected.test(actual); } try { if (actual instanceof expected) { return true; } } catch (e) { } if (Error.isPrototypeOf(expected)) { return false; } return expected.call({}, actual) === true; } function _tryBlock(block) { var error; try { block(); } catch (e) { error = e; } return error; } function _throws(shouldThrow, block, expected, message) { var actual; if (typeof block !== "function") { throw new TypeError('"block" argument must be a function'); } if (typeof expected === "string") { message = expected; expected = null; } actual = _tryBlock(block); message = (expected && expected.name ? " (" + expected.name + ")." : ".") + (message ? " " + message : "."); if (shouldThrow && !actual) { fail(actual, expected, "Missing expected exception" + message); } var userProvidedMessage = typeof message === "string"; var isUnwantedException = !shouldThrow && util.isError(actual); var isUnexpectedException = !shouldThrow && actual && !expected; if (isUnwantedException && userProvidedMessage && expectedException(actual, expected) || isUnexpectedException) { fail(actual, expected, "Got unwanted exception" + message); } if (shouldThrow && actual && expected && !expectedException(actual, expected) || !shouldThrow && actual) { throw actual; } } assert.throws = function(block, error, message) { _throws(true, block, error, message); }; assert.doesNotThrow = function(block, error, message) { _throws(false, block, error, message); }; assert.ifError = function(err) { if (err) throw err; }; function strict(value, message) { if (!value) fail(value, true, message, "==", strict); } assert.strict = objectAssign(strict, assert, { equal: assert.strictEqual, deepEqual: assert.deepStrictEqual, notEqual: assert.notStrictEqual, notDeepEqual: assert.notDeepStrictEqual }); assert.strict.strict = assert.strict; var objectKeys = Object.keys || function(obj) { var keys = []; for (var key in obj) { if (hasOwn.call(obj, key)) keys.push(key); } return keys; }; }).call(this); }).call(this, typeof global !== "undefined" ? global : typeof self !== "undefined" ? self : typeof window !== "undefined" ? window : {}); }, { "object-assign": 377, "util/": 85 }], 83: [function(require2, module3, exports3) { if (typeof Object.create === "function") { module3.exports = function inherits(ctor, superCtor) { ctor.super_ = superCtor; ctor.prototype = Object.create(superCtor.prototype, { constructor: { value: ctor, enumerable: false, writable: true, configurable: true } }); }; } else { module3.exports = function inherits(ctor, superCtor) { ctor.super_ = superCtor; var TempCtor = function() { }; TempCtor.prototype = superCtor.prototype; ctor.prototype = new TempCtor(); ctor.prototype.constructor = ctor; }; } }, {}], 84: [function(require2, module3, exports3) { module3.exports = function isBuffer(arg) { return arg && typeof arg === "object" && typeof arg.copy === "function" && typeof arg.fill === "function" && typeof arg.readUInt8 === "function"; }; }, {}], 85: [function(require2, module3, exports3) { (function(process, global2) { (function() { var formatRegExp = /%[sdj%]/g; exports3.format = function(f) { if (!isString(f)) { var objects = []; for (var i = 0; i < arguments.length; i++) { objects.push(inspect(arguments[i])); } return objects.join(" "); } var i = 1; var args = arguments; var len = args.length; var str = String(f).replace(formatRegExp, function(x2) { if (x2 === "%%") return "%"; if (i >= len) return x2; switch (x2) { case "%s": return String(args[i++]); case "%d": return Number(args[i++]); case "%j": try { return JSON.stringify(args[i++]); } catch (_) { return "[Circular]"; } default: return x2; } }); for (var x = args[i]; i < len; x = args[++i]) { if (isNull(x) || !isObject(x)) { str += " " + x; } else { str += " " + inspect(x); } } return str; }; exports3.deprecate = function(fn, msg) { if (isUndefined(global2.process)) { return function() { return exports3.deprecate(fn, msg).apply(this, arguments); }; } if (process.noDeprecation === true) { return fn; } var warned = false; function deprecated() { if (!warned) { if (process.throwDeprecation) { throw new Error(msg); } else if (process.traceDeprecation) { console.trace(msg); } else { console.error(msg); } warned = true; } return fn.apply(this, arguments); } return deprecated; }; var debugs = {}; var debugEnviron; exports3.debuglog = function(set) { if (isUndefined(debugEnviron)) debugEnviron = process.env.NODE_DEBUG || ""; set = set.toUpperCase(); if (!debugs[set]) { if (new RegExp("\\b" + set + "\\b", "i").test(debugEnviron)) { var pid = process.pid; debugs[set] = function() { var msg = exports3.format.apply(exports3, arguments); console.error("%s %d: %s", set, pid, msg); }; } else { debugs[set] = function() { }; } } return debugs[set]; }; function inspect(obj, opts) { var ctx = { seen: [], stylize: stylizeNoColor }; if (arguments.length >= 3) ctx.depth = arguments[2]; if (arguments.length >= 4) ctx.colors = arguments[3]; if (isBoolean(opts)) { ctx.showHidden = opts; } else if (opts) { exports3._extend(ctx, opts); } if (isUndefined(ctx.showHidden)) ctx.showHidden = false; if (isUndefined(ctx.depth)) ctx.depth = 2; if (isUndefined(ctx.colors)) ctx.colors = false; if (isUndefined(ctx.customInspect)) ctx.customInspect = true; if (ctx.colors) ctx.stylize = stylizeWithColor; return formatValue(ctx, obj, ctx.depth); } exports3.inspect = inspect; inspect.colors = { "bold": [1, 22], "italic": [3, 23], "underline": [4, 24], "inverse": [7, 27], "white": [37, 39], "grey": [90, 39], "black": [30, 39], "blue": [34, 39], "cyan": [36, 39], "green": [32, 39], "magenta": [35, 39], "red": [31, 39], "yellow": [33, 39] }; inspect.styles = { "special": "cyan", "number": "yellow", "boolean": "yellow", "undefined": "grey", "null": "bold", "string": "green", "date": "magenta", // "name": intentionally not styling "regexp": "red" }; function stylizeWithColor(str, styleType) { var style = inspect.styles[styleType]; if (style) { return "\x1B[" + inspect.colors[style][0] + "m" + str + "\x1B[" + inspect.colors[style][1] + "m"; } else { return str; } } function stylizeNoColor(str, styleType) { return str; } function arrayToHash(array) { var hash = {}; array.forEach(function(val, idx) { hash[val] = true; }); return hash; } function formatValue(ctx, value, recurseTimes) { if (ctx.customInspect && value && isFunction(value.inspect) && // Filter out the util module, it's inspect function is special value.inspect !== exports3.inspect && // Also filter out any prototype objects using the circular check. !(value.constructor && value.constructor.prototype === value)) { var ret = value.inspect(recurseTimes, ctx); if (!isString(ret)) { ret = formatValue(ctx, ret, recurseTimes); } return ret; } var primitive = formatPrimitive(ctx, value); if (primitive) { return primitive; } var keys = Object.keys(value); var visibleKeys = arrayToHash(keys); if (ctx.showHidden) { keys = Object.getOwnPropertyNames(value); } if (isError(value) && (keys.indexOf("message") >= 0 || keys.indexOf("description") >= 0)) { return formatError(value); } if (keys.length === 0) { if (isFunction(value)) { var name = value.name ? ": " + value.name : ""; return ctx.stylize("[Function" + name + "]", "special"); } if (isRegExp(value)) { return ctx.stylize(RegExp.prototype.toString.call(value), "regexp"); } if (isDate(value)) { return ctx.stylize(Date.prototype.toString.call(value), "date"); } if (isError(value)) { return formatError(value); } } var base = "", array = false, braces = ["{", "}"]; if (isArray(value)) { array = true; braces = ["[", "]"]; } if (isFunction(value)) { var n = value.name ? ": " + value.name : ""; base = " [Function" + n + "]"; } if (isRegExp(value)) { base = " " + RegExp.prototype.toString.call(value); } if (isDate(value)) { base = " " + Date.prototype.toUTCString.call(value); } if (isError(value)) { base = " " + formatError(value); } if (keys.length === 0 && (!array || value.length == 0)) { return braces[0] + base + braces[1]; } if (recurseTimes < 0) { if (isRegExp(value)) { return ctx.stylize(RegExp.prototype.toString.call(value), "regexp"); } else { return ctx.stylize("[Object]", "special"); } } ctx.seen.push(value); var output; if (array) { output = formatArray(ctx, value, recurseTimes, visibleKeys, keys); } else { output = keys.map(function(key) { return formatProperty(ctx, value, recurseTimes, visibleKeys, key, array); }); } ctx.seen.pop(); return reduceToSingleString(output, base, braces); } function formatPrimitive(ctx, value) { if (isUndefined(value)) return ctx.stylize("undefined", "undefined"); if (isString(value)) { var simple = "'" + JSON.stringify(value).replace(/^"|"$/g, "").replace(/'/g, "\\'").replace(/\\"/g, '"') + "'"; return ctx.stylize(simple, "string"); } if (isNumber(value)) return ctx.stylize("" + value, "number"); if (isBoolean(value)) return ctx.stylize("" + value, "boolean"); if (isNull(value)) return ctx.stylize("null", "null"); } function formatError(value) { return "[" + Error.prototype.toString.call(value) + "]"; } function formatArray(ctx, value, recurseTimes, visibleKeys, keys) { var output = []; for (var i = 0, l = value.length; i < l; ++i) { if (hasOwnProperty(value, String(i))) { output.push(formatProperty( ctx, value, recurseTimes, visibleKeys, String(i), true )); } else { output.push(""); } } keys.forEach(function(key) { if (!key.match(/^\d+$/)) { output.push(formatProperty( ctx, value, recurseTimes, visibleKeys, key, true )); } }); return output; } function formatProperty(ctx, value, recurseTimes, visibleKeys, key, array) { var name, str, desc; desc = Object.getOwnPropertyDescriptor(value, key) || { value: value[key] }; if (desc.get) { if (desc.set) { str = ctx.stylize("[Getter/Setter]", "special"); } else { str = ctx.stylize("[Getter]", "special"); } } else { if (desc.set) { str = ctx.stylize("[Setter]", "special"); } } if (!hasOwnProperty(visibleKeys, key)) { name = "[" + key + "]"; } if (!str) { if (ctx.seen.indexOf(desc.value) < 0) { if (isNull(recurseTimes)) { str = formatValue(ctx, desc.value, null); } else { str = formatValue(ctx, desc.value, recurseTimes - 1); } if (str.indexOf("\n") > -1) { if (array) { str = str.split("\n").map(function(line) { return " " + line; }).join("\n").substr(2); } else { str = "\n" + str.split("\n").map(function(line) { return " " + line; }).join("\n"); } } } else { str = ctx.stylize("[Circular]", "special"); } } if (isUndefined(name)) { if (array && key.match(/^\d+$/)) { return str; } name = JSON.stringify("" + key); if (name.match(/^"([a-zA-Z_][a-zA-Z_0-9]*)"$/)) { name = name.substr(1, name.length - 2); name = ctx.stylize(name, "name"); } else { name = name.replace(/'/g, "\\'").replace(/\\"/g, '"').replace(/(^"|"$)/g, "'"); name = ctx.stylize(name, "string"); } } return name + ": " + str; } function reduceToSingleString(output, base, braces) { var numLinesEst = 0; var length = output.reduce(function(prev, cur) { numLinesEst++; if (cur.indexOf("\n") >= 0) numLinesEst++; return prev + cur.replace(/\u001b\[\d\d?m/g, "").length + 1; }, 0); if (length > 60) { return braces[0] + (base === "" ? "" : base + "\n ") + " " + output.join(",\n ") + " " + braces[1]; } return braces[0] + base + " " + output.join(", ") + " " + braces[1]; } function isArray(ar) { return Array.isArray(ar); } exports3.isArray = isArray; function isBoolean(arg) { return typeof arg === "boolean"; } exports3.isBoolean = isBoolean; function isNull(arg) { return arg === null; } exports3.isNull = isNull; function isNullOrUndefined(arg) { return arg == null; } exports3.isNullOrUndefined = isNullOrUndefined; function isNumber(arg) { return typeof arg === "number"; } exports3.isNumber = isNumber; function isString(arg) { return typeof arg === "string"; } exports3.isString = isString; function isSymbol(arg) { return typeof arg === "symbol"; } exports3.isSymbol = isSymbol; function isUndefined(arg) { return arg === void 0; } exports3.isUndefined = isUndefined; function isRegExp(re) { return isObject(re) && objectToString(re) === "[object RegExp]"; } exports3.isRegExp = isRegExp; function isObject(arg) { return typeof arg === "object" && arg !== null; } exports3.isObject = isObject; function isDate(d) { return isObject(d) && objectToString(d) === "[object Date]"; } exports3.isDate = isDate; function isError(e) { return isObject(e) && (objectToString(e) === "[object Error]" || e instanceof Error); } exports3.isError = isError; function isFunction(arg) { return typeof arg === "function"; } exports3.isFunction = isFunction; function isPrimitive(arg) { return arg === null || typeof arg === "boolean" || typeof arg === "number" || typeof arg === "string" || typeof arg === "symbol" || // ES6 symbol typeof arg === "undefined"; } exports3.isPrimitive = isPrimitive; exports3.isBuffer = require2("./support/isBuffer"); function objectToString(o) { return Object.prototype.toString.call(o); } function pad(n) { return n < 10 ? "0" + n.toString(10) : n.toString(10); } var months = [ "Jan", "Feb", "Mar", "Apr", "May", "Jun", "Jul", "Aug", "Sep", "Oct", "Nov", "Dec" ]; function timestamp() { var d = /* @__PURE__ */ new Date(); var time = [ pad(d.getHours()), pad(d.getMinutes()), pad(d.getSeconds()) ].join(":"); return [d.getDate(), months[d.getMonth()], time].join(" "); } exports3.log = function() { console.log("%s - %s", timestamp(), exports3.format.apply(exports3, arguments)); }; exports3.inherits = require2("inherits"); exports3._extend = function(origin, add) { if (!add || !isObject(add)) return origin; var keys = Object.keys(add); var i = keys.length; while (i--) { origin[keys[i]] = add[keys[i]]; } return origin; }; function hasOwnProperty(obj, prop) { return Object.prototype.hasOwnProperty.call(obj, prop); } }).call(this); }).call(this, require2("_process"), typeof global !== "undefined" ? global : typeof self !== "undefined" ? self : typeof window !== "undefined" ? window : {}); }, { "./support/isBuffer": 84, "_process": 467, "inherits": 83 }], 86: [function(require2, module3, exports3) { (function(global2) { (function() { "use strict"; var possibleNames = [ "BigInt64Array", "BigUint64Array", "Float32Array", "Float64Array", "Int16Array", "Int32Array", "Int8Array", "Uint16Array", "Uint32Array", "Uint8Array", "Uint8ClampedArray" ]; var g = typeof globalThis === "undefined" ? global2 : globalThis; module3.exports = function availableTypedArrays() { var out = []; for (var i = 0; i < possibleNames.length; i++) { if (typeof g[possibleNames[i]] === "function") { out[out.length] = possibleNames[i]; } } return out; }; }).call(this); }).call(this, typeof global !== "undefined" ? global : typeof self !== "undefined" ? self : typeof window !== "undefined" ? window : {}); }, {}], 87: [function(require2, module3, exports3) { "use strict"; exports3.byteLength = byteLength; exports3.toByteArray = toByteArray; exports3.fromByteArray = fromByteArray; var lookup = []; var revLookup = []; var Arr = typeof Uint8Array !== "undefined" ? Uint8Array : Array; var code = "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/"; for (var i = 0, len = code.length; i < len; ++i) { lookup[i] = code[i]; revLookup[code.charCodeAt(i)] = i; } revLookup["-".charCodeAt(0)] = 62; revLookup["_".charCodeAt(0)] = 63; function getLens(b64) { var len2 = b64.length; if (len2 % 4 > 0) { throw new Error("Invalid string. Length must be a multiple of 4"); } var validLen = b64.indexOf("="); if (validLen === -1) validLen = len2; var placeHoldersLen = validLen === len2 ? 0 : 4 - validLen % 4; return [validLen, placeHoldersLen]; } function byteLength(b64) { var lens = getLens(b64); var validLen = lens[0]; var placeHoldersLen = lens[1]; return (validLen + placeHoldersLen) * 3 / 4 - placeHoldersLen; } function _byteLength(b64, validLen, placeHoldersLen) { return (validLen + placeHoldersLen) * 3 / 4 - placeHoldersLen; } function toByteArray(b64) { var tmp; var lens = getLens(b64); var validLen = lens[0]; var placeHoldersLen = lens[1]; var arr = new Arr(_byteLength(b64, validLen, placeHoldersLen)); var curByte = 0; var len2 = placeHoldersLen > 0 ? validLen - 4 : validLen; var i2; for (i2 = 0; i2 < len2; i2 += 4) { tmp = revLookup[b64.charCodeAt(i2)] << 18 | revLookup[b64.charCodeAt(i2 + 1)] << 12 | revLookup[b64.charCodeAt(i2 + 2)] << 6 | revLookup[b64.charCodeAt(i2 + 3)]; arr[curByte++] = tmp >> 16 & 255; arr[curByte++] = tmp >> 8 & 255; arr[curByte++] = tmp & 255; } if (placeHoldersLen === 2) { tmp = revLookup[b64.charCodeAt(i2)] << 2 | revLookup[b64.charCodeAt(i2 + 1)] >> 4; arr[curByte++] = tmp & 255; } if (placeHoldersLen === 1) { tmp = revLookup[b64.charCodeAt(i2)] << 10 | revLookup[b64.charCodeAt(i2 + 1)] << 4 | revLookup[b64.charCodeAt(i2 + 2)] >> 2; arr[curByte++] = tmp >> 8 & 255; arr[curByte++] = tmp & 255; } return arr; } function tripletToBase64(num) { return lookup[num >> 18 & 63] + lookup[num >> 12 & 63] + lookup[num >> 6 & 63] + lookup[num & 63]; } function encodeChunk(uint8, start, end) { var tmp; var output = []; for (var i2 = start; i2 < end; i2 += 3) { tmp = (uint8[i2] << 16 & 16711680) + (uint8[i2 + 1] << 8 & 65280) + (uint8[i2 + 2] & 255); output.push(tripletToBase64(tmp)); } return output.join(""); } function fromByteArray(uint8) { var tmp; var len2 = uint8.length; var extraBytes = len2 % 3; var parts = []; var maxChunkLength = 16383; for (var i2 = 0, len22 = len2 - extraBytes; i2 < len22; i2 += maxChunkLength) { parts.push(encodeChunk(uint8, i2, i2 + maxChunkLength > len22 ? len22 : i2 + maxChunkLength)); } if (extraBytes === 1) { tmp = uint8[len2 - 1]; parts.push( lookup[tmp >> 2] + lookup[tmp << 4 & 63] + "==" ); } else if (extraBytes === 2) { tmp = (uint8[len2 - 2] << 8) + uint8[len2 - 1]; parts.push( lookup[tmp >> 10] + lookup[tmp >> 4 & 63] + lookup[tmp << 2 & 63] + "=" ); } return parts.join(""); } }, {}], 88: [function(require2, module3, exports3) { !function(root, name, definition) { if (typeof module3 != "undefined" && module3.exports) module3.exports = definition(); else if (typeof define2 == "function" && define2.amd) define2(name, definition); else root[name] = definition(); }(this, "bowser", function() { var t = true; function detect(ua) { function getFirstMatch(regex) { var match = ua.match(regex); return match && match.length > 1 && match[1] || ""; } function getSecondMatch(regex) { var match = ua.match(regex); return match && match.length > 1 && match[2] || ""; } var iosdevice = getFirstMatch(/(ipod|iphone|ipad)/i).toLowerCase(), likeAndroid = /like android/i.test(ua), android = !likeAndroid && /android/i.test(ua), nexusMobile = /nexus\s*[0-6]\s*/i.test(ua), nexusTablet = !nexusMobile && /nexus\s*[0-9]+/i.test(ua), chromeos = /CrOS/.test(ua), silk = /silk/i.test(ua), sailfish = /sailfish/i.test(ua), tizen = /tizen/i.test(ua), webos = /(web|hpw)(o|0)s/i.test(ua), windowsphone = /windows phone/i.test(ua), samsungBrowser = /SamsungBrowser/i.test(ua), windows = !windowsphone && /windows/i.test(ua), mac = !iosdevice && !silk && /macintosh/i.test(ua), linux = !android && !sailfish && !tizen && !webos && /linux/i.test(ua), edgeVersion = getSecondMatch(/edg([ea]|ios)\/(\d+(\.\d+)?)/i), versionIdentifier = getFirstMatch(/version\/(\d+(\.\d+)?)/i), tablet = /tablet/i.test(ua) && !/tablet pc/i.test(ua), mobile = !tablet && /[^-]mobi/i.test(ua), xbox = /xbox/i.test(ua), result; if (/opera/i.test(ua)) { result = { name: "Opera", opera: t, version: versionIdentifier || getFirstMatch(/(?:opera|opr|opios)[\s\/](\d+(\.\d+)?)/i) }; } else if (/opr\/|opios/i.test(ua)) { result = { name: "Opera", opera: t, version: getFirstMatch(/(?:opr|opios)[\s\/](\d+(\.\d+)?)/i) || versionIdentifier }; } else if (/SamsungBrowser/i.test(ua)) { result = { name: "Samsung Internet for Android", samsungBrowser: t, version: versionIdentifier || getFirstMatch(/(?:SamsungBrowser)[\s\/](\d+(\.\d+)?)/i) }; } else if (/Whale/i.test(ua)) { result = { name: "NAVER Whale browser", whale: t, version: getFirstMatch(/(?:whale)[\s\/](\d+(?:\.\d+)+)/i) }; } else if (/MZBrowser/i.test(ua)) { result = { name: "MZ Browser", mzbrowser: t, version: getFirstMatch(/(?:MZBrowser)[\s\/](\d+(?:\.\d+)+)/i) }; } else if (/coast/i.test(ua)) { result = { name: "Opera Coast", coast: t, version: versionIdentifier || getFirstMatch(/(?:coast)[\s\/](\d+(\.\d+)?)/i) }; } else if (/focus/i.test(ua)) { result = { name: "Focus", focus: t, version: getFirstMatch(/(?:focus)[\s\/](\d+(?:\.\d+)+)/i) }; } else if (/yabrowser/i.test(ua)) { result = { name: "Yandex Browser", yandexbrowser: t, version: versionIdentifier || getFirstMatch(/(?:yabrowser)[\s\/](\d+(\.\d+)?)/i) }; } else if (/ucbrowser/i.test(ua)) { result = { name: "UC Browser", ucbrowser: t, version: getFirstMatch(/(?:ucbrowser)[\s\/](\d+(?:\.\d+)+)/i) }; } else if (/mxios/i.test(ua)) { result = { name: "Maxthon", maxthon: t, version: getFirstMatch(/(?:mxios)[\s\/](\d+(?:\.\d+)+)/i) }; } else if (/epiphany/i.test(ua)) { result = { name: "Epiphany", epiphany: t, version: getFirstMatch(/(?:epiphany)[\s\/](\d+(?:\.\d+)+)/i) }; } else if (/puffin/i.test(ua)) { result = { name: "Puffin", puffin: t, version: getFirstMatch(/(?:puffin)[\s\/](\d+(?:\.\d+)?)/i) }; } else if (/sleipnir/i.test(ua)) { result = { name: "Sleipnir", sleipnir: t, version: getFirstMatch(/(?:sleipnir)[\s\/](\d+(?:\.\d+)+)/i) }; } else if (/k-meleon/i.test(ua)) { result = { name: "K-Meleon", kMeleon: t, version: getFirstMatch(/(?:k-meleon)[\s\/](\d+(?:\.\d+)+)/i) }; } else if (windowsphone) { result = { name: "Windows Phone", osname: "Windows Phone", windowsphone: t }; if (edgeVersion) { result.msedge = t; result.version = edgeVersion; } else { result.msie = t; result.version = getFirstMatch(/iemobile\/(\d+(\.\d+)?)/i); } } else if (/msie|trident/i.test(ua)) { result = { name: "Internet Explorer", msie: t, version: getFirstMatch(/(?:msie |rv:)(\d+(\.\d+)?)/i) }; } else if (chromeos) { result = { name: "Chrome", osname: "Chrome OS", chromeos: t, chromeBook: t, chrome: t, version: getFirstMatch(/(?:chrome|crios|crmo)\/(\d+(\.\d+)?)/i) }; } else if (/edg([ea]|ios)/i.test(ua)) { result = { name: "Microsoft Edge", msedge: t, version: edgeVersion }; } else if (/vivaldi/i.test(ua)) { result = { name: "Vivaldi", vivaldi: t, version: getFirstMatch(/vivaldi\/(\d+(\.\d+)?)/i) || versionIdentifier }; } else if (sailfish) { result = { name: "Sailfish", osname: "Sailfish OS", sailfish: t, version: getFirstMatch(/sailfish\s?browser\/(\d+(\.\d+)?)/i) }; } else if (/seamonkey\//i.test(ua)) { result = { name: "SeaMonkey", seamonkey: t, version: getFirstMatch(/seamonkey\/(\d+(\.\d+)?)/i) }; } else if (/firefox|iceweasel|fxios/i.test(ua)) { result = { name: "Firefox", firefox: t, version: getFirstMatch(/(?:firefox|iceweasel|fxios)[ \/](\d+(\.\d+)?)/i) }; if (/\((mobile|tablet);[^\)]*rv:[\d\.]+\)/i.test(ua)) { result.firefoxos = t; result.osname = "Firefox OS"; } } else if (silk) { result = { name: "Amazon Silk", silk: t, version: getFirstMatch(/silk\/(\d+(\.\d+)?)/i) }; } else if (/phantom/i.test(ua)) { result = { name: "PhantomJS", phantom: t, version: getFirstMatch(/phantomjs\/(\d+(\.\d+)?)/i) }; } else if (/slimerjs/i.test(ua)) { result = { name: "SlimerJS", slimer: t, version: getFirstMatch(/slimerjs\/(\d+(\.\d+)?)/i) }; } else if (/blackberry|\bbb\d+/i.test(ua) || /rim\stablet/i.test(ua)) { result = { name: "BlackBerry", osname: "BlackBerry OS", blackberry: t, version: versionIdentifier || getFirstMatch(/blackberry[\d]+\/(\d+(\.\d+)?)/i) }; } else if (webos) { result = { name: "WebOS", osname: "WebOS", webos: t, version: versionIdentifier || getFirstMatch(/w(?:eb)?osbrowser\/(\d+(\.\d+)?)/i) }; /touchpad\//i.test(ua) && (result.touchpad = t); } else if (/bada/i.test(ua)) { result = { name: "Bada", osname: "Bada", bada: t, version: getFirstMatch(/dolfin\/(\d+(\.\d+)?)/i) }; } else if (tizen) { result = { name: "Tizen", osname: "Tizen", tizen: t, version: getFirstMatch(/(?:tizen\s?)?browser\/(\d+(\.\d+)?)/i) || versionIdentifier }; } else if (/qupzilla/i.test(ua)) { result = { name: "QupZilla", qupzilla: t, version: getFirstMatch(/(?:qupzilla)[\s\/](\d+(?:\.\d+)+)/i) || versionIdentifier }; } else if (/chromium/i.test(ua)) { result = { name: "Chromium", chromium: t, version: getFirstMatch(/(?:chromium)[\s\/](\d+(?:\.\d+)?)/i) || versionIdentifier }; } else if (/chrome|crios|crmo/i.test(ua)) { result = { name: "Chrome", chrome: t, version: getFirstMatch(/(?:chrome|crios|crmo)\/(\d+(\.\d+)?)/i) }; } else if (android) { result = { name: "Android", version: versionIdentifier }; } else if (/safari|applewebkit/i.test(ua)) { result = { name: "Safari", safari: t }; if (versionIdentifier) { result.version = versionIdentifier; } } else if (iosdevice) { result = { name: iosdevice == "iphone" ? "iPhone" : iosdevice == "ipad" ? "iPad" : "iPod" }; if (versionIdentifier) { result.version = versionIdentifier; } } else if (/googlebot/i.test(ua)) { result = { name: "Googlebot", googlebot: t, version: getFirstMatch(/googlebot\/(\d+(\.\d+))/i) || versionIdentifier }; } else { result = { name: getFirstMatch(/^(.*)\/(.*) /), version: getSecondMatch(/^(.*)\/(.*) /) }; } if (!result.msedge && /(apple)?webkit/i.test(ua)) { if (/(apple)?webkit\/537\.36/i.test(ua)) { result.name = result.name || "Blink"; result.blink = t; } else { result.name = result.name || "Webkit"; result.webkit = t; } if (!result.version && versionIdentifier) { result.version = versionIdentifier; } } else if (!result.opera && /gecko\//i.test(ua)) { result.name = result.name || "Gecko"; result.gecko = t; result.version = result.version || getFirstMatch(/gecko\/(\d+(\.\d+)?)/i); } if (!result.windowsphone && (android || result.silk)) { result.android = t; result.osname = "Android"; } else if (!result.windowsphone && iosdevice) { result[iosdevice] = t; result.ios = t; result.osname = "iOS"; } else if (mac) { result.mac = t; result.osname = "macOS"; } else if (xbox) { result.xbox = t; result.osname = "Xbox"; } else if (windows) { result.windows = t; result.osname = "Windows"; } else if (linux) { result.linux = t; result.osname = "Linux"; } function getWindowsVersion(s) { switch (s) { case "NT": return "NT"; case "XP": return "XP"; case "NT 5.0": return "2000"; case "NT 5.1": return "XP"; case "NT 5.2": return "2003"; case "NT 6.0": return "Vista"; case "NT 6.1": return "7"; case "NT 6.2": return "8"; case "NT 6.3": return "8.1"; case "NT 10.0": return "10"; default: return void 0; } } var osVersion = ""; if (result.windows) { osVersion = getWindowsVersion(getFirstMatch(/Windows ((NT|XP)( \d\d?.\d)?)/i)); } else if (result.windowsphone) { osVersion = getFirstMatch(/windows phone (?:os)?\s?(\d+(\.\d+)*)/i); } else if (result.mac) { osVersion = getFirstMatch(/Mac OS X (\d+([_\.\s]\d+)*)/i); osVersion = osVersion.replace(/[_\s]/g, "."); } else if (iosdevice) { osVersion = getFirstMatch(/os (\d+([_\s]\d+)*) like mac os x/i); osVersion = osVersion.replace(/[_\s]/g, "."); } else if (android) { osVersion = getFirstMatch(/android[ \/-](\d+(\.\d+)*)/i); } else if (result.webos) { osVersion = getFirstMatch(/(?:web|hpw)os\/(\d+(\.\d+)*)/i); } else if (result.blackberry) { osVersion = getFirstMatch(/rim\stablet\sos\s(\d+(\.\d+)*)/i); } else if (result.bada) { osVersion = getFirstMatch(/bada\/(\d+(\.\d+)*)/i); } else if (result.tizen) { osVersion = getFirstMatch(/tizen[\/\s](\d+(\.\d+)*)/i); } if (osVersion) { result.osversion = osVersion; } var osMajorVersion = !result.windows && osVersion.split(".")[0]; if (tablet || nexusTablet || iosdevice == "ipad" || android && (osMajorVersion == 3 || osMajorVersion >= 4 && !mobile) || result.silk) { result.tablet = t; } else if (mobile || iosdevice == "iphone" || iosdevice == "ipod" || android || nexusMobile || result.blackberry || result.webos || result.bada) { result.mobile = t; } if (result.msedge || result.msie && result.version >= 10 || result.yandexbrowser && result.version >= 15 || result.vivaldi && result.version >= 1 || result.chrome && result.version >= 20 || result.samsungBrowser && result.version >= 4 || result.whale && compareVersions([result.version, "1.0"]) === 1 || result.mzbrowser && compareVersions([result.version, "6.0"]) === 1 || result.focus && compareVersions([result.version, "1.0"]) === 1 || result.firefox && result.version >= 20 || result.safari && result.version >= 6 || result.opera && result.version >= 10 || result.ios && result.osversion && result.osversion.split(".")[0] >= 6 || result.blackberry && result.version >= 10.1 || result.chromium && result.version >= 20) { result.a = t; } else if (result.msie && result.version < 10 || result.chrome && result.version < 20 || result.firefox && result.version < 20 || result.safari && result.version < 6 || result.opera && result.version < 10 || result.ios && result.osversion && result.osversion.split(".")[0] < 6 || result.chromium && result.version < 20) { result.c = t; } else result.x = t; return result; } var bowser = detect(typeof navigator !== "undefined" ? navigator.userAgent || "" : ""); bowser.test = function(browserList) { for (var i = 0; i < browserList.length; ++i) { var browserItem = browserList[i]; if (typeof browserItem === "string") { if (browserItem in bowser) { return true; } } } return false; }; function getVersionPrecision(version) { return version.split(".").length; } function map(arr, iterator) { var result = [], i; if (Array.prototype.map) { return Array.prototype.map.call(arr, iterator); } for (i = 0; i < arr.length; i++) { result.push(iterator(arr[i])); } return result; } function compareVersions(versions) { var precision = Math.max(getVersionPrecision(versions[0]), getVersionPrecision(versions[1])); var chunks = map(versions, function(version) { var delta = precision - getVersionPrecision(version); version = version + new Array(delta + 1).join(".0"); return map(version.split("."), function(chunk) { return new Array(20 - chunk.length).join("0") + chunk; }).reverse(); }); while (--precision >= 0) { if (chunks[0][precision] > chunks[1][precision]) { return 1; } else if (chunks[0][precision] === chunks[1][precision]) { if (precision === 0) { return 0; } } else { return -1; } } } function isUnsupportedBrowser(minVersions, strictMode, ua) { var _bowser = bowser; if (typeof strictMode === "string") { ua = strictMode; strictMode = void 0; } if (strictMode === void 0) { strictMode = false; } if (ua) { _bowser = detect(ua); } var version = "" + _bowser.version; for (var browser in minVersions) { if (minVersions.hasOwnProperty(browser)) { if (_bowser[browser]) { if (typeof minVersions[browser] !== "string") { throw new Error("Browser version in the minVersion map should be a string: " + browser + ": " + String(minVersions)); } return compareVersions([version, minVersions[browser]]) < 0; } } } return strictMode; } function check(minVersions, strictMode, ua) { return !isUnsupportedBrowser(minVersions, strictMode, ua); } bowser.isUnsupportedBrowser = isUnsupportedBrowser; bowser.compareVersions = compareVersions; bowser.check = check; bowser._detect = detect; bowser.detect = detect; return bowser; }); }, {}], 89: [function(require2, module3, exports3) { }, {}], 90: [function(require2, module3, exports3) { (function(Buffer) { (function() { "use strict"; var base64 = require2("base64-js"); var ieee754 = require2("ieee754"); exports3.Buffer = Buffer2; exports3.SlowBuffer = SlowBuffer; exports3.INSPECT_MAX_BYTES = 50; var K_MAX_LENGTH = 2147483647; exports3.kMaxLength = K_MAX_LENGTH; Buffer2.TYPED_ARRAY_SUPPORT = typedArraySupport(); if (!Buffer2.TYPED_ARRAY_SUPPORT && typeof console !== "undefined" && typeof console.error === "function") { console.error( "This browser lacks typed array (Uint8Array) support which is required by `buffer` v5.x. Use `buffer` v4.x if you require old browser support." ); } function typedArraySupport() { try { var arr = new Uint8Array(1); arr.__proto__ = { __proto__: Uint8Array.prototype, foo: function() { return 42; } }; return arr.foo() === 42; } catch (e) { return false; } } Object.defineProperty(Buffer2.prototype, "parent", { enumerable: true, get: function() { if (!Buffer2.isBuffer(this)) return void 0; return this.buffer; } }); Object.defineProperty(Buffer2.prototype, "offset", { enumerable: true, get: function() { if (!Buffer2.isBuffer(this)) return void 0; return this.byteOffset; } }); function createBuffer(length) { if (length > K_MAX_LENGTH) { throw new RangeError('The value "' + length + '" is invalid for option "size"'); } var buf = new Uint8Array(length); buf.__proto__ = Buffer2.prototype; return buf; } function Buffer2(arg, encodingOrOffset, length) { if (typeof arg === "number") { if (typeof encodingOrOffset === "string") { throw new TypeError( 'The "string" argument must be of type string. Received type number' ); } return allocUnsafe(arg); } return from(arg, encodingOrOffset, length); } if (typeof Symbol !== "undefined" && Symbol.species != null && Buffer2[Symbol.species] === Buffer2) { Object.defineProperty(Buffer2, Symbol.species, { value: null, configurable: true, enumerable: false, writable: false }); } Buffer2.poolSize = 8192; function from(value, encodingOrOffset, length) { if (typeof value === "string") { return fromString(value, encodingOrOffset); } if (ArrayBuffer.isView(value)) { return fromArrayLike(value); } if (value == null) { throw TypeError( "The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type " + typeof value ); } if (isInstance(value, ArrayBuffer) || value && isInstance(value.buffer, ArrayBuffer)) { return fromArrayBuffer(value, encodingOrOffset, length); } if (typeof value === "number") { throw new TypeError( 'The "value" argument must not be of type number. Received type number' ); } var valueOf = value.valueOf && value.valueOf(); if (valueOf != null && valueOf !== value) { return Buffer2.from(valueOf, encodingOrOffset, length); } var b = fromObject(value); if (b) return b; if (typeof Symbol !== "undefined" && Symbol.toPrimitive != null && typeof value[Symbol.toPrimitive] === "function") { return Buffer2.from( value[Symbol.toPrimitive]("string"), encodingOrOffset, length ); } throw new TypeError( "The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type " + typeof value ); } Buffer2.from = function(value, encodingOrOffset, length) { return from(value, encodingOrOffset, length); }; Buffer2.prototype.__proto__ = Uint8Array.prototype; Buffer2.__proto__ = Uint8Array; function assertSize(size) { if (typeof size !== "number") { throw new TypeError('"size" argument must be of type number'); } else if (size < 0) { throw new RangeError('The value "' + size + '" is invalid for option "size"'); } } function alloc(size, fill, encoding) { assertSize(size); if (size <= 0) { return createBuffer(size); } if (fill !== void 0) { return typeof encoding === "string" ? createBuffer(size).fill(fill, encoding) : createBuffer(size).fill(fill); } return createBuffer(size); } Buffer2.alloc = function(size, fill, encoding) { return alloc(size, fill, encoding); }; function allocUnsafe(size) { assertSize(size); return createBuffer(size < 0 ? 0 : checked(size) | 0); } Buffer2.allocUnsafe = function(size) { return allocUnsafe(size); }; Buffer2.allocUnsafeSlow = function(size) { return allocUnsafe(size); }; function fromString(string, encoding) { if (typeof encoding !== "string" || encoding === "") { encoding = "utf8"; } if (!Buffer2.isEncoding(encoding)) { throw new TypeError("Unknown encoding: " + encoding); } var length = byteLength(string, encoding) | 0; var buf = createBuffer(length); var actual = buf.write(string, encoding); if (actual !== length) { buf = buf.slice(0, actual); } return buf; } function fromArrayLike(array) { var length = array.length < 0 ? 0 : checked(array.length) | 0; var buf = createBuffer(length); for (var i = 0; i < length; i += 1) { buf[i] = array[i] & 255; } return buf; } function fromArrayBuffer(array, byteOffset, length) { if (byteOffset < 0 || array.byteLength < byteOffset) { throw new RangeError('"offset" is outside of buffer bounds'); } if (array.byteLength < byteOffset + (length || 0)) { throw new RangeError('"length" is outside of buffer bounds'); } var buf; if (byteOffset === void 0 && length === void 0) { buf = new Uint8Array(array); } else if (length === void 0) { buf = new Uint8Array(array, byteOffset); } else { buf = new Uint8Array(array, byteOffset, length); } buf.__proto__ = Buffer2.prototype; return buf; } function fromObject(obj) { if (Buffer2.isBuffer(obj)) { var len = checked(obj.length) | 0; var buf = createBuffer(len); if (buf.length === 0) { return buf; } obj.copy(buf, 0, 0, len); return buf; } if (obj.length !== void 0) { if (typeof obj.length !== "number" || numberIsNaN(obj.length)) { return createBuffer(0); } return fromArrayLike(obj); } if (obj.type === "Buffer" && Array.isArray(obj.data)) { return fromArrayLike(obj.data); } } function checked(length) { if (length >= K_MAX_LENGTH) { throw new RangeError("Attempt to allocate Buffer larger than maximum size: 0x" + K_MAX_LENGTH.toString(16) + " bytes"); } return length | 0; } function SlowBuffer(length) { if (+length != length) { length = 0; } return Buffer2.alloc(+length); } Buffer2.isBuffer = function isBuffer(b) { return b != null && b._isBuffer === true && b !== Buffer2.prototype; }; Buffer2.compare = function compare(a, b) { if (isInstance(a, Uint8Array)) a = Buffer2.from(a, a.offset, a.byteLength); if (isInstance(b, Uint8Array)) b = Buffer2.from(b, b.offset, b.byteLength); if (!Buffer2.isBuffer(a) || !Buffer2.isBuffer(b)) { throw new TypeError( 'The "buf1", "buf2" arguments must be one of type Buffer or Uint8Array' ); } if (a === b) return 0; var x = a.length; var y = b.length; for (var i = 0, len = Math.min(x, y); i < len; ++i) { if (a[i] !== b[i]) { x = a[i]; y = b[i]; break; } } if (x < y) return -1; if (y < x) return 1; return 0; }; Buffer2.isEncoding = function isEncoding(encoding) { switch (String(encoding).toLowerCase()) { case "hex": case "utf8": case "utf-8": case "ascii": case "latin1": case "binary": case "base64": case "ucs2": case "ucs-2": case "utf16le": case "utf-16le": return true; default: return false; } }; Buffer2.concat = function concat(list, length) { if (!Array.isArray(list)) { throw new TypeError('"list" argument must be an Array of Buffers'); } if (list.length === 0) { return Buffer2.alloc(0); } var i; if (length === void 0) { length = 0; for (i = 0; i < list.length; ++i) { length += list[i].length; } } var buffer = Buffer2.allocUnsafe(length); var pos = 0; for (i = 0; i < list.length; ++i) { var buf = list[i]; if (isInstance(buf, Uint8Array)) { buf = Buffer2.from(buf); } if (!Buffer2.isBuffer(buf)) { throw new TypeError('"list" argument must be an Array of Buffers'); } buf.copy(buffer, pos); pos += buf.length; } return buffer; }; function byteLength(string, encoding) { if (Buffer2.isBuffer(string)) { return string.length; } if (ArrayBuffer.isView(string) || isInstance(string, ArrayBuffer)) { return string.byteLength; } if (typeof string !== "string") { throw new TypeError( 'The "string" argument must be one of type string, Buffer, or ArrayBuffer. Received type ' + typeof string ); } var len = string.length; var mustMatch = arguments.length > 2 && arguments[2] === true; if (!mustMatch && len === 0) return 0; var loweredCase = false; for (; ; ) { switch (encoding) { case "ascii": case "latin1": case "binary": return len; case "utf8": case "utf-8": return utf8ToBytes(string).length; case "ucs2": case "ucs-2": case "utf16le": case "utf-16le": return len * 2; case "hex": return len >>> 1; case "base64": return base64ToBytes(string).length; default: if (loweredCase) { return mustMatch ? -1 : utf8ToBytes(string).length; } encoding = ("" + encoding).toLowerCase(); loweredCase = true; } } } Buffer2.byteLength = byteLength; function slowToString(encoding, start, end) { var loweredCase = false; if (start === void 0 || start < 0) { start = 0; } if (start > this.length) { return ""; } if (end === void 0 || end > this.length) { end = this.length; } if (end <= 0) { return ""; } end >>>= 0; start >>>= 0; if (end <= start) { return ""; } if (!encoding) encoding = "utf8"; while (true) { switch (encoding) { case "hex": return hexSlice(this, start, end); case "utf8": case "utf-8": return utf8Slice(this, start, end); case "ascii": return asciiSlice(this, start, end); case "latin1": case "binary": return latin1Slice(this, start, end); case "base64": return base64Slice(this, start, end); case "ucs2": case "ucs-2": case "utf16le": case "utf-16le": return utf16leSlice(this, start, end); default: if (loweredCase) throw new TypeError("Unknown encoding: " + encoding); encoding = (encoding + "").toLowerCase(); loweredCase = true; } } } Buffer2.prototype._isBuffer = true; function swap(b, n, m) { var i = b[n]; b[n] = b[m]; b[m] = i; } Buffer2.prototype.swap16 = function swap16() { var len = this.length; if (len % 2 !== 0) { throw new RangeError("Buffer size must be a multiple of 16-bits"); } for (var i = 0; i < len; i += 2) { swap(this, i, i + 1); } return this; }; Buffer2.prototype.swap32 = function swap32() { var len = this.length; if (len % 4 !== 0) { throw new RangeError("Buffer size must be a multiple of 32-bits"); } for (var i = 0; i < len; i += 4) { swap(this, i, i + 3); swap(this, i + 1, i + 2); } return this; }; Buffer2.prototype.swap64 = function swap64() { var len = this.length; if (len % 8 !== 0) { throw new RangeError("Buffer size must be a multiple of 64-bits"); } for (var i = 0; i < len; i += 8) { swap(this, i, i + 7); swap(this, i + 1, i + 6); swap(this, i + 2, i + 5); swap(this, i + 3, i + 4); } return this; }; Buffer2.prototype.toString = function toString() { var length = this.length; if (length === 0) return ""; if (arguments.length === 0) return utf8Slice(this, 0, length); return slowToString.apply(this, arguments); }; Buffer2.prototype.toLocaleString = Buffer2.prototype.toString; Buffer2.prototype.equals = function equals(b) { if (!Buffer2.isBuffer(b)) throw new TypeError("Argument must be a Buffer"); if (this === b) return true; return Buffer2.compare(this, b) === 0; }; Buffer2.prototype.inspect = function inspect() { var str = ""; var max = exports3.INSPECT_MAX_BYTES; str = this.toString("hex", 0, max).replace(/(.{2})/g, "$1 ").trim(); if (this.length > max) str += " ... "; return ""; }; Buffer2.prototype.compare = function compare(target, start, end, thisStart, thisEnd) { if (isInstance(target, Uint8Array)) { target = Buffer2.from(target, target.offset, target.byteLength); } if (!Buffer2.isBuffer(target)) { throw new TypeError( 'The "target" argument must be one of type Buffer or Uint8Array. Received type ' + typeof target ); } if (start === void 0) { start = 0; } if (end === void 0) { end = target ? target.length : 0; } if (thisStart === void 0) { thisStart = 0; } if (thisEnd === void 0) { thisEnd = this.length; } if (start < 0 || end > target.length || thisStart < 0 || thisEnd > this.length) { throw new RangeError("out of range index"); } if (thisStart >= thisEnd && start >= end) { return 0; } if (thisStart >= thisEnd) { return -1; } if (start >= end) { return 1; } start >>>= 0; end >>>= 0; thisStart >>>= 0; thisEnd >>>= 0; if (this === target) return 0; var x = thisEnd - thisStart; var y = end - start; var len = Math.min(x, y); var thisCopy = this.slice(thisStart, thisEnd); var targetCopy = target.slice(start, end); for (var i = 0; i < len; ++i) { if (thisCopy[i] !== targetCopy[i]) { x = thisCopy[i]; y = targetCopy[i]; break; } } if (x < y) return -1; if (y < x) return 1; return 0; }; function bidirectionalIndexOf(buffer, val, byteOffset, encoding, dir) { if (buffer.length === 0) return -1; if (typeof byteOffset === "string") { encoding = byteOffset; byteOffset = 0; } else if (byteOffset > 2147483647) { byteOffset = 2147483647; } else if (byteOffset < -2147483648) { byteOffset = -2147483648; } byteOffset = +byteOffset; if (numberIsNaN(byteOffset)) { byteOffset = dir ? 0 : buffer.length - 1; } if (byteOffset < 0) byteOffset = buffer.length + byteOffset; if (byteOffset >= buffer.length) { if (dir) return -1; else byteOffset = buffer.length - 1; } else if (byteOffset < 0) { if (dir) byteOffset = 0; else return -1; } if (typeof val === "string") { val = Buffer2.from(val, encoding); } if (Buffer2.isBuffer(val)) { if (val.length === 0) { return -1; } return arrayIndexOf(buffer, val, byteOffset, encoding, dir); } else if (typeof val === "number") { val = val & 255; if (typeof Uint8Array.prototype.indexOf === "function") { if (dir) { return Uint8Array.prototype.indexOf.call(buffer, val, byteOffset); } else { return Uint8Array.prototype.lastIndexOf.call(buffer, val, byteOffset); } } return arrayIndexOf(buffer, [val], byteOffset, encoding, dir); } throw new TypeError("val must be string, number or Buffer"); } function arrayIndexOf(arr, val, byteOffset, encoding, dir) { var indexSize = 1; var arrLength = arr.length; var valLength = val.length; if (encoding !== void 0) { encoding = String(encoding).toLowerCase(); if (encoding === "ucs2" || encoding === "ucs-2" || encoding === "utf16le" || encoding === "utf-16le") { if (arr.length < 2 || val.length < 2) { return -1; } indexSize = 2; arrLength /= 2; valLength /= 2; byteOffset /= 2; } } function read(buf, i2) { if (indexSize === 1) { return buf[i2]; } else { return buf.readUInt16BE(i2 * indexSize); } } var i; if (dir) { var foundIndex = -1; for (i = byteOffset; i < arrLength; i++) { if (read(arr, i) === read(val, foundIndex === -1 ? 0 : i - foundIndex)) { if (foundIndex === -1) foundIndex = i; if (i - foundIndex + 1 === valLength) return foundIndex * indexSize; } else { if (foundIndex !== -1) i -= i - foundIndex; foundIndex = -1; } } } else { if (byteOffset + valLength > arrLength) byteOffset = arrLength - valLength; for (i = byteOffset; i >= 0; i--) { var found = true; for (var j = 0; j < valLength; j++) { if (read(arr, i + j) !== read(val, j)) { found = false; break; } } if (found) return i; } } return -1; } Buffer2.prototype.includes = function includes(val, byteOffset, encoding) { return this.indexOf(val, byteOffset, encoding) !== -1; }; Buffer2.prototype.indexOf = function indexOf(val, byteOffset, encoding) { return bidirectionalIndexOf(this, val, byteOffset, encoding, true); }; Buffer2.prototype.lastIndexOf = function lastIndexOf(val, byteOffset, encoding) { return bidirectionalIndexOf(this, val, byteOffset, encoding, false); }; function hexWrite(buf, string, offset, length) { offset = Number(offset) || 0; var remaining = buf.length - offset; if (!length) { length = remaining; } else { length = Number(length); if (length > remaining) { length = remaining; } } var strLen = string.length; if (length > strLen / 2) { length = strLen / 2; } for (var i = 0; i < length; ++i) { var parsed = parseInt(string.substr(i * 2, 2), 16); if (numberIsNaN(parsed)) return i; buf[offset + i] = parsed; } return i; } function utf8Write(buf, string, offset, length) { return blitBuffer(utf8ToBytes(string, buf.length - offset), buf, offset, length); } function asciiWrite(buf, string, offset, length) { return blitBuffer(asciiToBytes(string), buf, offset, length); } function latin1Write(buf, string, offset, length) { return asciiWrite(buf, string, offset, length); } function base64Write(buf, string, offset, length) { return blitBuffer(base64ToBytes(string), buf, offset, length); } function ucs2Write(buf, string, offset, length) { return blitBuffer(utf16leToBytes(string, buf.length - offset), buf, offset, length); } Buffer2.prototype.write = function write(string, offset, length, encoding) { if (offset === void 0) { encoding = "utf8"; length = this.length; offset = 0; } else if (length === void 0 && typeof offset === "string") { encoding = offset; length = this.length; offset = 0; } else if (isFinite(offset)) { offset = offset >>> 0; if (isFinite(length)) { length = length >>> 0; if (encoding === void 0) encoding = "utf8"; } else { encoding = length; length = void 0; } } else { throw new Error( "Buffer.write(string, encoding, offset[, length]) is no longer supported" ); } var remaining = this.length - offset; if (length === void 0 || length > remaining) length = remaining; if (string.length > 0 && (length < 0 || offset < 0) || offset > this.length) { throw new RangeError("Attempt to write outside buffer bounds"); } if (!encoding) encoding = "utf8"; var loweredCase = false; for (; ; ) { switch (encoding) { case "hex": return hexWrite(this, string, offset, length); case "utf8": case "utf-8": return utf8Write(this, string, offset, length); case "ascii": return asciiWrite(this, string, offset, length); case "latin1": case "binary": return latin1Write(this, string, offset, length); case "base64": return base64Write(this, string, offset, length); case "ucs2": case "ucs-2": case "utf16le": case "utf-16le": return ucs2Write(this, string, offset, length); default: if (loweredCase) throw new TypeError("Unknown encoding: " + encoding); encoding = ("" + encoding).toLowerCase(); loweredCase = true; } } }; Buffer2.prototype.toJSON = function toJSON() { return { type: "Buffer", data: Array.prototype.slice.call(this._arr || this, 0) }; }; function base64Slice(buf, start, end) { if (start === 0 && end === buf.length) { return base64.fromByteArray(buf); } else { return base64.fromByteArray(buf.slice(start, end)); } } function utf8Slice(buf, start, end) { end = Math.min(buf.length, end); var res = []; var i = start; while (i < end) { var firstByte = buf[i]; var codePoint = null; var bytesPerSequence = firstByte > 239 ? 4 : firstByte > 223 ? 3 : firstByte > 191 ? 2 : 1; if (i + bytesPerSequence <= end) { var secondByte, thirdByte, fourthByte, tempCodePoint; switch (bytesPerSequence) { case 1: if (firstByte < 128) { codePoint = firstByte; } break; case 2: secondByte = buf[i + 1]; if ((secondByte & 192) === 128) { tempCodePoint = (firstByte & 31) << 6 | secondByte & 63; if (tempCodePoint > 127) { codePoint = tempCodePoint; } } break; case 3: secondByte = buf[i + 1]; thirdByte = buf[i + 2]; if ((secondByte & 192) === 128 && (thirdByte & 192) === 128) { tempCodePoint = (firstByte & 15) << 12 | (secondByte & 63) << 6 | thirdByte & 63; if (tempCodePoint > 2047 && (tempCodePoint < 55296 || tempCodePoint > 57343)) { codePoint = tempCodePoint; } } break; case 4: secondByte = buf[i + 1]; thirdByte = buf[i + 2]; fourthByte = buf[i + 3]; if ((secondByte & 192) === 128 && (thirdByte & 192) === 128 && (fourthByte & 192) === 128) { tempCodePoint = (firstByte & 15) << 18 | (secondByte & 63) << 12 | (thirdByte & 63) << 6 | fourthByte & 63; if (tempCodePoint > 65535 && tempCodePoint < 1114112) { codePoint = tempCodePoint; } } } } if (codePoint === null) { codePoint = 65533; bytesPerSequence = 1; } else if (codePoint > 65535) { codePoint -= 65536; res.push(codePoint >>> 10 & 1023 | 55296); codePoint = 56320 | codePoint & 1023; } res.push(codePoint); i += bytesPerSequence; } return decodeCodePointsArray(res); } var MAX_ARGUMENTS_LENGTH = 4096; function decodeCodePointsArray(codePoints) { var len = codePoints.length; if (len <= MAX_ARGUMENTS_LENGTH) { return String.fromCharCode.apply(String, codePoints); } var res = ""; var i = 0; while (i < len) { res += String.fromCharCode.apply( String, codePoints.slice(i, i += MAX_ARGUMENTS_LENGTH) ); } return res; } function asciiSlice(buf, start, end) { var ret = ""; end = Math.min(buf.length, end); for (var i = start; i < end; ++i) { ret += String.fromCharCode(buf[i] & 127); } return ret; } function latin1Slice(buf, start, end) { var ret = ""; end = Math.min(buf.length, end); for (var i = start; i < end; ++i) { ret += String.fromCharCode(buf[i]); } return ret; } function hexSlice(buf, start, end) { var len = buf.length; if (!start || start < 0) start = 0; if (!end || end < 0 || end > len) end = len; var out = ""; for (var i = start; i < end; ++i) { out += toHex(buf[i]); } return out; } function utf16leSlice(buf, start, end) { var bytes = buf.slice(start, end); var res = ""; for (var i = 0; i < bytes.length; i += 2) { res += String.fromCharCode(bytes[i] + bytes[i + 1] * 256); } return res; } Buffer2.prototype.slice = function slice(start, end) { var len = this.length; start = ~~start; end = end === void 0 ? len : ~~end; if (start < 0) { start += len; if (start < 0) start = 0; } else if (start > len) { start = len; } if (end < 0) { end += len; if (end < 0) end = 0; } else if (end > len) { end = len; } if (end < start) end = start; var newBuf = this.subarray(start, end); newBuf.__proto__ = Buffer2.prototype; return newBuf; }; function checkOffset(offset, ext, length) { if (offset % 1 !== 0 || offset < 0) throw new RangeError("offset is not uint"); if (offset + ext > length) throw new RangeError("Trying to access beyond buffer length"); } Buffer2.prototype.readUIntLE = function readUIntLE(offset, byteLength2, noAssert) { offset = offset >>> 0; byteLength2 = byteLength2 >>> 0; if (!noAssert) checkOffset(offset, byteLength2, this.length); var val = this[offset]; var mul = 1; var i = 0; while (++i < byteLength2 && (mul *= 256)) { val += this[offset + i] * mul; } return val; }; Buffer2.prototype.readUIntBE = function readUIntBE(offset, byteLength2, noAssert) { offset = offset >>> 0; byteLength2 = byteLength2 >>> 0; if (!noAssert) { checkOffset(offset, byteLength2, this.length); } var val = this[offset + --byteLength2]; var mul = 1; while (byteLength2 > 0 && (mul *= 256)) { val += this[offset + --byteLength2] * mul; } return val; }; Buffer2.prototype.readUInt8 = function readUInt8(offset, noAssert) { offset = offset >>> 0; if (!noAssert) checkOffset(offset, 1, this.length); return this[offset]; }; Buffer2.prototype.readUInt16LE = function readUInt16LE(offset, noAssert) { offset = offset >>> 0; if (!noAssert) checkOffset(offset, 2, this.length); return this[offset] | this[offset + 1] << 8; }; Buffer2.prototype.readUInt16BE = function readUInt16BE(offset, noAssert) { offset = offset >>> 0; if (!noAssert) checkOffset(offset, 2, this.length); return this[offset] << 8 | this[offset + 1]; }; Buffer2.prototype.readUInt32LE = function readUInt32LE(offset, noAssert) { offset = offset >>> 0; if (!noAssert) checkOffset(offset, 4, this.length); return (this[offset] | this[offset + 1] << 8 | this[offset + 2] << 16) + this[offset + 3] * 16777216; }; Buffer2.prototype.readUInt32BE = function readUInt32BE(offset, noAssert) { offset = offset >>> 0; if (!noAssert) checkOffset(offset, 4, this.length); return this[offset] * 16777216 + (this[offset + 1] << 16 | this[offset + 2] << 8 | this[offset + 3]); }; Buffer2.prototype.readIntLE = function readIntLE(offset, byteLength2, noAssert) { offset = offset >>> 0; byteLength2 = byteLength2 >>> 0; if (!noAssert) checkOffset(offset, byteLength2, this.length); var val = this[offset]; var mul = 1; var i = 0; while (++i < byteLength2 && (mul *= 256)) { val += this[offset + i] * mul; } mul *= 128; if (val >= mul) val -= Math.pow(2, 8 * byteLength2); return val; }; Buffer2.prototype.readIntBE = function readIntBE(offset, byteLength2, noAssert) { offset = offset >>> 0; byteLength2 = byteLength2 >>> 0; if (!noAssert) checkOffset(offset, byteLength2, this.length); var i = byteLength2; var mul = 1; var val = this[offset + --i]; while (i > 0 && (mul *= 256)) { val += this[offset + --i] * mul; } mul *= 128; if (val >= mul) val -= Math.pow(2, 8 * byteLength2); return val; }; Buffer2.prototype.readInt8 = function readInt8(offset, noAssert) { offset = offset >>> 0; if (!noAssert) checkOffset(offset, 1, this.length); if (!(this[offset] & 128)) return this[offset]; return (255 - this[offset] + 1) * -1; }; Buffer2.prototype.readInt16LE = function readInt16LE(offset, noAssert) { offset = offset >>> 0; if (!noAssert) checkOffset(offset, 2, this.length); var val = this[offset] | this[offset + 1] << 8; return val & 32768 ? val | 4294901760 : val; }; Buffer2.prototype.readInt16BE = function readInt16BE(offset, noAssert) { offset = offset >>> 0; if (!noAssert) checkOffset(offset, 2, this.length); var val = this[offset + 1] | this[offset] << 8; return val & 32768 ? val | 4294901760 : val; }; Buffer2.prototype.readInt32LE = function readInt32LE(offset, noAssert) { offset = offset >>> 0; if (!noAssert) checkOffset(offset, 4, this.length); return this[offset] | this[offset + 1] << 8 | this[offset + 2] << 16 | this[offset + 3] << 24; }; Buffer2.prototype.readInt32BE = function readInt32BE(offset, noAssert) { offset = offset >>> 0; if (!noAssert) checkOffset(offset, 4, this.length); return this[offset] << 24 | this[offset + 1] << 16 | this[offset + 2] << 8 | this[offset + 3]; }; Buffer2.prototype.readFloatLE = function readFloatLE(offset, noAssert) { offset = offset >>> 0; if (!noAssert) checkOffset(offset, 4, this.length); return ieee754.read(this, offset, true, 23, 4); }; Buffer2.prototype.readFloatBE = function readFloatBE(offset, noAssert) { offset = offset >>> 0; if (!noAssert) checkOffset(offset, 4, this.length); return ieee754.read(this, offset, false, 23, 4); }; Buffer2.prototype.readDoubleLE = function readDoubleLE(offset, noAssert) { offset = offset >>> 0; if (!noAssert) checkOffset(offset, 8, this.length); return ieee754.read(this, offset, true, 52, 8); }; Buffer2.prototype.readDoubleBE = function readDoubleBE(offset, noAssert) { offset = offset >>> 0; if (!noAssert) checkOffset(offset, 8, this.length); return ieee754.read(this, offset, false, 52, 8); }; function checkInt(buf, value, offset, ext, max, min) { if (!Buffer2.isBuffer(buf)) throw new TypeError('"buffer" argument must be a Buffer instance'); if (value > max || value < min) throw new RangeError('"value" argument is out of bounds'); if (offset + ext > buf.length) throw new RangeError("Index out of range"); } Buffer2.prototype.writeUIntLE = function writeUIntLE(value, offset, byteLength2, noAssert) { value = +value; offset = offset >>> 0; byteLength2 = byteLength2 >>> 0; if (!noAssert) { var maxBytes = Math.pow(2, 8 * byteLength2) - 1; checkInt(this, value, offset, byteLength2, maxBytes, 0); } var mul = 1; var i = 0; this[offset] = value & 255; while (++i < byteLength2 && (mul *= 256)) { this[offset + i] = value / mul & 255; } return offset + byteLength2; }; Buffer2.prototype.writeUIntBE = function writeUIntBE(value, offset, byteLength2, noAssert) { value = +value; offset = offset >>> 0; byteLength2 = byteLength2 >>> 0; if (!noAssert) { var maxBytes = Math.pow(2, 8 * byteLength2) - 1; checkInt(this, value, offset, byteLength2, maxBytes, 0); } var i = byteLength2 - 1; var mul = 1; this[offset + i] = value & 255; while (--i >= 0 && (mul *= 256)) { this[offset + i] = value / mul & 255; } return offset + byteLength2; }; Buffer2.prototype.writeUInt8 = function writeUInt8(value, offset, noAssert) { value = +value; offset = offset >>> 0; if (!noAssert) checkInt(this, value, offset, 1, 255, 0); this[offset] = value & 255; return offset + 1; }; Buffer2.prototype.writeUInt16LE = function writeUInt16LE(value, offset, noAssert) { value = +value; offset = offset >>> 0; if (!noAssert) checkInt(this, value, offset, 2, 65535, 0); this[offset] = value & 255; this[offset + 1] = value >>> 8; return offset + 2; }; Buffer2.prototype.writeUInt16BE = function writeUInt16BE(value, offset, noAssert) { value = +value; offset = offset >>> 0; if (!noAssert) checkInt(this, value, offset, 2, 65535, 0); this[offset] = value >>> 8; this[offset + 1] = value & 255; return offset + 2; }; Buffer2.prototype.writeUInt32LE = function writeUInt32LE(value, offset, noAssert) { value = +value; offset = offset >>> 0; if (!noAssert) checkInt(this, value, offset, 4, 4294967295, 0); this[offset + 3] = value >>> 24; this[offset + 2] = value >>> 16; this[offset + 1] = value >>> 8; this[offset] = value & 255; return offset + 4; }; Buffer2.prototype.writeUInt32BE = function writeUInt32BE(value, offset, noAssert) { value = +value; offset = offset >>> 0; if (!noAssert) checkInt(this, value, offset, 4, 4294967295, 0); this[offset] = value >>> 24; this[offset + 1] = value >>> 16; this[offset + 2] = value >>> 8; this[offset + 3] = value & 255; return offset + 4; }; Buffer2.prototype.writeIntLE = function writeIntLE(value, offset, byteLength2, noAssert) { value = +value; offset = offset >>> 0; if (!noAssert) { var limit = Math.pow(2, 8 * byteLength2 - 1); checkInt(this, value, offset, byteLength2, limit - 1, -limit); } var i = 0; var mul = 1; var sub = 0; this[offset] = value & 255; while (++i < byteLength2 && (mul *= 256)) { if (value < 0 && sub === 0 && this[offset + i - 1] !== 0) { sub = 1; } this[offset + i] = (value / mul >> 0) - sub & 255; } return offset + byteLength2; }; Buffer2.prototype.writeIntBE = function writeIntBE(value, offset, byteLength2, noAssert) { value = +value; offset = offset >>> 0; if (!noAssert) { var limit = Math.pow(2, 8 * byteLength2 - 1); checkInt(this, value, offset, byteLength2, limit - 1, -limit); } var i = byteLength2 - 1; var mul = 1; var sub = 0; this[offset + i] = value & 255; while (--i >= 0 && (mul *= 256)) { if (value < 0 && sub === 0 && this[offset + i + 1] !== 0) { sub = 1; } this[offset + i] = (value / mul >> 0) - sub & 255; } return offset + byteLength2; }; Buffer2.prototype.writeInt8 = function writeInt8(value, offset, noAssert) { value = +value; offset = offset >>> 0; if (!noAssert) checkInt(this, value, offset, 1, 127, -128); if (value < 0) value = 255 + value + 1; this[offset] = value & 255; return offset + 1; }; Buffer2.prototype.writeInt16LE = function writeInt16LE(value, offset, noAssert) { value = +value; offset = offset >>> 0; if (!noAssert) checkInt(this, value, offset, 2, 32767, -32768); this[offset] = value & 255; this[offset + 1] = value >>> 8; return offset + 2; }; Buffer2.prototype.writeInt16BE = function writeInt16BE(value, offset, noAssert) { value = +value; offset = offset >>> 0; if (!noAssert) checkInt(this, value, offset, 2, 32767, -32768); this[offset] = value >>> 8; this[offset + 1] = value & 255; return offset + 2; }; Buffer2.prototype.writeInt32LE = function writeInt32LE(value, offset, noAssert) { value = +value; offset = offset >>> 0; if (!noAssert) checkInt(this, value, offset, 4, 2147483647, -2147483648); this[offset] = value & 255; this[offset + 1] = value >>> 8; this[offset + 2] = value >>> 16; this[offset + 3] = value >>> 24; return offset + 4; }; Buffer2.prototype.writeInt32BE = function writeInt32BE(value, offset, noAssert) { value = +value; offset = offset >>> 0; if (!noAssert) checkInt(this, value, offset, 4, 2147483647, -2147483648); if (value < 0) value = 4294967295 + value + 1; this[offset] = value >>> 24; this[offset + 1] = value >>> 16; this[offset + 2] = value >>> 8; this[offset + 3] = value & 255; return offset + 4; }; function checkIEEE754(buf, value, offset, ext, max, min) { if (offset + ext > buf.length) throw new RangeError("Index out of range"); if (offset < 0) throw new RangeError("Index out of range"); } function writeFloat(buf, value, offset, littleEndian, noAssert) { value = +value; offset = offset >>> 0; if (!noAssert) { checkIEEE754(buf, value, offset, 4, 34028234663852886e22, -34028234663852886e22); } ieee754.write(buf, value, offset, littleEndian, 23, 4); return offset + 4; } Buffer2.prototype.writeFloatLE = function writeFloatLE(value, offset, noAssert) { return writeFloat(this, value, offset, true, noAssert); }; Buffer2.prototype.writeFloatBE = function writeFloatBE(value, offset, noAssert) { return writeFloat(this, value, offset, false, noAssert); }; function writeDouble(buf, value, offset, littleEndian, noAssert) { value = +value; offset = offset >>> 0; if (!noAssert) { checkIEEE754(buf, value, offset, 8, 17976931348623157e292, -17976931348623157e292); } ieee754.write(buf, value, offset, littleEndian, 52, 8); return offset + 8; } Buffer2.prototype.writeDoubleLE = function writeDoubleLE(value, offset, noAssert) { return writeDouble(this, value, offset, true, noAssert); }; Buffer2.prototype.writeDoubleBE = function writeDoubleBE(value, offset, noAssert) { return writeDouble(this, value, offset, false, noAssert); }; Buffer2.prototype.copy = function copy(target, targetStart, start, end) { if (!Buffer2.isBuffer(target)) throw new TypeError("argument should be a Buffer"); if (!start) start = 0; if (!end && end !== 0) end = this.length; if (targetStart >= target.length) targetStart = target.length; if (!targetStart) targetStart = 0; if (end > 0 && end < start) end = start; if (end === start) return 0; if (target.length === 0 || this.length === 0) return 0; if (targetStart < 0) { throw new RangeError("targetStart out of bounds"); } if (start < 0 || start >= this.length) throw new RangeError("Index out of range"); if (end < 0) throw new RangeError("sourceEnd out of bounds"); if (end > this.length) end = this.length; if (target.length - targetStart < end - start) { end = target.length - targetStart + start; } var len = end - start; if (this === target && typeof Uint8Array.prototype.copyWithin === "function") { this.copyWithin(targetStart, start, end); } else if (this === target && start < targetStart && targetStart < end) { for (var i = len - 1; i >= 0; --i) { target[i + targetStart] = this[i + start]; } } else { Uint8Array.prototype.set.call( target, this.subarray(start, end), targetStart ); } return len; }; Buffer2.prototype.fill = function fill(val, start, end, encoding) { if (typeof val === "string") { if (typeof start === "string") { encoding = start; start = 0; end = this.length; } else if (typeof end === "string") { encoding = end; end = this.length; } if (encoding !== void 0 && typeof encoding !== "string") { throw new TypeError("encoding must be a string"); } if (typeof encoding === "string" && !Buffer2.isEncoding(encoding)) { throw new TypeError("Unknown encoding: " + encoding); } if (val.length === 1) { var code = val.charCodeAt(0); if (encoding === "utf8" && code < 128 || encoding === "latin1") { val = code; } } } else if (typeof val === "number") { val = val & 255; } if (start < 0 || this.length < start || this.length < end) { throw new RangeError("Out of range index"); } if (end <= start) { return this; } start = start >>> 0; end = end === void 0 ? this.length : end >>> 0; if (!val) val = 0; var i; if (typeof val === "number") { for (i = start; i < end; ++i) { this[i] = val; } } else { var bytes = Buffer2.isBuffer(val) ? val : Buffer2.from(val, encoding); var len = bytes.length; if (len === 0) { throw new TypeError('The value "' + val + '" is invalid for argument "value"'); } for (i = 0; i < end - start; ++i) { this[i + start] = bytes[i % len]; } } return this; }; var INVALID_BASE64_RE = /[^+/0-9A-Za-z-_]/g; function base64clean(str) { str = str.split("=")[0]; str = str.trim().replace(INVALID_BASE64_RE, ""); if (str.length < 2) return ""; while (str.length % 4 !== 0) { str = str + "="; } return str; } function toHex(n) { if (n < 16) return "0" + n.toString(16); return n.toString(16); } function utf8ToBytes(string, units) { units = units || Infinity; var codePoint; var length = string.length; var leadSurrogate = null; var bytes = []; for (var i = 0; i < length; ++i) { codePoint = string.charCodeAt(i); if (codePoint > 55295 && codePoint < 57344) { if (!leadSurrogate) { if (codePoint > 56319) { if ((units -= 3) > -1) bytes.push(239, 191, 189); continue; } else if (i + 1 === length) { if ((units -= 3) > -1) bytes.push(239, 191, 189); continue; } leadSurrogate = codePoint; continue; } if (codePoint < 56320) { if ((units -= 3) > -1) bytes.push(239, 191, 189); leadSurrogate = codePoint; continue; } codePoint = (leadSurrogate - 55296 << 10 | codePoint - 56320) + 65536; } else if (leadSurrogate) { if ((units -= 3) > -1) bytes.push(239, 191, 189); } leadSurrogate = null; if (codePoint < 128) { if ((units -= 1) < 0) break; bytes.push(codePoint); } else if (codePoint < 2048) { if ((units -= 2) < 0) break; bytes.push( codePoint >> 6 | 192, codePoint & 63 | 128 ); } else if (codePoint < 65536) { if ((units -= 3) < 0) break; bytes.push( codePoint >> 12 | 224, codePoint >> 6 & 63 | 128, codePoint & 63 | 128 ); } else if (codePoint < 1114112) { if ((units -= 4) < 0) break; bytes.push( codePoint >> 18 | 240, codePoint >> 12 & 63 | 128, codePoint >> 6 & 63 | 128, codePoint & 63 | 128 ); } else { throw new Error("Invalid code point"); } } return bytes; } function asciiToBytes(str) { var byteArray = []; for (var i = 0; i < str.length; ++i) { byteArray.push(str.charCodeAt(i) & 255); } return byteArray; } function utf16leToBytes(str, units) { var c, hi, lo; var byteArray = []; for (var i = 0; i < str.length; ++i) { if ((units -= 2) < 0) break; c = str.charCodeAt(i); hi = c >> 8; lo = c % 256; byteArray.push(lo); byteArray.push(hi); } return byteArray; } function base64ToBytes(str) { return base64.toByteArray(base64clean(str)); } function blitBuffer(src, dst, offset, length) { for (var i = 0; i < length; ++i) { if (i + offset >= dst.length || i >= src.length) break; dst[i + offset] = src[i]; } return i; } function isInstance(obj, type) { return obj instanceof type || obj != null && obj.constructor != null && obj.constructor.name != null && obj.constructor.name === type.name; } function numberIsNaN(obj) { return obj !== obj; } }).call(this); }).call(this, require2("buffer").Buffer); }, { "base64-js": 87, "buffer": 90, "ieee754": 357 }], 91: [function(require2, module3, exports3) { module3.exports = { "100": "Continue", "101": "Switching Protocols", "102": "Processing", "200": "OK", "201": "Created", "202": "Accepted", "203": "Non-Authoritative Information", "204": "No Content", "205": "Reset Content", "206": "Partial Content", "207": "Multi-Status", "208": "Already Reported", "226": "IM Used", "300": "Multiple Choices", "301": "Moved Permanently", "302": "Found", "303": "See Other", "304": "Not Modified", "305": "Use Proxy", "307": "Temporary Redirect", "308": "Permanent Redirect", "400": "Bad Request", "401": "Unauthorized", "402": "Payment Required", "403": "Forbidden", "404": "Not Found", "405": "Method Not Allowed", "406": "Not Acceptable", "407": "Proxy Authentication Required", "408": "Request Timeout", "409": "Conflict", "410": "Gone", "411": "Length Required", "412": "Precondition Failed", "413": "Payload Too Large", "414": "URI Too Long", "415": "Unsupported Media Type", "416": "Range Not Satisfiable", "417": "Expectation Failed", "418": "I'm a teapot", "421": "Misdirected Request", "422": "Unprocessable Entity", "423": "Locked", "424": "Failed Dependency", "425": "Unordered Collection", "426": "Upgrade Required", "428": "Precondition Required", "429": "Too Many Requests", "431": "Request Header Fields Too Large", "451": "Unavailable For Legal Reasons", "500": "Internal Server Error", "501": "Not Implemented", "502": "Bad Gateway", "503": "Service Unavailable", "504": "Gateway Timeout", "505": "HTTP Version Not Supported", "506": "Variant Also Negotiates", "507": "Insufficient Storage", "508": "Loop Detected", "509": "Bandwidth Limit Exceeded", "510": "Not Extended", "511": "Network Authentication Required" }; }, {}], 92: [function(require2, module3, exports3) { "use strict"; var GetIntrinsic = require2("get-intrinsic"); var callBind = require2("./"); var $indexOf = callBind(GetIntrinsic("String.prototype.indexOf")); module3.exports = function callBoundIntrinsic(name, allowMissing) { var intrinsic = GetIntrinsic(name, !!allowMissing); if (typeof intrinsic === "function" && $indexOf(name, ".prototype.") > -1) { return callBind(intrinsic); } return intrinsic; }; }, { "./": 93, "get-intrinsic": 348 }], 93: [function(require2, module3, exports3) { "use strict"; var bind = require2("function-bind"); var GetIntrinsic = require2("get-intrinsic"); var $apply = GetIntrinsic("%Function.prototype.apply%"); var $call = GetIntrinsic("%Function.prototype.call%"); var $reflectApply = GetIntrinsic("%Reflect.apply%", true) || bind.call($call, $apply); var $gOPD = GetIntrinsic("%Object.getOwnPropertyDescriptor%", true); var $defineProperty = GetIntrinsic("%Object.defineProperty%", true); var $max = GetIntrinsic("%Math.max%"); if ($defineProperty) { try { $defineProperty({}, "a", { value: 1 }); } catch (e) { $defineProperty = null; } } module3.exports = function callBind(originalFunction) { var func = $reflectApply(bind, $call, arguments); if ($gOPD && $defineProperty) { var desc = $gOPD(func, "length"); if (desc.configurable) { $defineProperty( func, "length", { value: 1 + $max(0, originalFunction.length - (arguments.length - 1)) } ); } } return func; }; var applyBind = function applyBind2() { return $reflectApply(bind, $apply, arguments); }; if ($defineProperty) { $defineProperty(module3.exports, "apply", { value: applyBind }); } else { module3.exports.apply = applyBind; } }, { "function-bind": 347, "get-intrinsic": 348 }], 94: [function(require2, module3, exports3) { "use strict"; var slice = Array.prototype.slice; module3.exports = Copy; function Copy(src, withAccess) { if (!(this instanceof Copy)) return new Copy(src, withAccess); this.src = src; this._withAccess = withAccess; } Copy.prototype.withAccess = function(w) { this._withAccess = w !== false; return this; }; Copy.prototype.pick = function(keys) { if (!Array.isArray(keys)) { keys = slice.call(arguments); } if (keys.length) { this.keys = keys; } return this; }; Copy.prototype.to = function(to) { to = to || {}; if (!this.src) return to; var keys = this.keys || Object.keys(this.src); if (!this._withAccess) { for (var i = 0; i < keys.length; i++) { key = keys[i]; if (to[key] !== void 0) continue; to[key] = this.src[key]; } return to; } for (var i = 0; i < keys.length; i++) { var key = keys[i]; if (!notDefined(to, key)) continue; var getter = this.src.__lookupGetter__(key); var setter = this.src.__lookupSetter__(key); if (getter) to.__defineGetter__(key, getter); if (setter) to.__defineSetter__(key, setter); if (!getter && !setter) { to[key] = this.src[key]; } } return to; }; Copy.prototype.toCover = function(to) { var keys = this.keys || Object.keys(this.src); for (var i = 0; i < keys.length; i++) { var key = keys[i]; delete to[key]; var getter = this.src.__lookupGetter__(key); var setter = this.src.__lookupSetter__(key); if (getter) to.__defineGetter__(key, getter); if (setter) to.__defineSetter__(key, setter); if (!getter && !setter) { to[key] = this.src[key]; } } }; Copy.prototype.override = Copy.prototype.toCover; Copy.prototype.and = function(obj) { var src = {}; this.to(src); this.src = obj; this.to(src); this.src = src; return this; }; function notDefined(obj, key) { return obj[key] === void 0 && obj.__lookupGetter__(key) === void 0 && obj.__lookupSetter__(key) === void 0; } }, {}], 95: [function(require2, module3, exports3) { var global2 = require2("../internals/global"); var isCallable = require2("../internals/is-callable"); var tryToString = require2("../internals/try-to-string"); var TypeError2 = global2.TypeError; module3.exports = function(argument) { if (isCallable(argument)) return argument; throw TypeError2(tryToString(argument) + " is not a function"); }; }, { "../internals/global": 163, "../internals/is-callable": 176, "../internals/try-to-string": 257 }], 96: [function(require2, module3, exports3) { var global2 = require2("../internals/global"); var isConstructor = require2("../internals/is-constructor"); var tryToString = require2("../internals/try-to-string"); var TypeError2 = global2.TypeError; module3.exports = function(argument) { if (isConstructor(argument)) return argument; throw TypeError2(tryToString(argument) + " is not a constructor"); }; }, { "../internals/global": 163, "../internals/is-constructor": 177, "../internals/try-to-string": 257 }], 97: [function(require2, module3, exports3) { var global2 = require2("../internals/global"); var isCallable = require2("../internals/is-callable"); var String2 = global2.String; var TypeError2 = global2.TypeError; module3.exports = function(argument) { if (typeof argument == "object" || isCallable(argument)) return argument; throw TypeError2("Can't set " + String2(argument) + " as a prototype"); }; }, { "../internals/global": 163, "../internals/is-callable": 176 }], 98: [function(require2, module3, exports3) { var wellKnownSymbol = require2("../internals/well-known-symbol"); var create = require2("../internals/object-create"); var definePropertyModule = require2("../internals/object-define-property"); var UNSCOPABLES = wellKnownSymbol("unscopables"); var ArrayPrototype = Array.prototype; if (ArrayPrototype[UNSCOPABLES] == void 0) { definePropertyModule.f(ArrayPrototype, UNSCOPABLES, { configurable: true, value: create(null) }); } module3.exports = function(key) { ArrayPrototype[UNSCOPABLES][key] = true; }; }, { "../internals/object-create": 196, "../internals/object-define-property": 198, "../internals/well-known-symbol": 268 }], 99: [function(require2, module3, exports3) { "use strict"; var charAt = require2("../internals/string-multibyte").charAt; module3.exports = function(S, index, unicode) { return index + (unicode ? charAt(S, index).length : 1); }; }, { "../internals/string-multibyte": 239 }], 100: [function(require2, module3, exports3) { var global2 = require2("../internals/global"); var isPrototypeOf = require2("../internals/object-is-prototype-of"); var TypeError2 = global2.TypeError; module3.exports = function(it, Prototype) { if (isPrototypeOf(Prototype, it)) return it; throw TypeError2("Incorrect invocation"); }; }, { "../internals/global": 163, "../internals/object-is-prototype-of": 204 }], 101: [function(require2, module3, exports3) { var global2 = require2("../internals/global"); var isObject = require2("../internals/is-object"); var String2 = global2.String; var TypeError2 = global2.TypeError; module3.exports = function(argument) { if (isObject(argument)) return argument; throw TypeError2(String2(argument) + " is not an object"); }; }, { "../internals/global": 163, "../internals/is-object": 180 }], 102: [function(require2, module3, exports3) { module3.exports = typeof ArrayBuffer != "undefined" && typeof DataView != "undefined"; }, {}], 103: [function(require2, module3, exports3) { "use strict"; var NATIVE_ARRAY_BUFFER = require2("../internals/array-buffer-native"); var DESCRIPTORS = require2("../internals/descriptors"); var global2 = require2("../internals/global"); var isCallable = require2("../internals/is-callable"); var isObject = require2("../internals/is-object"); var hasOwn = require2("../internals/has-own-property"); var classof = require2("../internals/classof"); var tryToString = require2("../internals/try-to-string"); var createNonEnumerableProperty = require2("../internals/create-non-enumerable-property"); var redefine = require2("../internals/redefine"); var defineProperty = require2("../internals/object-define-property").f; var isPrototypeOf = require2("../internals/object-is-prototype-of"); var getPrototypeOf = require2("../internals/object-get-prototype-of"); var setPrototypeOf = require2("../internals/object-set-prototype-of"); var wellKnownSymbol = require2("../internals/well-known-symbol"); var uid = require2("../internals/uid"); var Int8Array2 = global2.Int8Array; var Int8ArrayPrototype = Int8Array2 && Int8Array2.prototype; var Uint8ClampedArray2 = global2.Uint8ClampedArray; var Uint8ClampedArrayPrototype = Uint8ClampedArray2 && Uint8ClampedArray2.prototype; var TypedArray = Int8Array2 && getPrototypeOf(Int8Array2); var TypedArrayPrototype = Int8ArrayPrototype && getPrototypeOf(Int8ArrayPrototype); var ObjectPrototype = Object.prototype; var TypeError2 = global2.TypeError; var TO_STRING_TAG = wellKnownSymbol("toStringTag"); var TYPED_ARRAY_TAG = uid("TYPED_ARRAY_TAG"); var TYPED_ARRAY_CONSTRUCTOR = uid("TYPED_ARRAY_CONSTRUCTOR"); var NATIVE_ARRAY_BUFFER_VIEWS = NATIVE_ARRAY_BUFFER && !!setPrototypeOf && classof(global2.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 isView2(it) { if (!isObject(it)) return false; var klass = classof(it); return klass === "DataView" || hasOwn(TypedArrayConstructorsList, klass) || hasOwn(BigIntArrayConstructorsList, klass); }; 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 TypeError2("Target is not a typed array"); }; var aTypedArrayConstructor = function(C) { if (isCallable(C) && (!setPrototypeOf || isPrototypeOf(TypedArray, C))) return C; throw TypeError2(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 = global2[ARRAY]; if (TypedArrayConstructor && hasOwn(TypedArrayConstructor.prototype, KEY)) try { delete TypedArrayConstructor.prototype[KEY]; } catch (error) { try { TypedArrayConstructor.prototype[KEY] = property; } catch (error2) { } } } if (!TypedArrayPrototype[KEY] || forced) { redefine(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 = global2[ARRAY]; if (TypedArrayConstructor && hasOwn(TypedArrayConstructor, KEY)) try { delete TypedArrayConstructor[KEY]; } catch (error) { } } if (!TypedArray[KEY] || forced) { try { return redefine(TypedArray, KEY, forced ? property : NATIVE_ARRAY_BUFFER_VIEWS && TypedArray[KEY] || property); } catch (error) { } } else return; } for (ARRAY in TypedArrayConstructorsList) { TypedArrayConstructor = global2[ARRAY]; if (TypedArrayConstructor && (!TypedArrayConstructor[KEY] || forced)) { redefine(TypedArrayConstructor, KEY, property); } } }; for (NAME in TypedArrayConstructorsList) { Constructor = global2[NAME]; Prototype = Constructor && Constructor.prototype; if (Prototype) createNonEnumerableProperty(Prototype, TYPED_ARRAY_CONSTRUCTOR, Constructor); else NATIVE_ARRAY_BUFFER_VIEWS = false; } for (NAME in BigIntArrayConstructorsList) { Constructor = global2[NAME]; Prototype = Constructor && Constructor.prototype; if (Prototype) createNonEnumerableProperty(Prototype, TYPED_ARRAY_CONSTRUCTOR, Constructor); } if (!NATIVE_ARRAY_BUFFER_VIEWS || !isCallable(TypedArray) || TypedArray === Function.prototype) { TypedArray = function TypedArray2() { throw TypeError2("Incorrect invocation"); }; if (NATIVE_ARRAY_BUFFER_VIEWS) for (NAME in TypedArrayConstructorsList) { if (global2[NAME]) setPrototypeOf(global2[NAME], TypedArray); } } if (!NATIVE_ARRAY_BUFFER_VIEWS || !TypedArrayPrototype || TypedArrayPrototype === ObjectPrototype) { TypedArrayPrototype = TypedArray.prototype; if (NATIVE_ARRAY_BUFFER_VIEWS) for (NAME in TypedArrayConstructorsList) { if (global2[NAME]) setPrototypeOf(global2[NAME].prototype, TypedArrayPrototype); } } if (NATIVE_ARRAY_BUFFER_VIEWS && getPrototypeOf(Uint8ClampedArrayPrototype) !== TypedArrayPrototype) { setPrototypeOf(Uint8ClampedArrayPrototype, TypedArrayPrototype); } if (DESCRIPTORS && !hasOwn(TypedArrayPrototype, TO_STRING_TAG)) { TYPED_ARRAY_TAG_REQUIRED = true; defineProperty(TypedArrayPrototype, TO_STRING_TAG, { get: function() { return isObject(this) ? this[TYPED_ARRAY_TAG] : void 0; } }); for (NAME in TypedArrayConstructorsList) if (global2[NAME]) { createNonEnumerableProperty(global2[NAME], TYPED_ARRAY_TAG, NAME); } } module3.exports = { NATIVE_ARRAY_BUFFER_VIEWS, TYPED_ARRAY_CONSTRUCTOR, TYPED_ARRAY_TAG: TYPED_ARRAY_TAG_REQUIRED && TYPED_ARRAY_TAG, aTypedArray, aTypedArrayConstructor, exportTypedArrayMethod, exportTypedArrayStaticMethod, isView, isTypedArray, TypedArray, TypedArrayPrototype }; }, { "../internals/array-buffer-native": 102, "../internals/classof": 124, "../internals/create-non-enumerable-property": 129, "../internals/descriptors": 134, "../internals/global": 163, "../internals/has-own-property": 164, "../internals/is-callable": 176, "../internals/is-object": 180, "../internals/object-define-property": 198, "../internals/object-get-prototype-of": 203, "../internals/object-is-prototype-of": 204, "../internals/object-set-prototype-of": 208, "../internals/redefine": 222, "../internals/try-to-string": 257, "../internals/uid": 263, "../internals/well-known-symbol": 268 }], 104: [function(require2, module3, exports3) { "use strict"; var global2 = require2("../internals/global"); var uncurryThis = require2("../internals/function-uncurry-this"); var DESCRIPTORS = require2("../internals/descriptors"); var NATIVE_ARRAY_BUFFER = require2("../internals/array-buffer-native"); var FunctionName = require2("../internals/function-name"); var createNonEnumerableProperty = require2("../internals/create-non-enumerable-property"); var redefineAll = require2("../internals/redefine-all"); var fails = require2("../internals/fails"); var anInstance = require2("../internals/an-instance"); var toIntegerOrInfinity = require2("../internals/to-integer-or-infinity"); var toLength = require2("../internals/to-length"); var toIndex = require2("../internals/to-index"); var IEEE754 = require2("../internals/ieee754"); var getPrototypeOf = require2("../internals/object-get-prototype-of"); var setPrototypeOf = require2("../internals/object-set-prototype-of"); var getOwnPropertyNames = require2("../internals/object-get-own-property-names").f; var defineProperty = require2("../internals/object-define-property").f; var arrayFill = require2("../internals/array-fill"); var arraySlice = require2("../internals/array-slice-simple"); var setToStringTag = require2("../internals/set-to-string-tag"); var InternalStateModule = require2("../internals/internal-state"); var PROPER_FUNCTION_NAME = FunctionName.PROPER; var CONFIGURABLE_FUNCTION_NAME = FunctionName.CONFIGURABLE; var getInternalState = InternalStateModule.get; var setInternalState = InternalStateModule.set; var ARRAY_BUFFER = "ArrayBuffer"; var DATA_VIEW = "DataView"; var PROTOTYPE = "prototype"; var WRONG_LENGTH = "Wrong length"; var WRONG_INDEX = "Wrong index"; var NativeArrayBuffer = global2[ARRAY_BUFFER]; var $ArrayBuffer = NativeArrayBuffer; var ArrayBufferPrototype = $ArrayBuffer && $ArrayBuffer[PROTOTYPE]; var $DataView = global2[DATA_VIEW]; var DataViewPrototype = $DataView && $DataView[PROTOTYPE]; var ObjectPrototype = Object.prototype; var Array2 = global2.Array; var RangeError2 = global2.RangeError; var fill = uncurryThis(arrayFill); var reverse = uncurryThis([].reverse); var packIEEE754 = IEEE754.pack; var unpackIEEE754 = IEEE754.unpack; var packInt8 = function(number) { return [number & 255]; }; var packInt16 = function(number) { return [number & 255, number >> 8 & 255]; }; var packInt32 = function(number) { return [number & 255, number >> 8 & 255, number >> 16 & 255, number >> 24 & 255]; }; var unpackInt32 = function(buffer) { return buffer[3] << 24 | buffer[2] << 16 | buffer[1] << 8 | buffer[0]; }; var packFloat32 = function(number) { return packIEEE754(number, 23, 4); }; var packFloat64 = function(number) { return packIEEE754(number, 52, 8); }; var addGetter = function(Constructor, key2) { defineProperty(Constructor[PROTOTYPE], key2, { get: function() { return getInternalState(this)[key2]; } }); }; var get = function(view, count, index, isLittleEndian) { var intIndex = toIndex(index); var store = getInternalState(view); if (intIndex + count > store.byteLength) throw RangeError2(WRONG_INDEX); var bytes = getInternalState(store.buffer).bytes; var start = intIndex + store.byteOffset; var pack = arraySlice(bytes, start, start + count); return isLittleEndian ? pack : reverse(pack); }; var set = function(view, count, index, conversion, value, isLittleEndian) { var intIndex = toIndex(index); var store = getInternalState(view); if (intIndex + count > store.byteLength) throw RangeError2(WRONG_INDEX); var bytes = getInternalState(store.buffer).bytes; var start = intIndex + store.byteOffset; var pack = conversion(+value); for (var i = 0; i < count; i++) bytes[start + i] = pack[isLittleEndian ? i : count - i - 1]; }; if (!NATIVE_ARRAY_BUFFER) { $ArrayBuffer = function ArrayBuffer2(length) { anInstance(this, ArrayBufferPrototype); var byteLength = toIndex(length); setInternalState(this, { bytes: fill(Array2(byteLength), 0), byteLength }); if (!DESCRIPTORS) this.byteLength = byteLength; }; ArrayBufferPrototype = $ArrayBuffer[PROTOTYPE]; $DataView = function DataView2(buffer, byteOffset, byteLength) { anInstance(this, DataViewPrototype); anInstance(buffer, ArrayBufferPrototype); var bufferLength = getInternalState(buffer).byteLength; var offset = toIntegerOrInfinity(byteOffset); if (offset < 0 || offset > bufferLength) throw RangeError2("Wrong offset"); byteLength = byteLength === void 0 ? bufferLength - offset : toLength(byteLength); if (offset + byteLength > bufferLength) throw RangeError2(WRONG_LENGTH); setInternalState(this, { buffer, byteLength, byteOffset: offset }); if (!DESCRIPTORS) { this.buffer = buffer; this.byteLength = byteLength; this.byteOffset = offset; } }; DataViewPrototype = $DataView[PROTOTYPE]; if (DESCRIPTORS) { addGetter($ArrayBuffer, "byteLength"); addGetter($DataView, "buffer"); addGetter($DataView, "byteLength"); addGetter($DataView, "byteOffset"); } redefineAll(DataViewPrototype, { getInt8: function getInt8(byteOffset) { return get(this, 1, byteOffset)[0] << 24 >> 24; }, getUint8: function getUint8(byteOffset) { return get(this, 1, byteOffset)[0]; }, getInt16: function getInt16(byteOffset) { var bytes = get(this, 2, byteOffset, arguments.length > 1 ? arguments[1] : void 0); return (bytes[1] << 8 | bytes[0]) << 16 >> 16; }, getUint16: function getUint16(byteOffset) { var bytes = get(this, 2, byteOffset, arguments.length > 1 ? arguments[1] : void 0); return bytes[1] << 8 | bytes[0]; }, getInt32: function getInt32(byteOffset) { return unpackInt32(get(this, 4, byteOffset, arguments.length > 1 ? arguments[1] : void 0)); }, getUint32: function getUint32(byteOffset) { return unpackInt32(get(this, 4, byteOffset, arguments.length > 1 ? arguments[1] : void 0)) >>> 0; }, getFloat32: function getFloat32(byteOffset) { return unpackIEEE754(get(this, 4, byteOffset, arguments.length > 1 ? arguments[1] : void 0), 23); }, getFloat64: function getFloat64(byteOffset) { return unpackIEEE754(get(this, 8, byteOffset, arguments.length > 1 ? arguments[1] : void 0), 52); }, setInt8: function setInt8(byteOffset, value) { set(this, 1, byteOffset, packInt8, value); }, setUint8: function setUint8(byteOffset, value) { set(this, 1, byteOffset, packInt8, value); }, setInt16: function setInt16(byteOffset, value) { set(this, 2, byteOffset, packInt16, value, arguments.length > 2 ? arguments[2] : void 0); }, setUint16: function setUint16(byteOffset, value) { set(this, 2, byteOffset, packInt16, value, arguments.length > 2 ? arguments[2] : void 0); }, setInt32: function setInt32(byteOffset, value) { set(this, 4, byteOffset, packInt32, value, arguments.length > 2 ? arguments[2] : void 0); }, setUint32: function setUint32(byteOffset, value) { set(this, 4, byteOffset, packInt32, value, arguments.length > 2 ? arguments[2] : void 0); }, setFloat32: function setFloat32(byteOffset, value) { set(this, 4, byteOffset, packFloat32, value, arguments.length > 2 ? arguments[2] : void 0); }, setFloat64: function setFloat64(byteOffset, value) { set(this, 8, byteOffset, packFloat64, value, arguments.length > 2 ? arguments[2] : void 0); } }); } else { var INCORRECT_ARRAY_BUFFER_NAME = PROPER_FUNCTION_NAME && NativeArrayBuffer.name !== ARRAY_BUFFER; if (!fails(function() { NativeArrayBuffer(1); }) || !fails(function() { new NativeArrayBuffer(-1); }) || fails(function() { new NativeArrayBuffer(); new NativeArrayBuffer(1.5); new NativeArrayBuffer(NaN); return INCORRECT_ARRAY_BUFFER_NAME && !CONFIGURABLE_FUNCTION_NAME; })) { $ArrayBuffer = function ArrayBuffer2(length) { anInstance(this, ArrayBufferPrototype); return new NativeArrayBuffer(toIndex(length)); }; $ArrayBuffer[PROTOTYPE] = ArrayBufferPrototype; for (var keys = getOwnPropertyNames(NativeArrayBuffer), j = 0, key; keys.length > j; ) { if (!((key = keys[j++]) in $ArrayBuffer)) { createNonEnumerableProperty($ArrayBuffer, key, NativeArrayBuffer[key]); } } ArrayBufferPrototype.constructor = $ArrayBuffer; } else if (INCORRECT_ARRAY_BUFFER_NAME && CONFIGURABLE_FUNCTION_NAME) { createNonEnumerableProperty(NativeArrayBuffer, "name", ARRAY_BUFFER); } if (setPrototypeOf && getPrototypeOf(DataViewPrototype) !== ObjectPrototype) { setPrototypeOf(DataViewPrototype, ObjectPrototype); } var testView = new $DataView(new $ArrayBuffer(2)); var $setInt8 = uncurryThis(DataViewPrototype.setInt8); testView.setInt8(0, 2147483648); testView.setInt8(1, 2147483649); if (testView.getInt8(0) || !testView.getInt8(1)) redefineAll(DataViewPrototype, { setInt8: function setInt8(byteOffset, value) { $setInt8(this, byteOffset, value << 24 >> 24); }, setUint8: function setUint8(byteOffset, value) { $setInt8(this, byteOffset, value << 24 >> 24); } }, { unsafe: true }); } setToStringTag($ArrayBuffer, ARRAY_BUFFER); setToStringTag($DataView, DATA_VIEW); module3.exports = { ArrayBuffer: $ArrayBuffer, DataView: $DataView }; }, { "../internals/an-instance": 100, "../internals/array-buffer-native": 102, "../internals/array-fill": 106, "../internals/array-slice-simple": 116, "../internals/create-non-enumerable-property": 129, "../internals/descriptors": 134, "../internals/fails": 150, "../internals/function-name": 156, "../internals/function-uncurry-this": 157, "../internals/global": 163, "../internals/ieee754": 169, "../internals/internal-state": 173, "../internals/object-define-property": 198, "../internals/object-get-own-property-names": 201, "../internals/object-get-prototype-of": 203, "../internals/object-set-prototype-of": 208, "../internals/redefine-all": 221, "../internals/set-to-string-tag": 234, "../internals/to-index": 246, "../internals/to-integer-or-infinity": 248, "../internals/to-length": 249 }], 105: [function(require2, module3, exports3) { "use strict"; var toObject = require2("../internals/to-object"); var toAbsoluteIndex = require2("../internals/to-absolute-index"); var lengthOfArrayLike = require2("../internals/length-of-array-like"); var min = Math.min; module3.exports = [].copyWithin || function copyWithin(target, start) { var O = toObject(this); var len = lengthOfArrayLike(O); var to = toAbsoluteIndex(target, len); var from = toAbsoluteIndex(start, len); var end = arguments.length > 2 ? arguments[2] : void 0; var count = min((end === void 0 ? len : toAbsoluteIndex(end, len)) - from, len - to); var inc = 1; if (from < to && to < from + count) { inc = -1; from += count - 1; to += count - 1; } while (count-- > 0) { if (from in O) O[to] = O[from]; else delete O[to]; to += inc; from += inc; } return O; }; }, { "../internals/length-of-array-like": 188, "../internals/to-absolute-index": 245, "../internals/to-object": 250 }], 106: [function(require2, module3, exports3) { "use strict"; var toObject = require2("../internals/to-object"); var toAbsoluteIndex = require2("../internals/to-absolute-index"); var lengthOfArrayLike = require2("../internals/length-of-array-like"); module3.exports = function fill(value) { var O = toObject(this); var length = lengthOfArrayLike(O); var argumentsLength = arguments.length; var index = toAbsoluteIndex(argumentsLength > 1 ? arguments[1] : void 0, length); var end = argumentsLength > 2 ? arguments[2] : void 0; var endPos = end === void 0 ? length : toAbsoluteIndex(end, length); while (endPos > index) O[index++] = value; return O; }; }, { "../internals/length-of-array-like": 188, "../internals/to-absolute-index": 245, "../internals/to-object": 250 }], 107: [function(require2, module3, exports3) { "use strict"; var $forEach = require2("../internals/array-iteration").forEach; var arrayMethodIsStrict = require2("../internals/array-method-is-strict"); var STRICT_METHOD = arrayMethodIsStrict("forEach"); module3.exports = !STRICT_METHOD ? function forEach(callbackfn) { return $forEach(this, callbackfn, arguments.length > 1 ? arguments[1] : void 0); } : [].forEach; }, { "../internals/array-iteration": 111, "../internals/array-method-is-strict": 114 }], 108: [function(require2, module3, exports3) { var lengthOfArrayLike = require2("../internals/length-of-array-like"); module3.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; }; }, { "../internals/length-of-array-like": 188 }], 109: [function(require2, module3, exports3) { "use strict"; var global2 = require2("../internals/global"); var bind = require2("../internals/function-bind-context"); var call = require2("../internals/function-call"); var toObject = require2("../internals/to-object"); var callWithSafeIterationClosing = require2("../internals/call-with-safe-iteration-closing"); var isArrayIteratorMethod = require2("../internals/is-array-iterator-method"); var isConstructor = require2("../internals/is-constructor"); var lengthOfArrayLike = require2("../internals/length-of-array-like"); var createProperty = require2("../internals/create-property"); var getIterator = require2("../internals/get-iterator"); var getIteratorMethod = require2("../internals/get-iterator-method"); var Array2 = global2.Array; module3.exports = function from(arrayLike) { var O = toObject(arrayLike); var IS_CONSTRUCTOR = isConstructor(this); var argumentsLength = arguments.length; var mapfn = argumentsLength > 1 ? arguments[1] : void 0; var mapping = mapfn !== void 0; if (mapping) mapfn = bind(mapfn, argumentsLength > 2 ? arguments[2] : void 0); var iteratorMethod = getIteratorMethod(O); var index = 0; var length, result, step, iterator, next, value; if (iteratorMethod && !(this == Array2 && isArrayIteratorMethod(iteratorMethod))) { iterator = getIterator(O, iteratorMethod); next = iterator.next; result = IS_CONSTRUCTOR ? new this() : []; for (; !(step = call(next, iterator)).done; index++) { value = mapping ? callWithSafeIterationClosing(iterator, mapfn, [step.value, index], true) : step.value; createProperty(result, index, value); } } else { length = lengthOfArrayLike(O); result = IS_CONSTRUCTOR ? new this(length) : Array2(length); for (; length > index; index++) { value = mapping ? mapfn(O[index], index) : O[index]; createProperty(result, index, value); } } result.length = index; return result; }; }, { "../internals/call-with-safe-iteration-closing": 121, "../internals/create-property": 131, "../internals/function-bind-context": 153, "../internals/function-call": 155, "../internals/get-iterator": 160, "../internals/get-iterator-method": 159, "../internals/global": 163, "../internals/is-array-iterator-method": 174, "../internals/is-constructor": 177, "../internals/length-of-array-like": 188, "../internals/to-object": 250 }], 110: [function(require2, module3, exports3) { var toIndexedObject = require2("../internals/to-indexed-object"); var toAbsoluteIndex = require2("../internals/to-absolute-index"); var lengthOfArrayLike = require2("../internals/length-of-array-like"); 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; if (IS_INCLUDES && el != el) while (length > index) { value = O[index++]; if (value != value) return true; } else for (; length > index; index++) { if ((IS_INCLUDES || index in O) && O[index] === el) return IS_INCLUDES || index || 0; } return !IS_INCLUDES && -1; }; }; module3.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) }; }, { "../internals/length-of-array-like": 188, "../internals/to-absolute-index": 245, "../internals/to-indexed-object": 247 }], 111: [function(require2, module3, exports3) { var bind = require2("../internals/function-bind-context"); var uncurryThis = require2("../internals/function-uncurry-this"); var IndexedObject = require2("../internals/indexed-object"); var toObject = require2("../internals/to-object"); var lengthOfArrayLike = require2("../internals/length-of-array-like"); var arraySpeciesCreate = require2("../internals/array-species-create"); var push = uncurryThis([].push); 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 self2 = IndexedObject(O); var boundFunction = bind(callbackfn, that); var length = lengthOfArrayLike(self2); var index = 0; var create = specificCreate || arraySpeciesCreate; var target = IS_MAP ? create($this, length) : IS_FILTER || IS_FILTER_REJECT ? create($this, 0) : void 0; var value, result; for (; length > index; index++) if (NO_HOLES || index in self2) { value = self2[index]; result = boundFunction(value, index, O); if (TYPE) { if (IS_MAP) target[index] = result; else if (result) switch (TYPE) { case 3: return true; case 5: return value; case 6: return index; case 2: push(target, value); } else switch (TYPE) { case 4: return false; case 7: push(target, value); } } } return IS_FIND_INDEX ? -1 : IS_SOME || IS_EVERY ? IS_EVERY : target; }; }; module3.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) }; }, { "../internals/array-species-create": 120, "../internals/function-bind-context": 153, "../internals/function-uncurry-this": 157, "../internals/indexed-object": 170, "../internals/length-of-array-like": 188, "../internals/to-object": 250 }], 112: [function(require2, module3, exports3) { "use strict"; var apply = require2("../internals/function-apply"); var toIndexedObject = require2("../internals/to-indexed-object"); var toIntegerOrInfinity = require2("../internals/to-integer-or-infinity"); var lengthOfArrayLike = require2("../internals/length-of-array-like"); var arrayMethodIsStrict = require2("../internals/array-method-is-strict"); var min = Math.min; var $lastIndexOf = [].lastIndexOf; var NEGATIVE_ZERO = !!$lastIndexOf && 1 / [1].lastIndexOf(1, -0) < 0; var STRICT_METHOD = arrayMethodIsStrict("lastIndexOf"); var FORCED = NEGATIVE_ZERO || !STRICT_METHOD; module3.exports = FORCED ? function lastIndexOf(searchElement) { if (NEGATIVE_ZERO) return apply($lastIndexOf, this, arguments) || 0; var O = toIndexedObject(this); var length = lengthOfArrayLike(O); var index = length - 1; if (arguments.length > 1) index = min(index, toIntegerOrInfinity(arguments[1])); if (index < 0) index = length + index; for (; index >= 0; index--) if (index in O && O[index] === searchElement) return index || 0; return -1; } : $lastIndexOf; }, { "../internals/array-method-is-strict": 114, "../internals/function-apply": 152, "../internals/length-of-array-like": 188, "../internals/to-indexed-object": 247, "../internals/to-integer-or-infinity": 248 }], 113: [function(require2, module3, exports3) { var fails = require2("../internals/fails"); var wellKnownSymbol = require2("../internals/well-known-symbol"); var V8_VERSION = require2("../internals/engine-v8-version"); var SPECIES = wellKnownSymbol("species"); module3.exports = function(METHOD_NAME) { return V8_VERSION >= 51 || !fails(function() { var array = []; var constructor = array.constructor = {}; constructor[SPECIES] = function() { return { foo: 1 }; }; return array[METHOD_NAME](Boolean).foo !== 1; }); }; }, { "../internals/engine-v8-version": 146, "../internals/fails": 150, "../internals/well-known-symbol": 268 }], 114: [function(require2, module3, exports3) { "use strict"; var fails = require2("../internals/fails"); module3.exports = function(METHOD_NAME, argument) { var method = [][METHOD_NAME]; return !!method && fails(function() { method.call(null, argument || function() { return 1; }, 1); }); }; }, { "../internals/fails": 150 }], 115: [function(require2, module3, exports3) { var global2 = require2("../internals/global"); var aCallable = require2("../internals/a-callable"); var toObject = require2("../internals/to-object"); var IndexedObject = require2("../internals/indexed-object"); var lengthOfArrayLike = require2("../internals/length-of-array-like"); var TypeError2 = global2.TypeError; var createMethod = function(IS_RIGHT) { return function(that, callbackfn, argumentsLength, memo) { aCallable(callbackfn); var O = toObject(that); var self2 = IndexedObject(O); var length = lengthOfArrayLike(O); var index = IS_RIGHT ? length - 1 : 0; var i = IS_RIGHT ? -1 : 1; if (argumentsLength < 2) while (true) { if (index in self2) { memo = self2[index]; index += i; break; } index += i; if (IS_RIGHT ? index < 0 : length <= index) { throw TypeError2("Reduce of empty array with no initial value"); } } for (; IS_RIGHT ? index >= 0 : length > index; index += i) if (index in self2) { memo = callbackfn(memo, self2[index], index, O); } return memo; }; }; module3.exports = { // `Array.prototype.reduce` method // https://tc39.es/ecma262/#sec-array.prototype.reduce left: createMethod(false), // `Array.prototype.reduceRight` method // https://tc39.es/ecma262/#sec-array.prototype.reduceright right: createMethod(true) }; }, { "../internals/a-callable": 95, "../internals/global": 163, "../internals/indexed-object": 170, "../internals/length-of-array-like": 188, "../internals/to-object": 250 }], 116: [function(require2, module3, exports3) { var global2 = require2("../internals/global"); var toAbsoluteIndex = require2("../internals/to-absolute-index"); var lengthOfArrayLike = require2("../internals/length-of-array-like"); var createProperty = require2("../internals/create-property"); var Array2 = global2.Array; var max = Math.max; module3.exports = function(O, start, end) { var length = lengthOfArrayLike(O); var k = toAbsoluteIndex(start, length); var fin = toAbsoluteIndex(end === void 0 ? length : end, length); var result = Array2(max(fin - k, 0)); for (var n = 0; k < fin; k++, n++) createProperty(result, n, O[k]); result.length = n; return result; }; }, { "../internals/create-property": 131, "../internals/global": 163, "../internals/length-of-array-like": 188, "../internals/to-absolute-index": 245 }], 117: [function(require2, module3, exports3) { var uncurryThis = require2("../internals/function-uncurry-this"); module3.exports = uncurryThis([].slice); }, { "../internals/function-uncurry-this": 157 }], 118: [function(require2, module3, exports3) { var arraySlice = require2("../internals/array-slice-simple"); var floor = Math.floor; var mergeSort = function(array, comparefn) { var length = array.length; var middle = floor(length / 2); return length < 8 ? insertionSort(array, comparefn) : merge( array, mergeSort(arraySlice(array, 0, middle), comparefn), mergeSort(arraySlice(array, middle), comparefn), comparefn ); }; var insertionSort = function(array, comparefn) { var length = array.length; var i = 1; var element, j; while (i < length) { j = i; element = array[i]; while (j && comparefn(array[j - 1], element) > 0) { array[j] = array[--j]; } if (j !== i++) array[j] = element; } return array; }; var merge = function(array, left, right, comparefn) { var llength = left.length; var rlength = right.length; var lindex = 0; var rindex = 0; while (lindex < llength || rindex < rlength) { array[lindex + rindex] = lindex < llength && rindex < rlength ? comparefn(left[lindex], right[rindex]) <= 0 ? left[lindex++] : right[rindex++] : lindex < llength ? left[lindex++] : right[rindex++]; } return array; }; module3.exports = mergeSort; }, { "../internals/array-slice-simple": 116 }], 119: [function(require2, module3, exports3) { var global2 = require2("../internals/global"); var isArray = require2("../internals/is-array"); var isConstructor = require2("../internals/is-constructor"); var isObject = require2("../internals/is-object"); var wellKnownSymbol = require2("../internals/well-known-symbol"); var SPECIES = wellKnownSymbol("species"); var Array2 = global2.Array; module3.exports = function(originalArray) { var C; if (isArray(originalArray)) { C = originalArray.constructor; if (isConstructor(C) && (C === Array2 || isArray(C.prototype))) C = void 0; else if (isObject(C)) { C = C[SPECIES]; if (C === null) C = void 0; } } return C === void 0 ? Array2 : C; }; }, { "../internals/global": 163, "../internals/is-array": 175, "../internals/is-constructor": 177, "../internals/is-object": 180, "../internals/well-known-symbol": 268 }], 120: [function(require2, module3, exports3) { var arraySpeciesConstructor = require2("../internals/array-species-constructor"); module3.exports = function(originalArray, length) { return new (arraySpeciesConstructor(originalArray))(length === 0 ? 0 : length); }; }, { "../internals/array-species-constructor": 119 }], 121: [function(require2, module3, exports3) { var anObject = require2("../internals/an-object"); var iteratorClose = require2("../internals/iterator-close"); module3.exports = function(iterator, fn, value, ENTRIES) { try { return ENTRIES ? fn(anObject(value)[0], value[1]) : fn(value); } catch (error) { iteratorClose(iterator, "throw", error); } }; }, { "../internals/an-object": 101, "../internals/iterator-close": 185 }], 122: [function(require2, module3, exports3) { var wellKnownSymbol = require2("../internals/well-known-symbol"); 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; }; Array.from(iteratorWithReturn, function() { throw 2; }); } catch (error) { } module3.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) { } return ITERATION_SUPPORT; }; }, { "../internals/well-known-symbol": 268 }], 123: [function(require2, module3, exports3) { var uncurryThis = require2("../internals/function-uncurry-this"); var toString = uncurryThis({}.toString); var stringSlice = uncurryThis("".slice); module3.exports = function(it) { return stringSlice(toString(it), 8, -1); }; }, { "../internals/function-uncurry-this": 157 }], 124: [function(require2, module3, exports3) { var global2 = require2("../internals/global"); var TO_STRING_TAG_SUPPORT = require2("../internals/to-string-tag-support"); var isCallable = require2("../internals/is-callable"); var classofRaw = require2("../internals/classof-raw"); var wellKnownSymbol = require2("../internals/well-known-symbol"); var TO_STRING_TAG = wellKnownSymbol("toStringTag"); var Object2 = global2.Object; var CORRECT_ARGUMENTS = classofRaw(function() { return arguments; }()) == "Arguments"; var tryGet = function(it, key) { try { return it[key]; } catch (error) { } }; module3.exports = TO_STRING_TAG_SUPPORT ? classofRaw : function(it) { var O, tag, result; return it === void 0 ? "Undefined" : it === null ? "Null" : typeof (tag = tryGet(O = Object2(it), TO_STRING_TAG)) == "string" ? tag : CORRECT_ARGUMENTS ? classofRaw(O) : (result = classofRaw(O)) == "Object" && isCallable(O.callee) ? "Arguments" : result; }; }, { "../internals/classof-raw": 123, "../internals/global": 163, "../internals/is-callable": 176, "../internals/to-string-tag-support": 255, "../internals/well-known-symbol": 268 }], 125: [function(require2, module3, exports3) { var hasOwn = require2("../internals/has-own-property"); var ownKeys = require2("../internals/own-keys"); var getOwnPropertyDescriptorModule = require2("../internals/object-get-own-property-descriptor"); var definePropertyModule = require2("../internals/object-define-property"); module3.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)); } } }; }, { "../internals/has-own-property": 164, "../internals/object-define-property": 198, "../internals/object-get-own-property-descriptor": 199, "../internals/own-keys": 212 }], 126: [function(require2, module3, exports3) { var wellKnownSymbol = require2("../internals/well-known-symbol"); var MATCH = wellKnownSymbol("match"); module3.exports = function(METHOD_NAME) { var regexp = /./; try { "/./"[METHOD_NAME](regexp); } catch (error1) { try { regexp[MATCH] = false; return "/./"[METHOD_NAME](regexp); } catch (error2) { } } return false; }; }, { "../internals/well-known-symbol": 268 }], 127: [function(require2, module3, exports3) { var fails = require2("../internals/fails"); module3.exports = !fails(function() { function F() { } F.prototype.constructor = null; return Object.getPrototypeOf(new F()) !== F.prototype; }); }, { "../internals/fails": 150 }], 128: [function(require2, module3, exports3) { "use strict"; var IteratorPrototype = require2("../internals/iterators-core").IteratorPrototype; var create = require2("../internals/object-create"); var createPropertyDescriptor = require2("../internals/create-property-descriptor"); var setToStringTag = require2("../internals/set-to-string-tag"); var Iterators = require2("../internals/iterators"); var returnThis = function() { return this; }; module3.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; }; }, { "../internals/create-property-descriptor": 130, "../internals/iterators": 187, "../internals/iterators-core": 186, "../internals/object-create": 196, "../internals/set-to-string-tag": 234 }], 129: [function(require2, module3, exports3) { var DESCRIPTORS = require2("../internals/descriptors"); var definePropertyModule = require2("../internals/object-define-property"); var createPropertyDescriptor = require2("../internals/create-property-descriptor"); module3.exports = DESCRIPTORS ? function(object, key, value) { return definePropertyModule.f(object, key, createPropertyDescriptor(1, value)); } : function(object, key, value) { object[key] = value; return object; }; }, { "../internals/create-property-descriptor": 130, "../internals/descriptors": 134, "../internals/object-define-property": 198 }], 130: [function(require2, module3, exports3) { module3.exports = function(bitmap, value) { return { enumerable: !(bitmap & 1), configurable: !(bitmap & 2), writable: !(bitmap & 4), value }; }; }, {}], 131: [function(require2, module3, exports3) { "use strict"; var toPropertyKey = require2("../internals/to-property-key"); var definePropertyModule = require2("../internals/object-define-property"); var createPropertyDescriptor = require2("../internals/create-property-descriptor"); module3.exports = function(object, key, value) { var propertyKey = toPropertyKey(key); if (propertyKey in object) definePropertyModule.f(object, propertyKey, createPropertyDescriptor(0, value)); else object[propertyKey] = value; }; }, { "../internals/create-property-descriptor": 130, "../internals/object-define-property": 198, "../internals/to-property-key": 254 }], 132: [function(require2, module3, exports3) { "use strict"; var $ = require2("../internals/export"); var call = require2("../internals/function-call"); var IS_PURE = require2("../internals/is-pure"); var FunctionName = require2("../internals/function-name"); var isCallable = require2("../internals/is-callable"); var createIteratorConstructor = require2("../internals/create-iterator-constructor"); var getPrototypeOf = require2("../internals/object-get-prototype-of"); var setPrototypeOf = require2("../internals/object-set-prototype-of"); var setToStringTag = require2("../internals/set-to-string-tag"); var createNonEnumerableProperty = require2("../internals/create-non-enumerable-property"); var redefine = require2("../internals/redefine"); var wellKnownSymbol = require2("../internals/well-known-symbol"); var Iterators = require2("../internals/iterators"); var IteratorsCore = require2("../internals/iterators-core"); 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; }; module3.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; 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])) { redefine(CurrentIteratorPrototype, ITERATOR, returnThis); } } setToStringTag(CurrentIteratorPrototype, TO_STRING_TAG, true, true); if (IS_PURE) Iterators[TO_STRING_TAG] = returnThis; } } 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); }; } } 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)) { redefine(IterablePrototype, KEY, methods[KEY]); } } else $({ target: NAME, proto: true, forced: BUGGY_SAFARI_ITERATORS || INCORRECT_VALUES_NAME }, methods); } if ((!IS_PURE || FORCED) && IterablePrototype[ITERATOR] !== defaultIterator) { redefine(IterablePrototype, ITERATOR, defaultIterator, { name: DEFAULT }); } Iterators[NAME] = defaultIterator; return methods; }; }, { "../internals/create-iterator-constructor": 128, "../internals/create-non-enumerable-property": 129, "../internals/export": 149, "../internals/function-call": 155, "../internals/function-name": 156, "../internals/is-callable": 176, "../internals/is-pure": 181, "../internals/iterators": 187, "../internals/iterators-core": 186, "../internals/object-get-prototype-of": 203, "../internals/object-set-prototype-of": 208, "../internals/redefine": 222, "../internals/set-to-string-tag": 234, "../internals/well-known-symbol": 268 }], 133: [function(require2, module3, exports3) { var path = require2("../internals/path"); var hasOwn = require2("../internals/has-own-property"); var wrappedWellKnownSymbolModule = require2("../internals/well-known-symbol-wrapped"); var defineProperty = require2("../internals/object-define-property").f; module3.exports = function(NAME) { var Symbol2 = path.Symbol || (path.Symbol = {}); if (!hasOwn(Symbol2, NAME)) defineProperty(Symbol2, NAME, { value: wrappedWellKnownSymbolModule.f(NAME) }); }; }, { "../internals/has-own-property": 164, "../internals/object-define-property": 198, "../internals/path": 213, "../internals/well-known-symbol-wrapped": 267 }], 134: [function(require2, module3, exports3) { var fails = require2("../internals/fails"); module3.exports = !fails(function() { return Object.defineProperty({}, 1, { get: function() { return 7; } })[1] != 7; }); }, { "../internals/fails": 150 }], 135: [function(require2, module3, exports3) { var global2 = require2("../internals/global"); var isObject = require2("../internals/is-object"); var document2 = global2.document; var EXISTS = isObject(document2) && isObject(document2.createElement); module3.exports = function(it) { return EXISTS ? document2.createElement(it) : {}; }; }, { "../internals/global": 163, "../internals/is-object": 180 }], 136: [function(require2, module3, exports3) { module3.exports = { CSSRuleList: 0, CSSStyleDeclaration: 0, CSSValueList: 0, ClientRectList: 0, DOMRectList: 0, DOMStringList: 0, DOMTokenList: 1, DataTransferItemList: 0, FileList: 0, HTMLAllCollection: 0, HTMLCollection: 0, HTMLFormElement: 0, HTMLSelectElement: 0, MediaList: 0, MimeTypeArray: 0, NamedNodeMap: 0, NodeList: 1, PaintRequestList: 0, Plugin: 0, PluginArray: 0, SVGLengthList: 0, SVGNumberList: 0, SVGPathSegList: 0, SVGPointList: 0, SVGStringList: 0, SVGTransformList: 0, SourceBufferList: 0, StyleSheetList: 0, TextTrackCueList: 0, TextTrackList: 0, TouchList: 0 }; }, {}], 137: [function(require2, module3, exports3) { var documentCreateElement = require2("../internals/document-create-element"); var classList = documentCreateElement("span").classList; var DOMTokenListPrototype = classList && classList.constructor && classList.constructor.prototype; module3.exports = DOMTokenListPrototype === Object.prototype ? void 0 : DOMTokenListPrototype; }, { "../internals/document-create-element": 135 }], 138: [function(require2, module3, exports3) { var userAgent = require2("../internals/engine-user-agent"); var firefox = userAgent.match(/firefox\/(\d+)/i); module3.exports = !!firefox && +firefox[1]; }, { "../internals/engine-user-agent": 145 }], 139: [function(require2, module3, exports3) { module3.exports = typeof window == "object" && typeof Deno != "object"; }, {}], 140: [function(require2, module3, exports3) { var UA = require2("../internals/engine-user-agent"); module3.exports = /MSIE|Trident/.test(UA); }, { "../internals/engine-user-agent": 145 }], 141: [function(require2, module3, exports3) { var userAgent = require2("../internals/engine-user-agent"); var global2 = require2("../internals/global"); module3.exports = /ipad|iphone|ipod/i.test(userAgent) && global2.Pebble !== void 0; }, { "../internals/engine-user-agent": 145, "../internals/global": 163 }], 142: [function(require2, module3, exports3) { var userAgent = require2("../internals/engine-user-agent"); module3.exports = /(?:ipad|iphone|ipod).*applewebkit/i.test(userAgent); }, { "../internals/engine-user-agent": 145 }], 143: [function(require2, module3, exports3) { var classof = require2("../internals/classof-raw"); var global2 = require2("../internals/global"); module3.exports = classof(global2.process) == "process"; }, { "../internals/classof-raw": 123, "../internals/global": 163 }], 144: [function(require2, module3, exports3) { var userAgent = require2("../internals/engine-user-agent"); module3.exports = /web0s(?!.*chrome)/i.test(userAgent); }, { "../internals/engine-user-agent": 145 }], 145: [function(require2, module3, exports3) { var getBuiltIn = require2("../internals/get-built-in"); module3.exports = getBuiltIn("navigator", "userAgent") || ""; }, { "../internals/get-built-in": 158 }], 146: [function(require2, module3, exports3) { var global2 = require2("../internals/global"); var userAgent = require2("../internals/engine-user-agent"); var process = global2.process; var Deno2 = global2.Deno; var versions = process && process.versions || Deno2 && Deno2.version; var v8 = versions && versions.v8; var match, version; if (v8) { match = v8.split("."); version = match[0] > 0 && match[0] < 4 ? 1 : +(match[0] + match[1]); } if (!version && userAgent) { match = userAgent.match(/Edge\/(\d+)/); if (!match || match[1] >= 74) { match = userAgent.match(/Chrome\/(\d+)/); if (match) version = +match[1]; } } module3.exports = version; }, { "../internals/engine-user-agent": 145, "../internals/global": 163 }], 147: [function(require2, module3, exports3) { var userAgent = require2("../internals/engine-user-agent"); var webkit = userAgent.match(/AppleWebKit\/(\d+)\./); module3.exports = !!webkit && +webkit[1]; }, { "../internals/engine-user-agent": 145 }], 148: [function(require2, module3, exports3) { module3.exports = [ "constructor", "hasOwnProperty", "isPrototypeOf", "propertyIsEnumerable", "toLocaleString", "toString", "valueOf" ]; }, {}], 149: [function(require2, module3, exports3) { var global2 = require2("../internals/global"); var getOwnPropertyDescriptor = require2("../internals/object-get-own-property-descriptor").f; var createNonEnumerableProperty = require2("../internals/create-non-enumerable-property"); var redefine = require2("../internals/redefine"); var setGlobal = require2("../internals/set-global"); var copyConstructorProperties = require2("../internals/copy-constructor-properties"); var isForced = require2("../internals/is-forced"); module3.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 = global2; } else if (STATIC) { target = global2[TARGET] || setGlobal(TARGET, {}); } else { target = (global2[TARGET] || {}).prototype; } if (target) for (key in source) { sourceProperty = source[key]; if (options.noTargetGet) { descriptor = getOwnPropertyDescriptor(target, key); targetProperty = descriptor && descriptor.value; } else targetProperty = target[key]; FORCED = isForced(GLOBAL ? key : TARGET + (STATIC ? "." : "#") + key, options.forced); if (!FORCED && targetProperty !== void 0) { if (typeof sourceProperty == typeof targetProperty) continue; copyConstructorProperties(sourceProperty, targetProperty); } if (options.sham || targetProperty && targetProperty.sham) { createNonEnumerableProperty(sourceProperty, "sham", true); } redefine(target, key, sourceProperty, options); } }; }, { "../internals/copy-constructor-properties": 125, "../internals/create-non-enumerable-property": 129, "../internals/global": 163, "../internals/is-forced": 178, "../internals/object-get-own-property-descriptor": 199, "../internals/redefine": 222, "../internals/set-global": 232 }], 150: [function(require2, module3, exports3) { module3.exports = function(exec) { try { return !!exec(); } catch (error) { return true; } }; }, {}], 151: [function(require2, module3, exports3) { "use strict"; require2("../modules/es.regexp.exec"); var uncurryThis = require2("../internals/function-uncurry-this"); var redefine = require2("../internals/redefine"); var regexpExec = require2("../internals/regexp-exec"); var fails = require2("../internals/fails"); var wellKnownSymbol = require2("../internals/well-known-symbol"); var createNonEnumerableProperty = require2("../internals/create-non-enumerable-property"); var SPECIES = wellKnownSymbol("species"); var RegExpPrototype = RegExp.prototype; module3.exports = function(KEY, exec, FORCED, SHAM) { var SYMBOL = wellKnownSymbol(KEY); var DELEGATES_TO_SYMBOL = !fails(function() { var O = {}; O[SYMBOL] = function() { return 7; }; return ""[KEY](O) != 7; }); var DELEGATES_TO_EXEC = DELEGATES_TO_SYMBOL && !fails(function() { var execCalled = false; var re = /a/; if (KEY === "split") { re = {}; re.constructor = {}; re.constructor[SPECIES] = function() { return re; }; re.flags = ""; re[SYMBOL] = /./[SYMBOL]; } re.exec = function() { execCalled = true; return null; }; re[SYMBOL](""); return !execCalled; }); if (!DELEGATES_TO_SYMBOL || !DELEGATES_TO_EXEC || FORCED) { var uncurriedNativeRegExpMethod = uncurryThis(/./[SYMBOL]); var methods = exec(SYMBOL, ""[KEY], function(nativeMethod, regexp, str, arg2, forceStringMethod) { var uncurriedNativeMethod = uncurryThis(nativeMethod); var $exec = regexp.exec; if ($exec === regexpExec || $exec === RegExpPrototype.exec) { if (DELEGATES_TO_SYMBOL && !forceStringMethod) { return { done: true, value: uncurriedNativeRegExpMethod(regexp, str, arg2) }; } return { done: true, value: uncurriedNativeMethod(str, regexp, arg2) }; } return { done: false }; }); redefine(String.prototype, KEY, methods[0]); redefine(RegExpPrototype, SYMBOL, methods[1]); } if (SHAM) createNonEnumerableProperty(RegExpPrototype[SYMBOL], "sham", true); }; }, { "../internals/create-non-enumerable-property": 129, "../internals/fails": 150, "../internals/function-uncurry-this": 157, "../internals/redefine": 222, "../internals/regexp-exec": 224, "../internals/well-known-symbol": 268, "../modules/es.regexp.exec": 300 }], 152: [function(require2, module3, exports3) { var NATIVE_BIND = require2("../internals/function-bind-native"); var FunctionPrototype = Function.prototype; var apply = FunctionPrototype.apply; var call = FunctionPrototype.call; module3.exports = typeof Reflect == "object" && Reflect.apply || (NATIVE_BIND ? call.bind(apply) : function() { return call.apply(apply, arguments); }); }, { "../internals/function-bind-native": 154 }], 153: [function(require2, module3, exports3) { var uncurryThis = require2("../internals/function-uncurry-this"); var aCallable = require2("../internals/a-callable"); var NATIVE_BIND = require2("../internals/function-bind-native"); var bind = uncurryThis(uncurryThis.bind); module3.exports = function(fn, that) { aCallable(fn); return that === void 0 ? fn : NATIVE_BIND ? bind(fn, that) : function() { return fn.apply(that, arguments); }; }; }, { "../internals/a-callable": 95, "../internals/function-bind-native": 154, "../internals/function-uncurry-this": 157 }], 154: [function(require2, module3, exports3) { var fails = require2("../internals/fails"); module3.exports = !fails(function() { var test = function() { }.bind(); return typeof test != "function" || test.hasOwnProperty("prototype"); }); }, { "../internals/fails": 150 }], 155: [function(require2, module3, exports3) { var NATIVE_BIND = require2("../internals/function-bind-native"); var call = Function.prototype.call; module3.exports = NATIVE_BIND ? call.bind(call) : function() { return call.apply(call, arguments); }; }, { "../internals/function-bind-native": 154 }], 156: [function(require2, module3, exports3) { var DESCRIPTORS = require2("../internals/descriptors"); var hasOwn = require2("../internals/has-own-property"); var FunctionPrototype = Function.prototype; var getDescriptor = DESCRIPTORS && Object.getOwnPropertyDescriptor; var EXISTS = hasOwn(FunctionPrototype, "name"); var PROPER = EXISTS && function something() { }.name === "something"; var CONFIGURABLE = EXISTS && (!DESCRIPTORS || DESCRIPTORS && getDescriptor(FunctionPrototype, "name").configurable); module3.exports = { EXISTS, PROPER, CONFIGURABLE }; }, { "../internals/descriptors": 134, "../internals/has-own-property": 164 }], 157: [function(require2, module3, exports3) { var NATIVE_BIND = require2("../internals/function-bind-native"); var FunctionPrototype = Function.prototype; var bind = FunctionPrototype.bind; var call = FunctionPrototype.call; var uncurryThis = NATIVE_BIND && bind.bind(call, call); module3.exports = NATIVE_BIND ? function(fn) { return fn && uncurryThis(fn); } : function(fn) { return fn && function() { return call.apply(fn, arguments); }; }; }, { "../internals/function-bind-native": 154 }], 158: [function(require2, module3, exports3) { var global2 = require2("../internals/global"); var isCallable = require2("../internals/is-callable"); var aFunction = function(argument) { return isCallable(argument) ? argument : void 0; }; module3.exports = function(namespace, method) { return arguments.length < 2 ? aFunction(global2[namespace]) : global2[namespace] && global2[namespace][method]; }; }, { "../internals/global": 163, "../internals/is-callable": 176 }], 159: [function(require2, module3, exports3) { var classof = require2("../internals/classof"); var getMethod = require2("../internals/get-method"); var Iterators = require2("../internals/iterators"); var wellKnownSymbol = require2("../internals/well-known-symbol"); var ITERATOR = wellKnownSymbol("iterator"); module3.exports = function(it) { if (it != void 0) return getMethod(it, ITERATOR) || getMethod(it, "@@iterator") || Iterators[classof(it)]; }; }, { "../internals/classof": 124, "../internals/get-method": 161, "../internals/iterators": 187, "../internals/well-known-symbol": 268 }], 160: [function(require2, module3, exports3) { var global2 = require2("../internals/global"); var call = require2("../internals/function-call"); var aCallable = require2("../internals/a-callable"); var anObject = require2("../internals/an-object"); var tryToString = require2("../internals/try-to-string"); var getIteratorMethod = require2("../internals/get-iterator-method"); var TypeError2 = global2.TypeError; module3.exports = function(argument, usingIterator) { var iteratorMethod = arguments.length < 2 ? getIteratorMethod(argument) : usingIterator; if (aCallable(iteratorMethod)) return anObject(call(iteratorMethod, argument)); throw TypeError2(tryToString(argument) + " is not iterable"); }; }, { "../internals/a-callable": 95, "../internals/an-object": 101, "../internals/function-call": 155, "../internals/get-iterator-method": 159, "../internals/global": 163, "../internals/try-to-string": 257 }], 161: [function(require2, module3, exports3) { var aCallable = require2("../internals/a-callable"); module3.exports = function(V, P) { var func = V[P]; return func == null ? void 0 : aCallable(func); }; }, { "../internals/a-callable": 95 }], 162: [function(require2, module3, exports3) { var uncurryThis = require2("../internals/function-uncurry-this"); var toObject = require2("../internals/to-object"); var floor = Math.floor; var charAt = uncurryThis("".charAt); var replace = uncurryThis("".replace); var stringSlice = uncurryThis("".slice); var SUBSTITUTION_SYMBOLS = /\$([$&'`]|\d{1,2}|<[^>]*>)/g; var SUBSTITUTION_SYMBOLS_NO_NAMED = /\$([$&'`]|\d{1,2})/g; module3.exports = function(matched, str, position, captures, namedCaptures, replacement) { var tailPos = position + matched.length; var m = captures.length; var symbols = SUBSTITUTION_SYMBOLS_NO_NAMED; if (namedCaptures !== void 0) { namedCaptures = toObject(namedCaptures); symbols = SUBSTITUTION_SYMBOLS; } return replace(replacement, symbols, function(match, ch) { var capture; switch (charAt(ch, 0)) { case "$": return "$"; case "&": return matched; case "`": return stringSlice(str, 0, position); case "'": return stringSlice(str, tailPos); case "<": capture = namedCaptures[stringSlice(ch, 1, -1)]; break; default: var n = +ch; if (n === 0) return match; if (n > m) { var f = floor(n / 10); if (f === 0) return match; if (f <= m) return captures[f - 1] === void 0 ? charAt(ch, 1) : captures[f - 1] + charAt(ch, 1); return match; } capture = captures[n - 1]; } return capture === void 0 ? "" : capture; }); }; }, { "../internals/function-uncurry-this": 157, "../internals/to-object": 250 }], 163: [function(require2, module3, exports3) { (function(global2) { (function() { var check = function(it) { return it && it.Math == Math && it; }; module3.exports = // eslint-disable-next-line es-x/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 global2 == "object" && global2) || // eslint-disable-next-line no-new-func -- fallback function() { return this; }() || Function("return this")(); }).call(this); }).call(this, typeof global !== "undefined" ? global : typeof self !== "undefined" ? self : typeof window !== "undefined" ? window : {}); }, {}], 164: [function(require2, module3, exports3) { var uncurryThis = require2("../internals/function-uncurry-this"); var toObject = require2("../internals/to-object"); var hasOwnProperty = uncurryThis({}.hasOwnProperty); module3.exports = Object.hasOwn || function hasOwn(it, key) { return hasOwnProperty(toObject(it), key); }; }, { "../internals/function-uncurry-this": 157, "../internals/to-object": 250 }], 165: [function(require2, module3, exports3) { module3.exports = {}; }, {}], 166: [function(require2, module3, exports3) { var global2 = require2("../internals/global"); module3.exports = function(a, b) { var console2 = global2.console; if (console2 && console2.error) { arguments.length == 1 ? console2.error(a) : console2.error(a, b); } }; }, { "../internals/global": 163 }], 167: [function(require2, module3, exports3) { var getBuiltIn = require2("../internals/get-built-in"); module3.exports = getBuiltIn("document", "documentElement"); }, { "../internals/get-built-in": 158 }], 168: [function(require2, module3, exports3) { var DESCRIPTORS = require2("../internals/descriptors"); var fails = require2("../internals/fails"); var createElement = require2("../internals/document-create-element"); module3.exports = !DESCRIPTORS && !fails(function() { return Object.defineProperty(createElement("div"), "a", { get: function() { return 7; } }).a != 7; }); }, { "../internals/descriptors": 134, "../internals/document-create-element": 135, "../internals/fails": 150 }], 169: [function(require2, module3, exports3) { var global2 = require2("../internals/global"); var Array2 = global2.Array; var abs = Math.abs; var pow = Math.pow; var floor = Math.floor; var log = Math.log; var LN2 = Math.LN2; var pack = function(number, mantissaLength, bytes) { var buffer = Array2(bytes); var exponentLength = bytes * 8 - mantissaLength - 1; var eMax = (1 << exponentLength) - 1; var eBias = eMax >> 1; var rt = mantissaLength === 23 ? pow(2, -24) - pow(2, -77) : 0; var sign = number < 0 || number === 0 && 1 / number < 0 ? 1 : 0; var index = 0; var exponent, mantissa, c; number = abs(number); if (number != number || number === Infinity) { mantissa = number != number ? 1 : 0; exponent = eMax; } else { exponent = floor(log(number) / LN2); c = pow(2, -exponent); if (number * c < 1) { exponent--; c *= 2; } if (exponent + eBias >= 1) { number += rt / c; } else { number += rt * pow(2, 1 - eBias); } if (number * c >= 2) { exponent++; c /= 2; } if (exponent + eBias >= eMax) { mantissa = 0; exponent = eMax; } else if (exponent + eBias >= 1) { mantissa = (number * c - 1) * pow(2, mantissaLength); exponent = exponent + eBias; } else { mantissa = number * pow(2, eBias - 1) * pow(2, mantissaLength); exponent = 0; } } while (mantissaLength >= 8) { buffer[index++] = mantissa & 255; mantissa /= 256; mantissaLength -= 8; } exponent = exponent << mantissaLength | mantissa; exponentLength += mantissaLength; while (exponentLength > 0) { buffer[index++] = exponent & 255; exponent /= 256; exponentLength -= 8; } buffer[--index] |= sign * 128; return buffer; }; var unpack = function(buffer, mantissaLength) { var bytes = buffer.length; var exponentLength = bytes * 8 - mantissaLength - 1; var eMax = (1 << exponentLength) - 1; var eBias = eMax >> 1; var nBits = exponentLength - 7; var index = bytes - 1; var sign = buffer[index--]; var exponent = sign & 127; var mantissa; sign >>= 7; while (nBits > 0) { exponent = exponent * 256 + buffer[index--]; nBits -= 8; } mantissa = exponent & (1 << -nBits) - 1; exponent >>= -nBits; nBits += mantissaLength; while (nBits > 0) { mantissa = mantissa * 256 + buffer[index--]; nBits -= 8; } if (exponent === 0) { exponent = 1 - eBias; } else if (exponent === eMax) { return mantissa ? NaN : sign ? -Infinity : Infinity; } else { mantissa = mantissa + pow(2, mantissaLength); exponent = exponent - eBias; } return (sign ? -1 : 1) * mantissa * pow(2, exponent - mantissaLength); }; module3.exports = { pack, unpack }; }, { "../internals/global": 163 }], 170: [function(require2, module3, exports3) { var global2 = require2("../internals/global"); var uncurryThis = require2("../internals/function-uncurry-this"); var fails = require2("../internals/fails"); var classof = require2("../internals/classof-raw"); var Object2 = global2.Object; var split = uncurryThis("".split); module3.exports = fails(function() { return !Object2("z").propertyIsEnumerable(0); }) ? function(it) { return classof(it) == "String" ? split(it, "") : Object2(it); } : Object2; }, { "../internals/classof-raw": 123, "../internals/fails": 150, "../internals/function-uncurry-this": 157, "../internals/global": 163 }], 171: [function(require2, module3, exports3) { var isCallable = require2("../internals/is-callable"); var isObject = require2("../internals/is-object"); var setPrototypeOf = require2("../internals/object-set-prototype-of"); module3.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; }; }, { "../internals/is-callable": 176, "../internals/is-object": 180, "../internals/object-set-prototype-of": 208 }], 172: [function(require2, module3, exports3) { var uncurryThis = require2("../internals/function-uncurry-this"); var isCallable = require2("../internals/is-callable"); var store = require2("../internals/shared-store"); var functionToString = uncurryThis(Function.toString); if (!isCallable(store.inspectSource)) { store.inspectSource = function(it) { return functionToString(it); }; } module3.exports = store.inspectSource; }, { "../internals/function-uncurry-this": 157, "../internals/is-callable": 176, "../internals/shared-store": 236 }], 173: [function(require2, module3, exports3) { var NATIVE_WEAK_MAP = require2("../internals/native-weak-map"); var global2 = require2("../internals/global"); var uncurryThis = require2("../internals/function-uncurry-this"); var isObject = require2("../internals/is-object"); var createNonEnumerableProperty = require2("../internals/create-non-enumerable-property"); var hasOwn = require2("../internals/has-own-property"); var shared = require2("../internals/shared-store"); var sharedKey = require2("../internals/shared-key"); var hiddenKeys = require2("../internals/hidden-keys"); var OBJECT_ALREADY_INITIALIZED = "Object already initialized"; var TypeError2 = global2.TypeError; var WeakMap2 = global2.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 TypeError2("Incompatible receiver, " + TYPE + " required"); } return state; }; }; if (NATIVE_WEAK_MAP || shared.state) { var store = shared.state || (shared.state = new WeakMap2()); var wmget = uncurryThis(store.get); var wmhas = uncurryThis(store.has); var wmset = uncurryThis(store.set); set = function(it, metadata) { if (wmhas(store, it)) throw new TypeError2(OBJECT_ALREADY_INITIALIZED); metadata.facade = it; wmset(store, it, metadata); return metadata; }; get = function(it) { return wmget(store, it) || {}; }; has = function(it) { return wmhas(store, it); }; } else { var STATE = sharedKey("state"); hiddenKeys[STATE] = true; set = function(it, metadata) { if (hasOwn(it, STATE)) throw new TypeError2(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); }; } module3.exports = { set, get, has, enforce, getterFor }; }, { "../internals/create-non-enumerable-property": 129, "../internals/function-uncurry-this": 157, "../internals/global": 163, "../internals/has-own-property": 164, "../internals/hidden-keys": 165, "../internals/is-object": 180, "../internals/native-weak-map": 192, "../internals/shared-key": 235, "../internals/shared-store": 236 }], 174: [function(require2, module3, exports3) { var wellKnownSymbol = require2("../internals/well-known-symbol"); var Iterators = require2("../internals/iterators"); var ITERATOR = wellKnownSymbol("iterator"); var ArrayPrototype = Array.prototype; module3.exports = function(it) { return it !== void 0 && (Iterators.Array === it || ArrayPrototype[ITERATOR] === it); }; }, { "../internals/iterators": 187, "../internals/well-known-symbol": 268 }], 175: [function(require2, module3, exports3) { var classof = require2("../internals/classof-raw"); module3.exports = Array.isArray || function isArray(argument) { return classof(argument) == "Array"; }; }, { "../internals/classof-raw": 123 }], 176: [function(require2, module3, exports3) { module3.exports = function(argument) { return typeof argument == "function"; }; }, {}], 177: [function(require2, module3, exports3) { var uncurryThis = require2("../internals/function-uncurry-this"); var fails = require2("../internals/fails"); var isCallable = require2("../internals/is-callable"); var classof = require2("../internals/classof"); var getBuiltIn = require2("../internals/get-built-in"); var inspectSource = require2("../internals/inspect-source"); var noop = function() { }; 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 { return INCORRECT_TO_STRING || !!exec(constructorRegExp, inspectSource(argument)); } catch (error) { return true; } }; isConstructorLegacy.sham = true; module3.exports = !construct || fails(function() { var called; return isConstructorModern(isConstructorModern.call) || !isConstructorModern(Object) || !isConstructorModern(function() { called = true; }) || called; }) ? isConstructorLegacy : isConstructorModern; }, { "../internals/classof": 124, "../internals/fails": 150, "../internals/function-uncurry-this": 157, "../internals/get-built-in": 158, "../internals/inspect-source": 172, "../internals/is-callable": 176 }], 178: [function(require2, module3, exports3) { var fails = require2("../internals/fails"); var isCallable = require2("../internals/is-callable"); 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"; module3.exports = isForced; }, { "../internals/fails": 150, "../internals/is-callable": 176 }], 179: [function(require2, module3, exports3) { var isObject = require2("../internals/is-object"); var floor = Math.floor; module3.exports = Number.isInteger || function isInteger(it) { return !isObject(it) && isFinite(it) && floor(it) === it; }; }, { "../internals/is-object": 180 }], 180: [function(require2, module3, exports3) { var isCallable = require2("../internals/is-callable"); module3.exports = function(it) { return typeof it == "object" ? it !== null : isCallable(it); }; }, { "../internals/is-callable": 176 }], 181: [function(require2, module3, exports3) { module3.exports = false; }, {}], 182: [function(require2, module3, exports3) { var isObject = require2("../internals/is-object"); var classof = require2("../internals/classof-raw"); var wellKnownSymbol = require2("../internals/well-known-symbol"); var MATCH = wellKnownSymbol("match"); module3.exports = function(it) { var isRegExp; return isObject(it) && ((isRegExp = it[MATCH]) !== void 0 ? !!isRegExp : classof(it) == "RegExp"); }; }, { "../internals/classof-raw": 123, "../internals/is-object": 180, "../internals/well-known-symbol": 268 }], 183: [function(require2, module3, exports3) { var global2 = require2("../internals/global"); var getBuiltIn = require2("../internals/get-built-in"); var isCallable = require2("../internals/is-callable"); var isPrototypeOf = require2("../internals/object-is-prototype-of"); var USE_SYMBOL_AS_UID = require2("../internals/use-symbol-as-uid"); var Object2 = global2.Object; module3.exports = USE_SYMBOL_AS_UID ? function(it) { return typeof it == "symbol"; } : function(it) { var $Symbol = getBuiltIn("Symbol"); return isCallable($Symbol) && isPrototypeOf($Symbol.prototype, Object2(it)); }; }, { "../internals/get-built-in": 158, "../internals/global": 163, "../internals/is-callable": 176, "../internals/object-is-prototype-of": 204, "../internals/use-symbol-as-uid": 264 }], 184: [function(require2, module3, exports3) { var global2 = require2("../internals/global"); var bind = require2("../internals/function-bind-context"); var call = require2("../internals/function-call"); var anObject = require2("../internals/an-object"); var tryToString = require2("../internals/try-to-string"); var isArrayIteratorMethod = require2("../internals/is-array-iterator-method"); var lengthOfArrayLike = require2("../internals/length-of-array-like"); var isPrototypeOf = require2("../internals/object-is-prototype-of"); var getIterator = require2("../internals/get-iterator"); var getIteratorMethod = require2("../internals/get-iterator-method"); var iteratorClose = require2("../internals/iterator-close"); var TypeError2 = global2.TypeError; var Result = function(stopped, result) { this.stopped = stopped; this.result = result; }; var ResultPrototype = Result.prototype; module3.exports = function(iterable, unboundFunction, options) { var that = options && options.that; var AS_ENTRIES = !!(options && options.AS_ENTRIES); 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_ITERATOR) { iterator = iterable; } else { iterFn = getIteratorMethod(iterable); if (!iterFn) throw TypeError2(tryToString(iterable) + " is not iterable"); 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 = 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); }; }, { "../internals/an-object": 101, "../internals/function-bind-context": 153, "../internals/function-call": 155, "../internals/get-iterator": 160, "../internals/get-iterator-method": 159, "../internals/global": 163, "../internals/is-array-iterator-method": 174, "../internals/iterator-close": 185, "../internals/length-of-array-like": 188, "../internals/object-is-prototype-of": 204, "../internals/try-to-string": 257 }], 185: [function(require2, module3, exports3) { var call = require2("../internals/function-call"); var anObject = require2("../internals/an-object"); var getMethod = require2("../internals/get-method"); module3.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; }; }, { "../internals/an-object": 101, "../internals/function-call": 155, "../internals/get-method": 161 }], 186: [function(require2, module3, exports3) { "use strict"; var fails = require2("../internals/fails"); var isCallable = require2("../internals/is-callable"); var create = require2("../internals/object-create"); var getPrototypeOf = require2("../internals/object-get-prototype-of"); var redefine = require2("../internals/redefine"); var wellKnownSymbol = require2("../internals/well-known-symbol"); var IS_PURE = require2("../internals/is-pure"); var ITERATOR = wellKnownSymbol("iterator"); var BUGGY_SAFARI_ITERATORS = false; var IteratorPrototype, PrototypeOfArrayIteratorPrototype, arrayIterator; if ([].keys) { arrayIterator = [].keys(); if (!("next" in arrayIterator)) BUGGY_SAFARI_ITERATORS = true; else { PrototypeOfArrayIteratorPrototype = getPrototypeOf(getPrototypeOf(arrayIterator)); if (PrototypeOfArrayIteratorPrototype !== Object.prototype) IteratorPrototype = PrototypeOfArrayIteratorPrototype; } } var NEW_ITERATOR_PROTOTYPE = IteratorPrototype == void 0 || fails(function() { var test = {}; return IteratorPrototype[ITERATOR].call(test) !== test; }); if (NEW_ITERATOR_PROTOTYPE) IteratorPrototype = {}; else if (IS_PURE) IteratorPrototype = create(IteratorPrototype); if (!isCallable(IteratorPrototype[ITERATOR])) { redefine(IteratorPrototype, ITERATOR, function() { return this; }); } module3.exports = { IteratorPrototype, BUGGY_SAFARI_ITERATORS }; }, { "../internals/fails": 150, "../internals/is-callable": 176, "../internals/is-pure": 181, "../internals/object-create": 196, "../internals/object-get-prototype-of": 203, "../internals/redefine": 222, "../internals/well-known-symbol": 268 }], 187: [function(require2, module3, exports3) { arguments[4][165][0].apply(exports3, arguments); }, { "dup": 165 }], 188: [function(require2, module3, exports3) { var toLength = require2("../internals/to-length"); module3.exports = function(obj) { return toLength(obj.length); }; }, { "../internals/to-length": 249 }], 189: [function(require2, module3, exports3) { var global2 = require2("../internals/global"); var bind = require2("../internals/function-bind-context"); var getOwnPropertyDescriptor = require2("../internals/object-get-own-property-descriptor").f; var macrotask = require2("../internals/task").set; var IS_IOS = require2("../internals/engine-is-ios"); var IS_IOS_PEBBLE = require2("../internals/engine-is-ios-pebble"); var IS_WEBOS_WEBKIT = require2("../internals/engine-is-webos-webkit"); var IS_NODE = require2("../internals/engine-is-node"); var MutationObserver = global2.MutationObserver || global2.WebKitMutationObserver; var document2 = global2.document; var process = global2.process; var Promise2 = global2.Promise; var queueMicrotaskDescriptor = getOwnPropertyDescriptor(global2, "queueMicrotask"); var queueMicrotask = queueMicrotaskDescriptor && queueMicrotaskDescriptor.value; var flush, head, last, notify, toggle, node, promise, then; if (!queueMicrotask) { flush = function() { var parent, fn; if (IS_NODE && (parent = process.domain)) parent.exit(); while (head) { fn = head.fn; head = head.next; try { fn(); } catch (error) { if (head) notify(); else last = void 0; throw error; } } last = void 0; if (parent) parent.enter(); }; if (!IS_IOS && !IS_NODE && !IS_WEBOS_WEBKIT && MutationObserver && document2) { toggle = true; node = document2.createTextNode(""); new MutationObserver(flush).observe(node, { characterData: true }); notify = function() { node.data = toggle = !toggle; }; } else if (!IS_IOS_PEBBLE && Promise2 && Promise2.resolve) { promise = Promise2.resolve(void 0); promise.constructor = Promise2; then = bind(promise.then, promise); notify = function() { then(flush); }; } else if (IS_NODE) { notify = function() { process.nextTick(flush); }; } else { macrotask = bind(macrotask, global2); notify = function() { macrotask(flush); }; } } module3.exports = queueMicrotask || function(fn) { var task = { fn, next: void 0 }; if (last) last.next = task; if (!head) { head = task; notify(); } last = task; }; }, { "../internals/engine-is-ios": 142, "../internals/engine-is-ios-pebble": 141, "../internals/engine-is-node": 143, "../internals/engine-is-webos-webkit": 144, "../internals/function-bind-context": 153, "../internals/global": 163, "../internals/object-get-own-property-descriptor": 199, "../internals/task": 243 }], 190: [function(require2, module3, exports3) { var NATIVE_SYMBOL = require2("../internals/native-symbol"); module3.exports = NATIVE_SYMBOL && !!Symbol["for"] && !!Symbol.keyFor; }, { "../internals/native-symbol": 191 }], 191: [function(require2, module3, exports3) { var V8_VERSION = require2("../internals/engine-v8-version"); var fails = require2("../internals/fails"); module3.exports = !!Object.getOwnPropertySymbols && !fails(function() { var symbol = Symbol(); 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; }); }, { "../internals/engine-v8-version": 146, "../internals/fails": 150 }], 192: [function(require2, module3, exports3) { var global2 = require2("../internals/global"); var isCallable = require2("../internals/is-callable"); var inspectSource = require2("../internals/inspect-source"); var WeakMap2 = global2.WeakMap; module3.exports = isCallable(WeakMap2) && /native code/.test(inspectSource(WeakMap2)); }, { "../internals/global": 163, "../internals/inspect-source": 172, "../internals/is-callable": 176 }], 193: [function(require2, module3, exports3) { "use strict"; var aCallable = require2("../internals/a-callable"); var PromiseCapability = function(C) { var resolve, reject; this.promise = new C(function($$resolve, $$reject) { if (resolve !== void 0 || reject !== void 0) throw TypeError("Bad Promise constructor"); resolve = $$resolve; reject = $$reject; }); this.resolve = aCallable(resolve); this.reject = aCallable(reject); }; module3.exports.f = function(C) { return new PromiseCapability(C); }; }, { "../internals/a-callable": 95 }], 194: [function(require2, module3, exports3) { var global2 = require2("../internals/global"); var isRegExp = require2("../internals/is-regexp"); var TypeError2 = global2.TypeError; module3.exports = function(it) { if (isRegExp(it)) { throw TypeError2("The method doesn't accept regular expressions"); } return it; }; }, { "../internals/global": 163, "../internals/is-regexp": 182 }], 195: [function(require2, module3, exports3) { "use strict"; var DESCRIPTORS = require2("../internals/descriptors"); var uncurryThis = require2("../internals/function-uncurry-this"); var call = require2("../internals/function-call"); var fails = require2("../internals/fails"); var objectKeys = require2("../internals/object-keys"); var getOwnPropertySymbolsModule = require2("../internals/object-get-own-property-symbols"); var propertyIsEnumerableModule = require2("../internals/object-property-is-enumerable"); var toObject = require2("../internals/to-object"); var IndexedObject = require2("../internals/indexed-object"); var $assign = Object.assign; var defineProperty = Object.defineProperty; var concat = uncurryThis([].concat); module3.exports = !$assign || fails(function() { if (DESCRIPTORS && $assign({ b: 1 }, $assign(defineProperty({}, "a", { enumerable: true, get: function() { defineProperty(this, "b", { value: 3, enumerable: false }); } }), { b: 2 })).b !== 1) return true; var A = {}; var B = {}; var symbol = Symbol(); var alphabet = "abcdefghijklmnopqrst"; A[symbol] = 7; alphabet.split("").forEach(function(chr) { B[chr] = chr; }); return $assign({}, A)[symbol] != 7 || objectKeys($assign({}, B)).join("") != alphabet; }) ? function assign(target, source) { var T = toObject(target); var argumentsLength = arguments.length; var index = 1; var getOwnPropertySymbols = getOwnPropertySymbolsModule.f; var propertyIsEnumerable = propertyIsEnumerableModule.f; while (argumentsLength > index) { var S = IndexedObject(arguments[index++]); var keys = getOwnPropertySymbols ? concat(objectKeys(S), getOwnPropertySymbols(S)) : objectKeys(S); var length = keys.length; var j = 0; var key; while (length > j) { key = keys[j++]; if (!DESCRIPTORS || call(propertyIsEnumerable, S, key)) T[key] = S[key]; } } return T; } : $assign; }, { "../internals/descriptors": 134, "../internals/fails": 150, "../internals/function-call": 155, "../internals/function-uncurry-this": 157, "../internals/indexed-object": 170, "../internals/object-get-own-property-symbols": 202, "../internals/object-keys": 206, "../internals/object-property-is-enumerable": 207, "../internals/to-object": 250 }], 196: [function(require2, module3, exports3) { var anObject = require2("../internals/an-object"); var definePropertiesModule = require2("../internals/object-define-properties"); var enumBugKeys = require2("../internals/enum-bug-keys"); var hiddenKeys = require2("../internals/hidden-keys"); var html = require2("../internals/html"); var documentCreateElement = require2("../internals/document-create-element"); var sharedKey = require2("../internals/shared-key"); var GT = ">"; var LT = "<"; var PROTOTYPE = "prototype"; var SCRIPT = "script"; var IE_PROTO = sharedKey("IE_PROTO"); var EmptyConstructor = function() { }; var scriptTag = function(content) { return LT + SCRIPT + GT + content + LT + "/" + SCRIPT + GT; }; var NullProtoObjectViaActiveX = function(activeXDocument2) { activeXDocument2.write(scriptTag("")); activeXDocument2.close(); var temp = activeXDocument2.parentWindow.Object; activeXDocument2 = null; return temp; }; var NullProtoObjectViaIFrame = function() { var iframe = documentCreateElement("iframe"); var JS = "java" + SCRIPT + ":"; var iframeDocument; iframe.style.display = "none"; html.appendChild(iframe); iframe.src = String(JS); iframeDocument = iframe.contentWindow.document; iframeDocument.open(); iframeDocument.write(scriptTag("document.F=Object")); iframeDocument.close(); return iframeDocument.F; }; var activeXDocument; var NullProtoObject = function() { try { activeXDocument = new ActiveXObject("htmlfile"); } catch (error) { } NullProtoObject = typeof document != "undefined" ? document.domain && activeXDocument ? NullProtoObjectViaActiveX(activeXDocument) : NullProtoObjectViaIFrame() : NullProtoObjectViaActiveX(activeXDocument); var length = enumBugKeys.length; while (length--) delete NullProtoObject[PROTOTYPE][enumBugKeys[length]]; return NullProtoObject(); }; hiddenKeys[IE_PROTO] = true; module3.exports = Object.create || function create(O, Properties) { var result; if (O !== null) { EmptyConstructor[PROTOTYPE] = anObject(O); result = new EmptyConstructor(); EmptyConstructor[PROTOTYPE] = null; result[IE_PROTO] = O; } else result = NullProtoObject(); return Properties === void 0 ? result : definePropertiesModule.f(result, Properties); }; }, { "../internals/an-object": 101, "../internals/document-create-element": 135, "../internals/enum-bug-keys": 148, "../internals/hidden-keys": 165, "../internals/html": 167, "../internals/object-define-properties": 197, "../internals/shared-key": 235 }], 197: [function(require2, module3, exports3) { var DESCRIPTORS = require2("../internals/descriptors"); var V8_PROTOTYPE_DEFINE_BUG = require2("../internals/v8-prototype-define-bug"); var definePropertyModule = require2("../internals/object-define-property"); var anObject = require2("../internals/an-object"); var toIndexedObject = require2("../internals/to-indexed-object"); var objectKeys = require2("../internals/object-keys"); exports3.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; }; }, { "../internals/an-object": 101, "../internals/descriptors": 134, "../internals/object-define-property": 198, "../internals/object-keys": 206, "../internals/to-indexed-object": 247, "../internals/v8-prototype-define-bug": 265 }], 198: [function(require2, module3, exports3) { var global2 = require2("../internals/global"); var DESCRIPTORS = require2("../internals/descriptors"); var IE8_DOM_DEFINE = require2("../internals/ie8-dom-define"); var V8_PROTOTYPE_DEFINE_BUG = require2("../internals/v8-prototype-define-bug"); var anObject = require2("../internals/an-object"); var toPropertyKey = require2("../internals/to-property-key"); var TypeError2 = global2.TypeError; var $defineProperty = Object.defineProperty; var $getOwnPropertyDescriptor = Object.getOwnPropertyDescriptor; var ENUMERABLE = "enumerable"; var CONFIGURABLE = "configurable"; var WRITABLE = "writable"; exports3.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) { } if ("get" in Attributes || "set" in Attributes) throw TypeError2("Accessors not supported"); if ("value" in Attributes) O[P] = Attributes.value; return O; }; }, { "../internals/an-object": 101, "../internals/descriptors": 134, "../internals/global": 163, "../internals/ie8-dom-define": 168, "../internals/to-property-key": 254, "../internals/v8-prototype-define-bug": 265 }], 199: [function(require2, module3, exports3) { var DESCRIPTORS = require2("../internals/descriptors"); var call = require2("../internals/function-call"); var propertyIsEnumerableModule = require2("../internals/object-property-is-enumerable"); var createPropertyDescriptor = require2("../internals/create-property-descriptor"); var toIndexedObject = require2("../internals/to-indexed-object"); var toPropertyKey = require2("../internals/to-property-key"); var hasOwn = require2("../internals/has-own-property"); var IE8_DOM_DEFINE = require2("../internals/ie8-dom-define"); var $getOwnPropertyDescriptor = Object.getOwnPropertyDescriptor; exports3.f = DESCRIPTORS ? $getOwnPropertyDescriptor : function getOwnPropertyDescriptor(O, P) { O = toIndexedObject(O); P = toPropertyKey(P); if (IE8_DOM_DEFINE) try { return $getOwnPropertyDescriptor(O, P); } catch (error) { } if (hasOwn(O, P)) return createPropertyDescriptor(!call(propertyIsEnumerableModule.f, O, P), O[P]); }; }, { "../internals/create-property-descriptor": 130, "../internals/descriptors": 134, "../internals/function-call": 155, "../internals/has-own-property": 164, "../internals/ie8-dom-define": 168, "../internals/object-property-is-enumerable": 207, "../internals/to-indexed-object": 247, "../internals/to-property-key": 254 }], 200: [function(require2, module3, exports3) { var classof = require2("../internals/classof-raw"); var toIndexedObject = require2("../internals/to-indexed-object"); var $getOwnPropertyNames = require2("../internals/object-get-own-property-names").f; var arraySlice = require2("../internals/array-slice-simple"); var windowNames = typeof window == "object" && window && Object.getOwnPropertyNames ? Object.getOwnPropertyNames(window) : []; var getWindowNames = function(it) { try { return $getOwnPropertyNames(it); } catch (error) { return arraySlice(windowNames); } }; module3.exports.f = function getOwnPropertyNames(it) { return windowNames && classof(it) == "Window" ? getWindowNames(it) : $getOwnPropertyNames(toIndexedObject(it)); }; }, { "../internals/array-slice-simple": 116, "../internals/classof-raw": 123, "../internals/object-get-own-property-names": 201, "../internals/to-indexed-object": 247 }], 201: [function(require2, module3, exports3) { var internalObjectKeys = require2("../internals/object-keys-internal"); var enumBugKeys = require2("../internals/enum-bug-keys"); var hiddenKeys = enumBugKeys.concat("length", "prototype"); exports3.f = Object.getOwnPropertyNames || function getOwnPropertyNames(O) { return internalObjectKeys(O, hiddenKeys); }; }, { "../internals/enum-bug-keys": 148, "../internals/object-keys-internal": 205 }], 202: [function(require2, module3, exports3) { exports3.f = Object.getOwnPropertySymbols; }, {}], 203: [function(require2, module3, exports3) { var global2 = require2("../internals/global"); var hasOwn = require2("../internals/has-own-property"); var isCallable = require2("../internals/is-callable"); var toObject = require2("../internals/to-object"); var sharedKey = require2("../internals/shared-key"); var CORRECT_PROTOTYPE_GETTER = require2("../internals/correct-prototype-getter"); var IE_PROTO = sharedKey("IE_PROTO"); var Object2 = global2.Object; var ObjectPrototype = Object2.prototype; module3.exports = CORRECT_PROTOTYPE_GETTER ? Object2.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 Object2 ? ObjectPrototype : null; }; }, { "../internals/correct-prototype-getter": 127, "../internals/global": 163, "../internals/has-own-property": 164, "../internals/is-callable": 176, "../internals/shared-key": 235, "../internals/to-object": 250 }], 204: [function(require2, module3, exports3) { var uncurryThis = require2("../internals/function-uncurry-this"); module3.exports = uncurryThis({}.isPrototypeOf); }, { "../internals/function-uncurry-this": 157 }], 205: [function(require2, module3, exports3) { var uncurryThis = require2("../internals/function-uncurry-this"); var hasOwn = require2("../internals/has-own-property"); var toIndexedObject = require2("../internals/to-indexed-object"); var indexOf = require2("../internals/array-includes").indexOf; var hiddenKeys = require2("../internals/hidden-keys"); var push = uncurryThis([].push); module3.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); while (names.length > i) if (hasOwn(O, key = names[i++])) { ~indexOf(result, key) || push(result, key); } return result; }; }, { "../internals/array-includes": 110, "../internals/function-uncurry-this": 157, "../internals/has-own-property": 164, "../internals/hidden-keys": 165, "../internals/to-indexed-object": 247 }], 206: [function(require2, module3, exports3) { var internalObjectKeys = require2("../internals/object-keys-internal"); var enumBugKeys = require2("../internals/enum-bug-keys"); module3.exports = Object.keys || function keys(O) { return internalObjectKeys(O, enumBugKeys); }; }, { "../internals/enum-bug-keys": 148, "../internals/object-keys-internal": 205 }], 207: [function(require2, module3, exports3) { "use strict"; var $propertyIsEnumerable = {}.propertyIsEnumerable; var getOwnPropertyDescriptor = Object.getOwnPropertyDescriptor; var NASHORN_BUG = getOwnPropertyDescriptor && !$propertyIsEnumerable.call({ 1: 2 }, 1); exports3.f = NASHORN_BUG ? function propertyIsEnumerable(V) { var descriptor = getOwnPropertyDescriptor(this, V); return !!descriptor && descriptor.enumerable; } : $propertyIsEnumerable; }, {}], 208: [function(require2, module3, exports3) { var uncurryThis = require2("../internals/function-uncurry-this"); var anObject = require2("../internals/an-object"); var aPossiblePrototype = require2("../internals/a-possible-prototype"); module3.exports = Object.setPrototypeOf || ("__proto__" in {} ? function() { var CORRECT_SETTER = false; var test = {}; var setter; try { setter = uncurryThis(Object.getOwnPropertyDescriptor(Object.prototype, "__proto__").set); setter(test, []); CORRECT_SETTER = test instanceof Array; } catch (error) { } return function setPrototypeOf(O, proto) { anObject(O); aPossiblePrototype(proto); if (CORRECT_SETTER) setter(O, proto); else O.__proto__ = proto; return O; }; }() : void 0); }, { "../internals/a-possible-prototype": 97, "../internals/an-object": 101, "../internals/function-uncurry-this": 157 }], 209: [function(require2, module3, exports3) { var DESCRIPTORS = require2("../internals/descriptors"); var uncurryThis = require2("../internals/function-uncurry-this"); var objectKeys = require2("../internals/object-keys"); var toIndexedObject = require2("../internals/to-indexed-object"); var $propertyIsEnumerable = require2("../internals/object-property-is-enumerable").f; var propertyIsEnumerable = uncurryThis($propertyIsEnumerable); var push = uncurryThis([].push); var createMethod = function(TO_ENTRIES) { return function(it) { var O = toIndexedObject(it); var keys = objectKeys(O); var length = keys.length; var i = 0; var result = []; var key; while (length > i) { key = keys[i++]; if (!DESCRIPTORS || propertyIsEnumerable(O, key)) { push(result, TO_ENTRIES ? [key, O[key]] : O[key]); } } return result; }; }; module3.exports = { // `Object.entries` method // https://tc39.es/ecma262/#sec-object.entries entries: createMethod(true), // `Object.values` method // https://tc39.es/ecma262/#sec-object.values values: createMethod(false) }; }, { "../internals/descriptors": 134, "../internals/function-uncurry-this": 157, "../internals/object-keys": 206, "../internals/object-property-is-enumerable": 207, "../internals/to-indexed-object": 247 }], 210: [function(require2, module3, exports3) { "use strict"; var TO_STRING_TAG_SUPPORT = require2("../internals/to-string-tag-support"); var classof = require2("../internals/classof"); module3.exports = TO_STRING_TAG_SUPPORT ? {}.toString : function toString() { return "[object " + classof(this) + "]"; }; }, { "../internals/classof": 124, "../internals/to-string-tag-support": 255 }], 211: [function(require2, module3, exports3) { var global2 = require2("../internals/global"); var call = require2("../internals/function-call"); var isCallable = require2("../internals/is-callable"); var isObject = require2("../internals/is-object"); var TypeError2 = global2.TypeError; module3.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 TypeError2("Can't convert object to primitive value"); }; }, { "../internals/function-call": 155, "../internals/global": 163, "../internals/is-callable": 176, "../internals/is-object": 180 }], 212: [function(require2, module3, exports3) { var getBuiltIn = require2("../internals/get-built-in"); var uncurryThis = require2("../internals/function-uncurry-this"); var getOwnPropertyNamesModule = require2("../internals/object-get-own-property-names"); var getOwnPropertySymbolsModule = require2("../internals/object-get-own-property-symbols"); var anObject = require2("../internals/an-object"); var concat = uncurryThis([].concat); module3.exports = getBuiltIn("Reflect", "ownKeys") || function ownKeys(it) { var keys = getOwnPropertyNamesModule.f(anObject(it)); var getOwnPropertySymbols = getOwnPropertySymbolsModule.f; return getOwnPropertySymbols ? concat(keys, getOwnPropertySymbols(it)) : keys; }; }, { "../internals/an-object": 101, "../internals/function-uncurry-this": 157, "../internals/get-built-in": 158, "../internals/object-get-own-property-names": 201, "../internals/object-get-own-property-symbols": 202 }], 213: [function(require2, module3, exports3) { var global2 = require2("../internals/global"); module3.exports = global2; }, { "../internals/global": 163 }], 214: [function(require2, module3, exports3) { module3.exports = function(exec) { try { return { error: false, value: exec() }; } catch (error) { return { error: true, value: error }; } }; }, {}], 215: [function(require2, module3, exports3) { var global2 = require2("../internals/global"); var NativePromiseConstructor = require2("../internals/promise-native-constructor"); var isCallable = require2("../internals/is-callable"); var isForced = require2("../internals/is-forced"); var inspectSource = require2("../internals/inspect-source"); var wellKnownSymbol = require2("../internals/well-known-symbol"); var IS_BROWSER = require2("../internals/engine-is-browser"); var IS_PURE = require2("../internals/is-pure"); var V8_VERSION = require2("../internals/engine-v8-version"); var NativePromisePrototype = NativePromiseConstructor && NativePromiseConstructor.prototype; var SPECIES = wellKnownSymbol("species"); var SUBCLASSING = false; var NATIVE_PROMISE_REJECTION_EVENT = isCallable(global2.PromiseRejectionEvent); var FORCED_PROMISE_CONSTRUCTOR = isForced("Promise", function() { var PROMISE_CONSTRUCTOR_SOURCE = inspectSource(NativePromiseConstructor); var GLOBAL_CORE_JS_PROMISE = PROMISE_CONSTRUCTOR_SOURCE !== String(NativePromiseConstructor); if (!GLOBAL_CORE_JS_PROMISE && V8_VERSION === 66) return true; if (IS_PURE && !(NativePromisePrototype["catch"] && NativePromisePrototype["finally"])) return true; if (V8_VERSION >= 51 && /native code/.test(PROMISE_CONSTRUCTOR_SOURCE)) return false; var promise = new NativePromiseConstructor(function(resolve) { resolve(1); }); var FakePromise = function(exec) { exec(function() { }, function() { }); }; var constructor = promise.constructor = {}; constructor[SPECIES] = FakePromise; SUBCLASSING = promise.then(function() { }) instanceof FakePromise; if (!SUBCLASSING) return true; return !GLOBAL_CORE_JS_PROMISE && IS_BROWSER && !NATIVE_PROMISE_REJECTION_EVENT; }); module3.exports = { CONSTRUCTOR: FORCED_PROMISE_CONSTRUCTOR, REJECTION_EVENT: NATIVE_PROMISE_REJECTION_EVENT, SUBCLASSING }; }, { "../internals/engine-is-browser": 139, "../internals/engine-v8-version": 146, "../internals/global": 163, "../internals/inspect-source": 172, "../internals/is-callable": 176, "../internals/is-forced": 178, "../internals/is-pure": 181, "../internals/promise-native-constructor": 216, "../internals/well-known-symbol": 268 }], 216: [function(require2, module3, exports3) { var global2 = require2("../internals/global"); module3.exports = global2.Promise; }, { "../internals/global": 163 }], 217: [function(require2, module3, exports3) { var anObject = require2("../internals/an-object"); var isObject = require2("../internals/is-object"); var newPromiseCapability = require2("../internals/new-promise-capability"); module3.exports = function(C, x) { anObject(C); if (isObject(x) && x.constructor === C) return x; var promiseCapability = newPromiseCapability.f(C); var resolve = promiseCapability.resolve; resolve(x); return promiseCapability.promise; }; }, { "../internals/an-object": 101, "../internals/is-object": 180, "../internals/new-promise-capability": 193 }], 218: [function(require2, module3, exports3) { var NativePromiseConstructor = require2("../internals/promise-native-constructor"); var checkCorrectnessOfIteration = require2("../internals/check-correctness-of-iteration"); var FORCED_PROMISE_CONSTRUCTOR = require2("../internals/promise-constructor-detection").CONSTRUCTOR; module3.exports = FORCED_PROMISE_CONSTRUCTOR || !checkCorrectnessOfIteration(function(iterable) { NativePromiseConstructor.all(iterable).then(void 0, function() { }); }); }, { "../internals/check-correctness-of-iteration": 122, "../internals/promise-constructor-detection": 215, "../internals/promise-native-constructor": 216 }], 219: [function(require2, module3, exports3) { var defineProperty = require2("../internals/object-define-property").f; module3.exports = function(Target, Source, key) { key in Target || defineProperty(Target, key, { configurable: true, get: function() { return Source[key]; }, set: function(it) { Source[key] = it; } }); }; }, { "../internals/object-define-property": 198 }], 220: [function(require2, module3, exports3) { var Queue = function() { this.head = null; this.tail = null; }; Queue.prototype = { add: function(item) { var entry = { item, next: null }; if (this.head) this.tail.next = entry; else this.head = entry; this.tail = entry; }, get: function() { var entry = this.head; if (entry) { this.head = entry.next; if (this.tail === entry) this.tail = null; return entry.item; } } }; module3.exports = Queue; }, {}], 221: [function(require2, module3, exports3) { var redefine = require2("../internals/redefine"); module3.exports = function(target, src, options) { for (var key in src) redefine(target, key, src[key], options); return target; }; }, { "../internals/redefine": 222 }], 222: [function(require2, module3, exports3) { var global2 = require2("../internals/global"); var isCallable = require2("../internals/is-callable"); var hasOwn = require2("../internals/has-own-property"); var createNonEnumerableProperty = require2("../internals/create-non-enumerable-property"); var setGlobal = require2("../internals/set-global"); var inspectSource = require2("../internals/inspect-source"); var InternalStateModule = require2("../internals/internal-state"); var CONFIGURABLE_FUNCTION_NAME = require2("../internals/function-name").CONFIGURABLE; var getInternalState = InternalStateModule.get; var enforceInternalState = InternalStateModule.enforce; var TEMPLATE = String(String).split("String"); (module3.exports = function(O, key, value, options) { var unsafe = options ? !!options.unsafe : false; var simple = options ? !!options.enumerable : false; var noTargetGet = options ? !!options.noTargetGet : false; var name = options && options.name !== void 0 ? options.name : key; var state; if (isCallable(value)) { if (String(name).slice(0, 7) === "Symbol(") { name = "[" + String(name).replace(/^Symbol\(([^)]*)\)/, "$1") + "]"; } if (!hasOwn(value, "name") || CONFIGURABLE_FUNCTION_NAME && value.name !== name) { createNonEnumerableProperty(value, "name", name); } state = enforceInternalState(value); if (!state.source) { state.source = TEMPLATE.join(typeof name == "string" ? name : ""); } } if (O === global2) { if (simple) O[key] = value; else setGlobal(key, value); return; } else if (!unsafe) { delete O[key]; } else if (!noTargetGet && O[key]) { simple = true; } if (simple) O[key] = value; else createNonEnumerableProperty(O, key, value); })(Function.prototype, "toString", function toString() { return isCallable(this) && getInternalState(this).source || inspectSource(this); }); }, { "../internals/create-non-enumerable-property": 129, "../internals/function-name": 156, "../internals/global": 163, "../internals/has-own-property": 164, "../internals/inspect-source": 172, "../internals/internal-state": 173, "../internals/is-callable": 176, "../internals/set-global": 232 }], 223: [function(require2, module3, exports3) { var global2 = require2("../internals/global"); var call = require2("../internals/function-call"); var anObject = require2("../internals/an-object"); var isCallable = require2("../internals/is-callable"); var classof = require2("../internals/classof-raw"); var regexpExec = require2("../internals/regexp-exec"); var TypeError2 = global2.TypeError; module3.exports = function(R, S) { var exec = R.exec; if (isCallable(exec)) { var result = call(exec, R, S); if (result !== null) anObject(result); return result; } if (classof(R) === "RegExp") return call(regexpExec, R, S); throw TypeError2("RegExp#exec called on incompatible receiver"); }; }, { "../internals/an-object": 101, "../internals/classof-raw": 123, "../internals/function-call": 155, "../internals/global": 163, "../internals/is-callable": 176, "../internals/regexp-exec": 224 }], 224: [function(require2, module3, exports3) { "use strict"; var call = require2("../internals/function-call"); var uncurryThis = require2("../internals/function-uncurry-this"); var toString = require2("../internals/to-string"); var regexpFlags = require2("../internals/regexp-flags"); var stickyHelpers = require2("../internals/regexp-sticky-helpers"); var shared = require2("../internals/shared"); var create = require2("../internals/object-create"); var getInternalState = require2("../internals/internal-state").get; var UNSUPPORTED_DOT_ALL = require2("../internals/regexp-unsupported-dot-all"); var UNSUPPORTED_NCG = require2("../internals/regexp-unsupported-ncg"); var nativeReplace = shared("native-string-replace", String.prototype.replace); var nativeExec = RegExp.prototype.exec; var patchedExec = nativeExec; var charAt = uncurryThis("".charAt); var indexOf = uncurryThis("".indexOf); var replace = uncurryThis("".replace); var stringSlice = uncurryThis("".slice); var UPDATES_LAST_INDEX_WRONG = function() { var re1 = /a/; var re2 = /b*/g; call(nativeExec, re1, "a"); call(nativeExec, re2, "a"); return re1.lastIndex !== 0 || re2.lastIndex !== 0; }(); var UNSUPPORTED_Y = stickyHelpers.BROKEN_CARET; var NPCG_INCLUDED = /()??/.exec("")[1] !== void 0; var PATCH = UPDATES_LAST_INDEX_WRONG || NPCG_INCLUDED || UNSUPPORTED_Y || UNSUPPORTED_DOT_ALL || UNSUPPORTED_NCG; if (PATCH) { patchedExec = function exec(string) { var re = this; var state = getInternalState(re); var str = toString(string); var raw = state.raw; var result, reCopy, lastIndex, match, i, object, group; if (raw) { raw.lastIndex = re.lastIndex; result = call(patchedExec, raw, str); re.lastIndex = raw.lastIndex; return result; } var groups = state.groups; var sticky = UNSUPPORTED_Y && re.sticky; var flags = call(regexpFlags, re); var source = re.source; var charsAdded = 0; var strCopy = str; if (sticky) { flags = replace(flags, "y", ""); if (indexOf(flags, "g") === -1) { flags += "g"; } strCopy = stringSlice(str, re.lastIndex); if (re.lastIndex > 0 && (!re.multiline || re.multiline && charAt(str, re.lastIndex - 1) !== "\n")) { source = "(?: " + source + ")"; strCopy = " " + strCopy; charsAdded++; } reCopy = new RegExp("^(?:" + source + ")", flags); } if (NPCG_INCLUDED) { reCopy = new RegExp("^" + source + "$(?!\\s)", flags); } if (UPDATES_LAST_INDEX_WRONG) lastIndex = re.lastIndex; match = call(nativeExec, sticky ? reCopy : re, strCopy); if (sticky) { if (match) { match.input = stringSlice(match.input, charsAdded); match[0] = stringSlice(match[0], charsAdded); match.index = re.lastIndex; re.lastIndex += match[0].length; } else re.lastIndex = 0; } else if (UPDATES_LAST_INDEX_WRONG && match) { re.lastIndex = re.global ? match.index + match[0].length : lastIndex; } if (NPCG_INCLUDED && match && match.length > 1) { call(nativeReplace, match[0], reCopy, function() { for (i = 1; i < arguments.length - 2; i++) { if (arguments[i] === void 0) match[i] = void 0; } }); } if (match && groups) { match.groups = object = create(null); for (i = 0; i < groups.length; i++) { group = groups[i]; object[group[0]] = match[group[1]]; } } return match; }; } module3.exports = patchedExec; }, { "../internals/function-call": 155, "../internals/function-uncurry-this": 157, "../internals/internal-state": 173, "../internals/object-create": 196, "../internals/regexp-flags": 225, "../internals/regexp-sticky-helpers": 227, "../internals/regexp-unsupported-dot-all": 228, "../internals/regexp-unsupported-ncg": 229, "../internals/shared": 237, "../internals/to-string": 256 }], 225: [function(require2, module3, exports3) { "use strict"; var anObject = require2("../internals/an-object"); module3.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.sticky) result += "y"; return result; }; }, { "../internals/an-object": 101 }], 226: [function(require2, module3, exports3) { var call = require2("../internals/function-call"); var hasOwn = require2("../internals/has-own-property"); var isPrototypeOf = require2("../internals/object-is-prototype-of"); var regExpFlags = require2("../internals/regexp-flags"); var RegExpPrototype = RegExp.prototype; module3.exports = function(R) { var flags = R.flags; return flags === void 0 && !("flags" in RegExpPrototype) && !hasOwn(R, "flags") && isPrototypeOf(RegExpPrototype, R) ? call(regExpFlags, R) : flags; }; }, { "../internals/function-call": 155, "../internals/has-own-property": 164, "../internals/object-is-prototype-of": 204, "../internals/regexp-flags": 225 }], 227: [function(require2, module3, exports3) { var fails = require2("../internals/fails"); var global2 = require2("../internals/global"); var $RegExp = global2.RegExp; var UNSUPPORTED_Y = fails(function() { var re = $RegExp("a", "y"); re.lastIndex = 2; return re.exec("abcd") != null; }); var MISSED_STICKY = UNSUPPORTED_Y || fails(function() { return !$RegExp("a", "y").sticky; }); var BROKEN_CARET = UNSUPPORTED_Y || fails(function() { var re = $RegExp("^r", "gy"); re.lastIndex = 2; return re.exec("str") != null; }); module3.exports = { BROKEN_CARET, MISSED_STICKY, UNSUPPORTED_Y }; }, { "../internals/fails": 150, "../internals/global": 163 }], 228: [function(require2, module3, exports3) { var fails = require2("../internals/fails"); var global2 = require2("../internals/global"); var $RegExp = global2.RegExp; module3.exports = fails(function() { var re = $RegExp(".", "s"); return !(re.dotAll && re.exec("\n") && re.flags === "s"); }); }, { "../internals/fails": 150, "../internals/global": 163 }], 229: [function(require2, module3, exports3) { var fails = require2("../internals/fails"); var global2 = require2("../internals/global"); var $RegExp = global2.RegExp; module3.exports = fails(function() { var re = $RegExp("(?b)", "g"); return re.exec("b").groups.a !== "b" || "b".replace(re, "$c") !== "bc"; }); }, { "../internals/fails": 150, "../internals/global": 163 }], 230: [function(require2, module3, exports3) { var global2 = require2("../internals/global"); var TypeError2 = global2.TypeError; module3.exports = function(it) { if (it == void 0) throw TypeError2("Can't call method on " + it); return it; }; }, { "../internals/global": 163 }], 231: [function(require2, module3, exports3) { module3.exports = Object.is || function is(x, y) { return x === y ? x !== 0 || 1 / x === 1 / y : x != x && y != y; }; }, {}], 232: [function(require2, module3, exports3) { var global2 = require2("../internals/global"); var defineProperty = Object.defineProperty; module3.exports = function(key, value) { try { defineProperty(global2, key, { value, configurable: true, writable: true }); } catch (error) { global2[key] = value; } return value; }; }, { "../internals/global": 163 }], 233: [function(require2, module3, exports3) { "use strict"; var getBuiltIn = require2("../internals/get-built-in"); var definePropertyModule = require2("../internals/object-define-property"); var wellKnownSymbol = require2("../internals/well-known-symbol"); var DESCRIPTORS = require2("../internals/descriptors"); var SPECIES = wellKnownSymbol("species"); module3.exports = function(CONSTRUCTOR_NAME) { var Constructor = getBuiltIn(CONSTRUCTOR_NAME); var defineProperty = definePropertyModule.f; if (DESCRIPTORS && Constructor && !Constructor[SPECIES]) { defineProperty(Constructor, SPECIES, { configurable: true, get: function() { return this; } }); } }; }, { "../internals/descriptors": 134, "../internals/get-built-in": 158, "../internals/object-define-property": 198, "../internals/well-known-symbol": 268 }], 234: [function(require2, module3, exports3) { var defineProperty = require2("../internals/object-define-property").f; var hasOwn = require2("../internals/has-own-property"); var wellKnownSymbol = require2("../internals/well-known-symbol"); var TO_STRING_TAG = wellKnownSymbol("toStringTag"); module3.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 }); } }; }, { "../internals/has-own-property": 164, "../internals/object-define-property": 198, "../internals/well-known-symbol": 268 }], 235: [function(require2, module3, exports3) { var shared = require2("../internals/shared"); var uid = require2("../internals/uid"); var keys = shared("keys"); module3.exports = function(key) { return keys[key] || (keys[key] = uid(key)); }; }, { "../internals/shared": 237, "../internals/uid": 263 }], 236: [function(require2, module3, exports3) { var global2 = require2("../internals/global"); var setGlobal = require2("../internals/set-global"); var SHARED = "__core-js_shared__"; var store = global2[SHARED] || setGlobal(SHARED, {}); module3.exports = store; }, { "../internals/global": 163, "../internals/set-global": 232 }], 237: [function(require2, module3, exports3) { var IS_PURE = require2("../internals/is-pure"); var store = require2("../internals/shared-store"); (module3.exports = function(key, value) { return store[key] || (store[key] = value !== void 0 ? value : {}); })("versions", []).push({ version: "3.22.1", mode: IS_PURE ? "pure" : "global", copyright: "© 2014-2022 Denis Pushkarev (zloirock.ru)", license: "https://github.com/zloirock/core-js/blob/v3.22.1/LICENSE", source: "https://github.com/zloirock/core-js" }); }, { "../internals/is-pure": 181, "../internals/shared-store": 236 }], 238: [function(require2, module3, exports3) { var anObject = require2("../internals/an-object"); var aConstructor = require2("../internals/a-constructor"); var wellKnownSymbol = require2("../internals/well-known-symbol"); var SPECIES = wellKnownSymbol("species"); module3.exports = function(O, defaultConstructor) { var C = anObject(O).constructor; var S; return C === void 0 || (S = anObject(C)[SPECIES]) == void 0 ? defaultConstructor : aConstructor(S); }; }, { "../internals/a-constructor": 96, "../internals/an-object": 101, "../internals/well-known-symbol": 268 }], 239: [function(require2, module3, exports3) { var uncurryThis = require2("../internals/function-uncurry-this"); var toIntegerOrInfinity = require2("../internals/to-integer-or-infinity"); var toString = require2("../internals/to-string"); var requireObjectCoercible = require2("../internals/require-object-coercible"); 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 ? "" : void 0; first = charCodeAt(S, position); return first < 55296 || first > 56319 || position + 1 === size || (second = charCodeAt(S, position + 1)) < 56320 || second > 57343 ? CONVERT_TO_STRING ? charAt(S, position) : first : CONVERT_TO_STRING ? stringSlice(S, position, position + 2) : (first - 55296 << 10) + (second - 56320) + 65536; }; }; module3.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) }; }, { "../internals/function-uncurry-this": 157, "../internals/require-object-coercible": 230, "../internals/to-integer-or-infinity": 248, "../internals/to-string": 256 }], 240: [function(require2, module3, exports3) { var PROPER_FUNCTION_NAME = require2("../internals/function-name").PROPER; var fails = require2("../internals/fails"); var whitespaces = require2("../internals/whitespaces"); var non = "​…᠎"; module3.exports = function(METHOD_NAME) { return fails(function() { return !!whitespaces[METHOD_NAME]() || non[METHOD_NAME]() !== non || PROPER_FUNCTION_NAME && whitespaces[METHOD_NAME].name !== METHOD_NAME; }); }; }, { "../internals/fails": 150, "../internals/function-name": 156, "../internals/whitespaces": 269 }], 241: [function(require2, module3, exports3) { var uncurryThis = require2("../internals/function-uncurry-this"); var requireObjectCoercible = require2("../internals/require-object-coercible"); var toString = require2("../internals/to-string"); var whitespaces = require2("../internals/whitespaces"); var replace = uncurryThis("".replace); var whitespace = "[" + whitespaces + "]"; var ltrim = RegExp("^" + whitespace + whitespace + "*"); var rtrim = RegExp(whitespace + whitespace + "*$"); 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, ""); return string; }; }; module3.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) }; }, { "../internals/function-uncurry-this": 157, "../internals/require-object-coercible": 230, "../internals/to-string": 256, "../internals/whitespaces": 269 }], 242: [function(require2, module3, exports3) { var call = require2("../internals/function-call"); var getBuiltIn = require2("../internals/get-built-in"); var wellKnownSymbol = require2("../internals/well-known-symbol"); var redefine = require2("../internals/redefine"); module3.exports = function() { var Symbol2 = getBuiltIn("Symbol"); var SymbolPrototype = Symbol2 && Symbol2.prototype; var valueOf = SymbolPrototype && SymbolPrototype.valueOf; var TO_PRIMITIVE = wellKnownSymbol("toPrimitive"); if (SymbolPrototype && !SymbolPrototype[TO_PRIMITIVE]) { redefine(SymbolPrototype, TO_PRIMITIVE, function(hint) { return call(valueOf, this); }); } }; }, { "../internals/function-call": 155, "../internals/get-built-in": 158, "../internals/redefine": 222, "../internals/well-known-symbol": 268 }], 243: [function(require2, module3, exports3) { var global2 = require2("../internals/global"); var apply = require2("../internals/function-apply"); var bind = require2("../internals/function-bind-context"); var isCallable = require2("../internals/is-callable"); var hasOwn = require2("../internals/has-own-property"); var fails = require2("../internals/fails"); var html = require2("../internals/html"); var arraySlice = require2("../internals/array-slice"); var createElement = require2("../internals/document-create-element"); var validateArgumentsLength = require2("../internals/validate-arguments-length"); var IS_IOS = require2("../internals/engine-is-ios"); var IS_NODE = require2("../internals/engine-is-node"); var set = global2.setImmediate; var clear = global2.clearImmediate; var process = global2.process; var Dispatch = global2.Dispatch; var Function2 = global2.Function; var MessageChannel = global2.MessageChannel; var String2 = global2.String; var counter = 0; var queue = {}; var ONREADYSTATECHANGE = "onreadystatechange"; var location2, defer, channel, port; try { location2 = global2.location; } catch (error) { } var run = function(id) { if (hasOwn(queue, id)) { var fn = queue[id]; delete queue[id]; fn(); } }; var runner = function(id) { return function() { run(id); }; }; var listener = function(event) { run(event.data); }; var post = function(id) { global2.postMessage(String2(id), location2.protocol + "//" + location2.host); }; if (!set || !clear) { set = function setImmediate(handler) { validateArgumentsLength(arguments.length, 1); var fn = isCallable(handler) ? handler : Function2(handler); var args = arraySlice(arguments, 1); queue[++counter] = function() { apply(fn, void 0, args); }; defer(counter); return counter; }; clear = function clearImmediate(id) { delete queue[id]; }; if (IS_NODE) { defer = function(id) { process.nextTick(runner(id)); }; } else if (Dispatch && Dispatch.now) { defer = function(id) { Dispatch.now(runner(id)); }; } else if (MessageChannel && !IS_IOS) { channel = new MessageChannel(); port = channel.port2; channel.port1.onmessage = listener; defer = bind(port.postMessage, port); } else if (global2.addEventListener && isCallable(global2.postMessage) && !global2.importScripts && location2 && location2.protocol !== "file:" && !fails(post)) { defer = post; global2.addEventListener("message", listener, false); } else if (ONREADYSTATECHANGE in createElement("script")) { defer = function(id) { html.appendChild(createElement("script"))[ONREADYSTATECHANGE] = function() { html.removeChild(this); run(id); }; }; } else { defer = function(id) { setTimeout(runner(id), 0); }; } } module3.exports = { set, clear }; }, { "../internals/array-slice": 117, "../internals/document-create-element": 135, "../internals/engine-is-ios": 142, "../internals/engine-is-node": 143, "../internals/fails": 150, "../internals/function-apply": 152, "../internals/function-bind-context": 153, "../internals/global": 163, "../internals/has-own-property": 164, "../internals/html": 167, "../internals/is-callable": 176, "../internals/validate-arguments-length": 266 }], 244: [function(require2, module3, exports3) { var uncurryThis = require2("../internals/function-uncurry-this"); module3.exports = uncurryThis(1 .valueOf); }, { "../internals/function-uncurry-this": 157 }], 245: [function(require2, module3, exports3) { var toIntegerOrInfinity = require2("../internals/to-integer-or-infinity"); var max = Math.max; var min = Math.min; module3.exports = function(index, length) { var integer = toIntegerOrInfinity(index); return integer < 0 ? max(integer + length, 0) : min(integer, length); }; }, { "../internals/to-integer-or-infinity": 248 }], 246: [function(require2, module3, exports3) { var global2 = require2("../internals/global"); var toIntegerOrInfinity = require2("../internals/to-integer-or-infinity"); var toLength = require2("../internals/to-length"); var RangeError2 = global2.RangeError; module3.exports = function(it) { if (it === void 0) return 0; var number = toIntegerOrInfinity(it); var length = toLength(number); if (number !== length) throw RangeError2("Wrong length or index"); return length; }; }, { "../internals/global": 163, "../internals/to-integer-or-infinity": 248, "../internals/to-length": 249 }], 247: [function(require2, module3, exports3) { var IndexedObject = require2("../internals/indexed-object"); var requireObjectCoercible = require2("../internals/require-object-coercible"); module3.exports = function(it) { return IndexedObject(requireObjectCoercible(it)); }; }, { "../internals/indexed-object": 170, "../internals/require-object-coercible": 230 }], 248: [function(require2, module3, exports3) { var ceil = Math.ceil; var floor = Math.floor; module3.exports = function(argument) { var number = +argument; return number !== number || number === 0 ? 0 : (number > 0 ? floor : ceil)(number); }; }, {}], 249: [function(require2, module3, exports3) { var toIntegerOrInfinity = require2("../internals/to-integer-or-infinity"); var min = Math.min; module3.exports = function(argument) { return argument > 0 ? min(toIntegerOrInfinity(argument), 9007199254740991) : 0; }; }, { "../internals/to-integer-or-infinity": 248 }], 250: [function(require2, module3, exports3) { var global2 = require2("../internals/global"); var requireObjectCoercible = require2("../internals/require-object-coercible"); var Object2 = global2.Object; module3.exports = function(argument) { return Object2(requireObjectCoercible(argument)); }; }, { "../internals/global": 163, "../internals/require-object-coercible": 230 }], 251: [function(require2, module3, exports3) { var global2 = require2("../internals/global"); var toPositiveInteger = require2("../internals/to-positive-integer"); var RangeError2 = global2.RangeError; module3.exports = function(it, BYTES) { var offset = toPositiveInteger(it); if (offset % BYTES) throw RangeError2("Wrong offset"); return offset; }; }, { "../internals/global": 163, "../internals/to-positive-integer": 252 }], 252: [function(require2, module3, exports3) { var global2 = require2("../internals/global"); var toIntegerOrInfinity = require2("../internals/to-integer-or-infinity"); var RangeError2 = global2.RangeError; module3.exports = function(it) { var result = toIntegerOrInfinity(it); if (result < 0) throw RangeError2("The argument can't be less than 0"); return result; }; }, { "../internals/global": 163, "../internals/to-integer-or-infinity": 248 }], 253: [function(require2, module3, exports3) { var global2 = require2("../internals/global"); var call = require2("../internals/function-call"); var isObject = require2("../internals/is-object"); var isSymbol = require2("../internals/is-symbol"); var getMethod = require2("../internals/get-method"); var ordinaryToPrimitive = require2("../internals/ordinary-to-primitive"); var wellKnownSymbol = require2("../internals/well-known-symbol"); var TypeError2 = global2.TypeError; var TO_PRIMITIVE = wellKnownSymbol("toPrimitive"); module3.exports = function(input, pref) { if (!isObject(input) || isSymbol(input)) return input; var exoticToPrim = getMethod(input, TO_PRIMITIVE); var result; if (exoticToPrim) { if (pref === void 0) pref = "default"; result = call(exoticToPrim, input, pref); if (!isObject(result) || isSymbol(result)) return result; throw TypeError2("Can't convert object to primitive value"); } if (pref === void 0) pref = "number"; return ordinaryToPrimitive(input, pref); }; }, { "../internals/function-call": 155, "../internals/get-method": 161, "../internals/global": 163, "../internals/is-object": 180, "../internals/is-symbol": 183, "../internals/ordinary-to-primitive": 211, "../internals/well-known-symbol": 268 }], 254: [function(require2, module3, exports3) { var toPrimitive = require2("../internals/to-primitive"); var isSymbol = require2("../internals/is-symbol"); module3.exports = function(argument) { var key = toPrimitive(argument, "string"); return isSymbol(key) ? key : key + ""; }; }, { "../internals/is-symbol": 183, "../internals/to-primitive": 253 }], 255: [function(require2, module3, exports3) { var wellKnownSymbol = require2("../internals/well-known-symbol"); var TO_STRING_TAG = wellKnownSymbol("toStringTag"); var test = {}; test[TO_STRING_TAG] = "z"; module3.exports = String(test) === "[object z]"; }, { "../internals/well-known-symbol": 268 }], 256: [function(require2, module3, exports3) { var global2 = require2("../internals/global"); var classof = require2("../internals/classof"); var String2 = global2.String; module3.exports = function(argument) { if (classof(argument) === "Symbol") throw TypeError("Cannot convert a Symbol value to a string"); return String2(argument); }; }, { "../internals/classof": 124, "../internals/global": 163 }], 257: [function(require2, module3, exports3) { var global2 = require2("../internals/global"); var String2 = global2.String; module3.exports = function(argument) { try { return String2(argument); } catch (error) { return "Object"; } }; }, { "../internals/global": 163 }], 258: [function(require2, module3, exports3) { "use strict"; var $ = require2("../internals/export"); var global2 = require2("../internals/global"); var call = require2("../internals/function-call"); var DESCRIPTORS = require2("../internals/descriptors"); var TYPED_ARRAYS_CONSTRUCTORS_REQUIRES_WRAPPERS = require2("../internals/typed-array-constructors-require-wrappers"); var ArrayBufferViewCore = require2("../internals/array-buffer-view-core"); var ArrayBufferModule = require2("../internals/array-buffer"); var anInstance = require2("../internals/an-instance"); var createPropertyDescriptor = require2("../internals/create-property-descriptor"); var createNonEnumerableProperty = require2("../internals/create-non-enumerable-property"); var isIntegralNumber = require2("../internals/is-integral-number"); var toLength = require2("../internals/to-length"); var toIndex = require2("../internals/to-index"); var toOffset = require2("../internals/to-offset"); var toPropertyKey = require2("../internals/to-property-key"); var hasOwn = require2("../internals/has-own-property"); var classof = require2("../internals/classof"); var isObject = require2("../internals/is-object"); var isSymbol = require2("../internals/is-symbol"); var create = require2("../internals/object-create"); var isPrototypeOf = require2("../internals/object-is-prototype-of"); var setPrototypeOf = require2("../internals/object-set-prototype-of"); var getOwnPropertyNames = require2("../internals/object-get-own-property-names").f; var typedArrayFrom = require2("../internals/typed-array-from"); var forEach = require2("../internals/array-iteration").forEach; var setSpecies = require2("../internals/set-species"); var definePropertyModule = require2("../internals/object-define-property"); var getOwnPropertyDescriptorModule = require2("../internals/object-get-own-property-descriptor"); var InternalStateModule = require2("../internals/internal-state"); var inheritIfRequired = require2("../internals/inherit-if-required"); var getInternalState = InternalStateModule.get; var setInternalState = InternalStateModule.set; var nativeDefineProperty = definePropertyModule.f; var nativeGetOwnPropertyDescriptor = getOwnPropertyDescriptorModule.f; var round = Math.round; var RangeError2 = global2.RangeError; var ArrayBuffer2 = ArrayBufferModule.ArrayBuffer; var ArrayBufferPrototype = ArrayBuffer2.prototype; var DataView2 = ArrayBufferModule.DataView; var NATIVE_ARRAY_BUFFER_VIEWS = ArrayBufferViewCore.NATIVE_ARRAY_BUFFER_VIEWS; var TYPED_ARRAY_CONSTRUCTOR = ArrayBufferViewCore.TYPED_ARRAY_CONSTRUCTOR; var TYPED_ARRAY_TAG = ArrayBufferViewCore.TYPED_ARRAY_TAG; var TypedArray = ArrayBufferViewCore.TypedArray; var TypedArrayPrototype = ArrayBufferViewCore.TypedArrayPrototype; var aTypedArrayConstructor = ArrayBufferViewCore.aTypedArrayConstructor; var isTypedArray = ArrayBufferViewCore.isTypedArray; var BYTES_PER_ELEMENT = "BYTES_PER_ELEMENT"; var WRONG_LENGTH = "Wrong length"; var fromList = function(C, list) { aTypedArrayConstructor(C); var index = 0; var length = list.length; var result = new C(length); while (length > index) result[index] = list[index++]; return result; }; var addGetter = function(it, key) { nativeDefineProperty(it, key, { get: function() { return getInternalState(this)[key]; } }); }; var isArrayBuffer = function(it) { var klass; return isPrototypeOf(ArrayBufferPrototype, it) || (klass = classof(it)) == "ArrayBuffer" || klass == "SharedArrayBuffer"; }; var isTypedArrayIndex = function(target, key) { return isTypedArray(target) && !isSymbol(key) && key in target && isIntegralNumber(+key) && key >= 0; }; var wrappedGetOwnPropertyDescriptor = function getOwnPropertyDescriptor(target, key) { key = toPropertyKey(key); return isTypedArrayIndex(target, key) ? createPropertyDescriptor(2, target[key]) : nativeGetOwnPropertyDescriptor(target, key); }; var wrappedDefineProperty = function defineProperty(target, key, descriptor) { key = toPropertyKey(key); if (isTypedArrayIndex(target, key) && isObject(descriptor) && hasOwn(descriptor, "value") && !hasOwn(descriptor, "get") && !hasOwn(descriptor, "set") && !descriptor.configurable && (!hasOwn(descriptor, "writable") || descriptor.writable) && (!hasOwn(descriptor, "enumerable") || descriptor.enumerable)) { target[key] = descriptor.value; return target; } return nativeDefineProperty(target, key, descriptor); }; if (DESCRIPTORS) { if (!NATIVE_ARRAY_BUFFER_VIEWS) { getOwnPropertyDescriptorModule.f = wrappedGetOwnPropertyDescriptor; definePropertyModule.f = wrappedDefineProperty; addGetter(TypedArrayPrototype, "buffer"); addGetter(TypedArrayPrototype, "byteOffset"); addGetter(TypedArrayPrototype, "byteLength"); addGetter(TypedArrayPrototype, "length"); } $({ target: "Object", stat: true, forced: !NATIVE_ARRAY_BUFFER_VIEWS }, { getOwnPropertyDescriptor: wrappedGetOwnPropertyDescriptor, defineProperty: wrappedDefineProperty }); module3.exports = function(TYPE, wrapper, CLAMPED) { var BYTES = TYPE.match(/\d+$/)[0] / 8; var CONSTRUCTOR_NAME = TYPE + (CLAMPED ? "Clamped" : "") + "Array"; var GETTER = "get" + TYPE; var SETTER = "set" + TYPE; var NativeTypedArrayConstructor = global2[CONSTRUCTOR_NAME]; var TypedArrayConstructor = NativeTypedArrayConstructor; var TypedArrayConstructorPrototype = TypedArrayConstructor && TypedArrayConstructor.prototype; var exported = {}; var getter = function(that, index) { var data = getInternalState(that); return data.view[GETTER](index * BYTES + data.byteOffset, true); }; var setter = function(that, index, value) { var data = getInternalState(that); if (CLAMPED) value = (value = round(value)) < 0 ? 0 : value > 255 ? 255 : value & 255; data.view[SETTER](index * BYTES + data.byteOffset, value, true); }; var addElement = function(that, index) { nativeDefineProperty(that, index, { get: function() { return getter(this, index); }, set: function(value) { return setter(this, index, value); }, enumerable: true }); }; if (!NATIVE_ARRAY_BUFFER_VIEWS) { TypedArrayConstructor = wrapper(function(that, data, offset, $length) { anInstance(that, TypedArrayConstructorPrototype); var index = 0; var byteOffset = 0; var buffer, byteLength, length; if (!isObject(data)) { length = toIndex(data); byteLength = length * BYTES; buffer = new ArrayBuffer2(byteLength); } else if (isArrayBuffer(data)) { buffer = data; byteOffset = toOffset(offset, BYTES); var $len = data.byteLength; if ($length === void 0) { if ($len % BYTES) throw RangeError2(WRONG_LENGTH); byteLength = $len - byteOffset; if (byteLength < 0) throw RangeError2(WRONG_LENGTH); } else { byteLength = toLength($length) * BYTES; if (byteLength + byteOffset > $len) throw RangeError2(WRONG_LENGTH); } length = byteLength / BYTES; } else if (isTypedArray(data)) { return fromList(TypedArrayConstructor, data); } else { return call(typedArrayFrom, TypedArrayConstructor, data); } setInternalState(that, { buffer, byteOffset, byteLength, length, view: new DataView2(buffer) }); while (index < length) addElement(that, index++); }); if (setPrototypeOf) setPrototypeOf(TypedArrayConstructor, TypedArray); TypedArrayConstructorPrototype = TypedArrayConstructor.prototype = create(TypedArrayPrototype); } else if (TYPED_ARRAYS_CONSTRUCTORS_REQUIRES_WRAPPERS) { TypedArrayConstructor = wrapper(function(dummy, data, typedArrayOffset, $length) { anInstance(dummy, TypedArrayConstructorPrototype); return inheritIfRequired(function() { if (!isObject(data)) return new NativeTypedArrayConstructor(toIndex(data)); if (isArrayBuffer(data)) return $length !== void 0 ? new NativeTypedArrayConstructor(data, toOffset(typedArrayOffset, BYTES), $length) : typedArrayOffset !== void 0 ? new NativeTypedArrayConstructor(data, toOffset(typedArrayOffset, BYTES)) : new NativeTypedArrayConstructor(data); if (isTypedArray(data)) return fromList(TypedArrayConstructor, data); return call(typedArrayFrom, TypedArrayConstructor, data); }(), dummy, TypedArrayConstructor); }); if (setPrototypeOf) setPrototypeOf(TypedArrayConstructor, TypedArray); forEach(getOwnPropertyNames(NativeTypedArrayConstructor), function(key) { if (!(key in TypedArrayConstructor)) { createNonEnumerableProperty(TypedArrayConstructor, key, NativeTypedArrayConstructor[key]); } }); TypedArrayConstructor.prototype = TypedArrayConstructorPrototype; } if (TypedArrayConstructorPrototype.constructor !== TypedArrayConstructor) { createNonEnumerableProperty(TypedArrayConstructorPrototype, "constructor", TypedArrayConstructor); } createNonEnumerableProperty(TypedArrayConstructorPrototype, TYPED_ARRAY_CONSTRUCTOR, TypedArrayConstructor); if (TYPED_ARRAY_TAG) { createNonEnumerableProperty(TypedArrayConstructorPrototype, TYPED_ARRAY_TAG, CONSTRUCTOR_NAME); } exported[CONSTRUCTOR_NAME] = TypedArrayConstructor; $({ global: true, forced: TypedArrayConstructor != NativeTypedArrayConstructor, sham: !NATIVE_ARRAY_BUFFER_VIEWS }, exported); if (!(BYTES_PER_ELEMENT in TypedArrayConstructor)) { createNonEnumerableProperty(TypedArrayConstructor, BYTES_PER_ELEMENT, BYTES); } if (!(BYTES_PER_ELEMENT in TypedArrayConstructorPrototype)) { createNonEnumerableProperty(TypedArrayConstructorPrototype, BYTES_PER_ELEMENT, BYTES); } setSpecies(CONSTRUCTOR_NAME); }; } else module3.exports = function() { }; }, { "../internals/an-instance": 100, "../internals/array-buffer": 104, "../internals/array-buffer-view-core": 103, "../internals/array-iteration": 111, "../internals/classof": 124, "../internals/create-non-enumerable-property": 129, "../internals/create-property-descriptor": 130, "../internals/descriptors": 134, "../internals/export": 149, "../internals/function-call": 155, "../internals/global": 163, "../internals/has-own-property": 164, "../internals/inherit-if-required": 171, "../internals/internal-state": 173, "../internals/is-integral-number": 179, "../internals/is-object": 180, "../internals/is-symbol": 183, "../internals/object-create": 196, "../internals/object-define-property": 198, "../internals/object-get-own-property-descriptor": 199, "../internals/object-get-own-property-names": 201, "../internals/object-is-prototype-of": 204, "../internals/object-set-prototype-of": 208, "../internals/set-species": 233, "../internals/to-index": 246, "../internals/to-length": 249, "../internals/to-offset": 251, "../internals/to-property-key": 254, "../internals/typed-array-constructors-require-wrappers": 259, "../internals/typed-array-from": 261 }], 259: [function(require2, module3, exports3) { var global2 = require2("../internals/global"); var fails = require2("../internals/fails"); var checkCorrectnessOfIteration = require2("../internals/check-correctness-of-iteration"); var NATIVE_ARRAY_BUFFER_VIEWS = require2("../internals/array-buffer-view-core").NATIVE_ARRAY_BUFFER_VIEWS; var ArrayBuffer2 = global2.ArrayBuffer; var Int8Array2 = global2.Int8Array; module3.exports = !NATIVE_ARRAY_BUFFER_VIEWS || !fails(function() { Int8Array2(1); }) || !fails(function() { new Int8Array2(-1); }) || !checkCorrectnessOfIteration(function(iterable) { new Int8Array2(); new Int8Array2(null); new Int8Array2(1.5); new Int8Array2(iterable); }, true) || fails(function() { return new Int8Array2(new ArrayBuffer2(2), 1, void 0).length !== 1; }); }, { "../internals/array-buffer-view-core": 103, "../internals/check-correctness-of-iteration": 122, "../internals/fails": 150, "../internals/global": 163 }], 260: [function(require2, module3, exports3) { var arrayFromConstructorAndList = require2("../internals/array-from-constructor-and-list"); var typedArraySpeciesConstructor = require2("../internals/typed-array-species-constructor"); module3.exports = function(instance, list) { return arrayFromConstructorAndList(typedArraySpeciesConstructor(instance), list); }; }, { "../internals/array-from-constructor-and-list": 108, "../internals/typed-array-species-constructor": 262 }], 261: [function(require2, module3, exports3) { var bind = require2("../internals/function-bind-context"); var call = require2("../internals/function-call"); var aConstructor = require2("../internals/a-constructor"); var toObject = require2("../internals/to-object"); var lengthOfArrayLike = require2("../internals/length-of-array-like"); var getIterator = require2("../internals/get-iterator"); var getIteratorMethod = require2("../internals/get-iterator-method"); var isArrayIteratorMethod = require2("../internals/is-array-iterator-method"); var aTypedArrayConstructor = require2("../internals/array-buffer-view-core").aTypedArrayConstructor; module3.exports = function from(source) { var C = aConstructor(this); var O = toObject(source); var argumentsLength = arguments.length; var mapfn = argumentsLength > 1 ? arguments[1] : void 0; var mapping = mapfn !== void 0; var iteratorMethod = getIteratorMethod(O); var i, length, result, step, iterator, next; if (iteratorMethod && !isArrayIteratorMethod(iteratorMethod)) { iterator = getIterator(O, iteratorMethod); next = iterator.next; O = []; while (!(step = call(next, iterator)).done) { O.push(step.value); } } if (mapping && argumentsLength > 2) { mapfn = bind(mapfn, arguments[2]); } length = lengthOfArrayLike(O); result = new (aTypedArrayConstructor(C))(length); for (i = 0; length > i; i++) { result[i] = mapping ? mapfn(O[i], i) : O[i]; } return result; }; }, { "../internals/a-constructor": 96, "../internals/array-buffer-view-core": 103, "../internals/function-bind-context": 153, "../internals/function-call": 155, "../internals/get-iterator": 160, "../internals/get-iterator-method": 159, "../internals/is-array-iterator-method": 174, "../internals/length-of-array-like": 188, "../internals/to-object": 250 }], 262: [function(require2, module3, exports3) { var ArrayBufferViewCore = require2("../internals/array-buffer-view-core"); var speciesConstructor = require2("../internals/species-constructor"); var TYPED_ARRAY_CONSTRUCTOR = ArrayBufferViewCore.TYPED_ARRAY_CONSTRUCTOR; var aTypedArrayConstructor = ArrayBufferViewCore.aTypedArrayConstructor; module3.exports = function(originalArray) { return aTypedArrayConstructor(speciesConstructor(originalArray, originalArray[TYPED_ARRAY_CONSTRUCTOR])); }; }, { "../internals/array-buffer-view-core": 103, "../internals/species-constructor": 238 }], 263: [function(require2, module3, exports3) { var uncurryThis = require2("../internals/function-uncurry-this"); var id = 0; var postfix = Math.random(); var toString = uncurryThis(1 .toString); module3.exports = function(key) { return "Symbol(" + (key === void 0 ? "" : key) + ")_" + toString(++id + postfix, 36); }; }, { "../internals/function-uncurry-this": 157 }], 264: [function(require2, module3, exports3) { var NATIVE_SYMBOL = require2("../internals/native-symbol"); module3.exports = NATIVE_SYMBOL && !Symbol.sham && typeof Symbol.iterator == "symbol"; }, { "../internals/native-symbol": 191 }], 265: [function(require2, module3, exports3) { var DESCRIPTORS = require2("../internals/descriptors"); var fails = require2("../internals/fails"); module3.exports = DESCRIPTORS && fails(function() { return Object.defineProperty(function() { }, "prototype", { value: 42, writable: false }).prototype != 42; }); }, { "../internals/descriptors": 134, "../internals/fails": 150 }], 266: [function(require2, module3, exports3) { var global2 = require2("../internals/global"); var TypeError2 = global2.TypeError; module3.exports = function(passed, required) { if (passed < required) throw TypeError2("Not enough arguments"); return passed; }; }, { "../internals/global": 163 }], 267: [function(require2, module3, exports3) { var wellKnownSymbol = require2("../internals/well-known-symbol"); exports3.f = wellKnownSymbol; }, { "../internals/well-known-symbol": 268 }], 268: [function(require2, module3, exports3) { var global2 = require2("../internals/global"); var shared = require2("../internals/shared"); var hasOwn = require2("../internals/has-own-property"); var uid = require2("../internals/uid"); var NATIVE_SYMBOL = require2("../internals/native-symbol"); var USE_SYMBOL_AS_UID = require2("../internals/use-symbol-as-uid"); var WellKnownSymbolsStore = shared("wks"); var Symbol2 = global2.Symbol; var symbolFor = Symbol2 && Symbol2["for"]; var createWellKnownSymbol = USE_SYMBOL_AS_UID ? Symbol2 : Symbol2 && Symbol2.withoutSetter || uid; module3.exports = function(name) { if (!hasOwn(WellKnownSymbolsStore, name) || !(NATIVE_SYMBOL || typeof WellKnownSymbolsStore[name] == "string")) { var description = "Symbol." + name; if (NATIVE_SYMBOL && hasOwn(Symbol2, name)) { WellKnownSymbolsStore[name] = Symbol2[name]; } else if (USE_SYMBOL_AS_UID && symbolFor) { WellKnownSymbolsStore[name] = symbolFor(description); } else { WellKnownSymbolsStore[name] = createWellKnownSymbol(description); } } return WellKnownSymbolsStore[name]; }; }, { "../internals/global": 163, "../internals/has-own-property": 164, "../internals/native-symbol": 191, "../internals/shared": 237, "../internals/uid": 263, "../internals/use-symbol-as-uid": 264 }], 269: [function(require2, module3, exports3) { module3.exports = " \n\v\f\r                 \u2028\u2029\uFEFF"; }, {}], 270: [function(require2, module3, exports3) { "use strict"; var $ = require2("../internals/export"); var global2 = require2("../internals/global"); var arrayBufferModule = require2("../internals/array-buffer"); var setSpecies = require2("../internals/set-species"); var ARRAY_BUFFER = "ArrayBuffer"; var ArrayBuffer2 = arrayBufferModule[ARRAY_BUFFER]; var NativeArrayBuffer = global2[ARRAY_BUFFER]; $({ global: true, forced: NativeArrayBuffer !== ArrayBuffer2 }, { ArrayBuffer: ArrayBuffer2 }); setSpecies(ARRAY_BUFFER); }, { "../internals/array-buffer": 104, "../internals/export": 149, "../internals/global": 163, "../internals/set-species": 233 }], 271: [function(require2, module3, exports3) { "use strict"; var $ = require2("../internals/export"); var uncurryThis = require2("../internals/function-uncurry-this"); var fails = require2("../internals/fails"); var ArrayBufferModule = require2("../internals/array-buffer"); var anObject = require2("../internals/an-object"); var toAbsoluteIndex = require2("../internals/to-absolute-index"); var toLength = require2("../internals/to-length"); var speciesConstructor = require2("../internals/species-constructor"); var ArrayBuffer2 = ArrayBufferModule.ArrayBuffer; var DataView2 = ArrayBufferModule.DataView; var DataViewPrototype = DataView2.prototype; var un$ArrayBufferSlice = uncurryThis(ArrayBuffer2.prototype.slice); var getUint8 = uncurryThis(DataViewPrototype.getUint8); var setUint8 = uncurryThis(DataViewPrototype.setUint8); var INCORRECT_SLICE = fails(function() { return !new ArrayBuffer2(2).slice(1, void 0).byteLength; }); $({ target: "ArrayBuffer", proto: true, unsafe: true, forced: INCORRECT_SLICE }, { slice: function slice(start, end) { if (un$ArrayBufferSlice && end === void 0) { return un$ArrayBufferSlice(anObject(this), start); } var length = anObject(this).byteLength; var first = toAbsoluteIndex(start, length); var fin = toAbsoluteIndex(end === void 0 ? length : end, length); var result = new (speciesConstructor(this, ArrayBuffer2))(toLength(fin - first)); var viewSource = new DataView2(this); var viewTarget = new DataView2(result); var index = 0; while (first < fin) { setUint8(viewTarget, index++, getUint8(viewSource, first++)); } return result; } }); }, { "../internals/an-object": 101, "../internals/array-buffer": 104, "../internals/export": 149, "../internals/fails": 150, "../internals/function-uncurry-this": 157, "../internals/species-constructor": 238, "../internals/to-absolute-index": 245, "../internals/to-length": 249 }], 272: [function(require2, module3, exports3) { "use strict"; var $ = require2("../internals/export"); var global2 = require2("../internals/global"); var fails = require2("../internals/fails"); var isArray = require2("../internals/is-array"); var isObject = require2("../internals/is-object"); var toObject = require2("../internals/to-object"); var lengthOfArrayLike = require2("../internals/length-of-array-like"); var createProperty = require2("../internals/create-property"); var arraySpeciesCreate = require2("../internals/array-species-create"); var arrayMethodHasSpeciesSupport = require2("../internals/array-method-has-species-support"); var wellKnownSymbol = require2("../internals/well-known-symbol"); var V8_VERSION = require2("../internals/engine-v8-version"); var IS_CONCAT_SPREADABLE = wellKnownSymbol("isConcatSpreadable"); var MAX_SAFE_INTEGER = 9007199254740991; var MAXIMUM_ALLOWED_INDEX_EXCEEDED = "Maximum allowed index exceeded"; var TypeError2 = global2.TypeError; var IS_CONCAT_SPREADABLE_SUPPORT = V8_VERSION >= 51 || !fails(function() { var array = []; array[IS_CONCAT_SPREADABLE] = false; return array.concat()[0] !== array; }); var SPECIES_SUPPORT = arrayMethodHasSpeciesSupport("concat"); var isConcatSpreadable = function(O) { if (!isObject(O)) return false; var spreadable = O[IS_CONCAT_SPREADABLE]; return spreadable !== void 0 ? !!spreadable : isArray(O); }; var FORCED = !IS_CONCAT_SPREADABLE_SUPPORT || !SPECIES_SUPPORT; $({ target: "Array", proto: true, forced: FORCED }, { // eslint-disable-next-line no-unused-vars -- required for `.length` concat: function concat(arg) { var O = toObject(this); var A = arraySpeciesCreate(O, 0); var n = 0; var i, k, length, len, E; for (i = -1, length = arguments.length; i < length; i++) { E = i === -1 ? O : arguments[i]; if (isConcatSpreadable(E)) { len = lengthOfArrayLike(E); if (n + len > MAX_SAFE_INTEGER) throw TypeError2(MAXIMUM_ALLOWED_INDEX_EXCEEDED); for (k = 0; k < len; k++, n++) if (k in E) createProperty(A, n, E[k]); } else { if (n >= MAX_SAFE_INTEGER) throw TypeError2(MAXIMUM_ALLOWED_INDEX_EXCEEDED); createProperty(A, n++, E); } } A.length = n; return A; } }); }, { "../internals/array-method-has-species-support": 113, "../internals/array-species-create": 120, "../internals/create-property": 131, "../internals/engine-v8-version": 146, "../internals/export": 149, "../internals/fails": 150, "../internals/global": 163, "../internals/is-array": 175, "../internals/is-object": 180, "../internals/length-of-array-like": 188, "../internals/to-object": 250, "../internals/well-known-symbol": 268 }], 273: [function(require2, module3, exports3) { var $ = require2("../internals/export"); var fill = require2("../internals/array-fill"); var addToUnscopables = require2("../internals/add-to-unscopables"); $({ target: "Array", proto: true }, { fill }); addToUnscopables("fill"); }, { "../internals/add-to-unscopables": 98, "../internals/array-fill": 106, "../internals/export": 149 }], 274: [function(require2, module3, exports3) { "use strict"; var $ = require2("../internals/export"); var $filter = require2("../internals/array-iteration").filter; var arrayMethodHasSpeciesSupport = require2("../internals/array-method-has-species-support"); var HAS_SPECIES_SUPPORT = arrayMethodHasSpeciesSupport("filter"); $({ target: "Array", proto: true, forced: !HAS_SPECIES_SUPPORT }, { filter: function filter(callbackfn) { return $filter(this, callbackfn, arguments.length > 1 ? arguments[1] : void 0); } }); }, { "../internals/array-iteration": 111, "../internals/array-method-has-species-support": 113, "../internals/export": 149 }], 275: [function(require2, module3, exports3) { "use strict"; var $ = require2("../internals/export"); var $find = require2("../internals/array-iteration").find; var addToUnscopables = require2("../internals/add-to-unscopables"); var FIND = "find"; var SKIPS_HOLES = true; if (FIND in []) Array(1)[FIND](function() { SKIPS_HOLES = false; }); $({ target: "Array", proto: true, forced: SKIPS_HOLES }, { find: function find(callbackfn) { return $find(this, callbackfn, arguments.length > 1 ? arguments[1] : void 0); } }); addToUnscopables(FIND); }, { "../internals/add-to-unscopables": 98, "../internals/array-iteration": 111, "../internals/export": 149 }], 276: [function(require2, module3, exports3) { var $ = require2("../internals/export"); var from = require2("../internals/array-from"); var checkCorrectnessOfIteration = require2("../internals/check-correctness-of-iteration"); var INCORRECT_ITERATION = !checkCorrectnessOfIteration(function(iterable) { Array.from(iterable); }); $({ target: "Array", stat: true, forced: INCORRECT_ITERATION }, { from }); }, { "../internals/array-from": 109, "../internals/check-correctness-of-iteration": 122, "../internals/export": 149 }], 277: [function(require2, module3, exports3) { "use strict"; var $ = require2("../internals/export"); var $includes = require2("../internals/array-includes").includes; var addToUnscopables = require2("../internals/add-to-unscopables"); $({ target: "Array", proto: true }, { includes: function includes(el) { return $includes(this, el, arguments.length > 1 ? arguments[1] : void 0); } }); addToUnscopables("includes"); }, { "../internals/add-to-unscopables": 98, "../internals/array-includes": 110, "../internals/export": 149 }], 278: [function(require2, module3, exports3) { "use strict"; var toIndexedObject = require2("../internals/to-indexed-object"); var addToUnscopables = require2("../internals/add-to-unscopables"); var Iterators = require2("../internals/iterators"); var InternalStateModule = require2("../internals/internal-state"); var defineProperty = require2("../internals/object-define-property").f; var defineIterator = require2("../internals/define-iterator"); var IS_PURE = require2("../internals/is-pure"); var DESCRIPTORS = require2("../internals/descriptors"); var ARRAY_ITERATOR = "Array Iterator"; var setInternalState = InternalStateModule.set; var getInternalState = InternalStateModule.getterFor(ARRAY_ITERATOR); module3.exports = defineIterator(Array, "Array", function(iterated, kind) { setInternalState(this, { type: ARRAY_ITERATOR, target: toIndexedObject(iterated), // target index: 0, // next index kind // kind }); }, function() { var state = getInternalState(this); var target = state.target; var kind = state.kind; var index = state.index++; if (!target || index >= target.length) { state.target = void 0; return { value: void 0, done: true }; } if (kind == "keys") return { value: index, done: false }; if (kind == "values") return { value: target[index], done: false }; return { value: [index, target[index]], done: false }; }, "values"); var values = Iterators.Arguments = Iterators.Array; addToUnscopables("keys"); addToUnscopables("values"); addToUnscopables("entries"); if (!IS_PURE && DESCRIPTORS && values.name !== "values") try { defineProperty(values, "name", { value: "values" }); } catch (error) { } }, { "../internals/add-to-unscopables": 98, "../internals/define-iterator": 132, "../internals/descriptors": 134, "../internals/internal-state": 173, "../internals/is-pure": 181, "../internals/iterators": 187, "../internals/object-define-property": 198, "../internals/to-indexed-object": 247 }], 279: [function(require2, module3, exports3) { "use strict"; var $ = require2("../internals/export"); var uncurryThis = require2("../internals/function-uncurry-this"); var IndexedObject = require2("../internals/indexed-object"); var toIndexedObject = require2("../internals/to-indexed-object"); var arrayMethodIsStrict = require2("../internals/array-method-is-strict"); var un$Join = uncurryThis([].join); var ES3_STRINGS = IndexedObject != Object; var STRICT_METHOD = arrayMethodIsStrict("join", ","); $({ target: "Array", proto: true, forced: ES3_STRINGS || !STRICT_METHOD }, { join: function join(separator) { return un$Join(toIndexedObject(this), separator === void 0 ? "," : separator); } }); }, { "../internals/array-method-is-strict": 114, "../internals/export": 149, "../internals/function-uncurry-this": 157, "../internals/indexed-object": 170, "../internals/to-indexed-object": 247 }], 280: [function(require2, module3, exports3) { "use strict"; var $ = require2("../internals/export"); var $map = require2("../internals/array-iteration").map; var arrayMethodHasSpeciesSupport = require2("../internals/array-method-has-species-support"); var HAS_SPECIES_SUPPORT = arrayMethodHasSpeciesSupport("map"); $({ target: "Array", proto: true, forced: !HAS_SPECIES_SUPPORT }, { map: function map(callbackfn) { return $map(this, callbackfn, arguments.length > 1 ? arguments[1] : void 0); } }); }, { "../internals/array-iteration": 111, "../internals/array-method-has-species-support": 113, "../internals/export": 149 }], 281: [function(require2, module3, exports3) { "use strict"; var $ = require2("../internals/export"); var global2 = require2("../internals/global"); var isArray = require2("../internals/is-array"); var isConstructor = require2("../internals/is-constructor"); var isObject = require2("../internals/is-object"); var toAbsoluteIndex = require2("../internals/to-absolute-index"); var lengthOfArrayLike = require2("../internals/length-of-array-like"); var toIndexedObject = require2("../internals/to-indexed-object"); var createProperty = require2("../internals/create-property"); var wellKnownSymbol = require2("../internals/well-known-symbol"); var arrayMethodHasSpeciesSupport = require2("../internals/array-method-has-species-support"); var un$Slice = require2("../internals/array-slice"); var HAS_SPECIES_SUPPORT = arrayMethodHasSpeciesSupport("slice"); var SPECIES = wellKnownSymbol("species"); var Array2 = global2.Array; var max = Math.max; $({ target: "Array", proto: true, forced: !HAS_SPECIES_SUPPORT }, { slice: function slice(start, end) { var O = toIndexedObject(this); var length = lengthOfArrayLike(O); var k = toAbsoluteIndex(start, length); var fin = toAbsoluteIndex(end === void 0 ? length : end, length); var Constructor, result, n; if (isArray(O)) { Constructor = O.constructor; if (isConstructor(Constructor) && (Constructor === Array2 || isArray(Constructor.prototype))) { Constructor = void 0; } else if (isObject(Constructor)) { Constructor = Constructor[SPECIES]; if (Constructor === null) Constructor = void 0; } if (Constructor === Array2 || Constructor === void 0) { return un$Slice(O, k, fin); } } result = new (Constructor === void 0 ? Array2 : Constructor)(max(fin - k, 0)); for (n = 0; k < fin; k++, n++) if (k in O) createProperty(result, n, O[k]); result.length = n; return result; } }); }, { "../internals/array-method-has-species-support": 113, "../internals/array-slice": 117, "../internals/create-property": 131, "../internals/export": 149, "../internals/global": 163, "../internals/is-array": 175, "../internals/is-constructor": 177, "../internals/is-object": 180, "../internals/length-of-array-like": 188, "../internals/to-absolute-index": 245, "../internals/to-indexed-object": 247, "../internals/well-known-symbol": 268 }], 282: [function(require2, module3, exports3) { "use strict"; var $ = require2("../internals/export"); var uncurryThis = require2("../internals/function-uncurry-this"); var aCallable = require2("../internals/a-callable"); var toObject = require2("../internals/to-object"); var lengthOfArrayLike = require2("../internals/length-of-array-like"); var toString = require2("../internals/to-string"); var fails = require2("../internals/fails"); var internalSort = require2("../internals/array-sort"); var arrayMethodIsStrict = require2("../internals/array-method-is-strict"); var FF = require2("../internals/engine-ff-version"); var IE_OR_EDGE = require2("../internals/engine-is-ie-or-edge"); var V8 = require2("../internals/engine-v8-version"); var WEBKIT = require2("../internals/engine-webkit-version"); var test = []; var un$Sort = uncurryThis(test.sort); var push = uncurryThis(test.push); var FAILS_ON_UNDEFINED = fails(function() { test.sort(void 0); }); var FAILS_ON_NULL = fails(function() { test.sort(null); }); var STRICT_METHOD = arrayMethodIsStrict("sort"); var STABLE_SORT = !fails(function() { if (V8) return V8 < 70; if (FF && FF > 3) return; if (IE_OR_EDGE) return true; if (WEBKIT) return WEBKIT < 603; var result = ""; var code, chr, value, index; for (code = 65; code < 76; code++) { chr = String.fromCharCode(code); switch (code) { case 66: case 69: case 70: case 72: value = 3; break; case 68: case 71: value = 4; break; default: value = 2; } for (index = 0; index < 47; index++) { test.push({ k: chr + index, v: value }); } } test.sort(function(a, b) { return b.v - a.v; }); for (index = 0; index < test.length; index++) { chr = test[index].k.charAt(0); if (result.charAt(result.length - 1) !== chr) result += chr; } return result !== "DGBEFHACIJK"; }); var FORCED = FAILS_ON_UNDEFINED || !FAILS_ON_NULL || !STRICT_METHOD || !STABLE_SORT; var getSortCompare = function(comparefn) { return function(x, y) { if (y === void 0) return -1; if (x === void 0) return 1; if (comparefn !== void 0) return +comparefn(x, y) || 0; return toString(x) > toString(y) ? 1 : -1; }; }; $({ target: "Array", proto: true, forced: FORCED }, { sort: function sort(comparefn) { if (comparefn !== void 0) aCallable(comparefn); var array = toObject(this); if (STABLE_SORT) return comparefn === void 0 ? un$Sort(array) : un$Sort(array, comparefn); var items = []; var arrayLength = lengthOfArrayLike(array); var itemsLength, index; for (index = 0; index < arrayLength; index++) { if (index in array) push(items, array[index]); } internalSort(items, getSortCompare(comparefn)); itemsLength = items.length; index = 0; while (index < itemsLength) array[index] = items[index++]; while (index < arrayLength) delete array[index++]; return array; } }); }, { "../internals/a-callable": 95, "../internals/array-method-is-strict": 114, "../internals/array-sort": 118, "../internals/engine-ff-version": 138, "../internals/engine-is-ie-or-edge": 140, "../internals/engine-v8-version": 146, "../internals/engine-webkit-version": 147, "../internals/export": 149, "../internals/fails": 150, "../internals/function-uncurry-this": 157, "../internals/length-of-array-like": 188, "../internals/to-object": 250, "../internals/to-string": 256 }], 283: [function(require2, module3, exports3) { "use strict"; var $ = require2("../internals/export"); var global2 = require2("../internals/global"); var toAbsoluteIndex = require2("../internals/to-absolute-index"); var toIntegerOrInfinity = require2("../internals/to-integer-or-infinity"); var lengthOfArrayLike = require2("../internals/length-of-array-like"); var toObject = require2("../internals/to-object"); var arraySpeciesCreate = require2("../internals/array-species-create"); var createProperty = require2("../internals/create-property"); var arrayMethodHasSpeciesSupport = require2("../internals/array-method-has-species-support"); var HAS_SPECIES_SUPPORT = arrayMethodHasSpeciesSupport("splice"); var TypeError2 = global2.TypeError; var max = Math.max; var min = Math.min; var MAX_SAFE_INTEGER = 9007199254740991; var MAXIMUM_ALLOWED_LENGTH_EXCEEDED = "Maximum allowed length exceeded"; $({ target: "Array", proto: true, forced: !HAS_SPECIES_SUPPORT }, { splice: function splice(start, deleteCount) { var O = toObject(this); var len = lengthOfArrayLike(O); var actualStart = toAbsoluteIndex(start, len); var argumentsLength = arguments.length; var insertCount, actualDeleteCount, A, k, from, to; 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); } if (len + insertCount - actualDeleteCount > MAX_SAFE_INTEGER) { throw TypeError2(MAXIMUM_ALLOWED_LENGTH_EXCEEDED); } A = arraySpeciesCreate(O, actualDeleteCount); for (k = 0; k < actualDeleteCount; k++) { from = actualStart + k; if (from in O) createProperty(A, k, O[from]); } A.length = actualDeleteCount; if (insertCount < actualDeleteCount) { for (k = actualStart; k < len - actualDeleteCount; k++) { from = k + actualDeleteCount; to = k + insertCount; if (from in O) O[to] = O[from]; else delete O[to]; } for (k = len; k > len - actualDeleteCount + insertCount; k--) delete O[k - 1]; } else if (insertCount > actualDeleteCount) { for (k = len - actualDeleteCount; k > actualStart; k--) { from = k + actualDeleteCount - 1; to = k + insertCount - 1; if (from in O) O[to] = O[from]; else delete O[to]; } } for (k = 0; k < insertCount; k++) { O[k + actualStart] = arguments[k + 2]; } O.length = len - actualDeleteCount + insertCount; return A; } }); }, { "../internals/array-method-has-species-support": 113, "../internals/array-species-create": 120, "../internals/create-property": 131, "../internals/export": 149, "../internals/global": 163, "../internals/length-of-array-like": 188, "../internals/to-absolute-index": 245, "../internals/to-integer-or-infinity": 248, "../internals/to-object": 250 }], 284: [function(require2, module3, exports3) { var DESCRIPTORS = require2("../internals/descriptors"); var FUNCTION_NAME_EXISTS = require2("../internals/function-name").EXISTS; var uncurryThis = require2("../internals/function-uncurry-this"); var defineProperty = require2("../internals/object-define-property").f; var FunctionPrototype = Function.prototype; var functionToString = uncurryThis(FunctionPrototype.toString); var nameRE = /function\b(?:\s|\/\*[\S\s]*?\*\/|\/\/[^\n\r]*[\n\r]+)*([^\s(/]*)/; var regExpExec = uncurryThis(nameRE.exec); var NAME = "name"; if (DESCRIPTORS && !FUNCTION_NAME_EXISTS) { defineProperty(FunctionPrototype, NAME, { configurable: true, get: function() { try { return regExpExec(nameRE, functionToString(this))[1]; } catch (error) { return ""; } } }); } }, { "../internals/descriptors": 134, "../internals/function-name": 156, "../internals/function-uncurry-this": 157, "../internals/object-define-property": 198 }], 285: [function(require2, module3, exports3) { var $ = require2("../internals/export"); var getBuiltIn = require2("../internals/get-built-in"); var apply = require2("../internals/function-apply"); var call = require2("../internals/function-call"); var uncurryThis = require2("../internals/function-uncurry-this"); var fails = require2("../internals/fails"); var isArray = require2("../internals/is-array"); var isCallable = require2("../internals/is-callable"); var isObject = require2("../internals/is-object"); var isSymbol = require2("../internals/is-symbol"); var arraySlice = require2("../internals/array-slice"); var NATIVE_SYMBOL = require2("../internals/native-symbol"); var $stringify = getBuiltIn("JSON", "stringify"); var exec = uncurryThis(/./.exec); var charAt = uncurryThis("".charAt); var charCodeAt = uncurryThis("".charCodeAt); var replace = uncurryThis("".replace); var numberToString = uncurryThis(1 .toString); var tester = /[\uD800-\uDFFF]/g; var low = /^[\uD800-\uDBFF]$/; var hi = /^[\uDC00-\uDFFF]$/; var WRONG_SYMBOLS_CONVERSION = !NATIVE_SYMBOL || fails(function() { var symbol = getBuiltIn("Symbol")(); return $stringify([symbol]) != "[null]" || $stringify({ a: symbol }) != "{}" || $stringify(Object(symbol)) != "{}"; }); var ILL_FORMED_UNICODE = fails(function() { return $stringify("\uDF06\uD834") !== '"\\udf06\\ud834"' || $stringify("\uDEAD") !== '"\\udead"'; }); var stringifyWithSymbolsFix = function(it, replacer) { var args = arraySlice(arguments); var $replacer = replacer; if (!isObject(replacer) && it === void 0 || isSymbol(it)) return; if (!isArray(replacer)) replacer = function(key, value) { if (isCallable($replacer)) value = call($replacer, this, key, value); if (!isSymbol(value)) return value; }; args[1] = replacer; return apply($stringify, null, args); }; var fixIllFormed = function(match, offset, string) { var prev = charAt(string, offset - 1); var next = charAt(string, offset + 1); if (exec(low, match) && !exec(hi, next) || exec(hi, match) && !exec(low, prev)) { return "\\u" + numberToString(charCodeAt(match, 0), 16); } return match; }; if ($stringify) { $({ target: "JSON", stat: true, forced: WRONG_SYMBOLS_CONVERSION || ILL_FORMED_UNICODE }, { // eslint-disable-next-line no-unused-vars -- required for `.length` stringify: function stringify(it, replacer, space) { var args = arraySlice(arguments); var result = apply(WRONG_SYMBOLS_CONVERSION ? stringifyWithSymbolsFix : $stringify, null, args); return ILL_FORMED_UNICODE && typeof result == "string" ? replace(result, tester, fixIllFormed) : result; } }); } }, { "../internals/array-slice": 117, "../internals/export": 149, "../internals/fails": 150, "../internals/function-apply": 152, "../internals/function-call": 155, "../internals/function-uncurry-this": 157, "../internals/get-built-in": 158, "../internals/is-array": 175, "../internals/is-callable": 176, "../internals/is-object": 180, "../internals/is-symbol": 183, "../internals/native-symbol": 191 }], 286: [function(require2, module3, exports3) { "use strict"; var DESCRIPTORS = require2("../internals/descriptors"); var global2 = require2("../internals/global"); var uncurryThis = require2("../internals/function-uncurry-this"); var isForced = require2("../internals/is-forced"); var redefine = require2("../internals/redefine"); var hasOwn = require2("../internals/has-own-property"); var inheritIfRequired = require2("../internals/inherit-if-required"); var isPrototypeOf = require2("../internals/object-is-prototype-of"); var isSymbol = require2("../internals/is-symbol"); var toPrimitive = require2("../internals/to-primitive"); var fails = require2("../internals/fails"); var getOwnPropertyNames = require2("../internals/object-get-own-property-names").f; var getOwnPropertyDescriptor = require2("../internals/object-get-own-property-descriptor").f; var defineProperty = require2("../internals/object-define-property").f; var thisNumberValue = require2("../internals/this-number-value"); var trim = require2("../internals/string-trim").trim; var NUMBER = "Number"; var NativeNumber = global2[NUMBER]; var NumberPrototype = NativeNumber.prototype; var TypeError2 = global2.TypeError; var arraySlice = uncurryThis("".slice); var charCodeAt = uncurryThis("".charCodeAt); var toNumeric = function(value) { var primValue = toPrimitive(value, "number"); return typeof primValue == "bigint" ? primValue : toNumber(primValue); }; var toNumber = function(argument) { var it = toPrimitive(argument, "number"); var first, third, radix, maxCode, digits, length, index, code; if (isSymbol(it)) throw TypeError2("Cannot convert a Symbol value to a number"); if (typeof it == "string" && it.length > 2) { it = trim(it); first = charCodeAt(it, 0); if (first === 43 || first === 45) { third = charCodeAt(it, 2); if (third === 88 || third === 120) return NaN; } else if (first === 48) { switch (charCodeAt(it, 1)) { case 66: case 98: radix = 2; maxCode = 49; break; case 79: case 111: radix = 8; maxCode = 55; break; default: return +it; } digits = arraySlice(it, 2); length = digits.length; for (index = 0; index < length; index++) { code = charCodeAt(digits, index); if (code < 48 || code > maxCode) return NaN; } return parseInt(digits, radix); } } return +it; }; if (isForced(NUMBER, !NativeNumber(" 0o1") || !NativeNumber("0b1") || NativeNumber("+0x1"))) { var NumberWrapper = function Number2(value) { var n = arguments.length < 1 ? 0 : NativeNumber(toNumeric(value)); var dummy = this; return isPrototypeOf(NumberPrototype, dummy) && fails(function() { thisNumberValue(dummy); }) ? inheritIfRequired(Object(n), dummy, NumberWrapper) : n; }; for (var keys = DESCRIPTORS ? getOwnPropertyNames(NativeNumber) : ( // ES3: "MAX_VALUE,MIN_VALUE,NaN,NEGATIVE_INFINITY,POSITIVE_INFINITY,EPSILON,MAX_SAFE_INTEGER,MIN_SAFE_INTEGER,isFinite,isInteger,isNaN,isSafeInteger,parseFloat,parseInt,fromString,range".split(",") ), j = 0, key; keys.length > j; j++) { if (hasOwn(NativeNumber, key = keys[j]) && !hasOwn(NumberWrapper, key)) { defineProperty(NumberWrapper, key, getOwnPropertyDescriptor(NativeNumber, key)); } } NumberWrapper.prototype = NumberPrototype; NumberPrototype.constructor = NumberWrapper; redefine(global2, NUMBER, NumberWrapper); } }, { "../internals/descriptors": 134, "../internals/fails": 150, "../internals/function-uncurry-this": 157, "../internals/global": 163, "../internals/has-own-property": 164, "../internals/inherit-if-required": 171, "../internals/is-forced": 178, "../internals/is-symbol": 183, "../internals/object-define-property": 198, "../internals/object-get-own-property-descriptor": 199, "../internals/object-get-own-property-names": 201, "../internals/object-is-prototype-of": 204, "../internals/redefine": 222, "../internals/string-trim": 241, "../internals/this-number-value": 244, "../internals/to-primitive": 253 }], 287: [function(require2, module3, exports3) { var $ = require2("../internals/export"); var assign = require2("../internals/object-assign"); $({ target: "Object", stat: true, forced: Object.assign !== assign }, { assign }); }, { "../internals/export": 149, "../internals/object-assign": 195 }], 288: [function(require2, module3, exports3) { var $ = require2("../internals/export"); var $entries = require2("../internals/object-to-array").entries; $({ target: "Object", stat: true }, { entries: function entries(O) { return $entries(O); } }); }, { "../internals/export": 149, "../internals/object-to-array": 209 }], 289: [function(require2, module3, exports3) { var $ = require2("../internals/export"); var NATIVE_SYMBOL = require2("../internals/native-symbol"); var fails = require2("../internals/fails"); var getOwnPropertySymbolsModule = require2("../internals/object-get-own-property-symbols"); var toObject = require2("../internals/to-object"); var FORCED = !NATIVE_SYMBOL || fails(function() { getOwnPropertySymbolsModule.f(1); }); $({ target: "Object", stat: true, forced: FORCED }, { getOwnPropertySymbols: function getOwnPropertySymbols(it) { var $getOwnPropertySymbols = getOwnPropertySymbolsModule.f; return $getOwnPropertySymbols ? $getOwnPropertySymbols(toObject(it)) : []; } }); }, { "../internals/export": 149, "../internals/fails": 150, "../internals/native-symbol": 191, "../internals/object-get-own-property-symbols": 202, "../internals/to-object": 250 }], 290: [function(require2, module3, exports3) { var $ = require2("../internals/export"); var toObject = require2("../internals/to-object"); var nativeKeys = require2("../internals/object-keys"); var fails = require2("../internals/fails"); var FAILS_ON_PRIMITIVES = fails(function() { nativeKeys(1); }); $({ target: "Object", stat: true, forced: FAILS_ON_PRIMITIVES }, { keys: function keys(it) { return nativeKeys(toObject(it)); } }); }, { "../internals/export": 149, "../internals/fails": 150, "../internals/object-keys": 206, "../internals/to-object": 250 }], 291: [function(require2, module3, exports3) { var TO_STRING_TAG_SUPPORT = require2("../internals/to-string-tag-support"); var redefine = require2("../internals/redefine"); var toString = require2("../internals/object-to-string"); if (!TO_STRING_TAG_SUPPORT) { redefine(Object.prototype, "toString", toString, { unsafe: true }); } }, { "../internals/object-to-string": 210, "../internals/redefine": 222, "../internals/to-string-tag-support": 255 }], 292: [function(require2, module3, exports3) { "use strict"; var $ = require2("../internals/export"); var call = require2("../internals/function-call"); var aCallable = require2("../internals/a-callable"); var newPromiseCapabilityModule = require2("../internals/new-promise-capability"); var perform = require2("../internals/perform"); var iterate = require2("../internals/iterate"); var PROMISE_STATICS_INCORRECT_ITERATION = require2("../internals/promise-statics-incorrect-iteration"); $({ target: "Promise", stat: true, forced: PROMISE_STATICS_INCORRECT_ITERATION }, { all: function all(iterable) { var C = this; var capability = newPromiseCapabilityModule.f(C); var resolve = capability.resolve; var reject = capability.reject; var result = perform(function() { var $promiseResolve = aCallable(C.resolve); var values = []; var counter = 0; var remaining = 1; iterate(iterable, function(promise) { var index = counter++; var alreadyCalled = false; remaining++; call($promiseResolve, C, promise).then(function(value) { if (alreadyCalled) return; alreadyCalled = true; values[index] = value; --remaining || resolve(values); }, reject); }); --remaining || resolve(values); }); if (result.error) reject(result.value); return capability.promise; } }); }, { "../internals/a-callable": 95, "../internals/export": 149, "../internals/function-call": 155, "../internals/iterate": 184, "../internals/new-promise-capability": 193, "../internals/perform": 214, "../internals/promise-statics-incorrect-iteration": 218 }], 293: [function(require2, module3, exports3) { "use strict"; var $ = require2("../internals/export"); var IS_PURE = require2("../internals/is-pure"); var FORCED_PROMISE_CONSTRUCTOR = require2("../internals/promise-constructor-detection").CONSTRUCTOR; var NativePromiseConstructor = require2("../internals/promise-native-constructor"); var getBuiltIn = require2("../internals/get-built-in"); var isCallable = require2("../internals/is-callable"); var redefine = require2("../internals/redefine"); var NativePromisePrototype = NativePromiseConstructor && NativePromiseConstructor.prototype; $({ target: "Promise", proto: true, forced: FORCED_PROMISE_CONSTRUCTOR, real: true }, { "catch": function(onRejected) { return this.then(void 0, onRejected); } }); if (!IS_PURE && isCallable(NativePromiseConstructor)) { var method = getBuiltIn("Promise").prototype["catch"]; if (NativePromisePrototype["catch"] !== method) { redefine(NativePromisePrototype, "catch", method, { unsafe: true }); } } }, { "../internals/export": 149, "../internals/get-built-in": 158, "../internals/is-callable": 176, "../internals/is-pure": 181, "../internals/promise-constructor-detection": 215, "../internals/promise-native-constructor": 216, "../internals/redefine": 222 }], 294: [function(require2, module3, exports3) { "use strict"; var $ = require2("../internals/export"); var IS_PURE = require2("../internals/is-pure"); var IS_NODE = require2("../internals/engine-is-node"); var global2 = require2("../internals/global"); var call = require2("../internals/function-call"); var redefine = require2("../internals/redefine"); var redefineAll = require2("../internals/redefine-all"); var setPrototypeOf = require2("../internals/object-set-prototype-of"); var setToStringTag = require2("../internals/set-to-string-tag"); var setSpecies = require2("../internals/set-species"); var aCallable = require2("../internals/a-callable"); var isCallable = require2("../internals/is-callable"); var isObject = require2("../internals/is-object"); var anInstance = require2("../internals/an-instance"); var speciesConstructor = require2("../internals/species-constructor"); var task = require2("../internals/task").set; var microtask = require2("../internals/microtask"); var hostReportErrors = require2("../internals/host-report-errors"); var perform = require2("../internals/perform"); var Queue = require2("../internals/queue"); var InternalStateModule = require2("../internals/internal-state"); var NativePromiseConstructor = require2("../internals/promise-native-constructor"); var PromiseConstructorDetection = require2("../internals/promise-constructor-detection"); var newPromiseCapabilityModule = require2("../internals/new-promise-capability"); var PROMISE = "Promise"; var FORCED_PROMISE_CONSTRUCTOR = PromiseConstructorDetection.CONSTRUCTOR; var NATIVE_PROMISE_REJECTION_EVENT = PromiseConstructorDetection.REJECTION_EVENT; var NATIVE_PROMISE_SUBCLASSING = PromiseConstructorDetection.SUBCLASSING; var getInternalPromiseState = InternalStateModule.getterFor(PROMISE); var setInternalState = InternalStateModule.set; var NativePromisePrototype = NativePromiseConstructor && NativePromiseConstructor.prototype; var PromiseConstructor = NativePromiseConstructor; var PromisePrototype = NativePromisePrototype; var TypeError2 = global2.TypeError; var document2 = global2.document; var process = global2.process; var newPromiseCapability = newPromiseCapabilityModule.f; var newGenericPromiseCapability = newPromiseCapability; var DISPATCH_EVENT = !!(document2 && document2.createEvent && global2.dispatchEvent); var UNHANDLED_REJECTION = "unhandledrejection"; var REJECTION_HANDLED = "rejectionhandled"; var PENDING = 0; var FULFILLED = 1; var REJECTED = 2; var HANDLED = 1; var UNHANDLED = 2; var Internal, OwnPromiseCapability, PromiseWrapper, nativeThen; var isThenable = function(it) { var then; return isObject(it) && isCallable(then = it.then) ? then : false; }; var callReaction = function(reaction, state) { var value = state.value; var ok = state.state == FULFILLED; var handler = ok ? reaction.ok : reaction.fail; var resolve = reaction.resolve; var reject = reaction.reject; var domain = reaction.domain; var result, then, exited; try { if (handler) { if (!ok) { if (state.rejection === UNHANDLED) onHandleUnhandled(state); state.rejection = HANDLED; } if (handler === true) result = value; else { if (domain) domain.enter(); result = handler(value); if (domain) { domain.exit(); exited = true; } } if (result === reaction.promise) { reject(TypeError2("Promise-chain cycle")); } else if (then = isThenable(result)) { call(then, result, resolve, reject); } else resolve(result); } else reject(value); } catch (error) { if (domain && !exited) domain.exit(); reject(error); } }; var notify = function(state, isReject) { if (state.notified) return; state.notified = true; microtask(function() { var reactions = state.reactions; var reaction; while (reaction = reactions.get()) { callReaction(reaction, state); } state.notified = false; if (isReject && !state.rejection) onUnhandled(state); }); }; var dispatchEvent = function(name, promise, reason) { var event, handler; if (DISPATCH_EVENT) { event = document2.createEvent("Event"); event.promise = promise; event.reason = reason; event.initEvent(name, false, true); global2.dispatchEvent(event); } else event = { promise, reason }; if (!NATIVE_PROMISE_REJECTION_EVENT && (handler = global2["on" + name])) handler(event); else if (name === UNHANDLED_REJECTION) hostReportErrors("Unhandled promise rejection", reason); }; var onUnhandled = function(state) { call(task, global2, function() { var promise = state.facade; var value = state.value; var IS_UNHANDLED = isUnhandled(state); var result; if (IS_UNHANDLED) { result = perform(function() { if (IS_NODE) { process.emit("unhandledRejection", value, promise); } else dispatchEvent(UNHANDLED_REJECTION, promise, value); }); state.rejection = IS_NODE || isUnhandled(state) ? UNHANDLED : HANDLED; if (result.error) throw result.value; } }); }; var isUnhandled = function(state) { return state.rejection !== HANDLED && !state.parent; }; var onHandleUnhandled = function(state) { call(task, global2, function() { var promise = state.facade; if (IS_NODE) { process.emit("rejectionHandled", promise); } else dispatchEvent(REJECTION_HANDLED, promise, state.value); }); }; var bind = function(fn, state, unwrap) { return function(value) { fn(state, value, unwrap); }; }; var internalReject = function(state, value, unwrap) { if (state.done) return; state.done = true; if (unwrap) state = unwrap; state.value = value; state.state = REJECTED; notify(state, true); }; var internalResolve = function(state, value, unwrap) { if (state.done) return; state.done = true; if (unwrap) state = unwrap; try { if (state.facade === value) throw TypeError2("Promise can't be resolved itself"); var then = isThenable(value); if (then) { microtask(function() { var wrapper = { done: false }; try { call( then, value, bind(internalResolve, wrapper, state), bind(internalReject, wrapper, state) ); } catch (error) { internalReject(wrapper, error, state); } }); } else { state.value = value; state.state = FULFILLED; notify(state, false); } } catch (error) { internalReject({ done: false }, error, state); } }; if (FORCED_PROMISE_CONSTRUCTOR) { PromiseConstructor = function Promise2(executor) { anInstance(this, PromisePrototype); aCallable(executor); call(Internal, this); var state = getInternalPromiseState(this); try { executor(bind(internalResolve, state), bind(internalReject, state)); } catch (error) { internalReject(state, error); } }; PromisePrototype = PromiseConstructor.prototype; Internal = function Promise2(executor) { setInternalState(this, { type: PROMISE, done: false, notified: false, parent: false, reactions: new Queue(), rejection: false, state: PENDING, value: void 0 }); }; Internal.prototype = redefineAll(PromisePrototype, { // `Promise.prototype.then` method // https://tc39.es/ecma262/#sec-promise.prototype.then // eslint-disable-next-line unicorn/no-thenable -- safe then: function then(onFulfilled, onRejected) { var state = getInternalPromiseState(this); var reaction = newPromiseCapability(speciesConstructor(this, PromiseConstructor)); state.parent = true; reaction.ok = isCallable(onFulfilled) ? onFulfilled : true; reaction.fail = isCallable(onRejected) && onRejected; reaction.domain = IS_NODE ? process.domain : void 0; if (state.state == PENDING) state.reactions.add(reaction); else microtask(function() { callReaction(reaction, state); }); return reaction.promise; } }); OwnPromiseCapability = function() { var promise = new Internal(); var state = getInternalPromiseState(promise); this.promise = promise; this.resolve = bind(internalResolve, state); this.reject = bind(internalReject, state); }; newPromiseCapabilityModule.f = newPromiseCapability = function(C) { return C === PromiseConstructor || C === PromiseWrapper ? new OwnPromiseCapability(C) : newGenericPromiseCapability(C); }; if (!IS_PURE && isCallable(NativePromiseConstructor) && NativePromisePrototype !== Object.prototype) { nativeThen = NativePromisePrototype.then; if (!NATIVE_PROMISE_SUBCLASSING) { redefine(NativePromisePrototype, "then", function then(onFulfilled, onRejected) { var that = this; return new PromiseConstructor(function(resolve, reject) { call(nativeThen, that, resolve, reject); }).then(onFulfilled, onRejected); }, { unsafe: true }); } try { delete NativePromisePrototype.constructor; } catch (error) { } if (setPrototypeOf) { setPrototypeOf(NativePromisePrototype, PromisePrototype); } } } $({ global: true, wrap: true, forced: FORCED_PROMISE_CONSTRUCTOR }, { Promise: PromiseConstructor }); setToStringTag(PromiseConstructor, PROMISE, false, true); setSpecies(PROMISE); }, { "../internals/a-callable": 95, "../internals/an-instance": 100, "../internals/engine-is-node": 143, "../internals/export": 149, "../internals/function-call": 155, "../internals/global": 163, "../internals/host-report-errors": 166, "../internals/internal-state": 173, "../internals/is-callable": 176, "../internals/is-object": 180, "../internals/is-pure": 181, "../internals/microtask": 189, "../internals/new-promise-capability": 193, "../internals/object-set-prototype-of": 208, "../internals/perform": 214, "../internals/promise-constructor-detection": 215, "../internals/promise-native-constructor": 216, "../internals/queue": 220, "../internals/redefine": 222, "../internals/redefine-all": 221, "../internals/set-species": 233, "../internals/set-to-string-tag": 234, "../internals/species-constructor": 238, "../internals/task": 243 }], 295: [function(require2, module3, exports3) { require2("../modules/es.promise.constructor"); require2("../modules/es.promise.all"); require2("../modules/es.promise.catch"); require2("../modules/es.promise.race"); require2("../modules/es.promise.reject"); require2("../modules/es.promise.resolve"); }, { "../modules/es.promise.all": 292, "../modules/es.promise.catch": 293, "../modules/es.promise.constructor": 294, "../modules/es.promise.race": 296, "../modules/es.promise.reject": 297, "../modules/es.promise.resolve": 298 }], 296: [function(require2, module3, exports3) { "use strict"; var $ = require2("../internals/export"); var call = require2("../internals/function-call"); var aCallable = require2("../internals/a-callable"); var newPromiseCapabilityModule = require2("../internals/new-promise-capability"); var perform = require2("../internals/perform"); var iterate = require2("../internals/iterate"); var PROMISE_STATICS_INCORRECT_ITERATION = require2("../internals/promise-statics-incorrect-iteration"); $({ target: "Promise", stat: true, forced: PROMISE_STATICS_INCORRECT_ITERATION }, { race: function race(iterable) { var C = this; var capability = newPromiseCapabilityModule.f(C); var reject = capability.reject; var result = perform(function() { var $promiseResolve = aCallable(C.resolve); iterate(iterable, function(promise) { call($promiseResolve, C, promise).then(capability.resolve, reject); }); }); if (result.error) reject(result.value); return capability.promise; } }); }, { "../internals/a-callable": 95, "../internals/export": 149, "../internals/function-call": 155, "../internals/iterate": 184, "../internals/new-promise-capability": 193, "../internals/perform": 214, "../internals/promise-statics-incorrect-iteration": 218 }], 297: [function(require2, module3, exports3) { "use strict"; var $ = require2("../internals/export"); var call = require2("../internals/function-call"); var newPromiseCapabilityModule = require2("../internals/new-promise-capability"); var FORCED_PROMISE_CONSTRUCTOR = require2("../internals/promise-constructor-detection").CONSTRUCTOR; $({ target: "Promise", stat: true, forced: FORCED_PROMISE_CONSTRUCTOR }, { reject: function reject(r) { var capability = newPromiseCapabilityModule.f(this); call(capability.reject, void 0, r); return capability.promise; } }); }, { "../internals/export": 149, "../internals/function-call": 155, "../internals/new-promise-capability": 193, "../internals/promise-constructor-detection": 215 }], 298: [function(require2, module3, exports3) { "use strict"; var $ = require2("../internals/export"); var getBuiltIn = require2("../internals/get-built-in"); var IS_PURE = require2("../internals/is-pure"); var NativePromiseConstructor = require2("../internals/promise-native-constructor"); var FORCED_PROMISE_CONSTRUCTOR = require2("../internals/promise-constructor-detection").CONSTRUCTOR; var promiseResolve = require2("../internals/promise-resolve"); var PromiseConstructorWrapper = getBuiltIn("Promise"); var CHECK_WRAPPER = IS_PURE && !FORCED_PROMISE_CONSTRUCTOR; $({ target: "Promise", stat: true, forced: IS_PURE || FORCED_PROMISE_CONSTRUCTOR }, { resolve: function resolve(x) { return promiseResolve(CHECK_WRAPPER && this === PromiseConstructorWrapper ? NativePromiseConstructor : this, x); } }); }, { "../internals/export": 149, "../internals/get-built-in": 158, "../internals/is-pure": 181, "../internals/promise-constructor-detection": 215, "../internals/promise-native-constructor": 216, "../internals/promise-resolve": 217 }], 299: [function(require2, module3, exports3) { var DESCRIPTORS = require2("../internals/descriptors"); var global2 = require2("../internals/global"); var uncurryThis = require2("../internals/function-uncurry-this"); var isForced = require2("../internals/is-forced"); var inheritIfRequired = require2("../internals/inherit-if-required"); var createNonEnumerableProperty = require2("../internals/create-non-enumerable-property"); var getOwnPropertyNames = require2("../internals/object-get-own-property-names").f; var isPrototypeOf = require2("../internals/object-is-prototype-of"); var isRegExp = require2("../internals/is-regexp"); var toString = require2("../internals/to-string"); var getRegExpFlags = require2("../internals/regexp-get-flags"); var stickyHelpers = require2("../internals/regexp-sticky-helpers"); var proxyAccessor = require2("../internals/proxy-accessor"); var redefine = require2("../internals/redefine"); var fails = require2("../internals/fails"); var hasOwn = require2("../internals/has-own-property"); var enforceInternalState = require2("../internals/internal-state").enforce; var setSpecies = require2("../internals/set-species"); var wellKnownSymbol = require2("../internals/well-known-symbol"); var UNSUPPORTED_DOT_ALL = require2("../internals/regexp-unsupported-dot-all"); var UNSUPPORTED_NCG = require2("../internals/regexp-unsupported-ncg"); var MATCH = wellKnownSymbol("match"); var NativeRegExp = global2.RegExp; var RegExpPrototype = NativeRegExp.prototype; var SyntaxError2 = global2.SyntaxError; var exec = uncurryThis(RegExpPrototype.exec); var charAt = uncurryThis("".charAt); var replace = uncurryThis("".replace); var stringIndexOf = uncurryThis("".indexOf); var stringSlice = uncurryThis("".slice); var IS_NCG = /^\?<[^\s\d!#%&*+<=>@^][^\s!#%&*+<=>@^]*>/; var re1 = /a/g; var re2 = /a/g; var CORRECT_NEW = new NativeRegExp(re1) !== re1; var MISSED_STICKY = stickyHelpers.MISSED_STICKY; var UNSUPPORTED_Y = stickyHelpers.UNSUPPORTED_Y; var BASE_FORCED = DESCRIPTORS && (!CORRECT_NEW || MISSED_STICKY || UNSUPPORTED_DOT_ALL || UNSUPPORTED_NCG || fails(function() { re2[MATCH] = false; return NativeRegExp(re1) != re1 || NativeRegExp(re2) == re2 || NativeRegExp(re1, "i") != "/a/i"; })); var handleDotAll = function(string) { var length = string.length; var index2 = 0; var result = ""; var brackets = false; var chr; for (; index2 <= length; index2++) { chr = charAt(string, index2); if (chr === "\\") { result += chr + charAt(string, ++index2); continue; } if (!brackets && chr === ".") { result += "[\\s\\S]"; } else { if (chr === "[") { brackets = true; } else if (chr === "]") { brackets = false; } result += chr; } } return result; }; var handleNCG = function(string) { var length = string.length; var index2 = 0; var result = ""; var named = []; var names = {}; var brackets = false; var ncg = false; var groupid = 0; var groupname = ""; var chr; for (; index2 <= length; index2++) { chr = charAt(string, index2); if (chr === "\\") { chr = chr + charAt(string, ++index2); } else if (chr === "]") { brackets = false; } else if (!brackets) switch (true) { case chr === "[": brackets = true; break; case chr === "(": if (exec(IS_NCG, stringSlice(string, index2 + 1))) { index2 += 2; ncg = true; } result += chr; groupid++; continue; case (chr === ">" && ncg): if (groupname === "" || hasOwn(names, groupname)) { throw new SyntaxError2("Invalid capture group name"); } names[groupname] = true; named[named.length] = [groupname, groupid]; ncg = false; groupname = ""; continue; } if (ncg) groupname += chr; else result += chr; } return [result, named]; }; if (isForced("RegExp", BASE_FORCED)) { var RegExpWrapper = function RegExp2(pattern, flags) { var thisIsRegExp = isPrototypeOf(RegExpPrototype, this); var patternIsRegExp = isRegExp(pattern); var flagsAreUndefined = flags === void 0; var groups = []; var rawPattern = pattern; var rawFlags, dotAll, sticky, handled, result, state; if (!thisIsRegExp && patternIsRegExp && flagsAreUndefined && pattern.constructor === RegExpWrapper) { return pattern; } if (patternIsRegExp || isPrototypeOf(RegExpPrototype, pattern)) { pattern = pattern.source; if (flagsAreUndefined) flags = getRegExpFlags(rawPattern); } pattern = pattern === void 0 ? "" : toString(pattern); flags = flags === void 0 ? "" : toString(flags); rawPattern = pattern; if (UNSUPPORTED_DOT_ALL && "dotAll" in re1) { dotAll = !!flags && stringIndexOf(flags, "s") > -1; if (dotAll) flags = replace(flags, /s/g, ""); } rawFlags = flags; if (MISSED_STICKY && "sticky" in re1) { sticky = !!flags && stringIndexOf(flags, "y") > -1; if (sticky && UNSUPPORTED_Y) flags = replace(flags, /y/g, ""); } if (UNSUPPORTED_NCG) { handled = handleNCG(pattern); pattern = handled[0]; groups = handled[1]; } result = inheritIfRequired(NativeRegExp(pattern, flags), thisIsRegExp ? this : RegExpPrototype, RegExpWrapper); if (dotAll || sticky || groups.length) { state = enforceInternalState(result); if (dotAll) { state.dotAll = true; state.raw = RegExpWrapper(handleDotAll(pattern), rawFlags); } if (sticky) state.sticky = true; if (groups.length) state.groups = groups; } if (pattern !== rawPattern) try { createNonEnumerableProperty(result, "source", rawPattern === "" ? "(?:)" : rawPattern); } catch (error) { } return result; }; for (var keys = getOwnPropertyNames(NativeRegExp), index = 0; keys.length > index; ) { proxyAccessor(RegExpWrapper, NativeRegExp, keys[index++]); } RegExpPrototype.constructor = RegExpWrapper; RegExpWrapper.prototype = RegExpPrototype; redefine(global2, "RegExp", RegExpWrapper); } setSpecies("RegExp"); }, { "../internals/create-non-enumerable-property": 129, "../internals/descriptors": 134, "../internals/fails": 150, "../internals/function-uncurry-this": 157, "../internals/global": 163, "../internals/has-own-property": 164, "../internals/inherit-if-required": 171, "../internals/internal-state": 173, "../internals/is-forced": 178, "../internals/is-regexp": 182, "../internals/object-get-own-property-names": 201, "../internals/object-is-prototype-of": 204, "../internals/proxy-accessor": 219, "../internals/redefine": 222, "../internals/regexp-get-flags": 226, "../internals/regexp-sticky-helpers": 227, "../internals/regexp-unsupported-dot-all": 228, "../internals/regexp-unsupported-ncg": 229, "../internals/set-species": 233, "../internals/to-string": 256, "../internals/well-known-symbol": 268 }], 300: [function(require2, module3, exports3) { "use strict"; var $ = require2("../internals/export"); var exec = require2("../internals/regexp-exec"); $({ target: "RegExp", proto: true, forced: /./.exec !== exec }, { exec }); }, { "../internals/export": 149, "../internals/regexp-exec": 224 }], 301: [function(require2, module3, exports3) { "use strict"; var PROPER_FUNCTION_NAME = require2("../internals/function-name").PROPER; var redefine = require2("../internals/redefine"); var anObject = require2("../internals/an-object"); var $toString = require2("../internals/to-string"); var fails = require2("../internals/fails"); var getRegExpFlags = require2("../internals/regexp-get-flags"); var TO_STRING = "toString"; var RegExpPrototype = RegExp.prototype; var n$ToString = RegExpPrototype[TO_STRING]; var NOT_GENERIC = fails(function() { return n$ToString.call({ source: "a", flags: "b" }) != "/a/b"; }); var INCORRECT_NAME = PROPER_FUNCTION_NAME && n$ToString.name != TO_STRING; if (NOT_GENERIC || INCORRECT_NAME) { redefine(RegExp.prototype, TO_STRING, function toString() { var R = anObject(this); var pattern = $toString(R.source); var flags = $toString(getRegExpFlags(R)); return "/" + pattern + "/" + flags; }, { unsafe: true }); } }, { "../internals/an-object": 101, "../internals/fails": 150, "../internals/function-name": 156, "../internals/redefine": 222, "../internals/regexp-get-flags": 226, "../internals/to-string": 256 }], 302: [function(require2, module3, exports3) { "use strict"; var $ = require2("../internals/export"); var uncurryThis = require2("../internals/function-uncurry-this"); var notARegExp = require2("../internals/not-a-regexp"); var requireObjectCoercible = require2("../internals/require-object-coercible"); var toString = require2("../internals/to-string"); var correctIsRegExpLogic = require2("../internals/correct-is-regexp-logic"); var stringIndexOf = uncurryThis("".indexOf); $({ target: "String", proto: true, forced: !correctIsRegExpLogic("includes") }, { includes: function includes(searchString) { return !!~stringIndexOf( toString(requireObjectCoercible(this)), toString(notARegExp(searchString)), arguments.length > 1 ? arguments[1] : void 0 ); } }); }, { "../internals/correct-is-regexp-logic": 126, "../internals/export": 149, "../internals/function-uncurry-this": 157, "../internals/not-a-regexp": 194, "../internals/require-object-coercible": 230, "../internals/to-string": 256 }], 303: [function(require2, module3, exports3) { "use strict"; var charAt = require2("../internals/string-multibyte").charAt; var toString = require2("../internals/to-string"); var InternalStateModule = require2("../internals/internal-state"); var defineIterator = require2("../internals/define-iterator"); var STRING_ITERATOR = "String Iterator"; var setInternalState = InternalStateModule.set; var getInternalState = InternalStateModule.getterFor(STRING_ITERATOR); defineIterator(String, "String", function(iterated) { setInternalState(this, { type: STRING_ITERATOR, string: toString(iterated), index: 0 }); }, function next() { var state = getInternalState(this); var string = state.string; var index = state.index; var point; if (index >= string.length) return { value: void 0, done: true }; point = charAt(string, index); state.index += point.length; return { value: point, done: false }; }); }, { "../internals/define-iterator": 132, "../internals/internal-state": 173, "../internals/string-multibyte": 239, "../internals/to-string": 256 }], 304: [function(require2, module3, exports3) { "use strict"; var call = require2("../internals/function-call"); var fixRegExpWellKnownSymbolLogic = require2("../internals/fix-regexp-well-known-symbol-logic"); var anObject = require2("../internals/an-object"); var toLength = require2("../internals/to-length"); var toString = require2("../internals/to-string"); var requireObjectCoercible = require2("../internals/require-object-coercible"); var getMethod = require2("../internals/get-method"); var advanceStringIndex = require2("../internals/advance-string-index"); var regExpExec = require2("../internals/regexp-exec-abstract"); fixRegExpWellKnownSymbolLogic("match", function(MATCH, nativeMatch, maybeCallNative) { return [ // `String.prototype.match` method // https://tc39.es/ecma262/#sec-string.prototype.match function match(regexp) { var O = requireObjectCoercible(this); var matcher = regexp == void 0 ? void 0 : getMethod(regexp, MATCH); return matcher ? call(matcher, regexp, O) : new RegExp(regexp)[MATCH](toString(O)); }, // `RegExp.prototype[@@match]` method // https://tc39.es/ecma262/#sec-regexp.prototype-@@match function(string) { var rx = anObject(this); var S = toString(string); var res = maybeCallNative(nativeMatch, rx, S); if (res.done) return res.value; if (!rx.global) return regExpExec(rx, S); var fullUnicode = rx.unicode; rx.lastIndex = 0; var A = []; var n = 0; var result; while ((result = regExpExec(rx, S)) !== null) { var matchStr = toString(result[0]); A[n] = matchStr; if (matchStr === "") rx.lastIndex = advanceStringIndex(S, toLength(rx.lastIndex), fullUnicode); n++; } return n === 0 ? null : A; } ]; }); }, { "../internals/advance-string-index": 99, "../internals/an-object": 101, "../internals/fix-regexp-well-known-symbol-logic": 151, "../internals/function-call": 155, "../internals/get-method": 161, "../internals/regexp-exec-abstract": 223, "../internals/require-object-coercible": 230, "../internals/to-length": 249, "../internals/to-string": 256 }], 305: [function(require2, module3, exports3) { "use strict"; var apply = require2("../internals/function-apply"); var call = require2("../internals/function-call"); var uncurryThis = require2("../internals/function-uncurry-this"); var fixRegExpWellKnownSymbolLogic = require2("../internals/fix-regexp-well-known-symbol-logic"); var fails = require2("../internals/fails"); var anObject = require2("../internals/an-object"); var isCallable = require2("../internals/is-callable"); var toIntegerOrInfinity = require2("../internals/to-integer-or-infinity"); var toLength = require2("../internals/to-length"); var toString = require2("../internals/to-string"); var requireObjectCoercible = require2("../internals/require-object-coercible"); var advanceStringIndex = require2("../internals/advance-string-index"); var getMethod = require2("../internals/get-method"); var getSubstitution = require2("../internals/get-substitution"); var regExpExec = require2("../internals/regexp-exec-abstract"); var wellKnownSymbol = require2("../internals/well-known-symbol"); var REPLACE = wellKnownSymbol("replace"); var max = Math.max; var min = Math.min; var concat = uncurryThis([].concat); var push = uncurryThis([].push); var stringIndexOf = uncurryThis("".indexOf); var stringSlice = uncurryThis("".slice); var maybeToString = function(it) { return it === void 0 ? it : String(it); }; var REPLACE_KEEPS_$0 = function() { return "a".replace(/./, "$0") === "$0"; }(); var REGEXP_REPLACE_SUBSTITUTES_UNDEFINED_CAPTURE = function() { if (/./[REPLACE]) { return /./[REPLACE]("a", "$0") === ""; } return false; }(); var REPLACE_SUPPORTS_NAMED_GROUPS = !fails(function() { var re = /./; re.exec = function() { var result = []; result.groups = { a: "7" }; return result; }; return "".replace(re, "$") !== "7"; }); fixRegExpWellKnownSymbolLogic("replace", function(_, nativeReplace, maybeCallNative) { var UNSAFE_SUBSTITUTE = REGEXP_REPLACE_SUBSTITUTES_UNDEFINED_CAPTURE ? "$" : "$0"; return [ // `String.prototype.replace` method // https://tc39.es/ecma262/#sec-string.prototype.replace function replace(searchValue, replaceValue) { var O = requireObjectCoercible(this); var replacer = searchValue == void 0 ? void 0 : getMethod(searchValue, REPLACE); return replacer ? call(replacer, searchValue, O, replaceValue) : call(nativeReplace, toString(O), searchValue, replaceValue); }, // `RegExp.prototype[@@replace]` method // https://tc39.es/ecma262/#sec-regexp.prototype-@@replace function(string, replaceValue) { var rx = anObject(this); var S = toString(string); if (typeof replaceValue == "string" && stringIndexOf(replaceValue, UNSAFE_SUBSTITUTE) === -1 && stringIndexOf(replaceValue, "$<") === -1) { var res = maybeCallNative(nativeReplace, rx, S, replaceValue); if (res.done) return res.value; } var functionalReplace = isCallable(replaceValue); if (!functionalReplace) replaceValue = toString(replaceValue); var global2 = rx.global; if (global2) { var fullUnicode = rx.unicode; rx.lastIndex = 0; } var results = []; while (true) { var result = regExpExec(rx, S); if (result === null) break; push(results, result); if (!global2) break; var matchStr = toString(result[0]); if (matchStr === "") rx.lastIndex = advanceStringIndex(S, toLength(rx.lastIndex), fullUnicode); } var accumulatedResult = ""; var nextSourcePosition = 0; for (var i = 0; i < results.length; i++) { result = results[i]; var matched = toString(result[0]); var position = max(min(toIntegerOrInfinity(result.index), S.length), 0); var captures = []; for (var j = 1; j < result.length; j++) push(captures, maybeToString(result[j])); var namedCaptures = result.groups; if (functionalReplace) { var replacerArgs = concat([matched], captures, position, S); if (namedCaptures !== void 0) push(replacerArgs, namedCaptures); var replacement = toString(apply(replaceValue, void 0, replacerArgs)); } else { replacement = getSubstitution(matched, S, position, captures, namedCaptures, replaceValue); } if (position >= nextSourcePosition) { accumulatedResult += stringSlice(S, nextSourcePosition, position) + replacement; nextSourcePosition = position + matched.length; } } return accumulatedResult + stringSlice(S, nextSourcePosition); } ]; }, !REPLACE_SUPPORTS_NAMED_GROUPS || !REPLACE_KEEPS_$0 || REGEXP_REPLACE_SUBSTITUTES_UNDEFINED_CAPTURE); }, { "../internals/advance-string-index": 99, "../internals/an-object": 101, "../internals/fails": 150, "../internals/fix-regexp-well-known-symbol-logic": 151, "../internals/function-apply": 152, "../internals/function-call": 155, "../internals/function-uncurry-this": 157, "../internals/get-method": 161, "../internals/get-substitution": 162, "../internals/is-callable": 176, "../internals/regexp-exec-abstract": 223, "../internals/require-object-coercible": 230, "../internals/to-integer-or-infinity": 248, "../internals/to-length": 249, "../internals/to-string": 256, "../internals/well-known-symbol": 268 }], 306: [function(require2, module3, exports3) { "use strict"; var call = require2("../internals/function-call"); var fixRegExpWellKnownSymbolLogic = require2("../internals/fix-regexp-well-known-symbol-logic"); var anObject = require2("../internals/an-object"); var requireObjectCoercible = require2("../internals/require-object-coercible"); var sameValue = require2("../internals/same-value"); var toString = require2("../internals/to-string"); var getMethod = require2("../internals/get-method"); var regExpExec = require2("../internals/regexp-exec-abstract"); fixRegExpWellKnownSymbolLogic("search", function(SEARCH, nativeSearch, maybeCallNative) { return [ // `String.prototype.search` method // https://tc39.es/ecma262/#sec-string.prototype.search function search(regexp) { var O = requireObjectCoercible(this); var searcher = regexp == void 0 ? void 0 : getMethod(regexp, SEARCH); return searcher ? call(searcher, regexp, O) : new RegExp(regexp)[SEARCH](toString(O)); }, // `RegExp.prototype[@@search]` method // https://tc39.es/ecma262/#sec-regexp.prototype-@@search function(string) { var rx = anObject(this); var S = toString(string); var res = maybeCallNative(nativeSearch, rx, S); if (res.done) return res.value; var previousLastIndex = rx.lastIndex; if (!sameValue(previousLastIndex, 0)) rx.lastIndex = 0; var result = regExpExec(rx, S); if (!sameValue(rx.lastIndex, previousLastIndex)) rx.lastIndex = previousLastIndex; return result === null ? -1 : result.index; } ]; }); }, { "../internals/an-object": 101, "../internals/fix-regexp-well-known-symbol-logic": 151, "../internals/function-call": 155, "../internals/get-method": 161, "../internals/regexp-exec-abstract": 223, "../internals/require-object-coercible": 230, "../internals/same-value": 231, "../internals/to-string": 256 }], 307: [function(require2, module3, exports3) { "use strict"; var apply = require2("../internals/function-apply"); var call = require2("../internals/function-call"); var uncurryThis = require2("../internals/function-uncurry-this"); var fixRegExpWellKnownSymbolLogic = require2("../internals/fix-regexp-well-known-symbol-logic"); var isRegExp = require2("../internals/is-regexp"); var anObject = require2("../internals/an-object"); var requireObjectCoercible = require2("../internals/require-object-coercible"); var speciesConstructor = require2("../internals/species-constructor"); var advanceStringIndex = require2("../internals/advance-string-index"); var toLength = require2("../internals/to-length"); var toString = require2("../internals/to-string"); var getMethod = require2("../internals/get-method"); var arraySlice = require2("../internals/array-slice-simple"); var callRegExpExec = require2("../internals/regexp-exec-abstract"); var regexpExec = require2("../internals/regexp-exec"); var stickyHelpers = require2("../internals/regexp-sticky-helpers"); var fails = require2("../internals/fails"); var UNSUPPORTED_Y = stickyHelpers.UNSUPPORTED_Y; var MAX_UINT32 = 4294967295; var min = Math.min; var $push = [].push; var exec = uncurryThis(/./.exec); var push = uncurryThis($push); var stringSlice = uncurryThis("".slice); var SPLIT_WORKS_WITH_OVERWRITTEN_EXEC = !fails(function() { var re = /(?:)/; var originalExec = re.exec; re.exec = function() { return originalExec.apply(this, arguments); }; var result = "ab".split(re); return result.length !== 2 || result[0] !== "a" || result[1] !== "b"; }); fixRegExpWellKnownSymbolLogic("split", function(SPLIT, nativeSplit, maybeCallNative) { var internalSplit; if ("abbc".split(/(b)*/)[1] == "c" || // eslint-disable-next-line regexp/no-empty-group -- required for testing "test".split(/(?:)/, -1).length != 4 || "ab".split(/(?:ab)*/).length != 2 || ".".split(/(.?)(.?)/).length != 4 || // eslint-disable-next-line regexp/no-empty-capturing-group, regexp/no-empty-group -- required for testing ".".split(/()()/).length > 1 || "".split(/.?/).length) { internalSplit = function(separator, limit) { var string = toString(requireObjectCoercible(this)); var lim = limit === void 0 ? MAX_UINT32 : limit >>> 0; if (lim === 0) return []; if (separator === void 0) return [string]; if (!isRegExp(separator)) { return call(nativeSplit, string, separator, lim); } var output = []; var flags = (separator.ignoreCase ? "i" : "") + (separator.multiline ? "m" : "") + (separator.unicode ? "u" : "") + (separator.sticky ? "y" : ""); var lastLastIndex = 0; var separatorCopy = new RegExp(separator.source, flags + "g"); var match, lastIndex, lastLength; while (match = call(regexpExec, separatorCopy, string)) { lastIndex = separatorCopy.lastIndex; if (lastIndex > lastLastIndex) { push(output, stringSlice(string, lastLastIndex, match.index)); if (match.length > 1 && match.index < string.length) apply($push, output, arraySlice(match, 1)); lastLength = match[0].length; lastLastIndex = lastIndex; if (output.length >= lim) break; } if (separatorCopy.lastIndex === match.index) separatorCopy.lastIndex++; } if (lastLastIndex === string.length) { if (lastLength || !exec(separatorCopy, "")) push(output, ""); } else push(output, stringSlice(string, lastLastIndex)); return output.length > lim ? arraySlice(output, 0, lim) : output; }; } else if ("0".split(void 0, 0).length) { internalSplit = function(separator, limit) { return separator === void 0 && limit === 0 ? [] : call(nativeSplit, this, separator, limit); }; } else internalSplit = nativeSplit; return [ // `String.prototype.split` method // https://tc39.es/ecma262/#sec-string.prototype.split function split(separator, limit) { var O = requireObjectCoercible(this); var splitter = separator == void 0 ? void 0 : getMethod(separator, SPLIT); return splitter ? call(splitter, separator, O, limit) : call(internalSplit, toString(O), separator, limit); }, // `RegExp.prototype[@@split]` method // https://tc39.es/ecma262/#sec-regexp.prototype-@@split // // NOTE: This cannot be properly polyfilled in engines that don't support // the 'y' flag. function(string, limit) { var rx = anObject(this); var S = toString(string); var res = maybeCallNative(internalSplit, rx, S, limit, internalSplit !== nativeSplit); if (res.done) return res.value; var C = speciesConstructor(rx, RegExp); var unicodeMatching = rx.unicode; var flags = (rx.ignoreCase ? "i" : "") + (rx.multiline ? "m" : "") + (rx.unicode ? "u" : "") + (UNSUPPORTED_Y ? "g" : "y"); var splitter = new C(UNSUPPORTED_Y ? "^(?:" + rx.source + ")" : rx, flags); var lim = limit === void 0 ? MAX_UINT32 : limit >>> 0; if (lim === 0) return []; if (S.length === 0) return callRegExpExec(splitter, S) === null ? [S] : []; var p = 0; var q = 0; var A = []; while (q < S.length) { splitter.lastIndex = UNSUPPORTED_Y ? 0 : q; var z = callRegExpExec(splitter, UNSUPPORTED_Y ? stringSlice(S, q) : S); var e; if (z === null || (e = min(toLength(splitter.lastIndex + (UNSUPPORTED_Y ? q : 0)), S.length)) === p) { q = advanceStringIndex(S, q, unicodeMatching); } else { push(A, stringSlice(S, p, q)); if (A.length === lim) return A; for (var i = 1; i <= z.length - 1; i++) { push(A, z[i]); if (A.length === lim) return A; } q = p = e; } } push(A, stringSlice(S, p)); return A; } ]; }, !SPLIT_WORKS_WITH_OVERWRITTEN_EXEC, UNSUPPORTED_Y); }, { "../internals/advance-string-index": 99, "../internals/an-object": 101, "../internals/array-slice-simple": 116, "../internals/fails": 150, "../internals/fix-regexp-well-known-symbol-logic": 151, "../internals/function-apply": 152, "../internals/function-call": 155, "../internals/function-uncurry-this": 157, "../internals/get-method": 161, "../internals/is-regexp": 182, "../internals/regexp-exec": 224, "../internals/regexp-exec-abstract": 223, "../internals/regexp-sticky-helpers": 227, "../internals/require-object-coercible": 230, "../internals/species-constructor": 238, "../internals/to-length": 249, "../internals/to-string": 256 }], 308: [function(require2, module3, exports3) { "use strict"; var $ = require2("../internals/export"); var $trim = require2("../internals/string-trim").trim; var forcedStringTrimMethod = require2("../internals/string-trim-forced"); $({ target: "String", proto: true, forced: forcedStringTrimMethod("trim") }, { trim: function trim() { return $trim(this); } }); }, { "../internals/export": 149, "../internals/string-trim": 241, "../internals/string-trim-forced": 240 }], 309: [function(require2, module3, exports3) { "use strict"; var $ = require2("../internals/export"); var global2 = require2("../internals/global"); var call = require2("../internals/function-call"); var uncurryThis = require2("../internals/function-uncurry-this"); var IS_PURE = require2("../internals/is-pure"); var DESCRIPTORS = require2("../internals/descriptors"); var NATIVE_SYMBOL = require2("../internals/native-symbol"); var fails = require2("../internals/fails"); var hasOwn = require2("../internals/has-own-property"); var isPrototypeOf = require2("../internals/object-is-prototype-of"); var anObject = require2("../internals/an-object"); var toIndexedObject = require2("../internals/to-indexed-object"); var toPropertyKey = require2("../internals/to-property-key"); var $toString = require2("../internals/to-string"); var createPropertyDescriptor = require2("../internals/create-property-descriptor"); var nativeObjectCreate = require2("../internals/object-create"); var objectKeys = require2("../internals/object-keys"); var getOwnPropertyNamesModule = require2("../internals/object-get-own-property-names"); var getOwnPropertyNamesExternal = require2("../internals/object-get-own-property-names-external"); var getOwnPropertySymbolsModule = require2("../internals/object-get-own-property-symbols"); var getOwnPropertyDescriptorModule = require2("../internals/object-get-own-property-descriptor"); var definePropertyModule = require2("../internals/object-define-property"); var definePropertiesModule = require2("../internals/object-define-properties"); var propertyIsEnumerableModule = require2("../internals/object-property-is-enumerable"); var redefine = require2("../internals/redefine"); var shared = require2("../internals/shared"); var sharedKey = require2("../internals/shared-key"); var hiddenKeys = require2("../internals/hidden-keys"); var uid = require2("../internals/uid"); var wellKnownSymbol = require2("../internals/well-known-symbol"); var wrappedWellKnownSymbolModule = require2("../internals/well-known-symbol-wrapped"); var defineWellKnownSymbol = require2("../internals/define-well-known-symbol"); var defineSymbolToPrimitive = require2("../internals/symbol-define-to-primitive"); var setToStringTag = require2("../internals/set-to-string-tag"); var InternalStateModule = require2("../internals/internal-state"); var $forEach = require2("../internals/array-iteration").forEach; var HIDDEN = sharedKey("hidden"); var SYMBOL = "Symbol"; var PROTOTYPE = "prototype"; var setInternalState = InternalStateModule.set; var getInternalState = InternalStateModule.getterFor(SYMBOL); var ObjectPrototype = Object[PROTOTYPE]; var $Symbol = global2.Symbol; var SymbolPrototype = $Symbol && $Symbol[PROTOTYPE]; var TypeError2 = global2.TypeError; var QObject = global2.QObject; var nativeGetOwnPropertyDescriptor = getOwnPropertyDescriptorModule.f; var nativeDefineProperty = definePropertyModule.f; var nativeGetOwnPropertyNames = getOwnPropertyNamesExternal.f; var nativePropertyIsEnumerable = propertyIsEnumerableModule.f; var push = uncurryThis([].push); var AllSymbols = shared("symbols"); var ObjectPrototypeSymbols = shared("op-symbols"); var WellKnownSymbolsStore = shared("wks"); var USE_SETTER = !QObject || !QObject[PROTOTYPE] || !QObject[PROTOTYPE].findChild; var setSymbolDescriptor = DESCRIPTORS && fails(function() { return nativeObjectCreate(nativeDefineProperty({}, "a", { get: function() { return nativeDefineProperty(this, "a", { value: 7 }).a; } })).a != 7; }) ? function(O, P, Attributes) { var ObjectPrototypeDescriptor = nativeGetOwnPropertyDescriptor(ObjectPrototype, P); if (ObjectPrototypeDescriptor) delete ObjectPrototype[P]; nativeDefineProperty(O, P, Attributes); if (ObjectPrototypeDescriptor && O !== ObjectPrototype) { nativeDefineProperty(ObjectPrototype, P, ObjectPrototypeDescriptor); } } : nativeDefineProperty; var wrap = function(tag, description) { var symbol = AllSymbols[tag] = nativeObjectCreate(SymbolPrototype); setInternalState(symbol, { type: SYMBOL, tag, description }); if (!DESCRIPTORS) symbol.description = description; return symbol; }; var $defineProperty = function defineProperty(O, P, Attributes) { if (O === ObjectPrototype) $defineProperty(ObjectPrototypeSymbols, P, Attributes); anObject(O); var key = toPropertyKey(P); anObject(Attributes); if (hasOwn(AllSymbols, key)) { if (!Attributes.enumerable) { if (!hasOwn(O, HIDDEN)) nativeDefineProperty(O, HIDDEN, createPropertyDescriptor(1, {})); O[HIDDEN][key] = true; } else { if (hasOwn(O, HIDDEN) && O[HIDDEN][key]) O[HIDDEN][key] = false; Attributes = nativeObjectCreate(Attributes, { enumerable: createPropertyDescriptor(0, false) }); } return setSymbolDescriptor(O, key, Attributes); } return nativeDefineProperty(O, key, Attributes); }; var $defineProperties = function defineProperties(O, Properties) { anObject(O); var properties = toIndexedObject(Properties); var keys = objectKeys(properties).concat($getOwnPropertySymbols(properties)); $forEach(keys, function(key) { if (!DESCRIPTORS || call($propertyIsEnumerable, properties, key)) $defineProperty(O, key, properties[key]); }); return O; }; var $create = function create(O, Properties) { return Properties === void 0 ? nativeObjectCreate(O) : $defineProperties(nativeObjectCreate(O), Properties); }; var $propertyIsEnumerable = function propertyIsEnumerable(V) { var P = toPropertyKey(V); var enumerable = call(nativePropertyIsEnumerable, this, P); if (this === ObjectPrototype && hasOwn(AllSymbols, P) && !hasOwn(ObjectPrototypeSymbols, P)) return false; return enumerable || !hasOwn(this, P) || !hasOwn(AllSymbols, P) || hasOwn(this, HIDDEN) && this[HIDDEN][P] ? enumerable : true; }; var $getOwnPropertyDescriptor = function getOwnPropertyDescriptor(O, P) { var it = toIndexedObject(O); var key = toPropertyKey(P); if (it === ObjectPrototype && hasOwn(AllSymbols, key) && !hasOwn(ObjectPrototypeSymbols, key)) return; var descriptor = nativeGetOwnPropertyDescriptor(it, key); if (descriptor && hasOwn(AllSymbols, key) && !(hasOwn(it, HIDDEN) && it[HIDDEN][key])) { descriptor.enumerable = true; } return descriptor; }; var $getOwnPropertyNames = function getOwnPropertyNames(O) { var names = nativeGetOwnPropertyNames(toIndexedObject(O)); var result = []; $forEach(names, function(key) { if (!hasOwn(AllSymbols, key) && !hasOwn(hiddenKeys, key)) push(result, key); }); return result; }; var $getOwnPropertySymbols = function(O) { var IS_OBJECT_PROTOTYPE = O === ObjectPrototype; var names = nativeGetOwnPropertyNames(IS_OBJECT_PROTOTYPE ? ObjectPrototypeSymbols : toIndexedObject(O)); var result = []; $forEach(names, function(key) { if (hasOwn(AllSymbols, key) && (!IS_OBJECT_PROTOTYPE || hasOwn(ObjectPrototype, key))) { push(result, AllSymbols[key]); } }); return result; }; if (!NATIVE_SYMBOL) { $Symbol = function Symbol2() { if (isPrototypeOf(SymbolPrototype, this)) throw TypeError2("Symbol is not a constructor"); var description = !arguments.length || arguments[0] === void 0 ? void 0 : $toString(arguments[0]); var tag = uid(description); var setter = function(value) { if (this === ObjectPrototype) call(setter, ObjectPrototypeSymbols, value); if (hasOwn(this, HIDDEN) && hasOwn(this[HIDDEN], tag)) this[HIDDEN][tag] = false; setSymbolDescriptor(this, tag, createPropertyDescriptor(1, value)); }; if (DESCRIPTORS && USE_SETTER) setSymbolDescriptor(ObjectPrototype, tag, { configurable: true, set: setter }); return wrap(tag, description); }; SymbolPrototype = $Symbol[PROTOTYPE]; redefine(SymbolPrototype, "toString", function toString() { return getInternalState(this).tag; }); redefine($Symbol, "withoutSetter", function(description) { return wrap(uid(description), description); }); propertyIsEnumerableModule.f = $propertyIsEnumerable; definePropertyModule.f = $defineProperty; definePropertiesModule.f = $defineProperties; getOwnPropertyDescriptorModule.f = $getOwnPropertyDescriptor; getOwnPropertyNamesModule.f = getOwnPropertyNamesExternal.f = $getOwnPropertyNames; getOwnPropertySymbolsModule.f = $getOwnPropertySymbols; wrappedWellKnownSymbolModule.f = function(name) { return wrap(wellKnownSymbol(name), name); }; if (DESCRIPTORS) { nativeDefineProperty(SymbolPrototype, "description", { configurable: true, get: function description() { return getInternalState(this).description; } }); if (!IS_PURE) { redefine(ObjectPrototype, "propertyIsEnumerable", $propertyIsEnumerable, { unsafe: true }); } } } $({ global: true, wrap: true, forced: !NATIVE_SYMBOL, sham: !NATIVE_SYMBOL }, { Symbol: $Symbol }); $forEach(objectKeys(WellKnownSymbolsStore), function(name) { defineWellKnownSymbol(name); }); $({ target: SYMBOL, stat: true, forced: !NATIVE_SYMBOL }, { useSetter: function() { USE_SETTER = true; }, useSimple: function() { USE_SETTER = false; } }); $({ target: "Object", stat: true, forced: !NATIVE_SYMBOL, sham: !DESCRIPTORS }, { // `Object.create` method // https://tc39.es/ecma262/#sec-object.create create: $create, // `Object.defineProperty` method // https://tc39.es/ecma262/#sec-object.defineproperty defineProperty: $defineProperty, // `Object.defineProperties` method // https://tc39.es/ecma262/#sec-object.defineproperties defineProperties: $defineProperties, // `Object.getOwnPropertyDescriptor` method // https://tc39.es/ecma262/#sec-object.getownpropertydescriptors getOwnPropertyDescriptor: $getOwnPropertyDescriptor }); $({ target: "Object", stat: true, forced: !NATIVE_SYMBOL }, { // `Object.getOwnPropertyNames` method // https://tc39.es/ecma262/#sec-object.getownpropertynames getOwnPropertyNames: $getOwnPropertyNames }); defineSymbolToPrimitive(); setToStringTag($Symbol, SYMBOL); hiddenKeys[HIDDEN] = true; }, { "../internals/an-object": 101, "../internals/array-iteration": 111, "../internals/create-property-descriptor": 130, "../internals/define-well-known-symbol": 133, "../internals/descriptors": 134, "../internals/export": 149, "../internals/fails": 150, "../internals/function-call": 155, "../internals/function-uncurry-this": 157, "../internals/global": 163, "../internals/has-own-property": 164, "../internals/hidden-keys": 165, "../internals/internal-state": 173, "../internals/is-pure": 181, "../internals/native-symbol": 191, "../internals/object-create": 196, "../internals/object-define-properties": 197, "../internals/object-define-property": 198, "../internals/object-get-own-property-descriptor": 199, "../internals/object-get-own-property-names": 201, "../internals/object-get-own-property-names-external": 200, "../internals/object-get-own-property-symbols": 202, "../internals/object-is-prototype-of": 204, "../internals/object-keys": 206, "../internals/object-property-is-enumerable": 207, "../internals/redefine": 222, "../internals/set-to-string-tag": 234, "../internals/shared": 237, "../internals/shared-key": 235, "../internals/symbol-define-to-primitive": 242, "../internals/to-indexed-object": 247, "../internals/to-property-key": 254, "../internals/to-string": 256, "../internals/uid": 263, "../internals/well-known-symbol": 268, "../internals/well-known-symbol-wrapped": 267 }], 310: [function(require2, module3, exports3) { "use strict"; var $ = require2("../internals/export"); var DESCRIPTORS = require2("../internals/descriptors"); var global2 = require2("../internals/global"); var uncurryThis = require2("../internals/function-uncurry-this"); var hasOwn = require2("../internals/has-own-property"); var isCallable = require2("../internals/is-callable"); var isPrototypeOf = require2("../internals/object-is-prototype-of"); var toString = require2("../internals/to-string"); var defineProperty = require2("../internals/object-define-property").f; var copyConstructorProperties = require2("../internals/copy-constructor-properties"); var NativeSymbol = global2.Symbol; var SymbolPrototype = NativeSymbol && NativeSymbol.prototype; if (DESCRIPTORS && isCallable(NativeSymbol) && (!("description" in SymbolPrototype) || // Safari 12 bug NativeSymbol().description !== void 0)) { var EmptyStringDescriptionStore = {}; var SymbolWrapper = function Symbol2() { var description = arguments.length < 1 || arguments[0] === void 0 ? void 0 : toString(arguments[0]); var result = isPrototypeOf(SymbolPrototype, this) ? new NativeSymbol(description) : description === void 0 ? NativeSymbol() : NativeSymbol(description); if (description === "") EmptyStringDescriptionStore[result] = true; return result; }; copyConstructorProperties(SymbolWrapper, NativeSymbol); SymbolWrapper.prototype = SymbolPrototype; SymbolPrototype.constructor = SymbolWrapper; var NATIVE_SYMBOL = String(NativeSymbol("test")) == "Symbol(test)"; var symbolToString = uncurryThis(SymbolPrototype.toString); var symbolValueOf = uncurryThis(SymbolPrototype.valueOf); var regexp = /^Symbol\((.*)\)[^)]+$/; var replace = uncurryThis("".replace); var stringSlice = uncurryThis("".slice); defineProperty(SymbolPrototype, "description", { configurable: true, get: function description() { var symbol = symbolValueOf(this); var string = symbolToString(symbol); if (hasOwn(EmptyStringDescriptionStore, symbol)) return ""; var desc = NATIVE_SYMBOL ? stringSlice(string, 7, -1) : replace(string, regexp, "$1"); return desc === "" ? void 0 : desc; } }); $({ global: true, forced: true }, { Symbol: SymbolWrapper }); } }, { "../internals/copy-constructor-properties": 125, "../internals/descriptors": 134, "../internals/export": 149, "../internals/function-uncurry-this": 157, "../internals/global": 163, "../internals/has-own-property": 164, "../internals/is-callable": 176, "../internals/object-define-property": 198, "../internals/object-is-prototype-of": 204, "../internals/to-string": 256 }], 311: [function(require2, module3, exports3) { var $ = require2("../internals/export"); var getBuiltIn = require2("../internals/get-built-in"); var hasOwn = require2("../internals/has-own-property"); var toString = require2("../internals/to-string"); var shared = require2("../internals/shared"); var NATIVE_SYMBOL_REGISTRY = require2("../internals/native-symbol-registry"); var StringToSymbolRegistry = shared("string-to-symbol-registry"); var SymbolToStringRegistry = shared("symbol-to-string-registry"); $({ target: "Symbol", stat: true, forced: !NATIVE_SYMBOL_REGISTRY }, { "for": function(key) { var string = toString(key); if (hasOwn(StringToSymbolRegistry, string)) return StringToSymbolRegistry[string]; var symbol = getBuiltIn("Symbol")(string); StringToSymbolRegistry[string] = symbol; SymbolToStringRegistry[symbol] = string; return symbol; } }); }, { "../internals/export": 149, "../internals/get-built-in": 158, "../internals/has-own-property": 164, "../internals/native-symbol-registry": 190, "../internals/shared": 237, "../internals/to-string": 256 }], 312: [function(require2, module3, exports3) { var defineWellKnownSymbol = require2("../internals/define-well-known-symbol"); defineWellKnownSymbol("iterator"); }, { "../internals/define-well-known-symbol": 133 }], 313: [function(require2, module3, exports3) { require2("../modules/es.symbol.constructor"); require2("../modules/es.symbol.for"); require2("../modules/es.symbol.key-for"); require2("../modules/es.json.stringify"); require2("../modules/es.object.get-own-property-symbols"); }, { "../modules/es.json.stringify": 285, "../modules/es.object.get-own-property-symbols": 289, "../modules/es.symbol.constructor": 309, "../modules/es.symbol.for": 311, "../modules/es.symbol.key-for": 314 }], 314: [function(require2, module3, exports3) { var $ = require2("../internals/export"); var hasOwn = require2("../internals/has-own-property"); var isSymbol = require2("../internals/is-symbol"); var tryToString = require2("../internals/try-to-string"); var shared = require2("../internals/shared"); var NATIVE_SYMBOL_REGISTRY = require2("../internals/native-symbol-registry"); var SymbolToStringRegistry = shared("symbol-to-string-registry"); $({ target: "Symbol", stat: true, forced: !NATIVE_SYMBOL_REGISTRY }, { keyFor: function keyFor(sym) { if (!isSymbol(sym)) throw TypeError(tryToString(sym) + " is not a symbol"); if (hasOwn(SymbolToStringRegistry, sym)) return SymbolToStringRegistry[sym]; } }); }, { "../internals/export": 149, "../internals/has-own-property": 164, "../internals/is-symbol": 183, "../internals/native-symbol-registry": 190, "../internals/shared": 237, "../internals/try-to-string": 257 }], 315: [function(require2, module3, exports3) { "use strict"; var uncurryThis = require2("../internals/function-uncurry-this"); var ArrayBufferViewCore = require2("../internals/array-buffer-view-core"); var $ArrayCopyWithin = require2("../internals/array-copy-within"); var u$ArrayCopyWithin = uncurryThis($ArrayCopyWithin); var aTypedArray = ArrayBufferViewCore.aTypedArray; var exportTypedArrayMethod = ArrayBufferViewCore.exportTypedArrayMethod; exportTypedArrayMethod("copyWithin", function copyWithin(target, start) { return u$ArrayCopyWithin(aTypedArray(this), target, start, arguments.length > 2 ? arguments[2] : void 0); }); }, { "../internals/array-buffer-view-core": 103, "../internals/array-copy-within": 105, "../internals/function-uncurry-this": 157 }], 316: [function(require2, module3, exports3) { "use strict"; var ArrayBufferViewCore = require2("../internals/array-buffer-view-core"); var $every = require2("../internals/array-iteration").every; var aTypedArray = ArrayBufferViewCore.aTypedArray; var exportTypedArrayMethod = ArrayBufferViewCore.exportTypedArrayMethod; exportTypedArrayMethod("every", function every(callbackfn) { return $every(aTypedArray(this), callbackfn, arguments.length > 1 ? arguments[1] : void 0); }); }, { "../internals/array-buffer-view-core": 103, "../internals/array-iteration": 111 }], 317: [function(require2, module3, exports3) { "use strict"; var ArrayBufferViewCore = require2("../internals/array-buffer-view-core"); var call = require2("../internals/function-call"); var $fill = require2("../internals/array-fill"); var aTypedArray = ArrayBufferViewCore.aTypedArray; var exportTypedArrayMethod = ArrayBufferViewCore.exportTypedArrayMethod; exportTypedArrayMethod("fill", function fill(value) { var length = arguments.length; return call( $fill, aTypedArray(this), value, length > 1 ? arguments[1] : void 0, length > 2 ? arguments[2] : void 0 ); }); }, { "../internals/array-buffer-view-core": 103, "../internals/array-fill": 106, "../internals/function-call": 155 }], 318: [function(require2, module3, exports3) { "use strict"; var ArrayBufferViewCore = require2("../internals/array-buffer-view-core"); var $filter = require2("../internals/array-iteration").filter; var fromSpeciesAndList = require2("../internals/typed-array-from-species-and-list"); var aTypedArray = ArrayBufferViewCore.aTypedArray; var exportTypedArrayMethod = ArrayBufferViewCore.exportTypedArrayMethod; exportTypedArrayMethod("filter", function filter(callbackfn) { var list = $filter(aTypedArray(this), callbackfn, arguments.length > 1 ? arguments[1] : void 0); return fromSpeciesAndList(this, list); }); }, { "../internals/array-buffer-view-core": 103, "../internals/array-iteration": 111, "../internals/typed-array-from-species-and-list": 260 }], 319: [function(require2, module3, exports3) { "use strict"; var ArrayBufferViewCore = require2("../internals/array-buffer-view-core"); var $findIndex = require2("../internals/array-iteration").findIndex; var aTypedArray = ArrayBufferViewCore.aTypedArray; var exportTypedArrayMethod = ArrayBufferViewCore.exportTypedArrayMethod; exportTypedArrayMethod("findIndex", function findIndex(predicate) { return $findIndex(aTypedArray(this), predicate, arguments.length > 1 ? arguments[1] : void 0); }); }, { "../internals/array-buffer-view-core": 103, "../internals/array-iteration": 111 }], 320: [function(require2, module3, exports3) { "use strict"; var ArrayBufferViewCore = require2("../internals/array-buffer-view-core"); var $find = require2("../internals/array-iteration").find; var aTypedArray = ArrayBufferViewCore.aTypedArray; var exportTypedArrayMethod = ArrayBufferViewCore.exportTypedArrayMethod; exportTypedArrayMethod("find", function find(predicate) { return $find(aTypedArray(this), predicate, arguments.length > 1 ? arguments[1] : void 0); }); }, { "../internals/array-buffer-view-core": 103, "../internals/array-iteration": 111 }], 321: [function(require2, module3, exports3) { "use strict"; var ArrayBufferViewCore = require2("../internals/array-buffer-view-core"); var $forEach = require2("../internals/array-iteration").forEach; var aTypedArray = ArrayBufferViewCore.aTypedArray; var exportTypedArrayMethod = ArrayBufferViewCore.exportTypedArrayMethod; exportTypedArrayMethod("forEach", function forEach(callbackfn) { $forEach(aTypedArray(this), callbackfn, arguments.length > 1 ? arguments[1] : void 0); }); }, { "../internals/array-buffer-view-core": 103, "../internals/array-iteration": 111 }], 322: [function(require2, module3, exports3) { "use strict"; var ArrayBufferViewCore = require2("../internals/array-buffer-view-core"); var $includes = require2("../internals/array-includes").includes; var aTypedArray = ArrayBufferViewCore.aTypedArray; var exportTypedArrayMethod = ArrayBufferViewCore.exportTypedArrayMethod; exportTypedArrayMethod("includes", function includes(searchElement) { return $includes(aTypedArray(this), searchElement, arguments.length > 1 ? arguments[1] : void 0); }); }, { "../internals/array-buffer-view-core": 103, "../internals/array-includes": 110 }], 323: [function(require2, module3, exports3) { "use strict"; var ArrayBufferViewCore = require2("../internals/array-buffer-view-core"); var $indexOf = require2("../internals/array-includes").indexOf; var aTypedArray = ArrayBufferViewCore.aTypedArray; var exportTypedArrayMethod = ArrayBufferViewCore.exportTypedArrayMethod; exportTypedArrayMethod("indexOf", function indexOf(searchElement) { return $indexOf(aTypedArray(this), searchElement, arguments.length > 1 ? arguments[1] : void 0); }); }, { "../internals/array-buffer-view-core": 103, "../internals/array-includes": 110 }], 324: [function(require2, module3, exports3) { "use strict"; var global2 = require2("../internals/global"); var fails = require2("../internals/fails"); var uncurryThis = require2("../internals/function-uncurry-this"); var ArrayBufferViewCore = require2("../internals/array-buffer-view-core"); var ArrayIterators = require2("../modules/es.array.iterator"); var wellKnownSymbol = require2("../internals/well-known-symbol"); var ITERATOR = wellKnownSymbol("iterator"); var Uint8Array2 = global2.Uint8Array; var arrayValues = uncurryThis(ArrayIterators.values); var arrayKeys = uncurryThis(ArrayIterators.keys); var arrayEntries = uncurryThis(ArrayIterators.entries); var aTypedArray = ArrayBufferViewCore.aTypedArray; var exportTypedArrayMethod = ArrayBufferViewCore.exportTypedArrayMethod; var TypedArrayPrototype = Uint8Array2 && Uint8Array2.prototype; var GENERIC = !fails(function() { TypedArrayPrototype[ITERATOR].call([1]); }); var ITERATOR_IS_VALUES = !!TypedArrayPrototype && TypedArrayPrototype.values && TypedArrayPrototype[ITERATOR] === TypedArrayPrototype.values && TypedArrayPrototype.values.name === "values"; var typedArrayValues = function values() { return arrayValues(aTypedArray(this)); }; exportTypedArrayMethod("entries", function entries() { return arrayEntries(aTypedArray(this)); }, GENERIC); exportTypedArrayMethod("keys", function keys() { return arrayKeys(aTypedArray(this)); }, GENERIC); exportTypedArrayMethod("values", typedArrayValues, GENERIC || !ITERATOR_IS_VALUES, { name: "values" }); exportTypedArrayMethod(ITERATOR, typedArrayValues, GENERIC || !ITERATOR_IS_VALUES, { name: "values" }); }, { "../internals/array-buffer-view-core": 103, "../internals/fails": 150, "../internals/function-uncurry-this": 157, "../internals/global": 163, "../internals/well-known-symbol": 268, "../modules/es.array.iterator": 278 }], 325: [function(require2, module3, exports3) { "use strict"; var ArrayBufferViewCore = require2("../internals/array-buffer-view-core"); var uncurryThis = require2("../internals/function-uncurry-this"); var aTypedArray = ArrayBufferViewCore.aTypedArray; var exportTypedArrayMethod = ArrayBufferViewCore.exportTypedArrayMethod; var $join = uncurryThis([].join); exportTypedArrayMethod("join", function join(separator) { return $join(aTypedArray(this), separator); }); }, { "../internals/array-buffer-view-core": 103, "../internals/function-uncurry-this": 157 }], 326: [function(require2, module3, exports3) { "use strict"; var ArrayBufferViewCore = require2("../internals/array-buffer-view-core"); var apply = require2("../internals/function-apply"); var $lastIndexOf = require2("../internals/array-last-index-of"); var aTypedArray = ArrayBufferViewCore.aTypedArray; var exportTypedArrayMethod = ArrayBufferViewCore.exportTypedArrayMethod; exportTypedArrayMethod("lastIndexOf", function lastIndexOf(searchElement) { var length = arguments.length; return apply($lastIndexOf, aTypedArray(this), length > 1 ? [searchElement, arguments[1]] : [searchElement]); }); }, { "../internals/array-buffer-view-core": 103, "../internals/array-last-index-of": 112, "../internals/function-apply": 152 }], 327: [function(require2, module3, exports3) { "use strict"; var ArrayBufferViewCore = require2("../internals/array-buffer-view-core"); var $map = require2("../internals/array-iteration").map; var typedArraySpeciesConstructor = require2("../internals/typed-array-species-constructor"); var aTypedArray = ArrayBufferViewCore.aTypedArray; var exportTypedArrayMethod = ArrayBufferViewCore.exportTypedArrayMethod; exportTypedArrayMethod("map", function map(mapfn) { return $map(aTypedArray(this), mapfn, arguments.length > 1 ? arguments[1] : void 0, function(O, length) { return new (typedArraySpeciesConstructor(O))(length); }); }); }, { "../internals/array-buffer-view-core": 103, "../internals/array-iteration": 111, "../internals/typed-array-species-constructor": 262 }], 328: [function(require2, module3, exports3) { "use strict"; var ArrayBufferViewCore = require2("../internals/array-buffer-view-core"); var $reduceRight = require2("../internals/array-reduce").right; var aTypedArray = ArrayBufferViewCore.aTypedArray; var exportTypedArrayMethod = ArrayBufferViewCore.exportTypedArrayMethod; exportTypedArrayMethod("reduceRight", function reduceRight(callbackfn) { var length = arguments.length; return $reduceRight(aTypedArray(this), callbackfn, length, length > 1 ? arguments[1] : void 0); }); }, { "../internals/array-buffer-view-core": 103, "../internals/array-reduce": 115 }], 329: [function(require2, module3, exports3) { "use strict"; var ArrayBufferViewCore = require2("../internals/array-buffer-view-core"); var $reduce = require2("../internals/array-reduce").left; var aTypedArray = ArrayBufferViewCore.aTypedArray; var exportTypedArrayMethod = ArrayBufferViewCore.exportTypedArrayMethod; exportTypedArrayMethod("reduce", function reduce(callbackfn) { var length = arguments.length; return $reduce(aTypedArray(this), callbackfn, length, length > 1 ? arguments[1] : void 0); }); }, { "../internals/array-buffer-view-core": 103, "../internals/array-reduce": 115 }], 330: [function(require2, module3, exports3) { "use strict"; var ArrayBufferViewCore = require2("../internals/array-buffer-view-core"); var aTypedArray = ArrayBufferViewCore.aTypedArray; var exportTypedArrayMethod = ArrayBufferViewCore.exportTypedArrayMethod; var floor = Math.floor; exportTypedArrayMethod("reverse", function reverse() { var that = this; var length = aTypedArray(that).length; var middle = floor(length / 2); var index = 0; var value; while (index < middle) { value = that[index]; that[index++] = that[--length]; that[length] = value; } return that; }); }, { "../internals/array-buffer-view-core": 103 }], 331: [function(require2, module3, exports3) { "use strict"; var global2 = require2("../internals/global"); var call = require2("../internals/function-call"); var ArrayBufferViewCore = require2("../internals/array-buffer-view-core"); var lengthOfArrayLike = require2("../internals/length-of-array-like"); var toOffset = require2("../internals/to-offset"); var toIndexedObject = require2("../internals/to-object"); var fails = require2("../internals/fails"); var RangeError2 = global2.RangeError; var Int8Array2 = global2.Int8Array; var Int8ArrayPrototype = Int8Array2 && Int8Array2.prototype; var $set = Int8ArrayPrototype && Int8ArrayPrototype.set; var aTypedArray = ArrayBufferViewCore.aTypedArray; var exportTypedArrayMethod = ArrayBufferViewCore.exportTypedArrayMethod; var WORKS_WITH_OBJECTS_AND_GEERIC_ON_TYPED_ARRAYS = !fails(function() { var array = new Uint8ClampedArray(2); call($set, array, { length: 1, 0: 3 }, 1); return array[1] !== 3; }); var TO_OBJECT_BUG = WORKS_WITH_OBJECTS_AND_GEERIC_ON_TYPED_ARRAYS && ArrayBufferViewCore.NATIVE_ARRAY_BUFFER_VIEWS && fails(function() { var array = new Int8Array2(2); array.set(1); array.set("2", 1); return array[0] !== 0 || array[1] !== 2; }); exportTypedArrayMethod("set", function set(arrayLike) { aTypedArray(this); var offset = toOffset(arguments.length > 1 ? arguments[1] : void 0, 1); var src = toIndexedObject(arrayLike); if (WORKS_WITH_OBJECTS_AND_GEERIC_ON_TYPED_ARRAYS) return call($set, this, src, offset); var length = this.length; var len = lengthOfArrayLike(src); var index = 0; if (len + offset > length) throw RangeError2("Wrong length"); while (index < len) this[offset + index] = src[index++]; }, !WORKS_WITH_OBJECTS_AND_GEERIC_ON_TYPED_ARRAYS || TO_OBJECT_BUG); }, { "../internals/array-buffer-view-core": 103, "../internals/fails": 150, "../internals/function-call": 155, "../internals/global": 163, "../internals/length-of-array-like": 188, "../internals/to-object": 250, "../internals/to-offset": 251 }], 332: [function(require2, module3, exports3) { "use strict"; var ArrayBufferViewCore = require2("../internals/array-buffer-view-core"); var typedArraySpeciesConstructor = require2("../internals/typed-array-species-constructor"); var fails = require2("../internals/fails"); var arraySlice = require2("../internals/array-slice"); var aTypedArray = ArrayBufferViewCore.aTypedArray; var exportTypedArrayMethod = ArrayBufferViewCore.exportTypedArrayMethod; var FORCED = fails(function() { new Int8Array(1).slice(); }); exportTypedArrayMethod("slice", function slice(start, end) { var list = arraySlice(aTypedArray(this), start, end); var C = typedArraySpeciesConstructor(this); var index = 0; var length = list.length; var result = new C(length); while (length > index) result[index] = list[index++]; return result; }, FORCED); }, { "../internals/array-buffer-view-core": 103, "../internals/array-slice": 117, "../internals/fails": 150, "../internals/typed-array-species-constructor": 262 }], 333: [function(require2, module3, exports3) { "use strict"; var ArrayBufferViewCore = require2("../internals/array-buffer-view-core"); var $some = require2("../internals/array-iteration").some; var aTypedArray = ArrayBufferViewCore.aTypedArray; var exportTypedArrayMethod = ArrayBufferViewCore.exportTypedArrayMethod; exportTypedArrayMethod("some", function some(callbackfn) { return $some(aTypedArray(this), callbackfn, arguments.length > 1 ? arguments[1] : void 0); }); }, { "../internals/array-buffer-view-core": 103, "../internals/array-iteration": 111 }], 334: [function(require2, module3, exports3) { "use strict"; var global2 = require2("../internals/global"); var uncurryThis = require2("../internals/function-uncurry-this"); var fails = require2("../internals/fails"); var aCallable = require2("../internals/a-callable"); var internalSort = require2("../internals/array-sort"); var ArrayBufferViewCore = require2("../internals/array-buffer-view-core"); var FF = require2("../internals/engine-ff-version"); var IE_OR_EDGE = require2("../internals/engine-is-ie-or-edge"); var V8 = require2("../internals/engine-v8-version"); var WEBKIT = require2("../internals/engine-webkit-version"); var aTypedArray = ArrayBufferViewCore.aTypedArray; var exportTypedArrayMethod = ArrayBufferViewCore.exportTypedArrayMethod; var Uint16Array2 = global2.Uint16Array; var un$Sort = Uint16Array2 && uncurryThis(Uint16Array2.prototype.sort); var ACCEPT_INCORRECT_ARGUMENTS = !!un$Sort && !(fails(function() { un$Sort(new Uint16Array2(2), null); }) && fails(function() { un$Sort(new Uint16Array2(2), {}); })); var STABLE_SORT = !!un$Sort && !fails(function() { if (V8) return V8 < 74; if (FF) return FF < 67; if (IE_OR_EDGE) return true; if (WEBKIT) return WEBKIT < 602; var array = new Uint16Array2(516); var expected = Array(516); var index, mod; for (index = 0; index < 516; index++) { mod = index % 4; array[index] = 515 - index; expected[index] = index - 2 * mod + 3; } un$Sort(array, function(a, b) { return (a / 4 | 0) - (b / 4 | 0); }); for (index = 0; index < 516; index++) { if (array[index] !== expected[index]) return true; } }); var getSortCompare = function(comparefn) { return function(x, y) { if (comparefn !== void 0) return +comparefn(x, y) || 0; if (y !== y) return -1; if (x !== x) return 1; if (x === 0 && y === 0) return 1 / x > 0 && 1 / y < 0 ? 1 : -1; return x > y; }; }; exportTypedArrayMethod("sort", function sort(comparefn) { if (comparefn !== void 0) aCallable(comparefn); if (STABLE_SORT) return un$Sort(this, comparefn); return internalSort(aTypedArray(this), getSortCompare(comparefn)); }, !STABLE_SORT || ACCEPT_INCORRECT_ARGUMENTS); }, { "../internals/a-callable": 95, "../internals/array-buffer-view-core": 103, "../internals/array-sort": 118, "../internals/engine-ff-version": 138, "../internals/engine-is-ie-or-edge": 140, "../internals/engine-v8-version": 146, "../internals/engine-webkit-version": 147, "../internals/fails": 150, "../internals/function-uncurry-this": 157, "../internals/global": 163 }], 335: [function(require2, module3, exports3) { "use strict"; var ArrayBufferViewCore = require2("../internals/array-buffer-view-core"); var toLength = require2("../internals/to-length"); var toAbsoluteIndex = require2("../internals/to-absolute-index"); var typedArraySpeciesConstructor = require2("../internals/typed-array-species-constructor"); var aTypedArray = ArrayBufferViewCore.aTypedArray; var exportTypedArrayMethod = ArrayBufferViewCore.exportTypedArrayMethod; exportTypedArrayMethod("subarray", function subarray(begin, end) { var O = aTypedArray(this); var length = O.length; var beginIndex = toAbsoluteIndex(begin, length); var C = typedArraySpeciesConstructor(O); return new C( O.buffer, O.byteOffset + beginIndex * O.BYTES_PER_ELEMENT, toLength((end === void 0 ? length : toAbsoluteIndex(end, length)) - beginIndex) ); }); }, { "../internals/array-buffer-view-core": 103, "../internals/to-absolute-index": 245, "../internals/to-length": 249, "../internals/typed-array-species-constructor": 262 }], 336: [function(require2, module3, exports3) { "use strict"; var global2 = require2("../internals/global"); var apply = require2("../internals/function-apply"); var ArrayBufferViewCore = require2("../internals/array-buffer-view-core"); var fails = require2("../internals/fails"); var arraySlice = require2("../internals/array-slice"); var Int8Array2 = global2.Int8Array; var aTypedArray = ArrayBufferViewCore.aTypedArray; var exportTypedArrayMethod = ArrayBufferViewCore.exportTypedArrayMethod; var $toLocaleString = [].toLocaleString; var TO_LOCALE_STRING_BUG = !!Int8Array2 && fails(function() { $toLocaleString.call(new Int8Array2(1)); }); var FORCED = fails(function() { return [1, 2].toLocaleString() != new Int8Array2([1, 2]).toLocaleString(); }) || !fails(function() { Int8Array2.prototype.toLocaleString.call([1, 2]); }); exportTypedArrayMethod("toLocaleString", function toLocaleString() { return apply( $toLocaleString, TO_LOCALE_STRING_BUG ? arraySlice(aTypedArray(this)) : aTypedArray(this), arraySlice(arguments) ); }, FORCED); }, { "../internals/array-buffer-view-core": 103, "../internals/array-slice": 117, "../internals/fails": 150, "../internals/function-apply": 152, "../internals/global": 163 }], 337: [function(require2, module3, exports3) { "use strict"; var exportTypedArrayMethod = require2("../internals/array-buffer-view-core").exportTypedArrayMethod; var fails = require2("../internals/fails"); var global2 = require2("../internals/global"); var uncurryThis = require2("../internals/function-uncurry-this"); var Uint8Array2 = global2.Uint8Array; var Uint8ArrayPrototype = Uint8Array2 && Uint8Array2.prototype || {}; var arrayToString = [].toString; var join = uncurryThis([].join); if (fails(function() { arrayToString.call({}); })) { arrayToString = function toString() { return join(this); }; } var IS_NOT_ARRAY_METHOD = Uint8ArrayPrototype.toString != arrayToString; exportTypedArrayMethod("toString", arrayToString, IS_NOT_ARRAY_METHOD); }, { "../internals/array-buffer-view-core": 103, "../internals/fails": 150, "../internals/function-uncurry-this": 157, "../internals/global": 163 }], 338: [function(require2, module3, exports3) { var createTypedArrayConstructor = require2("../internals/typed-array-constructor"); createTypedArrayConstructor("Uint8", function(init) { return function Uint8Array2(data, byteOffset, length) { return init(this, data, byteOffset, length); }; }); }, { "../internals/typed-array-constructor": 258 }], 339: [function(require2, module3, exports3) { var global2 = require2("../internals/global"); var DOMIterables = require2("../internals/dom-iterables"); var DOMTokenListPrototype = require2("../internals/dom-token-list-prototype"); var forEach = require2("../internals/array-for-each"); var createNonEnumerableProperty = require2("../internals/create-non-enumerable-property"); var handlePrototype = function(CollectionPrototype) { if (CollectionPrototype && CollectionPrototype.forEach !== forEach) try { createNonEnumerableProperty(CollectionPrototype, "forEach", forEach); } catch (error) { CollectionPrototype.forEach = forEach; } }; for (var COLLECTION_NAME in DOMIterables) { if (DOMIterables[COLLECTION_NAME]) { handlePrototype(global2[COLLECTION_NAME] && global2[COLLECTION_NAME].prototype); } } handlePrototype(DOMTokenListPrototype); }, { "../internals/array-for-each": 107, "../internals/create-non-enumerable-property": 129, "../internals/dom-iterables": 136, "../internals/dom-token-list-prototype": 137, "../internals/global": 163 }], 340: [function(require2, module3, exports3) { var global2 = require2("../internals/global"); var DOMIterables = require2("../internals/dom-iterables"); var DOMTokenListPrototype = require2("../internals/dom-token-list-prototype"); var ArrayIteratorMethods = require2("../modules/es.array.iterator"); var createNonEnumerableProperty = require2("../internals/create-non-enumerable-property"); var wellKnownSymbol = require2("../internals/well-known-symbol"); var ITERATOR = wellKnownSymbol("iterator"); var TO_STRING_TAG = wellKnownSymbol("toStringTag"); var ArrayValues = ArrayIteratorMethods.values; var handlePrototype = function(CollectionPrototype, COLLECTION_NAME2) { if (CollectionPrototype) { if (CollectionPrototype[ITERATOR] !== ArrayValues) try { createNonEnumerableProperty(CollectionPrototype, ITERATOR, ArrayValues); } catch (error) { CollectionPrototype[ITERATOR] = ArrayValues; } if (!CollectionPrototype[TO_STRING_TAG]) { createNonEnumerableProperty(CollectionPrototype, TO_STRING_TAG, COLLECTION_NAME2); } if (DOMIterables[COLLECTION_NAME2]) for (var METHOD_NAME in ArrayIteratorMethods) { if (CollectionPrototype[METHOD_NAME] !== ArrayIteratorMethods[METHOD_NAME]) try { createNonEnumerableProperty(CollectionPrototype, METHOD_NAME, ArrayIteratorMethods[METHOD_NAME]); } catch (error) { CollectionPrototype[METHOD_NAME] = ArrayIteratorMethods[METHOD_NAME]; } } } }; for (var COLLECTION_NAME in DOMIterables) { handlePrototype(global2[COLLECTION_NAME] && global2[COLLECTION_NAME].prototype, COLLECTION_NAME); } handlePrototype(DOMTokenListPrototype, "DOMTokenList"); }, { "../internals/create-non-enumerable-property": 129, "../internals/dom-iterables": 136, "../internals/dom-token-list-prototype": 137, "../internals/global": 163, "../internals/well-known-symbol": 268, "../modules/es.array.iterator": 278 }], 341: [function(require2, module3, exports3) { function isArray(arg) { if (Array.isArray) { return Array.isArray(arg); } return objectToString(arg) === "[object Array]"; } exports3.isArray = isArray; function isBoolean(arg) { return typeof arg === "boolean"; } exports3.isBoolean = isBoolean; function isNull(arg) { return arg === null; } exports3.isNull = isNull; function isNullOrUndefined(arg) { return arg == null; } exports3.isNullOrUndefined = isNullOrUndefined; function isNumber(arg) { return typeof arg === "number"; } exports3.isNumber = isNumber; function isString(arg) { return typeof arg === "string"; } exports3.isString = isString; function isSymbol(arg) { return typeof arg === "symbol"; } exports3.isSymbol = isSymbol; function isUndefined(arg) { return arg === void 0; } exports3.isUndefined = isUndefined; function isRegExp(re) { return objectToString(re) === "[object RegExp]"; } exports3.isRegExp = isRegExp; function isObject(arg) { return typeof arg === "object" && arg !== null; } exports3.isObject = isObject; function isDate(d) { return objectToString(d) === "[object Date]"; } exports3.isDate = isDate; function isError(e) { return objectToString(e) === "[object Error]" || e instanceof Error; } exports3.isError = isError; function isFunction(arg) { return typeof arg === "function"; } exports3.isFunction = isFunction; function isPrimitive(arg) { return arg === null || typeof arg === "boolean" || typeof arg === "number" || typeof arg === "string" || typeof arg === "symbol" || // ES6 symbol typeof arg === "undefined"; } exports3.isPrimitive = isPrimitive; exports3.isBuffer = require2("buffer").Buffer.isBuffer; function objectToString(o) { return Object.prototype.toString.call(o); } }, { "buffer": 90 }], 342: [function(require2, module3, exports3) { (function(global2) { "use strict"; var dateFormat = function() { var token = /d{1,4}|m{1,4}|yy(?:yy)?|([HhMsTt])\1?|[LloSZWN]|'[^']*'|'[^']*'/g; var timezone = /\b(?:[PMCEA][SDP]T|(?:Pacific|Mountain|Central|Eastern|Atlantic) (?:Standard|Daylight|Prevailing) Time|(?:GMT|UTC)(?:[-+]\d{4})?)\b/g; var timezoneClip = /[^-+\dA-Z]/g; return function(date, mask, utc, gmt) { if (arguments.length === 1 && kindOf(date) === "string" && !/\d/.test(date)) { mask = date; date = void 0; } date = date || /* @__PURE__ */ new Date(); if (!(date instanceof Date)) { date = new Date(date); } if (isNaN(date)) { throw TypeError("Invalid date"); } mask = String(dateFormat.masks[mask] || mask || dateFormat.masks["default"]); var maskSlice = mask.slice(0, 4); if (maskSlice === "UTC:" || maskSlice === "GMT:") { mask = mask.slice(4); utc = true; if (maskSlice === "GMT:") { gmt = true; } } var _ = utc ? "getUTC" : "get"; var d = date[_ + "Date"](); var D = date[_ + "Day"](); var m = date[_ + "Month"](); var y = date[_ + "FullYear"](); var H = date[_ + "Hours"](); var M = date[_ + "Minutes"](); var s = date[_ + "Seconds"](); var L = date[_ + "Milliseconds"](); var o = utc ? 0 : date.getTimezoneOffset(); var W = getWeek(date); var N = getDayOfWeek(date); var flags = { d, dd: pad(d), ddd: dateFormat.i18n.dayNames[D], dddd: dateFormat.i18n.dayNames[D + 7], m: m + 1, mm: pad(m + 1), mmm: dateFormat.i18n.monthNames[m], mmmm: dateFormat.i18n.monthNames[m + 12], yy: String(y).slice(2), yyyy: y, h: H % 12 || 12, hh: pad(H % 12 || 12), H, HH: pad(H), M, MM: pad(M), s, ss: pad(s), l: pad(L, 3), L: pad(Math.round(L / 10)), t: H < 12 ? "a" : "p", tt: H < 12 ? "am" : "pm", T: H < 12 ? "A" : "P", TT: H < 12 ? "AM" : "PM", Z: gmt ? "GMT" : utc ? "UTC" : (String(date).match(timezone) || [""]).pop().replace(timezoneClip, ""), o: (o > 0 ? "-" : "+") + pad(Math.floor(Math.abs(o) / 60) * 100 + Math.abs(o) % 60, 4), S: ["th", "st", "nd", "rd"][d % 10 > 3 ? 0 : (d % 100 - d % 10 != 10) * d % 10], W, N }; return mask.replace(token, function(match) { if (match in flags) { return flags[match]; } return match.slice(1, match.length - 1); }); }; }(); dateFormat.masks = { "default": "ddd mmm dd yyyy HH:MM:ss", "shortDate": "m/d/yy", "mediumDate": "mmm d, yyyy", "longDate": "mmmm d, yyyy", "fullDate": "dddd, mmmm d, yyyy", "shortTime": "h:MM TT", "mediumTime": "h:MM:ss TT", "longTime": "h:MM:ss TT Z", "isoDate": "yyyy-mm-dd", "isoTime": "HH:MM:ss", "isoDateTime": "yyyy-mm-dd'T'HH:MM:sso", "isoUtcDateTime": "UTC:yyyy-mm-dd'T'HH:MM:ss'Z'", "expiresHeaderFormat": "ddd, dd mmm yyyy HH:MM:ss Z" }; dateFormat.i18n = { dayNames: [ "Sun", "Mon", "Tue", "Wed", "Thu", "Fri", "Sat", "Sunday", "Monday", "Tuesday", "Wednesday", "Thursday", "Friday", "Saturday" ], monthNames: [ "Jan", "Feb", "Mar", "Apr", "May", "Jun", "Jul", "Aug", "Sep", "Oct", "Nov", "Dec", "January", "February", "March", "April", "May", "June", "July", "August", "September", "October", "November", "December" ] }; function pad(val, len) { val = String(val); len = len || 2; while (val.length < len) { val = "0" + val; } return val; } function getWeek(date) { var targetThursday = new Date(date.getFullYear(), date.getMonth(), date.getDate()); targetThursday.setDate(targetThursday.getDate() - (targetThursday.getDay() + 6) % 7 + 3); var firstThursday = new Date(targetThursday.getFullYear(), 0, 4); firstThursday.setDate(firstThursday.getDate() - (firstThursday.getDay() + 6) % 7 + 3); var ds = targetThursday.getTimezoneOffset() - firstThursday.getTimezoneOffset(); targetThursday.setHours(targetThursday.getHours() - ds); var weekDiff = (targetThursday - firstThursday) / (864e5 * 7); return 1 + Math.floor(weekDiff); } function getDayOfWeek(date) { var dow = date.getDay(); if (dow === 0) { dow = 7; } return dow; } function kindOf(val) { if (val === null) { return "null"; } if (val === void 0) { return "undefined"; } if (typeof val !== "object") { return typeof val; } if (Array.isArray(val)) { return "array"; } return {}.toString.call(val).slice(8, -1).toLowerCase(); } ; if (typeof define2 === "function" && define2.amd) { define2(function() { return dateFormat; }); } else if (typeof exports3 === "object") { module3.exports = dateFormat; } else { global2.dateFormat = dateFormat; } })(this); }, {}], 343: [function(require2, module3, exports3) { "use strict"; var matchHtmlRegExp = /["'&<>]/; module3.exports = escapeHtml; function escapeHtml(string) { var str = "" + string; var match = matchHtmlRegExp.exec(str); if (!match) { return str; } var escape2; var html = ""; var index = 0; var lastIndex = 0; for (index = match.index; index < str.length; index++) { switch (str.charCodeAt(index)) { case 34: escape2 = """; break; case 38: escape2 = "&"; break; case 39: escape2 = "'"; break; case 60: escape2 = "<"; break; case 62: escape2 = ">"; break; default: continue; } if (lastIndex !== index) { html += str.substring(lastIndex, index); } lastIndex = index + 1; html += escape2; } return lastIndex !== index ? html + str.substring(lastIndex, index) : html; } }, {}], 344: [function(require2, module3, exports3) { "use strict"; var R = typeof Reflect === "object" ? Reflect : null; var ReflectApply = R && typeof R.apply === "function" ? R.apply : function ReflectApply2(target, receiver, args) { return Function.prototype.apply.call(target, receiver, args); }; var ReflectOwnKeys; if (R && typeof R.ownKeys === "function") { ReflectOwnKeys = R.ownKeys; } else if (Object.getOwnPropertySymbols) { ReflectOwnKeys = function ReflectOwnKeys2(target) { return Object.getOwnPropertyNames(target).concat(Object.getOwnPropertySymbols(target)); }; } else { ReflectOwnKeys = function ReflectOwnKeys2(target) { return Object.getOwnPropertyNames(target); }; } function ProcessEmitWarning(warning) { if (console && console.warn) console.warn(warning); } var NumberIsNaN = Number.isNaN || function NumberIsNaN2(value) { return value !== value; }; function EventEmitter() { EventEmitter.init.call(this); } module3.exports = EventEmitter; module3.exports.once = once; EventEmitter.EventEmitter = EventEmitter; EventEmitter.prototype._events = void 0; EventEmitter.prototype._eventsCount = 0; EventEmitter.prototype._maxListeners = void 0; var defaultMaxListeners = 10; function checkListener(listener) { if (typeof listener !== "function") { throw new TypeError('The "listener" argument must be of type Function. Received type ' + typeof listener); } } Object.defineProperty(EventEmitter, "defaultMaxListeners", { enumerable: true, get: function() { return defaultMaxListeners; }, set: function(arg) { if (typeof arg !== "number" || arg < 0 || NumberIsNaN(arg)) { throw new RangeError('The value of "defaultMaxListeners" is out of range. It must be a non-negative number. Received ' + arg + "."); } defaultMaxListeners = arg; } }); EventEmitter.init = function() { if (this._events === void 0 || this._events === Object.getPrototypeOf(this)._events) { this._events = /* @__PURE__ */ Object.create(null); this._eventsCount = 0; } this._maxListeners = this._maxListeners || void 0; }; EventEmitter.prototype.setMaxListeners = function setMaxListeners(n) { if (typeof n !== "number" || n < 0 || NumberIsNaN(n)) { throw new RangeError('The value of "n" is out of range. It must be a non-negative number. Received ' + n + "."); } this._maxListeners = n; return this; }; function _getMaxListeners(that) { if (that._maxListeners === void 0) return EventEmitter.defaultMaxListeners; return that._maxListeners; } EventEmitter.prototype.getMaxListeners = function getMaxListeners() { return _getMaxListeners(this); }; EventEmitter.prototype.emit = function emit(type) { var args = []; for (var i = 1; i < arguments.length; i++) args.push(arguments[i]); var doError = type === "error"; var events = this._events; if (events !== void 0) doError = doError && events.error === void 0; else if (!doError) return false; if (doError) { var er; if (args.length > 0) er = args[0]; if (er instanceof Error) { throw er; } var err = new Error("Unhandled error." + (er ? " (" + er.message + ")" : "")); err.context = er; throw err; } var handler = events[type]; if (handler === void 0) return false; if (typeof handler === "function") { ReflectApply(handler, this, args); } else { var len = handler.length; var listeners = arrayClone(handler, len); for (var i = 0; i < len; ++i) ReflectApply(listeners[i], this, args); } return true; }; function _addListener(target, type, listener, prepend) { var m; var events; var existing; checkListener(listener); events = target._events; if (events === void 0) { events = target._events = /* @__PURE__ */ Object.create(null); target._eventsCount = 0; } else { if (events.newListener !== void 0) { target.emit( "newListener", type, listener.listener ? listener.listener : listener ); events = target._events; } existing = events[type]; } if (existing === void 0) { existing = events[type] = listener; ++target._eventsCount; } else { if (typeof existing === "function") { existing = events[type] = prepend ? [listener, existing] : [existing, listener]; } else if (prepend) { existing.unshift(listener); } else { existing.push(listener); } m = _getMaxListeners(target); if (m > 0 && existing.length > m && !existing.warned) { existing.warned = true; var w = new Error("Possible EventEmitter memory leak detected. " + existing.length + " " + String(type) + " listeners added. Use emitter.setMaxListeners() to increase limit"); w.name = "MaxListenersExceededWarning"; w.emitter = target; w.type = type; w.count = existing.length; ProcessEmitWarning(w); } } return target; } EventEmitter.prototype.addListener = function addListener(type, listener) { return _addListener(this, type, listener, false); }; EventEmitter.prototype.on = EventEmitter.prototype.addListener; EventEmitter.prototype.prependListener = function prependListener(type, listener) { return _addListener(this, type, listener, true); }; function onceWrapper() { if (!this.fired) { this.target.removeListener(this.type, this.wrapFn); this.fired = true; if (arguments.length === 0) return this.listener.call(this.target); return this.listener.apply(this.target, arguments); } } function _onceWrap(target, type, listener) { var state = { fired: false, wrapFn: void 0, target, type, listener }; var wrapped = onceWrapper.bind(state); wrapped.listener = listener; state.wrapFn = wrapped; return wrapped; } EventEmitter.prototype.once = function once2(type, listener) { checkListener(listener); this.on(type, _onceWrap(this, type, listener)); return this; }; EventEmitter.prototype.prependOnceListener = function prependOnceListener(type, listener) { checkListener(listener); this.prependListener(type, _onceWrap(this, type, listener)); return this; }; EventEmitter.prototype.removeListener = function removeListener(type, listener) { var list, events, position, i, originalListener; checkListener(listener); events = this._events; if (events === void 0) return this; list = events[type]; if (list === void 0) return this; if (list === listener || list.listener === listener) { if (--this._eventsCount === 0) this._events = /* @__PURE__ */ Object.create(null); else { delete events[type]; if (events.removeListener) this.emit("removeListener", type, list.listener || listener); } } else if (typeof list !== "function") { position = -1; for (i = list.length - 1; i >= 0; i--) { if (list[i] === listener || list[i].listener === listener) { originalListener = list[i].listener; position = i; break; } } if (position < 0) return this; if (position === 0) list.shift(); else { spliceOne(list, position); } if (list.length === 1) events[type] = list[0]; if (events.removeListener !== void 0) this.emit("removeListener", type, originalListener || listener); } return this; }; EventEmitter.prototype.off = EventEmitter.prototype.removeListener; EventEmitter.prototype.removeAllListeners = function removeAllListeners(type) { var listeners, events, i; events = this._events; if (events === void 0) return this; if (events.removeListener === void 0) { if (arguments.length === 0) { this._events = /* @__PURE__ */ Object.create(null); this._eventsCount = 0; } else if (events[type] !== void 0) { if (--this._eventsCount === 0) this._events = /* @__PURE__ */ Object.create(null); else delete events[type]; } return this; } if (arguments.length === 0) { var keys = Object.keys(events); var key; for (i = 0; i < keys.length; ++i) { key = keys[i]; if (key === "removeListener") continue; this.removeAllListeners(key); } this.removeAllListeners("removeListener"); this._events = /* @__PURE__ */ Object.create(null); this._eventsCount = 0; return this; } listeners = events[type]; if (typeof listeners === "function") { this.removeListener(type, listeners); } else if (listeners !== void 0) { for (i = listeners.length - 1; i >= 0; i--) { this.removeListener(type, listeners[i]); } } return this; }; function _listeners(target, type, unwrap) { var events = target._events; if (events === void 0) return []; var evlistener = events[type]; if (evlistener === void 0) return []; if (typeof evlistener === "function") return unwrap ? [evlistener.listener || evlistener] : [evlistener]; return unwrap ? unwrapListeners(evlistener) : arrayClone(evlistener, evlistener.length); } EventEmitter.prototype.listeners = function listeners(type) { return _listeners(this, type, true); }; EventEmitter.prototype.rawListeners = function rawListeners(type) { return _listeners(this, type, false); }; EventEmitter.listenerCount = function(emitter, type) { if (typeof emitter.listenerCount === "function") { return emitter.listenerCount(type); } else { return listenerCount.call(emitter, type); } }; EventEmitter.prototype.listenerCount = listenerCount; function listenerCount(type) { var events = this._events; if (events !== void 0) { var evlistener = events[type]; if (typeof evlistener === "function") { return 1; } else if (evlistener !== void 0) { return evlistener.length; } } return 0; } EventEmitter.prototype.eventNames = function eventNames() { return this._eventsCount > 0 ? ReflectOwnKeys(this._events) : []; }; function arrayClone(arr, n) { var copy = new Array(n); for (var i = 0; i < n; ++i) copy[i] = arr[i]; return copy; } function spliceOne(list, index) { for (; index + 1 < list.length; index++) list[index] = list[index + 1]; list.pop(); } function unwrapListeners(arr) { var ret = new Array(arr.length); for (var i = 0; i < ret.length; ++i) { ret[i] = arr[i].listener || arr[i]; } return ret; } function once(emitter, name) { return new Promise(function(resolve, reject) { function errorListener(err) { emitter.removeListener(name, resolver); reject(err); } function resolver() { if (typeof emitter.removeListener === "function") { emitter.removeListener("error", errorListener); } resolve([].slice.call(arguments)); } ; eventTargetAgnosticAddListener(emitter, name, resolver, { once: true }); if (name !== "error") { addErrorHandlerIfEventEmitter(emitter, errorListener, { once: true }); } }); } function addErrorHandlerIfEventEmitter(emitter, handler, flags) { if (typeof emitter.on === "function") { eventTargetAgnosticAddListener(emitter, "error", handler, flags); } } function eventTargetAgnosticAddListener(emitter, name, listener, flags) { if (typeof emitter.on === "function") { if (flags.once) { emitter.once(name, listener); } else { emitter.on(name, listener); } } else if (typeof emitter.addEventListener === "function") { emitter.addEventListener(name, function wrapListener(arg) { if (flags.once) { emitter.removeEventListener(name, wrapListener); } listener(arg); }); } else { throw new TypeError('The "emitter" argument must be of type EventEmitter. Received type ' + typeof emitter); } } }, {}], 345: [function(require2, module3, exports3) { "use strict"; var isCallable = require2("is-callable"); var toStr = Object.prototype.toString; var hasOwnProperty = Object.prototype.hasOwnProperty; var forEachArray = function forEachArray2(array, iterator, receiver) { for (var i = 0, len = array.length; i < len; i++) { if (hasOwnProperty.call(array, i)) { if (receiver == null) { iterator(array[i], i, array); } else { iterator.call(receiver, array[i], i, array); } } } }; var forEachString = function forEachString2(string, iterator, receiver) { for (var i = 0, len = string.length; i < len; i++) { if (receiver == null) { iterator(string.charAt(i), i, string); } else { iterator.call(receiver, string.charAt(i), i, string); } } }; var forEachObject = function forEachObject2(object, iterator, receiver) { for (var k in object) { if (hasOwnProperty.call(object, k)) { if (receiver == null) { iterator(object[k], k, object); } else { iterator.call(receiver, object[k], k, object); } } } }; var forEach = function forEach2(list, iterator, thisArg) { if (!isCallable(iterator)) { throw new TypeError("iterator must be a function"); } var receiver; if (arguments.length >= 3) { receiver = thisArg; } if (toStr.call(list) === "[object Array]") { forEachArray(list, iterator, receiver); } else if (typeof list === "string") { forEachString(list, iterator, receiver); } else { forEachObject(list, iterator, receiver); } }; module3.exports = forEach; }, { "is-callable": 367 }], 346: [function(require2, module3, exports3) { "use strict"; var ERROR_MESSAGE = "Function.prototype.bind called on incompatible "; var slice = Array.prototype.slice; var toStr = Object.prototype.toString; var funcType = "[object Function]"; module3.exports = function bind(that) { var target = this; if (typeof target !== "function" || toStr.call(target) !== funcType) { throw new TypeError(ERROR_MESSAGE + target); } var args = slice.call(arguments, 1); var bound; var binder = function() { if (this instanceof bound) { var result = target.apply( this, args.concat(slice.call(arguments)) ); if (Object(result) === result) { return result; } return this; } else { return target.apply( that, args.concat(slice.call(arguments)) ); } }; var boundLength = Math.max(0, target.length - args.length); var boundArgs = []; for (var i = 0; i < boundLength; i++) { boundArgs.push("$" + i); } bound = Function("binder", "return function (" + boundArgs.join(",") + "){ return binder.apply(this,arguments); }")(binder); if (target.prototype) { var Empty = function Empty2() { }; Empty.prototype = target.prototype; bound.prototype = new Empty(); Empty.prototype = null; } return bound; }; }, {}], 347: [function(require2, module3, exports3) { "use strict"; var implementation = require2("./implementation"); module3.exports = Function.prototype.bind || implementation; }, { "./implementation": 346 }], 348: [function(require2, module3, exports3) { "use strict"; var undefined2; var $SyntaxError = SyntaxError; var $Function = Function; var $TypeError = TypeError; var getEvalledConstructor = function(expressionSyntax) { try { return $Function('"use strict"; return (' + expressionSyntax + ").constructor;")(); } catch (e) { } }; var $gOPD = Object.getOwnPropertyDescriptor; if ($gOPD) { try { $gOPD({}, ""); } catch (e) { $gOPD = null; } } var throwTypeError = function() { throw new $TypeError(); }; var ThrowTypeError = $gOPD ? function() { try { arguments.callee; return throwTypeError; } catch (calleeThrows) { try { return $gOPD(arguments, "callee").get; } catch (gOPDthrows) { return throwTypeError; } } }() : throwTypeError; var hasSymbols = require2("has-symbols")(); var hasProto = require2("has-proto")(); var getProto = Object.getPrototypeOf || (hasProto ? function(x) { return x.__proto__; } : null); var needsEval = {}; var TypedArray = typeof Uint8Array === "undefined" || !getProto ? undefined2 : getProto(Uint8Array); var INTRINSICS = { "%AggregateError%": typeof AggregateError === "undefined" ? undefined2 : AggregateError, "%Array%": Array, "%ArrayBuffer%": typeof ArrayBuffer === "undefined" ? undefined2 : ArrayBuffer, "%ArrayIteratorPrototype%": hasSymbols && getProto ? getProto([][Symbol.iterator]()) : undefined2, "%AsyncFromSyncIteratorPrototype%": undefined2, "%AsyncFunction%": needsEval, "%AsyncGenerator%": needsEval, "%AsyncGeneratorFunction%": needsEval, "%AsyncIteratorPrototype%": needsEval, "%Atomics%": typeof Atomics === "undefined" ? undefined2 : Atomics, "%BigInt%": typeof BigInt === "undefined" ? undefined2 : BigInt, "%BigInt64Array%": typeof BigInt64Array === "undefined" ? undefined2 : BigInt64Array, "%BigUint64Array%": typeof BigUint64Array === "undefined" ? undefined2 : BigUint64Array, "%Boolean%": Boolean, "%DataView%": typeof DataView === "undefined" ? undefined2 : DataView, "%Date%": Date, "%decodeURI%": decodeURI, "%decodeURIComponent%": decodeURIComponent, "%encodeURI%": encodeURI, "%encodeURIComponent%": encodeURIComponent, "%Error%": Error, "%eval%": eval, // eslint-disable-line no-eval "%EvalError%": EvalError, "%Float32Array%": typeof Float32Array === "undefined" ? undefined2 : Float32Array, "%Float64Array%": typeof Float64Array === "undefined" ? undefined2 : Float64Array, "%FinalizationRegistry%": typeof FinalizationRegistry === "undefined" ? undefined2 : FinalizationRegistry, "%Function%": $Function, "%GeneratorFunction%": needsEval, "%Int8Array%": typeof Int8Array === "undefined" ? undefined2 : Int8Array, "%Int16Array%": typeof Int16Array === "undefined" ? undefined2 : Int16Array, "%Int32Array%": typeof Int32Array === "undefined" ? undefined2 : Int32Array, "%isFinite%": isFinite, "%isNaN%": isNaN, "%IteratorPrototype%": hasSymbols && getProto ? getProto(getProto([][Symbol.iterator]())) : undefined2, "%JSON%": typeof JSON === "object" ? JSON : undefined2, "%Map%": typeof Map === "undefined" ? undefined2 : Map, "%MapIteratorPrototype%": typeof Map === "undefined" || !hasSymbols || !getProto ? undefined2 : getProto((/* @__PURE__ */ new Map())[Symbol.iterator]()), "%Math%": Math, "%Number%": Number, "%Object%": Object, "%parseFloat%": parseFloat, "%parseInt%": parseInt, "%Promise%": typeof Promise === "undefined" ? undefined2 : Promise, "%Proxy%": typeof Proxy === "undefined" ? undefined2 : Proxy, "%RangeError%": RangeError, "%ReferenceError%": ReferenceError, "%Reflect%": typeof Reflect === "undefined" ? undefined2 : Reflect, "%RegExp%": RegExp, "%Set%": typeof Set === "undefined" ? undefined2 : Set, "%SetIteratorPrototype%": typeof Set === "undefined" || !hasSymbols || !getProto ? undefined2 : getProto((/* @__PURE__ */ new Set())[Symbol.iterator]()), "%SharedArrayBuffer%": typeof SharedArrayBuffer === "undefined" ? undefined2 : SharedArrayBuffer, "%String%": String, "%StringIteratorPrototype%": hasSymbols && getProto ? getProto(""[Symbol.iterator]()) : undefined2, "%Symbol%": hasSymbols ? Symbol : undefined2, "%SyntaxError%": $SyntaxError, "%ThrowTypeError%": ThrowTypeError, "%TypedArray%": TypedArray, "%TypeError%": $TypeError, "%Uint8Array%": typeof Uint8Array === "undefined" ? undefined2 : Uint8Array, "%Uint8ClampedArray%": typeof Uint8ClampedArray === "undefined" ? undefined2 : Uint8ClampedArray, "%Uint16Array%": typeof Uint16Array === "undefined" ? undefined2 : Uint16Array, "%Uint32Array%": typeof Uint32Array === "undefined" ? undefined2 : Uint32Array, "%URIError%": URIError, "%WeakMap%": typeof WeakMap === "undefined" ? undefined2 : WeakMap, "%WeakRef%": typeof WeakRef === "undefined" ? undefined2 : WeakRef, "%WeakSet%": typeof WeakSet === "undefined" ? undefined2 : WeakSet }; if (getProto) { try { null.error; } catch (e) { var errorProto = getProto(getProto(e)); INTRINSICS["%Error.prototype%"] = errorProto; } } var doEval = function doEval2(name) { var value; if (name === "%AsyncFunction%") { value = getEvalledConstructor("async function () {}"); } else if (name === "%GeneratorFunction%") { value = getEvalledConstructor("function* () {}"); } else if (name === "%AsyncGeneratorFunction%") { value = getEvalledConstructor("async function* () {}"); } else if (name === "%AsyncGenerator%") { var fn = doEval2("%AsyncGeneratorFunction%"); if (fn) { value = fn.prototype; } } else if (name === "%AsyncIteratorPrototype%") { var gen = doEval2("%AsyncGenerator%"); if (gen && getProto) { value = getProto(gen.prototype); } } INTRINSICS[name] = value; return value; }; var LEGACY_ALIASES = { "%ArrayBufferPrototype%": ["ArrayBuffer", "prototype"], "%ArrayPrototype%": ["Array", "prototype"], "%ArrayProto_entries%": ["Array", "prototype", "entries"], "%ArrayProto_forEach%": ["Array", "prototype", "forEach"], "%ArrayProto_keys%": ["Array", "prototype", "keys"], "%ArrayProto_values%": ["Array", "prototype", "values"], "%AsyncFunctionPrototype%": ["AsyncFunction", "prototype"], "%AsyncGenerator%": ["AsyncGeneratorFunction", "prototype"], "%AsyncGeneratorPrototype%": ["AsyncGeneratorFunction", "prototype", "prototype"], "%BooleanPrototype%": ["Boolean", "prototype"], "%DataViewPrototype%": ["DataView", "prototype"], "%DatePrototype%": ["Date", "prototype"], "%ErrorPrototype%": ["Error", "prototype"], "%EvalErrorPrototype%": ["EvalError", "prototype"], "%Float32ArrayPrototype%": ["Float32Array", "prototype"], "%Float64ArrayPrototype%": ["Float64Array", "prototype"], "%FunctionPrototype%": ["Function", "prototype"], "%Generator%": ["GeneratorFunction", "prototype"], "%GeneratorPrototype%": ["GeneratorFunction", "prototype", "prototype"], "%Int8ArrayPrototype%": ["Int8Array", "prototype"], "%Int16ArrayPrototype%": ["Int16Array", "prototype"], "%Int32ArrayPrototype%": ["Int32Array", "prototype"], "%JSONParse%": ["JSON", "parse"], "%JSONStringify%": ["JSON", "stringify"], "%MapPrototype%": ["Map", "prototype"], "%NumberPrototype%": ["Number", "prototype"], "%ObjectPrototype%": ["Object", "prototype"], "%ObjProto_toString%": ["Object", "prototype", "toString"], "%ObjProto_valueOf%": ["Object", "prototype", "valueOf"], "%PromisePrototype%": ["Promise", "prototype"], "%PromiseProto_then%": ["Promise", "prototype", "then"], "%Promise_all%": ["Promise", "all"], "%Promise_reject%": ["Promise", "reject"], "%Promise_resolve%": ["Promise", "resolve"], "%RangeErrorPrototype%": ["RangeError", "prototype"], "%ReferenceErrorPrototype%": ["ReferenceError", "prototype"], "%RegExpPrototype%": ["RegExp", "prototype"], "%SetPrototype%": ["Set", "prototype"], "%SharedArrayBufferPrototype%": ["SharedArrayBuffer", "prototype"], "%StringPrototype%": ["String", "prototype"], "%SymbolPrototype%": ["Symbol", "prototype"], "%SyntaxErrorPrototype%": ["SyntaxError", "prototype"], "%TypedArrayPrototype%": ["TypedArray", "prototype"], "%TypeErrorPrototype%": ["TypeError", "prototype"], "%Uint8ArrayPrototype%": ["Uint8Array", "prototype"], "%Uint8ClampedArrayPrototype%": ["Uint8ClampedArray", "prototype"], "%Uint16ArrayPrototype%": ["Uint16Array", "prototype"], "%Uint32ArrayPrototype%": ["Uint32Array", "prototype"], "%URIErrorPrototype%": ["URIError", "prototype"], "%WeakMapPrototype%": ["WeakMap", "prototype"], "%WeakSetPrototype%": ["WeakSet", "prototype"] }; var bind = require2("function-bind"); var hasOwn = require2("has"); var $concat = bind.call(Function.call, Array.prototype.concat); var $spliceApply = bind.call(Function.apply, Array.prototype.splice); var $replace = bind.call(Function.call, String.prototype.replace); var $strSlice = bind.call(Function.call, String.prototype.slice); var $exec = bind.call(Function.call, RegExp.prototype.exec); var rePropName = /[^%.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|%$))/g; var reEscapeChar = /\\(\\)?/g; var stringToPath = function stringToPath2(string) { var first = $strSlice(string, 0, 1); var last = $strSlice(string, -1); if (first === "%" && last !== "%") { throw new $SyntaxError("invalid intrinsic syntax, expected closing `%`"); } else if (last === "%" && first !== "%") { throw new $SyntaxError("invalid intrinsic syntax, expected opening `%`"); } var result = []; $replace(string, rePropName, function(match, number, quote, subString) { result[result.length] = quote ? $replace(subString, reEscapeChar, "$1") : number || match; }); return result; }; var getBaseIntrinsic = function getBaseIntrinsic2(name, allowMissing) { var intrinsicName = name; var alias; if (hasOwn(LEGACY_ALIASES, intrinsicName)) { alias = LEGACY_ALIASES[intrinsicName]; intrinsicName = "%" + alias[0] + "%"; } if (hasOwn(INTRINSICS, intrinsicName)) { var value = INTRINSICS[intrinsicName]; if (value === needsEval) { value = doEval(intrinsicName); } if (typeof value === "undefined" && !allowMissing) { throw new $TypeError("intrinsic " + name + " exists, but is not available. Please file an issue!"); } return { alias, name: intrinsicName, value }; } throw new $SyntaxError("intrinsic " + name + " does not exist!"); }; module3.exports = function GetIntrinsic(name, allowMissing) { if (typeof name !== "string" || name.length === 0) { throw new $TypeError("intrinsic name must be a non-empty string"); } if (arguments.length > 1 && typeof allowMissing !== "boolean") { throw new $TypeError('"allowMissing" argument must be a boolean'); } if ($exec(/^%?[^%]*%?$/, name) === null) { throw new $SyntaxError("`%` may not be present anywhere but at the beginning and end of the intrinsic name"); } var parts = stringToPath(name); var intrinsicBaseName = parts.length > 0 ? parts[0] : ""; var intrinsic = getBaseIntrinsic("%" + intrinsicBaseName + "%", allowMissing); var intrinsicRealName = intrinsic.name; var value = intrinsic.value; var skipFurtherCaching = false; var alias = intrinsic.alias; if (alias) { intrinsicBaseName = alias[0]; $spliceApply(parts, $concat([0, 1], alias)); } for (var i = 1, isOwn = true; i < parts.length; i += 1) { var part = parts[i]; var first = $strSlice(part, 0, 1); var last = $strSlice(part, -1); if ((first === '"' || first === "'" || first === "`" || (last === '"' || last === "'" || last === "`")) && first !== last) { throw new $SyntaxError("property names with quotes must have matching quotes"); } if (part === "constructor" || !isOwn) { skipFurtherCaching = true; } intrinsicBaseName += "." + part; intrinsicRealName = "%" + intrinsicBaseName + "%"; if (hasOwn(INTRINSICS, intrinsicRealName)) { value = INTRINSICS[intrinsicRealName]; } else if (value != null) { if (!(part in value)) { if (!allowMissing) { throw new $TypeError("base intrinsic for " + name + " exists, but the property is not available."); } return void 0; } if ($gOPD && i + 1 >= parts.length) { var desc = $gOPD(value, part); isOwn = !!desc; if (isOwn && "get" in desc && !("originalValue" in desc.get)) { value = desc.get; } else { value = value[part]; } } else { isOwn = hasOwn(value, part); value = value[part]; } if (isOwn && !skipFurtherCaching) { INTRINSICS[intrinsicRealName] = value; } } } return value; }; }, { "function-bind": 347, "has": 354, "has-proto": 350, "has-symbols": 351 }], 349: [function(require2, module3, exports3) { "use strict"; var GetIntrinsic = require2("get-intrinsic"); var $gOPD = GetIntrinsic("%Object.getOwnPropertyDescriptor%", true); if ($gOPD) { try { $gOPD([], "length"); } catch (e) { $gOPD = null; } } module3.exports = $gOPD; }, { "get-intrinsic": 348 }], 350: [function(require2, module3, exports3) { "use strict"; var test = { foo: {} }; var $Object = Object; module3.exports = function hasProto() { return { __proto__: test }.foo === test.foo && !({ __proto__: null } instanceof $Object); }; }, {}], 351: [function(require2, module3, exports3) { "use strict"; var origSymbol = typeof Symbol !== "undefined" && Symbol; var hasSymbolSham = require2("./shams"); module3.exports = function hasNativeSymbols() { if (typeof origSymbol !== "function") { return false; } if (typeof Symbol !== "function") { return false; } if (typeof origSymbol("foo") !== "symbol") { return false; } if (typeof Symbol("bar") !== "symbol") { return false; } return hasSymbolSham(); }; }, { "./shams": 352 }], 352: [function(require2, module3, exports3) { "use strict"; module3.exports = function hasSymbols() { if (typeof Symbol !== "function" || typeof Object.getOwnPropertySymbols !== "function") { return false; } if (typeof Symbol.iterator === "symbol") { return true; } var obj = {}; var sym = Symbol("test"); var symObj = Object(sym); if (typeof sym === "string") { return false; } if (Object.prototype.toString.call(sym) !== "[object Symbol]") { return false; } if (Object.prototype.toString.call(symObj) !== "[object Symbol]") { return false; } var symVal = 42; obj[sym] = symVal; for (sym in obj) { return false; } if (typeof Object.keys === "function" && Object.keys(obj).length !== 0) { return false; } if (typeof Object.getOwnPropertyNames === "function" && Object.getOwnPropertyNames(obj).length !== 0) { return false; } var syms = Object.getOwnPropertySymbols(obj); if (syms.length !== 1 || syms[0] !== sym) { return false; } if (!Object.prototype.propertyIsEnumerable.call(obj, sym)) { return false; } if (typeof Object.getOwnPropertyDescriptor === "function") { var descriptor = Object.getOwnPropertyDescriptor(obj, sym); if (descriptor.value !== symVal || descriptor.enumerable !== true) { return false; } } return true; }; }, {}], 353: [function(require2, module3, exports3) { "use strict"; var hasSymbols = require2("has-symbols/shams"); module3.exports = function hasToStringTagShams() { return hasSymbols() && !!Symbol.toStringTag; }; }, { "has-symbols/shams": 352 }], 354: [function(require2, module3, exports3) { "use strict"; var bind = require2("function-bind"); module3.exports = bind.call(Function.call, Object.prototype.hasOwnProperty); }, { "function-bind": 347 }], 355: [function(require2, module3, exports3) { var http = require2("http"); var url = require2("url"); var https = module3.exports; for (var key in http) { if (http.hasOwnProperty(key)) https[key] = http[key]; } https.request = function(params, cb) { params = validateParams(params); return http.request.call(this, params, cb); }; https.get = function(params, cb) { params = validateParams(params); return http.get.call(this, params, cb); }; function validateParams(params) { if (typeof params === "string") { params = url.parse(params); } if (!params.protocol) { params.protocol = "https:"; } if (params.protocol !== "https:") { throw new Error('Protocol "' + params.protocol + '" not supported. Expected "https:"'); } return params; } }, { "http": 468, "url": 472 }], 356: [function(require2, module3, exports3) { "use strict"; var util = require2("util"); var ms = require2("ms"); module3.exports = function(t) { if (typeof t === "number") return t; var r = ms(t); if (r === void 0) { var err = new Error(util.format("humanize-ms(%j) result undefined", t)); console.warn(err.stack); } return r; }; }, { "ms": 376, "util": 419 }], 357: [function(require2, module3, exports3) { exports3.read = function(buffer, offset, isLE, mLen, nBytes) { var e, m; var eLen = nBytes * 8 - mLen - 1; var eMax = (1 << eLen) - 1; var eBias = eMax >> 1; var nBits = -7; var i = isLE ? nBytes - 1 : 0; var d = isLE ? -1 : 1; var s = buffer[offset + i]; i += d; e = s & (1 << -nBits) - 1; s >>= -nBits; nBits += eLen; for (; nBits > 0; e = e * 256 + buffer[offset + i], i += d, nBits -= 8) { } m = e & (1 << -nBits) - 1; e >>= -nBits; nBits += mLen; for (; nBits > 0; m = m * 256 + buffer[offset + i], i += d, nBits -= 8) { } if (e === 0) { e = 1 - eBias; } else if (e === eMax) { return m ? NaN : (s ? -1 : 1) * Infinity; } else { m = m + Math.pow(2, mLen); e = e - eBias; } return (s ? -1 : 1) * m * Math.pow(2, e - mLen); }; exports3.write = function(buffer, value, offset, isLE, mLen, nBytes) { var e, m, c; var eLen = nBytes * 8 - mLen - 1; var eMax = (1 << eLen) - 1; var eBias = eMax >> 1; var rt = mLen === 23 ? Math.pow(2, -24) - Math.pow(2, -77) : 0; var i = isLE ? 0 : nBytes - 1; var d = isLE ? 1 : -1; var s = value < 0 || value === 0 && 1 / value < 0 ? 1 : 0; value = Math.abs(value); if (isNaN(value) || value === Infinity) { m = isNaN(value) ? 1 : 0; e = eMax; } else { e = Math.floor(Math.log(value) / Math.LN2); if (value * (c = Math.pow(2, -e)) < 1) { e--; c *= 2; } if (e + eBias >= 1) { value += rt / c; } else { value += rt * Math.pow(2, 1 - eBias); } if (value * c >= 2) { e++; c /= 2; } if (e + eBias >= eMax) { m = 0; e = eMax; } else if (e + eBias >= 1) { m = (value * c - 1) * Math.pow(2, mLen); e = e + eBias; } else { m = value * Math.pow(2, eBias - 1) * Math.pow(2, mLen); e = 0; } } for (; mLen >= 8; buffer[offset + i] = m & 255, i += d, m /= 256, mLen -= 8) { } e = e << mLen | m; eLen += mLen; for (; eLen > 0; buffer[offset + i] = e & 255, i += d, e /= 256, eLen -= 8) { } buffer[offset + i - d] |= s * 128; }; }, {}], 358: [function(require2, module3, exports3) { "use strict"; var types = [ require2("./nextTick"), require2("./queueMicrotask"), require2("./mutation.js"), require2("./messageChannel"), require2("./stateChange"), require2("./timeout") ]; var draining; var currentQueue; var queueIndex = -1; var queue = []; var scheduled = false; function cleanUpNextTick() { if (!draining || !currentQueue) { return; } draining = false; if (currentQueue.length) { queue = currentQueue.concat(queue); } else { queueIndex = -1; } if (queue.length) { nextTick(); } } function nextTick() { if (draining) { return; } scheduled = false; draining = true; var len2 = queue.length; var timeout = setTimeout(cleanUpNextTick); while (len2) { currentQueue = queue; queue = []; while (currentQueue && ++queueIndex < len2) { currentQueue[queueIndex].run(); } queueIndex = -1; len2 = queue.length; } currentQueue = null; queueIndex = -1; draining = false; clearTimeout(timeout); } var scheduleDrain; var i = -1; var len = types.length; while (++i < len) { if (types[i] && types[i].test && types[i].test()) { scheduleDrain = types[i].install(nextTick); break; } } function Item(fun, array) { this.fun = fun; this.array = array; } Item.prototype.run = function() { var fun = this.fun; var array = this.array; switch (array.length) { case 0: return fun(); case 1: return fun(array[0]); case 2: return fun(array[0], array[1]); case 3: return fun(array[0], array[1], array[2]); default: return fun.apply(null, array); } }; module3.exports = immediate; function immediate(task) { var args = new Array(arguments.length - 1); if (arguments.length > 1) { for (var i2 = 1; i2 < arguments.length; i2++) { args[i2 - 1] = arguments[i2]; } } queue.push(new Item(task, args)); if (!scheduled && !draining) { scheduled = true; scheduleDrain(); } } }, { "./messageChannel": 359, "./mutation.js": 360, "./nextTick": 89, "./queueMicrotask": 361, "./stateChange": 362, "./timeout": 363 }], 359: [function(require2, module3, exports3) { (function(global2) { (function() { "use strict"; exports3.test = function() { if (global2.setImmediate) { return false; } return typeof global2.MessageChannel !== "undefined"; }; exports3.install = function(func) { var channel = new global2.MessageChannel(); channel.port1.onmessage = func; return function() { channel.port2.postMessage(0); }; }; }).call(this); }).call(this, typeof global !== "undefined" ? global : typeof self !== "undefined" ? self : typeof window !== "undefined" ? window : {}); }, {}], 360: [function(require2, module3, exports3) { (function(global2) { (function() { "use strict"; var Mutation = global2.MutationObserver || global2.WebKitMutationObserver; exports3.test = function() { return Mutation; }; exports3.install = function(handle) { var called = 0; var observer = new Mutation(handle); var element = global2.document.createTextNode(""); observer.observe(element, { characterData: true }); return function() { element.data = called = ++called % 2; }; }; }).call(this); }).call(this, typeof global !== "undefined" ? global : typeof self !== "undefined" ? self : typeof window !== "undefined" ? window : {}); }, {}], 361: [function(require2, module3, exports3) { (function(global2) { (function() { "use strict"; exports3.test = function() { return typeof global2.queueMicrotask === "function"; }; exports3.install = function(func) { return function() { global2.queueMicrotask(func); }; }; }).call(this); }).call(this, typeof global !== "undefined" ? global : typeof self !== "undefined" ? self : typeof window !== "undefined" ? window : {}); }, {}], 362: [function(require2, module3, exports3) { (function(global2) { (function() { "use strict"; exports3.test = function() { return "document" in global2 && "onreadystatechange" in global2.document.createElement("script"); }; exports3.install = function(handle) { return function() { var scriptEl = global2.document.createElement("script"); scriptEl.onreadystatechange = function() { handle(); scriptEl.onreadystatechange = null; scriptEl.parentNode.removeChild(scriptEl); scriptEl = null; }; global2.document.documentElement.appendChild(scriptEl); return handle; }; }; }).call(this); }).call(this, typeof global !== "undefined" ? global : typeof self !== "undefined" ? self : typeof window !== "undefined" ? window : {}); }, {}], 363: [function(require2, module3, exports3) { "use strict"; exports3.test = function() { return true; }; exports3.install = function(t) { return function() { setTimeout(t, 0); }; }; }, {}], 364: [function(require2, module3, exports3) { if (typeof Object.create === "function") { module3.exports = function inherits(ctor, superCtor) { if (superCtor) { ctor.super_ = superCtor; ctor.prototype = Object.create(superCtor.prototype, { constructor: { value: ctor, enumerable: false, writable: true, configurable: true } }); } }; } else { module3.exports = function inherits(ctor, superCtor) { if (superCtor) { ctor.super_ = superCtor; var TempCtor = function() { }; TempCtor.prototype = superCtor.prototype; ctor.prototype = new TempCtor(); ctor.prototype.constructor = ctor; } }; } }, {}], 365: [function(require2, module3, exports3) { "use strict"; var hasToStringTag = require2("has-tostringtag/shams")(); var callBound = require2("call-bind/callBound"); var $toString = callBound("Object.prototype.toString"); var isStandardArguments = function isArguments(value) { if (hasToStringTag && value && typeof value === "object" && Symbol.toStringTag in value) { return false; } return $toString(value) === "[object Arguments]"; }; var isLegacyArguments = function isArguments(value) { if (isStandardArguments(value)) { return true; } return value !== null && typeof value === "object" && typeof value.length === "number" && value.length >= 0 && $toString(value) !== "[object Array]" && $toString(value.callee) === "[object Function]"; }; var supportsStandardArguments = function() { return isStandardArguments(arguments); }(); isStandardArguments.isLegacyArguments = isLegacyArguments; module3.exports = supportsStandardArguments ? isStandardArguments : isLegacyArguments; }, { "call-bind/callBound": 92, "has-tostringtag/shams": 353 }], 366: [function(require2, module3, exports3) { module3.exports = function(obj) { return obj != null && (isBuffer(obj) || isSlowBuffer(obj) || !!obj._isBuffer); }; function isBuffer(obj) { return !!obj.constructor && typeof obj.constructor.isBuffer === "function" && obj.constructor.isBuffer(obj); } function isSlowBuffer(obj) { return typeof obj.readFloatLE === "function" && typeof obj.slice === "function" && isBuffer(obj.slice(0, 0)); } }, {}], 367: [function(require2, module3, exports3) { "use strict"; var fnToStr = Function.prototype.toString; var reflectApply = typeof Reflect === "object" && Reflect !== null && Reflect.apply; var badArrayLike; var isCallableMarker; if (typeof reflectApply === "function" && typeof Object.defineProperty === "function") { try { badArrayLike = Object.defineProperty({}, "length", { get: function() { throw isCallableMarker; } }); isCallableMarker = {}; reflectApply(function() { throw 42; }, null, badArrayLike); } catch (_) { if (_ !== isCallableMarker) { reflectApply = null; } } } else { reflectApply = null; } var constructorRegex = /^\s*class\b/; var isES6ClassFn = function isES6ClassFunction(value) { try { var fnStr = fnToStr.call(value); return constructorRegex.test(fnStr); } catch (e) { return false; } }; var tryFunctionObject = function tryFunctionToStr(value) { try { if (isES6ClassFn(value)) { return false; } fnToStr.call(value); return true; } catch (e) { return false; } }; var toStr = Object.prototype.toString; var objectClass = "[object Object]"; var fnClass = "[object Function]"; var genClass = "[object GeneratorFunction]"; var ddaClass = "[object HTMLAllCollection]"; var ddaClass2 = "[object HTML document.all class]"; var ddaClass3 = "[object HTMLCollection]"; var hasToStringTag = typeof Symbol === "function" && !!Symbol.toStringTag; var isIE68 = !(0 in [,]); var isDDA = function isDocumentDotAll() { return false; }; if (typeof document === "object") { var all = document.all; if (toStr.call(all) === toStr.call(document.all)) { isDDA = function isDocumentDotAll(value) { if ((isIE68 || !value) && (typeof value === "undefined" || typeof value === "object")) { try { var str = toStr.call(value); return (str === ddaClass || str === ddaClass2 || str === ddaClass3 || str === objectClass) && value("") == null; } catch (e) { } } return false; }; } } module3.exports = reflectApply ? function isCallable(value) { if (isDDA(value)) { return true; } if (!value) { return false; } if (typeof value !== "function" && typeof value !== "object") { return false; } try { reflectApply(value, null, badArrayLike); } catch (e) { if (e !== isCallableMarker) { return false; } } return !isES6ClassFn(value) && tryFunctionObject(value); } : function isCallable(value) { if (isDDA(value)) { return true; } if (!value) { return false; } if (typeof value !== "function" && typeof value !== "object") { return false; } if (hasToStringTag) { return tryFunctionObject(value); } if (isES6ClassFn(value)) { return false; } var strClass = toStr.call(value); if (strClass !== fnClass && strClass !== genClass && !/^\[object HTML/.test(strClass)) { return false; } return tryFunctionObject(value); }; }, {}], 368: [function(require2, module3, exports3) { "use strict"; var toStr = Object.prototype.toString; var fnToStr = Function.prototype.toString; var isFnRegex = /^\s*(?:function)?\*/; var hasToStringTag = require2("has-tostringtag/shams")(); var getProto = Object.getPrototypeOf; var getGeneratorFunc = function() { if (!hasToStringTag) { return false; } try { return Function("return function*() {}")(); } catch (e) { } }; var GeneratorFunction; module3.exports = function isGeneratorFunction(fn) { if (typeof fn !== "function") { return false; } if (isFnRegex.test(fnToStr.call(fn))) { return true; } if (!hasToStringTag) { var str = toStr.call(fn); return str === "[object GeneratorFunction]"; } if (!getProto) { return false; } if (typeof GeneratorFunction === "undefined") { var generatorFunc = getGeneratorFunc(); GeneratorFunction = generatorFunc ? getProto(generatorFunc) : false; } return getProto(fn) === GeneratorFunction; }; }, { "has-tostringtag/shams": 353 }], 369: [function(require2, module3, exports3) { "use strict"; var whichTypedArray = require2("which-typed-array"); module3.exports = function isTypedArray(value) { return !!whichTypedArray(value); }; }, { "which-typed-array": 420 }], 370: [function(require2, module3, exports3) { var toString = {}.toString; module3.exports = Array.isArray || function(arr) { return toString.call(arr) == "[object Array]"; }; }, {}], 371: [function(require2, module3, exports3) { (function(global2) { (function() { ; (function(global3, factory) { typeof exports3 === "object" && typeof module3 !== "undefined" ? module3.exports = factory(global3) : typeof define2 === "function" && define2.amd ? define2(factory) : factory(global3); })(typeof self !== "undefined" ? self : typeof window !== "undefined" ? window : typeof global2 !== "undefined" ? global2 : this, function(global3) { "use strict"; global3 = global3 || {}; var _Base64 = global3.Base64; var version = "2.6.4"; var b64chars = "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/"; var b64tab = function(bin) { var t = {}; for (var i = 0, l = bin.length; i < l; i++) t[bin.charAt(i)] = i; return t; }(b64chars); var fromCharCode = String.fromCharCode; var cb_utob = function(c) { if (c.length < 2) { var cc = c.charCodeAt(0); return cc < 128 ? c : cc < 2048 ? fromCharCode(192 | cc >>> 6) + fromCharCode(128 | cc & 63) : fromCharCode(224 | cc >>> 12 & 15) + fromCharCode(128 | cc >>> 6 & 63) + fromCharCode(128 | cc & 63); } else { var cc = 65536 + (c.charCodeAt(0) - 55296) * 1024 + (c.charCodeAt(1) - 56320); return fromCharCode(240 | cc >>> 18 & 7) + fromCharCode(128 | cc >>> 12 & 63) + fromCharCode(128 | cc >>> 6 & 63) + fromCharCode(128 | cc & 63); } }; var re_utob = /[\uD800-\uDBFF][\uDC00-\uDFFFF]|[^\x00-\x7F]/g; var utob = function(u) { return u.replace(re_utob, cb_utob); }; var cb_encode = function(ccc) { var padlen = [0, 2, 1][ccc.length % 3], ord = ccc.charCodeAt(0) << 16 | (ccc.length > 1 ? ccc.charCodeAt(1) : 0) << 8 | (ccc.length > 2 ? ccc.charCodeAt(2) : 0), chars = [ b64chars.charAt(ord >>> 18), b64chars.charAt(ord >>> 12 & 63), padlen >= 2 ? "=" : b64chars.charAt(ord >>> 6 & 63), padlen >= 1 ? "=" : b64chars.charAt(ord & 63) ]; return chars.join(""); }; var btoa = global3.btoa && typeof global3.btoa == "function" ? function(b) { return global3.btoa(b); } : function(b) { if (b.match(/[^\x00-\xFF]/)) throw new RangeError( "The string contains invalid characters." ); return b.replace(/[\s\S]{1,3}/g, cb_encode); }; var _encode = function(u) { return btoa(utob(String(u))); }; var mkUriSafe = function(b64) { return b64.replace(/[+\/]/g, function(m0) { return m0 == "+" ? "-" : "_"; }).replace(/=/g, ""); }; var encode = function(u, urisafe) { return urisafe ? mkUriSafe(_encode(u)) : _encode(u); }; var encodeURI2 = function(u) { return encode(u, true); }; var fromUint8Array; if (global3.Uint8Array) fromUint8Array = function(a, urisafe) { var b64 = ""; for (var i = 0, l = a.length; i < l; i += 3) { var a0 = a[i], a1 = a[i + 1], a2 = a[i + 2]; var ord = a0 << 16 | a1 << 8 | a2; b64 += b64chars.charAt(ord >>> 18) + b64chars.charAt(ord >>> 12 & 63) + (typeof a1 != "undefined" ? b64chars.charAt(ord >>> 6 & 63) : "=") + (typeof a2 != "undefined" ? b64chars.charAt(ord & 63) : "="); } return urisafe ? mkUriSafe(b64) : b64; }; var re_btou = /[\xC0-\xDF][\x80-\xBF]|[\xE0-\xEF][\x80-\xBF]{2}|[\xF0-\xF7][\x80-\xBF]{3}/g; var cb_btou = function(cccc) { switch (cccc.length) { case 4: var cp = (7 & cccc.charCodeAt(0)) << 18 | (63 & cccc.charCodeAt(1)) << 12 | (63 & cccc.charCodeAt(2)) << 6 | 63 & cccc.charCodeAt(3), offset = cp - 65536; return fromCharCode((offset >>> 10) + 55296) + fromCharCode((offset & 1023) + 56320); case 3: return fromCharCode( (15 & cccc.charCodeAt(0)) << 12 | (63 & cccc.charCodeAt(1)) << 6 | 63 & cccc.charCodeAt(2) ); default: return fromCharCode( (31 & cccc.charCodeAt(0)) << 6 | 63 & cccc.charCodeAt(1) ); } }; var btou = function(b) { return b.replace(re_btou, cb_btou); }; var cb_decode = function(cccc) { var len = cccc.length, padlen = len % 4, n = (len > 0 ? b64tab[cccc.charAt(0)] << 18 : 0) | (len > 1 ? b64tab[cccc.charAt(1)] << 12 : 0) | (len > 2 ? b64tab[cccc.charAt(2)] << 6 : 0) | (len > 3 ? b64tab[cccc.charAt(3)] : 0), chars = [ fromCharCode(n >>> 16), fromCharCode(n >>> 8 & 255), fromCharCode(n & 255) ]; chars.length -= [0, 0, 2, 1][padlen]; return chars.join(""); }; var _atob = global3.atob && typeof global3.atob == "function" ? function(a) { return global3.atob(a); } : function(a) { return a.replace(/\S{1,4}/g, cb_decode); }; var atob = function(a) { return _atob(String(a).replace(/[^A-Za-z0-9\+\/]/g, "")); }; var _decode = function(a) { return btou(_atob(a)); }; var _fromURI = function(a) { return String(a).replace(/[-_]/g, function(m0) { return m0 == "-" ? "+" : "/"; }).replace(/[^A-Za-z0-9\+\/]/g, ""); }; var decode = function(a) { return _decode(_fromURI(a)); }; var toUint8Array; if (global3.Uint8Array) toUint8Array = function(a) { return Uint8Array.from(atob(_fromURI(a)), function(c) { return c.charCodeAt(0); }); }; var noConflict = function() { var Base642 = global3.Base64; global3.Base64 = _Base64; return Base642; }; global3.Base64 = { VERSION: version, atob, btoa, fromBase64: decode, toBase64: encode, utob, encode, encodeURI: encodeURI2, btou, decode, noConflict, fromUint8Array, toUint8Array }; if (typeof Object.defineProperty === "function") { var noEnum = function(v) { return { value: v, enumerable: false, writable: true, configurable: true }; }; global3.Base64.extendString = function() { Object.defineProperty( String.prototype, "fromBase64", noEnum(function() { return decode(this); }) ); Object.defineProperty( String.prototype, "toBase64", noEnum(function(urisafe) { return encode(this, urisafe); }) ); Object.defineProperty( String.prototype, "toBase64URI", noEnum(function() { return encode(this, true); }) ); }; } if (global3["Meteor"]) { Base64 = global3.Base64; } if (typeof module3 !== "undefined" && module3.exports) { module3.exports.Base64 = global3.Base64; } else if (typeof define2 === "function" && define2.amd) { define2([], function() { return global3.Base64; }); } return { Base64: global3.Base64 }; }); }).call(this); }).call(this, typeof global !== "undefined" ? global : typeof self !== "undefined" ? self : typeof window !== "undefined" ? window : {}); }, {}], 372: [function(require2, module3, exports3) { "use strict"; module3.exports = merge; var hasOwnProperty = Object.prototype.hasOwnProperty; function merge(dest, src, redefine) { if (!dest) { throw new TypeError("argument dest is required"); } if (!src) { throw new TypeError("argument src is required"); } if (redefine === void 0) { redefine = true; } Object.getOwnPropertyNames(src).forEach(function forEachOwnPropertyName(name) { if (!redefine && hasOwnProperty.call(dest, name)) { return; } var descriptor = Object.getOwnPropertyDescriptor(src, name); Object.defineProperty(dest, name, descriptor); }); return dest; } }, {}], 373: [function(require2, module3, exports3) { "use strict"; require2("core-js/modules/es.array.map.js"); require2("core-js/modules/es.regexp.exec.js"); require2("core-js/modules/es.string.replace.js"); require2("core-js/modules/es.regexp.constructor.js"); require2("core-js/modules/es.regexp.to-string.js"); function Mime() { this._types = /* @__PURE__ */ Object.create(null); this._extensions = /* @__PURE__ */ Object.create(null); for (var i = 0; i < arguments.length; i++) { this.define(arguments[i]); } this.define = this.define.bind(this); this.getType = this.getType.bind(this); this.getExtension = this.getExtension.bind(this); } Mime.prototype.define = function(typeMap, force) { for (var type in typeMap) { var extensions = typeMap[type].map(function(t) { return t.toLowerCase(); }); type = type.toLowerCase(); for (var i = 0; i < extensions.length; i++) { var ext = extensions[i]; if (ext[0] === "*") { continue; } if (!force && ext in this._types) { throw new Error('Attempt to change mapping for "' + ext + '" extension from "' + this._types[ext] + '" to "' + type + '". Pass `force=true` to allow this, otherwise remove "' + ext + '" from the list of extensions for "' + type + '".'); } this._types[ext] = type; } if (force || !this._extensions[type]) { var _ext = extensions[0]; this._extensions[type] = _ext[0] !== "*" ? _ext : _ext.substr(1); } } }; Mime.prototype.getType = function(path) { path = String(path); var last = path.replace(/^.*[/\\]/, "").toLowerCase(); var ext = last.replace(/^.*\./, "").toLowerCase(); var hasPath = last.length < path.length; var hasDot = ext.length < last.length - 1; return (hasDot || !hasPath) && this._types[ext] || null; }; Mime.prototype.getExtension = function(type) { type = /^\s*([^;\s]*)/.test(type) && RegExp.$1; return type && this._extensions[type.toLowerCase()] || null; }; module3.exports = Mime; }, { "core-js/modules/es.array.map.js": 280, "core-js/modules/es.regexp.constructor.js": 299, "core-js/modules/es.regexp.exec.js": 300, "core-js/modules/es.regexp.to-string.js": 301, "core-js/modules/es.string.replace.js": 305 }], 374: [function(require2, module3, exports3) { "use strict"; var Mime = require2("./Mime"); module3.exports = new Mime(require2("./types/standard")); }, { "./Mime": 373, "./types/standard": 375 }], 375: [function(require2, module3, exports3) { "use strict"; module3.exports = { "application/andrew-inset": ["ez"], "application/applixware": ["aw"], "application/atom+xml": ["atom"], "application/atomcat+xml": ["atomcat"], "application/atomdeleted+xml": ["atomdeleted"], "application/atomsvc+xml": ["atomsvc"], "application/atsc-dwd+xml": ["dwd"], "application/atsc-held+xml": ["held"], "application/atsc-rsat+xml": ["rsat"], "application/bdoc": ["bdoc"], "application/calendar+xml": ["xcs"], "application/ccxml+xml": ["ccxml"], "application/cdfx+xml": ["cdfx"], "application/cdmi-capability": ["cdmia"], "application/cdmi-container": ["cdmic"], "application/cdmi-domain": ["cdmid"], "application/cdmi-object": ["cdmio"], "application/cdmi-queue": ["cdmiq"], "application/cu-seeme": ["cu"], "application/dash+xml": ["mpd"], "application/davmount+xml": ["davmount"], "application/docbook+xml": ["dbk"], "application/dssc+der": ["dssc"], "application/dssc+xml": ["xdssc"], "application/ecmascript": ["es", "ecma"], "application/emma+xml": ["emma"], "application/emotionml+xml": ["emotionml"], "application/epub+zip": ["epub"], "application/exi": ["exi"], "application/express": ["exp"], "application/fdt+xml": ["fdt"], "application/font-tdpfr": ["pfr"], "application/geo+json": ["geojson"], "application/gml+xml": ["gml"], "application/gpx+xml": ["gpx"], "application/gxf": ["gxf"], "application/gzip": ["gz"], "application/hjson": ["hjson"], "application/hyperstudio": ["stk"], "application/inkml+xml": ["ink", "inkml"], "application/ipfix": ["ipfix"], "application/its+xml": ["its"], "application/java-archive": ["jar", "war", "ear"], "application/java-serialized-object": ["ser"], "application/java-vm": ["class"], "application/javascript": ["js", "mjs"], "application/json": ["json", "map"], "application/json5": ["json5"], "application/jsonml+json": ["jsonml"], "application/ld+json": ["jsonld"], "application/lgr+xml": ["lgr"], "application/lost+xml": ["lostxml"], "application/mac-binhex40": ["hqx"], "application/mac-compactpro": ["cpt"], "application/mads+xml": ["mads"], "application/manifest+json": ["webmanifest"], "application/marc": ["mrc"], "application/marcxml+xml": ["mrcx"], "application/mathematica": ["ma", "nb", "mb"], "application/mathml+xml": ["mathml"], "application/mbox": ["mbox"], "application/mediaservercontrol+xml": ["mscml"], "application/metalink+xml": ["metalink"], "application/metalink4+xml": ["meta4"], "application/mets+xml": ["mets"], "application/mmt-aei+xml": ["maei"], "application/mmt-usd+xml": ["musd"], "application/mods+xml": ["mods"], "application/mp21": ["m21", "mp21"], "application/mp4": ["mp4s", "m4p"], "application/msword": ["doc", "dot"], "application/mxf": ["mxf"], "application/n-quads": ["nq"], "application/n-triples": ["nt"], "application/node": ["cjs"], "application/octet-stream": ["bin", "dms", "lrf", "mar", "so", "dist", "distz", "pkg", "bpk", "dump", "elc", "deploy", "exe", "dll", "deb", "dmg", "iso", "img", "msi", "msp", "msm", "buffer"], "application/oda": ["oda"], "application/oebps-package+xml": ["opf"], "application/ogg": ["ogx"], "application/omdoc+xml": ["omdoc"], "application/onenote": ["onetoc", "onetoc2", "onetmp", "onepkg"], "application/oxps": ["oxps"], "application/p2p-overlay+xml": ["relo"], "application/patch-ops-error+xml": ["xer"], "application/pdf": ["pdf"], "application/pgp-encrypted": ["pgp"], "application/pgp-signature": ["asc", "sig"], "application/pics-rules": ["prf"], "application/pkcs10": ["p10"], "application/pkcs7-mime": ["p7m", "p7c"], "application/pkcs7-signature": ["p7s"], "application/pkcs8": ["p8"], "application/pkix-attr-cert": ["ac"], "application/pkix-cert": ["cer"], "application/pkix-crl": ["crl"], "application/pkix-pkipath": ["pkipath"], "application/pkixcmp": ["pki"], "application/pls+xml": ["pls"], "application/postscript": ["ai", "eps", "ps"], "application/provenance+xml": ["provx"], "application/pskc+xml": ["pskcxml"], "application/raml+yaml": ["raml"], "application/rdf+xml": ["rdf", "owl"], "application/reginfo+xml": ["rif"], "application/relax-ng-compact-syntax": ["rnc"], "application/resource-lists+xml": ["rl"], "application/resource-lists-diff+xml": ["rld"], "application/rls-services+xml": ["rs"], "application/route-apd+xml": ["rapd"], "application/route-s-tsid+xml": ["sls"], "application/route-usd+xml": ["rusd"], "application/rpki-ghostbusters": ["gbr"], "application/rpki-manifest": ["mft"], "application/rpki-roa": ["roa"], "application/rsd+xml": ["rsd"], "application/rss+xml": ["rss"], "application/rtf": ["rtf"], "application/sbml+xml": ["sbml"], "application/scvp-cv-request": ["scq"], "application/scvp-cv-response": ["scs"], "application/scvp-vp-request": ["spq"], "application/scvp-vp-response": ["spp"], "application/sdp": ["sdp"], "application/senml+xml": ["senmlx"], "application/sensml+xml": ["sensmlx"], "application/set-payment-initiation": ["setpay"], "application/set-registration-initiation": ["setreg"], "application/shf+xml": ["shf"], "application/sieve": ["siv", "sieve"], "application/smil+xml": ["smi", "smil"], "application/sparql-query": ["rq"], "application/sparql-results+xml": ["srx"], "application/srgs": ["gram"], "application/srgs+xml": ["grxml"], "application/sru+xml": ["sru"], "application/ssdl+xml": ["ssdl"], "application/ssml+xml": ["ssml"], "application/swid+xml": ["swidtag"], "application/tei+xml": ["tei", "teicorpus"], "application/thraud+xml": ["tfi"], "application/timestamped-data": ["tsd"], "application/toml": ["toml"], "application/trig": ["trig"], "application/ttml+xml": ["ttml"], "application/ubjson": ["ubj"], "application/urc-ressheet+xml": ["rsheet"], "application/urc-targetdesc+xml": ["td"], "application/voicexml+xml": ["vxml"], "application/wasm": ["wasm"], "application/widget": ["wgt"], "application/winhlp": ["hlp"], "application/wsdl+xml": ["wsdl"], "application/wspolicy+xml": ["wspolicy"], "application/xaml+xml": ["xaml"], "application/xcap-att+xml": ["xav"], "application/xcap-caps+xml": ["xca"], "application/xcap-diff+xml": ["xdf"], "application/xcap-el+xml": ["xel"], "application/xcap-ns+xml": ["xns"], "application/xenc+xml": ["xenc"], "application/xhtml+xml": ["xhtml", "xht"], "application/xliff+xml": ["xlf"], "application/xml": ["xml", "xsl", "xsd", "rng"], "application/xml-dtd": ["dtd"], "application/xop+xml": ["xop"], "application/xproc+xml": ["xpl"], "application/xslt+xml": ["*xsl", "xslt"], "application/xspf+xml": ["xspf"], "application/xv+xml": ["mxml", "xhvml", "xvml", "xvm"], "application/yang": ["yang"], "application/yin+xml": ["yin"], "application/zip": ["zip"], "audio/3gpp": ["*3gpp"], "audio/adpcm": ["adp"], "audio/amr": ["amr"], "audio/basic": ["au", "snd"], "audio/midi": ["mid", "midi", "kar", "rmi"], "audio/mobile-xmf": ["mxmf"], "audio/mp3": ["*mp3"], "audio/mp4": ["m4a", "mp4a"], "audio/mpeg": ["mpga", "mp2", "mp2a", "mp3", "m2a", "m3a"], "audio/ogg": ["oga", "ogg", "spx", "opus"], "audio/s3m": ["s3m"], "audio/silk": ["sil"], "audio/wav": ["wav"], "audio/wave": ["*wav"], "audio/webm": ["weba"], "audio/xm": ["xm"], "font/collection": ["ttc"], "font/otf": ["otf"], "font/ttf": ["ttf"], "font/woff": ["woff"], "font/woff2": ["woff2"], "image/aces": ["exr"], "image/apng": ["apng"], "image/avif": ["avif"], "image/bmp": ["bmp"], "image/cgm": ["cgm"], "image/dicom-rle": ["drle"], "image/emf": ["emf"], "image/fits": ["fits"], "image/g3fax": ["g3"], "image/gif": ["gif"], "image/heic": ["heic"], "image/heic-sequence": ["heics"], "image/heif": ["heif"], "image/heif-sequence": ["heifs"], "image/hej2k": ["hej2"], "image/hsj2": ["hsj2"], "image/ief": ["ief"], "image/jls": ["jls"], "image/jp2": ["jp2", "jpg2"], "image/jpeg": ["jpeg", "jpg", "jpe"], "image/jph": ["jph"], "image/jphc": ["jhc"], "image/jpm": ["jpm"], "image/jpx": ["jpx", "jpf"], "image/jxr": ["jxr"], "image/jxra": ["jxra"], "image/jxrs": ["jxrs"], "image/jxs": ["jxs"], "image/jxsc": ["jxsc"], "image/jxsi": ["jxsi"], "image/jxss": ["jxss"], "image/ktx": ["ktx"], "image/ktx2": ["ktx2"], "image/png": ["png"], "image/sgi": ["sgi"], "image/svg+xml": ["svg", "svgz"], "image/t38": ["t38"], "image/tiff": ["tif", "tiff"], "image/tiff-fx": ["tfx"], "image/webp": ["webp"], "image/wmf": ["wmf"], "message/disposition-notification": ["disposition-notification"], "message/global": ["u8msg"], "message/global-delivery-status": ["u8dsn"], "message/global-disposition-notification": ["u8mdn"], "message/global-headers": ["u8hdr"], "message/rfc822": ["eml", "mime"], "model/3mf": ["3mf"], "model/gltf+json": ["gltf"], "model/gltf-binary": ["glb"], "model/iges": ["igs", "iges"], "model/mesh": ["msh", "mesh", "silo"], "model/mtl": ["mtl"], "model/obj": ["obj"], "model/step+xml": ["stpx"], "model/step+zip": ["stpz"], "model/step-xml+zip": ["stpxz"], "model/stl": ["stl"], "model/vrml": ["wrl", "vrml"], "model/x3d+binary": ["*x3db", "x3dbz"], "model/x3d+fastinfoset": ["x3db"], "model/x3d+vrml": ["*x3dv", "x3dvz"], "model/x3d+xml": ["x3d", "x3dz"], "model/x3d-vrml": ["x3dv"], "text/cache-manifest": ["appcache", "manifest"], "text/calendar": ["ics", "ifb"], "text/coffeescript": ["coffee", "litcoffee"], "text/css": ["css"], "text/csv": ["csv"], "text/html": ["html", "htm", "shtml"], "text/jade": ["jade"], "text/jsx": ["jsx"], "text/less": ["less"], "text/markdown": ["markdown", "md"], "text/mathml": ["mml"], "text/mdx": ["mdx"], "text/n3": ["n3"], "text/plain": ["txt", "text", "conf", "def", "list", "log", "in", "ini"], "text/richtext": ["rtx"], "text/rtf": ["*rtf"], "text/sgml": ["sgml", "sgm"], "text/shex": ["shex"], "text/slim": ["slim", "slm"], "text/spdx": ["spdx"], "text/stylus": ["stylus", "styl"], "text/tab-separated-values": ["tsv"], "text/troff": ["t", "tr", "roff", "man", "me", "ms"], "text/turtle": ["ttl"], "text/uri-list": ["uri", "uris", "urls"], "text/vcard": ["vcard"], "text/vtt": ["vtt"], "text/xml": ["*xml"], "text/yaml": ["yaml", "yml"], "video/3gpp": ["3gp", "3gpp"], "video/3gpp2": ["3g2"], "video/h261": ["h261"], "video/h263": ["h263"], "video/h264": ["h264"], "video/iso.segment": ["m4s"], "video/jpeg": ["jpgv"], "video/jpm": ["*jpm", "jpgm"], "video/mj2": ["mj2", "mjp2"], "video/mp2t": ["ts"], "video/mp4": ["mp4", "mp4v", "mpg4"], "video/mpeg": ["mpeg", "mpg", "mpe", "m1v", "m2v"], "video/ogg": ["ogv"], "video/quicktime": ["qt", "mov"], "video/webm": ["webm"] }; }, {}], 376: [function(require2, module3, exports3) { var s = 1e3; var m = s * 60; var h = m * 60; var d = h * 24; var w = d * 7; var y = d * 365.25; module3.exports = function(val, options) { options = options || {}; var type = typeof val; if (type === "string" && val.length > 0) { return parse(val); } else if (type === "number" && isFinite(val)) { return options.long ? fmtLong(val) : fmtShort(val); } throw new Error( "val is not a non-empty string or a valid number. val=" + JSON.stringify(val) ); }; function parse(str) { str = String(str); if (str.length > 100) { return; } var match = /^(-?(?:\d+)?\.?\d+) *(milliseconds?|msecs?|ms|seconds?|secs?|s|minutes?|mins?|m|hours?|hrs?|h|days?|d|weeks?|w|years?|yrs?|y)?$/i.exec( str ); if (!match) { return; } var n = parseFloat(match[1]); var type = (match[2] || "ms").toLowerCase(); switch (type) { case "years": case "year": case "yrs": case "yr": case "y": return n * y; case "weeks": case "week": case "w": return n * w; case "days": case "day": case "d": return n * d; case "hours": case "hour": case "hrs": case "hr": case "h": return n * h; case "minutes": case "minute": case "mins": case "min": case "m": return n * m; case "seconds": case "second": case "secs": case "sec": case "s": return n * s; case "milliseconds": case "millisecond": case "msecs": case "msec": case "ms": return n; default: return void 0; } } function fmtShort(ms) { var msAbs = Math.abs(ms); if (msAbs >= d) { return Math.round(ms / d) + "d"; } if (msAbs >= h) { return Math.round(ms / h) + "h"; } if (msAbs >= m) { return Math.round(ms / m) + "m"; } if (msAbs >= s) { return Math.round(ms / s) + "s"; } return ms + "ms"; } function fmtLong(ms) { var msAbs = Math.abs(ms); if (msAbs >= d) { return plural(ms, msAbs, d, "day"); } if (msAbs >= h) { return plural(ms, msAbs, h, "hour"); } if (msAbs >= m) { return plural(ms, msAbs, m, "minute"); } if (msAbs >= s) { return plural(ms, msAbs, s, "second"); } return ms + " ms"; } function plural(ms, msAbs, n, name) { var isPlural = msAbs >= n * 1.5; return Math.round(ms / n) + " " + name + (isPlural ? "s" : ""); } }, {}], 377: [function(require2, module3, exports3) { "use strict"; var getOwnPropertySymbols = Object.getOwnPropertySymbols; var hasOwnProperty = Object.prototype.hasOwnProperty; var propIsEnumerable = Object.prototype.propertyIsEnumerable; function toObject(val) { if (val === null || val === void 0) { throw new TypeError("Object.assign cannot be called with null or undefined"); } return Object(val); } function shouldUseNative() { try { if (!Object.assign) { return false; } var test1 = new String("abc"); test1[5] = "de"; if (Object.getOwnPropertyNames(test1)[0] === "5") { return false; } var test2 = {}; for (var i = 0; i < 10; i++) { test2["_" + String.fromCharCode(i)] = i; } var order2 = Object.getOwnPropertyNames(test2).map(function(n) { return test2[n]; }); if (order2.join("") !== "0123456789") { return false; } var test3 = {}; "abcdefghijklmnopqrst".split("").forEach(function(letter) { test3[letter] = letter; }); if (Object.keys(Object.assign({}, test3)).join("") !== "abcdefghijklmnopqrst") { return false; } return true; } catch (err) { return false; } } module3.exports = shouldUseNative() ? Object.assign : function(target, source) { var from; var to = toObject(target); var symbols; for (var s = 1; s < arguments.length; s++) { from = Object(arguments[s]); for (var key in from) { if (hasOwnProperty.call(from, key)) { to[key] = from[key]; } } if (getOwnPropertySymbols) { symbols = getOwnPropertySymbols(from); for (var i = 0; i < symbols.length; i++) { if (propIsEnumerable.call(from, symbols[i])) { to[symbols[i]] = from[symbols[i]]; } } } } return to; }; }, {}], 378: [function(require2, module3, exports3) { (function(process) { (function() { "use strict"; function assertPath(path) { if (typeof path !== "string") { throw new TypeError("Path must be a string. Received " + JSON.stringify(path)); } } function normalizeStringPosix(path, allowAboveRoot) { var res = ""; var lastSegmentLength = 0; var lastSlash = -1; var dots = 0; var code; for (var i = 0; i <= path.length; ++i) { if (i < path.length) code = path.charCodeAt(i); else if (code === 47) break; else code = 47; if (code === 47) { if (lastSlash === i - 1 || dots === 1) { } else if (lastSlash !== i - 1 && dots === 2) { if (res.length < 2 || lastSegmentLength !== 2 || res.charCodeAt(res.length - 1) !== 46 || res.charCodeAt(res.length - 2) !== 46) { if (res.length > 2) { var lastSlashIndex = res.lastIndexOf("/"); if (lastSlashIndex !== res.length - 1) { if (lastSlashIndex === -1) { res = ""; lastSegmentLength = 0; } else { res = res.slice(0, lastSlashIndex); lastSegmentLength = res.length - 1 - res.lastIndexOf("/"); } lastSlash = i; dots = 0; continue; } } else if (res.length === 2 || res.length === 1) { res = ""; lastSegmentLength = 0; lastSlash = i; dots = 0; continue; } } if (allowAboveRoot) { if (res.length > 0) res += "/.."; else res = ".."; lastSegmentLength = 2; } } else { if (res.length > 0) res += "/" + path.slice(lastSlash + 1, i); else res = path.slice(lastSlash + 1, i); lastSegmentLength = i - lastSlash - 1; } lastSlash = i; dots = 0; } else if (code === 46 && dots !== -1) { ++dots; } else { dots = -1; } } return res; } function _format(sep, pathObject) { var dir = pathObject.dir || pathObject.root; var base = pathObject.base || (pathObject.name || "") + (pathObject.ext || ""); if (!dir) { return base; } if (dir === pathObject.root) { return dir + base; } return dir + sep + base; } var posix = { // path.resolve([from ...], to) resolve: function resolve() { var resolvedPath = ""; var resolvedAbsolute = false; var cwd; for (var i = arguments.length - 1; i >= -1 && !resolvedAbsolute; i--) { var path; if (i >= 0) path = arguments[i]; else { if (cwd === void 0) cwd = process.cwd(); path = cwd; } assertPath(path); if (path.length === 0) { continue; } resolvedPath = path + "/" + resolvedPath; resolvedAbsolute = path.charCodeAt(0) === 47; } resolvedPath = normalizeStringPosix(resolvedPath, !resolvedAbsolute); if (resolvedAbsolute) { if (resolvedPath.length > 0) return "/" + resolvedPath; else return "/"; } else if (resolvedPath.length > 0) { return resolvedPath; } else { return "."; } }, normalize: function normalize(path) { assertPath(path); if (path.length === 0) return "."; var isAbsolute = path.charCodeAt(0) === 47; var trailingSeparator = path.charCodeAt(path.length - 1) === 47; path = normalizeStringPosix(path, !isAbsolute); if (path.length === 0 && !isAbsolute) path = "."; if (path.length > 0 && trailingSeparator) path += "/"; if (isAbsolute) return "/" + path; return path; }, isAbsolute: function isAbsolute(path) { assertPath(path); return path.length > 0 && path.charCodeAt(0) === 47; }, join: function join() { if (arguments.length === 0) return "."; var joined; for (var i = 0; i < arguments.length; ++i) { var arg = arguments[i]; assertPath(arg); if (arg.length > 0) { if (joined === void 0) joined = arg; else joined += "/" + arg; } } if (joined === void 0) return "."; return posix.normalize(joined); }, relative: function relative(from, to) { assertPath(from); assertPath(to); if (from === to) return ""; from = posix.resolve(from); to = posix.resolve(to); if (from === to) return ""; var fromStart = 1; for (; fromStart < from.length; ++fromStart) { if (from.charCodeAt(fromStart) !== 47) break; } var fromEnd = from.length; var fromLen = fromEnd - fromStart; var toStart = 1; for (; toStart < to.length; ++toStart) { if (to.charCodeAt(toStart) !== 47) break; } var toEnd = to.length; var toLen = toEnd - toStart; var length = fromLen < toLen ? fromLen : toLen; var lastCommonSep = -1; var i = 0; for (; i <= length; ++i) { if (i === length) { if (toLen > length) { if (to.charCodeAt(toStart + i) === 47) { return to.slice(toStart + i + 1); } else if (i === 0) { return to.slice(toStart + i); } } else if (fromLen > length) { if (from.charCodeAt(fromStart + i) === 47) { lastCommonSep = i; } else if (i === 0) { lastCommonSep = 0; } } break; } var fromCode = from.charCodeAt(fromStart + i); var toCode = to.charCodeAt(toStart + i); if (fromCode !== toCode) break; else if (fromCode === 47) lastCommonSep = i; } var out = ""; for (i = fromStart + lastCommonSep + 1; i <= fromEnd; ++i) { if (i === fromEnd || from.charCodeAt(i) === 47) { if (out.length === 0) out += ".."; else out += "/.."; } } if (out.length > 0) return out + to.slice(toStart + lastCommonSep); else { toStart += lastCommonSep; if (to.charCodeAt(toStart) === 47) ++toStart; return to.slice(toStart); } }, _makeLong: function _makeLong(path) { return path; }, dirname: function dirname(path) { assertPath(path); if (path.length === 0) return "."; var code = path.charCodeAt(0); var hasRoot = code === 47; var end = -1; var matchedSlash = true; for (var i = path.length - 1; i >= 1; --i) { code = path.charCodeAt(i); if (code === 47) { if (!matchedSlash) { end = i; break; } } else { matchedSlash = false; } } if (end === -1) return hasRoot ? "/" : "."; if (hasRoot && end === 1) return "//"; return path.slice(0, end); }, basename: function basename(path, ext) { if (ext !== void 0 && typeof ext !== "string") throw new TypeError('"ext" argument must be a string'); assertPath(path); var start = 0; var end = -1; var matchedSlash = true; var i; if (ext !== void 0 && ext.length > 0 && ext.length <= path.length) { if (ext.length === path.length && ext === path) return ""; var extIdx = ext.length - 1; var firstNonSlashEnd = -1; for (i = path.length - 1; i >= 0; --i) { var code = path.charCodeAt(i); if (code === 47) { if (!matchedSlash) { start = i + 1; break; } } else { if (firstNonSlashEnd === -1) { matchedSlash = false; firstNonSlashEnd = i + 1; } if (extIdx >= 0) { if (code === ext.charCodeAt(extIdx)) { if (--extIdx === -1) { end = i; } } else { extIdx = -1; end = firstNonSlashEnd; } } } } if (start === end) end = firstNonSlashEnd; else if (end === -1) end = path.length; return path.slice(start, end); } else { for (i = path.length - 1; i >= 0; --i) { if (path.charCodeAt(i) === 47) { if (!matchedSlash) { start = i + 1; break; } } else if (end === -1) { matchedSlash = false; end = i + 1; } } if (end === -1) return ""; return path.slice(start, end); } }, extname: function extname(path) { assertPath(path); var startDot = -1; var startPart = 0; var end = -1; var matchedSlash = true; var preDotState = 0; for (var i = path.length - 1; i >= 0; --i) { var code = path.charCodeAt(i); if (code === 47) { if (!matchedSlash) { startPart = i + 1; break; } continue; } if (end === -1) { matchedSlash = false; end = i + 1; } if (code === 46) { if (startDot === -1) startDot = i; else if (preDotState !== 1) preDotState = 1; } else if (startDot !== -1) { preDotState = -1; } } if (startDot === -1 || end === -1 || // We saw a non-dot character immediately before the dot preDotState === 0 || // The (right-most) trimmed path component is exactly '..' preDotState === 1 && startDot === end - 1 && startDot === startPart + 1) { return ""; } return path.slice(startDot, end); }, format: function format(pathObject) { if (pathObject === null || typeof pathObject !== "object") { throw new TypeError('The "pathObject" argument must be of type Object. Received type ' + typeof pathObject); } return _format("/", pathObject); }, parse: function parse(path) { assertPath(path); var ret = { root: "", dir: "", base: "", ext: "", name: "" }; if (path.length === 0) return ret; var code = path.charCodeAt(0); var isAbsolute = code === 47; var start; if (isAbsolute) { ret.root = "/"; start = 1; } else { start = 0; } var startDot = -1; var startPart = 0; var end = -1; var matchedSlash = true; var i = path.length - 1; var preDotState = 0; for (; i >= start; --i) { code = path.charCodeAt(i); if (code === 47) { if (!matchedSlash) { startPart = i + 1; break; } continue; } if (end === -1) { matchedSlash = false; end = i + 1; } if (code === 46) { if (startDot === -1) startDot = i; else if (preDotState !== 1) preDotState = 1; } else if (startDot !== -1) { preDotState = -1; } } if (startDot === -1 || end === -1 || // We saw a non-dot character immediately before the dot preDotState === 0 || // The (right-most) trimmed path component is exactly '..' preDotState === 1 && startDot === end - 1 && startDot === startPart + 1) { if (end !== -1) { if (startPart === 0 && isAbsolute) ret.base = ret.name = path.slice(1, end); else ret.base = ret.name = path.slice(startPart, end); } } else { if (startPart === 0 && isAbsolute) { ret.name = path.slice(1, startDot); ret.base = path.slice(1, end); } else { ret.name = path.slice(startPart, startDot); ret.base = path.slice(startPart, end); } ret.ext = path.slice(startDot, end); } if (startPart > 0) ret.dir = path.slice(0, startPart - 1); else if (isAbsolute) ret.dir = "/"; return ret; }, sep: "/", delimiter: ":", win32: null, posix: null }; posix.posix = posix; module3.exports = posix; }).call(this); }).call(this, require2("_process")); }, { "_process": 467 }], 379: [function(require2, module3, exports3) { (function(global2) { (function() { ; (function() { "use strict"; var objectTypes = { "function": true, "object": true }; var root = objectTypes[typeof window] && window || this; var oldRoot = root; var freeExports = objectTypes[typeof exports3] && exports3; var freeModule = objectTypes[typeof module3] && module3 && !module3.nodeType && module3; var freeGlobal = freeExports && freeModule && typeof global2 == "object" && global2; if (freeGlobal && (freeGlobal.global === freeGlobal || freeGlobal.window === freeGlobal || freeGlobal.self === freeGlobal)) { root = freeGlobal; } var maxSafeInteger = Math.pow(2, 53) - 1; var reOpera = /\bOpera/; var thisBinding = this; var objectProto = Object.prototype; var hasOwnProperty = objectProto.hasOwnProperty; var toString = objectProto.toString; function capitalize(string) { string = String(string); return string.charAt(0).toUpperCase() + string.slice(1); } function cleanupOS(os, pattern, label) { var data = { "10.0": "10", "6.4": "10 Technical Preview", "6.3": "8.1", "6.2": "8", "6.1": "Server 2008 R2 / 7", "6.0": "Server 2008 / Vista", "5.2": "Server 2003 / XP 64-bit", "5.1": "XP", "5.01": "2000 SP1", "5.0": "2000", "4.0": "NT", "4.90": "ME" }; if (pattern && label && /^Win/i.test(os) && !/^Windows Phone /i.test(os) && (data = data[/[\d.]+$/.exec(os)])) { os = "Windows " + data; } os = String(os); if (pattern && label) { os = os.replace(RegExp(pattern, "i"), label); } os = format( os.replace(/ ce$/i, " CE").replace(/\bhpw/i, "web").replace(/\bMacintosh\b/, "Mac OS").replace(/_PowerPC\b/i, " OS").replace(/\b(OS X) [^ \d]+/i, "$1").replace(/\bMac (OS X)\b/, "$1").replace(/\/(\d)/, " $1").replace(/_/g, ".").replace(/(?: BePC|[ .]*fc[ \d.]+)$/i, "").replace(/\bx86\.64\b/gi, "x86_64").replace(/\b(Windows Phone) OS\b/, "$1").replace(/\b(Chrome OS \w+) [\d.]+\b/, "$1").split(" on ")[0] ); return os; } function each(object, callback) { var index = -1, length = object ? object.length : 0; if (typeof length == "number" && length > -1 && length <= maxSafeInteger) { while (++index < length) { callback(object[index], index, object); } } else { forOwn(object, callback); } } function format(string) { string = trim(string); return /^(?:webOS|i(?:OS|P))/.test(string) ? string : capitalize(string); } function forOwn(object, callback) { for (var key in object) { if (hasOwnProperty.call(object, key)) { callback(object[key], key, object); } } } function getClassOf(value) { return value == null ? capitalize(value) : toString.call(value).slice(8, -1); } function isHostType(object, property) { var type = object != null ? typeof object[property] : "number"; return !/^(?:boolean|number|string|undefined)$/.test(type) && (type == "object" ? !!object[property] : true); } function qualify(string) { return String(string).replace(/([ -])(?!$)/g, "$1?"); } function reduce(array, callback) { var accumulator = null; each(array, function(value, index) { accumulator = callback(accumulator, value, index, array); }); return accumulator; } function trim(string) { return String(string).replace(/^ +| +$/g, ""); } function parse(ua) { var context = root; var isCustomContext = ua && typeof ua == "object" && getClassOf(ua) != "String"; if (isCustomContext) { context = ua; ua = null; } var nav = context.navigator || {}; var userAgent = nav.userAgent || ""; ua || (ua = userAgent); var isModuleScope = isCustomContext || thisBinding == oldRoot; var likeChrome = isCustomContext ? !!nav.likeChrome : /\bChrome\b/.test(ua) && !/internal|\n/i.test(toString.toString()); var objectClass = "Object", airRuntimeClass = isCustomContext ? objectClass : "ScriptBridgingProxyObject", enviroClass = isCustomContext ? objectClass : "Environment", javaClass = isCustomContext && context.java ? "JavaPackage" : getClassOf(context.java), phantomClass = isCustomContext ? objectClass : "RuntimeObject"; var java = /\bJava/.test(javaClass) && context.java; var rhino = java && getClassOf(context.environment) == enviroClass; var alpha = java ? "a" : "α"; var beta = java ? "b" : "β"; var doc = context.document || {}; var opera = context.operamini || context.opera; var operaClass = reOpera.test(operaClass = isCustomContext && opera ? opera["[[Class]]"] : getClassOf(opera)) ? operaClass : opera = null; var data; var arch = ua; var description = []; var prerelease = null; var useFeatures = ua == userAgent; var version = useFeatures && opera && typeof opera.version == "function" && opera.version(); var isSpecialCasedOS; var layout = getLayout([ { "label": "EdgeHTML", "pattern": "Edge" }, "Trident", { "label": "WebKit", "pattern": "AppleWebKit" }, "iCab", "Presto", "NetFront", "Tasman", "KHTML", "Gecko" ]); var name = getName([ "Adobe AIR", "Arora", "Avant Browser", "Breach", "Camino", "Electron", "Epiphany", "Fennec", "Flock", "Galeon", "GreenBrowser", "iCab", "Iceweasel", "K-Meleon", "Konqueror", "Lunascape", "Maxthon", { "label": "Microsoft Edge", "pattern": "(?:Edge|Edg|EdgA|EdgiOS)" }, "Midori", "Nook Browser", "PaleMoon", "PhantomJS", "Raven", "Rekonq", "RockMelt", { "label": "Samsung Internet", "pattern": "SamsungBrowser" }, "SeaMonkey", { "label": "Silk", "pattern": "(?:Cloud9|Silk-Accelerated)" }, "Sleipnir", "SlimBrowser", { "label": "SRWare Iron", "pattern": "Iron" }, "Sunrise", "Swiftfox", "Vivaldi", "Waterfox", "WebPositive", { "label": "Yandex Browser", "pattern": "YaBrowser" }, { "label": "UC Browser", "pattern": "UCBrowser" }, "Opera Mini", { "label": "Opera Mini", "pattern": "OPiOS" }, "Opera", { "label": "Opera", "pattern": "OPR" }, "Chromium", "Chrome", { "label": "Chrome", "pattern": "(?:HeadlessChrome)" }, { "label": "Chrome Mobile", "pattern": "(?:CriOS|CrMo)" }, { "label": "Firefox", "pattern": "(?:Firefox|Minefield)" }, { "label": "Firefox for iOS", "pattern": "FxiOS" }, { "label": "IE", "pattern": "IEMobile" }, { "label": "IE", "pattern": "MSIE" }, "Safari" ]); var product = getProduct([ { "label": "BlackBerry", "pattern": "BB10" }, "BlackBerry", { "label": "Galaxy S", "pattern": "GT-I9000" }, { "label": "Galaxy S2", "pattern": "GT-I9100" }, { "label": "Galaxy S3", "pattern": "GT-I9300" }, { "label": "Galaxy S4", "pattern": "GT-I9500" }, { "label": "Galaxy S5", "pattern": "SM-G900" }, { "label": "Galaxy S6", "pattern": "SM-G920" }, { "label": "Galaxy S6 Edge", "pattern": "SM-G925" }, { "label": "Galaxy S7", "pattern": "SM-G930" }, { "label": "Galaxy S7 Edge", "pattern": "SM-G935" }, "Google TV", "Lumia", "iPad", "iPod", "iPhone", "Kindle", { "label": "Kindle Fire", "pattern": "(?:Cloud9|Silk-Accelerated)" }, "Nexus", "Nook", "PlayBook", "PlayStation Vita", "PlayStation", "TouchPad", "Transformer", { "label": "Wii U", "pattern": "WiiU" }, "Wii", "Xbox One", { "label": "Xbox 360", "pattern": "Xbox" }, "Xoom" ]); var manufacturer = getManufacturer({ "Apple": { "iPad": 1, "iPhone": 1, "iPod": 1 }, "Alcatel": {}, "Archos": {}, "Amazon": { "Kindle": 1, "Kindle Fire": 1 }, "Asus": { "Transformer": 1 }, "Barnes & Noble": { "Nook": 1 }, "BlackBerry": { "PlayBook": 1 }, "Google": { "Google TV": 1, "Nexus": 1 }, "HP": { "TouchPad": 1 }, "HTC": {}, "Huawei": {}, "Lenovo": {}, "LG": {}, "Microsoft": { "Xbox": 1, "Xbox One": 1 }, "Motorola": { "Xoom": 1 }, "Nintendo": { "Wii U": 1, "Wii": 1 }, "Nokia": { "Lumia": 1 }, "Oppo": {}, "Samsung": { "Galaxy S": 1, "Galaxy S2": 1, "Galaxy S3": 1, "Galaxy S4": 1 }, "Sony": { "PlayStation": 1, "PlayStation Vita": 1 }, "Xiaomi": { "Mi": 1, "Redmi": 1 } }); var os = getOS([ "Windows Phone", "KaiOS", "Android", "CentOS", { "label": "Chrome OS", "pattern": "CrOS" }, "Debian", { "label": "DragonFly BSD", "pattern": "DragonFly" }, "Fedora", "FreeBSD", "Gentoo", "Haiku", "Kubuntu", "Linux Mint", "OpenBSD", "Red Hat", "SuSE", "Ubuntu", "Xubuntu", "Cygwin", "Symbian OS", "hpwOS", "webOS ", "webOS", "Tablet OS", "Tizen", "Linux", "Mac OS X", "Macintosh", "Mac", "Windows 98;", "Windows " ]); function getLayout(guesses) { return reduce(guesses, function(result, guess) { return result || RegExp("\\b" + (guess.pattern || qualify(guess)) + "\\b", "i").exec(ua) && (guess.label || guess); }); } function getManufacturer(guesses) { return reduce(guesses, function(result, value, key) { return result || (value[product] || value[/^[a-z]+(?: +[a-z]+\b)*/i.exec(product)] || RegExp("\\b" + qualify(key) + "(?:\\b|\\w*\\d)", "i").exec(ua)) && key; }); } function getName(guesses) { return reduce(guesses, function(result, guess) { return result || RegExp("\\b" + (guess.pattern || qualify(guess)) + "\\b", "i").exec(ua) && (guess.label || guess); }); } function getOS(guesses) { return reduce(guesses, function(result, guess) { var pattern = guess.pattern || qualify(guess); if (!result && (result = RegExp("\\b" + pattern + "(?:/[\\d.]+|[ \\w.]*)", "i").exec(ua))) { result = cleanupOS(result, pattern, guess.label || guess); } return result; }); } function getProduct(guesses) { return reduce(guesses, function(result, guess) { var pattern = guess.pattern || qualify(guess); if (!result && (result = RegExp("\\b" + pattern + " *\\d+[.\\w_]*", "i").exec(ua) || RegExp("\\b" + pattern + " *\\w+-[\\w]*", "i").exec(ua) || RegExp("\\b" + pattern + "(?:; *(?:[a-z]+[_-])?[a-z]+\\d+|[^ ();-]*)", "i").exec(ua))) { if ((result = String(guess.label && !RegExp(pattern, "i").test(guess.label) ? guess.label : result).split("/"))[1] && !/[\d.]+/.test(result[0])) { result[0] += " " + result[1]; } guess = guess.label || guess; result = format(result[0].replace(RegExp(pattern, "i"), guess).replace(RegExp("; *(?:" + guess + "[_-])?", "i"), " ").replace(RegExp("(" + guess + ")[-_.]?(\\w)", "i"), "$1 $2")); } return result; }); } function getVersion(patterns) { return reduce(patterns, function(result, pattern) { return result || (RegExp(pattern + "(?:-[\\d.]+/|(?: for [\\w-]+)?[ /-])([\\d.]+[^ ();/_-]*)", "i").exec(ua) || 0)[1] || null; }); } function toStringPlatform() { return this.description || ""; } layout && (layout = [layout]); if (/\bAndroid\b/.test(os) && !product && (data = /\bAndroid[^;]*;(.*?)(?:Build|\) AppleWebKit)\b/i.exec(ua))) { product = trim(data[1]).replace(/^[a-z]{2}-[a-z]{2};\s*/i, "") || null; } if (manufacturer && !product) { product = getProduct([manufacturer]); } else if (manufacturer && product) { product = product.replace(RegExp("^(" + qualify(manufacturer) + ")[-_.\\s]", "i"), manufacturer + " ").replace(RegExp("^(" + qualify(manufacturer) + ")[-_.]?(\\w)", "i"), manufacturer + " $2"); } if (data = /\bGoogle TV\b/.exec(product)) { product = data[0]; } if (/\bSimulator\b/i.test(ua)) { product = (product ? product + " " : "") + "Simulator"; } if (name == "Opera Mini" && /\bOPiOS\b/.test(ua)) { description.push("running in Turbo/Uncompressed mode"); } if (name == "IE" && /\blike iPhone OS\b/.test(ua)) { data = parse(ua.replace(/like iPhone OS/, "")); manufacturer = data.manufacturer; product = data.product; } else if (/^iP/.test(product)) { name || (name = "Safari"); os = "iOS" + ((data = / OS ([\d_]+)/i.exec(ua)) ? " " + data[1].replace(/_/g, ".") : ""); } else if (name == "Konqueror" && /^Linux\b/i.test(os)) { os = "Kubuntu"; } else if (manufacturer && manufacturer != "Google" && (/Chrome/.test(name) && !/\bMobile Safari\b/i.test(ua) || /\bVita\b/.test(product)) || /\bAndroid\b/.test(os) && /^Chrome/.test(name) && /\bVersion\//i.test(ua)) { name = "Android Browser"; os = /\bAndroid\b/.test(os) ? os : "Android"; } else if (name == "Silk") { if (!/\bMobi/i.test(ua)) { os = "Android"; description.unshift("desktop mode"); } if (/Accelerated *= *true/i.test(ua)) { description.unshift("accelerated"); } } else if (name == "UC Browser" && /\bUCWEB\b/.test(ua)) { description.push("speed mode"); } else if (name == "PaleMoon" && (data = /\bFirefox\/([\d.]+)\b/.exec(ua))) { description.push("identifying as Firefox " + data[1]); } else if (name == "Firefox" && (data = /\b(Mobile|Tablet|TV)\b/i.exec(ua))) { os || (os = "Firefox OS"); product || (product = data[1]); } else if (!name || (data = !/\bMinefield\b/i.test(ua) && /\b(?:Firefox|Safari)\b/.exec(name))) { if (name && !product && /[\/,]|^[^(]+?\)/.test(ua.slice(ua.indexOf(data + "/") + 8))) { name = null; } if ((data = product || manufacturer || os) && (product || manufacturer || /\b(?:Android|Symbian OS|Tablet OS|webOS)\b/.test(os))) { name = /[a-z]+(?: Hat)?/i.exec(/\bAndroid\b/.test(os) ? os : data) + " Browser"; } } else if (name == "Electron" && (data = (/\bChrome\/([\d.]+)\b/.exec(ua) || 0)[1])) { description.push("Chromium " + data); } if (!version) { version = getVersion([ "(?:Cloud9|CriOS|CrMo|Edge|Edg|EdgA|EdgiOS|FxiOS|HeadlessChrome|IEMobile|Iron|Opera ?Mini|OPiOS|OPR|Raven|SamsungBrowser|Silk(?!/[\\d.]+$)|UCBrowser|YaBrowser)", "Version", qualify(name), "(?:Firefox|Minefield|NetFront)" ]); } if (data = layout == "iCab" && parseFloat(version) > 3 && "WebKit" || /\bOpera\b/.test(name) && (/\bOPR\b/.test(ua) ? "Blink" : "Presto") || /\b(?:Midori|Nook|Safari)\b/i.test(ua) && !/^(?:Trident|EdgeHTML)$/.test(layout) && "WebKit" || !layout && /\bMSIE\b/i.test(ua) && (os == "Mac OS" ? "Tasman" : "Trident") || layout == "WebKit" && /\bPlayStation\b(?! Vita\b)/i.test(name) && "NetFront") { layout = [data]; } if (name == "IE" && (data = (/; *(?:XBLWP|ZuneWP)(\d+)/i.exec(ua) || 0)[1])) { name += " Mobile"; os = "Windows Phone " + (/\+$/.test(data) ? data : data + ".x"); description.unshift("desktop mode"); } else if (/\bWPDesktop\b/i.test(ua)) { name = "IE Mobile"; os = "Windows Phone 8.x"; description.unshift("desktop mode"); version || (version = (/\brv:([\d.]+)/.exec(ua) || 0)[1]); } else if (name != "IE" && layout == "Trident" && (data = /\brv:([\d.]+)/.exec(ua))) { if (name) { description.push("identifying as " + name + (version ? " " + version : "")); } name = "IE"; version = data[1]; } if (useFeatures) { if (isHostType(context, "global")) { if (java) { data = java.lang.System; arch = data.getProperty("os.arch"); os = os || data.getProperty("os.name") + " " + data.getProperty("os.version"); } if (rhino) { try { version = context.require("ringo/engine").version.join("."); name = "RingoJS"; } catch (e) { if ((data = context.system) && data.global.system == context.system) { name = "Narwhal"; os || (os = data[0].os || null); } } if (!name) { name = "Rhino"; } } else if (typeof context.process == "object" && !context.process.browser && (data = context.process)) { if (typeof data.versions == "object") { if (typeof data.versions.electron == "string") { description.push("Node " + data.versions.node); name = "Electron"; version = data.versions.electron; } else if (typeof data.versions.nw == "string") { description.push("Chromium " + version, "Node " + data.versions.node); name = "NW.js"; version = data.versions.nw; } } if (!name) { name = "Node.js"; arch = data.arch; os = data.platform; version = /[\d.]+/.exec(data.version); version = version ? version[0] : null; } } } else if (getClassOf(data = context.runtime) == airRuntimeClass) { name = "Adobe AIR"; os = data.flash.system.Capabilities.os; } else if (getClassOf(data = context.phantom) == phantomClass) { name = "PhantomJS"; version = (data = data.version || null) && data.major + "." + data.minor + "." + data.patch; } else if (typeof doc.documentMode == "number" && (data = /\bTrident\/(\d+)/i.exec(ua))) { version = [version, doc.documentMode]; if ((data = +data[1] + 4) != version[1]) { description.push("IE " + version[1] + " mode"); layout && (layout[1] = ""); version[1] = data; } version = name == "IE" ? String(version[1].toFixed(1)) : version[0]; } else if (typeof doc.documentMode == "number" && /^(?:Chrome|Firefox)\b/.test(name)) { description.push("masking as " + name + " " + version); name = "IE"; version = "11.0"; layout = ["Trident"]; os = "Windows"; } os = os && format(os); } if (version && (data = /(?:[ab]|dp|pre|[ab]\d+pre)(?:\d+\+?)?$/i.exec(version) || /(?:alpha|beta)(?: ?\d)?/i.exec(ua + ";" + (useFeatures && nav.appMinorVersion)) || /\bMinefield\b/i.test(ua) && "a")) { prerelease = /b/i.test(data) ? "beta" : "alpha"; version = version.replace(RegExp(data + "\\+?$"), "") + (prerelease == "beta" ? beta : alpha) + (/\d+\+?/.exec(data) || ""); } if (name == "Fennec" || name == "Firefox" && /\b(?:Android|Firefox OS|KaiOS)\b/.test(os)) { name = "Firefox Mobile"; } else if (name == "Maxthon" && version) { version = version.replace(/\.[\d.]+/, ".x"); } else if (/\bXbox\b/i.test(product)) { if (product == "Xbox 360") { os = null; } if (product == "Xbox 360" && /\bIEMobile\b/.test(ua)) { description.unshift("mobile mode"); } } else if ((/^(?:Chrome|IE|Opera)$/.test(name) || name && !product && !/Browser|Mobi/.test(name)) && (os == "Windows CE" || /Mobi/i.test(ua))) { name += " Mobile"; } else if (name == "IE" && useFeatures) { try { if (context.external === null) { description.unshift("platform preview"); } } catch (e) { description.unshift("embedded"); } } else if ((/\bBlackBerry\b/.test(product) || /\bBB10\b/.test(ua)) && (data = (RegExp(product.replace(/ +/g, " *") + "/([.\\d]+)", "i").exec(ua) || 0)[1] || version)) { data = [data, /BB10/.test(ua)]; os = (data[1] ? (product = null, manufacturer = "BlackBerry") : "Device Software") + " " + data[0]; version = null; } else if (this != forOwn && product != "Wii" && (useFeatures && opera || /Opera/.test(name) && /\b(?:MSIE|Firefox)\b/i.test(ua) || name == "Firefox" && /\bOS X (?:\d+\.){2,}/.test(os) || name == "IE" && (os && !/^Win/.test(os) && version > 5.5 || /\bWindows XP\b/.test(os) && version > 8 || version == 8 && !/\bTrident\b/.test(ua))) && !reOpera.test(data = parse.call(forOwn, ua.replace(reOpera, "") + ";")) && data.name) { data = "ing as " + data.name + ((data = data.version) ? " " + data : ""); if (reOpera.test(name)) { if (/\bIE\b/.test(data) && os == "Mac OS") { os = null; } data = "identify" + data; } else { data = "mask" + data; if (operaClass) { name = format(operaClass.replace(/([a-z])([A-Z])/g, "$1 $2")); } else { name = "Opera"; } if (/\bIE\b/.test(data)) { os = null; } if (!useFeatures) { version = null; } } layout = ["Presto"]; description.push(data); } if (data = (/\bAppleWebKit\/([\d.]+\+?)/i.exec(ua) || 0)[1]) { data = [parseFloat(data.replace(/\.(\d)$/, ".0$1")), data]; if (name == "Safari" && data[1].slice(-1) == "+") { name = "WebKit Nightly"; prerelease = "alpha"; version = data[1].slice(0, -1); } else if (version == data[1] || version == (data[2] = (/\bSafari\/([\d.]+\+?)/i.exec(ua) || 0)[1])) { version = null; } data[1] = (/\b(?:Headless)?Chrome\/([\d.]+)/i.exec(ua) || 0)[1]; if (data[0] == 537.36 && data[2] == 537.36 && parseFloat(data[1]) >= 28 && layout == "WebKit") { layout = ["Blink"]; } if (!useFeatures || !likeChrome && !data[1]) { layout && (layout[1] = "like Safari"); data = (data = data[0], data < 400 ? 1 : data < 500 ? 2 : data < 526 ? 3 : data < 533 ? 4 : data < 534 ? "4+" : data < 535 ? 5 : data < 537 ? 6 : data < 538 ? 7 : data < 601 ? 8 : data < 602 ? 9 : data < 604 ? 10 : data < 606 ? 11 : data < 608 ? 12 : "12"); } else { layout && (layout[1] = "like Chrome"); data = data[1] || (data = data[0], data < 530 ? 1 : data < 532 ? 2 : data < 532.05 ? 3 : data < 533 ? 4 : data < 534.03 ? 5 : data < 534.07 ? 6 : data < 534.1 ? 7 : data < 534.13 ? 8 : data < 534.16 ? 9 : data < 534.24 ? 10 : data < 534.3 ? 11 : data < 535.01 ? 12 : data < 535.02 ? "13+" : data < 535.07 ? 15 : data < 535.11 ? 16 : data < 535.19 ? 17 : data < 536.05 ? 18 : data < 536.1 ? 19 : data < 537.01 ? 20 : data < 537.11 ? "21+" : data < 537.13 ? 23 : data < 537.18 ? 24 : data < 537.24 ? 25 : data < 537.36 ? 26 : layout != "Blink" ? "27" : "28"); } layout && (layout[1] += " " + (data += typeof data == "number" ? ".x" : /[.+]/.test(data) ? "" : "+")); if (name == "Safari" && (!version || parseInt(version) > 45)) { version = data; } else if (name == "Chrome" && /\bHeadlessChrome/i.test(ua)) { description.unshift("headless"); } } if (name == "Opera" && (data = /\bzbov|zvav$/.exec(os))) { name += " "; description.unshift("desktop mode"); if (data == "zvav") { name += "Mini"; version = null; } else { name += "Mobile"; } os = os.replace(RegExp(" *" + data + "$"), ""); } else if (name == "Safari" && /\bChrome\b/.exec(layout && layout[1])) { description.unshift("desktop mode"); name = "Chrome Mobile"; version = null; if (/\bOS X\b/.test(os)) { manufacturer = "Apple"; os = "iOS 4.3+"; } else { os = null; } } else if (/\bSRWare Iron\b/.test(name) && !version) { version = getVersion("Chrome"); } if (version && version.indexOf(data = /[\d.]+$/.exec(os)) == 0 && ua.indexOf("/" + data + "-") > -1) { os = trim(os.replace(data, "")); } if (os && os.indexOf(name) != -1 && !RegExp(name + " OS").test(os)) { os = os.replace(RegExp(" *" + qualify(name) + " *"), ""); } if (layout && !/\b(?:Avant|Nook)\b/.test(name) && (/Browser|Lunascape|Maxthon/.test(name) || name != "Safari" && /^iOS/.test(os) && /\bSafari\b/.test(layout[1]) || /^(?:Adobe|Arora|Breach|Midori|Opera|Phantom|Rekonq|Rock|Samsung Internet|Sleipnir|SRWare Iron|Vivaldi|Web)/.test(name) && layout[1])) { (data = layout[layout.length - 1]) && description.push(data); } if (description.length) { description = ["(" + description.join("; ") + ")"]; } if (manufacturer && product && product.indexOf(manufacturer) < 0) { description.push("on " + manufacturer); } if (product) { description.push((/^on /.test(description[description.length - 1]) ? "" : "on ") + product); } if (os) { data = / ([\d.+]+)$/.exec(os); isSpecialCasedOS = data && os.charAt(os.length - data[0].length - 1) == "/"; os = { "architecture": 32, "family": data && !isSpecialCasedOS ? os.replace(data[0], "") : os, "version": data ? data[1] : null, "toString": function() { var version2 = this.version; return this.family + (version2 && !isSpecialCasedOS ? " " + version2 : "") + (this.architecture == 64 ? " 64-bit" : ""); } }; } if ((data = /\b(?:AMD|IA|Win|WOW|x86_|x)64\b/i.exec(arch)) && !/\bi686\b/i.test(arch)) { if (os) { os.architecture = 64; os.family = os.family.replace(RegExp(" *" + data), ""); } if (name && (/\bWOW64\b/i.test(ua) || useFeatures && /\w(?:86|32)$/.test(nav.cpuClass || nav.platform) && !/\bWin64; x64\b/i.test(ua))) { description.unshift("32-bit"); } } else if (os && /^OS X/.test(os.family) && name == "Chrome" && parseFloat(version) >= 39) { os.architecture = 64; } ua || (ua = null); var platform2 = {}; platform2.description = ua; platform2.layout = layout && layout[0]; platform2.manufacturer = manufacturer; platform2.name = name; platform2.prerelease = prerelease; platform2.product = product; platform2.ua = ua; platform2.version = name && version; platform2.os = os || { /** * The CPU architecture the OS is built for. * * @memberOf platform.os * @type number|null */ "architecture": null, /** * The family of the OS. * * Common values include: * "Windows", "Windows Server 2008 R2 / 7", "Windows Server 2008 / Vista", * "Windows XP", "OS X", "Linux", "Ubuntu", "Debian", "Fedora", "Red Hat", * "SuSE", "Android", "iOS" and "Windows Phone" * * @memberOf platform.os * @type string|null */ "family": null, /** * The version of the OS. * * @memberOf platform.os * @type string|null */ "version": null, /** * Returns the OS string. * * @memberOf platform.os * @returns {string} The OS string. */ "toString": function() { return "null"; } }; platform2.parse = parse; platform2.toString = toStringPlatform; if (platform2.version) { description.unshift(version); } if (platform2.name) { description.unshift(name); } if (os && name && !(os == String(os).split(" ")[0] && (os == name.split(" ")[0] || product))) { description.push(product ? "(" + os + ")" : "on " + os); } if (description.length) { platform2.description = description.join(" "); } return platform2; } var platform = parse(); if (typeof define2 == "function" && typeof define2.amd == "object" && define2.amd) { root.platform = platform; define2(function() { return platform; }); } else if (freeExports && freeModule) { forOwn(platform, function(value, key) { freeExports[key] = value; }); } else { root.platform = platform; } }).call(this); }).call(this); }).call(this, typeof global !== "undefined" ? global : typeof self !== "undefined" ? self : typeof window !== "undefined" ? window : {}); }, {}], 380: [function(require2, module3, exports3) { (function(process) { (function() { "use strict"; if (typeof process === "undefined" || !process.version || process.version.indexOf("v0.") === 0 || process.version.indexOf("v1.") === 0 && process.version.indexOf("v1.8.") !== 0) { module3.exports = { nextTick }; } else { module3.exports = process; } function nextTick(fn, arg1, arg2, arg3) { if (typeof fn !== "function") { throw new TypeError('"callback" argument must be a function'); } var len = arguments.length; var args, i; switch (len) { case 0: case 1: return process.nextTick(fn); case 2: return process.nextTick(function afterTickOne() { fn.call(null, arg1); }); case 3: return process.nextTick(function afterTickTwo() { fn.call(null, arg1, arg2); }); case 4: return process.nextTick(function afterTickThree() { fn.call(null, arg1, arg2, arg3); }); default: args = new Array(len - 1); i = 0; while (i < args.length) { args[i++] = arguments[i]; } return process.nextTick(function afterTick() { fn.apply(null, args); }); } } }).call(this); }).call(this, require2("_process")); }, { "_process": 467 }], 381: [function(require2, module3, exports3) { var process = module3.exports = {}; var cachedSetTimeout; var cachedClearTimeout; function defaultSetTimout() { throw new Error("setTimeout has not been defined"); } function defaultClearTimeout() { throw new Error("clearTimeout has not been defined"); } (function() { try { if (typeof setTimeout === "function") { cachedSetTimeout = setTimeout; } else { cachedSetTimeout = defaultSetTimout; } } catch (e) { cachedSetTimeout = defaultSetTimout; } try { if (typeof clearTimeout === "function") { cachedClearTimeout = clearTimeout; } else { cachedClearTimeout = defaultClearTimeout; } } catch (e) { cachedClearTimeout = defaultClearTimeout; } })(); function runTimeout(fun) { if (cachedSetTimeout === setTimeout) { return setTimeout(fun, 0); } if ((cachedSetTimeout === defaultSetTimout || !cachedSetTimeout) && setTimeout) { cachedSetTimeout = setTimeout; return setTimeout(fun, 0); } try { return cachedSetTimeout(fun, 0); } catch (e) { try { return cachedSetTimeout.call(null, fun, 0); } catch (e2) { return cachedSetTimeout.call(this, fun, 0); } } } function runClearTimeout(marker) { if (cachedClearTimeout === clearTimeout) { return clearTimeout(marker); } if ((cachedClearTimeout === defaultClearTimeout || !cachedClearTimeout) && clearTimeout) { cachedClearTimeout = clearTimeout; return clearTimeout(marker); } try { return cachedClearTimeout(marker); } catch (e) { try { return cachedClearTimeout.call(null, marker); } catch (e2) { return cachedClearTimeout.call(this, marker); } } } var queue = []; var draining = false; var currentQueue; var queueIndex = -1; function cleanUpNextTick() { if (!draining || !currentQueue) { return; } draining = false; if (currentQueue.length) { queue = currentQueue.concat(queue); } else { queueIndex = -1; } if (queue.length) { drainQueue(); } } function drainQueue() { if (draining) { return; } var timeout = runTimeout(cleanUpNextTick); draining = true; var len = queue.length; while (len) { currentQueue = queue; queue = []; while (++queueIndex < len) { if (currentQueue) { currentQueue[queueIndex].run(); } } queueIndex = -1; len = queue.length; } currentQueue = null; draining = false; runClearTimeout(timeout); } process.nextTick = function(fun) { var args = new Array(arguments.length - 1); if (arguments.length > 1) { for (var i = 1; i < arguments.length; i++) { args[i - 1] = arguments[i]; } } queue.push(new Item(fun, args)); if (queue.length === 1 && !draining) { runTimeout(drainQueue); } }; function Item(fun, array) { this.fun = fun; this.array = array; } Item.prototype.run = function() { this.fun.apply(null, this.array); }; process.title = "browser"; process.browser = true; process.env = {}; process.argv = []; process.version = ""; process.versions = {}; function noop() { } process.on = noop; process.addListener = noop; process.once = noop; process.off = noop; process.removeListener = noop; process.removeAllListeners = noop; process.emit = noop; process.prependListener = noop; process.prependOnceListener = noop; process.listeners = function(name) { return []; }; process.binding = function(name) { throw new Error("process.binding is not supported"); }; process.cwd = function() { return "/"; }; process.chdir = function(dir) { throw new Error("process.chdir is not supported"); }; process.umask = function() { return 0; }; }, {}], 382: [function(require2, module3, exports3) { (function(global2) { (function() { ; (function(root) { var freeExports = typeof exports3 == "object" && exports3 && !exports3.nodeType && exports3; var freeModule = typeof module3 == "object" && module3 && !module3.nodeType && module3; var freeGlobal = typeof global2 == "object" && global2; if (freeGlobal.global === freeGlobal || freeGlobal.window === freeGlobal || freeGlobal.self === freeGlobal) { root = freeGlobal; } var punycode, maxInt = 2147483647, base = 36, tMin = 1, tMax = 26, skew = 38, damp = 700, initialBias = 72, initialN = 128, delimiter = "-", regexPunycode = /^xn--/, regexNonASCII = /[^\x20-\x7E]/, regexSeparators = /[\x2E\u3002\uFF0E\uFF61]/g, errors = { "overflow": "Overflow: input needs wider integers to process", "not-basic": "Illegal input >= 0x80 (not a basic code point)", "invalid-input": "Invalid input" }, baseMinusTMin = base - tMin, floor = Math.floor, stringFromCharCode = String.fromCharCode, key; function error(type) { throw new RangeError(errors[type]); } function map(array, fn) { var length = array.length; var result = []; while (length--) { result[length] = fn(array[length]); } return result; } function mapDomain(string, fn) { var parts = string.split("@"); var result = ""; if (parts.length > 1) { result = parts[0] + "@"; string = parts[1]; } string = string.replace(regexSeparators, "."); var labels = string.split("."); var encoded = map(labels, fn).join("."); return result + encoded; } function ucs2decode(string) { var output = [], counter = 0, length = string.length, value, extra; while (counter < length) { value = string.charCodeAt(counter++); if (value >= 55296 && value <= 56319 && counter < length) { extra = string.charCodeAt(counter++); if ((extra & 64512) == 56320) { output.push(((value & 1023) << 10) + (extra & 1023) + 65536); } else { output.push(value); counter--; } } else { output.push(value); } } return output; } function ucs2encode(array) { return map(array, function(value) { var output = ""; if (value > 65535) { value -= 65536; output += stringFromCharCode(value >>> 10 & 1023 | 55296); value = 56320 | value & 1023; } output += stringFromCharCode(value); return output; }).join(""); } function basicToDigit(codePoint) { if (codePoint - 48 < 10) { return codePoint - 22; } if (codePoint - 65 < 26) { return codePoint - 65; } if (codePoint - 97 < 26) { return codePoint - 97; } return base; } function digitToBasic(digit, flag) { return digit + 22 + 75 * (digit < 26) - ((flag != 0) << 5); } function adapt(delta, numPoints, firstTime) { var k = 0; delta = firstTime ? floor(delta / damp) : delta >> 1; delta += floor(delta / numPoints); for (; delta > baseMinusTMin * tMax >> 1; k += base) { delta = floor(delta / baseMinusTMin); } return floor(k + (baseMinusTMin + 1) * delta / (delta + skew)); } function decode(input) { var output = [], inputLength = input.length, out, i = 0, n = initialN, bias = initialBias, basic, j, index, oldi, w, k, digit, t, baseMinusT; basic = input.lastIndexOf(delimiter); if (basic < 0) { basic = 0; } for (j = 0; j < basic; ++j) { if (input.charCodeAt(j) >= 128) { error("not-basic"); } output.push(input.charCodeAt(j)); } for (index = basic > 0 ? basic + 1 : 0; index < inputLength; ) { for (oldi = i, w = 1, k = base; ; k += base) { if (index >= inputLength) { error("invalid-input"); } digit = basicToDigit(input.charCodeAt(index++)); if (digit >= base || digit > floor((maxInt - i) / w)) { error("overflow"); } i += digit * w; t = k <= bias ? tMin : k >= bias + tMax ? tMax : k - bias; if (digit < t) { break; } baseMinusT = base - t; if (w > floor(maxInt / baseMinusT)) { error("overflow"); } w *= baseMinusT; } out = output.length + 1; bias = adapt(i - oldi, out, oldi == 0); if (floor(i / out) > maxInt - n) { error("overflow"); } n += floor(i / out); i %= out; output.splice(i++, 0, n); } return ucs2encode(output); } function encode(input) { var n, delta, handledCPCount, basicLength, bias, j, m, q, k, t, currentValue, output = [], inputLength, handledCPCountPlusOne, baseMinusT, qMinusT; input = ucs2decode(input); inputLength = input.length; n = initialN; delta = 0; bias = initialBias; for (j = 0; j < inputLength; ++j) { currentValue = input[j]; if (currentValue < 128) { output.push(stringFromCharCode(currentValue)); } } handledCPCount = basicLength = output.length; if (basicLength) { output.push(delimiter); } while (handledCPCount < inputLength) { for (m = maxInt, j = 0; j < inputLength; ++j) { currentValue = input[j]; if (currentValue >= n && currentValue < m) { m = currentValue; } } handledCPCountPlusOne = handledCPCount + 1; if (m - n > floor((maxInt - delta) / handledCPCountPlusOne)) { error("overflow"); } delta += (m - n) * handledCPCountPlusOne; n = m; for (j = 0; j < inputLength; ++j) { currentValue = input[j]; if (currentValue < n && ++delta > maxInt) { error("overflow"); } if (currentValue == n) { for (q = delta, k = base; ; k += base) { t = k <= bias ? tMin : k >= bias + tMax ? tMax : k - bias; if (q < t) { break; } qMinusT = q - t; baseMinusT = base - t; output.push( stringFromCharCode(digitToBasic(t + qMinusT % baseMinusT, 0)) ); q = floor(qMinusT / baseMinusT); } output.push(stringFromCharCode(digitToBasic(q, 0))); bias = adapt(delta, handledCPCountPlusOne, handledCPCount == basicLength); delta = 0; ++handledCPCount; } } ++delta; ++n; } return output.join(""); } function toUnicode(input) { return mapDomain(input, function(string) { return regexPunycode.test(string) ? decode(string.slice(4).toLowerCase()) : string; }); } function toASCII(input) { return mapDomain(input, function(string) { return regexNonASCII.test(string) ? "xn--" + encode(string) : string; }); } punycode = { /** * A string representing the current Punycode.js version number. * @memberOf punycode * @type String */ "version": "1.4.1", /** * An object of methods to convert from JavaScript's internal character * representation (UCS-2) to Unicode code points, and back. * @see * @memberOf punycode * @type Object */ "ucs2": { "decode": ucs2decode, "encode": ucs2encode }, "decode": decode, "encode": encode, "toASCII": toASCII, "toUnicode": toUnicode }; if (typeof define2 == "function" && typeof define2.amd == "object" && define2.amd) { define2("punycode", function() { return punycode; }); } else if (freeExports && freeModule) { if (module3.exports == freeExports) { freeModule.exports = punycode; } else { for (key in punycode) { punycode.hasOwnProperty(key) && (freeExports[key] = punycode[key]); } } } else { root.punycode = punycode; } })(this); }).call(this); }).call(this, typeof global !== "undefined" ? global : typeof self !== "undefined" ? self : typeof window !== "undefined" ? window : {}); }, {}], 383: [function(require2, module3, exports3) { "use strict"; function hasOwnProperty(obj, prop) { return Object.prototype.hasOwnProperty.call(obj, prop); } module3.exports = function(qs2, sep, eq, options) { sep = sep || "&"; eq = eq || "="; var obj = {}; if (typeof qs2 !== "string" || qs2.length === 0) { return obj; } var regexp = /\+/g; qs2 = qs2.split(sep); var maxKeys = 1e3; if (options && typeof options.maxKeys === "number") { maxKeys = options.maxKeys; } var len = qs2.length; if (maxKeys > 0 && len > maxKeys) { len = maxKeys; } for (var i = 0; i < len; ++i) { var x = qs2[i].replace(regexp, "%20"), idx = x.indexOf(eq), kstr, vstr, k, v; if (idx >= 0) { kstr = x.substr(0, idx); vstr = x.substr(idx + 1); } else { kstr = x; vstr = ""; } k = decodeURIComponent(kstr); v = decodeURIComponent(vstr); if (!hasOwnProperty(obj, k)) { obj[k] = v; } else if (isArray(obj[k])) { obj[k].push(v); } else { obj[k] = [obj[k], v]; } } return obj; }; var isArray = Array.isArray || function(xs) { return Object.prototype.toString.call(xs) === "[object Array]"; }; }, {}], 384: [function(require2, module3, exports3) { "use strict"; var stringifyPrimitive = function(v) { switch (typeof v) { case "string": return v; case "boolean": return v ? "true" : "false"; case "number": return isFinite(v) ? v : ""; default: return ""; } }; module3.exports = function(obj, sep, eq, name) { sep = sep || "&"; eq = eq || "="; if (obj === null) { obj = void 0; } if (typeof obj === "object") { return map(objectKeys(obj), function(k) { var ks = encodeURIComponent(stringifyPrimitive(k)) + eq; if (isArray(obj[k])) { return map(obj[k], function(v) { return ks + encodeURIComponent(stringifyPrimitive(v)); }).join(sep); } else { return ks + encodeURIComponent(stringifyPrimitive(obj[k])); } }).join(sep); } if (!name) return ""; return encodeURIComponent(stringifyPrimitive(name)) + eq + encodeURIComponent(stringifyPrimitive(obj)); }; var isArray = Array.isArray || function(xs) { return Object.prototype.toString.call(xs) === "[object Array]"; }; function map(xs, f) { if (xs.map) return xs.map(f); var res = []; for (var i = 0; i < xs.length; i++) { res.push(f(xs[i], i)); } return res; } var objectKeys = Object.keys || function(obj) { var res = []; for (var key in obj) { if (Object.prototype.hasOwnProperty.call(obj, key)) res.push(key); } return res; }; }, {}], 385: [function(require2, module3, exports3) { "use strict"; exports3.decode = exports3.parse = require2("./decode"); exports3.encode = exports3.stringify = require2("./encode"); }, { "./decode": 383, "./encode": 384 }], 386: [function(require2, module3, exports3) { "use strict"; var pna = require2("process-nextick-args"); var objectKeys = Object.keys || function(obj) { var keys2 = []; for (var key in obj) { keys2.push(key); } return keys2; }; module3.exports = Duplex; var util = Object.create(require2("core-util-is")); util.inherits = require2("inherits"); var Readable = require2("./_stream_readable"); var Writable = require2("./_stream_writable"); util.inherits(Duplex, Readable); { var keys = objectKeys(Writable.prototype); for (var v = 0; v < keys.length; v++) { var method = keys[v]; if (!Duplex.prototype[method]) Duplex.prototype[method] = Writable.prototype[method]; } } function Duplex(options) { if (!(this instanceof Duplex)) return new Duplex(options); Readable.call(this, options); Writable.call(this, options); if (options && options.readable === false) this.readable = false; if (options && options.writable === false) this.writable = false; this.allowHalfOpen = true; if (options && options.allowHalfOpen === false) this.allowHalfOpen = false; this.once("end", onend); } Object.defineProperty(Duplex.prototype, "writableHighWaterMark", { // making it explicit this property is not enumerable // because otherwise some prototype manipulation in // userland will fail enumerable: false, get: function() { return this._writableState.highWaterMark; } }); function onend() { if (this.allowHalfOpen || this._writableState.ended) return; pna.nextTick(onEndNT, this); } function onEndNT(self2) { self2.end(); } Object.defineProperty(Duplex.prototype, "destroyed", { get: function() { if (this._readableState === void 0 || this._writableState === void 0) { return false; } return this._readableState.destroyed && this._writableState.destroyed; }, set: function(value) { if (this._readableState === void 0 || this._writableState === void 0) { return; } this._readableState.destroyed = value; this._writableState.destroyed = value; } }); Duplex.prototype._destroy = function(err, cb) { this.push(null); this.end(); pna.nextTick(cb, err); }; }, { "./_stream_readable": 388, "./_stream_writable": 390, "core-util-is": 341, "inherits": 364, "process-nextick-args": 380 }], 387: [function(require2, module3, exports3) { "use strict"; module3.exports = PassThrough; var Transform = require2("./_stream_transform"); var util = Object.create(require2("core-util-is")); util.inherits = require2("inherits"); util.inherits(PassThrough, Transform); function PassThrough(options) { if (!(this instanceof PassThrough)) return new PassThrough(options); Transform.call(this, options); } PassThrough.prototype._transform = function(chunk, encoding, cb) { cb(null, chunk); }; }, { "./_stream_transform": 389, "core-util-is": 341, "inherits": 364 }], 388: [function(require2, module3, exports3) { (function(process, global2) { (function() { "use strict"; var pna = require2("process-nextick-args"); module3.exports = Readable; var isArray = require2("isarray"); var Duplex; Readable.ReadableState = ReadableState; var EE = require2("events").EventEmitter; var EElistenerCount = function(emitter, type) { return emitter.listeners(type).length; }; var Stream = require2("./internal/streams/stream"); var Buffer = require2("safe-buffer").Buffer; var OurUint8Array = global2.Uint8Array || function() { }; function _uint8ArrayToBuffer(chunk) { return Buffer.from(chunk); } function _isUint8Array(obj) { return Buffer.isBuffer(obj) || obj instanceof OurUint8Array; } var util = Object.create(require2("core-util-is")); util.inherits = require2("inherits"); var debugUtil = require2("util"); var debug = void 0; if (debugUtil && debugUtil.debuglog) { debug = debugUtil.debuglog("stream"); } else { debug = function() { }; } var BufferList = require2("./internal/streams/BufferList"); var destroyImpl = require2("./internal/streams/destroy"); var StringDecoder; util.inherits(Readable, Stream); var kProxyEvents = ["error", "close", "destroy", "pause", "resume"]; function prependListener(emitter, event, fn) { if (typeof emitter.prependListener === "function") return emitter.prependListener(event, fn); if (!emitter._events || !emitter._events[event]) emitter.on(event, fn); else if (isArray(emitter._events[event])) emitter._events[event].unshift(fn); else emitter._events[event] = [fn, emitter._events[event]]; } function ReadableState(options, stream) { Duplex = Duplex || require2("./_stream_duplex"); options = options || {}; var isDuplex = stream instanceof Duplex; this.objectMode = !!options.objectMode; if (isDuplex) this.objectMode = this.objectMode || !!options.readableObjectMode; var hwm = options.highWaterMark; var readableHwm = options.readableHighWaterMark; var defaultHwm = this.objectMode ? 16 : 16 * 1024; if (hwm || hwm === 0) this.highWaterMark = hwm; else if (isDuplex && (readableHwm || readableHwm === 0)) this.highWaterMark = readableHwm; else this.highWaterMark = defaultHwm; this.highWaterMark = Math.floor(this.highWaterMark); this.buffer = new BufferList(); this.length = 0; this.pipes = null; this.pipesCount = 0; this.flowing = null; this.ended = false; this.endEmitted = false; this.reading = false; this.sync = true; this.needReadable = false; this.emittedReadable = false; this.readableListening = false; this.resumeScheduled = false; this.destroyed = false; this.defaultEncoding = options.defaultEncoding || "utf8"; this.awaitDrain = 0; this.readingMore = false; this.decoder = null; this.encoding = null; if (options.encoding) { if (!StringDecoder) StringDecoder = require2("string_decoder/").StringDecoder; this.decoder = new StringDecoder(options.encoding); this.encoding = options.encoding; } } function Readable(options) { Duplex = Duplex || require2("./_stream_duplex"); if (!(this instanceof Readable)) return new Readable(options); this._readableState = new ReadableState(options, this); this.readable = true; if (options) { if (typeof options.read === "function") this._read = options.read; if (typeof options.destroy === "function") this._destroy = options.destroy; } Stream.call(this); } Object.defineProperty(Readable.prototype, "destroyed", { get: function() { if (this._readableState === void 0) { return false; } return this._readableState.destroyed; }, set: function(value) { if (!this._readableState) { return; } this._readableState.destroyed = value; } }); Readable.prototype.destroy = destroyImpl.destroy; Readable.prototype._undestroy = destroyImpl.undestroy; Readable.prototype._destroy = function(err, cb) { this.push(null); cb(err); }; Readable.prototype.push = function(chunk, encoding) { var state = this._readableState; var skipChunkCheck; if (!state.objectMode) { if (typeof chunk === "string") { encoding = encoding || state.defaultEncoding; if (encoding !== state.encoding) { chunk = Buffer.from(chunk, encoding); encoding = ""; } skipChunkCheck = true; } } else { skipChunkCheck = true; } return readableAddChunk(this, chunk, encoding, false, skipChunkCheck); }; Readable.prototype.unshift = function(chunk) { return readableAddChunk(this, chunk, null, true, false); }; function readableAddChunk(stream, chunk, encoding, addToFront, skipChunkCheck) { var state = stream._readableState; if (chunk === null) { state.reading = false; onEofChunk(stream, state); } else { var er; if (!skipChunkCheck) er = chunkInvalid(state, chunk); if (er) { stream.emit("error", er); } else if (state.objectMode || chunk && chunk.length > 0) { if (typeof chunk !== "string" && !state.objectMode && Object.getPrototypeOf(chunk) !== Buffer.prototype) { chunk = _uint8ArrayToBuffer(chunk); } if (addToFront) { if (state.endEmitted) stream.emit("error", new Error("stream.unshift() after end event")); else addChunk(stream, state, chunk, true); } else if (state.ended) { stream.emit("error", new Error("stream.push() after EOF")); } else { state.reading = false; if (state.decoder && !encoding) { chunk = state.decoder.write(chunk); if (state.objectMode || chunk.length !== 0) addChunk(stream, state, chunk, false); else maybeReadMore(stream, state); } else { addChunk(stream, state, chunk, false); } } } else if (!addToFront) { state.reading = false; } } return needMoreData(state); } function addChunk(stream, state, chunk, addToFront) { if (state.flowing && state.length === 0 && !state.sync) { stream.emit("data", chunk); stream.read(0); } else { state.length += state.objectMode ? 1 : chunk.length; if (addToFront) state.buffer.unshift(chunk); else state.buffer.push(chunk); if (state.needReadable) emitReadable(stream); } maybeReadMore(stream, state); } function chunkInvalid(state, chunk) { var er; if (!_isUint8Array(chunk) && typeof chunk !== "string" && chunk !== void 0 && !state.objectMode) { er = new TypeError("Invalid non-string/buffer chunk"); } return er; } function needMoreData(state) { return !state.ended && (state.needReadable || state.length < state.highWaterMark || state.length === 0); } Readable.prototype.isPaused = function() { return this._readableState.flowing === false; }; Readable.prototype.setEncoding = function(enc) { if (!StringDecoder) StringDecoder = require2("string_decoder/").StringDecoder; this._readableState.decoder = new StringDecoder(enc); this._readableState.encoding = enc; return this; }; var MAX_HWM = 8388608; function computeNewHighWaterMark(n) { if (n >= MAX_HWM) { n = MAX_HWM; } else { n--; n |= n >>> 1; n |= n >>> 2; n |= n >>> 4; n |= n >>> 8; n |= n >>> 16; n++; } return n; } function howMuchToRead(n, state) { if (n <= 0 || state.length === 0 && state.ended) return 0; if (state.objectMode) return 1; if (n !== n) { if (state.flowing && state.length) return state.buffer.head.data.length; else return state.length; } if (n > state.highWaterMark) state.highWaterMark = computeNewHighWaterMark(n); if (n <= state.length) return n; if (!state.ended) { state.needReadable = true; return 0; } return state.length; } Readable.prototype.read = function(n) { debug("read", n); n = parseInt(n, 10); var state = this._readableState; var nOrig = n; if (n !== 0) state.emittedReadable = false; if (n === 0 && state.needReadable && (state.length >= state.highWaterMark || state.ended)) { debug("read: emitReadable", state.length, state.ended); if (state.length === 0 && state.ended) endReadable(this); else emitReadable(this); return null; } n = howMuchToRead(n, state); if (n === 0 && state.ended) { if (state.length === 0) endReadable(this); return null; } var doRead = state.needReadable; debug("need readable", doRead); if (state.length === 0 || state.length - n < state.highWaterMark) { doRead = true; debug("length less than watermark", doRead); } if (state.ended || state.reading) { doRead = false; debug("reading or ended", doRead); } else if (doRead) { debug("do read"); state.reading = true; state.sync = true; if (state.length === 0) state.needReadable = true; this._read(state.highWaterMark); state.sync = false; if (!state.reading) n = howMuchToRead(nOrig, state); } var ret; if (n > 0) ret = fromList(n, state); else ret = null; if (ret === null) { state.needReadable = true; n = 0; } else { state.length -= n; } if (state.length === 0) { if (!state.ended) state.needReadable = true; if (nOrig !== n && state.ended) endReadable(this); } if (ret !== null) this.emit("data", ret); return ret; }; function onEofChunk(stream, state) { if (state.ended) return; if (state.decoder) { var chunk = state.decoder.end(); if (chunk && chunk.length) { state.buffer.push(chunk); state.length += state.objectMode ? 1 : chunk.length; } } state.ended = true; emitReadable(stream); } function emitReadable(stream) { var state = stream._readableState; state.needReadable = false; if (!state.emittedReadable) { debug("emitReadable", state.flowing); state.emittedReadable = true; if (state.sync) pna.nextTick(emitReadable_, stream); else emitReadable_(stream); } } function emitReadable_(stream) { debug("emit readable"); stream.emit("readable"); flow(stream); } function maybeReadMore(stream, state) { if (!state.readingMore) { state.readingMore = true; pna.nextTick(maybeReadMore_, stream, state); } } function maybeReadMore_(stream, state) { var len = state.length; while (!state.reading && !state.flowing && !state.ended && state.length < state.highWaterMark) { debug("maybeReadMore read 0"); stream.read(0); if (len === state.length) break; else len = state.length; } state.readingMore = false; } Readable.prototype._read = function(n) { this.emit("error", new Error("_read() is not implemented")); }; Readable.prototype.pipe = function(dest, pipeOpts) { var src = this; var state = this._readableState; switch (state.pipesCount) { case 0: state.pipes = dest; break; case 1: state.pipes = [state.pipes, dest]; break; default: state.pipes.push(dest); break; } state.pipesCount += 1; debug("pipe count=%d opts=%j", state.pipesCount, pipeOpts); var doEnd = (!pipeOpts || pipeOpts.end !== false) && dest !== process.stdout && dest !== process.stderr; var endFn = doEnd ? onend : unpipe; if (state.endEmitted) pna.nextTick(endFn); else src.once("end", endFn); dest.on("unpipe", onunpipe); function onunpipe(readable, unpipeInfo) { debug("onunpipe"); if (readable === src) { if (unpipeInfo && unpipeInfo.hasUnpiped === false) { unpipeInfo.hasUnpiped = true; cleanup(); } } } function onend() { debug("onend"); dest.end(); } var ondrain = pipeOnDrain(src); dest.on("drain", ondrain); var cleanedUp = false; function cleanup() { debug("cleanup"); dest.removeListener("close", onclose); dest.removeListener("finish", onfinish); dest.removeListener("drain", ondrain); dest.removeListener("error", onerror); dest.removeListener("unpipe", onunpipe); src.removeListener("end", onend); src.removeListener("end", unpipe); src.removeListener("data", ondata); cleanedUp = true; if (state.awaitDrain && (!dest._writableState || dest._writableState.needDrain)) ondrain(); } var increasedAwaitDrain = false; src.on("data", ondata); function ondata(chunk) { debug("ondata"); increasedAwaitDrain = false; var ret = dest.write(chunk); if (false === ret && !increasedAwaitDrain) { if ((state.pipesCount === 1 && state.pipes === dest || state.pipesCount > 1 && indexOf(state.pipes, dest) !== -1) && !cleanedUp) { debug("false write response, pause", src._readableState.awaitDrain); src._readableState.awaitDrain++; increasedAwaitDrain = true; } src.pause(); } } function onerror(er) { debug("onerror", er); unpipe(); dest.removeListener("error", onerror); if (EElistenerCount(dest, "error") === 0) dest.emit("error", er); } prependListener(dest, "error", onerror); function onclose() { dest.removeListener("finish", onfinish); unpipe(); } dest.once("close", onclose); function onfinish() { debug("onfinish"); dest.removeListener("close", onclose); unpipe(); } dest.once("finish", onfinish); function unpipe() { debug("unpipe"); src.unpipe(dest); } dest.emit("pipe", src); if (!state.flowing) { debug("pipe resume"); src.resume(); } return dest; }; function pipeOnDrain(src) { return function() { var state = src._readableState; debug("pipeOnDrain", state.awaitDrain); if (state.awaitDrain) state.awaitDrain--; if (state.awaitDrain === 0 && EElistenerCount(src, "data")) { state.flowing = true; flow(src); } }; } Readable.prototype.unpipe = function(dest) { var state = this._readableState; var unpipeInfo = { hasUnpiped: false }; if (state.pipesCount === 0) return this; if (state.pipesCount === 1) { if (dest && dest !== state.pipes) return this; if (!dest) dest = state.pipes; state.pipes = null; state.pipesCount = 0; state.flowing = false; if (dest) dest.emit("unpipe", this, unpipeInfo); return this; } if (!dest) { var dests = state.pipes; var len = state.pipesCount; state.pipes = null; state.pipesCount = 0; state.flowing = false; for (var i = 0; i < len; i++) { dests[i].emit("unpipe", this, unpipeInfo); } return this; } var index = indexOf(state.pipes, dest); if (index === -1) return this; state.pipes.splice(index, 1); state.pipesCount -= 1; if (state.pipesCount === 1) state.pipes = state.pipes[0]; dest.emit("unpipe", this, unpipeInfo); return this; }; Readable.prototype.on = function(ev, fn) { var res = Stream.prototype.on.call(this, ev, fn); if (ev === "data") { if (this._readableState.flowing !== false) this.resume(); } else if (ev === "readable") { var state = this._readableState; if (!state.endEmitted && !state.readableListening) { state.readableListening = state.needReadable = true; state.emittedReadable = false; if (!state.reading) { pna.nextTick(nReadingNextTick, this); } else if (state.length) { emitReadable(this); } } } return res; }; Readable.prototype.addListener = Readable.prototype.on; function nReadingNextTick(self2) { debug("readable nexttick read 0"); self2.read(0); } Readable.prototype.resume = function() { var state = this._readableState; if (!state.flowing) { debug("resume"); state.flowing = true; resume(this, state); } return this; }; function resume(stream, state) { if (!state.resumeScheduled) { state.resumeScheduled = true; pna.nextTick(resume_, stream, state); } } function resume_(stream, state) { if (!state.reading) { debug("resume read 0"); stream.read(0); } state.resumeScheduled = false; state.awaitDrain = 0; stream.emit("resume"); flow(stream); if (state.flowing && !state.reading) stream.read(0); } Readable.prototype.pause = function() { debug("call pause flowing=%j", this._readableState.flowing); if (false !== this._readableState.flowing) { debug("pause"); this._readableState.flowing = false; this.emit("pause"); } return this; }; function flow(stream) { var state = stream._readableState; debug("flow", state.flowing); while (state.flowing && stream.read() !== null) { } } Readable.prototype.wrap = function(stream) { var _this = this; var state = this._readableState; var paused = false; stream.on("end", function() { debug("wrapped end"); if (state.decoder && !state.ended) { var chunk = state.decoder.end(); if (chunk && chunk.length) _this.push(chunk); } _this.push(null); }); stream.on("data", function(chunk) { debug("wrapped data"); if (state.decoder) chunk = state.decoder.write(chunk); if (state.objectMode && (chunk === null || chunk === void 0)) return; else if (!state.objectMode && (!chunk || !chunk.length)) return; var ret = _this.push(chunk); if (!ret) { paused = true; stream.pause(); } }); for (var i in stream) { if (this[i] === void 0 && typeof stream[i] === "function") { this[i] = function(method) { return function() { return stream[method].apply(stream, arguments); }; }(i); } } for (var n = 0; n < kProxyEvents.length; n++) { stream.on(kProxyEvents[n], this.emit.bind(this, kProxyEvents[n])); } this._read = function(n2) { debug("wrapped _read", n2); if (paused) { paused = false; stream.resume(); } }; return this; }; Object.defineProperty(Readable.prototype, "readableHighWaterMark", { // making it explicit this property is not enumerable // because otherwise some prototype manipulation in // userland will fail enumerable: false, get: function() { return this._readableState.highWaterMark; } }); Readable._fromList = fromList; function fromList(n, state) { if (state.length === 0) return null; var ret; if (state.objectMode) ret = state.buffer.shift(); else if (!n || n >= state.length) { if (state.decoder) ret = state.buffer.join(""); else if (state.buffer.length === 1) ret = state.buffer.head.data; else ret = state.buffer.concat(state.length); state.buffer.clear(); } else { ret = fromListPartial(n, state.buffer, state.decoder); } return ret; } function fromListPartial(n, list, hasStrings) { var ret; if (n < list.head.data.length) { ret = list.head.data.slice(0, n); list.head.data = list.head.data.slice(n); } else if (n === list.head.data.length) { ret = list.shift(); } else { ret = hasStrings ? copyFromBufferString(n, list) : copyFromBuffer(n, list); } return ret; } function copyFromBufferString(n, list) { var p = list.head; var c = 1; var ret = p.data; n -= ret.length; while (p = p.next) { var str = p.data; var nb = n > str.length ? str.length : n; if (nb === str.length) ret += str; else ret += str.slice(0, n); n -= nb; if (n === 0) { if (nb === str.length) { ++c; if (p.next) list.head = p.next; else list.head = list.tail = null; } else { list.head = p; p.data = str.slice(nb); } break; } ++c; } list.length -= c; return ret; } function copyFromBuffer(n, list) { var ret = Buffer.allocUnsafe(n); var p = list.head; var c = 1; p.data.copy(ret); n -= p.data.length; while (p = p.next) { var buf = p.data; var nb = n > buf.length ? buf.length : n; buf.copy(ret, ret.length - n, 0, nb); n -= nb; if (n === 0) { if (nb === buf.length) { ++c; if (p.next) list.head = p.next; else list.head = list.tail = null; } else { list.head = p; p.data = buf.slice(nb); } break; } ++c; } list.length -= c; return ret; } function endReadable(stream) { var state = stream._readableState; if (state.length > 0) throw new Error('"endReadable()" called on non-empty stream'); if (!state.endEmitted) { state.ended = true; pna.nextTick(endReadableNT, state, stream); } } function endReadableNT(state, stream) { if (!state.endEmitted && state.length === 0) { state.endEmitted = true; stream.readable = false; stream.emit("end"); } } function indexOf(xs, x) { for (var i = 0, l = xs.length; i < l; i++) { if (xs[i] === x) return i; } return -1; } }).call(this); }).call(this, require2("_process"), typeof global !== "undefined" ? global : typeof self !== "undefined" ? self : typeof window !== "undefined" ? window : {}); }, { "./_stream_duplex": 386, "./internal/streams/BufferList": 391, "./internal/streams/destroy": 392, "./internal/streams/stream": 393, "_process": 467, "core-util-is": 341, "events": 344, "inherits": 364, "isarray": 370, "process-nextick-args": 380, "safe-buffer": 396, "string_decoder/": 413, "util": 89 }], 389: [function(require2, module3, exports3) { "use strict"; module3.exports = Transform; var Duplex = require2("./_stream_duplex"); var util = Object.create(require2("core-util-is")); util.inherits = require2("inherits"); util.inherits(Transform, Duplex); function afterTransform(er, data) { var ts = this._transformState; ts.transforming = false; var cb = ts.writecb; if (!cb) { return this.emit("error", new Error("write callback called multiple times")); } ts.writechunk = null; ts.writecb = null; if (data != null) this.push(data); cb(er); var rs = this._readableState; rs.reading = false; if (rs.needReadable || rs.length < rs.highWaterMark) { this._read(rs.highWaterMark); } } function Transform(options) { if (!(this instanceof Transform)) return new Transform(options); Duplex.call(this, options); this._transformState = { afterTransform: afterTransform.bind(this), needTransform: false, transforming: false, writecb: null, writechunk: null, writeencoding: null }; this._readableState.needReadable = true; this._readableState.sync = false; if (options) { if (typeof options.transform === "function") this._transform = options.transform; if (typeof options.flush === "function") this._flush = options.flush; } this.on("prefinish", prefinish); } function prefinish() { var _this = this; if (typeof this._flush === "function") { this._flush(function(er, data) { done(_this, er, data); }); } else { done(this, null, null); } } Transform.prototype.push = function(chunk, encoding) { this._transformState.needTransform = false; return Duplex.prototype.push.call(this, chunk, encoding); }; Transform.prototype._transform = function(chunk, encoding, cb) { throw new Error("_transform() is not implemented"); }; Transform.prototype._write = function(chunk, encoding, cb) { var ts = this._transformState; ts.writecb = cb; ts.writechunk = chunk; ts.writeencoding = encoding; if (!ts.transforming) { var rs = this._readableState; if (ts.needTransform || rs.needReadable || rs.length < rs.highWaterMark) this._read(rs.highWaterMark); } }; Transform.prototype._read = function(n) { var ts = this._transformState; if (ts.writechunk !== null && ts.writecb && !ts.transforming) { ts.transforming = true; this._transform(ts.writechunk, ts.writeencoding, ts.afterTransform); } else { ts.needTransform = true; } }; Transform.prototype._destroy = function(err, cb) { var _this2 = this; Duplex.prototype._destroy.call(this, err, function(err2) { cb(err2); _this2.emit("close"); }); }; function done(stream, er, data) { if (er) return stream.emit("error", er); if (data != null) stream.push(data); if (stream._writableState.length) throw new Error("Calling transform done when ws.length != 0"); if (stream._transformState.transforming) throw new Error("Calling transform done when still transforming"); return stream.push(null); } }, { "./_stream_duplex": 386, "core-util-is": 341, "inherits": 364 }], 390: [function(require2, module3, exports3) { (function(process, global2, setImmediate) { (function() { "use strict"; var pna = require2("process-nextick-args"); module3.exports = Writable; function WriteReq(chunk, encoding, cb) { this.chunk = chunk; this.encoding = encoding; this.callback = cb; this.next = null; } function CorkedRequest(state) { var _this = this; this.next = null; this.entry = null; this.finish = function() { onCorkedFinish(_this, state); }; } var asyncWrite = !process.browser && ["v0.10", "v0.9."].indexOf(process.version.slice(0, 5)) > -1 ? setImmediate : pna.nextTick; var Duplex; Writable.WritableState = WritableState; var util = Object.create(require2("core-util-is")); util.inherits = require2("inherits"); var internalUtil = { deprecate: require2("util-deprecate") }; var Stream = require2("./internal/streams/stream"); var Buffer = require2("safe-buffer").Buffer; var OurUint8Array = global2.Uint8Array || function() { }; function _uint8ArrayToBuffer(chunk) { return Buffer.from(chunk); } function _isUint8Array(obj) { return Buffer.isBuffer(obj) || obj instanceof OurUint8Array; } var destroyImpl = require2("./internal/streams/destroy"); util.inherits(Writable, Stream); function nop() { } function WritableState(options, stream) { Duplex = Duplex || require2("./_stream_duplex"); options = options || {}; var isDuplex = stream instanceof Duplex; this.objectMode = !!options.objectMode; if (isDuplex) this.objectMode = this.objectMode || !!options.writableObjectMode; var hwm = options.highWaterMark; var writableHwm = options.writableHighWaterMark; var defaultHwm = this.objectMode ? 16 : 16 * 1024; if (hwm || hwm === 0) this.highWaterMark = hwm; else if (isDuplex && (writableHwm || writableHwm === 0)) this.highWaterMark = writableHwm; else this.highWaterMark = defaultHwm; this.highWaterMark = Math.floor(this.highWaterMark); this.finalCalled = false; this.needDrain = false; this.ending = false; this.ended = false; this.finished = false; this.destroyed = false; var noDecode = options.decodeStrings === false; this.decodeStrings = !noDecode; this.defaultEncoding = options.defaultEncoding || "utf8"; this.length = 0; this.writing = false; this.corked = 0; this.sync = true; this.bufferProcessing = false; this.onwrite = function(er) { onwrite(stream, er); }; this.writecb = null; this.writelen = 0; this.bufferedRequest = null; this.lastBufferedRequest = null; this.pendingcb = 0; this.prefinished = false; this.errorEmitted = false; this.bufferedRequestCount = 0; this.corkedRequestsFree = new CorkedRequest(this); } WritableState.prototype.getBuffer = function getBuffer() { var current = this.bufferedRequest; var out = []; while (current) { out.push(current); current = current.next; } return out; }; (function() { try { Object.defineProperty(WritableState.prototype, "buffer", { get: internalUtil.deprecate(function() { return this.getBuffer(); }, "_writableState.buffer is deprecated. Use _writableState.getBuffer instead.", "DEP0003") }); } catch (_) { } })(); var realHasInstance; if (typeof Symbol === "function" && Symbol.hasInstance && typeof Function.prototype[Symbol.hasInstance] === "function") { realHasInstance = Function.prototype[Symbol.hasInstance]; Object.defineProperty(Writable, Symbol.hasInstance, { value: function(object) { if (realHasInstance.call(this, object)) return true; if (this !== Writable) return false; return object && object._writableState instanceof WritableState; } }); } else { realHasInstance = function(object) { return object instanceof this; }; } function Writable(options) { Duplex = Duplex || require2("./_stream_duplex"); if (!realHasInstance.call(Writable, this) && !(this instanceof Duplex)) { return new Writable(options); } this._writableState = new WritableState(options, this); this.writable = true; if (options) { if (typeof options.write === "function") this._write = options.write; if (typeof options.writev === "function") this._writev = options.writev; if (typeof options.destroy === "function") this._destroy = options.destroy; if (typeof options.final === "function") this._final = options.final; } Stream.call(this); } Writable.prototype.pipe = function() { this.emit("error", new Error("Cannot pipe, not readable")); }; function writeAfterEnd(stream, cb) { var er = new Error("write after end"); stream.emit("error", er); pna.nextTick(cb, er); } function validChunk(stream, state, chunk, cb) { var valid = true; var er = false; if (chunk === null) { er = new TypeError("May not write null values to stream"); } else if (typeof chunk !== "string" && chunk !== void 0 && !state.objectMode) { er = new TypeError("Invalid non-string/buffer chunk"); } if (er) { stream.emit("error", er); pna.nextTick(cb, er); valid = false; } return valid; } Writable.prototype.write = function(chunk, encoding, cb) { var state = this._writableState; var ret = false; var isBuf = !state.objectMode && _isUint8Array(chunk); if (isBuf && !Buffer.isBuffer(chunk)) { chunk = _uint8ArrayToBuffer(chunk); } if (typeof encoding === "function") { cb = encoding; encoding = null; } if (isBuf) encoding = "buffer"; else if (!encoding) encoding = state.defaultEncoding; if (typeof cb !== "function") cb = nop; if (state.ended) writeAfterEnd(this, cb); else if (isBuf || validChunk(this, state, chunk, cb)) { state.pendingcb++; ret = writeOrBuffer(this, state, isBuf, chunk, encoding, cb); } return ret; }; Writable.prototype.cork = function() { var state = this._writableState; state.corked++; }; Writable.prototype.uncork = function() { var state = this._writableState; if (state.corked) { state.corked--; if (!state.writing && !state.corked && !state.finished && !state.bufferProcessing && state.bufferedRequest) clearBuffer(this, state); } }; Writable.prototype.setDefaultEncoding = function setDefaultEncoding(encoding) { if (typeof encoding === "string") encoding = encoding.toLowerCase(); if (!(["hex", "utf8", "utf-8", "ascii", "binary", "base64", "ucs2", "ucs-2", "utf16le", "utf-16le", "raw"].indexOf((encoding + "").toLowerCase()) > -1)) throw new TypeError("Unknown encoding: " + encoding); this._writableState.defaultEncoding = encoding; return this; }; function decodeChunk(state, chunk, encoding) { if (!state.objectMode && state.decodeStrings !== false && typeof chunk === "string") { chunk = Buffer.from(chunk, encoding); } return chunk; } Object.defineProperty(Writable.prototype, "writableHighWaterMark", { // making it explicit this property is not enumerable // because otherwise some prototype manipulation in // userland will fail enumerable: false, get: function() { return this._writableState.highWaterMark; } }); function writeOrBuffer(stream, state, isBuf, chunk, encoding, cb) { if (!isBuf) { var newChunk = decodeChunk(state, chunk, encoding); if (chunk !== newChunk) { isBuf = true; encoding = "buffer"; chunk = newChunk; } } var len = state.objectMode ? 1 : chunk.length; state.length += len; var ret = state.length < state.highWaterMark; if (!ret) state.needDrain = true; if (state.writing || state.corked) { var last = state.lastBufferedRequest; state.lastBufferedRequest = { chunk, encoding, isBuf, callback: cb, next: null }; if (last) { last.next = state.lastBufferedRequest; } else { state.bufferedRequest = state.lastBufferedRequest; } state.bufferedRequestCount += 1; } else { doWrite(stream, state, false, len, chunk, encoding, cb); } return ret; } function doWrite(stream, state, writev, len, chunk, encoding, cb) { state.writelen = len; state.writecb = cb; state.writing = true; state.sync = true; if (writev) stream._writev(chunk, state.onwrite); else stream._write(chunk, encoding, state.onwrite); state.sync = false; } function onwriteError(stream, state, sync, er, cb) { --state.pendingcb; if (sync) { pna.nextTick(cb, er); pna.nextTick(finishMaybe, stream, state); stream._writableState.errorEmitted = true; stream.emit("error", er); } else { cb(er); stream._writableState.errorEmitted = true; stream.emit("error", er); finishMaybe(stream, state); } } function onwriteStateUpdate(state) { state.writing = false; state.writecb = null; state.length -= state.writelen; state.writelen = 0; } function onwrite(stream, er) { var state = stream._writableState; var sync = state.sync; var cb = state.writecb; onwriteStateUpdate(state); if (er) onwriteError(stream, state, sync, er, cb); else { var finished = needFinish(state); if (!finished && !state.corked && !state.bufferProcessing && state.bufferedRequest) { clearBuffer(stream, state); } if (sync) { asyncWrite(afterWrite, stream, state, finished, cb); } else { afterWrite(stream, state, finished, cb); } } } function afterWrite(stream, state, finished, cb) { if (!finished) onwriteDrain(stream, state); state.pendingcb--; cb(); finishMaybe(stream, state); } function onwriteDrain(stream, state) { if (state.length === 0 && state.needDrain) { state.needDrain = false; stream.emit("drain"); } } function clearBuffer(stream, state) { state.bufferProcessing = true; var entry = state.bufferedRequest; if (stream._writev && entry && entry.next) { var l = state.bufferedRequestCount; var buffer = new Array(l); var holder = state.corkedRequestsFree; holder.entry = entry; var count = 0; var allBuffers = true; while (entry) { buffer[count] = entry; if (!entry.isBuf) allBuffers = false; entry = entry.next; count += 1; } buffer.allBuffers = allBuffers; doWrite(stream, state, true, state.length, buffer, "", holder.finish); state.pendingcb++; state.lastBufferedRequest = null; if (holder.next) { state.corkedRequestsFree = holder.next; holder.next = null; } else { state.corkedRequestsFree = new CorkedRequest(state); } state.bufferedRequestCount = 0; } else { while (entry) { var chunk = entry.chunk; var encoding = entry.encoding; var cb = entry.callback; var len = state.objectMode ? 1 : chunk.length; doWrite(stream, state, false, len, chunk, encoding, cb); entry = entry.next; state.bufferedRequestCount--; if (state.writing) { break; } } if (entry === null) state.lastBufferedRequest = null; } state.bufferedRequest = entry; state.bufferProcessing = false; } Writable.prototype._write = function(chunk, encoding, cb) { cb(new Error("_write() is not implemented")); }; Writable.prototype._writev = null; Writable.prototype.end = function(chunk, encoding, cb) { var state = this._writableState; if (typeof chunk === "function") { cb = chunk; chunk = null; encoding = null; } else if (typeof encoding === "function") { cb = encoding; encoding = null; } if (chunk !== null && chunk !== void 0) this.write(chunk, encoding); if (state.corked) { state.corked = 1; this.uncork(); } if (!state.ending && !state.finished) endWritable(this, state, cb); }; function needFinish(state) { return state.ending && state.length === 0 && state.bufferedRequest === null && !state.finished && !state.writing; } function callFinal(stream, state) { stream._final(function(err) { state.pendingcb--; if (err) { stream.emit("error", err); } state.prefinished = true; stream.emit("prefinish"); finishMaybe(stream, state); }); } function prefinish(stream, state) { if (!state.prefinished && !state.finalCalled) { if (typeof stream._final === "function") { state.pendingcb++; state.finalCalled = true; pna.nextTick(callFinal, stream, state); } else { state.prefinished = true; stream.emit("prefinish"); } } } function finishMaybe(stream, state) { var need = needFinish(state); if (need) { prefinish(stream, state); if (state.pendingcb === 0) { state.finished = true; stream.emit("finish"); } } return need; } function endWritable(stream, state, cb) { state.ending = true; finishMaybe(stream, state); if (cb) { if (state.finished) pna.nextTick(cb); else stream.once("finish", cb); } state.ended = true; stream.writable = false; } function onCorkedFinish(corkReq, state, err) { var entry = corkReq.entry; corkReq.entry = null; while (entry) { var cb = entry.callback; state.pendingcb--; cb(err); entry = entry.next; } if (state.corkedRequestsFree) { state.corkedRequestsFree.next = corkReq; } else { state.corkedRequestsFree = corkReq; } } Object.defineProperty(Writable.prototype, "destroyed", { get: function() { if (this._writableState === void 0) { return false; } return this._writableState.destroyed; }, set: function(value) { if (!this._writableState) { return; } this._writableState.destroyed = value; } }); Writable.prototype.destroy = destroyImpl.destroy; Writable.prototype._undestroy = destroyImpl.undestroy; Writable.prototype._destroy = function(err, cb) { this.end(); cb(err); }; }).call(this); }).call(this, require2("_process"), typeof global !== "undefined" ? global : typeof self !== "undefined" ? self : typeof window !== "undefined" ? window : {}, require2("timers").setImmediate); }, { "./_stream_duplex": 386, "./internal/streams/destroy": 392, "./internal/streams/stream": 393, "_process": 467, "core-util-is": 341, "inherits": 364, "process-nextick-args": 380, "safe-buffer": 396, "timers": 414, "util-deprecate": 416 }], 391: [function(require2, module3, exports3) { "use strict"; function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } var Buffer = require2("safe-buffer").Buffer; var util = require2("util"); function copyBuffer(src, target, offset) { src.copy(target, offset); } module3.exports = function() { function BufferList() { _classCallCheck(this, BufferList); this.head = null; this.tail = null; this.length = 0; } BufferList.prototype.push = function push(v) { var entry = { data: v, next: null }; if (this.length > 0) this.tail.next = entry; else this.head = entry; this.tail = entry; ++this.length; }; BufferList.prototype.unshift = function unshift(v) { var entry = { data: v, next: this.head }; if (this.length === 0) this.tail = entry; this.head = entry; ++this.length; }; BufferList.prototype.shift = function shift() { if (this.length === 0) return; var ret = this.head.data; if (this.length === 1) this.head = this.tail = null; else this.head = this.head.next; --this.length; return ret; }; BufferList.prototype.clear = function clear() { this.head = this.tail = null; this.length = 0; }; BufferList.prototype.join = function join(s) { if (this.length === 0) return ""; var p = this.head; var ret = "" + p.data; while (p = p.next) { ret += s + p.data; } return ret; }; BufferList.prototype.concat = function concat(n) { if (this.length === 0) return Buffer.alloc(0); if (this.length === 1) return this.head.data; var ret = Buffer.allocUnsafe(n >>> 0); var p = this.head; var i = 0; while (p) { copyBuffer(p.data, ret, i); i += p.data.length; p = p.next; } return ret; }; return BufferList; }(); if (util && util.inspect && util.inspect.custom) { module3.exports.prototype[util.inspect.custom] = function() { var obj = util.inspect({ length: this.length }); return this.constructor.name + " " + obj; }; } }, { "safe-buffer": 396, "util": 89 }], 392: [function(require2, module3, exports3) { "use strict"; var pna = require2("process-nextick-args"); function destroy(err, cb) { var _this = this; var readableDestroyed = this._readableState && this._readableState.destroyed; var writableDestroyed = this._writableState && this._writableState.destroyed; if (readableDestroyed || writableDestroyed) { if (cb) { cb(err); } else if (err && (!this._writableState || !this._writableState.errorEmitted)) { pna.nextTick(emitErrorNT, this, err); } return this; } if (this._readableState) { this._readableState.destroyed = true; } if (this._writableState) { this._writableState.destroyed = true; } this._destroy(err || null, function(err2) { if (!cb && err2) { pna.nextTick(emitErrorNT, _this, err2); if (_this._writableState) { _this._writableState.errorEmitted = true; } } else if (cb) { cb(err2); } }); return this; } function undestroy() { if (this._readableState) { this._readableState.destroyed = false; this._readableState.reading = false; this._readableState.ended = false; this._readableState.endEmitted = false; } if (this._writableState) { this._writableState.destroyed = false; this._writableState.ended = false; this._writableState.ending = false; this._writableState.finished = false; this._writableState.errorEmitted = false; } } function emitErrorNT(self2, err) { self2.emit("error", err); } module3.exports = { destroy, undestroy }; }, { "process-nextick-args": 380 }], 393: [function(require2, module3, exports3) { module3.exports = require2("events").EventEmitter; }, { "events": 344 }], 394: [function(require2, module3, exports3) { exports3 = module3.exports = require2("./lib/_stream_readable.js"); exports3.Stream = exports3; exports3.Readable = exports3; exports3.Writable = require2("./lib/_stream_writable.js"); exports3.Duplex = require2("./lib/_stream_duplex.js"); exports3.Transform = require2("./lib/_stream_transform.js"); exports3.PassThrough = require2("./lib/_stream_passthrough.js"); }, { "./lib/_stream_duplex.js": 386, "./lib/_stream_passthrough.js": 387, "./lib/_stream_readable.js": 388, "./lib/_stream_transform.js": 389, "./lib/_stream_writable.js": 390 }], 395: [function(require2, module3, exports3) { var runtime = function(exports4) { "use strict"; var Op = Object.prototype; var hasOwn = Op.hasOwnProperty; var undefined2; var $Symbol = typeof Symbol === "function" ? Symbol : {}; var iteratorSymbol = $Symbol.iterator || "@@iterator"; var asyncIteratorSymbol = $Symbol.asyncIterator || "@@asyncIterator"; var toStringTagSymbol = $Symbol.toStringTag || "@@toStringTag"; function define3(obj, key, value) { Object.defineProperty(obj, key, { value, enumerable: true, configurable: true, writable: true }); return obj[key]; } try { define3({}, ""); } catch (err) { define3 = function(obj, key, value) { return obj[key] = value; }; } function wrap(innerFn, outerFn, self2, tryLocsList) { var protoGenerator = outerFn && outerFn.prototype instanceof Generator ? outerFn : Generator; var generator = Object.create(protoGenerator.prototype); var context = new Context(tryLocsList || []); generator._invoke = makeInvokeMethod(innerFn, self2, context); return generator; } exports4.wrap = wrap; function tryCatch(fn, obj, arg) { try { return { type: "normal", arg: fn.call(obj, arg) }; } catch (err) { return { type: "throw", arg: err }; } } var GenStateSuspendedStart = "suspendedStart"; var GenStateSuspendedYield = "suspendedYield"; var GenStateExecuting = "executing"; var GenStateCompleted = "completed"; var ContinueSentinel = {}; function Generator() { } function GeneratorFunction() { } function GeneratorFunctionPrototype() { } var IteratorPrototype = {}; define3(IteratorPrototype, iteratorSymbol, function() { return this; }); var getProto = Object.getPrototypeOf; var NativeIteratorPrototype = getProto && getProto(getProto(values([]))); if (NativeIteratorPrototype && NativeIteratorPrototype !== Op && hasOwn.call(NativeIteratorPrototype, iteratorSymbol)) { IteratorPrototype = NativeIteratorPrototype; } var Gp = GeneratorFunctionPrototype.prototype = Generator.prototype = Object.create(IteratorPrototype); GeneratorFunction.prototype = GeneratorFunctionPrototype; define3(Gp, "constructor", GeneratorFunctionPrototype); define3(GeneratorFunctionPrototype, "constructor", GeneratorFunction); GeneratorFunction.displayName = define3( GeneratorFunctionPrototype, toStringTagSymbol, "GeneratorFunction" ); function defineIteratorMethods(prototype) { ["next", "throw", "return"].forEach(function(method) { define3(prototype, method, function(arg) { return this._invoke(method, arg); }); }); } exports4.isGeneratorFunction = function(genFun) { var ctor = typeof genFun === "function" && genFun.constructor; return ctor ? ctor === GeneratorFunction || // For the native GeneratorFunction constructor, the best we can // do is to check its .name property. (ctor.displayName || ctor.name) === "GeneratorFunction" : false; }; exports4.mark = function(genFun) { if (Object.setPrototypeOf) { Object.setPrototypeOf(genFun, GeneratorFunctionPrototype); } else { genFun.__proto__ = GeneratorFunctionPrototype; define3(genFun, toStringTagSymbol, "GeneratorFunction"); } genFun.prototype = Object.create(Gp); return genFun; }; exports4.awrap = function(arg) { return { __await: arg }; }; function AsyncIterator(generator, PromiseImpl) { function invoke(method, arg, resolve, reject) { var record = tryCatch(generator[method], generator, arg); if (record.type === "throw") { reject(record.arg); } else { var result = record.arg; var value = result.value; if (value && typeof value === "object" && hasOwn.call(value, "__await")) { return PromiseImpl.resolve(value.__await).then(function(value2) { invoke("next", value2, resolve, reject); }, function(err) { invoke("throw", err, resolve, reject); }); } return PromiseImpl.resolve(value).then(function(unwrapped) { result.value = unwrapped; resolve(result); }, function(error) { return invoke("throw", error, resolve, reject); }); } } var previousPromise; function enqueue(method, arg) { function callInvokeWithMethodAndArg() { return new PromiseImpl(function(resolve, reject) { invoke(method, arg, resolve, reject); }); } return previousPromise = // If enqueue has been called before, then we want to wait until // all previous Promises have been resolved before calling invoke, // so that results are always delivered in the correct order. If // enqueue has not been called before, then it is important to // call invoke immediately, without waiting on a callback to fire, // so that the async generator function has the opportunity to do // any necessary setup in a predictable way. This predictability // is why the Promise constructor synchronously invokes its // executor callback, and why async functions synchronously // execute code before the first await. Since we implement simple // async functions in terms of async generators, it is especially // important to get this right, even though it requires care. previousPromise ? previousPromise.then( callInvokeWithMethodAndArg, // Avoid propagating failures to Promises returned by later // invocations of the iterator. callInvokeWithMethodAndArg ) : callInvokeWithMethodAndArg(); } this._invoke = enqueue; } defineIteratorMethods(AsyncIterator.prototype); define3(AsyncIterator.prototype, asyncIteratorSymbol, function() { return this; }); exports4.AsyncIterator = AsyncIterator; exports4.async = function(innerFn, outerFn, self2, tryLocsList, PromiseImpl) { if (PromiseImpl === void 0) PromiseImpl = Promise; var iter = new AsyncIterator( wrap(innerFn, outerFn, self2, tryLocsList), PromiseImpl ); return exports4.isGeneratorFunction(outerFn) ? iter : iter.next().then(function(result) { return result.done ? result.value : iter.next(); }); }; function makeInvokeMethod(innerFn, self2, context) { var state = GenStateSuspendedStart; return function invoke(method, arg) { if (state === GenStateExecuting) { throw new Error("Generator is already running"); } if (state === GenStateCompleted) { if (method === "throw") { throw arg; } return doneResult(); } context.method = method; context.arg = arg; while (true) { var delegate = context.delegate; if (delegate) { var delegateResult = maybeInvokeDelegate(delegate, context); if (delegateResult) { if (delegateResult === ContinueSentinel) continue; return delegateResult; } } if (context.method === "next") { context.sent = context._sent = context.arg; } else if (context.method === "throw") { if (state === GenStateSuspendedStart) { state = GenStateCompleted; throw context.arg; } context.dispatchException(context.arg); } else if (context.method === "return") { context.abrupt("return", context.arg); } state = GenStateExecuting; var record = tryCatch(innerFn, self2, context); if (record.type === "normal") { state = context.done ? GenStateCompleted : GenStateSuspendedYield; if (record.arg === ContinueSentinel) { continue; } return { value: record.arg, done: context.done }; } else if (record.type === "throw") { state = GenStateCompleted; context.method = "throw"; context.arg = record.arg; } } }; } function maybeInvokeDelegate(delegate, context) { var method = delegate.iterator[context.method]; if (method === undefined2) { context.delegate = null; if (context.method === "throw") { if (delegate.iterator["return"]) { context.method = "return"; context.arg = undefined2; maybeInvokeDelegate(delegate, context); if (context.method === "throw") { return ContinueSentinel; } } context.method = "throw"; context.arg = new TypeError( "The iterator does not provide a 'throw' method" ); } return ContinueSentinel; } var record = tryCatch(method, delegate.iterator, context.arg); if (record.type === "throw") { context.method = "throw"; context.arg = record.arg; context.delegate = null; return ContinueSentinel; } var info = record.arg; if (!info) { context.method = "throw"; context.arg = new TypeError("iterator result is not an object"); context.delegate = null; return ContinueSentinel; } if (info.done) { context[delegate.resultName] = info.value; context.next = delegate.nextLoc; if (context.method !== "return") { context.method = "next"; context.arg = undefined2; } } else { return info; } context.delegate = null; return ContinueSentinel; } defineIteratorMethods(Gp); define3(Gp, toStringTagSymbol, "Generator"); define3(Gp, iteratorSymbol, function() { return this; }); define3(Gp, "toString", function() { return "[object Generator]"; }); function pushTryEntry(locs) { var entry = { tryLoc: locs[0] }; if (1 in locs) { entry.catchLoc = locs[1]; } if (2 in locs) { entry.finallyLoc = locs[2]; entry.afterLoc = locs[3]; } this.tryEntries.push(entry); } function resetTryEntry(entry) { var record = entry.completion || {}; record.type = "normal"; delete record.arg; entry.completion = record; } function Context(tryLocsList) { this.tryEntries = [{ tryLoc: "root" }]; tryLocsList.forEach(pushTryEntry, this); this.reset(true); } exports4.keys = function(object) { var keys = []; for (var key in object) { keys.push(key); } keys.reverse(); return function next() { while (keys.length) { var key2 = keys.pop(); if (key2 in object) { next.value = key2; next.done = false; return next; } } next.done = true; return next; }; }; function values(iterable) { if (iterable) { var iteratorMethod = iterable[iteratorSymbol]; if (iteratorMethod) { return iteratorMethod.call(iterable); } if (typeof iterable.next === "function") { return iterable; } if (!isNaN(iterable.length)) { var i = -1, next = function next2() { while (++i < iterable.length) { if (hasOwn.call(iterable, i)) { next2.value = iterable[i]; next2.done = false; return next2; } } next2.value = undefined2; next2.done = true; return next2; }; return next.next = next; } } return { next: doneResult }; } exports4.values = values; function doneResult() { return { value: undefined2, done: true }; } Context.prototype = { constructor: Context, reset: function(skipTempReset) { this.prev = 0; this.next = 0; this.sent = this._sent = undefined2; this.done = false; this.delegate = null; this.method = "next"; this.arg = undefined2; this.tryEntries.forEach(resetTryEntry); if (!skipTempReset) { for (var name in this) { if (name.charAt(0) === "t" && hasOwn.call(this, name) && !isNaN(+name.slice(1))) { this[name] = undefined2; } } } }, stop: function() { this.done = true; var rootEntry = this.tryEntries[0]; var rootRecord = rootEntry.completion; if (rootRecord.type === "throw") { throw rootRecord.arg; } return this.rval; }, dispatchException: function(exception) { if (this.done) { throw exception; } var context = this; function handle(loc, caught) { record.type = "throw"; record.arg = exception; context.next = loc; if (caught) { context.method = "next"; context.arg = undefined2; } return !!caught; } for (var i = this.tryEntries.length - 1; i >= 0; --i) { var entry = this.tryEntries[i]; var record = entry.completion; if (entry.tryLoc === "root") { return handle("end"); } if (entry.tryLoc <= this.prev) { var hasCatch = hasOwn.call(entry, "catchLoc"); var hasFinally = hasOwn.call(entry, "finallyLoc"); if (hasCatch && hasFinally) { if (this.prev < entry.catchLoc) { return handle(entry.catchLoc, true); } else if (this.prev < entry.finallyLoc) { return handle(entry.finallyLoc); } } else if (hasCatch) { if (this.prev < entry.catchLoc) { return handle(entry.catchLoc, true); } } else if (hasFinally) { if (this.prev < entry.finallyLoc) { return handle(entry.finallyLoc); } } else { throw new Error("try statement without catch or finally"); } } } }, abrupt: function(type, arg) { for (var i = this.tryEntries.length - 1; i >= 0; --i) { var entry = this.tryEntries[i]; if (entry.tryLoc <= this.prev && hasOwn.call(entry, "finallyLoc") && this.prev < entry.finallyLoc) { var finallyEntry = entry; break; } } if (finallyEntry && (type === "break" || type === "continue") && finallyEntry.tryLoc <= arg && arg <= finallyEntry.finallyLoc) { finallyEntry = null; } var record = finallyEntry ? finallyEntry.completion : {}; record.type = type; record.arg = arg; if (finallyEntry) { this.method = "next"; this.next = finallyEntry.finallyLoc; return ContinueSentinel; } return this.complete(record); }, complete: function(record, afterLoc) { if (record.type === "throw") { throw record.arg; } if (record.type === "break" || record.type === "continue") { this.next = record.arg; } else if (record.type === "return") { this.rval = this.arg = record.arg; this.method = "return"; this.next = "end"; } else if (record.type === "normal" && afterLoc) { this.next = afterLoc; } return ContinueSentinel; }, finish: function(finallyLoc) { for (var i = this.tryEntries.length - 1; i >= 0; --i) { var entry = this.tryEntries[i]; if (entry.finallyLoc === finallyLoc) { this.complete(entry.completion, entry.afterLoc); resetTryEntry(entry); return ContinueSentinel; } } }, "catch": function(tryLoc) { for (var i = this.tryEntries.length - 1; i >= 0; --i) { var entry = this.tryEntries[i]; if (entry.tryLoc === tryLoc) { var record = entry.completion; if (record.type === "throw") { var thrown = record.arg; resetTryEntry(entry); } return thrown; } } throw new Error("illegal catch attempt"); }, delegateYield: function(iterable, resultName, nextLoc) { this.delegate = { iterator: values(iterable), resultName, nextLoc }; if (this.method === "next") { this.arg = undefined2; } return ContinueSentinel; } }; return exports4; }( // If this script is executing as a CommonJS module, use module.exports // as the regeneratorRuntime namespace. Otherwise create a new empty // object. Either way, the resulting object will be used to initialize // the regeneratorRuntime variable at the top of this file. typeof module3 === "object" ? module3.exports : {} ); try { regeneratorRuntime = runtime; } catch (accidentalStrictMode) { if (typeof globalThis === "object") { globalThis.regeneratorRuntime = runtime; } else { Function("r", "regeneratorRuntime = r")(runtime); } } }, {}], 396: [function(require2, module3, exports3) { var buffer = require2("buffer"); var Buffer = buffer.Buffer; function copyProps(src, dst) { for (var key in src) { dst[key] = src[key]; } } if (Buffer.from && Buffer.alloc && Buffer.allocUnsafe && Buffer.allocUnsafeSlow) { module3.exports = buffer; } else { copyProps(buffer, exports3); exports3.Buffer = SafeBuffer; } function SafeBuffer(arg, encodingOrOffset, length) { return Buffer(arg, encodingOrOffset, length); } copyProps(Buffer, SafeBuffer); SafeBuffer.from = function(arg, encodingOrOffset, length) { if (typeof arg === "number") { throw new TypeError("Argument must not be a number"); } return Buffer(arg, encodingOrOffset, length); }; SafeBuffer.alloc = function(size, fill, encoding) { if (typeof size !== "number") { throw new TypeError("Argument must be a number"); } var buf = Buffer(size); if (fill !== void 0) { if (typeof encoding === "string") { buf.fill(fill, encoding); } else { buf.fill(fill); } } else { buf.fill(0); } return buf; }; SafeBuffer.allocUnsafe = function(size) { if (typeof size !== "number") { throw new TypeError("Argument must be a number"); } return Buffer(size); }; SafeBuffer.allocUnsafeSlow = function(size) { if (typeof size !== "number") { throw new TypeError("Argument must be a number"); } return buffer.SlowBuffer(size); }; }, { "buffer": 90 }], 397: [function(require2, module3, exports3) { (function(Buffer) { (function() { ; (function(sax) { sax.parser = function(strict, opt) { return new SAXParser(strict, opt); }; sax.SAXParser = SAXParser; sax.SAXStream = SAXStream; sax.createStream = createStream; sax.MAX_BUFFER_LENGTH = 64 * 1024; var buffers = [ "comment", "sgmlDecl", "textNode", "tagName", "doctype", "procInstName", "procInstBody", "entity", "attribName", "attribValue", "cdata", "script" ]; sax.EVENTS = [ "text", "processinginstruction", "sgmldeclaration", "doctype", "comment", "opentagstart", "attribute", "opentag", "closetag", "opencdata", "cdata", "closecdata", "error", "end", "ready", "script", "opennamespace", "closenamespace" ]; function SAXParser(strict, opt) { if (!(this instanceof SAXParser)) { return new SAXParser(strict, opt); } var parser = this; clearBuffers(parser); parser.q = parser.c = ""; parser.bufferCheckPosition = sax.MAX_BUFFER_LENGTH; parser.opt = opt || {}; parser.opt.lowercase = parser.opt.lowercase || parser.opt.lowercasetags; parser.looseCase = parser.opt.lowercase ? "toLowerCase" : "toUpperCase"; parser.tags = []; parser.closed = parser.closedRoot = parser.sawRoot = false; parser.tag = parser.error = null; parser.strict = !!strict; parser.noscript = !!(strict || parser.opt.noscript); parser.state = S.BEGIN; parser.strictEntities = parser.opt.strictEntities; parser.ENTITIES = parser.strictEntities ? Object.create(sax.XML_ENTITIES) : Object.create(sax.ENTITIES); parser.attribList = []; if (parser.opt.xmlns) { parser.ns = Object.create(rootNS); } parser.trackPosition = parser.opt.position !== false; if (parser.trackPosition) { parser.position = parser.line = parser.column = 0; } emit(parser, "onready"); } if (!Object.create) { Object.create = function(o) { function F() { } F.prototype = o; var newf = new F(); return newf; }; } if (!Object.keys) { Object.keys = function(o) { var a = []; for (var i in o) if (o.hasOwnProperty(i)) a.push(i); return a; }; } function checkBufferLength(parser) { var maxAllowed = Math.max(sax.MAX_BUFFER_LENGTH, 10); var maxActual = 0; for (var i = 0, l = buffers.length; i < l; i++) { var len = parser[buffers[i]].length; if (len > maxAllowed) { switch (buffers[i]) { case "textNode": closeText(parser); break; case "cdata": emitNode(parser, "oncdata", parser.cdata); parser.cdata = ""; break; case "script": emitNode(parser, "onscript", parser.script); parser.script = ""; break; default: error(parser, "Max buffer length exceeded: " + buffers[i]); } } maxActual = Math.max(maxActual, len); } var m = sax.MAX_BUFFER_LENGTH - maxActual; parser.bufferCheckPosition = m + parser.position; } function clearBuffers(parser) { for (var i = 0, l = buffers.length; i < l; i++) { parser[buffers[i]] = ""; } } function flushBuffers(parser) { closeText(parser); if (parser.cdata !== "") { emitNode(parser, "oncdata", parser.cdata); parser.cdata = ""; } if (parser.script !== "") { emitNode(parser, "onscript", parser.script); parser.script = ""; } } SAXParser.prototype = { end: function() { end(this); }, write, resume: function() { this.error = null; return this; }, close: function() { return this.write(null); }, flush: function() { flushBuffers(this); } }; var Stream; try { Stream = require2("stream").Stream; } catch (ex) { Stream = function() { }; } var streamWraps = sax.EVENTS.filter(function(ev) { return ev !== "error" && ev !== "end"; }); function createStream(strict, opt) { return new SAXStream(strict, opt); } function SAXStream(strict, opt) { if (!(this instanceof SAXStream)) { return new SAXStream(strict, opt); } Stream.apply(this); this._parser = new SAXParser(strict, opt); this.writable = true; this.readable = true; var me = this; this._parser.onend = function() { me.emit("end"); }; this._parser.onerror = function(er) { me.emit("error", er); me._parser.error = null; }; this._decoder = null; streamWraps.forEach(function(ev) { Object.defineProperty(me, "on" + ev, { get: function() { return me._parser["on" + ev]; }, set: function(h) { if (!h) { me.removeAllListeners(ev); me._parser["on" + ev] = h; return h; } me.on(ev, h); }, enumerable: true, configurable: false }); }); } SAXStream.prototype = Object.create(Stream.prototype, { constructor: { value: SAXStream } }); SAXStream.prototype.write = function(data) { if (typeof Buffer === "function" && typeof Buffer.isBuffer === "function" && Buffer.isBuffer(data)) { if (!this._decoder) { var SD = require2("string_decoder").StringDecoder; this._decoder = new SD("utf8"); } data = this._decoder.write(data); } this._parser.write(data.toString()); this.emit("data", data); return true; }; SAXStream.prototype.end = function(chunk) { if (chunk && chunk.length) { this.write(chunk); } this._parser.end(); return true; }; SAXStream.prototype.on = function(ev, handler) { var me = this; if (!me._parser["on" + ev] && streamWraps.indexOf(ev) !== -1) { me._parser["on" + ev] = function() { var args = arguments.length === 1 ? [arguments[0]] : Array.apply(null, arguments); args.splice(0, 0, ev); me.emit.apply(me, args); }; } return Stream.prototype.on.call(me, ev, handler); }; var CDATA = "[CDATA["; var DOCTYPE = "DOCTYPE"; var XML_NAMESPACE = "http://www.w3.org/XML/1998/namespace"; var XMLNS_NAMESPACE = "http://www.w3.org/2000/xmlns/"; var rootNS = { xml: XML_NAMESPACE, xmlns: XMLNS_NAMESPACE }; var nameStart = /[:_A-Za-z\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD]/; var nameBody = /[:_A-Za-z\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD\u00B7\u0300-\u036F\u203F-\u2040.\d-]/; var entityStart = /[#:_A-Za-z\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD]/; var entityBody = /[#:_A-Za-z\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD\u00B7\u0300-\u036F\u203F-\u2040.\d-]/; function isWhitespace(c) { return c === " " || c === "\n" || c === "\r" || c === " "; } function isQuote(c) { return c === '"' || c === "'"; } function isAttribEnd(c) { return c === ">" || isWhitespace(c); } function isMatch(regex, c) { return regex.test(c); } function notMatch(regex, c) { return !isMatch(regex, c); } var S = 0; sax.STATE = { BEGIN: S++, // leading byte order mark or whitespace BEGIN_WHITESPACE: S++, // leading whitespace TEXT: S++, // general stuff TEXT_ENTITY: S++, // & and such. OPEN_WAKA: S++, // < SGML_DECL: S++, // SCRIPT: S++, //