fix(es/transforms/base): Fix hyigiene (#2421)

swc_ecma_transforms_base:
 - `hygiene`: Considering scoping of `var`.
 - `hygiene`: Avoid creating too many `JsWord` by caching index.
This commit is contained in:
Donny/강동윤 2021-10-13 17:32:37 +09:00 committed by GitHub
parent 029cf056f2
commit 8074c72ce9
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
41 changed files with 2447 additions and 2220 deletions

View File

@ -87,8 +87,6 @@ jobs:
run: cargo check --color always --all --all-targets
test:
name: Test
needs:
- check
runs-on: ${{ matrix.os }}
strategy:
fail-fast: false

2
Cargo.lock generated
View File

@ -2783,7 +2783,7 @@ dependencies = [
[[package]]
name = "swc_ecma_transforms_base"
version = "0.37.1"
version = "0.37.2"
dependencies = [
"once_cell",
"phf",

View File

@ -579,12 +579,12 @@ function wrappy(fn, cb) {
return ret;
}
}
var once_1 = wrappy_1(once2);
var once_1 = wrappy_1(once4);
var strict = wrappy_1(onceStrict);
once2.proto = once2(function() {
once4.proto = once4(function() {
Object.defineProperty(Function.prototype, "once", {
value: function() {
return once2(this);
return once4(this);
},
configurable: true
});
@ -595,7 +595,7 @@ once2.proto = once2(function() {
configurable: true
});
});
function once2(fn) {
function once4(fn) {
var f = function() {
if (f.called) return f.value;
f.called = true;

View File

@ -579,12 +579,12 @@ function wrappy(fn, cb) {
return ret;
}
}
var once_1 = wrappy_1(once2);
var once_1 = wrappy_1(once4);
var strict = wrappy_1(onceStrict);
once2.proto = once2(function() {
once4.proto = once4(function() {
Object.defineProperty(Function.prototype, "once", {
value: function() {
return once2(this);
return once4(this);
},
configurable: true
});
@ -595,7 +595,7 @@ once2.proto = once2(function() {
configurable: true
});
});
function once2(fn) {
function once4(fn) {
var f = function() {
if (f.called) return f.value;
f.called = true;

View File

@ -1842,11 +1842,11 @@ var ia = Bn((re)=>{
var Re = null, Xl = null, sr = null;
function uu() {
if (sr) return sr;
var e, n = Xl, t = n.length, r, l = "value" in Re ? Re.value : Re.textContent, i = l.length;
for(e = 0; e < t && n[e] === l[e]; e++);
var o = t - e;
var e1, n = Xl, t = n.length, r, l = "value" in Re ? Re.value : Re.textContent, i = l.length;
for(e1 = 0; e1 < t && n[e1] === l[e1]; e1++);
var o = t - e1;
for(r = 1; r <= o && n[t - r] === l[i - r]; r++);
return sr = l.slice(e, 1 < r ? 1 - r : void 0);
return sr = l.slice(e1, 1 < r ? 1 - r : void 0);
}
function ar(e) {
var n = e.keyCode;
@ -2231,15 +2231,15 @@ var ia = Bn((re)=>{
return e && n ? e === n ? !0 : e && e.nodeType === 3 ? !1 : n && n.nodeType === 3 ? Cu(e, n.parentNode) : "contains" in e ? e.contains(n) : e.compareDocumentPosition ? !!(e.compareDocumentPosition(n) & 16) : !1 : !1;
}
function Nu() {
for(var e = window, n = Jt(); n instanceof e.HTMLIFrameElement;){
for(var e1 = window, n = Jt(); n instanceof e1.HTMLIFrameElement;){
try {
var t = typeof n.contentWindow.location.href == "string";
} catch (r) {
t = !1;
}
if (t) e = n.contentWindow;
if (t) e1 = n.contentWindow;
else break;
n = Jt(e.document);
n = Jt(e1.document);
}
return n;
}
@ -3344,7 +3344,7 @@ var ia = Bn((re)=>{
}
var jn = [];
function Pi() {
for(var e = 0; e < jn.length; e++)jn[e]._workInProgressVersionPrimary = null;
for(var e1 = 0; e1 < jn.length; e1++)jn[e1]._workInProgressVersionPrimary = null;
jn.length = 0;
}
var _t = Ge.ReactCurrentDispatcher, ue = Ge.ReactCurrentBatchConfig, Ct = 0, D = null, Y = null, W = null, jr = !1, Nt = !1;
@ -3368,14 +3368,14 @@ var ia = Bn((re)=>{
return e;
}
function ln() {
var e = {
var e1 = {
memoizedState: null,
baseState: null,
baseQueue: null,
queue: null,
next: null
};
return W === null ? D.memoizedState = W = e : W = W.next = e, W;
return W === null ? D.memoizedState = W = e1 : W = W.next = e1, W;
}
function on() {
if (Y === null) {
@ -3473,8 +3473,8 @@ var ia = Bn((re)=>{
return ds(l, n, t);
}), d = s[1], y = s[0];
s = W;
var _ = e.memoizedState, h = _.refs, k = h.getSnapshot, E = _.source;
_ = _.subscribe;
var _1 = e.memoizedState, h = _1.refs, k = h.getSnapshot, E = _1.source;
_1 = _1.subscribe;
var S = D;
return e.memoizedState = {
refs: h,
@ -3510,7 +3510,7 @@ var ia = Bn((re)=>{
}, [
n,
r
]), le(k, t) && le(E, n) && le(_, r) || (e = {
]), le(k, t) && le(E, n) && le(_1, r) || (e = {
pending: null,
dispatch: null,
lastRenderedReducer: ye,
@ -3717,9 +3717,9 @@ var ia = Bn((re)=>{
]), t;
},
useTransition: function() {
var e = Lt(!1), n = e[0];
return e = Xf.bind(null, e[1]), hs(e), [
e,
var e1 = Lt(!1), n = e1[0];
return e1 = Xf.bind(null, e1[1]), hs(e1), [
e1,
n
];
},
@ -3775,10 +3775,10 @@ var ia = Bn((re)=>{
]), t;
},
useTransition: function() {
var e = Pt(ye)[0];
var e1 = Pt(ye)[0];
return [
Fr().current,
e
e1
];
},
useMutableSource: ms,
@ -3815,10 +3815,10 @@ var ia = Bn((re)=>{
]), t;
},
useTransition: function() {
var e = Tt(ye)[0];
var e1 = Tt(ye)[0];
return [
Fr().current,
e
e1
];
},
useMutableSource: ms,
@ -5034,8 +5034,8 @@ Add a <Suspense fallback=...> component higher in the tree to provide a loading
}while (1)
}
function Zs() {
var e = Hr.current;
return Hr.current = Ir, e === null ? Ir : e;
var e1 = Hr.current;
return Hr.current = Ir, e1 === null ? Ir : e1;
}
function It(e, n) {
var t = x;
@ -5267,7 +5267,7 @@ Add a <Suspense fallback=...> component higher in the tree to provide a loading
}
function cc() {
if (zt === null) return !1;
var e = zt;
var e1 = zt;
if (zt = null, (x & 48) != 0) throw Error(v(331));
var n = x;
x |= 32;
@ -5292,7 +5292,7 @@ Add a <Suspense fallback=...> component higher in the tree to provide a loading
Qe(i, s);
}
}
for(u = e.current.firstEffect; u !== null;)e = u.nextEffect, u.nextEffect = null, u.flags & 8 && (u.sibling = null, u.stateNode = null), u = e;
for(u = e1.current.firstEffect; u !== null;)e1 = u.nextEffect, u.nextEffect = null, u.flags & 8 && (u.sibling = null, u.stateNode = null), u = e1;
return x = n, me(), !0;
}
function ta(e, n, t) {
@ -5661,8 +5661,8 @@ Add a <Suspense fallback=...> component higher in the tree to provide a loading
Kr(e, this._internalRoot, null, null);
};
oo.prototype.unmount = function() {
var e = this._internalRoot, n = e.containerInfo;
Kr(null, e, null, function() {
var e1 = this._internalRoot, n = e1.containerInfo;
Kr(null, e1, null, function() {
n[Cn] = null;
});
};

View File

@ -1842,11 +1842,11 @@ var ia = Bn((re)=>{
var Re = null, Xl = null, sr = null;
function uu() {
if (sr) return sr;
var e, n = Xl, t = n.length, r, l = "value" in Re ? Re.value : Re.textContent, i = l.length;
for(e = 0; e < t && n[e] === l[e]; e++);
var o = t - e;
var e1, n = Xl, t = n.length, r, l = "value" in Re ? Re.value : Re.textContent, i = l.length;
for(e1 = 0; e1 < t && n[e1] === l[e1]; e1++);
var o = t - e1;
for(r = 1; r <= o && n[t - r] === l[i - r]; r++);
return sr = l.slice(e, 1 < r ? 1 - r : void 0);
return sr = l.slice(e1, 1 < r ? 1 - r : void 0);
}
function ar(e) {
var n = e.keyCode;
@ -2231,15 +2231,15 @@ var ia = Bn((re)=>{
return e && n ? e === n ? !0 : e && e.nodeType === 3 ? !1 : n && n.nodeType === 3 ? Cu(e, n.parentNode) : "contains" in e ? e.contains(n) : e.compareDocumentPosition ? !!(e.compareDocumentPosition(n) & 16) : !1 : !1;
}
function Nu() {
for(var e = window, n = Jt(); n instanceof e.HTMLIFrameElement;){
for(var e1 = window, n = Jt(); n instanceof e1.HTMLIFrameElement;){
try {
var t = typeof n.contentWindow.location.href == "string";
} catch (r) {
t = !1;
}
if (t) e = n.contentWindow;
if (t) e1 = n.contentWindow;
else break;
n = Jt(e.document);
n = Jt(e1.document);
}
return n;
}
@ -3344,7 +3344,7 @@ var ia = Bn((re)=>{
}
var jn = [];
function Pi() {
for(var e = 0; e < jn.length; e++)jn[e]._workInProgressVersionPrimary = null;
for(var e1 = 0; e1 < jn.length; e1++)jn[e1]._workInProgressVersionPrimary = null;
jn.length = 0;
}
var _t = Ge.ReactCurrentDispatcher, ue = Ge.ReactCurrentBatchConfig, Ct = 0, D = null, Y = null, W = null, jr = !1, Nt = !1;
@ -3368,14 +3368,14 @@ var ia = Bn((re)=>{
return e;
}
function ln() {
var e = {
var e1 = {
memoizedState: null,
baseState: null,
baseQueue: null,
queue: null,
next: null
};
return W === null ? D.memoizedState = W = e : W = W.next = e, W;
return W === null ? D.memoizedState = W = e1 : W = W.next = e1, W;
}
function on() {
if (Y === null) {
@ -3473,8 +3473,8 @@ var ia = Bn((re)=>{
return ds(l, n, t);
}), d = s[1], y = s[0];
s = W;
var _ = e.memoizedState, h = _.refs, k = h.getSnapshot, E = _.source;
_ = _.subscribe;
var _1 = e.memoizedState, h = _1.refs, k = h.getSnapshot, E = _1.source;
_1 = _1.subscribe;
var S = D;
return e.memoizedState = {
refs: h,
@ -3510,7 +3510,7 @@ var ia = Bn((re)=>{
}, [
n,
r
]), le(k, t) && le(E, n) && le(_, r) || (e = {
]), le(k, t) && le(E, n) && le(_1, r) || (e = {
pending: null,
dispatch: null,
lastRenderedReducer: ye,
@ -3717,9 +3717,9 @@ var ia = Bn((re)=>{
]), t;
},
useTransition: function() {
var e = Lt(!1), n = e[0];
return e = Xf.bind(null, e[1]), hs(e), [
e,
var e1 = Lt(!1), n = e1[0];
return e1 = Xf.bind(null, e1[1]), hs(e1), [
e1,
n
];
},
@ -3775,10 +3775,10 @@ var ia = Bn((re)=>{
]), t;
},
useTransition: function() {
var e = Pt(ye)[0];
var e1 = Pt(ye)[0];
return [
Fr().current,
e
e1
];
},
useMutableSource: ms,
@ -3815,10 +3815,10 @@ var ia = Bn((re)=>{
]), t;
},
useTransition: function() {
var e = Tt(ye)[0];
var e1 = Tt(ye)[0];
return [
Fr().current,
e
e1
];
},
useMutableSource: ms,
@ -5034,8 +5034,8 @@ Add a <Suspense fallback=...> component higher in the tree to provide a loading
}while (1)
}
function Zs() {
var e = Hr.current;
return Hr.current = Ir, e === null ? Ir : e;
var e1 = Hr.current;
return Hr.current = Ir, e1 === null ? Ir : e1;
}
function It(e, n) {
var t = x;
@ -5267,7 +5267,7 @@ Add a <Suspense fallback=...> component higher in the tree to provide a loading
}
function cc() {
if (zt === null) return !1;
var e = zt;
var e1 = zt;
if (zt = null, (x & 48) != 0) throw Error(v(331));
var n = x;
x |= 32;
@ -5292,7 +5292,7 @@ Add a <Suspense fallback=...> component higher in the tree to provide a loading
Qe(i, s);
}
}
for(u = e.current.firstEffect; u !== null;)e = u.nextEffect, u.nextEffect = null, u.flags & 8 && (u.sibling = null, u.stateNode = null), u = e;
for(u = e1.current.firstEffect; u !== null;)e1 = u.nextEffect, u.nextEffect = null, u.flags & 8 && (u.sibling = null, u.stateNode = null), u = e1;
return x = n, me(), !0;
}
function ta(e, n, t) {
@ -5661,8 +5661,8 @@ Add a <Suspense fallback=...> component higher in the tree to provide a loading
Kr(e, this._internalRoot, null, null);
};
oo.prototype.unmount = function() {
var e = this._internalRoot, n = e.containerInfo;
Kr(null, e, null, function() {
var e1 = this._internalRoot, n = e1.containerInfo;
Kr(null, e1, null, function() {
n[Cn] = null;
});
};

View File

@ -4260,8 +4260,8 @@ class Range {
if (typeof version === "string") {
version = new SemVer(version, this.options);
}
for(var i = 0; i < this.set.length; i++){
if (testSet(this.set[i], version, this.options)) {
for(var i1 = 0; i1 < this.set.length; i1++){
if (testSet(this.set[i1], version, this.options)) {
return true;
}
}
@ -4533,8 +4533,8 @@ function minVersion(range, optionsOrLoose) {
return minver;
}
minver = null;
for(var i = 0; i < range.set.length; ++i){
var comparators = range.set[i];
for(var i1 = 0; i1 < range.set.length; ++i1){
var comparators = range.set[i1];
comparators.forEach((comparator)=>{
var compver = new SemVer(comparator.semver.version);
switch(comparator.operator){

View File

@ -4272,8 +4272,8 @@ class Range {
if (typeof version === "string") {
version = new SemVer(version, this.options);
}
for(var i = 0; i < this.set.length; i++){
if (testSet(this.set[i], version, this.options)) {
for(var i1 = 0; i1 < this.set.length; i1++){
if (testSet(this.set[i1], version, this.options)) {
return true;
}
}
@ -4545,8 +4545,8 @@ function minVersion(range, optionsOrLoose) {
return minver;
}
minver = null;
for(var i = 0; i < range.set.length; ++i){
var comparators = range.set[i];
for(var i1 = 0; i1 < range.set.length; ++i1){
var comparators = range.set[i1];
comparators.forEach((comparator)=>{
var compver = new SemVer(comparator.semver.version);
switch(comparator.operator){

View File

@ -564,7 +564,7 @@
var ref = PageComponent.pageConfig || {
}, title = ref.title, scrollToTop = ref.scrollToTop;
return function(props) {
var ref = _react.useState(window.__ICE_PAGE_PROPS__), data = ref[0], setData = ref[1];
var ref1 = _react.useState(window.__ICE_PAGE_PROPS__), data = ref1[0], setData = ref1[1];
return _react.useEffect(function() {
title && (document.title = title), scrollToTop && window.scrollTo(0, 0), window.__ICE_PAGE_PROPS__ ? window.__ICE_PAGE_PROPS__ = null : PageComponent.getInitialProps && swcHelpers.asyncToGenerator(_regeneratorRuntime.default.mark(function _callee() {
var _location, href, origin, pathname, search, curPath, query, ssrError, initialContext, result;
@ -2819,7 +2819,7 @@
if (TypedArray[KEY] && !forced) return;
try {
return redefine(TypedArray, KEY, forced ? property : NATIVE_ARRAY_BUFFER_VIEWS && TypedArray[KEY] || property);
} catch (error1) {
} catch (error2) {
}
}
for(ARRAY in TypedArrayConstructorsList)(TypedArrayConstructor = global[ARRAY]) && (!TypedArrayConstructor[KEY] || forced) && redefine(TypedArrayConstructor, KEY, property);
@ -8290,13 +8290,13 @@
}), index = 0; index < 516; index++)if (array[index] !== expected[index]) return !0;
});
exportTypedArrayMethod("sort", function(comparefn) {
var comparefn1, index, array = this;
var comparefn2, index, array = this;
if (void 0 !== comparefn && aCallable(comparefn), STABLE_SORT) return nativeSort.call(array, comparefn);
aTypedArray(array);
var arrayLength = toLength(array.length), items = Array(arrayLength);
for(index = 0; index < arrayLength; index++)items[index] = array[index];
for(index = 0, items = internalSort(array, (comparefn1 = comparefn, function(x, y) {
return void 0 !== comparefn1 ? +comparefn1(x, y) || 0 : y != y ? -1 : x != x ? 1 : 0 === x && 0 === y ? 1 / x > 0 && 1 / y < 0 ? 1 : -1 : x > y;
for(index = 0, items = internalSort(array, (comparefn2 = comparefn, function(x, y) {
return void 0 !== comparefn2 ? +comparefn2(x, y) || 0 : y != y ? -1 : x != x ? 1 : 0 === x && 0 === y ? 1 / x > 0 && 1 / y < 0 ? 1 : -1 : x > y;
})); index < arrayLength; index++)array[index] = items[index];
return array;
}, !STABLE_SORT || ACCEPT_INCORRECT_ARGUMENTS);
@ -8467,7 +8467,7 @@
if (CollectionPrototype[TO_STRING_TAG] || createNonEnumerableProperty(CollectionPrototype, TO_STRING_TAG, COLLECTION_NAME), DOMIterables[COLLECTION_NAME]) {
for(var METHOD_NAME in ArrayIteratorMethods)if (CollectionPrototype[METHOD_NAME] !== ArrayIteratorMethods[METHOD_NAME]) try {
createNonEnumerableProperty(CollectionPrototype, METHOD_NAME, ArrayIteratorMethods[METHOD_NAME]);
} catch (error1) {
} catch (error2) {
CollectionPrototype[METHOD_NAME] = ArrayIteratorMethods[METHOD_NAME];
}
}
@ -9332,13 +9332,13 @@
}), visibleListeners = {
};
function addPageLifeCycle(cycle, callback) {
var _a, pathname = lib_router.current.pathname;
visibleListeners[pathname] || (visibleListeners[pathname] = ((_a = {
}).show = [], _a.hide = [], _a)), visibleListeners[pathname][cycle].push(callback);
var _a1, pathname = lib_router.current.pathname;
visibleListeners[pathname] || (visibleListeners[pathname] = ((_a1 = {
}).show = [], _a1.hide = [], _a1)), visibleListeners[pathname][cycle].push(callback);
}
function pageLifeCycles_emit(cycle, pathname) {
for(var _a, args = [], _i = 2; _i < arguments.length; _i++)args[_i - 2] = arguments[_i];
if (visibleListeners[pathname] && visibleListeners[pathname][cycle]) for(var i = 0, l = visibleListeners[pathname][cycle].length; i < l; i++)(_a = visibleListeners[pathname][cycle])[i].apply(_a, args);
for(var _a1, args = [], _i = 2; _i < arguments.length; _i++)args[_i - 2] = arguments[_i];
if (visibleListeners[pathname] && visibleListeners[pathname][cycle]) for(var i = 0, l = visibleListeners[pathname][cycle].length; i < l; i++)(_a1 = visibleListeners[pathname][cycle])[i].apply(_a1, args);
}
function createPageLifeCycle(useEffect) {
return function(cycle, callback) {
@ -9413,7 +9413,7 @@
}) : (0, esm_history.createMemoryHistory)();
}, initHistory = (createHistory = createHistory1, function(appConfig, initialContext) {
void 0 === initialContext && (initialContext = null), appConfig.router || (appConfig.router = DEFAULT_APP_CONFIG.router);
var router = appConfig.router, _a = router.type, type = void 0 === _a ? DEFAULT_APP_CONFIG.router.type : _a, basename = router.basename, customHistory = router.history, newHistory = createHistory({
var router1 = appConfig.router, _a1 = router1.type, type = void 0 === _a1 ? DEFAULT_APP_CONFIG.router.type : _a1, basename = router1.basename, customHistory = router1.history, newHistory = createHistory({
type: type,
basename: basename,
location: initialContext ? initialContext.location : null,
@ -9446,7 +9446,7 @@
};
}
function collectAppLifeCycle(appConfig) {
var _a = appConfig.app, onLaunch = _a.onLaunch, onShow = _a.onShow, onError = _a.onError, onHide = _a.onHide, onTabItemClick = _a.onTabItemClick;
var _a1 = appConfig.app, onLaunch = _a1.onLaunch, onShow = _a1.onShow, onError = _a1.onError, onHide = _a1.onHide, onTabItemClick = _a1.onTabItemClick;
addAppLifeCycle("launch", onLaunch), addAppLifeCycle("show", onShow), addAppLifeCycle("error", onError), addAppLifeCycle("hide", onHide), addAppLifeCycle("tabitemclick", onTabItemClick);
}
var runtimeModule_assign = function() {
@ -9979,8 +9979,8 @@
var delta = toIndex - fromIndex;
delta && (forceNextPop = !0, go(delta));
}
var path4 = getHashPath(), encodedPath = encodePath(path4);
path4 !== encodedPath && replaceHashPath(encodedPath);
var path8 = getHashPath(), encodedPath = encodePath(path8);
path8 !== encodedPath && replaceHashPath(encodedPath);
var initialLocation = getDOMLocation(), allPaths = [
createPath(initialLocation)
];
@ -9999,15 +9999,15 @@
var baseTag = document.querySelector("base"), href = "";
return baseTag && baseTag.getAttribute("href") && (href = stripHash(window.location.href)), href + "#" + encodePath(basename + createPath(location));
},
push: function(path3, state) {
var location = createLocation(path3, void 0, void 0, history.location);
push: function(path7, state) {
var location = createLocation(path7, void 0, void 0, history.location);
transitionManager.confirmTransitionTo(location, "PUSH", getUserConfirmation, function(ok) {
if (ok) {
var path, path1 = createPath(location), encodedPath = encodePath(basename + path1);
var path, path2 = createPath(location), encodedPath = encodePath(basename + path2);
if (getHashPath() !== encodedPath) {
ignorePath = path1, path = encodedPath, window.location.hash = path;
ignorePath = path2, path = encodedPath, window.location.hash = path;
var prevIndex = allPaths.lastIndexOf(createPath(history.location)), nextPaths = allPaths.slice(0, prevIndex + 1);
nextPaths.push(path1), allPaths = nextPaths, setState({
nextPaths.push(path2), allPaths = nextPaths, setState({
action: "PUSH",
location: location
});
@ -10283,8 +10283,8 @@
return function(obj, opts) {
for(var path = "", data = obj || {
}, encode = (opts || {
}).pretty ? encodeURIComponentPretty : encodeURIComponent, i = 0; i < tokens.length; i++){
var segment, token = tokens[i];
}).pretty ? encodeURIComponentPretty : encodeURIComponent, i1 = 0; i1 < tokens.length; i1++){
var segment, token = tokens[i1];
if ("string" == typeof token) {
path += token;
continue;
@ -10304,12 +10304,12 @@
throw new TypeError("Expected \"" + token.name + "\" to not be empty");
}
for(var j = 0; j < value.length; j++){
if (segment = encode(value[j]), !matches[i].test(segment)) throw new TypeError("Expected all \"" + token.name + "\" to match \"" + token.pattern + "\", but received `" + JSON.stringify(segment) + "`");
if (segment = encode(value[j]), !matches[i1].test(segment)) throw new TypeError("Expected all \"" + token.name + "\" to match \"" + token.pattern + "\", but received `" + JSON.stringify(segment) + "`");
path += (0 === j ? token.prefix : token.delimiter) + segment;
}
continue;
}
if (segment = token.asterisk ? encodeAsterisk(value) : encode(value), !matches[i].test(segment)) throw new TypeError("Expected \"" + token.name + "\" to match \"" + token.pattern + "\", but received \"" + segment + "\"");
if (segment = token.asterisk ? encodeAsterisk(value) : encode(value), !matches[i1].test(segment)) throw new TypeError("Expected \"" + token.name + "\" to match \"" + token.pattern + "\", but received \"" + segment + "\"");
path += token.prefix + segment;
}
return path;
@ -10342,7 +10342,7 @@
return strict || (route = (endsWithDelimiter ? route.slice(0, -delimiter.length) : route) + "(?:" + delimiter + "(?=$))?"), end ? route += "$" : route += strict && endsWithDelimiter ? "" : "(?=" + delimiter + "|$)", attachKeys(new RegExp("^" + route, flags(options)), keys);
}
function pathToRegexp(path, keys, options) {
var path3, keys1, options1;
var path7, keys1, options1;
return (isarray(keys) || (options = keys || options, keys = []), options = options || {
}, path instanceof RegExp) ? (function(path, keys) {
var groups = path.source.match(/\((?!\?)/g);
@ -10360,7 +10360,7 @@
})(path, keys) : isarray(path) ? (function(path, keys, options) {
for(var parts = [], i = 0; i < path.length; i++)parts.push(pathToRegexp(path[i], keys, options).source);
return attachKeys(new RegExp("(?:" + parts.join("|") + ")", flags(options)), keys);
})(path, keys, options) : (path3 = path, keys1 = keys, tokensToRegExp(parse(path3, options1 = options), keys1, options1));
})(path, keys, options) : (path7 = path, keys1 = keys, tokensToRegExp(parse(path7, options1 = options), keys1, options1));
}
},
97671: function(module) {
@ -10930,9 +10930,9 @@
return runtime = (_e = createBaseApp(appConfig, buildConfig, context)).runtime, modifiedAppConfig = _e.appConfig, initAppLifeCycles(), setInitialData(context.initialData), emitLifeCycles(), [
2,
function(runtime, options) {
var mountNode, rootId, _a, _b = options.appConfig, _c = (void 0 === _b ? {
} : _b).app, rootId1 = _c.rootId, mountNode1 = _c.mountNode, App = getRenderApp(runtime, options), appMountNode = (mountNode = mountNode1, rootId = rootId1, mountNode || document.getElementById(rootId) || document.getElementById("ice-container"));
if (null == runtime ? void 0 : runtime.modifyDOMRender) return null === (_a = null == runtime ? void 0 : runtime.modifyDOMRender) || void 0 === _a ? void 0 : _a.call(runtime, {
var mountNode, rootId, _a1, _b1 = options.appConfig, _c1 = (void 0 === _b1 ? {
} : _b1).app, rootId1 = _c1.rootId, mountNode1 = _c1.mountNode, App = getRenderApp(runtime, options), appMountNode = (mountNode = mountNode1, rootId = rootId1, mountNode || document.getElementById(rootId) || document.getElementById("ice-container"));
if (null == runtime ? void 0 : runtime.modifyDOMRender) return null === (_a1 = null == runtime ? void 0 : runtime.modifyDOMRender) || void 0 === _a1 ? void 0 : _a1.call(runtime, {
App: App,
appMountNode: appMountNode
});
@ -11331,10 +11331,10 @@
("number" !== b || Xa(a.ownerDocument) !== a) && (null == c ? a.defaultValue = "" + a._wrapperState.initialValue : a.defaultValue !== "" + c && (a.defaultValue = "" + c));
}
function eb(a, b) {
var a1, b1;
var a2, b1;
return a = m({
children: void 0
}, b), (b = (a1 = b.children, b1 = "", aa.Children.forEach(a1, function(a) {
}, b), (b = (a2 = b.children, b1 = "", aa.Children.forEach(a2, function(a) {
null != a && (b1 += a);
}), b1)) && (a.children = b), a;
}
@ -11603,7 +11603,7 @@
Pb = !0;
}
}), window.addEventListener("test", Qb, Qb), window.removeEventListener("test", Qb, Qb);
} catch (a2) {
} catch (a13) {
Pb = !1;
}
function Rb(a, b, c, d, e, f, g, h, k) {
@ -11956,10 +11956,10 @@
case "mouseover":
return mc = tc(mc, a, b, c, d, e), !0;
case "pointerover":
var f = e.pointerId;
return nc.set(f, tc(nc.get(f) || null, a, b, c, d, e)), !0;
var f1 = e.pointerId;
return nc.set(f1, tc(nc.get(f1) || null, a, b, c, d, e)), !0;
case "gotpointercapture":
return f = e.pointerId, oc.set(f, tc(oc.get(f) || null, a, b, c, d, e)), !0;
return f1 = e.pointerId, oc.set(f1, tc(oc.get(f1) || null, a, b, c, d, e)), !0;
}
return !1;
})(f, a, b, c, d)) return;
@ -11991,11 +11991,11 @@
var kd = null, ld = null, md = null;
function nd() {
if (md) return md;
var a, d, b = ld, c = b.length, e = "value" in kd ? kd.value : kd.textContent, f = e.length;
for(a = 0; a < c && b[a] === e[a]; a++);
var g = c - a;
var a9, d, b = ld, c = b.length, e = "value" in kd ? kd.value : kd.textContent, f = e.length;
for(a9 = 0; a9 < c && b[a9] === e[a9]; a9++);
var g = c - a9;
for(d = 1; d <= g && b[c - d] === e[f - d]; d++);
return md = e.slice(a, 1 < d ? 1 - d : void 0);
return md = e.slice(a9, 1 < d ? 1 - d : void 0);
}
function od(a) {
var b = a.keyCode;
@ -12015,12 +12015,12 @@
return m(b.prototype, {
preventDefault: function() {
this.defaultPrevented = !0;
var a = this.nativeEvent;
a && (a.preventDefault ? a.preventDefault() : "unknown" != typeof a.returnValue && (a.returnValue = !1), this.isDefaultPrevented = pd);
var a9 = this.nativeEvent;
a9 && (a9.preventDefault ? a9.preventDefault() : "unknown" != typeof a9.returnValue && (a9.returnValue = !1), this.isDefaultPrevented = pd);
},
stopPropagation: function() {
var a = this.nativeEvent;
a && (a.stopPropagation ? a.stopPropagation() : "unknown" != typeof a.cancelBubble && (a.cancelBubble = !0), this.isPropagationStopped = pd);
var a9 = this.nativeEvent;
a9 && (a9.stopPropagation ? a9.stopPropagation() : "unknown" != typeof a9.cancelBubble && (a9.cancelBubble = !0), this.isPropagationStopped = pd);
},
persist: function() {
},
@ -12355,15 +12355,15 @@
return !!a && !!b && (a === b || (!a || 3 !== a.nodeType) && (b && 3 === b.nodeType ? Me(a, b.parentNode) : "contains" in a ? a.contains(b) : !!a.compareDocumentPosition && !!(16 & a.compareDocumentPosition(b))));
}
function Ne() {
for(var a = window, b = Xa(); b instanceof a.HTMLIFrameElement;){
for(var a9 = window, b = Xa(); b instanceof a9.HTMLIFrameElement;){
try {
var c = "string" == typeof b.contentWindow.location.href;
} catch (d) {
c = !1;
}
if (c) a = b.contentWindow;
if (c) a9 = b.contentWindow;
else break;
b = Xa(a.document);
b = Xa(a9.document);
}
return b;
}
@ -13219,9 +13219,9 @@
if (!d) throw Error(y(147, a));
var e = "" + a;
return null !== b && null !== b.ref && "function" == typeof b.ref && b.ref._stringRef === e ? b.ref : ((b = function(a) {
var b = d.refs;
b === Fg && (b = d.refs = {
}), null === a ? delete b[e] : b[e] = a;
var b2 = d.refs;
b2 === Fg && (b2 = d.refs = {
}), null === a ? delete b2[e] : b2[e] = a;
})._stringRef = e, b);
}
if ("string" != typeof a) throw Error(y(284));
@ -13232,15 +13232,15 @@
function Rg(a, b) {
if ("textarea" !== a.type) throw Error(y(31, "[object Object]" === Object.prototype.toString.call(b) ? "object with keys {" + Object.keys(b).join(", ") + "}" : b));
}
function Sg(a1) {
function Sg(a9) {
function b(b, c) {
if (a1) {
if (a9) {
var d = b.lastEffect;
null !== d ? (d.nextEffect = c, b.lastEffect = c) : b.firstEffect = b.lastEffect = c, c.nextEffect = null, c.flags = 8;
}
}
function c(c, d) {
if (!a1) return null;
if (!a9) return null;
for(; null !== d;)b(c, d), d = d.sibling;
return null;
}
@ -13252,10 +13252,10 @@
return (a = Tg(a, b)).index = 0, a.sibling = null, a;
}
function f1(b, c, d) {
return (b.index = d, a1) ? null !== (d = b.alternate) ? (d = d.index) < c ? (b.flags = 2, c) : d : (b.flags = 2, c) : c;
return (b.index = d, a9) ? null !== (d = b.alternate) ? (d = d.index) < c ? (b.flags = 2, c) : d : (b.flags = 2, c) : c;
}
function g(b) {
return a1 && null === b.alternate && (b.flags = 2), b;
return a9 && null === b.alternate && (b.flags = 2), b;
}
function h(a, b, c, d) {
return null === b || 6 !== b.tag ? ((b = Ug(c, a.mode, d)).return = a, b) : ((b = e(b, c)).return = a, b);
@ -13284,16 +13284,16 @@
return null;
}
function p(a, b, c, d) {
var e = null !== b ? b.key : null;
if ("string" == typeof c || "number" == typeof c) return null !== e ? null : h(a, b, "" + c, d);
var e1 = null !== b ? b.key : null;
if ("string" == typeof c || "number" == typeof c) return null !== e1 ? null : h(a, b, "" + c, d);
if ("object" == typeof c && null !== c) {
switch(c.$$typeof){
case sa:
return c.key === e ? c.type === ua ? n(a, b, c.props.children, d, e) : k(a, b, c, d) : null;
return c.key === e1 ? c.type === ua ? n(a, b, c.props.children, d, e1) : k(a, b, c, d) : null;
case ta:
return c.key === e ? l(a, b, c, d) : null;
return c.key === e1 ? l(a, b, c, d) : null;
}
if (Pg(c) || La(c)) return null !== e ? null : n(a, b, c, d, null);
if (Pg(c) || La(c)) return null !== e1 ? null : n(a, b, c, d, null);
Rg(a, c);
}
return null;
@ -13313,39 +13313,39 @@
return null;
}
return function(a, d, f, h) {
var k = "object" == typeof f && null !== f && f.type === ua && null === f.key;
k && (f = f.props.children);
var l = "object" == typeof f && null !== f;
if (l) switch(f.$$typeof){
var k1 = "object" == typeof f && null !== f && f.type === ua && null === f.key;
k1 && (f = f.props.children);
var l1 = "object" == typeof f && null !== f;
if (l1) switch(f.$$typeof){
case sa:
a: {
for(l = f.key, k = d; null !== k;){
if (k.key === l) {
switch(k.tag){
for(l1 = f.key, k1 = d; null !== k1;){
if (k1.key === l1) {
switch(k1.tag){
case 7:
if (f.type === ua) {
c(a, k.sibling), (d = e(k, f.props.children)).return = a, a = d;
c(a, k1.sibling), (d = e(k1, f.props.children)).return = a, a = d;
break a;
}
break;
default:
if (k.elementType === f.type) {
c(a, k.sibling), (d = e(k, f.props)).ref = Qg(a, k, f), d.return = a, a = d;
if (k1.elementType === f.type) {
c(a, k1.sibling), (d = e(k1, f.props)).ref = Qg(a, k1, f), d.return = a, a = d;
break a;
}
}
c(a, k);
c(a, k1);
break;
}
b(a, k), k = k.sibling;
b(a, k1), k1 = k1.sibling;
}
f.type === ua ? ((d = Xg(f.props.children, a.mode, h, f.key)).return = a, a = d) : ((h = Vg(f.type, f.key, f.props, null, a.mode, h)).ref = Qg(a, d, f), h.return = a, a = h);
}
return g(a);
case ta:
a: {
for(k = f.key; null !== d;){
if (d.key === k) if (4 === d.tag && d.stateNode.containerInfo === f.containerInfo && d.stateNode.implementation === f.implementation) {
for(k1 = f.key; null !== d;){
if (d.key === k1) if (4 === d.tag && d.stateNode.containerInfo === f.containerInfo && d.stateNode.implementation === f.implementation) {
c(a, d.sibling), (d = e(d, f.children || [])).return = a, a = d;
break a;
} else {
@ -13360,49 +13360,49 @@
}
if ("string" == typeof f || "number" == typeof f) return f = "" + f, null !== d && 6 === d.tag ? (c(a, d.sibling), (d = e(d, f)).return = a, a = d) : (c(a, d), (d = Ug(f, a.mode, h)).return = a, a = d), g(a);
if (Pg(f)) return (function(e, g, h, k) {
for(var l = null, t = null, u = g, z = g = 0, q = null; null !== u && z < h.length; z++){
for(var l1 = null, t = null, u = g, z = g = 0, q = null; null !== u && z < h.length; z++){
u.index > z ? (q = u, u = null) : q = u.sibling;
var n = p(e, u, h[z], k);
if (null === n) {
null === u && (u = q);
break;
}
a1 && u && null === n.alternate && b(e, u), g = f1(n, g, z), null === t ? l = n : t.sibling = n, t = n, u = q;
a9 && u && null === n.alternate && b(e, u), g = f1(n, g, z), null === t ? l1 = n : t.sibling = n, t = n, u = q;
}
if (z === h.length) return c(e, u), l;
if (z === h.length) return c(e, u), l1;
if (null === u) {
for(; z < h.length; z++)null !== (u = A(e, h[z], k)) && (g = f1(u, g, z), null === t ? l = u : t.sibling = u, t = u);
return l;
for(; z < h.length; z++)null !== (u = A(e, h[z], k)) && (g = f1(u, g, z), null === t ? l1 = u : t.sibling = u, t = u);
return l1;
}
for(u = d1(e, u); z < h.length; z++)null !== (q = C(u, e, z, h[z], k)) && (a1 && null !== q.alternate && u.delete(null === q.key ? z : q.key), g = f1(q, g, z), null === t ? l = q : t.sibling = q, t = q);
return a1 && u.forEach(function(a) {
for(u = d1(e, u); z < h.length; z++)null !== (q = C(u, e, z, h[z], k)) && (a9 && null !== q.alternate && u.delete(null === q.key ? z : q.key), g = f1(q, g, z), null === t ? l1 = q : t.sibling = q, t = q);
return a9 && u.forEach(function(a) {
return b(e, a);
}), l;
}), l1;
})(a, d, f, h);
if (La(f)) return (function(e, g, h, k) {
var l = La(h);
if ("function" != typeof l) throw Error(y(150));
if (null == (h = l.call(h))) throw Error(y(151));
for(var t = l = null, u = g, z = g = 0, q = null, n = h.next(); null !== u && !n.done; z++, n = h.next()){
var l1 = La(h);
if ("function" != typeof l1) throw Error(y(150));
if (null == (h = l1.call(h))) throw Error(y(151));
for(var t = l1 = null, u = g, z = g = 0, q = null, n = h.next(); null !== u && !n.done; z++, n = h.next()){
u.index > z ? (q = u, u = null) : q = u.sibling;
var w = p(e, u, n.value, k);
if (null === w) {
null === u && (u = q);
break;
}
a1 && u && null === w.alternate && b(e, u), g = f1(w, g, z), null === t ? l = w : t.sibling = w, t = w, u = q;
a9 && u && null === w.alternate && b(e, u), g = f1(w, g, z), null === t ? l1 = w : t.sibling = w, t = w, u = q;
}
if (n.done) return c(e, u), l;
if (n.done) return c(e, u), l1;
if (null === u) {
for(; !n.done; z++, n = h.next())null !== (n = A(e, n.value, k)) && (g = f1(n, g, z), null === t ? l = n : t.sibling = n, t = n);
return l;
for(; !n.done; z++, n = h.next())null !== (n = A(e, n.value, k)) && (g = f1(n, g, z), null === t ? l1 = n : t.sibling = n, t = n);
return l1;
}
for(u = d1(e, u); !n.done; z++, n = h.next())null !== (n = C(u, e, z, n.value, k)) && (a1 && null !== n.alternate && u.delete(null === n.key ? z : n.key), g = f1(n, g, z), null === t ? l = n : t.sibling = n, t = n);
return a1 && u.forEach(function(a) {
for(u = d1(e, u); !n.done; z++, n = h.next())null !== (n = C(u, e, z, n.value, k)) && (a9 && null !== n.alternate && u.delete(null === n.key ? z : n.key), g = f1(n, g, z), null === t ? l1 = n : t.sibling = n, t = n);
return a9 && u.forEach(function(a) {
return b(e, a);
}), l;
}), l1;
})(a, d, f, h);
if (l && Rg(a, f), void 0 === f && !k) switch(a.tag){
if (l1 && Rg(a, f), void 0 === f && !k1) switch(a.tag){
case 1:
case 22:
case 0:
@ -13669,12 +13669,12 @@
subscribe: d
}, h.useEffect(function() {
p.getSnapshot = c, p.setSnapshot = l;
var a = f(b._source);
if (!He(g, a)) {
He(n, a = c(b._source)) || (l(a), a = Ig(w), e.mutableReadLanes |= a & e.pendingLanes), a = e.mutableReadLanes, e.entangledLanes |= a;
for(var d = e.entanglements, h = a; 0 < h;){
var a9 = f(b._source);
if (!He(g, a9)) {
He(n, a9 = c(b._source)) || (l(a9), a9 = Ig(w), e.mutableReadLanes |= a9 & e.pendingLanes), a9 = e.mutableReadLanes, e.entangledLanes |= a9;
for(var d = e.entanglements, h = a9; 0 < h;){
var k = 31 - Vc(h), v = 1 << k;
d[k] |= a, h &= ~v;
d[k] |= a9, h &= ~v;
}
}
}, [
@ -13686,8 +13686,8 @@
var a = p.getSnapshot, c = p.setSnapshot;
try {
c(a(b._source));
var d = Ig(w);
e.mutableReadLanes |= d & e.pendingLanes;
var d1 = Ig(w);
e.mutableReadLanes |= d1 & e.pendingLanes;
} catch (q) {
c(function() {
throw q;
@ -14568,9 +14568,9 @@
"function" != typeof d && (null === Ti ? Ti = new Set([
this
]) : Ti.add(this), Ni(a, b));
var c = b.stack;
var c1 = b.stack;
this.componentDidCatch(b.value, {
componentStack: null !== c ? c : ""
componentStack: null !== c1 ? c1 : ""
});
}), c;
}
@ -15692,22 +15692,22 @@
if ("function" == typeof e) {
var h = e;
e = function() {
var a = mk(g);
h.call(a);
var a9 = mk(g);
h.call(a9);
};
}
lk(b, g, a, e);
} else {
if (g = (f = c._reactRootContainer = (function(a, b) {
if (b || (b = !(!(b = a ? 9 === a.nodeType ? a.documentElement : a.firstChild : null) || 1 !== b.nodeType || !b.hasAttribute("data-reactroot"))), !b) for(var c; c = a.lastChild;)a.removeChild(c);
if (b || (b = !(!(b = a ? 9 === a.nodeType ? a.documentElement : a.firstChild : null) || 1 !== b.nodeType || !b.hasAttribute("data-reactroot"))), !b) for(var c1; c1 = a.lastChild;)a.removeChild(c1);
return new qk(a, 0, b ? {
hydrate: !0
} : void 0);
})(c, d))._internalRoot, "function" == typeof e) {
var k = e;
e = function() {
var a = mk(g);
k.call(a);
var a9 = mk(g);
k.call(a9);
};
}
Xj(function() {
@ -16170,10 +16170,10 @@
}
var BrowserRouter = function(n) {
function e() {
for(var e, t = arguments.length, r = new Array(t), o = 0; o < t; o++)r[o] = arguments[o];
return (e = n.call.apply(n, [
for(var e1, t = arguments.length, r = new Array(t), o = 0; o < t; o++)r[o] = arguments[o];
return (e1 = n.call.apply(n, [
this
].concat(r)) || this).history = history.createBrowserHistory(e.props), e;
].concat(r)) || this).history = history.createBrowserHistory(e1.props), e1;
}
return _inheritsLoose(e, n), e.prototype.render = function() {
return React.createElement(reactRouter.Router, {
@ -16183,10 +16183,10 @@
}, e;
}(React.Component), HashRouter = function(n) {
function e() {
for(var e, t = arguments.length, r = new Array(t), o = 0; o < t; o++)r[o] = arguments[o];
return (e = n.call.apply(n, [
for(var e1, t = arguments.length, r = new Array(t), o = 0; o < t; o++)r[o] = arguments[o];
return (e1 = n.call.apply(n, [
this
].concat(r)) || this).history = history.createHashHistory(e.props), e;
].concat(r)) || this).history = history.createHashHistory(e1.props), e1;
}
return _inheritsLoose(e, n), e.prototype.render = function() {
return React.createElement(reactRouter.Router, {
@ -16229,12 +16229,12 @@
]);
return React.createElement(reactRouter.__RouterContext.Consumer, null, function(r) {
r || invariant(!1);
var o = r.history, e = normalizeToLocation(resolveToLocation(u, r.location), r.location), n = _extends({
var o = r.history, e1 = normalizeToLocation(resolveToLocation(u, r.location), r.location), n = _extends({
}, s, {
href: e ? o.createHref(e) : "",
href: e1 ? o.createHref(e1) : "",
navigate: function() {
var e = resolveToLocation(u, r.location), t = history.createPath(r.location) === history.createPath(normalizeToLocation(e));
(c || t ? o.replace : o.push)(e);
var e1 = resolveToLocation(u, r.location), t = history.createPath(r.location) === history.createPath(normalizeToLocation(e1));
(c || t ? o.replace : o.push)(e1);
}
});
return forwardRefShim !== forwardRef ? n.ref = a || f : n.innerRef = f, React.createElement(i, n);
@ -16260,15 +16260,15 @@
]);
return React.createElement(reactRouter.__RouterContext.Consumer, null, function(e) {
e || invariant(!1);
var t = m || e.location, r = normalizeToLocation(resolveToLocation(w, t), t), o = r.pathname, n = o && o.replace(/([.+*?=^!:${}()[\]|/\\])/g, "\\$1"), a = n ? reactRouter.matchPath(t.pathname, {
var t1 = m || e.location, r1 = normalizeToLocation(resolveToLocation(w, t1), t1), o = r1.pathname, n = o && o.replace(/([.+*?=^!:${}()[\]|/\\])/g, "\\$1"), a = n ? reactRouter.matchPath(t1.pathname, {
path: n,
exact: y,
sensitive: v,
strict: b
}) : null, i = !!(d ? d(a, t) : a), c = "function" == typeof h ? h(i) : h, u = "function" == typeof P ? P(i) : P;
}) : null, i = !!(d ? d(a, t1) : a), c = "function" == typeof h ? h(i) : h, u = "function" == typeof P ? P(i) : P;
i && (c = (function() {
for(var e = arguments.length, t = new Array(e), r = 0; r < e; r++)t[r] = arguments[r];
return t.filter(function(e) {
for(var e1 = arguments.length, t1 = new Array(e1), r1 = 0; r1 < e1; r1++)t1[r1] = arguments[r1];
return t1.filter(function(e) {
return e;
}).join(" ");
})(c, p), u = _extends({
@ -16277,7 +16277,7 @@
"aria-current": i && l || null,
className: c,
style: u,
to: r
to: r1
}, g);
return forwardRefShim$1 !== forwardRef$1 ? f.ref = s || x : f.innerRef = x, React.createElement(Link, f);
});
@ -16902,16 +16902,16 @@
}
var M = /\/+/g;
function N(a, b) {
var b1;
return "object" == typeof a && null !== a && null != a.key ? (b1 = {
var b2;
return "object" == typeof a && null !== a && null != a.key ? (b2 = {
"=": "=0",
":": "=2"
}, "$" + ("" + a.key).replace(/[=:]/g, function(a) {
return b1[a];
return b2[a];
})) : b.toString(36);
}
function O(a, b, c, e, d) {
var a1, b1, a2, k = typeof a;
var a9, b8, a13, k = typeof a;
("undefined" === k || "boolean" === k) && (a = null);
var h = !1;
if (null === a) h = !0;
@ -16929,19 +16929,19 @@
}
if (h) return d = d(h = a), a = "" === e ? "." + N(h, 0) : e, Array.isArray(d) ? (c = "", null != a && (c = a.replace(M, "$&/") + "/"), O(d, b, c, "", function(a) {
return a;
})) : null != d && (L(d) && (d = (a1 = d, b1 = c + (!d.key || h && h.key === d.key ? "" : ("" + d.key).replace(M, "$&/") + "/") + a, {
})) : null != d && (L(d) && (d = (a9 = d, b8 = c + (!d.key || h && h.key === d.key ? "" : ("" + d.key).replace(M, "$&/") + "/") + a, {
$$typeof: n,
type: a1.type,
key: b1,
ref: a1.ref,
props: a1.props,
_owner: a1._owner
type: a9.type,
key: b8,
ref: a9.ref,
props: a9.props,
_owner: a9._owner
})), b.push(d)), 1;
if (h = 0, e = "" === e ? "." : e + ":", Array.isArray(a)) for(var g = 0; g < a.length; g++){
var f = e + N(k = a[g], g);
h += O(k, b, c, f, d);
}
else if ("function" == typeof (f = null === (a2 = a) || "object" != typeof a2 ? null : "function" == typeof (a2 = x && a2[x] || a2["@@iterator"]) ? a2 : null)) for(a = f.call(a), g = 0; !(k = a.next()).done;)h += O(k, b, c, f = e + N(k = k.value, g++), d);
else if ("function" == typeof (f = null === (a13 = a) || "object" != typeof a13 ? null : "function" == typeof (a13 = x && a13[x] || a13["@@iterator"]) ? a13 : null)) for(a = f.call(a), g = 0; !(k = a.next()).done;)h += O(k, b, c, f = e + N(k = k.value, g++), d);
else if ("object" === k) throw Error(z(31, "[object Object]" == (b = "" + a) ? "object with keys {" + Object.keys(a).join(", ") + "}" : b));
return h;
}

View File

@ -476,15 +476,15 @@
return pad(d.getSeconds(), p, 2);
}
function formatWeekdayNumberMonday(d) {
var day = d.getDay();
return 0 === day ? 7 : day;
var day1 = d.getDay();
return 0 === day1 ? 7 : day1;
}
function formatWeekNumberSunday(d, p) {
return pad(sunday.count(src_year(d) - 1, d), p, 2);
}
function dISO(d) {
var day = d.getDay();
return day >= 4 || 0 === day ? thursday(d) : thursday.ceil(d);
var day1 = d.getDay();
return day1 >= 4 || 0 === day1 ? thursday(d) : thursday.ceil(d);
}
function formatWeekNumberISO(d, p) {
return d = dISO(d), pad(thursday.count(src_year(d), d) + (4 === src_year(d).getDay()), p, 2);
@ -505,8 +505,8 @@
return pad(d.getFullYear() % 10000, p, 4);
}
function formatFullYearISO(d, p) {
var day = d.getDay();
return pad((d = day >= 4 || 0 === day ? thursday(d) : thursday.ceil(d)).getFullYear() % 10000, p, 4);
var day1 = d.getDay();
return pad((d = day1 >= 4 || 0 === day1 ? thursday(d) : thursday.ceil(d)).getFullYear() % 10000, p, 4);
}
function formatZone(d) {
var z = d.getTimezoneOffset();
@ -547,8 +547,8 @@
return pad(utcSunday.count(src_utcYear(d) - 1, d), p, 2);
}
function UTCdISO(d) {
var day = d.getUTCDay();
return day >= 4 || 0 === day ? utcThursday(d) : utcThursday.ceil(d);
var day1 = d.getUTCDay();
return day1 >= 4 || 0 === day1 ? utcThursday(d) : utcThursday.ceil(d);
}
function formatUTCWeekNumberISO(d, p) {
return d = UTCdISO(d), pad(utcThursday.count(src_utcYear(d), d) + (4 === src_utcYear(d).getUTCDay()), p, 2);
@ -569,8 +569,8 @@
return pad(d.getUTCFullYear() % 10000, p, 4);
}
function formatUTCFullYearISO(d, p) {
var day = d.getUTCDay();
return pad((d = day >= 4 || 0 === day ? utcThursday(d) : utcThursday.ceil(d)).getUTCFullYear() % 10000, p, 4);
var day1 = d.getUTCDay();
return pad((d = day1 >= 4 || 0 === day1 ? utcThursday(d) : utcThursday.ceil(d)).getUTCFullYear() % 10000, p, 4);
}
function formatUTCZone() {
return "+0000";

View File

@ -1133,9 +1133,9 @@
function compileNodes(nodeList, transcludeFn, $rootElement, maxPriority, ignoreDirective, previousCompileContext) {
for(var nodeLinkFn, childLinkFn, directives, attrs, linkFnFound, linkFns = [], i = 0; i < nodeList.length; i++)attrs = new Attributes(), childLinkFn = (nodeLinkFn = (directives = collectDirectives(nodeList[i], [], attrs, 0 === i ? maxPriority : undefined, ignoreDirective)).length ? applyDirectivesToNode(directives, nodeList[i], attrs, transcludeFn, $rootElement, null, [], [], previousCompileContext) : null) && nodeLinkFn.terminal || !nodeList[i].childNodes || !nodeList[i].childNodes.length ? null : compileNodes(nodeList[i].childNodes, nodeLinkFn ? nodeLinkFn.transclude : transcludeFn), linkFns.push(nodeLinkFn), linkFns.push(childLinkFn), linkFnFound = linkFnFound || nodeLinkFn || childLinkFn, previousCompileContext = null;
return linkFnFound ? function(scope, nodeList, $rootElement, boundTranscludeFn) {
var nodeLinkFn, childLinkFn, node, $node, childScope, childTranscludeFn, i, ii, n, stableNodeList = [];
for(i = 0, ii = nodeList.length; i < ii; i++)stableNodeList.push(nodeList[i]);
for(i = 0, n = 0, ii = linkFns.length; i < ii; n++)node = stableNodeList[n], nodeLinkFn = linkFns[i++], childLinkFn = linkFns[i++], $node = jqLite(node), nodeLinkFn ? (nodeLinkFn.scope ? (childScope = scope.$new(), $node.data("$scope", childScope), safeAddClass($node, "ng-scope")) : childScope = scope, nodeLinkFn(childLinkFn, childScope, node, $rootElement, (childTranscludeFn = nodeLinkFn.transclude) || !boundTranscludeFn && transcludeFn ? createBoundTranscludeFn(scope, childTranscludeFn || transcludeFn) : boundTranscludeFn)) : childLinkFn && childLinkFn(scope, node.childNodes, undefined, boundTranscludeFn);
var nodeLinkFn1, childLinkFn1, node, $node, childScope, childTranscludeFn, i1, ii, n, stableNodeList = [];
for(i1 = 0, ii = nodeList.length; i1 < ii; i1++)stableNodeList.push(nodeList[i1]);
for(i1 = 0, n = 0, ii = linkFns.length; i1 < ii; n++)node = stableNodeList[n], nodeLinkFn1 = linkFns[i1++], childLinkFn1 = linkFns[i1++], $node = jqLite(node), nodeLinkFn1 ? (nodeLinkFn1.scope ? (childScope = scope.$new(), $node.data("$scope", childScope), safeAddClass($node, "ng-scope")) : childScope = scope, nodeLinkFn1(childLinkFn1, childScope, node, $rootElement, (childTranscludeFn = nodeLinkFn1.transclude) || !boundTranscludeFn && transcludeFn ? createBoundTranscludeFn(scope, childTranscludeFn || transcludeFn) : boundTranscludeFn)) : childLinkFn1 && childLinkFn1(scope, node.childNodes, undefined, boundTranscludeFn);
} : null;
}
function createBoundTranscludeFn(scope, transcludeFn) {
@ -1234,7 +1234,7 @@
})), value;
}
function nodeLinkFn(childLinkFn, scope, linkNode, $rootElement, boundTranscludeFn) {
var attrs, $element, i, ii, linkFn, controller, isolateScope, transcludeFn, elementControllers = {
var attrs, $element, i1, ii1, linkFn1, controller, isolateScope, transcludeFn1, elementControllers = {
};
if ($element = (attrs = compileNode === linkNode ? templateAttrs : (function(src, dst) {
for(var key in dst = dst || {
@ -1271,7 +1271,7 @@
}
});
}
for(transcludeFn = boundTranscludeFn && function(scope, cloneAttachFn) {
for(transcludeFn1 = boundTranscludeFn && function(scope, cloneAttachFn) {
var transcludeControllers;
return arguments.length < 2 && (cloneAttachFn = scope, scope = undefined), hasElementTranscludeDirective && (transcludeControllers = elementControllers), boundTranscludeFn(scope, cloneAttachFn, transcludeControllers);
}, controllerDirectives && forEach(controllerDirectives, function(directive) {
@ -1279,17 +1279,17 @@
$scope: directive === newIsolateScopeDirective || directive.$$isolateScope ? isolateScope : scope,
$element: $element,
$attrs: attrs,
$transclude: transcludeFn
$transclude: transcludeFn1
};
"@" == (controller = directive.controller) && (controller = attrs[directive.name]), controllerInstance = $controller(controller, locals), elementControllers[directive.name] = controllerInstance, hasElementTranscludeDirective || $element.data("$" + directive.name + "Controller", controllerInstance), directive.controllerAs && (locals.$scope[directive.controllerAs] = controllerInstance);
}), i = 0, ii = preLinkFns.length; i < ii; i++)try {
(linkFn = preLinkFns[i])(linkFn.isolateScope ? isolateScope : scope, $element, attrs, linkFn.require && getControllers(linkFn.require, $element, elementControllers), transcludeFn);
}), i1 = 0, ii1 = preLinkFns.length; i1 < ii1; i1++)try {
(linkFn1 = preLinkFns[i1])(linkFn1.isolateScope ? isolateScope : scope, $element, attrs, linkFn1.require && getControllers(linkFn1.require, $element, elementControllers), transcludeFn1);
} catch (e) {
$exceptionHandler(e, startingTag($element));
}
var scopeToChild = scope;
for(newIsolateScopeDirective && (newIsolateScopeDirective.template || null === newIsolateScopeDirective.templateUrl) && (scopeToChild = isolateScope), childLinkFn && childLinkFn(scopeToChild, linkNode.childNodes, undefined, boundTranscludeFn), i = postLinkFns.length - 1; i >= 0; i--)try {
(linkFn = postLinkFns[i])(linkFn.isolateScope ? isolateScope : scope, $element, attrs, linkFn.require && getControllers(linkFn.require, $element, elementControllers), transcludeFn);
for(newIsolateScopeDirective && (newIsolateScopeDirective.template || null === newIsolateScopeDirective.templateUrl) && (scopeToChild = isolateScope), childLinkFn && childLinkFn(scopeToChild, linkNode.childNodes, undefined, boundTranscludeFn), i1 = postLinkFns.length - 1; i1 >= 0; i1--)try {
(linkFn1 = postLinkFns[i1])(linkFn1.isolateScope ? isolateScope : scope, $element, attrs, linkFn1.require && getControllers(linkFn1.require, $element, elementControllers), transcludeFn1);
} catch (e1) {
$exceptionHandler(e1, startingTag($element));
}
@ -3342,11 +3342,11 @@
return function(date, format) {
var fn, match, text = "", parts = [];
if (format = format || "mediumDate", format = $locale.DATETIME_FORMATS[format] || format, isString(date) && (date = NUMBER_STRING.test(date) ? int(date) : (function(string) {
var match;
if (match = string.match(R_ISO8601_STR)) {
var date = new Date(0), tzHour = 0, tzMin = 0, dateSetter = match[8] ? date.setUTCFullYear : date.setFullYear, timeSetter = match[8] ? date.setUTCHours : date.setHours;
match[9] && (tzHour = int(match[9] + match[10]), tzMin = int(match[9] + match[11])), dateSetter.call(date, int(match[1]), int(match[2]) - 1, int(match[3]));
var h = int(match[4] || 0) - tzHour, m = int(match[5] || 0) - tzMin, s = int(match[6] || 0), ms = Math.round(1000 * parseFloat("0." + (match[7] || 0)));
var match1;
if (match1 = string.match(R_ISO8601_STR)) {
var date = new Date(0), tzHour = 0, tzMin = 0, dateSetter = match1[8] ? date.setUTCFullYear : date.setFullYear, timeSetter = match1[8] ? date.setUTCHours : date.setHours;
match1[9] && (tzHour = int(match1[9] + match1[10]), tzMin = int(match1[9] + match1[11])), dateSetter.call(date, int(match1[1]), int(match1[2]) - 1, int(match1[3]));
var h = int(match1[4] || 0) - tzHour, m = int(match1[5] || 0) - tzMin, s = int(match1[6] || 0), ms = Math.round(1000 * parseFloat("0." + (match1[7] || 0)));
return timeSetter.call(date, h, m, s, ms), date;
}
return string;
@ -3394,8 +3394,8 @@
});
for(var arrayCopy = [], i = 0; i < array.length; i++)arrayCopy.push(array[i]);
return arrayCopy.sort(reverseComparator(function(o1, o2) {
for(var i = 0; i < sortPredicate.length; i++){
var comp = sortPredicate[i](o1, o2);
for(var i1 = 0; i1 < sortPredicate.length; i1++){
var comp = sortPredicate[i1](o1, o2);
if (0 !== comp) return comp;
}
return 0;
@ -4352,8 +4352,8 @@
function ensure(obj, name, factory) {
return obj[name] || (obj[name] = factory());
}
var angular = ensure(window, "angular", Object);
return angular.$$minErr = angular.$$minErr || minErr, ensure(angular, "module", function() {
var angular1 = ensure(window, "angular", Object);
return angular1.$$minErr = angular1.$$minErr || minErr, ensure(angular1, "module", function() {
var modules = {
};
return function(name, requires, configFn) {

View File

@ -1137,7 +1137,7 @@
}), (function(window, undefined) {
var i, cachedruns, Expr, getText, isXML, compile, hasDuplicate, outermostContext, setDocument, document, docElem, documentIsXML, rbuggyQSA, rbuggyMatches, matches, contains, sortOrder, expando = "sizzle" + -new Date(), preferredDoc = window.document, support = {
}, dirruns = 0, done = 0, classCache = createCache(), tokenCache = createCache(), compilerCache = createCache(), arr = [], pop = arr.pop, push = arr.push, slice = arr.slice, indexOf = arr.indexOf || function(elem) {
for(var i = 0, len = this.length; i < len; i++)if (this[i] === elem) return i;
for(var i1 = 0, len = this.length; i1 < len; i1++)if (this[i1] === elem) return i1;
return -1;
}, whitespace = "[\\x20\\t\\r\\n\\f]", characterEncoding = "(?:\\\\.|[\\w-]|[^\\x00-\\xa0])+", identifier = characterEncoding.replace("w", "w#"), attributes = "\\[" + whitespace + "*(" + characterEncoding + ")" + whitespace + "*(?:([*^$|!~]?=)" + whitespace + "*(?:(['\"])((?:\\\\.|[^\\\\])*?)\\3|(" + identifier + ")|)|)" + whitespace + "*\\]", pseudos = ":(" + characterEncoding + ")(?:\\(((['\"])((?:\\\\.|[^\\\\])*?)\\3|((?:\\\\.|[^\\\\()[\\]]|" + attributes.replace(3, 8) + ")*)|.*)\\)|)", rtrim = new RegExp("^" + whitespace + "+|((?:^|[^\\\\])(?:\\\\.)*)" + whitespace + "+$", "g"), rcomma = new RegExp("^" + whitespace + "*," + whitespace + "*"), rcombinators = new RegExp("^" + whitespace + "*([\\x20\\t\\r\\n\\f>+~])" + whitespace + "*"), rpseudo = new RegExp(pseudos), ridentifier = new RegExp("^" + identifier + "$"), matchExpr = {
ID: new RegExp("^#(" + characterEncoding + ")"),
@ -1363,13 +1363,13 @@
}
return results;
}, getText = Sizzle.getText = function(elem) {
var node, ret = "", i = 0, nodeType = elem.nodeType;
var node, ret = "", i1 = 0, nodeType = elem.nodeType;
if (nodeType) {
if (1 === nodeType || 9 === nodeType || 11 === nodeType) {
if ("string" == typeof elem.textContent) return elem.textContent;
for(elem = elem.firstChild; elem; elem = elem.nextSibling)ret += getText(elem);
} else if (3 === nodeType || 4 === nodeType) return elem.nodeValue;
} else for(; node = elem[i]; i++)ret += getText(node);
} else for(; node = elem[i1]; i1++)ret += getText(node);
return ret;
}, Expr = Sizzle.selectors = {
cacheLength: 50,
@ -1563,19 +1563,19 @@
];
}),
even: createPositionalPseudo(function(matchIndexes, length) {
for(var i = 0; i < length; i += 2)matchIndexes.push(i);
for(var i1 = 0; i1 < length; i1 += 2)matchIndexes.push(i1);
return matchIndexes;
}),
odd: createPositionalPseudo(function(matchIndexes, length) {
for(var i = 1; i < length; i += 2)matchIndexes.push(i);
for(var i1 = 1; i1 < length; i1 += 2)matchIndexes.push(i1);
return matchIndexes;
}),
lt: createPositionalPseudo(function(matchIndexes, length, argument) {
for(var i = argument < 0 ? argument + length : argument; --i >= 0;)matchIndexes.push(i);
for(var i1 = argument < 0 ? argument + length : argument; --i1 >= 0;)matchIndexes.push(i1);
return matchIndexes;
}),
gt: createPositionalPseudo(function(matchIndexes, length, argument) {
for(var i = argument < 0 ? argument + length : argument; ++i < length;)matchIndexes.push(i);
for(var i1 = argument < 0 ? argument + length : argument; ++i1 < length;)matchIndexes.push(i1);
return matchIndexes;
})
}
@ -1607,7 +1607,7 @@
return parseOnly ? soFar.length : soFar ? Sizzle.error(selector) : tokenCache(selector, groups).slice(0);
}
function toSelector(tokens) {
for(var i = 0, len = tokens.length, selector = ""; i < len; i++)selector += tokens[i].value;
for(var i1 = 0, len = tokens.length, selector = ""; i1 < len; i1++)selector += tokens[i1].value;
return selector;
}
function addCombinator(matcher, combinator, base) {
@ -1635,7 +1635,7 @@
} : matchers[0];
}
function condense(unmatched, map, filter, context, xml) {
for(var elem, newUnmatched = [], i = 0, len = unmatched.length, mapped = null != map; i < len; i++)(elem = unmatched[i]) && (!filter || filter(elem, context, xml)) && (newUnmatched.push(elem), mapped && map.push(i));
for(var elem, newUnmatched = [], i1 = 0, len = unmatched.length, mapped = null != map; i1 < len; i1++)(elem = unmatched[i1]) && (!filter || filter(elem, context, xml)) && (newUnmatched.push(elem), mapped && map.push(i1));
return newUnmatched;
}
function setMatcher(preFilter, selector, matcher, postFilter, postFinder, postSelector) {
@ -1656,26 +1656,26 @@
});
}
function matcherFromTokens(tokens) {
for(var checkContext, matcher, j, len = tokens.length, leadingRelative = Expr.relative[tokens[0].type], implicitRelative = leadingRelative || Expr.relative[" "], i = leadingRelative ? 1 : 0, matchContext = addCombinator(function(elem) {
for(var checkContext, matcher, j, len = tokens.length, leadingRelative = Expr.relative[tokens[0].type], implicitRelative = leadingRelative || Expr.relative[" "], i1 = leadingRelative ? 1 : 0, matchContext = addCombinator(function(elem) {
return elem === checkContext;
}, implicitRelative, !0), matchAnyContext = addCombinator(function(elem) {
return indexOf.call(checkContext, elem) > -1;
}, implicitRelative, !0), matchers = [function(elem, context, xml) {
return !leadingRelative && (xml || context !== outermostContext) || ((checkContext = context).nodeType ? matchContext(elem, context, xml) : matchAnyContext(elem, context, xml));
}]; i < len; i++)if (matcher = Expr.relative[tokens[i].type]) matchers = [
}]; i1 < len; i1++)if (matcher = Expr.relative[tokens[i1].type]) matchers = [
addCombinator(elementMatcher(matchers), matcher)
];
else {
if ((matcher = Expr.filter[tokens[i].type].apply(null, tokens[i].matches))[expando]) {
for(j = ++i; j < len && !Expr.relative[tokens[j].type]; j++);
return setMatcher(i > 1 && elementMatcher(matchers), i > 1 && toSelector(tokens.slice(0, i - 1)).replace(rtrim, "$1"), matcher, i < j && matcherFromTokens(tokens.slice(i, j)), j < len && matcherFromTokens(tokens = tokens.slice(j)), j < len && toSelector(tokens));
if ((matcher = Expr.filter[tokens[i1].type].apply(null, tokens[i1].matches))[expando]) {
for(j = ++i1; j < len && !Expr.relative[tokens[j].type]; j++);
return setMatcher(i1 > 1 && elementMatcher(matchers), i1 > 1 && toSelector(tokens.slice(0, i1 - 1)).replace(rtrim, "$1"), matcher, i1 < j && matcherFromTokens(tokens.slice(i1, j)), j < len && matcherFromTokens(tokens = tokens.slice(j)), j < len && toSelector(tokens));
}
matchers.push(matcher);
}
return elementMatcher(matchers);
}
function multipleContexts(selector, contexts, results) {
for(var i = 0, len = contexts.length; i < len; i++)Sizzle(selector, contexts[i], results);
for(var i1 = 0, len = contexts.length; i1 < len; i1++)Sizzle(selector, contexts[i1], results);
return results;
}
function select(selector, context, results, seed) {
@ -1702,8 +1702,8 @@
if (!cached) {
for(group || (group = tokenize(selector)), i = group.length; i--;)(cached = matcherFromTokens(group[i]))[expando] ? setMatchers1.push(cached) : elementMatchers1.push(cached);
cached = compilerCache(selector, (elementMatchers = elementMatchers1, matcherCachedRuns = 0, bySet = (setMatchers = setMatchers1).length > 0, byElement = elementMatchers.length > 0, superMatcher = function(seed, context, xml, results, expandContext) {
var elem, j, matcher, setMatched = [], matchedCount = 0, i = "0", unmatched = seed && [], outermost = null != expandContext, contextBackup = outermostContext, elems = seed || byElement && Expr.find.TAG("*", expandContext && context.parentNode || context), dirrunsUnique = dirruns += null == contextBackup ? 1 : Math.random() || 0.1;
for(outermost && (outermostContext = context !== document && context, cachedruns = matcherCachedRuns); null != (elem = elems[i]); i++){
var elem, j, matcher, setMatched = [], matchedCount = 0, i1 = "0", unmatched = seed && [], outermost = null != expandContext, contextBackup = outermostContext, elems = seed || byElement && Expr.find.TAG("*", expandContext && context.parentNode || context), dirrunsUnique = dirruns += null == contextBackup ? 1 : Math.random() || 0.1;
for(outermost && (outermostContext = context !== document && context, cachedruns = matcherCachedRuns); null != (elem = elems[i1]); i1++){
if (byElement && elem) {
for(; matcher = elementMatchers[j++];)if (matcher(elem, context, xml)) {
results.push(elem);
@ -1713,10 +1713,10 @@
}
bySet && ((elem = !matcher && elem) && matchedCount--, seed && unmatched.push(elem));
}
if (matchedCount += i, bySet && i !== matchedCount) {
if (matchedCount += i1, bySet && i1 !== matchedCount) {
for(; matcher = setMatchers[j++];)matcher(unmatched, setMatched, context, xml);
if (seed) {
if (matchedCount > 0) for(; i--;)unmatched[i] || setMatched[i] || (setMatched[i] = pop.call(results));
if (matchedCount > 0) for(; i1--;)unmatched[i1] || setMatched[i1] || (setMatched[i1] = pop.call(results));
setMatched = condense(setMatched);
}
push.apply(results, setMatched), outermost && !seed && setMatched.length > 0 && matchedCount + setMatchers.length > 1 && Sizzle.uniqueSort(results);
@ -2770,8 +2770,8 @@
}))) && (hidden = dataShow.hidden), toggle && (dataShow.hidden = !hidden), hidden ? jQuery(elem).show() : anim.done(function() {
jQuery(elem).hide();
}), anim.done(function() {
var prop;
for(prop in jQuery._removeData(elem, "fxshow"), orig)jQuery.style(elem, prop, orig[prop]);
var prop1;
for(prop1 in jQuery._removeData(elem, "fxshow"), orig)jQuery.style(elem, prop1, orig[prop1]);
}), index = 0; index < length; index++)prop = handled[index], tween = anim.createTween(prop, hidden ? dataShow[prop] : 0), orig[prop] = dataShow[prop] || jQuery.style(elem, prop), prop in dataShow || (dataShow[prop] = tween.start, hidden && (tween.end = tween.start, tween.start = "width" === prop || "height" === prop ? 1 : 0));
}], tweeners = {
"*": [function(prop, value) {
@ -2797,12 +2797,12 @@
delete tick.elem;
}), tick = function() {
if (stopped) return !1;
for(var currentTime = fxNow || createFxNow(), remaining = Math.max(0, animation1.startTime + animation1.duration - currentTime), percent = 1 - (remaining / animation1.duration || 0), index = 0, length = animation1.tweens.length; index < length; index++)animation1.tweens[index].run(percent);
for(var currentTime = fxNow || createFxNow(), remaining = Math.max(0, animation1.startTime + animation1.duration - currentTime), percent = 1 - (remaining / animation1.duration || 0), index1 = 0, length1 = animation1.tweens.length; index1 < length1; index1++)animation1.tweens[index1].run(percent);
return (deferred.notifyWith(elem, [
animation1,
percent,
remaining
]), percent < 1 && length) ? remaining : (deferred.resolveWith(elem, [
]), percent < 1 && length1) ? remaining : (deferred.resolveWith(elem, [
animation1
]), !1);
}, animation1 = deferred.promise({
@ -2823,9 +2823,9 @@
return animation1.tweens.push(tween), tween;
},
stop: function(gotoEnd) {
var index = 0, length = gotoEnd ? animation1.tweens.length : 0;
var index1 = 0, length1 = gotoEnd ? animation1.tweens.length : 0;
if (stopped) return this;
for(stopped = !0; index < length; index++)animation1.tweens[index].run(1);
for(stopped = !0; index1 < length1; index1++)animation1.tweens[index1].run(1);
return gotoEnd ? deferred.resolveWith(elem, [
animation1,
gotoEnd
@ -2837,7 +2837,7 @@
}), props1 = animation1.props;
for(propFilter(props1, animation1.opts.specialEasing); index < length; index++)if (result = animationPrefilters[index].call(animation1, elem, props1, animation1.opts)) return result;
return animation = animation1, props = props1, jQuery.each(props, function(prop, value) {
for(var collection = (tweeners[prop] || []).concat(tweeners["*"]), index = 0, length = collection.length; index < length; index++)if (collection[index].call(animation, prop, value)) return;
for(var collection = (tweeners[prop] || []).concat(tweeners["*"]), index1 = 0, length1 = collection.length; index1 < length1; index1++)if (collection[index1].call(animation, prop, value)) return;
}), jQuery.isFunction(animation1.opts.start) && animation1.opts.start.call(elem, animation1), jQuery.fx.timer(jQuery.extend(tick, {
elem: elem,
anim: animation1,

View File

@ -565,7 +565,7 @@
});
})(jQuery, this), (function($, window, undefined) {
"$:nomunge";
var fake_onhashchange, doc = document, special = $.event.special, doc_mode = doc.documentMode, supports_onhashchange = "onhashchange" in window && (doc_mode === undefined || doc_mode > 7);
var fake_onhashchange, doc1 = document, special = $.event.special, doc_mode = doc1.documentMode, supports_onhashchange = "onhashchange" in window && (doc_mode === undefined || doc_mode > 7);
function get_fragment(url) {
return "#" + (url = url || location.href).replace(/^[^#]*#?(.*)$/, "$1");
}
@ -596,9 +596,9 @@
}, !window.attachEvent || window.addEventListener || supports_onhashchange || (self.start = function() {
iframe || (iframe_src = (iframe_src = $.fn.hashchange.src) && iframe_src + get_fragment(), iframe = $("<iframe tabindex=\"-1\" title=\"empty\"/>").hide().one("load", function() {
iframe_src || history_set(get_fragment()), poll();
}).attr("src", iframe_src || "javascript:0").insertAfter("body")[0].contentWindow, doc.onpropertychange = function() {
}).attr("src", iframe_src || "javascript:0").insertAfter("body")[0].contentWindow, doc1.onpropertychange = function() {
try {
"title" === event.propertyName && (iframe.document.title = doc.title);
"title" === event.propertyName && (iframe.document.title = doc1.title);
} catch (e) {
}
});
@ -606,7 +606,7 @@
return get_fragment(iframe.location.href);
}, history_set = function(hash, history_hash) {
var iframe_doc = iframe.document, domain = $.fn.hashchange.domain;
hash !== history_hash && (iframe_doc.title = doc.title, iframe_doc.open(), domain && iframe_doc.write("<script>document.domain=\"" + domain + "\"</script>"), iframe_doc.close(), iframe.location.hash = hash);
hash !== history_hash && (iframe_doc.title = doc1.title, iframe_doc.open(), domain && iframe_doc.write("<script>document.domain=\"" + domain + "\"</script>"), iframe_doc.close(), iframe.location.hash = hash);
}), self;
})();
})(jQuery, this), $1 = jQuery, window.matchMedia = window.matchMedia || (refNode = (docElem = (doc = document).documentElement).firstElementChild || docElem.firstChild, fakeBody = doc.createElement("body"), (div = doc.createElement("div")).id = "mq-test-1", div.style.cssText = "position:absolute;top:-100em", fakeBody.style.background = "none", fakeBody.appendChild(div), function(q) {
@ -628,7 +628,7 @@
var v, uc_prop = prop.charAt(0).toUpperCase() + prop.substr(1), props = (prop + " " + vendors.join(uc_prop + " ") + uc_prop).split(" ");
for(v in props)if (undefined !== fbCSS[props[v]]) return !0;
}
var nokiaLTE7_3, w, ua, platform, wkmatch, wkversion, ffmatch, ffversion, operammobilematch, omversion, link, fauxBase, base, supports, element, documentElement, getComputedStyle, ua1, fakeBody = $("<body>").prependTo("html"), fbCSS = fakeBody[0].style, vendors = [
var nokiaLTE7_3, w, ua, platform, wkmatch, wkversion, ffmatch, ffversion, operammobilematch, omversion, link, fauxBase, base1, supports, element, documentElement, getComputedStyle, ua1, fakeBody1 = $("<body>").prependTo("html"), fbCSS = fakeBody1[0].style, vendors = [
"Webkit",
"Moz",
"O"
@ -653,29 +653,29 @@
for(t in el = document.createElement("div"), transforms = {
MozTransform: "-moz-transform",
transform: "transform"
}, fakeBody.append(el), transforms)undefined !== el.style[t] && (el.style[t] = "translate3d( 100px, 1px, 1px )", ret = window.getComputedStyle(el).getPropertyValue(transforms[t]));
}, fakeBody1.append(el), transforms)undefined !== el.style[t] && (el.style[t] = "translate3d( 100px, 1px, 1px )", ret = window.getComputedStyle(el).getPropertyValue(transforms[t]));
return !!ret && "none" !== ret;
}(),
boxShadow: !!propExists("boxShadow") && !bb,
fixedPosition: (w = window, ua = navigator.userAgent, platform = navigator.platform, wkversion = !!(wkmatch = ua.match(/AppleWebKit\/([0-9]+)/)) && wkmatch[1], ffversion = !!(ffmatch = ua.match(/Fennec\/([0-9]+)/)) && ffmatch[1], omversion = !!(operammobilematch = ua.match(/Opera Mobi\/([0-9]+)/)) && operammobilematch[1], !((platform.indexOf("iPhone") > -1 || platform.indexOf("iPad") > -1 || platform.indexOf("iPod") > -1) && wkversion && wkversion < 534 || w.operamini && "[object OperaMini]" === ({
}).toString.call(w.operamini) || operammobilematch && omversion < 7458 || ua.indexOf("Android") > -1 && wkversion && wkversion < 533 || ffversion && ffversion < 6 || "palmGetResource" in window && wkversion && wkversion < 534 || ua.indexOf("MeeGo") > -1 && ua.indexOf("NokiaBrowser/8.5.0") > -1)),
scrollTop: ("pageXOffset" in window || "scrollTop" in document.documentElement || "scrollTop" in fakeBody[0]) && !("palmGetResource" in window) && !operamini,
dynamicBaseTag: (fauxBase = location.protocol + "//" + location.host + location.pathname + "ui-dir/", (base = $("head base")).length ? base.attr("href") : base = $("<base>", {
scrollTop: ("pageXOffset" in window || "scrollTop" in document.documentElement || "scrollTop" in fakeBody1[0]) && !("palmGetResource" in window) && !operamini,
dynamicBaseTag: (fauxBase = location.protocol + "//" + location.host + location.pathname + "ui-dir/", (base1 = $("head base")).length ? base1.attr("href") : base1 = $("<base>", {
href: fauxBase
}).appendTo("head"), (link = $("<a href='testurl' />").prependTo(fakeBody))[0].href, base[0].href = location.pathname, 0 === link[0].href.indexOf(fauxBase)),
}).appendTo("head"), (link = $("<a href='testurl' />").prependTo(fakeBody1))[0].href, base1[0].href = location.pathname, 0 === link[0].href.indexOf(fauxBase)),
cssPointerEvents: (element = document.createElement("x"), documentElement = document.documentElement, getComputedStyle = window.getComputedStyle, "pointerEvents" in element.style && (element.style.pointerEvents = "auto", element.style.pointerEvents = "x", documentElement.appendChild(element), supports = getComputedStyle && "auto" === getComputedStyle(element, "").pointerEvents, documentElement.removeChild(element), !!supports)),
boundingRect: void 0 !== document.createElement("div").getBoundingClientRect,
inlineSVG: function() {
var w = window, svg = !!w.document.createElementNS && !!w.document.createElementNS("http://www.w3.org/2000/svg", "svg").createSVGRect && !(w.opera && -1 === navigator.userAgent.indexOf("Chrome")), support = function(data) {
var w1 = window, svg = !!w1.document.createElementNS && !!w1.document.createElementNS("http://www.w3.org/2000/svg", "svg").createSVGRect && !(w1.opera && -1 === navigator.userAgent.indexOf("Chrome")), support = function(data) {
data && svg || $("html").addClass("ui-nosvg");
}, img = new w.Image();
}, img = new w1.Image();
img.onerror = function() {
support(!1);
}, img.onload = function() {
support(1 === img.width && 1 === img.height);
}, img.src = "data:image/gif;base64,R0lGODlhAQABAIAAAAAAAP///ywAAAAAAQABAAACAUwAOw==";
}
}), fakeBody.remove(), nokiaLTE7_3 = (ua1 = window.navigator.userAgent).indexOf("Nokia") > -1 && (ua1.indexOf("Symbian/3") > -1 || ua1.indexOf("Series60/5") > -1) && ua1.indexOf("AppleWebKit") > -1 && ua1.match(/(BrowserNG|NokiaBrowser)\/7\.[0-3]/), $.mobile.gradeA = function() {
}), fakeBody1.remove(), nokiaLTE7_3 = (ua1 = window.navigator.userAgent).indexOf("Nokia") > -1 && (ua1.indexOf("Symbian/3") > -1 || ua1.indexOf("Series60/5") > -1) && ua1.indexOf("AppleWebKit") > -1 && ua1.match(/(BrowserNG|NokiaBrowser)\/7\.[0-3]/), $.mobile.gradeA = function() {
return ($.support.mediaquery && $.support.cssPseudoElement || $.mobile.browser.oldIE && $.mobile.browser.oldIE >= 8) && ($.support.boundingRect || null !== $.fn.jquery.match(/1\.[0-7+]\.[0-9+]?/));
}, $.mobile.ajaxBlacklist = window.blackberry && !window.WebKitPoint || operamini || nokiaLTE7_3, nokiaLTE7_3 && $(function() {
$("head link[rel='stylesheet']").attr("rel", "alternate stylesheet").attr("rel", "stylesheet");

View File

@ -131,14 +131,14 @@
var force = function(name, object, methods) {
var isType = object != Object, prototype = object.prototype;
isType && (object = new Type(name, object));
for(var i = 0, l = methods.length; i < l; i++){
var key = methods[i], generic = object[key], proto = prototype[key];
for(var i1 = 0, l = methods.length; i1 < l; i1++){
var key = methods[i1], generic = object[key], proto = prototype[key];
generic && generic.protect(), isType && proto && object.implement(key, proto.protect());
}
if (isType) {
var methodsEnumerable = prototype.propertyIsEnumerable(methods[0]);
object.forEachMethod = function(fn) {
if (!methodsEnumerable) for(var i = 0, l = methods.length; i < l; i++)fn.call(prototype, prototype[methods[i]], methods[i]);
if (!methodsEnumerable) for(var i1 = 0, l1 = methods.length; i1 < l1; i1++)fn.call(prototype, prototype[methods[i1]], methods[i1]);
for(var key in prototype)fn.call(prototype, prototype[key], key);
};
}
@ -221,7 +221,7 @@
for(var key in object)hasOwnProperty.call(object, key) && fn.call(bind, object[key], key, object);
}), Object.each = Object.forEach, Array.implement({
forEach: function(fn, bind) {
for(var i = 0, l = this.length; i < l; i++)i in this && fn.call(bind, this[i], i, this);
for(var i1 = 0, l = this.length; i1 < l; i1++)i1 in this && fn.call(bind, this[i1], i1, this);
},
each: function(fn, bind) {
return Array.forEach(this, fn, bind), this;
@ -238,7 +238,7 @@
}
};
Array.implement("clone", function() {
for(var i = this.length, clone = new Array(i); i--;)clone[i] = cloneOf(this[i]);
for(var i1 = this.length, clone = new Array(i1); i1--;)clone[i1] = cloneOf(this[i1]);
return clone;
});
var mergeOne = function(source, key, current) {
@ -257,8 +257,8 @@
Object.extend({
merge: function(source, k, v) {
if ("string" == typeOf(k)) return mergeOne(source, k, v);
for(var i = 1, l = arguments.length; i < l; i++){
var object = arguments[i];
for(var i1 = 1, l = arguments.length; i1 < l; i1++){
var object = arguments[i1];
for(var key in object)mergeOne(source, key, object[key]);
}
return source;
@ -270,8 +270,8 @@
return clone;
},
append: function(original) {
for(var i = 1, l = arguments.length; i < l; i++){
var extended = arguments[i] || {
for(var i1 = 1, l = arguments.length; i1 < l; i1++){
var extended = arguments[i1] || {
};
for(var key in extended)original[key] = extended[key];
}
@ -314,7 +314,7 @@
return new Type(properties.name, properties.initialize);
};
Native.type = Type.type, Native.implement = function(objects, methods) {
for(var i = 0; i < objects.length; i++)objects[i].implement(methods);
for(var i1 = 0; i1 < objects.length; i1++)objects[i1].implement(methods);
return Native;
};
var arrayType = Array.type;
@ -2269,8 +2269,8 @@ Elements.prototype = {
return this.removeEventListener ? this.removeEventListener(type, fn, !!arguments[2]) : this.detachEvent("on" + type, fn), this;
},
retrieve: function(property, dflt) {
var storage = get(Slick.uidOf(this)), prop = storage[property];
return null != dflt && null == prop && (prop = storage[property] = dflt), null != prop ? prop : null;
var storage1 = get(Slick.uidOf(this)), prop = storage1[property];
return null != dflt && null == prop && (prop = storage1[property] = dflt), null != prop ? prop : null;
},
store: function(property, value) {
return get(Slick.uidOf(this))[property] = value, this;
@ -2850,22 +2850,22 @@ Elements.prototype = {
};
},
getScrolls: function() {
for(var element = this.parentNode, position = {
for(var element1 = this.parentNode, position = {
x: 0,
y: 0
}; element && !isBody(element);)position.x += element.scrollLeft, position.y += element.scrollTop, element = element.parentNode;
}; element1 && !isBody(element1);)position.x += element1.scrollLeft, position.y += element1.scrollTop, element1 = element1.parentNode;
return position;
},
getOffsetParent: brokenOffsetParent ? function() {
var element = this;
if (isBody(element) || "fixed" == styleString(element, "position")) return null;
for(var isOffsetCheck = "static" == styleString(element, "position") ? isOffsetStatic : isOffset; element = element.parentNode;)if (isOffsetCheck(element)) return element;
var element1 = this;
if (isBody(element1) || "fixed" == styleString(element1, "position")) return null;
for(var isOffsetCheck = "static" == styleString(element1, "position") ? isOffsetStatic : isOffset; element1 = element1.parentNode;)if (isOffsetCheck(element1)) return element1;
return null;
} : function() {
var element = this;
if (isBody(element) || "fixed" == styleString(element, "position")) return null;
var element1 = this;
if (isBody(element1) || "fixed" == styleString(element1, "position")) return null;
try {
return element.offsetParent;
return element1.offsetParent;
} catch (e) {
}
return null;
@ -2878,18 +2878,18 @@ Elements.prototype = {
y: bound.top.toInt() + elemScrolls.y + (isFixed ? 0 : htmlScroll.y) - html.clientTop
};
}
var element = this, position = {
var element1 = this, position = {
x: 0,
y: 0
};
if (isBody(this)) return position;
for(; element && !isBody(element);){
if (position.x += element.offsetLeft, position.y += element.offsetTop, Browser.firefox) {
borderBox(element) || (position.x += leftBorder(element), position.y += topBorder(element));
var parent = element.parentNode;
for(; element1 && !isBody(element1);){
if (position.x += element1.offsetLeft, position.y += element1.offsetTop, Browser.firefox) {
borderBox(element1) || (position.x += leftBorder(element1), position.y += topBorder(element1));
var parent = element1.parentNode;
parent && "visible" != styleString(parent, "overflow") && (position.x += leftBorder(parent), position.y += topBorder(parent));
} else element != this && Browser.safari && (position.x += leftBorder(element), position.y += topBorder(element));
element = element.offsetParent;
} else element1 != this && Browser.safari && (position.x += leftBorder(element1), position.y += topBorder(element1));
element1 = element1.offsetParent;
}
return Browser.firefox && !borderBox(this) && (position.x -= leftBorder(this), position.y -= topBorder(this)), position;
},

View File

@ -626,8 +626,8 @@
if (null == element) return element;
if (validType) for(var i = 2; i < arguments.length; i++)validateChildKeys(arguments[i], type);
return type === exports.Fragment ? (function(fragment) {
for(var keys = Object.keys(fragment.props), i = 0; i < keys.length; i++){
var key = keys[i];
for(var keys = Object.keys(fragment.props), i1 = 0; i1 < keys.length; i1++){
var key = keys[i1];
if ("children" !== key && "key" !== key) {
setCurrentlyValidatingElement$1(fragment), error("Invalid prop `%s` supplied to `React.Fragment`. React.Fragment can only have `key` and `children` props.", key), setCurrentlyValidatingElement$1(null);
break;

File diff suppressed because it is too large Load Diff

View File

@ -83,9 +83,9 @@ var YUI = function() {
},
_BASE_RE: /(?:\?(?:[^&]*&)*([^&]*))?\b(simpleyui|yui(?:-\w+)?)\/\2(?:-(min|debug))?\.js/,
parseBasePath: function(src, pattern) {
var path, filter, match = src.match(pattern);
return match && (path = RegExp.leftContext || src.slice(0, src.indexOf(match[0])), filter = match[3], match[1] && (path += "?" + match[1]), path = {
filter: filter,
var path, filter1, match = src.match(pattern);
return match && (path = RegExp.leftContext || src.slice(0, src.indexOf(match[0])), filter1 = match[3], match[1] && (path += "?" + match[1]), path = {
filter: filter1,
path: path
}), path;
},
@ -247,10 +247,10 @@ var YUI = function() {
var redo, origMissing, response = fromLoader || {
success: !0,
msg: "not dynamic"
}, ret = !0, data = response.data;
}, ret1 = !0, data = response.data;
Y._loading = !1, data && (origMissing = missing, missing = [], r = [], process(data), (redo = missing.length) && [].concat(missing).sort().join() == origMissing.sort().join() && (redo = !1)), redo && data ? (Y._loading = !0, Y._use(missing, function() {
Y._attach(data) && Y._notify(callback, response, data);
})) : (data && (ret = Y._attach(data)), ret && Y._notify(callback, response, args)), Y._useQueue && Y._useQueue.size() && !Y._loading && Y._use.apply(Y, Y._useQueue.next());
})) : (data && (ret1 = Y._attach(data)), ret1 && Y._notify(callback, response, args)), Y._useQueue && Y._useQueue.size() && !Y._loading && Y._use.apply(Y, Y._useQueue.next());
};
if ("*" === firstArg) {
for(i in args = [], mods)mods.hasOwnProperty(i) && args.push(i);
@ -1242,8 +1242,8 @@ var YUI = function() {
lookupBestLang: function(preferredLanguages, availableLanguages) {
var i, language, result, index;
function scan(language) {
var i;
for(i = 0; i < availableLanguages.length; i += 1)if (language.toLowerCase() === availableLanguages[i].toLowerCase()) return availableLanguages[i];
var i1;
for(i1 = 0; i1 < availableLanguages.length; i1 += 1)if (language.toLowerCase() === availableLanguages[i1].toLowerCase()) return availableLanguages[i1];
}
for(Y.Lang.isString(preferredLanguages) && (preferredLanguages = preferredLanguages.split(SPLIT_REGEX)), i = 0; i < preferredLanguages.length; i += 1)if ((language = preferredLanguages[i]) && "*" !== language) for(; language.length > 0;){
if (result = scan(language)) return result;
@ -1265,14 +1265,14 @@ var YUI = function() {
error: 8
};
INSTANCE.log = function(msg, cat, src, silent) {
var bail, excl, incl, m, minlevel, Y = INSTANCE, c = Y.config, publisher = Y.fire ? Y : YUI.Env.globalEvents;
return c.debug && (void 0 !== (src = src || "") && (excl = c.logExclude, !(incl = c.logInclude) || src in incl ? incl && src in incl ? bail = !incl[src] : excl && src in excl && (bail = excl[src]) : bail = 1, Y.config.logLevel = Y.config.logLevel || "debug", minlevel = LEVELS[Y.config.logLevel.toLowerCase()], cat in LEVELS && LEVELS[cat] < minlevel && (bail = 1)), bail || (c.useBrowserConsole && (m = src ? src + ": " + msg : msg, Y.Lang.isFunction(c.logFn) ? c.logFn.call(Y, msg, cat, src) : "undefined" != typeof console && console.log ? console[cat && console[cat] && cat in LEVELS ? cat : "log"](m) : "undefined" != typeof opera && opera.postError(m)), publisher && !silent && (publisher !== Y || publisher.getEvent("yui:log") || publisher.publish("yui:log", {
var bail, excl, incl, m, minlevel, Y1 = INSTANCE, c = Y1.config, publisher = Y1.fire ? Y1 : YUI.Env.globalEvents;
return c.debug && (void 0 !== (src = src || "") && (excl = c.logExclude, !(incl = c.logInclude) || src in incl ? incl && src in incl ? bail = !incl[src] : excl && src in excl && (bail = excl[src]) : bail = 1, Y1.config.logLevel = Y1.config.logLevel || "debug", minlevel = LEVELS[Y1.config.logLevel.toLowerCase()], cat in LEVELS && LEVELS[cat] < minlevel && (bail = 1)), bail || (c.useBrowserConsole && (m = src ? src + ": " + msg : msg, Y1.Lang.isFunction(c.logFn) ? c.logFn.call(Y1, msg, cat, src) : "undefined" != typeof console && console.log ? console[cat && console[cat] && cat in LEVELS ? cat : "log"](m) : "undefined" != typeof opera && opera.postError(m)), publisher && !silent && (publisher !== Y1 || publisher.getEvent("yui:log") || publisher.publish("yui:log", {
broadcast: 2
}), publisher.fire("yui:log", {
msg: msg,
cat: cat,
src: src
})))), Y;
})))), Y1;
}, INSTANCE.message = function() {
return INSTANCE.log.apply(INSTANCE, arguments);
};

View File

@ -1,31 +1,55 @@
function a() {
var a = [1];
var [b] = a;
var a1 = [
1
];
var [b] = a1;
f(b);
}
function b() {
var a = { b: 1 };
var { b: b } = a;
f(b);
var a1 = {
b: 1
};
var { b: b1 } = a1;
f(b1);
}
function c() {
var a = [[1]];
var [[b]] = a;
f(b);
var a1 = [
[
1
]
];
var [[b1]] = a1;
f(b1);
}
function d() {
var a = { b: { b: 1 } };
var {
b: { b: b },
} = a;
f(b);
var a1 = {
b: {
b: 1
}
};
var { b: { b: b1 } } = a1;
f(b1);
}
function e() {
var a = [1, 2, 3, 4, 5];
var x = [[1, 2, 3]];
var y = { h: 1 };
var [b, ...c] = a;
var [...[e, f]] = x;
var a1 = [
1,
2,
3,
4,
5
];
var x = [
[
1,
2,
3
]
];
var y = {
h: 1
};
var [b1, ...c1] = a1;
var [...[e1, f]] = x;
var [...{ g: h }] = y;
f(b, c, e, f, g);
f(b1, c1, e1, f, g);
}

View File

@ -1,10 +1,20 @@
function a() {
var a = [, , 1];
var [b] = a;
var a1 = [
,
,
1
];
var [b] = a1;
f(b);
}
function b() {
var a = [{ a: [1] }];
var [{ b: a }] = a;
var a1 = [
{
a: [
1
]
}
];
var [{ b: a1 }] = a1;
f(b);
}

View File

@ -6,7 +6,7 @@ edition = "2018"
license = "Apache-2.0/MIT"
name = "swc_ecma_transforms_base"
repository = "https://github.com/swc-project/swc.git"
version = "0.37.1"
version = "0.37.3"
[dependencies]
once_cell = "1.5.2"

View File

@ -79,6 +79,11 @@ impl<'a> Hygiene<'a> {
{
let mut b = self.current.declared_symbols.borrow_mut();
let e = b.entry(sym.clone()).or_default();
if let Some(VarDeclKind::Var) = self.var_kind {
self.current.vars.get_mut().insert((sym.clone(), ctxt));
}
if !e.contains(&ctxt) {
e.push(ctxt);
}
@ -212,19 +217,22 @@ impl<'a> Hygiene<'a> {
}
}
fn rename(&mut self, sym: JsWord, ctxt: SyntaxContext) {
// symbol conflicts
let renamed = {
let mut i = 0;
fn get_renamed_symbol(&self, sym: &JsWord) -> JsWord {
let mut b = self.current.rename_idx.borrow_mut();
let i = b.entry(sym.clone()).or_default();
loop {
i += 1;
*i += 1;
let sym = format!("{}{}", sym, i).into();
if !self.current.is_declared(&sym) {
break sym;
}
}
};
}
fn rename(&mut self, sym: JsWord, ctxt: SyntaxContext) {
// symbol conflicts
let renamed = self.get_renamed_symbol(&sym);
if cfg!(debug_assertions) && LOG {
eprintln!("\t{}{:?} -> {}", sym, ctxt, renamed);
@ -236,6 +244,7 @@ impl<'a> Hygiene<'a> {
// Update symbol list
let mut declared_symbols = scope.declared_symbols.borrow_mut();
let is_var = self.current.is_declared_using_var(&(sym.clone(), ctxt));
{
// This assertion was correct in old time, but bundler creates
@ -259,7 +268,9 @@ impl<'a> Hygiene<'a> {
}
let old = declared_symbols.entry(sym.clone()).or_default();
if !is_var {
old.retain(|c| *c != ctxt);
}
// debug_assert!(old.is_empty() || old.len() == 1);
let new = declared_symbols
@ -271,8 +282,7 @@ impl<'a> Hygiene<'a> {
scope
.ops
.borrow_mut()
.rename
.insert((sym, ctxt), renamed.clone().into());
.rename((sym, ctxt), renamed.clone().into());
}
self.current.renamed.insert(renamed.into());
}
@ -324,6 +334,8 @@ impl<'a> Hygiene<'a> {
}
for (sym, ctxt) in self.current.check_queue.take() {
let is_var = self.current.is_declared_using_var(&(sym.clone(), ctxt));
// Check if it's in the current scope.
if let Some(decls) = self.current.declared_symbols.borrow().get(&sym) {
if !decls.contains(&ctxt) {
@ -338,7 +350,8 @@ impl<'a> Hygiene<'a> {
let mut other_ctxts = vec![];
let used = self.current.used.borrow();
let mut add = |s: &Scope| {
let used = s.used.borrow();
if let Some(ctxts) = used.get(&sym) {
'add_loop: for &cx in ctxts {
@ -356,7 +369,7 @@ impl<'a> Hygiene<'a> {
while let Some(c) = cur {
let ops = c.ops.borrow();
if ops.rename.contains_key(&(sym.clone(), cx)) {
if ops.will_be_renamed(&(sym.clone(), cx)) {
continue 'add_loop;
}
cur = c.parent;
@ -365,6 +378,23 @@ impl<'a> Hygiene<'a> {
other_ctxts.push(cx);
}
}
};
add(&self.current);
if is_var {
let mut scope = self.current.parent;
while let Some(s) = scope {
add(s);
if s.kind == ScopeKind::Fn {
break;
}
scope = s.parent;
}
}
if other_ctxts.is_empty() {
continue;
@ -400,7 +430,7 @@ impl<'a> Hygiene<'a> {
}
}
for ((sym, ctxt), _) in &ops.rename {
for ((sym, ctxt), _) in ops.iter() {
let e = used.entry(sym.clone()).or_default();
if let Some(pos) = e.iter().position(|c| *c == *ctxt) {
@ -412,7 +442,7 @@ impl<'a> Hygiene<'a> {
}
}
if ops.rename.is_empty() {
if ops.is_empty() {
return;
}
@ -433,7 +463,7 @@ impl<'a> Hygiene<'a> {
rename.insert(ident.to_id(), orig_name.sym.clone());
let ops = Operations { rename };
let ops = Operations::for_operator(rename);
let mut operator = Operator(&ops);
class.visit_mut_with(&mut operator);
@ -507,6 +537,9 @@ struct Scope<'a> {
/// Kind of the scope.
pub kind: ScopeKind,
/// Bindings which is declared using `var` keyword.
pub vars: RefCell<AHashSet<Id>>,
pub used: RefCell<AHashMap<JsWord, Vec<SyntaxContext>>>,
/// All references declared in this scope
@ -515,6 +548,8 @@ struct Scope<'a> {
pub(crate) ops: RefCell<Operations>,
pub renamed: AHashSet<JsWord>,
rename_idx: RefCell<AHashMap<JsWord, usize>>,
check_queue: Vec<Id>,
}
@ -537,11 +572,23 @@ impl<'a> Scope<'a> {
parent,
kind,
declared_symbols: Default::default(),
// children: Default::default(),
ops: Default::default(),
renamed: Default::default(),
used: Default::default(),
check_queue: Default::default(),
vars: Default::default(),
rename_idx: Default::default(),
}
}
fn is_declared_using_var(&self, id: &Id) -> bool {
if self.vars.borrow().contains(id) {
return true;
}
match self.parent {
Some(p) => p.is_declared_using_var(id),
None => false,
}
}
@ -632,7 +679,7 @@ impl<'a> Scope<'a> {
let mut cur = Some(self);
while let Some(scope) = cur {
if let Some(to) = scope.ops.borrow().rename.get(&(sym.clone(), ctxt)) {
if let Some(to) = scope.ops.borrow().get_renamed(&(sym.clone(), ctxt)) {
if cfg!(debug_assertions) && LOG {
eprintln!("\tChanging symbol: {}{:?} -> {}", sym, ctxt, to);
}
@ -649,11 +696,11 @@ impl<'a> Scope<'a> {
if self.declared_symbols.borrow().contains_key(sym) {
return true;
}
for (_, to) in &self.ops.borrow().rename {
if to == sym {
if self.ops.borrow().is_used_as_rename_target(sym) {
return true;
}
}
match self.parent {
Some(parent) => parent.is_declared(sym),
_ => false,

View File

@ -1,6 +1,7 @@
use std::collections::hash_map::Entry;
use swc_atoms::JsWord;
use swc_common::{
collections::AHashMap,
collections::{AHashMap, AHashSet},
util::{move_map::MoveMap, take::Take},
Spanned, SyntaxContext, DUMMY_SP,
};
@ -9,7 +10,54 @@ use swc_ecma_utils::{ident::IdentLike, Id};
use swc_ecma_visit::{noop_visit_mut_type, VisitMut, VisitMutWith};
#[derive(Debug, Default)]
pub(super) struct Operations {
pub rename: AHashMap<Id, JsWord>,
rename: AHashMap<Id, JsWord>,
symbols: AHashSet<JsWord>,
}
impl Operations {
#[inline]
pub fn for_operator(rename: AHashMap<Id, JsWord>) -> Self {
Self {
rename,
symbols: Default::default(),
}
}
#[inline]
pub fn is_empty(&self) -> bool {
self.rename.is_empty()
}
#[inline]
pub fn rename(&mut self, from: Id, to: JsWord) {
match self.rename.entry(from) {
Entry::Occupied(..) => {}
Entry::Vacant(e) => {
e.insert(to.clone());
self.symbols.insert(to);
}
}
}
#[inline]
pub fn will_be_renamed(&self, i: &Id) -> bool {
self.rename.contains_key(i)
}
#[inline]
pub fn get_renamed(&self, i: &Id) -> Option<JsWord> {
self.rename.get(i).cloned()
}
#[inline]
pub fn is_used_as_rename_target(&self, symbol: &JsWord) -> bool {
self.symbols.contains(symbol)
}
#[inline]
pub fn iter(&self) -> impl Iterator<Item = (&Id, &JsWord)> {
self.rename.iter()
}
}
pub(super) struct Operator<'a>(pub &'a Operations);

View File

@ -1483,7 +1483,7 @@ fn opt_6() {
}
",
)?
.fold_with(&mut OnceMarker::new(&[("foo", &[mark1, mark2, mark1])]));
.fold_with(&mut OnceMarker::new(&[("foo", &[mark1, mark1, mark2])]));
Ok(stmts)
},
"
@ -1611,14 +1611,80 @@ fn issue_2297_1() {
Ok(stmts)
},
"
var _bar = require('./Bar');
var _bar1 = require('./Bar');
var makeX = function(props) {
var _bar1 = props.bar;
var list = _bar1.list;
var _bar = props.bar;
var list = _bar.list;
return list.map(function() {
return _bar.bar;
return _bar1.bar;
});
};
",
);
}
/// `var` has strnage scoping rule.
#[test]
fn var_awareness_1() {
test(
|tester| {
let mark1 = Mark::fresh(Mark::root());
let mark2 = Mark::fresh(Mark::root());
let stmts = tester
.parse_stmts(
"actual1.js",
"
for (var i of [1, 2, 3]) {
for (var i of [4, 5, 6]) {
console.log(i)
}
}
",
)?
.fold_with(&mut OnceMarker::new(&[("i", &[mark1, mark2, mark2])]));
Ok(stmts)
},
"
for (var i of [1, 2, 3]) {
for (var i1 of [4, 5, 6]) {
console.log(i1)
}
}
",
);
}
/// `var` has strnage scoping rule.
#[test]
fn var_awareness_2() {
test(
|tester| {
let mark1 = Mark::fresh(Mark::root());
let mark2 = Mark::fresh(Mark::root());
let stmts = tester
.parse_stmts(
"actual1.js",
"
for (var i of [1, 2, 3]) {
}
for (var i of [4, 5, 6]) {
console.log(i)
}
",
)?
.fold_with(&mut OnceMarker::new(&[("i", &[mark1, mark2, mark2])]));
Ok(stmts)
},
"
for (var i of [1, 2, 3]) {
}
for (var i1 of [4, 5, 6]) {
console.log(i1)
}
",
);
}

View File

@ -216,7 +216,7 @@ test!(
empty,
r#"var [, a, [b], [c], d] = ["foo", "hello", [", ", "junk"], ["world"]];"#,
r#"var ref = ['foo', 'hello', [', ', 'junk'], ['world']], a = ref[1], ref1 = ref[2],
b = ref1[0], ref2 = ref[3], c = ref2[0], d = ref[4];
b = ref1[0], ref3 = ref[3], c = ref3[0], d = ref[4];
"#
);
@ -590,8 +590,8 @@ test!(
}",
"
function foo(bar) {
var foo = bar.foo;
return foo;
var foo1 = bar.foo;
return foo1;
}"
);

View File

@ -1,6 +1,7 @@
use std::{fs::read_to_string, path::PathBuf};
use swc_ecma_parser::Syntax;
use swc_ecma_transforms_compat::es2015::for_of::{for_of, Config};
use swc_ecma_transforms_testing::{test, test_exec};
use swc_ecma_transforms_testing::{compare_stdout, test, test_exec};
fn syntax() -> Syntax {
Default::default()
@ -205,31 +206,31 @@ test!(
continue b;
}
}"#,
r#"var _iteratorNormalCompletion = true, _didIteratorError = false, _iteratorError = undefined;
try {
b: for (var _iterator = d()[Symbol.iterator](), _step; !(_iteratorNormalCompletion =
(_step = _iterator.next()).done); _iteratorNormalCompletion = true) {
let c = _step.value;
"
var _iteratorNormalCompletion = true, _didIteratorError = false, _iteratorError = undefined;
try {
for (var _iterator = f()[Symbol.iterator](), _step1; !(_iteratorNormalCompletion =
(_step1 = _iterator.next()).done); _iteratorNormalCompletion = true) {
b: for(var _iterator = d()[Symbol.iterator](), _step; !(_iteratorNormalCompletion = (_step = \
_iterator.next()).done); _iteratorNormalCompletion = true){
let c = _step.value;
var _iteratorNormalCompletion1 = true, _didIteratorError1 = false, _iteratorError1 = \
undefined;
try {
for(var _iterator1 = f()[Symbol.iterator](), _step1; !(_iteratorNormalCompletion1 = \
(_step1 = _iterator1.next()).done); _iteratorNormalCompletion1 = true){
let e = _step1.value;
continue b;
}
} catch (err) {
_didIteratorError = true;
_iteratorError = err;
_didIteratorError1 = true;
_iteratorError1 = err;
} finally{
try {
if (!_iteratorNormalCompletion && _iterator.return != null) {
_iterator.return();
if (!_iteratorNormalCompletion1 && _iterator1.return != null) {
_iterator1.return();
}
} finally{
if (_didIteratorError) {
throw _iteratorError;
if (_didIteratorError1) {
throw _iteratorError1;
}
}
}
@ -247,7 +248,8 @@ try {
throw _iteratorError;
}
}
}"#,
}
",
ok_if_code_eq
);
@ -569,3 +571,18 @@ if (true) loop: for(let _i = 0, _iter = []; _i < _iter.length; _i++){
"#
);
#[testing::fixture("tests/fixture/for-of/**/exec.js")]
fn fixture(input: PathBuf) {
let input = read_to_string(&input).unwrap();
compare_stdout(
Syntax::default(),
|_| {
for_of(Config {
assume_array: false,
})
},
&input,
);
}

View File

@ -82,10 +82,10 @@ function foo(...a) {
}"#,
r#"var a = 'bar';
function foo() {
for(var _len = arguments.length, a = new Array(_len), _key = 0; _key < _len; _key++){
a[_key] = arguments[_key];
for(var _len = arguments.length, a1 = new Array(_len), _key = 0; _key < _len; _key++){
a1[_key] = arguments[_key];
}
return a;
return a1;
}"#
);
@ -450,10 +450,10 @@ function foo(...args) {
}"#,
r#"var args = 'bar';
function foo() {
for(var _len = arguments.length, args = new Array(_len), _key = 0; _key < _len; _key++){
args[_key] = arguments[_key];
for(var _len = arguments.length, args1 = new Array(_len), _key = 0; _key < _len; _key++){
args1[_key] = arguments[_key];
}
return args;
return args1;
}
"#
);

View File

@ -0,0 +1,6 @@
for (const a of [1, 2, 3]) {
for (const b of [4, 5, 6]) {
console.log(a, b)
}
}

View File

@ -569,9 +569,9 @@ define(["exports"], function (_exports) {
_exports.test = test = +test + 1;
(function () {
var test = 2;
test = 3;
test++;
var test1 = 2;
test1 = 3;
test1++;
})();
var a = 2;

View File

@ -808,9 +808,9 @@ exports.test = test = 5;
exports.test = test = +test + 1;
(function () {
var test = 2;
test = 3;
test++;
var test1 = 2;
test1 = 3;
test1++;
})();
var a = 2;

View File

@ -1,8 +1,8 @@
"use strict";
var _bar = require("./Bar");
var _bar1 = require("./Bar");
const makeX = (props)=>{
const _bar1 = props.bar;
const { list } = _bar1;
return list.map(()=>_bar.bar
const _bar = props.bar;
const { list } = _bar;
return list.map(()=>_bar1.bar
);
};

View File

@ -1280,9 +1280,9 @@ d = 4;
_exports.test = test = +test + 1;
(function () {
var test = 2;
test = 3;
test++;
var test1 = 2;
test1 = 3;
test1++;
})();
var a = 2;

View File

@ -3,9 +3,9 @@ class Foo {
#foo = (_tmp = 1, _brand_check_foo.add(this), _tmp);
#bar = (_tmp1 = 1, _brand_check_bar.add(this), _tmp1);
test() {
var _tmp, _brand_check_bar1 = new WeakSet();
var _tmp4, _brand_check_bar1 = new WeakSet();
class Nested {
#bar = (_tmp = 2, _brand_check_bar1.add(this), _tmp);
#bar = (_tmp4 = 2, _brand_check_bar1.add(this), _tmp4);
test() {
_brand_check_foo.has(this);
_brand_check_bar1.has(this);

View File

@ -2,9 +2,9 @@ var _tmp, _brand_check_foo = new WeakSet();
class Foo {
#foo = (_tmp = 1, _brand_check_foo.add(this), _tmp);
test() {
var _tmp, _brand_check_foo1 = new WeakSet();
var _tmp1, _brand_check_foo1 = new WeakSet();
class Nested {
#foo = (_tmp = 2, _brand_check_foo1.add(this), _tmp);
#foo = (_tmp1 = 2, _brand_check_foo1.add(this), _tmp1);
test() {
_brand_check_foo1.has(this);
}

View File

@ -878,10 +878,10 @@ test!(
_c6 = B;
function hoc() {
var _s = $RefreshSig$();
var _s6 = $RefreshSig$();
return _s(function Inner() {
_s();
return _s6(function Inner() {
_s6();
const [foo, setFoo] = useState(0);
React.useEffect(() => {});

View File

@ -362,6 +362,17 @@ where
let module = tester.apply_transform(tr, "input.js", syntax, input)?;
match ::std::env::var("PRINT_HYGIENE") {
Ok(ref s) if s == "1" => {
let hygiene_src = tester.print(
&module.clone().fold_with(&mut HygieneVisualizer),
&tester.comments.clone(),
);
println!("----- Hygiene -----\n{}", hygiene_src);
}
_ => {}
}
let mut module = module
.fold_with(&mut hygiene::hygiene())
.fold_with(&mut fixer::fixer(Some(&tester.comments)));

View File

@ -4907,15 +4907,15 @@ test!(
_dec6,
_dec7
], Object.getOwnPropertyDescriptor(_class1.prototype, "method"), _class1.prototype), _class1)) || _class1) || _class1) || _class1) || _class1;
var _dec19 = typeof Reflect !== "undefined" && typeof Reflect.metadata === "function" && Reflect.metadata("design:paramtypes", [
var _dec55 = typeof Reflect !== "undefined" && typeof Reflect.metadata === "function" && Reflect.metadata("design:paramtypes", [
typeof Injected === "undefined" ? Object : Injected,
typeof Injected === "undefined" ? Object : Injected
]), _dec20 = typeof Reflect !== "undefined" && typeof Reflect.metadata === "function" && Reflect.metadata("design:type", Function), _dec21 = function(target, key) {
]), _dec56 = typeof Reflect !== "undefined" && typeof Reflect.metadata === "function" && Reflect.metadata("design:type", Function), _dec57 = function(target, key) {
return inject()(target, undefined, 1);
}, _dec22 = function(target, key) {
}, _dec58 = function(target, key) {
return inject()(target, undefined, 0);
};
let DecoratedClass = _class2 = Decorate(_class2 = _dec22(_class2 = _dec21(_class2 = _dec20(_class2 = _dec19(((_class2 = class DecoratedClass {
let DecoratedClass = _class2 = Decorate(_class2 = _dec58(_class2 = _dec57(_class2 = _dec56(_class2 = _dec55(((_class2 = class DecoratedClass {
constructor(private readonly module: Injected, otherModule: Injected){
}
method(param: string) {

View File

@ -27,7 +27,7 @@ var load3 = __spack_require__.bind(void 0, function(module, exports) {
console.log('b');
module.exports = 'b';
});
var load4 = __spack_require__.bind(void 0, function(module, exports) {
var load7 = __spack_require__.bind(void 0, function(module, exports) {
var aa = load1();
var bb = load2();
load3();
@ -36,10 +36,10 @@ var load4 = __spack_require__.bind(void 0, function(module, exports) {
bb: bb
};
});
var load5 = __spack_require__.bind(void 0, function(module, exports) {
var load8 = __spack_require__.bind(void 0, function(module, exports) {
console.log('c');
});
load4();
load7();
var b = load3();
load5();
load8();
console.log(b);

File diff suppressed because it is too large Load Diff

View File

@ -53,7 +53,7 @@ class Shard extends _utils.Emitter {
* Whether this shard is connected to the gateway or not.
* @type {boolean}
*/ get connected() {
return _classPrivateFieldGet(this, _ws2) && _classPrivateFieldGet(this, _ws2).readyState === _ws1.default.OPEN;
return _classPrivateFieldGet(this, _ws6) && _classPrivateFieldGet(this, _ws6).readyState === _ws1.default.OPEN;
}
/**
* Send a new packet to the discord gateway.
@ -67,7 +67,7 @@ class Shard extends _utils.Emitter {
return;
}
const encoded = _classPrivateFieldGet(this, _serialization1).encode(data);
_classPrivateFieldGet(this, _ws2).send(encoded);
_classPrivateFieldGet(this, _ws6).send(encoded);
};
if (data.op === _utils.GatewayOp.PRESENCE_UPDATE) {
++_w;
@ -89,14 +89,14 @@ class Shard extends _utils.Emitter {
this.heartbeat.reset();
this.session.clearHelloTimeout();
// (Step 1) Close the websocket connection.
if (_classPrivateFieldGet(this, _ws2)) {
if (_classPrivateFieldGet(this, _ws2).readyState === _ws1.default.OPEN) {
_classPrivateFieldGet(this, _ws2).close(code);
if (_classPrivateFieldGet(this, _ws6)) {
if (_classPrivateFieldGet(this, _ws6).readyState === _ws1.default.OPEN) {
_classPrivateFieldGet(this, _ws6).close(code);
} else {
this._debug(`Ws State: ${connectionStates[_classPrivateFieldGet(this, _ws2).readyState]}`);
this._debug(`Ws State: ${connectionStates[_classPrivateFieldGet(this, _ws6).readyState]}`);
this._cleanupConnection();
try {
_classPrivateFieldGet(this, _ws2).close(code);
_classPrivateFieldGet(this, _ws6).close(code);
} catch {
// no-op
}
@ -110,7 +110,7 @@ class Shard extends _utils.Emitter {
} else if (emit) {
this.emit(_utils.ShardEvent.DESTROYED);
}
_classPrivateFieldSet(this, _ws2, undefined);
_classPrivateFieldSet(this, _ws6, undefined);
// (Step 4) Set the shard status to disconnected.
this.status = _utils.Status.DISCONNECTED;
// (Step 5) Cache ze current sequence!
@ -130,7 +130,7 @@ class Shard extends _utils.Emitter {
this.session.identify();
return;
}
/* Step 1 - If a socket is already present, destroy it. */ if (_classPrivateFieldGet(this, _ws2)) {
/* Step 1 - If a socket is already present, destroy it. */ if (_classPrivateFieldGet(this, _ws6)) {
this._debug("A connection is already present, cleaning up...");
this.destroy({
emit: false
@ -157,11 +157,11 @@ class Shard extends _utils.Emitter {
* @type {number}
*/ this.connectedAt = Date.now();
/* Step 6 - Connect to the gateway. */ const uri = this.manager.gatewayUrl.replace(/\/*$/m, "");
_classPrivateFieldSet(this, _ws2, new _ws1.default(`${uri}/?${qs}`));
/* Step 7 - Attach the listeners. */ _classPrivateFieldGet(this, _ws2).onopen = this._open.bind(this);
_classPrivateFieldGet(this, _ws2).onclose = this._close.bind(this);
_classPrivateFieldGet(this, _ws2).onerror = this._error.bind(this);
_classPrivateFieldGet(this, _ws2).onmessage = this._message.bind(this);
_classPrivateFieldSet(this, _ws6, new _ws1.default(`${uri}/?${qs}`));
/* Step 7 - Attach the listeners. */ _classPrivateFieldGet(this, _ws6).onopen = this._open.bind(this);
_classPrivateFieldGet(this, _ws6).onclose = this._close.bind(this);
_classPrivateFieldGet(this, _ws6).onerror = this._error.bind(this);
_classPrivateFieldGet(this, _ws6).onmessage = this._message.bind(this);
}
_packet(raw) {
/** @type {DiscordPacket} */ let pak;
@ -263,7 +263,7 @@ class Shard extends _utils.Emitter {
*/ _open() {
var ref;
this.status = _utils.Status.HANDSHAKING;
this._debug(`Connected. ${(ref = _classPrivateFieldGet(this, _ws2)) === null || ref === void 0 ? void 0 : ref.url} in ${Date.now() - this.connectedAt}`);
this._debug(`Connected. ${(ref = _classPrivateFieldGet(this, _ws6)) === null || ref === void 0 ? void 0 : ref.url} in ${Date.now() - this.connectedAt}`);
if (_classPrivateFieldGet(this, _queue).length) {
this._debug(`${_classPrivateFieldGet(this, _queue).length} packets waiting... sending all now.`);
while(_classPrivateFieldGet(this, _queue).length){
@ -299,7 +299,7 @@ class Shard extends _utils.Emitter {
_classPrivateFieldSet(this, _seq, -1);
this.heartbeat.reset();
this.session.clearHelloTimeout();
if (_classPrivateFieldGet(this, _ws2)) {
if (_classPrivateFieldGet(this, _ws6)) {
this._cleanupConnection();
}
this.status = _utils.Status.DISCONNECTED;
@ -320,7 +320,7 @@ class Shard extends _utils.Emitter {
* Cleans up the WebSocket connection listeners.
* @private
*/ _cleanupConnection() {
_classPrivateFieldGet(this, _ws2).onopen = _classPrivateFieldGet(this, _ws2).onclose = _classPrivateFieldGet(this, _ws2).onerror = _classPrivateFieldGet(this, _ws2).onmessage = null;
_classPrivateFieldGet(this, _ws6).onopen = _classPrivateFieldGet(this, _ws6).onclose = _classPrivateFieldGet(this, _ws6).onerror = _classPrivateFieldGet(this, _ws6).onmessage = null;
}
/**
* Used for debugging shard stuff.
@ -379,7 +379,7 @@ class Shard extends _utils.Emitter {
/**
* The current connection.
* @type {WebSocket}
*/ _ws2.set(this, {
*/ _ws6.set(this, {
writable: true,
value: void 0
});
@ -446,5 +446,5 @@ var _seq = new WeakMap();
var _closingSeq = new WeakMap();
var _bucket = new WeakMap();
var _presenceBucket = new WeakMap();
var _ws2 = new WeakMap();
var _ws6 = new WeakMap();
var _queue = new WeakMap();

View File

@ -11,55 +11,55 @@ class MyClass1 {
this.param1 = param1;
}
}) || _class) || _class) || _class) || _class;
var _dec3 = typeof Reflect !== "undefined" && typeof Reflect.metadata === "function" && Reflect.metadata("design:paramtypes", [
var _dec5 = typeof Reflect !== "undefined" && typeof Reflect.metadata === "function" && Reflect.metadata("design:paramtypes", [
typeof Injected === "undefined" ? Object : Injected
]), _dec4 = typeof Reflect !== "undefined" && typeof Reflect.metadata === "function" && Reflect.metadata("design:type", Function), _dec5 = function(target, key) {
]), _dec6 = typeof Reflect !== "undefined" && typeof Reflect.metadata === "function" && Reflect.metadata("design:type", Function), _dec7 = function(target, key) {
return Inject()(target, undefined, 0);
};
let MyClass21 = _class1 = _dec5(_class1 = _dec4(_class1 = _dec3((_class1 = class MyClass2 {
let MyClass21 = _class1 = _dec7(_class1 = _dec6(_class1 = _dec5((_class1 = class MyClass2 {
constructor(param1){
this.param1 = param1;
}
}) || _class1) || _class1) || _class1) || _class1;
var _dec6 = typeof Reflect !== "undefined" && typeof Reflect.metadata === "function" && Reflect.metadata("design:paramtypes", [
var _dec8 = typeof Reflect !== "undefined" && typeof Reflect.metadata === "function" && Reflect.metadata("design:paramtypes", [
typeof Injected === "undefined" ? Object : Injected
]), _dec7 = typeof Reflect !== "undefined" && typeof Reflect.metadata === "function" && Reflect.metadata("design:type", Function), _dec8 = function(target, key) {
]), _dec9 = typeof Reflect !== "undefined" && typeof Reflect.metadata === "function" && Reflect.metadata("design:type", Function), _dec10 = function(target, key) {
return Inject()(target, undefined, 0);
};
let MyClass31 = _class2 = _dec8(_class2 = _dec7(_class2 = _dec6((_class2 = class MyClass3 {
let MyClass31 = _class2 = _dec10(_class2 = _dec9(_class2 = _dec8((_class2 = class MyClass3 {
constructor(param1){
this.param1 = param1;
}
}) || _class2) || _class2) || _class2) || _class2;
var _dec9 = typeof Reflect !== "undefined" && typeof Reflect.metadata === "function" && Reflect.metadata("design:paramtypes", [
var _dec11 = typeof Reflect !== "undefined" && typeof Reflect.metadata === "function" && Reflect.metadata("design:paramtypes", [
typeof Injected === "undefined" ? Object : Injected
]), _dec10 = typeof Reflect !== "undefined" && typeof Reflect.metadata === "function" && Reflect.metadata("design:type", Function), _dec11 = function(target, key) {
]), _dec12 = typeof Reflect !== "undefined" && typeof Reflect.metadata === "function" && Reflect.metadata("design:type", Function), _dec13 = function(target, key) {
return Inject()(target, undefined, 0);
};
let MyClass41 = _class3 = _dec11(_class3 = _dec10(_class3 = _dec9((_class3 = class MyClass4 {
let MyClass41 = _class3 = _dec13(_class3 = _dec12(_class3 = _dec11((_class3 = class MyClass4 {
constructor(param1){
this.param1 = param1;
}
}) || _class3) || _class3) || _class3) || _class3;
var _dec12 = typeof Reflect !== "undefined" && typeof Reflect.metadata === "function" && Reflect.metadata("design:paramtypes", [
var _dec14 = typeof Reflect !== "undefined" && typeof Reflect.metadata === "function" && Reflect.metadata("design:paramtypes", [
typeof Injected === "undefined" ? Object : Injected
]), _dec13 = typeof Reflect !== "undefined" && typeof Reflect.metadata === "function" && Reflect.metadata("design:type", Function), _dec14 = function(target, key) {
]), _dec15 = typeof Reflect !== "undefined" && typeof Reflect.metadata === "function" && Reflect.metadata("design:type", Function), _dec16 = function(target, key) {
return Inject()(target, undefined, 0);
};
let MyClass51 = _class4 = _dec14(_class4 = _dec13(_class4 = _dec12((_class4 = class MyClass5 {
let MyClass51 = _class4 = _dec16(_class4 = _dec15(_class4 = _dec14((_class4 = class MyClass5 {
constructor(param1){
this.param1 = param1;
}
}) || _class4) || _class4) || _class4) || _class4;
var _dec15 = typeof Reflect !== "undefined" && typeof Reflect.metadata === "function" && Reflect.metadata("design:paramtypes", [
var _dec17 = typeof Reflect !== "undefined" && typeof Reflect.metadata === "function" && Reflect.metadata("design:paramtypes", [
typeof Injected === "undefined" ? Object : Injected,
typeof Injected === "undefined" ? Object : Injected
]), _dec16 = typeof Reflect !== "undefined" && typeof Reflect.metadata === "function" && Reflect.metadata("design:type", Function), _dec17 = function(target, key) {
]), _dec18 = typeof Reflect !== "undefined" && typeof Reflect.metadata === "function" && Reflect.metadata("design:type", Function), _dec19 = function(target, key) {
return Inject()(target, undefined, 1);
}, _dec18 = function(target, key) {
}, _dec20 = function(target, key) {
return Inject()(target, undefined, 0);
};
let MyClass61 = _class5 = _dec18(_class5 = _dec17(_class5 = _dec16(_class5 = _dec15((_class5 = class MyClass6 {
let MyClass61 = _class5 = _dec20(_class5 = _dec19(_class5 = _dec18(_class5 = _dec17((_class5 = class MyClass6 {
constructor(param1, param2){
this.param1 = param1;
this.param2 = param2;

View File

@ -10,28 +10,28 @@ class MyClass1 {
constructor(param1){
}
}) || _class) || _class) || _class) || _class;
var _dec3 = typeof Reflect !== "undefined" && typeof Reflect.metadata === "function" && Reflect.metadata("design:paramtypes", [
var _dec5 = typeof Reflect !== "undefined" && typeof Reflect.metadata === "function" && Reflect.metadata("design:paramtypes", [
typeof Injected === "undefined" ? Object : Injected,
typeof Injected === "undefined" ? Object : Injected
]), _dec4 = typeof Reflect !== "undefined" && typeof Reflect.metadata === "function" && Reflect.metadata("design:type", Function), _dec5 = function(target, key) {
]), _dec6 = typeof Reflect !== "undefined" && typeof Reflect.metadata === "function" && Reflect.metadata("design:type", Function), _dec7 = function(target, key) {
return Inject()(target, undefined, 1);
}, _dec6 = function(target, key) {
}, _dec8 = function(target, key) {
return Inject()(target, undefined, 0);
};
let MyClass21 = _class1 = _dec6(_class1 = _dec5(_class1 = _dec4(_class1 = _dec3((_class1 = class MyClass2 {
let MyClass21 = _class1 = _dec8(_class1 = _dec7(_class1 = _dec6(_class1 = _dec5((_class1 = class MyClass2 {
constructor(param1, param2){
this.param1 = param1;
}
}) || _class1) || _class1) || _class1) || _class1) || _class1;
var _dec7 = typeof Reflect !== "undefined" && typeof Reflect.metadata === "function" && Reflect.metadata("design:paramtypes", [
var _dec9 = typeof Reflect !== "undefined" && typeof Reflect.metadata === "function" && Reflect.metadata("design:paramtypes", [
typeof Injected === "undefined" ? Object : Injected,
typeof Injected === "undefined" ? Object : Injected
]), _dec8 = typeof Reflect !== "undefined" && typeof Reflect.metadata === "function" && Reflect.metadata("design:type", Function), _dec9 = function(target, key) {
]), _dec10 = typeof Reflect !== "undefined" && typeof Reflect.metadata === "function" && Reflect.metadata("design:type", Function), _dec11 = function(target, key) {
return Inject()(target, undefined, 1);
}, _dec10 = function(target, key) {
}, _dec12 = function(target, key) {
return Inject()(target, undefined, 0);
};
let MyClass31 = _class2 = _dec10(_class2 = _dec9(_class2 = _dec8(_class2 = _dec7((_class2 = class MyClass3 {
let MyClass31 = _class2 = _dec12(_class2 = _dec11(_class2 = _dec10(_class2 = _dec9((_class2 = class MyClass3 {
constructor(param1, param2){
this.param2 = param2;
}