fix(es/minifier): Don't inline string literals if it's used multiple time (#2748)

swc_ecma_minifier:
 - Don't inline strings because it's simple.
 - Inline short strings.
This commit is contained in:
Donny/강동윤 2021-11-15 14:03:03 +09:00 committed by GitHub
parent 3ebc5c6b69
commit f2c67b8caf
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
35 changed files with 472 additions and 450 deletions

2
Cargo.lock generated
View File

@ -2740,7 +2740,7 @@ dependencies = [
[[package]]
name = "swc_ecma_minifier"
version = "0.50.0"
version = "0.50.1"
dependencies = [
"ahash",
"ansi_term 0.12.1",

View File

@ -4,7 +4,7 @@ function _defineProperties(target, props) {
descriptor.enumerable = descriptor.enumerable || !1, descriptor.configurable = !0, "value" in descriptor && (descriptor.writable = !0), Object.defineProperty(target, descriptor.key, descriptor);
}
}
var C = function() {
var methodName = "method", accessorName = "accessor", tmp = methodName, tmp1 = methodName, tmp2 = accessorName, tmp3 = accessorName, tmp4 = accessorName, tmp5 = accessorName, C = function() {
"use strict";
var Constructor, protoProps, staticProps;
function C() {
@ -14,33 +14,33 @@ var C = function() {
}
return Constructor = C, protoProps = [
{
key: "method",
key: tmp,
value: function() {
}
},
{
key: "accessor",
key: tmp2,
get: function() {
}
},
{
key: "accessor",
key: tmp3,
set: function(v) {
}
}
], staticProps = [
{
key: "method",
key: tmp1,
value: function() {
}
},
{
key: "accessor",
key: tmp4,
get: function() {
}
},
{
key: "accessor",
key: tmp5,
set: function(v) {
}
}

View File

@ -4,7 +4,7 @@ function _defineProperties(target, props) {
descriptor.enumerable = descriptor.enumerable || !1, descriptor.configurable = !0, "value" in descriptor && (descriptor.writable = !0), Object.defineProperty(target, descriptor.key, descriptor);
}
}
var C = function() {
var methodName = "method", accessorName = "accessor", tmp = methodName, tmp1 = methodName, tmp2 = accessorName, tmp3 = accessorName, tmp4 = accessorName, tmp5 = accessorName, C = function() {
"use strict";
var Constructor, protoProps, staticProps;
function C() {
@ -14,33 +14,33 @@ var C = function() {
}
return Constructor = C, protoProps = [
{
key: "method",
key: tmp,
value: function() {
}
},
{
key: "accessor",
key: tmp2,
get: function() {
}
},
{
key: "accessor",
key: tmp3,
set: function(v) {
}
}
], staticProps = [
{
key: "method",
key: tmp1,
value: function() {
}
},
{
key: "accessor",
key: tmp4,
get: function() {
}
},
{
key: "accessor",
key: tmp5,
set: function(v) {
}
}

View File

@ -1,8 +1,8 @@
const _sym = Symbol();
const _sym = Symbol(), _str = "my-fake-sym";
function F() {
}
F.prototype[_sym] = "ok", F.prototype["my-fake-sym"] = "ok";
F.prototype[_sym] = "ok", F.prototype[_str] = "ok";
const inst = new F();
inst["my-fake-sym"], inst[_sym], module.exports.F = F, module.exports.S = _sym;
inst[_str], inst[_sym], module.exports.F = F, module.exports.S = _sym;
const x = require("./lateBoundAssignmentDeclarationSupport4.js"), inst = new x.F();
inst["my-fake-sym"], inst[x.S];

View File

@ -1,8 +1,8 @@
var _sym = Symbol();
var _sym = Symbol(), _str = "my-fake-sym";
function F() {
}
F.prototype[_sym] = "ok", F.prototype["my-fake-sym"] = "ok";
F.prototype[_sym] = "ok", F.prototype[_str] = "ok";
var inst = new F();
inst["my-fake-sym"], inst[_sym], module.exports.F = F, module.exports.S = _sym;
inst[_str], inst[_sym], module.exports.F = F, module.exports.S = _sym;
var x = require("./lateBoundAssignmentDeclarationSupport4.js"), inst = new x.F();
inst["my-fake-sym"], inst[x.S];

View File

@ -1,11 +1,11 @@
const _sym = Symbol();
const _sym = Symbol(), _str = "my-fake-sym";
function F() {
}
F.prototype = {
[_sym]: "ok",
["my-fake-sym"]: "ok"
[_str]: "ok"
};
const inst = new F();
inst["my-fake-sym"], inst[_sym], module.exports.F = F, module.exports.S = _sym;
inst[_str], inst[_sym], module.exports.F = F, module.exports.S = _sym;
const x = require("./lateBoundAssignmentDeclarationSupport5.js"), inst = new x.F();
inst["my-fake-sym"], inst[x.S];

View File

@ -6,12 +6,12 @@ function _defineProperty(obj, key, value) {
writable: !0
}) : obj[key] = value, obj;
}
var _obj, _sym = Symbol();
var _obj, _sym = Symbol(), _str = "my-fake-sym";
function F() {
}
F.prototype = (_defineProperty(_obj = {
}, _sym, "ok"), _defineProperty(_obj, "my-fake-sym", "ok"), _obj);
}, _sym, "ok"), _defineProperty(_obj, _str, "ok"), _obj);
var inst = new F();
inst["my-fake-sym"], inst[_sym], module.exports.F = F, module.exports.S = _sym;
inst[_str], inst[_sym], module.exports.F = F, module.exports.S = _sym;
var x = require("./lateBoundAssignmentDeclarationSupport5.js"), inst = new x.F();
inst["my-fake-sym"], inst[x.S];

View File

@ -1,12 +1,12 @@
const _sym = Symbol();
const _sym = Symbol(), _str = "my-fake-sym";
function F() {
}
F.prototype.defsAClass = !0, Object.defineProperty(F.prototype, "my-fake-sym", {
F.prototype.defsAClass = !0, Object.defineProperty(F.prototype, _str, {
value: "ok"
}), Object.defineProperty(F.prototype, _sym, {
value: "ok"
});
const inst = new F();
inst["my-fake-sym"], inst[_sym], module.exports.F = F, module.exports.S = _sym;
inst[_str], inst[_sym], module.exports.F = F, module.exports.S = _sym;
const x = require("./lateBoundAssignmentDeclarationSupport6.js"), inst = new x.F();
inst["my-fake-sym"], inst[x.S];

View File

@ -1,12 +1,12 @@
var _sym = Symbol();
var _sym = Symbol(), _str = "my-fake-sym";
function F() {
}
F.prototype.defsAClass = !0, Object.defineProperty(F.prototype, "my-fake-sym", {
F.prototype.defsAClass = !0, Object.defineProperty(F.prototype, _str, {
value: "ok"
}), Object.defineProperty(F.prototype, _sym, {
value: "ok"
});
var inst = new F();
inst["my-fake-sym"], inst[_sym], module.exports.F = F, module.exports.S = _sym;
inst[_str], inst[_sym], module.exports.F = F, module.exports.S = _sym;
var x = require("./lateBoundAssignmentDeclarationSupport6.js"), inst = new x.F();
inst["my-fake-sym"], inst[x.S];

View File

@ -1,8 +1,9 @@
const _sym = "my-fake-sym";
export class MyClass {
method() {
this["my-fake-sym"] = "yep", this["my-fake-sym"];
this[_sym] = "yep", this[_sym];
}
constructor(){
this["my-fake-sym"] = "ok";
this[_sym] = "ok";
}
}

View File

@ -4,20 +4,21 @@ function _defineProperties(target, props) {
descriptor.enumerable = descriptor.enumerable || !1, descriptor.configurable = !0, "value" in descriptor && (descriptor.writable = !0), Object.defineProperty(target, descriptor.key, descriptor);
}
}
export var _sym, MyClass = function() {
var _sym = "my-fake-sym";
export var MyClass = function() {
"use strict";
var Constructor, protoProps, staticProps;
function MyClass() {
!function(instance, Constructor) {
if (!(instance instanceof Constructor)) throw new TypeError("Cannot call a class as a function");
}(this, MyClass), this["my-fake-sym"] = "ok";
}(this, MyClass), this[_sym] = "ok";
}
return protoProps = [
return Constructor = MyClass, protoProps = [
{
key: "method",
value: function() {
this["my-fake-sym"] = "yep", this["my-fake-sym"];
this[_sym] = "yep", this[_sym];
}
}
], _defineProperties((Constructor = MyClass).prototype, protoProps), staticProps && _defineProperties(Constructor, staticProps), MyClass;
], _defineProperties(Constructor.prototype, protoProps), staticProps && _defineProperties(Constructor, staticProps), MyClass;
}();

View File

@ -54,8 +54,9 @@ do ;
while (c)
do ;
while (0)
for(;;);
for(;;);
for(var e = "a string"; e;);
do ;
while (e)
"";
do ;
while ("")

View File

@ -116,8 +116,9 @@ do ;
while (c)
do ;
while (0)
for(;;);
for(;;);
for(var e = "a string"; e;);
do ;
while (e)
"";
do ;
while ("")

View File

@ -1,3 +1,4 @@
({
})["21EC2020-3AEA-4069-A2DD-08002B30309D"] = 123, ({
})[12345] = "hello", 12345..toPrecision(0);
let map1 = {
}, guid = "21EC2020-3AEA-4069-A2DD-08002B30309D";
map1[guid] = 123, ({
})[12345] = "hello", "{" + guid + "}", guid.toLowerCase(), 12345..toPrecision(0);

View File

@ -1,3 +1,4 @@
({
})["21EC2020-3AEA-4069-A2DD-08002B30309D"] = 123, ({
})[12345] = "hello", 12345..toPrecision(0);
var map1 = {
}, guid = "21EC2020-3AEA-4069-A2DD-08002B30309D";
map1[guid] = 123, ({
})[12345] = "hello", "{" + guid + "}", guid.toLowerCase(), 12345..toPrecision(0);

View File

@ -6,5 +6,7 @@ function getFalsyPrimitive(x) {
throw "Invalid value";
}
Consts1 || (Consts1 = {
}), getFalsyPrimitive("string"), getFalsyPrimitive("number"), getFalsyPrimitive("boolean"), Consts2 || (Consts2 = {
}), getFalsyPrimitive("string"), getFalsyPrimitive("number"), getFalsyPrimitive("boolean"), getFalsyPrimitive("string"), getFalsyPrimitive("string"), getFalsyPrimitive("number"), getFalsyPrimitive("string");
}), getFalsyPrimitive("string"), getFalsyPrimitive("number"), getFalsyPrimitive("boolean");
const string = "string", number = "number", boolean = "boolean", stringOrBoolean = string || boolean;
Consts2 || (Consts2 = {
}), getFalsyPrimitive(string), getFalsyPrimitive(number), getFalsyPrimitive(boolean), getFalsyPrimitive(string || number), getFalsyPrimitive(stringOrBoolean), getFalsyPrimitive(number || boolean), getFalsyPrimitive(stringOrBoolean || number);

View File

@ -1,4 +1,3 @@
var Consts1, Consts2;
function getFalsyPrimitive(x) {
if ("string" === x) return "";
if ("number" === x) return 0;
@ -6,5 +5,7 @@ function getFalsyPrimitive(x) {
throw "Invalid value";
}
Consts1 || (Consts1 = {
}), getFalsyPrimitive("string"), getFalsyPrimitive("number"), getFalsyPrimitive("boolean"), Consts2 || (Consts2 = {
}), getFalsyPrimitive("string"), getFalsyPrimitive("number"), getFalsyPrimitive("boolean"), getFalsyPrimitive("string"), getFalsyPrimitive("string"), getFalsyPrimitive("number"), getFalsyPrimitive("string");
}), getFalsyPrimitive("string"), getFalsyPrimitive("number"), getFalsyPrimitive("boolean");
var Consts1, Consts2, string = "string", number = "number", boolean = "boolean", stringOrBoolean = string || boolean;
Consts2 || (Consts2 = {
}), getFalsyPrimitive(string), getFalsyPrimitive(number), getFalsyPrimitive(boolean), getFalsyPrimitive(string || number), getFalsyPrimitive(stringOrBoolean), getFalsyPrimitive(number || boolean), getFalsyPrimitive(stringOrBoolean || number);

View File

@ -6,5 +6,7 @@ function getFalsyPrimitive(x) {
throw "Invalid value";
}
Consts1 || (Consts1 = {
}), getFalsyPrimitive("string"), getFalsyPrimitive("number"), getFalsyPrimitive("boolean"), Consts2 || (Consts2 = {
}), getFalsyPrimitive("string"), getFalsyPrimitive("number"), getFalsyPrimitive("boolean"), getFalsyPrimitive("string"), getFalsyPrimitive("string"), getFalsyPrimitive("number"), getFalsyPrimitive("string");
}), getFalsyPrimitive("string"), getFalsyPrimitive("number"), getFalsyPrimitive("boolean");
const string = "string", number = "number", boolean = "boolean", stringOrBoolean = string || boolean;
Consts2 || (Consts2 = {
}), getFalsyPrimitive(string), getFalsyPrimitive(number), getFalsyPrimitive(boolean), getFalsyPrimitive(string || number), getFalsyPrimitive(stringOrBoolean), getFalsyPrimitive(number || boolean), getFalsyPrimitive(stringOrBoolean || number);

View File

@ -1,4 +1,3 @@
var Consts1, Consts2;
function getFalsyPrimitive(x) {
if ("string" === x) return "";
if ("number" === x) return 0;
@ -6,5 +5,7 @@ function getFalsyPrimitive(x) {
throw "Invalid value";
}
Consts1 || (Consts1 = {
}), getFalsyPrimitive("string"), getFalsyPrimitive("number"), getFalsyPrimitive("boolean"), Consts2 || (Consts2 = {
}), getFalsyPrimitive("string"), getFalsyPrimitive("number"), getFalsyPrimitive("boolean"), getFalsyPrimitive("string"), getFalsyPrimitive("string"), getFalsyPrimitive("number"), getFalsyPrimitive("string");
}), getFalsyPrimitive("string"), getFalsyPrimitive("number"), getFalsyPrimitive("boolean");
var Consts1, Consts2, string = "string", number = "number", boolean = "boolean", stringOrBoolean = string || boolean;
Consts2 || (Consts2 = {
}), getFalsyPrimitive(string), getFalsyPrimitive(number), getFalsyPrimitive(boolean), getFalsyPrimitive(string || number), getFalsyPrimitive(stringOrBoolean), getFalsyPrimitive(number || boolean), getFalsyPrimitive(stringOrBoolean || number);

View File

@ -7,7 +7,7 @@ include = ["Cargo.toml", "src/**/*.rs", "src/lists/*.json"]
license = "Apache-2.0/MIT"
name = "swc_ecma_minifier"
repository = "https://github.com/swc-project/swc.git"
version = "0.50.0"
version = "0.50.1"
[features]
debug = ["backtrace"]

View File

@ -143,7 +143,7 @@ where
self.mode.store(i.to_id(), &*init);
}
// No use => doppred
// No use => dropped
if usage.ref_count == 0 {
if init.may_have_side_effects() {
// TODO: Inline partially
@ -166,7 +166,7 @@ where
&& !usage.has_property_mutation))
&& match &**init {
Expr::Lit(lit) => match lit {
Lit::Str(_) => true,
Lit::Str(s) => usage.ref_count == 1 || s.value.len() <= 3,
Lit::Bool(_) | Lit::Null(_) | Lit::Num(_) | Lit::BigInt(_) => true,
Lit::Regex(_) => self.options.unsafe_regexp,
_ => false,

View File

@ -8,26 +8,26 @@
return null;
}(), isSupportObjectConstructor = nativeURLSearchParams && "a=1" === new nativeURLSearchParams({
a: 1
}).toString(), decodesPlusesCorrectly = nativeURLSearchParams && "+" === new nativeURLSearchParams("s=%2B").get("s"), encodesAmpersandsCorrectly = !nativeURLSearchParams || ((ampersandTest = new nativeURLSearchParams()).append("s", " &"), "s=+%26" === ampersandTest.toString()), prototype = URLSearchParamsPolyfill.prototype, iterable = !!(self.Symbol && self.Symbol.iterator);
}).toString(), decodesPlusesCorrectly = nativeURLSearchParams && "+" === new nativeURLSearchParams("s=%2B").get("s"), __URLSearchParams__ = "__URLSearchParams__", encodesAmpersandsCorrectly = !nativeURLSearchParams || ((ampersandTest = new nativeURLSearchParams()).append("s", " &"), "s=+%26" === ampersandTest.toString()), prototype = URLSearchParamsPolyfill.prototype, iterable = !!(self.Symbol && self.Symbol.iterator);
if (!nativeURLSearchParams || !isSupportObjectConstructor || !decodesPlusesCorrectly || !encodesAmpersandsCorrectly) {
prototype.append = function(name, value) {
appendTo(this["__URLSearchParams__"], name, value);
appendTo(this[__URLSearchParams__], name, value);
}, prototype.delete = function(name) {
delete this["__URLSearchParams__"][name];
delete this[__URLSearchParams__][name];
}, prototype.get = function(name) {
var dict = this["__URLSearchParams__"];
var dict = this[__URLSearchParams__];
return this.has(name) ? dict[name][0] : null;
}, prototype.getAll = function(name) {
var dict = this["__URLSearchParams__"];
var dict = this[__URLSearchParams__];
return this.has(name) ? dict[name].slice(0) : [];
}, prototype.has = function(name) {
return hasOwnProperty(this["__URLSearchParams__"], name);
return hasOwnProperty(this[__URLSearchParams__], name);
}, prototype.set = function(name, value) {
this["__URLSearchParams__"][name] = [
this[__URLSearchParams__][name] = [
"" + value
];
}, prototype.toString = function() {
var i, key, name, value, dict = this["__URLSearchParams__"], query = [];
var i, key, name, value, dict = this[__URLSearchParams__], query = [];
for(key in dict)for(i = 0, name = encode(key), value = dict[key]; i < value.length; i++)query.push(name + "=" + encode(value[i]));
return query.join("&");
}, decodesPlusesCorrectly && nativeURLSearchParams && !isSupportObjectConstructor && self.Proxy ? (propValue = new Proxy(nativeURLSearchParams, {
@ -74,7 +74,7 @@
}, iterable && (USPProto[self.Symbol.iterator] = USPProto[self.Symbol.iterator] || USPProto.entries);
}
function URLSearchParamsPolyfill(search) {
((search = search || "") instanceof URLSearchParams || search instanceof URLSearchParamsPolyfill) && (search = search.toString()), this["__URLSearchParams__"] = parseToDict(search);
((search = search || "") instanceof URLSearchParams || search instanceof URLSearchParamsPolyfill) && (search = search.toString()), this[__URLSearchParams__] = parseToDict(search);
}
function encode(str) {
var replace = {

View File

@ -176,6 +176,7 @@
for(; !token(peek());)next1();
return slice(index, position);
}
var MS = "-ms-", MOZ = "-moz-", WEBKIT = "-webkit-", COMMENT = "comm", Enum_RULESET = "rule", DECLARATION = "decl";
function serialize(children, callback) {
for(var output = "", length = Utility_sizeof(children), i = 0; i < length; i++)output += callback(children[i], i, children, callback) || "";
return output;
@ -183,11 +184,11 @@
function stringify(element, index, children, callback) {
switch(element.type){
case "@import":
case "decl":
case DECLARATION:
return element.return = element.return || element.value;
case "comm":
case COMMENT:
return "";
case "rule":
case Enum_RULESET:
element.value = element.props.join(",");
}
return Utility_strlen(children = serialize(element.children, callback)) ? element.return = element.value + "{" + children + "}" : "";
@ -196,7 +197,7 @@
var value1;
switch((((length << 2 ^ Utility_charat(value1 = value, 0)) << 2 ^ Utility_charat(value1, 1)) << 2 ^ Utility_charat(value1, 2)) << 2 ^ Utility_charat(value1, 3)){
case 5103:
return "-webkit-print-" + value + value;
return WEBKIT + "print-" + value + value;
case 5737:
case 4201:
case 3177:
@ -222,44 +223,44 @@
case 5365:
case 5621:
case 3829:
return "-webkit-" + value + value;
return WEBKIT + value + value;
case 5349:
case 4246:
case 4810:
case 6968:
case 2756:
return "-webkit-" + value + "-moz-" + value + "-ms-" + value + value;
return WEBKIT + value + MOZ + value + MS + value + value;
case 6828:
case 4268:
return "-webkit-" + value + "-ms-" + value + value;
return WEBKIT + value + MS + value + value;
case 6165:
return "-webkit-" + value + "-ms-flex-" + value + value;
return WEBKIT + value + MS + "flex-" + value + value;
case 5187:
return "-webkit-" + value + replace(value, /(\w+).+(:[^]+)/, "-webkit-box-$1$2-ms-flex-$1$2") + value;
return WEBKIT + value + replace(value, /(\w+).+(:[^]+)/, WEBKIT + "box-$1$2" + MS + "flex-$1$2") + value;
case 5443:
return "-webkit-" + value + "-ms-flex-item-" + replace(value, /flex-|-self/, "") + value;
return WEBKIT + value + MS + "flex-item-" + replace(value, /flex-|-self/, "") + value;
case 4675:
return "-webkit-" + value + "-ms-flex-line-pack" + replace(value, /align-content|flex-|-self/, "") + value;
return WEBKIT + value + MS + "flex-line-pack" + replace(value, /align-content|flex-|-self/, "") + value;
case 5548:
return "-webkit-" + value + "-ms-" + replace(value, "shrink", "negative") + value;
return WEBKIT + value + MS + replace(value, "shrink", "negative") + value;
case 5292:
return "-webkit-" + value + "-ms-" + replace(value, "basis", "preferred-size") + value;
return WEBKIT + value + MS + replace(value, "basis", "preferred-size") + value;
case 6060:
return "-webkit-box-" + replace(value, "-grow", "") + "-webkit-" + value + "-ms-" + replace(value, "grow", "positive") + value;
return WEBKIT + "box-" + replace(value, "-grow", "") + WEBKIT + value + MS + replace(value, "grow", "positive") + value;
case 4554:
return "-webkit-" + replace(value, /([^-])(transform)/g, "$1-webkit-$2") + value;
return WEBKIT + replace(value, /([^-])(transform)/g, "$1" + WEBKIT + "$2") + value;
case 6187:
return replace(replace(replace(value, /(zoom-|grab)/, "-webkit-$1"), /(image-set)/, "-webkit-$1"), value, "") + value;
return replace(replace(replace(value, /(zoom-|grab)/, WEBKIT + "$1"), /(image-set)/, WEBKIT + "$1"), value, "") + value;
case 5495:
case 3959:
return replace(value, /(image-set\([^]*)/, "-webkit-$1$`$1");
return replace(value, /(image-set\([^]*)/, WEBKIT + "$1$`$1");
case 4968:
return replace(replace(value, /(.+:)(flex-)?(.*)/, "-webkit-box-pack:$3-ms-flex-pack:$3"), /s.+-b[^;]+/, "justify") + "-webkit-" + value + value;
return replace(replace(value, /(.+:)(flex-)?(.*)/, WEBKIT + "box-pack:$3" + MS + "flex-pack:$3"), /s.+-b[^;]+/, "justify") + WEBKIT + value + value;
case 4095:
case 3583:
case 4068:
case 2532:
return replace(value, /(.+)-inline(.+)/, "-webkit-$1$2") + value;
return replace(value, /(.+)-inline(.+)/, WEBKIT + "$1$2") + value;
case 8116:
case 7059:
case 5753:
@ -276,7 +277,7 @@
case 109:
if (45 !== Utility_charat(value, length + 4)) break;
case 102:
return replace(value, /(.+:)(.+)-([^]+)/, "$1-webkit-$2-$3$1-moz-" + (108 == Utility_charat(value, length + 3) ? "$3" : "$2-$3")) + value;
return replace(value, /(.+:)(.+)-([^]+)/, "$1" + WEBKIT + "$2-$3$1" + MOZ + (108 == Utility_charat(value, length + 3) ? "$3" : "$2-$3")) + value;
case 115:
return ~indexof(value, "stretch") ? prefix(replace(value, "stretch", "fill-available"), length) + value : value;
}
@ -286,21 +287,21 @@
case 6444:
switch(Utility_charat(value, Utility_strlen(value) - 3 - (~indexof(value, "!important") && 10))){
case 107:
return replace(value, ":", ":-webkit-") + value;
return replace(value, ":", ":" + WEBKIT) + value;
case 101:
return replace(value, /(.+:)([^;!]+)(;|!.+)?/, "$1-webkit-" + (45 === Utility_charat(value, 14) ? "inline-" : "") + "box$3$1-webkit-$2$3$1-ms-$2box$3") + value;
return replace(value, /(.+:)([^;!]+)(;|!.+)?/, "$1" + WEBKIT + (45 === Utility_charat(value, 14) ? "inline-" : "") + "box$3$1" + WEBKIT + "$2$3$1" + MS + "$2box$3") + value;
}
break;
case 5936:
switch(Utility_charat(value, length + 11)){
case 114:
return "-webkit-" + value + "-ms-" + replace(value, /[svh]\w+-[tblr]{2}/, "tb") + value;
return WEBKIT + value + MS + replace(value, /[svh]\w+-[tblr]{2}/, "tb") + value;
case 108:
return "-webkit-" + value + "-ms-" + replace(value, /[svh]\w+-[tblr]{2}/, "tb-rl") + value;
return WEBKIT + value + MS + replace(value, /[svh]\w+-[tblr]{2}/, "tb-rl") + value;
case 45:
return "-webkit-" + value + "-ms-" + replace(value, /[svh]\w+-[tblr]{2}/, "lr") + value;
return WEBKIT + value + MS + replace(value, /[svh]\w+-[tblr]{2}/, "lr") + value;
}
return "-webkit-" + value + "-ms-" + value + value;
return WEBKIT + value + MS + value + value;
}
return value;
}
@ -388,13 +389,13 @@
for(var post = offset - 1, rule = 0 === offset ? rules : [
""
], size = Utility_sizeof(rule), i = 0, j = 0, k = 0; i < index; ++i)for(var x = 0, y = Utility_substr(value, post + 1, post = abs(j = points[i])), z = value; x < size; ++x)(z = trim(j > 0 ? rule[x] + " " + y : replace(y, /&\f/g, rule[x]))) && (props[k++] = z);
return node1(value, root, parent, 0 === offset ? "rule" : type, props, children, length);
return node1(value, root, parent, 0 === offset ? Enum_RULESET : type, props, children, length);
}
function comment(value, root, parent) {
return node1(value, root, parent, "comm", Utility_from(character1), Utility_substr(value, 2, -2), 0);
return node1(value, root, parent, COMMENT, Utility_from(character1), Utility_substr(value, 2, -2), 0);
}
function declaration(value, root, parent, length) {
return node1(value, root, parent, "decl", Utility_substr(value, 0, length), Utility_substr(value, length + 1, -1), length);
return node1(value, root, parent, DECLARATION, Utility_substr(value, 0, length), Utility_substr(value, length + 1, -1), length);
}
var identifierWithPointTracking = function(begin, points, index) {
for(var previous = 0, character = 0;;){
@ -437,14 +438,14 @@
}, defaultStylisPlugins = [
function(element, index, children, callback1) {
if (!element.return) switch(element.type){
case "decl":
case DECLARATION:
element.return = prefix(element.value, element.length);
break;
case "@keyframes":
return serialize([
copy(replace(element.value, "@", "@-webkit-"), element, "")
copy(replace(element.value, "@", "@" + WEBKIT), element, "")
], callback1);
case "rule":
case Enum_RULESET:
if (element.length) return (function(array, callback) {
return array.map(callback).join("");
})(element.props, function(value) {
@ -453,13 +454,13 @@
case ":read-only":
case ":read-write":
return serialize([
copy(replace(value, /:(read-\w+)/, ":-moz-$1"), element, "")
copy(replace(value, /:(read-\w+)/, ":" + MOZ + "$1"), element, "")
], callback1);
case "::placeholder":
return serialize([
copy(replace(value, /:(plac\w+)/, ":-webkit-input-$1"), element, ""),
copy(replace(value, /:(plac\w+)/, ":-moz-$1"), element, ""),
copy(replace(value, /:(plac\w+)/, "-ms-input-$1"), element, "")
copy(replace(value, /:(plac\w+)/, ":" + WEBKIT + "input-$1"), element, ""),
copy(replace(value, /:(plac\w+)/, ":" + MOZ + "$1"), element, ""),
copy(replace(value, /:(plac\w+)/, MS + "input-$1"), element, "")
], callback1);
}
return "";

View File

@ -2577,7 +2577,7 @@
}
}
exports.wrap = wrap;
var ContinueSentinel = {
var GenStateSuspendedStart = "suspendedStart", GenStateExecuting = "executing", GenStateCompleted = "completed", ContinueSentinel = {
};
function Generator() {
}
@ -2632,10 +2632,10 @@
};
}
function makeInvokeMethod(innerFn, self, context) {
var state = "suspendedStart";
var state = GenStateSuspendedStart;
return function(method, arg) {
if ("executing" === state) throw new Error("Generator is already running");
if ("completed" === state) {
if (state === GenStateExecuting) throw new Error("Generator is already running");
if (state === GenStateCompleted) {
if ("throw" === method) throw arg;
return doneResult();
}
@ -2650,19 +2650,19 @@
}
if ("next" === context.method) context.sent = context._sent = context.arg;
else if ("throw" === context.method) {
if ("suspendedStart" === state) throw state = "completed", context.arg;
if (state === GenStateSuspendedStart) throw state = GenStateCompleted, context.arg;
context.dispatchException(context.arg);
} else "return" === context.method && context.abrupt("return", context.arg);
state = "executing";
state = GenStateExecuting;
var record = tryCatch(innerFn, self, context);
if ("normal" === record.type) {
if (state = context.done ? "completed" : "suspendedYield", record.arg === ContinueSentinel) continue;
if (state = context.done ? GenStateCompleted : "suspendedYield", record.arg === ContinueSentinel) continue;
return {
value: record.arg,
done: context.done
};
}
"throw" === record.type && (state = "completed", context.method = "throw", context.arg = record.arg);
"throw" === record.type && (state = GenStateCompleted, context.method = "throw", context.arg = record.arg);
}
};
}
@ -6666,12 +6666,12 @@
return classCallCheck_default()(this, Exception), _this = _super.call(this, m), defineProperty_default()(assertThisInitialized_default()(_this), "code", void 0), _this.code = code, Object.setPrototypeOf(assertThisInitialized_default()(_this), Exception.prototype), _this;
}
return Exception;
}(wrapNativeSuper_default()(Error));
}(wrapNativeSuper_default()(Error)), ERROR_DESC = "This may mean that the user has declined camera access, or the browser does not support media APIs. If you are running in iOS, you must use Safari.";
function enumerateDevices() {
try {
return navigator.mediaDevices.enumerateDevices();
} catch (err) {
var error = new Exception_Exception("enumerateDevices is not defined. ".concat("This may mean that the user has declined camera access, or the browser does not support media APIs. If you are running in iOS, you must use Safari."), -1);
var error = new Exception_Exception("enumerateDevices is not defined. ".concat(ERROR_DESC), -1);
return Promise.reject(error);
}
}
@ -6679,7 +6679,7 @@
try {
return navigator.mediaDevices.getUserMedia(constraints);
} catch (err) {
var error = new Exception_Exception("getUserMedia is not defined. ".concat("This may mean that the user has declined camera access, or the browser does not support media APIs. If you are running in iOS, you must use Safari."), -1);
var error = new Exception_Exception("getUserMedia is not defined. ".concat(ERROR_DESC), -1);
return Promise.reject(error);
}
}

View File

@ -208,7 +208,7 @@
"responsive" === layout ? (wrapperStyle.display = "block", wrapperStyle.position = "relative", hasSizer = !0, sizerStyle.paddingTop = paddingTop) : "intrinsic" === layout ? (wrapperStyle.display = "inline-block", wrapperStyle.position = "relative", wrapperStyle.maxWidth = "100%", hasSizer = !0, sizerStyle.maxWidth = "100%", sizerSvg = "<svg width=\"".concat(widthInt, "\" height=\"").concat(heightInt, "\" xmlns=\"http://www.w3.org/2000/svg\" version=\"1.1\"/>")) : "fixed" === layout && (wrapperStyle.display = "inline-block", wrapperStyle.position = "relative", wrapperStyle.width = widthInt, wrapperStyle.height = heightInt);
}
var imgAttributes = {
src: "data:image/gif;base64,R0lGODlhAQABAIAAAAAAAP///yH5BAEAAAAALAAAAAABAAEAAAIBRAA7",
src: emptyDataURL,
srcSet: void 0,
sizes: void 0
};
@ -250,7 +250,7 @@
setRef(img1), (function(img, src, layout, placeholder, onLoadingComplete) {
if (img) {
var handleLoad = function() {
"data:image/gif;base64,R0lGODlhAQABAIAAAAAAAP///yH5BAEAAAAALAAAAAABAAEAAAIBRAA7" !== img.src && ("decode" in img ? img.decode() : Promise.resolve()).catch(function() {
img.src !== emptyDataURL && ("decode" in img ? img.decode() : Promise.resolve()).catch(function() {
}).then(function() {
if ("blur" === placeholder && (img.style.filter = "none", img.style.backgroundSize = "none", img.style.backgroundImage = "none"), loadedImageURLs.add(src), onLoadingComplete) {
var naturalWidth = img.naturalWidth, naturalHeight = img.naturalHeight;
@ -325,7 +325,7 @@
}
var loadedImageURLs = new Set();
new Map();
var loaders = new Map([
var emptyDataURL = "data:image/gif;base64,R0lGODlhAQABAIAAAAAAAP///yH5BAEAAAAALAAAAAABAAEAAAIBRAA7", loaders = new Map([
[
"default",
function(param) {

View File

@ -37,11 +37,11 @@ jQuery.support = (function() {
focusin: !0
})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, body = document.getElementsByTagName("body")[0];
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) || {
width: "4px"
}).width, (marginDiv = div.appendChild(document.createElement("div"))).style.cssText = div.style.cssText = "padding:0;margin:0;border:0;display:block;box-sizing:content-box;-moz-box-sizing:content-box;-webkit-box-sizing:content-box;", 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 = "padding:0;margin:0;border:0;display:block;box-sizing:content-box;-moz-box-sizing:content-box;-webkit-box-sizing:content-box;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);
}).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;
})();

View File

@ -735,7 +735,7 @@
}
function createInjector(modulesToLoad1) {
var INSTANTIATING = {
}, path = [], loadedModules = new HashMap(), providerCache = {
}, providerSuffix = "Provider", path = [], loadedModules = new HashMap(), providerCache = {
$provide: {
provider: supportObject(provider1),
factory: supportObject(factory1),
@ -754,7 +754,7 @@
assertNotHasOwnProperty(name, "constant"), providerCache[name] = value, instanceCache[name] = value;
}),
decorator: function(serviceName, decorFn) {
var origProvider = providerInjector.get(serviceName + "Provider"), orig$get = origProvider.$get;
var origProvider = providerInjector.get(serviceName + providerSuffix), orig$get = origProvider.$get;
origProvider.$get = function() {
var origInstance = instanceInjector.invoke(orig$get, origProvider);
return instanceInjector.invoke(decorFn, null, {
@ -767,7 +767,7 @@
throw $injectorMinErr1("unpr", "Unknown provider: {0}", path.join(" <- "));
}), instanceCache = {
}, instanceInjector = instanceCache.$injector = createInternalInjector(instanceCache, function(servicename) {
var provider = providerInjector.get(servicename + "Provider");
var provider = providerInjector.get(servicename + providerSuffix);
return instanceInjector.invoke(provider.$get, provider);
});
return forEach(loadModules(modulesToLoad1), function(fn) {
@ -781,7 +781,7 @@
}
function provider1(name, provider_) {
if (assertNotHasOwnProperty(name, "service"), (isFunction(provider_) || isArray(provider_)) && (provider_ = providerInjector.instantiate(provider_)), !provider_.$get) throw $injectorMinErr1("pget", "Provider '{0}' must define $get factory method.", name);
return providerCache[name + "Provider"] = provider_;
return providerCache[name + providerSuffix] = provider_;
}
function factory1(name, factoryFn) {
return provider1(name, {
@ -835,7 +835,7 @@
get: getService,
annotate: annotate,
has: function(name) {
return providerCache.hasOwnProperty(name + "Provider") || cache.hasOwnProperty(name);
return providerCache.hasOwnProperty(name + providerSuffix) || cache.hasOwnProperty(name);
}
};
}
@ -1049,9 +1049,9 @@
var $compileMinErr = minErr("$compile");
function $CompileProvider($provide, $$sanitizeUriProvider) {
var hasDirectives = {
}, COMMENT_DIRECTIVE_REGEXP = /^\s*directive\:\s*([\d\w\-_]+)\s+(.*)$/, CLASS_DIRECTIVE_REGEXP = /(([\d\w\-_]+)(?:\:([^;]+))?;?)/, EVENT_HANDLER_ATTR_REGEXP = /^(on[a-z]+|formaction)$/;
}, Suffix = "Directive", COMMENT_DIRECTIVE_REGEXP = /^\s*directive\:\s*([\d\w\-_]+)\s+(.*)$/, CLASS_DIRECTIVE_REGEXP = /(([\d\w\-_]+)(?:\:([^;]+))?;?)/, EVENT_HANDLER_ATTR_REGEXP = /^(on[a-z]+|formaction)$/;
this.directive = function registerDirective(name, directiveFactory1) {
return assertNotHasOwnProperty(name, "directive"), isString(name) ? (assertArg(directiveFactory1, "directiveFactory"), hasDirectives.hasOwnProperty(name) || (hasDirectives[name] = [], $provide.factory(name + "Directive", [
return assertNotHasOwnProperty(name, "directive"), isString(name) ? (assertArg(directiveFactory1, "directiveFactory"), hasDirectives.hasOwnProperty(name) || (hasDirectives[name] = [], $provide.factory(name + Suffix, [
"$injector",
"$exceptionHandler",
function($injector, $exceptionHandler) {
@ -1326,7 +1326,7 @@
function addDirective(tDirectives, name, location, maxPriority, ignoreDirective, startAttrName, endAttrName) {
if (name === ignoreDirective) return null;
var match = null;
if (hasDirectives.hasOwnProperty(name)) for(var directive, directives = $injector.get(name + "Directive"), i = 0, ii = directives.length; i < ii; i++)try {
if (hasDirectives.hasOwnProperty(name)) for(var directive, directives = $injector.get(name + Suffix), i = 0, ii = directives.length; i < ii; i++)try {
directive = directives[i], (maxPriority === undefined || maxPriority > directive.priority) && -1 != directive.restrict.indexOf(location) && (startAttrName && (directive = inherit(directive, {
$$start: startAttrName,
$$end: endAttrName
@ -3226,8 +3226,9 @@
this.$get = valueFn1(window1);
}
function $FilterProvider($provide) {
var suffix = "Filter";
function register(name, factory) {
if (!isObject(name)) return $provide.factory(name + "Filter", factory);
if (!isObject(name)) return $provide.factory(name + suffix, factory);
var filters = {
};
return forEach(name, function(filter, key) {
@ -3238,7 +3239,7 @@
"$injector",
function($injector) {
return function(name) {
return $injector.get(name + "Filter");
return $injector.get(name + suffix);
};
}
], register("currency", currencyFilter), register("date", dateFilter), register("filter", filterFilter), register("json", jsonFilter), register("limitTo", limitToFilter), register("lowercase", lowercaseFilter), register("number", numberFilter), register("orderBy", orderByFilter), register("uppercase", uppercaseFilter);
@ -4060,7 +4061,7 @@
"$parse",
"$animate",
function($parse, $animate) {
var ngRepeatMinErr = minErr("ngRepeat");
var NG_REMOVED = "$$NG_REMOVED", ngRepeatMinErr = minErr("ngRepeat");
return {
transclude: "element",
priority: 1000,
@ -4097,13 +4098,13 @@
id: trackById
}, nextBlockMap[trackById] = !1;
for(key in lastBlockMap)lastBlockMap.hasOwnProperty(key) && (elementsToRemove = getBlockElements((block1 = lastBlockMap[key]).clone), $animate.leave(elementsToRemove), forEach(elementsToRemove, function(element) {
element["$$NG_REMOVED"] = !0;
element[NG_REMOVED] = !0;
}), block1.scope.$destroy());
for(index = 0, length = collectionKeys.length; index < length; index++){
if (key = collection === collectionKeys ? index : collectionKeys[index], value = collection[key], block1 = nextBlockOrder[index], nextBlockOrder[index - 1] && (previousNode = getBlockEnd(nextBlockOrder[index - 1])), block1.scope) {
childScope = block1.scope, nextNode = previousNode;
do nextNode = nextNode.nextSibling;
while (nextNode && nextNode["$$NG_REMOVED"])
while (nextNode && nextNode[NG_REMOVED])
getBlockStart(block1) != nextNode && $animate.move(getBlockElements(block1.clone), null, jqLite(previousNode)), previousNode = getBlockEnd(block1);
} else childScope = $scope.$new();
childScope[valueIdentifier] = value, keyIdentifier && (childScope[keyIdentifier] = key), childScope.$index = index, childScope.$first = 0 === index, childScope.$last = index === arrayLength - 1, childScope.$middle = !(childScope.$first || childScope.$last), childScope.$odd = !(childScope.$even = (1 & index) == 0), block1.scope || $transclude(childScope, function(clone) {
@ -4403,7 +4404,7 @@
interpolateFn || attr1.$set("value", element9.text());
}
return function(scope, element, attr) {
var parent = element.parent(), selectCtrl = parent.data("$selectController") || parent.parent().data("$selectController");
var selectCtrlName = "$selectController", parent = element.parent(), selectCtrl = parent.data(selectCtrlName) || parent.parent().data(selectCtrlName);
selectCtrl && selectCtrl.databound ? element.prop("selected", !1) : selectCtrl = nullSelectCtrl, interpolateFn ? scope.$watch(interpolateFn, function(newVal, oldVal) {
attr.$set("value", newVal), newVal !== oldVal && selectCtrl.removeOption(oldVal), selectCtrl.addOption(newVal);
}) : selectCtrl.addOption(attr.value), element.on("$destroy", function() {

View File

@ -1,6 +1,6 @@
!function(window1, undefined1) {
var readyList, rootjQuery1, document1 = window1.document, location = window1.location, _jQuery = window1.jQuery, _$ = window1.$, class2type = {
}, core_deletedIds = [], core_concat = core_deletedIds.concat, core_push = core_deletedIds.push, core_slice = core_deletedIds.slice, core_indexOf = core_deletedIds.indexOf, core_toString = class2type.toString, core_hasOwn = class2type.hasOwnProperty, core_trim = "1.9.1".trim, jQuery = function(selector, context) {
var readyList, rootjQuery1, core_strundefined = "undefined", document1 = window1.document, location = window1.location, _jQuery = window1.jQuery, _$ = window1.$, class2type = {
}, core_deletedIds = [], core_version = "1.9.1", core_concat = core_deletedIds.concat, core_push = core_deletedIds.push, core_slice = core_deletedIds.slice, core_indexOf = core_deletedIds.indexOf, core_toString = class2type.toString, core_hasOwn = class2type.hasOwnProperty, core_trim = core_version.trim, jQuery = function(selector, context) {
return new jQuery.fn.init(selector, context, rootjQuery1);
}, core_pnum = /[+-]?(?:\d*\.|)\d+(?:[eE][+-]?\d+|)/.source, core_rnotwhite = /\S+/g, rtrim1 = /^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g, rquickExpr1 = /^(?:(<[\w\W]+>)[^>]*|#([\w-]*))$/, rsingleTag = /^<(\w+)\s*\/?>(?:<\/\1>|)$/, rvalidchars = /^[\],:{}\s]*$/, rvalidbraces = /(?:^|:|,)(?:\s*\[)+/g, rvalidescape = /\\(?:["\\\/bfnrt]|u[\da-fA-F]{4})/g, rvalidtokens = /"[^"\\\r\n]*"|true|false|null|-?(?:\d+\.|)\d+(?:[eE][+-]?\d+|)/g, rmsPrefix = /^-ms-/, rdashAlpha = /-([\da-z])/gi, completed = function(event) {
(document1.addEventListener || "load" === event.type || "complete" === document1.readyState) && (detach(), jQuery.ready());
@ -12,7 +12,7 @@
return !jQuery.isWindow(obj) && (1 === obj.nodeType && !!length || "array" === type || "function" !== type && (0 === length || "number" == typeof length && length > 0 && length - 1 in obj));
}
jQuery.fn = jQuery.prototype = {
jquery: "1.9.1",
jquery: core_version,
constructor: jQuery,
init: function(selector, context, rootjQuery) {
var match, elem;
@ -437,12 +437,12 @@
focusin: !0
})div.setAttribute(eventName = "on" + i, "t"), support[i + "Bubbles"] = eventName in window1 || !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, body = document1.getElementsByTagName("body")[0];
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 = document1.getElementsByTagName("body")[0];
body && ((container = document1.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, window1.getComputedStyle && (support.pixelPosition = "1%" !== (window1.getComputedStyle(div, null) || {
}).top, support.boxSizingReliable = "4px" === (window1.getComputedStyle(div, null) || {
width: "4px"
}).width, (marginDiv = div.appendChild(document1.createElement("div"))).style.cssText = div.style.cssText = "padding:0;margin:0;border:0;display:block;box-sizing:content-box;-moz-box-sizing:content-box;-webkit-box-sizing:content-box;", marginDiv.style.marginRight = marginDiv.style.width = "0", div.style.width = "1px", support.reliableMarginRight = !parseFloat((window1.getComputedStyle(marginDiv, null) || {
}).marginRight)), void 0 !== div.style.zoom && (div.innerHTML = "", div.style.cssText = "padding:0;margin:0;border:0;display:block;box-sizing:content-box;-moz-box-sizing:content-box;-webkit-box-sizing:content-box;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);
}).width, (marginDiv = div.appendChild(document1.createElement("div"))).style.cssText = div.style.cssText = divReset, marginDiv.style.marginRight = marginDiv.style.width = "0", div.style.width = "1px", support.reliableMarginRight = !parseFloat((window1.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;
})();
var rbrace = /(?:\{[\s\S]*\}|\[[\s\S]*\])$/, rmultiDash = /([A-Z])/g;
@ -493,7 +493,7 @@
jQuery.extend({
cache: {
},
expando: "jQuery" + ("1.9.1" + Math.random()).replace(/\D/g, ""),
expando: "jQuery" + (core_version + Math.random()).replace(/\D/g, ""),
noData: {
embed: !0,
object: "clsid:D27CDB6E-AE6D-11cf-96B8-444553540000",
@ -650,7 +650,7 @@
jQuery(this).toggleClass(value.call(this, i, this.className, stateVal), stateVal);
}) : this.each(function() {
if ("string" === type) for(var className, i = 0, self = jQuery(this), state = stateVal, classNames = value.match(core_rnotwhite) || []; className = classNames[i++];)state = isBool ? state : !self.hasClass(className), self[state ? "addClass" : "removeClass"](className);
else ("undefined" === type || "boolean" === type) && (this.className && jQuery._data(this, "__className__", this.className), this.className = this.className || !1 === value ? "" : jQuery._data(this, "__className__") || "");
else (type === core_strundefined || "boolean" === type) && (this.className && jQuery._data(this, "__className__", this.className), this.className = this.className || !1 === value ? "" : jQuery._data(this, "__className__") || "");
});
},
hasClass: function(selector) {
@ -693,12 +693,12 @@
attr: function(elem, name, value) {
var hooks, notxml, ret, nType = elem.nodeType;
if (elem && 3 !== nType && 8 !== nType && 2 !== nType) {
if (void 0 === elem.getAttribute) return jQuery.prop(elem, name, value);
if (typeof elem.getAttribute === core_strundefined) return jQuery.prop(elem, name, value);
if ((notxml = 1 !== nType || !jQuery.isXMLDoc(elem)) && (name = name.toLowerCase(), hooks = jQuery.attrHooks[name] || (rboolean.test(name) ? boolHook : nodeHook)), value !== undefined1) if (null === value) jQuery.removeAttr(elem, name);
else if (hooks && notxml && "set" in hooks && undefined1 !== (ret = hooks.set(elem, value, name))) return ret;
else return elem.setAttribute(name, value + ""), value;
else if (hooks && notxml && "get" in hooks && null !== (ret = hooks.get(elem, name))) return ret;
else return void 0 !== elem.getAttribute && (ret = elem.getAttribute(name)), null == ret ? undefined1 : ret;
else return typeof elem.getAttribute !== core_strundefined && (ret = elem.getAttribute(name)), null == ret ? undefined1 : ret;
}
},
removeAttr: function(elem, value) {
@ -847,6 +847,7 @@
var tmp, events, t, handleObjIn, special, eventHandle, handleObj, handlers, type, namespaces, origType, elemData = jQuery._data(null);
if (elemData) for(handler.handler && (handler = (handleObjIn = handler).handler, selector = handleObjIn.selector), handler.guid || (handler.guid = jQuery.guid++), (events = elemData.events) || (events = elemData.events = {
}), (eventHandle = elemData.handle) || ((eventHandle = elemData.handle = function(e) {
return "function" === core_strundefined || e && jQuery.event.triggered === e.type ? undefined1 : jQuery.event.dispatch.apply(eventHandle.elem, arguments);
}).elem = null), t = (types = (types || "").match(core_rnotwhite) || [
""
]).length; t--;)type = origType = (tmp = rtypenamespace.exec(types[t]) || [])[1], namespaces = (tmp[2] || "").split(".").sort(), special = jQuery.event.special[type] || {
@ -1001,7 +1002,7 @@
elem.removeEventListener && elem.removeEventListener(type, handle, !1);
} : function(elem, type, handle) {
var name = "on" + type;
elem.detachEvent && (void 0 === elem[name] && (elem[name] = null), elem.detachEvent(name, handle));
elem.detachEvent && (typeof elem[name] === core_strundefined && (elem[name] = null), elem.detachEvent(name, handle));
}, jQuery.Event = function(src, props) {
if (!(this instanceof jQuery.Event)) return new jQuery.Event(src, props);
src && src.type ? (this.originalEvent = src, this.type = src.type, this.isDefaultPrevented = src.defaultPrevented || !1 === src.returnValue || src.getPreventDefault && src.getPreventDefault() ? returnTrue : returnFalse) : this.type = src, props && jQuery.extend(this, props), this.timeStamp = src && src.timeStamp || jQuery.now(), this[jQuery.expando] = !0;
@ -1137,7 +1138,7 @@
}
}), (function(window, undefined) {
var i1, cachedruns, Expr, getText, isXML, compile, hasDuplicate, outermostContext, setDocument, document, docElem, documentIsXML, rbuggyQSA, rbuggyMatches, matches1, contains, sortOrder, expando = "sizzle" + -new Date(), preferredDoc = window.document, support = {
}, dirruns = 0, done = 0, classCache = createCache(), tokenCache = createCache(), compilerCache = createCache(), arr = [], pop = arr.pop, push = arr.push, slice = arr.slice, indexOf = arr.indexOf || function(elem) {
}, dirruns = 0, done = 0, classCache = createCache(), tokenCache = createCache(), compilerCache = createCache(), strundefined = "undefined", arr = [], pop = arr.pop, push = arr.push, slice = arr.slice, indexOf = arr.indexOf || function(elem) {
for(var i = 0, len = this.length; i < len; i++)if (this[i] === elem) return i;
return -1;
}, whitespace = "[\\x20\\t\\r\\n\\f]", characterEncoding = "(?:\\\\.|[\\w-]|[^\\x00-\\xa0])+", identifier = characterEncoding.replace("w", "w#"), attributes = "\\[" + whitespace + "*(" + characterEncoding + ")" + whitespace + "*(?:([*^$|!~]?=)" + whitespace + "*(?:(['\"])((?:\\\\.|[^\\\\])*?)\\3|(" + identifier + ")|)|)" + whitespace + "*\\]", pseudos = ":(" + characterEncoding + ")(?:\\(((['\"])((?:\\\\.|[^\\\\])*?)\\3|((?:\\\\.|[^\\\\()[\\]]|" + attributes.replace(3, 8) + ")*)|.*)\\)|)", rtrim = new RegExp("^" + whitespace + "+|((?:^|[^\\\\])(?:\\\\.)*)" + whitespace + "+$", "g"), rcomma = new RegExp("^" + whitespace + "*," + whitespace + "*"), rcombinators = new RegExp("^" + whitespace + "*([\\x20\\t\\r\\n\\f>+~])" + whitespace + "*"), rpseudo = new RegExp(pseudos), ridentifier = new RegExp("^" + identifier + "$"), matchExpr = {
@ -1255,7 +1256,7 @@
var pass = doc.getElementsByName && doc.getElementsByName(expando).length === 2 + doc.getElementsByName(expando + 0).length;
return support.getIdNotName = !doc.getElementById(expando), docElem.removeChild(div), pass;
}), Expr.attrHandle = assert(function(div) {
return div.innerHTML = "<a href='#'></a>", div.firstChild && void 0 !== div.firstChild.getAttribute && "#" === div.firstChild.getAttribute("href");
return div.innerHTML = "<a href='#'></a>", div.firstChild && typeof div.firstChild.getAttribute !== strundefined && "#" === div.firstChild.getAttribute("href");
}) ? {
} : {
href: function(elem) {
@ -1265,7 +1266,7 @@
return elem.getAttribute("type");
}
}, support.getIdNotName ? (Expr.find.ID = function(id, context) {
if (void 0 !== context.getElementById && !documentIsXML) {
if (typeof context.getElementById !== strundefined && !documentIsXML) {
var m = context.getElementById(id);
return m && m.parentNode ? [
m
@ -1277,20 +1278,20 @@
return elem.getAttribute("id") === attrId;
};
}) : (Expr.find.ID = function(id, context) {
if (void 0 !== context.getElementById && !documentIsXML) {
if (typeof context.getElementById !== strundefined && !documentIsXML) {
var m = context.getElementById(id);
return m ? m.id === id || void 0 !== m.getAttributeNode && m.getAttributeNode("id").value === id ? [
return m ? m.id === id || typeof m.getAttributeNode !== strundefined && m.getAttributeNode("id").value === id ? [
m
] : undefined : [];
}
}, Expr.filter.ID = function(id) {
var attrId = id.replace(runescape, funescape);
return function(elem) {
var node = void 0 !== elem.getAttributeNode && elem.getAttributeNode("id");
var node = typeof elem.getAttributeNode !== strundefined && elem.getAttributeNode("id");
return node && node.value === attrId;
};
}), Expr.find.TAG = support.tagNameNoComments ? function(tag, context) {
if (void 0 !== context.getElementsByTagName) return context.getElementsByTagName(tag);
if (typeof context.getElementsByTagName !== strundefined) return context.getElementsByTagName(tag);
} : function(tag, context) {
var elem, tmp = [], i = 0, results = context.getElementsByTagName(tag);
if ("*" === tag) {
@ -1299,9 +1300,9 @@
}
return results;
}, Expr.find.NAME = support.getByName && function(tag, context) {
if (void 0 !== context.getElementsByName) return context.getElementsByName(name);
if (typeof context.getElementsByName !== strundefined) return context.getElementsByName(name);
}, Expr.find.CLASS = support.getByClassName && function(className, context) {
if (void 0 !== context.getElementsByClassName && !documentIsXML) return context.getElementsByClassName(className);
if (typeof context.getElementsByClassName !== strundefined && !documentIsXML) return context.getElementsByClassName(className);
}, rbuggyMatches = [], rbuggyQSA = [
":focus"
], (support.qsa = isNative(doc.querySelectorAll)) && (assert(function(div) {
@ -1417,7 +1418,7 @@
CLASS: function(className) {
var pattern = classCache[className + " "];
return pattern || (pattern = new RegExp("(^|" + whitespace + ")" + className + "(" + whitespace + "|$)"), classCache(className, function(elem) {
return pattern.test(elem.className || void 0 !== elem.getAttribute && elem.getAttribute("class") || "");
return pattern.test(elem.className || typeof elem.getAttribute !== strundefined && elem.getAttribute("class") || "");
}));
},
ATTR: function(name, operator, check) {
@ -1954,7 +1955,7 @@
}
}
function getAll(context, tag) {
var elems, elem, i = 0, found = void 0 !== context.getElementsByTagName ? context.getElementsByTagName(tag || "*") : void 0 !== context.querySelectorAll ? context.querySelectorAll(tag || "*") : undefined1;
var elems, elem, i = 0, found = typeof context.getElementsByTagName !== core_strundefined ? context.getElementsByTagName(tag || "*") : typeof context.querySelectorAll !== core_strundefined ? context.querySelectorAll(tag || "*") : undefined1;
if (!found) for(found = [], elems = context.childNodes || context; null != (elem = elems[i]); i++)!tag || jQuery.nodeName(elem, tag) ? found.push(elem) : jQuery.merge(found, getAll(elem, tag));
return tag === undefined1 || tag && jQuery.nodeName(context, tag) ? jQuery.merge([
context
@ -2129,7 +2130,7 @@
cleanData: function(elems, acceptData) {
for(var elem, type, id, data, i = 0, internalKey = jQuery.expando, cache = jQuery.cache, deleteExpando = jQuery.support.deleteExpando, special = jQuery.event.special; null != (elem = elems[i]); i++)if ((acceptData || jQuery.acceptData(elem)) && (data = (id = elem[internalKey]) && cache[id])) {
if (data.events) for(type in data.events)special[type] ? jQuery.event.remove(elem, type) : jQuery.removeEvent(elem, type, data.handle);
cache[id] && (delete cache[id], deleteExpando ? delete elem[internalKey] : void 0 !== elem.removeAttribute ? elem.removeAttribute(internalKey) : elem[internalKey] = null, core_deletedIds.push(id));
cache[id] && (delete cache[id], deleteExpando ? delete elem[internalKey] : typeof elem.removeAttribute !== core_strundefined ? elem.removeAttribute(internalKey) : elem[internalKey] = null, core_deletedIds.push(id));
}
}
});
@ -3013,7 +3014,7 @@
top: 0,
left: 0
}, elem = this[0], doc = elem && elem.ownerDocument;
return doc ? (docElem = doc.documentElement, jQuery.contains(docElem, elem)) ? (void 0 !== elem.getBoundingClientRect && (box = elem.getBoundingClientRect()), win = getWindow(doc), {
return doc ? (docElem = doc.documentElement, jQuery.contains(docElem, elem)) ? (typeof elem.getBoundingClientRect !== core_strundefined && (box = elem.getBoundingClientRect()), win = getWindow(doc), {
top: box.top + (win.pageYOffset || docElem.scrollTop) - (docElem.clientTop || 0),
left: box.left + (win.pageXOffset || docElem.scrollLeft) - (docElem.clientLeft || 0)
}) : box : void 0;

View File

@ -5,7 +5,7 @@
return factory($, root, doc), $.mobile;
}) : factory(root.jQuery, root, doc);
}(this, document, function(jQuery, window1, document1, undefined5) {
var $18, rcapitals, $1, doc1, bool, docElem, refNode, fakeBody1, div1, $2, support1, $3, self1, $win1, dummyFnToInitNavigate, $4, undefined1, path2, $base, $5, undefined2, $6, path1, initialHref, $7, heldCall, curr, diff1, handler1, lastCall, $8, baseElement, base1, $9, $10, $11, $12, undefined3, rInitialLetter, iconposClass1, $13, $14, $15, meta, initialContent1, disabledZoom, enabledZoom, disabledInitially, $16, $17, undefined4, rDividerListItem, origDefaultFilterCallback;
var $18, rcapitals, $1, doc1, bool, docElem, refNode, fakeBody1, div1, $2, support1, $3, self1, $win1, dummyFnToInitNavigate, $4, undefined1, path2, $base, dialogHashKey, $5, undefined2, $6, path1, initialHref, $7, heldCall, curr, diff1, handler1, lastCall, $8, baseElement, base1, $9, $10, $11, $12, undefined3, rInitialLetter, iconposClass1, $13, $14, $15, meta, initialContent1, disabledZoom, enabledZoom, disabledInitially, $16, $17, undefined4, rDividerListItem, origDefaultFilterCallback;
jQuery.mobile = {
}, (function($, window, undefined) {
$.extend($.mobile, {
@ -532,7 +532,7 @@
return options;
}
}), $18.mobile.widget = $18.Widget, (function($) {
var $html = $("html");
var loaderClass = "ui-loader", $html = $("html");
$.widget("mobile.loader", {
options: {
theme: "a",
@ -540,7 +540,7 @@
html: "",
text: "loading"
},
defaultHtml: "<div class='ui-loader'><span class='ui-icon-loading'></span><h1></h1></div>",
defaultHtml: "<div class='" + loaderClass + "'><span class='ui-icon-loading'></span><h1></h1></div>",
fakeFixLoader: function() {
var activeBtn = $("." + $.mobile.activeBtnClass).first();
this.element.css({
@ -557,7 +557,7 @@
show: function(theme, msgText, textonly) {
var message, loadSettings;
this.resetHtml(), "object" === $.type(theme) ? theme = (loadSettings = $.extend({
}, this.options, theme)).theme : (loadSettings = this.options, theme = theme || loadSettings.theme), message = msgText || (!1 === loadSettings.text ? "" : loadSettings.text), $html.addClass("ui-loading"), loadSettings.textVisible, this.element.attr("class", "ui-loader ui-corner-all ui-body-" + theme + " ui-loader-" + (loadSettings.textVisible || msgText || theme.text ? "verbose" : "default") + (loadSettings.textonly || textonly ? " ui-loader-textonly" : "")), loadSettings.html ? this.element.html(loadSettings.html) : this.element.find("h1").text(message), this.element.appendTo($.mobile.pageContainer), this.checkLoaderPosition(), this.window.bind("scroll", $.proxy(this.checkLoaderPosition, this));
}, this.options, theme)).theme : (loadSettings = this.options, theme = theme || loadSettings.theme), message = msgText || (!1 === loadSettings.text ? "" : loadSettings.text), $html.addClass("ui-loading"), loadSettings.textVisible, this.element.attr("class", loaderClass + " ui-corner-all ui-body-" + theme + " ui-loader-" + (loadSettings.textVisible || msgText || theme.text ? "verbose" : "default") + (loadSettings.textonly || textonly ? " ui-loader-textonly" : "")), loadSettings.html ? this.element.html(loadSettings.html) : this.element.find("h1").text(message), this.element.appendTo($.mobile.pageContainer), this.checkLoaderPosition(), this.window.bind("scroll", $.proxy(this.checkLoaderPosition, this));
},
hide: function() {
$html.removeClass("ui-loading"), this.options.text && this.element.removeClass("ui-loader-fakefix"), $.mobile.window.unbind("scroll", this.fakeFixLoader), $.mobile.window.unbind("scroll", this.checkLoaderPosition);
@ -565,13 +565,13 @@
});
})(jQuery, this), (function($, window, undefined) {
"$:nomunge";
var fake_onhashchange, doc = document1, special = $.event.special, doc_mode = doc.documentMode, supports_onhashchange = "onhashchange" in window && (doc_mode === undefined || doc_mode > 7);
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");
}
$.fn.hashchange = function(fn) {
return fn ? this.bind("hashchange", fn) : this.trigger("hashchange");
}, $.fn.hashchange.delay = 50, special.hashchange = $.extend(special.hashchange, {
$.fn[str_hashchange] = function(fn) {
return fn ? this.bind(str_hashchange, fn) : this.trigger(str_hashchange);
}, $.fn[str_hashchange].delay = 50, special[str_hashchange] = $.extend(special[str_hashchange], {
setup: function() {
if (supports_onhashchange) return !1;
$(fake_onhashchange.start);
@ -587,14 +587,14 @@
}, history_set = fn_retval, history_get = fn_retval;
function poll() {
var hash = get_fragment(), history_hash = history_get(last_hash);
hash !== last_hash ? (history_set(last_hash = hash, history_hash), $(window).trigger("hashchange")) : history_hash !== last_hash && (location.href = location.href.replace(/#.*/, "") + history_hash), timeout_id = setTimeout(poll, $.fn.hashchange.delay);
hash !== last_hash ? (history_set(last_hash = hash, history_hash), $(window).trigger(str_hashchange)) : history_hash !== last_hash && (location.href = location.href.replace(/#.*/, "") + history_hash), timeout_id = setTimeout(poll, $.fn[str_hashchange].delay);
}
return self.start = function() {
timeout_id || poll();
}, self.stop = function() {
timeout_id && clearTimeout(timeout_id), timeout_id = undefined;
}, !window.attachEvent || window.addEventListener || supports_onhashchange || (self.start = function() {
iframe || (iframe_src = (iframe_src = $.fn.hashchange.src) && iframe_src + get_fragment(), iframe = $("<iframe tabindex=\"-1\" title=\"empty\"/>").hide().one("load", function() {
iframe || (iframe_src = (iframe_src = $.fn[str_hashchange].src) && iframe_src + get_fragment(), iframe = $("<iframe tabindex=\"-1\" title=\"empty\"/>").hide().one("load", function() {
iframe_src || history_set(get_fragment()), poll();
}).attr("src", iframe_src || "javascript:0").insertAfter("body")[0].contentWindow, doc.onpropertychange = function() {
try {
@ -605,7 +605,7 @@
}, self.stop = fn_retval, history_get = function() {
return get_fragment(iframe.location.href);
}, history_set = function(hash, history_hash) {
var iframe_doc = iframe.document, domain = $.fn.hashchange.domain;
var iframe_doc = iframe.document, domain = $.fn[str_hashchange].domain;
hash !== history_hash && (iframe_doc.title = doc.title, iframe_doc.open(), domain && iframe_doc.write("<script>document.domain=\"" + domain + "\"</script>"), iframe_doc.close(), iframe.location.hash = hash);
}), self;
})();
@ -648,7 +648,7 @@
cssPseudoElement: !!propExists("content"),
touchOverflow: !!propExists("overflowScrolling"),
cssTransform3d: function() {
var el, transforms, t, ret = $.mobile.media("(-" + vendors.join("-transform-3d),(-") + "-transform-3d),(transform-3d)");
var el, transforms, t, mqProp = "transform-3d", ret = $.mobile.media("(-" + vendors.join("-" + mqProp + "),(-") + "-" + mqProp + "),(" + mqProp + ")");
if (ret) return !!ret;
for(t in el = document1.createElement("div"), transforms = {
MozTransform: "-moz-transform",
@ -717,7 +717,7 @@
setup: function() {
!self1.bound && (self1.bound = !0, self1.isPushStateEnabled() ? (self1.originalEventName = "popstate", $win1.bind("popstate.navigate", self1.popstate)) : self1.isHashChangeEnabled() && (self1.originalEventName = "hashchange", $win1.bind("hashchange.navigate", self1.hashchange)));
}
}, ($4 = jQuery).mobile.path = path2 = {
}, dialogHashKey = "&ui-state=dialog", ($4 = jQuery).mobile.path = path2 = {
uiStateKey: "&ui-state",
urlParseRE: /^\s*(((([^:\/#\?]+:)?(?:(\/\/)((?:(([^:@\/#\?]+)(?:\:([^:@\/#\?]+))?)@)?(([^:\/#\?\]\[]+|\[[^\/\]@#?]+\])(?:\:([0-9]+))?))?)?)?((\/?(?:[^\/\?#]+\/+)*)([^\?#]*)))?(\?[^#]+)?)(#.*)?/,
getLocation: function(url) {
@ -790,7 +790,7 @@
},
convertUrlToDataUrl: function(absUrl) {
var u = path2.parseUrl(absUrl);
return path2.isEmbeddedPage(u) ? u.hash.split("&ui-state=dialog")[0].replace(/^#/, "").replace(/\?.*$/, "") : path2.isSameDomain(u, this.documentBase) ? u.hrefNoHash.replace(this.documentBase.domain, "").split("&ui-state=dialog")[0] : window1.decodeURIComponent(absUrl);
return path2.isEmbeddedPage(u) ? u.hash.split(dialogHashKey)[0].replace(/^#/, "").replace(/\?.*$/, "") : path2.isSameDomain(u, this.documentBase) ? u.hrefNoHash.replace(this.documentBase.domain, "").split(dialogHashKey)[0] : window1.decodeURIComponent(absUrl);
},
get: function(newPath) {
return newPath === undefined1 && (newPath = path2.parseLocation().hash), path2.stripHash(newPath).replace(/[^\/]*\.[^\/*]+$/, "");
@ -811,7 +811,7 @@
return url.replace(/\?.*$/, "");
},
cleanHash: function(hash) {
return path2.stripHash(hash.replace(/\?.*$/, "").replace("&ui-state=dialog", ""));
return path2.stripHash(hash.replace(/\?.*$/, "").replace(dialogHashKey, ""));
},
isHashValid: function(hash) {
return /^#[^#]+$/.test(hash);
@ -840,7 +840,7 @@
},
getFilePath: function(path) {
var splitkey = "&" + $4.mobile.subPageUrlKey;
return path && path.split(splitkey)[0].split("&ui-state=dialog")[0];
return path && path.split(splitkey)[0].split(dialogHashKey)[0];
},
isFirstPageUrl: function(url) {
var u = path2.parseUrl(path2.makeUrlAbsolute(url, this.documentBase)), samePath = u.hrefNoHash === this.documentUrl.hrefNoHash || this.documentBaseDiffers && u.hrefNoHash === this.documentBase.hrefNoHash, fp = $4.mobile.firstPage, fpId = fp && fp[0] ? fp[0].id : undefined1;
@ -1006,7 +1006,7 @@
})) : (setTimeout($.proxy(callback, this), 0), $(this));
}, $.fn.animationComplete.defaultDuration = 1000;
})(jQuery), (function($, window, document, undefined) {
var threshold, i1, 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 = {
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;
@ -1015,7 +1015,7 @@
function getVirtualBindingFlags(element) {
for(var b, k, flags = {
}; element;){
for(k in b = $.data(element, "virtualMouseBindings"))b[k] && (flags[k] = flags.hasVirtualBinding = !0);
for(k in b = $.data(element, dataPropertyName))b[k] && (flags[k] = flags.hasVirtualBinding = !0);
element = element.parentNode;
}
return flags;
@ -1035,7 +1035,7 @@
var ve;
return (flags && flags[eventType1] || !flags && (function(element, eventType) {
for(var b; element;){
if ((b = $.data(element, "virtualMouseBindings")) && (!eventType || b[eventType])) return element;
if ((b = $.data(element, dataPropertyName)) && (!eventType || b[eventType])) return element;
element = element.parentNode;
}
return null;
@ -1047,12 +1047,12 @@
})(event1, eventType1), $(event1.target).trigger(ve)), ve;
}
function mouseEventCallback(event) {
var ve, touchID = $.data(event.target, "virtualTouchID");
var ve, touchID = $.data(event.target, touchTargetPropertyName);
!blockMouseTriggers && (!lastTouchID || lastTouchID !== touchID) && (ve = triggerVirtualEvent("v" + event.type, event)) && (ve.isDefaultPrevented() && event.preventDefault(), ve.isPropagationStopped() && event.stopPropagation(), ve.isImmediatePropagationStopped() && event.stopImmediatePropagation());
}
function handleTouchStart(event) {
var target, flags, t, touches = getNativeEvent(event).touches;
touches && 1 === touches.length && (flags = getVirtualBindingFlags(target = event.target)).hasVirtualBinding && (lastTouchID = nextTouchID++, $.data(target, "virtualTouchID", lastTouchID), clearResetTimer(), blockTouchTriggers = !1, didScroll = !1, startX = (t = getNativeEvent(event).touches[0]).pageX, startY = t.pageY, triggerVirtualEvent("vmouseover", event, flags), triggerVirtualEvent("vmousedown", event, flags));
touches && 1 === touches.length && (flags = getVirtualBindingFlags(target = event.target)).hasVirtualBinding && (lastTouchID = nextTouchID++, $.data(target, touchTargetPropertyName, lastTouchID), clearResetTimer(), blockTouchTriggers = !1, didScroll = !1, startX = (t = getNativeEvent(event).touches[0]).pageX, startY = t.pageY, triggerVirtualEvent("vmouseover", event, flags), triggerVirtualEvent("vmousedown", event, flags));
}
function handleScroll(event) {
blockTouchTriggers || (didScroll || triggerVirtualEvent("vmousecancel", event, getVirtualBindingFlags(event.target)), didScroll = !0, startResetTimer());
@ -1075,7 +1075,7 @@
}
}
function hasVirtualBindings(ele) {
var k, bindings = $.data(ele, "virtualMouseBindings");
var k, bindings = $.data(ele, dataPropertyName);
if (bindings) {
for(k in bindings)if (bindings[k]) return !0;
}
@ -1087,13 +1087,13 @@
var realType = eventType.substr(1);
return {
setup: function() {
hasVirtualBindings(this) || $.data(this, "virtualMouseBindings", {
}), $.data(this, "virtualMouseBindings")[eventType] = !0, activeDocHandlers[eventType] = (activeDocHandlers[eventType] || 0) + 1, 1 === activeDocHandlers[eventType] && $document.bind(realType, mouseEventCallback), $(this).bind(realType, dummyMouseHandler), eventCaptureSupported && (activeDocHandlers.touchstart = (activeDocHandlers.touchstart || 0) + 1, 1 === activeDocHandlers.touchstart && $document.bind("touchstart", handleTouchStart).bind("touchend", handleTouchEnd).bind("touchmove", handleTouchMove).bind("scroll", handleScroll));
hasVirtualBindings(this) || $.data(this, dataPropertyName, {
}), $.data(this, dataPropertyName)[eventType] = !0, activeDocHandlers[eventType] = (activeDocHandlers[eventType] || 0) + 1, 1 === activeDocHandlers[eventType] && $document.bind(realType, mouseEventCallback), $(this).bind(realType, dummyMouseHandler), eventCaptureSupported && (activeDocHandlers.touchstart = (activeDocHandlers.touchstart || 0) + 1, 1 === activeDocHandlers.touchstart && $document.bind("touchstart", handleTouchStart).bind("touchend", handleTouchEnd).bind("touchmove", handleTouchMove).bind("scroll", handleScroll));
},
teardown: function() {
--activeDocHandlers[eventType], activeDocHandlers[eventType] || $document.unbind(realType, mouseEventCallback), eventCaptureSupported && (--activeDocHandlers.touchstart, activeDocHandlers.touchstart || $document.unbind("touchstart", handleTouchStart).unbind("touchmove", handleTouchMove).unbind("touchend", handleTouchEnd).unbind("scroll", handleScroll));
var $this = $(this), bindings = $.data(this, "virtualMouseBindings");
bindings && (bindings[eventType] = !1), $this.unbind(realType, dummyMouseHandler), hasVirtualBindings(this) || $this.removeData("virtualMouseBindings");
var $this = $(this), bindings = $.data(this, dataPropertyName);
bindings && (bindings[eventType] = !1), $this.unbind(realType, dummyMouseHandler), hasVirtualBindings(this) || $this.removeData(dataPropertyName);
}
};
}
@ -1105,7 +1105,7 @@
eventCaptureSupported && document.addEventListener("click", function(e) {
var x, y, ele, i, o, cnt = clickBlockList.length, target = e.target;
if (cnt) for(x = e.clientX, y = e.clientY, threshold = $.vmouse.clickDistanceThreshold, ele = target; ele;){
for(i = 0; i < cnt; i++)if (o = clickBlockList[i], ele === target && Math.abs(o.x - x) < threshold && Math.abs(o.y - y) < threshold || $.data(ele, "virtualTouchID") === o.touchID) {
for(i = 0; i < cnt; i++)if (o = clickBlockList[i], ele === target && Math.abs(o.x - x) < threshold && Math.abs(o.y - y) < threshold || $.data(ele, touchTargetPropertyName) === o.touchID) {
e.preventDefault(), e.stopPropagation();
return;
}
@ -1113,7 +1113,7 @@
}
}, !0);
})(jQuery, window1, document1), (function($, window, undefined) {
var $document = $(document1), supportTouch = $.mobile.support.touch, touchStartEvent = supportTouch ? "touchstart" : "mousedown", touchStopEvent = supportTouch ? "touchend" : "mouseup", touchMoveEvent = supportTouch ? "touchmove" : "mousemove";
var $document = $(document1), supportTouch = $.mobile.support.touch, scrollEvent = "touchmove scroll", touchStartEvent = supportTouch ? "touchstart" : "mousedown", touchStopEvent = supportTouch ? "touchend" : "mouseup", touchMoveEvent = supportTouch ? "touchmove" : "mousemove";
function triggerCustomEvent(obj, eventType, event, bubble) {
var originalType = event.type;
event.type = eventType, bubble ? $.event.trigger(event, void 0, obj) : $.event.dispatch.call(obj, event), event.type = originalType;
@ -1129,14 +1129,14 @@
function trigger(event, state) {
triggerCustomEvent(thisObject, (scrolling = state) ? "scrollstart" : "scrollstop", event);
}
$this.bind("touchmove scroll", function(event) {
$this.bind(scrollEvent, function(event) {
$.event.special.scrollstart.enabled && (scrolling || trigger(event, !0), clearTimeout(timer), timer = setTimeout(function() {
trigger(event, !1);
}, 50));
});
},
teardown: function() {
$(this).unbind("touchmove scroll");
$(this).unbind(scrollEvent);
}
}, $.event.special.tap = {
tapholdThreshold: 750,
@ -1260,13 +1260,13 @@
}, handler1 = function() {
(diff1 = (curr = new Date().getTime()) - lastCall) >= 250 ? (lastCall = curr, $7(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), portrait_map = {
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,
"180": !0
};
function handler() {
var orientation = get_orientation();
orientation !== last_orientation && (last_orientation = orientation, win.trigger("orientationchange"));
orientation !== last_orientation && (last_orientation = orientation, win.trigger(event_name));
}
$.support.orientation && (ww = window.innerWidth || win.width(), wh = window.innerHeight || win.height(), landscape_threshold = 50, initial_orientation_is_landscape = ww > wh && ww - wh > landscape_threshold, initial_orientation_is_default = portrait_map[window.orientation], (initial_orientation_is_landscape && initial_orientation_is_default || !initial_orientation_is_landscape && !initial_orientation_is_default) && (portrait_map = {
"-90": !0,
@ -1290,9 +1290,9 @@
}), $.event.special.orientationchange.orientation = get_orientation = function() {
var elem = document1.documentElement;
return ($.support.orientation ? portrait_map[window.orientation] : elem && elem.clientWidth / elem.clientHeight < 1.1) ? "portrait" : "landscape";
}, $.fn.orientationchange = function(fn) {
return fn ? this.bind("orientationchange", fn) : this.trigger("orientationchange");
}, $.attrFn && ($.attrFn.orientationchange = !0);
}, $.fn[event_name] = function(fn) {
return fn ? this.bind(event_name, fn) : this.trigger(event_name);
}, $.attrFn && ($.attrFn[event_name] = !0);
})(jQuery, this), base1 = {
element: (baseElement = ($8 = jQuery)("head").children("base")).length ? baseElement : $8("<base>", {
href: $8.mobile.path.documentBase.hrefNoHash
@ -3469,8 +3469,8 @@
"popup" === data.options.role && ($.mobile.popup.handleLink(data.options.link), theEvent.preventDefault());
});
})(jQuery), (function($, undefined) {
var goToAdjacentItem = function(item, target, direction) {
var adjacent = item[direction + "All"]().not(".ui-disabled,.ui-state-disabled,.ui-li-divider,.ui-screen-hidden,:jqmData(role='placeholder')").first();
var unfocusableItemSelector = ".ui-disabled,.ui-state-disabled,.ui-li-divider,.ui-screen-hidden,:jqmData(role='placeholder')", goToAdjacentItem = function(item, target, direction) {
var adjacent = item[direction + "All"]().not(unfocusableItemSelector).first();
adjacent.length && (target.blur().attr("tabindex", "-1"), adjacent.find("a").first().focus());
};
$.widget("mobile.selectmenu", $.mobile.selectmenu, {
@ -3589,7 +3589,7 @@
},
_focusMenuItem: function() {
var selector = this.list.find("a." + $.mobile.activeBtnClass);
0 === selector.length && (selector = this.list.find("li:not(.ui-disabled,.ui-state-disabled,.ui-li-divider,.ui-screen-hidden,:jqmData(role='placeholder')) a.ui-btn")), selector.first().focus();
0 === selector.length && (selector = this.list.find("li:not(" + unfocusableItemSelector + ") a.ui-btn")), selector.first().focus();
},
_decideFormat: function() {
var $window = this.window, menuHeight = this.list.parent().outerHeight(), scrollTop = $window.scrollTop(), btnOffset = this.button.offset().top, screenHeight = $window.height();
@ -3866,16 +3866,16 @@
return !notransition && (this.options.transition && "none" !== this.options.transition && ("header" === this.role && !this.options.fullscreen && scroll > elHeight || "footer" === this.role && !this.options.fullscreen && scroll + viewportHeight < pHeight - elHeight) || this.options.fullscreen);
},
show: function(notransition) {
var $el = this.element;
this._useTransition(notransition) ? $el.removeClass("out ui-fixed-hidden").addClass("in").animationComplete(function() {
var hideClass = "ui-fixed-hidden", $el = this.element;
this._useTransition(notransition) ? $el.removeClass("out " + hideClass).addClass("in").animationComplete(function() {
$el.removeClass("in");
}) : $el.removeClass("ui-fixed-hidden"), this._visible = !0;
}) : $el.removeClass(hideClass), this._visible = !0;
},
hide: function(notransition) {
var $el = this.element, outclass = "out" + ("slide" === this.options.transition ? " reverse" : "");
var hideClass = "ui-fixed-hidden", $el = this.element, outclass = "out" + ("slide" === this.options.transition ? " reverse" : "");
this._useTransition(notransition) ? $el.addClass(outclass).removeClass("in").animationComplete(function() {
$el.addClass("ui-fixed-hidden").removeClass(outclass);
}) : $el.addClass("ui-fixed-hidden").removeClass(outclass), this._visible = !1;
$el.addClass(hideClass).removeClass(outclass);
}) : $el.addClass(hideClass).removeClass(outclass), this._visible = !1;
},
toggle: function() {
this[this._visible ? "hide" : "show"]();

View File

@ -36,7 +36,7 @@
registrationNameDependencies1[registrationName] && error1("EventRegistry: More than one plugin attempted to publish the same registration name, `%s`.", registrationName), registrationNameDependencies1[registrationName] = dependencies, possibleRegistrationNames1[registrationName.toLowerCase()] = registrationName, "onDoubleClick" === registrationName && (possibleRegistrationNames1.ondblclick = registrationName);
for(var i = 0; i < dependencies.length; i++)allNativeEvents.add(dependencies[i]);
}
var canUseDOM = !!("undefined" != typeof window && void 0 !== window.document && void 0 !== window.document.createElement), VALID_ATTRIBUTE_NAME_REGEX = new RegExp("^[:A-Z_a-z\\u00C0-\\u00D6\\u00D8-\\u00F6\\u00F8-\\u02FF\\u0370-\\u037D\\u037F-\\u1FFF\\u200C-\\u200D\\u2070-\\u218F\\u2C00-\\u2FEF\\u3001-\\uD7FF\\uF900-\\uFDCF\\uFDF0-\\uFFFD][:A-Z_a-z\\u00C0-\\u00D6\\u00D8-\\u00F6\\u00F8-\\u02FF\\u0370-\\u037D\\u037F-\\u1FFF\\u200C-\\u200D\\u2070-\\u218F\\u2C00-\\u2FEF\\u3001-\\uD7FF\\uF900-\\uFDCF\\uFDF0-\\uFFFD\\-.0-9\\u00B7\\u0300-\\u036F\\u203F-\\u2040]*$"), hasOwnProperty = Object.prototype.hasOwnProperty, illegalAttributeNameCache = {
var canUseDOM = !!("undefined" != typeof window && void 0 !== window.document && void 0 !== window.document.createElement), ATTRIBUTE_NAME_START_CHAR = ":A-Z_a-z\\u00C0-\\u00D6\\u00D8-\\u00F6\\u00F8-\\u02FF\\u0370-\\u037D\\u037F-\\u1FFF\\u200C-\\u200D\\u2070-\\u218F\\u2C00-\\u2FEF\\u3001-\\uD7FF\\uF900-\\uFDCF\\uFDF0-\\uFFFD", ATTRIBUTE_NAME_CHAR = ATTRIBUTE_NAME_START_CHAR + "\\-.0-9\\u00B7\\u0300-\\u036F\\u203F-\\u2040", ROOT_ATTRIBUTE_NAME = "data-reactroot", VALID_ATTRIBUTE_NAME_REGEX = new RegExp("^[" + ATTRIBUTE_NAME_START_CHAR + "][" + ATTRIBUTE_NAME_CHAR + "]*$"), hasOwnProperty = Object.prototype.hasOwnProperty, illegalAttributeNameCache = {
}, validatedAttributeNameCache = {
};
function isAttributeNameSafe(attributeName) {
@ -851,23 +851,23 @@
var node = element, textContent = node.textContent;
textContent === node._wrapperState.initialValue && "" !== textContent && null !== textContent && (node.value = textContent);
}
var Namespaces = {
html: "http://www.w3.org/1999/xhtml",
mathml: "http://www.w3.org/1998/Math/MathML",
svg: "http://www.w3.org/2000/svg"
var HTML_NAMESPACE = "http://www.w3.org/1999/xhtml", MATH_NAMESPACE = "http://www.w3.org/1998/Math/MathML", SVG_NAMESPACE = "http://www.w3.org/2000/svg", Namespaces = {
html: HTML_NAMESPACE,
mathml: MATH_NAMESPACE,
svg: SVG_NAMESPACE
};
function getIntrinsicNamespace(type) {
switch(type){
case "svg":
return "http://www.w3.org/2000/svg";
return SVG_NAMESPACE;
case "math":
return "http://www.w3.org/1998/Math/MathML";
return MATH_NAMESPACE;
default:
return "http://www.w3.org/1999/xhtml";
return HTML_NAMESPACE;
}
}
function getChildNamespace(parentNamespace, type) {
return null == parentNamespace || "http://www.w3.org/1999/xhtml" === parentNamespace ? getIntrinsicNamespace(type) : "http://www.w3.org/2000/svg" === parentNamespace && "foreignObject" === type ? "http://www.w3.org/1999/xhtml" : parentNamespace;
return null == parentNamespace || parentNamespace === HTML_NAMESPACE ? getIntrinsicNamespace(type) : parentNamespace === SVG_NAMESPACE && "foreignObject" === type ? HTML_NAMESPACE : parentNamespace;
}
var setInnerHTML = function(func) {
return "undefined" != typeof MSApp && MSApp.execUnsafeLocalFunction ? function(arg0, arg1, arg2, arg3) {
@ -1859,7 +1859,7 @@
"aria-rowspan": 0,
"aria-setsize": 0
}, warnedProperties = {
}, rARIA = new RegExp("^(aria)-[:A-Z_a-z\\u00C0-\\u00D6\\u00D8-\\u00F6\\u00F8-\\u02FF\\u0370-\\u037D\\u037F-\\u1FFF\\u200C-\\u200D\\u2070-\\u218F\\u2C00-\\u2FEF\\u3001-\\uD7FF\\uF900-\\uFDCF\\uFDF0-\\uFFFD\\-.0-9\\u00B7\\u0300-\\u036F\\u203F-\\u2040]*$"), rARIACamel = new RegExp("^(aria)[A-Z][:A-Z_a-z\\u00C0-\\u00D6\\u00D8-\\u00F6\\u00F8-\\u02FF\\u0370-\\u037D\\u037F-\\u1FFF\\u200C-\\u200D\\u2070-\\u218F\\u2C00-\\u2FEF\\u3001-\\uD7FF\\uF900-\\uFDCF\\uFDF0-\\uFFFD\\-.0-9\\u00B7\\u0300-\\u036F\\u203F-\\u2040]*$"), hasOwnProperty$1 = Object.prototype.hasOwnProperty;
}, rARIA = new RegExp("^(aria)-[" + ATTRIBUTE_NAME_CHAR + "]*$"), rARIACamel = new RegExp("^(aria)[A-Z][" + ATTRIBUTE_NAME_CHAR + "]*$"), hasOwnProperty$1 = Object.prototype.hasOwnProperty;
function validateProperty(tagName, name) {
if (hasOwnProperty$1.call(warnedProperties, name) && warnedProperties[name]) return !0;
if (rARIACamel.test(name)) {
@ -1876,7 +1876,7 @@
}
var didWarnValueNull = !1, validateProperty$1 = function() {
}, warnedProperties$1 = {
}, _hasOwnProperty = Object.prototype.hasOwnProperty, EVENT_NAME_REGEX = /^on./, INVALID_EVENT_NAME_REGEX = /^on[^A-Z]/, rARIA$1 = new RegExp("^(aria)-[:A-Z_a-z\\u00C0-\\u00D6\\u00D8-\\u00F6\\u00F8-\\u02FF\\u0370-\\u037D\\u037F-\\u1FFF\\u200C-\\u200D\\u2070-\\u218F\\u2C00-\\u2FEF\\u3001-\\uD7FF\\uF900-\\uFDCF\\uFDF0-\\uFFFD\\-.0-9\\u00B7\\u0300-\\u036F\\u203F-\\u2040]*$"), rARIACamel$1 = new RegExp("^(aria)[A-Z][:A-Z_a-z\\u00C0-\\u00D6\\u00D8-\\u00F6\\u00F8-\\u02FF\\u0370-\\u037D\\u037F-\\u1FFF\\u200C-\\u200D\\u2070-\\u218F\\u2C00-\\u2FEF\\u3001-\\uD7FF\\uF900-\\uFDCF\\uFDF0-\\uFFFD\\-.0-9\\u00B7\\u0300-\\u036F\\u203F-\\u2040]*$");
}, _hasOwnProperty = Object.prototype.hasOwnProperty, EVENT_NAME_REGEX = /^on./, INVALID_EVENT_NAME_REGEX = /^on[^A-Z]/, rARIA$1 = new RegExp("^(aria)-[" + ATTRIBUTE_NAME_CHAR + "]*$"), rARIACamel$1 = new RegExp("^(aria)[A-Z][" + ATTRIBUTE_NAME_CHAR + "]*$");
validateProperty$1 = function(tagName, name, value, eventRegistry) {
if (_hasOwnProperty.call(warnedProperties$1, name) && warnedProperties$1[name]) return !0;
var lowerCasedName = name.toLowerCase();
@ -3675,7 +3675,7 @@
function getListenerSetKey(domEventName, capture) {
return domEventName + "__" + (capture ? "capture" : "bubble");
}
var didWarnInvalidHydration = !1, HTML_NAMESPACE$1 = Namespaces.html;
var didWarnInvalidHydration = !1, DANGEROUSLY_SET_INNER_HTML = "dangerouslySetInnerHTML", SUPPRESS_CONTENT_EDITABLE_WARNING = "suppressContentEditableWarning", SUPPRESS_HYDRATION_WARNING = "suppressHydrationWarning", AUTOFOCUS = "autoFocus", CHILDREN = "children", STYLE = "style", HTML$1 = "__html", HTML_NAMESPACE$1 = Namespaces.html;
warnedUnknownTags = {
dialog: !0,
webview: !0
@ -4323,7 +4323,7 @@
}
}
}
var ReactCurrentBatchConfig = ReactSharedInternals.ReactCurrentBatchConfig, ReactStrictModeWarnings = {
var ReactVersion = "17.0.2", ReactCurrentBatchConfig = ReactSharedInternals.ReactCurrentBatchConfig, ReactStrictModeWarnings = {
recordUnsafeLifecycleWarnings: function(fiber, instance) {
},
flushPendingUnsafeLifecycleWarnings: function() {
@ -7092,7 +7092,7 @@
}
var currentHostContext = getHostContext();
if (popHydrationState(workInProgress)) fiber = workInProgress, hostContext1 = currentHostContext, instance = fiber.stateNode, type9 = fiber.type, props7 = fiber.memoizedProps, hostContext2 = hostContext1, internalInstanceHandle1 = fiber, precacheFiberNode(internalInstanceHandle1, instance), updateFiberProps(instance, props7), updatePayload1 = (function(domElement, tag, rawProps, parentNamespace, rootContainerElement) {
switch(suppressHydrationWarning = !0 === rawProps.suppressHydrationWarning, isCustomComponentTag = isCustomComponent(tag, rawProps), validatePropertiesInDevelopment(tag, rawProps), tag){
switch(suppressHydrationWarning = !0 === rawProps[SUPPRESS_HYDRATION_WARNING], isCustomComponentTag = isCustomComponent(tag, rawProps), validatePropertiesInDevelopment(tag, rawProps), tag){
case "dialog":
listenToNonDelegatedEvent("cancel", domElement), listenToNonDelegatedEvent("close", domElement);
break;
@ -7148,25 +7148,25 @@
var updatePayload = null;
for(var propKey in rawProps)if (rawProps.hasOwnProperty(propKey)) {
var nextProp = rawProps[propKey];
if ("children" === propKey) "string" == typeof nextProp ? domElement.textContent !== nextProp && (suppressHydrationWarning || warnForTextDifference(domElement.textContent, nextProp), updatePayload = [
"children",
if (propKey === CHILDREN) "string" == typeof nextProp ? domElement.textContent !== nextProp && (suppressHydrationWarning || warnForTextDifference(domElement.textContent, nextProp), updatePayload = [
CHILDREN,
nextProp
]) : "number" == typeof nextProp && domElement.textContent !== "" + nextProp && (suppressHydrationWarning || warnForTextDifference(domElement.textContent, nextProp), updatePayload = [
"children",
CHILDREN,
"" + nextProp
]);
else if (registrationNameDependencies1.hasOwnProperty(propKey)) null != nextProp && ("function" != typeof nextProp && warnForInvalidEventListener(propKey, nextProp), "onScroll" === propKey && listenToNonDelegatedEvent("scroll", domElement));
else if ("boolean" == typeof isCustomComponentTag) {
var serverValue = void 0, propertyInfo = getPropertyInfo(propKey);
if (suppressHydrationWarning) ;
else if ("suppressContentEditableWarning" === propKey || "suppressHydrationWarning" === propKey || "value" === propKey || "checked" === propKey || "selected" === propKey) ;
else if ("dangerouslySetInnerHTML" === propKey) {
var serverHTML = domElement.innerHTML, nextHtml = nextProp ? nextProp["__html"] : void 0;
else if (propKey === SUPPRESS_CONTENT_EDITABLE_WARNING || propKey === SUPPRESS_HYDRATION_WARNING || "value" === propKey || "checked" === propKey || "selected" === propKey) ;
else if (propKey === DANGEROUSLY_SET_INNER_HTML) {
var serverHTML = domElement.innerHTML, nextHtml = nextProp ? nextProp[HTML$1] : void 0;
if (null != nextHtml) {
var expectedHTML = normalizeHTML(domElement, nextHtml);
expectedHTML !== serverHTML && warnForPropDifference(propKey, serverHTML, expectedHTML);
}
} else if ("style" === propKey) {
} else if (propKey === STYLE) {
if (extraAttributeNames.delete(propKey), canDiffStyleForHydrationWarning) {
var expectedStyle = createDangerousStringForStyles(nextProp);
expectedStyle !== (serverValue = domElement.getAttribute("style")) && warnForPropDifference(propKey, serverValue, expectedStyle);
@ -7268,11 +7268,11 @@
switch(assertValidProps(tag1, props11), (function(tag, domElement, rootContainerElement, nextProps, isCustomComponentTag) {
for(var propKey in nextProps)if (nextProps.hasOwnProperty(propKey)) {
var nextProp = nextProps[propKey];
if ("style" === propKey) nextProp && Object.freeze(nextProp), setValueForStyles(domElement, nextProp);
else if ("dangerouslySetInnerHTML" === propKey) {
var nextHtml = nextProp ? nextProp["__html"] : void 0;
if (propKey === STYLE) nextProp && Object.freeze(nextProp), setValueForStyles(domElement, nextProp);
else if (propKey === DANGEROUSLY_SET_INNER_HTML) {
var nextHtml = nextProp ? nextProp[HTML$1] : void 0;
null != nextHtml && setInnerHTML(domElement, nextHtml);
} else "children" === propKey ? "string" == typeof nextProp ? ("textarea" !== tag || "" !== nextProp) && setTextContent(domElement, nextProp) : "number" == typeof nextProp && setTextContent(domElement, "" + nextProp) : "suppressContentEditableWarning" === propKey || "suppressHydrationWarning" === propKey || "autoFocus" === propKey || (registrationNameDependencies1.hasOwnProperty(propKey) ? null != nextProp && ("function" != typeof nextProp && warnForInvalidEventListener(propKey, nextProp), "onScroll" === propKey && listenToNonDelegatedEvent("scroll", domElement)) : null != nextProp && setValueForProperty(domElement, propKey, nextProp, isCustomComponentTag));
} else propKey === CHILDREN ? "string" == typeof nextProp ? ("textarea" !== tag || "" !== nextProp) && setTextContent(domElement, nextProp) : "number" == typeof nextProp && setTextContent(domElement, "" + nextProp) : propKey === SUPPRESS_CONTENT_EDITABLE_WARNING || propKey === SUPPRESS_HYDRATION_WARNING || propKey === AUTOFOCUS || (registrationNameDependencies1.hasOwnProperty(propKey) ? null != nextProp && ("function" != typeof nextProp && warnForInvalidEventListener(propKey, nextProp), "onScroll" === propKey && listenToNonDelegatedEvent("scroll", domElement)) : null != nextProp && setValueForProperty(domElement, propKey, nextProp, isCustomComponentTag));
}
})(tag1, domElement2, rootContainerElement, props11, isCustomComponentTag1), tag1){
case "input":
@ -7521,23 +7521,23 @@
}
assertValidProps(tag, nextProps);
var styleUpdates1 = null;
for(propKey in lastProps)if (!nextProps.hasOwnProperty(propKey) && lastProps.hasOwnProperty(propKey) && null != lastProps[propKey]) if ("style" === propKey) {
for(propKey in lastProps)if (!nextProps.hasOwnProperty(propKey) && lastProps.hasOwnProperty(propKey) && null != lastProps[propKey]) if (propKey === STYLE) {
var lastStyle = lastProps[propKey];
for(styleName in lastStyle)lastStyle.hasOwnProperty(styleName) && (styleUpdates1 || (styleUpdates1 = {
}), styleUpdates1[styleName] = "");
} else "dangerouslySetInnerHTML" !== propKey && "children" !== propKey && "suppressContentEditableWarning" !== propKey && "suppressHydrationWarning" !== propKey && "autoFocus" !== propKey && (registrationNameDependencies1.hasOwnProperty(propKey) ? updatePayload || (updatePayload = []) : (updatePayload = updatePayload || []).push(propKey, null));
} else propKey !== DANGEROUSLY_SET_INNER_HTML && propKey !== CHILDREN && propKey !== SUPPRESS_CONTENT_EDITABLE_WARNING && propKey !== SUPPRESS_HYDRATION_WARNING && propKey !== AUTOFOCUS && (registrationNameDependencies1.hasOwnProperty(propKey) ? updatePayload || (updatePayload = []) : (updatePayload = updatePayload || []).push(propKey, null));
for(propKey in nextProps){
var nextProp = nextProps[propKey], lastProp = null != lastProps ? lastProps[propKey] : void 0;
if (nextProps.hasOwnProperty(propKey) && nextProp !== lastProp && (null != nextProp || null != lastProp)) if ("style" === propKey) if (nextProp && Object.freeze(nextProp), lastProp) {
if (nextProps.hasOwnProperty(propKey) && nextProp !== lastProp && (null != nextProp || null != lastProp)) if (propKey === STYLE) if (nextProp && Object.freeze(nextProp), lastProp) {
for(styleName in lastProp)!lastProp.hasOwnProperty(styleName) || nextProp && nextProp.hasOwnProperty(styleName) || (styleUpdates1 || (styleUpdates1 = {
}), styleUpdates1[styleName] = "");
for(styleName in nextProp)nextProp.hasOwnProperty(styleName) && lastProp[styleName] !== nextProp[styleName] && (styleUpdates1 || (styleUpdates1 = {
}), styleUpdates1[styleName] = nextProp[styleName]);
} else styleUpdates1 || (updatePayload || (updatePayload = []), updatePayload.push(propKey, styleUpdates1)), styleUpdates1 = nextProp;
else if ("dangerouslySetInnerHTML" === propKey) {
var nextHtml = nextProp ? nextProp["__html"] : void 0, lastHtml = lastProp ? lastProp["__html"] : void 0;
else if (propKey === DANGEROUSLY_SET_INNER_HTML) {
var nextHtml = nextProp ? nextProp[HTML$1] : void 0, lastHtml = lastProp ? lastProp[HTML$1] : void 0;
null != nextHtml && lastHtml !== nextHtml && (updatePayload = updatePayload || []).push(propKey, nextHtml);
} else "children" === propKey ? ("string" == typeof nextProp || "number" == typeof nextProp) && (updatePayload = updatePayload || []).push(propKey, "" + nextProp) : "suppressContentEditableWarning" !== propKey && "suppressHydrationWarning" !== propKey && (registrationNameDependencies1.hasOwnProperty(propKey) ? (null != nextProp && ("function" != typeof nextProp && warnForInvalidEventListener(propKey, nextProp), "onScroll" === propKey && listenToNonDelegatedEvent("scroll", domElement)), updatePayload || lastProp === nextProp || (updatePayload = [])) : "object" == typeof nextProp && null !== nextProp && nextProp.$$typeof === REACT_OPAQUE_ID_TYPE ? nextProp.toString() : (updatePayload = updatePayload || []).push(propKey, nextProp));
} else propKey === CHILDREN ? ("string" == typeof nextProp || "number" == typeof nextProp) && (updatePayload = updatePayload || []).push(propKey, "" + nextProp) : propKey !== SUPPRESS_CONTENT_EDITABLE_WARNING && propKey !== SUPPRESS_HYDRATION_WARNING && (registrationNameDependencies1.hasOwnProperty(propKey) ? (null != nextProp && ("function" != typeof nextProp && warnForInvalidEventListener(propKey, nextProp), "onScroll" === propKey && listenToNonDelegatedEvent("scroll", domElement)), updatePayload || lastProp === nextProp || (updatePayload = [])) : "object" == typeof nextProp && null !== nextProp && nextProp.$$typeof === REACT_OPAQUE_ID_TYPE ? nextProp.toString() : (updatePayload = updatePayload || []).push(propKey, nextProp));
}
return styleUpdates1 && ((function(styleUpdates, nextStyles) {
if (nextStyles) {
@ -7552,7 +7552,7 @@
}
}
}
})(styleUpdates1, nextProps.style), (updatePayload = updatePayload || []).push("style", styleUpdates1)), updatePayload;
})(styleUpdates1, nextProps[STYLE]), (updatePayload = updatePayload || []).push(STYLE, styleUpdates1)), updatePayload;
}(domElement3, type12, oldProps1, newProps3));
workInProgress.updateQueue = updatePayload2, updatePayload2 && markUpdate(workInProgress);
}
@ -8034,7 +8034,7 @@
switch((function(domElement, updatePayload, wasCustomComponentTag, isCustomComponentTag) {
for(var i = 0; i < updatePayload.length; i += 2){
var propKey = updatePayload[i], propValue = updatePayload[i + 1];
"style" === propKey ? setValueForStyles(domElement, propValue) : "dangerouslySetInnerHTML" === propKey ? setInnerHTML(domElement, propValue) : "children" === propKey ? setTextContent(domElement, propValue) : setValueForProperty(domElement, propKey, propValue, isCustomComponentTag);
propKey === STYLE ? setValueForStyles(domElement, propValue) : propKey === DANGEROUSLY_SET_INNER_HTML ? setInnerHTML(domElement, propValue) : propKey === CHILDREN ? setTextContent(domElement, propValue) : setValueForProperty(domElement, propKey, propValue, isCustomComponentTag);
}
})(domElement5, updatePayload5, wasCustomComponentTag, isCustomComponentTag2), tag){
case "input":
@ -9490,8 +9490,8 @@
updateContainer(children, fiberRoot, parentComponent, callback);
} else {
if (fiberRoot = (root = container3._reactRootContainer = (function(container, forceHydrate) {
var container2, options, rootElement, shouldHydrate = forceHydrate || !!((rootElement = getReactRootElementInContainer(container)) && 1 === rootElement.nodeType && rootElement.hasAttribute("data-reactroot"));
if (!shouldHydrate) for(var rootSibling, warned = !1; rootSibling = container.lastChild;)!warned && 1 === rootSibling.nodeType && rootSibling.hasAttribute("data-reactroot") && (warned = !0, error1("render(): Target node has markup rendered by React, but there are unrelated nodes as well. This is most commonly caused by white-space inserted around server-rendered markup.")), container.removeChild(rootSibling);
var container2, options, rootElement, shouldHydrate = forceHydrate || !!((rootElement = getReactRootElementInContainer(container)) && 1 === rootElement.nodeType && rootElement.hasAttribute(ROOT_ATTRIBUTE_NAME));
if (!shouldHydrate) for(var rootSibling, warned = !1; rootSibling = container.lastChild;)!warned && 1 === rootSibling.nodeType && rootSibling.hasAttribute(ROOT_ATTRIBUTE_NAME) && (warned = !0, error1("render(): Target node has markup rendered by React, but there are unrelated nodes as well. This is most commonly caused by white-space inserted around server-rendered markup.")), container.removeChild(rootSibling);
return !shouldHydrate || forceHydrate || warnedAboutHydrateAPI || (warnedAboutHydrateAPI = !0, warn("render(): Calling ReactDOM.render() to hydrate server-rendered markup will stop working in React v18. Replace the ReactDOM.render() call with ReactDOM.hydrate() if you want React to attach to the server HTML.")), container2 = container, options = shouldHydrate ? {
hydrate: !0
} : void 0, new ReactDOMBlockingRoot(container2, 0, options);
@ -9617,7 +9617,7 @@
}), (devToolsConfig = {
findFiberByHostInstance: getClosestInstanceFromNode,
bundleType: 1,
version: "17.0.2",
version: ReactVersion,
rendererPackageName: "react-dom"
}).findFiberByHostInstance, ReactSharedInternals.ReactCurrentDispatcher, !function(internals) {
if ("undefined" == typeof __REACT_DEVTOOLS_GLOBAL_HOOK__) return !1;
@ -9741,5 +9741,5 @@
if (!(null != parentComponent && void 0 !== parentComponent._reactInternals)) throw Error("parentComponent must be a valid React Component");
return legacyRenderSubtreeIntoContainer(parentComponent, element, containerNode, !1, callback);
})(parentComponent2, element3, containerNode1, callback2);
}, exports.version = "17.0.2";
}, exports.version = ReactVersion;
});

View File

@ -17,12 +17,14 @@
return null == obj ? results : nativeMap && obj.map === nativeMap ? obj.map(iterator, context) : (each(obj, function(value, index, list) {
results.push(iterator.call(context, value, index, list));
}), results);
}, _.reduce = _.foldl = _.inject = function(obj, iterator, memo, context) {
};
var reduceError = "Reduce of empty array with no initial value";
_.reduce = _.foldl = _.inject = function(obj, iterator, memo, context) {
var initial = arguments.length > 2;
if (null == obj && (obj = []), nativeReduce && obj.reduce === nativeReduce) return context && (iterator = _.bind(iterator, context)), initial ? obj.reduce(iterator, memo) : obj.reduce(iterator);
if (each(obj, function(value, index, list) {
initial ? memo = iterator.call(context, memo, value, index, list) : (memo = value, initial = !0);
}), !initial) throw new TypeError("Reduce of empty array with no initial value");
}), !initial) throw new TypeError(reduceError);
return memo;
}, _.reduceRight = _.foldr = function(obj, iterator, memo, context) {
var initial = arguments.length > 2;
@ -34,7 +36,7 @@
}
if (each(obj, function(value, index, list) {
index = keys ? keys[--length] : --length, initial ? memo = iterator.call(context, memo, obj[index], index, list) : (memo = obj[index], initial = !0);
}), !initial) throw new TypeError("Reduce of empty array with no initial value");
}), !initial) throw new TypeError(reduceError);
return memo;
}, _.find = _.detect = function(obj, iterator, context) {
var result;

View File

@ -10,7 +10,7 @@ var YUI = function() {
return Y.instanceOf = instanceOf, Y;
};
!function() {
var proto, prop1, VERSION = "3.12.0", NOOP = function() {
var proto, prop1, VERSION = "3.12.0", BASE = "http://yui.yahooapis.com/", DOC_LABEL = "yui3-js-enabled", CSS_STAMP_EL = "yui3-css-stamp", NOOP = function() {
}, SLICE = Array.prototype.slice, APPLY_TO_AUTH = {
"io.xdrReady": 1,
"io.xdrResponse": 1,
@ -36,7 +36,7 @@ var YUI = function() {
}, ALREADY_DONE = {
success: !0
};
for(prop1 in docEl && -1 == docClass.indexOf("yui3-js-enabled") && (docClass && (docClass += " "), docClass += "yui3-js-enabled", docEl.className = docClass), VERSION.indexOf("@") > -1 && (VERSION = "3.5.0"), proto = {
for(prop1 in docEl && -1 == docClass.indexOf(DOC_LABEL) && (docClass && (docClass += " "), docClass += DOC_LABEL, docEl.className = docClass), VERSION.indexOf("@") > -1 && (VERSION = "3.5.0"), proto = {
applyConfig: function(o) {
o = o || NOOP;
var attr, name, config = this.config, mods = config.modules, groups = config.groups, aliases = config.aliases, loader = this.Env._loader;
@ -68,8 +68,8 @@ var YUI = function() {
},
versions: {
},
base: "http://yui.yahooapis.com/",
cdn: "http://yui.yahooapis.com/" + VERSION + "/build/",
base: BASE,
cdn: BASE + VERSION + "/build/",
_idx: 0,
_used: {
},
@ -116,7 +116,7 @@ var YUI = function() {
useNativeES5: !0,
win: win,
global: Function("return this")()
}, doc && !doc.getElementById("yui3-css-stamp") ? ((el = doc.createElement("div")).innerHTML = "<div id=\"yui3-css-stamp\" style=\"position: absolute !important; visibility: hidden !important\"></div>", YUI.Env.cssStampEl = el.firstChild, doc.body ? doc.body.appendChild(YUI.Env.cssStampEl) : docEl.insertBefore(YUI.Env.cssStampEl, docEl.firstChild)) : doc && doc.getElementById("yui3-css-stamp") && !YUI.Env.cssStampEl && (YUI.Env.cssStampEl = doc.getElementById("yui3-css-stamp")), Y.config.lang = Y.config.lang || "en-US", Y.config.base = YUI.config.base || Y.Env.getBase(Y.Env._BASE_RE), filter1 && "mindebug".indexOf(filter1) || (filter1 = "min"), filter1 = filter1 ? "-" + filter1 : filter1, Y.config.loaderPath = YUI.config.loaderPath || "loader/loader" + filter1 + ".js";
}, doc && !doc.getElementById(CSS_STAMP_EL) ? ((el = doc.createElement("div")).innerHTML = "<div id=\"" + CSS_STAMP_EL + "\" style=\"position: absolute !important; visibility: hidden !important\"></div>", YUI.Env.cssStampEl = el.firstChild, doc.body ? doc.body.appendChild(YUI.Env.cssStampEl) : docEl.insertBefore(YUI.Env.cssStampEl, docEl.firstChild)) : doc && doc.getElementById(CSS_STAMP_EL) && !YUI.Env.cssStampEl && (YUI.Env.cssStampEl = doc.getElementById(CSS_STAMP_EL)), Y.config.lang = Y.config.lang || "en-US", Y.config.base = YUI.config.base || Y.Env.getBase(Y.Env._BASE_RE), filter1 && "mindebug".indexOf(filter1) || (filter1 = "min"), filter1 = filter1 ? "-" + filter1 : filter1, Y.config.loaderPath = YUI.config.loaderPath || "loader/loader" + filter1 + ".js";
},
_setup: function() {
var i, core = [], mods = YUI.Env.mods, extras = this.config.core || [].concat(YUI.Env.core);
@ -320,7 +320,7 @@ var YUI = function() {
"[object Array]": "array",
"[object Date]": "date",
"[object Error]": "error"
}, SUBREGEX = /\{\s*([^|}]+?)\s*(?:\|([^}]*))?\s*\}/g, TRIM_LEFT_REGEX = new RegExp("^[\t-\r \xa0 -\u2028\u2029 ]+"), TRIM_RIGHT_REGEX = new RegExp("[\t-\r \xa0 -\u2028\u2029 ]+$"), TRIMREGEX = new RegExp(TRIM_LEFT_REGEX.source + "|" + TRIM_RIGHT_REGEX.source, "g"), NATIVE_FN_REGEX = /\{\s*\[(?:native code|function)\]\s*\}/i;
}, SUBREGEX = /\{\s*([^|}]+?)\s*(?:\|([^}]*))?\s*\}/g, WHITESPACE = "\t\n\v\f\r \xa0 \u2028\u2029 ", WHITESPACE_CLASS = "[\t-\r \xa0 -\u2028\u2029 ]+", TRIM_LEFT_REGEX = new RegExp("^" + WHITESPACE_CLASS), TRIM_RIGHT_REGEX = new RegExp(WHITESPACE_CLASS + "$"), TRIMREGEX = new RegExp(TRIM_LEFT_REGEX.source + "|" + TRIM_RIGHT_REGEX.source, "g"), NATIVE_FN_REGEX = /\{\s*\[(?:native code|function)\]\s*\}/i;
L._isNative = function(fn) {
return !!(Y.config.useNativeES5 && fn && NATIVE_FN_REGEX.test(fn));
}, L.isArray = L._isNative(Array.isArray) ? Array.isArray : function(o) {
@ -359,7 +359,7 @@ var YUI = function() {
return s.replace ? s.replace(SUBREGEX, function(match, key) {
return L.isUndefined(o[key]) ? match : o[key];
}) : s;
}, L.trim = L._isNative(STRING_PROTO.trim) && !"\t\n\v\f\r \xa0 \u2028\u2029 ".trim() ? function(s) {
}, L.trim = L._isNative(STRING_PROTO.trim) && !WHITESPACE.trim() ? function(s) {
return s && s.trim ? s.trim() : s;
} : function(s) {
try {
@ -367,11 +367,11 @@ var YUI = function() {
} catch (e) {
return s;
}
}, L.trimLeft = L._isNative(STRING_PROTO.trimLeft) && !"\t\n\v\f\r \xa0 \u2028\u2029 ".trimLeft() ? function(s) {
}, L.trimLeft = L._isNative(STRING_PROTO.trimLeft) && !WHITESPACE.trimLeft() ? function(s) {
return s.trimLeft();
} : function(s) {
return s.replace(TRIM_LEFT_REGEX, "");
}, L.trimRight = L._isNative(STRING_PROTO.trimRight) && !"\t\n\v\f\r \xa0 \u2028\u2029 ".trimRight() ? function(s) {
}, L.trimRight = L._isNative(STRING_PROTO.trimRight) && !WHITESPACE.trimRight() ? function(s) {
return s.trimRight();
} : function(s) {
return s.replace(TRIM_RIGHT_REGEX, "");
@ -1258,7 +1258,7 @@ var YUI = function() {
"yui-base"
]
}), YUI.add("yui-log", function(Y2, NAME) {
var INSTANCE = Y2, LEVELS = {
var INSTANCE = Y2, LOGEVENT = "yui:log", UNDEFINED = "undefined", LEVELS = {
debug: 1,
info: 2,
warn: 4,
@ -1266,9 +1266,9 @@ var YUI = function() {
};
INSTANCE.log = function(msg, cat, src, silent) {
var bail, excl, incl, m, f, minlevel, Y = INSTANCE, c = Y.config, publisher = Y.fire ? Y : YUI.Env.globalEvents;
return c.debug && (void 0 !== (src = src || "") && (excl = c.logExclude, incl = c.logInclude, !incl || src in incl ? incl && src in incl ? bail = !incl[src] : excl && src in excl && (bail = excl[src]) : bail = 1, Y.config.logLevel = Y.config.logLevel || "debug", minlevel = LEVELS[Y.config.logLevel.toLowerCase()], cat in LEVELS && LEVELS[cat] < minlevel && (bail = 1)), bail || (c.useBrowserConsole && (m = src ? src + ": " + msg : msg, Y.Lang.isFunction(c.logFn) ? c.logFn.call(Y, msg, cat, src) : "undefined" != typeof console && console.log ? (f = cat && console[cat] && cat in LEVELS ? cat : "log", console[f](m)) : "undefined" != typeof opera && opera.postError(m)), publisher && !silent && (publisher !== Y || publisher.getEvent("yui:log") || publisher.publish("yui:log", {
return c.debug && (void 0 !== (src = src || "") && (excl = c.logExclude, incl = c.logInclude, !incl || src in incl ? incl && src in incl ? bail = !incl[src] : excl && src in excl && (bail = excl[src]) : bail = 1, Y.config.logLevel = Y.config.logLevel || "debug", minlevel = LEVELS[Y.config.logLevel.toLowerCase()], cat in LEVELS && LEVELS[cat] < minlevel && (bail = 1)), bail || (c.useBrowserConsole && (m = src ? src + ": " + msg : msg, Y.Lang.isFunction(c.logFn) ? c.logFn.call(Y, msg, cat, src) : typeof console !== UNDEFINED && console.log ? (f = cat && console[cat] && cat in LEVELS ? cat : "log", console[f](m)) : typeof opera !== UNDEFINED && opera.postError(m)), publisher && !silent && (publisher !== Y || publisher.getEvent(LOGEVENT) || publisher.publish(LOGEVENT, {
broadcast: 2
}), publisher.fire("yui:log", {
}), publisher.fire(LOGEVENT, {
msg: msg,
cat: cat,
src: src
@ -1300,8 +1300,8 @@ var YUI = function() {
"yui-base"
]
}), YUI.add("loader-base", function(Y, NAME) {
var VERSION, CDN_BASE, COMBO_BASE, META, groups, yui2Update, galleryUpdate;
VERSION = Y.version, CDN_BASE = Y.Env.base, COMBO_BASE = CDN_BASE + "combo?", META = {
var VERSION, BUILD, CDN_BASE, COMBO_BASE, META, groups, yui2Update, galleryUpdate;
VERSION = Y.version, BUILD = "/build/", CDN_BASE = Y.Env.base, COMBO_BASE = CDN_BASE + "combo?", META = {
version: VERSION,
root: VERSION + "/",
base: Y.Env.base,
@ -1324,10 +1324,10 @@ var YUI = function() {
patterns: {
}
}, groups = META.groups, yui2Update = function(tnt, yui2, config) {
var root = "2in3." + (tnt || "4") + "/" + (yui2 || "2.9.0") + "/build/", base = config && config.base ? config.base : CDN_BASE, combo = config && config.comboBase ? config.comboBase : COMBO_BASE;
var root = "2in3." + (tnt || "4") + "/" + (yui2 || "2.9.0") + BUILD, base = config && config.base ? config.base : CDN_BASE, combo = config && config.comboBase ? config.comboBase : COMBO_BASE;
groups.yui2.base = base + root, groups.yui2.root = root, groups.yui2.comboBase = combo;
}, galleryUpdate = function(tag, config) {
var root = (tag || "gallery-2013.08.22-21-03") + "/build/", base = config && config.base ? config.base : CDN_BASE, combo = config && config.comboBase ? config.comboBase : COMBO_BASE;
var root = (tag || "gallery-2013.08.22-21-03") + BUILD, base = config && config.base ? config.base : CDN_BASE, combo = config && config.comboBase ? config.comboBase : COMBO_BASE;
groups.gallery.base = base + root, groups.gallery.root = root, groups.gallery.comboBase = combo;
}, groups[VERSION] = {
}, groups.gallery = {
@ -1362,7 +1362,7 @@ var YUI = function() {
"skin"
], 0, !0), YUI.Env[VERSION] = META;
var modulekey, NOT_FOUND = {
}, NO_REQUIREMENTS = [], GLOBAL_ENV = YUI.Env, GLOBAL_LOADED = GLOBAL_ENV._loaded, VERSION1 = Y.version, YObject = Y.Object, oeach = YObject.each, yArray = Y.Array, _queue = GLOBAL_ENV._loaderQueue, META1 = GLOBAL_ENV[VERSION1], L = Y.Lang, ON_PAGE = GLOBAL_ENV.mods, _path = function(dir, file, type, nomin) {
}, NO_REQUIREMENTS = [], GLOBAL_ENV = YUI.Env, GLOBAL_LOADED = GLOBAL_ENV._loaded, INTL = "intl", VERSION1 = Y.version, YObject = Y.Object, oeach = YObject.each, yArray = Y.Array, _queue = GLOBAL_ENV._loaderQueue, META1 = GLOBAL_ENV[VERSION1], L = Y.Lang, ON_PAGE = GLOBAL_ENV.mods, _path = function(dir, file, type, nomin) {
var path = dir + "/" + file;
return nomin || (path += "-min"), path += "." + (type || "css");
};
@ -1544,12 +1544,12 @@ var YUI = function() {
var i, m, j, add, packName, lang, cond, d, def, r, old_mod, o, skinmod, skindef, skinpar, skinname, hash, reparse, testresults = this.testresults, name = mod.name, adddef = ON_PAGE[name] && ON_PAGE[name].details, intl = mod.lang || mod.intl, info = this.moduleInfo, ftests = Y.Features && Y.Features.tests.load;
if (mod.temp && adddef && (old_mod = mod, (mod = this.addModule(adddef, name)).group = old_mod.group, mod.pkg = old_mod.pkg, delete mod.expanded), reparse = !((!this.lang || mod.langCache === this.lang) && mod.skinCache === this.skin.defaultSkin), mod.expanded && !reparse) return mod.expanded;
for(d = [], hash = {
}, r = this.filterRequires(mod.requires), mod.lang && (d.unshift("intl"), r.unshift("intl"), intl = !0), o = this.filterRequires(mod.optional), mod._parsed = !0, mod.langCache = this.lang, mod.skinCache = this.skin.defaultSkin, i = 0; i < r.length; i++)if (!hash[r[i]] && (d.push(r[i]), hash[r[i]] = !0, m = this.getModule(r[i]))) for(j = 0, add = this.getRequires(m), intl = intl || m.expanded_map && ("intl" in m.expanded_map); j < add.length; j++)d.push(add[j]);
}, r = this.filterRequires(mod.requires), mod.lang && (d.unshift("intl"), r.unshift("intl"), intl = !0), o = this.filterRequires(mod.optional), mod._parsed = !0, mod.langCache = this.lang, mod.skinCache = this.skin.defaultSkin, i = 0; i < r.length; i++)if (!hash[r[i]] && (d.push(r[i]), hash[r[i]] = !0, m = this.getModule(r[i]))) for(j = 0, add = this.getRequires(m), intl = intl || m.expanded_map && (INTL in m.expanded_map); j < add.length; j++)d.push(add[j]);
if (r = this.filterRequires(mod.supersedes)) {
for(i = 0; i < r.length; i++)if (!hash[r[i]] && (mod.submodules && d.push(r[i]), hash[r[i]] = !0, m = this.getModule(r[i]))) for(j = 0, add = this.getRequires(m), intl = intl || m.expanded_map && ("intl" in m.expanded_map); j < add.length; j++)d.push(add[j]);
for(i = 0; i < r.length; i++)if (!hash[r[i]] && (mod.submodules && d.push(r[i]), hash[r[i]] = !0, m = this.getModule(r[i]))) for(j = 0, add = this.getRequires(m), intl = intl || m.expanded_map && (INTL in m.expanded_map); j < add.length; j++)d.push(add[j]);
}
if (o && this.loadOptional) {
for(i = 0; i < o.length; i++)if (!hash[o[i]] && (d.push(o[i]), hash[o[i]] = !0, m = info[o[i]])) for(j = 0, add = this.getRequires(m), intl = intl || m.expanded_map && ("intl" in m.expanded_map); j < add.length; j++)d.push(add[j]);
for(i = 0; i < o.length; i++)if (!hash[o[i]] && (d.push(o[i]), hash[o[i]] = !0, m = info[o[i]])) for(j = 0, add = this.getRequires(m), intl = intl || m.expanded_map && (INTL in m.expanded_map); j < add.length; j++)d.push(add[j]);
}
if (cond = this.conditions[name]) {
if (mod._parsed = !1, testresults && ftests) oeach(testresults, function(result, id) {
@ -1563,7 +1563,7 @@ var YUI = function() {
if (skindef && (skindef[name] || skinpar && skindef[skinpar])) for(skinname = name, skindef[skinpar] && (skinname = skinpar), i = 0; i < skindef[skinname].length; i++)skinmod = this._addSkin(skindef[skinname][i], name), this.isCSSLoaded(skinmod, this._boot) || d.push(skinmod);
else skinmod = this._addSkin(this.skin.defaultSkin, name), this.isCSSLoaded(skinmod, this._boot) || d.push(skinmod);
}
return mod._parsed = !1, intl && (mod.lang && !mod.langPack && Y.Intl && (lang = Y.Intl.lookupBestLang(this.lang || "", mod.lang), (packName = this.getLangPackName(lang, name)) && d.unshift(packName)), d.unshift("intl")), mod.expanded_map = yArray.hash(d), mod.expanded = YObject.keys(mod.expanded_map), mod.expanded;
return mod._parsed = !1, intl && (mod.lang && !mod.langPack && Y.Intl && (lang = Y.Intl.lookupBestLang(this.lang || "", mod.lang), (packName = this.getLangPackName(lang, name)) && d.unshift(packName)), d.unshift(INTL)), mod.expanded_map = yArray.hash(d), mod.expanded = YObject.keys(mod.expanded_map), mod.expanded;
},
isCSSLoaded: function(name, skip) {
if (!name || !YUI.Env.cssStampEl || !skip && this.ignoreRegistered) return !1;

View File

@ -1,19 +1,18 @@
define(["require", "exports", "handlebars"], function (require, exports, hb) {
return (window.Handlebars = hb);
}),
def(function (hb) {
return (window.Handlebars = hb);
}),
def(function (hb) {
return (window.Handlebars = hb);
}),
def(function (hb) {
return (g().Handlebars = hb);
}),
def(function (hb) {
var prop = g1();
return (g2()[prop] = hb);
}),
def(function (hb) {
return (g2()[g1()] = hb);
});
define([
"require",
"exports",
"handlebars"
], function(require, exports, hb) {
return window.Handlebars = hb;
}), def(function(hb) {
return window.Handlebars = hb;
}), def(function(hb) {
return window.Handlebars = hb;
}), def(function(hb) {
return g().Handlebars = hb;
}), def(function(hb) {
var prop = g1();
return g2()[prop] = hb;
}), def(function(hb) {
return g2()[g1()] = hb;
});

View File

@ -5,6 +5,7 @@ function foo(a) {
console.log(1 & a);
}
function bar() {
console.log("0123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789");
const s = "01234567890123456789";
console.log(s + s + s + s + s);
console.log("abcabcabcabcabc");
}