mirror of
https://github.com/swc-project/swc.git
synced 2024-12-29 00:23:10 +03:00
feat(es/minifier): Drop new
token if possible (#4932)
This commit is contained in:
parent
565f06f7ef
commit
594089488b
@ -9,7 +9,7 @@ for (const i of [
|
||||
1,
|
||||
2,
|
||||
3
|
||||
])if (2 === i) throw new Error('ERR');
|
||||
])if (2 === i) throw Error('ERR');
|
||||
console.log(i);
|
||||
} catch (err) {
|
||||
console.log('E %s %s', i, err);
|
||||
|
@ -15,7 +15,7 @@ try {
|
||||
1,
|
||||
2,
|
||||
3
|
||||
][Symbol.iterator](); !(_iteratorNormalCompletion1 = (_step1 = _iterator1.next()).done); _iteratorNormalCompletion1 = !0)if (_step1.value, 2 === i) throw new Error("ERR");
|
||||
][Symbol.iterator](); !(_iteratorNormalCompletion1 = (_step1 = _iterator1.next()).done); _iteratorNormalCompletion1 = !0)if (_step1.value, 2 === i) throw Error("ERR");
|
||||
} catch (err) {
|
||||
_didIteratorError1 = !0, _iteratorError1 = err;
|
||||
} finally{
|
||||
|
@ -1,5 +1,5 @@
|
||||
var A;
|
||||
!function(A1) {
|
||||
var beez;
|
||||
A1.beez2 = new Array(), A1.beez = beez;
|
||||
A1.beez2 = Array(), A1.beez = beez;
|
||||
}(A || (A = {}));
|
||||
|
@ -5,5 +5,5 @@ import _class_call_check from "@swc/helpers/lib/_class_call_check.js";
|
||||
"use strict";
|
||||
_class_call_check(this, B);
|
||||
};
|
||||
A1.beez2 = new Array(), A1.beez = beez;
|
||||
A1.beez2 = Array(), A1.beez = beez;
|
||||
}(A || (A = {}));
|
||||
|
@ -8,7 +8,7 @@ Wagon.circle = function(wagons) {
|
||||
};
|
||||
var db = new class extends Wagon {
|
||||
load(files, format) {
|
||||
if ("xmlolololol" === format) throw new Error("please do not use XML. It was a joke.");
|
||||
if ("xmlolololol" === format) throw Error("please do not use XML. It was a joke.");
|
||||
super.speed(), super.weight();
|
||||
}
|
||||
constructor(){
|
||||
|
@ -22,7 +22,7 @@ var Sql = function(Wagon1) {
|
||||
return _class_call_check(this, Sql), (_this = _super.call(this)).foonly = 12, _this;
|
||||
}
|
||||
return Sql.prototype.load = function(files, format) {
|
||||
if ("xmlolololol" === format) throw new Error("please do not use XML. It was a joke.");
|
||||
if ("xmlolololol" === format) throw Error("please do not use XML. It was a joke.");
|
||||
_get(_get_prototype_of(Sql.prototype), "speed", this).call(this), _get(_get_prototype_of(Sql.prototype), "weight", this).call(this);
|
||||
}, Sql;
|
||||
}(Wagon), db = new Sql();
|
||||
|
@ -2,5 +2,5 @@ import _async_to_generator from "@swc/helpers/lib/_async_to_generator.js";
|
||||
let maybeNumber;
|
||||
maybeNumber = 1, ++maybeNumber, maybeNumber++;
|
||||
let test;
|
||||
if (!test) throw new Error('Test is not defined');
|
||||
if (!test) throw Error('Test is not defined');
|
||||
test.slice(1);
|
||||
|
@ -1,5 +1,5 @@
|
||||
var maybeNumber, test;
|
||||
import _async_to_generator from "@swc/helpers/lib/_async_to_generator.js";
|
||||
import regeneratorRuntime from "regenerator-runtime";
|
||||
if (maybeNumber = 1, ++maybeNumber, maybeNumber++, !test) throw new Error("Test is not defined");
|
||||
if (maybeNumber = 1, ++maybeNumber, maybeNumber++, !test) throw Error("Test is not defined");
|
||||
test.slice(1);
|
||||
|
@ -4,5 +4,5 @@ function f15(x) {
|
||||
f15({
|
||||
value: 10
|
||||
}), f15({
|
||||
error: new Error("boom")
|
||||
error: Error("boom")
|
||||
});
|
||||
|
@ -4,5 +4,5 @@ function f15(x) {
|
||||
f15({
|
||||
value: 10
|
||||
}), f15({
|
||||
error: new Error("boom")
|
||||
error: Error("boom")
|
||||
});
|
||||
|
@ -1,3 +1,3 @@
|
||||
export function assertNever(x, msg) {
|
||||
throw new Error("Unexpected " + msg);
|
||||
throw Error("Unexpected " + msg);
|
||||
}
|
||||
|
@ -1,3 +1,3 @@
|
||||
export function assertNever(x, msg) {
|
||||
throw new Error("Unexpected " + msg);
|
||||
throw Error("Unexpected " + msg);
|
||||
}
|
||||
|
@ -290,7 +290,7 @@
|
||||
return !1;
|
||||
}
|
||||
function convertPropsToRegExp(object) {
|
||||
for(var key in object)hasOwnProp.call(object, key) && (object[key] = new RegExp(object[key], 'i'));
|
||||
for(var key in object)hasOwnProp.call(object, key) && (object[key] = RegExp(object[key], 'i'));
|
||||
}
|
||||
function MobileDetect(userAgent, maxPhoneWidth) {
|
||||
this.ua = userAgent || '', this._cache = {}, this.maxPhoneWidth = maxPhoneWidth || 600;
|
||||
@ -304,7 +304,7 @@
|
||||
for(key in mobileDetectRules.props)if (hasOwnProp.call(mobileDetectRules.props, key)) {
|
||||
for(isArray(values = mobileDetectRules.props[key]) || (values = [
|
||||
values
|
||||
]), len = values.length, i = 0; i < len; ++i)(verPos = (value = values[i]).indexOf('[VER]')) >= 0 && (value = value.substring(0, verPos) + '([\\w._\\+]+)' + value.substring(verPos + 5)), values[i] = new RegExp(value, 'i');
|
||||
]), len = values.length, i = 0; i < len; ++i)(verPos = (value = values[i]).indexOf('[VER]')) >= 0 && (value = value.substring(0, verPos) + '([\\w._\\+]+)' + value.substring(verPos + 5)), values[i] = RegExp(value, 'i');
|
||||
mobileDetectRules.props[key] = values;
|
||||
}
|
||||
convertPropsToRegExp(mobileDetectRules.oss), convertPropsToRegExp(mobileDetectRules.phones), convertPropsToRegExp(mobileDetectRules.tablets), convertPropsToRegExp(mobileDetectRules.uas), convertPropsToRegExp(mobileDetectRules.utils), mobileDetectRules.oss0 = {
|
||||
@ -384,7 +384,7 @@
|
||||
return containsIC(this.userAgents(), key) || equalIC(key, this.os()) || equalIC(key, this.phone()) || equalIC(key, this.tablet()) || containsIC(impl.findMatches(impl.mobileDetectRules.utils, this.ua), key);
|
||||
},
|
||||
match: function(pattern) {
|
||||
return pattern instanceof RegExp || (pattern = new RegExp(pattern, 'i')), pattern.test(this.ua);
|
||||
return pattern instanceof RegExp || (pattern = RegExp(pattern, 'i')), pattern.test(this.ua);
|
||||
},
|
||||
isPhoneSized: function(maxPhoneWidth) {
|
||||
return MobileDetect.isPhoneSized(maxPhoneWidth || this.maxPhoneWidth);
|
||||
@ -404,5 +404,5 @@
|
||||
if ('undefined' != typeof window) return function(factory) {
|
||||
window.MobileDetect = factory();
|
||||
};
|
||||
throw new Error('unknown environment');
|
||||
throw Error('unknown environment');
|
||||
}());
|
||||
|
@ -10,7 +10,7 @@ import _instanceof from "@swc/helpers/lib/_instanceof.js";
|
||||
for(i = 0, valueLC = value.toLowerCase(); i < len; ++i)if (valueLC === array[i].toLowerCase()) return !0;
|
||||
return !1;
|
||||
}, convertPropsToRegExp = function(object) {
|
||||
for(var key in object)hasOwnProp.call(object, key) && (object[key] = new RegExp(object[key], "i"));
|
||||
for(var key in object)hasOwnProp.call(object, key) && (object[key] = RegExp(object[key], "i"));
|
||||
}, MobileDetect = function(userAgent, maxPhoneWidth) {
|
||||
this.ua = userAgent || "", this._cache = {}, this.maxPhoneWidth = maxPhoneWidth || 600;
|
||||
}, impl = {};
|
||||
@ -301,7 +301,7 @@ import _instanceof from "@swc/helpers/lib/_instanceof.js";
|
||||
for(key in mobileDetectRules.props)if (hasOwnProp.call(mobileDetectRules.props, key)) {
|
||||
for(isArray(values = mobileDetectRules.props[key]) || (values = [
|
||||
values
|
||||
]), len = values.length, i = 0; i < len; ++i)(verPos = (value = values[i]).indexOf("[VER]")) >= 0 && (value = value.substring(0, verPos) + "([\\w._\\+]+)" + value.substring(verPos + 5)), values[i] = new RegExp(value, "i");
|
||||
]), len = values.length, i = 0; i < len; ++i)(verPos = (value = values[i]).indexOf("[VER]")) >= 0 && (value = value.substring(0, verPos) + "([\\w._\\+]+)" + value.substring(verPos + 5)), values[i] = RegExp(value, "i");
|
||||
mobileDetectRules.props[key] = values;
|
||||
}
|
||||
convertPropsToRegExp(mobileDetectRules.oss), convertPropsToRegExp(mobileDetectRules.phones), convertPropsToRegExp(mobileDetectRules.tablets), convertPropsToRegExp(mobileDetectRules.uas), convertPropsToRegExp(mobileDetectRules.utils), mobileDetectRules.oss0 = {
|
||||
@ -381,7 +381,7 @@ import _instanceof from "@swc/helpers/lib/_instanceof.js";
|
||||
return containsIC(this.userAgents(), key) || equalIC(key, this.os()) || equalIC(key, this.phone()) || equalIC(key, this.tablet()) || containsIC(impl.findMatches(impl.mobileDetectRules.utils, this.ua), key);
|
||||
},
|
||||
match: function(pattern) {
|
||||
return _instanceof(pattern, RegExp) || (pattern = new RegExp(pattern, "i")), pattern.test(this.ua);
|
||||
return _instanceof(pattern, RegExp) || (pattern = RegExp(pattern, "i")), pattern.test(this.ua);
|
||||
},
|
||||
isPhoneSized: function(maxPhoneWidth) {
|
||||
return MobileDetect.isPhoneSized(maxPhoneWidth || this.maxPhoneWidth);
|
||||
@ -401,5 +401,5 @@ import _instanceof from "@swc/helpers/lib/_instanceof.js";
|
||||
if ("undefined" != typeof window) return function(factory) {
|
||||
window.MobileDetect = factory();
|
||||
};
|
||||
throw new Error("unknown environment");
|
||||
throw Error("unknown environment");
|
||||
}());
|
||||
|
@ -1,3 +1,3 @@
|
||||
!function(x) {
|
||||
return x;
|
||||
}(()=>{}, 1), new Function();
|
||||
}(()=>{}, 1), Function();
|
||||
|
@ -9,4 +9,4 @@ var C = function() {
|
||||
"use strict";
|
||||
_class_call_check(this, C2);
|
||||
};
|
||||
new Function();
|
||||
Function();
|
||||
|
@ -1 +1 @@
|
||||
new Function();
|
||||
Function();
|
||||
|
@ -3,7 +3,7 @@ var C = function() {
|
||||
"use strict";
|
||||
_class_call_check(this, C);
|
||||
};
|
||||
new Function();
|
||||
Function();
|
||||
var C2 = function() {
|
||||
"use strict";
|
||||
_class_call_check(this, C2);
|
||||
|
@ -1,9 +1,9 @@
|
||||
export function Vec(len) {
|
||||
this.storage = new Array(len);
|
||||
this.storage = Array(len);
|
||||
}
|
||||
Vec.prototype = {
|
||||
dot (other) {
|
||||
if (other.storage.length !== this.storage.length) throw new Error("Dot product only applicable for vectors of equal length");
|
||||
if (other.storage.length !== this.storage.length) throw Error("Dot product only applicable for vectors of equal length");
|
||||
let sum = 0;
|
||||
for(let i = 0; i < this.storage.length; i++)sum += this.storage[i] * other.storage[i];
|
||||
return sum;
|
||||
|
@ -1,10 +1,10 @@
|
||||
import _instanceof from "@swc/helpers/lib/_instanceof.js";
|
||||
export function Vec(len) {
|
||||
this.storage = new Array(len);
|
||||
this.storage = Array(len);
|
||||
}
|
||||
Vec.prototype = {
|
||||
dot: function(other) {
|
||||
if (other.storage.length !== this.storage.length) throw new Error("Dot product only applicable for vectors of equal length");
|
||||
if (other.storage.length !== this.storage.length) throw Error("Dot product only applicable for vectors of equal length");
|
||||
for(var sum = 0, i = 0; i < this.storage.length; i++)sum += this.storage[i] * other.storage[i];
|
||||
return sum;
|
||||
},
|
||||
|
@ -10,7 +10,7 @@ var Test = function() {
|
||||
}
|
||||
var _proto = Test.prototype;
|
||||
return _proto.fail = function(message) {
|
||||
throw new Error(message);
|
||||
throw Error(message);
|
||||
}, _proto.f1 = function(x) {
|
||||
void 0 === x && this.fail("undefined argument"), x.length;
|
||||
}, _proto.f2 = function(x) {
|
||||
@ -53,7 +53,7 @@ var MyThrowable = function() {
|
||||
_class_call_check(this, MyThrowable);
|
||||
}
|
||||
return MyThrowable.prototype.throw = function() {
|
||||
throw new Error();
|
||||
throw Error();
|
||||
}, MyThrowable;
|
||||
}(), SuperThrowable = function(MyThrowable) {
|
||||
"use strict";
|
||||
|
@ -1,5 +1,5 @@
|
||||
function error(message) {
|
||||
throw new Error(message);
|
||||
throw Error(message);
|
||||
}
|
||||
(function(cb) {
|
||||
cb();
|
||||
@ -8,7 +8,7 @@ function error(message) {
|
||||
}(()=>error("Something failed")), function(cb) {
|
||||
cb();
|
||||
}(()=>{
|
||||
throw new Error();
|
||||
throw Error();
|
||||
}), function(cb) {
|
||||
cb();
|
||||
}(()=>error("Error callback"));
|
||||
|
@ -1,6 +1,6 @@
|
||||
import _class_call_check from "@swc/helpers/lib/_class_call_check.js";
|
||||
function error(message) {
|
||||
throw new Error(message);
|
||||
throw Error(message);
|
||||
}
|
||||
var C = function() {
|
||||
"use strict";
|
||||
@ -9,11 +9,11 @@ var C = function() {
|
||||
}
|
||||
var _proto = C.prototype;
|
||||
return _proto.void1 = function() {
|
||||
throw new Error();
|
||||
throw Error();
|
||||
}, _proto.void2 = function() {
|
||||
for(;;);
|
||||
}, _proto.never1 = function() {
|
||||
throw new Error();
|
||||
throw Error();
|
||||
}, _proto.never2 = function() {
|
||||
for(;;);
|
||||
}, C;
|
||||
@ -29,7 +29,7 @@ var C = function() {
|
||||
}), function(cb) {
|
||||
cb();
|
||||
}(function() {
|
||||
throw new Error();
|
||||
throw Error();
|
||||
}), function(cb) {
|
||||
cb();
|
||||
}(function() {
|
||||
|
@ -1,5 +1,5 @@
|
||||
runTestCase(function() {
|
||||
var a = new Array(!1, void 0, null, "0", {
|
||||
var a = Array(!1, void 0, null, "0", {
|
||||
toString: function() {
|
||||
return 0;
|
||||
}
|
||||
|
@ -1,5 +1,5 @@
|
||||
runTestCase(function() {
|
||||
var a = new Array(!1, void 0, null, "0", {
|
||||
var a = Array(!1, void 0, null, "0", {
|
||||
toString: function() {
|
||||
return 0;
|
||||
}
|
||||
|
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
@ -28,11 +28,11 @@ var TypeScript;
|
||||
this.top = this.asts.length, this.asts.push(ast);
|
||||
}
|
||||
up() {
|
||||
if (this.top <= -1) throw new Error("Invalid call to 'up'");
|
||||
if (this.top <= -1) throw Error("Invalid call to 'up'");
|
||||
this.top--;
|
||||
}
|
||||
down() {
|
||||
if (this.top == this.ast.length - 1) throw new Error("Invalid call to 'down'");
|
||||
if (this.top == this.ast.length - 1) throw Error("Invalid call to 'down'");
|
||||
this.top++;
|
||||
}
|
||||
nodeType() {
|
||||
|
@ -61,10 +61,10 @@ import _class_call_check from "@swc/helpers/lib/_class_call_check.js";
|
||||
for(; this.asts.length > this.count();)this.asts.pop();
|
||||
this.top = this.asts.length, this.asts.push(ast);
|
||||
}, _proto.up = function() {
|
||||
if (this.top <= -1) throw new Error("Invalid call to 'up'");
|
||||
if (this.top <= -1) throw Error("Invalid call to 'up'");
|
||||
this.top--;
|
||||
}, _proto.down = function() {
|
||||
if (this.top == this.ast.length - 1) throw new Error("Invalid call to 'down'");
|
||||
if (this.top == this.ast.length - 1) throw Error("Invalid call to 'down'");
|
||||
this.top++;
|
||||
}, _proto.nodeType = function() {
|
||||
return null == this.ast() ? TypeScript.NodeType.None : this.ast().nodeType;
|
||||
|
@ -9,7 +9,7 @@ var _p1 = new WeakMap(), Foo = function() {
|
||||
_class_call_check(this, Foo), _class_private_field_init(this, _p1, {
|
||||
writable: !0,
|
||||
value: function(v) {
|
||||
if ("string" != typeof v) throw new Error();
|
||||
if ("string" != typeof v) throw Error();
|
||||
}
|
||||
});
|
||||
}
|
||||
@ -26,5 +26,5 @@ var _p1 = new WeakMap(), Foo = function() {
|
||||
}, Foo2;
|
||||
}();
|
||||
function p1(v) {
|
||||
if ("string" != typeof v) throw new Error();
|
||||
if ("string" != typeof v) throw Error();
|
||||
}
|
||||
|
File diff suppressed because one or more lines are too long
@ -231,13 +231,13 @@ var p = {
|
||||
}, q = /^\s*\d+/, r = /^%/, s = /[\\^$*+?|[\]().{}]/g;
|
||||
function t(a, f, c) {
|
||||
var d = a < 0 ? "-" : "", b = (d ? -a : a) + "", e = b.length;
|
||||
return d + (e < c ? new Array(c - e + 1).join(f) + b : b);
|
||||
return d + (e < c ? Array(c - e + 1).join(f) + b : b);
|
||||
}
|
||||
function u(a) {
|
||||
return a.replace(s, "\\$&");
|
||||
}
|
||||
function v(a) {
|
||||
return new RegExp("^(?:" + a.map(u).join("|") + ")", "i");
|
||||
return RegExp("^(?:" + a.map(u).join("|") + ")", "i");
|
||||
}
|
||||
function w(a) {
|
||||
return new Map(a.map(function(a, b) {
|
||||
|
@ -2,7 +2,7 @@ var b = 3600000, a = 24 * b, c = 7 * a, d = 365.25 * a;
|
||||
export default function(g, i) {
|
||||
try {
|
||||
if ("string" == typeof g && g.length > 0) return function i(f) {
|
||||
if ((f = String(f)).length > 100) throw new Error("Value exceeds the maximum length of 100 characters.");
|
||||
if ((f = String(f)).length > 100) throw Error("Value exceeds the maximum length of 100 characters.");
|
||||
var g = /^(-?(?:\d+)?\.?\d+) *(milliseconds?|msecs?|ms|seconds?|secs?|s|minutes?|mins?|m|hours?|hrs?|h|days?|d|weeks?|w|years?|yrs?|y)?$/i.exec(f);
|
||||
if (!g) return NaN;
|
||||
var e = parseFloat(g[1]), h = (g[2] || "ms").toLowerCase();
|
||||
@ -46,14 +46,13 @@ export default function(g, i) {
|
||||
case "ms":
|
||||
return e;
|
||||
default:
|
||||
throw new Error("The unit ".concat(h, " was matched, but no matching case exists."));
|
||||
throw Error("The unit ".concat(h, " was matched, but no matching case exists."));
|
||||
}
|
||||
}(g);
|
||||
if ("number" == typeof g && isFinite(g)) return (null == i ? void 0 : i.long) ? f(g) : e(g);
|
||||
throw new Error("Value is not a string or number.");
|
||||
throw Error("Value is not a string or number.");
|
||||
} catch (j) {
|
||||
var k = h(j) ? "".concat(j.message, ". value=").concat(JSON.stringify(g)) : "An unknown error has occurred.";
|
||||
throw new Error(k);
|
||||
throw Error(h(j) ? "".concat(j.message, ". value=").concat(JSON.stringify(g)) : "An unknown error has occurred.");
|
||||
}
|
||||
};
|
||||
function e(c) {
|
||||
|
@ -62,7 +62,7 @@ function _defineProperties(target, props) {
|
||||
}
|
||||
}
|
||||
function _assertThisInitialized(self) {
|
||||
if (void 0 === self) throw new ReferenceError("this hasn't been initialised - super() hasn't been called");
|
||||
if (void 0 === self) throw ReferenceError("this hasn't been initialised - super() hasn't been called");
|
||||
return self;
|
||||
}
|
||||
function _getPrototypeOf(o1) {
|
||||
@ -85,7 +85,7 @@ function _defineProperty(obj, key, value) {
|
||||
}
|
||||
var ItemsList = function(_Component) {
|
||||
!function(subClass, superClass) {
|
||||
if ("function" != typeof superClass && null !== superClass) throw new TypeError("Super expression must either be null or a function");
|
||||
if ("function" != typeof superClass && null !== superClass) throw TypeError("Super expression must either be null or a function");
|
||||
subClass.prototype = Object.create(superClass && superClass.prototype, {
|
||||
constructor: {
|
||||
value: subClass,
|
||||
@ -113,9 +113,9 @@ var ItemsList = function(_Component) {
|
||||
function ItemsList1() {
|
||||
var _this;
|
||||
!function(instance, Constructor) {
|
||||
if (!_instanceof(instance, Constructor)) throw new TypeError("Cannot call a class as a function");
|
||||
if (!_instanceof(instance, Constructor)) throw TypeError("Cannot call a class as a function");
|
||||
}(this, ItemsList1);
|
||||
for(var _len = arguments.length, args = new Array(_len), _key = 0; _key < _len; _key++)args[_key] = arguments[_key];
|
||||
for(var _len = arguments.length, args = Array(_len), _key = 0; _key < _len; _key++)args[_key] = arguments[_key];
|
||||
return _this = _super.call.apply(_super, [
|
||||
this
|
||||
].concat(args)), _defineProperty(_assertThisInitialized(_this), "storeHighlightedItemReference", function(highlightedItem) {
|
||||
|
@ -1,3 +1,3 @@
|
||||
export default function() {
|
||||
return new RegExp("{.[^}]+}\n*", "g");
|
||||
return RegExp("{.[^}]+}\n*", "g");
|
||||
};
|
||||
|
@ -1105,7 +1105,16 @@ where
|
||||
fn compress_regexp(&mut self, e: &mut Expr) {
|
||||
let (span, args) = match e {
|
||||
Expr::New(NewExpr {
|
||||
span, callee, args, ..
|
||||
span,
|
||||
callee,
|
||||
args: Some(args),
|
||||
..
|
||||
})
|
||||
| Expr::Call(CallExpr {
|
||||
span,
|
||||
callee: Callee::Expr(callee),
|
||||
args,
|
||||
..
|
||||
}) => match &**callee {
|
||||
Expr::Ident(Ident {
|
||||
sym: js_word!("RegExp"),
|
||||
@ -1116,10 +1125,6 @@ where
|
||||
_ => return,
|
||||
};
|
||||
|
||||
let args = match args {
|
||||
Some(v) => v,
|
||||
None => return,
|
||||
};
|
||||
if args.is_empty() || args.len() > 2 {
|
||||
return;
|
||||
}
|
||||
|
@ -4,7 +4,7 @@ use swc_atoms::js_word;
|
||||
use swc_common::{iter::IdentifyLast, util::take::Take, Span, DUMMY_SP};
|
||||
use swc_ecma_ast::*;
|
||||
use swc_ecma_utils::{
|
||||
ExprExt, Type,
|
||||
ExprExt, ExprFactory, Type,
|
||||
Value::{self, Known},
|
||||
};
|
||||
|
||||
@ -230,6 +230,56 @@ impl Pure<'_> {
|
||||
}
|
||||
}
|
||||
|
||||
/// new Array(...) -> Array(...)
|
||||
pub(super) fn remove_new(&mut self, e: &mut Expr) {
|
||||
if !self.options.pristine_globals {
|
||||
return;
|
||||
}
|
||||
|
||||
match e {
|
||||
Expr::New(NewExpr {
|
||||
span,
|
||||
callee,
|
||||
args,
|
||||
type_args,
|
||||
}) if callee.is_one_of_global_ref_to(
|
||||
&self.expr_ctx,
|
||||
&[
|
||||
// https://262.ecma-international.org/12.0/#sec-array-constructor
|
||||
"Array",
|
||||
// https://262.ecma-international.org/12.0/#sec-function-constructor
|
||||
"Function",
|
||||
// https://262.ecma-international.org/12.0/#sec-regexp-constructor
|
||||
"RegExp",
|
||||
// https://262.ecma-international.org/12.0/#sec-error-constructor
|
||||
"Error",
|
||||
// https://262.ecma-international.org/12.0/#sec-aggregate-error-constructor
|
||||
"AggregateError",
|
||||
// https://262.ecma-international.org/12.0/#sec-nativeerror-object-structure
|
||||
"EvalError",
|
||||
"RangeError",
|
||||
"ReferenceError",
|
||||
"SyntaxError",
|
||||
"TypeError",
|
||||
"URIError",
|
||||
],
|
||||
) =>
|
||||
{
|
||||
self.changed = true;
|
||||
report_change!(
|
||||
"new operator: Compressing `new Array/RegExp/..` => `Array()/RegExp()/..`"
|
||||
);
|
||||
*e = Expr::Call(CallExpr {
|
||||
span: *span,
|
||||
callee: callee.take().as_callee(),
|
||||
args: args.take().unwrap_or_default(),
|
||||
type_args: type_args.take(),
|
||||
})
|
||||
}
|
||||
_ => {}
|
||||
}
|
||||
}
|
||||
|
||||
/// Removes last return statement. This should be callled only if the return
|
||||
/// value of function is ignored.
|
||||
///
|
||||
@ -761,25 +811,37 @@ impl Pure<'_> {
|
||||
|
||||
if self.options.side_effects && self.options.pristine_globals {
|
||||
match e {
|
||||
Expr::New(NewExpr { callee, args, .. }) => {
|
||||
if let Expr::Ident(i) = &**callee {
|
||||
match &*i.sym {
|
||||
"Map" | "Set" | "Array" | "Object" | "Boolean" | "Number" => {
|
||||
if i.span.ctxt.outer() == self.marks.unresolved_mark {
|
||||
report_change!("Dropping a pure new expression");
|
||||
Expr::New(NewExpr { callee, args, .. })
|
||||
if callee.is_one_of_global_ref_to(
|
||||
&self.expr_ctx,
|
||||
&["Map", "Set", "Array", "Object", "Boolean", "Number"],
|
||||
) =>
|
||||
{
|
||||
report_change!("Dropping a pure new expression");
|
||||
|
||||
self.changed = true;
|
||||
*e = self
|
||||
.make_ignored_expr(
|
||||
args.iter_mut().flatten().map(|arg| arg.expr.take()),
|
||||
)
|
||||
.unwrap_or(Expr::Invalid(Invalid { span: DUMMY_SP }));
|
||||
return;
|
||||
}
|
||||
}
|
||||
_ => {}
|
||||
}
|
||||
}
|
||||
self.changed = true;
|
||||
*e = self
|
||||
.make_ignored_expr(args.iter_mut().flatten().map(|arg| arg.expr.take()))
|
||||
.unwrap_or(Expr::Invalid(Invalid { span: DUMMY_SP }));
|
||||
return;
|
||||
}
|
||||
|
||||
Expr::Call(CallExpr {
|
||||
callee: Callee::Expr(callee),
|
||||
args,
|
||||
..
|
||||
}) if callee.is_one_of_global_ref_to(
|
||||
&self.expr_ctx,
|
||||
&["Array", "Object", "Boolean", "Number"],
|
||||
) =>
|
||||
{
|
||||
report_change!("Dropping a pure call expression");
|
||||
|
||||
self.changed = true;
|
||||
*e = self
|
||||
.make_ignored_expr(args.iter_mut().map(|arg| arg.expr.take()))
|
||||
.unwrap_or(Expr::Invalid(Invalid { span: DUMMY_SP }));
|
||||
return;
|
||||
}
|
||||
|
||||
Expr::Object(obj) => {
|
||||
|
@ -370,6 +370,8 @@ impl VisitMut for Pure<'_> {
|
||||
self.compress_negated_bin_eq(e);
|
||||
|
||||
self.compress_useless_cond_expr(e);
|
||||
|
||||
self.remove_new(e);
|
||||
}
|
||||
|
||||
fn visit_mut_expr_stmt(&mut self, s: &mut ExprStmt) {
|
||||
|
@ -1,5 +1,5 @@
|
||||
function _classCallCheck(instance, Constructor) {
|
||||
if (!(instance instanceof Constructor)) throw new TypeError("Cannot call a class as a function");
|
||||
if (!(instance instanceof Constructor)) throw TypeError("Cannot call a class as a function");
|
||||
}
|
||||
function _defineProperties(target, props) {
|
||||
for(var i = 0; i < props.length; i++){
|
||||
|
@ -10,7 +10,7 @@
|
||||
module.exports = {
|
||||
findConfig: function(from) {
|
||||
return function(dir) {
|
||||
throw new Error("");
|
||||
throw Error("");
|
||||
};
|
||||
}
|
||||
};
|
||||
|
@ -10,7 +10,7 @@ createCommonjsModule(function(module, exports) {
|
||||
module.exports = {
|
||||
findConfig: function(from) {
|
||||
return function(dir) {
|
||||
throw new Error("");
|
||||
throw Error("");
|
||||
};
|
||||
}
|
||||
};
|
||||
|
@ -10,7 +10,7 @@ createCommonjsModule(function(module, exports) {
|
||||
module.exports = {
|
||||
findConfig: function(from) {
|
||||
return function(dir) {
|
||||
throw new Error("");
|
||||
throw Error("");
|
||||
};
|
||||
}
|
||||
};
|
||||
|
@ -274,7 +274,7 @@
|
||||
"auth",
|
||||
"setAuth",
|
||||
])), pageConfigAuth = pageConfig.auth;
|
||||
if (pageConfigAuth && !Array.isArray(pageConfigAuth)) throw new Error("pageConfig.auth must be an array");
|
||||
if (pageConfigAuth && !Array.isArray(pageConfigAuth)) throw Error("pageConfig.auth must be an array");
|
||||
return Array.isArray(pageConfigAuth) && pageConfigAuth.length && !Object.keys(auth).filter(function(item) {
|
||||
return !!pageConfigAuth.includes(item) && auth[item];
|
||||
}).length ? authConfig.NoAuthFallback ? "function" == typeof authConfig.NoAuthFallback ? _jsxRuntime.jsx(authConfig.NoAuthFallback, {}) : authConfig.NoAuthFallback : null : _jsxRuntime.jsx(PageComponent, swcHelpers.objectSpread({}, rest));
|
||||
@ -577,13 +577,13 @@
|
||||
Object.defineProperty(exports, "__esModule", {
|
||||
value: !0
|
||||
}), exports.default = void 0, exports.default = function() {
|
||||
for(var _len = arguments.length, strArray = new Array(_len), _key = 0; _key < _len; _key++)strArray[_key] = arguments[_key];
|
||||
for(var _len = arguments.length, strArray = Array(_len), _key = 0; _key < _len; _key++)strArray[_key] = arguments[_key];
|
||||
if (0 === strArray.length) return "";
|
||||
var resultArray = [], filterStrArray = strArray.filter(function(str) {
|
||||
return "" !== str;
|
||||
});
|
||||
return filterStrArray.forEach(function(str, index) {
|
||||
if ("string" != typeof str) throw new Error("Path must be a string. Received ".concat(str));
|
||||
if ("string" != typeof str) throw Error("Path must be a string. Received ".concat(str));
|
||||
var routePath = str;
|
||||
index > 0 && (routePath = routePath.replace(/^[/]+/, "")), routePath = index < filterStrArray.length - 1 ? routePath.replace(/[/]+$/, "") : routePath.replace(/[/]+$/, "/"), resultArray.push(routePath);
|
||||
}), resultArray.join("/");
|
||||
@ -715,7 +715,7 @@
|
||||
var _react_17_0_2_react = __webpack_require__(59301), objectWithoutPropertiesLoose = __webpack_require__(21617), esm_extends = __webpack_require__(87062), inheritsLoose = __webpack_require__(48861), _react_is_16_13_1_react_is = __webpack_require__(99234), hoist_non_react_statics_cjs = __webpack_require__(94266), hoist_non_react_statics_cjs_default = __webpack_require__.n(hoist_non_react_statics_cjs);
|
||||
function invariant(condition, message) {
|
||||
if (!condition) {
|
||||
var error = new Error("loadable: " + message);
|
||||
var error = Error("loadable: " + message);
|
||||
throw error.framesToPop = 1, error.name = "Invariant Violation", error;
|
||||
}
|
||||
}
|
||||
@ -759,7 +759,7 @@
|
||||
}
|
||||
function resolve(module, props, Loadable) {
|
||||
var Component = options.resolveComponent ? options.resolveComponent(module, props) : defaultResolveComponent(module);
|
||||
if (options.resolveComponent && !(0, _react_is_16_13_1_react_is.isValidElementType)(Component)) throw new Error("resolveComponent returned something that is not a React component!");
|
||||
if (options.resolveComponent && !(0, _react_is_16_13_1_react_is.isValidElementType)(Component)) throw Error("resolveComponent returned something that is not a React component!");
|
||||
return hoist_non_react_statics_cjs_default()(Loadable, Component, {
|
||||
preload: !0
|
||||
}), Component;
|
||||
@ -775,7 +775,7 @@
|
||||
}, invariant(!props.__chunkExtractor || ctor1.requireSync, "SSR requires `@loadable/babel-plugin`, please install it"), props.__chunkExtractor) ? (!1 === options.ssr || (ctor1.requireAsync(props).catch(function() {
|
||||
return null;
|
||||
}), _this.loadSync(), props.__chunkExtractor.addChunk(ctor1.chunkName(props))), function(self) {
|
||||
if (void 0 === self) throw new ReferenceError("this hasn't been initialised - super() hasn't been called");
|
||||
if (void 0 === self) throw ReferenceError("this hasn't been initialised - super() hasn't been called");
|
||||
return self;
|
||||
}(_this)) : (!1 !== options.ssr && (ctor1.isReady && ctor1.isReady(props) || ctor1.chunkName && LOADABLE_SHARED.initialChunks[ctor1.chunkName(props)]) && _this.loadSync(), _this);
|
||||
}
|
||||
@ -919,7 +919,7 @@
|
||||
if (extElement) JSON.parse(extElement.textContent).namedChunks.forEach(function(chunkName) {
|
||||
LOADABLE_SHARED.initialChunks[chunkName] = !0;
|
||||
});
|
||||
else throw new Error("loadable-component: @loadable/server does not match @loadable/component");
|
||||
else throw Error("loadable-component: @loadable/server does not match @loadable/component");
|
||||
}
|
||||
}
|
||||
if (!requiredChunks) return warn("`loadableReady()` requires state, please use `getScriptTags` or `getScriptElements` server-side"), done(), Promise.resolve();
|
||||
@ -961,12 +961,12 @@
|
||||
}
|
||||
function _arrayWithoutHoles(arr) {
|
||||
if (Array.isArray(arr)) {
|
||||
for(var i = 0, arr2 = new Array(arr.length); i < arr.length; i++)arr2[i] = arr[i];
|
||||
for(var i = 0, arr2 = Array(arr.length); i < arr.length; i++)arr2[i] = arr[i];
|
||||
return arr2;
|
||||
}
|
||||
}
|
||||
function _assertThisInitialized(self) {
|
||||
if (void 0 === self) throw new ReferenceError("this hasn't been initialised - super() hasn't been called");
|
||||
if (void 0 === self) throw ReferenceError("this hasn't been initialised - super() hasn't been called");
|
||||
return self;
|
||||
}
|
||||
function _AwaitValue(value) {
|
||||
@ -1046,7 +1046,7 @@
|
||||
function _asyncIterator(iterable) {
|
||||
var method;
|
||||
if ("function" == typeof Symbol && (Symbol.asyncIterator && null != (method = iterable[Symbol.asyncIterator]) || Symbol.iterator && null != (method = iterable[Symbol.iterator]))) return method.call(iterable);
|
||||
throw new TypeError("Object is not async iterable");
|
||||
throw TypeError("Object is not async iterable");
|
||||
}
|
||||
function asyncGeneratorStep(gen, resolve, reject, _next, _throw, key, arg) {
|
||||
try {
|
||||
@ -1076,39 +1076,39 @@
|
||||
return new _AwaitValue(value);
|
||||
}
|
||||
function _classCallCheck(instance, Constructor) {
|
||||
if (!(instance instanceof Constructor)) throw new TypeError("Cannot call a class as a function");
|
||||
if (!(instance instanceof Constructor)) throw TypeError("Cannot call a class as a function");
|
||||
}
|
||||
function _classNameTDZError(name) {
|
||||
throw new Error('Class "' + name + '" cannot be referenced in computed property keys.');
|
||||
throw Error('Class "' + name + '" cannot be referenced in computed property keys.');
|
||||
}
|
||||
function _classPrivateFieldGet(receiver, privateMap) {
|
||||
if (!privateMap.has(receiver)) throw new TypeError("attempted to get private field on non-instance");
|
||||
if (!privateMap.has(receiver)) throw TypeError("attempted to get private field on non-instance");
|
||||
return privateMap.get(receiver).value;
|
||||
}
|
||||
function _classPrivateFieldBase(receiver, privateKey) {
|
||||
if (!Object.prototype.hasOwnProperty.call(receiver, privateKey)) throw new TypeError("attempted to use private field on non-instance");
|
||||
if (!Object.prototype.hasOwnProperty.call(receiver, privateKey)) throw TypeError("attempted to use private field on non-instance");
|
||||
return receiver;
|
||||
}
|
||||
function _classPrivateFieldSet(receiver, privateMap, value) {
|
||||
if (!privateMap.has(receiver)) throw new TypeError("attempted to set private field on non-instance");
|
||||
if (!privateMap.has(receiver)) throw TypeError("attempted to set private field on non-instance");
|
||||
var descriptor = privateMap.get(receiver);
|
||||
if (!descriptor.writable) throw new TypeError("attempted to set read only private field");
|
||||
if (!descriptor.writable) throw TypeError("attempted to set read only private field");
|
||||
return descriptor.value = value, value;
|
||||
}
|
||||
function _classPrivateMethodGet(receiver, privateSet, fn) {
|
||||
if (!privateSet.has(receiver)) throw new TypeError("attempted to get private field on non-instance");
|
||||
if (!privateSet.has(receiver)) throw TypeError("attempted to get private field on non-instance");
|
||||
return fn;
|
||||
}
|
||||
function _classPrivateMethodSet() {
|
||||
throw new TypeError("attempted to reassign private method");
|
||||
throw TypeError("attempted to reassign private method");
|
||||
}
|
||||
function _classStaticPrivateFieldSpecGet(receiver, classConstructor, descriptor) {
|
||||
if (receiver !== classConstructor) throw new TypeError("Private static access of wrong provenance");
|
||||
if (receiver !== classConstructor) throw TypeError("Private static access of wrong provenance");
|
||||
return descriptor.value;
|
||||
}
|
||||
function _classStaticPrivateFieldSpecSet(receiver, classConstructor, descriptor, value) {
|
||||
if (receiver !== classConstructor) throw new TypeError("Private static access of wrong provenance");
|
||||
if (!descriptor.writable) throw new TypeError("attempted to set read only private field");
|
||||
if (receiver !== classConstructor) throw TypeError("Private static access of wrong provenance");
|
||||
if (!descriptor.writable) throw TypeError("attempted to set read only private field");
|
||||
return descriptor.value = value, value;
|
||||
}
|
||||
function construct(Parent1, args1, Class1) {
|
||||
@ -1145,7 +1145,7 @@
|
||||
if (Symbol.iterator in Object(iter) || "[object Arguments]" === Object.prototype.toString.call(iter)) return Array.from(iter);
|
||||
}
|
||||
function _nonIterableRest() {
|
||||
throw new TypeError("Invalid attempt to destructure non-iterable instance");
|
||||
throw TypeError("Invalid attempt to destructure non-iterable instance");
|
||||
}
|
||||
function _toArray(arr) {
|
||||
return _arrayWithHoles(arr) || _iterableToArray(arr) || _nonIterableRest();
|
||||
@ -1159,7 +1159,7 @@
|
||||
if (void 0 !== prim) {
|
||||
var res = prim.call(input, hint || "default");
|
||||
if ("object" !== _type_of_typeof(res)) return res;
|
||||
throw new TypeError("@@toPrimitive must return a primitive value.");
|
||||
throw TypeError("@@toPrimitive must return a primitive value.");
|
||||
}
|
||||
return ("string" === hint ? String : Number)(input);
|
||||
}
|
||||
@ -1214,11 +1214,11 @@
|
||||
return "method" === other.kind && other.key === element.key && other.placement === element.placement;
|
||||
}))) {
|
||||
if (_isDataDescriptor(element.descriptor) || _isDataDescriptor(other1.descriptor)) {
|
||||
if (_hasDecorators(element) || _hasDecorators(other1)) throw new ReferenceError("Duplicated methods (" + element.key + ") can't be decorated.");
|
||||
if (_hasDecorators(element) || _hasDecorators(other1)) throw ReferenceError("Duplicated methods (" + element.key + ") can't be decorated.");
|
||||
other1.descriptor = element.descriptor;
|
||||
} else {
|
||||
if (_hasDecorators(element)) {
|
||||
if (_hasDecorators(other1)) throw new ReferenceError("Decorators can't be placed on different accessors with for the same property (" + element.key + ").");
|
||||
if (_hasDecorators(other1)) throw ReferenceError("Decorators can't be placed on different accessors with for the same property (" + element.key + ").");
|
||||
other1.decorators = element.decorators;
|
||||
}
|
||||
_coalesceGetterSetter(element, other1);
|
||||
@ -1289,7 +1289,7 @@
|
||||
}
|
||||
function _addElementPlacement(element, placements, silent) {
|
||||
var keys = placements[element.placement];
|
||||
if (!silent && -1 !== keys.indexOf(element.key)) throw new TypeError("Duplicated element (" + element.key + ")");
|
||||
if (!silent && -1 !== keys.indexOf(element.key)) throw TypeError("Duplicated element (" + element.key + ")");
|
||||
keys.push(element.key);
|
||||
}
|
||||
function _decorateElement(element, placements) {
|
||||
@ -1315,7 +1315,7 @@
|
||||
var obj = _fromClassDescriptor(elements), elementsAndFinisher = _toClassDescriptor((0, decorators[i])(obj) || obj);
|
||||
if (void 0 !== elementsAndFinisher.finisher && finishers.push(elementsAndFinisher.finisher), void 0 !== elementsAndFinisher.elements) {
|
||||
elements = elementsAndFinisher.elements;
|
||||
for(var j = 0; j < elements.length - 1; j++)for(var k = j + 1; k < elements.length; k++)if (elements[j].key === elements[k].key && elements[j].placement === elements[k].placement) throw new TypeError("Duplicated element (" + elements[j].key + ")");
|
||||
for(var j = 0; j < elements.length - 1; j++)for(var k = j + 1; k < elements.length; k++)if (elements[j].key === elements[k].key && elements[j].placement === elements[k].placement) throw TypeError("Duplicated element (" + elements[j].key + ")");
|
||||
}
|
||||
}
|
||||
return {
|
||||
@ -1343,9 +1343,9 @@
|
||||
}
|
||||
function _toElementDescriptor(elementObject) {
|
||||
var kind = String(elementObject.kind);
|
||||
if ("method" !== kind && "field" !== kind) throw new TypeError('An element descriptor\'s .kind property must be either "method" or "field", but a decorator created an element descriptor with .kind "' + kind + '"');
|
||||
if ("method" !== kind && "field" !== kind) throw TypeError('An element descriptor\'s .kind property must be either "method" or "field", but a decorator created an element descriptor with .kind "' + kind + '"');
|
||||
var key = _toPropertyKey(elementObject.key), placement = String(elementObject.placement);
|
||||
if ("static" !== placement && "prototype" !== placement && "own" !== placement) throw new TypeError('An element descriptor\'s .placement property must be one of "static", "prototype" or "own", but a decorator created an element descriptor with .placement "' + placement + '"');
|
||||
if ("static" !== placement && "prototype" !== placement && "own" !== placement) throw TypeError('An element descriptor\'s .placement property must be one of "static", "prototype" or "own", but a decorator created an element descriptor with .placement "' + placement + '"');
|
||||
var descriptor = elementObject.descriptor;
|
||||
_disallowProperty(elementObject, "elements", "An element descriptor");
|
||||
var element = {
|
||||
@ -1376,7 +1376,7 @@
|
||||
}
|
||||
function _toClassDescriptor(obj) {
|
||||
var kind = String(obj.kind);
|
||||
if ("class" !== kind) throw new TypeError('A class descriptor\'s .kind property must be "class", but a decorator created a class descriptor with .kind "' + kind + '"');
|
||||
if ("class" !== kind) throw TypeError('A class descriptor\'s .kind property must be "class", but a decorator created a class descriptor with .kind "' + kind + '"');
|
||||
_disallowProperty(obj, "key", "A class descriptor"), _disallowProperty(obj, "placement", "A class descriptor"), _disallowProperty(obj, "descriptor", "A class descriptor"), _disallowProperty(obj, "initializer", "A class descriptor"), _disallowProperty(obj, "extras", "A class descriptor");
|
||||
var finisher = _optionalCallableProperty(obj, "finisher");
|
||||
return {
|
||||
@ -1385,18 +1385,18 @@
|
||||
};
|
||||
}
|
||||
function _disallowProperty(obj, name, objectType) {
|
||||
if (void 0 !== obj[name]) throw new TypeError(objectType + " can't have a ." + name + " property.");
|
||||
if (void 0 !== obj[name]) throw TypeError(objectType + " can't have a ." + name + " property.");
|
||||
}
|
||||
function _optionalCallableProperty(obj, name) {
|
||||
var value = obj[name];
|
||||
if (void 0 !== value && "function" != typeof value) throw new TypeError("Expected '" + name + "' to be a function");
|
||||
if (void 0 !== value && "function" != typeof value) throw TypeError("Expected '" + name + "' to be a function");
|
||||
return value;
|
||||
}
|
||||
function _runClassFinishers(constructor, finishers) {
|
||||
for(var i = 0; i < finishers.length; i++){
|
||||
var newConstructor = (0, finishers[i])(constructor);
|
||||
if (void 0 !== newConstructor) {
|
||||
if ("function" != typeof newConstructor) throw new TypeError("Finishers must return a constructor.");
|
||||
if ("function" != typeof newConstructor) throw TypeError("Finishers must return a constructor.");
|
||||
constructor = newConstructor;
|
||||
}
|
||||
}
|
||||
@ -1473,7 +1473,7 @@
|
||||
return setPrototypeOf(o, p);
|
||||
}
|
||||
function _inherits(subClass, superClass) {
|
||||
if ("function" != typeof superClass && null !== superClass) throw new TypeError("Super expression must either be null or a function");
|
||||
if ("function" != typeof superClass && null !== superClass) throw TypeError("Super expression must either be null or a function");
|
||||
subClass.prototype = Object.create(superClass && superClass.prototype, {
|
||||
constructor: {
|
||||
value: subClass,
|
||||
@ -1494,7 +1494,7 @@
|
||||
});
|
||||
}
|
||||
function _initializerWarningHelper(descriptor, context) {
|
||||
throw new Error("Decorating class property failed. Please ensure that proposal-class-properties is enabled and set to use loose mode. To use proposal-class-properties in spec mode with decorators, wait for the next major version of decorators in stage 2.");
|
||||
throw Error("Decorating class property failed. Please ensure that proposal-class-properties is enabled and set to use loose mode. To use proposal-class-properties in spec mode with decorators, wait for the next major version of decorators in stage 2.");
|
||||
}
|
||||
function _instanceof(left, right) {
|
||||
return null != right && "undefined" != typeof Symbol && right[Symbol.hasInstance] ? right[Symbol.hasInstance](left) : left instanceof right;
|
||||
@ -1546,7 +1546,7 @@
|
||||
else props || (props = defaultProps || {});
|
||||
if (1 === childrenLength) props.children = children;
|
||||
else if (childrenLength > 1) {
|
||||
for(var childArray = new Array(childrenLength), i = 0; i < childrenLength; i++)childArray[i] = arguments[i + 3];
|
||||
for(var childArray = Array(childrenLength), i = 0; i < childrenLength; i++)childArray[i] = arguments[i + 3];
|
||||
props.children = childArray;
|
||||
}
|
||||
return {
|
||||
@ -1559,10 +1559,10 @@
|
||||
};
|
||||
}
|
||||
function _newArrowCheck(innerThis, boundThis) {
|
||||
if (innerThis !== boundThis) throw new TypeError("Cannot instantiate an arrow function");
|
||||
if (innerThis !== boundThis) throw TypeError("Cannot instantiate an arrow function");
|
||||
}
|
||||
function _nonIterableSpread() {
|
||||
throw new TypeError("Invalid attempt to spread non-iterable instance");
|
||||
throw TypeError("Invalid attempt to spread non-iterable instance");
|
||||
}
|
||||
function _objectSpread(target) {
|
||||
for(var i = 1; i < arguments.length; i++){
|
||||
@ -1594,7 +1594,7 @@
|
||||
return call && ("object" === _type_of_typeof(call) || "function" == typeof call) ? call : _assertThisInitialized(self);
|
||||
}
|
||||
function _readOnlyError(name) {
|
||||
throw new Error('"' + name + '" is read-only');
|
||||
throw Error('"' + name + '" is read-only');
|
||||
}
|
||||
function set(target2, property2, value1, receiver2) {
|
||||
return (set = "undefined" != typeof Reflect && Reflect.set ? Reflect.set : function(target, property, value, receiver) {
|
||||
@ -1611,7 +1611,7 @@
|
||||
})(target2, property2, value1, receiver2);
|
||||
}
|
||||
function _set(target, property, value, receiver, isStrict) {
|
||||
if (!set(target, property, value, receiver || target) && isStrict) throw new Error("failed to set property");
|
||||
if (!set(target, property, value, receiver || target) && isStrict) throw Error("failed to set property");
|
||||
return value;
|
||||
}
|
||||
function _skipFirstGeneratorNext(fn) {
|
||||
@ -1651,7 +1651,7 @@
|
||||
var _cache = "function" == typeof Map ? new Map() : void 0;
|
||||
return (wrapNativeSuper = function(Class) {
|
||||
if (null === Class || !_isNativeFunction(Class)) return Class;
|
||||
if ("function" != typeof Class) throw new TypeError("Super expression must either be null or a function");
|
||||
if ("function" != typeof Class) throw TypeError("Super expression must either be null or a function");
|
||||
if (void 0 !== _cache) {
|
||||
if (_cache.has(Class)) return _cache.get(Class);
|
||||
_cache.set(Class, Wrapper);
|
||||
@ -2000,7 +2000,7 @@
|
||||
"use strict";
|
||||
var Cancel = __webpack_require__(69651);
|
||||
function CancelToken(executor) {
|
||||
if ("function" != typeof executor) throw new TypeError("executor must be a function.");
|
||||
if ("function" != typeof executor) throw TypeError("executor must be a function.");
|
||||
this.promise = new Promise(function(resolve) {
|
||||
resolvePromise = resolve;
|
||||
});
|
||||
@ -2136,7 +2136,7 @@
|
||||
"use strict";
|
||||
var enhanceError = __webpack_require__(16488);
|
||||
module.exports = function(message, config, code, request, response) {
|
||||
var error = new Error(message);
|
||||
var error = Error(message);
|
||||
return enhanceError(error, config, code, request, response);
|
||||
};
|
||||
},
|
||||
@ -2333,7 +2333,7 @@
|
||||
"use strict";
|
||||
module.exports = function(fn, thisArg) {
|
||||
return function() {
|
||||
for(var args = new Array(arguments.length), i = 0; i < args.length; i++)args[i] = arguments[i];
|
||||
for(var args = Array(arguments.length), i = 0; i < args.length; i++)args[i] = arguments[i];
|
||||
return fn.apply(thisArg, args);
|
||||
};
|
||||
};
|
||||
@ -2380,7 +2380,7 @@
|
||||
cookie.push(name + "=" + encodeURIComponent(value)), utils.isNumber(expires) && cookie.push("expires=" + new Date(expires).toGMTString()), utils.isString(path) && cookie.push("path=" + path), utils.isString(domain) && cookie.push("domain=" + domain), !0 === secure && cookie.push("secure"), document.cookie = cookie.join("; ");
|
||||
},
|
||||
read: function(name) {
|
||||
var match = document.cookie.match(new RegExp("(^|;\\s*)(" + name + ")=([^;]*)"));
|
||||
var match = document.cookie.match(RegExp("(^|;\\s*)(" + name + ")=([^;]*)"));
|
||||
return match ? decodeURIComponent(match[3]) : null;
|
||||
},
|
||||
remove: function(name) {
|
||||
@ -2508,18 +2508,18 @@
|
||||
return "[Axios v" + pkg.version + "] Transitional option '" + opt + "'" + desc + (message ? ". " + message : "");
|
||||
}
|
||||
return function(value, opt, opts) {
|
||||
if (!1 === validator) throw new Error(formatMessage(opt, " has been removed in " + version));
|
||||
if (!1 === validator) throw Error(formatMessage(opt, " has been removed in " + version));
|
||||
return isDeprecated && !deprecatedWarnings[opt] && (deprecatedWarnings[opt] = !0, console.warn(formatMessage(opt, " has been deprecated since v" + version + " and will be removed in the near future"))), !validator || validator(value, opt, opts);
|
||||
};
|
||||
}, module.exports = {
|
||||
isOlderVersion: isOlderVersion,
|
||||
assertOptions: function(options, schema, allowUnknown) {
|
||||
if ("object" != typeof options) throw new TypeError("options must be an object");
|
||||
if ("object" != typeof options) throw TypeError("options must be an object");
|
||||
for(var keys = Object.keys(options), i = keys.length; i-- > 0;){
|
||||
var opt = keys[i], validator = schema[opt];
|
||||
if (validator) {
|
||||
var value = options[opt], result = void 0 === value || validator(value, opt, options);
|
||||
if (!0 !== result) throw new TypeError("option " + opt + " must be " + result);
|
||||
if (!0 !== result) throw TypeError("option " + opt + " must be " + result);
|
||||
continue;
|
||||
}
|
||||
if (!0 !== allowUnknown) throw Error("Unknown option " + opt);
|
||||
@ -2829,7 +2829,7 @@
|
||||
anInstance(this, $ArrayBuffer, ARRAY_BUFFER);
|
||||
var byteLength = toIndex(length);
|
||||
setInternalState(this, {
|
||||
bytes: arrayFill.call(new Array(byteLength), 0),
|
||||
bytes: arrayFill.call(Array(byteLength), 0),
|
||||
byteLength: byteLength
|
||||
}), DESCRIPTORS || (this.byteLength = byteLength);
|
||||
}, $DataView = function(buffer, byteOffset, byteLength) {
|
||||
@ -3862,7 +3862,7 @@
|
||||
var abs = Math.abs, pow = Math.pow, floor = Math.floor, log = Math.log, LN2 = Math.LN2;
|
||||
module.exports = {
|
||||
pack: function(number, mantissaLength, bytes) {
|
||||
var exponent, mantissa, c, buffer = new Array(bytes), exponentLength = 8 * bytes - mantissaLength - 1, eMax = (1 << exponentLength) - 1, eBias = eMax >> 1, rt = 23 === mantissaLength ? pow(2, -24) - pow(2, -77) : 0, sign = number < 0 || 0 === number && 1 / number < 0 ? 1 : 0, index = 0;
|
||||
var exponent, mantissa, c, buffer = Array(bytes), exponentLength = 8 * bytes - mantissaLength - 1, eMax = (1 << exponentLength) - 1, eBias = eMax >> 1, rt = 23 === mantissaLength ? pow(2, -24) - pow(2, -77) : 0, sign = number < 0 || 0 === number && 1 / number < 0 ? 1 : 0, index = 0;
|
||||
for((number = abs(number)) != number || number === 1 / 0 ? (mantissa = number != number ? 1 : 0, exponent = eMax) : (exponent = floor(log(number) / LN2), number * (c = pow(2, -exponent)) < 1 && (exponent--, c *= 2), exponent + eBias >= 1 ? number += rt / c : number += rt * pow(2, 1 - eBias), number * c >= 2 && (exponent++, c /= 2), exponent + eBias >= eMax ? (mantissa = 0, exponent = eMax) : exponent + eBias >= 1 ? (mantissa = (number * c - 1) * pow(2, mantissaLength), exponent += eBias) : (mantissa = number * pow(2, eBias - 1) * pow(2, mantissaLength), exponent = 0)); mantissaLength >= 8; buffer[index++] = 255 & mantissa, mantissa /= 256, mantissaLength -= 8);
|
||||
for(exponent = exponent << mantissaLength | mantissa, exponentLength += mantissaLength; exponentLength > 0; buffer[index++] = 255 & exponent, exponent /= 256, exponentLength -= 8);
|
||||
return buffer[--index] |= 128 * sign, buffer;
|
||||
@ -3957,7 +3957,7 @@
|
||||
if (NATIVE_WEAK_MAP || shared.state) {
|
||||
var store = shared.state || (shared.state = new WeakMap()), wmget = store.get, wmhas = store.has, wmset = store.set;
|
||||
set = function(it, metadata) {
|
||||
if (wmhas.call(store, it)) throw new TypeError(OBJECT_ALREADY_INITIALIZED);
|
||||
if (wmhas.call(store, it)) throw TypeError(OBJECT_ALREADY_INITIALIZED);
|
||||
return metadata.facade = it, wmset.call(store, it, metadata), metadata;
|
||||
}, get = function(it) {
|
||||
return wmget.call(store, it) || {};
|
||||
@ -3967,7 +3967,7 @@
|
||||
} else {
|
||||
var STATE = sharedKey("state");
|
||||
hiddenKeys[STATE] = !0, set = function(it, metadata) {
|
||||
if (objectHas(it, STATE)) throw new TypeError(OBJECT_ALREADY_INITIALIZED);
|
||||
if (objectHas(it, STATE)) throw TypeError(OBJECT_ALREADY_INITIALIZED);
|
||||
return metadata.facade = it, createNonEnumerableProperty(it, STATE, metadata), metadata;
|
||||
}, get = function(it) {
|
||||
return objectHas(it, STATE) ? it[STATE] : {};
|
||||
@ -4525,7 +4525,7 @@
|
||||
var result, reCopy, lastIndex, match, i, object, group, re = this, state = getInternalState(re), str = toString(string), raw = state.raw;
|
||||
if (raw) return raw.lastIndex = re.lastIndex, result = patchedExec.call(raw, str), re.lastIndex = raw.lastIndex, result;
|
||||
var groups = state.groups, sticky = UNSUPPORTED_Y && re.sticky, flags = regexpFlags.call(re), source = re.source, charsAdded = 0, strCopy = str;
|
||||
if (sticky && (-1 === (flags = flags.replace("y", "")).indexOf("g") && (flags += "g"), strCopy = str.slice(re.lastIndex), re.lastIndex > 0 && (!re.multiline || re.multiline && "\n" !== str.charAt(re.lastIndex - 1)) && (source = "(?: " + source + ")", strCopy = " " + strCopy, charsAdded++), reCopy = new RegExp("^(?:" + source + ")", flags)), NPCG_INCLUDED && (reCopy = new RegExp("^" + source + "$(?!\\s)", flags)), UPDATES_LAST_INDEX_WRONG && (lastIndex = re.lastIndex), match = nativeExec.call(sticky ? reCopy : re, strCopy), sticky ? match ? (match.input = match.input.slice(charsAdded), match[0] = match[0].slice(charsAdded), match.index = re.lastIndex, re.lastIndex += match[0].length) : re.lastIndex = 0 : UPDATES_LAST_INDEX_WRONG && match && (re.lastIndex = re.global ? match.index + match[0].length : lastIndex), NPCG_INCLUDED && match && match.length > 1 && nativeReplace.call(match[0], reCopy, function() {
|
||||
if (sticky && (-1 === (flags = flags.replace("y", "")).indexOf("g") && (flags += "g"), strCopy = str.slice(re.lastIndex), re.lastIndex > 0 && (!re.multiline || re.multiline && "\n" !== str.charAt(re.lastIndex - 1)) && (source = "(?: " + source + ")", strCopy = " " + strCopy, charsAdded++), reCopy = RegExp("^(?:" + source + ")", flags)), NPCG_INCLUDED && (reCopy = RegExp("^" + source + "$(?!\\s)", flags)), UPDATES_LAST_INDEX_WRONG && (lastIndex = re.lastIndex), match = nativeExec.call(sticky ? reCopy : re, strCopy), sticky ? match ? (match.input = match.input.slice(charsAdded), match[0] = match[0].slice(charsAdded), match.index = re.lastIndex, re.lastIndex += match[0].length) : re.lastIndex = 0 : UPDATES_LAST_INDEX_WRONG && match && (re.lastIndex = re.global ? match.index + match[0].length : lastIndex), NPCG_INCLUDED && match && match.length > 1 && nativeReplace.call(match[0], reCopy, function() {
|
||||
for(i = 1; i < arguments.length - 2; i++)void 0 === arguments[i] && (match[i] = void 0);
|
||||
}), match && groups) for(i = 0, match.groups = object = create(null); i < groups.length; i++)object[(group = groups[i])[0]] = match[group[1]];
|
||||
return match;
|
||||
@ -5035,7 +5035,7 @@
|
||||
var $ = __webpack_require__(35437), getPrototypeOf = __webpack_require__(39311), setPrototypeOf = __webpack_require__(59057), create = __webpack_require__(18255), createNonEnumerableProperty = __webpack_require__(48181), createPropertyDescriptor = __webpack_require__(93608), iterate = __webpack_require__(7261), toString = __webpack_require__(72729), $AggregateError = function(errors, message) {
|
||||
var that = this;
|
||||
if (!(that instanceof $AggregateError)) return new $AggregateError(errors, message);
|
||||
setPrototypeOf && (that = setPrototypeOf(new Error(void 0), getPrototypeOf(that))), void 0 !== message && createNonEnumerableProperty(that, "message", toString(message));
|
||||
setPrototypeOf && (that = setPrototypeOf(Error(void 0), getPrototypeOf(that))), void 0 !== message && createNonEnumerableProperty(that, "message", toString(message));
|
||||
var errorsArray = [];
|
||||
return iterate(errors, errorsArray.push, {
|
||||
that: errorsArray
|
||||
@ -6975,7 +6975,7 @@
|
||||
IS_NCG.test(string.slice(index + 1)) && (index += 2, ncg = !0), result += chr, groupid++;
|
||||
continue;
|
||||
case ">" === chr && ncg:
|
||||
if ("" === groupname || has(names, groupname)) throw new SyntaxError("Invalid capture group name");
|
||||
if ("" === groupname || has(names, groupname)) throw SyntaxError("Invalid capture group name");
|
||||
names[groupname] = !0, named.push([
|
||||
groupname,
|
||||
groupid
|
||||
@ -7074,7 +7074,7 @@
|
||||
var exec = this.exec;
|
||||
if (!isCallable(exec)) return nativeTest.call(this, str);
|
||||
var result = exec.call(this, str);
|
||||
if (null !== result && !isObject(result)) throw new Error("RegExp exec method returned something other than an Object or null");
|
||||
if (null !== result && !isObject(result)) throw Error("RegExp exec method returned something other than an Object or null");
|
||||
return !!result;
|
||||
}
|
||||
});
|
||||
@ -7359,7 +7359,7 @@
|
||||
if (WORKS_WITH_NON_GLOBAL_REGEX) return nativeMatchAll.apply(O, arguments);
|
||||
if (void 0 === (matcher = getMethod(regexp, MATCH_ALL)) && IS_PURE && "RegExp" == classof(regexp) && (matcher = $matchAll), matcher) return matcher.call(regexp, O);
|
||||
} else if (WORKS_WITH_NON_GLOBAL_REGEX) return nativeMatchAll.apply(O, arguments);
|
||||
return S = toString(O), rx = new RegExp(regexp, "g"), IS_PURE ? $matchAll.call(rx, S) : rx[MATCH_ALL](S);
|
||||
return S = toString(O), rx = RegExp(regexp, "g"), IS_PURE ? $matchAll.call(rx, S) : rx[MATCH_ALL](S);
|
||||
}
|
||||
}), IS_PURE || MATCH_ALL in RegExpPrototype || redefine(RegExpPrototype, MATCH_ALL, $matchAll);
|
||||
},
|
||||
@ -7370,7 +7370,7 @@
|
||||
return [
|
||||
function(regexp) {
|
||||
var O = requireObjectCoercible(this), matcher = void 0 == regexp ? void 0 : getMethod(regexp, MATCH);
|
||||
return matcher ? matcher.call(regexp, O) : new RegExp(regexp)[MATCH](toString(O));
|
||||
return matcher ? matcher.call(regexp, O) : RegExp(regexp)[MATCH](toString(O));
|
||||
},
|
||||
function(string) {
|
||||
var result, rx = anObject(this), S = toString(string), res = maybeCallNative(nativeMatch, rx, S);
|
||||
@ -7515,7 +7515,7 @@
|
||||
return [
|
||||
function(regexp) {
|
||||
var O = requireObjectCoercible(this), searcher = void 0 == regexp ? void 0 : getMethod(regexp, SEARCH);
|
||||
return searcher ? searcher.call(regexp, O) : new RegExp(regexp)[SEARCH](toString(O));
|
||||
return searcher ? searcher.call(regexp, O) : RegExp(regexp)[SEARCH](toString(O));
|
||||
},
|
||||
function(string) {
|
||||
var rx = anObject(this), S = toString(string), res = maybeCallNative(nativeSearch, rx, S);
|
||||
@ -7560,7 +7560,7 @@
|
||||
string
|
||||
];
|
||||
if (!isRegExp(separator)) return nativeSplit.call(string, separator, lim);
|
||||
for(var output = [], flags = (separator.ignoreCase ? "i" : "") + (separator.multiline ? "m" : "") + (separator.unicode ? "u" : "") + (separator.sticky ? "y" : ""), lastLastIndex = 0, separatorCopy = new RegExp(separator.source, flags + "g"); (match = regexpExec.call(separatorCopy, string)) && (!((lastIndex = separatorCopy.lastIndex) > lastLastIndex) || (output.push(string.slice(lastLastIndex, match.index)), match.length > 1 && match.index < string.length && arrayPush.apply(output, match.slice(1)), lastLength = match[0].length, lastLastIndex = lastIndex, !(output.length >= lim)));)separatorCopy.lastIndex === match.index && separatorCopy.lastIndex++;
|
||||
for(var output = [], flags = (separator.ignoreCase ? "i" : "") + (separator.multiline ? "m" : "") + (separator.unicode ? "u" : "") + (separator.sticky ? "y" : ""), lastLastIndex = 0, separatorCopy = RegExp(separator.source, flags + "g"); (match = regexpExec.call(separatorCopy, string)) && (!((lastIndex = separatorCopy.lastIndex) > lastLastIndex) || (output.push(string.slice(lastLastIndex, match.index)), match.length > 1 && match.index < string.length && arrayPush.apply(output, match.slice(1)), lastLength = match[0].length, lastLastIndex = lastIndex, !(output.length >= lim)));)separatorCopy.lastIndex === match.index && separatorCopy.lastIndex++;
|
||||
return lastLastIndex === string.length ? (lastLength || !separatorCopy.test("")) && output.push("") : output.push(string.slice(lastLastIndex)), output.length > lim ? output.slice(0, lim) : output;
|
||||
} : "0".split(void 0, 0).length ? function(separator, limit) {
|
||||
return void 0 === separator && 0 === limit ? [] : nativeSplit.call(this, separator, limit);
|
||||
@ -9167,7 +9167,7 @@
|
||||
for(var p in b)Object.prototype.hasOwnProperty.call(b, p) && (d[p] = b[p]);
|
||||
})(d1, b1);
|
||||
}, function(d, b) {
|
||||
if ("function" != typeof b && null !== b) throw new TypeError("Class extends value " + String(b) + " is not a constructor or null");
|
||||
if ("function" != typeof b && null !== b) throw TypeError("Class extends value " + String(b) + " is not a constructor or null");
|
||||
function __() {
|
||||
this.constructor = d;
|
||||
}
|
||||
@ -9398,7 +9398,7 @@
|
||||
},
|
||||
74677: function(module) {
|
||||
"use strict";
|
||||
var token = "%[a-f0-9]{2}", singleMatcher = new RegExp(token, "gi"), multiMatcher = new RegExp("(" + token + ")+", "gi");
|
||||
var token = "%[a-f0-9]{2}", singleMatcher = RegExp(token, "gi"), multiMatcher = RegExp("(" + token + ")+", "gi");
|
||||
function decodeComponents(components, split) {
|
||||
try {
|
||||
return decodeURIComponent(components.join(""));
|
||||
@ -9417,7 +9417,7 @@
|
||||
}
|
||||
}
|
||||
module.exports = function(encodedURI) {
|
||||
if ("string" != typeof encodedURI) throw new TypeError("Expected `encodedURI` to be of type `string`, got `" + typeof encodedURI + "`");
|
||||
if ("string" != typeof encodedURI) throw TypeError("Expected `encodedURI` to be of type `string`, got `" + typeof encodedURI + "`");
|
||||
try {
|
||||
return encodedURI = encodedURI.replace(/\+/g, " "), decodeURIComponent(encodedURI);
|
||||
} catch (err) {
|
||||
@ -9437,7 +9437,7 @@
|
||||
replaceMap["%C2"] = "\uFFFD";
|
||||
for(var entries = Object.keys(replaceMap), i = 0; i < entries.length; i++){
|
||||
var key = entries[i];
|
||||
input = input.replace(new RegExp(key, "g"), replaceMap[key]);
|
||||
input = input.replace(RegExp(key, "g"), replaceMap[key]);
|
||||
}
|
||||
return input;
|
||||
}(encodedURI);
|
||||
@ -9555,7 +9555,7 @@
|
||||
try {
|
||||
location.pathname = decodeURI(location.pathname);
|
||||
} catch (e) {
|
||||
if (e instanceof URIError) throw new URIError('Pathname "' + location.pathname + '" could not be decoded. This is likely caused by an invalid percent-encoding.');
|
||||
if (e instanceof URIError) throw URIError('Pathname "' + location.pathname + '" could not be decoded. This is likely caused by an invalid percent-encoding.');
|
||||
throw e;
|
||||
}
|
||||
return key && (location.key = key), currentLocation ? location.pathname ? "/" !== location.pathname.charAt(0) && (location.pathname = resolve_pathname(location.pathname, currentLocation.pathname)) : location.pathname = currentLocation.pathname : location.pathname || (location.pathname = "/"), location;
|
||||
@ -9589,7 +9589,7 @@
|
||||
};
|
||||
},
|
||||
notifyListeners: function() {
|
||||
for(var _len = arguments.length, args = new Array(_len), _key = 0; _key < _len; _key++)args[_key] = arguments[_key];
|
||||
for(var _len = arguments.length, args = Array(_len), _key = 0; _key < _len; _key++)args[_key] = arguments[_key];
|
||||
listeners.forEach(function(listener) {
|
||||
return listener.apply(void 0, args);
|
||||
});
|
||||
@ -10046,7 +10046,7 @@
|
||||
}
|
||||
}() ? function(target, source) {
|
||||
for(var from, symbols, to = function(val) {
|
||||
if (null == val) throw new TypeError("Object.assign cannot be called with null or undefined");
|
||||
if (null == val) throw TypeError("Object.assign cannot be called with null or undefined");
|
||||
return Object(val);
|
||||
}(target), s = 1; s < arguments.length; s++){
|
||||
for(var key in from = Object(arguments[s]))hasOwnProperty.call(from, key) && (to[key] = from[key]);
|
||||
@ -10063,7 +10063,7 @@
|
||||
module.exports = pathToRegexp, module.exports.parse = parse, module.exports.compile = function(str, options) {
|
||||
return tokensToFunction(parse(str, options), options);
|
||||
}, module.exports.tokensToFunction = tokensToFunction, module.exports.tokensToRegExp = tokensToRegExp;
|
||||
var PATH_REGEXP = new RegExp("(\\\\.)|([\\/.])?(?:(?:\\:(\\w+)(?:\\(((?:\\\\.|[^\\\\()])+)\\))?|\\(((?:\\\\.|[^\\\\()])+)\\))([+*?])?|(\\*))", "g");
|
||||
var PATH_REGEXP = RegExp("(\\\\.)|([\\/.])?(?:(?:\\:(\\w+)(?:\\(((?:\\\\.|[^\\\\()])+)\\))?|\\(((?:\\\\.|[^\\\\()])+)\\))([+*?])?|(\\*))", "g");
|
||||
function parse(str, options) {
|
||||
for(var res, tokens = [], key = 0, index = 0, path = "", defaultDelimiter = options && options.delimiter || "/"; null != (res = PATH_REGEXP.exec(str));){
|
||||
var m = res[0], escaped = res[1], offset = res.index;
|
||||
@ -10098,7 +10098,7 @@
|
||||
});
|
||||
}
|
||||
function tokensToFunction(tokens, options) {
|
||||
for(var matches = new Array(tokens.length), i1 = 0; i1 < tokens.length; i1++)"object" == typeof tokens[i1] && (matches[i1] = new RegExp("^(?:" + tokens[i1].pattern + ")$", flags(options)));
|
||||
for(var matches = Array(tokens.length), i1 = 0; i1 < tokens.length; i1++)"object" == typeof tokens[i1] && (matches[i1] = RegExp("^(?:" + tokens[i1].pattern + ")$", flags(options)));
|
||||
return function(obj, opts) {
|
||||
for(var path = "", data = obj || {}, encode = (opts || {}).pretty ? encodeURIComponentPretty : encodeURIComponent, i = 0; i < tokens.length; i++){
|
||||
var segment, token = tokens[i];
|
||||
@ -10112,21 +10112,21 @@
|
||||
token.partial && (path += token.prefix);
|
||||
continue;
|
||||
}
|
||||
throw new TypeError('Expected "' + token.name + '" to be defined');
|
||||
throw TypeError('Expected "' + token.name + '" to be defined');
|
||||
}
|
||||
if (isarray(value)) {
|
||||
if (!token.repeat) throw new TypeError('Expected "' + token.name + '" to not repeat, but received `' + JSON.stringify(value) + "`");
|
||||
if (!token.repeat) throw TypeError('Expected "' + token.name + '" to not repeat, but received `' + JSON.stringify(value) + "`");
|
||||
if (0 === value.length) {
|
||||
if (token.optional) continue;
|
||||
throw new TypeError('Expected "' + token.name + '" to not be empty');
|
||||
throw TypeError('Expected "' + token.name + '" to not be empty');
|
||||
}
|
||||
for(var j = 0; j < value.length; j++){
|
||||
if (segment = encode(value[j]), !matches[i].test(segment)) throw new TypeError('Expected all "' + token.name + '" to match "' + token.pattern + '", but received `' + JSON.stringify(segment) + "`");
|
||||
if (segment = encode(value[j]), !matches[i].test(segment)) throw TypeError('Expected all "' + token.name + '" to match "' + token.pattern + '", but received `' + JSON.stringify(segment) + "`");
|
||||
path += (0 === j ? token.prefix : token.delimiter) + segment;
|
||||
}
|
||||
continue;
|
||||
}
|
||||
if (segment = token.asterisk ? encodeAsterisk(value) : encode(value), !matches[i].test(segment)) throw new TypeError('Expected "' + token.name + '" to match "' + token.pattern + '", but received "' + segment + '"');
|
||||
if (segment = token.asterisk ? encodeAsterisk(value) : encode(value), !matches[i].test(segment)) throw TypeError('Expected "' + token.name + '" to match "' + token.pattern + '", but received "' + segment + '"');
|
||||
path += token.prefix + segment;
|
||||
}
|
||||
return path;
|
||||
@ -10155,7 +10155,7 @@
|
||||
}
|
||||
}
|
||||
var delimiter = escapeString(options.delimiter || "/"), endsWithDelimiter = route.slice(-delimiter.length) === delimiter;
|
||||
return strict || (route = (endsWithDelimiter ? route.slice(0, -delimiter.length) : route) + "(?:" + delimiter + "(?=$))?"), end ? route += "$" : route += strict && endsWithDelimiter ? "" : "(?=" + delimiter + "|$)", attachKeys(new RegExp("^" + route, flags(options)), keys);
|
||||
return strict || (route = (endsWithDelimiter ? route.slice(0, -delimiter.length) : route) + "(?:" + delimiter + "(?=$))?"), end ? route += "$" : route += strict && endsWithDelimiter ? "" : "(?=" + delimiter + "|$)", attachKeys(RegExp("^" + route, flags(options)), keys);
|
||||
}
|
||||
function pathToRegexp(path7, keys2, options2) {
|
||||
var path6, keys1, options1;
|
||||
@ -10174,7 +10174,7 @@
|
||||
return attachKeys(path, keys);
|
||||
}(path7, keys2) : isarray(path7) ? function(path, keys, options) {
|
||||
for(var parts = [], i = 0; i < path.length; i++)parts.push(pathToRegexp(path[i], keys, options).source);
|
||||
var regexp = new RegExp("(?:" + parts.join("|") + ")", flags(options));
|
||||
var regexp = RegExp("(?:" + parts.join("|") + ")", flags(options));
|
||||
return attachKeys(regexp, keys);
|
||||
}(path7, keys2, options2) : (path6 = path7, keys1 = keys2, tokensToRegExp(parse(path6, options1 = options2), keys1, options1));
|
||||
}
|
||||
@ -10182,10 +10182,10 @@
|
||||
97671: function(module) {
|
||||
var cachedSetTimeout, cachedClearTimeout, currentQueue, process = module.exports = {};
|
||||
function defaultSetTimout() {
|
||||
throw new Error("setTimeout has not been defined");
|
||||
throw Error("setTimeout has not been defined");
|
||||
}
|
||||
function defaultClearTimeout() {
|
||||
throw new Error("clearTimeout has not been defined");
|
||||
throw Error("clearTimeout has not been defined");
|
||||
}
|
||||
function runTimeout(fun) {
|
||||
if (cachedSetTimeout === setTimeout) return setTimeout(fun, 0);
|
||||
@ -10244,7 +10244,7 @@
|
||||
}
|
||||
function noop() {}
|
||||
process.nextTick = function(fun) {
|
||||
var args = new Array(arguments.length - 1);
|
||||
var args = 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)), 1 !== queue.length || draining || runTimeout(drainQueue);
|
||||
}, Item.prototype.run = function() {
|
||||
@ -10252,11 +10252,11 @@
|
||||
}, process.title = "browser", process.browser = !0, process.env = {}, process.argv = [], process.version = "", process.versions = {}, 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");
|
||||
throw Error("process.binding is not supported");
|
||||
}, process.cwd = function() {
|
||||
return "/";
|
||||
}, process.chdir = function(dir) {
|
||||
throw new Error("process.chdir is not supported");
|
||||
throw Error("process.chdir is not supported");
|
||||
}, process.umask = function() {
|
||||
return 0;
|
||||
};
|
||||
@ -10269,7 +10269,7 @@
|
||||
emptyFunctionWithReset.resetWarningCache = emptyFunction, module.exports = function() {
|
||||
function shim(props, propName, componentName, location, propFullName, secret) {
|
||||
if (secret !== ReactPropTypesSecret) {
|
||||
var err = new Error("Calling PropTypes validators directly is not supported by the `prop-types` package. Use PropTypes.checkPropTypes() to call them. Read more at http://fb.me/use-check-prop-types");
|
||||
var err = Error("Calling PropTypes validators directly is not supported by the `prop-types` package. Use PropTypes.checkPropTypes() to call them. Read more at http://fb.me/use-check-prop-types");
|
||||
throw err.name = "Invariant Violation", err;
|
||||
}
|
||||
}
|
||||
@ -10313,7 +10313,7 @@
|
||||
"use strict";
|
||||
const strictUriEncode = __webpack_require__(76487), decodeComponent = __webpack_require__(74677), splitOnFirst = __webpack_require__(97044), filterObject = __webpack_require__(47560), isNullOrUndefined = (value)=>null == value;
|
||||
function validateArrayFormatSeparator(value) {
|
||||
if ("string" != typeof value || 1 !== value.length) throw new TypeError("arrayFormatSeparator must be single character string");
|
||||
if ("string" != typeof value || 1 !== value.length) throw TypeError("arrayFormatSeparator must be single character string");
|
||||
}
|
||||
function encode(value, options) {
|
||||
return options.encode ? options.strict ? strictUriEncode(value) : encodeURIComponent(value) : value;
|
||||
@ -10605,7 +10605,7 @@
|
||||
};
|
||||
}
|
||||
function step(op) {
|
||||
if (f) throw new TypeError("Generator is already executing.");
|
||||
if (f) throw TypeError("Generator is already executing.");
|
||||
for(; _;)try {
|
||||
if (f = 1, y && (t = 2 & op[0] ? y.return : op[0] ? y.throw || ((t = y.return) && t.call(y), 0) : y.next) && !(t = t.call(y, op[1])).done) return t;
|
||||
switch(y = 0, t && (op = [
|
||||
@ -15902,7 +15902,7 @@
|
||||
}
|
||||
var BrowserRouter = function(n) {
|
||||
function e7() {
|
||||
for(var e, t = arguments.length, r = new Array(t), o = 0; o < t; o++)r[o] = arguments[o];
|
||||
for(var e, t = arguments.length, r = Array(t), o = 0; o < t; o++)r[o] = arguments[o];
|
||||
return (e = n.call.apply(n, [
|
||||
this
|
||||
].concat(r)) || this).history = history.createBrowserHistory(e.props), e;
|
||||
@ -15915,7 +15915,7 @@
|
||||
}, e7;
|
||||
}(React.Component), HashRouter = function(n) {
|
||||
function e8() {
|
||||
for(var e, t = arguments.length, r = new Array(t), o = 0; o < t; o++)r[o] = arguments[o];
|
||||
for(var e, t = arguments.length, r = Array(t), o = 0; o < t; o++)r[o] = arguments[o];
|
||||
return (e = n.call.apply(n, [
|
||||
this
|
||||
].concat(r)) || this).history = history.createHashHistory(e.props), e;
|
||||
@ -15997,7 +15997,7 @@
|
||||
strict: b
|
||||
}) : null, i = !!(d ? d(a, t6) : a), c = "function" == typeof h ? h(i) : h, u = "function" == typeof P ? P(i) : P;
|
||||
i && (c = function() {
|
||||
for(var e15 = arguments.length, t = new Array(e15), r = 0; r < e15; r++)t[r] = arguments[r];
|
||||
for(var e15 = arguments.length, t = Array(e15), r = 0; r < e15; r++)t[r] = arguments[r];
|
||||
return t.filter(function(e) {
|
||||
return e;
|
||||
}).join(" ");
|
||||
@ -16256,7 +16256,7 @@
|
||||
}, Router;
|
||||
}(_react_17_0_2_react.Component), MemoryRouter1 = function(_React$Component) {
|
||||
function MemoryRouter() {
|
||||
for(var _this, _len = arguments.length, args = new Array(_len), _key = 0; _key < _len; _key++)args[_key] = arguments[_key];
|
||||
for(var _this, _len = arguments.length, args = Array(_len), _key = 0; _key < _len; _key++)args[_key] = arguments[_key];
|
||||
return (_this = _React$Component.call.apply(_React$Component, [
|
||||
this
|
||||
].concat(args)) || this).history = (0, esm_history.createMemoryHistory)(_this.props), _this;
|
||||
@ -16399,7 +16399,7 @@
|
||||
function noop() {}
|
||||
var StaticRouter1 = function(_React$Component) {
|
||||
function StaticRouter() {
|
||||
for(var _this, _len = arguments.length, args = new Array(_len), _key = 0; _key < _len; _key++)args[_key] = arguments[_key];
|
||||
for(var _this, _len = arguments.length, args = Array(_len), _key = 0; _key < _len; _key++)args[_key] = arguments[_key];
|
||||
return (_this = _React$Component.call.apply(_React$Component, [
|
||||
this
|
||||
].concat(args)) || this).handlePush = function(location) {
|
||||
@ -16883,7 +16883,7 @@
|
||||
function makeInvokeMethod(innerFn, self, context) {
|
||||
var state = GenStateSuspendedStart;
|
||||
return function(method, arg) {
|
||||
if (state === GenStateExecuting) throw new Error("Generator is already running");
|
||||
if (state === GenStateExecuting) throw Error("Generator is already running");
|
||||
if (state === GenStateCompleted) {
|
||||
if ("throw" === method) throw arg;
|
||||
return doneResult();
|
||||
@ -16920,14 +16920,14 @@
|
||||
if (method === undefined) {
|
||||
if (context.delegate = null, "throw" === context.method) {
|
||||
if (delegate.iterator.return && (context.method = "return", context.arg = undefined, maybeInvokeDelegate(delegate, context), "throw" === context.method)) return ContinueSentinel;
|
||||
context.method = "throw", context.arg = new TypeError("The iterator does not provide a 'throw' method");
|
||||
context.method = "throw", context.arg = TypeError("The iterator does not provide a 'throw' method");
|
||||
}
|
||||
return ContinueSentinel;
|
||||
}
|
||||
var record = tryCatch(method, delegate.iterator, context.arg);
|
||||
if ("throw" === record.type) return context.method = "throw", context.arg = record.arg, context.delegate = null, ContinueSentinel;
|
||||
var info = record.arg;
|
||||
return info ? info.done ? (context[delegate.resultName] = info.value, context.next = delegate.nextLoc, "return" !== context.method && (context.method = "next", context.arg = undefined), context.delegate = null, ContinueSentinel) : info : (context.method = "throw", context.arg = new TypeError("iterator result is not an object"), context.delegate = null, ContinueSentinel);
|
||||
return info ? info.done ? (context[delegate.resultName] = info.value, context.next = delegate.nextLoc, "return" !== context.method && (context.method = "next", context.arg = undefined), context.delegate = null, ContinueSentinel) : info : (context.method = "throw", context.arg = TypeError("iterator result is not an object"), context.delegate = null, ContinueSentinel);
|
||||
}
|
||||
function pushTryEntry(locs) {
|
||||
var entry = {
|
||||
@ -17029,7 +17029,7 @@
|
||||
if (this.prev < entry.catchLoc) return handle(entry.catchLoc, !0);
|
||||
} else if (hasFinally) {
|
||||
if (this.prev < entry.finallyLoc) return handle(entry.finallyLoc);
|
||||
} else throw new Error("try statement without catch or finally");
|
||||
} else throw Error("try statement without catch or finally");
|
||||
}
|
||||
}
|
||||
},
|
||||
@ -17067,7 +17067,7 @@
|
||||
return thrown;
|
||||
}
|
||||
}
|
||||
throw new Error("illegal catch attempt");
|
||||
throw Error("illegal catch attempt");
|
||||
},
|
||||
delegateYield: function(iterable, resultName, nextLoc) {
|
||||
return this.delegate = {
|
||||
@ -17312,7 +17312,7 @@
|
||||
97044: function(module) {
|
||||
"use strict";
|
||||
module.exports = (string, separator)=>{
|
||||
if (!("string" == typeof string && "string" == typeof separator)) throw new TypeError("Expected the arguments to be of type `string`");
|
||||
if (!("string" == typeof string && "string" == typeof separator)) throw TypeError("Expected the arguments to be of type `string`");
|
||||
if ("" === separator) return [
|
||||
string
|
||||
];
|
||||
@ -17332,7 +17332,7 @@
|
||||
87832: function(__unused_webpack_module, __webpack_exports__, __webpack_require__) {
|
||||
"use strict";
|
||||
__webpack_require__.r(__webpack_exports__), __webpack_exports__.default = function(condition, message) {
|
||||
if (!condition) throw new Error("Invariant failed");
|
||||
if (!condition) throw Error("Invariant failed");
|
||||
};
|
||||
},
|
||||
98009: function(__unused_webpack_module, __webpack_exports__, __webpack_require__) {
|
||||
@ -17373,7 +17373,7 @@
|
||||
}, __webpack_require__1.g = function() {
|
||||
if ("object" == typeof globalThis) return globalThis;
|
||||
try {
|
||||
return this || new Function("return this")();
|
||||
return this || Function("return this")();
|
||||
} catch (e) {
|
||||
if ("object" == typeof window) return window;
|
||||
}
|
||||
|
@ -114,7 +114,7 @@
|
||||
if (isArray(search)) for(var i = 0; i < search.length; i++){
|
||||
var item = search[i];
|
||||
if (isArray(item) && 2 === item.length) appendTo(dict, item[0], item[1]);
|
||||
else throw new TypeError("Failed to construct 'URLSearchParams': Sequence initializer must only contain pair elements");
|
||||
else throw TypeError("Failed to construct 'URLSearchParams': Sequence initializer must only contain pair elements");
|
||||
}
|
||||
else for(var key in search)search.hasOwnProperty(key) && appendTo(dict, key, search[key]);
|
||||
} else {
|
||||
|
@ -1,4 +1,4 @@
|
||||
bar(new RegExp(""));
|
||||
bar(new RegExp("", "u"));
|
||||
bar(RegExp(""));
|
||||
bar(RegExp("", "u"));
|
||||
bar(/a/);
|
||||
bar(/a/u);
|
||||
|
@ -1,3 +1,3 @@
|
||||
export default function thrower() {
|
||||
throw new Error(`Failed to recognize value \`${value}\` for property \`${property}\`.`);
|
||||
throw Error(`Failed to recognize value \`${value}\` for property \`${property}\`.`);
|
||||
};
|
||||
|
@ -233,13 +233,13 @@ var pads = {
|
||||
}, numberRe = /^\s*\d+/, percentRe = /^%/, requoteRe = /[\\^$*+?|[\]().{}]/g;
|
||||
function pad(value, fill, width) {
|
||||
var sign = value < 0 ? "-" : "", string = (sign ? -value : value) + "", length = string.length;
|
||||
return sign + (length < width ? new Array(width - length + 1).join(fill) + string : string);
|
||||
return sign + (length < width ? Array(width - length + 1).join(fill) + string : string);
|
||||
}
|
||||
function requote(s) {
|
||||
return s.replace(requoteRe, "\\$&");
|
||||
}
|
||||
function formatRe(names) {
|
||||
return new RegExp("^(?:" + names.map(requote).join("|") + ")", "i");
|
||||
return RegExp("^(?:" + names.map(requote).join("|") + ")", "i");
|
||||
}
|
||||
function formatLookup(names) {
|
||||
return new Map(names.map((name, i)=>[
|
||||
|
@ -351,13 +351,13 @@
|
||||
}, numberRe = /^\s*\d+/, percentRe = /^%/, requoteRe = /[\\^$*+?|[\]().{}]/g;
|
||||
function pad1(value, fill, width) {
|
||||
var sign = value < 0 ? "-" : "", string = (sign ? -value : value) + "", length = string.length;
|
||||
return sign + (length < width ? new Array(width - length + 1).join(fill) + string : string);
|
||||
return sign + (length < width ? Array(width - length + 1).join(fill) + string : string);
|
||||
}
|
||||
function requote(s) {
|
||||
return s.replace(requoteRe, "\\$&");
|
||||
}
|
||||
function formatRe(names) {
|
||||
return new RegExp("^(?:" + names.map(requote).join("|") + ")", "i");
|
||||
return RegExp("^(?:" + names.map(requote).join("|") + ")", "i");
|
||||
}
|
||||
function formatLookup(names) {
|
||||
return new Map(names.map((name, i)=>[
|
||||
|
@ -803,7 +803,7 @@
|
||||
}
|
||||
return _arr;
|
||||
}(arr1, i1) || function() {
|
||||
throw new TypeError("Invalid attempt to destructure non-iterable instance");
|
||||
throw TypeError("Invalid attempt to destructure non-iterable instance");
|
||||
}();
|
||||
}
|
||||
exports.default = void 0;
|
||||
@ -895,7 +895,7 @@
|
||||
}
|
||||
return _arr;
|
||||
}(arr2, 2) || function() {
|
||||
throw new TypeError("Invalid attempt to destructure non-iterable instance");
|
||||
throw TypeError("Invalid attempt to destructure non-iterable instance");
|
||||
}(), visible = ref[0], setVisible = ref[1], setRef = _react.useCallback(function(el) {
|
||||
unobserve.current && (unobserve.current(), unobserve.current = void 0), !isDisabled && !visible && el && el.tagName && (unobserve.current = observe(el, function(isVisible) {
|
||||
return isVisible && setVisible(isVisible);
|
||||
|
@ -1762,13 +1762,13 @@
|
||||
function _toConsumableArray(arr1) {
|
||||
return function(arr) {
|
||||
if (Array.isArray(arr)) {
|
||||
for(var i = 0, arr2 = new Array(arr.length); i < arr.length; i++)arr2[i] = arr[i];
|
||||
for(var i = 0, arr2 = Array(arr.length); i < arr.length; i++)arr2[i] = arr[i];
|
||||
return arr2;
|
||||
}
|
||||
}(arr1) || function(iter) {
|
||||
if (Symbol.iterator in Object(iter) || "[object Arguments]" === Object.prototype.toString.call(iter)) return Array.from(iter);
|
||||
}(arr1) || function() {
|
||||
throw new TypeError("Invalid attempt to spread non-iterable instance");
|
||||
throw TypeError("Invalid attempt to spread non-iterable instance");
|
||||
}();
|
||||
}
|
||||
exports.default = function(_param) {
|
||||
@ -1802,8 +1802,8 @@
|
||||
var src1, staticSrc = "";
|
||||
if ("object" == typeof (src1 = src2) && (isStaticRequire(src1) || void 0 !== src1.src)) {
|
||||
var staticImageData = isStaticRequire(src2) ? src2.default : src2;
|
||||
if (!staticImageData.src) throw new Error("An object should only be passed to the image component src parameter if it comes from a static image import. It must include src. Received ".concat(JSON.stringify(staticImageData)));
|
||||
if (blurDataURL = blurDataURL || staticImageData.blurDataURL, staticSrc = staticImageData.src, (!layout || "fill" !== layout) && (height = height || staticImageData.height, width = width || staticImageData.width, !staticImageData.height || !staticImageData.width)) throw new Error("An object should only be passed to the image component src parameter if it comes from a static image import. It must include height and width. Received ".concat(JSON.stringify(staticImageData)));
|
||||
if (!staticImageData.src) throw Error("An object should only be passed to the image component src parameter if it comes from a static image import. It must include src. Received ".concat(JSON.stringify(staticImageData)));
|
||||
if (blurDataURL = blurDataURL || staticImageData.blurDataURL, staticSrc = staticImageData.src, (!layout || "fill" !== layout) && (height = height || staticImageData.height, width = width || staticImageData.width, !staticImageData.height || !staticImageData.width)) throw Error("An object should only be passed to the image component src parameter if it comes from a static image import. It must include height and width. Received ".concat(JSON.stringify(staticImageData)));
|
||||
}
|
||||
src2 = "string" == typeof src2 ? src2 : staticSrc;
|
||||
var widthInt = getInt(width), heightInt = getInt(height), qualityInt = getInt(quality), isLazy = !priority && ("lazy" === loading || void 0 === loading);
|
||||
@ -1828,7 +1828,7 @@
|
||||
}
|
||||
return _arr;
|
||||
}(arr3, 2) || function() {
|
||||
throw new TypeError("Invalid attempt to destructure non-iterable instance");
|
||||
throw TypeError("Invalid attempt to destructure non-iterable instance");
|
||||
}(), setRef = ref2[0], isIntersected = ref2[1], isVisible = !isLazy || isIntersected, wrapperStyle = {
|
||||
boxSizing: "border-box",
|
||||
display: "block",
|
||||
@ -2027,7 +2027,7 @@
|
||||
"custom",
|
||||
function(param) {
|
||||
var src = param.src;
|
||||
throw new Error('Image with src "'.concat(src, '" is missing "loader" prop.') + "\nRead more: https://nextjs.org/docs/messages/next-image-missing-loader");
|
||||
throw Error('Image with src "'.concat(src, '" is missing "loader" prop.') + "\nRead more: https://nextjs.org/docs/messages/next-image-missing-loader");
|
||||
}
|
||||
],
|
||||
]);
|
||||
@ -2123,7 +2123,7 @@
|
||||
if (load) return load(_objectSpread({
|
||||
root: configPath
|
||||
}, loaderProps));
|
||||
throw new Error('Unknown "loader" found in "next.config.js". Expected: '.concat(_imageConfig.VALID_LOADERS.join(", "), ". Received: ").concat(configLoader));
|
||||
throw Error('Unknown "loader" found in "next.config.js". Expected: '.concat(_imageConfig.VALID_LOADERS.join(", "), ". Received: ").concat(configLoader));
|
||||
}
|
||||
function normalizeSrc(src) {
|
||||
return "/" === src[0] ? src.slice(1) : src;
|
||||
@ -2156,7 +2156,7 @@
|
||||
}
|
||||
return _arr;
|
||||
}(arr4, 2) || function() {
|
||||
throw new TypeError("Invalid attempt to destructure non-iterable instance");
|
||||
throw TypeError("Invalid attempt to destructure non-iterable instance");
|
||||
}(), visible = ref[0], setVisible = ref[1], setRef = _react.useCallback(function(el) {
|
||||
unobserve.current && (unobserve.current(), unobserve.current = void 0), !isDisabled && !visible && el && el.tagName && (unobserve.current = observe(el, function(isVisible) {
|
||||
return isVisible && setVisible(isVisible);
|
||||
@ -2421,14 +2421,14 @@
|
||||
if (logType < instance.logLevel) return;
|
||||
const now = new Date().toISOString(), method = ConsoleMethod[logType];
|
||||
if (method) console[method](`[${now}] ${instance.name}:`, ...args);
|
||||
else throw new Error(`Attempted to log a message with an invalid logType (value: ${logType})`);
|
||||
else throw Error(`Attempted to log a message with an invalid logType (value: ${logType})`);
|
||||
}, this._userLogHandler = null, [].push(this);
|
||||
}
|
||||
get logLevel() {
|
||||
return this._logLevel;
|
||||
}
|
||||
set logLevel(val) {
|
||||
if (!(val in LogLevel)) throw new TypeError(`Invalid value "${val}" assigned to \`logLevel\``);
|
||||
if (!(val in LogLevel)) throw TypeError(`Invalid value "${val}" assigned to \`logLevel\``);
|
||||
this._logLevel = val;
|
||||
}
|
||||
setLogLevel(val) {
|
||||
@ -2438,7 +2438,7 @@
|
||||
return this._logHandler;
|
||||
}
|
||||
set logHandler(val) {
|
||||
if ("function" != typeof val) throw new TypeError("Value assigned to `logHandler` must be a function");
|
||||
if ("function" != typeof val) throw TypeError("Value assigned to `logHandler` must be a function");
|
||||
this._logHandler = val;
|
||||
}
|
||||
get userLogHandler() {
|
||||
|
@ -64,7 +64,7 @@
|
||||
}
|
||||
function L(t = "Unexpected state") {
|
||||
const e = `FIRESTORE (${C}) INTERNAL ASSERTION FAILED: ` + t;
|
||||
throw O(e), new Error(e);
|
||||
throw O(e), Error(e);
|
||||
}
|
||||
const K = {
|
||||
OK: "ok",
|
||||
@ -463,7 +463,7 @@
|
||||
}
|
||||
}
|
||||
_t.EMPTY_BYTE_STRING = new _t("");
|
||||
const mt = new RegExp(/^\d{4}-\d\d-\d\dT\d\d:\d\d:\d\d(?:\.(\d+))?Z$/);
|
||||
const mt = RegExp(/^\d{4}-\d\d-\d\dT\d\d:\d\d:\d\d(?:\.(\d+))?Z$/);
|
||||
function gt(t) {
|
||||
if (t || L(), "string" == typeof t) {
|
||||
let e = 0;
|
||||
@ -5831,7 +5831,7 @@
|
||||
throw "an object" === s ? e.Uc(t + " a custom object") : e.Uc(t + " " + s);
|
||||
}
|
||||
}
|
||||
const Au = new RegExp("[~\\*/\\[\\]]");
|
||||
const Au = RegExp("[~\\*/\\[\\]]");
|
||||
function bu(t, e, n, s, i) {
|
||||
const r = s && !s.isEmpty(), o = void 0 !== i;
|
||||
let c = `Function ${e}() called with invalid data`;
|
||||
|
@ -107,7 +107,7 @@
|
||||
} else arg = arguments[i];
|
||||
args.push(arg);
|
||||
}
|
||||
warn(msg + "\nArguments: " + Array.prototype.slice.call(args).join("") + "\n" + new Error().stack), firstTime = !1;
|
||||
warn(msg + "\nArguments: " + Array.prototype.slice.call(args).join("") + "\n" + Error().stack), firstTime = !1;
|
||||
}
|
||||
return fn.apply(this, arguments);
|
||||
}, fn);
|
||||
@ -215,7 +215,7 @@
|
||||
};
|
||||
}
|
||||
function getParseRegexForToken(token, config) {
|
||||
return hasOwnProp(regexes, token) ? regexes[token](config._strict, config._locale) : new RegExp(unescapeFormat(token));
|
||||
return hasOwnProp(regexes, token) ? regexes[token](config._strict, config._locale) : RegExp(unescapeFormat(token));
|
||||
}
|
||||
function unescapeFormat(s) {
|
||||
return regexEscape(s.replace("\\", "").replace(/\\(\[)|\\(\])|\[([^\]\[]*)\]|\\(.)/g, function(matched, p1, p2, p3, p4) {
|
||||
@ -309,7 +309,7 @@
|
||||
]), shortPieces.push(this.monthsShort(mom, "")), longPieces.push(this.months(mom, "")), mixedPieces.push(this.months(mom, "")), mixedPieces.push(this.monthsShort(mom, ""));
|
||||
for(shortPieces.sort(cmpLenRev), longPieces.sort(cmpLenRev), mixedPieces.sort(cmpLenRev), i = 0; i < 12; i++)shortPieces[i] = regexEscape(shortPieces[i]), longPieces[i] = regexEscape(longPieces[i]);
|
||||
for(i = 0; i < 24; i++)mixedPieces[i] = regexEscape(mixedPieces[i]);
|
||||
this._monthsRegex = new RegExp("^(" + mixedPieces.join("|") + ")", "i"), this._monthsShortRegex = this._monthsRegex, this._monthsStrictRegex = new RegExp("^(" + longPieces.join("|") + ")", "i"), this._monthsShortStrictRegex = new RegExp("^(" + shortPieces.join("|") + ")", "i");
|
||||
this._monthsRegex = RegExp("^(" + mixedPieces.join("|") + ")", "i"), this._monthsShortRegex = this._monthsRegex, this._monthsStrictRegex = RegExp("^(" + longPieces.join("|") + ")", "i"), this._monthsShortStrictRegex = RegExp("^(" + shortPieces.join("|") + ")", "i");
|
||||
}
|
||||
function daysInYear(year) {
|
||||
return isLeapYear(year) ? 366 : 365;
|
||||
@ -435,7 +435,7 @@
|
||||
2000,
|
||||
1
|
||||
]).day(i), minp = regexEscape(this.weekdaysMin(mom, "")), shortp = regexEscape(this.weekdaysShort(mom, "")), longp = regexEscape(this.weekdays(mom, "")), minPieces.push(minp), shortPieces.push(shortp), longPieces.push(longp), mixedPieces.push(minp), mixedPieces.push(shortp), mixedPieces.push(longp);
|
||||
minPieces.sort(cmpLenRev), shortPieces.sort(cmpLenRev), longPieces.sort(cmpLenRev), mixedPieces.sort(cmpLenRev), this._weekdaysRegex = new RegExp("^(" + mixedPieces.join("|") + ")", "i"), this._weekdaysShortRegex = this._weekdaysRegex, this._weekdaysMinRegex = this._weekdaysRegex, this._weekdaysStrictRegex = new RegExp("^(" + longPieces.join("|") + ")", "i"), this._weekdaysShortStrictRegex = new RegExp("^(" + shortPieces.join("|") + ")", "i"), this._weekdaysMinStrictRegex = new RegExp("^(" + minPieces.join("|") + ")", "i");
|
||||
minPieces.sort(cmpLenRev), shortPieces.sort(cmpLenRev), longPieces.sort(cmpLenRev), mixedPieces.sort(cmpLenRev), this._weekdaysRegex = RegExp("^(" + mixedPieces.join("|") + ")", "i"), this._weekdaysShortRegex = this._weekdaysRegex, this._weekdaysMinRegex = this._weekdaysRegex, this._weekdaysStrictRegex = RegExp("^(" + longPieces.join("|") + ")", "i"), this._weekdaysShortStrictRegex = RegExp("^(" + shortPieces.join("|") + ")", "i"), this._weekdaysMinStrictRegex = RegExp("^(" + minPieces.join("|") + ")", "i");
|
||||
}
|
||||
function hFormat() {
|
||||
return this.hours() % 12 || 12;
|
||||
@ -1026,7 +1026,7 @@
|
||||
function computeErasParse() {
|
||||
var i, l, abbrPieces = [], namePieces = [], narrowPieces = [], mixedPieces = [], eras = this.eras();
|
||||
for(i = 0, l = eras.length; i < l; ++i)namePieces.push(regexEscape(eras[i].name)), abbrPieces.push(regexEscape(eras[i].abbr)), narrowPieces.push(regexEscape(eras[i].narrow)), mixedPieces.push(regexEscape(eras[i].name)), mixedPieces.push(regexEscape(eras[i].abbr)), mixedPieces.push(regexEscape(eras[i].narrow));
|
||||
this._erasRegex = new RegExp("^(" + mixedPieces.join("|") + ")", "i"), this._erasNameRegex = new RegExp("^(" + namePieces.join("|") + ")", "i"), this._erasAbbrRegex = new RegExp("^(" + abbrPieces.join("|") + ")", "i"), this._erasNarrowRegex = new RegExp("^(" + narrowPieces.join("|") + ")", "i");
|
||||
this._erasRegex = RegExp("^(" + mixedPieces.join("|") + ")", "i"), this._erasNameRegex = RegExp("^(" + namePieces.join("|") + ")", "i"), this._erasAbbrRegex = RegExp("^(" + abbrPieces.join("|") + ")", "i"), this._erasNarrowRegex = RegExp("^(" + narrowPieces.join("|") + ")", "i");
|
||||
}
|
||||
function addWeekYearFormatToken(token, getter) {
|
||||
addFormatToken(0, [
|
||||
@ -1584,7 +1584,7 @@
|
||||
}, proto$1.set = function(config) {
|
||||
var prop, i;
|
||||
for(i in config)hasOwnProp(config, i) && (isFunction(prop = config[i]) ? this[i] = prop : this["_" + i] = prop);
|
||||
this._config = config, this._dayOfMonthOrdinalParseLenient = new RegExp((this._dayOfMonthOrdinalParse.source || this._ordinalParse.source) + "|" + /\d{1,2}/.source);
|
||||
this._config = config, this._dayOfMonthOrdinalParseLenient = RegExp((this._dayOfMonthOrdinalParse.source || this._ordinalParse.source) + "|" + /\d{1,2}/.source);
|
||||
}, proto$1.eras = function(m, format) {
|
||||
var i, l, date, eras = this._eras || getLocale("en")._eras;
|
||||
for(i = 0, l = eras.length; i < l; ++i)switch("string" == typeof eras[i].since && (date = hooks(eras[i].since).startOf("day"), eras[i].since = date.valueOf()), typeof eras[i].until){
|
||||
@ -1633,7 +1633,7 @@
|
||||
for(this._monthsParse || (this._monthsParse = [], this._longMonthsParse = [], this._shortMonthsParse = []), i = 0; i < 12; i++)if (mom = createUTC([
|
||||
2000,
|
||||
i
|
||||
]), strict && !this._longMonthsParse[i] && (this._longMonthsParse[i] = new RegExp("^" + this.months(mom, "").replace(".", "") + "$", "i"), this._shortMonthsParse[i] = new RegExp("^" + this.monthsShort(mom, "").replace(".", "") + "$", "i")), strict || this._monthsParse[i] || (regex = "^" + this.months(mom, "") + "|^" + this.monthsShort(mom, ""), this._monthsParse[i] = new RegExp(regex.replace(".", ""), "i")), strict && "MMMM" === format && this._longMonthsParse[i].test(monthName) || strict && "MMM" === format && this._shortMonthsParse[i].test(monthName) || !strict && this._monthsParse[i].test(monthName)) return i;
|
||||
]), strict && !this._longMonthsParse[i] && (this._longMonthsParse[i] = RegExp("^" + this.months(mom, "").replace(".", "") + "$", "i"), this._shortMonthsParse[i] = RegExp("^" + this.monthsShort(mom, "").replace(".", "") + "$", "i")), strict || this._monthsParse[i] || (regex = "^" + this.months(mom, "") + "|^" + this.monthsShort(mom, ""), this._monthsParse[i] = RegExp(regex.replace(".", ""), "i")), strict && "MMMM" === format && this._longMonthsParse[i].test(monthName) || strict && "MMM" === format && this._shortMonthsParse[i].test(monthName) || !strict && this._monthsParse[i].test(monthName)) return i;
|
||||
}, proto$1.monthsRegex = function(isStrict) {
|
||||
return this._monthsParseExact ? (hasOwnProp(this, "_monthsRegex") || computeMonthsParse.call(this), isStrict) ? this._monthsStrictRegex : this._monthsRegex : (hasOwnProp(this, "_monthsRegex") || (this._monthsRegex = defaultMonthsRegex), this._monthsStrictRegex && isStrict ? this._monthsStrictRegex : this._monthsRegex);
|
||||
}, proto$1.monthsShortRegex = function(isStrict) {
|
||||
@ -1657,7 +1657,7 @@
|
||||
for(this._weekdaysParse || (this._weekdaysParse = [], this._minWeekdaysParse = [], this._shortWeekdaysParse = [], this._fullWeekdaysParse = []), i = 0; i < 7; i++)if (mom = createUTC([
|
||||
2000,
|
||||
1
|
||||
]).day(i), strict && !this._fullWeekdaysParse[i] && (this._fullWeekdaysParse[i] = new RegExp("^" + this.weekdays(mom, "").replace(".", "\\.?") + "$", "i"), this._shortWeekdaysParse[i] = new RegExp("^" + this.weekdaysShort(mom, "").replace(".", "\\.?") + "$", "i"), this._minWeekdaysParse[i] = new RegExp("^" + this.weekdaysMin(mom, "").replace(".", "\\.?") + "$", "i")), this._weekdaysParse[i] || (regex = "^" + this.weekdays(mom, "") + "|^" + this.weekdaysShort(mom, "") + "|^" + this.weekdaysMin(mom, ""), this._weekdaysParse[i] = new RegExp(regex.replace(".", ""), "i")), strict && "dddd" === format && this._fullWeekdaysParse[i].test(weekdayName) || strict && "ddd" === format && this._shortWeekdaysParse[i].test(weekdayName) || strict && "dd" === format && this._minWeekdaysParse[i].test(weekdayName) || !strict && this._weekdaysParse[i].test(weekdayName)) return i;
|
||||
]).day(i), strict && !this._fullWeekdaysParse[i] && (this._fullWeekdaysParse[i] = RegExp("^" + this.weekdays(mom, "").replace(".", "\\.?") + "$", "i"), this._shortWeekdaysParse[i] = RegExp("^" + this.weekdaysShort(mom, "").replace(".", "\\.?") + "$", "i"), this._minWeekdaysParse[i] = RegExp("^" + this.weekdaysMin(mom, "").replace(".", "\\.?") + "$", "i")), this._weekdaysParse[i] || (regex = "^" + this.weekdays(mom, "") + "|^" + this.weekdaysShort(mom, "") + "|^" + this.weekdaysMin(mom, ""), this._weekdaysParse[i] = RegExp(regex.replace(".", ""), "i")), strict && "dddd" === format && this._fullWeekdaysParse[i].test(weekdayName) || strict && "ddd" === format && this._shortWeekdaysParse[i].test(weekdayName) || strict && "dd" === format && this._minWeekdaysParse[i].test(weekdayName) || !strict && this._weekdaysParse[i].test(weekdayName)) return i;
|
||||
}, proto$1.weekdaysRegex = function(isStrict) {
|
||||
return this._weekdaysParseExact ? (hasOwnProp(this, "_weekdaysRegex") || computeWeekdaysParse.call(this), isStrict) ? this._weekdaysStrictRegex : this._weekdaysRegex : (hasOwnProp(this, "_weekdaysRegex") || (this._weekdaysRegex = defaultWeekdaysRegex), this._weekdaysStrictRegex && isStrict ? this._weekdaysStrictRegex : this._weekdaysRegex);
|
||||
}, proto$1.weekdaysShortRegex = function(isStrict) {
|
||||
@ -1774,7 +1774,7 @@
|
||||
case "millisecond":
|
||||
return Math.floor(864e5 * days) + milliseconds;
|
||||
default:
|
||||
throw new Error("Unknown unit " + units);
|
||||
throw Error("Unknown unit " + units);
|
||||
}
|
||||
}, proto$2.asMilliseconds = asMilliseconds, proto$2.asSeconds = asSeconds, proto$2.asMinutes = asMinutes, proto$2.asHours = asHours, proto$2.asDays = asDays, proto$2.asWeeks = asWeeks, proto$2.asMonths = asMonths, proto$2.asQuarters = asQuarters, proto$2.asYears = asYears, proto$2.valueOf = function() {
|
||||
return this.isValid() ? this._milliseconds + 864e5 * this._days + this._months % 12 * 2592e6 + 31536e6 * toInt(this._months / 12) : NaN;
|
||||
|
@ -56,7 +56,7 @@
|
||||
},
|
||||
function(module, exports) {
|
||||
module.exports = function(self) {
|
||||
if (void 0 === self) throw new ReferenceError("this hasn't been initialised - super() hasn't been called");
|
||||
if (void 0 === self) throw ReferenceError("this hasn't been initialised - super() hasn't been called");
|
||||
return self;
|
||||
}, module.exports.default = module.exports, module.exports.__esModule = !0;
|
||||
},
|
||||
@ -70,7 +70,7 @@
|
||||
},
|
||||
function(module, exports) {
|
||||
module.exports = function(instance, Constructor) {
|
||||
if (!(instance instanceof Constructor)) throw new TypeError("Cannot call a class as a function");
|
||||
if (!(instance instanceof Constructor)) throw TypeError("Cannot call a class as a function");
|
||||
}, module.exports.default = module.exports, module.exports.__esModule = !0;
|
||||
},
|
||||
function(module, exports) {
|
||||
@ -88,14 +88,14 @@
|
||||
var _typeof = __webpack_require__(19).default, assertThisInitialized = __webpack_require__(1);
|
||||
module.exports = function(self, call) {
|
||||
if (call && ("object" === _typeof(call) || "function" == typeof call)) return call;
|
||||
if (void 0 !== call) throw new TypeError("Derived constructors may only return object or undefined");
|
||||
if (void 0 !== call) throw TypeError("Derived constructors may only return object or undefined");
|
||||
return assertThisInitialized(self);
|
||||
}, module.exports.default = module.exports, module.exports.__esModule = !0;
|
||||
},
|
||||
function(module, exports, __webpack_require__) {
|
||||
var setPrototypeOf = __webpack_require__(41);
|
||||
module.exports = function(subClass, superClass) {
|
||||
if ("function" != typeof superClass && null !== superClass) throw new TypeError("Super expression must either be null or a function");
|
||||
if ("function" != typeof superClass && null !== superClass) throw TypeError("Super expression must either be null or a function");
|
||||
subClass.prototype = Object.create(superClass && superClass.prototype, {
|
||||
constructor: {
|
||||
value: subClass,
|
||||
@ -457,7 +457,7 @@
|
||||
clone: gl_vec2__WEBPACK_IMPORTED_MODULE_4__.clone
|
||||
};
|
||||
function assertNumberPositive(val) {
|
||||
if (val < 0) throw new Error("expected positive number, received ".concat(val));
|
||||
if (val < 0) throw Error("expected positive number, received ".concat(val));
|
||||
}
|
||||
var ImageWrapper1 = function() {
|
||||
function ImageWrapper(size, data) {
|
||||
@ -551,7 +551,7 @@
|
||||
key: "show",
|
||||
value: function(canvas) {
|
||||
var scale = arguments.length > 1 && void 0 !== arguments[1] ? arguments[1] : 1.0, ctx = canvas.getContext("2d");
|
||||
if (!ctx) throw new Error("Unable to get canvas context");
|
||||
if (!ctx) throw Error("Unable to get canvas context");
|
||||
var frame = ctx.getImageData(0, 0, canvas.width, canvas.height), data = this.getAsRGBA(scale);
|
||||
canvas.width = this.size.x, canvas.height = this.size.y;
|
||||
var newFrame = new ImageData(data, frame.width, frame.height);
|
||||
@ -578,7 +578,7 @@
|
||||
0,
|
||||
0
|
||||
], result = [], ctx = canvas.getContext("2d");
|
||||
if (!ctx) throw new Error("Unable to get canvas context");
|
||||
if (!ctx) throw Error("Unable to get canvas context");
|
||||
for(var frame = ctx.getImageData(from.x, from.y, this.size.x, this.size.y), data = frame.data, length = this.data.length; length--;){
|
||||
hsv[0] = this.data[length] * adjustedScale, result = hsv[0] <= 0 ? whiteRgb : hsv[0] >= 360 ? blackRgb : Object(_cv_utils__WEBPACK_IMPORTED_MODULE_5__.g)(hsv, rgb);
|
||||
var pos = 4 * length, _result = result, _result2 = _babel_runtime_helpers_slicedToArray__WEBPACK_IMPORTED_MODULE_0___default()(_result, 3);
|
||||
@ -992,7 +992,7 @@
|
||||
y: Math.floor(height * thisHalfSample)
|
||||
};
|
||||
if (patchSize = Object(_common_cv_utils__WEBPACK_IMPORTED_MODULE_3__.a)(config.patchSize, size), console.log("Patch-Size: ".concat(JSON.stringify(patchSize))), inputStream.setWidth(Math.floor(Math.floor(size.x / patchSize.x) * (1 / thisHalfSample) * patchSize.x)), inputStream.setHeight(Math.floor(Math.floor(size.y / patchSize.y) * (1 / thisHalfSample) * patchSize.y)), inputStream.getWidth() % patchSize.x == 0 && inputStream.getHeight() % patchSize.y == 0) return !0;
|
||||
throw new Error("Image dimensions do not comply with the current settings: Width (".concat(width, " )and height (").concat(height, ") must a multiple of ").concat(patchSize.x));
|
||||
throw Error("Image dimensions do not comply with the current settings: Width (".concat(width, " )and height (").concat(height, ") must a multiple of ").concat(patchSize.x));
|
||||
}
|
||||
};
|
||||
}).call(this, __webpack_require__(46));
|
||||
@ -1170,7 +1170,7 @@
|
||||
return this;
|
||||
}();
|
||||
try {
|
||||
g = g || new Function("return this")();
|
||||
g = g || Function("return this")();
|
||||
} catch (e) {
|
||||
"object" == typeof window && (g = window);
|
||||
}
|
||||
@ -1276,7 +1276,7 @@
|
||||
function(module, exports) {
|
||||
module.exports = function(arr, len) {
|
||||
(null == len || len > arr.length) && (len = arr.length);
|
||||
for(var i = 0, arr2 = new Array(len); i < len; i++)arr2[i] = arr[i];
|
||||
for(var i = 0, arr2 = Array(len); i < len; i++)arr2[i] = arr[i];
|
||||
return arr2;
|
||||
}, module.exports.default = module.exports, module.exports.__esModule = !0;
|
||||
},
|
||||
@ -1460,7 +1460,7 @@
|
||||
var _cache = "function" == typeof Map ? new Map() : void 0;
|
||||
return module.exports = _wrapNativeSuper = function(Class) {
|
||||
if (null === Class || !isNativeFunction(Class)) return Class;
|
||||
if ("function" != typeof Class) throw new TypeError("Super expression must either be null or a function");
|
||||
if ("function" != typeof Class) throw TypeError("Super expression must either be null or a function");
|
||||
if (void 0 !== _cache) {
|
||||
if (_cache.has(Class)) return _cache.get(Class);
|
||||
_cache.set(Class, Wrapper);
|
||||
@ -2213,7 +2213,7 @@
|
||||
return al * bl + ((a >>> 16 & 0xffff) * bl + al * (b >>> 16 & 0xffff) << 16 >>> 0) | 0;
|
||||
}), "function" != typeof Object.assign && (Object.assign = function(target) {
|
||||
"use strict";
|
||||
if (null === target) throw new TypeError("Cannot convert undefined or null to object");
|
||||
if (null === target) throw TypeError("Cannot convert undefined or null to object");
|
||||
for(var to = Object(target), index = 1; index < arguments.length; index++){
|
||||
var nextSource = arguments[index];
|
||||
if (null !== nextSource) for(var nextKey in nextSource)Object.prototype.hasOwnProperty.call(nextSource, nextKey) && (to[nextKey] = nextSource[nextKey]);
|
||||
@ -2248,7 +2248,7 @@
|
||||
},
|
||||
function(module, exports) {
|
||||
module.exports = function() {
|
||||
throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");
|
||||
throw TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");
|
||||
}, module.exports.default = module.exports, module.exports.__esModule = !0;
|
||||
},
|
||||
function(module, exports) {
|
||||
@ -2617,7 +2617,7 @@
|
||||
},
|
||||
function(module, exports) {
|
||||
module.exports = function() {
|
||||
throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");
|
||||
throw TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");
|
||||
}, module.exports.default = module.exports, module.exports.__esModule = !0;
|
||||
},
|
||||
function(module, exports, __webpack_require__) {
|
||||
@ -2701,7 +2701,7 @@
|
||||
function makeInvokeMethod(innerFn, self, context) {
|
||||
var state = GenStateSuspendedStart;
|
||||
return function(method, arg) {
|
||||
if (state === GenStateExecuting) throw new Error("Generator is already running");
|
||||
if (state === GenStateExecuting) throw Error("Generator is already running");
|
||||
if (state === GenStateCompleted) {
|
||||
if ("throw" === method) throw arg;
|
||||
return doneResult();
|
||||
@ -2738,14 +2738,14 @@
|
||||
if (method === undefined) {
|
||||
if (context.delegate = null, "throw" === context.method) {
|
||||
if (delegate.iterator.return && (context.method = "return", context.arg = undefined, maybeInvokeDelegate(delegate, context), "throw" === context.method)) return ContinueSentinel;
|
||||
context.method = "throw", context.arg = new TypeError("The iterator does not provide a 'throw' method");
|
||||
context.method = "throw", context.arg = TypeError("The iterator does not provide a 'throw' method");
|
||||
}
|
||||
return ContinueSentinel;
|
||||
}
|
||||
var record = tryCatch(method, delegate.iterator, context.arg);
|
||||
if ("throw" === record.type) return context.method = "throw", context.arg = record.arg, context.delegate = null, ContinueSentinel;
|
||||
var info = record.arg;
|
||||
return info ? info.done ? (context[delegate.resultName] = info.value, context.next = delegate.nextLoc, "return" !== context.method && (context.method = "next", context.arg = undefined), context.delegate = null, ContinueSentinel) : info : (context.method = "throw", context.arg = new TypeError("iterator result is not an object"), context.delegate = null, ContinueSentinel);
|
||||
return info ? info.done ? (context[delegate.resultName] = info.value, context.next = delegate.nextLoc, "return" !== context.method && (context.method = "next", context.arg = undefined), context.delegate = null, ContinueSentinel) : info : (context.method = "throw", context.arg = TypeError("iterator result is not an object"), context.delegate = null, ContinueSentinel);
|
||||
}
|
||||
function pushTryEntry(locs) {
|
||||
var entry = {
|
||||
@ -2847,7 +2847,7 @@
|
||||
if (this.prev < entry.catchLoc) return handle(entry.catchLoc, !0);
|
||||
} else if (hasFinally) {
|
||||
if (this.prev < entry.finallyLoc) return handle(entry.finallyLoc);
|
||||
} else throw new Error("try statement without catch or finally");
|
||||
} else throw Error("try statement without catch or finally");
|
||||
}
|
||||
}
|
||||
},
|
||||
@ -2885,7 +2885,7 @@
|
||||
return thrown;
|
||||
}
|
||||
}
|
||||
throw new Error("illegal catch attempt");
|
||||
throw Error("illegal catch attempt");
|
||||
},
|
||||
delegateYield: function(iterable, resultName, nextLoc) {
|
||||
return this.delegate = {
|
||||
@ -2957,7 +2957,7 @@
|
||||
function(module, exports, __webpack_require__) {
|
||||
var MapCache = __webpack_require__(47);
|
||||
function memoize(func, resolver) {
|
||||
if ("function" != typeof func || null != resolver && "function" != typeof resolver) throw new TypeError("Expected a function");
|
||||
if ("function" != typeof func || null != resolver && "function" != typeof resolver) throw TypeError("Expected a function");
|
||||
var memoized = function() {
|
||||
var args = arguments, key = resolver ? resolver.apply(this, args) : args[0], cache = memoized.cache;
|
||||
if (cache.has(key)) return cache.get(key);
|
||||
@ -3383,7 +3383,7 @@
|
||||
function Code128Reader() {
|
||||
var _this;
|
||||
classCallCheck_default()(this, Code128Reader);
|
||||
for(var _len = arguments.length, args = new Array(_len), _key = 0; _key < _len; _key++)args[_key] = arguments[_key];
|
||||
for(var _len = arguments.length, args = Array(_len), _key = 0; _key < _len; _key++)args[_key] = arguments[_key];
|
||||
return _this = _super.call.apply(_super, [
|
||||
this
|
||||
].concat(args)), defineProperty_default()(assertThisInitialized_default()(_this), "CODE_SHIFT", 98), defineProperty_default()(assertThisInitialized_default()(_this), "CODE_C", 99), defineProperty_default()(assertThisInitialized_default()(_this), "CODE_B", 100), defineProperty_default()(assertThisInitialized_default()(_this), "CODE_A", 101), defineProperty_default()(assertThisInitialized_default()(_this), "START_CODE_A", 103), defineProperty_default()(assertThisInitialized_default()(_this), "START_CODE_B", 104), defineProperty_default()(assertThisInitialized_default()(_this), "START_CODE_C", 105), defineProperty_default()(assertThisInitialized_default()(_this), "STOP_CODE", 106), defineProperty_default()(assertThisInitialized_default()(_this), "CODE_PATTERN", [
|
||||
@ -4640,7 +4640,7 @@
|
||||
{
|
||||
key: "_findPattern",
|
||||
value: function(pattern, offset, isWhite, tryHarder) {
|
||||
var counter = new Array(pattern.length).fill(0), bestMatch = {
|
||||
var counter = Array(pattern.length).fill(0), bestMatch = {
|
||||
error: Number.MAX_VALUE,
|
||||
start: 0,
|
||||
end: 0
|
||||
@ -4778,7 +4778,7 @@
|
||||
{
|
||||
key: "decode",
|
||||
value: function(row, start) {
|
||||
var result = new Array(), decodedCodes = new Array(), resultInfo = {}, startInfo = this._findStart();
|
||||
var result = Array(), decodedCodes = Array(), resultInfo = {}, startInfo = this._findStart();
|
||||
if (!startInfo) return null;
|
||||
var code = {
|
||||
start: startInfo.start,
|
||||
@ -4878,7 +4878,7 @@
|
||||
function Code39Reader() {
|
||||
var _this;
|
||||
classCallCheck_default()(this, Code39Reader);
|
||||
for(var _len = arguments.length, args = new Array(_len), _key = 0; _key < _len; _key++)args[_key] = arguments[_key];
|
||||
for(var _len = arguments.length, args = Array(_len), _key = 0; _key < _len; _key++)args[_key] = arguments[_key];
|
||||
return _this = _super.call.apply(_super, [
|
||||
this
|
||||
].concat(args)), defineProperty_default()(assertThisInitialized_default()(_this), "FORMAT", "code_39"), _this;
|
||||
@ -5008,7 +5008,7 @@
|
||||
function Code39VINReader() {
|
||||
var _this;
|
||||
classCallCheck_default()(this, Code39VINReader);
|
||||
for(var _len = arguments.length, args = new Array(_len), _key = 0; _key < _len; _key++)args[_key] = arguments[_key];
|
||||
for(var _len = arguments.length, args = Array(_len), _key = 0; _key < _len; _key++)args[_key] = arguments[_key];
|
||||
return _this = _super.call.apply(_super, [
|
||||
this
|
||||
].concat(args)), defineProperty_default()(assertThisInitialized_default()(_this), "FORMAT", "code_39_vin"), _this;
|
||||
@ -5098,7 +5098,7 @@
|
||||
function NewCodabarReader() {
|
||||
var _this;
|
||||
classCallCheck_default()(this, NewCodabarReader);
|
||||
for(var _len = arguments.length, args = new Array(_len), _key = 0; _key < _len; _key++)args[_key] = arguments[_key];
|
||||
for(var _len = arguments.length, args = Array(_len), _key = 0; _key < _len; _key++)args[_key] = arguments[_key];
|
||||
return _this = _super.call.apply(_super, [
|
||||
this
|
||||
].concat(args)), defineProperty_default()(assertThisInitialized_default()(_this), "_counters", []), defineProperty_default()(assertThisInitialized_default()(_this), "FORMAT", "codabar"), _this;
|
||||
@ -5286,7 +5286,7 @@
|
||||
function UPCReader() {
|
||||
var _this;
|
||||
classCallCheck_default()(this, UPCReader);
|
||||
for(var _len = arguments.length, args = new Array(_len), _key = 0; _key < _len; _key++)args[_key] = arguments[_key];
|
||||
for(var _len = arguments.length, args = Array(_len), _key = 0; _key < _len; _key++)args[_key] = arguments[_key];
|
||||
return _this = _super.call.apply(_super, [
|
||||
this
|
||||
].concat(args)), defineProperty_default()(assertThisInitialized_default()(_this), "FORMAT", "upc_a"), _this;
|
||||
@ -5321,7 +5321,7 @@
|
||||
function EAN8Reader() {
|
||||
var _this;
|
||||
classCallCheck_default()(this, EAN8Reader);
|
||||
for(var _len = arguments.length, args = new Array(_len), _key = 0; _key < _len; _key++)args[_key] = arguments[_key];
|
||||
for(var _len = arguments.length, args = Array(_len), _key = 0; _key < _len; _key++)args[_key] = arguments[_key];
|
||||
return _this = _super.call.apply(_super, [
|
||||
this
|
||||
].concat(args)), defineProperty_default()(assertThisInitialized_default()(_this), "FORMAT", "ean_8"), _this;
|
||||
@ -5365,7 +5365,7 @@
|
||||
function EAN2Reader() {
|
||||
var _this;
|
||||
classCallCheck_default()(this, EAN2Reader);
|
||||
for(var _len = arguments.length, args = new Array(_len), _key = 0; _key < _len; _key++)args[_key] = arguments[_key];
|
||||
for(var _len = arguments.length, args = Array(_len), _key = 0; _key < _len; _key++)args[_key] = arguments[_key];
|
||||
return _this = _super.call.apply(_super, [
|
||||
this
|
||||
].concat(args)), defineProperty_default()(assertThisInitialized_default()(_this), "FORMAT", "ean_2"), _this;
|
||||
@ -5426,7 +5426,7 @@
|
||||
function EAN5Reader() {
|
||||
var _this;
|
||||
classCallCheck_default()(this, EAN5Reader);
|
||||
for(var _len = arguments.length, args = new Array(_len), _key = 0; _key < _len; _key++)args[_key] = arguments[_key];
|
||||
for(var _len = arguments.length, args = Array(_len), _key = 0; _key < _len; _key++)args[_key] = arguments[_key];
|
||||
return _this = _super.call.apply(_super, [
|
||||
this
|
||||
].concat(args)), defineProperty_default()(assertThisInitialized_default()(_this), "FORMAT", "ean_5"), _this;
|
||||
@ -5494,7 +5494,7 @@
|
||||
function UPCEReader() {
|
||||
var _this;
|
||||
classCallCheck_default()(this, UPCEReader);
|
||||
for(var _len = arguments.length, args = new Array(_len), _key = 0; _key < _len; _key++)args[_key] = arguments[_key];
|
||||
for(var _len = arguments.length, args = Array(_len), _key = 0; _key < _len; _key++)args[_key] = arguments[_key];
|
||||
return _this = _super.call.apply(_super, [
|
||||
this
|
||||
].concat(args)), defineProperty_default()(assertThisInitialized_default()(_this), "CODE_FREQUENCY", [
|
||||
@ -5744,7 +5744,7 @@
|
||||
{
|
||||
key: "_findPattern",
|
||||
value: function(pattern, offset) {
|
||||
var isWhite = arguments.length > 2 && void 0 !== arguments[2] && arguments[2], tryHarder = arguments.length > 3 && void 0 !== arguments[3] && arguments[3], counter = new Array(pattern.length).fill(0), counterPos = 0, bestMatch = {
|
||||
var isWhite = arguments.length > 2 && void 0 !== arguments[2] && arguments[2], tryHarder = arguments.length > 3 && void 0 !== arguments[3] && arguments[3], counter = Array(pattern.length).fill(0), counterPos = 0, bestMatch = {
|
||||
error: Number.MAX_VALUE,
|
||||
start: 0,
|
||||
end: 0
|
||||
@ -5854,7 +5854,7 @@
|
||||
{
|
||||
key: "decode",
|
||||
value: function(row, start) {
|
||||
var result = new Array(), decodedCodes = new Array(), startInfo = this._findStart();
|
||||
var result = Array(), decodedCodes = Array(), startInfo = this._findStart();
|
||||
if (!startInfo) return null;
|
||||
decodedCodes.push(startInfo);
|
||||
var endInfo = this._findEnd();
|
||||
@ -5978,7 +5978,7 @@
|
||||
function TwoOfFiveReader() {
|
||||
var _this;
|
||||
classCallCheck_default()(this, TwoOfFiveReader);
|
||||
for(var _len = arguments.length, args = new Array(_len), _key = 0; _key < _len; _key++)args[_key] = arguments[_key];
|
||||
for(var _len = arguments.length, args = Array(_len), _key = 0; _key < _len; _key++)args[_key] = arguments[_key];
|
||||
return _this = _super.call.apply(_super, [
|
||||
this
|
||||
].concat(args)), defineProperty_default()(assertThisInitialized_default()(_this), "barSpaceRatio", [
|
||||
@ -6174,7 +6174,7 @@
|
||||
function Code93Reader() {
|
||||
var _this;
|
||||
classCallCheck_default()(this, Code93Reader);
|
||||
for(var _len = arguments.length, args = new Array(_len), _key = 0; _key < _len; _key++)args[_key] = arguments[_key];
|
||||
for(var _len = arguments.length, args = Array(_len), _key = 0; _key < _len; _key++)args[_key] = arguments[_key];
|
||||
return _this = _super.call.apply(_super, [
|
||||
this
|
||||
].concat(args)), defineProperty_default()(assertThisInitialized_default()(_this), "FORMAT", "code_93"), _this;
|
||||
@ -6347,7 +6347,7 @@
|
||||
function Code32Reader() {
|
||||
var _this;
|
||||
classCallCheck_default()(this, Code32Reader);
|
||||
for(var _len = arguments.length, args = new Array(_len), _key = 0; _key < _len; _key++)args[_key] = arguments[_key];
|
||||
for(var _len = arguments.length, args = Array(_len), _key = 0; _key < _len; _key++)args[_key] = arguments[_key];
|
||||
return _this = _super.call.apply(_super, [
|
||||
this
|
||||
].concat(args)), defineProperty_default()(assertThisInitialized_default()(_this), "FORMAT", "code_32_reader"), _this;
|
||||
@ -6536,7 +6536,7 @@
|
||||
}(inputImageWrapper);
|
||||
},
|
||||
registerReader: function(name, reader) {
|
||||
if (READERS[name]) throw new Error("cannot register existing reader", name);
|
||||
if (READERS[name]) throw Error("cannot register existing reader", name);
|
||||
READERS[name] = reader;
|
||||
},
|
||||
setReaders: function(readers) {
|
||||
@ -6562,7 +6562,7 @@
|
||||
callback: callback,
|
||||
async: async
|
||||
};
|
||||
else if (!(subscription = callback).callback) throw new Error("Callback was not specified on options");
|
||||
else if (!(subscription = callback).callback) throw Error("Callback was not specified on options");
|
||||
getEvent(event).subscribers.push(subscription);
|
||||
}
|
||||
return {
|
||||
@ -6871,7 +6871,7 @@
|
||||
};
|
||||
}
|
||||
ImageLoader.load = function(directory, callback, offset1, size, sequence) {
|
||||
var i, img, num, htmlImagesSrcArray = new Array(size), htmlImagesArray = new Array(htmlImagesSrcArray.length);
|
||||
var i, img, num, htmlImagesSrcArray = Array(size), htmlImagesArray = Array(htmlImagesSrcArray.length);
|
||||
if (!1 === sequence) htmlImagesSrcArray[0] = directory;
|
||||
else for(i = 0; i < htmlImagesSrcArray.length; i++)num = offset1 + i, htmlImagesSrcArray[i] = "".concat(directory, "image-").concat("00".concat(num).slice(-3), ".jpg");
|
||||
for(i = 0, htmlImagesArray.notLoaded = [], htmlImagesArray.addImage = function(image) {
|
||||
|
@ -61,7 +61,7 @@ function _defineProperties(target, props) {
|
||||
}
|
||||
}
|
||||
function _assertThisInitialized(self) {
|
||||
if (void 0 === self) throw new ReferenceError("this hasn't been initialised - super() hasn't been called");
|
||||
if (void 0 === self) throw ReferenceError("this hasn't been initialised - super() hasn't been called");
|
||||
return self;
|
||||
}
|
||||
function _getPrototypeOf(o1) {
|
||||
@ -84,7 +84,7 @@ function _defineProperty(obj, key, value) {
|
||||
}
|
||||
var ItemsList = function(_Component) {
|
||||
!function(subClass, superClass) {
|
||||
if ("function" != typeof superClass && null !== superClass) throw new TypeError("Super expression must either be null or a function");
|
||||
if ("function" != typeof superClass && null !== superClass) throw TypeError("Super expression must either be null or a function");
|
||||
subClass.prototype = Object.create(superClass && superClass.prototype, {
|
||||
constructor: {
|
||||
value: subClass,
|
||||
@ -112,9 +112,9 @@ var ItemsList = function(_Component) {
|
||||
function ItemsList1() {
|
||||
var _this;
|
||||
!function(instance, Constructor) {
|
||||
if (!(instance instanceof Constructor)) throw new TypeError("Cannot call a class as a function");
|
||||
if (!(instance instanceof Constructor)) throw TypeError("Cannot call a class as a function");
|
||||
}(this, ItemsList1);
|
||||
for(var _len = arguments.length, args = new Array(_len), _key = 0; _key < _len; _key++)args[_key] = arguments[_key];
|
||||
for(var _len = arguments.length, args = Array(_len), _key = 0; _key < _len; _key++)args[_key] = arguments[_key];
|
||||
return _this = _super.call.apply(_super, [
|
||||
this
|
||||
].concat(args)), _defineProperty(_assertThisInitialized(_this), "storeHighlightedItemReference", function(highlightedItem) {
|
||||
|
@ -44,16 +44,16 @@ var ItemsList = function(Component1) {
|
||||
function ItemsList1() {
|
||||
var _this, self1, call, obj;
|
||||
return !function(instance, Constructor) {
|
||||
if (!(instance instanceof Constructor)) throw new TypeError("Cannot call a class as a function");
|
||||
if (!(instance instanceof Constructor)) throw TypeError("Cannot call a class as a function");
|
||||
}(this, ItemsList1), _this = (self1 = this, call = _getPrototypeOf(ItemsList1).apply(this, arguments), call && ("object" == ((obj = call) && "undefined" != typeof Symbol && obj.constructor === Symbol ? "symbol" : typeof obj) || "function" == typeof call) ? call : function(self) {
|
||||
if (void 0 === self) throw new ReferenceError("this hasn't been initialised - super() hasn't been called");
|
||||
if (void 0 === self) throw ReferenceError("this hasn't been initialised - super() hasn't been called");
|
||||
return self;
|
||||
}(self1)), _this.storeHighlightedItemReference = function(highlightedItem) {
|
||||
_this.props.onHighlightedItemChange(null === highlightedItem ? null : highlightedItem.item);
|
||||
}, _this;
|
||||
}
|
||||
return !function(subClass, superClass) {
|
||||
if ("function" != typeof superClass && null !== superClass) throw new TypeError("Super expression must either be null or a function");
|
||||
if ("function" != typeof superClass && null !== superClass) throw TypeError("Super expression must either be null or a function");
|
||||
subClass.prototype = Object.create(superClass && superClass.prototype, {
|
||||
constructor: {
|
||||
value: subClass,
|
||||
|
@ -85,13 +85,13 @@
|
||||
function _toConsumableArray(arr1) {
|
||||
return function(arr) {
|
||||
if (Array.isArray(arr)) {
|
||||
for(var i = 0, arr2 = new Array(arr.length); i < arr.length; i++)arr2[i] = arr[i];
|
||||
for(var i = 0, arr2 = Array(arr.length); i < arr.length; i++)arr2[i] = arr[i];
|
||||
return arr2;
|
||||
}
|
||||
}(arr1) || function(iter) {
|
||||
if (Symbol.iterator in Object(iter) || "[object Arguments]" === Object.prototype.toString.call(iter)) return Array.from(iter);
|
||||
}(arr1) || function() {
|
||||
throw new TypeError("Invalid attempt to spread non-iterable instance");
|
||||
throw TypeError("Invalid attempt to spread non-iterable instance");
|
||||
}();
|
||||
}
|
||||
exports.default = function(_param) {
|
||||
@ -125,8 +125,8 @@
|
||||
var src1, staticSrc = "";
|
||||
if ("object" == typeof (src1 = src2) && (isStaticRequire(src1) || void 0 !== src1.src)) {
|
||||
var staticImageData = isStaticRequire(src2) ? src2.default : src2;
|
||||
if (!staticImageData.src) throw new Error("An object should only be passed to the image component src parameter if it comes from a static image import. It must include src. Received ".concat(JSON.stringify(staticImageData)));
|
||||
if (blurDataURL = blurDataURL || staticImageData.blurDataURL, staticSrc = staticImageData.src, (!layout || "fill" !== layout) && (height = height || staticImageData.height, width = width || staticImageData.width, !staticImageData.height || !staticImageData.width)) throw new Error("An object should only be passed to the image component src parameter if it comes from a static image import. It must include height and width. Received ".concat(JSON.stringify(staticImageData)));
|
||||
if (!staticImageData.src) throw Error("An object should only be passed to the image component src parameter if it comes from a static image import. It must include src. Received ".concat(JSON.stringify(staticImageData)));
|
||||
if (blurDataURL = blurDataURL || staticImageData.blurDataURL, staticSrc = staticImageData.src, (!layout || "fill" !== layout) && (height = height || staticImageData.height, width = width || staticImageData.width, !staticImageData.height || !staticImageData.width)) throw Error("An object should only be passed to the image component src parameter if it comes from a static image import. It must include height and width. Received ".concat(JSON.stringify(staticImageData)));
|
||||
}
|
||||
src2 = "string" == typeof src2 ? src2 : staticSrc;
|
||||
var widthInt = getInt(width), heightInt = getInt(height), qualityInt = getInt(quality), isLazy = !priority && ("lazy" === loading || void 0 === loading);
|
||||
@ -151,7 +151,7 @@
|
||||
}
|
||||
return _arr;
|
||||
}(arr3, 2) || function() {
|
||||
throw new TypeError("Invalid attempt to destructure non-iterable instance");
|
||||
throw TypeError("Invalid attempt to destructure non-iterable instance");
|
||||
}(), setRef = ref2[0], isIntersected = ref2[1], isVisible = !isLazy || isIntersected, wrapperStyle = {
|
||||
boxSizing: "border-box",
|
||||
display: "block",
|
||||
@ -350,7 +350,7 @@
|
||||
"custom",
|
||||
function(param) {
|
||||
var src = param.src;
|
||||
throw new Error('Image with src "'.concat(src, '" is missing "loader" prop.') + "\nRead more: https://nextjs.org/docs/messages/next-image-missing-loader");
|
||||
throw Error('Image with src "'.concat(src, '" is missing "loader" prop.') + "\nRead more: https://nextjs.org/docs/messages/next-image-missing-loader");
|
||||
}
|
||||
],
|
||||
]);
|
||||
@ -446,7 +446,7 @@
|
||||
if (load) return load(_objectSpread({
|
||||
root: configPath
|
||||
}, loaderProps));
|
||||
throw new Error('Unknown "loader" found in "next.config.js". Expected: '.concat(_imageConfig.VALID_LOADERS.join(", "), ". Received: ").concat(configLoader));
|
||||
throw Error('Unknown "loader" found in "next.config.js". Expected: '.concat(_imageConfig.VALID_LOADERS.join(", "), ". Received: ").concat(configLoader));
|
||||
}
|
||||
function normalizeSrc(src) {
|
||||
return "/" === src[0] ? src.slice(1) : src;
|
||||
@ -479,7 +479,7 @@
|
||||
}
|
||||
return _arr;
|
||||
}(arr4, 2) || function() {
|
||||
throw new TypeError("Invalid attempt to destructure non-iterable instance");
|
||||
throw TypeError("Invalid attempt to destructure non-iterable instance");
|
||||
}(), visible = ref[0], setVisible = ref[1], setRef = _react.useCallback(function(el) {
|
||||
unobserve.current && (unobserve.current(), unobserve.current = void 0), !isDisabled && !visible && el && el.tagName && (unobserve.current = observe(el, function(isVisible) {
|
||||
return isVisible && setVisible(isVisible);
|
||||
@ -649,7 +649,7 @@
|
||||
return useIsomorphicLayoutEffect(function() {
|
||||
ref.current = fn;
|
||||
}), React.useCallback(function() {
|
||||
for(var _len = arguments.length, args = new Array(_len), _key = 0; _key < _len; _key++)args[_key] = arguments[_key];
|
||||
for(var _len = arguments.length, args = Array(_len), _key = 0; _key < _len; _key++)args[_key] = arguments[_key];
|
||||
return ref.current.apply(void 0, args);
|
||||
}, []);
|
||||
}
|
||||
|
@ -196,12 +196,12 @@ export default function createInstantSearchManager(param1) {
|
||||
client._cacheHydrated = !0;
|
||||
var baseMethod = client.search;
|
||||
client.search = function(requests) {
|
||||
for(var _len1 = arguments.length, methodArgs = new Array(_len1 > 1 ? _len1 - 1 : 0), _key1 = 1; _key1 < _len1; _key1++)methodArgs[_key1 - 1] = arguments[_key1];
|
||||
for(var _len1 = arguments.length, methodArgs = Array(_len1 > 1 ? _len1 - 1 : 0), _key1 = 1; _key1 < _len1; _key1++)methodArgs[_key1 - 1] = arguments[_key1];
|
||||
var requestsWithSerializedParams = requests.map(function(request) {
|
||||
var parameters, encode;
|
||||
return swcHelpers.objectSpread({}, request, {
|
||||
params: (parameters = request.params, encode = function(format) {
|
||||
for(var _len = arguments.length, args = new Array(_len > 1 ? _len - 1 : 0), _key = 1; _key < _len; _key++)args[_key - 1] = arguments[_key];
|
||||
for(var _len = arguments.length, args = Array(_len > 1 ? _len - 1 : 0), _key = 1; _key < _len; _key++)args[_key - 1] = arguments[_key];
|
||||
var i = 0;
|
||||
return format.replace(/%s/g, function() {
|
||||
return encodeURIComponent(args[i++]);
|
||||
|
@ -1,3 +1,3 @@
|
||||
export default function() {
|
||||
return new RegExp("{.[^}]+}\n*", "g");
|
||||
return RegExp("{.[^}]+}\n*", "g");
|
||||
};
|
||||
|
@ -1 +1 @@
|
||||
new RegExp("^/(?!_next).*$");
|
||||
RegExp("^/(?!_next).*$");
|
||||
|
@ -1,7 +1,7 @@
|
||||
export default function(value, options) {
|
||||
try {
|
||||
if ("string" == typeof value && value.length > 0) return function(str) {
|
||||
if ((str = String(str)).length > 100) throw new Error("Value exceeds the maximum length of 100 characters.");
|
||||
if ((str = String(str)).length > 100) throw Error("Value exceeds the maximum length of 100 characters.");
|
||||
const 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 NaN;
|
||||
const n = parseFloat(match[1]), type = (match[2] || "ms").toLowerCase();
|
||||
@ -45,14 +45,14 @@ export default function(value, options) {
|
||||
case "ms":
|
||||
return n;
|
||||
default:
|
||||
throw new Error(`The unit ${type} was matched, but no matching case exists.`);
|
||||
throw Error(`The unit ${type} was matched, but no matching case exists.`);
|
||||
}
|
||||
}(value);
|
||||
if ("number" == typeof value && isFinite(value)) return options?.long ? fmtLong(value) : fmtShort(value);
|
||||
throw new Error("Value is not a string or number.");
|
||||
throw Error("Value is not a string or number.");
|
||||
} catch (error) {
|
||||
const message = isError(error) ? `${error.message}. value=${JSON.stringify(value)}` : "An unknown error has occured.";
|
||||
throw new Error(message);
|
||||
throw Error(message);
|
||||
}
|
||||
};
|
||||
function fmtShort(ms) {
|
||||
|
@ -471,7 +471,7 @@
|
||||
return 0 == child.size || child.emptyChildAt(side);
|
||||
}, ViewDesc1.prototype.domAfterPos = function(pos) {
|
||||
var ref = this.domFromPos(pos, 0), node = ref.node, offset = ref.offset;
|
||||
if (1 != node.nodeType || offset == node.childNodes.length) throw new RangeError("No node after pos " + pos);
|
||||
if (1 != node.nodeType || offset == node.childNodes.length) throw RangeError("No node after pos " + pos);
|
||||
return node.childNodes[offset];
|
||||
}, ViewDesc1.prototype.setSelection = function(anchor, head, root, force) {
|
||||
for(var from = Math.min(anchor, head), to = Math.max(anchor, head), i = 0, offset = 0; i < this.children.length; i++){
|
||||
@ -654,7 +654,7 @@
|
||||
}, outerDeco, innerDeco), dom = spec && spec.dom, contentDOM = spec && spec.contentDOM;
|
||||
if (node.isText) {
|
||||
if (dom) {
|
||||
if (3 != dom.nodeType) throw new RangeError("Text must be rendered as a DOM text node");
|
||||
if (3 != dom.nodeType) throw RangeError("Text must be rendered as a DOM text node");
|
||||
} else dom = document.createTextNode(node.text);
|
||||
} else dom || (dom = (assign = prosemirror_model__WEBPACK_IMPORTED_MODULE_1__.DOMSerializer.renderSpec(document, node.type.spec.toDOM(node))).dom, contentDOM = assign.contentDOM);
|
||||
contentDOM || node.isText || "BR" == dom.nodeName || (dom.hasAttribute("contenteditable") || (dom.contentEditable = !1), node.type.spec.draggable && (dom.draggable = !0));
|
||||
@ -2514,7 +2514,7 @@
|
||||
}), result;
|
||||
}
|
||||
function checkStateComponent(plugin) {
|
||||
if (plugin.spec.state || plugin.spec.filterTransaction || plugin.spec.appendTransaction) throw new RangeError("Plugins passed directly to the view must not have a state component");
|
||||
if (plugin.spec.state || plugin.spec.filterTransaction || plugin.spec.appendTransaction) throw RangeError("Plugins passed directly to the view must not have a state component");
|
||||
}
|
||||
prototypeAccessors$21.props.get = function() {
|
||||
if (this._props.state != this.state) {
|
||||
@ -2696,7 +2696,7 @@
|
||||
}, EditorView.prototype.posAtDOM = function(node, offset, bias) {
|
||||
void 0 === bias && (bias = -1);
|
||||
var pos = this.docView.posFromDOM(node, offset, bias);
|
||||
if (null == pos) throw new RangeError("DOM position not inside the editor");
|
||||
if (null == pos) throw RangeError("DOM position not inside the editor");
|
||||
return pos;
|
||||
}, EditorView.prototype.endOfTextblock = function(dir3, state3) {
|
||||
var view12, state1, dir1, view11, state2, dir2, sel3, $pos;
|
||||
|
@ -60,11 +60,11 @@
|
||||
var history = [];
|
||||
function createLogger$1(name) {
|
||||
var logByType, name1, log, level1 = "info", log1 = function() {
|
||||
for(var _len = arguments.length, args = new Array(_len), _key = 0; _key < _len; _key++)args[_key] = arguments[_key];
|
||||
for(var _len = arguments.length, args = Array(_len), _key = 0; _key < _len; _key++)args[_key] = arguments[_key];
|
||||
logByType("log", level1, args);
|
||||
};
|
||||
return logByType = (name1 = name, log = log1, function(type, level, args) {
|
||||
var lvl = log.levels[level], lvlRegExp = new RegExp("^(" + lvl + ")$");
|
||||
var lvl = log.levels[level], lvlRegExp = RegExp("^(" + lvl + ")$");
|
||||
if ("log" !== type && args.unshift(type.toUpperCase() + ":"), args.unshift(name1 + ":"), history) {
|
||||
history.push([].concat(args));
|
||||
var splice = history.length - 1000;
|
||||
@ -86,7 +86,7 @@
|
||||
DEFAULT: level1
|
||||
}, log1.level = function(lvl) {
|
||||
if ("string" == typeof lvl) {
|
||||
if (!log1.levels.hasOwnProperty(lvl)) throw new Error('"' + lvl + '" in not a valid log level');
|
||||
if (!log1.levels.hasOwnProperty(lvl)) throw Error('"' + lvl + '" in not a valid log level');
|
||||
level1 = lvl;
|
||||
}
|
||||
return level1;
|
||||
@ -94,7 +94,7 @@
|
||||
return history ? [].concat(history) : [];
|
||||
}, log1.history.filter = function(fname) {
|
||||
return (history || []).filter(function(historyItem) {
|
||||
return new RegExp(".*" + fname + ".*").test(historyItem[0]);
|
||||
return RegExp(".*" + fname + ".*").test(historyItem[0]);
|
||||
});
|
||||
}, log1.history.clear = function() {
|
||||
history && (history.length = 0);
|
||||
@ -103,13 +103,13 @@
|
||||
}, log1.history.enable = function() {
|
||||
null === history && (history = []);
|
||||
}, log1.error = function() {
|
||||
for(var _len2 = arguments.length, args = new Array(_len2), _key2 = 0; _key2 < _len2; _key2++)args[_key2] = arguments[_key2];
|
||||
for(var _len2 = arguments.length, args = Array(_len2), _key2 = 0; _key2 < _len2; _key2++)args[_key2] = arguments[_key2];
|
||||
return logByType("error", level1, args);
|
||||
}, log1.warn = function() {
|
||||
for(var _len3 = arguments.length, args = new Array(_len3), _key3 = 0; _key3 < _len3; _key3++)args[_key3] = arguments[_key3];
|
||||
for(var _len3 = arguments.length, args = Array(_len3), _key3 = 0; _key3 < _len3; _key3++)args[_key3] = arguments[_key3];
|
||||
return logByType("warn", level1, args);
|
||||
}, log1.debug = function() {
|
||||
for(var _len4 = arguments.length, args = new Array(_len4), _key4 = 0; _key4 < _len4; _key4++)args[_key4] = arguments[_key4];
|
||||
for(var _len4 = arguments.length, args = Array(_len4), _key4 = 0; _key4 < _len4; _key4++)args[_key4] = arguments[_key4];
|
||||
return logByType("debug", level1, args);
|
||||
}, log1;
|
||||
}
|
||||
@ -122,7 +122,7 @@
|
||||
});
|
||||
}
|
||||
function assign(target) {
|
||||
for(var _len = arguments.length, sources = new Array(_len > 1 ? _len - 1 : 0), _key = 1; _key < _len; _key++)sources[_key - 1] = arguments[_key];
|
||||
for(var _len = arguments.length, sources = Array(_len > 1 ? _len - 1 : 0), _key = 1; _key < _len; _key++)sources[_key - 1] = arguments[_key];
|
||||
return Object.assign ? _babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_15__.Z.apply(void 0, [
|
||||
target
|
||||
].concat(sources)) : (sources.forEach(function(source) {
|
||||
@ -179,7 +179,7 @@
|
||||
return "string" == typeof str && Boolean(str.trim());
|
||||
}
|
||||
function throwIfWhitespace(str) {
|
||||
if (str.indexOf(" ") >= 0) throw new Error("class has illegal whitespace characters");
|
||||
if (str.indexOf(" ") >= 0) throw Error("class has illegal whitespace characters");
|
||||
}
|
||||
function isReal() {
|
||||
return global_document__WEBPACK_IMPORTED_MODULE_1___default() === global_window__WEBPACK_IMPORTED_MODULE_0___default().document;
|
||||
@ -219,8 +219,7 @@
|
||||
parent.firstChild ? parent.insertBefore(child, parent.firstChild) : parent.appendChild(child);
|
||||
}
|
||||
function hasClass(element, classToCheck) {
|
||||
var className;
|
||||
return (throwIfWhitespace(classToCheck), element.classList) ? element.classList.contains(classToCheck) : (className = classToCheck, new RegExp("(^|\\s)" + className + "($|\\s)")).test(element.className);
|
||||
return (throwIfWhitespace(classToCheck), element.classList) ? element.classList.contains(classToCheck) : RegExp("(^|\\s)" + classToCheck + "($|\\s)").test(element.className);
|
||||
}
|
||||
function addClass(element, classToAdd) {
|
||||
return element.classList ? element.classList.add(classToAdd) : hasClass(element, classToAdd) || (element.className = (element.className + " " + classToAdd).trim()), element;
|
||||
@ -623,11 +622,11 @@
|
||||
}, isValidEventType = function(type) {
|
||||
return "string" == typeof type && /\S/.test(type) || Array.isArray(type) && !!type.length;
|
||||
}, validateTarget = function(target, obj, fnName) {
|
||||
if (!target || !target.nodeName && !isEvented(target)) throw new Error("Invalid target for " + objName(obj) + "#" + fnName + "; must be a DOM node or evented object.");
|
||||
if (!target || !target.nodeName && !isEvented(target)) throw Error("Invalid target for " + objName(obj) + "#" + fnName + "; must be a DOM node or evented object.");
|
||||
}, validateEventType = function(type, obj, fnName) {
|
||||
if (!isValidEventType(type)) throw new Error("Invalid event type for " + objName(obj) + "#" + fnName + "; must be a non-empty string or array.");
|
||||
if (!isValidEventType(type)) throw Error("Invalid event type for " + objName(obj) + "#" + fnName + "; must be a non-empty string or array.");
|
||||
}, validateListener = function(listener, obj, fnName) {
|
||||
if ("function" != typeof listener) throw new Error("Invalid listener for " + objName(obj) + "#" + fnName + "; must be a function.");
|
||||
if ("function" != typeof listener) throw Error("Invalid listener for " + objName(obj) + "#" + fnName + "; must be a function.");
|
||||
}, normalizeListenArgs = function(self, args, fnName) {
|
||||
var target, type, listener, isTargetingSelf = args.length < 3 || args[0] === self || args[0] === self.eventBusEl_;
|
||||
return isTargetingSelf ? (target = self.eventBusEl_, args.length >= 3 && args.shift(), type = args[0], listener = args[1]) : (target = args[0], type = args[1], listener = args[2]), validateTarget(target, self, fnName), validateEventType(type, self, fnName), validateListener(listener, self, fnName), listener = bind(self, listener), {
|
||||
@ -640,7 +639,7 @@
|
||||
validateTarget(target, target, method), target.nodeName ? Events[method](target, type, listener) : target[method](type, listener);
|
||||
}, EventedMixin = {
|
||||
on: function() {
|
||||
for(var _this = this, _len = arguments.length, args = new Array(_len), _key = 0; _key < _len; _key++)args[_key] = arguments[_key];
|
||||
for(var _this = this, _len = arguments.length, args = Array(_len), _key = 0; _key < _len; _key++)args[_key] = arguments[_key];
|
||||
var _normalizeListenArgs = normalizeListenArgs(this, args, "on"), isTargetingSelf = _normalizeListenArgs.isTargetingSelf, target = _normalizeListenArgs.target, type = _normalizeListenArgs.type, listener = _normalizeListenArgs.listener;
|
||||
if (listen(target, "on", type, listener), !isTargetingSelf) {
|
||||
var removeListenerOnDispose = function() {
|
||||
@ -654,26 +653,26 @@
|
||||
}
|
||||
},
|
||||
one: function() {
|
||||
for(var _this2 = this, _len2 = arguments.length, args = new Array(_len2), _key2 = 0; _key2 < _len2; _key2++)args[_key2] = arguments[_key2];
|
||||
for(var _this2 = this, _len2 = arguments.length, args = Array(_len2), _key2 = 0; _key2 < _len2; _key2++)args[_key2] = arguments[_key2];
|
||||
var _normalizeListenArgs2 = normalizeListenArgs(this, args, "one"), isTargetingSelf = _normalizeListenArgs2.isTargetingSelf, target = _normalizeListenArgs2.target, type = _normalizeListenArgs2.type, listener = _normalizeListenArgs2.listener;
|
||||
if (isTargetingSelf) listen(target, "one", type, listener);
|
||||
else {
|
||||
var wrapper1 = function wrapper() {
|
||||
_this2.off(target, type, wrapper);
|
||||
for(var _len3 = arguments.length, largs = new Array(_len3), _key3 = 0; _key3 < _len3; _key3++)largs[_key3] = arguments[_key3];
|
||||
for(var _len3 = arguments.length, largs = Array(_len3), _key3 = 0; _key3 < _len3; _key3++)largs[_key3] = arguments[_key3];
|
||||
listener.apply(null, largs);
|
||||
};
|
||||
wrapper1.guid = listener.guid, listen(target, "one", type, wrapper1);
|
||||
}
|
||||
},
|
||||
any: function() {
|
||||
for(var _this3 = this, _len4 = arguments.length, args = new Array(_len4), _key4 = 0; _key4 < _len4; _key4++)args[_key4] = arguments[_key4];
|
||||
for(var _this3 = this, _len4 = arguments.length, args = Array(_len4), _key4 = 0; _key4 < _len4; _key4++)args[_key4] = arguments[_key4];
|
||||
var _normalizeListenArgs3 = normalizeListenArgs(this, args, "any"), isTargetingSelf = _normalizeListenArgs3.isTargetingSelf, target = _normalizeListenArgs3.target, type = _normalizeListenArgs3.type, listener = _normalizeListenArgs3.listener;
|
||||
if (isTargetingSelf) listen(target, "any", type, listener);
|
||||
else {
|
||||
var wrapper3 = function wrapper() {
|
||||
_this3.off(target, type, wrapper);
|
||||
for(var _len5 = arguments.length, largs = new Array(_len5), _key5 = 0; _key5 < _len5; _key5++)largs[_key5] = arguments[_key5];
|
||||
for(var _len5 = arguments.length, largs = Array(_len5), _key5 = 0; _key5 < _len5; _key5++)largs[_key5] = arguments[_key5];
|
||||
listener.apply(null, largs);
|
||||
};
|
||||
wrapper3.guid = listener.guid, listen(target, "any", type, wrapper3);
|
||||
@ -690,7 +689,7 @@
|
||||
if (validateTarget(this.eventBusEl_, this, "trigger"), !isValidEventType(event && "string" != typeof event ? event.type : event)) {
|
||||
var error = "Invalid event type for " + objName(this) + "#trigger; must be a non-empty string or object with a type key that has a non-empty value.";
|
||||
if (event) (this.log || log$1).error(error);
|
||||
else throw new Error(error);
|
||||
else throw Error(error);
|
||||
}
|
||||
return trigger(this.eventBusEl_, event, hash);
|
||||
}
|
||||
@ -699,7 +698,7 @@
|
||||
void 0 === options && (options = {});
|
||||
var eventBusKey = options.eventBusKey;
|
||||
if (eventBusKey) {
|
||||
if (!target[eventBusKey].nodeName) throw new Error('The eventBusKey "' + eventBusKey + '" does not refer to an element.');
|
||||
if (!target[eventBusKey].nodeName) throw Error('The eventBusKey "' + eventBusKey + '" does not refer to an element.');
|
||||
target.eventBusEl_ = target[eventBusKey];
|
||||
} else target.eventBusEl_ = createEl("span", {
|
||||
className: "vjs-event-bus"
|
||||
@ -746,7 +745,7 @@
|
||||
});
|
||||
};
|
||||
function mergeOptions$3() {
|
||||
for(var result = {}, _len = arguments.length, sources = new Array(_len), _key = 0; _key < _len; _key++)sources[_key] = arguments[_key];
|
||||
for(var result = {}, _len = arguments.length, sources = Array(_len), _key = 0; _key < _len; _key++)sources[_key] = arguments[_key];
|
||||
return sources.forEach(function(source) {
|
||||
source && each(source, function(value, key) {
|
||||
if (!isPlain(value)) {
|
||||
@ -836,7 +835,7 @@
|
||||
}, _proto.getChild = function(name) {
|
||||
if (name) return this.childNameIndex_[name];
|
||||
}, _proto.getDescendant = function() {
|
||||
for(var _len = arguments.length, names = new Array(_len), _key = 0; _key < _len; _key++)names[_key] = arguments[_key];
|
||||
for(var _len = arguments.length, names = Array(_len), _key = 0; _key < _len; _key++)names[_key] = arguments[_key];
|
||||
names = names.reduce(function(acc, n) {
|
||||
return acc.concat(n);
|
||||
}, []);
|
||||
@ -848,7 +847,7 @@
|
||||
var component, componentName, componentClassName = options.componentClass || componentName;
|
||||
options.name = componentName;
|
||||
var ComponentClass = Component.getComponent(componentClassName);
|
||||
if (!ComponentClass) throw new Error("Component " + componentClassName + " does not exist");
|
||||
if (!ComponentClass) throw Error("Component " + componentClassName + " does not exist");
|
||||
if ("function" != typeof ComponentClass) return null;
|
||||
component = new ComponentClass(this.player_ || this, options);
|
||||
} else component = child;
|
||||
@ -954,7 +953,7 @@
|
||||
return -1 !== pxIndex ? parseInt(val.slice(0, pxIndex), 10) : parseInt(this.el_["offset" + toTitleCase$1(widthOrHeight)], 10);
|
||||
}, _proto.currentDimension = function(widthOrHeight) {
|
||||
var computedWidthOrHeight = 0;
|
||||
if ("width" !== widthOrHeight && "height" !== widthOrHeight) throw new Error("currentDimension only accepts width or height value");
|
||||
if ("width" !== widthOrHeight && "height" !== widthOrHeight) throw Error("currentDimension only accepts width or height value");
|
||||
if (computedWidthOrHeight = computedStyle(this.el_, widthOrHeight), 0 === (computedWidthOrHeight = parseFloat(computedWidthOrHeight)) || isNaN(computedWidthOrHeight)) {
|
||||
var rule = "offset" + toTitleCase$1(widthOrHeight);
|
||||
computedWidthOrHeight = this.el_[rule];
|
||||
@ -1067,16 +1066,16 @@
|
||||
}), _this5.clearingTimersOnDispose_ = !1;
|
||||
}));
|
||||
}, Component.registerComponent = function(name, ComponentToRegister) {
|
||||
if ("string" != typeof name || !name) throw new Error('Illegal component name, "' + name + '"; must be a non-empty string.');
|
||||
var reason, Tech = Component.getComponent("Tech"), isTech = Tech && Tech.isTech(ComponentToRegister), isComp = Component === ComponentToRegister || Component.prototype.isPrototypeOf(ComponentToRegister.prototype);
|
||||
if (isTech || !isComp) throw reason = isTech ? "techs must be registered using Tech.registerTech()" : "must be a Component subclass", new Error('Illegal component, "' + name + '"; ' + reason + ".");
|
||||
if ("string" != typeof name || !name) throw Error('Illegal component name, "' + name + '"; must be a non-empty string.');
|
||||
var Tech = Component.getComponent("Tech"), isTech = Tech && Tech.isTech(ComponentToRegister), isComp = Component === ComponentToRegister || Component.prototype.isPrototypeOf(ComponentToRegister.prototype);
|
||||
if (isTech || !isComp) throw Error('Illegal component, "' + name + '"; ' + (isTech ? "techs must be registered using Tech.registerTech()" : "must be a Component subclass") + ".");
|
||||
name = toTitleCase$1(name), Component.components_ || (Component.components_ = {});
|
||||
var Player = Component.getComponent("Player");
|
||||
if ("Player" === name && Player && Player.players) {
|
||||
var players = Player.players, playerNames = Object.keys(players);
|
||||
if (players && playerNames.length > 0 && playerNames.map(function(pname) {
|
||||
return players[pname];
|
||||
}).every(Boolean)) throw new Error("Can not register Player component after player has been created.");
|
||||
}).every(Boolean)) throw Error("Can not register Player component after player has been created.");
|
||||
}
|
||||
return Component.components_[name] = ComponentToRegister, Component.components_[toLowerCase(name)] = ComponentToRegister, ComponentToRegister;
|
||||
}, Component.getComponent = function(name) {
|
||||
@ -1085,7 +1084,7 @@
|
||||
}();
|
||||
function getRange(fnName1, valueIndex, ranges, rangeIndex) {
|
||||
return !function(fnName, index, maxIndex) {
|
||||
if ("number" != typeof index || index < 0 || index > maxIndex) throw new Error("Failed to execute '" + fnName + "' on 'TimeRanges': The index provided (" + index + ") is non-numeric or out of bounds (0-" + maxIndex + ").");
|
||||
if ("number" != typeof index || index < 0 || index > maxIndex) throw Error("Failed to execute '" + fnName + "' on 'TimeRanges': The index provided (" + index + ") is non-numeric or out of bounds (0-" + maxIndex + ").");
|
||||
}(fnName1, rangeIndex, ranges.length - 1), ranges[rangeIndex][valueIndex];
|
||||
}
|
||||
function createTimeRangesObj(ranges) {
|
||||
@ -1093,10 +1092,10 @@
|
||||
return timeRangesObj = void 0 === ranges || 0 === ranges.length ? {
|
||||
length: 0,
|
||||
start: function() {
|
||||
throw new Error("This TimeRanges object is empty");
|
||||
throw Error("This TimeRanges object is empty");
|
||||
},
|
||||
end: function() {
|
||||
throw new Error("This TimeRanges object is empty");
|
||||
throw Error("This TimeRanges object is empty");
|
||||
}
|
||||
} : {
|
||||
length: ranges.length,
|
||||
@ -1593,7 +1592,7 @@
|
||||
}));
|
||||
}, TextTrack1 = function(_Track) {
|
||||
function TextTrack(options) {
|
||||
if (void 0 === options && (options = {}), !options.tech) throw new Error("A tech was not provided.");
|
||||
if (void 0 === options && (options = {}), !options.tech) throw Error("A tech was not provided.");
|
||||
var _this, settings = mergeOptions$3(options, {
|
||||
kind: TextTrackKind[options.kind] || "subtitles",
|
||||
language: options.language || options.srclang || ""
|
||||
@ -1914,7 +1913,7 @@
|
||||
});
|
||||
}, _proto.addTextTrack = function(kind, label, language) {
|
||||
var self, kind1, label1, language1, options, tracks, track;
|
||||
if (!kind) throw new Error("TextTrack kind is required but was not provided");
|
||||
if (!kind) throw Error("TextTrack kind is required but was not provided");
|
||||
return self = this, kind1 = kind, label1 = label, language1 = language, void 0 === options && (options = {}), tracks = self.textTracks(), options.kind = kind1, label1 && (options.label = label1), language1 && (options.language = language1), options.tech = self, track = new ALL.text.TrackClass(options), tracks.addTrack(track), track;
|
||||
}, _proto.createRemoteTextTrack = function(options) {
|
||||
var track = mergeOptions$3(options, {
|
||||
@ -1947,9 +1946,9 @@
|
||||
}, Tech.isTech = function(component) {
|
||||
return component.prototype instanceof Tech || component instanceof Tech || component === Tech;
|
||||
}, Tech.registerTech = function(name, tech) {
|
||||
if (Tech.techs_ || (Tech.techs_ = {}), !Tech.isTech(tech)) throw new Error("Tech " + name + " must be a Tech");
|
||||
if (!Tech.canPlayType) throw new Error("Techs must have a static canPlayType method on them");
|
||||
if (!Tech.canPlaySource) throw new Error("Techs must have a static canPlaySource method on them");
|
||||
if (Tech.techs_ || (Tech.techs_ = {}), !Tech.isTech(tech)) throw Error("Tech " + name + " must be a Tech");
|
||||
if (!Tech.canPlayType) throw Error("Techs must have a static canPlayType method on them");
|
||||
if (!Tech.canPlaySource) throw Error("Techs must have a static canPlaySource method on them");
|
||||
return name = toTitleCase$1(name), Tech.techs_[name] = tech, Tech.techs_[toLowerCase(name)] = tech, "Tech" !== name && Tech.defaultTechOrder_.push(name), tech;
|
||||
}, Tech.getTech = function(name) {
|
||||
return name ? Tech.techs_ && Tech.techs_[name] ? Tech.techs_[name] : (name = toTitleCase$1(name), global_window__WEBPACK_IMPORTED_MODULE_0___default() && global_window__WEBPACK_IMPORTED_MODULE_0___default().videojs && global_window__WEBPACK_IMPORTED_MODULE_0___default().videojs[name]) ? (log$1.warn("The " + name + " tech was added to the videojs object when it should be registered using videojs.registerTech(name, tech)"), global_window__WEBPACK_IMPORTED_MODULE_0___default().videojs[name]) : void 0 : void 0;
|
||||
@ -2238,7 +2237,7 @@
|
||||
var hex;
|
||||
if (4 === color.length) hex = color[1] + color[1] + color[2] + color[2] + color[3] + color[3];
|
||||
else if (7 === color.length) hex = color.slice(1);
|
||||
else throw new Error("Invalid color code provided, " + color + "; must be formatted as e.g. #f0e or #f604e2.");
|
||||
else throw Error("Invalid color code provided, " + color + "; must be formatted as e.g. #f0e or #f604e2.");
|
||||
return "rgba(" + parseInt(hex.slice(0, 2), 16) + "," + parseInt(hex.slice(2, 4), 16) + "," + parseInt(hex.slice(4, 6), 16) + "," + opacity + ")";
|
||||
}
|
||||
function tryUpdateStyle(el, style, rule) {
|
||||
@ -3549,10 +3548,10 @@
|
||||
options.kind || _this.track.kind
|
||||
]).filter(Boolean);
|
||||
var changeHandler = function() {
|
||||
for(var _len = arguments.length, args = new Array(_len), _key = 0; _key < _len; _key++)args[_key] = arguments[_key];
|
||||
for(var _len = arguments.length, args = Array(_len), _key = 0; _key < _len; _key++)args[_key] = arguments[_key];
|
||||
_this.handleTracksChange.apply((0, _babel_runtime_helpers_assertThisInitialized__WEBPACK_IMPORTED_MODULE_17__.Z)(_this), args);
|
||||
}, selectedLanguageChangeHandler = function() {
|
||||
for(var _len2 = arguments.length, args = new Array(_len2), _key2 = 0; _key2 < _len2; _key2++)args[_key2] = arguments[_key2];
|
||||
for(var _len2 = arguments.length, args = Array(_len2), _key2 = 0; _key2 < _len2; _key2++)args[_key2] = arguments[_key2];
|
||||
_this.handleSelectedLanguageChange.apply((0, _babel_runtime_helpers_assertThisInitialized__WEBPACK_IMPORTED_MODULE_17__.Z)(_this), args);
|
||||
};
|
||||
return player.on([
|
||||
@ -3857,7 +3856,7 @@
|
||||
var _this, track = options.track, tracks = player.audioTracks();
|
||||
options.label = track.label || track.language || "Unknown", options.selected = track.enabled, (_this = _MenuItem.call(this, player, options) || this).track = track, _this.addClass("vjs-" + track.kind + "-menu-item");
|
||||
var changeHandler = function() {
|
||||
for(var _len = arguments.length, args = new Array(_len), _key = 0; _key < _len; _key++)args[_key] = arguments[_key];
|
||||
for(var _len = arguments.length, args = Array(_len), _key = 0; _key < _len; _key++)args[_key] = arguments[_key];
|
||||
_this.handleTracksChange.apply((0, _babel_runtime_helpers_assertThisInitialized__WEBPACK_IMPORTED_MODULE_17__.Z)(_this), args);
|
||||
};
|
||||
return tracks.addEventListener("change", changeHandler), _this.on("dispose", function() {
|
||||
@ -4611,7 +4610,7 @@
|
||||
innerHTMLDescriptorPolyfill,
|
||||
], "innerHTML"), appendWrapper = function(appendFn) {
|
||||
return function() {
|
||||
for(var _len = arguments.length, args = new Array(_len), _key = 0; _key < _len; _key++)args[_key] = arguments[_key];
|
||||
for(var _len = arguments.length, args = Array(_len), _key = 0; _key < _len; _key++)args[_key] = arguments[_key];
|
||||
var retval = appendFn.apply(el, args);
|
||||
return sourcesetLoad(tech), retval;
|
||||
};
|
||||
@ -4893,7 +4892,7 @@
|
||||
}
|
||||
}, _proto.exitFullScreen = function() {
|
||||
if (!this.el_.webkitDisplayingFullscreen) {
|
||||
this.trigger("fullscreenerror", new Error("The video is not fullscreen"));
|
||||
this.trigger("fullscreenerror", Error("The video is not fullscreen"));
|
||||
return;
|
||||
}
|
||||
this.el_.webkitExitFullScreen();
|
||||
@ -5228,7 +5227,7 @@
|
||||
return _this.handleTechTouchEnd_(e);
|
||||
}, _this.boundHandleTechTap_ = function(e) {
|
||||
return _this.handleTechTap_(e);
|
||||
}, _this.isFullscreen_ = !1, _this.log = createLogger(_this.id_), _this.fsApi_ = FullscreenApi, _this.isPosterFromTech_ = !1, _this.queuedCallbacks_ = [], _this.isReady_ = !1, _this.hasStarted_ = !1, _this.userActive_ = !1, _this.debugEnabled_ = !1, !_this.options_ || !_this.options_.techOrder || !_this.options_.techOrder.length) throw new Error("No techOrder specified. Did you overwrite videojs.options instead of just changing the properties you want to override?");
|
||||
}, _this.isFullscreen_ = !1, _this.log = createLogger(_this.id_), _this.fsApi_ = FullscreenApi, _this.isPosterFromTech_ = !1, _this.queuedCallbacks_ = [], _this.isReady_ = !1, _this.hasStarted_ = !1, _this.userActive_ = !1, _this.debugEnabled_ = !1, !_this.options_ || !_this.options_.techOrder || !_this.options_.techOrder.length) throw Error("No techOrder specified. Did you overwrite videojs.options instead of just changing the properties you want to override?");
|
||||
if (_this.tag = tag, _this.tagAttributes = tag && getAttributes(tag), _this.language(_this.options_.language), options.languages) {
|
||||
var languagesToLower = {};
|
||||
Object.getOwnPropertyNames(options.languages).forEach(function(name) {
|
||||
@ -5236,7 +5235,7 @@
|
||||
}), _this.languages_ = languagesToLower;
|
||||
} else _this.languages_ = Player.prototype.options_.languages;
|
||||
_this.resetCache_(), _this.poster_ = options.poster || "", _this.controls_ = !!options.controls, tag.controls = !1, tag.removeAttribute("controls"), _this.changingSrc_ = !1, _this.playCallbacks_ = [], _this.playTerminatedQueue_ = [], tag.hasAttribute("autoplay") ? _this.autoplay(!0) : _this.autoplay(_this.options_.autoplay), options.plugins && Object.keys(options.plugins).forEach(function(name) {
|
||||
if ("function" != typeof _this[name]) throw new Error('plugin "' + name + '" does not exist');
|
||||
if ("function" != typeof _this[name]) throw Error('plugin "' + name + '" does not exist');
|
||||
}), _this.scrubbing_ = !1, _this.el_ = _this.createEl(), evented((0, _babel_runtime_helpers_assertThisInitialized__WEBPACK_IMPORTED_MODULE_17__.Z)(_this), {
|
||||
eventBusKey: "el_"
|
||||
}), _this.fsApi_.requestFullscreen && (on(global_document__WEBPACK_IMPORTED_MODULE_1___default(), _this.fsApi_.fullscreenchange, _this.boundDocumentFullscreenChange_), _this.on(_this.fsApi_.fullscreenchange, _this.boundDocumentFullscreenChange_)), _this.fluid_ && _this.on([
|
||||
@ -5332,7 +5331,7 @@
|
||||
this.fill_ = !!bool, bool ? (this.addClass("vjs-fill"), this.fluid(!1)) : this.removeClass("vjs-fill");
|
||||
}, _proto.aspectRatio = function(ratio) {
|
||||
if (void 0 === ratio) return this.aspectRatio_;
|
||||
if (!/^\d+\:\d+$/.test(ratio)) throw new Error("Improper value supplied for aspect ratio. The format should be width:height, for example 16:9.");
|
||||
if (!/^\d+\:\d+$/.test(ratio)) throw Error("Improper value supplied for aspect ratio. The format should be width:height, for example 16:9.");
|
||||
this.aspectRatio_ = ratio, this.fluid(!0), this.updateStyleEl_();
|
||||
}, _proto.updateStyleEl_ = function() {
|
||||
if (!0 === global_window__WEBPACK_IMPORTED_MODULE_0___default().VIDEOJS_NO_DYNAMIC_STYLE) {
|
||||
@ -5373,7 +5372,7 @@
|
||||
techOptions[props.getterName] = _this4[props.privateName];
|
||||
}), assign(techOptions, this.options_[titleTechName]), assign(techOptions, this.options_[camelTechName]), assign(techOptions, this.options_[techName.toLowerCase()]), this.tag && (techOptions.tag = this.tag), source && source.src === this.cache_.src && this.cache_.currentTime > 0 && (techOptions.startTime = this.cache_.currentTime);
|
||||
var TechClass = Tech1.getTech(techName);
|
||||
if (!TechClass) throw new Error("No Tech named '" + titleTechName + "' exists! '" + titleTechName + "' should be registered using videojs.registerTech()'");
|
||||
if (!TechClass) throw Error("No Tech named '" + titleTechName + "' exists! '" + titleTechName + "' should be registered using videojs.registerTech()'");
|
||||
this.tech_ = new TechClass(techOptions), this.tech_.ready(bind(this, this.handleTechReady_), !0), textTrackConverter.jsonToTextTracks(this.textTracksJson_ || [], this.tech_), TECH_EVENTS_RETRIGGER.forEach(function(event) {
|
||||
_this4.on(_this4.tech_, event, function(e) {
|
||||
return _this4["handleTech" + toTitleCase$1(event) + "_"](e);
|
||||
@ -5452,7 +5451,7 @@
|
||||
_this6.playTerminatedQueue_.push(restoreMuted);
|
||||
var mutedPromise = _this6.play();
|
||||
if (isPromise(mutedPromise)) return mutedPromise.catch(function(err) {
|
||||
throw restoreMuted(), new Error("Rejection at manualAutoplay. Restoring muted value. " + (err || ""));
|
||||
throw restoreMuted(), Error("Rejection at manualAutoplay. Restoring muted value. " + (err || ""));
|
||||
});
|
||||
};
|
||||
if ("any" !== type || this.muted() ? promise = "muted" !== type || this.muted() ? this.play() : resolveMuted() : isPromise(promise = this.play()) && (promise = promise.catch(resolveMuted)), isPromise(promise)) return promise.then(function() {
|
||||
@ -6257,7 +6256,7 @@
|
||||
plugin: PluginSubClass,
|
||||
instance: null
|
||||
}, !0);
|
||||
for(var _len = arguments.length, args = new Array(_len), _key = 0; _key < _len; _key++)args[_key] = arguments[_key];
|
||||
for(var _len = arguments.length, args = Array(_len), _key = 0; _key < _len; _key++)args[_key] = arguments[_key];
|
||||
var instance = (0, _babel_runtime_helpers_construct__WEBPACK_IMPORTED_MODULE_18__.Z)(PluginSubClass, [
|
||||
this
|
||||
].concat(args));
|
||||
@ -6267,7 +6266,7 @@
|
||||
};
|
||||
}, Plugin1 = function() {
|
||||
function Plugin(player) {
|
||||
if (this.constructor === Plugin) throw new Error("Plugin must be sub-classed; not directly instantiated.");
|
||||
if (this.constructor === Plugin) throw Error("Plugin must be sub-classed; not directly instantiated.");
|
||||
this.player = player, this.log || (this.log = this.player.log.createLogger(this.name)), evented(this), delete this.trigger, stateful(this, this.constructor.defaultState), markPluginAsActive(player, this.name), this.dispose = this.dispose.bind(this), player.on("dispose", this.dispose);
|
||||
}
|
||||
var _proto = Plugin.prototype;
|
||||
@ -6284,13 +6283,13 @@
|
||||
var p = "string" == typeof plugin ? getPlugin(plugin) : plugin;
|
||||
return "function" == typeof p && !Plugin.prototype.isPrototypeOf(p.prototype);
|
||||
}, Plugin.registerPlugin = function(name, plugin) {
|
||||
if ("string" != typeof name) throw new Error('Illegal plugin name, "' + name + '", must be a string, was ' + typeof name + ".");
|
||||
if ("string" != typeof name) throw Error('Illegal plugin name, "' + name + '", must be a string, was ' + typeof name + ".");
|
||||
if (pluginExists(name)) log$1.warn('A plugin named "' + name + '" already exists. You may want to avoid re-registering plugins!');
|
||||
else if (Player1.prototype.hasOwnProperty(name)) throw new Error('Illegal plugin name, "' + name + '", cannot share a name with an existing player method!');
|
||||
if ("function" != typeof plugin) throw new Error('Illegal plugin for "' + name + '", must be a function, was ' + typeof plugin + ".");
|
||||
else if (Player1.prototype.hasOwnProperty(name)) throw Error('Illegal plugin name, "' + name + '", cannot share a name with an existing player method!');
|
||||
if ("function" != typeof plugin) throw Error('Illegal plugin for "' + name + '", must be a function, was ' + typeof plugin + ".");
|
||||
return pluginStorage[name] = plugin, name !== BASE_PLUGIN_NAME && (Plugin.isBasic(plugin) ? Player1.prototype[name] = createBasicPlugin(name, plugin) : Player1.prototype[name] = createPluginFactory(name, plugin)), plugin;
|
||||
}, Plugin.deregisterPlugin = function(name) {
|
||||
if (name === BASE_PLUGIN_NAME) throw new Error("Cannot de-register base plugin.");
|
||||
if (name === BASE_PLUGIN_NAME) throw Error("Cannot de-register base plugin.");
|
||||
pluginExists(name) && (delete pluginStorage[name], delete Player1.prototype[name]);
|
||||
}, Plugin.getPlugins = function(names) {
|
||||
var result;
|
||||
@ -6315,7 +6314,7 @@
|
||||
var player = videojs.getPlayer(id);
|
||||
if (player) return options && log$1.warn('Player "' + id + '" is already initialised. Options will not be applied.'), ready && player.ready(ready), player;
|
||||
var el = "string" == typeof id ? $("#" + normalizeId(id)) : id;
|
||||
if (!isEl(el)) throw new TypeError("The element or ID supplied is not valid. (videojs)");
|
||||
if (!isEl(el)) throw TypeError("The element or ID supplied is not valid. (videojs)");
|
||||
return el.ownerDocument.defaultView && el.ownerDocument.body.contains(el) || log$1.warn("The element supplied is not included in the DOM"), options = options || {}, hooks("beforesetup").forEach(function(hookFunction) {
|
||||
var opts = hookFunction(el, mergeOptions$3(options));
|
||||
if (!isObject(opts) || Array.isArray(opts)) {
|
||||
@ -6923,7 +6922,7 @@
|
||||
return update && lastDuration ? 1000 * lastDuration : 500 * (media.partTargetDuration || media.targetDuration || 10);
|
||||
}, PlaylistLoader1 = function(_EventTarget) {
|
||||
function PlaylistLoader(src, vhs, options) {
|
||||
if (void 0 === options && (options = {}), _this = _EventTarget.call(this) || this, !src) throw new Error("A non-empty playlist URL or object is required");
|
||||
if (void 0 === options && (options = {}), _this = _EventTarget.call(this) || this, !src) throw Error("A non-empty playlist URL or object is required");
|
||||
_this.logger_ = logger("PlaylistLoader");
|
||||
var _this, _options = options, _options$withCredenti = _options.withCredentials, _options$handleManife = _options.handleManifestRedirects;
|
||||
_this.src = src, _this.vhs_ = vhs, _this.withCredentials = void 0 !== _options$withCredenti && _options$withCredenti, _this.handleManifestRedirects = void 0 !== _options$handleManife && _options$handleManife;
|
||||
@ -6999,9 +6998,9 @@
|
||||
}, _proto.media = function(playlist, shouldDelay) {
|
||||
var _this4 = this;
|
||||
if (!playlist) return this.media_;
|
||||
if ("HAVE_NOTHING" === this.state) throw new Error("Cannot switch media playlist from " + this.state);
|
||||
if ("HAVE_NOTHING" === this.state) throw Error("Cannot switch media playlist from " + this.state);
|
||||
if ("string" == typeof playlist) {
|
||||
if (!this.master.playlists[playlist]) throw new Error("Unknown playlist URI: " + playlist);
|
||||
if (!this.master.playlists[playlist]) throw Error("Unknown playlist URI: " + playlist);
|
||||
playlist = this.master.playlists[playlist];
|
||||
}
|
||||
if (global_window__WEBPACK_IMPORTED_MODULE_0___default().clearTimeout(this.finalRenditionTimeout), shouldDelay) {
|
||||
@ -7103,7 +7102,7 @@
|
||||
}, PlaylistLoader;
|
||||
}(EventTarget$1), videojsXHR = videojs.xhr, mergeOptions$1 = videojs.mergeOptions, callbackWrapper = function(request, error, response, callback) {
|
||||
var reqResponse = "arraybuffer" === request.responseType ? request.response : request.responseText;
|
||||
error || !reqResponse || (request.responseTime = Date.now(), request.roundTripTime = request.responseTime - request.requestTime, request.bytesReceived = reqResponse.byteLength || reqResponse.length, request.bandwidth || (request.bandwidth = Math.floor(request.bytesReceived / request.roundTripTime * 8000))), response.headers && (request.responseHeaders = response.headers), error && "ETIMEDOUT" === error.code && (request.timedout = !0), error || request.aborted || 200 === response.statusCode || 206 === response.statusCode || 0 === response.statusCode || (error = new Error("XHR Failed with a response of: " + (request && (reqResponse || request.responseText)))), callback(error, request);
|
||||
error || !reqResponse || (request.responseTime = Date.now(), request.roundTripTime = request.responseTime - request.requestTime, request.bytesReceived = reqResponse.byteLength || reqResponse.length, request.bandwidth || (request.bandwidth = Math.floor(request.bytesReceived / request.roundTripTime * 8000))), response.headers && (request.responseHeaders = response.headers), error && "ETIMEDOUT" === error.code && (request.timedout = !0), error || request.aborted || 200 === response.statusCode || 206 === response.statusCode || 0 === response.statusCode || (error = Error("XHR Failed with a response of: " + (request && (reqResponse || request.responseText)))), callback(error, request);
|
||||
}, xhrFactory = function() {
|
||||
var xhr = function XhrFunction(options, callback) {
|
||||
options = mergeOptions$1({
|
||||
@ -7222,7 +7221,7 @@
|
||||
return !0;
|
||||
}, getProgramTime = function(_ref) {
|
||||
var playlist = _ref.playlist, _ref$time = _ref.time, time = void 0 === _ref$time ? void 0 : _ref$time, callback = _ref.callback;
|
||||
if (!callback) throw new Error("getProgramTime: callback must be provided");
|
||||
if (!callback) throw Error("getProgramTime: callback must be provided");
|
||||
if (!playlist || void 0 === time) return callback({
|
||||
message: "getProgramTime: playlist and time must be provided"
|
||||
});
|
||||
@ -7240,7 +7239,7 @@
|
||||
return programTime && (programTimeObject.programDateTime = programTime.toISOString()), callback(null, programTimeObject);
|
||||
}, seekToProgramTime1 = function seekToProgramTime(_ref2) {
|
||||
var programTime = _ref2.programTime, playlist = _ref2.playlist, _ref2$retryCount = _ref2.retryCount, retryCount = void 0 === _ref2$retryCount ? 2 : _ref2$retryCount, seekTo = _ref2.seekTo, _ref2$pauseAfterSeek = _ref2.pauseAfterSeek, pauseAfterSeek = void 0 === _ref2$pauseAfterSeek || _ref2$pauseAfterSeek, tech = _ref2.tech, callback = _ref2.callback;
|
||||
if (!callback) throw new Error("seekToProgramTime: callback must be provided");
|
||||
if (!callback) throw Error("seekToProgramTime: callback must be provided");
|
||||
if (void 0 === programTime || !playlist || !seekTo) return callback({
|
||||
message: "seekToProgramTime: programTime, seekTo and playlist must be provided"
|
||||
});
|
||||
@ -7360,7 +7359,7 @@
|
||||
function DashPlaylistLoader(srcUrlOrPlaylist, vhs, options, masterPlaylistLoader) {
|
||||
void 0 === options && (options = {}), (_this = _EventTarget.call(this) || this).masterPlaylistLoader_ = masterPlaylistLoader || (0, _babel_runtime_helpers_assertThisInitialized__WEBPACK_IMPORTED_MODULE_17__.Z)(_this), masterPlaylistLoader || (_this.isMaster_ = !0);
|
||||
var _this, _options = options, _options$withCredenti = _options.withCredentials, _options$handleManife = _options.handleManifestRedirects;
|
||||
if (_this.vhs_ = vhs, _this.withCredentials = void 0 !== _options$withCredenti && _options$withCredenti, _this.handleManifestRedirects = void 0 !== _options$handleManife && _options$handleManife, !srcUrlOrPlaylist) throw new Error("A non-empty playlist URL or object is required");
|
||||
if (_this.vhs_ = vhs, _this.withCredentials = void 0 !== _options$withCredenti && _options$withCredenti, _this.handleManifestRedirects = void 0 !== _options$handleManife && _options$handleManife, !srcUrlOrPlaylist) throw Error("A non-empty playlist URL or object is required");
|
||||
return _this.on("minimumUpdatePeriod", function() {
|
||||
_this.refreshXml_();
|
||||
}), _this.on("mediaupdatetimeout", function() {
|
||||
@ -7436,10 +7435,10 @@
|
||||
}, _proto.media = function(playlist) {
|
||||
var _this3 = this;
|
||||
if (!playlist) return this.media_;
|
||||
if ("HAVE_NOTHING" === this.state) throw new Error("Cannot switch media playlist from " + this.state);
|
||||
if ("HAVE_NOTHING" === this.state) throw Error("Cannot switch media playlist from " + this.state);
|
||||
var startingState = this.state;
|
||||
if ("string" == typeof playlist) {
|
||||
if (!this.masterPlaylistLoader_.master.playlists[playlist]) throw new Error("Unknown playlist URI: " + playlist);
|
||||
if (!this.masterPlaylistLoader_.master.playlists[playlist]) throw Error("Unknown playlist URI: " + playlist);
|
||||
playlist = this.masterPlaylistLoader_.master.playlists[playlist];
|
||||
}
|
||||
var mediaChange = !this.media_ || playlist.id !== this.media_.id;
|
||||
@ -7553,7 +7552,7 @@
|
||||
});
|
||||
}, _proto.refreshMedia_ = function(mediaID) {
|
||||
var _this9 = this;
|
||||
if (!mediaID) throw new Error("refreshMedia_ must take a media id");
|
||||
if (!mediaID) throw Error("refreshMedia_ must take a media id");
|
||||
this.media_ && this.isMaster_ && this.handleMaster_();
|
||||
var playlists = this.masterPlaylistLoader_.master.playlists, mediaChanged = !this.media_ || this.media_ !== playlists[mediaID];
|
||||
mediaChanged ? this.media_ = playlists[mediaID] : this.trigger("playlistunchanged"), this.mediaUpdateTimeout || _this9.media().endList || (_this9.mediaUpdateTimeout = global_window__WEBPACK_IMPORTED_MODULE_0___default().setTimeout(function() {
|
||||
@ -9644,7 +9643,7 @@
|
||||
return 8 * workingBytesAvailable + workingBitsAvailable;
|
||||
}, this.loadWord = function() {
|
||||
var position = workingData.byteLength - workingBytesAvailable, workingBytes = new Uint8Array(4), availableBytes = Math.min(4, workingBytesAvailable);
|
||||
if (0 === availableBytes) throw new Error("no bytes available");
|
||||
if (0 === availableBytes) throw Error("no bytes available");
|
||||
workingBytes.set(workingData.subarray(position, position + availableBytes)), workingWord = new DataView(workingBytes.buffer).getUint32(0), workingBitsAvailable = 8 * availableBytes, workingBytesAvailable -= availableBytes;
|
||||
}, this.skipBits = function(count) {
|
||||
var skipBytes;
|
||||
@ -11845,9 +11844,9 @@
|
||||
}, SegmentLoader1 = function(_videojs$EventTarget) {
|
||||
function SegmentLoader(settings, options) {
|
||||
var _this;
|
||||
if (_this = _videojs$EventTarget.call(this) || this, !settings) throw new TypeError("Initialization settings are required");
|
||||
if ("function" != typeof settings.currentTime) throw new TypeError("No currentTime getter specified");
|
||||
if (!settings.mediaSource) throw new TypeError("No MediaSource specified");
|
||||
if (_this = _videojs$EventTarget.call(this) || this, !settings) throw TypeError("Initialization settings are required");
|
||||
if ("function" != typeof settings.currentTime) throw TypeError("No currentTime getter specified");
|
||||
if (!settings.mediaSource) throw TypeError("No MediaSource specified");
|
||||
return _this.bandwidth = settings.bandwidth, _this.throughput = {
|
||||
rate: 0,
|
||||
count: 0
|
||||
@ -12782,7 +12781,7 @@
|
||||
});
|
||||
}, _proto.addOrChangeSourceBuffers = function(codecs) {
|
||||
var _this2 = this;
|
||||
if (!codecs || "object" != typeof codecs || 0 === Object.keys(codecs).length) throw new Error("Cannot addOrChangeSourceBuffers to undefined codecs");
|
||||
if (!codecs || "object" != typeof codecs || 0 === Object.keys(codecs).length) throw Error("Cannot addOrChangeSourceBuffers to undefined codecs");
|
||||
Object.keys(codecs).forEach(function(type) {
|
||||
var codec = codecs[type];
|
||||
if (!_this2.hasCreatedSourceBuffers()) return _this2.addSourceBuffer(type, codec);
|
||||
@ -13317,7 +13316,7 @@
|
||||
}, fn(module, module.exports), module.exports;
|
||||
}
|
||||
function commonjsRequire() {
|
||||
throw new Error("Dynamic requires are not currently supported by @rollup/plugin-commonjs");
|
||||
throw Error("Dynamic requires are not currently supported by @rollup/plugin-commonjs");
|
||||
}
|
||||
var createClass = createCommonjsModule(function(module) {
|
||||
function _defineProperties(target, props) {
|
||||
@ -13404,7 +13403,7 @@
|
||||
],
|
||||
];
|
||||
var i, j, tmp, sbox = this._tables[0][4], decTable = this._tables[1], keyLen = key.length, rcon = 1;
|
||||
if (4 !== keyLen && 6 !== keyLen && 8 !== keyLen) throw new Error("Invalid aes key size");
|
||||
if (4 !== keyLen && 6 !== keyLen && 8 !== keyLen) throw Error("Invalid aes key size");
|
||||
var encKey = key.slice(0), decKey = [];
|
||||
for(this._key = [
|
||||
encKey,
|
||||
@ -13799,7 +13798,7 @@
|
||||
function MasterPlaylistController(options) {
|
||||
_this = _videojs$EventTarget.call(this) || this;
|
||||
var _this, src = options.src, handleManifestRedirects = options.handleManifestRedirects, withCredentials = options.withCredentials, tech = options.tech, bandwidth = options.bandwidth, externVhs = options.externVhs, useCueTags = options.useCueTags, blacklistDuration = options.blacklistDuration, enableLowInitialPlaylist = options.enableLowInitialPlaylist, sourceType = options.sourceType, cacheEncryptionKeys = options.cacheEncryptionKeys, experimentalBufferBasedABR = options.experimentalBufferBasedABR, experimentalLeastPixelDiffSelector = options.experimentalLeastPixelDiffSelector, captionServices = options.captionServices;
|
||||
if (!src) throw new Error("A non-empty playlist URL or JSON manifest string is required");
|
||||
if (!src) throw Error("A non-empty playlist URL or JSON manifest string is required");
|
||||
var maxPlaylistRetries = options.maxPlaylistRetries;
|
||||
null == maxPlaylistRetries && (maxPlaylistRetries = 1 / 0), Vhs$1 = externVhs, _this.experimentalBufferBasedABR = Boolean(experimentalBufferBasedABR), _this.experimentalLeastPixelDiffSelector = Boolean(experimentalLeastPixelDiffSelector), _this.withCredentials = withCredentials, _this.tech_ = tech, _this.vhs_ = tech.vhs, _this.sourceType_ = sourceType, _this.useCueTags_ = useCueTags, _this.blacklistDuration = blacklistDuration, _this.maxPlaylistRetries = maxPlaylistRetries, _this.enableLowInitialPlaylist = enableLowInitialPlaylist, _this.useCueTags_ && (_this.cueTagsTrack_ = _this.tech_.addTextTrack("metadata", "ad-cues"), _this.cueTagsTrack_.inBandMetadataTrackDispatchType = ""), _this.requestOptions_ = {
|
||||
withCredentials: withCredentials,
|
||||
@ -14661,7 +14660,7 @@
|
||||
lastBandwidthSelector: lastBandwidthSelector,
|
||||
movingAverageBandwidthSelector: function(decay) {
|
||||
var average = -1, lastSystemBandwidth = -1;
|
||||
if (decay < 0 || decay > 1) throw new Error("Moving average bandwidth decay must be between 0 and 1.");
|
||||
if (decay < 0 || decay > 1) throw Error("Moving average bandwidth decay must be between 0 and 1.");
|
||||
return function() {
|
||||
var pixelRatio = this.useDevicePixelRatio && global_window__WEBPACK_IMPORTED_MODULE_0___default().devicePixelRatio || 1;
|
||||
return average < 0 && (average = this.systemBandwidth, lastSystemBandwidth = this.systemBandwidth), this.systemBandwidth > 0 && this.systemBandwidth !== lastSystemBandwidth && (average = decay * this.systemBandwidth + (1 - decay) * average, lastSystemBandwidth = this.systemBandwidth), simpleSelector(this.playlists.master, average, parseInt(safeGetComputedStyle(this.tech_.el(), "width"), 10) * pixelRatio, parseInt(safeGetComputedStyle(this.tech_.el(), "height"), 10) * pixelRatio, this.limitRenditionByPlayerDimensions, this.masterPlaylistController_);
|
||||
@ -14816,7 +14815,7 @@
|
||||
}), _this.player_ = _player;
|
||||
}
|
||||
if (_this.tech_ = tech, _this.source_ = source, _this.stats = {}, _this.ignoreNextSeekingEvent_ = !1, _this.setOptions_(), _this.options_.overrideNative && tech.overrideNativeAudioTracks && tech.overrideNativeVideoTracks) tech.overrideNativeAudioTracks(!0), tech.overrideNativeVideoTracks(!0);
|
||||
else if (_this.options_.overrideNative && (tech.featuresNativeVideoTracks || tech.featuresNativeAudioTracks)) throw new Error("Overriding native HLS requires emulated tracks. See https://git.io/vMpjB");
|
||||
else if (_this.options_.overrideNative && (tech.featuresNativeVideoTracks || tech.featuresNativeAudioTracks)) throw Error("Overriding native HLS requires emulated tracks. See https://git.io/vMpjB");
|
||||
return _this.on(global_document__WEBPACK_IMPORTED_MODULE_1___default(), [
|
||||
"fullscreenchange",
|
||||
"webkitfullscreenchange",
|
||||
|
@ -91,7 +91,7 @@
|
||||
for(var view = new Uint8Array(string.length), i = 0; i < string.length; i++)view[i] = string.charCodeAt(i);
|
||||
return view;
|
||||
}, concatTypedArrays = function() {
|
||||
for(var _len = arguments.length, buffers = new Array(_len), _key = 0; _key < _len; _key++)buffers[_key] = arguments[_key];
|
||||
for(var _len = arguments.length, buffers = Array(_len), _key = 0; _key < _len; _key++)buffers[_key] = arguments[_key];
|
||||
if ((buffers = buffers.filter(function(b) {
|
||||
return b && (b.byteLength || b.length) && "string" != typeof b;
|
||||
})).length <= 1) return toUint8(buffers[0]);
|
||||
@ -843,12 +843,12 @@
|
||||
return _createXHR(options = initParams(uri, options, callback));
|
||||
}
|
||||
function _createXHR(options) {
|
||||
if (void 0 === options.callback) throw new Error("callback argument missing");
|
||||
if (void 0 === options.callback) throw Error("callback argument missing");
|
||||
var key, aborted, timeoutTimer, called = !1, callback = function(err, response, body) {
|
||||
called || (called = !0, options.callback(err, response, body));
|
||||
};
|
||||
function errorFunc(evt) {
|
||||
return clearTimeout(timeoutTimer), evt instanceof Error || (evt = new Error("" + (evt || "Unknown XMLHttpRequest Error"))), evt.statusCode = 0, callback(evt, failureResponse);
|
||||
return clearTimeout(timeoutTimer), evt instanceof Error || (evt = Error("" + (evt || "Unknown XMLHttpRequest Error"))), evt.statusCode = 0, callback(evt, failureResponse);
|
||||
}
|
||||
function loadFunc() {
|
||||
if (!aborted) {
|
||||
@ -867,7 +867,7 @@
|
||||
headers: {},
|
||||
url: uri,
|
||||
rawRequest: xhr
|
||||
}, xhr.getAllResponseHeaders && (response.headers = parseHeaders(xhr.getAllResponseHeaders()))) : err = new Error("Internal XMLHttpRequest Error"), callback(err, response, response.body);
|
||||
}, xhr.getAllResponseHeaders && (response.headers = parseHeaders(xhr.getAllResponseHeaders()))) : err = Error("Internal XMLHttpRequest Error"), callback(err, response, response.body);
|
||||
}
|
||||
}
|
||||
var xhr = options.xhr || null;
|
||||
@ -887,14 +887,14 @@
|
||||
}, xhr.ontimeout = errorFunc, xhr.open(method, uri, !sync, options.username, options.password), sync || (xhr.withCredentials = !!options.withCredentials), !sync && options.timeout > 0 && (timeoutTimer = setTimeout(function() {
|
||||
if (!aborted) {
|
||||
aborted = !0, xhr.abort("timeout");
|
||||
var e = new Error("XMLHttpRequest timeout");
|
||||
var e = Error("XMLHttpRequest timeout");
|
||||
e.code = "ETIMEDOUT", errorFunc(e);
|
||||
}
|
||||
}, options.timeout)), xhr.setRequestHeader) for(key in headers)headers.hasOwnProperty(key) && xhr.setRequestHeader(key, headers[key]);
|
||||
else if (options.headers && !function(obj) {
|
||||
for(var i in obj)if (obj.hasOwnProperty(i)) return !1;
|
||||
return !0;
|
||||
}(options.headers)) throw new Error("Headers cannot be set on an XDomainRequest object");
|
||||
}(options.headers)) throw Error("Headers cannot be set on an XDomainRequest object");
|
||||
return "responseType" in options && (xhr.responseType = options.responseType), "beforeSend" in options && "function" == typeof options.beforeSend && options.beforeSend(xhr), xhr.send(body1 || null), xhr;
|
||||
}
|
||||
function getXml(xhr) {
|
||||
@ -1120,7 +1120,7 @@
|
||||
var doc = el.ownerDocument;
|
||||
doc && (_onRemoveAttribute(doc, el, attr), attr.ownerElement = null);
|
||||
}
|
||||
} else throw DOMException(NOT_FOUND_ERR, new Error(el.tagName + "@" + attr));
|
||||
} else throw DOMException(NOT_FOUND_ERR, Error(el.tagName + "@" + attr));
|
||||
}
|
||||
function DOMImplementation() {}
|
||||
function Node() {}
|
||||
@ -1640,7 +1640,7 @@
|
||||
this.replaceData(offset, 0, text);
|
||||
},
|
||||
appendChild: function(newChild) {
|
||||
throw new Error(ExceptionMessage[HIERARCHY_REQUEST_ERR]);
|
||||
throw Error(ExceptionMessage[HIERARCHY_REQUEST_ERR]);
|
||||
},
|
||||
deleteData: function(offset, count) {
|
||||
this.replaceData(offset, count, "");
|
||||
@ -1962,7 +1962,7 @@
|
||||
dom.DOMImplementation, dom.XMLSerializer, exports.DOMParser = __webpack_require__(6129).DOMParser;
|
||||
},
|
||||
6925: function(__unused_webpack_module, exports, __webpack_require__) {
|
||||
var NAMESPACE = __webpack_require__(2167).NAMESPACE, nameStartChar = /[A-Z_a-z\xC0-\xD6\xD8-\xF6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD]/, nameChar = new RegExp("[\\-\\.0-9" + nameStartChar.source.slice(1, -1) + "\\u00B7\\u0300-\\u036F\\u203F-\\u2040]"), tagNamePattern = new RegExp("^" + nameStartChar.source + nameChar.source + "*(?::" + nameStartChar.source + nameChar.source + "*)?$");
|
||||
var NAMESPACE = __webpack_require__(2167).NAMESPACE, nameStartChar = /[A-Z_a-z\xC0-\xD6\xD8-\xF6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD]/, nameChar = RegExp("[\\-\\.0-9" + nameStartChar.source.slice(1, -1) + "\\u00B7\\u0300-\\u036F\\u203F-\\u2040]"), tagNamePattern = RegExp("^" + nameStartChar.source + nameChar.source + "*(?::" + nameStartChar.source + nameChar.source + "*)?$");
|
||||
function ParseError(message, locator) {
|
||||
this.message = message, this.locator = locator, Error.captureStackTrace && Error.captureStackTrace(this, ParseError);
|
||||
}
|
||||
@ -1980,15 +1980,15 @@
|
||||
case "=":
|
||||
if (1 === s) attrName = source.slice(start, p), s = 3;
|
||||
else if (2 === s) s = 3;
|
||||
else throw new Error("attribute equal must after attrName");
|
||||
else throw Error("attribute equal must after attrName");
|
||||
break;
|
||||
case "'":
|
||||
case '"':
|
||||
if (3 === s || 1 === s) {
|
||||
if (1 === s && (errorHandler.warning('attribute value must after "="'), attrName = source.slice(start, p)), start = p + 1, (p = source.indexOf(c, start)) > 0) addAttribute(attrName, value1 = source.slice(start, p).replace(/&#?\w+;/g, entityReplacer), start - 1), s = 5;
|
||||
else throw new Error("attribute value no end '" + c + "' match");
|
||||
else throw Error("attribute value no end '" + c + "' match");
|
||||
} else if (4 == s) addAttribute(attrName, value1 = source.slice(start, p).replace(/&#?\w+;/g, entityReplacer), start), errorHandler.warning('attribute "' + attrName + '" missed start quot(' + c + ")!!"), start = p + 1, s = 5;
|
||||
else throw new Error('attribute value must after "="');
|
||||
else throw Error('attribute value must after "="');
|
||||
break;
|
||||
case "/":
|
||||
switch(s){
|
||||
@ -2003,7 +2003,7 @@
|
||||
case 2:
|
||||
break;
|
||||
default:
|
||||
throw new Error("attribute invalid close char('/')");
|
||||
throw Error("attribute invalid close char('/')");
|
||||
}
|
||||
break;
|
||||
case "":
|
||||
@ -2023,7 +2023,7 @@
|
||||
2 === s && (value1 = attrName), 4 == s ? (errorHandler.warning('attribute "' + value1 + '" missed quot(")!'), addAttribute(attrName, value1.replace(/&#?\w+;/g, entityReplacer), start)) : (NAMESPACE.isHTML(currentNSMap[""]) && value1.match(/^(?:disabled|checked|selected)$/i) || errorHandler.warning('attribute "' + value1 + '" missed value!! "' + value1 + '" instead!!'), addAttribute(value1, value1, start));
|
||||
break;
|
||||
case 3:
|
||||
throw new Error("attribute value missed!!");
|
||||
throw Error("attribute value missed!!");
|
||||
}
|
||||
return p;
|
||||
case "\u0080":
|
||||
@ -2055,7 +2055,7 @@
|
||||
s = 4, start = p;
|
||||
break;
|
||||
case 7:
|
||||
throw new Error("elements closed character '/' and '>' must be connected to");
|
||||
throw Error("elements closed character '/' and '>' must be connected to");
|
||||
}
|
||||
}
|
||||
p++;
|
||||
@ -2129,7 +2129,7 @@
|
||||
var match, buf = [], reg = /'[^']+'|"[^"]+"|[^\s<>\/=]+=?|(\/?\s*>|<)/g;
|
||||
for(reg.lastIndex = start, reg.exec(source); match = reg.exec(source);)if (buf.push(match), match[1]) return buf;
|
||||
}
|
||||
ParseError.prototype = new Error(), ParseError.prototype.name = ParseError.name, XMLReader.prototype = {
|
||||
ParseError.prototype = Error(), ParseError.prototype.name = ParseError.name, XMLReader.prototype = {
|
||||
parse: function(source1, defaultNSMap, entityMap1) {
|
||||
var domBuilder2 = this.domBuilder;
|
||||
domBuilder2.startDocument(), _copy(defaultNSMap, defaultNSMap = {}), function(source, defaultNSMapCopy, entityMap, domBuilder, errorHandler) {
|
||||
@ -2204,11 +2204,11 @@
|
||||
}
|
||||
}, ElementAttributes.prototype = {
|
||||
setTagName: function(tagName) {
|
||||
if (!tagNamePattern.test(tagName)) throw new Error("invalid tagName:" + tagName);
|
||||
if (!tagNamePattern.test(tagName)) throw Error("invalid tagName:" + tagName);
|
||||
this.tagName = tagName;
|
||||
},
|
||||
addValue: function(qName, value, offset) {
|
||||
if (!tagNamePattern.test(qName)) throw new Error("invalid attribute:" + qName);
|
||||
if (!tagNamePattern.test(qName)) throw Error("invalid attribute:" + qName);
|
||||
this.attributeNames[qName] = this.length, this[this.length++] = {
|
||||
qName: qName,
|
||||
value: value,
|
||||
@ -2392,7 +2392,7 @@
|
||||
var match = /([0-9.]*)?@?([0-9.]*)?/.exec(byterangeString || ""), result = {};
|
||||
return match[1] && (result.length = parseInt(match[1], 10)), match[2] && (result.offset = parseInt(match[2], 10)), result;
|
||||
}, attributeSeparator = function() {
|
||||
return new RegExp('(?:^|,)((?:[^=]*)=(?:"[^"]*"|[^,]*))');
|
||||
return RegExp('(?:^|,)((?:[^=]*)=(?:"[^"]*"|[^,]*))');
|
||||
}, parseAttributes = function(attributes) {
|
||||
for(var attr, attrs = attributes.split(attributeSeparator()), result = {}, i = attrs.length; i--;)"" !== attrs[i] && ((attr = /([^=]*)=(.*)/.exec(attrs[i]).slice(1))[0] = attr[0].replace(/^\s+|\s+$/g, ""), attr[1] = attr[1].replace(/^\s+|\s+$/g, ""), attr[1] = attr[1].replace(/^['"](.*)['"]$/g, "$1"), result[attr[0]] = attr[1]);
|
||||
return result;
|
||||
@ -3013,7 +3013,7 @@
|
||||
var _videojs_vhs_utils_es_resolve_url__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(779), global_window__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(8908), global_window__WEBPACK_IMPORTED_MODULE_1___default = __webpack_require__.n(global_window__WEBPACK_IMPORTED_MODULE_1__), _videojs_vhs_utils_es_decode_b64_to_uint8_array__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(6722), _xmldom_xmldom__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(3969), isObject = function(obj) {
|
||||
return !!obj && "object" == typeof obj;
|
||||
}, merge1 = function merge() {
|
||||
for(var _len = arguments.length, objects = new Array(_len), _key = 0; _key < _len; _key++)objects[_key] = arguments[_key];
|
||||
for(var _len = arguments.length, objects = Array(_len), _key = 0; _key < _len; _key++)objects[_key] = arguments[_key];
|
||||
return objects.reduce(function(result, source) {
|
||||
return "object" != typeof source || Object.keys(source).forEach(function(key) {
|
||||
Array.isArray(result[key]) && Array.isArray(source[key]) ? result[key] = result[key].concat(source[key]) : isObject(result[key]) && isObject(source[key]) ? result[key] = merge(result[key], source[key]) : result[key] = source[key];
|
||||
@ -3094,7 +3094,7 @@
|
||||
return segments;
|
||||
}, segmentsFromBase = function(attributes) {
|
||||
var baseUrl = attributes.baseUrl, _attributes$initializ = attributes.initialization, initialization = void 0 === _attributes$initializ ? {} : _attributes$initializ, sourceDuration = attributes.sourceDuration, _attributes$indexRang = attributes.indexRange, duration = attributes.duration;
|
||||
if (!baseUrl) throw new Error(errors.NO_BASE_URL);
|
||||
if (!baseUrl) throw Error(errors.NO_BASE_URL);
|
||||
var initSegment = urlTypeToSegment({
|
||||
baseUrl: baseUrl,
|
||||
source: initialization.sourceURL,
|
||||
@ -3310,7 +3310,7 @@
|
||||
if ("$$" === match) return "$";
|
||||
if (void 0 === values1[identifier]) return match;
|
||||
var value = "" + values1[identifier];
|
||||
return "RepresentationID" === identifier ? value : (width = format ? parseInt(width, 10) : 1, value.length >= width) ? value : "" + new Array(width - value.length + 1).join("0") + value;
|
||||
return "RepresentationID" === identifier ? value : (width = format ? parseInt(width, 10) : 1, value.length >= width) ? value : "" + Array(width - value.length + 1).join("0") + value;
|
||||
}));
|
||||
}, segmentsFromTemplate = function(attributes, segmentTimeline) {
|
||||
var attributes2, segmentTimeline1, templateValues = {
|
||||
@ -3357,7 +3357,7 @@
|
||||
return segment.map = initSegment, segment;
|
||||
}, segmentsFromList = function(attributes, segmentTimeline) {
|
||||
var segmentTimeInfo, duration = attributes.duration, _attributes$segmentUr = attributes.segmentUrls, periodStart = attributes.periodStart;
|
||||
if (!duration && !segmentTimeline || duration && segmentTimeline) throw new Error(errors.SEGMENT_TIME_UNSPECIFIED);
|
||||
if (!duration && !segmentTimeline || duration && segmentTimeline) throw Error(errors.SEGMENT_TIME_UNSPECIFIED);
|
||||
var segmentUrlMap = (void 0 === _attributes$segmentUr ? [] : _attributes$segmentUr).map(function(segmentUrlObject) {
|
||||
return SegmentURLToSegmentObject(attributes, segmentUrlObject);
|
||||
});
|
||||
@ -3526,7 +3526,7 @@
|
||||
}, inheritAttributes = function(mpd, options) {
|
||||
void 0 === options && (options = {});
|
||||
var _options = options, _options$manifestUri = _options.manifestUri, _options$NOW = _options.NOW, NOW = void 0 === _options$NOW ? Date.now() : _options$NOW, _options$clientOffset = _options.clientOffset, periodNodes = findChildren(mpd, "Period");
|
||||
if (!periodNodes.length) throw new Error(errors.INVALID_NUMBER_OF_PERIOD);
|
||||
if (!periodNodes.length) throw Error(errors.INVALID_NUMBER_OF_PERIOD);
|
||||
var locations = findChildren(mpd, "Location"), mpdAttributes = parseAttributes(mpd), mpdBaseUrls = buildBaseUrls([
|
||||
void 0 === _options$manifestUri ? "" : _options$manifestUri
|
||||
], findChildren(mpd, "BaseURL"));
|
||||
@ -3595,12 +3595,12 @@
|
||||
})))
|
||||
};
|
||||
}, stringToMpdXml = function(manifestString) {
|
||||
if ("" === manifestString) throw new Error(errors.DASH_EMPTY_MANIFEST);
|
||||
if ("" === manifestString) throw Error(errors.DASH_EMPTY_MANIFEST);
|
||||
var xml, mpd, parser = new _xmldom_xmldom__WEBPACK_IMPORTED_MODULE_3__.DOMParser();
|
||||
try {
|
||||
mpd = (xml = parser.parseFromString(manifestString, "application/xml")) && "MPD" === xml.documentElement.tagName ? xml.documentElement : null;
|
||||
} catch (e) {}
|
||||
if (!mpd || mpd && mpd.getElementsByTagName("parsererror").length > 0) throw new Error(errors.DASH_INVALID_XML);
|
||||
if (!mpd || mpd && mpd.getElementsByTagName("parsererror").length > 0) throw Error(errors.DASH_INVALID_XML);
|
||||
return mpd;
|
||||
}, parseUTCTimingScheme = function(mpd) {
|
||||
var UTCTimingNode = findChildren(mpd, "UTCTiming")[0];
|
||||
@ -3622,7 +3622,7 @@
|
||||
attributes.method = "DIRECT", attributes.value = Date.parse(attributes.value);
|
||||
break;
|
||||
default:
|
||||
throw new Error(errors.UNSUPPORTED_UTC_TIMING_SCHEME);
|
||||
throw Error(errors.UNSUPPORTED_UTC_TIMING_SCHEME);
|
||||
}
|
||||
return attributes;
|
||||
}, parse = function(manifestString, options) {
|
||||
@ -3793,14 +3793,14 @@
|
||||
if (opts = opts || {}, baseURL = baseURL.trim(), !(relativeURL = relativeURL.trim())) {
|
||||
if (!opts.alwaysNormalize) return baseURL;
|
||||
var basePartsForNormalise = URLToolkit.parseURL(baseURL);
|
||||
if (!basePartsForNormalise) throw new Error("Error trying to parse base URL.");
|
||||
if (!basePartsForNormalise) throw Error("Error trying to parse base URL.");
|
||||
return basePartsForNormalise.path = URLToolkit.normalizePath(basePartsForNormalise.path), URLToolkit.buildURLFromParts(basePartsForNormalise);
|
||||
}
|
||||
var relativeParts = URLToolkit.parseURL(relativeURL);
|
||||
if (!relativeParts) throw new Error("Error trying to parse relative URL.");
|
||||
if (!relativeParts) throw Error("Error trying to parse relative URL.");
|
||||
if (relativeParts.scheme) return opts.alwaysNormalize ? (relativeParts.path = URLToolkit.normalizePath(relativeParts.path), URLToolkit.buildURLFromParts(relativeParts)) : relativeURL;
|
||||
var baseParts = URLToolkit.parseURL(baseURL);
|
||||
if (!baseParts) throw new Error("Error trying to parse base URL.");
|
||||
if (!baseParts) throw Error("Error trying to parse base URL.");
|
||||
if (!baseParts.netLoc && baseParts.path && "/" !== baseParts.path[0]) {
|
||||
var pathParts = FIRST_SEGMENT_REGEX.exec(baseParts.path);
|
||||
baseParts.netLoc = pathParts[1], baseParts.path = pathParts[2];
|
||||
@ -3860,7 +3860,7 @@
|
||||
var document = __webpack_require__(9144), _objCreate = Object.create || function() {
|
||||
function F() {}
|
||||
return function(o) {
|
||||
if (1 !== arguments.length) throw new Error("Object.create shim only accepts one parameter.");
|
||||
if (1 !== arguments.length) throw Error("Object.create shim only accepts one parameter.");
|
||||
return F.prototype = o, new F();
|
||||
};
|
||||
}();
|
||||
@ -4725,7 +4725,7 @@
|
||||
return {
|
||||
decode: function(data) {
|
||||
if (!data) return "";
|
||||
if ("string" != typeof data) throw new Error("Error - expected string data.");
|
||||
if ("string" != typeof data) throw Error("Error - expected string data.");
|
||||
return decodeURIComponent(encodeURIComponent(data));
|
||||
}
|
||||
};
|
||||
@ -4932,7 +4932,7 @@
|
||||
return _startTime;
|
||||
},
|
||||
set: function(value) {
|
||||
if ("number" != typeof value) throw new TypeError("Start time must be set to a number.");
|
||||
if ("number" != typeof value) throw TypeError("Start time must be set to a number.");
|
||||
_startTime = value, this.hasBeenReset = !0;
|
||||
}
|
||||
},
|
||||
@ -4942,7 +4942,7 @@
|
||||
return _endTime;
|
||||
},
|
||||
set: function(value) {
|
||||
if ("number" != typeof value) throw new TypeError("End time must be set to a number.");
|
||||
if ("number" != typeof value) throw TypeError("End time must be set to a number.");
|
||||
_endTime = value, this.hasBeenReset = !0;
|
||||
}
|
||||
},
|
||||
@ -4971,7 +4971,7 @@
|
||||
},
|
||||
set: function(value) {
|
||||
var value2, setting = "string" == typeof (value2 = value) && !!directionSetting[value2.toLowerCase()] && value2.toLowerCase();
|
||||
if (!1 === setting) throw new SyntaxError("Vertical: an invalid or illegal direction string was specified.");
|
||||
if (!1 === setting) throw SyntaxError("Vertical: an invalid or illegal direction string was specified.");
|
||||
_vertical = setting, this.hasBeenReset = !0;
|
||||
}
|
||||
},
|
||||
@ -4990,7 +4990,7 @@
|
||||
return _line;
|
||||
},
|
||||
set: function(value) {
|
||||
if ("number" != typeof value && "auto" !== value) throw new SyntaxError("Line: an invalid number or illegal string was specified.");
|
||||
if ("number" != typeof value && "auto" !== value) throw SyntaxError("Line: an invalid number or illegal string was specified.");
|
||||
_line = value, this.hasBeenReset = !0;
|
||||
}
|
||||
},
|
||||
@ -5010,7 +5010,7 @@
|
||||
return _position;
|
||||
},
|
||||
set: function(value) {
|
||||
if (value < 0 || value > 100) throw new Error("Position must be between 0 and 100.");
|
||||
if (value < 0 || value > 100) throw Error("Position must be between 0 and 100.");
|
||||
_position = value, this.hasBeenReset = !0;
|
||||
}
|
||||
},
|
||||
@ -5030,7 +5030,7 @@
|
||||
return _size;
|
||||
},
|
||||
set: function(value) {
|
||||
if (value < 0 || value > 100) throw new Error("Size must be between 0 and 100.");
|
||||
if (value < 0 || value > 100) throw Error("Size must be between 0 and 100.");
|
||||
_size = value, this.hasBeenReset = !0;
|
||||
}
|
||||
},
|
||||
@ -5041,7 +5041,7 @@
|
||||
},
|
||||
set: function(value) {
|
||||
var setting = findAlignSetting(value);
|
||||
if (!setting) throw new SyntaxError("align: an invalid or illegal alignment string was specified.");
|
||||
if (!setting) throw SyntaxError("align: an invalid or illegal alignment string was specified.");
|
||||
_align = setting, this.hasBeenReset = !0;
|
||||
}
|
||||
}
|
||||
@ -5068,7 +5068,7 @@
|
||||
return _width;
|
||||
},
|
||||
set: function(value) {
|
||||
if (!isValidPercentValue(value)) throw new Error("Width must be between 0 and 100.");
|
||||
if (!isValidPercentValue(value)) throw Error("Width must be between 0 and 100.");
|
||||
_width = value;
|
||||
}
|
||||
},
|
||||
@ -5078,7 +5078,7 @@
|
||||
return _lines;
|
||||
},
|
||||
set: function(value) {
|
||||
if ("number" != typeof value) throw new TypeError("Lines must be set to a number.");
|
||||
if ("number" != typeof value) throw TypeError("Lines must be set to a number.");
|
||||
_lines = value;
|
||||
}
|
||||
},
|
||||
@ -5088,7 +5088,7 @@
|
||||
return _regionAnchorY;
|
||||
},
|
||||
set: function(value) {
|
||||
if (!isValidPercentValue(value)) throw new Error("RegionAnchorX must be between 0 and 100.");
|
||||
if (!isValidPercentValue(value)) throw Error("RegionAnchorX must be between 0 and 100.");
|
||||
_regionAnchorY = value;
|
||||
}
|
||||
},
|
||||
@ -5098,7 +5098,7 @@
|
||||
return _regionAnchorX;
|
||||
},
|
||||
set: function(value) {
|
||||
if (!isValidPercentValue(value)) throw new Error("RegionAnchorY must be between 0 and 100.");
|
||||
if (!isValidPercentValue(value)) throw Error("RegionAnchorY must be between 0 and 100.");
|
||||
_regionAnchorX = value;
|
||||
}
|
||||
},
|
||||
@ -5108,7 +5108,7 @@
|
||||
return _viewportAnchorY;
|
||||
},
|
||||
set: function(value) {
|
||||
if (!isValidPercentValue(value)) throw new Error("ViewportAnchorY must be between 0 and 100.");
|
||||
if (!isValidPercentValue(value)) throw Error("ViewportAnchorY must be between 0 and 100.");
|
||||
_viewportAnchorY = value;
|
||||
}
|
||||
},
|
||||
@ -5118,7 +5118,7 @@
|
||||
return _viewportAnchorX;
|
||||
},
|
||||
set: function(value) {
|
||||
if (!isValidPercentValue(value)) throw new Error("ViewportAnchorX must be between 0 and 100.");
|
||||
if (!isValidPercentValue(value)) throw Error("ViewportAnchorX must be between 0 and 100.");
|
||||
_viewportAnchorX = value;
|
||||
}
|
||||
},
|
||||
@ -5151,7 +5151,7 @@
|
||||
for(var lookup = [], revLookup = [], Arr = "undefined" != typeof Uint8Array ? Uint8Array : Array, code = "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/", i3 = 0, len1 = code.length; i3 < len1; ++i3)lookup[i3] = code[i3], revLookup[code.charCodeAt(i3)] = i3;
|
||||
function getLens(b64) {
|
||||
var len = b64.length;
|
||||
if (len % 4 > 0) throw new Error("Invalid string. Length must be a multiple of 4");
|
||||
if (len % 4 > 0) throw Error("Invalid string. Length must be a multiple of 4");
|
||||
var validLen = b64.indexOf("=");
|
||||
-1 === validLen && (validLen = len);
|
||||
var placeHoldersLen = validLen === len ? 0 : 4 - validLen % 4;
|
||||
@ -5173,13 +5173,13 @@
|
||||
"use strict";
|
||||
var base64 = __webpack_require__(4782), ieee754 = __webpack_require__(8898), customInspectSymbol = "function" == typeof Symbol && "function" == typeof Symbol.for ? Symbol.for("nodejs.util.inspect.custom") : null;
|
||||
function createBuffer(length) {
|
||||
if (length > 0x7fffffff) throw new RangeError('The value "' + length + '" is invalid for option "size"');
|
||||
if (length > 0x7fffffff) throw RangeError('The value "' + length + '" is invalid for option "size"');
|
||||
var buf = new Uint8Array(length);
|
||||
return Object.setPrototypeOf(buf, Buffer.prototype), buf;
|
||||
}
|
||||
function Buffer(arg, encodingOrOffset, length) {
|
||||
if ("number" == typeof arg) {
|
||||
if ("string" == typeof encodingOrOffset) throw new TypeError('The "string" argument must be of type string. Received type number');
|
||||
if ("string" == typeof encodingOrOffset) throw TypeError('The "string" argument must be of type string. Received type number');
|
||||
return allocUnsafe(arg);
|
||||
}
|
||||
return from(arg, encodingOrOffset, length);
|
||||
@ -5187,25 +5187,25 @@
|
||||
function from(value, encodingOrOffset, length) {
|
||||
if ("string" == typeof value) return fromString(value, encodingOrOffset);
|
||||
if (ArrayBuffer.isView(value)) return fromArrayLike(value);
|
||||
if (null == value) throw new TypeError("The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type " + typeof value);
|
||||
if (null == value) 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) || "undefined" != typeof SharedArrayBuffer && (isInstance(value, SharedArrayBuffer) || value && isInstance(value.buffer, SharedArrayBuffer))) return fromArrayBuffer(value, encodingOrOffset, length);
|
||||
if ("number" == typeof value) throw new TypeError('The "value" argument must not be of type number. Received type number');
|
||||
if ("number" == typeof value) throw TypeError('The "value" argument must not be of type number. Received type number');
|
||||
var valueOf = value.valueOf && value.valueOf();
|
||||
if (null != valueOf && valueOf !== value) return Buffer.from(valueOf, encodingOrOffset, length);
|
||||
var b = fromObject(value);
|
||||
if (b) return b;
|
||||
if ("undefined" != typeof Symbol && null != Symbol.toPrimitive && "function" == typeof value[Symbol.toPrimitive]) return Buffer.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);
|
||||
throw TypeError("The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type " + typeof value);
|
||||
}
|
||||
function assertSize(size) {
|
||||
if ("number" != typeof size) throw new TypeError('"size" argument must be of type number');
|
||||
if (size < 0) throw new RangeError('The value "' + size + '" is invalid for option "size"');
|
||||
if ("number" != typeof size) throw TypeError('"size" argument must be of type number');
|
||||
if (size < 0) throw RangeError('The value "' + size + '" is invalid for option "size"');
|
||||
}
|
||||
function allocUnsafe(size) {
|
||||
return assertSize(size), createBuffer(size < 0 ? 0 : 0 | checked(size));
|
||||
}
|
||||
function fromString(string, encoding) {
|
||||
if (("string" != typeof encoding || "" === encoding) && (encoding = "utf8"), !Buffer.isEncoding(encoding)) throw new TypeError("Unknown encoding: " + encoding);
|
||||
if (("string" != typeof encoding || "" === encoding) && (encoding = "utf8"), !Buffer.isEncoding(encoding)) throw TypeError("Unknown encoding: " + encoding);
|
||||
var length = 0 | byteLength1(string, encoding), buf = createBuffer(length), actual = buf.write(string, encoding);
|
||||
return actual !== length && (buf = buf.slice(0, actual)), buf;
|
||||
}
|
||||
@ -5215,8 +5215,8 @@
|
||||
}
|
||||
function fromArrayBuffer(array, byteOffset, length) {
|
||||
var buf;
|
||||
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');
|
||||
if (byteOffset < 0 || array.byteLength < byteOffset) throw RangeError('"offset" is outside of buffer bounds');
|
||||
if (array.byteLength < byteOffset + (length || 0)) throw RangeError('"length" is outside of buffer bounds');
|
||||
return Object.setPrototypeOf(buf = void 0 === byteOffset && void 0 === length ? new Uint8Array(array) : void 0 === length ? new Uint8Array(array, byteOffset) : new Uint8Array(array, byteOffset, length), Buffer.prototype), buf;
|
||||
}
|
||||
function fromObject(obj) {
|
||||
@ -5227,13 +5227,13 @@
|
||||
return void 0 !== obj.length ? "number" != typeof obj.length || (obj1 = obj.length) != obj1 ? createBuffer(0) : fromArrayLike(obj) : "Buffer" === obj.type && Array.isArray(obj.data) ? fromArrayLike(obj.data) : void 0;
|
||||
}
|
||||
function checked(length) {
|
||||
if (length >= 0x7fffffff) throw new RangeError("Attempt to allocate Buffer larger than maximum size: 0x" + 0x7fffffff.toString(16) + " bytes");
|
||||
if (length >= 0x7fffffff) throw RangeError("Attempt to allocate Buffer larger than maximum size: 0x" + 0x7fffffff.toString(16) + " bytes");
|
||||
return 0 | length;
|
||||
}
|
||||
function byteLength1(string, encoding) {
|
||||
if (Buffer.isBuffer(string)) return string.length;
|
||||
if (ArrayBuffer.isView(string) || isInstance(string, ArrayBuffer)) return string.byteLength;
|
||||
if ("string" != typeof string) throw new TypeError('The "string" argument must be one of type string, Buffer, or ArrayBuffer. Received type ' + typeof string);
|
||||
if ("string" != typeof string) throw TypeError('The "string" argument must be one of type string, Buffer, or ArrayBuffer. Received type ' + typeof string);
|
||||
var len = string.length, mustMatch = arguments.length > 2 && !0 === arguments[2];
|
||||
if (!mustMatch && 0 === len) return 0;
|
||||
for(var loweredCase = !1;;)switch(encoding){
|
||||
@ -5280,7 +5280,7 @@
|
||||
case "utf-16le":
|
||||
return utf16leSlice(this, start, end);
|
||||
default:
|
||||
if (loweredCase) throw new TypeError("Unknown encoding: " + encoding);
|
||||
if (loweredCase) throw TypeError("Unknown encoding: " + encoding);
|
||||
encoding = (encoding + "").toLowerCase(), loweredCase = !0;
|
||||
}
|
||||
}
|
||||
@ -5302,7 +5302,7 @@
|
||||
if ("number" == typeof val) return (val &= 0xff, "function" == typeof Uint8Array.prototype.indexOf) ? dir ? Uint8Array.prototype.indexOf.call(buffer, val, byteOffset) : Uint8Array.prototype.lastIndexOf.call(buffer, val, byteOffset) : arrayIndexOf(buffer, [
|
||||
val
|
||||
], byteOffset, encoding, dir);
|
||||
throw new TypeError("val must be string, number or Buffer");
|
||||
throw TypeError("val must be string, number or Buffer");
|
||||
}
|
||||
function arrayIndexOf(arr, val, byteOffset, encoding, dir) {
|
||||
var i4, indexSize = 1, arrLength = arr.length, valLength = val.length;
|
||||
@ -5408,16 +5408,16 @@
|
||||
return res;
|
||||
}
|
||||
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");
|
||||
if (offset % 1 != 0 || offset < 0) throw RangeError("offset is not uint");
|
||||
if (offset + ext > length) throw RangeError("Trying to access beyond buffer length");
|
||||
}
|
||||
function checkInt(buf, value, offset, ext, max, min) {
|
||||
if (!Buffer.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");
|
||||
if (!Buffer.isBuffer(buf)) throw TypeError('"buffer" argument must be a Buffer instance');
|
||||
if (value > max || value < min) throw RangeError('"value" argument is out of bounds');
|
||||
if (offset + ext > buf.length) throw RangeError("Index out of range");
|
||||
}
|
||||
function checkIEEE754(buf, value, offset, ext, max, min) {
|
||||
if (offset + ext > buf.length || offset < 0) throw new RangeError("Index out of range");
|
||||
if (offset + ext > buf.length || offset < 0) throw RangeError("Index out of range");
|
||||
}
|
||||
function writeFloat(buf, value, offset, littleEndian, noAssert) {
|
||||
return value = +value, offset >>>= 0, noAssert || checkIEEE754(buf, value, offset, 4, 3.4028234663852886e38, -340282346638528860000000000000000000000), ieee754.write(buf, value, offset, littleEndian, 23, 4), offset + 4;
|
||||
@ -5460,7 +5460,7 @@
|
||||
}, Buffer.isBuffer = function(b) {
|
||||
return null != b && !0 === b._isBuffer && b !== Buffer.prototype;
|
||||
}, Buffer.compare = function(a, b) {
|
||||
if (isInstance(a, Uint8Array) && (a = Buffer.from(a, a.offset, a.byteLength)), isInstance(b, Uint8Array) && (b = Buffer.from(b, b.offset, b.byteLength)), !Buffer.isBuffer(a) || !Buffer.isBuffer(b)) throw new TypeError('The "buf1", "buf2" arguments must be one of type Buffer or Uint8Array');
|
||||
if (isInstance(a, Uint8Array) && (a = Buffer.from(a, a.offset, a.byteLength)), isInstance(b, Uint8Array) && (b = Buffer.from(b, b.offset, b.byteLength)), !Buffer.isBuffer(a) || !Buffer.isBuffer(b)) throw TypeError('The "buf1", "buf2" arguments must be one of type Buffer or Uint8Array');
|
||||
if (a === b) return 0;
|
||||
for(var x = a.length, y = b.length, i = 0, len = Math.min(x, y); i < len; ++i)if (a[i] !== b[i]) {
|
||||
x = a[i], y = b[i];
|
||||
@ -5485,43 +5485,43 @@
|
||||
return !1;
|
||||
}
|
||||
}, Buffer.concat = function(list, length) {
|
||||
if (!Array.isArray(list)) throw new TypeError('"list" argument must be an Array of Buffers');
|
||||
if (!Array.isArray(list)) throw TypeError('"list" argument must be an Array of Buffers');
|
||||
if (0 === list.length) return Buffer.alloc(0);
|
||||
if (void 0 === length) for(i = 0, length = 0; i < list.length; ++i)length += list[i].length;
|
||||
var i, buffer = Buffer.allocUnsafe(length), pos = 0;
|
||||
for(i = 0; i < list.length; ++i){
|
||||
var buf = list[i];
|
||||
if (isInstance(buf, Uint8Array) && (buf = Buffer.from(buf)), !Buffer.isBuffer(buf)) throw new TypeError('"list" argument must be an Array of Buffers');
|
||||
if (isInstance(buf, Uint8Array) && (buf = Buffer.from(buf)), !Buffer.isBuffer(buf)) throw TypeError('"list" argument must be an Array of Buffers');
|
||||
buf.copy(buffer, pos), pos += buf.length;
|
||||
}
|
||||
return buffer;
|
||||
}, Buffer.byteLength = byteLength1, Buffer.prototype._isBuffer = !0, Buffer.prototype.swap16 = function() {
|
||||
var len = this.length;
|
||||
if (len % 2 != 0) throw new RangeError("Buffer size must be a multiple of 16-bits");
|
||||
if (len % 2 != 0) throw 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;
|
||||
}, Buffer.prototype.swap32 = function() {
|
||||
var len = this.length;
|
||||
if (len % 4 != 0) throw new RangeError("Buffer size must be a multiple of 32-bits");
|
||||
if (len % 4 != 0) throw 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;
|
||||
}, Buffer.prototype.swap64 = function() {
|
||||
var len = this.length;
|
||||
if (len % 8 != 0) throw new RangeError("Buffer size must be a multiple of 64-bits");
|
||||
if (len % 8 != 0) throw 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;
|
||||
}, Buffer.prototype.toString = function() {
|
||||
var length = this.length;
|
||||
return 0 === length ? "" : 0 === arguments.length ? utf8Slice(this, 0, length) : slowToString.apply(this, arguments);
|
||||
}, Buffer.prototype.toLocaleString = Buffer.prototype.toString, Buffer.prototype.equals = function(b) {
|
||||
if (!Buffer.isBuffer(b)) throw new TypeError("Argument must be a Buffer");
|
||||
if (!Buffer.isBuffer(b)) throw TypeError("Argument must be a Buffer");
|
||||
return this === b || 0 === Buffer.compare(this, b);
|
||||
}, Buffer.prototype.inspect = function() {
|
||||
var str = "", max = exports.INSPECT_MAX_BYTES;
|
||||
return str = this.toString("hex", 0, max).replace(/(.{2})/g, "$1 ").trim(), this.length > max && (str += " ... "), "<Buffer " + str + ">";
|
||||
}, customInspectSymbol && (Buffer.prototype[customInspectSymbol] = Buffer.prototype.inspect), Buffer.prototype.compare = function(target, start, end, thisStart, thisEnd) {
|
||||
if (isInstance(target, Uint8Array) && (target = Buffer.from(target, target.offset, target.byteLength)), !Buffer.isBuffer(target)) throw new TypeError('The "target" argument must be one of type Buffer or Uint8Array. Received type ' + typeof target);
|
||||
if (void 0 === start && (start = 0), void 0 === end && (end = target ? target.length : 0), void 0 === thisStart && (thisStart = 0), void 0 === thisEnd && (thisEnd = this.length), start < 0 || end > target.length || thisStart < 0 || thisEnd > this.length) throw new RangeError("out of range index");
|
||||
if (isInstance(target, Uint8Array) && (target = Buffer.from(target, target.offset, target.byteLength)), !Buffer.isBuffer(target)) throw TypeError('The "target" argument must be one of type Buffer or Uint8Array. Received type ' + typeof target);
|
||||
if (void 0 === start && (start = 0), void 0 === end && (end = target ? target.length : 0), void 0 === thisStart && (thisStart = 0), void 0 === thisEnd && (thisEnd = this.length), start < 0 || end > target.length || thisStart < 0 || thisEnd > this.length) throw RangeError("out of range index");
|
||||
if (thisStart >= thisEnd && start >= end) return 0;
|
||||
if (thisStart >= thisEnd) return -1;
|
||||
if (start >= end) return 1;
|
||||
@ -5541,9 +5541,9 @@
|
||||
if (void 0 === offset) encoding = "utf8", length = this.length, offset = 0;
|
||||
else if (void 0 === length && "string" == typeof offset) encoding = offset, length = this.length, offset = 0;
|
||||
else if (isFinite(offset)) offset >>>= 0, isFinite(length) ? (length >>>= 0, void 0 === encoding && (encoding = "utf8")) : (encoding = length, length = void 0);
|
||||
else throw new Error("Buffer.write(string, encoding, offset[, length]) is no longer supported");
|
||||
else throw Error("Buffer.write(string, encoding, offset[, length]) is no longer supported");
|
||||
var remaining = this.length - offset;
|
||||
if ((void 0 === length || length > remaining) && (length = remaining), string.length > 0 && (length < 0 || offset < 0) || offset > this.length) throw new RangeError("Attempt to write outside buffer bounds");
|
||||
if ((void 0 === length || length > remaining) && (length = remaining), string.length > 0 && (length < 0 || offset < 0) || offset > this.length) throw RangeError("Attempt to write outside buffer bounds");
|
||||
encoding || (encoding = "utf8");
|
||||
for(var loweredCase = !1;;)switch(encoding){
|
||||
case "hex":
|
||||
@ -5564,7 +5564,7 @@
|
||||
case "utf-16le":
|
||||
return ucs2Write(this, string, offset, length);
|
||||
default:
|
||||
if (loweredCase) throw new TypeError("Unknown encoding: " + encoding);
|
||||
if (loweredCase) throw TypeError("Unknown encoding: " + encoding);
|
||||
encoding = ("" + encoding).toLowerCase(), loweredCase = !0;
|
||||
}
|
||||
}, Buffer.prototype.toJSON = function() {
|
||||
@ -5686,11 +5686,11 @@
|
||||
}, Buffer.prototype.writeDoubleBE = function(value, offset, noAssert) {
|
||||
return writeDouble(this, value, offset, !1, noAssert);
|
||||
}, Buffer.prototype.copy = function(target, targetStart, start, end) {
|
||||
if (!Buffer.isBuffer(target)) throw new TypeError("argument should be a Buffer");
|
||||
if (!Buffer.isBuffer(target)) throw TypeError("argument should be a Buffer");
|
||||
if (start || (start = 0), end || 0 === end || (end = this.length), targetStart >= target.length && (targetStart = target.length), targetStart || (targetStart = 0), end > 0 && end < start && (end = start), end === start || 0 === target.length || 0 === this.length) 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 (targetStart < 0) throw RangeError("targetStart out of bounds");
|
||||
if (start < 0 || start >= this.length) throw RangeError("Index out of range");
|
||||
if (end < 0) throw RangeError("sourceEnd out of bounds");
|
||||
end > this.length && (end = this.length), target.length - targetStart < end - start && (end = target.length - targetStart + start);
|
||||
var len = end - start;
|
||||
if (this === target && "function" == typeof Uint8Array.prototype.copyWithin) this.copyWithin(targetStart, start, end);
|
||||
@ -5699,19 +5699,19 @@
|
||||
return len;
|
||||
}, Buffer.prototype.fill = function(val, start, end, encoding) {
|
||||
if ("string" == typeof val) {
|
||||
if ("string" == typeof start ? (encoding = start, start = 0, end = this.length) : "string" == typeof end && (encoding = end, end = this.length), void 0 !== encoding && "string" != typeof encoding) throw new TypeError("encoding must be a string");
|
||||
if ("string" == typeof encoding && !Buffer.isEncoding(encoding)) throw new TypeError("Unknown encoding: " + encoding);
|
||||
if ("string" == typeof start ? (encoding = start, start = 0, end = this.length) : "string" == typeof end && (encoding = end, end = this.length), void 0 !== encoding && "string" != typeof encoding) throw TypeError("encoding must be a string");
|
||||
if ("string" == typeof encoding && !Buffer.isEncoding(encoding)) throw TypeError("Unknown encoding: " + encoding);
|
||||
if (1 === val.length) {
|
||||
var i, code = val.charCodeAt(0);
|
||||
("utf8" === encoding && code < 128 || "latin1" === encoding) && (val = code);
|
||||
}
|
||||
} else "number" == typeof val ? val &= 255 : "boolean" == typeof val && (val = Number(val));
|
||||
if (start < 0 || this.length < start || this.length < end) throw new RangeError("Out of range index");
|
||||
if (start < 0 || this.length < start || this.length < end) throw RangeError("Out of range index");
|
||||
if (end <= start) return this;
|
||||
if (start >>>= 0, end = void 0 === end ? this.length : end >>> 0, val || (val = 0), "number" == typeof val) for(i = start; i < end; ++i)this[i] = val;
|
||||
else {
|
||||
var bytes = Buffer.isBuffer(val) ? val : Buffer.from(val, encoding), len = bytes.length;
|
||||
if (0 === len) throw new TypeError('The value "' + val + '" is invalid for argument "value"');
|
||||
if (0 === len) throw TypeError('The value "' + val + '" is invalid for argument "value"');
|
||||
for(i = 0; i < end - start; ++i)this[i + start] = bytes[i % len];
|
||||
}
|
||||
return this;
|
||||
@ -5747,7 +5747,7 @@
|
||||
} else if (codePoint < 0x110000) {
|
||||
if ((units -= 4) < 0) break;
|
||||
bytes.push(codePoint >> 0x12 | 0xf0, codePoint >> 0xc & 0x3f | 0x80, codePoint >> 0x6 & 0x3f | 0x80, 0x3f & codePoint | 0x80);
|
||||
} else throw new Error("Invalid code point");
|
||||
} else throw Error("Invalid code point");
|
||||
}
|
||||
return bytes;
|
||||
}
|
||||
@ -5774,7 +5774,7 @@
|
||||
return obj instanceof type || null != obj && null != obj.constructor && null != obj.constructor.name && obj.constructor.name === type.name;
|
||||
}
|
||||
var hexSliceLookupTable = function() {
|
||||
for(var alphabet = "0123456789abcdef", table = new Array(256), i = 0; i < 16; ++i)for(var i16 = 16 * i, j = 0; j < 16; ++j)table[i16 + j] = alphabet[i] + alphabet[j];
|
||||
for(var alphabet = "0123456789abcdef", table = Array(256), i = 0; i < 16; ++i)for(var i16 = 16 * i, j = 0; j < 16; ++j)table[i16 + j] = alphabet[i] + alphabet[j];
|
||||
return table;
|
||||
}();
|
||||
},
|
||||
@ -5800,7 +5800,7 @@
|
||||
7326: function(__unused_webpack___webpack_module__, __webpack_exports__, __webpack_require__) {
|
||||
"use strict";
|
||||
function _assertThisInitialized(self) {
|
||||
if (void 0 === self) throw new ReferenceError("this hasn't been initialised - super() hasn't been called");
|
||||
if (void 0 === self) throw ReferenceError("this hasn't been initialised - super() hasn't been called");
|
||||
return self;
|
||||
}
|
||||
__webpack_require__.d(__webpack_exports__, {
|
||||
@ -5862,7 +5862,7 @@
|
||||
});
|
||||
var _setPrototypeOf_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(9611);
|
||||
function _inherits(subClass, superClass) {
|
||||
if ("function" != typeof superClass && null !== superClass) throw new TypeError("Super expression must either be null or a function");
|
||||
if ("function" != typeof superClass && null !== superClass) throw TypeError("Super expression must either be null or a function");
|
||||
Object.defineProperty(subClass, "prototype", {
|
||||
value: Object.create(superClass && superClass.prototype, {
|
||||
constructor: {
|
||||
|
@ -6,7 +6,7 @@
|
||||
presto_version && (presto_version = Number(presto_version[1])), presto_version && presto_version >= 15 && (presto = !1, webkit = !0);
|
||||
var flipCtrlCmd = mac && (qtwebkit || presto && (null == presto_version || presto_version < 12.11)), captureRightClick = gecko || ie && ie_version >= 9;
|
||||
function classTest(cls) {
|
||||
return new RegExp("(^|\\s)" + cls + "(?:$|\\s)\\s*");
|
||||
return RegExp("(^|\\s)" + cls + "(?:$|\\s)\\s*");
|
||||
}
|
||||
var rmClass = function(node, cls) {
|
||||
var current = node.className, match = classTest(cls).exec(current);
|
||||
@ -417,7 +417,7 @@
|
||||
this.pos = this.start = 0, this.string = string, this.tabSize = tabSize || 8, this.lastColumnPos = this.lastColumnValue = 0, this.lineStart = 0, this.lineOracle = lineOracle;
|
||||
};
|
||||
function getLine(doc, n) {
|
||||
if ((n -= doc.first) < 0 || n >= doc.size) throw new Error("There is no line " + (n + doc.first) + " in the document.");
|
||||
if ((n -= doc.first) < 0 || n >= doc.size) throw Error("There is no line " + (n + doc.first) + " in the document.");
|
||||
for(var chunk = doc; !chunk.lines;)for(var i = 0;; ++i){
|
||||
var child = chunk.children[i], sz = child.chunkSize();
|
||||
if (n < sz) {
|
||||
@ -633,7 +633,7 @@
|
||||
var style = mode.token(stream, state);
|
||||
if (stream.pos > stream.start) return style;
|
||||
}
|
||||
throw new Error("Mode " + mode.name + " failed to advance stream.");
|
||||
throw Error("Mode " + mode.name + " failed to advance stream.");
|
||||
}
|
||||
Context.prototype.lookAhead = function(n) {
|
||||
var line = this.doc.getLine(this.line + n);
|
||||
@ -670,7 +670,7 @@
|
||||
if (!lineClass) break;
|
||||
type = type.slice(0, lineClass.index) + type.slice(lineClass.index + lineClass[0].length);
|
||||
var prop = lineClass[1] ? "bgClass" : "textClass";
|
||||
null == output[prop] ? output[prop] = lineClass[2] : new RegExp("(?:^|\\s)" + lineClass[2] + "(?:$|\\s)").test(output[prop]) || (output[prop] += " " + lineClass[2]);
|
||||
null == output[prop] ? output[prop] = lineClass[2] : RegExp("(?:^|\\s)" + lineClass[2] + "(?:$|\\s)").test(output[prop]) || (output[prop] += " " + lineClass[2]);
|
||||
}
|
||||
return type;
|
||||
}
|
||||
@ -2425,7 +2425,7 @@
|
||||
propagate(doc1, null, !0);
|
||||
}
|
||||
function attachDoc(cm, doc) {
|
||||
if (doc.cm) throw new Error("This document is already in use.");
|
||||
if (doc.cm) throw Error("This document is already in use.");
|
||||
cm.doc = doc, doc.cm = cm, estimateLineHeights(cm), loadMode(cm), setDirectionClass(cm), cm.options.direction = doc.direction, cm.options.lineWrapping || findMaxLine(cm), cm.options.mode = doc.modeOption, regChange(cm);
|
||||
}
|
||||
function setDirectionClass(cm) {
|
||||
@ -2998,7 +2998,7 @@
|
||||
if (marker.replacedWith && (marker.collapsed = !0, marker.widgetNode = eltP("span", [
|
||||
marker.replacedWith
|
||||
], "CodeMirror-widget"), options.handleMouseEvents || marker.widgetNode.setAttribute("cm-ignore-events", "true"), options.insertLeft && (marker.widgetNode.insertLeft = !0)), marker.collapsed) {
|
||||
if (conflictingCollapsedRange(doc, from.line, from, to, marker) || from.line != to.line && conflictingCollapsedRange(doc, to.line, from, to, marker)) throw new Error("Inserting collapsed marker partially overlapping an existing one");
|
||||
if (conflictingCollapsedRange(doc, from.line, from, to, marker) || from.line != to.line && conflictingCollapsedRange(doc, to.line, from, to, marker)) throw Error("Inserting collapsed marker partially overlapping an existing one");
|
||||
sawCollapsedSpans = !0;
|
||||
}
|
||||
marker.addToHistory && addChangeToHistory(doc, {
|
||||
@ -3657,7 +3657,7 @@
|
||||
else if (/^a(lt)?$/i.test(mod)) alt = !0;
|
||||
else if (/^(c|ctrl|control)$/i.test(mod)) ctrl = !0;
|
||||
else if (/^s(hift)?$/i.test(mod)) shift = !0;
|
||||
else throw new Error("Unrecognized modifier name: " + mod);
|
||||
else throw Error("Unrecognized modifier name: " + mod);
|
||||
}
|
||||
return alt && (name = "Alt-" + name), ctrl && (name = "Ctrl-" + name), cmd && (name = "Cmd-" + name), shift && (name = "Shift-" + name), name;
|
||||
}
|
||||
@ -5148,11 +5148,11 @@
|
||||
for(var i = newBreaks.length - 1; i >= 0; i--)replaceRange(cm.doc, val, newBreaks[i], Pos(newBreaks[i].line, newBreaks[i].ch + val.length));
|
||||
}
|
||||
}), option("specialChars", /[\u0000-\u001f\u007f-\u009f\u00ad\u061c\u200b\u200e\u200f\u2028\u2029\ufeff\ufff9-\ufffc]/g, function(cm, val, old) {
|
||||
cm.state.specialChars = new RegExp(val.source + (val.test("\t") ? "" : "|\t"), "g"), old != Init && cm.refresh();
|
||||
cm.state.specialChars = RegExp(val.source + (val.test("\t") ? "" : "|\t"), "g"), old != Init && cm.refresh();
|
||||
}), option("specialCharPlaceholder", defaultSpecialCharPlaceholder, function(cm) {
|
||||
return cm.refresh();
|
||||
}, !0), option("electricChars", !0), option("inputStyle", mobile ? "contenteditable" : "textarea", function() {
|
||||
throw new Error("inputStyle can not (yet) be changed in a running editor");
|
||||
throw Error("inputStyle can not (yet) be changed in a running editor");
|
||||
}, !0), option("spellcheck", !1, function(cm, val) {
|
||||
return cm.getInputField().spellcheck = val;
|
||||
}, !0), option("autocorrect", !1, function(cm, val) {
|
||||
@ -5216,7 +5216,7 @@
|
||||
},
|
||||
addOverlay: methodOp(function(spec, options) {
|
||||
var mode = spec.token ? spec : CodeMirror3.getMode(this.options, spec);
|
||||
if (mode.startState) throw new Error("Overlays may not be stateful.");
|
||||
if (mode.startState) throw Error("Overlays may not be stateful.");
|
||||
(function(array, value, score) {
|
||||
for(var pos = 0, priority = score(value); pos < array.length && score(array[pos]) <= priority;)pos++;
|
||||
array.splice(pos, 0, value);
|
||||
@ -5593,7 +5593,7 @@
|
||||
i == keys.length - 1 ? (name = keys.join(" "), val = value) : (name = keys.slice(0, i + 1).join(" "), val = "...");
|
||||
var prev = copy[name];
|
||||
if (prev) {
|
||||
if (prev != val) throw new Error("Inconsistent bindings for " + name);
|
||||
if (prev != val) throw Error("Inconsistent bindings for " + name);
|
||||
} else copy[name] = val;
|
||||
}
|
||||
delete keymap[keyname];
|
||||
|
@ -118,7 +118,7 @@
|
||||
for(var t2 = [], f1 = [], n1 = "undefined" != typeof Uint8Array ? Uint8Array : Array, i1 = "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/", o1 = 0, u1 = i1.length; o1 < u1; ++o1)t2[o1] = i1[o1], f1[i1.charCodeAt(o1)] = o1;
|
||||
function getLens(e) {
|
||||
var r = e.length;
|
||||
if (r % 4 > 0) throw new Error("Invalid string. Length must be a multiple of 4");
|
||||
if (r % 4 > 0) throw Error("Invalid string. Length must be a multiple of 4");
|
||||
var t = e.indexOf("=");
|
||||
-1 === t && (t = r);
|
||||
var f = t === r ? 0 : 4 - t % 4;
|
||||
@ -140,13 +140,13 @@
|
||||
"use strict";
|
||||
var f2 = t4(991), n2 = t4(759), i2 = "function" == typeof Symbol && "function" == typeof Symbol.for ? Symbol.for("nodejs.util.inspect.custom") : null;
|
||||
function createBuffer(e) {
|
||||
if (e > 2147483647) throw new RangeError('The value "' + e + '" is invalid for option "size"');
|
||||
if (e > 2147483647) throw RangeError('The value "' + e + '" is invalid for option "size"');
|
||||
var r = new Uint8Array(e);
|
||||
return Object.setPrototypeOf(r, Buffer.prototype), r;
|
||||
}
|
||||
function Buffer(e, r, t) {
|
||||
if ("number" == typeof e) {
|
||||
if ("string" == typeof r) throw new TypeError('The "string" argument must be of type string. Received type number');
|
||||
if ("string" == typeof r) throw TypeError('The "string" argument must be of type string. Received type number');
|
||||
return allocUnsafe(e);
|
||||
}
|
||||
return from(e, r, t);
|
||||
@ -154,25 +154,25 @@
|
||||
function from(e, r, t) {
|
||||
if ("string" == typeof e) return fromString(e, r);
|
||||
if (ArrayBuffer.isView(e)) return fromArrayLike(e);
|
||||
if (null == e) throw new TypeError("The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type " + typeof e);
|
||||
if (null == e) throw TypeError("The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type " + typeof e);
|
||||
if (isInstance(e, ArrayBuffer) || e && isInstance(e.buffer, ArrayBuffer) || "undefined" != typeof SharedArrayBuffer && (isInstance(e, SharedArrayBuffer) || e && isInstance(e.buffer, SharedArrayBuffer))) return fromArrayBuffer(e, r, t);
|
||||
if ("number" == typeof e) throw new TypeError('The "value" argument must not be of type number. Received type number');
|
||||
if ("number" == typeof e) throw TypeError('The "value" argument must not be of type number. Received type number');
|
||||
var f = e.valueOf && e.valueOf();
|
||||
if (null != f && f !== e) return Buffer.from(f, r, t);
|
||||
var n = fromObject(e);
|
||||
if (n) return n;
|
||||
if ("undefined" != typeof Symbol && null != Symbol.toPrimitive && "function" == typeof e[Symbol.toPrimitive]) return Buffer.from(e[Symbol.toPrimitive]("string"), r, t);
|
||||
throw new TypeError("The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type " + typeof e);
|
||||
throw TypeError("The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type " + typeof e);
|
||||
}
|
||||
function assertSize(e) {
|
||||
if ("number" != typeof e) throw new TypeError('"size" argument must be of type number');
|
||||
if (e < 0) throw new RangeError('The value "' + e + '" is invalid for option "size"');
|
||||
if ("number" != typeof e) throw TypeError('"size" argument must be of type number');
|
||||
if (e < 0) throw RangeError('The value "' + e + '" is invalid for option "size"');
|
||||
}
|
||||
function allocUnsafe(e) {
|
||||
return assertSize(e), createBuffer(e < 0 ? 0 : 0 | checked(e));
|
||||
}
|
||||
function fromString(e, r) {
|
||||
if (("string" != typeof r || "" === r) && (r = "utf8"), !Buffer.isEncoding(r)) throw new TypeError("Unknown encoding: " + r);
|
||||
if (("string" != typeof r || "" === r) && (r = "utf8"), !Buffer.isEncoding(r)) throw TypeError("Unknown encoding: " + r);
|
||||
var t = 0 | byteLength(e, r), f = createBuffer(t), n = f.write(e, r);
|
||||
return n !== t && (f = f.slice(0, n)), f;
|
||||
}
|
||||
@ -182,8 +182,8 @@
|
||||
}
|
||||
function fromArrayBuffer(e, r, t) {
|
||||
var f;
|
||||
if (r < 0 || e.byteLength < r) throw new RangeError('"offset" is outside of buffer bounds');
|
||||
if (e.byteLength < r + (t || 0)) throw new RangeError('"length" is outside of buffer bounds');
|
||||
if (r < 0 || e.byteLength < r) throw RangeError('"offset" is outside of buffer bounds');
|
||||
if (e.byteLength < r + (t || 0)) throw RangeError('"length" is outside of buffer bounds');
|
||||
return Object.setPrototypeOf(f = void 0 === r && void 0 === t ? new Uint8Array(e) : void 0 === t ? new Uint8Array(e, r) : new Uint8Array(e, r, t), Buffer.prototype), f;
|
||||
}
|
||||
function fromObject(e) {
|
||||
@ -194,13 +194,13 @@
|
||||
return void 0 !== e.length ? "number" != typeof e.length || (e4 = e.length) != e4 ? createBuffer(0) : fromArrayLike(e) : "Buffer" === e.type && Array.isArray(e.data) ? fromArrayLike(e.data) : void 0;
|
||||
}
|
||||
function checked(e) {
|
||||
if (e >= 2147483647) throw new RangeError("Attempt to allocate Buffer larger than maximum size: 0x" + 2147483647..toString(16) + " bytes");
|
||||
if (e >= 2147483647) throw RangeError("Attempt to allocate Buffer larger than maximum size: 0x" + 2147483647..toString(16) + " bytes");
|
||||
return 0 | e;
|
||||
}
|
||||
function byteLength(e, r) {
|
||||
if (Buffer.isBuffer(e)) return e.length;
|
||||
if (ArrayBuffer.isView(e) || isInstance(e, ArrayBuffer)) return e.byteLength;
|
||||
if ("string" != typeof e) throw new TypeError('The "string" argument must be one of type string, Buffer, or ArrayBuffer. Received type ' + typeof e);
|
||||
if ("string" != typeof e) throw TypeError('The "string" argument must be one of type string, Buffer, or ArrayBuffer. Received type ' + typeof e);
|
||||
var t = e.length, f = arguments.length > 2 && !0 === arguments[2];
|
||||
if (!f && 0 === t) return 0;
|
||||
for(var n = !1;;)switch(r){
|
||||
@ -247,7 +247,7 @@
|
||||
case "utf-16le":
|
||||
return utf16leSlice(this, r, t);
|
||||
default:
|
||||
if (f) throw new TypeError("Unknown encoding: " + e);
|
||||
if (f) throw TypeError("Unknown encoding: " + e);
|
||||
e = (e + "").toLowerCase(), f = !0;
|
||||
}
|
||||
}
|
||||
@ -269,7 +269,7 @@
|
||||
if ("number" == typeof r) return (r &= 255, "function" == typeof Uint8Array.prototype.indexOf) ? n ? Uint8Array.prototype.indexOf.call(e, r, t) : Uint8Array.prototype.lastIndexOf.call(e, r, t) : arrayIndexOf(e, [
|
||||
r
|
||||
], t, f, n);
|
||||
throw new TypeError("val must be string, number or Buffer");
|
||||
throw TypeError("val must be string, number or Buffer");
|
||||
}
|
||||
function arrayIndexOf(e6, r4, t, f, n) {
|
||||
var a, i = 1, o = e6.length, u = r4.length;
|
||||
@ -375,16 +375,16 @@
|
||||
return n;
|
||||
}
|
||||
function checkOffset(e, r, t) {
|
||||
if (e % 1 != 0 || e < 0) throw new RangeError("offset is not uint");
|
||||
if (e + r > t) throw new RangeError("Trying to access beyond buffer length");
|
||||
if (e % 1 != 0 || e < 0) throw RangeError("offset is not uint");
|
||||
if (e + r > t) throw RangeError("Trying to access beyond buffer length");
|
||||
}
|
||||
function checkInt(e, r, t, f, n, i) {
|
||||
if (!Buffer.isBuffer(e)) throw new TypeError('"buffer" argument must be a Buffer instance');
|
||||
if (r > n || r < i) throw new RangeError('"value" argument is out of bounds');
|
||||
if (t + f > e.length) throw new RangeError("Index out of range");
|
||||
if (!Buffer.isBuffer(e)) throw TypeError('"buffer" argument must be a Buffer instance');
|
||||
if (r > n || r < i) throw RangeError('"value" argument is out of bounds');
|
||||
if (t + f > e.length) throw RangeError("Index out of range");
|
||||
}
|
||||
function checkIEEE754(e, r, t, f, n, i) {
|
||||
if (t + f > e.length || t < 0) throw new RangeError("Index out of range");
|
||||
if (t + f > e.length || t < 0) throw RangeError("Index out of range");
|
||||
}
|
||||
function writeFloat(e, r, t, f, i) {
|
||||
return r = +r, t >>>= 0, i || checkIEEE754(e, r, t, 4, 34028234663852886e22, -340282346638528860000000000000000000000), n2.write(e, r, t, f, 23, 4), t + 4;
|
||||
@ -427,7 +427,7 @@
|
||||
}, Buffer.isBuffer = function(e) {
|
||||
return null != e && !0 === e._isBuffer && e !== Buffer.prototype;
|
||||
}, Buffer.compare = function(e, r) {
|
||||
if (isInstance(e, Uint8Array) && (e = Buffer.from(e, e.offset, e.byteLength)), isInstance(r, Uint8Array) && (r = Buffer.from(r, r.offset, r.byteLength)), !Buffer.isBuffer(e) || !Buffer.isBuffer(r)) throw new TypeError('The "buf1", "buf2" arguments must be one of type Buffer or Uint8Array');
|
||||
if (isInstance(e, Uint8Array) && (e = Buffer.from(e, e.offset, e.byteLength)), isInstance(r, Uint8Array) && (r = Buffer.from(r, r.offset, r.byteLength)), !Buffer.isBuffer(e) || !Buffer.isBuffer(r)) throw TypeError('The "buf1", "buf2" arguments must be one of type Buffer or Uint8Array');
|
||||
if (e === r) return 0;
|
||||
for(var t = e.length, f = r.length, n = 0, i = Math.min(t, f); n < i; ++n)if (e[n] !== r[n]) {
|
||||
t = e[n], f = r[n];
|
||||
@ -452,43 +452,43 @@
|
||||
return !1;
|
||||
}
|
||||
}, Buffer.concat = function(e, r) {
|
||||
if (!Array.isArray(e)) throw new TypeError('"list" argument must be an Array of Buffers');
|
||||
if (!Array.isArray(e)) throw TypeError('"list" argument must be an Array of Buffers');
|
||||
if (0 === e.length) return Buffer.alloc(0);
|
||||
if (void 0 === r) for(t = 0, r = 0; t < e.length; ++t)r += e[t].length;
|
||||
var t, f = Buffer.allocUnsafe(r), n = 0;
|
||||
for(t = 0; t < e.length; ++t){
|
||||
var i = e[t];
|
||||
if (isInstance(i, Uint8Array) && (i = Buffer.from(i)), !Buffer.isBuffer(i)) throw new TypeError('"list" argument must be an Array of Buffers');
|
||||
if (isInstance(i, Uint8Array) && (i = Buffer.from(i)), !Buffer.isBuffer(i)) throw TypeError('"list" argument must be an Array of Buffers');
|
||||
i.copy(f, n), n += i.length;
|
||||
}
|
||||
return f;
|
||||
}, Buffer.byteLength = byteLength, Buffer.prototype._isBuffer = !0, Buffer.prototype.swap16 = function() {
|
||||
var e = this.length;
|
||||
if (e % 2 != 0) throw new RangeError("Buffer size must be a multiple of 16-bits");
|
||||
if (e % 2 != 0) throw RangeError("Buffer size must be a multiple of 16-bits");
|
||||
for(var r = 0; r < e; r += 2)swap(this, r, r + 1);
|
||||
return this;
|
||||
}, Buffer.prototype.swap32 = function() {
|
||||
var e = this.length;
|
||||
if (e % 4 != 0) throw new RangeError("Buffer size must be a multiple of 32-bits");
|
||||
if (e % 4 != 0) throw RangeError("Buffer size must be a multiple of 32-bits");
|
||||
for(var r = 0; r < e; r += 4)swap(this, r, r + 3), swap(this, r + 1, r + 2);
|
||||
return this;
|
||||
}, Buffer.prototype.swap64 = function() {
|
||||
var e = this.length;
|
||||
if (e % 8 != 0) throw new RangeError("Buffer size must be a multiple of 64-bits");
|
||||
if (e % 8 != 0) throw RangeError("Buffer size must be a multiple of 64-bits");
|
||||
for(var r = 0; r < e; r += 8)swap(this, r, r + 7), swap(this, r + 1, r + 6), swap(this, r + 2, r + 5), swap(this, r + 3, r + 4);
|
||||
return this;
|
||||
}, Buffer.prototype.toString = function() {
|
||||
var e = this.length;
|
||||
return 0 === e ? "" : 0 === arguments.length ? utf8Slice(this, 0, e) : slowToString.apply(this, arguments);
|
||||
}, Buffer.prototype.toLocaleString = Buffer.prototype.toString, Buffer.prototype.equals = function(e) {
|
||||
if (!Buffer.isBuffer(e)) throw new TypeError("Argument must be a Buffer");
|
||||
if (!Buffer.isBuffer(e)) throw TypeError("Argument must be a Buffer");
|
||||
return this === e || 0 === Buffer.compare(this, e);
|
||||
}, Buffer.prototype.inspect = function() {
|
||||
var e = "", t = r3.INSPECT_MAX_BYTES;
|
||||
return e = this.toString("hex", 0, t).replace(/(.{2})/g, "$1 ").trim(), this.length > t && (e += " ... "), "<Buffer " + e + ">";
|
||||
}, i2 && (Buffer.prototype[i2] = Buffer.prototype.inspect), Buffer.prototype.compare = function(e, r, t, f, n) {
|
||||
if (isInstance(e, Uint8Array) && (e = Buffer.from(e, e.offset, e.byteLength)), !Buffer.isBuffer(e)) throw new TypeError('The "target" argument must be one of type Buffer or Uint8Array. Received type ' + typeof e);
|
||||
if (void 0 === r && (r = 0), void 0 === t && (t = e ? e.length : 0), void 0 === f && (f = 0), void 0 === n && (n = this.length), r < 0 || t > e.length || f < 0 || n > this.length) throw new RangeError("out of range index");
|
||||
if (isInstance(e, Uint8Array) && (e = Buffer.from(e, e.offset, e.byteLength)), !Buffer.isBuffer(e)) throw TypeError('The "target" argument must be one of type Buffer or Uint8Array. Received type ' + typeof e);
|
||||
if (void 0 === r && (r = 0), void 0 === t && (t = e ? e.length : 0), void 0 === f && (f = 0), void 0 === n && (n = this.length), r < 0 || t > e.length || f < 0 || n > this.length) throw RangeError("out of range index");
|
||||
if (f >= n && r >= t) return 0;
|
||||
if (f >= n) return -1;
|
||||
if (r >= t) return 1;
|
||||
@ -508,9 +508,9 @@
|
||||
if (void 0 === r) f = "utf8", t = this.length, r = 0;
|
||||
else if (void 0 === t && "string" == typeof r) f = r, t = this.length, r = 0;
|
||||
else if (isFinite(r)) r >>>= 0, isFinite(t) ? (t >>>= 0, void 0 === f && (f = "utf8")) : (f = t, t = void 0);
|
||||
else throw new Error("Buffer.write(string, encoding, offset[, length]) is no longer supported");
|
||||
else throw Error("Buffer.write(string, encoding, offset[, length]) is no longer supported");
|
||||
var n = this.length - r;
|
||||
if ((void 0 === t || t > n) && (t = n), e.length > 0 && (t < 0 || r < 0) || r > this.length) throw new RangeError("Attempt to write outside buffer bounds");
|
||||
if ((void 0 === t || t > n) && (t = n), e.length > 0 && (t < 0 || r < 0) || r > this.length) throw RangeError("Attempt to write outside buffer bounds");
|
||||
f || (f = "utf8");
|
||||
for(var i = !1;;)switch(f){
|
||||
case "hex":
|
||||
@ -531,7 +531,7 @@
|
||||
case "utf-16le":
|
||||
return ucs2Write(this, e, r, t);
|
||||
default:
|
||||
if (i) throw new TypeError("Unknown encoding: " + f);
|
||||
if (i) throw TypeError("Unknown encoding: " + f);
|
||||
f = ("" + f).toLowerCase(), i = !0;
|
||||
}
|
||||
}, Buffer.prototype.toJSON = function() {
|
||||
@ -653,11 +653,11 @@
|
||||
}, Buffer.prototype.writeDoubleBE = function(e, r, t) {
|
||||
return writeDouble(this, e, r, !1, t);
|
||||
}, Buffer.prototype.copy = function(e, r, t, f) {
|
||||
if (!Buffer.isBuffer(e)) throw new TypeError("argument should be a Buffer");
|
||||
if (!Buffer.isBuffer(e)) throw TypeError("argument should be a Buffer");
|
||||
if (t || (t = 0), f || 0 === f || (f = this.length), r >= e.length && (r = e.length), r || (r = 0), f > 0 && f < t && (f = t), f === t || 0 === e.length || 0 === this.length) return 0;
|
||||
if (r < 0) throw new RangeError("targetStart out of bounds");
|
||||
if (t < 0 || t >= this.length) throw new RangeError("Index out of range");
|
||||
if (f < 0) throw new RangeError("sourceEnd out of bounds");
|
||||
if (r < 0) throw RangeError("targetStart out of bounds");
|
||||
if (t < 0 || t >= this.length) throw RangeError("Index out of range");
|
||||
if (f < 0) throw RangeError("sourceEnd out of bounds");
|
||||
f > this.length && (f = this.length), e.length - r < f - t && (f = e.length - r + t);
|
||||
var n = f - t;
|
||||
if (this === e && "function" == typeof Uint8Array.prototype.copyWithin) this.copyWithin(r, t, f);
|
||||
@ -666,19 +666,19 @@
|
||||
return n;
|
||||
}, Buffer.prototype.fill = function(e, r, t, f) {
|
||||
if ("string" == typeof e) {
|
||||
if ("string" == typeof r ? (f = r, r = 0, t = this.length) : "string" == typeof t && (f = t, t = this.length), void 0 !== f && "string" != typeof f) throw new TypeError("encoding must be a string");
|
||||
if ("string" == typeof f && !Buffer.isEncoding(f)) throw new TypeError("Unknown encoding: " + f);
|
||||
if ("string" == typeof r ? (f = r, r = 0, t = this.length) : "string" == typeof t && (f = t, t = this.length), void 0 !== f && "string" != typeof f) throw TypeError("encoding must be a string");
|
||||
if ("string" == typeof f && !Buffer.isEncoding(f)) throw TypeError("Unknown encoding: " + f);
|
||||
if (1 === e.length) {
|
||||
var i, n = e.charCodeAt(0);
|
||||
("utf8" === f && n < 128 || "latin1" === f) && (e = n);
|
||||
}
|
||||
} else "number" == typeof e ? e &= 255 : "boolean" == typeof e && (e = Number(e));
|
||||
if (r < 0 || this.length < r || this.length < t) throw new RangeError("Out of range index");
|
||||
if (r < 0 || this.length < r || this.length < t) throw RangeError("Out of range index");
|
||||
if (t <= r) return this;
|
||||
if (r >>>= 0, t = void 0 === t ? this.length : t >>> 0, e || (e = 0), "number" == typeof e) for(i = r; i < t; ++i)this[i] = e;
|
||||
else {
|
||||
var o = Buffer.isBuffer(e) ? e : Buffer.from(e, f), u = o.length;
|
||||
if (0 === u) throw new TypeError('The value "' + e + '" is invalid for argument "value"');
|
||||
if (0 === u) throw TypeError('The value "' + e + '" is invalid for argument "value"');
|
||||
for(i = 0; i < t - r; ++i)this[i + r] = o[i % u];
|
||||
}
|
||||
return this;
|
||||
@ -714,7 +714,7 @@
|
||||
} else if (t < 1114112) {
|
||||
if ((r -= 4) < 0) break;
|
||||
i.push(t >> 18 | 240, t >> 12 & 63 | 128, t >> 6 & 63 | 128, 63 & t | 128);
|
||||
} else throw new Error("Invalid code point");
|
||||
} else throw Error("Invalid code point");
|
||||
}
|
||||
return i;
|
||||
}
|
||||
@ -741,7 +741,7 @@
|
||||
return e instanceof r || null != e && null != e.constructor && null != e.constructor.name && e.constructor.name === r.name;
|
||||
}
|
||||
var s1 = function() {
|
||||
for(var e = "0123456789abcdef", r = new Array(256), t = 0; t < 16; ++t)for(var f = 16 * t, n = 0; n < 16; ++n)r[f + n] = e[t] + e[n];
|
||||
for(var e = "0123456789abcdef", r = Array(256), t = 0; t < 16; ++t)for(var f = 16 * t, n = 0; n < 16; ++n)r[f + n] = e[t] + e[n];
|
||||
return r;
|
||||
}();
|
||||
},
|
||||
@ -789,10 +789,10 @@
|
||||
162: function(e12) {
|
||||
var r8, n, u, t7 = e12.exports = {};
|
||||
function defaultSetTimout() {
|
||||
throw new Error("setTimeout has not been defined");
|
||||
throw Error("setTimeout has not been defined");
|
||||
}
|
||||
function defaultClearTimeout() {
|
||||
throw new Error("clearTimeout has not been defined");
|
||||
throw Error("clearTimeout has not been defined");
|
||||
}
|
||||
function runTimeout(e) {
|
||||
if (r8 === setTimeout) return setTimeout(e, 0);
|
||||
@ -851,7 +851,7 @@
|
||||
}
|
||||
function noop() {}
|
||||
t7.nextTick = function(e) {
|
||||
var t = new Array(arguments.length - 1);
|
||||
var t = Array(arguments.length - 1);
|
||||
if (arguments.length > 1) for(var r = 1; r < arguments.length; r++)t[r - 1] = arguments[r];
|
||||
i.push(new Item(e, t)), 1 !== i.length || o || runTimeout(drainQueue);
|
||||
}, Item.prototype.run = function() {
|
||||
@ -859,11 +859,11 @@
|
||||
}, t7.title = "browser", t7.browser = !0, t7.env = {}, t7.argv = [], t7.version = "", t7.versions = {}, t7.on = noop, t7.addListener = noop, t7.once = noop, t7.off = noop, t7.removeListener = noop, t7.removeAllListeners = noop, t7.emit = noop, t7.prependListener = noop, t7.prependOnceListener = noop, t7.listeners = function(e) {
|
||||
return [];
|
||||
}, t7.binding = function(e) {
|
||||
throw new Error("process.binding is not supported");
|
||||
throw Error("process.binding is not supported");
|
||||
}, t7.cwd = function() {
|
||||
return "/";
|
||||
}, t7.chdir = function(e) {
|
||||
throw new Error("process.chdir is not supported");
|
||||
throw Error("process.chdir is not supported");
|
||||
}, t7.umask = function() {
|
||||
return 0;
|
||||
};
|
||||
@ -894,7 +894,7 @@
|
||||
901: function(r10) {
|
||||
r10.exports = function(r, e, o) {
|
||||
if (r.filter) return r.filter(e, o);
|
||||
if (null == r || "function" != typeof e) throw new TypeError();
|
||||
if (null == r || "function" != typeof e) throw TypeError();
|
||||
for(var n = [], i = 0; i < r.length; i++)if (t.call(r, i)) {
|
||||
var a = r[i];
|
||||
e.call(o, a, i, r) && n.push(a);
|
||||
@ -1290,7 +1290,7 @@
|
||||
219: function(r18) {
|
||||
var t = Object.prototype.hasOwnProperty, e = Object.prototype.toString;
|
||||
r18.exports = function(r, o, n) {
|
||||
if ("[object Function]" !== e.call(o)) throw new TypeError("iterator must be a function");
|
||||
if ("[object Function]" !== e.call(o)) throw TypeError("iterator must be a function");
|
||||
var i = r.length;
|
||||
if (i === +i) for(var a = 0; a < i; a++)o.call(n, r[a], a, r);
|
||||
else for(var y in r)t.call(r, y) && o.call(n, r[y], y, r);
|
||||
@ -1301,7 +1301,7 @@
|
||||
var e = Array.prototype.slice, o = Object.prototype.toString;
|
||||
r19.exports = function(r) {
|
||||
var y, i = this;
|
||||
if ("function" != typeof i || "[object Function]" !== o.call(i)) throw new TypeError("Function.prototype.bind called on incompatible " + i);
|
||||
if ("function" != typeof i || "[object Function]" !== o.call(i)) throw TypeError("Function.prototype.bind called on incompatible " + i);
|
||||
for(var a = e.call(arguments, 1), binder = function() {
|
||||
if (!(this instanceof y)) return i.apply(r, a.concat(e.call(arguments)));
|
||||
var t = i.apply(this, a.concat(e.call(arguments)));
|
||||
@ -1764,7 +1764,7 @@
|
||||
}, s = i("String.prototype.slice"), c = {}, l = e22(982), d = Object.getPrototypeOf;
|
||||
p && l && d && o4(f, function(r) {
|
||||
var t = new __webpack_require__.g[r]();
|
||||
if (!(Symbol.toStringTag in t)) throw new EvalError("this engine has support for Symbol.toStringTag, but " + r + " does not have the property! Please report this.");
|
||||
if (!(Symbol.toStringTag in t)) throw EvalError("this engine has support for Symbol.toStringTag, but " + r + " does not have the property! Please report this.");
|
||||
var e = d(t), o = l(e, Symbol.toStringTag);
|
||||
if (!o) {
|
||||
var n = d(e);
|
||||
@ -1924,7 +1924,7 @@
|
||||
Object.defineProperty(t16, r, {
|
||||
enumerable: !1,
|
||||
value: function() {
|
||||
throw new Error(r + " is not supported in userland");
|
||||
throw Error(r + " is not supported in userland");
|
||||
}
|
||||
});
|
||||
});
|
||||
@ -1966,7 +1966,7 @@
|
||||
var o = !1;
|
||||
return function() {
|
||||
if (!o) {
|
||||
if (process.throwDeprecation) throw new Error(e);
|
||||
if (process.throwDeprecation) throw Error(e);
|
||||
process.traceDeprecation ? console.trace(e) : console.error(e), o = !0;
|
||||
}
|
||||
return r.apply(this, arguments);
|
||||
@ -1975,7 +1975,7 @@
|
||||
var i4 = {}, a2 = /^$/;
|
||||
if (process.env.NODE_DEBUG) {
|
||||
var y1 = process.env.NODE_DEBUG;
|
||||
y1 = y1.replace(/[|\\{}()[\]^$+?.]/g, "\\$&").replace(/\*/g, ".*").replace(/,/g, "$|^").toUpperCase(), a2 = new RegExp("^" + y1 + "$", "i");
|
||||
a2 = RegExp("^" + (y1 = y1.replace(/[|\\{}()[\]^$+?.]/g, "\\$&").replace(/\*/g, ".*").replace(/,/g, "$|^").toUpperCase()) + "$", "i");
|
||||
}
|
||||
function inspect(r, e) {
|
||||
var o = {
|
||||
@ -2215,16 +2215,16 @@
|
||||
var f5 = "undefined" != typeof Symbol ? Symbol("util.promisify.custom") : void 0;
|
||||
function callbackifyOnRejected(r, t) {
|
||||
if (!r) {
|
||||
var e = new Error("Promise was rejected with a falsy value");
|
||||
var e = Error("Promise was rejected with a falsy value");
|
||||
e.reason = r, r = e;
|
||||
}
|
||||
return t(r);
|
||||
}
|
||||
t17.promisify = function(r39) {
|
||||
if ("function" != typeof r39) throw new TypeError('The "original" argument must be of type Function');
|
||||
if ("function" != typeof r39) throw TypeError('The "original" argument must be of type Function');
|
||||
if (f5 && r39[f5]) {
|
||||
var t20 = r39[f5];
|
||||
if ("function" != typeof t20) throw new TypeError('The "util.promisify.custom" argument must be of type Function');
|
||||
if ("function" != typeof t20) throw TypeError('The "util.promisify.custom" argument must be of type Function');
|
||||
return Object.defineProperty(t20, f5, {
|
||||
value: t20,
|
||||
enumerable: !1,
|
||||
@ -2253,11 +2253,11 @@
|
||||
configurable: !0
|
||||
}), Object.defineProperties(t20, o5(r39));
|
||||
}, t17.promisify.custom = f5, t17.callbackify = function(r40) {
|
||||
if ("function" != typeof r40) throw new TypeError('The "original" argument must be of type Function');
|
||||
if ("function" != typeof r40) throw TypeError('The "original" argument must be of type Function');
|
||||
function callbackified() {
|
||||
for(var t = [], e = 0; e < arguments.length; e++)t.push(arguments[e]);
|
||||
var o = t.pop();
|
||||
if ("function" != typeof o) throw new TypeError("The last argument must be of type Function");
|
||||
if ("function" != typeof o) throw TypeError("The last argument must be of type Function");
|
||||
var n = this, cb = function() {
|
||||
return o.apply(n, arguments);
|
||||
};
|
||||
@ -2276,7 +2276,7 @@
|
||||
p && c && l && o7(f, function(r) {
|
||||
if ("function" == typeof __webpack_require__.g[r]) {
|
||||
var t = new __webpack_require__.g[r]();
|
||||
if (!(Symbol.toStringTag in t)) throw new EvalError("this engine has support for Symbol.toStringTag, but " + r + " does not have the property! Please report this.");
|
||||
if (!(Symbol.toStringTag in t)) throw EvalError("this engine has support for Symbol.toStringTag, but " + r + " does not have the property! Please report this.");
|
||||
var e = l(t), o = c(e, Symbol.toStringTag);
|
||||
if (!o) {
|
||||
var n = l(e);
|
||||
|
@ -1715,7 +1715,7 @@
|
||||
"undefined" != typeof console && console.warn && console.warn.apply(console, arguments);
|
||||
}
|
||||
function reportError(msg, data) {
|
||||
var e = new Error(msg);
|
||||
var e = Error(msg);
|
||||
e.data = data, "object" == typeof console && console.error && console.error(e), setTimeout(function() {
|
||||
throw e;
|
||||
});
|
||||
@ -1778,11 +1778,11 @@
|
||||
useStrictCSP: null
|
||||
};
|
||||
exports.get = function(key) {
|
||||
if (!options.hasOwnProperty(key)) throw new Error("Unknown config key: " + key);
|
||||
if (!options.hasOwnProperty(key)) throw Error("Unknown config key: " + key);
|
||||
return options[key];
|
||||
}, exports.set = function(key, value) {
|
||||
if (options.hasOwnProperty(key)) options[key] = value;
|
||||
else if (!1 == this.setDefaultValue("", key, value)) throw new Error("Unknown config key: " + key);
|
||||
else if (!1 == this.setDefaultValue("", key, value)) throw Error("Unknown config key: " + key);
|
||||
"useStrictCSP" == key && dom.useStrictCSP(value);
|
||||
}, exports.all = function() {
|
||||
return lang.copyObject(options);
|
||||
@ -1790,7 +1790,7 @@
|
||||
if (options.$moduleUrls[name]) return options.$moduleUrls[name];
|
||||
var parts = name.split("/"), sep = "snippets" == (component = component || parts[parts.length - 2] || "") ? "/" : "-", base = parts[parts.length - 1];
|
||||
if ("worker" == component && "-" == sep) {
|
||||
var re = new RegExp("^" + component + "[\\-_]|[\\-_]" + component + "$", "g");
|
||||
var re = RegExp("^" + component + "[\\-_]|[\\-_]" + component + "$", "g");
|
||||
base = base.replace(re, "");
|
||||
}
|
||||
(!base || base == component) && parts.length > 1 && (base = parts[parts.length - 2]);
|
||||
@ -2493,7 +2493,7 @@
|
||||
}
|
||||
exports.L = 0, exports.R = 1, exports.EN = 2, exports.ON_R = 3, exports.AN = 4, exports.R_H = 5, exports.B = 6, exports.RLE = 7, exports.DOT = "\xB7", exports.doBidiReorder = function(text, textCharTypes, isRtl) {
|
||||
if (text.length < 2) return {};
|
||||
var chars1 = text.split(""), logicalFromVisual = new Array(chars1.length), bidiLevels = new Array(chars1.length), levels1 = [];
|
||||
var chars1 = text.split(""), logicalFromVisual = Array(chars1.length), bidiLevels = Array(chars1.length), levels1 = [];
|
||||
dir = isRtl ? 1 : 0, function(chars, levels, len, charTypes) {
|
||||
var impTab = dir ? impTab_RTL : impTab_LTR, prevState = null, newClass = null, newLevel = null, newState = 0, action = null, condPos = -1, i = null, ix = null, classes = [];
|
||||
if (!charTypes) for(i = 0, charTypes = []; i < len; i++)charTypes[i] = _getCharacterType(chars[i]);
|
||||
@ -2922,7 +2922,7 @@
|
||||
var rule = state[i];
|
||||
if (rule.defaultToken && (mapping.defaultToken = rule.defaultToken), rule.caseInsensitive && (flag = "gi"), null != rule.regex) {
|
||||
rule.regex instanceof RegExp && (rule.regex = rule.regex.toString().slice(1, -1));
|
||||
var adjustedregex = rule.regex, matchcount = new RegExp("(?:(" + adjustedregex + ")|(.))").exec("a").length - 2;
|
||||
var adjustedregex = rule.regex, matchcount = RegExp("(?:(" + adjustedregex + ")|(.))").exec("a").length - 2;
|
||||
Array.isArray(rule.token) ? 1 == rule.token.length || 1 == matchcount ? rule.token = rule.token[0] : matchcount - 1 != rule.token.length ? (this.reportError("number of classes and regexp groups doesn't match", {
|
||||
rule: rule,
|
||||
groupCount: matchcount - 1
|
||||
@ -2933,7 +2933,7 @@
|
||||
}
|
||||
ruleRegExps.length || (mapping[0] = 0, ruleRegExps.push("$")), splitterRurles.forEach(function(rule) {
|
||||
rule.splitRegex = this.createSplitterRegexp(rule.regex, flag);
|
||||
}, this), this.regExps[key] = new RegExp("(" + ruleRegExps.join(")|(") + ")|($)", flag);
|
||||
}, this), this.regExps[key] = RegExp("(" + ruleRegExps.join(")|(") + ")|($)", flag);
|
||||
}
|
||||
};
|
||||
(function() {
|
||||
@ -2972,7 +2972,7 @@
|
||||
return inChClass ? inChClass = "]" != square : square ? inChClass = !0 : parenClose ? (stack == lastCapture.stack && (lastCapture.end = index + 1, lastCapture.stack = -1), stack--) : parenOpen && (stack++, 1 != parenOpen.length && (lastCapture.stack = stack, lastCapture.start = index)), m;
|
||||
}), null != lastCapture.end && /^\)*$/.test(src.substr(lastCapture.end)) && (src = src.substring(0, lastCapture.start) + src.substr(lastCapture.end));
|
||||
}
|
||||
return "^" != src.charAt(0) && (src = "^" + src), "$" != src.charAt(src.length - 1) && (src += "$"), new RegExp(src, (flag || "").replace("g", ""));
|
||||
return "^" != src.charAt(0) && (src = "^" + src), "$" != src.charAt(src.length - 1) && (src += "$"), RegExp(src, (flag || "").replace("g", ""));
|
||||
}, this.getLineTokens = function(line, startState) {
|
||||
if (startState && "string" != typeof startState) {
|
||||
var stack = startState.slice(0);
|
||||
@ -4320,14 +4320,14 @@
|
||||
this.HighlightRules = TextHighlightRules;
|
||||
};
|
||||
(function() {
|
||||
this.$defaultBehaviour = new CstyleBehaviour(), this.tokenRe = new RegExp("^[" + unicode.wordChars + "\\$_]+", "g"), this.nonTokenRe = new RegExp("^(?:[^" + unicode.wordChars + "\\$_]|\\s])+", "g"), this.getTokenizer = function() {
|
||||
this.$defaultBehaviour = new CstyleBehaviour(), this.tokenRe = RegExp("^[" + unicode.wordChars + "\\$_]+", "g"), this.nonTokenRe = RegExp("^(?:[^" + unicode.wordChars + "\\$_]|\\s])+", "g"), this.getTokenizer = function() {
|
||||
return this.$tokenizer || (this.$highlightRules = this.$highlightRules || new this.HighlightRules(this.$highlightRuleConfig), this.$tokenizer = new Tokenizer(this.$highlightRules.getRules())), this.$tokenizer;
|
||||
}, this.lineCommentStart = "", this.blockComment = "", this.toggleCommentLines = function(state, session, startRow, endRow) {
|
||||
var doc = session.doc, ignoreBlankLines = !0, shouldRemove = !0, minIndent = 1 / 0, tabSize = session.getTabSize(), insertAtTabStop = !1;
|
||||
if (this.lineCommentStart) {
|
||||
if (Array.isArray(this.lineCommentStart)) var regexpStart = this.lineCommentStart.map(lang.escapeRegExp).join("|"), lineCommentStart = this.lineCommentStart[0];
|
||||
else var regexpStart = lang.escapeRegExp(this.lineCommentStart), lineCommentStart = this.lineCommentStart;
|
||||
regexpStart = new RegExp("^(\\s*)(?:" + regexpStart + ") ?"), insertAtTabStop = session.getUseSoftTabs();
|
||||
regexpStart = RegExp("^(\\s*)(?:" + regexpStart + ") ?"), insertAtTabStop = session.getUseSoftTabs();
|
||||
var uncomment = function(line, i) {
|
||||
var m = line.match(regexpStart);
|
||||
if (m) {
|
||||
@ -4352,7 +4352,7 @@
|
||||
};
|
||||
} else {
|
||||
if (!this.blockComment) return !1;
|
||||
var lineCommentStart = this.blockComment.start, lineCommentEnd = this.blockComment.end, regexpStart = new RegExp("^(\\s*)(?:" + lang.escapeRegExp(lineCommentStart) + ")"), regexpEnd = new RegExp("(?:" + lang.escapeRegExp(lineCommentEnd) + ")\\s*$"), comment = function(line, i) {
|
||||
var lineCommentStart = this.blockComment.start, lineCommentEnd = this.blockComment.end, regexpStart = RegExp("^(\\s*)(?:" + lang.escapeRegExp(lineCommentStart) + ")"), regexpEnd = RegExp("(?:" + lang.escapeRegExp(lineCommentEnd) + ")\\s*$"), comment = function(line, i) {
|
||||
!testRemove(line, i) && (!ignoreBlankLines || /\S/.test(line)) && (doc.insertInLine({
|
||||
row: i,
|
||||
column: line.length
|
||||
@ -4915,13 +4915,13 @@
|
||||
});
|
||||
}, this.addFold = function(fold) {
|
||||
if (fold.sameRow) {
|
||||
if (fold.start.row < this.startRow || fold.endRow > this.endRow) throw new Error("Can't add a fold to this FoldLine as it has no connection");
|
||||
if (fold.start.row < this.startRow || fold.endRow > this.endRow) throw Error("Can't add a fold to this FoldLine as it has no connection");
|
||||
this.folds.push(fold), this.folds.sort(function(a, b) {
|
||||
return -a.range.compareEnd(b.start.row, b.start.column);
|
||||
}), this.range.compareEnd(fold.start.row, fold.start.column) > 0 ? (this.end.row = fold.end.row, this.end.column = fold.end.column) : 0 > this.range.compareStart(fold.end.row, fold.end.column) && (this.start.row = fold.start.row, this.start.column = fold.start.column);
|
||||
} else if (fold.start.row == this.end.row) this.folds.push(fold), this.end.row = fold.end.row, this.end.column = fold.end.column;
|
||||
else if (fold.end.row == this.start.row) this.folds.unshift(fold), this.start.row = fold.start.row, this.start.column = fold.start.column;
|
||||
else throw new Error("Trying to add fold to FoldRow that doesn't have a matching row");
|
||||
else throw Error("Trying to add fold to FoldRow that doesn't have a matching row");
|
||||
fold.foldLine = this;
|
||||
}, this.containsRow = function(row) {
|
||||
return row >= this.start.row && row <= this.end.row;
|
||||
@ -5374,7 +5374,7 @@
|
||||
var iterator = new TokenIterator(this, row, column), token = iterator.getCurrentToken(), type = token && token.type;
|
||||
if (token && /^comment|string/.test(type)) {
|
||||
"comment" == (type = type.match(/comment|string/)[0]) && (type += "|doc-start");
|
||||
var re = new RegExp(type), range = new Range();
|
||||
var re = RegExp(type), range = new Range();
|
||||
if (1 != dir) {
|
||||
do token = iterator.stepBackward();
|
||||
while (token && re.test(token.type))
|
||||
@ -5419,7 +5419,7 @@
|
||||
markbegin: 1,
|
||||
markbeginend: 1
|
||||
}, this.$foldStyle = "markbegin", this.setFoldStyle = function(style) {
|
||||
if (!this.$foldStyles[style]) throw new Error("invalid fold style: " + style + "[" + Object.keys(this.$foldStyles).join(", ") + "]");
|
||||
if (!this.$foldStyles[style]) throw Error("invalid fold style: " + style + "[" + Object.keys(this.$foldStyles).join(", ") + "]");
|
||||
if (this.$foldStyle != style) {
|
||||
this.$foldStyle = style, "manual" == style && this.unfold();
|
||||
var mode = this.$foldMode;
|
||||
@ -5555,7 +5555,7 @@
|
||||
}, this.$findOpeningBracket = function(bracket, position, typeRe) {
|
||||
var openBracket = this.$brackets[bracket], depth = 1, iterator = new TokenIterator(this, position.row, position.column), token = iterator.getCurrentToken();
|
||||
if (token || (token = iterator.stepForward()), token) {
|
||||
typeRe || (typeRe = new RegExp("(\\.?" + token.type.replace(".", "\\.").replace("rparen", ".paren").replace(/\b(?:end)\b/, "(?:start|begin|end)") + ")+"));
|
||||
typeRe || (typeRe = RegExp("(\\.?" + token.type.replace(".", "\\.").replace("rparen", ".paren").replace(/\b(?:end)\b/, "(?:start|begin|end)") + ")+"));
|
||||
for(var valueIndex = position.column - iterator.getCurrentTokenColumn() - 2, value = token.value;;){
|
||||
for(; valueIndex >= 0;){
|
||||
var chr = value.charAt(valueIndex);
|
||||
@ -5577,7 +5577,7 @@
|
||||
}, this.$findClosingBracket = function(bracket, position, typeRe) {
|
||||
var closingBracket = this.$brackets[bracket], depth = 1, iterator = new TokenIterator(this, position.row, position.column), token = iterator.getCurrentToken();
|
||||
if (token || (token = iterator.stepForward()), token) {
|
||||
typeRe || (typeRe = new RegExp("(\\.?" + token.type.replace(".", "\\.").replace("lparen", ".paren").replace(/\b(?:start|begin)\b/, "(?:start|begin|end)") + ")+"));
|
||||
typeRe || (typeRe = RegExp("(\\.?" + token.type.replace(".", "\\.").replace("lparen", ".paren").replace(/\b(?:start|begin)\b/, "(?:start|begin|end)") + ")+"));
|
||||
for(var valueIndex = position.column - iterator.getCurrentTokenColumn();;){
|
||||
for(var value = token.value, valueLength = value.length; valueIndex < valueLength;){
|
||||
var chr = value.charAt(valueIndex);
|
||||
@ -6431,14 +6431,14 @@
|
||||
var modifier = options1.caseSensitive ? "gm" : "gmi";
|
||||
if (options1.$isMultiLine = !$disableFakeMultiline && /[\n\r]/.test(needle1), options1.$isMultiLine) return options1.re = this.$assembleMultilineRegExp(needle1, modifier);
|
||||
try {
|
||||
var re = new RegExp(needle1, modifier);
|
||||
var re = RegExp(needle1, modifier);
|
||||
} catch (e) {
|
||||
re = !1;
|
||||
}
|
||||
return options1.re = re;
|
||||
}, this.$assembleMultilineRegExp = function(needle, modifier) {
|
||||
for(var parts = needle.replace(/\r\n|\r|\n/g, "$\n^").split("\n"), re = [], i = 0; i < parts.length; i++)try {
|
||||
re.push(new RegExp(parts[i], modifier));
|
||||
re.push(RegExp(parts[i], modifier));
|
||||
} catch (e) {
|
||||
return !1;
|
||||
}
|
||||
@ -8425,8 +8425,8 @@
|
||||
itLength = curLength + item.length, delta >= curLength && delta <= itLength && (currentState = item, that.selection.clearSelection(), that.moveCursorTo(row, curLength + currWordStart), that.selection.selectTo(row, itLength + currWordStart)), curLength = itLength;
|
||||
});
|
||||
for(var wordPairs = this.$toggleWordPairs, i = 0; i < wordPairs.length; i++)for(var item1 = wordPairs[i], j = 0; j <= 1; j++){
|
||||
var negate = +!j, firstCondition = currentState.match(new RegExp("^\\s?_?(" + lang.escapeRegExp(item1[j]) + ")\\s?$", "i"));
|
||||
firstCondition && currentState.match(new RegExp("([_]|^|\\s)(" + lang.escapeRegExp(firstCondition[1]) + ")($|\\s)", "g")) && (reg = currentState.replace(new RegExp(lang.escapeRegExp(item1[j]), "i"), function(result) {
|
||||
var negate = +!j, firstCondition = currentState.match(RegExp("^\\s?_?(" + lang.escapeRegExp(item1[j]) + ")\\s?$", "i"));
|
||||
firstCondition && currentState.match(RegExp("([_]|^|\\s)(" + lang.escapeRegExp(firstCondition[1]) + ")($|\\s)", "g")) && (reg = currentState.replace(RegExp(lang.escapeRegExp(item1[j]), "i"), function(result) {
|
||||
var res = item1[negate];
|
||||
return result.toUpperCase() == result ? res = res.toUpperCase() : result.charAt(0).toUpperCase() == result.charAt(0) && (res = res.substr(0, 0) + item1[negate].charAt(0).toUpperCase() + res.substr(1)), res;
|
||||
}), this.insert(reg), reg = "");
|
||||
@ -9204,7 +9204,7 @@
|
||||
if (0 === len) ;
|
||||
else if ("remove" == delta.action) this.$annotations.splice(firstRow, len + 1, null);
|
||||
else {
|
||||
var args = new Array(len + 1);
|
||||
var args = Array(len + 1);
|
||||
args.unshift(firstRow, 1), this.$annotations.splice.apply(this.$annotations, args);
|
||||
}
|
||||
}
|
||||
@ -10901,7 +10901,7 @@ margin: 0 10px;\
|
||||
}
|
||||
function afterLoad(module) {
|
||||
if (_self.$themeId != theme) return cb && cb();
|
||||
if (!module || !module.cssClass) throw new Error("couldn't load module " + theme + " or it didn't call define");
|
||||
if (!module || !module.cssClass) throw Error("couldn't load module " + theme + " or it didn't call define");
|
||||
module.$id && (_self.$themeId = module.$id), dom.importCssString(module.cssText, module.cssClass, _self.container), _self.theme && dom.removeCssClass(_self.container, _self.theme.cssClass);
|
||||
var padding = "padding" in module ? module.padding : "padding" in (_self.theme || {}) ? 4 : _self.$padding;
|
||||
_self.$padding && padding != _self.$padding && _self.setPadding(padding), _self.$theme = module.cssClass, _self.theme = module, dom.addCssClass(_self.container, module.cssClass), dom.setCssClass(_self.container, "ace_dark", module.isDark), _self.$size && (_self.$size.width = 0, _self.$updateSizeAsync()), _self._dispatchEvent("themeLoaded", {
|
||||
@ -12098,7 +12098,7 @@ background: url("data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAEAAAACCAYAAACZg
|
||||
w && this.removeLineWidget(w);
|
||||
}, this), this.$updateRows();
|
||||
} else {
|
||||
var args = new Array(len);
|
||||
var args = Array(len);
|
||||
lineWidgets[startRow] && null != lineWidgets[startRow].column && delta.start.column > lineWidgets[startRow].column && startRow++, args.unshift(startRow, 0), lineWidgets.splice.apply(lineWidgets, args), this.$updateRows();
|
||||
}
|
||||
}
|
||||
@ -12111,7 +12111,7 @@ background: url("data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAEAAAACCAYAAACZg
|
||||
}), noWidgets && (this.session.lineWidgets = null);
|
||||
}
|
||||
}, this.$registerLineWidget = function(w) {
|
||||
this.session.lineWidgets || (this.session.lineWidgets = new Array(this.session.getLength()));
|
||||
this.session.lineWidgets || (this.session.lineWidgets = Array(this.session.getLength()));
|
||||
var old = this.session.lineWidgets[w.row];
|
||||
return old && (w.$oldWidget = old, old.el && old.el.parentNode && (old.el.parentNode.removeChild(old.el), old._inDocument = !1)), this.session.lineWidgets[w.row] = w, w;
|
||||
}, this.addLineWidget = function(w) {
|
||||
@ -12349,7 +12349,7 @@ background: url("data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAEAAAACCAYAAACZg
|
||||
require("./worker/worker_client"), require("./keyboard/hash_handler"), require("./placeholder"), require("./multi_select"), require("./mode/folding/fold_mode"), require("./theme/textmate"), require("./ext/error_marker"), exports.config = require("./config"), exports.require = require, exports.define = __webpack_require__.amdD, exports.edit = function(el, options) {
|
||||
if ("string" == typeof el) {
|
||||
var _id = el;
|
||||
if (!(el = document.getElementById(_id))) throw new Error("ace.edit can't find div #" + _id);
|
||||
if (!(el = document.getElementById(_id))) throw Error("ace.edit can't find div #" + _id);
|
||||
}
|
||||
if (el && el.env && el.env.editor instanceof Editor) return el.env.editor;
|
||||
var value = "";
|
||||
|
File diff suppressed because it is too large
Load Diff
@ -3497,7 +3497,7 @@
|
||||
}), destination);
|
||||
}
|
||||
deepmerge.all = function(array, options) {
|
||||
if (!Array.isArray(array)) throw new Error("first argument should be an array");
|
||||
if (!Array.isArray(array)) throw Error("first argument should be an array");
|
||||
return array.reduce(function(prev, next) {
|
||||
return deepmerge(prev, next, options);
|
||||
}, {});
|
||||
@ -4455,8 +4455,8 @@
|
||||
}
|
||||
var A1 = void 0 !== process && (process.env.REACT_APP_SC_ATTR || process.env.SC_ATTR) || "data-styled", I1 = "undefined" != typeof window && "HTMLElement" in window, P1 = Boolean("boolean" == typeof SC_DISABLE_SPEEDY ? SC_DISABLE_SPEEDY : void 0 !== process && void 0 !== process.env.REACT_APP_SC_DISABLE_SPEEDY && "" !== process.env.REACT_APP_SC_DISABLE_SPEEDY ? "false" !== process.env.REACT_APP_SC_DISABLE_SPEEDY && process.env.REACT_APP_SC_DISABLE_SPEEDY : void 0 !== process && void 0 !== process.env.SC_DISABLE_SPEEDY && "" !== process.env.SC_DISABLE_SPEEDY && "false" !== process.env.SC_DISABLE_SPEEDY && process.env.SC_DISABLE_SPEEDY), O1 = {};
|
||||
function j(e) {
|
||||
for(var t = arguments.length, n = new Array(t > 1 ? t - 1 : 0), r = 1; r < t; r++)n[r - 1] = arguments[r];
|
||||
throw new Error("An error occurred. See https://git.io/JUIaE#" + e + " for more information." + (n.length > 0 ? " Args: " + n.join(", ") : ""));
|
||||
for(var t = arguments.length, n = Array(t > 1 ? t - 1 : 0), r = 1; r < t; r++)n[r - 1] = arguments[r];
|
||||
throw Error("An error occurred. See https://git.io/JUIaE#" + e + " for more information." + (n.length > 0 ? " Args: " + n.join(", ") : ""));
|
||||
}
|
||||
var T1 = function() {
|
||||
function e1(e) {
|
||||
@ -4492,7 +4492,7 @@
|
||||
return x1.set(e, t), k1.set(t, e), t;
|
||||
}, M1 = function(e, t) {
|
||||
t >= V1 && (V1 = t + 1), x1.set(e, t), k1.set(t, e);
|
||||
}, G1 = "style[" + A1 + '][data-styled-version="5.3.5"]', L1 = new RegExp("^" + A1 + '\\.g(\\d+)\\[id="([\\w\\d-]+)"\\].*?"([^"]*)'), F1 = function(e, t, n) {
|
||||
}, G1 = "style[" + A1 + '][data-styled-version="5.3.5"]', L1 = RegExp("^" + A1 + '\\.g(\\d+)\\[id="([\\w\\d-]+)"\\].*?"([^"]*)'), F1 = function(e, t, n) {
|
||||
for(var r, o = n.split(","), s = 0, i = o.length; s < i; s++)(r = o[s]) && e.registerName(t, r);
|
||||
}, Y1 = function(e, t) {
|
||||
for(var n = (t.textContent || "").split("/*!sc*/\n"), r = [], o = 0, s = n.length; o < s; o++){
|
||||
@ -4725,7 +4725,7 @@
|
||||
function m(e, s, i, a) {
|
||||
void 0 === a && (a = "&");
|
||||
var c = e.replace(ie, "");
|
||||
return t10 = a, n3 = s, r2 = new RegExp("\\" + n3 + "\\b", "g"), o1 = new RegExp("(\\" + n3 + "\\b){2,}"), l1(i || !s ? "" : s, s && i ? i + " " + s + " { " + c + " }" : c);
|
||||
return t10 = a, r2 = RegExp("\\" + (n3 = s) + "\\b", "g"), o1 = RegExp("(\\" + n3 + "\\b){2,}"), l1(i || !s ? "" : s, s && i ? i + " " + s + " { " + c + " }" : c);
|
||||
}
|
||||
return l1.use([].concat(u1, [
|
||||
function(e, t, o) {
|
||||
@ -4824,7 +4824,7 @@
|
||||
return Array.isArray(e) && (e.isCss = !0), e;
|
||||
};
|
||||
function Ce(e) {
|
||||
for(var t = arguments.length, n = new Array(t > 1 ? t - 1 : 0), r = 1; r < t; r++)n[r - 1] = arguments[r];
|
||||
for(var t = arguments.length, n = Array(t > 1 ? t - 1 : 0), r = 1; r < t; r++)n[r - 1] = arguments[r];
|
||||
return b1(e) || S1(e) ? Ae(Ne(g1(w1, [
|
||||
e
|
||||
].concat(n)))) : 0 === n.length && 1 === e.length && "string" == typeof e[0] ? e : Ae(Ne(g1(e, n)));
|
||||
@ -4849,7 +4849,7 @@
|
||||
Ve(t) && Ve(r) ? Me(r, t) : e[n] = t;
|
||||
}
|
||||
function Me(e) {
|
||||
for(var t = arguments.length, n = new Array(t > 1 ? t - 1 : 0), r = 1; r < t; r++)n[r - 1] = arguments[r];
|
||||
for(var t = arguments.length, n = Array(t > 1 ? t - 1 : 0), r = 1; r < t; r++)n[r - 1] = arguments[r];
|
||||
for(var o = 0, s = n; o < s.length; o++){
|
||||
var e17, i = s[o];
|
||||
if (Ve(i)) for(var a in i)"__proto__" !== (e17 = a) && "constructor" !== e17 && "prototype" !== e17 && ze(e, i[a], a);
|
||||
@ -5233,7 +5233,7 @@
|
||||
config[key] = createStyleFunction(conf);
|
||||
}), createParser1(config);
|
||||
}, compose = function() {
|
||||
for(var config = {}, _len = arguments.length, parsers = new Array(_len), _key = 0; _key < _len; _key++)parsers[_key] = arguments[_key];
|
||||
for(var config = {}, _len = arguments.length, parsers = Array(_len), _key = 0; _key < _len; _key++)parsers[_key] = arguments[_key];
|
||||
return parsers.forEach(function(parser) {
|
||||
parser && parser.config && object_assign_default()(config, parser.config);
|
||||
}), createParser1(config);
|
||||
@ -6419,9 +6419,9 @@
|
||||
return target;
|
||||
}).apply(this, arguments);
|
||||
}
|
||||
Boolean("undefined" != typeof window && window.document && window.document.createElement);
|
||||
"undefined" != typeof window && window.document && window.document.createElement;
|
||||
const GlobalStyle = function(e29) {
|
||||
for(var t22 = arguments.length, n11 = new Array(t22 > 1 ? t22 - 1 : 0), o7 = 1; o7 < t22; o7++)n11[o7 - 1] = arguments[o7];
|
||||
for(var t22 = arguments.length, n11 = Array(t22 > 1 ? t22 - 1 : 0), o7 = 1; o7 < t22; o7++)n11[o7 - 1] = arguments[o7];
|
||||
var i = Ce.apply(void 0, [
|
||||
e29
|
||||
].concat(n11)), a = "sc-global-" + xe(JSON.stringify(i)), u = new $e(i, a);
|
||||
@ -6496,10 +6496,10 @@
|
||||
162: function(e31) {
|
||||
var r8, n, u, t24 = e31.exports = {};
|
||||
function defaultSetTimout() {
|
||||
throw new Error("setTimeout has not been defined");
|
||||
throw Error("setTimeout has not been defined");
|
||||
}
|
||||
function defaultClearTimeout() {
|
||||
throw new Error("clearTimeout has not been defined");
|
||||
throw Error("clearTimeout has not been defined");
|
||||
}
|
||||
function runTimeout(e) {
|
||||
if (r8 === setTimeout) return setTimeout(e, 0);
|
||||
@ -6558,7 +6558,7 @@
|
||||
}
|
||||
function noop() {}
|
||||
t24.nextTick = function(e) {
|
||||
var t = new Array(arguments.length - 1);
|
||||
var t = Array(arguments.length - 1);
|
||||
if (arguments.length > 1) for(var r = 1; r < arguments.length; r++)t[r - 1] = arguments[r];
|
||||
i.push(new Item(e, t)), 1 !== i.length || o || runTimeout(drainQueue);
|
||||
}, Item.prototype.run = function() {
|
||||
@ -6566,11 +6566,11 @@
|
||||
}, t24.title = "browser", t24.browser = !0, t24.env = {}, t24.argv = [], t24.version = "", t24.versions = {}, t24.on = noop, t24.addListener = noop, t24.once = noop, t24.off = noop, t24.removeListener = noop, t24.removeAllListeners = noop, t24.emit = noop, t24.prependListener = noop, t24.prependOnceListener = noop, t24.listeners = function(e) {
|
||||
return [];
|
||||
}, t24.binding = function(e) {
|
||||
throw new Error("process.binding is not supported");
|
||||
throw Error("process.binding is not supported");
|
||||
}, t24.cwd = function() {
|
||||
return "/";
|
||||
}, t24.chdir = function(e) {
|
||||
throw new Error("process.chdir is not supported");
|
||||
throw Error("process.chdir is not supported");
|
||||
}, t24.umask = function() {
|
||||
return 0;
|
||||
};
|
||||
|
@ -4,7 +4,7 @@
|
||||
],
|
||||
{
|
||||
4816: function(__unused_webpack_module, __webpack_exports__, __webpack_require__) {
|
||||
return new Error(`MUI: \`<DataGrid pageSize={${props.pageSize}} />\` is not a valid prop.
|
||||
return Error(`MUI: \`<DataGrid pageSize={${props.pageSize}} />\` is not a valid prop.
|
||||
Only page size below ${MAX_PAGE_SIZE} is available in the MIT version.
|
||||
|
||||
You need to upgrade to the DataGridPro component to unlock this feature.`);
|
||||
|
@ -2,6 +2,6 @@ export const obj = {
|
||||
_routeToRegExp: function(route) {
|
||||
return route = route.replace(escapeRegExp, "\\$&").replace(optionalParam, "(?:$1)?").replace(namedParam, function(match, optional) {
|
||||
return optional ? match : "([^/]+)";
|
||||
}).replace(splatParam, "(.*?)"), new RegExp("^" + route + "$");
|
||||
}).replace(splatParam, "(.*?)"), RegExp("^" + route + "$");
|
||||
}
|
||||
};
|
||||
|
@ -5,7 +5,7 @@ export const obj = {
|
||||
contexts[i] = this, values[i] = arguments.length > 1 ? core_slice.call(arguments) : value, values === progressValues ? deferred.notifyWith(contexts, values) : --remaining || deferred.resolveWith(contexts, values);
|
||||
};
|
||||
};
|
||||
if (length > 1) for(progressValues = new Array(length), progressContexts = new Array(length), resolveContexts = new Array(length); i1 < length; i1++)resolveValues[i1] && jQuery.isFunction(resolveValues[i1].promise) ? resolveValues[i1].promise().done(updateFunc(i1, resolveContexts, resolveValues)).fail(deferred.reject).progress(updateFunc(i1, progressContexts, progressValues)) : --remaining;
|
||||
if (length > 1) for(progressValues = Array(length), progressContexts = Array(length), resolveContexts = Array(length); i1 < length; i1++)resolveValues[i1] && jQuery.isFunction(resolveValues[i1].promise) ? resolveValues[i1].promise().done(updateFunc(i1, resolveContexts, resolveValues)).fail(deferred.reject).progress(updateFunc(i1, progressContexts, progressValues)) : --remaining;
|
||||
return remaining || deferred.resolveWith(resolveContexts, resolveValues), deferred.promise();
|
||||
}
|
||||
};
|
||||
|
@ -87,7 +87,7 @@
|
||||
}
|
||||
function _arrayLikeToArray(arr, len) {
|
||||
(null == len || len > arr.length) && (len = arr.length);
|
||||
for(var i = 0, arr2 = new Array(len); i < len; i++)arr2[i] = arr[i];
|
||||
for(var i = 0, arr2 = Array(len); i < len; i++)arr2[i] = arr[i];
|
||||
return arr2;
|
||||
}
|
||||
Object.defineProperty(exports, "__esModule", {
|
||||
@ -231,7 +231,7 @@
|
||||
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.");
|
||||
throw TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");
|
||||
}
|
||||
var it, err, normalCompletion = !0, didErr = !1;
|
||||
return {
|
||||
|
@ -87,7 +87,7 @@
|
||||
}
|
||||
function _arrayLikeToArray(arr, len) {
|
||||
(null == len || len > arr.length) && (len = arr.length);
|
||||
for(var i = 0, arr2 = new Array(len); i < len; i++)arr2[i] = arr[i];
|
||||
for(var i = 0, arr2 = Array(len); i < len; i++)arr2[i] = arr[i];
|
||||
return arr2;
|
||||
}
|
||||
Object.defineProperty(exports, "__esModule", {
|
||||
@ -231,7 +231,7 @@
|
||||
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.");
|
||||
throw TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");
|
||||
}
|
||||
var it, err, normalCompletion = !0, didErr = !1;
|
||||
return {
|
||||
|
@ -119,7 +119,7 @@
|
||||
}
|
||||
function _arrayLikeToArray(arr, len) {
|
||||
(null == len || len > arr.length) && (len = arr.length);
|
||||
for(var i = 0, arr2 = new Array(len); i < len; i++)arr2[i] = arr[i];
|
||||
for(var i = 0, arr2 = Array(len); i < len; i++)arr2[i] = arr[i];
|
||||
return arr2;
|
||||
}
|
||||
Object.defineProperty(exports, "__esModule", {
|
||||
@ -263,7 +263,7 @@
|
||||
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.");
|
||||
throw TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");
|
||||
}
|
||||
var it, err, normalCompletion = !0, didErr = !1;
|
||||
return {
|
||||
|
@ -87,7 +87,7 @@
|
||||
}
|
||||
function _arrayLikeToArray(arr, len) {
|
||||
(null == len || len > arr.length) && (len = arr.length);
|
||||
for(var i = 0, arr2 = new Array(len); i < len; i++)arr2[i] = arr[i];
|
||||
for(var i = 0, arr2 = Array(len); i < len; i++)arr2[i] = arr[i];
|
||||
return arr2;
|
||||
}
|
||||
Object.defineProperty(exports, "__esModule", {
|
||||
@ -231,7 +231,7 @@
|
||||
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.");
|
||||
throw TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");
|
||||
}
|
||||
var it, err, normalCompletion = !0, didErr = !1;
|
||||
return {
|
||||
|
@ -87,7 +87,7 @@
|
||||
}
|
||||
function _arrayLikeToArray(arr, len) {
|
||||
(null == len || len > arr.length) && (len = arr.length);
|
||||
for(var i = 0, arr2 = new Array(len); i < len; i++)arr2[i] = arr[i];
|
||||
for(var i = 0, arr2 = Array(len); i < len; i++)arr2[i] = arr[i];
|
||||
return arr2;
|
||||
}
|
||||
Object.defineProperty(exports, "__esModule", {
|
||||
@ -231,7 +231,7 @@
|
||||
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.");
|
||||
throw TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");
|
||||
}
|
||||
var it, err, normalCompletion = !0, didErr = !1;
|
||||
return {
|
||||
|
@ -6,7 +6,7 @@
|
||||
2911: function(__unused_webpack___webpack_module__, __webpack_exports__, __webpack_require__) {
|
||||
"use strict";
|
||||
function _assertThisInitialized(self) {
|
||||
if (void 0 === self) throw new ReferenceError("this hasn't been initialised - super() hasn't been called");
|
||||
if (void 0 === self) throw ReferenceError("this hasn't been initialised - super() hasn't been called");
|
||||
return self;
|
||||
}
|
||||
__webpack_require__.d(__webpack_exports__, {
|
||||
@ -18,7 +18,7 @@
|
||||
8436: function(__unused_webpack___webpack_module__, __webpack_exports__, __webpack_require__) {
|
||||
"use strict";
|
||||
function _classCallCheck(instance, Constructor) {
|
||||
if (!(instance instanceof Constructor)) throw new TypeError("Cannot call a class as a function");
|
||||
if (!(instance instanceof Constructor)) throw TypeError("Cannot call a class as a function");
|
||||
}
|
||||
__webpack_require__.d(__webpack_exports__, {
|
||||
Z: function() {
|
||||
@ -80,7 +80,7 @@
|
||||
})(o2, p1);
|
||||
}
|
||||
function _inherits(subClass, superClass) {
|
||||
if ("function" != typeof superClass && null !== superClass) throw new TypeError("Super expression must either be null or a function");
|
||||
if ("function" != typeof superClass && null !== superClass) throw TypeError("Super expression must either be null or a function");
|
||||
subClass.prototype = Object.create(superClass && superClass.prototype, {
|
||||
constructor: {
|
||||
value: subClass,
|
||||
@ -198,7 +198,7 @@
|
||||
}
|
||||
function _arrayLikeToArray(arr, len) {
|
||||
(null == len || len > arr.length) && (len = arr.length);
|
||||
for(var i = 0, arr2 = new Array(len); i < len; i++)arr2[i] = arr[i];
|
||||
for(var i = 0, arr2 = Array(len); i < len; i++)arr2[i] = arr[i];
|
||||
return arr2;
|
||||
}
|
||||
Object.defineProperty(exports, "__esModule", {
|
||||
@ -342,7 +342,7 @@
|
||||
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.");
|
||||
throw TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");
|
||||
}
|
||||
var it, err, normalCompletion = !0, didErr = !1;
|
||||
return {
|
||||
@ -456,7 +456,7 @@
|
||||
function Welcome() {
|
||||
var _this;
|
||||
(0, _Users_timneutkens_projects_next_js_node_modules_babel_runtime_helpers_esm_classCallCheck__WEBPACK_IMPORTED_MODULE_5__.Z)(this, Welcome);
|
||||
for(var _len = arguments.length, args = new Array(_len), _key = 0; _key < _len; _key++)args[_key] = arguments[_key];
|
||||
for(var _len = arguments.length, args = Array(_len), _key = 0; _key < _len; _key++)args[_key] = arguments[_key];
|
||||
return _this = _super.call.apply(_super, [
|
||||
this
|
||||
].concat(args)), (0, _Users_timneutkens_projects_next_js_node_modules_babel_runtime_helpers_esm_defineProperty__WEBPACK_IMPORTED_MODULE_6__.Z)((0, _Users_timneutkens_projects_next_js_node_modules_babel_runtime_helpers_esm_assertThisInitialized__WEBPACK_IMPORTED_MODULE_7__.Z)(_this), "state", {
|
||||
|
@ -87,7 +87,7 @@
|
||||
}
|
||||
function _arrayLikeToArray(arr, len) {
|
||||
(null == len || len > arr.length) && (len = arr.length);
|
||||
for(var i = 0, arr2 = new Array(len); i < len; i++)arr2[i] = arr[i];
|
||||
for(var i = 0, arr2 = Array(len); i < len; i++)arr2[i] = arr[i];
|
||||
return arr2;
|
||||
}
|
||||
Object.defineProperty(exports, "__esModule", {
|
||||
@ -231,7 +231,7 @@
|
||||
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.");
|
||||
throw TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");
|
||||
}
|
||||
var it, err, normalCompletion = !0, didErr = !1;
|
||||
return {
|
||||
|
@ -87,7 +87,7 @@
|
||||
}
|
||||
function _arrayLikeToArray(arr, len) {
|
||||
(null == len || len > arr.length) && (len = arr.length);
|
||||
for(var i = 0, arr2 = new Array(len); i < len; i++)arr2[i] = arr[i];
|
||||
for(var i = 0, arr2 = Array(len); i < len; i++)arr2[i] = arr[i];
|
||||
return arr2;
|
||||
}
|
||||
Object.defineProperty(exports, "__esModule", {
|
||||
@ -231,7 +231,7 @@
|
||||
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.");
|
||||
throw TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");
|
||||
}
|
||||
var it, err, normalCompletion = !0, didErr = !1;
|
||||
return {
|
||||
|
@ -87,7 +87,7 @@
|
||||
}
|
||||
function _arrayLikeToArray(arr, len) {
|
||||
(null == len || len > arr.length) && (len = arr.length);
|
||||
for(var i = 0, arr2 = new Array(len); i < len; i++)arr2[i] = arr[i];
|
||||
for(var i = 0, arr2 = Array(len); i < len; i++)arr2[i] = arr[i];
|
||||
return arr2;
|
||||
}
|
||||
Object.defineProperty(exports, "__esModule", {
|
||||
@ -231,7 +231,7 @@
|
||||
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.");
|
||||
throw TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");
|
||||
}
|
||||
var it, err, normalCompletion = !0, didErr = !1;
|
||||
return {
|
||||
|
@ -87,7 +87,7 @@
|
||||
}
|
||||
function _arrayLikeToArray(arr, len) {
|
||||
(null == len || len > arr.length) && (len = arr.length);
|
||||
for(var i = 0, arr2 = new Array(len); i < len; i++)arr2[i] = arr[i];
|
||||
for(var i = 0, arr2 = Array(len); i < len; i++)arr2[i] = arr[i];
|
||||
return arr2;
|
||||
}
|
||||
Object.defineProperty(exports, "__esModule", {
|
||||
@ -231,7 +231,7 @@
|
||||
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.");
|
||||
throw TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");
|
||||
}
|
||||
var it, err, normalCompletion = !0, didErr = !1;
|
||||
return {
|
||||
|
@ -1,4 +1,4 @@
|
||||
function warn(format) {
|
||||
for(var _len = arguments.length, args = new Array(_len > 1 ? _len - 1 : 0), _key = 1; _key < _len; _key++)args[_key - 1] = arguments[_key];
|
||||
for(var _len = arguments.length, args = Array(_len > 1 ? _len - 1 : 0), _key = 1; _key < _len; _key++)args[_key - 1] = arguments[_key];
|
||||
printWarning("warn", format, args);
|
||||
}
|
||||
|
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
@ -1 +1 @@
|
||||
export default function(c,f){try{if("string"==typeof c&&c.length>0)return function(b){if((b=String(b)).length>100)throw new Error("Value exceeds the maximum length of 100 characters.");const c=/^(-?(?:\d+)?\.?\d+) *(milliseconds?|msecs?|ms|seconds?|secs?|s|minutes?|mins?|m|hours?|hrs?|h|days?|d|weeks?|w|years?|yrs?|y)?$/i.exec(b);if(!c)return NaN;const a=parseFloat(c[1]),d=(c[2]||"ms").toLowerCase();switch(d){case"years":case"year":case"yrs":case"yr":case"y":return 315576e5*a;case"weeks":case"week":case"w":return 6048e5*a;case"days":case"day":case"d":return 864e5*a;case"hours":case"hour":case"hrs":case"hr":case"h":return 36e5*a;case"minutes":case"minute":case"mins":case"min":case"m":return 6e4*a;case"seconds":case"second":case"secs":case"sec":case"s":return 1e3*a;case"milliseconds":case"millisecond":case"msecs":case"msec":case"ms":return a;default:throw new Error(`The unit ${d} was matched, but no matching case exists.`)}}(c);if("number"==typeof c&&isFinite(c))return f?.long?b(c):a(c);throw new Error("Value is not a string or number.")}catch(e){const g=d(e)?`${e.message}. value=${JSON.stringify(c)}`:"An unknown error has occured.";throw new Error(g)}};function a(a){const b=Math.abs(a);return b>=864e5?`${Math.round(a/864e5)}d`:b>=36e5?`${Math.round(a/36e5)}h`:b>=6e4?`${Math.round(a/6e4)}m`:b>=1e3?`${Math.round(a/1e3)}s`:`${a}ms`}function b(b){const a=Math.abs(b);return a>=864e5?c(b,a,864e5,"day"):a>=36e5?c(b,a,36e5,"hour"):a>=6e4?c(b,a,6e4,"minute"):a>=1e3?c(b,a,1e3,"second"):`${b} ms`}function c(b,c,a,d){return`${Math.round(b/a)} ${d}${c>=1.5*a?"s":""}`}function d(a){return"object"==typeof a&&null!==a&&"message"in a}
|
||||
export default function(c,f){try{if("string"==typeof c&&c.length>0)return function(b){if((b=String(b)).length>100)throw Error("Value exceeds the maximum length of 100 characters.");const c=/^(-?(?:\d+)?\.?\d+) *(milliseconds?|msecs?|ms|seconds?|secs?|s|minutes?|mins?|m|hours?|hrs?|h|days?|d|weeks?|w|years?|yrs?|y)?$/i.exec(b);if(!c)return NaN;const a=parseFloat(c[1]),d=(c[2]||"ms").toLowerCase();switch(d){case"years":case"year":case"yrs":case"yr":case"y":return 315576e5*a;case"weeks":case"week":case"w":return 6048e5*a;case"days":case"day":case"d":return 864e5*a;case"hours":case"hour":case"hrs":case"hr":case"h":return 36e5*a;case"minutes":case"minute":case"mins":case"min":case"m":return 6e4*a;case"seconds":case"second":case"secs":case"sec":case"s":return 1e3*a;case"milliseconds":case"millisecond":case"msecs":case"msec":case"ms":return a;default:throw Error(`The unit ${d} was matched, but no matching case exists.`)}}(c);if("number"==typeof c&&isFinite(c))return f?.long?b(c):a(c);throw Error("Value is not a string or number.")}catch(e){const g=d(e)?`${e.message}. value=${JSON.stringify(c)}`:"An unknown error has occured.";throw Error(g)}};function a(a){const b=Math.abs(a);return b>=864e5?`${Math.round(a/864e5)}d`:b>=36e5?`${Math.round(a/36e5)}h`:b>=6e4?`${Math.round(a/6e4)}m`:b>=1e3?`${Math.round(a/1e3)}s`:`${a}ms`}function b(b){const a=Math.abs(b);return a>=864e5?c(b,a,864e5,"day"):a>=36e5?c(b,a,36e5,"hour"):a>=6e4?c(b,a,6e4,"minute"):a>=1e3?c(b,a,1e3,"second"):`${b} ms`}function c(b,c,a,d){return`${Math.round(b/a)} ${d}${c>=1.5*a?"s":""}`}function d(a){return"object"==typeof a&&null!==a&&"message"in a}
|
||||
|
@ -7,7 +7,7 @@
|
||||
var arg, index = +match.slice(1, -1);
|
||||
return index + 2 < templateArgs.length ? "function" == typeof (arg = templateArgs[index + 2]) ? arg.toString().replace(/ ?\{[\s\S]*$/, "") : void 0 === arg ? "undefined" : "string" != typeof arg ? toJson(arg) : arg : match;
|
||||
})) + "\nhttp://errors.angularjs.org/1.2.5/" + (module ? module + "/" : "") + code; i < arguments.length; i++)message = message + (2 == i ? "?" : "&") + "p" + (i - 2) + "=" + encodeURIComponent((obj = arguments[i], "function" == typeof obj ? obj.toString().replace(/ \{[\s\S]*$/, "") : void 0 === obj ? "undefined" : "string" != typeof obj ? JSON.stringify(obj) : obj));
|
||||
return new Error(message);
|
||||
return Error(message);
|
||||
};
|
||||
}
|
||||
var promiseWarning, msie, jqLite, jQuery, angularModule, nodeName_, lowercase = function(string) {
|
||||
@ -145,7 +145,7 @@
|
||||
}), source)destination[key1] = copy(source[key1]);
|
||||
setHashKey(destination, h);
|
||||
}
|
||||
} else destination = source, source && (isArray(source) ? destination = copy(source, []) : isDate(source) ? destination = new Date(source.getTime()) : isRegExp(source) ? destination = new RegExp(source.source) : isObject(source) && (destination = copy(source, {})));
|
||||
} else destination = source, source && (isArray(source) ? destination = copy(source, []) : isDate(source) ? destination = new Date(source.getTime()) : isRegExp(source) ? destination = RegExp(source.source) : isObject(source) && (destination = copy(source, {})));
|
||||
return destination;
|
||||
}
|
||||
function equals(o1, o2) {
|
||||
@ -2511,8 +2511,8 @@
|
||||
var code = "var l, fn, p;\n";
|
||||
forEach(pathKeys, function(key, index) {
|
||||
ensureSafeMemberName(key, fullExp), code += "if(s === null || s === undefined) return s;\nl=s;\ns=" + (index ? "s" : '((k&&k.hasOwnProperty("' + key + '"))?k:s)') + '["' + key + '"];\n' + (options.unwrapPromises ? 'if (s && s.then) {\n pw("' + fullExp.replace(/(["\r\n])/g, "\\$1") + '");\n if (!("$$v" in s)) {\n p=s;\n p.$$v = undefined;\n p.then(function(v) {p.$$v=v;});\n}\n s=s.$$v\n}\n' : "");
|
||||
}), code += "return s;";
|
||||
var evaledFnGetter = new Function("s", "k", "pw", code);
|
||||
});
|
||||
var evaledFnGetter = Function("s", "k", "pw", code += "return s;");
|
||||
evaledFnGetter.toString = function() {
|
||||
return code;
|
||||
}, fn = function(scope, locals) {
|
||||
@ -2957,9 +2957,9 @@
|
||||
if (isString(matcher)) {
|
||||
var s;
|
||||
if (matcher.indexOf("***") > -1) throw $sceMinErr("iwcard", "Illegal sequence *** in string matcher. String: {0}", matcher);
|
||||
return matcher = matcher.replace(/([-()\[\]{}+?*.$\^|,:#<!\\])/g, "\\$1").replace(/\x08/g, "\\x08").replace("\\*\\*", ".*").replace("\\*", "[^:/.?&;]*"), new RegExp("^" + matcher + "$");
|
||||
return RegExp("^" + (matcher = matcher.replace(/([-()\[\]{}+?*.$\^|,:#<!\\])/g, "\\$1").replace(/\x08/g, "\\x08").replace("\\*\\*", ".*").replace("\\*", "[^:/.?&;]*")) + "$");
|
||||
}
|
||||
if (isRegExp(matcher)) return new RegExp("^" + matcher.source + "$");
|
||||
if (isRegExp(matcher)) return RegExp("^" + matcher.source + "$");
|
||||
throw $sceMinErr("imatcher", 'Matchers may only be "self", string patterns or RegExp objects');
|
||||
}(matcher1));
|
||||
}), adjustedMatchers;
|
||||
@ -3630,7 +3630,7 @@
|
||||
if (ctrl.$isEmpty(value) || regexp.test(value)) return ctrl.$setValidity("pattern", !0), value;
|
||||
ctrl.$setValidity("pattern", !1);
|
||||
};
|
||||
if (pattern && ((match = pattern.match(/^\/(.*)\/([gim]*)$/)) ? (pattern = new RegExp(match[1], match[2]), patternValidator = function(value) {
|
||||
if (pattern && ((match = pattern.match(/^\/(.*)\/([gim]*)$/)) ? (pattern = RegExp(match[1], match[2]), patternValidator = function(value) {
|
||||
return validate(pattern, value);
|
||||
}) : patternValidator = function(value) {
|
||||
var patternObj = scope.$eval(pattern);
|
||||
@ -3747,7 +3747,7 @@
|
||||
return {
|
||||
require: "ngModel",
|
||||
link: function(scope, element, attr, ctrl) {
|
||||
var match = /\/(.*)\//.exec(attr.ngList), separator = match && new RegExp(match[1]) || attr.ngList || ",";
|
||||
var match = /\/(.*)\//.exec(attr.ngList), separator = match && RegExp(match[1]) || attr.ngList || ",";
|
||||
ctrl.$parsers.push(function(viewValue) {
|
||||
if (!isUndefined(viewValue)) {
|
||||
var list = [];
|
||||
|
@ -351,7 +351,7 @@
|
||||
return this.where(attrs, !0);
|
||||
},
|
||||
sort: function(options) {
|
||||
if (!this.comparator) throw new Error("Cannot sort a set without a comparator");
|
||||
if (!this.comparator) throw Error("Cannot sort a set without a comparator");
|
||||
return options || (options = {}), _.isString(this.comparator) || 1 === this.comparator.length ? this.models = this.sortBy(this.comparator, this) : this.models.sort(_.bind(this.comparator, this)), options.silent || this.trigger("sort", this, options), this;
|
||||
},
|
||||
pluck: function(attr) {
|
||||
@ -561,9 +561,9 @@
|
||||
}
|
||||
},
|
||||
_routeToRegExp: function(route) {
|
||||
return route = route.replace(escapeRegExp, "\\$&").replace(optionalParam, "(?:$1)?").replace(namedParam, function(match, optional) {
|
||||
return RegExp("^" + (route = route.replace(escapeRegExp, "\\$&").replace(optionalParam, "(?:$1)?").replace(namedParam, function(match, optional) {
|
||||
return optional ? match : "([^/]+)";
|
||||
}).replace(splatParam, "(.*?)"), new RegExp("^" + route + "$");
|
||||
}).replace(splatParam, "(.*?)")) + "$");
|
||||
},
|
||||
_extractParameters: function(route, fragment) {
|
||||
var params = route.exec(fragment).slice(1);
|
||||
@ -592,7 +592,7 @@
|
||||
return fragment.replace(routeStripper, "");
|
||||
},
|
||||
start: function(options) {
|
||||
if (History.started) throw new Error("Backbone.history has already been started");
|
||||
if (History.started) throw Error("Backbone.history has already been started");
|
||||
History.started = !0, this.options = _.extend({
|
||||
root: "/"
|
||||
}, this.options, options), this.root = this.options.root, this._wantsHashChange = !1 !== this.options.hashChange, this._wantsPushState = !!this.options.pushState, this._hasPushState = !!(this.options.pushState && this.history && this.history.pushState);
|
||||
@ -656,7 +656,7 @@
|
||||
return Surrogate.prototype = parent.prototype, child.prototype = new Surrogate(), protoProps && _.extend(child.prototype, protoProps), child.__super__ = parent.prototype, child;
|
||||
};
|
||||
var urlError = function() {
|
||||
throw new Error('A "url" property or function must be specified');
|
||||
throw Error('A "url" property or function must be specified');
|
||||
}, wrapError = function(model, options) {
|
||||
var error = options.error;
|
||||
options.error = function(resp) {
|
||||
|
@ -138,7 +138,7 @@
|
||||
return !0;
|
||||
},
|
||||
error: function(msg) {
|
||||
throw new Error(msg);
|
||||
throw Error(msg);
|
||||
},
|
||||
parseHTML: function(data, context, keepScripts) {
|
||||
if (!data || "string" != typeof data) return null;
|
||||
@ -151,7 +151,7 @@
|
||||
], context, scripts), scripts && jQuery(scripts).remove(), jQuery.merge([], parsed.childNodes));
|
||||
},
|
||||
parseJSON: function(data) {
|
||||
return window1.JSON && window1.JSON.parse ? window1.JSON.parse(data) : null === data ? data : "string" == typeof data && (data = jQuery.trim(data)) && rvalidchars.test(data.replace(rvalidescape, "@").replace(rvalidtokens, "]").replace(rvalidbraces, "")) ? new Function("return " + data)() : void jQuery.error("Invalid JSON: " + data);
|
||||
return window1.JSON && window1.JSON.parse ? window1.JSON.parse(data) : null === data ? data : "string" == typeof data && (data = jQuery.trim(data)) && rvalidchars.test(data.replace(rvalidescape, "@").replace(rvalidtokens, "]").replace(rvalidbraces, "")) ? Function("return " + data)() : void jQuery.error("Invalid JSON: " + data);
|
||||
},
|
||||
parseXML: function(data) {
|
||||
var xml;
|
||||
@ -385,7 +385,7 @@
|
||||
contexts[i] = this, values[i] = arguments.length > 1 ? core_slice.call(arguments) : value, values === progressValues ? deferred.notifyWith(contexts, values) : --remaining || deferred.resolveWith(contexts, values);
|
||||
};
|
||||
};
|
||||
if (length > 1) for(progressValues = new Array(length), progressContexts = new Array(length), resolveContexts = new Array(length); i1 < length; i1++)resolveValues[i1] && jQuery.isFunction(resolveValues[i1].promise) ? resolveValues[i1].promise().done(updateFunc(i1, resolveContexts, resolveValues)).fail(deferred.reject).progress(updateFunc(i1, progressContexts, progressValues)) : --remaining;
|
||||
if (length > 1) for(progressValues = Array(length), progressContexts = Array(length), resolveContexts = Array(length); i1 < length; i1++)resolveValues[i1] && jQuery.isFunction(resolveValues[i1].promise) ? resolveValues[i1].promise().done(updateFunc(i1, resolveContexts, resolveValues)).fail(deferred.reject).progress(updateFunc(i1, progressContexts, progressValues)) : --remaining;
|
||||
return remaining || deferred.resolveWith(resolveContexts, resolveValues), deferred.promise();
|
||||
}
|
||||
}), jQuery.support = function() {
|
||||
@ -855,7 +855,7 @@
|
||||
for(type in events)jQuery.event.remove(elem, type + types[t], handler, selector, !0);
|
||||
continue;
|
||||
}
|
||||
for(special = jQuery.event.special[type] || {}, handlers = events[type = (selector ? special.delegateType : special.bindType) || type] || [], tmp = tmp[2] && new RegExp("(^|\\.)" + namespaces.join("\\.(?:.*\\.|)") + "(\\.|$)"), origCount = j = handlers.length; j--;)handleObj = handlers[j], (mappedTypes || origType === handleObj.origType) && (!handler || handler.guid === handleObj.guid) && (!tmp || tmp.test(handleObj.namespace)) && (!selector || selector === handleObj.selector || "**" === selector && handleObj.selector) && (handlers.splice(j, 1), handleObj.selector && handlers.delegateCount--, special.remove && special.remove.call(elem, handleObj));
|
||||
for(special = jQuery.event.special[type] || {}, handlers = events[type = (selector ? special.delegateType : special.bindType) || type] || [], tmp = tmp[2] && RegExp("(^|\\.)" + namespaces.join("\\.(?:.*\\.|)") + "(\\.|$)"), origCount = j = handlers.length; j--;)handleObj = handlers[j], (mappedTypes || origType === handleObj.origType) && (!handler || handler.guid === handleObj.guid) && (!tmp || tmp.test(handleObj.namespace)) && (!selector || selector === handleObj.selector || "**" === selector && handleObj.selector) && (handlers.splice(j, 1), handleObj.selector && handlers.delegateCount--, special.remove && special.remove.call(elem, handleObj));
|
||||
origCount && !handlers.length && (special.teardown && !1 !== special.teardown.call(elem, namespaces, elemData.handle) || jQuery.removeEvent(elem, type, elemData.handle), delete events[type]);
|
||||
}
|
||||
jQuery.isEmptyObject(events) && (delete elemData.handle, jQuery._removeData(elem, "events"));
|
||||
@ -865,7 +865,7 @@
|
||||
var handle, ontype, cur, bubbleType, special, tmp, i, eventPath = [
|
||||
elem || document1
|
||||
], type = core_hasOwn.call(event, "type") ? event.type : event, namespaces = core_hasOwn.call(event, "namespace") ? event.namespace.split(".") : [];
|
||||
if (cur = tmp = elem = elem || document1, !(3 === elem.nodeType || 8 === elem.nodeType || rfocusMorph.test(type + jQuery.event.triggered)) && (type.indexOf(".") >= 0 && (type = (namespaces = type.split(".")).shift(), namespaces.sort()), ontype = 0 > type.indexOf(":") && "on" + type, (event = event[jQuery.expando] ? event : new jQuery.Event(type, "object" == typeof event && event)).isTrigger = !0, event.namespace = namespaces.join("."), event.namespace_re = event.namespace ? new RegExp("(^|\\.)" + namespaces.join("\\.(?:.*\\.|)") + "(\\.|$)") : null, event.result = undefined, event.target || (event.target = elem), data = null == data ? [
|
||||
if (cur = tmp = elem = elem || document1, !(3 === elem.nodeType || 8 === elem.nodeType || rfocusMorph.test(type + jQuery.event.triggered)) && (type.indexOf(".") >= 0 && (type = (namespaces = type.split(".")).shift(), namespaces.sort()), ontype = 0 > type.indexOf(":") && "on" + type, (event = event[jQuery.expando] ? event : new jQuery.Event(type, "object" == typeof event && event)).isTrigger = !0, event.namespace = namespaces.join("."), event.namespace_re = event.namespace ? RegExp("(^|\\.)" + namespaces.join("\\.(?:.*\\.|)") + "(\\.|$)") : null, event.result = undefined, event.target || (event.target = elem), data = null == data ? [
|
||||
event
|
||||
] : jQuery.makeArray(data, [
|
||||
event
|
||||
@ -1111,15 +1111,15 @@
|
||||
var i2, cachedruns, Expr, getText, isXML, compile, hasDuplicate, outermostContext, setDocument, document, docElem, documentIsXML, rbuggyQSA, rbuggyMatches, matches1, contains, sortOrder, expando = "sizzle" + -new Date(), preferredDoc = window.document, support = {}, dirruns = 0, done = 0, classCache = createCache(), tokenCache = createCache(), compilerCache = createCache(), strundefined = "undefined", arr = [], pop = arr.pop, push = arr.push, slice = arr.slice, indexOf = arr.indexOf || function(elem) {
|
||||
for(var i = 0, len = this.length; i < len; i++)if (this[i] === elem) return i;
|
||||
return -1;
|
||||
}, whitespace = "[\\x20\\t\\r\\n\\f]", characterEncoding = "(?:\\\\.|[\\w-]|[^\\x00-\\xa0])+", identifier = characterEncoding.replace("w", "w#"), attributes = "\\[" + whitespace + "*(" + characterEncoding + ")" + whitespace + "*(?:([*^$|!~]?=)" + whitespace + "*(?:(['\"])((?:\\\\.|[^\\\\])*?)\\3|(" + identifier + ")|)|)" + whitespace + "*\\]", pseudos = ":(" + characterEncoding + ")(?:\\(((['\"])((?:\\\\.|[^\\\\])*?)\\3|((?:\\\\.|[^\\\\()[\\]]|" + attributes.replace(3, 8) + ")*)|.*)\\)|)", rtrim = new RegExp("^" + whitespace + "+|((?:^|[^\\\\])(?:\\\\.)*)" + whitespace + "+$", "g"), rcomma = new RegExp("^" + whitespace + "*," + whitespace + "*"), rcombinators = new RegExp("^" + whitespace + "*([\\x20\\t\\r\\n\\f>+~])" + whitespace + "*"), rpseudo = new RegExp(pseudos), ridentifier = new RegExp("^" + identifier + "$"), matchExpr = {
|
||||
ID: new RegExp("^#(" + characterEncoding + ")"),
|
||||
CLASS: new RegExp("^\\.(" + characterEncoding + ")"),
|
||||
NAME: new RegExp("^\\[name=['\"]?(" + characterEncoding + ")['\"]?\\]"),
|
||||
TAG: new RegExp("^(" + characterEncoding.replace("w", "w*") + ")"),
|
||||
ATTR: new RegExp("^" + attributes),
|
||||
PSEUDO: new RegExp("^" + pseudos),
|
||||
CHILD: new RegExp("^:(only|first|last|nth|nth-last)-(child|of-type)(?:\\(" + whitespace + "*(even|odd|(([+-]|)(\\d*)n|)" + whitespace + "*(?:([+-]|)" + whitespace + "*(\\d+)|))" + whitespace + "*\\)|)", "i"),
|
||||
needsContext: new RegExp("^" + whitespace + "*[>+~]|:(even|odd|eq|gt|lt|nth|first|last)(?:\\(" + whitespace + "*((?:-\\d)?\\d*)" + whitespace + "*\\)|)(?=[^-]|$)", "i")
|
||||
}, whitespace = "[\\x20\\t\\r\\n\\f]", characterEncoding = "(?:\\\\.|[\\w-]|[^\\x00-\\xa0])+", identifier = characterEncoding.replace("w", "w#"), attributes = "\\[" + whitespace + "*(" + characterEncoding + ")" + whitespace + "*(?:([*^$|!~]?=)" + whitespace + "*(?:(['\"])((?:\\\\.|[^\\\\])*?)\\3|(" + identifier + ")|)|)" + whitespace + "*\\]", pseudos = ":(" + characterEncoding + ")(?:\\(((['\"])((?:\\\\.|[^\\\\])*?)\\3|((?:\\\\.|[^\\\\()[\\]]|" + attributes.replace(3, 8) + ")*)|.*)\\)|)", rtrim = RegExp("^" + whitespace + "+|((?:^|[^\\\\])(?:\\\\.)*)" + whitespace + "+$", "g"), rcomma = RegExp("^" + whitespace + "*," + whitespace + "*"), rcombinators = RegExp("^" + whitespace + "*([\\x20\\t\\r\\n\\f>+~])" + whitespace + "*"), rpseudo = RegExp(pseudos), ridentifier = RegExp("^" + identifier + "$"), matchExpr = {
|
||||
ID: RegExp("^#(" + characterEncoding + ")"),
|
||||
CLASS: RegExp("^\\.(" + characterEncoding + ")"),
|
||||
NAME: RegExp("^\\[name=['\"]?(" + characterEncoding + ")['\"]?\\]"),
|
||||
TAG: RegExp("^(" + characterEncoding.replace("w", "w*") + ")"),
|
||||
ATTR: RegExp("^" + attributes),
|
||||
PSEUDO: RegExp("^" + pseudos),
|
||||
CHILD: RegExp("^:(only|first|last|nth|nth-last)-(child|of-type)(?:\\(" + whitespace + "*(even|odd|(([+-]|)(\\d*)n|)" + whitespace + "*(?:([+-]|)" + whitespace + "*(\\d+)|))" + whitespace + "*\\)|)", "i"),
|
||||
needsContext: RegExp("^" + whitespace + "*[>+~]|:(even|odd|eq|gt|lt|nth|first|last)(?:\\(" + whitespace + "*((?:-\\d)?\\d*)" + whitespace + "*\\)|)(?=[^-]|$)", "i")
|
||||
}, rsibling = /[\x20\t\r\n\f]*[+~]/, rnative = /^[^{]+\{\s*\[native code/, rquickExpr = /^(?:#([\w-]+)|(\w+)|\.([\w-]+))$/, rinputs = /^(?:input|select|textarea|button)$/i, rheader = /^h\d$/i, rescape = /'|\\/g, rattributeQuotes = /\=[\x20\t\r\n\f]*([^'"\]]*)[\x20\t\r\n\f]*\]/g, runescape = /\\([\da-fA-F]{1,6}[\x20\t\r\n\f]?|.)/g, funescape = function(_, escaped) {
|
||||
var high = "0x" + escaped - 0x10000;
|
||||
return high != high ? escaped : high < 0 ? String.fromCharCode(high + 0x10000) : String.fromCharCode(high >> 10 | 0xd800, 0x3ff & high | 0xdc00);
|
||||
@ -1280,7 +1280,7 @@
|
||||
div.innerHTML = "<input type='hidden' i=''/>", div.querySelectorAll("[i^='']").length && rbuggyQSA.push("[*^$]=" + whitespace + "*(?:\"\"|'')"), div.querySelectorAll(":enabled").length || rbuggyQSA.push(":enabled", ":disabled"), div.querySelectorAll("*,:x"), rbuggyQSA.push(",.*:");
|
||||
})), (support.matchesSelector = isNative(matches1 = docElem.matchesSelector || docElem.mozMatchesSelector || docElem.webkitMatchesSelector || docElem.oMatchesSelector || docElem.msMatchesSelector)) && assert(function(div) {
|
||||
support.disconnectedMatch = matches1.call(div, "div"), matches1.call(div, "[s!='']:x"), rbuggyMatches.push("!=", pseudos);
|
||||
}), rbuggyQSA = new RegExp(rbuggyQSA.join("|")), rbuggyMatches = new RegExp(rbuggyMatches.join("|")), contains = isNative(docElem.contains) || docElem.compareDocumentPosition ? function(a, b) {
|
||||
}), rbuggyQSA = RegExp(rbuggyQSA.join("|")), rbuggyMatches = RegExp(rbuggyMatches.join("|")), contains = isNative(docElem.contains) || docElem.compareDocumentPosition ? function(a, b) {
|
||||
var adown = 9 === a.nodeType ? a.documentElement : a, bup = b && b.parentNode;
|
||||
return a === bup || !!(bup && 1 === bup.nodeType && (adown.contains ? adown.contains(bup) : a.compareDocumentPosition && 16 & a.compareDocumentPosition(bup)));
|
||||
} : function(a, b) {
|
||||
@ -1324,7 +1324,7 @@
|
||||
var val;
|
||||
return ((elem.ownerDocument || elem) !== document && setDocument(elem), documentIsXML || (name = name.toLowerCase()), val = Expr.attrHandle[name]) ? val(elem) : documentIsXML || support.attributes ? elem.getAttribute(name) : ((val = elem.getAttributeNode(name)) || elem.getAttribute(name)) && !0 === elem[name] ? name : val && val.specified ? val.value : null;
|
||||
}, Sizzle.error = function(msg) {
|
||||
throw new Error("Syntax error, unrecognized expression: " + msg);
|
||||
throw Error("Syntax error, unrecognized expression: " + msg);
|
||||
}, Sizzle.uniqueSort = function(results) {
|
||||
var elem, duplicates = [], i = 1, j = 0;
|
||||
if (hasDuplicate = !support.detectDuplicates, results.sort(sortOrder), hasDuplicate) {
|
||||
@ -1384,7 +1384,7 @@
|
||||
},
|
||||
CLASS: function(className) {
|
||||
var pattern = classCache[className + " "];
|
||||
return pattern || (pattern = new RegExp("(^|" + whitespace + ")" + className + "(" + whitespace + "|$)"), classCache(className, function(elem) {
|
||||
return pattern || (pattern = RegExp("(^|" + whitespace + ")" + className + "(" + whitespace + "|$)"), classCache(className, function(elem) {
|
||||
return pattern.test(elem.className || typeof elem.getAttribute !== strundefined && elem.getAttribute("class") || "");
|
||||
}));
|
||||
},
|
||||
@ -1828,7 +1828,7 @@
|
||||
return r;
|
||||
}
|
||||
});
|
||||
var nodeNames = "abbr|article|aside|audio|bdi|canvas|data|datalist|details|figcaption|figure|footer|header|hgroup|mark|meter|nav|output|progress|section|summary|time|video", rinlinejQuery = / jQuery\d+="(?:null|\d+)"/g, rnoshimcache = new RegExp("<(?:" + nodeNames + ")[\\s/>]", "i"), rleadingWhitespace = /^\s+/, rxhtmlTag = /<(?!area|br|col|embed|hr|img|input|link|meta|param)(([\w:]+)[^>]*)\/>/gi, rtagName = /<([\w:]+)/, rtbody = /<tbody/i, rhtml = /<|&#?\w+;/, rnoInnerhtml = /<(?:script|style|link)/i, manipulation_rcheckableType = /^(?:checkbox|radio)$/i, rchecked = /checked\s*(?:[^=]|=\s*.checked.)/i, rscriptType = /^$|\/(?:java|ecma)script/i, rscriptTypeMasked = /^true\/(.*)/, rcleanScript = /^\s*<!(?:\[CDATA\[|--)|(?:\]\]|--)>\s*$/g, wrapMap = {
|
||||
var nodeNames = "abbr|article|aside|audio|bdi|canvas|data|datalist|details|figcaption|figure|footer|header|hgroup|mark|meter|nav|output|progress|section|summary|time|video", rinlinejQuery = / jQuery\d+="(?:null|\d+)"/g, rnoshimcache = RegExp("<(?:" + nodeNames + ")[\\s/>]", "i"), rleadingWhitespace = /^\s+/, rxhtmlTag = /<(?!area|br|col|embed|hr|img|input|link|meta|param)(([\w:]+)[^>]*)\/>/gi, rtagName = /<([\w:]+)/, rtbody = /<tbody/i, rhtml = /<|&#?\w+;/, rnoInnerhtml = /<(?:script|style|link)/i, manipulation_rcheckableType = /^(?:checkbox|radio)$/i, rchecked = /checked\s*(?:[^=]|=\s*.checked.)/i, rscriptType = /^$|\/(?:java|ecma)script/i, rscriptTypeMasked = /^true\/(.*)/, rcleanScript = /^\s*<!(?:\[CDATA\[|--)|(?:\]\]|--)>\s*$/g, wrapMap = {
|
||||
option: [
|
||||
1,
|
||||
"<select multiple='multiple'>",
|
||||
@ -2091,7 +2091,7 @@
|
||||
}
|
||||
}
|
||||
});
|
||||
var iframe, getStyles, curCSS, ralpha = /alpha\([^)]*\)/i, ropacity = /opacity\s*=\s*([^)]*)/, rposition = /^(top|right|bottom|left)$/, rdisplayswap = /^(none|table(?!-c[ea]).+)/, rmargin = /^margin/, rnumsplit = new RegExp("^(" + core_pnum + ")(.*)$", "i"), rnumnonpx = new RegExp("^(" + core_pnum + ")(?!px)[a-z%]+$", "i"), rrelNum = new RegExp("^([+-])=(" + core_pnum + ")", "i"), elemdisplay = {
|
||||
var iframe, getStyles, curCSS, ralpha = /alpha\([^)]*\)/i, ropacity = /opacity\s*=\s*([^)]*)/, rposition = /^(top|right|bottom|left)$/, rdisplayswap = /^(none|table(?!-c[ea]).+)/, rmargin = /^margin/, rnumsplit = RegExp("^(" + core_pnum + ")(.*)$", "i"), rnumnonpx = RegExp("^(" + core_pnum + ")(?!px)[a-z%]+$", "i"), rrelNum = RegExp("^([+-])=(" + core_pnum + ")", "i"), elemdisplay = {
|
||||
BODY: "block"
|
||||
}, cssShow = {
|
||||
position: "absolute",
|
||||
@ -2691,7 +2691,7 @@
|
||||
};
|
||||
}
|
||||
});
|
||||
var fxNow, timerId, rfxtypes = /^(?:toggle|show|hide)$/, rfxnum = new RegExp("^(?:([+-])=|)(" + core_pnum + ")([a-z%]*)$", "i"), rrun = /queueHooks$/, animationPrefilters = [
|
||||
var fxNow, timerId, rfxtypes = /^(?:toggle|show|hide)$/, rfxnum = RegExp("^(?:([+-])=|)(" + core_pnum + ")([a-z%]*)$", "i"), rrun = /queueHooks$/, animationPrefilters = [
|
||||
function(elem, props, opts) {
|
||||
var prop1, index, length, value, dataShow, toggle, tween, hooks, oldfire, anim = this, style = elem.style, orig = {}, handled = [], hidden = elem.nodeType && isHidden(elem);
|
||||
for(index in opts.queue || (null == (hooks = jQuery._queueHooks(elem, "fx")).unqueued && (hooks.unqueued = 0, oldfire = hooks.empty.fire, hooks.empty.fire = function() {
|
||||
|
@ -1476,7 +1476,7 @@
|
||||
_loadSuccess: function(absUrl, triggerData, settings, deferred) {
|
||||
var fileUrl = this._createFileUrl(absUrl), dataUrl = this._createDataUrl(absUrl);
|
||||
return $16.proxy(function(html, textStatus, xhr) {
|
||||
var content, pageElemRegex = new RegExp("(<[^>]+\\bdata-" + this._getNs() + "role=[\"']?page[\"']?[^>]*>)"), dataUrlRegex = new RegExp("\\bdata-" + this._getNs() + "url=[\"']?([^\"'>]*)[\"']?");
|
||||
var content, pageElemRegex = RegExp("(<[^>]+\\bdata-" + this._getNs() + "role=[\"']?page[\"']?[^>]*>)"), dataUrlRegex = RegExp("\\bdata-" + this._getNs() + "url=[\"']?([^\"'>]*)[\"']?");
|
||||
pageElemRegex.test(html) && RegExp.$1 && dataUrlRegex.test(RegExp.$1) && RegExp.$1 && (fileUrl = $16.mobile.path.getFilePath($16("<div>" + RegExp.$1 + "</div>").text())), undefined6 === settings.prefetch && this._getBase().set(fileUrl), content = this._parse(html, fileUrl), this._setLoadedTitle(content, html), triggerData.xhr = xhr, triggerData.textStatus = textStatus, triggerData.page = content, triggerData.content = content, this._trigger("load", undefined6, triggerData) && (this._isRewritableBaseTag() && content && this._getBase().rewrite(fileUrl, content), this._include(content, settings), absUrl.indexOf("&" + $16.mobile.subPageUrlKey) > -1 && (content = this.element.children("[data-" + this._getNs() + "url='" + dataUrl + "']")), settings.showLoadMsg && this._hideLoading(), this.element.trigger("pageload"), deferred.resolve(absUrl, settings, content));
|
||||
}, this);
|
||||
},
|
||||
|
@ -236,7 +236,7 @@
|
||||
}
|
||||
};
|
||||
Array.implement("clone", function() {
|
||||
for(var i = this.length, clone = new Array(i); i--;)clone[i] = cloneOf(this[i]);
|
||||
for(var i = this.length, clone = Array(i); i--;)clone[i] = cloneOf(this[i]);
|
||||
return clone;
|
||||
});
|
||||
var mergeOne = function(source, key, current) {
|
||||
@ -454,7 +454,7 @@ var fireEvent, $pick = function() {
|
||||
};
|
||||
String.implement({
|
||||
test: function(regex, params) {
|
||||
return ("regexp" == typeOf(regex) ? regex : new RegExp("" + regex, params)).test(this);
|
||||
return ("regexp" == typeOf(regex) ? regex : RegExp("" + regex, params)).test(this);
|
||||
},
|
||||
contains: function(string, separator) {
|
||||
return separator ? (separator + this + separator).indexOf(separator + string + separator) > -1 : String(this).indexOf(string) > -1;
|
||||
@ -822,7 +822,7 @@ var $try = Function.attempt;
|
||||
} catch (e1) {
|
||||
Array.from = function(item) {
|
||||
if ("string" != typeof item && Type.isEnumerable(item) && "array" != typeOf(item)) {
|
||||
for(var i = item.length, array = new Array(i); i--;)array[i] = item[i];
|
||||
for(var i = item.length, array = Array(i); i--;)array[i] = item[i];
|
||||
return array;
|
||||
}
|
||||
return arrayFrom(item);
|
||||
@ -954,9 +954,9 @@ Event.Keys = {}, Event.Keys = new Hash(Event.Keys), function() {
|
||||
}).extend(this).implement(params);
|
||||
return newClass.$constructor = Class, newClass.prototype.$constructor = newClass, newClass.prototype.parent = parent1, newClass;
|
||||
}), parent1 = function() {
|
||||
if (!this.$caller) throw new Error('The method "parent" cannot be called.');
|
||||
if (!this.$caller) throw Error('The method "parent" cannot be called.');
|
||||
var name = this.$caller.$name, parent = this.$caller.$owner.parent, previous = parent ? parent.prototype[name] : null;
|
||||
if (!previous) throw new Error('The method "' + name + '" has no parent.');
|
||||
if (!previous) throw Error('The method "' + name + '" has no parent.');
|
||||
return previous.apply(this, arguments);
|
||||
}, reset = function(object) {
|
||||
for(var key in object){
|
||||
@ -974,7 +974,7 @@ Event.Keys = {}, Event.Keys = new Hash(Event.Keys), function() {
|
||||
}, wrap = function(self, key, method) {
|
||||
method.$origin && (method = method.$origin);
|
||||
var wrapper = (function() {
|
||||
if (method.$protected && null == this.$caller) throw new Error('The method "' + key + '" cannot be called.');
|
||||
if (method.$protected && null == this.$caller) throw Error('The method "' + key + '" cannot be called.');
|
||||
var caller = this.caller, current = this.$caller;
|
||||
this.caller = current, this.$caller = wrapper;
|
||||
var result = method.apply(this, arguments);
|
||||
@ -1105,7 +1105,7 @@ Event.Keys = {}, Event.Keys = new Hash(Event.Keys), function() {
|
||||
return string.replace(/[-[\]{}()*+?.\\^$|,#\s]/g, function(match) {
|
||||
return "\\" + match;
|
||||
});
|
||||
}, regexp1 = new RegExp("^(?:\\s*(,)\\s*|\\s*(<combinator>+)\\s*|(\\s+)|(<unicode>+|\\*)|\\#(<unicode>+)|\\.(<unicode>+)|\\[\\s*(<unicode1>+)(?:\\s*([*^$!~|]?=)(?:\\s*(?:([\"']?)(.*?)\\9)))?\\s*\\](?!\\])|(:+)(<unicode>+)(?:\\((?:(?:([\"'])([^\\13]*)\\13)|((?:\\([^)]+\\)|[^()]*)+))\\))?)".replace(/<combinator>/, "[" + escapeRegExp(">+~`!@$%^&={}\\;</") + "]").replace(/<unicode>/g, "(?:[\\w\\u00a1-\\uFFFF-]|\\\\[^\\s0-9a-f])").replace(/<unicode1>/g, "(?:[:\\w\\u00a1-\\uFFFF-]|\\\\[^\\s0-9a-f])"));
|
||||
}, regexp1 = RegExp("^(?:\\s*(,)\\s*|\\s*(<combinator>+)\\s*|(\\s+)|(<unicode>+|\\*)|\\#(<unicode>+)|\\.(<unicode>+)|\\[\\s*(<unicode1>+)(?:\\s*([*^$!~|]?=)(?:\\s*(?:([\"']?)(.*?)\\9)))?\\s*\\](?!\\])|(:+)(<unicode>+)(?:\\((?:(?:([\"'])([^\\13]*)\\13)|((?:\\([^)]+\\)|[^()]*)+))\\))?)".replace(/<combinator>/, "[" + escapeRegExp(">+~`!@$%^&={}\\;</") + "]").replace(/<unicode>/g, "(?:[\\w\\u00a1-\\uFFFF-]|\\\\[^\\s0-9a-f])").replace(/<unicode1>/g, "(?:[:\\w\\u00a1-\\uFFFF-]|\\\\[^\\s0-9a-f])"));
|
||||
function parser(rawMatch, separator, combinator, combinatorChildren, tagName, id, className, attributeKey, attributeOperator, attributeQuote, attributeValue, pseudoMarker, pseudoClass, pseudoQuote, pseudoClassQuotedValue, pseudoClassValue) {
|
||||
if ((separator || -1 === separatorIndex) && (parsed.expressions[++separatorIndex] = [], combinatorIndex = -1, separator)) return "";
|
||||
if (combinator || combinatorChildren || -1 === combinatorIndex) {
|
||||
@ -1121,7 +1121,7 @@ Event.Keys = {}, Event.Keys = new Hash(Event.Keys), function() {
|
||||
else if (id) currentParsed.id = id.replace(reUnescape, "");
|
||||
else if (className) className = className.replace(reUnescape, ""), currentParsed.classList || (currentParsed.classList = []), currentParsed.classes || (currentParsed.classes = []), currentParsed.classList.push(className), currentParsed.classes.push({
|
||||
value: className,
|
||||
regexp: new RegExp("(^|\\s)" + escapeRegExp(className) + "(\\s|$)")
|
||||
regexp: RegExp("(^|\\s)" + escapeRegExp(className) + "(\\s|$)")
|
||||
});
|
||||
else if (pseudoClass) pseudoClassValue = (pseudoClassValue = pseudoClassValue || pseudoClassQuotedValue) ? pseudoClassValue.replace(reUnescape, "") : null, currentParsed.pseudos || (currentParsed.pseudos = []), currentParsed.pseudos.push({
|
||||
key: pseudoClass.replace(reUnescape, ""),
|
||||
@ -1131,16 +1131,16 @@ Event.Keys = {}, Event.Keys = new Hash(Event.Keys), function() {
|
||||
else if (attributeKey) {
|
||||
switch(attributeKey = attributeKey.replace(reUnescape, ""), attributeValue = (attributeValue || "").replace(reUnescape, ""), attributeOperator){
|
||||
case "^=":
|
||||
regexp = new RegExp("^" + escapeRegExp(attributeValue));
|
||||
regexp = RegExp("^" + escapeRegExp(attributeValue));
|
||||
break;
|
||||
case "$=":
|
||||
regexp = new RegExp(escapeRegExp(attributeValue) + "$");
|
||||
regexp = RegExp(escapeRegExp(attributeValue) + "$");
|
||||
break;
|
||||
case "~=":
|
||||
regexp = new RegExp("(^|\\s)" + escapeRegExp(attributeValue) + "(\\s|$)");
|
||||
regexp = RegExp("(^|\\s)" + escapeRegExp(attributeValue) + "(\\s|$)");
|
||||
break;
|
||||
case "|=":
|
||||
regexp = new RegExp("^" + escapeRegExp(attributeValue) + "(-|$)");
|
||||
regexp = RegExp("^" + escapeRegExp(attributeValue) + "(-|$)");
|
||||
break;
|
||||
case "=":
|
||||
test = function(value) {
|
||||
@ -1310,7 +1310,7 @@ Event.Keys = {}, Event.Keys = new Hash(Event.Keys), function() {
|
||||
if (nodes = context.getElementsByClassName(name), first) return nodes[0] || null;
|
||||
for(i = 0; node = nodes[i++];)hasOthers && uniques[this.getUID(node)] || found.push(node);
|
||||
} else {
|
||||
var matchClass = new RegExp("(^|\\s)" + Slick.escapeRegExp(name) + "(\\s|$)");
|
||||
var matchClass = RegExp("(^|\\s)" + Slick.escapeRegExp(name) + "(\\s|$)");
|
||||
for(i = 0, nodes = context.getElementsByTagName("*"); node = nodes[i++];)if ((className = node.className) && matchClass.test(className)) {
|
||||
if (first) return node;
|
||||
hasOthers && uniques[this.getUID(node)] || found.push(node);
|
||||
@ -2083,7 +2083,7 @@ Elements.prototype = {
|
||||
return this.hasClass(className) || (this.className = (this.className + " " + className).clean()), this;
|
||||
},
|
||||
removeClass: function(className) {
|
||||
return this.className = this.className.replace(new RegExp("(^|\\s)" + className + "(?:\\s|$)"), "$1"), this;
|
||||
return this.className = this.className.replace(RegExp("(^|\\s)" + className + "(?:\\s|$)"), "$1"), this;
|
||||
},
|
||||
toggleClass: function(className, force) {
|
||||
return null == force && (force = !this.hasClass(className)), force ? this.addClass(className) : this.removeClass(className);
|
||||
@ -3070,7 +3070,7 @@ Elements.prototype = {
|
||||
},
|
||||
search: function(selector) {
|
||||
if (Fx.CSS.Cache[selector]) return Fx.CSS.Cache[selector];
|
||||
var to = {}, selectorTest = new RegExp("^" + selector.escapeRegExp() + "$");
|
||||
var to = {}, selectorTest = RegExp("^" + selector.escapeRegExp() + "$");
|
||||
return Array.each(document.styleSheets, function(sheet, j) {
|
||||
var href = sheet.href;
|
||||
(!(href && href.contains("://")) || href.contains(document.domain)) && Array.each(sheet.rules || sheet.cssRules, function(rule, i) {
|
||||
@ -3571,7 +3571,7 @@ Elements.prototype = {
|
||||
if (!string || "string" != typeOf(string)) return null;
|
||||
if (secure || JSON.secure) {
|
||||
if (JSON.parse) return JSON.parse(string);
|
||||
if (!JSON.validate(string)) throw new Error("JSON could not decode the input; security is enabled and the value is not secure.");
|
||||
if (!JSON.validate(string)) throw Error("JSON could not decode the input; security is enabled and the value is not secure.");
|
||||
}
|
||||
return eval("(" + string + ")");
|
||||
};
|
||||
|
@ -40,11 +40,11 @@
|
||||
assign: _assign
|
||||
};
|
||||
function warn(format) {
|
||||
for(var _len = arguments.length, args = new Array(_len > 1 ? _len - 1 : 0), _key = 1; _key < _len; _key++)args[_key - 1] = arguments[_key];
|
||||
for(var _len = arguments.length, args = Array(_len > 1 ? _len - 1 : 0), _key = 1; _key < _len; _key++)args[_key - 1] = arguments[_key];
|
||||
printWarning("warn", format, args);
|
||||
}
|
||||
function error1(format) {
|
||||
for(var _len2 = arguments.length, args = new Array(_len2 > 1 ? _len2 - 1 : 0), _key2 = 1; _key2 < _len2; _key2++)args[_key2 - 1] = arguments[_key2];
|
||||
for(var _len2 = arguments.length, args = Array(_len2 > 1 ? _len2 - 1 : 0), _key2 = 1; _key2 < _len2; _key2++)args[_key2 - 1] = arguments[_key2];
|
||||
printWarning("error", format, args);
|
||||
}
|
||||
function printWarning(level, format, args) {
|
||||
|
@ -7,11 +7,11 @@
|
||||
"use strict";
|
||||
var devToolsConfig, findFiberByHostInstance, ReactCurrentDispatcher, prevLog, prevInfo, prevWarn, prevError, prevGroup, prevGroupCollapsed, prevGroupEnd, prefix1, componentFrameCache, didWarnValueDefaultValue$1, reusableSVGContainer, attemptUserBlockingHydration, attemptContinuousHydration, attemptHydrationAtCurrentPriority, attemptHydrationAtPriority, lastMovementX, lastMovementY, lastMouseEvent, warnedUnknownTags, suppressHydrationWarning, validatePropertiesInDevelopment, warnForTextDifference, warnForPropDifference, warnForExtraAttributes, warnForInvalidEventListener, canDiffStyleForHydrationWarning, normalizeMarkupForTextOrAttribute, normalizeHTML, SUPPRESS_HYDRATION_WARNING$1, fiberStack, warnedAboutMissingGetChildContext, rendererSigil, didWarnUpdateInsideUpdate, currentlyProcessingQueue, didWarnAboutStateAssignmentForComponent, didWarnAboutUninitializedState, didWarnAboutGetSnapshotBeforeUpdateWithoutDidUpdate, didWarnAboutLegacyLifecyclesAndDerivedState, didWarnAboutUndefinedDerivedState, warnOnUndefinedDerivedState, warnOnInvalidCallback, didWarnAboutDirectlyAssigningPropsToState, didWarnAboutContextTypeAndContextTypes, didWarnAboutInvalidateContextType, didWarnAboutMaps, didWarnAboutGenerators, didWarnAboutStringRefs, ownerHasKeyUseWarning, ownerHasFunctionTypeWarning, rendererSigil$1, didWarnAboutMismatchedHooksForComponent, didWarnAboutUseOpaqueIdentifier, didWarnAboutBadClass, didWarnAboutModulePatternComponent, didWarnAboutContextTypeOnFunctionComponent, didWarnAboutGetDerivedStateOnFunctionComponent, didWarnAboutFunctionRefs, didWarnAboutReassigningProps, didWarnAboutRevealOrder, didWarnAboutTailOptions, appendAllChildren, updateHostContainer, updateHostComponent$1, updateHostText$1, beginWork$1, didWarnAboutUpdateInRenderForAnotherComponent, hasBadMapPolyfill, didWarnAboutNestedUpdates, didWarnAboutFindNodeInStrictMode, topLevelUpdateWarnings, ReactSharedInternals = React.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED;
|
||||
function warn(format) {
|
||||
for(var _len = arguments.length, args = new Array(_len > 1 ? _len - 1 : 0), _key = 1; _key < _len; _key++)args[_key - 1] = arguments[_key];
|
||||
for(var _len = arguments.length, args = Array(_len > 1 ? _len - 1 : 0), _key = 1; _key < _len; _key++)args[_key - 1] = arguments[_key];
|
||||
printWarning("warn", format, args);
|
||||
}
|
||||
function error1(format) {
|
||||
for(var _len2 = arguments.length, args = new Array(_len2 > 1 ? _len2 - 1 : 0), _key2 = 1; _key2 < _len2; _key2++)args[_key2 - 1] = arguments[_key2];
|
||||
for(var _len2 = arguments.length, args = Array(_len2 > 1 ? _len2 - 1 : 0), _key2 = 1; _key2 < _len2; _key2++)args[_key2 - 1] = arguments[_key2];
|
||||
printWarning("error", format, args);
|
||||
}
|
||||
function printWarning(level, format, args) {
|
||||
@ -33,7 +33,7 @@
|
||||
registrationNameDependencies1[registrationName] && error1("EventRegistry: More than one plugin attempted to publish the same registration name, `%s`.", registrationName), registrationNameDependencies1[registrationName] = dependencies, possibleRegistrationNames1[registrationName.toLowerCase()] = registrationName, "onDoubleClick" === registrationName && (possibleRegistrationNames1.ondblclick = registrationName);
|
||||
for(var i = 0; i < dependencies.length; i++)allNativeEvents.add(dependencies[i]);
|
||||
}
|
||||
var canUseDOM = !!("undefined" != typeof window && void 0 !== window.document && void 0 !== window.document.createElement), ATTRIBUTE_NAME_START_CHAR = ":A-Z_a-z\\u00C0-\\u00D6\\u00D8-\\u00F6\\u00F8-\\u02FF\\u0370-\\u037D\\u037F-\\u1FFF\\u200C-\\u200D\\u2070-\\u218F\\u2C00-\\u2FEF\\u3001-\\uD7FF\\uF900-\\uFDCF\\uFDF0-\\uFFFD", ATTRIBUTE_NAME_CHAR = ATTRIBUTE_NAME_START_CHAR + "\\-.0-9\\u00B7\\u0300-\\u036F\\u203F-\\u2040", ROOT_ATTRIBUTE_NAME = "data-reactroot", VALID_ATTRIBUTE_NAME_REGEX = new RegExp("^[" + ATTRIBUTE_NAME_START_CHAR + "][" + ATTRIBUTE_NAME_CHAR + "]*$"), hasOwnProperty = Object.prototype.hasOwnProperty, illegalAttributeNameCache = {}, validatedAttributeNameCache = {};
|
||||
var canUseDOM = !!("undefined" != typeof window && void 0 !== window.document && void 0 !== window.document.createElement), ATTRIBUTE_NAME_START_CHAR = ":A-Z_a-z\\u00C0-\\u00D6\\u00D8-\\u00F6\\u00F8-\\u02FF\\u0370-\\u037D\\u037F-\\u1FFF\\u200C-\\u200D\\u2070-\\u218F\\u2C00-\\u2FEF\\u3001-\\uD7FF\\uF900-\\uFDCF\\uFDF0-\\uFFFD", ATTRIBUTE_NAME_CHAR = ATTRIBUTE_NAME_START_CHAR + "\\-.0-9\\u00B7\\u0300-\\u036F\\u203F-\\u2040", ROOT_ATTRIBUTE_NAME = "data-reactroot", VALID_ATTRIBUTE_NAME_REGEX = RegExp("^[" + ATTRIBUTE_NAME_START_CHAR + "][" + ATTRIBUTE_NAME_CHAR + "]*$"), hasOwnProperty = Object.prototype.hasOwnProperty, illegalAttributeNameCache = {}, validatedAttributeNameCache = {};
|
||||
function isAttributeNameSafe(attributeName) {
|
||||
return !!hasOwnProperty.call(validatedAttributeNameCache, attributeName) || !hasOwnProperty.call(illegalAttributeNameCache, attributeName) && (VALID_ATTRIBUTE_NAME_REGEX.test(attributeName) ? (validatedAttributeNameCache[attributeName] = !0, !0) : (illegalAttributeNameCache[attributeName] = !0, error1("Invalid attribute name: `%s`", attributeName), !1));
|
||||
}
|
||||
@ -1828,7 +1828,7 @@
|
||||
"aria-rowindex": 0,
|
||||
"aria-rowspan": 0,
|
||||
"aria-setsize": 0
|
||||
}, warnedProperties = {}, rARIA = new RegExp("^(aria)-[" + ATTRIBUTE_NAME_CHAR + "]*$"), rARIACamel = new RegExp("^(aria)[A-Z][" + ATTRIBUTE_NAME_CHAR + "]*$"), hasOwnProperty$1 = Object.prototype.hasOwnProperty;
|
||||
}, warnedProperties = {}, rARIA = RegExp("^(aria)-[" + ATTRIBUTE_NAME_CHAR + "]*$"), rARIACamel = RegExp("^(aria)[A-Z][" + ATTRIBUTE_NAME_CHAR + "]*$"), hasOwnProperty$1 = Object.prototype.hasOwnProperty;
|
||||
function validateProperty(tagName, name) {
|
||||
if (hasOwnProperty$1.call(warnedProperties, name) && warnedProperties[name]) return !0;
|
||||
if (rARIACamel.test(name)) {
|
||||
@ -1843,7 +1843,7 @@
|
||||
}
|
||||
return !0;
|
||||
}
|
||||
var didWarnValueNull = !1, validateProperty$1 = function() {}, warnedProperties$1 = {}, _hasOwnProperty = Object.prototype.hasOwnProperty, EVENT_NAME_REGEX = /^on./, INVALID_EVENT_NAME_REGEX = /^on[^A-Z]/, rARIA$1 = new RegExp("^(aria)-[" + ATTRIBUTE_NAME_CHAR + "]*$"), rARIACamel$1 = new RegExp("^(aria)[A-Z][" + ATTRIBUTE_NAME_CHAR + "]*$");
|
||||
var didWarnValueNull = !1, validateProperty$1 = function() {}, warnedProperties$1 = {}, _hasOwnProperty = Object.prototype.hasOwnProperty, EVENT_NAME_REGEX = /^on./, INVALID_EVENT_NAME_REGEX = /^on[^A-Z]/, rARIA$1 = RegExp("^(aria)-[" + ATTRIBUTE_NAME_CHAR + "]*$"), rARIACamel$1 = RegExp("^(aria)[A-Z][" + ATTRIBUTE_NAME_CHAR + "]*$");
|
||||
validateProperty$1 = function(tagName, name, value, eventRegistry) {
|
||||
if (_hasOwnProperty.call(warnedProperties$1, name) && warnedProperties$1[name]) return !0;
|
||||
var lowerCasedName = name.toLowerCase();
|
||||
@ -1977,7 +1977,7 @@
|
||||
} catch (inner) {}
|
||||
}
|
||||
var evtType = "react-" + (name || "invokeguardedcallback");
|
||||
if (window.addEventListener("error", handleWindowError), fakeNode.addEventListener(evtType, callCallback, !1), evt.initEvent(evtType, !1, !1), fakeNode.dispatchEvent(evt), windowEventDescriptor && Object.defineProperty(window, "event", windowEventDescriptor), didCall && didError && (didSetError ? isCrossOriginError && (error = new Error("A cross-origin error was thrown. React doesn't have access to the actual error object in development. See https://reactjs.org/link/crossorigin-error for more information.")) : error = new Error("An error was thrown inside one of your components, but React doesn't know what it was. This is likely due to browser flakiness. React does its best to preserve the \"Pause on exceptions\" behavior of the DevTools, which requires some DEV-mode only tricks. It's possible that these don't work in your browser. Try triggering the error in production mode, or switching to a modern browser. If you suspect that this is actually an issue with React, please file an issue."), this.onError(error)), window.removeEventListener("error", handleWindowError), !didCall) return restoreAfterDispatch(), invokeGuardedCallbackProd.apply(this, arguments);
|
||||
if (window.addEventListener("error", handleWindowError), fakeNode.addEventListener(evtType, callCallback, !1), evt.initEvent(evtType, !1, !1), fakeNode.dispatchEvent(evt), windowEventDescriptor && Object.defineProperty(window, "event", windowEventDescriptor), didCall && didError && (didSetError ? isCrossOriginError && (error = Error("A cross-origin error was thrown. React doesn't have access to the actual error object in development. See https://reactjs.org/link/crossorigin-error for more information.")) : error = Error("An error was thrown inside one of your components, but React doesn't know what it was. This is likely due to browser flakiness. React does its best to preserve the \"Pause on exceptions\" behavior of the DevTools, which requires some DEV-mode only tricks. It's possible that these don't work in your browser. Try triggering the error in production mode, or switching to a modern browser. If you suspect that this is actually an issue with React, please file an issue."), this.onError(error)), window.removeEventListener("error", handleWindowError), !didCall) return restoreAfterDispatch(), invokeGuardedCallbackProd.apply(this, arguments);
|
||||
};
|
||||
}
|
||||
var invokeGuardedCallbackImpl$1 = invokeGuardedCallbackImpl, hasError = !1, caughtError = null, hasRethrowError = !1, rethrowError = null, reporter = {
|
||||
@ -6705,12 +6705,12 @@
|
||||
var updateLanes1 = workInProgress16.lanes;
|
||||
if (workInProgress16._debugNeedsRemount && null !== current13) return function(current, oldWorkInProgress, newWorkInProgress) {
|
||||
var returnFiber = oldWorkInProgress.return;
|
||||
if (null === returnFiber) throw new Error("Cannot swap the root fiber.");
|
||||
if (null === returnFiber) throw Error("Cannot swap the root fiber.");
|
||||
if (current.alternate = null, oldWorkInProgress.alternate = null, newWorkInProgress.index = oldWorkInProgress.index, newWorkInProgress.sibling = oldWorkInProgress.sibling, newWorkInProgress.return = oldWorkInProgress.return, newWorkInProgress.ref = oldWorkInProgress.ref, oldWorkInProgress === returnFiber.child) returnFiber.child = newWorkInProgress;
|
||||
else {
|
||||
var prevSibling = returnFiber.child;
|
||||
if (null === prevSibling) throw new Error("Expected parent to have a child.");
|
||||
for(; prevSibling.sibling !== oldWorkInProgress;)if (null === (prevSibling = prevSibling.sibling)) throw new Error("Expected to find the previous sibling.");
|
||||
if (null === prevSibling) throw Error("Expected parent to have a child.");
|
||||
for(; prevSibling.sibling !== oldWorkInProgress;)if (null === (prevSibling = prevSibling.sibling)) throw Error("Expected to find the previous sibling.");
|
||||
prevSibling.sibling = newWorkInProgress;
|
||||
}
|
||||
var last = returnFiber.lastEffect;
|
||||
@ -7541,7 +7541,7 @@
|
||||
}
|
||||
_workInProgress = _workInProgress.return;
|
||||
}while (null !== _workInProgress)
|
||||
value = new Error((getComponentName(sourceFiber.type) || "A React component") + " suspended while rendering, but no fallback UI was specified.\n\nAdd a <Suspense fallback=...> component higher in the tree to provide a loading indicator or placeholder to display.");
|
||||
value = Error((getComponentName(sourceFiber.type) || "A React component") + " suspended while rendering, but no fallback UI was specified.\n\nAdd a <Suspense fallback=...> component higher in the tree to provide a loading indicator or placeholder to display.");
|
||||
}
|
||||
renderDidError(), value = createCapturedValue(value, sourceFiber);
|
||||
var workInProgress = returnFiber;
|
||||
@ -8949,7 +8949,7 @@
|
||||
case 11:
|
||||
candidateType = type.render;
|
||||
}
|
||||
if (null === resolveFamily) throw new Error("Expected resolveFamily to be set during hot reload.");
|
||||
if (null === resolveFamily) throw Error("Expected resolveFamily to be set during hot reload.");
|
||||
var needsRender = !1, needsRemount = !1;
|
||||
if (null !== candidateType) {
|
||||
var family = resolveFamily(candidateType);
|
||||
@ -8982,7 +8982,7 @@
|
||||
hostInstances.add(node.stateNode.containerInfo);
|
||||
return;
|
||||
}
|
||||
if (null === node.return) throw new Error("Expected to reach root first.");
|
||||
if (null === node.return) throw Error("Expected to reach root first.");
|
||||
node = node.return;
|
||||
}
|
||||
}
|
||||
|
@ -23,7 +23,7 @@
|
||||
if (null == obj && (obj = []), nativeReduce && obj.reduce === nativeReduce) return context && (iterator = _.bind(iterator, context)), initial ? obj.reduce(iterator, memo) : obj.reduce(iterator);
|
||||
if (each(obj, function(value, index, list) {
|
||||
initial ? memo = iterator.call(context, memo, value, index, list) : (memo = value, initial = !0);
|
||||
}), !initial) throw new TypeError(reduceError);
|
||||
}), !initial) throw TypeError(reduceError);
|
||||
return memo;
|
||||
}, _.reduceRight = _.foldr = function(obj, iterator, memo, context) {
|
||||
var initial = arguments.length > 2;
|
||||
@ -35,7 +35,7 @@
|
||||
}
|
||||
if (each(obj, function(value, index, list) {
|
||||
index = keys ? keys[--length] : --length, initial ? memo = iterator.call(context, memo, obj[index], index, list) : (memo = obj[index], initial = !0);
|
||||
}), !initial) throw new TypeError(reduceError);
|
||||
}), !initial) throw TypeError(reduceError);
|
||||
return memo;
|
||||
}, _.find = _.detect = function(obj, iterator, context) {
|
||||
var result;
|
||||
@ -209,7 +209,7 @@
|
||||
return !_.contains(rest, value);
|
||||
});
|
||||
}, _.zip = function() {
|
||||
for(var length = _.max(_.pluck(arguments, "length").concat(0)), results = new Array(length), i = 0; i < length; i++)results[i] = _.pluck(arguments, "" + i);
|
||||
for(var length = _.max(_.pluck(arguments, "length").concat(0)), results = Array(length), i = 0; i < length; i++)results[i] = _.pluck(arguments, "" + i);
|
||||
return results;
|
||||
}, _.object = function(list, values) {
|
||||
if (null == list) return {};
|
||||
@ -233,14 +233,14 @@
|
||||
return -1;
|
||||
}, _.range = function(start, stop, step) {
|
||||
arguments.length <= 1 && (stop = start || 0, start = 0), step = arguments[2] || 1;
|
||||
for(var length = Math.max(Math.ceil((stop - start) / step), 0), idx = 0, range = new Array(length); idx < length;)range[idx++] = start, start += step;
|
||||
for(var length = Math.max(Math.ceil((stop - start) / step), 0), idx = 0, range = Array(length); idx < length;)range[idx++] = start, start += step;
|
||||
return range;
|
||||
};
|
||||
var ctor = function() {};
|
||||
_.bind = function(func, context) {
|
||||
var args, bound;
|
||||
if (nativeBind && func.bind === nativeBind) return nativeBind.apply(func, slice.call(arguments, 1));
|
||||
if (!_.isFunction(func)) throw new TypeError();
|
||||
if (!_.isFunction(func)) throw TypeError();
|
||||
return args = slice.call(arguments, 2), bound = function() {
|
||||
if (!(this instanceof bound)) return func.apply(context, args.concat(slice.call(arguments)));
|
||||
ctor.prototype = func.prototype;
|
||||
@ -256,7 +256,7 @@
|
||||
};
|
||||
}, _.bindAll = function(obj) {
|
||||
var funcs = slice.call(arguments, 1);
|
||||
if (0 === funcs.length) throw new Error("bindAll must be passed function names");
|
||||
if (0 === funcs.length) throw Error("bindAll must be passed function names");
|
||||
return each(funcs, function(f) {
|
||||
obj[f] = _.bind(obj[f], obj);
|
||||
}), obj;
|
||||
@ -323,15 +323,15 @@
|
||||
if (--times < 1) return func.apply(this, arguments);
|
||||
};
|
||||
}, _.keys = nativeKeys || function(obj) {
|
||||
if (obj !== Object(obj)) throw new TypeError("Invalid object");
|
||||
if (obj !== Object(obj)) throw TypeError("Invalid object");
|
||||
var keys = [];
|
||||
for(var key in obj)_.has(obj, key) && keys.push(key);
|
||||
return keys;
|
||||
}, _.values = function(obj) {
|
||||
for(var keys = _.keys(obj), length = keys.length, values = new Array(length), i = 0; i < length; i++)values[i] = obj[keys[i]];
|
||||
for(var keys = _.keys(obj), length = keys.length, values = Array(length), i = 0; i < length; i++)values[i] = obj[keys[i]];
|
||||
return values;
|
||||
}, _.pairs = function(obj) {
|
||||
for(var keys = _.keys(obj), length = keys.length, pairs = new Array(length), i = 0; i < length; i++)pairs[i] = [
|
||||
for(var keys = _.keys(obj), length = keys.length, pairs = Array(length), i = 0; i < length; i++)pairs[i] = [
|
||||
keys[i],
|
||||
obj[keys[i]]
|
||||
];
|
||||
@ -460,8 +460,8 @@
|
||||
};
|
||||
entityMap.unescape = _.invert(entityMap.escape);
|
||||
var entityRegexes = {
|
||||
escape: new RegExp("[" + _.keys(entityMap.escape).join("") + "]", "g"),
|
||||
unescape: new RegExp("(" + _.keys(entityMap.unescape).join("|") + ")", "g")
|
||||
escape: RegExp("[" + _.keys(entityMap.escape).join("") + "]", "g"),
|
||||
unescape: RegExp("(" + _.keys(entityMap.unescape).join("|") + ")", "g")
|
||||
};
|
||||
_.each([
|
||||
"escape",
|
||||
@ -508,7 +508,7 @@
|
||||
}, escaper = /\\|'|\r|\n|\t|\u2028|\u2029/g;
|
||||
_.template = function(text, data1, settings) {
|
||||
settings = _.defaults({}, settings, _.templateSettings);
|
||||
var render, matcher = new RegExp([
|
||||
var render, matcher = RegExp([
|
||||
(settings.escape || noMatch).source,
|
||||
(settings.interpolate || noMatch).source,
|
||||
(settings.evaluate || noMatch).source,
|
||||
@ -519,7 +519,7 @@
|
||||
}), escape && (source += "'+\n((__t=(" + escape + "))==null?'':_.escape(__t))+\n'"), interpolate && (source += "'+\n((__t=(" + interpolate + "))==null?'':__t)+\n'"), evaluate && (source += "';\n" + evaluate + "\n__p+='"), index = offset + match1.length, match1;
|
||||
}), source += "';\n", settings.variable || (source = "with(obj||{}){\n" + source + "}\n"), source = "var __t,__p='',__j=Array.prototype.join,print=function(){__p+=__j.call(arguments,'');};\n" + source + "return __p;\n";
|
||||
try {
|
||||
render = new Function(settings.variable || "obj", "_", source);
|
||||
render = Function(settings.variable || "obj", "_", source);
|
||||
} catch (e) {
|
||||
throw e.source = source, e;
|
||||
}
|
||||
|
@ -271,7 +271,7 @@ var YUI = function() {
|
||||
error: function(msg, e, src) {
|
||||
var ret;
|
||||
if (this.config.errorFn && (ret = this.config.errorFn.apply(this, arguments)), ret) this.message(msg, "error", "" + src);
|
||||
else throw e || new Error(msg);
|
||||
else throw e || Error(msg);
|
||||
return this;
|
||||
},
|
||||
guid: function(pre) {
|
||||
@ -308,7 +308,7 @@ var YUI = function() {
|
||||
"[object Array]": "array",
|
||||
"[object Date]": "date",
|
||||
"[object Error]": "error"
|
||||
}, SUBREGEX = /\{\s*([^|}]+?)\s*(?:\|([^}]*))?\s*\}/g, WHITESPACE = "\x09\x0A\x0B\x0C\x0D\x20\xA0\u1680\u180E\u2000\u2001\u2002\u2003\u2004\u2005\u2006\u2007\u2008\u2009\u200A\u2028\u2029\u202F\u205F\u3000\uFEFF", WHITESPACE_CLASS = "[\x09-\x0D\x20\xA0\u1680\u180E\u2000-\u200A\u2028\u2029\u202F\u205F\u3000\uFEFF]+", TRIM_LEFT_REGEX = new RegExp("^" + WHITESPACE_CLASS), TRIM_RIGHT_REGEX = new RegExp(WHITESPACE_CLASS + "$"), TRIMREGEX = new RegExp(TRIM_LEFT_REGEX.source + "|" + TRIM_RIGHT_REGEX.source, "g"), NATIVE_FN_REGEX = /\{\s*\[(?:native code|function)\]\s*\}/i;
|
||||
}, SUBREGEX = /\{\s*([^|}]+?)\s*(?:\|([^}]*))?\s*\}/g, WHITESPACE = "\x09\x0A\x0B\x0C\x0D\x20\xA0\u1680\u180E\u2000\u2001\u2002\u2003\u2004\u2005\u2006\u2007\u2008\u2009\u200A\u2028\u2029\u202F\u205F\u3000\uFEFF", WHITESPACE_CLASS = "[\x09-\x0D\x20\xA0\u1680\u180E\u2000-\u200A\u2028\u2029\u202F\u205F\u3000\uFEFF]+", TRIM_LEFT_REGEX = RegExp("^" + WHITESPACE_CLASS), TRIM_RIGHT_REGEX = RegExp(WHITESPACE_CLASS + "$"), TRIMREGEX = RegExp(TRIM_LEFT_REGEX.source + "|" + TRIM_RIGHT_REGEX.source, "g"), NATIVE_FN_REGEX = /\{\s*\[(?:native code|function)\]\s*\}/i;
|
||||
L._isNative = function(fn) {
|
||||
return !!(Y.config.useNativeES5 && fn && NATIVE_FN_REGEX.test(fn));
|
||||
}, L.isArray = L._isNative(Array.isArray) ? Array.isArray : function(o) {
|
||||
@ -481,7 +481,7 @@ var YUI = function() {
|
||||
return !!obj && hasOwn.call(obj, key);
|
||||
};
|
||||
O.hasKey = owns, O.keys = Lang._isNative(Object.keys) && !hasProtoEnumBug ? Object.keys : function(obj) {
|
||||
if (!Lang.isObject(obj)) throw new TypeError("Object.keys called on a non-object");
|
||||
if (!Lang.isObject(obj)) throw TypeError("Object.keys called on a non-object");
|
||||
var i, key, len, keys = [];
|
||||
if (hasProtoEnumBug && "function" == typeof obj) for(key in obj)owns(obj, key) && "prototype" !== key && keys.push(key);
|
||||
else for(key in obj)owns(obj, key) && keys.push(key);
|
||||
@ -1717,7 +1717,7 @@ var YUI = function() {
|
||||
loadNext: function() {},
|
||||
_filter: function(u, name, group) {
|
||||
var f = this.filter, hasFilter = name && name in this.filters, modFilter = hasFilter && this.filters[name], groupName = group || (this.moduleInfo[name] ? this.moduleInfo[name].group : null);
|
||||
return groupName && this.groups[groupName] && this.groups[groupName].filter && (modFilter = this.groups[groupName].filter, hasFilter = !0), u && (hasFilter && (f = L.isString(modFilter) ? this.FILTER_DEFS[modFilter.toUpperCase()] || null : modFilter), f && (u = u.replace(new RegExp(f.searchExp, "g"), f.replaceStr))), u;
|
||||
return groupName && this.groups[groupName] && this.groups[groupName].filter && (modFilter = this.groups[groupName].filter, hasFilter = !0), u && (hasFilter && (f = L.isString(modFilter) ? this.FILTER_DEFS[modFilter.toUpperCase()] || null : modFilter), f && (u = u.replace(RegExp(f.searchExp, "g"), f.replaceStr))), u;
|
||||
},
|
||||
_url: function(path, name, base) {
|
||||
return this._filter((base || this.base || "") + path, name);
|
||||
|
@ -1,5 +1,5 @@
|
||||
console.log(new Array());
|
||||
console.log(new Array(0));
|
||||
console.log(new Array(1));
|
||||
console.log(new Array(11));
|
||||
console.log(new Array(12));
|
||||
console.log(Array());
|
||||
console.log(Array(0));
|
||||
console.log(Array(1));
|
||||
console.log(Array(11));
|
||||
console.log(Array(12));
|
||||
|
@ -5,7 +5,7 @@ try {
|
||||
do {
|
||||
a = "FAIL_2";
|
||||
(b = function() {
|
||||
throw new Error("PASS");
|
||||
throw Error("PASS");
|
||||
}()) && b.c;
|
||||
}while (0)
|
||||
}
|
||||
|
Some files were not shown because too many files have changed in this diff Show More
Loading…
Reference in New Issue
Block a user