fix(es/minifier): Fix inlining logic (#3776)

swc_ecma_minifier:
 - Make `inline_vars_in_node` use `MultiReplacer`.
This commit is contained in:
Donny/강동윤 2022-02-28 21:07:12 +09:00 committed by GitHub
parent f81e9bf208
commit cfc036381a
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
61 changed files with 326 additions and 459 deletions

View File

@ -1,4 +1,4 @@
var Example1, Example2, Example3, Example4, Example5, GH14865, GH12052;
var Example1, Example2, Example3, Example4, Example5, GH14865, GH12052, GH39357;
Example1 || (Example1 = {}), t = s, Example2 || (Example2 = {}), t = s, Example3 || (Example3 = {}), t = s, Example4 || (Example4 = {}), t = s, Example5 || (Example5 = {}), t = s, (function(GH14865) {
let b;
b.type, b = {
@ -14,4 +14,4 @@ Example1 || (Example1 = {}), t = s, Example2 || (Example2 = {}), t = s, Example3
type: void 0
};
good.type = getAxisType();
})(GH12052 || (GH12052 = {}));
})(GH12052 || (GH12052 = {})), GH39357 || (GH39357 = {}), "a" === b || "b" === b;

View File

@ -1,4 +1,4 @@
var Example1, Example2, Example3, Example4, Example5, GH14865, GH12052;
var Example1, Example2, Example3, Example4, Example5, GH14865, GH12052, GH39357;
Example1 || (Example1 = {}), t = s, Example2 || (Example2 = {}), t = s, Example3 || (Example3 = {}), t = s, Example4 || (Example4 = {}), t = s, Example5 || (Example5 = {}), t = s, (function(GH14865) {
var b;
b.type, b = {
@ -10,4 +10,4 @@ Example1 || (Example1 = {}), t = s, Example2 || (Example2 = {}), t = s, Example3
return "categorical";
};
getAxisType(), void 0 = getAxisType();
})(GH12052 || (GH12052 = {}));
})(GH12052 || (GH12052 = {})), GH39357 || (GH39357 = {}), "a" === b || "b" === b;

View File

@ -1,24 +0,0 @@
function asyncGeneratorStep(gen, resolve, reject, _next, _throw, key, arg) {
try {
var info = gen[key](arg), value = info.value;
} catch (error) {
reject(error);
return;
}
info.done ? resolve(value) : Promise.resolve(value).then(_next, _throw);
}
!function(fn) {
return function() {
var self = this, args = arguments;
return new Promise(function(resolve, reject) {
var gen = fn.apply(self, args);
function _next(value) {
asyncGeneratorStep(gen, resolve, reject, _next, _throw, "next", value);
}
function _throw(err) {
asyncGeneratorStep(gen, resolve, reject, _next, _throw, "throw", err);
}
_next(void 0);
});
};
}(function*() {});

View File

@ -1,24 +0,0 @@
function asyncGeneratorStep(gen, resolve, reject, _next, _throw, key, arg) {
try {
var info = gen[key](arg), value = info.value;
} catch (error) {
reject(error);
return;
}
info.done ? resolve(value) : Promise.resolve(value).then(_next, _throw);
}
!function(fn) {
return function() {
var self = this, args = arguments;
return new Promise(function(resolve, reject) {
var gen = fn.apply(self, args);
function _next(value) {
asyncGeneratorStep(gen, resolve, reject, _next, _throw, "next", value);
}
function _throw(err) {
asyncGeneratorStep(gen, resolve, reject, _next, _throw, "throw", err);
}
_next(void 0);
});
};
}(function*() {});

View File

@ -1,24 +0,0 @@
function asyncGeneratorStep(gen, resolve, reject, _next, _throw, key, arg) {
try {
var info = gen[key](arg), value = info.value;
} catch (error) {
reject(error);
return;
}
info.done ? resolve(value) : Promise.resolve(value).then(_next, _throw);
}
!function(fn) {
return function() {
var self = this, args = arguments;
return new Promise(function(resolve, reject) {
var gen = fn.apply(self, args);
function _next(value) {
asyncGeneratorStep(gen, resolve, reject, _next, _throw, "next", value);
}
function _throw(err) {
asyncGeneratorStep(gen, resolve, reject, _next, _throw, "throw", err);
}
_next(void 0);
});
};
}(function*() {});

View File

@ -1,24 +0,0 @@
function asyncGeneratorStep(gen, resolve, reject, _next, _throw, key, arg) {
try {
var info = gen[key](arg), value = info.value;
} catch (error) {
reject(error);
return;
}
info.done ? resolve(value) : Promise.resolve(value).then(_next, _throw);
}
!function(fn) {
return function() {
var self = this, args = arguments;
return new Promise(function(resolve, reject) {
var gen = fn.apply(self, args);
function _next(value) {
asyncGeneratorStep(gen, resolve, reject, _next, _throw, "next", value);
}
function _throw(err) {
asyncGeneratorStep(gen, resolve, reject, _next, _throw, "throw", err);
}
_next(void 0);
});
};
}(function*() {});

View File

@ -1,24 +0,0 @@
function asyncGeneratorStep(gen, resolve, reject, _next, _throw, key, arg) {
try {
var info = gen[key](arg), value = info.value;
} catch (error) {
reject(error);
return;
}
info.done ? resolve(value) : Promise.resolve(value).then(_next, _throw);
}
!function(fn) {
return function() {
var self = this, args = arguments;
return new Promise(function(resolve, reject) {
var gen = fn.apply(self, args);
function _next(value) {
asyncGeneratorStep(gen, resolve, reject, _next, _throw, "next", value);
}
function _throw(err) {
asyncGeneratorStep(gen, resolve, reject, _next, _throw, "throw", err);
}
_next(void 0);
});
};
}(function*() {});

View File

@ -1,24 +0,0 @@
function asyncGeneratorStep(gen, resolve, reject, _next, _throw, key, arg) {
try {
var info = gen[key](arg), value = info.value;
} catch (error) {
reject(error);
return;
}
info.done ? resolve(value) : Promise.resolve(value).then(_next, _throw);
}
!function(fn) {
return function() {
var self = this, args = arguments;
return new Promise(function(resolve, reject) {
var gen = fn.apply(self, args);
function _next(value) {
asyncGeneratorStep(gen, resolve, reject, _next, _throw, "next", value);
}
function _throw(err) {
asyncGeneratorStep(gen, resolve, reject, _next, _throw, "throw", err);
}
_next(void 0);
});
};
}(function*() {});

View File

