fix(es/minifier): Remove wrong variable joiner pass (#5992)

**Description:**

We had two passes for joining variables. This PR removes one in the full optimizer, which is wrong.

**Related issue:**

 - Closes https://github.com/swc-project/swc/issues/5989.
This commit is contained in:
Donny/강동윤 2022-09-29 19:11:18 +09:00 committed by GitHub
parent 48b83fb69d
commit f8358fbe2b
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
55 changed files with 9480 additions and 1006 deletions

View File

@ -14,7 +14,7 @@ define([
});
}(exports, {
E1: function() {
return E1;
return E11;
},
C1: function() {
return C1;
@ -24,7 +24,7 @@ define([
"use strict";
_classCallCheck(this, C1), this.m1 = 42;
};
C1.s1 = !0, (E11 = E1 || (E1 = {}))[E11.A = 0] = "A", E11[E11.B = 1] = "B", E11[E11.C = 2] = "C";
C1.s1 = !0, (E1 = E11 || (E11 = {}))[E1.A = 0] = "A", E1[E1.B = 1] = "B", E1[E1.C = 2] = "C";
});
//// [foo_1.ts]
define([

View File

@ -34,7 +34,7 @@ var M, N, O, C = function(_E) {
}(M.D);
N.E = E;
}(N || (N = {})), function(O) {
var P, Q, P1, D2, Q1, E2, C2 = function(_E2) {
var P, D2, Q, E2, P1, Q1, C2 = function(_E2) {
"use strict";
_inherits(C2, _E2);
var _super = _create_super(C2);
@ -42,8 +42,8 @@ var M, N, O, C = function(_E) {
return _class_call_check(this, C2), _super.apply(this, arguments);
}
return C2;
}(Q.E2);
P1 = P || (P = {}), D2 = function(C2) {
}(Q1.E2);
P = P1 || (P1 = {}), D2 = function(C2) {
"use strict";
_inherits(D2, C2);
var _super = _create_super(D2);
@ -51,7 +51,7 @@ var M, N, O, C = function(_E) {
return _class_call_check(this, D2), _super.apply(this, arguments);
}
return D2;
}(C2), P1.D2 = D2, Q1 = Q || (Q = {}), E2 = function(_D2) {
}(C2), P.D2 = D2, Q = Q1 || (Q1 = {}), E2 = function(_D2) {
"use strict";
_inherits(E2, _D2);
var _super = _create_super(E2);
@ -59,5 +59,5 @@ var M, N, O, C = function(_E) {
return _class_call_check(this, E2), _super.apply(this, arguments);
}
return E2;
}(P.D2), Q1.E2 = E2;
}(P1.D2), Q.E2 = E2;
}(O || (O = {}));

View File

@ -27,10 +27,10 @@ define([
return C;
},
E: function() {
return E;
return E1;
},
D: function() {
return D;
return D1;
},
M: function() {
return M;
@ -39,13 +39,13 @@ define([
return a;
}
}), _classCallCheck = _classCallCheck.default;
var E, D, M, v = 1;
var E, D, x, E1, D1, M, v = 1;
function f() {}
var E1, D1, x, C = function C() {
var C = function C() {
"use strict";
_classCallCheck(this, C);
};
(E1 = E || (E = {}))[E1.A = 0] = "A", E1[E1.B = 1] = "B", E1[E1.C = 2] = "C", (D1 = D || (D = {}))[D1.A = 0] = "A", D1[D1.B = 1] = "B", D1[D1.C = 2] = "C", (M || (M = {})).x = x;
(E = E1 || (E1 = {}))[E.A = 0] = "A", E[E.B = 1] = "B", E[E.C = 2] = "C", (D = D1 || (D1 = {}))[D.A = 0] = "A", D[D.B = 1] = "B", D[D.C = 2] = "C", (M || (M = {})).x = x;
var a = M.x;
});
//// [t2.ts]

View File

@ -18,10 +18,10 @@ define([
});
}(exports, {
E: function() {
return E;
return E1;
},
D: function() {
return D;
return D1;
},
M: function() {
return M;
@ -48,10 +48,10 @@ define([
return C;
},
E1: function() {
return E;
return E1;
},
D1: function() {
return D;
return D1;
},
M1: function() {
return M;
@ -60,13 +60,13 @@ define([
return a;
}
}), _classCallCheck = _classCallCheck.default;
var E, D, M, v = 1;
var E, D, x, E1, D1, M, v = 1;
function f() {}
var E1, D1, x, C = function C() {
var C = function C() {
"use strict";
_classCallCheck(this, C);
};
(E1 = E || (E = {}))[E1.A = 0] = "A", E1[E1.B = 1] = "B", E1[E1.C = 2] = "C", (D1 = D || (D = {}))[D1.A = 0] = "A", D1[D1.B = 1] = "B", D1[D1.C = 2] = "C", (M || (M = {})).x = x;
(E = E1 || (E1 = {}))[E.A = 0] = "A", E[E.B = 1] = "B", E[E.C = 2] = "C", (D = D1 || (D1 = {}))[D.A = 0] = "A", D[D.B = 1] = "B", D[D.C = 2] = "C", (M || (M = {})).x = x;
var a = M.x;
});
//// [t2.ts]

View File

@ -7,7 +7,7 @@ import _create_super from "@swc/helpers/src/_create_super.mjs";
var Module, Color, Color1;
Module || (Module = {}), (Color1 = Color || (Color = {}))[Color1.Blue = 0] = "Blue", Color1[Color1.Red = 1] = "Red";
}(A || (A = {})), function(Y) {
var F = function(s) {
var Color, F = function(s) {
return 2;
}, A = function A() {
"use strict";
@ -29,7 +29,7 @@ import _create_super from "@swc/helpers/src/_create_super.mjs";
return B;
}(AA);
Y.B = B;
var Color, BB = function(A) {
var BB = function(A) {
"use strict";
_inherits(BB, A);
var _super = _create_super(BB);

View File

@ -2,7 +2,7 @@
var TypeScript;
import _class_call_check from "@swc/helpers/src/_class_call_check.mjs";
!function(TypeScript1) {
var GetAstPathOptions, lastOf = function(items) {
var GetAstPathOptions, GetAstPathOptions1, lastOf = function(items) {
return null === items || 0 === items.length ? null : items[items.length - 1];
}, max = function(a, b) {
return a >= b ? a : b;
@ -11,19 +11,19 @@ import _class_call_check from "@swc/helpers/src/_class_call_check.mjs";
}, isValidAstNode = function(ast) {
return null !== ast && -1 !== ast.minChar && -1 !== ast.limChar;
}, getAstPathToPosition = function(script, pos) {
var options = arguments.length > 2 && void 0 !== arguments[2] ? arguments[2] : GetAstPathOptions.Default, lookInComments = function(comments) {
var options = arguments.length > 2 && void 0 !== arguments[2] ? arguments[2] : GetAstPathOptions1.Default, lookInComments = function(comments) {
if (comments && comments.length > 0) for(var i = 0; i < comments.length; i++){
var minChar = comments[i].minChar, limChar = comments[i].limChar;
!comments[i].isBlockComment && limChar++, pos >= minChar && pos < limChar && ctx.path.push(comments[i]);
}
}, pre = function(cur, parent, walker) {
if (isValidAstNode(cur)) {
var inclusive = hasFlag(options, GetAstPathOptions.EdgeInclusive) || cur.nodeType === TypeScript.NodeType.Name || pos === script.limChar, minChar = cur.minChar, limChar = cur.limChar + (inclusive ? 1 : 0);
var inclusive = hasFlag(options, GetAstPathOptions1.EdgeInclusive) || cur.nodeType === TypeScript.NodeType.Name || pos === script.limChar, minChar = cur.minChar, limChar = cur.limChar + (inclusive ? 1 : 0);
if (pos >= minChar && pos < limChar) {
var previous = ctx.path.ast();
(null == previous || cur.minChar >= previous.minChar && cur.limChar <= previous.limChar) && ctx.path.push(cur);
}
pos < limChar && lookInComments(cur.preComments), pos >= minChar && lookInComments(cur.postComments), hasFlag(options, GetAstPathOptions.DontPruneSearchBasedOnPosition) || (walker.options.goChildren = minChar <= pos && pos <= limChar);
pos < limChar && lookInComments(cur.preComments), pos >= minChar && lookInComments(cur.postComments), hasFlag(options, GetAstPathOptions1.DontPruneSearchBasedOnPosition) || (walker.options.goChildren = minChar <= pos && pos <= limChar);
}
return cur;
}, ctx = new AstPathContext();
@ -185,9 +185,9 @@ import _class_call_check from "@swc/helpers/src/_class_call_check.mjs";
}, AstPath;
}();
TypeScript1.AstPath = AstPath, TypeScript1.isValidAstNode = isValidAstNode;
var GetAstPathOptions1, AstPathContext = function AstPathContext() {
var AstPathContext = function AstPathContext() {
"use strict";
_class_call_check(this, AstPathContext), this.path = new TypeScript.AstPath();
};
TypeScript1.AstPathContext = AstPathContext, (GetAstPathOptions1 = GetAstPathOptions = TypeScript1.GetAstPathOptions || (TypeScript1.GetAstPathOptions = {}))[GetAstPathOptions1.Default = 0] = "Default", GetAstPathOptions1[GetAstPathOptions1.EdgeInclusive = 1] = "EdgeInclusive", GetAstPathOptions1[GetAstPathOptions1.DontPruneSearchBasedOnPosition = 2] = "DontPruneSearchBasedOnPosition", TypeScript1.getAstPathToPosition = getAstPathToPosition, TypeScript1.getTokenizationOffset = getTokenizationOffset, TypeScript1.walkAST = walkAST;
TypeScript1.AstPathContext = AstPathContext, (GetAstPathOptions = GetAstPathOptions1 = TypeScript1.GetAstPathOptions || (TypeScript1.GetAstPathOptions = {}))[GetAstPathOptions.Default = 0] = "Default", GetAstPathOptions[GetAstPathOptions.EdgeInclusive = 1] = "EdgeInclusive", GetAstPathOptions[GetAstPathOptions.DontPruneSearchBasedOnPosition = 2] = "DontPruneSearchBasedOnPosition", TypeScript1.getAstPathToPosition = getAstPathToPosition, TypeScript1.getTokenizationOffset = getTokenizationOffset, TypeScript1.walkAST = walkAST;
}(TypeScript || (TypeScript = {}));

File diff suppressed because one or more lines are too long

View File

@ -28,19 +28,19 @@ var f = function(e) {
return r && !a ? -1 : !r && a ? 1 : 0;
};
export default function S(u) {
var o = u.indexName, l = u.initialState, S = u.searchClient, v = u.resultsState, x = u.stalledSearchDelay, y = function() {
var o, l, S, v, x, y = u.indexName, w = u.initialState, F = u.searchClient, _ = u.resultsState, V = u.stalledSearchDelay, I = function() {
U = !0;
}, w = function(e) {
d(e), W.setClient(e), I();
}, F = function() {
W.clearCache(), I();
}, _ = function(e) {
}, j = function(e) {
d(e), k.setClient(e), R();
}, b = function() {
k.clearCache(), R();
}, A = function(e) {
return G.getWidgets().filter(function(e) {
return Boolean(e.getMetadata);
}).map(function(t) {
return t.getMetadata(e);
});
}, V = function() {
}, P = function() {
var a = G.getWidgets().filter(function(e) {
return Boolean(e.getSearchParameters);
}).filter(function(e) {
@ -50,14 +50,14 @@ export default function S(u) {
}, z), n = G.getWidgets().filter(function(e) {
return Boolean(e.getSearchParameters);
}).filter(function(e) {
var t = f(e) && m(e, o), r = p(e) && g(e, o);
var t = f(e) && m(e, y), r = p(e) && g(e, y);
return t || r;
}).sort(h).reduce(function(e, t) {
return t.getSearchParameters(e);
}, a), s = G.getWidgets().filter(function(e) {
return Boolean(e.getSearchParameters);
}).filter(function(e) {
var t = f(e) && !m(e, o), r = p(e) && !g(e, o);
var t = f(e) && !m(e, y), r = p(e) && !g(e, y);
return t || r;
}).sort(h).reduce(function(a, n) {
var s = f(n) ? n.props.indexContextValue.targetedIndex : n.props.indexId, c = a[s] || [];
@ -74,27 +74,27 @@ export default function S(u) {
mainParameters: n,
derivedParameters: c
};
}, I = function() {
}, R = function() {
if (!U) {
var e = V(W.state), t = e.mainParameters, r = e.derivedParameters;
W.derivedHelpers.slice().forEach(function(e) {
var e = P(k.state), t = e.mainParameters, r = e.derivedParameters;
k.derivedHelpers.slice().forEach(function(e) {
e.detach();
}), r.forEach(function(e) {
var t = e.indexId, r = e.parameters;
W.derive(function() {
k.derive(function() {
return r;
}).on("result", j({
}).on("result", C({
indexId: t
})).on("error", b);
}), W.setState(t), W.search();
})).on("error", N);
}), k.setState(t), k.search();
}
}, j = function(n) {
}, C = function(n) {
var s = n.indexId;
return function(n) {
var c = K.getState(), i = !W.derivedHelpers.length, u = c.results ? c.results : {};
var c = K.getState(), i = !k.derivedHelpers.length, u = c.results ? c.results : {};
u = !i && u.getFacetByName ? {} : u, u = i ? n.results : r(t({}, u), e({}, s, n.results));
var o = K.getState(), l = o.isSearchStalled;
W.hasPendingRequests() || (clearTimeout(D), D = null, l = !1), o.resultsFacetValues;
k.hasPendingRequests() || (clearTimeout(D), D = null, l = !1), o.resultsFacetValues;
var d = a(o, [
"resultsFacetValues"
]);
@ -105,9 +105,9 @@ export default function S(u) {
error: null
}));
};
}, b = function(e) {
}, N = function(e) {
var n = e.error, s = K.getState(), c = s.isSearchStalled;
W.hasPendingRequests() || (clearTimeout(D), c = !1), s.resultsFacetValues;
k.hasPendingRequests() || (clearTimeout(D), c = !1), s.resultsFacetValues;
var i = a(s, [
"resultsFacetValues"
]);
@ -116,7 +116,7 @@ export default function S(u) {
error: n,
searching: !1
}));
}, A = function() {
}, O = function() {
if (!D) {
var e;
D = setTimeout(function() {
@ -126,9 +126,9 @@ export default function S(u) {
K.setState(r(t({}, n), {
isSearchStalled: !0
}));
}, x);
}, V);
}
}, P = function(a, n) {
}, q = function(a, n) {
if (a.transporter) {
a.transporter.responsesCache.set({
method: "search",
@ -164,7 +164,7 @@ export default function S(u) {
return e.concat(t.rawResults);
}, [])
})));
}, R = function(a, n) {
}, B = function(a, n) {
if (a.transporter) {
a.transporter.responsesCache.set({
method: "search",
@ -192,31 +192,31 @@ export default function S(u) {
a.cache = r(t({}, a.cache), e({}, s, JSON.stringify({
results: n.rawResults
})));
}, C = function() {
var e = _(K.getState().widgets);
}, H = function() {
var e = A(K.getState().widgets);
K.setState(r(t({}, K.getState()), {
metadata: e,
searching: !0
})), I();
}, N = function(e) {
})), R();
}, W = function(e) {
var t = K.getState().widgets;
return G.getWidgets().filter(function(e) {
return Boolean(e.transitionState);
}).reduce(function(e, r) {
return r.transitionState(t, e);
}, e);
}, O = function(e) {
var a = _(e);
}, M = function(e) {
var a = A(e);
K.setState(r(t({}, K.getState()), {
widgets: e,
metadata: a,
searching: !0
})), I();
}, q = function(a) {
})), R();
}, J = function(a) {
var n = a.facetName, s = a.query, c = a.maxFacetHits;
K.setState(r(t({}, K.getState()), {
searchingForFacetValues: !0
})), W.searchForFacetValues(n, s, Math.max(1, Math.min(void 0 === c ? 10 : c, 100))).then(function(a) {
})), k.searchForFacetValues(n, s, Math.max(1, Math.min(void 0 === c ? 10 : c, 100))).then(function(a) {
var c;
K.setState(r(t({}, K.getState()), {
error: null,
@ -233,17 +233,17 @@ export default function S(u) {
throw e;
});
});
}, B = function(e) {
}, E = function(e) {
z = z.setIndex(e);
}, H = function() {
}, T = function() {
return K.getState().metadata.reduce(function(e, t) {
return void 0 !== t.id ? e.concat(t.id) : e;
}, []);
}, W = s(S, o, t({}, i));
d(S), W.on("search", A).on("result", j({
indexId: o
})).on("error", b);
var M, J, E, T, k, U = !1, D = null, z = W.state, G = c(C);
}, k = s(F, y, t({}, i));
d(F), k.on("search", O).on("result", C({
indexId: y
})).on("error", N);
var U = !1, D = null, z = k.state, G = c(H);
!function(e, a) {
if (a && (e.transporter && !e._cacheHydrated || e._useCache && "function" == typeof e.addAlgoliaAgent)) {
if (e.transporter && !e._cacheHydrated) {
@ -279,15 +279,15 @@ export default function S(u) {
};
}
if (Array.isArray(a.results)) {
P(e, a.results);
q(e, a.results);
return;
}
R(e, a);
B(e, a);
}
}(S, v);
var K = (E = J = {
widgets: void 0 === l ? {} : l,
metadata: (k = v, k ? k.metadata.map(function(e) {
}(F, _);
var K = (v = S = {
widgets: void 0 === w ? {} : w,
metadata: (o = _, o ? o.metadata.map(function(e) {
return r(t({
value: function() {
return {};
@ -310,39 +310,39 @@ export default function S(u) {
})
});
}) : []),
results: v ? Array.isArray(v.results) ? v.results.reduce(function(a, n) {
results: _ ? Array.isArray(_.results) ? _.results.reduce(function(a, n) {
return r(t({}, a), e({}, n._internalIndexId, new s.SearchResults(new s.SearchParameters(n.state), n.rawResults)));
}, {}) : new s.SearchResults(new s.SearchParameters(v.state), v.rawResults) : null,
}, {}) : new s.SearchResults(new s.SearchParameters(_.state), _.rawResults) : null,
error: null,
searching: !1,
isSearchStalled: !0,
searchingForFacetValues: !1
}, T = [], {
}, x = [], {
getState: function() {
return E;
return v;
},
setState: function(e) {
E = e, T.forEach(function(e) {
v = e, x.forEach(function(e) {
return e();
});
},
subscribe: function(e) {
return T.push(e), function() {
T.splice(T.indexOf(e), 1);
return x.push(e), function() {
x.splice(x.indexOf(e), 1);
};
}
});
return {
store: K,
widgetsManager: G,
getWidgetsIds: H,
getSearchParameters: V,
onSearchForFacetValues: q,
onExternalStateUpdate: O,
transitionState: N,
updateClient: w,
updateIndex: B,
clearCache: F,
skipSearch: y
getWidgetsIds: T,
getSearchParameters: P,
onSearchForFacetValues: J,
onExternalStateUpdate: M,
transitionState: W,
updateClient: j,
updateIndex: E,
clearCache: b,
skipSearch: I
};
}

View File

@ -34,8 +34,7 @@ use crate::{
mode::Mode,
option::CompressOptions,
util::{
contains_eval, contains_leaping_continue_with_label, contains_leaping_yield, make_number,
ExprOptExt, ModuleItemExt,
contains_eval, contains_leaping_continue_with_label, make_number, ExprOptExt, ModuleItemExt,
},
};
@ -1154,81 +1153,6 @@ where
Some(e.take())
}
fn merge_var_decls(&mut self, stmts: &mut Vec<Stmt>) {
if !self.options.join_vars && !self.options.hoist_vars {
return;
}
if self.ctx.in_asm {
return;
}
// Merge var declarations fully, if possible.
if stmts.windows(2).any(|stmts| match (&stmts[0], &stmts[1]) {
(Stmt::Decl(Decl::Var(a)), Stmt::Decl(Decl::Var(b))) => {
a.kind == b.kind && !contains_leaping_yield(a) && !contains_leaping_yield(b)
}
_ => false,
}) {
self.changed = true;
report_change!("Merging variable declarations");
dump_change_detail!(
"[Before]: {}",
dump(
&BlockStmt {
span: DUMMY_SP,
stmts: stmts.clone()
},
false
)
);
let orig = take(stmts);
let mut new = Vec::with_capacity(orig.len());
let mut var_decl: Option<Box<VarDecl>> = None;
for stmt in orig {
match stmt {
Stmt::Decl(Decl::Var(below)) => {
//
match var_decl.take() {
Some(mut upper) if upper.kind == below.kind => {
upper.decls.extend(below.decls);
var_decl = Some(upper);
}
d => {
new.extend(d.map(Decl::Var).map(Stmt::Decl));
var_decl = Some(below);
}
}
}
_ => {
// If it's not a var decl,
new.extend(var_decl.take().map(Decl::Var).map(Stmt::Decl));
new.push(stmt);
}
}
}
new.extend(var_decl.take().map(Decl::Var).map(Stmt::Decl));
dump_change_detail!(
"[Change] merged: {}",
dump(
&BlockStmt {
span: DUMMY_SP,
stmts: new.clone()
},
false
)
);
*stmts = new
}
}
fn try_removing_block(&mut self, s: &mut Stmt, unwrap_more: bool, allow_fn_decl: bool) {
match s {
Stmt::Block(bs) => {
@ -2527,8 +2451,6 @@ where
self.with_ctx(ctx).handle_stmt_likes(stmts);
self.with_ctx(ctx).merge_var_decls(stmts);
drop_invalid_stmts(stmts);
if stmts.len() == 1 {

View File

@ -279,13 +279,13 @@ fn perform_dce(m: &mut Program, options: &CompressOptions, extra: &ExtraOptions)
loop {
#[cfg(feature = "debug")]
let start = crate::debug::dump(&m, false);
let start = crate::debug::dump(&*m, false);
m.visit_mut_with(&mut visitor);
#[cfg(feature = "debug")]
if visitor.changed() {
let src = crate::debug::dump(&m, false);
let src = crate::debug::dump(&*m, false);
tracing::debug!(
"===== Before DCE =====\n{}\n===== After DCE =====\n{}",
start,

View File

@ -200,6 +200,7 @@ where
v.found_continue_with_label
}
#[allow(unused)]
pub(crate) fn contains_leaping_yield<N>(n: &N) -> bool
where
N: VisitWith<LeapFinder>,

View File

@ -259,7 +259,8 @@
}
}
function maxIndex(values, valueof) {
let max, maxIndex = -1, index = -1;
let max;
let maxIndex = -1, index = -1;
if (void 0 === valueof) for (const value of values)++index, null != value && (max < value || void 0 === max && value >= value) && (max = value, maxIndex = index);
else for (let value1 of values)null != (value1 = valueof(value1, ++index, values)) && (max < value1 || void 0 === max && value1 >= value1) && (max = value1, maxIndex = index);
return maxIndex;
@ -270,7 +271,8 @@
}(arrays));
}
function minIndex(values, valueof) {
let min, minIndex = -1, index = -1;
let min;
let minIndex = -1, index = -1;
if (void 0 === valueof) for (const value of values)++index, null != value && (min > value || void 0 === min && value >= value) && (min = value, minIndex = index);
else for (let value1 of values)null != (value1 = valueof(value1, ++index, values)) && (min > value1 || void 0 === min && value1 >= value1) && (min = value1, minIndex = index);
return minIndex;
@ -3648,7 +3650,7 @@
}
_clipFinite(i, points) {
const n = points.length;
let e0, e1, x0, y0, c0, P = null, x1 = points[n - 2], y1 = points[n - 1], c1 = this._regioncode(x1, y1);
let P = null, e0, e1, x0, y0, x1 = points[n - 2], y1 = points[n - 1], c0, c1 = this._regioncode(x1, y1);
for(let j = 0; j < n; j += 2)if (x0 = x1, y0 = y1, x1 = points[j], y1 = points[j + 1], c0 = c1, c1 = this._regioncode(x1, y1), 0 === c0 && 0 === c1) e0 = e1, e1 = 0, P ? P.push(x1, y1) : P = [
x1,
y1
@ -10024,7 +10026,8 @@
}, exports1.geoTransverseMercatorRaw = transverseMercatorRaw, exports1.gray = function(l, opacity) {
return new Lab(l, 0, 0, null == opacity ? 1 : opacity);
}, exports1.greatest = function(values, compare = ascending) {
let max, defined = !1;
let max;
let defined = !1;
if (1 === compare.length) {
let maxValue;
for (const element of values){
@ -10103,7 +10106,8 @@
}, exports1.lab = lab, exports1.lch = function(l, c, h, opacity) {
return 1 === arguments.length ? hclConvert(l) : new Hcl(h, c, l, null == opacity ? 1 : opacity);
}, exports1.least = function(values, compare = ascending) {
let min, defined = !1;
let min;
let defined = !1;
if (1 === compare.length) {
let minValue;
for (const element of values){

View File

@ -4,7 +4,7 @@
], factory) : factory((global1 = 'undefined' != typeof globalThis ? globalThis : global1 || self).echarts = {});
}(this, function(exports1) {
'use strict';
var mainType, creator, _ctx, _cachedFont, requestAnimationFrame, reCreateSeriesIndices, assertSeriesInitialized, initBase, _a, _b, _c, providerMethods, mountMethods, seriesType, nodeParsers, prepare, prepareView, updateDirectly, updateMethods, doConvertPixel, updateStreamModes, doDispatchAction, flushPendingActions, triggerUpdatedEvent, bindRenderedEvent, bindMouseEvent, clearColorPalette, render, renderComponents, renderSeries, performPostUpdateFuncs, createExtensionAPI, enableConnect, setTransitionOpt, markStatusToUpdate, applyChangedStates, defaultDimValueGetters, prepareInvertedIndex, getIndicesCtor, prepareStorage, getRawIndexWithoutIndices, getRawIndexWithIndices, getId, getIdNameFromStore, makeIdFromName, normalizeDimensions, validateDimensions, cloneListForMapAndSample, getInitialExtent, setItemDataAndSeriesIndex, transferProperties, checkNonStyleTansitionRefer, checkTransformPropRefer, extendStatics = function(d, b) {
var ua, env, browser, firefox, ie, edge, weChat, style, mouseHandlerNames, pointerEventNameMap, pointerHandlerNames, ShapeClass, ShapeClass1, ShapeClass2, ShapeClass3, ShapeClass4, ShapeClass5, ShapeClass6, ShapeClass7, ShapeClass8, ShapeClass9, target, classAttr, target1, subTypeDefaulters, loadingFx, theme, theme1, _super, mainType, creator, _ctx, _cachedFont, requestAnimationFrame, reCreateSeriesIndices, assertSeriesInitialized, initBase, _a, _b, _c, providerMethods, mountMethods, seriesType, nodeParsers, prepare, prepareView, updateDirectly, updateMethods, doConvertPixel, updateStreamModes, doDispatchAction, flushPendingActions, triggerUpdatedEvent, bindRenderedEvent, bindMouseEvent, clearColorPalette, render, renderComponents, renderSeries, performPostUpdateFuncs, createExtensionAPI, enableConnect, setTransitionOpt, markStatusToUpdate, applyChangedStates, defaultDimValueGetters, prepareInvertedIndex, getIndicesCtor, prepareStorage, getRawIndexWithoutIndices, getRawIndexWithIndices, getId, getIdNameFromStore, makeIdFromName, normalizeDimensions, validateDimensions, cloneListForMapAndSample, getInitialExtent, setItemDataAndSeriesIndex, transferProperties, checkNonStyleTansitionRefer, checkTransformPropRefer, extendStatics = function(d, b) {
return (extendStatics = Object.setPrototypeOf || ({
__proto__: []
}) instanceof Array && function(d, b) {
@ -30,7 +30,7 @@
for(var r = Array(s), k = 0, i = 0; i < il; i++)for(var a = arguments[i], j = 0, jl = a.length; j < jl; j++, k++)r[k] = a[j];
return r;
}
var ua, env, browser, firefox, ie, edge, weChat, style, Browser = function() {
var Browser = function() {
this.firefox = !1, this.ie = !1, this.edge = !1, this.newEdge = !1, this.weChat = !1;
}, env1 = new function() {
this.browser = new Browser(), this.node = !1, this.wxa = !1, this.worker = !1, this.canvasSupported = !1, this.svgSupported = !1, this.touchEventsSupported = !1, this.pointerEventsSupported = !1, this.domSupported = !1, this.transformSupported = !1, this.transform3dSupported = !1;
@ -878,23 +878,23 @@
var proxy = this.proxy;
proxy.setCursor && proxy.setCursor(cursorStyle);
}, Handler.prototype.dispatchToElement = function(targetInfo, eventName, event) {
var el = (targetInfo = targetInfo || {}).target;
var eveType, targetInfo1, event1, el = (targetInfo = targetInfo || {}).target;
if (!el || !el.silent) {
for(var eveType, targetInfo1, event1, eventKey = 'on' + eventName, eventPacket = (targetInfo1 = targetInfo, {
type: eventName,
event: event,
for(var eventKey = 'on' + eventName, eventPacket = (eveType = eventName, targetInfo1 = targetInfo, event1 = event, {
type: eveType,
event: event1,
target: targetInfo1.target,
topTarget: targetInfo1.topTarget,
cancelBubble: !1,
offsetX: event.zrX,
offsetY: event.zrY,
gestureEvent: event.gestureEvent,
pinchX: event.pinchX,
pinchY: event.pinchY,
pinchScale: event.pinchScale,
wheelDelta: event.zrDelta,
zrByTouch: event.zrByTouch,
which: event.which,
offsetX: event1.zrX,
offsetY: event1.zrY,
gestureEvent: event1.gestureEvent,
pinchX: event1.pinchX,
pinchY: event1.pinchY,
pinchScale: event1.pinchScale,
wheelDelta: event1.zrDelta,
zrByTouch: event1.zrByTouch,
which: event1.which,
stop: stopEvent
}); el && (el[eventKey] && (eventPacket.cancelBubble = !!el[eventKey].call(el, eventPacket)), el.trigger(eventName, eventPacket), el = el.__hostTarget ? el.__hostTarget : el.parent, !eventPacket.cancelBubble););
!eventPacket.cancelBubble && (this.trigger(eventName, eventPacket), this.painter && this.painter.eachOtherLayer && this.painter.eachOtherLayer(function(layer) {
@ -3540,7 +3540,7 @@
requestAnimationFrame = 'undefined' != typeof window && (window.requestAnimationFrame && window.requestAnimationFrame.bind(window) || window.msRequestAnimationFrame && window.msRequestAnimationFrame.bind(window) || window.mozRequestAnimationFrame || window.webkitRequestAnimationFrame) || function(func) {
return setTimeout(func, 16);
};
var mouseHandlerNames, pointerEventNameMap, pointerHandlerNames, Animation = function(_super) {
var Animation = function(_super) {
function Animation(opts) {
var _this = _super.call(this) || this;
return _this._running = !1, _this._time = 0, _this._pausedTime = 0, _this._pauseStart = 0, _this._paused = !1, opts = opts || {}, _this.stage = opts.stage || {}, _this.onframe = opts.onframe || function() {}, _this;
@ -4184,9 +4184,9 @@
return !isObject(dataItem) || isArray(dataItem) || dataItem instanceof Date ? dataItem : dataItem.value;
}
function mappingToExists(existings, newCmptOptions, mode) {
var isNormalMergeMode = 'normalMerge' === mode, isReplaceMergeMode = 'replaceMerge' === mode;
var result, existings1, existingIdIdxMap, newCmptOptions1, result1, newCmptOptions2, result2, newCmptOptions3, brandNew, result3, newCmptOptions4, mapResult, idMap, isNormalMergeMode = 'normalMerge' === mode, isReplaceMergeMode = 'replaceMerge' === mode;
existings = existings || [], newCmptOptions = (newCmptOptions || []).slice();
var existingIdIdxMap = createHashMap();
var existingIdIdxMap1 = createHashMap();
each(newCmptOptions, function(cmptOption, index) {
if (!isObject(cmptOption)) {
newCmptOptions[index] = null;
@ -4194,7 +4194,7 @@
}
null == cmptOption.id || isValidIdOrName(cmptOption.id) || warnInvalidateIdOrName(cmptOption.id), null == cmptOption.name || isValidIdOrName(cmptOption.name) || warnInvalidateIdOrName(cmptOption.name);
});
var result, existings1, existingIdIdxMap1, newCmptOptions1, result1, newCmptOptions2, result2, newCmptOptions3, brandNew, result3, newCmptOptions4, mapResult, idMap, result4 = function(existings, existingIdIdxMap, mode) {
var result4 = function(existings, existingIdIdxMap, mode) {
var result = [];
if ('replaceAll' === mode) return result;
for(var index = 0; index < existings.length; index++){
@ -4207,10 +4207,10 @@
});
}
return result;
}(existings, existingIdIdxMap, mode);
return (isNormalMergeMode || isReplaceMergeMode) && (result = result4, existings1 = existings, existingIdIdxMap1 = existingIdIdxMap, newCmptOptions1 = newCmptOptions, each(newCmptOptions1, function(cmptOption, index) {
}(existings, existingIdIdxMap1, mode);
return (isNormalMergeMode || isReplaceMergeMode) && (result = result4, existings1 = existings, existingIdIdxMap = existingIdIdxMap1, newCmptOptions1 = newCmptOptions, each(newCmptOptions1, function(cmptOption, index) {
if (cmptOption && null != cmptOption.id) {
var optionId = makeComparableKey(cmptOption.id), existingIdx = existingIdIdxMap1.get(optionId);
var optionId = makeComparableKey(cmptOption.id), existingIdx = existingIdIdxMap.get(optionId);
if (null != existingIdx) {
var resultItem = result[existingIdx];
assert(!resultItem.newOption, 'Duplicated option on id "' + optionId + '".'), resultItem.newOption = cmptOption, resultItem.existing = existings1[existingIdx], newCmptOptions1[index] = null;
@ -4435,7 +4435,7 @@
var componentFullType = clz.type || clz.prototype.type;
if (componentFullType) {
componentType = componentFullType, assert(/^[a-zA-Z0-9_]+([.][a-zA-Z0-9_]+)?$/.test(componentType), 'componentType "' + componentType + '" illegal'), clz.prototype.type = componentFullType;
var componentType, componentTypeInfo, container, componentTypeInfo1 = parseClassType(componentFullType);
var componentTypeInfo, container, componentType, componentTypeInfo1 = parseClassType(componentFullType);
componentTypeInfo1.sub ? componentTypeInfo1.sub !== IS_CONTAINER && ((componentTypeInfo = componentTypeInfo1, container = storage[componentTypeInfo.main], container && container[IS_CONTAINER] || ((container = storage[componentTypeInfo.main] = {})[IS_CONTAINER] = !0), container)[componentTypeInfo1.sub] = clz) : (storage[componentTypeInfo1.main] && console.warn(componentTypeInfo1.main + ' exists.'), storage[componentTypeInfo1.main] = clz);
}
return clz;
@ -5611,9 +5611,9 @@
return __extends(ZRImage, _super), ZRImage.prototype.createStyle = function(obj) {
return createObject(DEFAULT_IMAGE_STYLE, obj);
}, ZRImage.prototype._getSize = function(dim) {
var style = this.style, size = style[dim];
var source, style = this.style, size = style[dim];
if (null != size) return size;
var source, imageSource = (source = style.image) && 'string' != typeof source && source.width && source.height ? style.image : this.__image;
var imageSource = (source = style.image) && 'string' != typeof source && source.width && source.height ? style.image : this.__image;
if (!imageSource) return 0;
var otherDim = 'width' === dim ? 'height' : 'width', otherDimSize = style[otherDim];
return null == otherDimSize ? imageSource[dim] : imageSource[dim] / imageSource[otherDim] * otherDimSize;
@ -6994,11 +6994,11 @@
}
}
function lineLineIntersect(a1x, a1y, a2x, a2y, b1x, b1y, b2x, b2y) {
var x1, y1, x2, y2, val, mx = a2x - a1x, my = a2y - a1y, nx = b2x - b1x, ny = b2y - b1y, nmCrossProduct = (x1 = nx, y1 = ny, x2 = mx, y2 = my, x1 * y2 - x2 * y1);
var x1, y1, x2, y2, val, x11, y11, x21, y21, x12, y12, x22, y22, mx = a2x - a1x, my = a2y - a1y, nx = b2x - b1x, ny = b2y - b1y, nmCrossProduct = (x1 = nx, y1 = ny, x2 = mx, y2 = my, x1 * y2 - x2 * y1);
if (val = nmCrossProduct, val <= 1e-6 && val >= -0.000001) return !1;
var x11, y11, x21, y21, b1a1x = a1x - b1x, b1a1y = a1y - b1y, q = (x11 = b1a1x, y11 = b1a1y, x21 = mx, y21 = my, (x11 * y21 - x21 * y11) / nmCrossProduct);
var b1a1x = a1x - b1x, b1a1y = a1y - b1y, q = (x11 = b1a1x, y11 = b1a1y, x21 = mx, y21 = my, (x11 * y21 - x21 * y11) / nmCrossProduct);
if (q < 0 || q > 1) return !1;
var x12, y12, x22, y22, p = (x12 = b1a1x, y12 = b1a1y, x22 = nx, y22 = ny, (x12 * y22 - x22 * y12) / nmCrossProduct);
var p = (x12 = b1a1x, y12 = b1a1y, x22 = nx, y22 = ny, (x12 * y22 - x22 * y12) / nmCrossProduct);
return !(p < 0) && !(p > 1);
}
function setTooltipConfig(opt) {
@ -7025,7 +7025,7 @@
}, itemTooltipOptionObj)
};
}
ShapeClass = Circle, _customShapeMap.circle = ShapeClass, ShapeClass1 = Ellipse, _customShapeMap.ellipse = ShapeClass1, ShapeClass2 = Sector, _customShapeMap.sector = ShapeClass2, ShapeClass3 = Ring, _customShapeMap.ring = ShapeClass3, ShapeClass4 = Polygon, _customShapeMap.polygon = ShapeClass4, ShapeClass5 = Polyline, _customShapeMap.polyline = ShapeClass5, ShapeClass6 = Rect, _customShapeMap.rect = ShapeClass6, ShapeClass7 = Line, _customShapeMap.line = ShapeClass7, ShapeClass8 = BezierCurve, _customShapeMap.bezierCurve = ShapeClass8, ShapeClass9 = Arc, _customShapeMap.arc = ShapeClass9;
_customShapeMap.circle = Circle, _customShapeMap.ellipse = Ellipse, _customShapeMap.sector = Sector, _customShapeMap.ring = Ring, _customShapeMap.polygon = Polygon, _customShapeMap.polyline = Polyline, _customShapeMap.rect = Rect, _customShapeMap.line = Line, _customShapeMap.bezierCurve = BezierCurve, _customShapeMap.arc = Arc;
var graphic = Object.freeze({
__proto__: null,
extendShape: extendShape,
@ -7273,7 +7273,7 @@
});
}
}
var ShapeClass, ShapeClass1, ShapeClass2, ShapeClass3, ShapeClass4, ShapeClass5, ShapeClass6, ShapeClass7, ShapeClass8, ShapeClass9, target, classAttr, PATH_COLOR = [
var PATH_COLOR = [
'textStyle',
'color'
], tmpRichText = new ZRText(), TextStyleMixin = function() {
@ -8140,7 +8140,7 @@
}), target;
}
curry(boxLayout, 'vertical'), curry(boxLayout, 'horizontal');
var target1, subTypeDefaulters, inner = makeInner(), ComponentModel = function(_super) {
var inner = makeInner(), ComponentModel = function(_super) {
var proto;
function ComponentModel(option, parentModel, ecModel) {
var _this = _super.call(this, option, parentModel, ecModel) || this;
@ -10607,7 +10607,7 @@
'#ff8a45',
'#8d48e3',
'#dd79ff'
], theme = {
], theme2 = {
darkMode: !0,
color: colorPalette,
backgroundColor: backgroundColor,
@ -10759,7 +10759,7 @@
}
}
};
theme.categoryAxis.splitLine.show = !1;
theme2.categoryAxis.splitLine.show = !1;
var ECEventProcessor = function() {
function ECEventProcessor() {}
return ECEventProcessor.prototype.normalizeQuery = function(query) {
@ -11698,7 +11698,7 @@
}, !0);
}
function brush(ctx, el, scope, isLast) {
var ctx1, el1, prevEl, forceSetAll, scope1, m = el.transform;
var style, hasFill, hasStroke, m0, m1, ctx1, el1, prevEl, forceSetAll, scope1, m = el.transform;
if (!el.shouldBePainted(scope.viewWidth, scope.viewHeight, !1, !1)) {
el.__dirty &= ~Element.REDARAW_BIT, el.__isRendered = !1;
return;
@ -11715,9 +11715,9 @@
return;
}
el.beforeBrush && el.beforeBrush(), el.innerBeforeBrush();
var style, hasFill, hasStroke, prevEl1 = scope.prevEl;
var prevEl1 = scope.prevEl;
prevEl1 || (forceSetStyle = forceSetTransform = !0);
var m0, m1, canBatchPath = el instanceof Path && el.autoBatch && (hasFill = styleHasFill(style = el.style), hasStroke = styleHasStroke(style), !(style.lineDash || !(+hasFill ^ +hasStroke) || hasFill && 'string' != typeof style.fill || hasStroke && 'string' != typeof style.stroke || style.strokePercent < 1 || style.strokeOpacity < 1 || style.fillOpacity < 1));
var canBatchPath = el instanceof Path && el.autoBatch && (hasFill = styleHasFill(style = el.style), hasStroke = styleHasStroke(style), !(style.lineDash || !(+hasFill ^ +hasStroke) || hasFill && 'string' != typeof style.fill || hasStroke && 'string' != typeof style.stroke || style.strokePercent < 1 || style.strokeOpacity < 1 || style.fillOpacity < 1));
!forceSetTransform && (m1 = prevEl1.transform, m && m1 ? m[0] === m1[0] && m[1] === m1[1] && m[2] === m1[2] && m[3] === m1[3] && m[4] === m1[4] && m[5] === m1[5] : m || m1 ? 0 : 1) ? canBatchPath || flushPathDrawn(ctx, scope) : (flushPathDrawn(ctx, scope), setContextTransform(ctx, el));
var style1 = getStyle(el, scope.inHover);
el instanceof Path ? (1 !== scope.lastDrawType && (forceSetStyle = !0, scope.lastDrawType = 1), bindPathAndTextCommonStyle(ctx, el, prevEl1, forceSetStyle, scope), canBatchPath && (scope.batchFill || scope.batchStroke) || ctx.beginPath(), function(ctx, el, style, inBatch) {
@ -11821,7 +11821,7 @@
repeat: 'repeat'
};
return function(pattern) {
for(var cacheKey, ctx, keys = [
for(var dash, cacheKey, ctx, keys = [
dpr
], isValidKey = !0, i = 0; i < decalKeys.length; ++i){
var value = decalOpt[decalKeys[i]], valueType = typeof value;
@ -11836,7 +11836,7 @@
var cache = decalCache.get(cacheKey);
cache && (isSVG ? pattern.svgElement = cache : pattern.image = cache);
}
var dash, dashArrayX = function normalizeDashArrayX(dash) {
var dashArrayX = function normalizeDashArrayX(dash) {
if (!dash || 0 === dash.length) return [
[
0,
@ -13703,18 +13703,18 @@
clearStates(componentModel, componentView), componentView.render(componentModel, ecModel, api, payload), updateZ(componentModel, componentView), updateStates(componentModel, componentView);
});
}, renderSeries = function(ecIns, ecModel, api, payload, dirtyMap) {
var scheduler = ecIns._scheduler, labelManager = ecIns._labelManager;
var ecIns1, ecModel1, storage, elCount, scheduler = ecIns._scheduler, labelManager = ecIns._labelManager;
labelManager.clearLabels();
var ecIns1, ecModel1, storage, elCount, unfinished = !1;
var unfinished = !1;
ecModel.eachSeries(function(seriesModel) {
var chartView = ecIns._chartsMap[seriesModel.__viewId];
chartView.__alive = !0;
var seriesModel1, chartView1, blendMode, renderTask = chartView.renderTask;
scheduler.updatePayload(renderTask, payload), clearStates(seriesModel, chartView), dirtyMap && dirtyMap.get(seriesModel.uid) && renderTask.dirty(), renderTask.perform(scheduler.getPerformArgs(renderTask)) && (unfinished = !0), seriesModel.__transientTransitionOpt = null, chartView.group.silent = !!seriesModel.get('silent'), seriesModel1 = seriesModel, chartView1 = chartView, blendMode = seriesModel1.get('blendMode') || null, !env1.canvasSupported && blendMode && 'source-over' !== blendMode && console.warn('Only canvas support blendMode'), chartView1.group.traverse(function(el) {
var seriesModel1, chartView, blendMode, chartView1 = ecIns._chartsMap[seriesModel.__viewId];
chartView1.__alive = !0;
var renderTask = chartView1.renderTask;
scheduler.updatePayload(renderTask, payload), clearStates(seriesModel, chartView1), dirtyMap && dirtyMap.get(seriesModel.uid) && renderTask.dirty(), renderTask.perform(scheduler.getPerformArgs(renderTask)) && (unfinished = !0), seriesModel.__transientTransitionOpt = null, chartView1.group.silent = !!seriesModel.get('silent'), seriesModel1 = seriesModel, chartView = chartView1, blendMode = seriesModel1.get('blendMode') || null, !env1.canvasSupported && blendMode && 'source-over' !== blendMode && console.warn('Only canvas support blendMode'), chartView.group.traverse(function(el) {
el.isGroup || (el.style.blend = blendMode), el.eachPendingDisplayable && el.eachPendingDisplayable(function(displayable) {
displayable.style.blend = blendMode;
});
}), updateSeriesElementSelection(seriesModel), labelManager.addLabelsOfSeries(chartView);
}), updateSeriesElementSelection(seriesModel), labelManager.addLabelsOfSeries(chartView1);
}), scheduler.unfinished = unfinished || scheduler.unfinished, labelManager.updateLayoutConfig(api), labelManager.layout(api), labelManager.processLabelsOverall(), ecModel.eachSeries(function(seriesModel) {
var chartView = ecIns._chartsMap[seriesModel.__viewId];
updateZ(seriesModel, chartView), updateStates(seriesModel, chartView);
@ -13894,7 +13894,7 @@
function registerMap(mapName, geoJson, specialAreas) {
geoSourceManager.registerMap(mapName, geoJson, specialAreas);
}
var loadingFx, theme1, theme2, registerTransform = function(externalTransform) {
var registerTransform = function(externalTransform) {
var type = (externalTransform = clone(externalTransform)).type, errMsg = '';
type || throwError('Must have a `type` when `registerTransform`.');
var typeParsed = type.split(':');
@ -14125,7 +14125,7 @@
type: TOGGLE_SELECT_ACTION_TYPE,
event: TOGGLE_SELECT_ACTION_TYPE,
update: TOGGLE_SELECT_ACTION_TYPE
}, noop), theme1 = {
}, noop), theme = {
color: colorAll,
colorLayer: [
[
@ -14154,7 +14154,7 @@
],
colorAll
]
}, themeStorage.light = theme1, themeStorage.dark = theme;
}, themeStorage.light = theme, themeStorage.dark = theme2;
var extensions = [], extensionRegisters = {
registerPreprocessor: registerPreprocessor,
registerProcessor: registerProcessor,
@ -16142,7 +16142,7 @@
merge: merge
}), inner$4 = makeInner();
function makeCategoryLabelsActually(axis, labelModel) {
var labels, numericLabelInterval, axis1, result, labelsCache = getListCache(axis, 'labels'), optionLabelInterval = getOptionCategoryInterval(labelModel), result1 = listCacheGet(labelsCache, optionLabelInterval);
var axis1, result, labels, numericLabelInterval, labelsCache = getListCache(axis, 'labels'), optionLabelInterval = getOptionCategoryInterval(labelModel), result1 = listCacheGet(labelsCache, optionLabelInterval);
return result1 || (isFunction(optionLabelInterval) ? labels = makeLabelsByCustomizedCategoryInterval(axis, optionLabelInterval) : (numericLabelInterval = 'auto' === optionLabelInterval ? (axis1 = axis, result = inner$4(axis1).autoInterval, null != result ? result : inner$4(axis1).autoInterval = axis1.calculateCategoryInterval()) : optionLabelInterval, labels = makeLabelsByNumericCategoryInterval(axis, numericLabelInterval)), listCacheSet(labelsCache, optionLabelInterval, {
labels: labels,
labelCategoryInterval: numericLabelInterval
@ -16482,7 +16482,7 @@
middle: 'middle'
}, svgText = {
brush: function(el) {
var style = el.style, text = style.text;
var y, lineHeight, textBaseline, style = el.style, text = style.text;
if (null != text && (text += ''), !(!text || isNaN(style.x) || isNaN(style.y))) {
var textSvgEl = el.__svgEl;
textSvgEl || (!function(el, key, val) {
@ -16490,7 +16490,7 @@
}(textSvgEl = createElement('text'), 'xml:space', 'preserve'), el.__svgEl = textSvgEl);
var font = style.font || DEFAULT_FONT;
textSvgEl.style.font = font, textSvgEl.textContent = text, bindStyle(textSvgEl, style, el), setTransform(textSvgEl, el.transform);
var y, lineHeight, textBaseline, x = style.x || 0, y1 = (y = style.y || 0, lineHeight = getLineHeight(font), 'top' === (textBaseline = style.textBaseline) ? y += lineHeight / 2 : 'bottom' === textBaseline && (y -= lineHeight / 2), y), textAlign = TEXT_ALIGN_TO_ANCHOR[style.textAlign] || style.textAlign;
var x = style.x || 0, y1 = (y = style.y || 0, lineHeight = getLineHeight(font), 'top' === (textBaseline = style.textBaseline) ? y += lineHeight / 2 : 'bottom' === textBaseline && (y -= lineHeight / 2), y), textAlign = TEXT_ALIGN_TO_ANCHOR[style.textAlign] || style.textAlign;
attr(textSvgEl, 'dominant-baseline', 'central'), attr(textSvgEl, 'text-anchor', textAlign), attr(textSvgEl, 'x', x + ''), attr(textSvgEl, 'y', y1 + '');
}
}
@ -16869,13 +16869,13 @@
var svgProxy = getSvgProxy(el);
return svgProxy && svgProxy.brush(el), getSvgElement(el);
}, SVGPainter.prototype._paintList = function(list) {
var prevSvgElement, topPrevSvgElement, prevDisplayable, currentClipGroup, gradientManager = this._gradientManager, patternManager = this._patternManager, clipPathManager = this._clipPathManager, shadowManager = this._shadowManager;
var oldArr, newArr, prevSvgElement, topPrevSvgElement, prevDisplayable, currentClipGroup, gradientManager = this._gradientManager, patternManager = this._patternManager, clipPathManager = this._clipPathManager, shadowManager = this._shadowManager;
gradientManager.markAllUnused(), patternManager.markAllUnused(), clipPathManager.markAllUnused(), shadowManager.markAllUnused();
for(var svgRoot = this._svgRoot, visibleList = this._visibleList, listLen = list.length, newVisibleList = [], i = 0; i < listLen; i++){
var displayable = list[i], svgProxy = getSvgProxy(displayable), svgElement = getSvgElement(displayable);
!displayable.invisible && ((displayable.__dirty || !svgElement) && (svgProxy && svgProxy.brush(displayable), (svgElement = getSvgElement(displayable)) && displayable.style && (gradientManager.update(displayable.style.fill), gradientManager.update(displayable.style.stroke), patternManager.update(displayable.style.fill), patternManager.update(displayable.style.stroke), shadowManager.update(svgElement, displayable)), displayable.__dirty = 0), svgElement && newVisibleList.push(displayable));
}
for(var oldArr, newArr, diff = function(oldArr, newArr, equals) {
for(var diff = function(oldArr, newArr, equals) {
equals || (equals = function(a, b) {
return a === b;
}), oldArr = oldArr.slice();
@ -18846,7 +18846,7 @@
}
};
function updateStyle(el, data, dataIndex, itemModel, layout, seriesModel, isHorizontal, isPolar) {
var style = data.getItemVisual(dataIndex, 'style');
var layout1, style = data.getItemVisual(dataIndex, 'style');
isPolar || el.setShape('r', itemModel.get([
'itemStyle',
'borderRadius'
@ -18865,7 +18865,7 @@
return getDefaultInterpolatedLabel(data, value);
});
}
var layout1, emphasisModel = itemModel.getModel([
var emphasisModel = itemModel.getModel([
'emphasis'
]);
enableHoverEmphasis(el, emphasisModel.get('focus'), emphasisModel.get('blurScope')), setStatesStylesFromModel(el, itemModel), null != layout.startAngle && null != layout.endAngle && layout.startAngle === layout.endAngle && (el.style.fill = 'none', el.style.stroke = 'none', each(el.states, function(state) {
@ -18884,13 +18884,13 @@
}, LargePath;
}(Path);
function createLarge(seriesModel, group, incremental) {
var data = seriesModel.getData(), startPoint = [], baseDimIdx = data.getLayout('valueAxisHorizontal') ? 1 : 0;
startPoint[1 - baseDimIdx] = data.getLayout('valueAxisStart');
var largeDataIndices = data.getLayout('largeDataIndices'), barWidth = data.getLayout('barWidth'), backgroundModel = seriesModel.getModel('backgroundStyle');
var el, seriesModel1, data, globalStyle, data1 = seriesModel.getData(), startPoint = [], baseDimIdx = data1.getLayout('valueAxisHorizontal') ? 1 : 0;
startPoint[1 - baseDimIdx] = data1.getLayout('valueAxisStart');
var largeDataIndices = data1.getLayout('largeDataIndices'), barWidth = data1.getLayout('barWidth'), backgroundModel = seriesModel.getModel('backgroundStyle');
if (seriesModel.get('showBackground', !0)) {
var points = data.getLayout('largeBackgroundPoints'), backgroundStartPoint = [];
backgroundStartPoint[1 - baseDimIdx] = data.getLayout('backgroundStart');
var el, backgroundModel1, data1, borderColor, itemStyle, bgEl = new LargePath({
var el1, backgroundModel1, data2, borderColor, itemStyle, points = data1.getLayout('largeBackgroundPoints'), backgroundStartPoint = [];
backgroundStartPoint[1 - baseDimIdx] = data1.getLayout('backgroundStart');
var bgEl = new LargePath({
shape: {
points: points
},
@ -18898,15 +18898,15 @@
silent: !0,
z2: 0
});
bgEl.__startPoint = backgroundStartPoint, bgEl.__baseDimIdx = baseDimIdx, bgEl.__largeDataIndices = largeDataIndices, bgEl.__barWidth = barWidth, el = bgEl, backgroundModel1 = backgroundModel, data1 = data, borderColor = backgroundModel1.get('borderColor') || backgroundModel1.get('color'), itemStyle = backgroundModel1.getItemStyle(), el.useStyle(itemStyle), el.style.fill = null, el.style.stroke = borderColor, el.style.lineWidth = data1.getLayout('barWidth'), group.add(bgEl);
bgEl.__startPoint = backgroundStartPoint, bgEl.__baseDimIdx = baseDimIdx, bgEl.__largeDataIndices = largeDataIndices, bgEl.__barWidth = barWidth, el1 = bgEl, backgroundModel1 = backgroundModel, data2 = data1, borderColor = backgroundModel1.get('borderColor') || backgroundModel1.get('color'), itemStyle = backgroundModel1.getItemStyle(), el1.useStyle(itemStyle), el1.style.fill = null, el1.style.stroke = borderColor, el1.style.lineWidth = data2.getLayout('barWidth'), group.add(bgEl);
}
var el1, seriesModel1, data2, globalStyle, el2 = new LargePath({
var el2 = new LargePath({
shape: {
points: data.getLayout('largePoints')
points: data1.getLayout('largePoints')
},
incremental: !!incremental
});
el2.__startPoint = startPoint, el2.__baseDimIdx = baseDimIdx, el2.__largeDataIndices = largeDataIndices, el2.__barWidth = barWidth, group.add(el2), el1 = el2, seriesModel1 = seriesModel, globalStyle = (data2 = data).getVisual('style'), el1.useStyle(extend({}, globalStyle)), el1.style.fill = null, el1.style.stroke = globalStyle.fill, el1.style.lineWidth = data2.getLayout('barWidth'), getECData(el2).seriesIndex = seriesModel.seriesIndex, seriesModel.get('silent') || (el2.on('mousedown', largePathUpdateDataIndex), el2.on('mousemove', largePathUpdateDataIndex));
el2.__startPoint = startPoint, el2.__baseDimIdx = baseDimIdx, el2.__largeDataIndices = largeDataIndices, el2.__barWidth = barWidth, group.add(el2), el = el2, seriesModel1 = seriesModel, globalStyle = (data = data1).getVisual('style'), el.useStyle(extend({}, globalStyle)), el.style.fill = null, el.style.stroke = globalStyle.fill, el.style.lineWidth = data.getLayout('barWidth'), getECData(el2).seriesIndex = seriesModel.seriesIndex, seriesModel.get('silent') || (el2.on('mousedown', largePathUpdateDataIndex), el2.on('mousemove', largePathUpdateDataIndex));
}
var largePathUpdateDataIndex = throttle(function(event) {
var dataIndex = function(largePath, x, y) {
@ -20504,9 +20504,9 @@
}, AxisView.prototype.dispose = function(ecModel, api) {
this._disposeAxisPointer(api), _super.prototype.dispose.apply(this, arguments);
}, AxisView.prototype._doUpdateAxisPointerClass = function(axisModel, api, forceRender) {
var Clazz = AxisView.getAxisPointerClass(this.axisPointerClass);
var axisModel1, axisInfo, Clazz = AxisView.getAxisPointerClass(this.axisPointerClass);
if (Clazz) {
var axisModel1, axisInfo, axisPointerModel = (axisInfo = getAxisInfo(axisModel)) && axisInfo.axisPointerModel;
var axisPointerModel = (axisModel1 = axisModel, (axisInfo = getAxisInfo(axisModel1)) && axisInfo.axisPointerModel);
axisPointerModel ? (this._axisPointer || (this._axisPointer = new Clazz())).render(axisModel, axisPointerModel, api, forceRender) : this._disposeAxisPointer(api);
}
}, AxisView.prototype._disposeAxisPointer = function(api) {
@ -20743,9 +20743,9 @@
return __extends(RadarView, _super), RadarView.prototype.render = function(seriesModel, ecModel, api) {
var polar = seriesModel.coordinateSystem, group = this.group, data = seriesModel.getData(), oldData = this._data;
function createSymbol$1(data, idx) {
var symbolType = data.getItemVisual(idx, 'symbol') || 'circle';
var symbolSize, symbolType = data.getItemVisual(idx, 'symbol') || 'circle';
if ('none' !== symbolType) {
var symbolSize, symbolSize1 = (symbolSize = data.getItemVisual(idx, 'symbolSize'), isArray(symbolSize) || (symbolSize = [
var symbolSize1 = (symbolSize = data.getItemVisual(idx, 'symbolSize'), isArray(symbolSize) || (symbolSize = [
+symbolSize,
+symbolSize
]), symbolSize), symbolPath = createSymbol(symbolType, -1, -1, 2, 2), symbolRotate = data.getItemVisual(idx, 'symbolRotate') || 0;
@ -22682,9 +22682,9 @@
}, Tree.createTree = function(dataRoot, hostModel, beforeLink) {
var tree = new Tree(hostModel), listData = [], dimMax = 1;
(function buildHierarchy(dataNode, parentNode) {
var value = dataNode.value;
var child, node, children, value = dataNode.value;
dimMax = Math.max(dimMax, isArray(value) ? value.length : 1), listData.push(dataNode);
var child, node, children, node1 = new TreeNode(convertOptionIdName(dataNode.name, ''), tree);
var node1 = new TreeNode(convertOptionIdName(dataNode.name, ''), tree);
parentNode ? (child = node1, node = parentNode, children = node.children, child.parentNode !== node && (children.push(child), child.parentNode = node)) : tree.root = node1, tree._nodes.push(node1);
var children1 = dataNode.children;
if (children1) for(var i = 0; i < children1.length; i++)buildHierarchy(children1[i], node1);
@ -23631,12 +23631,12 @@
}
var VisualMapping = function() {
function VisualMapping(option) {
var mappingMethod = option.mappingMethod, visualType = option.type, thisOption = this.option = clone(option);
var thisOption, pieceList, mappingMethod = option.mappingMethod, visualType = option.type, thisOption1 = this.option = clone(option);
this.type = visualType, this.mappingMethod = mappingMethod, this._normalizeData = normalizers[mappingMethod];
var thisOption1, pieceList, visualHandler = VisualMapping.visualHandlers[visualType];
this.applyVisual = visualHandler.applyVisual, this.getColorMapper = visualHandler.getColorMapper, this._normalizedToVisual = visualHandler._normalizedToVisual[mappingMethod], 'piecewise' === mappingMethod ? (normalizeVisualRange(thisOption), pieceList = (thisOption1 = thisOption).pieceList, thisOption1.hasSpecialVisual = !1, each(pieceList, function(piece, index) {
piece.originIndex = index, null != piece.visual && (thisOption1.hasSpecialVisual = !0);
})) : 'category' === mappingMethod ? thisOption.categories ? function(thisOption) {
var visualHandler = VisualMapping.visualHandlers[visualType];
this.applyVisual = visualHandler.applyVisual, this.getColorMapper = visualHandler.getColorMapper, this._normalizedToVisual = visualHandler._normalizedToVisual[mappingMethod], 'piecewise' === mappingMethod ? (normalizeVisualRange(thisOption1), pieceList = (thisOption = thisOption1).pieceList, thisOption.hasSpecialVisual = !1, each(pieceList, function(piece, index) {
piece.originIndex = index, null != piece.visual && (thisOption.hasSpecialVisual = !0);
})) : 'category' === mappingMethod ? thisOption1.categories ? function(thisOption) {
var categories = thisOption.categories, categoryMap = thisOption.categoryMap = {}, visual = thisOption.visual;
if (each(categories, function(cate, index) {
categoryMap[cate] = index;
@ -23648,7 +23648,7 @@
}) : visualArr_1[-1] = visual, visual = setVisualToOption(thisOption, visualArr_1);
}
for(var i = categories.length - 1; i >= 0; i--)null == visual[i] && (delete categoryMap[categories[i]], categories.pop());
}(thisOption) : normalizeVisualRange(thisOption, !0) : (assert('linear' !== mappingMethod || thisOption.dataExtent), normalizeVisualRange(thisOption));
}(thisOption1) : normalizeVisualRange(thisOption1, !0) : (assert('linear' !== mappingMethod || thisOption1.dataExtent), normalizeVisualRange(thisOption1));
}
return VisualMapping.prototype.mapValueToVisual = function(value) {
var normalized = this._normalizeData(value);
@ -24561,7 +24561,7 @@
return ecModel.eachSeriesByType('graph', function(seriesModel) {
var coordSysType = seriesModel.get('coordinateSystem');
if (!coordSysType || 'view' === coordSysType) {
var data_1 = seriesModel.getData(), positions = data_1.mapArray(function(idx) {
var seriesModel1, api1, aspect, option, data_1 = seriesModel.getData(), positions = data_1.mapArray(function(idx) {
var itemModel = data_1.getItemModel(idx);
return [
+itemModel.get('x'),
@ -24569,7 +24569,7 @@
];
}), min = [], max = [];
fromPoints(positions, min, max), max[0] - min[0] == 0 && (max[0] += 1, min[0] -= 1), max[1] - min[1] == 0 && (max[1] += 1, min[1] -= 1);
var seriesModel1, api1, aspect, option, aspect1 = (max[0] - min[0]) / (max[1] - min[1]), viewRect = (option = extend(seriesModel.getBoxLayoutParams(), {
var aspect1 = (max[0] - min[0]) / (max[1] - min[1]), viewRect = (option = extend(seriesModel.getBoxLayoutParams(), {
aspect: aspect1
}), getLayoutRect(option, {
width: api.getWidth(),
@ -24587,7 +24587,7 @@
}
}), viewList;
}
var _super, straightLineProto = Line.prototype, bezierCurveProto = BezierCurve.prototype, StraightLineShape = function() {
var straightLineProto = Line.prototype, bezierCurveProto = BezierCurve.prototype, StraightLineShape = function() {
this.x1 = 0, this.y1 = 0, this.x2 = 0, this.y2 = 0, this.percent = 1;
};
function isStraightLine(shape) {
@ -27097,9 +27097,8 @@
mousemove: function(e) {
var x = e.offsetX, y = e.offsetY, localCursorPoint = this.group.transformCoordToLocal(x, y);
if (!function(controller, e, localCursorPoint) {
var controller1, x, y, zr;
if (!(!controller._brushType || (controller1 = controller, x = e.offsetX, y = e.offsetY, zr = controller1._zr, x < 0 || x > zr.getWidth() || y < 0 || y > zr.getHeight()))) {
var zr1 = controller._zr, covers = controller._covers, currPanel = getPanelByPoint(controller, e, localCursorPoint);
var controller1, x, y, zr, zr1 = controller._zr, covers = controller._covers, currPanel = getPanelByPoint(controller, e, localCursorPoint);
if (!controller._dragging) for(var i = 0; i < covers.length; i++){
var brushOption = covers[i].__brushOption;
if (currPanel && (!0 === currPanel || brushOption.panelId === currPanel.panelId) && coverRenderers[brushOption.brushType].contain(covers[i], localCursorPoint[0], localCursorPoint[1])) return;
@ -27613,23 +27612,23 @@
}(SeriesModel);
function sankeyLayout(ecModel, api) {
ecModel.eachSeriesByType('sankey', function(seriesModel) {
var seriesModel1, api1, nodeWidth = seriesModel.get('nodeWidth'), nodeGap = seriesModel.get('nodeGap'), layoutInfo = (seriesModel1 = seriesModel, api1 = api, getLayoutRect(seriesModel1.getBoxLayoutParams(), {
var seriesModel1, api1, nodes, nodes1, edges, nodeWidth, nodeGap, width, height, iterations, orient, nodeAlign, nodes2, orient1, keyAttr, nodeWidth1 = seriesModel.get('nodeWidth'), nodeGap1 = seriesModel.get('nodeGap'), layoutInfo = (seriesModel1 = seriesModel, api1 = api, getLayoutRect(seriesModel1.getBoxLayoutParams(), {
width: api1.getWidth(),
height: api1.getHeight()
}));
seriesModel.layoutInfo = layoutInfo;
var nodes, width = layoutInfo.width, height = layoutInfo.height, graph = seriesModel.getGraph(), nodes1 = graph.nodes, edges = graph.edges;
nodes = nodes1, each(nodes, function(node) {
var width1 = layoutInfo.width, height1 = layoutInfo.height, graph = seriesModel.getGraph(), nodes3 = graph.nodes, edges1 = graph.edges;
nodes = nodes3, each(nodes, function(node) {
var value1 = sum(node.outEdges, getEdgeValue), value2 = sum(node.inEdges, getEdgeValue), nodeRawValue = node.getValue() || 0;
node.setLayout({
value: Math.max(value1, value2, nodeRawValue)
}, !0);
});
var nodes2, edges1, nodeWidth1, nodeGap1, width1, height1, iterations, orient, nodeAlign, nodes3, orient1, keyAttr, iterations1 = 0 !== filter(nodes1, function(node) {
var iterations1 = 0 !== filter(nodes3, function(node) {
return 0 === node.getLayout().value;
}).length ? 0 : seriesModel.get('layoutIterations'), orient2 = seriesModel.get('orient');
nodes2 = nodes1, edges1 = edges, nodeWidth1 = nodeWidth, nodeGap1 = nodeGap, width1 = width, height1 = height, iterations = iterations1, orient = orient2, nodeAlign = seriesModel.get('nodeAlign'), function(nodes, edges, nodeWidth, width, height, orient, nodeAlign) {
for(var remainEdges = [], indegreeArr = [], zeroIndegrees = [], nextTargetNode = [], x = 0, i = 0; i < edges.length; i++)remainEdges[i] = 1;
nodes1 = nodes3, edges = edges1, nodeWidth = nodeWidth1, nodeGap = nodeGap1, width = width1, height = height1, iterations = iterations1, orient = orient2, nodeAlign = seriesModel.get('nodeAlign'), function(nodes, edges, nodeWidth, width, height, orient, nodeAlign) {
for(var nodes1, kx, orient1, remainEdges = [], indegreeArr = [], zeroIndegrees = [], nextTargetNode = [], x = 0, i = 0; i < edges.length; i++)remainEdges[i] = 1;
for(var i = 0; i < nodes.length; i++)indegreeArr[i] = nodes[i].inEdges.length, 0 === indegreeArr[i] && zeroIndegrees.push(nodes[i]);
for(var maxNodeDepth = -1; zeroIndegrees.length;){
for(var idx = 0; idx < zeroIndegrees.length; idx++){
@ -27651,7 +27650,7 @@
++x, zeroIndegrees = nextTargetNode, nextTargetNode = [];
}
for(var i = 0; i < remainEdges.length; i++)if (1 === remainEdges[i]) throw Error('Sankey is a DAG, the original data has cycle!');
var nodes1, kx, orient1, maxDepth = maxNodeDepth > x - 1 ? maxNodeDepth : x - 1;
var maxDepth = maxNodeDepth > x - 1 ? maxNodeDepth : x - 1;
nodeAlign && 'left' !== nodeAlign && function(nodes, nodeAlign, orient, maxDepth) {
if ('right' === nodeAlign) {
for(var nodes1, maxDepth1, nextSourceNode = [], remainNodes = nodes, nodeHeight = 0; remainNodes.length;){
@ -27687,7 +27686,7 @@
x: nodeDepth
}, !0);
});
}(nodes2, edges1, nodeWidth1, width1, height1, orient, nodeAlign), function(nodes, edges, height, width, nodeGap, iterations, orient) {
}(nodes1, edges, nodeWidth, width, height, orient, nodeAlign), function(nodes, edges, height, width, nodeGap, iterations, orient) {
var nodes1, orient1, nodesByBreadth, keyAttr, groupResult, nodesByBreadth1, edges1, height1, width1, nodeGap1, orient2, minKy, nodesByBreadth2 = (nodes1 = nodes, orient1 = orient, nodesByBreadth = [], keyAttr = 'vertical' === orient1 ? 'y' : 'x', groupResult = groupData(nodes1, function(node) {
return node.getLayout()[keyAttr];
}), groupResult.keys.sort(function(a, b) {
@ -27722,13 +27721,13 @@
}, !0);
}), resolveCollisions(nodesByBreadth2, nodeGap, height, width, orient);
for(var alpha = 1; iterations > 0; iterations--)relaxRightToLeft(nodesByBreadth2, alpha *= 0.99, orient), resolveCollisions(nodesByBreadth2, nodeGap, height, width, orient), relaxLeftToRight(nodesByBreadth2, alpha, orient), resolveCollisions(nodesByBreadth2, nodeGap, height, width, orient);
}(nodes2, edges1, height1, width1, nodeGap1, iterations, orient), nodes3 = nodes2, keyAttr = 'vertical' === (orient1 = orient) ? 'x' : 'y', each(nodes3, function(node) {
}(nodes1, edges, height, width, nodeGap, iterations, orient), nodes2 = nodes1, keyAttr = 'vertical' === (orient1 = orient) ? 'x' : 'y', each(nodes2, function(node) {
node.outEdges.sort(function(a, b) {
return a.node2.getLayout()[keyAttr] - b.node2.getLayout()[keyAttr];
}), node.inEdges.sort(function(a, b) {
return a.node1.getLayout()[keyAttr] - b.node1.getLayout()[keyAttr];
});
}), each(nodes3, function(node) {
}), each(nodes2, function(node) {
var sy = 0, ty = 0;
each(node.outEdges, function(edge) {
edge.setLayout({
@ -28536,9 +28535,9 @@
}, EffectSymbol.prototype.downplay = function() {
leaveEmphasis(this);
}, EffectSymbol.prototype.updateData = function(data, idx) {
var _this = this, seriesModel = data.hostModel;
var symbolSize, _this = this, seriesModel = data.hostModel;
this.childAt(0).updateData(data, idx);
var symbolSize, rippleGroup = this.childAt(1), itemModel = data.getItemModel(idx), symbolType = data.getItemVisual(idx, 'symbol'), symbolSize1 = (symbolSize = data.getItemVisual(idx, 'symbolSize'), isArray(symbolSize) || (symbolSize = [
var rippleGroup = this.childAt(1), itemModel = data.getItemModel(idx), symbolType = data.getItemVisual(idx, 'symbol'), symbolSize1 = (symbolSize = data.getItemVisual(idx, 'symbolSize'), isArray(symbolSize) || (symbolSize = [
+symbolSize,
+symbolSize
]), symbolSize), symbolStyle = data.getItemVisual(idx, 'style'), color = symbolStyle && symbolStyle.fill;
@ -29247,11 +29246,11 @@
}), rect.ensureState('emphasis').style = emphasisStyle, rect.ensureState('blur').style = blurStyle, rect.ensureState('select').style = selectStyle, enableHoverEmphasis(rect, focus, blurScope), rect.incremental = incremental, incremental && (rect.states.emphasis.hoverLayer = !0), group.add(rect), data.setItemGraphicEl(idx, rect);
}
}, HeatmapView.prototype._renderOnGeo = function(geo, seriesModel, visualMapModel, api) {
var inRangeVisuals = visualMapModel.targetVisuals.inRange, outOfRangeVisuals = visualMapModel.targetVisuals.outOfRange, data = seriesModel.getData(), hmLayer = this._hmLayer || this._hmLayer || new HeatmapLayer();
var dataExtent, range, dataSpan, dataExtent1, pieceList, selected, dataSpan1, len, lastIndex, inRangeVisuals = visualMapModel.targetVisuals.inRange, outOfRangeVisuals = visualMapModel.targetVisuals.outOfRange, data = seriesModel.getData(), hmLayer = this._hmLayer || this._hmLayer || new HeatmapLayer();
hmLayer.blurSize = seriesModel.get('blurSize'), hmLayer.pointSize = seriesModel.get('pointSize'), hmLayer.minOpacity = seriesModel.get('minOpacity'), hmLayer.maxOpacity = seriesModel.get('maxOpacity');
var rect = geo.getViewRect().clone(), roamTransform = geo.getRoamTransform();
rect.applyTransform(roamTransform);
var dataExtent, range, dataSpan, dataExtent1, pieceList, selected, dataSpan1, len, lastIndex, x = Math.max(rect.x, 0), y = Math.max(rect.y, 0), x2 = Math.min(rect.width + rect.x, api.getWidth()), y2 = Math.min(rect.height + rect.y, api.getHeight()), width = x2 - x, height = y2 - y, dims = [
var x = Math.max(rect.x, 0), y = Math.max(rect.y, 0), x2 = Math.min(rect.width + rect.x, api.getWidth()), y2 = Math.min(rect.height + rect.y, api.getHeight()), width = x2 - x, height = y2 - y, dims = [
data.mapDimension('lng'),
data.mapDimension('lat'),
data.mapDimension('value')
@ -29393,16 +29392,16 @@
data.setItemGraphicEl(dataIndex, bar), group.add(bar), updateCommon$1(bar, opt, symbolMeta);
}
}).update(function(newIndex, oldIndex) {
var bar = oldData.getItemGraphicEl(oldIndex);
var bar, opt1, symbolMeta, animationModel, dataIndex, bar1 = oldData.getItemGraphicEl(oldIndex);
if (!data.hasValue(newIndex)) {
group.remove(bar);
group.remove(bar1);
return;
}
var bar1, opt1, symbolMeta, animationModel, dataIndex, itemModel = getItemModel(data, newIndex), symbolMeta1 = getSymbolMeta(data, newIndex, itemModel, opt), pictorialShapeStr = getShapeStr(data, symbolMeta1);
bar && pictorialShapeStr !== bar.__pictorialShapeStr && (group.remove(bar), data.setItemGraphicEl(newIndex, null), bar = null), bar ? (bar1 = bar, opt1 = opt, symbolMeta = symbolMeta1, animationModel = symbolMeta.animationModel, dataIndex = symbolMeta.dataIndex, updateProps(bar1.__pictorialBundle, {
var itemModel = getItemModel(data, newIndex), symbolMeta1 = getSymbolMeta(data, newIndex, itemModel, opt), pictorialShapeStr = getShapeStr(data, symbolMeta1);
bar1 && pictorialShapeStr !== bar1.__pictorialShapeStr && (group.remove(bar1), data.setItemGraphicEl(newIndex, null), bar1 = null), bar1 ? (bar = bar1, opt1 = opt, symbolMeta = symbolMeta1, animationModel = symbolMeta.animationModel, dataIndex = symbolMeta.dataIndex, updateProps(bar.__pictorialBundle, {
x: symbolMeta.bundlePosition[0],
y: symbolMeta.bundlePosition[1]
}, animationModel, dataIndex), symbolMeta.symbolRepeat ? createOrUpdateRepeatSymbols(bar1, opt1, symbolMeta, !0) : createOrUpdateSingleSymbol(bar1, opt1, symbolMeta, !0), createOrUpdateBarRect(bar1, symbolMeta, !0), createOrUpdateClip(bar1, opt1, symbolMeta, !0)) : bar = createBar(data, opt, symbolMeta1, !0), data.setItemGraphicEl(newIndex, bar), bar.__pictorialSymbolMeta = symbolMeta1, group.add(bar), updateCommon$1(bar, opt, symbolMeta1);
}, animationModel, dataIndex), symbolMeta.symbolRepeat ? createOrUpdateRepeatSymbols(bar, opt1, symbolMeta, !0) : createOrUpdateSingleSymbol(bar, opt1, symbolMeta, !0), createOrUpdateBarRect(bar, symbolMeta, !0), createOrUpdateClip(bar, opt1, symbolMeta, !0)) : bar1 = createBar(data, opt, symbolMeta1, !0), data.setItemGraphicEl(newIndex, bar1), bar1.__pictorialSymbolMeta = symbolMeta1, group.add(bar1), updateCommon$1(bar1, opt, symbolMeta1);
}).remove(function(dataIndex) {
var bar = oldData.getItemGraphicEl(dataIndex);
bar && removeBar(oldData, dataIndex, bar.__pictorialSymbolMeta.animationModel, bar);
@ -30004,9 +30003,9 @@
return _this.type = SunburstView.type, _this;
}
return __extends(SunburstView, _super), SunburstView.prototype.render = function(seriesModel, ecModel, api, payload) {
var self1 = this;
var virtualRoot, viewRoot, self1 = this;
this.seriesModel = seriesModel, this.api = api, this.ecModel = ecModel;
var virtualRoot, viewRoot, data = seriesModel.getData(), virtualRoot1 = data.tree.root, newRoot = seriesModel.getViewRoot(), group = this.group, renderLabelForZeroData = seriesModel.get('renderLabelForZeroData'), newChildren = [];
var data = seriesModel.getData(), virtualRoot1 = data.tree.root, newRoot = seriesModel.getViewRoot(), group = this.group, renderLabelForZeroData = seriesModel.get('renderLabelForZeroData'), newChildren = [];
newRoot.eachNode(function(node) {
newChildren.push(node);
}), function(newChildren, oldChildren) {
@ -31208,7 +31207,7 @@
fromTransformable && (transitionFrom[name] = fromTransformable[name]);
}
function makeRenderItem(customSeries, data, ecModel, api) {
var currDataIndexInside, currItemModel, data1, encodeDef, renderItem = customSeries.get('renderItem'), coordSys = customSeries.coordinateSystem, prepareResult = {};
var data1, encodeDef, currDataIndexInside, currItemModel, renderItem = customSeries.get('renderItem'), coordSys = customSeries.coordinateSystem, prepareResult = {};
coordSys && (assert(renderItem, 'series.render is required.'), assert(coordSys.prepareCustoms || prepareCustoms[coordSys.type], 'This coordSys does not support custom series.'), prepareResult = coordSys.prepareCustoms ? coordSys.prepareCustoms(coordSys) : prepareCustoms[coordSys.type](coordSys));
for(var userAPI = defaults({
getWidth: api.getWidth,
@ -31741,7 +31740,7 @@
return 'line' === axisPointerType ? (style = styleModel.getLineStyle()).fill = null : 'shadow' === axisPointerType && ((style = styleModel.getAreaStyle()).stroke = null), style;
}
function buildLabelElOption(elOption, axisModel, axisPointerModel, api, labelPos) {
var text = getValueLabel(axisPointerModel.get('value'), axisModel.axis, axisModel.ecModel, axisPointerModel.get('seriesDataIndices'), {
var position, width, height, api1, viewWidth, viewHeight, text = getValueLabel(axisPointerModel.get('value'), axisModel.axis, axisModel.ecModel, axisPointerModel.get('seriesDataIndices'), {
precision: axisPointerModel.get([
'label',
'precision'
@ -31750,18 +31749,18 @@
'label',
'formatter'
])
}), labelModel = axisPointerModel.getModel('label'), paddings = normalizeCssArray(labelModel.get('padding') || 0), font = labelModel.getFont(), textRect = getBoundingRect(text, font), position = labelPos.position, width = textRect.width + paddings[1] + paddings[3], height = textRect.height + paddings[0] + paddings[2], align = labelPos.align;
'right' === align && (position[0] -= width), 'center' === align && (position[0] -= width / 2);
var position1, width1, height1, api1, viewWidth, viewHeight, verticalAlign = labelPos.verticalAlign;
'bottom' === verticalAlign && (position[1] -= height), 'middle' === verticalAlign && (position[1] -= height / 2), position1 = position, width1 = width, height1 = height, viewWidth = (api1 = api).getWidth(), viewHeight = api1.getHeight(), position1[0] = Math.min(position1[0] + width1, viewWidth) - width1, position1[1] = Math.min(position1[1] + height1, viewHeight) - height1, position1[0] = Math.max(position1[0], 0), position1[1] = Math.max(position1[1], 0);
}), labelModel = axisPointerModel.getModel('label'), paddings = normalizeCssArray(labelModel.get('padding') || 0), font = labelModel.getFont(), textRect = getBoundingRect(text, font), position1 = labelPos.position, width1 = textRect.width + paddings[1] + paddings[3], height1 = textRect.height + paddings[0] + paddings[2], align = labelPos.align;
'right' === align && (position1[0] -= width1), 'center' === align && (position1[0] -= width1 / 2);
var verticalAlign = labelPos.verticalAlign;
'bottom' === verticalAlign && (position1[1] -= height1), 'middle' === verticalAlign && (position1[1] -= height1 / 2), position = position1, width = width1, height = height1, viewWidth = (api1 = api).getWidth(), viewHeight = api1.getHeight(), position[0] = Math.min(position[0] + width, viewWidth) - width, position[1] = Math.min(position[1] + height, viewHeight) - height, position[0] = Math.max(position[0], 0), position[1] = Math.max(position[1], 0);
var bgColor = labelModel.get('backgroundColor');
bgColor && 'auto' !== bgColor || (bgColor = axisModel.get([
'axisLine',
'lineStyle',
'color'
])), elOption.label = {
x: position[0],
y: position[1],
x: position1[0],
y: position1[1],
style: createTextStyle(labelModel, {
text: text,
font: font,
@ -32082,11 +32081,11 @@
seriesIndex: payload.seriesIndex,
dataIndex: payload.dataIndex
}, ecModel).point);
var isIllegalPoint = illegalPoint(point), inputAxesInfo = payload.axesInfo, axesInfo = coordSysAxesInfo.axesInfo, shouldHide = 'leave' === currTrigger || illegalPoint(point), outputPayload = {}, showValueMap = {}, dataByCoordSys = {
var showValueMap, axesInfo, outputPayload, outputAxesInfo, axesInfo1, dispatchAction1, api1, zr, highDownKey, lastHighlights, newHighlights, toHighlight, toDownplay, isIllegalPoint = illegalPoint(point), inputAxesInfo = payload.axesInfo, axesInfo2 = coordSysAxesInfo.axesInfo, shouldHide = 'leave' === currTrigger || illegalPoint(point), outputPayload1 = {}, showValueMap1 = {}, dataByCoordSys = {
list: [],
map: {}
}, updaters = {
showPointer: curry(showPointer, showValueMap),
showPointer: curry(showPointer, showValueMap1),
showTooltip: curry(showTooltip, dataByCoordSys)
};
each(coordSysAxesInfo.coordSysMap, function(coordSys, coordSysKey) {
@ -32100,24 +32099,24 @@
}(inputAxesInfo, axisInfo);
if (!shouldHide && coordSysContainsPoint && (!inputAxesInfo || inputAxisInfo)) {
var val = inputAxisInfo && inputAxisInfo.value;
null != val || isIllegalPoint || (val = axis.pointToData(point)), null != val && processOnAxis(axisInfo, val, updaters, !1, outputPayload);
null != val || isIllegalPoint || (val = axis.pointToData(point)), null != val && processOnAxis(axisInfo, val, updaters, !1, outputPayload1);
}
});
});
var showValueMap1, axesInfo1, outputPayload1, outputAxesInfo, axesInfo2, dispatchAction1, api1, zr, highDownKey, lastHighlights, newHighlights, toHighlight, toDownplay, linkTriggers = {};
return each(axesInfo, function(tarAxisInfo, tarKey) {
var linkTriggers = {};
return each(axesInfo2, function(tarAxisInfo, tarKey) {
var linkGroup = tarAxisInfo.linkGroup;
linkGroup && !showValueMap[tarKey] && each(linkGroup.axesInfo, function(srcAxisInfo, srcKey) {
var srcValItem = showValueMap[srcKey];
linkGroup && !showValueMap1[tarKey] && each(linkGroup.axesInfo, function(srcAxisInfo, srcKey) {
var srcValItem = showValueMap1[srcKey];
if (srcAxisInfo !== tarAxisInfo && srcValItem) {
var val = srcValItem.value;
linkGroup.mapper && (val = tarAxisInfo.axis.scale.parse(linkGroup.mapper(val, makeMapperParam(srcAxisInfo), makeMapperParam(tarAxisInfo)))), linkTriggers[tarAxisInfo.key] = val;
}
});
}), each(linkTriggers, function(val, tarKey) {
processOnAxis(axesInfo[tarKey], val, updaters, !0, outputPayload);
}), showValueMap1 = showValueMap, axesInfo1 = axesInfo, outputAxesInfo = (outputPayload1 = outputPayload).axesInfo = [], each(axesInfo1, function(axisInfo, key) {
var option = axisInfo.axisPointerModel.option, valItem = showValueMap1[key];
processOnAxis(axesInfo2[tarKey], val, updaters, !0, outputPayload1);
}), showValueMap = showValueMap1, axesInfo = axesInfo2, outputAxesInfo = (outputPayload = outputPayload1).axesInfo = [], each(axesInfo, function(axisInfo, key) {
var option = axisInfo.axisPointerModel.option, valItem = showValueMap[key];
valItem ? (axisInfo.useHandle || (option.status = 'show'), option.value = valItem.value, option.seriesDataIndices = (valItem.payloadBatch || []).slice()) : axisInfo.useHandle || (option.status = 'hide'), 'show' === option.status && outputAxesInfo.push({
axisDim: axisInfo.axis.dim,
axisIndex: axisInfo.axis.model.componentIndex,
@ -32143,7 +32142,7 @@
seriesIndex: sampleItem.seriesIndex,
dataByCoordSys: dataByCoordSys.list
});
}(dataByCoordSys, point, payload, dispatchAction), axesInfo2 = axesInfo, dispatchAction1 = dispatchAction, zr = (api1 = api).getZr(), highDownKey = 'axisPointerLastHighlights', lastHighlights = inner$c(zr)[highDownKey] || {}, newHighlights = inner$c(zr)[highDownKey] = {}, each(axesInfo2, function(axisInfo, key) {
}(dataByCoordSys, point, payload, dispatchAction), axesInfo1 = axesInfo2, dispatchAction1 = dispatchAction, zr = (api1 = api).getZr(), highDownKey = 'axisPointerLastHighlights', lastHighlights = inner$c(zr)[highDownKey] || {}, newHighlights = inner$c(zr)[highDownKey] = {}, each(axesInfo1, function(axisInfo, key) {
var option = axisInfo.axisPointerModel.option;
'show' === option.status && each(option.seriesDataIndices, function(batchItem) {
newHighlights[batchItem.seriesIndex + ' | ' + batchItem.dataIndex] = batchItem;
@ -32162,7 +32161,7 @@
escapeConnect: !0,
notBlur: !0,
batch: toHighlight
}), outputPayload;
}), outputPayload1;
}
}
function processOnAxis(axisInfo, newValue, updaters, noSnap, outputFinder) {
@ -32628,10 +32627,10 @@
create: function(ecModel, api) {
var polarList = [];
return ecModel.eachComponent('polar', function(polarModel, idx) {
var polar = new Polar(idx + '');
polar.update = updatePolarScale;
var polar1, polarModel1, api1, center, width, height, radiusAxis, size, radius, parsedRadius, radiusAxis1 = polar.getRadiusAxis(), angleAxis = polar.getAngleAxis(), radiusAxisModel = polarModel.findAxisModel('radiusAxis'), angleAxisModel = polarModel.findAxisModel('angleAxis');
setAxis(radiusAxis1, radiusAxisModel), setAxis(angleAxis, angleAxisModel), polar1 = polar, center = polarModel.get('center'), width = api.getWidth(), height = api.getHeight(), polar1.cx = parsePercent$1(center[0], width), polar1.cy = parsePercent$1(center[1], height), radiusAxis = polar1.getRadiusAxis(), size = Math.min(width, height) / 2, null == (radius = polarModel.get('radius')) ? radius = [
var polar, polarModel1, api1, center, width, height, radiusAxis, size, radius, parsedRadius, polar1 = new Polar(idx + '');
polar1.update = updatePolarScale;
var radiusAxis1 = polar1.getRadiusAxis(), angleAxis = polar1.getAngleAxis(), radiusAxisModel = polarModel.findAxisModel('radiusAxis'), angleAxisModel = polarModel.findAxisModel('angleAxis');
setAxis(radiusAxis1, radiusAxisModel), setAxis(angleAxis, angleAxisModel), polar = polar1, center = polarModel.get('center'), width = api.getWidth(), height = api.getHeight(), polar.cx = parsePercent$1(center[0], width), polar.cy = parsePercent$1(center[1], height), radiusAxis = polar.getRadiusAxis(), size = Math.min(width, height) / 2, null == (radius = polarModel.get('radius')) ? radius = [
0,
'100%'
] : isArray(radius) || (radius = [
@ -32640,7 +32639,7 @@
]), parsedRadius = [
parsePercent$1(radius[0], size),
parsePercent$1(radius[1], size)
], radiusAxis.inverse ? radiusAxis.setExtent(parsedRadius[1], parsedRadius[0]) : radiusAxis.setExtent(parsedRadius[0], parsedRadius[1]), polarList.push(polar), polarModel.coordinateSystem = polar, polar.model = polarModel;
], radiusAxis.inverse ? radiusAxis.setExtent(parsedRadius[1], parsedRadius[0]) : radiusAxis.setExtent(parsedRadius[0], parsedRadius[1]), polarList.push(polar1), polarModel.coordinateSystem = polar1, polar1.model = polarModel;
}), ecModel.eachSeries(function(seriesModel) {
if ('polar' === seriesModel.get('coordinateSystem')) {
var polarModel = seriesModel.getReferringComponents('polar', SINGLE_REFERRING).models[0];
@ -34063,7 +34062,7 @@
var convertResult = convertFromEC4CompatibleStyle(elOptionStyle, elType, !0);
!textConfig && convertResult.textConfig && (textConfig = elOption.textConfig = convertResult.textConfig), !textContentOption && convertResult.textContent && (textContentOption = convertResult.textContent);
}
var elOption1, elOptionCleaned = (elOption1 = elOption, elOption1 = extend({}, elOption1), each([
var elOptionCleaned = (elOption1 = elOption, elOption1 = extend({}, elOption1), each([
'id',
'parentId',
'$action',
@ -34084,7 +34083,7 @@
} else 'replace' === $action && el.setTextContent(new ZRText(textContentOption));
}
if (el) {
var el1, graphicModel1, elOption2, eventData, elInner = inner$e(el);
var elOption1, el1, graphicModel1, elOption2, eventData, elInner = inner$e(el);
elInner.__ecGraphicWidthOption = elOption.width, elInner.__ecGraphicHeightOption = elOption.height, el1 = el, graphicModel1 = graphicModel, elOption2 = elOption, eventData = getECData(el1).eventData, el1.silent || el1.ignore || eventData || (eventData = getECData(el1).eventData = {
componentType: 'graphic',
componentIndex: graphicModel1.componentIndex,
@ -35001,7 +35000,7 @@
return null !== _super && _super.apply(this, arguments) || this;
}
return __extends(DataView, _super), DataView.prototype.onclick = function(ecModel, api) {
var container = api.getDom(), model = this.model;
var ecModel1, ecModel2, seriesGroupByCategoryAxis, otherSeries, meta, result, groups, tables, series, container = api.getDom(), model = this.model;
this._dom && container.removeChild(this._dom);
var root = document.createElement('div');
root.style.cssText = 'position:absolute;left:5px;top:5px;bottom:5px;right:5px;', root.style.backgroundColor = model.get('backgroundColor') || '#fff';
@ -35009,7 +35008,7 @@
header.innerHTML = lang[0] || model.get('title'), header.style.cssText = 'margin: 10px 20px;', header.style.color = model.get('textColor');
var viewMain = document.createElement('div'), textarea = document.createElement('textarea');
viewMain.style.cssText = 'display:block;width:100%;overflow:auto;';
var ecModel1, ecModel2, seriesGroupByCategoryAxis, otherSeries, meta, result, groups, tables, series, optionToContent = model.get('optionToContent'), contentToOption = model.get('contentToOption'), result1 = (seriesGroupByCategoryAxis = {}, otherSeries = [], meta = [], ecModel.eachRawSeries(function(seriesModel) {
var optionToContent = model.get('optionToContent'), contentToOption = model.get('contentToOption'), result1 = (seriesGroupByCategoryAxis = {}, otherSeries = [], meta = [], ecModel.eachRawSeries(function(seriesModel) {
var coordSys = seriesModel.coordinateSystem;
if (coordSys && ('cartesian2d' === coordSys.type || 'polar' === coordSys.type)) {
var baseAxis = coordSys.getBaseAxis();
@ -35516,9 +35515,9 @@
}, DataZoomFeature.prototype.dispose = function(ecModel, api) {
this._brushController && this._brushController.dispose();
}, DataZoomFeature.prototype._onBrush = function(eventParam) {
var areas = eventParam.areas;
var ecModel, newSnapshot, storedSnapshots, areas = eventParam.areas;
if (eventParam.isEnd && areas.length) {
var ecModel, newSnapshot, storedSnapshots, snapshot = {}, ecModel1 = this.ecModel;
var snapshot = {}, ecModel1 = this.ecModel;
this._brushController.updateCovers([]), new BrushTargetManager(makeAxisFinder(this.model), ecModel1, {
include: [
'grid'
@ -35531,10 +35530,10 @@
lineY: 'y'
}[brushType], coordSys, coordRange);
}
}), storedSnapshots = getStoreSnapshots(ecModel1), each(snapshot, function(batchItem, dataZoomId) {
}), ecModel = ecModel1, newSnapshot = snapshot, storedSnapshots = getStoreSnapshots(ecModel), each(newSnapshot, function(batchItem, dataZoomId) {
for(var i = storedSnapshots.length - 1; i >= 0 && !storedSnapshots[i][dataZoomId]; i--);
if (i < 0) {
var dataZoomModel = ecModel1.queryComponents({
var dataZoomModel = ecModel.queryComponents({
mainType: 'dataZoom',
subType: 'select',
id: dataZoomId
@ -35548,7 +35547,7 @@
};
}
}
}), storedSnapshots.push(snapshot), this._dispatchZoomAction(snapshot);
}), storedSnapshots.push(newSnapshot), this._dispatchZoomAction(snapshot);
}
function setBatch(dimName, coordSys, minMax) {
var dimName1, axisModel, ecModel, found, axis = coordSys.getAxis(dimName), axisModel1 = axis.model, dataZoomModel = (dimName1 = dimName, axisModel = axisModel1, ecModel = ecModel1, ecModel.eachComponent({
@ -36330,7 +36329,7 @@
function brushPreprocessor(option, isNew) {
var brushComponents = normalizeToArray(option ? option.brush : []);
if (brushComponents.length) {
var brushComponentSpecifiedBtns = [];
var arr, map, brushComponentSpecifiedBtns = [];
each(brushComponents, function(brushOpt) {
var tbs = brushOpt.hasOwnProperty('toolbox') ? brushOpt.toolbox : [];
tbs instanceof Array && (brushComponentSpecifiedBtns = brushComponentSpecifiedBtns.concat(tbs));
@ -36341,7 +36340,7 @@
}, option.toolbox = [
toolbox
]);
var arr, map, toolboxFeature = toolbox.feature || (toolbox.feature = {}), toolboxBrush = toolboxFeature.brush || (toolboxFeature.brush = {}), brushTypes = toolboxBrush.type || (toolboxBrush.type = []);
var toolboxFeature = toolbox.feature || (toolbox.feature = {}), toolboxBrush = toolboxFeature.brush || (toolboxFeature.brush = {}), brushTypes = toolboxBrush.type || (toolboxBrush.type = []);
brushTypes.push.apply(brushTypes, brushComponentSpecifiedBtns), map = {}, each(arr = brushTypes, function(val) {
map[val] = 1;
}), arr.length = 0, each(map, function(flag, val) {
@ -36489,11 +36488,10 @@
'parallel' === seriesModel.subType ? (seriesModel1 = seriesModel, seriesIndex1 = seriesIndex, coordSys = seriesModel1.coordinateSystem, hasBrushExists = hasBrushExists || coordSys.hasAxisBrushed(), linkOthers(seriesIndex1) && coordSys.eachActiveState(seriesModel1.getData(), function(activeState, dataIndex) {
'active' === activeState && (selectedDataIndexForLink[dataIndex] = 1);
})) : function(seriesModel, seriesIndex, rangeInfoList) {
var brushModel1, seriesIndex1, seriesIndices;
if (!(!seriesModel.brushSelector || (brushModel1 = brushModel, seriesIndex1 = seriesIndex, seriesIndices = brushModel1.option.seriesIndex, null != seriesIndices && 'all' !== seriesIndices && (isArray(seriesIndices) ? 0 > indexOf(seriesIndices, seriesIndex1) : seriesIndex1 !== seriesIndices))) && (each(areas, function(area) {
brushModel.brushTargetManager.controlSeries(area, seriesModel, ecModel) && rangeInfoList.push(area), hasBrushExists = hasBrushExists || brushed(rangeInfoList);
}), linkOthers(seriesIndex) && brushed(rangeInfoList))) {
var data_1 = seriesModel.getData();
var brushModel1, seriesIndex1, seriesIndices, data_1 = seriesModel.getData();
data_1.each(function(dataIndex) {
checkInRange(seriesModel, rangeInfoList, data_1, dataIndex) && (selectedDataIndexForLink[dataIndex] = 1);
});
@ -38958,21 +38956,21 @@
});
});
}), coordSysRecordMap.each(function(coordSysRecord) {
var firstDzInfo, controller = coordSysRecord.controller, dataZoomInfoMap = coordSysRecord.dataZoomInfoMap;
if (dataZoomInfoMap) {
var firstDzKey = dataZoomInfoMap.keys()[0];
null != firstDzKey && (firstDzInfo = dataZoomInfoMap.get(firstDzKey));
var dataZoomInfoMap, controlType, prefix, typePriority, preventDefaultMouseMove, firstDzInfo, controller = coordSysRecord.controller, dataZoomInfoMap1 = coordSysRecord.dataZoomInfoMap;
if (dataZoomInfoMap1) {
var firstDzKey = dataZoomInfoMap1.keys()[0];
null != firstDzKey && (firstDzInfo = dataZoomInfoMap1.get(firstDzKey));
}
if (!firstDzInfo) {
disposeCoordSysRecord(coordSysRecordMap, coordSysRecord);
return;
}
var dataZoomInfoMap1, controlType, prefix, typePriority, preventDefaultMouseMove, controllerParams = (prefix = 'type_', typePriority = {
var controllerParams = (prefix = 'type_', typePriority = {
type_true: 2,
type_move: 1,
type_false: 0,
type_undefined: -1
}, preventDefaultMouseMove = !0, dataZoomInfoMap.each(function(dataZoomInfo) {
}, preventDefaultMouseMove = !0, dataZoomInfoMap1.each(function(dataZoomInfo) {
var dataZoomModel = dataZoomInfo.model, oneType = !dataZoomModel.get('disabled', !0) && (!dataZoomModel.get('zoomLock', !0) || 'move');
typePriority[prefix + oneType] > typePriority[prefix + controlType] && (controlType = oneType), preventDefaultMouseMove = preventDefaultMouseMove && dataZoomModel.get('preventDefaultMouseMove', !0);
}), {
@ -41200,7 +41198,7 @@
}(), filterTransform = {
type: 'echarts:filter',
transform: function(params) {
for(var rawItem, exprOption, getters, upstream = params.upstream, condition = (exprOption = params.config, getters = {
for(var exprOption, getters, rawItem, upstream = params.upstream, condition = (exprOption = params.config, getters = {
valueGetterAttrMap: createHashMap({
dimension: !0
}),

View File

@ -6,7 +6,7 @@
} : factory(global);
}("undefined" != typeof window ? window : this, function(window1, noGlobal) {
"use strict";
var arr = [], getProto = Object.getPrototypeOf, slice = arr.slice, flat = arr.flat ? function(array) {
var body, arr = [], getProto = Object.getPrototypeOf, slice = arr.slice, flat = arr.flat ? function(array) {
return arr.flat.call(array);
} : function(array) {
return arr.concat.apply([], array);
@ -1323,7 +1323,7 @@
});
}
});
var div, input, rcheckableType = /^(?:checkbox|radio)$/i, rtagName = /<([a-z][^\/\0>\x20\t\r\n\f]*)/i, rscriptType = /^$|^module$|\/(?:java|ecma)script/i;
var rcheckableType = /^(?:checkbox|radio)$/i, rtagName = /<([a-z][^\/\0>\x20\t\r\n\f]*)/i, rscriptType = /^$|^module$|\/(?:java|ecma)script/i;
div = document.createDocumentFragment().appendChild(document.createElement("div")), (input = document.createElement("input")).setAttribute("type", "radio"), input.setAttribute("checked", "checked"), input.setAttribute("name", "t"), div.appendChild(input), support.checkClone = div.cloneNode(!0).cloneNode(!0).lastChild.checked, div.innerHTML = "<textarea>x</textarea>", support.noCloneChecked = !!div.cloneNode(!0).lastChild.defaultValue, div.innerHTML = "<option></option>", support.option = !!div.lastChild;
var wrapMap = {
thead: [
@ -2014,7 +2014,7 @@
},
_default: "swing"
}, jQuery.fx = Tween.prototype.init, jQuery.fx.step = {};
var fxNow, inProgress, rfxtypes = /^(?:toggle|show|hide)$/, rrun = /queueHooks$/;
var div, input, fxNow, inProgress, rfxtypes = /^(?:toggle|show|hide)$/, rrun = /queueHooks$/;
function createFxNow() {
return window1.setTimeout(function() {
fxNow = void 0;
@ -2904,7 +2904,7 @@
};
}
});
var body, oldCallbacks = [], rjsonp = /(=)\?(?=&|$)|\?\?/;
var oldCallbacks = [], rjsonp = /(=)\?(?=&|$)|\?\?/;
jQuery.ajaxSetup({
jsonp: "callback",
jsonpCallback: function() {

View File

@ -514,7 +514,7 @@
'&quot;': '"',
'&#39;': "'"
}), _ = function runInContext(context) {
var uid, Array1 = (context = null == context ? root : _.defaults(root.Object(), context, _.pick(root, contextProps))).Array, Date = context.Date, Error = context.Error, Function1 = context.Function, Math = context.Math, Object1 = context.Object, RegExp1 = context.RegExp, String = context.String, TypeError = context.TypeError, arrayProto = Array1.prototype, funcProto = Function1.prototype, objectProto = Object1.prototype, coreJsData = context['__core-js_shared__'], funcToString = funcProto.toString, hasOwnProperty = objectProto.hasOwnProperty, idCounter = 0, maskSrcKey = (uid = /[^.]+$/.exec(coreJsData && coreJsData.keys && coreJsData.keys.IE_PROTO || '')) ? 'Symbol(src)_1.' + uid : '', nativeObjectToString = objectProto.toString, objectCtorString = funcToString.call(Object1), oldDash = root._, reIsNative = RegExp1('^' + funcToString.call(hasOwnProperty).replace(reRegExpChar, '\\$&').replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g, '$1.*?') + '$'), Buffer = moduleExports ? context.Buffer : undefined, Symbol = context.Symbol, Uint8Array = context.Uint8Array, allocUnsafe = Buffer ? Buffer.allocUnsafe : undefined, getPrototype = overArg(Object1.getPrototypeOf, Object1), objectCreate = Object1.create, propertyIsEnumerable = objectProto.propertyIsEnumerable, splice = arrayProto.splice, spreadableSymbol = Symbol ? Symbol.isConcatSpreadable : undefined, symIterator = Symbol ? Symbol.iterator : undefined, symToStringTag = Symbol ? Symbol.toStringTag : undefined, defineProperty = function() {
var uid, func, result, cache, source, Array1 = (context = null == context ? root : _.defaults(root.Object(), context, _.pick(root, contextProps))).Array, Date = context.Date, Error = context.Error, Function1 = context.Function, Math = context.Math, Object1 = context.Object, RegExp1 = context.RegExp, String = context.String, TypeError = context.TypeError, arrayProto = Array1.prototype, funcProto = Function1.prototype, objectProto = Object1.prototype, coreJsData = context['__core-js_shared__'], funcToString = funcProto.toString, hasOwnProperty = objectProto.hasOwnProperty, idCounter = 0, maskSrcKey = (uid = /[^.]+$/.exec(coreJsData && coreJsData.keys && coreJsData.keys.IE_PROTO || '')) ? 'Symbol(src)_1.' + uid : '', nativeObjectToString = objectProto.toString, objectCtorString = funcToString.call(Object1), oldDash = root._, reIsNative = RegExp1('^' + funcToString.call(hasOwnProperty).replace(reRegExpChar, '\\$&').replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g, '$1.*?') + '$'), Buffer = moduleExports ? context.Buffer : undefined, Symbol = context.Symbol, Uint8Array = context.Uint8Array, allocUnsafe = Buffer ? Buffer.allocUnsafe : undefined, getPrototype = overArg(Object1.getPrototypeOf, Object1), objectCreate = Object1.create, propertyIsEnumerable = objectProto.propertyIsEnumerable, splice = arrayProto.splice, spreadableSymbol = Symbol ? Symbol.isConcatSpreadable : undefined, symIterator = Symbol ? Symbol.iterator : undefined, symToStringTag = Symbol ? Symbol.toStringTag : undefined, defineProperty = function() {
try {
var func = getNative(Object1, 'defineProperty');
return func({}, '', {}), func;
@ -1759,7 +1759,7 @@
});
} : identity);
function setWrapToString(wrapper, reference, bitmask) {
var source, match, details, bitmask1, source1 = reference + '';
var details, bitmask1, source, match, source1 = reference + '';
return setToString(wrapper, function(source, details) {
var length = details.length;
if (!length) return source;
@ -1788,7 +1788,7 @@
}
return array.length = size, array;
}
var func, result, cache, stringToPath = (cache = (result = memoize(func = function(string) {
var stringToPath = (cache = (result = memoize(func = function(string) {
var result = [];
return 46 === string.charCodeAt(0) && result.push(''), string.replace(rePropName, function(match, number, quote, subString) {
result.push(quote ? subString.replace(reEscapeChar, '$1') : number || match);
@ -2387,7 +2387,7 @@
function stubTrue() {
return !0;
}
var source, add = createMathOperation(function(augend, addend) {
var add = createMathOperation(function(augend, addend) {
return augend + addend;
}, 0), ceil = createRound('ceil'), divide = createMathOperation(function(dividend, divisor) {
return dividend / divisor;

View File

@ -80,7 +80,7 @@
for(i = 0; i < len; i++)if (i in t && fun.call(this, t[i], i, t)) return !0;
return !1;
};
var token, getSetMillisecond, momentProperties = hooks.momentProperties = [], updateInProgress = !1;
var callback, token, getSetMillisecond, momentProperties = hooks.momentProperties = [], updateInProgress = !1;
function copyConfig(to, from) {
var i, prop, val;
if (isUndefined(from._isAMomentObject) || (to._isAMomentObject = from._isAMomentObject), isUndefined(from._i) || (to._i = from._i), isUndefined(from._f) || (to._f = from._f), isUndefined(from._l) || (to._l = from._l), isUndefined(from._strict) || (to._strict = from._strict), isUndefined(from._tzm) || (to._tzm = from._tzm), isUndefined(from._isUTC) || (to._isUTC = from._isUTC), isUndefined(from._offset) || (to._offset = from._offset), isUndefined(from._pf) || (to._pf = getParsingFlags(from)), isUndefined(from._locale) || (to._locale = from._locale), momentProperties.length > 0) for(i = 0; i < momentProperties.length; i++)isUndefined(val = from[prop = momentProperties[i]]) || (to[prop] = val);
@ -932,7 +932,7 @@
hooks.updateOffset = function() {};
var aspNetRegex = /^(-|\+)?(?:(\d*)[. ])?(\d+):(\d+)(?::(\d+)(\.\d*)?)?$/, isoRegex = /^(-|\+)?P(?:([-+]?[0-9,.]*)Y)?(?:([-+]?[0-9,.]*)M)?(?:([-+]?[0-9,.]*)W)?(?:([-+]?[0-9,.]*)D)?(?:T(?:([-+]?[0-9,.]*)H)?(?:([-+]?[0-9,.]*)M)?(?:([-+]?[0-9,.]*)S)?)?$/;
function createDuration(input, key) {
var sign, ret, diffRes, base, other, res, duration = input, match = null;
var base, other, res, sign, ret, diffRes, duration = input, match = null;
return isDuration(input) ? duration = {
ms: input._milliseconds,
d: input._days,
@ -1737,7 +1737,7 @@
var minutes, hours, years, s, totalSign, ymSign, daysSign, hmsSign, seconds = abs$1(this._milliseconds) / 1000, days = abs$1(this._days), months = abs$1(this._months), total = this.asSeconds();
return total ? (minutes = absFloor(seconds / 60), hours = absFloor(minutes / 60), seconds %= 60, minutes %= 60, years = absFloor(months / 12), months %= 12, s = seconds ? seconds.toFixed(3).replace(/\.?0+$/, '') : '', totalSign = total < 0 ? '-' : '', ymSign = sign(this._months) !== sign(total) ? '-' : '', daysSign = sign(this._days) !== sign(total) ? '-' : '', hmsSign = sign(this._milliseconds) !== sign(total) ? '-' : '', totalSign + 'P' + (years ? ymSign + years + 'Y' : '') + (months ? ymSign + months + 'M' : '') + (days ? daysSign + days + 'D' : '') + (hours || minutes || seconds ? 'T' : '') + (hours ? hmsSign + hours + 'H' : '') + (minutes ? hmsSign + minutes + 'M' : '') + (seconds ? hmsSign + s + 'S' : '')) : 'P0D';
}
var callback, proto$2 = Duration.prototype;
var proto$2 = Duration.prototype;
return proto$2.isValid = function() {
return this._isValid;
}, proto$2.abs = function() {
@ -1787,8 +1787,8 @@
return absFloor(this.days() / 7);
}, proto$2.months = months, proto$2.years = years, proto$2.humanize = function(argWithSuffix, argThresholds) {
if (!this.isValid()) return this.localeData().invalidDate();
var locale, output, posNegDuration, withoutSuffix, thresholds1, locale1, duration, seconds, minutes, hours, days, months, weeks, years, a, withSuffix = !1, th = thresholds;
return 'object' == typeof argWithSuffix && (argThresholds = argWithSuffix, argWithSuffix = !1), 'boolean' == typeof argWithSuffix && (withSuffix = argWithSuffix), 'object' == typeof argThresholds && (th = Object.assign({}, thresholds, argThresholds), null != argThresholds.s && null == argThresholds.ss && (th.ss = argThresholds.s - 1)), locale = this.localeData(), withoutSuffix = !withSuffix, thresholds1 = th, duration = createDuration(this).abs(), seconds = round(duration.as('s')), minutes = round(duration.as('m')), hours = round(duration.as('h')), days = round(duration.as('d')), months = round(duration.as('M')), weeks = round(duration.as('w')), years = round(duration.as('y')), a = seconds <= thresholds1.ss && [
var posNegDuration, withoutSuffix, thresholds1, locale, duration, seconds, minutes, hours, days, months, weeks, years, a, locale1, output, withSuffix = !1, th = thresholds;
return 'object' == typeof argWithSuffix && (argThresholds = argWithSuffix, argWithSuffix = !1), 'boolean' == typeof argWithSuffix && (withSuffix = argWithSuffix), 'object' == typeof argThresholds && (th = Object.assign({}, thresholds, argThresholds), null != argThresholds.s && null == argThresholds.ss && (th.ss = argThresholds.s - 1)), locale1 = this.localeData(), withoutSuffix = !withSuffix, thresholds1 = th, duration = createDuration(this).abs(), seconds = round(duration.as('s')), minutes = round(duration.as('m')), hours = round(duration.as('h')), days = round(duration.as('d')), months = round(duration.as('M')), weeks = round(duration.as('w')), years = round(duration.as('y')), a = seconds <= thresholds1.ss && [
's',
seconds
] || seconds < thresholds1.s && [
@ -1824,7 +1824,7 @@
] || [
'yy',
years
])[2] = withoutSuffix, a[3] = +this > 0, a[4] = locale, output = substituteTimeAgo.apply(null, a), withSuffix && (output = locale.pastFuture(+this, output)), locale.postformat(output);
])[2] = withoutSuffix, a[3] = +this > 0, a[4] = locale1, output = substituteTimeAgo.apply(null, a), withSuffix && (output = locale1.pastFuture(+this, output)), locale1.postformat(output);
}, proto$2.toISOString = toISOString$1, proto$2.toString = toISOString$1, proto$2.toJSON = toISOString$1, proto$2.locale = locale, proto$2.localeData = localeData, proto$2.toIsoString = deprecate('toIsoString() is deprecated. Please use toISOString() instead (notice the capitals)', toISOString$1), proto$2.lang = lang, addFormatToken('X', 0, 0, 'unix'), addFormatToken('x', 0, 0, 'valueOf'), addRegexToken('x', matchSigned), addRegexToken('X', /[+-]?\d+(\.\d{1,3})?/), addParseToken('X', function(input, array, config) {
config._d = new Date(1000 * parseFloat(input));
}), addParseToken('x', function(input, array, config) {

View File

@ -578,7 +578,7 @@
function createElementWithValidation(type, props, children) {
var validType = isValidElementType(type);
if (!validType) {
var typeString, elementProps, source, info = '';
var source, elementProps, typeString, info = '';
(void 0 === type || 'object' == typeof type && null !== type && 0 === Object.keys(type).length) && (info += " You likely forgot to export your component from the file it's defined in, or you might have mixed up default and named imports.");
var sourceInfo = null != props ? (source = props.__source, void 0 !== source ? '\n\nCheck your code at ' + source.fileName.replace(/^.*[\\\/]/, '') + ':' + source.lineNumber + '.' : '') : '';
sourceInfo ? info += sourceInfo : info += getDeclarationErrorAddendum(), null === type ? typeString = 'null' : Array.isArray(type) ? typeString = 'array' : void 0 !== type && type.$$typeof === REACT_ELEMENT_TYPE ? (typeString = "<" + (getComponentName(type.type) || 'Unknown') + " />", info = ' Did you accidentally export a JSX literal instead of a component?') : typeString = typeof type, error("React.createElement: type is invalid -- expected a string (for built-in components) or a class/function (for composite components) but got: %s.%s", typeString, info);

View File

@ -6,7 +6,7 @@
}(this, function(exports, MOZ_SourceMap) {
'use strict';
let mangle_options;
var def_is_string, def_find_defs, e, MOZ_SourceMap__default = MOZ_SourceMap && 'object' == typeof MOZ_SourceMap && 'default' in MOZ_SourceMap ? MOZ_SourceMap : {
var e, def_is_string, def_find_defs, MOZ_SourceMap__default = MOZ_SourceMap && 'object' == typeof MOZ_SourceMap && 'default' in MOZ_SourceMap ? MOZ_SourceMap : {
default: MOZ_SourceMap
};
function characters(str) {
@ -482,7 +482,7 @@
case 117:
if ("{" == peek()) {
for(next(!0), "}" === peek() && parse_error("Expecting hex-character between {}"); "0" == peek();)next(!0);
var result, code, length = find("}", !0) - S.pos;
var code, result, length = find("}", !0) - S.pos;
return (length > 6 || (result = hex_bytes(length, strict_hex)) > 0x10FFFF) && parse_error("Unicode reference out of bounds"), next(!0), (code = result) > 0xFFFF ? String.fromCharCode(((code -= 0x10000) >> 10) + 0xD800) + String.fromCharCode(code % 0x400 + 0xDC00) : String.fromCharCode(code);
}
return String.fromCharCode(hex_bytes(4, strict_hex));
@ -7080,11 +7080,11 @@
}
function can_merge_flow(ab) {
if (!ab) return !1;
for(var j = i + 1, len = statements.length; j < len; j++){
for(var value, j = i + 1, len = statements.length; j < len; j++){
var stat = statements[j];
if (stat instanceof AST_Const || stat instanceof AST_Let) return !1;
}
var value, lct = ab instanceof AST_LoopControl ? compressor.loopcontrol_target(ab) : null;
var lct = ab instanceof AST_LoopControl ? compressor.loopcontrol_target(ab) : null;
return ab instanceof AST_Return && in_lambda && (!(value = ab.value) || value instanceof AST_UnaryPrefix && "void" == value.operator) || ab instanceof AST_Continue && self1 === loop_body(lct) || ab instanceof AST_Break && lct instanceof AST_BlockStatement && self1 === lct;
}
function extract_functions() {

View File

@ -5076,7 +5076,7 @@
return 'highp' === parameters.precision ? precisionstring += '\n#define HIGH_PRECISION' : 'mediump' === parameters.precision ? precisionstring += '\n#define MEDIUM_PRECISION' : 'lowp' === parameters.precision && (precisionstring += '\n#define LOW_PRECISION'), precisionstring;
}
function WebGLProgram(renderer, cacheKey, parameters, bindingStates) {
var encoding, components, prefixVertex, prefixFragment, cachedUniforms, cachedAttributes, parameters1, shadowMapTypeDefine, parameters2, gl = renderer.getContext(), defines = parameters.defines, vertexShader = parameters.vertexShader, fragmentShader = parameters.fragmentShader, shadowMapTypeDefine1 = (shadowMapTypeDefine = 'SHADOWMAP_TYPE_BASIC', 1 === parameters.shadowMapType ? shadowMapTypeDefine = 'SHADOWMAP_TYPE_PCF' : 2 === parameters.shadowMapType ? shadowMapTypeDefine = 'SHADOWMAP_TYPE_PCF_SOFT' : 3 === parameters.shadowMapType && (shadowMapTypeDefine = 'SHADOWMAP_TYPE_VSM'), shadowMapTypeDefine), envMapTypeDefine = function(parameters) {
var parameters1, shadowMapTypeDefine, parameters2, encoding, components, prefixVertex, prefixFragment, cachedUniforms, cachedAttributes, gl = renderer.getContext(), defines = parameters.defines, vertexShader = parameters.vertexShader, fragmentShader = parameters.fragmentShader, shadowMapTypeDefine1 = (shadowMapTypeDefine = 'SHADOWMAP_TYPE_BASIC', 1 === parameters.shadowMapType ? shadowMapTypeDefine = 'SHADOWMAP_TYPE_PCF' : 2 === parameters.shadowMapType ? shadowMapTypeDefine = 'SHADOWMAP_TYPE_PCF_SOFT' : 3 === parameters.shadowMapType && (shadowMapTypeDefine = 'SHADOWMAP_TYPE_VSM'), shadowMapTypeDefine), envMapTypeDefine = function(parameters) {
var envMapTypeDefine = 'ENVMAP_TYPE_CUBE';
if (parameters.envMap) switch(parameters.envMapMode){
case 301:
@ -6401,7 +6401,7 @@
void 0 === textureProperties.__webglInit && (textureProperties.__webglInit = !0, texture.addEventListener('dispose', onTextureDispose), textureProperties.__webglTexture = _gl.createTexture(), info.memory.textures++);
}
function uploadTexture(textureProperties, texture, slot) {
var mipmap, texture1, textureType = 3553;
var texture1, mipmap, textureType = 3553;
texture.isDataTexture2DArray && (textureType = 35866), texture.isDataTexture3D && (textureType = 32879), initTexture(textureProperties, texture), state.activeTexture(33984 + slot), state.bindTexture(textureType, textureProperties.__webglTexture), _gl.pixelStorei(37440, texture.flipY), _gl.pixelStorei(37441, texture.premultiplyAlpha), _gl.pixelStorei(3317, texture.unpackAlignment);
var needsPowerOfTwo = !isWebGL2 && (1001 !== texture.wrapS || 1001 !== texture.wrapT || 1003 !== texture.minFilter && 1006 !== texture.minFilter) && !1 === isPowerOfTwo(texture.image), image = resizeImage(texture.image, needsPowerOfTwo, !1, maxTextureSize), supportsMips = isPowerOfTwo(image) || isWebGL2, glFormat = utils.convert(texture.format), glType = utils.convert(texture.type), glInternalFormat = getInternalFormat(texture.internalFormat, glFormat, glType);
setTextureParameters(textureType, texture, supportsMips);
@ -6946,7 +6946,7 @@
}
function initMaterial(material, scene, object) {
!0 !== scene.isScene && (scene = _emptyScene);
var materialProperties = properties.get(material), lights = currentRenderState.state.lights, shadowsArray = currentRenderState.state.shadowsArray, lightsStateVersion = lights.state.version, parameters = programCache.getParameters(material, lights.state, shadowsArray, scene, object), programCacheKey = programCache.getProgramCacheKey(parameters), program = materialProperties.program, programChange = !0;
var material1, materialProperties = properties.get(material), lights = currentRenderState.state.lights, shadowsArray = currentRenderState.state.shadowsArray, lightsStateVersion = lights.state.version, parameters = programCache.getParameters(material, lights.state, shadowsArray, scene, object), programCacheKey = programCache.getProgramCacheKey(parameters), program = materialProperties.program, programChange = !0;
if (void 0 === program) material.addEventListener('dispose', onMaterialDispose);
else if (program.cacheKey !== programCacheKey) releaseMaterialProgramReference(material);
else if (materialProperties.lightsStateVersion !== lightsStateVersion) programChange = !1;
@ -6956,7 +6956,7 @@
return;
} else programChange = !1;
programChange && (parameters.uniforms = programCache.getUniforms(material), material.onBeforeCompile(parameters, _this), program = programCache.acquireProgram(parameters, programCacheKey), materialProperties.program = program, materialProperties.uniforms = parameters.uniforms, materialProperties.outputEncoding = parameters.outputEncoding);
var material1, uniforms = materialProperties.uniforms;
var uniforms = materialProperties.uniforms;
(material.isShaderMaterial || material.isRawShaderMaterial) && !0 !== material.clipping || (materialProperties.numClippingPlanes = clipping.numPlanes, materialProperties.numIntersection = clipping.numIntersection, uniforms.clippingPlanes = clipping.uniform), materialProperties.environment = material.isMeshStandardMaterial ? scene.environment : null, materialProperties.fog = scene.fog, materialProperties.envMap = cubemaps.get(material.envMap || materialProperties.environment), materialProperties.needsLights = (material1 = material, material1.isMeshLambertMaterial || material1.isMeshToonMaterial || material1.isMeshPhongMaterial || material1.isMeshStandardMaterial || material1.isShadowMaterial || material1.isShaderMaterial && !0 === material1.lights), materialProperties.lightsStateVersion = lightsStateVersion, materialProperties.needsLights && (uniforms.ambientLightColor.value = lights.state.ambient, uniforms.lightProbe.value = lights.state.probe, uniforms.directionalLights.value = lights.state.directional, uniforms.directionalLightShadows.value = lights.state.directionalShadow, uniforms.spotLights.value = lights.state.spot, uniforms.spotLightShadows.value = lights.state.spotShadow, uniforms.rectAreaLights.value = lights.state.rectArea, uniforms.ltc_1.value = lights.state.rectAreaLTC1, uniforms.ltc_2.value = lights.state.rectAreaLTC2, uniforms.pointLights.value = lights.state.point, uniforms.pointLightShadows.value = lights.state.pointShadow, uniforms.hemisphereLights.value = lights.state.hemi, uniforms.directionalShadowMap.value = lights.state.directionalShadowMap, uniforms.directionalShadowMatrix.value = lights.state.directionalShadowMatrix, uniforms.spotShadowMap.value = lights.state.spotShadowMap, uniforms.spotShadowMatrix.value = lights.state.spotShadowMatrix, uniforms.pointShadowMap.value = lights.state.pointShadowMap, uniforms.pointShadowMatrix.value = lights.state.pointShadowMatrix);
var progUniforms = materialProperties.program.getUniforms(), uniformsList = WebGLUniforms.seqWithValue(progUniforms.seq, uniforms);
materialProperties.uniformsList = uniformsList;

View File

@ -6720,13 +6720,13 @@
}
return new Delaunator(coords);
}, Delaunator.prototype.update = function() {
for(var i0, i1, i2, coords = this.coords, hullPrev = this._hullPrev, hullNext = this._hullNext, hullTri = this._hullTri, hullHash = this._hullHash, n = coords.length >> 1, minX = 1 / 0, minY = 1 / 0, maxX = -1 / 0, maxY = -1 / 0, i = 0; i < n; i++){
for(var ax, ay, bx, by, cx, cy, dx, dy, ex, ey, bl, cl, d, i0, i1, i2, coords = this.coords, hullPrev = this._hullPrev, hullNext = this._hullNext, hullTri = this._hullTri, hullHash = this._hullHash, n = coords.length >> 1, minX = 1 / 0, minY = 1 / 0, maxX = -1 / 0, maxY = -1 / 0, i = 0; i < n; i++){
var x = coords[2 * i], y = coords[2 * i + 1];
x < minX && (minX = x), y < minY && (minY = y), x > maxX && (maxX = x), y > maxY && (maxY = y), this._ids[i] = i;
}
for(var cx = (minX + maxX) / 2, cy = (minY + maxY) / 2, minDist = 1 / 0, i$1 = 0; i$1 < n; i$1++){
var d = dist(cx, cy, coords[2 * i$1], coords[2 * i$1 + 1]);
d < minDist && (i0 = i$1, minDist = d);
for(var cx1 = (minX + maxX) / 2, cy1 = (minY + maxY) / 2, minDist = 1 / 0, i$1 = 0; i$1 < n; i$1++){
var d1 = dist(cx1, cy1, coords[2 * i$1], coords[2 * i$1 + 1]);
d1 < minDist && (i0 = i$1, minDist = d1);
}
var i0x = coords[2 * i0], i0y = coords[2 * i0 + 1];
minDist = 1 / 0;
@ -6753,9 +6753,9 @@
var i$6 = i1, x$1 = i1x, y$1 = i1y;
i1 = i2, i1x = i2x, i1y = i2y, i2 = i$6, i2x = x$1, i2y = y$1;
}
var ax, ay, bx, by, cx1, cy1, dx, dy, ex, ey, bl, cl, d1, center = (ax = i0x, ay = i0y, bx = i1x, by = i1y, cx1 = i2x, cy1 = i2y, dx = bx - ax, dy = by - ay, ex = cx1 - ax, ey = cy1 - ay, bl = dx * dx + dy * dy, cl = ex * ex + ey * ey, d1 = 0.5 / (dx * ey - dy * ex), {
x: ax + (ey * bl - dy * cl) * d1,
y: ay + (dx * cl - ex * bl) * d1
var center = (ax = i0x, ay = i0y, bx = i1x, by = i1y, cx = i2x, cy = i2y, dx = bx - ax, dy = by - ay, ex = cx - ax, ey = cy - ay, bl = dx * dx + dy * dy, cl = ex * ex + ey * ey, d = 0.5 / (dx * ey - dy * ex), {
x: ax + (ey * bl - dy * cl) * d,
y: ay + (dx * cl - ex * bl) * d
});
this._cx = center.x, this._cy = center.y;
for(var i$7 = 0; i$7 < n; i$7++)this._dists[i$7] = dist(coords[2 * i$7], coords[2 * i$7 + 1], center.x, center.y);
@ -9696,9 +9696,9 @@
{
key: "render",
value: function() {
var animationWhitelist = VictoryAxis.animationWhitelist, props = victory_core__WEBPACK_IMPORTED_MODULE_4__.Axis.modifyProps(this.props, fallbackProps);
var arr, animationWhitelist = VictoryAxis.animationWhitelist, props = victory_core__WEBPACK_IMPORTED_MODULE_4__.Axis.modifyProps(this.props, fallbackProps);
if (this.shouldAnimate()) return this.animateComponent(props, animationWhitelist);
var arr, gridAndTicks = this.renderGridAndTicks(props), children = [
var gridAndTicks = this.renderGridAndTicks(props), children = [
this.renderLine(props),
this.renderLabel(props)
].concat(function(arr) {
@ -14097,7 +14097,7 @@
};
};
}, interpolateObject = function(a, b) {
var x, y, k, keyData = function(val) {
var k, x, y, keyData = function(val) {
return Array.isArray(val) ? lodash_orderBy__WEBPACK_IMPORTED_MODULE_0___default()(val, "key") : val;
}, i = {}, c = {};
for(k in (null === a || "object" != typeof a) && (a = {}), (null === b || "object" != typeof b) && (b = {}), b)k in a ? i[k] = (x = keyData(a[k]), y = keyData(b[k]), x !== y && isInterpolatable(x) && isInterpolatable(y) ? "function" == typeof x || "function" == typeof y ? interpolateFunction(x, y) : "object" == typeof x && lodash_isPlainObject__WEBPACK_IMPORTED_MODULE_1___default()(x) || "object" == typeof y && lodash_isPlainObject__WEBPACK_IMPORTED_MODULE_1___default()(y) ? interpolateObject(x, y) : Object(d3_interpolate__WEBPACK_IMPORTED_MODULE_2__.interpolate)(x, y) : interpolateImmediate(x, y)) : c[k] = b[k];
@ -17123,18 +17123,18 @@
return void 0 !== props.tickValues && _collection__WEBPACK_IMPORTED_MODULE_13__.default.containsStrings(props.tickValues);
}
function getTickArray(props) {
var tickValues = props.tickValues, tickFormat = props.tickFormat, axis = getAxis(props), stringMap = props.stringMap && props.stringMap[axis], ticks = tickValues;
stringMap && (props1 = props, axis1 = getAxis(props1), stringMap1 = props1.stringMap && props1.stringMap[axis1], ticksFromCategories = (categories = Array.isArray(props1.categories) ? props1.categories : props1.categories && props1.categories[axis1]) && _collection__WEBPACK_IMPORTED_MODULE_13__.default.containsOnlyStrings(categories) ? categories.map(function(tick) {
return stringMap1[tick];
}) : void 0, ticksFromStringMap = stringMap1 && lodash_values__WEBPACK_IMPORTED_MODULE_2___default()(stringMap1), ticks = ticksFromCategories && 0 !== ticksFromCategories.length ? ticksFromCategories : ticksFromStringMap), tickValues && _collection__WEBPACK_IMPORTED_MODULE_13__.default.containsStrings(tickValues) && (ticks = stringMap ? tickValues.map(function(tick) {
var props1, axis, stringMap, categories, ticksFromCategories, ticksFromStringMap, arr, newTickArray, domain, tickValues = props.tickValues, tickFormat = props.tickFormat, axis1 = getAxis(props), stringMap1 = props.stringMap && props.stringMap[axis1], ticks = tickValues;
stringMap1 && (props1 = props, axis = getAxis(props1), stringMap = props1.stringMap && props1.stringMap[axis], ticksFromCategories = (categories = Array.isArray(props1.categories) ? props1.categories : props1.categories && props1.categories[axis]) && _collection__WEBPACK_IMPORTED_MODULE_13__.default.containsOnlyStrings(categories) ? categories.map(function(tick) {
return stringMap[tick];
}) : void 0, ticksFromStringMap = stringMap && lodash_values__WEBPACK_IMPORTED_MODULE_2___default()(stringMap), ticks = ticksFromCategories && 0 !== ticksFromCategories.length ? ticksFromCategories : ticksFromStringMap), tickValues && _collection__WEBPACK_IMPORTED_MODULE_13__.default.containsStrings(tickValues) && (ticks = stringMap1 ? tickValues.map(function(tick) {
return stringMap1[tick];
}) : lodash_range__WEBPACK_IMPORTED_MODULE_4___default()(1, tickValues.length + 1));
var props1, axis1, stringMap1, categories, ticksFromCategories, ticksFromStringMap, arr, newTickArray, domain, tickArray = ticks ? lodash_uniq__WEBPACK_IMPORTED_MODULE_5___default()(ticks) : function() {
var tickArray = ticks ? lodash_uniq__WEBPACK_IMPORTED_MODULE_5___default()(ticks) : function() {
if (tickFormat && Array.isArray(tickFormat)) return _collection__WEBPACK_IMPORTED_MODULE_13__.default.containsStrings(tickFormat) ? tickFormat.map(function(t, i) {
return i;
}) : tickFormat;
}(props);
return Array.isArray(tickArray) && tickArray.length ? (newTickArray = [], domain = props.domain && props.domain[axis] || props.domain, tickArray ? (tickArray.forEach(function(t, index) {
return Array.isArray(tickArray) && tickArray.length ? (newTickArray = [], domain = props.domain && props.domain[axis1] || props.domain, tickArray ? (tickArray.forEach(function(t, index) {
Array.isArray(domain) ? t >= _collection__WEBPACK_IMPORTED_MODULE_13__.default.getMinValue(domain) && t <= _collection__WEBPACK_IMPORTED_MODULE_13__.default.getMaxValue(domain) && newTickArray.push({
value: t,
index: index
@ -17651,7 +17651,7 @@
}
function formatData(dataset, props, expectedKeys) {
if (!(Array.isArray(dataset) || _immutable__WEBPACK_IMPORTED_MODULE_17__.default.isIterable(dataset)) || 1 > getLength(dataset)) return [];
var defaultKeys = [
var stringMap, props1, data, hasEventKeyAccessor, key, eventKeyAccessor, defaultKeys = [
"x",
"y",
"y0"
@ -17664,7 +17664,7 @@
y: -1 !== expectedKeys.indexOf("y") ? createStringMap(props, "y") : void 0,
y0: -1 !== expectedKeys.indexOf("y0") ? createStringMap(props, "y") : void 0
});
var stringMap, props1, data, hasEventKeyAccessor, key, eventKeyAccessor, data1 = preformattedData ? dataset : dataset.reduce(function(dataArr, datum, index) {
var data1 = preformattedData ? dataset : dataset.reduce(function(dataArr, datum, index) {
datum = parseDatum(datum);
var fallbackValues = {
x: index,
@ -18021,9 +18021,9 @@
}
function getDomainFromData(props, axis, dataset) {
dataset = dataset || _data__WEBPACK_IMPORTED_MODULE_7__.default.getData(props);
var polar = props.polar, _props$startAngle2 = props.startAngle, _props$endAngle2 = props.endAngle, minDomain = getMinFromProps(props, axis), maxDomain = getMaxFromProps(props, axis);
var dataset1, axis1, polar = props.polar, _props$startAngle2 = props.startAngle, _props$endAngle2 = props.endAngle, minDomain = getMinFromProps(props, axis), maxDomain = getMaxFromProps(props, axis);
if (dataset.length < 1) return void 0 !== minDomain && void 0 !== maxDomain ? getDomainFromMinMax(minDomain, maxDomain) : void 0;
var dataset1, axis1, min = void 0 !== minDomain ? minDomain : getExtremeFromData(dataset, axis, "min"), max = void 0 !== maxDomain ? maxDomain : getExtremeFromData(dataset, axis, "max"), domain = getDomainFromMinMax(min, max);
var min = void 0 !== minDomain ? minDomain : getExtremeFromData(dataset, axis, "min"), max = void 0 !== maxDomain ? maxDomain : getExtremeFromData(dataset, axis, "max"), domain = getDomainFromMinMax(min, max);
return polar && "x" === axis && 360 === Math.abs((void 0 === _props$startAngle2 ? 0 : _props$startAngle2) - (void 0 === _props$endAngle2 ? 360 : _props$endAngle2)) ? getSymmetricDomain(domain, (dataset1 = dataset, lodash_flatten__WEBPACK_IMPORTED_MODULE_5___default()(dataset1).map(function(datum) {
return datum["_".concat(axis)] && void 0 !== datum["_".concat(axis)][1] ? datum["_".concat(axis)][1] : datum["_".concat(axis)];
}))) : domain;
@ -18589,12 +18589,12 @@
getDegrees: getDegrees,
getProps: function(props, index) {
var props1, datum, style, horizontal, sign, labelStyle, props2, datum1, sign1, labelStyle1, props3, datum2, labelStyle2, scale = props.scale, data = props.data, style1 = props.style, horizontal1 = props.horizontal, polar = props.polar, width = props.width, height = props.height, theme = props.theme, labelComponent = props.labelComponent, datum3 = data[index], degrees = getDegrees(props, datum3), textAnchor = polar ? getPolarTextAnchor(props, degrees) : (datum = (datum = datum3) || {}, style = props.style, horizontal = props.horizontal, sign = datum._y >= 0 ? 1 : -1, labelStyle = style && style.labels || {}, datum.verticalAnchor || labelStyle.verticalAnchor ? datum.verticalAnchor || labelStyle.verticalAnchor : horizontal ? sign >= 0 ? "start" : "end" : "middle"), verticalAnchor = polar ? getPolarVerticalAnchor(props, degrees) : (sign1 = (datum1 = (datum1 = datum3) || {})._y >= 0 ? 1 : -1, labelStyle1 = props.style && props.style.labels || {}, datum1.verticalAnchor || labelStyle1.verticalAnchor ? datum1.verticalAnchor || labelStyle1.verticalAnchor : props.horizontal ? "middle" : sign1 >= 0 ? "end" : "start"), angle = (datum2 = (datum2 = datum3) || {}, labelStyle2 = props.style && props.style.labels || {}, void 0 === datum2.angle ? labelStyle2.angle : datum2.angle), text = getText(props, datum3, index), labelPlacement = getLabelPlacement(props), _getPosition = function(props, datum) {
var polar = props.polar, _Helpers$scalePoint = _helpers__WEBPACK_IMPORTED_MODULE_1__.default.scalePoint(props, datum), x = _Helpers$scalePoint.x, y = _Helpers$scalePoint.y;
var props1, datum1, style, degrees, labelStyle, padding, angle, polar = props.polar, _Helpers$scalePoint = _helpers__WEBPACK_IMPORTED_MODULE_1__.default.scalePoint(props, datum), x = _Helpers$scalePoint.x, y = _Helpers$scalePoint.y;
if (!polar) return {
x: x,
y: y
};
var props1, datum1, style, degrees, labelStyle, padding, angle, polarPadding = (props1 = props, datum1 = datum, style = props1.style, degrees = getDegrees(props1, datum1), labelStyle = style.labels || {}, padding = _helpers__WEBPACK_IMPORTED_MODULE_1__.default.evaluateProp(labelStyle.padding, props1) || 0, angle = _helpers__WEBPACK_IMPORTED_MODULE_1__.default.degreesToRadians(degrees), {
var polarPadding = (props1 = props, datum1 = datum, style = props1.style, degrees = getDegrees(props1, datum1), labelStyle = style.labels || {}, padding = _helpers__WEBPACK_IMPORTED_MODULE_1__.default.evaluateProp(labelStyle.padding, props1) || 0, angle = _helpers__WEBPACK_IMPORTED_MODULE_1__.default.degreesToRadians(degrees), {
x: padding * Math.cos(angle),
y: -padding * Math.sin(angle)
});
@ -22889,9 +22889,9 @@
return Array.isArray(this.componentEvents) && (events = Array.isArray(props.events) ? (_componentEvents = this.componentEvents).concat.apply(_componentEvents, _toConsumableArray(props.events)) : this.componentEvents), events || [];
},
getAnimationProps: function(props, child, index) {
var _this = this;
var childrenTransitions, _this = this;
if (!props.animate) return child.props.animate;
var childrenTransitions, getTransitions = props.animate && props.animate.getTransitions, state = (childrenTransitions = _this.state && _this.state.childrenTransitions, childrenTransitions = _collection__WEBPACK_IMPORTED_MODULE_17__.default.isArrayOfArrays(childrenTransitions) ? childrenTransitions[index] : childrenTransitions, lodash_defaults__WEBPACK_IMPORTED_MODULE_8___default()({
var getTransitions = props.animate && props.animate.getTransitions, state = (childrenTransitions = _this.state && _this.state.childrenTransitions, childrenTransitions = _collection__WEBPACK_IMPORTED_MODULE_17__.default.isArrayOfArrays(childrenTransitions) ? childrenTransitions[index] : childrenTransitions, lodash_defaults__WEBPACK_IMPORTED_MODULE_8___default()({
childrenTransitions: childrenTransitions
}, _this.state)), parentState = props.animate && props.animate.parentState || state;
if (!getTransitions) {
@ -24398,7 +24398,7 @@
}), __webpack_require__.d(__webpack_exports__, "getBaseProps", function() {
return getBaseProps;
});
var lodash_isNil__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__("../../../node_modules/lodash/isNil.js"), lodash_isNil__WEBPACK_IMPORTED_MODULE_0___default = __webpack_require__.n(lodash_isNil__WEBPACK_IMPORTED_MODULE_0__), lodash_assign__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__("../../../node_modules/lodash/assign.js"), lodash_assign__WEBPACK_IMPORTED_MODULE_1___default = __webpack_require__.n(lodash_assign__WEBPACK_IMPORTED_MODULE_1__), victory_core__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__("../../victory-core/es/index.js"), victory_bar__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__("../../victory-bar/es/index.js"), react_fast_compare__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__("../../../node_modules/react-fast-compare/index.js"), react_fast_compare__WEBPACK_IMPORTED_MODULE_4___default = __webpack_require__.n(react_fast_compare__WEBPACK_IMPORTED_MODULE_4__), d3_array__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__("../../victory-histogram/node_modules/d3-array/src/index.js"), d3_scale__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__("../../../node_modules/d3-scale/index.js");
var func, lastArgs, lastReturnVal, called, lodash_isNil__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__("../../../node_modules/lodash/isNil.js"), lodash_isNil__WEBPACK_IMPORTED_MODULE_0___default = __webpack_require__.n(lodash_isNil__WEBPACK_IMPORTED_MODULE_0__), lodash_assign__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__("../../../node_modules/lodash/assign.js"), lodash_assign__WEBPACK_IMPORTED_MODULE_1___default = __webpack_require__.n(lodash_assign__WEBPACK_IMPORTED_MODULE_1__), victory_core__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__("../../victory-core/es/index.js"), victory_bar__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__("../../victory-bar/es/index.js"), react_fast_compare__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__("../../../node_modules/react-fast-compare/index.js"), react_fast_compare__WEBPACK_IMPORTED_MODULE_4___default = __webpack_require__.n(react_fast_compare__WEBPACK_IMPORTED_MODULE_4__), d3_array__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__("../../victory-histogram/node_modules/d3-array/src/index.js"), d3_scale__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__("../../../node_modules/d3-scale/index.js");
function _objectSpread(target) {
for(var i = 1; i < arguments.length; i++){
var source = null != arguments[i] ? arguments[i] : {}, ownKeys = Object.keys(source);
@ -24418,7 +24418,7 @@
writable: !0
}) : obj[key] = value, obj;
}
var func, lastArgs, lastReturnVal, called, dataOrBinsContainDates = function(_ref) {
var dataOrBinsContainDates = function(_ref) {
var data = _ref.data, bins = _ref.bins, x = _ref.x, xAccessor = victory_core__WEBPACK_IMPORTED_MODULE_2__.Helpers.createAccessor(x || "x"), dataIsDates = data.some(function(datum) {
return xAccessor(datum) instanceof Date;
}), binsHasDates = Array.isArray(bins) && bins.some(function(bin) {
@ -25008,7 +25008,8 @@
});
var _ascending_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__("../../victory-histogram/node_modules/d3-array/src/ascending.js");
function greatest(values, compare = _ascending_js__WEBPACK_IMPORTED_MODULE_0__.default) {
let max, defined = !1;
let max;
let defined = !1;
if (1 === compare.length) {
let maxValue;
for (const element of values){
@ -25256,7 +25257,8 @@
});
var _ascending_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__("../../victory-histogram/node_modules/d3-array/src/ascending.js");
function least(values, compare = _ascending_js__WEBPACK_IMPORTED_MODULE_0__.default) {
let min, defined = !1;
let min;
let defined = !1;
if (1 === compare.length) {
let minValue;
for (const element of values){
@ -25299,7 +25301,8 @@
"../../victory-histogram/node_modules/d3-array/src/maxIndex.js": function(module1, __webpack_exports__, __webpack_require__) {
"use strict";
function maxIndex(values, valueof) {
let max, maxIndex = -1, index = -1;
let max;
let maxIndex = -1, index = -1;
if (void 0 === valueof) for (const value of values)++index, null != value && (max < value || void 0 === max && value >= value) && (max = value, maxIndex = index);
else for (let value1 of values)null != (value1 = valueof(value1, ++index, values)) && (max < value1 || void 0 === max && value1 >= value1) && (max = value1, maxIndex = index);
return maxIndex;
@ -25360,7 +25363,8 @@
"../../victory-histogram/node_modules/d3-array/src/minIndex.js": function(module1, __webpack_exports__, __webpack_require__) {
"use strict";
function minIndex(values, valueof) {
let min, minIndex = -1, index = -1;
let min;
let minIndex = -1, index = -1;
if (void 0 === valueof) for (const value of values)++index, null != value && (min > value || void 0 === min && value >= value) && (min = value, minIndex = index);
else for (let value1 of values)null != (value1 = valueof(value1, ++index, values)) && (min > value1 || void 0 === min && value1 >= value1) && (min = value1, minIndex = index);
return minIndex;
@ -27994,7 +27998,7 @@
},
onMouseDown: function(evt, targetProps) {
evt.preventDefault();
var activateSelectedData = targetProps.activateSelectedData, allowSelection = targetProps.allowSelection, polar = targetProps.polar, selectedData = targetProps.selectedData;
var arr, activateSelectedData = targetProps.activateSelectedData, allowSelection = targetProps.allowSelection, polar = targetProps.polar, selectedData = targetProps.selectedData;
if (!allowSelection) return {};
var dimension = this.getDimension(targetProps), parentSVG = targetProps.parentSVG || victory_core__WEBPACK_IMPORTED_MODULE_5__.Selection.getParentSVG(evt), _Selection$getSVGEven = victory_core__WEBPACK_IMPORTED_MODULE_5__.Selection.getSVGEventCoordinates(evt, parentSVG), x = _Selection$getSVGEven.x, y = _Selection$getSVGEven.y, x1 = polar || "y" !== dimension ? x : victory_core__WEBPACK_IMPORTED_MODULE_5__.Selection.getDomainCoordinates(targetProps).x[0], y1 = polar || "x" !== dimension ? y : victory_core__WEBPACK_IMPORTED_MODULE_5__.Selection.getDomainCoordinates(targetProps).y[0], x2 = polar || "y" !== dimension ? x : victory_core__WEBPACK_IMPORTED_MODULE_5__.Selection.getDomainCoordinates(targetProps).x[1], y2 = polar || "x" !== dimension ? y : victory_core__WEBPACK_IMPORTED_MODULE_5__.Selection.getDomainCoordinates(targetProps).y[1], mutatedProps = {
x1: x1,
@ -28005,7 +28009,7 @@
parentSVG: parentSVG
};
selectedData && lodash_isFunction__WEBPACK_IMPORTED_MODULE_1___default()(targetProps.onSelectionCleared) && targetProps.onSelectionCleared(lodash_defaults__WEBPACK_IMPORTED_MODULE_3___default()({}, mutatedProps, targetProps));
var arr, parentMutation = [
var parentMutation = [
{
target: "parent",
mutation: function() {
@ -28639,9 +28643,9 @@
};
function getCalculatedProps(props, childComponents) {
childComponents = childComponents || react__WEBPACK_IMPORTED_MODULE_3___default.a.Children.toArray(props.children);
var role = "stack";
var props1, childComponents1, filterNullChildData, props2, datasets, fillInMissingData, xMap, xKeys, xArr, datasets1, role = "stack";
props = victory_core__WEBPACK_IMPORTED_MODULE_4__.Helpers.modifyProps(props, fallbackProps, role);
var props1, childComponents1, filterNullChildData, props2, datasets, fillInMissingData, xMap, xKeys, xArr, datasets1, style = victory_core__WEBPACK_IMPORTED_MODULE_4__.Wrapper.getStyle(props.theme, props.style, role), categories = props.categories || victory_core__WEBPACK_IMPORTED_MODULE_4__.Wrapper.getCategories(props, childComponents), datasets2 = props.datasets || (props1 = props, childComponents1 = childComponents, filterNullChildData = victory_core__WEBPACK_IMPORTED_MODULE_4__.Wrapper.getDataFromChildren(props1, childComponents1).map(function(dataset) {
var style = victory_core__WEBPACK_IMPORTED_MODULE_4__.Wrapper.getStyle(props.theme, props.style, role), categories = props.categories || victory_core__WEBPACK_IMPORTED_MODULE_4__.Wrapper.getCategories(props, childComponents), datasets2 = props.datasets || (props1 = props, childComponents1 = childComponents, filterNullChildData = victory_core__WEBPACK_IMPORTED_MODULE_4__.Wrapper.getDataFromChildren(props1, childComponents1).map(function(dataset) {
return dataset.filter(function(datum) {
return null !== datum._x && null !== datum._y;
});

View File

@ -2,7 +2,7 @@
'object' == typeof exports && 'undefined' != typeof module ? module.exports = factory() : 'function' == typeof define && define.amd ? define(factory) : (global1 = global1 || self).Vue = factory();
}(this, function() {
'use strict';
var _isServer, _Set, timerFunc, mark, measure, initProxy, target, len, str, chr, index$1, expressionPos, expressionEndPos, warn$1, target$1, svgContainer, emptyStyle, decoder, warn$2, delimiters, transforms, preTransforms, postTransforms, platformIsPreTag, platformMustUseProp, platformGetTagNamespace, maybeComponent, isStaticKey, isPlatformReservedTag, div, emptyObject = Object.freeze({});
var Vue, Vue1, dataDef, propsDef, Vue2, hookRE, Vue3, Vue4, Vue5, configDef, Vue6, Vue7, Vue8, cid, Vue9, modules, baseCompile, _isServer, _Set, timerFunc, mark, measure, initProxy, target, len, str, chr, index$1, expressionPos, expressionEndPos, warn$1, target$1, svgContainer, emptyStyle, decoder, warn$2, delimiters, transforms, preTransforms, postTransforms, platformIsPreTag, platformMustUseProp, platformGetTagNamespace, maybeComponent, isStaticKey, isPlatformReservedTag, div, emptyObject = Object.freeze({});
function isUndef(v) {
return null == v;
}
@ -1325,8 +1325,8 @@
}
return options;
}
function Vue(options) {
this instanceof Vue || warn('Vue is a constructor and should be called with the `new` keyword'), this._init(options);
function Vue10(options) {
this instanceof Vue10 || warn('Vue is a constructor and should be called with the `new` keyword'), this._init(options);
}
function getComponentName(opts) {
return opts && (opts.Ctor.options.name || opts.tag);
@ -1348,28 +1348,28 @@
var cached$$1 = cache[key];
cached$$1 && (!current || cached$$1.tag !== current.tag) && cached$$1.componentInstance.$destroy(), cache[key] = null, remove(keys, key);
}
(Vue1 = Vue).prototype._init = function(options) {
var startTag, endTag, vm, listeners, vm1, options1, parentVnode, renderContext, parentData, vm2, opts, vm3, provide, vm4, options2, opts1, parentVnode1, vnodeComponentOptions, vm5, value, value1, result, vm6 = this;
vm6._uid = uid$3++, config.performance && mark && (startTag = "vue-perf-start:" + vm6._uid, endTag = "vue-perf-end:" + vm6._uid, mark(startTag)), vm6._isVue = !0, options && options._isComponent ? (vm4 = vm6, options2 = options, opts1 = vm4.$options = Object.create(vm4.constructor.options), parentVnode1 = options2._parentVnode, opts1.parent = options2.parent, opts1._parentVnode = parentVnode1, vnodeComponentOptions = parentVnode1.componentOptions, opts1.propsData = vnodeComponentOptions.propsData, opts1._parentListeners = vnodeComponentOptions.listeners, opts1._renderChildren = vnodeComponentOptions.children, opts1._componentTag = vnodeComponentOptions.tag, options2.render && (opts1.render = options2.render, opts1.staticRenderFns = options2.staticRenderFns)) : vm6.$options = mergeOptions(resolveConstructorOptions(vm6.constructor), options || {}, vm6), initProxy(vm6), vm6._self = vm6, function(vm) {
(Vue = Vue10).prototype._init = function(options) {
var vm, options1, opts, parentVnode, vnodeComponentOptions, vm1, value, value1, result, vm2, listeners, vm3, options2, parentVnode1, renderContext, parentData, vm4, opts1, vm5, provide, startTag, endTag, vm6 = this;
vm6._uid = uid$3++, config.performance && mark && (startTag = "vue-perf-start:" + vm6._uid, endTag = "vue-perf-end:" + vm6._uid, mark(startTag)), vm6._isVue = !0, options && options._isComponent ? (vm = vm6, options1 = options, opts = vm.$options = Object.create(vm.constructor.options), parentVnode = options1._parentVnode, opts.parent = options1.parent, opts._parentVnode = parentVnode, vnodeComponentOptions = parentVnode.componentOptions, opts.propsData = vnodeComponentOptions.propsData, opts._parentListeners = vnodeComponentOptions.listeners, opts._renderChildren = vnodeComponentOptions.children, opts._componentTag = vnodeComponentOptions.tag, options1.render && (opts.render = options1.render, opts.staticRenderFns = options1.staticRenderFns)) : vm6.$options = mergeOptions(resolveConstructorOptions(vm6.constructor), options || {}, vm6), initProxy(vm6), vm6._self = vm6, function(vm) {
var options = vm.$options, parent = options.parent;
if (parent && !options.abstract) {
for(; parent.$options.abstract && parent.$parent;)parent = parent.$parent;
parent.$children.push(vm);
}
vm.$parent = parent, vm.$root = parent ? parent.$root : vm, vm.$children = [], vm.$refs = {}, vm._watcher = null, vm._inactive = null, vm._directInactive = !1, vm._isMounted = !1, vm._isDestroyed = !1, vm._isBeingDestroyed = !1;
}(vm6), (vm = vm6)._events = Object.create(null), vm._hasHookEvent = !1, (listeners = vm.$options._parentListeners) && updateComponentListeners(vm, listeners), (vm1 = vm6)._vnode = null, vm1._staticTrees = null, options1 = vm1.$options, renderContext = (parentVnode = vm1.$vnode = options1._parentVnode) && parentVnode.context, vm1.$slots = resolveSlots(options1._renderChildren, renderContext), vm1.$scopedSlots = emptyObject, vm1._c = function(a, b, c, d) {
return createElement(vm1, a, b, c, d, !1);
}, vm1.$createElement = function(a, b, c, d) {
return createElement(vm1, a, b, c, d, !0);
}, parentData = parentVnode && parentVnode.data, defineReactive$$1(vm1, '$attrs', parentData && parentData.attrs || emptyObject, function() {
isUpdatingChildComponent || warn("$attrs is readonly.", vm1);
}, !0), defineReactive$$1(vm1, '$listeners', options1._parentListeners || emptyObject, function() {
isUpdatingChildComponent || warn("$listeners is readonly.", vm1);
}, !0), callHook(vm6, 'beforeCreate'), vm5 = vm6, (result = resolveInject(vm5.$options.inject, vm5)) && (shouldObserve = value = !1, Object.keys(result).forEach(function(key) {
defineReactive$$1(vm5, key, result[key], function() {
warn('Avoid mutating an injected value directly since the changes will be overwritten whenever the provided component re-renders. injection being mutated: "' + key + "\"", vm5);
}(vm6), (vm2 = vm6)._events = Object.create(null), vm2._hasHookEvent = !1, (listeners = vm2.$options._parentListeners) && updateComponentListeners(vm2, listeners), (vm3 = vm6)._vnode = null, vm3._staticTrees = null, options2 = vm3.$options, renderContext = (parentVnode1 = vm3.$vnode = options2._parentVnode) && parentVnode1.context, vm3.$slots = resolveSlots(options2._renderChildren, renderContext), vm3.$scopedSlots = emptyObject, vm3._c = function(a, b, c, d) {
return createElement(vm3, a, b, c, d, !1);
}, vm3.$createElement = function(a, b, c, d) {
return createElement(vm3, a, b, c, d, !0);
}, parentData = parentVnode1 && parentVnode1.data, defineReactive$$1(vm3, '$attrs', parentData && parentData.attrs || emptyObject, function() {
isUpdatingChildComponent || warn("$attrs is readonly.", vm3);
}, !0), defineReactive$$1(vm3, '$listeners', options2._parentListeners || emptyObject, function() {
isUpdatingChildComponent || warn("$listeners is readonly.", vm3);
}, !0), callHook(vm6, 'beforeCreate'), vm1 = vm6, (result = resolveInject(vm1.$options.inject, vm1)) && (shouldObserve = value = !1, Object.keys(result).forEach(function(key) {
defineReactive$$1(vm1, key, result[key], function() {
warn('Avoid mutating an injected value directly since the changes will be overwritten whenever the provided component re-renders. injection being mutated: "' + key + "\"", vm1);
});
}), shouldObserve = value1 = !0), (vm2 = vm6)._watchers = [], (opts = vm2.$options).props && function(vm, propsOptions) {
}), shouldObserve = value1 = !0), (vm4 = vm6)._watchers = [], (opts1 = vm4.$options).props && function(vm, propsOptions) {
var value, value1, propsData = vm.$options.propsData || {}, props = vm._props = {}, keys = vm.$options._propKeys = [], isRoot = !vm.$parent;
!isRoot && (shouldObserve = value = !1);
var loop = function(key) {
@ -1381,10 +1381,10 @@
};
for(var key in propsOptions)loop(key);
shouldObserve = !0;
}(vm2, opts.props), opts.methods && function(vm, methods) {
}(vm4, opts1.props), opts1.methods && function(vm, methods) {
var props = vm.$options.props;
for(var key in methods)'function' != typeof methods[key] && warn("Method \"" + key + "\" has type \"" + typeof methods[key] + '" in the component definition. Did you reference the function correctly?', vm), props && hasOwn(props, key) && warn("Method \"" + key + "\" has already been defined as a prop.", vm), key in vm && isReserved(key) && warn("Method \"" + key + '" conflicts with an existing Vue instance method. Avoid defining component methods that start with _ or $.'), vm[key] = 'function' != typeof methods[key] ? noop : bind(methods[key], vm);
}(vm2, opts.methods), opts.data ? function(vm) {
}(vm4, opts1.methods), opts1.data ? function(vm) {
var data = vm.$options.data;
data = vm._data = 'function' == typeof data ? function(data, vm) {
pushTarget();
@ -1401,20 +1401,20 @@
methods && hasOwn(methods, key) && warn("Method \"" + key + "\" has already been defined as a data property.", vm), props && hasOwn(props, key) ? warn("The data property \"" + key + '" is already declared as a prop. Use prop default value instead.', vm) : isReserved(key) || proxy(vm, "_data", key);
}
observe(data, !0);
}(vm2) : observe(vm2._data = {}, !0), opts.computed && function(vm, computed) {
}(vm4) : observe(vm4._data = {}, !0), opts1.computed && function(vm, computed) {
var watchers = vm._computedWatchers = Object.create(null), isSSR = isServerRendering();
for(var key in computed){
var userDef = computed[key], getter = 'function' == typeof userDef ? userDef : userDef.get;
null == getter && warn("Getter is missing for computed property \"" + key + "\".", vm), isSSR || (watchers[key] = new Watcher(vm, getter || noop, noop, computedWatcherOptions)), key in vm ? key in vm.$data ? warn("The computed property \"" + key + "\" is already defined in data.", vm) : vm.$options.props && key in vm.$options.props && warn("The computed property \"" + key + "\" is already defined as a prop.", vm) : defineComputed(vm, key, userDef);
}
}(vm2, opts.computed), opts.watch && opts.watch !== nativeWatch && function(vm, watch) {
}(vm4, opts1.computed), opts1.watch && opts1.watch !== nativeWatch && function(vm, watch) {
for(var key in watch){
var handler = watch[key];
if (Array.isArray(handler)) for(var i = 0; i < handler.length; i++)createWatcher(vm, key, handler[i]);
else createWatcher(vm, key, handler);
}
}(vm2, opts.watch), (provide = (vm3 = vm6).$options.provide) && (vm3._provided = 'function' == typeof provide ? provide.call(vm3) : provide), callHook(vm6, 'created'), config.performance && mark && (vm6._name = formatComponentName(vm6, !1), mark(endTag), measure("vue " + vm6._name + " init", startTag, endTag)), vm6.$options.el && vm6.$mount(vm6.$options.el);
}, Vue2 = Vue, (dataDef = {}).get = function() {
}(vm4, opts1.watch), (provide = (vm5 = vm6).$options.provide) && (vm5._provided = 'function' == typeof provide ? provide.call(vm5) : provide), callHook(vm6, 'created'), config.performance && mark && (vm6._name = formatComponentName(vm6, !1), mark(endTag), measure("vue " + vm6._name + " init", startTag, endTag)), vm6.$options.el && vm6.$mount(vm6.$options.el);
}, Vue1 = Vue10, (dataDef = {}).get = function() {
return this._data;
}, (propsDef = {}).get = function() {
return this._props;
@ -1422,7 +1422,7 @@
warn("Avoid replacing instance root $data. Use nested data properties instead.", this);
}, propsDef.set = function() {
warn("$props is readonly.", this);
}, Object.defineProperty(Vue2.prototype, '$data', dataDef), Object.defineProperty(Vue2.prototype, '$props', propsDef), Vue2.prototype.$set = set, Vue2.prototype.$delete = del, Vue2.prototype.$watch = function(expOrFn, cb, options) {
}, Object.defineProperty(Vue1.prototype, '$data', dataDef), Object.defineProperty(Vue1.prototype, '$props', propsDef), Vue1.prototype.$set = set, Vue1.prototype.$delete = del, Vue1.prototype.$watch = function(expOrFn, cb, options) {
if (isPlainObject(cb)) return createWatcher(this, expOrFn, cb, options);
(options = options || {}).user = !0;
var watcher = new Watcher(this, expOrFn, cb, options);
@ -1434,18 +1434,18 @@
return function() {
watcher.teardown();
};
}, Vue3 = Vue, hookRE = /^hook:/, Vue3.prototype.$on = function(event, fn) {
}, Vue2 = Vue10, hookRE = /^hook:/, Vue2.prototype.$on = function(event, fn) {
var vm = this;
if (Array.isArray(event)) for(var i = 0, l = event.length; i < l; i++)vm.$on(event[i], fn);
else (vm._events[event] || (vm._events[event] = [])).push(fn), hookRE.test(event) && (vm._hasHookEvent = !0);
return vm;
}, Vue3.prototype.$once = function(event, fn) {
}, Vue2.prototype.$once = function(event, fn) {
var vm = this;
function on() {
vm.$off(event, on), fn.apply(vm, arguments);
}
return on.fn = fn, vm.$on(event, on), vm;
}, Vue3.prototype.$off = function(event, fn) {
}, Vue2.prototype.$off = function(event, fn) {
var cb, vm = this;
if (!arguments.length) return vm._events = Object.create(null), vm;
if (Array.isArray(event)) {
@ -1460,7 +1460,7 @@
break;
}
return vm;
}, Vue3.prototype.$emit = function(event) {
}, Vue2.prototype.$emit = function(event) {
var lowerCaseEvent = event.toLowerCase();
lowerCaseEvent !== event && this._events[lowerCaseEvent] && tip("Event \"" + lowerCaseEvent + "\" is emitted in component " + formatComponentName(this) + " but the handler is registered for \"" + event + '". Note that HTML attributes are case-insensitive and you cannot use v-on to listen to camelCase events when using in-DOM templates. You should probably use "' + hyphenate(event) + "\" instead of \"" + event + "\".");
var cbs = this._events[event];
@ -1469,12 +1469,12 @@
for(var args = toArray(arguments, 1), info = "event handler for \"" + event + "\"", i = 0, l = cbs.length; i < l; i++)invokeWithErrorHandling(cbs[i], this, args, this, info);
}
return this;
}, (Vue4 = Vue).prototype._update = function(vnode, hydrating) {
}, (Vue3 = Vue10).prototype._update = function(vnode, hydrating) {
var vm = this, prevEl = vm.$el, prevVnode = vm._vnode, restoreActiveInstance = setActiveInstance(vm);
vm._vnode = vnode, prevVnode ? vm.$el = vm.__patch__(prevVnode, vnode) : vm.$el = vm.__patch__(vm.$el, vnode, hydrating, !1), restoreActiveInstance(), prevEl && (prevEl.__vue__ = null), vm.$el && (vm.$el.__vue__ = vm), vm.$vnode && vm.$parent && vm.$vnode === vm.$parent._vnode && (vm.$parent.$el = vm.$el);
}, Vue4.prototype.$forceUpdate = function() {
}, Vue3.prototype.$forceUpdate = function() {
this._watcher && this._watcher.update();
}, Vue4.prototype.$destroy = function() {
}, Vue3.prototype.$destroy = function() {
var vm = this;
if (!vm._isBeingDestroyed) {
callHook(vm, 'beforeDestroy'), vm._isBeingDestroyed = !0;
@ -1483,9 +1483,9 @@
for(var i = vm._watchers.length; i--;)vm._watchers[i].teardown();
vm._data.__ob__ && vm._data.__ob__.vmCount--, vm._isDestroyed = !0, vm.__patch__(vm._vnode, null), callHook(vm, 'destroyed'), vm.$off(), vm.$el && (vm.$el.__vue__ = null), vm.$vnode && (vm.$vnode.parent = null);
}
}, Vue5 = Vue, installRenderHelpers(Vue5.prototype), Vue5.prototype.$nextTick = function(fn) {
}, Vue4 = Vue10, installRenderHelpers(Vue4.prototype), Vue4.prototype.$nextTick = function(fn) {
return nextTick(fn, this);
}, Vue5.prototype._render = function() {
}, Vue4.prototype._render = function() {
var vnode, vm = this, ref = vm.$options, render = ref.render, _parentVnode = ref._parentVnode;
_parentVnode && (vm.$scopedSlots = normalizeScopedSlots(_parentVnode.data.scopedSlots, vm.$slots, vm.$scopedSlots)), vm.$vnode = _parentVnode;
try {
@ -1502,25 +1502,25 @@
}
return Array.isArray(vnode) && 1 === vnode.length && (vnode = vnode[0]), vnode instanceof VNode || (Array.isArray(vnode) && warn("Multiple root nodes returned from render function. Render function should return a single root node.", vm), vnode = createEmptyVNode()), vnode.parent = _parentVnode, vnode;
};
var Vue1, Vue2, dataDef, propsDef, Vue3, hookRE, Vue4, Vue5, Vue6, configDef, Vue7, Vue8, Vue9, cid, Vue10, patternTypes = [
var patternTypes = [
String,
RegExp,
Array
];
Vue6 = Vue, (configDef = {}).get = function() {
Vue5 = Vue10, (configDef = {}).get = function() {
return config;
}, configDef.set = function() {
warn('Do not replace the Vue.config object, set individual fields instead.');
}, Object.defineProperty(Vue6, 'config', configDef), Vue6.util = {
}, Object.defineProperty(Vue5, 'config', configDef), Vue5.util = {
warn: warn,
extend: extend,
mergeOptions: mergeOptions,
defineReactive: defineReactive$$1
}, Vue6.set = set, Vue6.delete = del, Vue6.nextTick = nextTick, Vue6.observable = function(obj) {
}, Vue5.set = set, Vue5.delete = del, Vue5.nextTick = nextTick, Vue5.observable = function(obj) {
return observe(obj), obj;
}, Vue6.options = Object.create(null), ASSET_TYPES.forEach(function(type) {
Vue6.options[type + 's'] = Object.create(null);
}), Vue6.options._base = Vue6, extend(Vue6.options.components, {
}, Vue5.options = Object.create(null), ASSET_TYPES.forEach(function(type) {
Vue5.options[type + 's'] = Object.create(null);
}), Vue5.options._base = Vue5, extend(Vue5.options.components, {
KeepAlive: {
name: 'keep-alive',
abstract: !0,
@ -1561,14 +1561,14 @@
return vnode || slot && slot[0];
}
}
}), (Vue7 = Vue6).use = function(plugin) {
}), (Vue6 = Vue5).use = function(plugin) {
var installedPlugins = this._installedPlugins || (this._installedPlugins = []);
if (installedPlugins.indexOf(plugin) > -1) return this;
var args = toArray(arguments, 1);
return args.unshift(this), 'function' == typeof plugin.install ? plugin.install.apply(plugin, args) : 'function' == typeof plugin && plugin.apply(null, args), installedPlugins.push(plugin), this;
}, (Vue8 = Vue6).mixin = function(mixin) {
}, (Vue7 = Vue5).mixin = function(mixin) {
return this.options = mergeOptions(this.options, mixin), this;
}, (Vue9 = Vue6).cid = 0, cid = 1, Vue9.extend = function(extendOptions) {
}, (Vue8 = Vue5).cid = 0, cid = 1, Vue8.extend = function(extendOptions) {
extendOptions = extendOptions || {};
var Super = this, SuperId = Super.cid, cachedCtors = extendOptions._Ctor || (extendOptions._Ctor = {});
if (cachedCtors[SuperId]) return cachedCtors[SuperId];
@ -1586,22 +1586,22 @@
}(Sub), Sub.extend = Super.extend, Sub.mixin = Super.mixin, Sub.use = Super.use, ASSET_TYPES.forEach(function(type) {
Sub[type] = Super[type];
}), name && (Sub.options.components[name] = Sub), Sub.superOptions = Super.options, Sub.extendOptions = extendOptions, Sub.sealedOptions = extend({}, Sub.options), cachedCtors[SuperId] = Sub, Sub;
}, Vue10 = Vue6, ASSET_TYPES.forEach(function(type) {
Vue10[type] = function(id, definition) {
}, Vue9 = Vue5, ASSET_TYPES.forEach(function(type) {
Vue9[type] = function(id, definition) {
return definition ? ('component' === type && validateComponentName(id), 'component' === type && isPlainObject(definition) && (definition.name = definition.name || id, definition = this.options._base.extend(definition)), 'directive' === type && 'function' == typeof definition && (definition = {
bind: definition,
update: definition
}), this.options[type + 's'][id] = definition, definition) : this.options[type + 's'][id];
};
}), Object.defineProperty(Vue.prototype, '$isServer', {
}), Object.defineProperty(Vue10.prototype, '$isServer', {
get: isServerRendering
}), Object.defineProperty(Vue.prototype, '$ssrContext', {
}), Object.defineProperty(Vue10.prototype, '$ssrContext', {
get: function() {
return this.$vnode && this.$vnode.ssrContext;
}
}), Object.defineProperty(Vue, 'FunctionalRenderContext', {
}), Object.defineProperty(Vue10, 'FunctionalRenderContext', {
value: FunctionalRenderContext
}), Vue.version = '2.6.12';
}), Vue10.version = '2.6.12';
var isReservedAttr = makeMap('style,class'), acceptValue = makeMap('input,textarea,option,select,progress'), mustUseProp = function(tag, type, attr) {
return 'value' === attr && acceptValue(tag) && 'button' !== type || 'selected' === attr && 'option' === tag || 'checked' === attr && 'input' === tag || 'muted' === attr && 'video' === tag;
}, isEnumeratedAttr = makeMap('contenteditable,draggable,spellcheck'), isValidContentEditableValue = makeMap('events,caret,typing,plaintext-only'), isBooleanAttr = makeMap("allowfullscreen,async,autofocus,autoplay,checked,compact,controls,declare,default,defaultchecked,defaultmuted,defaultselected,defer,disabled,enabled,formnovalidate,hidden,indeterminate,inert,ismap,itemscope,loop,multiple,muted,nohref,noresize,noshade,novalidate,nowrap,open,pauseonexit,readonly,required,reversed,scoped,seamless,selected,sortable,translate,truespeed,typemustmatch,visible"), xlinkNS = 'http://www.w3.org/1999/xlink', isXlink = function(name) {
@ -2254,7 +2254,7 @@
function _enter(_, vnode) {
!0 !== vnode.data.show && enter(vnode);
}
var modules = [
var modules1 = [
{
create: updateAttrs,
update: updateAttrs
@ -2497,7 +2497,7 @@
};
}({
nodeOps: nodeOps,
modules: modules
modules: modules1
});
isIE9 && document.addEventListener('selectionchange', function() {
var el = document.activeElement;
@ -2619,13 +2619,13 @@
s.transform = s.WebkitTransform = "translate(" + dx + "px," + dy + "px)", s.transitionDuration = '0s';
}
}
delete props.mode, Vue.config.mustUseProp = mustUseProp, Vue.config.isReservedTag = isReservedTag, Vue.config.isReservedAttr = isReservedAttr, Vue.config.getTagNamespace = getTagNamespace, Vue.config.isUnknownElement = function(tag) {
delete props.mode, Vue10.config.mustUseProp = mustUseProp, Vue10.config.isReservedTag = isReservedTag, Vue10.config.isReservedAttr = isReservedAttr, Vue10.config.getTagNamespace = getTagNamespace, Vue10.config.isUnknownElement = function(tag) {
if (!inBrowser) return !0;
if (isReservedTag(tag)) return !1;
if (null != unknownElementCache[tag = tag.toLowerCase()]) return unknownElementCache[tag];
var el = document.createElement(tag);
return tag.indexOf('-') > -1 ? unknownElementCache[tag] = el.constructor === window.HTMLUnknownElement || el.constructor === window.HTMLElement : unknownElementCache[tag] = /HTMLUnknownElement/.test(el.toString());
}, extend(Vue.options.directives, {
}, extend(Vue10.options.directives, {
model: directive,
show: {
bind: function(el, ref, vnode) {
@ -2646,7 +2646,7 @@
isDestroy || (el.style.display = el.__vOriginalDisplay);
}
}
}), extend(Vue.options.components, {
}), extend(Vue10.options.components, {
Transition: {
name: 'transition',
props: transitionProps,
@ -2666,15 +2666,15 @@
if (this._leaving) return placeholder(h, rawChild);
var id = "__transition-" + this._uid + "-";
child.key = null == child.key ? child.isComment ? id + 'comment' : id + child.tag : isPrimitive(child.key) ? 0 === String(child.key).indexOf(id) ? child.key : id + child.key : child.key;
var child1, oldChild, data = (child.data || (child.data = {})).transition = extractTransitionData(this), oldRawChild = this._vnode, oldChild1 = getRealChild(oldRawChild);
if (child.data.directives && child.data.directives.some(isVShowDirective) && (child.data.show = !0), oldChild1 && oldChild1.data && (oldChild1.key !== child.key || oldChild1.tag !== child.tag) && !isAsyncPlaceholder(oldChild1) && !(oldChild1.componentInstance && oldChild1.componentInstance._vnode.isComment)) {
var oldData = oldChild1.data.transition = extend({}, data);
var data = (child.data || (child.data = {})).transition = extractTransitionData(this), oldRawChild = this._vnode, oldChild = getRealChild(oldRawChild);
if (child.data.directives && child.data.directives.some(isVShowDirective) && (child.data.show = !0), oldChild && oldChild.data && (child1 = child, (oldChild1 = oldChild).key !== child1.key || oldChild1.tag !== child1.tag) && !isAsyncPlaceholder(oldChild) && !(oldChild.componentInstance && oldChild.componentInstance._vnode.isComment)) {
var oldData = oldChild.data.transition = extend({}, data);
if ('out-in' === mode) return this._leaving = !0, mergeVNodeHook(oldData, 'afterLeave', function() {
this$1._leaving = !1, this$1.$forceUpdate();
}), placeholder(h, rawChild);
if ('in-out' === mode) {
if (isAsyncPlaceholder(child)) return oldRawChild;
var delayedLeave, performLeave = function() {
var child1, oldChild1, delayedLeave, performLeave = function() {
delayedLeave();
};
mergeVNodeHook(data, 'afterEnter', performLeave), mergeVNodeHook(data, 'enterCancelled', performLeave), mergeVNodeHook(oldData, 'delayLeave', function(leave) {
@ -2739,7 +2739,7 @@
}
}
}
}), Vue.prototype.__patch__ = inBrowser ? patch : noop, Vue.prototype.$mount = function(el, hydrating) {
}), Vue10.prototype.__patch__ = inBrowser ? patch : noop, Vue10.prototype.$mount = function(el, hydrating) {
var vm, el1, hydrating1, updateComponent;
return el = el && inBrowser ? query(el) : void 0, vm = this, el1 = el, hydrating1 = hydrating, vm.$el = el1, vm.$options.render || (vm.$options.render = createEmptyVNode, vm.$options.template && '#' !== vm.$options.template.charAt(0) || vm.$options.el || el1 ? warn("You are using the runtime-only build of Vue where the template compiler is not available. Either pre-compile the templates into render functions, or use the compiler-included build.", vm) : warn('Failed to mount component: template or render function not defined.', vm)), callHook(vm, 'beforeMount'), updateComponent = config.performance && mark ? function() {
var name = vm._name, id = vm._uid, startTag = "vue-perf-start:" + id, endTag = "vue-perf-end:" + id;
@ -2754,7 +2754,7 @@
}
}, !0), hydrating1 = !1, null == vm.$vnode && (vm._isMounted = !0, callHook(vm, 'mounted')), vm;
}, inBrowser && setTimeout(function() {
config.devtools && (devtools ? devtools.emit('init', Vue) : console[console.info ? 'info' : 'log']("Download the Vue Devtools extension for a better development experience:\nhttps://github.com/vuejs/vue-devtools")), !1 !== config.productionTip && 'undefined' != typeof console && console[console.info ? 'info' : 'log']("You are running Vue in development mode.\nMake sure to turn on production mode when deploying for production.\nSee more tips at https://vuejs.org/guide/deployment.html");
config.devtools && (devtools ? devtools.emit('init', Vue10) : console[console.info ? 'info' : 'log']("Download the Vue Devtools extension for a better development experience:\nhttps://github.com/vuejs/vue-devtools")), !1 !== config.productionTip && 'undefined' != typeof console && console[console.info ? 'info' : 'log']("You are running Vue in development mode.\nMake sure to turn on production mode when deploying for production.\nSee more tips at https://vuejs.org/guide/deployment.html");
}, 0);
var defaultTagRE = /\{\{((?:.|\r?\n)+?)\}\}/g, regexEscapeRE = /[-.*+?^${}()|[\]\/\\]/g, buildRegex = cached(function(delimiters) {
var open = delimiters[0].replace(regexEscapeRE, '\\$&'), close = delimiters[1].replace(regexEscapeRE, '\\$&');
@ -2810,7 +2810,6 @@
};
}
function processElement(element, options) {
var el, ref, el1, el2, binding;
(function(el) {
var exp = getBindingAttr(el, 'key');
if (exp) {
@ -2847,7 +2846,7 @@
}
}
}(element), 'slot' === (el1 = element).tag && (el1.slotName = getBindingAttr(el1, 'name'), el1.key && warn$2("`key` does not work on <slot> because slots are abstract outlets and can possibly expand into multiple elements. Use the key on a wrapping element instead.", getRawBindingAttr(el1, 'key'))), (binding = getBindingAttr(el2 = element, 'is')) && (el2.component = binding), null != getAndRemoveAttr(el2, 'inline-template') && (el2.inlineTemplate = !0);
for(var i = 0; i < transforms.length; i++)element = transforms[i](element, options) || element;
for(var el, ref, el1, el2, binding, i = 0; i < transforms.length; i++)element = transforms[i](element, options) || element;
return function(el) {
var i, l, name, rawName, value, modifiers, syncGen, isDynamic, list = el.attrsList;
for(i = 0, l = list.length; i < l; i++)if (name = rawName = list[i].name, value = list[i].value, dirRE.test(name)) {
@ -2904,7 +2903,7 @@
function cloneASTElement(el) {
return createASTElement(el.tag, el.attrsList.slice(), el.parent);
}
var modules1, modules$1 = [
var modules$1 = [
{
staticKeys: [
'staticClass'
@ -3340,7 +3339,7 @@
}), noop;
}
}
var baseCompile, ref$1 = (baseCompile = function(template, options) {
var ref$1 = (baseCompile = function(template, options) {
var root, options1, ast = function(template, options) {
warn$2 = options.warn || baseWarn, platformIsPreTag = options.isPreTag || no, platformMustUseProp = options.mustUseProp || no, platformGetTagNamespace = options.getTagNamespace || no;
var root, currentParent, isReservedTag = options.isReservedTag || no;
@ -3501,7 +3500,7 @@
shouldKeepComment: options.comments,
outputSourceRange: options.outputSourceRange,
start: function(tag, attrs, unary, start$1, end) {
var el, el1, ns = currentParent && currentParent.ns || platformGetTagNamespace(tag);
var el, el1, el2, ns = currentParent && currentParent.ns || platformGetTagNamespace(tag);
isIE && 'svg' === ns && (attrs = function(attrs) {
for(var res = [], i = 0; i < attrs.length; i++){
var attr = attrs[i];
@ -3509,7 +3508,7 @@
}
return res;
}(attrs));
var el2, element = createASTElement(tag, attrs, currentParent);
var element = createASTElement(tag, attrs, currentParent);
ns && (element.ns = ns), options.outputSourceRange && (element.start = start$1, element.end = end, element.rawAttrsMap = element.attrsList.reduce(function(cumulated, attr) {
return cumulated[attr.name] = attr, cumulated;
}, {})), attrs.forEach(function(attr) {
@ -3517,11 +3516,11 @@
start: attr.start + attr.name.indexOf("["),
end: attr.start + attr.name.length
});
}), el2 = element, 'style' !== el2.tag && ('script' !== el2.tag || el2.attrsMap.type && 'text/javascript' !== el2.attrsMap.type) || isServerRendering() || (element.forbidden = !0, warn$2("Templates should only be responsible for mapping the state to the UI. Avoid placing tags with side-effects in your templates, such as <" + tag + ">, as they will not be parsed.", {
}), el = element, 'style' !== el.tag && ('script' !== el.tag || el.attrsMap.type && 'text/javascript' !== el.attrsMap.type) || isServerRendering() || (element.forbidden = !0, warn$2("Templates should only be responsible for mapping the state to the UI. Avoid placing tags with side-effects in your templates, such as <" + tag + ">, as they will not be parsed.", {
start: element.start
}));
for(var i = 0; i < preTransforms.length; i++)element = preTransforms[i](element, options) || element;
!inVPre && (el = element, null != getAndRemoveAttr(el, 'v-pre') && (el.pre = !0), element.pre && (inVPre = !0)), platformIsPreTag(element.tag) && (inPre = !0), inVPre ? function(el) {
!inVPre && (el1 = element, null != getAndRemoveAttr(el1, 'v-pre') && (el1.pre = !0), element.pre && (inVPre = !0)), platformIsPreTag(element.tag) && (inPre = !0), inVPre ? function(el) {
var list = el.attrsList, len = list.length;
if (len) for(var attrs = el.attrs = Array(len), i = 0; i < len; i++)attrs[i] = {
name: list[i].name,
@ -3539,7 +3538,7 @@
var elseif = getAndRemoveAttr(el, 'v-else-if');
elseif && (el.elseif = elseif);
}
}(element), el1 = element, null != getAndRemoveAttr(el1, 'v-once') && (el1.once = !0)), root || (root = element, checkRootConstraints(root)), unary ? closeElement(element) : (currentParent = element, stack.push(element));
}(element), el2 = element, null != getAndRemoveAttr(el2, 'v-once') && (el2.once = !0)), root || (root = element, checkRootConstraints(root)), unary ? closeElement(element) : (currentParent = element, stack.push(element));
},
end: function(tag, start, end$1) {
var element = stack[stack.length - 1];
@ -3555,7 +3554,7 @@
return;
}
if (!isIE || 'textarea' !== currentParent.tag || currentParent.attrsMap.placeholder !== text) {
var res, child, el, children = currentParent.children;
var el, res, child, children = currentParent.children;
(text = inPre || text.trim() ? (el = currentParent, 'script' === el.tag || 'style' === el.tag) ? text : decodeHTMLCached(text) : children.length ? whitespaceOption ? 'condense' === whitespaceOption && lineBreakRE.test(text) ? '' : ' ' : preserveWhitespace ? ' ' : '' : '') && (inPre || 'condense' !== whitespaceOption || (text = text.replace(whitespaceRE$1, ' ')), !inVPre && ' ' !== text && (res = parseText(text, delimiters)) ? child = {
type: 2,
expression: res.expression,
@ -3613,13 +3612,13 @@
}, function(baseOptions) {
var compile, cache;
function compile1(template, options) {
var finalOptions = Object.create(baseOptions), errors = [], tips = [], warn = function(msg, range, tip) {
var ast, warn, finalOptions = Object.create(baseOptions), errors = [], tips = [], warn1 = function(msg, range, tip) {
(tip ? tips : errors).push(msg);
};
if (options) {
if (options.outputSourceRange) {
var leadingSpaceLength = template.match(/^\s*/)[0].length;
warn = function(msg, range, tip) {
warn1 = function(msg, range, tip) {
var data = {
msg: msg
};
@ -3628,9 +3627,9 @@
}
for(var key in options.modules && (finalOptions.modules = (baseOptions.modules || []).concat(options.modules)), options.directives && (finalOptions.directives = extend(Object.create(baseOptions.directives || null), options.directives)), options)'modules' !== key && 'directives' !== key && (finalOptions[key] = options[key]);
}
finalOptions.warn = warn;
var ast, warn1, compiled = baseCompile(template.trim(), finalOptions);
return ast = compiled.ast, warn1 = warn, ast && function checkNode(node, warn) {
finalOptions.warn = warn1;
var compiled = baseCompile(template.trim(), finalOptions);
return ast = compiled.ast, warn = warn1, ast && function checkNode(node, warn) {
if (1 === node.type) {
for(var name in node.attrsMap)if (dirRE.test(name)) {
var value = node.attrsMap[name];
@ -3641,7 +3640,7 @@
}
if (node.children) for(var i = 0; i < node.children.length; i++)checkNode(node.children[i], warn);
} else 2 === node.type && checkExpression(node.expression, node.text, warn, node);
}(ast, warn1), compiled.errors = errors, compiled.tips = tips, compiled;
}(ast, warn), compiled.errors = errors, compiled.tips = tips, compiled;
}
return {
compile: compile1,
@ -3703,8 +3702,8 @@
var shouldDecodeNewlines = !!inBrowser && getShouldDecode(!1), shouldDecodeNewlinesForHref = !!inBrowser && getShouldDecode(!0), idToTemplate = cached(function(id) {
var el = query(id);
return el && el.innerHTML;
}), mount = Vue.prototype.$mount;
return Vue.prototype.$mount = function(el, hydrating) {
}), mount = Vue10.prototype.$mount;
return Vue10.prototype.$mount = function(el, hydrating) {
if ((el = el && query(el)) === document.body || el === document.documentElement) return warn("Do not mount Vue to <html> or <body> - mount to normal elements instead."), this;
var options = this.$options;
if (!options.render) {
@ -3733,5 +3732,5 @@
}
}
return mount.call(this, el, hydrating);
}, Vue.compile = compileToFunctions, Vue;
}, Vue10.compile = compileToFunctions, Vue10;
});

View File

@ -2253,13 +2253,13 @@
},
52275: function(module, __unused_webpack_exports, __webpack_require__) {
"use strict";
var process = __webpack_require__(97671), utils = __webpack_require__(99677), normalizeHeaderName = __webpack_require__(43907), enhanceError = __webpack_require__(16488), DEFAULT_CONTENT_TYPE = {
var adapter, process = __webpack_require__(97671), utils = __webpack_require__(99677), normalizeHeaderName = __webpack_require__(43907), enhanceError = __webpack_require__(16488), DEFAULT_CONTENT_TYPE = {
"Content-Type": "application/x-www-form-urlencoded"
};
function setContentTypeIfUnset(headers, value) {
!utils.isUndefined(headers) && utils.isUndefined(headers["Content-Type"]) && (headers["Content-Type"] = value);
}
var adapter, defaults = {
var defaults = {
transitional: {
silentJSONParsing: !0,
forcedJSONParsing: !0,
@ -9113,7 +9113,7 @@
return withPageLifeCycle;
}
});
var _a, SHOW = "show", HIDE = "hide", LAUNCH = "launch", ERROR = "error";
var extendStatics, _a, SHOW = "show", HIDE = "hide", LAUNCH = "launch", ERROR = "error";
(_a = {})[SHOW] = "miniapp_pageshow", _a[HIDE] = "miniapp_pagehide";
var DEFAULT_APP_CONFIG = {
app: {
@ -9150,7 +9150,7 @@
Object.assign(current, value);
}
});
var extendStatics, lib_router = router, __extends = (extendStatics = function(d, b) {
var lib_router = router, __extends = (extendStatics = function(d, b) {
return (extendStatics = Object.setPrototypeOf || ({
__proto__: []
}) instanceof Array && function(d, b) {
@ -13809,18 +13809,18 @@
retryLane: 0
};
function ti(a, b, c) {
var g, a1, b1, c1, d, e, f, g1, h, a2, b2, c2, d1, e1, d2 = b.pendingProps, e2 = P.current, f1 = !1;
return ((g = 0 != (64 & b.flags)) || (g = (null === a || null !== a.memoizedState) && 0 != (2 & e2)), g ? (f1 = !0, b.flags &= -65) : null !== a && null === a.memoizedState || void 0 === d2.fallback || !0 === d2.unstable_avoidThisFallback || (e2 |= 1), I(P, 1 & e2), null === a) ? (void 0 !== d2.fallback && ph(b), a = d2.children, e2 = d2.fallback, f1) ? (a = ui(b, a, e2, c), b.child.memoizedState = {
var a1, b1, c1, d, e, f, g, h, a2, b2, c2, d1, e1, g1, d2 = b.pendingProps, e2 = P.current, f1 = !1;
return ((g1 = 0 != (64 & b.flags)) || (g1 = (null === a || null !== a.memoizedState) && 0 != (2 & e2)), g1 ? (f1 = !0, b.flags &= -65) : null !== a && null === a.memoizedState || void 0 === d2.fallback || !0 === d2.unstable_avoidThisFallback || (e2 |= 1), I(P, 1 & e2), null === a) ? (void 0 !== d2.fallback && ph(b), a = d2.children, e2 = d2.fallback, f1) ? (a = ui(b, a, e2, c), b.child.memoizedState = {
baseLanes: c
}, b.memoizedState = si, a) : "number" == typeof d2.unstable_expectedLoadTime ? (a = ui(b, a, e2, c), b.child.memoizedState = {
baseLanes: c
}, b.memoizedState = si, b.lanes = 33554432, a) : ((c = vi({
mode: "visible",
children: a
}, b.mode, c, null)).return = b, b.child = c) : (a.memoizedState, f1 ? (a1 = a, b1 = b, c1 = d2.children, d = d2.fallback, e = c, f = b1.mode, a1 = (g1 = a1.child).sibling, h = {
}, b.mode, c, null)).return = b, b.child = c) : (a.memoizedState, f1 ? (a1 = a, b1 = b, c1 = d2.children, d = d2.fallback, e = c, f = b1.mode, a1 = (g = a1.child).sibling, h = {
mode: "hidden",
children: c1
}, 0 == (2 & f) && b1.child !== g1 ? ((c1 = b1.child).childLanes = 0, c1.pendingProps = h, null !== (g1 = c1.lastEffect) ? (b1.firstEffect = c1.firstEffect, b1.lastEffect = g1, g1.nextEffect = null) : b1.firstEffect = b1.lastEffect = null) : c1 = Tg(g1, h), null !== a1 ? d = Tg(a1, d) : (d = Xg(d, f, e, null), d.flags |= 2), d.return = b1, c1.return = b1, c1.sibling = d, b1.child = c1, d2 = d, f1 = b.child, e2 = a.child.memoizedState, f1.memoizedState = null === e2 ? {
}, 0 == (2 & f) && b1.child !== g ? ((c1 = b1.child).childLanes = 0, c1.pendingProps = h, null !== (g = c1.lastEffect) ? (b1.firstEffect = c1.firstEffect, b1.lastEffect = g, g.nextEffect = null) : b1.firstEffect = b1.lastEffect = null) : c1 = Tg(g, h), null !== a1 ? d = Tg(a1, d) : (d = Xg(d, f, e, null), d.flags |= 2), d.return = b1, c1.return = b1, c1.sibling = d, b1.child = c1, d2 = d, f1 = b.child, e2 = a.child.memoizedState, f1.memoizedState = null === e2 ? {
baseLanes: c
} : {
baseLanes: e2.baseLanes | c

View File

@ -10,7 +10,7 @@
return Global;
}
});
var cursor, react = __webpack_require__(7294), StyleSheet = function() {
var fn, cache, func, cursor, react = __webpack_require__(7294), StyleSheet = function() {
function StyleSheet(options) {
var _this = this;
this._insertTag = function(tag) {
@ -199,7 +199,7 @@
function declaration(value, root, parent, length) {
return node(value, root, parent, DECLARATION, Utility_substr(value, 0, length), Utility_substr(value, length + 1, -1), length);
}
var fn, cache, identifierWithPointTracking = function(begin, points, index) {
var identifierWithPointTracking = function(begin, points, index) {
for(var previous = 0, character = 0; previous = character, character = peek(), 38 === previous && 12 === character && (points[index] = 1), !token(character);)next();
return slice(begin, position);
}, toRules = function(parsed, points) {
@ -223,10 +223,10 @@
return parsed;
}, fixedElements = new WeakMap(), compat = function(element) {
if ("rule" === element.type && element.parent && element.length) {
for(var value = element.value, parent = element.parent, isImplicitRule = element.column === parent.column && element.line === parent.line; "rule" !== parent.type;)if (!(parent = parent.parent)) return;
if ((1 !== element.props.length || 58 === value.charCodeAt(0) || fixedElements.get(parent)) && !isImplicitRule) {
for(var value, points, value1 = element.value, parent = element.parent, isImplicitRule = element.column === parent.column && element.line === parent.line; "rule" !== parent.type;)if (!(parent = parent.parent)) return;
if ((1 !== element.props.length || 58 === value1.charCodeAt(0) || fixedElements.get(parent)) && !isImplicitRule) {
fixedElements.set(element, !0);
for(var points = [], rules = dealloc(toRules(alloc(value), points)), parentRules = parent.props, i = 0, k = 0; i < rules.length; i++)for(var j = 0; j < parentRules.length; j++, k++)element.props[k] = points[i] ? rules[i].replace(/&\f/g, parentRules[j]) : parentRules[j] + " " + rules[i];
for(var points1 = [], rules = (value = value1, points = points1, dealloc(toRules(alloc(value), points))), parentRules = parent.props, i = 0, k = 0; i < rules.length; i++)for(var j = 0; j < parentRules.length; j++, k++)element.props[k] = points1[i] ? rules[i].replace(/&\f/g, parentRules[j]) : parentRules[j] + " " + rules[i];
}
}
}, removeLabel = function(element) {
@ -525,7 +525,7 @@
};
Object.prototype.hasOwnProperty;
var EmotionCacheContext = (0, react.createContext)("undefined" != typeof HTMLElement ? function(options) {
var key = options.key;
var collection, length, key = options.key;
if ("css" === key) {
var ssrStyles = document.querySelectorAll("style[data-emotion]:not([data-s])");
Array.prototype.forEach.call(ssrStyles, function(node) {
@ -537,7 +537,7 @@
for(var attrib = node.getAttribute("data-emotion").split(" "), i = 1; i < attrib.length; i++)inserted[attrib[i]] = !0;
nodesToHydrate.push(node);
});
var callback, container, _insert, currentSheet, collection, length, finalizingPlugins = [
var callback, container, _insert, currentSheet, finalizingPlugins = [
stringify,
(callback = function(rule) {
currentSheet.insert(rule);
@ -663,7 +663,7 @@
EmotionCacheContext.Provider;
var emotion_element_99289b21_browser_esm_ThemeContext = (0, react.createContext)({});
__webpack_require__(8679);
var func, emotion_utils_browser_esm_insertStyles = function(cache, serialized, isStringTag) {
var emotion_utils_browser_esm_insertStyles = function(cache, serialized, isStringTag) {
var className = cache.key + "-" + serialized.name;
if (!1 === isStringTag && void 0 === cache.registered[className] && (cache.registered[className] = serialized.styles), void 0 === cache.inserted[serialized.name]) {
var current = serialized;

View File

@ -1713,7 +1713,7 @@
}();
}
exports.default = function(_param) {
var sizerSvg, src = _param.src, sizes = _param.sizes, _unoptimized = _param.unoptimized, unoptimized = void 0 !== _unoptimized && _unoptimized, _priority = _param.priority, priority = void 0 !== _priority && _priority, loading = _param.loading, _lazyBoundary = _param.lazyBoundary, className = _param.className, quality = _param.quality, width = _param.width, height = _param.height, objectFit = _param.objectFit, objectPosition = _param.objectPosition, onLoadingComplete = _param.onLoadingComplete, _loader = _param.loader, loader = void 0 === _loader ? defaultImageLoader : _loader, _placeholder = _param.placeholder, placeholder = void 0 === _placeholder ? "empty" : _placeholder, blurDataURL = _param.blurDataURL, all = function(source, excluded) {
var src, arr, sizerSvg, src1 = _param.src, sizes = _param.sizes, _unoptimized = _param.unoptimized, unoptimized = void 0 !== _unoptimized && _unoptimized, _priority = _param.priority, priority = void 0 !== _priority && _priority, loading = _param.loading, _lazyBoundary = _param.lazyBoundary, className = _param.className, quality = _param.quality, width = _param.width, height = _param.height, objectFit = _param.objectFit, objectPosition = _param.objectPosition, onLoadingComplete = _param.onLoadingComplete, _loader = _param.loader, loader = void 0 === _loader ? defaultImageLoader : _loader, _placeholder = _param.placeholder, placeholder = void 0 === _placeholder ? "empty" : _placeholder, blurDataURL = _param.blurDataURL, all = function(source, excluded) {
if (null == source) return {};
var key, i, target = function(source, excluded) {
if (null == source) return {};
@ -1745,16 +1745,16 @@
"blurDataURL"
]), layout = sizes ? "responsive" : "intrinsic";
"layout" in all && (all.layout && (layout = all.layout), delete all.layout);
var src1, staticSrc = "";
if ("object" == typeof (src1 = src) && (isStaticRequire(src1) || void 0 !== src1.src)) {
var staticImageData = isStaticRequire(src) ? src.default : src;
var staticSrc = "";
if ("object" == typeof (src = src1) && (isStaticRequire(src) || void 0 !== src.src)) {
var staticImageData = isStaticRequire(src1) ? src1.default : src1;
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)));
}
src = "string" == typeof src ? src : staticSrc;
src1 = "string" == typeof src1 ? src1 : staticSrc;
var widthInt = getInt(width), heightInt = getInt(height), qualityInt = getInt(quality), isLazy = !priority && ("lazy" === loading || void 0 === loading);
(src.startsWith("data:") || src.startsWith("blob:")) && (unoptimized = !0, isLazy = !1), loadedImageURLs.has(src) && (isLazy = !1);
var arr, ref2 = function(arr) {
(src1.startsWith("data:") || src1.startsWith("blob:")) && (unoptimized = !0, isLazy = !1), loadedImageURLs.has(src1) && (isLazy = !1);
var ref2 = function(arr) {
if (Array.isArray(arr)) return arr;
}(arr = _useIntersection.useIntersection({
rootMargin: void 0 === _lazyBoundary ? "200px" : _lazyBoundary,
@ -1832,7 +1832,7 @@
sizes: void 0
};
isVisible && (imgAttributes = generateImgAttrs({
src: src,
src: src1,
unoptimized: unoptimized,
layout: layout,
width: widthInt,
@ -1840,7 +1840,7 @@
sizes: sizes,
loader: loader
}));
var srcString = src;
var srcString = src1;
return _react.default.createElement("span", {
style: wrapperStyle
}, hasSizer ? _react.default.createElement("span", {
@ -1881,7 +1881,7 @@
},
style: _objectSpread({}, imgStyle, blurStyle)
})), _react.default.createElement("noscript", null, _react.default.createElement("img", Object.assign({}, all, generateImgAttrs({
src: src,
src: src1,
unoptimized: unoptimized,
layout: layout,
width: widthInt,

View File

@ -931,7 +931,7 @@
hooks.updateOffset = function() {};
var aspNetRegex = /^(-|\+)?(?:(\d*)[. ])?(\d+):(\d+)(?::(\d+)(\.\d*)?)?$/, isoRegex = /^(-|\+)?P(?:([-+]?[0-9,.]*)Y)?(?:([-+]?[0-9,.]*)M)?(?:([-+]?[0-9,.]*)W)?(?:([-+]?[0-9,.]*)D)?(?:T(?:([-+]?[0-9,.]*)H)?(?:([-+]?[0-9,.]*)M)?(?:([-+]?[0-9,.]*)S)?)?$/;
function createDuration(input, key) {
var sign, ret, diffRes, base, other, res, duration = input, match = null;
var base, other, res, sign, ret, diffRes, duration = input, match = null;
return isDuration(input) ? duration = {
ms: input._milliseconds,
d: input._days,
@ -1775,7 +1775,7 @@
return absFloor(this.days() / 7);
}, proto$2.months = months, proto$2.years = years, proto$2.humanize = function(argWithSuffix, argThresholds) {
if (!this.isValid()) return this.localeData().invalidDate();
var locale, output, withoutSuffix, thresholds1, duration, seconds, minutes, hours, days, months, weeks, years, a, withSuffix = !1, th = thresholds;
var withoutSuffix, thresholds1, duration, seconds, minutes, hours, days, months, weeks, years, a, locale, output, withSuffix = !1, th = thresholds;
return "object" == typeof argWithSuffix && (argThresholds = argWithSuffix, argWithSuffix = !1), "boolean" == typeof argWithSuffix && (withSuffix = argWithSuffix), "object" == typeof argThresholds && (th = Object.assign({}, thresholds, argThresholds), null != argThresholds.s && null == argThresholds.ss && (th.ss = argThresholds.s - 1)), locale = this.localeData(), withoutSuffix = !withSuffix, thresholds1 = th, duration = createDuration(this).abs(), seconds = round(duration.as("s")), minutes = round(duration.as("m")), hours = round(duration.as("h")), days = round(duration.as("d")), months = round(duration.as("M")), weeks = round(duration.as("w")), years = round(duration.as("y")), a = seconds <= thresholds1.ss && [
"s",
seconds

View File

@ -3178,7 +3178,7 @@
}), __webpack_require__.d(__webpack_exports__, "ResultCollector", function() {
return result_collector;
});
var BarcodeDirection, streamRef, reader_namespaceObject = {};
var BarcodeDirection, BarcodeDirection1, streamRef, reader_namespaceObject = {};
__webpack_require__.r(reader_namespaceObject), __webpack_require__.d(reader_namespaceObject, "BarcodeReader", function() {
return barcode_reader;
}), __webpack_require__.d(reader_namespaceObject, "TwoOfFiveReader", function() {
@ -3262,8 +3262,8 @@
for(i = 0, canvas.width = line.length, ctx.fillColor = "black"; i < line.length; i++)1 === line[i] && ctx.fillRect(i, 0, 1, 100);
}
};
var BarcodeDirection1, image_debug = __webpack_require__(9), classCallCheck = __webpack_require__(3), classCallCheck_default = __webpack_require__.n(classCallCheck), createClass = __webpack_require__(4), createClass_default = __webpack_require__.n(createClass), assertThisInitialized = __webpack_require__(1), assertThisInitialized_default = __webpack_require__.n(assertThisInitialized), inherits = __webpack_require__(6), inherits_default = __webpack_require__.n(inherits), possibleConstructorReturn = __webpack_require__(5), possibleConstructorReturn_default = __webpack_require__.n(possibleConstructorReturn), getPrototypeOf = __webpack_require__(2), getPrototypeOf_default = __webpack_require__.n(getPrototypeOf), defineProperty = __webpack_require__(0), defineProperty_default = __webpack_require__.n(defineProperty), array_helper = __webpack_require__(10);
(BarcodeDirection1 = BarcodeDirection || (BarcodeDirection = {}))[BarcodeDirection1.Forward = 1] = "Forward", BarcodeDirection1[BarcodeDirection1.Reverse = -1] = "Reverse";
var image_debug = __webpack_require__(9), classCallCheck = __webpack_require__(3), classCallCheck_default = __webpack_require__.n(classCallCheck), createClass = __webpack_require__(4), createClass_default = __webpack_require__.n(createClass), assertThisInitialized = __webpack_require__(1), assertThisInitialized_default = __webpack_require__.n(assertThisInitialized), inherits = __webpack_require__(6), inherits_default = __webpack_require__.n(inherits), possibleConstructorReturn = __webpack_require__(5), possibleConstructorReturn_default = __webpack_require__.n(possibleConstructorReturn), getPrototypeOf = __webpack_require__(2), getPrototypeOf_default = __webpack_require__.n(getPrototypeOf), defineProperty = __webpack_require__(0), defineProperty_default = __webpack_require__.n(defineProperty), array_helper = __webpack_require__(10);
(BarcodeDirection = BarcodeDirection1 || (BarcodeDirection1 = {}))[BarcodeDirection.Forward = 1] = "Forward", BarcodeDirection[BarcodeDirection.Reverse = -1] = "Reverse";
var barcode_reader = function() {
function BarcodeReader(config, supplements) {
return classCallCheck_default()(this, BarcodeReader), defineProperty_default()(this, "_row", []), defineProperty_default()(this, "config", {}), defineProperty_default()(this, "supplements", []), defineProperty_default()(this, "SINGLE_CODE_ERROR", 0), defineProperty_default()(this, "FORMAT", "unknown"), defineProperty_default()(this, "CONFIG_KEYS", {}), this._row = [], this.config = config || {}, supplements && (this.supplements = supplements), this;
@ -3309,7 +3309,7 @@
value: function(pattern) {
this._row = pattern;
var result = this.decode();
return null === result ? (this._row.reverse(), (result = this.decode()) && (result.direction = BarcodeDirection.Reverse, result.start = this._row.length - result.start, result.end = this._row.length - result.end)) : result.direction = BarcodeDirection.Forward, result && (result.format = this.FORMAT), result;
return null === result ? (this._row.reverse(), (result = this.decode()) && (result.direction = BarcodeDirection1.Reverse, result.start = this._row.length - result.start, result.end = this._row.length - result.end)) : result.direction = BarcodeDirection1.Forward, result && (result.format = this.FORMAT), result;
}
},
{
@ -6438,7 +6438,7 @@
};
}
function _decodeFromBoundingBox(box) {
var line, result, line1, ctx = _canvas.ctx.overlay;
var line, line1, result, ctx = _canvas.ctx.overlay;
config.debug.drawBoundingBox && ctx && image_debug.a.drawPath(box, {
x: 0,
y: 1
@ -6446,7 +6446,7 @@
color: "blue",
lineWidth: 2
});
var lineLength = Math.sqrt(Math.pow(Math.abs((line1 = line = [
var lineLength = Math.sqrt(Math.pow(Math.abs((line = line1 = [
{
x: (box[1][0] - box[0][0]) / 2 + box[0][0],
y: (box[1][1] - box[0][1]) / 2 + box[0][1]
@ -6455,8 +6455,8 @@
x: (box[3][0] - box[2][0]) / 2 + box[2][0],
y: (box[3][1] - box[2][1]) / 2 + box[2][1]
}
])[1].y - line1[0].y), 2) + Math.pow(Math.abs(line1[1].x - line1[0].x), 2)), lineAngle = Math.atan2(line[1].y - line[0].y, line[1].x - line[0].x);
return null === (line = function(line, angle, ext) {
])[1].y - line[0].y), 2) + Math.pow(Math.abs(line[1].x - line[0].x), 2)), lineAngle = Math.atan2(line1[1].y - line1[0].y, line1[1].x - line1[0].x);
return null === (line1 = function(line, angle, ext) {
function extendLine(amount) {
var extension = {
y: amount * Math.sin(angle),
@ -6466,14 +6466,14 @@
}
for(extendLine(ext); ext > 1 && (!inputImageWrapper.inImageWithBorder(line[0]) || !inputImageWrapper.inImageWithBorder(line[1]));)extendLine(-(ext -= Math.ceil(ext / 2)));
return line;
}(line, lineAngle, Math.floor(0.1 * lineLength))) ? null : (null === (result = tryDecode(line)) && (result = function(box, line, lineAngle) {
}(line1, lineAngle, Math.floor(0.1 * lineLength))) ? null : (null === (result = tryDecode(line1)) && (result = function(box, line, lineAngle) {
var i, dir, extension, sideLength = Math.sqrt(Math.pow(box[1][0] - box[0][0], 2) + Math.pow(box[1][1] - box[0][1], 2)), result = null, xdir = Math.sin(lineAngle), ydir = Math.cos(lineAngle);
for(i = 1; i < 16 && null === result; i++)extension = {
y: (dir = sideLength / 16 * i * (i % 2 == 0 ? -1 : 1)) * xdir,
x: dir * ydir
}, line[0].y += extension.x, line[0].x -= extension.y, line[1].y += extension.x, line[1].x -= extension.y, result = tryDecode(line);
return result;
}(box, line, lineAngle)), null === result) ? null : (result && config.debug.drawScanline && ctx && image_debug.a.drawPath(line, {
}(box, line1, lineAngle)), null === result) ? null : (result && config.debug.drawScanline && ctx && image_debug.a.drawPath(line1, {
x: "x",
y: "y"
}, ctx, {
@ -6481,7 +6481,7 @@
lineWidth: 3
}), {
codeResult: result.codeResult,
line: line,
line: line1,
angle: lineAngle,
pattern: result.barcodeLine.line,
threshold: result.barcodeLine.threshold

View File

@ -95,7 +95,7 @@
}();
}
exports.default = function(_param) {
var sizerSvg, src = _param.src, sizes = _param.sizes, _unoptimized = _param.unoptimized, unoptimized = void 0 !== _unoptimized && _unoptimized, _priority = _param.priority, priority = void 0 !== _priority && _priority, loading = _param.loading, _lazyBoundary = _param.lazyBoundary, className = _param.className, quality = _param.quality, width = _param.width, height = _param.height, objectFit = _param.objectFit, objectPosition = _param.objectPosition, onLoadingComplete = _param.onLoadingComplete, _loader = _param.loader, loader = void 0 === _loader ? defaultImageLoader : _loader, _placeholder = _param.placeholder, placeholder = void 0 === _placeholder ? "empty" : _placeholder, blurDataURL = _param.blurDataURL, all = function(source, excluded) {
var src, arr, sizerSvg, src1 = _param.src, sizes = _param.sizes, _unoptimized = _param.unoptimized, unoptimized = void 0 !== _unoptimized && _unoptimized, _priority = _param.priority, priority = void 0 !== _priority && _priority, loading = _param.loading, _lazyBoundary = _param.lazyBoundary, className = _param.className, quality = _param.quality, width = _param.width, height = _param.height, objectFit = _param.objectFit, objectPosition = _param.objectPosition, onLoadingComplete = _param.onLoadingComplete, _loader = _param.loader, loader = void 0 === _loader ? defaultImageLoader : _loader, _placeholder = _param.placeholder, placeholder = void 0 === _placeholder ? "empty" : _placeholder, blurDataURL = _param.blurDataURL, all = function(source, excluded) {
if (null == source) return {};
var key, i, target = function(source, excluded) {
if (null == source) return {};
@ -127,16 +127,16 @@
"blurDataURL"
]), layout = sizes ? "responsive" : "intrinsic";
"layout" in all && (all.layout && (layout = all.layout), delete all.layout);
var src1, staticSrc = "";
if ("object" == typeof (src1 = src) && (isStaticRequire(src1) || void 0 !== src1.src)) {
var staticImageData = isStaticRequire(src) ? src.default : src;
var staticSrc = "";
if ("object" == typeof (src = src1) && (isStaticRequire(src) || void 0 !== src.src)) {
var staticImageData = isStaticRequire(src1) ? src1.default : src1;
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)));
}
src = "string" == typeof src ? src : staticSrc;
src1 = "string" == typeof src1 ? src1 : staticSrc;
var widthInt = getInt(width), heightInt = getInt(height), qualityInt = getInt(quality), isLazy = !priority && ("lazy" === loading || void 0 === loading);
(src.startsWith("data:") || src.startsWith("blob:")) && (unoptimized = !0, isLazy = !1), loadedImageURLs.has(src) && (isLazy = !1);
var arr, ref2 = function(arr) {
(src1.startsWith("data:") || src1.startsWith("blob:")) && (unoptimized = !0, isLazy = !1), loadedImageURLs.has(src1) && (isLazy = !1);
var ref2 = function(arr) {
if (Array.isArray(arr)) return arr;
}(arr = _useIntersection.useIntersection({
rootMargin: void 0 === _lazyBoundary ? "200px" : _lazyBoundary,
@ -214,7 +214,7 @@
sizes: void 0
};
isVisible && (imgAttributes = generateImgAttrs({
src: src,
src: src1,
unoptimized: unoptimized,
layout: layout,
width: widthInt,
@ -222,7 +222,7 @@
sizes: sizes,
loader: loader
}));
var srcString = src;
var srcString = src1;
return _react.default.createElement("span", {
style: wrapperStyle
}, hasSizer ? _react.default.createElement("span", {
@ -263,7 +263,7 @@
},
style: _objectSpread({}, imgStyle, blurStyle)
})), _react.default.createElement("noscript", null, _react.default.createElement("img", Object.assign({}, all, generateImgAttrs({
src: src,
src: src1,
unoptimized: unoptimized,
layout: layout,
width: widthInt,

View File

@ -24,7 +24,7 @@ var _obj, isMultiIndexContext = function(widget) {
return isFirstWidgetIndex && !isSecondWidgetIndex ? -1 : !isFirstWidgetIndex && isSecondWidgetIndex ? 1 : 0;
};
export default function createInstantSearchManager(param) {
var indexName = param.indexName, _initialState = param.initialState, searchClient = param.searchClient, resultsState = param.resultsState, stalledSearchDelay = param.stalledSearchDelay, skipSearch = function() {
var state, listeners, indexName = param.indexName, _initialState = param.initialState, searchClient = param.searchClient, resultsState = param.resultsState, stalledSearchDelay = param.stalledSearchDelay, skipSearch = function() {
skip = !0;
}, updateClient = function(client) {
addAlgoliaAgents(client), helper.setClient(client), search();
@ -235,7 +235,7 @@ export default function createInstantSearchManager(param) {
addAlgoliaAgents(searchClient), helper.on("search", handleNewSearch).on("result", handleSearchSuccess({
indexId: indexName
})).on("error", handleSearchError);
var state, listeners, skip = !1, stalledSearchTimer = null, initialSearchParameters = helper.state, widgetsManager = createWidgetsManager(onWidgetsUpdate);
var skip = !1, stalledSearchTimer = null, initialSearchParameters = helper.state, widgetsManager = createWidgetsManager(onWidgetsUpdate);
!function(client, results) {
if (results && (client.transporter && !client._cacheHydrated || client._useCache && "function" == typeof client.addAlgoliaAgent)) {
if (client.transporter && !client._cacheHydrated) {

View File

@ -207,7 +207,7 @@ var ts;
case 271:
return function(node) {
if (node.moduleSpecifier) {
var generatedName = factory.getGeneratedNameForNode(node);
var innerExpr, generatedName = factory.getGeneratedNameForNode(node);
if (node.exportClause && ts.isNamedExports(node.exportClause)) {
var statements = [];
moduleKind !== ts.ModuleKind.AMD && statements.push(ts.setOriginalNode(ts.setTextRange(factory.createVariableStatement(void 0, factory.createVariableDeclarationList([
@ -224,7 +224,7 @@ var ts;
return ts.singleOrMany(statements);
}
if (!node.exportClause) return ts.setOriginalNode(ts.setTextRange(factory.createExpressionStatement(emitHelpers().createExportStarHelper(moduleKind !== ts.ModuleKind.AMD ? createRequireCall(node) : generatedName)), node), node);
var innerExpr, statements = [];
var statements = [];
return statements.push(ts.setOriginalNode(ts.setTextRange(factory.createExpressionStatement(createExportExpression(factory.cloneNode(node.exportClause.name), (innerExpr = moduleKind !== ts.ModuleKind.AMD ? createRequireCall(node) : ts.isExportNamespaceAsDefaultDeclaration(node) ? generatedName : factory.createIdentifier(ts.idText(node.exportClause.name)), !ts.getESModuleInterop(compilerOptions) || 67108864 & ts.getEmitFlags(node) ? innerExpr : ts.getExportNeedsImportStarHelper(node) ? emitHelpers().createImportStarHelper(innerExpr) : innerExpr))), node), node)), ts.singleOrMany(statements);
}
}(node);

View File

@ -969,7 +969,7 @@
}
if (view.domObserver.disconnectSelection(), view.cursorWrapper) domSel = (view1 = view).root.getSelection(), range = document.createRange(), (img = "IMG" == (node = view1.cursorWrapper.dom).nodeName) ? range.setEnd(node.parentNode, domIndex(node) + 1) : range.setEnd(node, 0), range.collapse(!1), domSel.removeAllRanges(), domSel.addRange(range), !img && !view1.state.selection.visible && result.ie && result.ie_version <= 11 && (node.disabled = !0, node.disabled = !1);
else {
var view1, domSel, range, node, img, resetEditableFrom, resetEditableTo, view2, doc, domSel1, node1, offset, anchor = sel.anchor, head = sel.head;
var view1, domSel, range, node, img, view2, doc, domSel1, node1, offset, resetEditableFrom, resetEditableTo, anchor = sel.anchor, head = sel.head;
!brokenSelectBetweenUneditable || sel instanceof prosemirror_state__WEBPACK_IMPORTED_MODULE_0__.TextSelection || (sel.$from.parent.inlineContent || (resetEditableFrom = temporarilyEditableNear(view, sel.from)), sel.empty || sel.$from.parent.inlineContent || (resetEditableTo = temporarilyEditableNear(view, sel.to))), view.docView.setSelection(anchor, head, view.root, force), brokenSelectBetweenUneditable && (resetEditableFrom && resetEditable(resetEditableFrom), resetEditableTo && resetEditable(resetEditableTo)), sel.visible ? view.dom.classList.remove("ProseMirror-hideselection") : (view.dom.classList.add("ProseMirror-hideselection"), "onselectionchange" in document && ((doc = (view2 = view).dom.ownerDocument).removeEventListener("selectionchange", view2.hideSelectionGuard), node1 = (domSel1 = view2.root.getSelection()).anchorNode, offset = domSel1.anchorOffset, doc.addEventListener("selectionchange", view2.hideSelectionGuard = function() {
(domSel1.anchorNode != node1 || domSel1.anchorOffset != offset) && (doc.removeEventListener("selectionchange", view2.hideSelectionGuard), setTimeout(function() {
(!editorOwnsSelection(view2) || view2.state.selection.visible) && view2.dom.classList.remove("ProseMirror-hideselection");

View File

@ -5,7 +5,7 @@
],
{
5215: function(__unused_webpack_module, __webpack_exports__, __webpack_require__) {
for(var browserApi, videojs$1, FakeWeakMap, _supportsPassive, EVENT_MAP, canPlayType, Vhs$1, global_window__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(8908), global_window__WEBPACK_IMPORTED_MODULE_0___default = __webpack_require__.n(global_window__WEBPACK_IMPORTED_MODULE_0__), global_document__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(9144), global_document__WEBPACK_IMPORTED_MODULE_1___default = __webpack_require__.n(global_document__WEBPACK_IMPORTED_MODULE_1__), _babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_15__ = __webpack_require__(7462), _babel_runtime_helpers_assertThisInitialized__WEBPACK_IMPORTED_MODULE_17__ = __webpack_require__(7326), _babel_runtime_helpers_inheritsLoose__WEBPACK_IMPORTED_MODULE_16__ = __webpack_require__(4578), safe_json_parse_tuple__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(5974), safe_json_parse_tuple__WEBPACK_IMPORTED_MODULE_2___default = __webpack_require__.n(safe_json_parse_tuple__WEBPACK_IMPORTED_MODULE_2__), keycode__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(7537), keycode__WEBPACK_IMPORTED_MODULE_3___default = __webpack_require__.n(keycode__WEBPACK_IMPORTED_MODULE_3__), _videojs_xhr__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(9603), _videojs_xhr__WEBPACK_IMPORTED_MODULE_4___default = __webpack_require__.n(_videojs_xhr__WEBPACK_IMPORTED_MODULE_4__), videojs_vtt_js__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(3407), videojs_vtt_js__WEBPACK_IMPORTED_MODULE_5___default = __webpack_require__.n(videojs_vtt_js__WEBPACK_IMPORTED_MODULE_5__), _babel_runtime_helpers_construct__WEBPACK_IMPORTED_MODULE_18__ = __webpack_require__(8852), _babel_runtime_helpers_inherits__WEBPACK_IMPORTED_MODULE_19__ = __webpack_require__(136), _videojs_vhs_utils_es_resolve_url_js__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(779), m3u8_parser__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(9323), _videojs_vhs_utils_es_codecs_js__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(2260), _videojs_vhs_utils_es_media_types_js__WEBPACK_IMPORTED_MODULE_20__ = __webpack_require__(8485), mpd_parser__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__(973), mux_js_lib_tools_parse_sidx__WEBPACK_IMPORTED_MODULE_10__ = __webpack_require__(4221), mux_js_lib_tools_parse_sidx__WEBPACK_IMPORTED_MODULE_10___default = __webpack_require__.n(mux_js_lib_tools_parse_sidx__WEBPACK_IMPORTED_MODULE_10__), _videojs_vhs_utils_es_id3_helpers__WEBPACK_IMPORTED_MODULE_11__ = __webpack_require__(8925), _videojs_vhs_utils_es_containers__WEBPACK_IMPORTED_MODULE_12__ = __webpack_require__(6185), _videojs_vhs_utils_es_byte_helpers__WEBPACK_IMPORTED_MODULE_13__ = __webpack_require__(562), mux_js_lib_utils_clock__WEBPACK_IMPORTED_MODULE_14__ = __webpack_require__(1489), version$5 = "7.17.0", hooks_ = {}, hooks = function(type, fn) {
for(var match, match1, result, version, browserApi, videojs$1, FakeWeakMap, _supportsPassive, EVENT_MAP, canPlayType, Vhs$1, global_window__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(8908), global_window__WEBPACK_IMPORTED_MODULE_0___default = __webpack_require__.n(global_window__WEBPACK_IMPORTED_MODULE_0__), global_document__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(9144), global_document__WEBPACK_IMPORTED_MODULE_1___default = __webpack_require__.n(global_document__WEBPACK_IMPORTED_MODULE_1__), _babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_15__ = __webpack_require__(7462), _babel_runtime_helpers_assertThisInitialized__WEBPACK_IMPORTED_MODULE_17__ = __webpack_require__(7326), _babel_runtime_helpers_inheritsLoose__WEBPACK_IMPORTED_MODULE_16__ = __webpack_require__(4578), safe_json_parse_tuple__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(5974), safe_json_parse_tuple__WEBPACK_IMPORTED_MODULE_2___default = __webpack_require__.n(safe_json_parse_tuple__WEBPACK_IMPORTED_MODULE_2__), keycode__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(7537), keycode__WEBPACK_IMPORTED_MODULE_3___default = __webpack_require__.n(keycode__WEBPACK_IMPORTED_MODULE_3__), _videojs_xhr__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(9603), _videojs_xhr__WEBPACK_IMPORTED_MODULE_4___default = __webpack_require__.n(_videojs_xhr__WEBPACK_IMPORTED_MODULE_4__), videojs_vtt_js__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(3407), videojs_vtt_js__WEBPACK_IMPORTED_MODULE_5___default = __webpack_require__.n(videojs_vtt_js__WEBPACK_IMPORTED_MODULE_5__), _babel_runtime_helpers_construct__WEBPACK_IMPORTED_MODULE_18__ = __webpack_require__(8852), _babel_runtime_helpers_inherits__WEBPACK_IMPORTED_MODULE_19__ = __webpack_require__(136), _videojs_vhs_utils_es_resolve_url_js__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(779), m3u8_parser__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(9323), _videojs_vhs_utils_es_codecs_js__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(2260), _videojs_vhs_utils_es_media_types_js__WEBPACK_IMPORTED_MODULE_20__ = __webpack_require__(8485), mpd_parser__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__(973), mux_js_lib_tools_parse_sidx__WEBPACK_IMPORTED_MODULE_10__ = __webpack_require__(4221), mux_js_lib_tools_parse_sidx__WEBPACK_IMPORTED_MODULE_10___default = __webpack_require__.n(mux_js_lib_tools_parse_sidx__WEBPACK_IMPORTED_MODULE_10__), _videojs_vhs_utils_es_id3_helpers__WEBPACK_IMPORTED_MODULE_11__ = __webpack_require__(8925), _videojs_vhs_utils_es_containers__WEBPACK_IMPORTED_MODULE_12__ = __webpack_require__(6185), _videojs_vhs_utils_es_byte_helpers__WEBPACK_IMPORTED_MODULE_13__ = __webpack_require__(562), mux_js_lib_utils_clock__WEBPACK_IMPORTED_MODULE_14__ = __webpack_require__(1489), version$5 = "7.17.0", hooks_ = {}, hooks = function(type, fn) {
return hooks_[type] = hooks_[type] || [], fn && (hooks_[type] = hooks_[type].concat(fn)), hooks_[type];
}, hook = function(type, fn) {
hooks(type, fn);
@ -156,7 +156,7 @@
}
return "";
}
var match, match1, result, version, USER_AGENT = global_window__WEBPACK_IMPORTED_MODULE_0___default().navigator && global_window__WEBPACK_IMPORTED_MODULE_0___default().navigator.userAgent || "", webkitVersionMap = /AppleWebKit\/([\d.]+)/i.exec(USER_AGENT), appleWebkitVersion = webkitVersionMap ? parseFloat(webkitVersionMap.pop()) : null, IS_IPOD = /iPod/i.test(USER_AGENT), IOS_VERSION = (match = USER_AGENT.match(/OS (\d+)_/i)) && match[1] ? match[1] : null, IS_ANDROID = /Android/i.test(USER_AGENT), ANDROID_VERSION = function() {
var USER_AGENT = global_window__WEBPACK_IMPORTED_MODULE_0___default().navigator && global_window__WEBPACK_IMPORTED_MODULE_0___default().navigator.userAgent || "", webkitVersionMap = /AppleWebKit\/([\d.]+)/i.exec(USER_AGENT), appleWebkitVersion = webkitVersionMap ? parseFloat(webkitVersionMap.pop()) : null, IS_IPOD = /iPod/i.test(USER_AGENT), IOS_VERSION = (match = USER_AGENT.match(/OS (\d+)_/i)) && match[1] ? match[1] : null, IS_ANDROID = /Android/i.test(USER_AGENT), ANDROID_VERSION = function() {
var match = USER_AGENT.match(/Android (\d+)(?:\.(\d+))?(?:\.(\d+))*/i);
if (!match) return null;
var major = match[1] && parseFloat(match[1]), minor = match[2] && parseFloat(match[2]);
@ -4568,14 +4568,14 @@
for(var descriptor = {}, i = 0; i < priority.length && (!(descriptor = Object.getOwnPropertyDescriptor(priority[i], prop)) || !descriptor.set || !descriptor.get); i++);
return descriptor.enumerable = !0, descriptor.configurable = !0, descriptor;
}, firstSourceWatch = function(tech) {
var el = tech.el();
var tech1, el = tech.el();
if (!el.resetSourceWatch_) {
var old = {}, innerDescriptor = getDescriptor([
tech.el(),
var old = {}, innerDescriptor = (tech1 = tech, getDescriptor([
tech1.el(),
global_window__WEBPACK_IMPORTED_MODULE_0___default().HTMLMediaElement.prototype,
global_window__WEBPACK_IMPORTED_MODULE_0___default().Element.prototype,
innerHTMLDescriptorPolyfill
], "innerHTML"), appendWrapper = function(appendFn) {
], "innerHTML")), appendWrapper = function(appendFn) {
return function() {
for(var _len = arguments.length, args = Array(_len), _key = 0; _key < _len; _key++)args[_key] = arguments[_key];
var retval = appendFn.apply(el, args);
@ -4605,13 +4605,13 @@
}
}), setupSourceset = function(tech) {
if (tech.featuresSourceset) {
var el = tech.el();
var tech1, el = tech.el();
if (!el.resetSourceset_) {
var srcDescriptor = getDescriptor([
tech.el(),
var srcDescriptor = (tech1 = tech, getDescriptor([
tech1.el(),
global_window__WEBPACK_IMPORTED_MODULE_0___default().HTMLMediaElement.prototype,
srcDescriptorPolyfill
], "src"), oldSetAttribute = el.setAttribute, oldLoad = el.load;
], "src")), oldSetAttribute = el.setAttribute, oldLoad = el.load;
Object.defineProperty(el, "src", mergeOptions$3(srcDescriptor, {
set: function(v) {
var retval = srcDescriptor.set.call(el, v);
@ -7169,10 +7169,10 @@
return null;
}
if (!playlist || !playlist.segments || 0 === playlist.segments.length) return null;
var dateTimeObject, segment = playlist.segments[0];
var videoTimingInfo, dateTimeObject, segment = playlist.segments[0];
if (dateTimeObject < segment.dateTimeObject) return null;
for(var i = 0; i < playlist.segments.length - 1 && (segment = playlist.segments[i], !(dateTimeObject < playlist.segments[i + 1].dateTimeObject)); i++);
var videoTimingInfo, lastSegment = playlist.segments[playlist.segments.length - 1], lastSegmentStart = lastSegment.dateTimeObject, lastSegmentDuration = lastSegment.videoTimingInfo ? (videoTimingInfo = lastSegment.videoTimingInfo).transmuxedPresentationEnd - videoTimingInfo.transmuxedPresentationStart - videoTimingInfo.transmuxerPrependedSeconds : lastSegment.duration + 0.25 * lastSegment.duration, lastSegmentEnd = new Date(lastSegmentStart.getTime() + 1000 * lastSegmentDuration);
var lastSegment = playlist.segments[playlist.segments.length - 1], lastSegmentStart = lastSegment.dateTimeObject, lastSegmentDuration = lastSegment.videoTimingInfo ? (videoTimingInfo = lastSegment.videoTimingInfo).transmuxedPresentationEnd - videoTimingInfo.transmuxedPresentationStart - videoTimingInfo.transmuxerPrependedSeconds : lastSegment.duration + 0.25 * lastSegment.duration, lastSegmentEnd = new Date(lastSegmentStart.getTime() + 1000 * lastSegmentDuration);
return dateTimeObject > lastSegmentEnd ? null : (dateTimeObject > lastSegmentStart && (segment = lastSegment), {
segment: segment,
estimatedStart: segment.videoTimingInfo ? segment.videoTimingInfo.transmuxedPresentationStart : Playlist.duration(playlist, playlist.mediaSequence + playlist.segments.indexOf(segment)),
@ -7586,7 +7586,7 @@
}, getWorkerString = function(fn) {
return fn.toString().replace(/^function.+?{/, "").slice(0, -1);
}, workerCode$1 = transform(getWorkerString(function() {
var _TransportPacketStream, _TransportParseStream, _ElementaryStream, _AdtsStream, ExpGolomb, _H264Stream, _NalByteStream, PROFILES_WITH_OPTIONAL_SPS_DATA, _AacStream, _VideoSegmentStream, _AudioSegmentStream, _Transmuxer, _CoalesceStream, timescale, startTime, compositionStartTime, getVideoTrackIds, getTracks, getTimescaleFromMediaHeader, videoSample, audioSample, audioTrun, videoTrun, trunHeader, Stream = function() {
var _TransportPacketStream, _TransportParseStream, _ElementaryStream, _AdtsStream, ExpGolomb, _H264Stream, _NalByteStream, PROFILES_WITH_OPTIONAL_SPS_DATA, _AacStream, _VideoSegmentStream, _AudioSegmentStream, _Transmuxer, _CoalesceStream, timescale, startTime, compositionStartTime, getVideoTrackIds, getTracks, getTimescaleFromMediaHeader, Stream = function() {
this.init = function() {
var listeners = {};
this.on = function(type, listener) {
@ -8408,7 +8408,7 @@
}, trun$1 = function(track, offset) {
return "audio" === track.type ? audioTrun(track, offset) : videoTrun(track, offset);
};
var box, dinf, esds, ftyp, mdat, mfhd, minf, moof, moov, mvex, mvhd, trak, tkhd, mdia, mdhd, hdlr, sdtp, stbl, stsd, traf, trex, trun$1, types, MAJOR_BRAND, MINOR_VERSION, AVC1_BRAND, VIDEO_HDLR, AUDIO_HDLR, HDLR_TYPES, VMHD, SMHD, DREF, STCO, STSC, STSZ, STTS, silence, secondsToVideoTs, secondsToAudioTs, videoTsToSeconds, audioTsToSeconds, audioTsToVideoTs, videoTsToAudioTs, metadataTsToSeconds, mp4Generator = {
var mp4Generator = {
ftyp: ftyp,
mdat: mdat,
moof: moof,
@ -9319,7 +9319,7 @@
};
};
TimestampRolloverStream$1.prototype = new Stream();
var _MetadataStream, timestampRolloverStream = {
var videoSample, audioSample, audioTrun, videoTrun, trunHeader, box, dinf, esds, ftyp, mdat, mfhd, minf, moof, moov, mvex, mvhd, trak, tkhd, mdia, mdhd, hdlr, sdtp, stbl, stsd, traf, trex, trun$1, types, MAJOR_BRAND, MINOR_VERSION, AVC1_BRAND, VIDEO_HDLR, AUDIO_HDLR, HDLR_TYPES, VMHD, SMHD, DREF, STCO, STSC, STSZ, STTS, silence, secondsToVideoTs, secondsToAudioTs, videoTsToSeconds, audioTsToSeconds, audioTsToVideoTs, videoTsToAudioTs, metadataTsToSeconds, _MetadataStream, timestampRolloverStream = {
TimestampRolloverStream: TimestampRolloverStream$1,
handleRollover: handleRollover$1
}, percentEncode$1 = function(bytes, start, end) {
@ -14690,9 +14690,9 @@
for(var keySystem in keySystemOptions)keySystemContentTypes[keySystem] = {}, audioContentType && (keySystemContentTypes[keySystem].audioContentType = audioContentType), videoContentType && (keySystemContentTypes[keySystem].videoContentType = videoContentType), mainPlaylist.contentProtection && mainPlaylist.contentProtection[keySystem] && mainPlaylist.contentProtection[keySystem].pssh && (keySystemContentTypes[keySystem].pssh = mainPlaylist.contentProtection[keySystem].pssh), "string" == typeof keySystemOptions[keySystem] && (keySystemContentTypes[keySystem].url = keySystemOptions[keySystem]);
return videojs.mergeOptions(keySystemOptions, keySystemContentTypes);
}, waitForKeySessionCreation = function(_ref) {
var player = _ref.player, sourceKeySystems = _ref.sourceKeySystems, audioMedia = _ref.audioMedia, mainPlaylists = _ref.mainPlaylists;
var playlists, keySystems, player = _ref.player, sourceKeySystems = _ref.sourceKeySystems, audioMedia = _ref.audioMedia, mainPlaylists = _ref.mainPlaylists;
if (!player.eme.initializeMediaKeys) return Promise.resolve();
var playlists, keySystems, keySystemsOptionsArr = (playlists = audioMedia ? mainPlaylists.concat([
var keySystemsOptionsArr = (playlists = audioMedia ? mainPlaylists.concat([
audioMedia
]) : mainPlaylists, keySystems = Object.keys(sourceKeySystems), playlists.reduce(function(keySystemsArr, playlist) {
if (!playlist.contentProtection) return keySystemsArr;

View File

@ -3495,9 +3495,9 @@
"number" == typeof period.attributes.duration && (periodAttributes.periodDuration = period.attributes.duration);
var adaptationSets = findChildren(period.node, "AdaptationSet"), periodSegmentInfo = getSegmentInformation(period.node);
return flatten(adaptationSets.map(function(adaptationSet) {
var service, adaptationSetAttributes = parseAttributes(adaptationSet), adaptationSetBaseUrls = buildBaseUrls(periodBaseUrls, findChildren(adaptationSet, "BaseURL")), role = findChildren(adaptationSet, "Role")[0], roleAttributes = {
var service, adaptationSetAttributes, adaptationSetAttributes1 = parseAttributes(adaptationSet), adaptationSetBaseUrls = buildBaseUrls(periodBaseUrls, findChildren(adaptationSet, "BaseURL")), role = findChildren(adaptationSet, "Role")[0], roleAttributes = {
role: parseAttributes(role)
}, attrs = merge(periodAttributes, adaptationSetAttributes, roleAttributes), accessibility = findChildren(adaptationSet, "Accessibility")[0], captionServices = "urn:scte:dash:cc:cea-608:2015" === (service = parseAttributes(accessibility)).schemeIdUri ? ("string" != typeof service.value ? [] : service.value.split(";")).map(function(value) {
}, attrs = merge(periodAttributes, adaptationSetAttributes1, roleAttributes), accessibility = findChildren(adaptationSet, "Accessibility")[0], captionServices = "urn:scte:dash:cc:cea-608:2015" === (service = parseAttributes(accessibility)).schemeIdUri ? ("string" != typeof service.value ? [] : service.value.split(";")).map(function(value) {
if (language = value, /^CC\d=/.test(value)) {
var channel, language, _value$split = value.split("=");
channel = _value$split[0], language = _value$split[1];
@ -3547,9 +3547,9 @@
Object.keys(contentProtection).length && (attrs = merge(attrs, {
contentProtection: contentProtection
}));
var adaptationSetAttributes1, segmentInfo = getSegmentInformation(adaptationSet), representations = findChildren(adaptationSet, "Representation"), adaptationSetSegmentInfo = merge(periodSegmentInfo, segmentInfo);
return flatten(representations.map((adaptationSetAttributes1 = attrs, function(representation) {
var repBaseUrlElements = findChildren(representation, "BaseURL"), repBaseUrls = buildBaseUrls(adaptationSetBaseUrls, repBaseUrlElements), attributes = merge(adaptationSetAttributes1, parseAttributes(representation)), representationSegmentInfo = getSegmentInformation(representation);
var segmentInfo = getSegmentInformation(adaptationSet), representations = findChildren(adaptationSet, "Representation"), adaptationSetSegmentInfo = merge(periodSegmentInfo, segmentInfo);
return flatten(representations.map((adaptationSetAttributes = attrs, function(representation) {
var repBaseUrlElements = findChildren(representation, "BaseURL"), repBaseUrls = buildBaseUrls(adaptationSetBaseUrls, repBaseUrlElements), attributes = merge(adaptationSetAttributes, parseAttributes(representation)), representationSegmentInfo = getSegmentInformation(representation);
return repBaseUrls.map(function(baseUrl) {
return {
segmentInfo: merge(adaptationSetSegmentInfo, representationSegmentInfo),

View File

@ -31,7 +31,7 @@
Object.defineProperty(exports, "__esModule", {
value: !0
}), exports.default = function(_param) {
var sizerSvgUrl, _obj, src = _param.src, sizes = _param.sizes, _unoptimized = _param.unoptimized, unoptimized = void 0 !== _unoptimized && _unoptimized, _priority = _param.priority, priority = void 0 !== _priority && _priority, loading = _param.loading, _lazyRoot = _param.lazyRoot, lazyBoundary = _param.lazyBoundary, className = _param.className, quality = _param.quality, width = _param.width, height = _param.height, style = _param.style, objectFit = _param.objectFit, objectPosition = _param.objectPosition, onLoadingComplete = _param.onLoadingComplete, _placeholder = _param.placeholder, placeholder = void 0 === _placeholder ? "empty" : _placeholder, blurDataURL = _param.blurDataURL, all = _object_without_properties_loose(_param, [
var src, sizerSvgUrl, _obj, src1 = _param.src, sizes = _param.sizes, _unoptimized = _param.unoptimized, unoptimized = void 0 !== _unoptimized && _unoptimized, _priority = _param.priority, priority = void 0 !== _priority && _priority, loading = _param.loading, _lazyRoot = _param.lazyRoot, lazyBoundary = _param.lazyBoundary, className = _param.className, quality = _param.quality, width = _param.width, height = _param.height, style = _param.style, objectFit = _param.objectFit, objectPosition = _param.objectPosition, onLoadingComplete = _param.onLoadingComplete, _placeholder = _param.placeholder, placeholder = void 0 === _placeholder ? "empty" : _placeholder, blurDataURL = _param.blurDataURL, all = _object_without_properties_loose(_param, [
"src",
"sizes",
"unoptimized",
@ -77,15 +77,15 @@
}
delete all.loader;
}
var src1, staticSrc = "";
if ("object" == typeof (src1 = src) && (isStaticRequire(src1) || void 0 !== src1.src)) {
var staticImageData = isStaticRequire(src) ? src.default : src;
var staticSrc = "";
if ("object" == typeof (src = src1) && (isStaticRequire(src) || void 0 !== src.src)) {
var staticImageData = isStaticRequire(src1) ? src1.default : src1;
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)));
}
src = "string" == typeof src ? src : staticSrc;
src1 = "string" == typeof src1 ? src1 : staticSrc;
var isLazy = !priority && ("lazy" === loading || void 0 === loading);
(src.startsWith("data:") || src.startsWith("blob:")) && (unoptimized = !0, isLazy = !1), loadedImageURLs.has(src) && (isLazy = !1), experimentalUnoptimized && (unoptimized = !0);
(src1.startsWith("data:") || src1.startsWith("blob:")) && (unoptimized = !0, isLazy = !1), loadedImageURLs.has(src1) && (isLazy = !1), experimentalUnoptimized && (unoptimized = !0);
var ref = _slicedToArray(_react.useState(!1), 2), blurComplete = ref[0], setBlurComplete = ref[1], ref1 = _slicedToArray(_useIntersection.useIntersection({
rootRef: void 0 === _lazyRoot ? null : _lazyRoot,
rootMargin: lazyBoundary || "200px",
@ -148,7 +148,7 @@
};
isVisible && (imgAttributes = generateImgAttrs({
config: config,
src: src,
src: src1,
unoptimized: unoptimized,
layout: layout,
width: widthInt,
@ -156,18 +156,18 @@
sizes: sizes,
loader: loader
}));
var srcString = src, imageSizesPropName = "imagesizes";
var srcString = src1, imageSizesPropName = "imagesizes";
imageSizesPropName = "imageSizes";
var linkProps = (_defineProperty(_obj = {}, "imageSrcSet", imgAttributes.srcSet), _defineProperty(_obj, imageSizesPropName, imgAttributes.sizes), _obj), useLayoutEffect = _react.default.useLayoutEffect, onLoadingCompleteRef = _react.useRef(onLoadingComplete), previousImageSrc = _react.useRef(src);
var linkProps = (_defineProperty(_obj = {}, "imageSrcSet", imgAttributes.srcSet), _defineProperty(_obj, imageSizesPropName, imgAttributes.sizes), _obj), useLayoutEffect = _react.default.useLayoutEffect, onLoadingCompleteRef = _react.useRef(onLoadingComplete), previousImageSrc = _react.useRef(src1);
_react.useEffect(function() {
onLoadingCompleteRef.current = onLoadingComplete;
}, [
onLoadingComplete
]), useLayoutEffect(function() {
previousImageSrc.current !== src && (resetIntersected(), previousImageSrc.current = src);
previousImageSrc.current !== src1 && (resetIntersected(), previousImageSrc.current = src1);
}, [
resetIntersected,
src
src1
]);
var imgElementArgs = _extends({
isLazy: isLazy,

File diff suppressed because one or more lines are too long

View File

@ -2,7 +2,7 @@
"object" == typeof exports && "undefined" != typeof module ? module.exports = factory() : "function" == typeof define && define.amd ? define(factory) : (global = global || self).CodeMirror = factory();
}(this, function() {
"use strict";
var CodeMirror, optionHandlers, helpers, CodeMirror1, range, zwspSupported, badBidiRects, measureText, lastClick, lastDoubleClick, userAgent = navigator.userAgent, platform = navigator.platform, gecko = /gecko\/\d/i.test(userAgent), ie_upto10 = /MSIE \d/.test(userAgent), ie_11up = /Trident\/(?:[7-9]|\d{2,})\..*rv:(\d+)/.exec(userAgent), edge = /Edge\/(\d+)/.exec(userAgent), ie = ie_upto10 || ie_11up || edge, ie_version = ie && (ie_upto10 ? document.documentMode || 6 : +(edge || ie_11up)[1]), webkit = !edge && /WebKit\//.test(userAgent), qtwebkit = webkit && /Qt\/\d+\.\d+/.test(userAgent), chrome = !edge && /Chrome\//.test(userAgent), presto = /Opera\//.test(userAgent), safari = /Apple Computer/.test(navigator.vendor), mac_geMountainLion = /Mac OS X 1\d\D([8-9]|\d\d)\D/.test(userAgent), phantom = /PhantomJS/.test(userAgent), ios = safari && (/Mobile\/\w+/.test(userAgent) || navigator.maxTouchPoints > 2), android = /Android/.test(userAgent), mobile = ios || android || /webOS|BlackBerry|Opera Mini|Opera Mobi|IEMobile/i.test(userAgent), mac = ios || /Mac/.test(platform), chromeOS = /\bCrOS\b/.test(userAgent), windows = /win/i.test(platform), presto_version = presto && userAgent.match(/Version\/(\d*\.\d*)/);
var e, CodeMirror, optionHandlers, helpers, CodeMirror1, range, zwspSupported, badBidiRects, measureText, lastClick, lastDoubleClick, userAgent = navigator.userAgent, platform = navigator.platform, gecko = /gecko\/\d/i.test(userAgent), ie_upto10 = /MSIE \d/.test(userAgent), ie_11up = /Trident\/(?:[7-9]|\d{2,})\..*rv:(\d+)/.exec(userAgent), edge = /Edge\/(\d+)/.exec(userAgent), ie = ie_upto10 || ie_11up || edge, ie_version = ie && (ie_upto10 ? document.documentMode || 6 : +(edge || ie_11up)[1]), webkit = !edge && /WebKit\//.test(userAgent), qtwebkit = webkit && /Qt\/\d+\.\d+/.test(userAgent), chrome = !edge && /Chrome\//.test(userAgent), presto = /Opera\//.test(userAgent), safari = /Apple Computer/.test(navigator.vendor), mac_geMountainLion = /Mac OS X 1\d\D([8-9]|\d\d)\D/.test(userAgent), phantom = /PhantomJS/.test(userAgent), ios = safari && (/Mobile\/\w+/.test(userAgent) || navigator.maxTouchPoints > 2), android = /Android/.test(userAgent), mobile = ios || android || /webOS|BlackBerry|Opera Mini|Opera Mobi|IEMobile/i.test(userAgent), mac = ios || /Mac/.test(platform), chromeOS = /\bCrOS\b/.test(userAgent), windows = /win/i.test(platform), presto_version = presto && userAgent.match(/Version\/(\d*\.\d*)/);
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) {
@ -340,7 +340,7 @@
var txt = removeChildrenAndAdd(measure, document.createTextNode("A\u062eA")), r0 = range(txt, 0, 1).getBoundingClientRect(), r1 = range(txt, 1, 2).getBoundingClientRect();
return removeChildren(measure), !!r0 && r0.left != r0.right && (badBidiRects = r1.right - r0.right < 3);
}
var e, splitLinesAuto = 3 != "\n\nb".split(/\n/).length ? function(string) {
var splitLinesAuto = 3 != "\n\nb".split(/\n/).length ? function(string) {
for(var pos = 0, result = [], l = string.length; pos <= l;){
var nl = string.indexOf("\n", pos);
-1 == nl && (nl = string.length);
@ -2081,16 +2081,16 @@
this.viewport = viewport, this.visible = visibleLines(display, cm.doc, viewport), this.editorIsHidden = !display.wrapper.offsetWidth, this.wrapperHeight = display.wrapper.clientHeight, this.wrapperWidth = display.wrapper.clientWidth, this.oldDisplayWidth = displayWidth(cm), this.force = force, this.dims = getDimensions(cm), this.events = [];
};
function updateDisplayIfNeeded(cm, update) {
var display = cm.display, doc = cm.doc;
var from, to, display, display1 = cm.display, doc = cm.doc;
if (update.editorIsHidden) return resetView(cm), !1;
if (!update.force && update.visible.from >= display.viewFrom && update.visible.to <= display.viewTo && (null == display.updateLineNumbers || display.updateLineNumbers >= display.viewTo) && display.renderedView == display.view && 0 == countDirtyView(cm)) return !1;
if (!update.force && update.visible.from >= display1.viewFrom && update.visible.to <= display1.viewTo && (null == display1.updateLineNumbers || display1.updateLineNumbers >= display1.viewTo) && display1.renderedView == display1.view && 0 == countDirtyView(cm)) return !1;
maybeUpdateLineNumberWidth(cm) && (resetView(cm), update.dims = getDimensions(cm));
var end = doc.first + doc.size, from = Math.max(update.visible.from - cm.options.viewportMargin, doc.first), to = Math.min(end, update.visible.to + cm.options.viewportMargin);
display.viewFrom < from && from - display.viewFrom < 20 && (from = Math.max(doc.first, display.viewFrom)), display.viewTo > to && display.viewTo - to < 20 && (to = Math.min(end, display.viewTo)), sawCollapsedSpans && (from = visualLineNo(cm.doc, from), to = visualLineEndNo(cm.doc, to));
var from1, to1, display1, different = from != display.viewFrom || to != display.viewTo || display.lastWrapHeight != update.wrapperHeight || display.lastWrapWidth != update.wrapperWidth;
from1 = from, to1 = to, 0 == (display1 = cm.display).view.length || from1 >= display1.viewTo || to1 <= display1.viewFrom ? (display1.view = buildViewArray(cm, from1, to1), display1.viewFrom = from1) : (display1.viewFrom > from1 ? display1.view = buildViewArray(cm, from1, display1.viewFrom).concat(display1.view) : display1.viewFrom < from1 && (display1.view = display1.view.slice(findViewIndex(cm, from1))), display1.viewFrom = from1, display1.viewTo < to1 ? display1.view = display1.view.concat(buildViewArray(cm, display1.viewTo, to1)) : display1.viewTo > to1 && (display1.view = display1.view.slice(0, findViewIndex(cm, to1)))), display1.viewTo = to1, display.viewOffset = heightAtLine(getLine(cm.doc, display.viewFrom)), cm.display.mover.style.top = display.viewOffset + "px";
var end = doc.first + doc.size, from1 = Math.max(update.visible.from - cm.options.viewportMargin, doc.first), to1 = Math.min(end, update.visible.to + cm.options.viewportMargin);
display1.viewFrom < from1 && from1 - display1.viewFrom < 20 && (from1 = Math.max(doc.first, display1.viewFrom)), display1.viewTo > to1 && display1.viewTo - to1 < 20 && (to1 = Math.min(end, display1.viewTo)), sawCollapsedSpans && (from1 = visualLineNo(cm.doc, from1), to1 = visualLineEndNo(cm.doc, to1));
var different = from1 != display1.viewFrom || to1 != display1.viewTo || display1.lastWrapHeight != update.wrapperHeight || display1.lastWrapWidth != update.wrapperWidth;
from = from1, to = to1, 0 == (display = cm.display).view.length || from >= display.viewTo || to <= display.viewFrom ? (display.view = buildViewArray(cm, from, to), display.viewFrom = from) : (display.viewFrom > from ? display.view = buildViewArray(cm, from, display.viewFrom).concat(display.view) : display.viewFrom < from && (display.view = display.view.slice(findViewIndex(cm, from))), display.viewFrom = from, display.viewTo < to ? display.view = display.view.concat(buildViewArray(cm, display.viewTo, to)) : display.viewTo > to && (display.view = display.view.slice(0, findViewIndex(cm, to)))), display.viewTo = to, display1.viewOffset = heightAtLine(getLine(cm.doc, display1.viewFrom)), cm.display.mover.style.top = display1.viewOffset + "px";
var toUpdate = countDirtyView(cm);
if (!different && 0 == toUpdate && !update.force && display.renderedView == display.view && (null == display.updateLineNumbers || display.updateLineNumbers >= display.viewTo)) return !1;
if (!different && 0 == toUpdate && !update.force && display1.renderedView == display1.view && (null == display1.updateLineNumbers || display1.updateLineNumbers >= display1.viewTo)) return !1;
var selSnapshot = function(cm) {
if (cm.hasFocus()) return null;
var active = activeElt();
@ -2104,7 +2104,7 @@
}
return result;
}(cm);
return toUpdate > 4 && (display.lineDiv.style.display = "none"), function(cm, updateNumbersFrom, dims) {
return toUpdate > 4 && (display1.lineDiv.style.display = "none"), function(cm, updateNumbersFrom, dims) {
var display = cm.display, lineNumbers = cm.options.lineNumbers, container = display.lineDiv, cur = container.firstChild;
function rm(node) {
var next = node.nextSibling;
@ -2124,12 +2124,12 @@
lineN += lineView.size;
}
for(; cur;)cur = rm(cur);
}(cm, display.updateLineNumbers, update.dims), toUpdate > 4 && (display.lineDiv.style.display = ""), display.renderedView = display.view, !function(snapshot) {
}(cm, display1.updateLineNumbers, update.dims), toUpdate > 4 && (display1.lineDiv.style.display = ""), display1.renderedView = display1.view, !function(snapshot) {
if (snapshot && snapshot.activeElt && snapshot.activeElt != activeElt() && (snapshot.activeElt.focus(), !/^(INPUT|TEXTAREA)$/.test(snapshot.activeElt.nodeName) && snapshot.anchorNode && contains(document.body, snapshot.anchorNode) && contains(document.body, snapshot.focusNode))) {
var sel = window.getSelection(), range = document.createRange();
range.setEnd(snapshot.anchorNode, snapshot.anchorOffset), range.collapse(!1), sel.removeAllRanges(), sel.addRange(range), sel.extend(snapshot.focusNode, snapshot.focusOffset);
}
}(selSnapshot), removeChildren(display.cursorDiv), removeChildren(display.selectionDiv), display.gutters.style.height = display.sizer.style.minHeight = 0, different && (display.lastWrapHeight = update.wrapperHeight, display.lastWrapWidth = update.wrapperWidth, startWorker(cm, 400)), display.updateLineNumbers = null, !0;
}(selSnapshot), removeChildren(display1.cursorDiv), removeChildren(display1.selectionDiv), display1.gutters.style.height = display1.sizer.style.minHeight = 0, different && (display1.lastWrapHeight = update.wrapperHeight, display1.lastWrapWidth = update.wrapperWidth, startWorker(cm, 400)), display1.updateLineNumbers = null, !0;
}
function postUpdateDisplay(cm, update) {
for(var viewport = update.viewport, first = !0;; first = !1){
@ -4135,7 +4135,7 @@
this.time = time, this.pos = pos, this.button = button;
};
function onMouseDown(e) {
var cm, pos, repeat, event, contained, behavior, sel, cm1, event1, pos1, behavior1, display, moved, dragEnd, mouseMove, dragStart, display1 = this.display;
var cm, button, pos, repeat, event, name, cm1, pos1, repeat1, event1, behavior, contained, sel, cm2, event2, pos2, behavior1, display, moved, dragEnd, mouseMove, dragStart, now, display1 = this.display;
if (!(signalDOMEvent(this, e) || display1.activeTouch && display1.input.supportsTouch())) {
if (display1.input.ensurePolled(), display1.shift = e.shiftKey, eventInWidget(display1, e)) {
webkit || (display1.scroller.draggable = !1, setTimeout(function() {
@ -4144,34 +4144,34 @@
return;
}
if (!clickInGutter(this, e)) {
var now, cm2, name, pos2 = posFromMouse(this, e), button = e_button(e), repeat1 = pos2 ? (now = +new Date(), lastDoubleClick && lastDoubleClick.compare(now, pos2, button) ? (lastClick = lastDoubleClick = null, "triple") : lastClick && lastClick.compare(now, pos2, button) ? (lastDoubleClick = new PastClick(now, pos2, button), lastClick = null, "double") : (lastClick = new PastClick(now, pos2, button), lastDoubleClick = null, "single")) : "single";
window.focus(), 1 == button && this.state.selectingText && this.state.selectingText(e), !(pos2 && (cm2 = this, name = "Click", "double" == repeat1 ? name = "Double" + name : "triple" == repeat1 && (name = "Triple" + name), dispatchKey(cm2, addModifierNames(name = (1 == button ? "Left" : 2 == button ? "Middle" : "Right") + name, e), e, function(bound) {
var pos3 = posFromMouse(this, e), button1 = e_button(e), repeat2 = pos3 ? (now = +new Date(), lastDoubleClick && lastDoubleClick.compare(now, pos3, button1) ? (lastClick = lastDoubleClick = null, "triple") : lastClick && lastClick.compare(now, pos3, button1) ? (lastDoubleClick = new PastClick(now, pos3, button1), lastClick = null, "double") : (lastClick = new PastClick(now, pos3, button1), lastDoubleClick = null, "single")) : "single";
window.focus(), 1 == button1 && this.state.selectingText && this.state.selectingText(e), !(pos3 && (cm = this, button = button1, pos = pos3, repeat = repeat2, event = e, name = "Click", "double" == repeat ? name = "Double" + name : "triple" == repeat && (name = "Triple" + name), dispatchKey(cm, addModifierNames(name = (1 == button ? "Left" : 2 == button ? "Middle" : "Right") + name, event), event, function(bound) {
if ("string" == typeof bound && (bound = commands[bound]), !bound) return !1;
var done = !1;
try {
cm2.isReadOnly() && (cm2.state.suppressEdits = !0), done = bound(cm2, pos2) != Pass;
cm.isReadOnly() && (cm.state.suppressEdits = !0), done = bound(cm, pos) != Pass;
} finally{
cm2.state.suppressEdits = !1;
cm.state.suppressEdits = !1;
}
return done;
}))) && (1 == button ? pos2 ? (cm = this, pos = pos2, repeat = repeat1, event = e, ie ? setTimeout(bind(ensureFocus, cm), 0) : cm.curOp.focus = activeElt(), behavior = function(cm, repeat, event) {
}))) && (1 == button1 ? pos3 ? (cm1 = this, pos1 = pos3, repeat1 = repeat2, event1 = e, ie ? setTimeout(bind(ensureFocus, cm1), 0) : cm1.curOp.focus = activeElt(), behavior = function(cm, repeat, event) {
var option = cm.getOption("configureMouse"), value = option ? option(cm, repeat, event) : {};
if (null == value.unit) {
var rect = chromeOS ? event.shiftKey && event.metaKey : event.altKey;
value.unit = rect ? "rectangle" : "single" == repeat ? "char" : "double" == repeat ? "word" : "line";
}
return (null == value.extend || cm.doc.extend) && (value.extend = cm.doc.extend || event.shiftKey), null == value.addNew && (value.addNew = mac ? event.metaKey : event.ctrlKey), null == value.moveOnDrag && (value.moveOnDrag = !(mac ? event.altKey : event.ctrlKey)), value;
}(cm, repeat, event), sel = cm.doc.sel, cm.options.dragDrop && dragAndDrop && !cm.isReadOnly() && "single" == repeat && (contained = sel.contains(pos)) > -1 && (0 > cmp((contained = sel.ranges[contained]).from(), pos) || pos.xRel > 0) && (cmp(contained.to(), pos) > 0 || pos.xRel < 0) ? (cm1 = cm, event1 = event, pos1 = pos, behavior1 = behavior, display = cm1.display, moved = !1, dragEnd = operation(cm1, function(e) {
webkit && (display.scroller.draggable = !1), cm1.state.draggingText = !1, cm1.state.delayingBlurEvent && (cm1.hasFocus() ? cm1.state.delayingBlurEvent = !1 : delayBlurEvent(cm1)), off(display.wrapper.ownerDocument, "mouseup", dragEnd), off(display.wrapper.ownerDocument, "mousemove", mouseMove), off(display.scroller, "dragstart", dragStart), off(display.scroller, "drop", dragEnd), moved || (e_preventDefault(e), behavior1.addNew || extendSelection(cm1.doc, pos1, null, null, behavior1.extend), webkit && !safari || ie && 9 == ie_version ? setTimeout(function() {
}(cm1, repeat1, event1), sel = cm1.doc.sel, cm1.options.dragDrop && dragAndDrop && !cm1.isReadOnly() && "single" == repeat1 && (contained = sel.contains(pos1)) > -1 && (0 > cmp((contained = sel.ranges[contained]).from(), pos1) || pos1.xRel > 0) && (cmp(contained.to(), pos1) > 0 || pos1.xRel < 0) ? (cm2 = cm1, event2 = event1, pos2 = pos1, behavior1 = behavior, display = cm2.display, moved = !1, dragEnd = operation(cm2, function(e) {
webkit && (display.scroller.draggable = !1), cm2.state.draggingText = !1, cm2.state.delayingBlurEvent && (cm2.hasFocus() ? cm2.state.delayingBlurEvent = !1 : delayBlurEvent(cm2)), off(display.wrapper.ownerDocument, "mouseup", dragEnd), off(display.wrapper.ownerDocument, "mousemove", mouseMove), off(display.scroller, "dragstart", dragStart), off(display.scroller, "drop", dragEnd), moved || (e_preventDefault(e), behavior1.addNew || extendSelection(cm2.doc, pos2, null, null, behavior1.extend), webkit && !safari || ie && 9 == ie_version ? setTimeout(function() {
display.wrapper.ownerDocument.body.focus({
preventScroll: !0
}), display.input.focus();
}, 20) : display.input.focus());
}), mouseMove = function(e2) {
moved = moved || Math.abs(event1.clientX - e2.clientX) + Math.abs(event1.clientY - e2.clientY) >= 10;
moved = moved || Math.abs(event2.clientX - e2.clientX) + Math.abs(event2.clientY - e2.clientY) >= 10;
}, dragStart = function() {
return moved = !0;
}, webkit && (display.scroller.draggable = !0), cm1.state.draggingText = dragEnd, dragEnd.copy = !behavior1.moveOnDrag, on(display.wrapper.ownerDocument, "mouseup", dragEnd), on(display.wrapper.ownerDocument, "mousemove", mouseMove), on(display.scroller, "dragstart", dragStart), on(display.scroller, "drop", dragEnd), cm1.state.delayingBlurEvent = !0, setTimeout(function() {
}, webkit && (display.scroller.draggable = !0), cm2.state.draggingText = dragEnd, dragEnd.copy = !behavior1.moveOnDrag, on(display.wrapper.ownerDocument, "mouseup", dragEnd), on(display.wrapper.ownerDocument, "mousemove", mouseMove), on(display.scroller, "dragstart", dragStart), on(display.scroller, "drop", dragEnd), cm2.state.delayingBlurEvent = !0, setTimeout(function() {
return display.input.focus();
}, 20), display.scroller.dragDrop && display.scroller.dragDrop()) : function(cm, event, start, behavior) {
ie && delayBlurEvent(cm);
@ -4252,9 +4252,9 @@
}(e) : done(e);
}), up = operation(cm, done);
cm.state.selectingText = up, on(display.wrapper.ownerDocument, "mousemove", move), on(display.wrapper.ownerDocument, "mouseup", up);
}(cm, event, pos, behavior)) : e_target(e) == display1.scroller && e_preventDefault(e) : 2 == button ? (pos2 && extendSelection(this.doc, pos2), setTimeout(function() {
}(cm1, event1, pos1, behavior)) : e_target(e) == display1.scroller && e_preventDefault(e) : 2 == button1 ? (pos3 && extendSelection(this.doc, pos3), setTimeout(function() {
return display1.input.focus();
}, 20)) : 3 == button && (captureRightClick ? this.display.input.onContextMenu(e) : delayBlurEvent(this)));
}, 20)) : 3 == button1 && (captureRightClick ? this.display.input.onContextMenu(e) : delayBlurEvent(this)));
}
}
}

View File

@ -19,7 +19,7 @@
8484: function(__unused_webpack_module, __webpack_exports__, __webpack_require__) {
"use strict";
__webpack_require__.r(__webpack_exports__);
var _Users_kdy1_projects_lab_swc_minify_issue_node_modules_next_dist_compiled_regenerator_runtime_runtime_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(4051), _Users_kdy1_projects_lab_swc_minify_issue_node_modules_next_dist_compiled_regenerator_runtime_runtime_js__WEBPACK_IMPORTED_MODULE_0___default = __webpack_require__.n(_Users_kdy1_projects_lab_swc_minify_issue_node_modules_next_dist_compiled_regenerator_runtime_runtime_js__WEBPACK_IMPORTED_MODULE_0__), react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(5893), react__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(7294), util__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(9720), util__WEBPACK_IMPORTED_MODULE_3___default = __webpack_require__.n(util__WEBPACK_IMPORTED_MODULE_3__);
var fn, _ref, _Users_kdy1_projects_lab_swc_minify_issue_node_modules_next_dist_compiled_regenerator_runtime_runtime_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(4051), _Users_kdy1_projects_lab_swc_minify_issue_node_modules_next_dist_compiled_regenerator_runtime_runtime_js__WEBPACK_IMPORTED_MODULE_0___default = __webpack_require__.n(_Users_kdy1_projects_lab_swc_minify_issue_node_modules_next_dist_compiled_regenerator_runtime_runtime_js__WEBPACK_IMPORTED_MODULE_0__), react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(5893), react__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(7294), util__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(9720), util__WEBPACK_IMPORTED_MODULE_3___default = __webpack_require__.n(util__WEBPACK_IMPORTED_MODULE_3__);
function asyncGeneratorStep(gen, resolve, reject, _next, _throw, key, arg) {
try {
var info = gen[key](arg), value = info.value;
@ -38,7 +38,7 @@
}) : obj[key] = value, obj;
}
__webpack_require__(6774);
var fn, _ref, initBranch = (fn = _Users_kdy1_projects_lab_swc_minify_issue_node_modules_next_dist_compiled_regenerator_runtime_runtime_js__WEBPACK_IMPORTED_MODULE_0___default().mark(function _callee() {
var initBranch = (fn = _Users_kdy1_projects_lab_swc_minify_issue_node_modules_next_dist_compiled_regenerator_runtime_runtime_js__WEBPACK_IMPORTED_MODULE_0___default().mark(function _callee() {
return _Users_kdy1_projects_lab_swc_minify_issue_node_modules_next_dist_compiled_regenerator_runtime_runtime_js__WEBPACK_IMPORTED_MODULE_0___default().wrap(function(_ctx) {
for(;;)switch(_ctx.prev = _ctx.next){
case 0:
@ -1984,7 +1984,7 @@
}
function formatValue(r, e, o) {
if (r.customInspect && e && isFunction(e.inspect) && e.inspect !== t.inspect && !(e.constructor && e.constructor.prototype === e)) {
var t1, e1, o1, l, n = e.inspect(o, r);
var t1, e1, o1, r1, t2, l, n = e.inspect(o, r);
return isString(n) || (n = formatValue(r, n, o)), n;
}
var i = function(r, t) {
@ -1996,7 +1996,7 @@
return isNumber(t) ? r.stylize("" + t, "number") : isBoolean(t) ? r.stylize("" + t, "boolean") : isNull(t) ? r.stylize("null", "null") : void 0;
}(r, e);
if (i) return i;
var r1, t2, a = Object.keys(e), y = (r1 = a, t2 = {}, r1.forEach(function(r, e) {
var a = Object.keys(e), y = (r1 = a, t2 = {}, r1.forEach(function(r, e) {
t2[r] = !0;
}), t2);
if (r.showHidden && (a = Object.getOwnPropertyNames(e)), isError(e) && (a.indexOf("message") >= 0 || a.indexOf("description") >= 0)) return formatError(e);

View File

@ -758,7 +758,7 @@
], function(require, exports, module) {
"use strict";
var event = require("../lib/event"), useragent = require("../lib/useragent"), dom = require("../lib/dom"), lang = require("../lib/lang"), clipboard = require("../clipboard"), BROKEN_SETDATA = useragent.isChrome < 18, USE_IE_MIME_TYPE = useragent.isIE, HAS_FOCUS_ARGS = useragent.isChrome > 63, KEYS = require("../lib/keys"), MODS = KEYS.KEY_MODS, isIOS = useragent.isIOS, valueResetRegex = isIOS ? /\s/ : /\n/, isMobile = useragent.isMobile, TextInput = function(parentNode, host) {
var closeTimeout, text = dom.createElement("textarea");
var typingResetTimeout, typing, detectArrowKeys, closeTimeout, text = dom.createElement("textarea");
text.className = "ace_text-input", text.setAttribute("wrap", "off"), text.setAttribute("autocorrect", "off"), text.setAttribute("autocapitalize", "off"), text.setAttribute("spellcheck", !1), text.style.opacity = "0", parentNode.insertBefore(text, parentNode.firstChild);
var copied = !1, pasted = !1, inComposition = !1, sendingText = !1, tempStyle = "";
isMobile || (text.style.fontSize = "1px");
@ -950,7 +950,7 @@
};
move(e), "mousedown" == e.type && (host.renderer.$isMousePressed = !0, clearTimeout(closeTimeout), useragent.isWin && event.capture(host.container, move, onContextMenuClose));
}, this.onContextMenuClose = onContextMenuClose;
var typingResetTimeout, typing, detectArrowKeys, onContextMenu = function(e) {
var onContextMenu = function(e) {
host.textInput.onContextMenu(e), onContextMenuClose();
};
event.addListener(text, "mouseup", onContextMenu, host), event.addListener(text, "mousedown", function(e) {
@ -11784,9 +11784,9 @@ margin: 0 10px;\
}
sel.fromOrientedRange(sel.ranges[0]);
}, this.selectMore = function(dir, skip, stopAtFirst) {
var session = this.session, range = session.multiSelect.toOrientedRange();
if (!range.isEmpty() || ((range = session.getWordRange(range.start.row, range.start.column)).cursor = -1 == dir ? range.start : range.end, this.multiSelect.addRange(range), !stopAtFirst)) {
var needle = session.getTextRange(range), newRange = (search.$options.wrap = !0, search.$options.needle = needle, search.$options.backwards = -1 == dir, search.find(session));
var session, needle, dir1, session1 = this.session, range = session1.multiSelect.toOrientedRange();
if (!range.isEmpty() || ((range = session1.getWordRange(range.start.row, range.start.column)).cursor = -1 == dir ? range.start : range.end, this.multiSelect.addRange(range), !stopAtFirst)) {
var needle1 = session1.getTextRange(range), newRange = (session = session1, needle = needle1, dir1 = dir, search.$options.wrap = !0, search.$options.needle = needle, search.$options.backwards = -1 == dir1, search.find(session));
newRange && (newRange.cursor = -1 == dir ? newRange.start : newRange.end, this.session.unfold(newRange), this.multiSelect.addRange(newRange), this.renderer.scrollCursorIntoView(null, 0.5)), skip && this.multiSelect.substractPoint(range.cursor);
}
}, this.alignCursors = function() {

File diff suppressed because it is too large Load Diff

View File

@ -4755,7 +4755,7 @@
if (null === c) return null;
if (a.finishedWork = null, a.finishedLanes = 0, c === a.current) throw Error(p(177));
a.callbackNode = null, a.callbackPriority = 0;
var b1, f = c.lanes | c.childLanes;
var f = c.lanes | c.childLanes;
if (function(a, b) {
var c = a.pendingLanes & ~b;
a.pendingLanes = b, a.suspendedLanes = 0, a.pingedLanes = 0, a.expiredLanes &= b, a.mutableReadLanes &= b, a.entangledLanes &= b, b = a.entanglements;
@ -4764,13 +4764,13 @@
var e = 31 - nc(c), f = 1 << e;
b[e] = 0, d[e] = -1, a[e] = -1, c &= ~f;
}
}(a, f), a === P && (X = P = null, Y = 0), 0 == (2064 & c.subtreeFlags) && 0 == (2064 & c.flags) || tk || (tk = !0, b1 = function() {
}(a, f), a === P && (X = P = null, Y = 0), 0 == (2064 & c.subtreeFlags) && 0 == (2064 & c.flags) || tk || (tk = !0, a1 = gc, b1 = function() {
return Gk(), null;
}, $b(gc, b1)), f = 0 != (15990 & c.flags), 0 != (15990 & c.subtreeFlags) || f) {
}, $b(a1, b1)), f = 0 != (15990 & c.flags), 0 != (15990 & c.subtreeFlags) || f) {
f = mk.transition, mk.transition = null;
var g = C;
var a1, b1, a2, b2, g = C;
C = 1;
var a1, b2, h = W;
var h = W;
W |= 4, lk.current = null, function(a, b) {
if (Bf = cd, a = Le(), Me(a)) {
if ("selectionStart" in a) var c = {
@ -4876,7 +4876,7 @@
});
for("function" == typeof c.focus && c.focus(), c = 0; c < b.length; c++)(a = b[c]).element.scrollLeft = a.left, a.element.scrollTop = a.top;
}
}(Cf), cd = !!Bf, Cf = Bf = null, a.current = c, a1 = c, b2 = a, T = a1, function gk(a, b, c) {
}(Cf), cd = !!Bf, Cf = Bf = null, a.current = c, a2 = c, b2 = a, T = a2, function gk(a, b, c) {
for(var d = 0 != (1 & a.mode); null !== T;){
var e = T, f = e.child;
if (22 === e.tag && d) {
@ -4892,7 +4892,7 @@
ik(a, b, c);
} else 0 != (8772 & e.subtreeFlags) && null !== f ? (f.return = e, T = f) : ik(a, b, c);
}
}(a1, b2, e), cc(), W = h, C = g, mk.transition = f;
}(a2, b2, e), cc(), W = h, C = g, mk.transition = f;
} else a.current = c;
if (tk && (tk = !1, uk = a, vk = e), 0 === (f = a.pendingLanes) && (Oi = null), function(a) {
if (kc && "function" == typeof kc.onCommitFiberRoot) try {

View File

@ -3719,7 +3719,7 @@
return _app;
}
});
var styled_system_dist_index_esm_namespaceObject = {};
var fn, cache, t, styled_system_dist_index_esm_namespaceObject = {};
__webpack_require__.r(styled_system_dist_index_esm_namespaceObject), __webpack_require__.d(styled_system_dist_index_esm_namespaceObject, {
alignContent: function() {
return alignContent;
@ -3983,7 +3983,7 @@
return zIndex;
}
});
var fn, cache, jsx_runtime = __webpack_require__(5893), react_is = __webpack_require__(9864), react = __webpack_require__(7294), shallowequal = __webpack_require__(6774), shallowequal_default = __webpack_require__.n(shallowequal), stylis_browser_esm = function(W) {
var jsx_runtime = __webpack_require__(5893), react_is = __webpack_require__(9864), react = __webpack_require__(7294), shallowequal = __webpack_require__(6774), shallowequal_default = __webpack_require__.n(shallowequal), stylis_browser_esm = function(W) {
function M(d, c, e, h, a) {
for(var q, g, k, y, C, m = 0, b = 0, v = 0, n = 0, x = 0, K = 0, u = k = q = 0, l = 0, r = 0, I = 0, t = 0, B = e.length, J = B - 1, f = "", p = "", F = "", G = ""; l < B;){
if (g = e.charCodeAt(l), l === J && 0 !== b + n + v + m && (0 !== b && (g = 47 === b ? 10 : 47), n = v = m = 0, B++, J++), 0 === b + n + v + m) {
@ -4882,11 +4882,11 @@
}));
}, s;
}(function qe(e, t, n) {
var e1, t1, n1, r, o = N(e), i = !ke(e), a = t.attrs, c = void 0 === a ? w : a, d = t.componentId, h = void 0 === d ? (e1 = t.displayName, t1 = t.parentComponentId, Ye[n1 = "string" != typeof e1 ? "sc" : Te(e1)] = (Ye[n1] || 0) + 1, r = n1 + "-" + xe("5.3.5" + n1 + Ye[n1]), t1 ? t1 + "-" + r : r) : d, p = t.displayName, f = void 0 === p ? ke(e) ? "styled." + e : "Styled(" + _(e) + ")" : p, g = t.displayName && t.componentId ? Te(t.displayName) + "-" + t.componentId : t.componentId || h, S = o && e.attrs ? Array.prototype.concat(e.attrs, c).filter(Boolean) : c, A = t.shouldForwardProp;
var o = N(e), i = !ke(e), a = t.attrs, c = void 0 === a ? w : a, d = t.componentId, h = void 0 === d ? (e1 = t.displayName, t1 = t.parentComponentId, Ye[n1 = "string" != typeof e1 ? "sc" : Te(e1)] = (Ye[n1] || 0) + 1, r = n1 + "-" + xe("5.3.5" + n1 + Ye[n1]), t1 ? t1 + "-" + r : r) : d, p = t.displayName, f = void 0 === p ? (e2 = e, ke(e2) ? "styled." + e2 : "Styled(" + _(e2) + ")") : p, g = t.displayName && t.componentId ? Te(t.displayName) + "-" + t.componentId : t.componentId || h, S = o && e.attrs ? Array.prototype.concat(e.attrs, c).filter(Boolean) : c, A = t.shouldForwardProp;
o && e.shouldForwardProp && (A = t.shouldForwardProp ? function(n, r, o) {
return e.shouldForwardProp(n, r, o) && t.shouldForwardProp(n, r, o);
} : e.shouldForwardProp);
var C, I = new se(n, g, o ? e.componentStyle : void 0), P = I.isStatic && 0 === c.length, O = function(e, t) {
var e1, t1, n1, r, e2, C, I = new se(n, g, o ? e.componentStyle : void 0), P = I.isStatic && 0 === c.length, O = function(e, t) {
return function(e, t, n, r) {
var e1, r1, o, o1, s, o2 = e.attrs, i = e.componentStyle, a = e.defaultProps, c = e.foldedComponentIds, d = e.shouldForwardProp, h = e.styledComponentId, p = e.target, f = (void 0 === (e1 = Re(t, (0, react.useContext)(Ge), a) || E) && (e1 = E), r1 = v({}, t, {
theme: e1
@ -5075,7 +5075,7 @@
].forEach(function(e) {
He[e] = He(e);
});
var t, $e = function() {
var $e = function() {
function e(e, t) {
this.rules = e, this.componentId = t, this.isStatic = re(e), Z.registerId(this.componentId + 1);
}

View File

@ -169,7 +169,7 @@
return setValue;
}
});
var HijriParser, intl_base_IntlBase, lastPageID, instances = 'ej2_instances', uid = 0;
var HijriParser, dateCorrection, extendStatics, extendStatics1, extendStatics2, extendStatics3, extendStatics4, extendStatics5, HijriParser1, intl_base_IntlBase, lastPageID, instances = 'ej2_instances', uid = 0;
function createInstance(classFunction, params) {
return params.unshift(void 0), new (Function.prototype.bind.apply(classFunction, params));
}
@ -266,7 +266,7 @@
}
return null;
}
var HijriParser1, dateCorrection, defaultNumberingSystem = {
var defaultNumberingSystem = {
latn: {
_digits: '0123456789',
_type: 'numeric'
@ -500,7 +500,7 @@
VND: '₫',
TWD: 'NT$'
};
HijriParser1 = HijriParser || (HijriParser = {}), dateCorrection = [
HijriParser = HijriParser1 || (HijriParser1 = {}), dateCorrection = [
28607,
28636,
28665,
@ -2242,7 +2242,7 @@
79930,
79960,
79990
], HijriParser1.getHijriDate = function(gDate) {
], HijriParser.getHijriDate = function(gDate) {
var day = gDate.getDate(), month = gDate.getMonth(), year = gDate.getFullYear(), tMonth = month + 1, tYear = year;
tMonth < 3 && (tYear -= 1, tMonth += 12);
var yPrefix = Math.floor(tYear / 100.), julilanOffset = yPrefix - Math.floor(yPrefix / 4.) - 2, julianNumber = Math.floor(365.25 * (tYear + 4716)) + Math.floor(30.6001 * (tMonth + 1)) + day - julilanOffset - 1524;
@ -2258,7 +2258,7 @@
month: hmonth,
date: hDate
};
}, HijriParser1.toGregorian = function(year, month, day) {
}, HijriParser.toGregorian = function(year, month, day) {
var z = Math.floor(day + dateCorrection[12 * (year - 1) + 1 + (month - 1) - 16260 - 1] - 1 + 2400000 + 0.5), a = Math.floor((z - 1867216.25) / 36524.25), b = (a = z + 1 + a - Math.floor(a / 4)) + 1524, c = Math.floor((b - 122.1) / 365.25), d = Math.floor(365.25 * c), e = Math.floor((b - d) / 30.6001), gMonth = e - (e > 13.5 ? 13 : 1), gYear = c - (gMonth > 2.5 ? 4716 : 4715);
return gYear <= 0 && gMonth--, new Date(gYear + '/' + gMonth + '/' + (b - d - Math.floor(30.6001 * e)));
};
@ -2394,7 +2394,7 @@
}
return ret;
}, DateFormat.getCurrentDateValue = function(value, isIslamic) {
return isIslamic ? HijriParser.getHijriDate(value) : {
return isIslamic ? HijriParser1.getHijriDate(value) : {
year: value.getFullYear(),
month: value.getMonth() + 1,
date: value.getDate()
@ -2584,8 +2584,8 @@
if (util_isNullOrUndefined(parsedDateParts) || !Object.keys(parsedDateParts).length) return null;
if (parseOptions.isIslamic) {
var dobj = {}, tYear = parsedDateParts.year, tDate = parsedDateParts.day, tMonth = parsedDateParts.month, ystrig = tYear ? tYear + '' : '', is2DigitYear = 2 === ystrig.length;
tYear && tMonth && tDate && !is2DigitYear || (dobj = HijriParser.getHijriDate(new Date())), is2DigitYear && (tYear = parseInt((dobj.year + '').slice(0, 2) + ystrig, 10));
var dateObject = HijriParser.toGregorian(tYear || dobj.year, tMonth || dobj.month, tDate || dobj.date);
tYear && tMonth && tDate && !is2DigitYear || (dobj = HijriParser1.getHijriDate(new Date())), is2DigitYear && (tYear = parseInt((dobj.year + '').slice(0, 2) + ystrig, 10));
var dateObject = HijriParser1.toGregorian(tYear || dobj.year, tMonth || dobj.month, tDate || dobj.date);
parsedDateParts.year = dateObject.getFullYear(), parsedDateParts.month = dateObject.getMonth() + 1, parsedDateParts.day = dateObject.getDate();
}
return _this.getDateObject(parsedDateParts);
@ -4231,7 +4231,7 @@
type: type
}), target.propList[propertyType + 'Names'].push(key);
}
var extendStatics, __extends = (extendStatics = function(d, b) {
var __extends = (extendStatics = function(d, b) {
return (extendStatics = Object.setPrototypeOf || ({
__proto__: []
}) instanceof Array && function(d, b) {
@ -4612,7 +4612,7 @@
for(var ret = '', _i = 0; _i < cArr.length; _i++)ret += String.fromCharCode(cArr[_i]);
return ret;
}
var extendStatics1, extendStatics2, validateLicense = function(key) {
var validateLicense = function(key) {
key && (licenseValidator = new LicenseValidator(key)), licenseValidator.validate();
}, component_extends = (extendStatics1 = function(d, b) {
return (extendStatics1 = Object.setPrototypeOf || ({
@ -4768,7 +4768,7 @@
'undefined' != typeof window && window.addEventListener('popstate', function() {
componentCount = 0;
});
var extendStatics3, extendStatics4, draggable_extends = (extendStatics2 = function(d, b) {
var draggable_extends = (extendStatics2 = function(d, b) {
return (extendStatics2 = Object.setPrototypeOf || ({
__proto__: []
}) instanceof Array && function(d, b) {
@ -5233,7 +5233,7 @@
NotifyPropertyChanges
], Droppable);
}(Base);
var extendStatics5, keyboard_extends = (extendStatics4 = function(d, b) {
var keyboard_extends = (extendStatics4 = function(d, b) {
return (extendStatics4 = Object.setPrototypeOf || ({
__proto__: []
}) instanceof Array && function(d, b) {
@ -7108,7 +7108,7 @@
X: !0,
Y: !0
}), target && element && positionX && positionY && (axis.X || axis.Y)) {
var elementRect, tEdge = {
var edge, pos, elementRect, elementRect1, tEdge = {
TL: null,
TR: null,
BL: null,
@ -7121,9 +7121,9 @@
};
if ('none' === window.getComputedStyle(element).display) {
var oldVisibility = element.style.visibility;
element.style.visibility = 'hidden', element.style.display = 'block', elementRect = element.getBoundingClientRect(), element.style.removeProperty('display'), element.style.visibility = oldVisibility;
} else elementRect = element.getBoundingClientRect();
var edge, pos, elementRect1, pos1 = {
element.style.visibility = 'hidden', element.style.display = 'block', elementRect1 = element.getBoundingClientRect(), element.style.removeProperty('display'), element.style.visibility = oldVisibility;
} else elementRect1 = element.getBoundingClientRect();
var pos1 = {
posX: positionX,
posY: positionY,
offsetX: offsetX,
@ -7133,20 +7133,20 @@
top: 0
}
};
targetContainer = viewPortElement, parentDocument = target.ownerDocument, edge = tEdge, pos = pos1, elementRect1 = elementRect, pos.position = (0, _position__WEBPACK_IMPORTED_MODULE_1__.k)(target, pos.posX, pos.posY, fixedParent, elementRect1), edge.TL = (0, _position__WEBPACK_IMPORTED_MODULE_1__.k)(target, 'left', 'top', fixedParent, elementRect1), edge.TR = (0, _position__WEBPACK_IMPORTED_MODULE_1__.k)(target, 'right', 'top', fixedParent, elementRect1), edge.BR = (0, _position__WEBPACK_IMPORTED_MODULE_1__.k)(target, 'left', 'bottom', fixedParent, elementRect1), edge.BL = (0, _position__WEBPACK_IMPORTED_MODULE_1__.k)(target, 'right', 'bottom', fixedParent, elementRect1), setPosition(eEdge, pos1, elementRect), axis.X && function leftFlip(target, edge, tEdge, pos, elementRect, deepCheck) {
targetContainer = viewPortElement, parentDocument = target.ownerDocument, edge = tEdge, pos = pos1, elementRect = elementRect1, pos.position = (0, _position__WEBPACK_IMPORTED_MODULE_1__.k)(target, pos.posX, pos.posY, fixedParent, elementRect), edge.TL = (0, _position__WEBPACK_IMPORTED_MODULE_1__.k)(target, 'left', 'top', fixedParent, elementRect), edge.TR = (0, _position__WEBPACK_IMPORTED_MODULE_1__.k)(target, 'right', 'top', fixedParent, elementRect), edge.BR = (0, _position__WEBPACK_IMPORTED_MODULE_1__.k)(target, 'left', 'bottom', fixedParent, elementRect), edge.BL = (0, _position__WEBPACK_IMPORTED_MODULE_1__.k)(target, 'right', 'bottom', fixedParent, elementRect), setPosition(eEdge, pos1, elementRect1), axis.X && function leftFlip(target, edge, tEdge, pos, elementRect, deepCheck) {
var collideSide = leftCollideCheck(edge.TL.left, edge.TR.left);
tEdge.TL.left - getBodyScrollLeft() <= ContainerLeft() && (collideSide.leftSide = !1), tEdge.TR.left > ContainerRight() && (collideSide.rightSide = !1), (collideSide.leftSide && !collideSide.rightSide || !collideSide.leftSide && collideSide.rightSide) && ('right' === pos.posX ? pos.posX = 'left' : pos.posX = 'right', pos.offsetX = pos.offsetX + elementRect.width, pos.offsetX = -1 * pos.offsetX, pos.position = (0, _position__WEBPACK_IMPORTED_MODULE_1__.k)(target, pos.posX, pos.posY, !1), setPosition(edge, pos, elementRect), deepCheck && leftFlip(target, edge, tEdge, pos, elementRect, !1));
}(target, eEdge, tEdge, pos1, elementRect, !0), axis.Y && tEdge.TL.top > -1 && function topFlip(target, edge, tEdge, pos, elementRect, deepCheck) {
}(target, eEdge, tEdge, pos1, elementRect1, !0), axis.Y && tEdge.TL.top > -1 && function topFlip(target, edge, tEdge, pos, elementRect, deepCheck) {
var collideSide = topCollideCheck(edge.TL.top, edge.BL.top);
tEdge.TL.top - getBodyScrollTop() <= ContainerTop() && (collideSide.topSide = !1), tEdge.BL.top >= ContainerBottom() && target.getBoundingClientRect().bottom < window.innerHeight && (collideSide.bottomSide = !1), (collideSide.topSide && !collideSide.bottomSide || !collideSide.topSide && collideSide.bottomSide) && ('top' === pos.posY ? pos.posY = 'bottom' : pos.posY = 'top', pos.offsetY = pos.offsetY + elementRect.height, pos.offsetY = -1 * pos.offsetY, pos.position = (0, _position__WEBPACK_IMPORTED_MODULE_1__.k)(target, pos.posX, pos.posY, !1, elementRect), setPosition(edge, pos, elementRect), deepCheck && topFlip(target, edge, tEdge, pos, elementRect, !1));
}(target, eEdge, tEdge, pos1, elementRect, !0), function(element, pos, elementRect) {
}(target, eEdge, tEdge, pos1, elementRect1, !0), function(element, pos, elementRect) {
var left = 0, top1 = 0;
if (null != element.offsetParent && ('absolute' === getComputedStyle(element.offsetParent).position || 'relative' === getComputedStyle(element.offsetParent).position)) {
var data = (0, _position__WEBPACK_IMPORTED_MODULE_1__.k)(element.offsetParent, 'left', 'top', !1, elementRect);
left = data.left, top1 = data.top;
}
element.style.top = pos.position.top + pos.offsetY - top1 + 'px', element.style.left = pos.position.left + pos.offsetX - left + 'px';
}(element, pos1, elementRect);
}(element, pos1, elementRect1);
}
}
function setPosition(eStatus, pos, elementRect) {
@ -7706,7 +7706,7 @@
return applyMixins;
}
});
var extendStatics, react = __webpack_require__(7294), react_dom = __webpack_require__(3935), ej2_base = __webpack_require__(1807), __extends = (extendStatics = function(d, b) {
var extendStatics, extendStatics1, extendStatics2, react = __webpack_require__(7294), react_dom = __webpack_require__(3935), ej2_base = __webpack_require__(1807), __extends = (extendStatics = function(d, b) {
return (extendStatics = Object.setPrototypeOf || ({
__proto__: []
}) instanceof Array && function(d, b) {
@ -7984,7 +7984,7 @@
});
});
}
var extendStatics1, extendStatics2, complex_base_extends = (extendStatics1 = function(d, b) {
var complex_base_extends = (extendStatics1 = function(d, b) {
return (extendStatics1 = Object.setPrototypeOf || ({
__proto__: []
}) instanceof Array && function(d, b) {
@ -8049,7 +8049,7 @@
return RichTextEditorComponent;
}
});
var targetElement, selectedHandler, minHeight, maxHeight, minWidth, maxWidth, containerElement, resizeWestWidth, proxy, DialogUtility, extendStatics, extendStatics1, extendStatics2, extendStatics3, extendStatics4, extendStatics5, extendStatics6, extendStatics7, extendStatics8, extendStatics9, extendStatics10, react = __webpack_require__(7294), ej2_base = __webpack_require__(1807), popup = __webpack_require__(9486), constant = __webpack_require__(3386), classes = __webpack_require__(9805), base_enum = __webpack_require__(809), Render = function() {
var extendStatics, extendStatics1, extendStatics2, extendStatics3, extendStatics4, extendStatics5, extendStatics6, extendStatics7, extendStatics8, extendStatics9, extendStatics10, extendStatics11, extendStatics12, extendStatics13, targetElement, selectedHandler, minHeight, maxHeight, minWidth, maxWidth, containerElement, resizeWestWidth, proxy, DialogUtility, react = __webpack_require__(7294), ej2_base = __webpack_require__(1807), popup = __webpack_require__(9486), constant = __webpack_require__(3386), classes = __webpack_require__(9805), base_enum = __webpack_require__(809), Render = function() {
function Render(parent, locator) {
this.parent = parent, this.locator = locator, this.renderer = this.locator.getService('rendererFactory'), this.addEventListener();
}
@ -9636,7 +9636,7 @@
var borderResizers = targetElement.querySelectorAll('.e-dialog-border-resize');
if (!(0, ej2_base.le)(borderResizers)) for(var i = 0; i < borderResizers.length; i++)(0, ej2_base.og)(borderResizers[i]);
}
var extendStatics11, dialog_extends = (extendStatics11 = function(d, b) {
var dialog_extends = (extendStatics11 = function(d, b) {
return (extendStatics11 = Object.setPrototypeOf || ({
__proto__: []
}) instanceof Array && function(d, b) {
@ -10412,7 +10412,7 @@
return (0, ej2_base.le)(option.text) || (buttonProps.buttonModel.content = option.text), (0, ej2_base.le)(option.icon) || (buttonProps.buttonModel.iconCss = option.icon), (0, ej2_base.le)(option.cssClass) || (buttonProps.buttonModel.cssClass = option.cssClass), (0, ej2_base.le)(option.click) || (buttonProps.click = option.click), buttonProps;
}
DialogUtility.alert = function(args) {
var alertDialogObj, options, options1, alertButtonModel, dialogElement = (0, ej2_base.az)('div', {
var options, options1, alertButtonModel, alertDialogObj, dialogElement = (0, ej2_base.az)('div', {
className: DLG_UTIL_ALERT
});
return document.body.appendChild(dialogElement), (alertDialogObj = 'string' == typeof args ? createDialog({
@ -10448,7 +10448,7 @@
args && args.close && args.close.apply(alertDialogObj), alertDialogObj.destroy(), alertDialogObj.element.classList.contains('e-dlg-modal') ? (alertDialogObj.element.parentElement.remove(), alertDialogObj.target.classList.remove(DLG_UTIL_ROOT)) : alertDialogObj.element.remove();
}, alertDialogObj;
}, DialogUtility.confirm = function(args) {
var confirmDialogObj, options, options1, okButtonModel, cancelButtonModel, dialogElement = (0, ej2_base.az)('div', {
var options, options1, okButtonModel, cancelButtonModel, confirmDialogObj, dialogElement = (0, ej2_base.az)('div', {
className: DLG_UTIL_CONFIRM
});
return document.body.appendChild(dialogElement), (confirmDialogObj = 'string' == typeof args ? createDialog({
@ -10498,7 +10498,7 @@
}, confirmDialogObj;
};
}(DialogUtility || (DialogUtility = {}));
var extendStatics12, extendStatics13, DialogRenderer = function() {
var DialogRenderer = function() {
function DialogRenderer(parent) {
this.parent = parent, this.addEventListener();
}
@ -15870,7 +15870,7 @@
return PasteCleanup;
}
});
var extendStatics, constant = __webpack_require__(3386), popup = __webpack_require__(9486), ej2_base = __webpack_require__(1807), common = __webpack_require__(759), __extends = (extendStatics = function(d, b) {
var extendStatics, extendStatics1, constant = __webpack_require__(3386), popup = __webpack_require__(9486), ej2_base = __webpack_require__(1807), common = __webpack_require__(759), __extends = (extendStatics = function(d, b) {
return (extendStatics = Object.setPrototypeOf || ({
__proto__: []
}) instanceof Array && function(d, b) {
@ -16333,7 +16333,7 @@
function hideSpinner(container) {
showHideSpinner(container, !0), container = null;
}
var extendStatics1, uploader_extends = (extendStatics1 = function(d, b) {
var uploader_extends = (extendStatics1 = function(d, b) {
return (extendStatics1 = Object.setPrototypeOf || ({
__proto__: []
}) instanceof Array && function(d, b) {
@ -18505,7 +18505,7 @@
return toolbar_Toolbar;
}
});
var extendStatics, extendStatics1, extendStatics2, extendStatics3, ej2_base = __webpack_require__(1807), constant = __webpack_require__(3386), classes = __webpack_require__(9805), base_enum = __webpack_require__(809), util = __webpack_require__(5932), items = __webpack_require__(3276), popup_popup = __webpack_require__(9486), position = __webpack_require__(6216), button_button = __webpack_require__(78), __extends = (extendStatics = function(d, b) {
var extendStatics, extendStatics1, extendStatics2, extendStatics3, extendStatics4, extendStatics5, extendStatics6, extendStatics7, extendStatics8, ej2_base = __webpack_require__(1807), constant = __webpack_require__(3386), classes = __webpack_require__(9805), base_enum = __webpack_require__(809), util = __webpack_require__(5932), items = __webpack_require__(3276), popup_popup = __webpack_require__(9486), position = __webpack_require__(6216), button_button = __webpack_require__(78), __extends = (extendStatics = function(d, b) {
return (extendStatics = Object.setPrototypeOf || ({
__proto__: []
}) instanceof Array && function(d, b) {
@ -19943,7 +19943,7 @@
}
return obj;
}
var extendStatics4, extendStatics5, extendStatics6, extendStatics7, extendStatics8, common_Item = function(_super) {
var common_Item = function(_super) {
function Item() {
return null !== _super && _super.apply(this, arguments) || this;
}

View File

@ -0,0 +1,5 @@
{
"defaults": true,
"toplevel": true,
"ecma": 2015
}

File diff suppressed because one or more lines are too long

View File

@ -6648,7 +6648,7 @@
},
4867: function(module, __unused_webpack_exports, __webpack_require__) {
"use strict";
var cache, bind = __webpack_require__(1849), toString1 = Object.prototype.toString, kindOf = (cache = Object.create(null), function(thing) {
var cache, TypedArray, bind = __webpack_require__(1849), toString1 = Object.prototype.toString, kindOf = (cache = Object.create(null), function(thing) {
var str = toString1.call(thing);
return cache[str] || (cache[str] = str.slice(8, -1).toLowerCase());
});
@ -6750,7 +6750,7 @@
for(var arr = Array(i); i-- > 0;)arr[i] = thing[i];
return arr;
}
var TypedArray, isTypedArray = (TypedArray = 'undefined' != typeof Uint8Array && Object.getPrototypeOf(Uint8Array), function(thing) {
var isTypedArray = (TypedArray = 'undefined' != typeof Uint8Array && Object.getPrototypeOf(Uint8Array), function(thing) {
return TypedArray && thing instanceof TypedArray;
});
module.exports = {

View File

@ -9,7 +9,7 @@ var isServerSide = "undefined" == typeof document, META = "M", TITLE = "T", LINK
meta.charset ? metaTag.setAttribute(meta.keyword, meta.charset) : (metaTag.setAttribute(meta.keyword, meta[meta.keyword]), metaTag.setAttribute("content", meta.content)), document.head.appendChild(metaTag);
}
}, createDispatcher = function() {
var lang, timeout, linkQueue = [], scriptQueue = [], titleQueue = [], titleTemplateQueue = [], metaQueue = [], currentTitleIndex = 0, currentTitleTemplateIndex = 0, currentMetaIndex = 0, processQueue = function() {
var timeout, lang, linkQueue = [], scriptQueue = [], titleQueue = [], titleTemplateQueue = [], metaQueue = [], currentTitleIndex = 0, currentTitleTemplateIndex = 0, currentMetaIndex = 0, processQueue = function() {
clearTimeout(timeout), timeout = setTimeout(function() {
timeout = null;
var visited = new Set();

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

View File

@ -66,7 +66,7 @@
}, $1.find = function(selector, context, ret, extra) {
return selector.indexOf(":jqmData") > -1 && (selector = selector.replace(jqmDataRE, "[data-" + ($1.mobile.ns || "") + "$1]")), oldFind.call(this, selector, context, ret, extra);
}, $1.extend($1.find, oldFind), function($, undefined) {
var removeData, orig, uuid = 0, runiqueId = /^ui-id-\d+$/;
var orig, removeData, uuid = 0, runiqueId = /^ui-id-\d+$/;
function focusable(element, isTabIndexNotNaN) {
var map, mapName, img, nodeName = element.nodeName.toLowerCase();
return "area" === nodeName ? (mapName = (map = element.parentNode).name, !!element.href && !!mapName && "map" === map.nodeName.toLowerCase() && !!(img = $("img[usemap=#" + mapName + "]")[0]) && visible(img)) : (/input|select|textarea|button|object/.test(nodeName) ? !element.disabled : "a" === nodeName && element.href || isTabIndexNotNaN) && visible(element);

View File

@ -1840,7 +1840,7 @@ Elements.prototype = {
return document.id(Slick.find(this, expression));
}
});
var set, translations, contains = {
var types, div, set, translations, contains = {
contains: function(element) {
return Slick.contains(this, element);
}
@ -2019,7 +2019,7 @@ Elements.prototype = {
"button" != el.type && (propertySetters.type = function(node, value) {
node.setAttribute("type", value);
}), el = null;
var types, div, input = document.createElement("input");
var input = document.createElement("input");
input.value = "t", input.type = "submit", "t" != input.value && (propertySetters.type = function(node, type) {
var value = node.value;
node.type = type, node.value = value;

View File

@ -578,7 +578,7 @@
function createElementWithValidation(type, props, children) {
var validType = isValidElementType(type);
if (!validType) {
var typeString, elementProps, source, info = "";
var source, elementProps, typeString, info = "";
(void 0 === type || "object" == typeof type && null !== type && 0 === Object.keys(type).length) && (info += " You likely forgot to export your component from the file it's defined in, or you might have mixed up default and named imports.");
var sourceInfo = null != props ? (source = props.__source, void 0 !== source ? "\n\nCheck your code at " + source.fileName.replace(/^.*[\\\/]/, "") + ":" + source.lineNumber + "." : "") : "";
sourceInfo ? info += sourceInfo : info += getDeclarationErrorAddendum(), null === type ? typeString = "null" : Array.isArray(type) ? typeString = "array" : void 0 !== type && type.$$typeof === REACT_ELEMENT_TYPE ? (typeString = "<" + (getComponentName(type.type) || "Unknown") + " />", info = " Did you accidentally export a JSX literal instead of a component?") : typeString = typeof type, error("React.createElement: type is invalid -- expected a string (for built-in components) or a class/function (for composite components) but got: %s.%s", typeString, info);

View File

@ -5,7 +5,7 @@
], factory) : factory((global = global || self).ReactDOM = {}, global.React);
}(this, function(exports1, React) {
"use strict";
var devToolsConfig, findFiberByHostInstance, ReactCurrentDispatcher, prevLog, prevInfo, prevWarn, prevError, prevGroup, prevGroupCollapsed, prevGroupEnd, prefix, 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;
var func, fn, fn1, fn2, fn3, impl, _batchedUpdatesImpl, _discreteUpdatesImpl, _flushDiscreteUpdatesImpl, _batchedEventUpdatesImpl, devToolsConfig, findFiberByHostInstance, ReactCurrentDispatcher, prevLog, prevInfo, prevWarn, prevError, prevGroup, prevGroupCollapsed, prevGroupEnd, prefix, 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 = Array(_len > 1 ? _len - 1 : 0), _key = 1; _key < _len; _key++)args[_key - 1] = arguments[_key];
printWarning("warn", format, args);
@ -625,9 +625,9 @@
}
function updateValueIfChanged(node) {
if (!node) return !1;
var tracker = getTracker(node);
var node1, value, tracker = getTracker(node);
if (!tracker) return !0;
var node1, value, lastValue = tracker.getValue(), nextValue = (value = "", node ? value = isCheckable(node) ? node.checked ? "true" : "false" : node.value : value);
var lastValue = tracker.getValue(), nextValue = (value = "", node ? value = isCheckable(node) ? node.checked ? "true" : "false" : node.value : value);
return nextValue !== lastValue && (tracker.setValue(nextValue), !0);
}
function getActiveElement(doc) {
@ -678,9 +678,9 @@
function postMountWrapper(element, props, isHydrating) {
var node = element;
if (props.hasOwnProperty("value") || props.hasOwnProperty("defaultValue")) {
var type = props.type;
var value, type = props.type;
if (("submit" === type || "reset" === type) && (void 0 === props.value || null === props.value)) return;
var value, initialValue = "" + (value = node._wrapperState.initialValue);
var initialValue = "" + (value = node._wrapperState.initialValue);
isHydrating || initialValue === node.value || (node.value = initialValue), node.defaultValue = initialValue;
}
var name = node.name;
@ -814,7 +814,7 @@
function getChildNamespace(parentNamespace, type) {
return null == parentNamespace || parentNamespace === HTML_NAMESPACE ? getIntrinsicNamespace(type) : parentNamespace === SVG_NAMESPACE && "foreignObject" === type ? HTML_NAMESPACE : parentNamespace;
}
var func, setInnerHTML = (func = function(node, html) {
var setInnerHTML = (func = function(node, html) {
if (node.namespaceURI === Namespaces.svg && !("innerHTML" in node)) {
(reusableSVGContainer = reusableSVGContainer || document.createElement("div")).innerHTML = "<svg>" + html.valueOf().toString() + "</svg>";
for(var svgNode = reusableSVGContainer.firstChild; node.firstChild;)node.removeChild(node.firstChild);
@ -3421,8 +3421,8 @@
}
}
})(dispatchQueue, domEventName, targetInst, nativeEvent, nativeEventTarget, eventSystemFlags), function(dispatchQueue, domEventName, targetInst, nativeEvent, nativeEventTarget, eventSystemFlags, targetContainer) {
var node, state, elem, nodeName, getTargetInstFunc, handleEventFunc, elem1, nodeName1, targetNode = targetInst ? getNodeFromInstance(targetInst) : window;
if ("select" === (nodeName1 = targetNode.nodeName && targetNode.nodeName.toLowerCase()) || "input" === nodeName1 && "file" === targetNode.type ? getTargetInstFunc = getTargetInstForChangeEvent : isTextInputElement(targetNode) ? isInputEventSupported ? getTargetInstFunc = getTargetInstForInputOrChangeEvent : (getTargetInstFunc = getTargetInstForInputEventPolyfill, handleEventFunc = handleEventsForInputEventPolyfill) : (nodeName = (elem = targetNode).nodeName) && "input" === nodeName.toLowerCase() && ("checkbox" === elem.type || "radio" === elem.type) && (getTargetInstFunc = getTargetInstForClickEvent), getTargetInstFunc) {
var node, state, elem, nodeName, elem1, nodeName1, getTargetInstFunc, handleEventFunc, targetNode = targetInst ? getNodeFromInstance(targetInst) : window;
if ("select" === (nodeName = targetNode.nodeName && targetNode.nodeName.toLowerCase()) || "input" === nodeName && "file" === targetNode.type ? getTargetInstFunc = getTargetInstForChangeEvent : isTextInputElement(targetNode) ? isInputEventSupported ? getTargetInstFunc = getTargetInstForInputOrChangeEvent : (getTargetInstFunc = getTargetInstForInputEventPolyfill, handleEventFunc = handleEventsForInputEventPolyfill) : (nodeName1 = (elem1 = targetNode).nodeName) && "input" === nodeName1.toLowerCase() && ("checkbox" === elem1.type || "radio" === elem1.type) && (getTargetInstFunc = getTargetInstForClickEvent), getTargetInstFunc) {
var inst = getTargetInstFunc(domEventName, targetInst);
if (inst) {
createAndAccumulateChangeEvent(dispatchQueue, inst, nativeEvent, nativeEventTarget);
@ -5409,7 +5409,7 @@
];
}
function readFromUnsubcribedMutableSource(root, source, getSnapshot) {
null == (mutableSource1 = source)._currentPrimaryRenderer ? mutableSource1._currentPrimaryRenderer = rendererSigil$1 : mutableSource1._currentPrimaryRenderer !== rendererSigil$1 && error("Detected multiple renderers concurrently rendering the same mutable source. This is currently unsupported.");
null == (mutableSource = source)._currentPrimaryRenderer ? mutableSource._currentPrimaryRenderer = rendererSigil$1 : mutableSource._currentPrimaryRenderer !== rendererSigil$1 && error("Detected multiple renderers concurrently rendering the same mutable source. This is currently unsupported.");
var mutableSource, mutableSource1, mutableSource2, version = (0, source._getVersion)(source._source), isSafeToReadFromSource = !1, currentRenderVersion = source._workInProgressVersionPrimary;
if (null !== currentRenderVersion ? isSafeToReadFromSource = currentRenderVersion === version : (isSafeToReadFromSource = isSubsetOfLanes(renderLanes, root.mutableReadLanes)) && setWorkInProgressVersion(source, version), isSafeToReadFromSource) {
var snapshot = getSnapshot(source._source);
@ -6278,10 +6278,10 @@
}
function updateForwardRef(current, workInProgress, Component, nextProps, renderLanes) {
if (workInProgress.type !== workInProgress.elementType) {
var rendering, nextChildren, innerPropTypes = Component.propTypes;
var rendering, rendering1, nextChildren, innerPropTypes = Component.propTypes;
innerPropTypes && checkPropTypes(innerPropTypes, nextProps, "prop", getComponentName(Component));
}
var rendering1, render = Component.render, ref = workInProgress.ref;
var render = Component.render, ref = workInProgress.ref;
if (prepareToReadContext(workInProgress, renderLanes), ReactCurrentOwner$1.current = workInProgress, isRendering = !0, nextChildren = renderWithHooks(current, workInProgress, render, nextProps, ref, renderLanes), 1 & workInProgress.mode) {
disableLogs();
try {
@ -6294,7 +6294,7 @@
}
function updateMemoComponent(current, workInProgress, Component, nextProps, updateLanes, renderLanes) {
if (null === current) {
var type, type1 = Component.type;
var a, b, type, type1 = Component.type;
if (type = type1, "function" == typeof type && !shouldConstruct$1(type) && void 0 === type.defaultProps && null === Component.compare && void 0 === Component.defaultProps) {
var resolvedType = type1;
return resolvedType = resolveFunctionForHotReloading(type1), workInProgress.tag = 15, workInProgress.type = resolvedType, validateFunctionComponentInDev(workInProgress, type1), updateSimpleMemoComponent(current, workInProgress, resolvedType, nextProps, updateLanes, renderLanes);
@ -6306,7 +6306,7 @@
}
var _type = Component.type, _innerPropTypes = _type.propTypes;
_innerPropTypes && checkPropTypes(_innerPropTypes, nextProps, "prop", getComponentName(_type));
var a, b, currentChild = current.child;
var currentChild = current.child;
if (a = updateLanes, b = renderLanes, (a & b) == 0) {
var prevProps = currentChild.memoizedProps, compare = Component.compare;
if ((compare = null !== compare ? compare : shallowEqual)(prevProps, nextProps) && current.ref === workInProgress.ref) return bailoutOnAlreadyFinishedWork(current, workInProgress, renderLanes);
@ -6366,10 +6366,10 @@
}
function updateFunctionComponent(current, workInProgress, Component, nextProps, renderLanes) {
if (workInProgress.type !== workInProgress.elementType) {
var rendering, context, nextChildren, innerPropTypes = Component.propTypes;
var rendering, rendering1, context, nextChildren, innerPropTypes = Component.propTypes;
innerPropTypes && checkPropTypes(innerPropTypes, nextProps, "prop", getComponentName(Component));
}
var rendering1, unmaskedContext = getUnmaskedContext(workInProgress, Component, !0);
var unmaskedContext = getUnmaskedContext(workInProgress, Component, !0);
if (context = getMaskedContext(workInProgress, unmaskedContext), prepareToReadContext(workInProgress, renderLanes), ReactCurrentOwner$1.current = workInProgress, isRendering = !0, nextChildren = renderWithHooks(current, workInProgress, Component, nextProps, context, renderLanes), 1 & workInProgress.mode) {
disableLogs();
try {
@ -6483,7 +6483,7 @@
return (set = current.childLanes) & ~renderLanes;
}
function updateSuspenseComponent(current, workInProgress, renderLanes) {
var parentContext, parentContext1, fiber, nextProps = workInProgress.pendingProps;
var parentContext, parentContext1, nextProps = workInProgress.pendingProps;
fiber = workInProgress, shouldSuspendImpl(fiber) && (workInProgress.flags |= 64);
var suspenseContext = suspenseStackCursor.current, showFallback = !1;
if ((64 & workInProgress.flags) != 0 || function(suspenseContext, current, workInProgress, renderLanes) {
@ -6491,7 +6491,7 @@
return (null === current || null !== current.memoizedState) && (2 & suspenseContext) != 0;
}(suspenseContext, current) ? (showFallback = !0, workInProgress.flags &= -65) : (null === current || null !== current.memoizedState) && void 0 !== nextProps.fallback && !0 !== nextProps.unstable_avoidThisFallback && (suspenseContext = 1 | (parentContext = suspenseContext)), pushSuspenseContext(workInProgress, suspenseContext = 1 & (parentContext1 = suspenseContext)), null === current) {
void 0 !== nextProps.fallback && tryToClaimNextHydratableInstance(workInProgress);
var workInProgress1, primaryChildren, renderLanes1, primaryChildFragment, nextPrimaryChildren = nextProps.children, nextFallbackChildren = nextProps.fallback;
var fiber, workInProgress1, primaryChildren, renderLanes1, primaryChildFragment, nextPrimaryChildren = nextProps.children, nextFallbackChildren = nextProps.fallback;
if (showFallback) {
var fallbackFragment = mountSuspenseFallbackChildren(workInProgress, nextPrimaryChildren, nextFallbackChildren, renderLanes);
return workInProgress.child.memoizedState = mountSuspenseOffscreenState(renderLanes), workInProgress.memoizedState = SUSPENDED_MARKER, fallbackFragment;
@ -6572,7 +6572,7 @@
} : (renderState.isBackwards = isBackwards, renderState.rendering = null, renderState.renderingStartTime = 0, renderState.last = lastContentRow, renderState.tail = tail, renderState.tailMode = tailMode, renderState.lastEffect = lastEffectBeforeRendering);
}
function updateSuspenseListComponent(current, workInProgress, renderLanes) {
var tailMode, revealOrder, nextProps = workInProgress.pendingProps, revealOrder1 = nextProps.revealOrder, tailMode1 = nextProps.tail, newChildren = nextProps.children;
var nextProps = workInProgress.pendingProps, revealOrder = nextProps.revealOrder, tailMode = nextProps.tail, newChildren = nextProps.children;
!function(revealOrder) {
if (void 0 !== revealOrder && "forwards" !== revealOrder && "backwards" !== revealOrder && "together" !== revealOrder && !didWarnAboutRevealOrder[revealOrder]) {
if (didWarnAboutRevealOrder[revealOrder] = !0, "string" == typeof revealOrder) switch(revealOrder.toLowerCase()){
@ -6590,7 +6590,7 @@
}
else error('%s is not a supported value for revealOrder on <SuspenseList />. Did you mean "together", "forwards" or "backwards"?', revealOrder);
}
}(revealOrder1), void 0 === tailMode1 || didWarnAboutTailOptions[tailMode1] || ("collapsed" !== tailMode1 && "hidden" !== tailMode1 ? (didWarnAboutTailOptions[tailMode1] = !0, error('"%s" is not a supported value for tail on <SuspenseList />. Did you mean "collapsed" or "hidden"?', tailMode1)) : "forwards" !== revealOrder1 && "backwards" !== revealOrder1 && (didWarnAboutTailOptions[tailMode1] = !0, error('<SuspenseList tail="%s" /> is only valid if revealOrder is "forwards" or "backwards". Did you mean to specify revealOrder="forwards"?', tailMode1))), function(children, revealOrder) {
}(revealOrder), tailMode1 = tailMode, revealOrder1 = revealOrder, void 0 === tailMode1 || didWarnAboutTailOptions[tailMode1] || ("collapsed" !== tailMode1 && "hidden" !== tailMode1 ? (didWarnAboutTailOptions[tailMode1] = !0, error('"%s" is not a supported value for tail on <SuspenseList />. Did you mean "collapsed" or "hidden"?', tailMode1)) : "forwards" !== revealOrder1 && "backwards" !== revealOrder1 && (didWarnAboutTailOptions[tailMode1] = !0, error('<SuspenseList tail="%s" /> is only valid if revealOrder is "forwards" or "backwards". Did you mean to specify revealOrder="forwards"?', tailMode1))), function(children, revealOrder) {
if (("forwards" === revealOrder || "backwards" === revealOrder) && null != children && !1 !== children) {
if (Array.isArray(children)) {
for(var i = 0; i < children.length; i++)if (!validateSuspenseListNestedChild(children[i], i)) return;
@ -6605,8 +6605,8 @@
} else error('A single row was passed to a <SuspenseList revealOrder="%s" />. This is not useful since it needs multiple rows. Did you mean to pass multiple children or an array?', revealOrder);
}
}
}(newChildren, revealOrder1), reconcileChildren(current, workInProgress, newChildren, renderLanes);
var parentContext, suspenseContext = suspenseStackCursor.current;
}(newChildren, revealOrder), reconcileChildren(current, workInProgress, newChildren, renderLanes);
var suspenseContext = suspenseStackCursor.current;
if ((2 & (parentContext = suspenseContext)) != 0 ? (suspenseContext = 1 & (parentContext1 = suspenseContext) | 2, workInProgress.flags |= 64) : (null !== current && (64 & current.flags) != 0 && function(workInProgress, firstChild, renderLanes) {
for(var node = firstChild; null !== node;){
if (13 === node.tag) null !== node.memoizedState && scheduleWorkOnFiber(node, renderLanes);
@ -6623,16 +6623,16 @@
node.sibling.return = node.return, node = node.sibling;
}
}(workInProgress, workInProgress.child, renderLanes), suspenseContext = 1 & (parentContext2 = suspenseContext)), pushSuspenseContext(workInProgress, suspenseContext), (2 & workInProgress.mode) == 0) workInProgress.memoizedState = null;
else switch(revealOrder1){
else switch(revealOrder){
case "forwards":
var parentContext1, parentContext2, tail, lastContentRow = function(firstChild) {
var tailMode1, revealOrder1, parentContext, parentContext1, parentContext2, tail, lastContentRow = function(firstChild) {
for(var row = firstChild, lastContentRow = null; null !== row;){
var currentRow = row.alternate;
null !== currentRow && null === findFirstSuspended(currentRow) && (lastContentRow = row), row = row.sibling;
}
return lastContentRow;
}(workInProgress.child);
null === lastContentRow ? (tail = workInProgress.child, workInProgress.child = null) : (tail = lastContentRow.sibling, lastContentRow.sibling = null), initSuspenseListRenderState(workInProgress, !1, tail, lastContentRow, tailMode1, workInProgress.lastEffect);
null === lastContentRow ? (tail = workInProgress.child, workInProgress.child = null) : (tail = lastContentRow.sibling, lastContentRow.sibling = null), initSuspenseListRenderState(workInProgress, !1, tail, lastContentRow, tailMode, workInProgress.lastEffect);
break;
case "backwards":
var _tail = null, row = workInProgress.child;
@ -6645,7 +6645,7 @@
var nextRow = row.sibling;
row.sibling = _tail, _tail = row, row = nextRow;
}
initSuspenseListRenderState(workInProgress, !0, _tail, null, tailMode1, workInProgress.lastEffect);
initSuspenseListRenderState(workInProgress, !0, _tail, null, tailMode, workInProgress.lastEffect);
break;
case "together":
initSuspenseListRenderState(workInProgress, !1, null, null, void 0, workInProgress.lastEffect);
@ -6811,13 +6811,13 @@
case 3:
return function(current, workInProgress, renderLanes) {
pushHostRootContext(workInProgress);
var updateQueue = workInProgress.updateQueue;
var fiber, updateQueue = workInProgress.updateQueue;
if (!(null !== current && null !== updateQueue)) throw Error("If the root does not have an updateQueue, we should have already bailed out. This error is likely caused by a bug in React. Please file an issue.");
var nextProps = workInProgress.pendingProps, prevState = workInProgress.memoizedState, prevChildren = null !== prevState ? prevState.element : null;
cloneUpdateQueue(current, workInProgress), processUpdateQueue(workInProgress, nextProps, null, renderLanes);
var nextChildren = workInProgress.memoizedState.element;
if (nextChildren === prevChildren) return resetHydrationState(), bailoutOnAlreadyFinishedWork(current, workInProgress, renderLanes);
var fiber, root = workInProgress.stateNode;
var root = workInProgress.stateNode;
if (root.hydrate && (nextHydratableInstance = getFirstHydratableChild(workInProgress.stateNode.containerInfo), hydrationParentFiber = workInProgress, isHydrating = !0, 1)) {
var mutableSourceEagerHydrationData = root.mutableSourceEagerHydrationData;
if (null != mutableSourceEagerHydrationData) for(var i = 0; i < mutableSourceEagerHydrationData.length; i += 2)setWorkInProgressVersion(mutableSourceEagerHydrationData[i], mutableSourceEagerHydrationData[i + 1]);
@ -7082,10 +7082,10 @@
} else {
var hostInst, node, node1, props, fiber, rootContainerInstance1, hostContext, instance, type1, props1, rootContainerInstance2, hostContext1, internalInstanceHandle, parentNamespace, updatePayload, domElement, type2, props2, rootContainerInstance3, instance1 = function(type, props, rootContainerInstance, hostContext, internalInstanceHandle) {
if (validateDOMNesting(type, null, hostContext.ancestorInfo), "string" == typeof props.children || "number" == typeof props.children) {
var parentNamespace, string = "" + props.children, ownAncestorInfo = updatedAncestorInfo(hostContext.ancestorInfo, type);
var hostInst, node, node1, props1, parentNamespace, string = "" + props.children, ownAncestorInfo = updatedAncestorInfo(hostContext.ancestorInfo, type);
validateDOMNesting(null, string, ownAncestorInfo);
}
var hostInst, node, node1, props1, domElement = function(type, props, rootContainerElement, parentNamespace) {
var domElement = function(type, props, rootContainerElement, parentNamespace) {
var isCustomComponentTag, domElement, ownerDocument = getOwnerDocumentFromRootContainer(rootContainerElement), namespaceURI = parentNamespace;
if (namespaceURI === HTML_NAMESPACE$1 && (namespaceURI = getIntrinsicNamespace(type)), namespaceURI === HTML_NAMESPACE$1) {
if ((isCustomComponentTag = isCustomComponent(type, props)) || type === type.toLowerCase() || error("<%s /> is using incorrect casing. Use PascalCase for React components, or lowercase for HTML elements.", type), "script" === type) {
@ -7190,16 +7190,16 @@
if ("string" != typeof newProps && !(null !== workInProgress.stateNode)) throw Error("We must have new props for new mounts. This error is likely caused by a bug in React. Please file an issue.");
var hostInst1, node2, text, rootContainerInstance4, hostContext2, internalInstanceHandle1, text1, rootContainerElement, textNode, _rootContainerInstance = getRootHostContainer(), _currentHostContext = getHostContext();
if (popHydrationState(workInProgress)) (function(fiber) {
var hostInst, node, textInstance, text, internalInstanceHandle, textNode, text1, textInstance1 = fiber.stateNode, textContent = fiber.memoizedProps, shouldUpdate = (hostInst = fiber, (node = textInstance1)[internalInstanceKey] = hostInst, textInstance1.nodeValue !== textContent);
var textInstance = fiber.stateNode, textContent = fiber.memoizedProps, shouldUpdate = (textInstance1 = textInstance, text = textContent, hostInst = internalInstanceHandle = fiber, (node = textInstance1)[internalInstanceKey] = hostInst, textNode = textInstance1, text1 = text, textNode.nodeValue !== text1);
if (shouldUpdate) {
var returnFiber = hydrationParentFiber;
if (null !== returnFiber) switch(returnFiber.tag){
case 3:
returnFiber.stateNode.containerInfo, textInstance2 = textInstance1, text2 = textContent, warnForUnmatchedText(textInstance2, text2);
returnFiber.stateNode.containerInfo, textInstance2 = textInstance, text2 = textContent, warnForUnmatchedText(textInstance2, text2);
break;
case 5:
var parentContainer, textInstance2, text2, parentType, parentProps, parentInstance, textInstance3, text3, parentType1 = returnFiber.type, parentProps1 = returnFiber.memoizedProps, parentInstance1 = returnFiber.stateNode;
!0 !== parentProps1[SUPPRESS_HYDRATION_WARNING$1] && warnForUnmatchedText(textInstance1, textContent);
var hostInst, node, textInstance1, text, internalInstanceHandle, textNode, text1, parentContainer, textInstance2, text2, parentType, parentProps, parentInstance, textInstance3, text3, parentType1 = returnFiber.type, parentProps1 = returnFiber.memoizedProps, parentInstance1 = returnFiber.stateNode;
!0 !== parentProps1[SUPPRESS_HYDRATION_WARNING$1] && warnForUnmatchedText(textInstance, textContent);
}
}
return shouldUpdate;
@ -7492,7 +7492,7 @@
var currentSource = sourceFiber.alternate;
currentSource ? (sourceFiber.updateQueue = currentSource.updateQueue, sourceFiber.memoizedState = currentSource.memoizedState, sourceFiber.lanes = currentSource.lanes) : (sourceFiber.updateQueue = null, sourceFiber.memoizedState = null);
}
var parentContext, hasInvisibleParentBoundary = (1 & (parentContext = suspenseStackCursor.current)) != 0, _workInProgress = returnFiber;
var hasInvisibleParentBoundary = (1 & (parentContext = suspenseStackCursor.current)) != 0, _workInProgress = returnFiber;
do {
if (13 === _workInProgress.tag && shouldCaptureSuspense(_workInProgress, hasInvisibleParentBoundary)) {
var wakeables = _workInProgress.updateQueue;
@ -7504,7 +7504,7 @@
if (_workInProgress.flags |= 64, sourceFiber.flags |= 16384, sourceFiber.flags &= -2981, 1 === sourceFiber.tag) {
if (null === sourceFiber.alternate) sourceFiber.tag = 17;
else {
var a, update = createUpdate(-1, 1);
var parentContext, a, update = createUpdate(-1, 1);
update.tag = 2, enqueueUpdate(sourceFiber, update);
}
}
@ -7523,9 +7523,9 @@
do {
switch(workInProgress.tag){
case 3:
var _errorInfo = value;
var a1, b, _errorInfo = value;
workInProgress.flags |= 4096;
var a1, b, lane = pickArbitraryLane(rootRenderLanes);
var lane = pickArbitraryLane(rootRenderLanes);
workInProgress.lanes = (a1 = workInProgress.lanes) | lane;
var _update = createRootErrorUpdate(workInProgress, _errorInfo, lane);
enqueueCapturedUpdate(workInProgress, _update);
@ -8149,11 +8149,11 @@
}
function performConcurrentWorkOnRoot(root) {
if (currentEventTime = -1, currentEventWipLanes = 0, currentEventPendingLanes = 0, (48 & executionContext) != 0) throw Error("Should not already be working.");
var originalCallbackNode = root.callbackNode;
var a, b, originalCallbackNode = root.callbackNode;
if (flushPassiveEffects() && root.callbackNode !== originalCallbackNode) return null;
var lanes = getNextLanes(root, root === workInProgressRoot ? workInProgressRootRenderLanes : 0);
if (0 === lanes) return null;
var a, b, exitStatus = function(root, lanes) {
var exitStatus = function(root, lanes) {
var prevExecutionContext = executionContext;
executionContext |= 16;
var prevDispatcher = pushDispatcher();
@ -8411,9 +8411,9 @@
entanglements[index] = 0, eventTimes[index] = -1, expirationTimes[index] = -1, lanes &= ~lane;
}
}(root, remainingLanes), null !== rootsWithPendingDiscreteUpdates && (24 & (lanes1 = remainingLanes)) == 0 && rootsWithPendingDiscreteUpdates.has(root) && rootsWithPendingDiscreteUpdates.delete(root), root === workInProgressRoot && (workInProgressRoot = null, workInProgress = null, workInProgressRootRenderLanes = 0), finishedWork.flags > 1 ? null !== finishedWork.lastEffect ? (finishedWork.lastEffect.nextEffect = finishedWork, firstEffect = finishedWork.firstEffect) : firstEffect = finishedWork : firstEffect = finishedWork.firstEffect, null !== firstEffect) {
var a, b, lanes1, containerInfo, prevExecutionContext = executionContext;
var input, selection, a, b, lanes1, containerInfo, focusedElem, containerInfo1, prevExecutionContext = executionContext;
executionContext |= 32;
var containerInfo1, focusedElem, input, selection, prevInteractions = pushInteractions(root);
var prevInteractions = pushInteractions(root);
ReactCurrentOwner$2.current = null, root.containerInfo, eventsEnabled = _enabled, selectionInformation = {
focusedElem: focusedElem = getActiveElementDeep(),
selectionRange: hasSelectionCapabilities(focusedElem) ? (input = focusedElem, ("selectionStart" in input ? {
@ -8463,7 +8463,7 @@
}
while (null !== nextEffect)
root.containerInfo, function(priorSelectionInformation) {
var input, offsets, start, end, node, curFocusedElem = getActiveElementDeep(), priorFocusedElem = priorSelectionInformation.focusedElem, priorSelectionRange = priorSelectionInformation.selectionRange;
var node, curFocusedElem = getActiveElementDeep(), priorFocusedElem = priorSelectionInformation.focusedElem, priorSelectionRange = priorSelectionInformation.selectionRange;
if (curFocusedElem !== priorFocusedElem && priorFocusedElem && priorFocusedElem.ownerDocument && function containsNode(outerNode, innerNode) {
if (!outerNode || !innerNode) return !1;
if (outerNode === innerNode) return !0;
@ -8489,7 +8489,7 @@
}
}
}(input, offsets));
for(var ancestors = [], ancestor = priorFocusedElem; ancestor = ancestor.parentNode;)1 === ancestor.nodeType && ancestors.push({
for(var input, offsets, start, end, ancestors = [], ancestor = priorFocusedElem; ancestor = ancestor.parentNode;)1 === ancestor.nodeType && ancestors.push({
element: ancestor,
left: ancestor.scrollLeft,
top: ancestor.scrollTop
@ -9241,9 +9241,9 @@
this._internalRoot = createRootImpl(container, tag, options);
}
function createRootImpl(container, tag, options) {
var hydrate = null != options && !0 === options.hydrate;
var containerInfo, tag1, hydrate, containerInfo1, tag2, hydrate1, root, tag3, mode, uninitializedFiber, hostRoot, node, hydrate2 = null != options && !0 === options.hydrate;
null != options && options.hydrationOptions;
var containerInfo, tag1, hydrate1, containerInfo1, tag2, hydrate2, root, tag3, mode, uninitializedFiber, hostRoot, node, mutableSources = null != options && null != options.hydrationOptions && options.hydrationOptions.mutableSources || null, root1 = (root = new FiberRootNode(container, tag, hydrate), mode = 2 === tag ? 7 : 1 === tag ? 3 : 0, isDevToolsPresent && (mode |= 8), uninitializedFiber = createFiber(3, null, null, mode), root.current = uninitializedFiber, uninitializedFiber.stateNode = root, initializeUpdateQueue(uninitializedFiber), root);
var mutableSources = null != options && null != options.hydrationOptions && options.hydrationOptions.mutableSources || null, root1 = (root = new FiberRootNode(container, tag, hydrate2), mode = 2 === tag ? 7 : 1 === tag ? 3 : 0, isDevToolsPresent && (mode |= 8), uninitializedFiber = createFiber(3, null, null, mode), root.current = uninitializedFiber, uninitializedFiber.stateNode = root, initializeUpdateQueue(uninitializedFiber), root);
hostRoot = root1.current, (node = container)[internalContainerInstanceKey] = hostRoot, container.nodeType;
var rootContainerElement = 8 === container.nodeType ? container.parentNode : container;
if (listenToAllSupportedEvents(rootContainerElement), mutableSources) for(var i = 0; i < mutableSources.length; i++)registerMutableSourceForHydration(root1, mutableSources[i]);
@ -9314,8 +9314,8 @@
updateContainer(children, fiberRoot, parentComponent, callback);
} else {
if (fiberRoot = (root = container._reactRootContainer = function(container, forceHydrate) {
var container1, options, container2, rootElement, shouldHydrate = forceHydrate || !!((rootElement = getReactRootElementInContainer(container)) && 1 === rootElement.nodeType && rootElement.hasAttribute(ROOT_ATTRIBUTE_NAME));
if (!shouldHydrate) for(var rootSibling, warned = !1; rootSibling = container.lastChild;)!warned && 1 === rootSibling.nodeType && rootSibling.hasAttribute(ROOT_ATTRIBUTE_NAME) && (warned = !0, error("render(): Target node has markup rendered by React, but there are unrelated nodes as well. This is most commonly caused by white-space inserted around server-rendered markup.")), container.removeChild(rootSibling);
var container1, options, shouldHydrate = forceHydrate || (container2 = container, !!((rootElement = getReactRootElementInContainer(container2)) && 1 === rootElement.nodeType && rootElement.hasAttribute(ROOT_ATTRIBUTE_NAME)));
if (!shouldHydrate) for(var container2, rootElement, rootSibling, warned = !1; rootSibling = container.lastChild;)!warned && 1 === rootSibling.nodeType && rootSibling.hasAttribute(ROOT_ATTRIBUTE_NAME) && (warned = !0, error("render(): Target node has markup rendered by React, but there are unrelated nodes as well. This is most commonly caused by white-space inserted around server-rendered markup.")), container.removeChild(rootSibling);
return !shouldHydrate || forceHydrate || warnedAboutHydrateAPI || (warnedAboutHydrateAPI = !0, warn("render(): Calling ReactDOM.render() to hydrate server-rendered markup will stop working in React v18. Replace the ReactDOM.render() call with ReactDOM.hydrate() if you want React to attach to the server HTML.")), new ReactDOMBlockingRoot(container, 0, shouldHydrate ? {
hydrate: !0
} : void 0);
@ -9358,7 +9358,7 @@
var newLanePriority;
return fn();
};
var fn, fn1, fn2, fn3, impl, _batchedUpdatesImpl, _discreteUpdatesImpl, _flushDiscreteUpdatesImpl, _batchedEventUpdatesImpl, didWarnAboutUnstableCreatePortal = !1;
var didWarnAboutUnstableCreatePortal = !1;
function createPortal$1(children, container) {
var key = arguments.length > 2 && void 0 !== arguments[2] ? arguments[2] : null;
if (!isValidContainer(container)) throw Error("Target container is not a DOM element.");

View File

@ -1,6 +1,7 @@
function x() {
if (FOO) {
var var1, var2;
let let1, let2;
let let1;
let let2;
}
}

View File

@ -1,7 +1,7 @@
function f() {
var a = 1,
b = 2,
c = 3;
var a = 1;
var b = 2;
var c = 3;
function g() {}
return g(a, b, c);
}