1017 lines
No EOL
29 KiB
JavaScript
1017 lines
No EOL
29 KiB
JavaScript
/*
|
|
RequireJS Copyright (c) 2010, The Dojo Foundation All Rights Reserved.
|
|
Available via the MIT or new BSD license.
|
|
see: http://github.com/jrburke/requirejs for details
|
|
RequireJS i18n Copyright (c) 2010, The Dojo Foundation All Rights Reserved.
|
|
Available via the MIT or new BSD license.
|
|
see: http://github.com/jrburke/requirejs for details
|
|
RequireJS text Copyright (c) 2010, The Dojo Foundation All Rights Reserved.
|
|
Available via the MIT or new BSD license.
|
|
see: http://github.com/jrburke/requirejs for details
|
|
RequireJS jsonp Copyright (c) 2010, The Dojo Foundation All Rights Reserved.
|
|
Available via the MIT or new BSD license.
|
|
see: http://github.com/jrburke/requirejs for details
|
|
RequireJS order Copyright (c) 2010, The Dojo Foundation All Rights Reserved.
|
|
Available via the MIT or new BSD license.
|
|
see: http://github.com/jrburke/requirejs for details
|
|
*/
|
|
var require, define;
|
|
(function() {
|
|
function A(a) {
|
|
return O.call(a) === "[object Function]"
|
|
}
|
|
function v(a, b, d) {
|
|
var c = h.plugins.defined[a];
|
|
if(c) {
|
|
c[d.name].apply(null, d.args)
|
|
}else {
|
|
c = h.plugins.waiting[a] || (h.plugins.waiting[a] = []);
|
|
c.push(d);
|
|
f(["require/" + a], b.contextName)
|
|
}
|
|
}
|
|
function z(a, b) {
|
|
L.apply(f, a);
|
|
b.loaded[a[0]] = true
|
|
}
|
|
function k(a, b, d) {
|
|
var c, e, i;
|
|
for(c = 0;i = b[c];c++) {
|
|
i = typeof i === "string" ? {name:i} : i;
|
|
e = i.location;
|
|
if(d && (!e || e.indexOf("/") !== 0 && e.indexOf(":") === -1)) {
|
|
i.location = d + "/" + (i.location || i.name)
|
|
}i.location = i.location || i.name;
|
|
i.lib = i.lib || "lib";
|
|
i.main = i.main || "main";
|
|
a[i.name] = i
|
|
}
|
|
}
|
|
function g(a) {
|
|
var b = true, d = a.config.priorityWait, c, e;
|
|
if(d) {
|
|
for(e = 0;c = d[e];e++) {
|
|
if(!a.loaded[c]) {
|
|
b = false;
|
|
break
|
|
}
|
|
}b && delete a.config.priorityWait
|
|
}return b
|
|
}
|
|
function j(a) {
|
|
var b, d = h.paused;
|
|
if(a.scriptCount <= 0) {
|
|
for(a.scriptCount = 0;I.length;) {
|
|
b = I.shift();
|
|
b[0] === null ? f.onError(new Error("Mismatched anonymous require.def modules")) : z(b, a)
|
|
}if(!(a.config.priorityWait && !g(a))) {
|
|
if(d.length) {
|
|
for(a = 0;b = d[a];a++) {
|
|
f.checkDeps.apply(f, b)
|
|
}
|
|
}f.checkLoaded(h.ctxName)
|
|
}
|
|
}
|
|
}
|
|
function p(a, b) {
|
|
var d = h.plugins.callbacks[a] = [];
|
|
h.plugins[a] = function() {
|
|
for(var c = 0, e;e = d[c];c++) {
|
|
if(e.apply(null, arguments) === true && b) {
|
|
return true
|
|
}
|
|
}return false
|
|
}
|
|
}
|
|
function m(a, b) {
|
|
if(!a.jQuery) {
|
|
if((b = b || (typeof jQuery !== "undefined" ? jQuery : null)) && "readyWait" in b) {
|
|
a.jQuery = b;
|
|
if(!a.defined.jquery && !a.jQueryDef) {
|
|
a.defined.jquery = b
|
|
}if(a.scriptCount) {
|
|
b.readyWait += 1;
|
|
a.jQueryIncremented = true
|
|
}
|
|
}
|
|
}
|
|
}
|
|
function o(a) {
|
|
return function(b) {
|
|
a.exports = b
|
|
}
|
|
}
|
|
function t(a, b, d) {
|
|
return function() {
|
|
var c = [].concat(U.call(arguments, 0));
|
|
c.push(b, d);
|
|
return(a ? require[a] : require).apply(null, c)
|
|
}
|
|
}
|
|
function w(a, b) {
|
|
var d = a.contextName, c = t(null, d, b);
|
|
f.mixin(c, {modify:t("modify", d, b), def:t("def", d, b), get:t("get", d, b), nameToUrl:t("nameToUrl", d, b), ready:f.ready, context:a, config:a.config, isBrowser:h.isBrowser});
|
|
return c
|
|
}
|
|
var r = {}, h, s, u = [], G, E, J, C, P, F = {}, Q, V = /(\/\*([\s\S]*?)\*\/|\/\/(.*)$)/mg, W = /require\(["']([\w\!\-_\.\/]+)["']\)/g, L, D = !!(typeof window !== "undefined" && navigator && document), R = !D && typeof importScripts !== "undefined", X = D && navigator.platform === "PLAYSTATION 3" ? /^complete$/ : /^(complete|loaded)$/, O = Object.prototype.toString, S = Array.prototype, U = S.slice, M, f, K, I = [], T = false, N;
|
|
if(typeof require !== "undefined") {
|
|
if(A(require)) {
|
|
return
|
|
}else {
|
|
F = require
|
|
}
|
|
}f = require = function(a, b, d, c, e) {
|
|
var i;
|
|
if(typeof a === "string" && !A(b)) {
|
|
return require.get(a, b, d, c)
|
|
}if(!require.isArray(a)) {
|
|
i = a;
|
|
if(require.isArray(b)) {
|
|
a = b;
|
|
b = d;
|
|
d = c;
|
|
c = e
|
|
}else {
|
|
a = []
|
|
}
|
|
}L(null, a, b, i, d, c);
|
|
(a = h.contexts[d || i && i.context || h.ctxName]) && a.scriptCount === 0 && j(a)
|
|
};
|
|
f.onError = function(a) {
|
|
throw a;
|
|
};
|
|
define = f.def = function(a, b, d, c) {
|
|
var e, i, l = N;
|
|
if(typeof a !== "string") {
|
|
c = d;
|
|
d = b;
|
|
b = a;
|
|
a = null
|
|
}if(!f.isArray(b)) {
|
|
c = d;
|
|
d = b;
|
|
b = []
|
|
}if(!a && !b.length && f.isFunction(d)) {
|
|
d.toString().replace(V, "").replace(W, function(n, x) {
|
|
b.push(x)
|
|
});
|
|
b = ["require", "exports", "module"].concat(b)
|
|
}if(!a && T) {
|
|
e = document.getElementsByTagName("script");
|
|
for(a = e.length - 1;a > -1 && (i = e[a]);a--) {
|
|
if(i.readyState === "interactive") {
|
|
l = i;
|
|
break
|
|
}
|
|
}l || f.onError(new Error("ERROR: No matching script interactive for " + d));
|
|
a = l.getAttribute("data-requiremodule")
|
|
}if(typeof a === "string") {
|
|
h.contexts[h.ctxName].jQueryDef = a === "jquery"
|
|
}I.push([a, b, d, null, c])
|
|
};
|
|
L = function(a, b, d, c, e, i) {
|
|
var l, n, x, y, q;
|
|
e = e ? e : c && c.context ? c.context : h.ctxName;
|
|
l = h.contexts[e];
|
|
if(a) {
|
|
n = a.indexOf("!");
|
|
if(n !== -1) {
|
|
x = a.substring(0, n);
|
|
a = a.substring(n + 1, a.length)
|
|
}else {
|
|
x = l.defPlugin[a]
|
|
}n = l.waiting[a];
|
|
if(l && (l.defined[a] || n && n !== S[a])) {
|
|
return
|
|
}
|
|
}if(e !== h.ctxName) {
|
|
n = h.contexts[h.ctxName] && h.contexts[h.ctxName].loaded;
|
|
y = true;
|
|
if(n) {
|
|
for(q in n) {
|
|
if(!(q in r)) {
|
|
if(!n[q]) {
|
|
y = false;
|
|
break
|
|
}
|
|
}
|
|
}
|
|
}if(y) {
|
|
h.ctxName = e
|
|
}
|
|
}if(!l) {
|
|
l = {contextName:e, config:{waitSeconds:7, baseUrl:h.baseUrl || "./", paths:{}, packages:{}}, waiting:[], specified:{require:true, exports:true, module:true}, loaded:{}, scriptCount:0, urlFetched:{}, defPlugin:{}, defined:{}, modifiers:{}};
|
|
h.plugins.newContext && h.plugins.newContext(l);
|
|
l = h.contexts[e] = l
|
|
}if(c) {
|
|
if(c.baseUrl) {
|
|
if(c.baseUrl.charAt(c.baseUrl.length - 1) !== "/") {
|
|
c.baseUrl += "/"
|
|
}
|
|
}y = l.config.paths;
|
|
n = l.config.packages;
|
|
f.mixin(l.config, c, true);
|
|
if(c.paths) {
|
|
for(q in c.paths) {
|
|
q in r || (y[q] = c.paths[q])
|
|
}l.config.paths = y
|
|
}if((y = c.packagePaths) || c.packages) {
|
|
if(y) {
|
|
for(q in y) {
|
|
q in r || k(n, y[q], q)
|
|
}
|
|
}c.packages && k(n, c.packages);
|
|
l.config.packages = n
|
|
}if(c.priority) {
|
|
f(c.priority);
|
|
l.config.priorityWait = c.priority
|
|
}if(c.deps || c.callback) {
|
|
f(c.deps || [], c.callback)
|
|
}c.ready && f.ready(c.ready);
|
|
if(!b) {
|
|
return
|
|
}
|
|
}if(b) {
|
|
q = b;
|
|
b = [];
|
|
for(c = 0;c < q.length;c++) {
|
|
b[c] = f.splitPrefix(q[c], a || i, l)
|
|
}
|
|
}i = l.waiting.push({name:a, deps:b, callback:d});
|
|
if(a) {
|
|
l.waiting[a] = i - 1;
|
|
l.specified[a] = true;
|
|
if(i = l.modifiers[a]) {
|
|
f(i, e);
|
|
if(i = i.__deferMods) {
|
|
for(c = 0;c < i.length;c++) {
|
|
q = i[c];
|
|
n = q[q.length - 1];
|
|
if(n === undefined) {
|
|
q[q.length - 1] = e
|
|
}else {
|
|
typeof n === "string" && i.push(e)
|
|
}require.def.apply(require, q)
|
|
}
|
|
}
|
|
}
|
|
}if(a && d && !f.isFunction(d)) {
|
|
l.defined[a] = d
|
|
}x && v(x, l, {name:"require", args:[a, b, d, l]});
|
|
h.paused.push([x, a, b, l]);
|
|
if(a) {
|
|
l.loaded[a] = true;
|
|
l.jQueryDef = a === "jquery"
|
|
}
|
|
};
|
|
f.mixin = function(a, b, d) {
|
|
for(var c in b) {
|
|
if(!(c in r) && (!(c in a) || d)) {
|
|
a[c] = b[c]
|
|
}
|
|
}return f
|
|
};
|
|
f.version = "0.14.5+";
|
|
h = f.s = {ctxName:"_", contexts:{}, paused:[], plugins:{defined:{}, callbacks:{}, waiting:{}}, skipAsync:{}, isBrowser:D, isPageLoaded:!D, readyCalls:[], doc:D ? document : null};
|
|
f.isBrowser = h.isBrowser;
|
|
if(D) {
|
|
h.head = document.getElementsByTagName("head")[0];
|
|
if(K = document.getElementsByTagName("base")[0]) {
|
|
h.head = K.parentNode
|
|
}
|
|
}f.plugin = function(a) {
|
|
var b, d, c, e = a.prefix, i = h.plugins.callbacks, l = h.plugins.waiting[e], n;
|
|
b = h.plugins.defined;
|
|
c = h.contexts;
|
|
if(b[e]) {
|
|
return f
|
|
}b[e] = a;
|
|
n = ["newContext", "isWaiting", "orderDeps"];
|
|
for(b = 0;d = n[b];b++) {
|
|
h.plugins[d] || p(d, d === "isWaiting");
|
|
i[d].push(a[d])
|
|
}if(a.newContext) {
|
|
for(d in c) {
|
|
if(!(d in r)) {
|
|
b = c[d];
|
|
a.newContext(b)
|
|
}
|
|
}
|
|
}if(l) {
|
|
for(b = 0;c = l[b];b++) {
|
|
a[c.name] && a[c.name].apply(null, c.args)
|
|
}delete h.plugins.waiting[e]
|
|
}return f
|
|
};
|
|
f.completeLoad = function(a, b) {
|
|
for(var d;I.length;) {
|
|
d = I.shift();
|
|
if(d[0] === null) {
|
|
d[0] = a;
|
|
break
|
|
}else {
|
|
if(d[0] === a) {
|
|
break
|
|
}else {
|
|
z(d, b)
|
|
}
|
|
}
|
|
}d && z(d, b);
|
|
b.loaded[a] = true;
|
|
m(b);
|
|
b.scriptCount -= 1;
|
|
j(b)
|
|
};
|
|
f.pause = f.resume = function() {
|
|
};
|
|
f.checkDeps = function(a, b, d, c) {
|
|
if(a) {
|
|
v(a, c, {name:"checkDeps", args:[b, d, c]})
|
|
}else {
|
|
for(a = 0;b = d[a];a++) {
|
|
if(!c.specified[b.fullName]) {
|
|
c.specified[b.fullName] = true;
|
|
c.startTime = (new Date).getTime();
|
|
b.prefix ? v(b.prefix, c, {name:"load", args:[b.name, c.contextName]}) : f.load(b.name, c.contextName)
|
|
}
|
|
}
|
|
}
|
|
};
|
|
f.modify = function(a, b, d, c, e) {
|
|
var i, l, n = (typeof a === "string" ? e : b) || h.ctxName, x = h.contexts[n], y = x.modifiers;
|
|
if(typeof a === "string") {
|
|
l = y[a] || (y[a] = []);
|
|
if(!l[b]) {
|
|
l.push(b);
|
|
l[b] = true
|
|
}x.specified[a] ? f.def(b, d, c, e) : (l.__deferMods || (l.__deferMods = [])).push([b, d, c, e])
|
|
}else {
|
|
for(i in a) {
|
|
if(!(i in r)) {
|
|
b = a[i];
|
|
l = y[i] || (x.modifiers[i] = []);
|
|
if(!l[b]) {
|
|
l.push(b);
|
|
l[b] = true;
|
|
x.specified[i] && f([b], n)
|
|
}
|
|
}
|
|
}
|
|
}
|
|
};
|
|
f.isArray = function(a) {
|
|
return O.call(a) === "[object Array]"
|
|
};
|
|
f.isFunction = A;
|
|
f.get = function(a, b, d) {
|
|
if(a === "require" || a === "exports" || a === "module") {
|
|
f.onError(new Error("Explicit require of " + a + " is not allowed."))
|
|
}b = b || h.ctxName;
|
|
var c;
|
|
c = h.contexts[b];
|
|
d = f.splitPrefix(a, d, c);
|
|
c = c.defined[d.name];
|
|
c === undefined && f.onError(new Error("require: module name '" + a + "' has not been loaded yet for context: " + b));
|
|
return c
|
|
};
|
|
f.load = function(a, b) {
|
|
var d = h.contexts[b], c = d.urlFetched, e = d.loaded;
|
|
h.isDone = false;
|
|
e[a] || (e[a] = false);
|
|
if(b !== h.ctxName) {
|
|
u.push(arguments)
|
|
}else {
|
|
e = f.nameToUrl(a, null, b);
|
|
if(!c[e]) {
|
|
d.scriptCount += 1;
|
|
f.attach(e, b, a);
|
|
c[e] = true;
|
|
if(d.jQuery && !d.jQueryIncremented) {
|
|
d.jQuery.readyWait += 1;
|
|
d.jQueryIncremented = true
|
|
}
|
|
}
|
|
}
|
|
};
|
|
f.jsExtRegExp = /^\/|:|\?|\.js$/;
|
|
f.normalizeName = function(a, b, d) {
|
|
if(a.charAt(0) === ".") {
|
|
if(b) {
|
|
if(d.config.packages[b]) {
|
|
b = [b]
|
|
}else {
|
|
b = b.split("/");
|
|
b = b.slice(0, b.length - 1)
|
|
}a = b.concat(a.split("/"));
|
|
for(s = 0;b = a[s];s++) {
|
|
if(b === ".") {
|
|
a.splice(s, 1);
|
|
s -= 1
|
|
}else {
|
|
if(b === "..") {
|
|
if(s === 1) {
|
|
break
|
|
}else {
|
|
if(s > 1) {
|
|
a.splice(s - 1, 2);
|
|
s -= 2
|
|
}
|
|
}
|
|
}
|
|
}
|
|
}a = a.join("/")
|
|
}
|
|
}return a
|
|
};
|
|
f.splitPrefix = function(a, b, d) {
|
|
var c = a.indexOf("!"), e = null;
|
|
if(c !== -1) {
|
|
e = a.substring(0, c);
|
|
a = a.substring(c + 1, a.length)
|
|
}a = f.normalizeName(a, b, d);
|
|
return{prefix:e, name:a, fullName:e ? e + "!" + a : a}
|
|
};
|
|
f.nameToUrl = function(a, b, d, c) {
|
|
var e, i, l, n;
|
|
n = h.contexts[d];
|
|
d = n.config;
|
|
a = f.normalizeName(a, c, n);
|
|
if(f.jsExtRegExp.test(a)) {
|
|
a = a + (b ? b : "")
|
|
}else {
|
|
e = d.paths;
|
|
i = d.packages;
|
|
c = a.split("/");
|
|
for(n = c.length;n > 0;n--) {
|
|
l = c.slice(0, n).join("/");
|
|
if(e[l]) {
|
|
c.splice(0, n, e[l]);
|
|
break
|
|
}else {
|
|
if(l = i[l]) {
|
|
e = l.location + "/" + l.lib;
|
|
if(a === l.name) {
|
|
e += "/" + l.main
|
|
}c.splice(0, n, e);
|
|
break
|
|
}
|
|
}
|
|
}a = c.join("/") + (b || ".js");
|
|
a = (a.charAt(0) === "/" || a.match(/^\w+:/) ? "" : d.baseUrl) + a
|
|
}return d.urlArgs ? a + ((a.indexOf("?") === -1 ? "?" : "&") + d.urlArgs) : a
|
|
};
|
|
f.blockCheckLoaded = true;
|
|
f.checkLoaded = function(a) {
|
|
var b = h.contexts[a || h.ctxName], d = b.config.waitSeconds * 1E3, c = d && b.startTime + d < (new Date).getTime(), e, i = b.defined, l = b.modifiers, n = "", x = false, y = false, q, B = h.plugins.isWaiting, H = h.plugins.orderDeps;
|
|
if(!b.isCheckLoaded) {
|
|
if(b.config.priorityWait) {
|
|
if(g(b)) {
|
|
j(b)
|
|
}else {
|
|
return
|
|
}
|
|
}b.isCheckLoaded = f.blockCheckLoaded;
|
|
d = b.waiting;
|
|
e = b.loaded;
|
|
for(q in e) {
|
|
if(!(q in r)) {
|
|
x = true;
|
|
if(!e[q]) {
|
|
if(c) {
|
|
n += q + " "
|
|
}else {
|
|
y = true;
|
|
break
|
|
}
|
|
}
|
|
}
|
|
}if(!x && !d.length && (!B || !B(b))) {
|
|
b.isCheckLoaded = false
|
|
}else {
|
|
if(c && n) {
|
|
e = new Error("require.js load timeout for modules: " + n);
|
|
e.requireType = "timeout";
|
|
e.requireModules = n;
|
|
f.onError(e)
|
|
}if(y) {
|
|
b.isCheckLoaded = false;
|
|
if(D || R) {
|
|
setTimeout(function() {
|
|
f.checkLoaded(a)
|
|
}, 50)
|
|
}
|
|
}else {
|
|
b.waiting = [];
|
|
b.loaded = {};
|
|
H && H(b);
|
|
for(q in l) {
|
|
q in r || i[q] && f.execModifiers(q, {}, d, b)
|
|
}for(e = 0;i = d[e];e++) {
|
|
f.exec(i, {}, d, b)
|
|
}b.isCheckLoaded = false;
|
|
if(b.waiting.length || B && B(b)) {
|
|
f.checkLoaded(a)
|
|
}else {
|
|
if(u.length) {
|
|
e = b.loaded;
|
|
b = true;
|
|
for(q in e) {
|
|
if(!(q in r)) {
|
|
if(!e[q]) {
|
|
b = false;
|
|
break
|
|
}
|
|
}
|
|
}if(b) {
|
|
h.ctxName = u[0][1];
|
|
q = u;
|
|
u = [];
|
|
for(e = 0;b = q[e];e++) {
|
|
f.load.apply(f, b)
|
|
}
|
|
}
|
|
}else {
|
|
h.ctxName = "_";
|
|
h.isDone = true;
|
|
f.callReady && f.callReady()
|
|
}
|
|
}
|
|
}
|
|
}
|
|
}
|
|
};
|
|
f.exec = function(a, b, d, c) {
|
|
if(a) {
|
|
var e = a.name, i = a.callback;
|
|
i = a.deps;
|
|
var l, n, x = c.defined, y, q = [], B, H = false;
|
|
if(e) {
|
|
if(b[e] || e in x) {
|
|
return x[e]
|
|
}b[e] = true
|
|
}if(i) {
|
|
for(l = 0;n = i[l];l++) {
|
|
n = n.name;
|
|
if(n === "require") {
|
|
n = w(c, e)
|
|
}else {
|
|
if(n === "exports") {
|
|
n = x[e] = {};
|
|
H = true
|
|
}else {
|
|
if(n === "module") {
|
|
B = n = {id:e, uri:e ? f.nameToUrl(e, null, c.contextName) : undefined};
|
|
B.setExports = o(B)
|
|
}else {
|
|
n = n in x ? x[n] : b[n] ? undefined : f.exec(d[d[n]], b, d, c)
|
|
}
|
|
}
|
|
}q.push(n)
|
|
}
|
|
}if((i = a.callback) && f.isFunction(i)) {
|
|
y = f.execCb(e, i, q);
|
|
if(e) {
|
|
if(H && y === undefined && (!B || !("exports" in B))) {
|
|
y = x[e]
|
|
}else {
|
|
if(B && "exports" in B) {
|
|
y = x[e] = B.exports
|
|
}else {
|
|
e in x && !H && f.onError(new Error(e + " has already been defined"));
|
|
x[e] = y
|
|
}
|
|
}
|
|
}
|
|
}f.execModifiers(e, b, d, c);
|
|
return y
|
|
}
|
|
};
|
|
f.execCb = function(a, b, d) {
|
|
return b.apply(null, d)
|
|
};
|
|
f.execModifiers = function(a, b, d, c) {
|
|
var e = c.modifiers, i = e[a], l, n;
|
|
if(i) {
|
|
for(n = 0;n < i.length;n++) {
|
|
l = i[n];
|
|
l in d && f.exec(d[d[l]], b, d, c)
|
|
}delete e[a]
|
|
}
|
|
};
|
|
f.onScriptLoad = function(a) {
|
|
var b = a.currentTarget || a.srcElement, d;
|
|
if(a.type === "load" || X.test(b.readyState)) {
|
|
d = b.getAttribute("data-requirecontext");
|
|
a = b.getAttribute("data-requiremodule");
|
|
d = h.contexts[d];
|
|
f.completeLoad(a, d);
|
|
b.removeEventListener ? b.removeEventListener("load", f.onScriptLoad, false) : b.detachEvent("onreadystatechange", f.onScriptLoad)
|
|
}
|
|
};
|
|
f.attach = function(a, b, d, c, e) {
|
|
var i;
|
|
if(D) {
|
|
c = c || f.onScriptLoad;
|
|
i = document.createElement("script");
|
|
i.type = e || "text/javascript";
|
|
i.charset = "utf-8";
|
|
if(!h.skipAsync[a]) {
|
|
i.async = true
|
|
}i.setAttribute("data-requirecontext", b);
|
|
i.setAttribute("data-requiremodule", d);
|
|
if(i.addEventListener) {
|
|
i.addEventListener("load", c, false)
|
|
}else {
|
|
T = true;
|
|
i.attachEvent("onreadystatechange", c)
|
|
}i.src = a;
|
|
N = i;
|
|
K ? h.head.insertBefore(i, K) : h.head.appendChild(i);
|
|
N = null;
|
|
return i
|
|
}else {
|
|
if(R) {
|
|
c = h.contexts[b];
|
|
b = c.loaded;
|
|
b[d] = false;
|
|
importScripts(a);
|
|
f.completeLoad(d, c)
|
|
}
|
|
}return null
|
|
};
|
|
h.baseUrl = F.baseUrl;
|
|
if(D && (!h.baseUrl || !h.head)) {
|
|
G = document.getElementsByTagName("script");
|
|
J = F.baseUrlMatch ? F.baseUrlMatch : /(allplugins-)?require\.js(\W|$)/i;
|
|
for(s = G.length - 1;s > -1 && (E = G[s]);s--) {
|
|
if(!h.head) {
|
|
h.head = E.parentNode
|
|
}if(!F.deps) {
|
|
if(C = E.getAttribute("data-main")) {
|
|
F.deps = [C]
|
|
}
|
|
}if((C = E.src) && !h.baseUrl) {
|
|
if(P = C.match(J)) {
|
|
h.baseUrl = C.substring(0, P.index);
|
|
break
|
|
}
|
|
}
|
|
}
|
|
}f.pageLoaded = function() {
|
|
if(!h.isPageLoaded) {
|
|
h.isPageLoaded = true;
|
|
M && clearInterval(M);
|
|
if(Q) {
|
|
document.readyState = "complete"
|
|
}f.callReady()
|
|
}
|
|
};
|
|
f.callReady = function() {
|
|
var a = h.readyCalls, b, d, c;
|
|
if(h.isPageLoaded && h.isDone) {
|
|
if(a.length) {
|
|
h.readyCalls = [];
|
|
for(b = 0;d = a[b];b++) {
|
|
d()
|
|
}
|
|
}a = h.contexts;
|
|
for(c in a) {
|
|
if(!(c in r)) {
|
|
b = a[c];
|
|
if(b.jQueryIncremented) {
|
|
b.jQuery.readyWait -= 1;
|
|
b.jQueryIncremented = false
|
|
}
|
|
}
|
|
}
|
|
}
|
|
};
|
|
f.ready = function(a) {
|
|
h.isPageLoaded && h.isDone ? a() : h.readyCalls.push(a);
|
|
return f
|
|
};
|
|
if(D) {
|
|
if(document.addEventListener) {
|
|
document.addEventListener("DOMContentLoaded", f.pageLoaded, false);
|
|
window.addEventListener("load", f.pageLoaded, false);
|
|
if(!document.readyState) {
|
|
Q = true;
|
|
document.readyState = "loading"
|
|
}
|
|
}else {
|
|
if(window.attachEvent) {
|
|
window.attachEvent("onload", f.pageLoaded);
|
|
if(self === self.top) {
|
|
M = setInterval(function() {
|
|
try {
|
|
if(document.body) {
|
|
document.documentElement.doScroll("left");
|
|
f.pageLoaded()
|
|
}
|
|
}catch(a) {
|
|
}
|
|
}, 30)
|
|
}
|
|
}
|
|
}document.readyState === "complete" && f.pageLoaded()
|
|
}f(F);
|
|
typeof setTimeout !== "undefined" && setTimeout(function() {
|
|
var a = h.contexts[F.context || "_"];
|
|
m(a);
|
|
j(a)
|
|
}, 0)
|
|
})();
|
|
(function() {
|
|
function A(g, j) {
|
|
j = j.nlsWaiting;
|
|
return j[g] || (j[g] = j[j.push({_name:g}) - 1])
|
|
}
|
|
function v(g, j, p, m) {
|
|
var o, t, w, r, h, s, u = "root";
|
|
t = p.split("-");
|
|
w = [];
|
|
r = A(g, m);
|
|
for(o = t.length;o > -1;o--) {
|
|
h = o ? t.slice(0, o).join("-") : "root";
|
|
if(s = j[h]) {
|
|
if(p === m.config.locale && !r._match) {
|
|
r._match = h
|
|
}if(u === "root") {
|
|
u = h
|
|
}r[h] = h;
|
|
if(s === true) {
|
|
s = g.split("/");
|
|
s.splice(-1, 0, h);
|
|
s = s.join("/");
|
|
if(!m.specified[s] && !(s in m.loaded) && !m.defined[s]) {
|
|
m.defPlugin[s] = "i18n";
|
|
w.push(s)
|
|
}
|
|
}
|
|
}
|
|
}if(u !== p) {
|
|
if(m.defined[u]) {
|
|
m.defined[p] = m.defined[u]
|
|
}else {
|
|
r[p] = u
|
|
}
|
|
}w.length && require(w, m.contextName)
|
|
}
|
|
var z = /(^.*(^|\/)nls(\/|$))([^\/]*)\/?([^\/]*)/, k = {};
|
|
require.plugin({prefix:"i18n", require:function(g, j, p, m) {
|
|
var o, t = m.defined[g];
|
|
o = z.exec(g);
|
|
if(o[5]) {
|
|
g = o[1] + o[5];
|
|
j = A(g, m);
|
|
j[o[4]] = o[4];
|
|
j = m.nls[g];
|
|
if(!j) {
|
|
m.defPlugin[g] = "i18n";
|
|
require([g], m.contextName);
|
|
j = m.nls[g] = {}
|
|
}j[o[4]] = p
|
|
}else {
|
|
if(j = m.nls[g]) {
|
|
require.mixin(j, t)
|
|
}else {
|
|
j = m.nls[g] = t
|
|
}m.nlsRootLoaded[g] = true;
|
|
if(o = m.nlsToLoad[g]) {
|
|
delete m.nlsToLoad[g];
|
|
for(p = 0;p < o.length;p++) {
|
|
v(g, j, o[p], m)
|
|
}
|
|
}v(g, j, m.config.locale, m)
|
|
}
|
|
}, newContext:function(g) {
|
|
require.mixin(g, {nlsWaiting:[], nls:{}, nlsRootLoaded:{}, nlsToLoad:{}});
|
|
if(!g.config.locale) {
|
|
g.config.locale = typeof navigator === "undefined" ? "root" : (navigator.language || navigator.userLanguage || "root").toLowerCase()
|
|
}
|
|
}, load:function(g, j) {
|
|
var p = require.s.contexts[j], m;
|
|
m = z.exec(g);
|
|
var o = m[4];
|
|
if(m[5]) {
|
|
g = m[1] + m[5];
|
|
m = p.nls[g];
|
|
if(p.nlsRootLoaded[g] && m) {
|
|
v(g, m, o, p)
|
|
}else {
|
|
(p.nlsToLoad[g] || (p.nlsToLoad[g] = [])).push(o);
|
|
p.defPlugin[g] = "i18n";
|
|
require([g], j)
|
|
}
|
|
}else {
|
|
if(!p.nlsRootLoaded[g]) {
|
|
p.defPlugin[g] = "i18n";
|
|
require.load(g, j)
|
|
}
|
|
}
|
|
}, checkDeps:function() {
|
|
}, isWaiting:function(g) {
|
|
return!!g.nlsWaiting.length
|
|
}, orderDeps:function(g) {
|
|
var j, p, m, o, t, w, r, h, s, u, G, E, J = g.nlsWaiting, C;
|
|
g.nlsWaiting = [];
|
|
g.nlsToLoad = {};
|
|
for(j = 0;o = J[j];j++) {
|
|
m = o._name;
|
|
t = g.nls[m];
|
|
G = null;
|
|
w = m.split("/");
|
|
s = w.slice(0, w.length - 1).join("/");
|
|
r = w[w.length - 1];
|
|
for(u in o) {
|
|
if(u !== "_name" && !(u in k)) {
|
|
if(u === "_match") {
|
|
G = o[u]
|
|
}else {
|
|
if(o[u] !== u) {
|
|
(C || (C = {}))[u] = o[u]
|
|
}else {
|
|
h = {};
|
|
w = u.split("-");
|
|
for(p = w.length;p > 0;p--) {
|
|
E = w.slice(0, p).join("-");
|
|
E !== "root" && t[E] && require.mixin(h, t[E])
|
|
}t.root && require.mixin(h, t.root);
|
|
g.defined[s + "/" + u + "/" + r] = h
|
|
}
|
|
}
|
|
}
|
|
}g.defined[m] = g.defined[s + "/" + G + "/" + r];
|
|
if(C) {
|
|
for(u in C) {
|
|
u in k || (g.defined[s + "/" + u + "/" + r] = g.defined[s + "/" + C[u] + "/" + r])
|
|
}
|
|
}
|
|
}
|
|
}})
|
|
})();
|
|
(function() {
|
|
var A = ["Msxml2.XMLHTTP", "Microsoft.XMLHTTP", "Msxml2.XMLHTTP.4.0"], v = /^\s*<\?xml(\s)+version=[\'\"](\d)*.(\d)*[\'\"](\s)*\?>/im, z = /<body[^>]*>\s*([\s\S]+)\s*<\/body>/im;
|
|
if(!require.textStrip) {
|
|
require.textStrip = function(k) {
|
|
if(k) {
|
|
k = k.replace(v, "");
|
|
var g = k.match(z);
|
|
if(g) {
|
|
k = g[1]
|
|
}
|
|
}else {
|
|
k = ""
|
|
}return k
|
|
}
|
|
}if(!require.getXhr) {
|
|
require.getXhr = function() {
|
|
var k, g, j;
|
|
if(typeof XMLHttpRequest !== "undefined") {
|
|
return new XMLHttpRequest
|
|
}else {
|
|
for(g = 0;g < 3;g++) {
|
|
j = A[g];
|
|
try {
|
|
k = new ActiveXObject(j)
|
|
}catch(p) {
|
|
}if(k) {
|
|
A = [j];
|
|
break
|
|
}
|
|
}
|
|
}if(!k) {
|
|
throw new Error("require.getXhr(): XMLHttpRequest not available");
|
|
}return k
|
|
}
|
|
}if(!require.fetchText) {
|
|
require.fetchText = function(k, g) {
|
|
var j = require.getXhr();
|
|
j.open("GET", k, true);
|
|
j.onreadystatechange = function() {
|
|
j.readyState === 4 && g(j.responseText)
|
|
};
|
|
j.send(null)
|
|
}
|
|
}require.plugin({prefix:"text", require:function() {
|
|
}, newContext:function(k) {
|
|
require.mixin(k, {text:{}, textWaiting:[]})
|
|
}, load:function(k, g) {
|
|
var j = false, p = null, m, o = k.indexOf("."), t = k.substring(0, o), w = k.substring(o + 1, k.length), r = require.s.contexts[g], h = r.textWaiting;
|
|
o = w.indexOf("!");
|
|
if(o !== -1) {
|
|
j = w.substring(o + 1, w.length);
|
|
w = w.substring(0, o);
|
|
o = j.indexOf("!");
|
|
if(o !== -1 && j.substring(0, o) === "strip") {
|
|
p = j.substring(o + 1, j.length);
|
|
j = "strip"
|
|
}else {
|
|
if(j !== "strip") {
|
|
p = j;
|
|
j = null
|
|
}
|
|
}
|
|
}m = t + "!" + w;
|
|
o = j ? m + "!" + j : m;
|
|
if(p !== null && !r.text[m]) {
|
|
r.defined[k] = r.text[m] = p
|
|
}else {
|
|
if(!r.text[m] && !r.textWaiting[m] && !r.textWaiting[o]) {
|
|
h[o] || (h[o] = h[h.push({name:k, key:m, fullKey:o, strip:!!j}) - 1]);
|
|
g = require.nameToUrl(t, "." + w, g);
|
|
r.loaded[k] = false;
|
|
require.fetchText(g, function(s) {
|
|
r.text[m] = s;
|
|
r.loaded[k] = true
|
|
})
|
|
}
|
|
}
|
|
}, checkDeps:function() {
|
|
}, isWaiting:function(k) {
|
|
return!!k.textWaiting.length
|
|
}, orderDeps:function(k) {
|
|
var g, j, p, m = k.textWaiting;
|
|
k.textWaiting = [];
|
|
for(g = 0;j = m[g];g++) {
|
|
p = k.text[j.key];
|
|
k.defined[j.name] = j.strip ? require.textStrip(p) : p
|
|
}
|
|
}})
|
|
})();
|
|
(function() {
|
|
var A = 0;
|
|
require._jsonp = {};
|
|
require.plugin({prefix:"jsonp", require:function() {
|
|
}, newContext:function(v) {
|
|
require.mixin(v, {jsonpWaiting:[]})
|
|
}, load:function(v, z) {
|
|
var k = v.indexOf("?"), g = v.substring(0, k);
|
|
k = v.substring(k + 1, v.length);
|
|
var j = require.s.contexts[z], p = {name:v}, m = "f" + A++, o = require.s.head, t = o.ownerDocument.createElement("script");
|
|
require._jsonp[m] = function(w) {
|
|
p.value = w;
|
|
j.loaded[v] = true;
|
|
setTimeout(function() {
|
|
o.removeChild(t);
|
|
delete require._jsonp[m]
|
|
}, 15)
|
|
};
|
|
j.jsonpWaiting.push(p);
|
|
g = require.nameToUrl(g, "?", z);
|
|
g += (g.indexOf("?") === -1 ? "?" : "") + k.replace("?", "require._jsonp." + m);
|
|
j.loaded[v] = false;
|
|
t.type = "text/javascript";
|
|
t.charset = "utf-8";
|
|
t.src = g;
|
|
t.async = true;
|
|
o.appendChild(t)
|
|
}, checkDeps:function() {
|
|
}, isWaiting:function(v) {
|
|
return!!v.jsonpWaiting.length
|
|
}, orderDeps:function(v) {
|
|
var z, k, g = v.jsonpWaiting;
|
|
v.jsonpWaiting = [];
|
|
for(z = 0;k = g[z];z++) {
|
|
v.defined[k.name] = k.value
|
|
}
|
|
}})
|
|
})();
|
|
(function() {
|
|
function A(k) {
|
|
var g = k.currentTarget || k.srcElement, j, p, m, o;
|
|
if(k.type === "load" || z.test(g.readyState)) {
|
|
p = g.getAttribute("data-requirecontext");
|
|
j = g.getAttribute("data-requiremodule");
|
|
k = require.s.contexts[p];
|
|
m = k.orderWaiting;
|
|
o = k.orderCached;
|
|
o[j] = true;
|
|
for(j = 0;o[m[j]];j++);j > 0 && require(m.splice(0, j), p);
|
|
if(!m.length) {
|
|
k.orderCached = {}
|
|
}setTimeout(function() {
|
|
g.parentNode.removeChild(g)
|
|
}, 15)
|
|
}
|
|
}
|
|
var v = window.opera && Object.prototype.toString.call(window.opera) === "[object Opera]" || "MozAppearance" in document.documentElement.style, z = /^(complete|loaded)$/;
|
|
require.plugin({prefix:"order", require:function() {
|
|
}, newContext:function(k) {
|
|
require.mixin(k, {orderWaiting:[], orderCached:{}})
|
|
}, load:function(k, g) {
|
|
var j = require.s.contexts[g], p = require.nameToUrl(k, null, g);
|
|
require.s.skipAsync[p] = true;
|
|
if(v) {
|
|
require([k], g)
|
|
}else {
|
|
j.orderWaiting.push(k);
|
|
j.loaded[k] = false;
|
|
require.attach(p, g, k, A, "script/cache")
|
|
}
|
|
}, checkDeps:function() {
|
|
}, isWaiting:function(k) {
|
|
return!!k.orderWaiting.length
|
|
}, orderDeps:function() {
|
|
}})
|
|
})(); |