@ -1,11 +1,14 @@
var M, e1;
var x1, M, e1;
function foo3() {
return foo3();
}
function m1() {
return 1;
}
foo3(), (function(x) {
x1 = 1, (function(x) {
var x1;
x1 = 1;
})(1), foo3(), (function(x) {
try {} catch (e) {
return [];
} finally{}

View File

@ -4,7 +4,10 @@ function _classCallCheck(instance, Constructor) {
function foo3() {
return foo3();
}
foo3(), (function(x) {
x1 = 1, (function(x) {
var x1;
x1 = 1;
})(1), foo3(), (function(x) {
try {} catch (e) {
return [];
} finally{}
@ -12,7 +15,7 @@ foo3(), (function(x) {
var obj;
void 0 === x || (obj = x) && "undefined" != typeof Symbol && obj.constructor === Symbol;
})(1);
var M, e1, C = function() {
var M, e1, x1, C = function() {
"use strict";
_classCallCheck(this, C);
};

View File

@ -1,14 +1,13 @@
class C {
}
var _x = {
!function(receiver, classConstructor, descriptor) {
var receiver, descriptor;
return (function(receiver, classConstructor) {
if (receiver !== classConstructor) throw new TypeError("Private static access of wrong provenance");
})(receiver, classConstructor), !function(descriptor, action) {
if (void 0 === descriptor) throw new TypeError("attempted to get private static field before its declaration");
}(descriptor, "get"), descriptor.get ? descriptor.get.call(receiver) : descriptor.value;
}(C, C, {
writable: !0,
value: 1
};
(()=>{
var receiver, classConstructor, descriptor, receiver, descriptor;
receiver = C, classConstructor = C, descriptor = _x, (function(receiver, classConstructor) {
if (receiver !== classConstructor) throw new TypeError("Private static access of wrong provenance");
})(receiver, classConstructor), (function(descriptor, action) {
if (void 0 === descriptor) throw new TypeError("attempted to get private static field before its declaration");
})(descriptor, "get"), (descriptor = descriptor).get ? descriptor.get.call(receiver) : descriptor.value;
})();
});

View File

@ -13,5 +13,5 @@ var C = function() {
if (receiver !== classConstructor) throw new TypeError("Private static access of wrong provenance");
})(receiver, classConstructor), (function(descriptor, action) {
if (void 0 === descriptor) throw new TypeError("attempted to get private static field before its declaration");
})(descriptor, "get"), (descriptor = descriptor).get ? descriptor.get.call(receiver) : descriptor.value;
})(descriptor, "get"), descriptor.get ? descriptor.get.call(receiver) : descriptor.value;
}();

View File

@ -24,7 +24,7 @@ let trace = [], order = (n)=>trace.push(n)
}(source, excluded);
if (Object.getOwnPropertySymbols) {
var sourceSymbolKeys = Object.getOwnPropertySymbols(source);
for(i = 0; i < sourceSymbolKeys.length; i++)key2 = sourceSymbolKeys[i], !(excluded.indexOf(key2) >= 0) && Object.prototype.propertyIsEnumerable.call(source, key2) && (target[key2] = source[key2]);
for(i = 0; i < sourceSymbolKeys.length; i++)key2 = sourceSymbolKeys[i], excluded.indexOf(key2) >= 0 || Object.prototype.propertyIsEnumerable.call(source, key2) && (target[key2] = source[key2]);
}
return target;
}(_ref, [

View File

@ -31,7 +31,7 @@ var _ref = {}, key = order(0), key1 = order(2), tmp2 = _ref[key];
}(source, excluded);
if (Object.getOwnPropertySymbols) {
var sourceSymbolKeys = Object.getOwnPropertySymbols(source);
for(i = 0; i < sourceSymbolKeys.length; i++)key2 = sourceSymbolKeys[i], !(excluded.indexOf(key2) >= 0) && Object.prototype.propertyIsEnumerable.call(source, key2) && (target[key2] = source[key2]);
for(i = 0; i < sourceSymbolKeys.length; i++)key2 = sourceSymbolKeys[i], excluded.indexOf(key2) >= 0 || Object.prototype.propertyIsEnumerable.call(source, key2) && (target[key2] = source[key2]);
}
})(_ref, [
key

View File

@ -10,7 +10,7 @@ let a, d;
}(source, excluded);
if (Object.getOwnPropertySymbols) {
var sourceSymbolKeys = Object.getOwnPropertySymbols(source);
for(i = 0; i < sourceSymbolKeys.length; i++)key = sourceSymbolKeys[i], !(excluded.indexOf(key) >= 0) && Object.prototype.propertyIsEnumerable.call(source, key) && (target[key] = source[key]);
for(i = 0; i < sourceSymbolKeys.length; i++)key = sourceSymbolKeys[i], excluded.indexOf(key) >= 0 || Object.prototype.propertyIsEnumerable.call(source, key) && (target[key] = source[key]);
}
})((_c = {
x: {

View File

@ -9,7 +9,7 @@ var _c, ref, d;
}(source, excluded);
if (Object.getOwnPropertySymbols) {
var sourceSymbolKeys = Object.getOwnPropertySymbols(source);
for(i = 0; i < sourceSymbolKeys.length; i++)key = sourceSymbolKeys[i], !(excluded.indexOf(key) >= 0) && Object.prototype.propertyIsEnumerable.call(source, key) && (target[key] = source[key]);
for(i = 0; i < sourceSymbolKeys.length; i++)key = sourceSymbolKeys[i], excluded.indexOf(key) >= 0 || Object.prototype.propertyIsEnumerable.call(source, key) && (target[key] = source[key]);
}
})((_c = {
x: {

View File

@ -1,7 +1,7 @@
class Base {
}
new Base();
var x193, x194, x195, x196, x197, x198, x199, x200, x201, x202, x203, x204, d1 = new class extends Base {
var x181, x184, x191, x192, x193, x194, x195, x196, x197, x198, x199, x200, x201, x202, x203, x204, d1 = new class extends Base {
}(), d2 = new class extends Base {
}();
(class {
@ -184,7 +184,7 @@ var x193, x194, x195, x196, x197, x198, x199, x200, x201, x202, x203, x204, d1 =
d1,
d2
]
}, (x193 || (x193 = {})).t = ()=>[
}, x181 || (x181 = {}), x184 || (x184 = {}), x191 || (x191 = {}), x192 || (x192 = {}), (x193 || (x193 = {})).t = ()=>[
d1,
d2
]

View File

@ -1,9 +1,10 @@
var NonGenericParameter, GenericParameter;
!function(NonGenericParameter) {
var a;
function foo4(cb) {
return new cb(null);
}
foo4(void 0), foo4(void 0);
foo4(a), foo4(void 0);
}(NonGenericParameter || (NonGenericParameter = {})), (function(GenericParameter) {
var a, b, c, c2;
function foo5(cb) {

View File

@ -1,9 +1,10 @@
var NonGenericParameter, GenericParameter;
!function(NonGenericParameter) {
var a;
function foo4(cb) {
return cb;
}
foo4(void 0), foo4((x)=>x
foo4(a), foo4((x)=>x
), foo4((x)=>x
);
}(NonGenericParameter || (NonGenericParameter = {})), (function(GenericParameter) {

View File

@ -16,7 +16,7 @@ var _value = new WeakMap();
new class {
get value() {
var receiver, privateMap, descriptor, receiver, descriptor;
return receiver = this, (descriptor = descriptor = _classExtractFieldDescriptor(receiver, privateMap = _value, "get")).get ? descriptor.get.call(receiver) : descriptor.value;
return receiver = this, (descriptor = _classExtractFieldDescriptor(receiver, privateMap = _value, "get")).get ? descriptor.get.call(receiver) : descriptor.value;
}
set value(value) {
_classPrivateFieldSet(this, _value, value);

View File

@ -37,7 +37,7 @@ var _value = new WeakMap(), Box = function() {
key: "value",
get: function() {
var receiver, privateMap, descriptor, receiver, descriptor;
return receiver = this, (descriptor = descriptor = _classExtractFieldDescriptor(receiver, privateMap = _value, "get")).get ? descriptor.get.call(receiver) : descriptor.value;
return receiver = this, (descriptor = _classExtractFieldDescriptor(receiver, privateMap = _value, "get")).get ? descriptor.get.call(receiver) : descriptor.value;
},
set: function(value) {
_classPrivateFieldSet(this, _value, value);

View File

@ -15,7 +15,7 @@ function _classExtractFieldDescriptor(receiver, privateMap, action) {
new class {
get value() {
var receiver, privateMap, descriptor, receiver, descriptor;
return receiver = this, (descriptor = descriptor = _classExtractFieldDescriptor(receiver, privateMap = _value, "get")).get ? descriptor.get.call(receiver) : descriptor.value;
return receiver = this, (descriptor = _classExtractFieldDescriptor(receiver, privateMap = _value, "get")).get ? descriptor.get.call(receiver) : descriptor.value;
}
set value(value) {
var receiver, privateMap, value1, descriptor;

View File

@ -48,7 +48,7 @@ function _createClass(Constructor, protoProps, staticProps) {
key: "value",
get: function() {
var receiver, privateMap, descriptor, receiver, descriptor;
return receiver = this, (descriptor = descriptor = _classExtractFieldDescriptor(receiver, privateMap = _value, "get")).get ? descriptor.get.call(receiver) : descriptor.value;
return receiver = this, (descriptor = _classExtractFieldDescriptor(receiver, privateMap = _value, "get")).get ? descriptor.get.call(receiver) : descriptor.value;
},
set: function(value) {
var receiver, privateMap, value1, descriptor;

View File

@ -0,0 +1,7 @@
var base, derived, derived2, WithContextualType;
class Base {
}
class Derived extends Base {
}
Derived || (Derived = {}), WithContextualType || (WithContextualType = {}), ()=>derived2
;

View File

@ -31,7 +31,7 @@ t2.z.toString();
}(source, excluded);
if (Object.getOwnPropertySymbols) {
var sourceSymbolKeys = Object.getOwnPropertySymbols(source);
for(i = 0; i < sourceSymbolKeys.length; i++)key = sourceSymbolKeys[i], !(excluded.indexOf(key) >= 0) && Object.prototype.propertyIsEnumerable.call(source, key) && (target[key] = source[key]);
for(i = 0; i < sourceSymbolKeys.length; i++)key = sourceSymbolKeys[i], excluded.indexOf(key) >= 0 || Object.prototype.propertyIsEnumerable.call(source, key) && (target[key] = source[key]);
}
return target;
}(numMapPoint, [

View File

@ -64,7 +64,7 @@ var x1 = numMapPoint.x, q = function(source, excluded) {
}(source, excluded);
if (Object.getOwnPropertySymbols) {
var sourceSymbolKeys = Object.getOwnPropertySymbols(source);
for(i = 0; i < sourceSymbolKeys.length; i++)key = sourceSymbolKeys[i], !(excluded.indexOf(key) >= 0) && Object.prototype.propertyIsEnumerable.call(source, key) && (target[key] = source[key]);
for(i = 0; i < sourceSymbolKeys.length; i++)key = sourceSymbolKeys[i], excluded.indexOf(key) >= 0 || Object.prototype.propertyIsEnumerable.call(source, key) && (target[key] = source[key]);
}
return target;
}(numMapPoint, [

View File

@ -10,7 +10,7 @@ try {} catch (_param) {
}(source, excluded);
if (Object.getOwnPropertySymbols) {
var sourceSymbolKeys = Object.getOwnPropertySymbols(source);
for(i = 0; i < sourceSymbolKeys.length; i++)key = sourceSymbolKeys[i], !(excluded.indexOf(key) >= 0) && Object.prototype.propertyIsEnumerable.call(source, key) && (target[key] = source[key]);
for(i = 0; i < sourceSymbolKeys.length; i++)key = sourceSymbolKeys[i], excluded.indexOf(key) >= 0 || Object.prototype.propertyIsEnumerable.call(source, key) && (target[key] = source[key]);
}
return target;
}(_param, [

View File

@ -9,7 +9,7 @@ try {} catch (_param) {
}(source, excluded);
if (Object.getOwnPropertySymbols) {
var sourceSymbolKeys = Object.getOwnPropertySymbols(source);
for(i = 0; i < sourceSymbolKeys.length; i++)key = sourceSymbolKeys[i], !(excluded.indexOf(key) >= 0) && Object.prototype.propertyIsEnumerable.call(source, key) && (target[key] = source[key]);
for(i = 0; i < sourceSymbolKeys.length; i++)key = sourceSymbolKeys[i], excluded.indexOf(key) >= 0 || Object.prototype.propertyIsEnumerable.call(source, key) && (target[key] = source[key]);
}
})(_param, [
"a"

View File

@ -12,7 +12,7 @@ const obj = {
}(source, excluded);
if (Object.getOwnPropertySymbols) {
var sourceSymbolKeys = Object.getOwnPropertySymbols(source);
for(i = 0; i < sourceSymbolKeys.length; i++)key = sourceSymbolKeys[i], !(excluded.indexOf(key) >= 0) && Object.prototype.propertyIsEnumerable.call(source, key) && (target[key] = source[key]);
for(i = 0; i < sourceSymbolKeys.length; i++)key = sourceSymbolKeys[i], excluded.indexOf(key) >= 0 || Object.prototype.propertyIsEnumerable.call(source, key) && (target[key] = source[key]);
}
return target;
}(obj, [

View File

@ -13,7 +13,7 @@ obj.foo, delete function(source, excluded) {
}(source, excluded);
if (Object.getOwnPropertySymbols) {
var sourceSymbolKeys = Object.getOwnPropertySymbols(source);
for(i = 0; i < sourceSymbolKeys.length; i++)key = sourceSymbolKeys[i], !(excluded.indexOf(key) >= 0) && Object.prototype.propertyIsEnumerable.call(source, key) && (target[key] = source[key]);
for(i = 0; i < sourceSymbolKeys.length; i++)key = sourceSymbolKeys[i], excluded.indexOf(key) >= 0 || Object.prototype.propertyIsEnumerable.call(source, key) && (target[key] = source[key]);
}
return target;
}(obj, [

View File

@ -33,7 +33,7 @@ const o = function(target) {
}(source, excluded);
if (Object.getOwnPropertySymbols) {
var sourceSymbolKeys = Object.getOwnPropertySymbols(source);
for(i = 0; i < sourceSymbolKeys.length; i++)key = sourceSymbolKeys[i], !(excluded.indexOf(key) >= 0) && Object.prototype.propertyIsEnumerable.call(source, key) && (target[key] = source[key]);
for(i = 0; i < sourceSymbolKeys.length; i++)key = sourceSymbolKeys[i], excluded.indexOf(key) >= 0 || Object.prototype.propertyIsEnumerable.call(source, key) && (target[key] = source[key]);
}
})(_o = o, [
"b"

View File

@ -17,7 +17,7 @@ function _defineProperty(obj, key, value) {
}(source, excluded);
if (Object.getOwnPropertySymbols) {
var sourceSymbolKeys = Object.getOwnPropertySymbols(source);
for(i = 0; i < sourceSymbolKeys.length; i++)key = sourceSymbolKeys[i], !(excluded.indexOf(key) >= 0) && Object.prototype.propertyIsEnumerable.call(source, key) && (target[key] = source[key]);
for(i = 0; i < sourceSymbolKeys.length; i++)key = sourceSymbolKeys[i], excluded.indexOf(key) >= 0 || Object.prototype.propertyIsEnumerable.call(source, key) && (target[key] = source[key]);
}
})(_o = function(target) {
for(var i = 1; i < arguments.length; i++){

View File

@ -4,7 +4,7 @@ var _x = new WeakMap(), tmp = (getX = (a)=>(function(receiver, privateMap) {
if (!privateMap.has(receiver)) throw new TypeError("attempted to get private field on non-instance");
return privateMap.get(receiver);
}(receiver, privateMap, "get");
return (descriptor = descriptor).get ? descriptor.get.call(receiver) : descriptor.value;
return descriptor.get ? descriptor.get.call(receiver) : descriptor.value;
})(a, _x)
, "_");
console.log(getX(new class {

View File

@ -6,7 +6,7 @@ function _defineProperties(target, props) {
}
var getX, _x = new WeakMap(), tmp = (getX = function(a) {
var receiver, privateMap, descriptor, receiver, descriptor;
return (descriptor = descriptor = (function(receiver, privateMap, action) {
return (descriptor = (function(receiver, privateMap, action) {
if (!privateMap.has(receiver)) throw new TypeError("attempted to get private field on non-instance");
return privateMap.get(receiver);
})(receiver = a, privateMap = _x, "get")).get ? descriptor.get.call(receiver) : descriptor.value;

View File

@ -17,7 +17,7 @@ export class C {
get: void 0,
set: function(v) {
var receiver, privateMap, descriptor, receiver, descriptor, receiver, privateMap, value, descriptor;
receiver = this, privateMap = _a, receiver = this, value = ((descriptor = descriptor = _classExtractFieldDescriptor(receiver, privateMap = _a, "get")).get ? descriptor.get.call(receiver) : descriptor.value) + v, descriptor = _classExtractFieldDescriptor(receiver, privateMap, "set"), (function(receiver, descriptor, value) {
receiver = this, privateMap = _a, receiver = this, value = ((descriptor = _classExtractFieldDescriptor(receiver, privateMap = _a, "get")).get ? descriptor.get.call(receiver) : descriptor.value) + v, descriptor = _classExtractFieldDescriptor(receiver, privateMap, "set"), (function(receiver, descriptor, value) {
if (descriptor.set) descriptor.set.call(receiver, value);
else {
if (!descriptor.writable) throw new TypeError("attempted to set read only private field");

View File

@ -24,7 +24,7 @@ export var C = function() {
};
function set_c(v) {
var receiver, privateMap, descriptor, receiver, descriptor, receiver, privateMap, value, descriptor;
receiver = this, privateMap = _a, receiver = this, value = ((descriptor = descriptor = _classExtractFieldDescriptor(receiver, privateMap = _a, "get")).get ? descriptor.get.call(receiver) : descriptor.value) + v, descriptor = _classExtractFieldDescriptor(receiver, privateMap, "set"), (function(receiver, descriptor, value) {
receiver = this, privateMap = _a, receiver = this, value = ((descriptor = _classExtractFieldDescriptor(receiver, privateMap = _a, "get")).get ? descriptor.get.call(receiver) : descriptor.value) + v, descriptor = _classExtractFieldDescriptor(receiver, privateMap, "set"), (function(receiver, descriptor, value) {
if (descriptor.set) descriptor.set.call(receiver, value);
else {
if (!descriptor.writable) throw new TypeError("attempted to set read only private field");

View File

@ -8,7 +8,7 @@ var _myField = new WeakMap(), A = function() {
value: "hello world"
}, (function(obj, privateCollection) {
if (privateCollection.has(obj)) throw new TypeError("Cannot initialize the same private elements twice on an object");
})(obj, privateMap = _myField), privateMap.set(obj, value), console.log((receiver = this, (descriptor = descriptor = function(receiver, privateMap, action) {
})(obj, privateMap = _myField), privateMap.set(obj, value), console.log((receiver = this, (descriptor = function(receiver, privateMap, action) {
if (!privateMap.has(receiver)) throw new TypeError("attempted to get private field on non-instance");
return privateMap.get(receiver);
}(receiver, privateMap = _myField, "get")).get ? descriptor.get.call(receiver) : descriptor.value));

View File

@ -50,7 +50,7 @@ var _y = new WeakMap(), Test = function() {
writable: !0,
value: 1
}), this.s = "prop";
})).s], _y, ((descriptor = descriptor = _classExtractFieldDescriptor(receiver = _s, privateMap = _y, "get")).get ? descriptor.get.call(receiver) : descriptor.value) + 1);
})).s], _y, ((descriptor = _classExtractFieldDescriptor(receiver = _s, privateMap = _y, "get")).get ? descriptor.get.call(receiver) : descriptor.value) + 1);
}
}
], protoProps && _defineProperties(Constructor.prototype, protoProps), staticProps && _defineProperties(Constructor, staticProps), Test;

View File

@ -7,7 +7,7 @@ const C = function() {
return class {
m() {
var receiver, privateMap, descriptor, receiver, descriptor, receiver, privateMap, value, descriptor;
receiver = this, privateMap = _x, receiver = this, value = ((descriptor = descriptor = _classExtractFieldDescriptor(receiver, privateMap = _x, "get")).get ? descriptor.get.call(receiver) : descriptor.value) + 2, descriptor = _classExtractFieldDescriptor(receiver, privateMap, "set"), (function(receiver, descriptor, value) {
receiver = this, privateMap = _x, receiver = this, value = ((descriptor = _classExtractFieldDescriptor(receiver, privateMap = _x, "get")).get ? descriptor.get.call(receiver) : descriptor.value) + 2, descriptor = _classExtractFieldDescriptor(receiver, privateMap, "set"), (function(receiver, descriptor, value) {
if (descriptor.set) descriptor.set.call(receiver, value);
else {
if (!descriptor.writable) throw new TypeError("attempted to set read only private field");

View File

@ -28,7 +28,7 @@ var C = function() {
key: "m",
value: function() {
var receiver, privateMap, descriptor, receiver, descriptor, receiver, privateMap, value, descriptor;
receiver = this, privateMap = _x, receiver = this, value = ((descriptor = descriptor = _classExtractFieldDescriptor(receiver, privateMap = _x, "get")).get ? descriptor.get.call(receiver) : descriptor.value) + 2, descriptor = _classExtractFieldDescriptor(receiver, privateMap, "set"), (function(receiver, descriptor, value) {
receiver = this, privateMap = _x, receiver = this, value = ((descriptor = _classExtractFieldDescriptor(receiver, privateMap = _x, "get")).get ? descriptor.get.call(receiver) : descriptor.value) + 2, descriptor = _classExtractFieldDescriptor(receiver, privateMap, "set"), (function(receiver, descriptor, value) {
if (descriptor.set) descriptor.set.call(receiver, value);
else {
if (!descriptor.writable) throw new TypeError("attempted to set read only private field");

View File

@ -29,7 +29,7 @@ var _p1 = new WeakMap(), Foo = function() {
key: "m1",
value: function(v) {
var receiver, privateMap, descriptor, receiver, descriptor;
(receiver = this, (descriptor = descriptor = (function(receiver, privateMap, action) {
(receiver = this, (descriptor = (function(receiver, privateMap, action) {
if (!privateMap.has(receiver)) throw new TypeError("attempted to get private field on non-instance");
return privateMap.get(receiver);
})(receiver, privateMap = _p1, "get")).get ? descriptor.get.call(receiver) : descriptor.value).call(this, v);

View File

@ -9,7 +9,7 @@ var _x = new WeakMap();
export class Foo {
copy(other) {
var receiver, privateMap, descriptor, receiver, descriptor;
(descriptor = descriptor = (function(receiver, privateMap, action) {
(descriptor = (function(receiver, privateMap, action) {
if (!privateMap.has(receiver)) throw new TypeError("attempted to get private field on non-instance");
return privateMap.get(receiver);
})(receiver = other, privateMap = _x, "get")).get ? descriptor.get.call(receiver) : descriptor.value;

View File

@ -29,7 +29,7 @@ export var Foo = function() {
key: "copy",
value: function(other) {
var receiver, privateMap, descriptor, receiver, descriptor;
(descriptor = descriptor = (function(receiver, privateMap, action) {
(descriptor = (function(receiver, privateMap, action) {
if (!privateMap.has(receiver)) throw new TypeError("attempted to get private field on non-instance");
return privateMap.get(receiver);
})(receiver = other, privateMap = _x, "get")).get ? descriptor.get.call(receiver) : descriptor.value;

View File

@ -6,7 +6,7 @@ class B {
if (receiver !== classConstructor) throw new TypeError("Private static access of wrong provenance");
})(receiver, classConstructor), (function(descriptor, action) {
if (void 0 === descriptor) throw new TypeError("attempted to get private static field before its declaration");
})(descriptor, "get"), (descriptor = descriptor).get ? descriptor.get.call(receiver) : descriptor.value;
})(descriptor, "get"), descriptor.get ? descriptor.get.call(receiver) : descriptor.value;
}
}
var _foo = {

View File

@ -34,7 +34,7 @@ var _foo = new WeakMap(), A = function() {
if (receiver !== classConstructor) throw new TypeError("Private static access of wrong provenance");
})(receiver, classConstructor), (function(descriptor, action) {
if (void 0 === descriptor) throw new TypeError("attempted to get private static field before its declaration");
})(descriptor, "get"), (descriptor = descriptor).get ? descriptor.get.call(receiver) : descriptor.value;
})(descriptor, "get"), descriptor.get ? descriptor.get.call(receiver) : descriptor.value;
}
}
], _defineProperties(Constructor.prototype, protoProps), staticProps && _defineProperties(Constructor, staticProps), B;

View File

@ -85,7 +85,7 @@ var _f = new WeakMap(), _g = new WeakMap(), _h = new WeakMap(), _i = new WeakMap
value: void 0
});
var receiver, privateMap, descriptor, receiver, descriptor, x = this.a;
this.a = this.b, receiver = this, this.b = (descriptor = descriptor = _classExtractFieldDescriptor(receiver, privateMap = _d1, "get")).get ? descriptor.get.call(receiver) : descriptor.value, this.b = x, _classPrivateFieldSet(this, _d1, x), this.c;
this.a = this.b, receiver = this, this.b = (descriptor = _classExtractFieldDescriptor(receiver, privateMap = _d1, "get")).get ? descriptor.get.call(receiver) : descriptor.value, this.b = x, _classPrivateFieldSet(this, _d1, x), this.c;
}, _b3 = new WeakMap(), C11 = function() {
"use strict";
_classCallCheck(this, C11), _classPrivateFieldInit(this, _b3, {

View File

@ -1,7 +1,4 @@
use std::{
collections::HashMap,
mem::{replace, swap},
};
use std::{collections::HashMap, mem::swap};
use swc_atoms::js_word;
use swc_common::{collections::AHashMap, pass::Either, util::take::Take, Spanned, DUMMY_SP};
@ -9,7 +6,7 @@ use swc_ecma_ast::*;
use swc_ecma_utils::{contains_arguments, ident::IdentLike, undefined, ExprFactory, Id};
use swc_ecma_visit::VisitMutWith;
use super::Optimizer;
use super::{util::MultiReplacer, Optimizer};
use crate::{
compress::optimize::Ctx,
mode::Mode,
@ -256,15 +253,16 @@ where
#[cfg_attr(feature = "debug", tracing::instrument(skip(self, n, vars)))]
pub(super) fn inline_vars_in_node<N>(&mut self, n: &mut N, vars: AHashMap<Id, Box<Expr>>)
where
N: VisitMutWith<Self>,
N: VisitMutWith<MultiReplacer>,
{
if cfg!(feature = "debug") {
tracing::trace!("inline: inline_vars_in_node");
}
let orig_vars = replace(&mut self.vars_for_inlining, vars);
n.visit_mut_with(self);
self.vars_for_inlining = orig_vars;
n.visit_mut_with(&mut MultiReplacer {
vars,
changed: false,
});
}
/// Fully inlines iife.

View File

@ -1582,7 +1582,7 @@
var key, i, target = _objectWithoutPropertiesLoose(source, excluded);
if (Object.getOwnPropertySymbols) {
var sourceSymbolKeys = Object.getOwnPropertySymbols(source);
for(i = 0; i < sourceSymbolKeys.length; i++)key = sourceSymbolKeys[i], !(excluded.indexOf(key) >= 0) && Object.prototype.propertyIsEnumerable.call(source, key) && (target[key] = source[key]);
for(i = 0; i < sourceSymbolKeys.length; i++)key = sourceSymbolKeys[i], excluded.indexOf(key) >= 0 || Object.prototype.propertyIsEnumerable.call(source, key) && (target[key] = source[key]);
}
return target;
}
@ -1949,7 +1949,7 @@
}
}
if (request.open(config.method.toUpperCase(), buildURL(fullPath, config.params, config.paramsSerializer), !0), request.timeout = config.timeout, "onloadend" in request ? request.onloadend = onloadend : request.onreadystatechange = function() {
!!request && 4 === request.readyState && (0 !== request.status || request.responseURL && 0 === request.responseURL.indexOf("file:")) && setTimeout(onloadend);
!request || 4 !== request.readyState || (0 !== request.status || request.responseURL && 0 === request.responseURL.indexOf("file:")) && setTimeout(onloadend);
}, request.onabort = function() {
request && (reject(createError("Request aborted", config, "ECONNABORTED", request)), request = null);
}, request.onerror = function() {
@ -7178,7 +7178,7 @@
},
8789: function(__unused_webpack_module, __unused_webpack_exports, __webpack_require__) {
"use strict";
var descriptor, $ = __webpack_require__(35437), getOwnPropertyDescriptor = __webpack_require__(24722).f, toLength = __webpack_require__(31998), toString = __webpack_require__(72729), notARegExp = __webpack_require__(3974), requireObjectCoercible = __webpack_require__(79602), correctIsRegExpLogic = __webpack_require__(26234), IS_PURE = __webpack_require__(80627), $endsWith = "".endsWith, min = Math.min, CORRECT_IS_REGEXP_LOGIC = correctIsRegExpLogic("endsWith"), MDN_POLYFILL_BUG = !IS_PURE && !CORRECT_IS_REGEXP_LOGIC && !!((descriptor = getOwnPropertyDescriptor(String.prototype, "endsWith")) && !descriptor.writable);
var descriptor, $ = __webpack_require__(35437), getOwnPropertyDescriptor = __webpack_require__(24722).f, toLength = __webpack_require__(31998), toString = __webpack_require__(72729), notARegExp = __webpack_require__(3974), requireObjectCoercible = __webpack_require__(79602), correctIsRegExpLogic = __webpack_require__(26234), IS_PURE = __webpack_require__(80627), $endsWith = "".endsWith, min = Math.min, CORRECT_IS_REGEXP_LOGIC = correctIsRegExpLogic("endsWith"), MDN_POLYFILL_BUG = !IS_PURE && !CORRECT_IS_REGEXP_LOGIC && !!(descriptor = getOwnPropertyDescriptor(String.prototype, "endsWith")) && !descriptor.writable;
$({
target: "String",
proto: !0,
@ -7591,7 +7591,7 @@
},
24467: function(__unused_webpack_module, __unused_webpack_exports, __webpack_require__) {
"use strict";
var descriptor, $ = __webpack_require__(35437), getOwnPropertyDescriptor = __webpack_require__(24722).f, toLength = __webpack_require__(31998), toString = __webpack_require__(72729), notARegExp = __webpack_require__(3974), requireObjectCoercible = __webpack_require__(79602), correctIsRegExpLogic = __webpack_require__(26234), IS_PURE = __webpack_require__(80627), $startsWith = "".startsWith, min = Math.min, CORRECT_IS_REGEXP_LOGIC = correctIsRegExpLogic("startsWith"), MDN_POLYFILL_BUG = !IS_PURE && !CORRECT_IS_REGEXP_LOGIC && !!((descriptor = getOwnPropertyDescriptor(String.prototype, "startsWith")) && !descriptor.writable);
var descriptor, $ = __webpack_require__(35437), getOwnPropertyDescriptor = __webpack_require__(24722).f, toLength = __webpack_require__(31998), toString = __webpack_require__(72729), notARegExp = __webpack_require__(3974), requireObjectCoercible = __webpack_require__(79602), correctIsRegExpLogic = __webpack_require__(26234), IS_PURE = __webpack_require__(80627), $startsWith = "".startsWith, min = Math.min, CORRECT_IS_REGEXP_LOGIC = correctIsRegExpLogic("startsWith"), MDN_POLYFILL_BUG = !IS_PURE && !CORRECT_IS_REGEXP_LOGIC && !!(descriptor = getOwnPropertyDescriptor(String.prototype, "startsWith")) && !descriptor.writable;
$({
target: "String",
proto: !0,
@ -9612,7 +9612,7 @@
(0, esm_extends.Z)(history, nextState), history.length = globalHistory.length, transitionManager.notifyListeners(history.location, history.action);
}
function handlePopState(event) {
void 0 === event.state && -1 === navigator.userAgent.indexOf("CriOS") || handlePop(getDOMLocation(event.state));
(void 0 !== event.state || -1 !== navigator.userAgent.indexOf("CriOS")) && handlePop(getDOMLocation(event.state));
}
function handleHashChange() {
handlePop(getDOMLocation(getHistoryState()));
@ -10828,7 +10828,7 @@
}
function qa(a2, b2, c1, d2) {
var a1, e = D.hasOwnProperty(b2) ? D[b2] : null;
(null !== e ? 0 !== e.type : d2 || (!(2 < b2.length) || "o" !== b2[0] && "O" !== b2[0] || "n" !== b2[1] && "N" !== b2[1]) && 1) && ((function(a3, b3, c2, d3) {
(null !== e ? 0 === e.type : !d2 && 2 < b2.length && ("o" === b2[0] || "O" === b2[0]) && ("n" === b2[1] || "N" === b2[1])) || ((function(a3, b3, c2, d3) {
if (null == b3 || (function(a, b, c, d) {
if (null !== c && 0 === c.type) return !1;
switch(typeof b){
@ -16186,7 +16186,7 @@
return this.props.children;
}, Provider;
}(_react_17_0_2_react.Component);
(_Provider$childContex = {})[contextProp] = _prop_types_15_7_2_prop_types_default().object.isRequired, Provider1.childContextTypes = _Provider$childContex;
Provider1.childContextTypes = ((_Provider$childContex = {})[contextProp] = _prop_types_15_7_2_prop_types_default().object.isRequired, _Provider$childContex);
var Consumer1 = function(_Component2) {
function Consumer() {
var _this2;

View File

@ -1768,7 +1768,7 @@
var key, i, target = _objectWithoutPropertiesLoose(source, excluded);
if (Object.getOwnPropertySymbols) {
var sourceSymbolKeys = Object.getOwnPropertySymbols(source);
for(i = 0; i < sourceSymbolKeys.length; i++)key = sourceSymbolKeys[i], !(excluded.indexOf(key) >= 0) && Object.prototype.propertyIsEnumerable.call(source, key) && (target[key] = source[key]);
for(i = 0; i < sourceSymbolKeys.length; i++)key = sourceSymbolKeys[i], excluded.indexOf(key) >= 0 || Object.prototype.propertyIsEnumerable.call(source, key) && (target[key] = source[key]);
}
return target;
}(_param, [

View File

@ -751,7 +751,7 @@
} else config._isValid = !1;
}
function configFromRFC2822(config) {
var year, weekdayStr, parsedInput, config1, yearStr, monthStr, dayStr, hourStr, minuteStr, secondStr, result, parsedArray, match = rfc2822.exec(config._i.replace(/\([^)]*\)|[\n\t]/g, " ").replace(/(\s\s+)/g, " ").replace(/^\s\s*/, "").replace(/\s\s*$/, ""));
var weekdayStr, parsedInput, config1, year, yearStr, monthStr, dayStr, hourStr, minuteStr, secondStr, result, parsedArray, match = rfc2822.exec(config._i.replace(/\([^)]*\)|[\n\t]/g, " ").replace(/(\s\s+)/g, " ").replace(/^\s\s*/, "").replace(/\s\s*$/, ""));
if (match) {
if (yearStr = match[4], monthStr = match[3], dayStr = match[2], hourStr = match[5], minuteStr = match[6], secondStr = match[7], result = [
(year = parseInt(yearStr, 10)) <= 49 ? 2000 + year : year <= 999 ? 1900 + year : year,

View File

@ -100,7 +100,7 @@
var key, i, target = _objectWithoutPropertiesLoose(source, excluded);
if (Object.getOwnPropertySymbols) {
var sourceSymbolKeys = Object.getOwnPropertySymbols(source);
for(i = 0; i < sourceSymbolKeys.length; i++)key = sourceSymbolKeys[i], !(excluded.indexOf(key) >= 0) && Object.prototype.propertyIsEnumerable.call(source, key) && (target[key] = source[key]);
for(i = 0; i < sourceSymbolKeys.length; i++)key = sourceSymbolKeys[i], excluded.indexOf(key) >= 0 || Object.prototype.propertyIsEnumerable.call(source, key) && (target[key] = source[key]);
}
return target;
}(_param, [

View File

@ -1315,50 +1315,11 @@
function resolveSelection(view, doc, parsedSel) {
return Math.max(parsedSel.anchor, parsedSel.head) > doc.content.size ? null : selectionBetween(view, doc.resolve(parsedSel.anchor), doc.resolve(parsedSel.head));
}
function isMarkChange(cur, prev) {
for(var type, mark, update, curMarks = cur.firstChild.marks, prevMarks = prev.firstChild.marks, added = curMarks, removed = prevMarks, i = 0; i < prevMarks.length; i++)added = prevMarks[i].removeFromSet(added);
for(var i$1 = 0; i$1 < curMarks.length; i$1++)removed = curMarks[i$1].removeFromSet(removed);
if (1 == added.length && 0 == removed.length) mark = added[0], type = "add", update = function(node) {
return node.mark(mark.addToSet(node.marks));
};
else {
if (0 != added.length || 1 != removed.length) return null;
mark = removed[0], type = "remove", update = function(node) {
return node.mark(mark.removeFromSet(node.marks));
};
}
for(var updated = [], i$2 = 0; i$2 < prev.childCount; i$2++)updated.push(update(prev.child(i$2)));
if (prosemirror_model__WEBPACK_IMPORTED_MODULE_1__.Fragment.from(updated).eq(cur)) return {
mark: mark,
type: type
};
}
function looksLikeJoin(old, start, end, $newStart, $newEnd) {
if (!$newStart.parent.isTextblock || end - start <= $newEnd.pos - $newStart.pos || skipClosingAndOpening($newStart, !0, !1) < $newEnd.pos) return !1;
var $start = old.resolve(start);
if ($start.parentOffset < $start.parent.content.size || !$start.parent.isTextblock) return !1;
var $next = old.resolve(skipClosingAndOpening($start, !0, !0));
return !(!$next.parent.isTextblock || $next.pos > end || skipClosingAndOpening($next, !0, !1) < end) && $newStart.parent.content.cut($newStart.parentOffset).eq($next.parent.content);
}
function skipClosingAndOpening($pos, fromEnd, mayOpen) {
for(var depth = $pos.depth, end = fromEnd ? $pos.end() : $pos.pos; depth > 0 && (fromEnd || $pos.indexAfter(depth) == $pos.node(depth).childCount);)depth--, end++, fromEnd = !1;
if (mayOpen) for(var next = $pos.node(depth).maybeChild($pos.indexAfter(depth)); next && !next.isLeaf;)next = next.firstChild, end++;
return end;
}
function findDiff(a, b, pos, preferredPos, preferredSide) {
var start = a.findDiffStart(b, pos);
if (null == start) return null;
var ref = a.findDiffEnd(b, pos + a.size, pos + b.size), endA = ref.a, endB = ref.b;
if ("end" == preferredSide) {
var adjust = Math.max(0, start - Math.min(endA, endB));
preferredPos -= endA + adjust - start;
}
return endA < start && a.size < b.size ? (start -= preferredPos <= start && preferredPos >= endA ? start - preferredPos : 0, endB = start + (endB - endA), endA = start) : endB < start && (start -= preferredPos <= start && preferredPos >= endB ? start - preferredPos : 0, endA = start + (endA - endB), endB = start), {
start: start,
endA: endA,
endB: endB
};
}
function serializeForClipboard(view, slice) {
for(var context = [], content = slice.content, openStart = slice.openStart, openEnd = slice.openEnd; openStart > 1 && openEnd > 1 && 1 == content.childCount && 1 == content.firstChild.childCount;){
openStart--, openEnd--;
@ -2330,7 +2291,7 @@
x: 0,
y: 0,
type: ""
}, view7.lastSelectionOrigin = null, view7.lastSelectionTime = 0, view7.lastIOSEnter = 0, view7.lastIOSEnterFallbackTimeout = null, view7.lastAndroidDelete = 0, view7.composing = !1, view7.composingTimeout = null, view7.compositionNodes = [], view7.compositionEndedAt = -200000000, view7.domObserver = new DOMObserver(view7, function(from1, to1, typeOver1, added) {
}, view7.lastSelectionOrigin = null, view7.lastSelectionTime = 0, view7.lastIOSEnter = 0, view7.lastIOSEnterFallbackTimeout = null, view7.lastAndroidDelete = 0, view7.composing = !1, view7.composingTimeout = null, view7.compositionNodes = [], view7.compositionEndedAt = -200000000, view7.domObserver = new DOMObserver(view7, function(from1, to1, typeOver1, added1) {
return (function(view8, from2, to2, typeOver, addedNodes) {
if (from2 < 0) {
var preferredPos, preferredSide, nextSel, tr, storedMarks, markChange, $from1, origin = view8.lastSelectionTime > Date.now() - 50 ? view8.lastSelectionOrigin : null, newSel = selectionFromDOM(view8, origin);
@ -2395,7 +2356,20 @@
}
var doc1 = view8.state.doc, compare = doc1.slice(parse.from, parse.to);
8 === view8.lastKeyCode && Date.now() - 100 < view8.lastKeyCodeTime ? (preferredPos = view8.state.selection.to, preferredSide = "end") : (preferredPos = view8.state.selection.from, preferredSide = "start"), view8.lastKeyCode = null;
var change = findDiff(compare.content, parse.doc.content, parse.from, preferredPos, preferredSide);
var change = function(a, b, pos, preferredPos, preferredSide) {
var start = a.findDiffStart(b, pos);
if (null == start) return null;
var ref = a.findDiffEnd(b, pos + a.size, pos + b.size), endA = ref.a, endB = ref.b;
if ("end" == preferredSide) {
var adjust = Math.max(0, start - Math.min(endA, endB));
preferredPos -= endA + adjust - start;
}
return endA < start && a.size < b.size ? (start -= preferredPos <= start && preferredPos >= endA ? start - preferredPos : 0, endB = start + (endB - endA), endA = start) : endB < start && (start -= preferredPos <= start && preferredPos >= endB ? start - preferredPos : 0, endA = start + (endA - endB), endB = start), {
start: start,
endA: endA,
endB: endB
};
}(compare.content, parse.doc.content, parse.from, preferredPos, preferredSide);
if (!change) if (typeOver && sel2 instanceof prosemirror_state__WEBPACK_IMPORTED_MODULE_0__.TextSelection && !sel2.empty && sel2.$head.sameParent(sel2.$anchor) && !view8.composing && !(parse.sel && parse.sel.anchor != parse.sel.head)) change = {
start: sel2.from,
endA: sel2.to,
@ -2425,7 +2399,13 @@
view8.lastIOSEnter = 0;
return;
}
if (view8.state.selection.anchor > change.start && looksLikeJoin(doc1, change.start, change.endA, $from1, $to) && view8.someProp("handleKeyDown", function(f) {
if (view8.state.selection.anchor > change.start && (function(old, start, end, $newStart, $newEnd) {
if (!$newStart.parent.isTextblock || end - start <= $newEnd.pos - $newStart.pos || skipClosingAndOpening($newStart, !0, !1) < $newEnd.pos) return !1;
var $start = old.resolve(start);
if ($start.parentOffset < $start.parent.content.size || !$start.parent.isTextblock) return !1;
var $next = old.resolve(skipClosingAndOpening($start, !0, !0));
return !(!$next.parent.isTextblock || $next.pos > end || skipClosingAndOpening($next, !0, !1) < end) && $newStart.parent.content.cut($newStart.parentOffset).eq($next.parent.content);
})(doc1, change.start, change.endA, $from1, $to) && view8.someProp("handleKeyDown", function(f) {
return f(view8, keyEvent(8, "Backspace"));
})) {
result1.android && result1.chrome && view8.domObserver.suppressSelectionUpdates();
@ -2441,7 +2421,24 @@
if ($from1.pos == $to.pos) result1.ie && result1.ie_version <= 11 && 0 == $from1.parentOffset && (view8.domObserver.suppressSelectionUpdates(), setTimeout(function() {
return selectionToDOM(view8);
}, 20)), tr = view8.state.tr.delete(chFrom, chTo), storedMarks = doc1.resolve(change.start).marksAcross(doc1.resolve(change.endA));
else if (change.endA == change.endB && ($from1 = doc1.resolve(change.start)) && (markChange = isMarkChange($from1.parent.content.cut($from1.parentOffset, $to.parentOffset), $from1.parent.content.cut($from1.parentOffset, change.endA - $from1.start())))) tr = view8.state.tr, "add" == markChange.type ? tr.addMark(chFrom, chTo, markChange.mark) : tr.removeMark(chFrom, chTo, markChange.mark);
else if (change.endA == change.endB && ($from1 = doc1.resolve(change.start)) && (markChange = (function(cur, prev) {
for(var type, mark, update, curMarks = cur.firstChild.marks, prevMarks = prev.firstChild.marks, added = curMarks, removed = prevMarks, i = 0; i < prevMarks.length; i++)added = prevMarks[i].removeFromSet(added);
for(var i$1 = 0; i$1 < curMarks.length; i$1++)removed = curMarks[i$1].removeFromSet(removed);
if (1 == added.length && 0 == removed.length) mark = added[0], type = "add", update = function(node) {
return node.mark(mark.addToSet(node.marks));
};
else {
if (0 != added.length || 1 != removed.length) return null;
mark = removed[0], type = "remove", update = function(node) {
return node.mark(mark.removeFromSet(node.marks));
};
}
for(var updated = [], i$2 = 0; i$2 < prev.childCount; i$2++)updated.push(update(prev.child(i$2)));
if (prosemirror_model__WEBPACK_IMPORTED_MODULE_1__.Fragment.from(updated).eq(cur)) return {
mark: mark,
type: type
};
})($from1.parent.content.cut($from1.parentOffset, $to.parentOffset), $from1.parent.content.cut($from1.parentOffset, change.endA - $from1.start())))) tr = view8.state.tr, "add" == markChange.type ? tr.addMark(chFrom, chTo, markChange.mark) : tr.removeMark(chFrom, chTo, markChange.mark);
else if ($from1.parent.child($from1.index()).isText && $from1.index() == $to.index() - ($to.textOffset ? 0 : 1)) {
var text$1 = $from1.parent.textBetween($from1.parentOffset, $to.parentOffset);
if (view8.someProp("handleTextInput", function(f) {
@ -2455,7 +2452,7 @@
sel$2 && !(result1.chrome && result1.android && view8.composing && sel$2.empty && (change.start != change.endB || view8.lastAndroidDelete < Date.now() - 100) && (sel$2.head == chFrom || sel$2.head == tr.mapping.map(chTo) - 1) || result1.ie && sel$2.empty && sel$2.head == chFrom) && tr.setSelection(sel$2);
}
storedMarks && tr.ensureMarks(storedMarks), view8.dispatch(tr.scrollIntoView());
})(view7, from1, to1, typeOver1, added);
})(view7, from1, to1, typeOver1, added1);
}), view7.domObserver.start(), view7.domChangeCount = 0, view7.eventHandlers = Object.create(null), handlers1)!function(event6) {
var handler = handlers1[event6];
view7.dom.addEventListener(event6, view7.eventHandlers[event6] = function(event) {

View File

@ -6164,7 +6164,7 @@
enabled ? (this.trigger("debugon"), this.previousLogLevel_ = this.log.level, this.log.level("debug"), this.debugEnabled_ = !0) : (this.trigger("debugoff"), this.log.level(this.previousLogLevel_), this.previousLogLevel_ = void 0, this.debugEnabled_ = !1);
}, _proto.playbackRates = function(newRates) {
if (void 0 === newRates) return this.cache_.playbackRates;
!!Array.isArray(newRates) && newRates.every(function(rate) {
!Array.isArray(newRates) || newRates.every(function(rate) {
return "number" == typeof rate;
}) && (this.cache_.playbackRates = newRates, this.trigger("playbackrateschange"));
}, Player;

View File

@ -2558,8 +2558,8 @@
last && last.ranges ? (done[done.length - 1] = sel, setSelectionNoUndo(doc, sel, options)) : setSelection(doc, sel, options);
}
function setSelection(doc, sel, options) {
var doc4, sel1, opId, options1, hist, origin, doc5, origin1, prev, sel2, ch;
setSelectionNoUndo(doc, sel, options), doc4 = doc, sel1 = doc.sel, opId = doc.cm ? doc.cm.curOp.id : NaN, options1 = options, hist = doc4.history, origin = options1 && options1.origin, opId == hist.lastSelOp || origin && hist.lastSelOrigin == origin && (hist.lastModTime == hist.lastSelTime && hist.lastOrigin == origin || (doc5 = doc4, origin1 = origin, prev = lst(hist.done), sel2 = sel1, "*" == (ch = origin1.charAt(0)) || "+" == ch && prev.ranges.length == sel2.ranges.length && prev.somethingSelected() == sel2.somethingSelected() && new Date - doc5.history.lastSelTime <= (doc5.cm ? doc5.cm.options.historyEventDelay : 500))) ? hist.done[hist.done.length - 1] = sel1 : pushSelectionToHistory(sel1, hist.done), hist.lastSelTime = +new Date, hist.lastSelOrigin = origin, hist.lastSelOp = opId, options1 && !1 !== options1.clearRedo && clearSelectionEvents(hist.undone);
var doc4, sel1, opId, options1, doc5, origin, prev, sel2, ch, hist, origin1;
setSelectionNoUndo(doc, sel, options), doc4 = doc, sel1 = doc.sel, opId = doc.cm ? doc.cm.curOp.id : NaN, options1 = options, hist = doc4.history, origin1 = options1 && options1.origin, opId == hist.lastSelOp || origin1 && hist.lastSelOrigin == origin1 && (hist.lastModTime == hist.lastSelTime && hist.lastOrigin == origin1 || (doc5 = doc4, origin = origin1, prev = lst(hist.done), sel2 = sel1, "*" == (ch = origin.charAt(0)) || "+" == ch && prev.ranges.length == sel2.ranges.length && prev.somethingSelected() == sel2.somethingSelected() && new Date - doc5.history.lastSelTime <= (doc5.cm ? doc5.cm.options.historyEventDelay : 500))) ? hist.done[hist.done.length - 1] = sel1 : pushSelectionToHistory(sel1, hist.done), hist.lastSelTime = +new Date, hist.lastSelOrigin = origin1, hist.lastSelOp = opId, options1 && !1 !== options1.clearRedo && clearSelectionEvents(hist.undone);
}
function setSelectionNoUndo(doc, sel, options) {
if (hasHandler(doc, "beforeSelectionChange") || doc.cm && hasHandler(doc.cm, "beforeSelectionChange")) {

View File

@ -37,7 +37,7 @@ jQuery.support = (function() {
})div.setAttribute(eventName = "on" + i, "t"), support[i + "Bubbles"] = eventName in window || !1 === div.attributes[eventName].expando;
return div.style.backgroundClip = "content-box", div.cloneNode(!0).style.backgroundClip = "", support.clearCloneStyle = "content-box" === div.style.backgroundClip, jQuery(function() {
var container, marginDiv, tds, divReset = "padding:0;margin:0;border:0;display:block;box-sizing:content-box;-moz-box-sizing:content-box;-webkit-box-sizing:content-box;", body = document.getElementsByTagName("body")[0];
body && ((container = document.createElement("div")).style.cssText = "border:0;width:0;height:0;position:absolute;top:0;left:-9999px;margin-top:1px", body.appendChild(container).appendChild(div), div.innerHTML = "<table><tr><td></td><td>t</td></tr></table>", (tds = div.getElementsByTagName("td"))[0].style.cssText = "padding:0;margin:0;border:0;display:none", isSupported = 0 === tds[0].offsetHeight, tds[0].style.display = "", tds[1].style.display = "none", support.reliableHiddenOffsets = isSupported && 0 === tds[0].offsetHeight, div.innerHTML = "", div.style.cssText = "box-sizing:border-box;-moz-box-sizing:border-box;-webkit-box-sizing:border-box;padding:1px;border:1px;display:block;width:4px;margin-top:1%;position:absolute;top:1%;", support.boxSizing = 4 === div.offsetWidth, support.doesNotIncludeMarginInBodyOffset = 1 !== body.offsetTop, window.getComputedStyle && (support.pixelPosition = "1%" !== (window.getComputedStyle(div, null) || {}).top, support.boxSizingReliable = "4px" === (window.getComputedStyle(div, null) || {
!body || ((container = document.createElement("div")).style.cssText = "border:0;width:0;height:0;position:absolute;top:0;left:-9999px;margin-top:1px", body.appendChild(container).appendChild(div), div.innerHTML = "<table><tr><td></td><td>t</td></tr></table>", (tds = div.getElementsByTagName("td"))[0].style.cssText = "padding:0;margin:0;border:0;display:none", isSupported = 0 === tds[0].offsetHeight, tds[0].style.display = "", tds[1].style.display = "none", support.reliableHiddenOffsets = isSupported && 0 === tds[0].offsetHeight, div.innerHTML = "", div.style.cssText = "box-sizing:border-box;-moz-box-sizing:border-box;-webkit-box-sizing:border-box;padding:1px;border:1px;display:block;width:4px;margin-top:1%;position:absolute;top:1%;", support.boxSizing = 4 === div.offsetWidth, support.doesNotIncludeMarginInBodyOffset = 1 !== body.offsetTop, window.getComputedStyle && (support.pixelPosition = "1%" !== (window.getComputedStyle(div, null) || {}).top, support.boxSizingReliable = "4px" === (window.getComputedStyle(div, null) || {
width: "4px"
}).width, (marginDiv = div.appendChild(document.createElement("div"))).style.cssText = div.style.cssText = divReset, marginDiv.style.marginRight = marginDiv.style.width = "0", div.style.width = "1px", support.reliableMarginRight = !parseFloat((window.getComputedStyle(marginDiv, null) || {}).marginRight)), typeof div.style.zoom !== core_strundefined && (div.innerHTML = "", div.style.cssText = divReset + "width:1px;padding:1px;display:inline;zoom:1", support.inlineBlockNeedsLayout = 3 === div.offsetWidth, div.style.display = "block", div.innerHTML = "<div></div>", div.firstChild.style.width = "5px", support.shrinkWrapBlocks = 3 !== div.offsetWidth, support.inlineBlockNeedsLayout && (body.style.zoom = 1)), body.removeChild(container), container = div = tds = marginDiv = null);
}), all = select = fragment = opt = a = input = null, support;

File diff suppressed because one or more lines are too long

View File

@ -2481,13 +2481,13 @@
var promise, pathVal = locals && locals.hasOwnProperty(key0) ? locals : scope;
return null === pathVal || pathVal === undefined || ((pathVal = pathVal[key0]) && pathVal.then && (promiseWarning(fullExp), "$$v" in pathVal || ((promise = pathVal).$$v = undefined, promise.then(function(val) {
promise.$$v = val;
})), pathVal = pathVal.$$v), !key1 || null === pathVal || pathVal === undefined || ((pathVal = pathVal[key1]) && pathVal.then && (promiseWarning(fullExp), "$$v" in pathVal || ((promise = pathVal).$$v = undefined, promise.then(function(val) {
})), pathVal = pathVal.$$v), key1 && null !== pathVal && pathVal !== undefined && ((pathVal = pathVal[key1]) && pathVal.then && (promiseWarning(fullExp), "$$v" in pathVal || ((promise = pathVal).$$v = undefined, promise.then(function(val) {
promise.$$v = val;
})), pathVal = pathVal.$$v), !key2 || null === pathVal || pathVal === undefined || ((pathVal = pathVal[key2]) && pathVal.then && (promiseWarning(fullExp), "$$v" in pathVal || ((promise = pathVal).$$v = undefined, promise.then(function(val) {
})), pathVal = pathVal.$$v), key2 && null !== pathVal && pathVal !== undefined && ((pathVal = pathVal[key2]) && pathVal.then && (promiseWarning(fullExp), "$$v" in pathVal || ((promise = pathVal).$$v = undefined, promise.then(function(val) {
promise.$$v = val;
})), pathVal = pathVal.$$v), !key3 || null === pathVal || pathVal === undefined || ((pathVal = pathVal[key3]) && pathVal.then && (promiseWarning(fullExp), "$$v" in pathVal || ((promise = pathVal).$$v = undefined, promise.then(function(val) {
})), pathVal = pathVal.$$v), key3 && null !== pathVal && pathVal !== undefined && ((pathVal = pathVal[key3]) && pathVal.then && (promiseWarning(fullExp), "$$v" in pathVal || ((promise = pathVal).$$v = undefined, promise.then(function(val) {
promise.$$v = val;
})), pathVal = pathVal.$$v), !key4 || null === pathVal || pathVal === undefined || (pathVal = pathVal[key4]) && pathVal.then && (promiseWarning(fullExp), "$$v" in pathVal || ((promise = pathVal).$$v = undefined, promise.then(function(val) {
})), pathVal = pathVal.$$v), key4 && null !== pathVal && pathVal !== undefined && (pathVal = pathVal[key4]) && pathVal.then && (promiseWarning(fullExp), "$$v" in pathVal || ((promise = pathVal).$$v = undefined, promise.then(function(val) {
promise.$$v = val;
})), pathVal = pathVal.$$v))))), pathVal;
} : function(scope, locals) {

View File

@ -711,7 +711,7 @@
},
prop: function(elem, name, value) {
var ret, hooks, nType = elem.nodeType;
return elem && 3 !== nType && 8 !== nType && 2 !== nType ? (1 === nType && jQuery.isXMLDoc(elem) || (name = jQuery.propFix[name] || name, hooks = jQuery.propHooks[name]), value !== undefined) ? hooks && "set" in hooks && undefined !== (ret = hooks.set(elem, value, name)) ? ret : elem[name] = value : hooks && "get" in hooks && null !== (ret = hooks.get(elem, name)) ? ret : elem[name] : void 0;
if (elem && 3 !== nType && 8 !== nType && 2 !== nType) return (1 === nType && jQuery.isXMLDoc(elem) || (name = jQuery.propFix[name] || name, hooks = jQuery.propHooks[name]), value !== undefined) ? hooks && "set" in hooks && undefined !== (ret = hooks.set(elem, value, name)) ? ret : elem[name] = value : hooks && "get" in hooks && null !== (ret = hooks.get(elem, name)) ? ret : elem[name];
},
propHooks: {
tabIndex: {

View File

@ -5,7 +5,7 @@
return factory($, root, doc), $.mobile;
}) : factory(root.jQuery, root, doc);
}(this, document, function(jQuery, window3, document1, undefined9) {
var $27, nsNormalizeDict, oldFind, rbrace, jqmDataRE, $1, window1, compensateToolbars, $2, undefined1, uuid1, slice, _cleanData, $3, rcapitals, replaceFunction, $4, doc1, bool, docElem, refNode, fakeBody1, div1, $5, support1, $6, self1, $win1, dummyFnToInitNavigate, $7, undefined2, path2, $base, dialogHashKey, $8, undefined3, $9, path1, initialHref, $10, undefined4, props1, testElement, vendorPrefixes, $11, heldCall, curr, diff1, handler1, lastCall, $12, baseElement, base1, $13, undefined5, originalWidget, keepNativeFactoryDefault, orig1, $14, undefined6, pageTransitionQueue, isPageTransitioning, $15, window2, $16, $17, $18, $19, $20, $21, undefined7, rInitialLetter, iconposClass1, $22, $23, $24, meta, initialContent1, disabledZoom, enabledZoom, disabledInitially, $25, $26, undefined8, rDividerListItem, origDefaultFilterCallback;
var $28, nsNormalizeDict, oldFind, rbrace, jqmDataRE, $1, window1, compensateToolbars, $2, undefined1, uuid1, slice, _cleanData, $3, rcapitals, replaceFunction, $4, doc1, bool, docElem, refNode, fakeBody1, div1, $5, support1, $6, self1, $win1, dummyFnToInitNavigate, $7, undefined2, path2, $base, dialogHashKey, $8, undefined3, $9, path1, initialHref, $10, loc1, $11, undefined4, props1, testElement, vendorPrefixes, $12, heldCall, curr, diff1, handler1, lastCall, $13, baseElement, base1, $14, undefined5, originalWidget, keepNativeFactoryDefault, orig1, $15, undefined6, pageTransitionQueue, isPageTransitioning, $16, window2, $17, $18, $19, $20, $21, $22, undefined7, rInitialLetter, iconposClass1, $23, $24, $25, meta, initialContent1, disabledZoom, enabledZoom, disabledInitially, $26, $27, undefined8, rDividerListItem, origDefaultFilterCallback;
jQuery.mobile = {}, (function($, window, undefined) {
$.extend($.mobile, {
version: "1.4.2",
@ -36,11 +36,11 @@
allowCrossDomainPages: !1,
dialogHashKey: "&ui-state=dialog"
});
})(jQuery, this), nsNormalizeDict = {}, oldFind = ($27 = jQuery).find, rbrace = /(?:\{[\s\S]*\}|\[[\s\S]*\])$/, jqmDataRE = /:jqmData\(([^)]*)\)/g, $27.extend($27.mobile, {
})(jQuery, this), nsNormalizeDict = {}, oldFind = ($28 = jQuery).find, rbrace = /(?:\{[\s\S]*\}|\[[\s\S]*\])$/, jqmDataRE = /:jqmData\(([^)]*)\)/g, $28.extend($28.mobile, {
ns: "",
getAttribute: function(element, key) {
var data;
(element = element.jquery ? element[0] : element) && element.getAttribute && (data = element.getAttribute("data-" + $27.mobile.ns + key));
(element = element.jquery ? element[0] : element) && element.getAttribute && (data = element.getAttribute("data-" + $28.mobile.ns + key));
try {
data = "true" === data || "false" !== data && ("null" === data ? null : +data + "" === data ? +data : rbrace.test(data) ? JSON.parse(data) : data);
} catch (err) {}
@ -48,24 +48,24 @@
},
nsNormalizeDict: nsNormalizeDict,
nsNormalize: function(prop) {
return nsNormalizeDict[prop] || (nsNormalizeDict[prop] = $27.camelCase($27.mobile.ns + prop));
return nsNormalizeDict[prop] || (nsNormalizeDict[prop] = $28.camelCase($28.mobile.ns + prop));
},
closestPageData: function($target) {
return $target.closest(":jqmData(role='page'), :jqmData(role='dialog')").data("mobile-page");
}
}), $27.fn.jqmData = function(prop, value) {
}), $28.fn.jqmData = function(prop, value) {
var result;
return void 0 !== prop && (prop && (prop = $27.mobile.nsNormalize(prop)), result = arguments.length < 2 || void 0 === value ? this.data(prop) : this.data(prop, value)), result;
}, $27.jqmData = function(elem, prop, value) {
return void 0 !== prop && (prop && (prop = $28.mobile.nsNormalize(prop)), result = arguments.length < 2 || void 0 === value ? this.data(prop) : this.data(prop, value)), result;
}, $28.jqmData = function(elem, prop, value) {
var result;
return void 0 !== prop && (result = $27.data(elem, prop ? $27.mobile.nsNormalize(prop) : prop, value)), result;
}, $27.fn.jqmRemoveData = function(prop) {
return this.removeData($27.mobile.nsNormalize(prop));
}, $27.jqmRemoveData = function(elem, prop) {
return $27.removeData(elem, $27.mobile.nsNormalize(prop));
}, $27.find = function(selector, context, ret, extra) {
return selector.indexOf(":jqmData") > -1 && (selector = selector.replace(jqmDataRE, "[data-" + ($27.mobile.ns || "") + "$1]")), oldFind.call(this, selector, context, ret, extra);
}, $27.extend($27.find, oldFind), (function($, undefined) {
return void 0 !== prop && (result = $28.data(elem, prop ? $28.mobile.nsNormalize(prop) : prop, value)), result;
}, $28.fn.jqmRemoveData = function(prop) {
return this.removeData($28.mobile.nsNormalize(prop));
}, $28.jqmRemoveData = function(elem, prop) {
return $28.removeData(elem, $28.mobile.nsNormalize(prop));
}, $28.find = function(selector, context, ret, extra) {
return selector.indexOf(":jqmData") > -1 && (selector = selector.replace(jqmDataRE, "[data-" + ($28.mobile.ns || "") + "$1]")), oldFind.call(this, selector, context, ret, extra);
}, $28.extend($28.find, oldFind), (function($, undefined) {
var removeData, orig2, uuid = 0, runiqueId = /^ui-id-\d+$/;
function focusable(element, isTabIndexNotNaN) {
var map, mapName, img, nodeName = element.nodeName.toLowerCase();
@ -525,6 +525,7 @@
}
});
})(jQuery, this), (function($, window, undefined) {
"$:nomunge";
var fake_onhashchange, str_hashchange = "hashchange", doc = document1, special = $.event.special, doc_mode = doc.documentMode, supports_onhashchange = "on" + str_hashchange in window && (doc_mode === undefined || doc_mode > 7);
function get_fragment(url) {
return "#" + (url = url || location.href).replace(/^[^#]*#?(.*)$/, "$1");
@ -585,7 +586,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, w1, ua, platform, wkmatch, wkversion, ffmatch, ffversion, operammobilematch, omversion, rebase, fauxBase, base, fauxEle, href, supports, element, documentElement, getComputedStyle, ua1, fakeBody = $("<body>").prependTo("html"), fbCSS = fakeBody[0].style, vendors = [
var w1, ua, platform, wkmatch, wkversion, ffmatch, ffversion, operammobilematch, omversion, rebase, fauxBase, base, fauxEle, href, supports, element, documentElement, getComputedStyle, ua1, nokiaLTE7_3, fakeBody = $("<body>").prependTo("html"), fbCSS = fakeBody[0].style, vendors = [
"Webkit",
"Moz",
"O"
@ -914,15 +915,11 @@
});
}
}
}), (function($, undefined) {
$.mobile.navigate = function(url, data, noEvents) {
$.mobile.navigate.navigator.go(url, data, noEvents);
}, $.mobile.navigate.history = new $.mobile.History(), $.mobile.navigate.navigator = new $.mobile.Navigator($.mobile.navigate.history);
var loc = $.mobile.path.parseLocation();
$.mobile.navigate.history.add(loc.href, {
hash: loc.hash
});
})(jQuery), $10 = jQuery, props1 = {
}), ($10 = jQuery).mobile.navigate = function(url, data, noEvents) {
$10.mobile.navigate.navigator.go(url, data, noEvents);
}, $10.mobile.navigate.history = new $10.mobile.History(), $10.mobile.navigate.navigator = new $10.mobile.Navigator($10.mobile.navigate.history), loc1 = $10.mobile.path.parseLocation(), $10.mobile.navigate.history.add(loc1.href, {
hash: loc1.hash
}), $11 = jQuery, props1 = {
animation: {},
transition: {}
}, testElement = document1.createElement("a"), vendorPrefixes = [
@ -930,22 +927,22 @@
"webkit-",
"moz-",
"o-"
], $10.each([
], $11.each([
"animation",
"transition"
], function(i, test) {
var testName = 0 === i ? test + "-name" : test;
$10.each(vendorPrefixes, function(j, prefix) {
if (undefined4 !== testElement.style[$10.camelCase(prefix + testName)]) return props1[test].prefix = prefix, !1;
}), props1[test].duration = $10.camelCase(props1[test].prefix + test + "-duration"), props1[test].event = $10.camelCase(props1[test].prefix + test + "-end"), "" === props1[test].prefix && (props1[test].event = props1[test].event.toLowerCase());
}), $10.support.cssTransitions = undefined4 !== props1.transition.prefix, $10.support.cssAnimations = undefined4 !== props1.animation.prefix, $10(testElement).remove(), $10.fn.animationComplete = function(callback, type, fallbackTime) {
$11.each(vendorPrefixes, function(j, prefix) {
if (undefined4 !== testElement.style[$11.camelCase(prefix + testName)]) return props1[test].prefix = prefix, !1;
}), props1[test].duration = $11.camelCase(props1[test].prefix + test + "-duration"), props1[test].event = $11.camelCase(props1[test].prefix + test + "-end"), "" === props1[test].prefix && (props1[test].event = props1[test].event.toLowerCase());
}), $11.support.cssTransitions = undefined4 !== props1.transition.prefix, $11.support.cssAnimations = undefined4 !== props1.animation.prefix, $11(testElement).remove(), $11.fn.animationComplete = function(callback, type, fallbackTime) {
var timer, duration, that = this, animationType = type && "animation" !== type ? "transition" : "animation";
return $10.support.cssTransitions && "transition" === animationType || $10.support.cssAnimations && "animation" === animationType ? (fallbackTime === undefined4 && ($10(this).context !== document1 && (duration = 3000 * parseFloat($10(this).css(props1[animationType].duration))), (0 === duration || duration === undefined4 || isNaN(duration)) && (duration = $10.fn.animationComplete.defaultDuration)), timer = setTimeout(function() {
$10(that).off(props1[animationType].event), callback.apply(that);
}, duration), $10(this).one(props1[animationType].event, function() {
return $11.support.cssTransitions && "transition" === animationType || $11.support.cssAnimations && "animation" === animationType ? (fallbackTime === undefined4 && ($11(this).context !== document1 && (duration = 3000 * parseFloat($11(this).css(props1[animationType].duration))), (0 === duration || duration === undefined4 || isNaN(duration)) && (duration = $11.fn.animationComplete.defaultDuration)), timer = setTimeout(function() {
$11(that).off(props1[animationType].event), callback.apply(that);
}, duration), $11(this).one(props1[animationType].event, function() {
clearTimeout(timer), callback.call(this, arguments);
})) : (setTimeout($10.proxy(callback, this), 0), $10(this));
}, $10.fn.animationComplete.defaultDuration = 1000, (function($, window, document, undefined) {
})) : (setTimeout($11.proxy(callback, this), 0), $11(this));
}, $11.fn.animationComplete.defaultDuration = 1000, (function($, window, document, undefined) {
var threshold, i1, dataPropertyName = "virtualMouseBindings", touchTargetPropertyName = "virtualTouchID", virtualEventNames = "vmouseover vmousedown vmousemove vmouseup vclick vmouseout vmousecancel".split(" "), touchEventProps = "clientX clientY pageX pageY screenX screenY".split(" "), mouseHookProps = $.event.mouseHooks ? $.event.mouseHooks.props : [], mouseEventProps = $.event.props.concat(mouseHookProps), activeDocHandlers = {}, resetTimerID = 0, startX = 0, startY = 0, didScroll = !1, clickBlockList = [], blockMouseTriggers = !1, blockTouchTriggers = !1, eventCaptureSupported = "addEventListener" in document, $document = $(document), nextTouchID = 1, lastTouchID = 0;
function getNativeEvent(event) {
for(; event && void 0 !== event.originalEvent;)event = event.originalEvent;
@ -1185,15 +1182,15 @@
}
};
});
})(jQuery, this), ($11 = jQuery).event.special.throttledresize = {
})(jQuery, this), ($12 = jQuery).event.special.throttledresize = {
setup: function() {
$11(this).bind("resize", handler1);
$12(this).bind("resize", handler1);
},
teardown: function() {
$11(this).unbind("resize", handler1);
$12(this).unbind("resize", handler1);
}
}, handler1 = function() {
(diff1 = (curr = new Date().getTime()) - lastCall) >= 250 ? (lastCall = curr, $11(this).trigger("throttledresize")) : (heldCall && clearTimeout(heldCall), heldCall = setTimeout(handler1, 250 - diff1));
(diff1 = (curr = new Date().getTime()) - lastCall) >= 250 ? (lastCall = curr, $12(this).trigger("throttledresize")) : (heldCall && clearTimeout(heldCall), heldCall = setTimeout(handler1, 250 - diff1));
}, lastCall = 0, (function($, window) {
var get_orientation, last_orientation, initial_orientation_is_landscape, initial_orientation_is_default, ww, wh, landscape_threshold, win = $(window), event_name = "orientationchange", portrait_map = {
"0": !0,
@ -1228,50 +1225,50 @@
return fn ? this.bind(event_name, fn) : this.trigger(event_name);
}, $.attrFn && ($.attrFn[event_name] = !0);
})(jQuery, this), base1 = {
element: (baseElement = ($12 = jQuery)("head").children("base")).length ? baseElement : $12("<base>", {
href: $12.mobile.path.documentBase.hrefNoHash
}).prependTo($12("head")),
element: (baseElement = ($13 = jQuery)("head").children("base")).length ? baseElement : $13("<base>", {
href: $13.mobile.path.documentBase.hrefNoHash
}).prependTo($13("head")),
linkSelector: "[src], link[href], a[rel='external'], :jqmData(ajax='false'), a[target]",
set: function(href) {
!!$12.mobile.dynamicBaseEnabled && $12.support.dynamicBaseTag && base1.element.attr("href", $12.mobile.path.makeUrlAbsolute(href, $12.mobile.path.documentBase));
!!$13.mobile.dynamicBaseEnabled && $13.support.dynamicBaseTag && base1.element.attr("href", $13.mobile.path.makeUrlAbsolute(href, $13.mobile.path.documentBase));
},
rewrite: function(href, page) {
var newPath = $12.mobile.path.get(href);
var newPath = $13.mobile.path.get(href);
page.find(base1.linkSelector).each(function(i, link) {
var thisAttr = $12(link).is("[href]") ? "href" : $12(link).is("[src]") ? "src" : "action", thisUrl = $12(link).attr(thisAttr);
thisUrl = thisUrl.replace(location.protocol + "//" + location.host + location.pathname, ""), /^(\w+:|#|\/)/.test(thisUrl) || $12(link).attr(thisAttr, newPath + thisUrl);
var thisAttr = $13(link).is("[href]") ? "href" : $13(link).is("[src]") ? "src" : "action", thisUrl = $13(link).attr(thisAttr);
thisUrl = thisUrl.replace(location.protocol + "//" + location.host + location.pathname, ""), /^(\w+:|#|\/)/.test(thisUrl) || $13(link).attr(thisAttr, newPath + thisUrl);
});
},
reset: function() {
base1.element.attr("href", $12.mobile.path.documentBase.hrefNoSearch);
base1.element.attr("href", $13.mobile.path.documentBase.hrefNoSearch);
}
}, $12.mobile.base = base1, ($13 = jQuery).mobile.widgets = {}, originalWidget = $13.widget, keepNativeFactoryDefault = $13.mobile.keepNative, orig1 = $13.widget, $13.widget = function() {
}, $13.mobile.base = base1, ($14 = jQuery).mobile.widgets = {}, originalWidget = $14.widget, keepNativeFactoryDefault = $14.mobile.keepNative, orig1 = $14.widget, $14.widget = function() {
var constructor = orig1.apply(this, arguments), name = constructor.prototype.widgetName;
return constructor.initSelector = undefined5 !== constructor.prototype.initSelector ? constructor.prototype.initSelector : ":jqmData(role='" + name + "')", $13.mobile.widgets[name] = constructor, constructor;
}, $13.extend($13.widget, originalWidget), $13.mobile.document.on("create", function(event) {
$13(event.target).enhanceWithin();
}), $13.widget("mobile.page", {
return constructor.initSelector = undefined5 !== constructor.prototype.initSelector ? constructor.prototype.initSelector : ":jqmData(role='" + name + "')", $14.mobile.widgets[name] = constructor, constructor;
}, $14.extend($14.widget, originalWidget), $14.mobile.document.on("create", function(event) {
$14(event.target).enhanceWithin();
}), $14.widget("mobile.page", {
options: {
theme: "a",
domCache: !1,
keepNativeDefault: $13.mobile.keepNative,
keepNativeDefault: $14.mobile.keepNative,
contentTheme: null,
enhanced: !1
},
_createWidget: function() {
$13.Widget.prototype._createWidget.apply(this, arguments), this._trigger("init");
$14.Widget.prototype._createWidget.apply(this, arguments), this._trigger("init");
},
_create: function() {
if (!1 === this._trigger("beforecreate")) return !1;
this.options.enhanced || this._enhance(), this._on(this.element, {
pagebeforehide: "removeContainerBackground",
pagebeforeshow: "_handlePageBeforeShow"
}), this.element.enhanceWithin(), "dialog" === $13.mobile.getAttribute(this.element[0], "role") && $13.mobile.dialog && this.element.dialog();
}), this.element.enhanceWithin(), "dialog" === $14.mobile.getAttribute(this.element[0], "role") && $14.mobile.dialog && this.element.dialog();
},
_enhance: function() {
var attrPrefix = "data-" + $13.mobile.ns, self = this;
this.options.role && this.element.attr("data-" + $13.mobile.ns + "role", this.options.role), this.element.attr("tabindex", "0").addClass("ui-page ui-page-theme-" + this.options.theme), this.element.find("[" + attrPrefix + "role='content']").each(function() {
var $this = $13(this), theme = this.getAttribute(attrPrefix + "theme") || undefined5;
var attrPrefix = "data-" + $14.mobile.ns, self = this;
this.options.role && this.element.attr("data-" + $14.mobile.ns + "role", this.options.role), this.element.attr("tabindex", "0").addClass("ui-page ui-page-theme-" + this.options.theme), this.element.find("[" + attrPrefix + "role='content']").each(function() {
var $this = $14(this), theme = this.getAttribute(attrPrefix + "theme") || undefined5;
self.options.contentTheme = theme || self.options.contentTheme || self.options.dialog && self.options.theme || "dialog" === self.element.jqmData("role") && self.options.theme, $this.addClass("ui-content"), self.options.contentTheme && $this.addClass("ui-body-" + self.options.contentTheme), $this.attr("role", "main").addClass("ui-content");
});
},
@ -1279,13 +1276,13 @@
var page = this.element;
!page.data("mobile-page").options.domCache && page.is(":jqmData(external-page='true')") && page.bind("pagehide.remove", callback || function(e, data) {
if (!data.samePage) {
var $this = $13(this), prEvent = new $13.Event("pageremove");
var $this = $14(this), prEvent = new $14.Event("pageremove");
$this.trigger(prEvent), prEvent.isDefaultPrevented() || $this.removeWithDependents();
}
});
},
_setOptions: function(o) {
undefined5 !== o.theme && this.element.removeClass("ui-page-theme-" + this.options.theme).addClass("ui-page-theme-" + o.theme), undefined5 !== o.contentTheme && this.element.find("[data-" + $13.mobile.ns + "='content']").removeClass("ui-body-" + this.options.contentTheme).addClass("ui-body-" + o.contentTheme);
undefined5 !== o.theme && this.element.removeClass("ui-page-theme-" + this.options.theme).addClass("ui-page-theme-" + o.theme), undefined5 !== o.contentTheme && this.element.find("[data-" + $14.mobile.ns + "='content']").removeClass("ui-body-" + this.options.contentTheme).addClass("ui-body-" + o.contentTheme);
},
_handlePageBeforeShow: function() {
this.setContainerBackground();
@ -1301,7 +1298,7 @@
});
},
keepNativeSelector: function() {
var options = this.options, keepNative = $13.trim(options.keepNative || ""), globalValue = $13.trim($13.mobile.keepNative), optionValue = $13.trim(options.keepNativeDefault), newDefault = keepNativeFactoryDefault === globalValue ? "" : globalValue, oldDefault = "" === newDefault ? optionValue : "";
var options = this.options, keepNative = $14.trim(options.keepNative || ""), globalValue = $14.trim($14.mobile.keepNative), optionValue = $14.trim(options.keepNativeDefault), newDefault = keepNativeFactoryDefault === globalValue ? "" : globalValue, oldDefault = "" === newDefault ? optionValue : "";
return (keepNative ? [
keepNative
] : []).concat(newDefault ? [
@ -1310,7 +1307,7 @@
oldDefault
] : []).join(", ");
}
}), ($14 = jQuery).widget("mobile.pagecontainer", {
}), ($15 = jQuery).widget("mobile.pagecontainer", {
options: {
theme: "a"
},
@ -1323,7 +1320,7 @@
navigate: "_filterNavigateEvents"
}), this._on({
pagechange: "_afterContentChange"
}), this.window.one("navigate", $14.proxy(function() {
}), this.window.one("navigate", $15.proxy(function() {
this.setLastScrollEnabled = !0;
}, this));
},
@ -1348,38 +1345,38 @@
}
},
_delayedRecordScroll: function() {
setTimeout($14.proxy(this, "_recordScroll"), 100);
setTimeout($15.proxy(this, "_recordScroll"), 100);
},
_getScroll: function() {
return this.window.scrollTop();
},
_getMinScroll: function() {
return $14.mobile.minScrollBack;
return $15.mobile.minScrollBack;
},
_getDefaultScroll: function() {
return $14.mobile.defaultHomeScroll;
return $15.mobile.defaultHomeScroll;
},
_filterNavigateEvents: function(e, data) {
var url;
e.originalEvent && e.originalEvent.isDefaultPrevented() || ((url = e.originalEvent.type.indexOf("hashchange") > -1 ? data.state.hash : data.state.url) || (url = this._getHash()), url && "#" !== url && 0 !== url.indexOf("#" + $14.mobile.path.uiStateKey) || (url = location.href), this._handleNavigate(url, data.state));
e.originalEvent && e.originalEvent.isDefaultPrevented() || ((url = e.originalEvent.type.indexOf("hashchange") > -1 ? data.state.hash : data.state.url) || (url = this._getHash()), url && "#" !== url && 0 !== url.indexOf("#" + $15.mobile.path.uiStateKey) || (url = location.href), this._handleNavigate(url, data.state));
},
_getHash: function() {
return $14.mobile.path.parseLocation().hash;
return $15.mobile.path.parseLocation().hash;
},
getActivePage: function() {
return this.activePage;
},
_getInitialContent: function() {
return $14.mobile.firstPage;
return $15.mobile.firstPage;
},
_getHistory: function() {
return $14.mobile.navigate.history;
return $15.mobile.navigate.history;
},
_getActiveHistory: function() {
return $14.mobile.navigate.history.getActive();
return $15.mobile.navigate.history.getActive();
},
_getDocumentBase: function() {
return $14.mobile.path.documentBase;
return $15.mobile.path.documentBase;
},
back: function() {
this.go(-1);
@ -1388,10 +1385,10 @@
this.go(1);
},
go: function(steps) {
if ($14.mobile.hashListeningEnabled) window3.history.go(steps);
if ($15.mobile.hashListeningEnabled) window3.history.go(steps);
else {
var activeIndex = $14.mobile.navigate.history.activeIndex, index = activeIndex + parseInt(steps, 10), url = $14.mobile.navigate.history.stack[index].url, direction = steps >= 1 ? "forward" : "back";
$14.mobile.navigate.history.activeIndex = index, $14.mobile.navigate.history.previousIndex = activeIndex, this.change(url, {
var activeIndex = $15.mobile.navigate.history.activeIndex, index = activeIndex + parseInt(steps, 10), url = $15.mobile.navigate.history.stack[index].url, direction = steps >= 1 ? "forward" : "back";
$15.mobile.navigate.history.activeIndex = index, $15.mobile.navigate.history.previousIndex = activeIndex, this.change(url, {
direction: direction,
changeHash: !1,
fromHashChange: !0
@ -1400,34 +1397,34 @@
},
_handleDestination: function(to) {
var history;
return "string" === $14.type(to) && (to = $14.mobile.path.stripHash(to)), to && (history = this._getHistory(), (to = $14.mobile.path.isPath(to) ? to : $14.mobile.path.makeUrlAbsolute("#" + to, this._getDocumentBase())) === $14.mobile.path.makeUrlAbsolute("#" + history.initialDst, this._getDocumentBase()) && history.stack.length && history.stack[0].url !== history.initialDst.replace($14.mobile.dialogHashKey, "") && (to = this._getInitialContent())), to || this._getInitialContent();
return "string" === $15.type(to) && (to = $15.mobile.path.stripHash(to)), to && (history = this._getHistory(), (to = $15.mobile.path.isPath(to) ? to : $15.mobile.path.makeUrlAbsolute("#" + to, this._getDocumentBase())) === $15.mobile.path.makeUrlAbsolute("#" + history.initialDst, this._getDocumentBase()) && history.stack.length && history.stack[0].url !== history.initialDst.replace($15.mobile.dialogHashKey, "") && (to = this._getInitialContent())), to || this._getInitialContent();
},
_handleDialog: function(changePageOptions, data) {
var to, active, activeContent = this.getActivePage();
return activeContent && !activeContent.hasClass("ui-dialog") ? ("back" === data.direction ? this.back() : this.forward(), !1) : (to = data.pageUrl, active = this._getActiveHistory(), $14.extend(changePageOptions, {
return activeContent && !activeContent.hasClass("ui-dialog") ? ("back" === data.direction ? this.back() : this.forward(), !1) : (to = data.pageUrl, active = this._getActiveHistory(), $15.extend(changePageOptions, {
role: active.role,
transition: active.transition,
reverse: "back" === data.direction
}), to);
},
_handleNavigate: function(url, data) {
var to = $14.mobile.path.stripHash(url), history = this._getHistory(), transition = 0 === history.stack.length ? "none" : undefined6, changePageOptions = {
var to = $15.mobile.path.stripHash(url), history = this._getHistory(), transition = 0 === history.stack.length ? "none" : undefined6, changePageOptions = {
changeHash: !1,
fromHashChange: !0,
reverse: "back" === data.direction
};
$14.extend(changePageOptions, data, {
$15.extend(changePageOptions, data, {
transition: (history.getLast() || {}).transition || transition
}), history.activeIndex > 0 && to.indexOf($14.mobile.dialogHashKey) > -1 && history.initialDst !== to && !1 === (to = this._handleDialog(changePageOptions, data)) || this._changeContent(this._handleDestination(to), changePageOptions);
}), history.activeIndex > 0 && to.indexOf($15.mobile.dialogHashKey) > -1 && history.initialDst !== to && !1 === (to = this._handleDialog(changePageOptions, data)) || this._changeContent(this._handleDestination(to), changePageOptions);
},
_changeContent: function(to, opts) {
$14.mobile.changePage(to, opts);
$15.mobile.changePage(to, opts);
},
_getBase: function() {
return $14.mobile.base;
return $15.mobile.base;
},
_getNs: function() {
return $14.mobile.ns;
return $15.mobile.ns;
},
_enhance: function(content, role) {
return content.page({
@ -1439,13 +1436,13 @@
},
_find: function(absUrl) {
var page, fileUrl = this._createFileUrl(absUrl), dataUrl = this._createDataUrl(absUrl), initialContent = this._getInitialContent();
return 0 === (page = this.element.children("[data-" + this._getNs() + "url='" + dataUrl + "']")).length && dataUrl && !$14.mobile.path.isPath(dataUrl) && (page = this.element.children($14.mobile.path.hashToSelector("#" + dataUrl)).attr("data-" + this._getNs() + "url", dataUrl).jqmData("url", dataUrl)), 0 === page.length && $14.mobile.path.isFirstPageUrl(fileUrl) && initialContent && initialContent.parent().length && (page = $14(initialContent)), page;
return 0 === (page = this.element.children("[data-" + this._getNs() + "url='" + dataUrl + "']")).length && dataUrl && !$15.mobile.path.isPath(dataUrl) && (page = this.element.children($15.mobile.path.hashToSelector("#" + dataUrl)).attr("data-" + this._getNs() + "url", dataUrl).jqmData("url", dataUrl)), 0 === page.length && $15.mobile.path.isFirstPageUrl(fileUrl) && initialContent && initialContent.parent().length && (page = $15(initialContent)), page;
},
_getLoader: function() {
return $14.mobile.loading();
return $15.mobile.loading();
},
_showLoading: function(delay, theme, msg, textonly) {
this._loadMsg || (this._loadMsg = setTimeout($14.proxy(function() {
this._loadMsg || (this._loadMsg = setTimeout($15.proxy(function() {
this._getLoader().loader("show", theme, msg, textonly), this._loadMsg = 0;
}, this), delay));
},
@ -1453,27 +1450,27 @@
clearTimeout(this._loadMsg), this._loadMsg = 0, this._getLoader().loader("hide");
},
_showError: function() {
this._hideLoading(), this._showLoading(0, $14.mobile.pageLoadErrorMessageTheme, $14.mobile.pageLoadErrorMessage, !0), setTimeout($14.proxy(this, "_hideLoading"), 1500);
this._hideLoading(), this._showLoading(0, $15.mobile.pageLoadErrorMessageTheme, $15.mobile.pageLoadErrorMessage, !0), setTimeout($15.proxy(this, "_hideLoading"), 1500);
},
_parse: function(html, fileUrl) {
var page, all = $14("<div></div>");
return all.get(0).innerHTML = html, (page = all.find(":jqmData(role='page'), :jqmData(role='dialog')").first()).length || (page = $14("<div data-" + this._getNs() + "role='page'>" + (html.split(/<\/?body[^>]*>/gmi)[1] || "") + "</div>")), page.attr("data-" + this._getNs() + "url", $14.mobile.path.convertUrlToDataUrl(fileUrl)).attr("data-" + this._getNs() + "external-page", !0), page;
var page, all = $15("<div></div>");
return all.get(0).innerHTML = html, (page = all.find(":jqmData(role='page'), :jqmData(role='dialog')").first()).length || (page = $15("<div data-" + this._getNs() + "role='page'>" + (html.split(/<\/?body[^>]*>/gmi)[1] || "") + "</div>")), page.attr("data-" + this._getNs() + "url", $15.mobile.path.convertUrlToDataUrl(fileUrl)).attr("data-" + this._getNs() + "external-page", !0), page;
},
_setLoadedTitle: function(page, html) {
var newPageTitle = html.match(/<title[^>]*>([^<]*)/) && RegExp.$1;
newPageTitle && !page.jqmData("title") && (newPageTitle = $14("<div>" + newPageTitle + "</div>").text(), page.jqmData("title", newPageTitle));
newPageTitle && !page.jqmData("title") && (newPageTitle = $15("<div>" + newPageTitle + "</div>").text(), page.jqmData("title", newPageTitle));
},
_isRewritableBaseTag: function() {
return $14.mobile.dynamicBaseEnabled && !$14.support.dynamicBaseTag;
return $15.mobile.dynamicBaseEnabled && !$15.support.dynamicBaseTag;
},
_createDataUrl: function(absoluteUrl) {
return $14.mobile.path.convertUrlToDataUrl(absoluteUrl);
return $15.mobile.path.convertUrlToDataUrl(absoluteUrl);
},
_createFileUrl: function(absoluteUrl) {
return $14.mobile.path.getFilePath(absoluteUrl);
return $15.mobile.path.getFilePath(absoluteUrl);
},
_triggerWithDeprecated: function(name, data, page) {
var deprecatedEvent = $14.Event("page" + name), newEvent = $14.Event(this.widgetName + name);
var deprecatedEvent = $15.Event("page" + name), newEvent = $15.Event(this.widgetName + name);
return (page || this.element).trigger(deprecatedEvent, data), this.element.trigger(newEvent, data), {
deprecatedEvent: deprecatedEvent,
event: newEvent
@ -1481,9 +1478,9 @@
},
_loadSuccess: function(absUrl, triggerData, settings, deferred) {
var fileUrl = this._createFileUrl(absUrl), dataUrl = this._createDataUrl(absUrl);
return $14.proxy(function(html, textStatus, xhr) {
return $15.proxy(function(html, textStatus, xhr) {
var content, pageElemRegex = new RegExp("(<[^>]+\\bdata-" + this._getNs() + "role=[\"']?page[\"']?[^>]*>)"), dataUrlRegex = new RegExp("\\bdata-" + this._getNs() + "url=[\"']?([^\"'>]*)[\"']?");
pageElemRegex.test(html) && RegExp.$1 && dataUrlRegex.test(RegExp.$1) && RegExp.$1 && (fileUrl = $14.mobile.path.getFilePath($14("<div>" + RegExp.$1 + "</div>").text())), undefined6 === settings.prefetch && this._getBase().set(fileUrl), content = this._parse(html, fileUrl), this._setLoadedTitle(content, html), triggerData.xhr = xhr, triggerData.textStatus = textStatus, triggerData.page = content, triggerData.content = content, this._trigger("load", undefined6, triggerData) && (this._isRewritableBaseTag() && content && this._getBase().rewrite(fileUrl, content), this._include(content, settings), absUrl.indexOf("&" + $14.mobile.subPageUrlKey) > -1 && (content = this.element.children("[data-" + this._getNs() + "url='" + dataUrl + "']")), settings.showLoadMsg && this._hideLoading(), this.element.trigger("pageload"), deferred.resolve(absUrl, settings, content));
pageElemRegex.test(html) && RegExp.$1 && dataUrlRegex.test(RegExp.$1) && RegExp.$1 && (fileUrl = $15.mobile.path.getFilePath($15("<div>" + RegExp.$1 + "</div>").text())), undefined6 === settings.prefetch && this._getBase().set(fileUrl), content = this._parse(html, fileUrl), this._setLoadedTitle(content, html), triggerData.xhr = xhr, triggerData.textStatus = textStatus, triggerData.page = content, triggerData.content = content, this._trigger("load", undefined6, triggerData) && (this._isRewritableBaseTag() && content && this._getBase().rewrite(fileUrl, content), this._include(content, settings), absUrl.indexOf("&" + $15.mobile.subPageUrlKey) > -1 && (content = this.element.children("[data-" + this._getNs() + "url='" + dataUrl + "']")), settings.showLoadMsg && this._hideLoading(), this.element.trigger("pageload"), deferred.resolve(absUrl, settings, content));
}, this);
},
_loadDefaults: {
@ -1496,8 +1493,8 @@
loadMsgDelay: 50
},
load: function(url, options) {
var fileUrl, dataUrl, pblEvent, triggerData, deferred = options && options.deferred || $14.Deferred(), settings = $14.extend({}, this._loadDefaults, options), content = null, absUrl = $14.mobile.path.makeUrlAbsolute(url, this._findBaseWithDefault());
if (settings.reload = settings.reloadPage, settings.data && "get" === settings.type && (absUrl = $14.mobile.path.addSearchParams(absUrl, settings.data), settings.data = undefined6), settings.data && "post" === settings.type && (settings.reload = !0), fileUrl = this._createFileUrl(absUrl), dataUrl = this._createDataUrl(absUrl), 0 === (content = this._find(absUrl)).length && $14.mobile.path.isEmbeddedPage(fileUrl) && !$14.mobile.path.isFirstPageUrl(fileUrl)) {
var fileUrl, dataUrl, pblEvent, triggerData, deferred = options && options.deferred || $15.Deferred(), settings = $15.extend({}, this._loadDefaults, options), content = null, absUrl = $15.mobile.path.makeUrlAbsolute(url, this._findBaseWithDefault());
if (settings.reload = settings.reloadPage, settings.data && "get" === settings.type && (absUrl = $15.mobile.path.addSearchParams(absUrl, settings.data), settings.data = undefined6), settings.data && "post" === settings.type && (settings.reload = !0), fileUrl = this._createFileUrl(absUrl), dataUrl = this._createDataUrl(absUrl), 0 === (content = this._find(absUrl)).length && $15.mobile.path.isEmbeddedPage(fileUrl) && !$15.mobile.path.isFirstPageUrl(fileUrl)) {
deferred.reject(absUrl, settings);
return;
}
@ -1512,11 +1509,11 @@
deferred: deferred,
options: settings
}, !((pblEvent = this._triggerWithDeprecated("beforeload", triggerData)).deprecatedEvent.isDefaultPrevented() || pblEvent.event.isDefaultPrevented())) {
if (settings.showLoadMsg && this._showLoading(settings.loadMsgDelay), undefined6 === settings.prefetch && this._getBase().reset(), !($14.mobile.allowCrossDomainPages || $14.mobile.path.isSameDomain($14.mobile.path.documentUrl, absUrl))) {
if (settings.showLoadMsg && this._showLoading(settings.loadMsgDelay), undefined6 === settings.prefetch && this._getBase().reset(), !($15.mobile.allowCrossDomainPages || $15.mobile.path.isSameDomain($15.mobile.path.documentUrl, absUrl))) {
deferred.reject(absUrl, settings);
return;
}
$14.ajax({
$15.ajax({
url: fileUrl,
type: settings.type,
data: settings.data,
@ -1528,14 +1525,14 @@
}
},
_loadError: function(absUrl, triggerData, settings, deferred) {
return $14.proxy(function(xhr, textStatus, errorThrown) {
this._getBase().set($14.mobile.path.get()), triggerData.xhr = xhr, triggerData.textStatus = textStatus, triggerData.errorThrown = errorThrown;
return $15.proxy(function(xhr, textStatus, errorThrown) {
this._getBase().set($15.mobile.path.get()), triggerData.xhr = xhr, triggerData.textStatus = textStatus, triggerData.errorThrown = errorThrown;
var plfEvent = this._triggerWithDeprecated("loadfailed", triggerData);
plfEvent.deprecatedEvent.isDefaultPrevented() || plfEvent.event.isDefaultPrevented() || (settings.showLoadMsg && this._showError(), deferred.reject(absUrl, settings));
}, this);
},
_getTransitionHandler: function(transition) {
return transition = $14.mobile._maybeDegradeTransition(transition), $14.mobile.transitionHandlers[transition] || $14.mobile.defaultTransitionHandler;
return transition = $15.mobile._maybeDegradeTransition(transition), $15.mobile.transitionHandlers[transition] || $15.mobile.defaultTransitionHandler;
},
_triggerCssTransitionEvents: function(to, from, prefix) {
var samePage = !1;
@ -1543,44 +1540,44 @@
nextPage: to,
samePage: samePage
}, from)), this._triggerWithDeprecated(prefix + "show", {
prevPage: from || $14("")
prevPage: from || $15("")
}, to);
},
_cssTransition: function(to, from, options) {
var promise, transition = options.transition, reverse = options.reverse, deferred = options.deferred;
this._triggerCssTransitionEvents(to, from, "before"), this._hideLoading(), (promise = new (this._getTransitionHandler(transition))(transition, reverse, to, from).transition()).done(function() {
deferred.resolve.apply(deferred, arguments);
}), promise.done($14.proxy(function() {
}), promise.done($15.proxy(function() {
this._triggerCssTransitionEvents(to, from);
}, this));
},
_releaseTransitionLock: function() {
isPageTransitioning = !1, pageTransitionQueue.length > 0 && $14.mobile.changePage.apply(null, pageTransitionQueue.pop());
isPageTransitioning = !1, pageTransitionQueue.length > 0 && $15.mobile.changePage.apply(null, pageTransitionQueue.pop());
},
_removeActiveLinkClass: function(force) {
$14.mobile.removeActiveLinkClass(force);
$15.mobile.removeActiveLinkClass(force);
},
_loadUrl: function(to, triggerData, settings) {
settings.target = to, settings.deferred = $14.Deferred(), this.load(to, settings), settings.deferred.done($14.proxy(function(url, options, content) {
settings.target = to, settings.deferred = $15.Deferred(), this.load(to, settings), settings.deferred.done($15.proxy(function(url, options, content) {
isPageTransitioning = !1, options.absUrl = triggerData.absUrl, this.transition(content, triggerData, options);
}, this)), settings.deferred.fail($14.proxy(function() {
}, this)), settings.deferred.fail($15.proxy(function() {
this._removeActiveLinkClass(!0), this._releaseTransitionLock(), this._triggerWithDeprecated("changefailed", triggerData);
}, this));
},
_triggerPageBeforeChange: function(to, triggerData, settings) {
var pbcEvent = new $14.Event("pagebeforechange");
return $14.extend(triggerData, {
var pbcEvent = new $15.Event("pagebeforechange");
return $15.extend(triggerData, {
toPage: to,
options: settings
}), "string" === $14.type(to) ? triggerData.absUrl = $14.mobile.path.makeUrlAbsolute(to, this._findBaseWithDefault()) : triggerData.absUrl = settings.absUrl, this.element.trigger(pbcEvent, triggerData), !pbcEvent.isDefaultPrevented();
}), "string" === $15.type(to) ? triggerData.absUrl = $15.mobile.path.makeUrlAbsolute(to, this._findBaseWithDefault()) : triggerData.absUrl = settings.absUrl, this.element.trigger(pbcEvent, triggerData), !pbcEvent.isDefaultPrevented();
},
change: function(to, options) {
if (isPageTransitioning) {
pageTransitionQueue.unshift(arguments);
return;
}
var settings = $14.extend({}, $14.mobile.changePage.defaults, options), triggerData = {};
settings.fromPage = settings.fromPage || this.activePage, this._triggerPageBeforeChange(to, triggerData, settings) && (to = triggerData.toPage, "string" === $14.type(to) ? (isPageTransitioning = !0, this._loadUrl(to, triggerData, settings)) : this.transition(to, triggerData, settings));
var settings = $15.extend({}, $15.mobile.changePage.defaults, options), triggerData = {};
settings.fromPage = settings.fromPage || this.activePage, this._triggerPageBeforeChange(to, triggerData, settings) && (to = triggerData.toPage, "string" === $15.type(to) ? (isPageTransitioning = !0, this._loadUrl(to, triggerData, settings)) : this.transition(to, triggerData, settings));
},
transition: function(toPage, triggerData, settings) {
var fromPage, url, pageUrl, active, activeIsInitialPage, historyDir, pageTitle, isDialog, alreadyThere, newPageTitle, params, cssTransitionDeferred, beforeTransition;
@ -1592,8 +1589,8 @@
return;
}
if (this._triggerPageBeforeChange(toPage, triggerData, settings) && !((beforeTransition = this._triggerWithDeprecated("beforetransition", triggerData)).deprecatedEvent.isDefaultPrevented() || beforeTransition.event.isDefaultPrevented())) {
if (isPageTransitioning = !0, toPage[0] !== $14.mobile.firstPage[0] || settings.dataUrl || (settings.dataUrl = $14.mobile.path.documentUrl.hrefNoHash), fromPage = settings.fromPage, url = settings.dataUrl && $14.mobile.path.convertUrlToDataUrl(settings.dataUrl) || toPage.jqmData("url"), pageUrl = url, $14.mobile.path.getFilePath(url), active = $14.mobile.navigate.history.getActive(), activeIsInitialPage = 0 === $14.mobile.navigate.history.activeIndex, historyDir = 0, pageTitle = document1.title, isDialog = ("dialog" === settings.role || "dialog" === toPage.jqmData("role")) && !0 !== toPage.jqmData("dialog"), fromPage && fromPage[0] === toPage[0] && !settings.allowSamePageTransition) {
isPageTransitioning = !1, this._triggerWithDeprecated("transition", triggerData), this.element.trigger("pagechange", triggerData), settings.fromHashChange && $14.mobile.navigate.history.direct({
if (isPageTransitioning = !0, toPage[0] !== $15.mobile.firstPage[0] || settings.dataUrl || (settings.dataUrl = $15.mobile.path.documentUrl.hrefNoHash), fromPage = settings.fromPage, url = settings.dataUrl && $15.mobile.path.convertUrlToDataUrl(settings.dataUrl) || toPage.jqmData("url"), pageUrl = url, $15.mobile.path.getFilePath(url), active = $15.mobile.navigate.history.getActive(), activeIsInitialPage = 0 === $15.mobile.navigate.history.activeIndex, historyDir = 0, pageTitle = document1.title, isDialog = ("dialog" === settings.role || "dialog" === toPage.jqmData("role")) && !0 !== toPage.jqmData("dialog"), fromPage && fromPage[0] === toPage[0] && !settings.allowSamePageTransition) {
isPageTransitioning = !1, this._triggerWithDeprecated("transition", triggerData), this.element.trigger("pagechange", triggerData), settings.fromHashChange && $15.mobile.navigate.history.direct({
url: url
});
return;
@ -1602,26 +1599,26 @@
role: settings.role
}), settings.fromHashChange && (historyDir = "back" === settings.direction ? -1 : 1);
try {
document1.activeElement && "body" !== document1.activeElement.nodeName.toLowerCase() ? $14(document1.activeElement).blur() : $14("input:focus, textarea:focus, select:focus").blur();
document1.activeElement && "body" !== document1.activeElement.nodeName.toLowerCase() ? $15(document1.activeElement).blur() : $15("input:focus, textarea:focus, select:focus").blur();
} catch (e) {}
alreadyThere = !1, isDialog && active && (active.url && active.url.indexOf($14.mobile.dialogHashKey) > -1 && this.activePage && !this.activePage.hasClass("ui-dialog") && $14.mobile.navigate.history.activeIndex > 0 && (settings.changeHash = !1, alreadyThere = !0), url = active.url || "", !alreadyThere && url.indexOf("#") > -1 ? url += $14.mobile.dialogHashKey : url += "#" + $14.mobile.dialogHashKey, 0 === $14.mobile.navigate.history.activeIndex && url === $14.mobile.navigate.history.initialDst && (url += $14.mobile.dialogHashKey)), (newPageTitle = active ? toPage.jqmData("title") || toPage.children(":jqmData(role='header')").find(".ui-title").text() : pageTitle) && pageTitle === document1.title && (pageTitle = newPageTitle), toPage.jqmData("title") || toPage.jqmData("title", pageTitle), settings.transition = settings.transition || (historyDir && !activeIsInitialPage ? active.transition : undefined6) || (isDialog ? $14.mobile.defaultDialogTransition : $14.mobile.defaultPageTransition), !historyDir && alreadyThere && ($14.mobile.navigate.history.getActive().pageUrl = pageUrl), url && !settings.fromHashChange && (!$14.mobile.path.isPath(url) && 0 > url.indexOf("#") && (url = "#" + url), params = {
alreadyThere = !1, isDialog && active && (active.url && active.url.indexOf($15.mobile.dialogHashKey) > -1 && this.activePage && !this.activePage.hasClass("ui-dialog") && $15.mobile.navigate.history.activeIndex > 0 && (settings.changeHash = !1, alreadyThere = !0), url = active.url || "", !alreadyThere && url.indexOf("#") > -1 ? url += $15.mobile.dialogHashKey : url += "#" + $15.mobile.dialogHashKey, 0 === $15.mobile.navigate.history.activeIndex && url === $15.mobile.navigate.history.initialDst && (url += $15.mobile.dialogHashKey)), (newPageTitle = active ? toPage.jqmData("title") || toPage.children(":jqmData(role='header')").find(".ui-title").text() : pageTitle) && pageTitle === document1.title && (pageTitle = newPageTitle), toPage.jqmData("title") || toPage.jqmData("title", pageTitle), settings.transition = settings.transition || (historyDir && !activeIsInitialPage ? active.transition : undefined6) || (isDialog ? $15.mobile.defaultDialogTransition : $15.mobile.defaultPageTransition), !historyDir && alreadyThere && ($15.mobile.navigate.history.getActive().pageUrl = pageUrl), url && !settings.fromHashChange && (!$15.mobile.path.isPath(url) && 0 > url.indexOf("#") && (url = "#" + url), params = {
transition: settings.transition,
title: pageTitle,
pageUrl: pageUrl,
role: settings.role
}, !1 !== settings.changeHash && $14.mobile.hashListeningEnabled ? $14.mobile.navigate(url, params, !0) : toPage[0] !== $14.mobile.firstPage[0] && $14.mobile.navigate.history.add(url, params)), document1.title = pageTitle, $14.mobile.activePage = toPage, this.activePage = toPage, settings.reverse = settings.reverse || historyDir < 0, cssTransitionDeferred = $14.Deferred(), this._cssTransition(toPage, fromPage, {
}, !1 !== settings.changeHash && $15.mobile.hashListeningEnabled ? $15.mobile.navigate(url, params, !0) : toPage[0] !== $15.mobile.firstPage[0] && $15.mobile.navigate.history.add(url, params)), document1.title = pageTitle, $15.mobile.activePage = toPage, this.activePage = toPage, settings.reverse = settings.reverse || historyDir < 0, cssTransitionDeferred = $15.Deferred(), this._cssTransition(toPage, fromPage, {
transition: settings.transition,
reverse: settings.reverse,
deferred: cssTransitionDeferred
}), cssTransitionDeferred.done($14.proxy(function(name, reverse, $to, $from, alreadyFocused) {
$14.mobile.removeActiveLinkClass(), settings.duplicateCachedPage && settings.duplicateCachedPage.remove(), alreadyFocused || $14.mobile.focusPage(toPage), this._releaseTransitionLock(), this.element.trigger("pagechange", triggerData), this._triggerWithDeprecated("transition", triggerData);
}), cssTransitionDeferred.done($15.proxy(function(name, reverse, $to, $from, alreadyFocused) {
$15.mobile.removeActiveLinkClass(), settings.duplicateCachedPage && settings.duplicateCachedPage.remove(), alreadyFocused || $15.mobile.focusPage(toPage), this._releaseTransitionLock(), this.element.trigger("pagechange", triggerData), this._triggerWithDeprecated("transition", triggerData);
}, this));
}
},
_findBaseWithDefault: function() {
return this.activePage && $14.mobile.getClosestBaseUrl(this.activePage) || $14.mobile.path.documentBase.hrefNoHash;
return this.activePage && $15.mobile.getClosestBaseUrl(this.activePage) || $15.mobile.path.documentBase.hrefNoHash;
}
}), $14.mobile.navreadyDeferred = $14.Deferred(), pageTransitionQueue = [], isPageTransitioning = !1, (function($, undefined) {
}), $15.mobile.navreadyDeferred = $15.Deferred(), pageTransitionQueue = [], isPageTransitioning = !1, (function($, undefined) {
var domreadyDeferred = $.Deferred(), loadDeferred = $.Deferred(), documentUrl = $.mobile.path.documentUrl, $lastVClicked = null;
function findClosestLink(ele) {
for(; ele;){
@ -1742,27 +1739,27 @@
}), $.when(domreadyDeferred, $.mobile.navreadyDeferred).done(function() {
$.mobile._registerInternalEvents();
});
})(jQuery), $15 = jQuery, window2 = this, $15.mobile.Transition = function() {
})(jQuery), $16 = jQuery, window2 = this, $16.mobile.Transition = function() {
this.init.apply(this, arguments);
}, $15.extend($15.mobile.Transition.prototype, {
}, $16.extend($16.mobile.Transition.prototype, {
toPreClass: " ui-page-pre-in",
init: function(name, reverse, $to, $from) {
$15.extend(this, {
$16.extend(this, {
name: name,
reverse: reverse,
$to: $to,
$from: $from,
deferred: new $15.Deferred()
deferred: new $16.Deferred()
});
},
cleanFrom: function() {
this.$from.removeClass($15.mobile.activePageClass + " out in reverse " + this.name).height("");
this.$from.removeClass($16.mobile.activePageClass + " out in reverse " + this.name).height("");
},
beforeDoneIn: function() {},
beforeDoneOut: function() {},
beforeStartOut: function() {},
doneIn: function() {
this.beforeDoneIn(), this.$to.removeClass("out in reverse " + this.name).height(""), this.toggleViewportClass(), $15.mobile.window.scrollTop() !== this.toScroll && this.scrollPage(), this.sequential || this.$to.addClass($15.mobile.activePageClass), this.deferred.resolve(this.name, this.reverse, this.$to, this.$from, !0);
this.beforeDoneIn(), this.$to.removeClass("out in reverse " + this.name).height(""), this.toggleViewportClass(), $16.mobile.window.scrollTop() !== this.toScroll && this.scrollPage(), this.sequential || this.$to.addClass($16.mobile.activePageClass), this.deferred.resolve(this.name, this.reverse, this.$to, this.$from, !0);
},
doneOut: function(screenHeight, reverseClass, none, preventFocus) {
this.beforeDoneOut(), this.startIn(screenHeight, reverseClass, none, preventFocus);
@ -1771,42 +1768,42 @@
this.$to.css("z-index", -10), callback.call(this), this.$to.css("z-index", "");
},
scrollPage: function() {
$15.event.special.scrollstart.enabled = !1, ($15.mobile.hideUrlBar || this.toScroll !== $15.mobile.defaultHomeScroll) && window2.scrollTo(0, this.toScroll), setTimeout(function() {
$15.event.special.scrollstart.enabled = !0;
$16.event.special.scrollstart.enabled = !1, ($16.mobile.hideUrlBar || this.toScroll !== $16.mobile.defaultHomeScroll) && window2.scrollTo(0, this.toScroll), setTimeout(function() {
$16.event.special.scrollstart.enabled = !0;
}, 150);
},
startIn: function(screenHeight, reverseClass, none, preventFocus) {
this.hideIn(function() {
this.$to.addClass($15.mobile.activePageClass + this.toPreClass), preventFocus || $15.mobile.focusPage(this.$to), this.$to.height(screenHeight + this.toScroll), none || this.scrollPage();
}), this.$to.removeClass(this.toPreClass).addClass(this.name + " in " + reverseClass), none ? this.doneIn() : this.$to.animationComplete($15.proxy(function() {
this.$to.addClass($16.mobile.activePageClass + this.toPreClass), preventFocus || $16.mobile.focusPage(this.$to), this.$to.height(screenHeight + this.toScroll), none || this.scrollPage();
}), this.$to.removeClass(this.toPreClass).addClass(this.name + " in " + reverseClass), none ? this.doneIn() : this.$to.animationComplete($16.proxy(function() {
this.doneIn();
}, this));
},
startOut: function(screenHeight, reverseClass, none) {
this.beforeStartOut(screenHeight, reverseClass, none), this.$from.height(screenHeight + $15.mobile.window.scrollTop()).addClass(this.name + " out" + reverseClass);
this.beforeStartOut(screenHeight, reverseClass, none), this.$from.height(screenHeight + $16.mobile.window.scrollTop()).addClass(this.name + " out" + reverseClass);
},
toggleViewportClass: function() {
$15.mobile.pageContainer.toggleClass("ui-mobile-viewport-transitioning viewport-" + this.name);
$16.mobile.pageContainer.toggleClass("ui-mobile-viewport-transitioning viewport-" + this.name);
},
transition: function() {
var none, reverseClass = this.reverse ? " reverse" : "", screenHeight = $15.mobile.getScreenHeight(), maxTransitionOverride = !1 !== $15.mobile.maxTransitionWidth && $15.mobile.window.width() > $15.mobile.maxTransitionWidth;
return this.toScroll = $15.mobile.navigate.history.getActive().lastScroll || $15.mobile.defaultHomeScroll, none = !$15.support.cssTransitions || !$15.support.cssAnimations || maxTransitionOverride || !this.name || "none" === this.name || Math.max($15.mobile.window.scrollTop(), this.toScroll) > $15.mobile.getMaxScrollForTransition(), this.toggleViewportClass(), this.$from && !none ? this.startOut(screenHeight, reverseClass, none) : this.doneOut(screenHeight, reverseClass, none, !0), this.deferred.promise();
var none, reverseClass = this.reverse ? " reverse" : "", screenHeight = $16.mobile.getScreenHeight(), maxTransitionOverride = !1 !== $16.mobile.maxTransitionWidth && $16.mobile.window.width() > $16.mobile.maxTransitionWidth;
return this.toScroll = $16.mobile.navigate.history.getActive().lastScroll || $16.mobile.defaultHomeScroll, none = !$16.support.cssTransitions || !$16.support.cssAnimations || maxTransitionOverride || !this.name || "none" === this.name || Math.max($16.mobile.window.scrollTop(), this.toScroll) > $16.mobile.getMaxScrollForTransition(), this.toggleViewportClass(), this.$from && !none ? this.startOut(screenHeight, reverseClass, none) : this.doneOut(screenHeight, reverseClass, none, !0), this.deferred.promise();
}
}), ($16 = jQuery).mobile.SerialTransition = function() {
}), ($17 = jQuery).mobile.SerialTransition = function() {
this.init.apply(this, arguments);
}, $16.extend($16.mobile.SerialTransition.prototype, $16.mobile.Transition.prototype, {
}, $17.extend($17.mobile.SerialTransition.prototype, $17.mobile.Transition.prototype, {
sequential: !0,
beforeDoneOut: function() {
this.$from && this.cleanFrom();
},
beforeStartOut: function(screenHeight, reverseClass, none) {
this.$from.animationComplete($16.proxy(function() {
this.$from.animationComplete($17.proxy(function() {
this.doneOut(screenHeight, reverseClass, none);
}, this));
}
}), ($17 = jQuery).mobile.ConcurrentTransition = function() {
}), ($18 = jQuery).mobile.ConcurrentTransition = function() {
this.init.apply(this, arguments);
}, $17.extend($17.mobile.ConcurrentTransition.prototype, $17.mobile.Transition.prototype, {
}, $18.extend($18.mobile.ConcurrentTransition.prototype, $18.mobile.Transition.prototype, {
sequential: !1,
beforeDoneIn: function() {
this.$from && this.cleanFrom();
@ -1814,14 +1811,14 @@
beforeStartOut: function(screenHeight, reverseClass, none) {
this.doneOut(screenHeight, reverseClass, none);
}
}), ($18 = jQuery).mobile.transitionHandlers = {
sequential: $18.mobile.SerialTransition,
simultaneous: $18.mobile.ConcurrentTransition
}, $18.mobile.defaultTransitionHandler = $18.mobile.transitionHandlers.sequential, $18.mobile.transitionFallbacks = {}, $18.mobile._maybeDegradeTransition = function(transition) {
return transition && !$18.support.cssTransform3d && $18.mobile.transitionFallbacks[transition] && (transition = $18.mobile.transitionFallbacks[transition]), transition;
}, $18.mobile.getMaxScrollForTransition = $18.mobile.getMaxScrollForTransition || function() {
return 3 * $18.mobile.getScreenHeight();
}, jQuery.mobile.transitionFallbacks.flip = "fade", jQuery.mobile.transitionFallbacks.flow = "fade", jQuery.mobile.transitionFallbacks.pop = "fade", ($19 = jQuery).mobile.transitionHandlers.slide = $19.mobile.transitionHandlers.simultaneous, $19.mobile.transitionFallbacks.slide = "fade", jQuery.mobile.transitionFallbacks.slidedown = "fade", jQuery.mobile.transitionFallbacks.slidefade = "fade", jQuery.mobile.transitionFallbacks.slideup = "fade", jQuery.mobile.transitionFallbacks.turn = "fade", ($20 = jQuery).mobile.degradeInputs = {
}), ($19 = jQuery).mobile.transitionHandlers = {
sequential: $19.mobile.SerialTransition,
simultaneous: $19.mobile.ConcurrentTransition
}, $19.mobile.defaultTransitionHandler = $19.mobile.transitionHandlers.sequential, $19.mobile.transitionFallbacks = {}, $19.mobile._maybeDegradeTransition = function(transition) {
return transition && !$19.support.cssTransform3d && $19.mobile.transitionFallbacks[transition] && (transition = $19.mobile.transitionFallbacks[transition]), transition;
}, $19.mobile.getMaxScrollForTransition = $19.mobile.getMaxScrollForTransition || function() {
return 3 * $19.mobile.getScreenHeight();
}, jQuery.mobile.transitionFallbacks.flip = "fade", jQuery.mobile.transitionFallbacks.flow = "fade", jQuery.mobile.transitionFallbacks.pop = "fade", ($20 = jQuery).mobile.transitionHandlers.slide = $20.mobile.transitionHandlers.simultaneous, $20.mobile.transitionFallbacks.slide = "fade", jQuery.mobile.transitionFallbacks.slidedown = "fade", jQuery.mobile.transitionFallbacks.slidefade = "fade", jQuery.mobile.transitionFallbacks.slideup = "fade", jQuery.mobile.transitionFallbacks.turn = "fade", ($21 = jQuery).mobile.degradeInputs = {
color: !1,
date: !1,
datetime: !1,
@ -1835,10 +1832,10 @@
time: !1,
url: !1,
week: !1
}, $20.mobile.page.prototype.options.degradeInputs = $20.mobile.degradeInputs, $20.mobile.degradeInputsWithin = function(target) {
(target = $20(target)).find("input").not($20.mobile.page.prototype.keepNativeSelector()).each(function() {
var html, hasType, findstr, repstr, element = $20(this), type = this.getAttribute("type"), optType = $20.mobile.degradeInputs[type] || "text";
$20.mobile.degradeInputs[type] && (findstr = (hasType = (html = $20("<div>").html(element.clone()).html()).indexOf(" type=") > -1) ? /\s+type=["']?\w+['"]?/ : /\/?>/, repstr = " type=\"" + optType + "\" data-" + $20.mobile.ns + "type=\"" + type + "\"" + (hasType ? "" : ">"), element.replaceWith(html.replace(findstr, repstr)));
}, $21.mobile.page.prototype.options.degradeInputs = $21.mobile.degradeInputs, $21.mobile.degradeInputsWithin = function(target) {
(target = $21(target)).find("input").not($21.mobile.page.prototype.keepNativeSelector()).each(function() {
var html, hasType, findstr, repstr, element = $21(this), type = this.getAttribute("type"), optType = $21.mobile.degradeInputs[type] || "text";
$21.mobile.degradeInputs[type] && (findstr = (hasType = (html = $21("<div>").html(element.clone()).html()).indexOf(" type=") > -1) ? /\s+type=["']?\w+['"]?/ : /\/?>/, repstr = " type=\"" + optType + "\" data-" + $21.mobile.ns + "type=\"" + type + "\"" + (hasType ? "" : ">"), element.replaceWith(html.replace(findstr, repstr)));
});
}, (function($, window, undefined) {
$.widget("mobile.page", $.mobile.page, {
@ -1929,9 +1926,9 @@
this._isCloseable && (this._isCloseable = !1, $.mobile.hashListeningEnabled && hist.activeIndex > 0 ? $.mobile.back() : $.mobile.pageContainer.pagecontainer("back"));
}
});
})(jQuery, this), $21 = jQuery, rInitialLetter = /([A-Z])/g, iconposClass1 = function(iconpos) {
})(jQuery, this), $22 = jQuery, rInitialLetter = /([A-Z])/g, iconposClass1 = function(iconpos) {
return "ui-btn-icon-" + (null === iconpos ? "left" : iconpos);
}, $21.widget("mobile.collapsible", {
}, $22.widget("mobile.collapsible", {
options: {
enhanced: !1,
expandCueText: null,
@ -1949,11 +1946,11 @@
},
_create: function() {
var elem = this.element, ui = {
accordion: elem.closest(":jqmData(role='collapsible-set'),:jqmData(role='collapsibleset')" + ($21.mobile.collapsibleset ? ", :mobile-collapsibleset" : "")).addClass("ui-collapsible-set")
accordion: elem.closest(":jqmData(role='collapsible-set'),:jqmData(role='collapsibleset')" + ($22.mobile.collapsibleset ? ", :mobile-collapsibleset" : "")).addClass("ui-collapsible-set")
};
this._ui = ui, this._renderedOptions = this._getOptions(this.options), this.options.enhanced ? (ui.heading = $21(".ui-collapsible-heading", this.element[0]), ui.content = ui.heading.next(), ui.anchor = $21("a", ui.heading[0]).first(), ui.status = ui.anchor.children(".ui-collapsible-heading-status")) : this._enhance(elem, ui), this._on(ui.heading, {
this._ui = ui, this._renderedOptions = this._getOptions(this.options), this.options.enhanced ? (ui.heading = $22(".ui-collapsible-heading", this.element[0]), ui.content = ui.heading.next(), ui.anchor = $22("a", ui.heading[0]).first(), ui.status = ui.anchor.children(".ui-collapsible-heading-status")) : this._enhance(elem, ui), this._on(ui.heading, {
tap: function() {
ui.heading.find("a").first().addClass($21.mobile.activeBtnClass);
ui.heading.find("a").first().addClass($22.mobile.activeBtnClass);
},
click: function(event) {
this._handleExpandCollapse(!ui.heading.hasClass("ui-collapsible-heading-collapsed")), event.preventDefault(), event.stopPropagation();
@ -1962,7 +1959,7 @@
},
_getOptions: function(options) {
var key, accordion = this._ui.accordion, accordionWidget = this._ui.accordionWidget;
for(key in options = $21.extend({}, options), accordion.length && !accordionWidget && (this._ui.accordionWidget = accordionWidget = accordion.data("mobile-collapsibleset")), options)options[key] = null != options[key] ? options[key] : accordionWidget ? accordionWidget.options[key] : accordion.length ? $21.mobile.getAttribute(accordion[0], key.replace(rInitialLetter, "-$1").toLowerCase()) : null, null == options[key] && (options[key] = $21.mobile.collapsible.defaults[key]);
for(key in options = $22.extend({}, options), accordion.length && !accordionWidget && (this._ui.accordionWidget = accordionWidget = accordion.data("mobile-collapsibleset")), options)options[key] = null != options[key] ? options[key] : accordionWidget ? accordionWidget.options[key] : accordion.length ? $22.mobile.getAttribute(accordion[0], key.replace(rInitialLetter, "-$1").toLowerCase()) : null, null == options[key] && (options[key] = $22.mobile.collapsible.defaults[key]);
return options;
},
_themeClassFromOption: function(prefix, value) {
@ -1970,7 +1967,7 @@
},
_enhance: function(elem, ui) {
var iconclass, opts = this._renderedOptions, contentThemeClass = this._themeClassFromOption("ui-body-", opts.contentTheme);
return elem.addClass("ui-collapsible " + (opts.inset ? "ui-collapsible-inset " : "") + (opts.inset && opts.corners ? "ui-corner-all " : "") + (contentThemeClass ? "ui-collapsible-themed-content " : "")), ui.originalHeading = elem.children(this.options.heading).first(), ui.content = elem.wrapInner("<div class='ui-collapsible-content " + contentThemeClass + "'></div>").children(".ui-collapsible-content"), ui.heading = ui.originalHeading, ui.heading.is("legend") && (ui.heading = $21("<div role='heading'>" + ui.heading.html() + "</div>"), ui.placeholder = $21("<div><!-- placeholder for legend --></div>").insertBefore(ui.originalHeading), ui.originalHeading.remove()), iconclass = opts.collapsed ? opts.collapsedIcon ? "ui-icon-" + opts.collapsedIcon : "" : opts.expandedIcon ? "ui-icon-" + opts.expandedIcon : "", ui.status = $21("<span class='ui-collapsible-heading-status'></span>"), ui.anchor = ui.heading.detach().addClass("ui-collapsible-heading").append(ui.status).wrapInner("<a href='#' class='ui-collapsible-heading-toggle'></a>").find("a").first().addClass("ui-btn " + (iconclass ? iconclass + " " : "") + (iconclass ? iconposClass1(opts.iconpos) + " " : "") + this._themeClassFromOption("ui-btn-", opts.theme) + " " + (opts.mini ? "ui-mini " : "")), ui.heading.insertBefore(ui.content), this._handleExpandCollapse(this.options.collapsed), ui;
return elem.addClass("ui-collapsible " + (opts.inset ? "ui-collapsible-inset " : "") + (opts.inset && opts.corners ? "ui-corner-all " : "") + (contentThemeClass ? "ui-collapsible-themed-content " : "")), ui.originalHeading = elem.children(this.options.heading).first(), ui.content = elem.wrapInner("<div class='ui-collapsible-content " + contentThemeClass + "'></div>").children(".ui-collapsible-content"), ui.heading = ui.originalHeading, ui.heading.is("legend") && (ui.heading = $22("<div role='heading'>" + ui.heading.html() + "</div>"), ui.placeholder = $22("<div><!-- placeholder for legend --></div>").insertBefore(ui.originalHeading), ui.originalHeading.remove()), iconclass = opts.collapsed ? opts.collapsedIcon ? "ui-icon-" + opts.collapsedIcon : "" : opts.expandedIcon ? "ui-icon-" + opts.expandedIcon : "", ui.status = $22("<span class='ui-collapsible-heading-status'></span>"), ui.anchor = ui.heading.detach().addClass("ui-collapsible-heading").append(ui.status).wrapInner("<a href='#' class='ui-collapsible-heading-toggle'></a>").find("a").first().addClass("ui-btn " + (iconclass ? iconclass + " " : "") + (iconclass ? iconposClass1(opts.iconpos) + " " : "") + this._themeClassFromOption("ui-btn-", opts.theme) + " " + (opts.mini ? "ui-mini " : "")), ui.heading.insertBefore(ui.content), this._handleExpandCollapse(this.options.collapsed), ui;
},
refresh: function() {
this._applyOptions(this.options), this._renderedOptions = this._getOptions(this.options);
@ -1996,7 +1993,7 @@
},
_handleExpandCollapse: function(isCollapse) {
var opts = this._renderedOptions, ui = this._ui;
ui.status.text(isCollapse ? opts.expandCueText : opts.collapseCueText), ui.heading.toggleClass("ui-collapsible-heading-collapsed", isCollapse).find("a").first().toggleClass("ui-icon-" + opts.expandedIcon, !isCollapse).toggleClass("ui-icon-" + opts.collapsedIcon, isCollapse || opts.expandedIcon === opts.collapsedIcon).removeClass($21.mobile.activeBtnClass), this.element.toggleClass("ui-collapsible-collapsed", isCollapse), ui.content.toggleClass("ui-collapsible-content-collapsed", isCollapse).attr("aria-hidden", isCollapse).trigger("updatelayout"), this.options.collapsed = isCollapse, this._trigger(isCollapse ? "collapse" : "expand");
ui.status.text(isCollapse ? opts.expandCueText : opts.collapseCueText), ui.heading.toggleClass("ui-collapsible-heading-collapsed", isCollapse).find("a").first().toggleClass("ui-icon-" + opts.expandedIcon, !isCollapse).toggleClass("ui-icon-" + opts.collapsedIcon, isCollapse || opts.expandedIcon === opts.collapsedIcon).removeClass($22.mobile.activeBtnClass), this.element.toggleClass("ui-collapsible-collapsed", isCollapse), ui.content.toggleClass("ui-collapsible-content-collapsed", isCollapse).attr("aria-hidden", isCollapse).trigger("updatelayout"), this.options.collapsed = isCollapse, this._trigger(isCollapse ? "collapse" : "expand");
},
expand: function() {
this._handleExpandCollapse(!1);
@ -2008,7 +2005,7 @@
var ui = this._ui;
this.options.enhanced || (ui.placeholder ? (ui.originalHeading.insertBefore(ui.placeholder), ui.placeholder.remove(), ui.heading.remove()) : (ui.status.remove(), ui.heading.removeClass("ui-collapsible-heading ui-collapsible-heading-collapsed").children().contents().unwrap()), ui.anchor.contents().unwrap(), ui.content.contents().unwrap(), this.element.removeClass("ui-collapsible ui-collapsible-collapsed ui-collapsible-themed-content ui-collapsible-inset ui-corner-all"));
}
}), $21.mobile.collapsible.defaults = {
}), $22.mobile.collapsible.defaults = {
expandCueText: " click to expand contents",
collapseCueText: " click to collapse contents",
collapsedIcon: "plus",
@ -2073,9 +2070,9 @@
}, $.mobile.behaviors.addFirstLastClasses));
})(jQuery), jQuery.fn.fieldcontain = function() {
return this.addClass("ui-field-contain");
}, ($22 = jQuery).fn.grid = function(options) {
}, ($23 = jQuery).fn.grid = function(options) {
return this.each(function() {
var iterator, letter, $this = $22(this), o = $22.extend({
var iterator, letter, $this = $23(this), o = $23.extend({
grid: null
}, options), $kids = $this.children(), gridCols = {
solo: 1,
@ -2185,8 +2182,8 @@
if (this._superApply(arguments), this.options.hideDividers) for(idx = (items = this._getChildrenByTagName(this.element[0], "li", "LI")).length - 1; idx > -1; idx--)(item = items[idx]).className.match(rdivider) ? (hideDivider && (item.className = item.className + " ui-screen-hidden"), hideDivider = !0) : item.className.match(rhidden) || (hideDivider = !1);
}
});
})(jQuery), ($23 = jQuery).mobile.nojs = function(target) {
$23(":jqmData(role='nojs')", target).addClass("ui-nojs");
})(jQuery), ($24 = jQuery).mobile.nojs = function(target) {
$24(":jqmData(role='nojs')", target).addClass("ui-nojs");
}, jQuery.mobile.behaviors.formReset = {
_handleFormReset: function() {
this._on(this.element.closest("form"), {
@ -2350,17 +2347,17 @@
});
}
});
})(jQuery), disabledZoom = (initialContent1 = (meta = ($24 = jQuery)("meta[name=viewport]")).attr("content")) + ",maximum-scale=1, user-scalable=no", enabledZoom = initialContent1 + ",maximum-scale=10, user-scalable=yes", disabledInitially = /(user-scalable[\s]*=[\s]*no)|(maximum-scale[\s]*=[\s]*1)[$,\s]/.test(initialContent1), $24.mobile.zoom = $24.extend({}, {
})(jQuery), disabledZoom = (initialContent1 = (meta = ($25 = jQuery)("meta[name=viewport]")).attr("content")) + ",maximum-scale=1, user-scalable=no", enabledZoom = initialContent1 + ",maximum-scale=10, user-scalable=yes", disabledInitially = /(user-scalable[\s]*=[\s]*no)|(maximum-scale[\s]*=[\s]*1)[$,\s]/.test(initialContent1), $25.mobile.zoom = $25.extend({}, {
enabled: !disabledInitially,
locked: !1,
disable: function(lock) {
disabledInitially || $24.mobile.zoom.locked || (meta.attr("content", disabledZoom), $24.mobile.zoom.enabled = !1, $24.mobile.zoom.locked = lock || !1);
disabledInitially || $25.mobile.zoom.locked || (meta.attr("content", disabledZoom), $25.mobile.zoom.enabled = !1, $25.mobile.zoom.locked = lock || !1);
},
enable: function(unlock) {
disabledInitially || $24.mobile.zoom.locked && !0 !== unlock || (meta.attr("content", enabledZoom), $24.mobile.zoom.enabled = !0, $24.mobile.zoom.locked = !1);
disabledInitially || $25.mobile.zoom.locked && !0 !== unlock || (meta.attr("content", enabledZoom), $25.mobile.zoom.enabled = !0, $25.mobile.zoom.locked = !1);
},
restore: function() {
disabledInitially || (meta.attr("content", initialContent1), $24.mobile.zoom.enabled = !0);
disabledInitially || (meta.attr("content", initialContent1), $25.mobile.zoom.enabled = !0);
}
}), (function($, undefined) {
$.widget("mobile.textinput", {
@ -2547,7 +2544,7 @@
this._keySliding && (this._keySliding = !1, this.handle.removeClass("ui-state-active"));
},
_sliderVMouseDown: function(event) {
return this.options.disabled || !(1 === event.which || 0 === event.which || undefined === event.which) || !1 === this._trigger("beforestart", event) || (this.dragging = !0, this.userModified = !1, this.mouseMoved = !1, this.isToggleSwitch && (this.beforeStart = this.element[0].selectedIndex), this.refresh(event), this._trigger("start")), !1;
return !this.options.disabled && !!(1 === event.which || 0 === event.which || undefined === event.which) && !1 !== this._trigger("beforestart", event) && (this.dragging = !0, this.userModified = !1, this.mouseMoved = !1, this.isToggleSwitch && (this.beforeStart = this.element[0].selectedIndex), this.refresh(event), this._trigger("start"), !1);
},
_sliderVMouseUp: function() {
if (this.dragging) return this.dragging = !1, this.isToggleSwitch && (this.handle.addClass("ui-slider-handle-snapping"), this.mouseMoved ? this.userModified ? this.refresh(0 === this.beforeStart ? 1 : 0) : this.refresh(this.beforeStart) : this.refresh(0 === this.beforeStart ? 1 : 0)), this.mouseMoved = !1, this._trigger("stop"), !1;
@ -3060,8 +3057,8 @@
this._setDisabled(!1), this.button.removeClass("ui-state-disabled");
}
}, $.mobile.behaviors.formReset));
})(jQuery), ($25 = jQuery).mobile.links = function(target) {
$25(target).find("a").jqmEnhanceable().filter(":jqmData(rel='popup')[href][href!='']").each(function() {
})(jQuery), ($26 = jQuery).mobile.links = function(target) {
$26(target).find("a").jqmEnhanceable().filter(":jqmData(rel='popup')[href][href!='']").each(function() {
var idref = this.getAttribute("href").substring(1);
idref && (this.setAttribute("aria-haspopup", !0), this.setAttribute("aria-owns", idref), this.setAttribute("aria-expanded", !1));
}).end().not(".ui-btn, :jqmData(role='none'), :jqmData(role='nojs')").addClass("ui-link");
@ -4359,9 +4356,9 @@
this._timer && (window3.clearTimeout(this._timer), this._timer = 0), this._filterItems((this._search && this._search.val() || "").toLowerCase());
}
});
})(jQuery), rDividerListItem = /(^|\s)ui-li-divider(\s|$)/, origDefaultFilterCallback = ($26 = jQuery).mobile.filterable.prototype.options.filterCallback, $26.mobile.filterable.prototype.options.filterCallback = function(index, searchValue) {
})(jQuery), rDividerListItem = /(^|\s)ui-li-divider(\s|$)/, origDefaultFilterCallback = ($27 = jQuery).mobile.filterable.prototype.options.filterCallback, $27.mobile.filterable.prototype.options.filterCallback = function(index, searchValue) {
return !this.className.match(rDividerListItem) && origDefaultFilterCallback.call(this, index, searchValue);
}, $26.widget("mobile.filterable", $26.mobile.filterable, {
}, $27.widget("mobile.filterable", $27.mobile.filterable, {
options: {
filterPlaceholder: "Filter items...",
filterTheme: null
@ -4373,9 +4370,9 @@
"controlgroup",
"listview"
], createHandlers = {};
for(this._super(), $26.extend(this, {
for(this._super(), $27.extend(this, {
_widget: null
}), idx = recognizedWidgets.length - 1; idx > -1; idx--)if (widgetName = recognizedWidgets[idx], $26.mobile[widgetName]) {
}), idx = recognizedWidgets.length - 1; idx > -1; idx--)if (widgetName = recognizedWidgets[idx], $27.mobile[widgetName]) {
if (this._setWidget(elem.data("mobile-" + widgetName))) break;
createHandlers[widgetName + "create"] = "_handleCreate";
}
@ -4403,23 +4400,23 @@
var opts = this.options, updatePlaceholder = !0, textinputOpts = {};
if (!selector) {
if (this._isSearchInternal()) return;
updatePlaceholder = !1, selector = $26("<input data-" + $26.mobile.ns + "type='search' placeholder='" + opts.filterPlaceholder + "'></input>").jqmData("ui-filterable-" + this.uuid + "-internal", !0), $26("<form class='ui-filterable'></form>").append(selector).submit(function(evt) {
updatePlaceholder = !1, selector = $27("<input data-" + $27.mobile.ns + "type='search' placeholder='" + opts.filterPlaceholder + "'></input>").jqmData("ui-filterable-" + this.uuid + "-internal", !0), $27("<form class='ui-filterable'></form>").append(selector).submit(function(evt) {
evt.preventDefault(), selector.blur();
}).insertBefore(this.element), $26.mobile.textinput && (null != this.options.filterTheme && (textinputOpts.theme = opts.filterTheme), selector.textinput(textinputOpts));
}).insertBefore(this.element), $27.mobile.textinput && (null != this.options.filterTheme && (textinputOpts.theme = opts.filterTheme), selector.textinput(textinputOpts));
}
this._super(selector), this._isSearchInternal() && updatePlaceholder && this._search.attr("placeholder", this.options.filterPlaceholder);
},
_setOptions: function(options) {
var ret = this._super(options);
return undefined8 !== options.filterPlaceholder && this._isSearchInternal() && this._search.attr("placeholder", options.filterPlaceholder), undefined8 !== options.filterTheme && this._search && $26.mobile.textinput && this._search.textinput("option", "theme", options.filterTheme), ret;
return undefined8 !== options.filterPlaceholder && this._isSearchInternal() && this._search.attr("placeholder", options.filterPlaceholder), undefined8 !== options.filterTheme && this._search && $27.mobile.textinput && this._search.textinput("option", "theme", options.filterTheme), ret;
},
_destroy: function() {
this._isSearchInternal() && this._search.remove(), this._super();
},
_syncTextInputOptions: function(options) {
var idx, textinputOptions = {};
if (this._isSearchInternal() && $26.mobile.textinput) {
for(idx in $26.mobile.textinput.prototype.options)undefined8 !== options[idx] && ("theme" === idx && null != this.options.filterTheme ? textinputOptions[idx] = this.options.filterTheme : textinputOptions[idx] = options[idx]);
if (this._isSearchInternal() && $27.mobile.textinput) {
for(idx in $27.mobile.textinput.prototype.options)undefined8 !== options[idx] && ("theme" === idx && null != this.options.filterTheme ? textinputOptions[idx] = this.options.filterTheme : textinputOptions[idx] = options[idx]);
this._search.textinput("option", textinputOptions);
}
}

View File

@ -3528,13 +3528,18 @@
return null;
}
}(domEventName10, nativeEvent8) : function(domEventName, nativeEvent) {
var nativeEvent9;
if (isComposing) return "compositionend" === domEventName || !canUseCompositionEvent && isFallbackCompositionEnd(domEventName, nativeEvent) ? (root1 = null, startText = null, fallbackText = null, isComposing = !1, getData()) : null;
if (isComposing) {
if ("compositionend" === domEventName || !canUseCompositionEvent && isFallbackCompositionEnd(domEventName, nativeEvent)) {
var nativeEvent9;
return root1 = null, startText = null, fallbackText = null, isComposing = !1, getData();
}
return null;
}
switch(domEventName){
case "paste":
return null;
case "keypress":
if (!(((nativeEvent9 = nativeEvent).ctrlKey || nativeEvent9.altKey || nativeEvent9.metaKey) && !(nativeEvent9.ctrlKey && nativeEvent9.altKey))) {
if (!(nativeEvent9 = nativeEvent).ctrlKey && !nativeEvent9.altKey && !nativeEvent9.metaKey || nativeEvent9.ctrlKey && nativeEvent9.altKey) {
if (nativeEvent.char && nativeEvent.char.length > 1) return nativeEvent.char;
if (nativeEvent.which) return String.fromCharCode(nativeEvent.which);
}
@ -7122,7 +7127,7 @@
break;
}
return updatePayload;
})(instance, type9, props7, hostContext2.namespace), fiber.updateQueue = updatePayload1, null !== updatePayload1 && markUpdate(workInProgress);
})(instance, type9, props7, hostContext2.namespace), fiber.updateQueue = updatePayload1, (null !== updatePayload1 || 0) && markUpdate(workInProgress);
else {
var type8, props9, rootContainerInstance1, hostContext, internalInstanceHandle, hostContextDev, domElement1, fiber, hostContext1, instance, type9, props7, hostContext2, internalInstanceHandle1, updatePayload1, type10, props8, instance7 = (type8 = type11, props9 = newProps, rootContainerInstance1 = rootContainerInstance, hostContext = currentHostContext, internalInstanceHandle = workInProgress, validateDOMNesting(type8, null, (hostContextDev = hostContext).ancestorInfo), ("string" == typeof props9.children || "number" == typeof props9.children) && validateDOMNesting(null, "" + props9.children, updatedAncestorInfo(hostContextDev.ancestorInfo, type8)), precacheFiberNode(internalInstanceHandle, domElement1 = function(type, props, rootContainerElement, parentNamespace) {
var isCustomComponentTag, domElement, ownerDocument = getOwnerDocumentFromRootContainer(rootContainerElement), namespaceURI = parentNamespace;
@ -9219,7 +9224,7 @@
var lane = requestUpdateLane(current$1), context = function(parentComponent) {
if (!parentComponent) return emptyContextObject;
var fiber4 = get1(parentComponent), parentContext = function(fiber) {
if (!(getNearestMountedFiber(fiber2 = fiber) === fiber2 && 1 === fiber.tag)) throw Error("Expected subtree parent to be a mounted class component. This error is likely caused by a bug in React. Please file an issue.");
if (getNearestMountedFiber(fiber2 = fiber) !== fiber2 || 1 !== fiber.tag) throw Error("Expected subtree parent to be a mounted class component. This error is likely caused by a bug in React. Please file an issue.");
var fiber2, node = fiber;
do {
switch(node.tag){

View File

@ -2,7 +2,7 @@
"collapse_vars": true,
"evaluate": true,
"inline": true,
"passes": 3,
"passes": 4,
"reduce_vars": true,
"side_effects": true,
"unsafe": true,